@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.mjs
CHANGED
|
@@ -124,10 +124,10 @@ function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResu
|
|
|
124
124
|
|
|
125
125
|
|
|
126
126
|
const NAMESPACE = 'roadtrip';
|
|
127
|
-
const BUILD = /* roadtrip */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, attachStyles: true, cloneNodeFix: false,
|
|
127
|
+
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 };
|
|
128
128
|
|
|
129
129
|
/*
|
|
130
|
-
Stencil Hydrate Platform v4.
|
|
130
|
+
Stencil Hydrate Platform v4.27.0 | MIT Licensed | https://stenciljs.com
|
|
131
131
|
*/
|
|
132
132
|
var __defProp = Object.defineProperty;
|
|
133
133
|
var __export = (target, all) => {
|
|
@@ -152,6 +152,11 @@ function queryNonceMetaTagContent(doc2) {
|
|
|
152
152
|
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;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
+
// src/utils/regular-expression.ts
|
|
156
|
+
var escapeRegExpSpecialCharacters = (text) => {
|
|
157
|
+
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
158
|
+
};
|
|
159
|
+
|
|
155
160
|
// src/utils/result.ts
|
|
156
161
|
var result_exports = {};
|
|
157
162
|
__export(result_exports, {
|
|
@@ -221,12 +226,11 @@ var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
|
221
226
|
|
|
222
227
|
// src/runtime/slot-polyfill-utils.ts
|
|
223
228
|
var updateFallbackSlotVisibility = (elm) => {
|
|
224
|
-
const childNodes = elm
|
|
229
|
+
const childNodes = internalCall(elm, "childNodes");
|
|
225
230
|
if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
|
|
226
231
|
getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
|
|
227
|
-
var _a;
|
|
228
232
|
if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
|
|
229
|
-
if ((
|
|
233
|
+
if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
|
|
230
234
|
slotNode.hidden = true;
|
|
231
235
|
} else {
|
|
232
236
|
slotNode.hidden = false;
|
|
@@ -234,19 +238,31 @@ var updateFallbackSlotVisibility = (elm) => {
|
|
|
234
238
|
}
|
|
235
239
|
});
|
|
236
240
|
}
|
|
237
|
-
|
|
238
|
-
|
|
241
|
+
let i2 = 0;
|
|
242
|
+
for (i2 = 0; i2 < childNodes.length; i2++) {
|
|
243
|
+
const childNode = childNodes[i2];
|
|
244
|
+
if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, "childNodes").length) {
|
|
239
245
|
updateFallbackSlotVisibility(childNode);
|
|
240
246
|
}
|
|
241
247
|
}
|
|
242
248
|
};
|
|
249
|
+
var getSlottedChildNodes = (childNodes) => {
|
|
250
|
+
const result = [];
|
|
251
|
+
for (let i2 = 0; i2 < childNodes.length; i2++) {
|
|
252
|
+
const slottedNode = childNodes[i2]["s-nr"] || void 0;
|
|
253
|
+
if (slottedNode && slottedNode.isConnected) {
|
|
254
|
+
result.push(slottedNode);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
return result;
|
|
258
|
+
};
|
|
243
259
|
function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
244
260
|
let i2 = 0;
|
|
245
261
|
let slottedNodes = [];
|
|
246
262
|
let childNode;
|
|
247
263
|
for (; i2 < childNodes.length; i2++) {
|
|
248
264
|
childNode = childNodes[i2];
|
|
249
|
-
if (childNode["s-sr"] && childNode["s-hn"] === hostName && (slotName === void 0 || childNode
|
|
265
|
+
if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0 || getSlotName(childNode) === slotName)) {
|
|
250
266
|
slottedNodes.push(childNode);
|
|
251
267
|
if (typeof slotName !== "undefined") return slottedNodes;
|
|
252
268
|
}
|
|
@@ -254,11 +270,12 @@ function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
|
254
270
|
}
|
|
255
271
|
return slottedNodes;
|
|
256
272
|
}
|
|
257
|
-
var
|
|
273
|
+
var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
|
|
258
274
|
const childNodes = [];
|
|
259
|
-
if (includeSlot &&
|
|
260
|
-
|
|
261
|
-
|
|
275
|
+
if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
|
|
276
|
+
let node = slot;
|
|
277
|
+
while (node = node.nextSibling) {
|
|
278
|
+
if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
|
|
262
279
|
}
|
|
263
280
|
return childNodes;
|
|
264
281
|
};
|
|
@@ -278,37 +295,71 @@ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
|
278
295
|
return slotName === "";
|
|
279
296
|
};
|
|
280
297
|
var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
|
|
281
|
-
let slottedNodeLocation;
|
|
282
298
|
if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
|
|
283
|
-
|
|
284
|
-
} else {
|
|
285
|
-
slottedNodeLocation = document.createTextNode("");
|
|
286
|
-
slottedNodeLocation["s-nr"] = newChild;
|
|
299
|
+
return;
|
|
287
300
|
}
|
|
301
|
+
const slottedNodeLocation = document.createTextNode("");
|
|
302
|
+
slottedNodeLocation["s-nr"] = newChild;
|
|
288
303
|
if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
|
|
289
304
|
const parent = slotNode["s-cr"].parentNode;
|
|
290
|
-
const appendMethod = prepend ? parent
|
|
305
|
+
const appendMethod = prepend ? internalCall(parent, "prepend") : internalCall(parent, "appendChild");
|
|
291
306
|
if (typeof position !== "undefined") {
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
|
|
305
|
-
}
|
|
307
|
+
slottedNodeLocation["s-oo"] = position;
|
|
308
|
+
const childNodes = internalCall(parent, "childNodes");
|
|
309
|
+
const slotRelocateNodes = [slottedNodeLocation];
|
|
310
|
+
childNodes.forEach((n) => {
|
|
311
|
+
if (n["s-nr"]) slotRelocateNodes.push(n);
|
|
312
|
+
});
|
|
313
|
+
slotRelocateNodes.sort((a, b) => {
|
|
314
|
+
if (!a["s-oo"] || a["s-oo"] < (b["s-oo"] || 0)) return -1;
|
|
315
|
+
else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
|
|
316
|
+
return 0;
|
|
317
|
+
});
|
|
318
|
+
slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
|
|
306
319
|
} else {
|
|
307
320
|
appendMethod.call(parent, slottedNodeLocation);
|
|
308
321
|
}
|
|
309
322
|
newChild["s-ol"] = slottedNodeLocation;
|
|
310
323
|
newChild["s-sh"] = slotNode["s-hn"];
|
|
311
324
|
};
|
|
325
|
+
var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
|
|
326
|
+
function patchSlotNode(node) {
|
|
327
|
+
if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
|
|
328
|
+
const assignedFactory = (elementsOnly) => (function(opts) {
|
|
329
|
+
const toReturn = [];
|
|
330
|
+
const slotName = this["s-sn"];
|
|
331
|
+
if (opts == null ? void 0 : opts.flatten) {
|
|
332
|
+
console.error(`
|
|
333
|
+
Flattening is not supported for Stencil non-shadow slots.
|
|
334
|
+
You can use \`.childNodes\` to nested slot fallback content.
|
|
335
|
+
If you have a particular use case, please open an issue on the Stencil repo.
|
|
336
|
+
`);
|
|
337
|
+
}
|
|
338
|
+
const parent = this["s-cr"].parentElement;
|
|
339
|
+
const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
|
|
340
|
+
slottedNodes.forEach((n) => {
|
|
341
|
+
if (slotName === getSlotName(n)) {
|
|
342
|
+
toReturn.push(n);
|
|
343
|
+
}
|
|
344
|
+
});
|
|
345
|
+
if (elementsOnly) {
|
|
346
|
+
return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
|
|
347
|
+
}
|
|
348
|
+
return toReturn;
|
|
349
|
+
}).bind(node);
|
|
350
|
+
node.assignedElements = assignedFactory(true);
|
|
351
|
+
node.assignedNodes = assignedFactory(false);
|
|
352
|
+
}
|
|
353
|
+
function internalCall(node, method) {
|
|
354
|
+
if ("__" + method in node) {
|
|
355
|
+
const toReturn = node["__" + method];
|
|
356
|
+
if (typeof toReturn !== "function") return toReturn;
|
|
357
|
+
return toReturn.bind(node);
|
|
358
|
+
} else {
|
|
359
|
+
if (typeof node[method] !== "function") return node[method];
|
|
360
|
+
return node[method].bind(node);
|
|
361
|
+
}
|
|
362
|
+
}
|
|
312
363
|
var createTime = (fnName, tagName = "") => {
|
|
313
364
|
{
|
|
314
365
|
return () => {
|
|
@@ -455,7 +506,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
455
506
|
delete hostElm["s-sc"];
|
|
456
507
|
}
|
|
457
508
|
}
|
|
458
|
-
if (!plt.$orgLocNodes$) {
|
|
509
|
+
if (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size) {
|
|
459
510
|
initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
|
|
460
511
|
}
|
|
461
512
|
hostElm[HYDRATE_ID] = hostId;
|
|
@@ -485,6 +536,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
485
536
|
}
|
|
486
537
|
}
|
|
487
538
|
if (childRenderNode.$tag$ === "slot") {
|
|
539
|
+
childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
|
|
488
540
|
if (childRenderNode.$children$) {
|
|
489
541
|
childRenderNode.$flags$ |= 2 /* isSlotFallback */;
|
|
490
542
|
if (!childRenderNode.$elm$.childNodes.length) {
|
|
@@ -545,18 +597,25 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
545
597
|
slot.$elm$.parentElement.classList.add(scopeId2 + "-s");
|
|
546
598
|
});
|
|
547
599
|
}
|
|
548
|
-
if (shadowRoot) {
|
|
600
|
+
if (shadowRoot && !shadowRoot.childNodes.length) {
|
|
549
601
|
let rnIdex = 0;
|
|
550
602
|
const rnLen = shadowRootNodes.length;
|
|
551
|
-
|
|
552
|
-
|
|
603
|
+
if (rnLen) {
|
|
604
|
+
for (rnIdex; rnIdex < rnLen; rnIdex++) {
|
|
605
|
+
shadowRoot.appendChild(shadowRootNodes[rnIdex]);
|
|
606
|
+
}
|
|
607
|
+
Array.from(hostElm.childNodes).forEach((node) => {
|
|
608
|
+
if (typeof node["s-sn"] !== "string") {
|
|
609
|
+
if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
|
|
610
|
+
node.removeAttribute("hidden");
|
|
611
|
+
} else if (node.nodeType === 8 /* CommentNode */ || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
612
|
+
node.parentNode.removeChild(node);
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
});
|
|
553
616
|
}
|
|
554
|
-
Array.from(hostElm.childNodes).forEach((node) => {
|
|
555
|
-
if (node.nodeType === 8 /* CommentNode */ && typeof node["s-sn"] !== "string") {
|
|
556
|
-
node.parentNode.removeChild(node);
|
|
557
|
-
}
|
|
558
|
-
});
|
|
559
617
|
}
|
|
618
|
+
plt.$orgLocNodes$.delete(hostElm["s-id"]);
|
|
560
619
|
hostRef.$hostElement$ = hostElm;
|
|
561
620
|
endHydrate();
|
|
562
621
|
};
|
|
@@ -667,7 +726,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
667
726
|
$text$: null
|
|
668
727
|
});
|
|
669
728
|
if (childNodeType === TEXT_NODE_ID) {
|
|
670
|
-
childVNode.$elm$ = node
|
|
729
|
+
childVNode.$elm$ = findCorrespondingNode(node, 3 /* TextNode */);
|
|
671
730
|
if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
|
|
672
731
|
childVNode.$text$ = childVNode.$elm$.textContent;
|
|
673
732
|
childRenderNodes.push(childVNode);
|
|
@@ -683,7 +742,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
683
742
|
}
|
|
684
743
|
}
|
|
685
744
|
} else if (childNodeType === COMMENT_NODE_ID) {
|
|
686
|
-
childVNode.$elm$ = node
|
|
745
|
+
childVNode.$elm$ = findCorrespondingNode(node, 8 /* CommentNode */);
|
|
687
746
|
if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
|
|
688
747
|
childRenderNodes.push(childVNode);
|
|
689
748
|
node.remove();
|
|
@@ -717,6 +776,10 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
717
776
|
vnode.$elm$ = node;
|
|
718
777
|
vnode.$index$ = "0";
|
|
719
778
|
parentVNode.$children$ = [vnode];
|
|
779
|
+
} else {
|
|
780
|
+
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
781
|
+
node.remove();
|
|
782
|
+
}
|
|
720
783
|
}
|
|
721
784
|
return parentVNode;
|
|
722
785
|
};
|
|
@@ -786,6 +849,7 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
786
849
|
const slot = childVNode.$elm$;
|
|
787
850
|
const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
|
|
788
851
|
addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
|
|
852
|
+
patchSlotNode(node);
|
|
789
853
|
if (shouldMove) {
|
|
790
854
|
parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
|
|
791
855
|
}
|
|
@@ -806,6 +870,363 @@ var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) =>
|
|
|
806
870
|
slottedNode = slottedNode.nextSibling;
|
|
807
871
|
}
|
|
808
872
|
};
|
|
873
|
+
var findCorrespondingNode = (node, type) => {
|
|
874
|
+
let sibling = node;
|
|
875
|
+
do {
|
|
876
|
+
sibling = sibling.nextSibling;
|
|
877
|
+
} while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
|
|
878
|
+
return sibling;
|
|
879
|
+
};
|
|
880
|
+
|
|
881
|
+
// src/utils/shadow-css.ts
|
|
882
|
+
/**
|
|
883
|
+
* @license
|
|
884
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
885
|
+
*
|
|
886
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
887
|
+
* found in the LICENSE file at https://angular.io/license
|
|
888
|
+
*
|
|
889
|
+
* This file is a port of shadowCSS from `webcomponents.js` to TypeScript.
|
|
890
|
+
* https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
|
|
891
|
+
* https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
|
|
892
|
+
*/
|
|
893
|
+
var safeSelector = (selector) => {
|
|
894
|
+
const placeholders = [];
|
|
895
|
+
let index = 0;
|
|
896
|
+
selector = selector.replace(/(\[[^\]]*\])/g, (_, keep) => {
|
|
897
|
+
const replaceBy = `__ph-${index}__`;
|
|
898
|
+
placeholders.push(keep);
|
|
899
|
+
index++;
|
|
900
|
+
return replaceBy;
|
|
901
|
+
});
|
|
902
|
+
const content = selector.replace(/(:nth-[-\w]+)(\([^)]+\))/g, (_, pseudo, exp) => {
|
|
903
|
+
const replaceBy = `__ph-${index}__`;
|
|
904
|
+
placeholders.push(exp);
|
|
905
|
+
index++;
|
|
906
|
+
return pseudo + replaceBy;
|
|
907
|
+
});
|
|
908
|
+
const ss = {
|
|
909
|
+
content,
|
|
910
|
+
placeholders
|
|
911
|
+
};
|
|
912
|
+
return ss;
|
|
913
|
+
};
|
|
914
|
+
var restoreSafeSelector = (placeholders, content) => {
|
|
915
|
+
return content.replace(/__ph-(\d+)__/g, (_, index) => placeholders[+index]);
|
|
916
|
+
};
|
|
917
|
+
var _polyfillHost = "-shadowcsshost";
|
|
918
|
+
var _polyfillSlotted = "-shadowcssslotted";
|
|
919
|
+
var _polyfillHostContext = "-shadowcsscontext";
|
|
920
|
+
var _parenSuffix = ")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";
|
|
921
|
+
var _cssColonHostRe = new RegExp("(" + _polyfillHost + _parenSuffix, "gim");
|
|
922
|
+
var _cssColonHostContextRe = new RegExp("(" + _polyfillHostContext + _parenSuffix, "gim");
|
|
923
|
+
var _cssColonSlottedRe = new RegExp("(" + _polyfillSlotted + _parenSuffix, "gim");
|
|
924
|
+
var _polyfillHostNoCombinator = _polyfillHost + "-no-combinator";
|
|
925
|
+
var _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\s]*)/;
|
|
926
|
+
var _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];
|
|
927
|
+
var _selectorReSuffix = "([>\\s~+[.,{:][\\s\\S]*)?$";
|
|
928
|
+
var _polyfillHostRe = /-shadowcsshost/gim;
|
|
929
|
+
var createSupportsRuleRe = (selector) => new RegExp(`((?<!(^@supports(.*)))|(?<={.*))(${selector}\\b)`, "gim");
|
|
930
|
+
var _colonSlottedRe = createSupportsRuleRe("::slotted");
|
|
931
|
+
var _colonHostRe = createSupportsRuleRe(":host");
|
|
932
|
+
var _colonHostContextRe = createSupportsRuleRe(":host-context");
|
|
933
|
+
var _commentRe = /\/\*\s*[\s\S]*?\*\//g;
|
|
934
|
+
var stripComments = (input) => {
|
|
935
|
+
return input.replace(_commentRe, "");
|
|
936
|
+
};
|
|
937
|
+
var _commentWithHashRe = /\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;
|
|
938
|
+
var extractCommentsWithHash = (input) => {
|
|
939
|
+
return input.match(_commentWithHashRe) || [];
|
|
940
|
+
};
|
|
941
|
+
var _ruleRe = /(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g;
|
|
942
|
+
var _curlyRe = /([{}])/g;
|
|
943
|
+
var _selectorPartsRe = /(^.*?[^\\])??((:+)(.*)|$)/;
|
|
944
|
+
var OPEN_CURLY = "{";
|
|
945
|
+
var CLOSE_CURLY = "}";
|
|
946
|
+
var BLOCK_PLACEHOLDER = "%BLOCK%";
|
|
947
|
+
var processRules = (input, ruleCallback) => {
|
|
948
|
+
const inputWithEscapedBlocks = escapeBlocks(input);
|
|
949
|
+
let nextBlockIndex = 0;
|
|
950
|
+
return inputWithEscapedBlocks.escapedString.replace(_ruleRe, (...m) => {
|
|
951
|
+
const selector = m[2];
|
|
952
|
+
let content = "";
|
|
953
|
+
let suffix = m[4];
|
|
954
|
+
let contentPrefix = "";
|
|
955
|
+
if (suffix && suffix.startsWith("{" + BLOCK_PLACEHOLDER)) {
|
|
956
|
+
content = inputWithEscapedBlocks.blocks[nextBlockIndex++];
|
|
957
|
+
suffix = suffix.substring(BLOCK_PLACEHOLDER.length + 1);
|
|
958
|
+
contentPrefix = "{";
|
|
959
|
+
}
|
|
960
|
+
const cssRule = {
|
|
961
|
+
selector,
|
|
962
|
+
content
|
|
963
|
+
};
|
|
964
|
+
const rule = ruleCallback(cssRule);
|
|
965
|
+
return `${m[1]}${rule.selector}${m[3]}${contentPrefix}${rule.content}${suffix}`;
|
|
966
|
+
});
|
|
967
|
+
};
|
|
968
|
+
var escapeBlocks = (input) => {
|
|
969
|
+
const inputParts = input.split(_curlyRe);
|
|
970
|
+
const resultParts = [];
|
|
971
|
+
const escapedBlocks = [];
|
|
972
|
+
let bracketCount = 0;
|
|
973
|
+
let currentBlockParts = [];
|
|
974
|
+
for (let partIndex = 0; partIndex < inputParts.length; partIndex++) {
|
|
975
|
+
const part = inputParts[partIndex];
|
|
976
|
+
if (part === CLOSE_CURLY) {
|
|
977
|
+
bracketCount--;
|
|
978
|
+
}
|
|
979
|
+
if (bracketCount > 0) {
|
|
980
|
+
currentBlockParts.push(part);
|
|
981
|
+
} else {
|
|
982
|
+
if (currentBlockParts.length > 0) {
|
|
983
|
+
escapedBlocks.push(currentBlockParts.join(""));
|
|
984
|
+
resultParts.push(BLOCK_PLACEHOLDER);
|
|
985
|
+
currentBlockParts = [];
|
|
986
|
+
}
|
|
987
|
+
resultParts.push(part);
|
|
988
|
+
}
|
|
989
|
+
if (part === OPEN_CURLY) {
|
|
990
|
+
bracketCount++;
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
if (currentBlockParts.length > 0) {
|
|
994
|
+
escapedBlocks.push(currentBlockParts.join(""));
|
|
995
|
+
resultParts.push(BLOCK_PLACEHOLDER);
|
|
996
|
+
}
|
|
997
|
+
const strEscapedBlocks = {
|
|
998
|
+
escapedString: resultParts.join(""),
|
|
999
|
+
blocks: escapedBlocks
|
|
1000
|
+
};
|
|
1001
|
+
return strEscapedBlocks;
|
|
1002
|
+
};
|
|
1003
|
+
var insertPolyfillHostInCssText = (cssText) => {
|
|
1004
|
+
cssText = cssText.replace(_colonHostContextRe, `$1${_polyfillHostContext}`).replace(_colonHostRe, `$1${_polyfillHost}`).replace(_colonSlottedRe, `$1${_polyfillSlotted}`);
|
|
1005
|
+
return cssText;
|
|
1006
|
+
};
|
|
1007
|
+
var convertColonRule = (cssText, regExp, partReplacer) => {
|
|
1008
|
+
return cssText.replace(regExp, (...m) => {
|
|
1009
|
+
if (m[2]) {
|
|
1010
|
+
const parts = m[2].split(",");
|
|
1011
|
+
const r = [];
|
|
1012
|
+
for (let i2 = 0; i2 < parts.length; i2++) {
|
|
1013
|
+
const p = parts[i2].trim();
|
|
1014
|
+
if (!p) break;
|
|
1015
|
+
r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));
|
|
1016
|
+
}
|
|
1017
|
+
return r.join(",");
|
|
1018
|
+
} else {
|
|
1019
|
+
return _polyfillHostNoCombinator + m[3];
|
|
1020
|
+
}
|
|
1021
|
+
});
|
|
1022
|
+
};
|
|
1023
|
+
var colonHostPartReplacer = (host, part, suffix) => {
|
|
1024
|
+
return host + part.replace(_polyfillHost, "") + suffix;
|
|
1025
|
+
};
|
|
1026
|
+
var convertColonHost = (cssText) => {
|
|
1027
|
+
return convertColonRule(cssText, _cssColonHostRe, colonHostPartReplacer);
|
|
1028
|
+
};
|
|
1029
|
+
var colonHostContextPartReplacer = (host, part, suffix) => {
|
|
1030
|
+
if (part.indexOf(_polyfillHost) > -1) {
|
|
1031
|
+
return colonHostPartReplacer(host, part, suffix);
|
|
1032
|
+
} else {
|
|
1033
|
+
return host + part + suffix + ", " + part + " " + host + suffix;
|
|
1034
|
+
}
|
|
1035
|
+
};
|
|
1036
|
+
var convertColonSlotted = (cssText, slotScopeId) => {
|
|
1037
|
+
const slotClass = "." + slotScopeId + " > ";
|
|
1038
|
+
const selectors = [];
|
|
1039
|
+
cssText = cssText.replace(_cssColonSlottedRe, (...m) => {
|
|
1040
|
+
if (m[2]) {
|
|
1041
|
+
const compound = m[2].trim();
|
|
1042
|
+
const suffix = m[3];
|
|
1043
|
+
const slottedSelector = slotClass + compound + suffix;
|
|
1044
|
+
let prefixSelector = "";
|
|
1045
|
+
for (let i2 = m[4] - 1; i2 >= 0; i2--) {
|
|
1046
|
+
const char = m[5][i2];
|
|
1047
|
+
if (char === "}" || char === ",") {
|
|
1048
|
+
break;
|
|
1049
|
+
}
|
|
1050
|
+
prefixSelector = char + prefixSelector;
|
|
1051
|
+
}
|
|
1052
|
+
const orgSelector = (prefixSelector + slottedSelector).trim();
|
|
1053
|
+
const addedSelector = `${prefixSelector.trimEnd()}${slottedSelector.trim()}`.trim();
|
|
1054
|
+
if (orgSelector !== addedSelector) {
|
|
1055
|
+
const updatedSelector = `${addedSelector}, ${orgSelector}`;
|
|
1056
|
+
selectors.push({
|
|
1057
|
+
orgSelector,
|
|
1058
|
+
updatedSelector
|
|
1059
|
+
});
|
|
1060
|
+
}
|
|
1061
|
+
return slottedSelector;
|
|
1062
|
+
} else {
|
|
1063
|
+
return _polyfillHostNoCombinator + m[3];
|
|
1064
|
+
}
|
|
1065
|
+
});
|
|
1066
|
+
return {
|
|
1067
|
+
selectors,
|
|
1068
|
+
cssText
|
|
1069
|
+
};
|
|
1070
|
+
};
|
|
1071
|
+
var convertColonHostContext = (cssText) => {
|
|
1072
|
+
return convertColonRule(cssText, _cssColonHostContextRe, colonHostContextPartReplacer);
|
|
1073
|
+
};
|
|
1074
|
+
var convertShadowDOMSelectors = (cssText) => {
|
|
1075
|
+
return _shadowDOMSelectorsRe.reduce((result, pattern) => result.replace(pattern, " "), cssText);
|
|
1076
|
+
};
|
|
1077
|
+
var makeScopeMatcher = (scopeSelector2) => {
|
|
1078
|
+
const lre = /\[/g;
|
|
1079
|
+
const rre = /\]/g;
|
|
1080
|
+
scopeSelector2 = scopeSelector2.replace(lre, "\\[").replace(rre, "\\]");
|
|
1081
|
+
return new RegExp("^(" + scopeSelector2 + ")" + _selectorReSuffix, "m");
|
|
1082
|
+
};
|
|
1083
|
+
var selectorNeedsScoping = (selector, scopeSelector2) => {
|
|
1084
|
+
const re = makeScopeMatcher(scopeSelector2);
|
|
1085
|
+
return !re.test(selector);
|
|
1086
|
+
};
|
|
1087
|
+
var injectScopingSelector = (selector, scopingSelector) => {
|
|
1088
|
+
return selector.replace(_selectorPartsRe, (_, before = "", _colonGroup, colon = "", after = "") => {
|
|
1089
|
+
return before + scopingSelector + colon + after;
|
|
1090
|
+
});
|
|
1091
|
+
};
|
|
1092
|
+
var applySimpleSelectorScope = (selector, scopeSelector2, hostSelector) => {
|
|
1093
|
+
_polyfillHostRe.lastIndex = 0;
|
|
1094
|
+
if (_polyfillHostRe.test(selector)) {
|
|
1095
|
+
const replaceBy = `.${hostSelector}`;
|
|
1096
|
+
return selector.replace(_polyfillHostNoCombinatorRe, (_, selector2) => injectScopingSelector(selector2, replaceBy)).replace(_polyfillHostRe, replaceBy + " ");
|
|
1097
|
+
}
|
|
1098
|
+
return scopeSelector2 + " " + selector;
|
|
1099
|
+
};
|
|
1100
|
+
var applyStrictSelectorScope = (selector, scopeSelector2, hostSelector) => {
|
|
1101
|
+
const isRe = /\[is=([^\]]*)\]/g;
|
|
1102
|
+
scopeSelector2 = scopeSelector2.replace(isRe, (_, ...parts) => parts[0]);
|
|
1103
|
+
const className = "." + scopeSelector2;
|
|
1104
|
+
const _scopeSelectorPart = (p) => {
|
|
1105
|
+
let scopedP = p.trim();
|
|
1106
|
+
if (!scopedP) {
|
|
1107
|
+
return "";
|
|
1108
|
+
}
|
|
1109
|
+
if (p.indexOf(_polyfillHostNoCombinator) > -1) {
|
|
1110
|
+
scopedP = applySimpleSelectorScope(p, scopeSelector2, hostSelector);
|
|
1111
|
+
} else {
|
|
1112
|
+
const t = p.replace(_polyfillHostRe, "");
|
|
1113
|
+
if (t.length > 0) {
|
|
1114
|
+
scopedP = injectScopingSelector(t, className);
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
return scopedP;
|
|
1118
|
+
};
|
|
1119
|
+
const safeContent = safeSelector(selector);
|
|
1120
|
+
selector = safeContent.content;
|
|
1121
|
+
let scopedSelector = "";
|
|
1122
|
+
let startIndex = 0;
|
|
1123
|
+
let res;
|
|
1124
|
+
const sep = /( |>|\+|~(?!=))\s*/g;
|
|
1125
|
+
const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;
|
|
1126
|
+
let shouldScope = !hasHost;
|
|
1127
|
+
while ((res = sep.exec(selector)) !== null) {
|
|
1128
|
+
const separator = res[1];
|
|
1129
|
+
const part2 = selector.slice(startIndex, res.index).trim();
|
|
1130
|
+
shouldScope = shouldScope || part2.indexOf(_polyfillHostNoCombinator) > -1;
|
|
1131
|
+
const scopedPart = shouldScope ? _scopeSelectorPart(part2) : part2;
|
|
1132
|
+
scopedSelector += `${scopedPart} ${separator} `;
|
|
1133
|
+
startIndex = sep.lastIndex;
|
|
1134
|
+
}
|
|
1135
|
+
const part = selector.substring(startIndex);
|
|
1136
|
+
shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
|
|
1137
|
+
scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;
|
|
1138
|
+
return restoreSafeSelector(safeContent.placeholders, scopedSelector);
|
|
1139
|
+
};
|
|
1140
|
+
var scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector) => {
|
|
1141
|
+
return selector.split(",").map((shallowPart) => {
|
|
1142
|
+
if (slotSelector && shallowPart.indexOf("." + slotSelector) > -1) {
|
|
1143
|
+
return shallowPart.trim();
|
|
1144
|
+
}
|
|
1145
|
+
if (selectorNeedsScoping(shallowPart, scopeSelectorText)) {
|
|
1146
|
+
return applyStrictSelectorScope(shallowPart, scopeSelectorText, hostSelector).trim();
|
|
1147
|
+
} else {
|
|
1148
|
+
return shallowPart.trim();
|
|
1149
|
+
}
|
|
1150
|
+
}).join(", ");
|
|
1151
|
+
};
|
|
1152
|
+
var scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {
|
|
1153
|
+
return processRules(cssText, (rule) => {
|
|
1154
|
+
let selector = rule.selector;
|
|
1155
|
+
let content = rule.content;
|
|
1156
|
+
if (rule.selector[0] !== "@") {
|
|
1157
|
+
selector = scopeSelector(rule.selector, scopeSelectorText, hostSelector, slotSelector);
|
|
1158
|
+
} else if (rule.selector.startsWith("@media") || rule.selector.startsWith("@supports") || rule.selector.startsWith("@page") || rule.selector.startsWith("@document")) {
|
|
1159
|
+
content = scopeSelectors(rule.content, scopeSelectorText, hostSelector, slotSelector);
|
|
1160
|
+
}
|
|
1161
|
+
const cssRule = {
|
|
1162
|
+
selector: selector.replace(/\s{2,}/g, " ").trim(),
|
|
1163
|
+
content
|
|
1164
|
+
};
|
|
1165
|
+
return cssRule;
|
|
1166
|
+
});
|
|
1167
|
+
};
|
|
1168
|
+
var scopeCssText = (cssText, scopeId2, hostScopeId, slotScopeId, commentOriginalSelector) => {
|
|
1169
|
+
cssText = insertPolyfillHostInCssText(cssText);
|
|
1170
|
+
cssText = convertColonHost(cssText);
|
|
1171
|
+
cssText = convertColonHostContext(cssText);
|
|
1172
|
+
const slotted = convertColonSlotted(cssText, slotScopeId);
|
|
1173
|
+
cssText = slotted.cssText;
|
|
1174
|
+
cssText = convertShadowDOMSelectors(cssText);
|
|
1175
|
+
if (scopeId2) {
|
|
1176
|
+
cssText = scopeSelectors(cssText, scopeId2, hostScopeId, slotScopeId);
|
|
1177
|
+
}
|
|
1178
|
+
cssText = replaceShadowCssHost(cssText, hostScopeId);
|
|
1179
|
+
cssText = cssText.replace(/>\s*\*\s+([^{, ]+)/gm, " $1 ");
|
|
1180
|
+
return {
|
|
1181
|
+
cssText: cssText.trim(),
|
|
1182
|
+
// We need to replace the shadow CSS host string in each of these selectors since we created
|
|
1183
|
+
// them prior to the replacement happening in the components CSS text.
|
|
1184
|
+
slottedSelectors: slotted.selectors.map((ref) => ({
|
|
1185
|
+
orgSelector: replaceShadowCssHost(ref.orgSelector, hostScopeId),
|
|
1186
|
+
updatedSelector: replaceShadowCssHost(ref.updatedSelector, hostScopeId)
|
|
1187
|
+
}))
|
|
1188
|
+
};
|
|
1189
|
+
};
|
|
1190
|
+
var replaceShadowCssHost = (cssText, hostScopeId) => {
|
|
1191
|
+
return cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);
|
|
1192
|
+
};
|
|
1193
|
+
var scopeCss = (cssText, scopeId2, commentOriginalSelector) => {
|
|
1194
|
+
const hostScopeId = scopeId2 + "-h";
|
|
1195
|
+
const slotScopeId = scopeId2 + "-s";
|
|
1196
|
+
const commentsWithHash = extractCommentsWithHash(cssText);
|
|
1197
|
+
cssText = stripComments(cssText);
|
|
1198
|
+
const orgSelectors = [];
|
|
1199
|
+
if (commentOriginalSelector) {
|
|
1200
|
+
const processCommentedSelector = (rule) => {
|
|
1201
|
+
const placeholder = `/*!@___${orgSelectors.length}___*/`;
|
|
1202
|
+
const comment = `/*!@${rule.selector}*/`;
|
|
1203
|
+
orgSelectors.push({ placeholder, comment });
|
|
1204
|
+
rule.selector = placeholder + rule.selector;
|
|
1205
|
+
return rule;
|
|
1206
|
+
};
|
|
1207
|
+
cssText = processRules(cssText, (rule) => {
|
|
1208
|
+
if (rule.selector[0] !== "@") {
|
|
1209
|
+
return processCommentedSelector(rule);
|
|
1210
|
+
} else if (rule.selector.startsWith("@media") || rule.selector.startsWith("@supports") || rule.selector.startsWith("@page") || rule.selector.startsWith("@document")) {
|
|
1211
|
+
rule.content = processRules(rule.content, processCommentedSelector);
|
|
1212
|
+
return rule;
|
|
1213
|
+
}
|
|
1214
|
+
return rule;
|
|
1215
|
+
});
|
|
1216
|
+
}
|
|
1217
|
+
const scoped = scopeCssText(cssText, scopeId2, hostScopeId, slotScopeId);
|
|
1218
|
+
cssText = [scoped.cssText, ...commentsWithHash].join("\n");
|
|
1219
|
+
if (commentOriginalSelector) {
|
|
1220
|
+
orgSelectors.forEach(({ placeholder, comment }) => {
|
|
1221
|
+
cssText = cssText.replace(placeholder, comment);
|
|
1222
|
+
});
|
|
1223
|
+
}
|
|
1224
|
+
scoped.slottedSelectors.forEach((slottedSelector) => {
|
|
1225
|
+
const regex = new RegExp(escapeRegExpSpecialCharacters(slottedSelector.orgSelector), "g");
|
|
1226
|
+
cssText = cssText.replace(regex, slottedSelector.updatedSelector);
|
|
1227
|
+
});
|
|
1228
|
+
return cssText;
|
|
1229
|
+
};
|
|
809
1230
|
var parsePropertyValue = (propValue, propType) => {
|
|
810
1231
|
if (propValue != null && !isComplexType(propValue)) {
|
|
811
1232
|
if (propType & 4 /* Boolean */) {
|
|
@@ -873,7 +1294,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
873
1294
|
if (nonce != null) {
|
|
874
1295
|
styleElm.setAttribute("nonce", nonce);
|
|
875
1296
|
}
|
|
876
|
-
if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
1297
|
+
if ((cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */ || cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */)) {
|
|
877
1298
|
styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
|
|
878
1299
|
}
|
|
879
1300
|
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
@@ -897,7 +1318,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
897
1318
|
styleContainerNode.append(styleElm);
|
|
898
1319
|
}
|
|
899
1320
|
}
|
|
900
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */
|
|
1321
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
901
1322
|
styleContainerNode.insertBefore(styleElm, null);
|
|
902
1323
|
}
|
|
903
1324
|
}
|
|
@@ -920,7 +1341,7 @@ var attachStyles = (hostRef) => {
|
|
|
920
1341
|
const scopeId2 = addStyle(
|
|
921
1342
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
922
1343
|
cmpMeta);
|
|
923
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
1344
|
+
if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
|
|
924
1345
|
elm["s-sc"] = scopeId2;
|
|
925
1346
|
elm.classList.add(scopeId2 + "-h");
|
|
926
1347
|
}
|
|
@@ -928,107 +1349,108 @@ var attachStyles = (hostRef) => {
|
|
|
928
1349
|
};
|
|
929
1350
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
930
1351
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
931
|
-
if (oldValue
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
}
|
|
958
|
-
}
|
|
959
|
-
for (const prop in newValue) {
|
|
960
|
-
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
1352
|
+
if (oldValue === newValue) {
|
|
1353
|
+
return;
|
|
1354
|
+
}
|
|
1355
|
+
let isProp = isMemberInElement(elm, memberName);
|
|
1356
|
+
let ln = memberName.toLowerCase();
|
|
1357
|
+
if (memberName === "class") {
|
|
1358
|
+
const classList = elm.classList;
|
|
1359
|
+
const oldClasses = parseClassList(oldValue);
|
|
1360
|
+
let newClasses = parseClassList(newValue);
|
|
1361
|
+
if (elm["s-si"] && initialRender) {
|
|
1362
|
+
newClasses.push(elm["s-si"]);
|
|
1363
|
+
oldClasses.forEach((c) => {
|
|
1364
|
+
if (c.startsWith(elm["s-si"])) newClasses.push(c);
|
|
1365
|
+
});
|
|
1366
|
+
newClasses = [...new Set(newClasses)];
|
|
1367
|
+
classList.add(...newClasses);
|
|
1368
|
+
} else {
|
|
1369
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
1370
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
1371
|
+
}
|
|
1372
|
+
} else if (memberName === "style") {
|
|
1373
|
+
{
|
|
1374
|
+
for (const prop in oldValue) {
|
|
1375
|
+
if (!newValue || newValue[prop] == null) {
|
|
961
1376
|
{
|
|
962
|
-
elm.style[prop] =
|
|
1377
|
+
elm.style[prop] = "";
|
|
963
1378
|
}
|
|
964
1379
|
}
|
|
965
1380
|
}
|
|
966
|
-
}
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
if (memberName[2] === "-") {
|
|
972
|
-
memberName = memberName.slice(3);
|
|
973
|
-
} else if (isMemberInElement(win, ln)) {
|
|
974
|
-
memberName = ln.slice(2);
|
|
975
|
-
} else {
|
|
976
|
-
memberName = ln[2] + memberName.slice(3);
|
|
977
|
-
}
|
|
978
|
-
if (oldValue || newValue) {
|
|
979
|
-
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
980
|
-
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
981
|
-
if (oldValue) {
|
|
982
|
-
plt.rel(elm, memberName, oldValue, capture);
|
|
983
|
-
}
|
|
984
|
-
if (newValue) {
|
|
985
|
-
plt.ael(elm, memberName, newValue, capture);
|
|
1381
|
+
}
|
|
1382
|
+
for (const prop in newValue) {
|
|
1383
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
1384
|
+
{
|
|
1385
|
+
elm.style[prop] = newValue[prop];
|
|
986
1386
|
}
|
|
987
1387
|
}
|
|
1388
|
+
}
|
|
1389
|
+
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
1390
|
+
if (newValue) {
|
|
1391
|
+
newValue(elm);
|
|
1392
|
+
}
|
|
1393
|
+
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
1394
|
+
if (memberName[2] === "-") {
|
|
1395
|
+
memberName = memberName.slice(3);
|
|
1396
|
+
} else if (isMemberInElement(win, ln)) {
|
|
1397
|
+
memberName = ln.slice(2);
|
|
988
1398
|
} else {
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1399
|
+
memberName = ln[2] + memberName.slice(3);
|
|
1400
|
+
}
|
|
1401
|
+
if (oldValue || newValue) {
|
|
1402
|
+
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
1403
|
+
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
1404
|
+
if (oldValue) {
|
|
1405
|
+
plt.rel(elm, memberName, oldValue, capture);
|
|
1406
|
+
}
|
|
1407
|
+
if (newValue) {
|
|
1408
|
+
plt.ael(elm, memberName, newValue, capture);
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
} else {
|
|
1412
|
+
const isComplex = isComplexType(newValue);
|
|
1413
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
1414
|
+
try {
|
|
1415
|
+
if (!elm.tagName.includes("-")) {
|
|
1416
|
+
const n = newValue == null ? "" : newValue;
|
|
1417
|
+
if (memberName === "list") {
|
|
1418
|
+
isProp = false;
|
|
1419
|
+
} else if (oldValue == null || elm[memberName] != n) {
|
|
1420
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
1421
|
+
elm[memberName] = n;
|
|
1422
|
+
} else {
|
|
1423
|
+
elm.setAttribute(memberName, n);
|
|
1002
1424
|
}
|
|
1003
|
-
} else if (elm[memberName] !== newValue) {
|
|
1004
|
-
elm[memberName] = newValue;
|
|
1005
1425
|
}
|
|
1006
|
-
}
|
|
1426
|
+
} else if (elm[memberName] !== newValue) {
|
|
1427
|
+
elm[memberName] = newValue;
|
|
1007
1428
|
}
|
|
1429
|
+
} catch (e) {
|
|
1008
1430
|
}
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1431
|
+
}
|
|
1432
|
+
let xlink = false;
|
|
1433
|
+
{
|
|
1434
|
+
if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
|
|
1435
|
+
memberName = ln;
|
|
1436
|
+
xlink = true;
|
|
1015
1437
|
}
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
1020
|
-
} else {
|
|
1021
|
-
elm.removeAttribute(memberName);
|
|
1022
|
-
}
|
|
1023
|
-
}
|
|
1024
|
-
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
1025
|
-
newValue = newValue === true ? "" : newValue;
|
|
1438
|
+
}
|
|
1439
|
+
if (newValue == null || newValue === false) {
|
|
1440
|
+
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
1026
1441
|
if (xlink) {
|
|
1027
|
-
elm.
|
|
1442
|
+
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
1028
1443
|
} else {
|
|
1029
|
-
elm.
|
|
1444
|
+
elm.removeAttribute(memberName);
|
|
1030
1445
|
}
|
|
1031
1446
|
}
|
|
1447
|
+
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
|
|
1448
|
+
newValue = newValue === true ? "" : newValue;
|
|
1449
|
+
if (xlink) {
|
|
1450
|
+
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
1451
|
+
} else {
|
|
1452
|
+
elm.setAttribute(memberName, newValue);
|
|
1453
|
+
}
|
|
1032
1454
|
}
|
|
1033
1455
|
}
|
|
1034
1456
|
};
|
|
@@ -1121,6 +1543,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1121
1543
|
elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
|
|
1122
1544
|
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
1123
1545
|
elm = newVNode2.$elm$ = slotReferenceDebugNode(newVNode2) ;
|
|
1546
|
+
{
|
|
1547
|
+
updateElement(null, newVNode2, isSvgMode);
|
|
1548
|
+
}
|
|
1124
1549
|
} else {
|
|
1125
1550
|
if (!isSvgMode) {
|
|
1126
1551
|
isSvgMode = newVNode2.$tag$ === "svg";
|
|
@@ -1161,6 +1586,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1161
1586
|
elm["s-cr"] = contentRef;
|
|
1162
1587
|
elm["s-sn"] = newVNode2.$name$ || "";
|
|
1163
1588
|
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
|
1589
|
+
patchSlotNode(elm);
|
|
1164
1590
|
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
1165
1591
|
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
1166
1592
|
{
|
|
@@ -1358,9 +1784,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1358
1784
|
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
1359
1785
|
}
|
|
1360
1786
|
{
|
|
1361
|
-
|
|
1362
|
-
updateElement(oldVNode, newVNode2, isSvgMode, isInitialRender);
|
|
1363
|
-
}
|
|
1787
|
+
updateElement(oldVNode, newVNode2, isSvgMode, isInitialRender);
|
|
1364
1788
|
}
|
|
1365
1789
|
if (oldChildren !== null && newChildren !== null) {
|
|
1366
1790
|
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
@@ -1449,13 +1873,13 @@ var insertBefore = (parent, newNode, reference) => {
|
|
|
1449
1873
|
}
|
|
1450
1874
|
};
|
|
1451
1875
|
function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
|
|
1452
|
-
var _a;
|
|
1876
|
+
var _a, _b;
|
|
1453
1877
|
let scopeId2;
|
|
1454
1878
|
if (reference && typeof slotNode["s-sn"] === "string" && !!slotNode["s-sr"] && reference.parentNode && reference.parentNode["s-sc"] && (scopeId2 = slotNode["s-si"] || reference.parentNode["s-sc"])) {
|
|
1455
1879
|
const scopeName = slotNode["s-sn"];
|
|
1456
1880
|
const hostName = slotNode["s-hn"];
|
|
1457
1881
|
(_a = newParent.classList) == null ? void 0 : _a.add(scopeId2 + "-s");
|
|
1458
|
-
if (oldParent && oldParent.classList.contains(scopeId2 + "-s")) {
|
|
1882
|
+
if (oldParent && ((_b = oldParent.classList) == null ? void 0 : _b.contains(scopeId2 + "-s"))) {
|
|
1459
1883
|
let child = (oldParent.__childNodes || oldParent.childNodes)[0];
|
|
1460
1884
|
let found = false;
|
|
1461
1885
|
while (child) {
|
|
@@ -1496,7 +1920,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1496
1920
|
{
|
|
1497
1921
|
scopeId = hostElm["s-sc"];
|
|
1498
1922
|
}
|
|
1499
|
-
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)
|
|
1923
|
+
useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
1500
1924
|
{
|
|
1501
1925
|
contentRef = hostElm["s-cr"];
|
|
1502
1926
|
checkSlotFallbackVisibility = false;
|
|
@@ -1533,7 +1957,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1533
1957
|
}
|
|
1534
1958
|
}
|
|
1535
1959
|
}
|
|
1536
|
-
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](
|
|
1960
|
+
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
|
|
1537
1961
|
} else {
|
|
1538
1962
|
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1539
1963
|
if (isInitialLoad) {
|
|
@@ -1602,13 +2026,11 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1602
2026
|
hostRef.$queuedListeners$ = void 0;
|
|
1603
2027
|
}
|
|
1604
2028
|
}
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
}
|
|
1609
|
-
{
|
|
1610
|
-
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
2029
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
2030
|
+
} else {
|
|
2031
|
+
maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
|
|
1611
2032
|
}
|
|
2033
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
1612
2034
|
endSchedule();
|
|
1613
2035
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
1614
2036
|
};
|
|
@@ -1688,14 +2110,13 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1688
2110
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
1689
2111
|
const instance = hostRef.$lazyInstance$ ;
|
|
1690
2112
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
2113
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
1691
2114
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
1692
2115
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
1693
2116
|
{
|
|
1694
2117
|
addHydratedFlag(elm);
|
|
1695
2118
|
}
|
|
1696
|
-
|
|
1697
|
-
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
1698
|
-
}
|
|
2119
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
1699
2120
|
endPostUpdate();
|
|
1700
2121
|
{
|
|
1701
2122
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -1704,6 +2125,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1704
2125
|
}
|
|
1705
2126
|
}
|
|
1706
2127
|
} else {
|
|
2128
|
+
safeCall(instance, "componentDidUpdate", void 0, elm);
|
|
1707
2129
|
endPostUpdate();
|
|
1708
2130
|
}
|
|
1709
2131
|
{
|
|
@@ -1721,9 +2143,6 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1721
2143
|
}
|
|
1722
2144
|
};
|
|
1723
2145
|
var appDidLoad = (who) => {
|
|
1724
|
-
{
|
|
1725
|
-
addHydratedFlag(doc.documentElement);
|
|
1726
|
-
}
|
|
1727
2146
|
nextTick$1(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
1728
2147
|
};
|
|
1729
2148
|
var safeCall = (instance, method, arg, elm) => {
|
|
@@ -1785,6 +2204,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1785
2204
|
}
|
|
1786
2205
|
}
|
|
1787
2206
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
2207
|
+
if (instance.componentShouldUpdate) {
|
|
2208
|
+
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
2209
|
+
return;
|
|
2210
|
+
}
|
|
2211
|
+
}
|
|
1788
2212
|
scheduleUpdate(hostRef, false);
|
|
1789
2213
|
}
|
|
1790
2214
|
}
|
|
@@ -1935,7 +2359,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1935
2359
|
let Cstr;
|
|
1936
2360
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1937
2361
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1938
|
-
|
|
2362
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
2363
|
+
if (bundleId) {
|
|
1939
2364
|
const CstrImport = loadModule(cmpMeta);
|
|
1940
2365
|
if (CstrImport && "then" in CstrImport) {
|
|
1941
2366
|
const endLoad = uniqueTime();
|
|
@@ -1971,6 +2396,10 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1971
2396
|
}
|
|
1972
2397
|
endNewInstance();
|
|
1973
2398
|
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
2399
|
+
} else {
|
|
2400
|
+
Cstr = elm.constructor;
|
|
2401
|
+
const cmpTag = elm.localName;
|
|
2402
|
+
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1974
2403
|
}
|
|
1975
2404
|
if (Cstr && Cstr.style) {
|
|
1976
2405
|
let style;
|
|
@@ -1980,6 +2409,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1980
2409
|
const scopeId2 = getScopeId(cmpMeta);
|
|
1981
2410
|
if (!styles$1.has(scopeId2)) {
|
|
1982
2411
|
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
2412
|
+
if (cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */) {
|
|
2413
|
+
style = scopeCss(style, scopeId2, true);
|
|
2414
|
+
}
|
|
1983
2415
|
registerStyle(scopeId2, style);
|
|
1984
2416
|
endRegisterStyles();
|
|
1985
2417
|
}
|
|
@@ -2256,7 +2688,7 @@ function proxyHostElement(elm, cstr) {
|
|
|
2256
2688
|
if (typeof elm.forceUpdate !== "function") {
|
|
2257
2689
|
elm.forceUpdate = forceUpdate2;
|
|
2258
2690
|
}
|
|
2259
|
-
if (!elm.shadowRoot && !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
2691
|
+
if (!elm.shadowRoot && !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */)) {
|
|
2260
2692
|
{
|
|
2261
2693
|
elm.attachShadow({ mode: "open" });
|
|
2262
2694
|
}
|
|
@@ -2292,26 +2724,33 @@ function proxyHostElement(elm, cstr) {
|
|
|
2292
2724
|
}
|
|
2293
2725
|
(_a = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _a.set(memberName, attrPropVal);
|
|
2294
2726
|
}
|
|
2295
|
-
|
|
2727
|
+
const getterSetterDescriptor = {
|
|
2296
2728
|
get: function() {
|
|
2297
2729
|
return getValue(this, memberName);
|
|
2298
2730
|
},
|
|
2299
|
-
set(newValue) {
|
|
2731
|
+
set: function(newValue) {
|
|
2300
2732
|
setValue(this, memberName, newValue, cmpMeta);
|
|
2301
2733
|
},
|
|
2302
2734
|
configurable: true,
|
|
2303
2735
|
enumerable: true
|
|
2304
|
-
}
|
|
2305
|
-
Object.defineProperty(
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2736
|
+
};
|
|
2737
|
+
Object.defineProperty(elm, memberName, getterSetterDescriptor);
|
|
2738
|
+
Object.defineProperty(elm, metaAttributeName, getterSetterDescriptor);
|
|
2739
|
+
if (!cstr.prototype.__stencilAugmented) {
|
|
2740
|
+
Object.defineProperty(cstr.prototype, memberName, {
|
|
2741
|
+
get: function() {
|
|
2742
|
+
var _a2;
|
|
2743
|
+
const ref = getHostRef(this);
|
|
2744
|
+
const attrPropVal2 = (_a2 = ref.$instanceValues$) == null ? void 0 : _a2.get(memberName);
|
|
2745
|
+
if (origGetter && attrPropVal2 === void 0 && !getValue(this, memberName)) {
|
|
2746
|
+
setValue(this, memberName, origGetter.apply(this), cmpMeta);
|
|
2747
|
+
}
|
|
2748
|
+
return attrPropVal2 !== void 0 ? attrPropVal2 : origGetter ? origGetter.apply(this) : getValue(this, memberName);
|
|
2749
|
+
},
|
|
2750
|
+
configurable: true,
|
|
2751
|
+
enumerable: true
|
|
2752
|
+
});
|
|
2753
|
+
}
|
|
2315
2754
|
} else if (memberFlags & 64 /* Method */) {
|
|
2316
2755
|
Object.defineProperty(elm, memberName, {
|
|
2317
2756
|
value(...args) {
|
|
@@ -2327,6 +2766,7 @@ function proxyHostElement(elm, cstr) {
|
|
|
2327
2766
|
});
|
|
2328
2767
|
}
|
|
2329
2768
|
});
|
|
2769
|
+
cstr.prototype.__stencilAugmented = true;
|
|
2330
2770
|
}
|
|
2331
2771
|
}
|
|
2332
2772
|
function componentOnReady() {
|
|
@@ -2385,6 +2825,15 @@ function hydrateApp(win2, opts, results, afterHydrate, resolve) {
|
|
|
2385
2825
|
$flags$: null
|
|
2386
2826
|
});
|
|
2387
2827
|
if (Cstr != null && Cstr.cmpMeta != null) {
|
|
2828
|
+
if (opts.serializeShadowRoot !== false && !!(Cstr.cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && tagRequiresScoped(elm.tagName, opts.serializeShadowRoot)) {
|
|
2829
|
+
const cmpMeta = Cstr.cmpMeta;
|
|
2830
|
+
cmpMeta.$flags$ |= 128 /* shadowNeedsScopedCss */;
|
|
2831
|
+
Object.defineProperty(Cstr, "cmpMeta", {
|
|
2832
|
+
get: function() {
|
|
2833
|
+
return cmpMeta;
|
|
2834
|
+
}
|
|
2835
|
+
});
|
|
2836
|
+
}
|
|
2388
2837
|
createdElements.add(elm);
|
|
2389
2838
|
elm.connectedCallback = patchedConnectedCallback2;
|
|
2390
2839
|
registerHost(elm, Cstr.cmpMeta);
|
|
@@ -2577,6 +3026,25 @@ ${indent}${ln}`;
|
|
|
2577
3026
|
function waitingOnElementsMsg(waitingElements) {
|
|
2578
3027
|
return Array.from(waitingElements).map(waitingOnElementMsg);
|
|
2579
3028
|
}
|
|
3029
|
+
function tagRequiresScoped(tagName, opts) {
|
|
3030
|
+
if (typeof opts === "string") {
|
|
3031
|
+
return opts === "scoped";
|
|
3032
|
+
}
|
|
3033
|
+
if (typeof opts === "boolean") {
|
|
3034
|
+
return opts === true ? false : true;
|
|
3035
|
+
}
|
|
3036
|
+
if (typeof opts === "object") {
|
|
3037
|
+
tagName = tagName.toLowerCase();
|
|
3038
|
+
if (Array.isArray(opts["declarative-shadow-dom"]) && opts["declarative-shadow-dom"].includes(tagName)) {
|
|
3039
|
+
return false;
|
|
3040
|
+
} else if ((!Array.isArray(opts.scoped) || !opts.scoped.includes(tagName)) && opts.default === "declarative-shadow-dom") {
|
|
3041
|
+
return false;
|
|
3042
|
+
} else {
|
|
3043
|
+
return true;
|
|
3044
|
+
}
|
|
3045
|
+
}
|
|
3046
|
+
return false;
|
|
3047
|
+
}
|
|
2580
3048
|
var cmpModules = /* @__PURE__ */ new Map();
|
|
2581
3049
|
var getModule = (tagName) => {
|
|
2582
3050
|
if (typeof tagName === "string") {
|
|
@@ -2642,11 +3110,16 @@ var plt = {
|
|
|
2642
3110
|
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
2643
3111
|
ce: (eventName, opts) => new win.CustomEvent(eventName, opts)
|
|
2644
3112
|
};
|
|
2645
|
-
var
|
|
2646
|
-
|
|
3113
|
+
var getHostRef = (ref) => {
|
|
3114
|
+
if (ref.__stencil__getHostRef) {
|
|
3115
|
+
return ref.__stencil__getHostRef();
|
|
3116
|
+
}
|
|
3117
|
+
return void 0;
|
|
3118
|
+
};
|
|
2647
3119
|
var registerInstance = (lazyInstance, hostRef) => {
|
|
2648
|
-
|
|
2649
|
-
|
|
3120
|
+
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
3121
|
+
hostRef.$lazyInstance$ = lazyInstance;
|
|
3122
|
+
return hostRef;
|
|
2650
3123
|
};
|
|
2651
3124
|
var registerHost = (elm, cmpMeta) => {
|
|
2652
3125
|
const hostRef = {
|
|
@@ -2660,7 +3133,8 @@ var registerHost = (elm, cmpMeta) => {
|
|
|
2660
3133
|
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
|
2661
3134
|
elm["s-p"] = [];
|
|
2662
3135
|
elm["s-rc"] = [];
|
|
2663
|
-
|
|
3136
|
+
elm.__stencil__getHostRef = () => hostRef;
|
|
3137
|
+
return hostRef;
|
|
2664
3138
|
};
|
|
2665
3139
|
var styles$1 = /* @__PURE__ */ new Map();
|
|
2666
3140
|
|
|
@@ -2726,7 +3200,7 @@ class Accordion {
|
|
|
2726
3200
|
const accordionLightContent = this.isLight ? 'accordion-content accordion-light-content' : 'accordion-content';
|
|
2727
3201
|
const accordionLightSeparator = this.isLightSeparator ? 'accordion accordion-light accordion-light--border' : 'accordion';
|
|
2728
3202
|
const accordionSmall = this.isSmall ? 'accordion accordion-light accordion-light--small' : 'accordion';
|
|
2729
|
-
return (hAsync("details", { key: '
|
|
3203
|
+
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' }))));
|
|
2730
3204
|
}
|
|
2731
3205
|
static get style() { return RoadAccordionStyle0; }
|
|
2732
3206
|
static get cmpMeta() { return {
|
|
@@ -2761,7 +3235,7 @@ class Alert {
|
|
|
2761
3235
|
}
|
|
2762
3236
|
render() {
|
|
2763
3237
|
const colorClass = this.color !== undefined ? `alert-${this.color}` : '';
|
|
2764
|
-
return (hAsync(Host, { key: '
|
|
3238
|
+
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)))));
|
|
2765
3239
|
}
|
|
2766
3240
|
static get style() { return RoadAlertStyle0; }
|
|
2767
3241
|
static get cmpMeta() { return {
|
|
@@ -2860,7 +3334,7 @@ class Asset {
|
|
|
2860
3334
|
}
|
|
2861
3335
|
}
|
|
2862
3336
|
render() {
|
|
2863
|
-
return (hAsync(Host, { key: '
|
|
3337
|
+
return (hAsync(Host, { key: '7bd32a7dfe1578a37cc8bec3bb04b7c4c258428f', "aria-hidden": "true", role: "img" }, ((this.assetSvgContent !== '')
|
|
2864
3338
|
? hAsync("div", { class: "icon-inner", innerHTML: this.assetSvgContent })
|
|
2865
3339
|
: hAsync("div", { class: "icon-inner" }))));
|
|
2866
3340
|
}
|
|
@@ -2930,8 +3404,8 @@ class Autocomplete {
|
|
|
2930
3404
|
}
|
|
2931
3405
|
}
|
|
2932
3406
|
render() {
|
|
2933
|
-
return (hAsync(Host, { key: '
|
|
2934
|
-
hAsync("ul", { key: '
|
|
3407
|
+
return (hAsync(Host, { key: '1190e7f212f77cab6afc109e7e0f3084b8efebd8' }, hAsync("slot", { key: '11a27dffa99da856e71fc1442ccec3ed27536371' }), this.visible && this.options.length > 0 &&
|
|
3408
|
+
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))))));
|
|
2935
3409
|
}
|
|
2936
3410
|
get el() { return getElement(this); }
|
|
2937
3411
|
static get style() { return RoadAutocompleteStyle0; }
|
|
@@ -2964,7 +3438,7 @@ class Avatar {
|
|
|
2964
3438
|
}
|
|
2965
3439
|
render() {
|
|
2966
3440
|
const sizeClass = this.size !== undefined ? `avatar-${this.size}` : '';
|
|
2967
|
-
return (hAsync(Host, { key: '
|
|
3441
|
+
return (hAsync(Host, { key: '5c915dcd64e3ada9d5a7eb62a7a07a158f89219b', class: `${sizeClass}` }, hAsync("slot", { key: 'ac0d3803d3f176d97849f9f7d928c2dbb81fae51' })));
|
|
2968
3442
|
}
|
|
2969
3443
|
static get style() { return RoadAvatarStyle0; }
|
|
2970
3444
|
static get cmpMeta() { return {
|
|
@@ -3000,7 +3474,7 @@ class Badge {
|
|
|
3000
3474
|
render() {
|
|
3001
3475
|
const colorClass = this.color !== undefined ? `badge-${this.color}` : '';
|
|
3002
3476
|
const bubbleClass = this.bubble ? 'badge-bubble' : '';
|
|
3003
|
-
return (hAsync(Host, { key: '
|
|
3477
|
+
return (hAsync(Host, { key: 'c085e73938935fe52d13fceb33b22d9c44b6c829', class: `${colorClass} ${bubbleClass}` }, hAsync("slot", { key: '5566674acd833574833859a1028f8e5c0115fec3' })));
|
|
3004
3478
|
}
|
|
3005
3479
|
static get style() { return RoadBadgeStyle0; }
|
|
3006
3480
|
static get cmpMeta() { return {
|
|
@@ -3049,7 +3523,7 @@ class Banner {
|
|
|
3049
3523
|
}
|
|
3050
3524
|
render() {
|
|
3051
3525
|
const bannerIsOpenClass = this.isOpen ? 'banner-open' : '';
|
|
3052
|
-
return (hAsync(Host, { key: '
|
|
3526
|
+
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" })))));
|
|
3053
3527
|
}
|
|
3054
3528
|
static get style() { return RoadBannerStyle0; }
|
|
3055
3529
|
static get cmpMeta() { return {
|
|
@@ -3155,7 +3629,7 @@ class Button$1 {
|
|
|
3155
3629
|
const sizeClass = this.size !== undefined ? `btn-${this.size}` : '';
|
|
3156
3630
|
const expandClass = this.expand ? 'btn-block' : '';
|
|
3157
3631
|
const iconOnlyClass = this.iconOnly ? 'btn-icon' : '';
|
|
3158
|
-
return (hAsync(Host, { key: '
|
|
3632
|
+
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" }))));
|
|
3159
3633
|
}
|
|
3160
3634
|
get el() { return getElement(this); }
|
|
3161
3635
|
static get style() { return RoadButtonStyle0; }
|
|
@@ -3240,7 +3714,7 @@ class Button {
|
|
|
3240
3714
|
render() {
|
|
3241
3715
|
const TagType = this.href === undefined ? 'button' : 'a';
|
|
3242
3716
|
const positionClass = this.position !== undefined ? `position-${this.position}` : '';
|
|
3243
|
-
return (hAsync(Host, { key: '
|
|
3717
|
+
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' }))));
|
|
3244
3718
|
}
|
|
3245
3719
|
get el() { return getElement(this); }
|
|
3246
3720
|
static get style() { return RoadButtonFloatingStyle0; }
|
|
@@ -3285,7 +3759,7 @@ class ButtonBar {
|
|
|
3285
3759
|
this.selectedTabChanged();
|
|
3286
3760
|
}
|
|
3287
3761
|
render() {
|
|
3288
|
-
return (hAsync(Host, { key: '
|
|
3762
|
+
return (hAsync(Host, { key: '01e10de21adf47d551a566458db121eaf08b21d1', role: "tablist" }, hAsync("slot", { key: 'ec1d192d52d23a59fb5123a267e03386773ad733' })));
|
|
3289
3763
|
}
|
|
3290
3764
|
get el() { return getElement(this); }
|
|
3291
3765
|
static get watchers() { return {
|
|
@@ -3368,7 +3842,7 @@ class Card {
|
|
|
3368
3842
|
render() {
|
|
3369
3843
|
const { elevation } = this;
|
|
3370
3844
|
const elevationClass = this.elevation ? `card-elevation-${elevation}` : ``;
|
|
3371
|
-
return (hAsync(Host, { key: '
|
|
3845
|
+
return (hAsync(Host, { key: 'f594ba577e5c19d00c2c432adad6dbaeefd59842', class: `${elevationClass}` }, this.renderCard()));
|
|
3372
3846
|
}
|
|
3373
3847
|
get el() { return getElement(this); }
|
|
3374
3848
|
static get style() { return RoadCardStyle0; }
|
|
@@ -10115,7 +10589,7 @@ class Carousel {
|
|
|
10115
10589
|
});
|
|
10116
10590
|
}
|
|
10117
10591
|
render() {
|
|
10118
|
-
return (hAsync(Host, { key: '
|
|
10592
|
+
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 })))));
|
|
10119
10593
|
}
|
|
10120
10594
|
get el() { return getElement(this); }
|
|
10121
10595
|
static get watchers() { return {
|
|
@@ -10166,10 +10640,10 @@ class CarouselItem {
|
|
|
10166
10640
|
registerInstance(this, hostRef);
|
|
10167
10641
|
}
|
|
10168
10642
|
render() {
|
|
10169
|
-
return (hAsync(Host, { key: '
|
|
10643
|
+
return (hAsync(Host, { key: '4b574d9c139a643842cc7230c9ce080104c57c2d', class: {
|
|
10170
10644
|
'swiper-slide': true,
|
|
10171
10645
|
'swiper-zoom-container': true,
|
|
10172
|
-
} }, hAsync("slot", { key: '
|
|
10646
|
+
} }, hAsync("slot", { key: 'a6af18ea8d00e1f3e501516977317433d51f8feb' })));
|
|
10173
10647
|
}
|
|
10174
10648
|
static get style() { return RoadCarouselItemStyle0; }
|
|
10175
10649
|
static get cmpMeta() { return {
|
|
@@ -10260,7 +10734,7 @@ class Checkbox {
|
|
|
10260
10734
|
const labelId = this.checkboxId + '-label';
|
|
10261
10735
|
const inverseClass = this.inverse && 'form-checkbox-inverse';
|
|
10262
10736
|
const isInvalidClass = this.error !== undefined && !this.checked && this.error !== '' ? 'is-invalid' : '';
|
|
10263
|
-
return (hAsync(Host, { key: '
|
|
10737
|
+
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)));
|
|
10264
10738
|
}
|
|
10265
10739
|
static get watchers() { return {
|
|
10266
10740
|
"checked": ["checkedChanged"]
|
|
@@ -10318,7 +10792,7 @@ class Chip {
|
|
|
10318
10792
|
}
|
|
10319
10793
|
render() {
|
|
10320
10794
|
const outlineClass = this.outline ? 'chip-outline' : '';
|
|
10321
|
-
return (hAsync(Host, { key: '
|
|
10795
|
+
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 })));
|
|
10322
10796
|
}
|
|
10323
10797
|
static get style() { return RoadChipStyle0; }
|
|
10324
10798
|
static get cmpMeta() { return {
|
|
@@ -10347,7 +10821,7 @@ class Col {
|
|
|
10347
10821
|
registerInstance(this, hostRef);
|
|
10348
10822
|
}
|
|
10349
10823
|
render() {
|
|
10350
|
-
return (hAsync("slot", { key: '
|
|
10824
|
+
return (hAsync("slot", { key: '308e7274e937ddf050ee09e50c6433bdc2be1060' }));
|
|
10351
10825
|
}
|
|
10352
10826
|
static get style() { return RoadColStyle0; }
|
|
10353
10827
|
static get cmpMeta() { return {
|
|
@@ -10397,7 +10871,7 @@ class Collapse {
|
|
|
10397
10871
|
const isOpenClass = this.isOpen ? 'collapse-open' : '';
|
|
10398
10872
|
const buttonText = this.isOpen ? this.showLess : this.showMore;
|
|
10399
10873
|
const centerClass = this.centered ? 'collapse-btn-centered' : '';
|
|
10400
|
-
return (hAsync(Host, { key: '
|
|
10874
|
+
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))));
|
|
10401
10875
|
}
|
|
10402
10876
|
static get style() { return RoadCollapseStyle0; }
|
|
10403
10877
|
static get cmpMeta() { return {
|
|
@@ -10434,7 +10908,7 @@ class ContentCard {
|
|
|
10434
10908
|
}
|
|
10435
10909
|
render() {
|
|
10436
10910
|
const insetImageClass = this.insetImage ? '' : 'content-card-image';
|
|
10437
|
-
return (hAsync(Host, { key: '
|
|
10911
|
+
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' })))));
|
|
10438
10912
|
}
|
|
10439
10913
|
static get style() { return RoadContentCardStyle0; }
|
|
10440
10914
|
static get cmpMeta() { return {
|
|
@@ -10594,7 +11068,7 @@ class Counter {
|
|
|
10594
11068
|
}
|
|
10595
11069
|
render() {
|
|
10596
11070
|
const dataCi = this.isDustbinVisible ? "road-dustbin" : "";
|
|
10597
|
-
return (hAsync("road-input-group", { key: '
|
|
11071
|
+
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" }))));
|
|
10598
11072
|
}
|
|
10599
11073
|
get el() { return getElement(this); }
|
|
10600
11074
|
static get watchers() { return {
|
|
@@ -10710,11 +11184,11 @@ class Dialog {
|
|
|
10710
11184
|
break;
|
|
10711
11185
|
}
|
|
10712
11186
|
}
|
|
10713
|
-
return (hAsync(Host, { key: '
|
|
11187
|
+
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
|
|
10714
11188
|
? hAsync("button", { type: "button", class: "dialog-close", onClick: this.onClick, "aria-label": "Close" }, hAsync("road-icon", { icon: navigationClose, "aria-hidden": "true" }))
|
|
10715
|
-
: ''), hAsync("div", { key: '
|
|
11189
|
+
: ''), hAsync("div", { key: '3c8d582ce22773ffad9d03d4ab52b6a40ca19996', class: "dialog-body" }, this.color !== undefined
|
|
10716
11190
|
? hAsync("road-icon", { class: "dialog-icon", part: "dialog-icon", color: this.color, icon: icon, "aria-hidden": "true" })
|
|
10717
|
-
: '', hAsync("h2", { key: '
|
|
11191
|
+
: '', 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' }))))));
|
|
10718
11192
|
}
|
|
10719
11193
|
get el() { return getElement(this); }
|
|
10720
11194
|
static get style() { return RoadDialogStyle0; }
|
|
@@ -10878,7 +11352,7 @@ class Drawer {
|
|
|
10878
11352
|
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) : '';
|
|
10879
11353
|
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" })) : '';
|
|
10880
11354
|
const drawerWidthValue = this.position === 'bottom' ? '100%' : this.drawerWidth + 'px';
|
|
10881
|
-
return (hAsync(Host, { key: '
|
|
11355
|
+
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" })))))));
|
|
10882
11356
|
}
|
|
10883
11357
|
get el() { return getElement(this); }
|
|
10884
11358
|
static get watchers() { return {
|
|
@@ -10938,7 +11412,7 @@ class Dropdown$1 {
|
|
|
10938
11412
|
const positionClass = this.position ? `position-${this.position}` : '';
|
|
10939
11413
|
const dropdownClass = this.position ? `dropdown-${this.position}` : '';
|
|
10940
11414
|
const directionClass = this.direction ? `direction-${this.direction}` : '';
|
|
10941
|
-
return (hAsync("details", { key: '
|
|
11415
|
+
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" }))));
|
|
10942
11416
|
}
|
|
10943
11417
|
get el() { return getElement(this); }
|
|
10944
11418
|
static get style() { return RoadDropdownStyle0; }
|
|
@@ -10994,7 +11468,7 @@ class Dropdown {
|
|
|
10994
11468
|
this.isOpen = false;
|
|
10995
11469
|
}
|
|
10996
11470
|
render() {
|
|
10997
|
-
return (hAsync("details", { key: '
|
|
11471
|
+
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" }))));
|
|
10998
11472
|
}
|
|
10999
11473
|
get el() { return getElement(this); }
|
|
11000
11474
|
static get style() { return RoadProfilDropdownStyle0; }
|
|
@@ -11058,7 +11532,7 @@ class Duration {
|
|
|
11058
11532
|
this.isOpen = false;
|
|
11059
11533
|
}
|
|
11060
11534
|
render() {
|
|
11061
|
-
return (hAsync("road-drawer", { key: '
|
|
11535
|
+
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 })))))))));
|
|
11062
11536
|
}
|
|
11063
11537
|
get el() { return getElement(this); }
|
|
11064
11538
|
static get style() { return RoadDurationStyle0; }
|
|
@@ -11104,7 +11578,7 @@ class Flap {
|
|
|
11104
11578
|
}
|
|
11105
11579
|
render() {
|
|
11106
11580
|
const colorClass = this.filled ? `flap-${this.color}-filled` : `flap-${this.color}`;
|
|
11107
|
-
return (hAsync(Host, { key: '
|
|
11581
|
+
return (hAsync(Host, { key: '1fe4c3376497a138ea4458c5ff02e1c21f6e1193', class: `${colorClass} flap-${this.size}` }, hAsync("slot", { key: '7abea3b1b63c69c653ea84ef80c9996d589a723f' })));
|
|
11108
11582
|
}
|
|
11109
11583
|
static get style() { return RoadFlapStyle0; }
|
|
11110
11584
|
static get cmpMeta() { return {
|
|
@@ -11150,7 +11624,7 @@ class GlobalNavigation {
|
|
|
11150
11624
|
this.selectedTabChanged();
|
|
11151
11625
|
}
|
|
11152
11626
|
render() {
|
|
11153
|
-
return (hAsync(Host, { key: '
|
|
11627
|
+
return (hAsync(Host, { key: '6dd4185ee2cd4a4c9b35571c9be8bf168f0a911d', role: "application" }, hAsync("slot", { key: '6a939f92d1eab5cbcf40ef3d66d1e2b5d68adbdc' })));
|
|
11154
11628
|
}
|
|
11155
11629
|
static get watchers() { return {
|
|
11156
11630
|
"selectedTab": ["selectedTabChanged"]
|
|
@@ -11298,7 +11772,7 @@ class GlobalNavigationV2 {
|
|
|
11298
11772
|
this.selectedTabChanged();
|
|
11299
11773
|
}
|
|
11300
11774
|
render() {
|
|
11301
|
-
return (hAsync(Host, { key: '
|
|
11775
|
+
return (hAsync(Host, { key: '4e42b7a8ffc4cbc5a3a8aff8f94f39a8f205cb8f', role: "application" }, hAsync("slot", { key: '4766cb9de33e7b52aa7ebfc56e5f2c414e7bf572' })));
|
|
11302
11776
|
}
|
|
11303
11777
|
get host() { return getElement(this); }
|
|
11304
11778
|
static get watchers() { return {
|
|
@@ -11328,7 +11802,7 @@ class Grid {
|
|
|
11328
11802
|
registerInstance(this, hostRef);
|
|
11329
11803
|
}
|
|
11330
11804
|
render() {
|
|
11331
|
-
return (hAsync("slot", { key: '
|
|
11805
|
+
return (hAsync("slot", { key: '447064505d003d387d59458832935e8495802e4d' }));
|
|
11332
11806
|
}
|
|
11333
11807
|
static get style() { return RoadGridStyle0; }
|
|
11334
11808
|
static get cmpMeta() { return {
|
|
@@ -11426,12 +11900,14 @@ class Icon {
|
|
|
11426
11900
|
}
|
|
11427
11901
|
}
|
|
11428
11902
|
render() {
|
|
11429
|
-
const colorClass = this.color
|
|
11430
|
-
const sizeClass = this.size
|
|
11431
|
-
const rotateClass = this.rotate
|
|
11432
|
-
|
|
11903
|
+
const colorClass = this.color ? `icon-${this.color}` : '';
|
|
11904
|
+
const sizeClass = this.size ? `icon-${this.size}` : '';
|
|
11905
|
+
const rotateClass = this.rotate ? `icon-rotate-${this.rotate}` : '';
|
|
11906
|
+
// Ajouter une classe "default" si aucune des valeurs n'est définie
|
|
11907
|
+
const classes = [colorClass, sizeClass, rotateClass].filter(Boolean).join(' ');
|
|
11908
|
+
return (hAsync(Host, { key: 'ccee5a616cbc411a0432d3d5ee3d439db874ebbd', class: classes, "aria-hidden": "true" }, this.svgContent !== ''
|
|
11433
11909
|
? hAsync("div", { class: "icon-inner", innerHTML: this.svgContent })
|
|
11434
|
-
: hAsync("div", { class: "icon-inner" })))
|
|
11910
|
+
: hAsync("div", { class: "icon-inner" })));
|
|
11435
11911
|
}
|
|
11436
11912
|
static get assetsDirs() { return ["svg"]; }
|
|
11437
11913
|
get el() { return getElement(this); }
|
|
@@ -11551,7 +12027,7 @@ class Illustration {
|
|
|
11551
12027
|
render() {
|
|
11552
12028
|
const sizeClass = this.size !== undefined ? `illustration-${this.size}` : '';
|
|
11553
12029
|
const rotateClass = this.rotate !== undefined ? `illustration-rotate-${this.rotate}` : '';
|
|
11554
|
-
return (hAsync(Host, { key: '
|
|
12030
|
+
return (hAsync(Host, { key: 'b050e381499d68b8786780a7f2ae5c625ef52cb1', class: `${sizeClass} ${rotateClass}`, "aria-hidden": "true", role: "img" }, ((this.illustrationSvgContent !== '')
|
|
11555
12031
|
? hAsync("div", { class: "icon-inner", innerHTML: this.illustrationSvgContent })
|
|
11556
12032
|
: hAsync("div", { class: "icon-inner" }))));
|
|
11557
12033
|
}
|
|
@@ -11654,7 +12130,7 @@ class Img {
|
|
|
11654
12130
|
}
|
|
11655
12131
|
render() {
|
|
11656
12132
|
const placeholder = this.loadSrc !== undefined ? '' : 'placeholder';
|
|
11657
|
-
return (hAsync(Host, { key: '
|
|
12133
|
+
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" })));
|
|
11658
12134
|
}
|
|
11659
12135
|
get el() { return getElement(this); }
|
|
11660
12136
|
static get watchers() { return {
|
|
@@ -28921,7 +29397,7 @@ class Input {
|
|
|
28921
29397
|
/**
|
|
28922
29398
|
* If `true`, block decimal.
|
|
28923
29399
|
*/
|
|
28924
|
-
this.
|
|
29400
|
+
this.blockdecimal = false;
|
|
28925
29401
|
/**
|
|
28926
29402
|
* Whether auto correction should be enabled when the user is entering/editing the text value.
|
|
28927
29403
|
*/
|
|
@@ -28974,7 +29450,7 @@ class Input {
|
|
|
28974
29450
|
this.onInput = (ev) => {
|
|
28975
29451
|
const input = ev.target;
|
|
28976
29452
|
let newValue = input.value;
|
|
28977
|
-
if (this.type === 'number' && this.
|
|
29453
|
+
if (this.type === 'number' && this.blockdecimal) {
|
|
28978
29454
|
newValue = newValue.replace(/[.,]/g, ''); // Supprime les décimales si blockDecimal est activé
|
|
28979
29455
|
}
|
|
28980
29456
|
this.value = newValue;
|
|
@@ -28999,7 +29475,7 @@ class Input {
|
|
|
28999
29475
|
};
|
|
29000
29476
|
}
|
|
29001
29477
|
handleKeyDown(event) {
|
|
29002
|
-
if (this.type === 'number' && this.
|
|
29478
|
+
if (this.type === 'number' && this.blockdecimal) {
|
|
29003
29479
|
const forbiddenKeys = ['.', ',', 'e', '-', '¨', '^', '`', '+'];
|
|
29004
29480
|
if (forbiddenKeys.includes(event.key)) {
|
|
29005
29481
|
event.preventDefault();
|
|
@@ -29048,7 +29524,7 @@ class Input {
|
|
|
29048
29524
|
const hasValueClass = this.value !== '' && this.value !== null ? 'has-value' : '';
|
|
29049
29525
|
const lessLabelClass = this.label !== '' ? '' : 'less-label';
|
|
29050
29526
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
29051
|
-
return (hAsync(Host, { key: '
|
|
29527
|
+
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" })));
|
|
29052
29528
|
}
|
|
29053
29529
|
static get watchers() { return {
|
|
29054
29530
|
"debounce": ["debounceChanged"],
|
|
@@ -29062,7 +29538,7 @@ class Input {
|
|
|
29062
29538
|
"inputId": [1, "input-id"],
|
|
29063
29539
|
"autocapitalize": [1],
|
|
29064
29540
|
"autocomplete": [1],
|
|
29065
|
-
"
|
|
29541
|
+
"blockdecimal": [4],
|
|
29066
29542
|
"autocorrect": [1],
|
|
29067
29543
|
"autofocus": [4],
|
|
29068
29544
|
"disabled": [4],
|
|
@@ -29135,7 +29611,7 @@ class InputGroup {
|
|
|
29135
29611
|
? `size-${this.el.querySelector('road-input').sizes}`
|
|
29136
29612
|
: '';
|
|
29137
29613
|
const disabledClass = this.disabled ? 'is-disabled' : '';
|
|
29138
|
-
return (hAsync("div", { key: '
|
|
29614
|
+
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" }))));
|
|
29139
29615
|
}
|
|
29140
29616
|
get el() { return getElement(this); }
|
|
29141
29617
|
static get watchers() { return {
|
|
@@ -29215,13 +29691,13 @@ class Item {
|
|
|
29215
29691
|
target,
|
|
29216
29692
|
};
|
|
29217
29693
|
const showDetail = detail !== undefined && detail;
|
|
29218
|
-
return (hAsync(Host, { key: '
|
|
29694
|
+
return (hAsync(Host, { key: '6c3292595bb3c247a7510b25e116c88bf7ad570b', "aria-disabled": disabled ? 'true' : null, class: {
|
|
29219
29695
|
[`item-lines-${lines}`]: lines !== undefined,
|
|
29220
|
-
} }, hAsync(TagType, Object.assign({ key: '
|
|
29696
|
+
} }, hAsync(TagType, Object.assign({ key: 'da9648e566e8850b79824dda4105a8dd1e1171bf' }, attrs, { class: {
|
|
29221
29697
|
'item-native': true,
|
|
29222
29698
|
'item-active': this.active,
|
|
29223
29699
|
[`layout-${layout}`]: layout !== undefined,
|
|
29224
|
-
}, part: "native", disabled: disabled }), hAsync("slot", { key: '
|
|
29700
|
+
}, 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" })))));
|
|
29225
29701
|
}
|
|
29226
29702
|
get el() { return getElement(this); }
|
|
29227
29703
|
static get style() { return RoadItemStyle0; }
|
|
@@ -29262,7 +29738,7 @@ class Label {
|
|
|
29262
29738
|
registerInstance(this, hostRef);
|
|
29263
29739
|
}
|
|
29264
29740
|
render() {
|
|
29265
|
-
return (hAsync("slot", { key: '
|
|
29741
|
+
return (hAsync("slot", { key: '4ff181dd42688268a5d0f36eb6b91c14fe0b02e7' }));
|
|
29266
29742
|
}
|
|
29267
29743
|
static get style() { return RoadLabelStyle0; }
|
|
29268
29744
|
static get cmpMeta() { return {
|
|
@@ -29287,9 +29763,9 @@ class List {
|
|
|
29287
29763
|
}
|
|
29288
29764
|
render() {
|
|
29289
29765
|
const { lines } = this;
|
|
29290
|
-
return (hAsync(Host, { key: '
|
|
29766
|
+
return (hAsync(Host, { key: '0402cd96ac852a74cbe90301b76737cd28c337ea', class: {
|
|
29291
29767
|
[`list-lines-${lines}`]: lines !== undefined,
|
|
29292
|
-
} }, hAsync("slot", { key: '
|
|
29768
|
+
} }, hAsync("slot", { key: 'd6e3da6f0729b080cc290d0107f7fb6fd722a2ea' })));
|
|
29293
29769
|
}
|
|
29294
29770
|
static get style() { return RoadListStyle0; }
|
|
29295
29771
|
static get cmpMeta() { return {
|
|
@@ -29374,7 +29850,7 @@ class Modal {
|
|
|
29374
29850
|
const modalIsOpenClass = this.isOpen ? 'modal-open' : '';
|
|
29375
29851
|
const inverseHeaderClass = this.hasInverseHeader ? 'modal-header-inverse' : '';
|
|
29376
29852
|
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" })) : '';
|
|
29377
|
-
return (hAsync(Host, { key: '
|
|
29853
|
+
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' }))))));
|
|
29378
29854
|
}
|
|
29379
29855
|
get el() { return getElement(this); }
|
|
29380
29856
|
static get style() { return RoadModalStyle0; }
|
|
@@ -29425,7 +29901,7 @@ class Navbar {
|
|
|
29425
29901
|
this.selectedTabChanged();
|
|
29426
29902
|
}
|
|
29427
29903
|
render() {
|
|
29428
|
-
return (hAsync(Host, { key: '
|
|
29904
|
+
return (hAsync(Host, { key: 'd4fb4b56b2976d7d4b13098574c4e49e4c94dfe7', role: "menubar" }, hAsync("slot", { key: 'eefac0ab933be741ed4b4419f0d82029f22ec9ea' })));
|
|
29429
29905
|
}
|
|
29430
29906
|
static get watchers() { return {
|
|
29431
29907
|
"selectedTab": ["selectedTabChanged"]
|
|
@@ -29511,11 +29987,11 @@ class NavbarItem$1 {
|
|
|
29511
29987
|
rel,
|
|
29512
29988
|
target,
|
|
29513
29989
|
};
|
|
29514
|
-
return (hAsync(Host, { key: '
|
|
29990
|
+
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: {
|
|
29515
29991
|
'navbar-item': true,
|
|
29516
29992
|
'tab-selected': selected,
|
|
29517
29993
|
'tab-disabled': disabled,
|
|
29518
|
-
} }, hAsync("a", Object.assign({ key: '
|
|
29994
|
+
} }, 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' })))));
|
|
29519
29995
|
}
|
|
29520
29996
|
get el() { return getElement(this); }
|
|
29521
29997
|
static get watchers() { return {
|
|
@@ -29608,11 +30084,11 @@ class NavbarItem {
|
|
|
29608
30084
|
rel,
|
|
29609
30085
|
target,
|
|
29610
30086
|
};
|
|
29611
|
-
return (hAsync(Host, { key: '
|
|
30087
|
+
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: {
|
|
29612
30088
|
'navbar-item': true,
|
|
29613
30089
|
'tab-selected': selected,
|
|
29614
30090
|
'tab-disabled': disabled,
|
|
29615
|
-
} }, hAsync("a", Object.assign({ key: '
|
|
30091
|
+
} }, 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' })))));
|
|
29616
30092
|
}
|
|
29617
30093
|
get el() { return getElement(this); }
|
|
29618
30094
|
static get watchers() { return {
|
|
@@ -29671,7 +30147,7 @@ class NavbarV2 {
|
|
|
29671
30147
|
}
|
|
29672
30148
|
render() {
|
|
29673
30149
|
const compactClass = this.compact ? 'compact' : '';
|
|
29674
|
-
return (hAsync(Host, { key: '
|
|
30150
|
+
return (hAsync(Host, { key: '8aba7289fe9dc6947c2af2d078eaf40782cfe143', role: "menubar", class: `${compactClass}` }, hAsync("slot", { key: 'e103c9485e91f44c6a51b25c2ab0b9c8c0f33eb8' })));
|
|
29675
30151
|
}
|
|
29676
30152
|
static get watchers() { return {
|
|
29677
30153
|
"selectedTab": ["selectedTabChanged"]
|
|
@@ -29794,10 +30270,10 @@ class PlateNumber {
|
|
|
29794
30270
|
render() {
|
|
29795
30271
|
const value = this.getValue();
|
|
29796
30272
|
const motorbikeClass = this.motorbike ? 'motorbike-plate' : '';
|
|
29797
|
-
return (hAsync("road-input-group", { key: '
|
|
30273
|
+
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
|
|
29798
30274
|
.filter(item => item.country === this.country)[0].letter))), this.motorbike
|
|
29799
30275
|
? (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 }))
|
|
29800
|
-
: (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: '
|
|
30276
|
+
: (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" }))));
|
|
29801
30277
|
}
|
|
29802
30278
|
static get watchers() { return {
|
|
29803
30279
|
"value": ["valueChanged"]
|
|
@@ -29865,7 +30341,7 @@ class ProgressBar {
|
|
|
29865
30341
|
const fullwidth = this.fullwidth ? 'progress-element-info-full-width' : 'progress-element-info';
|
|
29866
30342
|
const light = this.light ? 'progress progress-light' : 'progress';
|
|
29867
30343
|
const animation = this.animation ? 'animation' : '';
|
|
29868
|
-
return (hAsync(Host, { key: '
|
|
30344
|
+
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))));
|
|
29869
30345
|
}
|
|
29870
30346
|
static get style() { return RoadProgressStyle0; }
|
|
29871
30347
|
static get cmpMeta() { return {
|
|
@@ -29906,7 +30382,7 @@ class ProgressIndicatorVertical {
|
|
|
29906
30382
|
registerInstance(this, hostRef);
|
|
29907
30383
|
}
|
|
29908
30384
|
render() {
|
|
29909
|
-
return (hAsync(Host, { key: '
|
|
30385
|
+
return (hAsync(Host, { key: 'd009f9f26860579e5199b5fd9f3053c2292d2e10' }, hAsync("nav", { key: 'ce6a61c3020a725681b1479405956d4e0c0deda4' }, hAsync("ul", { key: 'ed9c8bd411554de27d3518a93ead84f1ffeaab32' }, hAsync("li", { key: '55e64e7e8cb21d9e7b82d5cb7d96f58f0a1d41aa' }, hAsync("slot", { key: 'a999ef8043d0ca25192122641cf1c6b8f4c17829' }))))));
|
|
29910
30386
|
}
|
|
29911
30387
|
static get style() { return RoadProgressIndicatorVerticalStyle0; }
|
|
29912
30388
|
static get cmpMeta() { return {
|
|
@@ -29930,7 +30406,7 @@ class ProgressIndicatorVerticalItem {
|
|
|
29930
30406
|
registerInstance(this, hostRef);
|
|
29931
30407
|
}
|
|
29932
30408
|
render() {
|
|
29933
|
-
return (hAsync(Host, { key: '
|
|
30409
|
+
return (hAsync(Host, { key: '331aa668c231602fa09aa8879936b114ae9a9922' }, hAsync("slot", { key: 'bd2b07a4daa8ff2be253a6853e19cdfc7c41d848' })));
|
|
29934
30410
|
}
|
|
29935
30411
|
static get style() { return RoadProgressIndicatorVerticalItemStyle0; }
|
|
29936
30412
|
static get cmpMeta() { return {
|
|
@@ -29959,7 +30435,7 @@ class ProgressTracker {
|
|
|
29959
30435
|
registerInstance(this, hostRef);
|
|
29960
30436
|
}
|
|
29961
30437
|
render() {
|
|
29962
|
-
return (hAsync(Host, { key: '
|
|
30438
|
+
return (hAsync(Host, { key: '7a2b81a136bb9099ba62dd19ea1110ba2e6598f2' }, hAsync("nav", { key: '02a48ece3c03e44e6650608712af2ce97d54e4be' }, hAsync("ul", { key: '53660bcb52a07088d67f22d22e959152b978632f' }, hAsync("li", { key: 'cb819d8d7de4ac7fbf78168a11ce127bb6505bf7' }, hAsync("slot", { key: 'eb87fd118354173bb49d98e49815a772edb55941' }))))));
|
|
29963
30439
|
}
|
|
29964
30440
|
static get style() { return RoadProgressTrackerStyle0; }
|
|
29965
30441
|
static get cmpMeta() { return {
|
|
@@ -29991,7 +30467,7 @@ class ProgressTrackerItem {
|
|
|
29991
30467
|
registerInstance(this, hostRef);
|
|
29992
30468
|
}
|
|
29993
30469
|
render() {
|
|
29994
|
-
return (hAsync(Host, { key: '
|
|
30470
|
+
return (hAsync(Host, { key: 'ad62f3db13a041f534b2da9a11f0eb6f394a0412' }, hAsync("slot", { key: '879eb2757031161b20e708275ea2d009f1e83a7b' })));
|
|
29995
30471
|
}
|
|
29996
30472
|
static get style() { return RoadProgressTrackerItemStyle0; }
|
|
29997
30473
|
static get cmpMeta() { return {
|
|
@@ -30084,7 +30560,7 @@ class Radio {
|
|
|
30084
30560
|
const inverseClass = this.inverse && 'form-radio-inverse';
|
|
30085
30561
|
const isInvalidClass = this.error ? 'is-invalid' : '';
|
|
30086
30562
|
const inlineClass = this.inline ? 'form-radio-inline' : '';
|
|
30087
|
-
return (hAsync(Host, { key: '
|
|
30563
|
+
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))));
|
|
30088
30564
|
}
|
|
30089
30565
|
get el() { return getElement(this); }
|
|
30090
30566
|
static get style() { return RoadRadioStyle0; }
|
|
@@ -30178,7 +30654,7 @@ class RadioGroup {
|
|
|
30178
30654
|
render() {
|
|
30179
30655
|
const labelId = `${this.radioGroupId}-label`;
|
|
30180
30656
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
30181
|
-
return (hAsync(Host, { key: '
|
|
30657
|
+
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)));
|
|
30182
30658
|
}
|
|
30183
30659
|
get el() { return getElement(this); }
|
|
30184
30660
|
static get watchers() { return {
|
|
@@ -30308,14 +30784,14 @@ class Range {
|
|
|
30308
30784
|
render() {
|
|
30309
30785
|
const value = this.getValue();
|
|
30310
30786
|
const datalist = this.showLabels !== undefined ? `tickmarks` : "";
|
|
30311
|
-
return (hAsync(Host, { key: '
|
|
30787
|
+
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: {
|
|
30312
30788
|
"--min": this.min,
|
|
30313
30789
|
"--max": this.max,
|
|
30314
30790
|
"--value": value,
|
|
30315
30791
|
"--background-color": this.disabled
|
|
30316
30792
|
? "var(--road-surface-disabled)"
|
|
30317
30793
|
: "initial",
|
|
30318
|
-
} }, this.showValue && hAsync("output", { key: '
|
|
30794
|
+
} }, 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" })))));
|
|
30319
30795
|
}
|
|
30320
30796
|
get el() { return getElement(this); }
|
|
30321
30797
|
static get watchers() { return {
|
|
@@ -30384,7 +30860,7 @@ class Rating {
|
|
|
30384
30860
|
const sizeRatingStarsClass = this.size !== undefined ? `rating-stars rating-stars--${this.size}` : 'rating-stars';
|
|
30385
30861
|
const sizeRatingNumberClass = this.size !== undefined ? `rating-number rating-number--${this.size}` : 'rating-number';
|
|
30386
30862
|
const readOnly = this.readonly == true ? `readonly` : '';
|
|
30387
|
-
return (hAsync(Host, { key: '
|
|
30863
|
+
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}`, ")")));
|
|
30388
30864
|
}
|
|
30389
30865
|
static get style() { return RoadRatingStyle0; }
|
|
30390
30866
|
static get cmpMeta() { return {
|
|
@@ -30503,7 +30979,7 @@ class RoadAreaCode {
|
|
|
30503
30979
|
const labelId = this.selectId + '-label';
|
|
30504
30980
|
const valueId = this.selectId + '-value';
|
|
30505
30981
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
30506
|
-
return (hAsync(Host, { key: '
|
|
30982
|
+
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)));
|
|
30507
30983
|
}
|
|
30508
30984
|
static get watchers() { return {
|
|
30509
30985
|
"value": ["valueChanged"]
|
|
@@ -31928,7 +32404,7 @@ class RoadPhoneNumberInput {
|
|
|
31928
32404
|
const valueId = selectId + '-value';
|
|
31929
32405
|
const isInvalidClass = this.errorMessage.length ? 'is-invalid' : '';
|
|
31930
32406
|
const isErrorClass = this.errorMessage.length ? 'is-error' : '';
|
|
31931
|
-
return (hAsync(Host, { key: '
|
|
32407
|
+
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 }))));
|
|
31932
32408
|
}
|
|
31933
32409
|
get el() { return getElement(this); }
|
|
31934
32410
|
static get watchers() { return {
|
|
@@ -31971,7 +32447,7 @@ class Row {
|
|
|
31971
32447
|
registerInstance(this, hostRef);
|
|
31972
32448
|
}
|
|
31973
32449
|
render() {
|
|
31974
|
-
return (hAsync(Host, { key: '
|
|
32450
|
+
return (hAsync(Host, { key: 'd7f034113e5197a87874abed4d7b3abc1d695c02' }, hAsync("slot", { key: '8d113c8691cc6d060de05da806a177cf7f9d73c8' })));
|
|
31975
32451
|
}
|
|
31976
32452
|
static get style() { return RoadRowStyle0; }
|
|
31977
32453
|
static get cmpMeta() { return {
|
|
@@ -32043,10 +32519,10 @@ class SegmentedButton {
|
|
|
32043
32519
|
render() {
|
|
32044
32520
|
const { tabIndex, selected, tab } = this;
|
|
32045
32521
|
const sizeClass = this.size !== undefined ? `btn-${this.size}` : '';
|
|
32046
|
-
return (hAsync(Host, { key: '
|
|
32522
|
+
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: {
|
|
32047
32523
|
'tab-selected': selected,
|
|
32048
32524
|
[`${sizeClass}`]: true,
|
|
32049
|
-
} }, hAsync("span", { key: '
|
|
32525
|
+
} }, hAsync("span", { key: '73ecaa9b970846deb93859c8eaec653a035cc1e2', tabIndex: -1, class: "button-native", part: "native", "aria-hidden": "true" }, hAsync("slot", { key: '6f676459b5689e80e21fc2cab3d7c68241e5f1d6' }))));
|
|
32050
32526
|
}
|
|
32051
32527
|
get el() { return getElement(this); }
|
|
32052
32528
|
static get style() { return RoadSegmentedButtonStyle0; }
|
|
@@ -32167,7 +32643,7 @@ class Select {
|
|
|
32167
32643
|
const labelId = this.selectId + '-label';
|
|
32168
32644
|
const hasValueClass = this.value && this.value !== '' ? 'has-value' : '';
|
|
32169
32645
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
32170
|
-
return (hAsync(Host, { key: '
|
|
32646
|
+
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)));
|
|
32171
32647
|
}
|
|
32172
32648
|
static get watchers() { return {
|
|
32173
32649
|
"value": ["valueChanged"]
|
|
@@ -34088,8 +34564,8 @@ class SelectFilter {
|
|
|
34088
34564
|
const options = this.filteredOptions;
|
|
34089
34565
|
const isActive = this.isActive ? 'true' : 'false';
|
|
34090
34566
|
const notActive = this.isActive ? '' : 'not-active';
|
|
34091
|
-
return (hAsync(Host, { key: '
|
|
34092
|
-
hAsync("ul", { key: '
|
|
34567
|
+
return (hAsync(Host, { key: 'd3126ac1fdf1a0c92fa8b5d3208e49980160bb9d', "is-active": isActive }, hAsync("slot", { key: '92ca140b3ce21efc3e7bf352a47656e596e47a25' }), this.isOpen &&
|
|
34568
|
+
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 }))))));
|
|
34093
34569
|
}
|
|
34094
34570
|
get el() { return getElement(this); }
|
|
34095
34571
|
static get style() { return RoadSelectFilterStyle0; }
|
|
@@ -34119,7 +34595,7 @@ class Skeleton {
|
|
|
34119
34595
|
registerInstance(this, hostRef);
|
|
34120
34596
|
}
|
|
34121
34597
|
render() {
|
|
34122
|
-
return (hAsync("span", { key: '
|
|
34598
|
+
return (hAsync("span", { key: '23360c1379fea939e6bd1664d59e8e1343a6b419' }, "\u00A0"));
|
|
34123
34599
|
}
|
|
34124
34600
|
static get style() { return RoadSkeletonStyle0; }
|
|
34125
34601
|
static get cmpMeta() { return {
|
|
@@ -34150,7 +34626,7 @@ class Spinner {
|
|
|
34150
34626
|
render() {
|
|
34151
34627
|
const sizeClass = this.size !== undefined ? `spinner spinner--${this.size}` : 'spinner';
|
|
34152
34628
|
const colorClass = this.size !== undefined ? `spinner-circle spinner-circle--${this.color}` : 'spinner-circle';
|
|
34153
|
-
return (hAsync("svg", { key: '
|
|
34629
|
+
return (hAsync("svg", { key: '15916684cd29bc097b95e9702558ba8f12e111ff', class: `${sizeClass}`, viewBox: "25 25 50 50" }, hAsync("circle", { key: '1579334e75979ae2fff79ae4452a7c2493ad2404', class: `${colorClass}`, cx: "50", cy: "50", r: "20" })));
|
|
34154
34630
|
}
|
|
34155
34631
|
static get style() { return RoadSpinnerStyle0; }
|
|
34156
34632
|
static get cmpMeta() { return {
|
|
@@ -34200,7 +34676,7 @@ class Stepper {
|
|
|
34200
34676
|
const urlStep1 = this.urlStep1 !== undefined ? `${this.urlStep1}` : '#';
|
|
34201
34677
|
const urlStep2 = this.urlStep2 !== undefined ? `${this.urlStep2}` : '#';
|
|
34202
34678
|
const urlStep3 = this.urlStep3 !== undefined ? `${this.urlStep3}` : '#';
|
|
34203
|
-
return (hAsync(Host, { key: '
|
|
34679
|
+
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" }))))))));
|
|
34204
34680
|
}
|
|
34205
34681
|
static get style() { return RoadProgressIndicatorHorizontalStyle0; }
|
|
34206
34682
|
static get cmpMeta() { return {
|
|
@@ -34302,11 +34778,11 @@ class Switch {
|
|
|
34302
34778
|
}
|
|
34303
34779
|
render() {
|
|
34304
34780
|
const labelId = this.switchId + '-label';
|
|
34305
|
-
const textLabel = hAsync("label", { key: '
|
|
34781
|
+
const textLabel = hAsync("label", { key: '9cbf8cf142884a9883024d741239d65ecef588da', class: "form-switch-label", id: labelId, htmlFor: this.switchId }, this.label);
|
|
34306
34782
|
const colorClass = this.color !== undefined ? 'form-switch-' + this.color : '';
|
|
34307
34783
|
const isSpacedClass = this.isSpaced && 'form-switch-spaced';
|
|
34308
34784
|
const rightSwitchClass = this.hasLeftLabel ? 'form-switch-right' : '';
|
|
34309
|
-
return (hAsync(Host, { key: '
|
|
34785
|
+
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)));
|
|
34310
34786
|
}
|
|
34311
34787
|
static get watchers() { return {
|
|
34312
34788
|
"checked": ["checkedChanged"]
|
|
@@ -34361,9 +34837,9 @@ class Tab {
|
|
|
34361
34837
|
}
|
|
34362
34838
|
render() {
|
|
34363
34839
|
const { tab, active } = this;
|
|
34364
|
-
return (hAsync(Host, { key: '
|
|
34840
|
+
return (hAsync(Host, { key: '08cad173a66b655a36d7adf049c28ca24e60fced', role: "tabpanel", "aria-hidden": !active ? 'true' : null, "aria-labelledby": `tab-button-${tab}`, class: {
|
|
34365
34841
|
'tab-hidden': !active,
|
|
34366
|
-
} }, hAsync("slot", { key: '
|
|
34842
|
+
} }, hAsync("slot", { key: 'be64342b87d15293de2c9909d58c874d2f7b9dcf' })));
|
|
34367
34843
|
}
|
|
34368
34844
|
get el() { return getElement(this); }
|
|
34369
34845
|
static get style() { return RoadTabStyle0; }
|
|
@@ -34423,11 +34899,11 @@ class TabBar {
|
|
|
34423
34899
|
}
|
|
34424
34900
|
render() {
|
|
34425
34901
|
const { expand, center, secondary } = this;
|
|
34426
|
-
return (hAsync(Host, { key: '
|
|
34902
|
+
return (hAsync(Host, { key: 'a498dbdd9f96f8eb18f2786a4300f86a90d5f704', role: "tablist", class: {
|
|
34427
34903
|
'tab-expand': expand,
|
|
34428
34904
|
'tab-center': center,
|
|
34429
34905
|
'tab-secondary': secondary,
|
|
34430
|
-
} }, hAsync("slot", { key: '
|
|
34906
|
+
} }, hAsync("slot", { key: '666d8e010a3f1f487f82d996f667720332c73567' })));
|
|
34431
34907
|
}
|
|
34432
34908
|
get el() { return getElement(this); }
|
|
34433
34909
|
static get watchers() { return {
|
|
@@ -34527,7 +35003,7 @@ class TabButton {
|
|
|
34527
35003
|
rel,
|
|
34528
35004
|
target,
|
|
34529
35005
|
};
|
|
34530
|
-
return (hAsync(Host, { key: '
|
|
35006
|
+
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: {
|
|
34531
35007
|
'tab-selected': selected,
|
|
34532
35008
|
'tab-has-label': hasLabel,
|
|
34533
35009
|
'tab-has-icon': hasIcon,
|
|
@@ -34535,7 +35011,7 @@ class TabButton {
|
|
|
34535
35011
|
'tab-has-icon-only': hasIcon && !hasLabel,
|
|
34536
35012
|
[`tab-layout-${layout}`]: true,
|
|
34537
35013
|
'tab-disabled': disabled, // Classe CSS pour les styles désactivés
|
|
34538
|
-
} }, hAsync("a", Object.assign({ key: '
|
|
35014
|
+
} }, 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' })))));
|
|
34539
35015
|
}
|
|
34540
35016
|
get el() { return getElement(this); }
|
|
34541
35017
|
static get style() { return RoadTabButtonStyle0; }
|
|
@@ -34569,7 +35045,7 @@ class Table {
|
|
|
34569
35045
|
registerInstance(this, hostRef);
|
|
34570
35046
|
}
|
|
34571
35047
|
render() {
|
|
34572
|
-
return (hAsync("slot", { key: '
|
|
35048
|
+
return (hAsync("slot", { key: 'f036d33368eaf205cfbbafcdcc03b3e0ecf5dc3c' }));
|
|
34573
35049
|
}
|
|
34574
35050
|
static get style() { return RoadTableStyle0; }
|
|
34575
35051
|
static get cmpMeta() { return {
|
|
@@ -34677,7 +35153,7 @@ class Tabs$1 {
|
|
|
34677
35153
|
return Array.from(this.el.querySelectorAll('road-tab'));
|
|
34678
35154
|
}
|
|
34679
35155
|
render() {
|
|
34680
|
-
return (hAsync(Host, { key: '
|
|
35156
|
+
return (hAsync(Host, { key: 'c7a62a2fd860a3254e8aeb4304b6c41b13b11d43', onRoadSegmentedButtonClick: this.onTabClicked }, hAsync("slot", { key: '62659d12582b3c6cd231656f0645610bc0687134', name: "top" }), hAsync("slot", { key: 'ce73ed60aade6a96f1a3d712b91a4aa26a6e8df2' })));
|
|
34681
35157
|
}
|
|
34682
35158
|
get el() { return getElement(this); }
|
|
34683
35159
|
static get style() { return RoadSegmentedButtonsStyle0; }
|
|
@@ -34813,7 +35289,7 @@ class Tabs {
|
|
|
34813
35289
|
return Array.from(this.el.querySelectorAll('road-tab'));
|
|
34814
35290
|
}
|
|
34815
35291
|
render() {
|
|
34816
|
-
return (hAsync(Host, { key: '
|
|
35292
|
+
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' }))));
|
|
34817
35293
|
}
|
|
34818
35294
|
get el() { return getElement(this); }
|
|
34819
35295
|
static get style() { return RoadTabsStyle0; }
|
|
@@ -34861,7 +35337,7 @@ class Tag {
|
|
|
34861
35337
|
}
|
|
34862
35338
|
render() {
|
|
34863
35339
|
const contrastClass = this.contrast ? `tag-${this.color} tag-${this.color}-contrast` : `tag-${this.color}`;
|
|
34864
|
-
return (hAsync(Host, { key: '
|
|
35340
|
+
return (hAsync(Host, { key: '473f75d03caf6fd1af778973cf668594869f840d', class: `${contrastClass}` }, hAsync("slot", { key: '978855ab3df5f500d39ec62ce6990b5e9ee0460e' })));
|
|
34865
35341
|
}
|
|
34866
35342
|
static get style() { return RoadTagStyle0; }
|
|
34867
35343
|
static get cmpMeta() { return {
|
|
@@ -34893,7 +35369,7 @@ class Text {
|
|
|
34893
35369
|
}
|
|
34894
35370
|
render() {
|
|
34895
35371
|
const colorClass = this.color !== undefined ? `text-${this.color}` : '';
|
|
34896
|
-
return (hAsync(Host, { key: '
|
|
35372
|
+
return (hAsync(Host, { key: '055eff6468f112052379b6744fa6711ca3227942', class: `${colorClass}` }, hAsync("slot", { key: '962b901456fa3a58f0fcd8514ba64e306f5ce9ec' })));
|
|
34897
35373
|
}
|
|
34898
35374
|
static get style() { return RoadTextStyle0; }
|
|
34899
35375
|
static get cmpMeta() { return {
|
|
@@ -35003,7 +35479,7 @@ class Textarea {
|
|
|
35003
35479
|
const hasValueClass = this.value !== '' ? 'has-value' : '';
|
|
35004
35480
|
const noResizeClass = this.resize == false ? 'no-resize' : '';
|
|
35005
35481
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
35006
|
-
return (hAsync(Host, { key: '
|
|
35482
|
+
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)));
|
|
35007
35483
|
}
|
|
35008
35484
|
static get watchers() { return {
|
|
35009
35485
|
"value": ["valueChanged"]
|
|
@@ -35134,7 +35610,7 @@ class Toast {
|
|
|
35134
35610
|
if (this.color == 'danger') {
|
|
35135
35611
|
this.timeout = 0;
|
|
35136
35612
|
}
|
|
35137
|
-
return (hAsync(Host, { key: '
|
|
35613
|
+
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" }))));
|
|
35138
35614
|
}
|
|
35139
35615
|
static get watchers() { return {
|
|
35140
35616
|
"isOpen": ["isOpenChanged"]
|
|
@@ -35174,7 +35650,7 @@ class Toolbar {
|
|
|
35174
35650
|
}
|
|
35175
35651
|
render() {
|
|
35176
35652
|
const colorClass = this.color !== undefined ? `toolbar-${this.color}` : '';
|
|
35177
|
-
return (hAsync(Host, { key: '
|
|
35653
|
+
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" }))));
|
|
35178
35654
|
}
|
|
35179
35655
|
static get style() { return RoadToolbarStyle0; }
|
|
35180
35656
|
static get cmpMeta() { return {
|
|
@@ -35200,7 +35676,7 @@ class ToolbarAppName {
|
|
|
35200
35676
|
registerInstance(this, hostRef);
|
|
35201
35677
|
}
|
|
35202
35678
|
render() {
|
|
35203
|
-
return (hAsync("div", { key: '
|
|
35679
|
+
return (hAsync("div", { key: '97f764499f0d16456fa2d98e19815d260d736029', class: "toolbar-title-page" }, hAsync("slot", { key: 'b773809ae7bf4f8fa4be5bad8645c9a6077cc3f4' })));
|
|
35204
35680
|
}
|
|
35205
35681
|
static get style() { return RoadToolbarTitlePageStyle0; }
|
|
35206
35682
|
static get cmpMeta() { return {
|
|
@@ -35224,7 +35700,7 @@ class ToolbarTitle {
|
|
|
35224
35700
|
registerInstance(this, hostRef);
|
|
35225
35701
|
}
|
|
35226
35702
|
render() {
|
|
35227
|
-
return (hAsync("div", { key: '
|
|
35703
|
+
return (hAsync("div", { key: 'c428fb2d1a55e5fa29f51e3fcaa78920fefb9762', class: "toolbar-title" }, hAsync("slot", { key: '7e9d258f597ac5a6cb0aa2ca709e967f61e93995' })));
|
|
35228
35704
|
}
|
|
35229
35705
|
static get style() { return RoadToolbarTitleStyle0; }
|
|
35230
35706
|
static get cmpMeta() { return {
|
|
@@ -35253,7 +35729,7 @@ class ToolbarV2 {
|
|
|
35253
35729
|
registerInstance(this, hostRef);
|
|
35254
35730
|
}
|
|
35255
35731
|
render() {
|
|
35256
|
-
return (hAsync(Host, { key: '
|
|
35732
|
+
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" })))));
|
|
35257
35733
|
}
|
|
35258
35734
|
static get style() { return RoadToolbarV2Style0; }
|
|
35259
35735
|
static get cmpMeta() { return {
|
|
@@ -35366,12 +35842,12 @@ class Tooltip {
|
|
|
35366
35842
|
return triggers.includes(triggerType);
|
|
35367
35843
|
}
|
|
35368
35844
|
render() {
|
|
35369
|
-
return (hAsync(Host, { key: '
|
|
35845
|
+
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
|
|
35370
35846
|
,
|
|
35371
|
-
"data-tooltip-position": this.position }, hAsync("slot", { key: '
|
|
35847
|
+
"data-tooltip-position": this.position }, hAsync("slot", { key: '2a709fc59d3e0b13896e2b2b14f10500399eeb00', "aria-describedby": this.tooltipId }), hAsync("div", { key: '55d24721aeb703ba3717954c2082a3eb1bf2aca3', part: "tooltip", id: this.tooltipId, class: {
|
|
35372
35848
|
tooltip: true,
|
|
35373
35849
|
'tooltip-open': this.isOpen,
|
|
35374
|
-
}, role: "tooltip", "aria-hidden": !this.isOpen ? 'true' : 'false' }, this.content, hAsync("slot", { key: '
|
|
35850
|
+
}, role: "tooltip", "aria-hidden": !this.isOpen ? 'true' : 'false' }, this.content, hAsync("slot", { key: '094531297abb7a2f65f47f5bf3c1c7e63b753855', name: "tooltip-content" }))));
|
|
35375
35851
|
}
|
|
35376
35852
|
get el() { return getElement(this); }
|
|
35377
35853
|
static get style() { return RoadTooltipStyle0; }
|
|
@@ -35471,11 +35947,11 @@ class toggle {
|
|
|
35471
35947
|
}
|
|
35472
35948
|
render() {
|
|
35473
35949
|
const labelId = this.toggleId + '-label';
|
|
35474
|
-
const textLabel = hAsync("label", { key: '
|
|
35950
|
+
const textLabel = hAsync("label", { key: 'a6b573f6cf34cc4818943f49652330259bc9a36f', class: "form-toggle-label", id: labelId, htmlFor: this.toggleId }, this.label);
|
|
35475
35951
|
const isSpacedClass = this.isSpaced && 'form-toggle-spaced';
|
|
35476
35952
|
const righttoggleClass = this.hasLeftLabel ? 'form-toggle-right' : '';
|
|
35477
35953
|
const disabledClass = this.disabled ? 'disabled' : '';
|
|
35478
|
-
return (hAsync(Host, { key: '
|
|
35954
|
+
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)));
|
|
35479
35955
|
}
|
|
35480
35956
|
static get watchers() { return {
|
|
35481
35957
|
"checked": ["checkedChanged"]
|
|
@@ -35916,19 +36392,9 @@ exports.hydrateApp = hydrateApp;
|
|
|
35916
36392
|
// src/app-data/index.ts
|
|
35917
36393
|
var BUILD = {
|
|
35918
36394
|
allRenderFn: false,
|
|
35919
|
-
cmpDidLoad: true,
|
|
35920
|
-
cmpDidUnload: false,
|
|
35921
|
-
cmpDidUpdate: true,
|
|
35922
|
-
cmpDidRender: true,
|
|
35923
|
-
cmpWillLoad: true,
|
|
35924
|
-
cmpWillUpdate: true,
|
|
35925
|
-
cmpWillRender: true,
|
|
35926
|
-
connectedCallback: true,
|
|
35927
|
-
disconnectedCallback: true,
|
|
35928
36395
|
element: true,
|
|
35929
36396
|
event: true,
|
|
35930
36397
|
hasRenderFn: true,
|
|
35931
|
-
lifecycle: true,
|
|
35932
36398
|
hostListener: true,
|
|
35933
36399
|
hostListenerTargetWindow: true,
|
|
35934
36400
|
hostListenerTargetDocument: true,
|
|
@@ -35993,7 +36459,6 @@ var BUILD = {
|
|
|
35993
36459
|
propNumber: true,
|
|
35994
36460
|
propString: true,
|
|
35995
36461
|
constructableCSS: true,
|
|
35996
|
-
cmpShouldUpdate: true,
|
|
35997
36462
|
devTools: false,
|
|
35998
36463
|
shadowDelegatesFocus: true,
|
|
35999
36464
|
initializeNextTick: false,
|
|
@@ -36011,7 +36476,7 @@ var NAMESPACE = (
|
|
|
36011
36476
|
);
|
|
36012
36477
|
|
|
36013
36478
|
/*
|
|
36014
|
-
Stencil Hydrate Runner v4.
|
|
36479
|
+
Stencil Hydrate Runner v4.27.0 | MIT Licensed | https://stenciljs.com
|
|
36015
36480
|
*/
|
|
36016
36481
|
var __defProp = Object.defineProperty;
|
|
36017
36482
|
var __export = (target, all) => {
|
|
@@ -37459,6 +37924,7 @@ var EntityDecoder = class {
|
|
|
37459
37924
|
case EntityDecoderState.NamedEntity: {
|
|
37460
37925
|
return this.result !== 0 && (this.decodeMode !== DecodingMode.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
37461
37926
|
}
|
|
37927
|
+
// Otherwise, emit a numeric entity if we have one.
|
|
37462
37928
|
case EntityDecoderState.NumericDecimal: {
|
|
37463
37929
|
return this.emitNumericEntity(0, 2);
|
|
37464
37930
|
}
|
|
@@ -44506,6 +44972,7 @@ function endTagInSelectInTable(p, token) {
|
|
|
44506
44972
|
}
|
|
44507
44973
|
function startTagInTemplate(p, token) {
|
|
44508
44974
|
switch (token.tagID) {
|
|
44975
|
+
// First, handle tags that can start without a mode change
|
|
44509
44976
|
case TAG_ID.BASE:
|
|
44510
44977
|
case TAG_ID.BASEFONT:
|
|
44511
44978
|
case TAG_ID.BGSOUND:
|
|
@@ -44519,6 +44986,7 @@ function startTagInTemplate(p, token) {
|
|
|
44519
44986
|
startTagInHead(p, token);
|
|
44520
44987
|
break;
|
|
44521
44988
|
}
|
|
44989
|
+
// Re-process the token in the appropriate mode
|
|
44522
44990
|
case TAG_ID.CAPTION:
|
|
44523
44991
|
case TAG_ID.COLGROUP:
|
|
44524
44992
|
case TAG_ID.TBODY:
|
|
@@ -46428,7 +46896,7 @@ function normalizeSerializationOptions(opts = {}) {
|
|
|
46428
46896
|
removeAttributeQuotes: typeof opts.removeAttributeQuotes !== "boolean" ? false : opts.removeAttributeQuotes,
|
|
46429
46897
|
removeBooleanAttributeQuotes: typeof opts.removeBooleanAttributeQuotes !== "boolean" ? false : opts.removeBooleanAttributeQuotes,
|
|
46430
46898
|
removeHtmlComments: typeof opts.removeHtmlComments !== "boolean" ? false : opts.removeHtmlComments,
|
|
46431
|
-
serializeShadowRoot: typeof opts.serializeShadowRoot
|
|
46899
|
+
serializeShadowRoot: typeof opts.serializeShadowRoot === "undefined" ? "declarative-shadow-dom" : opts.serializeShadowRoot,
|
|
46432
46900
|
fullDocument: typeof opts.fullDocument !== "boolean" ? true : opts.fullDocument
|
|
46433
46901
|
};
|
|
46434
46902
|
}
|
|
@@ -46557,7 +47025,7 @@ style="${cssText}">`;
|
|
|
46557
47025
|
}
|
|
46558
47026
|
if (EMPTY_ELEMENTS.has(tagName) === false) {
|
|
46559
47027
|
const shadowRoot = node.shadowRoot;
|
|
46560
|
-
if (shadowRoot != null && opts.serializeShadowRoot) {
|
|
47028
|
+
if (shadowRoot != null && opts.serializeShadowRoot !== false) {
|
|
46561
47029
|
output.indent = output.indent + ((_c = opts.indentSpaces) != null ? _c : 0);
|
|
46562
47030
|
yield* streamToHtml(shadowRoot, opts, output);
|
|
46563
47031
|
output.indent = output.indent - ((_d = opts.indentSpaces) != null ? _d : 0);
|
|
@@ -50188,9 +50656,6 @@ var Build = {
|
|
|
50188
50656
|
isServer: false,
|
|
50189
50657
|
isTesting: BUILD.isTesting ? true : false
|
|
50190
50658
|
};
|
|
50191
|
-
|
|
50192
|
-
// src/client/client-host-ref.ts
|
|
50193
|
-
var hostRefs = BUILD.hotModuleReplacement ? window.__STENCIL_HOSTREFS__ || (window.__STENCIL_HOSTREFS__ = /* @__PURE__ */ new WeakMap()) : /* @__PURE__ */ new WeakMap();
|
|
50194
50659
|
var STENCIL_DEV_MODE = BUILD.isTesting ? ["STENCIL:"] : [
|
|
50195
50660
|
"%cstencil",
|
|
50196
50661
|
"color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"
|
|
@@ -50299,6 +50764,31 @@ var unwrapErr = (result) => {
|
|
|
50299
50764
|
}
|
|
50300
50765
|
};
|
|
50301
50766
|
|
|
50767
|
+
// src/utils/shadow-css.ts
|
|
50768
|
+
/**
|
|
50769
|
+
* @license
|
|
50770
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
50771
|
+
*
|
|
50772
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
50773
|
+
* found in the LICENSE file at https://angular.io/license
|
|
50774
|
+
*
|
|
50775
|
+
* This file is a port of shadowCSS from `webcomponents.js` to TypeScript.
|
|
50776
|
+
* https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
|
|
50777
|
+
* https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
|
|
50778
|
+
*/
|
|
50779
|
+
var _polyfillHost = "-shadowcsshost";
|
|
50780
|
+
var _polyfillSlotted = "-shadowcssslotted";
|
|
50781
|
+
var _polyfillHostContext = "-shadowcsscontext";
|
|
50782
|
+
var _parenSuffix = ")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";
|
|
50783
|
+
var _cssColonHostRe = new RegExp("(" + _polyfillHost + _parenSuffix, "gim");
|
|
50784
|
+
var _cssColonHostContextRe = new RegExp("(" + _polyfillHostContext + _parenSuffix, "gim");
|
|
50785
|
+
var _cssColonSlottedRe = new RegExp("(" + _polyfillSlotted + _parenSuffix, "gim");
|
|
50786
|
+
var _polyfillHostNoCombinator = _polyfillHost + "-no-combinator";
|
|
50787
|
+
var createSupportsRuleRe = (selector) => new RegExp(`((?<!(^@supports(.*)))|(?<={.*))(${selector}\\b)`, "gim");
|
|
50788
|
+
var _colonSlottedRe = createSupportsRuleRe("::slotted");
|
|
50789
|
+
var _colonHostRe = createSupportsRuleRe(":host");
|
|
50790
|
+
var _colonHostContextRe = createSupportsRuleRe(":host-context");
|
|
50791
|
+
|
|
50302
50792
|
// src/runtime/mode.ts
|
|
50303
50793
|
var setMode = (handler) => modeResolutionChain.push(handler);
|
|
50304
50794
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
@@ -51487,7 +51977,7 @@ function renderToString(html, options, asStream) {
|
|
|
51487
51977
|
const opts = normalizeHydrateOptions(options);
|
|
51488
51978
|
opts.serializeToHtml = true;
|
|
51489
51979
|
opts.fullDocument = typeof opts.fullDocument === "boolean" ? opts.fullDocument : true;
|
|
51490
|
-
opts.serializeShadowRoot = typeof opts.serializeShadowRoot === "
|
|
51980
|
+
opts.serializeShadowRoot = typeof opts.serializeShadowRoot === "undefined" ? "declarative-shadow-dom" : opts.serializeShadowRoot;
|
|
51491
51981
|
opts.constrainTimeouts = false;
|
|
51492
51982
|
return hydrateDocument(html, opts, asStream);
|
|
51493
51983
|
}
|