@zanichelli/zanichelli-it-frontend-kit 1.4.1-RC1 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-BLzQAHAI.js → index-BKkNg6ed.js} +498 -358
- package/dist/cjs/index.cjs.js +0 -3
- package/dist/cjs/loader.cjs.js +2 -5
- package/dist/cjs/zanichelli-it-frontend-kit.cjs.js +3 -6
- package/dist/cjs/zanit-back-to-top_4.cjs.entry.js +76 -64
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/back-to-top/back-to-top.js +3 -4
- package/dist/collection/components/menubar/menu/menu.js +0 -1
- package/dist/collection/components/menubar/menubar.js +12 -11
- package/dist/collection/components/menubar/mobile-menubar/mobile-menubar.js +12 -13
- package/dist/collection/components/menubar/search-form/search-form.js +14 -13
- package/dist/collection/components/menubar/search-form/suggestions.js +1 -2
- package/dist/collection/index.js +0 -1
- package/dist/collection/utils/index.js +0 -1
- package/dist/collection/utils/subjects.api.js +0 -1
- package/dist/collection/utils/utils.js +0 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -1335
- package/dist/components/p-BMtMaJq9.js +1 -0
- package/dist/components/p-BXeRLfHX.js +1 -0
- package/dist/components/zanit-back-to-top.js +1 -88
- package/dist/components/zanit-menubar.js +1 -455
- package/dist/components/zanit-mobile-menubar.js +1 -9
- package/dist/components/zanit-search-form.js +1 -9
- package/dist/esm/{index-DSdvvVFj.js → index-CFgcJxsy.js} +498 -358
- package/dist/esm/index.js +0 -3
- package/dist/esm/loader.js +3 -6
- package/dist/esm/zanichelli-it-frontend-kit.js +4 -7
- package/dist/esm/zanit-back-to-top_4.entry.js +76 -64
- package/dist/types/components/back-to-top/back-to-top.d.ts +2 -1
- package/dist/types/components/menubar/menubar.d.ts +2 -1
- package/dist/types/components/menubar/mobile-menubar/mobile-menubar.d.ts +2 -1
- package/dist/types/components/menubar/search-form/search-form.d.ts +3 -2
- package/dist/types/components.d.ts +35 -8
- package/dist/types/stencil-public-runtime.d.ts +169 -11
- package/dist/zanichelli-it-frontend-kit/index.esm.js +0 -2
- package/dist/zanichelli-it-frontend-kit/p-93d8b277.entry.js +1 -0
- package/dist/zanichelli-it-frontend-kit/p-CFgcJxsy.js +2 -0
- package/dist/zanichelli-it-frontend-kit/zanichelli-it-frontend-kit.esm.js +1 -2
- package/package.json +17 -15
- package/www/build/index.esm.js +0 -2
- package/www/build/p-93d8b277.entry.js +1 -0
- package/www/build/p-CFgcJxsy.js +2 -0
- package/www/build/p-ec9829f4.js +1 -0
- package/www/build/zanichelli-it-frontend-kit.esm.js +1 -2
- package/www/index.html +3 -2
- package/dist/cjs/index-BLzQAHAI.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/zanichelli-it-frontend-kit.cjs.js.map +0 -1
- package/dist/cjs/zanit-back-to-top.zanit-menubar.zanit-mobile-menubar.zanit-search-form.entry.cjs.js.map +0 -1
- package/dist/cjs/zanit-back-to-top_4.cjs.entry.js.map +0 -1
- package/dist/collection/components/back-to-top/back-to-top.js.map +0 -1
- package/dist/collection/components/menubar/menu/menu.js.map +0 -1
- package/dist/collection/components/menubar/menubar.js.map +0 -1
- package/dist/collection/components/menubar/mobile-menubar/mobile-menubar.js.map +0 -1
- package/dist/collection/components/menubar/search-form/search-form.js.map +0 -1
- package/dist/collection/components/menubar/search-form/suggestions.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/utils/index.js.map +0 -1
- package/dist/collection/utils/subjects.api.js.map +0 -1
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/p-CPhDV9oz.js +0 -246
- package/dist/components/p-CPhDV9oz.js.map +0 -1
- package/dist/components/p-DR2f_bjz.js +0 -387
- package/dist/components/p-DR2f_bjz.js.map +0 -1
- package/dist/components/zanit-back-to-top.js.map +0 -1
- package/dist/components/zanit-menubar.js.map +0 -1
- package/dist/components/zanit-mobile-menubar.js.map +0 -1
- package/dist/components/zanit-search-form.js.map +0 -1
- package/dist/esm/index-DSdvvVFj.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/zanichelli-it-frontend-kit.js.map +0 -1
- package/dist/esm/zanit-back-to-top.zanit-menubar.zanit-mobile-menubar.zanit-search-form.entry.js.map +0 -1
- package/dist/esm/zanit-back-to-top_4.entry.js.map +0 -1
- package/dist/zanichelli-it-frontend-kit/index.esm.js.map +0 -1
- package/dist/zanichelli-it-frontend-kit/loader.esm.js.map +0 -1
- package/dist/zanichelli-it-frontend-kit/p-12c6519e.entry.js +0 -2
- package/dist/zanichelli-it-frontend-kit/p-12c6519e.entry.js.map +0 -1
- package/dist/zanichelli-it-frontend-kit/p-DSdvvVFj.js +0 -3
- package/dist/zanichelli-it-frontend-kit/p-DSdvvVFj.js.map +0 -1
- package/dist/zanichelli-it-frontend-kit/zanichelli-it-frontend-kit.esm.js.map +0 -1
- package/dist/zanichelli-it-frontend-kit/zanit-back-to-top.zanit-menubar.zanit-mobile-menubar.zanit-search-form.entry.esm.js.map +0 -1
- package/www/build/index.esm.js.map +0 -1
- package/www/build/loader.esm.js.map +0 -1
- package/www/build/p-12c6519e.entry.js +0 -2
- package/www/build/p-12c6519e.entry.js.map +0 -1
- package/www/build/p-17633e25.js +0 -2
- package/www/build/p-DSdvvVFj.js +0 -3
- package/www/build/p-DSdvvVFj.js.map +0 -1
- package/www/build/zanichelli-it-frontend-kit.esm.js.map +0 -1
- package/www/build/zanit-back-to-top.zanit-menubar.zanit-mobile-menubar.zanit-search-form.entry.esm.js.map +0 -1
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
const NAMESPACE = 'zanichelli-it-frontend-kit';
|
|
2
|
-
const BUILD = /* zanichelli-it-frontend-kit */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true};
|
|
2
|
+
const BUILD = /* zanichelli-it-frontend-kit */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, state: true, updatable: true};
|
|
3
3
|
|
|
4
4
|
const globalScripts = () => {};
|
|
5
5
|
const globalStyles = ":root{--font-md:500}.title-1,.title-2,.title-3,.title-4,.title-5,.title-6,.title-1-rg,.title-2-rg,.title-3-rg,.title-4-rg,.title-5-rg,.title-6-rg,.title-1-lt,.title-2-lt,.title-3-lt,.title-4-lt,.title-5-lt,.title-6-lt,.title-1-sb,.title-2-sb,.title-3-sb,.title-4-sb,.title-5-sb,.title-6-sb,.title-1-bd,.title-2-bd,.title-3-bd,.title-4-bd,.title-5-bd,.title-6-bd,.title-1-md,.title-2-md,.title-3-md,.title-4-md,.title-5-md,.title-6-md{font-family:var(--font-family-serif);font-weight:var(--font-rg)}.title-1-lt,.title-2-lt,.title-3-lt,.title-4-lt,.title-5-lt,.title-6-lt,.heading-1-lt,.heading-2-lt,.heading-3-lt,.heading-4-lt,.body-1-lt,.body-2-lt,.body-3-lt,.body-4-lt,.body-5-lt,.body-6-lt,.body-7-lt,.interactive-1-lt,.interactive-2-lt{font-weight:var(--font-lt)}.title-1-md,.title-2-md,.title-3-md,.title-4-md,.title-5-md,.title-6-md,.heading-1-md,.heading-2-md,.heading-3-md,.heading-4-md,.body-1-md,.body-2-md,.body-3-md,.body-4-md,.body-5-md,.body-6-md,.body-7-md,.interactive-1-md,.interactive-2-md{font-weight:var(--font-md)}.title-1-rg,.title-2-rg,.title-3-rg,.title-4-rg,.title-5-rg,.title-6-rg,.heading-1-rg,.heading-2-rg,.heading-3-rg,.heading-4-rg,.body-1-rg,.body-2-rg,.body-3-rg,.body-4-rg,.body-5-rg,.body-6-rg,.body-7-rg,.interactive-1-rg,.interactive-2-rg{font-weight:var(--font-rg)}.title-1-sb,.title-2-sb,.title-3-sb,.title-4-sb,.title-5-sb,.title-6-sb,.heading-1-sb,.heading-2-sb,.heading-3-sb,.heading-4-sb,.body-2-sb,.body-3-sb,.body-4-sb,.body-5-sb,.body-6-sb,.body-7-sb,.interactive-1-sb,.interactive-2-sb{font-weight:var(--font-sb)}.title-1-bd,.title-2-bd,.title-3-bd,.title-4-bd,.title-5-bd,.title-6-bd,.heading-1-bd,.heading-2-bd,.heading-3-bd,.heading-4-bd,.body-1-bd,.body-2-bd,.body-3-bd,.body-4-bd,.body-5-bd,.body-6-bd,.body-7-bd,.interactive-1-bd,.interactive-2-bd{font-weight:var(--font-bd)}.font-lt{font-weight:var(--font-lt)}.font-rg{font-weight:var(--font-rg)}.font-md{font-weight:var(--font-md)}.font-sb{font-weight:var(--font-sb)}.font-bd{font-weight:var(--font-bd)}.font-it{font-style:italic}.font-serif{font-family:var(--font-family-serif)}.font-sans{font-family:var(--font-family-sans)}.title-1,.title-1-sb,.title-1-bd,.title-1-rg,.title-1-lt,.title-1-md{font-size:72px;line-height:80px}.title-2,.title-2-sb,.title-2-bd,.title-2-rg,.title-2-lt,.title-2-md{font-size:48px;line-height:52px}.title-3,.title-3-sb,.title-3-bd,.title-3-rg,.title-3-lt,.title-3-md{font-size:2rem;line-height:2.75rem;}.title-4,.title-4-sb,.title-4-bd,.title-4-rg,.title-4-lt,.title-4-md{font-size:1.75rem;line-height:2rem;}.title-5,.title-5-sb,.title-5-bd,.title-5-rg,.title-5-lt,.title-5-md{font-size:1.5rem;line-height:1.75rem;}.title-6,.title-6-sb,.title-6-bd,.title-6-rg,.title-6-lt,.title-6-md{font-size:1.25rem;line-height:1.75rem;}.heading-1,.heading-1-sb,.heading-1-bd,.heading-1-rg,.heading-1-lt,.heading-1-md{font-size:2rem;line-height:2.75rem;}.heading-2,.heading-2-sb,.heading-2-bd,.heading-2-rg,.heading-2-lt,.heading-2-md{font-size:1.75rem;line-height:2rem;}.heading-3,.heading-3-sb,.heading-3-bd,.heading-3-rg,.heading-3-lt,.heading-3-md{font-size:1.5rem;line-height:1.75rem;}.heading-4,.heading-4-sb,.heading-4-bd,.heading-4-rg,.heading-4-lt,.heading-4-md{font-size:1.125rem;line-height:1.375rem;}.body-1,.body-1-sb,.body-1-bd,.body-1-rg,.body-1-lt,.body-1-md{font-size:1.5rem;line-height:2rem;}.body-2,.body-2-sb,.body-2-bd,.body-2-rg,.body-2-lt,.body-2-md{font-size:1.25rem;line-height:1.75rem;}.body-3,.body-3-sb,.body-3-bd,.body-3-rg,.body-3-lt,.body-3-md{font-size:1.125rem;line-height:1.5rem;}.body-4,.body-4-sb,.body-4-bd,.body-4-rg,.body-4-lt,.body-4-md{font-size:1rem;line-height:1.5rem;}.body-5,.body-5-sb,.body-5-bd,.body-5-rg,.body-5-lt,.body-5-md{font-size:0.875rem;line-height:1.125rem;}.body-6,.body-6-sb,.body-6-bd,.body-6-rg,.body-6-lt,.body-6-md{font-size:0.75rem;line-height:1rem;}.body-7,.body-7-sb,.body-7-bd,.body-7-rg,.body-7-lt,.body-7-md{font-size:0.625rem;line-height:0.875rem;}.interactive-1,.interactive-1-sb,.interactive-1-bd,.interactive-1-rg,.interactive-1-lt,.interactive-1-md{font-size:1rem;line-height:1.5rem;}.interactive-2,.interactive-2-sb,.interactive-2-bd,.interactive-2-rg,.interactive-2-lt,.interactive-2-md{font-size:0.875rem;line-height:1.125rem;}@media (width < 768px){.mobile-title-1,.mobile-title-1-sb,.mobile-title-1-bd,.mobile-title-1-rg,.mobile-title-1-lt,.mobile-title-1-md{font-size:4.5rem;line-height:5rem;}.mobile-title-2,.mobile-title-2-sb,.mobile-title-2-bd,.mobile-title-2-rg,.mobile-title-2-lt,.mobile-title-2-md{font-size:3rem;line-height:3.25rem;}.mobile-title-3,.mobile-title-3-sb,.mobile-title-3-bd,.mobile-title-3-rg,.mobile-title-3-lt,.mobile-title-3-md{font-size:2rem;line-height:2.75rem;}.mobile-title-4,.mobile-title-4-sb,.mobile-title-4-bd,.mobile-title-4-rg,.mobile-title-4-lt,.mobile-title-4-md{font-size:1.75rem;line-height:2rem;}.mobile-title-5,.mobile-title-5-sb,.mobile-title-5-bd,.mobile-title-5-rg,.mobile-title-5-lt,.mobile-title-5-md{font-size:1.5rem;line-height:1.75rem;}.mobile-title-6,.mobile-title-6-sb,.mobile-title-6-bd,.mobile-title-6-rg,.mobile-title-6-lt,.mobile-title-6-md{font-size:1.25rem;line-height:1.75rem;}.mobile-heading-1,.mobile-heading-1-sb,.mobile-heading-1-bd,.mobile-heading-1-rg,.mobile-heading-1-lt,.mobile-heading-1-md{font-size:2rem;line-height:2.75rem;}.mobile-heading-2,.mobile-heading-2-sb,.mobile-heading-2-bd,.mobile-heading-2-rg,.mobile-heading-2-lt,.mobile-heading-2-md{font-size:1.75rem;line-height:2rem;}.mobile-heading-3,.mobile-heading-3-sb,.mobile-heading-3-bd,.mobile-heading-3-rg,.mobile-heading-3-lt,.mobile-heading-3-md{font-size:1.5rem;line-height:1.75rem;}.mobile-heading-4,.mobile-heading-4-sb,.mobile-heading-4-bd,.mobile-heading-4-rg,.mobile-heading-4-lt,.mobile-heading-4-md{font-size:1.125rem;line-height:1.375rem;}.mobile-body-1,.mobile-body-1-sb,.mobile-body-1-bd,.mobile-body-1-rg,.mobile-body-1-lt,.mobile-body-1-md{font-size:1.5rem;line-height:2rem;}.mobile-body-2,.mobile-body-2-sb,.mobile-body-2-bd,.mobile-body-2-rg,.mobile-body-2-lt,.mobile-body-2-md{font-size:1.25rem;line-height:1.75rem;}.mobile-body-3,.mobile-body-3-sb,.mobile-body-3-bd,.mobile-body-3-rg,.mobile-body-3-lt,.mobile-body-3-md{font-size:1.125rem;line-height:1.5rem;}.mobile-body-4,.mobile-body-4-sb,.mobile-body-4-bd,.mobile-body-4-rg,.mobile-body-4-lt,.mobile-body-4-md{font-size:1rem;line-height:1.5rem;}.mobile-body-5,.mobile-body-5-sb,.mobile-body-5-bd,.mobile-body-5-rg,.mobile-body-5-lt,.mobile-body-5-md{font-size:0.875rem;line-height:1.125rem;}.mobile-body-6,.mobile-body-6-sb,.mobile-body-6-bd,.mobile-body-6-rg,.mobile-body-6-lt,.mobile-body-6-md{font-size:0.75rem;line-height:1rem;}.mobile-body-7,.mobile-body-7-sb,.mobile-body-7-bd,.mobile-body-7-rg,.mobile-body-7-lt,.mobile-body-7-md{font-size:0.625rem;line-height:0.875rem;}.mobile-interactive-1,.mobile-interactive-1-sb,.mobile-interactive-1-bd,.mobile-interactive-1-rg,.mobile-interactive-1-lt,.mobile-interactive-1-md{font-size:1rem;line-height:1.5rem;}.mobile-interactive-2,.mobile-interactive-2-sb,.mobile-interactive-2-bd,.mobile-interactive-2-rg,.mobile-interactive-2-lt,.mobile-interactive-2-md{font-size:0.875rem;line-height:1.125rem;}}@media (width >= 768px) and (width < 1152px){.tablet-title-1,.tablet-title-1-sb,.tablet-title-1-bd,.tablet-title-1-rg,.tablet-title-1-lt,.tablet-title-1-md{font-size:4.5rem;line-height:5rem;}.tablet-title-2,.tablet-title-2-sb,.tablet-title-2-bd,.tablet-title-2-rg,.tablet-title-2-lt,.tablet-title-2-md{font-size:3rem;line-height:3.25rem;}.tablet-title-3,.tablet-title-3-sb,.tablet-title-3-bd,.tablet-title-3-rg,.tablet-title-3-lt,.tablet-title-3-md{font-size:2rem;line-height:2.75rem;}.tablet-title-4,.tablet-title-4-sb,.tablet-title-4-bd,.tablet-title-4-rg,.tablet-title-4-lt,.tablet-title-4-md{font-size:1.75rem;line-height:2rem;}.tablet-title-5,.tablet-title-5-sb,.tablet-title-5-bd,.tablet-title-5-rg,.tablet-title-5-lt,.tablet-title-5-md{font-size:1.5rem;line-height:1.75rem;}.tablet-title-6,.tablet-title-6-sb,.tablet-title-6-bd,.tablet-title-6-rg,.tablet-title-6-lt,.tablet-title-6-md{font-size:1.25rem;line-height:1.75rem;}.tablet-heading-1,.tablet-heading-1-sb,.tablet-heading-1-bd,.tablet-heading-1-rg,.tablet-heading-1-lt,.tablet-heading-1-md{font-size:2rem;line-height:2.75rem;}.tablet-heading-2,.tablet-heading-2-sb,.tablet-heading-2-bd,.tablet-heading-2-rg,.tablet-heading-2-lt,.tablet-heading-2-md{font-size:1.75rem;line-height:2rem;}.tablet-heading-3,.tablet-heading-3-sb,.tablet-heading-3-bd,.tablet-heading-3-rg,.tablet-heading-3-lt,.tablet-heading-3-md{font-size:1.5rem;line-height:1.75rem;}.tablet-heading-4,.tablet-heading-4-sb,.tablet-heading-4-bd,.tablet-heading-4-rg,.tablet-heading-4-lt,.tablet-heading-4-md{font-size:1.125rem;line-height:1.375rem;}.tablet-body-1,.tablet-body-1-sb,.tablet-body-1-bd,.tablet-body-1-rg,.tablet-body-1-lt,.tablet-body-1-md{font-size:1.5rem;line-height:2rem;}.tablet-body-2,.tablet-body-2-sb,.tablet-body-2-bd,.tablet-body-2-rg,.tablet-body-2-lt,.tablet-body-2-md{font-size:1.25rem;line-height:1.75rem;}.tablet-body-3,.tablet-body-3-sb,.tablet-body-3-bd,.tablet-body-3-rg,.tablet-body-3-lt,.tablet-body-3-md{font-size:1.125rem;line-height:1.5rem;}.tablet-body-4,.tablet-body-4-sb,.tablet-body-4-bd,.tablet-body-4-rg,.tablet-body-4-lt,.tablet-body-4-md{font-size:1rem;line-height:1.5rem;}.tablet-body-5,.tablet-body-5-sb,.tablet-body-5-bd,.tablet-body-5-rg,.tablet-body-5-lt,.tablet-body-5-md{font-size:0.875rem;line-height:1.125rem;}.tablet-body-6,.tablet-body-6-sb,.tablet-body-6-bd,.tablet-body-6-rg,.tablet-body-6-lt,.tablet-body-6-md{font-size:0.75rem;line-height:1rem;}.tablet-body-7,.tablet-body-7-sb,.tablet-body-7-bd,.tablet-body-7-rg,.tablet-body-7-lt,.tablet-body-7-md{font-size:0.625rem;line-height:0.875rem;}.tablet-interactive-1,.tablet-interactive-1-sb,.tablet-interactive-1-bd,.tablet-interactive-1-rg,.tablet-interactive-1-lt,.tablet-interactive-1-md{font-size:1rem;line-height:1.5rem;}.tablet-interactive-2,.tablet-interactive-2-sb,.tablet-interactive-2-bd,.tablet-interactive-2-rg,.tablet-interactive-2-lt,.tablet-interactive-2-md{font-size:0.875rem;line-height:1.125rem;}}@media (width >= 1152px){.desktop-title-1,.desktop-title-1-sb,.desktop-title-1-bd,.desktop-title-1-rg,.desktop-title-1-lt,.desktop-title-1-md{font-size:4.5rem;line-height:5rem;}.desktop-title-2,.desktop-title-2-sb,.desktop-title-2-bd,.desktop-title-2-rg,.desktop-title-2-lt,.desktop-title-2-md{font-size:3rem;line-height:3.25rem;}.desktop-title-3,.desktop-title-3-sb,.desktop-title-3-bd,.desktop-title-3-rg,.desktop-title-3-lt,.desktop-title-3-md{font-size:2rem;line-height:2.75rem;}.desktop-title-4,.desktop-title-4-sb,.desktop-title-4-bd,.desktop-title-4-rg,.desktop-title-4-lt,.desktop-title-4-md{font-size:1.75rem;line-height:2rem;}.desktop-title-5,.desktop-title-5-sb,.desktop-title-5-bd,.desktop-title-5-rg,.desktop-title-5-lt,.desktop-title-5-md{font-size:1.5rem;line-height:1.75rem;}.desktop-title-6,.desktop-title-6-sb,.desktop-title-6-bd,.desktop-title-6-rg,.desktop-title-6-lt,.desktop-title-6-md{font-size:1.25rem;line-height:1.75rem;}.desktop-heading-1,.desktop-heading-1-sb,.desktop-heading-1-bd,.desktop-heading-1-rg,.desktop-heading-1-lt,.desktop-heading-1-md{font-size:2rem;line-height:2.75rem;}.desktop-heading-2,.desktop-heading-2-sb,.desktop-heading-2-bd,.desktop-heading-2-rg,.desktop-heading-2-lt,.desktop-heading-2-md{font-size:1.75rem;line-height:2rem;}.desktop-heading-3,.desktop-heading-3-sb,.desktop-heading-3-bd,.desktop-heading-3-rg,.desktop-heading-3-lt,.desktop-heading-3-md{font-size:1.5rem;line-height:1.75rem;}.desktop-heading-4,.desktop-heading-4-sb,.desktop-heading-4-bd,.desktop-heading-4-rg,.desktop-heading-4-lt,.desktop-heading-4-md{font-size:1.125rem;line-height:1.375rem;}.desktop-body-1,.desktop-body-1-sb,.desktop-body-1-bd,.desktop-body-1-rg,.desktop-body-1-lt,.desktop-body-1-md{font-size:1.5rem;line-height:2rem;}.desktop-body-2,.desktop-body-2-sb,.desktop-body-2-bd,.desktop-body-2-rg,.desktop-body-2-lt,.desktop-body-2-md{font-size:1.25rem;line-height:1.75rem;}.desktop-body-3,.desktop-body-3-sb,.desktop-body-3-bd,.desktop-body-3-rg,.desktop-body-3-lt,.desktop-body-3-md{font-size:1.125rem;line-height:1.5rem;}.desktop-body-4,.desktop-body-4-sb,.desktop-body-4-bd,.desktop-body-4-rg,.desktop-body-4-lt,.desktop-body-4-md{font-size:1rem;line-height:1.5rem;}.desktop-body-5,.desktop-body-5-sb,.desktop-body-5-bd,.desktop-body-5-rg,.desktop-body-5-lt,.desktop-body-5-md{font-size:0.875rem;line-height:1.125rem;}.desktop-body-6,.desktop-body-6-sb,.desktop-body-6-bd,.desktop-body-6-rg,.desktop-body-6-lt,.desktop-body-6-md{font-size:0.75rem;line-height:1rem;}.desktop-body-7,.desktop-body-7-sb,.desktop-body-7-bd,.desktop-body-7-rg,.desktop-body-7-lt,.desktop-body-7-md{font-size:0.625rem;line-height:0.875rem;}.desktop-interactive-1,.desktop-interactive-1-sb,.desktop-interactive-1-bd,.desktop-interactive-1-rg,.desktop-interactive-1-lt,.desktop-interactive-1-md{font-size:1rem;line-height:1.5rem;}.desktop-interactive-2,.desktop-interactive-2-sb,.desktop-interactive-2-bd,.desktop-interactive-2-rg,.desktop-interactive-2-lt,.desktop-interactive-2-md{font-size:0.875rem;line-height:1.125rem;}}z-button.zanit-button{--color-primary01:var(--red500);--color-hover-primary:var(--red800);--color-pressed-primary:var(--red400);--color-button-secondary:transparent;--color-primary02:transparent;--color-primary03:transparent}z-button.zanit-button-dark{--color-primary01:var(--gray950);--color-hover-primary:#000;--color-pressed-primary:var(--gray950);--color-button-secondary:transparent;--color-primary02:transparent;--color-primary03:transparent}:root{--zanit-accent-color:#ffe74c;--shadow-focus-primary:0 0 0 2px #fff, 0 0 2px 5px var(--gray950)}.zanit-link,.zanit-link-inverse{color:currentcolor;font-family:inherit;text-decoration:underline solid 12% var(--red500);text-underline-offset:28%}.zanit-link-inverse{color:var(--color-text-inverse);text-decoration-color:var(--color-text-inverse)}";
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Platform v4.
|
|
8
|
+
Stencil Client Platform v4.43.4 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
// src/utils/get-prop-descriptor.ts
|
|
13
|
+
function getPropertyDescriptor(obj, memberName, getOnly) {
|
|
14
|
+
const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
|
|
15
|
+
while (obj && obj !== stopAt) {
|
|
16
|
+
const desc = Object.getOwnPropertyDescriptor(obj, memberName);
|
|
17
|
+
if (desc && (!getOnly || desc.get)) return desc;
|
|
18
|
+
obj = Object.getPrototypeOf(obj);
|
|
19
|
+
}
|
|
20
|
+
return void 0;
|
|
21
|
+
}
|
|
15
22
|
|
|
16
23
|
// src/utils/es2022-rewire-class-members.ts
|
|
17
24
|
var reWireGetterSetter = (instance, hostRef) => {
|
|
@@ -21,18 +28,24 @@ var reWireGetterSetter = (instance, hostRef) => {
|
|
|
21
28
|
members.map(([memberName, [memberFlags]]) => {
|
|
22
29
|
if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
|
|
23
30
|
const ogValue = instance[memberName];
|
|
24
|
-
const ogDescriptor =
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
|
|
32
|
+
if (ogDescriptor) {
|
|
33
|
+
Object.defineProperty(instance, memberName, {
|
|
34
|
+
get() {
|
|
35
|
+
return ogDescriptor.get.call(this);
|
|
36
|
+
},
|
|
37
|
+
set(newValue) {
|
|
38
|
+
ogDescriptor.set.call(this, newValue);
|
|
39
|
+
},
|
|
40
|
+
configurable: true,
|
|
41
|
+
enumerable: true
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
if (hostRef.$instanceValues$.has(memberName)) {
|
|
45
|
+
instance[memberName] = hostRef.$instanceValues$.get(memberName);
|
|
46
|
+
} else if (ogValue !== void 0) {
|
|
47
|
+
instance[memberName] = ogValue;
|
|
48
|
+
}
|
|
36
49
|
}
|
|
37
50
|
});
|
|
38
51
|
};
|
|
@@ -45,9 +58,10 @@ var getHostRef = (ref) => {
|
|
|
45
58
|
return void 0;
|
|
46
59
|
};
|
|
47
60
|
var registerInstance = (lazyInstance, hostRef) => {
|
|
61
|
+
if (!hostRef) return;
|
|
48
62
|
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
49
63
|
hostRef.$lazyInstance$ = lazyInstance;
|
|
50
|
-
{
|
|
64
|
+
if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
|
|
51
65
|
reWireGetterSetter(lazyInstance, hostRef);
|
|
52
66
|
}
|
|
53
67
|
};
|
|
@@ -56,13 +70,17 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
56
70
|
$flags$: 0,
|
|
57
71
|
$hostElement$: hostElement,
|
|
58
72
|
$cmpMeta$: cmpMeta,
|
|
59
|
-
$instanceValues$: /* @__PURE__ */ new Map()
|
|
73
|
+
$instanceValues$: /* @__PURE__ */ new Map(),
|
|
74
|
+
$serializerValues$: /* @__PURE__ */ new Map()
|
|
60
75
|
};
|
|
61
76
|
{
|
|
62
77
|
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
|
63
78
|
hostElement["s-p"] = [];
|
|
64
79
|
hostElement["s-rc"] = [];
|
|
65
80
|
}
|
|
81
|
+
{
|
|
82
|
+
hostRef.$fetchedCbList$ = [];
|
|
83
|
+
}
|
|
66
84
|
const ref = hostRef;
|
|
67
85
|
hostElement.__stencil__getHostRef = () => ref;
|
|
68
86
|
return ref;
|
|
@@ -117,7 +135,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
117
135
|
|
|
118
136
|
// src/client/client-style.ts
|
|
119
137
|
var styles = /* @__PURE__ */ new Map();
|
|
120
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
121
138
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
122
139
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
123
140
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -150,12 +167,16 @@ var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
|
150
167
|
var promiseResolve = (v) => Promise.resolve(v);
|
|
151
168
|
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
152
169
|
try {
|
|
170
|
+
if (!win.document.adoptedStyleSheets) {
|
|
171
|
+
return false;
|
|
172
|
+
}
|
|
153
173
|
new CSSStyleSheet();
|
|
154
174
|
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
155
175
|
} catch (e) {
|
|
156
176
|
}
|
|
157
177
|
return false;
|
|
158
178
|
})() ;
|
|
179
|
+
var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
|
|
159
180
|
var queuePending = false;
|
|
160
181
|
var queueDomReads = [];
|
|
161
182
|
var queueDomWrites = [];
|
|
@@ -192,81 +213,34 @@ var flush = () => {
|
|
|
192
213
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
193
214
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
194
215
|
|
|
195
|
-
// src/utils/
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
// src/utils/query-nonce-meta-tag-content.ts
|
|
203
|
-
function queryNonceMetaTagContent(doc) {
|
|
204
|
-
var _a, _b, _c;
|
|
205
|
-
return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
216
|
+
// src/utils/style.ts
|
|
217
|
+
function createStyleSheetIfNeededAndSupported(styles2) {
|
|
218
|
+
if (!supportsConstructableStylesheets) return void 0;
|
|
219
|
+
const sheet = new CSSStyleSheet();
|
|
220
|
+
sheet.replaceSync(styles2);
|
|
221
|
+
return sheet;
|
|
206
222
|
}
|
|
207
223
|
|
|
208
|
-
// src/utils/
|
|
209
|
-
var
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
});
|
|
222
|
-
var ok = (value) => ({
|
|
223
|
-
isOk: true,
|
|
224
|
-
isErr: false,
|
|
225
|
-
value
|
|
226
|
-
});
|
|
227
|
-
var err = (value) => ({
|
|
228
|
-
isOk: false,
|
|
229
|
-
isErr: true,
|
|
230
|
-
value
|
|
231
|
-
});
|
|
232
|
-
function map(result, fn) {
|
|
233
|
-
if (result.isOk) {
|
|
234
|
-
const val = fn(result.value);
|
|
235
|
-
if (val instanceof Promise) {
|
|
236
|
-
return val.then((newVal) => ok(newVal));
|
|
224
|
+
// src/utils/shadow-root.ts
|
|
225
|
+
var globalStyleSheet;
|
|
226
|
+
function createShadowRoot(cmpMeta) {
|
|
227
|
+
var _a;
|
|
228
|
+
const opts = { mode: "open" };
|
|
229
|
+
{
|
|
230
|
+
opts.delegatesFocus = !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */);
|
|
231
|
+
}
|
|
232
|
+
const shadowRoot = this.attachShadow(opts);
|
|
233
|
+
if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported(globalStyles)) != null ? _a : null;
|
|
234
|
+
if (globalStyleSheet) {
|
|
235
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
236
|
+
shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
|
|
237
237
|
} else {
|
|
238
|
-
|
|
238
|
+
shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
|
|
239
239
|
}
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
}
|
|
245
|
-
throw "should never get here";
|
|
246
|
-
}
|
|
247
|
-
var unwrap = (result) => {
|
|
248
|
-
if (result.isOk) {
|
|
249
|
-
return result.value;
|
|
250
|
-
} else {
|
|
251
|
-
throw result.value;
|
|
252
|
-
}
|
|
253
|
-
};
|
|
254
|
-
var unwrapErr = (result) => {
|
|
255
|
-
if (result.isErr) {
|
|
256
|
-
return result.value;
|
|
257
|
-
} else {
|
|
258
|
-
throw result.value;
|
|
259
|
-
}
|
|
260
|
-
};
|
|
261
|
-
function createShadowRoot(cmpMeta) {
|
|
262
|
-
const shadowRoot = this.attachShadow({
|
|
263
|
-
mode: "open",
|
|
264
|
-
delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
|
|
265
|
-
}) ;
|
|
266
|
-
if (supportsConstructableStylesheets) {
|
|
267
|
-
const sheet = new CSSStyleSheet();
|
|
268
|
-
sheet.replaceSync(globalStyles);
|
|
269
|
-
shadowRoot.adoptedStyleSheets.push(sheet);
|
|
240
|
+
} else if (!supportsConstructableStylesheets) {
|
|
241
|
+
const styleElm = document.createElement("style");
|
|
242
|
+
styleElm.innerHTML = globalStyles;
|
|
243
|
+
shadowRoot.prepend(styleElm);
|
|
270
244
|
}
|
|
271
245
|
}
|
|
272
246
|
var createTime = (fnName, tagName = "") => {
|
|
@@ -283,7 +257,147 @@ var uniqueTime = (key, measureText) => {
|
|
|
283
257
|
};
|
|
284
258
|
}
|
|
285
259
|
};
|
|
260
|
+
|
|
261
|
+
// src/utils/query-nonce-meta-tag-content.ts
|
|
262
|
+
function queryNonceMetaTagContent(doc) {
|
|
263
|
+
var _a, _b, _c;
|
|
264
|
+
return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
// src/runtime/styles.ts
|
|
268
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
269
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
270
|
+
let style = styles.get(scopeId2);
|
|
271
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
272
|
+
style = style || new CSSStyleSheet();
|
|
273
|
+
if (typeof style === "string") {
|
|
274
|
+
style = cssText;
|
|
275
|
+
} else {
|
|
276
|
+
style.replaceSync(cssText);
|
|
277
|
+
}
|
|
278
|
+
} else {
|
|
279
|
+
style = cssText;
|
|
280
|
+
}
|
|
281
|
+
styles.set(scopeId2, style);
|
|
282
|
+
};
|
|
283
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
284
|
+
var _a, _b, _c;
|
|
285
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
286
|
+
const style = styles.get(scopeId2);
|
|
287
|
+
if (!win.document) {
|
|
288
|
+
return scopeId2;
|
|
289
|
+
}
|
|
290
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
291
|
+
if (style) {
|
|
292
|
+
if (typeof style === "string") {
|
|
293
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
294
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
295
|
+
let styleElm;
|
|
296
|
+
if (!appliedStyles) {
|
|
297
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
298
|
+
}
|
|
299
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
300
|
+
styleElm = win.document.createElement("style");
|
|
301
|
+
styleElm.textContent = style;
|
|
302
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
303
|
+
if (nonce != null) {
|
|
304
|
+
styleElm.setAttribute("nonce", nonce);
|
|
305
|
+
}
|
|
306
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
307
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
308
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
309
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
310
|
+
styleContainerNode.insertBefore(
|
|
311
|
+
styleElm,
|
|
312
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
313
|
+
);
|
|
314
|
+
} else if ("host" in styleContainerNode) {
|
|
315
|
+
if (supportsConstructableStylesheets) {
|
|
316
|
+
const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;
|
|
317
|
+
const stylesheet = new currentWindow.CSSStyleSheet();
|
|
318
|
+
stylesheet.replaceSync(style);
|
|
319
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
320
|
+
styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
|
|
321
|
+
} else {
|
|
322
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
323
|
+
}
|
|
324
|
+
} else {
|
|
325
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
326
|
+
if (existingStyleContainer && true) {
|
|
327
|
+
existingStyleContainer.textContent = style + existingStyleContainer.textContent;
|
|
328
|
+
} else {
|
|
329
|
+
styleContainerNode.prepend(styleElm);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
} else {
|
|
333
|
+
styleContainerNode.append(styleElm);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
337
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
338
|
+
}
|
|
339
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
340
|
+
styleElm.textContent += SLOT_FB_CSS;
|
|
341
|
+
}
|
|
342
|
+
if (appliedStyles) {
|
|
343
|
+
appliedStyles.add(scopeId2);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
} else {
|
|
347
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
348
|
+
if (!appliedStyles) {
|
|
349
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
350
|
+
}
|
|
351
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
352
|
+
const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;
|
|
353
|
+
let stylesheet;
|
|
354
|
+
if (style.constructor === currentWindow.CSSStyleSheet) {
|
|
355
|
+
stylesheet = style;
|
|
356
|
+
} else {
|
|
357
|
+
stylesheet = new currentWindow.CSSStyleSheet();
|
|
358
|
+
for (let i2 = 0; i2 < style.cssRules.length; i2++) {
|
|
359
|
+
stylesheet.insertRule(style.cssRules[i2].cssText, i2);
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
363
|
+
styleContainerNode.adoptedStyleSheets.push(stylesheet);
|
|
364
|
+
} else {
|
|
365
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
|
|
366
|
+
}
|
|
367
|
+
appliedStyles.add(scopeId2);
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
return scopeId2;
|
|
372
|
+
};
|
|
373
|
+
var attachStyles = (hostRef) => {
|
|
374
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
375
|
+
const elm = hostRef.$hostElement$;
|
|
376
|
+
const flags = cmpMeta.$flags$;
|
|
377
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
378
|
+
const scopeId2 = addStyle(
|
|
379
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
380
|
+
cmpMeta);
|
|
381
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
382
|
+
elm["s-sc"] = scopeId2;
|
|
383
|
+
elm.classList.add(scopeId2 + "-h");
|
|
384
|
+
}
|
|
385
|
+
endAttachStyles();
|
|
386
|
+
};
|
|
387
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
388
|
+
|
|
389
|
+
// src/utils/helpers.ts
|
|
390
|
+
var isDef = (v) => v != null && v !== void 0;
|
|
391
|
+
var isComplexType = (o) => {
|
|
392
|
+
o = typeof o;
|
|
393
|
+
return o === "object" || o === "function";
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
// src/runtime/vdom/h.ts
|
|
286
397
|
var h = (nodeName, vnodeData, ...children) => {
|
|
398
|
+
if (typeof nodeName === "string") {
|
|
399
|
+
nodeName = transformTag(nodeName);
|
|
400
|
+
}
|
|
287
401
|
let child = null;
|
|
288
402
|
let key = null;
|
|
289
403
|
let simple = false;
|
|
@@ -340,7 +454,8 @@ var newVNode = (tag, text) => {
|
|
|
340
454
|
const vnode = {
|
|
341
455
|
$flags$: 0,
|
|
342
456
|
$tag$: tag,
|
|
343
|
-
|
|
457
|
+
// Normalize undefined to null to prevent rendering "undefined" as text
|
|
458
|
+
$text$: text != null ? text : null,
|
|
344
459
|
$elm$: null,
|
|
345
460
|
$children$: null
|
|
346
461
|
};
|
|
@@ -384,22 +499,39 @@ var convertToPrivate = (node) => {
|
|
|
384
499
|
vnode.$name$ = node.vname;
|
|
385
500
|
return vnode;
|
|
386
501
|
};
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
)
|
|
502
|
+
|
|
503
|
+
// src/runtime/normalize-watchers.ts
|
|
504
|
+
var normalizeWatchers = (raw) => {
|
|
505
|
+
if (!raw) return void 0;
|
|
506
|
+
const keys = Object.keys(raw);
|
|
507
|
+
if (keys.length === 0) return void 0;
|
|
508
|
+
let hasLegacy = false;
|
|
509
|
+
for (const propName of keys) {
|
|
510
|
+
if (hasLegacy) break;
|
|
511
|
+
for (const h2 of raw[propName]) {
|
|
512
|
+
if (typeof h2 === "string") {
|
|
513
|
+
hasLegacy = true;
|
|
514
|
+
break;
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
if (!hasLegacy) return raw;
|
|
519
|
+
const out = {};
|
|
520
|
+
for (const propName of keys) {
|
|
521
|
+
out[propName] = raw[propName].map(
|
|
522
|
+
(h2) => typeof h2 === "string" ? { [h2]: 0 } : h2
|
|
523
|
+
);
|
|
524
|
+
}
|
|
525
|
+
return out;
|
|
395
526
|
};
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
var parsePropertyValue = (propValue, propType) => {
|
|
527
|
+
|
|
528
|
+
// src/runtime/parse-property-value.ts
|
|
529
|
+
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
400
530
|
if (propValue != null && !isComplexType(propValue)) {
|
|
401
531
|
if (propType & 4 /* Boolean */) {
|
|
402
|
-
|
|
532
|
+
{
|
|
533
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
534
|
+
}
|
|
403
535
|
}
|
|
404
536
|
if (propType & 2 /* Number */) {
|
|
405
537
|
return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
|
|
@@ -411,7 +543,10 @@ var parsePropertyValue = (propValue, propType) => {
|
|
|
411
543
|
}
|
|
412
544
|
return propValue;
|
|
413
545
|
};
|
|
414
|
-
var getElement = (ref) =>
|
|
546
|
+
var getElement = (ref) => {
|
|
547
|
+
var _a;
|
|
548
|
+
return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
|
|
549
|
+
};
|
|
415
550
|
|
|
416
551
|
// src/runtime/event-emitter.ts
|
|
417
552
|
var createEvent = (ref, name, flags) => {
|
|
@@ -432,102 +567,6 @@ var emitEvent = (elm, name, opts) => {
|
|
|
432
567
|
elm.dispatchEvent(ev);
|
|
433
568
|
return ev;
|
|
434
569
|
};
|
|
435
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
436
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
437
|
-
let style = styles.get(scopeId2);
|
|
438
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
439
|
-
style = style || new CSSStyleSheet();
|
|
440
|
-
if (typeof style === "string") {
|
|
441
|
-
style = cssText;
|
|
442
|
-
} else {
|
|
443
|
-
style.replaceSync(cssText);
|
|
444
|
-
}
|
|
445
|
-
} else {
|
|
446
|
-
style = cssText;
|
|
447
|
-
}
|
|
448
|
-
styles.set(scopeId2, style);
|
|
449
|
-
};
|
|
450
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
451
|
-
var _a;
|
|
452
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
453
|
-
const style = styles.get(scopeId2);
|
|
454
|
-
if (!win.document) {
|
|
455
|
-
return scopeId2;
|
|
456
|
-
}
|
|
457
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
458
|
-
if (style) {
|
|
459
|
-
if (typeof style === "string") {
|
|
460
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
461
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
462
|
-
let styleElm;
|
|
463
|
-
if (!appliedStyles) {
|
|
464
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
465
|
-
}
|
|
466
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
467
|
-
{
|
|
468
|
-
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
|
|
469
|
-
styleElm.innerHTML = style;
|
|
470
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
471
|
-
if (nonce != null) {
|
|
472
|
-
styleElm.setAttribute("nonce", nonce);
|
|
473
|
-
}
|
|
474
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
475
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
476
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
477
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
478
|
-
styleContainerNode.insertBefore(
|
|
479
|
-
styleElm,
|
|
480
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
481
|
-
);
|
|
482
|
-
} else if ("host" in styleContainerNode) {
|
|
483
|
-
if (supportsConstructableStylesheets) {
|
|
484
|
-
const stylesheet = new CSSStyleSheet();
|
|
485
|
-
stylesheet.replaceSync(style);
|
|
486
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
487
|
-
} else {
|
|
488
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
489
|
-
if (existingStyleContainer) {
|
|
490
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
491
|
-
} else {
|
|
492
|
-
styleContainerNode.prepend(styleElm);
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
} else {
|
|
496
|
-
styleContainerNode.append(styleElm);
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
500
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
504
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
505
|
-
}
|
|
506
|
-
if (appliedStyles) {
|
|
507
|
-
appliedStyles.add(scopeId2);
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
511
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
return scopeId2;
|
|
515
|
-
};
|
|
516
|
-
var attachStyles = (hostRef) => {
|
|
517
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
518
|
-
const elm = hostRef.$hostElement$;
|
|
519
|
-
const flags = cmpMeta.$flags$;
|
|
520
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
521
|
-
const scopeId2 = addStyle(
|
|
522
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
523
|
-
cmpMeta);
|
|
524
|
-
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
525
|
-
elm["s-sc"] = scopeId2;
|
|
526
|
-
elm.classList.add(scopeId2 + "-h");
|
|
527
|
-
}
|
|
528
|
-
endAttachStyles();
|
|
529
|
-
};
|
|
530
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
531
570
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
532
571
|
if (oldValue === newValue) {
|
|
533
572
|
return;
|
|
@@ -544,7 +583,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
544
583
|
}
|
|
545
584
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
546
585
|
if (newValue) {
|
|
547
|
-
newValue
|
|
586
|
+
queueRefAttachment(newValue, elm);
|
|
548
587
|
}
|
|
549
588
|
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
550
589
|
if (memberName[2] === "-") {
|
|
@@ -564,15 +603,45 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
564
603
|
plt.ael(elm, memberName, newValue, capture);
|
|
565
604
|
}
|
|
566
605
|
}
|
|
606
|
+
} else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
|
|
607
|
+
const propName = memberName.slice(5);
|
|
608
|
+
let attrName;
|
|
609
|
+
{
|
|
610
|
+
const hostRef = getHostRef(elm);
|
|
611
|
+
if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
|
|
612
|
+
const memberMeta = hostRef.$cmpMeta$.$members$[propName];
|
|
613
|
+
if (memberMeta && memberMeta[1]) {
|
|
614
|
+
attrName = memberMeta[1];
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
if (!attrName) {
|
|
619
|
+
attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
620
|
+
}
|
|
621
|
+
if (newValue == null || newValue === false) {
|
|
622
|
+
if (newValue !== false || elm.getAttribute(attrName) === "") {
|
|
623
|
+
elm.removeAttribute(attrName);
|
|
624
|
+
}
|
|
625
|
+
} else {
|
|
626
|
+
elm.setAttribute(attrName, newValue === true ? "" : newValue);
|
|
627
|
+
}
|
|
628
|
+
return;
|
|
629
|
+
} else if (memberName[0] === "p" && memberName.startsWith("prop:")) {
|
|
630
|
+
const propName = memberName.slice(5);
|
|
631
|
+
try {
|
|
632
|
+
elm[propName] = newValue;
|
|
633
|
+
} catch (e) {
|
|
634
|
+
}
|
|
635
|
+
return;
|
|
567
636
|
} else {
|
|
568
637
|
const isComplex = isComplexType(newValue);
|
|
569
|
-
if ((isProp || isComplex && newValue !== null) &&
|
|
638
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
570
639
|
try {
|
|
571
640
|
if (!elm.tagName.includes("-")) {
|
|
572
641
|
const n = newValue == null ? "" : newValue;
|
|
573
642
|
if (memberName === "list") {
|
|
574
643
|
isProp = false;
|
|
575
|
-
} else if (oldValue == null || elm[memberName]
|
|
644
|
+
} else if (oldValue == null || elm[memberName] !== n) {
|
|
576
645
|
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
577
646
|
elm[memberName] = n;
|
|
578
647
|
} else {
|
|
@@ -654,18 +723,18 @@ function sortedAttrNames(attrNames) {
|
|
|
654
723
|
var scopeId;
|
|
655
724
|
var hostTagName;
|
|
656
725
|
var isSvgMode = false;
|
|
726
|
+
var refCallbacksToRemove = [];
|
|
727
|
+
var refCallbacksToAttach = [];
|
|
657
728
|
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
658
729
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
659
730
|
let i2 = 0;
|
|
660
731
|
let elm;
|
|
661
732
|
let childNode;
|
|
662
|
-
if (newVNode2.$text$
|
|
733
|
+
if (newVNode2.$text$ != null) {
|
|
663
734
|
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
664
735
|
} else {
|
|
665
736
|
if (!win.document) {
|
|
666
|
-
throw new Error(
|
|
667
|
-
"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
|
|
668
|
-
);
|
|
737
|
+
throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
|
|
669
738
|
}
|
|
670
739
|
elm = newVNode2.$elm$ = win.document.createElement(
|
|
671
740
|
newVNode2.$tag$
|
|
@@ -677,10 +746,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
677
746
|
elm.classList.add(elm["s-si"] = scopeId);
|
|
678
747
|
}
|
|
679
748
|
if (newVNode2.$children$) {
|
|
749
|
+
const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
|
|
680
750
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
681
751
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
682
752
|
if (childNode) {
|
|
683
|
-
|
|
753
|
+
appendTarget.appendChild(childNode);
|
|
684
754
|
}
|
|
685
755
|
}
|
|
686
756
|
}
|
|
@@ -694,6 +764,9 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
|
694
764
|
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
695
765
|
containerElm = containerElm.shadowRoot;
|
|
696
766
|
}
|
|
767
|
+
if (parentVNode.$tag$ === "template") {
|
|
768
|
+
containerElm = containerElm.content;
|
|
769
|
+
}
|
|
697
770
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
698
771
|
if (vnodes[startIdx]) {
|
|
699
772
|
childNode = createElm(null, parentVNode, startIdx);
|
|
@@ -729,6 +802,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
729
802
|
let newEndVnode = newCh[newEndIdx];
|
|
730
803
|
let node;
|
|
731
804
|
let elmToMove;
|
|
805
|
+
const containerElm = newVNode2.$tag$ === "template" ? parentElm.content : parentElm;
|
|
732
806
|
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
733
807
|
if (oldStartVnode == null) {
|
|
734
808
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
@@ -748,12 +822,12 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
748
822
|
newEndVnode = newCh[--newEndIdx];
|
|
749
823
|
} else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
|
750
824
|
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
751
|
-
insertBefore(
|
|
825
|
+
insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
752
826
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
753
827
|
newEndVnode = newCh[--newEndIdx];
|
|
754
828
|
} else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
755
829
|
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
756
|
-
insertBefore(
|
|
830
|
+
insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
757
831
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
758
832
|
newStartVnode = newCh[++newStartIdx];
|
|
759
833
|
} else {
|
|
@@ -817,7 +891,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
817
891
|
const oldChildren = oldVNode.$children$;
|
|
818
892
|
const newChildren = newVNode2.$children$;
|
|
819
893
|
const text = newVNode2.$text$;
|
|
820
|
-
if (text
|
|
894
|
+
if (text == null) {
|
|
821
895
|
{
|
|
822
896
|
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
823
897
|
}
|
|
@@ -833,46 +907,39 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
833
907
|
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
834
908
|
) {
|
|
835
909
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
836
|
-
}
|
|
910
|
+
} else ;
|
|
837
911
|
} else if (oldVNode.$text$ !== text) {
|
|
838
912
|
elm.data = text;
|
|
839
913
|
}
|
|
840
914
|
};
|
|
841
915
|
var nullifyVNodeRefs = (vNode) => {
|
|
842
916
|
{
|
|
843
|
-
vNode.$attrs$ && vNode.$attrs$.ref
|
|
917
|
+
if (vNode.$attrs$ && vNode.$attrs$.ref) {
|
|
918
|
+
refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));
|
|
919
|
+
}
|
|
844
920
|
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
845
921
|
}
|
|
846
922
|
};
|
|
847
|
-
var
|
|
848
|
-
|
|
849
|
-
|
|
923
|
+
var queueRefAttachment = (refCallback, elm) => {
|
|
924
|
+
{
|
|
925
|
+
refCallbacksToAttach.push(() => refCallback(elm));
|
|
850
926
|
}
|
|
927
|
+
};
|
|
928
|
+
var flushQueuedRefCallbacks = () => {
|
|
851
929
|
{
|
|
852
|
-
|
|
930
|
+
refCallbacksToRemove.forEach((cb) => cb());
|
|
931
|
+
refCallbacksToRemove.length = 0;
|
|
932
|
+
refCallbacksToAttach.forEach((cb) => cb());
|
|
933
|
+
refCallbacksToAttach.length = 0;
|
|
853
934
|
}
|
|
854
935
|
};
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
const hostName = slotNode["s-hn"];
|
|
861
|
-
(_a = newParent.classList) == null ? void 0 : _a.add(scopeId2 + "-s");
|
|
862
|
-
if (oldParent && ((_b = oldParent.classList) == null ? void 0 : _b.contains(scopeId2 + "-s"))) {
|
|
863
|
-
let child = (oldParent.__childNodes || oldParent.childNodes)[0];
|
|
864
|
-
let found = false;
|
|
865
|
-
while (child) {
|
|
866
|
-
if (child["s-sn"] !== scopeName && child["s-hn"] === hostName && !!child["s-sr"]) {
|
|
867
|
-
found = true;
|
|
868
|
-
break;
|
|
869
|
-
}
|
|
870
|
-
child = child.nextSibling;
|
|
871
|
-
}
|
|
872
|
-
if (!found) oldParent.classList.remove(scopeId2 + "-s");
|
|
873
|
-
}
|
|
936
|
+
var insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
937
|
+
if (parent.__insertBefore) {
|
|
938
|
+
return parent.__insertBefore(newNode, reference);
|
|
939
|
+
} else {
|
|
940
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
874
941
|
}
|
|
875
|
-
}
|
|
942
|
+
};
|
|
876
943
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
877
944
|
const hostElm = hostRef.$hostElement$;
|
|
878
945
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
@@ -894,6 +961,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
894
961
|
scopeId = hostElm["s-sc"];
|
|
895
962
|
}
|
|
896
963
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
964
|
+
flushQueuedRefCallbacks();
|
|
897
965
|
};
|
|
898
966
|
|
|
899
967
|
// src/runtime/update-component.ts
|
|
@@ -919,6 +987,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
919
987
|
}
|
|
920
988
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
921
989
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
990
|
+
if (isInitialLoad) {
|
|
991
|
+
queueMicrotask(() => {
|
|
992
|
+
dispatch();
|
|
993
|
+
});
|
|
994
|
+
return;
|
|
995
|
+
}
|
|
922
996
|
return writeTask(dispatch) ;
|
|
923
997
|
};
|
|
924
998
|
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
@@ -933,10 +1007,15 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
933
1007
|
let maybePromise;
|
|
934
1008
|
if (isInitialLoad) {
|
|
935
1009
|
{
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
hostRef.$queuedListeners
|
|
939
|
-
|
|
1010
|
+
{
|
|
1011
|
+
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
1012
|
+
if (hostRef.$queuedListeners$) {
|
|
1013
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
1014
|
+
hostRef.$queuedListeners$ = void 0;
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
if (hostRef.$fetchedCbList$.length) {
|
|
1018
|
+
hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
|
|
940
1019
|
}
|
|
941
1020
|
}
|
|
942
1021
|
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
@@ -947,8 +1026,8 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
947
1026
|
endSchedule();
|
|
948
1027
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
949
1028
|
};
|
|
950
|
-
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((
|
|
951
|
-
console.error(
|
|
1029
|
+
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
|
|
1030
|
+
console.error(err);
|
|
952
1031
|
fn();
|
|
953
1032
|
}) : fn();
|
|
954
1033
|
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
@@ -976,7 +1055,7 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
976
1055
|
if (childrenPromises.length === 0) {
|
|
977
1056
|
postUpdate();
|
|
978
1057
|
} else {
|
|
979
|
-
Promise.all(childrenPromises).then(postUpdate);
|
|
1058
|
+
Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
|
|
980
1059
|
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
981
1060
|
childrenPromises.length = 0;
|
|
982
1061
|
}
|
|
@@ -1060,6 +1139,9 @@ var addHydratedFlag = (elm) => {
|
|
|
1060
1139
|
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
1061
1140
|
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
1062
1141
|
const hostRef = getHostRef(ref);
|
|
1142
|
+
if (!hostRef) {
|
|
1143
|
+
return;
|
|
1144
|
+
}
|
|
1063
1145
|
if (!hostRef) {
|
|
1064
1146
|
throw new Error(
|
|
1065
1147
|
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
|
|
@@ -1069,30 +1151,42 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1069
1151
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
1070
1152
|
const flags = hostRef.$flags$;
|
|
1071
1153
|
const instance = hostRef.$lazyInstance$ ;
|
|
1072
|
-
newVal = parsePropertyValue(
|
|
1154
|
+
newVal = parsePropertyValue(
|
|
1155
|
+
newVal,
|
|
1156
|
+
cmpMeta.$members$[propName][0]);
|
|
1073
1157
|
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
1074
1158
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1075
1159
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
1076
1160
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
1077
|
-
if (
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1161
|
+
if (cmpMeta.$watchers$) {
|
|
1162
|
+
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1163
|
+
if (watchMethods) {
|
|
1164
|
+
watchMethods.map((watcher) => {
|
|
1165
|
+
try {
|
|
1166
|
+
const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
|
|
1167
|
+
if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {
|
|
1168
|
+
if (!instance) {
|
|
1169
|
+
hostRef.$fetchedCbList$.push(() => {
|
|
1170
|
+
hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);
|
|
1171
|
+
});
|
|
1172
|
+
} else {
|
|
1173
|
+
instance[watchMethodName](newVal, oldVal, propName);
|
|
1174
|
+
}
|
|
1086
1175
|
}
|
|
1087
|
-
})
|
|
1088
|
-
|
|
1089
|
-
}
|
|
1090
|
-
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1091
|
-
if (instance.componentShouldUpdate) {
|
|
1092
|
-
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
1093
|
-
return;
|
|
1176
|
+
} catch (e) {
|
|
1177
|
+
consoleError(e, elm);
|
|
1094
1178
|
}
|
|
1179
|
+
});
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
if (flags & 2 /* hasRendered */) {
|
|
1183
|
+
if (instance.componentShouldUpdate) {
|
|
1184
|
+
const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
|
|
1185
|
+
if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
|
|
1186
|
+
return;
|
|
1095
1187
|
}
|
|
1188
|
+
}
|
|
1189
|
+
if (!(flags & 16 /* isQueuedForUpdate */)) {
|
|
1096
1190
|
scheduleUpdate(hostRef, false);
|
|
1097
1191
|
}
|
|
1098
1192
|
}
|
|
@@ -1103,14 +1197,22 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1103
1197
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1104
1198
|
var _a, _b;
|
|
1105
1199
|
const prototype = Cstr.prototype;
|
|
1106
|
-
if (cmpMeta.$members$ ||
|
|
1107
|
-
|
|
1108
|
-
cmpMeta.$watchers$
|
|
1200
|
+
if (cmpMeta.$members$ || BUILD.propChangeCallback) {
|
|
1201
|
+
{
|
|
1202
|
+
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
1203
|
+
cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
|
|
1204
|
+
}
|
|
1205
|
+
if (Cstr.deserializers && !cmpMeta.$deserializers$) {
|
|
1206
|
+
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
1207
|
+
}
|
|
1208
|
+
if (Cstr.serializers && !cmpMeta.$serializers$) {
|
|
1209
|
+
cmpMeta.$serializers$ = Cstr.serializers;
|
|
1210
|
+
}
|
|
1109
1211
|
}
|
|
1110
1212
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1111
1213
|
members.map(([memberName, [memberFlags]]) => {
|
|
1112
1214
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1113
|
-
const { get: origGetter, set: origSetter } =
|
|
1215
|
+
const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
|
|
1114
1216
|
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1115
1217
|
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1116
1218
|
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
@@ -1133,14 +1235,19 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1133
1235
|
Object.defineProperty(prototype, memberName, {
|
|
1134
1236
|
set(newValue) {
|
|
1135
1237
|
const ref = getHostRef(this);
|
|
1238
|
+
if (!ref) {
|
|
1239
|
+
return;
|
|
1240
|
+
}
|
|
1136
1241
|
if (origSetter) {
|
|
1137
1242
|
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1138
1243
|
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
1139
1244
|
newValue = ref.$instanceValues$.get(memberName);
|
|
1140
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1141
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1142
1245
|
}
|
|
1143
|
-
origSetter.apply(this, [
|
|
1246
|
+
origSetter.apply(this, [
|
|
1247
|
+
parsePropertyValue(
|
|
1248
|
+
newValue,
|
|
1249
|
+
memberFlags)
|
|
1250
|
+
]);
|
|
1144
1251
|
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1145
1252
|
setValue(this, memberName, newValue, cmpMeta);
|
|
1146
1253
|
return;
|
|
@@ -1149,7 +1256,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1149
1256
|
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1150
1257
|
setValue(this, memberName, newValue, cmpMeta);
|
|
1151
1258
|
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1152
|
-
ref.$
|
|
1259
|
+
ref.$fetchedCbList$.push(() => {
|
|
1153
1260
|
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1154
1261
|
ref.$lazyInstance$[memberName] = newValue;
|
|
1155
1262
|
}
|
|
@@ -1162,13 +1269,17 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1162
1269
|
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1163
1270
|
ref.$instanceValues$.set(memberName, currentValue);
|
|
1164
1271
|
}
|
|
1165
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
1272
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
1273
|
+
newValue,
|
|
1274
|
+
memberFlags);
|
|
1166
1275
|
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1167
1276
|
};
|
|
1168
1277
|
if (ref.$lazyInstance$) {
|
|
1169
1278
|
setterSetVal();
|
|
1170
1279
|
} else {
|
|
1171
|
-
ref.$
|
|
1280
|
+
ref.$fetchedCbList$.push(() => {
|
|
1281
|
+
setterSetVal();
|
|
1282
|
+
});
|
|
1172
1283
|
}
|
|
1173
1284
|
}
|
|
1174
1285
|
}
|
|
@@ -1181,29 +1292,36 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1181
1292
|
plt.jmp(() => {
|
|
1182
1293
|
var _a2;
|
|
1183
1294
|
const propName = attrNameToPropName.get(attrName);
|
|
1295
|
+
const hostRef = getHostRef(this);
|
|
1184
1296
|
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
1185
1297
|
newValue = this[propName];
|
|
1186
1298
|
delete this[propName];
|
|
1187
|
-
}
|
|
1299
|
+
}
|
|
1300
|
+
if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
1188
1301
|
this[propName] == newValue) {
|
|
1189
1302
|
return;
|
|
1190
1303
|
} else if (propName == null) {
|
|
1191
|
-
const hostRef = getHostRef(this);
|
|
1192
1304
|
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
1193
|
-
if (flags2 && !(flags2 & 8 /* isConstructingInstance */) &&
|
|
1305
|
+
if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
|
|
1194
1306
|
const instance = hostRef.$lazyInstance$ ;
|
|
1195
1307
|
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
1196
|
-
entry == null ? void 0 : entry.forEach((
|
|
1197
|
-
|
|
1198
|
-
|
|
1308
|
+
entry == null ? void 0 : entry.forEach((watcher) => {
|
|
1309
|
+
const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
|
|
1310
|
+
if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
|
|
1311
|
+
instance[watchMethodName].call(instance, newValue, oldValue, attrName);
|
|
1199
1312
|
}
|
|
1200
1313
|
});
|
|
1201
1314
|
}
|
|
1202
1315
|
return;
|
|
1203
1316
|
}
|
|
1317
|
+
const propFlags = members.find(([m]) => m === propName);
|
|
1318
|
+
const isBooleanTarget = propFlags && propFlags[1][0] & 4 /* Boolean */;
|
|
1319
|
+
const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
|
|
1320
|
+
if (isBooleanTarget) {
|
|
1321
|
+
newValue = newValue === null || newValue === "false" ? false : true;
|
|
1322
|
+
}
|
|
1204
1323
|
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1205
|
-
|
|
1206
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1324
|
+
if (!isSpuriousBooleanRemoval && newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1207
1325
|
this[propName] = newValue;
|
|
1208
1326
|
}
|
|
1209
1327
|
});
|
|
@@ -1211,7 +1329,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1211
1329
|
Cstr.observedAttributes = Array.from(
|
|
1212
1330
|
/* @__PURE__ */ new Set([
|
|
1213
1331
|
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
|
1214
|
-
...members.filter(([_, m]) => m[0] &
|
|
1332
|
+
...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
|
|
1215
1333
|
const attrName = m[1] || propName;
|
|
1216
1334
|
attrNameToPropName.set(attrName, propName);
|
|
1217
1335
|
return attrName;
|
|
@@ -1226,69 +1344,84 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1226
1344
|
// src/runtime/initialize-component.ts
|
|
1227
1345
|
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1228
1346
|
let Cstr;
|
|
1229
|
-
|
|
1230
|
-
hostRef.$flags$
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1347
|
+
try {
|
|
1348
|
+
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1349
|
+
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1350
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1351
|
+
if (bundleId) {
|
|
1352
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1353
|
+
if (CstrImport && "then" in CstrImport) {
|
|
1354
|
+
const endLoad = uniqueTime();
|
|
1355
|
+
Cstr = await CstrImport;
|
|
1356
|
+
endLoad();
|
|
1357
|
+
} else {
|
|
1358
|
+
Cstr = CstrImport;
|
|
1359
|
+
}
|
|
1360
|
+
if (!Cstr) {
|
|
1361
|
+
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
1362
|
+
}
|
|
1363
|
+
if (!Cstr.isProxied) {
|
|
1364
|
+
{
|
|
1365
|
+
cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
|
|
1366
|
+
cmpMeta.$serializers$ = Cstr.serializers;
|
|
1367
|
+
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
1368
|
+
}
|
|
1369
|
+
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1370
|
+
Cstr.isProxied = true;
|
|
1371
|
+
}
|
|
1372
|
+
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
|
1245
1373
|
{
|
|
1246
|
-
|
|
1374
|
+
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
1247
1375
|
}
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1376
|
+
try {
|
|
1377
|
+
new Cstr(hostRef);
|
|
1378
|
+
} catch (e) {
|
|
1379
|
+
consoleError(e, elm);
|
|
1380
|
+
}
|
|
1381
|
+
{
|
|
1382
|
+
hostRef.$flags$ &= -9 /* isConstructingInstance */;
|
|
1383
|
+
}
|
|
1384
|
+
{
|
|
1385
|
+
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1386
|
+
}
|
|
1387
|
+
endNewInstance();
|
|
1388
|
+
{
|
|
1389
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1390
|
+
}
|
|
1391
|
+
} else {
|
|
1392
|
+
Cstr = elm.constructor;
|
|
1393
|
+
const cmpTag = elm.localName;
|
|
1394
|
+
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1262
1395
|
}
|
|
1263
|
-
{
|
|
1264
|
-
|
|
1396
|
+
if (Cstr && Cstr.style) {
|
|
1397
|
+
let style;
|
|
1398
|
+
if (typeof Cstr.style === "string") {
|
|
1399
|
+
style = Cstr.style;
|
|
1400
|
+
}
|
|
1401
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
1402
|
+
if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
|
|
1403
|
+
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
1404
|
+
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1405
|
+
endRegisterStyles();
|
|
1406
|
+
}
|
|
1265
1407
|
}
|
|
1266
|
-
|
|
1267
|
-
|
|
1408
|
+
}
|
|
1409
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1410
|
+
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1411
|
+
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
1412
|
+
ancestorComponent["s-rc"].push(schedule);
|
|
1268
1413
|
} else {
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
if (
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
if (!styles.has(scopeId2)) {
|
|
1280
|
-
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
1281
|
-
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1282
|
-
endRegisterStyles();
|
|
1283
|
-
}
|
|
1414
|
+
schedule();
|
|
1415
|
+
}
|
|
1416
|
+
} catch (e) {
|
|
1417
|
+
consoleError(e, elm);
|
|
1418
|
+
if (hostRef.$onRenderResolve$) {
|
|
1419
|
+
hostRef.$onRenderResolve$();
|
|
1420
|
+
hostRef.$onRenderResolve$ = void 0;
|
|
1421
|
+
}
|
|
1422
|
+
if (hostRef.$onReadyResolve$) {
|
|
1423
|
+
hostRef.$onReadyResolve$(elm);
|
|
1284
1424
|
}
|
|
1285
|
-
}
|
|
1286
|
-
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1287
|
-
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1288
|
-
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
1289
|
-
ancestorComponent["s-rc"].push(schedule);
|
|
1290
|
-
} else {
|
|
1291
|
-
schedule();
|
|
1292
1425
|
}
|
|
1293
1426
|
};
|
|
1294
1427
|
var fireConnectedCallback = (instance, elm) => {
|
|
@@ -1301,6 +1434,9 @@ var fireConnectedCallback = (instance, elm) => {
|
|
|
1301
1434
|
var connectedCallback = (elm) => {
|
|
1302
1435
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1303
1436
|
const hostRef = getHostRef(elm);
|
|
1437
|
+
if (!hostRef) {
|
|
1438
|
+
return;
|
|
1439
|
+
}
|
|
1304
1440
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
1305
1441
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
1306
1442
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
@@ -1316,7 +1452,7 @@ var connectedCallback = (elm) => {
|
|
|
1316
1452
|
}
|
|
1317
1453
|
if (cmpMeta.$members$) {
|
|
1318
1454
|
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
1319
|
-
if (memberFlags & 31 /* Prop */ &&
|
|
1455
|
+
if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
|
|
1320
1456
|
const value = elm[memberName];
|
|
1321
1457
|
delete elm[memberName];
|
|
1322
1458
|
elm[memberName] = value;
|
|
@@ -1346,7 +1482,7 @@ var disconnectedCallback = async (elm) => {
|
|
|
1346
1482
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1347
1483
|
const hostRef = getHostRef(elm);
|
|
1348
1484
|
{
|
|
1349
|
-
if (hostRef.$rmListeners$) {
|
|
1485
|
+
if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
|
|
1350
1486
|
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
1351
1487
|
hostRef.$rmListeners$ = void 0;
|
|
1352
1488
|
}
|
|
@@ -1384,19 +1520,15 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1384
1520
|
let isBootstrapping = true;
|
|
1385
1521
|
Object.assign(plt, options);
|
|
1386
1522
|
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
|
|
1387
|
-
let hasSlotRelocation = false;
|
|
1388
1523
|
lazyBundles.map((lazyBundle) => {
|
|
1389
1524
|
lazyBundle[1].map((compactMeta) => {
|
|
1390
|
-
var _a2;
|
|
1525
|
+
var _a2, _b;
|
|
1391
1526
|
const cmpMeta = {
|
|
1392
1527
|
$flags$: compactMeta[0],
|
|
1393
1528
|
$tagName$: compactMeta[1],
|
|
1394
1529
|
$members$: compactMeta[2],
|
|
1395
1530
|
$listeners$: compactMeta[3]
|
|
1396
1531
|
};
|
|
1397
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
1398
|
-
hasSlotRelocation = true;
|
|
1399
|
-
}
|
|
1400
1532
|
{
|
|
1401
1533
|
cmpMeta.$members$ = compactMeta[2];
|
|
1402
1534
|
}
|
|
@@ -1404,14 +1536,18 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1404
1536
|
cmpMeta.$listeners$ = compactMeta[3];
|
|
1405
1537
|
}
|
|
1406
1538
|
{
|
|
1407
|
-
cmpMeta.$watchers$ = (
|
|
1539
|
+
cmpMeta.$watchers$ = normalizeWatchers(compactMeta[4]);
|
|
1540
|
+
cmpMeta.$serializers$ = (_a2 = compactMeta[5]) != null ? _a2 : {};
|
|
1541
|
+
cmpMeta.$deserializers$ = (_b = compactMeta[6]) != null ? _b : {};
|
|
1408
1542
|
}
|
|
1409
|
-
const tagName = cmpMeta.$tagName
|
|
1543
|
+
const tagName = transformTag(cmpMeta.$tagName$);
|
|
1410
1544
|
const HostElement = class extends HTMLElement {
|
|
1545
|
+
["s-p"];
|
|
1546
|
+
["s-rc"];
|
|
1547
|
+
hasRegisteredEventListeners = false;
|
|
1411
1548
|
// StencilLazyHost
|
|
1412
1549
|
constructor(self) {
|
|
1413
1550
|
super(self);
|
|
1414
|
-
this.hasRegisteredEventListeners = false;
|
|
1415
1551
|
self = this;
|
|
1416
1552
|
registerHost(self, cmpMeta);
|
|
1417
1553
|
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
@@ -1430,6 +1566,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1430
1566
|
}
|
|
1431
1567
|
connectedCallback() {
|
|
1432
1568
|
const hostRef = getHostRef(this);
|
|
1569
|
+
if (!hostRef) {
|
|
1570
|
+
return;
|
|
1571
|
+
}
|
|
1433
1572
|
if (!this.hasRegisteredEventListeners) {
|
|
1434
1573
|
this.hasRegisteredEventListeners = true;
|
|
1435
1574
|
addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
|
|
@@ -1449,6 +1588,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1449
1588
|
plt.raf(() => {
|
|
1450
1589
|
var _a3;
|
|
1451
1590
|
const hostRef = getHostRef(this);
|
|
1591
|
+
if (!hostRef) {
|
|
1592
|
+
return;
|
|
1593
|
+
}
|
|
1452
1594
|
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1453
1595
|
if (i2 > -1) {
|
|
1454
1596
|
deferredConnectedCallbacks.splice(i2, 1);
|
|
@@ -1459,7 +1601,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1459
1601
|
});
|
|
1460
1602
|
}
|
|
1461
1603
|
componentOnReady() {
|
|
1462
|
-
|
|
1604
|
+
var _a3;
|
|
1605
|
+
return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
|
|
1463
1606
|
}
|
|
1464
1607
|
};
|
|
1465
1608
|
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
@@ -1473,9 +1616,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1473
1616
|
});
|
|
1474
1617
|
});
|
|
1475
1618
|
if (cmpTags.length > 0) {
|
|
1476
|
-
if (hasSlotRelocation) {
|
|
1477
|
-
dataStyles.textContent += SLOT_FB_CSS;
|
|
1478
|
-
}
|
|
1479
1619
|
{
|
|
1480
1620
|
dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
|
|
1481
1621
|
}
|
|
@@ -1542,8 +1682,8 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
|
1542
1682
|
|
|
1543
1683
|
// src/runtime/nonce.ts
|
|
1544
1684
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
1685
|
+
function transformTag(tag) {
|
|
1686
|
+
return tag;
|
|
1687
|
+
}
|
|
1545
1688
|
|
|
1546
1689
|
export { Fragment as F, Host as H, getElement as a, bootstrapLazy as b, createEvent as c, globalScripts as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
|
1547
|
-
//# sourceMappingURL=index-DSdvvVFj.js.map
|
|
1548
|
-
|
|
1549
|
-
//# sourceMappingURL=index-DSdvvVFj.js.map
|