@roadtrip/components 3.32.4 → 3.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/road-badge_14.cjs.entry.js +17 -15
- package/dist/cjs/road-badge_14.cjs.entry.js.map +1 -1
- package/dist/cjs/road-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/road-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/road-phone-number-input.cjs.entry.js +26 -61
- package/dist/cjs/road-phone-number-input.cjs.entry.js.map +1 -1
- 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-group.cjs.entry.js +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 +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 +3 -3
- package/dist/cjs/roadtrip.cjs.js +1 -1
- package/dist/collection/components/accordion/accordion.stories.js +38 -4
- package/dist/collection/components/alert/alert.stories.js +7 -0
- package/dist/collection/components/asset/asset.stories.js +6 -0
- package/dist/collection/components/autocomplete/autocomplete.stories.js +43 -47
- package/dist/collection/components/avatar/avatar.stories.js +6 -0
- package/dist/collection/components/badge/badge.stories.js +6 -0
- package/dist/collection/components/banner/banner.stories.js +33 -3
- package/dist/collection/components/button/button.stories.js +58 -67
- package/dist/collection/components/button-floating/button-floating.stories.js +32 -23
- package/dist/collection/components/card/card.stories.js +25 -15
- package/dist/collection/components/carousel/carousel.stories.js +72 -280
- package/dist/collection/components/checkbox/checkbox.stories.js +54 -33
- package/dist/collection/components/chip/chip.stories.js +32 -47
- package/dist/collection/components/collapse/collapse.stories.js +88 -78
- package/dist/collection/components/content-card/content-card.stories.js +30 -11
- package/dist/collection/components/counter/counter.stories.js +40 -11
- package/dist/collection/components/dialog/dialog.stories.js +37 -51
- package/dist/collection/components/drawer/drawer.css +9 -0
- package/dist/collection/components/drawer/drawer.js +34 -12
- package/dist/collection/components/drawer/drawer.js.map +1 -1
- package/dist/collection/components/drawer/drawer.stories.js +70 -134
- package/dist/collection/components/dropdown/dropdown.css +1 -1
- package/dist/collection/components/dropdown/dropdown.stories.js +69 -53
- package/dist/collection/components/duration/duration.stories.js +49 -45
- package/dist/collection/components/flap/flap.stories.js +22 -10
- package/dist/collection/components/input/input.stories.js +33 -0
- package/dist/collection/components/item/item.stories.js +25 -0
- package/dist/collection/components/list/list.stories.js +2 -0
- package/dist/collection/components/modal/modal.stories.js +14 -0
- package/dist/collection/components/navbar/navbar.stories.js +3 -0
- package/dist/collection/components/navbar-v2/navbar-v2.stories.js +4 -0
- package/dist/collection/components/phone-number-input/constants.js +3 -0
- package/dist/collection/components/phone-number-input/constants.js.map +1 -0
- package/dist/collection/components/phone-number-input/phone-number-input.css +198 -129
- package/dist/collection/components/phone-number-input/phone-number-input.js +23 -63
- package/dist/collection/components/phone-number-input/phone-number-input.js.map +1 -1
- package/dist/collection/components/phone-number-input/phone-number-input.stories.js +15 -1
- package/dist/collection/components/plate-number/plate-number.js +2 -2
- package/dist/collection/components/plate-number/plate-number.stories.js +13 -0
- package/dist/collection/components/profil-dropdown/profil-dropdown.js +1 -1
- package/dist/collection/components/profil-dropdown/profil-dropdown.stories.js +8 -0
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/progress/progress.stories.js +12 -0
- package/dist/collection/components/progress-indicator-horizontal/progress-indicator-horizontal.js +1 -1
- package/dist/collection/components/progress-indicator-horizontal/progress-indicator-horizontal.stories.js +8 -0
- package/dist/collection/components/progress-indicator-vertical/progress-indicator-vertical.js +1 -1
- package/dist/collection/components/progress-indicator-vertical/progress-indicator-vertical.stories.js +1 -0
- 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/progress-tracker.stories.js +1 -0
- 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 +13 -0
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- package/dist/collection/components/range/range.js +2 -2
- package/dist/collection/components/range/range.stories.js +11 -0
- package/dist/collection/components/rating/rating.js +1 -1
- package/dist/collection/components/rating/rating.stories.js +7 -0
- 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/segmented-buttons/segmented-buttons.stories.js +2 -0
- package/dist/collection/components/select/select.js +1 -1
- package/dist/collection/components/select/select.stories.js +13 -0
- package/dist/collection/components/select-filter/select-filter.js +2 -2
- package/dist/collection/components/select-filter/select-filter.stories.js +5 -0
- package/dist/collection/components/skeleton/skeleton.js +1 -1
- package/dist/collection/components/skeleton/skeleton.stories.js +2 -0
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/spinner/spinner.stories.js +2 -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/table/table.stories.js +1 -0
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/tabs/tabs.stories.js +2 -0
- package/dist/collection/components/tag/tag.js +1 -1
- package/dist/collection/components/tag/tag.stories.js +3 -0
- package/dist/collection/components/text/text.js +1 -1
- package/dist/collection/components/text/text.stories.js +2 -0
- package/dist/collection/components/textarea/textarea.js +1 -1
- package/dist/collection/components/textarea/textarea.stories.js +26 -0
- package/dist/collection/components/toast/toast.js +1 -1
- package/dist/collection/components/toast/toast.stories.js +6 -0
- package/dist/collection/components/toggle/toggle.js +2 -2
- package/dist/collection/components/toggle/toggle.stories.js +14 -0
- package/dist/collection/components/toolbar/toolbar.js +1 -1
- package/dist/collection/components/toolbar/toolbar.stories.js +6 -0
- 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/toolbar-v2/toolbar-v2.stories.js +5 -0
- package/dist/collection/components/tooltip/tooltip.js +3 -3
- package/dist/collection/components/tooltip/tooltip.stories.js +11 -0
- package/dist/collection/components/utilities/text.stories.js +2 -0
- package/dist/collection/fonts/Muli-Black.woff +0 -0
- package/dist/collection/fonts/Muli-Black.woff2 +0 -0
- package/dist/collection/fonts/Muli-SemiBold.woff +0 -0
- package/dist/collection/fonts/Muli-SemiBold.woff2 +0 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/road-badge_14.entry.js +17 -15
- package/dist/esm/road-badge_14.entry.js.map +1 -1
- package/dist/esm/road-dropdown.entry.js +1 -1
- package/dist/esm/road-dropdown.entry.js.map +1 -1
- package/dist/esm/road-phone-number-input.entry.js +26 -61
- package/dist/esm/road-phone-number-input.entry.js.map +1 -1
- 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-group.entry.js +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 +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 +3 -3
- package/dist/esm/roadtrip.js +1 -1
- package/dist/html.html-data.json +4 -0
- package/dist/roadtrip/fonts/Muli-Black.woff +0 -0
- package/dist/roadtrip/fonts/Muli-Black.woff2 +0 -0
- package/dist/roadtrip/fonts/Muli-SemiBold.woff +0 -0
- package/dist/roadtrip/fonts/Muli-SemiBold.woff2 +0 -0
- package/dist/roadtrip/{p-c1e2aa67.entry.js → p-04913d58.entry.js} +2 -2
- package/dist/roadtrip/{p-494aab48.entry.js → p-06fbd2ea.entry.js} +2 -2
- package/dist/roadtrip/{p-2a4a0928.entry.js → p-167cd2fc.entry.js} +2 -2
- package/dist/roadtrip/p-215afdbd.entry.js +2 -0
- package/dist/roadtrip/{p-8f7375bc.entry.js → p-2e049c8e.entry.js} +2 -2
- package/dist/roadtrip/{p-8ca23318.entry.js → p-37430583.entry.js} +2 -2
- package/dist/roadtrip/{p-9fce16aa.entry.js → p-3dcaa947.entry.js} +2 -2
- package/dist/roadtrip/{p-1e61ca1f.entry.js → p-3f5dff96.entry.js} +2 -2
- package/dist/roadtrip/{p-f8817c0e.entry.js → p-449affa6.entry.js} +2 -2
- package/dist/roadtrip/p-4675ea6d.entry.js +2 -0
- package/dist/roadtrip/{p-4a47999a.entry.js → p-5fea6a74.entry.js} +2 -2
- package/dist/roadtrip/{p-f9754547.entry.js → p-60bd73ad.entry.js} +2 -2
- package/dist/roadtrip/p-65f9bd9c.entry.js +2 -0
- package/dist/roadtrip/{p-c68fc795.entry.js → p-6c617506.entry.js} +2 -2
- package/dist/roadtrip/{p-4e779fd6.entry.js → p-6ff3b37c.entry.js} +2 -2
- package/dist/roadtrip/p-85b1e505.entry.js +2 -0
- package/dist/roadtrip/{p-a990a8b6.entry.js → p-862c1831.entry.js} +2 -2
- package/dist/roadtrip/{p-a990a8b6.entry.js.map → p-862c1831.entry.js.map} +1 -1
- package/dist/roadtrip/p-8b04fc62.entry.js +2 -0
- package/dist/roadtrip/{p-e2a00f9c.entry.js → p-913b72de.entry.js} +3 -3
- package/dist/roadtrip/p-913b72de.entry.js.map +1 -0
- package/dist/roadtrip/{p-87c1ff76.entry.js → p-99a6faae.entry.js} +2 -2
- package/dist/roadtrip/{p-bba18327.entry.js → p-b5fa8c5a.entry.js} +2 -2
- package/dist/roadtrip/{p-db243855.entry.js → p-b8c5d292.entry.js} +2 -2
- package/dist/roadtrip/{p-d68e64a8.entry.js → p-c28e7add.entry.js} +2 -2
- package/dist/roadtrip/{p-10e65612.entry.js → p-c47ccbf2.entry.js} +2 -2
- package/dist/roadtrip/{p-c3ef32ef.entry.js → p-c6824205.entry.js} +2 -2
- package/dist/roadtrip/{p-833c1e78.entry.js → p-cfd2919e.entry.js} +2 -2
- package/dist/roadtrip/{p-a0a95c0a.entry.js → p-d80e7563.entry.js} +2 -2
- package/dist/roadtrip/p-db77c354.entry.js +2 -0
- package/dist/roadtrip/{p-5fab1bc3.entry.js.map → p-db77c354.entry.js.map} +1 -1
- package/dist/roadtrip/{p-0cacf829.entry.js → p-ddfe088f.entry.js} +2 -2
- package/dist/roadtrip/p-ddfe088f.entry.js.map +1 -0
- package/dist/roadtrip/{p-4bbc889b.entry.js → p-e6c4c576.entry.js} +2 -2
- package/dist/roadtrip/{p-01be5517.entry.js → p-e6e9882b.entry.js} +2 -2
- package/dist/roadtrip/{p-5a6fbd7f.entry.js → p-e75ec60f.entry.js} +2 -2
- package/dist/roadtrip/{p-edbbe884.entry.js → p-ea1a175d.entry.js} +2 -2
- package/dist/roadtrip/{p-2903bdc0.entry.js → p-eac313e4.entry.js} +2 -2
- package/dist/roadtrip/{p-fb26ed7e.entry.js → p-f1b53143.entry.js} +2 -2
- package/dist/roadtrip/{p-b18cda16.entry.js → p-fd3c58b6.entry.js} +2 -2
- package/dist/roadtrip/{p-32845e72.entry.js → p-fe40ab3d.entry.js} +2 -2
- 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/drawer/drawer.d.ts +4 -1
- package/dist/types/components/phone-number-input/constants.d.ts +1 -0
- package/dist/types/components/phone-number-input/phone-number-input.d.ts +3 -9
- package/dist/types/components-react.d.ts +4 -4
- package/dist/types/components.d.ts +16 -0
- package/hydrate/index.js +305 -318
- package/hydrate/index.mjs +305 -318
- package/package.json +1 -1
- package/dist/roadtrip/p-0cacf829.entry.js.map +0 -1
- package/dist/roadtrip/p-427bd935.entry.js +0 -2
- package/dist/roadtrip/p-5fab1bc3.entry.js +0 -2
- package/dist/roadtrip/p-78b51033.entry.js +0 -2
- package/dist/roadtrip/p-9737182c.entry.js +0 -2
- package/dist/roadtrip/p-a925ff64.entry.js +0 -2
- package/dist/roadtrip/p-e2a00f9c.entry.js.map +0 -1
- package/dist/roadtrip/p-ee92b78d.entry.js +0 -2
- /package/dist/roadtrip/{p-c1e2aa67.entry.js.map → p-04913d58.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-494aab48.entry.js.map → p-06fbd2ea.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-2a4a0928.entry.js.map → p-167cd2fc.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-427bd935.entry.js.map → p-215afdbd.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-8f7375bc.entry.js.map → p-2e049c8e.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-8ca23318.entry.js.map → p-37430583.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-9fce16aa.entry.js.map → p-3dcaa947.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-1e61ca1f.entry.js.map → p-3f5dff96.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-f8817c0e.entry.js.map → p-449affa6.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-ee92b78d.entry.js.map → p-4675ea6d.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-4a47999a.entry.js.map → p-5fea6a74.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-f9754547.entry.js.map → p-60bd73ad.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-a925ff64.entry.js.map → p-65f9bd9c.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c68fc795.entry.js.map → p-6c617506.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-4e779fd6.entry.js.map → p-6ff3b37c.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-9737182c.entry.js.map → p-85b1e505.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-78b51033.entry.js.map → p-8b04fc62.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-87c1ff76.entry.js.map → p-99a6faae.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-bba18327.entry.js.map → p-b5fa8c5a.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-db243855.entry.js.map → p-b8c5d292.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-d68e64a8.entry.js.map → p-c28e7add.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-10e65612.entry.js.map → p-c47ccbf2.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c3ef32ef.entry.js.map → p-c6824205.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-833c1e78.entry.js.map → p-cfd2919e.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-a0a95c0a.entry.js.map → p-d80e7563.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-4bbc889b.entry.js.map → p-e6c4c576.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-01be5517.entry.js.map → p-e6e9882b.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-5a6fbd7f.entry.js.map → p-e75ec60f.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-edbbe884.entry.js.map → p-ea1a175d.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-2903bdc0.entry.js.map → p-eac313e4.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-fb26ed7e.entry.js.map → p-f1b53143.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-b18cda16.entry.js.map → p-fd3c58b6.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-32845e72.entry.js.map → p-fe40ab3d.entry.js.map} +0 -0
package/hydrate/index.js
CHANGED
|
@@ -131,7 +131,7 @@ const NAMESPACE = 'roadtrip';
|
|
|
131
131
|
const BUILD = /* roadtrip */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, attachStyles: true, cloneNodeFix: false, constructableCSS: false, cssAnnotations: true, devTools: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: true, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, shadowDomShim: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
132
132
|
|
|
133
133
|
/*
|
|
134
|
-
Stencil Hydrate Platform v4.27.
|
|
134
|
+
Stencil Hydrate Platform v4.27.2 | MIT Licensed | https://stenciljs.com
|
|
135
135
|
*/
|
|
136
136
|
var __defProp = Object.defineProperty;
|
|
137
137
|
var __export = (target, all) => {
|
|
@@ -151,9 +151,9 @@ var isComplexType = (o) => {
|
|
|
151
151
|
};
|
|
152
152
|
|
|
153
153
|
// src/utils/query-nonce-meta-tag-content.ts
|
|
154
|
-
function queryNonceMetaTagContent(
|
|
154
|
+
function queryNonceMetaTagContent(doc) {
|
|
155
155
|
var _a, _b, _c;
|
|
156
|
-
return (_c = (_b = (_a =
|
|
156
|
+
return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
// src/utils/regular-expression.ts
|
|
@@ -510,8 +510,8 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
510
510
|
delete hostElm["s-sc"];
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
|
-
if (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size) {
|
|
514
|
-
initializeDocumentHydrate(
|
|
513
|
+
if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
|
|
514
|
+
initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
|
|
515
515
|
}
|
|
516
516
|
hostElm[HYDRATE_ID] = hostId;
|
|
517
517
|
hostElm.removeAttribute(HYDRATE_ID);
|
|
@@ -834,8 +834,8 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
834
834
|
childVNode.$name$ = slotName || null;
|
|
835
835
|
childVNode.$tag$ = "slot";
|
|
836
836
|
const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
|
|
837
|
-
if (shadowRootNodes) {
|
|
838
|
-
const slot = childVNode.$elm$ =
|
|
837
|
+
if (shadowRootNodes && win.document) {
|
|
838
|
+
const slot = childVNode.$elm$ = win.document.createElement(childVNode.$tag$);
|
|
839
839
|
if (childVNode.$name$) {
|
|
840
840
|
childVNode.$elm$.setAttribute("name", slotName);
|
|
841
841
|
}
|
|
@@ -1279,7 +1279,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
1279
1279
|
var _a;
|
|
1280
1280
|
const scopeId2 = getScopeId(cmpMeta);
|
|
1281
1281
|
const style = styles$1.get(scopeId2);
|
|
1282
|
-
|
|
1282
|
+
if (!win.document) {
|
|
1283
|
+
return scopeId2;
|
|
1284
|
+
}
|
|
1285
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
1283
1286
|
if (style) {
|
|
1284
1287
|
if (typeof style === "string") {
|
|
1285
1288
|
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
@@ -1292,9 +1295,9 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
1292
1295
|
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
1293
1296
|
styleElm.innerHTML = style;
|
|
1294
1297
|
} else {
|
|
1295
|
-
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) ||
|
|
1298
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
|
|
1296
1299
|
styleElm.innerHTML = style;
|
|
1297
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
1300
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1298
1301
|
if (nonce != null) {
|
|
1299
1302
|
styleElm.setAttribute("nonce", nonce);
|
|
1300
1303
|
}
|
|
@@ -1544,7 +1547,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1544
1547
|
}
|
|
1545
1548
|
}
|
|
1546
1549
|
if (newVNode2.$text$ !== null) {
|
|
1547
|
-
elm = newVNode2.$elm$ =
|
|
1550
|
+
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
1548
1551
|
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
1549
1552
|
elm = newVNode2.$elm$ = slotReferenceDebugNode(newVNode2) ;
|
|
1550
1553
|
{
|
|
@@ -1554,7 +1557,12 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1554
1557
|
if (!isSvgMode) {
|
|
1555
1558
|
isSvgMode = newVNode2.$tag$ === "svg";
|
|
1556
1559
|
}
|
|
1557
|
-
|
|
1560
|
+
if (!win.document) {
|
|
1561
|
+
throw new Error(
|
|
1562
|
+
"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
|
|
1563
|
+
);
|
|
1564
|
+
}
|
|
1565
|
+
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
1558
1566
|
isSvgMode ? SVG_NS : HTML_NS,
|
|
1559
1567
|
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
1560
1568
|
) ;
|
|
@@ -1936,7 +1944,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1936
1944
|
markSlotContentForRelocation(rootVnode.$elm$);
|
|
1937
1945
|
for (const relocateData of relocateNodes) {
|
|
1938
1946
|
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1939
|
-
if (!nodeToRelocate["s-ol"]) {
|
|
1947
|
+
if (!nodeToRelocate["s-ol"] && win.document) {
|
|
1940
1948
|
const orgLocationNode = originalLocationDebugNode(nodeToRelocate) ;
|
|
1941
1949
|
orgLocationNode["s-nr"] = nodeToRelocate;
|
|
1942
1950
|
insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
|
|
@@ -1980,12 +1988,18 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1980
1988
|
}
|
|
1981
1989
|
contentRef = void 0;
|
|
1982
1990
|
};
|
|
1983
|
-
var slotReferenceDebugNode = (slotVNode) =>
|
|
1984
|
-
|
|
1985
|
-
)
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1991
|
+
var slotReferenceDebugNode = (slotVNode) => {
|
|
1992
|
+
var _a;
|
|
1993
|
+
return (_a = win.document) == null ? void 0 : _a.createComment(
|
|
1994
|
+
`<slot${slotVNode.$name$ ? ' name="' + slotVNode.$name$ + '"' : ""}> (host=${hostTagName.toLowerCase()})`
|
|
1995
|
+
);
|
|
1996
|
+
};
|
|
1997
|
+
var originalLocationDebugNode = (nodeToRelocate) => {
|
|
1998
|
+
var _a;
|
|
1999
|
+
return (_a = win.document) == null ? void 0 : _a.createComment(
|
|
2000
|
+
`org-location for ` + (nodeToRelocate.localName ? `<${nodeToRelocate.localName}> (host=${nodeToRelocate["s-hn"]})` : `[${nodeToRelocate.textContent}]`)
|
|
2001
|
+
);
|
|
2002
|
+
};
|
|
1989
2003
|
|
|
1990
2004
|
// src/runtime/update-component.ts
|
|
1991
2005
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
@@ -2182,7 +2196,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
2182
2196
|
const hostRef = getHostRef(ref);
|
|
2183
2197
|
if (!hostRef) {
|
|
2184
2198
|
throw new Error(
|
|
2185
|
-
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/
|
|
2199
|
+
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
|
|
2186
2200
|
);
|
|
2187
2201
|
}
|
|
2188
2202
|
const elm = hostRef.$hostElement$ ;
|
|
@@ -2486,16 +2500,19 @@ var connectedCallback = (elm) => {
|
|
|
2486
2500
|
}
|
|
2487
2501
|
};
|
|
2488
2502
|
var setContentReference = (elm) => {
|
|
2489
|
-
|
|
2503
|
+
if (!win.document) {
|
|
2504
|
+
return;
|
|
2505
|
+
}
|
|
2506
|
+
const contentRefElm = elm["s-cr"] = win.document.createComment(
|
|
2490
2507
|
""
|
|
2491
2508
|
);
|
|
2492
2509
|
contentRefElm["s-cn"] = true;
|
|
2493
2510
|
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
2494
2511
|
};
|
|
2495
2512
|
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
2496
|
-
if (listeners) {
|
|
2513
|
+
if (listeners && win.document) {
|
|
2497
2514
|
listeners.map(([flags, name, method]) => {
|
|
2498
|
-
const target = getHostListenerTarget(elm, flags) ;
|
|
2515
|
+
const target = getHostListenerTarget(win.document, elm, flags) ;
|
|
2499
2516
|
const handler = hostListenerProxy(hostRef, method);
|
|
2500
2517
|
const opts = hostListenerOpts(flags);
|
|
2501
2518
|
plt.ael(target, name, handler, opts);
|
|
@@ -2517,20 +2534,24 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
2517
2534
|
consoleError(e, hostRef.$hostElement$);
|
|
2518
2535
|
}
|
|
2519
2536
|
};
|
|
2520
|
-
var getHostListenerTarget = (elm, flags) => {
|
|
2521
|
-
if (flags & 4 /* TargetDocument */)
|
|
2522
|
-
|
|
2537
|
+
var getHostListenerTarget = (doc, elm, flags) => {
|
|
2538
|
+
if (flags & 4 /* TargetDocument */) {
|
|
2539
|
+
return doc;
|
|
2540
|
+
}
|
|
2541
|
+
if (flags & 8 /* TargetWindow */) {
|
|
2542
|
+
return win;
|
|
2543
|
+
}
|
|
2523
2544
|
return elm;
|
|
2524
2545
|
};
|
|
2525
2546
|
var hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
|
|
2526
2547
|
|
|
2527
2548
|
// src/runtime/vdom/vdom-annotations.ts
|
|
2528
|
-
var insertVdomAnnotations = (
|
|
2529
|
-
if (
|
|
2530
|
-
const docData = STENCIL_DOC_DATA in
|
|
2549
|
+
var insertVdomAnnotations = (doc, staticComponents) => {
|
|
2550
|
+
if (doc != null) {
|
|
2551
|
+
const docData = STENCIL_DOC_DATA in doc ? doc[STENCIL_DOC_DATA] : { ...DEFAULT_DOC_DATA };
|
|
2531
2552
|
docData.staticComponents = new Set(staticComponents);
|
|
2532
2553
|
const orgLocationNodes = [];
|
|
2533
|
-
parseVNodeAnnotations(
|
|
2554
|
+
parseVNodeAnnotations(doc, doc.body, docData, orgLocationNodes);
|
|
2534
2555
|
orgLocationNodes.forEach((orgLocationNode) => {
|
|
2535
2556
|
var _a;
|
|
2536
2557
|
if (orgLocationNode != null && orgLocationNode["s-nr"]) {
|
|
@@ -2556,11 +2577,11 @@ var insertVdomAnnotations = (doc2, staticComponents) => {
|
|
|
2556
2577
|
return;
|
|
2557
2578
|
}
|
|
2558
2579
|
}
|
|
2559
|
-
const commentBeforeTextNode =
|
|
2580
|
+
const commentBeforeTextNode = doc.createComment(childId);
|
|
2560
2581
|
commentBeforeTextNode.nodeValue = `${TEXT_NODE_ID}.${childId}`;
|
|
2561
2582
|
insertBefore(nodeRef.parentNode, commentBeforeTextNode, nodeRef);
|
|
2562
2583
|
} else if (nodeRef.nodeType === 8 /* CommentNode */) {
|
|
2563
|
-
const commentBeforeTextNode =
|
|
2584
|
+
const commentBeforeTextNode = doc.createComment(childId);
|
|
2564
2585
|
commentBeforeTextNode.nodeValue = `${COMMENT_NODE_ID}.${childId}`;
|
|
2565
2586
|
nodeRef.parentNode.insertBefore(commentBeforeTextNode, nodeRef);
|
|
2566
2587
|
}
|
|
@@ -2579,7 +2600,7 @@ var insertVdomAnnotations = (doc2, staticComponents) => {
|
|
|
2579
2600
|
});
|
|
2580
2601
|
}
|
|
2581
2602
|
};
|
|
2582
|
-
var parseVNodeAnnotations = (
|
|
2603
|
+
var parseVNodeAnnotations = (doc, node, docData, orgLocationNodes) => {
|
|
2583
2604
|
var _a;
|
|
2584
2605
|
if (node == null) {
|
|
2585
2606
|
return;
|
|
@@ -2595,13 +2616,13 @@ var parseVNodeAnnotations = (doc2, node, docData, orgLocationNodes) => {
|
|
|
2595
2616
|
const cmpData = {
|
|
2596
2617
|
nodeIds: 0
|
|
2597
2618
|
};
|
|
2598
|
-
insertVNodeAnnotations(
|
|
2619
|
+
insertVNodeAnnotations(doc, childNode, hostRef.$vnode$, docData, cmpData);
|
|
2599
2620
|
}
|
|
2600
|
-
parseVNodeAnnotations(
|
|
2621
|
+
parseVNodeAnnotations(doc, childNode, docData, orgLocationNodes);
|
|
2601
2622
|
});
|
|
2602
2623
|
}
|
|
2603
2624
|
};
|
|
2604
|
-
var insertVNodeAnnotations = (
|
|
2625
|
+
var insertVNodeAnnotations = (doc, hostElm, vnode, docData, cmpData) => {
|
|
2605
2626
|
if (vnode != null) {
|
|
2606
2627
|
const hostId = ++docData.hostIds;
|
|
2607
2628
|
hostElm.setAttribute(HYDRATE_ID, hostId);
|
|
@@ -2611,7 +2632,7 @@ var insertVNodeAnnotations = (doc2, hostElm, vnode, docData, cmpData) => {
|
|
|
2611
2632
|
if (vnode.$children$ != null) {
|
|
2612
2633
|
const depth = 0;
|
|
2613
2634
|
vnode.$children$.forEach((vnodeChild, index) => {
|
|
2614
|
-
insertChildVNodeAnnotations(
|
|
2635
|
+
insertChildVNodeAnnotations(doc, vnodeChild, cmpData, hostId, depth, index);
|
|
2615
2636
|
});
|
|
2616
2637
|
}
|
|
2617
2638
|
if (hostElm && vnode && vnode.$elm$ && !hostElm.hasAttribute(HYDRATE_CHILD_ID)) {
|
|
@@ -2632,7 +2653,7 @@ var insertVNodeAnnotations = (doc2, hostElm, vnode, docData, cmpData) => {
|
|
|
2632
2653
|
}
|
|
2633
2654
|
}
|
|
2634
2655
|
};
|
|
2635
|
-
var insertChildVNodeAnnotations = (
|
|
2656
|
+
var insertChildVNodeAnnotations = (doc, vnodeChild, cmpData, hostId, depth, index) => {
|
|
2636
2657
|
const childElm = vnodeChild.$elm$;
|
|
2637
2658
|
if (childElm == null) {
|
|
2638
2659
|
return;
|
|
@@ -2651,7 +2672,7 @@ var insertChildVNodeAnnotations = (doc2, vnodeChild, cmpData, hostId, depth, ind
|
|
|
2651
2672
|
const nodeName = parentNode == null ? void 0 : parentNode.nodeName;
|
|
2652
2673
|
if (nodeName !== "STYLE" && nodeName !== "SCRIPT") {
|
|
2653
2674
|
const textNodeId = `${TEXT_NODE_ID}.${childId}`;
|
|
2654
|
-
const commentBeforeTextNode =
|
|
2675
|
+
const commentBeforeTextNode = doc.createComment(textNodeId);
|
|
2655
2676
|
insertBefore(parentNode, commentBeforeTextNode, childElm);
|
|
2656
2677
|
}
|
|
2657
2678
|
} else if (childElm.nodeType === 8 /* CommentNode */) {
|
|
@@ -2664,7 +2685,7 @@ var insertChildVNodeAnnotations = (doc2, vnodeChild, cmpData, hostId, depth, ind
|
|
|
2664
2685
|
if (vnodeChild.$children$ != null) {
|
|
2665
2686
|
const childDepth = depth + 1;
|
|
2666
2687
|
vnodeChild.$children$.forEach((vnode, index2) => {
|
|
2667
|
-
insertChildVNodeAnnotations(
|
|
2688
|
+
insertChildVNodeAnnotations(doc, vnode, cmpData, hostId, childDepth, index2);
|
|
2668
2689
|
});
|
|
2669
2690
|
}
|
|
2670
2691
|
};
|
|
@@ -2880,7 +2901,7 @@ function hydrateApp(win2, opts, results, afterHydrate, resolve) {
|
|
|
2880
2901
|
return elm;
|
|
2881
2902
|
};
|
|
2882
2903
|
tmrId = globalThis.setTimeout(timeoutExceeded, opts.timeout);
|
|
2883
|
-
plt.$resourcesUrl$ = new URL(opts.resourcesUrl || "./",
|
|
2904
|
+
plt.$resourcesUrl$ = new URL(opts.resourcesUrl || "./", win2.document.baseURI).href;
|
|
2884
2905
|
patchChild2(win2.document.body);
|
|
2885
2906
|
waitLoop2().then(hydratedComplete).catch(hydratedError);
|
|
2886
2907
|
} catch (e) {
|
|
@@ -3087,7 +3108,6 @@ var registerComponents = (Cstrs) => {
|
|
|
3087
3108
|
}
|
|
3088
3109
|
};
|
|
3089
3110
|
var win = window;
|
|
3090
|
-
var doc = win.document;
|
|
3091
3111
|
var writeTask = (cb) => {
|
|
3092
3112
|
nextTick$1(() => {
|
|
3093
3113
|
try {
|
|
@@ -3204,7 +3224,7 @@ class Accordion {
|
|
|
3204
3224
|
const accordionLightContent = this.isLight ? 'accordion-content accordion-light-content' : 'accordion-content';
|
|
3205
3225
|
const accordionLightSeparator = this.isLightSeparator ? 'accordion accordion-light accordion-light--border' : 'accordion';
|
|
3206
3226
|
const accordionSmall = this.isSmall ? 'accordion accordion-light accordion-light--small' : 'accordion';
|
|
3207
|
-
return (hAsync("details", { key: '
|
|
3227
|
+
return (hAsync("details", { key: 'a3469eb6d8aef3b880677284c59e69eb62f205e8', class: `${accordionLight} ${accordionSmall} ${accordionLightSeparator}`, open: this.isOpen }, hAsync("summary", { key: 'b0c18225580028ad00098aa494a29b2c956b7561', class: "accordion-trigger", "aria-expanded": `${this.isOpen}`, tabindex: "0", role: "button", onClick: this.onClick }, hAsync("div", { key: 'a066d273354e022c095978edeae2040eddb75804', class: accordionLightHeader }, hAsync("slot", { key: '13056e6babf83f00ebfd538aa79a9fae24ab344f', name: "icon-left" }), hAsync("slot", { key: '7f54051ce9e12dc9ef8e30f7262096a1248d19bb', name: "header" }), hAsync("road-icon", { key: '4161743fdea3953e151525481a338c7a87edd159', class: "accordion-arrow", icon: navigationChevron }))), hAsync("div", { key: '42f14c07ceabf357f4042207e35f828e782aefbc', class: accordionLightContent }, hAsync("slot", { key: 'c0e67f0215366eb9e129b341f02ff88a5c019b43' }))));
|
|
3208
3228
|
}
|
|
3209
3229
|
static get style() { return RoadAccordionStyle0; }
|
|
3210
3230
|
static get cmpMeta() { return {
|
|
@@ -3239,7 +3259,7 @@ class Alert {
|
|
|
3239
3259
|
}
|
|
3240
3260
|
render() {
|
|
3241
3261
|
const colorClass = this.color !== undefined ? `alert-${this.color}` : '';
|
|
3242
|
-
return (hAsync(Host, { key: '
|
|
3262
|
+
return (hAsync(Host, { key: 'b654cd8f516e47f8a6c0e7a1a4bfd9cae09076e0', class: colorClass, role: "alert" }, hAsync("div", { key: '280b009d269a3dd510bcfabf8f4d7e5eb61cda80', class: "alert-icon" }, hAsync("slot", { key: '17d81df60b117ab8b246d9b73c832954ec7296d1', name: "icon" })), hAsync("div", { key: '46f8799b8b2ef9e525a4d7f00b5c53ddd98fe4d1' }, this.label && hAsync("span", { key: '900b5b9f095356d008fb2bae5c03cc28eb828a8a', class: "alert-title d-block" }, this.label), hAsync("p", { key: 'c65304f2cb7c7109350f3265a88a507ff84bb0c8', class: "alert-description" }, hAsync("slot", { key: '3f34a35e3bbfd3a2fe96531e9d7a0cfd00df7b74' }), this.link && hAsync("a", { key: '4149db714ea2fc13148d1e44d6e0dd9cc73dee45', href: this.url, class: "alert-link link link-default" }, this.link)))));
|
|
3243
3263
|
}
|
|
3244
3264
|
static get style() { return RoadAlertStyle0; }
|
|
3245
3265
|
static get cmpMeta() { return {
|
|
@@ -3338,7 +3358,7 @@ class Asset {
|
|
|
3338
3358
|
}
|
|
3339
3359
|
}
|
|
3340
3360
|
render() {
|
|
3341
|
-
return (hAsync(Host, { key: '
|
|
3361
|
+
return (hAsync(Host, { key: '64331c0cd4f5a805be16cd746dfe78d7eeea118e', "aria-hidden": "true", role: "img" }, ((this.assetSvgContent !== '')
|
|
3342
3362
|
? hAsync("div", { class: "icon-inner", innerHTML: this.assetSvgContent })
|
|
3343
3363
|
: hAsync("div", { class: "icon-inner" }))));
|
|
3344
3364
|
}
|
|
@@ -3408,8 +3428,8 @@ class Autocomplete {
|
|
|
3408
3428
|
}
|
|
3409
3429
|
}
|
|
3410
3430
|
render() {
|
|
3411
|
-
return (hAsync(Host, { key: '
|
|
3412
|
-
hAsync("ul", { key: '
|
|
3431
|
+
return (hAsync(Host, { key: '46eeec7665a075a37025173b3a86f42e9263c835' }, hAsync("slot", { key: 'f3513033a2e4a3e22d30218c47e1eed0e2e7bc94' }), this.visible && this.options.length > 0 &&
|
|
3432
|
+
hAsync("ul", { key: '1527ef97b9885082769751a9b5aaf254df54d94b', class: "autocomplete-list" }, this.options && this.options.map(option => (hAsync("li", { class: "autocomplete-item", role: "menuitem", onClick: () => this.onClick(option.value, option.label), tabindex: "0" }, option.label))))));
|
|
3413
3433
|
}
|
|
3414
3434
|
get el() { return getElement(this); }
|
|
3415
3435
|
static get style() { return RoadAutocompleteStyle0; }
|
|
@@ -3442,7 +3462,7 @@ class Avatar {
|
|
|
3442
3462
|
}
|
|
3443
3463
|
render() {
|
|
3444
3464
|
const sizeClass = this.size !== undefined ? `avatar-${this.size}` : '';
|
|
3445
|
-
return (hAsync(Host, { key: '
|
|
3465
|
+
return (hAsync(Host, { key: '6f57ba54014a8220d4262e0fd61dd807ed09f5e2', class: `${sizeClass}` }, hAsync("slot", { key: '3152a4be46b7d1d68df32861f690ae7bf5cf1c37' })));
|
|
3446
3466
|
}
|
|
3447
3467
|
static get style() { return RoadAvatarStyle0; }
|
|
3448
3468
|
static get cmpMeta() { return {
|
|
@@ -3478,7 +3498,7 @@ class Badge {
|
|
|
3478
3498
|
render() {
|
|
3479
3499
|
const colorClass = this.color !== undefined ? `badge-${this.color}` : '';
|
|
3480
3500
|
const bubbleClass = this.bubble ? 'badge-bubble' : '';
|
|
3481
|
-
return (hAsync(Host, { key: '
|
|
3501
|
+
return (hAsync(Host, { key: '16742c39b5260aadf2da3067ce5a2812fe4c462f', class: `${colorClass} ${bubbleClass}` }, hAsync("slot", { key: 'd989a2f2bcdd588fc483b71e8d630387997deb95' })));
|
|
3482
3502
|
}
|
|
3483
3503
|
static get style() { return RoadBadgeStyle0; }
|
|
3484
3504
|
static get cmpMeta() { return {
|
|
@@ -3527,7 +3547,7 @@ class Banner {
|
|
|
3527
3547
|
}
|
|
3528
3548
|
render() {
|
|
3529
3549
|
const bannerIsOpenClass = this.isOpen ? 'banner-open' : '';
|
|
3530
|
-
return (hAsync(Host, { key: '
|
|
3550
|
+
return (hAsync(Host, { key: '3b26ce08382bc4c226be95bce24f45f10727bc3a', class: bannerIsOpenClass }, hAsync("div", { key: '30438032a71d86cc054ed048c4362f891dd958f5' }, hAsync("span", { key: 'be69b7116ff47b43490534d86428f1c38f98259b', class: "banner-open-label" }, this.label), this.link && hAsync("a", { key: 'b8ff1de1d13dbc06f64a7378b1d959d2c80546c5', href: this.url, class: "banner-open-link" }, this.link), hAsync("button", { key: '35a63144540b01d7eb148970d1cb872cc3c499af', type: "button", class: "banner-close", onClick: this.onClick, "aria-label": "closed" }, hAsync("road-icon", { key: '89043091f5e7503601584b59403f0addb8287eb9', icon: navigationClose, size: "md" })))));
|
|
3531
3551
|
}
|
|
3532
3552
|
static get style() { return RoadBannerStyle0; }
|
|
3533
3553
|
static get cmpMeta() { return {
|
|
@@ -3633,7 +3653,7 @@ class Button$1 {
|
|
|
3633
3653
|
const sizeClass = this.size !== undefined ? `btn-${this.size}` : '';
|
|
3634
3654
|
const expandClass = this.expand ? 'btn-block' : '';
|
|
3635
3655
|
const iconOnlyClass = this.iconOnly ? 'btn-icon' : '';
|
|
3636
|
-
return (hAsync(Host, { key: '
|
|
3656
|
+
return (hAsync(Host, { key: '57327cf5e013e564975f2d89f0e58b8b616e714b', class: [colorClass, sizeClass, expandClass, iconOnlyClass].filter(Boolean).join(' '), onClick: this.onClick, "aria-disabled": disabled ? 'true' : null }, hAsync(TagType, Object.assign({ key: '58e517e5e47714f0de398ab5fb98b7499b1da2d3' }, attrs, { class: "button-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur }), hAsync("slot", { key: '06e5d39c87cd40a4cb419125bb486f8d54afaf9f', name: "start" }), hAsync("slot", { key: 'cf7b775a0a57bfb3f6bba1128a6462e2c7d02c07' }), hAsync("slot", { key: 'd04aa7d04dc9d3d22d912aed80ea163be3fa3a3f', name: "end" }))));
|
|
3637
3657
|
}
|
|
3638
3658
|
get el() { return getElement(this); }
|
|
3639
3659
|
static get style() { return RoadButtonStyle0; }
|
|
@@ -3718,7 +3738,7 @@ class Button {
|
|
|
3718
3738
|
render() {
|
|
3719
3739
|
const TagType = this.href === undefined ? 'button' : 'a';
|
|
3720
3740
|
const positionClass = this.position !== undefined ? `position-${this.position}` : '';
|
|
3721
|
-
return (hAsync(Host, { key: '
|
|
3741
|
+
return (hAsync(Host, { key: 'ffb60871f5d27b54ec48f9ba8e699960e5edf16d', onClick: this.onClick, class: `${positionClass}` }, hAsync(TagType, { key: 'd62ca1111a2bce02e942e91fd867470974269cee', class: "button-native", part: "native", onFocus: this.onFocus, onBlur: this.onBlur }, hAsync("slot", { key: 'd0b29a5717d1386f8dc145b945b79994e36e039e', name: "start" }), hAsync("slot", { key: '9db183b8b6533b7bc091364033f167b2d0b7004b' }))));
|
|
3722
3742
|
}
|
|
3723
3743
|
get el() { return getElement(this); }
|
|
3724
3744
|
static get style() { return RoadButtonFloatingStyle0; }
|
|
@@ -3763,7 +3783,7 @@ class ButtonBar {
|
|
|
3763
3783
|
this.selectedTabChanged();
|
|
3764
3784
|
}
|
|
3765
3785
|
render() {
|
|
3766
|
-
return (hAsync(Host, { key: '
|
|
3786
|
+
return (hAsync(Host, { key: 'cbe94587012819876109399d72bb1715ac334a9f', role: "tablist" }, hAsync("slot", { key: 'a1ba2feec5c649ea44f6b534a10a18fc738fede5' })));
|
|
3767
3787
|
}
|
|
3768
3788
|
get el() { return getElement(this); }
|
|
3769
3789
|
static get watchers() { return {
|
|
@@ -3846,7 +3866,7 @@ class Card {
|
|
|
3846
3866
|
render() {
|
|
3847
3867
|
const { elevation } = this;
|
|
3848
3868
|
const elevationClass = this.elevation ? `card-elevation-${elevation}` : ``;
|
|
3849
|
-
return (hAsync(Host, { key: '
|
|
3869
|
+
return (hAsync(Host, { key: '4b33b971a83bdc61a6f263d0d875fc4ce001b1e2', class: `${elevationClass}` }, this.renderCard()));
|
|
3850
3870
|
}
|
|
3851
3871
|
get el() { return getElement(this); }
|
|
3852
3872
|
static get style() { return RoadCardStyle0; }
|
|
@@ -10593,7 +10613,7 @@ class Carousel {
|
|
|
10593
10613
|
});
|
|
10594
10614
|
}
|
|
10595
10615
|
render() {
|
|
10596
|
-
return (hAsync(Host, { key: '
|
|
10616
|
+
return (hAsync(Host, { key: 'bd56a3d4295733f9ccd9d44178b71fdf8d6faf80', class: "swiper-container", tabindex: "0" }, hAsync("div", { key: 'c0f8061060089cce5cfd4e1a73dc6d139ca5882f', class: "swiper-wrapper" }, hAsync("slot", { key: 'b21ada18d0c456767d540ccd59e5c1cce00e9fa2' })), this.pager && hAsync("div", { key: 'ed3e6e57cb5ff73b4ab3990d3e6ad307f8487451', class: "swiper-pagination", ref: el => this.paginationEl = el }), this.arrows && (hAsync("div", { key: '891f70fa003492b46bf2426b772a2a6c4a72cf45', role: "button", class: "swiper-button-prev", tabindex: "0", "aria-label": "Previous slide", onClick: () => this.slidePrev() }, hAsync("road-icon", { key: 'd6dc350a2f30a0bb74152755d410edf19f3dc87c', icon: navigationChevron, rotate: "180" }))), this.arrows && (hAsync("div", { key: '6248c621551d1a972b6448135b98353b493f7b50', role: "button", class: "swiper-button-next", tabindex: "0", "aria-label": "Next slide", onClick: () => this.slideNext() }, hAsync("road-icon", { key: '20d0af76b9d2486f122835ad5bd125edc06777ae', icon: navigationChevron })))));
|
|
10597
10617
|
}
|
|
10598
10618
|
get el() { return getElement(this); }
|
|
10599
10619
|
static get watchers() { return {
|
|
@@ -10644,10 +10664,10 @@ class CarouselItem {
|
|
|
10644
10664
|
registerInstance(this, hostRef);
|
|
10645
10665
|
}
|
|
10646
10666
|
render() {
|
|
10647
|
-
return (hAsync(Host, { key: '
|
|
10667
|
+
return (hAsync(Host, { key: 'ad1fcbb1419b1ca05ddfbd0d398c5fc2a7b4e55c', class: {
|
|
10648
10668
|
'swiper-slide': true,
|
|
10649
10669
|
'swiper-zoom-container': true,
|
|
10650
|
-
} }, hAsync("slot", { key: '
|
|
10670
|
+
} }, hAsync("slot", { key: 'e38a514a6965db10c79e5ece9ef7bbc273a32fe7' })));
|
|
10651
10671
|
}
|
|
10652
10672
|
static get style() { return RoadCarouselItemStyle0; }
|
|
10653
10673
|
static get cmpMeta() { return {
|
|
@@ -10738,7 +10758,7 @@ class Checkbox {
|
|
|
10738
10758
|
const labelId = this.checkboxId + '-label';
|
|
10739
10759
|
const inverseClass = this.inverse && 'form-checkbox-inverse';
|
|
10740
10760
|
const isInvalidClass = this.error !== undefined && !this.checked && this.error !== '' ? 'is-invalid' : '';
|
|
10741
|
-
return (hAsync(Host, { key: '
|
|
10761
|
+
return (hAsync(Host, { key: 'f16e29d51017bee1efb9600331cf9ecadc81b8ef' }, hAsync("input", { key: 'b0323e72a41252b61165cef98ec0d4018e05c0c6', class: `form-check-input ${isInvalidClass}`, type: "checkbox", id: this.checkboxId, name: this.name, required: this.required, disabled: this.disabled, indeterminate: this.indeterminate, checked: this.checked, 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 }), hAsync("label", { key: 'f707e5f80448890998b3f17024dcdaa8440f1676', class: `form-check-label ${inverseClass}`, id: labelId, htmlFor: this.checkboxId }, hAsync("div", { key: 'd114ab8b878a19b3abbf81a09b2e5d5d8b42a74d' }, this.label, " ", hAsync("span", { key: '6999e86aa34752d5a583143ca797c4fcde6ec123', class: "form-check-label-span" }, this.secondaryLabel), hAsync("slot", { key: '4a3e284226fd18ecc87f2f3a749de8caf31a5da1' })), this.checked && !this.indeterminate && hAsync("road-icon", { key: '2bb4df593e57edba39acbb171dd807bde34ab286', class: "form-check-icon", icon: checkWide }), this.indeterminate && hAsync("road-icon", { key: '48f0661a7810dfe8e3f32d4fefe2eafac0c294ec', class: "form-check-icon", icon: navigationAddLess })), this.error && this.error !== '' && hAsync("p", { key: '9ee03128a2f23fd6bebcc60e9ae73f2035bd9b25', class: "invalid-feedback" }, this.error), this.helper && this.helper !== '' && hAsync("p", { key: '0a4d6d19679549b2fa006129a9319c1106ac7d85', class: "helper" }, this.helper)));
|
|
10742
10762
|
}
|
|
10743
10763
|
static get watchers() { return {
|
|
10744
10764
|
"checked": ["checkedChanged"]
|
|
@@ -10796,7 +10816,7 @@ class Chip {
|
|
|
10796
10816
|
}
|
|
10797
10817
|
render() {
|
|
10798
10818
|
const outlineClass = this.outline ? 'chip-outline' : '';
|
|
10799
|
-
return (hAsync(Host, { key: '
|
|
10819
|
+
return (hAsync(Host, { key: '6984fe20341a84195a6e855b242f9d4b52a90448', class: `${outlineClass} chip-${this.color} chip-${this.size}`, tabindex: "0" }, hAsync("div", { key: '27080c8b8a87a10b8943aea1563da0174a0405aa', class: "chip-description" }, hAsync("slot", { key: 'dc915b09d73c31b40447a25e99c9c8e2cb490932' })), this.hasCloseIcon && hAsync("road-icon", { key: 'fb6e297f93e7d2a71f34e51c77eafc57391080e2', class: "chip-close", icon: navigationClose })));
|
|
10800
10820
|
}
|
|
10801
10821
|
static get style() { return RoadChipStyle0; }
|
|
10802
10822
|
static get cmpMeta() { return {
|
|
@@ -10825,7 +10845,7 @@ class Col {
|
|
|
10825
10845
|
registerInstance(this, hostRef);
|
|
10826
10846
|
}
|
|
10827
10847
|
render() {
|
|
10828
|
-
return (hAsync("slot", { key: '
|
|
10848
|
+
return (hAsync("slot", { key: '31d1c2466605d958b1e09d2a3560df534e27fcfb' }));
|
|
10829
10849
|
}
|
|
10830
10850
|
static get style() { return RoadColStyle0; }
|
|
10831
10851
|
static get cmpMeta() { return {
|
|
@@ -10875,7 +10895,7 @@ class Collapse {
|
|
|
10875
10895
|
const isOpenClass = this.isOpen ? 'collapse-open' : '';
|
|
10876
10896
|
const buttonText = this.isOpen ? this.showLess : this.showMore;
|
|
10877
10897
|
const centerClass = this.centered ? 'collapse-btn-centered' : '';
|
|
10878
|
-
return (hAsync(Host, { key: '
|
|
10898
|
+
return (hAsync(Host, { key: '6e386b6d38d82a531552aa51a75c1936aa648086' }, hAsync("slot", { key: '4f2a6c4da34fb988a2502c42e84cf04e2ff8b3d9' }), hAsync("div", { key: 'd526b164e59b383060181b421348bf841ebfc87b', class: `collapsed-content ${isOpenClass}` }, hAsync("slot", { key: 'b9f02396aa6b7599bda288ef90eaf86bf6840be4', name: "collapsed-content" })), hAsync("div", { key: 'f8295bbd155c7516b0fdd3e2a58ccd4b5188844b', class: `collapse-btn-wrapper ${centerClass}` }, hAsync("road-button", { key: 'e93ff7cbb3038bf93fc47467708485edec2c9a13', onClick: this.onClick, class: "collapse-btn btn-link" }, buttonText))));
|
|
10879
10899
|
}
|
|
10880
10900
|
static get style() { return RoadCollapseStyle0; }
|
|
10881
10901
|
static get cmpMeta() { return {
|
|
@@ -10912,7 +10932,7 @@ class ContentCard {
|
|
|
10912
10932
|
}
|
|
10913
10933
|
render() {
|
|
10914
10934
|
const insetImageClass = this.insetImage ? '' : 'content-card-image';
|
|
10915
|
-
return (hAsync(Host, { key: '
|
|
10935
|
+
return (hAsync(Host, { key: 'e053ef7978db53d7fecd4628ccc4e5708e128e93' }, hAsync("road-img", { key: 'bb7b363f08ada6385b0744da1b145d8c190ef309', src: "https://s1.medias-norauto.fr/visuals/desktop/fr/banners/blog_loimontagne.png", alt: "loi montagne", class: insetImageClass }), hAsync("div", { key: '70143643e05373e3230aab8a151d7f6986a2c6ef', class: "content-card-description" }, hAsync("road-label", { key: '4dbf374d7fee075b782af68e3627a6fedaf69cb2', class: "content-card-description-title" }, hAsync("slot", { key: '1f70c536151777a0ce5a002c2054306123bcf2ec', name: "label" })), hAsync("p", { key: 'e62f439d92a7ca6a406ab2fcdc5501488613872c', class: "content-card-description-text" }, hAsync("slot", { key: '42bbeb6043724fa897ae49c453f5339ea893fcfc', name: "description" })), hAsync("div", { key: '971bad2a897bce4a4180db88d8a7f0abacd23aee', class: "content-card-description-buttons" }, hAsync("slot", { key: '7c33368ae9c3a748d52b03dbf52fe40e7c738562' })))));
|
|
10916
10936
|
}
|
|
10917
10937
|
static get style() { return RoadContentCardStyle0; }
|
|
10918
10938
|
static get cmpMeta() { return {
|
|
@@ -11072,7 +11092,7 @@ class Counter {
|
|
|
11072
11092
|
}
|
|
11073
11093
|
render() {
|
|
11074
11094
|
const dataCi = this.isDustbinVisible ? "road-dustbin" : "";
|
|
11075
|
-
return (hAsync("road-input-group", { key: '
|
|
11095
|
+
return (hAsync("road-input-group", { key: '8c5c49f3a335f5becc5b1c67823b3bede8847d7b', class: this.size && `counter-${this.size}` }, hAsync("road-button", { key: 'b31f4ea302a78333283578875bfe488891da73e9', slot: "prepend", size: this.size, onClick: this.decrease, class: this.leftIconClasses, "data-cy": "road-decrease" }, hAsync("road-icon", { key: '1b18e482d8cc3d2975c9cf3c52a42f3ae4660238', name: this.isDustbinVisible ? "delete-forever" : "navigation-add-less", ref: (el) => this.iconCounterLess = el, size: this.size, "data-cy": dataCi, role: "button" })), hAsync("road-input", { key: '01475e769b04aa4080be3e24cf1f16d1651bb5a1', ref: (el) => this.inputElement = el, type: "number", min: this.min.toString(), max: (this.max && this.max.toString()), step: this.step, value: this.value, onRoadChange: this.onRoadChange, onKeyUp: this.checkValue, "data-cy": "road-input-counter", readonly: this.readonly, label: "Quantit\u00E9" }), hAsync("road-button", { key: '4a27e374ce3cee4d1c47a5f921af4b2e2d6fbc53', slot: "append", size: this.size, onClick: this.increase, class: this.rightIconClasses, "data-cy": "road-increase" }, hAsync("road-icon", { key: '3a53a84956795e8576a3e4ba240a17f074d96575', name: "navigation-add-more", size: this.size, role: "button" }))));
|
|
11076
11096
|
}
|
|
11077
11097
|
get el() { return getElement(this); }
|
|
11078
11098
|
static get watchers() { return {
|
|
@@ -11188,11 +11208,11 @@ class Dialog {
|
|
|
11188
11208
|
break;
|
|
11189
11209
|
}
|
|
11190
11210
|
}
|
|
11191
|
-
return (hAsync(Host, { key: '
|
|
11211
|
+
return (hAsync(Host, { key: '2c8db56b9961b0344f525d832351583ddcfbf3b2', class: `dialog ${modalIsOpenClass} ${modalhasClose}`, role: "alertdialog", "aria-modal": "true", tabindex: "-1", "aria-label": "dialogLabel" }, hAsync("div", { key: 'c931f46217f533acf46f70968fe04319f639f7ad', class: "dialog-overlay", onClick: this.hasCloseIcon === true ? this.onClick : undefined, tabindex: "-1" }), hAsync("div", { key: '0b141dde632d78b058263431af0f5d4470f267c5', class: "dialog-modal", role: "document", tabindex: "0" }, hAsync("div", { key: '78ed93fb9251f925bc0f33e43961bd4a656777ab', class: "dialog-content" }, hAsync("header", { key: '5e4bfdd20864ff18f8352536f918d801d338a9d5', class: "dialog-header" }, this.hasCloseIcon
|
|
11192
11212
|
? hAsync("button", { type: "button", class: "dialog-close", onClick: this.onClick, "aria-label": "Close" }, hAsync("road-icon", { icon: navigationClose, "aria-hidden": "true" }))
|
|
11193
|
-
: ''), hAsync("div", { key: '
|
|
11213
|
+
: ''), hAsync("div", { key: '787c2b4a2791f0098424159f1a1f1462973d7f88', class: "dialog-body" }, this.color !== undefined
|
|
11194
11214
|
? hAsync("road-icon", { class: "dialog-icon", part: "dialog-icon", color: this.color, icon: icon, "aria-hidden": "true" })
|
|
11195
|
-
: '', hAsync("h2", { key: '
|
|
11215
|
+
: '', hAsync("h2", { key: '3445750e2edadb33dc2219b72642ff0209b3c1c6', class: "dialog-title" }, this.label), hAsync("p", { key: 'db5324827d724d10a38cb7187dc717fa74a57cc7', class: "dialog-description", id: "dialogDesc" }, this.description)), hAsync("footer", { key: '59ba58e5ab179d493b21f6a2d42b8bc5e4bb04d3', class: "dialog-footer" }, hAsync("slot", { key: 'c4e5b3236e31f94bf0d08c00f4c21161b3d09969' }))))));
|
|
11196
11216
|
}
|
|
11197
11217
|
get el() { return getElement(this); }
|
|
11198
11218
|
static get style() { return RoadDialogStyle0; }
|
|
@@ -11215,7 +11235,7 @@ class Dialog {
|
|
|
11215
11235
|
}; }
|
|
11216
11236
|
}
|
|
11217
11237
|
|
|
11218
|
-
const drawerCss = ":host{--background:var(--road-surface);--color:var(--road-on-surface);--header-icon:var(--road-on-surface);--header-color:var(--road-on-surface);--header-background:var(--road-surface);--header-delimiter:0;--back-chevron-color:var(--road-icon);--max-height:auto;--z-index:10;position:fixed;top:0;left:0;z-index:var(--z-index);display:flex;justify-content:flex-start;width:100%;height:100%;overflow:hidden;font-family:var(--road-font, sans-serif);line-height:1.5;color:var(--color);visibility:hidden !important;opacity:0;transition:opacity 0.15s linear, visibility 0.15s}.drawer-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:block;touch-action:none;cursor:pointer;background:var(--road-overlay)}.drawer-dialog{position:relative;width:100%;pointer-events:none;transition:transform 0.3s ease-out;transform:translateX(-100%)}:host(.drawer-right){justify-content:flex-end}:host(.drawer-right) .drawer-dialog{transform:translateX(100%)}:host(.drawer-bottom){align-items:flex-end}:host(.drawer-bottom) .drawer-dialog{width:100%;max-height:var(--max-height);transform:translateY(100%)}:host(.drawer-bottom) .drawer-content{height:auto}.drawer-content{position:relative;display:flex;flex-direction:column;width:100%;height:100vh;pointer-events:auto;background-color:var(--background);background-clip:padding-box;box-shadow:var(--road-elevation-hight)}.drawer-header{display:flex;flex-shrink:0;align-items:center;justify-content:flex-end;height:3.5rem;color:var(--header-color);background:var(--header-background);border-color:var(--road-grey-300);border-style:solid;border-width:var(--header-delimiter)}.drawer-header road-icon{flex-shrink:0;color:var(--header-icon)}.drawer-footer{padding:var(--road-spacing-05);background-color:var(--road-surface)}.drawer-header-inverse{--header-icon:var(--road-on-primary);--header-color:var(--road-on-primary);--header-background:var(--road-primary-variant);margin-bottom:2.5rem}.drawer-action,.drawer-close{display:flex;align-items:center;justify-content:center;height:3.5rem;padding:0.5rem;font-family:inherit;font-size:0.875rem;color:inherit;cursor:pointer;background:transparent;border:0;appearance:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}.drawer-header:not(.drawer-header-inverse) .drawer-action road-icon{color:var(--back-chevron-color)}.drawer-action~.drawer-title,.drawer-close~.drawer-title{padding-left:0}.drawer-action-left,.drawer-close-left{margin-right:auto}.drawer-title{display:flex;flex-grow:1;align-items:center;justify-content:center;height:3.5rem;padding-left:3.5rem;margin:0;font-size:var(--road-body-medium)}.drawer-body{overflow-y:auto}:host(.drawer-right) .drawer-body,:host(.drawer-left) .drawer-body{height:calc(100vh - 3.5rem)}.drawer-inner{padding:0 1rem 2.5rem}@media (min-width: 768px){.drawer-inner{padding:0 2rem 2.5rem}.drawer-body{padding:0 var(--road-spacing-08) var(--road-spacing-05)}.drawer-footer{padding:var(--road-spacing-05) var(--road-spacing-08)}}:host(.drawer-open){visibility:visible !important;opacity:1}:host(.drawer-open) .drawer-dialog{transform:none}";
|
|
11238
|
+
const drawerCss = ":host{--background:var(--road-surface);--color:var(--road-on-surface);--header-icon:var(--road-on-surface);--header-color:var(--road-on-surface);--header-background:var(--road-surface);--header-delimiter:0;--back-chevron-color:var(--road-icon);--max-height:auto;--z-index:10;position:fixed;top:0;left:0;z-index:var(--z-index);display:flex;justify-content:flex-start;width:100%;height:100%;overflow:hidden;font-family:var(--road-font, sans-serif);line-height:1.5;color:var(--color);visibility:hidden !important;opacity:0;transition:opacity 0.15s linear, visibility 0.15s}.drawer-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:block;touch-action:none;cursor:pointer;background:var(--road-overlay)}.drawer-dialog{position:relative;width:100%;pointer-events:none;transition:transform 0.3s ease-out;transform:translateX(-100%)}:host(.drawer-right){justify-content:flex-end}:host(.drawer-right) .drawer-dialog{transform:translateX(100%)}:host(.drawer-bottom){align-items:flex-end}:host(.drawer-bottom) .drawer-dialog{width:100%;max-height:var(--max-height);transform:translateY(100%)}:host(.drawer-bottom) .drawer-content{height:auto}.drawer-content{position:relative;display:flex;flex-direction:column;width:100%;height:100vh;pointer-events:auto;background-color:var(--background);background-clip:padding-box;box-shadow:var(--road-elevation-hight)}.drawer-header{display:flex;flex-shrink:0;align-items:center;justify-content:flex-end;height:3.5rem;color:var(--header-color);background:var(--header-background);border-color:var(--road-grey-300);border-style:solid;border-width:var(--header-delimiter)}.drawer-header road-icon{flex-shrink:0;color:var(--header-icon)}.drawer-footer{padding:var(--road-spacing-05);background-color:var(--road-surface)}.drawer-header-inverse{--header-icon:var(--road-on-primary);--header-color:var(--road-on-primary);--header-background:var(--road-primary-variant);margin-bottom:2.5rem}.drawer-action,.drawer-close{display:flex;align-items:center;justify-content:center;height:3.5rem;padding:0.5rem;font-family:inherit;font-size:0.875rem;color:inherit;cursor:pointer;background:transparent;border:0;appearance:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}.drawer-header:not(.drawer-header-inverse) .drawer-action road-icon{color:var(--back-chevron-color)}.drawer-action~.drawer-title,.drawer-close~.drawer-title{padding-left:0}.drawer-action-left,.drawer-close-left{margin-right:auto}.drawer-title{display:flex;flex-grow:1;align-items:center;justify-content:center;height:3.5rem;padding-left:3.5rem;margin:0;font-size:var(--road-body-medium)}.drawer-body{overflow-y:auto;padding:0 var(--road-spacing-05) var(--road-spacing-05)}.drawer-body.remove-padding{padding:0}:host(.drawer-right) .drawer-body,:host(.drawer-left) .drawer-body{height:calc(100vh - 3.5rem)}.drawer-inner{padding:0 1rem 2.5rem}@media (min-width: 768px){.drawer-inner{padding:0 2rem 2.5rem}.drawer-body{padding:0 var(--road-spacing-08) var(--road-spacing-05)}.drawer-body.remove-padding{padding:0}.drawer-footer{padding:var(--road-spacing-05) var(--road-spacing-08)}}:host(.drawer-open){visibility:visible !important;opacity:1}:host(.drawer-open) .drawer-dialog{transform:none}";
|
|
11219
11239
|
var RoadDrawerStyle0 = drawerCss;
|
|
11220
11240
|
|
|
11221
11241
|
/**
|
|
@@ -11237,6 +11257,10 @@ class Drawer {
|
|
|
11237
11257
|
* Set isOpen property to true to open the drawer
|
|
11238
11258
|
*/
|
|
11239
11259
|
this.isOpen = false;
|
|
11260
|
+
/**
|
|
11261
|
+
* Set removePadding property to true to remove padding for drawer body
|
|
11262
|
+
*/
|
|
11263
|
+
this.removePadding = false;
|
|
11240
11264
|
/**
|
|
11241
11265
|
* position of the drawer. e.g. left, right, bottom
|
|
11242
11266
|
*/
|
|
@@ -11342,21 +11366,19 @@ class Drawer {
|
|
|
11342
11366
|
item.addEventListener('click', () => this.close());
|
|
11343
11367
|
});
|
|
11344
11368
|
}
|
|
11345
|
-
hasFooterContent() {
|
|
11346
|
-
const footerSlot = this.el.querySelector('[slot="footer"]');
|
|
11347
|
-
return footerSlot !== null && footerSlot.childElementCount > 0;
|
|
11348
|
-
}
|
|
11349
11369
|
render() {
|
|
11370
|
+
var _a, _b, _c;
|
|
11350
11371
|
const drawerIsOpenClass = this.isOpen ? 'drawer-open' : '';
|
|
11372
|
+
const removePaddingClass = this.removePadding ? 'remove-padding' : '';
|
|
11351
11373
|
const inverseHeaderClass = this.hasInverseHeader ? 'drawer-header-inverse' : '';
|
|
11352
|
-
const ariaLabel = this.ariaLabel !==
|
|
11353
|
-
const ariaLabelBack = this.ariaLabelBack !==
|
|
11354
|
-
const ariaLabelClose = this.ariaLabelClose !==
|
|
11355
|
-
const drawerDelimiterClass = this.drawerTitle
|
|
11356
|
-
const backIconElement = this.hasBackIcon ? hAsync("button", { type: "button", class: "drawer-action", "aria-label":
|
|
11357
|
-
const closeIconElement = this.hasCloseIcon ? hAsync("button", { type: "button", class: "drawer-close", onClick: this.onClick, "aria-label":
|
|
11358
|
-
const drawerWidthValue = this.position === 'bottom' ? '100%' : this.drawerWidth
|
|
11359
|
-
return (hAsync(Host, { key: '
|
|
11374
|
+
const ariaLabel = (_a = this.ariaLabel) !== null && _a !== void 0 ? _a : 'drawer';
|
|
11375
|
+
const ariaLabelBack = (_b = this.ariaLabelBack) !== null && _b !== void 0 ? _b : 'Back';
|
|
11376
|
+
const ariaLabelClose = (_c = this.ariaLabelClose) !== null && _c !== void 0 ? _c : 'Close';
|
|
11377
|
+
const drawerDelimiterClass = this.drawerTitle && !this.hasInverseHeader ? 'drawer-delimiter' : '';
|
|
11378
|
+
const backIconElement = this.hasBackIcon ? (hAsync("button", { type: "button", class: "drawer-action", "aria-label": ariaLabelBack, onClick: this.onClickBack }, hAsync("road-icon", { icon: navigationChevron, rotate: "180" }), this.backText)) : null;
|
|
11379
|
+
const closeIconElement = this.hasCloseIcon ? (hAsync("button", { type: "button", class: "drawer-close", onClick: this.onClick, "aria-label": ariaLabelClose }, hAsync("road-icon", { icon: navigationClose, "aria-hidden": "true" }))) : null;
|
|
11380
|
+
const drawerWidthValue = this.position === 'bottom' ? '100%' : `${this.drawerWidth}px`;
|
|
11381
|
+
return (hAsync(Host, { key: 'd9a65c4b3b7943dc6cdfa4daba84533e718a38a2', class: `${drawerIsOpenClass} drawer-${this.position}`, tabindex: "0", role: "dialog", "aria-label": ariaLabel }, hAsync("div", { key: 'cdd0a950c739328870c8e723a6daf69c8077e7ae', class: "drawer-overlay", onClick: this.onClick, tabindex: "-1" }), hAsync("div", { key: 'b23bff3a5d546f27c8286ee4b94b27813375a65e', class: "drawer-dialog", style: { maxWidth: drawerWidthValue }, role: "document", tabindex: "0" }, hAsync("div", { key: '71440a2eee17b35266a64468e0de497e96f90553', class: "drawer-content" }, hAsync("header", { key: '6c351edec21172afa7ddef62d6b3043becebde35', class: `drawer-header ${inverseHeaderClass} ${drawerDelimiterClass}` }, backIconElement, this.drawerTitle ? (hAsync("h2", { class: "drawer-title" }, this.drawerTitle)) : (hAsync("div", { class: "drawer-title" }, hAsync("slot", { name: "title" }))), closeIconElement), hAsync("div", { key: '81298d6f43743beacc945c15db1f645f23ba87b1', class: `drawer-body ${removePaddingClass}` }, hAsync("slot", { key: 'b9ecd6bad23c1707c4204084170f54d1944b2d78' })), hAsync("footer", { key: '21f03c9d7b70b62892f088c026e5df0b255e5d4e', class: "drawer-footer" }, hAsync("slot", { key: 'aa1ff90c55ff00b99733c2955542f0a173cd6f2b', name: "footer" }))))));
|
|
11360
11382
|
}
|
|
11361
11383
|
get el() { return getElement(this); }
|
|
11362
11384
|
static get watchers() { return {
|
|
@@ -11368,6 +11390,7 @@ class Drawer {
|
|
|
11368
11390
|
"$tagName$": "road-drawer",
|
|
11369
11391
|
"$members$": {
|
|
11370
11392
|
"isOpen": [1028, "is-open"],
|
|
11393
|
+
"removePadding": [1028, "remove-padding"],
|
|
11371
11394
|
"position": [1],
|
|
11372
11395
|
"drawerWidth": [2, "drawer-width"],
|
|
11373
11396
|
"hasInverseHeader": [4, "has-inverse-header"],
|
|
@@ -11388,7 +11411,7 @@ class Drawer {
|
|
|
11388
11411
|
}; }
|
|
11389
11412
|
}
|
|
11390
11413
|
|
|
11391
|
-
const dropdownCss = ":host{--margin-top:0.5rem;display:block;width:max-content}.dropdown{position:relative;font-family:var(--road-font)}.dropdown summary{display:block;background-color:var(--road-surface);border-radius:0.25rem}.dropdown summary:focus,.dropdown summary.focus-visible,.dropdown summary:focus-within{background:var(--road-surface-inverse)}.dropdown summary::-webkit-details-marker{display:none}.dropdown-button{position:relative;display:flex;align-items:center;justify-content:center;width:3.5rem;height:3.5rem;cursor:pointer;border-radius:0.25rem}.dropdown-medium-button{width:2.5rem;height:2.5rem}.position-right{display:flex;justify-content:flex-end}.bg-white{background:var(--road-grey-000)}.dropdown-button-icon{width:2.5rem;height:2.5rem}.dropdown-medium-button .dropdown-button-icon{width:1.75rem;height:1.75rem}.dropdown[open] .dropdown-menu{transform:scaleY(1)}.dropdown[open] .dropdown-menu.direction-top{position:absolute;bottom:0;left:auto;transform:translate3d(0, -56px, 0);will-change:transform}.dropdown-menu{position:absolute;z-index:
|
|
11414
|
+
const dropdownCss = ":host{--margin-top:0.5rem;display:block;width:max-content}.dropdown{position:relative;font-family:var(--road-font)}.dropdown summary{display:block;background-color:var(--road-surface);border-radius:0.25rem}.dropdown summary:focus,.dropdown summary.focus-visible,.dropdown summary:focus-within{background:var(--road-surface-inverse)}.dropdown summary::-webkit-details-marker{display:none}.dropdown-button{position:relative;display:flex;align-items:center;justify-content:center;width:3.5rem;height:3.5rem;cursor:pointer;border-radius:0.25rem}.dropdown-medium-button{width:2.5rem;height:2.5rem}.position-right{display:flex;justify-content:flex-end}.bg-white{background:var(--road-grey-000)}.dropdown-button-icon{width:2.5rem;height:2.5rem}.dropdown-medium-button .dropdown-button-icon{width:1.75rem;height:1.75rem}.dropdown[open] .dropdown-menu{transform:scaleY(1)}.dropdown[open] .dropdown-menu.direction-top{position:absolute;bottom:0;left:auto;transform:translate3d(0, -56px, 0);will-change:transform}.dropdown-menu{position:absolute;z-index:2;display:flex;flex-direction:column;width:100%;min-width:16.875rem;padding:0.5rem 0;color:var(--road-on-surface);background:var(--road-surface);border:1px solid;border-color:var(--road-outline-weak);border-radius:0.25rem;box-shadow:var(--road-elevation-low);transition:transform 0.2s ease-in-out;transform:scaleY(0);transform-origin:0 0}.dropdown-left{left:0}.dropdown-right{right:0}.dropdown-item{min-height:40px;padding:0 1rem;font-size:var(--road-body-medium);line-height:1.5;color:var(--road-on-surface);text-align:left;text-decoration:none;cursor:pointer;background:var(--road-surface);border:none}.dropdown-item-border{border-color:var(--road-outline-weak);border-bottom:1px solid}.dropdown-item:hover{background:var(--road-surface-inverse)}.dropdown-item.focus-visible{outline:auto}";
|
|
11392
11415
|
var RoadDropdownStyle0 = dropdownCss;
|
|
11393
11416
|
|
|
11394
11417
|
class Dropdown$1 {
|
|
@@ -11416,7 +11439,7 @@ class Dropdown$1 {
|
|
|
11416
11439
|
const positionClass = this.position ? `position-${this.position}` : '';
|
|
11417
11440
|
const dropdownClass = this.position ? `dropdown-${this.position}` : '';
|
|
11418
11441
|
const directionClass = this.direction ? `direction-${this.direction}` : '';
|
|
11419
|
-
return (hAsync("details", { key: '
|
|
11442
|
+
return (hAsync("details", { key: '63664ef857943b6aeccfa742262132ccd0f0ea3d', class: "dropdown", open: this.isOpen }, hAsync("summary", { key: '5286cc9ed3f2d928350bafb6e8420faa34b25b33', "aria-expanded": this.isOpen.toString(), tabindex: "0", role: "button", onClick: this.onClick, "tab-index": "0" }, hAsync("div", { key: '5c8849bea5ed2a5bcee7432d5a59597c490b1bb2', class: `d-flex ${positionClass}` }, hAsync("div", { key: '0e5ca32d720b1230083469d39c0a032ae345abc3', class: `${isLightButtonDropDown} ${isMediumButtonDropDown}` }, hAsync("road-icon", { key: 'd65534d956a28d5238f38fdea121491ff7923900', name: "navigation-more", class: "dropdown-button-icon", "aria-hidden": "true" })))), hAsync("div", { key: '9e9a77d0c43b5770b443967c9e828d758d55dd3f', class: `dropdown-menu ${directionClass} ${dropdownClass}` }, hAsync("slot", { key: 'c5693e782f0a05dfd5f62a7d96eb2418e619e2f9', name: "list" }))));
|
|
11420
11443
|
}
|
|
11421
11444
|
get el() { return getElement(this); }
|
|
11422
11445
|
static get style() { return RoadDropdownStyle0; }
|
|
@@ -11472,7 +11495,7 @@ class Dropdown {
|
|
|
11472
11495
|
this.isOpen = false;
|
|
11473
11496
|
}
|
|
11474
11497
|
render() {
|
|
11475
|
-
return (hAsync("details", { key: '
|
|
11498
|
+
return (hAsync("details", { key: '1ea3c85ea39041b51cd7b87e5e3bf8457d04d8d2', class: "dropdown", open: this.isOpen }, hAsync("summary", { key: '31722222765df7c7fb7716f1d28c719e71e3c50b', "aria-expanded": `${this.isOpen}`, tabindex: "0", role: "button", onClick: this.onClick }, hAsync("div", { key: 'e395e588854018e3aa01a535df994281a17e76e7', class: `d-flex` }, hAsync("div", { key: '8bb2ba7393ad71a0fb01bfaae2626cddff73b974' }, hAsync("road-avatar", { key: '6d05a101ce8015714a85fea57c583f8cf20e8ce4' }, hAsync("slot", { key: 'c1a1408aa8e9eafedb2f3cb1791dcc02a2aba504', name: "avatar" }))))), hAsync("div", { key: '31b4b8e31798cdbba1f144cd7c75417e5aed1dcc', class: `dropdown-menu` }, hAsync("div", { key: 'daaa7e6156bd9e4cf093dcd895aabc58a5a75835', class: "profil-item" }, hAsync("road-avatar", { key: 'efe9b628482a2f27c8224e5a836677e55aab0a53', size: "sm" }, hAsync("slot", { key: 'b9def88d2732c0ff87353e163437f303bf921175', name: "avatarItem" })), hAsync("div", { key: 'de3f1acfabff5c15cb409ff32c9f3d03ff80b256', class: "profil-item-info" }, hAsync("span", { key: '01909017ffda821626024a5db9c77b5a5fa79988', class: "profil-item-info-name" }, hAsync("slot", { key: 'e7ecab682533008f8aa41deb00a30a80ba027c09', name: "name" })), hAsync("road-label", { key: 'e23ae331f406c69d5702055a31f8445518983fbc' }, hAsync("slot", { key: '4ee00896125440f2f3a904516052edecc3ccaefc', name: "email" })))), hAsync("slot", { key: '51a8603e7be8c8df634d69fe74a34845b75aff2f', name: "list" }))));
|
|
11476
11499
|
}
|
|
11477
11500
|
get el() { return getElement(this); }
|
|
11478
11501
|
static get style() { return RoadProfilDropdownStyle0; }
|
|
@@ -11536,7 +11559,7 @@ class Duration {
|
|
|
11536
11559
|
this.isOpen = false;
|
|
11537
11560
|
}
|
|
11538
11561
|
render() {
|
|
11539
|
-
return (hAsync("road-drawer", { key: '
|
|
11562
|
+
return (hAsync("road-drawer", { key: '18883acabae49df9f9e957e673d118356011d28c', "is-open": this.isOpen, position: "bottom", "drawer-title": this.header }, hAsync("road-grid", { key: '7e0e1b64d1748880df6eb12b06dbd14a6eba8c70' }, hAsync("road-row", { key: '02e407a9f1a56f8c8fc8a48751d95848c7fc5c4f', class: "duration-values" }, Array(Math.floor((this.max - this.min) / this.step) + 1).fill(this.min).map(((item, index) => (item + index * this.step))).map(item => hAsync("road-col", { class: "col-3 col-md-2" }, hAsync("road-card", { button: true, value: item }, hAsync("road-label", null, Math.floor(item / 60).toLocaleString("en-GB", { minimumIntegerDigits: 2, useGrouping: false }), ":", (item % 60).toLocaleString("en-GB", { minimumIntegerDigits: 2, useGrouping: false })))))))));
|
|
11540
11563
|
}
|
|
11541
11564
|
get el() { return getElement(this); }
|
|
11542
11565
|
static get style() { return RoadDurationStyle0; }
|
|
@@ -11582,7 +11605,7 @@ class Flap {
|
|
|
11582
11605
|
}
|
|
11583
11606
|
render() {
|
|
11584
11607
|
const colorClass = this.filled ? `flap-${this.color}-filled` : `flap-${this.color}`;
|
|
11585
|
-
return (hAsync(Host, { key: '
|
|
11608
|
+
return (hAsync(Host, { key: '3070a00a39088bc22f27b1e97a4aa635bc27c34d', class: `${colorClass} flap-${this.size}` }, hAsync("slot", { key: 'd2c0af9309ce6200b5055a152f26cea71e3c859f' })));
|
|
11586
11609
|
}
|
|
11587
11610
|
static get style() { return RoadFlapStyle0; }
|
|
11588
11611
|
static get cmpMeta() { return {
|
|
@@ -11628,7 +11651,7 @@ class GlobalNavigation {
|
|
|
11628
11651
|
this.selectedTabChanged();
|
|
11629
11652
|
}
|
|
11630
11653
|
render() {
|
|
11631
|
-
return (hAsync(Host, { key: '
|
|
11654
|
+
return (hAsync(Host, { key: 'b9dc9e434336aac0badabc03361dee0536ca1382', role: "application" }, hAsync("slot", { key: 'b4d9e5ec254a413489b81b720bd20f5ce18d9da4' })));
|
|
11632
11655
|
}
|
|
11633
11656
|
static get watchers() { return {
|
|
11634
11657
|
"selectedTab": ["selectedTabChanged"]
|
|
@@ -11776,7 +11799,7 @@ class GlobalNavigationV2 {
|
|
|
11776
11799
|
this.selectedTabChanged();
|
|
11777
11800
|
}
|
|
11778
11801
|
render() {
|
|
11779
|
-
return (hAsync(Host, { key: '
|
|
11802
|
+
return (hAsync(Host, { key: 'c9d5417b5d92177482a620e7baa5879fa7d04731', role: "application" }, hAsync("slot", { key: '6d189aef035de7d1816328f150e3402582b97bd7' })));
|
|
11780
11803
|
}
|
|
11781
11804
|
get host() { return getElement(this); }
|
|
11782
11805
|
static get watchers() { return {
|
|
@@ -11806,7 +11829,7 @@ class Grid {
|
|
|
11806
11829
|
registerInstance(this, hostRef);
|
|
11807
11830
|
}
|
|
11808
11831
|
render() {
|
|
11809
|
-
return (hAsync("slot", { key: '
|
|
11832
|
+
return (hAsync("slot", { key: 'afda2c7ec410ce0c1c06b12091a1416394a3b506' }));
|
|
11810
11833
|
}
|
|
11811
11834
|
static get style() { return RoadGridStyle0; }
|
|
11812
11835
|
static get cmpMeta() { return {
|
|
@@ -11909,7 +11932,7 @@ class Icon {
|
|
|
11909
11932
|
const rotateClass = this.rotate ? `icon-rotate-${this.rotate}` : '';
|
|
11910
11933
|
// Ajouter une classe "default" si aucune des valeurs n'est définie
|
|
11911
11934
|
const classes = [colorClass, sizeClass, rotateClass].filter(Boolean).join(' ');
|
|
11912
|
-
return (hAsync(Host, { key: '
|
|
11935
|
+
return (hAsync(Host, { key: '1da1702db901bcfb80638d9ae30a8c5cc4a2ac26', class: classes, "aria-hidden": "true" }, this.svgContent !== ''
|
|
11913
11936
|
? hAsync("div", { class: "icon-inner", innerHTML: this.svgContent })
|
|
11914
11937
|
: hAsync("div", { class: "icon-inner" })));
|
|
11915
11938
|
}
|
|
@@ -12031,7 +12054,7 @@ class Illustration {
|
|
|
12031
12054
|
render() {
|
|
12032
12055
|
const sizeClass = this.size !== undefined ? `illustration-${this.size}` : '';
|
|
12033
12056
|
const rotateClass = this.rotate !== undefined ? `illustration-rotate-${this.rotate}` : '';
|
|
12034
|
-
return (hAsync(Host, { key: '
|
|
12057
|
+
return (hAsync(Host, { key: '0c1d3f02b235f7f69dbdca9969fd3a637929e0bd', class: `${sizeClass} ${rotateClass}`, "aria-hidden": "true", role: "img" }, ((this.illustrationSvgContent !== '')
|
|
12035
12058
|
? hAsync("div", { class: "icon-inner", innerHTML: this.illustrationSvgContent })
|
|
12036
12059
|
: hAsync("div", { class: "icon-inner" }))));
|
|
12037
12060
|
}
|
|
@@ -12134,7 +12157,7 @@ class Img {
|
|
|
12134
12157
|
}
|
|
12135
12158
|
render() {
|
|
12136
12159
|
const placeholder = this.loadSrc !== undefined ? '' : 'placeholder';
|
|
12137
|
-
return (hAsync(Host, { key: '
|
|
12160
|
+
return (hAsync(Host, { key: 'f53be3ccdaadcae1091cab8e04678f1e709d30cd', class: placeholder }, hAsync("img", { key: '2e9b71fd42e3eff11402a195a93d2b93cc7446e6', class: "native-img", decoding: "async", src: this.loadSrc, alt: this.alt, onLoad: this.onLoad, onError: this.loadError, part: "image" })));
|
|
12138
12161
|
}
|
|
12139
12162
|
get el() { return getElement(this); }
|
|
12140
12163
|
static get watchers() { return {
|
|
@@ -29528,7 +29551,7 @@ class Input {
|
|
|
29528
29551
|
const hasValueClass = this.value !== '' && this.value !== null ? 'has-value' : '';
|
|
29529
29552
|
const lessLabelClass = this.label !== '' ? '' : 'less-label';
|
|
29530
29553
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
29531
|
-
return (hAsync(Host, { key: '
|
|
29554
|
+
return (hAsync(Host, { key: '9251985e0b07d2b85f319d30bd6e4cc46cf78147', "aria-disabled": this.disabled ? 'true' : null, class: this.sizes && `input-${this.sizes}`, value: value, blockdecimal: this.blockdecimal }, hAsync("input", { key: 'b0d87d5bde0d232615d200c1b4c611a997931595', class: `form-control ${hasValueClass} ${isInvalidClass} ${lessLabelClass}`, id: this.inputId, "aria-disabled": this.disabled ? 'true' : null, "aria-labelledby": labelId, disabled: this.disabled, autoCapitalize: this.autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, enterKeyHint: this.enterkeyhint, autoFocus: this.autofocus, inputMode: this.inputmode, min: this.min, max: this.max, minLength: this.minlength, maxLength: this.maxlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, spellcheck: this.spellcheck, step: this.step, size: this.size, type: this.type, value: value, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.type === 'number' ? (event) => this.handleKeyDown(event) : undefined, onKeyUp: (event) => this.enforceMinMax(event.target), "data-cy": 'road-input' }), hAsync("label", { key: '910506a3f147908dd802d645c9d985862cf4126b', class: "form-label", id: labelId, htmlFor: this.inputId }, this.label), this.error && this.error !== '' && hAsync("p", { key: 'feb2985f978e936bcde5328233a433eda6f2d16c', class: "invalid-feedback" }, hAsync("road-icon", { key: 'f5d8a3c8edc1ccac2d5b9f9d6b2bcc3f3f7bc283', slot: "start", name: "alert-error-solid", "aria-hidden": "true", size: "sm" }), this.error), this.helper && this.helper !== '' && hAsync("p", { key: '3e11fd43dc68951c17d3ab267bc4a25316e1efce', class: "helper" }, this.helper), this.type && this.type == 'password' && hAsync("slot", { key: '0a2df2f8c92a52d18b6d1063765eaf47809a60b3', name: "checklistPassword" })));
|
|
29532
29555
|
}
|
|
29533
29556
|
static get watchers() { return {
|
|
29534
29557
|
"debounce": ["debounceChanged"],
|
|
@@ -29615,7 +29638,7 @@ class InputGroup {
|
|
|
29615
29638
|
? `size-${this.el.querySelector('road-input').sizes}`
|
|
29616
29639
|
: '';
|
|
29617
29640
|
const disabledClass = this.disabled ? 'is-disabled' : '';
|
|
29618
|
-
return (hAsync("div", { key: '
|
|
29641
|
+
return (hAsync("div", { key: '1dc07a13ad76efc4b8ab8e2ce83b1c90ca283459', class: `input-group ${errorClass} ${disabledClass} ${sizeClass}` }, hAsync("div", { key: '1c44dad07b031661812715bff42dafcb9eba22a4', class: "input-group-prepend" }, hAsync("slot", { key: 'ecc99ec7f39e7ecd3f3ee229957e0f97ae63467a', name: "prepend" })), hAsync("slot", { key: '2026617a9bdf3c6b31fa4492dd14d56e635fe464' }), hAsync("div", { key: '4e134a2e344f345d021e0ec1d3100da88dd17a88', class: "input-group-append" }, hAsync("slot", { key: '1cec89a371a53e753813fc61f388fee0108ae695', name: "append" }))));
|
|
29619
29642
|
}
|
|
29620
29643
|
get el() { return getElement(this); }
|
|
29621
29644
|
static get watchers() { return {
|
|
@@ -29695,13 +29718,13 @@ class Item {
|
|
|
29695
29718
|
target,
|
|
29696
29719
|
};
|
|
29697
29720
|
const showDetail = detail !== undefined && detail;
|
|
29698
|
-
return (hAsync(Host, { key: '
|
|
29721
|
+
return (hAsync(Host, { key: '9fb4b35e594ec2393232ad0a9403e279e2e2889c', "aria-disabled": disabled ? 'true' : null, class: {
|
|
29699
29722
|
[`item-lines-${lines}`]: lines !== undefined,
|
|
29700
|
-
} }, hAsync(TagType, Object.assign({ key: '
|
|
29723
|
+
} }, hAsync(TagType, Object.assign({ key: '9fba47364f496d51e09e3b2a5a92dd00ef71ff87' }, attrs, { class: {
|
|
29701
29724
|
'item-native': true,
|
|
29702
29725
|
'item-active': this.active,
|
|
29703
29726
|
[`layout-${layout}`]: layout !== undefined,
|
|
29704
|
-
}, part: "native", disabled: disabled }), hAsync("slot", { key: '
|
|
29727
|
+
}, part: "native", disabled: disabled }), hAsync("slot", { key: 'fe656d0fa4a1f518f6ab7a43524e244d6eb37d30', name: "start" }), hAsync("div", { key: 'd1c19e1d0a10b578799970249bf4e40cdddd9dc3', class: "item-inner" }, hAsync("div", { key: '3523d2bd743dc2f16cc1dc2de844a3ab3be93ff2', class: "input-wrapper" }, hAsync("slot", { key: 'a7da0e4dcf42fc54130eaafa1a08d16315b52d54' }), hAsync("div", { key: 'd63ad621b6f43da35bec1a270ceacd40876b4d3e', class: "input-wrapper-info" }, hAsync("road-label", { key: '14763d79d648cfbbb21136998287411ab3231cbc', class: "input-wrapper-info-title" }, this.titleItem), hAsync("p", { key: '5048f0bab07eb191b4ba3d8655a7890a45926541', class: "input-wrapper-info-text" }, this.text))), hAsync("slot", { key: 'ef5cef7e326421ea28f0420a81a1773b74adc8bf', name: "end" }), showDetail && hAsync("road-icon", { key: 'ecb61fe5b2cd5e3ba3ba8b30427337cbde78fd78', icon: detailIcon, lazy: false, class: "item-detail-icon" })))));
|
|
29705
29728
|
}
|
|
29706
29729
|
get el() { return getElement(this); }
|
|
29707
29730
|
static get style() { return RoadItemStyle0; }
|
|
@@ -29742,7 +29765,7 @@ class Label {
|
|
|
29742
29765
|
registerInstance(this, hostRef);
|
|
29743
29766
|
}
|
|
29744
29767
|
render() {
|
|
29745
|
-
return (hAsync("slot", { key: '
|
|
29768
|
+
return (hAsync("slot", { key: '3ba99679bcd840c743cbc724843909bd267d0ab2' }));
|
|
29746
29769
|
}
|
|
29747
29770
|
static get style() { return RoadLabelStyle0; }
|
|
29748
29771
|
static get cmpMeta() { return {
|
|
@@ -29767,9 +29790,9 @@ class List {
|
|
|
29767
29790
|
}
|
|
29768
29791
|
render() {
|
|
29769
29792
|
const { lines } = this;
|
|
29770
|
-
return (hAsync(Host, { key: '
|
|
29793
|
+
return (hAsync(Host, { key: 'ddd543051e3de681b5672d7ab87ebe742858da9c', class: {
|
|
29771
29794
|
[`list-lines-${lines}`]: lines !== undefined,
|
|
29772
|
-
} }, hAsync("slot", { key: '
|
|
29795
|
+
} }, hAsync("slot", { key: '56e04b9869dc48d1011e422c57ec2578e61301c6' })));
|
|
29773
29796
|
}
|
|
29774
29797
|
static get style() { return RoadListStyle0; }
|
|
29775
29798
|
static get cmpMeta() { return {
|
|
@@ -29854,7 +29877,7 @@ class Modal {
|
|
|
29854
29877
|
const modalIsOpenClass = this.isOpen ? 'modal-open' : '';
|
|
29855
29878
|
const inverseHeaderClass = this.hasInverseHeader ? 'modal-header-inverse' : '';
|
|
29856
29879
|
const closeIconElement = this.hasCloseIcon ? hAsync("button", { type: "button", class: "modal-close", onClick: this.onClick, "aria-label": "Close" }, hAsync("road-icon", { icon: navigationClose, "aria-hidden": "true" })) : '';
|
|
29857
|
-
return (hAsync(Host, { key: '
|
|
29880
|
+
return (hAsync(Host, { key: 'b87d292936b3298bd9e0fef68931b1197d89990f', class: `modal ${modalIsOpenClass}`, tabindex: "-1", role: "dialog", "aria-label": "modal" }, hAsync("div", { key: '9c9ce64aca4d7e856b1a36de791aebd6b7b7affb', class: "modal-overlay", onClick: this.onClick, tabindex: "-1" }), hAsync("div", { key: '9afc412d8a8f819d265d2d9102c1c96c14314816', class: "modal-dialog", style: { maxWidth: `${this.maxWidth}px` }, role: "document", tabindex: "0" }, hAsync("div", { key: '3ed271357372e1e6306280c7eaa7283ac2336ab3', class: "modal-content" }, hAsync("header", { key: '806e9a7258847239b31b89576213470e04b2c03d', class: `modal-header ${inverseHeaderClass}` }, hAsync("h2", { key: 'aca390c8fbb825c385d43e667f9563a1204eafcb', class: "modal-title" }, this.modalTitle), closeIconElement), hAsync("div", { key: '000d132ec44dff846b4cc7d55039ded734f7db4c', class: "modal-body" }, hAsync("slot", { key: '87025f81c5fd3498e38656d96772ba495b34f66e' }))))));
|
|
29858
29881
|
}
|
|
29859
29882
|
get el() { return getElement(this); }
|
|
29860
29883
|
static get style() { return RoadModalStyle0; }
|
|
@@ -29905,7 +29928,7 @@ class Navbar {
|
|
|
29905
29928
|
this.selectedTabChanged();
|
|
29906
29929
|
}
|
|
29907
29930
|
render() {
|
|
29908
|
-
return (hAsync(Host, { key: '
|
|
29931
|
+
return (hAsync(Host, { key: '1413fa96200fad5a83abd97f951c46b6a6a25777', role: "menubar" }, hAsync("slot", { key: 'c6f91f0af00788a5708cb95f44789938c7d6eeda' })));
|
|
29909
29932
|
}
|
|
29910
29933
|
static get watchers() { return {
|
|
29911
29934
|
"selectedTab": ["selectedTabChanged"]
|
|
@@ -29991,11 +30014,11 @@ class NavbarItem$1 {
|
|
|
29991
30014
|
rel,
|
|
29992
30015
|
target,
|
|
29993
30016
|
};
|
|
29994
|
-
return (hAsync(Host, { key: '
|
|
30017
|
+
return (hAsync(Host, { key: '8d13f1295c10b09012ee6f0c3a683c44ea9575de', onClick: this.onClick, onKeyup: this.onKeyUp, role: "menuitem", tabindex: "0", "aria-selected": selected ? 'true' : null, id: tab !== undefined ? `navbar-item-${tab}` : null, disabled: disabled, class: {
|
|
29995
30018
|
'navbar-item': true,
|
|
29996
30019
|
'tab-selected': selected,
|
|
29997
30020
|
'tab-disabled': disabled,
|
|
29998
|
-
} }, hAsync("a", Object.assign({ key: '
|
|
30021
|
+
} }, hAsync("a", Object.assign({ key: '3053f87c13f67102e2b3e10c9f1e536a083fdf3e' }, attrs, { tabIndex: -1, class: "button-native", part: "native" }), hAsync("span", { key: '74b5de95c1cbcaa1f5bef7dded2e8949134241b5', class: "button-inner" }, hAsync("slot", { key: '84f6e5bf2ba906fdd7356dce268a7e7d8d399bff' })))));
|
|
29999
30022
|
}
|
|
30000
30023
|
get el() { return getElement(this); }
|
|
30001
30024
|
static get watchers() { return {
|
|
@@ -30088,11 +30111,11 @@ class NavbarItem {
|
|
|
30088
30111
|
rel,
|
|
30089
30112
|
target,
|
|
30090
30113
|
};
|
|
30091
|
-
return (hAsync(Host, { key: '
|
|
30114
|
+
return (hAsync(Host, { key: '191e295ae457ff383a61caf39b2b14b361dfd208', onClick: this.onClick, onKeyup: this.onKeyUp, role: "menuitem", tabindex: "0", "aria-selected": selected ? 'true' : null, id: tab !== undefined ? `navbar-item-${tab}` : null, disabled: disabled, class: {
|
|
30092
30115
|
'navbar-item': true,
|
|
30093
30116
|
'tab-selected': selected,
|
|
30094
30117
|
'tab-disabled': disabled,
|
|
30095
|
-
} }, hAsync("a", Object.assign({ key: '
|
|
30118
|
+
} }, hAsync("a", Object.assign({ key: '445f29f9ba3534f1b4c02861ea4ac3768cc48b0c' }, attrs, { tabIndex: -1, class: "button-native", part: "native" }), hAsync("span", { key: '3d7a3ac9b15cef609ab6402ed35b030830e03dd8', class: "button-inner" }, hAsync("slot", { key: '059d10fdd31ed3a4e8caecaa62b9aacd4483883f' })))));
|
|
30096
30119
|
}
|
|
30097
30120
|
get el() { return getElement(this); }
|
|
30098
30121
|
static get watchers() { return {
|
|
@@ -30151,7 +30174,7 @@ class NavbarV2 {
|
|
|
30151
30174
|
}
|
|
30152
30175
|
render() {
|
|
30153
30176
|
const compactClass = this.compact ? 'compact' : '';
|
|
30154
|
-
return (hAsync(Host, { key: '
|
|
30177
|
+
return (hAsync(Host, { key: 'e4fe4a407edcf036a5f3da534cc88eb4b863ab71', role: "menubar", class: `${compactClass}` }, hAsync("slot", { key: 'ef7df2d2775c533592267b1b420e522e23836d7e' })));
|
|
30155
30178
|
}
|
|
30156
30179
|
static get watchers() { return {
|
|
30157
30180
|
"selectedTab": ["selectedTabChanged"]
|
|
@@ -30274,10 +30297,10 @@ class PlateNumber {
|
|
|
30274
30297
|
render() {
|
|
30275
30298
|
const value = this.getValue();
|
|
30276
30299
|
const motorbikeClass = this.motorbike ? 'motorbike-plate' : '';
|
|
30277
|
-
return (hAsync("road-input-group", { key: '
|
|
30300
|
+
return (hAsync("road-input-group", { key: 'd99ec720113a121c58794385a2a697459cc4e0eb', class: `plate-number plate-number-${this.country.toLowerCase()} ${motorbikeClass}` }, hAsync("label", { key: '559c8428a6403ee087bc219b6027b12a48c658d8', slot: "prepend", class: "input-group-prepend" }, hAsync("div", { key: '8483940a622fb54e8bc29dfeaf3ade7aaeeb0e8c', class: "plate-number-start" }, hAsync("road-icon", { key: 'ba60f444919f5b6221fe4d910ced4bec521e4101', class: "plate-number-icon", icon: licensePlateStarEu }), hAsync("div", { key: '095d70b607191a292c5857559566954122c5081c', class: "plate-number-location", "aria-label": this.country, role: "img" }, this.countries
|
|
30278
30301
|
.filter(item => item.country === this.country)[0].letter))), this.motorbike
|
|
30279
30302
|
? (hAsync("textarea", { class: "form-control plate-number-input mb-0", disabled: this.disabled, placeholder: this.placeholder != null ? this.placeholder : this.countries.filter(item => item.country === this.country)[0].placeholder, readOnly: this.readonly, maxlength: "9", rows: 2, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus }))
|
|
30280
|
-
: (hAsync("input", { class: "plate-number-input mb-0", disabled: this.disabled, placeholder: this.placeholder != null ? this.placeholder : this.countries.filter(item => item.country === this.country)[0].placeholder, readOnly: this.readonly, value: value, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus })), hAsync("label", { key: '
|
|
30303
|
+
: (hAsync("input", { class: "plate-number-input mb-0", disabled: this.disabled, placeholder: this.placeholder != null ? this.placeholder : this.countries.filter(item => item.country === this.country)[0].placeholder, readOnly: this.readonly, value: value, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus })), hAsync("label", { key: '28ce8da1e17d33750056cbbb7b62686f492b4f6d', slot: "append", class: "input-group-append" }, hAsync("div", { key: 'a7fd028f9e8457e1b865abbe79539223d64c7087', class: "plate-number-end" }))));
|
|
30281
30304
|
}
|
|
30282
30305
|
static get watchers() { return {
|
|
30283
30306
|
"value": ["valueChanged"]
|
|
@@ -30345,7 +30368,7 @@ class ProgressBar {
|
|
|
30345
30368
|
const fullwidth = this.fullwidth ? 'progress-element-info-full-width' : 'progress-element-info';
|
|
30346
30369
|
const light = this.light ? 'progress progress-light' : 'progress';
|
|
30347
30370
|
const animation = this.animation ? 'animation' : '';
|
|
30348
|
-
return (hAsync(Host, { key: '
|
|
30371
|
+
return (hAsync(Host, { key: '6c93b381f40367646f5ccb653a9062c7ac342679', class: "progress-element" }, hAsync("div", { key: 'cb975e51bd98f03fa7d52bd3f20af7b5f8f25379', class: `${light} progress-${this.color} ${animation}` }, hAsync("div", { key: '33b21314f01938916afaea7a58e0425b03616d06', class: "progress-bar", role: "progressbar", style: { width: `${this.value}%` }, "aria-valuenow": this.value, "aria-valuemin": "0", "aria-valuemax": "100", "aria-label": "progress bar" })), hAsync("div", { key: '3d31e5265359ddb21a8517ccdb6408c3a0503478', class: `${fullwidth}` }, hAsync("span", { key: '0965abaec5dc0737d04ddc05da7b4a6423fe6bb1', class: "progress-element-label" }, this.label), this.showstep && hAsync("span", { key: '1f8b48a83db7c3d70f4a7756a43969d0782ee35a', class: "progress-element-step" }, valueRound, "/", this.numbersteps))));
|
|
30349
30372
|
}
|
|
30350
30373
|
static get style() { return RoadProgressStyle0; }
|
|
30351
30374
|
static get cmpMeta() { return {
|
|
@@ -30386,7 +30409,7 @@ class ProgressIndicatorVertical {
|
|
|
30386
30409
|
registerInstance(this, hostRef);
|
|
30387
30410
|
}
|
|
30388
30411
|
render() {
|
|
30389
|
-
return (hAsync(Host, { key: '
|
|
30412
|
+
return (hAsync(Host, { key: '53374580ae8974a098d78a601f16c11d046d05a0' }, hAsync("nav", { key: '172b56e4f067cd3aff24cbc8f619f623cee6e7fc' }, hAsync("ul", { key: '76fc4af3a83915d53365f3e813612e10ac7bbca7' }, hAsync("li", { key: 'a30ca0d908dc432e31cf04748df08d87bc527f61' }, hAsync("slot", { key: '2bb8112daa5f3799b8936939dce9818fa17f756d' }))))));
|
|
30390
30413
|
}
|
|
30391
30414
|
static get style() { return RoadProgressIndicatorVerticalStyle0; }
|
|
30392
30415
|
static get cmpMeta() { return {
|
|
@@ -30410,7 +30433,7 @@ class ProgressIndicatorVerticalItem {
|
|
|
30410
30433
|
registerInstance(this, hostRef);
|
|
30411
30434
|
}
|
|
30412
30435
|
render() {
|
|
30413
|
-
return (hAsync(Host, { key: '
|
|
30436
|
+
return (hAsync(Host, { key: 'd3ba92c8ba422c910a790c232cc6c43acf21a316' }, hAsync("slot", { key: '471a58e0dbbcad1601c6bfec7e90cc4ced55f172' })));
|
|
30414
30437
|
}
|
|
30415
30438
|
static get style() { return RoadProgressIndicatorVerticalItemStyle0; }
|
|
30416
30439
|
static get cmpMeta() { return {
|
|
@@ -30439,7 +30462,7 @@ class ProgressTracker {
|
|
|
30439
30462
|
registerInstance(this, hostRef);
|
|
30440
30463
|
}
|
|
30441
30464
|
render() {
|
|
30442
|
-
return (hAsync(Host, { key: '
|
|
30465
|
+
return (hAsync(Host, { key: '9a0c92424113ac6ed3a422e2b72a597a1c7e56ae' }, hAsync("nav", { key: '1f4a7756e005ecaac2ae04d69cfa56f44a3db114' }, hAsync("ul", { key: 'dd386017509fcabfbc30d8970fa60d293d209e9e' }, hAsync("li", { key: '1e2ca3005116579b3917b51867a09d975c9c1891' }, hAsync("slot", { key: 'aa5268a3e7f35906bb37354e88b825f839d2774d' }))))));
|
|
30443
30466
|
}
|
|
30444
30467
|
static get style() { return RoadProgressTrackerStyle0; }
|
|
30445
30468
|
static get cmpMeta() { return {
|
|
@@ -30471,7 +30494,7 @@ class ProgressTrackerItem {
|
|
|
30471
30494
|
registerInstance(this, hostRef);
|
|
30472
30495
|
}
|
|
30473
30496
|
render() {
|
|
30474
|
-
return (hAsync(Host, { key: '
|
|
30497
|
+
return (hAsync(Host, { key: 'fa846bf7750217b756e2c63925636d75100e52f0' }, hAsync("slot", { key: '3b37dca6ac078595ce7e739cd980661387f50e59' })));
|
|
30475
30498
|
}
|
|
30476
30499
|
static get style() { return RoadProgressTrackerItemStyle0; }
|
|
30477
30500
|
static get cmpMeta() { return {
|
|
@@ -30564,7 +30587,7 @@ class Radio {
|
|
|
30564
30587
|
const inverseClass = this.inverse && 'form-radio-inverse';
|
|
30565
30588
|
const isInvalidClass = this.error ? 'is-invalid' : '';
|
|
30566
30589
|
const inlineClass = this.inline ? 'form-radio-inline' : '';
|
|
30567
|
-
return (hAsync(Host, { key: '
|
|
30590
|
+
return (hAsync(Host, { key: 'fbec228f3266ccdef92e82ee29b7aa9f604f603a', class: `form-radio ${inlineClass}` }, hAsync("input", { key: '4493e3345ad10d983dab715035a77fe66025e3ba', class: `form-radio-input ${isInvalidClass}`, type: "radio", id: this.radioId, name: this.name, required: this.required, disabled: this.disabled, "aria-disabled": this.disabled ? 'true' : null, checked: this.checked, "aria-checked": `${this.checked}`, "aria-labelledby": labelId, value: this.value, onFocus: this.onFocus, onBlur: this.onBlur }), hAsync("label", { key: '85b6bc778ca441e37bd47a51227307051a9bc80a', class: `form-radio-label ${inverseClass}`, id: labelId, htmlFor: this.radioId }, this.label, " ", hAsync("span", { key: '22b184045be0995831f3b34065d0e8d97cf90cdc', class: "form-radio-label-span" }, this.secondaryLabel))));
|
|
30568
30591
|
}
|
|
30569
30592
|
get el() { return getElement(this); }
|
|
30570
30593
|
static get style() { return RoadRadioStyle0; }
|
|
@@ -30658,7 +30681,7 @@ class RadioGroup {
|
|
|
30658
30681
|
render() {
|
|
30659
30682
|
const labelId = `${this.radioGroupId}-label`;
|
|
30660
30683
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
30661
|
-
return (hAsync(Host, { key: '
|
|
30684
|
+
return (hAsync(Host, { key: '6c3948ad9428d3ae8aeb411a776419784831c714', role: "radiogroup", class: `form-group ${isInvalidClass}`, "aria-label": this.ariaLabel, onClick: this.onClick }, this.label && hAsync("p", { key: '943199c6a4eda68c82245660e81ba04032a62209', class: "text-content", id: labelId }, this.label, " ", this.asterisk && hAsync("span", { key: '772ae18837d54d6aa313e3a8791bc715f66c183d', class: "asterisk" }, "*")), hAsync("slot", { key: '7f4a8c9ec3a201f695a6731467c138abf587e52f' }), this.error && this.error !== '' && hAsync("p", { key: '9149bc1981323584219a13a392e77c8313f7fd58', class: "invalid-feedback" }, this.error), this.helper && this.helper !== '' && hAsync("p", { key: 'a662d0e810e27d6392750d778e13573ed365e358', class: "helper" }, this.helper)));
|
|
30662
30685
|
}
|
|
30663
30686
|
get el() { return getElement(this); }
|
|
30664
30687
|
static get watchers() { return {
|
|
@@ -30788,14 +30811,14 @@ class Range {
|
|
|
30788
30811
|
render() {
|
|
30789
30812
|
const value = this.getValue();
|
|
30790
30813
|
const datalist = this.showLabels !== undefined ? `tickmarks` : "";
|
|
30791
|
-
return (hAsync(Host, { key: '
|
|
30814
|
+
return (hAsync(Host, { key: 'b2c9aa060ae841e99ba5751c128e8df1fa257277', tabindex: "0", class: { disabled: this.disabled } }, hAsync("div", { key: 'b7696f36afd6083f61b0498ff80b911743f6713e', class: "form-group d-flex align-items-end" }, this.showTick && (hAsync("road-icon", { key: '9c09977ad8ea7b60380cd0b245b2b78df75a851e', icon: navigationAddLessSolid, class: "mr-8", size: "sm" })), hAsync("div", { key: 'dbcf378a5ce259394cc0ed12f6437100292aa015', class: "form-range", style: {
|
|
30792
30815
|
"--min": this.min,
|
|
30793
30816
|
"--max": this.max,
|
|
30794
30817
|
"--value": value,
|
|
30795
30818
|
"--background-color": this.disabled
|
|
30796
30819
|
? "var(--road-surface-disabled)"
|
|
30797
30820
|
: "initial",
|
|
30798
|
-
} }, this.showValue && hAsync("output", { key: '
|
|
30821
|
+
} }, this.showValue && hAsync("output", { key: '11fbbec081e1ae2b86a5ad5d387b91f26104d6e8' }), this.showLabels && hAsync("slot", { key: '1dd932c4e17968e794370c5468e13fed1b84df25', name: "datalist" }), hAsync("input", { key: 'afe1c2ef6f8006e2c0dcbd3cbe14103393a57a4a', type: "range", class: "form-range-input", id: this.rangeId, min: this.min, max: this.max, value: value, onInput: this.onInput, list: datalist, "aria-label": "Valeur", tabindex: "0", disabled: this.disabled }), hAsync("label", { key: '6f2bca3f10bdc5dcadf6756bfe953afffe4bf2c7', class: "form-range-label" }, "Valeur"), hAsync("div", { key: '065f974aa51980322402a0c3d0c168a96c076ecf', class: "form-range-progress" })), this.showTick && (hAsync("road-icon", { key: '283d46c77a585064840ee91a861fbd2c0bdaa5aa', icon: navigationAddMoreSolid, class: "ml-8", size: "sm" })))));
|
|
30799
30822
|
}
|
|
30800
30823
|
get el() { return getElement(this); }
|
|
30801
30824
|
static get watchers() { return {
|
|
@@ -30864,7 +30887,7 @@ class Rating {
|
|
|
30864
30887
|
const sizeRatingStarsClass = this.size !== undefined ? `rating-stars rating-stars--${this.size}` : 'rating-stars';
|
|
30865
30888
|
const sizeRatingNumberClass = this.size !== undefined ? `rating-number rating-number--${this.size}` : 'rating-number';
|
|
30866
30889
|
const readOnly = this.readonly == true ? `readonly` : '';
|
|
30867
|
-
return (hAsync(Host, { key: '
|
|
30890
|
+
return (hAsync(Host, { key: 'd81a376cdf8e7a268335c62cadff3a3a5945c334' }, hAsync("div", { key: 'c7f9a63a11399a60d3daa6e3f8f11b8b4f640e96', class: `${sizeRatingStarsClass}` }, [...Array(rate)].map(() => hAsync("road-icon", { icon: star, size: "sm", color: "warning" })), [...Array(rateDecimale)].map(() => hAsync("road-icon", { icon: starHalfColor, size: "sm", class: "rating-star" })), [...Array(5 - rate - rateDecimale)].map(() => hAsync("road-icon", { icon: star, size: "sm", class: "rating-star" }))), this.readonly == false && this.showreviews && hAsync("a", { key: '5b1a38a0f8fdabe757a79f7b5000481d03d8225e', class: `${sizeRatingNumberClass}`, href: this.url }, "(", this.reviews, this.reviewsText && ` ${this.reviewsText}`, ")"), this.readonly == true && this.showreviews && hAsync("road-label", { key: '337a9e94914d57278d8d15c8889b258bff8ea751', class: `${sizeRatingNumberClass} ${readOnly}` }, "(", this.reviews, this.reviewsText && ` ${this.reviewsText}`, ")")));
|
|
30868
30891
|
}
|
|
30869
30892
|
static get style() { return RoadRatingStyle0; }
|
|
30870
30893
|
static get cmpMeta() { return {
|
|
@@ -30983,7 +31006,7 @@ class RoadAreaCode {
|
|
|
30983
31006
|
const labelId = this.selectId + '-label';
|
|
30984
31007
|
const valueId = this.selectId + '-value';
|
|
30985
31008
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
30986
|
-
return (hAsync(Host, { key: '
|
|
31009
|
+
return (hAsync(Host, { key: '5284737f6b5095e033ea92a070f097c5f484228c', class: this.sizes && `select-${this.sizes}` }, hAsync("select", { key: '4dc67cb4f98cedadf7e9e37ac9ec21e7626e549e', class: `form-select-area has-value ${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 }, this.options && this.options.map(option => (hAsync("option", { value: option.value, selected: option.selected }, option.label)))), hAsync("label", { key: '91861b51dc10637ecf2a224209bd0b189fa50430', class: "form-select-area-label", id: labelId, htmlFor: this.selectId }, this.label), hAsync("label", { key: '426fa27d96b289f7197e533fc350e0fcfe6e6522', class: "form-select-area-value", id: valueId, htmlFor: this.selectId }, "+", this.selectedValue), this.error && this.error !== '' && hAsync("p", { key: 'c3d0eda1463b66ce02d6ae126454b27696283fbe', class: "invalid-feedback" }, this.error)));
|
|
30987
31010
|
}
|
|
30988
31011
|
static get watchers() { return {
|
|
30989
31012
|
"value": ["valueChanged"]
|
|
@@ -32208,7 +32231,10 @@ i18n.phonenumbers.AsYouTypeFormatter.prototype.inputDigitHelper_=function(a){var
|
|
|
32208
32231
|
});
|
|
32209
32232
|
}(libphonenumber));
|
|
32210
32233
|
|
|
32211
|
-
|
|
32234
|
+
// list of forbidden characters
|
|
32235
|
+
const forbiddenChars = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '_', '=', '[', ']', '{', '}', '|', ';', ':', "'", '"', ',', '.', '<', '>', '/', '?'];
|
|
32236
|
+
|
|
32237
|
+
const phoneNumberInputCss = ".is-invalid.sc-road-phone-number-input .phone-number-input-field.sc-road-input.sc-road-phone-number-input{border-color:var(--road-danger-outline)}.road-phone-input-select.sc-road-phone-number-input{position:relative;display:block;font-family:var(--road-font, sans-serif);color:var(--road-on-surface);background-color:var(--road-surface);border:1px solid var(--road-input-outline);border-radius:0.25rem;border-top-right-radius:0;border-bottom-right-radius:0;box-shadow:none;appearance:none;width:5rem;height:3.5rem}.sc-road-phone-number-input-h .is-error.sc-road-phone-number-input{border-color:var(--road-danger-outline)}.form-select-area.sc-road-phone-number-input{box-sizing:border-box;display:block;width:100%;height:3rem;padding:0.75rem 3rem 0 2rem;margin:0;font-size:var(--road-body-medium);line-height:1.5;color:var(--road-on-surface);background:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NCA2NCIgZmlsbD0icmdiYSgyMywgMzAsIDUyLCAwLjcyKSI+PHBhdGggZD0iTTIzIDI2bDkgMTIgOS0xMnoiLz48L3N2Zz4=\") no-repeat right -5px center/2.5rem 2rem;position:absolute;top:0;left:0;height:100%;width:95%;z-index:1;border:0;appearance:none;opacity:1;cursor:pointer}.form-select-area.sc-road-phone-number-input:-moz-focusring{color:transparent;text-shadow:0 0 0 #000000}.form-select-area.sc-road-phone-number-input::-ms-expand{display:none}.form-select-area.sc-road-phone-number-input::placeholder{color:var(--road-on-surface-extra-weak)}@media (hover: hover){.form-select-area.sc-road-phone-number-input:not(:disabled):hover{border-color:var(--road-input-outline-variant)}}.form-select-area.sc-road-phone-number-input:focus~.form-select-area-label.sc-road-phone-number-input,.form-select-area[required].sc-road-phone-number-input:valid~.form-select-area-label.sc-road-phone-number-input,.form-select-area.has-value.sc-road-phone-number-input~.form-select-area-label.sc-road-phone-number-input{transform:scale(0.625) translateY(-0.625rem)}.form-select-area.sc-road-phone-number-input:not(:disabled):focus{border-color:var(--road-input-outline-variant)}.form-select-area.sc-road-phone-number-input:disabled,.form-select-area[readonly].sc-road-phone-number-input{color:transparent;cursor:not-allowed;background:var(--road-surface-disabled);opacity:1}.form-select-area-label.sc-road-phone-number-input{position:absolute;top:0.9rem;left:1rem;display:block;font-size:var(--road-font-size-18);line-height:1.5;color:var(--road-on-surface-extra-weak);pointer-events:none;transition:transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms;transform-origin:0 0}.form-select-area.sc-road-phone-number-input:required~.form-select-area-label.sc-road-phone-number-input::after{color:var(--road-on-danger-surface);content:\" *\"}.form-select-area-value.sc-road-phone-number-input{position:absolute;top:1.4rem;left:1rem;display:block;font-size:var(--road-label-medium);line-height:1.5;color:var(--road-on-surface);pointer-events:none;transition:transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms;transform-origin:0 0}.select-xl.sc-road-phone-number-input-h .form-select-area.sc-road-phone-number-input{height:3.5rem;padding:0.75rem 0 0 1rem}.input-xl.sc-road-phone-number-input{height:3.5rem;padding:0.75rem 0 0 1rem}.select-xl.sc-road-phone-number-input-h .form-select-area-label.sc-road-phone-number-input{top:1rem}.select-xl.sc-road-phone-number-input-h .form-select-area.sc-road-phone-number-input:focus~.form-select-area-label.sc-road-phone-number-input,.select-xl.sc-road-phone-number-input-h .form-select-area[required].sc-road-phone-number-input:valid~.form-select-area-label.sc-road-phone-number-input,.select-xl.sc-road-phone-number-input-h .form-select-area.has-value.sc-road-phone-number-input~.form-select-area-label.sc-road-phone-number-input,.select-xl.sc-road-phone-number-input-h .form-select-area[type=\"date\"].sc-road-phone-number-input~.form-select-area-label.sc-road-phone-number-input,.select-xl.sc-road-phone-number-input-h .form-select-area[type=\"time\"].sc-road-phone-number-input~.form-select-area-label.sc-road-phone-number-input{transform:scale(0.75) translateY(-0.625rem)}.select-xl.sc-road-phone-number-input-h .form-select-area.sc-road-phone-number-input:placeholder-shown~.form-select-area-label.sc-road-phone-number-input{transform:scale(0.75) translateY(-0.625rem)}.invalid-feedback.sc-road-phone-number-input{gap:.25rem;display:flex;width:100%;margin:0.5rem 0;font-size:var(--road-body-small);color:var(--road-on-danger-surface)}.form-select-area.is-invalid.sc-road-phone-number-input,.was-validated.sc-road-phone-number-input .form-select-area.sc-road-phone-number-input:invalid{border-color:var(--road-on-danger-surface)}.form-select-area.is-invalid.sc-road-phone-number-input~.invalid-feedback.sc-road-phone-number-input,.was-validated.sc-road-phone-number-input .form-select-area.sc-road-phone-number-input:invalid~.invalid-feedback.sc-road-phone-number-input{display:block}.form-select-area.sc-road-phone-number-input option.sc-road-phone-number-input:checked::after{position:absolute;top:0;left:0;content:attr(data-content)}.form-select-area.sc-road-phone-number-input::after{position:absolute;top:0;left:0;content:var(--selected-content, '')}.phone-number-input-label.sc-road-phone-number-input{position:absolute;top:1rem;left:6rem;display:block;font-size:var(--road-body-medium);line-height:1.5;color:var(--road-on-surface-weak);pointer-events:none;transition:transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms;transform-origin:0 0}.phone-number-input-field.sc-road-phone-number-input:required~.phone-number-input-label.sc-road-phone-number-input::after{color:var(--road-danger-default);content:\" *\"}.phone-number-input-field.sc-road-phone-number-input:focus~.phone-number-input-label.sc-road-phone-number-input,.phone-number-input-field[required].sc-road-phone-number-input:valid~.phone-number-input-label.sc-road-phone-number-input,.phone-number-input-field.has-value.sc-road-phone-number-input~.phone-number-input-label.sc-road-phone-number-input{transform:scale(0.625) translateY(-0.625rem)}.phone-number-input-field.sc-road-phone-number-input:placeholder-shown~.phone-number-input-label.sc-road-phone-number-input{transform:scale(0.625) translateY(-0.625rem)}.phone-number-input-field.sc-road-phone-number-input:-ms-input-placeholder~.phone-number-input-label.sc-road-phone-number-input{transform:scale(0.625) translateY(-0.625rem)}.phone-number-inputs-container.sc-road-phone-number-input{position:relative;display:flex}.road-phone-input-select.sc-road-phone-number-input{margin-bottom:1rem}.is-error.sc-road-phone-number-input{margin-bottom:0}.phone-number-input-field.sc-road-phone-number-input{flex-grow:1;border:1px solid var(--road-input-outline);border-left:0;border-radius:0.25rem;border-bottom-left-radius:0;border-top-left-radius:0}";
|
|
32212
32238
|
var RoadPhoneNumberInputStyle0 = phoneNumberInputCss;
|
|
32213
32239
|
|
|
32214
32240
|
let selectIds$1 = 0;
|
|
@@ -32239,12 +32265,8 @@ class RoadPhoneNumberInput {
|
|
|
32239
32265
|
phone: this.resetPhoneUtilData(),
|
|
32240
32266
|
};
|
|
32241
32267
|
}
|
|
32242
|
-
updateMessagePosition() {
|
|
32243
|
-
this.placeErrorMessage();
|
|
32244
|
-
}
|
|
32245
32268
|
// On component load
|
|
32246
32269
|
componentWillLoad() {
|
|
32247
|
-
this.placeErrorMessage();
|
|
32248
32270
|
let fromSelect = false;
|
|
32249
32271
|
if (this.phoneValue) {
|
|
32250
32272
|
this.phoneNumber = this.phoneValue;
|
|
@@ -32261,35 +32283,17 @@ class RoadPhoneNumberInput {
|
|
|
32261
32283
|
}
|
|
32262
32284
|
// On user input
|
|
32263
32285
|
handleInput(event) {
|
|
32264
|
-
|
|
32286
|
+
const input = event.target;
|
|
32287
|
+
this.phoneNumber = input.value;
|
|
32265
32288
|
this.createAndDispatchPhoneData();
|
|
32266
32289
|
}
|
|
32267
32290
|
// On user key down
|
|
32268
32291
|
handleKeyDown(event) {
|
|
32269
|
-
//
|
|
32270
|
-
|
|
32271
|
-
// Vérifier si la touche pressée est dans la liste des caractères interdits
|
|
32272
|
-
if (caracteresInterdits.includes(event.key)) {
|
|
32292
|
+
// checks if the forbidden characters's list contains the pressed key
|
|
32293
|
+
if (forbiddenChars.includes(event.key)) {
|
|
32273
32294
|
event.preventDefault();
|
|
32274
32295
|
}
|
|
32275
32296
|
}
|
|
32276
|
-
// On user key up
|
|
32277
|
-
handleKeyUp(event) {
|
|
32278
|
-
// Récupérer la valeur saisie
|
|
32279
|
-
const inputValue = event.target.value || '';
|
|
32280
|
-
// Vérifier si la valeur contient uniquement des chiffres ou le symbole "+"
|
|
32281
|
-
const containsOnlyNumbersAndPlus = /^[0-9+]*$/.test(inputValue);
|
|
32282
|
-
// Si la valeur ne contient pas uniquement des chiffres ou le symbole "+", réinitialiser le champ de saisie à son état précédent
|
|
32283
|
-
if (!containsOnlyNumbersAndPlus) {
|
|
32284
|
-
// Réinitialiser la valeur du champ de saisie à son état précédent
|
|
32285
|
-
event.target.value = this.phoneNumber;
|
|
32286
|
-
}
|
|
32287
|
-
else {
|
|
32288
|
-
// Si la valeur contient uniquement des chiffres ou le symbole "+", mettre à jour la valeur du numéro de téléphone
|
|
32289
|
-
this.phoneNumber = inputValue;
|
|
32290
|
-
this.createAndDispatchPhoneData();
|
|
32291
|
-
}
|
|
32292
|
-
}
|
|
32293
32297
|
// On user select
|
|
32294
32298
|
handleSelect(event) {
|
|
32295
32299
|
const select = event.target;
|
|
@@ -32301,6 +32305,7 @@ class RoadPhoneNumberInput {
|
|
|
32301
32305
|
this.updateCountryOptions();
|
|
32302
32306
|
}
|
|
32303
32307
|
createAndDispatchPhoneData(fromSelect) {
|
|
32308
|
+
var _a;
|
|
32304
32309
|
// Init phone util
|
|
32305
32310
|
const phoneUtil = libphonenumber.exports.PhoneNumberUtil.getInstance();
|
|
32306
32311
|
const PNF = libphonenumber.exports.PhoneNumberFormat;
|
|
@@ -32308,7 +32313,7 @@ class RoadPhoneNumberInput {
|
|
|
32308
32313
|
this.returnObject.phone = this.resetPhoneUtilData();
|
|
32309
32314
|
const tmpCountry = this.selectedCountry.length ? this.selectedCountry : this.countryData[0].countryCode;
|
|
32310
32315
|
try {
|
|
32311
|
-
const parsedPhoneNumber = phoneUtil.parse(this.phoneNumber, tmpCountry);
|
|
32316
|
+
const parsedPhoneNumber = phoneUtil.parse((_a = this.phoneNumber) !== null && _a !== void 0 ? _a : '', tmpCountry);
|
|
32312
32317
|
this.returnObject.isError = !phoneUtil.isValidNumber(parsedPhoneNumber) && !this.isEmptyPhoneNumber();
|
|
32313
32318
|
this.returnObject.phone.nationalNumber = phoneUtil.format(parsedPhoneNumber, PNF.NATIONAL);
|
|
32314
32319
|
this.returnObject.phone.internationalNumber = phoneUtil.format(parsedPhoneNumber, PNF.INTERNATIONAL);
|
|
@@ -32330,7 +32335,7 @@ class RoadPhoneNumberInput {
|
|
|
32330
32335
|
const phoneType = Object.entries(libphonenumber.exports.PhoneNumberType).find(entry => entry[1] === phoneUtil.getNumberType(parsedPhoneNumber));
|
|
32331
32336
|
this.returnObject.phone.numberType = phoneType[0];
|
|
32332
32337
|
}
|
|
32333
|
-
catch (
|
|
32338
|
+
catch (_b) { }
|
|
32334
32339
|
finally {
|
|
32335
32340
|
this.roadPhoneNumberInput.emit(this.returnObject);
|
|
32336
32341
|
}
|
|
@@ -32343,16 +32348,18 @@ class RoadPhoneNumberInput {
|
|
|
32343
32348
|
this.selectedCountry = value;
|
|
32344
32349
|
}
|
|
32345
32350
|
resetPhoneUtilData() {
|
|
32351
|
+
var _a, _b;
|
|
32346
32352
|
return {
|
|
32347
32353
|
numberType: 'UNKNOWN',
|
|
32348
32354
|
countryCode: this.selectedCountry,
|
|
32349
32355
|
code: this.selectedCountryCode,
|
|
32350
|
-
nationalNumber: this.phoneNumber,
|
|
32351
|
-
internationalNumber: this.phoneNumber,
|
|
32356
|
+
nationalNumber: (_a = this.phoneNumber) !== null && _a !== void 0 ? _a : '',
|
|
32357
|
+
internationalNumber: (_b = this.phoneNumber) !== null && _b !== void 0 ? _b : '',
|
|
32352
32358
|
};
|
|
32353
32359
|
}
|
|
32354
32360
|
isEmptyPhoneNumber() {
|
|
32355
|
-
|
|
32361
|
+
var _a;
|
|
32362
|
+
return !((_a = this.phoneNumber) === null || _a === void 0 ? void 0 : _a.length);
|
|
32356
32363
|
}
|
|
32357
32364
|
getPhoneCodeFromCountryCode(countryCode) {
|
|
32358
32365
|
var _a;
|
|
@@ -32377,43 +32384,24 @@ class RoadPhoneNumberInput {
|
|
|
32377
32384
|
},
|
|
32378
32385
|
];
|
|
32379
32386
|
}
|
|
32380
|
-
|
|
32381
|
-
this.
|
|
32382
|
-
messError.style.display = "flex";
|
|
32383
|
-
messError.style.marginTop = "-0.5rem";
|
|
32384
|
-
const phoneNumberInput = this.el;
|
|
32385
|
-
phoneNumberInput.appendChild(messError);
|
|
32386
|
-
});
|
|
32387
|
-
}
|
|
32388
|
-
waitForElementToExist(selector) {
|
|
32389
|
-
return new Promise(resolve => {
|
|
32390
|
-
if (document.querySelector(selector)) {
|
|
32391
|
-
return resolve(document.querySelector(selector));
|
|
32392
|
-
}
|
|
32393
|
-
const observer = new MutationObserver(() => {
|
|
32394
|
-
if (document.querySelector(selector)) {
|
|
32395
|
-
resolve(document.querySelector(selector));
|
|
32396
|
-
observer.disconnect();
|
|
32397
|
-
}
|
|
32398
|
-
});
|
|
32399
|
-
observer.observe(document.body, {
|
|
32400
|
-
subtree: true,
|
|
32401
|
-
childList: true,
|
|
32402
|
-
});
|
|
32403
|
-
});
|
|
32387
|
+
hasValue() {
|
|
32388
|
+
return this.phoneNumber !== '' && this.phoneNumber !== null;
|
|
32404
32389
|
}
|
|
32405
32390
|
render() {
|
|
32406
|
-
const
|
|
32391
|
+
const id = selectIds$1++;
|
|
32392
|
+
const selectId = `road-phone-number-select-${id}`;
|
|
32393
|
+
const inputId = `road-phone-number-input-${id}`;
|
|
32407
32394
|
const labelId = selectId + '-label';
|
|
32408
32395
|
const valueId = selectId + '-value';
|
|
32409
32396
|
const isInvalidClass = this.errorMessage.length ? 'is-invalid' : '';
|
|
32410
32397
|
const isErrorClass = this.errorMessage.length ? 'is-error' : '';
|
|
32411
|
-
|
|
32398
|
+
const hasValueClass = this.hasValue() ? 'has-value' : '';
|
|
32399
|
+
const sizes = 'xl';
|
|
32400
|
+
return (hAsync(Host, { key: '9f90460c652db496fc88dd4b8e611bdf348e3f5a' }, hAsync("div", { key: '03fceb8966c9622782a0341a2f0a01511cfe7006', class: 'phone-number-inputs-container' }, hAsync("div", { key: '4a889f1e223cf354a262fd68d948c05dc265a14b', class: `road-phone-input-select ${isErrorClass} ${isInvalidClass}`, slot: "prepend" }, hAsync("select", { key: 'cc520dea43d2b64645f9cbf67c768efce7790079', id: selectId, class: `form-select-area has-value`, "aria-disabled": this.disabled ? 'true' : null, disabled: this.disabled, onChange: (event) => this.handleSelect(event), "aria-label": this.codeLabel, tabIndex: this.disabled ? -1 : 0 }, this.countryOptions && this.countryOptions.map(option => (hAsync("option", { value: option.value, disabled: option.disabled, selected: option.selected }, option.label)))), hAsync("label", { key: '6769d2bda09b72449a566ece542ebf7edc5a0e40', class: "form-select-area-label", id: labelId, htmlFor: selectId }, this.codeLabel), hAsync("label", { key: '513bfd2c0eab6609d74eb7b9ebc14a212be4cc9d', class: "form-select-area-value", id: valueId, htmlFor: selectId }, "+", this.selectedCountryCode)), hAsync("input", { key: 'db609e065a32f7014c6d32dec4aae86b2b607e77', type: 'tel', id: inputId, class: `input-${sizes} phone-number-input-field ${hasValueClass} ${isErrorClass}`, value: this.phoneValue, required: this.required, tabIndex: 0, onInput: (event) => this.handleInput(event), onKeyDown: (event) => this.handleKeyDown(event) }), hAsync("label", { key: 'cac7f2ae8afa700db8871bc4d2b35f49822ca179', class: "phone-number-input-label", id: labelId, htmlFor: inputId }, this.phoneLabel)), this.errorMessage
|
|
32401
|
+
&& this.errorMessage !== ''
|
|
32402
|
+
&& hAsync("p", { key: 'cb521ea80ae33ce0743a64270d47234cc0bdf114', class: "invalid-feedback" }, hAsync("road-icon", { key: '1dcf2587dabc46402d1c16bbf75604aedfc4d54d', slot: "start", color: 'danger', name: "alert-error-solid", "aria-hidden": "true", size: "sm" }), this.errorMessage)));
|
|
32412
32403
|
}
|
|
32413
32404
|
get el() { return getElement(this); }
|
|
32414
|
-
static get watchers() { return {
|
|
32415
|
-
"errorMessage": ["updateMessagePosition"]
|
|
32416
|
-
}; }
|
|
32417
32405
|
static get style() { return RoadPhoneNumberInputStyle0; }
|
|
32418
32406
|
static get cmpMeta() { return {
|
|
32419
32407
|
"$flags$": 2,
|
|
@@ -32451,7 +32439,7 @@ class Row {
|
|
|
32451
32439
|
registerInstance(this, hostRef);
|
|
32452
32440
|
}
|
|
32453
32441
|
render() {
|
|
32454
|
-
return (hAsync(Host, { key: '
|
|
32442
|
+
return (hAsync(Host, { key: '891c70924e7955aa953e3e233cd57dd6aff4068a' }, hAsync("slot", { key: 'acb726260f4492a126b9aa1f51d89b329bf6a09c' })));
|
|
32455
32443
|
}
|
|
32456
32444
|
static get style() { return RoadRowStyle0; }
|
|
32457
32445
|
static get cmpMeta() { return {
|
|
@@ -32523,10 +32511,10 @@ class SegmentedButton {
|
|
|
32523
32511
|
render() {
|
|
32524
32512
|
const { tabIndex, selected, tab } = this;
|
|
32525
32513
|
const sizeClass = this.size !== undefined ? `btn-${this.size}` : '';
|
|
32526
|
-
return (hAsync(Host, { key: '
|
|
32514
|
+
return (hAsync(Host, { key: 'c94bfffcbff45b20dc349a3545bd195a95d68273', onClick: this.onClick, onKeyup: this.onKeyUp, role: "tab", tabindex: tabIndex, "aria-selected": selected ? 'true' : null, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
|
|
32527
32515
|
'tab-selected': selected,
|
|
32528
32516
|
[`${sizeClass}`]: true,
|
|
32529
|
-
} }, hAsync("span", { key: '
|
|
32517
|
+
} }, hAsync("span", { key: '87ee95ccb7c44cfe7bff797d1b693f1ae4cf0ad7', tabIndex: -1, class: "button-native", part: "native", "aria-hidden": "true" }, hAsync("slot", { key: 'a6fd94b01bba4f71b3689f62a736050e7132add0' }))));
|
|
32530
32518
|
}
|
|
32531
32519
|
get el() { return getElement(this); }
|
|
32532
32520
|
static get style() { return RoadSegmentedButtonStyle0; }
|
|
@@ -32647,7 +32635,7 @@ class Select {
|
|
|
32647
32635
|
const labelId = this.selectId + '-label';
|
|
32648
32636
|
const hasValueClass = this.value && this.value !== '' ? 'has-value' : '';
|
|
32649
32637
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
32650
|
-
return (hAsync(Host, { key: '
|
|
32638
|
+
return (hAsync(Host, { key: '81206f7f9840b7700814260f6a7b8cf78fd7e536', class: this.sizes && `select-${this.sizes}` }, hAsync("select", { key: '8118f6d0f6c2d59be3d0c873398c195a8525c0cc', 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 }, hAsync("option", { key: '4e87320134e62248e7c9e805761226f5403472a9', selected: !this.value, disabled: true, hidden: true, style: { display: 'none' }, value: "" }), this.options && this.options.map(option => (hAsync("option", { value: option.value, selected: this.value !== null && option.value == this.value }, option.label)))), hAsync("label", { key: '32191859474bee5f86d21ad9f81d01bc088d07cd', class: "form-select-label", id: labelId, htmlFor: this.selectId }, this.label), this.error && this.error !== '' && hAsync("p", { key: '47ecadf397bc303ca9347fc2c426dd4a3f608057', class: "invalid-feedback" }, this.error)));
|
|
32651
32639
|
}
|
|
32652
32640
|
static get watchers() { return {
|
|
32653
32641
|
"value": ["valueChanged"]
|
|
@@ -34568,8 +34556,8 @@ class SelectFilter {
|
|
|
34568
34556
|
const options = this.filteredOptions;
|
|
34569
34557
|
const isActive = this.isActive ? 'true' : 'false';
|
|
34570
34558
|
const notActive = this.isActive ? '' : 'not-active';
|
|
34571
|
-
return (hAsync(Host, { key: '
|
|
34572
|
-
hAsync("ul", { key: '
|
|
34559
|
+
return (hAsync(Host, { key: '4443cee3d13ade9d17d364aa112f7d13ac9a27d1', "is-active": isActive }, hAsync("slot", { key: 'ed15841a9e665154f9988f76e8ac56c1788fd750' }), this.isOpen &&
|
|
34560
|
+
hAsync("ul", { key: '4ab28fd0fb00759e86e30fe14ded0de207dfde7c', class: `${notActive} select-filter-list`, role: "listbox", onMouseLeave: this.handleMouseLeave }, options.map((option, idx) => (hAsync("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 }))))));
|
|
34573
34561
|
}
|
|
34574
34562
|
get el() { return getElement(this); }
|
|
34575
34563
|
static get style() { return RoadSelectFilterStyle0; }
|
|
@@ -34599,7 +34587,7 @@ class Skeleton {
|
|
|
34599
34587
|
registerInstance(this, hostRef);
|
|
34600
34588
|
}
|
|
34601
34589
|
render() {
|
|
34602
|
-
return (hAsync("span", { key: '
|
|
34590
|
+
return (hAsync("span", { key: '76fc5d6e478e6486b0f4f3e5e3afd7e1a8c0049f' }, "\u00A0"));
|
|
34603
34591
|
}
|
|
34604
34592
|
static get style() { return RoadSkeletonStyle0; }
|
|
34605
34593
|
static get cmpMeta() { return {
|
|
@@ -34630,7 +34618,7 @@ class Spinner {
|
|
|
34630
34618
|
render() {
|
|
34631
34619
|
const sizeClass = this.size !== undefined ? `spinner spinner--${this.size}` : 'spinner';
|
|
34632
34620
|
const colorClass = this.size !== undefined ? `spinner-circle spinner-circle--${this.color}` : 'spinner-circle';
|
|
34633
|
-
return (hAsync("svg", { key: '
|
|
34621
|
+
return (hAsync("svg", { key: '66ff9c668eec8fc73a2f93015094934b9fb0b181', class: `${sizeClass}`, viewBox: "25 25 50 50" }, hAsync("circle", { key: '5b2c9b4c104607084c0d2249c5b7dc31429ad39a', class: `${colorClass}`, cx: "50", cy: "50", r: "20" })));
|
|
34634
34622
|
}
|
|
34635
34623
|
static get style() { return RoadSpinnerStyle0; }
|
|
34636
34624
|
static get cmpMeta() { return {
|
|
@@ -34680,7 +34668,7 @@ class Stepper {
|
|
|
34680
34668
|
const urlStep1 = this.urlStep1 !== undefined ? `${this.urlStep1}` : '#';
|
|
34681
34669
|
const urlStep2 = this.urlStep2 !== undefined ? `${this.urlStep2}` : '#';
|
|
34682
34670
|
const urlStep3 = this.urlStep3 !== undefined ? `${this.urlStep3}` : '#';
|
|
34683
|
-
return (hAsync(Host, { key: '
|
|
34671
|
+
return (hAsync(Host, { key: '92b255c26f67f4aad1051adc570b4838064b050b' }, hAsync("nav", { key: '44f9ff6889874b55dc5078d1571cde655afc3a6b' }, hAsync("ul", { key: 'e6b0e5e75db170bd8bf6412ed1d6bb5f228eda4b', class: `${colorClass}` }, hAsync("li", { key: 'f48231734646f68f91bc256cd935a13dfe5277cf', class: `${stateClass}` }, hAsync("a", { key: '8ca3bebb5e710c5a3fbbada6ef1f6f0ad6518956', class: "progress-indicator-horizontal-link", href: `${urlStep1}` }, hAsync("span", { key: '752b27e04ab6799c19912a193a89e8084dc82ff9', class: "progress-indicator-horizontal-icon" }, hAsync("slot", { key: '3c25ed41f39a011e61aafec0ca65917b72dbe967', name: "progress-indicator-horizontal-icon" })), hAsync("span", { key: '2bf09fe120b2ae4c4074a5357f5133bc22120e2c', class: "progress-indicator-horizontal-title" }, hAsync("slot", { key: '752e16d8c3895c2ee91a222c7789431ad27e34dd', name: "progress-indicator-horizontal-title" })))), hAsync("li", { key: '09bcfc2711dc68b5b233b0306fa7d3d2b8e753c3', class: `${stateSecondStepClass}` }, hAsync("a", { key: '9b5c9c60abecfed752c0332696c3c509ef4d5074', class: "progress-indicator-horizontal-link", href: `${urlStep2}` }, hAsync("span", { key: '1e3c3113967379a97597c13044493ff3693d1b4e', class: "progress-indicator-horizontal-icon" }, hAsync("slot", { key: 'fe8312cd31ca099c690379f500f20466a3f76555', name: "progress-indicator-horizontal-icon2" })), hAsync("span", { key: '885e16b9917fbbcc0df05c2960083cb679902d2d', class: "progress-indicator-horizontal-title" }, hAsync("slot", { key: '0b6709b4b8390f58854d2a37528fe1b98a0b4481', name: "progress-indicator-horizontal-title2" })))), this.numberStep == 3 && hAsync("li", { key: 'fa106837abe66d6ee557f800916b39df8efac9a7', class: `${stateThirdStepClass}` }, hAsync("a", { key: '9607d28f066e4b22778f66d0b5657611af3b15ed', class: "progress-indicator-horizontal-link", href: `${urlStep3}` }, hAsync("span", { key: 'ce19ae6a6b774c0d5cb8c7b91af8d03ee88400a4', class: "progress-indicator-horizontal-icon" }, hAsync("slot", { key: 'e0a52ce61b043af9137340a5651a120f1a8ff0dd', name: "progress-indicator-horizontal-icon3" })), hAsync("span", { key: '1c8870afc7dc2630fb58c4c2f17d4f4f9109dea6', class: "progress-indicator-horizontal-title" }, hAsync("slot", { key: '91fb0f5283ddbe5c62c2292579df9045b4c543f7', name: "progress-indicator-horizontal-title3" }))))))));
|
|
34684
34672
|
}
|
|
34685
34673
|
static get style() { return RoadProgressIndicatorHorizontalStyle0; }
|
|
34686
34674
|
static get cmpMeta() { return {
|
|
@@ -34782,11 +34770,11 @@ class Switch {
|
|
|
34782
34770
|
}
|
|
34783
34771
|
render() {
|
|
34784
34772
|
const labelId = this.switchId + '-label';
|
|
34785
|
-
const textLabel = hAsync("label", { key: '
|
|
34773
|
+
const textLabel = hAsync("label", { key: 'f8a8b7641286294d251bc6d10b45fc97607cba49', class: "form-switch-label", id: labelId, htmlFor: this.switchId }, this.label);
|
|
34786
34774
|
const colorClass = this.color !== undefined ? 'form-switch-' + this.color : '';
|
|
34787
34775
|
const isSpacedClass = this.isSpaced && 'form-switch-spaced';
|
|
34788
34776
|
const rightSwitchClass = this.hasLeftLabel ? 'form-switch-right' : '';
|
|
34789
|
-
return (hAsync(Host, { key: '
|
|
34777
|
+
return (hAsync(Host, { key: '9c43f0996fdcd4962776919b92b94eb7fbb9ad57' }, hAsync("input", { key: '756db832dbd73ec0c59ed9ec2ae76b1851a8f22d', 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 }), hAsync("label", { key: '927bdd4ef11db9a6039ffd028994caa4667519fe', class: `form-switch-label ${isSpacedClass} ${colorClass}`, htmlFor: this.switchId }, this.hasLeftLabel && textLabel, hAsync("div", { key: '0f3011ab70a432f99319331bb0e2009fa11e50ce', class: `form-switch-lever ${rightSwitchClass}`, "data-off": this.off, "data-on": this.on }), this.hasLeftLabel ? '' : textLabel)));
|
|
34790
34778
|
}
|
|
34791
34779
|
static get watchers() { return {
|
|
34792
34780
|
"checked": ["checkedChanged"]
|
|
@@ -34841,9 +34829,9 @@ class Tab {
|
|
|
34841
34829
|
}
|
|
34842
34830
|
render() {
|
|
34843
34831
|
const { tab, active } = this;
|
|
34844
|
-
return (hAsync(Host, { key: '
|
|
34832
|
+
return (hAsync(Host, { key: '24b66a77921452273dbf57f3f44ac3cffbaecf8f', role: "tabpanel", "aria-hidden": !active ? 'true' : null, "aria-labelledby": `tab-button-${tab}`, class: {
|
|
34845
34833
|
'tab-hidden': !active,
|
|
34846
|
-
} }, hAsync("slot", { key: '
|
|
34834
|
+
} }, hAsync("slot", { key: '63f0d57bf74b8d562fecfbc881f8199d68080e89' })));
|
|
34847
34835
|
}
|
|
34848
34836
|
get el() { return getElement(this); }
|
|
34849
34837
|
static get style() { return RoadTabStyle0; }
|
|
@@ -34903,11 +34891,11 @@ class TabBar {
|
|
|
34903
34891
|
}
|
|
34904
34892
|
render() {
|
|
34905
34893
|
const { expand, center, secondary } = this;
|
|
34906
|
-
return (hAsync(Host, { key: '
|
|
34894
|
+
return (hAsync(Host, { key: '7c2795d50362e570f6a3371fde1e987bfc6389fd', role: "tablist", class: {
|
|
34907
34895
|
'tab-expand': expand,
|
|
34908
34896
|
'tab-center': center,
|
|
34909
34897
|
'tab-secondary': secondary,
|
|
34910
|
-
} }, hAsync("slot", { key: '
|
|
34898
|
+
} }, hAsync("slot", { key: '94d18f97a0e96a8e8cef400b4b08feef32210782' })));
|
|
34911
34899
|
}
|
|
34912
34900
|
get el() { return getElement(this); }
|
|
34913
34901
|
static get watchers() { return {
|
|
@@ -35007,7 +34995,7 @@ class TabButton {
|
|
|
35007
34995
|
rel,
|
|
35008
34996
|
target,
|
|
35009
34997
|
};
|
|
35010
|
-
return (hAsync(Host, { key: '
|
|
34998
|
+
return (hAsync(Host, { key: '1bf7c7301f66cecd4bfbf5cb332fb443dbd17a73', 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: {
|
|
35011
34999
|
'tab-selected': selected,
|
|
35012
35000
|
'tab-has-label': hasLabel,
|
|
35013
35001
|
'tab-has-icon': hasIcon,
|
|
@@ -35015,7 +35003,7 @@ class TabButton {
|
|
|
35015
35003
|
'tab-has-icon-only': hasIcon && !hasLabel,
|
|
35016
35004
|
[`tab-layout-${layout}`]: true,
|
|
35017
35005
|
'tab-disabled': disabled, // Classe CSS pour les styles désactivés
|
|
35018
|
-
} }, hAsync("a", Object.assign({ key: '
|
|
35006
|
+
} }, hAsync("a", Object.assign({ key: 'c15a1634befc28787a96baa630bcb65bfac9dcc7' }, attrs, { tabIndex: -1, class: "button-native", part: "native" }), hAsync("span", { key: '8f1f273aea98fd8680b5787223f8fe730055d9c3', class: "button-inner" }, hAsync("slot", { key: '24f7dceead533f266dcdd4cb80f792b2ae85db2c' })))));
|
|
35019
35007
|
}
|
|
35020
35008
|
get el() { return getElement(this); }
|
|
35021
35009
|
static get style() { return RoadTabButtonStyle0; }
|
|
@@ -35049,7 +35037,7 @@ class Table {
|
|
|
35049
35037
|
registerInstance(this, hostRef);
|
|
35050
35038
|
}
|
|
35051
35039
|
render() {
|
|
35052
|
-
return (hAsync("slot", { key: '
|
|
35040
|
+
return (hAsync("slot", { key: '1255550161fc3591df1269296d7dbd2bd2dc86b6' }));
|
|
35053
35041
|
}
|
|
35054
35042
|
static get style() { return RoadTableStyle0; }
|
|
35055
35043
|
static get cmpMeta() { return {
|
|
@@ -35157,7 +35145,7 @@ class Tabs$1 {
|
|
|
35157
35145
|
return Array.from(this.el.querySelectorAll('road-tab'));
|
|
35158
35146
|
}
|
|
35159
35147
|
render() {
|
|
35160
|
-
return (hAsync(Host, { key: '
|
|
35148
|
+
return (hAsync(Host, { key: '8e28299a9d4821c74d9e62b25b6b8ad72fac01da', onRoadSegmentedButtonClick: this.onTabClicked }, hAsync("slot", { key: '2e154363be587d35480818a016f9bc8973709724', name: "top" }), hAsync("slot", { key: '77044401892a3a9245eb9029178d82df516c7252' })));
|
|
35161
35149
|
}
|
|
35162
35150
|
get el() { return getElement(this); }
|
|
35163
35151
|
static get style() { return RoadSegmentedButtonsStyle0; }
|
|
@@ -35293,7 +35281,7 @@ class Tabs {
|
|
|
35293
35281
|
return Array.from(this.el.querySelectorAll('road-tab'));
|
|
35294
35282
|
}
|
|
35295
35283
|
render() {
|
|
35296
|
-
return (hAsync(Host, { key: '
|
|
35284
|
+
return (hAsync(Host, { key: 'bc3d78f5653f637d9b0c23a732cfb715a0490e09', onRoadTabButtonClick: this.onTabClicked }, hAsync("slot", { key: 'be1082d53eb88ff1e0aa1222dbea8a5bcc65c77a', name: "top" }), hAsync("div", { key: '4e29d83d3f1473b27b720a049c7201f632fbe11b', class: "tabs-inner" }, hAsync("slot", { key: 'd9ed82d2d6cb976d65c9349e286190033f859ebd' }))));
|
|
35297
35285
|
}
|
|
35298
35286
|
get el() { return getElement(this); }
|
|
35299
35287
|
static get style() { return RoadTabsStyle0; }
|
|
@@ -35341,7 +35329,7 @@ class Tag {
|
|
|
35341
35329
|
}
|
|
35342
35330
|
render() {
|
|
35343
35331
|
const contrastClass = this.contrast ? `tag-${this.color} tag-${this.color}-contrast` : `tag-${this.color}`;
|
|
35344
|
-
return (hAsync(Host, { key: '
|
|
35332
|
+
return (hAsync(Host, { key: '474f7b6662f78c0258d4573377bca6c8cda09bbb', class: `${contrastClass}` }, hAsync("slot", { key: 'f58667d0bd8ffc1839df5b0c1572447d8445d4ae' })));
|
|
35345
35333
|
}
|
|
35346
35334
|
static get style() { return RoadTagStyle0; }
|
|
35347
35335
|
static get cmpMeta() { return {
|
|
@@ -35373,7 +35361,7 @@ class Text {
|
|
|
35373
35361
|
}
|
|
35374
35362
|
render() {
|
|
35375
35363
|
const colorClass = this.color !== undefined ? `text-${this.color}` : '';
|
|
35376
|
-
return (hAsync(Host, { key: '
|
|
35364
|
+
return (hAsync(Host, { key: 'bb23b71b76a33ff446f23c24ba4f53f41bf2445f', class: `${colorClass}` }, hAsync("slot", { key: 'd1a14d98cae107a96314bbaea01687183cf60447' })));
|
|
35377
35365
|
}
|
|
35378
35366
|
static get style() { return RoadTextStyle0; }
|
|
35379
35367
|
static get cmpMeta() { return {
|
|
@@ -35483,7 +35471,7 @@ class Textarea {
|
|
|
35483
35471
|
const hasValueClass = this.value !== '' ? 'has-value' : '';
|
|
35484
35472
|
const noResizeClass = this.resize == false ? 'no-resize' : '';
|
|
35485
35473
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
35486
|
-
return (hAsync(Host, { key: '
|
|
35474
|
+
return (hAsync(Host, { key: '8f1bce355f73fef1b81fb71025b23aa9734106a2', "aria-disabled": this.disabled ? 'true' : null, class: this.sizes && `input-${this.sizes}` }, hAsync("textarea", { key: 'eefe6f4bcb3723e01c5b5a7b30b52eddd947de54', 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 }), hAsync("label", { key: '8a2dd19323c6bb8b889b35328081d75d143a36e9', class: "form-label", id: labelId, htmlFor: this.textareaId }, this.label), this.error && this.error !== '' && hAsync("p", { key: '514875f36258918863ec6320c870fe4454d3ece2', class: "invalid-feedback" }, this.error), this.helper && this.helper !== '' && hAsync("p", { key: '586ba5819e534bc379788b45b6160e8880cff3a0', class: "helper" }, this.helper)));
|
|
35487
35475
|
}
|
|
35488
35476
|
static get watchers() { return {
|
|
35489
35477
|
"value": ["valueChanged"]
|
|
@@ -35614,7 +35602,7 @@ class Toast {
|
|
|
35614
35602
|
if (this.color == 'danger') {
|
|
35615
35603
|
this.timeout = 0;
|
|
35616
35604
|
}
|
|
35617
|
-
return (hAsync(Host, { key: '
|
|
35605
|
+
return (hAsync(Host, { key: '1e5de437f471e4a0a4c4a328b41c39e2f84aeb87', class: `${toastIsOpenClass}`, role: "alert" }, hAsync("div", { key: '1086cd53128b3312632be7e791fdb83c2b44a931', class: `toast toast-${this.color}` }, hAsync("road-icon", { key: '053ac170976e5266f80b584943ef9fe6c440d290', class: "toast-icon", icon: icon, "aria-hidden": "true" }), hAsync("p", { key: 'edcbf5c89984660d5c8eb82a329d22ea941e6fdc', class: "toast-label" }, this.label), hAsync("button", { key: '7ca0f0ee6c0166be548ff66423772dd8f74b0ecb', type: "button", class: "toast-close", "aria-label": "Close", onClick: this.onClick }, hAsync("road-icon", { key: 'd11b87da89cf1057349214b04468e387484db3da', icon: navigationClose, size: "md" })), hAsync("slot", { key: 'd4db3d4c547ea47bd1aab1a462b8975d8b4368d6', name: "progress" }))));
|
|
35618
35606
|
}
|
|
35619
35607
|
static get watchers() { return {
|
|
35620
35608
|
"isOpen": ["isOpenChanged"]
|
|
@@ -35654,7 +35642,7 @@ class Toolbar {
|
|
|
35654
35642
|
}
|
|
35655
35643
|
render() {
|
|
35656
35644
|
const colorClass = this.color !== undefined ? `toolbar-${this.color}` : '';
|
|
35657
|
-
return (hAsync(Host, { key: '
|
|
35645
|
+
return (hAsync(Host, { key: '3babdf893a7a89e310b620737ef852ee133ccebb', class: colorClass }, hAsync("div", { key: 'de9400a86c87d427d22b496cd6ceb31cb93ccf54', class: "toolbar-container" }, hAsync("slot", { key: '50559e69631b7581ad67338aea96acd42926b9ab', name: "start" }), hAsync("slot", { key: '40bcbd63fb2f83d7c8294154734c58c0650ee182', name: "primary" }), hAsync("div", { key: '4eec60ca600f33e3e0c6d9056c9913d8df7e62bd', class: "toolbar-content" }, hAsync("slot", { key: 'f1105dc9a8ac7ff4cfc7e8e166d8a0e13c1bee73' })), hAsync("slot", { key: 'ca6e18fc20fb0a636d54573ffb99074940e41bcc', name: "secondary" }), hAsync("slot", { key: 'c73721561d9d3d38c38a9dc453757b185bbd81a5', name: "end" }))));
|
|
35658
35646
|
}
|
|
35659
35647
|
static get style() { return RoadToolbarStyle0; }
|
|
35660
35648
|
static get cmpMeta() { return {
|
|
@@ -35680,7 +35668,7 @@ class ToolbarAppName {
|
|
|
35680
35668
|
registerInstance(this, hostRef);
|
|
35681
35669
|
}
|
|
35682
35670
|
render() {
|
|
35683
|
-
return (hAsync("div", { key: '
|
|
35671
|
+
return (hAsync("div", { key: 'dc61258415913c4112dd06bcc23a94db38fab00e', class: "toolbar-title-page" }, hAsync("slot", { key: 'f39c19ff690566100558556751e8380bb448eb72' })));
|
|
35684
35672
|
}
|
|
35685
35673
|
static get style() { return RoadToolbarTitlePageStyle0; }
|
|
35686
35674
|
static get cmpMeta() { return {
|
|
@@ -35704,7 +35692,7 @@ class ToolbarTitle {
|
|
|
35704
35692
|
registerInstance(this, hostRef);
|
|
35705
35693
|
}
|
|
35706
35694
|
render() {
|
|
35707
|
-
return (hAsync("div", { key: '
|
|
35695
|
+
return (hAsync("div", { key: '79254e204a533572207f3779ee0d20d814bbbecd', class: "toolbar-title" }, hAsync("slot", { key: '29cce3ccf19f113e99e1b2b4c84322efc0b94f94' })));
|
|
35708
35696
|
}
|
|
35709
35697
|
static get style() { return RoadToolbarTitleStyle0; }
|
|
35710
35698
|
static get cmpMeta() { return {
|
|
@@ -35733,7 +35721,7 @@ class ToolbarV2 {
|
|
|
35733
35721
|
registerInstance(this, hostRef);
|
|
35734
35722
|
}
|
|
35735
35723
|
render() {
|
|
35736
|
-
return (hAsync(Host, { key: '
|
|
35724
|
+
return (hAsync(Host, { key: 'a020bd723a459c6bb443645007df7b1f215ea851', class: "toolbar" }, hAsync("div", { key: '2d2cc4b896593cf69c7046ee877b5c9b7ba53eb5', class: "toolbar-container" }, hAsync("div", { key: '55c6f4b55cc7c5ddae5965a156bcfb6cafec1d49', class: "toolbar-container-content-left" }, hAsync("slot", { key: '6b249b32d73240846717ac50a8d1544511a2fe6d', name: "start" }), hAsync("slot", { key: '9187ad0c4fc712d3ad16af1f72db9bd7382d8e6e', name: "primary" })), hAsync("div", { key: 'f5936eb58c38d6cd5758d213f40e6bc09df3f7e8', class: "toolbar-content" }, hAsync("slot", { key: 'c61051186fb1f726fcc104d9f3a827e091b46ff3' })), hAsync("div", { key: '7ee04f220d5377315bc8c320461963def7a7d05f', class: "toolbar-container-content-right" }, hAsync("slot", { key: '196976ade22edf382dee91352082d31b5fce015f', name: "secondary" }), hAsync("slot", { key: 'ea25da8140c7525ce6ed3e712c64ccb105fcbb71', name: "end" })))));
|
|
35737
35725
|
}
|
|
35738
35726
|
static get style() { return RoadToolbarV2Style0; }
|
|
35739
35727
|
static get cmpMeta() { return {
|
|
@@ -35846,12 +35834,12 @@ class Tooltip {
|
|
|
35846
35834
|
return triggers.includes(triggerType);
|
|
35847
35835
|
}
|
|
35848
35836
|
render() {
|
|
35849
|
-
return (hAsync(Host, { key: '
|
|
35837
|
+
return (hAsync(Host, { key: 'a41350a6114e63e0d73759b29c0afa19d467ac4b', onMouseOver: this.onMouseOver, onMouseOut: this.onMouseOut, onClick: this.onClick, onFocus: this.onFocus, onBlur: this.onBlur, tabindex: "0" // Makes the element focusable
|
|
35850
35838
|
,
|
|
35851
|
-
"data-tooltip-position": this.position }, hAsync("slot", { key: '
|
|
35839
|
+
"data-tooltip-position": this.position }, hAsync("slot", { key: 'e2985be0f2af606eb675875a1ef0e53190c54b50', "aria-describedby": this.tooltipId }), hAsync("div", { key: '45f8da72265c812ebbc781cafd7356f02294c2ae', part: "tooltip", id: this.tooltipId, class: {
|
|
35852
35840
|
tooltip: true,
|
|
35853
35841
|
'tooltip-open': this.isOpen,
|
|
35854
|
-
}, role: "tooltip", "aria-hidden": !this.isOpen ? 'true' : 'false' }, this.content, hAsync("slot", { key: '
|
|
35842
|
+
}, role: "tooltip", "aria-hidden": !this.isOpen ? 'true' : 'false' }, this.content, hAsync("slot", { key: 'a3d80cc2d48e26c0a5c2f45e38854601c1f3ea83', name: "tooltip-content" }))));
|
|
35855
35843
|
}
|
|
35856
35844
|
get el() { return getElement(this); }
|
|
35857
35845
|
static get style() { return RoadTooltipStyle0; }
|
|
@@ -35951,11 +35939,11 @@ class toggle {
|
|
|
35951
35939
|
}
|
|
35952
35940
|
render() {
|
|
35953
35941
|
const labelId = this.toggleId + '-label';
|
|
35954
|
-
const textLabel = hAsync("label", { key: '
|
|
35942
|
+
const textLabel = hAsync("label", { key: 'd8f6f793ae322fc4f3c78d627858836a8ace0b1e', class: "form-toggle-label", id: labelId, htmlFor: this.toggleId }, this.label);
|
|
35955
35943
|
const isSpacedClass = this.isSpaced && 'form-toggle-spaced';
|
|
35956
35944
|
const righttoggleClass = this.hasLeftLabel ? 'form-toggle-right' : '';
|
|
35957
35945
|
const disabledClass = this.disabled ? 'disabled' : '';
|
|
35958
|
-
return (hAsync(Host, { key: '
|
|
35946
|
+
return (hAsync(Host, { key: '5b975533cbd7705fb47773942d43ca00f9c67777' }, hAsync("input", { key: '2f02aaaf3815db82b246eccc65b95ff80028fef3', 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 }), hAsync("label", { key: '922fd52175937ca1749eac085776411c2f6b2517', class: `form-toggle-label ${isSpacedClass} ${disabledClass}`, htmlFor: this.toggleId }, this.hasLeftLabel && textLabel, hAsync("div", { key: '0b7e003b92aaa2bb7f02ac19bba110d959349d84', class: `form-toggle-lever ${righttoggleClass}`, "data-off": this.off, "data-on": this.on }), this.hasLeftLabel ? '' : textLabel)));
|
|
35959
35947
|
}
|
|
35960
35948
|
static get watchers() { return {
|
|
35961
35949
|
"checked": ["checkedChanged"]
|
|
@@ -36480,7 +36468,7 @@ var NAMESPACE = (
|
|
|
36480
36468
|
);
|
|
36481
36469
|
|
|
36482
36470
|
/*
|
|
36483
|
-
Stencil Hydrate Runner v4.27.
|
|
36471
|
+
Stencil Hydrate Runner v4.27.2 | MIT Licensed | https://stenciljs.com
|
|
36484
36472
|
*/
|
|
36485
36473
|
var __defProp = Object.defineProperty;
|
|
36486
36474
|
var __export = (target, all) => {
|
|
@@ -36826,19 +36814,19 @@ var MockCustomElementRegistry = class {
|
|
|
36826
36814
|
this.__whenDefined.delete(tagName);
|
|
36827
36815
|
}
|
|
36828
36816
|
}
|
|
36829
|
-
const
|
|
36830
|
-
if (
|
|
36831
|
-
const hosts =
|
|
36817
|
+
const doc = this.win.document;
|
|
36818
|
+
if (doc != null) {
|
|
36819
|
+
const hosts = doc.querySelectorAll(tagName);
|
|
36832
36820
|
hosts.forEach((host) => {
|
|
36833
36821
|
if (upgradedElements.has(host) === false) {
|
|
36834
|
-
tempDisableCallbacks.add(
|
|
36835
|
-
const upgradedCmp = createCustomElement(this,
|
|
36822
|
+
tempDisableCallbacks.add(doc);
|
|
36823
|
+
const upgradedCmp = createCustomElement(this, doc, tagName);
|
|
36836
36824
|
for (let i = 0; i < host.childNodes.length; i++) {
|
|
36837
36825
|
const childNode = host.childNodes[i];
|
|
36838
36826
|
childNode.remove();
|
|
36839
36827
|
upgradedCmp.appendChild(childNode);
|
|
36840
36828
|
}
|
|
36841
|
-
tempDisableCallbacks.delete(
|
|
36829
|
+
tempDisableCallbacks.delete(doc);
|
|
36842
36830
|
if (proxyElements.has(host)) {
|
|
36843
36831
|
proxyElements.set(host, upgradedCmp);
|
|
36844
36832
|
}
|
|
@@ -45282,11 +45270,11 @@ function parseFragment(fragmentContext, html, options) {
|
|
|
45282
45270
|
// src/mock-doc/parse-util.ts
|
|
45283
45271
|
var docParser = /* @__PURE__ */ new WeakMap();
|
|
45284
45272
|
function parseDocumentUtil(ownerDocument, html) {
|
|
45285
|
-
const
|
|
45286
|
-
|
|
45287
|
-
|
|
45288
|
-
|
|
45289
|
-
return
|
|
45273
|
+
const doc = parse(html.trim(), getParser(ownerDocument));
|
|
45274
|
+
doc.documentElement = doc.firstElementChild;
|
|
45275
|
+
doc.head = doc.documentElement.firstElementChild;
|
|
45276
|
+
doc.body = doc.head.nextElementSibling;
|
|
45277
|
+
return doc;
|
|
45290
45278
|
}
|
|
45291
45279
|
function parseFragmentUtil(ownerDocument, html) {
|
|
45292
45280
|
if (typeof html === "string") {
|
|
@@ -45304,9 +45292,9 @@ function getParser(ownerDocument) {
|
|
|
45304
45292
|
}
|
|
45305
45293
|
const treeAdapter = {
|
|
45306
45294
|
createDocument() {
|
|
45307
|
-
const
|
|
45308
|
-
|
|
45309
|
-
return
|
|
45295
|
+
const doc = ownerDocument.createElement("#document" /* DOCUMENT_NODE */);
|
|
45296
|
+
doc["x-mode"] = "no-quirks";
|
|
45297
|
+
return doc;
|
|
45310
45298
|
},
|
|
45311
45299
|
setNodeSourceCodeLocation(node, location2) {
|
|
45312
45300
|
node.sourceCodeLocation = location2;
|
|
@@ -45344,22 +45332,22 @@ function getParser(ownerDocument) {
|
|
|
45344
45332
|
getTemplateContent(templateElement) {
|
|
45345
45333
|
return templateElement.content;
|
|
45346
45334
|
},
|
|
45347
|
-
setDocumentType(
|
|
45348
|
-
let doctypeNode =
|
|
45335
|
+
setDocumentType(doc, name, publicId, systemId) {
|
|
45336
|
+
let doctypeNode = doc.childNodes.find((n) => n.nodeType === 10 /* DOCUMENT_TYPE_NODE */);
|
|
45349
45337
|
if (doctypeNode == null) {
|
|
45350
45338
|
doctypeNode = ownerDocument.createDocumentTypeNode();
|
|
45351
|
-
|
|
45339
|
+
doc.insertBefore(doctypeNode, doc.firstChild);
|
|
45352
45340
|
}
|
|
45353
45341
|
doctypeNode.nodeValue = "!DOCTYPE";
|
|
45354
45342
|
doctypeNode["x-name"] = name;
|
|
45355
45343
|
doctypeNode["x-publicId"] = publicId;
|
|
45356
45344
|
doctypeNode["x-systemId"] = systemId;
|
|
45357
45345
|
},
|
|
45358
|
-
setDocumentMode(
|
|
45359
|
-
|
|
45346
|
+
setDocumentMode(doc, mode) {
|
|
45347
|
+
doc["x-mode"] = mode;
|
|
45360
45348
|
},
|
|
45361
|
-
getDocumentMode(
|
|
45362
|
-
return
|
|
45349
|
+
getDocumentMode(doc) {
|
|
45350
|
+
return doc["x-mode"];
|
|
45363
45351
|
},
|
|
45364
45352
|
detachNode(node) {
|
|
45365
45353
|
node.remove();
|
|
@@ -45535,9 +45523,9 @@ var jquery_default = (
|
|
|
45535
45523
|
nonce: true,
|
|
45536
45524
|
noModule: true
|
|
45537
45525
|
};
|
|
45538
|
-
function DOMEval(code, node,
|
|
45539
|
-
|
|
45540
|
-
var i2, script =
|
|
45526
|
+
function DOMEval(code, node, doc) {
|
|
45527
|
+
doc = doc || document2;
|
|
45528
|
+
var i2, script = doc.createElement("script");
|
|
45541
45529
|
script.text = code;
|
|
45542
45530
|
if (node) {
|
|
45543
45531
|
for (i2 in preservedScriptAttributes) {
|
|
@@ -45546,7 +45534,7 @@ var jquery_default = (
|
|
|
45546
45534
|
}
|
|
45547
45535
|
}
|
|
45548
45536
|
}
|
|
45549
|
-
|
|
45537
|
+
doc.head.appendChild(script).parentNode.removeChild(script);
|
|
45550
45538
|
}
|
|
45551
45539
|
const jQuery = {};
|
|
45552
45540
|
var version = "4.0.0-pre+9352011a7.dirty +selector", rhtmlSuffix = /HTML$/i, jQueryOrig = function(selector, context) {
|
|
@@ -45683,8 +45671,8 @@ var jquery_default = (
|
|
|
45683
45671
|
},
|
|
45684
45672
|
// Evaluates a script in a provided context; falls back to the global one
|
|
45685
45673
|
// if not specified.
|
|
45686
|
-
globalEval: function(code, options,
|
|
45687
|
-
DOMEval(code, { nonce: options && options.nonce },
|
|
45674
|
+
globalEval: function(code, options, doc) {
|
|
45675
|
+
DOMEval(code, { nonce: options && options.nonce }, doc);
|
|
45688
45676
|
},
|
|
45689
45677
|
each: function(obj, callback) {
|
|
45690
45678
|
var length, i2 = 0;
|
|
@@ -46173,11 +46161,11 @@ var jquery_default = (
|
|
|
46173
46161
|
});
|
|
46174
46162
|
}
|
|
46175
46163
|
function setDocument(node) {
|
|
46176
|
-
var subWindow,
|
|
46177
|
-
if (
|
|
46164
|
+
var subWindow, doc = node ? node.ownerDocument || node : document2;
|
|
46165
|
+
if (doc == document$1 || doc.nodeType !== 9) {
|
|
46178
46166
|
return;
|
|
46179
46167
|
}
|
|
46180
|
-
document$1 =
|
|
46168
|
+
document$1 = doc;
|
|
46181
46169
|
documentElement$1 = document$1.documentElement;
|
|
46182
46170
|
documentIsHTML = !jQuery.isXMLDoc(document$1);
|
|
46183
46171
|
if (isIE && document2 != document$1 && (subWindow = document$1.defaultView) && subWindow.top !== subWindow) {
|
|
@@ -50522,10 +50510,10 @@ var MockDocument = class _MockDocument extends MockHTMLElement {
|
|
|
50522
50510
|
}
|
|
50523
50511
|
createElement(tagName) {
|
|
50524
50512
|
if (tagName === "#document" /* DOCUMENT_NODE */) {
|
|
50525
|
-
const
|
|
50526
|
-
|
|
50527
|
-
|
|
50528
|
-
return
|
|
50513
|
+
const doc = new _MockDocument(false);
|
|
50514
|
+
doc.nodeName = tagName;
|
|
50515
|
+
doc.parentNode = null;
|
|
50516
|
+
return doc;
|
|
50529
50517
|
}
|
|
50530
50518
|
return createElement(this, tagName);
|
|
50531
50519
|
}
|
|
@@ -50565,10 +50553,10 @@ var MockDocument = class _MockDocument extends MockHTMLElement {
|
|
|
50565
50553
|
title.textContent = value;
|
|
50566
50554
|
}
|
|
50567
50555
|
};
|
|
50568
|
-
function resetDocument(
|
|
50569
|
-
if (
|
|
50570
|
-
resetEventListeners(
|
|
50571
|
-
const documentElement =
|
|
50556
|
+
function resetDocument(doc) {
|
|
50557
|
+
if (doc != null) {
|
|
50558
|
+
resetEventListeners(doc);
|
|
50559
|
+
const documentElement = doc.documentElement;
|
|
50572
50560
|
if (documentElement != null) {
|
|
50573
50561
|
resetElement(documentElement);
|
|
50574
50562
|
for (let i = 0, ii = documentElement.childNodes.length; i < ii; i++) {
|
|
@@ -50577,25 +50565,25 @@ function resetDocument(doc2) {
|
|
|
50577
50565
|
childNode.childNodes.length = 0;
|
|
50578
50566
|
}
|
|
50579
50567
|
}
|
|
50580
|
-
for (const key in
|
|
50581
|
-
if (
|
|
50582
|
-
delete
|
|
50568
|
+
for (const key in doc) {
|
|
50569
|
+
if (doc.hasOwnProperty(key) && !DOC_KEY_KEEPERS.has(key)) {
|
|
50570
|
+
delete doc[key];
|
|
50583
50571
|
}
|
|
50584
50572
|
}
|
|
50585
50573
|
try {
|
|
50586
|
-
|
|
50574
|
+
doc.nodeName = "#document" /* DOCUMENT_NODE */;
|
|
50587
50575
|
} catch (e) {
|
|
50588
50576
|
}
|
|
50589
50577
|
try {
|
|
50590
|
-
|
|
50578
|
+
doc.nodeType = 9 /* DOCUMENT_NODE */;
|
|
50591
50579
|
} catch (e) {
|
|
50592
50580
|
}
|
|
50593
50581
|
try {
|
|
50594
|
-
|
|
50582
|
+
doc.cookie = "";
|
|
50595
50583
|
} catch (e) {
|
|
50596
50584
|
}
|
|
50597
50585
|
try {
|
|
50598
|
-
|
|
50586
|
+
doc.referrer = "";
|
|
50599
50587
|
} catch (e) {
|
|
50600
50588
|
}
|
|
50601
50589
|
}
|
|
@@ -50665,7 +50653,6 @@ var STENCIL_DEV_MODE = BUILD.isTesting ? ["STENCIL:"] : [
|
|
|
50665
50653
|
"color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"
|
|
50666
50654
|
];
|
|
50667
50655
|
var win = typeof window !== "undefined" ? window : {};
|
|
50668
|
-
var doc = win.document || { head: {} };
|
|
50669
50656
|
var H = win.HTMLElement || class {
|
|
50670
50657
|
};
|
|
50671
50658
|
var supportsShadow = BUILD.shadowDom;
|
|
@@ -50799,14 +50786,14 @@ var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
|
50799
50786
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
50800
50787
|
|
|
50801
50788
|
// src/compiler/html/canonical-link.ts
|
|
50802
|
-
var updateCanonicalLink = (
|
|
50789
|
+
var updateCanonicalLink = (doc, href) => {
|
|
50803
50790
|
var _a2;
|
|
50804
|
-
let canonicalLinkElm =
|
|
50791
|
+
let canonicalLinkElm = doc.head.querySelector('link[rel="canonical"]');
|
|
50805
50792
|
if (typeof href === "string") {
|
|
50806
50793
|
if (canonicalLinkElm == null) {
|
|
50807
|
-
canonicalLinkElm =
|
|
50794
|
+
canonicalLinkElm = doc.createElement("link");
|
|
50808
50795
|
canonicalLinkElm.setAttribute("rel", "canonical");
|
|
50809
|
-
|
|
50796
|
+
doc.head.appendChild(canonicalLinkElm);
|
|
50810
50797
|
}
|
|
50811
50798
|
canonicalLinkElm.setAttribute("href", href);
|
|
50812
50799
|
} else {
|
|
@@ -50820,11 +50807,11 @@ var updateCanonicalLink = (doc2, href) => {
|
|
|
50820
50807
|
};
|
|
50821
50808
|
|
|
50822
50809
|
// src/compiler/html/relocate-meta-charset.ts
|
|
50823
|
-
var relocateMetaCharset = (
|
|
50824
|
-
const head =
|
|
50810
|
+
var relocateMetaCharset = (doc) => {
|
|
50811
|
+
const head = doc.head;
|
|
50825
50812
|
let charsetElm = head.querySelector("meta[charset]");
|
|
50826
50813
|
if (charsetElm == null) {
|
|
50827
|
-
charsetElm =
|
|
50814
|
+
charsetElm = doc.createElement("meta");
|
|
50828
50815
|
charsetElm.setAttribute("charset", "utf-8");
|
|
50829
50816
|
} else {
|
|
50830
50817
|
charsetElm.remove();
|
|
@@ -51099,13 +51086,13 @@ var parseCss = (css, filePath) => {
|
|
|
51099
51086
|
const m = match(/^@([-\w]+)?document *([^{]+)/);
|
|
51100
51087
|
if (!m) return null;
|
|
51101
51088
|
const vendor = trim(m[1]);
|
|
51102
|
-
const
|
|
51089
|
+
const doc = trim(m[2]);
|
|
51103
51090
|
if (!open()) return error(`@document missing '{'`);
|
|
51104
51091
|
const style = comments().concat(rules());
|
|
51105
51092
|
if (!close()) return error(`@document missing '}'`);
|
|
51106
51093
|
return pos({
|
|
51107
51094
|
type: 3 /* Document */,
|
|
51108
|
-
document:
|
|
51095
|
+
document: doc,
|
|
51109
51096
|
vendor,
|
|
51110
51097
|
rules: style
|
|
51111
51098
|
});
|
|
@@ -51431,11 +51418,11 @@ var serializeCssPage = (opts, node) => {
|
|
|
51431
51418
|
};
|
|
51432
51419
|
var serializeCssDocument = (opts, node) => {
|
|
51433
51420
|
const documentCss = serializeCssMapVisit(opts, node.rules);
|
|
51434
|
-
const
|
|
51421
|
+
const doc = "@" + (node.vendor || "") + "document " + node.document;
|
|
51435
51422
|
if (documentCss === "") {
|
|
51436
51423
|
return "";
|
|
51437
51424
|
}
|
|
51438
|
-
return
|
|
51425
|
+
return doc + "{" + documentCss + "}";
|
|
51439
51426
|
};
|
|
51440
51427
|
var serializeCssMapVisit = (opts, nodes) => {
|
|
51441
51428
|
let rtn = "";
|
|
@@ -51533,12 +51520,12 @@ var collectUsedSelectors = (usedSelectors, elm) => {
|
|
|
51533
51520
|
};
|
|
51534
51521
|
|
|
51535
51522
|
// src/compiler/html/remove-unused-styles.ts
|
|
51536
|
-
var removeUnusedStyles = (
|
|
51523
|
+
var removeUnusedStyles = (doc, diagnostics) => {
|
|
51537
51524
|
try {
|
|
51538
|
-
const styleElms =
|
|
51525
|
+
const styleElms = doc.head.querySelectorAll(`style[data-styles]`);
|
|
51539
51526
|
const styleLen = styleElms.length;
|
|
51540
51527
|
if (styleLen > 0) {
|
|
51541
|
-
const usedSelectors = getUsedSelectors(
|
|
51528
|
+
const usedSelectors = getUsedSelectors(doc.documentElement);
|
|
51542
51529
|
for (let i = 0; i < styleLen; i++) {
|
|
51543
51530
|
removeUnusedStyleText(usedSelectors, diagnostics, styleElms[i]);
|
|
51544
51531
|
}
|
|
@@ -51671,41 +51658,41 @@ function collectAttributes(node) {
|
|
|
51671
51658
|
var SKIP_ATTRS = /* @__PURE__ */ new Set(["s-id", "c-id"]);
|
|
51672
51659
|
|
|
51673
51660
|
// src/hydrate/runner/patch-dom-implementation.ts
|
|
51674
|
-
function patchDomImplementation(
|
|
51661
|
+
function patchDomImplementation(doc, opts) {
|
|
51675
51662
|
let win2;
|
|
51676
|
-
if (
|
|
51663
|
+
if (doc.defaultView != null) {
|
|
51677
51664
|
opts.destroyWindow = true;
|
|
51678
|
-
patchWindow(
|
|
51679
|
-
win2 =
|
|
51665
|
+
patchWindow(doc.defaultView);
|
|
51666
|
+
win2 = doc.defaultView;
|
|
51680
51667
|
} else {
|
|
51681
51668
|
opts.destroyWindow = true;
|
|
51682
51669
|
opts.destroyDocument = false;
|
|
51683
51670
|
win2 = new MockWindow(false);
|
|
51684
51671
|
}
|
|
51685
|
-
if (win2.document !==
|
|
51686
|
-
win2.document =
|
|
51672
|
+
if (win2.document !== doc) {
|
|
51673
|
+
win2.document = doc;
|
|
51687
51674
|
}
|
|
51688
|
-
if (
|
|
51689
|
-
|
|
51675
|
+
if (doc.defaultView !== win2) {
|
|
51676
|
+
doc.defaultView = win2;
|
|
51690
51677
|
}
|
|
51691
|
-
const HTMLElement2 =
|
|
51678
|
+
const HTMLElement2 = doc.documentElement.constructor.prototype;
|
|
51692
51679
|
if (typeof HTMLElement2.getRootNode !== "function") {
|
|
51693
|
-
const elm =
|
|
51680
|
+
const elm = doc.createElement("unknown-element");
|
|
51694
51681
|
const HTMLUnknownElement = elm.constructor.prototype;
|
|
51695
51682
|
HTMLUnknownElement.getRootNode = getRootNode;
|
|
51696
51683
|
}
|
|
51697
|
-
if (typeof
|
|
51698
|
-
const CustomEvent2 =
|
|
51684
|
+
if (typeof doc.createEvent === "function") {
|
|
51685
|
+
const CustomEvent2 = doc.createEvent("CustomEvent").constructor;
|
|
51699
51686
|
if (win2.CustomEvent !== CustomEvent2) {
|
|
51700
51687
|
win2.CustomEvent = CustomEvent2;
|
|
51701
51688
|
}
|
|
51702
51689
|
}
|
|
51703
51690
|
try {
|
|
51704
|
-
win2.__stencil_baseURI =
|
|
51691
|
+
win2.__stencil_baseURI = doc.baseURI;
|
|
51705
51692
|
} catch (e) {
|
|
51706
|
-
Object.defineProperty(
|
|
51693
|
+
Object.defineProperty(doc, "baseURI", {
|
|
51707
51694
|
get() {
|
|
51708
|
-
const baseElm =
|
|
51695
|
+
const baseElm = doc.querySelector("base[href]");
|
|
51709
51696
|
if (baseElm) {
|
|
51710
51697
|
return new URL(baseElm.getAttribute("href"), win2.location.href).href;
|
|
51711
51698
|
}
|
|
@@ -51916,7 +51903,7 @@ var docData = {
|
|
|
51916
51903
|
rootLevelIds: 0,
|
|
51917
51904
|
staticComponents: /* @__PURE__ */ new Set()
|
|
51918
51905
|
};
|
|
51919
|
-
function initializeWindow(win2,
|
|
51906
|
+
function initializeWindow(win2, doc, opts, results) {
|
|
51920
51907
|
if (typeof opts.url === "string") {
|
|
51921
51908
|
try {
|
|
51922
51909
|
win2.location.href = opts.url;
|
|
@@ -51931,31 +51918,31 @@ function initializeWindow(win2, doc2, opts, results) {
|
|
|
51931
51918
|
}
|
|
51932
51919
|
if (typeof opts.cookie === "string") {
|
|
51933
51920
|
try {
|
|
51934
|
-
|
|
51921
|
+
doc.cookie = opts.cookie;
|
|
51935
51922
|
} catch (e) {
|
|
51936
51923
|
}
|
|
51937
51924
|
}
|
|
51938
51925
|
if (typeof opts.referrer === "string") {
|
|
51939
51926
|
try {
|
|
51940
|
-
|
|
51927
|
+
doc.referrer = opts.referrer;
|
|
51941
51928
|
} catch (e) {
|
|
51942
51929
|
}
|
|
51943
51930
|
}
|
|
51944
51931
|
if (typeof opts.direction === "string") {
|
|
51945
51932
|
try {
|
|
51946
|
-
|
|
51933
|
+
doc.documentElement.setAttribute("dir", opts.direction);
|
|
51947
51934
|
} catch (e) {
|
|
51948
51935
|
}
|
|
51949
51936
|
}
|
|
51950
51937
|
if (typeof opts.language === "string") {
|
|
51951
51938
|
try {
|
|
51952
|
-
|
|
51939
|
+
doc.documentElement.setAttribute("lang", opts.language);
|
|
51953
51940
|
} catch (e) {
|
|
51954
51941
|
}
|
|
51955
51942
|
}
|
|
51956
51943
|
if (typeof opts.buildId === "string") {
|
|
51957
51944
|
try {
|
|
51958
|
-
|
|
51945
|
+
doc.documentElement.setAttribute("data-stencil-build", opts.buildId);
|
|
51959
51946
|
} catch (e) {
|
|
51960
51947
|
}
|
|
51961
51948
|
}
|
|
@@ -51967,7 +51954,7 @@ function initializeWindow(win2, doc2, opts, results) {
|
|
|
51967
51954
|
constrainTimeouts(win2);
|
|
51968
51955
|
}
|
|
51969
51956
|
runtimeLogging(win2, opts, results);
|
|
51970
|
-
|
|
51957
|
+
doc[STENCIL_DOC_DATA] = docData;
|
|
51971
51958
|
return win2;
|
|
51972
51959
|
}
|
|
51973
51960
|
|
|
@@ -51985,18 +51972,18 @@ function renderToString(html, options, asStream) {
|
|
|
51985
51972
|
opts.constrainTimeouts = false;
|
|
51986
51973
|
return hydrateDocument(html, opts, asStream);
|
|
51987
51974
|
}
|
|
51988
|
-
function hydrateDocument(
|
|
51975
|
+
function hydrateDocument(doc, options, asStream) {
|
|
51989
51976
|
const opts = normalizeHydrateOptions(options);
|
|
51990
51977
|
let win2 = null;
|
|
51991
51978
|
const results = generateHydrateResults(opts);
|
|
51992
51979
|
if (hasError(results.diagnostics)) {
|
|
51993
51980
|
return Promise.resolve(results);
|
|
51994
51981
|
}
|
|
51995
|
-
if (typeof
|
|
51982
|
+
if (typeof doc === "string") {
|
|
51996
51983
|
try {
|
|
51997
51984
|
opts.destroyWindow = true;
|
|
51998
51985
|
opts.destroyDocument = true;
|
|
51999
|
-
win2 = new MockWindow(
|
|
51986
|
+
win2 = new MockWindow(doc);
|
|
52000
51987
|
if (!asStream) {
|
|
52001
51988
|
return render(win2, opts, results).then(() => results);
|
|
52002
51989
|
}
|
|
@@ -52010,10 +51997,10 @@ function hydrateDocument(doc2, options, asStream) {
|
|
|
52010
51997
|
return Promise.resolve(results);
|
|
52011
51998
|
}
|
|
52012
51999
|
}
|
|
52013
|
-
if (isValidDocument(
|
|
52000
|
+
if (isValidDocument(doc)) {
|
|
52014
52001
|
try {
|
|
52015
52002
|
opts.destroyDocument = false;
|
|
52016
|
-
win2 = patchDomImplementation(
|
|
52003
|
+
win2 = patchDomImplementation(doc, opts);
|
|
52017
52004
|
if (!asStream) {
|
|
52018
52005
|
return render(win2, opts, results).then(() => results);
|
|
52019
52006
|
}
|
|
@@ -52070,41 +52057,41 @@ async function afterHydrate(win2, opts, results, resolve) {
|
|
|
52070
52057
|
return resolve(finalizeHydrate(win2, win2.document, opts, results));
|
|
52071
52058
|
}
|
|
52072
52059
|
}
|
|
52073
|
-
function finalizeHydrate(win2,
|
|
52060
|
+
function finalizeHydrate(win2, doc, opts, results) {
|
|
52074
52061
|
try {
|
|
52075
|
-
inspectElement(results,
|
|
52062
|
+
inspectElement(results, doc.documentElement, 0);
|
|
52076
52063
|
if (opts.removeUnusedStyles !== false) {
|
|
52077
52064
|
try {
|
|
52078
|
-
removeUnusedStyles(
|
|
52065
|
+
removeUnusedStyles(doc, results.diagnostics);
|
|
52079
52066
|
} catch (e) {
|
|
52080
52067
|
renderCatchError(results, e);
|
|
52081
52068
|
}
|
|
52082
52069
|
}
|
|
52083
52070
|
if (typeof opts.title === "string") {
|
|
52084
52071
|
try {
|
|
52085
|
-
|
|
52072
|
+
doc.title = opts.title;
|
|
52086
52073
|
} catch (e) {
|
|
52087
52074
|
renderCatchError(results, e);
|
|
52088
52075
|
}
|
|
52089
52076
|
}
|
|
52090
|
-
results.title =
|
|
52077
|
+
results.title = doc.title;
|
|
52091
52078
|
if (opts.removeScripts) {
|
|
52092
|
-
removeScripts(
|
|
52079
|
+
removeScripts(doc.documentElement);
|
|
52093
52080
|
}
|
|
52094
52081
|
try {
|
|
52095
|
-
updateCanonicalLink(
|
|
52082
|
+
updateCanonicalLink(doc, opts.canonicalUrl);
|
|
52096
52083
|
} catch (e) {
|
|
52097
52084
|
renderCatchError(results, e);
|
|
52098
52085
|
}
|
|
52099
52086
|
try {
|
|
52100
|
-
relocateMetaCharset(
|
|
52087
|
+
relocateMetaCharset(doc);
|
|
52101
52088
|
} catch (e) {
|
|
52102
52089
|
}
|
|
52103
52090
|
if (!hasError(results.diagnostics)) {
|
|
52104
52091
|
results.httpStatus = 200;
|
|
52105
52092
|
}
|
|
52106
52093
|
try {
|
|
52107
|
-
const metaStatus =
|
|
52094
|
+
const metaStatus = doc.head.querySelector('meta[http-equiv="status"]');
|
|
52108
52095
|
if (metaStatus != null) {
|
|
52109
52096
|
const metaStatusContent = metaStatus.getAttribute("content");
|
|
52110
52097
|
if (metaStatusContent && metaStatusContent.length > 0) {
|
|
@@ -52114,25 +52101,25 @@ function finalizeHydrate(win2, doc2, opts, results) {
|
|
|
52114
52101
|
} catch (e) {
|
|
52115
52102
|
}
|
|
52116
52103
|
if (opts.clientHydrateAnnotations) {
|
|
52117
|
-
|
|
52104
|
+
doc.documentElement.classList.add("hydrated");
|
|
52118
52105
|
}
|
|
52119
52106
|
if (opts.serializeToHtml) {
|
|
52120
|
-
results.html = serializeDocumentToString(
|
|
52107
|
+
results.html = serializeDocumentToString(doc, opts);
|
|
52121
52108
|
}
|
|
52122
52109
|
} catch (e) {
|
|
52123
52110
|
renderCatchError(results, e);
|
|
52124
52111
|
}
|
|
52125
|
-
destroyWindow(win2,
|
|
52112
|
+
destroyWindow(win2, doc, opts, results);
|
|
52126
52113
|
return results;
|
|
52127
52114
|
}
|
|
52128
|
-
function destroyWindow(win2,
|
|
52115
|
+
function destroyWindow(win2, doc, opts, results) {
|
|
52129
52116
|
if (!opts.destroyWindow) {
|
|
52130
52117
|
return;
|
|
52131
52118
|
}
|
|
52132
52119
|
try {
|
|
52133
52120
|
if (!opts.destroyDocument) {
|
|
52134
52121
|
win2.document = null;
|
|
52135
|
-
|
|
52122
|
+
doc.defaultView = null;
|
|
52136
52123
|
}
|
|
52137
52124
|
if (win2.close) {
|
|
52138
52125
|
win2.close();
|
|
@@ -52141,8 +52128,8 @@ function destroyWindow(win2, doc2, opts, results) {
|
|
|
52141
52128
|
renderCatchError(results, e);
|
|
52142
52129
|
}
|
|
52143
52130
|
}
|
|
52144
|
-
function serializeDocumentToString(
|
|
52145
|
-
return serializeNodeToHtml(
|
|
52131
|
+
function serializeDocumentToString(doc, opts) {
|
|
52132
|
+
return serializeNodeToHtml(doc, {
|
|
52146
52133
|
approximateLineWidth: opts.approximateLineWidth,
|
|
52147
52134
|
outerHtml: false,
|
|
52148
52135
|
prettyHtml: opts.prettyHtml,
|
|
@@ -52154,8 +52141,8 @@ function serializeDocumentToString(doc2, opts) {
|
|
|
52154
52141
|
fullDocument: opts.fullDocument
|
|
52155
52142
|
});
|
|
52156
52143
|
}
|
|
52157
|
-
function isValidDocument(
|
|
52158
|
-
return
|
|
52144
|
+
function isValidDocument(doc) {
|
|
52145
|
+
return doc != null && doc.nodeType === 9 && doc.documentElement != null && doc.documentElement.nodeType === 1 && doc.body != null && doc.body.nodeType === 1;
|
|
52159
52146
|
}
|
|
52160
52147
|
function removeScripts(elm) {
|
|
52161
52148
|
const children = elm.children;
|