@rededor/cura 2.0.0-alpha.10 → 2.0.0-alpha.12
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/app-globals-e8cmvmo1.js +69 -0
- package/dist/cjs/cura-accordion_21.cjs.entry.js +267 -208
- package/dist/cjs/cura-alert.cjs.entry.js +7 -8
- package/dist/cjs/cura-badge-counter.cjs.entry.js +13 -10
- package/dist/cjs/cura-badge-dot.cjs.entry.js +4 -7
- package/dist/cjs/cura-badge-pill.cjs.entry.js +7 -8
- package/dist/cjs/cura-button-outline.cjs.entry.js +15 -10
- package/dist/cjs/cura-button-select.cjs.entry.js +10 -9
- package/dist/cjs/cura-button.definitions-B3SK8MaV.js +0 -3
- package/dist/cjs/cura-calendar.cjs.entry.js +12 -9
- package/dist/cjs/cura-checkbox.cjs.entry.js +18 -11
- package/dist/cjs/cura-display.cjs.entry.js +10 -9
- package/dist/cjs/cura-dropdown-search-not-found.cjs.entry.js +4 -7
- package/dist/cjs/cura-forms.definitions-DVLuO67c.js +0 -3
- package/dist/cjs/cura-icon.definitions-DT0wF67y.js +0 -3
- package/dist/cjs/cura-icons-view.cjs.entry.js +4 -7
- package/dist/cjs/cura-input-date.cjs.entry.js +7 -8
- package/dist/cjs/cura-loader-bar.cjs.entry.js +10 -9
- package/dist/cjs/cura-modal.cjs.entry.js +19 -12
- package/dist/cjs/cura-progress-bar_2.cjs.entry.js +6 -9
- package/dist/cjs/cura-radio.cjs.entry.js +15 -10
- package/dist/cjs/cura-stepper.cjs.entry.js +4 -7
- package/dist/cjs/cura-switch.cjs.entry.js +13 -10
- package/dist/cjs/cura-tabs-button.cjs.entry.js +7 -8
- package/dist/cjs/cura-tabs-transparent.cjs.entry.js +7 -8
- package/dist/cjs/cura-tabs.definitions-CGqqGE2e.js +0 -3
- package/dist/cjs/cura-theme-module-Dg1d3VUN.js +237 -0
- package/dist/cjs/cura-toast.cjs.entry.js +10 -9
- package/dist/cjs/cura-tooltip.cjs.entry.js +4 -7
- package/dist/cjs/cura.cjs.js +8 -8
- package/dist/cjs/{index-BK9MSAiE.js → index-BLhmsPd0.js} +705 -579
- package/dist/cjs/index-EyP6Zlkd.js +0 -3
- package/dist/cjs/index.cjs.js +3 -4
- package/dist/cjs/loader.cjs.js +7 -7
- package/dist/cjs/static-DHz-FA_O.js +88 -0
- package/dist/cjs/theme-legacy-default-COE-hjD7.js +264 -0
- package/dist/collection/api/cura-api.js +0 -1
- package/dist/collection/api/cura-api.type.js +0 -1
- package/dist/collection/api/modules/cura-theme-breakpoints-module.js +0 -1
- package/dist/collection/api/modules/cura-theme-colors-module.js +0 -1
- package/dist/collection/api/modules/cura-theme-fonts-module.js +0 -1
- package/dist/collection/api/modules/cura-theme-module.js +0 -1
- package/dist/collection/api/modules/cura-theme-spacing-module.js +0 -1
- package/dist/collection/api/theme-presets/static.js +0 -1
- package/dist/collection/api/theme-presets/theme-default.js +0 -1
- package/dist/collection/api/theme-presets/theme-legacy-default.js +0 -1
- package/dist/collection/api/theme-presets/theme-maternity.js +0 -1
- package/dist/collection/api/theme-presets/theme-oncology.js +0 -1
- package/dist/collection/api/theme-presets/theme-perinatal-temporary.js +0 -1
- package/dist/collection/api/theme-presets/theme-presets.js +0 -1
- package/dist/collection/api/theme-presets/theme-richet.js +0 -1
- package/dist/collection/assets/icons/iconset-default-list.js +0 -1
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.css +0 -0
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.js +9 -10
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.stories.js +0 -1
- package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.css +0 -0
- package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js +9 -10
- package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.css +0 -0
- package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.js +5 -6
- package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.stories.js +0 -1
- package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.css +0 -0
- package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.js +2 -3
- package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.stories.js +0 -1
- package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.css +0 -0
- package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.js +3 -4
- package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.stories.js +0 -1
- package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.css +0 -0
- package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js +8 -9
- package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.stories.js +0 -1
- package/dist/collection/components/buttons/cura-button/cura-button.css +0 -0
- package/dist/collection/components/buttons/cura-button/cura-button.js +24 -25
- package/dist/collection/components/buttons/cura-button/cura-button.stories.js +0 -1
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.css +0 -0
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js +17 -18
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js +0 -1
- package/dist/collection/components/buttons/cura-button-select/cura-button-select.css +0 -0
- package/dist/collection/components/buttons/cura-button-select/cura-button-select.js +12 -13
- package/dist/collection/components/buttons/cura-button-select/cura-button-select.stories.js +0 -1
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.css +0 -0
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js +16 -17
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js +0 -1
- package/dist/collection/components/buttons/cura-button.definitions.js +0 -1
- package/dist/collection/components/cura-alert/cura-alert.css +0 -0
- package/dist/collection/components/cura-alert/cura-alert.js +7 -8
- package/dist/collection/components/cura-alert/cura-alert.stories.js +0 -1
- package/dist/collection/components/cura-avatar/cura-avatar.css +0 -0
- package/dist/collection/components/cura-avatar/cura-avatar.definitions.js +0 -1
- package/dist/collection/components/cura-avatar/cura-avatar.js +13 -14
- package/dist/collection/components/cura-avatar/cura-avatar.stories.js +0 -1
- package/dist/collection/components/cura-calendar/cura-calendar.css +0 -0
- package/dist/collection/components/cura-calendar/cura-calendar.js +21 -25
- package/dist/collection/components/cura-calendar/cura-calendar.stories.js +0 -1
- package/dist/collection/components/cura-card/cura-card.css +0 -0
- package/dist/collection/components/cura-card/cura-card.js +7 -8
- package/dist/collection/components/cura-card/cura-card.stories.js +0 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.css +0 -0
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.js +0 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.stories.js +0 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.css +0 -0
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.js +0 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.stories.js +0 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.css +0 -0
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js +7 -8
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.stories.js +0 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.css +0 -0
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.js +13 -14
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.stories.js +0 -1
- package/dist/collection/components/cura-icon/cura-icon.css +0 -0
- package/dist/collection/components/cura-icon/cura-icon.definitions.js +0 -1
- package/dist/collection/components/cura-icon/cura-icon.js +6 -7
- package/dist/collection/components/cura-icon/cura-icon.stories.js +0 -1
- package/dist/collection/components/cura-icons-view/cura-icons-view.css +0 -0
- package/dist/collection/components/cura-icons-view/cura-icons-view.js +0 -1
- package/dist/collection/components/cura-icons-view/cura-icons-view.stories.js +0 -1
- package/dist/collection/components/cura-modal/cura-modal.css +0 -0
- package/dist/collection/components/cura-modal/cura-modal.js +9 -10
- package/dist/collection/components/cura-modal/cura-modal.stories.js +0 -1
- package/dist/collection/components/cura-page-template/cura-page-template.css +0 -0
- package/dist/collection/components/cura-page-template/cura-page-template.js +1 -2
- package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.css +0 -0
- package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.js +8 -9
- package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.css +0 -0
- package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.js +6 -7
- package/dist/collection/components/cura-stepper/cura-stepper.css +0 -0
- package/dist/collection/components/cura-stepper/cura-stepper.js +8 -8
- package/dist/collection/components/cura-stepper/cura-stepper.stories.js +0 -1
- package/dist/collection/components/cura-stepper/stepper.type.js +0 -1
- package/dist/collection/components/cura-toast/cura-toast.css +0 -0
- package/dist/collection/components/cura-toast/cura-toast.js +9 -10
- package/dist/collection/components/cura-toast/cura-toast.stories.js +0 -1
- package/dist/collection/components/cura-tooltip/cura-tooltip.css +0 -0
- package/dist/collection/components/cura-tooltip/cura-tooltip.js +8 -9
- package/dist/collection/components/cura-tooltip/cura-tooltip.stories.js +0 -1
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.css +0 -0
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js +19 -20
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.stories.js +0 -1
- package/dist/collection/components/forms/cura-forms.definitions.js +0 -1
- package/dist/collection/components/forms/cura-input-date/cura-input-date.css +0 -0
- package/dist/collection/components/forms/cura-input-date/cura-input-date.js +15 -16
- package/dist/collection/components/forms/cura-input-date/cura-input-date.stories.js +0 -1
- package/dist/collection/components/forms/cura-input-text/cura-input-text.css +0 -0
- package/dist/collection/components/forms/cura-input-text/cura-input-text.js +29 -30
- package/dist/collection/components/forms/cura-input-text/cura-input-text.stories.js +0 -1
- package/dist/collection/components/forms/cura-input-text/mask-presets/input-mask-presets.js +0 -1
- package/dist/collection/components/forms/cura-label/cura-label.css +0 -0
- package/dist/collection/components/forms/cura-label/cura-label.js +8 -9
- package/dist/collection/components/forms/cura-label/cura-label.stories.js +0 -1
- package/dist/collection/components/forms/cura-radio/cura-radio.css +0 -0
- package/dist/collection/components/forms/cura-radio/cura-radio.js +15 -16
- package/dist/collection/components/forms/cura-radio/cura-radio.stories.js +0 -1
- package/dist/collection/components/forms/cura-select/cura-select.css +0 -0
- package/dist/collection/components/forms/cura-select/cura-select.js +13 -14
- package/dist/collection/components/forms/cura-select/cura-select.stories.js +0 -1
- package/dist/collection/components/forms/cura-select-options/cura-select-option.css +0 -0
- package/dist/collection/components/forms/cura-select-options/cura-select-option.js +5 -6
- package/dist/collection/components/forms/cura-switch/cura-switch.css +0 -0
- package/dist/collection/components/forms/cura-switch/cura-switch.js +10 -11
- package/dist/collection/components/forms/cura-switch/cura-switch.stories.js +0 -1
- package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.css +0 -0
- package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js +2 -3
- package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.stories.js +0 -1
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.css +0 -0
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +2 -3
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.stories.js +0 -1
- package/dist/collection/components/tabs/cura-tabs/cura-tabs.css +0 -0
- package/dist/collection/components/tabs/cura-tabs/cura-tabs.js +9 -10
- package/dist/collection/components/tabs/cura-tabs/cura-tabs.stories.js +0 -1
- package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.css +0 -0
- package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.js +9 -10
- package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.stories.js +0 -1
- package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.css +0 -0
- package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.js +3 -4
- package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.stories.js +0 -1
- package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.css +0 -0
- package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.js +9 -10
- package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.stories.js +0 -1
- package/dist/collection/components/tabs/cura-tabs.definitions.js +0 -1
- package/dist/collection/components/text/cura-display/cura-display.css +0 -0
- package/dist/collection/components/text/cura-display/cura-display.js +7 -8
- package/dist/collection/components/text/cura-display/cura-display.stories.js +0 -1
- package/dist/collection/components/text/cura-heading/cura-heading.css +0 -0
- package/dist/collection/components/text/cura-heading/cura-heading.js +9 -10
- package/dist/collection/components/text/cura-heading/cura-heading.stories.js +0 -1
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.css +0 -0
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +7 -8
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js +0 -1
- package/dist/collection/index.js +0 -1
- package/dist/collection/rededor-cura-start.js +0 -1
- package/dist/collection/utils/FixedElementScrollBehavior.js +0 -1
- package/dist/collection/utils/utils.js +0 -1
- package/dist/components/cura-accordion-item.d.ts +0 -0
- package/dist/components/cura-accordion-item.js +1 -102
- package/dist/components/cura-accordion.d.ts +0 -0
- package/dist/components/cura-accordion.js +1 -144
- package/dist/components/cura-alert.d.ts +0 -0
- package/dist/components/cura-alert.js +1 -110
- package/dist/components/cura-avatar.d.ts +0 -0
- package/dist/components/cura-avatar.js +1 -112
- package/dist/components/cura-badge-counter.d.ts +0 -0
- package/dist/components/cura-badge-counter.js +1 -9
- package/dist/components/cura-badge-distance.d.ts +0 -0
- package/dist/components/cura-badge-distance.js +1 -73
- package/dist/components/cura-badge-dot.d.ts +0 -0
- package/dist/components/cura-badge-dot.js +1 -73
- package/dist/components/cura-badge-pill.d.ts +0 -0
- package/dist/components/cura-badge-pill.js +1 -9
- package/dist/components/cura-button-outline.d.ts +0 -0
- package/dist/components/cura-button-outline.js +1 -206
- package/dist/components/cura-button-select.d.ts +0 -0
- package/dist/components/cura-button-select.js +1 -163
- package/dist/components/cura-button-transparent.d.ts +0 -0
- package/dist/components/cura-button-transparent.js +1 -9
- package/dist/components/cura-button.d.ts +0 -0
- package/dist/components/cura-button.js +1 -205
- package/dist/components/cura-calendar.d.ts +0 -0
- package/dist/components/cura-calendar.js +1 -9
- package/dist/components/cura-card.d.ts +0 -0
- package/dist/components/cura-card.js +1 -104
- package/dist/components/cura-checkbox.d.ts +0 -0
- package/dist/components/cura-checkbox.js +1 -286
- package/dist/components/cura-display.d.ts +0 -0
- package/dist/components/cura-display.js +1 -128
- package/dist/components/cura-dropdown-search-category.d.ts +0 -0
- package/dist/components/cura-dropdown-search-category.js +1 -49
- package/dist/components/cura-dropdown-search-not-found.d.ts +0 -0
- package/dist/components/cura-dropdown-search-not-found.js +1 -48
- package/dist/components/cura-dropdown-search-option.d.ts +0 -0
- package/dist/components/cura-dropdown-search-option.js +1 -93
- package/dist/components/cura-dropdown-search.d.ts +0 -0
- package/dist/components/cura-dropdown-search.js +1 -467
- package/dist/components/cura-heading.d.ts +0 -0
- package/dist/components/cura-heading.js +1 -9
- package/dist/components/cura-icon.d.ts +0 -0
- package/dist/components/cura-icon.js +1 -9
- package/dist/components/cura-icons-view.d.ts +0 -0
- package/dist/components/cura-icons-view.js +1 -67
- package/dist/components/cura-input-date.d.ts +0 -0
- package/dist/components/cura-input-date.js +1 -286
- package/dist/components/cura-input-text.d.ts +0 -0
- package/dist/components/cura-input-text.js +1 -9
- package/dist/components/cura-label.d.ts +0 -0
- package/dist/components/cura-label.js +1 -9
- package/dist/components/cura-loader-bar.d.ts +0 -0
- package/dist/components/cura-loader-bar.js +1 -9
- package/dist/components/cura-loader-circle.d.ts +0 -0
- package/dist/components/cura-loader-circle.js +1 -9
- package/dist/components/cura-modal.d.ts +0 -0
- package/dist/components/cura-modal.js +1 -181
- package/dist/components/cura-page-template.d.ts +0 -0
- package/dist/components/cura-page-template.js +1 -50
- package/dist/components/cura-paragraph.d.ts +0 -0
- package/dist/components/cura-paragraph.js +1 -9
- package/dist/components/cura-progress-bar.d.ts +0 -0
- package/dist/components/cura-progress-bar.js +1 -9
- package/dist/components/cura-radio.d.ts +0 -0
- package/dist/components/cura-radio.js +1 -249
- package/dist/components/cura-select-option.d.ts +0 -0
- package/dist/components/cura-select-option.js +1 -9
- package/dist/components/cura-select.d.ts +0 -0
- package/dist/components/cura-select.js +1 -9
- package/dist/components/cura-stepper-item.d.ts +0 -0
- package/dist/components/cura-stepper-item.js +1 -9
- package/dist/components/cura-stepper.d.ts +0 -0
- package/dist/components/cura-stepper.js +1 -205
- package/dist/components/cura-switch.d.ts +0 -0
- package/dist/components/cura-switch.js +1 -201
- package/dist/components/cura-tabs-button.d.ts +0 -0
- package/dist/components/cura-tabs-button.js +1 -148
- package/dist/components/cura-tabs-group.d.ts +0 -0
- package/dist/components/cura-tabs-group.js +1 -64
- package/dist/components/cura-tabs-transparent.d.ts +0 -0
- package/dist/components/cura-tabs-transparent.js +1 -141
- package/dist/components/cura-tabs.d.ts +0 -0
- package/dist/components/cura-tabs.js +1 -146
- package/dist/components/cura-toast.d.ts +0 -0
- package/dist/components/cura-toast.js +1 -162
- package/dist/components/cura-tooltip.d.ts +0 -0
- package/dist/components/cura-tooltip.js +1 -291
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -115
- package/dist/components/p-B2RN7oe_.js +1 -0
- package/dist/components/p-B8xnU6YS.js +1 -0
- package/dist/components/p-BSI2FkNn.js +1 -11
- package/dist/components/p-BSdkRryc.js +1 -0
- package/dist/components/p-BYA8glxD.js +1 -0
- package/dist/components/p-Bf21UQXV.js +1 -0
- package/dist/components/p-C7so9xnO.js +1 -0
- package/dist/components/p-CCkEqDZb.js +1 -0
- package/dist/components/p-CG1lz5DR.js +1 -0
- package/dist/components/p-CHcd-uKK.js +1 -11
- package/dist/components/p-CpmZ68rD.js +1 -0
- package/dist/components/p-D6xuYQiO.js +1 -0
- package/dist/components/p-D7WNwjv-.js +1 -0
- package/dist/components/p-DBXUEjWh.js +1 -0
- package/dist/components/p-DXlGQp3a.js +1 -0
- package/dist/components/p-Dot54hbB.js +1 -19
- package/dist/components/p-DxJedO3K.js +1 -0
- package/dist/components/p-fR02COZb.js +1 -0
- package/dist/components/p-fn4zJrKE.js +1 -0
- package/dist/cura/cura.esm.js +1 -2
- package/dist/cura/index.esm.js +1 -2
- package/dist/cura/p-1dc9c478.entry.js +1 -0
- package/dist/cura/p-27ba7ef5.entry.js +1 -0
- package/dist/cura/p-2db704a6.entry.js +1 -0
- package/dist/cura/p-2e2e2b4d.entry.js +1 -0
- package/dist/cura/p-31373db7.entry.js +1 -0
- package/dist/cura/p-3a3202f0.entry.js +1 -0
- package/dist/cura/p-42e72d12.entry.js +1 -0
- package/dist/cura/p-5357f7bd.entry.js +1 -0
- package/dist/cura/p-54624944.entry.js +1 -0
- package/dist/cura/p-582f8b72.entry.js +1 -0
- package/dist/cura/p-7965fe63.entry.js +1 -0
- package/dist/cura/p-964stZ3D.js +1 -2
- package/dist/cura/p-9de85de6.entry.js +1 -0
- package/dist/cura/p-BM8Akv15.js +1 -0
- package/dist/cura/p-BSI2FkNn.js +1 -2
- package/dist/cura/p-BTIDzOyO.js +1 -0
- package/dist/cura/p-BxFVLGIR.js +2 -0
- package/dist/cura/p-CHcd-uKK.js +1 -2
- package/dist/cura/p-DQopj-k5.js +1 -0
- package/dist/cura/p-DfJS7YqS.js +1 -0
- package/dist/cura/p-Dot54hbB.js +1 -2
- package/dist/cura/p-b14ae206.entry.js +1 -0
- package/dist/cura/p-b7369d04.entry.js +1 -0
- package/dist/cura/p-bf99e8bf.entry.js +1 -0
- package/dist/cura/p-c18d7f16.entry.js +1 -0
- package/dist/cura/p-c247c93b.entry.js +1 -0
- package/dist/cura/p-cbe8c690.entry.js +1 -0
- package/dist/cura/p-d2f670f6.entry.js +1 -0
- package/dist/cura/p-d5c6d2b4.entry.js +1 -0
- package/dist/cura/p-ddf4d240.entry.js +1 -0
- package/dist/cura/p-f534123f.entry.js +1 -0
- package/dist/cura/p-f911a6c5.entry.js +1 -0
- package/dist/cura/p-sjLA93YY.js +1 -2
- package/dist/esm/app-globals-B7bpkHH3.js +67 -0
- package/dist/esm/cura-accordion_21.entry.js +266 -207
- package/dist/esm/cura-alert.entry.js +7 -8
- package/dist/esm/cura-badge-counter.entry.js +13 -10
- package/dist/esm/cura-badge-dot.entry.js +4 -7
- package/dist/esm/cura-badge-pill.entry.js +7 -8
- package/dist/esm/cura-button-outline.entry.js +15 -10
- package/dist/esm/cura-button-select.entry.js +10 -9
- package/dist/esm/cura-button.definitions-BSI2FkNn.js +0 -3
- package/dist/esm/cura-calendar.entry.js +12 -9
- package/dist/esm/cura-checkbox.entry.js +18 -11
- package/dist/esm/cura-display.entry.js +10 -9
- package/dist/esm/cura-dropdown-search-not-found.entry.js +4 -7
- package/dist/esm/cura-forms.definitions-Dot54hbB.js +0 -3
- package/dist/esm/cura-icon.definitions-sjLA93YY.js +0 -3
- package/dist/esm/cura-icons-view.entry.js +4 -7
- package/dist/esm/cura-input-date.entry.js +7 -8
- package/dist/esm/cura-loader-bar.entry.js +10 -9
- package/dist/esm/cura-modal.entry.js +19 -12
- package/dist/esm/cura-progress-bar_2.entry.js +6 -9
- package/dist/esm/cura-radio.entry.js +15 -10
- package/dist/esm/cura-stepper.entry.js +4 -7
- package/dist/esm/cura-switch.entry.js +13 -10
- package/dist/esm/cura-tabs-button.entry.js +7 -8
- package/dist/esm/cura-tabs-transparent.entry.js +7 -8
- package/dist/esm/cura-tabs.definitions-CHcd-uKK.js +0 -3
- package/dist/esm/{cura-theme-module-BPKQjAwN.js → cura-theme-module-BrK961-w.js} +3 -339
- package/dist/esm/cura-toast.entry.js +10 -9
- package/dist/esm/cura-tooltip.entry.js +4 -7
- package/dist/esm/cura.js +8 -8
- package/dist/esm/index-964stZ3D.js +0 -3
- package/dist/esm/{index-OdKytJIH.js → index-Ce1Pxw3V.js} +706 -579
- package/dist/esm/index.js +3 -4
- package/dist/esm/loader.js +7 -7
- package/dist/esm/static-DfJS7YqS.js +86 -0
- package/dist/esm/theme-legacy-default-BTIDzOyO.js +257 -0
- package/dist/index.cjs.js +0 -0
- package/dist/index.js +0 -0
- package/dist/loader/cdn.js +0 -0
- package/dist/loader/index.cjs.js +0 -0
- package/dist/loader/index.d.ts +0 -0
- package/dist/loader/index.es2017.js +0 -0
- package/dist/loader/index.js +0 -0
- package/dist/types/api/cura-api.d.ts +0 -0
- package/dist/types/api/cura-api.type.d.ts +0 -0
- package/dist/types/api/modules/cura-theme-breakpoints-module.d.ts +0 -0
- package/dist/types/api/modules/cura-theme-colors-module.d.ts +0 -0
- package/dist/types/api/modules/cura-theme-fonts-module.d.ts +0 -0
- package/dist/types/api/modules/cura-theme-module.d.ts +0 -0
- package/dist/types/api/modules/cura-theme-spacing-module.d.ts +0 -0
- package/dist/types/api/theme-presets/static.d.ts +0 -0
- package/dist/types/api/theme-presets/theme-default.d.ts +0 -0
- package/dist/types/api/theme-presets/theme-legacy-default.d.ts +0 -0
- package/dist/types/api/theme-presets/theme-maternity.d.ts +0 -0
- package/dist/types/api/theme-presets/theme-oncology.d.ts +0 -0
- package/dist/types/api/theme-presets/theme-perinatal-temporary.d.ts +0 -0
- package/dist/types/api/theme-presets/theme-presets.d.ts +0 -0
- package/dist/types/api/theme-presets/theme-richet.d.ts +0 -0
- package/dist/types/assets/icons/iconset-default-list.d.ts +0 -0
- package/dist/types/components/accordion/cura-accordion/cura-accordion.d.ts +0 -0
- package/dist/types/components/accordion/cura-accordion/cura-accordion.stories.d.ts +0 -0
- package/dist/types/components/accordion/cura-accordion-item/cura-accordion-item.d.ts +0 -0
- package/dist/types/components/badges/cura-badge-counter/cura-badge-counter.d.ts +0 -0
- package/dist/types/components/badges/cura-badge-counter/cura-badge-counter.stories.d.ts +0 -0
- package/dist/types/components/badges/cura-badge-distance/cura-badge-distance.d.ts +0 -0
- package/dist/types/components/badges/cura-badge-distance/cura-badge-distance.stories.d.ts +0 -0
- package/dist/types/components/badges/cura-badge-dot/cura-badge-dot.d.ts +0 -0
- package/dist/types/components/badges/cura-badge-dot/cura-badge-dot.stories.d.ts +0 -0
- package/dist/types/components/badges/cura-badge-pill/cura-badge-pill.d.ts +0 -0
- package/dist/types/components/badges/cura-badge-pill/cura-badge-pill.stories.d.ts +0 -0
- package/dist/types/components/buttons/cura-button/cura-button.d.ts +0 -0
- package/dist/types/components/buttons/cura-button/cura-button.stories.d.ts +0 -0
- package/dist/types/components/buttons/cura-button-outline/cura-button-outline.d.ts +0 -0
- package/dist/types/components/buttons/cura-button-outline/cura-button-outline.stories.d.ts +0 -0
- package/dist/types/components/buttons/cura-button-select/cura-button-select.d.ts +0 -0
- package/dist/types/components/buttons/cura-button-select/cura-button-select.stories.d.ts +0 -0
- package/dist/types/components/buttons/cura-button-transparent/cura-button-transparent.d.ts +0 -0
- package/dist/types/components/buttons/cura-button-transparent/cura-button-transparent.stories.d.ts +0 -0
- package/dist/types/components/buttons/cura-button.definitions.d.ts +0 -0
- package/dist/types/components/cura-alert/cura-alert.d.ts +0 -0
- package/dist/types/components/cura-alert/cura-alert.stories.d.ts +0 -0
- package/dist/types/components/cura-avatar/cura-avatar.d.ts +0 -0
- package/dist/types/components/cura-avatar/cura-avatar.definitions.d.ts +0 -0
- package/dist/types/components/cura-avatar/cura-avatar.stories.d.ts +0 -0
- package/dist/types/components/cura-calendar/cura-calendar.d.ts +0 -0
- package/dist/types/components/cura-calendar/cura-calendar.stories.d.ts +0 -0
- package/dist/types/components/cura-card/cura-card.d.ts +0 -0
- package/dist/types/components/cura-card/cura-card.stories.d.ts +0 -0
- package/dist/types/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.d.ts +0 -0
- package/dist/types/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.stories.d.ts +0 -0
- package/dist/types/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.d.ts +0 -0
- package/dist/types/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.stories.d.ts +0 -0
- package/dist/types/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.d.ts +0 -0
- package/dist/types/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.stories.d.ts +0 -0
- package/dist/types/components/cura-dropdown-search/cura-dropdown-search.d.ts +0 -0
- package/dist/types/components/cura-dropdown-search/cura-dropdown-search.stories.d.ts +0 -0
- package/dist/types/components/cura-icon/cura-icon.d.ts +0 -0
- package/dist/types/components/cura-icon/cura-icon.definitions.d.ts +0 -0
- package/dist/types/components/cura-icon/cura-icon.stories.d.ts +0 -0
- package/dist/types/components/cura-icons-view/cura-icons-view.d.ts +0 -0
- package/dist/types/components/cura-icons-view/cura-icons-view.stories.d.ts +0 -0
- package/dist/types/components/cura-modal/cura-modal.d.ts +0 -0
- package/dist/types/components/cura-modal/cura-modal.stories.d.ts +0 -0
- package/dist/types/components/cura-page-template/cura-page-template.d.ts +0 -0
- package/dist/types/components/cura-stepper/cura-progress-bar/cura-progress-bar.d.ts +0 -0
- package/dist/types/components/cura-stepper/cura-stepper-item/cura-stepper-item.d.ts +0 -0
- package/dist/types/components/cura-stepper/cura-stepper.d.ts +0 -0
- package/dist/types/components/cura-stepper/cura-stepper.stories.d.ts +0 -0
- package/dist/types/components/cura-stepper/stepper.type.d.ts +0 -0
- package/dist/types/components/cura-toast/cura-toast.d.ts +0 -0
- package/dist/types/components/cura-toast/cura-toast.stories.d.ts +0 -0
- package/dist/types/components/cura-tooltip/cura-tooltip.d.ts +0 -0
- package/dist/types/components/cura-tooltip/cura-tooltip.stories.d.ts +0 -0
- package/dist/types/components/forms/cura-checkbox/cura-checkbox.d.ts +0 -0
- package/dist/types/components/forms/cura-checkbox/cura-checkbox.stories.d.ts +0 -0
- package/dist/types/components/forms/cura-forms.definitions.d.ts +0 -0
- package/dist/types/components/forms/cura-input-date/cura-input-date.d.ts +0 -0
- package/dist/types/components/forms/cura-input-date/cura-input-date.stories.d.ts +0 -0
- package/dist/types/components/forms/cura-input-text/cura-input-text.d.ts +0 -0
- package/dist/types/components/forms/cura-input-text/cura-input-text.stories.d.ts +0 -0
- package/dist/types/components/forms/cura-input-text/mask-presets/input-mask-presets.d.ts +0 -0
- package/dist/types/components/forms/cura-label/cura-label.d.ts +0 -0
- package/dist/types/components/forms/cura-label/cura-label.stories.d.ts +0 -0
- package/dist/types/components/forms/cura-radio/cura-radio.d.ts +0 -0
- package/dist/types/components/forms/cura-radio/cura-radio.stories.d.ts +0 -0
- package/dist/types/components/forms/cura-select/cura-select.d.ts +0 -0
- package/dist/types/components/forms/cura-select/cura-select.stories.d.ts +0 -0
- package/dist/types/components/forms/cura-select-options/cura-select-option.d.ts +0 -0
- package/dist/types/components/forms/cura-switch/cura-switch.d.ts +0 -0
- package/dist/types/components/forms/cura-switch/cura-switch.stories.d.ts +0 -0
- package/dist/types/components/loaders/cura-loader-bar/cura-loader-bar.d.ts +0 -0
- package/dist/types/components/loaders/cura-loader-bar/cura-loader-bar.stories.d.ts +0 -0
- package/dist/types/components/loaders/cura-loader-circle/cura-loader-circle.d.ts +0 -0
- package/dist/types/components/loaders/cura-loader-circle/cura-loader-circle.stories.d.ts +0 -0
- package/dist/types/components/tabs/cura-tabs/cura-tabs.d.ts +0 -0
- package/dist/types/components/tabs/cura-tabs/cura-tabs.stories.d.ts +0 -0
- package/dist/types/components/tabs/cura-tabs-button/cura-tabs-button.d.ts +0 -0
- package/dist/types/components/tabs/cura-tabs-button/cura-tabs-button.stories.d.ts +0 -0
- package/dist/types/components/tabs/cura-tabs-group/cura-tabs-group.d.ts +0 -0
- package/dist/types/components/tabs/cura-tabs-group/cura-tabs-group.stories.d.ts +0 -0
- package/dist/types/components/tabs/cura-tabs-transparent/cura-tabs-transparent.d.ts +0 -0
- package/dist/types/components/tabs/cura-tabs-transparent/cura-tabs-transparent.stories.d.ts +0 -0
- package/dist/types/components/tabs/cura-tabs.definitions.d.ts +0 -0
- package/dist/types/components/text/cura-display/cura-display.d.ts +0 -0
- package/dist/types/components/text/cura-display/cura-display.stories.d.ts +0 -0
- package/dist/types/components/text/cura-heading/cura-heading.d.ts +0 -0
- package/dist/types/components/text/cura-heading/cura-heading.stories.d.ts +0 -0
- package/dist/types/components/text/cura-paragraph/cura-paragraph.d.ts +0 -0
- package/dist/types/components/text/cura-paragraph/cura-paragraph.stories.d.ts +0 -0
- package/dist/types/components.d.ts +559 -85
- package/dist/types/index.d.ts +0 -0
- package/dist/types/rededor-cura-start.d.ts +0 -0
- package/dist/types/stencil-public-runtime.d.ts +169 -11
- package/dist/types/utils/FixedElementScrollBehavior.d.ts +0 -0
- package/dist/types/utils/utils.d.ts +0 -0
- package/package.json +4 -3
- package/dist/cjs/cura-accordion_21.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-alert.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-alert.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-badge-counter.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-badge-counter.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-badge-dot.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-badge-dot.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-badge-pill.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-badge-pill.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-button-outline.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-button-outline.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-button-select.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-button-select.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-button.definitions-B3SK8MaV.js.map +0 -1
- package/dist/cjs/cura-calendar.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-calendar.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-checkbox.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-checkbox.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-display.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-display.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-dropdown-search-not-found.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-dropdown-search-not-found.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-forms.definitions-DVLuO67c.js.map +0 -1
- package/dist/cjs/cura-icon.definitions-DT0wF67y.js.map +0 -1
- package/dist/cjs/cura-icons-view.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-icons-view.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-input-date.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-input-date.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-loader-bar.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-loader-bar.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-modal.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-progress-bar.cura-stepper-item.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-progress-bar_2.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-radio.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-radio.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-stepper.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-stepper.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-switch.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-switch.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-tabs-button.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-tabs-button.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-tabs-transparent.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-tabs-transparent.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-tabs.definitions-CGqqGE2e.js.map +0 -1
- package/dist/cjs/cura-theme-module-CJkmAxBA.js +0 -574
- package/dist/cjs/cura-theme-module-CJkmAxBA.js.map +0 -1
- package/dist/cjs/cura-toast.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-toast.entry.cjs.js.map +0 -1
- package/dist/cjs/cura-tooltip.cjs.entry.js.map +0 -1
- package/dist/cjs/cura-tooltip.entry.cjs.js.map +0 -1
- package/dist/cjs/cura.cjs.js.map +0 -1
- package/dist/cjs/index-BK9MSAiE.js.map +0 -1
- package/dist/cjs/index-EyP6Zlkd.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/collection/api/cura-api.js.map +0 -1
- package/dist/collection/api/cura-api.type.js.map +0 -1
- package/dist/collection/api/modules/cura-theme-breakpoints-module.js.map +0 -1
- package/dist/collection/api/modules/cura-theme-colors-module.js.map +0 -1
- package/dist/collection/api/modules/cura-theme-fonts-module.js.map +0 -1
- package/dist/collection/api/modules/cura-theme-module.js.map +0 -1
- package/dist/collection/api/modules/cura-theme-spacing-module.js.map +0 -1
- package/dist/collection/api/theme-presets/static.js.map +0 -1
- package/dist/collection/api/theme-presets/theme-default.js.map +0 -1
- package/dist/collection/api/theme-presets/theme-legacy-default.js.map +0 -1
- package/dist/collection/api/theme-presets/theme-maternity.js.map +0 -1
- package/dist/collection/api/theme-presets/theme-oncology.js.map +0 -1
- package/dist/collection/api/theme-presets/theme-perinatal-temporary.js.map +0 -1
- package/dist/collection/api/theme-presets/theme-presets.js.map +0 -1
- package/dist/collection/api/theme-presets/theme-richet.js.map +0 -1
- package/dist/collection/assets/icons/iconset-default-list.js.map +0 -1
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.js.map +0 -1
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.stories.js.map +0 -1
- package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js.map +0 -1
- package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.js.map +0 -1
- package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.stories.js.map +0 -1
- package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.js.map +0 -1
- package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.stories.js.map +0 -1
- package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.js.map +0 -1
- package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.stories.js.map +0 -1
- package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js.map +0 -1
- package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.stories.js.map +0 -1
- package/dist/collection/components/buttons/cura-button/cura-button.js.map +0 -1
- package/dist/collection/components/buttons/cura-button/cura-button.stories.js.map +0 -1
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js.map +0 -1
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js.map +0 -1
- package/dist/collection/components/buttons/cura-button-select/cura-button-select.js.map +0 -1
- package/dist/collection/components/buttons/cura-button-select/cura-button-select.stories.js.map +0 -1
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js.map +0 -1
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js.map +0 -1
- package/dist/collection/components/buttons/cura-button.definitions.js.map +0 -1
- package/dist/collection/components/cura-alert/cura-alert.js.map +0 -1
- package/dist/collection/components/cura-alert/cura-alert.stories.js.map +0 -1
- package/dist/collection/components/cura-avatar/cura-avatar.definitions.js.map +0 -1
- package/dist/collection/components/cura-avatar/cura-avatar.js.map +0 -1
- package/dist/collection/components/cura-avatar/cura-avatar.stories.js.map +0 -1
- package/dist/collection/components/cura-calendar/cura-calendar.js.map +0 -1
- package/dist/collection/components/cura-calendar/cura-calendar.stories.js.map +0 -1
- package/dist/collection/components/cura-card/cura-card.js.map +0 -1
- package/dist/collection/components/cura-card/cura-card.stories.js.map +0 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.js.map +0 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.stories.js.map +0 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.js.map +0 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.stories.js.map +0 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js.map +0 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.stories.js.map +0 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.js.map +0 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.stories.js.map +0 -1
- package/dist/collection/components/cura-icon/cura-icon.definitions.js.map +0 -1
- package/dist/collection/components/cura-icon/cura-icon.js.map +0 -1
- package/dist/collection/components/cura-icon/cura-icon.stories.js.map +0 -1
- package/dist/collection/components/cura-icons-view/cura-icons-view.js.map +0 -1
- package/dist/collection/components/cura-icons-view/cura-icons-view.stories.js.map +0 -1
- package/dist/collection/components/cura-modal/cura-modal.js.map +0 -1
- package/dist/collection/components/cura-modal/cura-modal.stories.js.map +0 -1
- package/dist/collection/components/cura-page-template/cura-page-template.js.map +0 -1
- package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.js.map +0 -1
- package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.js.map +0 -1
- package/dist/collection/components/cura-stepper/cura-stepper.js.map +0 -1
- package/dist/collection/components/cura-stepper/cura-stepper.stories.js.map +0 -1
- package/dist/collection/components/cura-stepper/stepper.type.js.map +0 -1
- package/dist/collection/components/cura-toast/cura-toast.js.map +0 -1
- package/dist/collection/components/cura-toast/cura-toast.stories.js.map +0 -1
- package/dist/collection/components/cura-tooltip/cura-tooltip.js.map +0 -1
- package/dist/collection/components/cura-tooltip/cura-tooltip.stories.js.map +0 -1
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js.map +0 -1
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.stories.js.map +0 -1
- package/dist/collection/components/forms/cura-forms.definitions.js.map +0 -1
- package/dist/collection/components/forms/cura-input-date/cura-input-date.js.map +0 -1
- package/dist/collection/components/forms/cura-input-date/cura-input-date.stories.js.map +0 -1
- package/dist/collection/components/forms/cura-input-text/cura-input-text.js.map +0 -1
- package/dist/collection/components/forms/cura-input-text/cura-input-text.stories.js.map +0 -1
- package/dist/collection/components/forms/cura-input-text/mask-presets/input-mask-presets.js.map +0 -1
- package/dist/collection/components/forms/cura-label/cura-label.js.map +0 -1
- package/dist/collection/components/forms/cura-label/cura-label.stories.js.map +0 -1
- package/dist/collection/components/forms/cura-radio/cura-radio.js.map +0 -1
- package/dist/collection/components/forms/cura-radio/cura-radio.stories.js.map +0 -1
- package/dist/collection/components/forms/cura-select/cura-select.js.map +0 -1
- package/dist/collection/components/forms/cura-select/cura-select.stories.js.map +0 -1
- package/dist/collection/components/forms/cura-select-options/cura-select-option.js.map +0 -1
- package/dist/collection/components/forms/cura-switch/cura-switch.js.map +0 -1
- package/dist/collection/components/forms/cura-switch/cura-switch.stories.js.map +0 -1
- package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js.map +0 -1
- package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.stories.js.map +0 -1
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js.map +0 -1
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.stories.js.map +0 -1
- package/dist/collection/components/tabs/cura-tabs/cura-tabs.js.map +0 -1
- package/dist/collection/components/tabs/cura-tabs/cura-tabs.stories.js.map +0 -1
- package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.js.map +0 -1
- package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.stories.js.map +0 -1
- package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.js.map +0 -1
- package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.stories.js.map +0 -1
- package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.js.map +0 -1
- package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.stories.js.map +0 -1
- package/dist/collection/components/tabs/cura-tabs.definitions.js.map +0 -1
- package/dist/collection/components/text/cura-display/cura-display.js.map +0 -1
- package/dist/collection/components/text/cura-display/cura-display.stories.js.map +0 -1
- package/dist/collection/components/text/cura-heading/cura-heading.js.map +0 -1
- package/dist/collection/components/text/cura-heading/cura-heading.stories.js.map +0 -1
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js.map +0 -1
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/rededor-cura-start.js.map +0 -1
- package/dist/collection/utils/FixedElementScrollBehavior.js.map +0 -1
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/components/cura-accordion-item.js.map +0 -1
- package/dist/components/cura-accordion.js.map +0 -1
- package/dist/components/cura-alert.js.map +0 -1
- package/dist/components/cura-avatar.js.map +0 -1
- package/dist/components/cura-badge-counter.js.map +0 -1
- package/dist/components/cura-badge-distance.js.map +0 -1
- package/dist/components/cura-badge-dot.js.map +0 -1
- package/dist/components/cura-badge-pill.js.map +0 -1
- package/dist/components/cura-button-outline.js.map +0 -1
- package/dist/components/cura-button-select.js.map +0 -1
- package/dist/components/cura-button-transparent.js.map +0 -1
- package/dist/components/cura-button.js.map +0 -1
- package/dist/components/cura-calendar.js.map +0 -1
- package/dist/components/cura-card.js.map +0 -1
- package/dist/components/cura-checkbox.js.map +0 -1
- package/dist/components/cura-display.js.map +0 -1
- package/dist/components/cura-dropdown-search-category.js.map +0 -1
- package/dist/components/cura-dropdown-search-not-found.js.map +0 -1
- package/dist/components/cura-dropdown-search-option.js.map +0 -1
- package/dist/components/cura-dropdown-search.js.map +0 -1
- package/dist/components/cura-heading.js.map +0 -1
- package/dist/components/cura-icon.js.map +0 -1
- package/dist/components/cura-icons-view.js.map +0 -1
- package/dist/components/cura-input-date.js.map +0 -1
- package/dist/components/cura-input-text.js.map +0 -1
- package/dist/components/cura-label.js.map +0 -1
- package/dist/components/cura-loader-bar.js.map +0 -1
- package/dist/components/cura-loader-circle.js.map +0 -1
- package/dist/components/cura-modal.js.map +0 -1
- package/dist/components/cura-page-template.js.map +0 -1
- package/dist/components/cura-paragraph.js.map +0 -1
- package/dist/components/cura-progress-bar.js.map +0 -1
- package/dist/components/cura-radio.js.map +0 -1
- package/dist/components/cura-select-option.js.map +0 -1
- package/dist/components/cura-select.js.map +0 -1
- package/dist/components/cura-stepper-item.js.map +0 -1
- package/dist/components/cura-stepper.js.map +0 -1
- package/dist/components/cura-switch.js.map +0 -1
- package/dist/components/cura-tabs-button.js.map +0 -1
- package/dist/components/cura-tabs-group.js.map +0 -1
- package/dist/components/cura-tabs-transparent.js.map +0 -1
- package/dist/components/cura-tabs.js.map +0 -1
- package/dist/components/cura-toast.js.map +0 -1
- package/dist/components/cura-tooltip.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/p-B5aO1chh.js +0 -85
- package/dist/components/p-B5aO1chh.js.map +0 -1
- package/dist/components/p-BHEafDKD.js +0 -127
- package/dist/components/p-BHEafDKD.js.map +0 -1
- package/dist/components/p-BRDqwZ4N.js +0 -187
- package/dist/components/p-BRDqwZ4N.js.map +0 -1
- package/dist/components/p-BSI2FkNn.js.map +0 -1
- package/dist/components/p-BrJsfk5q.js +0 -4140
- package/dist/components/p-BrJsfk5q.js.map +0 -1
- package/dist/components/p-C72aF-gL.js +0 -99
- package/dist/components/p-C72aF-gL.js.map +0 -1
- package/dist/components/p-CHcd-uKK.js.map +0 -1
- package/dist/components/p-CvdWbsfO.js +0 -2147
- package/dist/components/p-CvdWbsfO.js.map +0 -1
- package/dist/components/p-D1cPOZpG.js +0 -2617
- package/dist/components/p-D1cPOZpG.js.map +0 -1
- package/dist/components/p-DETZu2ie.js +0 -7032
- package/dist/components/p-DETZu2ie.js.map +0 -1
- package/dist/components/p-DI4g-ZH4.js +0 -101
- package/dist/components/p-DI4g-ZH4.js.map +0 -1
- package/dist/components/p-DR1RHrEX.js +0 -120
- package/dist/components/p-DR1RHrEX.js.map +0 -1
- package/dist/components/p-DaPc6Dxl.js +0 -125
- package/dist/components/p-DaPc6Dxl.js.map +0 -1
- package/dist/components/p-Dot54hbB.js.map +0 -1
- package/dist/components/p-Dqm2sAwv.js +0 -58
- package/dist/components/p-Dqm2sAwv.js.map +0 -1
- package/dist/components/p-Dt450DkQ.js +0 -86
- package/dist/components/p-Dt450DkQ.js.map +0 -1
- package/dist/components/p-FTSrgi0q.js +0 -51
- package/dist/components/p-FTSrgi0q.js.map +0 -1
- package/dist/components/p-KIQMkSRF.js +0 -64
- package/dist/components/p-KIQMkSRF.js.map +0 -1
- package/dist/components/p-cOEGtL9C.js +0 -131
- package/dist/components/p-cOEGtL9C.js.map +0 -1
- package/dist/cura/cura-alert.entry.esm.js.map +0 -1
- package/dist/cura/cura-badge-counter.entry.esm.js.map +0 -1
- package/dist/cura/cura-badge-dot.entry.esm.js.map +0 -1
- package/dist/cura/cura-badge-pill.entry.esm.js.map +0 -1
- package/dist/cura/cura-button-outline.entry.esm.js.map +0 -1
- package/dist/cura/cura-button-select.entry.esm.js.map +0 -1
- package/dist/cura/cura-calendar.entry.esm.js.map +0 -1
- package/dist/cura/cura-checkbox.entry.esm.js.map +0 -1
- package/dist/cura/cura-display.entry.esm.js.map +0 -1
- package/dist/cura/cura-dropdown-search-not-found.entry.esm.js.map +0 -1
- package/dist/cura/cura-icons-view.entry.esm.js.map +0 -1
- package/dist/cura/cura-input-date.entry.esm.js.map +0 -1
- package/dist/cura/cura-loader-bar.entry.esm.js.map +0 -1
- package/dist/cura/cura-modal.entry.esm.js.map +0 -1
- package/dist/cura/cura-progress-bar.cura-stepper-item.entry.esm.js.map +0 -1
- package/dist/cura/cura-radio.entry.esm.js.map +0 -1
- package/dist/cura/cura-stepper.entry.esm.js.map +0 -1
- package/dist/cura/cura-switch.entry.esm.js.map +0 -1
- package/dist/cura/cura-tabs-button.entry.esm.js.map +0 -1
- package/dist/cura/cura-tabs-transparent.entry.esm.js.map +0 -1
- package/dist/cura/cura-toast.entry.esm.js.map +0 -1
- package/dist/cura/cura-tooltip.entry.esm.js.map +0 -1
- package/dist/cura/cura.esm.js.map +0 -1
- package/dist/cura/index.esm.js.map +0 -1
- package/dist/cura/loader.esm.js.map +0 -1
- package/dist/cura/p-077019da.entry.js +0 -2
- package/dist/cura/p-077019da.entry.js.map +0 -1
- package/dist/cura/p-07783235.entry.js +0 -2
- package/dist/cura/p-07783235.entry.js.map +0 -1
- package/dist/cura/p-090e297c.entry.js +0 -2
- package/dist/cura/p-090e297c.entry.js.map +0 -1
- package/dist/cura/p-16c0b52c.entry.js +0 -2
- package/dist/cura/p-16c0b52c.entry.js.map +0 -1
- package/dist/cura/p-32015dcc.entry.js +0 -2
- package/dist/cura/p-32015dcc.entry.js.map +0 -1
- package/dist/cura/p-32f94709.entry.js +0 -2
- package/dist/cura/p-32f94709.entry.js.map +0 -1
- package/dist/cura/p-3d6040e2.entry.js +0 -2
- package/dist/cura/p-3d6040e2.entry.js.map +0 -1
- package/dist/cura/p-4ac578a6.entry.js +0 -2
- package/dist/cura/p-4ac578a6.entry.js.map +0 -1
- package/dist/cura/p-4bde448e.entry.js +0 -2
- package/dist/cura/p-4bde448e.entry.js.map +0 -1
- package/dist/cura/p-5ed7ce95.entry.js +0 -2
- package/dist/cura/p-5ed7ce95.entry.js.map +0 -1
- package/dist/cura/p-7586fd07.entry.js +0 -2
- package/dist/cura/p-7586fd07.entry.js.map +0 -1
- package/dist/cura/p-76603652.entry.js +0 -2
- package/dist/cura/p-76603652.entry.js.map +0 -1
- package/dist/cura/p-76cbb798.entry.js +0 -2
- package/dist/cura/p-76cbb798.entry.js.map +0 -1
- package/dist/cura/p-7fd143aa.entry.js +0 -2
- package/dist/cura/p-7fd143aa.entry.js.map +0 -1
- package/dist/cura/p-8c83f259.entry.js +0 -2
- package/dist/cura/p-8c83f259.entry.js.map +0 -1
- package/dist/cura/p-8d10a5a2.entry.js +0 -2
- package/dist/cura/p-8d10a5a2.entry.js.map +0 -1
- package/dist/cura/p-95cd7918.entry.js +0 -2
- package/dist/cura/p-95cd7918.entry.js.map +0 -1
- package/dist/cura/p-964stZ3D.js.map +0 -1
- package/dist/cura/p-9ef5444e.entry.js +0 -2
- package/dist/cura/p-9ef5444e.entry.js.map +0 -1
- package/dist/cura/p-BPKQjAwN.js +0 -2
- package/dist/cura/p-BPKQjAwN.js.map +0 -1
- package/dist/cura/p-BSI2FkNn.js.map +0 -1
- package/dist/cura/p-CHcd-uKK.js.map +0 -1
- package/dist/cura/p-Dot54hbB.js.map +0 -1
- package/dist/cura/p-PPMZr_VE.js +0 -3
- package/dist/cura/p-PPMZr_VE.js.map +0 -1
- package/dist/cura/p-bdfe9af2.entry.js +0 -2
- package/dist/cura/p-bdfe9af2.entry.js.map +0 -1
- package/dist/cura/p-c6f240f0.entry.js +0 -2
- package/dist/cura/p-c6f240f0.entry.js.map +0 -1
- package/dist/cura/p-ceb646df.entry.js +0 -2
- package/dist/cura/p-ceb646df.entry.js.map +0 -1
- package/dist/cura/p-d040f8b9.entry.js +0 -2
- package/dist/cura/p-d040f8b9.entry.js.map +0 -1
- package/dist/cura/p-f9af3a3b.entry.js +0 -2
- package/dist/cura/p-f9af3a3b.entry.js.map +0 -1
- package/dist/cura/p-sjLA93YY.js.map +0 -1
- package/dist/esm/cura-accordion_21.entry.js.map +0 -1
- package/dist/esm/cura-alert.entry.js.map +0 -1
- package/dist/esm/cura-badge-counter.entry.js.map +0 -1
- package/dist/esm/cura-badge-dot.entry.js.map +0 -1
- package/dist/esm/cura-badge-pill.entry.js.map +0 -1
- package/dist/esm/cura-button-outline.entry.js.map +0 -1
- package/dist/esm/cura-button-select.entry.js.map +0 -1
- package/dist/esm/cura-button.definitions-BSI2FkNn.js.map +0 -1
- package/dist/esm/cura-calendar.entry.js.map +0 -1
- package/dist/esm/cura-checkbox.entry.js.map +0 -1
- package/dist/esm/cura-display.entry.js.map +0 -1
- package/dist/esm/cura-dropdown-search-not-found.entry.js.map +0 -1
- package/dist/esm/cura-forms.definitions-Dot54hbB.js.map +0 -1
- package/dist/esm/cura-icon.definitions-sjLA93YY.js.map +0 -1
- package/dist/esm/cura-icons-view.entry.js.map +0 -1
- package/dist/esm/cura-input-date.entry.js.map +0 -1
- package/dist/esm/cura-loader-bar.entry.js.map +0 -1
- package/dist/esm/cura-modal.entry.js.map +0 -1
- package/dist/esm/cura-progress-bar.cura-stepper-item.entry.js.map +0 -1
- package/dist/esm/cura-progress-bar_2.entry.js.map +0 -1
- package/dist/esm/cura-radio.entry.js.map +0 -1
- package/dist/esm/cura-stepper.entry.js.map +0 -1
- package/dist/esm/cura-switch.entry.js.map +0 -1
- package/dist/esm/cura-tabs-button.entry.js.map +0 -1
- package/dist/esm/cura-tabs-transparent.entry.js.map +0 -1
- package/dist/esm/cura-tabs.definitions-CHcd-uKK.js.map +0 -1
- package/dist/esm/cura-theme-module-BPKQjAwN.js.map +0 -1
- package/dist/esm/cura-toast.entry.js.map +0 -1
- package/dist/esm/cura-tooltip.entry.js.map +0 -1
- package/dist/esm/cura.js.map +0 -1
- package/dist/esm/index-964stZ3D.js.map +0 -1
- package/dist/esm/index-OdKytJIH.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
|
@@ -1,82 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
require('./theme-legacy-default-COE-hjD7.js');
|
|
4
4
|
|
|
5
5
|
const NAMESPACE = 'cura';
|
|
6
|
-
const BUILD = /* cura */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true};
|
|
7
|
-
|
|
8
|
-
class CuraAPI {
|
|
9
|
-
constructor(config) {
|
|
10
|
-
this.localAssetsPath = config && config.localAssetsPath ? config.localAssetsPath : `/assets`;
|
|
11
|
-
const themeModule = new curaThemeModule.CuraThemeModule();
|
|
12
|
-
this.theme = {
|
|
13
|
-
load: function (themeTag) { themeModule.load(themeTag); },
|
|
14
|
-
setCustom: function (customThemeDefinitions) { themeModule.setCustom(customThemeDefinitions); },
|
|
15
|
-
colors: {
|
|
16
|
-
getColor: function (colorWithDepth, opacity) { return themeModule.colors.getColor(colorWithDepth, opacity); },
|
|
17
|
-
},
|
|
18
|
-
fonts: {
|
|
19
|
-
getFamily: function (type) { return themeModule.fonts.getFamily(type); },
|
|
20
|
-
getWeights: function () { return themeModule.fonts.getWeights(); },
|
|
21
|
-
getSize: function () { return themeModule.fonts.getSize(); },
|
|
22
|
-
getColor: function () { return themeModule.fonts.getColor(); }
|
|
23
|
-
},
|
|
24
|
-
spacing: {
|
|
25
|
-
getSpacing: function () { return themeModule.spacing.getSpacing(); },
|
|
26
|
-
},
|
|
27
|
-
breakpoints: {
|
|
28
|
-
get: function (size, position) { return themeModule.breakpoints.get(size, position); }
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
this._addGlobalClasses();
|
|
32
|
-
if (config && config.customTheme) {
|
|
33
|
-
this.theme.setCustom(config.customTheme);
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
const theme = config && config.theme ? config.theme : 'default';
|
|
37
|
-
this.theme.load(theme);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
_addGlobalClasses() {
|
|
41
|
-
const styleId = "cura_global_classes";
|
|
42
|
-
let styleElement = document.head.querySelector(`#${styleId}`);
|
|
43
|
-
if (!styleElement) {
|
|
44
|
-
styleElement = document.createElement("style");
|
|
45
|
-
styleElement.id = styleId;
|
|
46
|
-
styleElement.textContent = `
|
|
47
|
-
.cura-body-scroll-lock {
|
|
48
|
-
overflow: hidden;
|
|
49
|
-
position: fixed;
|
|
50
|
-
left: 0;
|
|
51
|
-
right: 0;
|
|
52
|
-
top: 0;
|
|
53
|
-
}
|
|
54
|
-
`;
|
|
55
|
-
document.head.appendChild(styleElement);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
function appGlobalScript () {
|
|
61
|
-
const config = window.CuraInit;
|
|
62
|
-
window.CuraAPI = config ? new CuraAPI(config) : new CuraAPI();
|
|
63
|
-
const api = window.CuraAPI;
|
|
64
|
-
window.dispatchEvent(new CustomEvent("CuraAPIReady", { detail: { api } }));
|
|
65
|
-
if (config && typeof config.onReady === 'function')
|
|
66
|
-
config.onReady(api);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
const globalScripts = appGlobalScript;
|
|
70
|
-
const globalStyles = null;
|
|
6
|
+
const BUILD = /* cura */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, state: true, updatable: true};
|
|
71
7
|
|
|
72
8
|
/*
|
|
73
|
-
Stencil Client Platform v4.
|
|
9
|
+
Stencil Client Platform v4.43.3 | MIT Licensed | https://stenciljs.com
|
|
74
10
|
*/
|
|
75
|
-
|
|
76
|
-
var __export = (target, all) => {
|
|
77
|
-
for (var name in all)
|
|
78
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
79
|
-
};
|
|
11
|
+
|
|
80
12
|
|
|
81
13
|
// src/utils/constants.ts
|
|
82
14
|
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
@@ -106,6 +38,47 @@ var TYPE_CONSTANT = "type";
|
|
|
106
38
|
var VALUE_CONSTANT = "value";
|
|
107
39
|
var SERIALIZED_PREFIX = "serialized:";
|
|
108
40
|
|
|
41
|
+
// src/utils/get-prop-descriptor.ts
|
|
42
|
+
function getPropertyDescriptor(obj, memberName, getOnly) {
|
|
43
|
+
const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
|
|
44
|
+
while (obj && obj !== stopAt) {
|
|
45
|
+
const desc = Object.getOwnPropertyDescriptor(obj, memberName);
|
|
46
|
+
if (desc && (!getOnly || desc.get)) return desc;
|
|
47
|
+
obj = Object.getPrototypeOf(obj);
|
|
48
|
+
}
|
|
49
|
+
return void 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// src/utils/es2022-rewire-class-members.ts
|
|
53
|
+
var reWireGetterSetter = (instance, hostRef) => {
|
|
54
|
+
var _a;
|
|
55
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
56
|
+
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
57
|
+
members.map(([memberName, [memberFlags]]) => {
|
|
58
|
+
if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
|
|
59
|
+
const ogValue = instance[memberName];
|
|
60
|
+
const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
|
|
61
|
+
if (ogDescriptor) {
|
|
62
|
+
Object.defineProperty(instance, memberName, {
|
|
63
|
+
get() {
|
|
64
|
+
return ogDescriptor.get.call(this);
|
|
65
|
+
},
|
|
66
|
+
set(newValue) {
|
|
67
|
+
ogDescriptor.set.call(this, newValue);
|
|
68
|
+
},
|
|
69
|
+
configurable: true,
|
|
70
|
+
enumerable: true
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
if (hostRef.$instanceValues$.has(memberName)) {
|
|
74
|
+
instance[memberName] = hostRef.$instanceValues$.get(memberName);
|
|
75
|
+
} else if (ogValue !== void 0) {
|
|
76
|
+
instance[memberName] = ogValue;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
|
|
109
82
|
// src/client/client-host-ref.ts
|
|
110
83
|
var getHostRef = (ref) => {
|
|
111
84
|
if (ref.__stencil__getHostRef) {
|
|
@@ -114,15 +87,20 @@ var getHostRef = (ref) => {
|
|
|
114
87
|
return void 0;
|
|
115
88
|
};
|
|
116
89
|
var registerInstance = (lazyInstance, hostRef) => {
|
|
90
|
+
if (!hostRef) return;
|
|
117
91
|
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
118
92
|
hostRef.$lazyInstance$ = lazyInstance;
|
|
93
|
+
if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
|
|
94
|
+
reWireGetterSetter(lazyInstance, hostRef);
|
|
95
|
+
}
|
|
119
96
|
};
|
|
120
97
|
var registerHost = (hostElement, cmpMeta) => {
|
|
121
98
|
const hostRef = {
|
|
122
99
|
$flags$: 0,
|
|
123
100
|
$hostElement$: hostElement,
|
|
124
101
|
$cmpMeta$: cmpMeta,
|
|
125
|
-
$instanceValues$: /* @__PURE__ */ new Map()
|
|
102
|
+
$instanceValues$: /* @__PURE__ */ new Map(),
|
|
103
|
+
$serializerValues$: /* @__PURE__ */ new Map()
|
|
126
104
|
};
|
|
127
105
|
{
|
|
128
106
|
hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
|
|
@@ -132,6 +110,9 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
132
110
|
hostElement["s-p"] = [];
|
|
133
111
|
hostElement["s-rc"] = [];
|
|
134
112
|
}
|
|
113
|
+
{
|
|
114
|
+
hostRef.$fetchedCbList$ = [];
|
|
115
|
+
}
|
|
135
116
|
const ref = hostRef;
|
|
136
117
|
hostElement.__stencil__getHostRef = () => ref;
|
|
137
118
|
return ref;
|
|
@@ -222,12 +203,16 @@ var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
|
222
203
|
var promiseResolve = (v) => Promise.resolve(v);
|
|
223
204
|
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
224
205
|
try {
|
|
206
|
+
if (!win.document.adoptedStyleSheets) {
|
|
207
|
+
return false;
|
|
208
|
+
}
|
|
225
209
|
new CSSStyleSheet();
|
|
226
210
|
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
227
211
|
} catch (e) {
|
|
228
212
|
}
|
|
229
213
|
return false;
|
|
230
214
|
})() ;
|
|
215
|
+
var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
|
|
231
216
|
var queuePending = false;
|
|
232
217
|
var queueDomReads = [];
|
|
233
218
|
var queueDomWrites = [];
|
|
@@ -263,180 +248,26 @@ var flush = () => {
|
|
|
263
248
|
};
|
|
264
249
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
265
250
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
266
|
-
var isComplexType = (o) => {
|
|
267
|
-
o = typeof o;
|
|
268
|
-
return o === "object" || o === "function";
|
|
269
|
-
};
|
|
270
251
|
|
|
271
|
-
// src/utils/
|
|
272
|
-
function
|
|
273
|
-
|
|
274
|
-
return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
252
|
+
// src/utils/style.ts
|
|
253
|
+
function createStyleSheetIfNeededAndSupported(styles2) {
|
|
254
|
+
return void 0;
|
|
275
255
|
}
|
|
276
256
|
|
|
277
|
-
// src/utils/
|
|
278
|
-
var
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
* @param serialized The serialized LocalValue object
|
|
288
|
-
* @returns The original JavaScript value/object
|
|
289
|
-
*/
|
|
290
|
-
static fromLocalValue(serialized) {
|
|
291
|
-
const type = serialized[TYPE_CONSTANT];
|
|
292
|
-
const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
|
|
293
|
-
switch (type) {
|
|
294
|
-
case "string" /* String */:
|
|
295
|
-
return value;
|
|
296
|
-
case "boolean" /* Boolean */:
|
|
297
|
-
return value;
|
|
298
|
-
case "bigint" /* BigInt */:
|
|
299
|
-
return BigInt(value);
|
|
300
|
-
case "undefined" /* Undefined */:
|
|
301
|
-
return void 0;
|
|
302
|
-
case "null" /* Null */:
|
|
303
|
-
return null;
|
|
304
|
-
case "number" /* Number */:
|
|
305
|
-
if (value === "NaN") return NaN;
|
|
306
|
-
if (value === "-0") return -0;
|
|
307
|
-
if (value === "Infinity") return Infinity;
|
|
308
|
-
if (value === "-Infinity") return -Infinity;
|
|
309
|
-
return value;
|
|
310
|
-
case "array" /* Array */:
|
|
311
|
-
return value.map((item) => _RemoteValue.fromLocalValue(item));
|
|
312
|
-
case "date" /* Date */:
|
|
313
|
-
return new Date(value);
|
|
314
|
-
case "map" /* Map */:
|
|
315
|
-
const map2 = /* @__PURE__ */ new Map();
|
|
316
|
-
for (const [key, val] of value) {
|
|
317
|
-
const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
|
|
318
|
-
const deserializedValue = _RemoteValue.fromLocalValue(val);
|
|
319
|
-
map2.set(deserializedKey, deserializedValue);
|
|
320
|
-
}
|
|
321
|
-
return map2;
|
|
322
|
-
case "object" /* Object */:
|
|
323
|
-
const obj = {};
|
|
324
|
-
for (const [key, val] of value) {
|
|
325
|
-
obj[key] = _RemoteValue.fromLocalValue(val);
|
|
326
|
-
}
|
|
327
|
-
return obj;
|
|
328
|
-
case "regexp" /* RegularExpression */:
|
|
329
|
-
const { pattern, flags } = value;
|
|
330
|
-
return new RegExp(pattern, flags);
|
|
331
|
-
case "set" /* Set */:
|
|
332
|
-
const set = /* @__PURE__ */ new Set();
|
|
333
|
-
for (const item of value) {
|
|
334
|
-
set.add(_RemoteValue.fromLocalValue(item));
|
|
335
|
-
}
|
|
336
|
-
return set;
|
|
337
|
-
case "symbol" /* Symbol */:
|
|
338
|
-
return Symbol(value);
|
|
339
|
-
default:
|
|
340
|
-
throw new Error(`Unsupported type: ${type}`);
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
/**
|
|
344
|
-
* Utility method to deserialize multiple LocalValues at once
|
|
345
|
-
*
|
|
346
|
-
* @param serializedValues Array of serialized LocalValue objects
|
|
347
|
-
* @returns Array of deserialized JavaScript values
|
|
348
|
-
*/
|
|
349
|
-
static fromLocalValueArray(serializedValues) {
|
|
350
|
-
return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
|
|
351
|
-
}
|
|
352
|
-
/**
|
|
353
|
-
* Verifies if the given object matches the structure of a serialized LocalValue
|
|
354
|
-
*
|
|
355
|
-
* @param obj Object to verify
|
|
356
|
-
* @returns boolean indicating if the object has LocalValue structure
|
|
357
|
-
*/
|
|
358
|
-
static isLocalValueObject(obj) {
|
|
359
|
-
if (typeof obj !== "object" || obj === null) {
|
|
360
|
-
return false;
|
|
361
|
-
}
|
|
362
|
-
if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
|
|
363
|
-
return false;
|
|
364
|
-
}
|
|
365
|
-
const type = obj[TYPE_CONSTANT];
|
|
366
|
-
const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
|
|
367
|
-
if (!hasTypeProperty) {
|
|
368
|
-
return false;
|
|
369
|
-
}
|
|
370
|
-
if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
|
|
371
|
-
return obj.hasOwnProperty(VALUE_CONSTANT);
|
|
372
|
-
}
|
|
373
|
-
return true;
|
|
374
|
-
}
|
|
375
|
-
};
|
|
376
|
-
|
|
377
|
-
// src/utils/result.ts
|
|
378
|
-
var result_exports = {};
|
|
379
|
-
__export(result_exports, {
|
|
380
|
-
err: () => err,
|
|
381
|
-
map: () => map,
|
|
382
|
-
ok: () => ok,
|
|
383
|
-
unwrap: () => unwrap,
|
|
384
|
-
unwrapErr: () => unwrapErr
|
|
385
|
-
});
|
|
386
|
-
var ok = (value) => ({
|
|
387
|
-
isOk: true,
|
|
388
|
-
isErr: false,
|
|
389
|
-
value
|
|
390
|
-
});
|
|
391
|
-
var err = (value) => ({
|
|
392
|
-
isOk: false,
|
|
393
|
-
isErr: true,
|
|
394
|
-
value
|
|
395
|
-
});
|
|
396
|
-
function map(result, fn) {
|
|
397
|
-
if (result.isOk) {
|
|
398
|
-
const val = fn(result.value);
|
|
399
|
-
if (val instanceof Promise) {
|
|
400
|
-
return val.then((newVal) => ok(newVal));
|
|
257
|
+
// src/utils/shadow-root.ts
|
|
258
|
+
var globalStyleSheet;
|
|
259
|
+
function createShadowRoot(cmpMeta) {
|
|
260
|
+
var _a;
|
|
261
|
+
const opts = { mode: "open" };
|
|
262
|
+
const shadowRoot = this.attachShadow(opts);
|
|
263
|
+
if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
|
|
264
|
+
if (globalStyleSheet) {
|
|
265
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
266
|
+
shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
|
|
401
267
|
} else {
|
|
402
|
-
|
|
268
|
+
shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
|
|
403
269
|
}
|
|
404
270
|
}
|
|
405
|
-
if (result.isErr) {
|
|
406
|
-
const value = result.value;
|
|
407
|
-
return err(value);
|
|
408
|
-
}
|
|
409
|
-
throw "should never get here";
|
|
410
|
-
}
|
|
411
|
-
var unwrap = (result) => {
|
|
412
|
-
if (result.isOk) {
|
|
413
|
-
return result.value;
|
|
414
|
-
} else {
|
|
415
|
-
throw result.value;
|
|
416
|
-
}
|
|
417
|
-
};
|
|
418
|
-
var unwrapErr = (result) => {
|
|
419
|
-
if (result.isErr) {
|
|
420
|
-
return result.value;
|
|
421
|
-
} else {
|
|
422
|
-
throw result.value;
|
|
423
|
-
}
|
|
424
|
-
};
|
|
425
|
-
|
|
426
|
-
// src/utils/serialize.ts
|
|
427
|
-
function deserializeProperty(value) {
|
|
428
|
-
if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
|
|
429
|
-
return value;
|
|
430
|
-
}
|
|
431
|
-
return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
|
|
432
|
-
}
|
|
433
|
-
function createShadowRoot(cmpMeta) {
|
|
434
|
-
const shadowRoot = this.attachShadow({ mode: "open" });
|
|
435
|
-
if (supportsConstructableStylesheets) {
|
|
436
|
-
const sheet = new CSSStyleSheet();
|
|
437
|
-
sheet.replaceSync(globalStyles);
|
|
438
|
-
shadowRoot.adoptedStyleSheets.push(sheet);
|
|
439
|
-
}
|
|
440
271
|
}
|
|
441
272
|
var getSlottedChildNodes = (childNodes) => {
|
|
442
273
|
const result = [];
|
|
@@ -528,7 +359,164 @@ var uniqueTime = (key, measureText) => {
|
|
|
528
359
|
};
|
|
529
360
|
}
|
|
530
361
|
};
|
|
362
|
+
|
|
363
|
+
// src/utils/query-nonce-meta-tag-content.ts
|
|
364
|
+
function queryNonceMetaTagContent(doc) {
|
|
365
|
+
var _a, _b, _c;
|
|
366
|
+
return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
// src/runtime/styles.ts
|
|
370
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
371
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
372
|
+
let style = styles.get(scopeId2);
|
|
373
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
374
|
+
style = style || new CSSStyleSheet();
|
|
375
|
+
if (typeof style === "string") {
|
|
376
|
+
style = cssText;
|
|
377
|
+
} else {
|
|
378
|
+
style.replaceSync(cssText);
|
|
379
|
+
}
|
|
380
|
+
} else {
|
|
381
|
+
style = cssText;
|
|
382
|
+
}
|
|
383
|
+
styles.set(scopeId2, style);
|
|
384
|
+
};
|
|
385
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
386
|
+
var _a, _b, _c;
|
|
387
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
388
|
+
const style = styles.get(scopeId2);
|
|
389
|
+
if (!win.document) {
|
|
390
|
+
return scopeId2;
|
|
391
|
+
}
|
|
392
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
393
|
+
if (style) {
|
|
394
|
+
if (typeof style === "string") {
|
|
395
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
396
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
397
|
+
let styleElm;
|
|
398
|
+
if (!appliedStyles) {
|
|
399
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
400
|
+
}
|
|
401
|
+
const existingStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
|
|
402
|
+
if (existingStyleElm) {
|
|
403
|
+
existingStyleElm.textContent = style;
|
|
404
|
+
} else if (!appliedStyles.has(scopeId2)) {
|
|
405
|
+
styleElm = win.document.createElement("style");
|
|
406
|
+
styleElm.textContent = style;
|
|
407
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
408
|
+
if (nonce != null) {
|
|
409
|
+
styleElm.setAttribute("nonce", nonce);
|
|
410
|
+
}
|
|
411
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
412
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
413
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
414
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
415
|
+
styleContainerNode.insertBefore(
|
|
416
|
+
styleElm,
|
|
417
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
418
|
+
);
|
|
419
|
+
} else if ("host" in styleContainerNode) {
|
|
420
|
+
if (supportsConstructableStylesheets) {
|
|
421
|
+
const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;
|
|
422
|
+
const stylesheet = new currentWindow.CSSStyleSheet();
|
|
423
|
+
stylesheet.replaceSync(style);
|
|
424
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
425
|
+
styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
|
|
426
|
+
} else {
|
|
427
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
428
|
+
}
|
|
429
|
+
} else {
|
|
430
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
431
|
+
if (existingStyleContainer && true) {
|
|
432
|
+
existingStyleContainer.textContent = style + existingStyleContainer.textContent;
|
|
433
|
+
} else {
|
|
434
|
+
styleContainerNode.prepend(styleElm);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
} else {
|
|
438
|
+
styleContainerNode.append(styleElm);
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
442
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
443
|
+
}
|
|
444
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
445
|
+
styleElm.textContent += SLOT_FB_CSS;
|
|
446
|
+
}
|
|
447
|
+
if (appliedStyles) {
|
|
448
|
+
appliedStyles.add(scopeId2);
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
} else {
|
|
452
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
453
|
+
if (!appliedStyles) {
|
|
454
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
455
|
+
}
|
|
456
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
457
|
+
const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;
|
|
458
|
+
let stylesheet;
|
|
459
|
+
if (style.constructor === currentWindow.CSSStyleSheet) {
|
|
460
|
+
stylesheet = style;
|
|
461
|
+
} else {
|
|
462
|
+
stylesheet = new currentWindow.CSSStyleSheet();
|
|
463
|
+
for (let i2 = 0; i2 < style.cssRules.length; i2++) {
|
|
464
|
+
stylesheet.insertRule(style.cssRules[i2].cssText, i2);
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
468
|
+
styleContainerNode.adoptedStyleSheets.push(stylesheet);
|
|
469
|
+
} else {
|
|
470
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
|
|
471
|
+
}
|
|
472
|
+
appliedStyles.add(scopeId2);
|
|
473
|
+
if ("host" in styleContainerNode) {
|
|
474
|
+
const ssrStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
|
|
475
|
+
if (ssrStyleElm) {
|
|
476
|
+
writeTask(() => ssrStyleElm.remove());
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
return scopeId2;
|
|
483
|
+
};
|
|
484
|
+
var attachStyles = (hostRef) => {
|
|
485
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
486
|
+
const elm = hostRef.$hostElement$;
|
|
487
|
+
const flags = cmpMeta.$flags$;
|
|
488
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
489
|
+
const scopeId2 = addStyle(
|
|
490
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
491
|
+
cmpMeta);
|
|
492
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
493
|
+
elm["s-sc"] = scopeId2;
|
|
494
|
+
elm.classList.add(scopeId2 + "-h");
|
|
495
|
+
}
|
|
496
|
+
endAttachStyles();
|
|
497
|
+
};
|
|
498
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
499
|
+
var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
|
|
500
|
+
var hydrateScopedToShadow = () => {
|
|
501
|
+
if (!win.document) {
|
|
502
|
+
return;
|
|
503
|
+
}
|
|
504
|
+
const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
|
|
505
|
+
let i2 = 0;
|
|
506
|
+
for (; i2 < styles2.length; i2++) {
|
|
507
|
+
registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
|
|
508
|
+
}
|
|
509
|
+
};
|
|
510
|
+
var isComplexType = (o) => {
|
|
511
|
+
o = typeof o;
|
|
512
|
+
return o === "object" || o === "function";
|
|
513
|
+
};
|
|
514
|
+
|
|
515
|
+
// src/runtime/vdom/h.ts
|
|
531
516
|
var h = (nodeName, vnodeData, ...children) => {
|
|
517
|
+
if (typeof nodeName === "string") {
|
|
518
|
+
nodeName = transformTag(nodeName);
|
|
519
|
+
}
|
|
532
520
|
let child = null;
|
|
533
521
|
let key = null;
|
|
534
522
|
let simple = false;
|
|
@@ -578,7 +566,8 @@ var newVNode = (tag, text) => {
|
|
|
578
566
|
const vnode = {
|
|
579
567
|
$flags$: 0,
|
|
580
568
|
$tag$: tag,
|
|
581
|
-
|
|
569
|
+
// Normalize undefined to null to prevent rendering "undefined" as text
|
|
570
|
+
$text$: text != null ? text : null,
|
|
582
571
|
$elm$: null,
|
|
583
572
|
$children$: null
|
|
584
573
|
};
|
|
@@ -595,7 +584,7 @@ var isHost = (node) => node && node.$tag$ === Host;
|
|
|
595
584
|
|
|
596
585
|
// src/runtime/client-hydrate.ts
|
|
597
586
|
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
598
|
-
var _a;
|
|
587
|
+
var _a, _b, _c, _d;
|
|
599
588
|
const endHydrate = createTime("hydrateClient", tagName);
|
|
600
589
|
const shadowRoot = hostElm.shadowRoot;
|
|
601
590
|
const childRenderNodes = [];
|
|
@@ -604,23 +593,6 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
604
593
|
const shadowRootNodes = shadowRoot ? [] : null;
|
|
605
594
|
const vnode = newVNode(tagName, null);
|
|
606
595
|
vnode.$elm$ = hostElm;
|
|
607
|
-
const members = Object.entries(((_a = hostRef.$cmpMeta$) == null ? void 0 : _a.$members$) || {});
|
|
608
|
-
members.forEach(([memberName, [memberFlags, metaAttributeName]]) => {
|
|
609
|
-
var _a2, _b;
|
|
610
|
-
if (!(memberFlags & 31 /* Prop */)) {
|
|
611
|
-
return;
|
|
612
|
-
}
|
|
613
|
-
const attributeName = metaAttributeName || memberName;
|
|
614
|
-
const attrVal = hostElm.getAttribute(attributeName);
|
|
615
|
-
if (attrVal !== null) {
|
|
616
|
-
const attrPropVal = parsePropertyValue(
|
|
617
|
-
attrVal,
|
|
618
|
-
memberFlags,
|
|
619
|
-
!!(((_a2 = hostRef.$cmpMeta$) == null ? void 0 : _a2.$flags$) & 64 /* formAssociated */)
|
|
620
|
-
);
|
|
621
|
-
(_b = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _b.set(memberName, attrPropVal);
|
|
622
|
-
}
|
|
623
|
-
});
|
|
624
596
|
if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
|
|
625
597
|
initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
|
|
626
598
|
}
|
|
@@ -645,10 +617,20 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
645
617
|
const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
|
|
646
618
|
const node = childRenderNode.$elm$;
|
|
647
619
|
if (!shadowRoot) {
|
|
648
|
-
node["s-hn"] = tagName.toUpperCase();
|
|
620
|
+
node["s-hn"] = transformTag(tagName).toUpperCase();
|
|
649
621
|
if (childRenderNode.$tag$ === "slot") {
|
|
650
622
|
node["s-cr"] = hostElm["s-cr"];
|
|
651
623
|
}
|
|
624
|
+
} else if (((_a = childRenderNode.$tag$) == null ? void 0 : _a.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
|
|
625
|
+
const cmpMeta = getHostRef(childRenderNode.$elm$);
|
|
626
|
+
if (cmpMeta) {
|
|
627
|
+
const scopeId3 = getScopeId(
|
|
628
|
+
cmpMeta.$cmpMeta$);
|
|
629
|
+
const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
|
|
630
|
+
if (styleSheet) {
|
|
631
|
+
shadowRootNodes.unshift(styleSheet.cloneNode(true));
|
|
632
|
+
}
|
|
633
|
+
}
|
|
652
634
|
}
|
|
653
635
|
if (childRenderNode.$tag$ === "slot") {
|
|
654
636
|
childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
|
|
@@ -664,7 +646,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
664
646
|
}
|
|
665
647
|
}
|
|
666
648
|
if (orgLocationNode && orgLocationNode.isConnected) {
|
|
667
|
-
if (shadowRoot && orgLocationNode["s-en"] === "") {
|
|
649
|
+
if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
|
|
668
650
|
orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
|
|
669
651
|
}
|
|
670
652
|
orgLocationNode.parentNode.removeChild(orgLocationNode);
|
|
@@ -672,7 +654,9 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
672
654
|
node["s-oo"] = parseInt(childRenderNode.$nodeId$);
|
|
673
655
|
}
|
|
674
656
|
}
|
|
675
|
-
|
|
657
|
+
if (orgLocationNode && !orgLocationNode["s-id"]) {
|
|
658
|
+
plt.$orgLocNodes$.delete(orgLocationId);
|
|
659
|
+
}
|
|
676
660
|
}
|
|
677
661
|
const hosts = [];
|
|
678
662
|
const snLen = slottedNodes.length;
|
|
@@ -681,6 +665,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
681
665
|
let snGroupIdx;
|
|
682
666
|
let snGroupLen;
|
|
683
667
|
let slottedItem;
|
|
668
|
+
let currentPos = 0;
|
|
684
669
|
for (snIndex; snIndex < snLen; snIndex++) {
|
|
685
670
|
slotGroup = slottedNodes[snIndex];
|
|
686
671
|
if (!slotGroup || !slotGroup.length) continue;
|
|
@@ -693,18 +678,24 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
693
678
|
}
|
|
694
679
|
if (!hosts[slottedItem.hostId]) continue;
|
|
695
680
|
const hostEle = hosts[slottedItem.hostId];
|
|
681
|
+
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
|
682
|
+
hostEle.insertBefore(slottedItem.node, (_c = (_b = slotGroup[snGroupIdx - 1]) == null ? void 0 : _b.node) == null ? void 0 : _c.nextSibling);
|
|
683
|
+
}
|
|
696
684
|
if (!hostEle.shadowRoot || !shadowRoot) {
|
|
697
|
-
slottedItem.slot["s-cr"]
|
|
698
|
-
|
|
699
|
-
slottedItem.slot["s-cr"]
|
|
700
|
-
|
|
701
|
-
|
|
685
|
+
if (!slottedItem.slot["s-cr"]) {
|
|
686
|
+
slottedItem.slot["s-cr"] = hostEle["s-cr"];
|
|
687
|
+
if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
|
|
688
|
+
slottedItem.slot["s-cr"] = hostEle;
|
|
689
|
+
} else {
|
|
690
|
+
slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"] || currentPos);
|
|
694
|
+
if (((_d = slottedItem.node.parentElement) == null ? void 0 : _d.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
|
|
695
|
+
slottedItem.node.removeAttribute("slot");
|
|
702
696
|
}
|
|
703
|
-
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
|
|
704
|
-
}
|
|
705
|
-
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
|
706
|
-
hostEle.appendChild(slottedItem.node);
|
|
707
697
|
}
|
|
698
|
+
currentPos = (slottedItem.node["s-oo"] || currentPos) + 1;
|
|
708
699
|
}
|
|
709
700
|
}
|
|
710
701
|
if (shadowRoot && !shadowRoot.childNodes.length) {
|
|
@@ -712,20 +703,22 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
712
703
|
const rnLen = shadowRootNodes.length;
|
|
713
704
|
if (rnLen) {
|
|
714
705
|
for (rnIdex; rnIdex < rnLen; rnIdex++) {
|
|
715
|
-
|
|
706
|
+
const node = shadowRootNodes[rnIdex];
|
|
707
|
+
if (node) {
|
|
708
|
+
shadowRoot.appendChild(node);
|
|
709
|
+
}
|
|
716
710
|
}
|
|
717
711
|
Array.from(hostElm.childNodes).forEach((node) => {
|
|
718
712
|
if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
|
|
719
713
|
if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
|
|
720
714
|
node.removeAttribute("hidden");
|
|
721
|
-
} else if (node.nodeType === 8 /* CommentNode */
|
|
715
|
+
} else if (node.nodeType === 8 /* CommentNode */ && !node.nodeValue) {
|
|
722
716
|
node.parentNode.removeChild(node);
|
|
723
717
|
}
|
|
724
718
|
}
|
|
725
719
|
});
|
|
726
720
|
}
|
|
727
721
|
}
|
|
728
|
-
plt.$orgLocNodes$.delete(hostElm["s-id"]);
|
|
729
722
|
hostRef.$hostElement$ = hostElm;
|
|
730
723
|
endHydrate();
|
|
731
724
|
};
|
|
@@ -875,10 +868,6 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
875
868
|
vnode.$elm$ = node;
|
|
876
869
|
vnode.$index$ = "0";
|
|
877
870
|
parentVNode.$children$ = [vnode];
|
|
878
|
-
} else {
|
|
879
|
-
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
880
|
-
node.remove();
|
|
881
|
-
}
|
|
882
871
|
}
|
|
883
872
|
return parentVNode;
|
|
884
873
|
};
|
|
@@ -934,68 +923,158 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
934
923
|
if (childVNode.$name$) {
|
|
935
924
|
childVNode.$elm$.setAttribute("name", slotName);
|
|
936
925
|
}
|
|
937
|
-
if (parentNodeId && parentNodeId !== childVNode.$hostId$) {
|
|
938
|
-
parentVNode.$elm
|
|
939
|
-
} else {
|
|
940
|
-
node
|
|
926
|
+
if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {
|
|
927
|
+
internalCall(parentVNode.$elm$, "insertBefore")(slot, internalCall(parentVNode.$elm$, "children")[0]);
|
|
928
|
+
} else {
|
|
929
|
+
internalCall(internalCall(node, "parentNode"), "insertBefore")(slot, node);
|
|
930
|
+
}
|
|
931
|
+
addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
|
|
932
|
+
node.remove();
|
|
933
|
+
if (childVNode.$depth$ === "0") {
|
|
934
|
+
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
935
|
+
}
|
|
936
|
+
} else {
|
|
937
|
+
const slot = childVNode.$elm$;
|
|
938
|
+
const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
|
|
939
|
+
addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
|
|
940
|
+
patchSlotNode(node);
|
|
941
|
+
if (shouldMove) {
|
|
942
|
+
parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
childRenderNodes.push(childVNode);
|
|
946
|
+
slotNodes.push(childVNode);
|
|
947
|
+
if (!parentVNode.$children$) {
|
|
948
|
+
parentVNode.$children$ = [];
|
|
949
|
+
}
|
|
950
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
951
|
+
}
|
|
952
|
+
var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
|
|
953
|
+
var _a, _b;
|
|
954
|
+
let slottedNode = slotNode.nextSibling;
|
|
955
|
+
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
|
956
|
+
if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
|
|
957
|
+
do {
|
|
958
|
+
if (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (!slottedNode["getAttribute"] || !slottedNode.getAttribute("slot")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
|
|
959
|
+
slottedNode["s-sn"] = slotName;
|
|
960
|
+
slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
|
|
961
|
+
}
|
|
962
|
+
slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
|
|
963
|
+
} while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
|
|
964
|
+
};
|
|
965
|
+
var findCorrespondingNode = (node, type) => {
|
|
966
|
+
let sibling = node;
|
|
967
|
+
do {
|
|
968
|
+
sibling = sibling.nextSibling;
|
|
969
|
+
} while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
|
|
970
|
+
return sibling;
|
|
971
|
+
};
|
|
972
|
+
|
|
973
|
+
// src/utils/remote-value.ts
|
|
974
|
+
var RemoteValue = class _RemoteValue {
|
|
975
|
+
/**
|
|
976
|
+
* Deserializes a LocalValue serialized object back to its original JavaScript representation
|
|
977
|
+
*
|
|
978
|
+
* @param serialized The serialized LocalValue object
|
|
979
|
+
* @returns The original JavaScript value/object
|
|
980
|
+
*/
|
|
981
|
+
static fromLocalValue(serialized) {
|
|
982
|
+
const type = serialized[TYPE_CONSTANT];
|
|
983
|
+
const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
|
|
984
|
+
switch (type) {
|
|
985
|
+
case "string" /* String */:
|
|
986
|
+
return value;
|
|
987
|
+
case "boolean" /* Boolean */:
|
|
988
|
+
return value;
|
|
989
|
+
case "bigint" /* BigInt */:
|
|
990
|
+
return BigInt(value);
|
|
991
|
+
case "undefined" /* Undefined */:
|
|
992
|
+
return void 0;
|
|
993
|
+
case "null" /* Null */:
|
|
994
|
+
return null;
|
|
995
|
+
case "number" /* Number */:
|
|
996
|
+
if (value === "NaN") return NaN;
|
|
997
|
+
if (value === "-0") return -0;
|
|
998
|
+
if (value === "Infinity") return Infinity;
|
|
999
|
+
if (value === "-Infinity") return -Infinity;
|
|
1000
|
+
return value;
|
|
1001
|
+
case "array" /* Array */:
|
|
1002
|
+
return value.map((item) => _RemoteValue.fromLocalValue(item));
|
|
1003
|
+
case "date" /* Date */:
|
|
1004
|
+
return new Date(value);
|
|
1005
|
+
case "map" /* Map */:
|
|
1006
|
+
const map = /* @__PURE__ */ new Map();
|
|
1007
|
+
for (const [key, val] of value) {
|
|
1008
|
+
const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
|
|
1009
|
+
const deserializedValue = _RemoteValue.fromLocalValue(val);
|
|
1010
|
+
map.set(deserializedKey, deserializedValue);
|
|
1011
|
+
}
|
|
1012
|
+
return map;
|
|
1013
|
+
case "object" /* Object */:
|
|
1014
|
+
const obj = {};
|
|
1015
|
+
for (const [key, val] of value) {
|
|
1016
|
+
obj[key] = _RemoteValue.fromLocalValue(val);
|
|
1017
|
+
}
|
|
1018
|
+
return obj;
|
|
1019
|
+
case "regexp" /* RegularExpression */:
|
|
1020
|
+
const { pattern, flags } = value;
|
|
1021
|
+
return new RegExp(pattern, flags);
|
|
1022
|
+
case "set" /* Set */:
|
|
1023
|
+
const set = /* @__PURE__ */ new Set();
|
|
1024
|
+
for (const item of value) {
|
|
1025
|
+
set.add(_RemoteValue.fromLocalValue(item));
|
|
1026
|
+
}
|
|
1027
|
+
return set;
|
|
1028
|
+
case "symbol" /* Symbol */:
|
|
1029
|
+
return Symbol(value);
|
|
1030
|
+
default:
|
|
1031
|
+
throw new Error(`Unsupported type: ${type}`);
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
/**
|
|
1035
|
+
* Utility method to deserialize multiple LocalValues at once
|
|
1036
|
+
*
|
|
1037
|
+
* @param serializedValues Array of serialized LocalValue objects
|
|
1038
|
+
* @returns Array of deserialized JavaScript values
|
|
1039
|
+
*/
|
|
1040
|
+
static fromLocalValueArray(serializedValues) {
|
|
1041
|
+
return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
|
|
1042
|
+
}
|
|
1043
|
+
/**
|
|
1044
|
+
* Verifies if the given object matches the structure of a serialized LocalValue
|
|
1045
|
+
*
|
|
1046
|
+
* @param obj Object to verify
|
|
1047
|
+
* @returns boolean indicating if the object has LocalValue structure
|
|
1048
|
+
*/
|
|
1049
|
+
static isLocalValueObject(obj) {
|
|
1050
|
+
if (typeof obj !== "object" || obj === null) {
|
|
1051
|
+
return false;
|
|
1052
|
+
}
|
|
1053
|
+
if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
|
|
1054
|
+
return false;
|
|
941
1055
|
}
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
if (
|
|
945
|
-
|
|
1056
|
+
const type = obj[TYPE_CONSTANT];
|
|
1057
|
+
const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
|
|
1058
|
+
if (!hasTypeProperty) {
|
|
1059
|
+
return false;
|
|
946
1060
|
}
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
|
|
950
|
-
addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
|
|
951
|
-
patchSlotNode(node);
|
|
952
|
-
if (shouldMove) {
|
|
953
|
-
parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
|
|
1061
|
+
if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
|
|
1062
|
+
return obj.hasOwnProperty(VALUE_CONSTANT);
|
|
954
1063
|
}
|
|
1064
|
+
return true;
|
|
955
1065
|
}
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
1066
|
+
};
|
|
1067
|
+
|
|
1068
|
+
// src/utils/serialize.ts
|
|
1069
|
+
function deserializeProperty(value) {
|
|
1070
|
+
if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
|
|
1071
|
+
return value;
|
|
960
1072
|
}
|
|
961
|
-
|
|
1073
|
+
return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
|
|
962
1074
|
}
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
|
966
|
-
while (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (slottedNode.nodeType === 8 /* CommentNode */ && slottedNode.nodeValue.indexOf(".") !== 1 || slottedNode.nodeType === 3 /* TextNode */))) {
|
|
967
|
-
slottedNode["s-sn"] = slotName;
|
|
968
|
-
slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
|
|
969
|
-
slottedNode = slottedNode.nextSibling;
|
|
970
|
-
}
|
|
971
|
-
};
|
|
972
|
-
var findCorrespondingNode = (node, type) => {
|
|
973
|
-
let sibling = node;
|
|
974
|
-
do {
|
|
975
|
-
sibling = sibling.nextSibling;
|
|
976
|
-
} while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
|
|
977
|
-
return sibling;
|
|
978
|
-
};
|
|
979
|
-
var createSupportsRuleRe = (selector) => {
|
|
980
|
-
const safeSelector2 = escapeRegExpSpecialCharacters(selector);
|
|
981
|
-
return new RegExp(
|
|
982
|
-
// First capture group: match any context before the selector that's not inside @supports selector()
|
|
983
|
-
// Using negative lookahead to avoid matching inside @supports selector(...) condition
|
|
984
|
-
`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
|
|
985
|
-
"g"
|
|
986
|
-
);
|
|
987
|
-
};
|
|
988
|
-
createSupportsRuleRe("::slotted");
|
|
989
|
-
createSupportsRuleRe(":host");
|
|
990
|
-
createSupportsRuleRe(":host-context");
|
|
1075
|
+
|
|
1076
|
+
// src/runtime/parse-property-value.ts
|
|
991
1077
|
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
992
|
-
if (typeof propValue === "string" && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
|
|
993
|
-
try {
|
|
994
|
-
propValue = JSON.parse(propValue);
|
|
995
|
-
return propValue;
|
|
996
|
-
} catch (e) {
|
|
997
|
-
}
|
|
998
|
-
}
|
|
999
1078
|
if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
|
|
1000
1079
|
propValue = deserializeProperty(propValue);
|
|
1001
1080
|
return propValue;
|
|
@@ -1018,7 +1097,10 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
|
1018
1097
|
}
|
|
1019
1098
|
return propValue;
|
|
1020
1099
|
};
|
|
1021
|
-
var getElement = (ref) =>
|
|
1100
|
+
var getElement = (ref) => {
|
|
1101
|
+
var _a;
|
|
1102
|
+
return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
|
|
1103
|
+
};
|
|
1022
1104
|
|
|
1023
1105
|
// src/runtime/event-emitter.ts
|
|
1024
1106
|
var createEvent = (ref, name, flags) => {
|
|
@@ -1039,115 +1121,6 @@ var emitEvent = (elm, name, opts) => {
|
|
|
1039
1121
|
elm.dispatchEvent(ev);
|
|
1040
1122
|
return ev;
|
|
1041
1123
|
};
|
|
1042
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
1043
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
1044
|
-
let style = styles.get(scopeId2);
|
|
1045
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
1046
|
-
style = style || new CSSStyleSheet();
|
|
1047
|
-
if (typeof style === "string") {
|
|
1048
|
-
style = cssText;
|
|
1049
|
-
} else {
|
|
1050
|
-
style.replaceSync(cssText);
|
|
1051
|
-
}
|
|
1052
|
-
} else {
|
|
1053
|
-
style = cssText;
|
|
1054
|
-
}
|
|
1055
|
-
styles.set(scopeId2, style);
|
|
1056
|
-
};
|
|
1057
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
1058
|
-
var _a;
|
|
1059
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
1060
|
-
const style = styles.get(scopeId2);
|
|
1061
|
-
if (!win.document) {
|
|
1062
|
-
return scopeId2;
|
|
1063
|
-
}
|
|
1064
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
1065
|
-
if (style) {
|
|
1066
|
-
if (typeof style === "string") {
|
|
1067
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
1068
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
1069
|
-
let styleElm;
|
|
1070
|
-
if (!appliedStyles) {
|
|
1071
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
1072
|
-
}
|
|
1073
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
1074
|
-
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
1075
|
-
styleElm.innerHTML = style;
|
|
1076
|
-
} else {
|
|
1077
|
-
styleElm = win.document.createElement("style");
|
|
1078
|
-
styleElm.innerHTML = style;
|
|
1079
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1080
|
-
if (nonce != null) {
|
|
1081
|
-
styleElm.setAttribute("nonce", nonce);
|
|
1082
|
-
}
|
|
1083
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
1084
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
1085
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
1086
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
1087
|
-
styleContainerNode.insertBefore(
|
|
1088
|
-
styleElm,
|
|
1089
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
1090
|
-
);
|
|
1091
|
-
} else if ("host" in styleContainerNode) {
|
|
1092
|
-
if (supportsConstructableStylesheets) {
|
|
1093
|
-
const stylesheet = new CSSStyleSheet();
|
|
1094
|
-
stylesheet.replaceSync(style);
|
|
1095
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
1096
|
-
} else {
|
|
1097
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
1098
|
-
if (existingStyleContainer) {
|
|
1099
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
1100
|
-
} else {
|
|
1101
|
-
styleContainerNode.prepend(styleElm);
|
|
1102
|
-
}
|
|
1103
|
-
}
|
|
1104
|
-
} else {
|
|
1105
|
-
styleContainerNode.append(styleElm);
|
|
1106
|
-
}
|
|
1107
|
-
}
|
|
1108
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1109
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
1110
|
-
}
|
|
1111
|
-
}
|
|
1112
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
1113
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
1114
|
-
}
|
|
1115
|
-
if (appliedStyles) {
|
|
1116
|
-
appliedStyles.add(scopeId2);
|
|
1117
|
-
}
|
|
1118
|
-
}
|
|
1119
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
1120
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
1121
|
-
}
|
|
1122
|
-
}
|
|
1123
|
-
return scopeId2;
|
|
1124
|
-
};
|
|
1125
|
-
var attachStyles = (hostRef) => {
|
|
1126
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
1127
|
-
const elm = hostRef.$hostElement$;
|
|
1128
|
-
const flags = cmpMeta.$flags$;
|
|
1129
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
1130
|
-
const scopeId2 = addStyle(
|
|
1131
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
1132
|
-
cmpMeta);
|
|
1133
|
-
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
1134
|
-
elm["s-sc"] = scopeId2;
|
|
1135
|
-
elm.classList.add(scopeId2 + "-h");
|
|
1136
|
-
}
|
|
1137
|
-
endAttachStyles();
|
|
1138
|
-
};
|
|
1139
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
1140
|
-
var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
|
|
1141
|
-
var hydrateScopedToShadow = () => {
|
|
1142
|
-
if (!win.document) {
|
|
1143
|
-
return;
|
|
1144
|
-
}
|
|
1145
|
-
const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
|
|
1146
|
-
let i2 = 0;
|
|
1147
|
-
for (; i2 < styles2.length; i2++) {
|
|
1148
|
-
registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
|
|
1149
|
-
}
|
|
1150
|
-
};
|
|
1151
1124
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
1152
1125
|
if (oldValue === newValue) {
|
|
1153
1126
|
return;
|
|
@@ -1158,12 +1131,13 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
1158
1131
|
const classList = elm.classList;
|
|
1159
1132
|
const oldClasses = parseClassList(oldValue);
|
|
1160
1133
|
let newClasses = parseClassList(newValue);
|
|
1161
|
-
if (elm["s-si"] && initialRender) {
|
|
1162
|
-
|
|
1134
|
+
if ((elm["s-si"] || elm["s-sc"]) && initialRender) {
|
|
1135
|
+
const scopeId2 = elm["s-sc"] || elm["s-si"];
|
|
1136
|
+
newClasses.push(scopeId2);
|
|
1163
1137
|
oldClasses.forEach((c) => {
|
|
1164
|
-
if (c.startsWith(
|
|
1138
|
+
if (c.startsWith(scopeId2)) newClasses.push(c);
|
|
1165
1139
|
});
|
|
1166
|
-
newClasses = [...new Set(newClasses)];
|
|
1140
|
+
newClasses = [...new Set(newClasses)].filter((c) => c);
|
|
1167
1141
|
classList.add(...newClasses);
|
|
1168
1142
|
} else {
|
|
1169
1143
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
@@ -1192,7 +1166,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
1192
1166
|
}
|
|
1193
1167
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
1194
1168
|
if (newValue) {
|
|
1195
|
-
newValue
|
|
1169
|
+
queueRefAttachment(newValue, elm);
|
|
1196
1170
|
}
|
|
1197
1171
|
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
1198
1172
|
if (memberName[2] === "-") {
|
|
@@ -1212,6 +1186,36 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
1212
1186
|
plt.ael(elm, memberName, newValue, capture);
|
|
1213
1187
|
}
|
|
1214
1188
|
}
|
|
1189
|
+
} else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
|
|
1190
|
+
const propName = memberName.slice(5);
|
|
1191
|
+
let attrName;
|
|
1192
|
+
{
|
|
1193
|
+
const hostRef = getHostRef(elm);
|
|
1194
|
+
if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
|
|
1195
|
+
const memberMeta = hostRef.$cmpMeta$.$members$[propName];
|
|
1196
|
+
if (memberMeta && memberMeta[1]) {
|
|
1197
|
+
attrName = memberMeta[1];
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
if (!attrName) {
|
|
1202
|
+
attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
1203
|
+
}
|
|
1204
|
+
if (newValue == null || newValue === false) {
|
|
1205
|
+
if (newValue !== false || elm.getAttribute(attrName) === "") {
|
|
1206
|
+
elm.removeAttribute(attrName);
|
|
1207
|
+
}
|
|
1208
|
+
} else {
|
|
1209
|
+
elm.setAttribute(attrName, newValue === true ? "" : newValue);
|
|
1210
|
+
}
|
|
1211
|
+
return;
|
|
1212
|
+
} else if (memberName[0] === "p" && memberName.startsWith("prop:")) {
|
|
1213
|
+
const propName = memberName.slice(5);
|
|
1214
|
+
try {
|
|
1215
|
+
elm[propName] = newValue;
|
|
1216
|
+
} catch (e) {
|
|
1217
|
+
}
|
|
1218
|
+
return;
|
|
1215
1219
|
} else {
|
|
1216
1220
|
const isComplex = isComplexType(newValue);
|
|
1217
1221
|
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
@@ -1220,7 +1224,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
1220
1224
|
const n = newValue == null ? "" : newValue;
|
|
1221
1225
|
if (memberName === "list") {
|
|
1222
1226
|
isProp = false;
|
|
1223
|
-
} else if (oldValue == null || elm[memberName]
|
|
1227
|
+
} else if (oldValue == null || elm[memberName] !== n) {
|
|
1224
1228
|
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
1225
1229
|
elm[memberName] = n;
|
|
1226
1230
|
} else {
|
|
@@ -1313,22 +1317,23 @@ function sortedAttrNames(attrNames) {
|
|
|
1313
1317
|
);
|
|
1314
1318
|
}
|
|
1315
1319
|
var hostTagName;
|
|
1320
|
+
var useNativeShadowDom = false;
|
|
1316
1321
|
var isSvgMode = false;
|
|
1322
|
+
var refCallbacksToRemove = [];
|
|
1323
|
+
var refCallbacksToAttach = [];
|
|
1317
1324
|
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
1318
1325
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
1319
1326
|
let i2 = 0;
|
|
1320
1327
|
let elm;
|
|
1321
1328
|
let childNode;
|
|
1322
|
-
if (newVNode2.$text$
|
|
1329
|
+
if (newVNode2.$text$ != null) {
|
|
1323
1330
|
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
1324
1331
|
} else {
|
|
1325
1332
|
if (!isSvgMode) {
|
|
1326
1333
|
isSvgMode = newVNode2.$tag$ === "svg";
|
|
1327
1334
|
}
|
|
1328
1335
|
if (!win.document) {
|
|
1329
|
-
throw new Error(
|
|
1330
|
-
"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
|
|
1331
|
-
);
|
|
1336
|
+
throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
|
|
1332
1337
|
}
|
|
1333
1338
|
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
1334
1339
|
isSvgMode ? SVG_NS : HTML_NS,
|
|
@@ -1341,10 +1346,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1341
1346
|
updateElement(null, newVNode2, isSvgMode);
|
|
1342
1347
|
}
|
|
1343
1348
|
if (newVNode2.$children$) {
|
|
1349
|
+
const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
|
|
1344
1350
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
1345
1351
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
1346
1352
|
if (childNode) {
|
|
1347
|
-
|
|
1353
|
+
appendTarget.appendChild(childNode);
|
|
1348
1354
|
}
|
|
1349
1355
|
}
|
|
1350
1356
|
}
|
|
@@ -1359,12 +1365,34 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1359
1365
|
elm["s-hn"] = hostTagName;
|
|
1360
1366
|
return elm;
|
|
1361
1367
|
};
|
|
1368
|
+
var relocateToHostRoot = (parentElm) => {
|
|
1369
|
+
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
1370
|
+
const host = parentElm.closest(hostTagName.toLowerCase());
|
|
1371
|
+
if (host != null) {
|
|
1372
|
+
const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
|
|
1373
|
+
(ref) => ref["s-cr"]
|
|
1374
|
+
);
|
|
1375
|
+
const childNodeArray = Array.from(
|
|
1376
|
+
parentElm.__childNodes || parentElm.childNodes
|
|
1377
|
+
);
|
|
1378
|
+
for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
|
|
1379
|
+
if (childNode["s-sh"] != null) {
|
|
1380
|
+
insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
|
|
1381
|
+
childNode["s-sh"] = void 0;
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
plt.$flags$ &= -2 /* isTmpDisconnected */;
|
|
1386
|
+
};
|
|
1362
1387
|
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
1363
1388
|
let containerElm = parentElm;
|
|
1364
1389
|
let childNode;
|
|
1365
1390
|
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
1366
1391
|
containerElm = containerElm.shadowRoot;
|
|
1367
1392
|
}
|
|
1393
|
+
if (parentVNode.$tag$ === "template") {
|
|
1394
|
+
containerElm = containerElm.content;
|
|
1395
|
+
}
|
|
1368
1396
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
1369
1397
|
if (vnodes[startIdx]) {
|
|
1370
1398
|
childNode = createElm(null, parentVNode, startIdx);
|
|
@@ -1400,6 +1428,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1400
1428
|
let newEndVnode = newCh[newEndIdx];
|
|
1401
1429
|
let node;
|
|
1402
1430
|
let elmToMove;
|
|
1431
|
+
const containerElm = newVNode2.$tag$ === "template" ? parentElm.content : parentElm;
|
|
1403
1432
|
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
1404
1433
|
if (oldStartVnode == null) {
|
|
1405
1434
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
@@ -1419,12 +1448,12 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1419
1448
|
newEndVnode = newCh[--newEndIdx];
|
|
1420
1449
|
} else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
|
1421
1450
|
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
1422
|
-
insertBefore(
|
|
1451
|
+
insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
1423
1452
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
1424
1453
|
newEndVnode = newCh[--newEndIdx];
|
|
1425
1454
|
} else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
1426
1455
|
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
1427
|
-
insertBefore(
|
|
1456
|
+
insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
1428
1457
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
1429
1458
|
newStartVnode = newCh[++newStartIdx];
|
|
1430
1459
|
} else {
|
|
@@ -1489,11 +1518,17 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1489
1518
|
const newChildren = newVNode2.$children$;
|
|
1490
1519
|
const tag = newVNode2.$tag$;
|
|
1491
1520
|
const text = newVNode2.$text$;
|
|
1492
|
-
if (text
|
|
1521
|
+
if (text == null) {
|
|
1493
1522
|
{
|
|
1494
1523
|
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
1495
1524
|
}
|
|
1496
1525
|
{
|
|
1526
|
+
if (tag === "slot" && !useNativeShadowDom) {
|
|
1527
|
+
if (oldVNode.$name$ !== newVNode2.$name$) {
|
|
1528
|
+
newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
|
|
1529
|
+
relocateToHostRoot(newVNode2.$elm$.parentElement);
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1497
1532
|
updateElement(oldVNode, newVNode2, isSvgMode, isInitialRender);
|
|
1498
1533
|
}
|
|
1499
1534
|
if (oldChildren !== null && newChildren !== null) {
|
|
@@ -1508,6 +1543,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1508
1543
|
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
1509
1544
|
) {
|
|
1510
1545
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
1546
|
+
} else if (isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
|
|
1547
|
+
newVNode2.$children$ = oldChildren;
|
|
1511
1548
|
}
|
|
1512
1549
|
if (isSvgMode && tag === "svg") {
|
|
1513
1550
|
isSvgMode = false;
|
|
@@ -1518,12 +1555,29 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1518
1555
|
};
|
|
1519
1556
|
var nullifyVNodeRefs = (vNode) => {
|
|
1520
1557
|
{
|
|
1521
|
-
vNode.$attrs$ && vNode.$attrs$.ref
|
|
1558
|
+
if (vNode.$attrs$ && vNode.$attrs$.ref) {
|
|
1559
|
+
refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));
|
|
1560
|
+
}
|
|
1522
1561
|
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
1523
1562
|
}
|
|
1524
1563
|
};
|
|
1525
|
-
var
|
|
1564
|
+
var queueRefAttachment = (refCallback, elm) => {
|
|
1565
|
+
{
|
|
1566
|
+
refCallbacksToAttach.push(() => refCallback(elm));
|
|
1567
|
+
}
|
|
1568
|
+
};
|
|
1569
|
+
var flushQueuedRefCallbacks = () => {
|
|
1526
1570
|
{
|
|
1571
|
+
refCallbacksToRemove.forEach((cb) => cb());
|
|
1572
|
+
refCallbacksToRemove.length = 0;
|
|
1573
|
+
refCallbacksToAttach.forEach((cb) => cb());
|
|
1574
|
+
refCallbacksToAttach.length = 0;
|
|
1575
|
+
}
|
|
1576
|
+
};
|
|
1577
|
+
var insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
1578
|
+
if (parent.__insertBefore) {
|
|
1579
|
+
return parent.__insertBefore(newNode, reference);
|
|
1580
|
+
} else {
|
|
1527
1581
|
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
1528
1582
|
}
|
|
1529
1583
|
};
|
|
@@ -1536,9 +1590,11 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1536
1590
|
hostTagName = hostElm.tagName;
|
|
1537
1591
|
if (cmpMeta.$attrsToReflect$) {
|
|
1538
1592
|
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
1539
|
-
cmpMeta.$attrsToReflect$.
|
|
1540
|
-
|
|
1541
|
-
|
|
1593
|
+
cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
|
|
1594
|
+
{
|
|
1595
|
+
rootVnode.$attrs$[attribute] = hostElm[propName];
|
|
1596
|
+
}
|
|
1597
|
+
});
|
|
1542
1598
|
}
|
|
1543
1599
|
if (isInitialLoad && rootVnode.$attrs$) {
|
|
1544
1600
|
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
@@ -1551,7 +1607,9 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1551
1607
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
1552
1608
|
hostRef.$vnode$ = rootVnode;
|
|
1553
1609
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
1610
|
+
useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
1554
1611
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
1612
|
+
flushQueuedRefCallbacks();
|
|
1555
1613
|
};
|
|
1556
1614
|
|
|
1557
1615
|
// src/runtime/update-component.ts
|
|
@@ -1577,6 +1635,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
1577
1635
|
}
|
|
1578
1636
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
1579
1637
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
1638
|
+
if (isInitialLoad) {
|
|
1639
|
+
queueMicrotask(() => {
|
|
1640
|
+
dispatch();
|
|
1641
|
+
});
|
|
1642
|
+
return;
|
|
1643
|
+
}
|
|
1580
1644
|
return writeTask(dispatch) ;
|
|
1581
1645
|
};
|
|
1582
1646
|
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
@@ -1591,10 +1655,15 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1591
1655
|
let maybePromise;
|
|
1592
1656
|
if (isInitialLoad) {
|
|
1593
1657
|
{
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
hostRef.$queuedListeners
|
|
1597
|
-
|
|
1658
|
+
{
|
|
1659
|
+
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
1660
|
+
if (hostRef.$queuedListeners$) {
|
|
1661
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
1662
|
+
hostRef.$queuedListeners$ = void 0;
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1665
|
+
if (hostRef.$fetchedCbList$.length) {
|
|
1666
|
+
hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
|
|
1598
1667
|
}
|
|
1599
1668
|
}
|
|
1600
1669
|
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
@@ -1605,8 +1674,8 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1605
1674
|
endSchedule();
|
|
1606
1675
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
1607
1676
|
};
|
|
1608
|
-
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((
|
|
1609
|
-
console.error(
|
|
1677
|
+
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
|
|
1678
|
+
console.error(err);
|
|
1610
1679
|
fn();
|
|
1611
1680
|
}) : fn();
|
|
1612
1681
|
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
@@ -1634,7 +1703,7 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1634
1703
|
if (childrenPromises.length === 0) {
|
|
1635
1704
|
postUpdate();
|
|
1636
1705
|
} else {
|
|
1637
|
-
Promise.all(childrenPromises).then(postUpdate);
|
|
1706
|
+
Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
|
|
1638
1707
|
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
1639
1708
|
childrenPromises.length = 0;
|
|
1640
1709
|
}
|
|
@@ -1700,7 +1769,13 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1700
1769
|
}
|
|
1701
1770
|
};
|
|
1702
1771
|
var appDidLoad = (who) => {
|
|
1772
|
+
var _a;
|
|
1703
1773
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
1774
|
+
{
|
|
1775
|
+
if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
|
|
1776
|
+
plt.$orgLocNodes$.clear();
|
|
1777
|
+
}
|
|
1778
|
+
}
|
|
1704
1779
|
};
|
|
1705
1780
|
var safeCall = (instance, method, arg, elm) => {
|
|
1706
1781
|
if (instance && instance[method]) {
|
|
@@ -1721,6 +1796,9 @@ var addHydratedFlag = (elm) => {
|
|
|
1721
1796
|
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
1722
1797
|
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
1723
1798
|
const hostRef = getHostRef(ref);
|
|
1799
|
+
if (!hostRef) {
|
|
1800
|
+
return;
|
|
1801
|
+
}
|
|
1724
1802
|
if (!hostRef) {
|
|
1725
1803
|
throw new Error(
|
|
1726
1804
|
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
|
|
@@ -1739,25 +1817,35 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1739
1817
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1740
1818
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
1741
1819
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
1742
|
-
if (
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1820
|
+
if (cmpMeta.$watchers$) {
|
|
1821
|
+
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1822
|
+
if (watchMethods) {
|
|
1823
|
+
watchMethods.map((watcher) => {
|
|
1824
|
+
try {
|
|
1825
|
+
const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
|
|
1826
|
+
if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {
|
|
1827
|
+
if (!instance) {
|
|
1828
|
+
hostRef.$fetchedCbList$.push(() => {
|
|
1829
|
+
hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);
|
|
1830
|
+
});
|
|
1831
|
+
} else {
|
|
1832
|
+
instance[watchMethodName](newVal, oldVal, propName);
|
|
1833
|
+
}
|
|
1751
1834
|
}
|
|
1752
|
-
})
|
|
1753
|
-
|
|
1754
|
-
}
|
|
1755
|
-
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1756
|
-
if (instance.componentShouldUpdate) {
|
|
1757
|
-
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
1758
|
-
return;
|
|
1835
|
+
} catch (e) {
|
|
1836
|
+
consoleError(e, elm);
|
|
1759
1837
|
}
|
|
1838
|
+
});
|
|
1839
|
+
}
|
|
1840
|
+
}
|
|
1841
|
+
if (flags & 2 /* hasRendered */) {
|
|
1842
|
+
if (instance.componentShouldUpdate) {
|
|
1843
|
+
const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
|
|
1844
|
+
if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
|
|
1845
|
+
return;
|
|
1760
1846
|
}
|
|
1847
|
+
}
|
|
1848
|
+
if (!(flags & 16 /* isQueuedForUpdate */)) {
|
|
1761
1849
|
scheduleUpdate(hostRef, false);
|
|
1762
1850
|
}
|
|
1763
1851
|
}
|
|
@@ -1772,10 +1860,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1772
1860
|
FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach((cbName) => {
|
|
1773
1861
|
Object.defineProperty(prototype, cbName, {
|
|
1774
1862
|
value(...args) {
|
|
1863
|
+
var _a2;
|
|
1775
1864
|
const hostRef = getHostRef(this);
|
|
1776
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
1865
|
+
const instance = hostRef == null ? void 0 : hostRef.$lazyInstance$ ;
|
|
1777
1866
|
if (!instance) {
|
|
1778
|
-
hostRef.$onReadyPromise
|
|
1867
|
+
(_a2 = hostRef == null ? void 0 : hostRef.$onReadyPromise$) == null ? void 0 : _a2.then((asyncInstance) => {
|
|
1779
1868
|
const cb = asyncInstance[cbName];
|
|
1780
1869
|
typeof cb === "function" && cb.call(asyncInstance, ...args);
|
|
1781
1870
|
});
|
|
@@ -1787,14 +1876,22 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1787
1876
|
});
|
|
1788
1877
|
});
|
|
1789
1878
|
}
|
|
1790
|
-
if (cmpMeta.$members$ ||
|
|
1791
|
-
|
|
1792
|
-
cmpMeta.$watchers$
|
|
1879
|
+
if (cmpMeta.$members$ || BUILD.propChangeCallback) {
|
|
1880
|
+
{
|
|
1881
|
+
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
1882
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1883
|
+
}
|
|
1884
|
+
if (Cstr.deserializers && !cmpMeta.$deserializers$) {
|
|
1885
|
+
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
1886
|
+
}
|
|
1887
|
+
if (Cstr.serializers && !cmpMeta.$serializers$) {
|
|
1888
|
+
cmpMeta.$serializers$ = Cstr.serializers;
|
|
1889
|
+
}
|
|
1793
1890
|
}
|
|
1794
1891
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1795
1892
|
members.map(([memberName, [memberFlags]]) => {
|
|
1796
1893
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1797
|
-
const { get: origGetter, set: origSetter } =
|
|
1894
|
+
const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
|
|
1798
1895
|
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1799
1896
|
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1800
1897
|
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
@@ -1817,12 +1914,13 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1817
1914
|
Object.defineProperty(prototype, memberName, {
|
|
1818
1915
|
set(newValue) {
|
|
1819
1916
|
const ref = getHostRef(this);
|
|
1917
|
+
if (!ref) {
|
|
1918
|
+
return;
|
|
1919
|
+
}
|
|
1820
1920
|
if (origSetter) {
|
|
1821
1921
|
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1822
1922
|
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
1823
1923
|
newValue = ref.$instanceValues$.get(memberName);
|
|
1824
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1825
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1826
1924
|
}
|
|
1827
1925
|
origSetter.apply(this, [
|
|
1828
1926
|
parsePropertyValue(
|
|
@@ -1839,7 +1937,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1839
1937
|
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1840
1938
|
setValue(this, memberName, newValue, cmpMeta);
|
|
1841
1939
|
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1842
|
-
ref.$
|
|
1940
|
+
ref.$fetchedCbList$.push(() => {
|
|
1843
1941
|
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1844
1942
|
ref.$lazyInstance$[memberName] = newValue;
|
|
1845
1943
|
}
|
|
@@ -1862,7 +1960,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1862
1960
|
if (ref.$lazyInstance$) {
|
|
1863
1961
|
setterSetVal();
|
|
1864
1962
|
} else {
|
|
1865
|
-
ref.$
|
|
1963
|
+
ref.$fetchedCbList$.push(() => {
|
|
1964
|
+
setterSetVal();
|
|
1965
|
+
});
|
|
1866
1966
|
}
|
|
1867
1967
|
}
|
|
1868
1968
|
}
|
|
@@ -1886,29 +1986,34 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1886
1986
|
plt.jmp(() => {
|
|
1887
1987
|
var _a2;
|
|
1888
1988
|
const propName = attrNameToPropName.get(attrName);
|
|
1989
|
+
const hostRef = getHostRef(this);
|
|
1889
1990
|
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
1890
1991
|
newValue = this[propName];
|
|
1891
1992
|
delete this[propName];
|
|
1892
|
-
}
|
|
1993
|
+
}
|
|
1994
|
+
if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
1893
1995
|
this[propName] == newValue) {
|
|
1894
1996
|
return;
|
|
1895
1997
|
} else if (propName == null) {
|
|
1896
|
-
const hostRef = getHostRef(this);
|
|
1897
1998
|
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
1898
|
-
if (flags2 && !(flags2 & 8 /* isConstructingInstance */) &&
|
|
1999
|
+
if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
|
|
1899
2000
|
const instance = hostRef.$lazyInstance$ ;
|
|
1900
2001
|
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
1901
|
-
entry == null ? void 0 : entry.forEach((
|
|
1902
|
-
|
|
1903
|
-
|
|
2002
|
+
entry == null ? void 0 : entry.forEach((watcher) => {
|
|
2003
|
+
const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
|
|
2004
|
+
if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
|
|
2005
|
+
instance[watchMethodName].call(instance, newValue, oldValue, attrName);
|
|
1904
2006
|
}
|
|
1905
2007
|
});
|
|
1906
2008
|
}
|
|
1907
2009
|
return;
|
|
1908
2010
|
}
|
|
2011
|
+
const propFlags = members.find(([m]) => m === propName);
|
|
2012
|
+
if (propFlags && propFlags[1][0] & 4 /* Boolean */) {
|
|
2013
|
+
newValue = newValue === null || newValue === "false" ? false : true;
|
|
2014
|
+
}
|
|
1909
2015
|
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1910
|
-
|
|
1911
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
2016
|
+
if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1912
2017
|
this[propName] = newValue;
|
|
1913
2018
|
}
|
|
1914
2019
|
});
|
|
@@ -1916,7 +2021,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1916
2021
|
Cstr.observedAttributes = Array.from(
|
|
1917
2022
|
/* @__PURE__ */ new Set([
|
|
1918
2023
|
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
|
1919
|
-
...members.filter(([_, m]) => m[0] &
|
|
2024
|
+
...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
|
|
1920
2025
|
var _a2;
|
|
1921
2026
|
const attrName = m[1] || propName;
|
|
1922
2027
|
attrNameToPropName.set(attrName, propName);
|
|
@@ -1935,69 +2040,84 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1935
2040
|
// src/runtime/initialize-component.ts
|
|
1936
2041
|
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1937
2042
|
let Cstr;
|
|
1938
|
-
|
|
1939
|
-
hostRef.$flags$
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
2043
|
+
try {
|
|
2044
|
+
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
2045
|
+
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
2046
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
2047
|
+
if (bundleId) {
|
|
2048
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
2049
|
+
if (CstrImport && "then" in CstrImport) {
|
|
2050
|
+
const endLoad = uniqueTime();
|
|
2051
|
+
Cstr = await CstrImport;
|
|
2052
|
+
endLoad();
|
|
2053
|
+
} else {
|
|
2054
|
+
Cstr = CstrImport;
|
|
2055
|
+
}
|
|
2056
|
+
if (!Cstr) {
|
|
2057
|
+
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
2058
|
+
}
|
|
2059
|
+
if (!Cstr.isProxied) {
|
|
2060
|
+
{
|
|
2061
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
2062
|
+
cmpMeta.$serializers$ = Cstr.serializers;
|
|
2063
|
+
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
2064
|
+
}
|
|
2065
|
+
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
2066
|
+
Cstr.isProxied = true;
|
|
2067
|
+
}
|
|
2068
|
+
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
|
1954
2069
|
{
|
|
1955
|
-
|
|
2070
|
+
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
2071
|
+
}
|
|
2072
|
+
try {
|
|
2073
|
+
new Cstr(hostRef);
|
|
2074
|
+
} catch (e) {
|
|
2075
|
+
consoleError(e, elm);
|
|
2076
|
+
}
|
|
2077
|
+
{
|
|
2078
|
+
hostRef.$flags$ &= -9 /* isConstructingInstance */;
|
|
2079
|
+
}
|
|
2080
|
+
{
|
|
2081
|
+
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
2082
|
+
}
|
|
2083
|
+
endNewInstance();
|
|
2084
|
+
{
|
|
2085
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
2086
|
+
}
|
|
2087
|
+
} else {
|
|
2088
|
+
Cstr = elm.constructor;
|
|
2089
|
+
const cmpTag = elm.localName;
|
|
2090
|
+
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
2091
|
+
}
|
|
2092
|
+
if (Cstr && Cstr.style) {
|
|
2093
|
+
let style;
|
|
2094
|
+
if (typeof Cstr.style === "string") {
|
|
2095
|
+
style = Cstr.style;
|
|
2096
|
+
}
|
|
2097
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
2098
|
+
if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
|
|
2099
|
+
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
2100
|
+
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
2101
|
+
endRegisterStyles();
|
|
1956
2102
|
}
|
|
1957
|
-
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1958
|
-
Cstr.isProxied = true;
|
|
1959
|
-
}
|
|
1960
|
-
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
|
1961
|
-
{
|
|
1962
|
-
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
1963
|
-
}
|
|
1964
|
-
try {
|
|
1965
|
-
new Cstr(hostRef);
|
|
1966
|
-
} catch (e) {
|
|
1967
|
-
consoleError(e, elm);
|
|
1968
|
-
}
|
|
1969
|
-
{
|
|
1970
|
-
hostRef.$flags$ &= -9 /* isConstructingInstance */;
|
|
1971
|
-
}
|
|
1972
|
-
{
|
|
1973
|
-
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1974
2103
|
}
|
|
1975
|
-
|
|
1976
|
-
|
|
2104
|
+
}
|
|
2105
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
2106
|
+
const schedule = () => scheduleUpdate(hostRef, true);
|
|
2107
|
+
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
2108
|
+
ancestorComponent["s-rc"].push(schedule);
|
|
1977
2109
|
} else {
|
|
1978
|
-
|
|
1979
|
-
const cmpTag = elm.localName;
|
|
1980
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
2110
|
+
schedule();
|
|
1981
2111
|
}
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1991
|
-
endRegisterStyles();
|
|
1992
|
-
}
|
|
2112
|
+
} catch (e) {
|
|
2113
|
+
consoleError(e, elm);
|
|
2114
|
+
if (hostRef.$onRenderResolve$) {
|
|
2115
|
+
hostRef.$onRenderResolve$();
|
|
2116
|
+
hostRef.$onRenderResolve$ = void 0;
|
|
2117
|
+
}
|
|
2118
|
+
if (hostRef.$onReadyResolve$) {
|
|
2119
|
+
hostRef.$onReadyResolve$(elm);
|
|
1993
2120
|
}
|
|
1994
|
-
}
|
|
1995
|
-
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1996
|
-
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1997
|
-
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
1998
|
-
ancestorComponent["s-rc"].push(schedule);
|
|
1999
|
-
} else {
|
|
2000
|
-
schedule();
|
|
2001
2121
|
}
|
|
2002
2122
|
};
|
|
2003
2123
|
var fireConnectedCallback = (instance, elm) => {
|
|
@@ -2010,6 +2130,9 @@ var fireConnectedCallback = (instance, elm) => {
|
|
|
2010
2130
|
var connectedCallback = (elm) => {
|
|
2011
2131
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
2012
2132
|
const hostRef = getHostRef(elm);
|
|
2133
|
+
if (!hostRef) {
|
|
2134
|
+
return;
|
|
2135
|
+
}
|
|
2013
2136
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
2014
2137
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
2015
2138
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
@@ -2036,7 +2159,7 @@ var connectedCallback = (elm) => {
|
|
|
2036
2159
|
}
|
|
2037
2160
|
if (cmpMeta.$members$) {
|
|
2038
2161
|
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
2039
|
-
if (memberFlags & 31 /* Prop */ &&
|
|
2162
|
+
if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
|
|
2040
2163
|
const value = elm[memberName];
|
|
2041
2164
|
delete elm[memberName];
|
|
2042
2165
|
elm[memberName] = value;
|
|
@@ -2066,7 +2189,7 @@ var disconnectedCallback = async (elm) => {
|
|
|
2066
2189
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
2067
2190
|
const hostRef = getHostRef(elm);
|
|
2068
2191
|
{
|
|
2069
|
-
if (hostRef.$rmListeners$) {
|
|
2192
|
+
if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
|
|
2070
2193
|
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
2071
2194
|
hostRef.$rmListeners$ = void 0;
|
|
2072
2195
|
}
|
|
@@ -2110,19 +2233,15 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2110
2233
|
{
|
|
2111
2234
|
hydrateScopedToShadow();
|
|
2112
2235
|
}
|
|
2113
|
-
let hasSlotRelocation = false;
|
|
2114
2236
|
lazyBundles.map((lazyBundle) => {
|
|
2115
2237
|
lazyBundle[1].map((compactMeta) => {
|
|
2116
|
-
var _a2;
|
|
2238
|
+
var _a2, _b, _c;
|
|
2117
2239
|
const cmpMeta = {
|
|
2118
2240
|
$flags$: compactMeta[0],
|
|
2119
2241
|
$tagName$: compactMeta[1],
|
|
2120
2242
|
$members$: compactMeta[2],
|
|
2121
2243
|
$listeners$: compactMeta[3]
|
|
2122
2244
|
};
|
|
2123
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
2124
|
-
hasSlotRelocation = true;
|
|
2125
|
-
}
|
|
2126
2245
|
{
|
|
2127
2246
|
cmpMeta.$members$ = compactMeta[2];
|
|
2128
2247
|
}
|
|
@@ -2134,13 +2253,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2134
2253
|
}
|
|
2135
2254
|
{
|
|
2136
2255
|
cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
|
|
2256
|
+
cmpMeta.$serializers$ = (_b = compactMeta[5]) != null ? _b : {};
|
|
2257
|
+
cmpMeta.$deserializers$ = (_c = compactMeta[6]) != null ? _c : {};
|
|
2137
2258
|
}
|
|
2138
|
-
const tagName = cmpMeta.$tagName
|
|
2259
|
+
const tagName = transformTag(cmpMeta.$tagName$);
|
|
2139
2260
|
const HostElement = class extends HTMLElement {
|
|
2261
|
+
["s-p"];
|
|
2262
|
+
["s-rc"];
|
|
2263
|
+
hasRegisteredEventListeners = false;
|
|
2140
2264
|
// StencilLazyHost
|
|
2141
2265
|
constructor(self) {
|
|
2142
2266
|
super(self);
|
|
2143
|
-
this.hasRegisteredEventListeners = false;
|
|
2144
2267
|
self = this;
|
|
2145
2268
|
registerHost(self, cmpMeta);
|
|
2146
2269
|
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
@@ -2159,6 +2282,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2159
2282
|
}
|
|
2160
2283
|
connectedCallback() {
|
|
2161
2284
|
const hostRef = getHostRef(this);
|
|
2285
|
+
if (!hostRef) {
|
|
2286
|
+
return;
|
|
2287
|
+
}
|
|
2162
2288
|
if (!this.hasRegisteredEventListeners) {
|
|
2163
2289
|
this.hasRegisteredEventListeners = true;
|
|
2164
2290
|
addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
|
|
@@ -2178,6 +2304,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2178
2304
|
plt.raf(() => {
|
|
2179
2305
|
var _a3;
|
|
2180
2306
|
const hostRef = getHostRef(this);
|
|
2307
|
+
if (!hostRef) {
|
|
2308
|
+
return;
|
|
2309
|
+
}
|
|
2181
2310
|
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
2182
2311
|
if (i2 > -1) {
|
|
2183
2312
|
deferredConnectedCallbacks.splice(i2, 1);
|
|
@@ -2188,7 +2317,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2188
2317
|
});
|
|
2189
2318
|
}
|
|
2190
2319
|
componentOnReady() {
|
|
2191
|
-
|
|
2320
|
+
var _a3;
|
|
2321
|
+
return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
|
|
2192
2322
|
}
|
|
2193
2323
|
};
|
|
2194
2324
|
if (cmpMeta.$flags$ & 64 /* formAssociated */) {
|
|
@@ -2205,9 +2335,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2205
2335
|
});
|
|
2206
2336
|
});
|
|
2207
2337
|
if (cmpTags.length > 0) {
|
|
2208
|
-
if (hasSlotRelocation) {
|
|
2209
|
-
dataStyles.textContent += SLOT_FB_CSS;
|
|
2210
|
-
}
|
|
2211
2338
|
{
|
|
2212
2339
|
dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
|
|
2213
2340
|
}
|
|
@@ -2268,16 +2395,15 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
|
2268
2395
|
|
|
2269
2396
|
// src/runtime/nonce.ts
|
|
2270
2397
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
2398
|
+
function transformTag(tag) {
|
|
2399
|
+
return tag;
|
|
2400
|
+
}
|
|
2271
2401
|
|
|
2272
2402
|
exports.Host = Host;
|
|
2273
2403
|
exports.bootstrapLazy = bootstrapLazy;
|
|
2274
2404
|
exports.createEvent = createEvent;
|
|
2275
2405
|
exports.getElement = getElement;
|
|
2276
|
-
exports.globalScripts = globalScripts;
|
|
2277
2406
|
exports.h = h;
|
|
2278
2407
|
exports.promiseResolve = promiseResolve;
|
|
2279
2408
|
exports.registerInstance = registerInstance;
|
|
2280
2409
|
exports.setNonce = setNonce;
|
|
2281
|
-
//# sourceMappingURL=index-BK9MSAiE.js.map
|
|
2282
|
-
|
|
2283
|
-
//# sourceMappingURL=index-BK9MSAiE.js.map
|