@roadtrip/components 3.33.7 → 3.35.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/index-fee0103c.js +4 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/road-badge_14.cjs.entry.js +14 -10
- package/dist/cjs/road-badge_14.cjs.entry.js.map +1 -1
- package/dist/cjs/road-modal.cjs.entry.js +1 -1
- 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 +2 -2
- 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 +73 -0
- package/dist/cjs/road-radio-card.cjs.entry.js.map +1 -0
- package/dist/cjs/road-radio-group.cjs.entry.js +8 -1
- package/dist/cjs/road-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/road-radio.cjs.entry.js +1 -1
- package/dist/cjs/road-range.cjs.entry.js +2 -2
- package/dist/cjs/road-rating.cjs.entry.js +1 -1
- 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 +2 -2
- package/dist/cjs/road-select.cjs.entry.js +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-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 +2 -2
- package/dist/cjs/road-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/road-toast.cjs.entry.js +1 -1
- 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 +4 -4
- package/dist/cjs/road-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/roadtrip.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/input/input.css +1 -0
- package/dist/collection/components/input/input.js +8 -4
- package/dist/collection/components/input/input.js.map +1 -1
- package/dist/collection/components/input/input.stories.js +25 -9
- 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/modal/modal.stories.js +4 -3
- 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/phone-number-input/phone-number-input.js +2 -2
- package/dist/collection/components/plate-number/plate-number.js +2 -2
- package/dist/collection/components/plate-number/plate-number.stories.js +18 -12
- 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/radio.stories.js +12 -6
- package/dist/collection/components/radio-card/radio-card.css +234 -0
- package/dist/collection/components/radio-card/radio-card.js +253 -0
- package/dist/collection/components/radio-card/radio-card.js.map +1 -0
- package/dist/collection/components/radio-card/radio-card.stories.js +90 -0
- package/dist/collection/components/radio-group/radio-group.js +8 -1
- package/dist/collection/components/radio-group/radio-group.js.map +1 -1
- package/dist/collection/components/range/range.js +2 -2
- package/dist/collection/components/range/range.stories.js +4 -3
- 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.js +1 -1
- package/dist/collection/components/select/select.stories.js +12 -7
- package/dist/collection/components/select-filter/select-filter.js +2 -2
- package/dist/collection/components/select-filter/select-filter.stories.js +4 -2
- package/dist/collection/components/skeleton/skeleton.js +1 -1
- package/dist/collection/components/spinner/spinner.js +1 -1
- 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.css +5 -2
- package/dist/collection/components/textarea/textarea.js +1 -1
- package/dist/collection/components/textarea/textarea.stories.js +18 -12
- package/dist/collection/components/toast/toast.js +1 -1
- package/dist/collection/components/toast/toast.stories.js +4 -2
- package/dist/collection/components/toggle/toggle.js +2 -2
- package/dist/collection/components/toggle/toggle.stories.js +12 -7
- 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.css +31 -0
- package/dist/collection/components/tooltip/tooltip.js +5 -5
- package/dist/collection/components/tooltip/tooltip.js.map +1 -1
- package/dist/collection/components/tooltip/tooltip.stories.js +1 -1
- package/dist/esm/index-8dc34f94.js +4 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/road-badge_14.entry.js +14 -10
- package/dist/esm/road-badge_14.entry.js.map +1 -1
- package/dist/esm/road-modal.entry.js +1 -1
- 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 +2 -2
- 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 +69 -0
- package/dist/esm/road-radio-card.entry.js.map +1 -0
- package/dist/esm/road-radio-group.entry.js +8 -1
- package/dist/esm/road-radio-group.entry.js.map +1 -1
- package/dist/esm/road-radio.entry.js +1 -1
- package/dist/esm/road-range.entry.js +2 -2
- package/dist/esm/road-rating.entry.js +1 -1
- 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 +2 -2
- package/dist/esm/road-select.entry.js +1 -1
- package/dist/esm/road-skeleton.entry.js +1 -1
- package/dist/esm/road-spinner.entry.js +1 -1
- 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 +2 -2
- package/dist/esm/road-textarea.entry.js.map +1 -1
- package/dist/esm/road-toast.entry.js +1 -1
- 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 +4 -4
- package/dist/esm/road-tooltip.entry.js.map +1 -1
- package/dist/esm/roadtrip.js +1 -1
- package/dist/html.html-data.json +52 -1
- package/dist/roadtrip/{p-6c617506.entry.js → p-02a6e387.entry.js} +2 -2
- package/dist/roadtrip/{p-03656f9a.entry.js → p-0a6c9571.entry.js} +2 -2
- package/dist/roadtrip/{p-3f5dff96.entry.js → p-0b847a5d.entry.js} +2 -2
- package/dist/roadtrip/{p-e0421465.entry.js → p-0d7b6e32.entry.js} +2 -2
- package/dist/roadtrip/{p-a67eaba7.entry.js → p-0dce3168.entry.js} +3 -3
- package/dist/roadtrip/p-0dce3168.entry.js.map +1 -0
- package/dist/roadtrip/p-16726940.entry.js +2 -0
- package/dist/roadtrip/p-1ca62c28.entry.js +2 -0
- package/dist/roadtrip/{p-6d3d947e.entry.js.map → p-1ca62c28.entry.js.map} +1 -1
- package/dist/roadtrip/{p-60bd73ad.entry.js → p-327d424c.entry.js} +2 -2
- package/dist/roadtrip/{p-c6824205.entry.js → p-355fcb74.entry.js} +2 -2
- package/dist/roadtrip/p-4a0711c8.entry.js +2 -0
- package/dist/roadtrip/p-4a0711c8.entry.js.map +1 -0
- package/dist/roadtrip/p-4b1ac843.entry.js +2 -0
- package/dist/roadtrip/p-50d9ed52.entry.js +2 -0
- package/dist/roadtrip/{p-db77c354.entry.js.map → p-50d9ed52.entry.js.map} +1 -1
- package/dist/roadtrip/{p-e75ec60f.entry.js → p-56f18548.entry.js} +2 -2
- package/dist/roadtrip/{p-fe40ab3d.entry.js → p-5f2a4cd5.entry.js} +2 -2
- package/dist/roadtrip/{p-fd3c58b6.entry.js → p-5f6255ea.entry.js} +2 -2
- package/dist/roadtrip/{p-c28e7add.entry.js → p-6cde1247.entry.js} +2 -2
- package/dist/roadtrip/{p-6ff3b37c.entry.js → p-6e65c377.entry.js} +2 -2
- package/dist/roadtrip/p-6ef0a03b.entry.js +2 -0
- package/dist/roadtrip/{p-d80e7563.entry.js.map → p-6ef0a03b.entry.js.map} +1 -1
- package/dist/roadtrip/{p-2e049c8e.entry.js → p-780de42a.entry.js} +2 -2
- package/dist/roadtrip/{p-b5fa8c5a.entry.js → p-7d693464.entry.js} +2 -2
- package/dist/roadtrip/{p-517aeeca.entry.js → p-7ea16bfa.entry.js} +2 -2
- package/dist/roadtrip/p-80344aa2.entry.js +2 -0
- package/dist/roadtrip/p-80344aa2.entry.js.map +1 -0
- package/dist/roadtrip/p-8c6ad79a.entry.js +2 -0
- package/dist/roadtrip/{p-a254df6d.entry.js → p-a0c91322.entry.js} +2 -2
- package/dist/roadtrip/{p-c465f551.entry.js → p-a406a342.entry.js} +2 -2
- package/dist/roadtrip/{p-e6e9882b.entry.js → p-a5c363f2.entry.js} +2 -2
- package/dist/roadtrip/{p-5fea6a74.entry.js → p-ad9055c1.entry.js} +2 -2
- package/dist/roadtrip/{p-37430583.entry.js → p-b0203787.entry.js} +2 -2
- package/dist/roadtrip/{p-3dcaa947.entry.js → p-c01aaf61.entry.js} +2 -2
- package/dist/roadtrip/p-c09d87da.entry.js +2 -0
- package/dist/roadtrip/{p-8b04fc62.entry.js → p-cd1e078c.entry.js} +2 -2
- package/dist/roadtrip/p-cd436a46.entry.js +2 -0
- package/dist/roadtrip/{p-b8c5d292.entry.js.map → p-cd436a46.entry.js.map} +1 -1
- package/dist/roadtrip/p-d9cbd0b9.entry.js +2 -0
- package/dist/roadtrip/p-d9cbd0b9.entry.js.map +1 -0
- package/dist/roadtrip/{p-eac313e4.entry.js → p-da0e9f4e.entry.js} +2 -2
- package/dist/roadtrip/{p-ea1a175d.entry.js → p-df2f066e.entry.js} +2 -2
- package/dist/roadtrip/p-dfc0d1c5.entry.js +2 -0
- package/dist/roadtrip/p-dfc0d1c5.entry.js.map +1 -0
- package/dist/roadtrip/{p-c47ccbf2.entry.js → p-edfb6a90.entry.js} +2 -2
- package/dist/roadtrip/{p-950b8a43.entry.js → p-f1ef265d.entry.js} +2 -2
- package/dist/roadtrip/{p-167cd2fc.entry.js → p-f5bcb8d6.entry.js} +2 -2
- package/dist/roadtrip/{p-99a6faae.entry.js → p-f91b8ee7.entry.js} +2 -2
- package/dist/roadtrip/p-fb33aa91.entry.js +2 -0
- package/dist/roadtrip/{p-f1b53143.entry.js → p-ff430279.entry.js} +2 -2
- package/dist/roadtrip/roadtrip.esm.js +1 -1
- package/dist/roadtrip/roadtrip.esm.js.map +1 -1
- package/dist/types/components/input/input.d.ts +2 -2
- package/dist/types/components/radio-card/radio-card.d.ts +25 -0
- package/dist/types/components/radio-group/radio-group.d.ts +1 -0
- package/dist/types/components/tooltip/tooltip.d.ts +1 -1
- package/dist/types/components.d.ts +57 -4
- package/hydrate/index.js +192 -100
- package/hydrate/index.mjs +192 -100
- package/package.json +1 -1
- package/dist/roadtrip/p-06fbd2ea.entry.js +0 -2
- package/dist/roadtrip/p-06fbd2ea.entry.js.map +0 -1
- package/dist/roadtrip/p-215afdbd.entry.js +0 -2
- package/dist/roadtrip/p-449affa6.entry.js +0 -2
- package/dist/roadtrip/p-4675ea6d.entry.js +0 -2
- package/dist/roadtrip/p-65f9bd9c.entry.js +0 -2
- package/dist/roadtrip/p-6d3d947e.entry.js +0 -2
- package/dist/roadtrip/p-85b1e505.entry.js +0 -2
- package/dist/roadtrip/p-a67eaba7.entry.js.map +0 -1
- package/dist/roadtrip/p-b8c5d292.entry.js +0 -2
- package/dist/roadtrip/p-cfd2919e.entry.js +0 -2
- package/dist/roadtrip/p-cfd2919e.entry.js.map +0 -1
- package/dist/roadtrip/p-d80e7563.entry.js +0 -2
- package/dist/roadtrip/p-db77c354.entry.js +0 -2
- package/dist/roadtrip/p-e6c4c576.entry.js +0 -2
- package/dist/roadtrip/p-e6c4c576.entry.js.map +0 -1
- /package/dist/roadtrip/{p-6c617506.entry.js.map → p-02a6e387.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-03656f9a.entry.js.map → p-0a6c9571.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-3f5dff96.entry.js.map → p-0b847a5d.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-e0421465.entry.js.map → p-0d7b6e32.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-65f9bd9c.entry.js.map → p-16726940.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-60bd73ad.entry.js.map → p-327d424c.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c6824205.entry.js.map → p-355fcb74.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-215afdbd.entry.js.map → p-4b1ac843.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-e75ec60f.entry.js.map → p-56f18548.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-fe40ab3d.entry.js.map → p-5f2a4cd5.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-fd3c58b6.entry.js.map → p-5f6255ea.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c28e7add.entry.js.map → p-6cde1247.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-6ff3b37c.entry.js.map → p-6e65c377.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-2e049c8e.entry.js.map → p-780de42a.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-b5fa8c5a.entry.js.map → p-7d693464.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-517aeeca.entry.js.map → p-7ea16bfa.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-4675ea6d.entry.js.map → p-8c6ad79a.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-a254df6d.entry.js.map → p-a0c91322.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c465f551.entry.js.map → p-a406a342.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-e6e9882b.entry.js.map → p-a5c363f2.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-5fea6a74.entry.js.map → p-ad9055c1.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-37430583.entry.js.map → p-b0203787.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-3dcaa947.entry.js.map → p-c01aaf61.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-85b1e505.entry.js.map → p-c09d87da.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-8b04fc62.entry.js.map → p-cd1e078c.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-eac313e4.entry.js.map → p-da0e9f4e.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-ea1a175d.entry.js.map → p-df2f066e.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c47ccbf2.entry.js.map → p-edfb6a90.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-950b8a43.entry.js.map → p-f1ef265d.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-167cd2fc.entry.js.map → p-f5bcb8d6.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-99a6faae.entry.js.map → p-f91b8ee7.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-449affa6.entry.js.map → p-fb33aa91.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-f1b53143.entry.js.map → p-ff430279.entry.js.map} +0 -0
|
@@ -43,10 +43,11 @@ export default {
|
|
|
43
43
|
control: 'text',
|
|
44
44
|
},
|
|
45
45
|
roadchange: {
|
|
46
|
-
description: "Emitted when the value has changed.",
|
|
47
46
|
action: 'roadchange',
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
description: "Emitted when the value has changed.",
|
|
48
|
+
table: {
|
|
49
|
+
category: 'Events',
|
|
50
|
+
type: { summary: 'CustomEvent' },
|
|
50
51
|
},
|
|
51
52
|
},
|
|
52
53
|
disabled: {
|
|
@@ -37,7 +37,7 @@ export class Rating {
|
|
|
37
37
|
const sizeRatingStarsClass = this.size !== undefined ? `rating-stars rating-stars--${this.size}` : 'rating-stars';
|
|
38
38
|
const sizeRatingNumberClass = this.size !== undefined ? `rating-number rating-number--${this.size}` : 'rating-number';
|
|
39
39
|
const readOnly = this.readonly == true ? `readonly` : '';
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: '85efd8ef2ccfcecd3740e72a5ba7ce4760e0d9d6' }, h("div", { key: 'eab49904c7777e7f760d8ea79d970a76f0e1e32d', class: `${sizeRatingStarsClass}` }, [...Array(rate)].map(() => h("road-icon", { icon: star, size: "sm", color: "warning" })), [...Array(rateDecimale)].map(() => h("road-icon", { icon: starHalfColor, size: "sm", class: "rating-star" })), [...Array(5 - rate - rateDecimale)].map(() => h("road-icon", { icon: star, size: "sm", class: "rating-star" }))), this.readonly == false && this.showreviews && h("a", { key: 'd63c93743802e7fd5cb49c972bc39802eb6ee586', class: `${sizeRatingNumberClass}`, href: this.url }, "(", this.reviews, this.reviewsText && ` ${this.reviewsText}`, ")"), this.readonly == true && this.showreviews && h("road-label", { key: '57ca56a99dfa88b79b242a6b1ab92c08596bd0a8', class: `${sizeRatingNumberClass} ${readOnly}` }, "(", this.reviews, this.reviewsText && ` ${this.reviewsText}`, ")")));
|
|
41
41
|
}
|
|
42
42
|
static get is() { return "road-rating"; }
|
|
43
43
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,7 +4,7 @@ import { Host, h } from "@stencil/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export class Row {
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
return (h(Host, { key: '6ee0a00bc04c580a827d19c99ec3e818d6def582' }, h("slot", { key: '6ad15bc804554c3e72dec334b40d7d28e277e92f' })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "road-row"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -52,10 +52,10 @@ export class SegmentedButton {
|
|
|
52
52
|
render() {
|
|
53
53
|
const { tabIndex, selected, tab } = this;
|
|
54
54
|
const sizeClass = this.size !== undefined ? `btn-${this.size}` : '';
|
|
55
|
-
return (h(Host, { key: '
|
|
55
|
+
return (h(Host, { key: '6433591d09a54719de64718201a2a51ad79ae28b', onClick: this.onClick, onKeyup: this.onKeyUp, role: "tab", tabindex: tabIndex, "aria-selected": selected ? 'true' : null, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
|
|
56
56
|
'tab-selected': selected,
|
|
57
57
|
[`${sizeClass}`]: true,
|
|
58
|
-
} }, h("span", { key: '
|
|
58
|
+
} }, h("span", { key: 'f3e0bf769c686b17171afe0130ac5e4736aa2ff4', tabIndex: -1, class: "button-native", part: "native", "aria-hidden": "true" }, h("slot", { key: '496201687fa4e9138d1a817215c4c90255f7232c' }))));
|
|
59
59
|
}
|
|
60
60
|
static get is() { return "road-segmented-button"; }
|
|
61
61
|
static get encapsulation() { return "shadow"; }
|
|
@@ -18,7 +18,7 @@ export class ButtonBar {
|
|
|
18
18
|
this.selectedTabChanged();
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: 'afd642615f117aadf941aa07e1006b87bc7af6ee', role: "tablist" }, h("slot", { key: '331b574bb64568dc247cd9789232d4dffebec937' })));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "road-segmented-button-bar"; }
|
|
24
24
|
static get encapsulation() { return "shadow"; }
|
|
@@ -86,7 +86,7 @@ export class Tabs {
|
|
|
86
86
|
return Array.from(this.el.querySelectorAll('road-tab'));
|
|
87
87
|
}
|
|
88
88
|
render() {
|
|
89
|
-
return (h(Host, { key: '
|
|
89
|
+
return (h(Host, { key: '0fe1c4ddf4b2d269ed66c456e411263d8de29c3f', onRoadSegmentedButtonClick: this.onTabClicked }, h("slot", { key: 'da756417993e0157ed3a7a4dda96abcdfc3d6c05', name: "top" }), h("slot", { key: '37678b31b482735d1a1cc5ed2c37f4a8d4d7ee4b' })));
|
|
90
90
|
}
|
|
91
91
|
static get is() { return "road-segmented-buttons"; }
|
|
92
92
|
static get encapsulation() { return "shadow"; }
|
|
@@ -92,7 +92,7 @@ export class Select {
|
|
|
92
92
|
const labelId = this.selectId + '-label';
|
|
93
93
|
const hasValueClass = this.value && this.value !== '' ? 'has-value' : '';
|
|
94
94
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
95
|
-
return (h(Host, { key: '
|
|
95
|
+
return (h(Host, { key: 'f587a8414c05e32346f937765d28bce047615a39', class: this.sizes && `select-${this.sizes}` }, h("select", { key: 'e7b292e72914e7dacf0291609a0cb1d65eb0a3fa', class: `form-select ${hasValueClass} ${isInvalidClass}`, id: this.selectId, "aria-disabled": this.disabled ? 'true' : null, autoFocus: this.autofocus, disabled: this.disabled, name: this.name, required: this.required, size: this.size, onChange: this.onChange, onFocus: this.onFocus, onBlur: this.onBlur }, h("option", { key: '24d8ce15efedece915747955ae8a0842e5578e54', selected: !this.value, disabled: true, hidden: true, style: { display: 'none' }, value: "" }), this.options && this.options.map(option => (h("option", { value: option.value, selected: this.value !== null && option.value == this.value }, option.label)))), h("label", { key: '128f0f39050595aac1833f642b2742429a4c96cd', class: "form-select-label", id: labelId, htmlFor: this.selectId }, this.label), this.error && this.error !== '' && h("p", { key: '94fffc12a2be58bf311b4588ead8fa0331e0c3ca', class: "invalid-feedback" }, this.error)));
|
|
96
96
|
}
|
|
97
97
|
static get is() { return "road-select"; }
|
|
98
98
|
static get encapsulation() { return "scoped"; }
|
|
@@ -54,22 +54,27 @@ export default {
|
|
|
54
54
|
control: 'text',
|
|
55
55
|
},
|
|
56
56
|
roadblur: {
|
|
57
|
+
action: 'roadblur',
|
|
57
58
|
description: "Emitted when the select loses focus.",
|
|
58
|
-
|
|
59
|
-
|
|
59
|
+
table: {
|
|
60
|
+
category: 'Events',
|
|
61
|
+
type: { summary: 'CustomEvent' },
|
|
60
62
|
},
|
|
61
63
|
},
|
|
62
64
|
roadfocus: {
|
|
65
|
+
action: 'roadfocus',
|
|
63
66
|
description: "Emitted when the select has focus.",
|
|
64
|
-
|
|
65
|
-
|
|
67
|
+
table: {
|
|
68
|
+
category: 'Events',
|
|
69
|
+
type: { summary: 'CustomEvent' },
|
|
66
70
|
},
|
|
67
71
|
},
|
|
68
72
|
roadchange: {
|
|
69
|
-
description: "Emitted when the value has changed.",
|
|
70
73
|
action: 'roadchange',
|
|
71
|
-
|
|
72
|
-
|
|
74
|
+
description: "Emitted when the value has changed.",
|
|
75
|
+
table: {
|
|
76
|
+
category: 'Events',
|
|
77
|
+
type: { summary: 'CustomEvent' },
|
|
73
78
|
},
|
|
74
79
|
},
|
|
75
80
|
},
|
|
@@ -107,8 +107,8 @@ export class SelectFilter {
|
|
|
107
107
|
const options = this.filteredOptions;
|
|
108
108
|
const isActive = this.isActive ? 'true' : 'false';
|
|
109
109
|
const notActive = this.isActive ? '' : 'not-active';
|
|
110
|
-
return (h(Host, { key: '
|
|
111
|
-
h("ul", { key: '
|
|
110
|
+
return (h(Host, { key: 'ff1cb375e4108fbfe44f307ad6d00be4fec03430', "is-active": isActive }, h("slot", { key: '987d24b1f5ad17ef8a0e83e3165d1e137bf4d6e5' }), this.isOpen &&
|
|
111
|
+
h("ul", { key: '41e10aed226c8131e4313ea33da1ea6c79969b80', class: `${notActive} select-filter-list`, role: "listbox", onMouseLeave: this.handleMouseLeave }, options.map((option, idx) => (h("li", { class: `select-filter-item ${this.activeIndex === idx ? 'active' : ''}`, role: "option", "aria-selected": this.activeIndex === idx ? 'true' : 'false', onClick: () => this.handleOptionClick(option.item.value, option.item.label.replace(/(<([^>]+)>)/gi, "")), onMouseOver: () => this.handleOptionMouseOver(idx), innerHTML: option.item.label, tabindex: this.activeIndex === idx ? 0 : -1 }))))));
|
|
112
112
|
}
|
|
113
113
|
static get is() { return "road-select-filter"; }
|
|
114
114
|
static get encapsulation() { return "scoped"; }
|
|
@@ -29,8 +29,10 @@ export default {
|
|
|
29
29
|
},
|
|
30
30
|
roadselected: {
|
|
31
31
|
action: 'roadselected',
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
description: 'Emitted when the value is selected.',
|
|
33
|
+
table: {
|
|
34
|
+
category: 'Events',
|
|
35
|
+
type: { summary: 'CustomEvent' },
|
|
34
36
|
},
|
|
35
37
|
},
|
|
36
38
|
'--margin-top': {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class Skeleton {
|
|
3
3
|
render() {
|
|
4
|
-
return (h("span", { key: '
|
|
4
|
+
return (h("span", { key: 'cf58a469e049fce0303bf49ec1c86233b1b4e305' }, "\u00A0"));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "road-skeleton"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -13,7 +13,7 @@ export class Spinner {
|
|
|
13
13
|
render() {
|
|
14
14
|
const sizeClass = this.size !== undefined ? `spinner spinner--${this.size}` : 'spinner';
|
|
15
15
|
const colorClass = this.size !== undefined ? `spinner-circle spinner-circle--${this.color}` : 'spinner-circle';
|
|
16
|
-
return (h("svg", { key: '
|
|
16
|
+
return (h("svg", { key: '3e1e5094311da649229f7fa9b3bc7b12d5251cda', class: `${sizeClass}`, viewBox: "25 25 50 50" }, h("circle", { key: '6257e336cdf32cfa80973f4466eb9adcbf7fa239', class: `${colorClass}`, cx: "50", cy: "50", r: "20" })));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "road-spinner"; }
|
|
19
19
|
static get encapsulation() { return "shadow"; }
|
|
@@ -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: 'a94f02e2edb416513ef6285b89c221a8fe1d5884', 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: '5f93e9f0cd857f38d2f70152774b2ae0239ed342' }, h("input", { key: '42528718ca88666d428048a7477ac9ba611f12aa', 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: '0d5c0ef117c9235387e47b628c9036c3844cb9be', class: `form-switch-label ${isSpacedClass} ${colorClass}`, htmlFor: this.switchId }, this.hasLeftLabel && textLabel, h("div", { key: '0d16ade7abfe28bae3f7d756b89799aa737dd653', 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: '4559e255fa71417fe4fcd713b91c2186d55653c0', 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: '3ec299696cf719bf911fe0c27befb34d8de3afcd' })));
|
|
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: '793bbb41d74e6e4dd0a7a5ee67b418fd59f61c7c', 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: '4e2713a1a01ed7fcd8503a8231223d2793e8f808' })));
|
|
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: '4766bf5988d063443b6a7958fe1c18ab20b4392d', 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: 'f11c00761d9057129770874f321f3afaa18a53e0' }, attrs, { tabIndex: -1, class: "button-native", part: "native" }), h("span", { key: '51c886bf60aa0544124c0e2cb19b20d9e0bb720e', class: "button-inner" }, h("slot", { key: '6f7d6d16789eb4db922fd3b49cbbe2df68fc71a1' })))));
|
|
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: '82316326496fee8116dbdc08996a51aa46848cfe' }));
|
|
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: '156304acaa7819f6a6420cc16ef1610e3ac3c729', onRoadTabButtonClick: this.onTabClicked }, h("slot", { key: 'd955421ac3b039e41c557ca80f02e9dba4c8bae1', name: "top" }), h("div", { key: 'a44620d8828baeeb94eee27d59a598de1ae6c723', class: "tabs-inner" }, h("slot", { key: '493a7741ad834c244c4c01ac7875b94a0e698b20' }))));
|
|
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: '03130dbfae36eca95f41b5a0024b7b4cd06c310a', class: `${contrastClass}` }, h("slot", { key: '5adabe2b8a1ef7a17fca7dcd24fbaf0cf234ab6e' })));
|
|
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: 'ce661d8700a5de9f45c8eadb585db40c170ab783', class: `${colorClass}` }, h("slot", { key: '403d340719d454fb54288e5447beb06e0fa429ac' })));
|
|
15
15
|
}
|
|
16
16
|
static get is() { return "road-text"; }
|
|
17
17
|
static get encapsulation() { return "shadow"; }
|
|
@@ -124,6 +124,9 @@
|
|
|
124
124
|
pointer-events: none;
|
|
125
125
|
transition: transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms;
|
|
126
126
|
transform-origin: 0 0;
|
|
127
|
+
width: 95%;
|
|
128
|
+
white-space: normal;
|
|
129
|
+
overflow-wrap: break-word;
|
|
127
130
|
}
|
|
128
131
|
|
|
129
132
|
/* SIZES
|
|
@@ -146,12 +149,12 @@
|
|
|
146
149
|
:host(.input-xl) .form-control.has-value ~ .form-label,
|
|
147
150
|
:host(.input-xl) .form-control[type="date"] ~ .form-label,
|
|
148
151
|
:host(.input-xl) .form-control[type="time"] ~ .form-label {
|
|
149
|
-
width:
|
|
152
|
+
width:100%;
|
|
150
153
|
transform: scale(0.75) translateY(-0.625rem);
|
|
151
154
|
}
|
|
152
155
|
|
|
153
156
|
:host(.input-xl) .form-control:placeholder-shown ~ .form-label {
|
|
154
|
-
width:
|
|
157
|
+
width: 100%;
|
|
155
158
|
transform: scale(0.75) translateY(-0.625rem);
|
|
156
159
|
}
|
|
157
160
|
|
|
@@ -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: 'c975447632482840e56666485cecf4713d1c758b', "aria-disabled": this.disabled ? 'true' : null, class: this.sizes && `input-${this.sizes}` }, h("textarea", { key: 'de0054b753bf6d54722ee04e31d320a71d3a7c2f', 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: 'a9b5b3d50110501e54d55c65485b4cd71b18f0e3', class: "form-label", id: labelId, htmlFor: this.textareaId }, this.label), this.error && this.error !== '' && h("p", { key: '98af05a2b982faa261cd6330a267870bd0011e71', class: "invalid-feedback" }, this.error), this.helper && this.helper !== '' && h("p", { key: '5f37d2a87cb0f3c73e33efe9e301aab4a28b3041', class: "helper" }, this.helper)));
|
|
86
86
|
}
|
|
87
87
|
static get is() { return "road-textarea"; }
|
|
88
88
|
static get encapsulation() { return "scoped"; }
|
|
@@ -120,29 +120,35 @@ export default {
|
|
|
120
120
|
},
|
|
121
121
|
},
|
|
122
122
|
roadblur: {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
action: 'roadblur',
|
|
124
|
+
description: 'Emitted when the input loses focus.',
|
|
125
|
+
table: {
|
|
126
|
+
category: 'Events',
|
|
127
|
+
type: { summary: 'CustomEvent' },
|
|
126
128
|
},
|
|
127
129
|
},
|
|
128
130
|
roadfocus: {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
action: 'roadfocus',
|
|
132
|
+
description: 'Emitted when the input loses focus.',
|
|
133
|
+
table: {
|
|
134
|
+
category: 'Events',
|
|
135
|
+
type: { summary: 'CustomEvent' },
|
|
132
136
|
},
|
|
133
137
|
},
|
|
134
138
|
roadchange: {
|
|
135
|
-
description: "Emitted when the value has changed.",
|
|
136
139
|
action: 'roadchange',
|
|
137
|
-
|
|
138
|
-
|
|
140
|
+
description: 'Emitted when the value has changed.',
|
|
141
|
+
table: {
|
|
142
|
+
category: 'Events',
|
|
143
|
+
type: { summary: 'CustomEvent' },
|
|
139
144
|
},
|
|
140
145
|
},
|
|
141
146
|
roadinput: {
|
|
142
|
-
description: "Emitted when a keyboard input occurred.",
|
|
143
147
|
action: 'roadinput',
|
|
144
|
-
|
|
145
|
-
|
|
148
|
+
description: "Emitted when a keyboard input occurred.",
|
|
149
|
+
table: {
|
|
150
|
+
category: 'Events',
|
|
151
|
+
type: { summary: 'CustomEvent' },
|
|
146
152
|
},
|
|
147
153
|
},
|
|
148
154
|
},
|
|
@@ -86,7 +86,7 @@ export class Toast {
|
|
|
86
86
|
if (this.color == 'danger') {
|
|
87
87
|
this.timeout = 0;
|
|
88
88
|
}
|
|
89
|
-
return (h(Host, { key: '
|
|
89
|
+
return (h(Host, { key: '351715fec925da6fd5e8e6a4472641ea72b4a6a9', class: `${toastIsOpenClass}`, role: "alert" }, h("div", { key: '196d201202dbf45d927c2d7c39b8b0d30b9d29c6', class: `toast toast-${this.color}` }, h("road-icon", { key: 'ad32e677786cad46be2183ca649fc680e43d3b93', class: "toast-icon", icon: icon, "aria-hidden": "true" }), h("p", { key: '2146a9cde7ea10fdd61e8f6342dc8bb8c3de2c49', class: "toast-label" }, this.label), h("button", { key: 'ce28e9b8eecc98e798349a92d71c7e5ba8873944', type: "button", class: "toast-close", "aria-label": "Close", onClick: this.onClick }, h("road-icon", { key: 'b46a0b3dfd3d8c583b97acb4cf619f53f19f2bab', icon: navigationClose, size: "md" })), h("slot", { key: '4905ebcf66402dc304218db52c3d2cb5cbc41139', name: "progress" }))));
|
|
90
90
|
}
|
|
91
91
|
static get is() { return "road-toast"; }
|
|
92
92
|
static get encapsulation() { return "shadow"; }
|
|
@@ -37,9 +37,11 @@ export default {
|
|
|
37
37
|
},
|
|
38
38
|
close: {
|
|
39
39
|
description: "Indicate when closing the toast",
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
table: {
|
|
41
|
+
category: 'Events',
|
|
42
|
+
type: { summary: 'CustomEvent' },
|
|
42
43
|
},
|
|
44
|
+
control: { type: null }, // Désactive l'affichage du contrôle dans Storybook
|
|
43
45
|
},
|
|
44
46
|
progress: {
|
|
45
47
|
description: "the progress bar in the toast.\ncolor=\"info\" for Info\ncolor=\"success\" for success\ncolor=\"warning\" for warning\ncolor=\"danger\" for danger",
|
|
@@ -66,11 +66,11 @@ export class toggle {
|
|
|
66
66
|
}
|
|
67
67
|
render() {
|
|
68
68
|
const labelId = this.toggleId + '-label';
|
|
69
|
-
const textLabel = h("label", { key: '
|
|
69
|
+
const textLabel = h("label", { key: 'a6f6e6a7afaeebdf6f72430ae0044299cbc4b272', class: "form-toggle-label", id: labelId, htmlFor: this.toggleId }, this.label);
|
|
70
70
|
const isSpacedClass = this.isSpaced && 'form-toggle-spaced';
|
|
71
71
|
const righttoggleClass = this.hasLeftLabel ? 'form-toggle-right' : '';
|
|
72
72
|
const disabledClass = this.disabled ? 'disabled' : '';
|
|
73
|
-
return (h(Host, { key: '
|
|
73
|
+
return (h(Host, { key: '6954fa13dc3f49af5c8d8b94f4436915b461843c' }, h("input", { key: '3ee599b527d81fade1ecf752baa9647294de1286', class: "form-toggle-input", type: "checkbox", id: this.toggleId, 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: '7650fa09df528c9b4ac08d71336443707ee2648f', class: `form-toggle-label ${isSpacedClass} ${disabledClass}`, htmlFor: this.toggleId }, this.hasLeftLabel && textLabel, h("div", { key: '69a1ad619c7f748d225f1a474813bfbc3ff79fe2', class: `form-toggle-lever ${righttoggleClass}`, "data-off": this.off, "data-on": this.on }), this.hasLeftLabel ? '' : textLabel)));
|
|
74
74
|
}
|
|
75
75
|
static get is() { return "road-toggle"; }
|
|
76
76
|
static get encapsulation() { return "scoped"; }
|
|
@@ -51,22 +51,27 @@ export default {
|
|
|
51
51
|
control: 'boolean',
|
|
52
52
|
},
|
|
53
53
|
roadblur: {
|
|
54
|
+
action: 'roadblur',
|
|
54
55
|
description: "Emitted when the toggle loses focus.",
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
table: {
|
|
57
|
+
category: 'Events',
|
|
58
|
+
type: { summary: 'CustomEvent' },
|
|
57
59
|
},
|
|
58
60
|
},
|
|
59
61
|
roadfocus: {
|
|
62
|
+
action: 'roadfocus',
|
|
60
63
|
description: "Emitted when the toggle has focus.",
|
|
61
|
-
|
|
62
|
-
|
|
64
|
+
table: {
|
|
65
|
+
category: 'Events',
|
|
66
|
+
type: { summary: 'CustomEvent' },
|
|
63
67
|
},
|
|
64
68
|
},
|
|
65
69
|
roadchange: {
|
|
66
|
-
description: "Emitted when the checked property has changed.",
|
|
67
70
|
action: 'roadchange',
|
|
68
|
-
|
|
69
|
-
|
|
71
|
+
description: "Emitted when the checked property has changed.",
|
|
72
|
+
table: {
|
|
73
|
+
category: 'Events',
|
|
74
|
+
type: { summary: 'CustomEvent' },
|
|
70
75
|
},
|
|
71
76
|
},
|
|
72
77
|
'--toggle-lever-width': {
|
|
@@ -10,7 +10,7 @@ import { Host, h } from "@stencil/core";
|
|
|
10
10
|
export class Toolbar {
|
|
11
11
|
render() {
|
|
12
12
|
const colorClass = this.color !== undefined ? `toolbar-${this.color}` : '';
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: 'e73328139400d6f013e7beecab915cf38df79a23', class: colorClass }, h("div", { key: 'c83dfa77c85cca464db9fd21eed80efe21cc2573', class: "toolbar-container" }, h("slot", { key: '776839dba2b309b5de820daf9c480b4e8b401c43', name: "start" }), h("slot", { key: '5e81470ffc0f7d8d8cb47b7e4463d34d70d7f709', name: "primary" }), h("div", { key: '772294cc4194faf593c95c8cac10490b44bd5605', class: "toolbar-content" }, h("slot", { key: '1dd60892af9491f0f552f29d70f2f678481d5654' })), h("slot", { key: '749502b121ed0c7b92bf7d21db885642d0f0fe2f', name: "secondary" }), h("slot", { key: '5766725c5390520eee5a03bb2f8f41e1a64e84df', name: "end" }))));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "road-toolbar"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,7 +4,7 @@ import { h } from "@stencil/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export class ToolbarTitle {
|
|
6
6
|
render() {
|
|
7
|
-
return (h("div", { key: '
|
|
7
|
+
return (h("div", { key: '2bc8875e6f067415f19c944cc319a9457fa305df', class: "toolbar-title" }, h("slot", { key: '7031e74b2fec0447701528d2a0c02795a038f281' })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "road-toolbar-title"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,7 +4,7 @@ import { h } from "@stencil/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export class ToolbarAppName {
|
|
6
6
|
render() {
|
|
7
|
-
return (h("div", { key: '
|
|
7
|
+
return (h("div", { key: 'd76c2100a700d99524ec69c76bf08e56ff7d0998', class: "toolbar-title-page" }, h("slot", { key: '9f22898e163ba4e81ff054b46a3e5e640abf7a7b' })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "road-toolbar-title-page"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -9,7 +9,7 @@ import { Host, h } from "@stencil/core";
|
|
|
9
9
|
*/
|
|
10
10
|
export class ToolbarV2 {
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: 'c2aa891f0a092a2ad818049cd7bd8216921085d6', class: "toolbar" }, h("div", { key: '0c8154579c5c164907b6a9f8e28c65e85a9383c8', class: "toolbar-container" }, h("div", { key: '5b7b972cf8e9d8728438e6beef791753c9ed8122', class: "toolbar-container-content-left" }, h("slot", { key: 'a388f0d9cc1aa4624fd456ab5fd6adc978adeb79', name: "start" }), h("slot", { key: '747be87afdac650da865f8b47ee63d8d228e4dc6', name: "primary" })), h("div", { key: '8377a0ab5534f3979572dd2a06cc39290ca6acdc', class: "toolbar-content" }, h("slot", { key: '7a74325743d4eef911088f09a242c0a0fb740999' })), h("div", { key: '03077029d30c10847b70b9b910cceedbd575fad0', class: "toolbar-container-content-right" }, h("slot", { key: '00590e6e694304b4a78634905332d8450c5679ed', name: "secondary" }), h("slot", { key: '3debaefb441cfb2a6bd5c1fa2555a500e3770bc8', name: "end" })))));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "road-toolbar-v2"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -115,6 +115,20 @@
|
|
|
115
115
|
transform: translateY(-100%);
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
+
/**
|
|
119
|
+
* Top end
|
|
120
|
+
*/
|
|
121
|
+
|
|
122
|
+
:host([data-tooltip-position="top-end"]) .tooltip {
|
|
123
|
+
left: auto;
|
|
124
|
+
right: 0%;
|
|
125
|
+
transform: translateY(-70%);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
:host([data-tooltip-position="top-end"]) .tooltip-open {
|
|
129
|
+
transform: translateY(-100%);
|
|
130
|
+
}
|
|
131
|
+
|
|
118
132
|
/**
|
|
119
133
|
* Left
|
|
120
134
|
*/
|
|
@@ -175,6 +189,23 @@
|
|
|
175
189
|
transform: translateY(-6%);
|
|
176
190
|
}
|
|
177
191
|
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Bottom end
|
|
195
|
+
*/
|
|
196
|
+
|
|
197
|
+
:host([data-tooltip-position="bottom-end"]) .tooltip {
|
|
198
|
+
margin-top: 0.5rem;
|
|
199
|
+
left: auto;
|
|
200
|
+
top: 100%;
|
|
201
|
+
right: 0;
|
|
202
|
+
transform: translateY(-40%);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
:host([data-tooltip-position="bottom-end"]) .tooltip-open {
|
|
206
|
+
transform: translateY(-6%);
|
|
207
|
+
}
|
|
208
|
+
|
|
178
209
|
/**
|
|
179
210
|
* Right
|
|
180
211
|
*/
|
|
@@ -95,12 +95,12 @@ export class Tooltip {
|
|
|
95
95
|
return triggers.includes(triggerType);
|
|
96
96
|
}
|
|
97
97
|
render() {
|
|
98
|
-
return (h(Host, { key: '
|
|
98
|
+
return (h(Host, { key: '2645780b6948b64ee79bebba713a1bc96bf3edc9', onMouseOver: this.onMouseOver, onMouseOut: this.onMouseOut, onClick: this.onClick, onFocus: this.onFocus, onBlur: this.onBlur, tabindex: "0" // Makes the element focusable
|
|
99
99
|
,
|
|
100
|
-
"data-tooltip-position": this.position }, h("slot", { key: '
|
|
100
|
+
"data-tooltip-position": this.position }, h("slot", { key: '968912545c373f15578acfa6d251393f9713beea', "aria-describedby": this.tooltipId }), h("div", { key: 'a64601f45c06e1087e0f955dc6dd958fcec40268', part: "tooltip", id: this.tooltipId, class: {
|
|
101
101
|
tooltip: true,
|
|
102
102
|
'tooltip-open': this.isOpen,
|
|
103
|
-
}, role: "tooltip", "aria-hidden": !this.isOpen ? 'true' : 'false' }, this.content, h("slot", { key: '
|
|
103
|
+
}, role: "tooltip", "aria-hidden": !this.isOpen ? 'true' : 'false' }, this.content, h("slot", { key: 'a0cd1d74da1cd571bb847b04ae609dd3a3cc281d', name: "tooltip-content" }))));
|
|
104
104
|
}
|
|
105
105
|
static get is() { return "road-tooltip"; }
|
|
106
106
|
static get encapsulation() { return "shadow"; }
|
|
@@ -160,8 +160,8 @@ export class Tooltip {
|
|
|
160
160
|
"type": "string",
|
|
161
161
|
"mutable": false,
|
|
162
162
|
"complexType": {
|
|
163
|
-
"original": "| 'top'\n | 'right'\n | 'bottom'\n | 'top-left'\n | 'top-right'\n | 'bottom-left'\n | 'bottom-right'\n | 'left'",
|
|
164
|
-
"resolved": "\"bottom\" | \"bottom-left\" | \"bottom-right\" | \"left\" | \"right\" | \"top\" | \"top-left\" | \"top-right\"",
|
|
163
|
+
"original": "| 'top'\n | 'right'\n | 'bottom'\n | 'top-left'\n | 'top-right'\n | 'top-start'\n | 'top-end'\n | 'bottom-left'\n | 'bottom-right'\n | 'bottom-start'\n | 'bottom-end'\n | 'left'",
|
|
164
|
+
"resolved": "\"bottom\" | \"bottom-end\" | \"bottom-left\" | \"bottom-right\" | \"bottom-start\" | \"left\" | \"right\" | \"top\" | \"top-end\" | \"top-left\" | \"top-right\" | \"top-start\"",
|
|
165
165
|
"references": {}
|
|
166
166
|
},
|
|
167
167
|
"required": false,
|