@roadtrip/components 3.32.1 → 3.32.2
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-2a80bffb.js} +58 -22
- package/dist/cjs/index-2a80bffb.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 +6 -6
- 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-25752683.js → utils-1301c43c.js} +2 -2
- package/dist/cjs/{utils-25752683.js.map → utils-1301c43c.js.map} +1 -1
- package/dist/cjs/{utils-11a0a9e6.js → utils-c951aa69.js} +2 -2
- package/dist/cjs/{utils-11a0a9e6.js.map → utils-c951aa69.js.map} +1 -1
- package/dist/cjs/{utils-e0016ab3.js → utils-f0685862.js} +2 -2
- package/dist/cjs/{utils-e0016ab3.js.map → utils-f0685862.js.map} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/accordion/accordion.stories.js +1 -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/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.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/icon/icon.stories.js +1 -1
- package/dist/collection/components/illustration/illustration.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/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/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-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/spinner/spinner.stories.js +1 -1
- package/dist/collection/components/tag/tag.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/esm/{index-f3c5b68e.js → index-4c1f5d1f.js} +58 -22
- package/dist/esm/index-4c1f5d1f.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 +6 -6
- 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-78ae85c5.js} +2 -2
- package/dist/esm/{utils-65e8eef3.js.map → utils-78ae85c5.js.map} +1 -1
- package/dist/esm/{utils-d3cec86c.js → utils-964ae527.js} +2 -2
- package/dist/esm/{utils-d3cec86c.js.map → utils-964ae527.js.map} +1 -1
- package/dist/esm/{utils-8148deff.js → utils-c6a028c5.js} +2 -2
- package/dist/esm/{utils-8148deff.js.map → utils-c6a028c5.js.map} +1 -1
- package/dist/html.html-data.json +1 -1
- package/dist/roadtrip/index.esm.js +1 -1
- package/dist/roadtrip/{p-dac4736d.entry.js → p-01618daf.entry.js} +2 -2
- package/dist/roadtrip/{p-23142511.entry.js → p-07633780.entry.js} +2 -2
- package/dist/roadtrip/p-0b68e487.entry.js +2 -0
- package/dist/roadtrip/{p-f9c66715.entry.js.map → p-0b68e487.entry.js.map} +1 -1
- package/dist/roadtrip/p-0e2f57a3.js +2 -0
- package/dist/roadtrip/{p-698abbdb.entry.js → p-10927dd4.entry.js} +2 -2
- package/dist/roadtrip/{p-c70a6f75.entry.js → p-111df76e.entry.js} +2 -2
- package/dist/roadtrip/{p-6e822465.entry.js → p-1269f911.entry.js} +2 -2
- package/dist/roadtrip/{p-200d5c89.entry.js → p-1724566a.entry.js} +2 -2
- package/dist/roadtrip/{p-4de6e537.entry.js → p-1aaaf2b1.entry.js} +2 -2
- package/dist/roadtrip/{p-0801cc18.entry.js → p-1bc42c19.entry.js} +2 -2
- package/dist/roadtrip/{p-6709e3f4.entry.js → p-20459c08.entry.js} +2 -2
- package/dist/roadtrip/{p-52f26ae9.entry.js → p-264ec254.entry.js} +2 -2
- package/dist/roadtrip/p-274069da.entry.js +2 -0
- package/dist/roadtrip/{p-37135c95.entry.js → p-2b9ea6a5.entry.js} +2 -2
- package/dist/roadtrip/{p-6fc769fc.entry.js → p-2dd0333d.entry.js} +2 -2
- package/dist/roadtrip/{p-f155064c.entry.js → p-31aa3829.entry.js} +2 -2
- package/dist/roadtrip/{p-3c567881.entry.js → p-340c1fd7.entry.js} +2 -2
- package/dist/roadtrip/{p-9e7807f4.entry.js → p-3471dbc6.entry.js} +2 -2
- package/dist/roadtrip/{p-3823247f.entry.js → p-399a7d0b.entry.js} +2 -2
- package/dist/roadtrip/{p-3750f911.entry.js → p-3ce2e672.entry.js} +2 -2
- package/dist/roadtrip/{p-79acc6ae.entry.js → p-4bf63a98.entry.js} +2 -2
- package/dist/roadtrip/{p-c5b01dda.entry.js → p-4ecf466e.entry.js} +2 -2
- package/dist/roadtrip/{p-63582e9c.entry.js → p-5880437b.entry.js} +2 -2
- package/dist/roadtrip/{p-d6867247.entry.js → p-5d1b98e6.entry.js} +2 -2
- package/dist/roadtrip/{p-30d74a80.entry.js → p-5d41e85f.entry.js} +2 -2
- package/dist/roadtrip/{p-4688d888.entry.js → p-5ed1f4c0.entry.js} +2 -2
- package/dist/roadtrip/{p-44b6f632.entry.js → p-5f1eebe1.entry.js} +2 -2
- package/dist/roadtrip/{p-b85b7e2b.entry.js → p-604d917f.entry.js} +2 -2
- package/dist/roadtrip/p-6f5174da.entry.js +2 -0
- package/dist/roadtrip/{p-c4ffc419.entry.js.map → p-6f5174da.entry.js.map} +1 -1
- package/dist/roadtrip/{p-aa2721e5.entry.js → p-70406e7e.entry.js} +2 -2
- package/dist/roadtrip/{p-1e73c3ce.entry.js → p-7112119b.entry.js} +2 -2
- package/dist/roadtrip/{p-c8438d35.entry.js → p-73d3c4c3.entry.js} +2 -2
- package/dist/roadtrip/{p-00c5b2d9.entry.js → p-7487724c.entry.js} +2 -2
- package/dist/roadtrip/{p-05088511.entry.js → p-7e6aee16.entry.js} +2 -2
- package/dist/roadtrip/{p-668553e9.entry.js → p-80d87dbd.entry.js} +2 -2
- package/dist/roadtrip/{p-71769ef4.entry.js → p-84938814.entry.js} +2 -2
- package/dist/roadtrip/{p-7684978a.entry.js → p-97683034.entry.js} +2 -2
- package/dist/roadtrip/p-99029235.js +2 -0
- package/dist/roadtrip/{p-43335414.entry.js → p-9c432882.entry.js} +2 -2
- package/dist/roadtrip/{p-b18add2d.entry.js → p-9cc75bae.entry.js} +2 -2
- package/dist/roadtrip/{p-bb33c1b5.entry.js → p-a36d5d3c.entry.js} +2 -2
- package/dist/roadtrip/{p-4b2920f6.entry.js → p-ab58de35.entry.js} +2 -2
- package/dist/roadtrip/{p-d8dcd2d2.entry.js → p-ac169742.entry.js} +2 -2
- package/dist/roadtrip/{p-1fd97505.entry.js → p-ac93c5e0.entry.js} +2 -2
- package/dist/roadtrip/{p-b4ba1b47.entry.js → p-b0fc1a99.entry.js} +3 -3
- package/dist/roadtrip/{p-b4ba1b47.entry.js.map → p-b0fc1a99.entry.js.map} +1 -1
- package/dist/roadtrip/{p-0236ce0a.entry.js → p-b6223198.entry.js} +2 -2
- package/dist/roadtrip/{p-c8ea6b4e.entry.js → p-b87a0f45.entry.js} +2 -2
- package/dist/roadtrip/{p-504c0354.entry.js → p-be114fac.entry.js} +2 -2
- package/dist/roadtrip/{p-5dfc9c10.entry.js → p-be57dbfc.entry.js} +2 -2
- package/dist/roadtrip/{p-6dfdd9e2.entry.js → p-bec6c1c6.entry.js} +2 -2
- package/dist/roadtrip/{p-eabdd6ce.entry.js → p-c29b58de.entry.js} +2 -2
- package/dist/roadtrip/p-c6a3fafd.js +3 -0
- package/dist/roadtrip/p-c6a3fafd.js.map +1 -0
- package/dist/roadtrip/{p-eec578a2.entry.js → p-c9496fa4.entry.js} +2 -2
- package/dist/roadtrip/{p-c1fc3902.entry.js → p-cad3a806.entry.js} +2 -2
- package/dist/roadtrip/{p-cff73fff.entry.js → p-cf7dd5b3.entry.js} +2 -2
- package/dist/roadtrip/{p-d8ff2277.entry.js → p-d1c7020d.entry.js} +2 -2
- package/dist/roadtrip/{p-b55e3657.entry.js → p-d3b3f2c3.entry.js} +2 -2
- package/dist/roadtrip/{p-98fdbcfb.entry.js → p-d78990ab.entry.js} +2 -2
- package/dist/roadtrip/{p-2e26072a.entry.js → p-d8be8638.entry.js} +2 -2
- package/dist/roadtrip/{p-848de0f1.entry.js → p-e3ac1271.entry.js} +2 -2
- package/dist/roadtrip/{p-4a14e21e.entry.js → p-e62e919d.entry.js} +2 -2
- package/dist/roadtrip/{p-18db551b.entry.js → p-e71ed819.entry.js} +2 -2
- package/dist/roadtrip/{p-a8b369c3.entry.js → p-ea3df1ce.entry.js} +2 -2
- package/dist/roadtrip/{p-484f7c99.entry.js → p-ec989647.entry.js} +2 -2
- package/dist/roadtrip/{p-ad43e5f0.entry.js → p-f8994de8.entry.js} +2 -2
- package/dist/roadtrip/p-fab30e42.js +2 -0
- package/dist/roadtrip/{p-4dc8a165.entry.js → p-fd611bb9.entry.js} +2 -2
- package/dist/roadtrip/{p-908e3634.entry.js → p-ffd851b4.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 +2 -2
- package/hydrate/index.d.ts +22 -5
- package/hydrate/index.js +480 -42
- package/hydrate/index.mjs +480 -42
- package/package.json +12 -20
- package/dist/cjs/index-aadb3ac9.js.map +0 -1
- package/dist/esm/index-f3c5b68e.js.map +0 -1
- package/dist/roadtrip/p-38ab0443.js +0 -2
- package/dist/roadtrip/p-4ad903fe.js +0 -2
- 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-c4ffc419.entry.js +0 -2
- package/dist/roadtrip/p-d9195195.js +0 -2
- package/dist/roadtrip/p-f9c66715.entry.js +0 -2
- /package/dist/roadtrip/{p-dac4736d.entry.js.map → p-01618daf.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-23142511.entry.js.map → p-07633780.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-38ab0443.js.map → p-0e2f57a3.js.map} +0 -0
- /package/dist/roadtrip/{p-698abbdb.entry.js.map → p-10927dd4.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c70a6f75.entry.js.map → p-111df76e.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-6e822465.entry.js.map → p-1269f911.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-200d5c89.entry.js.map → p-1724566a.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-4de6e537.entry.js.map → p-1aaaf2b1.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-0801cc18.entry.js.map → p-1bc42c19.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-6709e3f4.entry.js.map → p-20459c08.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-52f26ae9.entry.js.map → p-264ec254.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-a1ea2f84.entry.js.map → p-274069da.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-37135c95.entry.js.map → p-2b9ea6a5.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-6fc769fc.entry.js.map → p-2dd0333d.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-f155064c.entry.js.map → p-31aa3829.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-3c567881.entry.js.map → p-340c1fd7.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-9e7807f4.entry.js.map → p-3471dbc6.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-3823247f.entry.js.map → p-399a7d0b.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-3750f911.entry.js.map → p-3ce2e672.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-79acc6ae.entry.js.map → p-4bf63a98.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c5b01dda.entry.js.map → p-4ecf466e.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-63582e9c.entry.js.map → p-5880437b.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-d6867247.entry.js.map → p-5d1b98e6.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-30d74a80.entry.js.map → p-5d41e85f.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-4688d888.entry.js.map → p-5ed1f4c0.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-44b6f632.entry.js.map → p-5f1eebe1.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-b85b7e2b.entry.js.map → p-604d917f.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-aa2721e5.entry.js.map → p-70406e7e.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-1e73c3ce.entry.js.map → p-7112119b.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c8438d35.entry.js.map → p-73d3c4c3.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-00c5b2d9.entry.js.map → p-7487724c.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-05088511.entry.js.map → p-7e6aee16.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-668553e9.entry.js.map → p-80d87dbd.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-71769ef4.entry.js.map → p-84938814.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-7684978a.entry.js.map → p-97683034.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-4ad903fe.js.map → p-99029235.js.map} +0 -0
- /package/dist/roadtrip/{p-43335414.entry.js.map → p-9c432882.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-b18add2d.entry.js.map → p-9cc75bae.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-bb33c1b5.entry.js.map → p-a36d5d3c.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-4b2920f6.entry.js.map → p-ab58de35.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-d8dcd2d2.entry.js.map → p-ac169742.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-1fd97505.entry.js.map → p-ac93c5e0.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-0236ce0a.entry.js.map → p-b6223198.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c8ea6b4e.entry.js.map → p-b87a0f45.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-504c0354.entry.js.map → p-be114fac.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-5dfc9c10.entry.js.map → p-be57dbfc.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-6dfdd9e2.entry.js.map → p-bec6c1c6.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-eabdd6ce.entry.js.map → p-c29b58de.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-eec578a2.entry.js.map → p-c9496fa4.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c1fc3902.entry.js.map → p-cad3a806.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-cff73fff.entry.js.map → p-cf7dd5b3.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-d8ff2277.entry.js.map → p-d1c7020d.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-b55e3657.entry.js.map → p-d3b3f2c3.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-98fdbcfb.entry.js.map → p-d78990ab.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-2e26072a.entry.js.map → p-d8be8638.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-848de0f1.entry.js.map → p-e3ac1271.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-4a14e21e.entry.js.map → p-e62e919d.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-18db551b.entry.js.map → p-e71ed819.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-a8b369c3.entry.js.map → p-ea3df1ce.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-484f7c99.entry.js.map → p-ec989647.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-ad43e5f0.entry.js.map → p-f8994de8.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-d9195195.js.map → p-fab30e42.js.map} +0 -0
- /package/dist/roadtrip/{p-4dc8a165.entry.js.map → p-fd611bb9.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-908e3634.entry.js.map → p-ffd851b4.entry.js.map} +0 -0
package/hydrate/index.mjs
CHANGED
|
@@ -127,7 +127,7 @@ const NAMESPACE = 'roadtrip';
|
|
|
127
127
|
const BUILD = /* roadtrip */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: false, cssAnnotations: true, devTools: false, disconnectedCallback: true, 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.26.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, {
|
|
@@ -455,7 +460,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
455
460
|
delete hostElm["s-sc"];
|
|
456
461
|
}
|
|
457
462
|
}
|
|
458
|
-
if (!plt.$orgLocNodes$) {
|
|
463
|
+
if (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size) {
|
|
459
464
|
initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
|
|
460
465
|
}
|
|
461
466
|
hostElm[HYDRATE_ID] = hostId;
|
|
@@ -485,6 +490,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
485
490
|
}
|
|
486
491
|
}
|
|
487
492
|
if (childRenderNode.$tag$ === "slot") {
|
|
493
|
+
childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
|
|
488
494
|
if (childRenderNode.$children$) {
|
|
489
495
|
childRenderNode.$flags$ |= 2 /* isSlotFallback */;
|
|
490
496
|
if (!childRenderNode.$elm$.childNodes.length) {
|
|
@@ -545,18 +551,25 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
545
551
|
slot.$elm$.parentElement.classList.add(scopeId2 + "-s");
|
|
546
552
|
});
|
|
547
553
|
}
|
|
548
|
-
if (shadowRoot) {
|
|
554
|
+
if (shadowRoot && !shadowRoot.childNodes.length) {
|
|
549
555
|
let rnIdex = 0;
|
|
550
556
|
const rnLen = shadowRootNodes.length;
|
|
551
|
-
|
|
552
|
-
|
|
557
|
+
if (rnLen) {
|
|
558
|
+
for (rnIdex; rnIdex < rnLen; rnIdex++) {
|
|
559
|
+
shadowRoot.appendChild(shadowRootNodes[rnIdex]);
|
|
560
|
+
}
|
|
561
|
+
Array.from(hostElm.childNodes).forEach((node) => {
|
|
562
|
+
if (typeof node["s-sn"] !== "string") {
|
|
563
|
+
if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
|
|
564
|
+
node.removeAttribute("hidden");
|
|
565
|
+
} else if (node.nodeType === 8 /* CommentNode */ || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
566
|
+
node.parentNode.removeChild(node);
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
});
|
|
553
570
|
}
|
|
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
571
|
}
|
|
572
|
+
plt.$orgLocNodes$.delete(hostElm["s-id"]);
|
|
560
573
|
hostRef.$hostElement$ = hostElm;
|
|
561
574
|
endHydrate();
|
|
562
575
|
};
|
|
@@ -667,7 +680,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
667
680
|
$text$: null
|
|
668
681
|
});
|
|
669
682
|
if (childNodeType === TEXT_NODE_ID) {
|
|
670
|
-
childVNode.$elm$ = node
|
|
683
|
+
childVNode.$elm$ = findCorrespondingNode(node, 3 /* TextNode */);
|
|
671
684
|
if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
|
|
672
685
|
childVNode.$text$ = childVNode.$elm$.textContent;
|
|
673
686
|
childRenderNodes.push(childVNode);
|
|
@@ -683,7 +696,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
683
696
|
}
|
|
684
697
|
}
|
|
685
698
|
} else if (childNodeType === COMMENT_NODE_ID) {
|
|
686
|
-
childVNode.$elm$ = node
|
|
699
|
+
childVNode.$elm$ = findCorrespondingNode(node, 8 /* CommentNode */);
|
|
687
700
|
if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
|
|
688
701
|
childRenderNodes.push(childVNode);
|
|
689
702
|
node.remove();
|
|
@@ -717,6 +730,10 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
717
730
|
vnode.$elm$ = node;
|
|
718
731
|
vnode.$index$ = "0";
|
|
719
732
|
parentVNode.$children$ = [vnode];
|
|
733
|
+
} else {
|
|
734
|
+
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
735
|
+
node.remove();
|
|
736
|
+
}
|
|
720
737
|
}
|
|
721
738
|
return parentVNode;
|
|
722
739
|
};
|
|
@@ -806,6 +823,363 @@ var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) =>
|
|
|
806
823
|
slottedNode = slottedNode.nextSibling;
|
|
807
824
|
}
|
|
808
825
|
};
|
|
826
|
+
var findCorrespondingNode = (node, type) => {
|
|
827
|
+
let sibling = node;
|
|
828
|
+
do {
|
|
829
|
+
sibling = sibling.nextSibling;
|
|
830
|
+
} while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
|
|
831
|
+
return sibling;
|
|
832
|
+
};
|
|
833
|
+
|
|
834
|
+
// src/utils/shadow-css.ts
|
|
835
|
+
/**
|
|
836
|
+
* @license
|
|
837
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
838
|
+
*
|
|
839
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
840
|
+
* found in the LICENSE file at https://angular.io/license
|
|
841
|
+
*
|
|
842
|
+
* This file is a port of shadowCSS from `webcomponents.js` to TypeScript.
|
|
843
|
+
* https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
|
|
844
|
+
* https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
|
|
845
|
+
*/
|
|
846
|
+
var safeSelector = (selector) => {
|
|
847
|
+
const placeholders = [];
|
|
848
|
+
let index = 0;
|
|
849
|
+
selector = selector.replace(/(\[[^\]]*\])/g, (_, keep) => {
|
|
850
|
+
const replaceBy = `__ph-${index}__`;
|
|
851
|
+
placeholders.push(keep);
|
|
852
|
+
index++;
|
|
853
|
+
return replaceBy;
|
|
854
|
+
});
|
|
855
|
+
const content = selector.replace(/(:nth-[-\w]+)(\([^)]+\))/g, (_, pseudo, exp) => {
|
|
856
|
+
const replaceBy = `__ph-${index}__`;
|
|
857
|
+
placeholders.push(exp);
|
|
858
|
+
index++;
|
|
859
|
+
return pseudo + replaceBy;
|
|
860
|
+
});
|
|
861
|
+
const ss = {
|
|
862
|
+
content,
|
|
863
|
+
placeholders
|
|
864
|
+
};
|
|
865
|
+
return ss;
|
|
866
|
+
};
|
|
867
|
+
var restoreSafeSelector = (placeholders, content) => {
|
|
868
|
+
return content.replace(/__ph-(\d+)__/g, (_, index) => placeholders[+index]);
|
|
869
|
+
};
|
|
870
|
+
var _polyfillHost = "-shadowcsshost";
|
|
871
|
+
var _polyfillSlotted = "-shadowcssslotted";
|
|
872
|
+
var _polyfillHostContext = "-shadowcsscontext";
|
|
873
|
+
var _parenSuffix = ")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";
|
|
874
|
+
var _cssColonHostRe = new RegExp("(" + _polyfillHost + _parenSuffix, "gim");
|
|
875
|
+
var _cssColonHostContextRe = new RegExp("(" + _polyfillHostContext + _parenSuffix, "gim");
|
|
876
|
+
var _cssColonSlottedRe = new RegExp("(" + _polyfillSlotted + _parenSuffix, "gim");
|
|
877
|
+
var _polyfillHostNoCombinator = _polyfillHost + "-no-combinator";
|
|
878
|
+
var _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\s]*)/;
|
|
879
|
+
var _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];
|
|
880
|
+
var _selectorReSuffix = "([>\\s~+[.,{:][\\s\\S]*)?$";
|
|
881
|
+
var _polyfillHostRe = /-shadowcsshost/gim;
|
|
882
|
+
var createSupportsRuleRe = (selector) => new RegExp(`((?<!(^@supports(.*)))|(?<={.*))(${selector}\\b)`, "gim");
|
|
883
|
+
var _colonSlottedRe = createSupportsRuleRe("::slotted");
|
|
884
|
+
var _colonHostRe = createSupportsRuleRe(":host");
|
|
885
|
+
var _colonHostContextRe = createSupportsRuleRe(":host-context");
|
|
886
|
+
var _commentRe = /\/\*\s*[\s\S]*?\*\//g;
|
|
887
|
+
var stripComments = (input) => {
|
|
888
|
+
return input.replace(_commentRe, "");
|
|
889
|
+
};
|
|
890
|
+
var _commentWithHashRe = /\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;
|
|
891
|
+
var extractCommentsWithHash = (input) => {
|
|
892
|
+
return input.match(_commentWithHashRe) || [];
|
|
893
|
+
};
|
|
894
|
+
var _ruleRe = /(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g;
|
|
895
|
+
var _curlyRe = /([{}])/g;
|
|
896
|
+
var _selectorPartsRe = /(^.*?[^\\])??((:+)(.*)|$)/;
|
|
897
|
+
var OPEN_CURLY = "{";
|
|
898
|
+
var CLOSE_CURLY = "}";
|
|
899
|
+
var BLOCK_PLACEHOLDER = "%BLOCK%";
|
|
900
|
+
var processRules = (input, ruleCallback) => {
|
|
901
|
+
const inputWithEscapedBlocks = escapeBlocks(input);
|
|
902
|
+
let nextBlockIndex = 0;
|
|
903
|
+
return inputWithEscapedBlocks.escapedString.replace(_ruleRe, (...m) => {
|
|
904
|
+
const selector = m[2];
|
|
905
|
+
let content = "";
|
|
906
|
+
let suffix = m[4];
|
|
907
|
+
let contentPrefix = "";
|
|
908
|
+
if (suffix && suffix.startsWith("{" + BLOCK_PLACEHOLDER)) {
|
|
909
|
+
content = inputWithEscapedBlocks.blocks[nextBlockIndex++];
|
|
910
|
+
suffix = suffix.substring(BLOCK_PLACEHOLDER.length + 1);
|
|
911
|
+
contentPrefix = "{";
|
|
912
|
+
}
|
|
913
|
+
const cssRule = {
|
|
914
|
+
selector,
|
|
915
|
+
content
|
|
916
|
+
};
|
|
917
|
+
const rule = ruleCallback(cssRule);
|
|
918
|
+
return `${m[1]}${rule.selector}${m[3]}${contentPrefix}${rule.content}${suffix}`;
|
|
919
|
+
});
|
|
920
|
+
};
|
|
921
|
+
var escapeBlocks = (input) => {
|
|
922
|
+
const inputParts = input.split(_curlyRe);
|
|
923
|
+
const resultParts = [];
|
|
924
|
+
const escapedBlocks = [];
|
|
925
|
+
let bracketCount = 0;
|
|
926
|
+
let currentBlockParts = [];
|
|
927
|
+
for (let partIndex = 0; partIndex < inputParts.length; partIndex++) {
|
|
928
|
+
const part = inputParts[partIndex];
|
|
929
|
+
if (part === CLOSE_CURLY) {
|
|
930
|
+
bracketCount--;
|
|
931
|
+
}
|
|
932
|
+
if (bracketCount > 0) {
|
|
933
|
+
currentBlockParts.push(part);
|
|
934
|
+
} else {
|
|
935
|
+
if (currentBlockParts.length > 0) {
|
|
936
|
+
escapedBlocks.push(currentBlockParts.join(""));
|
|
937
|
+
resultParts.push(BLOCK_PLACEHOLDER);
|
|
938
|
+
currentBlockParts = [];
|
|
939
|
+
}
|
|
940
|
+
resultParts.push(part);
|
|
941
|
+
}
|
|
942
|
+
if (part === OPEN_CURLY) {
|
|
943
|
+
bracketCount++;
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
if (currentBlockParts.length > 0) {
|
|
947
|
+
escapedBlocks.push(currentBlockParts.join(""));
|
|
948
|
+
resultParts.push(BLOCK_PLACEHOLDER);
|
|
949
|
+
}
|
|
950
|
+
const strEscapedBlocks = {
|
|
951
|
+
escapedString: resultParts.join(""),
|
|
952
|
+
blocks: escapedBlocks
|
|
953
|
+
};
|
|
954
|
+
return strEscapedBlocks;
|
|
955
|
+
};
|
|
956
|
+
var insertPolyfillHostInCssText = (cssText) => {
|
|
957
|
+
cssText = cssText.replace(_colonHostContextRe, `$1${_polyfillHostContext}`).replace(_colonHostRe, `$1${_polyfillHost}`).replace(_colonSlottedRe, `$1${_polyfillSlotted}`);
|
|
958
|
+
return cssText;
|
|
959
|
+
};
|
|
960
|
+
var convertColonRule = (cssText, regExp, partReplacer) => {
|
|
961
|
+
return cssText.replace(regExp, (...m) => {
|
|
962
|
+
if (m[2]) {
|
|
963
|
+
const parts = m[2].split(",");
|
|
964
|
+
const r = [];
|
|
965
|
+
for (let i2 = 0; i2 < parts.length; i2++) {
|
|
966
|
+
const p = parts[i2].trim();
|
|
967
|
+
if (!p) break;
|
|
968
|
+
r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));
|
|
969
|
+
}
|
|
970
|
+
return r.join(",");
|
|
971
|
+
} else {
|
|
972
|
+
return _polyfillHostNoCombinator + m[3];
|
|
973
|
+
}
|
|
974
|
+
});
|
|
975
|
+
};
|
|
976
|
+
var colonHostPartReplacer = (host, part, suffix) => {
|
|
977
|
+
return host + part.replace(_polyfillHost, "") + suffix;
|
|
978
|
+
};
|
|
979
|
+
var convertColonHost = (cssText) => {
|
|
980
|
+
return convertColonRule(cssText, _cssColonHostRe, colonHostPartReplacer);
|
|
981
|
+
};
|
|
982
|
+
var colonHostContextPartReplacer = (host, part, suffix) => {
|
|
983
|
+
if (part.indexOf(_polyfillHost) > -1) {
|
|
984
|
+
return colonHostPartReplacer(host, part, suffix);
|
|
985
|
+
} else {
|
|
986
|
+
return host + part + suffix + ", " + part + " " + host + suffix;
|
|
987
|
+
}
|
|
988
|
+
};
|
|
989
|
+
var convertColonSlotted = (cssText, slotScopeId) => {
|
|
990
|
+
const slotClass = "." + slotScopeId + " > ";
|
|
991
|
+
const selectors = [];
|
|
992
|
+
cssText = cssText.replace(_cssColonSlottedRe, (...m) => {
|
|
993
|
+
if (m[2]) {
|
|
994
|
+
const compound = m[2].trim();
|
|
995
|
+
const suffix = m[3];
|
|
996
|
+
const slottedSelector = slotClass + compound + suffix;
|
|
997
|
+
let prefixSelector = "";
|
|
998
|
+
for (let i2 = m[4] - 1; i2 >= 0; i2--) {
|
|
999
|
+
const char = m[5][i2];
|
|
1000
|
+
if (char === "}" || char === ",") {
|
|
1001
|
+
break;
|
|
1002
|
+
}
|
|
1003
|
+
prefixSelector = char + prefixSelector;
|
|
1004
|
+
}
|
|
1005
|
+
const orgSelector = (prefixSelector + slottedSelector).trim();
|
|
1006
|
+
const addedSelector = `${prefixSelector.trimEnd()}${slottedSelector.trim()}`.trim();
|
|
1007
|
+
if (orgSelector !== addedSelector) {
|
|
1008
|
+
const updatedSelector = `${addedSelector}, ${orgSelector}`;
|
|
1009
|
+
selectors.push({
|
|
1010
|
+
orgSelector,
|
|
1011
|
+
updatedSelector
|
|
1012
|
+
});
|
|
1013
|
+
}
|
|
1014
|
+
return slottedSelector;
|
|
1015
|
+
} else {
|
|
1016
|
+
return _polyfillHostNoCombinator + m[3];
|
|
1017
|
+
}
|
|
1018
|
+
});
|
|
1019
|
+
return {
|
|
1020
|
+
selectors,
|
|
1021
|
+
cssText
|
|
1022
|
+
};
|
|
1023
|
+
};
|
|
1024
|
+
var convertColonHostContext = (cssText) => {
|
|
1025
|
+
return convertColonRule(cssText, _cssColonHostContextRe, colonHostContextPartReplacer);
|
|
1026
|
+
};
|
|
1027
|
+
var convertShadowDOMSelectors = (cssText) => {
|
|
1028
|
+
return _shadowDOMSelectorsRe.reduce((result, pattern) => result.replace(pattern, " "), cssText);
|
|
1029
|
+
};
|
|
1030
|
+
var makeScopeMatcher = (scopeSelector2) => {
|
|
1031
|
+
const lre = /\[/g;
|
|
1032
|
+
const rre = /\]/g;
|
|
1033
|
+
scopeSelector2 = scopeSelector2.replace(lre, "\\[").replace(rre, "\\]");
|
|
1034
|
+
return new RegExp("^(" + scopeSelector2 + ")" + _selectorReSuffix, "m");
|
|
1035
|
+
};
|
|
1036
|
+
var selectorNeedsScoping = (selector, scopeSelector2) => {
|
|
1037
|
+
const re = makeScopeMatcher(scopeSelector2);
|
|
1038
|
+
return !re.test(selector);
|
|
1039
|
+
};
|
|
1040
|
+
var injectScopingSelector = (selector, scopingSelector) => {
|
|
1041
|
+
return selector.replace(_selectorPartsRe, (_, before = "", _colonGroup, colon = "", after = "") => {
|
|
1042
|
+
return before + scopingSelector + colon + after;
|
|
1043
|
+
});
|
|
1044
|
+
};
|
|
1045
|
+
var applySimpleSelectorScope = (selector, scopeSelector2, hostSelector) => {
|
|
1046
|
+
_polyfillHostRe.lastIndex = 0;
|
|
1047
|
+
if (_polyfillHostRe.test(selector)) {
|
|
1048
|
+
const replaceBy = `.${hostSelector}`;
|
|
1049
|
+
return selector.replace(_polyfillHostNoCombinatorRe, (_, selector2) => injectScopingSelector(selector2, replaceBy)).replace(_polyfillHostRe, replaceBy + " ");
|
|
1050
|
+
}
|
|
1051
|
+
return scopeSelector2 + " " + selector;
|
|
1052
|
+
};
|
|
1053
|
+
var applyStrictSelectorScope = (selector, scopeSelector2, hostSelector) => {
|
|
1054
|
+
const isRe = /\[is=([^\]]*)\]/g;
|
|
1055
|
+
scopeSelector2 = scopeSelector2.replace(isRe, (_, ...parts) => parts[0]);
|
|
1056
|
+
const className = "." + scopeSelector2;
|
|
1057
|
+
const _scopeSelectorPart = (p) => {
|
|
1058
|
+
let scopedP = p.trim();
|
|
1059
|
+
if (!scopedP) {
|
|
1060
|
+
return "";
|
|
1061
|
+
}
|
|
1062
|
+
if (p.indexOf(_polyfillHostNoCombinator) > -1) {
|
|
1063
|
+
scopedP = applySimpleSelectorScope(p, scopeSelector2, hostSelector);
|
|
1064
|
+
} else {
|
|
1065
|
+
const t = p.replace(_polyfillHostRe, "");
|
|
1066
|
+
if (t.length > 0) {
|
|
1067
|
+
scopedP = injectScopingSelector(t, className);
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
return scopedP;
|
|
1071
|
+
};
|
|
1072
|
+
const safeContent = safeSelector(selector);
|
|
1073
|
+
selector = safeContent.content;
|
|
1074
|
+
let scopedSelector = "";
|
|
1075
|
+
let startIndex = 0;
|
|
1076
|
+
let res;
|
|
1077
|
+
const sep = /( |>|\+|~(?!=))\s*/g;
|
|
1078
|
+
const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;
|
|
1079
|
+
let shouldScope = !hasHost;
|
|
1080
|
+
while ((res = sep.exec(selector)) !== null) {
|
|
1081
|
+
const separator = res[1];
|
|
1082
|
+
const part2 = selector.slice(startIndex, res.index).trim();
|
|
1083
|
+
shouldScope = shouldScope || part2.indexOf(_polyfillHostNoCombinator) > -1;
|
|
1084
|
+
const scopedPart = shouldScope ? _scopeSelectorPart(part2) : part2;
|
|
1085
|
+
scopedSelector += `${scopedPart} ${separator} `;
|
|
1086
|
+
startIndex = sep.lastIndex;
|
|
1087
|
+
}
|
|
1088
|
+
const part = selector.substring(startIndex);
|
|
1089
|
+
shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
|
|
1090
|
+
scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;
|
|
1091
|
+
return restoreSafeSelector(safeContent.placeholders, scopedSelector);
|
|
1092
|
+
};
|
|
1093
|
+
var scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector) => {
|
|
1094
|
+
return selector.split(",").map((shallowPart) => {
|
|
1095
|
+
if (slotSelector && shallowPart.indexOf("." + slotSelector) > -1) {
|
|
1096
|
+
return shallowPart.trim();
|
|
1097
|
+
}
|
|
1098
|
+
if (selectorNeedsScoping(shallowPart, scopeSelectorText)) {
|
|
1099
|
+
return applyStrictSelectorScope(shallowPart, scopeSelectorText, hostSelector).trim();
|
|
1100
|
+
} else {
|
|
1101
|
+
return shallowPart.trim();
|
|
1102
|
+
}
|
|
1103
|
+
}).join(", ");
|
|
1104
|
+
};
|
|
1105
|
+
var scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {
|
|
1106
|
+
return processRules(cssText, (rule) => {
|
|
1107
|
+
let selector = rule.selector;
|
|
1108
|
+
let content = rule.content;
|
|
1109
|
+
if (rule.selector[0] !== "@") {
|
|
1110
|
+
selector = scopeSelector(rule.selector, scopeSelectorText, hostSelector, slotSelector);
|
|
1111
|
+
} else if (rule.selector.startsWith("@media") || rule.selector.startsWith("@supports") || rule.selector.startsWith("@page") || rule.selector.startsWith("@document")) {
|
|
1112
|
+
content = scopeSelectors(rule.content, scopeSelectorText, hostSelector, slotSelector);
|
|
1113
|
+
}
|
|
1114
|
+
const cssRule = {
|
|
1115
|
+
selector: selector.replace(/\s{2,}/g, " ").trim(),
|
|
1116
|
+
content
|
|
1117
|
+
};
|
|
1118
|
+
return cssRule;
|
|
1119
|
+
});
|
|
1120
|
+
};
|
|
1121
|
+
var scopeCssText = (cssText, scopeId2, hostScopeId, slotScopeId, commentOriginalSelector) => {
|
|
1122
|
+
cssText = insertPolyfillHostInCssText(cssText);
|
|
1123
|
+
cssText = convertColonHost(cssText);
|
|
1124
|
+
cssText = convertColonHostContext(cssText);
|
|
1125
|
+
const slotted = convertColonSlotted(cssText, slotScopeId);
|
|
1126
|
+
cssText = slotted.cssText;
|
|
1127
|
+
cssText = convertShadowDOMSelectors(cssText);
|
|
1128
|
+
if (scopeId2) {
|
|
1129
|
+
cssText = scopeSelectors(cssText, scopeId2, hostScopeId, slotScopeId);
|
|
1130
|
+
}
|
|
1131
|
+
cssText = replaceShadowCssHost(cssText, hostScopeId);
|
|
1132
|
+
cssText = cssText.replace(/>\s*\*\s+([^{, ]+)/gm, " $1 ");
|
|
1133
|
+
return {
|
|
1134
|
+
cssText: cssText.trim(),
|
|
1135
|
+
// We need to replace the shadow CSS host string in each of these selectors since we created
|
|
1136
|
+
// them prior to the replacement happening in the components CSS text.
|
|
1137
|
+
slottedSelectors: slotted.selectors.map((ref) => ({
|
|
1138
|
+
orgSelector: replaceShadowCssHost(ref.orgSelector, hostScopeId),
|
|
1139
|
+
updatedSelector: replaceShadowCssHost(ref.updatedSelector, hostScopeId)
|
|
1140
|
+
}))
|
|
1141
|
+
};
|
|
1142
|
+
};
|
|
1143
|
+
var replaceShadowCssHost = (cssText, hostScopeId) => {
|
|
1144
|
+
return cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);
|
|
1145
|
+
};
|
|
1146
|
+
var scopeCss = (cssText, scopeId2, commentOriginalSelector) => {
|
|
1147
|
+
const hostScopeId = scopeId2 + "-h";
|
|
1148
|
+
const slotScopeId = scopeId2 + "-s";
|
|
1149
|
+
const commentsWithHash = extractCommentsWithHash(cssText);
|
|
1150
|
+
cssText = stripComments(cssText);
|
|
1151
|
+
const orgSelectors = [];
|
|
1152
|
+
if (commentOriginalSelector) {
|
|
1153
|
+
const processCommentedSelector = (rule) => {
|
|
1154
|
+
const placeholder = `/*!@___${orgSelectors.length}___*/`;
|
|
1155
|
+
const comment = `/*!@${rule.selector}*/`;
|
|
1156
|
+
orgSelectors.push({ placeholder, comment });
|
|
1157
|
+
rule.selector = placeholder + rule.selector;
|
|
1158
|
+
return rule;
|
|
1159
|
+
};
|
|
1160
|
+
cssText = processRules(cssText, (rule) => {
|
|
1161
|
+
if (rule.selector[0] !== "@") {
|
|
1162
|
+
return processCommentedSelector(rule);
|
|
1163
|
+
} else if (rule.selector.startsWith("@media") || rule.selector.startsWith("@supports") || rule.selector.startsWith("@page") || rule.selector.startsWith("@document")) {
|
|
1164
|
+
rule.content = processRules(rule.content, processCommentedSelector);
|
|
1165
|
+
return rule;
|
|
1166
|
+
}
|
|
1167
|
+
return rule;
|
|
1168
|
+
});
|
|
1169
|
+
}
|
|
1170
|
+
const scoped = scopeCssText(cssText, scopeId2, hostScopeId, slotScopeId);
|
|
1171
|
+
cssText = [scoped.cssText, ...commentsWithHash].join("\n");
|
|
1172
|
+
if (commentOriginalSelector) {
|
|
1173
|
+
orgSelectors.forEach(({ placeholder, comment }) => {
|
|
1174
|
+
cssText = cssText.replace(placeholder, comment);
|
|
1175
|
+
});
|
|
1176
|
+
}
|
|
1177
|
+
scoped.slottedSelectors.forEach((slottedSelector) => {
|
|
1178
|
+
const regex = new RegExp(escapeRegExpSpecialCharacters(slottedSelector.orgSelector), "g");
|
|
1179
|
+
cssText = cssText.replace(regex, slottedSelector.updatedSelector);
|
|
1180
|
+
});
|
|
1181
|
+
return cssText;
|
|
1182
|
+
};
|
|
809
1183
|
var parsePropertyValue = (propValue, propType) => {
|
|
810
1184
|
if (propValue != null && !isComplexType(propValue)) {
|
|
811
1185
|
if (propType & 4 /* Boolean */) {
|
|
@@ -873,7 +1247,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
873
1247
|
if (nonce != null) {
|
|
874
1248
|
styleElm.setAttribute("nonce", nonce);
|
|
875
1249
|
}
|
|
876
|
-
if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
1250
|
+
if ((cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */ || cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */)) {
|
|
877
1251
|
styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
|
|
878
1252
|
}
|
|
879
1253
|
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
@@ -897,7 +1271,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
897
1271
|
styleContainerNode.append(styleElm);
|
|
898
1272
|
}
|
|
899
1273
|
}
|
|
900
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */
|
|
1274
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
901
1275
|
styleContainerNode.insertBefore(styleElm, null);
|
|
902
1276
|
}
|
|
903
1277
|
}
|
|
@@ -920,7 +1294,7 @@ var attachStyles = (hostRef) => {
|
|
|
920
1294
|
const scopeId2 = addStyle(
|
|
921
1295
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
922
1296
|
cmpMeta);
|
|
923
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
1297
|
+
if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
|
|
924
1298
|
elm["s-sc"] = scopeId2;
|
|
925
1299
|
elm.classList.add(scopeId2 + "-h");
|
|
926
1300
|
}
|
|
@@ -1449,13 +1823,13 @@ var insertBefore = (parent, newNode, reference) => {
|
|
|
1449
1823
|
}
|
|
1450
1824
|
};
|
|
1451
1825
|
function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
|
|
1452
|
-
var _a;
|
|
1826
|
+
var _a, _b;
|
|
1453
1827
|
let scopeId2;
|
|
1454
1828
|
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
1829
|
const scopeName = slotNode["s-sn"];
|
|
1456
1830
|
const hostName = slotNode["s-hn"];
|
|
1457
1831
|
(_a = newParent.classList) == null ? void 0 : _a.add(scopeId2 + "-s");
|
|
1458
|
-
if (oldParent && oldParent.classList.contains(scopeId2 + "-s")) {
|
|
1832
|
+
if (oldParent && ((_b = oldParent.classList) == null ? void 0 : _b.contains(scopeId2 + "-s"))) {
|
|
1459
1833
|
let child = (oldParent.__childNodes || oldParent.childNodes)[0];
|
|
1460
1834
|
let found = false;
|
|
1461
1835
|
while (child) {
|
|
@@ -1496,7 +1870,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1496
1870
|
{
|
|
1497
1871
|
scopeId = hostElm["s-sc"];
|
|
1498
1872
|
}
|
|
1499
|
-
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)
|
|
1873
|
+
useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
1500
1874
|
{
|
|
1501
1875
|
contentRef = hostElm["s-cr"];
|
|
1502
1876
|
checkSlotFallbackVisibility = false;
|
|
@@ -1721,9 +2095,6 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1721
2095
|
}
|
|
1722
2096
|
};
|
|
1723
2097
|
var appDidLoad = (who) => {
|
|
1724
|
-
{
|
|
1725
|
-
addHydratedFlag(doc.documentElement);
|
|
1726
|
-
}
|
|
1727
2098
|
nextTick$1(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
1728
2099
|
};
|
|
1729
2100
|
var safeCall = (instance, method, arg, elm) => {
|
|
@@ -1935,7 +2306,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1935
2306
|
let Cstr;
|
|
1936
2307
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1937
2308
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1938
|
-
|
|
2309
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
2310
|
+
if (bundleId) {
|
|
1939
2311
|
const CstrImport = loadModule(cmpMeta);
|
|
1940
2312
|
if (CstrImport && "then" in CstrImport) {
|
|
1941
2313
|
const endLoad = uniqueTime();
|
|
@@ -1971,6 +2343,10 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1971
2343
|
}
|
|
1972
2344
|
endNewInstance();
|
|
1973
2345
|
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
2346
|
+
} else {
|
|
2347
|
+
Cstr = elm.constructor;
|
|
2348
|
+
const cmpTag = elm.localName;
|
|
2349
|
+
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1974
2350
|
}
|
|
1975
2351
|
if (Cstr && Cstr.style) {
|
|
1976
2352
|
let style;
|
|
@@ -1980,6 +2356,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1980
2356
|
const scopeId2 = getScopeId(cmpMeta);
|
|
1981
2357
|
if (!styles$1.has(scopeId2)) {
|
|
1982
2358
|
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
2359
|
+
if (cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */) {
|
|
2360
|
+
style = scopeCss(style, scopeId2, true);
|
|
2361
|
+
}
|
|
1983
2362
|
registerStyle(scopeId2, style);
|
|
1984
2363
|
endRegisterStyles();
|
|
1985
2364
|
}
|
|
@@ -2256,7 +2635,7 @@ function proxyHostElement(elm, cstr) {
|
|
|
2256
2635
|
if (typeof elm.forceUpdate !== "function") {
|
|
2257
2636
|
elm.forceUpdate = forceUpdate2;
|
|
2258
2637
|
}
|
|
2259
|
-
if (!elm.shadowRoot && !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
2638
|
+
if (!elm.shadowRoot && !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */)) {
|
|
2260
2639
|
{
|
|
2261
2640
|
elm.attachShadow({ mode: "open" });
|
|
2262
2641
|
}
|
|
@@ -2302,16 +2681,21 @@ function proxyHostElement(elm, cstr) {
|
|
|
2302
2681
|
configurable: true,
|
|
2303
2682
|
enumerable: true
|
|
2304
2683
|
});
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2684
|
+
if (!cstr.prototype.__stencilAugmented) {
|
|
2685
|
+
Object.defineProperty(cstr.prototype, memberName, {
|
|
2686
|
+
get: function() {
|
|
2687
|
+
var _a2;
|
|
2688
|
+
const ref = getHostRef(this);
|
|
2689
|
+
const attrPropVal2 = (_a2 = ref.$instanceValues$) == null ? void 0 : _a2.get(memberName);
|
|
2690
|
+
if (origGetter && attrPropVal2 === void 0 && !getValue(this, memberName)) {
|
|
2691
|
+
setValue(this, memberName, origGetter.apply(this), cmpMeta);
|
|
2692
|
+
}
|
|
2693
|
+
return attrPropVal2 !== void 0 ? attrPropVal2 : origGetter ? origGetter.apply(this) : getValue(this, memberName);
|
|
2694
|
+
},
|
|
2695
|
+
configurable: true,
|
|
2696
|
+
enumerable: true
|
|
2697
|
+
});
|
|
2698
|
+
}
|
|
2315
2699
|
} else if (memberFlags & 64 /* Method */) {
|
|
2316
2700
|
Object.defineProperty(elm, memberName, {
|
|
2317
2701
|
value(...args) {
|
|
@@ -2327,6 +2711,7 @@ function proxyHostElement(elm, cstr) {
|
|
|
2327
2711
|
});
|
|
2328
2712
|
}
|
|
2329
2713
|
});
|
|
2714
|
+
cstr.prototype.__stencilAugmented = true;
|
|
2330
2715
|
}
|
|
2331
2716
|
}
|
|
2332
2717
|
function componentOnReady() {
|
|
@@ -2385,6 +2770,15 @@ function hydrateApp(win2, opts, results, afterHydrate, resolve) {
|
|
|
2385
2770
|
$flags$: null
|
|
2386
2771
|
});
|
|
2387
2772
|
if (Cstr != null && Cstr.cmpMeta != null) {
|
|
2773
|
+
if (opts.serializeShadowRoot !== false && !!(Cstr.cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && tagRequiresScoped(elm.tagName, opts.serializeShadowRoot)) {
|
|
2774
|
+
const cmpMeta = Cstr.cmpMeta;
|
|
2775
|
+
cmpMeta.$flags$ |= 128 /* shadowNeedsScopedCss */;
|
|
2776
|
+
Object.defineProperty(Cstr, "cmpMeta", {
|
|
2777
|
+
get: function() {
|
|
2778
|
+
return cmpMeta;
|
|
2779
|
+
}
|
|
2780
|
+
});
|
|
2781
|
+
}
|
|
2388
2782
|
createdElements.add(elm);
|
|
2389
2783
|
elm.connectedCallback = patchedConnectedCallback2;
|
|
2390
2784
|
registerHost(elm, Cstr.cmpMeta);
|
|
@@ -2577,6 +2971,25 @@ ${indent}${ln}`;
|
|
|
2577
2971
|
function waitingOnElementsMsg(waitingElements) {
|
|
2578
2972
|
return Array.from(waitingElements).map(waitingOnElementMsg);
|
|
2579
2973
|
}
|
|
2974
|
+
function tagRequiresScoped(tagName, opts) {
|
|
2975
|
+
if (typeof opts === "string") {
|
|
2976
|
+
return opts === "scoped";
|
|
2977
|
+
}
|
|
2978
|
+
if (typeof opts === "boolean") {
|
|
2979
|
+
return opts === true ? false : true;
|
|
2980
|
+
}
|
|
2981
|
+
if (typeof opts === "object") {
|
|
2982
|
+
tagName = tagName.toLowerCase();
|
|
2983
|
+
if (Array.isArray(opts["declarative-shadow-dom"]) && opts["declarative-shadow-dom"].includes(tagName)) {
|
|
2984
|
+
return false;
|
|
2985
|
+
} else if ((!Array.isArray(opts.scoped) || !opts.scoped.includes(tagName)) && opts.default === "declarative-shadow-dom") {
|
|
2986
|
+
return false;
|
|
2987
|
+
} else {
|
|
2988
|
+
return true;
|
|
2989
|
+
}
|
|
2990
|
+
}
|
|
2991
|
+
return false;
|
|
2992
|
+
}
|
|
2580
2993
|
var cmpModules = /* @__PURE__ */ new Map();
|
|
2581
2994
|
var getModule = (tagName) => {
|
|
2582
2995
|
if (typeof tagName === "string") {
|
|
@@ -28921,7 +29334,7 @@ class Input {
|
|
|
28921
29334
|
/**
|
|
28922
29335
|
* If `true`, block decimal.
|
|
28923
29336
|
*/
|
|
28924
|
-
this.
|
|
29337
|
+
this.blockdecimal = false;
|
|
28925
29338
|
/**
|
|
28926
29339
|
* Whether auto correction should be enabled when the user is entering/editing the text value.
|
|
28927
29340
|
*/
|
|
@@ -28974,7 +29387,7 @@ class Input {
|
|
|
28974
29387
|
this.onInput = (ev) => {
|
|
28975
29388
|
const input = ev.target;
|
|
28976
29389
|
let newValue = input.value;
|
|
28977
|
-
if (this.type === 'number' && this.
|
|
29390
|
+
if (this.type === 'number' && this.blockdecimal) {
|
|
28978
29391
|
newValue = newValue.replace(/[.,]/g, ''); // Supprime les décimales si blockDecimal est activé
|
|
28979
29392
|
}
|
|
28980
29393
|
this.value = newValue;
|
|
@@ -28999,7 +29412,7 @@ class Input {
|
|
|
28999
29412
|
};
|
|
29000
29413
|
}
|
|
29001
29414
|
handleKeyDown(event) {
|
|
29002
|
-
if (this.type === 'number' && this.
|
|
29415
|
+
if (this.type === 'number' && this.blockdecimal) {
|
|
29003
29416
|
const forbiddenKeys = ['.', ',', 'e', '-', '¨', '^', '`', '+'];
|
|
29004
29417
|
if (forbiddenKeys.includes(event.key)) {
|
|
29005
29418
|
event.preventDefault();
|
|
@@ -29048,7 +29461,7 @@ class Input {
|
|
|
29048
29461
|
const hasValueClass = this.value !== '' && this.value !== null ? 'has-value' : '';
|
|
29049
29462
|
const lessLabelClass = this.label !== '' ? '' : 'less-label';
|
|
29050
29463
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
29051
|
-
return (hAsync(Host, { key: '
|
|
29464
|
+
return (hAsync(Host, { key: '9251985e0b07d2b85f319d30bd6e4cc46cf78147', "aria-disabled": this.disabled ? 'true' : null, class: this.sizes && `input-${this.sizes}`, value: value, blockdecimal: this.blockdecimal }, hAsync("input", { key: 'b0d87d5bde0d232615d200c1b4c611a997931595', class: `form-control ${hasValueClass} ${isInvalidClass} ${lessLabelClass}`, id: this.inputId, "aria-disabled": this.disabled ? 'true' : null, "aria-labelledby": labelId, disabled: this.disabled, autoCapitalize: this.autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, enterKeyHint: this.enterkeyhint, autoFocus: this.autofocus, inputMode: this.inputmode, min: this.min, max: this.max, minLength: this.minlength, maxLength: this.maxlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, spellcheck: this.spellcheck, step: this.step, size: this.size, type: this.type, value: value, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.type === 'number' ? (event) => this.handleKeyDown(event) : undefined, onKeyUp: (event) => this.enforceMinMax(event.target), "data-cy": 'road-input' }), hAsync("label", { key: '910506a3f147908dd802d645c9d985862cf4126b', class: "form-label", id: labelId, htmlFor: this.inputId }, this.label), this.error && this.error !== '' && hAsync("p", { key: 'feb2985f978e936bcde5328233a433eda6f2d16c', class: "invalid-feedback" }, hAsync("road-icon", { key: 'f5d8a3c8edc1ccac2d5b9f9d6b2bcc3f3f7bc283', slot: "start", name: "alert-error-solid", "aria-hidden": "true", size: "sm" }), this.error), this.helper && this.helper !== '' && hAsync("p", { key: '3e11fd43dc68951c17d3ab267bc4a25316e1efce', class: "helper" }, this.helper), this.type && this.type == 'password' && hAsync("slot", { key: '0a2df2f8c92a52d18b6d1063765eaf47809a60b3', name: "checklistPassword" })));
|
|
29052
29465
|
}
|
|
29053
29466
|
static get watchers() { return {
|
|
29054
29467
|
"debounce": ["debounceChanged"],
|
|
@@ -29062,7 +29475,7 @@ class Input {
|
|
|
29062
29475
|
"inputId": [1, "input-id"],
|
|
29063
29476
|
"autocapitalize": [1],
|
|
29064
29477
|
"autocomplete": [1],
|
|
29065
|
-
"
|
|
29478
|
+
"blockdecimal": [4],
|
|
29066
29479
|
"autocorrect": [1],
|
|
29067
29480
|
"autofocus": [4],
|
|
29068
29481
|
"disabled": [4],
|
|
@@ -36011,7 +36424,7 @@ var NAMESPACE = (
|
|
|
36011
36424
|
);
|
|
36012
36425
|
|
|
36013
36426
|
/*
|
|
36014
|
-
Stencil Hydrate Runner v4.
|
|
36427
|
+
Stencil Hydrate Runner v4.26.0 | MIT Licensed | https://stenciljs.com
|
|
36015
36428
|
*/
|
|
36016
36429
|
var __defProp = Object.defineProperty;
|
|
36017
36430
|
var __export = (target, all) => {
|
|
@@ -46428,7 +46841,7 @@ function normalizeSerializationOptions(opts = {}) {
|
|
|
46428
46841
|
removeAttributeQuotes: typeof opts.removeAttributeQuotes !== "boolean" ? false : opts.removeAttributeQuotes,
|
|
46429
46842
|
removeBooleanAttributeQuotes: typeof opts.removeBooleanAttributeQuotes !== "boolean" ? false : opts.removeBooleanAttributeQuotes,
|
|
46430
46843
|
removeHtmlComments: typeof opts.removeHtmlComments !== "boolean" ? false : opts.removeHtmlComments,
|
|
46431
|
-
serializeShadowRoot: typeof opts.serializeShadowRoot
|
|
46844
|
+
serializeShadowRoot: typeof opts.serializeShadowRoot === "undefined" ? "declarative-shadow-dom" : opts.serializeShadowRoot,
|
|
46432
46845
|
fullDocument: typeof opts.fullDocument !== "boolean" ? true : opts.fullDocument
|
|
46433
46846
|
};
|
|
46434
46847
|
}
|
|
@@ -46557,7 +46970,7 @@ style="${cssText}">`;
|
|
|
46557
46970
|
}
|
|
46558
46971
|
if (EMPTY_ELEMENTS.has(tagName) === false) {
|
|
46559
46972
|
const shadowRoot = node.shadowRoot;
|
|
46560
|
-
if (shadowRoot != null && opts.serializeShadowRoot) {
|
|
46973
|
+
if (shadowRoot != null && opts.serializeShadowRoot !== false) {
|
|
46561
46974
|
output.indent = output.indent + ((_c = opts.indentSpaces) != null ? _c : 0);
|
|
46562
46975
|
yield* streamToHtml(shadowRoot, opts, output);
|
|
46563
46976
|
output.indent = output.indent - ((_d = opts.indentSpaces) != null ? _d : 0);
|
|
@@ -50299,6 +50712,31 @@ var unwrapErr = (result) => {
|
|
|
50299
50712
|
}
|
|
50300
50713
|
};
|
|
50301
50714
|
|
|
50715
|
+
// src/utils/shadow-css.ts
|
|
50716
|
+
/**
|
|
50717
|
+
* @license
|
|
50718
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
50719
|
+
*
|
|
50720
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
50721
|
+
* found in the LICENSE file at https://angular.io/license
|
|
50722
|
+
*
|
|
50723
|
+
* This file is a port of shadowCSS from `webcomponents.js` to TypeScript.
|
|
50724
|
+
* https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
|
|
50725
|
+
* https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
|
|
50726
|
+
*/
|
|
50727
|
+
var _polyfillHost = "-shadowcsshost";
|
|
50728
|
+
var _polyfillSlotted = "-shadowcssslotted";
|
|
50729
|
+
var _polyfillHostContext = "-shadowcsscontext";
|
|
50730
|
+
var _parenSuffix = ")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";
|
|
50731
|
+
var _cssColonHostRe = new RegExp("(" + _polyfillHost + _parenSuffix, "gim");
|
|
50732
|
+
var _cssColonHostContextRe = new RegExp("(" + _polyfillHostContext + _parenSuffix, "gim");
|
|
50733
|
+
var _cssColonSlottedRe = new RegExp("(" + _polyfillSlotted + _parenSuffix, "gim");
|
|
50734
|
+
var _polyfillHostNoCombinator = _polyfillHost + "-no-combinator";
|
|
50735
|
+
var createSupportsRuleRe = (selector) => new RegExp(`((?<!(^@supports(.*)))|(?<={.*))(${selector}\\b)`, "gim");
|
|
50736
|
+
var _colonSlottedRe = createSupportsRuleRe("::slotted");
|
|
50737
|
+
var _colonHostRe = createSupportsRuleRe(":host");
|
|
50738
|
+
var _colonHostContextRe = createSupportsRuleRe(":host-context");
|
|
50739
|
+
|
|
50302
50740
|
// src/runtime/mode.ts
|
|
50303
50741
|
var setMode = (handler) => modeResolutionChain.push(handler);
|
|
50304
50742
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
@@ -51487,7 +51925,7 @@ function renderToString(html, options, asStream) {
|
|
|
51487
51925
|
const opts = normalizeHydrateOptions(options);
|
|
51488
51926
|
opts.serializeToHtml = true;
|
|
51489
51927
|
opts.fullDocument = typeof opts.fullDocument === "boolean" ? opts.fullDocument : true;
|
|
51490
|
-
opts.serializeShadowRoot = typeof opts.serializeShadowRoot === "
|
|
51928
|
+
opts.serializeShadowRoot = typeof opts.serializeShadowRoot === "undefined" ? "declarative-shadow-dom" : opts.serializeShadowRoot;
|
|
51491
51929
|
opts.constrainTimeouts = false;
|
|
51492
51930
|
return hydrateDocument(html, opts, asStream);
|
|
51493
51931
|
}
|