@roadtrip/components 2.25.1 → 2.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/road-autocomplete.cjs.entry.js +5 -0
- package/dist/cjs/road-badge_11.cjs.entry.js +4 -0
- package/dist/cjs/road-card.cjs.entry.js +7 -2
- package/dist/cjs/road-carousel.cjs.entry.js +32 -32
- package/dist/cjs/road-checkbox.cjs.entry.js +9 -0
- package/dist/cjs/road-counter.cjs.entry.js +4 -0
- package/dist/cjs/road-img.cjs.entry.js +6 -0
- package/dist/cjs/road-input.cjs.entry.js +9 -0
- package/dist/cjs/road-navbar-item.cjs.entry.js +6 -0
- package/dist/cjs/road-navbar.cjs.entry.js +4 -0
- package/dist/cjs/road-plate-number.cjs.entry.js +8 -0
- package/dist/cjs/road-radio-group.cjs.entry.js +2 -0
- package/dist/cjs/road-radio.cjs.entry.js +4 -0
- package/dist/cjs/road-range.cjs.entry.js +2 -0
- package/dist/cjs/road-select-filter.cjs.entry.js +5 -0
- package/dist/cjs/road-select.cjs.entry.js +8 -0
- package/dist/cjs/road-switch.cjs.entry.js +9 -0
- package/dist/cjs/road-tab-bar.cjs.entry.js +4 -0
- package/dist/cjs/road-tab-button.cjs.entry.js +6 -0
- package/dist/cjs/road-tabs.cjs.entry.js +2 -0
- package/dist/cjs/road-textarea.cjs.entry.js +8 -0
- package/dist/cjs/roadtrip.cjs.js +1 -1
- package/dist/collection/components/autocomplete/autocomplete.js +30 -2
- package/dist/collection/components/autocomplete/autocomplete.stories.js +6 -6
- package/dist/collection/components/button/button.js +41 -3
- package/dist/collection/components/button/button.stories.js +3 -3
- package/dist/collection/components/card/card.js +26 -4
- package/dist/collection/components/card/card.stories.js +1 -1
- package/dist/collection/components/carousel/carousel.js +48 -48
- package/dist/collection/components/carousel/carousel.stories.js +32 -32
- package/dist/collection/components/checkbox/checkbox.js +65 -5
- package/dist/collection/components/checkbox/checkbox.stories.js +6 -6
- package/dist/collection/components/counter/counter.js +41 -3
- package/dist/collection/components/counter/counter.stories.js +3 -3
- package/dist/collection/components/img/img.js +61 -4
- package/dist/collection/components/img/img.stories.js +1 -1
- package/dist/collection/components/input/input.js +88 -7
- package/dist/collection/components/input/input.stories.js +9 -9
- package/dist/collection/components/navbar/navbar.js +27 -0
- package/dist/collection/components/navbar/navbar.stories.js +1 -1
- package/dist/collection/components/navbar-item/navbar-item.js +30 -1
- package/dist/collection/components/plate-number/plate-number.js +87 -7
- package/dist/collection/components/plate-number/plate-number.stories.js +7 -7
- package/dist/collection/components/radio/radio.js +47 -3
- package/dist/collection/components/radio/radio.stories.js +6 -6
- package/dist/collection/components/radio-group/radio-group.js +21 -2
- package/dist/collection/components/range/range.js +21 -2
- package/dist/collection/components/range/range.stories.js +3 -3
- package/dist/collection/components/select/select.js +64 -5
- package/dist/collection/components/select/select.stories.js +6 -6
- package/dist/collection/components/select-filter/select-filter.js +36 -2
- package/dist/collection/components/select-filter/select-filter.stories.js +4 -4
- package/dist/collection/components/switch/switch.js +65 -5
- package/dist/collection/components/switch/switch.stories.js +6 -6
- package/dist/collection/components/tab-bar/tab-bar.js +21 -0
- package/dist/collection/components/tab-button/tab-button.js +30 -1
- package/dist/collection/components/tabs/tabs.js +39 -3
- package/dist/collection/components/tabs/tabs.stories.js +3 -3
- package/dist/collection/components/textarea/textarea.js +87 -7
- package/dist/collection/components/textarea/textarea.stories.js +9 -9
- package/dist/esm/loader.js +1 -1
- package/dist/esm/road-autocomplete.entry.js +5 -0
- package/dist/esm/road-badge_11.entry.js +4 -0
- package/dist/esm/road-card.entry.js +7 -2
- package/dist/esm/road-carousel.entry.js +32 -32
- package/dist/esm/road-checkbox.entry.js +9 -0
- package/dist/esm/road-counter.entry.js +4 -0
- package/dist/esm/road-img.entry.js +6 -0
- package/dist/esm/road-input.entry.js +9 -0
- package/dist/esm/road-navbar-item.entry.js +6 -0
- package/dist/esm/road-navbar.entry.js +4 -0
- package/dist/esm/road-plate-number.entry.js +8 -0
- package/dist/esm/road-radio-group.entry.js +2 -0
- package/dist/esm/road-radio.entry.js +4 -0
- package/dist/esm/road-range.entry.js +2 -0
- package/dist/esm/road-select-filter.entry.js +5 -0
- package/dist/esm/road-select.entry.js +8 -0
- package/dist/esm/road-switch.entry.js +9 -0
- package/dist/esm/road-tab-bar.entry.js +4 -0
- package/dist/esm/road-tab-button.entry.js +6 -0
- package/dist/esm/road-tabs.entry.js +2 -0
- package/dist/esm/road-textarea.entry.js +8 -0
- package/dist/esm/roadtrip.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/road-autocomplete.entry.js +1 -1
- package/dist/esm-es5/road-badge_11.entry.js +1 -1
- package/dist/esm-es5/road-card.entry.js +1 -1
- package/dist/esm-es5/road-carousel.entry.js +1 -1
- package/dist/esm-es5/road-checkbox.entry.js +1 -1
- package/dist/esm-es5/road-counter.entry.js +1 -1
- package/dist/esm-es5/road-img.entry.js +1 -1
- package/dist/esm-es5/road-input.entry.js +1 -1
- package/dist/esm-es5/road-navbar-item.entry.js +1 -1
- package/dist/esm-es5/road-navbar.entry.js +1 -1
- package/dist/esm-es5/road-plate-number.entry.js +1 -1
- package/dist/esm-es5/road-radio-group.entry.js +1 -1
- package/dist/esm-es5/road-radio.entry.js +1 -1
- package/dist/esm-es5/road-range.entry.js +1 -1
- package/dist/esm-es5/road-select-filter.entry.js +1 -1
- package/dist/esm-es5/road-select.entry.js +1 -1
- package/dist/esm-es5/road-switch.entry.js +1 -1
- package/dist/esm-es5/road-tab-bar.entry.js +1 -1
- package/dist/esm-es5/road-tab-button.entry.js +1 -1
- package/dist/esm-es5/road-tabs.entry.js +1 -1
- package/dist/esm-es5/road-textarea.entry.js +1 -1
- package/dist/esm-es5/roadtrip.js +1 -1
- package/dist/roadtrip/p-01cebe6a.entry.js +1 -0
- package/dist/roadtrip/{p-a64c67ad.system.entry.js → p-04deac86.system.entry.js} +1 -1
- package/dist/roadtrip/{p-a1628953.system.entry.js → p-06921946.system.entry.js} +1 -1
- package/dist/roadtrip/p-0ada8d41.entry.js +1 -0
- package/dist/roadtrip/{p-de1a3a53.system.entry.js → p-0be273e0.system.entry.js} +1 -1
- package/dist/roadtrip/{p-25c303d8.system.entry.js → p-0cfc0efd.system.entry.js} +1 -1
- package/dist/roadtrip/p-0e645dfb.system.entry.js +1 -0
- package/dist/roadtrip/p-0f532f30.system.entry.js +1 -0
- package/dist/roadtrip/p-1481edc3.entry.js +1 -0
- package/dist/roadtrip/{p-f2593f4b.system.entry.js → p-20a7a848.system.entry.js} +1 -1
- package/dist/roadtrip/p-299ecdd3.entry.js +1 -0
- package/dist/roadtrip/{p-06a743b4.system.entry.js → p-2f2dc4a0.system.entry.js} +1 -1
- package/dist/roadtrip/p-354107fa.entry.js +1 -0
- package/dist/roadtrip/p-3ee7ff2a.system.entry.js +1 -0
- package/dist/roadtrip/{p-eaf8ddaf.system.entry.js → p-42ccd4a2.system.entry.js} +1 -1
- package/dist/roadtrip/{p-cf4b48af.system.entry.js → p-646e75cf.system.entry.js} +1 -1
- package/dist/roadtrip/p-6deb1943.system.entry.js +1 -0
- package/dist/roadtrip/p-6def92c3.entry.js +1 -0
- package/dist/roadtrip/p-6f248970.entry.js +1 -0
- package/dist/roadtrip/{p-a467913d.system.entry.js → p-7070c8b5.system.entry.js} +1 -1
- package/dist/roadtrip/p-7130ff47.entry.js +1 -0
- package/dist/roadtrip/p-7304b650.system.entry.js +1 -0
- package/dist/roadtrip/p-7765931a.system.entry.js +1 -0
- package/dist/roadtrip/p-83f8960f.entry.js +1 -0
- package/dist/roadtrip/p-87eb24ee.entry.js +1 -0
- package/dist/roadtrip/{p-76f26f2b.system.entry.js → p-9afcfc7c.system.entry.js} +1 -1
- package/dist/roadtrip/p-a7ddae1b.system.entry.js +1 -0
- package/dist/roadtrip/{p-6cf85ea2.system.entry.js → p-a8db6630.system.entry.js} +1 -1
- package/dist/roadtrip/p-b0e17e68.entry.js +1 -0
- package/dist/roadtrip/p-b205281e.system.js +1 -1
- package/dist/roadtrip/p-bcf74e54.system.entry.js +1 -0
- package/dist/roadtrip/p-bd4a114b.entry.js +1 -0
- package/dist/roadtrip/p-bebdee1e.entry.js +1 -0
- package/dist/roadtrip/p-c637a847.entry.js +1 -0
- package/dist/roadtrip/{p-0f8da68b.entry.js → p-d06202e7.entry.js} +1 -1
- package/dist/roadtrip/p-e4f0f0d7.entry.js +1 -0
- package/dist/roadtrip/p-e6664bbe.entry.js +1 -0
- package/dist/roadtrip/p-ea45d823.entry.js +1 -0
- package/dist/roadtrip/p-f20a3658.entry.js +1 -0
- package/dist/roadtrip/p-f233746c.system.entry.js +1 -0
- package/dist/roadtrip/{p-54635daa.system.entry.js → p-f4f42d5c.system.entry.js} +1 -1
- package/dist/roadtrip/{p-3cb3107f.entry.js → p-fa68c113.entry.js} +1 -1
- package/dist/roadtrip/p-fce355f6.entry.js +1 -0
- package/dist/roadtrip/roadtrip.esm.js +1 -1
- package/dist/types/components/autocomplete/autocomplete.d.ts +5 -0
- package/dist/types/components/button/button.d.ts +4 -0
- package/dist/types/components/card/card.d.ts +5 -0
- package/dist/types/components/carousel/carousel.d.ts +16 -16
- package/dist/types/components/checkbox/checkbox.d.ts +9 -0
- package/dist/types/components/counter/counter.d.ts +6 -2
- package/dist/types/components/img/img.d.ts +15 -3
- package/dist/types/components/input/input.d.ts +10 -0
- package/dist/types/components/navbar/navbar.d.ts +2 -0
- package/dist/types/components/navbar-item/navbar-item.d.ts +2 -0
- package/dist/types/components/plate-number/plate-number.d.ts +10 -0
- package/dist/types/components/radio/radio.d.ts +4 -0
- package/dist/types/components/radio-group/radio-group.d.ts +4 -0
- package/dist/types/components/range/range.d.ts +4 -0
- package/dist/types/components/select/select.d.ts +8 -0
- package/dist/types/components/select-filter/select-filter.d.ts +5 -0
- package/dist/types/components/switch/switch.d.ts +9 -0
- package/dist/types/components/tab-bar/tab-bar.d.ts +2 -0
- package/dist/types/components/tab-button/tab-button.d.ts +2 -0
- package/dist/types/components/tabs/tabs.d.ts +8 -0
- package/dist/types/components/textarea/textarea.d.ts +10 -0
- package/dist/types/components.d.ts +56 -56
- package/package.json +1 -1
- package/dist/roadtrip/p-093a2288.system.entry.js +0 -1
- package/dist/roadtrip/p-0a5f2c0f.entry.js +0 -1
- package/dist/roadtrip/p-0b4b6077.system.entry.js +0 -1
- package/dist/roadtrip/p-16a1b3cb.entry.js +0 -1
- package/dist/roadtrip/p-194b2934.entry.js +0 -1
- package/dist/roadtrip/p-19c89e8f.system.entry.js +0 -1
- package/dist/roadtrip/p-1ef8acf8.system.entry.js +0 -1
- package/dist/roadtrip/p-4ef3684e.entry.js +0 -1
- package/dist/roadtrip/p-52f05a7c.system.entry.js +0 -1
- package/dist/roadtrip/p-5e8571d3.system.entry.js +0 -1
- package/dist/roadtrip/p-63aa411f.entry.js +0 -1
- package/dist/roadtrip/p-68af3047.entry.js +0 -1
- package/dist/roadtrip/p-6f744bd8.entry.js +0 -1
- package/dist/roadtrip/p-768d1a90.entry.js +0 -1
- package/dist/roadtrip/p-82a07b27.entry.js +0 -1
- package/dist/roadtrip/p-8d18ebce.entry.js +0 -1
- package/dist/roadtrip/p-92300d3f.entry.js +0 -1
- package/dist/roadtrip/p-93345613.system.entry.js +0 -1
- package/dist/roadtrip/p-93ccfda6.entry.js +0 -1
- package/dist/roadtrip/p-9a36bd11.system.entry.js +0 -1
- package/dist/roadtrip/p-a3bc0e5b.entry.js +0 -1
- package/dist/roadtrip/p-a7dc1c0c.entry.js +0 -1
- package/dist/roadtrip/p-a9c74737.entry.js +0 -1
- package/dist/roadtrip/p-adbaa790.entry.js +0 -1
- package/dist/roadtrip/p-b501c4b2.entry.js +0 -1
- package/dist/roadtrip/p-bba29599.entry.js +0 -1
- package/dist/roadtrip/p-e4b0578a.entry.js +0 -1
- package/dist/roadtrip/p-e56b3c0f.system.entry.js +0 -1
|
@@ -11,22 +11,22 @@ export default {
|
|
|
11
11
|
parameters: {
|
|
12
12
|
actions: {
|
|
13
13
|
handles: [
|
|
14
|
-
'
|
|
15
|
-
'
|
|
16
|
-
'
|
|
17
|
-
'
|
|
18
|
-
'
|
|
19
|
-
'
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
'
|
|
23
|
-
'
|
|
24
|
-
'
|
|
25
|
-
'
|
|
26
|
-
'
|
|
27
|
-
'
|
|
28
|
-
'
|
|
29
|
-
'
|
|
14
|
+
'roadslidesdidload',
|
|
15
|
+
'roadslidetap',
|
|
16
|
+
'roadslidedoubletap',
|
|
17
|
+
'roadslidewillchange',
|
|
18
|
+
'roadslidedidchange',
|
|
19
|
+
'roadslidenextstart',
|
|
20
|
+
'roadslideprevstart',
|
|
21
|
+
'roadslidenextend',
|
|
22
|
+
'roadslideprevend',
|
|
23
|
+
'roadslidetransitionstart',
|
|
24
|
+
'roadslidetransitionend',
|
|
25
|
+
'roadslidedrag',
|
|
26
|
+
'roadslidereachstart',
|
|
27
|
+
'roadslidereachend',
|
|
28
|
+
'roadslidetouchstart',
|
|
29
|
+
'roadslidetouchend'
|
|
30
30
|
],
|
|
31
31
|
},
|
|
32
32
|
docs: {
|
|
@@ -240,82 +240,82 @@ export default {
|
|
|
240
240
|
summary: null,
|
|
241
241
|
},
|
|
242
242
|
},
|
|
243
|
-
|
|
243
|
+
roadslidesdidload: {
|
|
244
244
|
control: {
|
|
245
245
|
type: null,
|
|
246
246
|
},
|
|
247
247
|
},
|
|
248
|
-
|
|
248
|
+
roadslidetap: {
|
|
249
249
|
control: {
|
|
250
250
|
type: null,
|
|
251
251
|
},
|
|
252
252
|
},
|
|
253
|
-
|
|
253
|
+
roadslidedoubletap: {
|
|
254
254
|
control: {
|
|
255
255
|
type: null,
|
|
256
256
|
},
|
|
257
257
|
},
|
|
258
|
-
|
|
258
|
+
roadslidewillchange: {
|
|
259
259
|
control: {
|
|
260
260
|
type: null,
|
|
261
261
|
},
|
|
262
262
|
},
|
|
263
|
-
|
|
263
|
+
roadslidedidchange: {
|
|
264
264
|
control: {
|
|
265
265
|
type: null,
|
|
266
266
|
},
|
|
267
267
|
},
|
|
268
|
-
|
|
268
|
+
roadslidenextstart: {
|
|
269
269
|
control: {
|
|
270
270
|
type: null,
|
|
271
271
|
},
|
|
272
272
|
},
|
|
273
|
-
|
|
273
|
+
roadslideprevstart: {
|
|
274
274
|
control: {
|
|
275
275
|
type: null,
|
|
276
276
|
},
|
|
277
277
|
},
|
|
278
|
-
|
|
278
|
+
roadslidenextend: {
|
|
279
279
|
control: {
|
|
280
280
|
type: null,
|
|
281
281
|
},
|
|
282
282
|
},
|
|
283
|
-
|
|
283
|
+
roadslideprevend: {
|
|
284
284
|
control: {
|
|
285
285
|
type: null,
|
|
286
286
|
},
|
|
287
287
|
},
|
|
288
|
-
|
|
288
|
+
roadslidetransitionstart: {
|
|
289
289
|
control: {
|
|
290
290
|
type: null,
|
|
291
291
|
},
|
|
292
292
|
},
|
|
293
|
-
|
|
293
|
+
roadslidetransitionend: {
|
|
294
294
|
control: {
|
|
295
295
|
type: null,
|
|
296
296
|
},
|
|
297
297
|
},
|
|
298
|
-
|
|
298
|
+
roadslidedrag: {
|
|
299
299
|
control: {
|
|
300
300
|
type: null,
|
|
301
301
|
},
|
|
302
302
|
},
|
|
303
|
-
|
|
303
|
+
roadslidereachstart: {
|
|
304
304
|
control: {
|
|
305
305
|
type: null,
|
|
306
306
|
},
|
|
307
307
|
},
|
|
308
|
-
|
|
308
|
+
roadslidereachend: {
|
|
309
309
|
control: {
|
|
310
310
|
type: null,
|
|
311
311
|
},
|
|
312
312
|
},
|
|
313
|
-
|
|
313
|
+
roadslidetouchstart: {
|
|
314
314
|
control: {
|
|
315
315
|
type: null,
|
|
316
316
|
},
|
|
317
317
|
},
|
|
318
|
-
|
|
318
|
+
roadslidetouchend: {
|
|
319
319
|
control: {
|
|
320
320
|
type: null,
|
|
321
321
|
},
|
|
@@ -41,13 +41,19 @@ export class Checkbox {
|
|
|
41
41
|
this.checked = !this.checked;
|
|
42
42
|
};
|
|
43
43
|
this.onFocus = () => {
|
|
44
|
+
this.roadfocus.emit();
|
|
44
45
|
this.roadFocus.emit();
|
|
45
46
|
};
|
|
46
47
|
this.onBlur = () => {
|
|
48
|
+
this.roadblur.emit();
|
|
47
49
|
this.roadBlur.emit();
|
|
48
50
|
};
|
|
49
51
|
}
|
|
50
52
|
checkedChanged(isChecked) {
|
|
53
|
+
this.roadchange.emit({
|
|
54
|
+
checked: isChecked,
|
|
55
|
+
value: this.value,
|
|
56
|
+
});
|
|
51
57
|
this.roadChange.emit({
|
|
52
58
|
checked: isChecked,
|
|
53
59
|
value: this.value,
|
|
@@ -239,8 +245,8 @@ export class Checkbox {
|
|
|
239
245
|
}
|
|
240
246
|
}; }
|
|
241
247
|
static get events() { return [{
|
|
242
|
-
"method": "
|
|
243
|
-
"name": "
|
|
248
|
+
"method": "roadchange",
|
|
249
|
+
"name": "roadchange",
|
|
244
250
|
"bubbles": true,
|
|
245
251
|
"cancelable": true,
|
|
246
252
|
"composed": true,
|
|
@@ -253,15 +259,66 @@ export class Checkbox {
|
|
|
253
259
|
"resolved": "{ checked: boolean; value: string | null | undefined; }",
|
|
254
260
|
"references": {}
|
|
255
261
|
}
|
|
262
|
+
}, {
|
|
263
|
+
"method": "roadChange",
|
|
264
|
+
"name": "roadChange",
|
|
265
|
+
"bubbles": true,
|
|
266
|
+
"cancelable": true,
|
|
267
|
+
"composed": true,
|
|
268
|
+
"docs": {
|
|
269
|
+
"tags": [{
|
|
270
|
+
"name": "internal",
|
|
271
|
+
"text": undefined
|
|
272
|
+
}],
|
|
273
|
+
"text": ""
|
|
274
|
+
},
|
|
275
|
+
"complexType": {
|
|
276
|
+
"original": "{\n checked: boolean,\n value: string | undefined | null\n }",
|
|
277
|
+
"resolved": "{ checked: boolean; value: string | null | undefined; }",
|
|
278
|
+
"references": {}
|
|
279
|
+
}
|
|
280
|
+
}, {
|
|
281
|
+
"method": "roadfocus",
|
|
282
|
+
"name": "roadfocus",
|
|
283
|
+
"bubbles": true,
|
|
284
|
+
"cancelable": true,
|
|
285
|
+
"composed": true,
|
|
286
|
+
"docs": {
|
|
287
|
+
"tags": [],
|
|
288
|
+
"text": "Emitted when the checkbox has focus."
|
|
289
|
+
},
|
|
290
|
+
"complexType": {
|
|
291
|
+
"original": "void",
|
|
292
|
+
"resolved": "void",
|
|
293
|
+
"references": {}
|
|
294
|
+
}
|
|
256
295
|
}, {
|
|
257
296
|
"method": "roadFocus",
|
|
258
297
|
"name": "roadFocus",
|
|
259
298
|
"bubbles": true,
|
|
260
299
|
"cancelable": true,
|
|
261
300
|
"composed": true,
|
|
301
|
+
"docs": {
|
|
302
|
+
"tags": [{
|
|
303
|
+
"name": "internal",
|
|
304
|
+
"text": undefined
|
|
305
|
+
}],
|
|
306
|
+
"text": ""
|
|
307
|
+
},
|
|
308
|
+
"complexType": {
|
|
309
|
+
"original": "void",
|
|
310
|
+
"resolved": "void",
|
|
311
|
+
"references": {}
|
|
312
|
+
}
|
|
313
|
+
}, {
|
|
314
|
+
"method": "roadblur",
|
|
315
|
+
"name": "roadblur",
|
|
316
|
+
"bubbles": true,
|
|
317
|
+
"cancelable": true,
|
|
318
|
+
"composed": true,
|
|
262
319
|
"docs": {
|
|
263
320
|
"tags": [],
|
|
264
|
-
"text": "Emitted when the checkbox
|
|
321
|
+
"text": "Emitted when the checkbox loses focus."
|
|
265
322
|
},
|
|
266
323
|
"complexType": {
|
|
267
324
|
"original": "void",
|
|
@@ -275,8 +332,11 @@ export class Checkbox {
|
|
|
275
332
|
"cancelable": true,
|
|
276
333
|
"composed": true,
|
|
277
334
|
"docs": {
|
|
278
|
-
"tags": [
|
|
279
|
-
|
|
335
|
+
"tags": [{
|
|
336
|
+
"name": "internal",
|
|
337
|
+
"text": undefined
|
|
338
|
+
}],
|
|
339
|
+
"text": ""
|
|
280
340
|
},
|
|
281
341
|
"complexType": {
|
|
282
342
|
"original": "void",
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
component: 'road-checkbox',
|
|
7
7
|
parameters: {
|
|
8
8
|
actions: {
|
|
9
|
-
handles: ['
|
|
9
|
+
handles: ['roadblur', 'roadfocus'],
|
|
10
10
|
},
|
|
11
11
|
},
|
|
12
12
|
argTypes: {
|
|
@@ -42,18 +42,18 @@ export default {
|
|
|
42
42
|
type: null,
|
|
43
43
|
},
|
|
44
44
|
},
|
|
45
|
-
|
|
45
|
+
roadblur: {
|
|
46
46
|
control: {
|
|
47
47
|
type: null,
|
|
48
48
|
},
|
|
49
49
|
},
|
|
50
|
-
|
|
50
|
+
roadfocus: {
|
|
51
51
|
control: {
|
|
52
52
|
type: null,
|
|
53
53
|
},
|
|
54
54
|
},
|
|
55
|
-
|
|
56
|
-
action: '
|
|
55
|
+
roadchange: {
|
|
56
|
+
action: 'roadchange',
|
|
57
57
|
control: {
|
|
58
58
|
type: null,
|
|
59
59
|
},
|
|
@@ -80,7 +80,7 @@ const Template = (args) => html`
|
|
|
80
80
|
required="${ifDefined(args.required)}"
|
|
81
81
|
value="${ifDefined(args.value)}"
|
|
82
82
|
checkbox-id="${ifDefined(args['checkbox-id'])}"
|
|
83
|
-
@
|
|
83
|
+
@roadchange=${event => args.roadchange(event.detail)}
|
|
84
84
|
></road-checkbox>
|
|
85
85
|
`;
|
|
86
86
|
|
|
@@ -11,10 +11,12 @@ export class Counter {
|
|
|
11
11
|
this.value = 1;
|
|
12
12
|
this.increase = () => {
|
|
13
13
|
this.el.querySelector('input').stepUp();
|
|
14
|
+
this.roadincrease.emit();
|
|
14
15
|
this.roadIncrease.emit();
|
|
15
16
|
};
|
|
16
17
|
this.decrease = () => {
|
|
17
18
|
this.el.querySelector('input').stepDown();
|
|
19
|
+
this.roaddecrease.emit();
|
|
18
20
|
this.roadDecrease.emit();
|
|
19
21
|
};
|
|
20
22
|
}
|
|
@@ -139,14 +141,47 @@ export class Counter {
|
|
|
139
141
|
}
|
|
140
142
|
}; }
|
|
141
143
|
static get events() { return [{
|
|
144
|
+
"method": "roadincrease",
|
|
145
|
+
"name": "roadincrease",
|
|
146
|
+
"bubbles": true,
|
|
147
|
+
"cancelable": true,
|
|
148
|
+
"composed": true,
|
|
149
|
+
"docs": {
|
|
150
|
+
"tags": [],
|
|
151
|
+
"text": "Emitted when the plus button is clicked"
|
|
152
|
+
},
|
|
153
|
+
"complexType": {
|
|
154
|
+
"original": "void",
|
|
155
|
+
"resolved": "void",
|
|
156
|
+
"references": {}
|
|
157
|
+
}
|
|
158
|
+
}, {
|
|
142
159
|
"method": "roadIncrease",
|
|
143
160
|
"name": "roadIncrease",
|
|
144
161
|
"bubbles": true,
|
|
145
162
|
"cancelable": true,
|
|
146
163
|
"composed": true,
|
|
164
|
+
"docs": {
|
|
165
|
+
"tags": [{
|
|
166
|
+
"name": "internal",
|
|
167
|
+
"text": undefined
|
|
168
|
+
}],
|
|
169
|
+
"text": ""
|
|
170
|
+
},
|
|
171
|
+
"complexType": {
|
|
172
|
+
"original": "void",
|
|
173
|
+
"resolved": "void",
|
|
174
|
+
"references": {}
|
|
175
|
+
}
|
|
176
|
+
}, {
|
|
177
|
+
"method": "roaddecrease",
|
|
178
|
+
"name": "roaddecrease",
|
|
179
|
+
"bubbles": true,
|
|
180
|
+
"cancelable": true,
|
|
181
|
+
"composed": true,
|
|
147
182
|
"docs": {
|
|
148
183
|
"tags": [],
|
|
149
|
-
"text": "Emitted when the
|
|
184
|
+
"text": "Emitted when the minus button is clicked"
|
|
150
185
|
},
|
|
151
186
|
"complexType": {
|
|
152
187
|
"original": "void",
|
|
@@ -160,8 +195,11 @@ export class Counter {
|
|
|
160
195
|
"cancelable": true,
|
|
161
196
|
"composed": true,
|
|
162
197
|
"docs": {
|
|
163
|
-
"tags": [
|
|
164
|
-
|
|
198
|
+
"tags": [{
|
|
199
|
+
"name": "internal",
|
|
200
|
+
"text": undefined
|
|
201
|
+
}],
|
|
202
|
+
"text": ""
|
|
165
203
|
},
|
|
166
204
|
"complexType": {
|
|
167
205
|
"original": "void",
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
component: 'road-counter',
|
|
7
7
|
parameters: {
|
|
8
8
|
actions: {
|
|
9
|
-
handles: ['
|
|
9
|
+
handles: ['roadchange', 'roadinput', 'roadblur', 'roadfocus', 'roadincrease', 'roaddecrease'],
|
|
10
10
|
},
|
|
11
11
|
},
|
|
12
12
|
argTypes: {
|
|
@@ -31,12 +31,12 @@ export default {
|
|
|
31
31
|
value: {
|
|
32
32
|
control: 'number',
|
|
33
33
|
},
|
|
34
|
-
|
|
34
|
+
roaddecrease: {
|
|
35
35
|
control: {
|
|
36
36
|
type: null,
|
|
37
37
|
},
|
|
38
38
|
},
|
|
39
|
-
|
|
39
|
+
roadincrease: {
|
|
40
40
|
control: {
|
|
41
41
|
type: null,
|
|
42
42
|
},
|
|
@@ -5,9 +5,11 @@ import { Component, Element, Event, Host, Prop, State, Watch, h } from '@stencil
|
|
|
5
5
|
export class Img {
|
|
6
6
|
constructor() {
|
|
7
7
|
this.onLoad = () => {
|
|
8
|
+
this.roadimgdidload.emit();
|
|
8
9
|
this.roadImgDidLoad.emit();
|
|
9
10
|
};
|
|
10
11
|
this.onError = () => {
|
|
12
|
+
this.roaderror.emit();
|
|
11
13
|
this.roadError.emit();
|
|
12
14
|
};
|
|
13
15
|
}
|
|
@@ -45,6 +47,7 @@ export class Img {
|
|
|
45
47
|
load() {
|
|
46
48
|
this.loadError = this.onError;
|
|
47
49
|
this.loadSrc = this.src;
|
|
50
|
+
this.roadimgwillload.emit();
|
|
48
51
|
this.roadImgWillLoad.emit();
|
|
49
52
|
}
|
|
50
53
|
removeIO() {
|
|
@@ -107,14 +110,47 @@ export class Img {
|
|
|
107
110
|
"loadError": {}
|
|
108
111
|
}; }
|
|
109
112
|
static get events() { return [{
|
|
113
|
+
"method": "roadimgwillload",
|
|
114
|
+
"name": "roadimgwillload",
|
|
115
|
+
"bubbles": true,
|
|
116
|
+
"cancelable": true,
|
|
117
|
+
"composed": true,
|
|
118
|
+
"docs": {
|
|
119
|
+
"tags": [],
|
|
120
|
+
"text": "Emitted when the img src has been set"
|
|
121
|
+
},
|
|
122
|
+
"complexType": {
|
|
123
|
+
"original": "void",
|
|
124
|
+
"resolved": "void",
|
|
125
|
+
"references": {}
|
|
126
|
+
}
|
|
127
|
+
}, {
|
|
110
128
|
"method": "roadImgWillLoad",
|
|
111
129
|
"name": "roadImgWillLoad",
|
|
112
130
|
"bubbles": true,
|
|
113
131
|
"cancelable": true,
|
|
114
132
|
"composed": true,
|
|
133
|
+
"docs": {
|
|
134
|
+
"tags": [{
|
|
135
|
+
"name": "internal",
|
|
136
|
+
"text": undefined
|
|
137
|
+
}],
|
|
138
|
+
"text": ""
|
|
139
|
+
},
|
|
140
|
+
"complexType": {
|
|
141
|
+
"original": "void",
|
|
142
|
+
"resolved": "void",
|
|
143
|
+
"references": {}
|
|
144
|
+
}
|
|
145
|
+
}, {
|
|
146
|
+
"method": "roadimgdidload",
|
|
147
|
+
"name": "roadimgdidload",
|
|
148
|
+
"bubbles": true,
|
|
149
|
+
"cancelable": true,
|
|
150
|
+
"composed": true,
|
|
115
151
|
"docs": {
|
|
116
152
|
"tags": [],
|
|
117
|
-
"text": "Emitted when the
|
|
153
|
+
"text": "Emitted when the image has finished loading"
|
|
118
154
|
},
|
|
119
155
|
"complexType": {
|
|
120
156
|
"original": "void",
|
|
@@ -127,9 +163,27 @@ export class Img {
|
|
|
127
163
|
"bubbles": true,
|
|
128
164
|
"cancelable": true,
|
|
129
165
|
"composed": true,
|
|
166
|
+
"docs": {
|
|
167
|
+
"tags": [{
|
|
168
|
+
"name": "internal",
|
|
169
|
+
"text": undefined
|
|
170
|
+
}],
|
|
171
|
+
"text": ""
|
|
172
|
+
},
|
|
173
|
+
"complexType": {
|
|
174
|
+
"original": "void",
|
|
175
|
+
"resolved": "void",
|
|
176
|
+
"references": {}
|
|
177
|
+
}
|
|
178
|
+
}, {
|
|
179
|
+
"method": "roaderror",
|
|
180
|
+
"name": "roaderror",
|
|
181
|
+
"bubbles": true,
|
|
182
|
+
"cancelable": true,
|
|
183
|
+
"composed": true,
|
|
130
184
|
"docs": {
|
|
131
185
|
"tags": [],
|
|
132
|
-
"text": "Emitted when the
|
|
186
|
+
"text": "Emitted when the img fails to load"
|
|
133
187
|
},
|
|
134
188
|
"complexType": {
|
|
135
189
|
"original": "void",
|
|
@@ -143,8 +197,11 @@ export class Img {
|
|
|
143
197
|
"cancelable": true,
|
|
144
198
|
"composed": true,
|
|
145
199
|
"docs": {
|
|
146
|
-
"tags": [
|
|
147
|
-
|
|
200
|
+
"tags": [{
|
|
201
|
+
"name": "internal",
|
|
202
|
+
"text": undefined
|
|
203
|
+
}],
|
|
204
|
+
"text": ""
|
|
148
205
|
},
|
|
149
206
|
"complexType": {
|
|
150
207
|
"original": "void",
|
|
@@ -76,22 +76,27 @@ export class Input {
|
|
|
76
76
|
if (input) {
|
|
77
77
|
this.value = input.value || '';
|
|
78
78
|
}
|
|
79
|
+
this.roadinput.emit(ev);
|
|
79
80
|
this.roadInput.emit(ev);
|
|
80
81
|
};
|
|
81
82
|
this.onBlur = () => {
|
|
83
|
+
this.roadblur.emit();
|
|
82
84
|
this.roadBlur.emit();
|
|
83
85
|
};
|
|
84
86
|
this.onFocus = () => {
|
|
87
|
+
this.roadfocus.emit();
|
|
85
88
|
this.roadFocus.emit();
|
|
86
89
|
};
|
|
87
90
|
}
|
|
88
91
|
debounceChanged() {
|
|
92
|
+
this.roadchange = debounceEvent(this.roadchange, this.debounce);
|
|
89
93
|
this.roadChange = debounceEvent(this.roadChange, this.debounce);
|
|
90
94
|
}
|
|
91
95
|
/**
|
|
92
96
|
* Update the native input element when the value changes
|
|
93
97
|
*/
|
|
94
98
|
valueChanged() {
|
|
99
|
+
this.roadchange.emit({ value: this.value == null ? this.value : this.value.toString() });
|
|
95
100
|
this.roadChange.emit({ value: this.value == null ? this.value : this.value.toString() });
|
|
96
101
|
}
|
|
97
102
|
getValue() {
|
|
@@ -570,8 +575,8 @@ export class Input {
|
|
|
570
575
|
}
|
|
571
576
|
}; }
|
|
572
577
|
static get events() { return [{
|
|
573
|
-
"method": "
|
|
574
|
-
"name": "
|
|
578
|
+
"method": "roadinput",
|
|
579
|
+
"name": "roadinput",
|
|
575
580
|
"bubbles": true,
|
|
576
581
|
"cancelable": true,
|
|
577
582
|
"composed": true,
|
|
@@ -589,8 +594,30 @@ export class Input {
|
|
|
589
594
|
}
|
|
590
595
|
}
|
|
591
596
|
}, {
|
|
592
|
-
"method": "
|
|
593
|
-
"name": "
|
|
597
|
+
"method": "roadInput",
|
|
598
|
+
"name": "roadInput",
|
|
599
|
+
"bubbles": true,
|
|
600
|
+
"cancelable": true,
|
|
601
|
+
"composed": true,
|
|
602
|
+
"docs": {
|
|
603
|
+
"tags": [{
|
|
604
|
+
"name": "internal",
|
|
605
|
+
"text": undefined
|
|
606
|
+
}],
|
|
607
|
+
"text": ""
|
|
608
|
+
},
|
|
609
|
+
"complexType": {
|
|
610
|
+
"original": "KeyboardEvent",
|
|
611
|
+
"resolved": "KeyboardEvent",
|
|
612
|
+
"references": {
|
|
613
|
+
"KeyboardEvent": {
|
|
614
|
+
"location": "global"
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
}, {
|
|
619
|
+
"method": "roadchange",
|
|
620
|
+
"name": "roadchange",
|
|
594
621
|
"bubbles": true,
|
|
595
622
|
"cancelable": true,
|
|
596
623
|
"composed": true,
|
|
@@ -603,15 +630,66 @@ export class Input {
|
|
|
603
630
|
"resolved": "{ value: string | null | undefined; }",
|
|
604
631
|
"references": {}
|
|
605
632
|
}
|
|
633
|
+
}, {
|
|
634
|
+
"method": "roadChange",
|
|
635
|
+
"name": "roadChange",
|
|
636
|
+
"bubbles": true,
|
|
637
|
+
"cancelable": true,
|
|
638
|
+
"composed": true,
|
|
639
|
+
"docs": {
|
|
640
|
+
"tags": [{
|
|
641
|
+
"name": "internal",
|
|
642
|
+
"text": undefined
|
|
643
|
+
}],
|
|
644
|
+
"text": ""
|
|
645
|
+
},
|
|
646
|
+
"complexType": {
|
|
647
|
+
"original": "{\n value: string | undefined | null;\n }",
|
|
648
|
+
"resolved": "{ value: string | null | undefined; }",
|
|
649
|
+
"references": {}
|
|
650
|
+
}
|
|
651
|
+
}, {
|
|
652
|
+
"method": "roadblur",
|
|
653
|
+
"name": "roadblur",
|
|
654
|
+
"bubbles": true,
|
|
655
|
+
"cancelable": true,
|
|
656
|
+
"composed": true,
|
|
657
|
+
"docs": {
|
|
658
|
+
"tags": [],
|
|
659
|
+
"text": "Emitted when the input loses focus."
|
|
660
|
+
},
|
|
661
|
+
"complexType": {
|
|
662
|
+
"original": "void",
|
|
663
|
+
"resolved": "void",
|
|
664
|
+
"references": {}
|
|
665
|
+
}
|
|
606
666
|
}, {
|
|
607
667
|
"method": "roadBlur",
|
|
608
668
|
"name": "roadBlur",
|
|
609
669
|
"bubbles": true,
|
|
610
670
|
"cancelable": true,
|
|
611
671
|
"composed": true,
|
|
672
|
+
"docs": {
|
|
673
|
+
"tags": [{
|
|
674
|
+
"name": "internal",
|
|
675
|
+
"text": undefined
|
|
676
|
+
}],
|
|
677
|
+
"text": ""
|
|
678
|
+
},
|
|
679
|
+
"complexType": {
|
|
680
|
+
"original": "void",
|
|
681
|
+
"resolved": "void",
|
|
682
|
+
"references": {}
|
|
683
|
+
}
|
|
684
|
+
}, {
|
|
685
|
+
"method": "roadfocus",
|
|
686
|
+
"name": "roadfocus",
|
|
687
|
+
"bubbles": true,
|
|
688
|
+
"cancelable": true,
|
|
689
|
+
"composed": true,
|
|
612
690
|
"docs": {
|
|
613
691
|
"tags": [],
|
|
614
|
-
"text": "Emitted when the input
|
|
692
|
+
"text": "Emitted when the input has focus."
|
|
615
693
|
},
|
|
616
694
|
"complexType": {
|
|
617
695
|
"original": "void",
|
|
@@ -625,8 +703,11 @@ export class Input {
|
|
|
625
703
|
"cancelable": true,
|
|
626
704
|
"composed": true,
|
|
627
705
|
"docs": {
|
|
628
|
-
"tags": [
|
|
629
|
-
|
|
706
|
+
"tags": [{
|
|
707
|
+
"name": "internal",
|
|
708
|
+
"text": undefined
|
|
709
|
+
}],
|
|
710
|
+
"text": ""
|
|
630
711
|
},
|
|
631
712
|
"complexType": {
|
|
632
713
|
"original": "void",
|