Commit 8297d859f82d00c3c1a2a0dd1bd1b4d248aa1eb2

Authored by Renato De Donato
2 parents 3c812cc9 e4d4d425

Merge branch 'master' of http://service.routetopa.eu:7480/WebCompDev/COMPONENTS

controllets/animated-button-container-controllet/animated-button-container-controllet.html
... ... @@ -87,7 +87,7 @@
87 87 height: 45px;
88 88 }
89 89  
90   - search-panel-controllet{
  90 + #search_from_animated_button_container{
91 91 position: absolute;
92 92 top: 0px;
93 93 left: 0px;
... ...
controllets/create-card-controllet/create-card-controllet.html
... ... @@ -183,7 +183,7 @@
183 183 <paper-textarea class="custom_textarea" id="text"
184 184 label=""
185 185 char-counter
186   - max-rows="6"
  186 + max-rows="50"
187 187 maxlength="1024"
188 188 value="{{text}}">
189 189  
... ...
controllets/opinion-controllet/opinion-controllet.html 0 → 100644
  1 +<!--
  2 +@license
  3 + The MIT License (MIT)
  4 +
  5 + Copyright (c) 2015 Dipartimento di Informatica - Università di Salerno - Italy
  6 +
  7 + Permission is hereby granted, free of charge, to any person obtaining a copy
  8 + of this software and associated documentation files (the "Software"), to deal
  9 + in the Software without restriction, including without limitation the rights
  10 + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  11 + copies of the Software, and to permit persons to whom the Software is
  12 + furnished to do so, subject to the following conditions:
  13 +
  14 + The above copyright notice and this permission notice shall be included in
  15 + all copies or substantial portions of the Software.
  16 +
  17 + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  18 + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19 + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  20 + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  21 + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  22 + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  23 + THE SOFTWARE.
  24 +-->
  25 +
  26 +<!--
  27 +* Developed by :
  28 +* ROUTE-TO-PA Project - grant No 645860. - www.routetopa.eu
  29 +*
  30 +-->
  31 +
  32 +<link rel="import" href="../../bower_components/polymer/polymer.html">
  33 +<link rel="import" href="../../bower_components/paper-styles/color.html">
  34 +<link rel="import" href="../../bower_components/iron-flex-layout/iron-flex-layout.html">
  35 +
  36 +<!--
  37 +`text-element-controllet` is a text area with heading. It fires an event when the text value is modified. This event can be useful when you have to monitor many af this elements.
  38 +
  39 +
  40 +Example:
  41 +
  42 + <text-element-controllet heading="myField"
  43 + description="myFieldDescription"
  44 + number="1">
  45 + </text-element-controllet>
  46 +
  47 +
  48 +@element text-element-controllet
  49 +@status beta
  50 +@homepage
  51 +@group controllets
  52 +-->
  53 +
  54 +
  55 +<dom-module id="opinion-controllet">
  56 + <template>
  57 +
  58 + <style is="custom-style">
  59 +
  60 + </style>
  61 +
  62 + <div class="horizontal layout">
  63 +
  64 + </div>
  65 +
  66 + </template>
  67 +
  68 + <script>
  69 +
  70 + Polymer({
  71 +
  72 + is: 'opinion-controllet',
  73 +
  74 + properties: {
  75 + }
  76 + });
  77 +
  78 + </script>
  79 +
  80 +</dom-module>
0 81 \ No newline at end of file
... ...
datalets/graph-datalet/graph-datalet.html
... ... @@ -32,6 +32,7 @@
32 32 <link rel="import" href="../base-datalet/base-datalet.html">
33 33 <link rel="import" href="../../bower_components/iron-flex-layout/iron-flex-layout.html">
34 34 <link rel="import" href="../../bower_components/paper-dialog/paper-dialog.html">
  35 +<link rel="import" href="../../bower_components/paper-fab/paper-fab.html">
35 36  
36 37 <!--
37 38 `preview-datalet` is a datalet that allow user to preview the content of a web page. It creates a thumbnail of the site using the data-url attribute passed as input.
... ... @@ -56,8 +57,21 @@ Example:
56 57 <style is="custom-style">
57 58  
58 59 #dialog{
59   - position: absolute;
  60 + position: relative;
60 61 padding: 20px;
  62 + right:5%;
  63 + }
  64 +
  65 + #close{
  66 + position: absolute;
  67 + top: -20px;
  68 + right: 3px;
  69 + --iron-icon-height: 20px;
  70 + --iron-icon-width: 20px;
  71 + width: 24px;
  72 + height: 24px;
  73 + --paper-fab-background:#9e9e9e;
  74 + z-index: 1001;
61 75 }
62 76  
63 77 </style>
... ... @@ -67,9 +81,9 @@ Example:
67 81 </div>
68 82  
69 83 <paper-dialog id="dialog">
  84 + <paper-fab id="close" mini icon="close" on-click="_onCloseClick"></paper-fab>
70 85 <h2 id="dialog_title"></h2>
71   - <paper-dialog-scrollable id="dialog_content">
72   - </paper-dialog-scrollable>
  86 + <paper-dialog-scrollable id="dialog_content">cos</paper-dialog-scrollable>
73 87 </paper-dialog>
74 88  
75 89 </template>
... ... @@ -116,6 +130,10 @@ Example:
116 130 svg: {
117 131 type: Object,
118 132 value: undefined
  133 + },
  134 + feelings:{
  135 + type: Array,
  136 + values: ["Agree", "Neutral", "Not agree"]
119 137 }
120 138 },
121 139  
... ... @@ -248,13 +266,12 @@ Example:
248 266 //return 1 == t.fixed ? 1.4 * t.r : 15
249 267 return 1 == t.fixed ? 1.4 * t.r : t.r + 10;
250 268 });
251   -
252 269 },
253 270  
254 271 mouseout : function () {
255 272 d3.select(this).selectAll("text").style("visibility", "hidden"), d3.select(this).selectAll("circle").transition().duration(400).attr("r", function (t) {
256 273 return t.r ? t.r : 15
257   - })
  274 + });
258 275 },
259 276  
260 277 active : function (t) {
... ... @@ -269,12 +286,17 @@ Example:
269 286 prev_selected_node.style.fill = prev_selected_node.style.stroke;
270 287 prev_selected_node.style.stroke = "#000000";
271 288  
272   - /* _this.$.dialog_title.innerHTML = "Comment";
273   - _this.$.dialog_content.innerHTML = t.name;
274   - _this.$.dialog.style.top = t.y + "px";
275   - _this.$.dialog.style.left = t.x + "px";
  289 + _this.$.dialog.close();
  290 + _this.$.dialog_title.innerHTML = t.name;
  291 + _this.$.dialog_content.innerHTML = t.content;
  292 + /*_this.$.dialog.style.top = t.y + "px";
  293 + _this.$.dialog.style.left = t.x + "px";*/
  294 +
  295 + _this.$.dialog.open();
  296 + },
276 297  
277   - _this.$.dialog.open();*/
  298 + _onCloseClick : function(){
  299 + _this.$.dialog.close();
278 300 },
279 301  
280 302 /**
... ...