@roadtrip/components 3.39.2 → 3.41.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/app-globals-b7c6ddf0.js.map +1 -1
- package/dist/cjs/{index-bf8a763e.js → index-0e4df560.js} +3 -1
- package/dist/cjs/index-0e4df560.js.map +1 -0
- package/dist/cjs/index-fee0103c.js +8 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/road-accordion.cjs.entry.js +1 -1
- package/dist/cjs/road-alert.cjs.entry.js +54 -2
- package/dist/cjs/road-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/road-area-code.cjs.entry.js +1 -1
- package/dist/cjs/road-aspect-ratio.cjs.entry.js +1 -1
- package/dist/cjs/road-autocomplete.cjs.entry.js +2 -2
- package/dist/cjs/road-avatar.cjs.entry.js +1 -1
- package/dist/cjs/road-badge_14.cjs.entry.js +24 -19
- package/dist/cjs/road-badge_14.cjs.entry.js.map +1 -1
- package/dist/cjs/road-banner.cjs.entry.js +2 -2
- package/dist/cjs/road-button-floating.cjs.entry.js +1 -1
- package/dist/cjs/road-card.cjs.entry.js +1 -1
- package/dist/cjs/road-carousel-item.cjs.entry.js +2 -2
- package/dist/cjs/road-carousel.cjs.entry.js +2 -2
- package/dist/cjs/road-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/road-chip.cjs.entry.js +2 -2
- package/dist/cjs/road-collapse.cjs.entry.js +1 -1
- package/dist/cjs/road-content-card.cjs.entry.js +1 -1
- package/dist/cjs/road-dialog.cjs.entry.js +4 -4
- package/dist/cjs/road-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/road-duration.cjs.entry.js +1 -1
- package/dist/cjs/road-flap.cjs.entry.js +1 -1
- package/dist/cjs/road-global-navigation-v2.cjs.entry.js +1 -1
- package/dist/cjs/road-global-navigation.cjs.entry.js +1 -1
- package/dist/cjs/road-img.cjs.entry.js +1 -1
- package/dist/cjs/road-modal.cjs.entry.js +2 -2
- package/dist/cjs/road-navbar-item-v2.cjs.entry.js +2 -2
- package/dist/cjs/road-navbar-item.cjs.entry.js +2 -2
- package/dist/cjs/road-navbar-v2.cjs.entry.js +1 -1
- package/dist/cjs/road-navbar.cjs.entry.js +1 -1
- package/dist/cjs/road-phone-number-input.cjs.entry.js +2 -2
- package/dist/cjs/road-plate-number.cjs.entry.js +3 -3
- package/dist/cjs/road-profil-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/road-progress-indicator-horizontal.cjs.entry.js +1 -1
- package/dist/cjs/road-progress-indicator-vertical-item.cjs.entry.js +1 -1
- package/dist/cjs/road-progress-indicator-vertical.cjs.entry.js +1 -1
- package/dist/cjs/road-progress-tracker-item.cjs.entry.js +1 -1
- package/dist/cjs/road-progress-tracker.cjs.entry.js +1 -1
- package/dist/cjs/road-progress.cjs.entry.js +1 -1
- package/dist/cjs/road-radio-card.cjs.entry.js +1 -1
- package/dist/cjs/road-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/road-radio.cjs.entry.js +1 -1
- package/dist/cjs/road-range.cjs.entry.js +3 -3
- package/dist/cjs/road-rating.cjs.entry.js +2 -2
- package/dist/cjs/road-segmented-button-bar.cjs.entry.js +1 -1
- package/dist/cjs/road-segmented-button.cjs.entry.js +2 -2
- package/dist/cjs/road-segmented-buttons.cjs.entry.js +1 -1
- package/dist/cjs/road-select-filter.cjs.entry.js +1 -1
- package/dist/cjs/road-select.cjs.entry.js +2 -2
- package/dist/cjs/road-select.cjs.entry.js.map +1 -1
- package/dist/cjs/road-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/road-spinner.cjs.entry.js +1 -1
- package/dist/cjs/road-status-chip.cjs.entry.js +28 -0
- package/dist/cjs/road-status-chip.cjs.entry.js.map +1 -0
- package/dist/cjs/road-switch.cjs.entry.js +2 -2
- package/dist/cjs/road-tab-bar.cjs.entry.js +2 -2
- package/dist/cjs/road-tab-button.cjs.entry.js +2 -2
- package/dist/cjs/road-tab.cjs.entry.js +2 -2
- package/dist/cjs/road-table.cjs.entry.js +1 -1
- package/dist/cjs/road-tabs.cjs.entry.js +1 -1
- package/dist/cjs/road-tag.cjs.entry.js +1 -1
- package/dist/cjs/road-text.cjs.entry.js +1 -1
- package/dist/cjs/road-textarea.cjs.entry.js +1 -1
- package/dist/cjs/road-time-range-picker.cjs.entry.js +100 -0
- package/dist/cjs/road-time-range-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/road-toast.cjs.entry.js +2 -2
- package/dist/cjs/road-toggle.cjs.entry.js +2 -2
- package/dist/cjs/road-toolbar-title-page.cjs.entry.js +1 -1
- package/dist/cjs/road-toolbar-title.cjs.entry.js +1 -1
- package/dist/cjs/road-toolbar-v2.cjs.entry.js +1 -1
- package/dist/cjs/road-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/roadtrip.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/alert/alert.css +73 -2
- package/dist/collection/components/alert/alert.js +157 -1
- package/dist/collection/components/alert/alert.js.map +1 -1
- package/dist/collection/components/alert/alert.stories.js +27 -12
- package/dist/collection/components/area-code/area-code.js +1 -1
- package/dist/collection/components/aspect-ratio/aspect-ratio.js +1 -1
- package/dist/collection/components/autocomplete/autocomplete.js +2 -2
- package/dist/collection/components/avatar/avatar.js +1 -1
- package/dist/collection/components/badge/badge.js +1 -1
- package/dist/collection/components/banner/banner.js +1 -1
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/button-floating/button-floating.js +1 -1
- package/dist/collection/components/card/card.js +1 -1
- package/dist/collection/components/carousel/carousel.js +1 -1
- package/dist/collection/components/carousel-item/carousel-item.js +2 -2
- package/dist/collection/components/checkbox/checkbox.js +1 -1
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/col/col.js +1 -1
- package/dist/collection/components/collapse/collapse.js +1 -1
- package/dist/collection/components/content-card/content-card.js +1 -1
- package/dist/collection/components/counter/counter.js +1 -1
- package/dist/collection/components/dialog/dialog.js +3 -3
- package/dist/collection/components/drawer/drawer.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +1 -1
- package/dist/collection/components/duration/duration.js +1 -1
- package/dist/collection/components/flap/flap.js +1 -1
- package/dist/collection/components/global-navigation/global-navigation.js +1 -1
- package/dist/collection/components/global-navigation-v2/global-navigation-v2.js +1 -1
- package/dist/collection/components/grid/grid.js +1 -1
- package/dist/collection/components/img/img.js +1 -1
- package/dist/collection/components/input/input.css +8 -0
- package/dist/collection/components/input/input.js +27 -2
- package/dist/collection/components/input/input.js.map +1 -1
- package/dist/collection/components/input/input.stories.js +11 -0
- package/dist/collection/components/input-group/input-group.js +1 -1
- package/dist/collection/components/item/item.js +3 -3
- package/dist/collection/components/label/label.js +1 -1
- package/dist/collection/components/list/list.js +2 -2
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/navbar/navbar.js +1 -1
- package/dist/collection/components/navbar-item/navbar-item.js +2 -2
- package/dist/collection/components/navbar-item-v2/navbar-item-v2.js +2 -2
- package/dist/collection/components/navbar-v2/navbar-v2.js +1 -1
- package/dist/collection/components/patterns/link.stories.js +5 -0
- package/dist/collection/components/phone-number-input/phone-number-input.js +2 -2
- package/dist/collection/components/plate-number/plate-number.js +2 -2
- package/dist/collection/components/profil-dropdown/profil-dropdown.js +1 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/progress-indicator-horizontal/progress-indicator-horizontal.js +1 -1
- package/dist/collection/components/progress-indicator-vertical/progress-indicator-vertical.js +1 -1
- package/dist/collection/components/progress-indicator-vertical-item/progress-indicator-vertical-item.js +1 -1
- package/dist/collection/components/progress-tracker/progress-tracker.js +1 -1
- package/dist/collection/components/progress-tracker-item/progress-tracker-item.js +1 -1
- package/dist/collection/components/radio/radio.js +1 -1
- package/dist/collection/components/radio-card/radio-card.js +1 -1
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- package/dist/collection/components/range/range.js +2 -2
- package/dist/collection/components/rating/rating.js +1 -1
- package/dist/collection/components/row/row.js +1 -1
- package/dist/collection/components/segmented-button/segmented-button.js +2 -2
- package/dist/collection/components/segmented-button-bar/segmented-button-bar.js +1 -1
- package/dist/collection/components/segmented-buttons/segmented-buttons.js +1 -1
- package/dist/collection/components/select/select.css +9 -0
- package/dist/collection/components/select/select.js +20 -1
- package/dist/collection/components/select/select.js.map +1 -1
- package/dist/collection/components/select/select.stories.js +10 -0
- package/dist/collection/components/select-filter/select-filter.js +1 -1
- package/dist/collection/components/skeleton/skeleton.js +1 -1
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/status-chip/status-chip.css +94 -0
- package/dist/collection/components/status-chip/status-chip.js +54 -0
- package/dist/collection/components/status-chip/status-chip.js.map +1 -0
- package/dist/collection/components/status-chip/status-chip.stories.js +48 -0
- package/dist/collection/components/switch/switch.js +2 -2
- package/dist/collection/components/tab/tab.js +2 -2
- package/dist/collection/components/tab-bar/tab-bar.js +2 -2
- package/dist/collection/components/tab-button/tab-button.js +2 -2
- package/dist/collection/components/table/table.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/tag/tag.js +1 -1
- package/dist/collection/components/text/text.js +1 -1
- package/dist/collection/components/textarea/textarea.js +1 -1
- package/dist/collection/components/time-range-picker/time-range-picker.css +43 -0
- package/dist/collection/components/time-range-picker/time-range-picker.js +362 -0
- package/dist/collection/components/time-range-picker/time-range-picker.js.map +1 -0
- package/dist/collection/components/time-range-picker/time-range-picker.stories.js +76 -0
- package/dist/collection/components/toast/toast.js +1 -1
- package/dist/collection/components/toggle/toggle.js +2 -2
- package/dist/collection/components/toolbar/toolbar.js +1 -1
- package/dist/collection/components/toolbar-title/toolbar-title.js +1 -1
- package/dist/collection/components/toolbar-title-page/toolbar-title-page.js +1 -1
- package/dist/collection/components/toolbar-v2/toolbar-v2.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +3 -3
- package/dist/esm/app-globals-05a7fd2f.js.map +1 -1
- package/dist/esm/{index-f1358629.js → index-6de77b28.js} +3 -2
- package/dist/esm/index-6de77b28.js.map +1 -0
- package/dist/esm/index-8dc34f94.js +8 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/road-accordion.entry.js +1 -1
- package/dist/esm/road-alert.entry.js +55 -3
- package/dist/esm/road-alert.entry.js.map +1 -1
- package/dist/esm/road-area-code.entry.js +1 -1
- package/dist/esm/road-aspect-ratio.entry.js +1 -1
- package/dist/esm/road-autocomplete.entry.js +2 -2
- package/dist/esm/road-avatar.entry.js +1 -1
- package/dist/esm/road-badge_14.entry.js +24 -19
- package/dist/esm/road-badge_14.entry.js.map +1 -1
- package/dist/esm/road-banner.entry.js +2 -2
- package/dist/esm/road-button-floating.entry.js +1 -1
- package/dist/esm/road-card.entry.js +1 -1
- package/dist/esm/road-carousel-item.entry.js +2 -2
- package/dist/esm/road-carousel.entry.js +2 -2
- package/dist/esm/road-checkbox.entry.js +2 -2
- package/dist/esm/road-chip.entry.js +2 -2
- package/dist/esm/road-collapse.entry.js +1 -1
- package/dist/esm/road-content-card.entry.js +1 -1
- package/dist/esm/road-dialog.entry.js +4 -4
- package/dist/esm/road-dropdown.entry.js +1 -1
- package/dist/esm/road-duration.entry.js +1 -1
- package/dist/esm/road-flap.entry.js +1 -1
- package/dist/esm/road-global-navigation-v2.entry.js +1 -1
- package/dist/esm/road-global-navigation.entry.js +1 -1
- package/dist/esm/road-img.entry.js +1 -1
- package/dist/esm/road-modal.entry.js +2 -2
- package/dist/esm/road-navbar-item-v2.entry.js +2 -2
- package/dist/esm/road-navbar-item.entry.js +2 -2
- package/dist/esm/road-navbar-v2.entry.js +1 -1
- package/dist/esm/road-navbar.entry.js +1 -1
- package/dist/esm/road-phone-number-input.entry.js +2 -2
- package/dist/esm/road-plate-number.entry.js +3 -3
- package/dist/esm/road-profil-dropdown.entry.js +1 -1
- package/dist/esm/road-progress-indicator-horizontal.entry.js +1 -1
- package/dist/esm/road-progress-indicator-vertical-item.entry.js +1 -1
- package/dist/esm/road-progress-indicator-vertical.entry.js +1 -1
- package/dist/esm/road-progress-tracker-item.entry.js +1 -1
- package/dist/esm/road-progress-tracker.entry.js +1 -1
- package/dist/esm/road-progress.entry.js +1 -1
- package/dist/esm/road-radio-card.entry.js +1 -1
- package/dist/esm/road-radio-group.entry.js +1 -1
- package/dist/esm/road-radio.entry.js +1 -1
- package/dist/esm/road-range.entry.js +3 -3
- package/dist/esm/road-rating.entry.js +2 -2
- package/dist/esm/road-segmented-button-bar.entry.js +1 -1
- package/dist/esm/road-segmented-button.entry.js +2 -2
- package/dist/esm/road-segmented-buttons.entry.js +1 -1
- package/dist/esm/road-select-filter.entry.js +1 -1
- package/dist/esm/road-select.entry.js +2 -2
- package/dist/esm/road-select.entry.js.map +1 -1
- package/dist/esm/road-skeleton.entry.js +1 -1
- package/dist/esm/road-spinner.entry.js +1 -1
- package/dist/esm/road-status-chip.entry.js +24 -0
- package/dist/esm/road-status-chip.entry.js.map +1 -0
- package/dist/esm/road-switch.entry.js +2 -2
- package/dist/esm/road-tab-bar.entry.js +2 -2
- package/dist/esm/road-tab-button.entry.js +2 -2
- package/dist/esm/road-tab.entry.js +2 -2
- package/dist/esm/road-table.entry.js +1 -1
- package/dist/esm/road-tabs.entry.js +1 -1
- package/dist/esm/road-tag.entry.js +1 -1
- package/dist/esm/road-text.entry.js +1 -1
- package/dist/esm/road-textarea.entry.js +1 -1
- package/dist/esm/road-time-range-picker.entry.js +96 -0
- package/dist/esm/road-time-range-picker.entry.js.map +1 -0
- package/dist/esm/road-toast.entry.js +2 -2
- package/dist/esm/road-toggle.entry.js +2 -2
- package/dist/esm/road-toolbar-title-page.entry.js +1 -1
- package/dist/esm/road-toolbar-title.entry.js +1 -1
- package/dist/esm/road-toolbar-v2.entry.js +1 -1
- package/dist/esm/road-tooltip.entry.js +3 -3
- package/dist/esm/roadtrip.js +1 -1
- package/dist/html.html-data.json +184 -79
- package/dist/roadtrip/p-06bfef98.js.map +1 -1
- package/dist/roadtrip/{p-727b8192.entry.js → p-07db2ee1.entry.js} +3 -3
- package/dist/roadtrip/p-07db2ee1.entry.js.map +1 -0
- package/dist/roadtrip/{p-3b05eb04.entry.js → p-11d896b1.entry.js} +2 -2
- package/dist/roadtrip/{p-31837e5f.entry.js → p-1449b7c8.entry.js} +2 -2
- package/dist/roadtrip/p-24196fd2.entry.js +2 -0
- package/dist/roadtrip/p-24196fd2.entry.js.map +1 -0
- package/dist/roadtrip/{p-c2e6b479.entry.js → p-26b852e2.entry.js} +2 -2
- package/dist/roadtrip/{p-a426ec75.entry.js → p-2797e2f2.entry.js} +2 -2
- package/dist/roadtrip/{p-05d0f91d.entry.js → p-29ac611e.entry.js} +2 -2
- package/dist/roadtrip/p-2ae82371.entry.js +2 -0
- package/dist/roadtrip/{p-2722edab.entry.js → p-302f51c6.entry.js} +2 -2
- package/dist/roadtrip/{p-3e076a57.entry.js → p-36288d23.entry.js} +2 -2
- package/dist/roadtrip/{p-3c63b7db.entry.js → p-36f8563a.entry.js} +2 -2
- package/dist/roadtrip/{p-ad5bbf7b.entry.js → p-377d6b5b.entry.js} +2 -2
- package/dist/roadtrip/{p-0c3acb06.entry.js → p-39173ac2.entry.js} +2 -2
- package/dist/roadtrip/p-39173ac2.entry.js.map +1 -0
- package/dist/roadtrip/{p-a065e029.entry.js → p-3a310d3d.entry.js} +2 -2
- package/dist/roadtrip/{p-f293472d.entry.js → p-3dc22d00.entry.js} +2 -2
- package/dist/roadtrip/p-4334d85b.entry.js +2 -0
- package/dist/roadtrip/{p-4543ebe4.entry.js → p-45b9521f.entry.js} +2 -2
- package/dist/roadtrip/{p-773d810b.entry.js → p-45cabcdf.entry.js} +2 -2
- package/dist/roadtrip/{p-ed4c84c4.entry.js → p-4bb49a92.entry.js} +2 -2
- package/dist/roadtrip/{p-713db434.entry.js → p-4e3cc7e9.entry.js} +2 -2
- package/dist/roadtrip/{p-7546dadc.entry.js → p-509ba166.entry.js} +2 -2
- package/dist/roadtrip/{p-c8639b33.entry.js → p-52d56ed2.entry.js} +2 -2
- package/dist/roadtrip/p-55a946f4.js +2 -0
- package/dist/roadtrip/p-55a946f4.js.map +1 -0
- package/dist/roadtrip/{p-47996b6e.entry.js → p-58b20099.entry.js} +2 -2
- package/dist/roadtrip/{p-9fd1a846.entry.js → p-5b738d24.entry.js} +2 -2
- package/dist/roadtrip/{p-14761790.entry.js → p-5f6771e5.entry.js} +2 -2
- package/dist/roadtrip/p-61191773.entry.js +2 -0
- package/dist/roadtrip/{p-1fe92473.entry.js.map → p-61191773.entry.js.map} +1 -1
- package/dist/roadtrip/{p-610216c6.entry.js → p-65dfd1e8.entry.js} +2 -2
- package/dist/roadtrip/{p-a21bce75.entry.js → p-6e9fac54.entry.js} +2 -2
- package/dist/roadtrip/{p-974b5313.entry.js → p-70f4387a.entry.js} +2 -2
- package/dist/roadtrip/{p-4c3c1480.entry.js → p-75ebf102.entry.js} +2 -2
- package/dist/roadtrip/{p-f514f186.entry.js → p-7955499d.entry.js} +2 -2
- package/dist/roadtrip/{p-daeb9c8d.entry.js → p-79c3152e.entry.js} +2 -2
- package/dist/roadtrip/{p-84dc220e.entry.js → p-7e0bdcf9.entry.js} +2 -2
- package/dist/roadtrip/p-8753beba.entry.js +2 -0
- package/dist/roadtrip/{p-fa0d3620.entry.js → p-875b5999.entry.js} +2 -2
- package/dist/roadtrip/{p-8405c529.entry.js → p-8cd69117.entry.js} +2 -2
- package/dist/roadtrip/{p-c75d28ae.entry.js → p-927cf307.entry.js} +2 -2
- package/dist/roadtrip/{p-255f2276.entry.js → p-9cbd5ae9.entry.js} +2 -2
- package/dist/roadtrip/{p-64928ea0.entry.js → p-a264377a.entry.js} +2 -2
- package/dist/roadtrip/{p-64b638e1.entry.js → p-a4e45088.entry.js} +2 -2
- package/dist/roadtrip/{p-47c44b2b.entry.js → p-b292d3fc.entry.js} +2 -2
- package/dist/roadtrip/{p-5cd3095d.entry.js → p-b5b2e36c.entry.js} +2 -2
- package/dist/roadtrip/{p-bfca0abd.entry.js → p-b61abebd.entry.js} +2 -2
- package/dist/roadtrip/{p-d91eccca.entry.js → p-b8132587.entry.js} +2 -2
- package/dist/roadtrip/{p-998e28b4.entry.js → p-c28fbcc0.entry.js} +2 -2
- package/dist/roadtrip/{p-aed4bf52.entry.js → p-c4550384.entry.js} +2 -2
- package/dist/roadtrip/{p-c441209e.entry.js → p-c7dd579d.entry.js} +2 -2
- package/dist/roadtrip/{p-dab34668.entry.js → p-c9527301.entry.js} +2 -2
- package/dist/roadtrip/{p-d62ae6e9.entry.js → p-ca3460a4.entry.js} +2 -2
- package/dist/roadtrip/{p-455e929c.entry.js → p-d1517c27.entry.js} +2 -2
- package/dist/roadtrip/p-d6a7644e.entry.js +2 -0
- package/dist/roadtrip/p-d6a7644e.entry.js.map +1 -0
- package/dist/roadtrip/{p-18c2b855.entry.js → p-d881a66c.entry.js} +2 -2
- package/dist/roadtrip/p-da3bfbfb.entry.js +2 -0
- package/dist/roadtrip/p-da3bfbfb.entry.js.map +1 -0
- package/dist/roadtrip/{p-cfe1ebe3.entry.js → p-de35fded.entry.js} +2 -2
- package/dist/roadtrip/{p-233b3f06.entry.js → p-df4cf8bb.entry.js} +2 -2
- package/dist/roadtrip/p-e2ba76f7.entry.js +2 -0
- package/dist/roadtrip/{p-1cce4f29.entry.js → p-e56c84ec.entry.js} +2 -2
- package/dist/roadtrip/{p-7ff27d65.entry.js → p-e7b4f257.entry.js} +2 -2
- package/dist/roadtrip/{p-b7dc61c8.entry.js → p-e97c8d7f.entry.js} +2 -2
- package/dist/roadtrip/p-eca24e7d.entry.js +2 -0
- package/dist/roadtrip/{p-6c43a952.entry.js.map → p-eca24e7d.entry.js.map} +1 -1
- package/dist/roadtrip/{p-6e09a2ef.entry.js → p-edf07985.entry.js} +2 -2
- package/dist/roadtrip/{p-f7a3a65c.entry.js → p-ef883f08.entry.js} +2 -2
- package/dist/roadtrip/{p-7dc95335.entry.js → p-f30f96c2.entry.js} +2 -2
- package/dist/roadtrip/{p-6bba72da.entry.js → p-f58f43d0.entry.js} +2 -2
- package/dist/roadtrip/{p-090b84ec.entry.js → p-fdcebcc3.entry.js} +2 -2
- package/dist/roadtrip/p-ff189f73.entry.js +2 -0
- package/dist/roadtrip/roadtrip.css +1 -1
- package/dist/roadtrip/roadtrip.esm.js +1 -1
- package/dist/roadtrip/roadtrip.esm.js.map +1 -1
- package/dist/types/components/alert/alert.d.ts +37 -0
- package/dist/types/components/input/input.d.ts +4 -0
- package/dist/types/components/select/select.d.ts +4 -0
- package/dist/types/components/status-chip/status-chip.d.ts +11 -0
- package/dist/types/components/time-range-picker/time-range-picker.d.ts +57 -0
- package/dist/types/components.d.ts +210 -0
- package/hydrate/index.d.ts +24 -38
- package/hydrate/index.js +20100 -20260
- package/hydrate/index.mjs +20100 -20260
- package/package.json +4 -4
- package/dist/cjs/index-bf8a763e.js.map +0 -1
- package/dist/esm/index-f1358629.js.map +0 -1
- package/dist/roadtrip/p-0c3acb06.entry.js.map +0 -1
- package/dist/roadtrip/p-1fe92473.entry.js +0 -2
- package/dist/roadtrip/p-32685310.entry.js +0 -2
- package/dist/roadtrip/p-64d67d81.entry.js +0 -2
- package/dist/roadtrip/p-6c43a952.entry.js +0 -2
- package/dist/roadtrip/p-6d7895b7.entry.js +0 -2
- package/dist/roadtrip/p-727b8192.entry.js.map +0 -1
- package/dist/roadtrip/p-9e22fa54.entry.js +0 -2
- package/dist/roadtrip/p-a8cfee66.entry.js +0 -2
- package/dist/roadtrip/p-a8cfee66.entry.js.map +0 -1
- package/dist/roadtrip/p-db82e012.js +0 -2
- package/dist/roadtrip/p-db82e012.js.map +0 -1
- package/dist/roadtrip/p-f4b23455.entry.js +0 -2
- /package/dist/roadtrip/{p-3b05eb04.entry.js.map → p-11d896b1.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-31837e5f.entry.js.map → p-1449b7c8.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c2e6b479.entry.js.map → p-26b852e2.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-a426ec75.entry.js.map → p-2797e2f2.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-05d0f91d.entry.js.map → p-29ac611e.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-32685310.entry.js.map → p-2ae82371.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-2722edab.entry.js.map → p-302f51c6.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-3e076a57.entry.js.map → p-36288d23.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-3c63b7db.entry.js.map → p-36f8563a.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-ad5bbf7b.entry.js.map → p-377d6b5b.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-a065e029.entry.js.map → p-3a310d3d.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-f293472d.entry.js.map → p-3dc22d00.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-9e22fa54.entry.js.map → p-4334d85b.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-4543ebe4.entry.js.map → p-45b9521f.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-773d810b.entry.js.map → p-45cabcdf.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-ed4c84c4.entry.js.map → p-4bb49a92.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-713db434.entry.js.map → p-4e3cc7e9.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-7546dadc.entry.js.map → p-509ba166.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c8639b33.entry.js.map → p-52d56ed2.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-47996b6e.entry.js.map → p-58b20099.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-9fd1a846.entry.js.map → p-5b738d24.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-14761790.entry.js.map → p-5f6771e5.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-610216c6.entry.js.map → p-65dfd1e8.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-a21bce75.entry.js.map → p-6e9fac54.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-974b5313.entry.js.map → p-70f4387a.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-4c3c1480.entry.js.map → p-75ebf102.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-f514f186.entry.js.map → p-7955499d.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-daeb9c8d.entry.js.map → p-79c3152e.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-84dc220e.entry.js.map → p-7e0bdcf9.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-6d7895b7.entry.js.map → p-8753beba.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-fa0d3620.entry.js.map → p-875b5999.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-8405c529.entry.js.map → p-8cd69117.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c75d28ae.entry.js.map → p-927cf307.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-255f2276.entry.js.map → p-9cbd5ae9.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-64928ea0.entry.js.map → p-a264377a.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-64b638e1.entry.js.map → p-a4e45088.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-47c44b2b.entry.js.map → p-b292d3fc.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-5cd3095d.entry.js.map → p-b5b2e36c.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-bfca0abd.entry.js.map → p-b61abebd.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-d91eccca.entry.js.map → p-b8132587.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-998e28b4.entry.js.map → p-c28fbcc0.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-aed4bf52.entry.js.map → p-c4550384.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c441209e.entry.js.map → p-c7dd579d.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-dab34668.entry.js.map → p-c9527301.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-d62ae6e9.entry.js.map → p-ca3460a4.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-455e929c.entry.js.map → p-d1517c27.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-18c2b855.entry.js.map → p-d881a66c.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-cfe1ebe3.entry.js.map → p-de35fded.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-233b3f06.entry.js.map → p-df4cf8bb.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-64d67d81.entry.js.map → p-e2ba76f7.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-1cce4f29.entry.js.map → p-e56c84ec.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-7ff27d65.entry.js.map → p-e7b4f257.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-b7dc61c8.entry.js.map → p-e97c8d7f.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-6e09a2ef.entry.js.map → p-edf07985.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-f7a3a65c.entry.js.map → p-ef883f08.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-7dc95335.entry.js.map → p-f30f96c2.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-6bba72da.entry.js.map → p-f58f43d0.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-090b84ec.entry.js.map → p-fdcebcc3.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-f4b23455.entry.js.map → p-ff189f73.entry.js.map} +0 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { alertInfoSolid } from "../../../icons";
|
|
3
|
+
import "./../../utils/polyfill";
|
|
4
|
+
/**
|
|
5
|
+
* @slot - Content of the chip.
|
|
6
|
+
*/
|
|
7
|
+
export class Chip {
|
|
8
|
+
constructor() {
|
|
9
|
+
/**
|
|
10
|
+
* The chip size.
|
|
11
|
+
*/
|
|
12
|
+
this.size = 'sm';
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
return (h(Host, { key: '66bf3407592164729d81e1269900dfff160d60ce', class: `chip-${this.size}`, tabindex: "0" }, h("div", { key: 'e037baad33a3be2b430f9c2325abc81f4e7fd015', class: "chip-description" }, h("road-icon", { key: '961d65ef9f31be4444c983c0bd178e19c0f06692', class: "chip-icon", color: "info", icon: alertInfoSolid }), h("slot", { key: '3f1852768aa6a6dc6b234832688f6868b9676591' }))));
|
|
16
|
+
}
|
|
17
|
+
static get is() { return "road-status-chip"; }
|
|
18
|
+
static get encapsulation() { return "shadow"; }
|
|
19
|
+
static get originalStyleUrls() {
|
|
20
|
+
return {
|
|
21
|
+
"$": ["status-chip.css"]
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
static get styleUrls() {
|
|
25
|
+
return {
|
|
26
|
+
"$": ["status-chip.css"]
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
static get properties() {
|
|
30
|
+
return {
|
|
31
|
+
"size": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"mutable": false,
|
|
34
|
+
"complexType": {
|
|
35
|
+
"original": "'sm' | 'md' | 'lg'",
|
|
36
|
+
"resolved": "\"lg\" | \"md\" | \"sm\"",
|
|
37
|
+
"references": {}
|
|
38
|
+
},
|
|
39
|
+
"required": false,
|
|
40
|
+
"optional": false,
|
|
41
|
+
"docs": {
|
|
42
|
+
"tags": [],
|
|
43
|
+
"text": "The chip size."
|
|
44
|
+
},
|
|
45
|
+
"getter": false,
|
|
46
|
+
"setter": false,
|
|
47
|
+
"attribute": "size",
|
|
48
|
+
"reflect": false,
|
|
49
|
+
"defaultValue": "'sm'"
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=status-chip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status-chip.js","sourceRoot":"","sources":["../../../src/components/status-chip/status-chip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,wBAAwB,CAAC;AAEhC;;GAEG;AAOH,MAAM,OAAO,IAAI;IALjB;QAOE;;WAEG;QACK,SAAI,GAAwB,IAAI,CAAC;KAe1C;IAbC,MAAM;QAEJ,OAAO,CACL,EAAC,IAAI,qDACH,KAAK,EAAE,QAAQ,IAAI,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAC,GAAG;YAExC,4DAAK,KAAK,EAAC,kBAAkB;gBAC3B,kEAAW,KAAK,EAAC,WAAW,EAAC,KAAK,EAAC,MAAM,EAAC,IAAI,EAAE,cAAc,GAAc;gBAC5E,8DAAO,CACH,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, Prop, h } from '@stencil/core';\nimport { alertInfoSolid } from '../../../icons';\nimport './../../utils/polyfill';\n\n/**\n * @slot - Content of the chip.\n */\n\n@Component({\n tag: 'road-status-chip',\n styleUrl: 'status-chip.css',\n shadow: true,\n})\nexport class Chip {\n\n /**\n * The chip size.\n */\n @Prop() size: 'sm' | 'md' | 'lg' = 'sm';\n\n render() {\n\n return (\n <Host\n class={`chip-${this.size}`} tabindex=\"0\"\n >\n <div class=\"chip-description\">\n <road-icon class=\"chip-icon\" color=\"info\" icon={alertInfoSolid}></road-icon>\n <slot/>\n </div>\n </Host>\n );\n }\n}"]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
3
|
+
import { unsafeHTML } from 'lit-html/directives/unsafe-html.js';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
title: 'Forms/Status Chip',
|
|
7
|
+
component: 'road-status-chip',
|
|
8
|
+
argTypes: {
|
|
9
|
+
size: {
|
|
10
|
+
options: ['sm', 'md', 'lg'],
|
|
11
|
+
control: { type: 'select' },
|
|
12
|
+
description: 'Defines the size of the chip.',
|
|
13
|
+
table: {
|
|
14
|
+
defaultValue: { summary: 'sm' },
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
' ': {
|
|
18
|
+
control: 'text',
|
|
19
|
+
description: 'Content inside the chip (label).',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
args: {
|
|
23
|
+
size: 'sm',
|
|
24
|
+
' ': 'Label',
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const Template = (args) => html`
|
|
29
|
+
${['Label A', 'Label B', 'Label C', 'Label D'].map(label => html`
|
|
30
|
+
<road-status-chip
|
|
31
|
+
size="${ifDefined(args.size)}"
|
|
32
|
+
>
|
|
33
|
+
${unsafeHTML(args[' '] || label)}
|
|
34
|
+
</road-status-chip>
|
|
35
|
+
`)}
|
|
36
|
+
`;
|
|
37
|
+
|
|
38
|
+
export const Playground = Template.bind({});
|
|
39
|
+
Playground.args = {
|
|
40
|
+
' ': `Label`,
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
export const Size = Template.bind({});
|
|
45
|
+
Size.args = {
|
|
46
|
+
size: 'lg',
|
|
47
|
+
' ': `Revision`,
|
|
48
|
+
};
|
|
@@ -70,11 +70,11 @@ export class Switch {
|
|
|
70
70
|
}
|
|
71
71
|
render() {
|
|
72
72
|
const labelId = this.switchId + '-label';
|
|
73
|
-
const textLabel = h("label", { key: '
|
|
73
|
+
const textLabel = h("label", { key: 'ce7aa5f11558ca65be5c3e67fa4bd195befb93fb', class: "form-switch-label", id: labelId, htmlFor: this.switchId }, this.label);
|
|
74
74
|
const colorClass = this.color !== undefined ? 'form-switch-' + this.color : '';
|
|
75
75
|
const isSpacedClass = this.isSpaced && 'form-switch-spaced';
|
|
76
76
|
const rightSwitchClass = this.hasLeftLabel ? 'form-switch-right' : '';
|
|
77
|
-
return (h(Host, { key: '
|
|
77
|
+
return (h(Host, { key: '67cb125cd5c23b799ae301f584fe2fbf446a35dd' }, h("input", { key: 'dc19948d6370b14e077eb4725cfcb35916eb779f', class: "form-switch-input", type: "checkbox", id: this.switchId, name: this.name, checked: this.checked, disabled: this.disabled, value: this.value, "aria-checked": `${this.checked}`, "aria-disabled": this.disabled ? 'true' : null, "aria-labelledby": labelId, onClick: this.onClick, onFocus: this.onFocus, onBlur: this.onBlur }), h("label", { key: 'fb2645a723c66e5d45d621260f4ef18a172dccc4', class: `form-switch-label ${isSpacedClass} ${colorClass}`, htmlFor: this.switchId }, this.hasLeftLabel && textLabel, h("div", { key: 'a0e6f831b9136f89fcc70ed3004a8551c4b10760', class: `form-switch-lever ${rightSwitchClass}`, "data-off": this.off, "data-on": this.on }), this.hasLeftLabel ? '' : textLabel)));
|
|
78
78
|
}
|
|
79
79
|
static get is() { return "road-switch"; }
|
|
80
80
|
static get encapsulation() { return "scoped"; }
|
|
@@ -21,9 +21,9 @@ export class Tab {
|
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
23
|
const { tab, active } = this;
|
|
24
|
-
return (h(Host, { key: '
|
|
24
|
+
return (h(Host, { key: '3027c31c282565b7d5905d3b3031db04ba1bed44', role: "tabpanel", "aria-hidden": !active ? 'true' : null, "aria-labelledby": `tab-button-${tab}`, class: {
|
|
25
25
|
'tab-hidden': !active,
|
|
26
|
-
} }, h("slot", { key: '
|
|
26
|
+
} }, h("slot", { key: '70ae19f3e889a8c46d062363445185055a6c1133' })));
|
|
27
27
|
}
|
|
28
28
|
static get is() { return "road-tab"; }
|
|
29
29
|
static get encapsulation() { return "shadow"; }
|
|
@@ -36,11 +36,11 @@ export class TabBar {
|
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
38
|
const { expand, center, secondary } = this;
|
|
39
|
-
return (h(Host, { key: '
|
|
39
|
+
return (h(Host, { key: 'a40a29c3f335bd4b49495203834bb937af77a4bb', role: "tablist", class: {
|
|
40
40
|
'tab-expand': expand,
|
|
41
41
|
'tab-center': center,
|
|
42
42
|
'tab-secondary': secondary,
|
|
43
|
-
} }, h("slot", { key: '
|
|
43
|
+
} }, h("slot", { key: 'b7abc10609ae8939e729c735fb942b1b89c604ad' })));
|
|
44
44
|
}
|
|
45
45
|
static get is() { return "road-tab-bar"; }
|
|
46
46
|
static get encapsulation() { return "shadow"; }
|
|
@@ -71,7 +71,7 @@ export class TabButton {
|
|
|
71
71
|
rel,
|
|
72
72
|
target,
|
|
73
73
|
};
|
|
74
|
-
return (h(Host, { key: '
|
|
74
|
+
return (h(Host, { key: '3cb6c6f8dcab1715547dfa6fc43c4e6ec3234507', onClick: (ev) => !disabled && this.onClick(ev), onKeyup: (ev) => !disabled && this.onKeyUp(ev), role: "tab", tabindex: disabled ? -1 : tabIndex, "aria-selected": selected ? 'true' : 'false', "aria-disabled": disabled ? 'true' : null, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
|
|
75
75
|
'tab-selected': selected,
|
|
76
76
|
'tab-has-label': hasLabel,
|
|
77
77
|
'tab-has-icon': hasIcon,
|
|
@@ -79,7 +79,7 @@ export class TabButton {
|
|
|
79
79
|
'tab-has-icon-only': hasIcon && !hasLabel,
|
|
80
80
|
[`tab-layout-${layout}`]: true,
|
|
81
81
|
'tab-disabled': disabled, // Classe CSS pour les styles désactivés
|
|
82
|
-
} }, h("a", Object.assign({ key: '
|
|
82
|
+
} }, h("a", Object.assign({ key: '7f07a67f84c56857ac864b2d56c1698f31f618d5' }, attrs, { tabIndex: -1, class: "button-native", part: "native" }), h("span", { key: 'b6b0a2caa81b69199bf85210cec8722846a413b8', class: "button-inner" }, h("slot", { key: 'efbc557b0428fe1513f150ed97f0c9037284daa2' })))));
|
|
83
83
|
}
|
|
84
84
|
static get is() { return "road-tab-button"; }
|
|
85
85
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,7 +4,7 @@ import { h } from "@stencil/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export class Table {
|
|
6
6
|
render() {
|
|
7
|
-
return (h("slot", { key: '
|
|
7
|
+
return (h("slot", { key: '4fbbf196c158059cc8c375e9fcd848cd8e2d864f' }));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "road-table"; }
|
|
10
10
|
static get encapsulation() { return "scoped"; }
|
|
@@ -99,7 +99,7 @@ export class Tabs {
|
|
|
99
99
|
return Array.from(this.el.querySelectorAll('road-tab'));
|
|
100
100
|
}
|
|
101
101
|
render() {
|
|
102
|
-
return (h(Host, { key: '
|
|
102
|
+
return (h(Host, { key: '5bea03df378d3de02ca7dec12e9794a8edbb073c', onRoadTabButtonClick: this.onTabClicked }, h("slot", { key: '9f6d69f412a26dce57a919d02003e7548e824b08', name: "top" }), h("div", { key: '05058a9ec02a249ab6bc9d0f2bc301c1803e1e20', class: "tabs-inner" }, h("slot", { key: 'f10bf6e9d99a0c040dd4045b18f22f288e19fc2e' }))));
|
|
103
103
|
}
|
|
104
104
|
static get is() { return "road-tabs"; }
|
|
105
105
|
static get encapsulation() { return "shadow"; }
|
|
@@ -16,7 +16,7 @@ export class Tag {
|
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
18
|
const contrastClass = this.contrast ? `tag-${this.color} tag-${this.color}-contrast` : `tag-${this.color}`;
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '2639b90b789a6fde1fae0f3201236a7c9f4e1aad', class: `${contrastClass}` }, h("slot", { key: '8039feeab97b500f0828e1efa751b9771f4f5e65' })));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "road-tag"; }
|
|
22
22
|
static get encapsulation() { return "shadow"; }
|
|
@@ -11,7 +11,7 @@ export class Text {
|
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
13
|
const colorClass = this.color !== undefined ? `text-${this.color}` : '';
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: '2b1df03bfadf4021cf4016c584cdbd0ccf09324c', class: `${colorClass}` }, h("slot", { key: '6966b8ebe4a2eb48b1fd020a707c6a37a519b099' })));
|
|
15
15
|
}
|
|
16
16
|
static get is() { return "road-text"; }
|
|
17
17
|
static get encapsulation() { return "shadow"; }
|
|
@@ -82,7 +82,7 @@ export class Textarea {
|
|
|
82
82
|
const hasValueClass = this.value !== '' ? 'has-value' : '';
|
|
83
83
|
const noResizeClass = this.resize == false ? 'no-resize' : '';
|
|
84
84
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
85
|
-
return (h(Host, { key: '
|
|
85
|
+
return (h(Host, { key: 'cc414e4da358e65b430b91b0f834cbe403993693', "aria-disabled": this.disabled ? 'true' : null, class: this.sizes && `input-${this.sizes}` }, h("textarea", { key: '0d0a45eaf71ada8178387d6debfc5e3d6da6cb4f', class: `form-control textarea-control ${hasValueClass} ${noResizeClass} ${isInvalidClass}`, id: this.textareaId, "aria-disabled": this.disabled ? 'true' : null, "aria-labelledby": labelId, disabled: this.disabled, autoCapitalize: this.autocapitalize, autoFocus: this.autofocus, enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, maxLength: this.maxlength, minLength: this.minlength, name: this.name, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, value: value, spellcheck: this.spellcheck, cols: this.cols, rows: this.rows, wrap: this.wrap, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus }), h("label", { key: 'a74070b2761b5ced0251f5bce4ef48837d892c9d', class: "form-label", id: labelId, htmlFor: this.textareaId }, this.label), this.error && this.error !== '' && h("p", { key: 'ba52ee759d52772a2eac2e9948c64309164aabdc', class: "invalid-feedback" }, this.error), this.helper && this.helper !== '' && h("p", { key: '377f7c03d77aad381b2bdd63c4753369870612df', class: "helper" }, this.helper)));
|
|
86
86
|
}
|
|
87
87
|
static get is() { return "road-textarea"; }
|
|
88
88
|
static get encapsulation() { return "scoped"; }
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Time range
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
.required-indicator {
|
|
7
|
+
color: var(--road-on-danger-surface);
|
|
8
|
+
content: " *";
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.time-range-picker-content road-input{
|
|
12
|
+
margin-bottom: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.time-range-picker .messages {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.invalid-feedback {
|
|
21
|
+
font-size: var(--road-helper-medium);
|
|
22
|
+
color: var(--road-on-danger-surface);
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
gap: 4px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.invalid-feedback road-icon{
|
|
29
|
+
color: var(--road-danger-icon);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* Cible directement le road-input avec la classe error-border */
|
|
33
|
+
:host() road-input.error-border{
|
|
34
|
+
border-radius: 0.25rem;
|
|
35
|
+
outline: 1px solid var(--road-danger-outline);
|
|
36
|
+
outline-offset: -1px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* @slot start - Input de début
|
|
4
|
+
* @slot end - Input de fin
|
|
5
|
+
* @slot separator - Label séparateur (optionnel)
|
|
6
|
+
*/
|
|
7
|
+
export class RoadTimeRangePicker {
|
|
8
|
+
constructor() {
|
|
9
|
+
/** Désactivation du picker */
|
|
10
|
+
this.disabled = false;
|
|
11
|
+
/** Si `true`, l’utilisateur doit remplir avant submit */
|
|
12
|
+
this.required = false;
|
|
13
|
+
/** Taille du champ */
|
|
14
|
+
this.sizes = 'lg';
|
|
15
|
+
/** Handle change depuis le slot start */
|
|
16
|
+
this.handleStartChange = (e) => {
|
|
17
|
+
var _a;
|
|
18
|
+
this.start = (_a = e.detail.value) !== null && _a !== void 0 ? _a : undefined;
|
|
19
|
+
this.emitChange();
|
|
20
|
+
};
|
|
21
|
+
/** Handle change depuis le slot end */
|
|
22
|
+
this.handleEndChange = (e) => {
|
|
23
|
+
var _a;
|
|
24
|
+
this.end = (_a = e.detail.value) !== null && _a !== void 0 ? _a : undefined;
|
|
25
|
+
this.emitChange();
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
/** Retourne les messages d'erreur sous forme de tableau */
|
|
29
|
+
get errorMessages() {
|
|
30
|
+
if (!this.error)
|
|
31
|
+
return [];
|
|
32
|
+
if (Array.isArray(this.error))
|
|
33
|
+
return this.error.flatMap(e => (typeof e === 'string' ? e.split(',') : [e]));
|
|
34
|
+
return this.error.split(',');
|
|
35
|
+
}
|
|
36
|
+
/** Ajoute ou retire la classe error-border sur le road-input */
|
|
37
|
+
async updateInvalidClasses() {
|
|
38
|
+
var _a;
|
|
39
|
+
const inputs = Array.from(this.hostEl.querySelectorAll('road-input[slot="start"], road-input[slot="end"]'));
|
|
40
|
+
for (const inputEl of inputs) {
|
|
41
|
+
await ((_a = inputEl.componentOnReady) === null || _a === void 0 ? void 0 : _a.call(inputEl));
|
|
42
|
+
if (this.errorMessages.length > 0) {
|
|
43
|
+
inputEl.style.borderRadius = '0.25rem';
|
|
44
|
+
inputEl.style.outline = `1px solid var(--road-danger-outline)`;
|
|
45
|
+
inputEl.style.outlineOffset = '-1px';
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
inputEl.style.borderRadius = '';
|
|
49
|
+
inputEl.style.outline = '';
|
|
50
|
+
inputEl.style.outlineOffset = '';
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
/** Vérifie que start <= end et met à jour l’erreur */
|
|
55
|
+
validateRange() {
|
|
56
|
+
if (this.start && this.end && this.start > this.end) {
|
|
57
|
+
this.error = 'L’heure de début doit être inférieure à l’heure de fin.';
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
this.error = undefined;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
/** Émet les changements */
|
|
64
|
+
async emitChange() {
|
|
65
|
+
this.validateRange();
|
|
66
|
+
this.roadChange.emit({ start: this.start, end: this.end });
|
|
67
|
+
await this.updateInvalidClasses();
|
|
68
|
+
}
|
|
69
|
+
componentDidLoad() {
|
|
70
|
+
const startSlot = this.hostEl.querySelector('[slot="start"]');
|
|
71
|
+
const endSlot = this.hostEl.querySelector('[slot="end"]');
|
|
72
|
+
if (startSlot) {
|
|
73
|
+
startSlot.addEventListener('roadChange', this.handleStartChange);
|
|
74
|
+
}
|
|
75
|
+
if (endSlot) {
|
|
76
|
+
endSlot.addEventListener('roadChange', this.handleEndChange);
|
|
77
|
+
}
|
|
78
|
+
this.updateInvalidClasses();
|
|
79
|
+
}
|
|
80
|
+
async getRange() {
|
|
81
|
+
return { start: this.start, end: this.end };
|
|
82
|
+
}
|
|
83
|
+
render() {
|
|
84
|
+
return (h(Host, { key: 'c1528d80635b8cfdf6dbd01f890f20b12cb5948b', class: `time-range-picker input-${this.sizes}` }, this.label && (h("p", { key: '2d97d59a6b8449695537ad1a5bd0991e01c19bac', class: "label m-0" }, this.label, this.required && h("span", { key: '156a83258da14bc98be719155735afdbb17ccd50', class: "required-indicator" }, " *"))), h("div", { key: '836ab421c7c9ddbcd0e51a135d670962a0a27bf3', class: "time-range-picker-content d-flex align-items-center my-4" }, h("slot", { key: '66f945df18b1b404aa073d38501e11ee8bd5a1f0', name: "start" }), h("span", { key: '392ade369762ccf97ca3a8cf69398ca3a247f14e', class: "separator mx-12" }, this.separator), h("slot", { key: 'afac72354a5166ece7fcfea81c7115c599c61b85', name: "end" })), h("div", { key: '1a6d049fbe026f2c76cfb9164a3fff7983174ac4', class: "messages mt-1" }, this.errorMessages.map((msg, index) => (h("p", { key: index, class: "invalid-feedback m-0" }, h("road-icon", { slot: "start", name: "alert-error-solid", "aria-hidden": "true", size: "sm" }), msg.trim())))), this.helper && h("p", { key: 'dacbada369bbbe28302070d11e2242958ee2d983', class: "helper mt-1" }, this.helper)));
|
|
85
|
+
}
|
|
86
|
+
static get is() { return "road-time-range-picker"; }
|
|
87
|
+
static get encapsulation() { return "scoped"; }
|
|
88
|
+
static get originalStyleUrls() {
|
|
89
|
+
return {
|
|
90
|
+
"$": ["time-range-picker.css"]
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
static get styleUrls() {
|
|
94
|
+
return {
|
|
95
|
+
"$": ["time-range-picker.css"]
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
static get properties() {
|
|
99
|
+
return {
|
|
100
|
+
"start": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"mutable": true,
|
|
103
|
+
"complexType": {
|
|
104
|
+
"original": "string",
|
|
105
|
+
"resolved": "string | undefined",
|
|
106
|
+
"references": {}
|
|
107
|
+
},
|
|
108
|
+
"required": false,
|
|
109
|
+
"optional": true,
|
|
110
|
+
"docs": {
|
|
111
|
+
"tags": [],
|
|
112
|
+
"text": "Heure de d\u00E9but"
|
|
113
|
+
},
|
|
114
|
+
"getter": false,
|
|
115
|
+
"setter": false,
|
|
116
|
+
"attribute": "start",
|
|
117
|
+
"reflect": false
|
|
118
|
+
},
|
|
119
|
+
"end": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"mutable": true,
|
|
122
|
+
"complexType": {
|
|
123
|
+
"original": "string",
|
|
124
|
+
"resolved": "string | undefined",
|
|
125
|
+
"references": {}
|
|
126
|
+
},
|
|
127
|
+
"required": false,
|
|
128
|
+
"optional": true,
|
|
129
|
+
"docs": {
|
|
130
|
+
"tags": [],
|
|
131
|
+
"text": "Heure de fin"
|
|
132
|
+
},
|
|
133
|
+
"getter": false,
|
|
134
|
+
"setter": false,
|
|
135
|
+
"attribute": "end",
|
|
136
|
+
"reflect": false
|
|
137
|
+
},
|
|
138
|
+
"disabled": {
|
|
139
|
+
"type": "boolean",
|
|
140
|
+
"mutable": false,
|
|
141
|
+
"complexType": {
|
|
142
|
+
"original": "boolean",
|
|
143
|
+
"resolved": "boolean",
|
|
144
|
+
"references": {}
|
|
145
|
+
},
|
|
146
|
+
"required": false,
|
|
147
|
+
"optional": false,
|
|
148
|
+
"docs": {
|
|
149
|
+
"tags": [],
|
|
150
|
+
"text": "D\u00E9sactivation du picker"
|
|
151
|
+
},
|
|
152
|
+
"getter": false,
|
|
153
|
+
"setter": false,
|
|
154
|
+
"attribute": "disabled",
|
|
155
|
+
"reflect": false,
|
|
156
|
+
"defaultValue": "false"
|
|
157
|
+
},
|
|
158
|
+
"helper": {
|
|
159
|
+
"type": "string",
|
|
160
|
+
"mutable": false,
|
|
161
|
+
"complexType": {
|
|
162
|
+
"original": "string",
|
|
163
|
+
"resolved": "string | undefined",
|
|
164
|
+
"references": {}
|
|
165
|
+
},
|
|
166
|
+
"required": false,
|
|
167
|
+
"optional": true,
|
|
168
|
+
"docs": {
|
|
169
|
+
"tags": [],
|
|
170
|
+
"text": "Helper message"
|
|
171
|
+
},
|
|
172
|
+
"getter": false,
|
|
173
|
+
"setter": false,
|
|
174
|
+
"attribute": "helper",
|
|
175
|
+
"reflect": false
|
|
176
|
+
},
|
|
177
|
+
"separator": {
|
|
178
|
+
"type": "string",
|
|
179
|
+
"mutable": false,
|
|
180
|
+
"complexType": {
|
|
181
|
+
"original": "string",
|
|
182
|
+
"resolved": "string | undefined",
|
|
183
|
+
"references": {}
|
|
184
|
+
},
|
|
185
|
+
"required": false,
|
|
186
|
+
"optional": true,
|
|
187
|
+
"docs": {
|
|
188
|
+
"tags": [],
|
|
189
|
+
"text": "Separator label"
|
|
190
|
+
},
|
|
191
|
+
"getter": false,
|
|
192
|
+
"setter": false,
|
|
193
|
+
"attribute": "separator",
|
|
194
|
+
"reflect": false
|
|
195
|
+
},
|
|
196
|
+
"required": {
|
|
197
|
+
"type": "boolean",
|
|
198
|
+
"mutable": false,
|
|
199
|
+
"complexType": {
|
|
200
|
+
"original": "boolean",
|
|
201
|
+
"resolved": "boolean",
|
|
202
|
+
"references": {}
|
|
203
|
+
},
|
|
204
|
+
"required": false,
|
|
205
|
+
"optional": false,
|
|
206
|
+
"docs": {
|
|
207
|
+
"tags": [],
|
|
208
|
+
"text": "Si `true`, l\u2019utilisateur doit remplir avant submit"
|
|
209
|
+
},
|
|
210
|
+
"getter": false,
|
|
211
|
+
"setter": false,
|
|
212
|
+
"attribute": "required",
|
|
213
|
+
"reflect": false,
|
|
214
|
+
"defaultValue": "false"
|
|
215
|
+
},
|
|
216
|
+
"label": {
|
|
217
|
+
"type": "string",
|
|
218
|
+
"mutable": false,
|
|
219
|
+
"complexType": {
|
|
220
|
+
"original": "string",
|
|
221
|
+
"resolved": "string | undefined",
|
|
222
|
+
"references": {}
|
|
223
|
+
},
|
|
224
|
+
"required": false,
|
|
225
|
+
"optional": true,
|
|
226
|
+
"docs": {
|
|
227
|
+
"tags": [],
|
|
228
|
+
"text": "Label global du champ"
|
|
229
|
+
},
|
|
230
|
+
"getter": false,
|
|
231
|
+
"setter": false,
|
|
232
|
+
"attribute": "label",
|
|
233
|
+
"reflect": false
|
|
234
|
+
},
|
|
235
|
+
"sizes": {
|
|
236
|
+
"type": "string",
|
|
237
|
+
"mutable": false,
|
|
238
|
+
"complexType": {
|
|
239
|
+
"original": "'lg' | 'xl'",
|
|
240
|
+
"resolved": "\"lg\" | \"xl\"",
|
|
241
|
+
"references": {}
|
|
242
|
+
},
|
|
243
|
+
"required": false,
|
|
244
|
+
"optional": false,
|
|
245
|
+
"docs": {
|
|
246
|
+
"tags": [],
|
|
247
|
+
"text": "Taille du champ"
|
|
248
|
+
},
|
|
249
|
+
"getter": false,
|
|
250
|
+
"setter": false,
|
|
251
|
+
"attribute": "sizes",
|
|
252
|
+
"reflect": false,
|
|
253
|
+
"defaultValue": "'lg'"
|
|
254
|
+
},
|
|
255
|
+
"error": {
|
|
256
|
+
"type": "string",
|
|
257
|
+
"mutable": false,
|
|
258
|
+
"complexType": {
|
|
259
|
+
"original": "string | string[]",
|
|
260
|
+
"resolved": "string | string[] | undefined",
|
|
261
|
+
"references": {}
|
|
262
|
+
},
|
|
263
|
+
"required": false,
|
|
264
|
+
"optional": true,
|
|
265
|
+
"docs": {
|
|
266
|
+
"tags": [],
|
|
267
|
+
"text": "Error messages"
|
|
268
|
+
},
|
|
269
|
+
"getter": false,
|
|
270
|
+
"setter": false,
|
|
271
|
+
"attribute": "error",
|
|
272
|
+
"reflect": false
|
|
273
|
+
}
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
static get events() {
|
|
277
|
+
return [{
|
|
278
|
+
"method": "roadChange",
|
|
279
|
+
"name": "roadChange",
|
|
280
|
+
"bubbles": true,
|
|
281
|
+
"cancelable": true,
|
|
282
|
+
"composed": true,
|
|
283
|
+
"docs": {
|
|
284
|
+
"tags": [],
|
|
285
|
+
"text": "\u00C9v\u00E9nement quand la plage change"
|
|
286
|
+
},
|
|
287
|
+
"complexType": {
|
|
288
|
+
"original": "{ start?: string; end?: string }",
|
|
289
|
+
"resolved": "{ start?: string | undefined; end?: string | undefined; }",
|
|
290
|
+
"references": {}
|
|
291
|
+
}
|
|
292
|
+
}, {
|
|
293
|
+
"method": "roadInput",
|
|
294
|
+
"name": "roadInput",
|
|
295
|
+
"bubbles": true,
|
|
296
|
+
"cancelable": true,
|
|
297
|
+
"composed": true,
|
|
298
|
+
"docs": {
|
|
299
|
+
"tags": [],
|
|
300
|
+
"text": "Forward des events enfants"
|
|
301
|
+
},
|
|
302
|
+
"complexType": {
|
|
303
|
+
"original": "{ start?: string; end?: string }",
|
|
304
|
+
"resolved": "{ start?: string | undefined; end?: string | undefined; }",
|
|
305
|
+
"references": {}
|
|
306
|
+
}
|
|
307
|
+
}, {
|
|
308
|
+
"method": "roadFocus",
|
|
309
|
+
"name": "roadFocus",
|
|
310
|
+
"bubbles": true,
|
|
311
|
+
"cancelable": true,
|
|
312
|
+
"composed": true,
|
|
313
|
+
"docs": {
|
|
314
|
+
"tags": [],
|
|
315
|
+
"text": ""
|
|
316
|
+
},
|
|
317
|
+
"complexType": {
|
|
318
|
+
"original": "'start' | 'end'",
|
|
319
|
+
"resolved": "\"end\" | \"start\"",
|
|
320
|
+
"references": {}
|
|
321
|
+
}
|
|
322
|
+
}, {
|
|
323
|
+
"method": "roadBlur",
|
|
324
|
+
"name": "roadBlur",
|
|
325
|
+
"bubbles": true,
|
|
326
|
+
"cancelable": true,
|
|
327
|
+
"composed": true,
|
|
328
|
+
"docs": {
|
|
329
|
+
"tags": [],
|
|
330
|
+
"text": ""
|
|
331
|
+
},
|
|
332
|
+
"complexType": {
|
|
333
|
+
"original": "'start' | 'end'",
|
|
334
|
+
"resolved": "\"end\" | \"start\"",
|
|
335
|
+
"references": {}
|
|
336
|
+
}
|
|
337
|
+
}];
|
|
338
|
+
}
|
|
339
|
+
static get methods() {
|
|
340
|
+
return {
|
|
341
|
+
"getRange": {
|
|
342
|
+
"complexType": {
|
|
343
|
+
"signature": "() => Promise<{ start: string | undefined; end: string | undefined; }>",
|
|
344
|
+
"parameters": [],
|
|
345
|
+
"references": {
|
|
346
|
+
"Promise": {
|
|
347
|
+
"location": "global",
|
|
348
|
+
"id": "global::Promise"
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
"return": "Promise<{ start: string | undefined; end: string | undefined; }>"
|
|
352
|
+
},
|
|
353
|
+
"docs": {
|
|
354
|
+
"text": "",
|
|
355
|
+
"tags": []
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
static get elementRef() { return "hostEl"; }
|
|
361
|
+
}
|
|
362
|
+
//# sourceMappingURL=time-range-picker.js.map
|