@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,15 +1,46 @@
|
|
|
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", invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: false, 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", invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: false, 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, 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();
|
|
43
|
+
var deleteHostRef = (ref) => hostRefs.delete(ref);
|
|
13
44
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
14
45
|
var registerHost = (hostElement, cmpMeta) => {
|
|
15
46
|
const hostRef = {
|
|
@@ -23,14 +54,14 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
23
54
|
hostElement["s-p"] = [];
|
|
24
55
|
hostElement["s-rc"] = [];
|
|
25
56
|
}
|
|
26
|
-
|
|
57
|
+
const ref = hostRefs.set(hostElement, hostRef);
|
|
58
|
+
{
|
|
59
|
+
reWireGetterSetter(hostElement, hostRef);
|
|
60
|
+
}
|
|
61
|
+
return ref;
|
|
27
62
|
};
|
|
28
63
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
29
64
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
30
|
-
|
|
31
|
-
// src/client/client-style.ts
|
|
32
|
-
var styles = /* @__PURE__ */ new Map();
|
|
33
|
-
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
34
65
|
var win = typeof window !== "undefined" ? window : {};
|
|
35
66
|
var doc = win.document || { head: {} };
|
|
36
67
|
var H = win.HTMLElement || class {
|
|
@@ -46,14 +77,6 @@ var plt = {
|
|
|
46
77
|
};
|
|
47
78
|
var supportsShadow = BUILD.shadowDom;
|
|
48
79
|
var promiseResolve = (v) => Promise.resolve(v);
|
|
49
|
-
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
50
|
-
try {
|
|
51
|
-
new CSSStyleSheet();
|
|
52
|
-
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
53
|
-
} catch (e) {
|
|
54
|
-
}
|
|
55
|
-
return false;
|
|
56
|
-
})() ;
|
|
57
80
|
var queuePending = false;
|
|
58
81
|
var queueDomReads = [];
|
|
59
82
|
var queueDomWrites = [];
|
|
@@ -96,25 +119,11 @@ var getAssetPath = (path) => {
|
|
|
96
119
|
return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
|
|
97
120
|
};
|
|
98
121
|
var setAssetPath = (path) => plt.$resourcesUrl$ = path;
|
|
99
|
-
|
|
100
|
-
// src/utils/constants.ts
|
|
101
|
-
var EMPTY_OBJ = {};
|
|
102
|
-
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
103
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
104
|
-
|
|
105
|
-
// src/utils/helpers.ts
|
|
106
|
-
var isDef = (v) => v != null;
|
|
107
122
|
var isComplexType = (o) => {
|
|
108
123
|
o = typeof o;
|
|
109
124
|
return o === "object" || o === "function";
|
|
110
125
|
};
|
|
111
126
|
|
|
112
|
-
// src/utils/query-nonce-meta-tag-content.ts
|
|
113
|
-
function queryNonceMetaTagContent(doc2) {
|
|
114
|
-
var _a, _b, _c;
|
|
115
|
-
return (_c = (_b = (_a = doc2.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
127
|
// src/utils/result.ts
|
|
119
128
|
var result_exports = {};
|
|
120
129
|
__export(result_exports, {
|
|
@@ -163,6 +172,63 @@ var unwrapErr = (result) => {
|
|
|
163
172
|
throw result.value;
|
|
164
173
|
}
|
|
165
174
|
};
|
|
175
|
+
var updateFallbackSlotVisibility = (elm) => {
|
|
176
|
+
const childNodes = elm.__childNodes || elm.childNodes;
|
|
177
|
+
if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
|
|
178
|
+
getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
|
|
179
|
+
var _a;
|
|
180
|
+
if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
|
|
181
|
+
if ((_a = getHostSlotChildNodes(slotNode, slotNode["s-sn"], false)) == null ? void 0 : _a.length) {
|
|
182
|
+
slotNode.hidden = true;
|
|
183
|
+
} else {
|
|
184
|
+
slotNode.hidden = false;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
for (const childNode of childNodes) {
|
|
190
|
+
if (childNode.nodeType === 1 /* ElementNode */ && (childNode.__childNodes || childNode.childNodes).length) {
|
|
191
|
+
updateFallbackSlotVisibility(childNode);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
196
|
+
let i2 = 0;
|
|
197
|
+
let slottedNodes = [];
|
|
198
|
+
let childNode;
|
|
199
|
+
for (; i2 < childNodes.length; i2++) {
|
|
200
|
+
childNode = childNodes[i2];
|
|
201
|
+
if (childNode["s-sr"] && childNode["s-hn"] === hostName && (slotName === void 0 || childNode["s-sn"] === slotName)) {
|
|
202
|
+
slottedNodes.push(childNode);
|
|
203
|
+
if (typeof slotName !== "undefined") return slottedNodes;
|
|
204
|
+
}
|
|
205
|
+
slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
|
|
206
|
+
}
|
|
207
|
+
return slottedNodes;
|
|
208
|
+
}
|
|
209
|
+
var getHostSlotChildNodes = (node, slotName, includeSlot = true) => {
|
|
210
|
+
const childNodes = [];
|
|
211
|
+
if (includeSlot && node["s-sr"] || !node["s-sr"]) childNodes.push(node);
|
|
212
|
+
while ((node = node.nextSibling) && node["s-sn"] === slotName) {
|
|
213
|
+
childNodes.push(node);
|
|
214
|
+
}
|
|
215
|
+
return childNodes;
|
|
216
|
+
};
|
|
217
|
+
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
218
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
219
|
+
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
220
|
+
return true;
|
|
221
|
+
}
|
|
222
|
+
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
223
|
+
return true;
|
|
224
|
+
}
|
|
225
|
+
return false;
|
|
226
|
+
}
|
|
227
|
+
if (nodeToRelocate["s-sn"] === slotName) {
|
|
228
|
+
return true;
|
|
229
|
+
}
|
|
230
|
+
return slotName === "";
|
|
231
|
+
};
|
|
166
232
|
var createTime = (fnName, tagName = "") => {
|
|
167
233
|
{
|
|
168
234
|
return () => {
|
|
@@ -318,90 +384,6 @@ var emitEvent = (elm, name, opts) => {
|
|
|
318
384
|
return ev;
|
|
319
385
|
};
|
|
320
386
|
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
321
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
322
|
-
let style = styles.get(scopeId2);
|
|
323
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
324
|
-
style = style || new CSSStyleSheet();
|
|
325
|
-
if (typeof style === "string") {
|
|
326
|
-
style = cssText;
|
|
327
|
-
} else {
|
|
328
|
-
style.replaceSync(cssText);
|
|
329
|
-
}
|
|
330
|
-
} else {
|
|
331
|
-
style = cssText;
|
|
332
|
-
}
|
|
333
|
-
styles.set(scopeId2, style);
|
|
334
|
-
};
|
|
335
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
336
|
-
var _a;
|
|
337
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
338
|
-
const style = styles.get(scopeId2);
|
|
339
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
340
|
-
if (style) {
|
|
341
|
-
if (typeof style === "string") {
|
|
342
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
343
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
344
|
-
let styleElm;
|
|
345
|
-
if (!appliedStyles) {
|
|
346
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
347
|
-
}
|
|
348
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
349
|
-
{
|
|
350
|
-
styleElm = doc.createElement("style");
|
|
351
|
-
styleElm.innerHTML = style;
|
|
352
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
353
|
-
if (nonce != null) {
|
|
354
|
-
styleElm.setAttribute("nonce", nonce);
|
|
355
|
-
}
|
|
356
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
357
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
358
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
359
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
360
|
-
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
361
|
-
} else if ("host" in styleContainerNode) {
|
|
362
|
-
if (supportsConstructableStylesheets) {
|
|
363
|
-
const stylesheet = new CSSStyleSheet();
|
|
364
|
-
stylesheet.replaceSync(style);
|
|
365
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
366
|
-
} else {
|
|
367
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
368
|
-
if (existingStyleContainer) {
|
|
369
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
370
|
-
} else {
|
|
371
|
-
styleContainerNode.prepend(styleElm);
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
} else {
|
|
375
|
-
styleContainerNode.append(styleElm);
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
379
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
383
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
384
|
-
}
|
|
385
|
-
if (appliedStyles) {
|
|
386
|
-
appliedStyles.add(scopeId2);
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
390
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
return scopeId2;
|
|
394
|
-
};
|
|
395
|
-
var attachStyles = (hostRef) => {
|
|
396
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
397
|
-
const elm = hostRef.$hostElement$;
|
|
398
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
399
|
-
addStyle(
|
|
400
|
-
elm.getRootNode(),
|
|
401
|
-
cmpMeta);
|
|
402
|
-
endAttachStyles();
|
|
403
|
-
};
|
|
404
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
405
387
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
406
388
|
if (oldValue !== newValue) {
|
|
407
389
|
let isProp = isMemberInElement(elm, memberName);
|
|
@@ -409,9 +391,19 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
409
391
|
if (memberName === "class") {
|
|
410
392
|
const classList = elm.classList;
|
|
411
393
|
const oldClasses = parseClassList(oldValue);
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
394
|
+
let newClasses = parseClassList(newValue);
|
|
395
|
+
if (elm["s-si"]) {
|
|
396
|
+
newClasses.push(elm["s-si"]);
|
|
397
|
+
oldClasses.forEach((c) => {
|
|
398
|
+
if (c.startsWith(elm["s-si"])) newClasses.push(c);
|
|
399
|
+
});
|
|
400
|
+
newClasses = [...new Set(newClasses)];
|
|
401
|
+
classList.add(...newClasses);
|
|
402
|
+
delete elm["s-si"];
|
|
403
|
+
} else {
|
|
404
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
405
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
406
|
+
}
|
|
415
407
|
} else if (memberName === "style") {
|
|
416
408
|
{
|
|
417
409
|
for (const prop in oldValue) {
|
|
@@ -466,7 +458,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
466
458
|
elm.setAttribute(memberName, n);
|
|
467
459
|
}
|
|
468
460
|
}
|
|
469
|
-
} else {
|
|
461
|
+
} else if (elm[memberName] !== newValue) {
|
|
470
462
|
elm[memberName] = newValue;
|
|
471
463
|
}
|
|
472
464
|
} catch (e) {
|
|
@@ -488,15 +480,23 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
488
480
|
}
|
|
489
481
|
};
|
|
490
482
|
var parseClassListRegex = /\s/;
|
|
491
|
-
var parseClassList = (value) =>
|
|
483
|
+
var parseClassList = (value) => {
|
|
484
|
+
if (typeof value === "object" && "baseVal" in value) {
|
|
485
|
+
value = value.baseVal;
|
|
486
|
+
}
|
|
487
|
+
if (!value) {
|
|
488
|
+
return [];
|
|
489
|
+
}
|
|
490
|
+
return value.split(parseClassListRegex);
|
|
491
|
+
};
|
|
492
492
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
493
493
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
494
494
|
|
|
495
495
|
// src/runtime/vdom/update-element.ts
|
|
496
496
|
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
497
497
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
498
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
499
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
498
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
499
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
500
500
|
{
|
|
501
501
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
502
502
|
if (!(memberName in newVnodeAttrs)) {
|
|
@@ -517,16 +517,13 @@ function sortedAttrNames(attrNames) {
|
|
|
517
517
|
attrNames
|
|
518
518
|
);
|
|
519
519
|
}
|
|
520
|
-
|
|
521
|
-
// src/runtime/vdom/vdom-render.ts
|
|
522
|
-
var scopeId;
|
|
523
520
|
var contentRef;
|
|
524
521
|
var hostTagName;
|
|
525
522
|
var useNativeShadowDom = false;
|
|
526
523
|
var checkSlotFallbackVisibility = false;
|
|
527
524
|
var checkSlotRelocate = false;
|
|
528
525
|
var isSvgMode = false;
|
|
529
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
526
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
530
527
|
var _a;
|
|
531
528
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
532
529
|
let i2 = 0;
|
|
@@ -566,11 +563,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
566
563
|
{
|
|
567
564
|
updateElement(null, newVNode2, isSvgMode);
|
|
568
565
|
}
|
|
569
|
-
const rootNode = elm.getRootNode();
|
|
570
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
571
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
572
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
573
|
-
}
|
|
574
566
|
if (newVNode2.$children$) {
|
|
575
567
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
576
568
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -606,7 +598,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
606
598
|
};
|
|
607
599
|
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
608
600
|
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
609
|
-
const oldSlotChildNodes = Array.from(parentElm.childNodes);
|
|
601
|
+
const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
|
|
610
602
|
if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
|
|
611
603
|
let node = parentElm;
|
|
612
604
|
while (node = node.nextSibling) {
|
|
@@ -618,7 +610,7 @@ var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
618
610
|
for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
|
|
619
611
|
const childNode = oldSlotChildNodes[i2];
|
|
620
612
|
if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
|
|
621
|
-
insertBefore(
|
|
613
|
+
insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
|
|
622
614
|
childNode["s-ol"].remove();
|
|
623
615
|
childNode["s-ol"] = void 0;
|
|
624
616
|
childNode["s-sh"] = void 0;
|
|
@@ -734,7 +726,11 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
734
726
|
}
|
|
735
727
|
if (node) {
|
|
736
728
|
{
|
|
737
|
-
insertBefore(
|
|
729
|
+
insertBefore(
|
|
730
|
+
referenceNode(oldStartVnode.$elm$).parentNode,
|
|
731
|
+
node,
|
|
732
|
+
referenceNode(oldStartVnode.$elm$)
|
|
733
|
+
);
|
|
738
734
|
}
|
|
739
735
|
}
|
|
740
736
|
}
|
|
@@ -755,28 +751,19 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
755
751
|
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
756
752
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
757
753
|
if (leftVNode.$tag$ === "slot") {
|
|
758
|
-
if (
|
|
759
|
-
// The component gets hydrated and no VDOM has been initialized.
|
|
760
|
-
// Here the comparison can't happen as $name$ property is not set for `leftNode`.
|
|
761
|
-
"$nodeId$" in leftVNode && isInitialRender && // `leftNode` is not from type HTMLComment which would cause many
|
|
762
|
-
// hydration comments to be removed
|
|
763
|
-
leftVNode.$elm$.nodeType !== 8
|
|
764
|
-
) {
|
|
765
|
-
return false;
|
|
766
|
-
}
|
|
767
754
|
return leftVNode.$name$ === rightVNode.$name$;
|
|
768
755
|
}
|
|
769
756
|
if (!isInitialRender) {
|
|
770
757
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
771
758
|
}
|
|
759
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
760
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
761
|
+
}
|
|
772
762
|
return true;
|
|
773
763
|
}
|
|
774
764
|
return false;
|
|
775
765
|
};
|
|
776
|
-
var referenceNode = (node) =>
|
|
777
|
-
return node && node["s-ol"] || node;
|
|
778
|
-
};
|
|
779
|
-
var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
|
|
766
|
+
var referenceNode = (node) => node && node["s-ol"] || node;
|
|
780
767
|
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
781
768
|
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
782
769
|
const oldChildren = oldVNode.$children$;
|
|
@@ -815,41 +802,15 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
815
802
|
elm.data = text;
|
|
816
803
|
}
|
|
817
804
|
};
|
|
818
|
-
var updateFallbackSlotVisibility = (elm) => {
|
|
819
|
-
const childNodes = elm.childNodes;
|
|
820
|
-
for (const childNode of childNodes) {
|
|
821
|
-
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
822
|
-
if (childNode["s-sr"]) {
|
|
823
|
-
const slotName = childNode["s-sn"];
|
|
824
|
-
childNode.hidden = false;
|
|
825
|
-
for (const siblingNode of childNodes) {
|
|
826
|
-
if (siblingNode !== childNode) {
|
|
827
|
-
if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
|
|
828
|
-
if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
|
|
829
|
-
childNode.hidden = true;
|
|
830
|
-
break;
|
|
831
|
-
}
|
|
832
|
-
} else {
|
|
833
|
-
if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
|
|
834
|
-
childNode.hidden = true;
|
|
835
|
-
break;
|
|
836
|
-
}
|
|
837
|
-
}
|
|
838
|
-
}
|
|
839
|
-
}
|
|
840
|
-
}
|
|
841
|
-
updateFallbackSlotVisibility(childNode);
|
|
842
|
-
}
|
|
843
|
-
}
|
|
844
|
-
};
|
|
845
805
|
var relocateNodes = [];
|
|
846
806
|
var markSlotContentForRelocation = (elm) => {
|
|
847
807
|
let node;
|
|
848
808
|
let hostContentNodes;
|
|
849
809
|
let j;
|
|
850
|
-
|
|
810
|
+
const children = elm.__childNodes || elm.childNodes;
|
|
811
|
+
for (const childNode of children) {
|
|
851
812
|
if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
|
|
852
|
-
hostContentNodes = node.parentNode.childNodes;
|
|
813
|
+
hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
|
|
853
814
|
const slotName = childNode["s-sn"];
|
|
854
815
|
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
855
816
|
node = hostContentNodes[j];
|
|
@@ -891,24 +852,10 @@ var markSlotContentForRelocation = (elm) => {
|
|
|
891
852
|
}
|
|
892
853
|
}
|
|
893
854
|
};
|
|
894
|
-
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
895
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
896
|
-
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
897
|
-
return true;
|
|
898
|
-
}
|
|
899
|
-
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
900
|
-
return true;
|
|
901
|
-
}
|
|
902
|
-
return false;
|
|
903
|
-
}
|
|
904
|
-
if (nodeToRelocate["s-sn"] === slotName) {
|
|
905
|
-
return true;
|
|
906
|
-
}
|
|
907
|
-
return slotName === "";
|
|
908
|
-
};
|
|
909
855
|
var insertBefore = (parent, newNode, reference) => {
|
|
910
|
-
|
|
911
|
-
|
|
856
|
+
{
|
|
857
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
858
|
+
}
|
|
912
859
|
};
|
|
913
860
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
914
861
|
var _a, _b, _c, _d;
|
|
@@ -955,7 +902,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
955
902
|
let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
|
|
956
903
|
while (orgLocationNode) {
|
|
957
904
|
let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
|
|
958
|
-
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
|
|
905
|
+
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
|
|
959
906
|
refNode = refNode.nextSibling;
|
|
960
907
|
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
|
961
908
|
refNode = refNode == null ? void 0 : refNode.nextSibling;
|
|
@@ -968,13 +915,15 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
968
915
|
orgLocationNode = orgLocationNode.previousSibling;
|
|
969
916
|
}
|
|
970
917
|
}
|
|
971
|
-
|
|
918
|
+
const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;
|
|
919
|
+
const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
|
|
920
|
+
if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
|
|
972
921
|
if (nodeToRelocate !== insertBeforeNode) {
|
|
973
922
|
if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
|
|
974
923
|
nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
|
|
975
924
|
}
|
|
976
925
|
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
|
|
977
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
926
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
|
|
978
927
|
nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
|
|
979
928
|
}
|
|
980
929
|
}
|
|
@@ -1002,7 +951,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1002
951
|
// src/runtime/update-component.ts
|
|
1003
952
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
1004
953
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
1005
|
-
ancestorComponent["s-p"].push(
|
|
954
|
+
const index = ancestorComponent["s-p"].push(
|
|
955
|
+
new Promise(
|
|
956
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
957
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
958
|
+
r();
|
|
959
|
+
}
|
|
960
|
+
)
|
|
961
|
+
);
|
|
1006
962
|
}
|
|
1007
963
|
};
|
|
1008
964
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -1040,9 +996,6 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1040
996
|
const elm = hostRef.$hostElement$;
|
|
1041
997
|
const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
|
|
1042
998
|
const rc = elm["s-rc"];
|
|
1043
|
-
if (isInitialLoad) {
|
|
1044
|
-
attachStyles(hostRef);
|
|
1045
|
-
}
|
|
1046
999
|
const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
|
|
1047
1000
|
{
|
|
1048
1001
|
callRender(hostRef, instance, elm, isInitialLoad);
|
|
@@ -1098,7 +1051,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1098
1051
|
addHydratedFlag(elm);
|
|
1099
1052
|
}
|
|
1100
1053
|
{
|
|
1101
|
-
safeCall(instance, "componentDidLoad");
|
|
1054
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
1102
1055
|
}
|
|
1103
1056
|
endPostUpdate();
|
|
1104
1057
|
{
|
|
@@ -1127,12 +1080,12 @@ var appDidLoad = (who) => {
|
|
|
1127
1080
|
}
|
|
1128
1081
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
1129
1082
|
};
|
|
1130
|
-
var safeCall = (instance, method, arg) => {
|
|
1083
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
1131
1084
|
if (instance && instance[method]) {
|
|
1132
1085
|
try {
|
|
1133
1086
|
return instance[method](arg);
|
|
1134
1087
|
} catch (e) {
|
|
1135
|
-
consoleError(e);
|
|
1088
|
+
consoleError(e, elm);
|
|
1136
1089
|
}
|
|
1137
1090
|
}
|
|
1138
1091
|
return void 0;
|
|
@@ -1186,15 +1139,40 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1186
1139
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1187
1140
|
members.map(([memberName, [memberFlags]]) => {
|
|
1188
1141
|
if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
|
|
1142
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
1143
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1144
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1145
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
1146
|
+
Object.defineProperty(prototype, memberName, {
|
|
1147
|
+
get() {
|
|
1148
|
+
{
|
|
1149
|
+
return origGetter ? origGetter.apply(this) : getValue(this, memberName);
|
|
1150
|
+
}
|
|
1151
|
+
},
|
|
1152
|
+
configurable: true,
|
|
1153
|
+
enumerable: true
|
|
1154
|
+
});
|
|
1155
|
+
}
|
|
1189
1156
|
Object.defineProperty(prototype, memberName, {
|
|
1190
|
-
get() {
|
|
1191
|
-
return getValue(this, memberName);
|
|
1192
|
-
},
|
|
1193
1157
|
set(newValue) {
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1158
|
+
const ref = getHostRef(this);
|
|
1159
|
+
if (origSetter) {
|
|
1160
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1161
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
1162
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
1163
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1164
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1165
|
+
}
|
|
1166
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1167
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1168
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1169
|
+
return;
|
|
1170
|
+
}
|
|
1171
|
+
{
|
|
1172
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1173
|
+
return;
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1198
1176
|
});
|
|
1199
1177
|
}
|
|
1200
1178
|
});
|
|
@@ -1204,7 +1182,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1204
1182
|
plt.jmp(() => {
|
|
1205
1183
|
var _a2;
|
|
1206
1184
|
const propName = attrNameToPropName.get(attrName);
|
|
1207
|
-
if (this.hasOwnProperty(propName)) {
|
|
1185
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
1208
1186
|
newValue = this[propName];
|
|
1209
1187
|
delete this[propName];
|
|
1210
1188
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1225,7 +1203,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1225
1203
|
}
|
|
1226
1204
|
return;
|
|
1227
1205
|
}
|
|
1228
|
-
|
|
1206
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1207
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1208
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1209
|
+
this[propName] = newValue;
|
|
1210
|
+
}
|
|
1229
1211
|
});
|
|
1230
1212
|
};
|
|
1231
1213
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1245,26 +1227,12 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1245
1227
|
|
|
1246
1228
|
// src/runtime/initialize-component.ts
|
|
1247
1229
|
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1248
|
-
let Cstr;
|
|
1249
1230
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1250
1231
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1251
1232
|
{
|
|
1252
|
-
Cstr = elm.constructor;
|
|
1253
1233
|
const cmpTag = elm.localName;
|
|
1254
1234
|
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1255
1235
|
}
|
|
1256
|
-
if (Cstr && Cstr.style) {
|
|
1257
|
-
let style;
|
|
1258
|
-
if (typeof Cstr.style === "string") {
|
|
1259
|
-
style = Cstr.style;
|
|
1260
|
-
}
|
|
1261
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
1262
|
-
if (!styles.has(scopeId2)) {
|
|
1263
|
-
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
1264
|
-
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1265
|
-
endRegisterStyles();
|
|
1266
|
-
}
|
|
1267
|
-
}
|
|
1268
1236
|
}
|
|
1269
1237
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1270
1238
|
const schedule = () => scheduleUpdate(hostRef, true);
|
|
@@ -1274,7 +1242,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1274
1242
|
schedule();
|
|
1275
1243
|
}
|
|
1276
1244
|
};
|
|
1277
|
-
var fireConnectedCallback = (instance) => {
|
|
1245
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1278
1246
|
};
|
|
1279
1247
|
|
|
1280
1248
|
// src/runtime/connected-callback.ts
|
|
@@ -1310,7 +1278,7 @@ var connectedCallback = (elm) => {
|
|
|
1310
1278
|
});
|
|
1311
1279
|
}
|
|
1312
1280
|
{
|
|
1313
|
-
initializeComponent(elm, hostRef
|
|
1281
|
+
initializeComponent(elm, hostRef);
|
|
1314
1282
|
}
|
|
1315
1283
|
} else {
|
|
1316
1284
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
@@ -1331,6 +1299,12 @@ var disconnectedCallback = async (elm) => {
|
|
|
1331
1299
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1332
1300
|
getHostRef(elm);
|
|
1333
1301
|
}
|
|
1302
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1303
|
+
rootAppliedStyles.delete(elm);
|
|
1304
|
+
}
|
|
1305
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1306
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1307
|
+
}
|
|
1334
1308
|
};
|
|
1335
1309
|
var proxyCustomElement = (Cstr, compactMeta) => {
|
|
1336
1310
|
const cmpMeta = {
|
|
@@ -1345,15 +1319,15 @@ var proxyCustomElement = (Cstr, compactMeta) => {
|
|
|
1345
1319
|
}
|
|
1346
1320
|
const originalConnectedCallback = Cstr.prototype.connectedCallback;
|
|
1347
1321
|
const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;
|
|
1348
|
-
let hasHostListenerAttached = false;
|
|
1349
1322
|
Object.assign(Cstr.prototype, {
|
|
1323
|
+
__hasHostListenerAttached: false,
|
|
1350
1324
|
__registerHost() {
|
|
1351
1325
|
registerHost(this, cmpMeta);
|
|
1352
1326
|
},
|
|
1353
1327
|
connectedCallback() {
|
|
1354
|
-
if (!
|
|
1328
|
+
if (!this.__hasHostListenerAttached) {
|
|
1355
1329
|
getHostRef(this);
|
|
1356
|
-
|
|
1330
|
+
this.__hasHostListenerAttached = true;
|
|
1357
1331
|
}
|
|
1358
1332
|
connectedCallback(this);
|
|
1359
1333
|
if (originalConnectedCallback) {
|
|
@@ -1365,6 +1339,16 @@ var proxyCustomElement = (Cstr, compactMeta) => {
|
|
|
1365
1339
|
if (originalDisconnectedCallback) {
|
|
1366
1340
|
originalDisconnectedCallback.call(this);
|
|
1367
1341
|
}
|
|
1342
|
+
plt.raf(() => {
|
|
1343
|
+
var _a;
|
|
1344
|
+
const hostRef = getHostRef(this);
|
|
1345
|
+
if (((_a = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1346
|
+
delete hostRef.$vnode$;
|
|
1347
|
+
}
|
|
1348
|
+
if (this instanceof Node && !this.isConnected) {
|
|
1349
|
+
deleteHostRef(this);
|
|
1350
|
+
}
|
|
1351
|
+
});
|
|
1368
1352
|
},
|
|
1369
1353
|
__attachShadow() {
|
|
1370
1354
|
{
|
|
@@ -1373,7 +1357,7 @@ var proxyCustomElement = (Cstr, compactMeta) => {
|
|
|
1373
1357
|
}
|
|
1374
1358
|
});
|
|
1375
1359
|
Cstr.is = cmpMeta.$tagName$;
|
|
1376
|
-
return proxyComponent(Cstr, cmpMeta);
|
|
1360
|
+
return proxyComponent(Cstr, cmpMeta, 1 /* isElementConstructor */ | 2 /* proxyState */);
|
|
1377
1361
|
};
|
|
1378
1362
|
|
|
1379
1363
|
// src/runtime/fragment.ts
|
|
@@ -1387,4 +1371,4 @@ var setPlatformOptions = (opts) => Object.assign(plt, opts);
|
|
|
1387
1371
|
|
|
1388
1372
|
export { Fragment as F, H, setNonce as a, setPlatformOptions as b, createEvent as c, getAssetPath as g, h, proxyCustomElement as p, setAssetPath as s };
|
|
1389
1373
|
|
|
1390
|
-
//# sourceMappingURL=p-
|
|
1374
|
+
//# sourceMappingURL=p-5365011f.js.map
|