@ebrains/components 0.9.0-beta → 0.9.2-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/LICENSE +21 -0
- package/README.md +9 -0
- package/dist/{collection/utils/analytics.js → components/analytics-e29fcd53.js} +8 -6
- package/dist/components/{color.js → color-47266964.js} +1 -1
- package/dist/{collection/eds-docs-ui/colors/color-palette/primary.js → components/color-primary-palette.entry.js} +8 -8
- package/dist/{collection/eds-docs-ui/colors/color-palette/secondary.js → components/color-secondary-palette.entry.js} +8 -29
- package/dist/{collection/eds-docs-ui/colors/color-palette/support.js → components/color-support-palette.entry.js} +8 -8
- package/dist/{esm → components}/components-section.entry.js +1 -1
- package/dist/components/components.esm.js +47 -1
- package/dist/{esm → components}/correct-use-of-colors.entry.js +1 -1
- package/dist/{esm → components}/docs-palettes.entry.js +1 -1
- package/dist/{esm → components}/docs-tokens.entry.js +1 -1
- package/dist/{esm → components}/eds-accordion.entry.js +7 -8
- package/dist/{esm → components}/eds-alert.entry.js +3 -4
- package/dist/{esm → components}/eds-app-root.entry.js +1 -1
- package/dist/components/{eds-avatar2.js → eds-avatar.entry.js} +9 -36
- package/dist/components/eds-block-break.entry.js +16 -0
- package/dist/{esm → components}/eds-breadcrumb.entry.js +17 -12
- package/dist/components/{eds-button2.js → eds-button.entry.js} +10 -46
- package/dist/components/{eds-card-desc2.js → eds-card-desc.entry.js} +7 -28
- package/dist/{esm → components}/eds-card-generic.entry.js +6 -7
- package/dist/{esm → components}/eds-card-project.entry.js +4 -4
- package/dist/{esm → components}/eds-card-section.entry.js +3 -4
- package/dist/{esm → components}/eds-card-tags.entry.js +2 -3
- package/dist/components/{eds-card-title2.js → eds-card-title.entry.js} +7 -30
- package/dist/{esm → components}/eds-card-tool.entry.js +3 -4
- package/dist/{esm → components}/eds-card-wrapper.entry.js +1 -1
- package/dist/{esm → components}/eds-code-block.entry.js +34 -4
- package/dist/{esm → components}/eds-cookies-preference.entry.js +2 -3
- package/dist/components/{eds-dropdown2.js → eds-dropdown.entry.js} +9 -48
- package/dist/{esm → components}/eds-feedback.entry.js +3 -4
- package/dist/components/{eds-footer2.js → eds-footer.entry.js} +7 -60
- package/dist/components/{eds-form.js → eds-form.entry.js} +66 -100
- package/dist/{esm → components}/eds-frame.entry.js +2 -3
- package/dist/components/{eds-fullscreen-menu.js → eds-fullscreen-menu.entry.js} +8 -81
- package/dist/components/{eds-header.js → eds-header.entry.js} +9 -60
- package/dist/{esm → components}/eds-icon-arrow-diagonal.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-arrow-right.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-bluesky.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-bookmark.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-chevron-down.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-chevron-left.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-chevron-right.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-chevron-up.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-close.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-copy.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-eu.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-external.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-facebook.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-gitlab.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-linkedin.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-loader.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-mastodon.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-menu.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-minus.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-more.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-paper.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-plus.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-portal.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-private.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-public.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-search.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-star.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-success.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-thumbs-down.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-thumbs-up.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-tutorial.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-twitter.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-unknown.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-updown.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-user.entry.js +2 -2
- package/dist/components/{eds-icon-wrapper2.js → eds-icon-wrapper.entry.js} +6 -26
- package/dist/{esm → components}/eds-icon-youtube.entry.js +2 -2
- package/dist/components/{eds-img2.js → eds-img.entry.js} +8 -36
- package/dist/components/{eds-input-field2.js → eds-input-field.entry.js} +8 -86
- package/dist/components/eds-input-footer.entry.js +17 -0
- package/dist/components/eds-input-label.entry.js +16 -0
- package/dist/components/{eds-input-range2.js → eds-input-range.entry.js} +7 -34
- package/dist/components/{eds-input-search2.js → eds-input-search.entry.js} +8 -38
- package/dist/components/{eds-input-select2.js → eds-input-select.entry.js} +7 -46
- package/dist/components/{eds-input2.js → eds-input.entry.js} +7 -46
- package/dist/components/{eds-link2.js → eds-link.entry.js} +11 -48
- package/dist/components/{eds-login2.js → eds-login.entry.js} +17 -41
- package/dist/components/{eds-logo2.js → eds-logo.entry.js} +10 -32
- package/dist/{esm → components}/eds-matomo-notice.entry.js +8 -9
- package/dist/{esm → components}/eds-modal.entry.js +8 -9
- package/dist/components/{eds-pagination2.js → eds-pagination.entry.js} +8 -51
- package/dist/{esm → components}/eds-progress-bar.entry.js +2 -3
- package/dist/{esm → components}/eds-rating.entry.js +2 -3
- package/dist/components/eds-section-core.entry.js +19 -0
- package/dist/{esm/eds-section-core_2.entry.js → components/eds-section-heading.entry.js} +4 -21
- package/dist/components/{eds-social-networks2.js → eds-social-networks.entry.js} +9 -39
- package/dist/{esm → components}/eds-spinner.entry.js +2 -3
- package/dist/components/{eds-splash-screen2.js → eds-splash-screen.entry.js} +7 -41
- package/dist/components/{eds-steps-v2.js → eds-steps-v2.entry.js} +9 -55
- package/dist/components/{eds-steps2.js → eds-steps.entry.js} +9 -43
- package/dist/{esm → components}/eds-switch.entry.js +4 -5
- package/dist/components/{eds-table2.js → eds-table.entry.js} +10 -105
- package/dist/{esm → components}/eds-tabs.entry.js +10 -11
- package/dist/components/eds-tag.entry.js +44 -0
- package/dist/{esm → components}/eds-timeline.entry.js +4 -5
- package/dist/{esm → components}/eds-toast-manager.entry.js +3 -4
- package/dist/{esm → components}/eds-toast.entry.js +3 -4
- package/dist/{esm → components}/eds-tooltip.entry.js +3 -4
- package/dist/{esm → components}/eds-trl.entry.js +1 -1
- package/dist/components/{eds-user.js → eds-user.entry.js} +9 -60
- package/dist/{collection/eds-docs-ui/colors/gradient-palette/primary.js → components/gradient-primary-palette.entry.js} +8 -8
- package/dist/{collection/eds-docs-ui/colors/gradient-palette/secondary.js → components/gradient-secondary-palette.entry.js} +8 -8
- package/dist/{collection/eds-docs-ui/colors/gradient-palette/support.js → components/gradient-support-palette.entry.js} +8 -8
- package/dist/{esm → components}/incorrect-use-of-colors.entry.js +1 -1
- package/dist/{cjs/logo-white-no-bg-4a0e0f4b.js → components/index-7281d120.js} +941 -10
- package/dist/{esm/index-8a71b9a7.js → components/index-9d277061.js} +1332 -511
- package/dist/components/index.esm.js +1 -0
- package/dist/{esm → components}/logo-space.entry.js +3 -4
- package/dist/components/{logo-variations-horizontal2.js → logo-variations-horizontal.entry.js} +7 -29
- package/dist/{esm → components}/logo-variations-tabs.entry.js +1 -1
- package/dist/components/{logo-variations-vertical2.js → logo-variations-vertical.entry.js} +7 -32
- package/dist/{esm → components}/logo-wrong-usage.entry.js +3 -4
- package/dist/components/shadow-css-423dab2c.js +332 -0
- package/dist/{collection/eds-docs-ui/svg-repository/svg-repository.js → components/svg-repository.entry.js} +14 -20
- package/dist/components/{token-list2.js → token-list.entry.js} +6 -34
- package/dist/{collection/eds-docs-ui/design-tokens/token-radii/token-radii.js → components/token-radii.entry.js} +18 -8
- package/dist/{esm → components}/token-ratios.entry.js +1 -1
- package/dist/{collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js → components/token-shadows.entry.js} +27 -8
- package/dist/{collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js → components/token-spacing.entry.js} +9 -7
- package/dist/{esm → components}/token-typography.entry.js +1 -1
- package/dist/types/components/eds-accordion/eds-accordion.d.ts +1 -1
- package/dist/types/components/eds-modal/eds-modal.d.ts +1 -1
- package/dist/types/components/eds-section/eds-section-heading/eds-section-heading.d.ts +3 -0
- package/dist/types/components/eds-switch/eds-switch.d.ts +1 -1
- package/dist/types/components/eds-tag/eds-tag.d.ts +5 -1
- package/dist/types/components/eds-tag/eds-tag.stories.d.ts +7 -0
- package/dist/types/components.d.ts +40 -64
- package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.d.ts +1 -1
- package/dist/types/shared-ui/eds-social-networks/eds-social-networks.d.ts +1 -1
- package/dist/types/shared-ui/eds-tabs/eds-tabs.d.ts +1 -1
- package/package.json +3 -3
- package/dist/cjs/analytics-d8fb3fdd.js +0 -60
- package/dist/cjs/app-globals-3a1e7e63.js +0 -5
- package/dist/cjs/arrow-diagonal-black-0eb8640e.js +0 -5
- package/dist/cjs/arrow-right-3e38e8a9.js +0 -7
- package/dist/cjs/bluesky-eb0d6051.js +0 -16
- package/dist/cjs/bookmark-c61853d9.js +0 -18
- package/dist/cjs/chevron-down-27344777.js +0 -14
- package/dist/cjs/chevron-left-6fc9c6ef.js +0 -13
- package/dist/cjs/chevron-right-6d95a117.js +0 -7
- package/dist/cjs/chevron-up-e37d7713.js +0 -14
- package/dist/cjs/close-51284af5.js +0 -7
- package/dist/cjs/color-c00146a8.js +0 -134
- package/dist/cjs/color-primary-palette_6.cjs.entry.js +0 -340
- package/dist/cjs/components-section.cjs.entry.js +0 -139
- package/dist/cjs/components.cjs.js +0 -25
- package/dist/cjs/copy-53102d0c.js +0 -7
- package/dist/cjs/correct-use-of-colors.cjs.entry.js +0 -68
- package/dist/cjs/docs-palettes.cjs.entry.js +0 -27
- package/dist/cjs/docs-tokens.cjs.entry.js +0 -35
- package/dist/cjs/eds-accordion.cjs.entry.js +0 -86
- package/dist/cjs/eds-alert.cjs.entry.js +0 -104
- package/dist/cjs/eds-app-root.cjs.entry.js +0 -37
- package/dist/cjs/eds-avatar_24.cjs.entry.js +0 -2100
- package/dist/cjs/eds-breadcrumb.cjs.entry.js +0 -139
- package/dist/cjs/eds-card-desc_3.cjs.entry.js +0 -113
- package/dist/cjs/eds-card-generic.cjs.entry.js +0 -92
- package/dist/cjs/eds-card-project.cjs.entry.js +0 -68
- package/dist/cjs/eds-card-section.cjs.entry.js +0 -39
- package/dist/cjs/eds-card-tags.cjs.entry.js +0 -22
- package/dist/cjs/eds-card-tool.cjs.entry.js +0 -79
- package/dist/cjs/eds-card-wrapper.cjs.entry.js +0 -32
- package/dist/cjs/eds-code-block.cjs.entry.js +0 -2489
- package/dist/cjs/eds-cookies-preference.cjs.entry.js +0 -39
- package/dist/cjs/eds-feedback.cjs.entry.js +0 -66
- package/dist/cjs/eds-frame.cjs.entry.js +0 -85
- package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-bluesky.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-bookmark.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-chevron-down.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-chevron-left.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-chevron-right.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-chevron-up.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-close.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-copy.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-eu.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-external.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-facebook.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-gitlab.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-linkedin.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-loader.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-mastodon.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-menu.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-minus.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-more.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-paper.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-plus.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-portal.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-private.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-public.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-search.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-star.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-success.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-thumbs-down.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-thumbs-up.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-tutorial.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-twitter.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-unknown.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-updown.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-user.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-youtube.cjs.entry.js +0 -18
- package/dist/cjs/eds-login_2.cjs.entry.js +0 -2100
- package/dist/cjs/eds-matomo-notice.cjs.entry.js +0 -123
- package/dist/cjs/eds-modal.cjs.entry.js +0 -109
- package/dist/cjs/eds-pagination_2.cjs.entry.js +0 -403
- package/dist/cjs/eds-progress-bar.cjs.entry.js +0 -29
- package/dist/cjs/eds-rating.cjs.entry.js +0 -64
- package/dist/cjs/eds-section-core_2.cjs.entry.js +0 -59
- package/dist/cjs/eds-spinner.cjs.entry.js +0 -54
- package/dist/cjs/eds-switch.cjs.entry.js +0 -38
- package/dist/cjs/eds-tabs.cjs.entry.js +0 -130
- package/dist/cjs/eds-timeline.cjs.entry.js +0 -63
- package/dist/cjs/eds-toast-manager.cjs.entry.js +0 -46
- package/dist/cjs/eds-toast.cjs.entry.js +0 -76
- package/dist/cjs/eds-tooltip.cjs.entry.js +0 -109
- package/dist/cjs/eds-trl.cjs.entry.js +0 -51
- package/dist/cjs/eu-b9665157.js +0 -32
- package/dist/cjs/facebook-7aa65e57.js +0 -16
- package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +0 -50
- package/dist/cjs/index-2f63169d.js +0 -2231
- package/dist/cjs/index-ab9fbefe.js +0 -48
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/linkedin-46b0dd56.js +0 -30
- package/dist/cjs/loader-72f9d178.js +0 -32
- package/dist/cjs/loader.cjs.js +0 -15
- package/dist/cjs/logo-color-6c787ac1.js +0 -117
- package/dist/cjs/logo-color-margins-b49c0f46.js +0 -120
- package/dist/cjs/logo-space.cjs.entry.js +0 -21
- package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +0 -36
- package/dist/cjs/logo-variations-tabs.cjs.entry.js +0 -27
- package/dist/cjs/logo-wrong-usage.cjs.entry.js +0 -21
- package/dist/cjs/mastodon-20c5bb7d.js +0 -16
- package/dist/cjs/menu-7050a6d1.js +0 -13
- package/dist/cjs/minus-1da6a98a.js +0 -13
- package/dist/cjs/mono-2f3cd653.js +0 -13
- package/dist/cjs/more-1d3dd8bc.js +0 -15
- package/dist/cjs/paper-0d6302f6.js +0 -17
- package/dist/cjs/plus-d0e00ad0.js +0 -14
- package/dist/cjs/portal-46212559.js +0 -20
- package/dist/cjs/private-38835fe7.js +0 -27
- package/dist/cjs/public-b519b1f6.js +0 -18
- package/dist/cjs/search-5533d877.js +0 -14
- package/dist/cjs/sharedUtils-8e287250.js +0 -21
- package/dist/cjs/star-942eee9f.js +0 -7
- package/dist/cjs/success-ef661a11.js +0 -20
- package/dist/cjs/svg-repository.cjs.entry.js +0 -337
- package/dist/cjs/thumbs-down-714036b1.js +0 -7
- package/dist/cjs/thumbs-up-411babb8.js +0 -8
- package/dist/cjs/toastManager-4e9535f3.js +0 -33
- package/dist/cjs/token-list_3.cjs.entry.js +0 -300
- package/dist/cjs/token-ratios.cjs.entry.js +0 -29
- package/dist/cjs/token-typography.cjs.entry.js +0 -230
- package/dist/cjs/tutotial-7855df3c.js +0 -29
- package/dist/cjs/twitter-73956e9a.js +0 -16
- package/dist/cjs/unknown-6814e551.js +0 -24
- package/dist/cjs/up-and-down-d71df67d.js +0 -14
- package/dist/cjs/user-a3c2230f.js +0 -18
- package/dist/cjs/youtube-c238a461.js +0 -16
- package/dist/collection/collection-manifest.json +0 -128
- package/dist/collection/components/eds-accordion/eds-accordion.css +0 -264
- package/dist/collection/components/eds-accordion/eds-accordion.js +0 -222
- package/dist/collection/components/eds-accordion/eds-accordion.stories.js +0 -87
- package/dist/collection/components/eds-alert/eds-alert.css +0 -739
- package/dist/collection/components/eds-alert/eds-alert.js +0 -230
- package/dist/collection/components/eds-alert/eds-alert.stories.js +0 -60
- package/dist/collection/components/eds-avatar/eds-avatar.css +0 -187
- package/dist/collection/components/eds-avatar/eds-avatar.js +0 -183
- package/dist/collection/components/eds-avatar/eds-avatar.stories.js +0 -40
- package/dist/collection/components/eds-block-break/eds-block-break.css +0 -49
- package/dist/collection/components/eds-block-break/eds-block-break.js +0 -51
- package/dist/collection/components/eds-breadcrump/eds-breadcrumb.css +0 -112
- package/dist/collection/components/eds-breadcrump/eds-breadcrumb.stories.js +0 -40
- package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +0 -206
- package/dist/collection/components/eds-button/eds-button.css +0 -8904
- package/dist/collection/components/eds-button/eds-button.js +0 -487
- package/dist/collection/components/eds-button/eds-button.stories.js +0 -47
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.css +0 -41
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.js +0 -113
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.css +0 -9
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.js +0 -63
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.css +0 -92
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.js +0 -169
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-wrapper/eds-card-wrapper.js +0 -86
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.css +0 -134
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +0 -338
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.stories.js +0 -133
- package/dist/collection/components/eds-cards/eds-card-project/eds-card-project.js +0 -228
- package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.css +0 -103
- package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.js +0 -314
- package/dist/collection/components/eds-code-block/eds-code-block.css +0 -204
- package/dist/collection/components/eds-code-block/eds-code-block.js +0 -141
- package/dist/collection/components/eds-code-block/eds-code-block.stories.js +0 -78
- package/dist/collection/components/eds-dropdown/eds-dropdown.css +0 -117
- package/dist/collection/components/eds-dropdown/eds-dropdown.js +0 -369
- package/dist/collection/components/eds-icon-wrapper/eds-icon-wrapper.js +0 -92
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-down/eds-icon-chevron-down.js +0 -36
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-left/eds-icon-chevron-left.js +0 -36
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-right/eds-icon-chevron-right.js +0 -36
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-up/eds-icon-chevron-up.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-arrow-diagonal/eds-icon-arrow-diagonal.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-arrow-right/eds-icon-arrow-right.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-bookmark/eds-icon-bookmark.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-close/eds-icon-close.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-copy/eds-icon-copy.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-eu/eds-icon-eu.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-external/eds-icon-external.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-loader/eds-icon-loader.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-menu/eds-icon-menu.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-minus/eds-icon-minus.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-more/eds-icon-more.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-paper/eds-icon-paper.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-plus/eds-icon-plus.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-portal/eds-icon-portal.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-private/eds-icon-private.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-public/eds-icon-public.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-search/eds-icon-search.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-star/eds-icon-star.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-success/eds-icon-success.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-thumbs-down/eds-icon-thumbs-down.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-thumbs-up/eds-icon-thumbs-up.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-tutorial/eds-icon-tutorial.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-unknown/eds-icon-unknown.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-updown/eds-icon-updown.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-user/eds-icon-user.js +0 -36
- package/dist/collection/components/eds-icons/social/eds-icon-bluesky/eds-icon-bluesky.js +0 -36
- package/dist/collection/components/eds-icons/social/eds-icon-facebook/eds-icon-facebook.js +0 -36
- package/dist/collection/components/eds-icons/social/eds-icon-linkedin/eds-icon-linkedin.js +0 -36
- package/dist/collection/components/eds-icons/social/eds-icon-mastodon/eds-icon-mastodon.js +0 -36
- package/dist/collection/components/eds-icons/social/eds-icon-twitter/eds-icon-twitter.js +0 -36
- package/dist/collection/components/eds-icons/social/eds-icon-youtube/eds-icon-youtube.js +0 -36
- package/dist/collection/components/eds-img/eds-img.css +0 -83
- package/dist/collection/components/eds-img/eds-img.js +0 -252
- package/dist/collection/components/eds-img/eds-img.stories.js +0 -101
- package/dist/collection/components/eds-input-elements/eds-input/eds-input.js +0 -317
- package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.js +0 -105
- package/dist/collection/components/eds-input-elements/eds-input-label/eds-input-label.js +0 -90
- package/dist/collection/components/eds-input-elements/eds-input-range/eds-input-range.js +0 -252
- package/dist/collection/components/eds-input-elements/eds-input-search/eds-input-search.js +0 -263
- package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +0 -343
- package/dist/collection/components/eds-input-field/eds-input-field.css +0 -7760
- package/dist/collection/components/eds-input-field/eds-input-field.js +0 -451
- package/dist/collection/components/eds-input-field/eds-input-field.stories.js +0 -206
- package/dist/collection/components/eds-link/eds-link.css +0 -7101
- package/dist/collection/components/eds-link/eds-link.js +0 -492
- package/dist/collection/components/eds-link/eds-link.stories.js +0 -86
- package/dist/collection/components/eds-logo/eds-logo.css +0 -47
- package/dist/collection/components/eds-logo/eds-logo.js +0 -169
- package/dist/collection/components/eds-logo/eds-logo.stories.js +0 -38
- package/dist/collection/components/eds-modal/eds-modal.css +0 -258
- package/dist/collection/components/eds-modal/eds-modal.js +0 -276
- package/dist/collection/components/eds-modal/eds-modal.stories.js +0 -80
- package/dist/collection/components/eds-pagination/eds-pagination.css +0 -148
- package/dist/collection/components/eds-pagination/eds-pagination.js +0 -418
- package/dist/collection/components/eds-pagination/eds-pagination.stories.js +0 -135
- package/dist/collection/components/eds-progress-bar/eds-progress-bar.css +0 -62
- package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +0 -79
- package/dist/collection/components/eds-progress-bar/eds-progress-bar.stories.js +0 -25
- package/dist/collection/components/eds-rating/eds-rating.css +0 -79
- package/dist/collection/components/eds-rating/eds-rating.js +0 -126
- package/dist/collection/components/eds-rating/eds-rating.stories.js +0 -43
- 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 +0 -91
- package/dist/collection/components/eds-section/eds-section-core/eds-section-core.stories.js +0 -75
- package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +0 -137
- package/dist/collection/components/eds-spinner/eds-spinner.css +0 -17
- package/dist/collection/components/eds-spinner/eds-spinner.js +0 -166
- package/dist/collection/components/eds-spinner/eds-spinner.stories.js +0 -52
- package/dist/collection/components/eds-steps/eds-steps.css +0 -126
- package/dist/collection/components/eds-steps/eds-steps.js +0 -170
- package/dist/collection/components/eds-steps/eds-steps.stories.js +0 -35
- package/dist/collection/components/eds-switch/eds-switch.css +0 -58
- package/dist/collection/components/eds-switch/eds-switch.js +0 -131
- package/dist/collection/components/eds-switch/eds-switch.stories.js +0 -38
- package/dist/collection/components/eds-table/eds-table.css +0 -142
- package/dist/collection/components/eds-table/eds-table.js +0 -370
- package/dist/collection/components/eds-table/eds-table.stories.js +0 -99
- package/dist/collection/components/eds-tag/eds-tag.css +0 -56
- package/dist/collection/components/eds-tag/eds-tag.js +0 -84
- package/dist/collection/components/eds-tag/eds-tag.stories.js +0 -27
- package/dist/collection/components/eds-timeline/eds-timeline.css +0 -7776
- package/dist/collection/components/eds-timeline/eds-timeline.js +0 -93
- package/dist/collection/components/eds-timeline/eds-timeline.stories.js +0 -35
- package/dist/collection/components/eds-toast/eds-toast.css +0 -91
- package/dist/collection/components/eds-toast/eds-toast.js +0 -138
- package/dist/collection/components/eds-toast/eds-toast.stories.js +0 -38
- package/dist/collection/components/eds-tooltip/eds-tooltip.css +0 -94
- package/dist/collection/components/eds-tooltip/eds-tooltip.js +0 -179
- package/dist/collection/components/eds-tooltip/eds-tooltip.stories.js +0 -21
- package/dist/collection/components/eds-trl/eds-trl.js +0 -68
- package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +0 -66
- package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +0 -44
- package/dist/collection/eds-docs-ui/components-section/components-section.js +0 -55
- package/dist/collection/eds-docs-ui/components-section/functional/angular.js +0 -2
- package/dist/collection/eds-docs-ui/components-section/functional/installation.js +0 -2
- package/dist/collection/eds-docs-ui/components-section/functional/overview.js +0 -19
- package/dist/collection/eds-docs-ui/components-section/functional/react.js +0 -2
- package/dist/collection/eds-docs-ui/components-section/functional/usage.js +0 -2
- package/dist/collection/eds-docs-ui/components-section/functional/vue.js +0 -2
- package/dist/collection/eds-docs-ui/design-tokens/docs-tokens/docs-tokens.js +0 -52
- package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +0 -98
- package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.stories.js +0 -44
- package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +0 -15
- package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +0 -27
- package/dist/collection/eds-docs-ui/docs-palettes/docs-palettes.js +0 -44
- package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.css +0 -154
- package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +0 -22
- package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.css +0 -161
- package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +0 -21
- package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.css +0 -169
- package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +0 -64
- package/dist/collection/eds-docs-ui/logo/logo-variations-tabs/logo-variations.js +0 -44
- package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.css +0 -240
- package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +0 -22
- package/dist/collection/eds-docs-ui/svg-repository/svg-repository.css +0 -5
- package/dist/collection/index.js +0 -1
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.css +0 -249
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.js +0 -95
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.stories.js +0 -71
- 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 +0 -86
- package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.st.js +0 -31
- package/dist/collection/shared-ui/eds-feedback/eds-feedback.css +0 -163
- package/dist/collection/shared-ui/eds-feedback/eds-feedback.js +0 -191
- package/dist/collection/shared-ui/eds-feedback/eds-feedback.stories.js +0 -121
- package/dist/collection/shared-ui/eds-footer/eds-footer.css +0 -226
- package/dist/collection/shared-ui/eds-footer/eds-footer.js +0 -189
- package/dist/collection/shared-ui/eds-footer/eds-footer.stories.js +0 -44
- package/dist/collection/shared-ui/eds-form/eds-form.css +0 -3
- package/dist/collection/shared-ui/eds-form/eds-form.js +0 -441
- package/dist/collection/shared-ui/eds-form/eds-form.stories.js +0 -73
- package/dist/collection/shared-ui/eds-frame/eds-frame.css +0 -116
- package/dist/collection/shared-ui/eds-frame/eds-frame.js +0 -234
- package/dist/collection/shared-ui/eds-frame/eds-frame.stories.js +0 -52
- package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.css +0 -120
- package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +0 -192
- package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.stories.js +0 -77
- package/dist/collection/shared-ui/eds-header/eds-header.css +0 -138
- package/dist/collection/shared-ui/eds-header/eds-header.js +0 -202
- package/dist/collection/shared-ui/eds-header/eds-header.stories.js +0 -40
- package/dist/collection/shared-ui/eds-login/eds-login.js +0 -190
- package/dist/collection/shared-ui/eds-login/eds-login.stories.js +0 -37
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.css +0 -109
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +0 -230
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.stories.js +0 -36
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.css +0 -124
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +0 -92
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.stories.js +0 -21
- package/dist/collection/shared-ui/eds-splash-screen/eds-splash-screen.css +0 -29
- package/dist/collection/shared-ui/eds-splash-screen/eds-splash-screen.js +0 -136
- package/dist/collection/shared-ui/eds-splash-screen/eds-splash-screen.stories.js +0 -23
- package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.css +0 -361
- package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.js +0 -219
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.css +0 -7776
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +0 -221
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.stories.js +0 -54
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.css +0 -51
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +0 -54
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.stories.js +0 -25
- package/dist/collection/shared-ui/eds-user/eds-user.css +0 -7776
- package/dist/collection/shared-ui/eds-user/eds-user.js +0 -77
- package/dist/collection/shared-ui/eds-user/eds-user.stories.js +0 -45
- package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +0 -39
- package/dist/collection/utils/api.js +0 -27
- package/dist/collection/utils/color.js +0 -129
- package/dist/collection/utils/eds-form/formUtils.js +0 -65
- package/dist/collection/utils/eds-form/formValidators.js +0 -64
- package/dist/collection/utils/eds-form/individualValidator.js +0 -46
- package/dist/collection/utils/eds-form/validateInput.js +0 -23
- package/dist/collection/utils/global.js +0 -8
- package/dist/collection/utils/keycloak.js +0 -85
- package/dist/collection/utils/sharedUtils.js +0 -17
- package/dist/collection/utils/toastManager.js +0 -29
- package/dist/components/analytics.js +0 -56
- package/dist/components/arrow-diagonal-black.js +0 -3
- package/dist/components/arrow-right.js +0 -5
- package/dist/components/bluesky.js +0 -14
- package/dist/components/bookmark.js +0 -16
- package/dist/components/chevron-down.js +0 -12
- package/dist/components/chevron-left.js +0 -11
- package/dist/components/chevron-right.js +0 -5
- package/dist/components/chevron-up.js +0 -12
- package/dist/components/close.js +0 -5
- package/dist/components/color-primary-palette.d.ts +0 -11
- package/dist/components/color-primary-palette.js +0 -6
- package/dist/components/color-secondary-palette.d.ts +0 -11
- package/dist/components/color-secondary-palette.js +0 -6
- package/dist/components/color-support-palette.d.ts +0 -11
- package/dist/components/color-support-palette.js +0 -6
- package/dist/components/components-section.d.ts +0 -11
- package/dist/components/components-section.js +0 -202
- package/dist/components/components.css +0 -7776
- package/dist/components/copy.js +0 -5
- package/dist/components/correct-use-of-colors.d.ts +0 -11
- package/dist/components/correct-use-of-colors.js +0 -93
- package/dist/components/docs-palettes.d.ts +0 -11
- package/dist/components/docs-palettes.js +0 -96
- package/dist/components/docs-tokens.d.ts +0 -11
- package/dist/components/docs-tokens.js +0 -80
- package/dist/components/eds-accordion.d.ts +0 -11
- package/dist/components/eds-accordion.js +0 -6
- package/dist/components/eds-accordion2.js +0 -119
- package/dist/components/eds-alert.d.ts +0 -11
- package/dist/components/eds-alert.js +0 -6
- package/dist/components/eds-alert2.js +0 -135
- package/dist/components/eds-app-root.d.ts +0 -11
- package/dist/components/eds-app-root.js +0 -89
- package/dist/components/eds-avatar.d.ts +0 -11
- package/dist/components/eds-avatar.js +0 -6
- package/dist/components/eds-block-break.d.ts +0 -11
- package/dist/components/eds-block-break.js +0 -6
- package/dist/components/eds-block-break2.js +0 -34
- package/dist/components/eds-breadcrumb.d.ts +0 -11
- package/dist/components/eds-breadcrumb.js +0 -173
- package/dist/components/eds-button.d.ts +0 -11
- package/dist/components/eds-button.js +0 -6
- package/dist/components/eds-card-desc.d.ts +0 -11
- package/dist/components/eds-card-desc.js +0 -6
- package/dist/components/eds-card-generic.d.ts +0 -11
- package/dist/components/eds-card-generic.js +0 -6
- package/dist/components/eds-card-generic2.js +0 -147
- package/dist/components/eds-card-project.d.ts +0 -11
- package/dist/components/eds-card-project.js +0 -109
- package/dist/components/eds-card-section.d.ts +0 -11
- package/dist/components/eds-card-section.js +0 -92
- package/dist/components/eds-card-tags.d.ts +0 -11
- package/dist/components/eds-card-tags.js +0 -45
- package/dist/components/eds-card-title.d.ts +0 -11
- package/dist/components/eds-card-title.js +0 -6
- package/dist/components/eds-card-tool.d.ts +0 -11
- package/dist/components/eds-card-tool.js +0 -137
- package/dist/components/eds-card-wrapper.d.ts +0 -11
- package/dist/components/eds-card-wrapper.js +0 -49
- package/dist/components/eds-code-block.d.ts +0 -11
- package/dist/components/eds-code-block.js +0 -6
- package/dist/components/eds-code-block2.js +0 -2510
- package/dist/components/eds-cookies-preference.d.ts +0 -11
- package/dist/components/eds-cookies-preference.js +0 -87
- package/dist/components/eds-dropdown.d.ts +0 -11
- package/dist/components/eds-dropdown.js +0 -6
- package/dist/components/eds-feedback.d.ts +0 -11
- package/dist/components/eds-feedback.js +0 -105
- package/dist/components/eds-footer.d.ts +0 -11
- package/dist/components/eds-footer.js +0 -6
- package/dist/components/eds-form.d.ts +0 -11
- package/dist/components/eds-frame.d.ts +0 -11
- package/dist/components/eds-frame.js +0 -120
- package/dist/components/eds-fullscreen-menu.d.ts +0 -11
- package/dist/components/eds-header.d.ts +0 -11
- package/dist/components/eds-icon-arrow-diagonal.d.ts +0 -11
- package/dist/components/eds-icon-arrow-diagonal.js +0 -33
- package/dist/components/eds-icon-arrow-right.d.ts +0 -11
- package/dist/components/eds-icon-arrow-right.js +0 -33
- package/dist/components/eds-icon-bluesky.d.ts +0 -11
- package/dist/components/eds-icon-bluesky.js +0 -33
- package/dist/components/eds-icon-bookmark.d.ts +0 -11
- package/dist/components/eds-icon-bookmark.js +0 -33
- package/dist/components/eds-icon-chevron-down.d.ts +0 -11
- package/dist/components/eds-icon-chevron-down.js +0 -33
- package/dist/components/eds-icon-chevron-left.d.ts +0 -11
- package/dist/components/eds-icon-chevron-left.js +0 -33
- package/dist/components/eds-icon-chevron-right.d.ts +0 -11
- package/dist/components/eds-icon-chevron-right.js +0 -33
- package/dist/components/eds-icon-chevron-up.d.ts +0 -11
- package/dist/components/eds-icon-chevron-up.js +0 -33
- package/dist/components/eds-icon-close.d.ts +0 -11
- package/dist/components/eds-icon-close.js +0 -33
- package/dist/components/eds-icon-copy.d.ts +0 -11
- package/dist/components/eds-icon-copy.js +0 -33
- package/dist/components/eds-icon-eu.d.ts +0 -11
- package/dist/components/eds-icon-eu.js +0 -33
- package/dist/components/eds-icon-external.d.ts +0 -11
- package/dist/components/eds-icon-external.js +0 -33
- package/dist/components/eds-icon-facebook.d.ts +0 -11
- package/dist/components/eds-icon-facebook.js +0 -33
- package/dist/components/eds-icon-gitlab.d.ts +0 -11
- package/dist/components/eds-icon-gitlab.js +0 -33
- package/dist/components/eds-icon-linkedin.d.ts +0 -11
- package/dist/components/eds-icon-linkedin.js +0 -33
- package/dist/components/eds-icon-loader.d.ts +0 -11
- package/dist/components/eds-icon-loader.js +0 -33
- package/dist/components/eds-icon-mastodon.d.ts +0 -11
- package/dist/components/eds-icon-mastodon.js +0 -33
- package/dist/components/eds-icon-menu.d.ts +0 -11
- package/dist/components/eds-icon-menu.js +0 -33
- package/dist/components/eds-icon-minus.d.ts +0 -11
- package/dist/components/eds-icon-minus.js +0 -33
- package/dist/components/eds-icon-more.d.ts +0 -11
- package/dist/components/eds-icon-more.js +0 -33
- package/dist/components/eds-icon-paper.d.ts +0 -11
- package/dist/components/eds-icon-paper.js +0 -33
- package/dist/components/eds-icon-plus.d.ts +0 -11
- package/dist/components/eds-icon-plus.js +0 -33
- package/dist/components/eds-icon-portal.d.ts +0 -11
- package/dist/components/eds-icon-portal.js +0 -33
- package/dist/components/eds-icon-private.d.ts +0 -11
- package/dist/components/eds-icon-private.js +0 -33
- package/dist/components/eds-icon-public.d.ts +0 -11
- package/dist/components/eds-icon-public.js +0 -33
- package/dist/components/eds-icon-search.d.ts +0 -11
- package/dist/components/eds-icon-search.js +0 -33
- package/dist/components/eds-icon-star.d.ts +0 -11
- package/dist/components/eds-icon-star.js +0 -33
- package/dist/components/eds-icon-success.d.ts +0 -11
- package/dist/components/eds-icon-success.js +0 -33
- package/dist/components/eds-icon-thumbs-down.d.ts +0 -11
- package/dist/components/eds-icon-thumbs-down.js +0 -33
- package/dist/components/eds-icon-thumbs-up.d.ts +0 -11
- package/dist/components/eds-icon-thumbs-up.js +0 -33
- package/dist/components/eds-icon-tutorial.d.ts +0 -11
- package/dist/components/eds-icon-tutorial.js +0 -33
- package/dist/components/eds-icon-twitter.d.ts +0 -11
- package/dist/components/eds-icon-twitter.js +0 -33
- package/dist/components/eds-icon-unknown.d.ts +0 -11
- package/dist/components/eds-icon-unknown.js +0 -33
- package/dist/components/eds-icon-updown.d.ts +0 -11
- package/dist/components/eds-icon-updown.js +0 -33
- package/dist/components/eds-icon-user.d.ts +0 -11
- package/dist/components/eds-icon-user.js +0 -33
- package/dist/components/eds-icon-wrapper.d.ts +0 -11
- package/dist/components/eds-icon-wrapper.js +0 -6
- package/dist/components/eds-icon-youtube.d.ts +0 -11
- package/dist/components/eds-icon-youtube.js +0 -33
- package/dist/components/eds-img.d.ts +0 -11
- package/dist/components/eds-img.js +0 -6
- package/dist/components/eds-input-field.d.ts +0 -11
- package/dist/components/eds-input-field.js +0 -6
- package/dist/components/eds-input-footer.d.ts +0 -11
- package/dist/components/eds-input-footer.js +0 -6
- package/dist/components/eds-input-footer2.js +0 -43
- package/dist/components/eds-input-label.d.ts +0 -11
- package/dist/components/eds-input-label.js +0 -6
- package/dist/components/eds-input-label2.js +0 -35
- package/dist/components/eds-input-range.d.ts +0 -11
- package/dist/components/eds-input-range.js +0 -6
- package/dist/components/eds-input-search.d.ts +0 -11
- package/dist/components/eds-input-search.js +0 -6
- package/dist/components/eds-input-select.d.ts +0 -11
- package/dist/components/eds-input-select.js +0 -6
- package/dist/components/eds-input.d.ts +0 -11
- package/dist/components/eds-input.js +0 -6
- package/dist/components/eds-link.d.ts +0 -11
- package/dist/components/eds-link.js +0 -6
- package/dist/components/eds-login.d.ts +0 -11
- package/dist/components/eds-login.js +0 -6
- package/dist/components/eds-logo.d.ts +0 -11
- package/dist/components/eds-logo.js +0 -6
- package/dist/components/eds-matomo-notice.d.ts +0 -11
- package/dist/components/eds-matomo-notice.js +0 -6
- package/dist/components/eds-matomo-notice2.js +0 -158
- package/dist/components/eds-modal.d.ts +0 -11
- package/dist/components/eds-modal.js +0 -144
- package/dist/components/eds-pagination.d.ts +0 -11
- package/dist/components/eds-pagination.js +0 -6
- package/dist/components/eds-progress-bar.d.ts +0 -11
- package/dist/components/eds-progress-bar.js +0 -6
- package/dist/components/eds-progress-bar2.js +0 -43
- package/dist/components/eds-rating.d.ts +0 -11
- package/dist/components/eds-rating.js +0 -6
- package/dist/components/eds-rating2.js +0 -91
- package/dist/components/eds-section-core.d.ts +0 -11
- package/dist/components/eds-section-core.js +0 -6
- package/dist/components/eds-section-core2.js +0 -44
- package/dist/components/eds-section-heading.d.ts +0 -11
- package/dist/components/eds-section-heading.js +0 -6
- package/dist/components/eds-section-heading2.js +0 -57
- package/dist/components/eds-social-networks.d.ts +0 -11
- package/dist/components/eds-social-networks.js +0 -6
- package/dist/components/eds-spinner.d.ts +0 -11
- package/dist/components/eds-spinner.js +0 -6
- package/dist/components/eds-spinner2.js +0 -72
- package/dist/components/eds-splash-screen.d.ts +0 -11
- package/dist/components/eds-splash-screen.js +0 -6
- package/dist/components/eds-steps-v2.d.ts +0 -11
- package/dist/components/eds-steps.d.ts +0 -11
- package/dist/components/eds-steps.js +0 -6
- package/dist/components/eds-switch.d.ts +0 -11
- package/dist/components/eds-switch.js +0 -57
- package/dist/components/eds-table.d.ts +0 -11
- package/dist/components/eds-table.js +0 -6
- package/dist/components/eds-tabs.d.ts +0 -11
- package/dist/components/eds-tabs.js +0 -152
- package/dist/components/eds-tag.d.ts +0 -11
- package/dist/components/eds-tag.js +0 -6
- package/dist/components/eds-tag2.js +0 -55
- package/dist/components/eds-timeline.d.ts +0 -11
- package/dist/components/eds-timeline.js +0 -119
- package/dist/components/eds-toast-manager.d.ts +0 -11
- package/dist/components/eds-toast-manager.js +0 -80
- package/dist/components/eds-toast.d.ts +0 -11
- package/dist/components/eds-toast.js +0 -6
- package/dist/components/eds-toast2.js +0 -104
- package/dist/components/eds-tooltip.d.ts +0 -11
- package/dist/components/eds-tooltip.js +0 -129
- package/dist/components/eds-trl.d.ts +0 -11
- package/dist/components/eds-trl.js +0 -138
- package/dist/components/eds-user.d.ts +0 -11
- package/dist/components/eu.js +0 -30
- package/dist/components/facebook.js +0 -14
- package/dist/components/gradient-primary-palette.d.ts +0 -11
- package/dist/components/gradient-primary-palette.js +0 -6
- package/dist/components/gradient-secondary-palette.d.ts +0 -11
- package/dist/components/gradient-secondary-palette.js +0 -6
- package/dist/components/gradient-support-palette.d.ts +0 -11
- package/dist/components/gradient-support-palette.js +0 -6
- package/dist/components/incorrect-use-of-colors.d.ts +0 -11
- package/dist/components/incorrect-use-of-colors.js +0 -81
- package/dist/components/index.d.ts +0 -33
- package/dist/components/index.js +0 -1
- package/dist/components/linkedin.js +0 -28
- package/dist/components/loader.js +0 -30
- package/dist/components/logo-color-margins.js +0 -118
- package/dist/components/logo-color.js +0 -115
- package/dist/components/logo-space.d.ts +0 -11
- package/dist/components/logo-space.js +0 -101
- package/dist/components/logo-variations-horizontal.d.ts +0 -11
- package/dist/components/logo-variations-horizontal.js +0 -6
- package/dist/components/logo-variations-tabs.d.ts +0 -11
- package/dist/components/logo-variations-tabs.js +0 -60
- package/dist/components/logo-variations-vertical.d.ts +0 -11
- package/dist/components/logo-variations-vertical.js +0 -6
- package/dist/components/logo-white-no-bg.js +0 -1029
- package/dist/components/logo-wrong-usage.d.ts +0 -11
- package/dist/components/logo-wrong-usage.js +0 -35
- package/dist/components/mastodon.js +0 -14
- package/dist/components/menu.js +0 -11
- package/dist/components/minus.js +0 -11
- package/dist/components/mono.js +0 -11
- package/dist/components/more.js +0 -13
- package/dist/components/p-024c7937.js +0 -1
- package/dist/components/p-032f9f64.entry.js +0 -1
- package/dist/components/p-05754401.js +0 -1
- package/dist/components/p-058cf100.entry.js +0 -1
- package/dist/components/p-063b0683.entry.js +0 -1
- package/dist/components/p-0be28996.js +0 -1
- package/dist/components/p-0ce924b1.entry.js +0 -1
- package/dist/components/p-0e6d43c5.js +0 -1
- package/dist/components/p-112122d6.js +0 -1
- package/dist/components/p-13efafb9.js +0 -1
- package/dist/components/p-18eb23ff.entry.js +0 -1
- package/dist/components/p-1aab55cf.entry.js +0 -1
- package/dist/components/p-1b2913c8.js +0 -1
- package/dist/components/p-1b4e9576.entry.js +0 -1
- package/dist/components/p-1ded61bd.js +0 -1
- package/dist/components/p-2066b033.js +0 -1
- package/dist/components/p-20b3a999.entry.js +0 -1
- package/dist/components/p-20e9ae7f.entry.js +0 -1
- package/dist/components/p-2117611b.js +0 -1
- package/dist/components/p-21a746a4.entry.js +0 -9
- package/dist/components/p-22f9e720.js +0 -1
- package/dist/components/p-2692f93d.js +0 -1
- package/dist/components/p-29041952.js +0 -1
- package/dist/components/p-29e807f5.entry.js +0 -1
- package/dist/components/p-2c1be2bb.entry.js +0 -1
- package/dist/components/p-30a319d5.entry.js +0 -1
- package/dist/components/p-32e6c4df.js +0 -1
- package/dist/components/p-35ed7ebf.entry.js +0 -1
- package/dist/components/p-373119b3.js +0 -1
- package/dist/components/p-376b706b.entry.js +0 -1
- package/dist/components/p-3932d0af.entry.js +0 -1
- package/dist/components/p-3a7be9a7.entry.js +0 -1
- package/dist/components/p-3af94671.entry.js +0 -1
- package/dist/components/p-3f480c3c.entry.js +0 -1
- package/dist/components/p-41e89554.entry.js +0 -1
- package/dist/components/p-424ba743.entry.js +0 -1
- package/dist/components/p-435a8942.entry.js +0 -1
- package/dist/components/p-4587d0ef.js +0 -1
- package/dist/components/p-4687b64c.js +0 -1
- package/dist/components/p-46d0716d.js +0 -1
- package/dist/components/p-4c7852f8.entry.js +0 -1
- package/dist/components/p-4e8a317b.entry.js +0 -1
- package/dist/components/p-50e27321.js +0 -1
- package/dist/components/p-526cdc57.entry.js +0 -1
- package/dist/components/p-52913e2e.entry.js +0 -1
- package/dist/components/p-54b8f143.js +0 -1
- package/dist/components/p-59d963d1.entry.js +0 -1
- package/dist/components/p-5ab1d64a.js +0 -1
- package/dist/components/p-5d046674.js +0 -1
- package/dist/components/p-622dd2a1.entry.js +0 -1
- package/dist/components/p-6404e157.entry.js +0 -1
- package/dist/components/p-66bb44c9.entry.js +0 -1
- package/dist/components/p-694fc085.js +0 -1
- package/dist/components/p-69c5074b.js +0 -1
- package/dist/components/p-6dc26e53.entry.js +0 -1
- package/dist/components/p-7198c024.js +0 -1
- package/dist/components/p-78fa7132.entry.js +0 -1
- package/dist/components/p-7dce734a.entry.js +0 -1
- package/dist/components/p-7fa88255.entry.js +0 -1
- package/dist/components/p-81899237.js +0 -1
- package/dist/components/p-83936521.entry.js +0 -1
- package/dist/components/p-83ff4a95.js +0 -1
- package/dist/components/p-8527ef5f.entry.js +0 -1
- package/dist/components/p-85ad681a.entry.js +0 -1
- package/dist/components/p-8653bc36.entry.js +0 -1
- package/dist/components/p-86bb73dc.js +0 -1
- package/dist/components/p-8983de37.js +0 -1
- package/dist/components/p-8baa7e01.entry.js +0 -1
- package/dist/components/p-8e3c6c63.entry.js +0 -1
- package/dist/components/p-91440d2f.entry.js +0 -1
- package/dist/components/p-923f67b5.entry.js +0 -1
- package/dist/components/p-93093977.entry.js +0 -1
- package/dist/components/p-941240b5.entry.js +0 -1
- package/dist/components/p-97e95520.entry.js +0 -1
- package/dist/components/p-9873ebec.entry.js +0 -1
- package/dist/components/p-9a1a6df1.entry.js +0 -1
- package/dist/components/p-9c5a453b.js +0 -1
- package/dist/components/p-9cbcccf8.entry.js +0 -1
- package/dist/components/p-9dc879c9.entry.js +0 -1
- package/dist/components/p-a1d55013.entry.js +0 -1
- package/dist/components/p-a56f0579.entry.js +0 -1
- package/dist/components/p-a8b0fe92.entry.js +0 -1
- package/dist/components/p-acc4d234.entry.js +0 -1
- package/dist/components/p-aefcb641.js +0 -1
- package/dist/components/p-b0b37831.entry.js +0 -1
- package/dist/components/p-b299b89a.entry.js +0 -1
- package/dist/components/p-b2b46793.entry.js +0 -1
- package/dist/components/p-b47d115d.entry.js +0 -1
- package/dist/components/p-b55b0091.entry.js +0 -1
- package/dist/components/p-b73410de.js +0 -1
- package/dist/components/p-b76aa402.entry.js +0 -1
- package/dist/components/p-b822abb7.js +0 -1
- package/dist/components/p-b8ba7e5c.entry.js +0 -1
- package/dist/components/p-b96fc468.entry.js +0 -1
- package/dist/components/p-ba720bf3.js +0 -1
- package/dist/components/p-bab07ba6.entry.js +0 -1
- package/dist/components/p-bcbc7b7f.entry.js +0 -1
- package/dist/components/p-c1e4ef92.js +0 -1
- package/dist/components/p-c776b6f8.js +0 -1
- package/dist/components/p-c86243a3.entry.js +0 -1
- package/dist/components/p-c8abff96.entry.js +0 -1
- package/dist/components/p-c8e7c854.js +0 -1
- package/dist/components/p-c935aa46.entry.js +0 -1
- package/dist/components/p-cccacbd3.js +0 -2
- package/dist/components/p-cccff1e3.entry.js +0 -1
- package/dist/components/p-cd624044.entry.js +0 -1
- package/dist/components/p-cdc36ea8.entry.js +0 -1
- package/dist/components/p-cdf19579.js +0 -1
- package/dist/components/p-d525ed36.entry.js +0 -1
- package/dist/components/p-d94a44b9.entry.js +0 -1
- package/dist/components/p-d962849c.js +0 -1
- package/dist/components/p-dbcf1f0e.entry.js +0 -1
- package/dist/components/p-dcc08064.entry.js +0 -1
- package/dist/components/p-dcd4de1f.entry.js +0 -1
- package/dist/components/p-e1255160.js +0 -1
- package/dist/components/p-e2d5a487.js +0 -1
- package/dist/components/p-e64cd6f7.entry.js +0 -1
- package/dist/components/p-ea089f4e.entry.js +0 -1
- package/dist/components/p-eb0b93d5.js +0 -1
- package/dist/components/p-ecbb679f.js +0 -1
- package/dist/components/p-ece618b3.js +0 -1
- package/dist/components/p-eebf7ebf.entry.js +0 -1
- package/dist/components/p-efc73304.entry.js +0 -1
- package/dist/components/p-f13e9ab1.entry.js +0 -1
- package/dist/components/p-f48a4313.entry.js +0 -1
- package/dist/components/p-ff7acb55.entry.js +0 -1
- package/dist/components/paper.js +0 -15
- package/dist/components/plus.js +0 -12
- package/dist/components/portal.js +0 -18
- package/dist/components/primary.js +0 -65
- package/dist/components/primary2.js +0 -67
- package/dist/components/private.js +0 -25
- package/dist/components/public.js +0 -16
- package/dist/components/search.js +0 -12
- package/dist/components/secondary.js +0 -92
- package/dist/components/secondary2.js +0 -107
- package/dist/components/star.js +0 -5
- package/dist/components/success.js +0 -18
- package/dist/components/support.js +0 -94
- package/dist/components/support2.js +0 -85
- package/dist/components/svg-repository.d.ts +0 -11
- package/dist/components/svg-repository.js +0 -417
- package/dist/components/thumbs-down.js +0 -5
- package/dist/components/thumbs-up.js +0 -6
- package/dist/components/token-list.d.ts +0 -11
- package/dist/components/token-list.js +0 -6
- package/dist/components/token-radii.d.ts +0 -11
- package/dist/components/token-radii.js +0 -6
- package/dist/components/token-radii2.js +0 -47
- package/dist/components/token-ratios.d.ts +0 -11
- package/dist/components/token-ratios.js +0 -54
- package/dist/components/token-shadows.d.ts +0 -11
- package/dist/components/token-shadows.js +0 -6
- package/dist/components/token-shadows2.js +0 -56
- package/dist/components/token-spacing.d.ts +0 -11
- package/dist/components/token-spacing.js +0 -29
- package/dist/components/token-typography.d.ts +0 -11
- package/dist/components/token-typography.js +0 -255
- package/dist/components/tutotial.js +0 -27
- package/dist/components/twitter.js +0 -14
- package/dist/components/unknown.js +0 -22
- package/dist/components/up-and-down.js +0 -12
- package/dist/components/user.js +0 -16
- package/dist/components/youtube.js +0 -14
- package/dist/esm/analytics-44b1416b.js +0 -56
- package/dist/esm/arrow-diagonal-black-8f0494c3.js +0 -3
- package/dist/esm/arrow-right-9322ba8a.js +0 -5
- package/dist/esm/bluesky-cc5edd2d.js +0 -14
- package/dist/esm/bookmark-c200037c.js +0 -16
- package/dist/esm/chevron-down-6144c823.js +0 -12
- package/dist/esm/chevron-left-ca6c66e1.js +0 -11
- package/dist/esm/chevron-right-b88ed2d4.js +0 -5
- package/dist/esm/chevron-up-c66bd477.js +0 -12
- package/dist/esm/close-87fc0d63.js +0 -5
- package/dist/esm/color-2554aad6.js +0 -132
- package/dist/esm/color-primary-palette_6.entry.js +0 -331
- package/dist/esm/components.js +0 -20
- package/dist/esm/copy-03b72cb6.js +0 -5
- package/dist/esm/eds-avatar_24.entry.js +0 -2073
- package/dist/esm/eds-card-desc_3.entry.js +0 -107
- package/dist/esm/eds-login_2.entry.js +0 -2095
- package/dist/esm/eds-pagination_2.entry.js +0 -398
- package/dist/esm/eu-9ddde93a.js +0 -30
- package/dist/esm/facebook-9cb5c17f.js +0 -14
- package/dist/esm/index-39c58238.js +0 -46
- package/dist/esm/index.js +0 -1
- package/dist/esm/linkedin-e8650abb.js +0 -28
- package/dist/esm/loader-c9628637.js +0 -30
- package/dist/esm/loader.js +0 -11
- package/dist/esm/logo-color-7f1fd803.js +0 -115
- package/dist/esm/logo-color-margins-ff8ce71b.js +0 -118
- package/dist/esm/logo-variations-horizontal_2.entry.js +0 -31
- package/dist/esm/logo-white-no-bg-f382f86f.js +0 -1029
- package/dist/esm/mastodon-3703ec61.js +0 -14
- package/dist/esm/menu-340ea948.js +0 -11
- package/dist/esm/minus-b30a7c71.js +0 -11
- package/dist/esm/mono-53f70232.js +0 -11
- package/dist/esm/more-4449d549.js +0 -13
- package/dist/esm/paper-8e74ea31.js +0 -15
- package/dist/esm/plus-89c07be2.js +0 -12
- package/dist/esm/portal-d6c8ce56.js +0 -18
- package/dist/esm/private-1c25ff8e.js +0 -25
- package/dist/esm/public-d4d8c585.js +0 -16
- package/dist/esm/search-fbcd79c2.js +0 -12
- package/dist/esm/sharedUtils-a550989c.js +0 -19
- package/dist/esm/star-0da9b5e9.js +0 -5
- package/dist/esm/success-443809da.js +0 -18
- package/dist/esm/svg-repository.entry.js +0 -333
- package/dist/esm/thumbs-down-a18fd049.js +0 -5
- package/dist/esm/thumbs-up-c19a71bc.js +0 -6
- package/dist/esm/toastManager-d9eee791.js +0 -31
- package/dist/esm/token-list_3.entry.js +0 -294
- package/dist/esm/tutotial-150ee1fd.js +0 -27
- package/dist/esm/twitter-ac21b505.js +0 -14
- package/dist/esm/unknown-ed01a24c.js +0 -22
- package/dist/esm/up-and-down-d747abee.js +0 -12
- package/dist/esm/user-71ebdc15.js +0 -16
- package/dist/esm/youtube-efbfbdc4.js +0 -14
- package/dist/hydrate/index.d.ts +0 -242
- package/dist/hydrate/index.js +0 -32710
- package/dist/hydrate/index.mjs +0 -32702
- package/dist/hydrate/package.json +0 -12
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/stencil.config.js +0 -60
- package/loader/cdn.js +0 -1
- package/loader/index.cjs.js +0 -1
- package/loader/index.d.ts +0 -24
- package/loader/index.es2017.js +0 -1
- package/loader/index.js +0 -2
- package/loader/package.json +0 -11
- /package/dist/{esm → components}/app-globals-0f993ce5.js +0 -0
- /package/dist/components/{index2.js → index-144c9ae8.js} +0 -0
- /package/dist/components/{sharedUtils.js → sharedUtils-6a231dd4.js} +0 -0
- /package/dist/components/{toastManager.js → toastManager-b716afd8.js} +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
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:
|
|
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: true, isTesting: true, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: true, 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 };
|
|
3
|
+
const Env = /* components */ {};
|
|
3
4
|
|
|
4
5
|
/*
|
|
5
6
|
Stencil Client Platform v4.22.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -9,7 +10,13 @@ var __export = (target, all) => {
|
|
|
9
10
|
for (var name in all)
|
|
10
11
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
12
|
};
|
|
12
|
-
var
|
|
13
|
+
var Build = {
|
|
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();
|
|
13
20
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
14
21
|
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
15
22
|
var registerHost = (hostElement, cmpMeta) => {
|
|
@@ -19,10 +26,13 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
19
26
|
$cmpMeta$: cmpMeta,
|
|
20
27
|
$instanceValues$: /* @__PURE__ */ new Map()
|
|
21
28
|
};
|
|
22
|
-
{
|
|
29
|
+
if (BUILD.isDev) {
|
|
30
|
+
hostRef.$renderCount$ = 0;
|
|
31
|
+
}
|
|
32
|
+
if (BUILD.method && BUILD.lazyLoad) {
|
|
23
33
|
hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
|
|
24
34
|
}
|
|
25
|
-
{
|
|
35
|
+
if (BUILD.asyncLoading) {
|
|
26
36
|
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
|
27
37
|
hostElement["s-p"] = [];
|
|
28
38
|
hostElement["s-rc"] = [];
|
|
@@ -30,362 +40,44 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
30
40
|
return hostRefs.set(hostElement, hostRef);
|
|
31
41
|
};
|
|
32
42
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
33
|
-
var
|
|
43
|
+
var customError;
|
|
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;
|
|
34
53
|
|
|
35
54
|
// src/client/client-load-module.ts
|
|
36
55
|
var cmpModules = /* @__PURE__ */ new Map();
|
|
56
|
+
var MODULE_IMPORT_PREFIX = "./";
|
|
37
57
|
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
38
58
|
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
|
39
59
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
40
|
-
if (
|
|
60
|
+
if (BUILD.isDev && typeof bundleId !== "string") {
|
|
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) {
|
|
41
66
|
return void 0;
|
|
42
67
|
}
|
|
43
|
-
const module = cmpModules.get(bundleId) ;
|
|
68
|
+
const module = !BUILD.hotModuleReplacement ? cmpModules.get(bundleId) : false;
|
|
44
69
|
if (module) {
|
|
45
70
|
return module[exportName];
|
|
46
71
|
}
|
|
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_24':
|
|
56
|
-
return import(
|
|
57
|
-
/* webpackMode: "lazy" */
|
|
58
|
-
'./eds-avatar_24.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-breadcrumb':
|
|
80
|
-
return import(
|
|
81
|
-
/* webpackMode: "lazy" */
|
|
82
|
-
'./eds-breadcrumb.entry.js').then(processMod, consoleError);
|
|
83
|
-
case 'eds-card-project':
|
|
84
|
-
return import(
|
|
85
|
-
/* webpackMode: "lazy" */
|
|
86
|
-
'./eds-card-project.entry.js').then(processMod, consoleError);
|
|
87
|
-
case 'eds-card-section':
|
|
88
|
-
return import(
|
|
89
|
-
/* webpackMode: "lazy" */
|
|
90
|
-
'./eds-card-section.entry.js').then(processMod, consoleError);
|
|
91
|
-
case 'eds-card-tags':
|
|
92
|
-
return import(
|
|
93
|
-
/* webpackMode: "lazy" */
|
|
94
|
-
'./eds-card-tags.entry.js').then(processMod, consoleError);
|
|
95
|
-
case 'eds-card-tool':
|
|
96
|
-
return import(
|
|
97
|
-
/* webpackMode: "lazy" */
|
|
98
|
-
'./eds-card-tool.entry.js').then(processMod, consoleError);
|
|
99
|
-
case 'eds-card-wrapper':
|
|
100
|
-
return import(
|
|
101
|
-
/* webpackMode: "lazy" */
|
|
102
|
-
'./eds-card-wrapper.entry.js').then(processMod, consoleError);
|
|
103
|
-
case 'eds-cookies-preference':
|
|
104
|
-
return import(
|
|
105
|
-
/* webpackMode: "lazy" */
|
|
106
|
-
'./eds-cookies-preference.entry.js').then(processMod, consoleError);
|
|
107
|
-
case 'eds-feedback':
|
|
108
|
-
return import(
|
|
109
|
-
/* webpackMode: "lazy" */
|
|
110
|
-
'./eds-feedback.entry.js').then(processMod, consoleError);
|
|
111
|
-
case 'eds-frame':
|
|
112
|
-
return import(
|
|
113
|
-
/* webpackMode: "lazy" */
|
|
114
|
-
'./eds-frame.entry.js').then(processMod, consoleError);
|
|
115
|
-
case 'eds-icon-arrow-diagonal':
|
|
116
|
-
return import(
|
|
117
|
-
/* webpackMode: "lazy" */
|
|
118
|
-
'./eds-icon-arrow-diagonal.entry.js').then(processMod, consoleError);
|
|
119
|
-
case 'eds-icon-arrow-right':
|
|
120
|
-
return import(
|
|
121
|
-
/* webpackMode: "lazy" */
|
|
122
|
-
'./eds-icon-arrow-right.entry.js').then(processMod, consoleError);
|
|
123
|
-
case 'eds-icon-bluesky':
|
|
124
|
-
return import(
|
|
125
|
-
/* webpackMode: "lazy" */
|
|
126
|
-
'./eds-icon-bluesky.entry.js').then(processMod, consoleError);
|
|
127
|
-
case 'eds-icon-bookmark':
|
|
128
|
-
return import(
|
|
129
|
-
/* webpackMode: "lazy" */
|
|
130
|
-
'./eds-icon-bookmark.entry.js').then(processMod, consoleError);
|
|
131
|
-
case 'eds-icon-chevron-down':
|
|
132
|
-
return import(
|
|
133
|
-
/* webpackMode: "lazy" */
|
|
134
|
-
'./eds-icon-chevron-down.entry.js').then(processMod, consoleError);
|
|
135
|
-
case 'eds-icon-chevron-left':
|
|
136
|
-
return import(
|
|
137
|
-
/* webpackMode: "lazy" */
|
|
138
|
-
'./eds-icon-chevron-left.entry.js').then(processMod, consoleError);
|
|
139
|
-
case 'eds-icon-chevron-right':
|
|
140
|
-
return import(
|
|
141
|
-
/* webpackMode: "lazy" */
|
|
142
|
-
'./eds-icon-chevron-right.entry.js').then(processMod, consoleError);
|
|
143
|
-
case 'eds-icon-chevron-up':
|
|
144
|
-
return import(
|
|
145
|
-
/* webpackMode: "lazy" */
|
|
146
|
-
'./eds-icon-chevron-up.entry.js').then(processMod, consoleError);
|
|
147
|
-
case 'eds-icon-close':
|
|
148
|
-
return import(
|
|
149
|
-
/* webpackMode: "lazy" */
|
|
150
|
-
'./eds-icon-close.entry.js').then(processMod, consoleError);
|
|
151
|
-
case 'eds-icon-copy':
|
|
152
|
-
return import(
|
|
153
|
-
/* webpackMode: "lazy" */
|
|
154
|
-
'./eds-icon-copy.entry.js').then(processMod, consoleError);
|
|
155
|
-
case 'eds-icon-eu':
|
|
156
|
-
return import(
|
|
157
|
-
/* webpackMode: "lazy" */
|
|
158
|
-
'./eds-icon-eu.entry.js').then(processMod, consoleError);
|
|
159
|
-
case 'eds-icon-external':
|
|
160
|
-
return import(
|
|
161
|
-
/* webpackMode: "lazy" */
|
|
162
|
-
'./eds-icon-external.entry.js').then(processMod, consoleError);
|
|
163
|
-
case 'eds-icon-facebook':
|
|
164
|
-
return import(
|
|
165
|
-
/* webpackMode: "lazy" */
|
|
166
|
-
'./eds-icon-facebook.entry.js').then(processMod, consoleError);
|
|
167
|
-
case 'eds-icon-gitlab':
|
|
168
|
-
return import(
|
|
169
|
-
/* webpackMode: "lazy" */
|
|
170
|
-
'./eds-icon-gitlab.entry.js').then(processMod, consoleError);
|
|
171
|
-
case 'eds-icon-linkedin':
|
|
172
|
-
return import(
|
|
173
|
-
/* webpackMode: "lazy" */
|
|
174
|
-
'./eds-icon-linkedin.entry.js').then(processMod, consoleError);
|
|
175
|
-
case 'eds-icon-loader':
|
|
176
|
-
return import(
|
|
177
|
-
/* webpackMode: "lazy" */
|
|
178
|
-
'./eds-icon-loader.entry.js').then(processMod, consoleError);
|
|
179
|
-
case 'eds-icon-mastodon':
|
|
180
|
-
return import(
|
|
181
|
-
/* webpackMode: "lazy" */
|
|
182
|
-
'./eds-icon-mastodon.entry.js').then(processMod, consoleError);
|
|
183
|
-
case 'eds-icon-menu':
|
|
184
|
-
return import(
|
|
185
|
-
/* webpackMode: "lazy" */
|
|
186
|
-
'./eds-icon-menu.entry.js').then(processMod, consoleError);
|
|
187
|
-
case 'eds-icon-minus':
|
|
188
|
-
return import(
|
|
189
|
-
/* webpackMode: "lazy" */
|
|
190
|
-
'./eds-icon-minus.entry.js').then(processMod, consoleError);
|
|
191
|
-
case 'eds-icon-more':
|
|
192
|
-
return import(
|
|
193
|
-
/* webpackMode: "lazy" */
|
|
194
|
-
'./eds-icon-more.entry.js').then(processMod, consoleError);
|
|
195
|
-
case 'eds-icon-paper':
|
|
196
|
-
return import(
|
|
197
|
-
/* webpackMode: "lazy" */
|
|
198
|
-
'./eds-icon-paper.entry.js').then(processMod, consoleError);
|
|
199
|
-
case 'eds-icon-plus':
|
|
200
|
-
return import(
|
|
201
|
-
/* webpackMode: "lazy" */
|
|
202
|
-
'./eds-icon-plus.entry.js').then(processMod, consoleError);
|
|
203
|
-
case 'eds-icon-portal':
|
|
204
|
-
return import(
|
|
205
|
-
/* webpackMode: "lazy" */
|
|
206
|
-
'./eds-icon-portal.entry.js').then(processMod, consoleError);
|
|
207
|
-
case 'eds-icon-private':
|
|
208
|
-
return import(
|
|
209
|
-
/* webpackMode: "lazy" */
|
|
210
|
-
'./eds-icon-private.entry.js').then(processMod, consoleError);
|
|
211
|
-
case 'eds-icon-public':
|
|
212
|
-
return import(
|
|
213
|
-
/* webpackMode: "lazy" */
|
|
214
|
-
'./eds-icon-public.entry.js').then(processMod, consoleError);
|
|
215
|
-
case 'eds-icon-search':
|
|
216
|
-
return import(
|
|
217
|
-
/* webpackMode: "lazy" */
|
|
218
|
-
'./eds-icon-search.entry.js').then(processMod, consoleError);
|
|
219
|
-
case 'eds-icon-star':
|
|
220
|
-
return import(
|
|
221
|
-
/* webpackMode: "lazy" */
|
|
222
|
-
'./eds-icon-star.entry.js').then(processMod, consoleError);
|
|
223
|
-
case 'eds-icon-success':
|
|
224
|
-
return import(
|
|
225
|
-
/* webpackMode: "lazy" */
|
|
226
|
-
'./eds-icon-success.entry.js').then(processMod, consoleError);
|
|
227
|
-
case 'eds-icon-thumbs-down':
|
|
228
|
-
return import(
|
|
229
|
-
/* webpackMode: "lazy" */
|
|
230
|
-
'./eds-icon-thumbs-down.entry.js').then(processMod, consoleError);
|
|
231
|
-
case 'eds-icon-thumbs-up':
|
|
232
|
-
return import(
|
|
233
|
-
/* webpackMode: "lazy" */
|
|
234
|
-
'./eds-icon-thumbs-up.entry.js').then(processMod, consoleError);
|
|
235
|
-
case 'eds-icon-tutorial':
|
|
236
|
-
return import(
|
|
237
|
-
/* webpackMode: "lazy" */
|
|
238
|
-
'./eds-icon-tutorial.entry.js').then(processMod, consoleError);
|
|
239
|
-
case 'eds-icon-twitter':
|
|
240
|
-
return import(
|
|
241
|
-
/* webpackMode: "lazy" */
|
|
242
|
-
'./eds-icon-twitter.entry.js').then(processMod, consoleError);
|
|
243
|
-
case 'eds-icon-unknown':
|
|
244
|
-
return import(
|
|
245
|
-
/* webpackMode: "lazy" */
|
|
246
|
-
'./eds-icon-unknown.entry.js').then(processMod, consoleError);
|
|
247
|
-
case 'eds-icon-updown':
|
|
248
|
-
return import(
|
|
249
|
-
/* webpackMode: "lazy" */
|
|
250
|
-
'./eds-icon-updown.entry.js').then(processMod, consoleError);
|
|
251
|
-
case 'eds-icon-user':
|
|
252
|
-
return import(
|
|
253
|
-
/* webpackMode: "lazy" */
|
|
254
|
-
'./eds-icon-user.entry.js').then(processMod, consoleError);
|
|
255
|
-
case 'eds-icon-youtube':
|
|
256
|
-
return import(
|
|
257
|
-
/* webpackMode: "lazy" */
|
|
258
|
-
'./eds-icon-youtube.entry.js').then(processMod, consoleError);
|
|
259
|
-
case 'eds-modal':
|
|
260
|
-
return import(
|
|
261
|
-
/* webpackMode: "lazy" */
|
|
262
|
-
'./eds-modal.entry.js').then(processMod, consoleError);
|
|
263
|
-
case 'eds-switch':
|
|
264
|
-
return import(
|
|
265
|
-
/* webpackMode: "lazy" */
|
|
266
|
-
'./eds-switch.entry.js').then(processMod, consoleError);
|
|
267
|
-
case 'eds-tabs':
|
|
268
|
-
return import(
|
|
269
|
-
/* webpackMode: "lazy" */
|
|
270
|
-
'./eds-tabs.entry.js').then(processMod, consoleError);
|
|
271
|
-
case 'eds-timeline':
|
|
272
|
-
return import(
|
|
273
|
-
/* webpackMode: "lazy" */
|
|
274
|
-
'./eds-timeline.entry.js').then(processMod, consoleError);
|
|
275
|
-
case 'eds-toast-manager':
|
|
276
|
-
return import(
|
|
277
|
-
/* webpackMode: "lazy" */
|
|
278
|
-
'./eds-toast-manager.entry.js').then(processMod, consoleError);
|
|
279
|
-
case 'eds-tooltip':
|
|
280
|
-
return import(
|
|
281
|
-
/* webpackMode: "lazy" */
|
|
282
|
-
'./eds-tooltip.entry.js').then(processMod, consoleError);
|
|
283
|
-
case 'eds-trl':
|
|
284
|
-
return import(
|
|
285
|
-
/* webpackMode: "lazy" */
|
|
286
|
-
'./eds-trl.entry.js').then(processMod, consoleError);
|
|
287
|
-
case 'incorrect-use-of-colors':
|
|
288
|
-
return import(
|
|
289
|
-
/* webpackMode: "lazy" */
|
|
290
|
-
'./incorrect-use-of-colors.entry.js').then(processMod, consoleError);
|
|
291
|
-
case 'logo-space':
|
|
292
|
-
return import(
|
|
293
|
-
/* webpackMode: "lazy" */
|
|
294
|
-
'./logo-space.entry.js').then(processMod, consoleError);
|
|
295
|
-
case 'logo-variations-tabs':
|
|
296
|
-
return import(
|
|
297
|
-
/* webpackMode: "lazy" */
|
|
298
|
-
'./logo-variations-tabs.entry.js').then(processMod, consoleError);
|
|
299
|
-
case 'logo-wrong-usage':
|
|
300
|
-
return import(
|
|
301
|
-
/* webpackMode: "lazy" */
|
|
302
|
-
'./logo-wrong-usage.entry.js').then(processMod, consoleError);
|
|
303
|
-
case 'svg-repository':
|
|
304
|
-
return import(
|
|
305
|
-
/* webpackMode: "lazy" */
|
|
306
|
-
'./svg-repository.entry.js').then(processMod, consoleError);
|
|
307
|
-
case 'token-ratios':
|
|
308
|
-
return import(
|
|
309
|
-
/* webpackMode: "lazy" */
|
|
310
|
-
'./token-ratios.entry.js').then(processMod, consoleError);
|
|
311
|
-
case 'token-typography':
|
|
312
|
-
return import(
|
|
313
|
-
/* webpackMode: "lazy" */
|
|
314
|
-
'./token-typography.entry.js').then(processMod, consoleError);
|
|
315
|
-
case 'color-primary-palette_6':
|
|
316
|
-
return import(
|
|
317
|
-
/* webpackMode: "lazy" */
|
|
318
|
-
'./color-primary-palette_6.entry.js').then(processMod, consoleError);
|
|
319
|
-
case 'eds-login_2':
|
|
320
|
-
return import(
|
|
321
|
-
/* webpackMode: "lazy" */
|
|
322
|
-
'./eds-login_2.entry.js').then(processMod, consoleError);
|
|
323
|
-
case 'eds-matomo-notice':
|
|
324
|
-
return import(
|
|
325
|
-
/* webpackMode: "lazy" */
|
|
326
|
-
'./eds-matomo-notice.entry.js').then(processMod, consoleError);
|
|
327
|
-
case 'eds-progress-bar':
|
|
328
|
-
return import(
|
|
329
|
-
/* webpackMode: "lazy" */
|
|
330
|
-
'./eds-progress-bar.entry.js').then(processMod, consoleError);
|
|
331
|
-
case 'eds-rating':
|
|
332
|
-
return import(
|
|
333
|
-
/* webpackMode: "lazy" */
|
|
334
|
-
'./eds-rating.entry.js').then(processMod, consoleError);
|
|
335
|
-
case 'eds-toast':
|
|
336
|
-
return import(
|
|
337
|
-
/* webpackMode: "lazy" */
|
|
338
|
-
'./eds-toast.entry.js').then(processMod, consoleError);
|
|
339
|
-
case 'logo-variations-horizontal_2':
|
|
340
|
-
return import(
|
|
341
|
-
/* webpackMode: "lazy" */
|
|
342
|
-
'./logo-variations-horizontal_2.entry.js').then(processMod, consoleError);
|
|
343
|
-
case 'token-list_3':
|
|
344
|
-
return import(
|
|
345
|
-
/* webpackMode: "lazy" */
|
|
346
|
-
'./token-list_3.entry.js').then(processMod, consoleError);
|
|
347
|
-
case 'eds-accordion':
|
|
348
|
-
return import(
|
|
349
|
-
/* webpackMode: "lazy" */
|
|
350
|
-
'./eds-accordion.entry.js').then(processMod, consoleError);
|
|
351
|
-
case 'eds-alert':
|
|
352
|
-
return import(
|
|
353
|
-
/* webpackMode: "lazy" */
|
|
354
|
-
'./eds-alert.entry.js').then(processMod, consoleError);
|
|
355
|
-
case 'eds-card-generic':
|
|
356
|
-
return import(
|
|
357
|
-
/* webpackMode: "lazy" */
|
|
358
|
-
'./eds-card-generic.entry.js').then(processMod, consoleError);
|
|
359
|
-
case 'eds-section-core_2':
|
|
360
|
-
return import(
|
|
361
|
-
/* webpackMode: "lazy" */
|
|
362
|
-
'./eds-section-core_2.entry.js').then(processMod, consoleError);
|
|
363
|
-
case 'eds-spinner':
|
|
364
|
-
return import(
|
|
365
|
-
/* webpackMode: "lazy" */
|
|
366
|
-
'./eds-spinner.entry.js').then(processMod, consoleError);
|
|
367
|
-
case 'eds-pagination_2':
|
|
368
|
-
return import(
|
|
369
|
-
/* webpackMode: "lazy" */
|
|
370
|
-
'./eds-pagination_2.entry.js').then(processMod, consoleError);
|
|
371
|
-
case 'eds-card-desc_3':
|
|
372
|
-
return import(
|
|
373
|
-
/* webpackMode: "lazy" */
|
|
374
|
-
'./eds-card-desc_3.entry.js').then(processMod, consoleError);
|
|
375
|
-
case 'eds-code-block':
|
|
376
|
-
return import(
|
|
377
|
-
/* webpackMode: "lazy" */
|
|
378
|
-
'./eds-code-block.entry.js').then(processMod, consoleError);
|
|
379
|
-
}
|
|
380
|
-
}
|
|
72
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
381
73
|
return import(
|
|
382
74
|
/* @vite-ignore */
|
|
383
75
|
/* webpackInclude: /\.entry\.js$/ */
|
|
384
76
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
385
77
|
/* webpackMode: "lazy" */
|
|
386
|
-
`./${bundleId}.entry.js${""}`
|
|
78
|
+
`./${bundleId}.entry.js${BUILD.hotModuleReplacement && hmrVersionId ? "?s-hmr=" + hmrVersionId : ""}`
|
|
387
79
|
).then((importedModule) => {
|
|
388
|
-
{
|
|
80
|
+
if (!BUILD.hotModuleReplacement) {
|
|
389
81
|
cmpModules.set(bundleId, importedModule);
|
|
390
82
|
}
|
|
391
83
|
return importedModule[exportName];
|
|
@@ -394,6 +86,7 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
394
86
|
|
|
395
87
|
// src/client/client-style.ts
|
|
396
88
|
var styles = /* @__PURE__ */ new Map();
|
|
89
|
+
var modeResolutionChain = [];
|
|
397
90
|
|
|
398
91
|
// src/runtime/runtime-constants.ts
|
|
399
92
|
var CONTENT_REF_ID = "r";
|
|
@@ -406,8 +99,16 @@ var HYDRATE_CHILD_ID = "c-id";
|
|
|
406
99
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
407
100
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
408
101
|
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
|
+
];
|
|
409
108
|
var win = typeof window !== "undefined" ? window : {};
|
|
410
109
|
var doc = win.document || { head: {} };
|
|
110
|
+
var H = win.HTMLElement || class {
|
|
111
|
+
};
|
|
411
112
|
var plt = {
|
|
412
113
|
$flags$: 0,
|
|
413
114
|
$resourcesUrl$: "",
|
|
@@ -417,6 +118,9 @@ var plt = {
|
|
|
417
118
|
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
418
119
|
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
419
120
|
};
|
|
121
|
+
var setPlatformHelpers = (helpers) => {
|
|
122
|
+
Object.assign(plt, helpers);
|
|
123
|
+
};
|
|
420
124
|
var supportsShadow = BUILD.shadowDom;
|
|
421
125
|
var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
422
126
|
let supportsListenerOptions2 = false;
|
|
@@ -435,17 +139,21 @@ var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
|
435
139
|
return supportsListenerOptions2;
|
|
436
140
|
})();
|
|
437
141
|
var promiseResolve = (v) => Promise.resolve(v);
|
|
438
|
-
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
142
|
+
var supportsConstructableStylesheets = BUILD.constructableCSS ? /* @__PURE__ */ (() => {
|
|
439
143
|
try {
|
|
440
144
|
new CSSStyleSheet();
|
|
441
145
|
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
442
146
|
} catch (e) {
|
|
443
147
|
}
|
|
444
148
|
return false;
|
|
445
|
-
})() ;
|
|
149
|
+
})() : false;
|
|
150
|
+
|
|
151
|
+
// src/client/client-task-queue.ts
|
|
152
|
+
var queueCongestion = 0;
|
|
446
153
|
var queuePending = false;
|
|
447
154
|
var queueDomReads = [];
|
|
448
155
|
var queueDomWrites = [];
|
|
156
|
+
var queueDomWritesLow = [];
|
|
449
157
|
var queueTask = (queue, write) => (cb) => {
|
|
450
158
|
queue.push(cb);
|
|
451
159
|
if (!queuePending) {
|
|
@@ -467,9 +175,41 @@ var consume = (queue) => {
|
|
|
467
175
|
}
|
|
468
176
|
queue.length = 0;
|
|
469
177
|
};
|
|
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
|
+
};
|
|
470
194
|
var flush = () => {
|
|
195
|
+
if (BUILD.asyncQueue) {
|
|
196
|
+
queueCongestion++;
|
|
197
|
+
}
|
|
471
198
|
consume(queueDomReads);
|
|
472
|
-
{
|
|
199
|
+
if (BUILD.asyncQueue) {
|
|
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 {
|
|
473
213
|
consume(queueDomWrites);
|
|
474
214
|
if (queuePending = queueDomReads.length > 0) {
|
|
475
215
|
plt.raf(flush);
|
|
@@ -477,10 +217,20 @@ var flush = () => {
|
|
|
477
217
|
}
|
|
478
218
|
};
|
|
479
219
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
220
|
+
var readTask = /* @__PURE__ */ queueTask(queueDomReads, false);
|
|
480
221
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
481
222
|
|
|
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
|
+
|
|
482
230
|
// src/utils/constants.ts
|
|
483
231
|
var EMPTY_OBJ = {};
|
|
232
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
233
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
484
234
|
|
|
485
235
|
// src/utils/helpers.ts
|
|
486
236
|
var isDef = (v) => v != null;
|
|
@@ -543,20 +293,89 @@ var unwrapErr = (result) => {
|
|
|
543
293
|
throw result.value;
|
|
544
294
|
}
|
|
545
295
|
};
|
|
296
|
+
var i = 0;
|
|
546
297
|
var createTime = (fnName, tagName = "") => {
|
|
547
|
-
{
|
|
298
|
+
if (BUILD.profile && performance.mark) {
|
|
299
|
+
const key = `st:${fnName}:${tagName}:${i++}`;
|
|
300
|
+
performance.mark(key);
|
|
301
|
+
return () => performance.measure(`[Stencil] ${fnName}() <${tagName}>`, key);
|
|
302
|
+
} else {
|
|
548
303
|
return () => {
|
|
549
304
|
return;
|
|
550
305
|
};
|
|
551
306
|
}
|
|
552
307
|
};
|
|
553
308
|
var uniqueTime = (key, measureText) => {
|
|
554
|
-
{
|
|
309
|
+
if (BUILD.profile && performance.mark) {
|
|
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 {
|
|
555
319
|
return () => {
|
|
556
320
|
return;
|
|
557
321
|
};
|
|
558
322
|
}
|
|
559
323
|
};
|
|
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
|
+
};
|
|
560
379
|
var h = (nodeName, vnodeData, ...children) => {
|
|
561
380
|
let child = null;
|
|
562
381
|
let key = null;
|
|
@@ -572,6 +391,10 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
572
391
|
} else if (child != null && typeof child !== "boolean") {
|
|
573
392
|
if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
|
|
574
393
|
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.`);
|
|
575
398
|
}
|
|
576
399
|
if (simple && lastSimple) {
|
|
577
400
|
vNodeChildren[vNodeChildren.length - 1].$text$ += child;
|
|
@@ -584,20 +407,28 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
584
407
|
};
|
|
585
408
|
walk(children);
|
|
586
409
|
if (vnodeData) {
|
|
587
|
-
if (
|
|
410
|
+
if (BUILD.isDev && nodeName === "input") {
|
|
411
|
+
validateInputProperties(vnodeData);
|
|
412
|
+
}
|
|
413
|
+
if (BUILD.vdomKey && vnodeData.key) {
|
|
588
414
|
key = vnodeData.key;
|
|
589
415
|
}
|
|
590
|
-
if (vnodeData.name) {
|
|
416
|
+
if (BUILD.slotRelocation && vnodeData.name) {
|
|
591
417
|
slotName = vnodeData.name;
|
|
592
418
|
}
|
|
593
|
-
{
|
|
419
|
+
if (BUILD.vdomClass) {
|
|
594
420
|
const classData = vnodeData.className || vnodeData.class;
|
|
595
421
|
if (classData) {
|
|
596
422
|
vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
|
|
597
423
|
}
|
|
598
424
|
}
|
|
599
425
|
}
|
|
600
|
-
if (
|
|
426
|
+
if (BUILD.isDev && vNodeChildren.some(isHost)) {
|
|
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") {
|
|
601
432
|
return nodeName(
|
|
602
433
|
vnodeData === null ? {} : vnodeData,
|
|
603
434
|
vNodeChildren,
|
|
@@ -609,10 +440,10 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
609
440
|
if (vNodeChildren.length > 0) {
|
|
610
441
|
vnode.$children$ = vNodeChildren;
|
|
611
442
|
}
|
|
612
|
-
{
|
|
443
|
+
if (BUILD.vdomKey) {
|
|
613
444
|
vnode.$key$ = key;
|
|
614
445
|
}
|
|
615
|
-
{
|
|
446
|
+
if (BUILD.slotRelocation) {
|
|
616
447
|
vnode.$name$ = slotName;
|
|
617
448
|
}
|
|
618
449
|
return vnode;
|
|
@@ -625,13 +456,13 @@ var newVNode = (tag, text) => {
|
|
|
625
456
|
$elm$: null,
|
|
626
457
|
$children$: null
|
|
627
458
|
};
|
|
628
|
-
{
|
|
459
|
+
if (BUILD.vdomAttribute) {
|
|
629
460
|
vnode.$attrs$ = null;
|
|
630
461
|
}
|
|
631
|
-
{
|
|
462
|
+
if (BUILD.vdomKey) {
|
|
632
463
|
vnode.$key$ = null;
|
|
633
464
|
}
|
|
634
|
-
{
|
|
465
|
+
if (BUILD.slotRelocation) {
|
|
635
466
|
vnode.$name$ = null;
|
|
636
467
|
}
|
|
637
468
|
return vnode;
|
|
@@ -668,6 +499,20 @@ var convertToPrivate = (node) => {
|
|
|
668
499
|
vnode.$name$ = node.vname;
|
|
669
500
|
return vnode;
|
|
670
501
|
};
|
|
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
|
+
};
|
|
671
516
|
|
|
672
517
|
// src/runtime/client-hydrate.ts
|
|
673
518
|
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
@@ -675,7 +520,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
675
520
|
const shadowRoot = hostElm.shadowRoot;
|
|
676
521
|
const childRenderNodes = [];
|
|
677
522
|
const slotNodes = [];
|
|
678
|
-
const shadowRootNodes = shadowRoot ? [] : null;
|
|
523
|
+
const shadowRootNodes = BUILD.shadowDom && shadowRoot ? [] : null;
|
|
679
524
|
const vnode = hostRef.$vnode$ = newVNode(tagName, null);
|
|
680
525
|
if (!plt.$orgLocNodes$) {
|
|
681
526
|
initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
|
|
@@ -699,7 +544,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
699
544
|
}
|
|
700
545
|
plt.$orgLocNodes$.delete(orgLocationId);
|
|
701
546
|
});
|
|
702
|
-
if (shadowRoot) {
|
|
547
|
+
if (BUILD.shadowDom && shadowRoot) {
|
|
703
548
|
shadowRootNodes.map((shadowRootNode) => {
|
|
704
549
|
if (shadowRootNode) {
|
|
705
550
|
shadowRoot.appendChild(shadowRootNode);
|
|
@@ -809,7 +654,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
809
654
|
node["s-sn"] = "";
|
|
810
655
|
}
|
|
811
656
|
node["s-sr"] = true;
|
|
812
|
-
if (shadowRootNodes) {
|
|
657
|
+
if (BUILD.shadowDom && shadowRootNodes) {
|
|
813
658
|
childVNode.$elm$ = doc.createElement(childVNode.$tag$);
|
|
814
659
|
if (childVNode.$name$) {
|
|
815
660
|
childVNode.$elm$.setAttribute("name", childVNode.$name$);
|
|
@@ -826,9 +671,9 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
826
671
|
}
|
|
827
672
|
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
828
673
|
} else if (childNodeType === CONTENT_REF_ID) {
|
|
829
|
-
if (shadowRootNodes) {
|
|
674
|
+
if (BUILD.shadowDom && shadowRootNodes) {
|
|
830
675
|
node.remove();
|
|
831
|
-
} else {
|
|
676
|
+
} else if (BUILD.slotRelocation) {
|
|
832
677
|
hostElm["s-cr"] = node;
|
|
833
678
|
node["s-cn"] = true;
|
|
834
679
|
}
|
|
@@ -862,28 +707,36 @@ var initializeDocumentHydrate = (node, orgLocNodes) => {
|
|
|
862
707
|
}
|
|
863
708
|
}
|
|
864
709
|
};
|
|
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$;
|
|
865
715
|
var parsePropertyValue = (propValue, propType) => {
|
|
866
716
|
if (propValue != null && !isComplexType(propValue)) {
|
|
867
|
-
if (propType & 4 /* Boolean */) {
|
|
717
|
+
if (BUILD.propBoolean && propType & 4 /* Boolean */) {
|
|
868
718
|
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
869
719
|
}
|
|
870
|
-
if (propType & 2 /* Number */) {
|
|
720
|
+
if (BUILD.propNumber && propType & 2 /* Number */) {
|
|
871
721
|
return parseFloat(propValue);
|
|
872
722
|
}
|
|
873
|
-
if (propType & 1 /* String */) {
|
|
723
|
+
if (BUILD.propString && propType & 1 /* String */) {
|
|
874
724
|
return String(propValue);
|
|
875
725
|
}
|
|
876
726
|
return propValue;
|
|
877
727
|
}
|
|
878
728
|
return propValue;
|
|
879
729
|
};
|
|
880
|
-
var getElement = (ref) => getHostRef(ref).$hostElement$ ;
|
|
730
|
+
var getElement = (ref) => BUILD.lazyLoad ? getHostRef(ref).$hostElement$ : ref;
|
|
881
731
|
|
|
882
732
|
// src/runtime/event-emitter.ts
|
|
883
733
|
var createEvent = (ref, name, flags) => {
|
|
884
734
|
const elm = getElement(ref);
|
|
885
735
|
return {
|
|
886
736
|
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
|
+
}
|
|
887
740
|
return emitEvent(elm, name, {
|
|
888
741
|
bubbles: !!(flags & 4 /* Bubbles */),
|
|
889
742
|
composed: !!(flags & 2 /* Composed */),
|
|
@@ -915,8 +768,11 @@ var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
|
915
768
|
};
|
|
916
769
|
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
917
770
|
var _a;
|
|
918
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
771
|
+
const scopeId2 = getScopeId(cmpMeta, mode);
|
|
919
772
|
const style = styles.get(scopeId2);
|
|
773
|
+
if (!BUILD.attachStyles) {
|
|
774
|
+
return scopeId2;
|
|
775
|
+
}
|
|
920
776
|
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
921
777
|
if (style) {
|
|
922
778
|
if (typeof style === "string") {
|
|
@@ -927,7 +783,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
927
783
|
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
928
784
|
}
|
|
929
785
|
if (!appliedStyles.has(scopeId2)) {
|
|
930
|
-
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
786
|
+
if (BUILD.hydrateClientSide && styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
931
787
|
styleElm.innerHTML = style;
|
|
932
788
|
} else {
|
|
933
789
|
styleElm = doc.createElement("style");
|
|
@@ -936,6 +792,9 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
936
792
|
if (nonce != null) {
|
|
937
793
|
styleElm.setAttribute("nonce", nonce);
|
|
938
794
|
}
|
|
795
|
+
if ((BUILD.hydrateServerSide || BUILD.hotModuleReplacement) && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
796
|
+
styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
|
|
797
|
+
}
|
|
939
798
|
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
940
799
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
941
800
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
@@ -958,7 +817,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
958
817
|
appliedStyles.add(scopeId2);
|
|
959
818
|
}
|
|
960
819
|
}
|
|
961
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
820
|
+
} else if (BUILD.constructableCSS && !styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
962
821
|
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
963
822
|
}
|
|
964
823
|
}
|
|
@@ -970,30 +829,35 @@ var attachStyles = (hostRef) => {
|
|
|
970
829
|
const flags = cmpMeta.$flags$;
|
|
971
830
|
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
972
831
|
const scopeId2 = addStyle(
|
|
973
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
974
|
-
cmpMeta
|
|
975
|
-
|
|
832
|
+
BUILD.shadowDom && supportsShadow && elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
833
|
+
cmpMeta,
|
|
834
|
+
hostRef.$modeName$
|
|
835
|
+
);
|
|
836
|
+
if ((BUILD.shadowDom || BUILD.scoped) && BUILD.cssAnnotations && flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
976
837
|
elm["s-sc"] = scopeId2;
|
|
977
838
|
elm.classList.add(scopeId2 + "-h");
|
|
839
|
+
if (BUILD.scoped && flags & 2 /* scopedCssEncapsulation */) {
|
|
840
|
+
elm.classList.add(scopeId2 + "-s");
|
|
841
|
+
}
|
|
978
842
|
}
|
|
979
843
|
endAttachStyles();
|
|
980
844
|
};
|
|
981
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
845
|
+
var getScopeId = (cmp, mode) => "sc-" + (BUILD.mode && mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
|
|
982
846
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
983
847
|
if (oldValue !== newValue) {
|
|
984
848
|
let isProp = isMemberInElement(elm, memberName);
|
|
985
849
|
let ln = memberName.toLowerCase();
|
|
986
|
-
if (memberName === "class") {
|
|
850
|
+
if (BUILD.vdomClass && memberName === "class") {
|
|
987
851
|
const classList = elm.classList;
|
|
988
852
|
const oldClasses = parseClassList(oldValue);
|
|
989
853
|
const newClasses = parseClassList(newValue);
|
|
990
854
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
991
855
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
992
|
-
} else if (memberName === "style") {
|
|
993
|
-
{
|
|
856
|
+
} else if (BUILD.vdomStyle && memberName === "style") {
|
|
857
|
+
if (BUILD.updatable) {
|
|
994
858
|
for (const prop in oldValue) {
|
|
995
859
|
if (!newValue || newValue[prop] == null) {
|
|
996
|
-
if (prop.includes("-")) {
|
|
860
|
+
if (!BUILD.hydrateServerSide && prop.includes("-")) {
|
|
997
861
|
elm.style.removeProperty(prop);
|
|
998
862
|
} else {
|
|
999
863
|
elm.style[prop] = "";
|
|
@@ -1003,18 +867,19 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
1003
867
|
}
|
|
1004
868
|
for (const prop in newValue) {
|
|
1005
869
|
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
1006
|
-
if (prop.includes("-")) {
|
|
870
|
+
if (!BUILD.hydrateServerSide && prop.includes("-")) {
|
|
1007
871
|
elm.style.setProperty(prop, newValue[prop]);
|
|
1008
872
|
} else {
|
|
1009
873
|
elm.style[prop] = newValue[prop];
|
|
1010
874
|
}
|
|
1011
875
|
}
|
|
1012
876
|
}
|
|
1013
|
-
} else if (
|
|
877
|
+
} else if (BUILD.vdomKey && memberName === "key") {
|
|
878
|
+
} else if (BUILD.vdomRef && memberName === "ref") {
|
|
1014
879
|
if (newValue) {
|
|
1015
880
|
newValue(elm);
|
|
1016
881
|
}
|
|
1017
|
-
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
882
|
+
} else if (BUILD.vdomListener && (BUILD.lazyLoad ? !isProp : !elm.__lookupSetter__(memberName)) && memberName[0] === "o" && memberName[1] === "n") {
|
|
1018
883
|
if (memberName[2] === "-") {
|
|
1019
884
|
memberName = memberName.slice(3);
|
|
1020
885
|
} else if (isMemberInElement(win, ln)) {
|
|
@@ -1032,7 +897,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
1032
897
|
plt.ael(elm, memberName, newValue, capture);
|
|
1033
898
|
}
|
|
1034
899
|
}
|
|
1035
|
-
} else {
|
|
900
|
+
} else if (BUILD.vdomPropOrAttr) {
|
|
1036
901
|
const isComplex = isComplexType(newValue);
|
|
1037
902
|
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
1038
903
|
try {
|
|
@@ -1054,7 +919,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
1054
919
|
}
|
|
1055
920
|
}
|
|
1056
921
|
let xlink = false;
|
|
1057
|
-
{
|
|
922
|
+
if (BUILD.vdomXlink) {
|
|
1058
923
|
if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
|
|
1059
924
|
memberName = ln;
|
|
1060
925
|
xlink = true;
|
|
@@ -1062,7 +927,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
1062
927
|
}
|
|
1063
928
|
if (newValue == null || newValue === false) {
|
|
1064
929
|
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
1065
|
-
if (xlink) {
|
|
930
|
+
if (BUILD.vdomXlink && xlink) {
|
|
1066
931
|
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
1067
932
|
} else {
|
|
1068
933
|
elm.removeAttribute(memberName);
|
|
@@ -1070,7 +935,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
1070
935
|
}
|
|
1071
936
|
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
1072
937
|
newValue = newValue === true ? "" : newValue;
|
|
1073
|
-
if (xlink) {
|
|
938
|
+
if (BUILD.vdomXlink && xlink) {
|
|
1074
939
|
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
1075
940
|
} else {
|
|
1076
941
|
elm.setAttribute(memberName, newValue);
|
|
@@ -1089,7 +954,7 @@ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
|
1089
954
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
1090
955
|
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
1091
956
|
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
1092
|
-
{
|
|
957
|
+
if (BUILD.updatable) {
|
|
1093
958
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
1094
959
|
if (!(memberName in newVnodeAttrs)) {
|
|
1095
960
|
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
@@ -1125,7 +990,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
1125
990
|
let elm;
|
|
1126
991
|
let childNode;
|
|
1127
992
|
let oldVNode;
|
|
1128
|
-
if (!useNativeShadowDom) {
|
|
993
|
+
if (BUILD.slotRelocation && !useNativeShadowDom) {
|
|
1129
994
|
checkSlotRelocate = true;
|
|
1130
995
|
if (newVNode2.$tag$ === "slot") {
|
|
1131
996
|
if (scopeId) {
|
|
@@ -1143,15 +1008,29 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
1143
1008
|
);
|
|
1144
1009
|
}
|
|
1145
1010
|
}
|
|
1146
|
-
if (newVNode2.$
|
|
1011
|
+
if (BUILD.isDev && newVNode2.$elm$) {
|
|
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) {
|
|
1147
1017
|
elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
|
|
1148
|
-
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
1149
|
-
elm = newVNode2.$elm$ = doc.createTextNode("");
|
|
1018
|
+
} else if (BUILD.slotRelocation && newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
1019
|
+
elm = newVNode2.$elm$ = BUILD.isDebug || BUILD.hydrateServerSide ? slotReferenceDebugNode(newVNode2) : doc.createTextNode("");
|
|
1150
1020
|
} else {
|
|
1151
|
-
|
|
1021
|
+
if (BUILD.svg && !isSvgMode) {
|
|
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(
|
|
1152
1028
|
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
1153
1029
|
);
|
|
1154
|
-
{
|
|
1030
|
+
if (BUILD.svg && isSvgMode && newVNode2.$tag$ === "foreignObject") {
|
|
1031
|
+
isSvgMode = false;
|
|
1032
|
+
}
|
|
1033
|
+
if (BUILD.vdomAttribute) {
|
|
1155
1034
|
updateElement(null, newVNode2, isSvgMode);
|
|
1156
1035
|
}
|
|
1157
1036
|
const rootNode = elm.getRootNode();
|
|
@@ -1159,6 +1038,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
1159
1038
|
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
1160
1039
|
elm.classList.add(elm["s-si"] = scopeId);
|
|
1161
1040
|
}
|
|
1041
|
+
if (BUILD.scoped) {
|
|
1042
|
+
updateElementScopeIds(elm, parentElm);
|
|
1043
|
+
}
|
|
1162
1044
|
if (newVNode2.$children$) {
|
|
1163
1045
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
1164
1046
|
childNode = createElm(oldParentVNode, newVNode2, i2, elm);
|
|
@@ -1167,9 +1049,16 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
1167
1049
|
}
|
|
1168
1050
|
}
|
|
1169
1051
|
}
|
|
1052
|
+
if (BUILD.svg) {
|
|
1053
|
+
if (newVNode2.$tag$ === "svg") {
|
|
1054
|
+
isSvgMode = false;
|
|
1055
|
+
} else if (elm.tagName === "foreignObject") {
|
|
1056
|
+
isSvgMode = true;
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1170
1059
|
}
|
|
1171
1060
|
elm["s-hn"] = hostTagName;
|
|
1172
|
-
{
|
|
1061
|
+
if (BUILD.slotRelocation) {
|
|
1173
1062
|
if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
|
|
1174
1063
|
elm["s-sr"] = true;
|
|
1175
1064
|
elm["s-cr"] = contentRef;
|
|
@@ -1177,7 +1066,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
1177
1066
|
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
|
1178
1067
|
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
1179
1068
|
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
1180
|
-
{
|
|
1069
|
+
if (BUILD.experimentalSlotFixes) {
|
|
1070
|
+
relocateToHostRoot(oldParentVNode.$elm$);
|
|
1071
|
+
} else {
|
|
1181
1072
|
putBackInOriginalLocation(oldParentVNode.$elm$, false);
|
|
1182
1073
|
}
|
|
1183
1074
|
}
|
|
@@ -1185,6 +1076,22 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
1185
1076
|
}
|
|
1186
1077
|
return elm;
|
|
1187
1078
|
};
|
|
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
|
+
};
|
|
1188
1095
|
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
1189
1096
|
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
1190
1097
|
const oldSlotChildNodes = Array.from(parentElm.childNodes);
|
|
@@ -1212,9 +1119,9 @@ var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
1212
1119
|
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
1213
1120
|
};
|
|
1214
1121
|
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
1215
|
-
let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
|
|
1122
|
+
let containerElm = BUILD.slotRelocation && parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
|
|
1216
1123
|
let childNode;
|
|
1217
|
-
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
1124
|
+
if (BUILD.shadowDom && containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
1218
1125
|
containerElm = containerElm.shadowRoot;
|
|
1219
1126
|
}
|
|
1220
1127
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
@@ -1222,7 +1129,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
|
1222
1129
|
childNode = createElm(null, parentVNode, startIdx, parentElm);
|
|
1223
1130
|
if (childNode) {
|
|
1224
1131
|
vnodes[startIdx].$elm$ = childNode;
|
|
1225
|
-
insertBefore(containerElm, childNode, referenceNode(before) );
|
|
1132
|
+
insertBefore(containerElm, childNode, BUILD.slotRelocation ? referenceNode(before) : before);
|
|
1226
1133
|
}
|
|
1227
1134
|
}
|
|
1228
1135
|
}
|
|
@@ -1234,7 +1141,7 @@ var removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
|
1234
1141
|
const elm = vnode.$elm$;
|
|
1235
1142
|
nullifyVNodeRefs(vnode);
|
|
1236
1143
|
if (elm) {
|
|
1237
|
-
{
|
|
1144
|
+
if (BUILD.slotRelocation) {
|
|
1238
1145
|
checkSlotFallbackVisibility = true;
|
|
1239
1146
|
if (elm["s-ol"]) {
|
|
1240
1147
|
elm["s-ol"].remove();
|
|
@@ -1278,7 +1185,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1278
1185
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
1279
1186
|
newEndVnode = newCh[--newEndIdx];
|
|
1280
1187
|
} else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
|
1281
|
-
if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
1188
|
+
if (BUILD.slotRelocation && (oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
1282
1189
|
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
|
1283
1190
|
}
|
|
1284
1191
|
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
@@ -1286,7 +1193,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1286
1193
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
1287
1194
|
newEndVnode = newCh[--newEndIdx];
|
|
1288
1195
|
} else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
1289
|
-
if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
1196
|
+
if (BUILD.slotRelocation && (oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
1290
1197
|
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
|
1291
1198
|
}
|
|
1292
1199
|
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
@@ -1295,7 +1202,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1295
1202
|
newStartVnode = newCh[++newStartIdx];
|
|
1296
1203
|
} else {
|
|
1297
1204
|
idxInOld = -1;
|
|
1298
|
-
{
|
|
1205
|
+
if (BUILD.vdomKey) {
|
|
1299
1206
|
for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
|
|
1300
1207
|
if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
|
|
1301
1208
|
idxInOld = i2;
|
|
@@ -1303,7 +1210,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1303
1210
|
}
|
|
1304
1211
|
}
|
|
1305
1212
|
}
|
|
1306
|
-
if (idxInOld >= 0) {
|
|
1213
|
+
if (BUILD.vdomKey && idxInOld >= 0) {
|
|
1307
1214
|
elmToMove = oldCh[idxInOld];
|
|
1308
1215
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
1309
1216
|
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
|
|
@@ -1318,8 +1225,10 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1318
1225
|
newStartVnode = newCh[++newStartIdx];
|
|
1319
1226
|
}
|
|
1320
1227
|
if (node) {
|
|
1321
|
-
{
|
|
1228
|
+
if (BUILD.slotRelocation) {
|
|
1322
1229
|
insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
|
|
1230
|
+
} else {
|
|
1231
|
+
insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
|
|
1323
1232
|
}
|
|
1324
1233
|
}
|
|
1325
1234
|
}
|
|
@@ -1333,13 +1242,13 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1333
1242
|
newStartIdx,
|
|
1334
1243
|
newEndIdx
|
|
1335
1244
|
);
|
|
1336
|
-
} else if (newStartIdx > newEndIdx) {
|
|
1245
|
+
} else if (BUILD.updatable && newStartIdx > newEndIdx) {
|
|
1337
1246
|
removeVnodes(oldCh, oldStartIdx, oldEndIdx);
|
|
1338
1247
|
}
|
|
1339
1248
|
};
|
|
1340
1249
|
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
1341
1250
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
1342
|
-
if (leftVNode.$tag$ === "slot") {
|
|
1251
|
+
if (BUILD.slotRelocation && leftVNode.$tag$ === "slot") {
|
|
1343
1252
|
if (
|
|
1344
1253
|
// The component gets hydrated and no VDOM has been initialized.
|
|
1345
1254
|
// Here the comparison can't happen as $name$ property is not set for `leftNode`.
|
|
@@ -1351,7 +1260,7 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
1351
1260
|
}
|
|
1352
1261
|
return leftVNode.$name$ === rightVNode.$name$;
|
|
1353
1262
|
}
|
|
1354
|
-
if (!isInitialRender) {
|
|
1263
|
+
if (BUILD.vdomKey && !isInitialRender) {
|
|
1355
1264
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
1356
1265
|
}
|
|
1357
1266
|
return true;
|
|
@@ -1369,16 +1278,24 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1369
1278
|
const tag = newVNode2.$tag$;
|
|
1370
1279
|
const text = newVNode2.$text$;
|
|
1371
1280
|
let defaultHolder;
|
|
1372
|
-
if (text === null) {
|
|
1373
|
-
{
|
|
1374
|
-
|
|
1281
|
+
if (!BUILD.vdomText || text === null) {
|
|
1282
|
+
if (BUILD.svg) {
|
|
1283
|
+
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
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 {
|
|
1375
1292
|
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
1376
1293
|
}
|
|
1377
1294
|
}
|
|
1378
|
-
if (oldChildren !== null && newChildren !== null) {
|
|
1295
|
+
if (BUILD.updatable && oldChildren !== null && newChildren !== null) {
|
|
1379
1296
|
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
1380
1297
|
} else if (newChildren !== null) {
|
|
1381
|
-
if (oldVNode.$text$ !== null) {
|
|
1298
|
+
if (BUILD.updatable && BUILD.vdomText && oldVNode.$text$ !== null) {
|
|
1382
1299
|
elm.textContent = "";
|
|
1383
1300
|
}
|
|
1384
1301
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
@@ -1388,9 +1305,12 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1388
1305
|
) {
|
|
1389
1306
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
1390
1307
|
}
|
|
1391
|
-
|
|
1308
|
+
if (BUILD.svg && isSvgMode && tag === "svg") {
|
|
1309
|
+
isSvgMode = false;
|
|
1310
|
+
}
|
|
1311
|
+
} else if (BUILD.vdomText && BUILD.slotRelocation && (defaultHolder = elm["s-cr"])) {
|
|
1392
1312
|
defaultHolder.parentNode.textContent = text;
|
|
1393
|
-
} else if (oldVNode.$text$ !== text) {
|
|
1313
|
+
} else if (BUILD.vdomText && oldVNode.$text$ !== text) {
|
|
1394
1314
|
elm.data = text;
|
|
1395
1315
|
}
|
|
1396
1316
|
};
|
|
@@ -1432,7 +1352,7 @@ var markSlotContentForRelocation = (elm) => {
|
|
|
1432
1352
|
const slotName = childNode["s-sn"];
|
|
1433
1353
|
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
1434
1354
|
node = hostContentNodes[j];
|
|
1435
|
-
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!BUILD.experimentalSlotFixes
|
|
1355
|
+
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!BUILD.experimentalSlotFixes || !node["s-sh"] || node["s-sh"] !== childNode["s-hn"])) {
|
|
1436
1356
|
if (isNodeLocatedInSlot(node, slotName)) {
|
|
1437
1357
|
let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
1438
1358
|
checkSlotFallbackVisibility = true;
|
|
@@ -1486,23 +1406,66 @@ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
|
1486
1406
|
return slotName === "";
|
|
1487
1407
|
};
|
|
1488
1408
|
var nullifyVNodeRefs = (vNode) => {
|
|
1489
|
-
{
|
|
1409
|
+
if (BUILD.vdomRef) {
|
|
1490
1410
|
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
1491
1411
|
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
1492
1412
|
}
|
|
1493
1413
|
};
|
|
1494
1414
|
var insertBefore = (parent, newNode, reference) => {
|
|
1495
1415
|
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
1416
|
+
if (BUILD.scoped) {
|
|
1417
|
+
updateElementScopeIds(newNode, parent);
|
|
1418
|
+
}
|
|
1496
1419
|
return inserted;
|
|
1497
1420
|
};
|
|
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
|
+
};
|
|
1498
1447
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
1499
|
-
var _a, _b, _c, _d;
|
|
1448
|
+
var _a, _b, _c, _d, _e;
|
|
1500
1449
|
const hostElm = hostRef.$hostElement$;
|
|
1501
1450
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
1502
1451
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
1503
1452
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
1504
1453
|
hostTagName = hostElm.tagName;
|
|
1505
|
-
if (
|
|
1454
|
+
if (BUILD.isDev && Array.isArray(renderFnResults) && renderFnResults.some(isHost)) {
|
|
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$) {
|
|
1506
1469
|
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
1507
1470
|
cmpMeta.$attrsToReflect$.map(
|
|
1508
1471
|
([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]
|
|
@@ -1518,24 +1481,24 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1518
1481
|
rootVnode.$tag$ = null;
|
|
1519
1482
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
1520
1483
|
hostRef.$vnode$ = rootVnode;
|
|
1521
|
-
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
1522
|
-
{
|
|
1484
|
+
rootVnode.$elm$ = oldVNode.$elm$ = BUILD.shadowDom ? hostElm.shadowRoot || hostElm : hostElm;
|
|
1485
|
+
if (BUILD.scoped || BUILD.shadowDom) {
|
|
1523
1486
|
scopeId = hostElm["s-sc"];
|
|
1524
1487
|
}
|
|
1525
|
-
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
1526
|
-
{
|
|
1488
|
+
useNativeShadowDom = supportsShadow && (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
1489
|
+
if (BUILD.slotRelocation) {
|
|
1527
1490
|
contentRef = hostElm["s-cr"];
|
|
1528
1491
|
checkSlotFallbackVisibility = false;
|
|
1529
1492
|
}
|
|
1530
1493
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
1531
|
-
{
|
|
1494
|
+
if (BUILD.slotRelocation) {
|
|
1532
1495
|
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
1533
1496
|
if (checkSlotRelocate) {
|
|
1534
1497
|
markSlotContentForRelocation(rootVnode.$elm$);
|
|
1535
1498
|
for (const relocateData of relocateNodes) {
|
|
1536
1499
|
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1537
1500
|
if (!nodeToRelocate["s-ol"]) {
|
|
1538
|
-
const orgLocationNode = doc.createTextNode("");
|
|
1501
|
+
const orgLocationNode = BUILD.isDebug || BUILD.hydrateServerSide ? originalLocationDebugNode(nodeToRelocate) : doc.createTextNode("");
|
|
1539
1502
|
orgLocationNode["s-nr"] = nodeToRelocate;
|
|
1540
1503
|
insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
|
|
1541
1504
|
}
|
|
@@ -1546,7 +1509,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1546
1509
|
if (slotRefNode) {
|
|
1547
1510
|
const parentNodeRef = slotRefNode.parentNode;
|
|
1548
1511
|
let insertBeforeNode = slotRefNode.nextSibling;
|
|
1549
|
-
{
|
|
1512
|
+
if (!BUILD.experimentalSlotFixes || insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */) {
|
|
1550
1513
|
let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
|
|
1551
1514
|
while (orgLocationNode) {
|
|
1552
1515
|
let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
|
|
@@ -1565,7 +1528,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1565
1528
|
}
|
|
1566
1529
|
if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
1567
1530
|
if (nodeToRelocate !== insertBeforeNode) {
|
|
1568
|
-
if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
|
|
1531
|
+
if (!BUILD.experimentalSlotFixes && !nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
|
|
1569
1532
|
nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
|
|
1570
1533
|
}
|
|
1571
1534
|
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
|
|
@@ -1591,31 +1554,47 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1591
1554
|
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
1592
1555
|
relocateNodes.length = 0;
|
|
1593
1556
|
}
|
|
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
|
+
}
|
|
1594
1567
|
contentRef = void 0;
|
|
1595
1568
|
};
|
|
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
|
+
);
|
|
1596
1575
|
|
|
1597
1576
|
// src/runtime/update-component.ts
|
|
1598
1577
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
1599
|
-
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
1578
|
+
if (BUILD.asyncLoading && ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
1600
1579
|
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
1601
1580
|
}
|
|
1602
1581
|
};
|
|
1603
1582
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
1604
|
-
{
|
|
1583
|
+
if (BUILD.taskQueue && BUILD.updatable) {
|
|
1605
1584
|
hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
|
|
1606
1585
|
}
|
|
1607
|
-
if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
|
|
1586
|
+
if (BUILD.asyncLoading && hostRef.$flags$ & 4 /* isWaitingForChildren */) {
|
|
1608
1587
|
hostRef.$flags$ |= 512 /* needsRerender */;
|
|
1609
1588
|
return;
|
|
1610
1589
|
}
|
|
1611
1590
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
1612
1591
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
1613
|
-
return writeTask(dispatch) ;
|
|
1592
|
+
return BUILD.taskQueue ? writeTask(dispatch) : dispatch();
|
|
1614
1593
|
};
|
|
1615
1594
|
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
1616
1595
|
const elm = hostRef.$hostElement$;
|
|
1617
1596
|
const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
|
|
1618
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
1597
|
+
const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
|
|
1619
1598
|
if (!instance) {
|
|
1620
1599
|
throw new Error(
|
|
1621
1600
|
`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`
|
|
@@ -1623,16 +1602,26 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1623
1602
|
}
|
|
1624
1603
|
let maybePromise;
|
|
1625
1604
|
if (isInitialLoad) {
|
|
1626
|
-
{
|
|
1605
|
+
if (BUILD.lazyLoad && BUILD.hostListener) {
|
|
1627
1606
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
1628
1607
|
if (hostRef.$queuedListeners$) {
|
|
1629
1608
|
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
1630
1609
|
hostRef.$queuedListeners$ = void 0;
|
|
1631
1610
|
}
|
|
1632
1611
|
}
|
|
1633
|
-
|
|
1612
|
+
emitLifecycleEvent(elm, "componentWillLoad");
|
|
1613
|
+
if (BUILD.cmpWillLoad) {
|
|
1634
1614
|
maybePromise = safeCall(instance, "componentWillLoad");
|
|
1635
1615
|
}
|
|
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"));
|
|
1636
1625
|
}
|
|
1637
1626
|
endSchedule();
|
|
1638
1627
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
@@ -1647,20 +1636,43 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1647
1636
|
const elm = hostRef.$hostElement$;
|
|
1648
1637
|
const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
|
|
1649
1638
|
const rc = elm["s-rc"];
|
|
1650
|
-
if (isInitialLoad) {
|
|
1639
|
+
if (BUILD.style && isInitialLoad) {
|
|
1651
1640
|
attachStyles(hostRef);
|
|
1652
1641
|
}
|
|
1653
1642
|
const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
|
|
1654
|
-
{
|
|
1643
|
+
if (BUILD.isDev) {
|
|
1644
|
+
hostRef.$flags$ |= 1024 /* devOnRender */;
|
|
1645
|
+
}
|
|
1646
|
+
if (BUILD.hydrateServerSide) {
|
|
1647
|
+
await callRender(hostRef, instance, elm, isInitialLoad);
|
|
1648
|
+
} else {
|
|
1655
1649
|
callRender(hostRef, instance, elm, isInitialLoad);
|
|
1656
1650
|
}
|
|
1657
|
-
if (
|
|
1651
|
+
if (BUILD.isDev) {
|
|
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) {
|
|
1658
1670
|
rc.map((cb) => cb());
|
|
1659
1671
|
elm["s-rc"] = void 0;
|
|
1660
1672
|
}
|
|
1661
1673
|
endRender();
|
|
1662
1674
|
endUpdate();
|
|
1663
|
-
{
|
|
1675
|
+
if (BUILD.asyncLoading) {
|
|
1664
1676
|
const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
|
|
1665
1677
|
const postUpdate = () => postUpdateComponent(hostRef);
|
|
1666
1678
|
if (childrenPromises.length === 0) {
|
|
@@ -1670,60 +1682,103 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1670
1682
|
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
1671
1683
|
childrenPromises.length = 0;
|
|
1672
1684
|
}
|
|
1685
|
+
} else {
|
|
1686
|
+
postUpdateComponent(hostRef);
|
|
1673
1687
|
}
|
|
1674
1688
|
};
|
|
1689
|
+
var renderingRef = null;
|
|
1675
1690
|
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;
|
|
1676
1695
|
try {
|
|
1677
|
-
|
|
1678
|
-
|
|
1696
|
+
renderingRef = instance;
|
|
1697
|
+
instance = allRenderFn ? instance.render() : instance.render && instance.render();
|
|
1698
|
+
if (updatable && taskQueue) {
|
|
1679
1699
|
hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
|
|
1680
1700
|
}
|
|
1681
|
-
{
|
|
1701
|
+
if (updatable || lazyLoad) {
|
|
1682
1702
|
hostRef.$flags$ |= 2 /* hasRendered */;
|
|
1683
1703
|
}
|
|
1684
|
-
{
|
|
1685
|
-
{
|
|
1686
|
-
{
|
|
1704
|
+
if (BUILD.hasRenderFn || BUILD.reflect) {
|
|
1705
|
+
if (BUILD.vdomRender || BUILD.reflect) {
|
|
1706
|
+
if (BUILD.hydrateServerSide) {
|
|
1707
|
+
return Promise.resolve(instance).then((value) => renderVdom(hostRef, value, isInitialLoad));
|
|
1708
|
+
} else {
|
|
1687
1709
|
renderVdom(hostRef, instance, isInitialLoad);
|
|
1688
1710
|
}
|
|
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
|
+
}
|
|
1689
1718
|
}
|
|
1690
1719
|
}
|
|
1691
1720
|
} catch (e) {
|
|
1692
1721
|
consoleError(e, hostRef.$hostElement$);
|
|
1693
1722
|
}
|
|
1723
|
+
renderingRef = null;
|
|
1694
1724
|
return null;
|
|
1695
1725
|
};
|
|
1726
|
+
var getRenderingRef = () => renderingRef;
|
|
1696
1727
|
var postUpdateComponent = (hostRef) => {
|
|
1697
1728
|
const tagName = hostRef.$cmpMeta$.$tagName$;
|
|
1698
1729
|
const elm = hostRef.$hostElement$;
|
|
1699
1730
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
1700
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
1731
|
+
const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
|
|
1701
1732
|
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");
|
|
1702
1743
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
1703
1744
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
1704
|
-
{
|
|
1745
|
+
if (BUILD.asyncLoading && BUILD.cssAnnotations) {
|
|
1705
1746
|
addHydratedFlag(elm);
|
|
1706
1747
|
}
|
|
1707
|
-
{
|
|
1748
|
+
if (BUILD.cmpDidLoad) {
|
|
1749
|
+
if (BUILD.isDev) {
|
|
1750
|
+
hostRef.$flags$ |= 2048 /* devOnDidLoad */;
|
|
1751
|
+
}
|
|
1708
1752
|
safeCall(instance, "componentDidLoad");
|
|
1753
|
+
if (BUILD.isDev) {
|
|
1754
|
+
hostRef.$flags$ &= ~2048 /* devOnDidLoad */;
|
|
1755
|
+
}
|
|
1709
1756
|
}
|
|
1757
|
+
emitLifecycleEvent(elm, "componentDidLoad");
|
|
1710
1758
|
endPostUpdate();
|
|
1711
|
-
{
|
|
1759
|
+
if (BUILD.asyncLoading) {
|
|
1712
1760
|
hostRef.$onReadyResolve$(elm);
|
|
1713
1761
|
if (!ancestorComponent) {
|
|
1714
|
-
appDidLoad();
|
|
1762
|
+
appDidLoad(tagName);
|
|
1715
1763
|
}
|
|
1716
1764
|
}
|
|
1717
1765
|
} else {
|
|
1718
|
-
{
|
|
1766
|
+
if (BUILD.cmpDidUpdate) {
|
|
1767
|
+
if (BUILD.isDev) {
|
|
1768
|
+
hostRef.$flags$ |= 1024 /* devOnRender */;
|
|
1769
|
+
}
|
|
1719
1770
|
safeCall(instance, "componentDidUpdate");
|
|
1771
|
+
if (BUILD.isDev) {
|
|
1772
|
+
hostRef.$flags$ &= ~1024 /* devOnRender */;
|
|
1773
|
+
}
|
|
1720
1774
|
}
|
|
1775
|
+
emitLifecycleEvent(elm, "componentDidUpdate");
|
|
1721
1776
|
endPostUpdate();
|
|
1722
1777
|
}
|
|
1723
|
-
{
|
|
1778
|
+
if (BUILD.method && BUILD.lazyLoad) {
|
|
1724
1779
|
hostRef.$onInstanceResolve$(elm);
|
|
1725
1780
|
}
|
|
1726
|
-
{
|
|
1781
|
+
if (BUILD.asyncLoading) {
|
|
1727
1782
|
if (hostRef.$onRenderResolve$) {
|
|
1728
1783
|
hostRef.$onRenderResolve$();
|
|
1729
1784
|
hostRef.$onRenderResolve$ = void 0;
|
|
@@ -1734,11 +1789,28 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1734
1789
|
hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
|
|
1735
1790
|
}
|
|
1736
1791
|
};
|
|
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
|
+
};
|
|
1737
1803
|
var appDidLoad = (who) => {
|
|
1738
|
-
{
|
|
1804
|
+
if (BUILD.cssAnnotations) {
|
|
1739
1805
|
addHydratedFlag(doc.documentElement);
|
|
1740
1806
|
}
|
|
1807
|
+
if (BUILD.asyncQueue) {
|
|
1808
|
+
plt.$flags$ |= 2 /* appLoaded */;
|
|
1809
|
+
}
|
|
1741
1810
|
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
|
+
}
|
|
1742
1814
|
};
|
|
1743
1815
|
var safeCall = (instance, method, arg) => {
|
|
1744
1816
|
if (instance && instance[method]) {
|
|
@@ -1750,31 +1822,77 @@ var safeCall = (instance, method, arg) => {
|
|
|
1750
1822
|
}
|
|
1751
1823
|
return void 0;
|
|
1752
1824
|
};
|
|
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
|
+
};
|
|
1753
1836
|
var addHydratedFlag = (elm) => {
|
|
1754
|
-
var _a;
|
|
1755
|
-
return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
|
|
1837
|
+
var _a, _b;
|
|
1838
|
+
return BUILD.hydratedClass ? elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") : BUILD.hydratedAttribute ? elm.setAttribute((_b = BUILD.hydratedSelectorName) != null ? _b : "hydrated", "") : void 0;
|
|
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
|
+
}
|
|
1756
1851
|
};
|
|
1757
1852
|
|
|
1758
1853
|
// src/runtime/set-value.ts
|
|
1759
1854
|
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
1760
1855
|
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
1761
1856
|
const hostRef = getHostRef(ref);
|
|
1762
|
-
if (!hostRef) {
|
|
1857
|
+
if (BUILD.lazyLoad && !hostRef) {
|
|
1763
1858
|
throw new Error(
|
|
1764
1859
|
`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).`
|
|
1765
1860
|
);
|
|
1766
1861
|
}
|
|
1767
|
-
const elm = hostRef.$hostElement$ ;
|
|
1862
|
+
const elm = BUILD.lazyLoad ? hostRef.$hostElement$ : ref;
|
|
1768
1863
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
1769
1864
|
const flags = hostRef.$flags$;
|
|
1770
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
1865
|
+
const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
|
|
1771
1866
|
newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
|
|
1772
1867
|
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
1773
1868
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1774
|
-
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
1869
|
+
if ((!BUILD.lazyLoad || !(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
1775
1870
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
1776
|
-
if (
|
|
1777
|
-
if (
|
|
1871
|
+
if (BUILD.isDev) {
|
|
1872
|
+
if (hostRef.$flags$ & 1024 /* devOnRender */) {
|
|
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 */) {
|
|
1778
1896
|
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1779
1897
|
if (watchMethods) {
|
|
1780
1898
|
watchMethods.map((watchMethodName) => {
|
|
@@ -1786,7 +1904,12 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1786
1904
|
});
|
|
1787
1905
|
}
|
|
1788
1906
|
}
|
|
1789
|
-
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1907
|
+
if (BUILD.updatable && (flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1908
|
+
if (BUILD.cmpShouldUpdate && instance.componentShouldUpdate) {
|
|
1909
|
+
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
1910
|
+
return;
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1790
1913
|
scheduleUpdate(hostRef, false);
|
|
1791
1914
|
}
|
|
1792
1915
|
}
|
|
@@ -1797,24 +1920,59 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1797
1920
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1798
1921
|
var _a, _b;
|
|
1799
1922
|
const prototype = Cstr.prototype;
|
|
1800
|
-
if (
|
|
1801
|
-
|
|
1923
|
+
if (BUILD.formAssociated && cmpMeta.$flags$ & 64 /* formAssociated */ && flags & 1 /* isElementConstructor */) {
|
|
1924
|
+
FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach(
|
|
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$) {
|
|
1802
1945
|
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1803
1946
|
}
|
|
1804
1947
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1805
1948
|
members.map(([memberName, [memberFlags]]) => {
|
|
1806
|
-
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1949
|
+
if ((BUILD.prop || BUILD.state) && (memberFlags & 31 /* Prop */ || (!BUILD.lazyLoad || flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1807
1950
|
Object.defineProperty(prototype, memberName, {
|
|
1808
1951
|
get() {
|
|
1809
1952
|
return getValue(this, memberName);
|
|
1810
1953
|
},
|
|
1811
1954
|
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
|
+
}
|
|
1812
1970
|
setValue(this, memberName, newValue, cmpMeta);
|
|
1813
1971
|
},
|
|
1814
1972
|
configurable: true,
|
|
1815
1973
|
enumerable: true
|
|
1816
1974
|
});
|
|
1817
|
-
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
|
|
1975
|
+
} else if (BUILD.lazyLoad && BUILD.method && flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
|
|
1818
1976
|
Object.defineProperty(prototype, memberName, {
|
|
1819
1977
|
value(...args) {
|
|
1820
1978
|
var _a2;
|
|
@@ -1827,7 +1985,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1827
1985
|
});
|
|
1828
1986
|
}
|
|
1829
1987
|
});
|
|
1830
|
-
if ((flags & 1 /* isElementConstructor */)) {
|
|
1988
|
+
if (BUILD.observeAttribute && (!BUILD.lazyLoad || flags & 1 /* isElementConstructor */)) {
|
|
1831
1989
|
const attrNameToPropName = /* @__PURE__ */ new Map();
|
|
1832
1990
|
prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
|
|
1833
1991
|
plt.jmp(() => {
|
|
@@ -1843,7 +2001,8 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1843
2001
|
const hostRef = getHostRef(this);
|
|
1844
2002
|
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
1845
2003
|
if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
1846
|
-
const
|
|
2004
|
+
const elm = BUILD.lazyLoad ? hostRef.$hostElement$ : this;
|
|
2005
|
+
const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
|
|
1847
2006
|
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
1848
2007
|
entry == null ? void 0 : entry.forEach((callbackName) => {
|
|
1849
2008
|
if (instance[callbackName] != null) {
|
|
@@ -1863,7 +2022,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1863
2022
|
var _a2;
|
|
1864
2023
|
const attrName = m[1] || propName;
|
|
1865
2024
|
attrNameToPropName.set(attrName, propName);
|
|
1866
|
-
if (m[0] & 512 /* ReflectAttr */) {
|
|
2025
|
+
if (BUILD.reflect && m[0] & 512 /* ReflectAttr */) {
|
|
1867
2026
|
(_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
|
|
1868
2027
|
}
|
|
1869
2028
|
return attrName;
|
|
@@ -1881,10 +2040,13 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1881
2040
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1882
2041
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1883
2042
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1884
|
-
if (bundleId) {
|
|
1885
|
-
const CstrImport = loadModule(cmpMeta);
|
|
2043
|
+
if ((BUILD.lazyLoad || BUILD.hydrateClientSide) && bundleId) {
|
|
2044
|
+
const CstrImport = loadModule(cmpMeta, hostRef, hmrVersionId);
|
|
1886
2045
|
if (CstrImport && "then" in CstrImport) {
|
|
1887
|
-
const endLoad = uniqueTime(
|
|
2046
|
+
const endLoad = uniqueTime(
|
|
2047
|
+
`st:load:${cmpMeta.$tagName$}:${hostRef.$modeName$}`,
|
|
2048
|
+
`[Stencil] Load module for <${cmpMeta.$tagName$}>`
|
|
2049
|
+
);
|
|
1888
2050
|
Cstr = await CstrImport;
|
|
1889
2051
|
endLoad();
|
|
1890
2052
|
} else {
|
|
@@ -1893,15 +2055,15 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1893
2055
|
if (!Cstr) {
|
|
1894
2056
|
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
1895
2057
|
}
|
|
1896
|
-
if (!Cstr.isProxied) {
|
|
1897
|
-
{
|
|
2058
|
+
if (BUILD.member && !Cstr.isProxied) {
|
|
2059
|
+
if (BUILD.watchCallback) {
|
|
1898
2060
|
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1899
2061
|
}
|
|
1900
2062
|
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1901
2063
|
Cstr.isProxied = true;
|
|
1902
2064
|
}
|
|
1903
2065
|
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
|
1904
|
-
{
|
|
2066
|
+
if (BUILD.member) {
|
|
1905
2067
|
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
1906
2068
|
}
|
|
1907
2069
|
try {
|
|
@@ -1909,10 +2071,10 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1909
2071
|
} catch (e) {
|
|
1910
2072
|
consoleError(e);
|
|
1911
2073
|
}
|
|
1912
|
-
{
|
|
2074
|
+
if (BUILD.member) {
|
|
1913
2075
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1914
2076
|
}
|
|
1915
|
-
{
|
|
2077
|
+
if (BUILD.watchCallback) {
|
|
1916
2078
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1917
2079
|
}
|
|
1918
2080
|
endNewInstance();
|
|
@@ -1922,14 +2084,26 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1922
2084
|
const cmpTag = elm.localName;
|
|
1923
2085
|
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1924
2086
|
}
|
|
1925
|
-
if (Cstr && Cstr.style) {
|
|
2087
|
+
if (BUILD.style && Cstr && Cstr.style) {
|
|
1926
2088
|
let style;
|
|
1927
2089
|
if (typeof Cstr.style === "string") {
|
|
1928
2090
|
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
|
+
}
|
|
1929
2099
|
}
|
|
1930
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
2100
|
+
const scopeId2 = getScopeId(cmpMeta, hostRef.$modeName$);
|
|
1931
2101
|
if (!styles.has(scopeId2)) {
|
|
1932
2102
|
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
|
+
}
|
|
1933
2107
|
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1934
2108
|
endRegisterStyles();
|
|
1935
2109
|
}
|
|
@@ -1937,14 +2111,14 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1937
2111
|
}
|
|
1938
2112
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1939
2113
|
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1940
|
-
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
2114
|
+
if (BUILD.asyncLoading && ancestorComponent && ancestorComponent["s-rc"]) {
|
|
1941
2115
|
ancestorComponent["s-rc"].push(schedule);
|
|
1942
2116
|
} else {
|
|
1943
2117
|
schedule();
|
|
1944
2118
|
}
|
|
1945
2119
|
};
|
|
1946
2120
|
var fireConnectedCallback = (instance) => {
|
|
1947
|
-
{
|
|
2121
|
+
if (BUILD.lazyLoad && BUILD.connectedCallback) {
|
|
1948
2122
|
safeCall(instance, "connectedCallback");
|
|
1949
2123
|
}
|
|
1950
2124
|
};
|
|
@@ -1955,35 +2129,38 @@ var connectedCallback = (elm) => {
|
|
|
1955
2129
|
const hostRef = getHostRef(elm);
|
|
1956
2130
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
1957
2131
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
2132
|
+
if (BUILD.hostListenerTargetParent) {
|
|
2133
|
+
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, true);
|
|
2134
|
+
}
|
|
1958
2135
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
1959
2136
|
hostRef.$flags$ |= 1 /* hasConnected */;
|
|
1960
2137
|
let hostId;
|
|
1961
|
-
{
|
|
2138
|
+
if (BUILD.hydrateClientSide) {
|
|
1962
2139
|
hostId = elm.getAttribute(HYDRATE_ID);
|
|
1963
2140
|
if (hostId) {
|
|
1964
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1965
|
-
const scopeId2 = addStyle(elm.shadowRoot, cmpMeta);
|
|
2141
|
+
if (BUILD.shadowDom && supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
2142
|
+
const scopeId2 = BUILD.mode ? addStyle(elm.shadowRoot, cmpMeta, elm.getAttribute("s-mode")) : addStyle(elm.shadowRoot, cmpMeta);
|
|
1966
2143
|
elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
|
|
1967
2144
|
}
|
|
1968
2145
|
initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
|
|
1969
2146
|
}
|
|
1970
2147
|
}
|
|
1971
|
-
if (!hostId) {
|
|
1972
|
-
if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
2148
|
+
if (BUILD.slotRelocation && !hostId) {
|
|
2149
|
+
if (BUILD.hydrateServerSide || (BUILD.slot || BUILD.shadowDom) && // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
1973
2150
|
cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
|
|
1974
2151
|
setContentReference(elm);
|
|
1975
2152
|
}
|
|
1976
2153
|
}
|
|
1977
|
-
{
|
|
2154
|
+
if (BUILD.asyncLoading) {
|
|
1978
2155
|
let ancestorComponent = elm;
|
|
1979
2156
|
while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
|
|
1980
|
-
if (ancestorComponent.nodeType === 1 /* ElementNode */ && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
|
|
2157
|
+
if (BUILD.hydrateClientSide && ancestorComponent.nodeType === 1 /* ElementNode */ && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
|
|
1981
2158
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
|
|
1982
2159
|
break;
|
|
1983
2160
|
}
|
|
1984
2161
|
}
|
|
1985
2162
|
}
|
|
1986
|
-
if (cmpMeta.$members$) {
|
|
2163
|
+
if (BUILD.prop && !BUILD.hydrateServerSide && cmpMeta.$members$) {
|
|
1987
2164
|
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
1988
2165
|
if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
|
|
1989
2166
|
const value = elm[memberName];
|
|
@@ -1992,11 +2169,13 @@ var connectedCallback = (elm) => {
|
|
|
1992
2169
|
}
|
|
1993
2170
|
});
|
|
1994
2171
|
}
|
|
1995
|
-
{
|
|
2172
|
+
if (BUILD.initializeNextTick) {
|
|
2173
|
+
nextTick(() => initializeComponent(elm, hostRef, cmpMeta));
|
|
2174
|
+
} else {
|
|
1996
2175
|
initializeComponent(elm, hostRef, cmpMeta);
|
|
1997
2176
|
}
|
|
1998
2177
|
} else {
|
|
1999
|
-
addHostEventListeners(elm, hostRef, cmpMeta.$listeners
|
|
2178
|
+
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, false);
|
|
2000
2179
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
2001
2180
|
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
2002
2181
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
@@ -2008,37 +2187,480 @@ var connectedCallback = (elm) => {
|
|
|
2008
2187
|
};
|
|
2009
2188
|
var setContentReference = (elm) => {
|
|
2010
2189
|
const contentRefElm = elm["s-cr"] = doc.createComment(
|
|
2011
|
-
""
|
|
2190
|
+
BUILD.isDebug ? `content-ref (host=${elm.localName})` : ""
|
|
2012
2191
|
);
|
|
2013
2192
|
contentRefElm["s-cn"] = true;
|
|
2014
2193
|
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
2015
2194
|
};
|
|
2016
2195
|
var disconnectInstance = (instance) => {
|
|
2017
|
-
{
|
|
2196
|
+
if (BUILD.lazyLoad && BUILD.disconnectedCallback) {
|
|
2018
2197
|
safeCall(instance, "disconnectedCallback");
|
|
2019
2198
|
}
|
|
2199
|
+
if (BUILD.cmpDidUnload) {
|
|
2200
|
+
safeCall(instance, "componentDidUnload");
|
|
2201
|
+
}
|
|
2020
2202
|
};
|
|
2021
2203
|
var disconnectedCallback = async (elm) => {
|
|
2022
2204
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
2023
2205
|
const hostRef = getHostRef(elm);
|
|
2024
|
-
{
|
|
2206
|
+
if (BUILD.hostListener) {
|
|
2025
2207
|
if (hostRef.$rmListeners$) {
|
|
2026
2208
|
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
2027
2209
|
hostRef.$rmListeners$ = void 0;
|
|
2028
2210
|
}
|
|
2029
2211
|
}
|
|
2030
|
-
if (
|
|
2212
|
+
if (!BUILD.lazyLoad) {
|
|
2213
|
+
disconnectInstance(elm);
|
|
2214
|
+
} else if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
2031
2215
|
disconnectInstance(hostRef.$lazyInstance$);
|
|
2032
2216
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
2033
2217
|
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
2034
2218
|
}
|
|
2035
2219
|
}
|
|
2036
2220
|
};
|
|
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
|
+
};
|
|
2037
2655
|
|
|
2038
2656
|
// src/runtime/bootstrap-lazy.ts
|
|
2039
2657
|
var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
2040
2658
|
var _a;
|
|
2041
|
-
|
|
2659
|
+
if (BUILD.profile && performance.mark) {
|
|
2660
|
+
performance.mark("st:app:start");
|
|
2661
|
+
}
|
|
2662
|
+
installDevTools();
|
|
2663
|
+
const endBootstrap = createTime("bootstrapLazy");
|
|
2042
2664
|
const cmpTags = [];
|
|
2043
2665
|
const exclude = options.exclude || [];
|
|
2044
2666
|
const customElements2 = win.customElements;
|
|
@@ -2050,7 +2672,12 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2050
2672
|
let isBootstrapping = true;
|
|
2051
2673
|
Object.assign(plt, options);
|
|
2052
2674
|
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", doc.baseURI).href;
|
|
2053
|
-
{
|
|
2675
|
+
if (BUILD.asyncQueue) {
|
|
2676
|
+
if (options.syncQueue) {
|
|
2677
|
+
plt.$flags$ |= 4 /* queueSync */;
|
|
2678
|
+
}
|
|
2679
|
+
}
|
|
2680
|
+
if (BUILD.hydrateClientSide) {
|
|
2054
2681
|
plt.$flags$ |= 2 /* appLoaded */;
|
|
2055
2682
|
}
|
|
2056
2683
|
let hasSlotRelocation = false;
|
|
@@ -2066,19 +2693,22 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2066
2693
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
2067
2694
|
hasSlotRelocation = true;
|
|
2068
2695
|
}
|
|
2069
|
-
{
|
|
2696
|
+
if (BUILD.member) {
|
|
2070
2697
|
cmpMeta.$members$ = compactMeta[2];
|
|
2071
2698
|
}
|
|
2072
|
-
{
|
|
2699
|
+
if (BUILD.hostListener) {
|
|
2073
2700
|
cmpMeta.$listeners$ = compactMeta[3];
|
|
2074
2701
|
}
|
|
2075
|
-
{
|
|
2702
|
+
if (BUILD.reflect) {
|
|
2076
2703
|
cmpMeta.$attrsToReflect$ = [];
|
|
2077
2704
|
}
|
|
2078
|
-
{
|
|
2705
|
+
if (BUILD.watchCallback) {
|
|
2079
2706
|
cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
|
|
2080
2707
|
}
|
|
2081
|
-
|
|
2708
|
+
if (BUILD.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
2709
|
+
cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
|
|
2710
|
+
}
|
|
2711
|
+
const tagName = BUILD.transformTagName && options.transformTagName ? options.transformTagName(cmpMeta.$tagName$) : cmpMeta.$tagName$;
|
|
2082
2712
|
const HostElement = class extends HTMLElement {
|
|
2083
2713
|
// StencilLazyHost
|
|
2084
2714
|
constructor(self) {
|
|
@@ -2086,10 +2716,15 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2086
2716
|
this.hasRegisteredEventListeners = false;
|
|
2087
2717
|
self = this;
|
|
2088
2718
|
registerHost(self, cmpMeta);
|
|
2089
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
2090
|
-
{
|
|
2719
|
+
if (BUILD.shadowDom && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
2720
|
+
if (supportsShadow) {
|
|
2091
2721
|
if (!self.shadowRoot) {
|
|
2092
|
-
{
|
|
2722
|
+
if (BUILD.shadowDelegatesFocus) {
|
|
2723
|
+
self.attachShadow({
|
|
2724
|
+
mode: "open",
|
|
2725
|
+
delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
|
|
2726
|
+
});
|
|
2727
|
+
} else {
|
|
2093
2728
|
self.attachShadow({ mode: "open" });
|
|
2094
2729
|
}
|
|
2095
2730
|
} else {
|
|
@@ -2099,6 +2734,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2099
2734
|
);
|
|
2100
2735
|
}
|
|
2101
2736
|
}
|
|
2737
|
+
} else if (!BUILD.hydrateServerSide && !("shadowRoot" in self)) {
|
|
2738
|
+
self.shadowRoot = self;
|
|
2102
2739
|
}
|
|
2103
2740
|
}
|
|
2104
2741
|
}
|
|
@@ -2106,7 +2743,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2106
2743
|
const hostRef = getHostRef(this);
|
|
2107
2744
|
if (!this.hasRegisteredEventListeners) {
|
|
2108
2745
|
this.hasRegisteredEventListeners = true;
|
|
2109
|
-
addHostEventListeners(this, hostRef, cmpMeta.$listeners
|
|
2746
|
+
addHostEventListeners(this, hostRef, cmpMeta.$listeners$, false);
|
|
2110
2747
|
}
|
|
2111
2748
|
if (appLoadFallback) {
|
|
2112
2749
|
clearTimeout(appLoadFallback);
|
|
@@ -2125,6 +2762,32 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2125
2762
|
return getHostRef(this).$onReadyPromise$;
|
|
2126
2763
|
}
|
|
2127
2764
|
};
|
|
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
|
+
}
|
|
2128
2791
|
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
2129
2792
|
if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
|
|
2130
2793
|
cmpTags.push(tagName);
|
|
@@ -2139,7 +2802,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2139
2802
|
if (hasSlotRelocation) {
|
|
2140
2803
|
dataStyles.textContent += SLOT_FB_CSS;
|
|
2141
2804
|
}
|
|
2142
|
-
{
|
|
2805
|
+
if (BUILD.invisiblePrehydration && (BUILD.hydratedClass || BUILD.hydratedAttribute)) {
|
|
2143
2806
|
dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
|
|
2144
2807
|
}
|
|
2145
2808
|
if (dataStyles.innerHTML.length) {
|
|
@@ -2155,16 +2818,28 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2155
2818
|
if (deferredConnectedCallbacks.length) {
|
|
2156
2819
|
deferredConnectedCallbacks.map((host) => host.connectedCallback());
|
|
2157
2820
|
} else {
|
|
2158
|
-
{
|
|
2821
|
+
if (BUILD.profile) {
|
|
2822
|
+
plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30, "timeout"));
|
|
2823
|
+
} else {
|
|
2159
2824
|
plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
|
|
2160
2825
|
}
|
|
2161
2826
|
}
|
|
2162
2827
|
endBootstrap();
|
|
2163
2828
|
};
|
|
2829
|
+
|
|
2830
|
+
// src/runtime/fragment.ts
|
|
2831
|
+
var Fragment = (_, children) => children;
|
|
2164
2832
|
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
2165
|
-
if (listeners) {
|
|
2833
|
+
if (BUILD.hostListener && listeners) {
|
|
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
|
+
}
|
|
2166
2841
|
listeners.map(([flags, name, method]) => {
|
|
2167
|
-
const target = getHostListenerTarget(elm, flags) ;
|
|
2842
|
+
const target = BUILD.hostListenerTarget ? getHostListenerTarget(elm, flags) : elm;
|
|
2168
2843
|
const handler = hostListenerProxy(hostRef, method);
|
|
2169
2844
|
const opts = hostListenerOpts(flags);
|
|
2170
2845
|
plt.ael(target, name, handler, opts);
|
|
@@ -2175,20 +2850,25 @@ var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) =>
|
|
|
2175
2850
|
var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
2176
2851
|
var _a;
|
|
2177
2852
|
try {
|
|
2178
|
-
{
|
|
2853
|
+
if (BUILD.lazyLoad) {
|
|
2179
2854
|
if (hostRef.$flags$ & 256 /* isListenReady */) {
|
|
2180
2855
|
(_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
|
|
2181
2856
|
} else {
|
|
2182
2857
|
(hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
|
|
2183
2858
|
}
|
|
2859
|
+
} else {
|
|
2860
|
+
hostRef.$hostElement$[methodName](ev);
|
|
2184
2861
|
}
|
|
2185
2862
|
} catch (e) {
|
|
2186
2863
|
consoleError(e);
|
|
2187
2864
|
}
|
|
2188
2865
|
};
|
|
2189
2866
|
var getHostListenerTarget = (elm, flags) => {
|
|
2190
|
-
if (flags &
|
|
2191
|
-
if (flags &
|
|
2867
|
+
if (BUILD.hostListenerTargetDocument && flags & 4 /* TargetDocument */) return doc;
|
|
2868
|
+
if (BUILD.hostListenerTargetWindow && flags & 8 /* TargetWindow */) return win;
|
|
2869
|
+
if (BUILD.hostListenerTargetBody && flags & 16 /* TargetBody */) return doc.body;
|
|
2870
|
+
if (BUILD.hostListenerTargetParent && flags & 32 /* TargetParent */ && elm.parentElement)
|
|
2871
|
+
return elm.parentElement;
|
|
2192
2872
|
return elm;
|
|
2193
2873
|
};
|
|
2194
2874
|
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
@@ -2199,4 +2879,145 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
|
2199
2879
|
// src/runtime/nonce.ts
|
|
2200
2880
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
2201
2881
|
|
|
2202
|
-
|
|
2882
|
+
// src/runtime/platform-options.ts
|
|
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 };
|