polymer-paper-rails 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -18
- data/app/assets/components/core-a11y-keys/core-a11y-keys.html +4 -4
- data/app/assets/components/core-animation/web-animations.html +1 -1
- data/app/assets/components/core-collapse/core-collapse.html +1 -1
- data/app/assets/components/core-drawer-panel/core-drawer-panel.css +14 -6
- data/app/assets/components/core-drawer-panel/core-drawer-panel.html +32 -8
- data/app/assets/components/core-dropdown/core-dropdown.html +8 -2
- data/app/assets/components/core-icon/core-icon.html +0 -2
- data/app/assets/components/core-icons/av-icons.html +2 -9
- data/app/assets/components/core-icons/communication-icons.html +39 -42
- data/app/assets/components/core-icons/core-icons.html +231 -235
- data/app/assets/components/core-icons/device-icons.html +75 -90
- data/app/assets/components/core-icons/editor-icons.html +52 -52
- data/app/assets/components/core-icons/hardware-icons.html +40 -41
- data/app/assets/components/core-icons/image-icons.html +133 -137
- data/app/assets/components/core-icons/maps-icons.html +55 -57
- data/app/assets/components/core-icons/notification-icons.html +34 -34
- data/app/assets/components/core-icons/social-icons.html +23 -37
- data/app/assets/components/core-menu/core-menu.html +8 -3
- data/app/assets/components/core-menu/core-submenu.html +2 -2
- data/app/assets/components/core-overlay/core-key-helper.html +3 -0
- data/app/assets/components/core-overlay/core-overlay-layer.html +3 -0
- data/app/assets/components/core-overlay/core-overlay.html +20 -4
- data/app/assets/components/core-resizable/core-resizable.html +248 -0
- data/app/assets/components/core-scroll-header-panel/core-scroll-header-panel.html +14 -3
- data/app/assets/components/core-selection/core-selection.html +1 -1
- data/app/assets/components/core-selector/core-selector.html +26 -26
- data/app/assets/components/core-style/core-style.html +1 -1
- data/app/assets/components/core-toolbar/core-toolbar.html +1 -1
- data/app/assets/components/paper-button/paper-button-base.html +56 -12
- data/app/assets/components/paper-button/paper-button.html +22 -5
- data/app/assets/components/paper-checkbox/paper-checkbox.css +65 -184
- data/app/assets/components/paper-checkbox/paper-checkbox.html +47 -55
- data/app/assets/components/paper-dialog/paper-action-dialog.html +3 -3
- data/app/assets/components/paper-dialog/paper-dialog.html +2 -2
- data/app/assets/components/paper-dropdown-menu/paper-dropdown-menu.html +4 -1
- data/app/assets/components/{core-elements → paper-elements}/metadata.html +0 -0
- data/app/assets/components/{core-elements → paper-elements}/paper-elements.html +1 -0
- data/app/assets/components/paper-fab/paper-fab.html +2 -2
- data/app/assets/components/paper-input/paper-autogrow-textarea.html +8 -3
- data/app/assets/components/paper-input/paper-char-counter.html +121 -0
- data/app/assets/components/paper-input/paper-input-decorator.css +1 -21
- data/app/assets/components/paper-input/paper-input-decorator.html +130 -51
- data/app/assets/components/paper-input/paper-input.html +31 -5
- data/app/assets/components/paper-item/paper-item.html +1 -2
- data/app/assets/components/paper-progress/paper-progress.html +1 -1
- data/app/assets/components/paper-radio-button/paper-radio-button.css +16 -12
- data/app/assets/components/paper-radio-button/paper-radio-button.html +9 -3
- data/app/assets/components/paper-ripple/paper-ripple.html +2 -1
- data/app/assets/components/paper-shadow/paper-shadow.css +10 -10
- data/app/assets/components/paper-shadow/paper-shadow.html +8 -1
- data/app/assets/components/paper-slider/paper-slider.html +28 -4
- data/app/assets/components/paper-spinner/paper-spinner.css +35 -23
- data/app/assets/components/paper-spinner/paper-spinner.html +46 -5
- data/app/assets/components/paper-tabs/paper-tabs.css +5 -0
- data/app/assets/components/paper-tabs/paper-tabs.html +32 -7
- data/app/assets/components/paper-toggle-button/paper-toggle-button.css +58 -30
- data/app/assets/components/paper-toggle-button/paper-toggle-button.html +69 -44
- data/app/assets/components/sampler-scaffold/sampler-scaffold.css +1 -1
- data/app/assets/components/web-animations-js/web-animations-next-lite.min.js +17 -0
- data/app/assets/components/web-animations-js/web-animations-next.min.js +17 -0
- data/app/assets/components/web-animations-js/web-animations.min.js +17 -0
- data/app/assets/components/webcomponentsjs/CustomElements.js +634 -0
- data/app/assets/components/webcomponentsjs/CustomElements.min.js +11 -0
- data/app/assets/components/webcomponentsjs/HTMLImports.js +764 -0
- data/app/assets/components/webcomponentsjs/HTMLImports.min.js +11 -0
- data/app/assets/components/webcomponentsjs/ShadowDOM.js +4277 -0
- data/app/assets/components/webcomponentsjs/ShadowDOM.min.js +13 -0
- data/app/assets/components/webcomponentsjs/package.json +31 -0
- data/app/assets/components/webcomponentsjs/webcomponents-lite.js +1728 -0
- data/app/assets/components/webcomponentsjs/webcomponents-lite.min.js +11 -0
- data/app/assets/components/webcomponentsjs/webcomponents.js +6114 -0
- data/app/assets/components/webcomponentsjs/webcomponents.min.js +14 -0
- data/lib/polymer-paper-rails/version.rb +1 -1
- metadata +20 -71
- data/app/assets/components/core-dropdown/metadata.html +0 -62
- data/app/assets/components/core-icons/png-icons.html +0 -19
- data/app/assets/components/core-label/core-label.html +0 -124
- data/app/assets/components/core-overlay/tests/html/core-overlay-basic.html +0 -127
- data/app/assets/components/core-overlay/tests/html/core-overlay-positioning-margin.html +0 -153
- data/app/assets/components/core-overlay/tests/html/core-overlay-positioning.html +0 -167
- data/app/assets/components/core-overlay/tests/html/core-overlay-scroll.html +0 -130
- data/app/assets/components/core-overlay/tests/js/htmltests.js +0 -6
- data/app/assets/components/core-overlay/tests/runner.html +0 -14
- data/app/assets/components/core-overlay/tests/tests.json +0 -6
- data/app/assets/components/core-popup-menu/core-popup-menu.css +0 -28
- data/app/assets/components/core-popup-menu/core-popup-menu.html +0 -198
- data/app/assets/components/core-popup-menu/core-popup-overlay.html +0 -111
- data/app/assets/components/core-popup-menu/metadata.html +0 -62
- data/app/assets/components/paper-focusable/paper-focusable.html +0 -146
- data/app/assets/components/platform/platform.js +0 -16
- data/app/assets/components/web-animations-js/web-animations.js +0 -5529
- data/app/assets/components/web-animations-next/Gruntfile.js +0 -279
- data/app/assets/components/web-animations-next/History.md +0 -76
- data/app/assets/components/web-animations-next/package.json +0 -33
- data/app/assets/components/web-animations-next/src/animation-constructor.js +0 -139
- data/app/assets/components/web-animations-next/src/animation-node.js +0 -31
- data/app/assets/components/web-animations-next/src/animation.js +0 -65
- data/app/assets/components/web-animations-next/src/apply-preserving-inline-style.js +0 -192
- data/app/assets/components/web-animations-next/src/apply.js +0 -25
- data/app/assets/components/web-animations-next/src/box-handler.js +0 -57
- data/app/assets/components/web-animations-next/src/color-handler.js +0 -62
- data/app/assets/components/web-animations-next/src/deprecation.js +0 -42
- data/app/assets/components/web-animations-next/src/dev.js +0 -16
- data/app/assets/components/web-animations-next/src/dimension-handler.js +0 -167
- data/app/assets/components/web-animations-next/src/effect-callback.js +0 -86
- data/app/assets/components/web-animations-next/src/effect.js +0 -110
- data/app/assets/components/web-animations-next/src/element-animatable.js +0 -19
- data/app/assets/components/web-animations-next/src/font-weight-handler.js +0 -42
- data/app/assets/components/web-animations-next/src/group-constructors.js +0 -81
- data/app/assets/components/web-animations-next/src/handler-utils.js +0 -177
- data/app/assets/components/web-animations-next/src/interpolation.js +0 -49
- data/app/assets/components/web-animations-next/src/matrix-decomposition.js +0 -452
- data/app/assets/components/web-animations-next/src/matrix-interpolation.js +0 -130
- data/app/assets/components/web-animations-next/src/maxifill-player.js +0 -162
- data/app/assets/components/web-animations-next/src/normalize-keyframes.js +0 -259
- data/app/assets/components/web-animations-next/src/number-handler.js +0 -72
- data/app/assets/components/web-animations-next/src/player.js +0 -193
- data/app/assets/components/web-animations-next/src/position-handler.js +0 -117
- data/app/assets/components/web-animations-next/src/property-interpolation.js +0 -62
- data/app/assets/components/web-animations-next/src/property-names.js +0 -35
- data/app/assets/components/web-animations-next/src/scope.js +0 -20
- data/app/assets/components/web-animations-next/src/shadow-handler.js +0 -108
- data/app/assets/components/web-animations-next/src/shape-handler.js +0 -85
- data/app/assets/components/web-animations-next/src/tick.js +0 -148
- data/app/assets/components/web-animations-next/src/timeline.js +0 -77
- data/app/assets/components/web-animations-next/src/timing-utilities.js +0 -242
- data/app/assets/components/web-animations-next/src/transform-handler.js +0 -262
- data/app/assets/components/web-animations-next/src/visibility-handler.js +0 -29
- data/app/assets/components/web-animations-next/target-config.js +0 -124
- data/app/assets/components/web-animations-next/target-loader.js +0 -13
- data/app/assets/components/web-animations-next/templates/boilerplate +0 -13
- data/app/assets/components/web-animations-next/templates/runner.html +0 -26
- data/app/assets/components/web-animations-next/templates/web-animations.html +0 -18
- data/app/assets/components/web-animations-next/templates/web-animations.js +0 -21
- data/app/assets/components/web-animations-next/web-animations-next-lite.dev.html +0 -44
- data/app/assets/components/web-animations-next/web-animations-next-lite.dev.js +0 -21
- data/app/assets/components/web-animations-next/web-animations-next.dev.html +0 -49
- data/app/assets/components/web-animations-next/web-animations-next.dev.js +0 -21
- data/app/assets/components/web-animations-next/web-animations.dev.html +0 -44
- data/app/assets/components/web-animations-next/web-animations.dev.js +0 -21
- data/app/assets/components/web-animations-next/web-animations.html +0 -50
@@ -16,6 +16,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
16
16
|
outline: 0;
|
17
17
|
}
|
18
18
|
|
19
|
+
.hidden {
|
20
|
+
display: none;
|
21
|
+
}
|
22
|
+
|
19
23
|
#checkboxContainer {
|
20
24
|
position: relative;
|
21
25
|
width: 18px;
|
@@ -35,229 +39,106 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
35
39
|
top: -15px;
|
36
40
|
left: -15px;
|
37
41
|
width: 48px;
|
38
|
-
height: 48px;
|
42
|
+
height: 48px;
|
39
43
|
color: #5a5f5a;
|
40
|
-
}
|
41
|
-
|
42
|
-
#ink[checked] {
|
43
|
-
color: #0f9d58;
|
44
44
|
}
|
45
45
|
|
46
|
-
#
|
47
|
-
|
48
|
-
box-sizing: border-box;
|
49
|
-
top: 0px;
|
50
|
-
left: 0px;
|
51
|
-
width: 18px;
|
52
|
-
height: 18px;
|
53
|
-
border: solid 2px;
|
54
|
-
border-color: #5a5a5a;
|
55
|
-
pointer-events: none;
|
56
|
-
}
|
57
|
-
|
58
|
-
/* checkbox checked animations */
|
59
|
-
#checkbox.checked.box {
|
60
|
-
border: solid 2px;
|
61
|
-
-webkit-animation: box-shrink 140ms ease-out forwards;
|
62
|
-
animation: box-shrink 140ms ease-out forwards;
|
46
|
+
#ink[checked] {
|
47
|
+
color: #B2DFDB;
|
63
48
|
}
|
64
49
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
-webkit-transform: rotate(45deg);
|
75
|
-
top: 13px;
|
76
|
-
left: 5px;
|
77
|
-
width: 4px;
|
78
|
-
height: 4px;
|
79
|
-
}
|
80
|
-
}
|
81
|
-
|
82
|
-
@keyframes box-shrink {
|
83
|
-
0% {
|
84
|
-
transform: rotate(0deg);
|
85
|
-
top: 0px;
|
86
|
-
left: 0px;
|
87
|
-
width: 18px;
|
88
|
-
height: 18px;
|
89
|
-
}
|
90
|
-
100% {
|
91
|
-
transform: rotate(45deg);
|
92
|
-
top: 13px;
|
93
|
-
left: 5px;
|
94
|
-
width: 4px;
|
95
|
-
height: 4px;
|
96
|
-
}
|
50
|
+
#checkbox {
|
51
|
+
position: relative;
|
52
|
+
box-sizing: border-box;
|
53
|
+
height: 100%;
|
54
|
+
border: solid 2px #5a5a5a;
|
55
|
+
border-radius: 2px;
|
56
|
+
pointer-events: none;
|
57
|
+
-webkit-transition: background-color 140ms, border-color 140ms;
|
58
|
+
transition: background-color 140ms, border-color 140ms;
|
97
59
|
}
|
98
60
|
|
99
|
-
|
100
|
-
|
101
|
-
border-top: none;
|
61
|
+
/* checkbox checked animations */
|
62
|
+
:host([checked]) #checkmark {
|
102
63
|
-webkit-animation: checkmark-expand 140ms ease-out forwards;
|
103
64
|
animation: checkmark-expand 140ms ease-out forwards;
|
104
65
|
}
|
105
66
|
|
106
67
|
@-webkit-keyframes checkmark-expand {
|
107
68
|
0% {
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
height: 4px;
|
69
|
+
top: 9px;
|
70
|
+
left: 6px;
|
71
|
+
width: 0px;
|
72
|
+
height: 0px;
|
113
73
|
}
|
114
74
|
100% {
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
height: 21px;
|
120
|
-
border-right-width: 2px;
|
121
|
-
border-bottom-width: 2px;
|
75
|
+
top: -1px;
|
76
|
+
left: 4px;
|
77
|
+
width: 5px;
|
78
|
+
height: 10px;
|
122
79
|
}
|
123
80
|
}
|
124
81
|
|
125
82
|
@keyframes checkmark-expand {
|
126
83
|
0% {
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
height: 4px;
|
84
|
+
top: 9px;
|
85
|
+
left: 6px;
|
86
|
+
width: 0px;
|
87
|
+
height: 0px;
|
132
88
|
}
|
133
89
|
100% {
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
height: 21px;
|
139
|
-
border-right-width: 2px;
|
140
|
-
border-bottom-width: 2px;
|
90
|
+
top: -1px;
|
91
|
+
left: 4px;
|
92
|
+
width: 5px;
|
93
|
+
height: 10px;
|
141
94
|
}
|
142
95
|
}
|
143
96
|
|
144
97
|
#checkbox.checked {
|
145
|
-
-
|
146
|
-
|
147
|
-
top: -4px;
|
148
|
-
left: 6px;
|
149
|
-
width: 10px;
|
150
|
-
height: 21px;
|
151
|
-
border-top: none;
|
152
|
-
border-left: none;
|
153
|
-
border-right-width: 2px;
|
154
|
-
border-bottom-width: 2px;
|
155
|
-
border-color: #0f9d58;
|
98
|
+
background-color: #009688;
|
99
|
+
border-color: #009688;
|
156
100
|
}
|
157
101
|
|
158
|
-
|
159
|
-
#checkbox.unchecked.checkmark {
|
102
|
+
#checkmark {
|
160
103
|
-webkit-transform: rotate(45deg);
|
161
104
|
transform: rotate(45deg);
|
162
|
-
|
105
|
+
position: absolute;
|
106
|
+
top: -1px;
|
107
|
+
left: 4px;
|
108
|
+
width: 5px;
|
109
|
+
height: 10px;
|
110
|
+
border-style: solid;
|
163
111
|
border-top: none;
|
164
|
-
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
@-webkit-keyframes checkmark-shrink {
|
169
|
-
0% {
|
170
|
-
top: -4px;
|
171
|
-
left: 6px;
|
172
|
-
width: 10px;
|
173
|
-
height: 21px;
|
174
|
-
border-right-width: 2px;
|
175
|
-
border-bottom-width: 2px;
|
176
|
-
}
|
177
|
-
100% {
|
178
|
-
top: 13px;
|
179
|
-
left: 5px;
|
180
|
-
width: 4px;
|
181
|
-
height: 4px;
|
182
|
-
}
|
183
|
-
}
|
184
|
-
|
185
|
-
@keyframes checkmark-shrink {
|
186
|
-
0% {
|
187
|
-
top: -4px;
|
188
|
-
left: 6px;
|
189
|
-
width: 10px;
|
190
|
-
height: 21px;
|
191
|
-
border-right-width: 2px;
|
192
|
-
border-bottom-width: 2px;
|
193
|
-
}
|
194
|
-
100% {
|
195
|
-
top: 13px;
|
196
|
-
left: 5px;
|
197
|
-
width: 4px;
|
198
|
-
height: 4px;
|
199
|
-
}
|
200
|
-
}
|
201
|
-
|
202
|
-
#checkbox.unchecked.box {
|
203
|
-
-webkit-animation: box-expand 140ms ease-out forwards;
|
204
|
-
animation: box-expand 140ms ease-out forwards;
|
205
|
-
}
|
206
|
-
|
207
|
-
@-webkit-keyframes box-expand {
|
208
|
-
0% {
|
209
|
-
-webkit-transform: rotate(45deg);
|
210
|
-
top: 13px;
|
211
|
-
left: 5px;
|
212
|
-
width: 4px;
|
213
|
-
height: 4px;
|
214
|
-
}
|
215
|
-
100% {
|
216
|
-
-webkit-transform: rotate(0deg);
|
217
|
-
top: 0px;
|
218
|
-
left: 0px;
|
219
|
-
width: 18px;
|
220
|
-
height: 18px;
|
221
|
-
}
|
222
|
-
}
|
223
|
-
|
224
|
-
@keyframes box-expand {
|
225
|
-
0% {
|
226
|
-
transform: rotate(45deg);
|
227
|
-
top: 13px;
|
228
|
-
left: 5px;
|
229
|
-
width: 4px;
|
230
|
-
height: 4px;
|
231
|
-
}
|
232
|
-
100% {
|
233
|
-
transform: rotate(0deg);
|
234
|
-
top: 0px;
|
235
|
-
left: 0px;
|
236
|
-
width: 18px;
|
237
|
-
height: 18px;
|
238
|
-
}
|
112
|
+
border-left: none;
|
113
|
+
border-right-width: 2px;
|
114
|
+
border-bottom-width: 2px;
|
115
|
+
border-color: white;
|
239
116
|
}
|
240
117
|
|
241
118
|
/* label */
|
242
119
|
#checkboxLabel {
|
243
120
|
position: relative;
|
244
|
-
display: inline-block;
|
121
|
+
display: inline-block;
|
245
122
|
vertical-align: middle;
|
246
|
-
padding-left: 8px;
|
247
|
-
white-space: normal;
|
123
|
+
padding-left: 8px;
|
124
|
+
white-space: normal;
|
248
125
|
pointer-events: none;
|
249
126
|
}
|
250
127
|
|
251
128
|
#checkboxLabel[hidden] {
|
252
129
|
display: none;
|
253
|
-
}
|
254
|
-
|
255
|
-
/* disabled state */
|
256
|
-
:host([disabled]) {
|
257
|
-
pointer-events: none;
|
258
|
-
}
|
259
|
-
|
260
|
-
:host([disabled]) #checkbox {
|
261
|
-
opacity: 0.33;
|
262
|
-
border-color: #5a5a5a;
|
263
|
-
}
|
130
|
+
}
|
131
|
+
|
132
|
+
/* disabled state */
|
133
|
+
:host([disabled]) {
|
134
|
+
pointer-events: none;
|
135
|
+
}
|
136
|
+
|
137
|
+
:host([disabled]) #checkbox {
|
138
|
+
opacity: 0.33;
|
139
|
+
border-color: #5a5a5a;
|
140
|
+
}
|
141
|
+
|
142
|
+
:host([disabled][checked]) #checkbox {
|
143
|
+
background-color: #5a5a5a;
|
144
|
+
}
|
@@ -6,7 +6,6 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
6
6
|
Code distributed by Google as part of the polymer project is also
|
7
7
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
8
8
|
-->
|
9
|
-
|
10
9
|
<!--
|
11
10
|
`paper-checkbox` is a button that can be either checked or unchecked. User
|
12
11
|
can tap the checkbox to check or uncheck it. Usually you use checkboxes
|
@@ -19,7 +18,7 @@ Example:
|
|
19
18
|
<paper-checkbox></paper-checkbox>
|
20
19
|
|
21
20
|
<paper-checkbox checked></paper-checkbox>
|
22
|
-
|
21
|
+
|
23
22
|
Styling checkbox:
|
24
23
|
|
25
24
|
To change the ink color for checked state:
|
@@ -27,10 +26,11 @@ To change the ink color for checked state:
|
|
27
26
|
paper-checkbox::shadow #ink[checked] {
|
28
27
|
color: #4285f4;
|
29
28
|
}
|
30
|
-
|
29
|
+
|
31
30
|
To change the checkbox checked color:
|
32
31
|
|
33
32
|
paper-checkbox::shadow #checkbox.checked {
|
33
|
+
background-color: #4285f4;
|
34
34
|
border-color: #4285f4;
|
35
35
|
}
|
36
36
|
|
@@ -40,7 +40,7 @@ To change the ink color for unchecked state:
|
|
40
40
|
color: #b5b5b5;
|
41
41
|
}
|
42
42
|
|
43
|
-
To change the
|
43
|
+
To change the checkbox unchecked color:
|
44
44
|
|
45
45
|
paper-checkbox::shadow #checkbox {
|
46
46
|
border-color: #b5b5b5;
|
@@ -52,59 +52,51 @@ To change the checbox unchecked color:
|
|
52
52
|
@homepage github.io
|
53
53
|
-->
|
54
54
|
|
55
|
+
<link rel="import" href="../polymer/polymer.html">
|
55
56
|
<link rel="import" href="../paper-radio-button/paper-radio-button.html">
|
56
57
|
|
57
58
|
<polymer-element name="paper-checkbox" extends="paper-radio-button" role="checkbox">
|
58
|
-
<template>
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
},
|
100
|
-
|
101
|
-
checkboxAnimationEnd: function() {
|
102
|
-
var cl = this.$.checkbox.classList;
|
103
|
-
cl.toggle('checkmark', this.checked && !cl.contains('checkmark'));
|
104
|
-
cl.toggle('box', !this.checked && !cl.contains('box'));
|
105
|
-
}
|
59
|
+
<template>
|
60
|
+
|
61
|
+
<link rel="stylesheet" href="paper-checkbox.css">
|
62
|
+
|
63
|
+
<div id="checkboxContainer" class="{{ {labeled: label} | tokenList }}">
|
64
|
+
|
65
|
+
<paper-ripple id="ink" class="circle recenteringTouch" checked?="{{!checked}}"></paper-ripple>
|
66
|
+
|
67
|
+
<div id="checkbox" class="{{ {checked: checked} | tokenList }}">
|
68
|
+
<div id="checkmark" class="{{ {hidden: !checked} | tokenList }}"></div>
|
69
|
+
</div>
|
70
|
+
|
71
|
+
</div>
|
72
|
+
|
73
|
+
<div id="checkboxLabel" hidden?="{{!label}}">{{label}}<content></content></div>
|
74
|
+
|
75
|
+
</template>
|
76
|
+
<script>
|
77
|
+
|
78
|
+
Polymer('paper-checkbox', {
|
79
|
+
|
80
|
+
/**
|
81
|
+
* Fired when the checked state changes due to user interaction.
|
82
|
+
*
|
83
|
+
* @event change
|
84
|
+
*/
|
85
|
+
|
86
|
+
/**
|
87
|
+
* Fired when the checked state changes.
|
88
|
+
*
|
89
|
+
* @event core-change
|
90
|
+
*/
|
91
|
+
|
92
|
+
toggles: true,
|
93
|
+
|
94
|
+
checkedChanged: function () {
|
95
|
+
this.setAttribute('aria-checked', this.checked ? 'true' : 'false');
|
96
|
+
this.fire('core-change');
|
97
|
+
}
|
98
|
+
|
99
|
+
});
|
106
100
|
|
107
|
-
|
108
|
-
|
109
|
-
</script>
|
101
|
+
</script>
|
110
102
|
</polymer-element>
|
@@ -11,7 +11,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
11
11
|
|
12
12
|
Material Design: <a href="http://www.google.com/design/spec/components/dialogs.html">Dialogs</a>
|
13
13
|
|
14
|
-
`paper-action-dialog` is a `paper-dialog` a row of buttons at the bottom that
|
14
|
+
`paper-action-dialog` is a `paper-dialog` with a row of buttons at the bottom that
|
15
15
|
indicate user action. The action buttons do not scroll with the dialog body.
|
16
16
|
|
17
17
|
The buttons should have either the `affirmative` or `dismissive` attribute. See
|
@@ -37,7 +37,7 @@ Example:
|
|
37
37
|
|
38
38
|
<link href="paper-dialog-base.html" rel="import">
|
39
39
|
|
40
|
-
<polymer-element name="paper-action-dialog" extends="paper-dialog-base" role="dialog">
|
40
|
+
<polymer-element name="paper-action-dialog" extends="paper-dialog-base" role="dialog" layout vertical>
|
41
41
|
|
42
42
|
<template>
|
43
43
|
|
@@ -67,7 +67,7 @@ Example:
|
|
67
67
|
<paper-shadow z="3" fit></paper-shadow>
|
68
68
|
|
69
69
|
<!-- need this because the host needs to be overflow: visible -->
|
70
|
-
<div id="scroller" relative>
|
70
|
+
<div id="scroller" relative flex auto>
|
71
71
|
<template if="{{heading}}">
|
72
72
|
<h1>{{heading}}</h1>
|
73
73
|
</template>
|