@roadtrip/components 2.25.1 → 2.27.1
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-duration.cjs.entry.js +60 -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 +19 -3
- 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/collection-manifest.json +1 -0
- 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 +3 -3
- 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/duration/duration.css +31 -0
- package/dist/collection/components/duration/duration.js +212 -0
- package/dist/collection/components/duration/duration.stories.js +108 -0
- package/dist/collection/components/icon/svg/device-smartphone-music-color.svg +1 -0
- package/dist/collection/components/icon/svg/device-smartphone-music.svg +1 -0
- package/dist/collection/components/icon/svg/mic-off-outline-color.svg +1 -0
- package/dist/collection/components/icon/svg/mic-off-outline.svg +1 -0
- package/dist/collection/components/icon/svg/mic-off.svg +1 -0
- package/dist/collection/components/icon/svg/people-community-outline-color.svg +1 -0
- package/dist/collection/components/icon/svg/people-community-outline.svg +1 -0
- package/dist/collection/components/icon/svg/people-community.svg +1 -0
- package/dist/collection/components/icon/svg/people-coworker-color.svg +1 -1
- package/dist/collection/components/icon/svg/people-coworker.svg +1 -1
- package/dist/collection/components/icon/svg/player-radio-music-outline-color.svg +1 -0
- package/dist/collection/components/icon/svg/player-radio-music-outline.svg +1 -0
- package/dist/collection/components/icon/svg/station-electric-outline-color.svg +1 -0
- package/dist/collection/components/icon/svg/station-electric-outline.svg +1 -0
- 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.css +22 -3
- package/dist/collection/components/plate-number/plate-number.js +133 -9
- package/dist/collection/components/plate-number/plate-number.stories.js +69 -45
- 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-duration.entry.js +56 -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 +19 -3
- 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-duration.entry.js +1 -0
- 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/html.html-data.json +43 -0
- package/dist/icons/icons.svg +1 -1
- package/dist/icons/index.d.ts +12 -0
- package/dist/icons/index.js +14 -2
- 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-6bc4c517.system.entry.js +1 -0
- 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-7a07a70f.entry.js +1 -0
- package/dist/roadtrip/p-87eb24ee.entry.js +1 -0
- package/dist/roadtrip/p-8dc74557.system.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-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-f7cd0928.entry.js +1 -0
- 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/roadtrip/svg/device-smartphone-music-color.svg +1 -0
- package/dist/roadtrip/svg/device-smartphone-music.svg +1 -0
- package/dist/roadtrip/svg/mic-off-outline-color.svg +1 -0
- package/dist/roadtrip/svg/mic-off-outline.svg +1 -0
- package/dist/roadtrip/svg/mic-off.svg +1 -0
- package/dist/roadtrip/svg/people-community-outline-color.svg +1 -0
- package/dist/roadtrip/svg/people-community-outline.svg +1 -0
- package/dist/roadtrip/svg/people-community.svg +1 -0
- package/dist/roadtrip/svg/people-coworker-color.svg +1 -1
- package/dist/roadtrip/svg/people-coworker.svg +1 -1
- package/dist/roadtrip/svg/player-radio-music-outline-color.svg +1 -0
- package/dist/roadtrip/svg/player-radio-music-outline.svg +1 -0
- package/dist/roadtrip/svg/station-electric-outline-color.svg +1 -0
- package/dist/roadtrip/svg/station-electric-outline.svg +1 -0
- 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/duration/duration.d.ts +44 -0
- 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 +18 -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 +140 -56
- package/icons/icons.svg +1 -1
- package/icons/index.d.ts +12 -0
- package/icons/index.js +14 -2
- 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
|
@@ -50,13 +50,19 @@ export class Switch {
|
|
|
50
50
|
this.checked = !this.checked;
|
|
51
51
|
};
|
|
52
52
|
this.onFocus = () => {
|
|
53
|
+
this.roadfocus.emit();
|
|
53
54
|
this.roadFocus.emit();
|
|
54
55
|
};
|
|
55
56
|
this.onBlur = () => {
|
|
56
57
|
this.roadBlur.emit();
|
|
58
|
+
this.roadblur.emit();
|
|
57
59
|
};
|
|
58
60
|
}
|
|
59
61
|
checkedChanged(isChecked) {
|
|
62
|
+
this.roadchange.emit({
|
|
63
|
+
checked: isChecked,
|
|
64
|
+
value: this.value,
|
|
65
|
+
});
|
|
60
66
|
this.roadChange.emit({
|
|
61
67
|
checked: isChecked,
|
|
62
68
|
value: this.value,
|
|
@@ -289,8 +295,8 @@ export class Switch {
|
|
|
289
295
|
}
|
|
290
296
|
}; }
|
|
291
297
|
static get events() { return [{
|
|
292
|
-
"method": "
|
|
293
|
-
"name": "
|
|
298
|
+
"method": "roadchange",
|
|
299
|
+
"name": "roadchange",
|
|
294
300
|
"bubbles": true,
|
|
295
301
|
"cancelable": true,
|
|
296
302
|
"composed": true,
|
|
@@ -303,15 +309,66 @@ export class Switch {
|
|
|
303
309
|
"resolved": "{ checked: boolean; value: string | null | undefined; }",
|
|
304
310
|
"references": {}
|
|
305
311
|
}
|
|
312
|
+
}, {
|
|
313
|
+
"method": "roadChange",
|
|
314
|
+
"name": "roadChange",
|
|
315
|
+
"bubbles": true,
|
|
316
|
+
"cancelable": true,
|
|
317
|
+
"composed": true,
|
|
318
|
+
"docs": {
|
|
319
|
+
"tags": [{
|
|
320
|
+
"name": "internal",
|
|
321
|
+
"text": undefined
|
|
322
|
+
}],
|
|
323
|
+
"text": ""
|
|
324
|
+
},
|
|
325
|
+
"complexType": {
|
|
326
|
+
"original": "{\n checked: boolean;\n value: string | undefined | null\n }",
|
|
327
|
+
"resolved": "{ checked: boolean; value: string | null | undefined; }",
|
|
328
|
+
"references": {}
|
|
329
|
+
}
|
|
330
|
+
}, {
|
|
331
|
+
"method": "roadfocus",
|
|
332
|
+
"name": "roadfocus",
|
|
333
|
+
"bubbles": true,
|
|
334
|
+
"cancelable": true,
|
|
335
|
+
"composed": true,
|
|
336
|
+
"docs": {
|
|
337
|
+
"tags": [],
|
|
338
|
+
"text": "Emitted when the switch has focus."
|
|
339
|
+
},
|
|
340
|
+
"complexType": {
|
|
341
|
+
"original": "void",
|
|
342
|
+
"resolved": "void",
|
|
343
|
+
"references": {}
|
|
344
|
+
}
|
|
306
345
|
}, {
|
|
307
346
|
"method": "roadFocus",
|
|
308
347
|
"name": "roadFocus",
|
|
309
348
|
"bubbles": true,
|
|
310
349
|
"cancelable": true,
|
|
311
350
|
"composed": true,
|
|
351
|
+
"docs": {
|
|
352
|
+
"tags": [{
|
|
353
|
+
"name": "internal",
|
|
354
|
+
"text": undefined
|
|
355
|
+
}],
|
|
356
|
+
"text": ""
|
|
357
|
+
},
|
|
358
|
+
"complexType": {
|
|
359
|
+
"original": "void",
|
|
360
|
+
"resolved": "void",
|
|
361
|
+
"references": {}
|
|
362
|
+
}
|
|
363
|
+
}, {
|
|
364
|
+
"method": "roadblur",
|
|
365
|
+
"name": "roadblur",
|
|
366
|
+
"bubbles": true,
|
|
367
|
+
"cancelable": true,
|
|
368
|
+
"composed": true,
|
|
312
369
|
"docs": {
|
|
313
370
|
"tags": [],
|
|
314
|
-
"text": "Emitted when the switch
|
|
371
|
+
"text": "Emitted when the switch loses focus."
|
|
315
372
|
},
|
|
316
373
|
"complexType": {
|
|
317
374
|
"original": "void",
|
|
@@ -325,8 +382,11 @@ export class Switch {
|
|
|
325
382
|
"cancelable": true,
|
|
326
383
|
"composed": true,
|
|
327
384
|
"docs": {
|
|
328
|
-
"tags": [
|
|
329
|
-
|
|
385
|
+
"tags": [{
|
|
386
|
+
"name": "internal",
|
|
387
|
+
"text": undefined
|
|
388
|
+
}],
|
|
389
|
+
"text": ""
|
|
330
390
|
},
|
|
331
391
|
"complexType": {
|
|
332
392
|
"original": "void",
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
component: 'road-switch',
|
|
7
7
|
parameters: {
|
|
8
8
|
actions: {
|
|
9
|
-
handles: ['
|
|
9
|
+
handles: ['roadblur', 'roadfocus'],
|
|
10
10
|
},
|
|
11
11
|
},
|
|
12
12
|
argTypes: {
|
|
@@ -46,18 +46,18 @@ export default {
|
|
|
46
46
|
'is-spaced': {
|
|
47
47
|
control: 'boolean',
|
|
48
48
|
},
|
|
49
|
-
|
|
49
|
+
roadblur: {
|
|
50
50
|
control: {
|
|
51
51
|
type: null,
|
|
52
52
|
},
|
|
53
53
|
},
|
|
54
|
-
|
|
54
|
+
roadfocus: {
|
|
55
55
|
control: {
|
|
56
56
|
type: null,
|
|
57
57
|
},
|
|
58
58
|
},
|
|
59
|
-
|
|
60
|
-
action: '
|
|
59
|
+
roadchange: {
|
|
60
|
+
action: 'roadchange',
|
|
61
61
|
control: {
|
|
62
62
|
type: null,
|
|
63
63
|
},
|
|
@@ -97,7 +97,7 @@ const Template = (args) => html`
|
|
|
97
97
|
has-left-label="${ifDefined(args['has-left-label'])}"
|
|
98
98
|
is-spaced="${ifDefined(args['is-spaced'])}"
|
|
99
99
|
switch-id="${ifDefined(args['switch-id'])}"
|
|
100
|
-
@
|
|
100
|
+
@roadchange=${event => args.roadchange(event.detail)}
|
|
101
101
|
></road-switch>
|
|
102
102
|
`;
|
|
103
103
|
|
|
@@ -16,6 +16,9 @@ export class TabBar {
|
|
|
16
16
|
}
|
|
17
17
|
selectedTabChanged() {
|
|
18
18
|
if (this.selectedTab !== undefined) {
|
|
19
|
+
this.roadtabbarchanged.emit({
|
|
20
|
+
tab: this.selectedTab,
|
|
21
|
+
});
|
|
19
22
|
this.roadTabBarChanged.emit({
|
|
20
23
|
tab: this.selectedTab,
|
|
21
24
|
});
|
|
@@ -96,6 +99,24 @@ export class TabBar {
|
|
|
96
99
|
}
|
|
97
100
|
}; }
|
|
98
101
|
static get events() { return [{
|
|
102
|
+
"method": "roadtabbarchanged",
|
|
103
|
+
"name": "roadtabbarchanged",
|
|
104
|
+
"bubbles": true,
|
|
105
|
+
"cancelable": true,
|
|
106
|
+
"composed": true,
|
|
107
|
+
"docs": {
|
|
108
|
+
"tags": [{
|
|
109
|
+
"name": "internal",
|
|
110
|
+
"text": undefined
|
|
111
|
+
}],
|
|
112
|
+
"text": ""
|
|
113
|
+
},
|
|
114
|
+
"complexType": {
|
|
115
|
+
"original": "any",
|
|
116
|
+
"resolved": "any",
|
|
117
|
+
"references": {}
|
|
118
|
+
}
|
|
119
|
+
}, {
|
|
99
120
|
"method": "roadTabBarChanged",
|
|
100
121
|
"name": "roadTabBarChanged",
|
|
101
122
|
"bubbles": true,
|
|
@@ -33,6 +33,11 @@ export class TabButton {
|
|
|
33
33
|
}
|
|
34
34
|
selectTab(ev) {
|
|
35
35
|
if (this.tab !== undefined) {
|
|
36
|
+
this.roadtabbuttonclick.emit({
|
|
37
|
+
tab: this.tab,
|
|
38
|
+
href: this.href,
|
|
39
|
+
selected: this.selected,
|
|
40
|
+
});
|
|
36
41
|
this.roadTabButtonClick.emit({
|
|
37
42
|
tab: this.tab,
|
|
38
43
|
href: this.href,
|
|
@@ -206,6 +211,24 @@ export class TabButton {
|
|
|
206
211
|
}
|
|
207
212
|
}; }
|
|
208
213
|
static get events() { return [{
|
|
214
|
+
"method": "roadtabbuttonclick",
|
|
215
|
+
"name": "roadtabbuttonclick",
|
|
216
|
+
"bubbles": true,
|
|
217
|
+
"cancelable": true,
|
|
218
|
+
"composed": true,
|
|
219
|
+
"docs": {
|
|
220
|
+
"tags": [{
|
|
221
|
+
"name": "internal",
|
|
222
|
+
"text": undefined
|
|
223
|
+
}],
|
|
224
|
+
"text": "Emitted when the tab bar is clicked"
|
|
225
|
+
},
|
|
226
|
+
"complexType": {
|
|
227
|
+
"original": "any",
|
|
228
|
+
"resolved": "any",
|
|
229
|
+
"references": {}
|
|
230
|
+
}
|
|
231
|
+
}, {
|
|
209
232
|
"method": "roadTabButtonClick",
|
|
210
233
|
"name": "roadTabButtonClick",
|
|
211
234
|
"bubbles": true,
|
|
@@ -216,7 +239,7 @@ export class TabButton {
|
|
|
216
239
|
"name": "internal",
|
|
217
240
|
"text": undefined
|
|
218
241
|
}],
|
|
219
|
-
"text": "
|
|
242
|
+
"text": ""
|
|
220
243
|
},
|
|
221
244
|
"complexType": {
|
|
222
245
|
"original": "any",
|
|
@@ -231,5 +254,11 @@ export class TabButton {
|
|
|
231
254
|
"target": "window",
|
|
232
255
|
"capture": false,
|
|
233
256
|
"passive": false
|
|
257
|
+
}, {
|
|
258
|
+
"name": "roadTabbarchanged",
|
|
259
|
+
"method": "onTabBarChanged",
|
|
260
|
+
"target": "window",
|
|
261
|
+
"capture": false,
|
|
262
|
+
"passive": false
|
|
234
263
|
}]; }
|
|
235
264
|
}
|
|
@@ -103,14 +103,47 @@ export class Tabs {
|
|
|
103
103
|
"selectedTab": {}
|
|
104
104
|
}; }
|
|
105
105
|
static get events() { return [{
|
|
106
|
+
"method": "roadtabswillchange",
|
|
107
|
+
"name": "roadtabswillchange",
|
|
108
|
+
"bubbles": false,
|
|
109
|
+
"cancelable": true,
|
|
110
|
+
"composed": true,
|
|
111
|
+
"docs": {
|
|
112
|
+
"tags": [],
|
|
113
|
+
"text": "Emitted when the navigation is about to transition to a new component."
|
|
114
|
+
},
|
|
115
|
+
"complexType": {
|
|
116
|
+
"original": "{tab: string}",
|
|
117
|
+
"resolved": "{ tab: string; }",
|
|
118
|
+
"references": {}
|
|
119
|
+
}
|
|
120
|
+
}, {
|
|
106
121
|
"method": "roadTabsWillChange",
|
|
107
122
|
"name": "roadTabsWillChange",
|
|
108
123
|
"bubbles": false,
|
|
109
124
|
"cancelable": true,
|
|
110
125
|
"composed": true,
|
|
126
|
+
"docs": {
|
|
127
|
+
"tags": [{
|
|
128
|
+
"name": "internal",
|
|
129
|
+
"text": undefined
|
|
130
|
+
}],
|
|
131
|
+
"text": ""
|
|
132
|
+
},
|
|
133
|
+
"complexType": {
|
|
134
|
+
"original": "{tab: string}",
|
|
135
|
+
"resolved": "{ tab: string; }",
|
|
136
|
+
"references": {}
|
|
137
|
+
}
|
|
138
|
+
}, {
|
|
139
|
+
"method": "roadtabsdidchange",
|
|
140
|
+
"name": "roadtabsdidchange",
|
|
141
|
+
"bubbles": false,
|
|
142
|
+
"cancelable": true,
|
|
143
|
+
"composed": true,
|
|
111
144
|
"docs": {
|
|
112
145
|
"tags": [],
|
|
113
|
-
"text": "Emitted when the navigation
|
|
146
|
+
"text": "Emitted when the navigation has finished transitioning to a new component."
|
|
114
147
|
},
|
|
115
148
|
"complexType": {
|
|
116
149
|
"original": "{tab: string}",
|
|
@@ -124,8 +157,11 @@ export class Tabs {
|
|
|
124
157
|
"cancelable": true,
|
|
125
158
|
"composed": true,
|
|
126
159
|
"docs": {
|
|
127
|
-
"tags": [
|
|
128
|
-
|
|
160
|
+
"tags": [{
|
|
161
|
+
"name": "internal",
|
|
162
|
+
"text": undefined
|
|
163
|
+
}],
|
|
164
|
+
"text": ""
|
|
129
165
|
},
|
|
130
166
|
"complexType": {
|
|
131
167
|
"original": "{tab: string}",
|
|
@@ -11,7 +11,7 @@ export default {
|
|
|
11
11
|
},
|
|
12
12
|
parameters: {
|
|
13
13
|
actions: {
|
|
14
|
-
handles: ['
|
|
14
|
+
handles: ['roadtabbuttonclick'],
|
|
15
15
|
},
|
|
16
16
|
backgrounds: {
|
|
17
17
|
default: 'grey',
|
|
@@ -24,12 +24,12 @@ export default {
|
|
|
24
24
|
' ': {
|
|
25
25
|
control: 'text',
|
|
26
26
|
},
|
|
27
|
-
|
|
27
|
+
roadtabsdidchange: {
|
|
28
28
|
control: {
|
|
29
29
|
type: null,
|
|
30
30
|
},
|
|
31
31
|
},
|
|
32
|
-
|
|
32
|
+
roadtabswillchange: {
|
|
33
33
|
control: {
|
|
34
34
|
type: null,
|
|
35
35
|
},
|
|
@@ -46,12 +46,15 @@ export class Textarea {
|
|
|
46
46
|
if (input) {
|
|
47
47
|
this.value = input.value || '';
|
|
48
48
|
}
|
|
49
|
+
this.roadinput.emit(ev);
|
|
49
50
|
this.roadInput.emit(ev);
|
|
50
51
|
};
|
|
51
52
|
this.onBlur = () => {
|
|
53
|
+
this.roadblur.emit();
|
|
52
54
|
this.roadBlur.emit();
|
|
53
55
|
};
|
|
54
56
|
this.onFocus = () => {
|
|
57
|
+
this.roadfocus.emit();
|
|
55
58
|
this.roadFocus.emit();
|
|
56
59
|
};
|
|
57
60
|
}
|
|
@@ -59,6 +62,7 @@ export class Textarea {
|
|
|
59
62
|
* Update the native textarea element when the value changes
|
|
60
63
|
*/
|
|
61
64
|
valueChanged() {
|
|
65
|
+
this.roadchange.emit({ value: this.value });
|
|
62
66
|
this.roadChange.emit({ value: this.value });
|
|
63
67
|
}
|
|
64
68
|
getValue() {
|
|
@@ -418,8 +422,8 @@ export class Textarea {
|
|
|
418
422
|
}
|
|
419
423
|
}; }
|
|
420
424
|
static get events() { return [{
|
|
421
|
-
"method": "
|
|
422
|
-
"name": "
|
|
425
|
+
"method": "roadinput",
|
|
426
|
+
"name": "roadinput",
|
|
423
427
|
"bubbles": true,
|
|
424
428
|
"cancelable": true,
|
|
425
429
|
"composed": true,
|
|
@@ -437,8 +441,30 @@ export class Textarea {
|
|
|
437
441
|
}
|
|
438
442
|
}
|
|
439
443
|
}, {
|
|
440
|
-
"method": "
|
|
441
|
-
"name": "
|
|
444
|
+
"method": "roadInput",
|
|
445
|
+
"name": "roadInput",
|
|
446
|
+
"bubbles": true,
|
|
447
|
+
"cancelable": true,
|
|
448
|
+
"composed": true,
|
|
449
|
+
"docs": {
|
|
450
|
+
"tags": [{
|
|
451
|
+
"name": "internal",
|
|
452
|
+
"text": undefined
|
|
453
|
+
}],
|
|
454
|
+
"text": ""
|
|
455
|
+
},
|
|
456
|
+
"complexType": {
|
|
457
|
+
"original": "KeyboardEvent",
|
|
458
|
+
"resolved": "KeyboardEvent",
|
|
459
|
+
"references": {
|
|
460
|
+
"KeyboardEvent": {
|
|
461
|
+
"location": "global"
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
}, {
|
|
466
|
+
"method": "roadchange",
|
|
467
|
+
"name": "roadchange",
|
|
442
468
|
"bubbles": true,
|
|
443
469
|
"cancelable": true,
|
|
444
470
|
"composed": true,
|
|
@@ -451,15 +477,66 @@ export class Textarea {
|
|
|
451
477
|
"resolved": "{ value: string | null | undefined; }",
|
|
452
478
|
"references": {}
|
|
453
479
|
}
|
|
480
|
+
}, {
|
|
481
|
+
"method": "roadChange",
|
|
482
|
+
"name": "roadChange",
|
|
483
|
+
"bubbles": true,
|
|
484
|
+
"cancelable": true,
|
|
485
|
+
"composed": true,
|
|
486
|
+
"docs": {
|
|
487
|
+
"tags": [{
|
|
488
|
+
"name": "internal",
|
|
489
|
+
"text": undefined
|
|
490
|
+
}],
|
|
491
|
+
"text": ""
|
|
492
|
+
},
|
|
493
|
+
"complexType": {
|
|
494
|
+
"original": "{\n value: string | undefined | null\n }",
|
|
495
|
+
"resolved": "{ value: string | null | undefined; }",
|
|
496
|
+
"references": {}
|
|
497
|
+
}
|
|
498
|
+
}, {
|
|
499
|
+
"method": "roadblur",
|
|
500
|
+
"name": "roadblur",
|
|
501
|
+
"bubbles": true,
|
|
502
|
+
"cancelable": true,
|
|
503
|
+
"composed": true,
|
|
504
|
+
"docs": {
|
|
505
|
+
"tags": [],
|
|
506
|
+
"text": "Emitted when the textarea loses focus."
|
|
507
|
+
},
|
|
508
|
+
"complexType": {
|
|
509
|
+
"original": "void",
|
|
510
|
+
"resolved": "void",
|
|
511
|
+
"references": {}
|
|
512
|
+
}
|
|
454
513
|
}, {
|
|
455
514
|
"method": "roadBlur",
|
|
456
515
|
"name": "roadBlur",
|
|
457
516
|
"bubbles": true,
|
|
458
517
|
"cancelable": true,
|
|
459
518
|
"composed": true,
|
|
519
|
+
"docs": {
|
|
520
|
+
"tags": [{
|
|
521
|
+
"name": "internal",
|
|
522
|
+
"text": undefined
|
|
523
|
+
}],
|
|
524
|
+
"text": ""
|
|
525
|
+
},
|
|
526
|
+
"complexType": {
|
|
527
|
+
"original": "void",
|
|
528
|
+
"resolved": "void",
|
|
529
|
+
"references": {}
|
|
530
|
+
}
|
|
531
|
+
}, {
|
|
532
|
+
"method": "roadfocus",
|
|
533
|
+
"name": "roadfocus",
|
|
534
|
+
"bubbles": true,
|
|
535
|
+
"cancelable": true,
|
|
536
|
+
"composed": true,
|
|
460
537
|
"docs": {
|
|
461
538
|
"tags": [],
|
|
462
|
-
"text": "Emitted when the textarea
|
|
539
|
+
"text": "Emitted when the textarea has focus."
|
|
463
540
|
},
|
|
464
541
|
"complexType": {
|
|
465
542
|
"original": "void",
|
|
@@ -473,8 +550,11 @@ export class Textarea {
|
|
|
473
550
|
"cancelable": true,
|
|
474
551
|
"composed": true,
|
|
475
552
|
"docs": {
|
|
476
|
-
"tags": [
|
|
477
|
-
|
|
553
|
+
"tags": [{
|
|
554
|
+
"name": "internal",
|
|
555
|
+
"text": undefined
|
|
556
|
+
}],
|
|
557
|
+
"text": ""
|
|
478
558
|
},
|
|
479
559
|
"complexType": {
|
|
480
560
|
"original": "void",
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
component: 'road-textarea',
|
|
7
7
|
parameters: {
|
|
8
8
|
actions: {
|
|
9
|
-
handles: ['
|
|
9
|
+
handles: ['roadblur', 'roadfocus'],
|
|
10
10
|
},
|
|
11
11
|
},
|
|
12
12
|
argTypes: {
|
|
@@ -85,24 +85,24 @@ export default {
|
|
|
85
85
|
type: 'select',
|
|
86
86
|
},
|
|
87
87
|
},
|
|
88
|
-
|
|
88
|
+
roadblur: {
|
|
89
89
|
control: {
|
|
90
90
|
type: null,
|
|
91
91
|
},
|
|
92
92
|
},
|
|
93
|
-
|
|
93
|
+
roadfocus: {
|
|
94
94
|
control: {
|
|
95
95
|
type: null,
|
|
96
96
|
},
|
|
97
97
|
},
|
|
98
|
-
|
|
99
|
-
action: '
|
|
98
|
+
roadchange: {
|
|
99
|
+
action: 'roadchange',
|
|
100
100
|
control: {
|
|
101
101
|
type: null,
|
|
102
102
|
},
|
|
103
103
|
},
|
|
104
|
-
|
|
105
|
-
action: '
|
|
104
|
+
roadinput: {
|
|
105
|
+
action: 'roadinput',
|
|
106
106
|
control: {
|
|
107
107
|
type: null,
|
|
108
108
|
},
|
|
@@ -139,8 +139,8 @@ const Template = (args) => html`
|
|
|
139
139
|
cols="${ifDefined(args.cols)}"
|
|
140
140
|
wrap="${ifDefined(args.wrap)}"
|
|
141
141
|
readonly="${ifDefined(args.readonly)}"
|
|
142
|
-
@
|
|
143
|
-
@
|
|
142
|
+
@roadchange=${event => args.roadchange(event.detail.value)}
|
|
143
|
+
@roadinput=${event => args.roadinput(event.target.value)}
|
|
144
144
|
></road-textarea>
|
|
145
145
|
`;
|
|
146
146
|
|
package/dist/esm/loader.js
CHANGED
|
@@ -25,7 +25,7 @@ const patchEsm = () => {
|
|
|
25
25
|
const defineCustomElements = (win, options) => {
|
|
26
26
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
27
27
|
return patchEsm().then(() => {
|
|
28
|
-
return bootstrapLazy([["road-badge_11",[[
|
|
28
|
+
return bootstrapLazy([["road-badge_11",[[1,"road-item",{"button":[4],"detail":[4],"active":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"target":[1],"type":[1],"multipleInputs":[32]}],[1,"road-badge",{"color":[1],"bubble":[4]}],[1,"road-list",{"lines":[1]}],[1,"road-toolbar",{"color":[1]}],[33,"road-drawer",{"isOpen":[1028,"is-open"],"position":[1],"drawerWidth":[2,"drawer-width"],"hasInverseHeader":[4,"has-inverse-header"],"hasBackIcon":[4,"has-back-icon"],"backText":[1,"back-text"],"drawerTitle":[1,"drawer-title"],"hasCloseIcon":[4,"has-close-icon"],"open":[64],"close":[64],"back":[64]},[[4,"keyup","onEscape"]]],[1,"road-col"],[1,"road-grid"],[1,"road-label"],[1,"road-row"],[1,"road-button",{"color":[1],"size":[513],"buttonType":[1,"button-type"],"disabled":[516],"expand":[516],"download":[1],"href":[1],"rel":[1],"target":[1],"outline":[4]}],[1,"road-icon",{"color":[1],"ariaLabel":[1537,"aria-label"],"ariaHidden":[513,"aria-hidden"],"name":[1],"src":[1],"icon":[8],"size":[1],"rotate":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]}]]],["road-duration",[[1,"road-duration",{"isOpen":[1028,"is-open"],"header":[1],"min":[2],"max":[2],"step":[2],"open":[64],"close":[64]},[[0,"roadcardclick","handleClick"]]]]],["road-counter",[[2,"road-counter",{"inputId":[1,"input-id"],"min":[1],"max":[1],"step":[1],"value":[2],"size":[1]}]]],["road-plate-number",[[2,"road-plate-number",{"country":[1],"disabled":[4],"placeholder":[1],"readonly":[4],"value":[1032],"motorbike":[4]}]]],["road-accordion",[[1,"road-accordion",{"isOpen":[1028,"is-open"]}]]],["road-carousel",[[4,"road-carousel",{"options":[8],"pager":[4],"arrows":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["road-chip",[[1,"road-chip",{"color":[1],"outline":[4],"size":[1],"hasCloseIcon":[4,"has-close-icon"]}]]],["road-collapse",[[1,"road-collapse",{"isOpen":[1028,"is-open"],"showMore":[1,"show-more"],"showLess":[1,"show-less"],"centered":[4]}]]],["road-dialog",[[1,"road-dialog",{"isOpen":[1028,"is-open"],"hasCloseIcon":[4,"has-close-icon"],"color":[1],"icon":[1],"label":[1],"description":[1],"open":[64],"close":[64]},[[4,"keyup","onEscape"]]]]],["road-modal",[[1,"road-modal",{"maxWidth":[2,"max-width"],"isOpen":[1028,"is-open"],"hasInverseHeader":[4,"has-inverse-header"],"modalTitle":[1,"modal-title"],"hasCloseIcon":[4,"has-close-icon"],"open":[64],"close":[64]},[[4,"keyup","onEscape"]]]]],["road-rating",[[1,"road-rating",{"rate":[2],"reviews":[2],"reviewsText":[1,"reviews-text"]}]]],["road-toast",[[1,"road-toast",{"isOpen":[1028,"is-open"],"color":[1],"label":[1],"timeout":[2],"position":[1],"open":[64],"close":[64]}]]],["road-alert",[[1,"road-alert",{"color":[1]}]]],["road-autocomplete",[[6,"road-autocomplete",{"options":[16],"visible":[32]},[[0,"roadFocus","handleFocus"],[0,"roadfocus","handleFocus"],[4,"click","onClickOutside"]]]]],["road-avatar",[[1,"road-avatar"]]],["road-carousel-item",[[4,"road-carousel-item"]]],["road-checkbox",[[6,"road-checkbox",{"checkboxId":[1,"checkbox-id"],"name":[1],"required":[4],"checked":[1028],"disabled":[4],"value":[1],"label":[1],"inverse":[4],"error":[1]}]]],["road-dropdown",[[1,"road-dropdown",{"isOpen":[1028,"is-open"]}]]],["road-flap",[[1,"road-flap",{"color":[1]}]]],["road-img",[[1,"road-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],["road-navbar",[[1,"road-navbar",{"selectedTab":[1,"selected-tab"]},[[0,"roadNavbarItemClick","onNavbarChanged"],[0,"roadnavbaritemclick","onNavbarChanged"]]]]],["road-navbar-item",[[1,"road-navbar-item",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"selected":[1028],"tab":[1],"target":[1]},[[8,"roadNavbarChanged","onNavbarChanged"],[8,"roadnavbarchanged","onNavbarChanged"]]]]],["road-progress",[[1,"road-progress",{"value":[2],"color":[1]}]]],["road-radio",[[2,"road-radio",{"radioId":[1,"radio-id"],"name":[1],"required":[4],"disabled":[4],"value":[8],"label":[1],"inverse":[4],"error":[4],"inline":[4],"checked":[32]},[[8,"roadChange","onRoadChangedChanged"],[8,"roadchange","onRoadChangedChanged"]]]]],["road-radio-group",[[6,"road-radio-group",{"radioGroupId":[1,"radio-group-id"],"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032],"label":[1],"asterisk":[4],"ariaLabel":[513,"aria-label"],"error":[1025]}]]],["road-range",[[2,"road-range",{"rangeId":[1,"range-id"],"value":[1032],"min":[1],"max":[1],"step":[1],"showValue":[4,"show-value"]}]]],["road-select",[[2,"road-select",{"selectId":[1,"select-id"],"options":[16],"autofocus":[4],"disabled":[4],"name":[1],"required":[4],"size":[2],"label":[1],"error":[1],"value":[1032]}]]],["road-select-filter",[[6,"road-select-filter",{"options":[16],"parameters":[8],"onlySelect":[4,"only-select"],"isOpen":[32],"currentValue":[32]},[[0,"roadFocus","handleFocus"],[0,"roadfocus","handleFocus"],[0,"roadChange","handleChange"],[0,"roadchange","handleChange"],[4,"click","onClickOutside"]]]]],["road-skeleton",[[1,"road-skeleton"]]],["road-spinner",[[1,"road-spinner"]]],["road-switch",[[2,"road-switch",{"switchId":[1,"switch-id"],"name":[1],"checked":[1028],"disabled":[4],"label":[1],"color":[1],"hasLeftLabel":[4,"has-left-label"],"isSpaced":[4,"is-spaced"],"value":[1],"on":[1],"off":[1]}]]],["road-tab",[[1,"road-tab",{"active":[1028],"tab":[1],"setActive":[64]}]]],["road-tab-bar",[[1,"road-tab-bar",{"expand":[4],"center":[4],"selectedTab":[1,"selected-tab"]}]]],["road-tab-button",[[1,"road-tab-button",{"download":[1],"href":[1],"rel":[1],"layout":[1],"selected":[1028],"tab":[1],"target":[1]},[[8,"roadTabBarChanged","onTabBarChanged"],[8,"roadTabbarchanged","onTabBarChanged"]]]]],["road-table",[[6,"road-table"]]],["road-tabs",[[1,"road-tabs",{"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64]}]]],["road-text",[[1,"road-text",{"color":[1]}]]],["road-textarea",[[2,"road-textarea",{"textareaId":[1,"textarea-id"],"autocapitalize":[1],"autofocus":[4],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"value":[1025],"label":[1],"error":[1]}]]],["road-toolbar-title",[[1,"road-toolbar-title"]]],["road-tooltip",[[1,"road-tooltip",{"tooltipId":[1,"tooltip-id"],"content":[1],"position":[1],"isOpen":[1028,"is-open"],"trigger":[1],"open":[64],"close":[64]}]]],["road-card",[[1,"road-card",{"button":[4],"value":[1],"type":[1],"download":[1],"href":[1],"rel":[1],"target":[1]}]]],["road-input",[[2,"road-input",{"inputId":[1,"input-id"],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"disabled":[4],"enterkeyhint":[1],"inputmode":[1],"max":[1],"maxlength":[2],"min":[1],"minlength":[2],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"label":[1],"error":[1],"debounce":[2]}]]],["road-input-group",[[1,"road-input-group"]]]], options);
|
|
29
29
|
});
|
|
30
30
|
};
|
|
31
31
|
|
|
@@ -5,6 +5,7 @@ const autocompleteCss = ".sc-road-autocomplete-h{position:relative;display:block
|
|
|
5
5
|
let Autocomplete = class {
|
|
6
6
|
constructor(hostRef) {
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
|
+
this.roadselected = createEvent(this, "roadselected", 7);
|
|
8
9
|
this.roadSelected = createEvent(this, "roadSelected", 7);
|
|
9
10
|
this.visible = false;
|
|
10
11
|
/**
|
|
@@ -14,6 +15,10 @@ let Autocomplete = class {
|
|
|
14
15
|
this.onClick = (value, label) => {
|
|
15
16
|
this.el.querySelector('road-input').value = value;
|
|
16
17
|
this.visible = false;
|
|
18
|
+
this.roadselected.emit({
|
|
19
|
+
value: value.toString(),
|
|
20
|
+
label: label,
|
|
21
|
+
});
|
|
17
22
|
this.roadSelected.emit({
|
|
18
23
|
value: value.toString(),
|
|
19
24
|
label: label,
|
|
@@ -26,7 +26,9 @@ const buttonCss = ":host{--border-radius:0.25rem;--font-size:1rem;--margin-botto
|
|
|
26
26
|
let Button = class {
|
|
27
27
|
constructor(hostRef) {
|
|
28
28
|
registerInstance(this, hostRef);
|
|
29
|
+
this.roadfocus = createEvent(this, "roadfocus", 7);
|
|
29
30
|
this.roadFocus = createEvent(this, "roadFocus", 7);
|
|
31
|
+
this.roadblur = createEvent(this, "roadblur", 7);
|
|
30
32
|
this.roadBlur = createEvent(this, "roadBlur", 7);
|
|
31
33
|
/**
|
|
32
34
|
* The color to use from your application's color palette.
|
|
@@ -70,9 +72,11 @@ let Button = class {
|
|
|
70
72
|
}
|
|
71
73
|
};
|
|
72
74
|
this.onFocus = () => {
|
|
75
|
+
this.roadfocus.emit();
|
|
73
76
|
this.roadFocus.emit();
|
|
74
77
|
};
|
|
75
78
|
this.onBlur = () => {
|
|
79
|
+
this.roadblur.emit();
|
|
76
80
|
this.roadBlur.emit();
|
|
77
81
|
};
|
|
78
82
|
}
|
|
@@ -5,6 +5,7 @@ const cardCss = ":host{position:relative;-webkit-box-sizing:border-box;box-sizin
|
|
|
5
5
|
let Card = class {
|
|
6
6
|
constructor(hostRef) {
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
|
+
this.roadcardclick = createEvent(this, "roadcardclick", 7);
|
|
8
9
|
this.roadCardClick = createEvent(this, "roadCardClick", 7);
|
|
9
10
|
/**
|
|
10
11
|
* If `true`, a button tag will be rendered and the card will be tappable.
|
|
@@ -15,12 +16,16 @@ let Card = class {
|
|
|
15
16
|
*/
|
|
16
17
|
this.type = 'button';
|
|
17
18
|
this.onClick = () => {
|
|
18
|
-
var _a;
|
|
19
|
+
var _a, _b;
|
|
19
20
|
if (this.value !== undefined) {
|
|
20
|
-
this.
|
|
21
|
+
this.roadcardclick.emit({
|
|
21
22
|
value: this.value,
|
|
22
23
|
label: (_a = this.el.querySelector('road-label')) === null || _a === void 0 ? void 0 : _a.textContent,
|
|
23
24
|
});
|
|
25
|
+
this.roadCardClick.emit({
|
|
26
|
+
value: this.value,
|
|
27
|
+
label: (_b = this.el.querySelector('road-label')) === null || _b === void 0 ? void 0 : _b.textContent,
|
|
28
|
+
});
|
|
24
29
|
}
|
|
25
30
|
};
|
|
26
31
|
}
|