@ebrains/components 0.9.2-beta → 0.9.3-beta
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/analytics-d8fb3fdd.js +60 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/arrow-diagonal-black-0eb8640e.js +5 -0
- package/dist/cjs/arrow-right-3e38e8a9.js +7 -0
- package/dist/cjs/bluesky-eb0d6051.js +16 -0
- package/dist/cjs/bookmark-c61853d9.js +18 -0
- package/dist/cjs/chevron-down-27344777.js +14 -0
- package/dist/cjs/chevron-left-6fc9c6ef.js +13 -0
- package/dist/cjs/chevron-right-6d95a117.js +7 -0
- package/dist/cjs/chevron-up-e37d7713.js +14 -0
- package/dist/cjs/close-51284af5.js +7 -0
- package/dist/cjs/color-c00146a8.js +134 -0
- package/dist/cjs/color-primary-palette_6.cjs.entry.js +340 -0
- package/dist/cjs/components-section.cjs.entry.js +139 -0
- package/dist/cjs/components.cjs.js +25 -0
- package/dist/cjs/copy-53102d0c.js +7 -0
- package/dist/cjs/correct-use-of-colors.cjs.entry.js +68 -0
- package/dist/cjs/docs-palettes.cjs.entry.js +27 -0
- package/dist/cjs/docs-tokens.cjs.entry.js +35 -0
- package/dist/cjs/eds-accordion.cjs.entry.js +86 -0
- package/dist/cjs/eds-alert.cjs.entry.js +104 -0
- package/dist/cjs/eds-app-root.cjs.entry.js +37 -0
- package/dist/cjs/eds-avatar_27.cjs.entry.js +2404 -0
- package/dist/cjs/eds-card-desc_2.cjs.entry.js +78 -0
- package/dist/cjs/eds-card-generic.cjs.entry.js +92 -0
- package/dist/cjs/eds-card-project.cjs.entry.js +68 -0
- package/dist/cjs/eds-card-section.cjs.entry.js +39 -0
- package/dist/cjs/eds-card-tags.cjs.entry.js +22 -0
- package/dist/cjs/eds-card-tool.cjs.entry.js +79 -0
- package/dist/cjs/eds-card-wrapper.cjs.entry.js +32 -0
- package/dist/cjs/eds-code-block.cjs.entry.js +2489 -0
- package/dist/cjs/eds-cookies-preference.cjs.entry.js +39 -0
- package/dist/cjs/eds-feedback.cjs.entry.js +66 -0
- package/dist/cjs/eds-frame.cjs.entry.js +85 -0
- package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-bluesky.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-bookmark.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-chevron-down.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-chevron-left.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-chevron-right.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-chevron-up.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-close.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-copy.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-eu.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-external.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-facebook.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-gitlab.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-linkedin.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-loader.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-mastodon.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-menu.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-minus.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-more.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-paper.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-plus.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-portal.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-private.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-public.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-search.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-star.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-success.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-thumbs-down.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-thumbs-up.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-tutorial.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-twitter.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-unknown.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-updown.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-user.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-youtube.cjs.entry.js +18 -0
- package/dist/cjs/eds-login_2.cjs.entry.js +2100 -0
- package/dist/cjs/eds-matomo-notice.cjs.entry.js +123 -0
- package/dist/cjs/eds-pagination_2.cjs.entry.js +403 -0
- package/dist/cjs/eds-progress-bar.cjs.entry.js +29 -0
- package/dist/cjs/eds-rating.cjs.entry.js +64 -0
- package/dist/cjs/eds-section-core_2.cjs.entry.js +59 -0
- package/dist/cjs/eds-spinner.cjs.entry.js +54 -0
- package/dist/cjs/eds-switch.cjs.entry.js +38 -0
- package/dist/cjs/eds-tabs.cjs.entry.js +130 -0
- package/dist/cjs/eds-timeline.cjs.entry.js +63 -0
- package/dist/cjs/eds-toast-manager.cjs.entry.js +46 -0
- package/dist/cjs/eds-toast.cjs.entry.js +76 -0
- package/dist/cjs/eds-tooltip.cjs.entry.js +109 -0
- package/dist/cjs/eds-trl.cjs.entry.js +51 -0
- package/dist/cjs/eu-b9665157.js +32 -0
- package/dist/cjs/facebook-7aa65e57.js +16 -0
- package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +50 -0
- package/dist/cjs/index-2f63169d.js +2223 -0
- package/dist/cjs/index-ab9fbefe.js +48 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/linkedin-46b0dd56.js +30 -0
- package/dist/cjs/loader-72f9d178.js +32 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/logo-color-6c787ac1.js +117 -0
- package/dist/cjs/logo-color-margins-b49c0f46.js +120 -0
- package/dist/cjs/logo-space.cjs.entry.js +21 -0
- package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +36 -0
- package/dist/cjs/logo-variations-tabs.cjs.entry.js +27 -0
- package/dist/{components/index-7281d120.js → cjs/logo-white-no-bg-4a0e0f4b.js} +10 -941
- package/dist/cjs/logo-wrong-usage.cjs.entry.js +21 -0
- package/dist/cjs/mastodon-20c5bb7d.js +16 -0
- package/dist/cjs/menu-7050a6d1.js +13 -0
- package/dist/cjs/minus-1da6a98a.js +13 -0
- package/dist/cjs/mono-2f3cd653.js +13 -0
- package/dist/cjs/more-1d3dd8bc.js +15 -0
- package/dist/cjs/paper-0d6302f6.js +17 -0
- package/dist/cjs/plus-d0e00ad0.js +14 -0
- package/dist/cjs/portal-46212559.js +20 -0
- package/dist/cjs/private-38835fe7.js +27 -0
- package/dist/cjs/public-b519b1f6.js +18 -0
- package/dist/cjs/search-5533d877.js +14 -0
- package/dist/cjs/sharedUtils-8e287250.js +21 -0
- package/dist/cjs/star-942eee9f.js +7 -0
- package/dist/cjs/success-ef661a11.js +20 -0
- package/dist/cjs/svg-repository.cjs.entry.js +337 -0
- package/dist/cjs/thumbs-down-714036b1.js +7 -0
- package/dist/cjs/thumbs-up-411babb8.js +8 -0
- package/dist/cjs/toastManager-4e9535f3.js +33 -0
- package/dist/cjs/token-list_3.cjs.entry.js +300 -0
- package/dist/cjs/token-ratios.cjs.entry.js +29 -0
- package/dist/cjs/token-typography.cjs.entry.js +230 -0
- package/dist/cjs/tutotial-7855df3c.js +29 -0
- package/dist/cjs/twitter-73956e9a.js +16 -0
- package/dist/cjs/unknown-6814e551.js +24 -0
- package/dist/cjs/up-and-down-d71df67d.js +14 -0
- package/dist/cjs/user-a3c2230f.js +18 -0
- package/dist/cjs/youtube-c238a461.js +16 -0
- package/dist/collection/collection-manifest.json +128 -0
- package/dist/collection/components/eds-accordion/eds-accordion.css +264 -0
- package/dist/collection/components/eds-accordion/eds-accordion.js +222 -0
- package/dist/collection/components/eds-accordion/eds-accordion.stories.js +87 -0
- package/dist/collection/components/eds-alert/eds-alert.css +739 -0
- package/dist/collection/components/eds-alert/eds-alert.js +230 -0
- package/dist/collection/components/eds-alert/eds-alert.stories.js +60 -0
- package/dist/collection/components/eds-avatar/eds-avatar.css +187 -0
- package/dist/collection/components/eds-avatar/eds-avatar.js +183 -0
- package/dist/collection/components/eds-avatar/eds-avatar.stories.js +40 -0
- package/dist/collection/components/eds-block-break/eds-block-break.css +49 -0
- package/dist/collection/components/eds-block-break/eds-block-break.js +51 -0
- package/dist/collection/components/eds-breadcrump/eds-breadcrumb.css +112 -0
- package/dist/collection/components/eds-breadcrump/eds-breadcrumb.stories.js +40 -0
- package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +212 -0
- package/dist/collection/components/eds-button/eds-button.css +8904 -0
- package/dist/collection/components/eds-button/eds-button.js +487 -0
- package/dist/collection/components/eds-button/eds-button.stories.js +47 -0
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.css +41 -0
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.js +113 -0
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.css +9 -0
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.js +63 -0
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.css +92 -0
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.js +169 -0
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-wrapper/eds-card-wrapper.js +86 -0
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.css +139 -0
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +338 -0
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.stories.js +133 -0
- package/dist/collection/components/eds-cards/eds-card-project/eds-card-project.js +228 -0
- package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.css +103 -0
- package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.js +314 -0
- package/dist/collection/components/eds-code-block/eds-code-block.css +204 -0
- package/dist/collection/components/eds-code-block/eds-code-block.js +141 -0
- package/dist/collection/components/eds-code-block/eds-code-block.stories.js +78 -0
- package/dist/collection/components/eds-dropdown/eds-dropdown.css +117 -0
- package/dist/collection/components/eds-dropdown/eds-dropdown.js +369 -0
- package/dist/collection/components/eds-icon-wrapper/eds-icon-wrapper.js +92 -0
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-down/eds-icon-chevron-down.js +36 -0
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-left/eds-icon-chevron-left.js +36 -0
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-right/eds-icon-chevron-right.js +36 -0
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-up/eds-icon-chevron-up.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-arrow-diagonal/eds-icon-arrow-diagonal.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-arrow-right/eds-icon-arrow-right.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-bookmark/eds-icon-bookmark.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-close/eds-icon-close.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-copy/eds-icon-copy.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-eu/eds-icon-eu.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-external/eds-icon-external.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-loader/eds-icon-loader.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-menu/eds-icon-menu.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-minus/eds-icon-minus.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-more/eds-icon-more.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-paper/eds-icon-paper.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-plus/eds-icon-plus.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-portal/eds-icon-portal.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-private/eds-icon-private.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-public/eds-icon-public.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-search/eds-icon-search.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-star/eds-icon-star.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-success/eds-icon-success.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-thumbs-down/eds-icon-thumbs-down.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-thumbs-up/eds-icon-thumbs-up.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-tutorial/eds-icon-tutorial.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-unknown/eds-icon-unknown.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-updown/eds-icon-updown.js +36 -0
- package/dist/collection/components/eds-icons/eds-icon-user/eds-icon-user.js +36 -0
- package/dist/collection/components/eds-icons/social/eds-icon-bluesky/eds-icon-bluesky.js +36 -0
- package/dist/collection/components/eds-icons/social/eds-icon-facebook/eds-icon-facebook.js +36 -0
- package/dist/collection/components/eds-icons/social/eds-icon-linkedin/eds-icon-linkedin.js +36 -0
- package/dist/collection/components/eds-icons/social/eds-icon-mastodon/eds-icon-mastodon.js +36 -0
- package/dist/collection/components/eds-icons/social/eds-icon-twitter/eds-icon-twitter.js +36 -0
- package/dist/collection/components/eds-icons/social/eds-icon-youtube/eds-icon-youtube.js +36 -0
- package/dist/collection/components/eds-img/eds-img.css +83 -0
- package/dist/collection/components/eds-img/eds-img.js +252 -0
- package/dist/collection/components/eds-img/eds-img.stories.js +101 -0
- package/dist/collection/components/eds-input-elements/eds-input/eds-input.js +317 -0
- package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.js +105 -0
- package/dist/collection/components/eds-input-elements/eds-input-label/eds-input-label.js +90 -0
- package/dist/collection/components/eds-input-elements/eds-input-range/eds-input-range.js +252 -0
- package/dist/collection/components/eds-input-elements/eds-input-search/eds-input-search.js +263 -0
- package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +343 -0
- package/dist/collection/components/eds-input-field/eds-input-field.css +7760 -0
- package/dist/collection/components/eds-input-field/eds-input-field.js +451 -0
- package/dist/collection/components/eds-input-field/eds-input-field.stories.js +206 -0
- package/dist/collection/components/eds-link/eds-link.css +7101 -0
- package/dist/collection/components/eds-link/eds-link.js +492 -0
- package/dist/collection/components/eds-link/eds-link.stories.js +86 -0
- package/dist/collection/components/eds-logo/eds-logo.css +47 -0
- package/dist/collection/components/eds-logo/eds-logo.js +169 -0
- package/dist/collection/components/eds-logo/eds-logo.stories.js +38 -0
- package/dist/collection/components/eds-modal/eds-modal.css +304 -0
- package/dist/collection/components/eds-modal/eds-modal.js +298 -0
- package/dist/collection/components/eds-modal/eds-modal.stories.js +89 -0
- package/dist/collection/components/eds-pagination/eds-pagination.css +148 -0
- package/dist/collection/components/eds-pagination/eds-pagination.js +418 -0
- package/dist/collection/components/eds-pagination/eds-pagination.stories.js +135 -0
- package/dist/collection/components/eds-progress-bar/eds-progress-bar.css +62 -0
- package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +79 -0
- package/dist/collection/components/eds-progress-bar/eds-progress-bar.stories.js +25 -0
- package/dist/collection/components/eds-rating/eds-rating.css +79 -0
- package/dist/collection/components/eds-rating/eds-rating.js +126 -0
- package/dist/collection/components/eds-rating/eds-rating.stories.js +43 -0
- package/dist/collection/components/eds-section/eds-section-core/eds-section-core.css +0 -0
- package/dist/collection/components/eds-section/eds-section-core/eds-section-core.js +91 -0
- package/dist/collection/components/eds-section/eds-section-core/eds-section-core.stories.js +75 -0
- package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +140 -0
- package/dist/collection/components/eds-spinner/eds-spinner.css +17 -0
- package/dist/collection/components/eds-spinner/eds-spinner.js +166 -0
- package/dist/collection/components/eds-spinner/eds-spinner.stories.js +52 -0
- package/dist/collection/components/eds-steps/eds-steps.css +126 -0
- package/dist/collection/components/eds-steps/eds-steps.js +170 -0
- package/dist/collection/components/eds-steps/eds-steps.stories.js +35 -0
- package/dist/collection/components/eds-switch/eds-switch.css +58 -0
- package/dist/collection/components/eds-switch/eds-switch.js +131 -0
- package/dist/collection/components/eds-switch/eds-switch.stories.js +38 -0
- package/dist/collection/components/eds-table/eds-table.css +142 -0
- package/dist/collection/components/eds-table/eds-table.js +370 -0
- package/dist/collection/components/eds-table/eds-table.stories.js +99 -0
- package/dist/collection/components/eds-tag/eds-tag.css +101 -0
- package/dist/collection/components/eds-tag/eds-tag.js +110 -0
- package/dist/collection/components/eds-tag/eds-tag.stories.js +34 -0
- package/dist/collection/components/eds-timeline/eds-timeline.css +7793 -0
- package/dist/collection/components/eds-timeline/eds-timeline.js +93 -0
- package/dist/collection/components/eds-timeline/eds-timeline.stories.js +35 -0
- package/dist/collection/components/eds-toast/eds-toast.css +91 -0
- package/dist/collection/components/eds-toast/eds-toast.js +138 -0
- package/dist/collection/components/eds-toast/eds-toast.stories.js +38 -0
- package/dist/collection/components/eds-tooltip/eds-tooltip.css +94 -0
- package/dist/collection/components/eds-tooltip/eds-tooltip.js +179 -0
- package/dist/collection/components/eds-tooltip/eds-tooltip.stories.js +21 -0
- package/dist/collection/components/eds-trl/eds-trl.js +68 -0
- package/dist/{components/color-primary-palette.entry.js → collection/eds-docs-ui/colors/color-palette/primary.js} +9 -9
- package/dist/{components/color-secondary-palette.entry.js → collection/eds-docs-ui/colors/color-palette/secondary.js} +30 -9
- package/dist/{components/color-support-palette.entry.js → collection/eds-docs-ui/colors/color-palette/support.js} +9 -9
- package/dist/{components/gradient-primary-palette.entry.js → collection/eds-docs-ui/colors/gradient-palette/primary.js} +9 -9
- package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +75 -0
- package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +59 -0
- package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +66 -0
- package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +44 -0
- package/dist/collection/eds-docs-ui/components-section/components-section.js +55 -0
- package/dist/collection/eds-docs-ui/components-section/functional/angular.js +2 -0
- package/dist/collection/eds-docs-ui/components-section/functional/installation.js +2 -0
- package/dist/collection/eds-docs-ui/components-section/functional/overview.js +19 -0
- package/dist/collection/eds-docs-ui/components-section/functional/react.js +2 -0
- package/dist/collection/eds-docs-ui/components-section/functional/usage.js +2 -0
- package/dist/collection/eds-docs-ui/components-section/functional/vue.js +2 -0
- package/dist/collection/eds-docs-ui/design-tokens/docs-tokens/docs-tokens.js +52 -0
- package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +98 -0
- package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.stories.js +44 -0
- package/dist/{components/token-radii.entry.js → collection/eds-docs-ui/design-tokens/token-radii/token-radii.js} +9 -19
- package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +15 -0
- package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +11 -0
- package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +10 -0
- package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +27 -0
- package/dist/collection/eds-docs-ui/docs-palettes/docs-palettes.js +44 -0
- package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.css +154 -0
- package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +22 -0
- package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.css +161 -0
- package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +21 -0
- package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.css +169 -0
- package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +64 -0
- package/dist/collection/eds-docs-ui/logo/logo-variations-tabs/logo-variations.js +44 -0
- package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.css +240 -0
- package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +22 -0
- package/dist/collection/eds-docs-ui/svg-repository/svg-repository.css +5 -0
- package/dist/{components/svg-repository.entry.js → collection/eds-docs-ui/svg-repository/svg-repository.js} +21 -15
- package/dist/collection/index.js +1 -0
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.css +249 -0
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.js +95 -0
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.stories.js +71 -0
- package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.css +0 -0
- package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +86 -0
- package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.st.js +31 -0
- package/dist/collection/shared-ui/eds-feedback/eds-feedback.css +163 -0
- package/dist/collection/shared-ui/eds-feedback/eds-feedback.js +191 -0
- package/dist/collection/shared-ui/eds-feedback/eds-feedback.stories.js +121 -0
- package/dist/collection/shared-ui/eds-footer/eds-footer.css +226 -0
- package/dist/collection/shared-ui/eds-footer/eds-footer.js +189 -0
- package/dist/collection/shared-ui/eds-footer/eds-footer.stories.js +52 -0
- package/dist/collection/shared-ui/eds-form/eds-form.css +3 -0
- package/dist/collection/shared-ui/eds-form/eds-form.js +441 -0
- package/dist/collection/shared-ui/eds-form/eds-form.stories.js +82 -0
- package/dist/collection/shared-ui/eds-frame/eds-frame.css +116 -0
- package/dist/collection/shared-ui/eds-frame/eds-frame.js +234 -0
- package/dist/collection/shared-ui/eds-frame/eds-frame.stories.js +52 -0
- package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.css +120 -0
- package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +192 -0
- package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.stories.js +77 -0
- package/dist/collection/shared-ui/eds-header/eds-header.css +138 -0
- package/dist/collection/shared-ui/eds-header/eds-header.js +202 -0
- package/dist/collection/shared-ui/eds-header/eds-header.stories.js +41 -0
- package/dist/collection/shared-ui/eds-login/eds-login.js +190 -0
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.css +109 -0
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +230 -0
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.stories.js +30 -0
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.css +124 -0
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +92 -0
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.stories.js +21 -0
- package/dist/collection/shared-ui/eds-splash-screen/eds-splash-screen.css +29 -0
- package/dist/collection/shared-ui/eds-splash-screen/eds-splash-screen.js +136 -0
- package/dist/collection/shared-ui/eds-splash-screen/eds-splash-screen.stories.js +23 -0
- package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.css +385 -0
- package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.js +219 -0
- package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.stories.js +79 -0
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.css +7793 -0
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +221 -0
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.stories.js +54 -0
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.css +51 -0
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +54 -0
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.stories.js +25 -0
- package/dist/collection/shared-ui/eds-user/eds-user.css +7793 -0
- package/dist/collection/shared-ui/eds-user/eds-user.js +77 -0
- package/dist/collection/shared-ui/eds-user/eds-user.stories.js +45 -0
- package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +39 -0
- package/dist/{components/analytics-e29fcd53.js → collection/utils/analytics.js} +6 -8
- package/dist/collection/utils/api.js +27 -0
- package/dist/collection/utils/color.js +129 -0
- package/dist/collection/utils/eds-form/formUtils.js +65 -0
- package/dist/collection/utils/eds-form/formValidators.js +64 -0
- package/dist/collection/utils/eds-form/individualValidator.js +46 -0
- package/dist/collection/utils/eds-form/validateInput.js +23 -0
- package/dist/collection/utils/global.js +8 -0
- package/dist/collection/utils/keycloak.js +85 -0
- package/dist/collection/utils/sharedUtils.js +17 -0
- package/dist/collection/utils/toastManager.js +29 -0
- package/dist/components/analytics.js +56 -0
- package/dist/components/arrow-diagonal-black.js +3 -0
- package/dist/components/arrow-right.js +5 -0
- package/dist/components/bluesky.js +14 -0
- package/dist/components/bookmark.js +16 -0
- package/dist/components/chevron-down.js +12 -0
- package/dist/components/chevron-left.js +11 -0
- package/dist/components/chevron-right.js +5 -0
- package/dist/components/chevron-up.js +12 -0
- package/dist/components/close.js +5 -0
- package/dist/components/color-primary-palette.d.ts +11 -0
- package/dist/components/color-primary-palette.js +6 -0
- package/dist/components/color-secondary-palette.d.ts +11 -0
- package/dist/components/color-secondary-palette.js +6 -0
- package/dist/components/color-support-palette.d.ts +11 -0
- package/dist/components/color-support-palette.js +6 -0
- package/dist/components/{color-47266964.js → color.js} +1 -1
- package/dist/components/components-section.d.ts +11 -0
- package/dist/components/components-section.js +202 -0
- package/dist/components/components.css +7793 -0
- package/dist/components/components.esm.js +1 -47
- package/dist/components/copy.js +5 -0
- package/dist/components/correct-use-of-colors.d.ts +11 -0
- package/dist/components/correct-use-of-colors.js +93 -0
- package/dist/components/docs-palettes.d.ts +11 -0
- package/dist/components/docs-palettes.js +96 -0
- package/dist/components/docs-tokens.d.ts +11 -0
- package/dist/components/docs-tokens.js +80 -0
- package/dist/components/eds-accordion.d.ts +11 -0
- package/dist/components/eds-accordion.js +6 -0
- package/dist/components/eds-accordion2.js +119 -0
- package/dist/components/eds-alert.d.ts +11 -0
- package/dist/components/eds-alert.js +6 -0
- package/dist/components/eds-alert2.js +135 -0
- package/dist/components/eds-app-root.d.ts +11 -0
- package/dist/components/eds-app-root.js +89 -0
- package/dist/components/eds-avatar.d.ts +11 -0
- package/dist/components/eds-avatar.js +6 -0
- package/dist/components/{eds-avatar.entry.js → eds-avatar2.js} +37 -10
- package/dist/components/eds-block-break.d.ts +11 -0
- package/dist/components/eds-block-break.js +6 -0
- package/dist/components/eds-block-break2.js +34 -0
- package/dist/components/eds-breadcrumb.d.ts +11 -0
- package/dist/components/{eds-breadcrumb.entry.js → eds-breadcrumb.js} +49 -10
- package/dist/components/eds-button.d.ts +11 -0
- package/dist/components/eds-button.js +6 -0
- package/dist/components/{eds-button.entry.js → eds-button2.js} +47 -11
- package/dist/components/eds-card-desc.d.ts +11 -0
- package/dist/components/eds-card-desc.js +6 -0
- package/dist/components/{eds-card-desc.entry.js → eds-card-desc2.js} +29 -8
- package/dist/components/eds-card-generic.d.ts +11 -0
- package/dist/components/eds-card-generic.js +6 -0
- package/dist/components/eds-card-generic2.js +147 -0
- package/dist/components/eds-card-project.d.ts +11 -0
- package/dist/components/eds-card-project.js +109 -0
- package/dist/components/eds-card-section.d.ts +11 -0
- package/dist/components/eds-card-section.js +92 -0
- package/dist/components/eds-card-tags.d.ts +11 -0
- package/dist/components/eds-card-tags.js +45 -0
- package/dist/components/eds-card-title.d.ts +11 -0
- package/dist/components/eds-card-title.js +6 -0
- package/dist/components/{eds-card-title.entry.js → eds-card-title2.js} +31 -8
- package/dist/components/eds-card-tool.d.ts +11 -0
- package/dist/components/eds-card-tool.js +137 -0
- package/dist/components/eds-card-wrapper.d.ts +11 -0
- package/dist/components/eds-card-wrapper.js +49 -0
- package/dist/components/eds-code-block.d.ts +11 -0
- package/dist/components/eds-code-block.js +6 -0
- package/dist/components/eds-code-block2.js +2510 -0
- package/dist/components/eds-cookies-preference.d.ts +11 -0
- package/dist/components/eds-cookies-preference.js +87 -0
- package/dist/components/eds-dropdown.d.ts +11 -0
- package/dist/components/eds-dropdown.js +6 -0
- package/dist/components/{eds-dropdown.entry.js → eds-dropdown2.js} +50 -11
- package/dist/components/eds-feedback.d.ts +11 -0
- package/dist/components/eds-feedback.js +105 -0
- package/dist/components/eds-footer.d.ts +11 -0
- package/dist/components/eds-footer.js +6 -0
- package/dist/components/{eds-footer.entry.js → eds-footer2.js} +62 -9
- package/dist/components/eds-form.d.ts +11 -0
- package/dist/components/{eds-form.entry.js → eds-form.js} +100 -66
- package/dist/components/eds-frame.d.ts +11 -0
- package/dist/components/eds-frame.js +120 -0
- package/dist/components/eds-fullscreen-menu.d.ts +11 -0
- package/dist/components/{eds-fullscreen-menu.entry.js → eds-fullscreen-menu.js} +81 -8
- package/dist/components/eds-header.d.ts +11 -0
- package/dist/components/{eds-header.entry.js → eds-header.js} +64 -13
- package/dist/components/eds-icon-arrow-diagonal.d.ts +11 -0
- package/dist/components/eds-icon-arrow-diagonal.js +33 -0
- package/dist/components/eds-icon-arrow-right.d.ts +11 -0
- package/dist/components/eds-icon-arrow-right.js +33 -0
- package/dist/components/eds-icon-bluesky.d.ts +11 -0
- package/dist/components/eds-icon-bluesky.js +33 -0
- package/dist/components/eds-icon-bookmark.d.ts +11 -0
- package/dist/components/eds-icon-bookmark.js +33 -0
- package/dist/components/eds-icon-chevron-down.d.ts +11 -0
- package/dist/components/eds-icon-chevron-down.js +33 -0
- package/dist/components/eds-icon-chevron-left.d.ts +11 -0
- package/dist/components/eds-icon-chevron-left.js +33 -0
- package/dist/components/eds-icon-chevron-right.d.ts +11 -0
- package/dist/components/eds-icon-chevron-right.js +33 -0
- package/dist/components/eds-icon-chevron-up.d.ts +11 -0
- package/dist/components/eds-icon-chevron-up.js +33 -0
- package/dist/components/eds-icon-close.d.ts +11 -0
- package/dist/components/eds-icon-close.js +33 -0
- package/dist/components/eds-icon-copy.d.ts +11 -0
- package/dist/components/eds-icon-copy.js +33 -0
- package/dist/components/eds-icon-eu.d.ts +11 -0
- package/dist/components/eds-icon-eu.js +33 -0
- package/dist/components/eds-icon-external.d.ts +11 -0
- package/dist/components/eds-icon-external.js +33 -0
- package/dist/components/eds-icon-facebook.d.ts +11 -0
- package/dist/components/eds-icon-facebook.js +33 -0
- package/dist/components/eds-icon-gitlab.d.ts +11 -0
- package/dist/components/eds-icon-gitlab.js +33 -0
- package/dist/components/eds-icon-linkedin.d.ts +11 -0
- package/dist/components/eds-icon-linkedin.js +33 -0
- package/dist/components/eds-icon-loader.d.ts +11 -0
- package/dist/components/eds-icon-loader.js +33 -0
- package/dist/components/eds-icon-mastodon.d.ts +11 -0
- package/dist/components/eds-icon-mastodon.js +33 -0
- package/dist/components/eds-icon-menu.d.ts +11 -0
- package/dist/components/eds-icon-menu.js +33 -0
- package/dist/components/eds-icon-minus.d.ts +11 -0
- package/dist/components/eds-icon-minus.js +33 -0
- package/dist/components/eds-icon-more.d.ts +11 -0
- package/dist/components/eds-icon-more.js +33 -0
- package/dist/components/eds-icon-paper.d.ts +11 -0
- package/dist/components/eds-icon-paper.js +33 -0
- package/dist/components/eds-icon-plus.d.ts +11 -0
- package/dist/components/eds-icon-plus.js +33 -0
- package/dist/components/eds-icon-portal.d.ts +11 -0
- package/dist/components/eds-icon-portal.js +33 -0
- package/dist/components/eds-icon-private.d.ts +11 -0
- package/dist/components/eds-icon-private.js +33 -0
- package/dist/components/eds-icon-public.d.ts +11 -0
- package/dist/components/eds-icon-public.js +33 -0
- package/dist/components/eds-icon-search.d.ts +11 -0
- package/dist/components/eds-icon-search.js +33 -0
- package/dist/components/eds-icon-star.d.ts +11 -0
- package/dist/components/eds-icon-star.js +33 -0
- package/dist/components/eds-icon-success.d.ts +11 -0
- package/dist/components/eds-icon-success.js +33 -0
- package/dist/components/eds-icon-thumbs-down.d.ts +11 -0
- package/dist/components/eds-icon-thumbs-down.js +33 -0
- package/dist/components/eds-icon-thumbs-up.d.ts +11 -0
- package/dist/components/eds-icon-thumbs-up.js +33 -0
- package/dist/components/eds-icon-tutorial.d.ts +11 -0
- package/dist/components/eds-icon-tutorial.js +33 -0
- package/dist/components/eds-icon-twitter.d.ts +11 -0
- package/dist/components/eds-icon-twitter.js +33 -0
- package/dist/components/eds-icon-unknown.d.ts +11 -0
- package/dist/components/eds-icon-unknown.js +33 -0
- package/dist/components/eds-icon-updown.d.ts +11 -0
- package/dist/components/eds-icon-updown.js +33 -0
- package/dist/components/eds-icon-user.d.ts +11 -0
- package/dist/components/eds-icon-user.js +33 -0
- package/dist/components/eds-icon-wrapper.d.ts +11 -0
- package/dist/components/eds-icon-wrapper.js +6 -0
- package/dist/components/{eds-icon-wrapper.entry.js → eds-icon-wrapper2.js} +26 -6
- package/dist/components/eds-icon-youtube.d.ts +11 -0
- package/dist/components/eds-icon-youtube.js +33 -0
- package/dist/components/eds-img.d.ts +11 -0
- package/dist/components/eds-img.js +6 -0
- package/dist/components/{eds-img.entry.js → eds-img2.js} +38 -10
- package/dist/components/eds-input-field.d.ts +11 -0
- package/dist/components/eds-input-field.js +6 -0
- package/dist/components/{eds-input-field.entry.js → eds-input-field2.js} +88 -10
- package/dist/components/eds-input-footer.d.ts +11 -0
- package/dist/components/eds-input-footer.js +6 -0
- package/dist/components/eds-input-footer2.js +43 -0
- package/dist/components/eds-input-label.d.ts +11 -0
- package/dist/components/eds-input-label.js +6 -0
- package/dist/components/eds-input-label2.js +35 -0
- package/dist/components/eds-input-range.d.ts +11 -0
- package/dist/components/eds-input-range.js +6 -0
- package/dist/components/{eds-input-range.entry.js → eds-input-range2.js} +35 -8
- package/dist/components/eds-input-search.d.ts +11 -0
- package/dist/components/eds-input-search.js +6 -0
- package/dist/components/{eds-input-search.entry.js → eds-input-search2.js} +39 -9
- package/dist/components/eds-input-select.d.ts +11 -0
- package/dist/components/eds-input-select.js +6 -0
- package/dist/components/{eds-input-select.entry.js → eds-input-select2.js} +48 -9
- package/dist/components/eds-input.d.ts +11 -0
- package/dist/components/eds-input.js +6 -0
- package/dist/components/{eds-input.entry.js → eds-input2.js} +48 -9
- package/dist/components/eds-link.d.ts +11 -0
- package/dist/components/eds-link.js +6 -0
- package/dist/components/{eds-link.entry.js → eds-link2.js} +48 -11
- package/dist/components/eds-login.d.ts +11 -0
- package/dist/components/eds-login.js +6 -0
- package/dist/components/{eds-login.entry.js → eds-login2.js} +42 -18
- package/dist/components/eds-logo.d.ts +11 -0
- package/dist/components/eds-logo.js +6 -0
- package/dist/components/{eds-logo.entry.js → eds-logo2.js} +33 -11
- package/dist/components/eds-matomo-notice.d.ts +11 -0
- package/dist/components/eds-matomo-notice.js +6 -0
- package/dist/components/eds-matomo-notice2.js +158 -0
- package/dist/components/eds-modal.d.ts +11 -0
- package/dist/components/eds-modal.js +166 -0
- package/dist/components/eds-pagination.d.ts +11 -0
- package/dist/components/eds-pagination.js +6 -0
- package/dist/components/{eds-pagination.entry.js → eds-pagination2.js} +52 -9
- package/dist/components/eds-progress-bar.d.ts +11 -0
- package/dist/components/eds-progress-bar.js +6 -0
- package/dist/components/eds-progress-bar2.js +43 -0
- package/dist/components/eds-rating.d.ts +11 -0
- package/dist/components/eds-rating.js +6 -0
- package/dist/components/eds-rating2.js +91 -0
- package/dist/components/eds-section-core.d.ts +11 -0
- package/dist/components/eds-section-core.js +6 -0
- package/dist/components/eds-section-core2.js +44 -0
- package/dist/components/eds-section-heading.d.ts +11 -0
- package/dist/components/eds-section-heading.js +6 -0
- package/dist/components/eds-section-heading2.js +57 -0
- package/dist/components/eds-social-networks.d.ts +11 -0
- package/dist/components/eds-social-networks.js +6 -0
- package/dist/components/{eds-social-networks.entry.js → eds-social-networks2.js} +38 -8
- package/dist/components/eds-spinner.d.ts +11 -0
- package/dist/components/eds-spinner.js +6 -0
- package/dist/components/eds-spinner2.js +72 -0
- package/dist/components/eds-splash-screen.d.ts +11 -0
- package/dist/components/eds-splash-screen.js +6 -0
- package/dist/components/{eds-splash-screen.entry.js → eds-splash-screen2.js} +41 -7
- package/dist/components/eds-steps-v2.d.ts +11 -0
- package/dist/components/{eds-steps-v2.entry.js → eds-steps-v2.js} +59 -13
- package/dist/components/eds-steps.d.ts +11 -0
- package/dist/components/eds-steps.js +6 -0
- package/dist/components/{eds-steps.entry.js → eds-steps2.js} +43 -9
- package/dist/components/eds-switch.d.ts +11 -0
- package/dist/components/eds-switch.js +57 -0
- package/dist/components/eds-table.d.ts +11 -0
- package/dist/components/eds-table.js +6 -0
- package/dist/components/{eds-table.entry.js → eds-table2.js} +109 -14
- package/dist/components/eds-tabs.d.ts +11 -0
- package/dist/components/eds-tabs.js +152 -0
- package/dist/components/eds-tag.d.ts +11 -0
- package/dist/components/eds-tag.js +6 -0
- package/dist/components/{eds-tag.entry.js → eds-tag2.js} +29 -9
- package/dist/components/eds-timeline.d.ts +11 -0
- package/dist/components/eds-timeline.js +119 -0
- package/dist/components/eds-toast-manager.d.ts +11 -0
- package/dist/components/eds-toast-manager.js +80 -0
- package/dist/components/eds-toast.d.ts +11 -0
- package/dist/components/eds-toast.js +6 -0
- package/dist/components/eds-toast2.js +104 -0
- package/dist/components/eds-tooltip.d.ts +11 -0
- package/dist/components/eds-tooltip.js +129 -0
- package/dist/components/eds-trl.d.ts +11 -0
- package/dist/components/eds-trl.js +138 -0
- package/dist/components/eds-user.d.ts +11 -0
- package/dist/components/{eds-user.entry.js → eds-user.js} +61 -10
- package/dist/components/eu.js +30 -0
- package/dist/components/facebook.js +14 -0
- package/dist/components/gradient-primary-palette.d.ts +11 -0
- package/dist/components/gradient-primary-palette.js +6 -0
- package/dist/components/gradient-secondary-palette.d.ts +11 -0
- package/dist/components/gradient-secondary-palette.js +6 -0
- package/dist/components/gradient-support-palette.d.ts +11 -0
- package/dist/components/gradient-support-palette.js +6 -0
- package/dist/components/incorrect-use-of-colors.d.ts +11 -0
- package/dist/components/incorrect-use-of-colors.js +81 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.esm.js +0 -1
- package/dist/components/index.js +1 -0
- package/dist/components/linkedin.js +28 -0
- package/dist/components/loader.js +30 -0
- package/dist/components/logo-color-margins.js +118 -0
- package/dist/components/logo-color.js +115 -0
- package/dist/components/logo-space.d.ts +11 -0
- package/dist/components/logo-space.js +101 -0
- package/dist/components/logo-variations-horizontal.d.ts +11 -0
- package/dist/components/logo-variations-horizontal.js +6 -0
- package/dist/components/{logo-variations-horizontal.entry.js → logo-variations-horizontal2.js} +30 -8
- package/dist/components/logo-variations-tabs.d.ts +11 -0
- package/dist/components/logo-variations-tabs.js +60 -0
- package/dist/components/logo-variations-vertical.d.ts +11 -0
- package/dist/components/logo-variations-vertical.js +6 -0
- package/dist/components/{logo-variations-vertical.entry.js → logo-variations-vertical2.js} +33 -8
- package/dist/components/logo-white-no-bg.js +1029 -0
- package/dist/components/logo-wrong-usage.d.ts +11 -0
- package/dist/components/logo-wrong-usage.js +35 -0
- package/dist/components/mastodon.js +14 -0
- package/dist/components/menu.js +11 -0
- package/dist/components/minus.js +11 -0
- package/dist/components/mono.js +11 -0
- package/dist/components/more.js +13 -0
- package/dist/components/p-024c7937.js +1 -0
- package/dist/components/p-037975af.entry.js +1 -0
- package/dist/components/p-05549a74.entry.js +1 -0
- package/dist/components/p-05754401.js +1 -0
- package/dist/components/p-05b272e5.entry.js +1 -0
- package/dist/components/p-0b99fd3c.entry.js +1 -0
- package/dist/components/p-0be28996.js +1 -0
- package/dist/components/p-0e378e0e.entry.js +1 -0
- package/dist/components/p-0e6d43c5.js +1 -0
- package/dist/components/p-112122d6.js +1 -0
- package/dist/components/p-13efafb9.js +1 -0
- package/dist/components/p-1b2913c8.js +1 -0
- package/dist/components/p-1ded61bd.js +1 -0
- package/dist/components/p-1ec25dc2.entry.js +1 -0
- package/dist/components/p-202f78cc.entry.js +1 -0
- package/dist/components/p-2066b033.js +1 -0
- package/dist/components/p-2117611b.js +1 -0
- package/dist/components/p-22b76c3c.entry.js +1 -0
- package/dist/components/p-22f9e720.js +1 -0
- package/dist/components/p-24300934.entry.js +1 -0
- package/dist/components/p-25f1cc6c.entry.js +1 -0
- package/dist/components/p-2692f93d.js +1 -0
- package/dist/components/p-29041952.js +1 -0
- package/dist/components/p-29ad9c73.entry.js +1 -0
- package/dist/components/p-31ca07fd.entry.js +1 -0
- package/dist/components/p-32e6c4df.js +1 -0
- package/dist/components/p-342bc3d8.entry.js +1 -0
- package/dist/components/p-35068b80.entry.js +1 -0
- package/dist/components/p-373119b3.js +1 -0
- package/dist/components/p-3950debe.entry.js +1 -0
- package/dist/components/p-3d74d4b1.entry.js +1 -0
- package/dist/components/p-42f19373.entry.js +1 -0
- package/dist/components/p-4587d0ef.js +1 -0
- package/dist/components/p-4687b64c.js +1 -0
- package/dist/components/p-46d0716d.js +1 -0
- package/dist/components/p-4ecaedbc.entry.js +1 -0
- package/dist/components/p-5055eb25.entry.js +1 -0
- package/dist/components/p-50e27321.js +1 -0
- package/dist/components/p-54b8f143.js +1 -0
- package/dist/components/p-55e3683c.entry.js +9 -0
- package/dist/components/p-5646902d.entry.js +1 -0
- package/dist/components/p-5ab1d64a.js +1 -0
- package/dist/components/p-5d046674.js +1 -0
- package/dist/components/p-5ff68e7d.entry.js +1 -0
- package/dist/components/p-63cc5d3d.entry.js +1 -0
- package/dist/components/p-6506cf52.entry.js +1 -0
- package/dist/components/p-67c72c20.entry.js +1 -0
- package/dist/components/p-688e07d6.entry.js +1 -0
- package/dist/components/p-694fc085.js +1 -0
- package/dist/components/p-69c5074b.js +1 -0
- package/dist/components/p-6aa17003.entry.js +1 -0
- package/dist/components/p-6e273e0f.entry.js +1 -0
- package/dist/components/p-6fcb754e.entry.js +1 -0
- package/dist/components/p-70c9af1e.entry.js +1 -0
- package/dist/components/p-7180a36b.entry.js +1 -0
- package/dist/components/p-7198c024.js +1 -0
- package/dist/components/p-7351cad3.entry.js +1 -0
- package/dist/components/p-751497f4.entry.js +1 -0
- package/dist/components/p-75cc9f9e.entry.js +1 -0
- package/dist/components/p-75d37c48.entry.js +1 -0
- package/dist/components/p-7a31c31f.entry.js +1 -0
- package/dist/components/p-7a550385.entry.js +1 -0
- package/dist/components/p-7ac9881e.entry.js +1 -0
- package/dist/components/p-7cb60f9c.entry.js +1 -0
- package/dist/components/p-7db75d62.entry.js +1 -0
- package/dist/components/p-81899237.js +1 -0
- package/dist/components/p-83ff4a95.js +1 -0
- package/dist/components/p-86bb73dc.js +1 -0
- package/dist/components/p-888c3471.entry.js +1 -0
- package/dist/components/p-892362e0.entry.js +1 -0
- package/dist/components/p-8983de37.js +1 -0
- package/dist/components/p-8a4d9b9b.entry.js +1 -0
- package/dist/components/p-8b7f5204.entry.js +1 -0
- package/dist/components/p-8db820ef.entry.js +1 -0
- package/dist/components/p-9c5a453b.js +1 -0
- package/dist/components/p-aa2e6fec.entry.js +1 -0
- package/dist/components/p-ae4f5e3a.entry.js +1 -0
- package/dist/components/p-aefcb641.js +1 -0
- package/dist/components/p-b024183c.entry.js +1 -0
- package/dist/components/p-b115c3f1.entry.js +1 -0
- package/dist/components/p-b3a3ae59.entry.js +1 -0
- package/dist/components/p-b4595a9e.entry.js +1 -0
- package/dist/components/p-b73410de.js +1 -0
- package/dist/components/p-b817dceb.entry.js +1 -0
- package/dist/components/p-b822abb7.js +1 -0
- package/dist/components/p-b8ba7e5c.entry.js +1 -0
- package/dist/components/p-b8ca2127.entry.js +1 -0
- package/dist/components/p-ba6cc102.entry.js +1 -0
- package/dist/components/p-ba720bf3.js +1 -0
- package/dist/components/p-c1e4ef92.js +1 -0
- package/dist/components/p-c4db0829.entry.js +1 -0
- package/dist/components/p-c51b5f04.entry.js +1 -0
- package/dist/components/p-c5a7d2b1.entry.js +1 -0
- package/dist/components/p-c5c782e7.entry.js +1 -0
- package/dist/components/p-c5f98369.entry.js +1 -0
- package/dist/components/p-c604063d.entry.js +1 -0
- package/dist/components/p-c776b6f8.js +1 -0
- package/dist/components/p-c8e7c854.js +1 -0
- package/dist/components/p-c9a19e93.entry.js +1 -0
- package/dist/components/p-cccacbd3.js +2 -0
- package/dist/components/p-cdf19579.js +1 -0
- package/dist/components/p-d164a75d.entry.js +1 -0
- package/dist/components/p-d4c920fa.entry.js +1 -0
- package/dist/components/p-d82cc261.entry.js +1 -0
- package/dist/components/p-d83d2815.entry.js +1 -0
- package/dist/components/p-d962849c.js +1 -0
- package/dist/components/p-da6e49a9.entry.js +1 -0
- package/dist/components/p-dcd4de1f.entry.js +1 -0
- package/dist/components/p-e089797c.entry.js +1 -0
- package/dist/components/p-e1255160.js +1 -0
- package/dist/components/p-e2b00067.entry.js +1 -0
- package/dist/components/p-e2d5a487.js +1 -0
- package/dist/components/p-e8a2d709.entry.js +1 -0
- package/dist/components/p-ea942740.entry.js +1 -0
- package/dist/components/p-eb0b93d5.js +1 -0
- package/dist/components/p-ecbb679f.js +1 -0
- package/dist/components/p-ece20356.entry.js +1 -0
- package/dist/components/p-ece618b3.js +1 -0
- package/dist/components/p-ed6fd4b8.entry.js +1 -0
- package/dist/components/p-f3822d6b.entry.js +1 -0
- package/dist/components/p-f539febe.entry.js +1 -0
- package/dist/components/p-f7f4b247.entry.js +1 -0
- package/dist/components/p-fdbfa776.entry.js +1 -0
- package/dist/components/p-fe27f4a9.entry.js +1 -0
- package/dist/components/paper.js +15 -0
- package/dist/components/plus.js +12 -0
- package/dist/components/portal.js +18 -0
- package/dist/components/primary.js +65 -0
- package/dist/components/primary2.js +67 -0
- package/dist/components/private.js +25 -0
- package/dist/components/public.js +16 -0
- package/dist/components/search.js +12 -0
- package/dist/components/secondary.js +92 -0
- package/dist/components/secondary2.js +107 -0
- package/dist/components/star.js +5 -0
- package/dist/components/success.js +18 -0
- package/dist/components/support.js +94 -0
- package/dist/components/support2.js +85 -0
- package/dist/components/svg-repository.d.ts +11 -0
- package/dist/components/svg-repository.js +417 -0
- package/dist/components/thumbs-down.js +5 -0
- package/dist/components/thumbs-up.js +6 -0
- package/dist/components/token-list.d.ts +11 -0
- package/dist/components/token-list.js +6 -0
- package/dist/components/{token-list.entry.js → token-list2.js} +35 -7
- package/dist/components/token-radii.d.ts +11 -0
- package/dist/components/token-radii.js +6 -0
- package/dist/components/token-radii2.js +47 -0
- package/dist/components/token-ratios.d.ts +11 -0
- package/dist/components/token-ratios.js +54 -0
- package/dist/components/token-shadows.d.ts +11 -0
- package/dist/components/token-shadows.js +6 -0
- package/dist/components/token-shadows2.js +56 -0
- package/dist/components/token-spacing.d.ts +11 -0
- package/dist/components/token-spacing.js +29 -0
- package/dist/components/token-typography.d.ts +11 -0
- package/dist/components/token-typography.js +255 -0
- package/dist/components/tutotial.js +27 -0
- package/dist/components/twitter.js +14 -0
- package/dist/components/unknown.js +22 -0
- package/dist/components/up-and-down.js +12 -0
- package/dist/components/user.js +16 -0
- package/dist/components/youtube.js +14 -0
- package/dist/esm/analytics-44b1416b.js +56 -0
- package/dist/esm/arrow-diagonal-black-8f0494c3.js +3 -0
- package/dist/esm/arrow-right-9322ba8a.js +5 -0
- package/dist/esm/bluesky-cc5edd2d.js +14 -0
- package/dist/esm/bookmark-c200037c.js +16 -0
- package/dist/esm/chevron-down-6144c823.js +12 -0
- package/dist/esm/chevron-left-ca6c66e1.js +11 -0
- package/dist/esm/chevron-right-b88ed2d4.js +5 -0
- package/dist/esm/chevron-up-c66bd477.js +12 -0
- package/dist/esm/close-87fc0d63.js +5 -0
- package/dist/esm/color-2554aad6.js +132 -0
- package/dist/esm/color-primary-palette_6.entry.js +331 -0
- package/dist/{components → esm}/components-section.entry.js +2 -2
- package/dist/esm/components.js +20 -0
- package/dist/esm/copy-03b72cb6.js +5 -0
- package/dist/{components → esm}/correct-use-of-colors.entry.js +2 -2
- package/dist/{components → esm}/docs-palettes.entry.js +2 -2
- package/dist/{components → esm}/docs-tokens.entry.js +2 -2
- package/dist/{components → esm}/eds-accordion.entry.js +6 -5
- package/dist/{components → esm}/eds-alert.entry.js +6 -5
- package/dist/{components → esm}/eds-app-root.entry.js +2 -2
- package/dist/esm/eds-avatar_27.entry.js +2374 -0
- package/dist/esm/eds-card-desc_2.entry.js +73 -0
- package/dist/{components → esm}/eds-card-generic.entry.js +5 -4
- package/dist/{components → esm}/eds-card-project.entry.js +5 -5
- package/dist/{components → esm}/eds-card-section.entry.js +4 -3
- package/dist/{components → esm}/eds-card-tags.entry.js +4 -3
- package/dist/{components → esm}/eds-card-tool.entry.js +5 -4
- package/dist/{components → esm}/eds-card-wrapper.entry.js +2 -2
- package/dist/{components → esm}/eds-code-block.entry.js +5 -35
- package/dist/{components → esm}/eds-cookies-preference.entry.js +4 -3
- package/dist/{components → esm}/eds-feedback.entry.js +5 -4
- package/dist/{components → esm}/eds-frame.entry.js +4 -3
- package/dist/esm/eds-icon-arrow-diagonal.entry.js +14 -0
- package/dist/esm/eds-icon-arrow-right.entry.js +14 -0
- package/dist/esm/eds-icon-bluesky.entry.js +14 -0
- package/dist/esm/eds-icon-bookmark.entry.js +14 -0
- package/dist/esm/eds-icon-chevron-down.entry.js +14 -0
- package/dist/esm/eds-icon-chevron-left.entry.js +14 -0
- package/dist/esm/eds-icon-chevron-right.entry.js +14 -0
- package/dist/esm/eds-icon-chevron-up.entry.js +14 -0
- package/dist/esm/eds-icon-close.entry.js +14 -0
- package/dist/esm/eds-icon-copy.entry.js +14 -0
- package/dist/esm/eds-icon-eu.entry.js +14 -0
- package/dist/esm/eds-icon-external.entry.js +14 -0
- package/dist/esm/eds-icon-facebook.entry.js +14 -0
- package/dist/esm/eds-icon-gitlab.entry.js +14 -0
- package/dist/esm/eds-icon-linkedin.entry.js +14 -0
- package/dist/esm/eds-icon-loader.entry.js +14 -0
- package/dist/esm/eds-icon-mastodon.entry.js +14 -0
- package/dist/esm/eds-icon-menu.entry.js +14 -0
- package/dist/esm/eds-icon-minus.entry.js +14 -0
- package/dist/esm/eds-icon-more.entry.js +14 -0
- package/dist/esm/eds-icon-paper.entry.js +14 -0
- package/dist/esm/eds-icon-plus.entry.js +14 -0
- package/dist/esm/eds-icon-portal.entry.js +14 -0
- package/dist/esm/eds-icon-private.entry.js +14 -0
- package/dist/esm/eds-icon-public.entry.js +14 -0
- package/dist/esm/eds-icon-search.entry.js +14 -0
- package/dist/esm/eds-icon-star.entry.js +14 -0
- package/dist/esm/eds-icon-success.entry.js +14 -0
- package/dist/esm/eds-icon-thumbs-down.entry.js +14 -0
- package/dist/esm/eds-icon-thumbs-up.entry.js +14 -0
- package/dist/esm/eds-icon-tutorial.entry.js +14 -0
- package/dist/esm/eds-icon-twitter.entry.js +14 -0
- package/dist/esm/eds-icon-unknown.entry.js +14 -0
- package/dist/esm/eds-icon-updown.entry.js +14 -0
- package/dist/esm/eds-icon-user.entry.js +14 -0
- package/dist/esm/eds-icon-youtube.entry.js +14 -0
- package/dist/esm/eds-login_2.entry.js +2095 -0
- package/dist/{components → esm}/eds-matomo-notice.entry.js +4 -3
- package/dist/esm/eds-pagination_2.entry.js +398 -0
- package/dist/{components → esm}/eds-progress-bar.entry.js +4 -3
- package/dist/{components → esm}/eds-rating.entry.js +4 -3
- package/dist/{components/eds-section-heading.entry.js → esm/eds-section-core_2.entry.js} +21 -4
- package/dist/{components → esm}/eds-spinner.entry.js +4 -3
- package/dist/{components → esm}/eds-switch.entry.js +5 -4
- package/dist/{components → esm}/eds-tabs.entry.js +8 -7
- package/dist/{components → esm}/eds-timeline.entry.js +6 -5
- package/dist/{components → esm}/eds-toast-manager.entry.js +5 -4
- package/dist/{components → esm}/eds-toast.entry.js +4 -3
- package/dist/{components → esm}/eds-tooltip.entry.js +5 -4
- package/dist/{components → esm}/eds-trl.entry.js +2 -2
- package/dist/esm/eu-9ddde93a.js +30 -0
- package/dist/esm/facebook-9cb5c17f.js +14 -0
- package/dist/{components → esm}/incorrect-use-of-colors.entry.js +2 -2
- package/dist/esm/index-39c58238.js +46 -0
- package/dist/{components/index-9d277061.js → esm/index-8a71b9a7.js} +503 -1332
- package/dist/esm/index.js +1 -0
- package/dist/esm/linkedin-e8650abb.js +28 -0
- package/dist/esm/loader-c9628637.js +30 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/logo-color-7f1fd803.js +115 -0
- package/dist/esm/logo-color-margins-ff8ce71b.js +118 -0
- package/dist/{components → esm}/logo-space.entry.js +5 -4
- package/dist/esm/logo-variations-horizontal_2.entry.js +31 -0
- package/dist/{components → esm}/logo-variations-tabs.entry.js +2 -2
- package/dist/esm/logo-white-no-bg-f382f86f.js +1029 -0
- package/dist/{components → esm}/logo-wrong-usage.entry.js +5 -4
- package/dist/esm/mastodon-3703ec61.js +14 -0
- package/dist/esm/menu-340ea948.js +11 -0
- package/dist/esm/minus-b30a7c71.js +11 -0
- package/dist/esm/mono-53f70232.js +11 -0
- package/dist/esm/more-4449d549.js +13 -0
- package/dist/esm/paper-8e74ea31.js +15 -0
- package/dist/esm/plus-89c07be2.js +12 -0
- package/dist/esm/portal-d6c8ce56.js +18 -0
- package/dist/esm/private-1c25ff8e.js +25 -0
- package/dist/esm/public-d4d8c585.js +16 -0
- package/dist/esm/search-fbcd79c2.js +12 -0
- package/dist/esm/sharedUtils-a550989c.js +19 -0
- package/dist/esm/star-0da9b5e9.js +5 -0
- package/dist/esm/success-443809da.js +18 -0
- package/dist/esm/svg-repository.entry.js +333 -0
- package/dist/esm/thumbs-down-a18fd049.js +5 -0
- package/dist/esm/thumbs-up-c19a71bc.js +6 -0
- package/dist/esm/toastManager-d9eee791.js +31 -0
- package/dist/esm/token-list_3.entry.js +294 -0
- package/dist/{components → esm}/token-ratios.entry.js +2 -2
- package/dist/{components → esm}/token-typography.entry.js +2 -2
- package/dist/esm/tutotial-150ee1fd.js +27 -0
- package/dist/esm/twitter-ac21b505.js +14 -0
- package/dist/esm/unknown-ed01a24c.js +22 -0
- package/dist/esm/up-and-down-d747abee.js +12 -0
- package/dist/esm/user-71ebdc15.js +16 -0
- package/dist/esm/youtube-efbfbdc4.js +14 -0
- package/dist/hydrate/index.d.ts +242 -0
- package/dist/hydrate/index.js +32750 -0
- package/dist/hydrate/index.mjs +32742 -0
- package/dist/hydrate/package.json +12 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/stencil.config.js +75 -0
- package/dist/types/components/eds-modal/eds-modal.d.ts +12 -12
- package/dist/types/components/eds-modal/eds-modal.stories.d.ts +17 -0
- package/dist/types/components.d.ts +15 -15
- package/dist/types/shared-ui/eds-header/eds-header.d.ts +1 -1
- package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.stories.d.ts +0 -5
- package/dist/types/shared-ui/eds-steps-v2/eds-steps-v2.stories.d.ts +48 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +1 -1
- package/dist/components/eds-block-break.entry.js +0 -16
- package/dist/components/eds-icon-arrow-diagonal.entry.js +0 -14
- package/dist/components/eds-icon-arrow-right.entry.js +0 -14
- package/dist/components/eds-icon-bluesky.entry.js +0 -14
- package/dist/components/eds-icon-bookmark.entry.js +0 -14
- package/dist/components/eds-icon-chevron-down.entry.js +0 -14
- package/dist/components/eds-icon-chevron-left.entry.js +0 -14
- package/dist/components/eds-icon-chevron-right.entry.js +0 -14
- package/dist/components/eds-icon-chevron-up.entry.js +0 -14
- package/dist/components/eds-icon-close.entry.js +0 -14
- package/dist/components/eds-icon-copy.entry.js +0 -14
- package/dist/components/eds-icon-eu.entry.js +0 -14
- package/dist/components/eds-icon-external.entry.js +0 -14
- package/dist/components/eds-icon-facebook.entry.js +0 -14
- package/dist/components/eds-icon-gitlab.entry.js +0 -14
- package/dist/components/eds-icon-linkedin.entry.js +0 -14
- package/dist/components/eds-icon-loader.entry.js +0 -14
- package/dist/components/eds-icon-mastodon.entry.js +0 -14
- package/dist/components/eds-icon-menu.entry.js +0 -14
- package/dist/components/eds-icon-minus.entry.js +0 -14
- package/dist/components/eds-icon-more.entry.js +0 -14
- package/dist/components/eds-icon-paper.entry.js +0 -14
- package/dist/components/eds-icon-plus.entry.js +0 -14
- package/dist/components/eds-icon-portal.entry.js +0 -14
- package/dist/components/eds-icon-private.entry.js +0 -14
- package/dist/components/eds-icon-public.entry.js +0 -14
- package/dist/components/eds-icon-search.entry.js +0 -14
- package/dist/components/eds-icon-star.entry.js +0 -14
- package/dist/components/eds-icon-success.entry.js +0 -14
- package/dist/components/eds-icon-thumbs-down.entry.js +0 -14
- package/dist/components/eds-icon-thumbs-up.entry.js +0 -14
- package/dist/components/eds-icon-tutorial.entry.js +0 -14
- package/dist/components/eds-icon-twitter.entry.js +0 -14
- package/dist/components/eds-icon-unknown.entry.js +0 -14
- package/dist/components/eds-icon-updown.entry.js +0 -14
- package/dist/components/eds-icon-user.entry.js +0 -14
- package/dist/components/eds-icon-youtube.entry.js +0 -14
- package/dist/components/eds-input-footer.entry.js +0 -17
- package/dist/components/eds-input-label.entry.js +0 -16
- package/dist/components/eds-modal.entry.js +0 -104
- package/dist/components/eds-section-core.entry.js +0 -19
- package/dist/components/gradient-secondary-palette.entry.js +0 -75
- package/dist/components/gradient-support-palette.entry.js +0 -59
- package/dist/components/shadow-css-423dab2c.js +0 -332
- package/dist/components/token-shadows.entry.js +0 -30
- package/dist/components/token-spacing.entry.js +0 -12
- package/dist/types/shared-ui/eds-login/eds-login.stories.d.ts +0 -33
- /package/dist/components/{index-144c9ae8.js → index2.js} +0 -0
- /package/dist/components/{sharedUtils-6a231dd4.js → sharedUtils.js} +0 -0
- /package/dist/components/{toastManager-b716afd8.js → toastManager.js} +0 -0
- /package/dist/{components → esm}/app-globals-0f993ce5.js +0 -0
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
const NAMESPACE = 'components';
|
|
2
|
-
const BUILD = /* components */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev:
|
|
3
|
-
const Env = /* components */ {};
|
|
2
|
+
const BUILD = /* components */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
4
3
|
|
|
5
4
|
/*
|
|
6
5
|
Stencil Client Platform v4.22.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -10,13 +9,7 @@ var __export = (target, all) => {
|
|
|
10
9
|
for (var name in all)
|
|
11
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
11
|
};
|
|
13
|
-
var
|
|
14
|
-
isDev: BUILD.isDev ? true : false,
|
|
15
|
-
isBrowser: true,
|
|
16
|
-
isServer: false,
|
|
17
|
-
isTesting: BUILD.isTesting ? true : false
|
|
18
|
-
};
|
|
19
|
-
var hostRefs = BUILD.hotModuleReplacement ? window.__STENCIL_HOSTREFS__ || (window.__STENCIL_HOSTREFS__ = /* @__PURE__ */ new WeakMap()) : /* @__PURE__ */ new WeakMap();
|
|
12
|
+
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
20
13
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
21
14
|
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
22
15
|
var registerHost = (hostElement, cmpMeta) => {
|
|
@@ -26,13 +19,10 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
26
19
|
$cmpMeta$: cmpMeta,
|
|
27
20
|
$instanceValues$: /* @__PURE__ */ new Map()
|
|
28
21
|
};
|
|
29
|
-
|
|
30
|
-
hostRef.$renderCount$ = 0;
|
|
31
|
-
}
|
|
32
|
-
if (BUILD.method && BUILD.lazyLoad) {
|
|
22
|
+
{
|
|
33
23
|
hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
|
|
34
24
|
}
|
|
35
|
-
|
|
25
|
+
{
|
|
36
26
|
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
|
37
27
|
hostElement["s-p"] = [];
|
|
38
28
|
hostElement["s-rc"] = [];
|
|
@@ -40,44 +30,354 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
40
30
|
return hostRefs.set(hostElement, hostRef);
|
|
41
31
|
};
|
|
42
32
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
43
|
-
var
|
|
44
|
-
var consoleError = (e, el) => (customError || console.error)(e, el);
|
|
45
|
-
var STENCIL_DEV_MODE = BUILD.isTesting ? ["STENCIL:"] : [
|
|
46
|
-
"%cstencil",
|
|
47
|
-
"color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"
|
|
48
|
-
];
|
|
49
|
-
var consoleDevError = (...m) => console.error(...STENCIL_DEV_MODE, ...m);
|
|
50
|
-
var consoleDevWarn = (...m) => console.warn(...STENCIL_DEV_MODE, ...m);
|
|
51
|
-
var consoleDevInfo = (...m) => console.info(...STENCIL_DEV_MODE, ...m);
|
|
52
|
-
var setErrorHandler = (handler) => customError = handler;
|
|
33
|
+
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
53
34
|
|
|
54
35
|
// src/client/client-load-module.ts
|
|
55
36
|
var cmpModules = /* @__PURE__ */ new Map();
|
|
56
|
-
var MODULE_IMPORT_PREFIX = "./";
|
|
57
37
|
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
58
38
|
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
|
59
39
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
60
|
-
if (
|
|
61
|
-
consoleDevError(
|
|
62
|
-
`Trying to lazily load component <${cmpMeta.$tagName$}> with style mode "${hostRef.$modeName$}", but it does not exist.`
|
|
63
|
-
);
|
|
64
|
-
return void 0;
|
|
65
|
-
} else if (!bundleId) {
|
|
40
|
+
if (!bundleId) {
|
|
66
41
|
return void 0;
|
|
67
42
|
}
|
|
68
|
-
const module =
|
|
43
|
+
const module = cmpModules.get(bundleId) ;
|
|
69
44
|
if (module) {
|
|
70
45
|
return module[exportName];
|
|
71
46
|
}
|
|
72
|
-
|
|
47
|
+
|
|
48
|
+
if (!hmrVersionId || !BUILD.hotModuleReplacement) {
|
|
49
|
+
const processMod = importedModule => {
|
|
50
|
+
cmpModules.set(bundleId, importedModule);
|
|
51
|
+
return importedModule[exportName];
|
|
52
|
+
}
|
|
53
|
+
switch(bundleId) {
|
|
54
|
+
|
|
55
|
+
case 'eds-avatar_27':
|
|
56
|
+
return import(
|
|
57
|
+
/* webpackMode: "lazy" */
|
|
58
|
+
'./eds-avatar_27.entry.js').then(processMod, consoleError);
|
|
59
|
+
case 'components-section':
|
|
60
|
+
return import(
|
|
61
|
+
/* webpackMode: "lazy" */
|
|
62
|
+
'./components-section.entry.js').then(processMod, consoleError);
|
|
63
|
+
case 'correct-use-of-colors':
|
|
64
|
+
return import(
|
|
65
|
+
/* webpackMode: "lazy" */
|
|
66
|
+
'./correct-use-of-colors.entry.js').then(processMod, consoleError);
|
|
67
|
+
case 'docs-palettes':
|
|
68
|
+
return import(
|
|
69
|
+
/* webpackMode: "lazy" */
|
|
70
|
+
'./docs-palettes.entry.js').then(processMod, consoleError);
|
|
71
|
+
case 'docs-tokens':
|
|
72
|
+
return import(
|
|
73
|
+
/* webpackMode: "lazy" */
|
|
74
|
+
'./docs-tokens.entry.js').then(processMod, consoleError);
|
|
75
|
+
case 'eds-app-root':
|
|
76
|
+
return import(
|
|
77
|
+
/* webpackMode: "lazy" */
|
|
78
|
+
'./eds-app-root.entry.js').then(processMod, consoleError);
|
|
79
|
+
case 'eds-card-project':
|
|
80
|
+
return import(
|
|
81
|
+
/* webpackMode: "lazy" */
|
|
82
|
+
'./eds-card-project.entry.js').then(processMod, consoleError);
|
|
83
|
+
case 'eds-card-section':
|
|
84
|
+
return import(
|
|
85
|
+
/* webpackMode: "lazy" */
|
|
86
|
+
'./eds-card-section.entry.js').then(processMod, consoleError);
|
|
87
|
+
case 'eds-card-tags':
|
|
88
|
+
return import(
|
|
89
|
+
/* webpackMode: "lazy" */
|
|
90
|
+
'./eds-card-tags.entry.js').then(processMod, consoleError);
|
|
91
|
+
case 'eds-card-tool':
|
|
92
|
+
return import(
|
|
93
|
+
/* webpackMode: "lazy" */
|
|
94
|
+
'./eds-card-tool.entry.js').then(processMod, consoleError);
|
|
95
|
+
case 'eds-card-wrapper':
|
|
96
|
+
return import(
|
|
97
|
+
/* webpackMode: "lazy" */
|
|
98
|
+
'./eds-card-wrapper.entry.js').then(processMod, consoleError);
|
|
99
|
+
case 'eds-cookies-preference':
|
|
100
|
+
return import(
|
|
101
|
+
/* webpackMode: "lazy" */
|
|
102
|
+
'./eds-cookies-preference.entry.js').then(processMod, consoleError);
|
|
103
|
+
case 'eds-feedback':
|
|
104
|
+
return import(
|
|
105
|
+
/* webpackMode: "lazy" */
|
|
106
|
+
'./eds-feedback.entry.js').then(processMod, consoleError);
|
|
107
|
+
case 'eds-frame':
|
|
108
|
+
return import(
|
|
109
|
+
/* webpackMode: "lazy" */
|
|
110
|
+
'./eds-frame.entry.js').then(processMod, consoleError);
|
|
111
|
+
case 'eds-icon-arrow-diagonal':
|
|
112
|
+
return import(
|
|
113
|
+
/* webpackMode: "lazy" */
|
|
114
|
+
'./eds-icon-arrow-diagonal.entry.js').then(processMod, consoleError);
|
|
115
|
+
case 'eds-icon-arrow-right':
|
|
116
|
+
return import(
|
|
117
|
+
/* webpackMode: "lazy" */
|
|
118
|
+
'./eds-icon-arrow-right.entry.js').then(processMod, consoleError);
|
|
119
|
+
case 'eds-icon-bluesky':
|
|
120
|
+
return import(
|
|
121
|
+
/* webpackMode: "lazy" */
|
|
122
|
+
'./eds-icon-bluesky.entry.js').then(processMod, consoleError);
|
|
123
|
+
case 'eds-icon-bookmark':
|
|
124
|
+
return import(
|
|
125
|
+
/* webpackMode: "lazy" */
|
|
126
|
+
'./eds-icon-bookmark.entry.js').then(processMod, consoleError);
|
|
127
|
+
case 'eds-icon-chevron-down':
|
|
128
|
+
return import(
|
|
129
|
+
/* webpackMode: "lazy" */
|
|
130
|
+
'./eds-icon-chevron-down.entry.js').then(processMod, consoleError);
|
|
131
|
+
case 'eds-icon-chevron-left':
|
|
132
|
+
return import(
|
|
133
|
+
/* webpackMode: "lazy" */
|
|
134
|
+
'./eds-icon-chevron-left.entry.js').then(processMod, consoleError);
|
|
135
|
+
case 'eds-icon-chevron-right':
|
|
136
|
+
return import(
|
|
137
|
+
/* webpackMode: "lazy" */
|
|
138
|
+
'./eds-icon-chevron-right.entry.js').then(processMod, consoleError);
|
|
139
|
+
case 'eds-icon-chevron-up':
|
|
140
|
+
return import(
|
|
141
|
+
/* webpackMode: "lazy" */
|
|
142
|
+
'./eds-icon-chevron-up.entry.js').then(processMod, consoleError);
|
|
143
|
+
case 'eds-icon-close':
|
|
144
|
+
return import(
|
|
145
|
+
/* webpackMode: "lazy" */
|
|
146
|
+
'./eds-icon-close.entry.js').then(processMod, consoleError);
|
|
147
|
+
case 'eds-icon-copy':
|
|
148
|
+
return import(
|
|
149
|
+
/* webpackMode: "lazy" */
|
|
150
|
+
'./eds-icon-copy.entry.js').then(processMod, consoleError);
|
|
151
|
+
case 'eds-icon-eu':
|
|
152
|
+
return import(
|
|
153
|
+
/* webpackMode: "lazy" */
|
|
154
|
+
'./eds-icon-eu.entry.js').then(processMod, consoleError);
|
|
155
|
+
case 'eds-icon-external':
|
|
156
|
+
return import(
|
|
157
|
+
/* webpackMode: "lazy" */
|
|
158
|
+
'./eds-icon-external.entry.js').then(processMod, consoleError);
|
|
159
|
+
case 'eds-icon-facebook':
|
|
160
|
+
return import(
|
|
161
|
+
/* webpackMode: "lazy" */
|
|
162
|
+
'./eds-icon-facebook.entry.js').then(processMod, consoleError);
|
|
163
|
+
case 'eds-icon-gitlab':
|
|
164
|
+
return import(
|
|
165
|
+
/* webpackMode: "lazy" */
|
|
166
|
+
'./eds-icon-gitlab.entry.js').then(processMod, consoleError);
|
|
167
|
+
case 'eds-icon-linkedin':
|
|
168
|
+
return import(
|
|
169
|
+
/* webpackMode: "lazy" */
|
|
170
|
+
'./eds-icon-linkedin.entry.js').then(processMod, consoleError);
|
|
171
|
+
case 'eds-icon-loader':
|
|
172
|
+
return import(
|
|
173
|
+
/* webpackMode: "lazy" */
|
|
174
|
+
'./eds-icon-loader.entry.js').then(processMod, consoleError);
|
|
175
|
+
case 'eds-icon-mastodon':
|
|
176
|
+
return import(
|
|
177
|
+
/* webpackMode: "lazy" */
|
|
178
|
+
'./eds-icon-mastodon.entry.js').then(processMod, consoleError);
|
|
179
|
+
case 'eds-icon-menu':
|
|
180
|
+
return import(
|
|
181
|
+
/* webpackMode: "lazy" */
|
|
182
|
+
'./eds-icon-menu.entry.js').then(processMod, consoleError);
|
|
183
|
+
case 'eds-icon-minus':
|
|
184
|
+
return import(
|
|
185
|
+
/* webpackMode: "lazy" */
|
|
186
|
+
'./eds-icon-minus.entry.js').then(processMod, consoleError);
|
|
187
|
+
case 'eds-icon-more':
|
|
188
|
+
return import(
|
|
189
|
+
/* webpackMode: "lazy" */
|
|
190
|
+
'./eds-icon-more.entry.js').then(processMod, consoleError);
|
|
191
|
+
case 'eds-icon-paper':
|
|
192
|
+
return import(
|
|
193
|
+
/* webpackMode: "lazy" */
|
|
194
|
+
'./eds-icon-paper.entry.js').then(processMod, consoleError);
|
|
195
|
+
case 'eds-icon-plus':
|
|
196
|
+
return import(
|
|
197
|
+
/* webpackMode: "lazy" */
|
|
198
|
+
'./eds-icon-plus.entry.js').then(processMod, consoleError);
|
|
199
|
+
case 'eds-icon-portal':
|
|
200
|
+
return import(
|
|
201
|
+
/* webpackMode: "lazy" */
|
|
202
|
+
'./eds-icon-portal.entry.js').then(processMod, consoleError);
|
|
203
|
+
case 'eds-icon-private':
|
|
204
|
+
return import(
|
|
205
|
+
/* webpackMode: "lazy" */
|
|
206
|
+
'./eds-icon-private.entry.js').then(processMod, consoleError);
|
|
207
|
+
case 'eds-icon-public':
|
|
208
|
+
return import(
|
|
209
|
+
/* webpackMode: "lazy" */
|
|
210
|
+
'./eds-icon-public.entry.js').then(processMod, consoleError);
|
|
211
|
+
case 'eds-icon-search':
|
|
212
|
+
return import(
|
|
213
|
+
/* webpackMode: "lazy" */
|
|
214
|
+
'./eds-icon-search.entry.js').then(processMod, consoleError);
|
|
215
|
+
case 'eds-icon-star':
|
|
216
|
+
return import(
|
|
217
|
+
/* webpackMode: "lazy" */
|
|
218
|
+
'./eds-icon-star.entry.js').then(processMod, consoleError);
|
|
219
|
+
case 'eds-icon-success':
|
|
220
|
+
return import(
|
|
221
|
+
/* webpackMode: "lazy" */
|
|
222
|
+
'./eds-icon-success.entry.js').then(processMod, consoleError);
|
|
223
|
+
case 'eds-icon-thumbs-down':
|
|
224
|
+
return import(
|
|
225
|
+
/* webpackMode: "lazy" */
|
|
226
|
+
'./eds-icon-thumbs-down.entry.js').then(processMod, consoleError);
|
|
227
|
+
case 'eds-icon-thumbs-up':
|
|
228
|
+
return import(
|
|
229
|
+
/* webpackMode: "lazy" */
|
|
230
|
+
'./eds-icon-thumbs-up.entry.js').then(processMod, consoleError);
|
|
231
|
+
case 'eds-icon-tutorial':
|
|
232
|
+
return import(
|
|
233
|
+
/* webpackMode: "lazy" */
|
|
234
|
+
'./eds-icon-tutorial.entry.js').then(processMod, consoleError);
|
|
235
|
+
case 'eds-icon-twitter':
|
|
236
|
+
return import(
|
|
237
|
+
/* webpackMode: "lazy" */
|
|
238
|
+
'./eds-icon-twitter.entry.js').then(processMod, consoleError);
|
|
239
|
+
case 'eds-icon-unknown':
|
|
240
|
+
return import(
|
|
241
|
+
/* webpackMode: "lazy" */
|
|
242
|
+
'./eds-icon-unknown.entry.js').then(processMod, consoleError);
|
|
243
|
+
case 'eds-icon-updown':
|
|
244
|
+
return import(
|
|
245
|
+
/* webpackMode: "lazy" */
|
|
246
|
+
'./eds-icon-updown.entry.js').then(processMod, consoleError);
|
|
247
|
+
case 'eds-icon-user':
|
|
248
|
+
return import(
|
|
249
|
+
/* webpackMode: "lazy" */
|
|
250
|
+
'./eds-icon-user.entry.js').then(processMod, consoleError);
|
|
251
|
+
case 'eds-icon-youtube':
|
|
252
|
+
return import(
|
|
253
|
+
/* webpackMode: "lazy" */
|
|
254
|
+
'./eds-icon-youtube.entry.js').then(processMod, consoleError);
|
|
255
|
+
case 'eds-switch':
|
|
256
|
+
return import(
|
|
257
|
+
/* webpackMode: "lazy" */
|
|
258
|
+
'./eds-switch.entry.js').then(processMod, consoleError);
|
|
259
|
+
case 'eds-tabs':
|
|
260
|
+
return import(
|
|
261
|
+
/* webpackMode: "lazy" */
|
|
262
|
+
'./eds-tabs.entry.js').then(processMod, consoleError);
|
|
263
|
+
case 'eds-timeline':
|
|
264
|
+
return import(
|
|
265
|
+
/* webpackMode: "lazy" */
|
|
266
|
+
'./eds-timeline.entry.js').then(processMod, consoleError);
|
|
267
|
+
case 'eds-toast-manager':
|
|
268
|
+
return import(
|
|
269
|
+
/* webpackMode: "lazy" */
|
|
270
|
+
'./eds-toast-manager.entry.js').then(processMod, consoleError);
|
|
271
|
+
case 'eds-tooltip':
|
|
272
|
+
return import(
|
|
273
|
+
/* webpackMode: "lazy" */
|
|
274
|
+
'./eds-tooltip.entry.js').then(processMod, consoleError);
|
|
275
|
+
case 'eds-trl':
|
|
276
|
+
return import(
|
|
277
|
+
/* webpackMode: "lazy" */
|
|
278
|
+
'./eds-trl.entry.js').then(processMod, consoleError);
|
|
279
|
+
case 'incorrect-use-of-colors':
|
|
280
|
+
return import(
|
|
281
|
+
/* webpackMode: "lazy" */
|
|
282
|
+
'./incorrect-use-of-colors.entry.js').then(processMod, consoleError);
|
|
283
|
+
case 'logo-space':
|
|
284
|
+
return import(
|
|
285
|
+
/* webpackMode: "lazy" */
|
|
286
|
+
'./logo-space.entry.js').then(processMod, consoleError);
|
|
287
|
+
case 'logo-variations-tabs':
|
|
288
|
+
return import(
|
|
289
|
+
/* webpackMode: "lazy" */
|
|
290
|
+
'./logo-variations-tabs.entry.js').then(processMod, consoleError);
|
|
291
|
+
case 'logo-wrong-usage':
|
|
292
|
+
return import(
|
|
293
|
+
/* webpackMode: "lazy" */
|
|
294
|
+
'./logo-wrong-usage.entry.js').then(processMod, consoleError);
|
|
295
|
+
case 'svg-repository':
|
|
296
|
+
return import(
|
|
297
|
+
/* webpackMode: "lazy" */
|
|
298
|
+
'./svg-repository.entry.js').then(processMod, consoleError);
|
|
299
|
+
case 'token-ratios':
|
|
300
|
+
return import(
|
|
301
|
+
/* webpackMode: "lazy" */
|
|
302
|
+
'./token-ratios.entry.js').then(processMod, consoleError);
|
|
303
|
+
case 'token-typography':
|
|
304
|
+
return import(
|
|
305
|
+
/* webpackMode: "lazy" */
|
|
306
|
+
'./token-typography.entry.js').then(processMod, consoleError);
|
|
307
|
+
case 'color-primary-palette_6':
|
|
308
|
+
return import(
|
|
309
|
+
/* webpackMode: "lazy" */
|
|
310
|
+
'./color-primary-palette_6.entry.js').then(processMod, consoleError);
|
|
311
|
+
case 'eds-login_2':
|
|
312
|
+
return import(
|
|
313
|
+
/* webpackMode: "lazy" */
|
|
314
|
+
'./eds-login_2.entry.js').then(processMod, consoleError);
|
|
315
|
+
case 'eds-matomo-notice':
|
|
316
|
+
return import(
|
|
317
|
+
/* webpackMode: "lazy" */
|
|
318
|
+
'./eds-matomo-notice.entry.js').then(processMod, consoleError);
|
|
319
|
+
case 'eds-progress-bar':
|
|
320
|
+
return import(
|
|
321
|
+
/* webpackMode: "lazy" */
|
|
322
|
+
'./eds-progress-bar.entry.js').then(processMod, consoleError);
|
|
323
|
+
case 'eds-rating':
|
|
324
|
+
return import(
|
|
325
|
+
/* webpackMode: "lazy" */
|
|
326
|
+
'./eds-rating.entry.js').then(processMod, consoleError);
|
|
327
|
+
case 'eds-toast':
|
|
328
|
+
return import(
|
|
329
|
+
/* webpackMode: "lazy" */
|
|
330
|
+
'./eds-toast.entry.js').then(processMod, consoleError);
|
|
331
|
+
case 'logo-variations-horizontal_2':
|
|
332
|
+
return import(
|
|
333
|
+
/* webpackMode: "lazy" */
|
|
334
|
+
'./logo-variations-horizontal_2.entry.js').then(processMod, consoleError);
|
|
335
|
+
case 'token-list_3':
|
|
336
|
+
return import(
|
|
337
|
+
/* webpackMode: "lazy" */
|
|
338
|
+
'./token-list_3.entry.js').then(processMod, consoleError);
|
|
339
|
+
case 'eds-accordion':
|
|
340
|
+
return import(
|
|
341
|
+
/* webpackMode: "lazy" */
|
|
342
|
+
'./eds-accordion.entry.js').then(processMod, consoleError);
|
|
343
|
+
case 'eds-alert':
|
|
344
|
+
return import(
|
|
345
|
+
/* webpackMode: "lazy" */
|
|
346
|
+
'./eds-alert.entry.js').then(processMod, consoleError);
|
|
347
|
+
case 'eds-card-generic':
|
|
348
|
+
return import(
|
|
349
|
+
/* webpackMode: "lazy" */
|
|
350
|
+
'./eds-card-generic.entry.js').then(processMod, consoleError);
|
|
351
|
+
case 'eds-section-core_2':
|
|
352
|
+
return import(
|
|
353
|
+
/* webpackMode: "lazy" */
|
|
354
|
+
'./eds-section-core_2.entry.js').then(processMod, consoleError);
|
|
355
|
+
case 'eds-spinner':
|
|
356
|
+
return import(
|
|
357
|
+
/* webpackMode: "lazy" */
|
|
358
|
+
'./eds-spinner.entry.js').then(processMod, consoleError);
|
|
359
|
+
case 'eds-pagination_2':
|
|
360
|
+
return import(
|
|
361
|
+
/* webpackMode: "lazy" */
|
|
362
|
+
'./eds-pagination_2.entry.js').then(processMod, consoleError);
|
|
363
|
+
case 'eds-card-desc_2':
|
|
364
|
+
return import(
|
|
365
|
+
/* webpackMode: "lazy" */
|
|
366
|
+
'./eds-card-desc_2.entry.js').then(processMod, consoleError);
|
|
367
|
+
case 'eds-code-block':
|
|
368
|
+
return import(
|
|
369
|
+
/* webpackMode: "lazy" */
|
|
370
|
+
'./eds-code-block.entry.js').then(processMod, consoleError);
|
|
371
|
+
}
|
|
372
|
+
}
|
|
73
373
|
return import(
|
|
74
374
|
/* @vite-ignore */
|
|
75
375
|
/* webpackInclude: /\.entry\.js$/ */
|
|
76
376
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
77
377
|
/* webpackMode: "lazy" */
|
|
78
|
-
`./${bundleId}.entry.js${
|
|
378
|
+
`./${bundleId}.entry.js${""}`
|
|
79
379
|
).then((importedModule) => {
|
|
80
|
-
|
|
380
|
+
{
|
|
81
381
|
cmpModules.set(bundleId, importedModule);
|
|
82
382
|
}
|
|
83
383
|
return importedModule[exportName];
|
|
@@ -86,7 +386,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
86
386
|
|
|
87
387
|
// src/client/client-style.ts
|
|
88
388
|
var styles = /* @__PURE__ */ new Map();
|
|
89
|
-
var modeResolutionChain = [];
|
|
90
389
|
|
|
91
390
|
// src/runtime/runtime-constants.ts
|
|
92
391
|
var CONTENT_REF_ID = "r";
|
|
@@ -99,16 +398,8 @@ var HYDRATE_CHILD_ID = "c-id";
|
|
|
99
398
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
100
399
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
101
400
|
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
102
|
-
var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
|
|
103
|
-
"formAssociatedCallback",
|
|
104
|
-
"formResetCallback",
|
|
105
|
-
"formDisabledCallback",
|
|
106
|
-
"formStateRestoreCallback"
|
|
107
|
-
];
|
|
108
401
|
var win = typeof window !== "undefined" ? window : {};
|
|
109
402
|
var doc = win.document || { head: {} };
|
|
110
|
-
var H = win.HTMLElement || class {
|
|
111
|
-
};
|
|
112
403
|
var plt = {
|
|
113
404
|
$flags$: 0,
|
|
114
405
|
$resourcesUrl$: "",
|
|
@@ -118,9 +409,6 @@ var plt = {
|
|
|
118
409
|
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
119
410
|
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
120
411
|
};
|
|
121
|
-
var setPlatformHelpers = (helpers) => {
|
|
122
|
-
Object.assign(plt, helpers);
|
|
123
|
-
};
|
|
124
412
|
var supportsShadow = BUILD.shadowDom;
|
|
125
413
|
var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
126
414
|
let supportsListenerOptions2 = false;
|
|
@@ -139,21 +427,17 @@ var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
|
139
427
|
return supportsListenerOptions2;
|
|
140
428
|
})();
|
|
141
429
|
var promiseResolve = (v) => Promise.resolve(v);
|
|
142
|
-
var supportsConstructableStylesheets =
|
|
430
|
+
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
143
431
|
try {
|
|
144
432
|
new CSSStyleSheet();
|
|
145
433
|
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
146
434
|
} catch (e) {
|
|
147
435
|
}
|
|
148
436
|
return false;
|
|
149
|
-
})()
|
|
150
|
-
|
|
151
|
-
// src/client/client-task-queue.ts
|
|
152
|
-
var queueCongestion = 0;
|
|
437
|
+
})() ;
|
|
153
438
|
var queuePending = false;
|
|
154
439
|
var queueDomReads = [];
|
|
155
440
|
var queueDomWrites = [];
|
|
156
|
-
var queueDomWritesLow = [];
|
|
157
441
|
var queueTask = (queue, write) => (cb) => {
|
|
158
442
|
queue.push(cb);
|
|
159
443
|
if (!queuePending) {
|
|
@@ -175,41 +459,9 @@ var consume = (queue) => {
|
|
|
175
459
|
}
|
|
176
460
|
queue.length = 0;
|
|
177
461
|
};
|
|
178
|
-
var consumeTimeout = (queue, timeout) => {
|
|
179
|
-
let i2 = 0;
|
|
180
|
-
let ts = 0;
|
|
181
|
-
while (i2 < queue.length && (ts = performance.now()) < timeout) {
|
|
182
|
-
try {
|
|
183
|
-
queue[i2++](ts);
|
|
184
|
-
} catch (e) {
|
|
185
|
-
consoleError(e);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
if (i2 === queue.length) {
|
|
189
|
-
queue.length = 0;
|
|
190
|
-
} else if (i2 !== 0) {
|
|
191
|
-
queue.splice(0, i2);
|
|
192
|
-
}
|
|
193
|
-
};
|
|
194
462
|
var flush = () => {
|
|
195
|
-
if (BUILD.asyncQueue) {
|
|
196
|
-
queueCongestion++;
|
|
197
|
-
}
|
|
198
463
|
consume(queueDomReads);
|
|
199
|
-
|
|
200
|
-
const timeout = (plt.$flags$ & 6 /* queueMask */) === 2 /* appLoaded */ ? performance.now() + 14 * Math.ceil(queueCongestion * (1 / 10)) : Infinity;
|
|
201
|
-
consumeTimeout(queueDomWrites, timeout);
|
|
202
|
-
consumeTimeout(queueDomWritesLow, timeout);
|
|
203
|
-
if (queueDomWrites.length > 0) {
|
|
204
|
-
queueDomWritesLow.push(...queueDomWrites);
|
|
205
|
-
queueDomWrites.length = 0;
|
|
206
|
-
}
|
|
207
|
-
if (queuePending = queueDomReads.length + queueDomWrites.length + queueDomWritesLow.length > 0) {
|
|
208
|
-
plt.raf(flush);
|
|
209
|
-
} else {
|
|
210
|
-
queueCongestion = 0;
|
|
211
|
-
}
|
|
212
|
-
} else {
|
|
464
|
+
{
|
|
213
465
|
consume(queueDomWrites);
|
|
214
466
|
if (queuePending = queueDomReads.length > 0) {
|
|
215
467
|
plt.raf(flush);
|
|
@@ -217,20 +469,10 @@ var flush = () => {
|
|
|
217
469
|
}
|
|
218
470
|
};
|
|
219
471
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
220
|
-
var readTask = /* @__PURE__ */ queueTask(queueDomReads, false);
|
|
221
472
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
222
473
|
|
|
223
|
-
// src/runtime/asset-path.ts
|
|
224
|
-
var getAssetPath = (path) => {
|
|
225
|
-
const assetUrl = new URL(path, plt.$resourcesUrl$);
|
|
226
|
-
return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
|
|
227
|
-
};
|
|
228
|
-
var setAssetPath = (path) => plt.$resourcesUrl$ = path;
|
|
229
|
-
|
|
230
474
|
// src/utils/constants.ts
|
|
231
475
|
var EMPTY_OBJ = {};
|
|
232
|
-
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
233
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
234
476
|
|
|
235
477
|
// src/utils/helpers.ts
|
|
236
478
|
var isDef = (v) => v != null;
|
|
@@ -293,89 +535,20 @@ var unwrapErr = (result) => {
|
|
|
293
535
|
throw result.value;
|
|
294
536
|
}
|
|
295
537
|
};
|
|
296
|
-
var i = 0;
|
|
297
538
|
var createTime = (fnName, tagName = "") => {
|
|
298
|
-
|
|
299
|
-
const key = `st:${fnName}:${tagName}:${i++}`;
|
|
300
|
-
performance.mark(key);
|
|
301
|
-
return () => performance.measure(`[Stencil] ${fnName}() <${tagName}>`, key);
|
|
302
|
-
} else {
|
|
539
|
+
{
|
|
303
540
|
return () => {
|
|
304
541
|
return;
|
|
305
542
|
};
|
|
306
543
|
}
|
|
307
544
|
};
|
|
308
545
|
var uniqueTime = (key, measureText) => {
|
|
309
|
-
|
|
310
|
-
if (performance.getEntriesByName(key, "mark").length === 0) {
|
|
311
|
-
performance.mark(key);
|
|
312
|
-
}
|
|
313
|
-
return () => {
|
|
314
|
-
if (performance.getEntriesByName(measureText, "measure").length === 0) {
|
|
315
|
-
performance.measure(measureText, key);
|
|
316
|
-
}
|
|
317
|
-
};
|
|
318
|
-
} else {
|
|
546
|
+
{
|
|
319
547
|
return () => {
|
|
320
548
|
return;
|
|
321
549
|
};
|
|
322
550
|
}
|
|
323
551
|
};
|
|
324
|
-
var inspect = (ref) => {
|
|
325
|
-
const hostRef = getHostRef(ref);
|
|
326
|
-
if (!hostRef) {
|
|
327
|
-
return void 0;
|
|
328
|
-
}
|
|
329
|
-
const flags = hostRef.$flags$;
|
|
330
|
-
const hostElement = hostRef.$hostElement$;
|
|
331
|
-
return {
|
|
332
|
-
renderCount: hostRef.$renderCount$,
|
|
333
|
-
flags: {
|
|
334
|
-
hasRendered: !!(flags & 2 /* hasRendered */),
|
|
335
|
-
hasConnected: !!(flags & 1 /* hasConnected */),
|
|
336
|
-
isWaitingForChildren: !!(flags & 4 /* isWaitingForChildren */),
|
|
337
|
-
isConstructingInstance: !!(flags & 8 /* isConstructingInstance */),
|
|
338
|
-
isQueuedForUpdate: !!(flags & 16 /* isQueuedForUpdate */),
|
|
339
|
-
hasInitializedComponent: !!(flags & 32 /* hasInitializedComponent */),
|
|
340
|
-
hasLoadedComponent: !!(flags & 64 /* hasLoadedComponent */),
|
|
341
|
-
isWatchReady: !!(flags & 128 /* isWatchReady */),
|
|
342
|
-
isListenReady: !!(flags & 256 /* isListenReady */),
|
|
343
|
-
needsRerender: !!(flags & 512 /* needsRerender */)
|
|
344
|
-
},
|
|
345
|
-
instanceValues: hostRef.$instanceValues$,
|
|
346
|
-
ancestorComponent: hostRef.$ancestorComponent$,
|
|
347
|
-
hostElement,
|
|
348
|
-
lazyInstance: hostRef.$lazyInstance$,
|
|
349
|
-
vnode: hostRef.$vnode$,
|
|
350
|
-
modeName: hostRef.$modeName$,
|
|
351
|
-
onReadyPromise: hostRef.$onReadyPromise$,
|
|
352
|
-
onReadyResolve: hostRef.$onReadyResolve$,
|
|
353
|
-
onInstancePromise: hostRef.$onInstancePromise$,
|
|
354
|
-
onInstanceResolve: hostRef.$onInstanceResolve$,
|
|
355
|
-
onRenderResolve: hostRef.$onRenderResolve$,
|
|
356
|
-
queuedListeners: hostRef.$queuedListeners$,
|
|
357
|
-
rmListeners: hostRef.$rmListeners$,
|
|
358
|
-
["s-id"]: hostElement["s-id"],
|
|
359
|
-
["s-cr"]: hostElement["s-cr"],
|
|
360
|
-
["s-lr"]: hostElement["s-lr"],
|
|
361
|
-
["s-p"]: hostElement["s-p"],
|
|
362
|
-
["s-rc"]: hostElement["s-rc"],
|
|
363
|
-
["s-sc"]: hostElement["s-sc"]
|
|
364
|
-
};
|
|
365
|
-
};
|
|
366
|
-
var installDevTools = () => {
|
|
367
|
-
if (BUILD.devTools) {
|
|
368
|
-
const stencil = win.stencil = win.stencil || {};
|
|
369
|
-
const originalInspect = stencil.inspect;
|
|
370
|
-
stencil.inspect = (ref) => {
|
|
371
|
-
let result = inspect(ref);
|
|
372
|
-
if (!result && typeof originalInspect === "function") {
|
|
373
|
-
result = originalInspect(ref);
|
|
374
|
-
}
|
|
375
|
-
return result;
|
|
376
|
-
};
|
|
377
|
-
}
|
|
378
|
-
};
|
|
379
552
|
var h = (nodeName, vnodeData, ...children) => {
|
|
380
553
|
let child = null;
|
|
381
554
|
let key = null;
|
|
@@ -391,10 +564,6 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
391
564
|
} else if (child != null && typeof child !== "boolean") {
|
|
392
565
|
if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
|
|
393
566
|
child = String(child);
|
|
394
|
-
} else if (BUILD.isDev && typeof nodeName !== "function" && child.$flags$ === void 0) {
|
|
395
|
-
consoleDevError(`vNode passed as children has unexpected type.
|
|
396
|
-
Make sure it's using the correct h() function.
|
|
397
|
-
Empty objects can also be the cause, look for JSX comments that became objects.`);
|
|
398
567
|
}
|
|
399
568
|
if (simple && lastSimple) {
|
|
400
569
|
vNodeChildren[vNodeChildren.length - 1].$text$ += child;
|
|
@@ -407,28 +576,20 @@ Empty objects can also be the cause, look for JSX comments that became objects.`
|
|
|
407
576
|
};
|
|
408
577
|
walk(children);
|
|
409
578
|
if (vnodeData) {
|
|
410
|
-
if (
|
|
411
|
-
validateInputProperties(vnodeData);
|
|
412
|
-
}
|
|
413
|
-
if (BUILD.vdomKey && vnodeData.key) {
|
|
579
|
+
if (vnodeData.key) {
|
|
414
580
|
key = vnodeData.key;
|
|
415
581
|
}
|
|
416
|
-
if (
|
|
582
|
+
if (vnodeData.name) {
|
|
417
583
|
slotName = vnodeData.name;
|
|
418
584
|
}
|
|
419
|
-
|
|
585
|
+
{
|
|
420
586
|
const classData = vnodeData.className || vnodeData.class;
|
|
421
587
|
if (classData) {
|
|
422
588
|
vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
|
|
423
589
|
}
|
|
424
590
|
}
|
|
425
591
|
}
|
|
426
|
-
if (
|
|
427
|
-
consoleDevError(`The <Host> must be the single root component. Make sure:
|
|
428
|
-
- You are NOT using hostData() and <Host> in the same component.
|
|
429
|
-
- <Host> is used once, and it's the single root component of the render() function.`);
|
|
430
|
-
}
|
|
431
|
-
if (BUILD.vdomFunctional && typeof nodeName === "function") {
|
|
592
|
+
if (typeof nodeName === "function") {
|
|
432
593
|
return nodeName(
|
|
433
594
|
vnodeData === null ? {} : vnodeData,
|
|
434
595
|
vNodeChildren,
|
|
@@ -440,10 +601,10 @@ Empty objects can also be the cause, look for JSX comments that became objects.`
|
|
|
440
601
|
if (vNodeChildren.length > 0) {
|
|
441
602
|
vnode.$children$ = vNodeChildren;
|
|
442
603
|
}
|
|
443
|
-
|
|
604
|
+
{
|
|
444
605
|
vnode.$key$ = key;
|
|
445
606
|
}
|
|
446
|
-
|
|
607
|
+
{
|
|
447
608
|
vnode.$name$ = slotName;
|
|
448
609
|
}
|
|
449
610
|
return vnode;
|
|
@@ -456,13 +617,13 @@ var newVNode = (tag, text) => {
|
|
|
456
617
|
$elm$: null,
|
|
457
618
|
$children$: null
|
|
458
619
|
};
|
|
459
|
-
|
|
620
|
+
{
|
|
460
621
|
vnode.$attrs$ = null;
|
|
461
622
|
}
|
|
462
|
-
|
|
623
|
+
{
|
|
463
624
|
vnode.$key$ = null;
|
|
464
625
|
}
|
|
465
|
-
|
|
626
|
+
{
|
|
466
627
|
vnode.$name$ = null;
|
|
467
628
|
}
|
|
468
629
|
return vnode;
|
|
@@ -499,20 +660,6 @@ var convertToPrivate = (node) => {
|
|
|
499
660
|
vnode.$name$ = node.vname;
|
|
500
661
|
return vnode;
|
|
501
662
|
};
|
|
502
|
-
var validateInputProperties = (inputElm) => {
|
|
503
|
-
const props = Object.keys(inputElm);
|
|
504
|
-
const value = props.indexOf("value");
|
|
505
|
-
if (value === -1) {
|
|
506
|
-
return;
|
|
507
|
-
}
|
|
508
|
-
const typeIndex = props.indexOf("type");
|
|
509
|
-
const minIndex = props.indexOf("min");
|
|
510
|
-
const maxIndex = props.indexOf("max");
|
|
511
|
-
const stepIndex = props.indexOf("step");
|
|
512
|
-
if (value < typeIndex || value < minIndex || value < maxIndex || value < stepIndex) {
|
|
513
|
-
consoleDevWarn(`The "value" prop of <input> should be set after "min", "max", "type" and "step"`);
|
|
514
|
-
}
|
|
515
|
-
};
|
|
516
663
|
|
|
517
664
|
// src/runtime/client-hydrate.ts
|
|
518
665
|
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
@@ -520,7 +667,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
520
667
|
const shadowRoot = hostElm.shadowRoot;
|
|
521
668
|
const childRenderNodes = [];
|
|
522
669
|
const slotNodes = [];
|
|
523
|
-
const shadowRootNodes =
|
|
670
|
+
const shadowRootNodes = shadowRoot ? [] : null;
|
|
524
671
|
const vnode = hostRef.$vnode$ = newVNode(tagName, null);
|
|
525
672
|
if (!plt.$orgLocNodes$) {
|
|
526
673
|
initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
|
|
@@ -544,7 +691,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
544
691
|
}
|
|
545
692
|
plt.$orgLocNodes$.delete(orgLocationId);
|
|
546
693
|
});
|
|
547
|
-
if (
|
|
694
|
+
if (shadowRoot) {
|
|
548
695
|
shadowRootNodes.map((shadowRootNode) => {
|
|
549
696
|
if (shadowRootNode) {
|
|
550
697
|
shadowRoot.appendChild(shadowRootNode);
|
|
@@ -654,7 +801,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
654
801
|
node["s-sn"] = "";
|
|
655
802
|
}
|
|
656
803
|
node["s-sr"] = true;
|
|
657
|
-
if (
|
|
804
|
+
if (shadowRootNodes) {
|
|
658
805
|
childVNode.$elm$ = doc.createElement(childVNode.$tag$);
|
|
659
806
|
if (childVNode.$name$) {
|
|
660
807
|
childVNode.$elm$.setAttribute("name", childVNode.$name$);
|
|
@@ -671,9 +818,9 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
671
818
|
}
|
|
672
819
|
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
673
820
|
} else if (childNodeType === CONTENT_REF_ID) {
|
|
674
|
-
if (
|
|
821
|
+
if (shadowRootNodes) {
|
|
675
822
|
node.remove();
|
|
676
|
-
} else
|
|
823
|
+
} else {
|
|
677
824
|
hostElm["s-cr"] = node;
|
|
678
825
|
node["s-cn"] = true;
|
|
679
826
|
}
|
|
@@ -707,36 +854,28 @@ var initializeDocumentHydrate = (node, orgLocNodes) => {
|
|
|
707
854
|
}
|
|
708
855
|
}
|
|
709
856
|
};
|
|
710
|
-
|
|
711
|
-
// src/runtime/mode.ts
|
|
712
|
-
var computeMode = (elm) => modeResolutionChain.map((h2) => h2(elm)).find((m) => !!m);
|
|
713
|
-
var setMode = (handler) => modeResolutionChain.push(handler);
|
|
714
|
-
var getMode = (ref) => getHostRef(ref).$modeName$;
|
|
715
857
|
var parsePropertyValue = (propValue, propType) => {
|
|
716
858
|
if (propValue != null && !isComplexType(propValue)) {
|
|
717
|
-
if (
|
|
859
|
+
if (propType & 4 /* Boolean */) {
|
|
718
860
|
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
719
861
|
}
|
|
720
|
-
if (
|
|
862
|
+
if (propType & 2 /* Number */) {
|
|
721
863
|
return parseFloat(propValue);
|
|
722
864
|
}
|
|
723
|
-
if (
|
|
865
|
+
if (propType & 1 /* String */) {
|
|
724
866
|
return String(propValue);
|
|
725
867
|
}
|
|
726
868
|
return propValue;
|
|
727
869
|
}
|
|
728
870
|
return propValue;
|
|
729
871
|
};
|
|
730
|
-
var getElement = (ref) =>
|
|
872
|
+
var getElement = (ref) => getHostRef(ref).$hostElement$ ;
|
|
731
873
|
|
|
732
874
|
// src/runtime/event-emitter.ts
|
|
733
875
|
var createEvent = (ref, name, flags) => {
|
|
734
876
|
const elm = getElement(ref);
|
|
735
877
|
return {
|
|
736
878
|
emit: (detail) => {
|
|
737
|
-
if (BUILD.isDev && !elm.isConnected) {
|
|
738
|
-
consoleDevWarn(`The "${name}" event was emitted, but the dispatcher node is no longer connected to the dom.`);
|
|
739
|
-
}
|
|
740
879
|
return emitEvent(elm, name, {
|
|
741
880
|
bubbles: !!(flags & 4 /* Bubbles */),
|
|
742
881
|
composed: !!(flags & 2 /* Composed */),
|
|
@@ -768,11 +907,8 @@ var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
|
768
907
|
};
|
|
769
908
|
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
770
909
|
var _a;
|
|
771
|
-
const scopeId2 = getScopeId(cmpMeta
|
|
910
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
772
911
|
const style = styles.get(scopeId2);
|
|
773
|
-
if (!BUILD.attachStyles) {
|
|
774
|
-
return scopeId2;
|
|
775
|
-
}
|
|
776
912
|
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
777
913
|
if (style) {
|
|
778
914
|
if (typeof style === "string") {
|
|
@@ -783,7 +919,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
783
919
|
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
784
920
|
}
|
|
785
921
|
if (!appliedStyles.has(scopeId2)) {
|
|
786
|
-
if (
|
|
922
|
+
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
787
923
|
styleElm.innerHTML = style;
|
|
788
924
|
} else {
|
|
789
925
|
styleElm = doc.createElement("style");
|
|
@@ -792,9 +928,6 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
792
928
|
if (nonce != null) {
|
|
793
929
|
styleElm.setAttribute("nonce", nonce);
|
|
794
930
|
}
|
|
795
|
-
if ((BUILD.hydrateServerSide || BUILD.hotModuleReplacement) && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
796
|
-
styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
|
|
797
|
-
}
|
|
798
931
|
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
799
932
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
800
933
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
@@ -817,7 +950,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
817
950
|
appliedStyles.add(scopeId2);
|
|
818
951
|
}
|
|
819
952
|
}
|
|
820
|
-
} else if (
|
|
953
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
821
954
|
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
822
955
|
}
|
|
823
956
|
}
|
|
@@ -829,35 +962,30 @@ var attachStyles = (hostRef) => {
|
|
|
829
962
|
const flags = cmpMeta.$flags$;
|
|
830
963
|
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
831
964
|
const scopeId2 = addStyle(
|
|
832
|
-
|
|
833
|
-
cmpMeta
|
|
834
|
-
|
|
835
|
-
);
|
|
836
|
-
if ((BUILD.shadowDom || BUILD.scoped) && BUILD.cssAnnotations && flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
965
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
966
|
+
cmpMeta);
|
|
967
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
837
968
|
elm["s-sc"] = scopeId2;
|
|
838
969
|
elm.classList.add(scopeId2 + "-h");
|
|
839
|
-
if (BUILD.scoped && flags & 2 /* scopedCssEncapsulation */) {
|
|
840
|
-
elm.classList.add(scopeId2 + "-s");
|
|
841
|
-
}
|
|
842
970
|
}
|
|
843
971
|
endAttachStyles();
|
|
844
972
|
};
|
|
845
|
-
var getScopeId = (cmp, mode) => "sc-" + (
|
|
973
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
846
974
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
847
975
|
if (oldValue !== newValue) {
|
|
848
976
|
let isProp = isMemberInElement(elm, memberName);
|
|
849
977
|
let ln = memberName.toLowerCase();
|
|
850
|
-
if (
|
|
978
|
+
if (memberName === "class") {
|
|
851
979
|
const classList = elm.classList;
|
|
852
980
|
const oldClasses = parseClassList(oldValue);
|
|
853
981
|
const newClasses = parseClassList(newValue);
|
|
854
982
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
855
983
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
856
|
-
} else if (
|
|
857
|
-
|
|
984
|
+
} else if (memberName === "style") {
|
|
985
|
+
{
|
|
858
986
|
for (const prop in oldValue) {
|
|
859
987
|
if (!newValue || newValue[prop] == null) {
|
|
860
|
-
if (
|
|
988
|
+
if (prop.includes("-")) {
|
|
861
989
|
elm.style.removeProperty(prop);
|
|
862
990
|
} else {
|
|
863
991
|
elm.style[prop] = "";
|
|
@@ -867,19 +995,18 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
867
995
|
}
|
|
868
996
|
for (const prop in newValue) {
|
|
869
997
|
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
870
|
-
if (
|
|
998
|
+
if (prop.includes("-")) {
|
|
871
999
|
elm.style.setProperty(prop, newValue[prop]);
|
|
872
1000
|
} else {
|
|
873
1001
|
elm.style[prop] = newValue[prop];
|
|
874
1002
|
}
|
|
875
1003
|
}
|
|
876
1004
|
}
|
|
877
|
-
} else if (
|
|
878
|
-
} else if (BUILD.vdomRef && memberName === "ref") {
|
|
1005
|
+
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
879
1006
|
if (newValue) {
|
|
880
1007
|
newValue(elm);
|
|
881
1008
|
}
|
|
882
|
-
} else if (
|
|
1009
|
+
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
883
1010
|
if (memberName[2] === "-") {
|
|
884
1011
|
memberName = memberName.slice(3);
|
|
885
1012
|
} else if (isMemberInElement(win, ln)) {
|
|
@@ -897,7 +1024,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
897
1024
|
plt.ael(elm, memberName, newValue, capture);
|
|
898
1025
|
}
|
|
899
1026
|
}
|
|
900
|
-
} else
|
|
1027
|
+
} else {
|
|
901
1028
|
const isComplex = isComplexType(newValue);
|
|
902
1029
|
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
903
1030
|
try {
|
|
@@ -919,7 +1046,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
919
1046
|
}
|
|
920
1047
|
}
|
|
921
1048
|
let xlink = false;
|
|
922
|
-
|
|
1049
|
+
{
|
|
923
1050
|
if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
|
|
924
1051
|
memberName = ln;
|
|
925
1052
|
xlink = true;
|
|
@@ -927,7 +1054,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
927
1054
|
}
|
|
928
1055
|
if (newValue == null || newValue === false) {
|
|
929
1056
|
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
930
|
-
if (
|
|
1057
|
+
if (xlink) {
|
|
931
1058
|
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
932
1059
|
} else {
|
|
933
1060
|
elm.removeAttribute(memberName);
|
|
@@ -935,7 +1062,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
935
1062
|
}
|
|
936
1063
|
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
937
1064
|
newValue = newValue === true ? "" : newValue;
|
|
938
|
-
if (
|
|
1065
|
+
if (xlink) {
|
|
939
1066
|
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
940
1067
|
} else {
|
|
941
1068
|
elm.setAttribute(memberName, newValue);
|
|
@@ -954,7 +1081,7 @@ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
|
954
1081
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
955
1082
|
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
956
1083
|
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
957
|
-
|
|
1084
|
+
{
|
|
958
1085
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
959
1086
|
if (!(memberName in newVnodeAttrs)) {
|
|
960
1087
|
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
@@ -990,7 +1117,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
990
1117
|
let elm;
|
|
991
1118
|
let childNode;
|
|
992
1119
|
let oldVNode;
|
|
993
|
-
if (
|
|
1120
|
+
if (!useNativeShadowDom) {
|
|
994
1121
|
checkSlotRelocate = true;
|
|
995
1122
|
if (newVNode2.$tag$ === "slot") {
|
|
996
1123
|
if (scopeId) {
|
|
@@ -1008,29 +1135,15 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
1008
1135
|
);
|
|
1009
1136
|
}
|
|
1010
1137
|
}
|
|
1011
|
-
if (
|
|
1012
|
-
consoleDevError(
|
|
1013
|
-
`The JSX ${newVNode2.$text$ !== null ? `"${newVNode2.$text$}" text` : `"${newVNode2.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`
|
|
1014
|
-
);
|
|
1015
|
-
}
|
|
1016
|
-
if (BUILD.vdomText && newVNode2.$text$ !== null) {
|
|
1138
|
+
if (newVNode2.$text$ !== null) {
|
|
1017
1139
|
elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
|
|
1018
|
-
} else if (
|
|
1019
|
-
elm = newVNode2.$elm$ =
|
|
1140
|
+
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
1141
|
+
elm = newVNode2.$elm$ = doc.createTextNode("");
|
|
1020
1142
|
} else {
|
|
1021
|
-
|
|
1022
|
-
isSvgMode = newVNode2.$tag$ === "svg";
|
|
1023
|
-
}
|
|
1024
|
-
elm = newVNode2.$elm$ = BUILD.svg ? doc.createElementNS(
|
|
1025
|
-
isSvgMode ? SVG_NS : HTML_NS,
|
|
1026
|
-
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
1027
|
-
) : doc.createElement(
|
|
1143
|
+
elm = newVNode2.$elm$ = doc.createElement(
|
|
1028
1144
|
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
1029
1145
|
);
|
|
1030
|
-
|
|
1031
|
-
isSvgMode = false;
|
|
1032
|
-
}
|
|
1033
|
-
if (BUILD.vdomAttribute) {
|
|
1146
|
+
{
|
|
1034
1147
|
updateElement(null, newVNode2, isSvgMode);
|
|
1035
1148
|
}
|
|
1036
1149
|
const rootNode = elm.getRootNode();
|
|
@@ -1038,9 +1151,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
1038
1151
|
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
1039
1152
|
elm.classList.add(elm["s-si"] = scopeId);
|
|
1040
1153
|
}
|
|
1041
|
-
if (BUILD.scoped) {
|
|
1042
|
-
updateElementScopeIds(elm, parentElm);
|
|
1043
|
-
}
|
|
1044
1154
|
if (newVNode2.$children$) {
|
|
1045
1155
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
1046
1156
|
childNode = createElm(oldParentVNode, newVNode2, i2, elm);
|
|
@@ -1049,16 +1159,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
1049
1159
|
}
|
|
1050
1160
|
}
|
|
1051
1161
|
}
|
|
1052
|
-
if (BUILD.svg) {
|
|
1053
|
-
if (newVNode2.$tag$ === "svg") {
|
|
1054
|
-
isSvgMode = false;
|
|
1055
|
-
} else if (elm.tagName === "foreignObject") {
|
|
1056
|
-
isSvgMode = true;
|
|
1057
|
-
}
|
|
1058
|
-
}
|
|
1059
1162
|
}
|
|
1060
1163
|
elm["s-hn"] = hostTagName;
|
|
1061
|
-
|
|
1164
|
+
{
|
|
1062
1165
|
if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
|
|
1063
1166
|
elm["s-sr"] = true;
|
|
1064
1167
|
elm["s-cr"] = contentRef;
|
|
@@ -1066,9 +1169,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
1066
1169
|
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
|
1067
1170
|
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
1068
1171
|
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
1069
|
-
|
|
1070
|
-
relocateToHostRoot(oldParentVNode.$elm$);
|
|
1071
|
-
} else {
|
|
1172
|
+
{
|
|
1072
1173
|
putBackInOriginalLocation(oldParentVNode.$elm$, false);
|
|
1073
1174
|
}
|
|
1074
1175
|
}
|
|
@@ -1076,22 +1177,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
1076
1177
|
}
|
|
1077
1178
|
return elm;
|
|
1078
1179
|
};
|
|
1079
|
-
var relocateToHostRoot = (parentElm) => {
|
|
1080
|
-
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
1081
|
-
const host = parentElm.closest(hostTagName.toLowerCase());
|
|
1082
|
-
if (host != null) {
|
|
1083
|
-
const contentRefNode = Array.from(host.childNodes).find((ref) => ref["s-cr"]);
|
|
1084
|
-
const childNodeArray = Array.from(parentElm.childNodes);
|
|
1085
|
-
for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
|
|
1086
|
-
if (childNode["s-sh"] != null) {
|
|
1087
|
-
insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
|
|
1088
|
-
childNode["s-sh"] = void 0;
|
|
1089
|
-
checkSlotRelocate = true;
|
|
1090
|
-
}
|
|
1091
|
-
}
|
|
1092
|
-
}
|
|
1093
|
-
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
1094
|
-
};
|
|
1095
1180
|
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
1096
1181
|
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
1097
1182
|
const oldSlotChildNodes = Array.from(parentElm.childNodes);
|
|
@@ -1119,9 +1204,9 @@ var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
1119
1204
|
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
1120
1205
|
};
|
|
1121
1206
|
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
1122
|
-
let containerElm =
|
|
1207
|
+
let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
|
|
1123
1208
|
let childNode;
|
|
1124
|
-
if (
|
|
1209
|
+
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
1125
1210
|
containerElm = containerElm.shadowRoot;
|
|
1126
1211
|
}
|
|
1127
1212
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
@@ -1129,7 +1214,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
|
1129
1214
|
childNode = createElm(null, parentVNode, startIdx, parentElm);
|
|
1130
1215
|
if (childNode) {
|
|
1131
1216
|
vnodes[startIdx].$elm$ = childNode;
|
|
1132
|
-
insertBefore(containerElm, childNode,
|
|
1217
|
+
insertBefore(containerElm, childNode, referenceNode(before) );
|
|
1133
1218
|
}
|
|
1134
1219
|
}
|
|
1135
1220
|
}
|
|
@@ -1141,7 +1226,7 @@ var removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
|
1141
1226
|
const elm = vnode.$elm$;
|
|
1142
1227
|
nullifyVNodeRefs(vnode);
|
|
1143
1228
|
if (elm) {
|
|
1144
|
-
|
|
1229
|
+
{
|
|
1145
1230
|
checkSlotFallbackVisibility = true;
|
|
1146
1231
|
if (elm["s-ol"]) {
|
|
1147
1232
|
elm["s-ol"].remove();
|
|
@@ -1185,7 +1270,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1185
1270
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
1186
1271
|
newEndVnode = newCh[--newEndIdx];
|
|
1187
1272
|
} else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
|
1188
|
-
if (
|
|
1273
|
+
if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
1189
1274
|
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
|
1190
1275
|
}
|
|
1191
1276
|
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
@@ -1193,7 +1278,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1193
1278
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
1194
1279
|
newEndVnode = newCh[--newEndIdx];
|
|
1195
1280
|
} else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
1196
|
-
if (
|
|
1281
|
+
if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
1197
1282
|
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
|
1198
1283
|
}
|
|
1199
1284
|
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
@@ -1202,7 +1287,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1202
1287
|
newStartVnode = newCh[++newStartIdx];
|
|
1203
1288
|
} else {
|
|
1204
1289
|
idxInOld = -1;
|
|
1205
|
-
|
|
1290
|
+
{
|
|
1206
1291
|
for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
|
|
1207
1292
|
if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
|
|
1208
1293
|
idxInOld = i2;
|
|
@@ -1210,7 +1295,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1210
1295
|
}
|
|
1211
1296
|
}
|
|
1212
1297
|
}
|
|
1213
|
-
if (
|
|
1298
|
+
if (idxInOld >= 0) {
|
|
1214
1299
|
elmToMove = oldCh[idxInOld];
|
|
1215
1300
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
1216
1301
|
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
|
|
@@ -1225,10 +1310,8 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1225
1310
|
newStartVnode = newCh[++newStartIdx];
|
|
1226
1311
|
}
|
|
1227
1312
|
if (node) {
|
|
1228
|
-
|
|
1313
|
+
{
|
|
1229
1314
|
insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
|
|
1230
|
-
} else {
|
|
1231
|
-
insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
|
|
1232
1315
|
}
|
|
1233
1316
|
}
|
|
1234
1317
|
}
|
|
@@ -1242,13 +1325,13 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1242
1325
|
newStartIdx,
|
|
1243
1326
|
newEndIdx
|
|
1244
1327
|
);
|
|
1245
|
-
} else if (
|
|
1328
|
+
} else if (newStartIdx > newEndIdx) {
|
|
1246
1329
|
removeVnodes(oldCh, oldStartIdx, oldEndIdx);
|
|
1247
1330
|
}
|
|
1248
1331
|
};
|
|
1249
1332
|
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
1250
1333
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
1251
|
-
if (
|
|
1334
|
+
if (leftVNode.$tag$ === "slot") {
|
|
1252
1335
|
if (
|
|
1253
1336
|
// The component gets hydrated and no VDOM has been initialized.
|
|
1254
1337
|
// Here the comparison can't happen as $name$ property is not set for `leftNode`.
|
|
@@ -1260,7 +1343,7 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
1260
1343
|
}
|
|
1261
1344
|
return leftVNode.$name$ === rightVNode.$name$;
|
|
1262
1345
|
}
|
|
1263
|
-
if (
|
|
1346
|
+
if (!isInitialRender) {
|
|
1264
1347
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
1265
1348
|
}
|
|
1266
1349
|
return true;
|
|
@@ -1278,24 +1361,16 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1278
1361
|
const tag = newVNode2.$tag$;
|
|
1279
1362
|
const text = newVNode2.$text$;
|
|
1280
1363
|
let defaultHolder;
|
|
1281
|
-
if (
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
}
|
|
1285
|
-
if (BUILD.vdomAttribute || BUILD.reflect) {
|
|
1286
|
-
if (BUILD.slot && tag === "slot" && !useNativeShadowDom) {
|
|
1287
|
-
if (BUILD.experimentalSlotFixes && oldVNode.$name$ !== newVNode2.$name$) {
|
|
1288
|
-
newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
|
|
1289
|
-
relocateToHostRoot(newVNode2.$elm$.parentElement);
|
|
1290
|
-
}
|
|
1291
|
-
} else {
|
|
1364
|
+
if (text === null) {
|
|
1365
|
+
{
|
|
1366
|
+
if (tag === "slot" && !useNativeShadowDom) ; else {
|
|
1292
1367
|
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
1293
1368
|
}
|
|
1294
1369
|
}
|
|
1295
|
-
if (
|
|
1370
|
+
if (oldChildren !== null && newChildren !== null) {
|
|
1296
1371
|
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
1297
1372
|
} else if (newChildren !== null) {
|
|
1298
|
-
if (
|
|
1373
|
+
if (oldVNode.$text$ !== null) {
|
|
1299
1374
|
elm.textContent = "";
|
|
1300
1375
|
}
|
|
1301
1376
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
@@ -1305,12 +1380,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1305
1380
|
) {
|
|
1306
1381
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
1307
1382
|
}
|
|
1308
|
-
|
|
1309
|
-
isSvgMode = false;
|
|
1310
|
-
}
|
|
1311
|
-
} else if (BUILD.vdomText && BUILD.slotRelocation && (defaultHolder = elm["s-cr"])) {
|
|
1383
|
+
} else if ((defaultHolder = elm["s-cr"])) {
|
|
1312
1384
|
defaultHolder.parentNode.textContent = text;
|
|
1313
|
-
} else if (
|
|
1385
|
+
} else if (oldVNode.$text$ !== text) {
|
|
1314
1386
|
elm.data = text;
|
|
1315
1387
|
}
|
|
1316
1388
|
};
|
|
@@ -1352,7 +1424,7 @@ var markSlotContentForRelocation = (elm) => {
|
|
|
1352
1424
|
const slotName = childNode["s-sn"];
|
|
1353
1425
|
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
1354
1426
|
node = hostContentNodes[j];
|
|
1355
|
-
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!BUILD.experimentalSlotFixes
|
|
1427
|
+
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!BUILD.experimentalSlotFixes )) {
|
|
1356
1428
|
if (isNodeLocatedInSlot(node, slotName)) {
|
|
1357
1429
|
let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
1358
1430
|
checkSlotFallbackVisibility = true;
|
|
@@ -1406,66 +1478,23 @@ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
|
1406
1478
|
return slotName === "";
|
|
1407
1479
|
};
|
|
1408
1480
|
var nullifyVNodeRefs = (vNode) => {
|
|
1409
|
-
|
|
1481
|
+
{
|
|
1410
1482
|
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
1411
1483
|
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
1412
1484
|
}
|
|
1413
1485
|
};
|
|
1414
1486
|
var insertBefore = (parent, newNode, reference) => {
|
|
1415
1487
|
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
1416
|
-
if (BUILD.scoped) {
|
|
1417
|
-
updateElementScopeIds(newNode, parent);
|
|
1418
|
-
}
|
|
1419
1488
|
return inserted;
|
|
1420
1489
|
};
|
|
1421
|
-
var findScopeIds = (element) => {
|
|
1422
|
-
const scopeIds = [];
|
|
1423
|
-
if (element) {
|
|
1424
|
-
scopeIds.push(
|
|
1425
|
-
...element["s-scs"] || [],
|
|
1426
|
-
element["s-si"],
|
|
1427
|
-
element["s-sc"],
|
|
1428
|
-
...findScopeIds(element.parentElement)
|
|
1429
|
-
);
|
|
1430
|
-
}
|
|
1431
|
-
return scopeIds;
|
|
1432
|
-
};
|
|
1433
|
-
var updateElementScopeIds = (element, parent, iterateChildNodes = false) => {
|
|
1434
|
-
var _a;
|
|
1435
|
-
if (element && parent && element.nodeType === 1 /* ElementNode */) {
|
|
1436
|
-
const scopeIds = new Set(findScopeIds(parent).filter(Boolean));
|
|
1437
|
-
if (scopeIds.size) {
|
|
1438
|
-
(_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = [...scopeIds]);
|
|
1439
|
-
if (element["s-ol"] || iterateChildNodes) {
|
|
1440
|
-
for (const childNode of Array.from(element.childNodes)) {
|
|
1441
|
-
updateElementScopeIds(childNode, element, true);
|
|
1442
|
-
}
|
|
1443
|
-
}
|
|
1444
|
-
}
|
|
1445
|
-
}
|
|
1446
|
-
};
|
|
1447
1490
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
1448
|
-
var _a, _b, _c, _d
|
|
1491
|
+
var _a, _b, _c, _d;
|
|
1449
1492
|
const hostElm = hostRef.$hostElement$;
|
|
1450
1493
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
1451
1494
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
1452
1495
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
1453
1496
|
hostTagName = hostElm.tagName;
|
|
1454
|
-
if (
|
|
1455
|
-
throw new Error(`The <Host> must be the single root component.
|
|
1456
|
-
Looks like the render() function of "${hostTagName.toLowerCase()}" is returning an array that contains the <Host>.
|
|
1457
|
-
|
|
1458
|
-
The render() function should look like this instead:
|
|
1459
|
-
|
|
1460
|
-
render() {
|
|
1461
|
-
// Do not return an array
|
|
1462
|
-
return (
|
|
1463
|
-
<Host>{content}</Host>
|
|
1464
|
-
);
|
|
1465
|
-
}
|
|
1466
|
-
`);
|
|
1467
|
-
}
|
|
1468
|
-
if (BUILD.reflect && cmpMeta.$attrsToReflect$) {
|
|
1497
|
+
if (cmpMeta.$attrsToReflect$) {
|
|
1469
1498
|
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
1470
1499
|
cmpMeta.$attrsToReflect$.map(
|
|
1471
1500
|
([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]
|
|
@@ -1481,24 +1510,24 @@ render() {
|
|
|
1481
1510
|
rootVnode.$tag$ = null;
|
|
1482
1511
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
1483
1512
|
hostRef.$vnode$ = rootVnode;
|
|
1484
|
-
rootVnode.$elm$ = oldVNode.$elm$ =
|
|
1485
|
-
|
|
1513
|
+
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
1514
|
+
{
|
|
1486
1515
|
scopeId = hostElm["s-sc"];
|
|
1487
1516
|
}
|
|
1488
|
-
useNativeShadowDom =
|
|
1489
|
-
|
|
1517
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
1518
|
+
{
|
|
1490
1519
|
contentRef = hostElm["s-cr"];
|
|
1491
1520
|
checkSlotFallbackVisibility = false;
|
|
1492
1521
|
}
|
|
1493
1522
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
1494
|
-
|
|
1523
|
+
{
|
|
1495
1524
|
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
1496
1525
|
if (checkSlotRelocate) {
|
|
1497
1526
|
markSlotContentForRelocation(rootVnode.$elm$);
|
|
1498
1527
|
for (const relocateData of relocateNodes) {
|
|
1499
1528
|
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1500
1529
|
if (!nodeToRelocate["s-ol"]) {
|
|
1501
|
-
const orgLocationNode =
|
|
1530
|
+
const orgLocationNode = doc.createTextNode("");
|
|
1502
1531
|
orgLocationNode["s-nr"] = nodeToRelocate;
|
|
1503
1532
|
insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
|
|
1504
1533
|
}
|
|
@@ -1509,7 +1538,7 @@ render() {
|
|
|
1509
1538
|
if (slotRefNode) {
|
|
1510
1539
|
const parentNodeRef = slotRefNode.parentNode;
|
|
1511
1540
|
let insertBeforeNode = slotRefNode.nextSibling;
|
|
1512
|
-
|
|
1541
|
+
{
|
|
1513
1542
|
let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
|
|
1514
1543
|
while (orgLocationNode) {
|
|
1515
1544
|
let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
|
|
@@ -1528,7 +1557,7 @@ render() {
|
|
|
1528
1557
|
}
|
|
1529
1558
|
if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
1530
1559
|
if (nodeToRelocate !== insertBeforeNode) {
|
|
1531
|
-
if (!
|
|
1560
|
+
if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
|
|
1532
1561
|
nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
|
|
1533
1562
|
}
|
|
1534
1563
|
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
|
|
@@ -1554,47 +1583,31 @@ render() {
|
|
|
1554
1583
|
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
1555
1584
|
relocateNodes.length = 0;
|
|
1556
1585
|
}
|
|
1557
|
-
if (BUILD.experimentalScopedSlotChanges && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
1558
|
-
for (const childNode of rootVnode.$elm$.childNodes) {
|
|
1559
|
-
if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
|
|
1560
|
-
if (isInitialLoad && childNode["s-ih"] == null) {
|
|
1561
|
-
childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
|
|
1562
|
-
}
|
|
1563
|
-
childNode.hidden = true;
|
|
1564
|
-
}
|
|
1565
|
-
}
|
|
1566
|
-
}
|
|
1567
1586
|
contentRef = void 0;
|
|
1568
1587
|
};
|
|
1569
|
-
var slotReferenceDebugNode = (slotVNode) => doc.createComment(
|
|
1570
|
-
`<slot${slotVNode.$name$ ? ' name="' + slotVNode.$name$ + '"' : ""}> (host=${hostTagName.toLowerCase()})`
|
|
1571
|
-
);
|
|
1572
|
-
var originalLocationDebugNode = (nodeToRelocate) => doc.createComment(
|
|
1573
|
-
`org-location for ` + (nodeToRelocate.localName ? `<${nodeToRelocate.localName}> (host=${nodeToRelocate["s-hn"]})` : `[${nodeToRelocate.textContent}]`)
|
|
1574
|
-
);
|
|
1575
1588
|
|
|
1576
1589
|
// src/runtime/update-component.ts
|
|
1577
1590
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
1578
|
-
if (
|
|
1591
|
+
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
1579
1592
|
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
1580
1593
|
}
|
|
1581
1594
|
};
|
|
1582
1595
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
1583
|
-
|
|
1596
|
+
{
|
|
1584
1597
|
hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
|
|
1585
1598
|
}
|
|
1586
|
-
if (
|
|
1599
|
+
if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
|
|
1587
1600
|
hostRef.$flags$ |= 512 /* needsRerender */;
|
|
1588
1601
|
return;
|
|
1589
1602
|
}
|
|
1590
1603
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
1591
1604
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
1592
|
-
return
|
|
1605
|
+
return writeTask(dispatch) ;
|
|
1593
1606
|
};
|
|
1594
1607
|
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
1595
1608
|
const elm = hostRef.$hostElement$;
|
|
1596
1609
|
const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
|
|
1597
|
-
const instance =
|
|
1610
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
1598
1611
|
if (!instance) {
|
|
1599
1612
|
throw new Error(
|
|
1600
1613
|
`Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
|
|
@@ -1602,26 +1615,16 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1602
1615
|
}
|
|
1603
1616
|
let maybePromise;
|
|
1604
1617
|
if (isInitialLoad) {
|
|
1605
|
-
|
|
1618
|
+
{
|
|
1606
1619
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
1607
1620
|
if (hostRef.$queuedListeners$) {
|
|
1608
1621
|
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
1609
1622
|
hostRef.$queuedListeners$ = void 0;
|
|
1610
1623
|
}
|
|
1611
1624
|
}
|
|
1612
|
-
|
|
1613
|
-
if (BUILD.cmpWillLoad) {
|
|
1625
|
+
{
|
|
1614
1626
|
maybePromise = safeCall(instance, "componentWillLoad");
|
|
1615
1627
|
}
|
|
1616
|
-
} else {
|
|
1617
|
-
emitLifecycleEvent(elm, "componentWillUpdate");
|
|
1618
|
-
if (BUILD.cmpWillUpdate) {
|
|
1619
|
-
maybePromise = safeCall(instance, "componentWillUpdate");
|
|
1620
|
-
}
|
|
1621
|
-
}
|
|
1622
|
-
emitLifecycleEvent(elm, "componentWillRender");
|
|
1623
|
-
if (BUILD.cmpWillRender) {
|
|
1624
|
-
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
|
|
1625
1628
|
}
|
|
1626
1629
|
endSchedule();
|
|
1627
1630
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
@@ -1636,43 +1639,20 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1636
1639
|
const elm = hostRef.$hostElement$;
|
|
1637
1640
|
const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
|
|
1638
1641
|
const rc = elm["s-rc"];
|
|
1639
|
-
if (
|
|
1642
|
+
if (isInitialLoad) {
|
|
1640
1643
|
attachStyles(hostRef);
|
|
1641
1644
|
}
|
|
1642
1645
|
const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
|
|
1643
|
-
|
|
1644
|
-
hostRef.$flags$ |= 1024 /* devOnRender */;
|
|
1645
|
-
}
|
|
1646
|
-
if (BUILD.hydrateServerSide) {
|
|
1647
|
-
await callRender(hostRef, instance, elm, isInitialLoad);
|
|
1648
|
-
} else {
|
|
1646
|
+
{
|
|
1649
1647
|
callRender(hostRef, instance, elm, isInitialLoad);
|
|
1650
1648
|
}
|
|
1651
|
-
if (
|
|
1652
|
-
hostRef.$renderCount$ = hostRef.$renderCount$ === void 0 ? 1 : hostRef.$renderCount$ + 1;
|
|
1653
|
-
hostRef.$flags$ &= ~1024 /* devOnRender */;
|
|
1654
|
-
}
|
|
1655
|
-
if (BUILD.hydrateServerSide) {
|
|
1656
|
-
try {
|
|
1657
|
-
serverSideConnected(elm);
|
|
1658
|
-
if (isInitialLoad) {
|
|
1659
|
-
if (hostRef.$cmpMeta$.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1660
|
-
elm["s-en"] = "";
|
|
1661
|
-
} else if (hostRef.$cmpMeta$.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
1662
|
-
elm["s-en"] = "c";
|
|
1663
|
-
}
|
|
1664
|
-
}
|
|
1665
|
-
} catch (e) {
|
|
1666
|
-
consoleError(e, elm);
|
|
1667
|
-
}
|
|
1668
|
-
}
|
|
1669
|
-
if (BUILD.asyncLoading && rc) {
|
|
1649
|
+
if (rc) {
|
|
1670
1650
|
rc.map((cb) => cb());
|
|
1671
1651
|
elm["s-rc"] = void 0;
|
|
1672
1652
|
}
|
|
1673
1653
|
endRender();
|
|
1674
1654
|
endUpdate();
|
|
1675
|
-
|
|
1655
|
+
{
|
|
1676
1656
|
const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
|
|
1677
1657
|
const postUpdate = () => postUpdateComponent(hostRef);
|
|
1678
1658
|
if (childrenPromises.length === 0) {
|
|
@@ -1682,103 +1662,60 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1682
1662
|
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
1683
1663
|
childrenPromises.length = 0;
|
|
1684
1664
|
}
|
|
1685
|
-
} else {
|
|
1686
|
-
postUpdateComponent(hostRef);
|
|
1687
1665
|
}
|
|
1688
1666
|
};
|
|
1689
|
-
var renderingRef = null;
|
|
1690
1667
|
var callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
1691
|
-
const allRenderFn = BUILD.allRenderFn ? true : false;
|
|
1692
|
-
const lazyLoad = BUILD.lazyLoad ? true : false;
|
|
1693
|
-
const taskQueue = BUILD.taskQueue ? true : false;
|
|
1694
|
-
const updatable = BUILD.updatable ? true : false;
|
|
1695
1668
|
try {
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
if (updatable && taskQueue) {
|
|
1669
|
+
instance = instance.render() ;
|
|
1670
|
+
{
|
|
1699
1671
|
hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
|
|
1700
1672
|
}
|
|
1701
|
-
|
|
1673
|
+
{
|
|
1702
1674
|
hostRef.$flags$ |= 2 /* hasRendered */;
|
|
1703
1675
|
}
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
return Promise.resolve(instance).then((value) => renderVdom(hostRef, value, isInitialLoad));
|
|
1708
|
-
} else {
|
|
1676
|
+
{
|
|
1677
|
+
{
|
|
1678
|
+
{
|
|
1709
1679
|
renderVdom(hostRef, instance, isInitialLoad);
|
|
1710
1680
|
}
|
|
1711
|
-
} else {
|
|
1712
|
-
const shadowRoot = elm.shadowRoot;
|
|
1713
|
-
if (hostRef.$cmpMeta$.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1714
|
-
shadowRoot.textContent = instance;
|
|
1715
|
-
} else {
|
|
1716
|
-
elm.textContent = instance;
|
|
1717
|
-
}
|
|
1718
1681
|
}
|
|
1719
1682
|
}
|
|
1720
1683
|
} catch (e) {
|
|
1721
1684
|
consoleError(e, hostRef.$hostElement$);
|
|
1722
1685
|
}
|
|
1723
|
-
renderingRef = null;
|
|
1724
1686
|
return null;
|
|
1725
1687
|
};
|
|
1726
|
-
var getRenderingRef = () => renderingRef;
|
|
1727
1688
|
var postUpdateComponent = (hostRef) => {
|
|
1728
1689
|
const tagName = hostRef.$cmpMeta$.$tagName$;
|
|
1729
1690
|
const elm = hostRef.$hostElement$;
|
|
1730
1691
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
1731
|
-
const instance =
|
|
1692
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
1732
1693
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1733
|
-
if (BUILD.cmpDidRender) {
|
|
1734
|
-
if (BUILD.isDev) {
|
|
1735
|
-
hostRef.$flags$ |= 1024 /* devOnRender */;
|
|
1736
|
-
}
|
|
1737
|
-
safeCall(instance, "componentDidRender");
|
|
1738
|
-
if (BUILD.isDev) {
|
|
1739
|
-
hostRef.$flags$ &= ~1024 /* devOnRender */;
|
|
1740
|
-
}
|
|
1741
|
-
}
|
|
1742
|
-
emitLifecycleEvent(elm, "componentDidRender");
|
|
1743
1694
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
1744
1695
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
1745
|
-
|
|
1696
|
+
{
|
|
1746
1697
|
addHydratedFlag(elm);
|
|
1747
1698
|
}
|
|
1748
|
-
|
|
1749
|
-
if (BUILD.isDev) {
|
|
1750
|
-
hostRef.$flags$ |= 2048 /* devOnDidLoad */;
|
|
1751
|
-
}
|
|
1699
|
+
{
|
|
1752
1700
|
safeCall(instance, "componentDidLoad");
|
|
1753
|
-
if (BUILD.isDev) {
|
|
1754
|
-
hostRef.$flags$ &= ~2048 /* devOnDidLoad */;
|
|
1755
|
-
}
|
|
1756
1701
|
}
|
|
1757
|
-
emitLifecycleEvent(elm, "componentDidLoad");
|
|
1758
1702
|
endPostUpdate();
|
|
1759
|
-
|
|
1703
|
+
{
|
|
1760
1704
|
hostRef.$onReadyResolve$(elm);
|
|
1761
1705
|
if (!ancestorComponent) {
|
|
1762
|
-
appDidLoad(
|
|
1706
|
+
appDidLoad();
|
|
1763
1707
|
}
|
|
1764
1708
|
}
|
|
1765
1709
|
} else {
|
|
1766
|
-
|
|
1767
|
-
if (BUILD.isDev) {
|
|
1768
|
-
hostRef.$flags$ |= 1024 /* devOnRender */;
|
|
1769
|
-
}
|
|
1710
|
+
{
|
|
1770
1711
|
safeCall(instance, "componentDidUpdate");
|
|
1771
|
-
if (BUILD.isDev) {
|
|
1772
|
-
hostRef.$flags$ &= ~1024 /* devOnRender */;
|
|
1773
|
-
}
|
|
1774
1712
|
}
|
|
1775
|
-
emitLifecycleEvent(elm, "componentDidUpdate");
|
|
1776
1713
|
endPostUpdate();
|
|
1777
1714
|
}
|
|
1778
|
-
|
|
1715
|
+
{
|
|
1779
1716
|
hostRef.$onInstanceResolve$(elm);
|
|
1780
1717
|
}
|
|
1781
|
-
|
|
1718
|
+
{
|
|
1782
1719
|
if (hostRef.$onRenderResolve$) {
|
|
1783
1720
|
hostRef.$onRenderResolve$();
|
|
1784
1721
|
hostRef.$onRenderResolve$ = void 0;
|
|
@@ -1789,28 +1726,11 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1789
1726
|
hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
|
|
1790
1727
|
}
|
|
1791
1728
|
};
|
|
1792
|
-
var forceUpdate = (ref) => {
|
|
1793
|
-
if (BUILD.updatable && (Build.isBrowser || Build.isTesting)) {
|
|
1794
|
-
const hostRef = getHostRef(ref);
|
|
1795
|
-
const isConnected = hostRef.$hostElement$.isConnected;
|
|
1796
|
-
if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1797
|
-
scheduleUpdate(hostRef, false);
|
|
1798
|
-
}
|
|
1799
|
-
return isConnected;
|
|
1800
|
-
}
|
|
1801
|
-
return false;
|
|
1802
|
-
};
|
|
1803
1729
|
var appDidLoad = (who) => {
|
|
1804
|
-
|
|
1730
|
+
{
|
|
1805
1731
|
addHydratedFlag(doc.documentElement);
|
|
1806
1732
|
}
|
|
1807
|
-
if (BUILD.asyncQueue) {
|
|
1808
|
-
plt.$flags$ |= 2 /* appLoaded */;
|
|
1809
|
-
}
|
|
1810
1733
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
1811
|
-
if (BUILD.profile && performance.measure) {
|
|
1812
|
-
performance.measure(`[Stencil] ${NAMESPACE} initial load (by ${who})`, "st:app:start");
|
|
1813
|
-
}
|
|
1814
1734
|
};
|
|
1815
1735
|
var safeCall = (instance, method, arg) => {
|
|
1816
1736
|
if (instance && instance[method]) {
|
|
@@ -1822,77 +1742,31 @@ var safeCall = (instance, method, arg) => {
|
|
|
1822
1742
|
}
|
|
1823
1743
|
return void 0;
|
|
1824
1744
|
};
|
|
1825
|
-
var emitLifecycleEvent = (elm, lifecycleName) => {
|
|
1826
|
-
if (BUILD.lifecycleDOMEvents) {
|
|
1827
|
-
emitEvent(elm, "stencil_" + lifecycleName, {
|
|
1828
|
-
bubbles: true,
|
|
1829
|
-
composed: true,
|
|
1830
|
-
detail: {
|
|
1831
|
-
namespace: NAMESPACE
|
|
1832
|
-
}
|
|
1833
|
-
});
|
|
1834
|
-
}
|
|
1835
|
-
};
|
|
1836
1745
|
var addHydratedFlag = (elm) => {
|
|
1837
|
-
var _a
|
|
1838
|
-
return
|
|
1839
|
-
};
|
|
1840
|
-
var serverSideConnected = (elm) => {
|
|
1841
|
-
const children = elm.children;
|
|
1842
|
-
if (children != null) {
|
|
1843
|
-
for (let i2 = 0, ii = children.length; i2 < ii; i2++) {
|
|
1844
|
-
const childElm = children[i2];
|
|
1845
|
-
if (typeof childElm.connectedCallback === "function") {
|
|
1846
|
-
childElm.connectedCallback();
|
|
1847
|
-
}
|
|
1848
|
-
serverSideConnected(childElm);
|
|
1849
|
-
}
|
|
1850
|
-
}
|
|
1746
|
+
var _a;
|
|
1747
|
+
return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
|
|
1851
1748
|
};
|
|
1852
1749
|
|
|
1853
1750
|
// src/runtime/set-value.ts
|
|
1854
1751
|
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
1855
1752
|
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
1856
1753
|
const hostRef = getHostRef(ref);
|
|
1857
|
-
if (
|
|
1754
|
+
if (!hostRef) {
|
|
1858
1755
|
throw new Error(
|
|
1859
1756
|
`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/ionic-team/stencil/issues/5457).`
|
|
1860
1757
|
);
|
|
1861
1758
|
}
|
|
1862
|
-
const elm =
|
|
1759
|
+
const elm = hostRef.$hostElement$ ;
|
|
1863
1760
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
1864
1761
|
const flags = hostRef.$flags$;
|
|
1865
|
-
const instance =
|
|
1762
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
1866
1763
|
newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
|
|
1867
1764
|
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
1868
1765
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1869
|
-
if ((!
|
|
1766
|
+
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
1870
1767
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
1871
|
-
if (
|
|
1872
|
-
if (
|
|
1873
|
-
consoleDevWarn(
|
|
1874
|
-
`The state/prop "${propName}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,
|
|
1875
|
-
"\nElement",
|
|
1876
|
-
elm,
|
|
1877
|
-
"\nNew value",
|
|
1878
|
-
newVal,
|
|
1879
|
-
"\nOld value",
|
|
1880
|
-
oldVal
|
|
1881
|
-
);
|
|
1882
|
-
} else if (hostRef.$flags$ & 2048 /* devOnDidLoad */) {
|
|
1883
|
-
consoleDevWarn(
|
|
1884
|
-
`The state/prop "${propName}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`,
|
|
1885
|
-
"\nElement",
|
|
1886
|
-
elm,
|
|
1887
|
-
"\nNew value",
|
|
1888
|
-
newVal,
|
|
1889
|
-
"\nOld value",
|
|
1890
|
-
oldVal
|
|
1891
|
-
);
|
|
1892
|
-
}
|
|
1893
|
-
}
|
|
1894
|
-
if (!BUILD.lazyLoad || instance) {
|
|
1895
|
-
if (BUILD.watchCallback && cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
|
|
1768
|
+
if (instance) {
|
|
1769
|
+
if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
|
|
1896
1770
|
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1897
1771
|
if (watchMethods) {
|
|
1898
1772
|
watchMethods.map((watchMethodName) => {
|
|
@@ -1904,12 +1778,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1904
1778
|
});
|
|
1905
1779
|
}
|
|
1906
1780
|
}
|
|
1907
|
-
if (
|
|
1908
|
-
if (BUILD.cmpShouldUpdate && instance.componentShouldUpdate) {
|
|
1909
|
-
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
1910
|
-
return;
|
|
1911
|
-
}
|
|
1912
|
-
}
|
|
1781
|
+
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1913
1782
|
scheduleUpdate(hostRef, false);
|
|
1914
1783
|
}
|
|
1915
1784
|
}
|
|
@@ -1920,59 +1789,24 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1920
1789
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1921
1790
|
var _a, _b;
|
|
1922
1791
|
const prototype = Cstr.prototype;
|
|
1923
|
-
if (
|
|
1924
|
-
|
|
1925
|
-
(cbName) => Object.defineProperty(prototype, cbName, {
|
|
1926
|
-
value(...args) {
|
|
1927
|
-
const hostRef = getHostRef(this);
|
|
1928
|
-
const elm = BUILD.lazyLoad ? hostRef.$hostElement$ : this;
|
|
1929
|
-
const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
|
|
1930
|
-
if (!instance) {
|
|
1931
|
-
hostRef.$onReadyPromise$.then((instance2) => {
|
|
1932
|
-
const cb = instance2[cbName];
|
|
1933
|
-
typeof cb === "function" && cb.call(instance2, ...args);
|
|
1934
|
-
});
|
|
1935
|
-
} else {
|
|
1936
|
-
const cb = instance[cbName];
|
|
1937
|
-
typeof cb === "function" && cb.call(instance, ...args);
|
|
1938
|
-
}
|
|
1939
|
-
}
|
|
1940
|
-
})
|
|
1941
|
-
);
|
|
1942
|
-
}
|
|
1943
|
-
if (BUILD.member && cmpMeta.$members$ || BUILD.watchCallback && (cmpMeta.$watchers$ || Cstr.watchers)) {
|
|
1944
|
-
if (BUILD.watchCallback && Cstr.watchers && !cmpMeta.$watchers$) {
|
|
1792
|
+
if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
|
|
1793
|
+
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
1945
1794
|
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1946
1795
|
}
|
|
1947
1796
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1948
1797
|
members.map(([memberName, [memberFlags]]) => {
|
|
1949
|
-
if ((
|
|
1798
|
+
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1950
1799
|
Object.defineProperty(prototype, memberName, {
|
|
1951
1800
|
get() {
|
|
1952
1801
|
return getValue(this, memberName);
|
|
1953
1802
|
},
|
|
1954
1803
|
set(newValue) {
|
|
1955
|
-
if (BUILD.isDev) {
|
|
1956
|
-
const ref = getHostRef(this);
|
|
1957
|
-
if (
|
|
1958
|
-
// we are proxying the instance (not element)
|
|
1959
|
-
(flags & 1 /* isElementConstructor */) === 0 && // the element is not constructing
|
|
1960
|
-
(ref && ref.$flags$ & 8 /* isConstructingInstance */) === 0 && // the member is a prop
|
|
1961
|
-
(memberFlags & 31 /* Prop */) !== 0 && // the member is not mutable
|
|
1962
|
-
(memberFlags & 1024 /* Mutable */) === 0
|
|
1963
|
-
) {
|
|
1964
|
-
consoleDevWarn(
|
|
1965
|
-
`@Prop() "${memberName}" on <${cmpMeta.$tagName$}> is immutable but was modified from within the component.
|
|
1966
|
-
More information: https://stenciljs.com/docs/properties#prop-mutability`
|
|
1967
|
-
);
|
|
1968
|
-
}
|
|
1969
|
-
}
|
|
1970
1804
|
setValue(this, memberName, newValue, cmpMeta);
|
|
1971
1805
|
},
|
|
1972
1806
|
configurable: true,
|
|
1973
1807
|
enumerable: true
|
|
1974
1808
|
});
|
|
1975
|
-
} else if (
|
|
1809
|
+
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
|
|
1976
1810
|
Object.defineProperty(prototype, memberName, {
|
|
1977
1811
|
value(...args) {
|
|
1978
1812
|
var _a2;
|
|
@@ -1985,7 +1819,7 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
|
|
|
1985
1819
|
});
|
|
1986
1820
|
}
|
|
1987
1821
|
});
|
|
1988
|
-
if (
|
|
1822
|
+
if ((flags & 1 /* isElementConstructor */)) {
|
|
1989
1823
|
const attrNameToPropName = /* @__PURE__ */ new Map();
|
|
1990
1824
|
prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
|
|
1991
1825
|
plt.jmp(() => {
|
|
@@ -2001,8 +1835,7 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
|
|
|
2001
1835
|
const hostRef = getHostRef(this);
|
|
2002
1836
|
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
2003
1837
|
if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
2004
|
-
const
|
|
2005
|
-
const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
|
|
1838
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
2006
1839
|
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
2007
1840
|
entry == null ? void 0 : entry.forEach((callbackName) => {
|
|
2008
1841
|
if (instance[callbackName] != null) {
|
|
@@ -2022,7 +1855,7 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
|
|
|
2022
1855
|
var _a2;
|
|
2023
1856
|
const attrName = m[1] || propName;
|
|
2024
1857
|
attrNameToPropName.set(attrName, propName);
|
|
2025
|
-
if (
|
|
1858
|
+
if (m[0] & 512 /* ReflectAttr */) {
|
|
2026
1859
|
(_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
|
|
2027
1860
|
}
|
|
2028
1861
|
return attrName;
|
|
@@ -2040,13 +1873,10 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
2040
1873
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
2041
1874
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
2042
1875
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
2043
|
-
if (
|
|
2044
|
-
const CstrImport = loadModule(cmpMeta
|
|
1876
|
+
if (bundleId) {
|
|
1877
|
+
const CstrImport = loadModule(cmpMeta);
|
|
2045
1878
|
if (CstrImport && "then" in CstrImport) {
|
|
2046
|
-
const endLoad = uniqueTime(
|
|
2047
|
-
`st:load:${cmpMeta.$tagName$}:${hostRef.$modeName$}`,
|
|
2048
|
-
`[Stencil] Load module for <${cmpMeta.$tagName$}>`
|
|
2049
|
-
);
|
|
1879
|
+
const endLoad = uniqueTime();
|
|
2050
1880
|
Cstr = await CstrImport;
|
|
2051
1881
|
endLoad();
|
|
2052
1882
|
} else {
|
|
@@ -2055,15 +1885,15 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
2055
1885
|
if (!Cstr) {
|
|
2056
1886
|
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
2057
1887
|
}
|
|
2058
|
-
if (
|
|
2059
|
-
|
|
1888
|
+
if (!Cstr.isProxied) {
|
|
1889
|
+
{
|
|
2060
1890
|
cmpMeta.$watchers$ = Cstr.watchers;
|
|
2061
1891
|
}
|
|
2062
1892
|
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
2063
1893
|
Cstr.isProxied = true;
|
|
2064
1894
|
}
|
|
2065
1895
|
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
|
2066
|
-
|
|
1896
|
+
{
|
|
2067
1897
|
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
2068
1898
|
}
|
|
2069
1899
|
try {
|
|
@@ -2071,10 +1901,10 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
2071
1901
|
} catch (e) {
|
|
2072
1902
|
consoleError(e);
|
|
2073
1903
|
}
|
|
2074
|
-
|
|
1904
|
+
{
|
|
2075
1905
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
2076
1906
|
}
|
|
2077
|
-
|
|
1907
|
+
{
|
|
2078
1908
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
2079
1909
|
}
|
|
2080
1910
|
endNewInstance();
|
|
@@ -2084,26 +1914,14 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
2084
1914
|
const cmpTag = elm.localName;
|
|
2085
1915
|
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
2086
1916
|
}
|
|
2087
|
-
if (
|
|
1917
|
+
if (Cstr && Cstr.style) {
|
|
2088
1918
|
let style;
|
|
2089
1919
|
if (typeof Cstr.style === "string") {
|
|
2090
1920
|
style = Cstr.style;
|
|
2091
|
-
} else if (BUILD.mode && typeof Cstr.style !== "string") {
|
|
2092
|
-
hostRef.$modeName$ = computeMode(elm);
|
|
2093
|
-
if (hostRef.$modeName$) {
|
|
2094
|
-
style = Cstr.style[hostRef.$modeName$];
|
|
2095
|
-
}
|
|
2096
|
-
if (BUILD.hydrateServerSide && hostRef.$modeName$) {
|
|
2097
|
-
elm.setAttribute("s-mode", hostRef.$modeName$);
|
|
2098
|
-
}
|
|
2099
1921
|
}
|
|
2100
|
-
const scopeId2 = getScopeId(cmpMeta
|
|
1922
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
2101
1923
|
if (!styles.has(scopeId2)) {
|
|
2102
1924
|
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
2103
|
-
if (!BUILD.hydrateServerSide && BUILD.shadowDom && // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
2104
|
-
BUILD.shadowDomShim && cmpMeta.$flags$ & 8 /* needsShadowDomShim */) {
|
|
2105
|
-
style = await import('./shadow-css-423dab2c.js').then((m) => m.scopeCss(style, scopeId2));
|
|
2106
|
-
}
|
|
2107
1925
|
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
2108
1926
|
endRegisterStyles();
|
|
2109
1927
|
}
|
|
@@ -2111,14 +1929,14 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
2111
1929
|
}
|
|
2112
1930
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
2113
1931
|
const schedule = () => scheduleUpdate(hostRef, true);
|
|
2114
|
-
if (
|
|
1932
|
+
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
2115
1933
|
ancestorComponent["s-rc"].push(schedule);
|
|
2116
1934
|
} else {
|
|
2117
1935
|
schedule();
|
|
2118
1936
|
}
|
|
2119
1937
|
};
|
|
2120
1938
|
var fireConnectedCallback = (instance) => {
|
|
2121
|
-
|
|
1939
|
+
{
|
|
2122
1940
|
safeCall(instance, "connectedCallback");
|
|
2123
1941
|
}
|
|
2124
1942
|
};
|
|
@@ -2129,38 +1947,35 @@ var connectedCallback = (elm) => {
|
|
|
2129
1947
|
const hostRef = getHostRef(elm);
|
|
2130
1948
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
2131
1949
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
2132
|
-
if (BUILD.hostListenerTargetParent) {
|
|
2133
|
-
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, true);
|
|
2134
|
-
}
|
|
2135
1950
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
2136
1951
|
hostRef.$flags$ |= 1 /* hasConnected */;
|
|
2137
1952
|
let hostId;
|
|
2138
|
-
|
|
1953
|
+
{
|
|
2139
1954
|
hostId = elm.getAttribute(HYDRATE_ID);
|
|
2140
1955
|
if (hostId) {
|
|
2141
|
-
if (
|
|
2142
|
-
const scopeId2 =
|
|
1956
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1957
|
+
const scopeId2 = addStyle(elm.shadowRoot, cmpMeta);
|
|
2143
1958
|
elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
|
|
2144
1959
|
}
|
|
2145
1960
|
initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
|
|
2146
1961
|
}
|
|
2147
1962
|
}
|
|
2148
|
-
if (
|
|
2149
|
-
if (
|
|
1963
|
+
if (!hostId) {
|
|
1964
|
+
if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
2150
1965
|
cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
|
|
2151
1966
|
setContentReference(elm);
|
|
2152
1967
|
}
|
|
2153
1968
|
}
|
|
2154
|
-
|
|
1969
|
+
{
|
|
2155
1970
|
let ancestorComponent = elm;
|
|
2156
1971
|
while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
|
|
2157
|
-
if (
|
|
1972
|
+
if (ancestorComponent.nodeType === 1 /* ElementNode */ && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
|
|
2158
1973
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
|
|
2159
1974
|
break;
|
|
2160
1975
|
}
|
|
2161
1976
|
}
|
|
2162
1977
|
}
|
|
2163
|
-
if (
|
|
1978
|
+
if (cmpMeta.$members$) {
|
|
2164
1979
|
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
2165
1980
|
if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
|
|
2166
1981
|
const value = elm[memberName];
|
|
@@ -2169,13 +1984,11 @@ var connectedCallback = (elm) => {
|
|
|
2169
1984
|
}
|
|
2170
1985
|
});
|
|
2171
1986
|
}
|
|
2172
|
-
|
|
2173
|
-
nextTick(() => initializeComponent(elm, hostRef, cmpMeta));
|
|
2174
|
-
} else {
|
|
1987
|
+
{
|
|
2175
1988
|
initializeComponent(elm, hostRef, cmpMeta);
|
|
2176
1989
|
}
|
|
2177
1990
|
} else {
|
|
2178
|
-
addHostEventListeners(elm, hostRef, cmpMeta.$listeners
|
|
1991
|
+
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
2179
1992
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
2180
1993
|
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
2181
1994
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
@@ -2187,480 +2000,37 @@ var connectedCallback = (elm) => {
|
|
|
2187
2000
|
};
|
|
2188
2001
|
var setContentReference = (elm) => {
|
|
2189
2002
|
const contentRefElm = elm["s-cr"] = doc.createComment(
|
|
2190
|
-
|
|
2003
|
+
""
|
|
2191
2004
|
);
|
|
2192
2005
|
contentRefElm["s-cn"] = true;
|
|
2193
2006
|
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
2194
2007
|
};
|
|
2195
2008
|
var disconnectInstance = (instance) => {
|
|
2196
|
-
|
|
2009
|
+
{
|
|
2197
2010
|
safeCall(instance, "disconnectedCallback");
|
|
2198
2011
|
}
|
|
2199
|
-
if (BUILD.cmpDidUnload) {
|
|
2200
|
-
safeCall(instance, "componentDidUnload");
|
|
2201
|
-
}
|
|
2202
2012
|
};
|
|
2203
2013
|
var disconnectedCallback = async (elm) => {
|
|
2204
2014
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
2205
2015
|
const hostRef = getHostRef(elm);
|
|
2206
|
-
|
|
2016
|
+
{
|
|
2207
2017
|
if (hostRef.$rmListeners$) {
|
|
2208
2018
|
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
2209
2019
|
hostRef.$rmListeners$ = void 0;
|
|
2210
2020
|
}
|
|
2211
2021
|
}
|
|
2212
|
-
if (
|
|
2213
|
-
disconnectInstance(elm);
|
|
2214
|
-
} else if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
2022
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
2215
2023
|
disconnectInstance(hostRef.$lazyInstance$);
|
|
2216
2024
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
2217
2025
|
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
2218
2026
|
}
|
|
2219
2027
|
}
|
|
2220
2028
|
};
|
|
2221
|
-
var patchPseudoShadowDom = (hostElementPrototype, descriptorPrototype) => {
|
|
2222
|
-
patchCloneNode(hostElementPrototype);
|
|
2223
|
-
patchSlotAppendChild(hostElementPrototype);
|
|
2224
|
-
patchSlotAppend(hostElementPrototype);
|
|
2225
|
-
patchSlotPrepend(hostElementPrototype);
|
|
2226
|
-
patchSlotInsertAdjacentElement(hostElementPrototype);
|
|
2227
|
-
patchSlotInsertAdjacentHTML(hostElementPrototype);
|
|
2228
|
-
patchSlotInsertAdjacentText(hostElementPrototype);
|
|
2229
|
-
patchTextContent(hostElementPrototype);
|
|
2230
|
-
patchChildSlotNodes(hostElementPrototype, descriptorPrototype);
|
|
2231
|
-
patchSlotRemoveChild(hostElementPrototype);
|
|
2232
|
-
};
|
|
2233
|
-
var patchCloneNode = (HostElementPrototype) => {
|
|
2234
|
-
const orgCloneNode = HostElementPrototype.cloneNode;
|
|
2235
|
-
HostElementPrototype.cloneNode = function(deep) {
|
|
2236
|
-
const srcNode = this;
|
|
2237
|
-
const isShadowDom = BUILD.shadowDom ? srcNode.shadowRoot && supportsShadow : false;
|
|
2238
|
-
const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
|
|
2239
|
-
if (BUILD.slot && !isShadowDom && deep) {
|
|
2240
|
-
let i2 = 0;
|
|
2241
|
-
let slotted, nonStencilNode;
|
|
2242
|
-
const stencilPrivates = [
|
|
2243
|
-
"s-id",
|
|
2244
|
-
"s-cr",
|
|
2245
|
-
"s-lr",
|
|
2246
|
-
"s-rc",
|
|
2247
|
-
"s-sc",
|
|
2248
|
-
"s-p",
|
|
2249
|
-
"s-cn",
|
|
2250
|
-
"s-sr",
|
|
2251
|
-
"s-sn",
|
|
2252
|
-
"s-hn",
|
|
2253
|
-
"s-ol",
|
|
2254
|
-
"s-nr",
|
|
2255
|
-
"s-si",
|
|
2256
|
-
"s-rf",
|
|
2257
|
-
"s-scs"
|
|
2258
|
-
];
|
|
2259
|
-
for (; i2 < srcNode.childNodes.length; i2++) {
|
|
2260
|
-
slotted = srcNode.childNodes[i2]["s-nr"];
|
|
2261
|
-
nonStencilNode = stencilPrivates.every((privateField) => !srcNode.childNodes[i2][privateField]);
|
|
2262
|
-
if (slotted) {
|
|
2263
|
-
if (BUILD.appendChildSlotFix && clonedNode.__appendChild) {
|
|
2264
|
-
clonedNode.__appendChild(slotted.cloneNode(true));
|
|
2265
|
-
} else {
|
|
2266
|
-
clonedNode.appendChild(slotted.cloneNode(true));
|
|
2267
|
-
}
|
|
2268
|
-
}
|
|
2269
|
-
if (nonStencilNode) {
|
|
2270
|
-
clonedNode.appendChild(srcNode.childNodes[i2].cloneNode(true));
|
|
2271
|
-
}
|
|
2272
|
-
}
|
|
2273
|
-
}
|
|
2274
|
-
return clonedNode;
|
|
2275
|
-
};
|
|
2276
|
-
};
|
|
2277
|
-
var patchSlotAppendChild = (HostElementPrototype) => {
|
|
2278
|
-
HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
|
|
2279
|
-
HostElementPrototype.appendChild = function(newChild) {
|
|
2280
|
-
const slotName = newChild["s-sn"] = getSlotName(newChild);
|
|
2281
|
-
const slotNode = getHostSlotNode(this.childNodes, slotName, this.tagName);
|
|
2282
|
-
if (slotNode) {
|
|
2283
|
-
const slotPlaceholder = document.createTextNode("");
|
|
2284
|
-
slotPlaceholder["s-nr"] = newChild;
|
|
2285
|
-
slotNode["s-cr"].parentNode.__appendChild(slotPlaceholder);
|
|
2286
|
-
newChild["s-ol"] = slotPlaceholder;
|
|
2287
|
-
newChild["s-sh"] = slotNode["s-hn"];
|
|
2288
|
-
const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
|
|
2289
|
-
const appendAfter = slotChildNodes[slotChildNodes.length - 1];
|
|
2290
|
-
const insertedNode = insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
|
|
2291
|
-
updateFallbackSlotVisibility(this);
|
|
2292
|
-
return insertedNode;
|
|
2293
|
-
}
|
|
2294
|
-
return this.__appendChild(newChild);
|
|
2295
|
-
};
|
|
2296
|
-
};
|
|
2297
|
-
var patchSlotRemoveChild = (ElementPrototype) => {
|
|
2298
|
-
ElementPrototype.__removeChild = ElementPrototype.removeChild;
|
|
2299
|
-
ElementPrototype.removeChild = function(toRemove) {
|
|
2300
|
-
if (toRemove && typeof toRemove["s-sn"] !== "undefined") {
|
|
2301
|
-
const slotNode = getHostSlotNode(this.childNodes, toRemove["s-sn"], this.tagName);
|
|
2302
|
-
if (slotNode) {
|
|
2303
|
-
const slotChildNodes = getHostSlotChildNodes(slotNode, toRemove["s-sn"]);
|
|
2304
|
-
const existingNode = slotChildNodes.find((n) => n === toRemove);
|
|
2305
|
-
if (existingNode) {
|
|
2306
|
-
existingNode.remove();
|
|
2307
|
-
updateFallbackSlotVisibility(this);
|
|
2308
|
-
return;
|
|
2309
|
-
}
|
|
2310
|
-
}
|
|
2311
|
-
}
|
|
2312
|
-
return this.__removeChild(toRemove);
|
|
2313
|
-
};
|
|
2314
|
-
};
|
|
2315
|
-
var patchSlotPrepend = (HostElementPrototype) => {
|
|
2316
|
-
const originalPrepend = HostElementPrototype.prepend;
|
|
2317
|
-
HostElementPrototype.prepend = function(...newChildren) {
|
|
2318
|
-
newChildren.forEach((newChild) => {
|
|
2319
|
-
if (typeof newChild === "string") {
|
|
2320
|
-
newChild = this.ownerDocument.createTextNode(newChild);
|
|
2321
|
-
}
|
|
2322
|
-
const slotName = newChild["s-sn"] = getSlotName(newChild);
|
|
2323
|
-
const slotNode = getHostSlotNode(this.childNodes, slotName, this.tagName);
|
|
2324
|
-
if (slotNode) {
|
|
2325
|
-
const slotPlaceholder = document.createTextNode("");
|
|
2326
|
-
slotPlaceholder["s-nr"] = newChild;
|
|
2327
|
-
slotNode["s-cr"].parentNode.__appendChild(slotPlaceholder);
|
|
2328
|
-
newChild["s-ol"] = slotPlaceholder;
|
|
2329
|
-
newChild["s-sh"] = slotNode["s-hn"];
|
|
2330
|
-
const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
|
|
2331
|
-
const appendAfter = slotChildNodes[0];
|
|
2332
|
-
return insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
|
|
2333
|
-
}
|
|
2334
|
-
if (newChild.nodeType === 1 && !!newChild.getAttribute("slot")) {
|
|
2335
|
-
newChild.hidden = true;
|
|
2336
|
-
}
|
|
2337
|
-
return originalPrepend.call(this, newChild);
|
|
2338
|
-
});
|
|
2339
|
-
};
|
|
2340
|
-
};
|
|
2341
|
-
var patchSlotAppend = (HostElementPrototype) => {
|
|
2342
|
-
HostElementPrototype.append = function(...newChildren) {
|
|
2343
|
-
newChildren.forEach((newChild) => {
|
|
2344
|
-
if (typeof newChild === "string") {
|
|
2345
|
-
newChild = this.ownerDocument.createTextNode(newChild);
|
|
2346
|
-
}
|
|
2347
|
-
this.appendChild(newChild);
|
|
2348
|
-
});
|
|
2349
|
-
};
|
|
2350
|
-
};
|
|
2351
|
-
var patchSlotInsertAdjacentHTML = (HostElementPrototype) => {
|
|
2352
|
-
const originalInsertAdjacentHtml = HostElementPrototype.insertAdjacentHTML;
|
|
2353
|
-
HostElementPrototype.insertAdjacentHTML = function(position, text) {
|
|
2354
|
-
if (position !== "afterbegin" && position !== "beforeend") {
|
|
2355
|
-
return originalInsertAdjacentHtml.call(this, position, text);
|
|
2356
|
-
}
|
|
2357
|
-
const container = this.ownerDocument.createElement("_");
|
|
2358
|
-
let node;
|
|
2359
|
-
container.innerHTML = text;
|
|
2360
|
-
if (position === "afterbegin") {
|
|
2361
|
-
while (node = container.firstChild) {
|
|
2362
|
-
this.prepend(node);
|
|
2363
|
-
}
|
|
2364
|
-
} else if (position === "beforeend") {
|
|
2365
|
-
while (node = container.firstChild) {
|
|
2366
|
-
this.append(node);
|
|
2367
|
-
}
|
|
2368
|
-
}
|
|
2369
|
-
};
|
|
2370
|
-
};
|
|
2371
|
-
var patchSlotInsertAdjacentText = (HostElementPrototype) => {
|
|
2372
|
-
HostElementPrototype.insertAdjacentText = function(position, text) {
|
|
2373
|
-
this.insertAdjacentHTML(position, text);
|
|
2374
|
-
};
|
|
2375
|
-
};
|
|
2376
|
-
var patchSlotInsertAdjacentElement = (HostElementPrototype) => {
|
|
2377
|
-
const originalInsertAdjacentElement = HostElementPrototype.insertAdjacentElement;
|
|
2378
|
-
HostElementPrototype.insertAdjacentElement = function(position, element) {
|
|
2379
|
-
if (position !== "afterbegin" && position !== "beforeend") {
|
|
2380
|
-
return originalInsertAdjacentElement.call(this, position, element);
|
|
2381
|
-
}
|
|
2382
|
-
if (position === "afterbegin") {
|
|
2383
|
-
this.prepend(element);
|
|
2384
|
-
return element;
|
|
2385
|
-
} else if (position === "beforeend") {
|
|
2386
|
-
this.append(element);
|
|
2387
|
-
return element;
|
|
2388
|
-
}
|
|
2389
|
-
return element;
|
|
2390
|
-
};
|
|
2391
|
-
};
|
|
2392
|
-
var patchTextContent = (hostElementPrototype) => {
|
|
2393
|
-
const descriptor = Object.getOwnPropertyDescriptor(Node.prototype, "textContent");
|
|
2394
|
-
Object.defineProperty(hostElementPrototype, "__textContent", descriptor);
|
|
2395
|
-
if (BUILD.experimentalScopedSlotChanges) {
|
|
2396
|
-
Object.defineProperty(hostElementPrototype, "textContent", {
|
|
2397
|
-
// To mimic shadow root behavior, we need to return the text content of all
|
|
2398
|
-
// nodes in a slot reference node
|
|
2399
|
-
get() {
|
|
2400
|
-
const slotRefNodes = getAllChildSlotNodes(this.childNodes);
|
|
2401
|
-
const textContent = slotRefNodes.map((node) => {
|
|
2402
|
-
var _a, _b;
|
|
2403
|
-
const text = [];
|
|
2404
|
-
let slotContent = node.nextSibling;
|
|
2405
|
-
while (slotContent && slotContent["s-sn"] === node["s-sn"]) {
|
|
2406
|
-
if (slotContent.nodeType === 3 /* TEXT_NODE */ || slotContent.nodeType === 1 /* ELEMENT_NODE */) {
|
|
2407
|
-
text.push((_b = (_a = slotContent.textContent) == null ? void 0 : _a.trim()) != null ? _b : "");
|
|
2408
|
-
}
|
|
2409
|
-
slotContent = slotContent.nextSibling;
|
|
2410
|
-
}
|
|
2411
|
-
return text.filter((ref) => ref !== "").join(" ");
|
|
2412
|
-
}).filter((text) => text !== "").join(" ");
|
|
2413
|
-
return " " + textContent + " ";
|
|
2414
|
-
},
|
|
2415
|
-
// To mimic shadow root behavior, we need to overwrite all nodes in a slot
|
|
2416
|
-
// reference node. If a default slot reference node exists, the text content will be
|
|
2417
|
-
// placed there. Otherwise, the new text node will be hidden
|
|
2418
|
-
set(value) {
|
|
2419
|
-
const slotRefNodes = getAllChildSlotNodes(this.childNodes);
|
|
2420
|
-
slotRefNodes.forEach((node) => {
|
|
2421
|
-
let slotContent = node.nextSibling;
|
|
2422
|
-
while (slotContent && slotContent["s-sn"] === node["s-sn"]) {
|
|
2423
|
-
const tmp = slotContent;
|
|
2424
|
-
slotContent = slotContent.nextSibling;
|
|
2425
|
-
tmp.remove();
|
|
2426
|
-
}
|
|
2427
|
-
if (node["s-sn"] === "") {
|
|
2428
|
-
const textNode = this.ownerDocument.createTextNode(value);
|
|
2429
|
-
textNode["s-sn"] = "";
|
|
2430
|
-
insertBefore(node.parentElement, textNode, node.nextSibling);
|
|
2431
|
-
} else {
|
|
2432
|
-
node.remove();
|
|
2433
|
-
}
|
|
2434
|
-
});
|
|
2435
|
-
}
|
|
2436
|
-
});
|
|
2437
|
-
} else {
|
|
2438
|
-
Object.defineProperty(hostElementPrototype, "textContent", {
|
|
2439
|
-
get() {
|
|
2440
|
-
var _a;
|
|
2441
|
-
const slotNode = getHostSlotNode(this.childNodes, "", this.tagName);
|
|
2442
|
-
if (((_a = slotNode == null ? void 0 : slotNode.nextSibling) == null ? void 0 : _a.nodeType) === 3 /* TEXT_NODE */) {
|
|
2443
|
-
return slotNode.nextSibling.textContent;
|
|
2444
|
-
} else if (slotNode) {
|
|
2445
|
-
return slotNode.textContent;
|
|
2446
|
-
} else {
|
|
2447
|
-
return this.__textContent;
|
|
2448
|
-
}
|
|
2449
|
-
},
|
|
2450
|
-
set(value) {
|
|
2451
|
-
var _a;
|
|
2452
|
-
const slotNode = getHostSlotNode(this.childNodes, "", this.tagName);
|
|
2453
|
-
if (((_a = slotNode == null ? void 0 : slotNode.nextSibling) == null ? void 0 : _a.nodeType) === 3 /* TEXT_NODE */) {
|
|
2454
|
-
slotNode.nextSibling.textContent = value;
|
|
2455
|
-
} else if (slotNode) {
|
|
2456
|
-
slotNode.textContent = value;
|
|
2457
|
-
} else {
|
|
2458
|
-
this.__textContent = value;
|
|
2459
|
-
const contentRefElm = this["s-cr"];
|
|
2460
|
-
if (contentRefElm) {
|
|
2461
|
-
insertBefore(this, contentRefElm, this.firstChild);
|
|
2462
|
-
}
|
|
2463
|
-
}
|
|
2464
|
-
}
|
|
2465
|
-
});
|
|
2466
|
-
}
|
|
2467
|
-
};
|
|
2468
|
-
var patchChildSlotNodes = (elm, cmpMeta) => {
|
|
2469
|
-
class FakeNodeList extends Array {
|
|
2470
|
-
item(n) {
|
|
2471
|
-
return this[n];
|
|
2472
|
-
}
|
|
2473
|
-
}
|
|
2474
|
-
if (cmpMeta.$flags$ & 8 /* needsShadowDomShim */) {
|
|
2475
|
-
const childNodesFn = elm.__lookupGetter__("childNodes");
|
|
2476
|
-
Object.defineProperty(elm, "children", {
|
|
2477
|
-
get() {
|
|
2478
|
-
return this.childNodes.map((n) => n.nodeType === 1);
|
|
2479
|
-
}
|
|
2480
|
-
});
|
|
2481
|
-
Object.defineProperty(elm, "childElementCount", {
|
|
2482
|
-
get() {
|
|
2483
|
-
return elm.children.length;
|
|
2484
|
-
}
|
|
2485
|
-
});
|
|
2486
|
-
Object.defineProperty(elm, "childNodes", {
|
|
2487
|
-
get() {
|
|
2488
|
-
const childNodes = childNodesFn.call(this);
|
|
2489
|
-
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0 && getHostRef(this).$flags$ & 2 /* hasRendered */) {
|
|
2490
|
-
const result = new FakeNodeList();
|
|
2491
|
-
for (let i2 = 0; i2 < childNodes.length; i2++) {
|
|
2492
|
-
const slot = childNodes[i2]["s-nr"];
|
|
2493
|
-
if (slot) {
|
|
2494
|
-
result.push(slot);
|
|
2495
|
-
}
|
|
2496
|
-
}
|
|
2497
|
-
return result;
|
|
2498
|
-
}
|
|
2499
|
-
return FakeNodeList.from(childNodes);
|
|
2500
|
-
}
|
|
2501
|
-
});
|
|
2502
|
-
}
|
|
2503
|
-
};
|
|
2504
|
-
var getAllChildSlotNodes = (childNodes) => {
|
|
2505
|
-
const slotRefNodes = [];
|
|
2506
|
-
for (const childNode of Array.from(childNodes)) {
|
|
2507
|
-
if (childNode["s-sr"]) {
|
|
2508
|
-
slotRefNodes.push(childNode);
|
|
2509
|
-
}
|
|
2510
|
-
slotRefNodes.push(...getAllChildSlotNodes(childNode.childNodes));
|
|
2511
|
-
}
|
|
2512
|
-
return slotRefNodes;
|
|
2513
|
-
};
|
|
2514
|
-
var getSlotName = (node) => node["s-sn"] || node.nodeType === 1 && node.getAttribute("slot") || "";
|
|
2515
|
-
var getHostSlotNode = (childNodes, slotName, hostName) => {
|
|
2516
|
-
let i2 = 0;
|
|
2517
|
-
let childNode;
|
|
2518
|
-
for (; i2 < childNodes.length; i2++) {
|
|
2519
|
-
childNode = childNodes[i2];
|
|
2520
|
-
if (childNode["s-sr"] && childNode["s-sn"] === slotName && childNode["s-hn"] === hostName) {
|
|
2521
|
-
return childNode;
|
|
2522
|
-
}
|
|
2523
|
-
childNode = getHostSlotNode(childNode.childNodes, slotName, hostName);
|
|
2524
|
-
if (childNode) {
|
|
2525
|
-
return childNode;
|
|
2526
|
-
}
|
|
2527
|
-
}
|
|
2528
|
-
return null;
|
|
2529
|
-
};
|
|
2530
|
-
var getHostSlotChildNodes = (n, slotName) => {
|
|
2531
|
-
const childNodes = [n];
|
|
2532
|
-
while ((n = n.nextSibling) && n["s-sn"] === slotName) {
|
|
2533
|
-
childNodes.push(n);
|
|
2534
|
-
}
|
|
2535
|
-
return childNodes;
|
|
2536
|
-
};
|
|
2537
|
-
|
|
2538
|
-
// src/runtime/bootstrap-custom-element.ts
|
|
2539
|
-
var defineCustomElement = (Cstr, compactMeta) => {
|
|
2540
|
-
customElements.define(compactMeta[1], proxyCustomElement(Cstr, compactMeta));
|
|
2541
|
-
};
|
|
2542
|
-
var proxyCustomElement = (Cstr, compactMeta) => {
|
|
2543
|
-
const cmpMeta = {
|
|
2544
|
-
$flags$: compactMeta[0],
|
|
2545
|
-
$tagName$: compactMeta[1]
|
|
2546
|
-
};
|
|
2547
|
-
if (BUILD.member) {
|
|
2548
|
-
cmpMeta.$members$ = compactMeta[2];
|
|
2549
|
-
}
|
|
2550
|
-
if (BUILD.hostListener) {
|
|
2551
|
-
cmpMeta.$listeners$ = compactMeta[3];
|
|
2552
|
-
}
|
|
2553
|
-
if (BUILD.watchCallback) {
|
|
2554
|
-
cmpMeta.$watchers$ = Cstr.$watchers$;
|
|
2555
|
-
}
|
|
2556
|
-
if (BUILD.reflect) {
|
|
2557
|
-
cmpMeta.$attrsToReflect$ = [];
|
|
2558
|
-
}
|
|
2559
|
-
if (BUILD.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
2560
|
-
cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
|
|
2561
|
-
}
|
|
2562
|
-
if (BUILD.experimentalSlotFixes) {
|
|
2563
|
-
if (BUILD.scoped && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
2564
|
-
patchPseudoShadowDom(Cstr.prototype, cmpMeta);
|
|
2565
|
-
}
|
|
2566
|
-
} else {
|
|
2567
|
-
if (BUILD.slotChildNodesFix) {
|
|
2568
|
-
patchChildSlotNodes(Cstr.prototype, cmpMeta);
|
|
2569
|
-
}
|
|
2570
|
-
if (BUILD.cloneNodeFix) {
|
|
2571
|
-
patchCloneNode(Cstr.prototype);
|
|
2572
|
-
}
|
|
2573
|
-
if (BUILD.appendChildSlotFix) {
|
|
2574
|
-
patchSlotAppendChild(Cstr.prototype);
|
|
2575
|
-
}
|
|
2576
|
-
if (BUILD.scopedSlotTextContentFix && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
2577
|
-
patchTextContent(Cstr.prototype);
|
|
2578
|
-
}
|
|
2579
|
-
}
|
|
2580
|
-
const originalConnectedCallback = Cstr.prototype.connectedCallback;
|
|
2581
|
-
const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;
|
|
2582
|
-
Object.assign(Cstr.prototype, {
|
|
2583
|
-
__registerHost() {
|
|
2584
|
-
registerHost(this, cmpMeta);
|
|
2585
|
-
},
|
|
2586
|
-
connectedCallback() {
|
|
2587
|
-
const hostRef = getHostRef(this);
|
|
2588
|
-
addHostEventListeners(this, hostRef, cmpMeta.$listeners$, false);
|
|
2589
|
-
connectedCallback(this);
|
|
2590
|
-
if (BUILD.connectedCallback && originalConnectedCallback) {
|
|
2591
|
-
originalConnectedCallback.call(this);
|
|
2592
|
-
}
|
|
2593
|
-
},
|
|
2594
|
-
disconnectedCallback() {
|
|
2595
|
-
disconnectedCallback(this);
|
|
2596
|
-
if (BUILD.disconnectedCallback && originalDisconnectedCallback) {
|
|
2597
|
-
originalDisconnectedCallback.call(this);
|
|
2598
|
-
}
|
|
2599
|
-
},
|
|
2600
|
-
__attachShadow() {
|
|
2601
|
-
if (supportsShadow) {
|
|
2602
|
-
if (!this.shadowRoot) {
|
|
2603
|
-
if (BUILD.shadowDelegatesFocus) {
|
|
2604
|
-
this.attachShadow({
|
|
2605
|
-
mode: "open",
|
|
2606
|
-
delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
|
|
2607
|
-
});
|
|
2608
|
-
} else {
|
|
2609
|
-
this.attachShadow({ mode: "open" });
|
|
2610
|
-
}
|
|
2611
|
-
} else {
|
|
2612
|
-
if (this.shadowRoot.mode !== "open") {
|
|
2613
|
-
throw new Error(
|
|
2614
|
-
`Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`
|
|
2615
|
-
);
|
|
2616
|
-
}
|
|
2617
|
-
}
|
|
2618
|
-
} else {
|
|
2619
|
-
this.shadowRoot = this;
|
|
2620
|
-
}
|
|
2621
|
-
}
|
|
2622
|
-
});
|
|
2623
|
-
Cstr.is = cmpMeta.$tagName$;
|
|
2624
|
-
return proxyComponent(Cstr, cmpMeta, 1 /* isElementConstructor */ | 2 /* proxyState */);
|
|
2625
|
-
};
|
|
2626
|
-
var forceModeUpdate = (elm) => {
|
|
2627
|
-
if (BUILD.style && BUILD.mode && !BUILD.lazyLoad) {
|
|
2628
|
-
const mode = computeMode(elm);
|
|
2629
|
-
const hostRef = getHostRef(elm);
|
|
2630
|
-
if (hostRef.$modeName$ !== mode) {
|
|
2631
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
2632
|
-
const oldScopeId = elm["s-sc"];
|
|
2633
|
-
const scopeId2 = getScopeId(cmpMeta, mode);
|
|
2634
|
-
const style = elm.constructor.style[mode];
|
|
2635
|
-
const flags = cmpMeta.$flags$;
|
|
2636
|
-
if (style) {
|
|
2637
|
-
if (!styles.has(scopeId2)) {
|
|
2638
|
-
registerStyle(scopeId2, style, !!(flags & 1 /* shadowDomEncapsulation */));
|
|
2639
|
-
}
|
|
2640
|
-
hostRef.$modeName$ = mode;
|
|
2641
|
-
elm.classList.remove(oldScopeId + "-h", oldScopeId + "-s");
|
|
2642
|
-
attachStyles(hostRef);
|
|
2643
|
-
forceUpdate(elm);
|
|
2644
|
-
}
|
|
2645
|
-
}
|
|
2646
|
-
}
|
|
2647
|
-
};
|
|
2648
|
-
|
|
2649
|
-
// src/runtime/hmr-component.ts
|
|
2650
|
-
var hmrStart = (hostElement, cmpMeta, hmrVersionId) => {
|
|
2651
|
-
const hostRef = getHostRef(hostElement);
|
|
2652
|
-
hostRef.$flags$ = 1 /* hasConnected */;
|
|
2653
|
-
initializeComponent(hostElement, hostRef, cmpMeta, hmrVersionId);
|
|
2654
|
-
};
|
|
2655
2029
|
|
|
2656
2030
|
// src/runtime/bootstrap-lazy.ts
|
|
2657
2031
|
var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
2658
2032
|
var _a;
|
|
2659
|
-
|
|
2660
|
-
performance.mark("st:app:start");
|
|
2661
|
-
}
|
|
2662
|
-
installDevTools();
|
|
2663
|
-
const endBootstrap = createTime("bootstrapLazy");
|
|
2033
|
+
const endBootstrap = createTime();
|
|
2664
2034
|
const cmpTags = [];
|
|
2665
2035
|
const exclude = options.exclude || [];
|
|
2666
2036
|
const customElements2 = win.customElements;
|
|
@@ -2672,12 +2042,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2672
2042
|
let isBootstrapping = true;
|
|
2673
2043
|
Object.assign(plt, options);
|
|
2674
2044
|
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", doc.baseURI).href;
|
|
2675
|
-
|
|
2676
|
-
if (options.syncQueue) {
|
|
2677
|
-
plt.$flags$ |= 4 /* queueSync */;
|
|
2678
|
-
}
|
|
2679
|
-
}
|
|
2680
|
-
if (BUILD.hydrateClientSide) {
|
|
2045
|
+
{
|
|
2681
2046
|
plt.$flags$ |= 2 /* appLoaded */;
|
|
2682
2047
|
}
|
|
2683
2048
|
let hasSlotRelocation = false;
|
|
@@ -2693,22 +2058,19 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2693
2058
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
2694
2059
|
hasSlotRelocation = true;
|
|
2695
2060
|
}
|
|
2696
|
-
|
|
2061
|
+
{
|
|
2697
2062
|
cmpMeta.$members$ = compactMeta[2];
|
|
2698
2063
|
}
|
|
2699
|
-
|
|
2064
|
+
{
|
|
2700
2065
|
cmpMeta.$listeners$ = compactMeta[3];
|
|
2701
2066
|
}
|
|
2702
|
-
|
|
2067
|
+
{
|
|
2703
2068
|
cmpMeta.$attrsToReflect$ = [];
|
|
2704
2069
|
}
|
|
2705
|
-
|
|
2070
|
+
{
|
|
2706
2071
|
cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
|
|
2707
2072
|
}
|
|
2708
|
-
|
|
2709
|
-
cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
|
|
2710
|
-
}
|
|
2711
|
-
const tagName = BUILD.transformTagName && options.transformTagName ? options.transformTagName(cmpMeta.$tagName$) : cmpMeta.$tagName$;
|
|
2073
|
+
const tagName = cmpMeta.$tagName$;
|
|
2712
2074
|
const HostElement = class extends HTMLElement {
|
|
2713
2075
|
// StencilLazyHost
|
|
2714
2076
|
constructor(self) {
|
|
@@ -2716,15 +2078,10 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2716
2078
|
this.hasRegisteredEventListeners = false;
|
|
2717
2079
|
self = this;
|
|
2718
2080
|
registerHost(self, cmpMeta);
|
|
2719
|
-
if (
|
|
2720
|
-
|
|
2081
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
2082
|
+
{
|
|
2721
2083
|
if (!self.shadowRoot) {
|
|
2722
|
-
|
|
2723
|
-
self.attachShadow({
|
|
2724
|
-
mode: "open",
|
|
2725
|
-
delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
|
|
2726
|
-
});
|
|
2727
|
-
} else {
|
|
2084
|
+
{
|
|
2728
2085
|
self.attachShadow({ mode: "open" });
|
|
2729
2086
|
}
|
|
2730
2087
|
} else {
|
|
@@ -2734,8 +2091,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2734
2091
|
);
|
|
2735
2092
|
}
|
|
2736
2093
|
}
|
|
2737
|
-
} else if (!BUILD.hydrateServerSide && !("shadowRoot" in self)) {
|
|
2738
|
-
self.shadowRoot = self;
|
|
2739
2094
|
}
|
|
2740
2095
|
}
|
|
2741
2096
|
}
|
|
@@ -2743,7 +2098,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2743
2098
|
const hostRef = getHostRef(this);
|
|
2744
2099
|
if (!this.hasRegisteredEventListeners) {
|
|
2745
2100
|
this.hasRegisteredEventListeners = true;
|
|
2746
|
-
addHostEventListeners(this, hostRef, cmpMeta.$listeners
|
|
2101
|
+
addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
|
|
2747
2102
|
}
|
|
2748
2103
|
if (appLoadFallback) {
|
|
2749
2104
|
clearTimeout(appLoadFallback);
|
|
@@ -2762,32 +2117,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2762
2117
|
return getHostRef(this).$onReadyPromise$;
|
|
2763
2118
|
}
|
|
2764
2119
|
};
|
|
2765
|
-
if (BUILD.experimentalSlotFixes) {
|
|
2766
|
-
if (BUILD.scoped && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
2767
|
-
patchPseudoShadowDom(HostElement.prototype, cmpMeta);
|
|
2768
|
-
}
|
|
2769
|
-
} else {
|
|
2770
|
-
if (BUILD.slotChildNodesFix) {
|
|
2771
|
-
patchChildSlotNodes(HostElement.prototype, cmpMeta);
|
|
2772
|
-
}
|
|
2773
|
-
if (BUILD.cloneNodeFix) {
|
|
2774
|
-
patchCloneNode(HostElement.prototype);
|
|
2775
|
-
}
|
|
2776
|
-
if (BUILD.appendChildSlotFix) {
|
|
2777
|
-
patchSlotAppendChild(HostElement.prototype);
|
|
2778
|
-
}
|
|
2779
|
-
if (BUILD.scopedSlotTextContentFix && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
2780
|
-
patchTextContent(HostElement.prototype);
|
|
2781
|
-
}
|
|
2782
|
-
}
|
|
2783
|
-
if (BUILD.formAssociated && cmpMeta.$flags$ & 64 /* formAssociated */) {
|
|
2784
|
-
HostElement.formAssociated = true;
|
|
2785
|
-
}
|
|
2786
|
-
if (BUILD.hotModuleReplacement) {
|
|
2787
|
-
HostElement.prototype["s-hmr"] = function(hmrVersionId) {
|
|
2788
|
-
hmrStart(this, cmpMeta, hmrVersionId);
|
|
2789
|
-
};
|
|
2790
|
-
}
|
|
2791
2120
|
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
2792
2121
|
if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
|
|
2793
2122
|
cmpTags.push(tagName);
|
|
@@ -2802,7 +2131,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2802
2131
|
if (hasSlotRelocation) {
|
|
2803
2132
|
dataStyles.textContent += SLOT_FB_CSS;
|
|
2804
2133
|
}
|
|
2805
|
-
|
|
2134
|
+
{
|
|
2806
2135
|
dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
|
|
2807
2136
|
}
|
|
2808
2137
|
if (dataStyles.innerHTML.length) {
|
|
@@ -2818,28 +2147,16 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2818
2147
|
if (deferredConnectedCallbacks.length) {
|
|
2819
2148
|
deferredConnectedCallbacks.map((host) => host.connectedCallback());
|
|
2820
2149
|
} else {
|
|
2821
|
-
|
|
2822
|
-
plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30, "timeout"));
|
|
2823
|
-
} else {
|
|
2150
|
+
{
|
|
2824
2151
|
plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
|
|
2825
2152
|
}
|
|
2826
2153
|
}
|
|
2827
2154
|
endBootstrap();
|
|
2828
2155
|
};
|
|
2829
|
-
|
|
2830
|
-
// src/runtime/fragment.ts
|
|
2831
|
-
var Fragment = (_, children) => children;
|
|
2832
2156
|
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
2833
|
-
if (
|
|
2834
|
-
if (BUILD.hostListenerTargetParent) {
|
|
2835
|
-
if (attachParentListeners) {
|
|
2836
|
-
listeners = listeners.filter(([flags]) => flags & 32 /* TargetParent */);
|
|
2837
|
-
} else {
|
|
2838
|
-
listeners = listeners.filter(([flags]) => !(flags & 32 /* TargetParent */));
|
|
2839
|
-
}
|
|
2840
|
-
}
|
|
2157
|
+
if (listeners) {
|
|
2841
2158
|
listeners.map(([flags, name, method]) => {
|
|
2842
|
-
const target =
|
|
2159
|
+
const target = getHostListenerTarget(elm, flags) ;
|
|
2843
2160
|
const handler = hostListenerProxy(hostRef, method);
|
|
2844
2161
|
const opts = hostListenerOpts(flags);
|
|
2845
2162
|
plt.ael(target, name, handler, opts);
|
|
@@ -2850,25 +2167,20 @@ var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) =>
|
|
|
2850
2167
|
var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
2851
2168
|
var _a;
|
|
2852
2169
|
try {
|
|
2853
|
-
|
|
2170
|
+
{
|
|
2854
2171
|
if (hostRef.$flags$ & 256 /* isListenReady */) {
|
|
2855
2172
|
(_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
|
|
2856
2173
|
} else {
|
|
2857
2174
|
(hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
|
|
2858
2175
|
}
|
|
2859
|
-
} else {
|
|
2860
|
-
hostRef.$hostElement$[methodName](ev);
|
|
2861
2176
|
}
|
|
2862
2177
|
} catch (e) {
|
|
2863
2178
|
consoleError(e);
|
|
2864
2179
|
}
|
|
2865
2180
|
};
|
|
2866
2181
|
var getHostListenerTarget = (elm, flags) => {
|
|
2867
|
-
if (
|
|
2868
|
-
if (
|
|
2869
|
-
if (BUILD.hostListenerTargetBody && flags & 16 /* TargetBody */) return doc.body;
|
|
2870
|
-
if (BUILD.hostListenerTargetParent && flags & 32 /* TargetParent */ && elm.parentElement)
|
|
2871
|
-
return elm.parentElement;
|
|
2182
|
+
if (flags & 8 /* TargetWindow */) return win;
|
|
2183
|
+
if (flags & 16 /* TargetBody */) return doc.body;
|
|
2872
2184
|
return elm;
|
|
2873
2185
|
};
|
|
2874
2186
|
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
@@ -2879,145 +2191,4 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
|
2879
2191
|
// src/runtime/nonce.ts
|
|
2880
2192
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
2881
2193
|
|
|
2882
|
-
|
|
2883
|
-
var setPlatformOptions = (opts) => Object.assign(plt, opts);
|
|
2884
|
-
|
|
2885
|
-
// src/runtime/vdom/vdom-annotations.ts
|
|
2886
|
-
var insertVdomAnnotations = (doc2, staticComponents) => {
|
|
2887
|
-
if (doc2 != null) {
|
|
2888
|
-
const docData = {
|
|
2889
|
-
hostIds: 0,
|
|
2890
|
-
rootLevelIds: 0,
|
|
2891
|
-
staticComponents: new Set(staticComponents)
|
|
2892
|
-
};
|
|
2893
|
-
const orgLocationNodes = [];
|
|
2894
|
-
parseVNodeAnnotations(doc2, doc2.body, docData, orgLocationNodes);
|
|
2895
|
-
orgLocationNodes.forEach((orgLocationNode) => {
|
|
2896
|
-
var _a;
|
|
2897
|
-
if (orgLocationNode != null && orgLocationNode["s-nr"]) {
|
|
2898
|
-
const nodeRef = orgLocationNode["s-nr"];
|
|
2899
|
-
let hostId = nodeRef["s-host-id"];
|
|
2900
|
-
let nodeId = nodeRef["s-node-id"];
|
|
2901
|
-
let childId = `${hostId}.${nodeId}`;
|
|
2902
|
-
if (hostId == null) {
|
|
2903
|
-
hostId = 0;
|
|
2904
|
-
docData.rootLevelIds++;
|
|
2905
|
-
nodeId = docData.rootLevelIds;
|
|
2906
|
-
childId = `${hostId}.${nodeId}`;
|
|
2907
|
-
if (nodeRef.nodeType === 1 /* ElementNode */) {
|
|
2908
|
-
nodeRef.setAttribute(HYDRATE_CHILD_ID, childId);
|
|
2909
|
-
} else if (nodeRef.nodeType === 3 /* TextNode */) {
|
|
2910
|
-
if (hostId === 0) {
|
|
2911
|
-
const textContent = (_a = nodeRef.nodeValue) == null ? void 0 : _a.trim();
|
|
2912
|
-
if (textContent === "") {
|
|
2913
|
-
orgLocationNode.remove();
|
|
2914
|
-
return;
|
|
2915
|
-
}
|
|
2916
|
-
}
|
|
2917
|
-
const commentBeforeTextNode = doc2.createComment(childId);
|
|
2918
|
-
commentBeforeTextNode.nodeValue = `${TEXT_NODE_ID}.${childId}`;
|
|
2919
|
-
insertBefore(nodeRef.parentNode, commentBeforeTextNode, nodeRef);
|
|
2920
|
-
}
|
|
2921
|
-
}
|
|
2922
|
-
let orgLocationNodeId = `${ORG_LOCATION_ID}.${childId}`;
|
|
2923
|
-
const orgLocationParentNode = orgLocationNode.parentElement;
|
|
2924
|
-
if (orgLocationParentNode) {
|
|
2925
|
-
if (orgLocationParentNode["s-en"] === "") {
|
|
2926
|
-
orgLocationNodeId += `.`;
|
|
2927
|
-
} else if (orgLocationParentNode["s-en"] === "c") {
|
|
2928
|
-
orgLocationNodeId += `.c`;
|
|
2929
|
-
}
|
|
2930
|
-
}
|
|
2931
|
-
orgLocationNode.nodeValue = orgLocationNodeId;
|
|
2932
|
-
}
|
|
2933
|
-
});
|
|
2934
|
-
}
|
|
2935
|
-
};
|
|
2936
|
-
var parseVNodeAnnotations = (doc2, node, docData, orgLocationNodes) => {
|
|
2937
|
-
var _a;
|
|
2938
|
-
if (node == null) {
|
|
2939
|
-
return;
|
|
2940
|
-
}
|
|
2941
|
-
if (node["s-nr"] != null) {
|
|
2942
|
-
orgLocationNodes.push(node);
|
|
2943
|
-
}
|
|
2944
|
-
if (node.nodeType === 1 /* ElementNode */) {
|
|
2945
|
-
const childNodes = [...Array.from(node.childNodes), ...Array.from(((_a = node.shadowRoot) == null ? void 0 : _a.childNodes) || [])];
|
|
2946
|
-
childNodes.forEach((childNode) => {
|
|
2947
|
-
const hostRef = getHostRef(childNode);
|
|
2948
|
-
if (hostRef != null && !docData.staticComponents.has(childNode.nodeName.toLowerCase())) {
|
|
2949
|
-
const cmpData = {
|
|
2950
|
-
nodeIds: 0
|
|
2951
|
-
};
|
|
2952
|
-
insertVNodeAnnotations(doc2, childNode, hostRef.$vnode$, docData, cmpData);
|
|
2953
|
-
}
|
|
2954
|
-
parseVNodeAnnotations(doc2, childNode, docData, orgLocationNodes);
|
|
2955
|
-
});
|
|
2956
|
-
}
|
|
2957
|
-
};
|
|
2958
|
-
var insertVNodeAnnotations = (doc2, hostElm, vnode, docData, cmpData) => {
|
|
2959
|
-
if (vnode != null) {
|
|
2960
|
-
const hostId = ++docData.hostIds;
|
|
2961
|
-
hostElm.setAttribute(HYDRATE_ID, hostId);
|
|
2962
|
-
if (hostElm["s-cr"] != null) {
|
|
2963
|
-
hostElm["s-cr"].nodeValue = `${CONTENT_REF_ID}.${hostId}`;
|
|
2964
|
-
}
|
|
2965
|
-
if (vnode.$children$ != null) {
|
|
2966
|
-
const depth = 0;
|
|
2967
|
-
vnode.$children$.forEach((vnodeChild, index) => {
|
|
2968
|
-
insertChildVNodeAnnotations(doc2, vnodeChild, cmpData, hostId, depth, index);
|
|
2969
|
-
});
|
|
2970
|
-
}
|
|
2971
|
-
if (hostElm && vnode && vnode.$elm$ && !hostElm.hasAttribute(HYDRATE_CHILD_ID)) {
|
|
2972
|
-
const parent = hostElm.parentElement;
|
|
2973
|
-
if (parent && parent.childNodes) {
|
|
2974
|
-
const parentChildNodes = Array.from(parent.childNodes);
|
|
2975
|
-
const comment = parentChildNodes.find(
|
|
2976
|
-
(node) => node.nodeType === 8 /* CommentNode */ && node["s-sr"]
|
|
2977
|
-
);
|
|
2978
|
-
if (comment) {
|
|
2979
|
-
const index = parentChildNodes.indexOf(hostElm) - 1;
|
|
2980
|
-
vnode.$elm$.setAttribute(
|
|
2981
|
-
HYDRATE_CHILD_ID,
|
|
2982
|
-
`${comment["s-host-id"]}.${comment["s-node-id"]}.0.${index}`
|
|
2983
|
-
);
|
|
2984
|
-
}
|
|
2985
|
-
}
|
|
2986
|
-
}
|
|
2987
|
-
}
|
|
2988
|
-
};
|
|
2989
|
-
var insertChildVNodeAnnotations = (doc2, vnodeChild, cmpData, hostId, depth, index) => {
|
|
2990
|
-
const childElm = vnodeChild.$elm$;
|
|
2991
|
-
if (childElm == null) {
|
|
2992
|
-
return;
|
|
2993
|
-
}
|
|
2994
|
-
const nodeId = cmpData.nodeIds++;
|
|
2995
|
-
const childId = `${hostId}.${nodeId}.${depth}.${index}`;
|
|
2996
|
-
childElm["s-host-id"] = hostId;
|
|
2997
|
-
childElm["s-node-id"] = nodeId;
|
|
2998
|
-
if (childElm.nodeType === 1 /* ElementNode */) {
|
|
2999
|
-
childElm.setAttribute(HYDRATE_CHILD_ID, childId);
|
|
3000
|
-
} else if (childElm.nodeType === 3 /* TextNode */) {
|
|
3001
|
-
const parentNode = childElm.parentNode;
|
|
3002
|
-
const nodeName = parentNode == null ? void 0 : parentNode.nodeName;
|
|
3003
|
-
if (nodeName !== "STYLE" && nodeName !== "SCRIPT") {
|
|
3004
|
-
const textNodeId = `${TEXT_NODE_ID}.${childId}`;
|
|
3005
|
-
const commentBeforeTextNode = doc2.createComment(textNodeId);
|
|
3006
|
-
insertBefore(parentNode, commentBeforeTextNode, childElm);
|
|
3007
|
-
}
|
|
3008
|
-
} else if (childElm.nodeType === 8 /* CommentNode */) {
|
|
3009
|
-
if (childElm["s-sr"]) {
|
|
3010
|
-
const slotName = childElm["s-sn"] || "";
|
|
3011
|
-
const slotNodeId = `${SLOT_NODE_ID}.${childId}.${slotName}`;
|
|
3012
|
-
childElm.nodeValue = slotNodeId;
|
|
3013
|
-
}
|
|
3014
|
-
}
|
|
3015
|
-
if (vnodeChild.$children$ != null) {
|
|
3016
|
-
const childDepth = depth + 1;
|
|
3017
|
-
vnodeChild.$children$.forEach((vnode, index2) => {
|
|
3018
|
-
insertChildVNodeAnnotations(doc2, vnode, cmpData, hostId, childDepth, index2);
|
|
3019
|
-
});
|
|
3020
|
-
}
|
|
3021
|
-
};
|
|
3022
|
-
|
|
3023
|
-
export { BUILD as B, H, NAMESPACE as N, createEvent as a, bootstrapLazy as b, consoleDevInfo as c, doc as d, Host as e, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
|
2194
|
+
export { Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|