@searchcraft/javascript-sdk 0.6.0 → 0.7.1
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/README.md +59 -55
- package/dist/cjs/{index-b3b77ea2.js → index-a81df4f0.js} +258 -239
- package/dist/cjs/index-a81df4f0.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/searchcraft-base-search-result.cjs.entry.js +91 -48
- package/dist/cjs/searchcraft-base-search-result.cjs.entry.js.map +1 -1
- package/dist/cjs/searchcraft-base-search-results.cjs.entry.js +74 -37
- package/dist/cjs/searchcraft-base-search-results.cjs.entry.js.map +1 -1
- package/dist/cjs/searchcraft-button_3.cjs.entry.js +37 -27
- package/dist/cjs/searchcraft-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/searchcraft-facet-list_3.cjs.entry.js +141 -117
- package/dist/cjs/searchcraft-facet-list_3.cjs.entry.js.map +1 -1
- package/dist/cjs/searchcraft-filter-panel.cjs.entry.js +11 -13
- package/dist/cjs/searchcraft-filter-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/searchcraft-input-form_2.cjs.entry.js +128 -82
- package/dist/cjs/searchcraft-input-form_2.cjs.entry.js.map +1 -1
- package/dist/cjs/searchcraft-javascript-sdk.cjs.js +3 -3
- package/dist/cjs/searchcraft-javascript-sdk.cjs.js.map +1 -1
- package/dist/cjs/searchcraft-popover-button.cjs.entry.js +3 -7
- package/dist/cjs/searchcraft-popover-button.cjs.entry.js.map +1 -1
- package/dist/cjs/searchcraft-popover-form.cjs.entry.js +81 -68
- package/dist/cjs/searchcraft-popover-form.cjs.entry.js.map +1 -1
- package/dist/cjs/searchcraft-popover-list-item.cjs.entry.js +29 -12
- package/dist/cjs/searchcraft-popover-list-item.cjs.entry.js.map +1 -1
- package/dist/cjs/searchcraft-results-info.cjs.entry.js +9 -13
- package/dist/cjs/searchcraft-results-info.cjs.entry.js.map +1 -1
- package/dist/cjs/searchcraft-theme.cjs.entry.js +38 -0
- package/dist/cjs/searchcraft-theme.cjs.entry.js.map +1 -0
- package/dist/cjs/{store-d7ebcf7a.js → store-f6ba3dfb.js} +633 -107
- package/dist/cjs/store-f6ba3dfb.js.map +1 -0
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/searchcraft-base-search-result/searchcraft-base-search-result.js +134 -66
- package/dist/collection/components/searchcraft-base-search-result/searchcraft-base-search-result.js.map +1 -1
- package/dist/collection/components/searchcraft-base-search-results/searchcraft-base-search-results.js +100 -49
- package/dist/collection/components/searchcraft-base-search-results/searchcraft-base-search-results.js.map +1 -1
- package/dist/collection/components/searchcraft-button/searchcraft-button.js +35 -23
- package/dist/collection/components/searchcraft-button/searchcraft-button.js.map +1 -1
- package/dist/collection/components/searchcraft-error-message/searchcraft-error-message.js +8 -15
- package/dist/collection/components/searchcraft-error-message/searchcraft-error-message.js.map +1 -1
- package/dist/collection/components/searchcraft-facet-list/searchcraft-facet-list.js +61 -59
- package/dist/collection/components/searchcraft-facet-list/searchcraft-facet-list.js.map +1 -1
- package/dist/collection/components/searchcraft-filter-panel/searchcraft-filter-panel.js +11 -19
- package/dist/collection/components/searchcraft-filter-panel/searchcraft-filter-panel.js.map +1 -1
- package/dist/collection/components/searchcraft-input-form/searchcraft-input-form.js +126 -76
- package/dist/collection/components/searchcraft-input-form/searchcraft-input-form.js.map +1 -1
- package/dist/collection/components/searchcraft-input-label/searchcraft-input-label.js +14 -18
- package/dist/collection/components/searchcraft-input-label/searchcraft-input-label.js.map +1 -1
- package/dist/collection/components/searchcraft-popover-button/searchcraft-popover-button.js +1 -11
- package/dist/collection/components/searchcraft-popover-button/searchcraft-popover-button.js.map +1 -1
- package/dist/collection/components/searchcraft-popover-form/searchcraft-popover-form.js +93 -77
- package/dist/collection/components/searchcraft-popover-form/searchcraft-popover-form.js.map +1 -1
- package/dist/collection/components/searchcraft-popover-list-item/searchcraft-popover-list-item.js +47 -25
- package/dist/collection/components/searchcraft-popover-list-item/searchcraft-popover-list-item.js.map +1 -1
- package/dist/collection/components/searchcraft-popover-list-view/searchcraft-popover-list-view.js +23 -25
- package/dist/collection/components/searchcraft-popover-list-view/searchcraft-popover-list-view.js.map +1 -1
- package/dist/collection/components/searchcraft-results-info/searchcraft-results-info.js +7 -19
- package/dist/collection/components/searchcraft-results-info/searchcraft-results-info.js.map +1 -1
- package/dist/collection/components/searchcraft-slider/searchcraft-slider.js +65 -55
- package/dist/collection/components/searchcraft-slider/searchcraft-slider.js.map +1 -1
- package/dist/collection/components/searchcraft-theme/searchcraft-theme.js +27 -0
- package/dist/collection/components/searchcraft-theme/searchcraft-theme.js.map +1 -0
- package/dist/collection/components/searchcraft-toggle-button/searchcraft-toggle-button.js +27 -26
- package/dist/collection/components/searchcraft-toggle-button/searchcraft-toggle-button.js.map +1 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/provider/store.js +25 -9
- package/dist/collection/provider/store.js.map +1 -1
- package/dist/collection/utils/facets.js +5 -3
- package/dist/collection/utils/facets.js.map +1 -1
- package/dist/components/index.js +4 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/p-0ef4ab33.js +66 -0
- package/dist/components/p-0ef4ab33.js.map +1 -0
- package/dist/components/p-1234974c.js +72 -0
- package/dist/components/p-1234974c.js.map +1 -0
- package/dist/components/p-4b92ae26.js +109 -0
- package/dist/components/p-4b92ae26.js.map +1 -0
- package/dist/components/{p-85765b81.js → p-506cdac1.js} +18 -16
- package/dist/components/p-506cdac1.js.map +1 -0
- package/dist/components/p-521fe971.js +60 -0
- package/dist/components/p-521fe971.js.map +1 -0
- package/dist/components/{p-e4846fa2.js → p-5365011f.js} +215 -231
- package/dist/components/p-5365011f.js.map +1 -0
- package/dist/components/p-54998882.js +285 -0
- package/dist/components/p-54998882.js.map +1 -0
- package/dist/components/{p-d6a88eed.js → p-936e2ed4.js} +633 -107
- package/dist/components/p-936e2ed4.js.map +1 -0
- package/dist/components/p-a75ef832.js +34 -0
- package/dist/components/p-a75ef832.js.map +1 -0
- package/dist/components/p-b4a8fcbe.js +144 -0
- package/dist/components/p-b4a8fcbe.js.map +1 -0
- package/dist/components/p-ca881e5c.js +37 -0
- package/dist/components/p-ca881e5c.js.map +1 -0
- package/dist/components/p-d95bc2a0.js +284 -0
- package/dist/components/p-d95bc2a0.js.map +1 -0
- package/dist/components/searchcraft-base-search-result.js +1 -1
- package/dist/components/searchcraft-base-search-results.js +76 -39
- package/dist/components/searchcraft-base-search-results.js.map +1 -1
- package/dist/components/searchcraft-button.js +1 -1
- package/dist/components/searchcraft-error-message.js +1 -1
- package/dist/components/searchcraft-facet-list.js +1 -1
- package/dist/components/searchcraft-filter-panel.js +14 -16
- package/dist/components/searchcraft-filter-panel.js.map +1 -1
- package/dist/components/searchcraft-input-form.js +1 -1
- package/dist/components/searchcraft-input-label.js +1 -1
- package/dist/components/searchcraft-popover-button.js +3 -7
- package/dist/components/searchcraft-popover-button.js.map +1 -1
- package/dist/components/searchcraft-popover-form.js +87 -74
- package/dist/components/searchcraft-popover-form.js.map +1 -1
- package/dist/components/searchcraft-popover-list-item.js +1 -1
- package/dist/components/searchcraft-popover-list-view.js +1 -1
- package/dist/components/searchcraft-results-info.js +9 -13
- package/dist/components/searchcraft-results-info.js.map +1 -1
- package/dist/components/searchcraft-slider.js +1 -1
- package/dist/components/searchcraft-theme.d.ts +11 -0
- package/dist/components/searchcraft-theme.js +51 -0
- package/dist/components/searchcraft-theme.js.map +1 -0
- package/dist/components/searchcraft-toggle-button.js +1 -1
- package/dist/esm/{index-11551663.js → index-3608c57d.js} +258 -239
- package/dist/esm/index-3608c57d.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/searchcraft-base-search-result.entry.js +91 -48
- package/dist/esm/searchcraft-base-search-result.entry.js.map +1 -1
- package/dist/esm/searchcraft-base-search-results.entry.js +74 -37
- package/dist/esm/searchcraft-base-search-results.entry.js.map +1 -1
- package/dist/esm/searchcraft-button_3.entry.js +37 -27
- package/dist/esm/searchcraft-button_3.entry.js.map +1 -1
- package/dist/esm/searchcraft-facet-list_3.entry.js +141 -117
- package/dist/esm/searchcraft-facet-list_3.entry.js.map +1 -1
- package/dist/esm/searchcraft-filter-panel.entry.js +11 -13
- package/dist/esm/searchcraft-filter-panel.entry.js.map +1 -1
- package/dist/esm/searchcraft-input-form_2.entry.js +128 -82
- package/dist/esm/searchcraft-input-form_2.entry.js.map +1 -1
- package/dist/esm/searchcraft-javascript-sdk.js +4 -4
- package/dist/esm/searchcraft-javascript-sdk.js.map +1 -1
- package/dist/esm/searchcraft-popover-button.entry.js +3 -7
- package/dist/esm/searchcraft-popover-button.entry.js.map +1 -1
- package/dist/esm/searchcraft-popover-form.entry.js +81 -68
- package/dist/esm/searchcraft-popover-form.entry.js.map +1 -1
- package/dist/esm/searchcraft-popover-list-item.entry.js +29 -12
- package/dist/esm/searchcraft-popover-list-item.entry.js.map +1 -1
- package/dist/esm/searchcraft-results-info.entry.js +9 -13
- package/dist/esm/searchcraft-results-info.entry.js.map +1 -1
- package/dist/esm/searchcraft-theme.entry.js +34 -0
- package/dist/esm/searchcraft-theme.entry.js.map +1 -0
- package/dist/esm/{store-1058f7b0.js → store-aa071d9c.js} +633 -107
- package/dist/esm/store-aa071d9c.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/index.esm.js +1 -1
- package/dist/searchcraft-javascript-sdk/p-26f5263d.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-26f5263d.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-2ff7eb35.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-2ff7eb35.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-36f0532e.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-36f0532e.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-41b6bc5d.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-41b6bc5d.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-57eddb07.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-57eddb07.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-5d6fbee0.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-5d6fbee0.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-64c5a1d2.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-64c5a1d2.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-7e13c128.js +3 -0
- package/dist/searchcraft-javascript-sdk/p-7e13c128.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-8b0a60b3.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-8b0a60b3.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-936e2ed4.js +11 -0
- package/dist/searchcraft-javascript-sdk/p-936e2ed4.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-c7df8be6.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-c7df8be6.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-eb6058e8.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-eb6058e8.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-faaa4394.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-faaa4394.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js +1 -1
- package/dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js.map +1 -1
- package/dist/types/components/searchcraft-base-search-result/searchcraft-base-search-result.d.ts +1 -0
- package/dist/types/components/searchcraft-base-search-results/searchcraft-base-search-results.d.ts +2 -1
- package/dist/types/components/searchcraft-button/searchcraft-button.d.ts +1 -0
- package/dist/types/components/searchcraft-error-message/searchcraft-error-message.d.ts +1 -0
- package/dist/types/components/searchcraft-facet-list/searchcraft-facet-list.d.ts +2 -1
- package/dist/types/components/searchcraft-filter-panel/searchcraft-filter-panel.d.ts +1 -0
- package/dist/types/components/searchcraft-input-form/searchcraft-input-form.d.ts +7 -10
- package/dist/types/components/searchcraft-input-label/searchcraft-input-label.d.ts +2 -1
- package/dist/types/components/searchcraft-popover-button/searchcraft-popover-button.d.ts +1 -0
- package/dist/types/components/searchcraft-popover-form/searchcraft-popover-form.d.ts +2 -1
- package/dist/types/components/searchcraft-popover-list-item/searchcraft-popover-list-item.d.ts +2 -0
- package/dist/types/components/searchcraft-popover-list-view/searchcraft-popover-list-view.d.ts +1 -0
- package/dist/types/components/searchcraft-results-info/searchcraft-results-info.d.ts +1 -0
- package/dist/types/components/searchcraft-slider/searchcraft-slider.d.ts +2 -1
- package/dist/types/components/searchcraft-theme/searchcraft-theme.d.ts +5 -0
- package/dist/types/components/searchcraft-toggle-button/searchcraft-toggle-button.d.ts +2 -1
- package/dist/types/components.d.ts +17 -4
- package/dist/types/index.d.ts +2 -1
- package/dist/types/provider/store.d.ts +1 -0
- package/dist/types/types/_shared.types.d.ts +1 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/raw.d.ts +4 -0
- package/dist/types/types/searchcraft-base-search-results.types.d.ts +1 -0
- package/dist/types/types/searchcraft-filter-panel.types.d.ts +1 -0
- package/dist/types/types/searchcraft-popover-form.types.d.ts +1 -0
- package/dist/types/utils/facets.d.ts +1 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/styles.d.ts +1 -0
- package/dist/types/utils/units.d.ts +1 -0
- package/package.json +6 -4
- package/dist/cjs/index-b3b77ea2.js.map +0 -1
- package/dist/cjs/store-d7ebcf7a.js.map +0 -1
- package/dist/collection/components/searchcraft-base-search-result/searchcraft-base-search-result.module.css +0 -227
- package/dist/collection/components/searchcraft-base-search-results/searchcraft-base-search-results.module.css +0 -179
- package/dist/collection/components/searchcraft-button/searchcraft-button.module.css +0 -174
- package/dist/collection/components/searchcraft-error-message/searchcraft-error-message.module.css +0 -158
- package/dist/collection/components/searchcraft-facet-list/searchcraft-facet-list.module.css +0 -266
- package/dist/collection/components/searchcraft-filter-panel/searchcraft-filter-panel.module.css +0 -168
- package/dist/collection/components/searchcraft-input-form/searchcraft-input-form.module.css +0 -293
- package/dist/collection/components/searchcraft-input-label/searchcraft-input-label.module.css +0 -159
- package/dist/collection/components/searchcraft-popover-button/searchcraft-popover-button.module.css +0 -0
- package/dist/collection/components/searchcraft-popover-form/searchcraft-popover-form.module.css +0 -322
- package/dist/collection/components/searchcraft-popover-list-item/searchcraft-popover-list-item.module.css +0 -209
- package/dist/collection/components/searchcraft-popover-list-view/searchcraft-popover-list-view.module.css +0 -0
- package/dist/collection/components/searchcraft-results-info/searchcraft-results-info.module.css +0 -169
- package/dist/collection/components/searchcraft-slider/searchcraft-slider.module.css +0 -231
- package/dist/collection/components/searchcraft-toggle-button/searchcraft-toggle-button.module.css +0 -207
- package/dist/components/p-02a16e53.js +0 -240
- package/dist/components/p-02a16e53.js.map +0 -1
- package/dist/components/p-04c46179.js +0 -101
- package/dist/components/p-04c46179.js.map +0 -1
- package/dist/components/p-0e38a723.js +0 -99
- package/dist/components/p-0e38a723.js.map +0 -1
- package/dist/components/p-4c45ef80.js +0 -67
- package/dist/components/p-4c45ef80.js.map +0 -1
- package/dist/components/p-85765b81.js.map +0 -1
- package/dist/components/p-953f4238.js +0 -35
- package/dist/components/p-953f4238.js.map +0 -1
- package/dist/components/p-a248ad69.js +0 -276
- package/dist/components/p-a248ad69.js.map +0 -1
- package/dist/components/p-a9bd1872.js +0 -38
- package/dist/components/p-a9bd1872.js.map +0 -1
- package/dist/components/p-cf4ced92.js +0 -49
- package/dist/components/p-cf4ced92.js.map +0 -1
- package/dist/components/p-d6a88eed.js.map +0 -1
- package/dist/components/p-e4846fa2.js.map +0 -1
- package/dist/components/p-f9d778b3.js +0 -48
- package/dist/components/p-f9d778b3.js.map +0 -1
- package/dist/esm/index-11551663.js.map +0 -1
- package/dist/esm/store-1058f7b0.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-4580e8a4.entry.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-4580e8a4.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-7049b93d.entry.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-7049b93d.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-8e539d62.entry.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-8e539d62.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-98640a6a.entry.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-98640a6a.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-9d0f5c89.entry.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-9d0f5c89.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-b8bd53ce.entry.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-b8bd53ce.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-c27a3673.entry.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-c27a3673.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-cd852b84.entry.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-cd852b84.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-d6a88eed.js +0 -11
- package/dist/searchcraft-javascript-sdk/p-d6a88eed.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-e042deb9.entry.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-e042deb9.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-e0be53df.js +0 -3
- package/dist/searchcraft-javascript-sdk/p-e0be53df.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-efab9f3c.entry.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-efab9f3c.entry.js.map +0 -1
|
@@ -1,17 +1,52 @@
|
|
|
1
1
|
const NAMESPACE = 'searchcraft-javascript-sdk';
|
|
2
|
-
const BUILD = /* searchcraft-javascript-sdk */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: false, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style:
|
|
2
|
+
const BUILD = /* searchcraft-javascript-sdk */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: true, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: false, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: false, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.25.0 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
9
9
|
for (var name in all)
|
|
10
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
11
|
};
|
|
12
|
+
|
|
13
|
+
// src/utils/constants.ts
|
|
14
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
15
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
16
|
+
|
|
17
|
+
// src/utils/es2022-rewire-class-members.ts
|
|
18
|
+
var reWireGetterSetter = (instance, hostRef) => {
|
|
19
|
+
var _a;
|
|
20
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
21
|
+
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
22
|
+
members.map(([memberName, [memberFlags]]) => {
|
|
23
|
+
if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
|
|
24
|
+
const ogValue = instance[memberName];
|
|
25
|
+
const ogDescriptor = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(instance), memberName);
|
|
26
|
+
Object.defineProperty(instance, memberName, {
|
|
27
|
+
get() {
|
|
28
|
+
return ogDescriptor.get.call(this);
|
|
29
|
+
},
|
|
30
|
+
set(newValue) {
|
|
31
|
+
ogDescriptor.set.call(this, newValue);
|
|
32
|
+
},
|
|
33
|
+
configurable: true,
|
|
34
|
+
enumerable: true
|
|
35
|
+
});
|
|
36
|
+
instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
// src/client/client-host-ref.ts
|
|
12
42
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
13
43
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
14
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
44
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
45
|
+
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
46
|
+
{
|
|
47
|
+
reWireGetterSetter(lazyInstance, hostRef);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
15
50
|
var registerHost = (hostElement, cmpMeta) => {
|
|
16
51
|
const hostRef = {
|
|
17
52
|
$flags$: 0,
|
|
@@ -24,7 +59,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
24
59
|
hostElement["s-p"] = [];
|
|
25
60
|
hostElement["s-rc"] = [];
|
|
26
61
|
}
|
|
27
|
-
|
|
62
|
+
const ref = hostRefs.set(hostElement, hostRef);
|
|
63
|
+
return ref;
|
|
28
64
|
};
|
|
29
65
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
30
66
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -48,16 +84,18 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
48
84
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
49
85
|
/* webpackMode: "lazy" */
|
|
50
86
|
`./${bundleId}.entry.js${""}`
|
|
51
|
-
).then(
|
|
52
|
-
{
|
|
53
|
-
|
|
87
|
+
).then(
|
|
88
|
+
(importedModule) => {
|
|
89
|
+
{
|
|
90
|
+
cmpModules.set(bundleId, importedModule);
|
|
91
|
+
}
|
|
92
|
+
return importedModule[exportName];
|
|
93
|
+
},
|
|
94
|
+
(e) => {
|
|
95
|
+
consoleError(e, hostRef.$hostElement$);
|
|
54
96
|
}
|
|
55
|
-
|
|
56
|
-
}, consoleError);
|
|
97
|
+
);
|
|
57
98
|
};
|
|
58
|
-
|
|
59
|
-
// src/client/client-style.ts
|
|
60
|
-
var styles = /* @__PURE__ */ new Map();
|
|
61
99
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
62
100
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
63
101
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -73,14 +111,6 @@ var plt = {
|
|
|
73
111
|
};
|
|
74
112
|
var supportsShadow = BUILD.shadowDom;
|
|
75
113
|
var promiseResolve = (v) => Promise.resolve(v);
|
|
76
|
-
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
77
|
-
try {
|
|
78
|
-
new CSSStyleSheet();
|
|
79
|
-
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
80
|
-
} catch (e) {
|
|
81
|
-
}
|
|
82
|
-
return false;
|
|
83
|
-
})() ;
|
|
84
114
|
var queuePending = false;
|
|
85
115
|
var queueDomReads = [];
|
|
86
116
|
var queueDomWrites = [];
|
|
@@ -116,14 +146,6 @@ var flush = () => {
|
|
|
116
146
|
};
|
|
117
147
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
118
148
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
119
|
-
|
|
120
|
-
// src/utils/constants.ts
|
|
121
|
-
var EMPTY_OBJ = {};
|
|
122
|
-
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
123
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
124
|
-
|
|
125
|
-
// src/utils/helpers.ts
|
|
126
|
-
var isDef = (v) => v != null;
|
|
127
149
|
var isComplexType = (o) => {
|
|
128
150
|
o = typeof o;
|
|
129
151
|
return o === "object" || o === "function";
|
|
@@ -183,6 +205,63 @@ var unwrapErr = (result) => {
|
|
|
183
205
|
throw result.value;
|
|
184
206
|
}
|
|
185
207
|
};
|
|
208
|
+
var updateFallbackSlotVisibility = (elm) => {
|
|
209
|
+
const childNodes = elm.__childNodes || elm.childNodes;
|
|
210
|
+
if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
|
|
211
|
+
getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
|
|
212
|
+
var _a;
|
|
213
|
+
if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
|
|
214
|
+
if ((_a = getHostSlotChildNodes(slotNode, slotNode["s-sn"], false)) == null ? void 0 : _a.length) {
|
|
215
|
+
slotNode.hidden = true;
|
|
216
|
+
} else {
|
|
217
|
+
slotNode.hidden = false;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
for (const childNode of childNodes) {
|
|
223
|
+
if (childNode.nodeType === 1 /* ElementNode */ && (childNode.__childNodes || childNode.childNodes).length) {
|
|
224
|
+
updateFallbackSlotVisibility(childNode);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
229
|
+
let i2 = 0;
|
|
230
|
+
let slottedNodes = [];
|
|
231
|
+
let childNode;
|
|
232
|
+
for (; i2 < childNodes.length; i2++) {
|
|
233
|
+
childNode = childNodes[i2];
|
|
234
|
+
if (childNode["s-sr"] && childNode["s-hn"] === hostName && (slotName === void 0 || childNode["s-sn"] === slotName)) {
|
|
235
|
+
slottedNodes.push(childNode);
|
|
236
|
+
if (typeof slotName !== "undefined") return slottedNodes;
|
|
237
|
+
}
|
|
238
|
+
slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
|
|
239
|
+
}
|
|
240
|
+
return slottedNodes;
|
|
241
|
+
}
|
|
242
|
+
var getHostSlotChildNodes = (node, slotName, includeSlot = true) => {
|
|
243
|
+
const childNodes = [];
|
|
244
|
+
if (includeSlot && node["s-sr"] || !node["s-sr"]) childNodes.push(node);
|
|
245
|
+
while ((node = node.nextSibling) && node["s-sn"] === slotName) {
|
|
246
|
+
childNodes.push(node);
|
|
247
|
+
}
|
|
248
|
+
return childNodes;
|
|
249
|
+
};
|
|
250
|
+
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
251
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
252
|
+
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
253
|
+
return true;
|
|
254
|
+
}
|
|
255
|
+
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
256
|
+
return true;
|
|
257
|
+
}
|
|
258
|
+
return false;
|
|
259
|
+
}
|
|
260
|
+
if (nodeToRelocate["s-sn"] === slotName) {
|
|
261
|
+
return true;
|
|
262
|
+
}
|
|
263
|
+
return slotName === "";
|
|
264
|
+
};
|
|
186
265
|
var createTime = (fnName, tagName = "") => {
|
|
187
266
|
{
|
|
188
267
|
return () => {
|
|
@@ -345,90 +424,6 @@ var emitEvent = (elm, name, opts) => {
|
|
|
345
424
|
return ev;
|
|
346
425
|
};
|
|
347
426
|
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
348
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
349
|
-
let style = styles.get(scopeId2);
|
|
350
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
351
|
-
style = style || new CSSStyleSheet();
|
|
352
|
-
if (typeof style === "string") {
|
|
353
|
-
style = cssText;
|
|
354
|
-
} else {
|
|
355
|
-
style.replaceSync(cssText);
|
|
356
|
-
}
|
|
357
|
-
} else {
|
|
358
|
-
style = cssText;
|
|
359
|
-
}
|
|
360
|
-
styles.set(scopeId2, style);
|
|
361
|
-
};
|
|
362
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
363
|
-
var _a;
|
|
364
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
365
|
-
const style = styles.get(scopeId2);
|
|
366
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
367
|
-
if (style) {
|
|
368
|
-
if (typeof style === "string") {
|
|
369
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
370
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
371
|
-
let styleElm;
|
|
372
|
-
if (!appliedStyles) {
|
|
373
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
374
|
-
}
|
|
375
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
376
|
-
{
|
|
377
|
-
styleElm = doc.createElement("style");
|
|
378
|
-
styleElm.innerHTML = style;
|
|
379
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
380
|
-
if (nonce != null) {
|
|
381
|
-
styleElm.setAttribute("nonce", nonce);
|
|
382
|
-
}
|
|
383
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
384
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
385
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
386
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
387
|
-
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
388
|
-
} else if ("host" in styleContainerNode) {
|
|
389
|
-
if (supportsConstructableStylesheets) {
|
|
390
|
-
const stylesheet = new CSSStyleSheet();
|
|
391
|
-
stylesheet.replaceSync(style);
|
|
392
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
393
|
-
} else {
|
|
394
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
395
|
-
if (existingStyleContainer) {
|
|
396
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
397
|
-
} else {
|
|
398
|
-
styleContainerNode.prepend(styleElm);
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
} else {
|
|
402
|
-
styleContainerNode.append(styleElm);
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
406
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
410
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
411
|
-
}
|
|
412
|
-
if (appliedStyles) {
|
|
413
|
-
appliedStyles.add(scopeId2);
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
417
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
return scopeId2;
|
|
421
|
-
};
|
|
422
|
-
var attachStyles = (hostRef) => {
|
|
423
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
424
|
-
const elm = hostRef.$hostElement$;
|
|
425
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
426
|
-
addStyle(
|
|
427
|
-
elm.getRootNode(),
|
|
428
|
-
cmpMeta);
|
|
429
|
-
endAttachStyles();
|
|
430
|
-
};
|
|
431
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
432
427
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
433
428
|
if (oldValue !== newValue) {
|
|
434
429
|
let isProp = isMemberInElement(elm, memberName);
|
|
@@ -436,9 +431,19 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
436
431
|
if (memberName === "class") {
|
|
437
432
|
const classList = elm.classList;
|
|
438
433
|
const oldClasses = parseClassList(oldValue);
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
434
|
+
let newClasses = parseClassList(newValue);
|
|
435
|
+
if (elm["s-si"]) {
|
|
436
|
+
newClasses.push(elm["s-si"]);
|
|
437
|
+
oldClasses.forEach((c) => {
|
|
438
|
+
if (c.startsWith(elm["s-si"])) newClasses.push(c);
|
|
439
|
+
});
|
|
440
|
+
newClasses = [...new Set(newClasses)];
|
|
441
|
+
classList.add(...newClasses);
|
|
442
|
+
delete elm["s-si"];
|
|
443
|
+
} else {
|
|
444
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
445
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
446
|
+
}
|
|
442
447
|
} else if (memberName === "style") {
|
|
443
448
|
{
|
|
444
449
|
for (const prop in oldValue) {
|
|
@@ -493,7 +498,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
493
498
|
elm.setAttribute(memberName, n);
|
|
494
499
|
}
|
|
495
500
|
}
|
|
496
|
-
} else {
|
|
501
|
+
} else if (elm[memberName] !== newValue) {
|
|
497
502
|
elm[memberName] = newValue;
|
|
498
503
|
}
|
|
499
504
|
} catch (e) {
|
|
@@ -515,15 +520,23 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
515
520
|
}
|
|
516
521
|
};
|
|
517
522
|
var parseClassListRegex = /\s/;
|
|
518
|
-
var parseClassList = (value) =>
|
|
523
|
+
var parseClassList = (value) => {
|
|
524
|
+
if (typeof value === "object" && "baseVal" in value) {
|
|
525
|
+
value = value.baseVal;
|
|
526
|
+
}
|
|
527
|
+
if (!value) {
|
|
528
|
+
return [];
|
|
529
|
+
}
|
|
530
|
+
return value.split(parseClassListRegex);
|
|
531
|
+
};
|
|
519
532
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
520
533
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
521
534
|
|
|
522
535
|
// src/runtime/vdom/update-element.ts
|
|
523
536
|
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
524
537
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
525
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
526
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
538
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
539
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
527
540
|
{
|
|
528
541
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
529
542
|
if (!(memberName in newVnodeAttrs)) {
|
|
@@ -544,16 +557,13 @@ function sortedAttrNames(attrNames) {
|
|
|
544
557
|
attrNames
|
|
545
558
|
);
|
|
546
559
|
}
|
|
547
|
-
|
|
548
|
-
// src/runtime/vdom/vdom-render.ts
|
|
549
|
-
var scopeId;
|
|
550
560
|
var contentRef;
|
|
551
561
|
var hostTagName;
|
|
552
562
|
var useNativeShadowDom = false;
|
|
553
563
|
var checkSlotFallbackVisibility = false;
|
|
554
564
|
var checkSlotRelocate = false;
|
|
555
565
|
var isSvgMode = false;
|
|
556
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
566
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
557
567
|
var _a;
|
|
558
568
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
559
569
|
let i2 = 0;
|
|
@@ -593,11 +603,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
593
603
|
{
|
|
594
604
|
updateElement(null, newVNode2, isSvgMode);
|
|
595
605
|
}
|
|
596
|
-
const rootNode = elm.getRootNode();
|
|
597
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
598
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
599
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
600
|
-
}
|
|
601
606
|
if (newVNode2.$children$) {
|
|
602
607
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
603
608
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -633,7 +638,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
633
638
|
};
|
|
634
639
|
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
635
640
|
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
636
|
-
const oldSlotChildNodes = Array.from(parentElm.childNodes);
|
|
641
|
+
const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
|
|
637
642
|
if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
|
|
638
643
|
let node = parentElm;
|
|
639
644
|
while (node = node.nextSibling) {
|
|
@@ -645,7 +650,7 @@ var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
645
650
|
for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
|
|
646
651
|
const childNode = oldSlotChildNodes[i2];
|
|
647
652
|
if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
|
|
648
|
-
insertBefore(
|
|
653
|
+
insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
|
|
649
654
|
childNode["s-ol"].remove();
|
|
650
655
|
childNode["s-ol"] = void 0;
|
|
651
656
|
childNode["s-sh"] = void 0;
|
|
@@ -761,7 +766,11 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
761
766
|
}
|
|
762
767
|
if (node) {
|
|
763
768
|
{
|
|
764
|
-
insertBefore(
|
|
769
|
+
insertBefore(
|
|
770
|
+
referenceNode(oldStartVnode.$elm$).parentNode,
|
|
771
|
+
node,
|
|
772
|
+
referenceNode(oldStartVnode.$elm$)
|
|
773
|
+
);
|
|
765
774
|
}
|
|
766
775
|
}
|
|
767
776
|
}
|
|
@@ -782,28 +791,19 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
782
791
|
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
783
792
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
784
793
|
if (leftVNode.$tag$ === "slot") {
|
|
785
|
-
if (
|
|
786
|
-
// The component gets hydrated and no VDOM has been initialized.
|
|
787
|
-
// Here the comparison can't happen as $name$ property is not set for `leftNode`.
|
|
788
|
-
"$nodeId$" in leftVNode && isInitialRender && // `leftNode` is not from type HTMLComment which would cause many
|
|
789
|
-
// hydration comments to be removed
|
|
790
|
-
leftVNode.$elm$.nodeType !== 8
|
|
791
|
-
) {
|
|
792
|
-
return false;
|
|
793
|
-
}
|
|
794
794
|
return leftVNode.$name$ === rightVNode.$name$;
|
|
795
795
|
}
|
|
796
796
|
if (!isInitialRender) {
|
|
797
797
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
798
798
|
}
|
|
799
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
800
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
801
|
+
}
|
|
799
802
|
return true;
|
|
800
803
|
}
|
|
801
804
|
return false;
|
|
802
805
|
};
|
|
803
|
-
var referenceNode = (node) =>
|
|
804
|
-
return node && node["s-ol"] || node;
|
|
805
|
-
};
|
|
806
|
-
var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
|
|
806
|
+
var referenceNode = (node) => node && node["s-ol"] || node;
|
|
807
807
|
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
808
808
|
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
809
809
|
const oldChildren = oldVNode.$children$;
|
|
@@ -842,41 +842,15 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
842
842
|
elm.data = text;
|
|
843
843
|
}
|
|
844
844
|
};
|
|
845
|
-
var updateFallbackSlotVisibility = (elm) => {
|
|
846
|
-
const childNodes = elm.childNodes;
|
|
847
|
-
for (const childNode of childNodes) {
|
|
848
|
-
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
849
|
-
if (childNode["s-sr"]) {
|
|
850
|
-
const slotName = childNode["s-sn"];
|
|
851
|
-
childNode.hidden = false;
|
|
852
|
-
for (const siblingNode of childNodes) {
|
|
853
|
-
if (siblingNode !== childNode) {
|
|
854
|
-
if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
|
|
855
|
-
if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
|
|
856
|
-
childNode.hidden = true;
|
|
857
|
-
break;
|
|
858
|
-
}
|
|
859
|
-
} else {
|
|
860
|
-
if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
|
|
861
|
-
childNode.hidden = true;
|
|
862
|
-
break;
|
|
863
|
-
}
|
|
864
|
-
}
|
|
865
|
-
}
|
|
866
|
-
}
|
|
867
|
-
}
|
|
868
|
-
updateFallbackSlotVisibility(childNode);
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
};
|
|
872
845
|
var relocateNodes = [];
|
|
873
846
|
var markSlotContentForRelocation = (elm) => {
|
|
874
847
|
let node;
|
|
875
848
|
let hostContentNodes;
|
|
876
849
|
let j;
|
|
877
|
-
|
|
850
|
+
const children = elm.__childNodes || elm.childNodes;
|
|
851
|
+
for (const childNode of children) {
|
|
878
852
|
if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
|
|
879
|
-
hostContentNodes = node.parentNode.childNodes;
|
|
853
|
+
hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
|
|
880
854
|
const slotName = childNode["s-sn"];
|
|
881
855
|
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
882
856
|
node = hostContentNodes[j];
|
|
@@ -918,24 +892,10 @@ var markSlotContentForRelocation = (elm) => {
|
|
|
918
892
|
}
|
|
919
893
|
}
|
|
920
894
|
};
|
|
921
|
-
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
922
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
923
|
-
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
924
|
-
return true;
|
|
925
|
-
}
|
|
926
|
-
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
927
|
-
return true;
|
|
928
|
-
}
|
|
929
|
-
return false;
|
|
930
|
-
}
|
|
931
|
-
if (nodeToRelocate["s-sn"] === slotName) {
|
|
932
|
-
return true;
|
|
933
|
-
}
|
|
934
|
-
return slotName === "";
|
|
935
|
-
};
|
|
936
895
|
var insertBefore = (parent, newNode, reference) => {
|
|
937
|
-
|
|
938
|
-
|
|
896
|
+
{
|
|
897
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
898
|
+
}
|
|
939
899
|
};
|
|
940
900
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
941
901
|
var _a, _b, _c, _d;
|
|
@@ -982,7 +942,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
982
942
|
let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
|
|
983
943
|
while (orgLocationNode) {
|
|
984
944
|
let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
|
|
985
|
-
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
|
|
945
|
+
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
|
|
986
946
|
refNode = refNode.nextSibling;
|
|
987
947
|
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
|
988
948
|
refNode = refNode == null ? void 0 : refNode.nextSibling;
|
|
@@ -995,13 +955,15 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
995
955
|
orgLocationNode = orgLocationNode.previousSibling;
|
|
996
956
|
}
|
|
997
957
|
}
|
|
998
|
-
|
|
958
|
+
const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;
|
|
959
|
+
const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
|
|
960
|
+
if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
|
|
999
961
|
if (nodeToRelocate !== insertBeforeNode) {
|
|
1000
962
|
if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
|
|
1001
963
|
nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
|
|
1002
964
|
}
|
|
1003
965
|
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
|
|
1004
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
966
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
|
|
1005
967
|
nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
|
|
1006
968
|
}
|
|
1007
969
|
}
|
|
@@ -1029,7 +991,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1029
991
|
// src/runtime/update-component.ts
|
|
1030
992
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
1031
993
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
1032
|
-
ancestorComponent["s-p"].push(
|
|
994
|
+
const index = ancestorComponent["s-p"].push(
|
|
995
|
+
new Promise(
|
|
996
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
997
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
998
|
+
r();
|
|
999
|
+
}
|
|
1000
|
+
)
|
|
1001
|
+
);
|
|
1033
1002
|
}
|
|
1034
1003
|
};
|
|
1035
1004
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -1067,9 +1036,6 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1067
1036
|
const elm = hostRef.$hostElement$;
|
|
1068
1037
|
const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
|
|
1069
1038
|
const rc = elm["s-rc"];
|
|
1070
|
-
if (isInitialLoad) {
|
|
1071
|
-
attachStyles(hostRef);
|
|
1072
|
-
}
|
|
1073
1039
|
const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
|
|
1074
1040
|
{
|
|
1075
1041
|
callRender(hostRef, instance, elm, isInitialLoad);
|
|
@@ -1125,7 +1091,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1125
1091
|
addHydratedFlag(elm);
|
|
1126
1092
|
}
|
|
1127
1093
|
{
|
|
1128
|
-
safeCall(instance, "componentDidLoad");
|
|
1094
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
1129
1095
|
}
|
|
1130
1096
|
endPostUpdate();
|
|
1131
1097
|
{
|
|
@@ -1154,12 +1120,12 @@ var appDidLoad = (who) => {
|
|
|
1154
1120
|
}
|
|
1155
1121
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
1156
1122
|
};
|
|
1157
|
-
var safeCall = (instance, method, arg) => {
|
|
1123
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
1158
1124
|
if (instance && instance[method]) {
|
|
1159
1125
|
try {
|
|
1160
1126
|
return instance[method](arg);
|
|
1161
1127
|
} catch (e) {
|
|
1162
|
-
consoleError(e);
|
|
1128
|
+
consoleError(e, elm);
|
|
1163
1129
|
}
|
|
1164
1130
|
}
|
|
1165
1131
|
return void 0;
|
|
@@ -1218,15 +1184,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1218
1184
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1219
1185
|
members.map(([memberName, [memberFlags]]) => {
|
|
1220
1186
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1187
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
1188
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1189
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1190
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
1191
|
+
Object.defineProperty(prototype, memberName, {
|
|
1192
|
+
get() {
|
|
1193
|
+
{
|
|
1194
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
1195
|
+
return getValue(this, memberName);
|
|
1196
|
+
}
|
|
1197
|
+
const ref = getHostRef(this);
|
|
1198
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
1199
|
+
if (!instance) return;
|
|
1200
|
+
return instance[memberName];
|
|
1201
|
+
}
|
|
1202
|
+
},
|
|
1203
|
+
configurable: true,
|
|
1204
|
+
enumerable: true
|
|
1205
|
+
});
|
|
1206
|
+
}
|
|
1221
1207
|
Object.defineProperty(prototype, memberName, {
|
|
1222
|
-
get() {
|
|
1223
|
-
return getValue(this, memberName);
|
|
1224
|
-
},
|
|
1225
1208
|
set(newValue) {
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1209
|
+
const ref = getHostRef(this);
|
|
1210
|
+
if (origSetter) {
|
|
1211
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1212
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
1213
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
1214
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1215
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1216
|
+
}
|
|
1217
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1218
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1219
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1220
|
+
return;
|
|
1221
|
+
}
|
|
1222
|
+
{
|
|
1223
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1224
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1225
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1226
|
+
ref.$onReadyPromise$.then(() => {
|
|
1227
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1228
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
1229
|
+
}
|
|
1230
|
+
});
|
|
1231
|
+
}
|
|
1232
|
+
return;
|
|
1233
|
+
}
|
|
1234
|
+
const setterSetVal = () => {
|
|
1235
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
1236
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1237
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1238
|
+
}
|
|
1239
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1240
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1241
|
+
};
|
|
1242
|
+
if (ref.$lazyInstance$) {
|
|
1243
|
+
setterSetVal();
|
|
1244
|
+
} else {
|
|
1245
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1230
1249
|
});
|
|
1231
1250
|
}
|
|
1232
1251
|
});
|
|
@@ -1236,7 +1255,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1236
1255
|
plt.jmp(() => {
|
|
1237
1256
|
var _a2;
|
|
1238
1257
|
const propName = attrNameToPropName.get(attrName);
|
|
1239
|
-
if (this.hasOwnProperty(propName)) {
|
|
1258
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
1240
1259
|
newValue = this[propName];
|
|
1241
1260
|
delete this[propName];
|
|
1242
1261
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1256,7 +1275,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1256
1275
|
}
|
|
1257
1276
|
return;
|
|
1258
1277
|
}
|
|
1259
|
-
|
|
1278
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1279
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1280
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1281
|
+
this[propName] = newValue;
|
|
1282
|
+
}
|
|
1260
1283
|
});
|
|
1261
1284
|
};
|
|
1262
1285
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1279,9 +1302,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1279
1302
|
let Cstr;
|
|
1280
1303
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1281
1304
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1305
|
+
{
|
|
1306
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1285
1307
|
if (CstrImport && "then" in CstrImport) {
|
|
1286
1308
|
const endLoad = uniqueTime();
|
|
1287
1309
|
Cstr = await CstrImport;
|
|
@@ -1306,7 +1328,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1306
1328
|
try {
|
|
1307
1329
|
new Cstr(hostRef);
|
|
1308
1330
|
} catch (e) {
|
|
1309
|
-
consoleError(e);
|
|
1331
|
+
consoleError(e, elm);
|
|
1310
1332
|
}
|
|
1311
1333
|
{
|
|
1312
1334
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1315,23 +1337,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1315
1337
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1316
1338
|
}
|
|
1317
1339
|
endNewInstance();
|
|
1318
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1319
|
-
} else {
|
|
1320
|
-
Cstr = elm.constructor;
|
|
1321
|
-
const cmpTag = elm.localName;
|
|
1322
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1323
|
-
}
|
|
1324
|
-
if (Cstr && Cstr.style) {
|
|
1325
|
-
let style;
|
|
1326
|
-
if (typeof Cstr.style === "string") {
|
|
1327
|
-
style = Cstr.style;
|
|
1328
|
-
}
|
|
1329
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
1330
|
-
if (!styles.has(scopeId2)) {
|
|
1331
|
-
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
1332
|
-
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1333
|
-
endRegisterStyles();
|
|
1334
|
-
}
|
|
1340
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1335
1341
|
}
|
|
1336
1342
|
}
|
|
1337
1343
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
@@ -1342,9 +1348,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1342
1348
|
schedule();
|
|
1343
1349
|
}
|
|
1344
1350
|
};
|
|
1345
|
-
var fireConnectedCallback = (instance) => {
|
|
1351
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1346
1352
|
{
|
|
1347
|
-
safeCall(instance, "connectedCallback");
|
|
1353
|
+
safeCall(instance, "connectedCallback", void 0, elm);
|
|
1348
1354
|
}
|
|
1349
1355
|
};
|
|
1350
1356
|
|
|
@@ -1385,9 +1391,9 @@ var connectedCallback = (elm) => {
|
|
|
1385
1391
|
}
|
|
1386
1392
|
} else {
|
|
1387
1393
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1388
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1394
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1389
1395
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1390
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance
|
|
1396
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
1391
1397
|
}
|
|
1392
1398
|
}
|
|
1393
1399
|
endConnected();
|
|
@@ -1400,20 +1406,26 @@ var setContentReference = (elm) => {
|
|
|
1400
1406
|
contentRefElm["s-cn"] = true;
|
|
1401
1407
|
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
1402
1408
|
};
|
|
1403
|
-
var disconnectInstance = (instance) => {
|
|
1409
|
+
var disconnectInstance = (instance, elm) => {
|
|
1404
1410
|
{
|
|
1405
|
-
safeCall(instance, "disconnectedCallback");
|
|
1411
|
+
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
1406
1412
|
}
|
|
1407
1413
|
};
|
|
1408
1414
|
var disconnectedCallback = async (elm) => {
|
|
1409
1415
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1410
1416
|
const hostRef = getHostRef(elm);
|
|
1411
1417
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1412
|
-
disconnectInstance(hostRef.$lazyInstance
|
|
1418
|
+
disconnectInstance(hostRef.$lazyInstance$, elm);
|
|
1413
1419
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1414
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance
|
|
1420
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
1415
1421
|
}
|
|
1416
1422
|
}
|
|
1423
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1424
|
+
rootAppliedStyles.delete(elm);
|
|
1425
|
+
}
|
|
1426
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1427
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1428
|
+
}
|
|
1417
1429
|
};
|
|
1418
1430
|
|
|
1419
1431
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1476,6 +1488,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1476
1488
|
}
|
|
1477
1489
|
disconnectedCallback() {
|
|
1478
1490
|
plt.jmp(() => disconnectedCallback(this));
|
|
1491
|
+
plt.raf(() => {
|
|
1492
|
+
var _a3;
|
|
1493
|
+
const hostRef = getHostRef(this);
|
|
1494
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1495
|
+
delete hostRef.$vnode$.$elm$;
|
|
1496
|
+
}
|
|
1497
|
+
});
|
|
1479
1498
|
}
|
|
1480
1499
|
componentOnReady() {
|
|
1481
1500
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1526,4 +1545,4 @@ var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
|
1526
1545
|
|
|
1527
1546
|
export { Fragment as F, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
|
1528
1547
|
|
|
1529
|
-
//# sourceMappingURL=index-
|
|
1548
|
+
//# sourceMappingURL=index-3608c57d.js.map
|