@roadtrip/components 3.32.1 → 3.32.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-aadb3ac9.js → index-fee0103c.js} +253 -158
- package/dist/cjs/index-fee0103c.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/road-accordion.cjs.entry.js +1 -1
- package/dist/cjs/road-alert.cjs.entry.js +1 -1
- package/dist/cjs/road-area-code.cjs.entry.js +1 -1
- package/dist/cjs/road-asset.cjs.entry.js +2 -2
- package/dist/cjs/road-autocomplete.cjs.entry.js +1 -1
- package/dist/cjs/road-avatar.cjs.entry.js +1 -1
- package/dist/cjs/road-badge_14.cjs.entry.js +14 -12
- package/dist/cjs/road-badge_14.cjs.entry.js.map +1 -1
- package/dist/cjs/road-banner.cjs.entry.js +1 -1
- package/dist/cjs/road-button-floating.cjs.entry.js +1 -1
- package/dist/cjs/road-card.cjs.entry.js +1 -1
- package/dist/cjs/road-carousel-item.cjs.entry.js +1 -1
- package/dist/cjs/road-carousel.cjs.entry.js +1 -1
- package/dist/cjs/road-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/road-chip.cjs.entry.js +1 -1
- package/dist/cjs/road-collapse.cjs.entry.js +1 -1
- package/dist/cjs/road-content-card.cjs.entry.js +1 -1
- package/dist/cjs/road-dialog.cjs.entry.js +1 -1
- package/dist/cjs/road-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/road-duration.cjs.entry.js +1 -1
- package/dist/cjs/road-flap.cjs.entry.js +1 -1
- package/dist/cjs/road-global-navigation-v2.cjs.entry.js +1 -1
- package/dist/cjs/road-global-navigation.cjs.entry.js +1 -1
- package/dist/cjs/road-illustration.cjs.entry.js +2 -2
- package/dist/cjs/road-img.cjs.entry.js +1 -1
- package/dist/cjs/road-modal.cjs.entry.js +1 -1
- package/dist/cjs/road-navbar-item-v2.cjs.entry.js +1 -1
- package/dist/cjs/road-navbar-item.cjs.entry.js +1 -1
- package/dist/cjs/road-navbar-v2.cjs.entry.js +1 -1
- package/dist/cjs/road-navbar.cjs.entry.js +1 -1
- package/dist/cjs/road-phone-number-input.cjs.entry.js +1 -1
- package/dist/cjs/road-plate-number.cjs.entry.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/cjs/road-segmented-buttons.cjs.entry.js +1 -1
- package/dist/cjs/road-select-filter.cjs.entry.js +1 -1
- package/dist/cjs/road-select.cjs.entry.js +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 +1 -1
- package/dist/cjs/road-tab-bar.cjs.entry.js +1 -1
- package/dist/cjs/road-tab-button.cjs.entry.js +1 -1
- package/dist/cjs/road-tab.cjs.entry.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/cjs/roadtrip.cjs.js +3 -3
- package/dist/cjs/roadtrip.cjs.js.map +1 -1
- package/dist/cjs/{utils-e0016ab3.js → utils-3baff577.js} +2 -2
- package/dist/cjs/{utils-e0016ab3.js.map → utils-3baff577.js.map} +1 -1
- package/dist/cjs/{utils-25752683.js → utils-9c190d4e.js} +2 -2
- package/dist/cjs/{utils-25752683.js.map → utils-9c190d4e.js.map} +1 -1
- package/dist/cjs/{utils-11a0a9e6.js → utils-e8a9cb28.js} +2 -2
- package/dist/cjs/{utils-11a0a9e6.js.map → utils-e8a9cb28.js.map} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/accordion/accordion.stories.js +2 -1
- package/dist/collection/components/alert/alert.stories.js +1 -1
- package/dist/collection/components/asset/asset.stories.js +1 -1
- package/dist/collection/components/autocomplete/autocomplete.stories.js +1 -1
- package/dist/collection/components/avatar/avatar.stories.js +1 -1
- package/dist/collection/components/badge/badge.stories.js +1 -1
- package/dist/collection/components/banner/banner.stories.js +1 -1
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/button/button.js.map +1 -1
- package/dist/collection/components/button/button.stories.js +1 -1
- package/dist/collection/components/button-floating/button-floating.stories.js +1 -1
- package/dist/collection/components/card/card.stories.js +1 -1
- package/dist/collection/components/carousel/carousel.stories.js +1 -1
- package/dist/collection/components/checkbox/checkbox.stories.js +1 -1
- package/dist/collection/components/chip/chip.stories.js +1 -1
- package/dist/collection/components/collapse/collapse.stories.js +1 -1
- package/dist/collection/components/content-card/content-card.stories.js +1 -1
- package/dist/collection/components/counter/counter.stories.js +1 -1
- package/dist/collection/components/dialog/dialog.stories.js +1 -1
- package/dist/collection/components/drawer/drawer.stories.js +1 -1
- package/dist/collection/components/dropdown/dropdown.stories.js +1 -1
- package/dist/collection/components/duration/duration.stories.js +1 -1
- package/dist/collection/components/flap/flap.stories.js +1 -1
- package/dist/collection/components/global-navigation/global-navigation.stories.js +1 -1
- package/dist/collection/components/global-navigation-v2/global-navigation-v2.stories.js +1 -1
- package/dist/collection/components/grid/grid.stories.js +1 -1
- package/dist/collection/components/icon/icon.js +7 -5
- package/dist/collection/components/icon/icon.js.map +1 -1
- package/dist/collection/components/icon/icon.stories.js +1 -1
- package/dist/collection/components/illustration/illustration.stories.js +1 -1
- package/dist/collection/components/img/img.stories.js +1 -1
- package/dist/collection/components/input/input.js +6 -6
- package/dist/collection/components/input/input.js.map +1 -1
- package/dist/collection/components/input/input.stories.js +6 -1
- package/dist/collection/components/input-group/input-group.stories.js +1 -1
- package/dist/collection/components/item/item.stories.js +1 -1
- package/dist/collection/components/list/list.stories.js +1 -1
- package/dist/collection/components/modal/modal.stories.js +1 -1
- package/dist/collection/components/navbar/navbar.stories.js +1 -1
- package/dist/collection/components/navbar-v2/navbar-v2.stories.js +1 -1
- package/dist/collection/components/patterns/breadcrumb.stories.js +1 -1
- package/dist/collection/components/patterns/crossselling.stories.js +1 -1
- package/dist/collection/components/patterns/filter.stories.js +1 -1
- package/dist/collection/components/patterns/link.stories.js +1 -1
- package/dist/collection/components/phone-number-input/phone-number-input.stories.js +1 -1
- package/dist/collection/components/plate-number/plate-number.stories.js +1 -1
- package/dist/collection/components/profil-dropdown/profil-dropdown.stories.js +1 -1
- package/dist/collection/components/progress/progress.stories.js +1 -1
- package/dist/collection/components/progress-indicator-horizontal/progress-indicator-horizontal.stories.js +1 -1
- package/dist/collection/components/progress-indicator-vertical/progress-indicator-vertical.stories.js +1 -1
- package/dist/collection/components/progress-tracker/progress-tracker.stories.js +1 -1
- package/dist/collection/components/radio/radio.stories.js +1 -1
- package/dist/collection/components/range/range.stories.js +1 -1
- package/dist/collection/components/rating/rating.stories.js +1 -1
- package/dist/collection/components/segmented-buttons/segmented-buttons.stories.js +1 -1
- package/dist/collection/components/select/select.stories.js +1 -1
- package/dist/collection/components/select-filter/select-filter.stories.js +1 -1
- package/dist/collection/components/skeleton/skeleton.stories.js +1 -1
- package/dist/collection/components/spinner/spinner.stories.js +1 -1
- package/dist/collection/components/table/table.stories.js +1 -1
- package/dist/collection/components/tabs/tabs.stories.js +1 -1
- package/dist/collection/components/tag/tag.stories.js +1 -1
- package/dist/collection/components/text/text.stories.js +1 -1
- package/dist/collection/components/textarea/textarea.stories.js +1 -1
- package/dist/collection/components/toast/toast.stories.js +1 -1
- package/dist/collection/components/toggle/toggle.stories.js +1 -1
- package/dist/collection/components/toolbar/toolbar.stories.js +1 -1
- package/dist/collection/components/toolbar-v2/toolbar-v2.stories.js +1 -1
- package/dist/collection/components/tooltip/tooltip.stories.js +1 -1
- package/dist/collection/components/utilities/border.stories.js +1 -1
- package/dist/collection/components/utilities/color.stories.js +1 -1
- package/dist/collection/components/utilities/flexbox.stories.js +1 -1
- package/dist/collection/components/utilities/text.stories.js +1 -1
- package/dist/collection/components/utilities/typography.stories.js +1 -1
- package/dist/esm/{index-f3c5b68e.js → index-8dc34f94.js} +253 -158
- package/dist/esm/index-8dc34f94.js.map +1 -0
- package/dist/esm/index.js +4 -4
- package/dist/esm/loader.js +3 -3
- package/dist/esm/road-accordion.entry.js +1 -1
- package/dist/esm/road-alert.entry.js +1 -1
- package/dist/esm/road-area-code.entry.js +1 -1
- package/dist/esm/road-asset.entry.js +2 -2
- package/dist/esm/road-autocomplete.entry.js +1 -1
- package/dist/esm/road-avatar.entry.js +1 -1
- package/dist/esm/road-badge_14.entry.js +14 -12
- package/dist/esm/road-badge_14.entry.js.map +1 -1
- package/dist/esm/road-banner.entry.js +1 -1
- package/dist/esm/road-button-floating.entry.js +1 -1
- package/dist/esm/road-card.entry.js +1 -1
- package/dist/esm/road-carousel-item.entry.js +1 -1
- package/dist/esm/road-carousel.entry.js +1 -1
- package/dist/esm/road-checkbox.entry.js +1 -1
- package/dist/esm/road-chip.entry.js +1 -1
- package/dist/esm/road-collapse.entry.js +1 -1
- package/dist/esm/road-content-card.entry.js +1 -1
- package/dist/esm/road-dialog.entry.js +1 -1
- package/dist/esm/road-dropdown.entry.js +1 -1
- package/dist/esm/road-duration.entry.js +1 -1
- package/dist/esm/road-flap.entry.js +1 -1
- package/dist/esm/road-global-navigation-v2.entry.js +1 -1
- package/dist/esm/road-global-navigation.entry.js +1 -1
- package/dist/esm/road-illustration.entry.js +2 -2
- package/dist/esm/road-img.entry.js +1 -1
- package/dist/esm/road-modal.entry.js +1 -1
- package/dist/esm/road-navbar-item-v2.entry.js +1 -1
- package/dist/esm/road-navbar-item.entry.js +1 -1
- package/dist/esm/road-navbar-v2.entry.js +1 -1
- package/dist/esm/road-navbar.entry.js +1 -1
- package/dist/esm/road-phone-number-input.entry.js +1 -1
- package/dist/esm/road-plate-number.entry.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/esm/road-segmented-buttons.entry.js +1 -1
- package/dist/esm/road-select-filter.entry.js +1 -1
- package/dist/esm/road-select.entry.js +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 +1 -1
- package/dist/esm/road-tab-bar.entry.js +1 -1
- package/dist/esm/road-tab-button.entry.js +1 -1
- package/dist/esm/road-tab.entry.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/esm/roadtrip.js +4 -4
- package/dist/esm/roadtrip.js.map +1 -1
- package/dist/esm/{utils-65e8eef3.js → utils-2656386e.js} +2 -2
- package/dist/esm/{utils-65e8eef3.js.map → utils-2656386e.js.map} +1 -1
- package/dist/esm/{utils-d3cec86c.js → utils-3ba26df8.js} +2 -2
- package/dist/esm/{utils-d3cec86c.js.map → utils-3ba26df8.js.map} +1 -1
- package/dist/esm/{utils-8148deff.js → utils-e88238c5.js} +2 -2
- package/dist/esm/{utils-8148deff.js.map → utils-e88238c5.js.map} +1 -1
- package/dist/html.html-data.json +1 -1
- package/dist/roadtrip/index.esm.js +1 -1
- package/dist/roadtrip/{p-4b2920f6.entry.js → p-01be5517.entry.js} +2 -2
- package/dist/roadtrip/{p-18db551b.entry.js → p-03656f9a.entry.js} +2 -2
- package/dist/roadtrip/{p-9e7807f4.entry.js → p-07217e78.entry.js} +2 -2
- package/dist/roadtrip/{p-dac4736d.entry.js → p-0cacf829.entry.js} +2 -2
- package/dist/roadtrip/{p-3c567881.entry.js → p-10e65612.entry.js} +2 -2
- package/dist/roadtrip/{p-b18add2d.entry.js → p-14e42c8d.entry.js} +2 -2
- package/dist/roadtrip/{p-b85b7e2b.entry.js → p-1e61ca1f.entry.js} +2 -2
- package/dist/roadtrip/{p-1e73c3ce.entry.js → p-2301f208.entry.js} +2 -2
- package/dist/roadtrip/{p-6709e3f4.entry.js → p-233b3f06.entry.js} +2 -2
- package/dist/roadtrip/{p-6e822465.entry.js → p-2903bdc0.entry.js} +2 -2
- package/dist/roadtrip/{p-c8438d35.entry.js → p-2a4a0928.entry.js} +2 -2
- package/dist/roadtrip/{p-71769ef4.entry.js → p-2caa518b.entry.js} +2 -2
- package/dist/roadtrip/{p-d9195195.js → p-31b0c1df.js} +2 -2
- package/dist/roadtrip/{p-4a14e21e.entry.js → p-32845e72.entry.js} +2 -2
- package/dist/roadtrip/{p-5dfc9c10.entry.js → p-3f478922.entry.js} +2 -2
- package/dist/roadtrip/{p-2e26072a.entry.js → p-427bd935.entry.js} +2 -2
- package/dist/roadtrip/{p-1fd97505.entry.js → p-443187de.entry.js} +2 -2
- package/dist/roadtrip/{p-b55e3657.entry.js → p-456e1ffe.entry.js} +2 -2
- package/dist/roadtrip/{p-98fdbcfb.entry.js → p-494aab48.entry.js} +2 -2
- package/dist/roadtrip/{p-eec578a2.entry.js → p-4a47999a.entry.js} +2 -2
- package/dist/roadtrip/{p-0801cc18.entry.js → p-4a81230f.entry.js} +2 -2
- package/dist/roadtrip/{p-4ad903fe.js → p-4b2ba695.js} +2 -2
- package/dist/roadtrip/p-4bbc889b.entry.js +2 -0
- package/dist/roadtrip/{p-c4ffc419.entry.js.map → p-4bbc889b.entry.js.map} +1 -1
- package/dist/roadtrip/{p-23142511.entry.js → p-4e779fd6.entry.js} +2 -2
- package/dist/roadtrip/{p-a8b369c3.entry.js → p-517aeeca.entry.js} +2 -2
- package/dist/roadtrip/{p-37135c95.entry.js → p-5a6fbd7f.entry.js} +2 -2
- package/dist/roadtrip/{p-7684978a.entry.js → p-5fab1bc3.entry.js} +2 -2
- package/dist/roadtrip/{p-668553e9.entry.js → p-64ec0508.entry.js} +2 -2
- package/dist/roadtrip/{p-44b6f632.entry.js → p-733a80a1.entry.js} +2 -2
- package/dist/roadtrip/{p-f155064c.entry.js → p-78b51033.entry.js} +2 -2
- package/dist/roadtrip/{p-cff73fff.entry.js → p-7bb1dbc4.entry.js} +2 -2
- package/dist/roadtrip/{p-c5b01dda.entry.js → p-833c1e78.entry.js} +2 -2
- package/dist/roadtrip/{p-38ab0443.js → p-84c28ebc.js} +2 -2
- package/dist/roadtrip/{p-d8dcd2d2.entry.js → p-87c1ff76.entry.js} +2 -2
- package/dist/roadtrip/{p-79acc6ae.entry.js → p-8ca23318.entry.js} +2 -2
- package/dist/roadtrip/{p-05088511.entry.js → p-8f7375bc.entry.js} +2 -2
- package/dist/roadtrip/{p-aa2721e5.entry.js → p-9737182c.entry.js} +2 -2
- package/dist/roadtrip/{p-00c5b2d9.entry.js → p-9fce16aa.entry.js} +2 -2
- package/dist/roadtrip/{p-200d5c89.entry.js → p-a0a95c0a.entry.js} +2 -2
- package/dist/roadtrip/{p-ad43e5f0.entry.js → p-a254df6d.entry.js} +2 -2
- package/dist/roadtrip/{p-d6867247.entry.js → p-a8cfee66.entry.js} +2 -2
- package/dist/roadtrip/{p-c70a6f75.entry.js → p-a925ff64.entry.js} +2 -2
- package/dist/roadtrip/{p-3750f911.entry.js → p-a990a8b6.entry.js} +2 -2
- package/dist/roadtrip/{p-52f26ae9.entry.js → p-abe3e334.entry.js} +2 -2
- package/dist/roadtrip/{p-4de6e537.entry.js → p-adf7d473.entry.js} +2 -2
- package/dist/roadtrip/{p-eabdd6ce.entry.js → p-b0b18e60.entry.js} +2 -2
- package/dist/roadtrip/{p-484f7c99.entry.js → p-b18cda16.entry.js} +2 -2
- package/dist/roadtrip/{p-504c0354.entry.js → p-b7dc61c8.entry.js} +2 -2
- package/dist/roadtrip/{p-848de0f1.entry.js → p-bba18327.entry.js} +2 -2
- package/dist/roadtrip/{p-d8ff2277.entry.js → p-c1e2aa67.entry.js} +2 -2
- package/dist/roadtrip/{p-6fc769fc.entry.js → p-c30a1032.entry.js} +2 -2
- package/dist/roadtrip/{p-63582e9c.entry.js → p-c3ef32ef.entry.js} +2 -2
- package/dist/roadtrip/{p-908e3634.entry.js → p-c465f551.entry.js} +2 -2
- package/dist/roadtrip/{p-698abbdb.entry.js → p-c62b9df1.entry.js} +2 -2
- package/dist/roadtrip/{p-4dc8a165.entry.js → p-c68fc795.entry.js} +2 -2
- package/dist/roadtrip/{p-c8ea6b4e.entry.js → p-cda925e3.entry.js} +2 -2
- package/dist/roadtrip/{p-3823247f.entry.js → p-cffedeca.entry.js} +2 -2
- package/dist/roadtrip/{p-4688d888.entry.js → p-d4089fb9.entry.js} +2 -2
- package/dist/roadtrip/{p-6dfdd9e2.entry.js → p-d68e64a8.entry.js} +2 -2
- package/dist/roadtrip/p-d7aae05d.js +3 -0
- package/dist/roadtrip/p-d7aae05d.js.map +1 -0
- package/dist/roadtrip/p-db243855.entry.js +2 -0
- package/dist/roadtrip/{p-f9c66715.entry.js.map → p-db243855.entry.js.map} +1 -1
- package/dist/roadtrip/{p-c1fc3902.entry.js → p-e0421465.entry.js} +2 -2
- package/dist/roadtrip/{p-b4ba1b47.entry.js → p-e2a00f9c.entry.js} +3 -3
- package/dist/roadtrip/p-e2a00f9c.entry.js.map +1 -0
- package/dist/roadtrip/{p-bb33c1b5.entry.js → p-edbbe884.entry.js} +2 -2
- package/dist/roadtrip/p-ee92b78d.entry.js +2 -0
- package/dist/roadtrip/{p-30d74a80.entry.js → p-f8817c0e.entry.js} +2 -2
- package/dist/roadtrip/{p-0236ce0a.entry.js → p-f9754547.entry.js} +2 -2
- package/dist/roadtrip/{p-43335414.entry.js → p-fb26ed7e.entry.js} +2 -2
- package/dist/roadtrip/roadtrip.esm.js +1 -1
- package/dist/roadtrip/roadtrip.esm.js.map +1 -1
- package/dist/types/components/input/input.d.ts +1 -1
- package/dist/types/components.d.ts +724 -2
- package/hydrate/index.d.ts +22 -5
- package/hydrate/index.js +783 -293
- package/hydrate/index.mjs +783 -293
- package/package.json +16 -17
- package/dist/cjs/index-aadb3ac9.js.map +0 -1
- package/dist/esm/index-f3c5b68e.js.map +0 -1
- package/dist/roadtrip/p-763109be.js +0 -3
- package/dist/roadtrip/p-763109be.js.map +0 -1
- package/dist/roadtrip/p-a1ea2f84.entry.js +0 -2
- package/dist/roadtrip/p-b4ba1b47.entry.js.map +0 -1
- package/dist/roadtrip/p-c4ffc419.entry.js +0 -2
- package/dist/roadtrip/p-f9c66715.entry.js +0 -2
- /package/dist/roadtrip/{p-4b2920f6.entry.js.map → p-01be5517.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-18db551b.entry.js.map → p-03656f9a.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-9e7807f4.entry.js.map → p-07217e78.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-dac4736d.entry.js.map → p-0cacf829.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-3c567881.entry.js.map → p-10e65612.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-b18add2d.entry.js.map → p-14e42c8d.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-b85b7e2b.entry.js.map → p-1e61ca1f.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-1e73c3ce.entry.js.map → p-2301f208.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-6709e3f4.entry.js.map → p-233b3f06.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-6e822465.entry.js.map → p-2903bdc0.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c8438d35.entry.js.map → p-2a4a0928.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-71769ef4.entry.js.map → p-2caa518b.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-d9195195.js.map → p-31b0c1df.js.map} +0 -0
- /package/dist/roadtrip/{p-4a14e21e.entry.js.map → p-32845e72.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-5dfc9c10.entry.js.map → p-3f478922.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-2e26072a.entry.js.map → p-427bd935.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-1fd97505.entry.js.map → p-443187de.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-b55e3657.entry.js.map → p-456e1ffe.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-98fdbcfb.entry.js.map → p-494aab48.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-eec578a2.entry.js.map → p-4a47999a.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-0801cc18.entry.js.map → p-4a81230f.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-4ad903fe.js.map → p-4b2ba695.js.map} +0 -0
- /package/dist/roadtrip/{p-23142511.entry.js.map → p-4e779fd6.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-a8b369c3.entry.js.map → p-517aeeca.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-37135c95.entry.js.map → p-5a6fbd7f.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-7684978a.entry.js.map → p-5fab1bc3.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-668553e9.entry.js.map → p-64ec0508.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-44b6f632.entry.js.map → p-733a80a1.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-f155064c.entry.js.map → p-78b51033.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-cff73fff.entry.js.map → p-7bb1dbc4.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c5b01dda.entry.js.map → p-833c1e78.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-38ab0443.js.map → p-84c28ebc.js.map} +0 -0
- /package/dist/roadtrip/{p-d8dcd2d2.entry.js.map → p-87c1ff76.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-79acc6ae.entry.js.map → p-8ca23318.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-05088511.entry.js.map → p-8f7375bc.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-aa2721e5.entry.js.map → p-9737182c.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-00c5b2d9.entry.js.map → p-9fce16aa.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-200d5c89.entry.js.map → p-a0a95c0a.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-ad43e5f0.entry.js.map → p-a254df6d.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-d6867247.entry.js.map → p-a8cfee66.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c70a6f75.entry.js.map → p-a925ff64.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-3750f911.entry.js.map → p-a990a8b6.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-52f26ae9.entry.js.map → p-abe3e334.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-4de6e537.entry.js.map → p-adf7d473.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-eabdd6ce.entry.js.map → p-b0b18e60.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-484f7c99.entry.js.map → p-b18cda16.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-504c0354.entry.js.map → p-b7dc61c8.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-848de0f1.entry.js.map → p-bba18327.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-d8ff2277.entry.js.map → p-c1e2aa67.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-6fc769fc.entry.js.map → p-c30a1032.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-63582e9c.entry.js.map → p-c3ef32ef.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-908e3634.entry.js.map → p-c465f551.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-698abbdb.entry.js.map → p-c62b9df1.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-4dc8a165.entry.js.map → p-c68fc795.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c8ea6b4e.entry.js.map → p-cda925e3.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-3823247f.entry.js.map → p-cffedeca.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-4688d888.entry.js.map → p-d4089fb9.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-6dfdd9e2.entry.js.map → p-d68e64a8.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c1fc3902.entry.js.map → p-e0421465.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-bb33c1b5.entry.js.map → p-edbbe884.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-a1ea2f84.entry.js.map → p-ee92b78d.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-30d74a80.entry.js.map → p-f8817c0e.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-0236ce0a.entry.js.map → p-f9754547.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-43335414.entry.js.map → p-fb26ed7e.entry.js.map} +0 -0
package/hydrate/index.js
CHANGED
|
@@ -128,10 +128,10 @@ function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResu
|
|
|
128
128
|
|
|
129
129
|
|
|
130
130
|
const NAMESPACE = 'roadtrip';
|
|
131
|
-
const BUILD = /* roadtrip */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, attachStyles: true, cloneNodeFix: false,
|
|
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.
|
|
134
|
+
Stencil Hydrate Platform v4.27.0 | MIT Licensed | https://stenciljs.com
|
|
135
135
|
*/
|
|
136
136
|
var __defProp = Object.defineProperty;
|
|
137
137
|
var __export = (target, all) => {
|
|
@@ -156,6 +156,11 @@ function queryNonceMetaTagContent(doc2) {
|
|
|
156
156
|
return (_c = (_b = (_a = doc2.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
|
+
// src/utils/regular-expression.ts
|
|
160
|
+
var escapeRegExpSpecialCharacters = (text) => {
|
|
161
|
+
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
162
|
+
};
|
|
163
|
+
|
|
159
164
|
// src/utils/result.ts
|
|
160
165
|
var result_exports = {};
|
|
161
166
|
__export(result_exports, {
|
|
@@ -225,12 +230,11 @@ var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
|
225
230
|
|
|
226
231
|
// src/runtime/slot-polyfill-utils.ts
|
|
227
232
|
var updateFallbackSlotVisibility = (elm) => {
|
|
228
|
-
const childNodes = elm
|
|
233
|
+
const childNodes = internalCall(elm, "childNodes");
|
|
229
234
|
if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
|
|
230
235
|
getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
|
|
231
|
-
var _a;
|
|
232
236
|
if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
|
|
233
|
-
if ((
|
|
237
|
+
if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
|
|
234
238
|
slotNode.hidden = true;
|
|
235
239
|
} else {
|
|
236
240
|
slotNode.hidden = false;
|
|
@@ -238,19 +242,31 @@ var updateFallbackSlotVisibility = (elm) => {
|
|
|
238
242
|
}
|
|
239
243
|
});
|
|
240
244
|
}
|
|
241
|
-
|
|
242
|
-
|
|
245
|
+
let i2 = 0;
|
|
246
|
+
for (i2 = 0; i2 < childNodes.length; i2++) {
|
|
247
|
+
const childNode = childNodes[i2];
|
|
248
|
+
if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, "childNodes").length) {
|
|
243
249
|
updateFallbackSlotVisibility(childNode);
|
|
244
250
|
}
|
|
245
251
|
}
|
|
246
252
|
};
|
|
253
|
+
var getSlottedChildNodes = (childNodes) => {
|
|
254
|
+
const result = [];
|
|
255
|
+
for (let i2 = 0; i2 < childNodes.length; i2++) {
|
|
256
|
+
const slottedNode = childNodes[i2]["s-nr"] || void 0;
|
|
257
|
+
if (slottedNode && slottedNode.isConnected) {
|
|
258
|
+
result.push(slottedNode);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
return result;
|
|
262
|
+
};
|
|
247
263
|
function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
248
264
|
let i2 = 0;
|
|
249
265
|
let slottedNodes = [];
|
|
250
266
|
let childNode;
|
|
251
267
|
for (; i2 < childNodes.length; i2++) {
|
|
252
268
|
childNode = childNodes[i2];
|
|
253
|
-
if (childNode["s-sr"] && childNode["s-hn"] === hostName && (slotName === void 0 || childNode
|
|
269
|
+
if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0 || getSlotName(childNode) === slotName)) {
|
|
254
270
|
slottedNodes.push(childNode);
|
|
255
271
|
if (typeof slotName !== "undefined") return slottedNodes;
|
|
256
272
|
}
|
|
@@ -258,11 +274,12 @@ function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
|
258
274
|
}
|
|
259
275
|
return slottedNodes;
|
|
260
276
|
}
|
|
261
|
-
var
|
|
277
|
+
var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
|
|
262
278
|
const childNodes = [];
|
|
263
|
-
if (includeSlot &&
|
|
264
|
-
|
|
265
|
-
|
|
279
|
+
if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
|
|
280
|
+
let node = slot;
|
|
281
|
+
while (node = node.nextSibling) {
|
|
282
|
+
if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
|
|
266
283
|
}
|
|
267
284
|
return childNodes;
|
|
268
285
|
};
|
|
@@ -282,37 +299,71 @@ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
|
282
299
|
return slotName === "";
|
|
283
300
|
};
|
|
284
301
|
var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
|
|
285
|
-
let slottedNodeLocation;
|
|
286
302
|
if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
|
|
287
|
-
|
|
288
|
-
} else {
|
|
289
|
-
slottedNodeLocation = document.createTextNode("");
|
|
290
|
-
slottedNodeLocation["s-nr"] = newChild;
|
|
303
|
+
return;
|
|
291
304
|
}
|
|
305
|
+
const slottedNodeLocation = document.createTextNode("");
|
|
306
|
+
slottedNodeLocation["s-nr"] = newChild;
|
|
292
307
|
if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
|
|
293
308
|
const parent = slotNode["s-cr"].parentNode;
|
|
294
|
-
const appendMethod = prepend ? parent
|
|
309
|
+
const appendMethod = prepend ? internalCall(parent, "prepend") : internalCall(parent, "appendChild");
|
|
295
310
|
if (typeof position !== "undefined") {
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
|
|
309
|
-
}
|
|
311
|
+
slottedNodeLocation["s-oo"] = position;
|
|
312
|
+
const childNodes = internalCall(parent, "childNodes");
|
|
313
|
+
const slotRelocateNodes = [slottedNodeLocation];
|
|
314
|
+
childNodes.forEach((n) => {
|
|
315
|
+
if (n["s-nr"]) slotRelocateNodes.push(n);
|
|
316
|
+
});
|
|
317
|
+
slotRelocateNodes.sort((a, b) => {
|
|
318
|
+
if (!a["s-oo"] || a["s-oo"] < (b["s-oo"] || 0)) return -1;
|
|
319
|
+
else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
|
|
320
|
+
return 0;
|
|
321
|
+
});
|
|
322
|
+
slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
|
|
310
323
|
} else {
|
|
311
324
|
appendMethod.call(parent, slottedNodeLocation);
|
|
312
325
|
}
|
|
313
326
|
newChild["s-ol"] = slottedNodeLocation;
|
|
314
327
|
newChild["s-sh"] = slotNode["s-hn"];
|
|
315
328
|
};
|
|
329
|
+
var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
|
|
330
|
+
function patchSlotNode(node) {
|
|
331
|
+
if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
|
|
332
|
+
const assignedFactory = (elementsOnly) => (function(opts) {
|
|
333
|
+
const toReturn = [];
|
|
334
|
+
const slotName = this["s-sn"];
|
|
335
|
+
if (opts == null ? void 0 : opts.flatten) {
|
|
336
|
+
console.error(`
|
|
337
|
+
Flattening is not supported for Stencil non-shadow slots.
|
|
338
|
+
You can use \`.childNodes\` to nested slot fallback content.
|
|
339
|
+
If you have a particular use case, please open an issue on the Stencil repo.
|
|
340
|
+
`);
|
|
341
|
+
}
|
|
342
|
+
const parent = this["s-cr"].parentElement;
|
|
343
|
+
const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
|
|
344
|
+
slottedNodes.forEach((n) => {
|
|
345
|
+
if (slotName === getSlotName(n)) {
|
|
346
|
+
toReturn.push(n);
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
if (elementsOnly) {
|
|
350
|
+
return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
|
|
351
|
+
}
|
|
352
|
+
return toReturn;
|
|
353
|
+
}).bind(node);
|
|
354
|
+
node.assignedElements = assignedFactory(true);
|
|
355
|
+
node.assignedNodes = assignedFactory(false);
|
|
356
|
+
}
|
|
357
|
+
function internalCall(node, method) {
|
|
358
|
+
if ("__" + method in node) {
|
|
359
|
+
const toReturn = node["__" + method];
|
|
360
|
+
if (typeof toReturn !== "function") return toReturn;
|
|
361
|
+
return toReturn.bind(node);
|
|
362
|
+
} else {
|
|
363
|
+
if (typeof node[method] !== "function") return node[method];
|
|
364
|
+
return node[method].bind(node);
|
|
365
|
+
}
|
|
366
|
+
}
|
|
316
367
|
var createTime = (fnName, tagName = "") => {
|
|
317
368
|
{
|
|
318
369
|
return () => {
|
|
@@ -459,7 +510,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
459
510
|
delete hostElm["s-sc"];
|
|
460
511
|
}
|
|
461
512
|
}
|
|
462
|
-
if (!plt.$orgLocNodes$) {
|
|
513
|
+
if (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size) {
|
|
463
514
|
initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
|
|
464
515
|
}
|
|
465
516
|
hostElm[HYDRATE_ID] = hostId;
|
|
@@ -489,6 +540,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
489
540
|
}
|
|
490
541
|
}
|
|
491
542
|
if (childRenderNode.$tag$ === "slot") {
|
|
543
|
+
childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
|
|
492
544
|
if (childRenderNode.$children$) {
|
|
493
545
|
childRenderNode.$flags$ |= 2 /* isSlotFallback */;
|
|
494
546
|
if (!childRenderNode.$elm$.childNodes.length) {
|
|
@@ -549,18 +601,25 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
549
601
|
slot.$elm$.parentElement.classList.add(scopeId2 + "-s");
|
|
550
602
|
});
|
|
551
603
|
}
|
|
552
|
-
if (shadowRoot) {
|
|
604
|
+
if (shadowRoot && !shadowRoot.childNodes.length) {
|
|
553
605
|
let rnIdex = 0;
|
|
554
606
|
const rnLen = shadowRootNodes.length;
|
|
555
|
-
|
|
556
|
-
|
|
607
|
+
if (rnLen) {
|
|
608
|
+
for (rnIdex; rnIdex < rnLen; rnIdex++) {
|
|
609
|
+
shadowRoot.appendChild(shadowRootNodes[rnIdex]);
|
|
610
|
+
}
|
|
611
|
+
Array.from(hostElm.childNodes).forEach((node) => {
|
|
612
|
+
if (typeof node["s-sn"] !== "string") {
|
|
613
|
+
if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
|
|
614
|
+
node.removeAttribute("hidden");
|
|
615
|
+
} else if (node.nodeType === 8 /* CommentNode */ || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
616
|
+
node.parentNode.removeChild(node);
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
});
|
|
557
620
|
}
|
|
558
|
-
Array.from(hostElm.childNodes).forEach((node) => {
|
|
559
|
-
if (node.nodeType === 8 /* CommentNode */ && typeof node["s-sn"] !== "string") {
|
|
560
|
-
node.parentNode.removeChild(node);
|
|
561
|
-
}
|
|
562
|
-
});
|
|
563
621
|
}
|
|
622
|
+
plt.$orgLocNodes$.delete(hostElm["s-id"]);
|
|
564
623
|
hostRef.$hostElement$ = hostElm;
|
|
565
624
|
endHydrate();
|
|
566
625
|
};
|
|
@@ -671,7 +730,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
671
730
|
$text$: null
|
|
672
731
|
});
|
|
673
732
|
if (childNodeType === TEXT_NODE_ID) {
|
|
674
|
-
childVNode.$elm$ = node
|
|
733
|
+
childVNode.$elm$ = findCorrespondingNode(node, 3 /* TextNode */);
|
|
675
734
|
if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
|
|
676
735
|
childVNode.$text$ = childVNode.$elm$.textContent;
|
|
677
736
|
childRenderNodes.push(childVNode);
|
|
@@ -687,7 +746,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
687
746
|
}
|
|
688
747
|
}
|
|
689
748
|
} else if (childNodeType === COMMENT_NODE_ID) {
|
|
690
|
-
childVNode.$elm$ = node
|
|
749
|
+
childVNode.$elm$ = findCorrespondingNode(node, 8 /* CommentNode */);
|
|
691
750
|
if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
|
|
692
751
|
childRenderNodes.push(childVNode);
|
|
693
752
|
node.remove();
|
|
@@ -721,6 +780,10 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
721
780
|
vnode.$elm$ = node;
|
|
722
781
|
vnode.$index$ = "0";
|
|
723
782
|
parentVNode.$children$ = [vnode];
|
|
783
|
+
} else {
|
|
784
|
+
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
785
|
+
node.remove();
|
|
786
|
+
}
|
|
724
787
|
}
|
|
725
788
|
return parentVNode;
|
|
726
789
|
};
|
|
@@ -790,6 +853,7 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
790
853
|
const slot = childVNode.$elm$;
|
|
791
854
|
const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
|
|
792
855
|
addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
|
|
856
|
+
patchSlotNode(node);
|
|
793
857
|
if (shouldMove) {
|
|
794
858
|
parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
|
|
795
859
|
}
|
|
@@ -810,6 +874,363 @@ var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) =>
|
|
|
810
874
|
slottedNode = slottedNode.nextSibling;
|
|
811
875
|
}
|
|
812
876
|
};
|
|
877
|
+
var findCorrespondingNode = (node, type) => {
|
|
878
|
+
let sibling = node;
|
|
879
|
+
do {
|
|
880
|
+
sibling = sibling.nextSibling;
|
|
881
|
+
} while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
|
|
882
|
+
return sibling;
|
|
883
|
+
};
|
|
884
|
+
|
|
885
|
+
// src/utils/shadow-css.ts
|
|
886
|
+
/**
|
|
887
|
+
* @license
|
|
888
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
889
|
+
*
|
|
890
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
891
|
+
* found in the LICENSE file at https://angular.io/license
|
|
892
|
+
*
|
|
893
|
+
* This file is a port of shadowCSS from `webcomponents.js` to TypeScript.
|
|
894
|
+
* https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
|
|
895
|
+
* https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
|
|
896
|
+
*/
|
|
897
|
+
var safeSelector = (selector) => {
|
|
898
|
+
const placeholders = [];
|
|
899
|
+
let index = 0;
|
|
900
|
+
selector = selector.replace(/(\[[^\]]*\])/g, (_, keep) => {
|
|
901
|
+
const replaceBy = `__ph-${index}__`;
|
|
902
|
+
placeholders.push(keep);
|
|
903
|
+
index++;
|
|
904
|
+
return replaceBy;
|
|
905
|
+
});
|
|
906
|
+
const content = selector.replace(/(:nth-[-\w]+)(\([^)]+\))/g, (_, pseudo, exp) => {
|
|
907
|
+
const replaceBy = `__ph-${index}__`;
|
|
908
|
+
placeholders.push(exp);
|
|
909
|
+
index++;
|
|
910
|
+
return pseudo + replaceBy;
|
|
911
|
+
});
|
|
912
|
+
const ss = {
|
|
913
|
+
content,
|
|
914
|
+
placeholders
|
|
915
|
+
};
|
|
916
|
+
return ss;
|
|
917
|
+
};
|
|
918
|
+
var restoreSafeSelector = (placeholders, content) => {
|
|
919
|
+
return content.replace(/__ph-(\d+)__/g, (_, index) => placeholders[+index]);
|
|
920
|
+
};
|
|
921
|
+
var _polyfillHost = "-shadowcsshost";
|
|
922
|
+
var _polyfillSlotted = "-shadowcssslotted";
|
|
923
|
+
var _polyfillHostContext = "-shadowcsscontext";
|
|
924
|
+
var _parenSuffix = ")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";
|
|
925
|
+
var _cssColonHostRe = new RegExp("(" + _polyfillHost + _parenSuffix, "gim");
|
|
926
|
+
var _cssColonHostContextRe = new RegExp("(" + _polyfillHostContext + _parenSuffix, "gim");
|
|
927
|
+
var _cssColonSlottedRe = new RegExp("(" + _polyfillSlotted + _parenSuffix, "gim");
|
|
928
|
+
var _polyfillHostNoCombinator = _polyfillHost + "-no-combinator";
|
|
929
|
+
var _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\s]*)/;
|
|
930
|
+
var _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];
|
|
931
|
+
var _selectorReSuffix = "([>\\s~+[.,{:][\\s\\S]*)?$";
|
|
932
|
+
var _polyfillHostRe = /-shadowcsshost/gim;
|
|
933
|
+
var createSupportsRuleRe = (selector) => new RegExp(`((?<!(^@supports(.*)))|(?<={.*))(${selector}\\b)`, "gim");
|
|
934
|
+
var _colonSlottedRe = createSupportsRuleRe("::slotted");
|
|
935
|
+
var _colonHostRe = createSupportsRuleRe(":host");
|
|
936
|
+
var _colonHostContextRe = createSupportsRuleRe(":host-context");
|
|
937
|
+
var _commentRe = /\/\*\s*[\s\S]*?\*\//g;
|
|
938
|
+
var stripComments = (input) => {
|
|
939
|
+
return input.replace(_commentRe, "");
|
|
940
|
+
};
|
|
941
|
+
var _commentWithHashRe = /\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;
|
|
942
|
+
var extractCommentsWithHash = (input) => {
|
|
943
|
+
return input.match(_commentWithHashRe) || [];
|
|
944
|
+
};
|
|
945
|
+
var _ruleRe = /(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g;
|
|
946
|
+
var _curlyRe = /([{}])/g;
|
|
947
|
+
var _selectorPartsRe = /(^.*?[^\\])??((:+)(.*)|$)/;
|
|
948
|
+
var OPEN_CURLY = "{";
|
|
949
|
+
var CLOSE_CURLY = "}";
|
|
950
|
+
var BLOCK_PLACEHOLDER = "%BLOCK%";
|
|
951
|
+
var processRules = (input, ruleCallback) => {
|
|
952
|
+
const inputWithEscapedBlocks = escapeBlocks(input);
|
|
953
|
+
let nextBlockIndex = 0;
|
|
954
|
+
return inputWithEscapedBlocks.escapedString.replace(_ruleRe, (...m) => {
|
|
955
|
+
const selector = m[2];
|
|
956
|
+
let content = "";
|
|
957
|
+
let suffix = m[4];
|
|
958
|
+
let contentPrefix = "";
|
|
959
|
+
if (suffix && suffix.startsWith("{" + BLOCK_PLACEHOLDER)) {
|
|
960
|
+
content = inputWithEscapedBlocks.blocks[nextBlockIndex++];
|
|
961
|
+
suffix = suffix.substring(BLOCK_PLACEHOLDER.length + 1);
|
|
962
|
+
contentPrefix = "{";
|
|
963
|
+
}
|
|
964
|
+
const cssRule = {
|
|
965
|
+
selector,
|
|
966
|
+
content
|
|
967
|
+
};
|
|
968
|
+
const rule = ruleCallback(cssRule);
|
|
969
|
+
return `${m[1]}${rule.selector}${m[3]}${contentPrefix}${rule.content}${suffix}`;
|
|
970
|
+
});
|
|
971
|
+
};
|
|
972
|
+
var escapeBlocks = (input) => {
|
|
973
|
+
const inputParts = input.split(_curlyRe);
|
|
974
|
+
const resultParts = [];
|
|
975
|
+
const escapedBlocks = [];
|
|
976
|
+
let bracketCount = 0;
|
|
977
|
+
let currentBlockParts = [];
|
|
978
|
+
for (let partIndex = 0; partIndex < inputParts.length; partIndex++) {
|
|
979
|
+
const part = inputParts[partIndex];
|
|
980
|
+
if (part === CLOSE_CURLY) {
|
|
981
|
+
bracketCount--;
|
|
982
|
+
}
|
|
983
|
+
if (bracketCount > 0) {
|
|
984
|
+
currentBlockParts.push(part);
|
|
985
|
+
} else {
|
|
986
|
+
if (currentBlockParts.length > 0) {
|
|
987
|
+
escapedBlocks.push(currentBlockParts.join(""));
|
|
988
|
+
resultParts.push(BLOCK_PLACEHOLDER);
|
|
989
|
+
currentBlockParts = [];
|
|
990
|
+
}
|
|
991
|
+
resultParts.push(part);
|
|
992
|
+
}
|
|
993
|
+
if (part === OPEN_CURLY) {
|
|
994
|
+
bracketCount++;
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
if (currentBlockParts.length > 0) {
|
|
998
|
+
escapedBlocks.push(currentBlockParts.join(""));
|
|
999
|
+
resultParts.push(BLOCK_PLACEHOLDER);
|
|
1000
|
+
}
|
|
1001
|
+
const strEscapedBlocks = {
|
|
1002
|
+
escapedString: resultParts.join(""),
|
|
1003
|
+
blocks: escapedBlocks
|
|
1004
|
+
};
|
|
1005
|
+
return strEscapedBlocks;
|
|
1006
|
+
};
|
|
1007
|
+
var insertPolyfillHostInCssText = (cssText) => {
|
|
1008
|
+
cssText = cssText.replace(_colonHostContextRe, `$1${_polyfillHostContext}`).replace(_colonHostRe, `$1${_polyfillHost}`).replace(_colonSlottedRe, `$1${_polyfillSlotted}`);
|
|
1009
|
+
return cssText;
|
|
1010
|
+
};
|
|
1011
|
+
var convertColonRule = (cssText, regExp, partReplacer) => {
|
|
1012
|
+
return cssText.replace(regExp, (...m) => {
|
|
1013
|
+
if (m[2]) {
|
|
1014
|
+
const parts = m[2].split(",");
|
|
1015
|
+
const r = [];
|
|
1016
|
+
for (let i2 = 0; i2 < parts.length; i2++) {
|
|
1017
|
+
const p = parts[i2].trim();
|
|
1018
|
+
if (!p) break;
|
|
1019
|
+
r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));
|
|
1020
|
+
}
|
|
1021
|
+
return r.join(",");
|
|
1022
|
+
} else {
|
|
1023
|
+
return _polyfillHostNoCombinator + m[3];
|
|
1024
|
+
}
|
|
1025
|
+
});
|
|
1026
|
+
};
|
|
1027
|
+
var colonHostPartReplacer = (host, part, suffix) => {
|
|
1028
|
+
return host + part.replace(_polyfillHost, "") + suffix;
|
|
1029
|
+
};
|
|
1030
|
+
var convertColonHost = (cssText) => {
|
|
1031
|
+
return convertColonRule(cssText, _cssColonHostRe, colonHostPartReplacer);
|
|
1032
|
+
};
|
|
1033
|
+
var colonHostContextPartReplacer = (host, part, suffix) => {
|
|
1034
|
+
if (part.indexOf(_polyfillHost) > -1) {
|
|
1035
|
+
return colonHostPartReplacer(host, part, suffix);
|
|
1036
|
+
} else {
|
|
1037
|
+
return host + part + suffix + ", " + part + " " + host + suffix;
|
|
1038
|
+
}
|
|
1039
|
+
};
|
|
1040
|
+
var convertColonSlotted = (cssText, slotScopeId) => {
|
|
1041
|
+
const slotClass = "." + slotScopeId + " > ";
|
|
1042
|
+
const selectors = [];
|
|
1043
|
+
cssText = cssText.replace(_cssColonSlottedRe, (...m) => {
|
|
1044
|
+
if (m[2]) {
|
|
1045
|
+
const compound = m[2].trim();
|
|
1046
|
+
const suffix = m[3];
|
|
1047
|
+
const slottedSelector = slotClass + compound + suffix;
|
|
1048
|
+
let prefixSelector = "";
|
|
1049
|
+
for (let i2 = m[4] - 1; i2 >= 0; i2--) {
|
|
1050
|
+
const char = m[5][i2];
|
|
1051
|
+
if (char === "}" || char === ",") {
|
|
1052
|
+
break;
|
|
1053
|
+
}
|
|
1054
|
+
prefixSelector = char + prefixSelector;
|
|
1055
|
+
}
|
|
1056
|
+
const orgSelector = (prefixSelector + slottedSelector).trim();
|
|
1057
|
+
const addedSelector = `${prefixSelector.trimEnd()}${slottedSelector.trim()}`.trim();
|
|
1058
|
+
if (orgSelector !== addedSelector) {
|
|
1059
|
+
const updatedSelector = `${addedSelector}, ${orgSelector}`;
|
|
1060
|
+
selectors.push({
|
|
1061
|
+
orgSelector,
|
|
1062
|
+
updatedSelector
|
|
1063
|
+
});
|
|
1064
|
+
}
|
|
1065
|
+
return slottedSelector;
|
|
1066
|
+
} else {
|
|
1067
|
+
return _polyfillHostNoCombinator + m[3];
|
|
1068
|
+
}
|
|
1069
|
+
});
|
|
1070
|
+
return {
|
|
1071
|
+
selectors,
|
|
1072
|
+
cssText
|
|
1073
|
+
};
|
|
1074
|
+
};
|
|
1075
|
+
var convertColonHostContext = (cssText) => {
|
|
1076
|
+
return convertColonRule(cssText, _cssColonHostContextRe, colonHostContextPartReplacer);
|
|
1077
|
+
};
|
|
1078
|
+
var convertShadowDOMSelectors = (cssText) => {
|
|
1079
|
+
return _shadowDOMSelectorsRe.reduce((result, pattern) => result.replace(pattern, " "), cssText);
|
|
1080
|
+
};
|
|
1081
|
+
var makeScopeMatcher = (scopeSelector2) => {
|
|
1082
|
+
const lre = /\[/g;
|
|
1083
|
+
const rre = /\]/g;
|
|
1084
|
+
scopeSelector2 = scopeSelector2.replace(lre, "\\[").replace(rre, "\\]");
|
|
1085
|
+
return new RegExp("^(" + scopeSelector2 + ")" + _selectorReSuffix, "m");
|
|
1086
|
+
};
|
|
1087
|
+
var selectorNeedsScoping = (selector, scopeSelector2) => {
|
|
1088
|
+
const re = makeScopeMatcher(scopeSelector2);
|
|
1089
|
+
return !re.test(selector);
|
|
1090
|
+
};
|
|
1091
|
+
var injectScopingSelector = (selector, scopingSelector) => {
|
|
1092
|
+
return selector.replace(_selectorPartsRe, (_, before = "", _colonGroup, colon = "", after = "") => {
|
|
1093
|
+
return before + scopingSelector + colon + after;
|
|
1094
|
+
});
|
|
1095
|
+
};
|
|
1096
|
+
var applySimpleSelectorScope = (selector, scopeSelector2, hostSelector) => {
|
|
1097
|
+
_polyfillHostRe.lastIndex = 0;
|
|
1098
|
+
if (_polyfillHostRe.test(selector)) {
|
|
1099
|
+
const replaceBy = `.${hostSelector}`;
|
|
1100
|
+
return selector.replace(_polyfillHostNoCombinatorRe, (_, selector2) => injectScopingSelector(selector2, replaceBy)).replace(_polyfillHostRe, replaceBy + " ");
|
|
1101
|
+
}
|
|
1102
|
+
return scopeSelector2 + " " + selector;
|
|
1103
|
+
};
|
|
1104
|
+
var applyStrictSelectorScope = (selector, scopeSelector2, hostSelector) => {
|
|
1105
|
+
const isRe = /\[is=([^\]]*)\]/g;
|
|
1106
|
+
scopeSelector2 = scopeSelector2.replace(isRe, (_, ...parts) => parts[0]);
|
|
1107
|
+
const className = "." + scopeSelector2;
|
|
1108
|
+
const _scopeSelectorPart = (p) => {
|
|
1109
|
+
let scopedP = p.trim();
|
|
1110
|
+
if (!scopedP) {
|
|
1111
|
+
return "";
|
|
1112
|
+
}
|
|
1113
|
+
if (p.indexOf(_polyfillHostNoCombinator) > -1) {
|
|
1114
|
+
scopedP = applySimpleSelectorScope(p, scopeSelector2, hostSelector);
|
|
1115
|
+
} else {
|
|
1116
|
+
const t = p.replace(_polyfillHostRe, "");
|
|
1117
|
+
if (t.length > 0) {
|
|
1118
|
+
scopedP = injectScopingSelector(t, className);
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
return scopedP;
|
|
1122
|
+
};
|
|
1123
|
+
const safeContent = safeSelector(selector);
|
|
1124
|
+
selector = safeContent.content;
|
|
1125
|
+
let scopedSelector = "";
|
|
1126
|
+
let startIndex = 0;
|
|
1127
|
+
let res;
|
|
1128
|
+
const sep = /( |>|\+|~(?!=))\s*/g;
|
|
1129
|
+
const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;
|
|
1130
|
+
let shouldScope = !hasHost;
|
|
1131
|
+
while ((res = sep.exec(selector)) !== null) {
|
|
1132
|
+
const separator = res[1];
|
|
1133
|
+
const part2 = selector.slice(startIndex, res.index).trim();
|
|
1134
|
+
shouldScope = shouldScope || part2.indexOf(_polyfillHostNoCombinator) > -1;
|
|
1135
|
+
const scopedPart = shouldScope ? _scopeSelectorPart(part2) : part2;
|
|
1136
|
+
scopedSelector += `${scopedPart} ${separator} `;
|
|
1137
|
+
startIndex = sep.lastIndex;
|
|
1138
|
+
}
|
|
1139
|
+
const part = selector.substring(startIndex);
|
|
1140
|
+
shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
|
|
1141
|
+
scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;
|
|
1142
|
+
return restoreSafeSelector(safeContent.placeholders, scopedSelector);
|
|
1143
|
+
};
|
|
1144
|
+
var scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector) => {
|
|
1145
|
+
return selector.split(",").map((shallowPart) => {
|
|
1146
|
+
if (slotSelector && shallowPart.indexOf("." + slotSelector) > -1) {
|
|
1147
|
+
return shallowPart.trim();
|
|
1148
|
+
}
|
|
1149
|
+
if (selectorNeedsScoping(shallowPart, scopeSelectorText)) {
|
|
1150
|
+
return applyStrictSelectorScope(shallowPart, scopeSelectorText, hostSelector).trim();
|
|
1151
|
+
} else {
|
|
1152
|
+
return shallowPart.trim();
|
|
1153
|
+
}
|
|
1154
|
+
}).join(", ");
|
|
1155
|
+
};
|
|
1156
|
+
var scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {
|
|
1157
|
+
return processRules(cssText, (rule) => {
|
|
1158
|
+
let selector = rule.selector;
|
|
1159
|
+
let content = rule.content;
|
|
1160
|
+
if (rule.selector[0] !== "@") {
|
|
1161
|
+
selector = scopeSelector(rule.selector, scopeSelectorText, hostSelector, slotSelector);
|
|
1162
|
+
} else if (rule.selector.startsWith("@media") || rule.selector.startsWith("@supports") || rule.selector.startsWith("@page") || rule.selector.startsWith("@document")) {
|
|
1163
|
+
content = scopeSelectors(rule.content, scopeSelectorText, hostSelector, slotSelector);
|
|
1164
|
+
}
|
|
1165
|
+
const cssRule = {
|
|
1166
|
+
selector: selector.replace(/\s{2,}/g, " ").trim(),
|
|
1167
|
+
content
|
|
1168
|
+
};
|
|
1169
|
+
return cssRule;
|
|
1170
|
+
});
|
|
1171
|
+
};
|
|
1172
|
+
var scopeCssText = (cssText, scopeId2, hostScopeId, slotScopeId, commentOriginalSelector) => {
|
|
1173
|
+
cssText = insertPolyfillHostInCssText(cssText);
|
|
1174
|
+
cssText = convertColonHost(cssText);
|
|
1175
|
+
cssText = convertColonHostContext(cssText);
|
|
1176
|
+
const slotted = convertColonSlotted(cssText, slotScopeId);
|
|
1177
|
+
cssText = slotted.cssText;
|
|
1178
|
+
cssText = convertShadowDOMSelectors(cssText);
|
|
1179
|
+
if (scopeId2) {
|
|
1180
|
+
cssText = scopeSelectors(cssText, scopeId2, hostScopeId, slotScopeId);
|
|
1181
|
+
}
|
|
1182
|
+
cssText = replaceShadowCssHost(cssText, hostScopeId);
|
|
1183
|
+
cssText = cssText.replace(/>\s*\*\s+([^{, ]+)/gm, " $1 ");
|
|
1184
|
+
return {
|
|
1185
|
+
cssText: cssText.trim(),
|
|
1186
|
+
// We need to replace the shadow CSS host string in each of these selectors since we created
|
|
1187
|
+
// them prior to the replacement happening in the components CSS text.
|
|
1188
|
+
slottedSelectors: slotted.selectors.map((ref) => ({
|
|
1189
|
+
orgSelector: replaceShadowCssHost(ref.orgSelector, hostScopeId),
|
|
1190
|
+
updatedSelector: replaceShadowCssHost(ref.updatedSelector, hostScopeId)
|
|
1191
|
+
}))
|
|
1192
|
+
};
|
|
1193
|
+
};
|
|
1194
|
+
var replaceShadowCssHost = (cssText, hostScopeId) => {
|
|
1195
|
+
return cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);
|
|
1196
|
+
};
|
|
1197
|
+
var scopeCss = (cssText, scopeId2, commentOriginalSelector) => {
|
|
1198
|
+
const hostScopeId = scopeId2 + "-h";
|
|
1199
|
+
const slotScopeId = scopeId2 + "-s";
|
|
1200
|
+
const commentsWithHash = extractCommentsWithHash(cssText);
|
|
1201
|
+
cssText = stripComments(cssText);
|
|
1202
|
+
const orgSelectors = [];
|
|
1203
|
+
if (commentOriginalSelector) {
|
|
1204
|
+
const processCommentedSelector = (rule) => {
|
|
1205
|
+
const placeholder = `/*!@___${orgSelectors.length}___*/`;
|
|
1206
|
+
const comment = `/*!@${rule.selector}*/`;
|
|
1207
|
+
orgSelectors.push({ placeholder, comment });
|
|
1208
|
+
rule.selector = placeholder + rule.selector;
|
|
1209
|
+
return rule;
|
|
1210
|
+
};
|
|
1211
|
+
cssText = processRules(cssText, (rule) => {
|
|
1212
|
+
if (rule.selector[0] !== "@") {
|
|
1213
|
+
return processCommentedSelector(rule);
|
|
1214
|
+
} else if (rule.selector.startsWith("@media") || rule.selector.startsWith("@supports") || rule.selector.startsWith("@page") || rule.selector.startsWith("@document")) {
|
|
1215
|
+
rule.content = processRules(rule.content, processCommentedSelector);
|
|
1216
|
+
return rule;
|
|
1217
|
+
}
|
|
1218
|
+
return rule;
|
|
1219
|
+
});
|
|
1220
|
+
}
|
|
1221
|
+
const scoped = scopeCssText(cssText, scopeId2, hostScopeId, slotScopeId);
|
|
1222
|
+
cssText = [scoped.cssText, ...commentsWithHash].join("\n");
|
|
1223
|
+
if (commentOriginalSelector) {
|
|
1224
|
+
orgSelectors.forEach(({ placeholder, comment }) => {
|
|
1225
|
+
cssText = cssText.replace(placeholder, comment);
|
|
1226
|
+
});
|
|
1227
|
+
}
|
|
1228
|
+
scoped.slottedSelectors.forEach((slottedSelector) => {
|
|
1229
|
+
const regex = new RegExp(escapeRegExpSpecialCharacters(slottedSelector.orgSelector), "g");
|
|
1230
|
+
cssText = cssText.replace(regex, slottedSelector.updatedSelector);
|
|
1231
|
+
});
|
|
1232
|
+
return cssText;
|
|
1233
|
+
};
|
|
813
1234
|
var parsePropertyValue = (propValue, propType) => {
|
|
814
1235
|
if (propValue != null && !isComplexType(propValue)) {
|
|
815
1236
|
if (propType & 4 /* Boolean */) {
|
|
@@ -877,7 +1298,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
877
1298
|
if (nonce != null) {
|
|
878
1299
|
styleElm.setAttribute("nonce", nonce);
|
|
879
1300
|
}
|
|
880
|
-
if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
1301
|
+
if ((cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */ || cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */)) {
|
|
881
1302
|
styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
|
|
882
1303
|
}
|
|
883
1304
|
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
@@ -901,7 +1322,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
901
1322
|
styleContainerNode.append(styleElm);
|
|
902
1323
|
}
|
|
903
1324
|
}
|
|
904
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */
|
|
1325
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
905
1326
|
styleContainerNode.insertBefore(styleElm, null);
|
|
906
1327
|
}
|
|
907
1328
|
}
|
|
@@ -924,7 +1345,7 @@ var attachStyles = (hostRef) => {
|
|
|
924
1345
|
const scopeId2 = addStyle(
|
|
925
1346
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
926
1347
|
cmpMeta);
|
|
927
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
1348
|
+
if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
|
|
928
1349
|
elm["s-sc"] = scopeId2;
|
|
929
1350
|
elm.classList.add(scopeId2 + "-h");
|
|
930
1351
|
}
|
|
@@ -932,107 +1353,108 @@ var attachStyles = (hostRef) => {
|
|
|
932
1353
|
};
|
|
933
1354
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
934
1355
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
935
|
-
if (oldValue
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
}
|
|
960
|
-
}
|
|
961
|
-
}
|
|
962
|
-
}
|
|
963
|
-
for (const prop in newValue) {
|
|
964
|
-
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
1356
|
+
if (oldValue === newValue) {
|
|
1357
|
+
return;
|
|
1358
|
+
}
|
|
1359
|
+
let isProp = isMemberInElement(elm, memberName);
|
|
1360
|
+
let ln = memberName.toLowerCase();
|
|
1361
|
+
if (memberName === "class") {
|
|
1362
|
+
const classList = elm.classList;
|
|
1363
|
+
const oldClasses = parseClassList(oldValue);
|
|
1364
|
+
let newClasses = parseClassList(newValue);
|
|
1365
|
+
if (elm["s-si"] && initialRender) {
|
|
1366
|
+
newClasses.push(elm["s-si"]);
|
|
1367
|
+
oldClasses.forEach((c) => {
|
|
1368
|
+
if (c.startsWith(elm["s-si"])) newClasses.push(c);
|
|
1369
|
+
});
|
|
1370
|
+
newClasses = [...new Set(newClasses)];
|
|
1371
|
+
classList.add(...newClasses);
|
|
1372
|
+
} else {
|
|
1373
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
1374
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
1375
|
+
}
|
|
1376
|
+
} else if (memberName === "style") {
|
|
1377
|
+
{
|
|
1378
|
+
for (const prop in oldValue) {
|
|
1379
|
+
if (!newValue || newValue[prop] == null) {
|
|
965
1380
|
{
|
|
966
|
-
elm.style[prop] =
|
|
1381
|
+
elm.style[prop] = "";
|
|
967
1382
|
}
|
|
968
1383
|
}
|
|
969
1384
|
}
|
|
970
|
-
}
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
if (memberName[2] === "-") {
|
|
976
|
-
memberName = memberName.slice(3);
|
|
977
|
-
} else if (isMemberInElement(win, ln)) {
|
|
978
|
-
memberName = ln.slice(2);
|
|
979
|
-
} else {
|
|
980
|
-
memberName = ln[2] + memberName.slice(3);
|
|
981
|
-
}
|
|
982
|
-
if (oldValue || newValue) {
|
|
983
|
-
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
984
|
-
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
985
|
-
if (oldValue) {
|
|
986
|
-
plt.rel(elm, memberName, oldValue, capture);
|
|
987
|
-
}
|
|
988
|
-
if (newValue) {
|
|
989
|
-
plt.ael(elm, memberName, newValue, capture);
|
|
1385
|
+
}
|
|
1386
|
+
for (const prop in newValue) {
|
|
1387
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
1388
|
+
{
|
|
1389
|
+
elm.style[prop] = newValue[prop];
|
|
990
1390
|
}
|
|
991
1391
|
}
|
|
1392
|
+
}
|
|
1393
|
+
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
1394
|
+
if (newValue) {
|
|
1395
|
+
newValue(elm);
|
|
1396
|
+
}
|
|
1397
|
+
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
1398
|
+
if (memberName[2] === "-") {
|
|
1399
|
+
memberName = memberName.slice(3);
|
|
1400
|
+
} else if (isMemberInElement(win, ln)) {
|
|
1401
|
+
memberName = ln.slice(2);
|
|
992
1402
|
} else {
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1403
|
+
memberName = ln[2] + memberName.slice(3);
|
|
1404
|
+
}
|
|
1405
|
+
if (oldValue || newValue) {
|
|
1406
|
+
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
1407
|
+
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
1408
|
+
if (oldValue) {
|
|
1409
|
+
plt.rel(elm, memberName, oldValue, capture);
|
|
1410
|
+
}
|
|
1411
|
+
if (newValue) {
|
|
1412
|
+
plt.ael(elm, memberName, newValue, capture);
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
} else {
|
|
1416
|
+
const isComplex = isComplexType(newValue);
|
|
1417
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
1418
|
+
try {
|
|
1419
|
+
if (!elm.tagName.includes("-")) {
|
|
1420
|
+
const n = newValue == null ? "" : newValue;
|
|
1421
|
+
if (memberName === "list") {
|
|
1422
|
+
isProp = false;
|
|
1423
|
+
} else if (oldValue == null || elm[memberName] != n) {
|
|
1424
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
1425
|
+
elm[memberName] = n;
|
|
1426
|
+
} else {
|
|
1427
|
+
elm.setAttribute(memberName, n);
|
|
1006
1428
|
}
|
|
1007
|
-
} else if (elm[memberName] !== newValue) {
|
|
1008
|
-
elm[memberName] = newValue;
|
|
1009
1429
|
}
|
|
1010
|
-
}
|
|
1430
|
+
} else if (elm[memberName] !== newValue) {
|
|
1431
|
+
elm[memberName] = newValue;
|
|
1011
1432
|
}
|
|
1433
|
+
} catch (e) {
|
|
1012
1434
|
}
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1435
|
+
}
|
|
1436
|
+
let xlink = false;
|
|
1437
|
+
{
|
|
1438
|
+
if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
|
|
1439
|
+
memberName = ln;
|
|
1440
|
+
xlink = true;
|
|
1019
1441
|
}
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
1024
|
-
} else {
|
|
1025
|
-
elm.removeAttribute(memberName);
|
|
1026
|
-
}
|
|
1027
|
-
}
|
|
1028
|
-
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
1029
|
-
newValue = newValue === true ? "" : newValue;
|
|
1442
|
+
}
|
|
1443
|
+
if (newValue == null || newValue === false) {
|
|
1444
|
+
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
1030
1445
|
if (xlink) {
|
|
1031
|
-
elm.
|
|
1446
|
+
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
1032
1447
|
} else {
|
|
1033
|
-
elm.
|
|
1448
|
+
elm.removeAttribute(memberName);
|
|
1034
1449
|
}
|
|
1035
1450
|
}
|
|
1451
|
+
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
|
|
1452
|
+
newValue = newValue === true ? "" : newValue;
|
|
1453
|
+
if (xlink) {
|
|
1454
|
+
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
1455
|
+
} else {
|
|
1456
|
+
elm.setAttribute(memberName, newValue);
|
|
1457
|
+
}
|
|
1036
1458
|
}
|
|
1037
1459
|
}
|
|
1038
1460
|
};
|
|
@@ -1125,6 +1547,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1125
1547
|
elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
|
|
1126
1548
|
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
1127
1549
|
elm = newVNode2.$elm$ = slotReferenceDebugNode(newVNode2) ;
|
|
1550
|
+
{
|
|
1551
|
+
updateElement(null, newVNode2, isSvgMode);
|
|
1552
|
+
}
|
|
1128
1553
|
} else {
|
|
1129
1554
|
if (!isSvgMode) {
|
|
1130
1555
|
isSvgMode = newVNode2.$tag$ === "svg";
|
|
@@ -1165,6 +1590,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1165
1590
|
elm["s-cr"] = contentRef;
|
|
1166
1591
|
elm["s-sn"] = newVNode2.$name$ || "";
|
|
1167
1592
|
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
|
1593
|
+
patchSlotNode(elm);
|
|
1168
1594
|
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
1169
1595
|
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
1170
1596
|
{
|
|
@@ -1362,9 +1788,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1362
1788
|
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
1363
1789
|
}
|
|
1364
1790
|
{
|
|
1365
|
-
|
|
1366
|
-
updateElement(oldVNode, newVNode2, isSvgMode, isInitialRender);
|
|
1367
|
-
}
|
|
1791
|
+
updateElement(oldVNode, newVNode2, isSvgMode, isInitialRender);
|
|
1368
1792
|
}
|
|
1369
1793
|
if (oldChildren !== null && newChildren !== null) {
|
|
1370
1794
|
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
@@ -1453,13 +1877,13 @@ var insertBefore = (parent, newNode, reference) => {
|
|
|
1453
1877
|
}
|
|
1454
1878
|
};
|
|
1455
1879
|
function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
|
|
1456
|
-
var _a;
|
|
1880
|
+
var _a, _b;
|
|
1457
1881
|
let scopeId2;
|
|
1458
1882
|
if (reference && typeof slotNode["s-sn"] === "string" && !!slotNode["s-sr"] && reference.parentNode && reference.parentNode["s-sc"] && (scopeId2 = slotNode["s-si"] || reference.parentNode["s-sc"])) {
|
|
1459
1883
|
const scopeName = slotNode["s-sn"];
|
|
1460
1884
|
const hostName = slotNode["s-hn"];
|
|
1461
1885
|
(_a = newParent.classList) == null ? void 0 : _a.add(scopeId2 + "-s");
|
|
1462
|
-
if (oldParent && oldParent.classList.contains(scopeId2 + "-s")) {
|
|
1886
|
+
if (oldParent && ((_b = oldParent.classList) == null ? void 0 : _b.contains(scopeId2 + "-s"))) {
|
|
1463
1887
|
let child = (oldParent.__childNodes || oldParent.childNodes)[0];
|
|
1464
1888
|
let found = false;
|
|
1465
1889
|
while (child) {
|
|
@@ -1500,7 +1924,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1500
1924
|
{
|
|
1501
1925
|
scopeId = hostElm["s-sc"];
|
|
1502
1926
|
}
|
|
1503
|
-
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)
|
|
1927
|
+
useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
1504
1928
|
{
|
|
1505
1929
|
contentRef = hostElm["s-cr"];
|
|
1506
1930
|
checkSlotFallbackVisibility = false;
|
|
@@ -1537,7 +1961,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1537
1961
|
}
|
|
1538
1962
|
}
|
|
1539
1963
|
}
|
|
1540
|
-
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](
|
|
1964
|
+
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
|
|
1541
1965
|
} else {
|
|
1542
1966
|
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1543
1967
|
if (isInitialLoad) {
|
|
@@ -1606,13 +2030,11 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1606
2030
|
hostRef.$queuedListeners$ = void 0;
|
|
1607
2031
|
}
|
|
1608
2032
|
}
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
}
|
|
1613
|
-
{
|
|
1614
|
-
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
2033
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
2034
|
+
} else {
|
|
2035
|
+
maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
|
|
1615
2036
|
}
|
|
2037
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
1616
2038
|
endSchedule();
|
|
1617
2039
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
1618
2040
|
};
|
|
@@ -1692,14 +2114,13 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1692
2114
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
1693
2115
|
const instance = hostRef.$lazyInstance$ ;
|
|
1694
2116
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
2117
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
1695
2118
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
1696
2119
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
1697
2120
|
{
|
|
1698
2121
|
addHydratedFlag(elm);
|
|
1699
2122
|
}
|
|
1700
|
-
|
|
1701
|
-
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
1702
|
-
}
|
|
2123
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
1703
2124
|
endPostUpdate();
|
|
1704
2125
|
{
|
|
1705
2126
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -1708,6 +2129,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1708
2129
|
}
|
|
1709
2130
|
}
|
|
1710
2131
|
} else {
|
|
2132
|
+
safeCall(instance, "componentDidUpdate", void 0, elm);
|
|
1711
2133
|
endPostUpdate();
|
|
1712
2134
|
}
|
|
1713
2135
|
{
|
|
@@ -1725,9 +2147,6 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1725
2147
|
}
|
|
1726
2148
|
};
|
|
1727
2149
|
var appDidLoad = (who) => {
|
|
1728
|
-
{
|
|
1729
|
-
addHydratedFlag(doc.documentElement);
|
|
1730
|
-
}
|
|
1731
2150
|
nextTick$1(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
1732
2151
|
};
|
|
1733
2152
|
var safeCall = (instance, method, arg, elm) => {
|
|
@@ -1789,6 +2208,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1789
2208
|
}
|
|
1790
2209
|
}
|
|
1791
2210
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
2211
|
+
if (instance.componentShouldUpdate) {
|
|
2212
|
+
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
2213
|
+
return;
|
|
2214
|
+
}
|
|
2215
|
+
}
|
|
1792
2216
|
scheduleUpdate(hostRef, false);
|
|
1793
2217
|
}
|
|
1794
2218
|
}
|
|
@@ -1939,7 +2363,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1939
2363
|
let Cstr;
|
|
1940
2364
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1941
2365
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1942
|
-
|
|
2366
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
2367
|
+
if (bundleId) {
|
|
1943
2368
|
const CstrImport = loadModule(cmpMeta);
|
|
1944
2369
|
if (CstrImport && "then" in CstrImport) {
|
|
1945
2370
|
const endLoad = uniqueTime();
|
|
@@ -1975,6 +2400,10 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1975
2400
|
}
|
|
1976
2401
|
endNewInstance();
|
|
1977
2402
|
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
2403
|
+
} else {
|
|
2404
|
+
Cstr = elm.constructor;
|
|
2405
|
+
const cmpTag = elm.localName;
|
|
2406
|
+
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1978
2407
|
}
|
|
1979
2408
|
if (Cstr && Cstr.style) {
|
|
1980
2409
|
let style;
|
|
@@ -1984,6 +2413,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1984
2413
|
const scopeId2 = getScopeId(cmpMeta);
|
|
1985
2414
|
if (!styles$1.has(scopeId2)) {
|
|
1986
2415
|
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
2416
|
+
if (cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */) {
|
|
2417
|
+
style = scopeCss(style, scopeId2, true);
|
|
2418
|
+
}
|
|
1987
2419
|
registerStyle(scopeId2, style);
|
|
1988
2420
|
endRegisterStyles();
|
|
1989
2421
|
}
|
|
@@ -2260,7 +2692,7 @@ function proxyHostElement(elm, cstr) {
|
|
|
2260
2692
|
if (typeof elm.forceUpdate !== "function") {
|
|
2261
2693
|
elm.forceUpdate = forceUpdate2;
|
|
2262
2694
|
}
|
|
2263
|
-
if (!elm.shadowRoot && !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
2695
|
+
if (!elm.shadowRoot && !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */)) {
|
|
2264
2696
|
{
|
|
2265
2697
|
elm.attachShadow({ mode: "open" });
|
|
2266
2698
|
}
|
|
@@ -2296,26 +2728,33 @@ function proxyHostElement(elm, cstr) {
|
|
|
2296
2728
|
}
|
|
2297
2729
|
(_a = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _a.set(memberName, attrPropVal);
|
|
2298
2730
|
}
|
|
2299
|
-
|
|
2731
|
+
const getterSetterDescriptor = {
|
|
2300
2732
|
get: function() {
|
|
2301
2733
|
return getValue(this, memberName);
|
|
2302
2734
|
},
|
|
2303
|
-
set(newValue) {
|
|
2735
|
+
set: function(newValue) {
|
|
2304
2736
|
setValue(this, memberName, newValue, cmpMeta);
|
|
2305
2737
|
},
|
|
2306
2738
|
configurable: true,
|
|
2307
2739
|
enumerable: true
|
|
2308
|
-
}
|
|
2309
|
-
Object.defineProperty(
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2740
|
+
};
|
|
2741
|
+
Object.defineProperty(elm, memberName, getterSetterDescriptor);
|
|
2742
|
+
Object.defineProperty(elm, metaAttributeName, getterSetterDescriptor);
|
|
2743
|
+
if (!cstr.prototype.__stencilAugmented) {
|
|
2744
|
+
Object.defineProperty(cstr.prototype, memberName, {
|
|
2745
|
+
get: function() {
|
|
2746
|
+
var _a2;
|
|
2747
|
+
const ref = getHostRef(this);
|
|
2748
|
+
const attrPropVal2 = (_a2 = ref.$instanceValues$) == null ? void 0 : _a2.get(memberName);
|
|
2749
|
+
if (origGetter && attrPropVal2 === void 0 && !getValue(this, memberName)) {
|
|
2750
|
+
setValue(this, memberName, origGetter.apply(this), cmpMeta);
|
|
2751
|
+
}
|
|
2752
|
+
return attrPropVal2 !== void 0 ? attrPropVal2 : origGetter ? origGetter.apply(this) : getValue(this, memberName);
|
|
2753
|
+
},
|
|
2754
|
+
configurable: true,
|
|
2755
|
+
enumerable: true
|
|
2756
|
+
});
|
|
2757
|
+
}
|
|
2319
2758
|
} else if (memberFlags & 64 /* Method */) {
|
|
2320
2759
|
Object.defineProperty(elm, memberName, {
|
|
2321
2760
|
value(...args) {
|
|
@@ -2331,6 +2770,7 @@ function proxyHostElement(elm, cstr) {
|
|
|
2331
2770
|
});
|
|
2332
2771
|
}
|
|
2333
2772
|
});
|
|
2773
|
+
cstr.prototype.__stencilAugmented = true;
|
|
2334
2774
|
}
|
|
2335
2775
|
}
|
|
2336
2776
|
function componentOnReady() {
|
|
@@ -2389,6 +2829,15 @@ function hydrateApp(win2, opts, results, afterHydrate, resolve) {
|
|
|
2389
2829
|
$flags$: null
|
|
2390
2830
|
});
|
|
2391
2831
|
if (Cstr != null && Cstr.cmpMeta != null) {
|
|
2832
|
+
if (opts.serializeShadowRoot !== false && !!(Cstr.cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && tagRequiresScoped(elm.tagName, opts.serializeShadowRoot)) {
|
|
2833
|
+
const cmpMeta = Cstr.cmpMeta;
|
|
2834
|
+
cmpMeta.$flags$ |= 128 /* shadowNeedsScopedCss */;
|
|
2835
|
+
Object.defineProperty(Cstr, "cmpMeta", {
|
|
2836
|
+
get: function() {
|
|
2837
|
+
return cmpMeta;
|
|
2838
|
+
}
|
|
2839
|
+
});
|
|
2840
|
+
}
|
|
2392
2841
|
createdElements.add(elm);
|
|
2393
2842
|
elm.connectedCallback = patchedConnectedCallback2;
|
|
2394
2843
|
registerHost(elm, Cstr.cmpMeta);
|
|
@@ -2581,6 +3030,25 @@ ${indent}${ln}`;
|
|
|
2581
3030
|
function waitingOnElementsMsg(waitingElements) {
|
|
2582
3031
|
return Array.from(waitingElements).map(waitingOnElementMsg);
|
|
2583
3032
|
}
|
|
3033
|
+
function tagRequiresScoped(tagName, opts) {
|
|
3034
|
+
if (typeof opts === "string") {
|
|
3035
|
+
return opts === "scoped";
|
|
3036
|
+
}
|
|
3037
|
+
if (typeof opts === "boolean") {
|
|
3038
|
+
return opts === true ? false : true;
|
|
3039
|
+
}
|
|
3040
|
+
if (typeof opts === "object") {
|
|
3041
|
+
tagName = tagName.toLowerCase();
|
|
3042
|
+
if (Array.isArray(opts["declarative-shadow-dom"]) && opts["declarative-shadow-dom"].includes(tagName)) {
|
|
3043
|
+
return false;
|
|
3044
|
+
} else if ((!Array.isArray(opts.scoped) || !opts.scoped.includes(tagName)) && opts.default === "declarative-shadow-dom") {
|
|
3045
|
+
return false;
|
|
3046
|
+
} else {
|
|
3047
|
+
return true;
|
|
3048
|
+
}
|
|
3049
|
+
}
|
|
3050
|
+
return false;
|
|
3051
|
+
}
|
|
2584
3052
|
var cmpModules = /* @__PURE__ */ new Map();
|
|
2585
3053
|
var getModule = (tagName) => {
|
|
2586
3054
|
if (typeof tagName === "string") {
|
|
@@ -2646,11 +3114,16 @@ var plt = {
|
|
|
2646
3114
|
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
2647
3115
|
ce: (eventName, opts) => new win.CustomEvent(eventName, opts)
|
|
2648
3116
|
};
|
|
2649
|
-
var
|
|
2650
|
-
|
|
3117
|
+
var getHostRef = (ref) => {
|
|
3118
|
+
if (ref.__stencil__getHostRef) {
|
|
3119
|
+
return ref.__stencil__getHostRef();
|
|
3120
|
+
}
|
|
3121
|
+
return void 0;
|
|
3122
|
+
};
|
|
2651
3123
|
var registerInstance = (lazyInstance, hostRef) => {
|
|
2652
|
-
|
|
2653
|
-
|
|
3124
|
+
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
3125
|
+
hostRef.$lazyInstance$ = lazyInstance;
|
|
3126
|
+
return hostRef;
|
|
2654
3127
|
};
|
|
2655
3128
|
var registerHost = (elm, cmpMeta) => {
|
|
2656
3129
|
const hostRef = {
|
|
@@ -2664,7 +3137,8 @@ var registerHost = (elm, cmpMeta) => {
|
|
|
2664
3137
|
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
|
2665
3138
|
elm["s-p"] = [];
|
|
2666
3139
|
elm["s-rc"] = [];
|
|
2667
|
-
|
|
3140
|
+
elm.__stencil__getHostRef = () => hostRef;
|
|
3141
|
+
return hostRef;
|
|
2668
3142
|
};
|
|
2669
3143
|
var styles$1 = /* @__PURE__ */ new Map();
|
|
2670
3144
|
|
|
@@ -2730,7 +3204,7 @@ class Accordion {
|
|
|
2730
3204
|
const accordionLightContent = this.isLight ? 'accordion-content accordion-light-content' : 'accordion-content';
|
|
2731
3205
|
const accordionLightSeparator = this.isLightSeparator ? 'accordion accordion-light accordion-light--border' : 'accordion';
|
|
2732
3206
|
const accordionSmall = this.isSmall ? 'accordion accordion-light accordion-light--small' : 'accordion';
|
|
2733
|
-
return (hAsync("details", { key: '
|
|
3207
|
+
return (hAsync("details", { key: '5dfd9bd1e074c5e152bb8b67bbd3216dbe08b5d1', class: `${accordionLight} ${accordionSmall} ${accordionLightSeparator}`, open: this.isOpen }, hAsync("summary", { key: 'be8fff938191f7112143a9928f28202b45e5a377', class: "accordion-trigger", "aria-expanded": `${this.isOpen}`, tabindex: "0", role: "button", onClick: this.onClick }, hAsync("div", { key: '253c0debc2837ccfe6573d9f36791e40b0f9b361', class: accordionLightHeader }, hAsync("slot", { key: 'ebb099f4fe878cec4f97b09688cacb17f646a1d0', name: "icon-left" }), hAsync("slot", { key: '81e22cac92b09cdaf687b557a76ffd31c27edc48', name: "header" }), hAsync("road-icon", { key: '1bebaad71a85ccb2eb284aba75f400b0590b96dc', class: "accordion-arrow", icon: navigationChevron }))), hAsync("div", { key: '0c96a49083f58ab903fd521692e5b2460429a2fa', class: accordionLightContent }, hAsync("slot", { key: '680fd216f2dc62cd2bd711f3ae3ade6dfe40262f' }))));
|
|
2734
3208
|
}
|
|
2735
3209
|
static get style() { return RoadAccordionStyle0; }
|
|
2736
3210
|
static get cmpMeta() { return {
|
|
@@ -2765,7 +3239,7 @@ class Alert {
|
|
|
2765
3239
|
}
|
|
2766
3240
|
render() {
|
|
2767
3241
|
const colorClass = this.color !== undefined ? `alert-${this.color}` : '';
|
|
2768
|
-
return (hAsync(Host, { key: '
|
|
3242
|
+
return (hAsync(Host, { key: 'a9159f4c06f73f5c8cb4b9db0c30c4f50b3d5d0e', class: colorClass, role: "alert" }, hAsync("div", { key: 'b0c2bb711914eb8d61fac963cc63d86216c69d75', class: "alert-icon" }, hAsync("slot", { key: '7c7c83a74c26b84cef5e6a6c488cc16bf38da79c', name: "icon" })), hAsync("div", { key: '934de5b3ca1c562712b7814b7618a8e7cfd4bcfa' }, this.label && hAsync("span", { key: '2424329dc98cb46b4a8f54fea9cb051f427bc77c', class: "alert-title d-block" }, this.label), hAsync("p", { key: '791c3065998fcc8ee1e14d8315e490b511573779', class: "alert-description" }, hAsync("slot", { key: 'af35688df52ad5c2da3066b3b85b93560a467a7a' }), this.link && hAsync("a", { key: 'f4ca413fe5b3a7f8a7cb7bf29d107b5ce5be5a7b', href: this.url, class: "alert-link link link-default" }, this.link)))));
|
|
2769
3243
|
}
|
|
2770
3244
|
static get style() { return RoadAlertStyle0; }
|
|
2771
3245
|
static get cmpMeta() { return {
|
|
@@ -2864,7 +3338,7 @@ class Asset {
|
|
|
2864
3338
|
}
|
|
2865
3339
|
}
|
|
2866
3340
|
render() {
|
|
2867
|
-
return (hAsync(Host, { key: '
|
|
3341
|
+
return (hAsync(Host, { key: '7bd32a7dfe1578a37cc8bec3bb04b7c4c258428f', "aria-hidden": "true", role: "img" }, ((this.assetSvgContent !== '')
|
|
2868
3342
|
? hAsync("div", { class: "icon-inner", innerHTML: this.assetSvgContent })
|
|
2869
3343
|
: hAsync("div", { class: "icon-inner" }))));
|
|
2870
3344
|
}
|
|
@@ -2934,8 +3408,8 @@ class Autocomplete {
|
|
|
2934
3408
|
}
|
|
2935
3409
|
}
|
|
2936
3410
|
render() {
|
|
2937
|
-
return (hAsync(Host, { key: '
|
|
2938
|
-
hAsync("ul", { key: '
|
|
3411
|
+
return (hAsync(Host, { key: '1190e7f212f77cab6afc109e7e0f3084b8efebd8' }, hAsync("slot", { key: '11a27dffa99da856e71fc1442ccec3ed27536371' }), this.visible && this.options.length > 0 &&
|
|
3412
|
+
hAsync("ul", { key: 'ab204b0678947e284f9dab05abee5839a48177e5', 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))))));
|
|
2939
3413
|
}
|
|
2940
3414
|
get el() { return getElement(this); }
|
|
2941
3415
|
static get style() { return RoadAutocompleteStyle0; }
|
|
@@ -2968,7 +3442,7 @@ class Avatar {
|
|
|
2968
3442
|
}
|
|
2969
3443
|
render() {
|
|
2970
3444
|
const sizeClass = this.size !== undefined ? `avatar-${this.size}` : '';
|
|
2971
|
-
return (hAsync(Host, { key: '
|
|
3445
|
+
return (hAsync(Host, { key: '5c915dcd64e3ada9d5a7eb62a7a07a158f89219b', class: `${sizeClass}` }, hAsync("slot", { key: 'ac0d3803d3f176d97849f9f7d928c2dbb81fae51' })));
|
|
2972
3446
|
}
|
|
2973
3447
|
static get style() { return RoadAvatarStyle0; }
|
|
2974
3448
|
static get cmpMeta() { return {
|
|
@@ -3004,7 +3478,7 @@ class Badge {
|
|
|
3004
3478
|
render() {
|
|
3005
3479
|
const colorClass = this.color !== undefined ? `badge-${this.color}` : '';
|
|
3006
3480
|
const bubbleClass = this.bubble ? 'badge-bubble' : '';
|
|
3007
|
-
return (hAsync(Host, { key: '
|
|
3481
|
+
return (hAsync(Host, { key: 'c085e73938935fe52d13fceb33b22d9c44b6c829', class: `${colorClass} ${bubbleClass}` }, hAsync("slot", { key: '5566674acd833574833859a1028f8e5c0115fec3' })));
|
|
3008
3482
|
}
|
|
3009
3483
|
static get style() { return RoadBadgeStyle0; }
|
|
3010
3484
|
static get cmpMeta() { return {
|
|
@@ -3053,7 +3527,7 @@ class Banner {
|
|
|
3053
3527
|
}
|
|
3054
3528
|
render() {
|
|
3055
3529
|
const bannerIsOpenClass = this.isOpen ? 'banner-open' : '';
|
|
3056
|
-
return (hAsync(Host, { key: '
|
|
3530
|
+
return (hAsync(Host, { key: 'a105c1e00351a2de524ed8a3bb0a94fcaab6d8d9', class: bannerIsOpenClass }, hAsync("div", { key: '26493928b8e6e51d927e38d879c024bd7e590507' }, hAsync("span", { key: '4287fb8d8ed84413b49970548198e8f643dafca3', class: "banner-open-label" }, this.label), this.link && hAsync("a", { key: '67415dff1ff70f6c886ed93d7b635cc1d8d8074d', href: this.url, class: "banner-open-link" }, this.link), hAsync("button", { key: 'b06a373777f426c731181a892ec496a253b2bb0c', type: "button", class: "banner-close", onClick: this.onClick, "aria-label": "closed" }, hAsync("road-icon", { key: '389f8c2e47ee9bd3e8c7008ca19c7e1bd3684bca', icon: navigationClose, size: "md" })))));
|
|
3057
3531
|
}
|
|
3058
3532
|
static get style() { return RoadBannerStyle0; }
|
|
3059
3533
|
static get cmpMeta() { return {
|
|
@@ -3159,7 +3633,7 @@ class Button$1 {
|
|
|
3159
3633
|
const sizeClass = this.size !== undefined ? `btn-${this.size}` : '';
|
|
3160
3634
|
const expandClass = this.expand ? 'btn-block' : '';
|
|
3161
3635
|
const iconOnlyClass = this.iconOnly ? 'btn-icon' : '';
|
|
3162
|
-
return (hAsync(Host, { key: '
|
|
3636
|
+
return (hAsync(Host, { key: 'af1060675e8534aefd6d5134138847b7790bba63', class: [colorClass, sizeClass, expandClass, iconOnlyClass].filter(Boolean).join(' '), onClick: this.onClick, "aria-disabled": disabled ? 'true' : null }, hAsync(TagType, Object.assign({ key: '457a74ceff7d063c0a2985cc12f500e592651bea' }, attrs, { class: "button-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur }), hAsync("slot", { key: 'edade00401e1d7e9586fd40bb8c2efee152d987f', name: "start" }), hAsync("slot", { key: '41cd32239226d06c83396c50cc735450c9f8533a' }), hAsync("slot", { key: '6f9ee102c873ef0d37145ca8e8b220ca9ed7b83e', name: "end" }))));
|
|
3163
3637
|
}
|
|
3164
3638
|
get el() { return getElement(this); }
|
|
3165
3639
|
static get style() { return RoadButtonStyle0; }
|
|
@@ -3244,7 +3718,7 @@ class Button {
|
|
|
3244
3718
|
render() {
|
|
3245
3719
|
const TagType = this.href === undefined ? 'button' : 'a';
|
|
3246
3720
|
const positionClass = this.position !== undefined ? `position-${this.position}` : '';
|
|
3247
|
-
return (hAsync(Host, { key: '
|
|
3721
|
+
return (hAsync(Host, { key: '714875bbaa8a85637fbf2929f08c58c8093b31ee', onClick: this.onClick, class: `${positionClass}` }, hAsync(TagType, { key: 'da35eeb26bcb6657719ae0e52462ec6026a19dcb', class: "button-native", part: "native", onFocus: this.onFocus, onBlur: this.onBlur }, hAsync("slot", { key: '9d35eae8e28e447ebc523af1dd4701751ec418f4', name: "start" }), hAsync("slot", { key: 'e2a88b355c5e21c45e10b39b6d3d69ec853e373d' }))));
|
|
3248
3722
|
}
|
|
3249
3723
|
get el() { return getElement(this); }
|
|
3250
3724
|
static get style() { return RoadButtonFloatingStyle0; }
|
|
@@ -3289,7 +3763,7 @@ class ButtonBar {
|
|
|
3289
3763
|
this.selectedTabChanged();
|
|
3290
3764
|
}
|
|
3291
3765
|
render() {
|
|
3292
|
-
return (hAsync(Host, { key: '
|
|
3766
|
+
return (hAsync(Host, { key: '01e10de21adf47d551a566458db121eaf08b21d1', role: "tablist" }, hAsync("slot", { key: 'ec1d192d52d23a59fb5123a267e03386773ad733' })));
|
|
3293
3767
|
}
|
|
3294
3768
|
get el() { return getElement(this); }
|
|
3295
3769
|
static get watchers() { return {
|
|
@@ -3372,7 +3846,7 @@ class Card {
|
|
|
3372
3846
|
render() {
|
|
3373
3847
|
const { elevation } = this;
|
|
3374
3848
|
const elevationClass = this.elevation ? `card-elevation-${elevation}` : ``;
|
|
3375
|
-
return (hAsync(Host, { key: '
|
|
3849
|
+
return (hAsync(Host, { key: 'f594ba577e5c19d00c2c432adad6dbaeefd59842', class: `${elevationClass}` }, this.renderCard()));
|
|
3376
3850
|
}
|
|
3377
3851
|
get el() { return getElement(this); }
|
|
3378
3852
|
static get style() { return RoadCardStyle0; }
|
|
@@ -10119,7 +10593,7 @@ class Carousel {
|
|
|
10119
10593
|
});
|
|
10120
10594
|
}
|
|
10121
10595
|
render() {
|
|
10122
|
-
return (hAsync(Host, { key: '
|
|
10596
|
+
return (hAsync(Host, { key: '12d20aa19b79d9b2d6855d017d4fffa28ff74b61', class: "swiper-container", tabindex: "0" }, hAsync("div", { key: '98ff26cd243639a40595efb8dea2d330e9a684f1', class: "swiper-wrapper" }, hAsync("slot", { key: '59aaac8ad2dd781c0ede00da3993794e0f63f58f' })), this.pager && hAsync("div", { key: '72f5f87a15ac2e4c42bb4c484a15d77e1d7cec16', class: "swiper-pagination", ref: el => this.paginationEl = el }), this.arrows && (hAsync("div", { key: 'cadd28effeb7c1987c325eaa4beaf3188c180895', role: "button", class: "swiper-button-prev", tabindex: "0", "aria-label": "Previous slide", onClick: () => this.slidePrev() }, hAsync("road-icon", { key: '3bfa233b7f6c5aabc16390e123daccef0f3f1a7e', icon: navigationChevron, rotate: "180" }))), this.arrows && (hAsync("div", { key: '34277c5651b1e5c65248611bb3727a58eeb700b6', role: "button", class: "swiper-button-next", tabindex: "0", "aria-label": "Next slide", onClick: () => this.slideNext() }, hAsync("road-icon", { key: 'ff2290ec9b480991d62d5b88c4cdd0f249a9b951', icon: navigationChevron })))));
|
|
10123
10597
|
}
|
|
10124
10598
|
get el() { return getElement(this); }
|
|
10125
10599
|
static get watchers() { return {
|
|
@@ -10170,10 +10644,10 @@ class CarouselItem {
|
|
|
10170
10644
|
registerInstance(this, hostRef);
|
|
10171
10645
|
}
|
|
10172
10646
|
render() {
|
|
10173
|
-
return (hAsync(Host, { key: '
|
|
10647
|
+
return (hAsync(Host, { key: '4b574d9c139a643842cc7230c9ce080104c57c2d', class: {
|
|
10174
10648
|
'swiper-slide': true,
|
|
10175
10649
|
'swiper-zoom-container': true,
|
|
10176
|
-
} }, hAsync("slot", { key: '
|
|
10650
|
+
} }, hAsync("slot", { key: 'a6af18ea8d00e1f3e501516977317433d51f8feb' })));
|
|
10177
10651
|
}
|
|
10178
10652
|
static get style() { return RoadCarouselItemStyle0; }
|
|
10179
10653
|
static get cmpMeta() { return {
|
|
@@ -10264,7 +10738,7 @@ class Checkbox {
|
|
|
10264
10738
|
const labelId = this.checkboxId + '-label';
|
|
10265
10739
|
const inverseClass = this.inverse && 'form-checkbox-inverse';
|
|
10266
10740
|
const isInvalidClass = this.error !== undefined && !this.checked && this.error !== '' ? 'is-invalid' : '';
|
|
10267
|
-
return (hAsync(Host, { key: '
|
|
10741
|
+
return (hAsync(Host, { key: '2900882e946a25b7fb69cf45e5211b559ed03c77' }, hAsync("input", { key: 'ce081678667ca8fb37eef85c2ee69b9aac06ed48', 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: '75164824c0a129f8106becd1df35bbb293f9af3f', class: `form-check-label ${inverseClass}`, id: labelId, htmlFor: this.checkboxId }, hAsync("div", { key: '4e7cd382339733539b9403b1a58d3477063b1a11' }, this.label, " ", hAsync("span", { key: 'b52a4d81d792f2d06af5d283511484f630f6b845', class: "form-check-label-span" }, this.secondaryLabel), hAsync("slot", { key: '0710169a5ed9feab6608247b8c90a37e3fe86d82' })), this.checked && !this.indeterminate && hAsync("road-icon", { key: '9c33b58158bb134d7f08dcc598c21187865975f4', class: "form-check-icon", icon: checkWide }), this.indeterminate && hAsync("road-icon", { key: '742c4683a4e71dee6fd8b932f04f8ec11c2f1569', class: "form-check-icon", icon: navigationAddLess })), this.error && this.error !== '' && hAsync("p", { key: '560efd0976ed62d8f6f5826f695960355c0fc047', class: "invalid-feedback" }, this.error), this.helper && this.helper !== '' && hAsync("p", { key: '66ddbda01bfd218f64d0086bcf77d7fce9e8edba', class: "helper" }, this.helper)));
|
|
10268
10742
|
}
|
|
10269
10743
|
static get watchers() { return {
|
|
10270
10744
|
"checked": ["checkedChanged"]
|
|
@@ -10322,7 +10796,7 @@ class Chip {
|
|
|
10322
10796
|
}
|
|
10323
10797
|
render() {
|
|
10324
10798
|
const outlineClass = this.outline ? 'chip-outline' : '';
|
|
10325
|
-
return (hAsync(Host, { key: '
|
|
10799
|
+
return (hAsync(Host, { key: '681edc23f865bf60ce355ce37152b4a85edb90ad', class: `${outlineClass} chip-${this.color} chip-${this.size}`, tabindex: "0" }, hAsync("div", { key: '2b3dcb2ed46f72c020cc84a00c5fbde0dbac2175', class: "chip-description" }, hAsync("slot", { key: '759517fe266c8829490d7a4727e54aca6d8de499' })), this.hasCloseIcon && hAsync("road-icon", { key: 'b15b57aeba510b2517a7428996d04ab4c6e289c1', class: "chip-close", icon: navigationClose })));
|
|
10326
10800
|
}
|
|
10327
10801
|
static get style() { return RoadChipStyle0; }
|
|
10328
10802
|
static get cmpMeta() { return {
|
|
@@ -10351,7 +10825,7 @@ class Col {
|
|
|
10351
10825
|
registerInstance(this, hostRef);
|
|
10352
10826
|
}
|
|
10353
10827
|
render() {
|
|
10354
|
-
return (hAsync("slot", { key: '
|
|
10828
|
+
return (hAsync("slot", { key: '308e7274e937ddf050ee09e50c6433bdc2be1060' }));
|
|
10355
10829
|
}
|
|
10356
10830
|
static get style() { return RoadColStyle0; }
|
|
10357
10831
|
static get cmpMeta() { return {
|
|
@@ -10401,7 +10875,7 @@ class Collapse {
|
|
|
10401
10875
|
const isOpenClass = this.isOpen ? 'collapse-open' : '';
|
|
10402
10876
|
const buttonText = this.isOpen ? this.showLess : this.showMore;
|
|
10403
10877
|
const centerClass = this.centered ? 'collapse-btn-centered' : '';
|
|
10404
|
-
return (hAsync(Host, { key: '
|
|
10878
|
+
return (hAsync(Host, { key: '14a791a1c44b2663271a3bff558a7874e2ee7caf' }, hAsync("slot", { key: '780b75654bbefe7c986278f5fb75447f5c7a0f6c' }), hAsync("div", { key: 'ba98306a26a5b6c67b3eabb835769b0fb862eca8', class: `collapsed-content ${isOpenClass}` }, hAsync("slot", { key: '6ea2468b850e40a410c005e51f322f39598ecacf', name: "collapsed-content" })), hAsync("div", { key: 'ed36590ccd709ed7f81d3ddfa380759ff42d5415', class: `collapse-btn-wrapper ${centerClass}` }, hAsync("road-button", { key: 'ea9016fe892bba735684797c3889fb4322e4d078', onClick: this.onClick, class: "collapse-btn btn-link" }, buttonText))));
|
|
10405
10879
|
}
|
|
10406
10880
|
static get style() { return RoadCollapseStyle0; }
|
|
10407
10881
|
static get cmpMeta() { return {
|
|
@@ -10438,7 +10912,7 @@ class ContentCard {
|
|
|
10438
10912
|
}
|
|
10439
10913
|
render() {
|
|
10440
10914
|
const insetImageClass = this.insetImage ? '' : 'content-card-image';
|
|
10441
|
-
return (hAsync(Host, { key: '
|
|
10915
|
+
return (hAsync(Host, { key: '1147605af36c9f79e54ae7b182b52aa0736963f0' }, hAsync("road-img", { key: 'cb4ff05f845db0f9a3f01e949dd93f4a9a993be9', src: "https://s1.medias-norauto.fr/visuals/desktop/fr/banners/blog_loimontagne.png", alt: "loi montagne", class: insetImageClass }), hAsync("div", { key: 'ec567c8b5e0103207b47ff484e0f608ff8cba29d', class: "content-card-description" }, hAsync("road-label", { key: 'bd9eb292c2445fc6afe152a44c878df738a792bc', class: "content-card-description-title" }, hAsync("slot", { key: '9fb8fdd424a012464aceaf41a20fb74e324f9c8a', name: "label" })), hAsync("p", { key: 'abecf2b08cddda78f82294fabaef2702cc0c00a0', class: "content-card-description-text" }, hAsync("slot", { key: '63bc318398385452c8cb85898c4544e15ffadfc5', name: "description" })), hAsync("div", { key: 'd8a906c86171dd2e26ea79711d39b6b7afd7538b', class: "content-card-description-buttons" }, hAsync("slot", { key: 'cfd898fa6b9c4c4810bf79ecbcd3ab1150d87248' })))));
|
|
10442
10916
|
}
|
|
10443
10917
|
static get style() { return RoadContentCardStyle0; }
|
|
10444
10918
|
static get cmpMeta() { return {
|
|
@@ -10598,7 +11072,7 @@ class Counter {
|
|
|
10598
11072
|
}
|
|
10599
11073
|
render() {
|
|
10600
11074
|
const dataCi = this.isDustbinVisible ? "road-dustbin" : "";
|
|
10601
|
-
return (hAsync("road-input-group", { key: '
|
|
11075
|
+
return (hAsync("road-input-group", { key: '9788fb977d6d1845e313f9ff17f46a1d271f1c5c', class: this.size && `counter-${this.size}` }, hAsync("road-button", { key: '0e2a85ce7df51ce14ae1bc0dc7ddb21141a1f94f', slot: "prepend", size: this.size, onClick: this.decrease, class: this.leftIconClasses, "data-cy": "road-decrease" }, hAsync("road-icon", { key: '6414369e4329b90537394b3fef4bd000e71689df', 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: '13acb066bab081e639d83967958ae36b91130fd9', 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: '632246976539191f43e7385c520da19cd1533bcc', slot: "append", size: this.size, onClick: this.increase, class: this.rightIconClasses, "data-cy": "road-increase" }, hAsync("road-icon", { key: 'b1a5a2e8307845e3223675df7e74bda5345278ce', name: "navigation-add-more", size: this.size, role: "button" }))));
|
|
10602
11076
|
}
|
|
10603
11077
|
get el() { return getElement(this); }
|
|
10604
11078
|
static get watchers() { return {
|
|
@@ -10714,11 +11188,11 @@ class Dialog {
|
|
|
10714
11188
|
break;
|
|
10715
11189
|
}
|
|
10716
11190
|
}
|
|
10717
|
-
return (hAsync(Host, { key: '
|
|
11191
|
+
return (hAsync(Host, { key: '3465e538f455551bde4db1437227629c9213a46c', class: `dialog ${modalIsOpenClass} ${modalhasClose}`, role: "alertdialog", "aria-modal": "true", tabindex: "-1", "aria-label": "dialogLabel" }, hAsync("div", { key: 'fe31279bd4aae80ae1586c14b51a04aba28e2dbe', class: "dialog-overlay", onClick: this.hasCloseIcon === true ? this.onClick : undefined, tabindex: "-1" }), hAsync("div", { key: 'ad714da72adfb492697a73ba033c70bfcbb1d091', class: "dialog-modal", role: "document", tabindex: "0" }, hAsync("div", { key: '6ff9262b2e039293e234db9361e73a8b5d598e4e', class: "dialog-content" }, hAsync("header", { key: '13139e9a4d2c92b3b0a5bc025eea15595d8674d0', class: "dialog-header" }, this.hasCloseIcon
|
|
10718
11192
|
? hAsync("button", { type: "button", class: "dialog-close", onClick: this.onClick, "aria-label": "Close" }, hAsync("road-icon", { icon: navigationClose, "aria-hidden": "true" }))
|
|
10719
|
-
: ''), hAsync("div", { key: '
|
|
11193
|
+
: ''), hAsync("div", { key: '3c8d582ce22773ffad9d03d4ab52b6a40ca19996', class: "dialog-body" }, this.color !== undefined
|
|
10720
11194
|
? hAsync("road-icon", { class: "dialog-icon", part: "dialog-icon", color: this.color, icon: icon, "aria-hidden": "true" })
|
|
10721
|
-
: '', hAsync("h2", { key: '
|
|
11195
|
+
: '', hAsync("h2", { key: '401ee0317d7d2cfac6c4d7d2ebd46b475f99d355', class: "dialog-title" }, this.label), hAsync("p", { key: 'b52bd3f886a333ce07e5cabe68fe83eb1a878ae2', class: "dialog-description", id: "dialogDesc" }, this.description)), hAsync("footer", { key: '0721ff75a034cb0338817fef637d5d7b7f6ab119', class: "dialog-footer" }, hAsync("slot", { key: '5037401bf6b06c9f37ee24a996857101d8f6fd9f' }))))));
|
|
10722
11196
|
}
|
|
10723
11197
|
get el() { return getElement(this); }
|
|
10724
11198
|
static get style() { return RoadDialogStyle0; }
|
|
@@ -10882,7 +11356,7 @@ class Drawer {
|
|
|
10882
11356
|
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) : '';
|
|
10883
11357
|
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" })) : '';
|
|
10884
11358
|
const drawerWidthValue = this.position === 'bottom' ? '100%' : this.drawerWidth + 'px';
|
|
10885
|
-
return (hAsync(Host, { key: '
|
|
11359
|
+
return (hAsync(Host, { key: '47d12bf416475585e23fddd9591cf1a8a66fd0bd', class: `${drawerIsOpenClass} drawer-${this.position}`, tabindex: "0", role: "dialog", "aria-label": `${ariaLabel}` }, hAsync("div", { key: 'd64e193d6213f2e388a0a253d55234915c31755e', class: "drawer-overlay", onClick: this.onClick, tabindex: "-1" }), hAsync("div", { key: '8f73b51b376e8ba6a44e8b5af656624bfa289afe', class: "drawer-dialog", style: { maxWidth: `${drawerWidthValue}` }, role: "document", tabindex: "0" }, hAsync("div", { key: '773eb657e7f7e6d423285f17802e9499a179612c', class: "drawer-content" }, hAsync("header", { key: '04f9e18665ee976b9d0b9c2c9282e3addfd92ae1', class: `drawer-header ${inverseHeaderClass} ${drawerDelimiterClass}` }, backIconElement, this.drawerTitle !== undefined ? hAsync("h2", { class: "drawer-title" }, this.drawerTitle) : hAsync("div", { class: "drawer-title" }, hAsync("slot", { name: "title" })), closeIconElement), hAsync("div", { key: '90a47e8b7fa5361363190b7a5946da2e87ffe0ec', class: "drawer-body" }, hAsync("slot", { key: '4d7b90fb5ef99d26b0669c52252c7b7d4202bddd' })), this.hasFooterContent() && (hAsync("footer", { key: '7a5b36eba655b67ef06edd3880d77c0c626e2817', class: "drawer-footer" }, hAsync("slot", { key: '10ffad4c9b4d5498768086e18731e2825681ee5f', name: "footer" })))))));
|
|
10886
11360
|
}
|
|
10887
11361
|
get el() { return getElement(this); }
|
|
10888
11362
|
static get watchers() { return {
|
|
@@ -10942,7 +11416,7 @@ class Dropdown$1 {
|
|
|
10942
11416
|
const positionClass = this.position ? `position-${this.position}` : '';
|
|
10943
11417
|
const dropdownClass = this.position ? `dropdown-${this.position}` : '';
|
|
10944
11418
|
const directionClass = this.direction ? `direction-${this.direction}` : '';
|
|
10945
|
-
return (hAsync("details", { key: '
|
|
11419
|
+
return (hAsync("details", { key: '5e1ec56ea30d7f28f8099711e7c4409431502ec5', class: "dropdown", open: this.isOpen }, hAsync("summary", { key: 'ed87cdfa779d65b403af6057256ba91ff06daca8', "aria-expanded": this.isOpen.toString(), tabindex: "0", role: "button", onClick: this.onClick, "tab-index": "0" }, hAsync("div", { key: '658fe325fedc4309319b679776329a0f6abc8770', class: `d-flex ${positionClass}` }, hAsync("div", { key: '6fe331eb246f1ca0543e1c699d8225e373149353', class: `${isLightButtonDropDown} ${isMediumButtonDropDown}` }, hAsync("road-icon", { key: '7a63c090cd1c96b8c1ffe9a6fba343173c7ea001', name: "navigation-more", class: "dropdown-button-icon", "aria-hidden": "true" })))), hAsync("div", { key: 'f05004485fd5270bbaac02f4260e98813a62167f', class: `dropdown-menu ${directionClass} ${dropdownClass}` }, hAsync("slot", { key: '714ed40e12e01a291967da9211e475a44aff1431', name: "list" }))));
|
|
10946
11420
|
}
|
|
10947
11421
|
get el() { return getElement(this); }
|
|
10948
11422
|
static get style() { return RoadDropdownStyle0; }
|
|
@@ -10998,7 +11472,7 @@ class Dropdown {
|
|
|
10998
11472
|
this.isOpen = false;
|
|
10999
11473
|
}
|
|
11000
11474
|
render() {
|
|
11001
|
-
return (hAsync("details", { key: '
|
|
11475
|
+
return (hAsync("details", { key: '5f57d711c58b1e7dea03ebbcfdff625b68e5ccc1', class: "dropdown", open: this.isOpen }, hAsync("summary", { key: '52ae10770ad84d224b9f863027312e34e091319c', "aria-expanded": `${this.isOpen}`, tabindex: "0", role: "button", onClick: this.onClick }, hAsync("div", { key: 'f121a0d7f24beb6f97f69a4b51865e439ef6d96a', class: `d-flex` }, hAsync("div", { key: 'b0bb4f2ce959568a50ba7003b2e36eed6e2b473c' }, hAsync("road-avatar", { key: '77be4142fd88cde76d3f35a4a07616c9ea24d722' }, hAsync("slot", { key: '59619df733eb330798a740a79ec0096ce4bff78b', name: "avatar" }))))), hAsync("div", { key: '7f04e0e94dacbd4304e8ef18ed83558c899eb1dd', class: `dropdown-menu` }, hAsync("div", { key: 'bec6d0c5a291d410aa6b6ea271307c950a872f10', class: "profil-item" }, hAsync("road-avatar", { key: 'a46fea665342efe23b96ca3805acce5d67334e37', size: "sm" }, hAsync("slot", { key: '89a618d9542a9e35cf7ba20c8eccc826a834d2a0', name: "avatarItem" })), hAsync("div", { key: '0c2b292c3b73910518697951e1b737d3ac3e1766', class: "profil-item-info" }, hAsync("span", { key: '5805df79ebabbd9bf1f6d1d34c97a8e1f5573b84', class: "profil-item-info-name" }, hAsync("slot", { key: '9d2a8703793b8afe20879b8b5e1bb8f67fb6b4cf', name: "name" })), hAsync("road-label", { key: '3fa303b0fb162fb7282d9de5f0259d5738fe3b5f' }, hAsync("slot", { key: '74d10a25a0268e1dcaeed64b5ffc228a881e07a1', name: "email" })))), hAsync("slot", { key: '2f3dfac57fb39f005d1ec3502aaa13e661c8968e', name: "list" }))));
|
|
11002
11476
|
}
|
|
11003
11477
|
get el() { return getElement(this); }
|
|
11004
11478
|
static get style() { return RoadProfilDropdownStyle0; }
|
|
@@ -11062,7 +11536,7 @@ class Duration {
|
|
|
11062
11536
|
this.isOpen = false;
|
|
11063
11537
|
}
|
|
11064
11538
|
render() {
|
|
11065
|
-
return (hAsync("road-drawer", { key: '
|
|
11539
|
+
return (hAsync("road-drawer", { key: '174ce308ddad050e416dd7a8d0a6cb67d230de24', "is-open": this.isOpen, position: "bottom", "drawer-title": this.header }, hAsync("road-grid", { key: '0e67bceae3137cf0f15dc11c5e3ae2d58508aa20' }, hAsync("road-row", { key: 'b71af953b135fdabd54383c4fbef73bbe91214e3', 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 })))))))));
|
|
11066
11540
|
}
|
|
11067
11541
|
get el() { return getElement(this); }
|
|
11068
11542
|
static get style() { return RoadDurationStyle0; }
|
|
@@ -11108,7 +11582,7 @@ class Flap {
|
|
|
11108
11582
|
}
|
|
11109
11583
|
render() {
|
|
11110
11584
|
const colorClass = this.filled ? `flap-${this.color}-filled` : `flap-${this.color}`;
|
|
11111
|
-
return (hAsync(Host, { key: '
|
|
11585
|
+
return (hAsync(Host, { key: '1fe4c3376497a138ea4458c5ff02e1c21f6e1193', class: `${colorClass} flap-${this.size}` }, hAsync("slot", { key: '7abea3b1b63c69c653ea84ef80c9996d589a723f' })));
|
|
11112
11586
|
}
|
|
11113
11587
|
static get style() { return RoadFlapStyle0; }
|
|
11114
11588
|
static get cmpMeta() { return {
|
|
@@ -11154,7 +11628,7 @@ class GlobalNavigation {
|
|
|
11154
11628
|
this.selectedTabChanged();
|
|
11155
11629
|
}
|
|
11156
11630
|
render() {
|
|
11157
|
-
return (hAsync(Host, { key: '
|
|
11631
|
+
return (hAsync(Host, { key: '6dd4185ee2cd4a4c9b35571c9be8bf168f0a911d', role: "application" }, hAsync("slot", { key: '6a939f92d1eab5cbcf40ef3d66d1e2b5d68adbdc' })));
|
|
11158
11632
|
}
|
|
11159
11633
|
static get watchers() { return {
|
|
11160
11634
|
"selectedTab": ["selectedTabChanged"]
|
|
@@ -11302,7 +11776,7 @@ class GlobalNavigationV2 {
|
|
|
11302
11776
|
this.selectedTabChanged();
|
|
11303
11777
|
}
|
|
11304
11778
|
render() {
|
|
11305
|
-
return (hAsync(Host, { key: '
|
|
11779
|
+
return (hAsync(Host, { key: '4e42b7a8ffc4cbc5a3a8aff8f94f39a8f205cb8f', role: "application" }, hAsync("slot", { key: '4766cb9de33e7b52aa7ebfc56e5f2c414e7bf572' })));
|
|
11306
11780
|
}
|
|
11307
11781
|
get host() { return getElement(this); }
|
|
11308
11782
|
static get watchers() { return {
|
|
@@ -11332,7 +11806,7 @@ class Grid {
|
|
|
11332
11806
|
registerInstance(this, hostRef);
|
|
11333
11807
|
}
|
|
11334
11808
|
render() {
|
|
11335
|
-
return (hAsync("slot", { key: '
|
|
11809
|
+
return (hAsync("slot", { key: '447064505d003d387d59458832935e8495802e4d' }));
|
|
11336
11810
|
}
|
|
11337
11811
|
static get style() { return RoadGridStyle0; }
|
|
11338
11812
|
static get cmpMeta() { return {
|
|
@@ -11430,12 +11904,14 @@ class Icon {
|
|
|
11430
11904
|
}
|
|
11431
11905
|
}
|
|
11432
11906
|
render() {
|
|
11433
|
-
const colorClass = this.color
|
|
11434
|
-
const sizeClass = this.size
|
|
11435
|
-
const rotateClass = this.rotate
|
|
11436
|
-
|
|
11907
|
+
const colorClass = this.color ? `icon-${this.color}` : '';
|
|
11908
|
+
const sizeClass = this.size ? `icon-${this.size}` : '';
|
|
11909
|
+
const rotateClass = this.rotate ? `icon-rotate-${this.rotate}` : '';
|
|
11910
|
+
// Ajouter une classe "default" si aucune des valeurs n'est définie
|
|
11911
|
+
const classes = [colorClass, sizeClass, rotateClass].filter(Boolean).join(' ');
|
|
11912
|
+
return (hAsync(Host, { key: 'ccee5a616cbc411a0432d3d5ee3d439db874ebbd', class: classes, "aria-hidden": "true" }, this.svgContent !== ''
|
|
11437
11913
|
? hAsync("div", { class: "icon-inner", innerHTML: this.svgContent })
|
|
11438
|
-
: hAsync("div", { class: "icon-inner" })))
|
|
11914
|
+
: hAsync("div", { class: "icon-inner" })));
|
|
11439
11915
|
}
|
|
11440
11916
|
static get assetsDirs() { return ["svg"]; }
|
|
11441
11917
|
get el() { return getElement(this); }
|
|
@@ -11555,7 +12031,7 @@ class Illustration {
|
|
|
11555
12031
|
render() {
|
|
11556
12032
|
const sizeClass = this.size !== undefined ? `illustration-${this.size}` : '';
|
|
11557
12033
|
const rotateClass = this.rotate !== undefined ? `illustration-rotate-${this.rotate}` : '';
|
|
11558
|
-
return (hAsync(Host, { key: '
|
|
12034
|
+
return (hAsync(Host, { key: 'b050e381499d68b8786780a7f2ae5c625ef52cb1', class: `${sizeClass} ${rotateClass}`, "aria-hidden": "true", role: "img" }, ((this.illustrationSvgContent !== '')
|
|
11559
12035
|
? hAsync("div", { class: "icon-inner", innerHTML: this.illustrationSvgContent })
|
|
11560
12036
|
: hAsync("div", { class: "icon-inner" }))));
|
|
11561
12037
|
}
|
|
@@ -11658,7 +12134,7 @@ class Img {
|
|
|
11658
12134
|
}
|
|
11659
12135
|
render() {
|
|
11660
12136
|
const placeholder = this.loadSrc !== undefined ? '' : 'placeholder';
|
|
11661
|
-
return (hAsync(Host, { key: '
|
|
12137
|
+
return (hAsync(Host, { key: '21b4d4ef436f450d22d1605131028cdf4a0ac6a7', class: placeholder }, hAsync("img", { key: 'e723ca51ee55304024d89f95a35326a79e767c5f', class: "native-img", decoding: "async", src: this.loadSrc, alt: this.alt, onLoad: this.onLoad, onError: this.loadError, part: "image" })));
|
|
11662
12138
|
}
|
|
11663
12139
|
get el() { return getElement(this); }
|
|
11664
12140
|
static get watchers() { return {
|
|
@@ -28925,7 +29401,7 @@ class Input {
|
|
|
28925
29401
|
/**
|
|
28926
29402
|
* If `true`, block decimal.
|
|
28927
29403
|
*/
|
|
28928
|
-
this.
|
|
29404
|
+
this.blockdecimal = false;
|
|
28929
29405
|
/**
|
|
28930
29406
|
* Whether auto correction should be enabled when the user is entering/editing the text value.
|
|
28931
29407
|
*/
|
|
@@ -28978,7 +29454,7 @@ class Input {
|
|
|
28978
29454
|
this.onInput = (ev) => {
|
|
28979
29455
|
const input = ev.target;
|
|
28980
29456
|
let newValue = input.value;
|
|
28981
|
-
if (this.type === 'number' && this.
|
|
29457
|
+
if (this.type === 'number' && this.blockdecimal) {
|
|
28982
29458
|
newValue = newValue.replace(/[.,]/g, ''); // Supprime les décimales si blockDecimal est activé
|
|
28983
29459
|
}
|
|
28984
29460
|
this.value = newValue;
|
|
@@ -29003,7 +29479,7 @@ class Input {
|
|
|
29003
29479
|
};
|
|
29004
29480
|
}
|
|
29005
29481
|
handleKeyDown(event) {
|
|
29006
|
-
if (this.type === 'number' && this.
|
|
29482
|
+
if (this.type === 'number' && this.blockdecimal) {
|
|
29007
29483
|
const forbiddenKeys = ['.', ',', 'e', '-', '¨', '^', '`', '+'];
|
|
29008
29484
|
if (forbiddenKeys.includes(event.key)) {
|
|
29009
29485
|
event.preventDefault();
|
|
@@ -29052,7 +29528,7 @@ class Input {
|
|
|
29052
29528
|
const hasValueClass = this.value !== '' && this.value !== null ? 'has-value' : '';
|
|
29053
29529
|
const lessLabelClass = this.label !== '' ? '' : 'less-label';
|
|
29054
29530
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
29055
|
-
return (hAsync(Host, { key: '
|
|
29531
|
+
return (hAsync(Host, { key: 'cd016bac4f6771b1031133ab212d1d7e1547e310', "aria-disabled": this.disabled ? 'true' : null, class: this.sizes && `input-${this.sizes}`, value: value, blockdecimal: this.blockdecimal }, hAsync("input", { key: '7ecc0367665cfdde2d586b8e10936b6c0545200c', 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: 'eb41e60f25c42b1bee0c8461cd727724f7fb83a3', class: "form-label", id: labelId, htmlFor: this.inputId }, this.label), this.error && this.error !== '' && hAsync("p", { key: 'c459c198b8b3dd20126f74d8d5081d8546200408', class: "invalid-feedback" }, hAsync("road-icon", { key: '106892448ace81bd9e08a7da1b696e8c0324f2cb', slot: "start", name: "alert-error-solid", "aria-hidden": "true", size: "sm" }), this.error), this.helper && this.helper !== '' && hAsync("p", { key: '9e0d22062ae7532596433691a3512e482e5041f8', class: "helper" }, this.helper), this.type && this.type == 'password' && hAsync("slot", { key: '2a237d602219328994d4e716d541026d4dff0df6', name: "checklistPassword" })));
|
|
29056
29532
|
}
|
|
29057
29533
|
static get watchers() { return {
|
|
29058
29534
|
"debounce": ["debounceChanged"],
|
|
@@ -29066,7 +29542,7 @@ class Input {
|
|
|
29066
29542
|
"inputId": [1, "input-id"],
|
|
29067
29543
|
"autocapitalize": [1],
|
|
29068
29544
|
"autocomplete": [1],
|
|
29069
|
-
"
|
|
29545
|
+
"blockdecimal": [4],
|
|
29070
29546
|
"autocorrect": [1],
|
|
29071
29547
|
"autofocus": [4],
|
|
29072
29548
|
"disabled": [4],
|
|
@@ -29139,7 +29615,7 @@ class InputGroup {
|
|
|
29139
29615
|
? `size-${this.el.querySelector('road-input').sizes}`
|
|
29140
29616
|
: '';
|
|
29141
29617
|
const disabledClass = this.disabled ? 'is-disabled' : '';
|
|
29142
|
-
return (hAsync("div", { key: '
|
|
29618
|
+
return (hAsync("div", { key: '68b4c3493ea36a8bd2ea60d9d0055b6d7b2a92f9', class: `input-group ${errorClass} ${disabledClass} ${sizeClass}` }, hAsync("div", { key: 'ad70df97d3218b829c324e2f369356c003bdf834', class: "input-group-prepend" }, hAsync("slot", { key: '44ab7c748ae3d3b4e5339358b3961e695293ca50', name: "prepend" })), hAsync("slot", { key: '0fbdb5a3548ba41e3fbd68b5cc127f163162f0b5' }), hAsync("div", { key: 'e012051ea6e5b5bf8f0ace5737044d1fd1d9c698', class: "input-group-append" }, hAsync("slot", { key: '842169ba230a4db497a30a9a8620b22d0f09ef32', name: "append" }))));
|
|
29143
29619
|
}
|
|
29144
29620
|
get el() { return getElement(this); }
|
|
29145
29621
|
static get watchers() { return {
|
|
@@ -29219,13 +29695,13 @@ class Item {
|
|
|
29219
29695
|
target,
|
|
29220
29696
|
};
|
|
29221
29697
|
const showDetail = detail !== undefined && detail;
|
|
29222
|
-
return (hAsync(Host, { key: '
|
|
29698
|
+
return (hAsync(Host, { key: '6c3292595bb3c247a7510b25e116c88bf7ad570b', "aria-disabled": disabled ? 'true' : null, class: {
|
|
29223
29699
|
[`item-lines-${lines}`]: lines !== undefined,
|
|
29224
|
-
} }, hAsync(TagType, Object.assign({ key: '
|
|
29700
|
+
} }, hAsync(TagType, Object.assign({ key: 'da9648e566e8850b79824dda4105a8dd1e1171bf' }, attrs, { class: {
|
|
29225
29701
|
'item-native': true,
|
|
29226
29702
|
'item-active': this.active,
|
|
29227
29703
|
[`layout-${layout}`]: layout !== undefined,
|
|
29228
|
-
}, part: "native", disabled: disabled }), hAsync("slot", { key: '
|
|
29704
|
+
}, part: "native", disabled: disabled }), hAsync("slot", { key: '1d33384ef1cf17169053d41ee6e19f3b9bdd24e3', name: "start" }), hAsync("div", { key: '9f3d158787cc7624e15104f7953387ccfbab9647', class: "item-inner" }, hAsync("div", { key: 'f40becf394daccb996f58f6b74ae2ee4282d45ca', class: "input-wrapper" }, hAsync("slot", { key: 'f64d1c353072e15bde1717f1c041e7a0a8f76cdf' }), hAsync("div", { key: '1272a90046d27d20f7a7412a4dc45bf241ccf470', class: "input-wrapper-info" }, hAsync("road-label", { key: 'fca9ffdd03aa5fb805acfca82b6d9da3054ca81d', class: "input-wrapper-info-title" }, this.titleItem), hAsync("p", { key: '971fef4134d45465c0ff93d65cf2d0ccd659862c', class: "input-wrapper-info-text" }, this.text))), hAsync("slot", { key: '515618dbd9689653ba3568e3504422fe0b9fd003', name: "end" }), showDetail && hAsync("road-icon", { key: 'f35779a160cbbd8fd7dabb2714d4e619cde9d18e', icon: detailIcon, lazy: false, class: "item-detail-icon" })))));
|
|
29229
29705
|
}
|
|
29230
29706
|
get el() { return getElement(this); }
|
|
29231
29707
|
static get style() { return RoadItemStyle0; }
|
|
@@ -29266,7 +29742,7 @@ class Label {
|
|
|
29266
29742
|
registerInstance(this, hostRef);
|
|
29267
29743
|
}
|
|
29268
29744
|
render() {
|
|
29269
|
-
return (hAsync("slot", { key: '
|
|
29745
|
+
return (hAsync("slot", { key: '4ff181dd42688268a5d0f36eb6b91c14fe0b02e7' }));
|
|
29270
29746
|
}
|
|
29271
29747
|
static get style() { return RoadLabelStyle0; }
|
|
29272
29748
|
static get cmpMeta() { return {
|
|
@@ -29291,9 +29767,9 @@ class List {
|
|
|
29291
29767
|
}
|
|
29292
29768
|
render() {
|
|
29293
29769
|
const { lines } = this;
|
|
29294
|
-
return (hAsync(Host, { key: '
|
|
29770
|
+
return (hAsync(Host, { key: '0402cd96ac852a74cbe90301b76737cd28c337ea', class: {
|
|
29295
29771
|
[`list-lines-${lines}`]: lines !== undefined,
|
|
29296
|
-
} }, hAsync("slot", { key: '
|
|
29772
|
+
} }, hAsync("slot", { key: 'd6e3da6f0729b080cc290d0107f7fb6fd722a2ea' })));
|
|
29297
29773
|
}
|
|
29298
29774
|
static get style() { return RoadListStyle0; }
|
|
29299
29775
|
static get cmpMeta() { return {
|
|
@@ -29378,7 +29854,7 @@ class Modal {
|
|
|
29378
29854
|
const modalIsOpenClass = this.isOpen ? 'modal-open' : '';
|
|
29379
29855
|
const inverseHeaderClass = this.hasInverseHeader ? 'modal-header-inverse' : '';
|
|
29380
29856
|
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" })) : '';
|
|
29381
|
-
return (hAsync(Host, { key: '
|
|
29857
|
+
return (hAsync(Host, { key: '611acc8b898f459de9321f4cc5ba92711059bd0c', class: `modal ${modalIsOpenClass}`, tabindex: "-1", role: "dialog", "aria-label": "modal" }, hAsync("div", { key: '19b3f41118b8bb18acead4cd3607d98cba9d5af8', class: "modal-overlay", onClick: this.onClick, tabindex: "-1" }), hAsync("div", { key: 'cc53d3fb6b7148da3150e44f7b9eb4efbc5607ce', class: "modal-dialog", style: { maxWidth: `${this.maxWidth}px` }, role: "document", tabindex: "0" }, hAsync("div", { key: '264e299d58e57e13e78c8439321ff99392d15a2b', class: "modal-content" }, hAsync("header", { key: '547a73ace5a72d651a26cedd3aca0dcf97b6c87d', class: `modal-header ${inverseHeaderClass}` }, hAsync("h2", { key: '3537442f18e66adb1188d9ba3996dc86c2efbecc', class: "modal-title" }, this.modalTitle), closeIconElement), hAsync("div", { key: 'ff994a5810f3615dc8f03c35c31493ca466eef2f', class: "modal-body" }, hAsync("slot", { key: '20c74c789cf98a863fc74b474f6b3500b9175bd8' }))))));
|
|
29382
29858
|
}
|
|
29383
29859
|
get el() { return getElement(this); }
|
|
29384
29860
|
static get style() { return RoadModalStyle0; }
|
|
@@ -29429,7 +29905,7 @@ class Navbar {
|
|
|
29429
29905
|
this.selectedTabChanged();
|
|
29430
29906
|
}
|
|
29431
29907
|
render() {
|
|
29432
|
-
return (hAsync(Host, { key: '
|
|
29908
|
+
return (hAsync(Host, { key: 'd4fb4b56b2976d7d4b13098574c4e49e4c94dfe7', role: "menubar" }, hAsync("slot", { key: 'eefac0ab933be741ed4b4419f0d82029f22ec9ea' })));
|
|
29433
29909
|
}
|
|
29434
29910
|
static get watchers() { return {
|
|
29435
29911
|
"selectedTab": ["selectedTabChanged"]
|
|
@@ -29515,11 +29991,11 @@ class NavbarItem$1 {
|
|
|
29515
29991
|
rel,
|
|
29516
29992
|
target,
|
|
29517
29993
|
};
|
|
29518
|
-
return (hAsync(Host, { key: '
|
|
29994
|
+
return (hAsync(Host, { key: 'dd94818ad0304a673d6cfc9d579fe84a3f4c2762', 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: {
|
|
29519
29995
|
'navbar-item': true,
|
|
29520
29996
|
'tab-selected': selected,
|
|
29521
29997
|
'tab-disabled': disabled,
|
|
29522
|
-
} }, hAsync("a", Object.assign({ key: '
|
|
29998
|
+
} }, hAsync("a", Object.assign({ key: 'ec7dac7195de5e6edf4777aeb99b3c17eb9eb9aa' }, attrs, { tabIndex: -1, class: "button-native", part: "native" }), hAsync("span", { key: '86ff5e2d3fc42864a9b9aa1efe60fb845fa7d757', class: "button-inner" }, hAsync("slot", { key: 'd5e587189cdbf6481ec90cc7b4182a76a1440912' })))));
|
|
29523
29999
|
}
|
|
29524
30000
|
get el() { return getElement(this); }
|
|
29525
30001
|
static get watchers() { return {
|
|
@@ -29612,11 +30088,11 @@ class NavbarItem {
|
|
|
29612
30088
|
rel,
|
|
29613
30089
|
target,
|
|
29614
30090
|
};
|
|
29615
|
-
return (hAsync(Host, { key: '
|
|
30091
|
+
return (hAsync(Host, { key: 'e2016ca8bf0ab49b7cbd5c87a02b0a86d40d0b93', 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: {
|
|
29616
30092
|
'navbar-item': true,
|
|
29617
30093
|
'tab-selected': selected,
|
|
29618
30094
|
'tab-disabled': disabled,
|
|
29619
|
-
} }, hAsync("a", Object.assign({ key: '
|
|
30095
|
+
} }, hAsync("a", Object.assign({ key: 'b99acdc8be57e05c3b3b93000098a6cf918a967d' }, attrs, { tabIndex: -1, class: "button-native", part: "native" }), hAsync("span", { key: '34953612893df3814c55c7ada38e51fe32191329', class: "button-inner" }, hAsync("slot", { key: 'a4a2a5d31173f5bc494a7cbd79d600e418612199' })))));
|
|
29620
30096
|
}
|
|
29621
30097
|
get el() { return getElement(this); }
|
|
29622
30098
|
static get watchers() { return {
|
|
@@ -29675,7 +30151,7 @@ class NavbarV2 {
|
|
|
29675
30151
|
}
|
|
29676
30152
|
render() {
|
|
29677
30153
|
const compactClass = this.compact ? 'compact' : '';
|
|
29678
|
-
return (hAsync(Host, { key: '
|
|
30154
|
+
return (hAsync(Host, { key: '8aba7289fe9dc6947c2af2d078eaf40782cfe143', role: "menubar", class: `${compactClass}` }, hAsync("slot", { key: 'e103c9485e91f44c6a51b25c2ab0b9c8c0f33eb8' })));
|
|
29679
30155
|
}
|
|
29680
30156
|
static get watchers() { return {
|
|
29681
30157
|
"selectedTab": ["selectedTabChanged"]
|
|
@@ -29798,10 +30274,10 @@ class PlateNumber {
|
|
|
29798
30274
|
render() {
|
|
29799
30275
|
const value = this.getValue();
|
|
29800
30276
|
const motorbikeClass = this.motorbike ? 'motorbike-plate' : '';
|
|
29801
|
-
return (hAsync("road-input-group", { key: '
|
|
30277
|
+
return (hAsync("road-input-group", { key: '834664479b8dd6b1fcf9a7c414778b5e46348cb4', class: `plate-number plate-number-${this.country.toLowerCase()} ${motorbikeClass}` }, hAsync("label", { key: '5f0466ffe35fcfaa7dda9a6773de93c1e0b6ee49', slot: "prepend", class: "input-group-prepend" }, hAsync("div", { key: '692ad8a68f81d8412855db1f506a102181d5c93f', class: "plate-number-start" }, hAsync("road-icon", { key: '6ea399fa5922d8c3aff048360f54e20edb0d2ca2', class: "plate-number-icon", icon: licensePlateStarEu }), hAsync("div", { key: '27bab6244bf9c57acd054a262cab9ed0a4904ed5', class: "plate-number-location", "aria-label": this.country, role: "img" }, this.countries
|
|
29802
30278
|
.filter(item => item.country === this.country)[0].letter))), this.motorbike
|
|
29803
30279
|
? (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 }))
|
|
29804
|
-
: (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: '
|
|
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: 'f68110a0af9bcff739f2d1170e606c092daf811c', slot: "append", class: "input-group-append" }, hAsync("div", { key: 'ac7330daaed638ccbdd7f51caf405f89483d04fa', class: "plate-number-end" }))));
|
|
29805
30281
|
}
|
|
29806
30282
|
static get watchers() { return {
|
|
29807
30283
|
"value": ["valueChanged"]
|
|
@@ -29869,7 +30345,7 @@ class ProgressBar {
|
|
|
29869
30345
|
const fullwidth = this.fullwidth ? 'progress-element-info-full-width' : 'progress-element-info';
|
|
29870
30346
|
const light = this.light ? 'progress progress-light' : 'progress';
|
|
29871
30347
|
const animation = this.animation ? 'animation' : '';
|
|
29872
|
-
return (hAsync(Host, { key: '
|
|
30348
|
+
return (hAsync(Host, { key: '4fd02845d6788f86fdd72647ce2c85f80e0056e7', class: "progress-element" }, hAsync("div", { key: '4f8e8ba08ff054992da0bdcc270b8ed3f14f0751', class: `${light} progress-${this.color} ${animation}` }, hAsync("div", { key: 'b5ce4e4819cb77dc56c5681760c88bf8673c31e2', 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: '09602bd22ca6515a18573d89e239c2a69b25ff05', class: `${fullwidth}` }, hAsync("span", { key: '3238d97b6cbefbd7ef39dceaa81fe65239b7db7a', class: "progress-element-label" }, this.label), this.showstep && hAsync("span", { key: 'c6c06a7b25942ec42c58bc161fe042ad28a9ebfb', class: "progress-element-step" }, valueRound, "/", this.numbersteps))));
|
|
29873
30349
|
}
|
|
29874
30350
|
static get style() { return RoadProgressStyle0; }
|
|
29875
30351
|
static get cmpMeta() { return {
|
|
@@ -29910,7 +30386,7 @@ class ProgressIndicatorVertical {
|
|
|
29910
30386
|
registerInstance(this, hostRef);
|
|
29911
30387
|
}
|
|
29912
30388
|
render() {
|
|
29913
|
-
return (hAsync(Host, { key: '
|
|
30389
|
+
return (hAsync(Host, { key: 'd009f9f26860579e5199b5fd9f3053c2292d2e10' }, hAsync("nav", { key: 'ce6a61c3020a725681b1479405956d4e0c0deda4' }, hAsync("ul", { key: 'ed9c8bd411554de27d3518a93ead84f1ffeaab32' }, hAsync("li", { key: '55e64e7e8cb21d9e7b82d5cb7d96f58f0a1d41aa' }, hAsync("slot", { key: 'a999ef8043d0ca25192122641cf1c6b8f4c17829' }))))));
|
|
29914
30390
|
}
|
|
29915
30391
|
static get style() { return RoadProgressIndicatorVerticalStyle0; }
|
|
29916
30392
|
static get cmpMeta() { return {
|
|
@@ -29934,7 +30410,7 @@ class ProgressIndicatorVerticalItem {
|
|
|
29934
30410
|
registerInstance(this, hostRef);
|
|
29935
30411
|
}
|
|
29936
30412
|
render() {
|
|
29937
|
-
return (hAsync(Host, { key: '
|
|
30413
|
+
return (hAsync(Host, { key: '331aa668c231602fa09aa8879936b114ae9a9922' }, hAsync("slot", { key: 'bd2b07a4daa8ff2be253a6853e19cdfc7c41d848' })));
|
|
29938
30414
|
}
|
|
29939
30415
|
static get style() { return RoadProgressIndicatorVerticalItemStyle0; }
|
|
29940
30416
|
static get cmpMeta() { return {
|
|
@@ -29963,7 +30439,7 @@ class ProgressTracker {
|
|
|
29963
30439
|
registerInstance(this, hostRef);
|
|
29964
30440
|
}
|
|
29965
30441
|
render() {
|
|
29966
|
-
return (hAsync(Host, { key: '
|
|
30442
|
+
return (hAsync(Host, { key: '7a2b81a136bb9099ba62dd19ea1110ba2e6598f2' }, hAsync("nav", { key: '02a48ece3c03e44e6650608712af2ce97d54e4be' }, hAsync("ul", { key: '53660bcb52a07088d67f22d22e959152b978632f' }, hAsync("li", { key: 'cb819d8d7de4ac7fbf78168a11ce127bb6505bf7' }, hAsync("slot", { key: 'eb87fd118354173bb49d98e49815a772edb55941' }))))));
|
|
29967
30443
|
}
|
|
29968
30444
|
static get style() { return RoadProgressTrackerStyle0; }
|
|
29969
30445
|
static get cmpMeta() { return {
|
|
@@ -29995,7 +30471,7 @@ class ProgressTrackerItem {
|
|
|
29995
30471
|
registerInstance(this, hostRef);
|
|
29996
30472
|
}
|
|
29997
30473
|
render() {
|
|
29998
|
-
return (hAsync(Host, { key: '
|
|
30474
|
+
return (hAsync(Host, { key: 'ad62f3db13a041f534b2da9a11f0eb6f394a0412' }, hAsync("slot", { key: '879eb2757031161b20e708275ea2d009f1e83a7b' })));
|
|
29999
30475
|
}
|
|
30000
30476
|
static get style() { return RoadProgressTrackerItemStyle0; }
|
|
30001
30477
|
static get cmpMeta() { return {
|
|
@@ -30088,7 +30564,7 @@ class Radio {
|
|
|
30088
30564
|
const inverseClass = this.inverse && 'form-radio-inverse';
|
|
30089
30565
|
const isInvalidClass = this.error ? 'is-invalid' : '';
|
|
30090
30566
|
const inlineClass = this.inline ? 'form-radio-inline' : '';
|
|
30091
|
-
return (hAsync(Host, { key: '
|
|
30567
|
+
return (hAsync(Host, { key: 'f4c58867bc2ea7548db32786fec159a9b73743bc', class: `form-radio ${inlineClass}` }, hAsync("input", { key: '51bb7f4255a32beea0d23e6dae51d54f5802ee40', 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: '10ff3446ba4b1610f1f0a0d9d90dc7897dbd4370', class: `form-radio-label ${inverseClass}`, id: labelId, htmlFor: this.radioId }, this.label, " ", hAsync("span", { key: 'ace1dddcc6f9f947562d322f68f4a74a94947558', class: "form-radio-label-span" }, this.secondaryLabel))));
|
|
30092
30568
|
}
|
|
30093
30569
|
get el() { return getElement(this); }
|
|
30094
30570
|
static get style() { return RoadRadioStyle0; }
|
|
@@ -30182,7 +30658,7 @@ class RadioGroup {
|
|
|
30182
30658
|
render() {
|
|
30183
30659
|
const labelId = `${this.radioGroupId}-label`;
|
|
30184
30660
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
30185
|
-
return (hAsync(Host, { key: '
|
|
30661
|
+
return (hAsync(Host, { key: 'ffa969cd3485460ad2c351a513f515684d259caa', role: "radiogroup", class: `form-group ${isInvalidClass}`, "aria-label": this.ariaLabel, onClick: this.onClick }, this.label && hAsync("p", { key: '5aae60d23a7c19135e21806cc976f17b2b4202c1', class: "text-content", id: labelId }, this.label, " ", this.asterisk && hAsync("span", { key: '28c64c1c38b6e180172c9191cda484feab65ef4f', class: "asterisk" }, "*")), hAsync("slot", { key: '1f1a46b1e4a39187b889d6900a231006ed1bc2a4' }), this.error && this.error !== '' && hAsync("p", { key: '3fbe36d03cc75774dcaf0ad8026e60c0f9af4916', class: "invalid-feedback" }, this.error), this.helper && this.helper !== '' && hAsync("p", { key: '158c9a45d39f7b2257ce8be876f1a42541ee11bf', class: "helper" }, this.helper)));
|
|
30186
30662
|
}
|
|
30187
30663
|
get el() { return getElement(this); }
|
|
30188
30664
|
static get watchers() { return {
|
|
@@ -30312,14 +30788,14 @@ class Range {
|
|
|
30312
30788
|
render() {
|
|
30313
30789
|
const value = this.getValue();
|
|
30314
30790
|
const datalist = this.showLabels !== undefined ? `tickmarks` : "";
|
|
30315
|
-
return (hAsync(Host, { key: '
|
|
30791
|
+
return (hAsync(Host, { key: '44cb0bfac407074030743bb30f0e9e158ade6961', tabindex: "0", class: { disabled: this.disabled } }, hAsync("div", { key: '580b8c0f805cb22916bc1b6e6793248b603e3274', class: "form-group d-flex align-items-end" }, this.showTick && (hAsync("road-icon", { key: '73ad66fdf62b6032e61548795d09f34773cd13d4', icon: navigationAddLessSolid, class: "mr-8", size: "sm" })), hAsync("div", { key: '0e5bdc9f49b96ae5ef086be125d673a83b601d77', class: "form-range", style: {
|
|
30316
30792
|
"--min": this.min,
|
|
30317
30793
|
"--max": this.max,
|
|
30318
30794
|
"--value": value,
|
|
30319
30795
|
"--background-color": this.disabled
|
|
30320
30796
|
? "var(--road-surface-disabled)"
|
|
30321
30797
|
: "initial",
|
|
30322
|
-
} }, this.showValue && hAsync("output", { key: '
|
|
30798
|
+
} }, this.showValue && hAsync("output", { key: 'e7a75e4e870bd97a6ddf0c81852dc6a558489ad7' }), this.showLabels && hAsync("slot", { key: '17a654a18e333c7581cefe7622dcbcb285684caa', name: "datalist" }), hAsync("input", { key: '73e985d4c6924c3c7db667c96aa79cbf37cc07ee', 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: 'b95dbd0463902e02eab163bb4ea160c6efb34955', class: "form-range-label" }, "Valeur"), hAsync("div", { key: '38424bbf2a2692a8e62c6c99bc7f31d078eaf90b', class: "form-range-progress" })), this.showTick && (hAsync("road-icon", { key: '74b0a434bba852eae5646d8119f8a62c845f38af', icon: navigationAddMoreSolid, class: "ml-8", size: "sm" })))));
|
|
30323
30799
|
}
|
|
30324
30800
|
get el() { return getElement(this); }
|
|
30325
30801
|
static get watchers() { return {
|
|
@@ -30388,7 +30864,7 @@ class Rating {
|
|
|
30388
30864
|
const sizeRatingStarsClass = this.size !== undefined ? `rating-stars rating-stars--${this.size}` : 'rating-stars';
|
|
30389
30865
|
const sizeRatingNumberClass = this.size !== undefined ? `rating-number rating-number--${this.size}` : 'rating-number';
|
|
30390
30866
|
const readOnly = this.readonly == true ? `readonly` : '';
|
|
30391
|
-
return (hAsync(Host, { key: '
|
|
30867
|
+
return (hAsync(Host, { key: '47bd739f7f13113981c5888bb5e3cd45ed08ec44' }, hAsync("div", { key: '9cb794af23cde1aec9293a3a3b5f72aa53053e41', 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: '771e55df9f7132a0c90dbd44d1cab6d07e730b37', class: `${sizeRatingNumberClass}`, href: this.url }, "(", this.reviews, this.reviewsText && ` ${this.reviewsText}`, ")"), this.readonly == true && this.showreviews && hAsync("road-label", { key: '74e5eef615a028d69ce9d424c0272c89798dca13', class: `${sizeRatingNumberClass} ${readOnly}` }, "(", this.reviews, this.reviewsText && ` ${this.reviewsText}`, ")")));
|
|
30392
30868
|
}
|
|
30393
30869
|
static get style() { return RoadRatingStyle0; }
|
|
30394
30870
|
static get cmpMeta() { return {
|
|
@@ -30507,7 +30983,7 @@ class RoadAreaCode {
|
|
|
30507
30983
|
const labelId = this.selectId + '-label';
|
|
30508
30984
|
const valueId = this.selectId + '-value';
|
|
30509
30985
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
30510
|
-
return (hAsync(Host, { key: '
|
|
30986
|
+
return (hAsync(Host, { key: '36cb1bca784e582de74e61df9763d87a76363e1e', class: this.sizes && `select-${this.sizes}` }, hAsync("select", { key: '2dfc241b6f28577a0fde23576dd0764c386ade70', 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: '205acf4ddf4c4a5e224f6d546e5e809ed0cf10d9', class: "form-select-area-label", id: labelId, htmlFor: this.selectId }, this.label), hAsync("label", { key: '06371fa0b2302e1dba88096fa590d1a047fcc488', class: "form-select-area-value", id: valueId, htmlFor: this.selectId }, "+", this.selectedValue), this.error && this.error !== '' && hAsync("p", { key: 'a1a58a9689450d104bcb2ef9838987a7d5709b03', class: "invalid-feedback" }, this.error)));
|
|
30511
30987
|
}
|
|
30512
30988
|
static get watchers() { return {
|
|
30513
30989
|
"value": ["valueChanged"]
|
|
@@ -31932,7 +32408,7 @@ class RoadPhoneNumberInput {
|
|
|
31932
32408
|
const valueId = selectId + '-value';
|
|
31933
32409
|
const isInvalidClass = this.errorMessage.length ? 'is-invalid' : '';
|
|
31934
32410
|
const isErrorClass = this.errorMessage.length ? 'is-error' : '';
|
|
31935
|
-
return (hAsync(Host, { key: '
|
|
32411
|
+
return (hAsync(Host, { key: '81ffa2701ccd7feb88e726026fb72c53c99d4feb' }, hAsync("road-input-group", { key: '0e2e7c96ab3d01857818c14390e4e088bd369fa3' }, hAsync("div", { key: '38533ba1f8c2d281c122cf448f566b40668ee356', class: `road-phone-input-select ${isErrorClass}`, slot: "prepend" }, hAsync("select", { key: 'e7ec3b364232477acf754e5fbfe68ffa5e5758c2', id: 'phone-number-input', class: `form-select-area has-value ${isInvalidClass}`, "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: '341cd6d931f84923f747d675459062114f56e9ca', class: "form-select-area-label", id: labelId, htmlFor: selectId }, this.codeLabel), hAsync("label", { key: '8b5a7c8215976e1445fd57db2e69d5558f4bd6f8', class: "form-select-area-value", id: valueId, htmlFor: selectId }, "+", this.selectedCountryCode)), hAsync("road-input", { key: 'd676fb18e0367b8aae954794dcded2cf9b6bf6d0', type: "tel", id: "phone-number", sizes: "xl", label: this.phoneLabel, value: this.phoneValue, onRoadChange: (event) => this.handleInput(event), required: this.required, error: this.errorMessage, onKeyDown: (event) => this.handleKeyDown(event), tabIndex: 0 }))));
|
|
31936
32412
|
}
|
|
31937
32413
|
get el() { return getElement(this); }
|
|
31938
32414
|
static get watchers() { return {
|
|
@@ -31975,7 +32451,7 @@ class Row {
|
|
|
31975
32451
|
registerInstance(this, hostRef);
|
|
31976
32452
|
}
|
|
31977
32453
|
render() {
|
|
31978
|
-
return (hAsync(Host, { key: '
|
|
32454
|
+
return (hAsync(Host, { key: 'd7f034113e5197a87874abed4d7b3abc1d695c02' }, hAsync("slot", { key: '8d113c8691cc6d060de05da806a177cf7f9d73c8' })));
|
|
31979
32455
|
}
|
|
31980
32456
|
static get style() { return RoadRowStyle0; }
|
|
31981
32457
|
static get cmpMeta() { return {
|
|
@@ -32047,10 +32523,10 @@ class SegmentedButton {
|
|
|
32047
32523
|
render() {
|
|
32048
32524
|
const { tabIndex, selected, tab } = this;
|
|
32049
32525
|
const sizeClass = this.size !== undefined ? `btn-${this.size}` : '';
|
|
32050
|
-
return (hAsync(Host, { key: '
|
|
32526
|
+
return (hAsync(Host, { key: '5330cf797a103494903f9a96f6c2bc1b983e7f12', onClick: this.onClick, onKeyup: this.onKeyUp, role: "tab", tabindex: tabIndex, "aria-selected": selected ? 'true' : null, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
|
|
32051
32527
|
'tab-selected': selected,
|
|
32052
32528
|
[`${sizeClass}`]: true,
|
|
32053
|
-
} }, hAsync("span", { key: '
|
|
32529
|
+
} }, hAsync("span", { key: '73ecaa9b970846deb93859c8eaec653a035cc1e2', tabIndex: -1, class: "button-native", part: "native", "aria-hidden": "true" }, hAsync("slot", { key: '6f676459b5689e80e21fc2cab3d7c68241e5f1d6' }))));
|
|
32054
32530
|
}
|
|
32055
32531
|
get el() { return getElement(this); }
|
|
32056
32532
|
static get style() { return RoadSegmentedButtonStyle0; }
|
|
@@ -32171,7 +32647,7 @@ class Select {
|
|
|
32171
32647
|
const labelId = this.selectId + '-label';
|
|
32172
32648
|
const hasValueClass = this.value && this.value !== '' ? 'has-value' : '';
|
|
32173
32649
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
32174
|
-
return (hAsync(Host, { key: '
|
|
32650
|
+
return (hAsync(Host, { key: 'c3f9f4917a958804c531144cbedae2d70f19d414', class: this.sizes && `select-${this.sizes}` }, hAsync("select", { key: '60de1624cc6f6678583e3d2beb72a46a2073e593', 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: '287679dab8fb4565fa3114d452743f325ab7becb', 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: '42f5882cf6a82d8ef20b33d617722b859c8856c5', class: "form-select-label", id: labelId, htmlFor: this.selectId }, this.label), this.error && this.error !== '' && hAsync("p", { key: '7ca347bd9ab52c920fa6348567f23987ab8494b4', class: "invalid-feedback" }, this.error)));
|
|
32175
32651
|
}
|
|
32176
32652
|
static get watchers() { return {
|
|
32177
32653
|
"value": ["valueChanged"]
|
|
@@ -34092,8 +34568,8 @@ class SelectFilter {
|
|
|
34092
34568
|
const options = this.filteredOptions;
|
|
34093
34569
|
const isActive = this.isActive ? 'true' : 'false';
|
|
34094
34570
|
const notActive = this.isActive ? '' : 'not-active';
|
|
34095
|
-
return (hAsync(Host, { key: '
|
|
34096
|
-
hAsync("ul", { key: '
|
|
34571
|
+
return (hAsync(Host, { key: 'd3126ac1fdf1a0c92fa8b5d3208e49980160bb9d', "is-active": isActive }, hAsync("slot", { key: '92ca140b3ce21efc3e7bf352a47656e596e47a25' }), this.isOpen &&
|
|
34572
|
+
hAsync("ul", { key: '9b500ef45a3d041678b6c0acfad02556f80aa93c', 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 }))))));
|
|
34097
34573
|
}
|
|
34098
34574
|
get el() { return getElement(this); }
|
|
34099
34575
|
static get style() { return RoadSelectFilterStyle0; }
|
|
@@ -34123,7 +34599,7 @@ class Skeleton {
|
|
|
34123
34599
|
registerInstance(this, hostRef);
|
|
34124
34600
|
}
|
|
34125
34601
|
render() {
|
|
34126
|
-
return (hAsync("span", { key: '
|
|
34602
|
+
return (hAsync("span", { key: '23360c1379fea939e6bd1664d59e8e1343a6b419' }, "\u00A0"));
|
|
34127
34603
|
}
|
|
34128
34604
|
static get style() { return RoadSkeletonStyle0; }
|
|
34129
34605
|
static get cmpMeta() { return {
|
|
@@ -34154,7 +34630,7 @@ class Spinner {
|
|
|
34154
34630
|
render() {
|
|
34155
34631
|
const sizeClass = this.size !== undefined ? `spinner spinner--${this.size}` : 'spinner';
|
|
34156
34632
|
const colorClass = this.size !== undefined ? `spinner-circle spinner-circle--${this.color}` : 'spinner-circle';
|
|
34157
|
-
return (hAsync("svg", { key: '
|
|
34633
|
+
return (hAsync("svg", { key: '15916684cd29bc097b95e9702558ba8f12e111ff', class: `${sizeClass}`, viewBox: "25 25 50 50" }, hAsync("circle", { key: '1579334e75979ae2fff79ae4452a7c2493ad2404', class: `${colorClass}`, cx: "50", cy: "50", r: "20" })));
|
|
34158
34634
|
}
|
|
34159
34635
|
static get style() { return RoadSpinnerStyle0; }
|
|
34160
34636
|
static get cmpMeta() { return {
|
|
@@ -34204,7 +34680,7 @@ class Stepper {
|
|
|
34204
34680
|
const urlStep1 = this.urlStep1 !== undefined ? `${this.urlStep1}` : '#';
|
|
34205
34681
|
const urlStep2 = this.urlStep2 !== undefined ? `${this.urlStep2}` : '#';
|
|
34206
34682
|
const urlStep3 = this.urlStep3 !== undefined ? `${this.urlStep3}` : '#';
|
|
34207
|
-
return (hAsync(Host, { key: '
|
|
34683
|
+
return (hAsync(Host, { key: '9b6ff260ef44d7545b7e17c966afb8bc0b141a5a' }, hAsync("nav", { key: '435efae514030479969d9cebd0125ac7cc1062d0' }, hAsync("ul", { key: '253fc943603f6fcaa4b22d1856c36c694cc1594e', class: `${colorClass}` }, hAsync("li", { key: '1f1c9c447de7facd202f0c7ddc45dd1b48f4c878', class: `${stateClass}` }, hAsync("a", { key: '3914d52980a7657e25dec2dda6c41fc601bde683', class: "progress-indicator-horizontal-link", href: `${urlStep1}` }, hAsync("span", { key: '8fe6f2f247ff2f9d78d6c48190a34d1b4bae20fc', class: "progress-indicator-horizontal-icon" }, hAsync("slot", { key: '74a901f0a0837b5450b863a9272a70e5543e9874', name: "progress-indicator-horizontal-icon" })), hAsync("span", { key: 'ff3c71c6f99e9e55185bf3cdcfe49c28457c962d', class: "progress-indicator-horizontal-title" }, hAsync("slot", { key: '083760cfa803f11c995e2c3c52fe1cf28d03ad50', name: "progress-indicator-horizontal-title" })))), hAsync("li", { key: '25d342babea7224f6469689073aaf9a1ee66d835', class: `${stateSecondStepClass}` }, hAsync("a", { key: '05088e279be56b0478c3551c055ef50f86ac1d40', class: "progress-indicator-horizontal-link", href: `${urlStep2}` }, hAsync("span", { key: '51aa4181f7390112316da7ffac5878749af74483', class: "progress-indicator-horizontal-icon" }, hAsync("slot", { key: 'bd94717b3f7cacec0a15a66d967ea333b000f5fd', name: "progress-indicator-horizontal-icon2" })), hAsync("span", { key: 'f40e07153046c8d3170c8578d5cf6f80aff37149', class: "progress-indicator-horizontal-title" }, hAsync("slot", { key: '9cb2488f4d8e45c7a13010fca43b784959bb2c49', name: "progress-indicator-horizontal-title2" })))), this.numberStep == 3 && hAsync("li", { key: '17c5d16cd950a398f2517f7b4830d90cb0cbe832', class: `${stateThirdStepClass}` }, hAsync("a", { key: '7ff05be3400f569231c461458d0e1f292afa0f91', class: "progress-indicator-horizontal-link", href: `${urlStep3}` }, hAsync("span", { key: '4597c8cba1a9ffc4a8489744c6d6120ea308f5b1', class: "progress-indicator-horizontal-icon" }, hAsync("slot", { key: 'af8a8efa0a8a30aecc877ce37bce2a2f99b55fc1', name: "progress-indicator-horizontal-icon3" })), hAsync("span", { key: '489f390ab0f483725f2701f9942c8b715720e66c', class: "progress-indicator-horizontal-title" }, hAsync("slot", { key: '8190f424d3cbd960e31890af7b9327561f707153', name: "progress-indicator-horizontal-title3" }))))))));
|
|
34208
34684
|
}
|
|
34209
34685
|
static get style() { return RoadProgressIndicatorHorizontalStyle0; }
|
|
34210
34686
|
static get cmpMeta() { return {
|
|
@@ -34306,11 +34782,11 @@ class Switch {
|
|
|
34306
34782
|
}
|
|
34307
34783
|
render() {
|
|
34308
34784
|
const labelId = this.switchId + '-label';
|
|
34309
|
-
const textLabel = hAsync("label", { key: '
|
|
34785
|
+
const textLabel = hAsync("label", { key: '9cbf8cf142884a9883024d741239d65ecef588da', class: "form-switch-label", id: labelId, htmlFor: this.switchId }, this.label);
|
|
34310
34786
|
const colorClass = this.color !== undefined ? 'form-switch-' + this.color : '';
|
|
34311
34787
|
const isSpacedClass = this.isSpaced && 'form-switch-spaced';
|
|
34312
34788
|
const rightSwitchClass = this.hasLeftLabel ? 'form-switch-right' : '';
|
|
34313
|
-
return (hAsync(Host, { key: '
|
|
34789
|
+
return (hAsync(Host, { key: 'a42a0b01b9155039b4ff73e6430bd0a8736d7d96' }, hAsync("input", { key: '9e6b0bae8e3beb263d1d46d715c6ec8887c9fba3', 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: 'ae6aa034b4ee9293f0ac582c698ebc46cadcb760', class: `form-switch-label ${isSpacedClass} ${colorClass}`, htmlFor: this.switchId }, this.hasLeftLabel && textLabel, hAsync("div", { key: 'eda7b143c63c6bdfd1cc68ebf7771d7682ce04b3', class: `form-switch-lever ${rightSwitchClass}`, "data-off": this.off, "data-on": this.on }), this.hasLeftLabel ? '' : textLabel)));
|
|
34314
34790
|
}
|
|
34315
34791
|
static get watchers() { return {
|
|
34316
34792
|
"checked": ["checkedChanged"]
|
|
@@ -34365,9 +34841,9 @@ class Tab {
|
|
|
34365
34841
|
}
|
|
34366
34842
|
render() {
|
|
34367
34843
|
const { tab, active } = this;
|
|
34368
|
-
return (hAsync(Host, { key: '
|
|
34844
|
+
return (hAsync(Host, { key: '08cad173a66b655a36d7adf049c28ca24e60fced', role: "tabpanel", "aria-hidden": !active ? 'true' : null, "aria-labelledby": `tab-button-${tab}`, class: {
|
|
34369
34845
|
'tab-hidden': !active,
|
|
34370
|
-
} }, hAsync("slot", { key: '
|
|
34846
|
+
} }, hAsync("slot", { key: 'be64342b87d15293de2c9909d58c874d2f7b9dcf' })));
|
|
34371
34847
|
}
|
|
34372
34848
|
get el() { return getElement(this); }
|
|
34373
34849
|
static get style() { return RoadTabStyle0; }
|
|
@@ -34427,11 +34903,11 @@ class TabBar {
|
|
|
34427
34903
|
}
|
|
34428
34904
|
render() {
|
|
34429
34905
|
const { expand, center, secondary } = this;
|
|
34430
|
-
return (hAsync(Host, { key: '
|
|
34906
|
+
return (hAsync(Host, { key: 'a498dbdd9f96f8eb18f2786a4300f86a90d5f704', role: "tablist", class: {
|
|
34431
34907
|
'tab-expand': expand,
|
|
34432
34908
|
'tab-center': center,
|
|
34433
34909
|
'tab-secondary': secondary,
|
|
34434
|
-
} }, hAsync("slot", { key: '
|
|
34910
|
+
} }, hAsync("slot", { key: '666d8e010a3f1f487f82d996f667720332c73567' })));
|
|
34435
34911
|
}
|
|
34436
34912
|
get el() { return getElement(this); }
|
|
34437
34913
|
static get watchers() { return {
|
|
@@ -34531,7 +35007,7 @@ class TabButton {
|
|
|
34531
35007
|
rel,
|
|
34532
35008
|
target,
|
|
34533
35009
|
};
|
|
34534
|
-
return (hAsync(Host, { key: '
|
|
35010
|
+
return (hAsync(Host, { key: '719523118d53836283ffe3f4f41ae043ac6d73e2', 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: {
|
|
34535
35011
|
'tab-selected': selected,
|
|
34536
35012
|
'tab-has-label': hasLabel,
|
|
34537
35013
|
'tab-has-icon': hasIcon,
|
|
@@ -34539,7 +35015,7 @@ class TabButton {
|
|
|
34539
35015
|
'tab-has-icon-only': hasIcon && !hasLabel,
|
|
34540
35016
|
[`tab-layout-${layout}`]: true,
|
|
34541
35017
|
'tab-disabled': disabled, // Classe CSS pour les styles désactivés
|
|
34542
|
-
} }, hAsync("a", Object.assign({ key: '
|
|
35018
|
+
} }, hAsync("a", Object.assign({ key: '4b164d989dc96dc88b515707fe2fd343492fda4d' }, attrs, { tabIndex: -1, class: "button-native", part: "native" }), hAsync("span", { key: 'e90b7083ed647e7346398b769dff97fc5fe1c5bb', class: "button-inner" }, hAsync("slot", { key: 'b21f76fcd81afc6022a37fb6d546144cf6b5a82f' })))));
|
|
34543
35019
|
}
|
|
34544
35020
|
get el() { return getElement(this); }
|
|
34545
35021
|
static get style() { return RoadTabButtonStyle0; }
|
|
@@ -34573,7 +35049,7 @@ class Table {
|
|
|
34573
35049
|
registerInstance(this, hostRef);
|
|
34574
35050
|
}
|
|
34575
35051
|
render() {
|
|
34576
|
-
return (hAsync("slot", { key: '
|
|
35052
|
+
return (hAsync("slot", { key: 'f036d33368eaf205cfbbafcdcc03b3e0ecf5dc3c' }));
|
|
34577
35053
|
}
|
|
34578
35054
|
static get style() { return RoadTableStyle0; }
|
|
34579
35055
|
static get cmpMeta() { return {
|
|
@@ -34681,7 +35157,7 @@ class Tabs$1 {
|
|
|
34681
35157
|
return Array.from(this.el.querySelectorAll('road-tab'));
|
|
34682
35158
|
}
|
|
34683
35159
|
render() {
|
|
34684
|
-
return (hAsync(Host, { key: '
|
|
35160
|
+
return (hAsync(Host, { key: 'c7a62a2fd860a3254e8aeb4304b6c41b13b11d43', onRoadSegmentedButtonClick: this.onTabClicked }, hAsync("slot", { key: '62659d12582b3c6cd231656f0645610bc0687134', name: "top" }), hAsync("slot", { key: 'ce73ed60aade6a96f1a3d712b91a4aa26a6e8df2' })));
|
|
34685
35161
|
}
|
|
34686
35162
|
get el() { return getElement(this); }
|
|
34687
35163
|
static get style() { return RoadSegmentedButtonsStyle0; }
|
|
@@ -34817,7 +35293,7 @@ class Tabs {
|
|
|
34817
35293
|
return Array.from(this.el.querySelectorAll('road-tab'));
|
|
34818
35294
|
}
|
|
34819
35295
|
render() {
|
|
34820
|
-
return (hAsync(Host, { key: '
|
|
35296
|
+
return (hAsync(Host, { key: 'dcce484d6e365b7c62f326e6a6146231a011d7b8', onRoadTabButtonClick: this.onTabClicked }, hAsync("slot", { key: 'e9990ffef176fd6e8cc61b55c7399f086f254268', name: "top" }), hAsync("div", { key: 'a182d8cb1bed398ed72bed7478325a2d400c9100', class: "tabs-inner" }, hAsync("slot", { key: '7e0fec6b112a51f0443d0370b472571af7bc8365' }))));
|
|
34821
35297
|
}
|
|
34822
35298
|
get el() { return getElement(this); }
|
|
34823
35299
|
static get style() { return RoadTabsStyle0; }
|
|
@@ -34865,7 +35341,7 @@ class Tag {
|
|
|
34865
35341
|
}
|
|
34866
35342
|
render() {
|
|
34867
35343
|
const contrastClass = this.contrast ? `tag-${this.color} tag-${this.color}-contrast` : `tag-${this.color}`;
|
|
34868
|
-
return (hAsync(Host, { key: '
|
|
35344
|
+
return (hAsync(Host, { key: '473f75d03caf6fd1af778973cf668594869f840d', class: `${contrastClass}` }, hAsync("slot", { key: '978855ab3df5f500d39ec62ce6990b5e9ee0460e' })));
|
|
34869
35345
|
}
|
|
34870
35346
|
static get style() { return RoadTagStyle0; }
|
|
34871
35347
|
static get cmpMeta() { return {
|
|
@@ -34897,7 +35373,7 @@ class Text {
|
|
|
34897
35373
|
}
|
|
34898
35374
|
render() {
|
|
34899
35375
|
const colorClass = this.color !== undefined ? `text-${this.color}` : '';
|
|
34900
|
-
return (hAsync(Host, { key: '
|
|
35376
|
+
return (hAsync(Host, { key: '055eff6468f112052379b6744fa6711ca3227942', class: `${colorClass}` }, hAsync("slot", { key: '962b901456fa3a58f0fcd8514ba64e306f5ce9ec' })));
|
|
34901
35377
|
}
|
|
34902
35378
|
static get style() { return RoadTextStyle0; }
|
|
34903
35379
|
static get cmpMeta() { return {
|
|
@@ -35007,7 +35483,7 @@ class Textarea {
|
|
|
35007
35483
|
const hasValueClass = this.value !== '' ? 'has-value' : '';
|
|
35008
35484
|
const noResizeClass = this.resize == false ? 'no-resize' : '';
|
|
35009
35485
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
35010
|
-
return (hAsync(Host, { key: '
|
|
35486
|
+
return (hAsync(Host, { key: '214bcdedacec9c4f831f1ef70096325f8ce9bdce', "aria-disabled": this.disabled ? 'true' : null, class: this.sizes && `input-${this.sizes}` }, hAsync("textarea", { key: 'eaa623e71d722d372e8d58b38b1f03fd5a979858', 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: 'aa812329b857f8b1c6035ba6aeda1b4fec6fd076', class: "form-label", id: labelId, htmlFor: this.textareaId }, this.label), this.error && this.error !== '' && hAsync("p", { key: '79b8a4cfd2f24be7329a3ab789076af678c92186', class: "invalid-feedback" }, this.error), this.helper && this.helper !== '' && hAsync("p", { key: 'b8264a394ec940ff99a31030396b276363a8e7da', class: "helper" }, this.helper)));
|
|
35011
35487
|
}
|
|
35012
35488
|
static get watchers() { return {
|
|
35013
35489
|
"value": ["valueChanged"]
|
|
@@ -35138,7 +35614,7 @@ class Toast {
|
|
|
35138
35614
|
if (this.color == 'danger') {
|
|
35139
35615
|
this.timeout = 0;
|
|
35140
35616
|
}
|
|
35141
|
-
return (hAsync(Host, { key: '
|
|
35617
|
+
return (hAsync(Host, { key: '5a9d4fd26cd7653dcb6c14e404d6d680d685b8cf', class: `${toastIsOpenClass}`, role: "alert" }, hAsync("div", { key: '046d2830acf701c848ae4135e7a7af9c6682de6d', class: `toast toast-${this.color}` }, hAsync("road-icon", { key: 'ca4883fde49d31333322223bc1dc09fff550a804', class: "toast-icon", icon: icon, "aria-hidden": "true" }), hAsync("p", { key: 'b39ab618e3a0ffbd4f709fd6b8a0d6c76c1b6e7c', class: "toast-label" }, this.label), hAsync("button", { key: '7f390d2a8e844b246692906c0b1bfca343e3fdd3', type: "button", class: "toast-close", "aria-label": "Close", onClick: this.onClick }, hAsync("road-icon", { key: '6dcc4e70bb97bed90946ead063502074208f8b0d', icon: navigationClose, size: "md" })), hAsync("slot", { key: '0ae44f2b725ee982345a768d8595de8e12e6bdca', name: "progress" }))));
|
|
35142
35618
|
}
|
|
35143
35619
|
static get watchers() { return {
|
|
35144
35620
|
"isOpen": ["isOpenChanged"]
|
|
@@ -35178,7 +35654,7 @@ class Toolbar {
|
|
|
35178
35654
|
}
|
|
35179
35655
|
render() {
|
|
35180
35656
|
const colorClass = this.color !== undefined ? `toolbar-${this.color}` : '';
|
|
35181
|
-
return (hAsync(Host, { key: '
|
|
35657
|
+
return (hAsync(Host, { key: 'ef280d58587592e633b4abf5edce5a206c6012df', class: colorClass }, hAsync("div", { key: '45dcd9a88059921a57a83755213874bd69c034e5', class: "toolbar-container" }, hAsync("slot", { key: '306e74460424aa3b245fd3b52cbfe540f1ec6923', name: "start" }), hAsync("slot", { key: '874ef5ed7aacbe78030c0110f18995878b306b56', name: "primary" }), hAsync("div", { key: 'd6315c18239ced57dae7ab1986234a807f3ad898', class: "toolbar-content" }, hAsync("slot", { key: 'dadb2fdd70f43c6cd36122d3197da4e2edff58b9' })), hAsync("slot", { key: '4e4fdb5faac06979cbd9a92808c307896a5ad2b4', name: "secondary" }), hAsync("slot", { key: '3a31bc1e2773a696b1f902325e6b69b5b6153fbe', name: "end" }))));
|
|
35182
35658
|
}
|
|
35183
35659
|
static get style() { return RoadToolbarStyle0; }
|
|
35184
35660
|
static get cmpMeta() { return {
|
|
@@ -35204,7 +35680,7 @@ class ToolbarAppName {
|
|
|
35204
35680
|
registerInstance(this, hostRef);
|
|
35205
35681
|
}
|
|
35206
35682
|
render() {
|
|
35207
|
-
return (hAsync("div", { key: '
|
|
35683
|
+
return (hAsync("div", { key: '97f764499f0d16456fa2d98e19815d260d736029', class: "toolbar-title-page" }, hAsync("slot", { key: 'b773809ae7bf4f8fa4be5bad8645c9a6077cc3f4' })));
|
|
35208
35684
|
}
|
|
35209
35685
|
static get style() { return RoadToolbarTitlePageStyle0; }
|
|
35210
35686
|
static get cmpMeta() { return {
|
|
@@ -35228,7 +35704,7 @@ class ToolbarTitle {
|
|
|
35228
35704
|
registerInstance(this, hostRef);
|
|
35229
35705
|
}
|
|
35230
35706
|
render() {
|
|
35231
|
-
return (hAsync("div", { key: '
|
|
35707
|
+
return (hAsync("div", { key: 'c428fb2d1a55e5fa29f51e3fcaa78920fefb9762', class: "toolbar-title" }, hAsync("slot", { key: '7e9d258f597ac5a6cb0aa2ca709e967f61e93995' })));
|
|
35232
35708
|
}
|
|
35233
35709
|
static get style() { return RoadToolbarTitleStyle0; }
|
|
35234
35710
|
static get cmpMeta() { return {
|
|
@@ -35257,7 +35733,7 @@ class ToolbarV2 {
|
|
|
35257
35733
|
registerInstance(this, hostRef);
|
|
35258
35734
|
}
|
|
35259
35735
|
render() {
|
|
35260
|
-
return (hAsync(Host, { key: '
|
|
35736
|
+
return (hAsync(Host, { key: '32ab6d9b38e7ad07deb1a91b3033f267fdce6f1a', class: "toolbar" }, hAsync("div", { key: 'cbce5ebce69f4d4a90311fe5d15309734f714871', class: "toolbar-container" }, hAsync("div", { key: 'b00b9646a07b8e13bc9f9cac43f52e4160d88d8e', class: "toolbar-container-content-left" }, hAsync("slot", { key: '9ebf7a657c014c25d57d36cde476b0b4418548aa', name: "start" }), hAsync("slot", { key: 'e21c64b3ee102d64b71ab3f9d1be53f0f2e5feda', name: "primary" })), hAsync("div", { key: '806fe8671e526e71f7dc2da6bb82e7241b4ccfe9', class: "toolbar-content" }, hAsync("slot", { key: '19474289ea13e02971e41760959c69fc4c8ea8f8' })), hAsync("div", { key: 'a2d0e65ebade0869054171ad1a196530a0e42fda', class: "toolbar-container-content-right" }, hAsync("slot", { key: '6fade2c1d40978e088cfe06e0eb3d2eb0984ed26', name: "secondary" }), hAsync("slot", { key: '896518e549843127b9746680a983a9d761797e30', name: "end" })))));
|
|
35261
35737
|
}
|
|
35262
35738
|
static get style() { return RoadToolbarV2Style0; }
|
|
35263
35739
|
static get cmpMeta() { return {
|
|
@@ -35370,12 +35846,12 @@ class Tooltip {
|
|
|
35370
35846
|
return triggers.includes(triggerType);
|
|
35371
35847
|
}
|
|
35372
35848
|
render() {
|
|
35373
|
-
return (hAsync(Host, { key: '
|
|
35849
|
+
return (hAsync(Host, { key: '741a849c1489d6e2962f71a529f018d315951b8a', onMouseOver: this.onMouseOver, onMouseOut: this.onMouseOut, onClick: this.onClick, onFocus: this.onFocus, onBlur: this.onBlur, tabindex: "0" // Makes the element focusable
|
|
35374
35850
|
,
|
|
35375
|
-
"data-tooltip-position": this.position }, hAsync("slot", { key: '
|
|
35851
|
+
"data-tooltip-position": this.position }, hAsync("slot", { key: '2a709fc59d3e0b13896e2b2b14f10500399eeb00', "aria-describedby": this.tooltipId }), hAsync("div", { key: '55d24721aeb703ba3717954c2082a3eb1bf2aca3', part: "tooltip", id: this.tooltipId, class: {
|
|
35376
35852
|
tooltip: true,
|
|
35377
35853
|
'tooltip-open': this.isOpen,
|
|
35378
|
-
}, role: "tooltip", "aria-hidden": !this.isOpen ? 'true' : 'false' }, this.content, hAsync("slot", { key: '
|
|
35854
|
+
}, role: "tooltip", "aria-hidden": !this.isOpen ? 'true' : 'false' }, this.content, hAsync("slot", { key: '094531297abb7a2f65f47f5bf3c1c7e63b753855', name: "tooltip-content" }))));
|
|
35379
35855
|
}
|
|
35380
35856
|
get el() { return getElement(this); }
|
|
35381
35857
|
static get style() { return RoadTooltipStyle0; }
|
|
@@ -35475,11 +35951,11 @@ class toggle {
|
|
|
35475
35951
|
}
|
|
35476
35952
|
render() {
|
|
35477
35953
|
const labelId = this.toggleId + '-label';
|
|
35478
|
-
const textLabel = hAsync("label", { key: '
|
|
35954
|
+
const textLabel = hAsync("label", { key: 'a6b573f6cf34cc4818943f49652330259bc9a36f', class: "form-toggle-label", id: labelId, htmlFor: this.toggleId }, this.label);
|
|
35479
35955
|
const isSpacedClass = this.isSpaced && 'form-toggle-spaced';
|
|
35480
35956
|
const righttoggleClass = this.hasLeftLabel ? 'form-toggle-right' : '';
|
|
35481
35957
|
const disabledClass = this.disabled ? 'disabled' : '';
|
|
35482
|
-
return (hAsync(Host, { key: '
|
|
35958
|
+
return (hAsync(Host, { key: '63c2d3510c08629a16d8a8c48ba653252d4e2fd0' }, hAsync("input", { key: 'c14815218ea372ce75ceb5b2ff8ac8d9d13d9d9b', 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: 'b2f7adc1da9841844a0641c0a2e4eeb9e746f813', class: `form-toggle-label ${isSpacedClass} ${disabledClass}`, htmlFor: this.toggleId }, this.hasLeftLabel && textLabel, hAsync("div", { key: '6a49e7bfdcdab56094a4722eefc66478ab2ec999', class: `form-toggle-lever ${righttoggleClass}`, "data-off": this.off, "data-on": this.on }), this.hasLeftLabel ? '' : textLabel)));
|
|
35483
35959
|
}
|
|
35484
35960
|
static get watchers() { return {
|
|
35485
35961
|
"checked": ["checkedChanged"]
|
|
@@ -35920,19 +36396,9 @@ exports.hydrateApp = hydrateApp;
|
|
|
35920
36396
|
// src/app-data/index.ts
|
|
35921
36397
|
var BUILD = {
|
|
35922
36398
|
allRenderFn: false,
|
|
35923
|
-
cmpDidLoad: true,
|
|
35924
|
-
cmpDidUnload: false,
|
|
35925
|
-
cmpDidUpdate: true,
|
|
35926
|
-
cmpDidRender: true,
|
|
35927
|
-
cmpWillLoad: true,
|
|
35928
|
-
cmpWillUpdate: true,
|
|
35929
|
-
cmpWillRender: true,
|
|
35930
|
-
connectedCallback: true,
|
|
35931
|
-
disconnectedCallback: true,
|
|
35932
36399
|
element: true,
|
|
35933
36400
|
event: true,
|
|
35934
36401
|
hasRenderFn: true,
|
|
35935
|
-
lifecycle: true,
|
|
35936
36402
|
hostListener: true,
|
|
35937
36403
|
hostListenerTargetWindow: true,
|
|
35938
36404
|
hostListenerTargetDocument: true,
|
|
@@ -35997,7 +36463,6 @@ var BUILD = {
|
|
|
35997
36463
|
propNumber: true,
|
|
35998
36464
|
propString: true,
|
|
35999
36465
|
constructableCSS: true,
|
|
36000
|
-
cmpShouldUpdate: true,
|
|
36001
36466
|
devTools: false,
|
|
36002
36467
|
shadowDelegatesFocus: true,
|
|
36003
36468
|
initializeNextTick: false,
|
|
@@ -36015,7 +36480,7 @@ var NAMESPACE = (
|
|
|
36015
36480
|
);
|
|
36016
36481
|
|
|
36017
36482
|
/*
|
|
36018
|
-
Stencil Hydrate Runner v4.
|
|
36483
|
+
Stencil Hydrate Runner v4.27.0 | MIT Licensed | https://stenciljs.com
|
|
36019
36484
|
*/
|
|
36020
36485
|
var __defProp = Object.defineProperty;
|
|
36021
36486
|
var __export = (target, all) => {
|
|
@@ -37463,6 +37928,7 @@ var EntityDecoder = class {
|
|
|
37463
37928
|
case EntityDecoderState.NamedEntity: {
|
|
37464
37929
|
return this.result !== 0 && (this.decodeMode !== DecodingMode.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
37465
37930
|
}
|
|
37931
|
+
// Otherwise, emit a numeric entity if we have one.
|
|
37466
37932
|
case EntityDecoderState.NumericDecimal: {
|
|
37467
37933
|
return this.emitNumericEntity(0, 2);
|
|
37468
37934
|
}
|
|
@@ -44510,6 +44976,7 @@ function endTagInSelectInTable(p, token) {
|
|
|
44510
44976
|
}
|
|
44511
44977
|
function startTagInTemplate(p, token) {
|
|
44512
44978
|
switch (token.tagID) {
|
|
44979
|
+
// First, handle tags that can start without a mode change
|
|
44513
44980
|
case TAG_ID.BASE:
|
|
44514
44981
|
case TAG_ID.BASEFONT:
|
|
44515
44982
|
case TAG_ID.BGSOUND:
|
|
@@ -44523,6 +44990,7 @@ function startTagInTemplate(p, token) {
|
|
|
44523
44990
|
startTagInHead(p, token);
|
|
44524
44991
|
break;
|
|
44525
44992
|
}
|
|
44993
|
+
// Re-process the token in the appropriate mode
|
|
44526
44994
|
case TAG_ID.CAPTION:
|
|
44527
44995
|
case TAG_ID.COLGROUP:
|
|
44528
44996
|
case TAG_ID.TBODY:
|
|
@@ -46432,7 +46900,7 @@ function normalizeSerializationOptions(opts = {}) {
|
|
|
46432
46900
|
removeAttributeQuotes: typeof opts.removeAttributeQuotes !== "boolean" ? false : opts.removeAttributeQuotes,
|
|
46433
46901
|
removeBooleanAttributeQuotes: typeof opts.removeBooleanAttributeQuotes !== "boolean" ? false : opts.removeBooleanAttributeQuotes,
|
|
46434
46902
|
removeHtmlComments: typeof opts.removeHtmlComments !== "boolean" ? false : opts.removeHtmlComments,
|
|
46435
|
-
serializeShadowRoot: typeof opts.serializeShadowRoot
|
|
46903
|
+
serializeShadowRoot: typeof opts.serializeShadowRoot === "undefined" ? "declarative-shadow-dom" : opts.serializeShadowRoot,
|
|
46436
46904
|
fullDocument: typeof opts.fullDocument !== "boolean" ? true : opts.fullDocument
|
|
46437
46905
|
};
|
|
46438
46906
|
}
|
|
@@ -46561,7 +47029,7 @@ style="${cssText}">`;
|
|
|
46561
47029
|
}
|
|
46562
47030
|
if (EMPTY_ELEMENTS.has(tagName) === false) {
|
|
46563
47031
|
const shadowRoot = node.shadowRoot;
|
|
46564
|
-
if (shadowRoot != null && opts.serializeShadowRoot) {
|
|
47032
|
+
if (shadowRoot != null && opts.serializeShadowRoot !== false) {
|
|
46565
47033
|
output.indent = output.indent + ((_c = opts.indentSpaces) != null ? _c : 0);
|
|
46566
47034
|
yield* streamToHtml(shadowRoot, opts, output);
|
|
46567
47035
|
output.indent = output.indent - ((_d = opts.indentSpaces) != null ? _d : 0);
|
|
@@ -50192,9 +50660,6 @@ var Build = {
|
|
|
50192
50660
|
isServer: false,
|
|
50193
50661
|
isTesting: BUILD.isTesting ? true : false
|
|
50194
50662
|
};
|
|
50195
|
-
|
|
50196
|
-
// src/client/client-host-ref.ts
|
|
50197
|
-
var hostRefs = BUILD.hotModuleReplacement ? window.__STENCIL_HOSTREFS__ || (window.__STENCIL_HOSTREFS__ = /* @__PURE__ */ new WeakMap()) : /* @__PURE__ */ new WeakMap();
|
|
50198
50663
|
var STENCIL_DEV_MODE = BUILD.isTesting ? ["STENCIL:"] : [
|
|
50199
50664
|
"%cstencil",
|
|
50200
50665
|
"color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"
|
|
@@ -50303,6 +50768,31 @@ var unwrapErr = (result) => {
|
|
|
50303
50768
|
}
|
|
50304
50769
|
};
|
|
50305
50770
|
|
|
50771
|
+
// src/utils/shadow-css.ts
|
|
50772
|
+
/**
|
|
50773
|
+
* @license
|
|
50774
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
50775
|
+
*
|
|
50776
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
50777
|
+
* found in the LICENSE file at https://angular.io/license
|
|
50778
|
+
*
|
|
50779
|
+
* This file is a port of shadowCSS from `webcomponents.js` to TypeScript.
|
|
50780
|
+
* https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
|
|
50781
|
+
* https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
|
|
50782
|
+
*/
|
|
50783
|
+
var _polyfillHost = "-shadowcsshost";
|
|
50784
|
+
var _polyfillSlotted = "-shadowcssslotted";
|
|
50785
|
+
var _polyfillHostContext = "-shadowcsscontext";
|
|
50786
|
+
var _parenSuffix = ")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";
|
|
50787
|
+
var _cssColonHostRe = new RegExp("(" + _polyfillHost + _parenSuffix, "gim");
|
|
50788
|
+
var _cssColonHostContextRe = new RegExp("(" + _polyfillHostContext + _parenSuffix, "gim");
|
|
50789
|
+
var _cssColonSlottedRe = new RegExp("(" + _polyfillSlotted + _parenSuffix, "gim");
|
|
50790
|
+
var _polyfillHostNoCombinator = _polyfillHost + "-no-combinator";
|
|
50791
|
+
var createSupportsRuleRe = (selector) => new RegExp(`((?<!(^@supports(.*)))|(?<={.*))(${selector}\\b)`, "gim");
|
|
50792
|
+
var _colonSlottedRe = createSupportsRuleRe("::slotted");
|
|
50793
|
+
var _colonHostRe = createSupportsRuleRe(":host");
|
|
50794
|
+
var _colonHostContextRe = createSupportsRuleRe(":host-context");
|
|
50795
|
+
|
|
50306
50796
|
// src/runtime/mode.ts
|
|
50307
50797
|
var setMode = (handler) => modeResolutionChain.push(handler);
|
|
50308
50798
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
@@ -51491,7 +51981,7 @@ function renderToString(html, options, asStream) {
|
|
|
51491
51981
|
const opts = normalizeHydrateOptions(options);
|
|
51492
51982
|
opts.serializeToHtml = true;
|
|
51493
51983
|
opts.fullDocument = typeof opts.fullDocument === "boolean" ? opts.fullDocument : true;
|
|
51494
|
-
opts.serializeShadowRoot = typeof opts.serializeShadowRoot === "
|
|
51984
|
+
opts.serializeShadowRoot = typeof opts.serializeShadowRoot === "undefined" ? "declarative-shadow-dom" : opts.serializeShadowRoot;
|
|
51495
51985
|
opts.constrainTimeouts = false;
|
|
51496
51986
|
return hydrateDocument(html, opts, asStream);
|
|
51497
51987
|
}
|