@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
|
@@ -6,22 +6,22 @@ const carouselCss = "@font-face{font-family:swiper-icons;src:url('data:applicati
|
|
|
6
6
|
let Carousel = class {
|
|
7
7
|
constructor(hostRef) {
|
|
8
8
|
registerInstance(this, hostRef);
|
|
9
|
-
this.
|
|
10
|
-
this.
|
|
11
|
-
this.
|
|
12
|
-
this.
|
|
13
|
-
this.
|
|
14
|
-
this.
|
|
15
|
-
this.
|
|
16
|
-
this.
|
|
17
|
-
this.
|
|
18
|
-
this.
|
|
19
|
-
this.
|
|
20
|
-
this.
|
|
21
|
-
this.
|
|
22
|
-
this.
|
|
23
|
-
this.
|
|
24
|
-
this.
|
|
9
|
+
this.roadslidesdidload = createEvent(this, "roadslidesdidload", 7);
|
|
10
|
+
this.roadslidetap = createEvent(this, "roadslidetap", 7);
|
|
11
|
+
this.roadslidedoubletap = createEvent(this, "roadslidedoubletap", 7);
|
|
12
|
+
this.roadslidewillchange = createEvent(this, "roadslidewillchange", 7);
|
|
13
|
+
this.roadslidedidchange = createEvent(this, "roadslidedidchange", 7);
|
|
14
|
+
this.roadslidenextstart = createEvent(this, "roadslidenextstart", 7);
|
|
15
|
+
this.roadslideprevstart = createEvent(this, "roadslideprevstart", 7);
|
|
16
|
+
this.roadslidenextend = createEvent(this, "roadslidenextend", 7);
|
|
17
|
+
this.roadslideprevend = createEvent(this, "roadslideprevend", 7);
|
|
18
|
+
this.roadslidetransitionstart = createEvent(this, "roadslidetransitionstart", 7);
|
|
19
|
+
this.roadslidetransitionend = createEvent(this, "roadslidetransitionend", 7);
|
|
20
|
+
this.roadslidedrag = createEvent(this, "roadslidedrag", 7);
|
|
21
|
+
this.roadslidereachstart = createEvent(this, "roadslidereachstart", 7);
|
|
22
|
+
this.roadslidereachend = createEvent(this, "roadslidereachend", 7);
|
|
23
|
+
this.roadslidetouchstart = createEvent(this, "roadslidetouchstart", 7);
|
|
24
|
+
this.roadslidetouchend = createEvent(this, "roadslidetouchend", 7);
|
|
25
25
|
this.swiperReady = false;
|
|
26
26
|
this.swiper = new Promise(resolve => {
|
|
27
27
|
this.readySwiper = resolve;
|
|
@@ -345,39 +345,39 @@ let Carousel = class {
|
|
|
345
345
|
on: {
|
|
346
346
|
init: () => {
|
|
347
347
|
setTimeout(() => {
|
|
348
|
-
this.
|
|
348
|
+
this.roadslidesdidload.emit();
|
|
349
349
|
}, 20);
|
|
350
350
|
},
|
|
351
351
|
// @ts-ignore
|
|
352
|
-
slideChangeTransitionStart: this.
|
|
352
|
+
slideChangeTransitionStart: this.roadslidewillchange.emit,
|
|
353
353
|
// @ts-ignore
|
|
354
|
-
slideChangeTransitionEnd: this.
|
|
354
|
+
slideChangeTransitionEnd: this.roadslidedidchange.emit,
|
|
355
355
|
// @ts-ignore
|
|
356
|
-
slideNextTransitionStart: this.
|
|
356
|
+
slideNextTransitionStart: this.roadslidenextstart.emit,
|
|
357
357
|
// @ts-ignore
|
|
358
|
-
slidePrevTransitionStart: this.
|
|
358
|
+
slidePrevTransitionStart: this.roadslideprevstart.emit,
|
|
359
359
|
// @ts-ignore
|
|
360
|
-
slideNextTransitionEnd: this.
|
|
360
|
+
slideNextTransitionEnd: this.roadslidenextend.emit,
|
|
361
361
|
// @ts-ignore
|
|
362
|
-
slidePrevTransitionEnd: this.
|
|
362
|
+
slidePrevTransitionEnd: this.roadslideprevend.emit,
|
|
363
363
|
// @ts-ignore
|
|
364
|
-
transitionStart: this.
|
|
364
|
+
transitionStart: this.roadslidetransitionstart.emit,
|
|
365
365
|
// @ts-ignore
|
|
366
|
-
transitionEnd: this.
|
|
366
|
+
transitionEnd: this.roadslidetransitionend.emit,
|
|
367
367
|
// @ts-ignore
|
|
368
|
-
sliderMove: this.
|
|
368
|
+
sliderMove: this.roadslidedrag.emit,
|
|
369
369
|
// @ts-ignore
|
|
370
|
-
reachBeginning: this.
|
|
370
|
+
reachBeginning: this.roadslidereachstart.emit,
|
|
371
371
|
// @ts-ignore
|
|
372
|
-
reachEnd: this.
|
|
372
|
+
reachEnd: this.roadslidereachend.emit,
|
|
373
373
|
// @ts-ignore
|
|
374
|
-
touchStart: this.
|
|
374
|
+
touchStart: this.roadslidetouchstart.emit,
|
|
375
375
|
// @ts-ignore
|
|
376
|
-
touchEnd: this.
|
|
376
|
+
touchEnd: this.roadslidetouchend.emit,
|
|
377
377
|
// @ts-ignore
|
|
378
|
-
tap: this.
|
|
378
|
+
tap: this.roadslidetap.emit,
|
|
379
379
|
// @ts-ignore
|
|
380
|
-
doubleTap: this.
|
|
380
|
+
doubleTap: this.roadslidedoubletap.emit,
|
|
381
381
|
},
|
|
382
382
|
};
|
|
383
383
|
const customEvents = (!!this.options && !!this.options.on) ? this.options.on : {};
|
|
@@ -6,8 +6,11 @@ const checkboxCss = ".sc-road-checkbox-h{position:relative;display:block;margin-
|
|
|
6
6
|
let Checkbox = class {
|
|
7
7
|
constructor(hostRef) {
|
|
8
8
|
registerInstance(this, hostRef);
|
|
9
|
+
this.roadchange = createEvent(this, "roadchange", 7);
|
|
9
10
|
this.roadChange = createEvent(this, "roadChange", 7);
|
|
11
|
+
this.roadfocus = createEvent(this, "roadfocus", 7);
|
|
10
12
|
this.roadFocus = createEvent(this, "roadFocus", 7);
|
|
13
|
+
this.roadblur = createEvent(this, "roadblur", 7);
|
|
11
14
|
this.roadBlur = createEvent(this, "roadBlur", 7);
|
|
12
15
|
/**
|
|
13
16
|
* The id of checkbox
|
|
@@ -45,13 +48,19 @@ let Checkbox = class {
|
|
|
45
48
|
this.checked = !this.checked;
|
|
46
49
|
};
|
|
47
50
|
this.onFocus = () => {
|
|
51
|
+
this.roadfocus.emit();
|
|
48
52
|
this.roadFocus.emit();
|
|
49
53
|
};
|
|
50
54
|
this.onBlur = () => {
|
|
55
|
+
this.roadblur.emit();
|
|
51
56
|
this.roadBlur.emit();
|
|
52
57
|
};
|
|
53
58
|
}
|
|
54
59
|
checkedChanged(isChecked) {
|
|
60
|
+
this.roadchange.emit({
|
|
61
|
+
checked: isChecked,
|
|
62
|
+
value: this.value,
|
|
63
|
+
});
|
|
55
64
|
this.roadChange.emit({
|
|
56
65
|
checked: isChecked,
|
|
57
66
|
value: this.value,
|
|
@@ -5,7 +5,9 @@ const counterCss = ".sc-road-counter-h{--counter-margin-bottom:1rem;display:bloc
|
|
|
5
5
|
let Counter = class {
|
|
6
6
|
constructor(hostRef) {
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
|
+
this.roadincrease = createEvent(this, "roadincrease", 7);
|
|
8
9
|
this.roadIncrease = createEvent(this, "roadIncrease", 7);
|
|
10
|
+
this.roaddecrease = createEvent(this, "roaddecrease", 7);
|
|
9
11
|
this.roadDecrease = createEvent(this, "roadDecrease", 7);
|
|
10
12
|
/**
|
|
11
13
|
* The id of counter
|
|
@@ -17,10 +19,12 @@ let Counter = class {
|
|
|
17
19
|
this.value = 1;
|
|
18
20
|
this.increase = () => {
|
|
19
21
|
this.el.querySelector('input').stepUp();
|
|
22
|
+
this.roadincrease.emit();
|
|
20
23
|
this.roadIncrease.emit();
|
|
21
24
|
};
|
|
22
25
|
this.decrease = () => {
|
|
23
26
|
this.el.querySelector('input').stepDown();
|
|
27
|
+
this.roaddecrease.emit();
|
|
24
28
|
this.roadDecrease.emit();
|
|
25
29
|
};
|
|
26
30
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, e as getElement } from './index-0c8a0e04.js';
|
|
2
|
+
|
|
3
|
+
const durationCss = ":host{display:block}road-drawer{--background:var(--background-second)}.duration-values{-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:100%;padding:2.625rem 0 2.625rem 3rem;-webkit-scroll-snap-type:x proximity;-ms-scroll-snap-type:x proximity;scroll-snap-type:x proximity;overflow:scroll}.duration-values>road-col:first-child{scroll-snap-align:center}.duration-values>road-col:not(:first-child){scroll-snap-align:start}road-card{--margin-bottom:0}road-card::part(native){padding:1rem}";
|
|
4
|
+
|
|
5
|
+
let Duration = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.roadselected = createEvent(this, "roadselected", 7);
|
|
9
|
+
/**
|
|
10
|
+
* Set isOpen property to true to open the duration widget
|
|
11
|
+
*/
|
|
12
|
+
this.isOpen = false;
|
|
13
|
+
/**
|
|
14
|
+
* title of the widget
|
|
15
|
+
*/
|
|
16
|
+
this.header = 'duration';
|
|
17
|
+
/**
|
|
18
|
+
* The minimum value, which must not be greater than its maximum (max attribute) value in minutes.
|
|
19
|
+
*/
|
|
20
|
+
this.min = 15;
|
|
21
|
+
/**
|
|
22
|
+
* The maximum value, which must not be less than its minimum (min attribute) value in minutes.
|
|
23
|
+
*/
|
|
24
|
+
this.max = 300;
|
|
25
|
+
/**
|
|
26
|
+
* Works with the min and max attributes to limit the increments at which a value can be set in minutes.
|
|
27
|
+
*/
|
|
28
|
+
this.step = 15;
|
|
29
|
+
}
|
|
30
|
+
handleClick(event) {
|
|
31
|
+
this.roadselected.emit({
|
|
32
|
+
value: event.detail.value.toString(),
|
|
33
|
+
label: event.detail.label,
|
|
34
|
+
});
|
|
35
|
+
this.close();
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Open the widget
|
|
39
|
+
*/
|
|
40
|
+
async open() {
|
|
41
|
+
this.isOpen = true;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Close the widget
|
|
45
|
+
*/
|
|
46
|
+
async close() {
|
|
47
|
+
this.isOpen = false;
|
|
48
|
+
}
|
|
49
|
+
render() {
|
|
50
|
+
return (h("road-drawer", { "is-open": this.isOpen, position: "bottom", "drawer-title": this.header }, h("road-grid", null, h("road-row", { class: "duration-values" }, Array(Math.floor((this.max - this.min) / this.step) + 1).fill(this.min).map(((item, index) => (item + index * this.step))).map(item => h("road-col", { class: "col-3 col-md-2" }, h("road-card", { button: true, value: item }, h("road-label", null, Math.floor(item / 60).toLocaleString("en-GB", { minimumIntegerDigits: 2, useGrouping: false }), ":", (item % 60).toLocaleString("en-GB", { minimumIntegerDigits: 2, useGrouping: false })))))))));
|
|
51
|
+
}
|
|
52
|
+
get el() { return getElement(this); }
|
|
53
|
+
};
|
|
54
|
+
Duration.style = durationCss;
|
|
55
|
+
|
|
56
|
+
export { Duration as road_duration };
|
|
@@ -5,13 +5,18 @@ const imgCss = ":host{display:block;-o-object-fit:contain;object-fit:contain}.na
|
|
|
5
5
|
let Img = class {
|
|
6
6
|
constructor(hostRef) {
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
|
+
this.roadimgwillload = createEvent(this, "roadimgwillload", 7);
|
|
8
9
|
this.roadImgWillLoad = createEvent(this, "roadImgWillLoad", 7);
|
|
10
|
+
this.roadimgdidload = createEvent(this, "roadimgdidload", 7);
|
|
9
11
|
this.roadImgDidLoad = createEvent(this, "roadImgDidLoad", 7);
|
|
12
|
+
this.roaderror = createEvent(this, "roaderror", 7);
|
|
10
13
|
this.roadError = createEvent(this, "roadError", 7);
|
|
11
14
|
this.onLoad = () => {
|
|
15
|
+
this.roadimgdidload.emit();
|
|
12
16
|
this.roadImgDidLoad.emit();
|
|
13
17
|
};
|
|
14
18
|
this.onError = () => {
|
|
19
|
+
this.roaderror.emit();
|
|
15
20
|
this.roadError.emit();
|
|
16
21
|
};
|
|
17
22
|
}
|
|
@@ -49,6 +54,7 @@ let Img = class {
|
|
|
49
54
|
load() {
|
|
50
55
|
this.loadError = this.onError;
|
|
51
56
|
this.loadSrc = this.src;
|
|
57
|
+
this.roadimgwillload.emit();
|
|
52
58
|
this.roadImgWillLoad.emit();
|
|
53
59
|
}
|
|
54
60
|
removeIO() {
|
|
@@ -19,9 +19,13 @@ const debounce = (func, wait = 0) => {
|
|
|
19
19
|
let Input = class {
|
|
20
20
|
constructor(hostRef) {
|
|
21
21
|
registerInstance(this, hostRef);
|
|
22
|
+
this.roadinput = createEvent(this, "roadinput", 7);
|
|
22
23
|
this.roadInput = createEvent(this, "roadInput", 7);
|
|
24
|
+
this.roadchange = createEvent(this, "roadchange", 7);
|
|
23
25
|
this.roadChange = createEvent(this, "roadChange", 7);
|
|
26
|
+
this.roadblur = createEvent(this, "roadblur", 7);
|
|
24
27
|
this.roadBlur = createEvent(this, "roadBlur", 7);
|
|
28
|
+
this.roadfocus = createEvent(this, "roadfocus", 7);
|
|
25
29
|
this.roadFocus = createEvent(this, "roadFocus", 7);
|
|
26
30
|
/**
|
|
27
31
|
* The id of input
|
|
@@ -84,22 +88,27 @@ let Input = class {
|
|
|
84
88
|
if (input) {
|
|
85
89
|
this.value = input.value || '';
|
|
86
90
|
}
|
|
91
|
+
this.roadinput.emit(ev);
|
|
87
92
|
this.roadInput.emit(ev);
|
|
88
93
|
};
|
|
89
94
|
this.onBlur = () => {
|
|
95
|
+
this.roadblur.emit();
|
|
90
96
|
this.roadBlur.emit();
|
|
91
97
|
};
|
|
92
98
|
this.onFocus = () => {
|
|
99
|
+
this.roadfocus.emit();
|
|
93
100
|
this.roadFocus.emit();
|
|
94
101
|
};
|
|
95
102
|
}
|
|
96
103
|
debounceChanged() {
|
|
104
|
+
this.roadchange = debounceEvent(this.roadchange, this.debounce);
|
|
97
105
|
this.roadChange = debounceEvent(this.roadChange, this.debounce);
|
|
98
106
|
}
|
|
99
107
|
/**
|
|
100
108
|
* Update the native input element when the value changes
|
|
101
109
|
*/
|
|
102
110
|
valueChanged() {
|
|
111
|
+
this.roadchange.emit({ value: this.value == null ? this.value : this.value.toString() });
|
|
103
112
|
this.roadChange.emit({ value: this.value == null ? this.value : this.value.toString() });
|
|
104
113
|
}
|
|
105
114
|
getValue() {
|
|
@@ -5,6 +5,7 @@ const navbarItemCss = ":host{-ms-flex:1 1 0%;flex:1 1 0%;-ms-flex-direction:colu
|
|
|
5
5
|
let NavbarItem = class {
|
|
6
6
|
constructor(hostRef) {
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
|
+
this.roadnavbaritemclick = createEvent(this, "roadnavbaritemclick", 7);
|
|
8
9
|
this.roadNavbarItemClick = createEvent(this, "roadNavbarItemClick", 7);
|
|
9
10
|
/**
|
|
10
11
|
* If `true`, the user cannot interact with the tab button.
|
|
@@ -29,6 +30,11 @@ let NavbarItem = class {
|
|
|
29
30
|
selectTab(ev) {
|
|
30
31
|
if (this.tab !== undefined) {
|
|
31
32
|
if (!this.disabled) {
|
|
33
|
+
this.roadnavbaritemclick.emit({
|
|
34
|
+
tab: this.tab,
|
|
35
|
+
href: this.href,
|
|
36
|
+
selected: this.selected,
|
|
37
|
+
});
|
|
32
38
|
this.roadNavbarItemClick.emit({
|
|
33
39
|
tab: this.tab,
|
|
34
40
|
href: this.href,
|
|
@@ -6,10 +6,14 @@ const navbarCss = ":host{--z-index:10;position:fixed;bottom:0;z-index:var(--z-in
|
|
|
6
6
|
let Navbar = class {
|
|
7
7
|
constructor(hostRef) {
|
|
8
8
|
registerInstance(this, hostRef);
|
|
9
|
+
this.roadnavbarchanged = createEvent(this, "roadnavbarchanged", 7);
|
|
9
10
|
this.roadNavbarChanged = createEvent(this, "roadNavbarChanged", 7);
|
|
10
11
|
}
|
|
11
12
|
selectedTabChanged() {
|
|
12
13
|
if (this.selectedTab !== undefined) {
|
|
14
|
+
this.roadnavbarchanged.emit({
|
|
15
|
+
tab: this.selectedTab,
|
|
16
|
+
});
|
|
13
17
|
this.roadNavbarChanged.emit({
|
|
14
18
|
tab: this.selectedTab,
|
|
15
19
|
});
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-0c8a0e04.js';
|
|
2
2
|
import { l as licensePlateStarEu } from './index-1ea26b25.js';
|
|
3
3
|
|
|
4
|
-
const plateNumberCss = ".sc-road-plate-number-h{display:block}.plate-number.sc-road-plate-number{--margin-bottom:0}.plate-number-start.sc-road-plate-number,.plate-number-end.sc-road-plate-number{width:1.75rem;height:3rem;background:var(--info-text)}.input-group-prepend.sc-road-plate-number{margin-right:-1px}.input-group-prepend.sc-road-plate-number,.input-group-append.sc-road-plate-number{padding:0}.plate-number-start.sc-road-plate-number{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:0;margin-right:0;color:var(--info-contrast);border-radius:3px 0 0 3px}.plate-number-icon.sc-road-plate-number{width:1.25rem;height:1.25rem;color:#f3db53}.plate-number-location.sc-road-plate-number{font-size:0.875rem;font-weight:700}.plate-number-end.sc-road-plate-number{border-radius:0 3px 3px 0}.plate-number-input.sc-road-plate-number{position:relative;display:block;height:3rem;margin:0;font-family:
|
|
4
|
+
const plateNumberCss = ".sc-road-plate-number-h{display:block}.plate-number.sc-road-plate-number{--margin-bottom:0}.plate-number-start.sc-road-plate-number,.plate-number-end.sc-road-plate-number{width:1.75rem;height:3rem;background:var(--info-text)}.input-group-prepend.sc-road-plate-number{margin-right:-1px}.input-group-prepend.sc-road-plate-number,.input-group-append.sc-road-plate-number{padding:0}.plate-number-start.sc-road-plate-number{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:0;margin-right:0;color:var(--info-contrast);border-radius:3px 0 0 3px}.plate-number-icon.sc-road-plate-number{width:1.25rem;height:1.25rem;color:#f3db53}.plate-number-location.sc-road-plate-number{font-size:0.875rem;font-weight:700}.plate-number-end.sc-road-plate-number{border-radius:0 3px 3px 0}.plate-number-input.sc-road-plate-number{position:relative;display:block;height:3rem;margin:0;font-family:var(--font, sans-serif);font-size:1.75rem;font-weight:700;color:var(--text);text-align:center;background:var(--white);border:1px solid var(--border-form);border-radius:0;outline:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.plate-number-input.sc-road-plate-number::-webkit-input-placeholder{color:var(--border);opacity:1}.plate-number-input.sc-road-plate-number::-moz-placeholder{color:var(--border);opacity:1}.plate-number-input.sc-road-plate-number:-ms-input-placeholder{color:var(--border);opacity:1}.plate-number-input.sc-road-plate-number::-ms-input-placeholder{color:var(--border);opacity:1}.plate-number-input.sc-road-plate-number::placeholder{color:var(--border);opacity:1}.plate-number-input.sc-road-plate-number:disabled,.plate-number-input[readonly].sc-road-plate-number{color:var(--text);cursor:not-allowed;background:var(--background);border-color:var(--background);opacity:1}.plate-number-input.sc-road-plate-number:not([readonly]):focus{border-color:var(--secondary);outline:0}.motorbike-plate.sc-road-plate-number .plate-number-input.sc-road-plate-number{height:6rem;padding:0.75rem 1rem 0;resize:none;border-left:0}.motorbike-plate.sc-road-plate-number .input-group-prepend.sc-road-plate-number,.motorbike-plate.sc-road-plate-number .input-group-append.sc-road-plate-number{-ms-flex-align:start;align-items:flex-start;height:6rem;padding:0}.motorbike-plate.sc-road-plate-number .plate-number-start.sc-road-plate-number{border-radius:3px 0 0}.motorbike-plate.sc-road-plate-number .plate-number-end.sc-road-plate-number{border-radius:0 3px 0 0}";
|
|
5
5
|
|
|
6
6
|
let PlateNumber = class {
|
|
7
7
|
constructor(hostRef) {
|
|
8
8
|
registerInstance(this, hostRef);
|
|
9
|
+
this.roadinput = createEvent(this, "roadinput", 7);
|
|
9
10
|
this.roadInput = createEvent(this, "roadInput", 7);
|
|
11
|
+
this.roadchange = createEvent(this, "roadchange", 7);
|
|
10
12
|
this.roadChange = createEvent(this, "roadChange", 7);
|
|
13
|
+
this.roadblur = createEvent(this, "roadblur", 7);
|
|
11
14
|
this.roadBlur = createEvent(this, "roadBlur", 7);
|
|
15
|
+
this.roadfocus = createEvent(this, "roadfocus", 7);
|
|
12
16
|
this.roadFocus = createEvent(this, "roadFocus", 7);
|
|
13
17
|
this.countries = [
|
|
14
18
|
{
|
|
@@ -46,6 +50,14 @@ let PlateNumber = class {
|
|
|
46
50
|
* country of the plate
|
|
47
51
|
*/
|
|
48
52
|
this.country = 'FR';
|
|
53
|
+
/**
|
|
54
|
+
* If `true`, the user cannot interact with the input.
|
|
55
|
+
*/
|
|
56
|
+
this.disabled = false;
|
|
57
|
+
/**
|
|
58
|
+
* If `true`, the user cannot modify the value.
|
|
59
|
+
*/
|
|
60
|
+
this.readonly = false;
|
|
49
61
|
/**
|
|
50
62
|
* The value of the input.
|
|
51
63
|
*/
|
|
@@ -55,12 +67,15 @@ let PlateNumber = class {
|
|
|
55
67
|
if (input) {
|
|
56
68
|
this.value = input.value.toUpperCase() || '';
|
|
57
69
|
}
|
|
70
|
+
this.roadinput.emit(ev);
|
|
58
71
|
this.roadInput.emit(ev);
|
|
59
72
|
};
|
|
60
73
|
this.onBlur = () => {
|
|
74
|
+
this.roadblur.emit();
|
|
61
75
|
this.roadBlur.emit();
|
|
62
76
|
};
|
|
63
77
|
this.onFocus = () => {
|
|
78
|
+
this.roadfocus.emit();
|
|
64
79
|
this.roadFocus.emit();
|
|
65
80
|
};
|
|
66
81
|
}
|
|
@@ -68,6 +83,7 @@ let PlateNumber = class {
|
|
|
68
83
|
* Update the native input element when the value changes
|
|
69
84
|
*/
|
|
70
85
|
valueChanged() {
|
|
86
|
+
this.roadchange.emit({ value: this.value == null ? this.value : this.value.toString() });
|
|
71
87
|
this.roadChange.emit({ value: this.value == null ? this.value : this.value.toString() });
|
|
72
88
|
}
|
|
73
89
|
getValue() {
|
|
@@ -80,8 +96,8 @@ let PlateNumber = class {
|
|
|
80
96
|
const motorbikeClass = this.motorbike ? 'motorbike-plate' : '';
|
|
81
97
|
return (h("road-input-group", { class: `plate-number ${motorbikeClass}` }, h("label", { slot: "prepend", class: "input-group-prepend" }, h("div", { class: "plate-number-start" }, h("road-icon", { class: "plate-number-icon", icon: licensePlateStarEu }), h("div", { class: "plate-number-location" }, this.countries
|
|
82
98
|
.filter(item => item.country === this.country)[0].letter))), this.motorbike
|
|
83
|
-
? (h("textarea", { class: "form-control plate-number-input mb-0", placeholder: this.placeholder != null ? this.placeholder : this.countries.filter(item => item.country === this.country)[0].placeholder, maxlength: "9", rows: 2, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus }))
|
|
84
|
-
: (h("input", { class: "plate-number-input mb-0", placeholder: this.placeholder != null ? this.placeholder : this.countries.filter(item => item.country === this.country)[0].placeholder, value: value, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus })), h("label", { slot: "append", class: "input-group-append" }, h("div", { class: "plate-number-end" }))));
|
|
99
|
+
? (h("textarea", { class: "form-control plate-number-input mb-0", disabled: this.disabled, placeholder: this.placeholder != null ? this.placeholder : this.countries.filter(item => item.country === this.country)[0].placeholder, readOnly: this.readonly, maxlength: "9", rows: 2, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus }))
|
|
100
|
+
: (h("input", { class: "plate-number-input mb-0", disabled: this.disabled, placeholder: this.placeholder != null ? this.placeholder : this.countries.filter(item => item.country === this.country)[0].placeholder, readOnly: this.readonly, value: value, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus })), h("label", { slot: "append", class: "input-group-append" }, h("div", { class: "plate-number-end" }))));
|
|
85
101
|
}
|
|
86
102
|
static get assetsDirs() { return ["fonts"]; }
|
|
87
103
|
static get watchers() { return {
|
|
@@ -5,6 +5,7 @@ const radioGroupCss = ".sc-road-radio-group-h{--asterisk-color:var(--text);posit
|
|
|
5
5
|
let RadioGroup = class {
|
|
6
6
|
constructor(hostRef) {
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
|
+
this.roadchange = createEvent(this, "roadchange", 7);
|
|
8
9
|
this.roadChange = createEvent(this, "roadChange", 7);
|
|
9
10
|
/**
|
|
10
11
|
* The id of checkbox
|
|
@@ -42,6 +43,7 @@ let RadioGroup = class {
|
|
|
42
43
|
};
|
|
43
44
|
}
|
|
44
45
|
valueChanged(value) {
|
|
46
|
+
this.roadchange.emit({ value });
|
|
45
47
|
this.roadChange.emit({ value });
|
|
46
48
|
}
|
|
47
49
|
errorChanged() {
|
|
@@ -6,7 +6,9 @@ const radioCss = ".sc-road-radio-h{position:relative;display:block;margin-bottom
|
|
|
6
6
|
let Radio = class {
|
|
7
7
|
constructor(hostRef) {
|
|
8
8
|
registerInstance(this, hostRef);
|
|
9
|
+
this.roadfocus = createEvent(this, "roadfocus", 7);
|
|
9
10
|
this.roadFocus = createEvent(this, "roadFocus", 7);
|
|
11
|
+
this.roadblur = createEvent(this, "roadblur", 7);
|
|
10
12
|
this.roadBlur = createEvent(this, "roadBlur", 7);
|
|
11
13
|
this.radioGroup = null;
|
|
12
14
|
/**
|
|
@@ -47,9 +49,11 @@ let Radio = class {
|
|
|
47
49
|
}
|
|
48
50
|
};
|
|
49
51
|
this.onFocus = () => {
|
|
52
|
+
this.roadfocus.emit();
|
|
50
53
|
this.roadFocus.emit();
|
|
51
54
|
};
|
|
52
55
|
this.onBlur = () => {
|
|
56
|
+
this.roadblur.emit();
|
|
53
57
|
this.roadBlur.emit();
|
|
54
58
|
};
|
|
55
59
|
}
|
|
@@ -5,6 +5,7 @@ const rangeCss = ".sc-road-range-h{display:block}.form-range.sc-road-range{posit
|
|
|
5
5
|
let Range = class {
|
|
6
6
|
constructor(hostRef) {
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
|
+
this.roadchange = createEvent(this, "roadchange", 7);
|
|
8
9
|
this.roadChange = createEvent(this, "roadChange", 7);
|
|
9
10
|
/**
|
|
10
11
|
* The id of range
|
|
@@ -32,6 +33,7 @@ let Range = class {
|
|
|
32
33
|
* Update the native input element when the value changes
|
|
33
34
|
*/
|
|
34
35
|
valueChanged() {
|
|
36
|
+
this.roadchange.emit({ value: this.value == null ? this.value : this.value.toString() });
|
|
35
37
|
this.roadChange.emit({ value: this.value == null ? this.value : this.value.toString() });
|
|
36
38
|
}
|
|
37
39
|
getValue() {
|
|
@@ -1783,6 +1783,7 @@ const selectFilterCss = ".sc-road-select-filter-h{position:relative;display:bloc
|
|
|
1783
1783
|
let SelectFilter = class {
|
|
1784
1784
|
constructor(hostRef) {
|
|
1785
1785
|
registerInstance(this, hostRef);
|
|
1786
|
+
this.roadselected = createEvent(this, "roadselected", 7);
|
|
1786
1787
|
this.roadSelected = createEvent(this, "roadSelected", 7);
|
|
1787
1788
|
this.isOpen = false;
|
|
1788
1789
|
this.currentValue = '';
|
|
@@ -1806,6 +1807,10 @@ let SelectFilter = class {
|
|
|
1806
1807
|
this.onClick = (value, label) => {
|
|
1807
1808
|
this.el.querySelector('road-input').value = label;
|
|
1808
1809
|
this.isOpen = false;
|
|
1810
|
+
this.roadselected.emit({
|
|
1811
|
+
value: value.toString(),
|
|
1812
|
+
label: label,
|
|
1813
|
+
});
|
|
1809
1814
|
this.roadSelected.emit({
|
|
1810
1815
|
value: value.toString(),
|
|
1811
1816
|
label: label,
|
|
@@ -5,8 +5,11 @@ const selectCss = ".sc-road-select-h{position:relative;display:block;margin-bott
|
|
|
5
5
|
let Select = class {
|
|
6
6
|
constructor(hostRef) {
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
|
+
this.roadchange = createEvent(this, "roadchange", 7);
|
|
8
9
|
this.roadChange = createEvent(this, "roadChange", 7);
|
|
10
|
+
this.roadfocus = createEvent(this, "roadfocus", 7);
|
|
9
11
|
this.roadFocus = createEvent(this, "roadFocus", 7);
|
|
12
|
+
this.roadblur = createEvent(this, "roadblur", 7);
|
|
10
13
|
this.roadBlur = createEvent(this, "roadBlur", 7);
|
|
11
14
|
/**
|
|
12
15
|
* The id of select
|
|
@@ -48,13 +51,18 @@ let Select = class {
|
|
|
48
51
|
}
|
|
49
52
|
};
|
|
50
53
|
this.onBlur = () => {
|
|
54
|
+
this.roadblur.emit();
|
|
51
55
|
this.roadBlur.emit();
|
|
52
56
|
};
|
|
53
57
|
this.onFocus = () => {
|
|
58
|
+
this.roadfocus.emit();
|
|
54
59
|
this.roadFocus.emit();
|
|
55
60
|
};
|
|
56
61
|
}
|
|
57
62
|
valueChanged() {
|
|
63
|
+
this.roadchange.emit({
|
|
64
|
+
value: this.value,
|
|
65
|
+
});
|
|
58
66
|
this.roadChange.emit({
|
|
59
67
|
value: this.value,
|
|
60
68
|
});
|
|
@@ -6,8 +6,11 @@ const switchCss = ".sc-road-switch-h{--switch-lever-width:4.5rem;position:relati
|
|
|
6
6
|
let Switch = class {
|
|
7
7
|
constructor(hostRef) {
|
|
8
8
|
registerInstance(this, hostRef);
|
|
9
|
+
this.roadchange = createEvent(this, "roadchange", 7);
|
|
9
10
|
this.roadChange = createEvent(this, "roadChange", 7);
|
|
11
|
+
this.roadfocus = createEvent(this, "roadfocus", 7);
|
|
10
12
|
this.roadFocus = createEvent(this, "roadFocus", 7);
|
|
13
|
+
this.roadblur = createEvent(this, "roadblur", 7);
|
|
11
14
|
this.roadBlur = createEvent(this, "roadBlur", 7);
|
|
12
15
|
/**
|
|
13
16
|
* The id of switch
|
|
@@ -57,13 +60,19 @@ let Switch = class {
|
|
|
57
60
|
this.checked = !this.checked;
|
|
58
61
|
};
|
|
59
62
|
this.onFocus = () => {
|
|
63
|
+
this.roadfocus.emit();
|
|
60
64
|
this.roadFocus.emit();
|
|
61
65
|
};
|
|
62
66
|
this.onBlur = () => {
|
|
63
67
|
this.roadBlur.emit();
|
|
68
|
+
this.roadblur.emit();
|
|
64
69
|
};
|
|
65
70
|
}
|
|
66
71
|
checkedChanged(isChecked) {
|
|
72
|
+
this.roadchange.emit({
|
|
73
|
+
checked: isChecked,
|
|
74
|
+
value: this.value,
|
|
75
|
+
});
|
|
67
76
|
this.roadChange.emit({
|
|
68
77
|
checked: isChecked,
|
|
69
78
|
value: this.value,
|
|
@@ -6,6 +6,7 @@ const tabBarCss = ":host{--tab-bar-background:var(--white);--tab-color:var(--tex
|
|
|
6
6
|
let TabBar = class {
|
|
7
7
|
constructor(hostRef) {
|
|
8
8
|
registerInstance(this, hostRef);
|
|
9
|
+
this.roadtabbarchanged = createEvent(this, "roadtabbarchanged", 7);
|
|
9
10
|
this.roadTabBarChanged = createEvent(this, "roadTabBarChanged", 7);
|
|
10
11
|
/**
|
|
11
12
|
* Set to `true` to expand buttons width to take the full size of the bar.
|
|
@@ -18,6 +19,9 @@ let TabBar = class {
|
|
|
18
19
|
}
|
|
19
20
|
selectedTabChanged() {
|
|
20
21
|
if (this.selectedTab !== undefined) {
|
|
22
|
+
this.roadtabbarchanged.emit({
|
|
23
|
+
tab: this.selectedTab,
|
|
24
|
+
});
|
|
21
25
|
this.roadTabBarChanged.emit({
|
|
22
26
|
tab: this.selectedTab,
|
|
23
27
|
});
|
|
@@ -5,6 +5,7 @@ const tabButtonCss = ":host{-webkit-box-sizing:border-box;box-sizing:border-box;
|
|
|
5
5
|
let TabButton = class {
|
|
6
6
|
constructor(hostRef) {
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
|
+
this.roadtabbuttonclick = createEvent(this, "roadtabbuttonclick", 7);
|
|
8
9
|
this.roadTabButtonClick = createEvent(this, "roadTabButtonClick", 7);
|
|
9
10
|
/**
|
|
10
11
|
* Set the layout of the text and icon in the tab bar.
|
|
@@ -33,6 +34,11 @@ let TabButton = class {
|
|
|
33
34
|
}
|
|
34
35
|
selectTab(ev) {
|
|
35
36
|
if (this.tab !== undefined) {
|
|
37
|
+
this.roadtabbuttonclick.emit({
|
|
38
|
+
tab: this.tab,
|
|
39
|
+
href: this.href,
|
|
40
|
+
selected: this.selected,
|
|
41
|
+
});
|
|
36
42
|
this.roadTabButtonClick.emit({
|
|
37
43
|
tab: this.tab,
|
|
38
44
|
href: this.href,
|
|
@@ -5,7 +5,9 @@ const tabsCss = ":host{position:relative;display:block}";
|
|
|
5
5
|
let Tabs = class {
|
|
6
6
|
constructor(hostRef) {
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
|
+
this.roadtabswillchange = createEvent(this, "roadtabswillchange", 3);
|
|
8
9
|
this.roadTabsWillChange = createEvent(this, "roadTabsWillChange", 3);
|
|
10
|
+
this.roadtabsdidchange = createEvent(this, "roadtabsdidchange", 3);
|
|
9
11
|
this.roadTabsDidChange = createEvent(this, "roadTabsDidChange", 3);
|
|
10
12
|
this.transitioning = false;
|
|
11
13
|
this.onTabClicked = (ev) => {
|
|
@@ -5,9 +5,13 @@ const textareaCss = ".sc-road-textarea-h{position:relative;display:block;margin-
|
|
|
5
5
|
let Textarea = class {
|
|
6
6
|
constructor(hostRef) {
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
|
+
this.roadinput = createEvent(this, "roadinput", 7);
|
|
8
9
|
this.roadInput = createEvent(this, "roadInput", 7);
|
|
10
|
+
this.roadchange = createEvent(this, "roadchange", 7);
|
|
9
11
|
this.roadChange = createEvent(this, "roadChange", 7);
|
|
12
|
+
this.roadblur = createEvent(this, "roadblur", 7);
|
|
10
13
|
this.roadBlur = createEvent(this, "roadBlur", 7);
|
|
14
|
+
this.roadfocus = createEvent(this, "roadfocus", 7);
|
|
11
15
|
this.roadFocus = createEvent(this, "roadFocus", 7);
|
|
12
16
|
/**
|
|
13
17
|
* The id of textarea
|
|
@@ -54,12 +58,15 @@ let Textarea = class {
|
|
|
54
58
|
if (input) {
|
|
55
59
|
this.value = input.value || '';
|
|
56
60
|
}
|
|
61
|
+
this.roadinput.emit(ev);
|
|
57
62
|
this.roadInput.emit(ev);
|
|
58
63
|
};
|
|
59
64
|
this.onBlur = () => {
|
|
65
|
+
this.roadblur.emit();
|
|
60
66
|
this.roadBlur.emit();
|
|
61
67
|
};
|
|
62
68
|
this.onFocus = () => {
|
|
69
|
+
this.roadfocus.emit();
|
|
63
70
|
this.roadFocus.emit();
|
|
64
71
|
};
|
|
65
72
|
}
|
|
@@ -67,6 +74,7 @@ let Textarea = class {
|
|
|
67
74
|
* Update the native textarea element when the value changes
|
|
68
75
|
*/
|
|
69
76
|
valueChanged() {
|
|
77
|
+
this.roadchange.emit({ value: this.value });
|
|
70
78
|
this.roadChange.emit({ value: this.value });
|
|
71
79
|
}
|
|
72
80
|
getValue() {
|