@ebrains/components 0.9.1-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/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 +3 -4
- 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/components/{eds-breadcrumb.js → eds-breadcrumb.entry.js} +16 -56
- 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 +4 -5
- 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} +10 -47
- 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 +6 -7
- package/dist/{esm → components}/eds-modal.entry.js +3 -4
- 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} +2 -19
- package/dist/components/{eds-social-networks2.js → eds-social-networks.entry.js} +7 -37
- 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 +2 -3
- package/dist/components/{eds-table2.js → eds-table.entry.js} +10 -105
- package/dist/{esm → components}/eds-tabs.entry.js +5 -6
- package/dist/components/{eds-tag2.js → eds-tag.entry.js} +8 -28
- package/dist/{esm → components}/eds-timeline.entry.js +3 -4
- 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} +8 -59
- 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 -507
- 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/package.json +1 -1
- 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_26.cjs.entry.js +0 -2281
- package/dist/cjs/eds-card-desc_2.cjs.entry.js +0 -78
- 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 -2227
- 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 -213
- 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 -139
- 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 -140
- 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 -101
- package/dist/collection/components/eds-tag/eds-tag.js +0 -110
- package/dist/collection/components/eds-tag/eds-tag.stories.js +0 -34
- package/dist/collection/components/eds-timeline/eds-timeline.css +0 -7796
- 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 -7796
- 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 -7796
- 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 -7796
- 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-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-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-0467ceb5.entry.js +0 -1
- package/dist/components/p-05754401.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-1309a74c.entry.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-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-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-435a8942.entry.js +0 -1
- package/dist/components/p-4587d0ef.js +0 -1
- package/dist/components/p-4620ebf5.entry.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-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-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-94b1f974.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-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-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-b931a634.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-c1e4ef92.js +0 -1
- package/dist/components/p-c5c782e7.entry.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-c99745a8.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-e42eb100.entry.js +0 -1
- package/dist/components/p-e64cd6f7.entry.js +0 -1
- package/dist/components/p-e710c860.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-f4ce515a.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_26.entry.js +0 -2252
- package/dist/esm/eds-card-desc_2.entry.js +0 -73
- 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 -32729
- package/dist/hydrate/index.mjs +0 -32721
- 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 -75
- 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,358 +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_26':
|
|
56
|
-
return import(
|
|
57
|
-
/* webpackMode: "lazy" */
|
|
58
|
-
'./eds-avatar_26.entry.js').then(processMod, consoleError);
|
|
59
|
-
case 'components-section':
|
|
60
|
-
return import(
|
|
61
|
-
/* webpackMode: "lazy" */
|
|
62
|
-
'./components-section.entry.js').then(processMod, consoleError);
|
|
63
|
-
case 'correct-use-of-colors':
|
|
64
|
-
return import(
|
|
65
|
-
/* webpackMode: "lazy" */
|
|
66
|
-
'./correct-use-of-colors.entry.js').then(processMod, consoleError);
|
|
67
|
-
case 'docs-palettes':
|
|
68
|
-
return import(
|
|
69
|
-
/* webpackMode: "lazy" */
|
|
70
|
-
'./docs-palettes.entry.js').then(processMod, consoleError);
|
|
71
|
-
case 'docs-tokens':
|
|
72
|
-
return import(
|
|
73
|
-
/* webpackMode: "lazy" */
|
|
74
|
-
'./docs-tokens.entry.js').then(processMod, consoleError);
|
|
75
|
-
case 'eds-app-root':
|
|
76
|
-
return import(
|
|
77
|
-
/* webpackMode: "lazy" */
|
|
78
|
-
'./eds-app-root.entry.js').then(processMod, consoleError);
|
|
79
|
-
case 'eds-card-project':
|
|
80
|
-
return import(
|
|
81
|
-
/* webpackMode: "lazy" */
|
|
82
|
-
'./eds-card-project.entry.js').then(processMod, consoleError);
|
|
83
|
-
case 'eds-card-section':
|
|
84
|
-
return import(
|
|
85
|
-
/* webpackMode: "lazy" */
|
|
86
|
-
'./eds-card-section.entry.js').then(processMod, consoleError);
|
|
87
|
-
case 'eds-card-tags':
|
|
88
|
-
return import(
|
|
89
|
-
/* webpackMode: "lazy" */
|
|
90
|
-
'./eds-card-tags.entry.js').then(processMod, consoleError);
|
|
91
|
-
case 'eds-card-tool':
|
|
92
|
-
return import(
|
|
93
|
-
/* webpackMode: "lazy" */
|
|
94
|
-
'./eds-card-tool.entry.js').then(processMod, consoleError);
|
|
95
|
-
case 'eds-card-wrapper':
|
|
96
|
-
return import(
|
|
97
|
-
/* webpackMode: "lazy" */
|
|
98
|
-
'./eds-card-wrapper.entry.js').then(processMod, consoleError);
|
|
99
|
-
case 'eds-cookies-preference':
|
|
100
|
-
return import(
|
|
101
|
-
/* webpackMode: "lazy" */
|
|
102
|
-
'./eds-cookies-preference.entry.js').then(processMod, consoleError);
|
|
103
|
-
case 'eds-feedback':
|
|
104
|
-
return import(
|
|
105
|
-
/* webpackMode: "lazy" */
|
|
106
|
-
'./eds-feedback.entry.js').then(processMod, consoleError);
|
|
107
|
-
case 'eds-frame':
|
|
108
|
-
return import(
|
|
109
|
-
/* webpackMode: "lazy" */
|
|
110
|
-
'./eds-frame.entry.js').then(processMod, consoleError);
|
|
111
|
-
case 'eds-icon-arrow-diagonal':
|
|
112
|
-
return import(
|
|
113
|
-
/* webpackMode: "lazy" */
|
|
114
|
-
'./eds-icon-arrow-diagonal.entry.js').then(processMod, consoleError);
|
|
115
|
-
case 'eds-icon-arrow-right':
|
|
116
|
-
return import(
|
|
117
|
-
/* webpackMode: "lazy" */
|
|
118
|
-
'./eds-icon-arrow-right.entry.js').then(processMod, consoleError);
|
|
119
|
-
case 'eds-icon-bluesky':
|
|
120
|
-
return import(
|
|
121
|
-
/* webpackMode: "lazy" */
|
|
122
|
-
'./eds-icon-bluesky.entry.js').then(processMod, consoleError);
|
|
123
|
-
case 'eds-icon-bookmark':
|
|
124
|
-
return import(
|
|
125
|
-
/* webpackMode: "lazy" */
|
|
126
|
-
'./eds-icon-bookmark.entry.js').then(processMod, consoleError);
|
|
127
|
-
case 'eds-icon-chevron-down':
|
|
128
|
-
return import(
|
|
129
|
-
/* webpackMode: "lazy" */
|
|
130
|
-
'./eds-icon-chevron-down.entry.js').then(processMod, consoleError);
|
|
131
|
-
case 'eds-icon-chevron-left':
|
|
132
|
-
return import(
|
|
133
|
-
/* webpackMode: "lazy" */
|
|
134
|
-
'./eds-icon-chevron-left.entry.js').then(processMod, consoleError);
|
|
135
|
-
case 'eds-icon-chevron-right':
|
|
136
|
-
return import(
|
|
137
|
-
/* webpackMode: "lazy" */
|
|
138
|
-
'./eds-icon-chevron-right.entry.js').then(processMod, consoleError);
|
|
139
|
-
case 'eds-icon-chevron-up':
|
|
140
|
-
return import(
|
|
141
|
-
/* webpackMode: "lazy" */
|
|
142
|
-
'./eds-icon-chevron-up.entry.js').then(processMod, consoleError);
|
|
143
|
-
case 'eds-icon-close':
|
|
144
|
-
return import(
|
|
145
|
-
/* webpackMode: "lazy" */
|
|
146
|
-
'./eds-icon-close.entry.js').then(processMod, consoleError);
|
|
147
|
-
case 'eds-icon-copy':
|
|
148
|
-
return import(
|
|
149
|
-
/* webpackMode: "lazy" */
|
|
150
|
-
'./eds-icon-copy.entry.js').then(processMod, consoleError);
|
|
151
|
-
case 'eds-icon-eu':
|
|
152
|
-
return import(
|
|
153
|
-
/* webpackMode: "lazy" */
|
|
154
|
-
'./eds-icon-eu.entry.js').then(processMod, consoleError);
|
|
155
|
-
case 'eds-icon-external':
|
|
156
|
-
return import(
|
|
157
|
-
/* webpackMode: "lazy" */
|
|
158
|
-
'./eds-icon-external.entry.js').then(processMod, consoleError);
|
|
159
|
-
case 'eds-icon-facebook':
|
|
160
|
-
return import(
|
|
161
|
-
/* webpackMode: "lazy" */
|
|
162
|
-
'./eds-icon-facebook.entry.js').then(processMod, consoleError);
|
|
163
|
-
case 'eds-icon-gitlab':
|
|
164
|
-
return import(
|
|
165
|
-
/* webpackMode: "lazy" */
|
|
166
|
-
'./eds-icon-gitlab.entry.js').then(processMod, consoleError);
|
|
167
|
-
case 'eds-icon-linkedin':
|
|
168
|
-
return import(
|
|
169
|
-
/* webpackMode: "lazy" */
|
|
170
|
-
'./eds-icon-linkedin.entry.js').then(processMod, consoleError);
|
|
171
|
-
case 'eds-icon-loader':
|
|
172
|
-
return import(
|
|
173
|
-
/* webpackMode: "lazy" */
|
|
174
|
-
'./eds-icon-loader.entry.js').then(processMod, consoleError);
|
|
175
|
-
case 'eds-icon-mastodon':
|
|
176
|
-
return import(
|
|
177
|
-
/* webpackMode: "lazy" */
|
|
178
|
-
'./eds-icon-mastodon.entry.js').then(processMod, consoleError);
|
|
179
|
-
case 'eds-icon-menu':
|
|
180
|
-
return import(
|
|
181
|
-
/* webpackMode: "lazy" */
|
|
182
|
-
'./eds-icon-menu.entry.js').then(processMod, consoleError);
|
|
183
|
-
case 'eds-icon-minus':
|
|
184
|
-
return import(
|
|
185
|
-
/* webpackMode: "lazy" */
|
|
186
|
-
'./eds-icon-minus.entry.js').then(processMod, consoleError);
|
|
187
|
-
case 'eds-icon-more':
|
|
188
|
-
return import(
|
|
189
|
-
/* webpackMode: "lazy" */
|
|
190
|
-
'./eds-icon-more.entry.js').then(processMod, consoleError);
|
|
191
|
-
case 'eds-icon-paper':
|
|
192
|
-
return import(
|
|
193
|
-
/* webpackMode: "lazy" */
|
|
194
|
-
'./eds-icon-paper.entry.js').then(processMod, consoleError);
|
|
195
|
-
case 'eds-icon-plus':
|
|
196
|
-
return import(
|
|
197
|
-
/* webpackMode: "lazy" */
|
|
198
|
-
'./eds-icon-plus.entry.js').then(processMod, consoleError);
|
|
199
|
-
case 'eds-icon-portal':
|
|
200
|
-
return import(
|
|
201
|
-
/* webpackMode: "lazy" */
|
|
202
|
-
'./eds-icon-portal.entry.js').then(processMod, consoleError);
|
|
203
|
-
case 'eds-icon-private':
|
|
204
|
-
return import(
|
|
205
|
-
/* webpackMode: "lazy" */
|
|
206
|
-
'./eds-icon-private.entry.js').then(processMod, consoleError);
|
|
207
|
-
case 'eds-icon-public':
|
|
208
|
-
return import(
|
|
209
|
-
/* webpackMode: "lazy" */
|
|
210
|
-
'./eds-icon-public.entry.js').then(processMod, consoleError);
|
|
211
|
-
case 'eds-icon-search':
|
|
212
|
-
return import(
|
|
213
|
-
/* webpackMode: "lazy" */
|
|
214
|
-
'./eds-icon-search.entry.js').then(processMod, consoleError);
|
|
215
|
-
case 'eds-icon-star':
|
|
216
|
-
return import(
|
|
217
|
-
/* webpackMode: "lazy" */
|
|
218
|
-
'./eds-icon-star.entry.js').then(processMod, consoleError);
|
|
219
|
-
case 'eds-icon-success':
|
|
220
|
-
return import(
|
|
221
|
-
/* webpackMode: "lazy" */
|
|
222
|
-
'./eds-icon-success.entry.js').then(processMod, consoleError);
|
|
223
|
-
case 'eds-icon-thumbs-down':
|
|
224
|
-
return import(
|
|
225
|
-
/* webpackMode: "lazy" */
|
|
226
|
-
'./eds-icon-thumbs-down.entry.js').then(processMod, consoleError);
|
|
227
|
-
case 'eds-icon-thumbs-up':
|
|
228
|
-
return import(
|
|
229
|
-
/* webpackMode: "lazy" */
|
|
230
|
-
'./eds-icon-thumbs-up.entry.js').then(processMod, consoleError);
|
|
231
|
-
case 'eds-icon-tutorial':
|
|
232
|
-
return import(
|
|
233
|
-
/* webpackMode: "lazy" */
|
|
234
|
-
'./eds-icon-tutorial.entry.js').then(processMod, consoleError);
|
|
235
|
-
case 'eds-icon-twitter':
|
|
236
|
-
return import(
|
|
237
|
-
/* webpackMode: "lazy" */
|
|
238
|
-
'./eds-icon-twitter.entry.js').then(processMod, consoleError);
|
|
239
|
-
case 'eds-icon-unknown':
|
|
240
|
-
return import(
|
|
241
|
-
/* webpackMode: "lazy" */
|
|
242
|
-
'./eds-icon-unknown.entry.js').then(processMod, consoleError);
|
|
243
|
-
case 'eds-icon-updown':
|
|
244
|
-
return import(
|
|
245
|
-
/* webpackMode: "lazy" */
|
|
246
|
-
'./eds-icon-updown.entry.js').then(processMod, consoleError);
|
|
247
|
-
case 'eds-icon-user':
|
|
248
|
-
return import(
|
|
249
|
-
/* webpackMode: "lazy" */
|
|
250
|
-
'./eds-icon-user.entry.js').then(processMod, consoleError);
|
|
251
|
-
case 'eds-icon-youtube':
|
|
252
|
-
return import(
|
|
253
|
-
/* webpackMode: "lazy" */
|
|
254
|
-
'./eds-icon-youtube.entry.js').then(processMod, consoleError);
|
|
255
|
-
case 'eds-modal':
|
|
256
|
-
return import(
|
|
257
|
-
/* webpackMode: "lazy" */
|
|
258
|
-
'./eds-modal.entry.js').then(processMod, consoleError);
|
|
259
|
-
case 'eds-switch':
|
|
260
|
-
return import(
|
|
261
|
-
/* webpackMode: "lazy" */
|
|
262
|
-
'./eds-switch.entry.js').then(processMod, consoleError);
|
|
263
|
-
case 'eds-tabs':
|
|
264
|
-
return import(
|
|
265
|
-
/* webpackMode: "lazy" */
|
|
266
|
-
'./eds-tabs.entry.js').then(processMod, consoleError);
|
|
267
|
-
case 'eds-timeline':
|
|
268
|
-
return import(
|
|
269
|
-
/* webpackMode: "lazy" */
|
|
270
|
-
'./eds-timeline.entry.js').then(processMod, consoleError);
|
|
271
|
-
case 'eds-toast-manager':
|
|
272
|
-
return import(
|
|
273
|
-
/* webpackMode: "lazy" */
|
|
274
|
-
'./eds-toast-manager.entry.js').then(processMod, consoleError);
|
|
275
|
-
case 'eds-tooltip':
|
|
276
|
-
return import(
|
|
277
|
-
/* webpackMode: "lazy" */
|
|
278
|
-
'./eds-tooltip.entry.js').then(processMod, consoleError);
|
|
279
|
-
case 'eds-trl':
|
|
280
|
-
return import(
|
|
281
|
-
/* webpackMode: "lazy" */
|
|
282
|
-
'./eds-trl.entry.js').then(processMod, consoleError);
|
|
283
|
-
case 'incorrect-use-of-colors':
|
|
284
|
-
return import(
|
|
285
|
-
/* webpackMode: "lazy" */
|
|
286
|
-
'./incorrect-use-of-colors.entry.js').then(processMod, consoleError);
|
|
287
|
-
case 'logo-space':
|
|
288
|
-
return import(
|
|
289
|
-
/* webpackMode: "lazy" */
|
|
290
|
-
'./logo-space.entry.js').then(processMod, consoleError);
|
|
291
|
-
case 'logo-variations-tabs':
|
|
292
|
-
return import(
|
|
293
|
-
/* webpackMode: "lazy" */
|
|
294
|
-
'./logo-variations-tabs.entry.js').then(processMod, consoleError);
|
|
295
|
-
case 'logo-wrong-usage':
|
|
296
|
-
return import(
|
|
297
|
-
/* webpackMode: "lazy" */
|
|
298
|
-
'./logo-wrong-usage.entry.js').then(processMod, consoleError);
|
|
299
|
-
case 'svg-repository':
|
|
300
|
-
return import(
|
|
301
|
-
/* webpackMode: "lazy" */
|
|
302
|
-
'./svg-repository.entry.js').then(processMod, consoleError);
|
|
303
|
-
case 'token-ratios':
|
|
304
|
-
return import(
|
|
305
|
-
/* webpackMode: "lazy" */
|
|
306
|
-
'./token-ratios.entry.js').then(processMod, consoleError);
|
|
307
|
-
case 'token-typography':
|
|
308
|
-
return import(
|
|
309
|
-
/* webpackMode: "lazy" */
|
|
310
|
-
'./token-typography.entry.js').then(processMod, consoleError);
|
|
311
|
-
case 'color-primary-palette_6':
|
|
312
|
-
return import(
|
|
313
|
-
/* webpackMode: "lazy" */
|
|
314
|
-
'./color-primary-palette_6.entry.js').then(processMod, consoleError);
|
|
315
|
-
case 'eds-login_2':
|
|
316
|
-
return import(
|
|
317
|
-
/* webpackMode: "lazy" */
|
|
318
|
-
'./eds-login_2.entry.js').then(processMod, consoleError);
|
|
319
|
-
case 'eds-matomo-notice':
|
|
320
|
-
return import(
|
|
321
|
-
/* webpackMode: "lazy" */
|
|
322
|
-
'./eds-matomo-notice.entry.js').then(processMod, consoleError);
|
|
323
|
-
case 'eds-progress-bar':
|
|
324
|
-
return import(
|
|
325
|
-
/* webpackMode: "lazy" */
|
|
326
|
-
'./eds-progress-bar.entry.js').then(processMod, consoleError);
|
|
327
|
-
case 'eds-rating':
|
|
328
|
-
return import(
|
|
329
|
-
/* webpackMode: "lazy" */
|
|
330
|
-
'./eds-rating.entry.js').then(processMod, consoleError);
|
|
331
|
-
case 'eds-toast':
|
|
332
|
-
return import(
|
|
333
|
-
/* webpackMode: "lazy" */
|
|
334
|
-
'./eds-toast.entry.js').then(processMod, consoleError);
|
|
335
|
-
case 'logo-variations-horizontal_2':
|
|
336
|
-
return import(
|
|
337
|
-
/* webpackMode: "lazy" */
|
|
338
|
-
'./logo-variations-horizontal_2.entry.js').then(processMod, consoleError);
|
|
339
|
-
case 'token-list_3':
|
|
340
|
-
return import(
|
|
341
|
-
/* webpackMode: "lazy" */
|
|
342
|
-
'./token-list_3.entry.js').then(processMod, consoleError);
|
|
343
|
-
case 'eds-accordion':
|
|
344
|
-
return import(
|
|
345
|
-
/* webpackMode: "lazy" */
|
|
346
|
-
'./eds-accordion.entry.js').then(processMod, consoleError);
|
|
347
|
-
case 'eds-alert':
|
|
348
|
-
return import(
|
|
349
|
-
/* webpackMode: "lazy" */
|
|
350
|
-
'./eds-alert.entry.js').then(processMod, consoleError);
|
|
351
|
-
case 'eds-card-generic':
|
|
352
|
-
return import(
|
|
353
|
-
/* webpackMode: "lazy" */
|
|
354
|
-
'./eds-card-generic.entry.js').then(processMod, consoleError);
|
|
355
|
-
case 'eds-section-core_2':
|
|
356
|
-
return import(
|
|
357
|
-
/* webpackMode: "lazy" */
|
|
358
|
-
'./eds-section-core_2.entry.js').then(processMod, consoleError);
|
|
359
|
-
case 'eds-spinner':
|
|
360
|
-
return import(
|
|
361
|
-
/* webpackMode: "lazy" */
|
|
362
|
-
'./eds-spinner.entry.js').then(processMod, consoleError);
|
|
363
|
-
case 'eds-pagination_2':
|
|
364
|
-
return import(
|
|
365
|
-
/* webpackMode: "lazy" */
|
|
366
|
-
'./eds-pagination_2.entry.js').then(processMod, consoleError);
|
|
367
|
-
case 'eds-card-desc_2':
|
|
368
|
-
return import(
|
|
369
|
-
/* webpackMode: "lazy" */
|
|
370
|
-
'./eds-card-desc_2.entry.js').then(processMod, consoleError);
|
|
371
|
-
case 'eds-code-block':
|
|
372
|
-
return import(
|
|
373
|
-
/* webpackMode: "lazy" */
|
|
374
|
-
'./eds-code-block.entry.js').then(processMod, consoleError);
|
|
375
|
-
}
|
|
376
|
-
}
|
|
72
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
377
73
|
return import(
|
|
378
74
|
/* @vite-ignore */
|
|
379
75
|
/* webpackInclude: /\.entry\.js$/ */
|
|
380
76
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
381
77
|
/* webpackMode: "lazy" */
|
|
382
|
-
`./${bundleId}.entry.js${""}`
|
|
78
|
+
`./${bundleId}.entry.js${BUILD.hotModuleReplacement && hmrVersionId ? "?s-hmr=" + hmrVersionId : ""}`
|
|
383
79
|
).then((importedModule) => {
|
|
384
|
-
{
|
|
80
|
+
if (!BUILD.hotModuleReplacement) {
|
|
385
81
|
cmpModules.set(bundleId, importedModule);
|
|
386
82
|
}
|
|
387
83
|
return importedModule[exportName];
|
|
@@ -390,6 +86,7 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
390
86
|
|
|
391
87
|
// src/client/client-style.ts
|
|
392
88
|
var styles = /* @__PURE__ */ new Map();
|
|
89
|
+
var modeResolutionChain = [];
|
|
393
90
|
|
|
394
91
|
// src/runtime/runtime-constants.ts
|
|
395
92
|
var CONTENT_REF_ID = "r";
|
|
@@ -402,8 +99,16 @@ var HYDRATE_CHILD_ID = "c-id";
|
|
|
402
99
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
403
100
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
404
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
|
+
];
|
|
405
108
|
var win = typeof window !== "undefined" ? window : {};
|
|
406
109
|
var doc = win.document || { head: {} };
|
|
110
|
+
var H = win.HTMLElement || class {
|
|
111
|
+
};
|
|
407
112
|
var plt = {
|
|
408
113
|
$flags$: 0,
|
|
409
114
|
$resourcesUrl$: "",
|
|
@@ -413,6 +118,9 @@ var plt = {
|
|
|
413
118
|
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
414
119
|
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
415
120
|
};
|
|
121
|
+
var setPlatformHelpers = (helpers) => {
|
|
122
|
+
Object.assign(plt, helpers);
|
|
123
|
+
};
|
|
416
124
|
var supportsShadow = BUILD.shadowDom;
|
|
417
125
|
var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
418
126
|
let supportsListenerOptions2 = false;
|
|
@@ -431,17 +139,21 @@ var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
|
431
139
|
return supportsListenerOptions2;
|
|
432
140
|
})();
|
|
433
141
|
var promiseResolve = (v) => Promise.resolve(v);
|
|
434
|
-
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
142
|
+
var supportsConstructableStylesheets = BUILD.constructableCSS ? /* @__PURE__ */ (() => {
|
|
435
143
|
try {
|
|
436
144
|
new CSSStyleSheet();
|
|
437
145
|
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
438
146
|
} catch (e) {
|
|
439
147
|
}
|
|
440
148
|
return false;
|
|
441
|
-
})() ;
|
|
149
|
+
})() : false;
|
|
150
|
+
|
|
151
|
+
// src/client/client-task-queue.ts
|
|
152
|
+
var queueCongestion = 0;
|
|
442
153
|
var queuePending = false;
|
|
443
154
|
var queueDomReads = [];
|
|
444
155
|
var queueDomWrites = [];
|
|
156
|
+
var queueDomWritesLow = [];
|
|
445
157
|
var queueTask = (queue, write) => (cb) => {
|
|
446
158
|
queue.push(cb);
|
|
447
159
|
if (!queuePending) {
|
|
@@ -463,9 +175,41 @@ var consume = (queue) => {
|
|
|
463
175
|
}
|
|
464
176
|
queue.length = 0;
|
|
465
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
|
+
};
|
|
466
194
|
var flush = () => {
|
|
195
|
+
if (BUILD.asyncQueue) {
|
|
196
|
+
queueCongestion++;
|
|
197
|
+
}
|
|
467
198
|
consume(queueDomReads);
|
|
468
|
-
{
|
|
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 {
|
|
469
213
|
consume(queueDomWrites);
|
|
470
214
|
if (queuePending = queueDomReads.length > 0) {
|
|
471
215
|
plt.raf(flush);
|
|
@@ -473,10 +217,20 @@ var flush = () => {
|
|
|
473
217
|
}
|
|
474
218
|
};
|
|
475
219
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
220
|
+
var readTask = /* @__PURE__ */ queueTask(queueDomReads, false);
|
|
476
221
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
477
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
|
+
|
|
478
230
|
// src/utils/constants.ts
|
|
479
231
|
var EMPTY_OBJ = {};
|
|
232
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
233
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
480
234
|
|
|
481
235
|
// src/utils/helpers.ts
|
|
482
236
|
var isDef = (v) => v != null;
|
|
@@ -539,20 +293,89 @@ var unwrapErr = (result) => {
|
|
|
539
293
|
throw result.value;
|
|
540
294
|
}
|
|
541
295
|
};
|
|
296
|
+
var i = 0;
|
|
542
297
|
var createTime = (fnName, tagName = "") => {
|
|
543
|
-
{
|
|
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 {
|
|
544
303
|
return () => {
|
|
545
304
|
return;
|
|
546
305
|
};
|
|
547
306
|
}
|
|
548
307
|
};
|
|
549
308
|
var uniqueTime = (key, measureText) => {
|
|
550
|
-
{
|
|
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 {
|
|
551
319
|
return () => {
|
|
552
320
|
return;
|
|
553
321
|
};
|
|
554
322
|
}
|
|
555
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
|
+
};
|
|
556
379
|
var h = (nodeName, vnodeData, ...children) => {
|
|
557
380
|
let child = null;
|
|
558
381
|
let key = null;
|
|
@@ -568,6 +391,10 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
568
391
|
} else if (child != null && typeof child !== "boolean") {
|
|
569
392
|
if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
|
|
570
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.`);
|
|
571
398
|
}
|
|
572
399
|
if (simple && lastSimple) {
|
|
573
400
|
vNodeChildren[vNodeChildren.length - 1].$text$ += child;
|
|
@@ -580,20 +407,28 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
580
407
|
};
|
|
581
408
|
walk(children);
|
|
582
409
|
if (vnodeData) {
|
|
583
|
-
if (
|
|
410
|
+
if (BUILD.isDev && nodeName === "input") {
|
|
411
|
+
validateInputProperties(vnodeData);
|
|
412
|
+
}
|
|
413
|
+
if (BUILD.vdomKey && vnodeData.key) {
|
|
584
414
|
key = vnodeData.key;
|
|
585
415
|
}
|
|
586
|
-
if (vnodeData.name) {
|
|
416
|
+
if (BUILD.slotRelocation && vnodeData.name) {
|
|
587
417
|
slotName = vnodeData.name;
|
|
588
418
|
}
|
|
589
|
-
{
|
|
419
|
+
if (BUILD.vdomClass) {
|
|
590
420
|
const classData = vnodeData.className || vnodeData.class;
|
|
591
421
|
if (classData) {
|
|
592
422
|
vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
|
|
593
423
|
}
|
|
594
424
|
}
|
|
595
425
|
}
|
|
596
|
-
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") {
|
|
597
432
|
return nodeName(
|
|
598
433
|
vnodeData === null ? {} : vnodeData,
|
|
599
434
|
vNodeChildren,
|
|
@@ -605,10 +440,10 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
605
440
|
if (vNodeChildren.length > 0) {
|
|
606
441
|
vnode.$children$ = vNodeChildren;
|
|
607
442
|
}
|
|
608
|
-
{
|
|
443
|
+
if (BUILD.vdomKey) {
|
|
609
444
|
vnode.$key$ = key;
|
|
610
445
|
}
|
|
611
|
-
{
|
|
446
|
+
if (BUILD.slotRelocation) {
|
|
612
447
|
vnode.$name$ = slotName;
|
|
613
448
|
}
|
|
614
449
|
return vnode;
|
|
@@ -621,13 +456,13 @@ var newVNode = (tag, text) => {
|
|
|
621
456
|
$elm$: null,
|
|
622
457
|
$children$: null
|
|
623
458
|
};
|
|
624
|
-
{
|
|
459
|
+
if (BUILD.vdomAttribute) {
|
|
625
460
|
vnode.$attrs$ = null;
|
|
626
461
|
}
|
|
627
|
-
{
|
|
462
|
+
if (BUILD.vdomKey) {
|
|
628
463
|
vnode.$key$ = null;
|
|
629
464
|
}
|
|
630
|
-
{
|
|
465
|
+
if (BUILD.slotRelocation) {
|
|
631
466
|
vnode.$name$ = null;
|
|
632
467
|
}
|
|
633
468
|
return vnode;
|
|
@@ -664,6 +499,20 @@ var convertToPrivate = (node) => {
|
|
|
664
499
|
vnode.$name$ = node.vname;
|
|
665
500
|
return vnode;
|
|
666
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
|
+
};
|
|
667
516
|
|
|
668
517
|
// src/runtime/client-hydrate.ts
|
|
669
518
|
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
@@ -671,7 +520,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
671
520
|
const shadowRoot = hostElm.shadowRoot;
|
|
672
521
|
const childRenderNodes = [];
|
|
673
522
|
const slotNodes = [];
|
|
674
|
-
const shadowRootNodes = shadowRoot ? [] : null;
|
|
523
|
+
const shadowRootNodes = BUILD.shadowDom && shadowRoot ? [] : null;
|
|
675
524
|
const vnode = hostRef.$vnode$ = newVNode(tagName, null);
|
|
676
525
|
if (!plt.$orgLocNodes$) {
|
|
677
526
|
initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
|
|
@@ -695,7 +544,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
695
544
|
}
|
|
696
545
|
plt.$orgLocNodes$.delete(orgLocationId);
|
|
697
546
|
});
|
|
698
|
-
if (shadowRoot) {
|
|
547
|
+
if (BUILD.shadowDom && shadowRoot) {
|
|
699
548
|
shadowRootNodes.map((shadowRootNode) => {
|
|
700
549
|
if (shadowRootNode) {
|
|
701
550
|
shadowRoot.appendChild(shadowRootNode);
|
|
@@ -805,7 +654,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
805
654
|
node["s-sn"] = "";
|
|
806
655
|
}
|
|
807
656
|
node["s-sr"] = true;
|
|
808
|
-
if (shadowRootNodes) {
|
|
657
|
+
if (BUILD.shadowDom && shadowRootNodes) {
|
|
809
658
|
childVNode.$elm$ = doc.createElement(childVNode.$tag$);
|
|
810
659
|
if (childVNode.$name$) {
|
|
811
660
|
childVNode.$elm$.setAttribute("name", childVNode.$name$);
|
|
@@ -822,9 +671,9 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
822
671
|
}
|
|
823
672
|
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
824
673
|
} else if (childNodeType === CONTENT_REF_ID) {
|
|
825
|
-
if (shadowRootNodes) {
|
|
674
|
+
if (BUILD.shadowDom && shadowRootNodes) {
|
|
826
675
|
node.remove();
|
|
827
|
-
} else {
|
|
676
|
+
} else if (BUILD.slotRelocation) {
|
|
828
677
|
hostElm["s-cr"] = node;
|
|
829
678
|
node["s-cn"] = true;
|
|
830
679
|
}
|
|
@@ -858,28 +707,36 @@ var initializeDocumentHydrate = (node, orgLocNodes) => {
|
|
|
858
707
|
}
|
|
859
708
|
}
|
|
860
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$;
|
|
861
715
|
var parsePropertyValue = (propValue, propType) => {
|
|
862
716
|
if (propValue != null && !isComplexType(propValue)) {
|
|
863
|
-
if (propType & 4 /* Boolean */) {
|
|
717
|
+
if (BUILD.propBoolean && propType & 4 /* Boolean */) {
|
|
864
718
|
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
865
719
|
}
|
|
866
|
-
if (propType & 2 /* Number */) {
|
|
720
|
+
if (BUILD.propNumber && propType & 2 /* Number */) {
|
|
867
721
|
return parseFloat(propValue);
|
|
868
722
|
}
|
|
869
|
-
if (propType & 1 /* String */) {
|
|
723
|
+
if (BUILD.propString && propType & 1 /* String */) {
|
|
870
724
|
return String(propValue);
|
|
871
725
|
}
|
|
872
726
|
return propValue;
|
|
873
727
|
}
|
|
874
728
|
return propValue;
|
|
875
729
|
};
|
|
876
|
-
var getElement = (ref) => getHostRef(ref).$hostElement$ ;
|
|
730
|
+
var getElement = (ref) => BUILD.lazyLoad ? getHostRef(ref).$hostElement$ : ref;
|
|
877
731
|
|
|
878
732
|
// src/runtime/event-emitter.ts
|
|
879
733
|
var createEvent = (ref, name, flags) => {
|
|
880
734
|
const elm = getElement(ref);
|
|
881
735
|
return {
|
|
882
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
|
+
}
|
|
883
740
|
return emitEvent(elm, name, {
|
|
884
741
|
bubbles: !!(flags & 4 /* Bubbles */),
|
|
885
742
|
composed: !!(flags & 2 /* Composed */),
|
|
@@ -911,8 +768,11 @@ var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
|
911
768
|
};
|
|
912
769
|
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
913
770
|
var _a;
|
|
914
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
771
|
+
const scopeId2 = getScopeId(cmpMeta, mode);
|
|
915
772
|
const style = styles.get(scopeId2);
|
|
773
|
+
if (!BUILD.attachStyles) {
|
|
774
|
+
return scopeId2;
|
|
775
|
+
}
|
|
916
776
|
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
917
777
|
if (style) {
|
|
918
778
|
if (typeof style === "string") {
|
|
@@ -923,7 +783,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
923
783
|
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
924
784
|
}
|
|
925
785
|
if (!appliedStyles.has(scopeId2)) {
|
|
926
|
-
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
786
|
+
if (BUILD.hydrateClientSide && styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
927
787
|
styleElm.innerHTML = style;
|
|
928
788
|
} else {
|
|
929
789
|
styleElm = doc.createElement("style");
|
|
@@ -932,6 +792,9 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
932
792
|
if (nonce != null) {
|
|
933
793
|
styleElm.setAttribute("nonce", nonce);
|
|
934
794
|
}
|
|
795
|
+
if ((BUILD.hydrateServerSide || BUILD.hotModuleReplacement) && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
796
|
+
styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
|
|
797
|
+
}
|
|
935
798
|
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
936
799
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
937
800
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
@@ -954,7 +817,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
954
817
|
appliedStyles.add(scopeId2);
|
|
955
818
|
}
|
|
956
819
|
}
|
|
957
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
820
|
+
} else if (BUILD.constructableCSS && !styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
958
821
|
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
959
822
|
}
|
|
960
823
|
}
|
|
@@ -966,30 +829,35 @@ var attachStyles = (hostRef) => {
|
|
|
966
829
|
const flags = cmpMeta.$flags$;
|
|
967
830
|
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
968
831
|
const scopeId2 = addStyle(
|
|
969
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
970
|
-
cmpMeta
|
|
971
|
-
|
|
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 */) {
|
|
972
837
|
elm["s-sc"] = scopeId2;
|
|
973
838
|
elm.classList.add(scopeId2 + "-h");
|
|
839
|
+
if (BUILD.scoped && flags & 2 /* scopedCssEncapsulation */) {
|
|
840
|
+
elm.classList.add(scopeId2 + "-s");
|
|
841
|
+
}
|
|
974
842
|
}
|
|
975
843
|
endAttachStyles();
|
|
976
844
|
};
|
|
977
|
-
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$);
|
|
978
846
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
979
847
|
if (oldValue !== newValue) {
|
|
980
848
|
let isProp = isMemberInElement(elm, memberName);
|
|
981
849
|
let ln = memberName.toLowerCase();
|
|
982
|
-
if (memberName === "class") {
|
|
850
|
+
if (BUILD.vdomClass && memberName === "class") {
|
|
983
851
|
const classList = elm.classList;
|
|
984
852
|
const oldClasses = parseClassList(oldValue);
|
|
985
853
|
const newClasses = parseClassList(newValue);
|
|
986
854
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
987
855
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
988
|
-
} else if (memberName === "style") {
|
|
989
|
-
{
|
|
856
|
+
} else if (BUILD.vdomStyle && memberName === "style") {
|
|
857
|
+
if (BUILD.updatable) {
|
|
990
858
|
for (const prop in oldValue) {
|
|
991
859
|
if (!newValue || newValue[prop] == null) {
|
|
992
|
-
if (prop.includes("-")) {
|
|
860
|
+
if (!BUILD.hydrateServerSide && prop.includes("-")) {
|
|
993
861
|
elm.style.removeProperty(prop);
|
|
994
862
|
} else {
|
|
995
863
|
elm.style[prop] = "";
|
|
@@ -999,18 +867,19 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
999
867
|
}
|
|
1000
868
|
for (const prop in newValue) {
|
|
1001
869
|
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
1002
|
-
if (prop.includes("-")) {
|
|
870
|
+
if (!BUILD.hydrateServerSide && prop.includes("-")) {
|
|
1003
871
|
elm.style.setProperty(prop, newValue[prop]);
|
|
1004
872
|
} else {
|
|
1005
873
|
elm.style[prop] = newValue[prop];
|
|
1006
874
|
}
|
|
1007
875
|
}
|
|
1008
876
|
}
|
|
1009
|
-
} else if (
|
|
877
|
+
} else if (BUILD.vdomKey && memberName === "key") {
|
|
878
|
+
} else if (BUILD.vdomRef && memberName === "ref") {
|
|
1010
879
|
if (newValue) {
|
|
1011
880
|
newValue(elm);
|
|
1012
881
|
}
|
|
1013
|
-
} 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") {
|
|
1014
883
|
if (memberName[2] === "-") {
|
|
1015
884
|
memberName = memberName.slice(3);
|
|
1016
885
|
} else if (isMemberInElement(win, ln)) {
|
|
@@ -1028,7 +897,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
1028
897
|
plt.ael(elm, memberName, newValue, capture);
|
|
1029
898
|
}
|
|
1030
899
|
}
|
|
1031
|
-
} else {
|
|
900
|
+
} else if (BUILD.vdomPropOrAttr) {
|
|
1032
901
|
const isComplex = isComplexType(newValue);
|
|
1033
902
|
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
1034
903
|
try {
|
|
@@ -1050,7 +919,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
1050
919
|
}
|
|
1051
920
|
}
|
|
1052
921
|
let xlink = false;
|
|
1053
|
-
{
|
|
922
|
+
if (BUILD.vdomXlink) {
|
|
1054
923
|
if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
|
|
1055
924
|
memberName = ln;
|
|
1056
925
|
xlink = true;
|
|
@@ -1058,7 +927,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
1058
927
|
}
|
|
1059
928
|
if (newValue == null || newValue === false) {
|
|
1060
929
|
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
1061
|
-
if (xlink) {
|
|
930
|
+
if (BUILD.vdomXlink && xlink) {
|
|
1062
931
|
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
1063
932
|
} else {
|
|
1064
933
|
elm.removeAttribute(memberName);
|
|
@@ -1066,7 +935,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
1066
935
|
}
|
|
1067
936
|
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
1068
937
|
newValue = newValue === true ? "" : newValue;
|
|
1069
|
-
if (xlink) {
|
|
938
|
+
if (BUILD.vdomXlink && xlink) {
|
|
1070
939
|
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
1071
940
|
} else {
|
|
1072
941
|
elm.setAttribute(memberName, newValue);
|
|
@@ -1085,7 +954,7 @@ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
|
1085
954
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
1086
955
|
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
1087
956
|
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
1088
|
-
{
|
|
957
|
+
if (BUILD.updatable) {
|
|
1089
958
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
1090
959
|
if (!(memberName in newVnodeAttrs)) {
|
|
1091
960
|
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
@@ -1121,7 +990,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
1121
990
|
let elm;
|
|
1122
991
|
let childNode;
|
|
1123
992
|
let oldVNode;
|
|
1124
|
-
if (!useNativeShadowDom) {
|
|
993
|
+
if (BUILD.slotRelocation && !useNativeShadowDom) {
|
|
1125
994
|
checkSlotRelocate = true;
|
|
1126
995
|
if (newVNode2.$tag$ === "slot") {
|
|
1127
996
|
if (scopeId) {
|
|
@@ -1139,15 +1008,29 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
1139
1008
|
);
|
|
1140
1009
|
}
|
|
1141
1010
|
}
|
|
1142
|
-
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) {
|
|
1143
1017
|
elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
|
|
1144
|
-
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
1145
|
-
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("");
|
|
1146
1020
|
} else {
|
|
1147
|
-
|
|
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(
|
|
1148
1028
|
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
1149
1029
|
);
|
|
1150
|
-
{
|
|
1030
|
+
if (BUILD.svg && isSvgMode && newVNode2.$tag$ === "foreignObject") {
|
|
1031
|
+
isSvgMode = false;
|
|
1032
|
+
}
|
|
1033
|
+
if (BUILD.vdomAttribute) {
|
|
1151
1034
|
updateElement(null, newVNode2, isSvgMode);
|
|
1152
1035
|
}
|
|
1153
1036
|
const rootNode = elm.getRootNode();
|
|
@@ -1155,6 +1038,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
1155
1038
|
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
1156
1039
|
elm.classList.add(elm["s-si"] = scopeId);
|
|
1157
1040
|
}
|
|
1041
|
+
if (BUILD.scoped) {
|
|
1042
|
+
updateElementScopeIds(elm, parentElm);
|
|
1043
|
+
}
|
|
1158
1044
|
if (newVNode2.$children$) {
|
|
1159
1045
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
1160
1046
|
childNode = createElm(oldParentVNode, newVNode2, i2, elm);
|
|
@@ -1163,9 +1049,16 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
1163
1049
|
}
|
|
1164
1050
|
}
|
|
1165
1051
|
}
|
|
1052
|
+
if (BUILD.svg) {
|
|
1053
|
+
if (newVNode2.$tag$ === "svg") {
|
|
1054
|
+
isSvgMode = false;
|
|
1055
|
+
} else if (elm.tagName === "foreignObject") {
|
|
1056
|
+
isSvgMode = true;
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1166
1059
|
}
|
|
1167
1060
|
elm["s-hn"] = hostTagName;
|
|
1168
|
-
{
|
|
1061
|
+
if (BUILD.slotRelocation) {
|
|
1169
1062
|
if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
|
|
1170
1063
|
elm["s-sr"] = true;
|
|
1171
1064
|
elm["s-cr"] = contentRef;
|
|
@@ -1173,7 +1066,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
1173
1066
|
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
|
1174
1067
|
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
1175
1068
|
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
1176
|
-
{
|
|
1069
|
+
if (BUILD.experimentalSlotFixes) {
|
|
1070
|
+
relocateToHostRoot(oldParentVNode.$elm$);
|
|
1071
|
+
} else {
|
|
1177
1072
|
putBackInOriginalLocation(oldParentVNode.$elm$, false);
|
|
1178
1073
|
}
|
|
1179
1074
|
}
|
|
@@ -1181,6 +1076,22 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
1181
1076
|
}
|
|
1182
1077
|
return elm;
|
|
1183
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
|
+
};
|
|
1184
1095
|
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
1185
1096
|
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
1186
1097
|
const oldSlotChildNodes = Array.from(parentElm.childNodes);
|
|
@@ -1208,9 +1119,9 @@ var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
1208
1119
|
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
1209
1120
|
};
|
|
1210
1121
|
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
1211
|
-
let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
|
|
1122
|
+
let containerElm = BUILD.slotRelocation && parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
|
|
1212
1123
|
let childNode;
|
|
1213
|
-
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
1124
|
+
if (BUILD.shadowDom && containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
1214
1125
|
containerElm = containerElm.shadowRoot;
|
|
1215
1126
|
}
|
|
1216
1127
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
@@ -1218,7 +1129,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
|
1218
1129
|
childNode = createElm(null, parentVNode, startIdx, parentElm);
|
|
1219
1130
|
if (childNode) {
|
|
1220
1131
|
vnodes[startIdx].$elm$ = childNode;
|
|
1221
|
-
insertBefore(containerElm, childNode, referenceNode(before) );
|
|
1132
|
+
insertBefore(containerElm, childNode, BUILD.slotRelocation ? referenceNode(before) : before);
|
|
1222
1133
|
}
|
|
1223
1134
|
}
|
|
1224
1135
|
}
|
|
@@ -1230,7 +1141,7 @@ var removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
|
1230
1141
|
const elm = vnode.$elm$;
|
|
1231
1142
|
nullifyVNodeRefs(vnode);
|
|
1232
1143
|
if (elm) {
|
|
1233
|
-
{
|
|
1144
|
+
if (BUILD.slotRelocation) {
|
|
1234
1145
|
checkSlotFallbackVisibility = true;
|
|
1235
1146
|
if (elm["s-ol"]) {
|
|
1236
1147
|
elm["s-ol"].remove();
|
|
@@ -1274,7 +1185,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1274
1185
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
1275
1186
|
newEndVnode = newCh[--newEndIdx];
|
|
1276
1187
|
} else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
|
1277
|
-
if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
1188
|
+
if (BUILD.slotRelocation && (oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
1278
1189
|
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
|
1279
1190
|
}
|
|
1280
1191
|
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
@@ -1282,7 +1193,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1282
1193
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
1283
1194
|
newEndVnode = newCh[--newEndIdx];
|
|
1284
1195
|
} else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
1285
|
-
if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
1196
|
+
if (BUILD.slotRelocation && (oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
1286
1197
|
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
|
1287
1198
|
}
|
|
1288
1199
|
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
@@ -1291,7 +1202,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1291
1202
|
newStartVnode = newCh[++newStartIdx];
|
|
1292
1203
|
} else {
|
|
1293
1204
|
idxInOld = -1;
|
|
1294
|
-
{
|
|
1205
|
+
if (BUILD.vdomKey) {
|
|
1295
1206
|
for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
|
|
1296
1207
|
if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
|
|
1297
1208
|
idxInOld = i2;
|
|
@@ -1299,7 +1210,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1299
1210
|
}
|
|
1300
1211
|
}
|
|
1301
1212
|
}
|
|
1302
|
-
if (idxInOld >= 0) {
|
|
1213
|
+
if (BUILD.vdomKey && idxInOld >= 0) {
|
|
1303
1214
|
elmToMove = oldCh[idxInOld];
|
|
1304
1215
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
1305
1216
|
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
|
|
@@ -1314,8 +1225,10 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1314
1225
|
newStartVnode = newCh[++newStartIdx];
|
|
1315
1226
|
}
|
|
1316
1227
|
if (node) {
|
|
1317
|
-
{
|
|
1228
|
+
if (BUILD.slotRelocation) {
|
|
1318
1229
|
insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
|
|
1230
|
+
} else {
|
|
1231
|
+
insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
|
|
1319
1232
|
}
|
|
1320
1233
|
}
|
|
1321
1234
|
}
|
|
@@ -1329,13 +1242,13 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1329
1242
|
newStartIdx,
|
|
1330
1243
|
newEndIdx
|
|
1331
1244
|
);
|
|
1332
|
-
} else if (newStartIdx > newEndIdx) {
|
|
1245
|
+
} else if (BUILD.updatable && newStartIdx > newEndIdx) {
|
|
1333
1246
|
removeVnodes(oldCh, oldStartIdx, oldEndIdx);
|
|
1334
1247
|
}
|
|
1335
1248
|
};
|
|
1336
1249
|
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
1337
1250
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
1338
|
-
if (leftVNode.$tag$ === "slot") {
|
|
1251
|
+
if (BUILD.slotRelocation && leftVNode.$tag$ === "slot") {
|
|
1339
1252
|
if (
|
|
1340
1253
|
// The component gets hydrated and no VDOM has been initialized.
|
|
1341
1254
|
// Here the comparison can't happen as $name$ property is not set for `leftNode`.
|
|
@@ -1347,7 +1260,7 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
1347
1260
|
}
|
|
1348
1261
|
return leftVNode.$name$ === rightVNode.$name$;
|
|
1349
1262
|
}
|
|
1350
|
-
if (!isInitialRender) {
|
|
1263
|
+
if (BUILD.vdomKey && !isInitialRender) {
|
|
1351
1264
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
1352
1265
|
}
|
|
1353
1266
|
return true;
|
|
@@ -1365,16 +1278,24 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1365
1278
|
const tag = newVNode2.$tag$;
|
|
1366
1279
|
const text = newVNode2.$text$;
|
|
1367
1280
|
let defaultHolder;
|
|
1368
|
-
if (text === null) {
|
|
1369
|
-
{
|
|
1370
|
-
|
|
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 {
|
|
1371
1292
|
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
1372
1293
|
}
|
|
1373
1294
|
}
|
|
1374
|
-
if (oldChildren !== null && newChildren !== null) {
|
|
1295
|
+
if (BUILD.updatable && oldChildren !== null && newChildren !== null) {
|
|
1375
1296
|
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
1376
1297
|
} else if (newChildren !== null) {
|
|
1377
|
-
if (oldVNode.$text$ !== null) {
|
|
1298
|
+
if (BUILD.updatable && BUILD.vdomText && oldVNode.$text$ !== null) {
|
|
1378
1299
|
elm.textContent = "";
|
|
1379
1300
|
}
|
|
1380
1301
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
@@ -1384,9 +1305,12 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1384
1305
|
) {
|
|
1385
1306
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
1386
1307
|
}
|
|
1387
|
-
|
|
1308
|
+
if (BUILD.svg && isSvgMode && tag === "svg") {
|
|
1309
|
+
isSvgMode = false;
|
|
1310
|
+
}
|
|
1311
|
+
} else if (BUILD.vdomText && BUILD.slotRelocation && (defaultHolder = elm["s-cr"])) {
|
|
1388
1312
|
defaultHolder.parentNode.textContent = text;
|
|
1389
|
-
} else if (oldVNode.$text$ !== text) {
|
|
1313
|
+
} else if (BUILD.vdomText && oldVNode.$text$ !== text) {
|
|
1390
1314
|
elm.data = text;
|
|
1391
1315
|
}
|
|
1392
1316
|
};
|
|
@@ -1428,7 +1352,7 @@ var markSlotContentForRelocation = (elm) => {
|
|
|
1428
1352
|
const slotName = childNode["s-sn"];
|
|
1429
1353
|
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
1430
1354
|
node = hostContentNodes[j];
|
|
1431
|
-
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"])) {
|
|
1432
1356
|
if (isNodeLocatedInSlot(node, slotName)) {
|
|
1433
1357
|
let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
1434
1358
|
checkSlotFallbackVisibility = true;
|
|
@@ -1482,23 +1406,66 @@ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
|
1482
1406
|
return slotName === "";
|
|
1483
1407
|
};
|
|
1484
1408
|
var nullifyVNodeRefs = (vNode) => {
|
|
1485
|
-
{
|
|
1409
|
+
if (BUILD.vdomRef) {
|
|
1486
1410
|
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
1487
1411
|
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
1488
1412
|
}
|
|
1489
1413
|
};
|
|
1490
1414
|
var insertBefore = (parent, newNode, reference) => {
|
|
1491
1415
|
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
1416
|
+
if (BUILD.scoped) {
|
|
1417
|
+
updateElementScopeIds(newNode, parent);
|
|
1418
|
+
}
|
|
1492
1419
|
return inserted;
|
|
1493
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
|
+
};
|
|
1494
1447
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
1495
|
-
var _a, _b, _c, _d;
|
|
1448
|
+
var _a, _b, _c, _d, _e;
|
|
1496
1449
|
const hostElm = hostRef.$hostElement$;
|
|
1497
1450
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
1498
1451
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
1499
1452
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
1500
1453
|
hostTagName = hostElm.tagName;
|
|
1501
|
-
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$) {
|
|
1502
1469
|
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
1503
1470
|
cmpMeta.$attrsToReflect$.map(
|
|
1504
1471
|
([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]
|
|
@@ -1514,24 +1481,24 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1514
1481
|
rootVnode.$tag$ = null;
|
|
1515
1482
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
1516
1483
|
hostRef.$vnode$ = rootVnode;
|
|
1517
|
-
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
1518
|
-
{
|
|
1484
|
+
rootVnode.$elm$ = oldVNode.$elm$ = BUILD.shadowDom ? hostElm.shadowRoot || hostElm : hostElm;
|
|
1485
|
+
if (BUILD.scoped || BUILD.shadowDom) {
|
|
1519
1486
|
scopeId = hostElm["s-sc"];
|
|
1520
1487
|
}
|
|
1521
|
-
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
1522
|
-
{
|
|
1488
|
+
useNativeShadowDom = supportsShadow && (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
1489
|
+
if (BUILD.slotRelocation) {
|
|
1523
1490
|
contentRef = hostElm["s-cr"];
|
|
1524
1491
|
checkSlotFallbackVisibility = false;
|
|
1525
1492
|
}
|
|
1526
1493
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
1527
|
-
{
|
|
1494
|
+
if (BUILD.slotRelocation) {
|
|
1528
1495
|
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
1529
1496
|
if (checkSlotRelocate) {
|
|
1530
1497
|
markSlotContentForRelocation(rootVnode.$elm$);
|
|
1531
1498
|
for (const relocateData of relocateNodes) {
|
|
1532
1499
|
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1533
1500
|
if (!nodeToRelocate["s-ol"]) {
|
|
1534
|
-
const orgLocationNode = doc.createTextNode("");
|
|
1501
|
+
const orgLocationNode = BUILD.isDebug || BUILD.hydrateServerSide ? originalLocationDebugNode(nodeToRelocate) : doc.createTextNode("");
|
|
1535
1502
|
orgLocationNode["s-nr"] = nodeToRelocate;
|
|
1536
1503
|
insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
|
|
1537
1504
|
}
|
|
@@ -1542,7 +1509,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1542
1509
|
if (slotRefNode) {
|
|
1543
1510
|
const parentNodeRef = slotRefNode.parentNode;
|
|
1544
1511
|
let insertBeforeNode = slotRefNode.nextSibling;
|
|
1545
|
-
{
|
|
1512
|
+
if (!BUILD.experimentalSlotFixes || insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */) {
|
|
1546
1513
|
let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
|
|
1547
1514
|
while (orgLocationNode) {
|
|
1548
1515
|
let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
|
|
@@ -1561,7 +1528,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1561
1528
|
}
|
|
1562
1529
|
if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
1563
1530
|
if (nodeToRelocate !== insertBeforeNode) {
|
|
1564
|
-
if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
|
|
1531
|
+
if (!BUILD.experimentalSlotFixes && !nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
|
|
1565
1532
|
nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
|
|
1566
1533
|
}
|
|
1567
1534
|
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
|
|
@@ -1587,31 +1554,47 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1587
1554
|
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
1588
1555
|
relocateNodes.length = 0;
|
|
1589
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
|
+
}
|
|
1590
1567
|
contentRef = void 0;
|
|
1591
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
|
+
);
|
|
1592
1575
|
|
|
1593
1576
|
// src/runtime/update-component.ts
|
|
1594
1577
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
1595
|
-
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
1578
|
+
if (BUILD.asyncLoading && ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
1596
1579
|
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
1597
1580
|
}
|
|
1598
1581
|
};
|
|
1599
1582
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
1600
|
-
{
|
|
1583
|
+
if (BUILD.taskQueue && BUILD.updatable) {
|
|
1601
1584
|
hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
|
|
1602
1585
|
}
|
|
1603
|
-
if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
|
|
1586
|
+
if (BUILD.asyncLoading && hostRef.$flags$ & 4 /* isWaitingForChildren */) {
|
|
1604
1587
|
hostRef.$flags$ |= 512 /* needsRerender */;
|
|
1605
1588
|
return;
|
|
1606
1589
|
}
|
|
1607
1590
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
1608
1591
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
1609
|
-
return writeTask(dispatch) ;
|
|
1592
|
+
return BUILD.taskQueue ? writeTask(dispatch) : dispatch();
|
|
1610
1593
|
};
|
|
1611
1594
|
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
1612
1595
|
const elm = hostRef.$hostElement$;
|
|
1613
1596
|
const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
|
|
1614
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
1597
|
+
const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
|
|
1615
1598
|
if (!instance) {
|
|
1616
1599
|
throw new Error(
|
|
1617
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`
|
|
@@ -1619,16 +1602,26 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1619
1602
|
}
|
|
1620
1603
|
let maybePromise;
|
|
1621
1604
|
if (isInitialLoad) {
|
|
1622
|
-
{
|
|
1605
|
+
if (BUILD.lazyLoad && BUILD.hostListener) {
|
|
1623
1606
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
1624
1607
|
if (hostRef.$queuedListeners$) {
|
|
1625
1608
|
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
1626
1609
|
hostRef.$queuedListeners$ = void 0;
|
|
1627
1610
|
}
|
|
1628
1611
|
}
|
|
1629
|
-
|
|
1612
|
+
emitLifecycleEvent(elm, "componentWillLoad");
|
|
1613
|
+
if (BUILD.cmpWillLoad) {
|
|
1630
1614
|
maybePromise = safeCall(instance, "componentWillLoad");
|
|
1631
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"));
|
|
1632
1625
|
}
|
|
1633
1626
|
endSchedule();
|
|
1634
1627
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
@@ -1643,20 +1636,43 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1643
1636
|
const elm = hostRef.$hostElement$;
|
|
1644
1637
|
const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
|
|
1645
1638
|
const rc = elm["s-rc"];
|
|
1646
|
-
if (isInitialLoad) {
|
|
1639
|
+
if (BUILD.style && isInitialLoad) {
|
|
1647
1640
|
attachStyles(hostRef);
|
|
1648
1641
|
}
|
|
1649
1642
|
const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
|
|
1650
|
-
{
|
|
1643
|
+
if (BUILD.isDev) {
|
|
1644
|
+
hostRef.$flags$ |= 1024 /* devOnRender */;
|
|
1645
|
+
}
|
|
1646
|
+
if (BUILD.hydrateServerSide) {
|
|
1647
|
+
await callRender(hostRef, instance, elm, isInitialLoad);
|
|
1648
|
+
} else {
|
|
1651
1649
|
callRender(hostRef, instance, elm, isInitialLoad);
|
|
1652
1650
|
}
|
|
1653
|
-
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) {
|
|
1654
1670
|
rc.map((cb) => cb());
|
|
1655
1671
|
elm["s-rc"] = void 0;
|
|
1656
1672
|
}
|
|
1657
1673
|
endRender();
|
|
1658
1674
|
endUpdate();
|
|
1659
|
-
{
|
|
1675
|
+
if (BUILD.asyncLoading) {
|
|
1660
1676
|
const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
|
|
1661
1677
|
const postUpdate = () => postUpdateComponent(hostRef);
|
|
1662
1678
|
if (childrenPromises.length === 0) {
|
|
@@ -1666,60 +1682,103 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1666
1682
|
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
1667
1683
|
childrenPromises.length = 0;
|
|
1668
1684
|
}
|
|
1685
|
+
} else {
|
|
1686
|
+
postUpdateComponent(hostRef);
|
|
1669
1687
|
}
|
|
1670
1688
|
};
|
|
1689
|
+
var renderingRef = null;
|
|
1671
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;
|
|
1672
1695
|
try {
|
|
1673
|
-
|
|
1674
|
-
|
|
1696
|
+
renderingRef = instance;
|
|
1697
|
+
instance = allRenderFn ? instance.render() : instance.render && instance.render();
|
|
1698
|
+
if (updatable && taskQueue) {
|
|
1675
1699
|
hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
|
|
1676
1700
|
}
|
|
1677
|
-
{
|
|
1701
|
+
if (updatable || lazyLoad) {
|
|
1678
1702
|
hostRef.$flags$ |= 2 /* hasRendered */;
|
|
1679
1703
|
}
|
|
1680
|
-
{
|
|
1681
|
-
{
|
|
1682
|
-
{
|
|
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 {
|
|
1683
1709
|
renderVdom(hostRef, instance, isInitialLoad);
|
|
1684
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
|
+
}
|
|
1685
1718
|
}
|
|
1686
1719
|
}
|
|
1687
1720
|
} catch (e) {
|
|
1688
1721
|
consoleError(e, hostRef.$hostElement$);
|
|
1689
1722
|
}
|
|
1723
|
+
renderingRef = null;
|
|
1690
1724
|
return null;
|
|
1691
1725
|
};
|
|
1726
|
+
var getRenderingRef = () => renderingRef;
|
|
1692
1727
|
var postUpdateComponent = (hostRef) => {
|
|
1693
1728
|
const tagName = hostRef.$cmpMeta$.$tagName$;
|
|
1694
1729
|
const elm = hostRef.$hostElement$;
|
|
1695
1730
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
1696
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
1731
|
+
const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
|
|
1697
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");
|
|
1698
1743
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
1699
1744
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
1700
|
-
{
|
|
1745
|
+
if (BUILD.asyncLoading && BUILD.cssAnnotations) {
|
|
1701
1746
|
addHydratedFlag(elm);
|
|
1702
1747
|
}
|
|
1703
|
-
{
|
|
1748
|
+
if (BUILD.cmpDidLoad) {
|
|
1749
|
+
if (BUILD.isDev) {
|
|
1750
|
+
hostRef.$flags$ |= 2048 /* devOnDidLoad */;
|
|
1751
|
+
}
|
|
1704
1752
|
safeCall(instance, "componentDidLoad");
|
|
1753
|
+
if (BUILD.isDev) {
|
|
1754
|
+
hostRef.$flags$ &= ~2048 /* devOnDidLoad */;
|
|
1755
|
+
}
|
|
1705
1756
|
}
|
|
1757
|
+
emitLifecycleEvent(elm, "componentDidLoad");
|
|
1706
1758
|
endPostUpdate();
|
|
1707
|
-
{
|
|
1759
|
+
if (BUILD.asyncLoading) {
|
|
1708
1760
|
hostRef.$onReadyResolve$(elm);
|
|
1709
1761
|
if (!ancestorComponent) {
|
|
1710
|
-
appDidLoad();
|
|
1762
|
+
appDidLoad(tagName);
|
|
1711
1763
|
}
|
|
1712
1764
|
}
|
|
1713
1765
|
} else {
|
|
1714
|
-
{
|
|
1766
|
+
if (BUILD.cmpDidUpdate) {
|
|
1767
|
+
if (BUILD.isDev) {
|
|
1768
|
+
hostRef.$flags$ |= 1024 /* devOnRender */;
|
|
1769
|
+
}
|
|
1715
1770
|
safeCall(instance, "componentDidUpdate");
|
|
1771
|
+
if (BUILD.isDev) {
|
|
1772
|
+
hostRef.$flags$ &= ~1024 /* devOnRender */;
|
|
1773
|
+
}
|
|
1716
1774
|
}
|
|
1775
|
+
emitLifecycleEvent(elm, "componentDidUpdate");
|
|
1717
1776
|
endPostUpdate();
|
|
1718
1777
|
}
|
|
1719
|
-
{
|
|
1778
|
+
if (BUILD.method && BUILD.lazyLoad) {
|
|
1720
1779
|
hostRef.$onInstanceResolve$(elm);
|
|
1721
1780
|
}
|
|
1722
|
-
{
|
|
1781
|
+
if (BUILD.asyncLoading) {
|
|
1723
1782
|
if (hostRef.$onRenderResolve$) {
|
|
1724
1783
|
hostRef.$onRenderResolve$();
|
|
1725
1784
|
hostRef.$onRenderResolve$ = void 0;
|
|
@@ -1730,11 +1789,28 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1730
1789
|
hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
|
|
1731
1790
|
}
|
|
1732
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
|
+
};
|
|
1733
1803
|
var appDidLoad = (who) => {
|
|
1734
|
-
{
|
|
1804
|
+
if (BUILD.cssAnnotations) {
|
|
1735
1805
|
addHydratedFlag(doc.documentElement);
|
|
1736
1806
|
}
|
|
1807
|
+
if (BUILD.asyncQueue) {
|
|
1808
|
+
plt.$flags$ |= 2 /* appLoaded */;
|
|
1809
|
+
}
|
|
1737
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
|
+
}
|
|
1738
1814
|
};
|
|
1739
1815
|
var safeCall = (instance, method, arg) => {
|
|
1740
1816
|
if (instance && instance[method]) {
|
|
@@ -1746,31 +1822,77 @@ var safeCall = (instance, method, arg) => {
|
|
|
1746
1822
|
}
|
|
1747
1823
|
return void 0;
|
|
1748
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
|
+
};
|
|
1749
1836
|
var addHydratedFlag = (elm) => {
|
|
1750
|
-
var _a;
|
|
1751
|
-
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
|
+
}
|
|
1752
1851
|
};
|
|
1753
1852
|
|
|
1754
1853
|
// src/runtime/set-value.ts
|
|
1755
1854
|
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
1756
1855
|
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
1757
1856
|
const hostRef = getHostRef(ref);
|
|
1758
|
-
if (!hostRef) {
|
|
1857
|
+
if (BUILD.lazyLoad && !hostRef) {
|
|
1759
1858
|
throw new Error(
|
|
1760
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).`
|
|
1761
1860
|
);
|
|
1762
1861
|
}
|
|
1763
|
-
const elm = hostRef.$hostElement$ ;
|
|
1862
|
+
const elm = BUILD.lazyLoad ? hostRef.$hostElement$ : ref;
|
|
1764
1863
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
1765
1864
|
const flags = hostRef.$flags$;
|
|
1766
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
1865
|
+
const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
|
|
1767
1866
|
newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
|
|
1768
1867
|
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
1769
1868
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1770
|
-
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
1869
|
+
if ((!BUILD.lazyLoad || !(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
1771
1870
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
1772
|
-
if (
|
|
1773
|
-
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 */) {
|
|
1774
1896
|
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1775
1897
|
if (watchMethods) {
|
|
1776
1898
|
watchMethods.map((watchMethodName) => {
|
|
@@ -1782,7 +1904,12 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1782
1904
|
});
|
|
1783
1905
|
}
|
|
1784
1906
|
}
|
|
1785
|
-
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
|
+
}
|
|
1786
1913
|
scheduleUpdate(hostRef, false);
|
|
1787
1914
|
}
|
|
1788
1915
|
}
|
|
@@ -1793,24 +1920,59 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1793
1920
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1794
1921
|
var _a, _b;
|
|
1795
1922
|
const prototype = Cstr.prototype;
|
|
1796
|
-
if (
|
|
1797
|
-
|
|
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$) {
|
|
1798
1945
|
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1799
1946
|
}
|
|
1800
1947
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1801
1948
|
members.map(([memberName, [memberFlags]]) => {
|
|
1802
|
-
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 */)) {
|
|
1803
1950
|
Object.defineProperty(prototype, memberName, {
|
|
1804
1951
|
get() {
|
|
1805
1952
|
return getValue(this, memberName);
|
|
1806
1953
|
},
|
|
1807
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
|
+
}
|
|
1808
1970
|
setValue(this, memberName, newValue, cmpMeta);
|
|
1809
1971
|
},
|
|
1810
1972
|
configurable: true,
|
|
1811
1973
|
enumerable: true
|
|
1812
1974
|
});
|
|
1813
|
-
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
|
|
1975
|
+
} else if (BUILD.lazyLoad && BUILD.method && flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
|
|
1814
1976
|
Object.defineProperty(prototype, memberName, {
|
|
1815
1977
|
value(...args) {
|
|
1816
1978
|
var _a2;
|
|
@@ -1823,7 +1985,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1823
1985
|
});
|
|
1824
1986
|
}
|
|
1825
1987
|
});
|
|
1826
|
-
if ((flags & 1 /* isElementConstructor */)) {
|
|
1988
|
+
if (BUILD.observeAttribute && (!BUILD.lazyLoad || flags & 1 /* isElementConstructor */)) {
|
|
1827
1989
|
const attrNameToPropName = /* @__PURE__ */ new Map();
|
|
1828
1990
|
prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
|
|
1829
1991
|
plt.jmp(() => {
|
|
@@ -1839,7 +2001,8 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1839
2001
|
const hostRef = getHostRef(this);
|
|
1840
2002
|
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
1841
2003
|
if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
1842
|
-
const
|
|
2004
|
+
const elm = BUILD.lazyLoad ? hostRef.$hostElement$ : this;
|
|
2005
|
+
const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
|
|
1843
2006
|
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
1844
2007
|
entry == null ? void 0 : entry.forEach((callbackName) => {
|
|
1845
2008
|
if (instance[callbackName] != null) {
|
|
@@ -1859,7 +2022,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1859
2022
|
var _a2;
|
|
1860
2023
|
const attrName = m[1] || propName;
|
|
1861
2024
|
attrNameToPropName.set(attrName, propName);
|
|
1862
|
-
if (m[0] & 512 /* ReflectAttr */) {
|
|
2025
|
+
if (BUILD.reflect && m[0] & 512 /* ReflectAttr */) {
|
|
1863
2026
|
(_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
|
|
1864
2027
|
}
|
|
1865
2028
|
return attrName;
|
|
@@ -1877,10 +2040,13 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1877
2040
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1878
2041
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1879
2042
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1880
|
-
if (bundleId) {
|
|
1881
|
-
const CstrImport = loadModule(cmpMeta);
|
|
2043
|
+
if ((BUILD.lazyLoad || BUILD.hydrateClientSide) && bundleId) {
|
|
2044
|
+
const CstrImport = loadModule(cmpMeta, hostRef, hmrVersionId);
|
|
1882
2045
|
if (CstrImport && "then" in CstrImport) {
|
|
1883
|
-
const endLoad = uniqueTime(
|
|
2046
|
+
const endLoad = uniqueTime(
|
|
2047
|
+
`st:load:${cmpMeta.$tagName$}:${hostRef.$modeName$}`,
|
|
2048
|
+
`[Stencil] Load module for <${cmpMeta.$tagName$}>`
|
|
2049
|
+
);
|
|
1884
2050
|
Cstr = await CstrImport;
|
|
1885
2051
|
endLoad();
|
|
1886
2052
|
} else {
|
|
@@ -1889,15 +2055,15 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1889
2055
|
if (!Cstr) {
|
|
1890
2056
|
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
1891
2057
|
}
|
|
1892
|
-
if (!Cstr.isProxied) {
|
|
1893
|
-
{
|
|
2058
|
+
if (BUILD.member && !Cstr.isProxied) {
|
|
2059
|
+
if (BUILD.watchCallback) {
|
|
1894
2060
|
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1895
2061
|
}
|
|
1896
2062
|
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1897
2063
|
Cstr.isProxied = true;
|
|
1898
2064
|
}
|
|
1899
2065
|
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
|
1900
|
-
{
|
|
2066
|
+
if (BUILD.member) {
|
|
1901
2067
|
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
1902
2068
|
}
|
|
1903
2069
|
try {
|
|
@@ -1905,10 +2071,10 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1905
2071
|
} catch (e) {
|
|
1906
2072
|
consoleError(e);
|
|
1907
2073
|
}
|
|
1908
|
-
{
|
|
2074
|
+
if (BUILD.member) {
|
|
1909
2075
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1910
2076
|
}
|
|
1911
|
-
{
|
|
2077
|
+
if (BUILD.watchCallback) {
|
|
1912
2078
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1913
2079
|
}
|
|
1914
2080
|
endNewInstance();
|
|
@@ -1918,14 +2084,26 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1918
2084
|
const cmpTag = elm.localName;
|
|
1919
2085
|
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1920
2086
|
}
|
|
1921
|
-
if (Cstr && Cstr.style) {
|
|
2087
|
+
if (BUILD.style && Cstr && Cstr.style) {
|
|
1922
2088
|
let style;
|
|
1923
2089
|
if (typeof Cstr.style === "string") {
|
|
1924
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
|
+
}
|
|
1925
2099
|
}
|
|
1926
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
2100
|
+
const scopeId2 = getScopeId(cmpMeta, hostRef.$modeName$);
|
|
1927
2101
|
if (!styles.has(scopeId2)) {
|
|
1928
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
|
+
}
|
|
1929
2107
|
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1930
2108
|
endRegisterStyles();
|
|
1931
2109
|
}
|
|
@@ -1933,14 +2111,14 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1933
2111
|
}
|
|
1934
2112
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1935
2113
|
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1936
|
-
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
2114
|
+
if (BUILD.asyncLoading && ancestorComponent && ancestorComponent["s-rc"]) {
|
|
1937
2115
|
ancestorComponent["s-rc"].push(schedule);
|
|
1938
2116
|
} else {
|
|
1939
2117
|
schedule();
|
|
1940
2118
|
}
|
|
1941
2119
|
};
|
|
1942
2120
|
var fireConnectedCallback = (instance) => {
|
|
1943
|
-
{
|
|
2121
|
+
if (BUILD.lazyLoad && BUILD.connectedCallback) {
|
|
1944
2122
|
safeCall(instance, "connectedCallback");
|
|
1945
2123
|
}
|
|
1946
2124
|
};
|
|
@@ -1951,35 +2129,38 @@ var connectedCallback = (elm) => {
|
|
|
1951
2129
|
const hostRef = getHostRef(elm);
|
|
1952
2130
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
1953
2131
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
2132
|
+
if (BUILD.hostListenerTargetParent) {
|
|
2133
|
+
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, true);
|
|
2134
|
+
}
|
|
1954
2135
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
1955
2136
|
hostRef.$flags$ |= 1 /* hasConnected */;
|
|
1956
2137
|
let hostId;
|
|
1957
|
-
{
|
|
2138
|
+
if (BUILD.hydrateClientSide) {
|
|
1958
2139
|
hostId = elm.getAttribute(HYDRATE_ID);
|
|
1959
2140
|
if (hostId) {
|
|
1960
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1961
|
-
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);
|
|
1962
2143
|
elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
|
|
1963
2144
|
}
|
|
1964
2145
|
initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
|
|
1965
2146
|
}
|
|
1966
2147
|
}
|
|
1967
|
-
if (!hostId) {
|
|
1968
|
-
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
|
|
1969
2150
|
cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
|
|
1970
2151
|
setContentReference(elm);
|
|
1971
2152
|
}
|
|
1972
2153
|
}
|
|
1973
|
-
{
|
|
2154
|
+
if (BUILD.asyncLoading) {
|
|
1974
2155
|
let ancestorComponent = elm;
|
|
1975
2156
|
while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
|
|
1976
|
-
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"]) {
|
|
1977
2158
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
|
|
1978
2159
|
break;
|
|
1979
2160
|
}
|
|
1980
2161
|
}
|
|
1981
2162
|
}
|
|
1982
|
-
if (cmpMeta.$members$) {
|
|
2163
|
+
if (BUILD.prop && !BUILD.hydrateServerSide && cmpMeta.$members$) {
|
|
1983
2164
|
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
1984
2165
|
if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
|
|
1985
2166
|
const value = elm[memberName];
|
|
@@ -1988,11 +2169,13 @@ var connectedCallback = (elm) => {
|
|
|
1988
2169
|
}
|
|
1989
2170
|
});
|
|
1990
2171
|
}
|
|
1991
|
-
{
|
|
2172
|
+
if (BUILD.initializeNextTick) {
|
|
2173
|
+
nextTick(() => initializeComponent(elm, hostRef, cmpMeta));
|
|
2174
|
+
} else {
|
|
1992
2175
|
initializeComponent(elm, hostRef, cmpMeta);
|
|
1993
2176
|
}
|
|
1994
2177
|
} else {
|
|
1995
|
-
addHostEventListeners(elm, hostRef, cmpMeta.$listeners
|
|
2178
|
+
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, false);
|
|
1996
2179
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1997
2180
|
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1998
2181
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
@@ -2004,37 +2187,480 @@ var connectedCallback = (elm) => {
|
|
|
2004
2187
|
};
|
|
2005
2188
|
var setContentReference = (elm) => {
|
|
2006
2189
|
const contentRefElm = elm["s-cr"] = doc.createComment(
|
|
2007
|
-
""
|
|
2190
|
+
BUILD.isDebug ? `content-ref (host=${elm.localName})` : ""
|
|
2008
2191
|
);
|
|
2009
2192
|
contentRefElm["s-cn"] = true;
|
|
2010
2193
|
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
2011
2194
|
};
|
|
2012
2195
|
var disconnectInstance = (instance) => {
|
|
2013
|
-
{
|
|
2196
|
+
if (BUILD.lazyLoad && BUILD.disconnectedCallback) {
|
|
2014
2197
|
safeCall(instance, "disconnectedCallback");
|
|
2015
2198
|
}
|
|
2199
|
+
if (BUILD.cmpDidUnload) {
|
|
2200
|
+
safeCall(instance, "componentDidUnload");
|
|
2201
|
+
}
|
|
2016
2202
|
};
|
|
2017
2203
|
var disconnectedCallback = async (elm) => {
|
|
2018
2204
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
2019
2205
|
const hostRef = getHostRef(elm);
|
|
2020
|
-
{
|
|
2206
|
+
if (BUILD.hostListener) {
|
|
2021
2207
|
if (hostRef.$rmListeners$) {
|
|
2022
2208
|
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
2023
2209
|
hostRef.$rmListeners$ = void 0;
|
|
2024
2210
|
}
|
|
2025
2211
|
}
|
|
2026
|
-
if (
|
|
2212
|
+
if (!BUILD.lazyLoad) {
|
|
2213
|
+
disconnectInstance(elm);
|
|
2214
|
+
} else if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
2027
2215
|
disconnectInstance(hostRef.$lazyInstance$);
|
|
2028
2216
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
2029
2217
|
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
2030
2218
|
}
|
|
2031
2219
|
}
|
|
2032
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
|
+
};
|
|
2033
2655
|
|
|
2034
2656
|
// src/runtime/bootstrap-lazy.ts
|
|
2035
2657
|
var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
2036
2658
|
var _a;
|
|
2037
|
-
|
|
2659
|
+
if (BUILD.profile && performance.mark) {
|
|
2660
|
+
performance.mark("st:app:start");
|
|
2661
|
+
}
|
|
2662
|
+
installDevTools();
|
|
2663
|
+
const endBootstrap = createTime("bootstrapLazy");
|
|
2038
2664
|
const cmpTags = [];
|
|
2039
2665
|
const exclude = options.exclude || [];
|
|
2040
2666
|
const customElements2 = win.customElements;
|
|
@@ -2046,7 +2672,12 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2046
2672
|
let isBootstrapping = true;
|
|
2047
2673
|
Object.assign(plt, options);
|
|
2048
2674
|
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", doc.baseURI).href;
|
|
2049
|
-
{
|
|
2675
|
+
if (BUILD.asyncQueue) {
|
|
2676
|
+
if (options.syncQueue) {
|
|
2677
|
+
plt.$flags$ |= 4 /* queueSync */;
|
|
2678
|
+
}
|
|
2679
|
+
}
|
|
2680
|
+
if (BUILD.hydrateClientSide) {
|
|
2050
2681
|
plt.$flags$ |= 2 /* appLoaded */;
|
|
2051
2682
|
}
|
|
2052
2683
|
let hasSlotRelocation = false;
|
|
@@ -2062,19 +2693,22 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2062
2693
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
2063
2694
|
hasSlotRelocation = true;
|
|
2064
2695
|
}
|
|
2065
|
-
{
|
|
2696
|
+
if (BUILD.member) {
|
|
2066
2697
|
cmpMeta.$members$ = compactMeta[2];
|
|
2067
2698
|
}
|
|
2068
|
-
{
|
|
2699
|
+
if (BUILD.hostListener) {
|
|
2069
2700
|
cmpMeta.$listeners$ = compactMeta[3];
|
|
2070
2701
|
}
|
|
2071
|
-
{
|
|
2702
|
+
if (BUILD.reflect) {
|
|
2072
2703
|
cmpMeta.$attrsToReflect$ = [];
|
|
2073
2704
|
}
|
|
2074
|
-
{
|
|
2705
|
+
if (BUILD.watchCallback) {
|
|
2075
2706
|
cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
|
|
2076
2707
|
}
|
|
2077
|
-
|
|
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$;
|
|
2078
2712
|
const HostElement = class extends HTMLElement {
|
|
2079
2713
|
// StencilLazyHost
|
|
2080
2714
|
constructor(self) {
|
|
@@ -2082,10 +2716,15 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2082
2716
|
this.hasRegisteredEventListeners = false;
|
|
2083
2717
|
self = this;
|
|
2084
2718
|
registerHost(self, cmpMeta);
|
|
2085
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
2086
|
-
{
|
|
2719
|
+
if (BUILD.shadowDom && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
2720
|
+
if (supportsShadow) {
|
|
2087
2721
|
if (!self.shadowRoot) {
|
|
2088
|
-
{
|
|
2722
|
+
if (BUILD.shadowDelegatesFocus) {
|
|
2723
|
+
self.attachShadow({
|
|
2724
|
+
mode: "open",
|
|
2725
|
+
delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
|
|
2726
|
+
});
|
|
2727
|
+
} else {
|
|
2089
2728
|
self.attachShadow({ mode: "open" });
|
|
2090
2729
|
}
|
|
2091
2730
|
} else {
|
|
@@ -2095,6 +2734,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2095
2734
|
);
|
|
2096
2735
|
}
|
|
2097
2736
|
}
|
|
2737
|
+
} else if (!BUILD.hydrateServerSide && !("shadowRoot" in self)) {
|
|
2738
|
+
self.shadowRoot = self;
|
|
2098
2739
|
}
|
|
2099
2740
|
}
|
|
2100
2741
|
}
|
|
@@ -2102,7 +2743,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2102
2743
|
const hostRef = getHostRef(this);
|
|
2103
2744
|
if (!this.hasRegisteredEventListeners) {
|
|
2104
2745
|
this.hasRegisteredEventListeners = true;
|
|
2105
|
-
addHostEventListeners(this, hostRef, cmpMeta.$listeners
|
|
2746
|
+
addHostEventListeners(this, hostRef, cmpMeta.$listeners$, false);
|
|
2106
2747
|
}
|
|
2107
2748
|
if (appLoadFallback) {
|
|
2108
2749
|
clearTimeout(appLoadFallback);
|
|
@@ -2121,6 +2762,32 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2121
2762
|
return getHostRef(this).$onReadyPromise$;
|
|
2122
2763
|
}
|
|
2123
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
|
+
}
|
|
2124
2791
|
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
2125
2792
|
if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
|
|
2126
2793
|
cmpTags.push(tagName);
|
|
@@ -2135,7 +2802,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2135
2802
|
if (hasSlotRelocation) {
|
|
2136
2803
|
dataStyles.textContent += SLOT_FB_CSS;
|
|
2137
2804
|
}
|
|
2138
|
-
{
|
|
2805
|
+
if (BUILD.invisiblePrehydration && (BUILD.hydratedClass || BUILD.hydratedAttribute)) {
|
|
2139
2806
|
dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
|
|
2140
2807
|
}
|
|
2141
2808
|
if (dataStyles.innerHTML.length) {
|
|
@@ -2151,16 +2818,28 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2151
2818
|
if (deferredConnectedCallbacks.length) {
|
|
2152
2819
|
deferredConnectedCallbacks.map((host) => host.connectedCallback());
|
|
2153
2820
|
} else {
|
|
2154
|
-
{
|
|
2821
|
+
if (BUILD.profile) {
|
|
2822
|
+
plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30, "timeout"));
|
|
2823
|
+
} else {
|
|
2155
2824
|
plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
|
|
2156
2825
|
}
|
|
2157
2826
|
}
|
|
2158
2827
|
endBootstrap();
|
|
2159
2828
|
};
|
|
2829
|
+
|
|
2830
|
+
// src/runtime/fragment.ts
|
|
2831
|
+
var Fragment = (_, children) => children;
|
|
2160
2832
|
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
2161
|
-
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
|
+
}
|
|
2162
2841
|
listeners.map(([flags, name, method]) => {
|
|
2163
|
-
const target = getHostListenerTarget(elm, flags) ;
|
|
2842
|
+
const target = BUILD.hostListenerTarget ? getHostListenerTarget(elm, flags) : elm;
|
|
2164
2843
|
const handler = hostListenerProxy(hostRef, method);
|
|
2165
2844
|
const opts = hostListenerOpts(flags);
|
|
2166
2845
|
plt.ael(target, name, handler, opts);
|
|
@@ -2171,20 +2850,25 @@ var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) =>
|
|
|
2171
2850
|
var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
2172
2851
|
var _a;
|
|
2173
2852
|
try {
|
|
2174
|
-
{
|
|
2853
|
+
if (BUILD.lazyLoad) {
|
|
2175
2854
|
if (hostRef.$flags$ & 256 /* isListenReady */) {
|
|
2176
2855
|
(_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
|
|
2177
2856
|
} else {
|
|
2178
2857
|
(hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
|
|
2179
2858
|
}
|
|
2859
|
+
} else {
|
|
2860
|
+
hostRef.$hostElement$[methodName](ev);
|
|
2180
2861
|
}
|
|
2181
2862
|
} catch (e) {
|
|
2182
2863
|
consoleError(e);
|
|
2183
2864
|
}
|
|
2184
2865
|
};
|
|
2185
2866
|
var getHostListenerTarget = (elm, flags) => {
|
|
2186
|
-
if (flags &
|
|
2187
|
-
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;
|
|
2188
2872
|
return elm;
|
|
2189
2873
|
};
|
|
2190
2874
|
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
@@ -2195,4 +2879,145 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
|
2195
2879
|
// src/runtime/nonce.ts
|
|
2196
2880
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
2197
2881
|
|
|
2198
|
-
|
|
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 };
|