@duetds/components 10.0.0-alpha.8 → 10.0.0
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/hydrate/index.d.ts +38 -7
- package/hydrate/index.js +11723 -4211
- package/hydrate/index.mjs +46153 -0
- package/lib/cjs/_commonjsHelpers-4N64IRaP.js +10 -0
- package/lib/cjs/a11y-utils-DmZK4TTO.js +46 -0
- package/lib/cjs/action-arrow-down-small-CDsSJFvZ.js +21 -0
- package/lib/cjs/action-new-window-small-BWlVx6YN.js +21 -0
- package/lib/cjs/{app-globals-99f2f39f.js → app-globals-C35yvbFy.js} +2 -2
- package/lib/cjs/{common-strings-2984301e.js → common-strings-CC6Xpjb8.js} +30 -0
- package/lib/cjs/duet-action-button.cjs.entry.js +84 -29
- package/lib/cjs/duet-alert.cjs.entry.js +106 -49
- package/lib/cjs/duet-badge.cjs.entry.js +31 -9
- package/lib/cjs/duet-banner.cjs.entry.js +71 -28
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +37 -26
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +20 -14
- package/lib/cjs/duet-button_2.cjs.entry.js +152 -72
- package/lib/cjs/duet-callout.cjs.entry.js +13 -10
- package/lib/cjs/duet-caption_4.cjs.entry.js +212 -46
- package/lib/cjs/duet-card.cjs.entry.js +93 -35
- package/lib/cjs/duet-checkbox.cjs.entry.js +68 -32
- package/lib/cjs/duet-checkmark.cjs.entry.js +21 -9
- package/lib/cjs/duet-chip.cjs.entry.js +356 -0
- package/lib/cjs/duet-choice_2.cjs.entry.js +279 -130
- package/lib/cjs/duet-collapsible.cjs.entry.js +92 -33
- package/lib/cjs/duet-combobox.cjs.entry.js +99 -58
- package/lib/cjs/duet-contact-card.cjs.entry.js +17 -18
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +14 -11
- package/lib/cjs/duet-date-picker.cjs.entry.js +158 -57
- package/lib/cjs/duet-divider_2.cjs.entry.js +30 -14
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +556 -210
- package/lib/cjs/duet-empty-state.cjs.entry.js +15 -9
- package/lib/cjs/duet-fieldset.cjs.entry.js +51 -18
- package/lib/cjs/duet-file-chooser.cjs.entry.js +18 -11
- package/lib/cjs/duet-footer.cjs.entry.js +56 -30
- package/lib/cjs/duet-grid_2.cjs.entry.js +165 -64
- package/lib/cjs/duet-header_2.cjs.entry.js +302 -91
- package/lib/cjs/duet-hero.cjs.entry.js +159 -35
- package/lib/cjs/duet-icon.cjs.entry.js +64 -20
- package/lib/cjs/duet-indicator.cjs.entry.js +61 -0
- package/lib/cjs/duet-input_2.cjs.entry.js +225 -86
- package/lib/cjs/duet-layout.cjs.entry.js +33 -13
- package/lib/cjs/duet-list_2.cjs.entry.js +58 -14
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +24 -16
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +19 -14
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +21 -16
- package/lib/cjs/duet-menu-bar-item.cjs.entry.js +40 -19
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +18 -10
- package/lib/cjs/duet-menu-bar.cjs.entry.js +37 -59
- package/lib/cjs/duet-modal.cjs.entry.js +122 -35
- package/lib/cjs/duet-multiselect.cjs.entry.js +88 -42
- package/lib/cjs/duet-nav.cjs.entry.js +12 -8
- package/lib/cjs/duet-notification_2.cjs.entry.js +98 -32
- package/lib/cjs/duet-number-input.cjs.entry.js +191 -70
- package/lib/cjs/duet-overlay.cjs.entry.js +36 -14
- package/lib/cjs/duet-page-heading.cjs.entry.js +16 -11
- package/lib/cjs/duet-pagination_2.cjs.entry.js +162 -87
- package/lib/cjs/duet-panel.cjs.entry.js +52 -0
- package/lib/cjs/duet-phone-input.cjs.entry.js +2072 -0
- package/lib/cjs/duet-popup-menu_2.cjs.entry.js +550 -0
- package/lib/cjs/duet-progress.cjs.entry.js +32 -13
- package/lib/cjs/duet-promo-card.cjs.entry.js +27 -13
- package/lib/cjs/duet-radio_2.cjs.entry.js +114 -55
- package/lib/cjs/duet-range-slider.cjs.entry.js +73 -37
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +245 -91
- package/lib/cjs/duet-section-layout.cjs.entry.js +17 -10
- package/lib/cjs/duet-select.cjs.entry.js +89 -46
- package/lib/cjs/duet-shaped-image.cjs.entry.js +16 -11
- package/lib/cjs/duet-share-chart-item.cjs.entry.js +22 -0
- package/lib/cjs/duet-share-chart.cjs.entry.js +85 -0
- package/lib/cjs/duet-show-more.cjs.entry.js +81 -38
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +10 -10
- package/lib/cjs/duet-slideout-link.cjs.entry.js +61 -10
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +25 -14
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +50 -36
- package/lib/cjs/duet-slideout.cjs.entry.js +85 -52
- package/lib/cjs/duet-status-icon.cjs.entry.js +28 -15
- package/lib/cjs/duet-step_2.cjs.entry.js +72 -24
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +25 -10
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +27 -18
- package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +40 -19
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +18 -9
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +27 -21
- package/lib/cjs/duet-textarea.cjs.entry.js +146 -71
- package/lib/cjs/duet-toggle.cjs.entry.js +50 -29
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +22 -11
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +27 -16
- package/lib/cjs/duet-toolbar-item.cjs.entry.js +46 -19
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +21 -10
- package/lib/cjs/duet-toolbar.cjs.entry.js +12 -10
- package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +24 -27
- package/lib/cjs/duet-tooltip.cjs.entry.js +98 -46
- package/lib/cjs/duet-tray.cjs.entry.js +63 -24
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +30 -11
- package/lib/cjs/duet-upload-item.cjs.entry.js +12 -22
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +4 -7
- package/lib/cjs/duet.cjs.js +8 -8
- package/lib/cjs/{errorcodes.utils-2db03da6.js → errorcodes.utils-lNwivqkj.js} +2 -2
- package/lib/cjs/floating-ui.dom.browser.min-Cj0r5YDz.js +709 -0
- package/lib/cjs/{focus-utils-5578a0a5.js → focus-utils-DFa0zwT7.js} +1 -1
- package/lib/cjs/form-search-CzPfHB80.js +21 -0
- package/lib/cjs/{index-9c3aea30.js → index-C0kw3uAi.js} +1863 -1363
- package/lib/cjs/{label-a742a2d5.js → label-BJ7gT5C1.js} +1 -1
- package/lib/cjs/{language-utils-9499975c.js → language-utils-v37OZJFe.js} +10 -2
- package/lib/cjs/loader.cjs.js +3 -5
- package/lib/cjs/{slot-utils-799906b5.js → slot-utils-DFmRJ2pY.js} +6 -1
- package/lib/cjs/{teleport-c6f8391a.js → teleport-D5NDbuu0.js} +22 -7
- package/lib/cjs/themeable-component-BEm0vuJc.js +74 -0
- package/lib/cjs/{token-utils-5000595c.js → token-utils-BJtlJxnJ.js} +80 -9
- package/lib/cjs/{tokens-57e06fe4.js → tokens-BxWzRxOl.js} +150 -8
- package/lib/cjs/{tokens.module-7c947029.js → tokens.module-DJt2h4FX.js} +99 -3
- package/lib/cjs/{watch-options-30a12622.js → watch-options-D4JNsU3B.js} +0 -20
- package/lib/collection/collection-manifest.json +6 -1
- package/lib/collection/common/themeable-component.js +61 -3
- package/lib/collection/common-strings.js +28 -0
- package/lib/collection/components/duet-action-button/duet-action-button.css +29 -12
- package/lib/collection/components/duet-action-button/duet-action-button.js +92 -33
- package/lib/collection/components/duet-alert/duet-alert.css +96 -58
- package/lib/collection/components/duet-alert/duet-alert.js +145 -58
- package/lib/collection/components/duet-badge/duet-badge.css +24 -9
- package/lib/collection/components/duet-badge/duet-badge.js +30 -6
- package/lib/collection/components/duet-banner/duet-banner.css +51 -24
- package/lib/collection/components/duet-banner/duet-banner.js +94 -29
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.css +10 -8
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +26 -28
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.css +18 -7
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +15 -6
- package/lib/collection/components/duet-button/duet-button.css +170 -48
- package/lib/collection/components/duet-button/duet-button.js +170 -89
- package/lib/collection/components/duet-callout/duet-callout.css +7 -2
- package/lib/collection/components/duet-callout/duet-callout.js +10 -4
- package/lib/collection/components/duet-caption/duet-caption.css +7 -3
- package/lib/collection/components/duet-caption/duet-caption.js +18 -6
- package/lib/collection/components/duet-card/duet-card.css +48 -16
- package/lib/collection/components/duet-card/duet-card.js +131 -37
- package/lib/collection/components/duet-checkbox/duet-checkbox.css +30 -8
- package/lib/collection/components/duet-checkbox/duet-checkbox.js +86 -47
- package/lib/collection/components/duet-chip/duet-chip.css +66 -25
- package/lib/collection/components/duet-chip/duet-chip.js +67 -35
- package/lib/collection/components/duet-choice/duet-checkmark.css +4 -0
- package/lib/collection/components/duet-choice/duet-checkmark.js +22 -7
- package/lib/collection/components/duet-choice/duet-choice.css +160 -40
- package/lib/collection/components/duet-choice/duet-choice.js +241 -139
- package/lib/collection/components/duet-choice-group/duet-choice-group.css +4 -4
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +109 -48
- package/lib/collection/components/duet-collapsible/duet-collapsible.css +36 -13
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +97 -35
- package/lib/collection/components/duet-combobox/duet-combobox.css +9 -2
- package/lib/collection/components/duet-combobox/duet-combobox.js +103 -56
- package/lib/collection/components/duet-contact-card/duet-contact-card.css +8 -4
- package/lib/collection/components/duet-contact-card/duet-contact-card.js +21 -19
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.css +23 -14
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +11 -5
- package/lib/collection/components/duet-date-picker/date-picker-day.js +6 -1
- package/lib/collection/components/duet-date-picker/date-utils.js +6 -1
- package/lib/collection/components/duet-date-picker/duet-date-picker.css +102 -45
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +172 -69
- package/lib/collection/components/duet-divider/duet-divider.css +12 -6
- package/lib/collection/components/duet-divider/duet-divider.js +14 -4
- package/lib/collection/components/duet-editable-table/duet-editable-table.css +2 -2
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +83 -26
- package/lib/collection/components/duet-empty-state/duet-empty-state.css +11 -6
- package/lib/collection/components/duet-empty-state/duet-empty-state.js +14 -5
- package/lib/collection/components/duet-fieldset/duet-fieldset.css +13 -6
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +58 -20
- package/lib/collection/components/duet-file-chooser/duet-file-chooser.css +2 -2
- package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +17 -7
- package/lib/collection/components/duet-footer/duet-footer.css +43 -14
- package/lib/collection/components/duet-footer/duet-footer.js +55 -27
- package/lib/collection/components/duet-grid/duet-grid.css +2 -6
- package/lib/collection/components/duet-grid/duet-grid.js +144 -67
- package/lib/collection/components/duet-grid-item/duet-grid-item.css +6 -2
- package/lib/collection/components/duet-grid-item/duet-grid-item.js +40 -13
- package/lib/collection/components/duet-header/duet-header.css +165 -65
- package/lib/collection/components/duet-header/duet-header.js +165 -76
- package/lib/collection/components/duet-heading/duet-heading.css +11 -6
- package/lib/collection/components/duet-heading/duet-heading.js +56 -12
- package/lib/collection/components/duet-hero/duet-hero.css +326 -18
- package/lib/collection/components/duet-hero/duet-hero.js +197 -51
- package/lib/collection/components/duet-icon/duet-icon.css +17 -5
- package/lib/collection/components/duet-icon/duet-icon.js +71 -24
- package/lib/collection/components/duet-indicator/duet-indicator.css +50 -0
- package/lib/collection/components/duet-indicator/duet-indicator.js +138 -0
- package/lib/collection/components/duet-input/duet-input.css +159 -53
- package/lib/collection/components/duet-input/duet-input.js +315 -141
- package/lib/collection/components/duet-label/duet-label.css +8 -4
- package/lib/collection/components/duet-label/duet-label.js +23 -8
- package/lib/collection/components/duet-layout/duet-layout.css +4 -4
- package/lib/collection/components/duet-layout/duet-layout.js +35 -12
- package/lib/collection/components/duet-link/duet-link.css +144 -25
- package/lib/collection/components/duet-link/duet-link.js +120 -32
- package/lib/collection/components/duet-list/duet-list.css +4 -4
- package/lib/collection/components/duet-list/duet-list.js +38 -9
- package/lib/collection/components/duet-list-item/duet-list-item.css +29 -9
- package/lib/collection/components/duet-list-item/duet-list-item.js +50 -4
- package/lib/collection/components/duet-logo/duet-logo.css +36 -8
- package/lib/collection/components/duet-logo/duet-logo.js +111 -11
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +108 -6
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +59 -58
- package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.css +17 -8
- package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +33 -22
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.css +28 -12
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +20 -12
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.css +19 -9
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +18 -10
- package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.css +28 -10
- package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +39 -16
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.css +25 -10
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +19 -8
- package/lib/collection/components/duet-modal/duet-modal.css +23 -25
- package/lib/collection/components/duet-modal/duet-modal.js +193 -39
- package/lib/collection/components/duet-multiselect/duet-multiselect.css +70 -29
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +98 -48
- package/lib/collection/components/duet-nav/duet-nav.css +8 -4
- package/lib/collection/components/duet-nav/duet-nav.js +10 -3
- package/lib/collection/components/duet-notification/duet-notification.css +33 -26
- package/lib/collection/components/duet-notification/duet-notification.js +46 -9
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.css +38 -36
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +57 -24
- package/lib/collection/components/duet-number-input/duet-number-input.css +29 -14
- package/lib/collection/components/duet-number-input/duet-number-input.js +204 -103
- package/lib/collection/components/duet-overlay/duet-overlay.css +5 -1
- package/lib/collection/components/duet-overlay/duet-overlay.js +40 -15
- package/lib/collection/components/duet-page-heading/duet-page-heading.css +44 -16
- package/lib/collection/components/duet-page-heading/duet-page-heading.js +17 -9
- package/lib/collection/components/duet-pagination/duet-pagination.css +8 -4
- package/lib/collection/components/duet-pagination/duet-pagination.js +130 -76
- package/lib/collection/components/duet-panel/duet-panel.css +99 -0
- package/lib/collection/components/duet-panel/duet-panel.js +233 -0
- package/lib/collection/components/duet-paragraph/duet-paragraph.css +19 -6
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +29 -8
- package/lib/collection/components/duet-phone-input/duet-phone-input.css +64 -0
- package/lib/collection/components/duet-phone-input/duet-phone-input.js +930 -0
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.css +14 -6
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +245 -91
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.css +30 -12
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +64 -29
- package/lib/collection/components/duet-progress/duet-progress.css +27 -8
- package/lib/collection/components/duet-progress/duet-progress.js +36 -14
- package/lib/collection/components/duet-promo-card/duet-promo-card.css +18 -12
- package/lib/collection/components/duet-promo-card/duet-promo-card.js +47 -11
- package/lib/collection/components/duet-radio/duet-radio.css +41 -8
- package/lib/collection/components/duet-radio/duet-radio.js +67 -49
- package/lib/collection/components/duet-radio-group/duet-radio-group.css +4 -4
- package/lib/collection/components/duet-radio-group/duet-radio-group.js +78 -30
- package/lib/collection/components/duet-range-slider/duet-range-slider.css +63 -18
- package/lib/collection/components/duet-range-slider/duet-range-slider.js +85 -46
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.css +8 -4
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +43 -14
- package/lib/collection/components/duet-scrollable/duet-scrollable.css +36 -25
- package/lib/collection/components/duet-scrollable/duet-scrollable.js +175 -31
- package/lib/collection/components/duet-section-layout/duet-section-layout.css +4 -4
- package/lib/collection/components/duet-section-layout/duet-section-layout.js +16 -6
- package/lib/collection/components/duet-select/duet-select.css +54 -23
- package/lib/collection/components/duet-select/duet-select.js +109 -63
- package/lib/collection/components/duet-shaped-image/duet-shaped-image.css +6 -6
- package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +17 -9
- package/lib/collection/components/duet-share-chart/duet-share-chart.css +82 -0
- package/lib/collection/components/duet-share-chart/duet-share-chart.js +141 -0
- package/lib/collection/components/duet-share-chart-item/duet-share-chart-item.js +67 -0
- package/lib/collection/components/duet-show-more/duet-show-more.css +15 -8
- package/lib/collection/components/duet-show-more/duet-show-more.js +87 -37
- package/lib/collection/components/duet-slideout/duet-slideout.css +72 -40
- package/lib/collection/components/duet-slideout/duet-slideout.js +88 -50
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.css +10 -6
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +5 -2
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.css +41 -13
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +135 -12
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.css +63 -40
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +47 -30
- package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.css +29 -16
- package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +25 -11
- package/lib/collection/components/duet-spacer/duet-spacer.css +2 -2
- package/lib/collection/components/duet-spacer/duet-spacer.js +14 -4
- package/lib/collection/components/duet-spinner/duet-spinner.css +10 -16
- package/lib/collection/components/duet-spinner/duet-spinner.js +21 -23
- package/lib/collection/components/duet-status-icon/duet-status-icon.js +30 -15
- package/lib/collection/components/duet-step/duet-step.css +28 -13
- package/lib/collection/components/duet-step/duet-step.js +25 -16
- package/lib/collection/components/duet-stepper/duet-stepper.css +4 -4
- package/lib/collection/components/duet-stepper/duet-stepper.js +45 -10
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.css +34 -16
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +25 -16
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.css +49 -15
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +25 -13
- package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.css +29 -8
- package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +26 -8
- package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.css +33 -10
- package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +38 -15
- package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.css +34 -9
- package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +17 -5
- package/lib/collection/components/duet-tab/duet-tab.css +15 -11
- package/lib/collection/components/duet-tab/duet-tab.js +88 -24
- package/lib/collection/components/duet-tab-group/duet-tab-group.css +131 -85
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +175 -52
- package/lib/collection/components/duet-table/duet-table-styles.js +68 -4
- package/lib/collection/components/duet-table/duet-table.js +43 -14
- package/lib/collection/components/duet-textarea/duet-textarea.css +67 -22
- package/lib/collection/components/duet-textarea/duet-textarea.js +227 -99
- package/lib/collection/components/duet-toggle/duet-toggle.css +26 -10
- package/lib/collection/components/duet-toggle/duet-toggle.js +62 -38
- package/lib/collection/components/duet-toolbar/duet-toolbar.css +11 -4
- package/lib/collection/components/duet-toolbar/duet-toolbar.js +11 -6
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.css +42 -12
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +28 -14
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.css +21 -8
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +23 -9
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.css +52 -30
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +48 -19
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.css +60 -10
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +23 -9
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.css +24 -14
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +9 -11
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.css +48 -16
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +18 -14
- package/lib/collection/components/duet-tooltip/duet-tooltip.css +4 -4
- package/lib/collection/components/duet-tooltip/duet-tooltip.js +100 -45
- package/lib/collection/components/duet-tray/duet-tray.css +43 -27
- package/lib/collection/components/duet-tray/duet-tray.js +63 -21
- package/lib/collection/components/duet-upload/duet-upload.css +6 -6
- package/lib/collection/components/duet-upload/duet-upload.js +419 -213
- package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +35 -13
- package/lib/collection/components/duet-upload-item/duet-upload-item.js +17 -18
- package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.css +3 -3
- package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
- package/lib/collection/data/countries.js +1762 -0
- package/lib/collection/index.js +1 -0
- package/lib/collection/utils/a11y-utils.js +20 -0
- package/lib/collection/utils/language-utils.js +7 -0
- package/lib/collection/utils/slot-utils.js +4 -0
- package/lib/collection/utils/teleport.js +22 -7
- package/lib/collection/utils/test-utils.js +2 -2
- package/lib/collection/utils/token-utils.js +59 -7
- package/lib/collection/utils/turva2-color-tokens.js +42 -0
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/p-0393a2ca.entry.js +4 -0
- package/lib/duet/p-0b8da007.entry.js +4 -0
- package/lib/duet/p-0d2652f7.entry.js +4 -0
- package/lib/duet/p-0f746b98.entry.js +4 -0
- package/lib/duet/p-1061ece7.entry.js +4 -0
- package/lib/duet/p-10b89587.entry.js +4 -0
- package/lib/duet/p-155804fc.entry.js +4 -0
- package/lib/duet/p-1695a1dd.entry.js +4 -0
- package/lib/duet/p-1c122e53.entry.js +4 -0
- package/lib/duet/p-1ede805a.entry.js +4 -0
- package/lib/duet/p-1fc5668c.entry.js +4 -0
- package/lib/duet/p-203c2af3.entry.js +4 -0
- package/lib/duet/p-2170d5a6.entry.js +4 -0
- package/lib/duet/{p-98c15b83.entry.js → p-2292ac97.entry.js} +1 -1
- package/lib/duet/p-23719bbb.entry.js +4 -0
- package/lib/duet/p-25a8b510.entry.js +4 -0
- package/lib/duet/p-267d0b7d.entry.js +4 -0
- package/lib/duet/{p-bfafaac4.entry.js → p-333694e4.entry.js} +1 -1
- package/lib/duet/p-36e58097.entry.js +4 -0
- package/lib/duet/p-38159827.entry.js +4 -0
- package/lib/duet/p-3968d0e9.entry.js +4 -0
- package/lib/duet/p-39775eb6.entry.js +4 -0
- package/lib/duet/p-3f940846.entry.js +4 -0
- package/lib/duet/p-3fbe4a4b.entry.js +4 -0
- package/lib/duet/p-3hcgvjwC.js +4 -0
- package/lib/duet/p-40dc43ed.entry.js +4 -0
- package/lib/duet/p-4203ad81.entry.js +4 -0
- package/lib/duet/p-42c15472.entry.js +4 -0
- package/lib/duet/p-43129496.entry.js +4 -0
- package/lib/duet/p-44e37a84.entry.js +4 -0
- package/lib/duet/p-451c55fb.entry.js +4 -0
- package/lib/duet/p-475cc911.entry.js +4 -0
- package/lib/duet/p-47d446f9.entry.js +4 -0
- package/lib/duet/p-4966dc81.entry.js +4 -0
- package/lib/duet/{p-15ecb8d0.entry.js → p-4a86aee3.entry.js} +1 -1
- package/lib/duet/p-4cc6fbda.entry.js +4 -0
- package/lib/duet/p-4d49d2ad.entry.js +4 -0
- package/lib/duet/p-529c4873.entry.js +4 -0
- package/lib/duet/p-53cb5ddf.entry.js +4 -0
- package/lib/duet/p-55243d88.entry.js +4 -0
- package/lib/duet/p-581d7bf3.entry.js +4 -0
- package/lib/duet/p-58ab58da.entry.js +4 -0
- package/lib/duet/p-58f95bf2.entry.js +4 -0
- package/lib/duet/p-5c89aaf2.entry.js +4 -0
- package/lib/duet/p-5e15625d.entry.js +4 -0
- package/lib/duet/p-5iZMFvpJ.js +4 -0
- package/lib/duet/p-6be3d1ac.entry.js +4 -0
- package/lib/duet/p-6cb3031c.entry.js +4 -0
- package/lib/duet/p-7a4f44c2.entry.js +4 -0
- package/lib/duet/p-7b820413.entry.js +4 -0
- package/lib/duet/p-7be47e32.entry.js +4 -0
- package/lib/duet/{p-6138ae4f.entry.js → p-7d3681f4.entry.js} +1 -1
- package/lib/duet/p-80fd305f.entry.js +4 -0
- package/lib/duet/p-85074a3f.entry.js +4 -0
- package/lib/duet/p-871323e5.entry.js +4 -0
- package/lib/duet/p-88682993.entry.js +4 -0
- package/lib/duet/p-8885f050.entry.js +4 -0
- package/lib/duet/p-89c4434a.entry.js +4 -0
- package/lib/duet/p-8a5a900e.entry.js +4 -0
- package/lib/duet/p-96725230.entry.js +4 -0
- package/lib/duet/p-9c2ad6b1.entry.js +4 -0
- package/lib/duet/p-BDAqOMlM.js +4 -0
- package/lib/duet/p-BVgBUIYF.js +4 -0
- package/lib/duet/{p-81287261.js → p-B_NkY9T0.js} +1 -1
- package/lib/duet/p-BdCvOZ0R.js +4 -0
- package/lib/duet/p-Bg75Vqqq.js +4 -0
- package/lib/duet/p-BmMFVM-y.js +4 -0
- package/lib/duet/{p-5e9210a0.js → p-CDjWio68.js} +1 -1
- package/lib/duet/p-CVPfl9fc.js +4 -0
- package/lib/duet/p-CXz8FCgk.js +4 -0
- package/lib/duet/p-CooAqTCj.js +4 -0
- package/lib/duet/p-DEoH9jLj.js +4 -0
- package/lib/duet/p-DOuLHrH5.js +4 -0
- package/lib/duet/p-DXnMp1Z1.js +4 -0
- package/lib/duet/p-DYyVxyo8.js +4 -0
- package/lib/duet/{p-a45e3f8b.js → p-Db8rvjPI.js} +1 -1
- package/lib/duet/p-DvwKrUS6.js +4 -0
- package/lib/duet/p-EZOAO_vc.js +5 -0
- package/lib/duet/p-Tof9ag29.js +4 -0
- package/lib/duet/p-a05d9667.entry.js +4 -0
- package/lib/duet/p-a109719f.entry.js +4 -0
- package/lib/duet/p-a2c4fa32.entry.js +4 -0
- package/lib/duet/p-a3a61c66.entry.js +4 -0
- package/lib/duet/p-ac2a957c.entry.js +4 -0
- package/lib/duet/p-b4541648.entry.js +4 -0
- package/lib/duet/p-b4bf40a5.entry.js +4 -0
- package/lib/duet/p-b7d0d9fa.entry.js +4 -0
- package/lib/duet/p-baa33e33.entry.js +4 -0
- package/lib/duet/p-bd1c363d.entry.js +4 -0
- package/lib/duet/p-bda426ce.entry.js +4 -0
- package/lib/duet/p-c010c504.entry.js +4 -0
- package/lib/duet/p-c14ad166.entry.js +4 -0
- package/lib/duet/p-c3a79627.entry.js +4 -0
- package/lib/duet/p-d06af257.entry.js +4 -0
- package/lib/duet/p-d70babeb.entry.js +4 -0
- package/lib/duet/p-dc3f731a.entry.js +4 -0
- package/lib/duet/p-dc50ce9f.entry.js +4 -0
- package/lib/duet/p-dc53f89d.entry.js +4 -0
- package/lib/duet/p-e0054c71.entry.js +4 -0
- package/lib/duet/p-e26fee5b.entry.js +4 -0
- package/lib/duet/p-e528ba03.entry.js +4 -0
- package/lib/duet/p-e80de2cb.entry.js +4 -0
- package/lib/duet/p-eb6c0729.entry.js +4 -0
- package/lib/duet/p-ef206ef5.entry.js +4 -0
- package/lib/duet/p-f2fadb27.entry.js +4 -0
- package/lib/duet/p-fcbdf07c.entry.js +4 -0
- package/lib/duet/p-vVCYtBMj.js +4 -0
- package/lib/esm/_commonjsHelpers-DvwKrUS6.js +8 -0
- package/lib/esm/a11y-utils-By9FOQXs.js +43 -0
- package/lib/esm/action-arrow-down-small-Bk3GShyI.js +19 -0
- package/lib/esm/action-new-window-small-EH8_HdAm.js +19 -0
- package/lib/esm/{app-globals-f12e0500.js → app-globals-xm_WC7uO.js} +2 -2
- package/lib/esm/common-strings-CVPfl9fc.js +53 -0
- package/lib/esm/duet-action-button.entry.js +84 -27
- package/lib/esm/duet-alert.entry.js +106 -47
- package/lib/esm/duet-badge.entry.js +31 -7
- package/lib/esm/duet-banner.entry.js +71 -26
- package/lib/esm/duet-breadcrumb.entry.js +38 -25
- package/lib/esm/duet-breadcrumbs.entry.js +20 -12
- package/lib/esm/duet-button_2.entry.js +152 -70
- package/lib/esm/duet-callout.entry.js +13 -8
- package/lib/esm/duet-caption_4.entry.js +212 -44
- package/lib/esm/duet-card.entry.js +93 -33
- package/lib/esm/duet-checkbox.entry.js +68 -30
- package/lib/esm/duet-checkmark.entry.js +21 -7
- package/lib/esm/duet-chip.entry.js +354 -0
- package/lib/esm/duet-choice_2.entry.js +280 -129
- package/lib/esm/duet-collapsible.entry.js +92 -31
- package/lib/esm/duet-combobox.entry.js +99 -56
- package/lib/esm/duet-contact-card.entry.js +17 -16
- package/lib/esm/duet-cookie-consent.entry.js +14 -9
- package/lib/esm/duet-date-picker.entry.js +158 -55
- package/lib/esm/duet-divider_2.entry.js +30 -12
- package/lib/esm/duet-editable-table_3.entry.js +556 -208
- package/lib/esm/duet-empty-state.entry.js +15 -7
- package/lib/esm/duet-fieldset.entry.js +51 -16
- package/lib/esm/duet-file-chooser.entry.js +18 -9
- package/lib/esm/duet-footer.entry.js +56 -28
- package/lib/esm/duet-grid_2.entry.js +165 -62
- package/lib/esm/duet-header_2.entry.js +303 -90
- package/lib/esm/duet-hero.entry.js +159 -33
- package/lib/esm/duet-icon.entry.js +64 -18
- package/lib/esm/duet-indicator.entry.js +59 -0
- package/lib/esm/duet-input_2.entry.js +226 -85
- package/lib/esm/duet-layout.entry.js +33 -11
- package/lib/esm/duet-list_2.entry.js +58 -12
- package/lib/esm/duet-menu-bar-button.entry.js +24 -14
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +19 -12
- package/lib/esm/duet-menu-bar-dropdown.entry.js +21 -14
- package/lib/esm/duet-menu-bar-item.entry.js +40 -17
- package/lib/esm/duet-menu-bar-link.entry.js +18 -8
- package/lib/esm/duet-menu-bar.entry.js +37 -57
- package/lib/esm/duet-modal.entry.js +122 -33
- package/lib/esm/duet-multiselect.entry.js +88 -40
- package/lib/esm/duet-nav.entry.js +12 -6
- package/lib/esm/duet-notification_2.entry.js +98 -30
- package/lib/esm/duet-number-input.entry.js +192 -69
- package/lib/esm/duet-overlay.entry.js +36 -12
- package/lib/esm/duet-page-heading.entry.js +16 -9
- package/lib/esm/duet-pagination_2.entry.js +162 -85
- package/lib/esm/duet-panel.entry.js +50 -0
- package/lib/esm/duet-phone-input.entry.js +2070 -0
- package/lib/esm/duet-popup-menu_2.entry.js +547 -0
- package/lib/esm/duet-progress.entry.js +32 -11
- package/lib/esm/duet-promo-card.entry.js +27 -11
- package/lib/esm/duet-radio_2.entry.js +114 -53
- package/lib/esm/duet-range-slider.entry.js +73 -35
- package/lib/esm/duet-scrollable_3.entry.js +245 -89
- package/lib/esm/duet-section-layout.entry.js +17 -8
- package/lib/esm/duet-select.entry.js +89 -44
- package/lib/esm/duet-shaped-image.entry.js +16 -9
- package/lib/esm/duet-share-chart-item.entry.js +20 -0
- package/lib/esm/duet-share-chart.entry.js +83 -0
- package/lib/esm/duet-show-more.entry.js +81 -36
- package/lib/esm/duet-slideout-lang.entry.js +10 -8
- package/lib/esm/duet-slideout-link.entry.js +61 -8
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +25 -12
- package/lib/esm/duet-slideout-panel.entry.js +50 -34
- package/lib/esm/duet-slideout.entry.js +85 -50
- package/lib/esm/duet-status-icon.entry.js +28 -13
- package/lib/esm/duet-step_2.entry.js +73 -23
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +25 -8
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +27 -16
- package/lib/esm/duet-submenu-bar-item.entry.js +40 -17
- package/lib/esm/duet-submenu-bar-link.entry.js +18 -7
- package/lib/esm/duet-submenu-bar.entry.js +27 -19
- package/lib/esm/duet-textarea.entry.js +146 -69
- package/lib/esm/duet-toggle.entry.js +50 -27
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +22 -9
- package/lib/esm/duet-toolbar-dropdown.entry.js +27 -14
- package/lib/esm/duet-toolbar-item.entry.js +46 -17
- package/lib/esm/duet-toolbar-link.entry.js +21 -8
- package/lib/esm/duet-toolbar.entry.js +12 -8
- package/lib/esm/duet-tooltip-button_2.entry.js +24 -25
- package/lib/esm/duet-tooltip.entry.js +97 -43
- package/lib/esm/duet-tray.entry.js +63 -22
- package/lib/esm/duet-upload-aria-status.entry.js +30 -9
- package/lib/esm/duet-upload-item.entry.js +12 -20
- package/lib/esm/duet-visually-hidden.entry.js +4 -5
- package/lib/esm/duet.js +7 -6
- package/lib/esm/{errorcodes.utils-d594aed8.js → errorcodes.utils-By8gaKwQ.js} +3 -3
- package/lib/esm/floating-ui.dom.browser.min-B_NkY9T0.js +702 -0
- package/lib/{dist-custom-elements/p-e30dc66d.js → esm/focus-utils-BVqqQKeY.js} +1 -1
- package/lib/esm/form-search-CevX33LA.js +19 -0
- package/lib/esm/{index-fa810c91.js → index-EZOAO_vc.js} +1861 -1359
- package/lib/{dist-custom-elements/p-8db11326.js → esm/keyboard-utils-Db8rvjPI.js} +1 -1
- package/lib/{dist-custom-elements/p-42619f94.js → esm/label-Dji6BDQC.js} +1 -1
- package/lib/esm/{language-utils-35eb1c9f.js → language-utils-COd-eoxb.js} +10 -3
- package/lib/esm/loader.js +4 -4
- package/lib/esm/{slot-utils-b2101c56.js → slot-utils-BSu3Mnho.js} +6 -2
- package/lib/{dist-custom-elements/p-ca3cb21e.js → esm/teleport-CooAqTCj.js} +22 -7
- package/lib/esm/themeable-component-spmVa3d3.js +72 -0
- package/lib/{dist-custom-elements/p-0562173d.js → esm/token-utils-Dks4GBDa.js} +80 -10
- package/lib/esm/{tokens-84fb2357.js → tokens-DOuLHrH5.js} +151 -7
- package/lib/esm/{tokens.module-2d02f5ff.js → tokens.module-BDAqOMlM.js} +100 -4
- package/lib/{dist-custom-elements/p-7d8a2628.js → esm/watch-options-BmMFVM-y.js} +1 -20
- package/lib/index.js +1 -1
- package/lib/loader/cdn.js +1 -2
- package/lib/loader/index.cjs.js +1 -2
- package/lib/loader/index.es2017.js +0 -1
- package/lib/loader/index.js +1 -2
- package/lib/types/common-strings.d.ts +3 -0
- package/lib/types/common-types.d.ts +1 -1
- package/lib/types/components/duet-alert/duet-alert.d.ts +20 -10
- package/lib/types/components/duet-badge/duet-badge.d.ts +1 -0
- package/lib/types/components/duet-banner/duet-banner.d.ts +6 -0
- package/lib/types/components/duet-breadcrumbs/duet-breadcrumb.d.ts +2 -4
- package/lib/types/components/duet-button/duet-button.d.ts +1 -1
- package/lib/types/components/duet-card/duet-card.d.ts +10 -0
- package/lib/types/components/duet-chip/duet-chip.d.ts +1 -0
- package/lib/types/components/duet-choice/duet-choice.d.ts +4 -8
- package/lib/types/components/duet-choice-group/duet-choice-group.d.ts +3 -2
- package/lib/types/components/duet-collapsible/duet-collapsible.d.ts +4 -1
- package/lib/types/components/duet-combobox/duet-combobox.d.ts +2 -0
- package/lib/types/components/duet-date-picker/duet-date-picker.d.ts +4 -0
- package/lib/types/components/duet-fieldset/duet-fieldset.d.ts +3 -0
- package/lib/types/components/duet-grid/duet-grid.d.ts +9 -7
- package/lib/types/components/duet-heading/duet-heading.d.ts +6 -0
- package/lib/types/components/duet-hero/duet-hero.d.ts +9 -0
- package/lib/types/components/duet-indicator/duet-indicator.d.ts +24 -0
- package/lib/types/components/duet-input/duet-input.d.ts +25 -16
- package/lib/types/components/duet-link/duet-link.d.ts +3 -0
- package/lib/types/components/duet-list-item/duet-list-item.d.ts +9 -3
- package/lib/types/components/duet-logo/duet-logo.d.ts +8 -0
- package/lib/types/components/duet-menu-bar/duet-menu-bar.d.ts +5 -4
- package/lib/types/components/duet-modal/duet-modal.d.ts +17 -1
- package/lib/types/components/duet-notification/duet-notification.d.ts +1 -0
- package/lib/types/components/duet-number-input/duet-number-input.d.ts +13 -8
- package/lib/types/components/duet-overlay/duet-overlay.d.ts +4 -0
- package/lib/types/components/duet-panel/duet-panel.d.ts +47 -0
- package/lib/types/components/duet-paragraph/duet-paragraph.d.ts +1 -0
- package/lib/types/components/duet-phone-input/duet-phone-input.d.ts +178 -0
- package/lib/types/components/duet-popup-menu/duet-popup-menu.d.ts +21 -7
- package/lib/types/components/duet-popup-menu-item/duet-popup-menu-item.d.ts +1 -0
- package/lib/types/components/duet-promo-card/duet-promo-card.d.ts +4 -0
- package/lib/types/components/duet-radio-group/duet-radio-group.d.ts +1 -0
- package/lib/types/components/duet-scrollable/duet-scrollable.d.ts +19 -0
- package/lib/types/components/duet-select/duet-select.d.ts +2 -1
- package/lib/types/components/duet-share-chart/duet-share-chart.d.ts +34 -0
- package/lib/types/components/duet-share-chart-item/duet-share-chart-item.d.ts +13 -0
- package/lib/types/components/duet-show-more/duet-show-more.d.ts +1 -0
- package/lib/types/components/duet-slideout/duet-slideout.d.ts +4 -5
- package/lib/types/components/duet-slideout-link/duet-slideout-link.d.ts +17 -0
- package/lib/types/components/duet-spinner/duet-spinner.d.ts +6 -3
- package/lib/types/components/duet-status-icon/duet-status-icon.d.ts +1 -0
- package/lib/types/components/duet-stepper/duet-stepper.d.ts +5 -2
- package/lib/types/components/duet-tab/duet-tab.d.ts +10 -0
- package/lib/types/components/duet-tab-group/duet-tab-group.d.ts +10 -0
- package/lib/types/components/duet-textarea/duet-textarea.d.ts +21 -9
- package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +1 -1
- package/lib/types/components.d.ts +2440 -130
- package/lib/types/data/countries.d.ts +22 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/stencil-public-runtime.d.ts +35 -6
- package/lib/types/utils/a11y-utils.d.ts +11 -0
- package/lib/types/utils/language-utils.d.ts +1 -0
- package/lib/types/utils/slot-utils.d.ts +1 -0
- package/lib/types/utils/teleport.d.ts +4 -1
- package/lib/types/utils/token-utils.d.ts +4 -0
- package/lib/types/utils/turva2-color-tokens.d.ts +39 -0
- package/package.json +37 -17
- package/lib/cjs/a11y-utils-e921b85d.js +0 -25
- package/lib/cjs/action-arrow-down-small-ef77a2d1.js +0 -8
- package/lib/cjs/action-new-window-small-fa51dfb9.js +0 -8
- package/lib/cjs/duet-chip_3.cjs.entry.js +0 -703
- package/lib/cjs/floating-ui.dom.esm-806e7c53.js +0 -1355
- package/lib/cjs/form-search-d61b2843.js +0 -8
- package/lib/cjs/themeable-component-996b489c.js +0 -15
- package/lib/dist-custom-elements/duet-action-button.d.ts +0 -11
- package/lib/dist-custom-elements/duet-action-button.js +0 -9
- package/lib/dist-custom-elements/duet-alert.d.ts +0 -11
- package/lib/dist-custom-elements/duet-alert.js +0 -9
- package/lib/dist-custom-elements/duet-badge.d.ts +0 -11
- package/lib/dist-custom-elements/duet-badge.js +0 -9
- package/lib/dist-custom-elements/duet-banner.d.ts +0 -11
- package/lib/dist-custom-elements/duet-banner.js +0 -157
- package/lib/dist-custom-elements/duet-breadcrumb.d.ts +0 -11
- package/lib/dist-custom-elements/duet-breadcrumb.js +0 -101
- package/lib/dist-custom-elements/duet-breadcrumbs.d.ts +0 -11
- package/lib/dist-custom-elements/duet-breadcrumbs.js +0 -88
- package/lib/dist-custom-elements/duet-button.d.ts +0 -11
- package/lib/dist-custom-elements/duet-button.js +0 -9
- package/lib/dist-custom-elements/duet-callout.d.ts +0 -11
- package/lib/dist-custom-elements/duet-callout.js +0 -72
- package/lib/dist-custom-elements/duet-caption.d.ts +0 -11
- package/lib/dist-custom-elements/duet-caption.js +0 -9
- package/lib/dist-custom-elements/duet-card.d.ts +0 -11
- package/lib/dist-custom-elements/duet-card.js +0 -174
- package/lib/dist-custom-elements/duet-checkbox.d.ts +0 -11
- package/lib/dist-custom-elements/duet-checkbox.js +0 -9
- package/lib/dist-custom-elements/duet-checkmark.d.ts +0 -11
- package/lib/dist-custom-elements/duet-checkmark.js +0 -9
- package/lib/dist-custom-elements/duet-chip.d.ts +0 -11
- package/lib/dist-custom-elements/duet-chip.js +0 -9
- package/lib/dist-custom-elements/duet-choice-group.d.ts +0 -11
- package/lib/dist-custom-elements/duet-choice-group.js +0 -228
- package/lib/dist-custom-elements/duet-choice.d.ts +0 -11
- package/lib/dist-custom-elements/duet-choice.js +0 -454
- package/lib/dist-custom-elements/duet-collapsible.d.ts +0 -11
- package/lib/dist-custom-elements/duet-collapsible.js +0 -176
- package/lib/dist-custom-elements/duet-combobox.d.ts +0 -11
- package/lib/dist-custom-elements/duet-combobox.js +0 -702
- package/lib/dist-custom-elements/duet-contact-card.d.ts +0 -11
- package/lib/dist-custom-elements/duet-contact-card.js +0 -134
- package/lib/dist-custom-elements/duet-cookie-consent.d.ts +0 -11
- package/lib/dist-custom-elements/duet-cookie-consent.js +0 -106
- package/lib/dist-custom-elements/duet-date-picker.d.ts +0 -11
- package/lib/dist-custom-elements/duet-date-picker.js +0 -937
- package/lib/dist-custom-elements/duet-divider.d.ts +0 -11
- package/lib/dist-custom-elements/duet-divider.js +0 -9
- package/lib/dist-custom-elements/duet-editable-table.d.ts +0 -11
- package/lib/dist-custom-elements/duet-editable-table.js +0 -258
- package/lib/dist-custom-elements/duet-empty-state.d.ts +0 -11
- package/lib/dist-custom-elements/duet-empty-state.js +0 -9
- package/lib/dist-custom-elements/duet-fieldset.d.ts +0 -11
- package/lib/dist-custom-elements/duet-fieldset.js +0 -9
- package/lib/dist-custom-elements/duet-file-chooser.d.ts +0 -11
- package/lib/dist-custom-elements/duet-file-chooser.js +0 -86
- package/lib/dist-custom-elements/duet-footer.d.ts +0 -11
- package/lib/dist-custom-elements/duet-footer.js +0 -223
- package/lib/dist-custom-elements/duet-grid-item.d.ts +0 -11
- package/lib/dist-custom-elements/duet-grid-item.js +0 -9
- package/lib/dist-custom-elements/duet-grid.d.ts +0 -11
- package/lib/dist-custom-elements/duet-grid.js +0 -9
- package/lib/dist-custom-elements/duet-header.d.ts +0 -11
- package/lib/dist-custom-elements/duet-header.js +0 -698
- package/lib/dist-custom-elements/duet-heading.d.ts +0 -11
- package/lib/dist-custom-elements/duet-heading.js +0 -9
- package/lib/dist-custom-elements/duet-hero.d.ts +0 -11
- package/lib/dist-custom-elements/duet-hero.js +0 -299
- package/lib/dist-custom-elements/duet-icon.d.ts +0 -11
- package/lib/dist-custom-elements/duet-icon.js +0 -9
- package/lib/dist-custom-elements/duet-input.d.ts +0 -11
- package/lib/dist-custom-elements/duet-input.js +0 -9
- package/lib/dist-custom-elements/duet-label.d.ts +0 -11
- package/lib/dist-custom-elements/duet-label.js +0 -70
- package/lib/dist-custom-elements/duet-layout.d.ts +0 -11
- package/lib/dist-custom-elements/duet-layout.js +0 -94
- package/lib/dist-custom-elements/duet-link.d.ts +0 -11
- package/lib/dist-custom-elements/duet-link.js +0 -9
- package/lib/dist-custom-elements/duet-list-item.d.ts +0 -11
- package/lib/dist-custom-elements/duet-list-item.js +0 -9
- package/lib/dist-custom-elements/duet-list.d.ts +0 -11
- package/lib/dist-custom-elements/duet-list.js +0 -9
- package/lib/dist-custom-elements/duet-logo.d.ts +0 -11
- package/lib/dist-custom-elements/duet-logo.js +0 -9
- package/lib/dist-custom-elements/duet-menu-bar-button.d.ts +0 -11
- package/lib/dist-custom-elements/duet-menu-bar-button.js +0 -94
- package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.d.ts +0 -11
- package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +0 -87
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.d.ts +0 -11
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +0 -108
- package/lib/dist-custom-elements/duet-menu-bar-item.d.ts +0 -11
- package/lib/dist-custom-elements/duet-menu-bar-item.js +0 -108
- package/lib/dist-custom-elements/duet-menu-bar-link.d.ts +0 -11
- package/lib/dist-custom-elements/duet-menu-bar-link.js +0 -70
- package/lib/dist-custom-elements/duet-menu-bar.d.ts +0 -11
- package/lib/dist-custom-elements/duet-menu-bar.js +0 -207
- package/lib/dist-custom-elements/duet-modal.d.ts +0 -11
- package/lib/dist-custom-elements/duet-modal.js +0 -382
- package/lib/dist-custom-elements/duet-multiselect.d.ts +0 -11
- package/lib/dist-custom-elements/duet-multiselect.js +0 -346
- package/lib/dist-custom-elements/duet-nav.d.ts +0 -11
- package/lib/dist-custom-elements/duet-nav.js +0 -54
- package/lib/dist-custom-elements/duet-notification-drawer.d.ts +0 -11
- package/lib/dist-custom-elements/duet-notification-drawer.js +0 -168
- package/lib/dist-custom-elements/duet-notification.d.ts +0 -11
- package/lib/dist-custom-elements/duet-notification.js +0 -95
- package/lib/dist-custom-elements/duet-number-input.d.ts +0 -11
- package/lib/dist-custom-elements/duet-number-input.js +0 -484
- package/lib/dist-custom-elements/duet-overlay.d.ts +0 -11
- package/lib/dist-custom-elements/duet-overlay.js +0 -9
- package/lib/dist-custom-elements/duet-page-heading.d.ts +0 -11
- package/lib/dist-custom-elements/duet-page-heading.js +0 -87
- package/lib/dist-custom-elements/duet-pagination.d.ts +0 -11
- package/lib/dist-custom-elements/duet-pagination.js +0 -493
- package/lib/dist-custom-elements/duet-paragraph.d.ts +0 -11
- package/lib/dist-custom-elements/duet-paragraph.js +0 -9
- package/lib/dist-custom-elements/duet-popup-menu-item.d.ts +0 -11
- package/lib/dist-custom-elements/duet-popup-menu-item.js +0 -9
- package/lib/dist-custom-elements/duet-popup-menu.d.ts +0 -11
- package/lib/dist-custom-elements/duet-popup-menu.js +0 -9
- package/lib/dist-custom-elements/duet-progress.d.ts +0 -11
- package/lib/dist-custom-elements/duet-progress.js +0 -9
- package/lib/dist-custom-elements/duet-promo-card.d.ts +0 -11
- package/lib/dist-custom-elements/duet-promo-card.js +0 -105
- package/lib/dist-custom-elements/duet-radio-group.d.ts +0 -11
- package/lib/dist-custom-elements/duet-radio-group.js +0 -213
- package/lib/dist-custom-elements/duet-radio.d.ts +0 -11
- package/lib/dist-custom-elements/duet-radio.js +0 -230
- package/lib/dist-custom-elements/duet-range-slider.d.ts +0 -11
- package/lib/dist-custom-elements/duet-range-slider.js +0 -181
- package/lib/dist-custom-elements/duet-range-stepper.d.ts +0 -11
- package/lib/dist-custom-elements/duet-range-stepper.js +0 -234
- package/lib/dist-custom-elements/duet-scrollable.d.ts +0 -11
- package/lib/dist-custom-elements/duet-scrollable.js +0 -9
- package/lib/dist-custom-elements/duet-section-layout.d.ts +0 -11
- package/lib/dist-custom-elements/duet-section-layout.js +0 -56
- package/lib/dist-custom-elements/duet-select.d.ts +0 -11
- package/lib/dist-custom-elements/duet-select.js +0 -9
- package/lib/dist-custom-elements/duet-shaped-image.d.ts +0 -11
- package/lib/dist-custom-elements/duet-shaped-image.js +0 -64
- package/lib/dist-custom-elements/duet-show-more.d.ts +0 -11
- package/lib/dist-custom-elements/duet-show-more.js +0 -9
- package/lib/dist-custom-elements/duet-slideout-lang.d.ts +0 -11
- package/lib/dist-custom-elements/duet-slideout-lang.js +0 -76
- package/lib/dist-custom-elements/duet-slideout-link.d.ts +0 -11
- package/lib/dist-custom-elements/duet-slideout-link.js +0 -79
- package/lib/dist-custom-elements/duet-slideout-panel-dropdown.d.ts +0 -11
- package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +0 -93
- package/lib/dist-custom-elements/duet-slideout-panel.d.ts +0 -11
- package/lib/dist-custom-elements/duet-slideout-panel.js +0 -224
- package/lib/dist-custom-elements/duet-slideout.d.ts +0 -11
- package/lib/dist-custom-elements/duet-slideout.js +0 -328
- package/lib/dist-custom-elements/duet-spacer.d.ts +0 -11
- package/lib/dist-custom-elements/duet-spacer.js +0 -9
- package/lib/dist-custom-elements/duet-spinner.d.ts +0 -11
- package/lib/dist-custom-elements/duet-spinner.js +0 -9
- package/lib/dist-custom-elements/duet-status-icon.d.ts +0 -11
- package/lib/dist-custom-elements/duet-status-icon.js +0 -111
- package/lib/dist-custom-elements/duet-step.d.ts +0 -11
- package/lib/dist-custom-elements/duet-step.js +0 -147
- package/lib/dist-custom-elements/duet-stepper.d.ts +0 -11
- package/lib/dist-custom-elements/duet-stepper.js +0 -151
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.d.ts +0 -11
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +0 -81
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown.d.ts +0 -11
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +0 -152
- package/lib/dist-custom-elements/duet-submenu-bar-item.d.ts +0 -11
- package/lib/dist-custom-elements/duet-submenu-bar-item.js +0 -113
- package/lib/dist-custom-elements/duet-submenu-bar-link.d.ts +0 -11
- package/lib/dist-custom-elements/duet-submenu-bar-link.js +0 -72
- package/lib/dist-custom-elements/duet-submenu-bar.d.ts +0 -11
- package/lib/dist-custom-elements/duet-submenu-bar.js +0 -192
- package/lib/dist-custom-elements/duet-tab-group.d.ts +0 -11
- package/lib/dist-custom-elements/duet-tab-group.js +0 -306
- package/lib/dist-custom-elements/duet-tab.d.ts +0 -11
- package/lib/dist-custom-elements/duet-tab.js +0 -150
- package/lib/dist-custom-elements/duet-table.d.ts +0 -11
- package/lib/dist-custom-elements/duet-table.js +0 -9
- package/lib/dist-custom-elements/duet-textarea.d.ts +0 -11
- package/lib/dist-custom-elements/duet-textarea.js +0 -301
- package/lib/dist-custom-elements/duet-toggle.d.ts +0 -11
- package/lib/dist-custom-elements/duet-toggle.js +0 -146
- package/lib/dist-custom-elements/duet-toolbar-dropdown-link.d.ts +0 -11
- package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +0 -80
- package/lib/dist-custom-elements/duet-toolbar-dropdown.d.ts +0 -11
- package/lib/dist-custom-elements/duet-toolbar-dropdown.js +0 -107
- package/lib/dist-custom-elements/duet-toolbar-item.d.ts +0 -11
- package/lib/dist-custom-elements/duet-toolbar-item.js +0 -120
- package/lib/dist-custom-elements/duet-toolbar-link.d.ts +0 -11
- package/lib/dist-custom-elements/duet-toolbar-link.js +0 -74
- package/lib/dist-custom-elements/duet-toolbar.d.ts +0 -11
- package/lib/dist-custom-elements/duet-toolbar.js +0 -67
- package/lib/dist-custom-elements/duet-tooltip-button.d.ts +0 -11
- package/lib/dist-custom-elements/duet-tooltip-button.js +0 -9
- package/lib/dist-custom-elements/duet-tooltip-popup.d.ts +0 -11
- package/lib/dist-custom-elements/duet-tooltip-popup.js +0 -9
- package/lib/dist-custom-elements/duet-tooltip.d.ts +0 -11
- package/lib/dist-custom-elements/duet-tooltip.js +0 -9
- package/lib/dist-custom-elements/duet-tray.d.ts +0 -11
- package/lib/dist-custom-elements/duet-tray.js +0 -146
- package/lib/dist-custom-elements/duet-upload-aria-status.d.ts +0 -11
- package/lib/dist-custom-elements/duet-upload-aria-status.js +0 -9
- package/lib/dist-custom-elements/duet-upload-item.d.ts +0 -11
- package/lib/dist-custom-elements/duet-upload-item.js +0 -9
- package/lib/dist-custom-elements/duet-upload.d.ts +0 -11
- package/lib/dist-custom-elements/duet-upload.js +0 -1444
- package/lib/dist-custom-elements/duet-visually-hidden.d.ts +0 -11
- package/lib/dist-custom-elements/duet-visually-hidden.js +0 -9
- package/lib/dist-custom-elements/index.d.ts +0 -33
- package/lib/dist-custom-elements/index.js +0 -29
- package/lib/dist-custom-elements/p-0ccb587d.js +0 -124
- package/lib/dist-custom-elements/p-1080a6c7.js +0 -2130
- package/lib/dist-custom-elements/p-10cd2c68.js +0 -214
- package/lib/dist-custom-elements/p-115c79b6.js +0 -6
- package/lib/dist-custom-elements/p-1892dc7c.js +0 -80
- package/lib/dist-custom-elements/p-1a58f15b.js +0 -63
- package/lib/dist-custom-elements/p-297845c1.js +0 -206
- package/lib/dist-custom-elements/p-2d798e15.js +0 -80
- package/lib/dist-custom-elements/p-34a901da.js +0 -124
- package/lib/dist-custom-elements/p-35375593.js +0 -161
- package/lib/dist-custom-elements/p-3bea94c3.js +0 -313
- package/lib/dist-custom-elements/p-4c3d0ee5.js +0 -127
- package/lib/dist-custom-elements/p-530451fd.js +0 -55
- package/lib/dist-custom-elements/p-5ad0aa2d.js +0 -56
- package/lib/dist-custom-elements/p-6e12d8f9.js +0 -73
- package/lib/dist-custom-elements/p-77fe0881.js +0 -165
- package/lib/dist-custom-elements/p-7ef7ecb2.js +0 -607
- package/lib/dist-custom-elements/p-81287261.js +0 -1348
- package/lib/dist-custom-elements/p-846239a5.js +0 -340
- package/lib/dist-custom-elements/p-88a11eef.js +0 -81
- package/lib/dist-custom-elements/p-993aea39.js +0 -175
- package/lib/dist-custom-elements/p-9df4cfa4.js +0 -25
- package/lib/dist-custom-elements/p-9f10e30c.js +0 -642
- package/lib/dist-custom-elements/p-a2d287b0.js +0 -321
- package/lib/dist-custom-elements/p-aaa7a7bd.js +0 -13
- package/lib/dist-custom-elements/p-ad615991.js +0 -115
- package/lib/dist-custom-elements/p-afb6f7fb.js +0 -23
- package/lib/dist-custom-elements/p-b2db5fb1.js +0 -287
- package/lib/dist-custom-elements/p-b662900e.js +0 -178
- package/lib/dist-custom-elements/p-bae3d92e.js +0 -61
- package/lib/dist-custom-elements/p-bf91603e.js +0 -154
- package/lib/dist-custom-elements/p-c84c39d8.js +0 -60
- package/lib/dist-custom-elements/p-cea716f7.js +0 -503
- package/lib/dist-custom-elements/p-d004da5f.js +0 -6
- package/lib/dist-custom-elements/p-d07ce35f.js +0 -232
- package/lib/dist-custom-elements/p-d1aca1bf.js +0 -268
- package/lib/dist-custom-elements/p-d4202ee8.js +0 -110
- package/lib/dist-custom-elements/p-d74ee462.js +0 -61
- package/lib/dist-custom-elements/p-d8e88497.js +0 -194
- package/lib/dist-custom-elements/p-db1a07f5.js +0 -94
- package/lib/dist-custom-elements/p-df9299e6.js +0 -39
- package/lib/dist-custom-elements/p-e96839f2.js +0 -63
- package/lib/dist-custom-elements/p-ed2d40fe.js +0 -50
- package/lib/dist-custom-elements/p-f0d82988.js +0 -205
- package/lib/dist-custom-elements/p-f11208c3.js +0 -6
- package/lib/dist-custom-elements/p-f4e71ced.js +0 -102
- package/lib/dist-custom-elements/p-f6000a03.js +0 -753
- package/lib/dist-custom-elements/p-f611b32e.js +0 -83
- package/lib/dist-custom-elements/p-f86f4403.js +0 -100
- package/lib/dist-custom-elements/p-faa49d55.js +0 -370
- package/lib/duet/duet.js +0 -127
- package/lib/duet/p-038bb299.entry.js +0 -4
- package/lib/duet/p-03bfd386.system.js +0 -4
- package/lib/duet/p-050923e5.entry.js +0 -4
- package/lib/duet/p-053b71e6.system.js +0 -4
- package/lib/duet/p-054f5ec6.system.js +0 -4
- package/lib/duet/p-05aec682.entry.js +0 -4
- package/lib/duet/p-06995c4e.system.entry.js +0 -4
- package/lib/duet/p-08344bda.system.entry.js +0 -4
- package/lib/duet/p-0846f883.entry.js +0 -4
- package/lib/duet/p-08f3a77e.system.entry.js +0 -4
- package/lib/duet/p-091ce42a.entry.js +0 -4
- package/lib/duet/p-0998026d.system.entry.js +0 -4
- package/lib/duet/p-0a4b0639.entry.js +0 -4
- package/lib/duet/p-0a675075.js +0 -4
- package/lib/duet/p-0b818355.entry.js +0 -4
- package/lib/duet/p-0bcc93b7.entry.js +0 -4
- package/lib/duet/p-0c4708c0.system.entry.js +0 -4
- package/lib/duet/p-0c4bbd65.system.js +0 -4
- package/lib/duet/p-0cbec7c8.entry.js +0 -4
- package/lib/duet/p-0d334c84.system.entry.js +0 -4
- package/lib/duet/p-0d7369ef.system.entry.js +0 -4
- package/lib/duet/p-0d7da85a.js +0 -4
- package/lib/duet/p-0dc9089b.system.js +0 -4
- package/lib/duet/p-10b1f772.entry.js +0 -4
- package/lib/duet/p-115c79b6.js +0 -4
- package/lib/duet/p-12b25cdd.system.entry.js +0 -4
- package/lib/duet/p-145d2c10.entry.js +0 -4
- package/lib/duet/p-15d66914.system.entry.js +0 -4
- package/lib/duet/p-166d19ac.entry.js +0 -4
- package/lib/duet/p-178b8a47.system.entry.js +0 -4
- package/lib/duet/p-17bfda66.entry.js +0 -4
- package/lib/duet/p-18463379.system.entry.js +0 -4
- package/lib/duet/p-1a65974d.system.entry.js +0 -4
- package/lib/duet/p-1cc7a137.entry.js +0 -4
- package/lib/duet/p-1d1198dd.system.entry.js +0 -4
- package/lib/duet/p-1dff1118.system.entry.js +0 -4
- package/lib/duet/p-1ed2ef65.entry.js +0 -4
- package/lib/duet/p-20a1c9ac.entry.js +0 -4
- package/lib/duet/p-21dd3dba.system.entry.js +0 -4
- package/lib/duet/p-22d16f94.entry.js +0 -4
- package/lib/duet/p-2667d9dc.entry.js +0 -4
- package/lib/duet/p-2aa130a2.entry.js +0 -4
- package/lib/duet/p-2ae03409.entry.js +0 -4
- package/lib/duet/p-2afb5bf3.system.entry.js +0 -4
- package/lib/duet/p-2d6171e9.system.entry.js +0 -4
- package/lib/duet/p-2dcc7b0c.entry.js +0 -4
- package/lib/duet/p-31e19362.system.entry.js +0 -4
- package/lib/duet/p-330a4b1f.system.entry.js +0 -4
- package/lib/duet/p-374599c9.entry.js +0 -4
- package/lib/duet/p-38b22704.system.entry.js +0 -4
- package/lib/duet/p-3948c738.system.entry.js +0 -4
- package/lib/duet/p-3b15bdda.system.entry.js +0 -4
- package/lib/duet/p-3c2b3349.entry.js +0 -4
- package/lib/duet/p-3ca8e462.entry.js +0 -4
- package/lib/duet/p-41982d26.system.js +0 -4
- package/lib/duet/p-41d03609.system.entry.js +0 -4
- package/lib/duet/p-4289c19b.system.js +0 -5
- package/lib/duet/p-45c37e01.system.entry.js +0 -4
- package/lib/duet/p-473b8661.entry.js +0 -4
- package/lib/duet/p-485832e7.entry.js +0 -4
- package/lib/duet/p-49957220.system.js +0 -4
- package/lib/duet/p-4a2af66f.entry.js +0 -4
- package/lib/duet/p-4cff3036.system.js +0 -4
- package/lib/duet/p-4d06fd44.js +0 -4
- package/lib/duet/p-4d496fbd.entry.js +0 -4
- package/lib/duet/p-4d8a5d37.entry.js +0 -4
- package/lib/duet/p-4dc15982.system.entry.js +0 -4
- package/lib/duet/p-53604f23.entry.js +0 -4
- package/lib/duet/p-53c2006e.system.entry.js +0 -4
- package/lib/duet/p-53fc94a0.system.entry.js +0 -4
- package/lib/duet/p-54704ee1.system.entry.js +0 -4
- package/lib/duet/p-56f40850.system.entry.js +0 -4
- package/lib/duet/p-59f0bbf0.entry.js +0 -4
- package/lib/duet/p-5a0482d3.entry.js +0 -4
- package/lib/duet/p-5a72f8b5.system.entry.js +0 -4
- package/lib/duet/p-5c026823.entry.js +0 -4
- package/lib/duet/p-5ff95850.entry.js +0 -4
- package/lib/duet/p-60734222.system.entry.js +0 -4
- package/lib/duet/p-62a7d1e0.system.entry.js +0 -4
- package/lib/duet/p-652ef5c4.system.entry.js +0 -4
- package/lib/duet/p-65d9b543.entry.js +0 -4
- package/lib/duet/p-66dfb534.system.entry.js +0 -4
- package/lib/duet/p-6880e7e4.system.entry.js +0 -4
- package/lib/duet/p-69dda5cf.entry.js +0 -4
- package/lib/duet/p-6e5dbf3f.system.entry.js +0 -4
- package/lib/duet/p-6f878638.system.entry.js +0 -4
- package/lib/duet/p-70a6edcd.system.entry.js +0 -4
- package/lib/duet/p-70ea5a26.system.entry.js +0 -4
- package/lib/duet/p-72767ad2.entry.js +0 -4
- package/lib/duet/p-739ffce8.entry.js +0 -4
- package/lib/duet/p-74aa0f9d.system.js +0 -4
- package/lib/duet/p-752fa0fc.system.js +0 -4
- package/lib/duet/p-7648f559.system.js +0 -4
- package/lib/duet/p-77bbd147.entry.js +0 -4
- package/lib/duet/p-77f01407.entry.js +0 -4
- package/lib/duet/p-7931d6b8.entry.js +0 -4
- package/lib/duet/p-798942ab.entry.js +0 -4
- package/lib/duet/p-7b2d2e4d.system.entry.js +0 -4
- package/lib/duet/p-7bbf3a3b.system.entry.js +0 -4
- package/lib/duet/p-7d8a2628.js +0 -4
- package/lib/duet/p-7dfee16a.entry.js +0 -4
- package/lib/duet/p-7f16d0df.entry.js +0 -4
- package/lib/duet/p-7f22291f.entry.js +0 -4
- package/lib/duet/p-81cde516.system.entry.js +0 -4
- package/lib/duet/p-8228f180.system.entry.js +0 -4
- package/lib/duet/p-84835d40.entry.js +0 -4
- package/lib/duet/p-874f4064.system.entry.js +0 -4
- package/lib/duet/p-897e6941.entry.js +0 -4
- package/lib/duet/p-8a970f0a.system.entry.js +0 -4
- package/lib/duet/p-8b1c69f9.system.entry.js +0 -4
- package/lib/duet/p-8baeb065.entry.js +0 -4
- package/lib/duet/p-8eea942e.entry.js +0 -4
- package/lib/duet/p-8f477bd6.system.js +0 -4
- package/lib/duet/p-8f871c29.entry.js +0 -4
- package/lib/duet/p-8faaaf5f.system.js +0 -4
- package/lib/duet/p-90999186.entry.js +0 -4
- package/lib/duet/p-979fb2cf.entry.js +0 -4
- package/lib/duet/p-97b3fb78.system.entry.js +0 -4
- package/lib/duet/p-97eb9b2e.entry.js +0 -4
- package/lib/duet/p-97fe4968.js +0 -5
- package/lib/duet/p-98636086.system.js +0 -4
- package/lib/duet/p-9fab0a1d.system.entry.js +0 -4
- package/lib/duet/p-a0a59034.system.entry.js +0 -4
- package/lib/duet/p-a1a0370a.system.entry.js +0 -4
- package/lib/duet/p-a20ed47c.js +0 -4
- package/lib/duet/p-a4dbef0b.system.entry.js +0 -4
- package/lib/duet/p-a54c3c58.system.entry.js +0 -4
- package/lib/duet/p-a6bb7eb0.entry.js +0 -4
- package/lib/duet/p-aaa7a7bd.js +0 -4
- package/lib/duet/p-ac21f1dc.system.entry.js +0 -4
- package/lib/duet/p-ac7ef7e2.js +0 -4
- package/lib/duet/p-aca1538e.entry.js +0 -4
- package/lib/duet/p-ae19da09.entry.js +0 -4
- package/lib/duet/p-afad5fd3.system.js +0 -4
- package/lib/duet/p-b2d5f07c.system.js +0 -4
- package/lib/duet/p-b2f3287a.system.entry.js +0 -4
- package/lib/duet/p-b5b8973c.js +0 -4
- package/lib/duet/p-b6366830.system.entry.js +0 -4
- package/lib/duet/p-b864159a.system.js +0 -4
- package/lib/duet/p-b8d342d1.system.entry.js +0 -4
- package/lib/duet/p-ba03d034.system.js +0 -4
- package/lib/duet/p-bd3c7c60.system.entry.js +0 -4
- package/lib/duet/p-be8044cb.system.entry.js +0 -4
- package/lib/duet/p-beeb12f1.js +0 -4
- package/lib/duet/p-bf85a8c6.entry.js +0 -4
- package/lib/duet/p-bfe1d1d1.system.entry.js +0 -4
- package/lib/duet/p-c2308ebd.entry.js +0 -4
- package/lib/duet/p-c47bc68e.entry.js +0 -4
- package/lib/duet/p-c5b6d9ed.entry.js +0 -4
- package/lib/duet/p-c93daa4f.entry.js +0 -4
- package/lib/duet/p-ca3cb21e.js +0 -4
- package/lib/duet/p-cc5e6288.system.js +0 -4
- package/lib/duet/p-cc67e773.js +0 -4
- package/lib/duet/p-cc6e2037.system.entry.js +0 -4
- package/lib/duet/p-cd4cd328.entry.js +0 -4
- package/lib/duet/p-cf3dbdbe.entry.js +0 -4
- package/lib/duet/p-cf6a502f.system.entry.js +0 -4
- package/lib/duet/p-cfb501bd.entry.js +0 -4
- package/lib/duet/p-d004da5f.js +0 -4
- package/lib/duet/p-d080e1b9.system.js +0 -4
- package/lib/duet/p-d159daa2.entry.js +0 -4
- package/lib/duet/p-d3960f14.system.js +0 -4
- package/lib/duet/p-d4f2abe8.entry.js +0 -4
- package/lib/duet/p-d5a87e9a.js +0 -4
- package/lib/duet/p-d6b00137.entry.js +0 -4
- package/lib/duet/p-d7b8ea98.system.entry.js +0 -4
- package/lib/duet/p-db2ccb9d.system.js +0 -4
- package/lib/duet/p-dc68fee2.entry.js +0 -4
- package/lib/duet/p-e05cecd0.system.entry.js +0 -4
- package/lib/duet/p-e0b5d41a.system.entry.js +0 -4
- package/lib/duet/p-e12066c8.system.js +0 -4
- package/lib/duet/p-e1c5ef00.entry.js +0 -4
- package/lib/duet/p-e21018b3.entry.js +0 -4
- package/lib/duet/p-e216bea4.system.js +0 -4
- package/lib/duet/p-e263283f.entry.js +0 -4
- package/lib/duet/p-e4a0a1b3.entry.js +0 -4
- package/lib/duet/p-e4c8559c.system.js +0 -4
- package/lib/duet/p-e513c4ca.system.entry.js +0 -4
- package/lib/duet/p-e6b5a1c7.system.js +0 -4
- package/lib/duet/p-e6f7a7fd.system.entry.js +0 -4
- package/lib/duet/p-e8f8aae8.system.js +0 -4
- package/lib/duet/p-e93169b0.system.entry.js +0 -4
- package/lib/duet/p-eb425c47.entry.js +0 -4
- package/lib/duet/p-edcdd3e6.system.entry.js +0 -4
- package/lib/duet/p-efa05a47.system.entry.js +0 -4
- package/lib/duet/p-efe71c0a.system.entry.js +0 -4
- package/lib/duet/p-f065f062.system.entry.js +0 -4
- package/lib/duet/p-f11208c3.js +0 -4
- package/lib/duet/p-f23de827.system.entry.js +0 -4
- package/lib/duet/p-f4df9001.system.entry.js +0 -4
- package/lib/duet/p-f5a0878c.entry.js +0 -4
- package/lib/duet/p-f5b6fd8e.system.entry.js +0 -4
- package/lib/duet/p-f6000a03.js +0 -4
- package/lib/duet/p-f6b21d17.system.js +0 -4
- package/lib/duet/p-f785408c.system.entry.js +0 -4
- package/lib/duet/p-f892350a.entry.js +0 -4
- package/lib/duet/p-f966e96a.system.entry.js +0 -4
- package/lib/duet/p-fc06b1eb.system.entry.js +0 -4
- package/lib/duet/p-fcc0e0bf.system.entry.js +0 -4
- package/lib/duet/p-fd376e7c.entry.js +0 -4
- package/lib/duet/p-fe13effe.system.entry.js +0 -4
- package/lib/duet/p-ffb9535d.system.entry.js +0 -4
- package/lib/esm/a11y-utils-9f6bee96.js +0 -23
- package/lib/esm/action-arrow-down-small-82273dc8.js +0 -6
- package/lib/esm/action-new-window-small-1945be91.js +0 -6
- package/lib/esm/body-scroll-46854769.js +0 -234
- package/lib/esm/bodyScrollLock.es6-ecbf187e.js +0 -184
- package/lib/esm/common-strings-af765cad.js +0 -25
- package/lib/esm/create-id-149a1b6d.js +0 -11
- package/lib/esm/duet-chip_3.entry.js +0 -697
- package/lib/esm/floating-ui.dom.esm-ebc91b33.js +0 -1348
- package/lib/esm/focus-utils-fc101536.js +0 -18
- package/lib/esm/form-search-ea8e19ae.js +0 -6
- package/lib/esm/input-utils-85681162.js +0 -53
- package/lib/esm/is-internet-explorer-2c48f686.js +0 -9
- package/lib/esm/js-utils-9b9e0039.js +0 -47
- package/lib/esm/keyboard-utils-daf80d44.js +0 -58
- package/lib/esm/label-b3694b48.js +0 -20
- package/lib/esm/polyfills/core-js.js +0 -11
- package/lib/esm/polyfills/dom.js +0 -79
- package/lib/esm/polyfills/es5-html-element.js +0 -1
- package/lib/esm/polyfills/index.js +0 -34
- package/lib/esm/polyfills/system.js +0 -6
- package/lib/esm/string-utils-192eb3c8.js +0 -61
- package/lib/esm/teleport-546f382d.js +0 -116
- package/lib/esm/themeable-component-860041c5.js +0 -13
- package/lib/esm/token-utils-b9ba8c5e.js +0 -138
- package/lib/esm/watch-options-e96ecd92.js +0 -57
- package/lib/esm-es5/a11y-utils-9f6bee96.js +0 -4
- package/lib/esm-es5/action-arrow-down-small-82273dc8.js +0 -4
- package/lib/esm-es5/action-new-window-small-1945be91.js +0 -4
- package/lib/esm-es5/app-globals-f12e0500.js +0 -4
- package/lib/esm-es5/body-scroll-46854769.js +0 -4
- package/lib/esm-es5/bodyScrollLock.es6-ecbf187e.js +0 -4
- package/lib/esm-es5/common-strings-af765cad.js +0 -4
- package/lib/esm-es5/create-id-149a1b6d.js +0 -4
- package/lib/esm-es5/duet-action-button.entry.js +0 -4
- package/lib/esm-es5/duet-alert.entry.js +0 -4
- package/lib/esm-es5/duet-badge.entry.js +0 -4
- package/lib/esm-es5/duet-banner.entry.js +0 -4
- package/lib/esm-es5/duet-breadcrumb.entry.js +0 -4
- package/lib/esm-es5/duet-breadcrumbs.entry.js +0 -4
- package/lib/esm-es5/duet-button_2.entry.js +0 -4
- package/lib/esm-es5/duet-callout.entry.js +0 -4
- package/lib/esm-es5/duet-caption_4.entry.js +0 -4
- package/lib/esm-es5/duet-card.entry.js +0 -4
- package/lib/esm-es5/duet-checkbox.entry.js +0 -4
- package/lib/esm-es5/duet-checkmark.entry.js +0 -4
- package/lib/esm-es5/duet-chip_3.entry.js +0 -4
- package/lib/esm-es5/duet-choice_2.entry.js +0 -4
- package/lib/esm-es5/duet-collapsible.entry.js +0 -4
- package/lib/esm-es5/duet-combobox.entry.js +0 -4
- package/lib/esm-es5/duet-contact-card.entry.js +0 -4
- package/lib/esm-es5/duet-cookie-consent.entry.js +0 -4
- package/lib/esm-es5/duet-date-picker.entry.js +0 -4
- package/lib/esm-es5/duet-divider_2.entry.js +0 -4
- package/lib/esm-es5/duet-editable-table_3.entry.js +0 -4
- package/lib/esm-es5/duet-empty-state.entry.js +0 -4
- package/lib/esm-es5/duet-fieldset.entry.js +0 -4
- package/lib/esm-es5/duet-file-chooser.entry.js +0 -4
- package/lib/esm-es5/duet-footer.entry.js +0 -4
- package/lib/esm-es5/duet-grid_2.entry.js +0 -4
- package/lib/esm-es5/duet-header_2.entry.js +0 -4
- package/lib/esm-es5/duet-hero.entry.js +0 -4
- package/lib/esm-es5/duet-icon.entry.js +0 -4
- package/lib/esm-es5/duet-input_2.entry.js +0 -4
- package/lib/esm-es5/duet-layout.entry.js +0 -4
- package/lib/esm-es5/duet-list_2.entry.js +0 -4
- package/lib/esm-es5/duet-menu-bar-button.entry.js +0 -4
- package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +0 -4
- package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +0 -4
- package/lib/esm-es5/duet-menu-bar-item.entry.js +0 -4
- package/lib/esm-es5/duet-menu-bar-link.entry.js +0 -4
- package/lib/esm-es5/duet-menu-bar.entry.js +0 -4
- package/lib/esm-es5/duet-modal.entry.js +0 -4
- package/lib/esm-es5/duet-multiselect.entry.js +0 -4
- package/lib/esm-es5/duet-nav.entry.js +0 -4
- package/lib/esm-es5/duet-notification_2.entry.js +0 -4
- package/lib/esm-es5/duet-number-input.entry.js +0 -4
- package/lib/esm-es5/duet-overlay.entry.js +0 -4
- package/lib/esm-es5/duet-page-heading.entry.js +0 -4
- package/lib/esm-es5/duet-pagination_2.entry.js +0 -4
- package/lib/esm-es5/duet-progress.entry.js +0 -4
- package/lib/esm-es5/duet-promo-card.entry.js +0 -4
- package/lib/esm-es5/duet-radio_2.entry.js +0 -4
- package/lib/esm-es5/duet-range-slider.entry.js +0 -4
- package/lib/esm-es5/duet-scrollable_3.entry.js +0 -4
- package/lib/esm-es5/duet-section-layout.entry.js +0 -4
- package/lib/esm-es5/duet-select.entry.js +0 -4
- package/lib/esm-es5/duet-shaped-image.entry.js +0 -4
- package/lib/esm-es5/duet-show-more.entry.js +0 -4
- package/lib/esm-es5/duet-slideout-lang.entry.js +0 -4
- package/lib/esm-es5/duet-slideout-link.entry.js +0 -4
- package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +0 -4
- package/lib/esm-es5/duet-slideout-panel.entry.js +0 -4
- package/lib/esm-es5/duet-slideout.entry.js +0 -4
- package/lib/esm-es5/duet-status-icon.entry.js +0 -4
- package/lib/esm-es5/duet-step_2.entry.js +0 -4
- package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +0 -4
- package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +0 -4
- package/lib/esm-es5/duet-submenu-bar-item.entry.js +0 -4
- package/lib/esm-es5/duet-submenu-bar-link.entry.js +0 -4
- package/lib/esm-es5/duet-submenu-bar.entry.js +0 -4
- package/lib/esm-es5/duet-textarea.entry.js +0 -4
- package/lib/esm-es5/duet-toggle.entry.js +0 -4
- package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +0 -4
- package/lib/esm-es5/duet-toolbar-dropdown.entry.js +0 -4
- package/lib/esm-es5/duet-toolbar-item.entry.js +0 -4
- package/lib/esm-es5/duet-toolbar-link.entry.js +0 -4
- package/lib/esm-es5/duet-toolbar.entry.js +0 -4
- package/lib/esm-es5/duet-tooltip-button_2.entry.js +0 -4
- package/lib/esm-es5/duet-tooltip.entry.js +0 -4
- package/lib/esm-es5/duet-tray.entry.js +0 -4
- package/lib/esm-es5/duet-upload-aria-status.entry.js +0 -4
- package/lib/esm-es5/duet-upload-item.entry.js +0 -4
- package/lib/esm-es5/duet-visually-hidden.entry.js +0 -4
- package/lib/esm-es5/duet.js +0 -4
- package/lib/esm-es5/errorcodes.utils-d594aed8.js +0 -4
- package/lib/esm-es5/floating-ui.dom.esm-ebc91b33.js +0 -4
- package/lib/esm-es5/focus-utils-fc101536.js +0 -4
- package/lib/esm-es5/form-search-ea8e19ae.js +0 -4
- package/lib/esm-es5/index-fa810c91.js +0 -4
- package/lib/esm-es5/index.js +0 -3
- package/lib/esm-es5/input-utils-85681162.js +0 -4
- package/lib/esm-es5/is-internet-explorer-2c48f686.js +0 -4
- package/lib/esm-es5/js-utils-9b9e0039.js +0 -4
- package/lib/esm-es5/keyboard-utils-daf80d44.js +0 -4
- package/lib/esm-es5/label-b3694b48.js +0 -4
- package/lib/esm-es5/language-utils-35eb1c9f.js +0 -4
- package/lib/esm-es5/loader.js +0 -4
- package/lib/esm-es5/slot-utils-b2101c56.js +0 -4
- package/lib/esm-es5/string-utils-192eb3c8.js +0 -4
- package/lib/esm-es5/teleport-546f382d.js +0 -4
- package/lib/esm-es5/themeable-component-860041c5.js +0 -4
- package/lib/esm-es5/token-utils-b9ba8c5e.js +0 -4
- package/lib/esm-es5/tokens-84fb2357.js +0 -4
- package/lib/esm-es5/tokens.module-2d02f5ff.js +0 -4
- package/lib/esm-es5/watch-options-e96ecd92.js +0 -4
- package/lib/loader/package.json +0 -11
- /package/lib/cjs/{body-scroll-dba42314.js → body-scroll-FWPe3_T_.js} +0 -0
- /package/lib/cjs/{bodyScrollLock.es6-dd2d7d91.js → bodyScrollLock.es6-B2sCDud5.js} +0 -0
- /package/lib/cjs/{create-id-1f8c438f.js → create-id-DtslnIOq.js} +0 -0
- /package/lib/cjs/{input-utils-1096a2c5.js → input-utils-DUKdslOM.js} +0 -0
- /package/lib/cjs/{is-internet-explorer-e7f58ebc.js → is-internet-explorer-BTLb_loH.js} +0 -0
- /package/lib/cjs/{js-utils-92e24ba1.js → js-utils-hJ4A2edy.js} +0 -0
- /package/lib/cjs/{keyboard-utils-f7c9f980.js → keyboard-utils-D9UlHbik.js} +0 -0
- /package/lib/cjs/{string-utils-7b13c16e.js → string-utils-B35hEUBv.js} +0 -0
- /package/lib/duet/{p-8354d1f1.js → p-B1B-PPrh.js} +0 -0
- /package/lib/duet/{p-9e371678.js → p-BlUsLmbQ.js} +0 -0
- /package/lib/duet/{p-fc09c464.js → p-C6CAT054.js} +0 -0
- /package/lib/duet/{p-9c3c64b9.js → p-C6E9F6QT.js} +0 -0
- /package/lib/duet/{p-df7874f9.js → p-CLDy7YaM.js} +0 -0
- /package/lib/duet/{p-5e59e970.js → p-Cfr_DJqU.js} +0 -0
- /package/lib/duet/{p-43b89e38.js → p-DxESMgwA.js} +0 -0
- /package/lib/{dist-custom-elements/p-fc09c464.js → esm/body-scroll-C6CAT054.js} +0 -0
- /package/lib/{dist-custom-elements/p-8354d1f1.js → esm/bodyScrollLock.es6-B1B-PPrh.js} +0 -0
- /package/lib/{dist-custom-elements/p-5e59e970.js → esm/create-id-Cfr_DJqU.js} +0 -0
- /package/lib/{dist-custom-elements/p-df7874f9.js → esm/input-utils-CLDy7YaM.js} +0 -0
- /package/lib/{dist-custom-elements/p-43b89e38.js → esm/is-internet-explorer-DxESMgwA.js} +0 -0
- /package/lib/{dist-custom-elements/p-9e371678.js → esm/js-utils-BlUsLmbQ.js} +0 -0
- /package/lib/{dist-custom-elements/p-9c3c64b9.js → esm/string-utils-C6E9F6QT.js} +0 -0
|
@@ -12,23 +12,21 @@ function _interopNamespace(e) {
|
|
|
12
12
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
13
|
Object.defineProperty(n, k, d.get ? d : {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () {
|
|
16
|
-
return e[k];
|
|
17
|
-
}
|
|
15
|
+
get: function () { return e[k]; }
|
|
18
16
|
});
|
|
19
17
|
}
|
|
20
18
|
});
|
|
21
19
|
}
|
|
22
|
-
n
|
|
20
|
+
n.default = e;
|
|
23
21
|
return Object.freeze(n);
|
|
24
22
|
}
|
|
25
23
|
|
|
26
24
|
const NAMESPACE = 'duet';
|
|
27
|
-
const BUILD = /* duet */ {
|
|
28
|
-
const Env = /* duet */ {"
|
|
25
|
+
const BUILD = /* duet */ { hydratedSelectorName: "hydrated", lazyLoad: true, slotRelocation: true, updatable: true};
|
|
26
|
+
const Env = /* duet */ {"cdnURIProd":"https://cdn.duetds.com/api","duetIconVersion":"4.2.13"};
|
|
29
27
|
|
|
30
28
|
/*
|
|
31
|
-
Stencil Client Platform v4.
|
|
29
|
+
Stencil Client Platform v4.36.3 | MIT Licensed | https://stenciljs.com
|
|
32
30
|
*/
|
|
33
31
|
var __defProp = Object.defineProperty;
|
|
34
32
|
var __export = (target, all) => {
|
|
@@ -36,14 +34,47 @@ var __export = (target, all) => {
|
|
|
36
34
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
37
35
|
};
|
|
38
36
|
var Build = {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
var
|
|
45
|
-
|
|
46
|
-
|
|
37
|
+
isServer: false};
|
|
38
|
+
|
|
39
|
+
// src/utils/constants.ts
|
|
40
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
41
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
42
|
+
var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
|
|
43
|
+
PrimitiveType2["Undefined"] = "undefined";
|
|
44
|
+
PrimitiveType2["Null"] = "null";
|
|
45
|
+
PrimitiveType2["String"] = "string";
|
|
46
|
+
PrimitiveType2["Number"] = "number";
|
|
47
|
+
PrimitiveType2["SpecialNumber"] = "number";
|
|
48
|
+
PrimitiveType2["Boolean"] = "boolean";
|
|
49
|
+
PrimitiveType2["BigInt"] = "bigint";
|
|
50
|
+
return PrimitiveType2;
|
|
51
|
+
})(PrimitiveType || {});
|
|
52
|
+
var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
|
|
53
|
+
NonPrimitiveType2["Array"] = "array";
|
|
54
|
+
NonPrimitiveType2["Date"] = "date";
|
|
55
|
+
NonPrimitiveType2["Map"] = "map";
|
|
56
|
+
NonPrimitiveType2["Object"] = "object";
|
|
57
|
+
NonPrimitiveType2["RegularExpression"] = "regexp";
|
|
58
|
+
NonPrimitiveType2["Set"] = "set";
|
|
59
|
+
NonPrimitiveType2["Channel"] = "channel";
|
|
60
|
+
NonPrimitiveType2["Symbol"] = "symbol";
|
|
61
|
+
return NonPrimitiveType2;
|
|
62
|
+
})(NonPrimitiveType || {});
|
|
63
|
+
var TYPE_CONSTANT = "type";
|
|
64
|
+
var VALUE_CONSTANT = "value";
|
|
65
|
+
var SERIALIZED_PREFIX = "serialized:";
|
|
66
|
+
|
|
67
|
+
// src/client/client-host-ref.ts
|
|
68
|
+
var getHostRef = (ref) => {
|
|
69
|
+
if (ref.__stencil__getHostRef) {
|
|
70
|
+
return ref.__stencil__getHostRef();
|
|
71
|
+
}
|
|
72
|
+
return void 0;
|
|
73
|
+
};
|
|
74
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
75
|
+
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
76
|
+
hostRef.$lazyInstance$ = lazyInstance;
|
|
77
|
+
};
|
|
47
78
|
var registerHost = (hostElement, cmpMeta) => {
|
|
48
79
|
const hostRef = {
|
|
49
80
|
$flags$: 0,
|
|
@@ -59,7 +90,9 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
59
90
|
hostElement["s-p"] = [];
|
|
60
91
|
hostElement["s-rc"] = [];
|
|
61
92
|
}
|
|
62
|
-
|
|
93
|
+
const ref = hostRef;
|
|
94
|
+
hostElement.__stencil__getHostRef = () => ref;
|
|
95
|
+
return ref;
|
|
63
96
|
};
|
|
64
97
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
65
98
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -84,6 +117,18 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
84
117
|
}
|
|
85
118
|
switch(bundleId) {
|
|
86
119
|
|
|
120
|
+
case 'duet-share-chart-item.cjs':
|
|
121
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
122
|
+
/* webpackMode: "lazy" */
|
|
123
|
+
'./duet-share-chart-item.cjs.entry.js')); }).then(processMod, consoleError);
|
|
124
|
+
case 'duet-upload-aria-status.cjs':
|
|
125
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
126
|
+
/* webpackMode: "lazy" */
|
|
127
|
+
'./duet-upload-aria-status.cjs.entry.js')); }).then(processMod, consoleError);
|
|
128
|
+
case 'duet-status-icon.cjs':
|
|
129
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
130
|
+
/* webpackMode: "lazy" */
|
|
131
|
+
'./duet-status-icon.cjs.entry.js')); }).then(processMod, consoleError);
|
|
87
132
|
case 'duet-alert.cjs':
|
|
88
133
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
89
134
|
/* webpackMode: "lazy" */
|
|
@@ -100,10 +145,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
100
145
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
101
146
|
/* webpackMode: "lazy" */
|
|
102
147
|
'./duet-hero.cjs.entry.js')); }).then(processMod, consoleError);
|
|
103
|
-
case 'duet-card.cjs':
|
|
104
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
105
|
-
/* webpackMode: "lazy" */
|
|
106
|
-
'./duet-card.cjs.entry.js')); }).then(processMod, consoleError);
|
|
107
148
|
case 'duet-empty-state.cjs':
|
|
108
149
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
109
150
|
/* webpackMode: "lazy" */
|
|
@@ -120,14 +161,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
120
161
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
121
162
|
/* webpackMode: "lazy" */
|
|
122
163
|
'./duet-section-layout.cjs.entry.js')); }).then(processMod, consoleError);
|
|
123
|
-
case 'duet-number-input.cjs':
|
|
124
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
125
|
-
/* webpackMode: "lazy" */
|
|
126
|
-
'./duet-number-input.cjs.entry.js')); }).then(processMod, consoleError);
|
|
127
|
-
case 'duet-icon.cjs':
|
|
128
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
129
|
-
/* webpackMode: "lazy" */
|
|
130
|
-
'./duet-icon.cjs.entry.js')); }).then(processMod, consoleError);
|
|
131
164
|
case 'duet-range-slider.cjs':
|
|
132
165
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
133
166
|
/* webpackMode: "lazy" */
|
|
@@ -172,74 +205,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
172
205
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
173
206
|
/* webpackMode: "lazy" */
|
|
174
207
|
'./duet-tray.cjs.entry.js')); }).then(processMod, consoleError);
|
|
175
|
-
case 'duet-date-picker.cjs':
|
|
176
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
177
|
-
/* webpackMode: "lazy" */
|
|
178
|
-
'./duet-date-picker.cjs.entry.js')); }).then(processMod, consoleError);
|
|
179
|
-
case 'duet-button_2.cjs':
|
|
180
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
181
|
-
/* webpackMode: "lazy" */
|
|
182
|
-
'./duet-button_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
183
|
-
case 'duet-grid_2.cjs':
|
|
184
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
185
|
-
/* webpackMode: "lazy" */
|
|
186
|
-
'./duet-grid_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
187
|
-
case 'duet-header_2.cjs':
|
|
188
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
189
|
-
/* webpackMode: "lazy" */
|
|
190
|
-
'./duet-header_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
191
|
-
case 'duet-radio_2.cjs':
|
|
192
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
193
|
-
/* webpackMode: "lazy" */
|
|
194
|
-
'./duet-radio_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
195
|
-
case 'duet-choice_2.cjs':
|
|
196
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
197
|
-
/* webpackMode: "lazy" */
|
|
198
|
-
'./duet-choice_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
199
|
-
case 'duet-list_2.cjs':
|
|
200
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
201
|
-
/* webpackMode: "lazy" */
|
|
202
|
-
'./duet-list_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
203
|
-
case 'duet-divider_2.cjs':
|
|
204
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
205
|
-
/* webpackMode: "lazy" */
|
|
206
|
-
'./duet-divider_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
207
|
-
case 'duet-input_2.cjs':
|
|
208
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
209
|
-
/* webpackMode: "lazy" */
|
|
210
|
-
'./duet-input_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
211
|
-
case 'duet-step_2.cjs':
|
|
212
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
213
|
-
/* webpackMode: "lazy" */
|
|
214
|
-
'./duet-step_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
215
|
-
case 'duet-pagination_2.cjs':
|
|
216
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
217
|
-
/* webpackMode: "lazy" */
|
|
218
|
-
'./duet-pagination_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
219
|
-
case 'duet-notification_2.cjs':
|
|
220
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
221
|
-
/* webpackMode: "lazy" */
|
|
222
|
-
'./duet-notification_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
223
|
-
case 'duet-editable-table_3.cjs':
|
|
224
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
225
|
-
/* webpackMode: "lazy" */
|
|
226
|
-
'./duet-editable-table_3.cjs.entry.js')); }).then(processMod, consoleError);
|
|
227
|
-
case 'duet-scrollable_3.cjs':
|
|
228
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
229
|
-
/* webpackMode: "lazy" */
|
|
230
|
-
'./duet-scrollable_3.cjs.entry.js')); }).then(processMod, consoleError);
|
|
231
|
-
case 'duet-caption_4.cjs':
|
|
232
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
233
|
-
/* webpackMode: "lazy" */
|
|
234
|
-
'./duet-caption_4.cjs.entry.js')); }).then(processMod, consoleError);
|
|
235
|
-
case 'duet-banner.cjs':
|
|
236
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
237
|
-
/* webpackMode: "lazy" */
|
|
238
|
-
'./duet-banner.cjs.entry.js')); }).then(processMod, consoleError);
|
|
239
|
-
case 'duet-breadcrumb.cjs':
|
|
240
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
241
|
-
/* webpackMode: "lazy" */
|
|
242
|
-
'./duet-breadcrumb.cjs.entry.js')); }).then(processMod, consoleError);
|
|
243
208
|
case 'duet-breadcrumbs.cjs':
|
|
244
209
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
245
210
|
/* webpackMode: "lazy" */
|
|
@@ -248,10 +213,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
248
213
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
249
214
|
/* webpackMode: "lazy" */
|
|
250
215
|
'./duet-callout.cjs.entry.js')); }).then(processMod, consoleError);
|
|
251
|
-
case 'duet-combobox.cjs':
|
|
252
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
253
|
-
/* webpackMode: "lazy" */
|
|
254
|
-
'./duet-combobox.cjs.entry.js')); }).then(processMod, consoleError);
|
|
255
216
|
case 'duet-contact-card.cjs':
|
|
256
217
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
257
218
|
/* webpackMode: "lazy" */
|
|
@@ -300,6 +261,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
300
261
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
301
262
|
/* webpackMode: "lazy" */
|
|
302
263
|
'./duet-page-heading.cjs.entry.js')); }).then(processMod, consoleError);
|
|
264
|
+
case 'duet-panel.cjs':
|
|
265
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
266
|
+
/* webpackMode: "lazy" */
|
|
267
|
+
'./duet-panel.cjs.entry.js')); }).then(processMod, consoleError);
|
|
303
268
|
case 'duet-promo-card.cjs':
|
|
304
269
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
305
270
|
/* webpackMode: "lazy" */
|
|
@@ -308,6 +273,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
308
273
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
309
274
|
/* webpackMode: "lazy" */
|
|
310
275
|
'./duet-shaped-image.cjs.entry.js')); }).then(processMod, consoleError);
|
|
276
|
+
case 'duet-share-chart.cjs':
|
|
277
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
278
|
+
/* webpackMode: "lazy" */
|
|
279
|
+
'./duet-share-chart.cjs.entry.js')); }).then(processMod, consoleError);
|
|
311
280
|
case 'duet-slideout.cjs':
|
|
312
281
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
313
282
|
/* webpackMode: "lazy" */
|
|
@@ -328,10 +297,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
328
297
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
329
298
|
/* webpackMode: "lazy" */
|
|
330
299
|
'./duet-slideout-panel-dropdown.cjs.entry.js')); }).then(processMod, consoleError);
|
|
331
|
-
case 'duet-status-icon.cjs':
|
|
332
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
333
|
-
/* webpackMode: "lazy" */
|
|
334
|
-
'./duet-status-icon.cjs.entry.js')); }).then(processMod, consoleError);
|
|
335
300
|
case 'duet-submenu-bar.cjs':
|
|
336
301
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
337
302
|
/* webpackMode: "lazy" */
|
|
@@ -376,18 +341,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
376
341
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
377
342
|
/* webpackMode: "lazy" */
|
|
378
343
|
'./duet-checkmark.cjs.entry.js')); }).then(processMod, consoleError);
|
|
379
|
-
case 'duet-
|
|
344
|
+
case 'duet-chip.cjs':
|
|
380
345
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
381
346
|
/* webpackMode: "lazy" */
|
|
382
|
-
'./duet-
|
|
383
|
-
case 'duet-upload-aria-status.cjs':
|
|
384
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
385
|
-
/* webpackMode: "lazy" */
|
|
386
|
-
'./duet-upload-aria-status.cjs.entry.js')); }).then(processMod, consoleError);
|
|
387
|
-
case 'duet-upload-item.cjs':
|
|
388
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
389
|
-
/* webpackMode: "lazy" */
|
|
390
|
-
'./duet-upload-item.cjs.entry.js')); }).then(processMod, consoleError);
|
|
347
|
+
'./duet-chip.cjs.entry.js')); }).then(processMod, consoleError);
|
|
391
348
|
case 'duet-show-more.cjs':
|
|
392
349
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
393
350
|
/* webpackMode: "lazy" */
|
|
@@ -400,24 +357,129 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
400
357
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
401
358
|
/* webpackMode: "lazy" */
|
|
402
359
|
'./duet-overlay.cjs.entry.js')); }).then(processMod, consoleError);
|
|
360
|
+
case 'duet-indicator.cjs':
|
|
361
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
362
|
+
/* webpackMode: "lazy" */
|
|
363
|
+
'./duet-indicator.cjs.entry.js')); }).then(processMod, consoleError);
|
|
364
|
+
case 'duet-icon.cjs':
|
|
365
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
366
|
+
/* webpackMode: "lazy" */
|
|
367
|
+
'./duet-icon.cjs.entry.js')); }).then(processMod, consoleError);
|
|
368
|
+
case 'duet-banner.cjs':
|
|
369
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
370
|
+
/* webpackMode: "lazy" */
|
|
371
|
+
'./duet-banner.cjs.entry.js')); }).then(processMod, consoleError);
|
|
372
|
+
case 'duet-combobox.cjs':
|
|
373
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
374
|
+
/* webpackMode: "lazy" */
|
|
375
|
+
'./duet-combobox.cjs.entry.js')); }).then(processMod, consoleError);
|
|
376
|
+
case 'duet-phone-input.cjs':
|
|
377
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
378
|
+
/* webpackMode: "lazy" */
|
|
379
|
+
'./duet-phone-input.cjs.entry.js')); }).then(processMod, consoleError);
|
|
380
|
+
case 'duet-upload-item.cjs':
|
|
381
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
382
|
+
/* webpackMode: "lazy" */
|
|
383
|
+
'./duet-upload-item.cjs.entry.js')); }).then(processMod, consoleError);
|
|
384
|
+
case 'duet-button_2.cjs':
|
|
385
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
386
|
+
/* webpackMode: "lazy" */
|
|
387
|
+
'./duet-button_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
388
|
+
case 'duet-grid_2.cjs':
|
|
389
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
390
|
+
/* webpackMode: "lazy" */
|
|
391
|
+
'./duet-grid_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
392
|
+
case 'duet-radio_2.cjs':
|
|
393
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
394
|
+
/* webpackMode: "lazy" */
|
|
395
|
+
'./duet-radio_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
396
|
+
case 'duet-list_2.cjs':
|
|
397
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
398
|
+
/* webpackMode: "lazy" */
|
|
399
|
+
'./duet-list_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
400
|
+
case 'duet-divider_2.cjs':
|
|
401
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
402
|
+
/* webpackMode: "lazy" */
|
|
403
|
+
'./duet-divider_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
404
|
+
case 'duet-notification_2.cjs':
|
|
405
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
406
|
+
/* webpackMode: "lazy" */
|
|
407
|
+
'./duet-notification_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
408
|
+
case 'duet-breadcrumb.cjs':
|
|
409
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
410
|
+
/* webpackMode: "lazy" */
|
|
411
|
+
'./duet-breadcrumb.cjs.entry.js')); }).then(processMod, consoleError);
|
|
412
|
+
case 'duet-popup-menu_2.cjs':
|
|
413
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
414
|
+
/* webpackMode: "lazy" */
|
|
415
|
+
'./duet-popup-menu_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
403
416
|
case 'duet-tooltip-button_2.cjs':
|
|
404
417
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
405
418
|
/* webpackMode: "lazy" */
|
|
406
419
|
'./duet-tooltip-button_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
420
|
+
case 'duet-card.cjs':
|
|
421
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
422
|
+
/* webpackMode: "lazy" */
|
|
423
|
+
'./duet-card.cjs.entry.js')); }).then(processMod, consoleError);
|
|
424
|
+
case 'duet-pagination_2.cjs':
|
|
425
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
426
|
+
/* webpackMode: "lazy" */
|
|
427
|
+
'./duet-pagination_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
428
|
+
case 'duet-choice_2.cjs':
|
|
429
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
430
|
+
/* webpackMode: "lazy" */
|
|
431
|
+
'./duet-choice_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
432
|
+
case 'duet-input_2.cjs':
|
|
433
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
434
|
+
/* webpackMode: "lazy" */
|
|
435
|
+
'./duet-input_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
436
|
+
case 'duet-scrollable_3.cjs':
|
|
437
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
438
|
+
/* webpackMode: "lazy" */
|
|
439
|
+
'./duet-scrollable_3.cjs.entry.js')); }).then(processMod, consoleError);
|
|
440
|
+
case 'duet-number-input.cjs':
|
|
441
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
442
|
+
/* webpackMode: "lazy" */
|
|
443
|
+
'./duet-number-input.cjs.entry.js')); }).then(processMod, consoleError);
|
|
444
|
+
case 'duet-step_2.cjs':
|
|
445
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
446
|
+
/* webpackMode: "lazy" */
|
|
447
|
+
'./duet-step_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
448
|
+
case 'duet-date-picker.cjs':
|
|
449
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
450
|
+
/* webpackMode: "lazy" */
|
|
451
|
+
'./duet-date-picker.cjs.entry.js')); }).then(processMod, consoleError);
|
|
452
|
+
case 'duet-editable-table_3.cjs':
|
|
453
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
454
|
+
/* webpackMode: "lazy" */
|
|
455
|
+
'./duet-editable-table_3.cjs.entry.js')); }).then(processMod, consoleError);
|
|
456
|
+
case 'duet-caption_4.cjs':
|
|
457
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
458
|
+
/* webpackMode: "lazy" */
|
|
459
|
+
'./duet-caption_4.cjs.entry.js')); }).then(processMod, consoleError);
|
|
460
|
+
case 'duet-header_2.cjs':
|
|
461
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
462
|
+
/* webpackMode: "lazy" */
|
|
463
|
+
'./duet-header_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
407
464
|
}
|
|
408
465
|
}
|
|
409
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
466
|
+
return (function (t) { return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(t)); }); })(
|
|
410
467
|
/* @vite-ignore */
|
|
411
468
|
/* webpackInclude: /\.entry\.js$/ */
|
|
412
469
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
413
470
|
/* webpackMode: "lazy" */
|
|
414
471
|
`./${bundleId}.entry.js${""}`
|
|
415
|
-
)
|
|
416
|
-
{
|
|
417
|
-
|
|
472
|
+
).then(
|
|
473
|
+
(importedModule) => {
|
|
474
|
+
{
|
|
475
|
+
cmpModules.set(bundleId, importedModule);
|
|
476
|
+
}
|
|
477
|
+
return importedModule[exportName];
|
|
478
|
+
},
|
|
479
|
+
(e) => {
|
|
480
|
+
consoleError(e, hostRef.$hostElement$);
|
|
418
481
|
}
|
|
419
|
-
|
|
420
|
-
}, consoleError);
|
|
482
|
+
);
|
|
421
483
|
};
|
|
422
484
|
|
|
423
485
|
// src/client/client-style.ts
|
|
@@ -435,7 +497,6 @@ var HYDRATE_CHILD_ID = "c-id";
|
|
|
435
497
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
436
498
|
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
437
499
|
var win = typeof window !== "undefined" ? window : {};
|
|
438
|
-
var doc = win.document || { head: {} };
|
|
439
500
|
var plt = {
|
|
440
501
|
$flags$: 0,
|
|
441
502
|
$resourcesUrl$: "",
|
|
@@ -446,9 +507,10 @@ var plt = {
|
|
|
446
507
|
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
447
508
|
};
|
|
448
509
|
var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
510
|
+
var _a;
|
|
449
511
|
let supportsListenerOptions2 = false;
|
|
450
512
|
try {
|
|
451
|
-
|
|
513
|
+
(_a = win.document) == null ? void 0 : _a.addEventListener(
|
|
452
514
|
"e",
|
|
453
515
|
null,
|
|
454
516
|
Object.defineProperty({}, "passive", {
|
|
@@ -470,6 +532,7 @@ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
|
470
532
|
}
|
|
471
533
|
return false;
|
|
472
534
|
})() ;
|
|
535
|
+
var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
|
|
473
536
|
var queuePending = false;
|
|
474
537
|
var queueDomReads = [];
|
|
475
538
|
var queueDomWrites = [];
|
|
@@ -506,24 +569,119 @@ var flush = () => {
|
|
|
506
569
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
507
570
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
508
571
|
|
|
509
|
-
// src/utils/constants.ts
|
|
510
|
-
var EMPTY_OBJ = {};
|
|
511
|
-
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
512
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
513
|
-
|
|
514
572
|
// src/utils/helpers.ts
|
|
515
|
-
var isDef = (v) => v != null;
|
|
573
|
+
var isDef = (v) => v != null && v !== void 0;
|
|
516
574
|
var isComplexType = (o) => {
|
|
517
575
|
o = typeof o;
|
|
518
576
|
return o === "object" || o === "function";
|
|
519
577
|
};
|
|
520
578
|
|
|
521
579
|
// src/utils/query-nonce-meta-tag-content.ts
|
|
522
|
-
function queryNonceMetaTagContent(
|
|
580
|
+
function queryNonceMetaTagContent(doc) {
|
|
523
581
|
var _a, _b, _c;
|
|
524
|
-
return (_c = (_b = (_a =
|
|
582
|
+
return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
525
583
|
}
|
|
526
584
|
|
|
585
|
+
// src/utils/regular-expression.ts
|
|
586
|
+
var escapeRegExpSpecialCharacters = (text) => {
|
|
587
|
+
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
588
|
+
};
|
|
589
|
+
|
|
590
|
+
// src/utils/remote-value.ts
|
|
591
|
+
var RemoteValue = class _RemoteValue {
|
|
592
|
+
/**
|
|
593
|
+
* Deserializes a LocalValue serialized object back to its original JavaScript representation
|
|
594
|
+
*
|
|
595
|
+
* @param serialized The serialized LocalValue object
|
|
596
|
+
* @returns The original JavaScript value/object
|
|
597
|
+
*/
|
|
598
|
+
static fromLocalValue(serialized) {
|
|
599
|
+
const type = serialized[TYPE_CONSTANT];
|
|
600
|
+
const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
|
|
601
|
+
switch (type) {
|
|
602
|
+
case "string" /* String */:
|
|
603
|
+
return value;
|
|
604
|
+
case "boolean" /* Boolean */:
|
|
605
|
+
return value;
|
|
606
|
+
case "bigint" /* BigInt */:
|
|
607
|
+
return BigInt(value);
|
|
608
|
+
case "undefined" /* Undefined */:
|
|
609
|
+
return void 0;
|
|
610
|
+
case "null" /* Null */:
|
|
611
|
+
return null;
|
|
612
|
+
case "number" /* Number */:
|
|
613
|
+
if (value === "NaN") return NaN;
|
|
614
|
+
if (value === "-0") return -0;
|
|
615
|
+
if (value === "Infinity") return Infinity;
|
|
616
|
+
if (value === "-Infinity") return -Infinity;
|
|
617
|
+
return value;
|
|
618
|
+
case "array" /* Array */:
|
|
619
|
+
return value.map((item) => _RemoteValue.fromLocalValue(item));
|
|
620
|
+
case "date" /* Date */:
|
|
621
|
+
return new Date(value);
|
|
622
|
+
case "map" /* Map */:
|
|
623
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
624
|
+
for (const [key, val] of value) {
|
|
625
|
+
const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
|
|
626
|
+
const deserializedValue = _RemoteValue.fromLocalValue(val);
|
|
627
|
+
map2.set(deserializedKey, deserializedValue);
|
|
628
|
+
}
|
|
629
|
+
return map2;
|
|
630
|
+
case "object" /* Object */:
|
|
631
|
+
const obj = {};
|
|
632
|
+
for (const [key, val] of value) {
|
|
633
|
+
obj[key] = _RemoteValue.fromLocalValue(val);
|
|
634
|
+
}
|
|
635
|
+
return obj;
|
|
636
|
+
case "regexp" /* RegularExpression */:
|
|
637
|
+
const { pattern, flags } = value;
|
|
638
|
+
return new RegExp(pattern, flags);
|
|
639
|
+
case "set" /* Set */:
|
|
640
|
+
const set = /* @__PURE__ */ new Set();
|
|
641
|
+
for (const item of value) {
|
|
642
|
+
set.add(_RemoteValue.fromLocalValue(item));
|
|
643
|
+
}
|
|
644
|
+
return set;
|
|
645
|
+
case "symbol" /* Symbol */:
|
|
646
|
+
return Symbol(value);
|
|
647
|
+
default:
|
|
648
|
+
throw new Error(`Unsupported type: ${type}`);
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
/**
|
|
652
|
+
* Utility method to deserialize multiple LocalValues at once
|
|
653
|
+
*
|
|
654
|
+
* @param serializedValues Array of serialized LocalValue objects
|
|
655
|
+
* @returns Array of deserialized JavaScript values
|
|
656
|
+
*/
|
|
657
|
+
static fromLocalValueArray(serializedValues) {
|
|
658
|
+
return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* Verifies if the given object matches the structure of a serialized LocalValue
|
|
662
|
+
*
|
|
663
|
+
* @param obj Object to verify
|
|
664
|
+
* @returns boolean indicating if the object has LocalValue structure
|
|
665
|
+
*/
|
|
666
|
+
static isLocalValueObject(obj) {
|
|
667
|
+
if (typeof obj !== "object" || obj === null) {
|
|
668
|
+
return false;
|
|
669
|
+
}
|
|
670
|
+
if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
|
|
671
|
+
return false;
|
|
672
|
+
}
|
|
673
|
+
const type = obj[TYPE_CONSTANT];
|
|
674
|
+
const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
|
|
675
|
+
if (!hasTypeProperty) {
|
|
676
|
+
return false;
|
|
677
|
+
}
|
|
678
|
+
if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
|
|
679
|
+
return obj.hasOwnProperty(VALUE_CONSTANT);
|
|
680
|
+
}
|
|
681
|
+
return true;
|
|
682
|
+
}
|
|
683
|
+
};
|
|
684
|
+
|
|
527
685
|
// src/utils/result.ts
|
|
528
686
|
var result_exports = {};
|
|
529
687
|
__export(result_exports, {
|
|
@@ -572,29 +730,388 @@ var unwrapErr = (result) => {
|
|
|
572
730
|
throw result.value;
|
|
573
731
|
}
|
|
574
732
|
};
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
733
|
+
|
|
734
|
+
// src/utils/serialize.ts
|
|
735
|
+
function deserializeProperty(value) {
|
|
736
|
+
if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
|
|
737
|
+
return value;
|
|
738
|
+
}
|
|
739
|
+
return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
// src/utils/style.ts
|
|
743
|
+
function createStyleSheetIfNeededAndSupported(styles2) {
|
|
744
|
+
return void 0;
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
// src/utils/shadow-root.ts
|
|
748
|
+
var globalStyleSheet;
|
|
749
|
+
function createShadowRoot(cmpMeta) {
|
|
750
|
+
var _a;
|
|
751
|
+
const shadowRoot = this.attachShadow({
|
|
752
|
+
mode: "open",
|
|
753
|
+
delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
|
|
754
|
+
}) ;
|
|
755
|
+
if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
|
|
756
|
+
if (globalStyleSheet) {
|
|
757
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
758
|
+
shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
|
|
759
|
+
} else {
|
|
760
|
+
shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
var updateFallbackSlotVisibility = (elm) => {
|
|
765
|
+
const childNodes = internalCall(elm, "childNodes");
|
|
766
|
+
if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
|
|
767
|
+
getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
|
|
768
|
+
if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
|
|
769
|
+
if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
|
|
770
|
+
slotNode.hidden = true;
|
|
771
|
+
} else {
|
|
772
|
+
slotNode.hidden = false;
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
});
|
|
776
|
+
}
|
|
777
|
+
let i2 = 0;
|
|
778
|
+
for (i2 = 0; i2 < childNodes.length; i2++) {
|
|
779
|
+
const childNode = childNodes[i2];
|
|
780
|
+
if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, "childNodes").length) {
|
|
781
|
+
updateFallbackSlotVisibility(childNode);
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
};
|
|
785
|
+
var getSlottedChildNodes = (childNodes) => {
|
|
786
|
+
const result = [];
|
|
787
|
+
for (let i2 = 0; i2 < childNodes.length; i2++) {
|
|
788
|
+
const slottedNode = childNodes[i2]["s-nr"] || void 0;
|
|
789
|
+
if (slottedNode && slottedNode.isConnected) {
|
|
790
|
+
result.push(slottedNode);
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
return result;
|
|
794
|
+
};
|
|
795
|
+
function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
796
|
+
let i2 = 0;
|
|
797
|
+
let slottedNodes = [];
|
|
798
|
+
let childNode;
|
|
799
|
+
for (; i2 < childNodes.length; i2++) {
|
|
800
|
+
childNode = childNodes[i2];
|
|
801
|
+
if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0)) {
|
|
802
|
+
slottedNodes.push(childNode);
|
|
803
|
+
}
|
|
804
|
+
slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
|
|
805
|
+
}
|
|
806
|
+
return slottedNodes;
|
|
807
|
+
}
|
|
808
|
+
var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
|
|
809
|
+
const childNodes = [];
|
|
810
|
+
if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
|
|
811
|
+
let node = slot;
|
|
812
|
+
while (node = node.nextSibling) {
|
|
813
|
+
if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
|
|
814
|
+
}
|
|
815
|
+
return childNodes;
|
|
816
|
+
};
|
|
817
|
+
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
818
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
819
|
+
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
820
|
+
return true;
|
|
821
|
+
}
|
|
822
|
+
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
823
|
+
return true;
|
|
824
|
+
}
|
|
825
|
+
return false;
|
|
826
|
+
}
|
|
827
|
+
if (nodeToRelocate["s-sn"] === slotName) {
|
|
828
|
+
return true;
|
|
829
|
+
}
|
|
830
|
+
return slotName === "";
|
|
831
|
+
};
|
|
832
|
+
var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
|
|
833
|
+
if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
|
|
834
|
+
return;
|
|
835
|
+
}
|
|
836
|
+
const slottedNodeLocation = document.createTextNode("");
|
|
837
|
+
slottedNodeLocation["s-nr"] = newChild;
|
|
838
|
+
if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
|
|
839
|
+
const parent = slotNode["s-cr"].parentNode;
|
|
840
|
+
const appendMethod = internalCall(parent, "appendChild");
|
|
841
|
+
if (typeof position !== "undefined") {
|
|
842
|
+
slottedNodeLocation["s-oo"] = position;
|
|
843
|
+
const childNodes = internalCall(parent, "childNodes");
|
|
844
|
+
const slotRelocateNodes = [slottedNodeLocation];
|
|
845
|
+
childNodes.forEach((n) => {
|
|
846
|
+
if (n["s-nr"]) slotRelocateNodes.push(n);
|
|
847
|
+
});
|
|
848
|
+
slotRelocateNodes.sort((a, b) => {
|
|
849
|
+
if (!a["s-oo"] || a["s-oo"] < (b["s-oo"] || 0)) return -1;
|
|
850
|
+
else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
|
|
851
|
+
return 0;
|
|
852
|
+
});
|
|
853
|
+
slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
|
|
854
|
+
} else {
|
|
855
|
+
appendMethod.call(parent, slottedNodeLocation);
|
|
856
|
+
}
|
|
857
|
+
newChild["s-ol"] = slottedNodeLocation;
|
|
858
|
+
newChild["s-sh"] = slotNode["s-hn"];
|
|
859
|
+
};
|
|
860
|
+
var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
|
|
861
|
+
function patchSlotNode(node) {
|
|
862
|
+
if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
|
|
863
|
+
const assignedFactory = (elementsOnly) => (function(opts) {
|
|
864
|
+
const toReturn = [];
|
|
865
|
+
const slotName = this["s-sn"];
|
|
866
|
+
if (opts == null ? void 0 : opts.flatten) {
|
|
867
|
+
console.error(`
|
|
868
|
+
Flattening is not supported for Stencil non-shadow slots.
|
|
869
|
+
You can use \`.childNodes\` to nested slot fallback content.
|
|
870
|
+
If you have a particular use case, please open an issue on the Stencil repo.
|
|
871
|
+
`);
|
|
872
|
+
}
|
|
873
|
+
const parent = this["s-cr"].parentElement;
|
|
874
|
+
const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
|
|
875
|
+
slottedNodes.forEach((n) => {
|
|
876
|
+
if (slotName === getSlotName(n)) {
|
|
877
|
+
toReturn.push(n);
|
|
878
|
+
}
|
|
879
|
+
});
|
|
880
|
+
if (elementsOnly) {
|
|
881
|
+
return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
|
|
882
|
+
}
|
|
883
|
+
return toReturn;
|
|
884
|
+
}).bind(node);
|
|
885
|
+
node.assignedElements = assignedFactory(true);
|
|
886
|
+
node.assignedNodes = assignedFactory(false);
|
|
887
|
+
}
|
|
888
|
+
var patchChildSlotNodes = (elm) => {
|
|
889
|
+
class FakeNodeList extends Array {
|
|
890
|
+
item(n) {
|
|
891
|
+
return this[n];
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
patchHostOriginalAccessor("children", elm);
|
|
895
|
+
Object.defineProperty(elm, "children", {
|
|
896
|
+
get() {
|
|
897
|
+
return this.childNodes.filter((n) => n.nodeType === 1);
|
|
898
|
+
}
|
|
899
|
+
});
|
|
900
|
+
Object.defineProperty(elm, "childElementCount", {
|
|
901
|
+
get() {
|
|
902
|
+
return this.children.length;
|
|
903
|
+
}
|
|
904
|
+
});
|
|
905
|
+
patchHostOriginalAccessor("firstChild", elm);
|
|
906
|
+
Object.defineProperty(elm, "firstChild", {
|
|
907
|
+
get() {
|
|
908
|
+
return this.childNodes[0];
|
|
909
|
+
}
|
|
910
|
+
});
|
|
911
|
+
patchHostOriginalAccessor("lastChild", elm);
|
|
912
|
+
Object.defineProperty(elm, "lastChild", {
|
|
913
|
+
get() {
|
|
914
|
+
return this.childNodes[this.childNodes.length - 1];
|
|
915
|
+
}
|
|
916
|
+
});
|
|
917
|
+
patchHostOriginalAccessor("childNodes", elm);
|
|
918
|
+
Object.defineProperty(elm, "childNodes", {
|
|
919
|
+
get() {
|
|
920
|
+
const result = new FakeNodeList();
|
|
921
|
+
result.push(...getSlottedChildNodes(this.__childNodes));
|
|
922
|
+
return result;
|
|
923
|
+
}
|
|
924
|
+
});
|
|
925
|
+
};
|
|
926
|
+
var validElementPatches = ["children", "nextElementSibling", "previousElementSibling"];
|
|
927
|
+
var validNodesPatches = [
|
|
928
|
+
"childNodes",
|
|
929
|
+
"firstChild",
|
|
930
|
+
"lastChild",
|
|
931
|
+
"nextSibling",
|
|
932
|
+
"previousSibling",
|
|
933
|
+
"textContent",
|
|
934
|
+
"parentNode"
|
|
935
|
+
];
|
|
936
|
+
function patchHostOriginalAccessor(accessorName, node) {
|
|
937
|
+
if (!globalThis.Node || !globalThis.Element) {
|
|
938
|
+
return;
|
|
939
|
+
}
|
|
940
|
+
let accessor;
|
|
941
|
+
if (validElementPatches.includes(accessorName)) {
|
|
942
|
+
accessor = Object.getOwnPropertyDescriptor(Element.prototype, accessorName);
|
|
943
|
+
} else if (validNodesPatches.includes(accessorName)) {
|
|
944
|
+
accessor = Object.getOwnPropertyDescriptor(Node.prototype, accessorName);
|
|
945
|
+
}
|
|
946
|
+
if (!accessor) {
|
|
947
|
+
accessor = Object.getOwnPropertyDescriptor(node, accessorName);
|
|
948
|
+
}
|
|
949
|
+
if (accessor) Object.defineProperty(node, "__" + accessorName, accessor);
|
|
950
|
+
}
|
|
951
|
+
function internalCall(node, method) {
|
|
952
|
+
if ("__" + method in node) {
|
|
953
|
+
const toReturn = node["__" + method];
|
|
954
|
+
if (typeof toReturn !== "function") return toReturn;
|
|
955
|
+
return toReturn.bind(node);
|
|
956
|
+
} else {
|
|
957
|
+
if (typeof node[method] !== "function") return node[method];
|
|
958
|
+
return node[method].bind(node);
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
var createTime = (fnName, tagName = "") => {
|
|
962
|
+
{
|
|
963
|
+
return () => {
|
|
964
|
+
return;
|
|
965
|
+
};
|
|
966
|
+
}
|
|
967
|
+
};
|
|
968
|
+
var uniqueTime = (key, measureText) => {
|
|
969
|
+
{
|
|
970
|
+
return () => {
|
|
971
|
+
return;
|
|
972
|
+
};
|
|
973
|
+
}
|
|
974
|
+
};
|
|
975
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
976
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
977
|
+
let style = styles.get(scopeId2);
|
|
978
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
979
|
+
style = style || new CSSStyleSheet();
|
|
980
|
+
if (typeof style === "string") {
|
|
981
|
+
style = cssText;
|
|
982
|
+
} else {
|
|
983
|
+
style.replaceSync(cssText);
|
|
984
|
+
}
|
|
985
|
+
} else {
|
|
986
|
+
style = cssText;
|
|
987
|
+
}
|
|
988
|
+
styles.set(scopeId2, style);
|
|
989
|
+
};
|
|
990
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
991
|
+
var _a;
|
|
992
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
993
|
+
const style = styles.get(scopeId2);
|
|
994
|
+
if (!win.document) {
|
|
995
|
+
return scopeId2;
|
|
996
|
+
}
|
|
997
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
998
|
+
if (style) {
|
|
999
|
+
if (typeof style === "string") {
|
|
1000
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
1001
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
1002
|
+
let styleElm;
|
|
1003
|
+
if (!appliedStyles) {
|
|
1004
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
1005
|
+
}
|
|
1006
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
1007
|
+
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
1008
|
+
styleElm.innerHTML = style;
|
|
1009
|
+
} else {
|
|
1010
|
+
styleElm = win.document.createElement("style");
|
|
1011
|
+
styleElm.innerHTML = style;
|
|
1012
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1013
|
+
if (nonce != null) {
|
|
1014
|
+
styleElm.setAttribute("nonce", nonce);
|
|
1015
|
+
}
|
|
1016
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
1017
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
1018
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
1019
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
1020
|
+
styleContainerNode.insertBefore(
|
|
1021
|
+
styleElm,
|
|
1022
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
1023
|
+
);
|
|
1024
|
+
} else if ("host" in styleContainerNode) {
|
|
1025
|
+
if (supportsConstructableStylesheets) {
|
|
1026
|
+
const stylesheet = new CSSStyleSheet();
|
|
1027
|
+
stylesheet.replaceSync(style);
|
|
1028
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
1029
|
+
styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
|
|
1030
|
+
} else {
|
|
1031
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
1032
|
+
}
|
|
1033
|
+
} else {
|
|
1034
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
1035
|
+
if (existingStyleContainer) {
|
|
1036
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
1037
|
+
} else {
|
|
1038
|
+
styleContainerNode.prepend(styleElm);
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
} else {
|
|
1042
|
+
styleContainerNode.append(styleElm);
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1046
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
1050
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
1051
|
+
}
|
|
1052
|
+
if (appliedStyles) {
|
|
1053
|
+
appliedStyles.add(scopeId2);
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
1057
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
1058
|
+
styleContainerNode.adoptedStyleSheets.push(style);
|
|
1059
|
+
} else {
|
|
1060
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
return scopeId2;
|
|
1065
|
+
};
|
|
1066
|
+
var attachStyles = (hostRef) => {
|
|
1067
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
1068
|
+
const elm = hostRef.$hostElement$;
|
|
1069
|
+
const flags = cmpMeta.$flags$;
|
|
1070
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
1071
|
+
const scopeId2 = addStyle(
|
|
1072
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
1073
|
+
cmpMeta);
|
|
1074
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
1075
|
+
elm["s-sc"] = scopeId2;
|
|
1076
|
+
elm.classList.add(scopeId2 + "-h");
|
|
1077
|
+
}
|
|
1078
|
+
endAttachStyles();
|
|
1079
|
+
};
|
|
1080
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
1081
|
+
var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
|
|
1082
|
+
var hydrateScopedToShadow = () => {
|
|
1083
|
+
if (!win.document) {
|
|
1084
|
+
return;
|
|
1085
|
+
}
|
|
1086
|
+
const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
|
|
1087
|
+
let i2 = 0;
|
|
1088
|
+
for (; i2 < styles2.length; i2++) {
|
|
1089
|
+
registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
|
|
1090
|
+
}
|
|
1091
|
+
};
|
|
1092
|
+
var h = (nodeName, vnodeData, ...children) => {
|
|
1093
|
+
let child = null;
|
|
1094
|
+
let key = null;
|
|
1095
|
+
let slotName = null;
|
|
1096
|
+
let simple = false;
|
|
1097
|
+
let lastSimple = false;
|
|
1098
|
+
const vNodeChildren = [];
|
|
1099
|
+
const walk = (c) => {
|
|
1100
|
+
for (let i2 = 0; i2 < c.length; i2++) {
|
|
1101
|
+
child = c[i2];
|
|
1102
|
+
if (Array.isArray(child)) {
|
|
1103
|
+
walk(child);
|
|
1104
|
+
} else if (child != null && typeof child !== "boolean") {
|
|
1105
|
+
if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
|
|
1106
|
+
child = String(child);
|
|
1107
|
+
}
|
|
1108
|
+
if (simple && lastSimple) {
|
|
1109
|
+
vNodeChildren[vNodeChildren.length - 1].$text$ += child;
|
|
1110
|
+
} else {
|
|
1111
|
+
vNodeChildren.push(simple ? newVNode(null, child) : child);
|
|
1112
|
+
}
|
|
1113
|
+
lastSimple = simple;
|
|
1114
|
+
}
|
|
598
1115
|
}
|
|
599
1116
|
};
|
|
600
1117
|
walk(children);
|
|
@@ -683,1247 +1200,1162 @@ var convertToPrivate = (node) => {
|
|
|
683
1200
|
vnode.$name$ = node.vname;
|
|
684
1201
|
return vnode;
|
|
685
1202
|
};
|
|
686
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
687
|
-
if (oldValue !== newValue) {
|
|
688
|
-
let isProp = isMemberInElement(elm, memberName);
|
|
689
|
-
let ln = memberName.toLowerCase();
|
|
690
|
-
if (memberName === "class") {
|
|
691
|
-
const classList = elm.classList;
|
|
692
|
-
const oldClasses = parseClassList(oldValue);
|
|
693
|
-
const newClasses = parseClassList(newValue);
|
|
694
|
-
if (elm["s-si"] && newClasses.indexOf(elm["s-si"]) < 0) {
|
|
695
|
-
newClasses.push(elm["s-si"]);
|
|
696
|
-
}
|
|
697
|
-
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
698
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
699
|
-
} else if (memberName === "style") {
|
|
700
|
-
{
|
|
701
|
-
for (const prop in oldValue) {
|
|
702
|
-
if (!newValue || newValue[prop] == null) {
|
|
703
|
-
if (prop.includes("-")) {
|
|
704
|
-
elm.style.removeProperty(prop);
|
|
705
|
-
} else {
|
|
706
|
-
elm.style[prop] = "";
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
for (const prop in newValue) {
|
|
712
|
-
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
713
|
-
if (prop.includes("-")) {
|
|
714
|
-
elm.style.setProperty(prop, newValue[prop]);
|
|
715
|
-
} else {
|
|
716
|
-
elm.style[prop] = newValue[prop];
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
}
|
|
720
|
-
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
721
|
-
if (newValue) {
|
|
722
|
-
newValue(elm);
|
|
723
|
-
}
|
|
724
|
-
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
725
|
-
if (memberName[2] === "-") {
|
|
726
|
-
memberName = memberName.slice(3);
|
|
727
|
-
} else if (isMemberInElement(win, ln)) {
|
|
728
|
-
memberName = ln.slice(2);
|
|
729
|
-
} else {
|
|
730
|
-
memberName = ln[2] + memberName.slice(3);
|
|
731
|
-
}
|
|
732
|
-
if (oldValue || newValue) {
|
|
733
|
-
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
734
|
-
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
735
|
-
if (oldValue) {
|
|
736
|
-
plt.rel(elm, memberName, oldValue, capture);
|
|
737
|
-
}
|
|
738
|
-
if (newValue) {
|
|
739
|
-
plt.ael(elm, memberName, newValue, capture);
|
|
740
|
-
}
|
|
741
|
-
}
|
|
742
|
-
} else {
|
|
743
|
-
const isComplex = isComplexType(newValue);
|
|
744
|
-
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
745
|
-
try {
|
|
746
|
-
if (!elm.tagName.includes("-")) {
|
|
747
|
-
const n = newValue == null ? "" : newValue;
|
|
748
|
-
if (memberName === "list") {
|
|
749
|
-
isProp = false;
|
|
750
|
-
} else if (oldValue == null || elm[memberName] != n) {
|
|
751
|
-
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
752
|
-
elm[memberName] = n;
|
|
753
|
-
} else {
|
|
754
|
-
elm.setAttribute(memberName, n);
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
|
-
} else {
|
|
758
|
-
elm[memberName] = newValue;
|
|
759
|
-
}
|
|
760
|
-
} catch (e) {
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
let xlink = false;
|
|
764
|
-
{
|
|
765
|
-
if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
|
|
766
|
-
memberName = ln;
|
|
767
|
-
xlink = true;
|
|
768
|
-
}
|
|
769
|
-
}
|
|
770
|
-
if (newValue == null || newValue === false) {
|
|
771
|
-
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
772
|
-
if (xlink) {
|
|
773
|
-
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
774
|
-
} else {
|
|
775
|
-
elm.removeAttribute(memberName);
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
779
|
-
newValue = newValue === true ? "" : newValue;
|
|
780
|
-
if (xlink) {
|
|
781
|
-
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
782
|
-
} else {
|
|
783
|
-
elm.setAttribute(memberName, newValue);
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
}
|
|
788
|
-
};
|
|
789
|
-
var parseClassListRegex = /\s/;
|
|
790
|
-
var parseClassList=s=>("object"==typeof s&&"baseVal"in s&&(s=s.baseVal),s?s.split(parseClassListRegex):[]);
|
|
791
|
-
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
792
|
-
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
793
1203
|
|
|
794
|
-
// src/runtime/
|
|
795
|
-
var
|
|
796
|
-
|
|
797
|
-
const
|
|
798
|
-
const
|
|
1204
|
+
// src/runtime/client-hydrate.ts
|
|
1205
|
+
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
1206
|
+
var _a, _b, _c;
|
|
1207
|
+
const endHydrate = createTime("hydrateClient", tagName);
|
|
1208
|
+
const shadowRoot = hostElm.shadowRoot;
|
|
1209
|
+
const childRenderNodes = [];
|
|
1210
|
+
const slotNodes = [];
|
|
1211
|
+
const slottedNodes = [];
|
|
1212
|
+
const shadowRootNodes = shadowRoot ? [] : null;
|
|
1213
|
+
const vnode = newVNode(tagName, null);
|
|
1214
|
+
vnode.$elm$ = hostElm;
|
|
1215
|
+
const members = Object.entries(((_a = hostRef.$cmpMeta$) == null ? void 0 : _a.$members$) || {});
|
|
1216
|
+
members.forEach(([memberName, [memberFlags, metaAttributeName]]) => {
|
|
1217
|
+
var _b2;
|
|
1218
|
+
if (!(memberFlags & 31 /* Prop */)) {
|
|
1219
|
+
return;
|
|
1220
|
+
}
|
|
1221
|
+
const attributeName = metaAttributeName || memberName;
|
|
1222
|
+
const attrVal = hostElm.getAttribute(attributeName);
|
|
1223
|
+
if (attrVal !== null) {
|
|
1224
|
+
const attrPropVal = parsePropertyValue(
|
|
1225
|
+
attrVal,
|
|
1226
|
+
memberFlags);
|
|
1227
|
+
(_b2 = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _b2.set(memberName, attrPropVal);
|
|
1228
|
+
}
|
|
1229
|
+
});
|
|
1230
|
+
let scopeId2;
|
|
799
1231
|
{
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
1232
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
1233
|
+
if (cmpMeta && cmpMeta.$flags$ & 10 /* needsScopedEncapsulation */ && hostElm["s-sc"]) {
|
|
1234
|
+
scopeId2 = hostElm["s-sc"];
|
|
1235
|
+
hostElm.classList.add(scopeId2 + "-h");
|
|
1236
|
+
} else if (hostElm["s-sc"]) {
|
|
1237
|
+
delete hostElm["s-sc"];
|
|
804
1238
|
}
|
|
805
1239
|
}
|
|
806
|
-
|
|
807
|
-
|
|
1240
|
+
if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
|
|
1241
|
+
initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
|
|
808
1242
|
}
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
1243
|
+
hostElm[HYDRATE_ID] = hostId;
|
|
1244
|
+
hostElm.removeAttribute(HYDRATE_ID);
|
|
1245
|
+
hostRef.$vnode$ = clientHydrate(
|
|
1246
|
+
vnode,
|
|
1247
|
+
childRenderNodes,
|
|
1248
|
+
slotNodes,
|
|
1249
|
+
shadowRootNodes,
|
|
1250
|
+
hostElm,
|
|
1251
|
+
hostElm,
|
|
1252
|
+
hostId,
|
|
1253
|
+
slottedNodes
|
|
817
1254
|
);
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
831
|
-
let i2 = 0;
|
|
832
|
-
let elm;
|
|
833
|
-
let childNode;
|
|
834
|
-
let oldVNode;
|
|
835
|
-
if (!useNativeShadowDom) {
|
|
836
|
-
checkSlotRelocate = true;
|
|
837
|
-
if (newVNode2.$tag$ === "slot") {
|
|
838
|
-
if (scopeId) {
|
|
839
|
-
parentElm.classList.add(scopeId + "-s");
|
|
1255
|
+
let crIndex = 0;
|
|
1256
|
+
const crLength = childRenderNodes.length;
|
|
1257
|
+
let childRenderNode;
|
|
1258
|
+
for (crIndex; crIndex < crLength; crIndex++) {
|
|
1259
|
+
childRenderNode = childRenderNodes[crIndex];
|
|
1260
|
+
const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
|
|
1261
|
+
const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
|
|
1262
|
+
const node = childRenderNode.$elm$;
|
|
1263
|
+
if (!shadowRoot) {
|
|
1264
|
+
node["s-hn"] = tagName.toUpperCase();
|
|
1265
|
+
if (childRenderNode.$tag$ === "slot") {
|
|
1266
|
+
node["s-cr"] = hostElm["s-cr"];
|
|
840
1267
|
}
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
1 /* isSlotReference */
|
|
850
|
-
);
|
|
851
|
-
}
|
|
852
|
-
}
|
|
853
|
-
if (newVNode2.$text$ !== null) {
|
|
854
|
-
elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
|
|
855
|
-
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
856
|
-
elm = newVNode2.$elm$ = doc.createTextNode("");
|
|
857
|
-
} else {
|
|
858
|
-
if (!isSvgMode) {
|
|
859
|
-
isSvgMode = newVNode2.$tag$ === "svg";
|
|
860
|
-
}
|
|
861
|
-
elm = newVNode2.$elm$ = doc.createElementNS(
|
|
862
|
-
isSvgMode ? SVG_NS : HTML_NS,
|
|
863
|
-
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
864
|
-
) ;
|
|
865
|
-
if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
|
|
866
|
-
isSvgMode = false;
|
|
867
|
-
}
|
|
868
|
-
{
|
|
869
|
-
updateElement(null, newVNode2, isSvgMode);
|
|
870
|
-
}
|
|
871
|
-
const rootNode = elm.getRootNode();
|
|
872
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
873
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
874
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
875
|
-
}
|
|
876
|
-
{
|
|
877
|
-
updateElementScopeIds(elm, parentElm);
|
|
878
|
-
}
|
|
879
|
-
if (newVNode2.$children$) {
|
|
880
|
-
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
881
|
-
childNode = createElm(oldParentVNode, newVNode2, i2, elm);
|
|
882
|
-
if (childNode) {
|
|
883
|
-
elm.appendChild(childNode);
|
|
1268
|
+
} else if (((_b = childRenderNode.$tag$) == null ? void 0 : _b.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
|
|
1269
|
+
const cmpMeta = getHostRef(childRenderNode.$elm$);
|
|
1270
|
+
if (cmpMeta) {
|
|
1271
|
+
const scopeId3 = getScopeId(
|
|
1272
|
+
cmpMeta.$cmpMeta$);
|
|
1273
|
+
const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
|
|
1274
|
+
if (styleSheet) {
|
|
1275
|
+
hostElm.shadowRoot.append(styleSheet.cloneNode(true));
|
|
884
1276
|
}
|
|
885
1277
|
}
|
|
886
1278
|
}
|
|
887
|
-
{
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
elm["s-hn"] = hostTagName;
|
|
896
|
-
{
|
|
897
|
-
if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
|
|
898
|
-
elm["s-sr"] = true;
|
|
899
|
-
elm["s-cr"] = contentRef;
|
|
900
|
-
elm["s-sn"] = newVNode2.$name$ || "";
|
|
901
|
-
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
|
902
|
-
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
903
|
-
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
904
|
-
{
|
|
905
|
-
putBackInOriginalLocation(oldParentVNode.$elm$, false);
|
|
1279
|
+
if (childRenderNode.$tag$ === "slot") {
|
|
1280
|
+
childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
|
|
1281
|
+
if (childRenderNode.$children$) {
|
|
1282
|
+
childRenderNode.$flags$ |= 2 /* isSlotFallback */;
|
|
1283
|
+
if (!childRenderNode.$elm$.childNodes.length) {
|
|
1284
|
+
childRenderNode.$children$.forEach((c) => {
|
|
1285
|
+
childRenderNode.$elm$.appendChild(c.$elm$);
|
|
1286
|
+
});
|
|
906
1287
|
}
|
|
1288
|
+
} else {
|
|
1289
|
+
childRenderNode.$flags$ |= 1 /* isSlotReference */;
|
|
907
1290
|
}
|
|
908
1291
|
}
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
let node = parentElm;
|
|
917
|
-
while (node = node.nextSibling) {
|
|
918
|
-
if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
|
|
919
|
-
oldSlotChildNodes.push(node);
|
|
1292
|
+
if (orgLocationNode && orgLocationNode.isConnected) {
|
|
1293
|
+
if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
|
|
1294
|
+
orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
|
|
1295
|
+
}
|
|
1296
|
+
orgLocationNode.parentNode.removeChild(orgLocationNode);
|
|
1297
|
+
if (!shadowRoot) {
|
|
1298
|
+
node["s-oo"] = parseInt(childRenderNode.$nodeId$);
|
|
920
1299
|
}
|
|
921
1300
|
}
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
const childNode = oldSlotChildNodes[i2];
|
|
925
|
-
if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
|
|
926
|
-
insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
|
|
927
|
-
childNode["s-ol"].remove();
|
|
928
|
-
childNode["s-ol"] = void 0;
|
|
929
|
-
childNode["s-sh"] = void 0;
|
|
930
|
-
checkSlotRelocate = true;
|
|
931
|
-
}
|
|
932
|
-
if (recursive) {
|
|
933
|
-
putBackInOriginalLocation(childNode, recursive);
|
|
1301
|
+
if (orgLocationNode && !orgLocationNode["s-id"]) {
|
|
1302
|
+
plt.$orgLocNodes$.delete(orgLocationId);
|
|
934
1303
|
}
|
|
935
1304
|
}
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
let
|
|
940
|
-
let
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
if (
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
1305
|
+
const hosts = [];
|
|
1306
|
+
const snLen = slottedNodes.length;
|
|
1307
|
+
let snIndex = 0;
|
|
1308
|
+
let slotGroup;
|
|
1309
|
+
let snGroupIdx;
|
|
1310
|
+
let snGroupLen;
|
|
1311
|
+
let slottedItem;
|
|
1312
|
+
for (snIndex; snIndex < snLen; snIndex++) {
|
|
1313
|
+
slotGroup = slottedNodes[snIndex];
|
|
1314
|
+
if (!slotGroup || !slotGroup.length) continue;
|
|
1315
|
+
snGroupLen = slotGroup.length;
|
|
1316
|
+
snGroupIdx = 0;
|
|
1317
|
+
for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
|
|
1318
|
+
slottedItem = slotGroup[snGroupIdx];
|
|
1319
|
+
if (!hosts[slottedItem.hostId]) {
|
|
1320
|
+
hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
|
|
950
1321
|
}
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
{
|
|
962
|
-
checkSlotFallbackVisibility = true;
|
|
963
|
-
if (elm["s-ol"]) {
|
|
964
|
-
elm["s-ol"].remove();
|
|
1322
|
+
if (!hosts[slottedItem.hostId]) continue;
|
|
1323
|
+
const hostEle = hosts[slottedItem.hostId];
|
|
1324
|
+
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
|
1325
|
+
hostEle.appendChild(slottedItem.node);
|
|
1326
|
+
}
|
|
1327
|
+
if (!hostEle.shadowRoot || !shadowRoot) {
|
|
1328
|
+
if (!slottedItem.slot["s-cr"]) {
|
|
1329
|
+
slottedItem.slot["s-cr"] = hostEle["s-cr"];
|
|
1330
|
+
if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
|
|
1331
|
+
slottedItem.slot["s-cr"] = hostEle;
|
|
965
1332
|
} else {
|
|
966
|
-
|
|
1333
|
+
slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
|
|
967
1334
|
}
|
|
968
1335
|
}
|
|
969
|
-
|
|
1336
|
+
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
|
|
1337
|
+
if (((_c = slottedItem.node.parentElement) == null ? void 0 : _c.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
|
|
1338
|
+
slottedItem.node.removeAttribute("slot");
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
if (scopeId2 && slotNodes.length) {
|
|
1344
|
+
slotNodes.forEach((slot) => {
|
|
1345
|
+
slot.$elm$.parentElement.classList.add(scopeId2 + "-s");
|
|
1346
|
+
});
|
|
1347
|
+
}
|
|
1348
|
+
if (shadowRoot) {
|
|
1349
|
+
let rnIdex = 0;
|
|
1350
|
+
const rnLen = shadowRootNodes.length;
|
|
1351
|
+
if (rnLen) {
|
|
1352
|
+
for (rnIdex; rnIdex < rnLen; rnIdex++) {
|
|
1353
|
+
const node = shadowRootNodes[rnIdex];
|
|
1354
|
+
if (node) {
|
|
1355
|
+
shadowRoot.appendChild(node);
|
|
1356
|
+
}
|
|
970
1357
|
}
|
|
1358
|
+
Array.from(hostElm.childNodes).forEach((node) => {
|
|
1359
|
+
if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
|
|
1360
|
+
if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
|
|
1361
|
+
node.removeAttribute("hidden");
|
|
1362
|
+
} else if (node.nodeType === 8 /* CommentNode */ && !node.nodeValue || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
1363
|
+
node.parentNode.removeChild(node);
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
});
|
|
971
1367
|
}
|
|
972
1368
|
}
|
|
1369
|
+
hostRef.$hostElement$ = hostElm;
|
|
1370
|
+
endHydrate();
|
|
973
1371
|
};
|
|
974
|
-
var
|
|
975
|
-
let
|
|
976
|
-
let
|
|
977
|
-
let
|
|
978
|
-
let i2
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
|
|
1024
|
-
if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
|
|
1025
|
-
idxInOld = i2;
|
|
1026
|
-
break;
|
|
1372
|
+
var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
|
|
1373
|
+
let childNodeType;
|
|
1374
|
+
let childIdSplt;
|
|
1375
|
+
let childVNode;
|
|
1376
|
+
let i2;
|
|
1377
|
+
const scopeId2 = hostElm["s-sc"];
|
|
1378
|
+
if (node.nodeType === 1 /* ElementNode */) {
|
|
1379
|
+
childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
|
|
1380
|
+
if (childNodeType) {
|
|
1381
|
+
childIdSplt = childNodeType.split(".");
|
|
1382
|
+
if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
|
|
1383
|
+
childVNode = createSimpleVNode({
|
|
1384
|
+
$flags$: 0,
|
|
1385
|
+
$hostId$: childIdSplt[0],
|
|
1386
|
+
$nodeId$: childIdSplt[1],
|
|
1387
|
+
$depth$: childIdSplt[2],
|
|
1388
|
+
$index$: childIdSplt[3],
|
|
1389
|
+
$tag$: node.tagName.toLowerCase(),
|
|
1390
|
+
$elm$: node,
|
|
1391
|
+
// If we don't add the initial classes to the VNode, the first `vdom-render.ts` patch
|
|
1392
|
+
// won't try to reconcile them. Classes set on the node will be blown away.
|
|
1393
|
+
$attrs$: { class: node.className || "" }
|
|
1394
|
+
});
|
|
1395
|
+
childRenderNodes.push(childVNode);
|
|
1396
|
+
node.removeAttribute(HYDRATE_CHILD_ID);
|
|
1397
|
+
if (!parentVNode.$children$) {
|
|
1398
|
+
parentVNode.$children$ = [];
|
|
1399
|
+
}
|
|
1400
|
+
if (scopeId2 && childIdSplt[0] === hostId) {
|
|
1401
|
+
node["s-si"] = scopeId2;
|
|
1402
|
+
childVNode.$attrs$.class += " " + scopeId2;
|
|
1403
|
+
}
|
|
1404
|
+
const slotName = childVNode.$elm$.getAttribute("s-sn");
|
|
1405
|
+
if (typeof slotName === "string") {
|
|
1406
|
+
if (childVNode.$tag$ === "slot-fb") {
|
|
1407
|
+
addSlot(
|
|
1408
|
+
slotName,
|
|
1409
|
+
childIdSplt[2],
|
|
1410
|
+
childVNode,
|
|
1411
|
+
node,
|
|
1412
|
+
parentVNode,
|
|
1413
|
+
childRenderNodes,
|
|
1414
|
+
slotNodes,
|
|
1415
|
+
shadowRootNodes,
|
|
1416
|
+
slottedNodes
|
|
1417
|
+
);
|
|
1418
|
+
if (scopeId2) {
|
|
1419
|
+
node.classList.add(scopeId2);
|
|
1420
|
+
}
|
|
1027
1421
|
}
|
|
1422
|
+
childVNode.$elm$["s-sn"] = slotName;
|
|
1423
|
+
childVNode.$elm$.removeAttribute("s-sn");
|
|
1028
1424
|
}
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
elmToMove = oldCh[idxInOld];
|
|
1032
|
-
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
1033
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
|
|
1034
|
-
} else {
|
|
1035
|
-
patch(elmToMove, newStartVnode, isInitialRender);
|
|
1036
|
-
oldCh[idxInOld] = void 0;
|
|
1037
|
-
node = elmToMove.$elm$;
|
|
1425
|
+
if (childVNode.$index$ !== void 0) {
|
|
1426
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1038
1427
|
}
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
newStartVnode = newCh[++newStartIdx];
|
|
1043
|
-
}
|
|
1044
|
-
if (node) {
|
|
1045
|
-
{
|
|
1046
|
-
insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
|
|
1428
|
+
parentVNode = childVNode;
|
|
1429
|
+
if (shadowRootNodes && childVNode.$depth$ === "0") {
|
|
1430
|
+
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
1047
1431
|
}
|
|
1048
1432
|
}
|
|
1049
1433
|
}
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
}
|
|
1063
|
-
};
|
|
1064
|
-
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
1065
|
-
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
1066
|
-
if (leftVNode.$tag$ === "slot") {
|
|
1067
|
-
if (
|
|
1068
|
-
// The component gets hydrated and no VDOM has been initialized.
|
|
1069
|
-
// Here the comparison can't happen as $name$ property is not set for `leftNode`.
|
|
1070
|
-
"$nodeId$" in leftVNode && isInitialRender && // `leftNode` is not from type HTMLComment which would cause many
|
|
1071
|
-
// hydration comments to be removed
|
|
1072
|
-
leftVNode.$elm$.nodeType !== 8
|
|
1073
|
-
) {
|
|
1074
|
-
return false;
|
|
1075
|
-
}
|
|
1076
|
-
return leftVNode.$name$ === rightVNode.$name$;
|
|
1077
|
-
}
|
|
1078
|
-
if (!isInitialRender) {
|
|
1079
|
-
return leftVNode.$key$ === rightVNode.$key$;
|
|
1080
|
-
}
|
|
1081
|
-
return true;
|
|
1082
|
-
}
|
|
1083
|
-
return false;
|
|
1084
|
-
};
|
|
1085
|
-
var referenceNode = (node) => {
|
|
1086
|
-
return node && node["s-ol"] || node;
|
|
1087
|
-
};
|
|
1088
|
-
var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
|
|
1089
|
-
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
1090
|
-
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
1091
|
-
const oldChildren = oldVNode.$children$;
|
|
1092
|
-
const newChildren = newVNode2.$children$;
|
|
1093
|
-
const tag = newVNode2.$tag$;
|
|
1094
|
-
const text = newVNode2.$text$;
|
|
1095
|
-
let defaultHolder;
|
|
1096
|
-
if (text === null) {
|
|
1097
|
-
{
|
|
1098
|
-
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
1099
|
-
}
|
|
1100
|
-
{
|
|
1101
|
-
if (tag === "slot" && !useNativeShadowDom) ; else {
|
|
1102
|
-
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
1103
|
-
}
|
|
1104
|
-
}
|
|
1105
|
-
if (oldChildren !== null && newChildren !== null) {
|
|
1106
|
-
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
1107
|
-
} else if (newChildren !== null) {
|
|
1108
|
-
if (oldVNode.$text$ !== null) {
|
|
1109
|
-
elm.textContent = "";
|
|
1434
|
+
if (node.shadowRoot) {
|
|
1435
|
+
for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
|
|
1436
|
+
clientHydrate(
|
|
1437
|
+
parentVNode,
|
|
1438
|
+
childRenderNodes,
|
|
1439
|
+
slotNodes,
|
|
1440
|
+
shadowRootNodes,
|
|
1441
|
+
hostElm,
|
|
1442
|
+
node.shadowRoot.childNodes[i2],
|
|
1443
|
+
hostId,
|
|
1444
|
+
slottedNodes
|
|
1445
|
+
);
|
|
1110
1446
|
}
|
|
1111
|
-
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
1112
|
-
} else if (
|
|
1113
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
1114
|
-
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
1115
|
-
) {
|
|
1116
|
-
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
1117
1447
|
}
|
|
1118
|
-
|
|
1119
|
-
|
|
1448
|
+
const nonShadowNodes = node.__childNodes || node.childNodes;
|
|
1449
|
+
for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
|
|
1450
|
+
clientHydrate(
|
|
1451
|
+
parentVNode,
|
|
1452
|
+
childRenderNodes,
|
|
1453
|
+
slotNodes,
|
|
1454
|
+
shadowRootNodes,
|
|
1455
|
+
hostElm,
|
|
1456
|
+
nonShadowNodes[i2],
|
|
1457
|
+
hostId,
|
|
1458
|
+
slottedNodes
|
|
1459
|
+
);
|
|
1120
1460
|
}
|
|
1121
|
-
} else if (
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1461
|
+
} else if (node.nodeType === 8 /* CommentNode */) {
|
|
1462
|
+
childIdSplt = node.nodeValue.split(".");
|
|
1463
|
+
if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
|
|
1464
|
+
childNodeType = childIdSplt[0];
|
|
1465
|
+
childVNode = createSimpleVNode({
|
|
1466
|
+
$hostId$: childIdSplt[1],
|
|
1467
|
+
$nodeId$: childIdSplt[2],
|
|
1468
|
+
$depth$: childIdSplt[3],
|
|
1469
|
+
$index$: childIdSplt[4] || "0",
|
|
1470
|
+
$elm$: node,
|
|
1471
|
+
$attrs$: null,
|
|
1472
|
+
$children$: null,
|
|
1473
|
+
$key$: null,
|
|
1474
|
+
$name$: null,
|
|
1475
|
+
$tag$: null,
|
|
1476
|
+
$text$: null
|
|
1477
|
+
});
|
|
1478
|
+
if (childNodeType === TEXT_NODE_ID) {
|
|
1479
|
+
childVNode.$elm$ = findCorrespondingNode(node, 3 /* TextNode */);
|
|
1480
|
+
if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
|
|
1481
|
+
childVNode.$text$ = childVNode.$elm$.textContent;
|
|
1482
|
+
childRenderNodes.push(childVNode);
|
|
1483
|
+
node.remove();
|
|
1484
|
+
if (hostId === childVNode.$hostId$) {
|
|
1485
|
+
if (!parentVNode.$children$) {
|
|
1486
|
+
parentVNode.$children$ = [];
|
|
1146
1487
|
}
|
|
1488
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1489
|
+
}
|
|
1490
|
+
if (shadowRootNodes && childVNode.$depth$ === "0") {
|
|
1491
|
+
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
1494
|
+
} else if (childNodeType === COMMENT_NODE_ID) {
|
|
1495
|
+
childVNode.$elm$ = findCorrespondingNode(node, 8 /* CommentNode */);
|
|
1496
|
+
if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
|
|
1497
|
+
childRenderNodes.push(childVNode);
|
|
1498
|
+
node.remove();
|
|
1499
|
+
}
|
|
1500
|
+
} else if (childVNode.$hostId$ === hostId) {
|
|
1501
|
+
if (childNodeType === SLOT_NODE_ID) {
|
|
1502
|
+
const slotName = node["s-sn"] = childIdSplt[5] || "";
|
|
1503
|
+
addSlot(
|
|
1504
|
+
slotName,
|
|
1505
|
+
childIdSplt[2],
|
|
1506
|
+
childVNode,
|
|
1507
|
+
node,
|
|
1508
|
+
parentVNode,
|
|
1509
|
+
childRenderNodes,
|
|
1510
|
+
slotNodes,
|
|
1511
|
+
shadowRootNodes,
|
|
1512
|
+
slottedNodes
|
|
1513
|
+
);
|
|
1514
|
+
} else if (childNodeType === CONTENT_REF_ID) {
|
|
1515
|
+
if (shadowRootNodes) {
|
|
1516
|
+
node.remove();
|
|
1517
|
+
} else {
|
|
1518
|
+
hostElm["s-cr"] = node;
|
|
1519
|
+
node["s-cn"] = true;
|
|
1147
1520
|
}
|
|
1148
1521
|
}
|
|
1149
1522
|
}
|
|
1150
|
-
|
|
1523
|
+
}
|
|
1524
|
+
} else if (parentVNode && parentVNode.$tag$ === "style") {
|
|
1525
|
+
const vnode = newVNode(null, node.textContent);
|
|
1526
|
+
vnode.$elm$ = node;
|
|
1527
|
+
vnode.$index$ = "0";
|
|
1528
|
+
parentVNode.$children$ = [vnode];
|
|
1529
|
+
} else {
|
|
1530
|
+
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim() && !node["s-nr"]) {
|
|
1531
|
+
node.remove();
|
|
1151
1532
|
}
|
|
1152
1533
|
}
|
|
1534
|
+
return parentVNode;
|
|
1153
1535
|
};
|
|
1154
|
-
var
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
if (
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
1165
|
-
node = hostContentNodes[j];
|
|
1166
|
-
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!BUILD.experimentalSlotFixes )) {
|
|
1167
|
-
if (isNodeLocatedInSlot(node, slotName)) {
|
|
1168
|
-
let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
1169
|
-
checkSlotFallbackVisibility = true;
|
|
1170
|
-
node["s-sn"] = node["s-sn"] || slotName;
|
|
1171
|
-
if (relocateNodeData) {
|
|
1172
|
-
relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
|
|
1173
|
-
relocateNodeData.$slotRefNode$ = childNode;
|
|
1174
|
-
} else {
|
|
1175
|
-
node["s-sh"] = childNode["s-hn"];
|
|
1176
|
-
relocateNodes.push({
|
|
1177
|
-
$slotRefNode$: childNode,
|
|
1178
|
-
$nodeToRelocate$: node
|
|
1179
|
-
});
|
|
1180
|
-
}
|
|
1181
|
-
if (node["s-sr"]) {
|
|
1182
|
-
relocateNodes.map((relocateNode) => {
|
|
1183
|
-
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
|
|
1184
|
-
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
1185
|
-
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
|
1186
|
-
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
|
1187
|
-
}
|
|
1188
|
-
}
|
|
1189
|
-
});
|
|
1190
|
-
}
|
|
1191
|
-
} else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
|
|
1192
|
-
relocateNodes.push({
|
|
1193
|
-
$nodeToRelocate$: node
|
|
1194
|
-
});
|
|
1195
|
-
}
|
|
1196
|
-
}
|
|
1536
|
+
var initializeDocumentHydrate = (node, orgLocNodes) => {
|
|
1537
|
+
if (node.nodeType === 1 /* ElementNode */) {
|
|
1538
|
+
const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
|
|
1539
|
+
if (componentId) {
|
|
1540
|
+
orgLocNodes.set(componentId, node);
|
|
1541
|
+
}
|
|
1542
|
+
let i2 = 0;
|
|
1543
|
+
if (node.shadowRoot) {
|
|
1544
|
+
for (; i2 < node.shadowRoot.childNodes.length; i2++) {
|
|
1545
|
+
initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
|
|
1197
1546
|
}
|
|
1198
1547
|
}
|
|
1199
|
-
|
|
1200
|
-
|
|
1548
|
+
const nonShadowNodes = node.__childNodes || node.childNodes;
|
|
1549
|
+
for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
|
|
1550
|
+
initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
|
|
1551
|
+
}
|
|
1552
|
+
} else if (node.nodeType === 8 /* CommentNode */) {
|
|
1553
|
+
const childIdSplt = node.nodeValue.split(".");
|
|
1554
|
+
if (childIdSplt[0] === ORG_LOCATION_ID) {
|
|
1555
|
+
orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
|
|
1556
|
+
node.nodeValue = "";
|
|
1557
|
+
node["s-en"] = childIdSplt[3];
|
|
1201
1558
|
}
|
|
1202
1559
|
}
|
|
1203
1560
|
};
|
|
1204
|
-
var
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1561
|
+
var createSimpleVNode = (vnode) => {
|
|
1562
|
+
const defaultVNode = {
|
|
1563
|
+
$flags$: 0,
|
|
1564
|
+
$hostId$: null,
|
|
1565
|
+
$nodeId$: null,
|
|
1566
|
+
$depth$: null,
|
|
1567
|
+
$index$: "0",
|
|
1568
|
+
$elm$: null,
|
|
1569
|
+
$attrs$: null,
|
|
1570
|
+
$children$: null,
|
|
1571
|
+
$key$: null,
|
|
1572
|
+
$name$: null,
|
|
1573
|
+
$tag$: null,
|
|
1574
|
+
$text$: null
|
|
1575
|
+
};
|
|
1576
|
+
return { ...defaultVNode, ...vnode };
|
|
1577
|
+
};
|
|
1578
|
+
function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
|
|
1579
|
+
node["s-sr"] = true;
|
|
1580
|
+
childVNode.$name$ = slotName || null;
|
|
1581
|
+
childVNode.$tag$ = "slot";
|
|
1582
|
+
const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
|
|
1583
|
+
if (shadowRootNodes && win.document) {
|
|
1584
|
+
const slot = childVNode.$elm$ = win.document.createElement(childVNode.$tag$);
|
|
1585
|
+
if (childVNode.$name$) {
|
|
1586
|
+
childVNode.$elm$.setAttribute("name", slotName);
|
|
1208
1587
|
}
|
|
1209
|
-
if (
|
|
1210
|
-
|
|
1588
|
+
if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {
|
|
1589
|
+
internalCall(parentVNode.$elm$, "insertBefore")(slot, internalCall(parentVNode.$elm$, "children")[0]);
|
|
1590
|
+
} else {
|
|
1591
|
+
internalCall(internalCall(node, "parentNode"), "insertBefore")(slot, node);
|
|
1592
|
+
}
|
|
1593
|
+
addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
|
|
1594
|
+
node.remove();
|
|
1595
|
+
if (childVNode.$depth$ === "0") {
|
|
1596
|
+
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
1597
|
+
}
|
|
1598
|
+
} else {
|
|
1599
|
+
const slot = childVNode.$elm$;
|
|
1600
|
+
const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
|
|
1601
|
+
addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
|
|
1602
|
+
patchSlotNode(node);
|
|
1603
|
+
if (shouldMove) {
|
|
1604
|
+
parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
|
|
1211
1605
|
}
|
|
1212
|
-
return false;
|
|
1213
|
-
}
|
|
1214
|
-
if (nodeToRelocate["s-sn"] === slotName) {
|
|
1215
|
-
return true;
|
|
1216
1606
|
}
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
1222
|
-
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
1607
|
+
childRenderNodes.push(childVNode);
|
|
1608
|
+
slotNodes.push(childVNode);
|
|
1609
|
+
if (!parentVNode.$children$) {
|
|
1610
|
+
parentVNode.$children$ = [];
|
|
1223
1611
|
}
|
|
1612
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1613
|
+
}
|
|
1614
|
+
var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
|
|
1615
|
+
var _a, _b;
|
|
1616
|
+
let slottedNode = slotNode.nextSibling;
|
|
1617
|
+
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
|
1618
|
+
if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
|
|
1619
|
+
do {
|
|
1620
|
+
if (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (!slottedNode["getAttribute"] || !slottedNode.getAttribute("slot")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
|
|
1621
|
+
slottedNode["s-sn"] = slotName;
|
|
1622
|
+
slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
|
|
1623
|
+
}
|
|
1624
|
+
slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
|
|
1625
|
+
} while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
|
|
1626
|
+
};
|
|
1627
|
+
var findCorrespondingNode = (node, type) => {
|
|
1628
|
+
let sibling = node;
|
|
1629
|
+
do {
|
|
1630
|
+
sibling = sibling.nextSibling;
|
|
1631
|
+
} while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
|
|
1632
|
+
return sibling;
|
|
1633
|
+
};
|
|
1634
|
+
var createSupportsRuleRe = (selector) => {
|
|
1635
|
+
const safeSelector2 = escapeRegExpSpecialCharacters(selector);
|
|
1636
|
+
return new RegExp(
|
|
1637
|
+
// First capture group: match any context before the selector that's not inside @supports selector()
|
|
1638
|
+
// Using negative lookahead to avoid matching inside @supports selector(...) condition
|
|
1639
|
+
`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
|
|
1640
|
+
"g"
|
|
1641
|
+
);
|
|
1224
1642
|
};
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
var findScopeIds = (element) => {
|
|
1233
|
-
const scopeIds = [];
|
|
1234
|
-
if (element) {
|
|
1235
|
-
scopeIds.push(
|
|
1236
|
-
...element["s-scs"] || [],
|
|
1237
|
-
element["s-si"],
|
|
1238
|
-
element["s-sc"],
|
|
1239
|
-
...findScopeIds(element.parentElement)
|
|
1240
|
-
);
|
|
1643
|
+
createSupportsRuleRe("::slotted");
|
|
1644
|
+
createSupportsRuleRe(":host");
|
|
1645
|
+
createSupportsRuleRe(":host-context");
|
|
1646
|
+
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
1647
|
+
if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
|
|
1648
|
+
propValue = deserializeProperty(propValue);
|
|
1649
|
+
return propValue;
|
|
1241
1650
|
}
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
if (element && parent && element.nodeType === 1 /* ElementNode */) {
|
|
1247
|
-
const scopeIds = new Set(findScopeIds(parent).filter(Boolean));
|
|
1248
|
-
if (scopeIds.size) {
|
|
1249
|
-
(_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = Array.from(scopeIds));
|
|
1250
|
-
if (element["s-ol"] || iterateChildNodes) {
|
|
1251
|
-
for (const childNode of Array.from(element.__childNodes || element.childNodes)) {
|
|
1252
|
-
updateElementScopeIds(childNode, element, true);
|
|
1253
|
-
}
|
|
1254
|
-
}
|
|
1651
|
+
if (typeof propValue === "string" && (propType & 16 /* Unknown */ || propType & 8 /* Any */) && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
|
|
1652
|
+
try {
|
|
1653
|
+
return JSON.parse(propValue);
|
|
1654
|
+
} catch (e) {
|
|
1255
1655
|
}
|
|
1256
1656
|
}
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
1262
|
-
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
1263
|
-
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
1264
|
-
hostTagName = hostElm.tagName;
|
|
1265
|
-
if (cmpMeta.$attrsToReflect$) {
|
|
1266
|
-
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
1267
|
-
cmpMeta.$attrsToReflect$.map(
|
|
1268
|
-
([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]
|
|
1269
|
-
);
|
|
1270
|
-
}
|
|
1271
|
-
if (isInitialLoad && rootVnode.$attrs$) {
|
|
1272
|
-
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
1273
|
-
if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
|
|
1274
|
-
rootVnode.$attrs$[key] = hostElm[key];
|
|
1657
|
+
if (propValue != null && !isComplexType(propValue)) {
|
|
1658
|
+
if (propType & 4 /* Boolean */) {
|
|
1659
|
+
{
|
|
1660
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
1275
1661
|
}
|
|
1276
1662
|
}
|
|
1663
|
+
if (propType & 2 /* Number */) {
|
|
1664
|
+
return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
|
|
1665
|
+
}
|
|
1666
|
+
if (propType & 1 /* String */) {
|
|
1667
|
+
return String(propValue);
|
|
1668
|
+
}
|
|
1669
|
+
return propValue;
|
|
1277
1670
|
}
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1671
|
+
return propValue;
|
|
1672
|
+
};
|
|
1673
|
+
var getElement = (ref) => {
|
|
1674
|
+
var _a;
|
|
1675
|
+
return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
|
|
1676
|
+
};
|
|
1677
|
+
|
|
1678
|
+
// src/runtime/event-emitter.ts
|
|
1679
|
+
var createEvent = (ref, name, flags) => {
|
|
1680
|
+
const elm = getElement(ref);
|
|
1681
|
+
return {
|
|
1682
|
+
emit: (detail) => {
|
|
1683
|
+
return emitEvent(elm, name, {
|
|
1684
|
+
bubbles: !!(flags & 4 /* Bubbles */),
|
|
1685
|
+
composed: !!(flags & 2 /* Composed */),
|
|
1686
|
+
cancelable: !!(flags & 1 /* Cancellable */),
|
|
1687
|
+
detail
|
|
1688
|
+
});
|
|
1689
|
+
}
|
|
1690
|
+
};
|
|
1691
|
+
};
|
|
1692
|
+
var emitEvent = (elm, name, opts) => {
|
|
1693
|
+
const ev = plt.ce(name, opts);
|
|
1694
|
+
elm.dispatchEvent(ev);
|
|
1695
|
+
return ev;
|
|
1696
|
+
};
|
|
1697
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
1698
|
+
if (oldValue === newValue) {
|
|
1699
|
+
return;
|
|
1289
1700
|
}
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1701
|
+
let isProp = isMemberInElement(elm, memberName);
|
|
1702
|
+
let ln = memberName.toLowerCase();
|
|
1703
|
+
if (memberName === "class") {
|
|
1704
|
+
const classList = elm.classList;
|
|
1705
|
+
const oldClasses = parseClassList(oldValue);
|
|
1706
|
+
let newClasses = parseClassList(newValue);
|
|
1707
|
+
if ((elm["s-si"] || elm["s-sc"]) && initialRender) {
|
|
1708
|
+
const scopeId2 = elm["s-sc"] || elm["s-si"];
|
|
1709
|
+
newClasses.push(scopeId2);
|
|
1710
|
+
oldClasses.forEach((c) => {
|
|
1711
|
+
if (c.startsWith(scopeId2)) newClasses.push(c);
|
|
1712
|
+
});
|
|
1713
|
+
newClasses = [...new Set(newClasses)].filter((c) => c);
|
|
1714
|
+
classList.add(...newClasses);
|
|
1715
|
+
} else {
|
|
1716
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
1717
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
1718
|
+
}
|
|
1719
|
+
} else if (memberName === "style") {
|
|
1720
|
+
{
|
|
1721
|
+
for (const prop in oldValue) {
|
|
1722
|
+
if (!newValue || newValue[prop] == null) {
|
|
1723
|
+
if (prop.includes("-")) {
|
|
1724
|
+
elm.style.removeProperty(prop);
|
|
1725
|
+
} else {
|
|
1726
|
+
elm.style[prop] = "";
|
|
1727
|
+
}
|
|
1301
1728
|
}
|
|
1302
1729
|
}
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
if (
|
|
1307
|
-
|
|
1308
|
-
let insertBeforeNode = slotRefNode.nextSibling;
|
|
1309
|
-
{
|
|
1310
|
-
let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
|
|
1311
|
-
while (orgLocationNode) {
|
|
1312
|
-
let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
|
|
1313
|
-
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
|
|
1314
|
-
refNode = refNode.nextSibling;
|
|
1315
|
-
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
|
1316
|
-
refNode = refNode == null ? void 0 : refNode.nextSibling;
|
|
1317
|
-
}
|
|
1318
|
-
if (!refNode || !refNode["s-nr"]) {
|
|
1319
|
-
insertBeforeNode = refNode;
|
|
1320
|
-
break;
|
|
1321
|
-
}
|
|
1322
|
-
}
|
|
1323
|
-
orgLocationNode = orgLocationNode.previousSibling;
|
|
1324
|
-
}
|
|
1325
|
-
}
|
|
1326
|
-
if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
1327
|
-
if (nodeToRelocate !== insertBeforeNode) {
|
|
1328
|
-
if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
|
|
1329
|
-
nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
|
|
1330
|
-
}
|
|
1331
|
-
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
|
|
1332
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1333
|
-
nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
|
|
1334
|
-
}
|
|
1335
|
-
}
|
|
1336
|
-
}
|
|
1337
|
-
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](nodeToRelocate);
|
|
1730
|
+
}
|
|
1731
|
+
for (const prop in newValue) {
|
|
1732
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
1733
|
+
if (prop.includes("-")) {
|
|
1734
|
+
elm.style.setProperty(prop, newValue[prop]);
|
|
1338
1735
|
} else {
|
|
1339
|
-
|
|
1340
|
-
if (isInitialLoad) {
|
|
1341
|
-
nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
|
|
1342
|
-
}
|
|
1343
|
-
nodeToRelocate.hidden = true;
|
|
1344
|
-
}
|
|
1736
|
+
elm.style[prop] = newValue[prop];
|
|
1345
1737
|
}
|
|
1346
1738
|
}
|
|
1347
1739
|
}
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
1352
|
-
relocateNodes.length = 0;
|
|
1353
|
-
}
|
|
1354
|
-
contentRef = void 0;
|
|
1355
|
-
};
|
|
1356
|
-
var patchChildSlotNodes = (elm) => {
|
|
1357
|
-
class FakeNodeList extends Array {
|
|
1358
|
-
item(n) {
|
|
1359
|
-
return this[n];
|
|
1360
|
-
}
|
|
1361
|
-
}
|
|
1362
|
-
let childNodesFn = globalThis.Node && Object.getOwnPropertyDescriptor(Node.prototype, "childNodes");
|
|
1363
|
-
if (!childNodesFn) {
|
|
1364
|
-
childNodesFn = Object.getOwnPropertyDescriptor(elm, "childNodes");
|
|
1365
|
-
}
|
|
1366
|
-
if (childNodesFn) Object.defineProperty(elm, "__childNodes", childNodesFn);
|
|
1367
|
-
let childrenFn = Object.getOwnPropertyDescriptor(Element.prototype, "children");
|
|
1368
|
-
if (!childrenFn) {
|
|
1369
|
-
childrenFn = Object.getOwnPropertyDescriptor(elm, "children");
|
|
1370
|
-
}
|
|
1371
|
-
if (childrenFn) Object.defineProperty(elm, "__children", childrenFn);
|
|
1372
|
-
Object.defineProperty(elm, "children", {
|
|
1373
|
-
get() {
|
|
1374
|
-
return this.childNodes.filter((n) => n.nodeType === 1);
|
|
1740
|
+
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
1741
|
+
if (newValue) {
|
|
1742
|
+
newValue(elm);
|
|
1375
1743
|
}
|
|
1376
|
-
})
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1744
|
+
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
1745
|
+
if (memberName[2] === "-") {
|
|
1746
|
+
memberName = memberName.slice(3);
|
|
1747
|
+
} else if (isMemberInElement(win, ln)) {
|
|
1748
|
+
memberName = ln.slice(2);
|
|
1749
|
+
} else {
|
|
1750
|
+
memberName = ln[2] + memberName.slice(3);
|
|
1380
1751
|
}
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
result.push(...nodes);
|
|
1390
|
-
return result;
|
|
1752
|
+
if (oldValue || newValue) {
|
|
1753
|
+
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
1754
|
+
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
1755
|
+
if (oldValue) {
|
|
1756
|
+
plt.rel(elm, memberName, oldValue, capture);
|
|
1757
|
+
}
|
|
1758
|
+
if (newValue) {
|
|
1759
|
+
plt.ael(elm, memberName, newValue, capture);
|
|
1391
1760
|
}
|
|
1392
|
-
return FakeNodeList.from(this.__childNodes);
|
|
1393
1761
|
}
|
|
1394
|
-
});
|
|
1395
|
-
};
|
|
1396
|
-
var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
|
|
1397
|
-
let slottedNodeLocation;
|
|
1398
|
-
if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
|
|
1399
|
-
slottedNodeLocation = newChild["s-ol"];
|
|
1400
1762
|
} else {
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1763
|
+
const isComplex = isComplexType(newValue);
|
|
1764
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
1765
|
+
try {
|
|
1766
|
+
if (!elm.tagName.includes("-")) {
|
|
1767
|
+
const n = newValue == null ? "" : newValue;
|
|
1768
|
+
if (memberName === "list") {
|
|
1769
|
+
isProp = false;
|
|
1770
|
+
} else if (oldValue == null || elm[memberName] != n) {
|
|
1771
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
1772
|
+
elm[memberName] = n;
|
|
1773
|
+
} else {
|
|
1774
|
+
elm.setAttribute(memberName, n);
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1777
|
+
} else if (elm[memberName] !== newValue) {
|
|
1778
|
+
elm[memberName] = newValue;
|
|
1779
|
+
}
|
|
1780
|
+
} catch (e) {
|
|
1781
|
+
}
|
|
1782
|
+
}
|
|
1783
|
+
let xlink = false;
|
|
1408
1784
|
{
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
if (n["s-nr"]) slotRelocateNodes.push(n);
|
|
1414
|
-
});
|
|
1415
|
-
slotRelocateNodes.sort((a, b) => {
|
|
1416
|
-
if (!a["s-oo"] || a["s-oo"] < b["s-oo"]) return -1;
|
|
1417
|
-
else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
|
|
1418
|
-
return 0;
|
|
1419
|
-
});
|
|
1420
|
-
slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
|
|
1785
|
+
if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
|
|
1786
|
+
memberName = ln;
|
|
1787
|
+
xlink = true;
|
|
1788
|
+
}
|
|
1421
1789
|
}
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1790
|
+
if (newValue == null || newValue === false) {
|
|
1791
|
+
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
1792
|
+
if (xlink) {
|
|
1793
|
+
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
1794
|
+
} else {
|
|
1795
|
+
elm.removeAttribute(memberName);
|
|
1796
|
+
}
|
|
1797
|
+
}
|
|
1798
|
+
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
|
|
1799
|
+
newValue = newValue === true ? "" : newValue;
|
|
1800
|
+
if (xlink) {
|
|
1801
|
+
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
1802
|
+
} else {
|
|
1803
|
+
elm.setAttribute(memberName, newValue);
|
|
1804
|
+
}
|
|
1434
1805
|
}
|
|
1435
1806
|
}
|
|
1436
|
-
return result;
|
|
1437
1807
|
};
|
|
1438
|
-
var
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
};
|
|
1808
|
+
var parseClassListRegex = /\s/;
|
|
1809
|
+
var parseClassList = (value) => {
|
|
1810
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
|
1811
|
+
value = value.baseVal;
|
|
1443
1812
|
}
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
{
|
|
1447
|
-
return () => {
|
|
1448
|
-
return;
|
|
1449
|
-
};
|
|
1813
|
+
if (!value || typeof value !== "string") {
|
|
1814
|
+
return [];
|
|
1450
1815
|
}
|
|
1816
|
+
return value.split(parseClassListRegex);
|
|
1451
1817
|
};
|
|
1818
|
+
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
1819
|
+
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
1452
1820
|
|
|
1453
|
-
// src/runtime/
|
|
1454
|
-
var
|
|
1455
|
-
const
|
|
1456
|
-
const
|
|
1457
|
-
const
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1821
|
+
// src/runtime/vdom/update-element.ts
|
|
1822
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
1823
|
+
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
1824
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
1825
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
1826
|
+
{
|
|
1827
|
+
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
1828
|
+
if (!(memberName in newVnodeAttrs)) {
|
|
1829
|
+
setAccessor(
|
|
1830
|
+
elm,
|
|
1831
|
+
memberName,
|
|
1832
|
+
oldVnodeAttrs[memberName],
|
|
1833
|
+
void 0,
|
|
1834
|
+
isSvgMode2,
|
|
1835
|
+
newVnode.$flags$,
|
|
1836
|
+
isInitialRender
|
|
1837
|
+
);
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1465
1840
|
}
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1841
|
+
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
1842
|
+
setAccessor(
|
|
1843
|
+
elm,
|
|
1844
|
+
memberName,
|
|
1845
|
+
oldVnodeAttrs[memberName],
|
|
1846
|
+
newVnodeAttrs[memberName],
|
|
1847
|
+
isSvgMode2,
|
|
1848
|
+
newVnode.$flags$,
|
|
1849
|
+
isInitialRender
|
|
1850
|
+
);
|
|
1851
|
+
}
|
|
1852
|
+
};
|
|
1853
|
+
function sortedAttrNames(attrNames) {
|
|
1854
|
+
return attrNames.includes("ref") ? (
|
|
1855
|
+
// we need to sort these to ensure that `'ref'` is the last attr
|
|
1856
|
+
[...attrNames.filter((attr) => attr !== "ref"), "ref"]
|
|
1857
|
+
) : (
|
|
1858
|
+
// no need to sort, return the original array
|
|
1859
|
+
attrNames
|
|
1477
1860
|
);
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
// src/runtime/vdom/vdom-render.ts
|
|
1864
|
+
var scopeId;
|
|
1865
|
+
var contentRef;
|
|
1866
|
+
var hostTagName;
|
|
1867
|
+
var useNativeShadowDom = false;
|
|
1868
|
+
var checkSlotFallbackVisibility = false;
|
|
1869
|
+
var checkSlotRelocate = false;
|
|
1870
|
+
var isSvgMode = false;
|
|
1871
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
1872
|
+
var _a;
|
|
1873
|
+
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
1874
|
+
let i2 = 0;
|
|
1875
|
+
let elm;
|
|
1876
|
+
let childNode;
|
|
1877
|
+
let oldVNode;
|
|
1878
|
+
if (!useNativeShadowDom) {
|
|
1879
|
+
checkSlotRelocate = true;
|
|
1880
|
+
if (newVNode2.$tag$ === "slot") {
|
|
1881
|
+
newVNode2.$flags$ |= newVNode2.$children$ ? (
|
|
1882
|
+
// slot element has fallback content
|
|
1883
|
+
// still create an element that "mocks" the slot element
|
|
1884
|
+
2 /* isSlotFallback */
|
|
1885
|
+
) : (
|
|
1886
|
+
// slot element does not have fallback content
|
|
1887
|
+
// create an html comment we'll use to always reference
|
|
1888
|
+
// where actual slot content should sit next to
|
|
1889
|
+
1 /* isSlotReference */
|
|
1890
|
+
);
|
|
1491
1891
|
}
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1892
|
+
}
|
|
1893
|
+
if (newVNode2.$text$ !== null) {
|
|
1894
|
+
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
1895
|
+
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
1896
|
+
elm = newVNode2.$elm$ = win.document.createTextNode("");
|
|
1897
|
+
{
|
|
1898
|
+
updateElement(null, newVNode2, isSvgMode);
|
|
1899
|
+
}
|
|
1900
|
+
} else {
|
|
1901
|
+
if (!isSvgMode) {
|
|
1902
|
+
isSvgMode = newVNode2.$tag$ === "svg";
|
|
1903
|
+
}
|
|
1904
|
+
if (!win.document) {
|
|
1905
|
+
throw new Error(
|
|
1906
|
+
"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
|
|
1907
|
+
);
|
|
1908
|
+
}
|
|
1909
|
+
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
1910
|
+
isSvgMode ? SVG_NS : HTML_NS,
|
|
1911
|
+
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
1912
|
+
) ;
|
|
1913
|
+
if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
|
|
1914
|
+
isSvgMode = false;
|
|
1915
|
+
}
|
|
1916
|
+
{
|
|
1917
|
+
updateElement(null, newVNode2, isSvgMode);
|
|
1918
|
+
}
|
|
1919
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
1920
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
1921
|
+
}
|
|
1922
|
+
if (newVNode2.$children$) {
|
|
1923
|
+
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
1924
|
+
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
1925
|
+
if (childNode) {
|
|
1926
|
+
elm.appendChild(childNode);
|
|
1927
|
+
}
|
|
1495
1928
|
}
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1929
|
+
}
|
|
1930
|
+
{
|
|
1931
|
+
if (newVNode2.$tag$ === "svg") {
|
|
1932
|
+
isSvgMode = false;
|
|
1933
|
+
} else if (elm.tagName === "foreignObject") {
|
|
1934
|
+
isSvgMode = true;
|
|
1499
1935
|
}
|
|
1500
1936
|
}
|
|
1501
|
-
plt.$orgLocNodes$.delete(orgLocationId);
|
|
1502
1937
|
}
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
|
|
1516
|
-
slottedItem = slotGroup[snGroupIdx];
|
|
1517
|
-
if (!hosts[slottedItem.hostId]) {
|
|
1518
|
-
hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
|
|
1519
|
-
}
|
|
1520
|
-
if (!hosts[slottedItem.hostId]) continue;
|
|
1521
|
-
const hostEle = hosts[slottedItem.hostId];
|
|
1522
|
-
if (!hostEle.shadowRoot || !shadowRoot) {
|
|
1523
|
-
slottedItem.slot["s-cr"] = hostEle["s-cr"];
|
|
1524
|
-
if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
|
|
1525
|
-
slottedItem.slot["s-cr"] = hostEle;
|
|
1526
|
-
} else {
|
|
1527
|
-
const hostChildren = hostEle.__childNodes || hostEle.childNodes;
|
|
1528
|
-
slottedItem.slot["s-cr"] = hostChildren[0];
|
|
1938
|
+
elm["s-hn"] = hostTagName;
|
|
1939
|
+
{
|
|
1940
|
+
if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
|
|
1941
|
+
elm["s-sr"] = true;
|
|
1942
|
+
elm["s-cr"] = contentRef;
|
|
1943
|
+
elm["s-sn"] = newVNode2.$name$ || "";
|
|
1944
|
+
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
|
1945
|
+
patchSlotNode(elm);
|
|
1946
|
+
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
1947
|
+
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
1948
|
+
{
|
|
1949
|
+
putBackInOriginalLocation(oldParentVNode.$elm$, false);
|
|
1529
1950
|
}
|
|
1530
|
-
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
|
|
1531
1951
|
}
|
|
1532
|
-
|
|
1533
|
-
|
|
1952
|
+
{
|
|
1953
|
+
addRemoveSlotScopedClass(contentRef, elm, newParentVNode.$elm$, oldParentVNode == null ? void 0 : oldParentVNode.$elm$);
|
|
1534
1954
|
}
|
|
1535
1955
|
}
|
|
1536
1956
|
}
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1957
|
+
return elm;
|
|
1958
|
+
};
|
|
1959
|
+
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
1960
|
+
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
1961
|
+
const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
|
|
1962
|
+
for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
|
|
1963
|
+
const childNode = oldSlotChildNodes[i2];
|
|
1964
|
+
if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
|
|
1965
|
+
insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
|
|
1966
|
+
childNode["s-ol"].remove();
|
|
1967
|
+
childNode["s-ol"] = void 0;
|
|
1968
|
+
childNode["s-sh"] = void 0;
|
|
1969
|
+
checkSlotRelocate = true;
|
|
1970
|
+
}
|
|
1971
|
+
if (recursive) {
|
|
1972
|
+
putBackInOriginalLocation(childNode, recursive);
|
|
1542
1973
|
}
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1974
|
+
}
|
|
1975
|
+
plt.$flags$ &= -2 /* isTmpDisconnected */;
|
|
1976
|
+
};
|
|
1977
|
+
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
1978
|
+
let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
|
|
1979
|
+
let childNode;
|
|
1980
|
+
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
1981
|
+
containerElm = containerElm.shadowRoot;
|
|
1982
|
+
}
|
|
1983
|
+
for (; startIdx <= endIdx; ++startIdx) {
|
|
1984
|
+
if (vnodes[startIdx]) {
|
|
1985
|
+
childNode = createElm(null, parentVNode, startIdx);
|
|
1986
|
+
if (childNode) {
|
|
1987
|
+
vnodes[startIdx].$elm$ = childNode;
|
|
1988
|
+
insertBefore(containerElm, childNode, referenceNode(before) );
|
|
1546
1989
|
}
|
|
1547
|
-
}
|
|
1990
|
+
}
|
|
1548
1991
|
}
|
|
1549
|
-
hostRef.$hostElement$ = hostElm;
|
|
1550
|
-
endHydrate();
|
|
1551
1992
|
};
|
|
1552
|
-
var
|
|
1553
|
-
let
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
$hostId$: childIdSplt[0],
|
|
1566
|
-
$nodeId$: childIdSplt[1],
|
|
1567
|
-
$depth$: childIdSplt[2],
|
|
1568
|
-
$index$: childIdSplt[3],
|
|
1569
|
-
$tag$: node.tagName.toLowerCase(),
|
|
1570
|
-
$elm$: node,
|
|
1571
|
-
// If we don't add the initial classes to the VNode, the first `vdom-render.ts` reconciliation will fail:
|
|
1572
|
-
// client side changes before componentDidLoad will be ignored, `set-accessor.ts` will just take the element's initial classes
|
|
1573
|
-
$attrs$: { class: node.className }
|
|
1574
|
-
});
|
|
1575
|
-
childRenderNodes.push(childVNode);
|
|
1576
|
-
node.removeAttribute(HYDRATE_CHILD_ID);
|
|
1577
|
-
if (!parentVNode.$children$) {
|
|
1578
|
-
parentVNode.$children$ = [];
|
|
1579
|
-
}
|
|
1580
|
-
const slotName = childVNode.$elm$.getAttribute("s-sn");
|
|
1581
|
-
if (typeof slotName === "string") {
|
|
1582
|
-
if (childVNode.$tag$ === "slot-fb") {
|
|
1583
|
-
addSlot(
|
|
1584
|
-
slotName,
|
|
1585
|
-
childIdSplt[2],
|
|
1586
|
-
childVNode,
|
|
1587
|
-
node,
|
|
1588
|
-
parentVNode,
|
|
1589
|
-
childRenderNodes,
|
|
1590
|
-
slotNodes,
|
|
1591
|
-
shadowRootNodes,
|
|
1592
|
-
slottedNodes
|
|
1593
|
-
);
|
|
1993
|
+
var removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
1994
|
+
for (let index = startIdx; index <= endIdx; ++index) {
|
|
1995
|
+
const vnode = vnodes[index];
|
|
1996
|
+
if (vnode) {
|
|
1997
|
+
const elm = vnode.$elm$;
|
|
1998
|
+
nullifyVNodeRefs(vnode);
|
|
1999
|
+
if (elm) {
|
|
2000
|
+
{
|
|
2001
|
+
checkSlotFallbackVisibility = true;
|
|
2002
|
+
if (elm["s-ol"]) {
|
|
2003
|
+
elm["s-ol"].remove();
|
|
2004
|
+
} else {
|
|
2005
|
+
putBackInOriginalLocation(elm, true);
|
|
1594
2006
|
}
|
|
1595
|
-
childVNode.$elm$["s-sn"] = slotName;
|
|
1596
|
-
childVNode.$elm$.removeAttribute("s-sn");
|
|
1597
|
-
}
|
|
1598
|
-
if (childVNode.$index$ !== void 0) {
|
|
1599
|
-
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1600
|
-
}
|
|
1601
|
-
if (scopeId2) node["s-si"] = scopeId2;
|
|
1602
|
-
parentVNode = childVNode;
|
|
1603
|
-
if (shadowRootNodes && childVNode.$depth$ === "0") {
|
|
1604
|
-
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
1605
2007
|
}
|
|
2008
|
+
elm.remove();
|
|
1606
2009
|
}
|
|
1607
2010
|
}
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
);
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
}
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
}
|
|
1664
|
-
if (shadowRootNodes && childVNode.$depth$ === "0") {
|
|
1665
|
-
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
2011
|
+
}
|
|
2012
|
+
};
|
|
2013
|
+
var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
|
|
2014
|
+
let oldStartIdx = 0;
|
|
2015
|
+
let newStartIdx = 0;
|
|
2016
|
+
let idxInOld = 0;
|
|
2017
|
+
let i2 = 0;
|
|
2018
|
+
let oldEndIdx = oldCh.length - 1;
|
|
2019
|
+
let oldStartVnode = oldCh[0];
|
|
2020
|
+
let oldEndVnode = oldCh[oldEndIdx];
|
|
2021
|
+
let newEndIdx = newCh.length - 1;
|
|
2022
|
+
let newStartVnode = newCh[0];
|
|
2023
|
+
let newEndVnode = newCh[newEndIdx];
|
|
2024
|
+
let node;
|
|
2025
|
+
let elmToMove;
|
|
2026
|
+
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
2027
|
+
if (oldStartVnode == null) {
|
|
2028
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
|
2029
|
+
} else if (oldEndVnode == null) {
|
|
2030
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
|
2031
|
+
} else if (newStartVnode == null) {
|
|
2032
|
+
newStartVnode = newCh[++newStartIdx];
|
|
2033
|
+
} else if (newEndVnode == null) {
|
|
2034
|
+
newEndVnode = newCh[--newEndIdx];
|
|
2035
|
+
} else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
|
|
2036
|
+
patch(oldStartVnode, newStartVnode, isInitialRender);
|
|
2037
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
|
2038
|
+
newStartVnode = newCh[++newStartIdx];
|
|
2039
|
+
} else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
|
|
2040
|
+
patch(oldEndVnode, newEndVnode, isInitialRender);
|
|
2041
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
|
2042
|
+
newEndVnode = newCh[--newEndIdx];
|
|
2043
|
+
} else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
|
2044
|
+
if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
2045
|
+
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
|
2046
|
+
}
|
|
2047
|
+
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
2048
|
+
insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
2049
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
|
2050
|
+
newEndVnode = newCh[--newEndIdx];
|
|
2051
|
+
} else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
2052
|
+
if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
2053
|
+
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
|
2054
|
+
}
|
|
2055
|
+
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
2056
|
+
insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
2057
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
|
2058
|
+
newStartVnode = newCh[++newStartIdx];
|
|
2059
|
+
} else {
|
|
2060
|
+
idxInOld = -1;
|
|
2061
|
+
{
|
|
2062
|
+
for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
|
|
2063
|
+
if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
|
|
2064
|
+
idxInOld = i2;
|
|
2065
|
+
break;
|
|
1666
2066
|
}
|
|
1667
2067
|
}
|
|
1668
|
-
}
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
node
|
|
2068
|
+
}
|
|
2069
|
+
if (idxInOld >= 0) {
|
|
2070
|
+
elmToMove = oldCh[idxInOld];
|
|
2071
|
+
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
2072
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
|
2073
|
+
} else {
|
|
2074
|
+
patch(elmToMove, newStartVnode, isInitialRender);
|
|
2075
|
+
oldCh[idxInOld] = void 0;
|
|
2076
|
+
node = elmToMove.$elm$;
|
|
1673
2077
|
}
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
2078
|
+
newStartVnode = newCh[++newStartIdx];
|
|
2079
|
+
} else {
|
|
2080
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
2081
|
+
newStartVnode = newCh[++newStartIdx];
|
|
2082
|
+
}
|
|
2083
|
+
if (node) {
|
|
2084
|
+
{
|
|
2085
|
+
insertBefore(
|
|
2086
|
+
referenceNode(oldStartVnode.$elm$).parentNode,
|
|
1682
2087
|
node,
|
|
1683
|
-
|
|
1684
|
-
childRenderNodes,
|
|
1685
|
-
slotNodes,
|
|
1686
|
-
shadowRootNodes,
|
|
1687
|
-
slottedNodes
|
|
2088
|
+
referenceNode(oldStartVnode.$elm$)
|
|
1688
2089
|
);
|
|
1689
|
-
} else if (childNodeType === CONTENT_REF_ID) {
|
|
1690
|
-
if (shadowRootNodes) {
|
|
1691
|
-
node.remove();
|
|
1692
|
-
} else {
|
|
1693
|
-
hostElm["s-cr"] = node;
|
|
1694
|
-
node["s-cn"] = true;
|
|
1695
|
-
}
|
|
1696
2090
|
}
|
|
1697
2091
|
}
|
|
1698
2092
|
}
|
|
1699
|
-
} else if (parentVNode && parentVNode.$tag$ === "style") {
|
|
1700
|
-
const vnode = newVNode(null, node.textContent);
|
|
1701
|
-
vnode.$elm$ = node;
|
|
1702
|
-
vnode.$index$ = "0";
|
|
1703
|
-
parentVNode.$children$ = [vnode];
|
|
1704
2093
|
}
|
|
1705
|
-
|
|
2094
|
+
if (oldStartIdx > oldEndIdx) {
|
|
2095
|
+
addVnodes(
|
|
2096
|
+
parentElm,
|
|
2097
|
+
newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
|
|
2098
|
+
newVNode2,
|
|
2099
|
+
newCh,
|
|
2100
|
+
newStartIdx,
|
|
2101
|
+
newEndIdx
|
|
2102
|
+
);
|
|
2103
|
+
} else if (newStartIdx > newEndIdx) {
|
|
2104
|
+
removeVnodes(oldCh, oldStartIdx, oldEndIdx);
|
|
2105
|
+
}
|
|
1706
2106
|
};
|
|
1707
|
-
var
|
|
1708
|
-
if (
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
orgLocNodes.set(componentId, node);
|
|
1712
|
-
}
|
|
1713
|
-
let i2 = 0;
|
|
1714
|
-
if (node.shadowRoot) {
|
|
1715
|
-
for (; i2 < node.shadowRoot.childNodes.length; i2++) {
|
|
1716
|
-
initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
|
|
1717
|
-
}
|
|
2107
|
+
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
2108
|
+
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
2109
|
+
if (leftVNode.$tag$ === "slot") {
|
|
2110
|
+
return leftVNode.$name$ === rightVNode.$name$;
|
|
1718
2111
|
}
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
|
|
2112
|
+
if (!isInitialRender) {
|
|
2113
|
+
return leftVNode.$key$ === rightVNode.$key$;
|
|
1722
2114
|
}
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
if (childIdSplt[0] === ORG_LOCATION_ID) {
|
|
1726
|
-
orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
|
|
1727
|
-
node.nodeValue = "";
|
|
1728
|
-
node["s-en"] = childIdSplt[3];
|
|
2115
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
2116
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
1729
2117
|
}
|
|
2118
|
+
return true;
|
|
1730
2119
|
}
|
|
2120
|
+
return false;
|
|
1731
2121
|
};
|
|
1732
|
-
var
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
$name$: null,
|
|
1744
|
-
$tag$: null,
|
|
1745
|
-
$text$: null
|
|
1746
|
-
};
|
|
1747
|
-
return { ...defaultVNode, ...vnode };
|
|
1748
|
-
};
|
|
1749
|
-
function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
|
|
1750
|
-
node["s-sr"] = true;
|
|
1751
|
-
const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
|
|
1752
|
-
if (shadowRootNodes) {
|
|
1753
|
-
const slot = childVNode.$elm$ = doc.createElement(childVNode.$tag$);
|
|
1754
|
-
if (childVNode.$name$) {
|
|
1755
|
-
childVNode.$elm$.setAttribute("name", slotName);
|
|
2122
|
+
var referenceNode = (node) => node && node["s-ol"] || node;
|
|
2123
|
+
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
2124
|
+
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
2125
|
+
const oldChildren = oldVNode.$children$;
|
|
2126
|
+
const newChildren = newVNode2.$children$;
|
|
2127
|
+
const tag = newVNode2.$tag$;
|
|
2128
|
+
const text = newVNode2.$text$;
|
|
2129
|
+
let defaultHolder;
|
|
2130
|
+
if (text === null) {
|
|
2131
|
+
{
|
|
2132
|
+
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
1756
2133
|
}
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
} else {
|
|
1760
|
-
node.parentNode.insertBefore(childVNode.$elm$, node);
|
|
2134
|
+
{
|
|
2135
|
+
updateElement(oldVNode, newVNode2, isSvgMode, isInitialRender);
|
|
1761
2136
|
}
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
if (
|
|
1765
|
-
|
|
2137
|
+
if (oldChildren !== null && newChildren !== null) {
|
|
2138
|
+
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
2139
|
+
} else if (newChildren !== null) {
|
|
2140
|
+
if (oldVNode.$text$ !== null) {
|
|
2141
|
+
elm.textContent = "";
|
|
2142
|
+
}
|
|
2143
|
+
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
2144
|
+
} else if (
|
|
2145
|
+
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
2146
|
+
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
2147
|
+
) {
|
|
2148
|
+
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
2149
|
+
} else if (isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
|
|
2150
|
+
newVNode2.$children$ = oldChildren;
|
|
1766
2151
|
}
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
|
|
1770
|
-
addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
|
|
1771
|
-
if (shouldMove) {
|
|
1772
|
-
parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
|
|
2152
|
+
if (isSvgMode && tag === "svg") {
|
|
2153
|
+
isSvgMode = false;
|
|
1773
2154
|
}
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
parentVNode.$children$ = [];
|
|
1779
|
-
}
|
|
1780
|
-
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1781
|
-
}
|
|
1782
|
-
var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
|
|
1783
|
-
let slottedNode = slotNode.nextSibling;
|
|
1784
|
-
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
|
1785
|
-
while (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (slottedNode.nodeType === 8 /* CommentNode */ && slottedNode.nodeValue.indexOf(".") !== 1 || slottedNode.nodeType === 3 /* TextNode */))) {
|
|
1786
|
-
slottedNode["s-sn"] = slotName;
|
|
1787
|
-
slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
|
|
1788
|
-
slottedNode = slottedNode.nextSibling;
|
|
2155
|
+
} else if ((defaultHolder = elm["s-cr"])) {
|
|
2156
|
+
defaultHolder.parentNode.textContent = text;
|
|
2157
|
+
} else if (oldVNode.$text$ !== text) {
|
|
2158
|
+
elm.data = text;
|
|
1789
2159
|
}
|
|
1790
2160
|
};
|
|
1791
|
-
var
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
2161
|
+
var relocateNodes = [];
|
|
2162
|
+
var markSlotContentForRelocation = (elm) => {
|
|
2163
|
+
let node;
|
|
2164
|
+
let hostContentNodes;
|
|
2165
|
+
let j;
|
|
2166
|
+
const children = elm.__childNodes || elm.childNodes;
|
|
2167
|
+
for (const childNode of children) {
|
|
2168
|
+
if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
|
|
2169
|
+
hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
|
|
2170
|
+
const slotName = childNode["s-sn"];
|
|
2171
|
+
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
2172
|
+
node = hostContentNodes[j];
|
|
2173
|
+
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (true)) {
|
|
2174
|
+
if (isNodeLocatedInSlot(node, slotName)) {
|
|
2175
|
+
let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
2176
|
+
checkSlotFallbackVisibility = true;
|
|
2177
|
+
node["s-sn"] = node["s-sn"] || slotName;
|
|
2178
|
+
if (relocateNodeData) {
|
|
2179
|
+
relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
|
|
2180
|
+
relocateNodeData.$slotRefNode$ = childNode;
|
|
2181
|
+
} else {
|
|
2182
|
+
node["s-sh"] = childNode["s-hn"];
|
|
2183
|
+
relocateNodes.push({
|
|
2184
|
+
$slotRefNode$: childNode,
|
|
2185
|
+
$nodeToRelocate$: node
|
|
2186
|
+
});
|
|
2187
|
+
}
|
|
2188
|
+
if (node["s-sr"]) {
|
|
2189
|
+
relocateNodes.map((relocateNode) => {
|
|
2190
|
+
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
|
|
2191
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
2192
|
+
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
|
2193
|
+
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
|
2194
|
+
}
|
|
2195
|
+
}
|
|
2196
|
+
});
|
|
2197
|
+
}
|
|
2198
|
+
} else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
|
|
2199
|
+
relocateNodes.push({
|
|
2200
|
+
$nodeToRelocate$: node
|
|
2201
|
+
});
|
|
2202
|
+
}
|
|
2203
|
+
}
|
|
2204
|
+
}
|
|
1801
2205
|
}
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
return propValue;
|
|
1805
|
-
};
|
|
1806
|
-
var getElement = (ref) => getHostRef(ref).$hostElement$ ;
|
|
1807
|
-
|
|
1808
|
-
// src/runtime/event-emitter.ts
|
|
1809
|
-
var createEvent = (ref, name, flags) => {
|
|
1810
|
-
const elm = getElement(ref);
|
|
1811
|
-
return {
|
|
1812
|
-
emit: (detail) => {
|
|
1813
|
-
return emitEvent(elm, name, {
|
|
1814
|
-
bubbles: !!(flags & 4 /* Bubbles */),
|
|
1815
|
-
composed: !!(flags & 2 /* Composed */),
|
|
1816
|
-
cancelable: !!(flags & 1 /* Cancellable */),
|
|
1817
|
-
detail
|
|
1818
|
-
});
|
|
2206
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
2207
|
+
markSlotContentForRelocation(childNode);
|
|
1819
2208
|
}
|
|
1820
|
-
}
|
|
2209
|
+
}
|
|
1821
2210
|
};
|
|
1822
|
-
var
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
2211
|
+
var nullifyVNodeRefs = (vNode) => {
|
|
2212
|
+
{
|
|
2213
|
+
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
2214
|
+
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
2215
|
+
}
|
|
1826
2216
|
};
|
|
1827
|
-
var
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
style = cssText;
|
|
1834
|
-
} else {
|
|
1835
|
-
style.replaceSync(cssText);
|
|
1836
|
-
}
|
|
1837
|
-
} else {
|
|
1838
|
-
style = cssText;
|
|
2217
|
+
var insertBefore = (parent, newNode, reference) => {
|
|
2218
|
+
if (typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) {
|
|
2219
|
+
addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
|
|
2220
|
+
}
|
|
2221
|
+
{
|
|
2222
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
1839
2223
|
}
|
|
1840
|
-
styles.set(scopeId2, style);
|
|
1841
2224
|
};
|
|
1842
|
-
|
|
1843
|
-
var _a;
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
let
|
|
1851
|
-
let
|
|
1852
|
-
|
|
1853
|
-
|
|
2225
|
+
function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
|
|
2226
|
+
var _a, _b;
|
|
2227
|
+
let scopeId2;
|
|
2228
|
+
if (reference && typeof slotNode["s-sn"] === "string" && !!slotNode["s-sr"] && reference.parentNode && reference.parentNode["s-sc"] && (scopeId2 = slotNode["s-si"] || reference.parentNode["s-sc"])) {
|
|
2229
|
+
const scopeName = slotNode["s-sn"];
|
|
2230
|
+
const hostName = slotNode["s-hn"];
|
|
2231
|
+
(_a = newParent.classList) == null ? void 0 : _a.add(scopeId2 + "-s");
|
|
2232
|
+
if (oldParent && ((_b = oldParent.classList) == null ? void 0 : _b.contains(scopeId2 + "-s"))) {
|
|
2233
|
+
let child = (oldParent.__childNodes || oldParent.childNodes)[0];
|
|
2234
|
+
let found = false;
|
|
2235
|
+
while (child) {
|
|
2236
|
+
if (child["s-sn"] !== scopeName && child["s-hn"] === hostName && !!child["s-sr"]) {
|
|
2237
|
+
found = true;
|
|
2238
|
+
break;
|
|
2239
|
+
}
|
|
2240
|
+
child = child.nextSibling;
|
|
1854
2241
|
}
|
|
1855
|
-
if (!
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
2242
|
+
if (!found) oldParent.classList.remove(scopeId2 + "-s");
|
|
2243
|
+
}
|
|
2244
|
+
}
|
|
2245
|
+
}
|
|
2246
|
+
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
2247
|
+
var _a, _b, _c, _d;
|
|
2248
|
+
const hostElm = hostRef.$hostElement$;
|
|
2249
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
2250
|
+
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
2251
|
+
const isHostElement = isHost(renderFnResults);
|
|
2252
|
+
const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
|
|
2253
|
+
hostTagName = hostElm.tagName;
|
|
2254
|
+
if (cmpMeta.$attrsToReflect$) {
|
|
2255
|
+
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
2256
|
+
cmpMeta.$attrsToReflect$.map(
|
|
2257
|
+
([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]
|
|
2258
|
+
);
|
|
2259
|
+
}
|
|
2260
|
+
if (isInitialLoad && rootVnode.$attrs$) {
|
|
2261
|
+
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
2262
|
+
if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
|
|
2263
|
+
rootVnode.$attrs$[key] = hostElm[key];
|
|
2264
|
+
}
|
|
2265
|
+
}
|
|
2266
|
+
}
|
|
2267
|
+
rootVnode.$tag$ = null;
|
|
2268
|
+
rootVnode.$flags$ |= 4 /* isHost */;
|
|
2269
|
+
hostRef.$vnode$ = rootVnode;
|
|
2270
|
+
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
2271
|
+
{
|
|
2272
|
+
scopeId = hostElm["s-sc"];
|
|
2273
|
+
}
|
|
2274
|
+
useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
2275
|
+
{
|
|
2276
|
+
contentRef = hostElm["s-cr"];
|
|
2277
|
+
checkSlotFallbackVisibility = false;
|
|
2278
|
+
}
|
|
2279
|
+
patch(oldVNode, rootVnode, isInitialLoad);
|
|
2280
|
+
{
|
|
2281
|
+
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
2282
|
+
if (checkSlotRelocate) {
|
|
2283
|
+
markSlotContentForRelocation(rootVnode.$elm$);
|
|
2284
|
+
for (const relocateData of relocateNodes) {
|
|
2285
|
+
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
2286
|
+
if (!nodeToRelocate["s-ol"] && win.document) {
|
|
2287
|
+
const orgLocationNode = win.document.createTextNode("");
|
|
2288
|
+
orgLocationNode["s-nr"] = nodeToRelocate;
|
|
2289
|
+
insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
|
|
2290
|
+
}
|
|
2291
|
+
}
|
|
2292
|
+
for (const relocateData of relocateNodes) {
|
|
2293
|
+
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
2294
|
+
const slotRefNode = relocateData.$slotRefNode$;
|
|
2295
|
+
if (slotRefNode) {
|
|
2296
|
+
const parentNodeRef = slotRefNode.parentNode;
|
|
2297
|
+
let insertBeforeNode = slotRefNode.nextSibling;
|
|
2298
|
+
{
|
|
2299
|
+
let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
|
|
2300
|
+
while (orgLocationNode) {
|
|
2301
|
+
let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
|
|
2302
|
+
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
|
|
2303
|
+
refNode = refNode.nextSibling;
|
|
2304
|
+
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
|
2305
|
+
refNode = refNode == null ? void 0 : refNode.nextSibling;
|
|
2306
|
+
}
|
|
2307
|
+
if (!refNode || !refNode["s-nr"]) {
|
|
2308
|
+
insertBeforeNode = refNode;
|
|
2309
|
+
break;
|
|
1881
2310
|
}
|
|
1882
2311
|
}
|
|
1883
|
-
|
|
1884
|
-
styleContainerNode.append(styleElm);
|
|
2312
|
+
orgLocationNode = orgLocationNode.previousSibling;
|
|
1885
2313
|
}
|
|
1886
2314
|
}
|
|
1887
|
-
|
|
1888
|
-
|
|
2315
|
+
const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;
|
|
2316
|
+
const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
|
|
2317
|
+
if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
|
|
2318
|
+
if (nodeToRelocate !== insertBeforeNode) {
|
|
2319
|
+
if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
|
|
2320
|
+
nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
|
|
2321
|
+
}
|
|
2322
|
+
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
|
|
2323
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
|
|
2324
|
+
nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
|
|
2325
|
+
}
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
|
|
2329
|
+
} else {
|
|
2330
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
2331
|
+
if (isInitialLoad) {
|
|
2332
|
+
nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
|
|
2333
|
+
}
|
|
2334
|
+
nodeToRelocate.hidden = true;
|
|
1889
2335
|
}
|
|
1890
|
-
}
|
|
1891
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
1892
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
1893
|
-
}
|
|
1894
|
-
if (appliedStyles) {
|
|
1895
|
-
appliedStyles.add(scopeId2);
|
|
1896
2336
|
}
|
|
1897
2337
|
}
|
|
1898
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
1899
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
1900
2338
|
}
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
};
|
|
1904
|
-
var attachStyles = (hostRef) => {
|
|
1905
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
1906
|
-
const elm = hostRef.$hostElement$;
|
|
1907
|
-
const flags = cmpMeta.$flags$;
|
|
1908
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
1909
|
-
const scopeId2 = addStyle(
|
|
1910
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
1911
|
-
cmpMeta);
|
|
1912
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
1913
|
-
elm["s-sc"] = scopeId2;
|
|
1914
|
-
elm.classList.add(scopeId2 + "-h");
|
|
1915
|
-
if (flags & 2 /* scopedCssEncapsulation */) {
|
|
1916
|
-
elm.classList.add(scopeId2 + "-s");
|
|
2339
|
+
if (checkSlotFallbackVisibility) {
|
|
2340
|
+
updateFallbackSlotVisibility(rootVnode.$elm$);
|
|
1917
2341
|
}
|
|
2342
|
+
plt.$flags$ &= -2 /* isTmpDisconnected */;
|
|
2343
|
+
relocateNodes.length = 0;
|
|
1918
2344
|
}
|
|
1919
|
-
|
|
2345
|
+
contentRef = void 0;
|
|
1920
2346
|
};
|
|
1921
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
1922
2347
|
|
|
1923
2348
|
// src/runtime/update-component.ts
|
|
1924
2349
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
1925
2350
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
1926
|
-
ancestorComponent["s-p"].push(
|
|
2351
|
+
const index = ancestorComponent["s-p"].push(
|
|
2352
|
+
new Promise(
|
|
2353
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
2354
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
2355
|
+
r();
|
|
2356
|
+
}
|
|
2357
|
+
)
|
|
2358
|
+
);
|
|
1927
2359
|
}
|
|
1928
2360
|
};
|
|
1929
2361
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -1936,6 +2368,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
1936
2368
|
}
|
|
1937
2369
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
1938
2370
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
2371
|
+
if (isInitialLoad) {
|
|
2372
|
+
queueMicrotask(() => {
|
|
2373
|
+
dispatch();
|
|
2374
|
+
});
|
|
2375
|
+
return;
|
|
2376
|
+
}
|
|
1939
2377
|
return writeTask(dispatch) ;
|
|
1940
2378
|
};
|
|
1941
2379
|
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
@@ -1952,17 +2390,15 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1952
2390
|
{
|
|
1953
2391
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
1954
2392
|
if (hostRef.$queuedListeners$) {
|
|
1955
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
2393
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
1956
2394
|
hostRef.$queuedListeners$ = void 0;
|
|
1957
2395
|
}
|
|
1958
2396
|
}
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
}
|
|
1963
|
-
{
|
|
1964
|
-
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
|
|
2397
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
2398
|
+
} else {
|
|
2399
|
+
maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
|
|
1965
2400
|
}
|
|
2401
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
1966
2402
|
endSchedule();
|
|
1967
2403
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
1968
2404
|
};
|
|
@@ -2005,7 +2441,7 @@ var callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
|
2005
2441
|
try {
|
|
2006
2442
|
instance = instance.render() ;
|
|
2007
2443
|
{
|
|
2008
|
-
hostRef.$flags$ &=
|
|
2444
|
+
hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
|
|
2009
2445
|
}
|
|
2010
2446
|
{
|
|
2011
2447
|
hostRef.$flags$ |= 2 /* hasRendered */;
|
|
@@ -2028,17 +2464,13 @@ var postUpdateComponent = (hostRef) => {
|
|
|
2028
2464
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
2029
2465
|
const instance = hostRef.$lazyInstance$ ;
|
|
2030
2466
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
2031
|
-
|
|
2032
|
-
safeCall(instance, "componentDidRender");
|
|
2033
|
-
}
|
|
2467
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
2034
2468
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
2035
2469
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
2036
2470
|
{
|
|
2037
2471
|
addHydratedFlag(elm);
|
|
2038
2472
|
}
|
|
2039
|
-
|
|
2040
|
-
safeCall(instance, "componentDidLoad");
|
|
2041
|
-
}
|
|
2473
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
2042
2474
|
endPostUpdate();
|
|
2043
2475
|
{
|
|
2044
2476
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -2047,9 +2479,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
2047
2479
|
}
|
|
2048
2480
|
}
|
|
2049
2481
|
} else {
|
|
2050
|
-
|
|
2051
|
-
safeCall(instance, "componentDidUpdate");
|
|
2052
|
-
}
|
|
2482
|
+
safeCall(instance, "componentDidUpdate", void 0, elm);
|
|
2053
2483
|
endPostUpdate();
|
|
2054
2484
|
}
|
|
2055
2485
|
{
|
|
@@ -2063,21 +2493,24 @@ var postUpdateComponent = (hostRef) => {
|
|
|
2063
2493
|
if (hostRef.$flags$ & 512 /* needsRerender */) {
|
|
2064
2494
|
nextTick(() => scheduleUpdate(hostRef, false));
|
|
2065
2495
|
}
|
|
2066
|
-
hostRef.$flags$ &=
|
|
2496
|
+
hostRef.$flags$ &= -517;
|
|
2067
2497
|
}
|
|
2068
2498
|
};
|
|
2069
2499
|
var appDidLoad = (who) => {
|
|
2500
|
+
var _a;
|
|
2501
|
+
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
2070
2502
|
{
|
|
2071
|
-
|
|
2503
|
+
if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
|
|
2504
|
+
plt.$orgLocNodes$.clear();
|
|
2505
|
+
}
|
|
2072
2506
|
}
|
|
2073
|
-
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
2074
2507
|
};
|
|
2075
|
-
var safeCall = (instance, method, arg) => {
|
|
2508
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
2076
2509
|
if (instance && instance[method]) {
|
|
2077
2510
|
try {
|
|
2078
2511
|
return instance[method](arg);
|
|
2079
2512
|
} catch (e) {
|
|
2080
|
-
consoleError(e);
|
|
2513
|
+
consoleError(e, elm);
|
|
2081
2514
|
}
|
|
2082
2515
|
}
|
|
2083
2516
|
return void 0;
|
|
@@ -2091,16 +2524,21 @@ var addHydratedFlag = (elm) => {
|
|
|
2091
2524
|
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
2092
2525
|
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
2093
2526
|
const hostRef = getHostRef(ref);
|
|
2527
|
+
if (!hostRef) {
|
|
2528
|
+
return;
|
|
2529
|
+
}
|
|
2094
2530
|
if (!hostRef) {
|
|
2095
2531
|
throw new Error(
|
|
2096
|
-
`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/
|
|
2532
|
+
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
|
|
2097
2533
|
);
|
|
2098
2534
|
}
|
|
2099
2535
|
const elm = hostRef.$hostElement$ ;
|
|
2100
2536
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
2101
2537
|
const flags = hostRef.$flags$;
|
|
2102
2538
|
const instance = hostRef.$lazyInstance$ ;
|
|
2103
|
-
newVal = parsePropertyValue(
|
|
2539
|
+
newVal = parsePropertyValue(
|
|
2540
|
+
newVal,
|
|
2541
|
+
cmpMeta.$members$[propName][0]);
|
|
2104
2542
|
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
2105
2543
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
2106
2544
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
@@ -2119,6 +2557,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
2119
2557
|
}
|
|
2120
2558
|
}
|
|
2121
2559
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
2560
|
+
if (instance.componentShouldUpdate) {
|
|
2561
|
+
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
2562
|
+
return;
|
|
2563
|
+
}
|
|
2564
|
+
}
|
|
2122
2565
|
scheduleUpdate(hostRef, false);
|
|
2123
2566
|
}
|
|
2124
2567
|
}
|
|
@@ -2136,62 +2579,78 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2136
2579
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
2137
2580
|
members.map(([memberName, [memberFlags]]) => {
|
|
2138
2581
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
2139
|
-
|
|
2582
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
2583
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
2584
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
2585
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
2140
2586
|
Object.defineProperty(prototype, memberName, {
|
|
2141
2587
|
get() {
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
},
|
|
2147
|
-
configurable: true,
|
|
2148
|
-
enumerable: true
|
|
2149
|
-
});
|
|
2150
|
-
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
|
|
2151
|
-
{
|
|
2152
|
-
Object.defineProperty(prototype, memberName, {
|
|
2153
|
-
get() {
|
|
2588
|
+
{
|
|
2589
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
2590
|
+
return getValue(this, memberName);
|
|
2591
|
+
}
|
|
2154
2592
|
const ref = getHostRef(this);
|
|
2155
2593
|
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
2156
2594
|
if (!instance) return;
|
|
2157
2595
|
return instance[memberName];
|
|
2158
|
-
}
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
}
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2596
|
+
}
|
|
2597
|
+
},
|
|
2598
|
+
configurable: true,
|
|
2599
|
+
enumerable: true
|
|
2600
|
+
});
|
|
2601
|
+
}
|
|
2602
|
+
Object.defineProperty(prototype, memberName, {
|
|
2603
|
+
set(newValue) {
|
|
2604
|
+
const ref = getHostRef(this);
|
|
2605
|
+
if (!ref) {
|
|
2606
|
+
return;
|
|
2607
|
+
}
|
|
2608
|
+
if (origSetter) {
|
|
2609
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
2610
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
2611
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
2612
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
2613
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
2614
|
+
}
|
|
2615
|
+
origSetter.apply(this, [
|
|
2616
|
+
parsePropertyValue(
|
|
2617
|
+
newValue,
|
|
2618
|
+
memberFlags)
|
|
2619
|
+
]);
|
|
2620
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
2621
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
2622
|
+
return;
|
|
2623
|
+
}
|
|
2624
|
+
{
|
|
2625
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
2626
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
2627
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
2628
|
+
ref.$onReadyPromise$.then(() => {
|
|
2629
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
2630
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
2631
|
+
}
|
|
2632
|
+
});
|
|
2176
2633
|
}
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
|
|
2184
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
2185
|
-
};
|
|
2186
|
-
if (ref.$lazyInstance$) {
|
|
2187
|
-
setterSetVal();
|
|
2188
|
-
} else {
|
|
2189
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
2634
|
+
return;
|
|
2635
|
+
}
|
|
2636
|
+
const setterSetVal = () => {
|
|
2637
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
2638
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
2639
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
2190
2640
|
}
|
|
2641
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
2642
|
+
newValue,
|
|
2643
|
+
memberFlags);
|
|
2644
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
2645
|
+
};
|
|
2646
|
+
if (ref.$lazyInstance$) {
|
|
2647
|
+
setterSetVal();
|
|
2648
|
+
} else {
|
|
2649
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
2191
2650
|
}
|
|
2192
|
-
}
|
|
2651
|
+
}
|
|
2193
2652
|
}
|
|
2194
|
-
}
|
|
2653
|
+
});
|
|
2195
2654
|
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
|
|
2196
2655
|
Object.defineProperty(prototype, memberName, {
|
|
2197
2656
|
value(...args) {
|
|
@@ -2211,7 +2670,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2211
2670
|
plt.jmp(() => {
|
|
2212
2671
|
var _a2;
|
|
2213
2672
|
const propName = attrNameToPropName.get(attrName);
|
|
2214
|
-
if (this.hasOwnProperty(propName)) {
|
|
2673
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
2215
2674
|
newValue = this[propName];
|
|
2216
2675
|
delete this[propName];
|
|
2217
2676
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -2220,7 +2679,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2220
2679
|
} else if (propName == null) {
|
|
2221
2680
|
const hostRef = getHostRef(this);
|
|
2222
2681
|
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
2223
|
-
if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
2682
|
+
if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
2224
2683
|
const instance = hostRef.$lazyInstance$ ;
|
|
2225
2684
|
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
2226
2685
|
entry == null ? void 0 : entry.forEach((callbackName) => {
|
|
@@ -2232,15 +2691,16 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2232
2691
|
return;
|
|
2233
2692
|
}
|
|
2234
2693
|
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
2235
|
-
|
|
2236
|
-
|
|
2694
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
2695
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
2696
|
+
this[propName] = newValue;
|
|
2237
2697
|
}
|
|
2238
2698
|
});
|
|
2239
2699
|
};
|
|
2240
2700
|
Cstr.observedAttributes = Array.from(
|
|
2241
2701
|
/* @__PURE__ */ new Set([
|
|
2242
2702
|
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
|
2243
|
-
...members.filter(([_, m]) => m[0] &
|
|
2703
|
+
...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
|
|
2244
2704
|
var _a2;
|
|
2245
2705
|
const attrName = m[1] || propName;
|
|
2246
2706
|
attrNameToPropName.set(attrName, propName);
|
|
@@ -2263,7 +2723,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
2263
2723
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
2264
2724
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
2265
2725
|
if (bundleId) {
|
|
2266
|
-
const CstrImport = loadModule(cmpMeta);
|
|
2726
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
2267
2727
|
if (CstrImport && "then" in CstrImport) {
|
|
2268
2728
|
const endLoad = uniqueTime();
|
|
2269
2729
|
Cstr = await CstrImport;
|
|
@@ -2288,16 +2748,16 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
2288
2748
|
try {
|
|
2289
2749
|
new Cstr(hostRef);
|
|
2290
2750
|
} catch (e) {
|
|
2291
|
-
consoleError(e);
|
|
2751
|
+
consoleError(e, elm);
|
|
2292
2752
|
}
|
|
2293
2753
|
{
|
|
2294
|
-
hostRef.$flags$ &=
|
|
2754
|
+
hostRef.$flags$ &= -9 /* isConstructingInstance */;
|
|
2295
2755
|
}
|
|
2296
2756
|
{
|
|
2297
2757
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
2298
2758
|
}
|
|
2299
2759
|
endNewInstance();
|
|
2300
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
2760
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
2301
2761
|
} else {
|
|
2302
2762
|
Cstr = elm.constructor;
|
|
2303
2763
|
const cmpTag = elm.localName;
|
|
@@ -2324,9 +2784,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
2324
2784
|
schedule();
|
|
2325
2785
|
}
|
|
2326
2786
|
};
|
|
2327
|
-
var fireConnectedCallback = (instance) => {
|
|
2787
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
2328
2788
|
{
|
|
2329
|
-
safeCall(instance, "connectedCallback");
|
|
2789
|
+
safeCall(instance, "connectedCallback", void 0, elm);
|
|
2330
2790
|
}
|
|
2331
2791
|
};
|
|
2332
2792
|
|
|
@@ -2334,6 +2794,9 @@ var fireConnectedCallback = (instance) => {
|
|
|
2334
2794
|
var connectedCallback = (elm) => {
|
|
2335
2795
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
2336
2796
|
const hostRef = getHostRef(elm);
|
|
2797
|
+
if (!hostRef) {
|
|
2798
|
+
return;
|
|
2799
|
+
}
|
|
2337
2800
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
2338
2801
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
2339
2802
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
@@ -2382,61 +2845,77 @@ var connectedCallback = (elm) => {
|
|
|
2382
2845
|
} else {
|
|
2383
2846
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
2384
2847
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
2385
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
2848
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
2386
2849
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
2387
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance
|
|
2850
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
2388
2851
|
}
|
|
2389
2852
|
}
|
|
2390
2853
|
endConnected();
|
|
2391
2854
|
}
|
|
2392
2855
|
};
|
|
2393
2856
|
var setContentReference = (elm) => {
|
|
2394
|
-
|
|
2857
|
+
if (!win.document) {
|
|
2858
|
+
return;
|
|
2859
|
+
}
|
|
2860
|
+
const contentRefElm = elm["s-cr"] = win.document.createComment(
|
|
2395
2861
|
""
|
|
2396
2862
|
);
|
|
2397
2863
|
contentRefElm["s-cn"] = true;
|
|
2398
2864
|
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
2399
2865
|
};
|
|
2400
|
-
var disconnectInstance = (instance) => {
|
|
2866
|
+
var disconnectInstance = (instance, elm) => {
|
|
2401
2867
|
{
|
|
2402
|
-
safeCall(instance, "disconnectedCallback");
|
|
2868
|
+
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
2403
2869
|
}
|
|
2404
2870
|
};
|
|
2405
2871
|
var disconnectedCallback = async (elm) => {
|
|
2406
2872
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
2407
2873
|
const hostRef = getHostRef(elm);
|
|
2408
2874
|
{
|
|
2409
|
-
if (hostRef.$rmListeners$) {
|
|
2875
|
+
if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
|
|
2410
2876
|
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
2411
2877
|
hostRef.$rmListeners$ = void 0;
|
|
2412
2878
|
}
|
|
2413
2879
|
}
|
|
2414
2880
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
2415
|
-
disconnectInstance(hostRef.$lazyInstance
|
|
2881
|
+
disconnectInstance(hostRef.$lazyInstance$, elm);
|
|
2416
2882
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
2417
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance
|
|
2883
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
2418
2884
|
}
|
|
2419
2885
|
}
|
|
2886
|
+
if (rootAppliedStyles.has(elm)) {
|
|
2887
|
+
rootAppliedStyles.delete(elm);
|
|
2888
|
+
}
|
|
2889
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
2890
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
2891
|
+
}
|
|
2420
2892
|
};
|
|
2421
2893
|
|
|
2422
2894
|
// src/runtime/bootstrap-lazy.ts
|
|
2423
2895
|
var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
2424
2896
|
var _a;
|
|
2897
|
+
if (!win.document) {
|
|
2898
|
+
console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
|
|
2899
|
+
return;
|
|
2900
|
+
}
|
|
2425
2901
|
const endBootstrap = createTime();
|
|
2426
2902
|
const cmpTags = [];
|
|
2427
2903
|
const exclude = options.exclude || [];
|
|
2428
2904
|
const customElements2 = win.customElements;
|
|
2429
|
-
const head =
|
|
2905
|
+
const head = win.document.head;
|
|
2430
2906
|
const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
|
|
2431
|
-
const dataStyles = /* @__PURE__ */
|
|
2907
|
+
const dataStyles = /* @__PURE__ */ win.document.createElement("style");
|
|
2432
2908
|
const deferredConnectedCallbacks = [];
|
|
2433
2909
|
let appLoadFallback;
|
|
2434
2910
|
let isBootstrapping = true;
|
|
2435
2911
|
Object.assign(plt, options);
|
|
2436
|
-
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./",
|
|
2912
|
+
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
|
|
2437
2913
|
{
|
|
2438
2914
|
plt.$flags$ |= 2 /* appLoaded */;
|
|
2439
2915
|
}
|
|
2916
|
+
{
|
|
2917
|
+
hydrateScopedToShadow();
|
|
2918
|
+
}
|
|
2440
2919
|
let hasSlotRelocation = false;
|
|
2441
2920
|
lazyBundles.map((lazyBundle) => {
|
|
2442
2921
|
lazyBundle[1].map((compactMeta) => {
|
|
@@ -2473,12 +2952,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2473
2952
|
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
2474
2953
|
{
|
|
2475
2954
|
if (!self.shadowRoot) {
|
|
2476
|
-
|
|
2477
|
-
self.attachShadow({
|
|
2478
|
-
mode: "open",
|
|
2479
|
-
delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
|
|
2480
|
-
});
|
|
2481
|
-
}
|
|
2955
|
+
createShadowRoot.call(self, cmpMeta);
|
|
2482
2956
|
} else {
|
|
2483
2957
|
if (self.shadowRoot.mode !== "open") {
|
|
2484
2958
|
throw new Error(
|
|
@@ -2491,6 +2965,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2491
2965
|
}
|
|
2492
2966
|
connectedCallback() {
|
|
2493
2967
|
const hostRef = getHostRef(this);
|
|
2968
|
+
if (!hostRef) {
|
|
2969
|
+
return;
|
|
2970
|
+
}
|
|
2494
2971
|
if (!this.hasRegisteredEventListeners) {
|
|
2495
2972
|
this.hasRegisteredEventListeners = true;
|
|
2496
2973
|
addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
|
|
@@ -2507,14 +2984,31 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2507
2984
|
}
|
|
2508
2985
|
disconnectedCallback() {
|
|
2509
2986
|
plt.jmp(() => disconnectedCallback(this));
|
|
2987
|
+
plt.raf(() => {
|
|
2988
|
+
var _a3;
|
|
2989
|
+
const hostRef = getHostRef(this);
|
|
2990
|
+
if (!hostRef) {
|
|
2991
|
+
return;
|
|
2992
|
+
}
|
|
2993
|
+
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
2994
|
+
if (i2 > -1) {
|
|
2995
|
+
deferredConnectedCallbacks.splice(i2, 1);
|
|
2996
|
+
}
|
|
2997
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
2998
|
+
delete hostRef.$vnode$.$elm$;
|
|
2999
|
+
}
|
|
3000
|
+
});
|
|
2510
3001
|
}
|
|
2511
3002
|
componentOnReady() {
|
|
2512
|
-
|
|
3003
|
+
var _a3;
|
|
3004
|
+
return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
|
|
2513
3005
|
}
|
|
2514
3006
|
};
|
|
2515
|
-
{
|
|
3007
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && cmpMeta.$flags$ & 256 /* hasRenderFn */) {
|
|
2516
3008
|
{
|
|
2517
|
-
|
|
3009
|
+
{
|
|
3010
|
+
patchChildSlotNodes(HostElement.prototype);
|
|
3011
|
+
}
|
|
2518
3012
|
}
|
|
2519
3013
|
}
|
|
2520
3014
|
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
@@ -2533,7 +3027,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2533
3027
|
}
|
|
2534
3028
|
if (dataStyles.innerHTML.length) {
|
|
2535
3029
|
dataStyles.setAttribute("data-styles", "");
|
|
2536
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
3030
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
2537
3031
|
if (nonce != null) {
|
|
2538
3032
|
dataStyles.setAttribute("nonce", nonce);
|
|
2539
3033
|
}
|
|
@@ -2554,9 +3048,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2554
3048
|
// src/runtime/fragment.ts
|
|
2555
3049
|
var Fragment = (_, children) => children;
|
|
2556
3050
|
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
2557
|
-
if (listeners) {
|
|
3051
|
+
if (listeners && win.document) {
|
|
2558
3052
|
listeners.map(([flags, name, method]) => {
|
|
2559
|
-
const target = getHostListenerTarget(elm, flags) ;
|
|
3053
|
+
const target = getHostListenerTarget(win.document, elm, flags) ;
|
|
2560
3054
|
const handler = hostListenerProxy(hostRef, method);
|
|
2561
3055
|
const opts = hostListenerOpts(flags);
|
|
2562
3056
|
plt.ael(target, name, handler, opts);
|
|
@@ -2575,13 +3069,19 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
2575
3069
|
}
|
|
2576
3070
|
}
|
|
2577
3071
|
} catch (e) {
|
|
2578
|
-
consoleError(e);
|
|
3072
|
+
consoleError(e, hostRef.$hostElement$);
|
|
2579
3073
|
}
|
|
2580
3074
|
};
|
|
2581
|
-
var getHostListenerTarget = (elm, flags) => {
|
|
2582
|
-
if (flags & 4 /* TargetDocument */)
|
|
2583
|
-
|
|
2584
|
-
|
|
3075
|
+
var getHostListenerTarget = (doc, elm, flags) => {
|
|
3076
|
+
if (flags & 4 /* TargetDocument */) {
|
|
3077
|
+
return doc;
|
|
3078
|
+
}
|
|
3079
|
+
if (flags & 8 /* TargetWindow */) {
|
|
3080
|
+
return win;
|
|
3081
|
+
}
|
|
3082
|
+
if (flags & 16 /* TargetBody */) {
|
|
3083
|
+
return doc.body;
|
|
3084
|
+
}
|
|
2585
3085
|
return elm;
|
|
2586
3086
|
};
|
|
2587
3087
|
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
@@ -2599,9 +3099,9 @@ exports.Host = Host;
|
|
|
2599
3099
|
exports.NAMESPACE = NAMESPACE;
|
|
2600
3100
|
exports.bootstrapLazy = bootstrapLazy;
|
|
2601
3101
|
exports.createEvent = createEvent;
|
|
2602
|
-
exports.doc = doc;
|
|
2603
3102
|
exports.getElement = getElement;
|
|
2604
3103
|
exports.h = h;
|
|
2605
3104
|
exports.promiseResolve = promiseResolve;
|
|
2606
3105
|
exports.registerInstance = registerInstance;
|
|
2607
3106
|
exports.setNonce = setNonce;
|
|
3107
|
+
exports.win = win;
|