@penn-libraries/web 1.1.0-dev.7 → 1.1.1-dev.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/dist/cjs/{index-C0A2bnrZ.js → index-C0qvW4Ra.js} +289 -191
- package/dist/cjs/index-C0qvW4Ra.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -3
- package/dist/cjs/loader.cjs.js +3 -6
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/pennlibs-autocomplete.pennlibs-footer.pennlibs-header.entry.cjs.js.map +1 -1
- package/dist/cjs/pennlibs-autocomplete_3.cjs.entry.js +25 -36
- package/dist/cjs/pennlibs-banner.cjs.entry.js +1 -3
- package/dist/cjs/pennlibs-chat.cjs.entry.js +1 -3
- package/dist/cjs/pennlibs-fallback-img.cjs.entry.js +1 -3
- package/dist/cjs/pennlibs-feedback.cjs.entry.js +1 -3
- package/dist/cjs/pennlibs-hero.cjs.entry.js +1 -3
- package/dist/cjs/pennlibs-iiif-img.cjs.entry.js +132 -0
- package/dist/cjs/pennlibs-iiif-img.entry.cjs.js.map +1 -0
- package/dist/cjs/web.cjs.js +4 -7
- package/dist/cjs/web.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/pennlibs-autocomplete/pennlibs-autocomplete.js +40 -23
- package/dist/collection/components/pennlibs-autocomplete/pennlibs-autocomplete.js.map +1 -1
- package/dist/collection/components/pennlibs-header/pennlibs-header.js +6 -6
- package/dist/collection/components/pennlibs-iiif-img/pennlibs-iiif-img.css +37 -0
- package/dist/collection/components/pennlibs-iiif-img/pennlibs-iiif-img.js +310 -0
- package/dist/collection/components/pennlibs-iiif-img/pennlibs-iiif-img.js.map +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/pennlibs-autocomplete.js +28 -20
- package/dist/components/pennlibs-autocomplete.js.map +1 -1
- package/dist/components/pennlibs-banner.js +5 -3
- package/dist/components/pennlibs-banner.js.map +1 -1
- package/dist/components/pennlibs-chat.js +5 -3
- package/dist/components/pennlibs-chat.js.map +1 -1
- package/dist/components/pennlibs-fallback-img.js +1 -30
- package/dist/components/pennlibs-fallback-img.js.map +1 -1
- package/dist/components/pennlibs-fallback-img2.js +37 -0
- package/dist/components/pennlibs-fallback-img2.js.map +1 -0
- package/dist/components/pennlibs-feedback.js +5 -3
- package/dist/components/pennlibs-feedback.js.map +1 -1
- package/dist/components/pennlibs-footer.js +5 -3
- package/dist/components/pennlibs-footer.js.map +1 -1
- package/dist/components/pennlibs-header.js +6 -19
- package/dist/components/pennlibs-header.js.map +1 -1
- package/dist/components/pennlibs-hero.js +5 -3
- package/dist/components/pennlibs-hero.js.map +1 -1
- package/dist/components/pennlibs-iiif-img.d.ts +11 -0
- package/dist/components/pennlibs-iiif-img.js +168 -0
- package/dist/components/pennlibs-iiif-img.js.map +1 -0
- package/dist/docs.json +268 -12
- package/dist/esm/{index-CE_ILdTo.js → index-D9dYrmUF.js} +289 -192
- package/dist/esm/index-D9dYrmUF.js.map +1 -0
- package/dist/esm/index.js +1 -3
- package/dist/esm/loader.js +3 -6
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/pennlibs-autocomplete.pennlibs-footer.pennlibs-header.entry.js.map +1 -1
- package/dist/esm/pennlibs-autocomplete_3.entry.js +25 -36
- package/dist/esm/pennlibs-banner.entry.js +1 -3
- package/dist/esm/pennlibs-chat.entry.js +1 -3
- package/dist/esm/pennlibs-fallback-img.entry.js +1 -3
- package/dist/esm/pennlibs-feedback.entry.js +1 -3
- package/dist/esm/pennlibs-hero.entry.js +1 -3
- package/dist/esm/pennlibs-iiif-img.entry.js +130 -0
- package/dist/esm/pennlibs-iiif-img.entry.js.map +1 -0
- package/dist/esm/web.js +4 -7
- package/dist/esm/web.js.map +1 -1
- package/dist/types/components/pennlibs-autocomplete/pennlibs-autocomplete.d.ts +17 -1
- package/dist/types/components/pennlibs-iiif-img/pennlibs-iiif-img.d.ts +89 -0
- package/dist/types/components.d.ts +143 -0
- package/dist/types/stencil-public-runtime.d.ts +73 -9
- package/dist/web/index.esm.js +1 -3
- package/dist/web/loader.esm.js.map +1 -1
- package/dist/web/{p-20c0bd7a.entry.js → p-43d9c2d4.entry.js} +1 -3
- package/dist/web/{p-CE_ILdTo.js → p-D9dYrmUF.js} +289 -192
- package/dist/web/p-D9dYrmUF.js.map +1 -0
- package/dist/web/{p-cbae5952.entry.js → p-ad92090a.entry.js} +1 -3
- package/dist/web/{p-370e32b1.entry.js → p-b4b58af0.entry.js} +1 -3
- package/dist/web/p-c4074cf1.entry.js +130 -0
- package/dist/web/{p-07ad051f.entry.js → p-cb2584da.entry.js} +1 -3
- package/dist/web/{p-5e385536.entry.js → p-ce97059c.entry.js} +1 -3
- package/dist/web/{p-e1215158.entry.js → p-e6188c30.entry.js} +25 -36
- package/dist/web/pennlibs-autocomplete.pennlibs-footer.pennlibs-header.entry.esm.js.map +1 -1
- package/dist/web/pennlibs-iiif-img.entry.esm.js.map +1 -0
- package/dist/web/web.esm.js +4 -7
- package/dist/web/web.esm.js.map +1 -1
- package/hydrate/index.d.ts +28 -24
- package/hydrate/index.js +609 -241
- package/hydrate/index.mjs +609 -241
- package/package.json +3 -9
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
- package/dist/cjs/index-C0A2bnrZ.js.map +0 -1
- package/dist/cjs/pennlibs-autocomplete_3.cjs.entry.js.map +0 -1
- package/dist/cjs/pennlibs-banner.cjs.entry.js.map +0 -1
- package/dist/cjs/pennlibs-chat.cjs.entry.js.map +0 -1
- package/dist/cjs/pennlibs-fallback-img.cjs.entry.js.map +0 -1
- package/dist/cjs/pennlibs-feedback.cjs.entry.js.map +0 -1
- package/dist/cjs/pennlibs-hero.cjs.entry.js.map +0 -1
- package/dist/collection/utils/utils.js +0 -4
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/esm/app-globals-DQuL1Twl.js +0 -6
- package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
- package/dist/esm/index-CE_ILdTo.js.map +0 -1
- package/dist/esm/pennlibs-autocomplete_3.entry.js.map +0 -1
- package/dist/types/utils/utils.d.ts +0 -1
- package/dist/web/p-07ad051f.entry.js.map +0 -1
- package/dist/web/p-20c0bd7a.entry.js.map +0 -1
- package/dist/web/p-370e32b1.entry.js.map +0 -1
- package/dist/web/p-5e385536.entry.js.map +0 -1
- package/dist/web/p-CE_ILdTo.js.map +0 -1
- package/dist/web/p-DQuL1Twl.js +0 -6
- package/dist/web/p-DQuL1Twl.js.map +0 -1
- package/dist/web/p-cbae5952.entry.js.map +0 -1
- package/dist/web/p-e1215158.entry.js.map +0 -1
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const NAMESPACE = 'web';
|
|
4
|
-
const BUILD = /* web */ { hydratedSelectorName: "hydrated", lazyLoad: true,
|
|
4
|
+
const BUILD = /* web */ { hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: false, updatable: true};
|
|
5
|
+
|
|
6
|
+
const globalScripts = () => {};
|
|
7
|
+
const globalStyles = "@import url(\"https://use.typekit.net/gbh8cmg.css\");\n\n:root {\n --pl-color-penn-red: #990000;\n --pl-color-penn-blue: #011F5B;\n --pl-color-gray-dark: #2D3545;\n --pl-color-gray: #595F6A;\n --pl-color-gray-light: #F5F5F6;\n --pl-color-gray-blue-light: #EEEEF4;\n --pl-color-white: #FFFFFF;\n --pl-color-blue: #0E5696;\n --pl-color-blue-light: #D4E4F2;\n --pl-color-green: #267434;\n --pl-color-green-light: #F1F7E1;\n --pl-color-orange: #BD4718;\n --pl-color-orange-light: #FEEDDD;\n --pl-color-purple: #80317F;\n --pl-color-purple-light: #F2DFED;\n --pl-color-bg-gradient-1: linear-gradient(45deg, rgba(200, 219, 232, 0.8), rgba(239, 210, 215, 0.8));\n --pl-color-bg-gradient-2: linear-gradient(45deg, #dbe9f5, #feefdf);\n --pl-font-size: 16px;\n --pl-font-sans-serif: proxima-nova, system-ui, sans-serif;\n --pl-font-serif: cormorant-garamond, serif;\n --pl-link-text-underline-offset: 0.2em;\n --pl-link-text-decoration-thickness: 1px;\n --pl-link-hover-text-decoration-thickness: 2px;\n --pl-viewport-margins-max-width: 1440px;\n --pl-viewport-margins-gutter: 1em;\n --pl-color-fg-default: var(--pl-color-gray-dark);\n --pl-color-fg-subtle: var(--pl-color-gray);\n --pl-color-fg-subtle-on-emphasis: var(--pl-color-gray-light);\n --pl-color-fg-on-emphasis: var(--pl-color-white);\n --pl-color-fg-accent: var(--pl-color-blue);\n --pl-color-fg-success: var(--pl-color-green);\n --pl-color-fg-attention: var(--pl-color-orange);\n --pl-color-fg-info: var(--pl-color-purple);\n --pl-color-bg-default: var(--pl-color-white);\n --pl-color-bg-subtle: var(--pl-color-gray-light);\n --pl-color-bg-subtle-brand: var(--pl-color-gray-blue-light);\n --pl-color-bg-emphasis: var(--pl-color-gray-dark);\n --pl-color-bg-accent: var(--pl-color-blue-light);\n --pl-color-bg-success: var(--pl-color-green-light);\n --pl-color-bg-attention: var(--pl-color-orange-light);\n --pl-color-bg-info: var(--pl-color-purple-light);\n --pl-color-bg-accent-emphasis: var(--pl-color-blue);\n --pl-color-bg-success-emphasis: var(--pl-color-green);\n --pl-color-bg-attention-emphasis: var(--pl-color-orange);\n --pl-color-bg-info-emphasis: var(--pl-color-purple);\n --pl-font-family: var(--pl-font-sans-serif);\n --pl-link-text-underline-offset: 0.2em;\n --pl-link-text-decoration-thickness: 1px;\n --pl-link-hover-text-decoration-thickness: 2px;\n\n /* Font size tokens */\n --pl-font-size-5xl: 3rem;\n --pl-font-size-4xl: 2.75rem;\n --pl-font-size-3xl: 2.25rem;\n --pl-font-size-2xl: 1.5rem;\n --pl-font-size-xl: 1.25rem;\n --pl-font-size-l: 1.125rem;\n --pl-font-size-m: 1rem;\n --pl-font-size-s: 0.875rem;\n --pl-font-size-xs: 0.75rem;\n \n /* Spacing tokens */\n --pl-space-3xs: 0.125rem;\n --pl-space-2xs: 0.25rem;\n --pl-space-xs: 0.5rem;\n --pl-space-s: 0.75rem;\n --pl-space-m: 1rem;\n --pl-space-l: 1.5rem;\n --pl-space-xl: 2rem;\n --pl-space-2xl: 3rem;\n --pl-space-3xl: 4rem;\n\n /* Border radius tokens */\n --pl-border-radius-subtle: 0.25rem;\n --pl-border-radius: 1rem;\n\n /* Focus box shadow tokens */\n --pl-focus-box-shadow: 0 0 0 2px var(--pl-color-bg-accent), 0 0 0 4px var(--pl-color-fg-default);\n}\n\n@media (min-width: 768px) {\n :root {\n --pl-viewport-margins-gutter: 3em;\n }\n}\n\n@media print {\n body {\n zoom: 80%;\n }\n}\n\n.pl-viewport-margins {\n max-width: var(--pl-viewport-margins-max-width);\n margin: 0 auto;\n padding: 0 var(--pl-viewport-margins-gutter, 1rem);\n width: 100%;\n}\n\n/*\n Prevents a flash of unstyled content (FOUC) while custom elements are loading.\n Ensures that elements are only visible once they're fully defined and ready to be displayed.\n*/\n:not(:defined) {\n visibility: hidden;\n}\n\n/*\n Reset\n*/\n\n:where(.pl-reset) {\n font-weight: 400;\n line-height: 1.4;\n color: var(--pl-color-fg-default);\n accent-color: var(--pl-color-fg-accent);\n\n /* Use a more-intuitive box-sizing model */\n & :is(*, *::before, *::after) {\n box-sizing: border-box;\n margin: 0;\n }\n\n /* Improve media defaults */\n & :is(img, picture, video, canvas, svg) {\n display: block;\n max-width: 100%;\n }\n\n /* Inherit fonts for form controls */\n & :is(input, button, textarea, select) {\n font: var(--pl-font-family);\n }\n\n /* Avoid text overflows */\n & :is(p, h1, h2, h3, h4, h5, h6) {\n overflow-wrap: break-word;\n }\n\n /* Improve line wrapping */\n & p {\n text-wrap: pretty;\n }\n & :is(h1, h2, h3, h4, h5, h6) {\n text-wrap: balance;\n }\n\n /* Link styles */\n & a {\n color: var(--pl-color-fg-accent);\n text-decoration: underline;\n text-underline-offset: var(--pl-link-text-underline-offset);\n text-decoration-thickness: var(--pl-link-text-decoration-thickness);\n font-weight: 500;\n\n &:hover {\n text-decoration-thickness: 3px;\n }\n }\n}\n\n/*\n Typeset\n*/\n\n:where(.pl-typeset) {\n font-family: var(--pl-font-family);\n \n & :is(p, .pl-p) {\n font-family: var(--pl-font-family);\n }\n\n & :is(h1, .pl-h1, h2, .pl-h2) {\n font-family: var(--pl-font-serif);\n }\n\n & :is(h1, .pl-h1, h2, .pl-h2, h3, .pl-h3, h4, .pl-h4, h5, .pl-h5, h6, .pl-h6) {\n font-weight: 600;\n }\n\n & *+:is(h2,h3,h4,h5,h6) {\n margin-block-start: var(--pl-space-xl);\n }\n\n & :is(h1, .pl-h1, h2, .pl-h2) {\n font-weight: 600;\n line-height: 1.125;\n font-family: var(--pl-font-serif);\n color: var(--pl-color-penn-blue);\n position: relative;\n\n &::after {\n bottom: -0.25rem;\n content: \"\";\n display: block;\n height: 4px;\n opacity: 1;\n position: absolute;\n }\n }\n\n & :is(h1, .pl-h1) {\n font-size: var(--pl-font-size-5xl);\n margin-bottom: 0.5em;\n margin-top: 0;\n\n &::after {\n background: var(--pl-color-penn-red);\n width: 2.25rem;\n }\n }\n\n & :is(h2, .pl-h2) {\n font-size: var(--pl-font-size-3xl);\n margin-bottom: 0.5em;\n\n &::after {\n background: #d6d6dc;\n width: 2.25rem;\n }\n }\n\n & :is(h3, .pl-h3) {\n font-size: var(--pl-font-size-xl);\n font-family: var(--pl-font-sans-serif);\n color: var(--pl-color-fg-default);\n margin-bottom: var(--pl-space-m);\n\n &:after {\n content: none;\n }\n }\n\n & :is(h4, .pl-h4) {\n font-size: var(--pl-font-size-m);\n margin-bottom: var(--pl-space-s);\n\n &:after {\n content: none;\n }\n }\n}\n\n/* \n Display\n*/\n.pl-block { display: block; }\n.pl-inline { display: inline; }\n.pl-inline-block { display: inline-block; }\n.pl-flex { display: flex; }\n.pl-inline-flex { display: inline-flex; }\n.pl-grid { display: grid; }\n.pl-inline-grid { display: inline-grid; }\n.pl-none { display: none; }\n\n/* \n Flex direction utilities\n*/\n.pl-flex-row { flex-direction: row; }\n.pl-flex-col { flex-direction: column; }\n\n/* \n Spacing\n*/\n\n/* Margin utilities */\n.pl-margin-0 { margin: 0; }\n.pl-margin-2xs { margin: var(--pl-space-2xs); }\n.pl-margin-xs { margin: var(--pl-space-xs); }\n.pl-margin-s { margin: var(--pl-space-s); }\n.pl-margin-m { margin: var(--pl-space-m); }\n.pl-margin-l { margin: var(--pl-space-l); }\n.pl-margin-xl { margin: var(--pl-space-xl); }\n.pl-margin-2xl { margin: var(--pl-space-2xl); }\n.pl-margin-3xl { margin: var(--pl-space-3xl); }\n\n/* Margin top */\n.pl-margin-t-0 { margin-top: 0; }\n.pl-margin-t-2xs { margin-top: var(--pl-space-2xs); }\n.pl-margin-t-xs { margin-top: var(--pl-space-xs); }\n.pl-margin-t-s { margin-top: var(--pl-space-s); }\n.pl-margin-t-m { margin-top: var(--pl-space-m); }\n.pl-margin-t-l { margin-top: var(--pl-space-l); }\n.pl-margin-t-xl { margin-top: var(--pl-space-xl); }\n.pl-margin-t-2xl { margin-top: var(--pl-space-2xl); }\n.pl-margin-t-3xl { margin-top: var(--pl-space-3xl); }\n\n/* Margin bottom */\n.pl-margin-b-0 { margin-bottom: 0; }\n.pl-margin-b-2xs { margin-bottom: var(--pl-space-2xs); }\n.pl-margin-b-xs { margin-bottom: var(--pl-space-xs); }\n.pl-margin-b-s { margin-bottom: var(--pl-space-s); }\n.pl-margin-b-m { margin-bottom: var(--pl-space-m); }\n.pl-margin-b-l { margin-bottom: var(--pl-space-l); }\n.pl-margin-b-xl { margin-bottom: var(--pl-space-xl); }\n.pl-margin-b-2xl { margin-bottom: var(--pl-space-2xl); }\n.pl-margin-b-3xl { margin-bottom: var(--pl-space-3xl); }\n\n/* Margin left */\n.pl-margin-l-0 { margin-left: 0; }\n.pl-margin-l-2xs { margin-left: var(--pl-space-2xs); }\n.pl-margin-l-xs { margin-left: var(--pl-space-xs); }\n.pl-margin-l-s { margin-left: var(--pl-space-s); }\n.pl-margin-l-m { margin-left: var(--pl-space-m); }\n.pl-margin-l-l { margin-left: var(--pl-space-l); }\n.pl-margin-l-xl { margin-left: var(--pl-space-xl); }\n.pl-margin-l-2xl { margin-left: var(--pl-space-2xl); }\n.pl-margin-l-3xl { margin-left: var(--pl-space-3xl); }\n\n/* Margin right */\n.pl-margin-r-0 { margin-right: 0; }\n.pl-margin-r-2xs { margin-right: var(--pl-space-2xs); }\n.pl-margin-r-xs { margin-right: var(--pl-space-xs); }\n.pl-margin-r-s { margin-right: var(--pl-space-s); }\n.pl-margin-r-m { margin-right: var(--pl-space-m); }\n.pl-margin-r-l { margin-right: var(--pl-space-l); }\n.pl-margin-r-xl { margin-right: var(--pl-space-xl); }\n.pl-margin-r-2xl { margin-right: var(--pl-space-2xl); }\n.pl-margin-r-3xl { margin-right: var(--pl-space-3xl); }\n\n/* Margin x (left and right) */\n.pl-margin-x-0 { margin-left: 0; margin-right: 0; }\n.pl-margin-x-2xs { margin-left: var(--pl-space-2xs); margin-right: var(--pl-space-2xs); }\n.pl-margin-x-xs { margin-left: var(--pl-space-xs); margin-right: var(--pl-space-xs); }\n.pl-margin-x-s { margin-left: var(--pl-space-s); margin-right: var(--pl-space-s); }\n.pl-margin-x-m { margin-left: var(--pl-space-m); margin-right: var(--pl-space-m); }\n.pl-margin-x-l { margin-left: var(--pl-space-l); margin-right: var(--pl-space-l); }\n.pl-margin-x-xl { margin-left: var(--pl-space-xl); margin-right: var(--pl-space-xl); }\n.pl-margin-x-2xl { margin-left: var(--pl-space-2xl); margin-right: var(--pl-space-2xl); }\n.pl-margin-x-3xl { margin-left: var(--pl-space-3xl); margin-right: var(--pl-space-3xl); }\n\n/* Margin y (top and bottom) */\n.pl-margin-y-0 { margin-top: 0; margin-bottom: 0; }\n.pl-margin-y-2xs { margin-top: var(--pl-space-2xs); margin-bottom: var(--pl-space-2xs); }\n.pl-margin-y-xs { margin-top: var(--pl-space-xs); margin-bottom: var(--pl-space-xs); }\n.pl-margin-y-s { margin-top: var(--pl-space-s); margin-bottom: var(--pl-space-s); }\n.pl-margin-y-m { margin-top: var(--pl-space-m); margin-bottom: var(--pl-space-m); }\n.pl-margin-y-l { margin-top: var(--pl-space-l); margin-bottom: var(--pl-space-l); }\n.pl-margin-y-xl { margin-top: var(--pl-space-xl); margin-bottom: var(--pl-space-xl); }\n.pl-margin-y-2xl { margin-top: var(--pl-space-2xl); margin-bottom: var(--pl-space-2xl); }\n.pl-margin-y-3xl { margin-top: var(--pl-space-3xl); margin-bottom: var(--pl-space-3xl); }\n\n/* Padding utilities */\n.pl-padding-0 { padding: 0; }\n.pl-padding-2xs { padding: var(--pl-space-2xs); }\n.pl-padding-xs { padding: var(--pl-space-xs); }\n.pl-padding-s { padding: var(--pl-space-s); }\n.pl-padding-m { padding: var(--pl-space-m); }\n.pl-padding-l { padding: var(--pl-space-l); }\n.pl-padding-xl { padding: var(--pl-space-xl); }\n.pl-padding-2xl { padding: var(--pl-space-2xl); }\n.pl-padding-3xl { padding: var(--pl-space-3xl); }\n\n/* Padding top */\n.pl-padding-t-0 { padding-top: 0; }\n.pl-padding-t-2xs { padding-top: var(--pl-space-2xs); }\n.pl-padding-t-xs { padding-top: var(--pl-space-xs); }\n.pl-padding-t-s { padding-top: var(--pl-space-s); }\n.pl-padding-t-m { padding-top: var(--pl-space-m); }\n.pl-padding-t-l { padding-top: var(--pl-space-l); }\n.pl-padding-t-xl { padding-top: var(--pl-space-xl); }\n.pl-padding-t-2xl { padding-top: var(--pl-space-2xl); }\n.pl-padding-t-3xl { padding-top: var(--pl-space-3xl); }\n\n/* Padding bottom */\n.pl-padding-b-0 { padding-bottom: 0; }\n.pl-padding-b-2xs { padding-bottom: var(--pl-space-2xs); }\n.pl-padding-b-xs { padding-bottom: var(--pl-space-xs); }\n.pl-padding-b-s { padding-bottom: var(--pl-space-s); }\n.pl-padding-b-m { padding-bottom: var(--pl-space-m); }\n.pl-padding-b-l { padding-bottom: var(--pl-space-l); }\n.pl-padding-b-xl { padding-bottom: var(--pl-space-xl); }\n.pl-padding-b-2xl { padding-bottom: var(--pl-space-2xl); }\n.pl-padding-b-3xl { padding-bottom: var(--pl-space-3xl); }\n\n/* Padding left */\n.pl-padding-l-0 { padding-left: 0; }\n.pl-padding-l-2xs { padding-left: var(--pl-space-2xs); }\n.pl-padding-l-xs { padding-left: var(--pl-space-xs); }\n.pl-padding-l-s { padding-left: var(--pl-space-s); }\n.pl-padding-l-m { padding-left: var(--pl-space-m); }\n.pl-padding-l-l { padding-left: var(--pl-space-l); }\n.pl-padding-l-xl { padding-left: var(--pl-space-xl); }\n.pl-padding-l-2xl { padding-left: var(--pl-space-2xl); }\n.pl-padding-l-3xl { padding-left: var(--pl-space-3xl); }\n\n/* Padding right */\n.pl-padding-r-0 { padding-right: 0; }\n.pl-padding-r-2xs { padding-right: var(--pl-space-2xs); }\n.pl-padding-r-xs { padding-right: var(--pl-space-xs); }\n.pl-padding-r-s { padding-right: var(--pl-space-s); }\n.pl-padding-r-m { padding-right: var(--pl-space-m); }\n.pl-padding-r-l { padding-right: var(--pl-space-l); }\n.pl-padding-r-xl { padding-right: var(--pl-space-xl); }\n.pl-padding-r-2xl { padding-right: var(--pl-space-2xl); }\n.pl-padding-r-3xl { padding-right: var(--pl-space-3xl); }\n\n/* Padding x (left and right) */\n.pl-padding-x-0 { padding-left: 0; padding-right: 0; }\n.pl-padding-x-2xs { padding-left: var(--pl-space-2xs); padding-right: var(--pl-space-2xs); }\n.pl-padding-x-xs { padding-left: var(--pl-space-xs); padding-right: var(--pl-space-xs); }\n.pl-padding-x-s { padding-left: var(--pl-space-s); padding-right: var(--pl-space-s); }\n.pl-padding-x-m { padding-left: var(--pl-space-m); padding-right: var(--pl-space-m); }\n.pl-padding-x-l { padding-left: var(--pl-space-l); padding-right: var(--pl-space-l); }\n.pl-padding-x-xl { padding-left: var(--pl-space-xl); padding-right: var(--pl-space-xl); }\n.pl-padding-x-2xl { padding-left: var(--pl-space-2xl); padding-right: var(--pl-space-2xl); }\n.pl-padding-x-3xl { padding-left: var(--pl-space-3xl); padding-right: var(--pl-space-3xl); }\n\n/* Padding y (top and bottom) */\n.pl-padding-y-0 { padding-top: 0; padding-bottom: 0; }\n.pl-padding-y-2xs { padding-top: var(--pl-space-2xs); padding-bottom: var(--pl-space-2xs); }\n.pl-padding-y-xs { padding-top: var(--pl-space-xs); padding-bottom: var(--pl-space-xs); }\n.pl-padding-y-s { padding-top: var(--pl-space-s); padding-bottom: var(--pl-space-s); }\n.pl-padding-y-m { padding-top: var(--pl-space-m); padding-bottom: var(--pl-space-m); }\n.pl-padding-y-l { padding-top: var(--pl-space-l); padding-bottom: var(--pl-space-l); }\n.pl-padding-y-xl { padding-top: var(--pl-space-xl); padding-bottom: var(--pl-space-xl); }\n.pl-padding-y-2xl { padding-top: var(--pl-space-2xl); padding-bottom: var(--pl-space-2xl); }\n.pl-padding-y-3xl { padding-top: var(--pl-space-3xl); padding-bottom: var(--pl-space-3xl); }\n\n/* Gap utilities for flexbox and grid */\n.pl-gap-0 { gap: 0; }\n.pl-gap-2xs { gap: var(--pl-space-2xs); }\n.pl-gap-xs { gap: var(--pl-space-xs); }\n.pl-gap-s { gap: var(--pl-space-s); }\n.pl-gap-m { gap: var(--pl-space-m); }\n.pl-gap-l { gap: var(--pl-space-l); }\n.pl-gap-xl { gap: var(--pl-space-xl); }\n.pl-gap-2xl { gap: var(--pl-space-2xl); }\n.pl-gap-3xl { gap: var(--pl-space-3xl); } \n\n/*\n Font size\n*/\n\n.pl-font-size-xs {\n font-size: var(--pl-font-size-xs);\n}\n\n.pl-font-size-s {\n font-size: var(--pl-font-size-s);\n}\n\n.pl-font-size-m {\n font-size: var(--pl-font-size-m);\n}\n\n.pl-font-size-l {\n font-size: var(--pl-font-size-l);\n}\n\n.pl-font-size-xl {\n font-size: var(--pl-font-size-xl);\n}\n\n.pl-font-size-2xl {\n font-size: var(--pl-font-size-2xl);\n}\n\n.pl-font-size-3xl {\n font-size: var(--pl-font-size-3xl);\n}\n\n.pl-font-size-4xl {\n font-size: var(--pl-font-size-4xl);\n}\n\n.pl-font-size-5xl {\n font-size: var(--pl-font-size-5xl);\n}\n\n/*\n Line length\n*/\n\n.pl-line-length {\n max-width: 60ch;\n}\n\n/*\n Border radius\n*/\n\n.pl-border-radius-subtle {\n border-radius: var(--pl-border-radius-subtle);\n}\n\n.pl-border-radius {\n border-radius: var(--pl-border-radius);\n}\n\n/*\n Definition list\n*/\n\n.pl-dl:not(.pl-dl--inline) {\n display: grid;\n grid-row-gap: 0.25rem;\n \n & dt {\n font-weight: 600;\n margin-top: 0.5rem;\n }\n}\n\n@media (min-width: 720px) {\n .pl-dl:not(.pl-dl--inline) {\n grid-template-columns: 12rem 1fr;\n\n & dt {\n grid-column: 1 / 2;\n margin-top: 0;\n padding-right: 1rem;\n }\n\n & dd {\n grid-column: 2 / 3;\n margin-bottom: 0;\n }\n }\n}\n\n@media (min-width: 720px) {\n .pl-dl:not(.pl-dl--inline) dt:not(:first-of-type),\n .pl-dl:not(.pl-dl--inline) dt:not(:first-of-type) + dd {\n padding-top: 0.75rem;\n margin-top: 0.5rem;\n border-top: solid 1px var(--pl-color-bg-subtle-brand);\n }\n}\n\n.pl-dl--inline {\n display: block;\n \n & dt,\n & dd {\n display: inline;\n padding-right: 0.5rem;\n margin-bottom: 0;\n }\n \n & dt {\n font-weight: 600;\n }\n \n & dt:not(:first-of-type)::before {\n content: \"\";\n display: block;\n margin-bottom: 0.5rem;\n }\n \n & a {\n color: var(--pl-color-fg-default);\n text-decoration-style: dotted;\n font-weight: 400;\n\n &:hover {\n text-decoration-style: solid;\n text-decoration-thickness: 2px;\n }\n }\n}\n\n";
|
|
5
8
|
|
|
6
9
|
/*
|
|
7
|
-
Stencil Client Platform v4.
|
|
10
|
+
Stencil Client Platform v4.38.1 | MIT Licensed | https://stenciljs.com
|
|
8
11
|
*/
|
|
9
12
|
var __defProp = Object.defineProperty;
|
|
10
13
|
var __export = (target, all) => {
|
|
@@ -48,6 +51,7 @@ var getHostRef = (ref) => {
|
|
|
48
51
|
return void 0;
|
|
49
52
|
};
|
|
50
53
|
var registerInstance = (lazyInstance, hostRef) => {
|
|
54
|
+
if (!hostRef) return;
|
|
51
55
|
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
52
56
|
hostRef.$lazyInstance$ = lazyInstance;
|
|
53
57
|
};
|
|
@@ -56,13 +60,17 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
56
60
|
$flags$: 0,
|
|
57
61
|
$hostElement$: hostElement,
|
|
58
62
|
$cmpMeta$: cmpMeta,
|
|
59
|
-
$instanceValues$: /* @__PURE__ */ new Map()
|
|
63
|
+
$instanceValues$: /* @__PURE__ */ new Map(),
|
|
64
|
+
$serializerValues$: /* @__PURE__ */ new Map()
|
|
60
65
|
};
|
|
61
66
|
{
|
|
62
67
|
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
|
63
68
|
hostElement["s-p"] = [];
|
|
64
69
|
hostElement["s-rc"] = [];
|
|
65
70
|
}
|
|
71
|
+
{
|
|
72
|
+
hostRef.$fetchedCbList$ = [];
|
|
73
|
+
}
|
|
66
74
|
const ref = hostRef;
|
|
67
75
|
hostElement.__stencil__getHostRef = () => ref;
|
|
68
76
|
return ref;
|
|
@@ -152,6 +160,7 @@ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
|
152
160
|
}
|
|
153
161
|
return false;
|
|
154
162
|
})() ;
|
|
163
|
+
var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
|
|
155
164
|
var queuePending = false;
|
|
156
165
|
var queueDomReads = [];
|
|
157
166
|
var queueDomWrites = [];
|
|
@@ -361,6 +370,29 @@ function deserializeProperty(value) {
|
|
|
361
370
|
}
|
|
362
371
|
return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
|
|
363
372
|
}
|
|
373
|
+
|
|
374
|
+
// src/utils/style.ts
|
|
375
|
+
function createStyleSheetIfNeededAndSupported(styles2) {
|
|
376
|
+
if (!supportsConstructableStylesheets) return void 0;
|
|
377
|
+
const sheet = new CSSStyleSheet();
|
|
378
|
+
sheet.replaceSync(styles2);
|
|
379
|
+
return sheet;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
// src/utils/shadow-root.ts
|
|
383
|
+
var globalStyleSheet;
|
|
384
|
+
function createShadowRoot(cmpMeta) {
|
|
385
|
+
var _a;
|
|
386
|
+
const shadowRoot = this.attachShadow({ mode: "open" });
|
|
387
|
+
if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported(globalStyles)) != null ? _a : null;
|
|
388
|
+
if (globalStyleSheet) {
|
|
389
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
390
|
+
shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
|
|
391
|
+
} else {
|
|
392
|
+
shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
}
|
|
364
396
|
var getSlottedChildNodes = (childNodes) => {
|
|
365
397
|
const result = [];
|
|
366
398
|
for (let i2 = 0; i2 < childNodes.length; i2++) {
|
|
@@ -407,7 +439,7 @@ function patchSlotNode(node) {
|
|
|
407
439
|
const slotName = this["s-sn"];
|
|
408
440
|
if (opts == null ? void 0 : opts.flatten) {
|
|
409
441
|
console.error(`
|
|
410
|
-
Flattening is not supported for Stencil non-shadow slots.
|
|
442
|
+
Flattening is not supported for Stencil non-shadow slots.
|
|
411
443
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
412
444
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
413
445
|
`);
|
|
@@ -451,6 +483,123 @@ var uniqueTime = (key, measureText) => {
|
|
|
451
483
|
};
|
|
452
484
|
}
|
|
453
485
|
};
|
|
486
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
487
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
488
|
+
let style = styles.get(scopeId2);
|
|
489
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
490
|
+
style = style || new CSSStyleSheet();
|
|
491
|
+
if (typeof style === "string") {
|
|
492
|
+
style = cssText;
|
|
493
|
+
} else {
|
|
494
|
+
style.replaceSync(cssText);
|
|
495
|
+
}
|
|
496
|
+
} else {
|
|
497
|
+
style = cssText;
|
|
498
|
+
}
|
|
499
|
+
styles.set(scopeId2, style);
|
|
500
|
+
};
|
|
501
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
502
|
+
var _a;
|
|
503
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
504
|
+
const style = styles.get(scopeId2);
|
|
505
|
+
if (!win.document) {
|
|
506
|
+
return scopeId2;
|
|
507
|
+
}
|
|
508
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
509
|
+
if (style) {
|
|
510
|
+
if (typeof style === "string") {
|
|
511
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
512
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
513
|
+
let styleElm;
|
|
514
|
+
if (!appliedStyles) {
|
|
515
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
516
|
+
}
|
|
517
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
518
|
+
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
519
|
+
styleElm.innerHTML = style;
|
|
520
|
+
} else {
|
|
521
|
+
styleElm = win.document.createElement("style");
|
|
522
|
+
styleElm.innerHTML = style;
|
|
523
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
524
|
+
if (nonce != null) {
|
|
525
|
+
styleElm.setAttribute("nonce", nonce);
|
|
526
|
+
}
|
|
527
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
528
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
529
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
530
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
531
|
+
styleContainerNode.insertBefore(
|
|
532
|
+
styleElm,
|
|
533
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
534
|
+
);
|
|
535
|
+
} else if ("host" in styleContainerNode) {
|
|
536
|
+
if (supportsConstructableStylesheets) {
|
|
537
|
+
const stylesheet = new CSSStyleSheet();
|
|
538
|
+
stylesheet.replaceSync(style);
|
|
539
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
540
|
+
styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
|
|
541
|
+
} else {
|
|
542
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
543
|
+
}
|
|
544
|
+
} else {
|
|
545
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
546
|
+
if (existingStyleContainer) {
|
|
547
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
548
|
+
} else {
|
|
549
|
+
styleContainerNode.prepend(styleElm);
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
} else {
|
|
553
|
+
styleContainerNode.append(styleElm);
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
557
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
561
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
562
|
+
}
|
|
563
|
+
if (appliedStyles) {
|
|
564
|
+
appliedStyles.add(scopeId2);
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
568
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
569
|
+
styleContainerNode.adoptedStyleSheets.push(style);
|
|
570
|
+
} else {
|
|
571
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
return scopeId2;
|
|
576
|
+
};
|
|
577
|
+
var attachStyles = (hostRef) => {
|
|
578
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
579
|
+
const elm = hostRef.$hostElement$;
|
|
580
|
+
const flags = cmpMeta.$flags$;
|
|
581
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
582
|
+
const scopeId2 = addStyle(
|
|
583
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
584
|
+
cmpMeta);
|
|
585
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
586
|
+
elm["s-sc"] = scopeId2;
|
|
587
|
+
elm.classList.add(scopeId2 + "-h");
|
|
588
|
+
}
|
|
589
|
+
endAttachStyles();
|
|
590
|
+
};
|
|
591
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
592
|
+
var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
|
|
593
|
+
var hydrateScopedToShadow = () => {
|
|
594
|
+
if (!win.document) {
|
|
595
|
+
return;
|
|
596
|
+
}
|
|
597
|
+
const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
|
|
598
|
+
let i2 = 0;
|
|
599
|
+
for (; i2 < styles2.length; i2++) {
|
|
600
|
+
registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
|
|
601
|
+
}
|
|
602
|
+
};
|
|
454
603
|
var h = (nodeName, vnodeData, ...children) => {
|
|
455
604
|
let child = null;
|
|
456
605
|
let key = null;
|
|
@@ -555,7 +704,7 @@ var convertToPrivate = (node) => {
|
|
|
555
704
|
|
|
556
705
|
// src/runtime/client-hydrate.ts
|
|
557
706
|
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
558
|
-
var _a;
|
|
707
|
+
var _a, _b;
|
|
559
708
|
const endHydrate = createTime("hydrateClient", tagName);
|
|
560
709
|
const shadowRoot = hostElm.shadowRoot;
|
|
561
710
|
const childRenderNodes = [];
|
|
@@ -564,19 +713,6 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
564
713
|
const shadowRootNodes = shadowRoot ? [] : null;
|
|
565
714
|
const vnode = newVNode(tagName, null);
|
|
566
715
|
vnode.$elm$ = hostElm;
|
|
567
|
-
const members = Object.entries(((_a = hostRef.$cmpMeta$) == null ? void 0 : _a.$members$) || {});
|
|
568
|
-
members.forEach(([memberName, [memberFlags, metaAttributeName]]) => {
|
|
569
|
-
var _a2;
|
|
570
|
-
if (!(memberFlags & 31 /* Prop */)) {
|
|
571
|
-
return;
|
|
572
|
-
}
|
|
573
|
-
const attributeName = metaAttributeName || memberName;
|
|
574
|
-
const attrVal = hostElm.getAttribute(attributeName);
|
|
575
|
-
if (attrVal !== null) {
|
|
576
|
-
const attrPropVal = parsePropertyValue(attrVal, memberFlags);
|
|
577
|
-
(_a2 = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _a2.set(memberName, attrPropVal);
|
|
578
|
-
}
|
|
579
|
-
});
|
|
580
716
|
if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
|
|
581
717
|
initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
|
|
582
718
|
}
|
|
@@ -605,6 +741,16 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
605
741
|
if (childRenderNode.$tag$ === "slot") {
|
|
606
742
|
node["s-cr"] = hostElm["s-cr"];
|
|
607
743
|
}
|
|
744
|
+
} else if (((_a = childRenderNode.$tag$) == null ? void 0 : _a.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
|
|
745
|
+
const cmpMeta = getHostRef(childRenderNode.$elm$);
|
|
746
|
+
if (cmpMeta) {
|
|
747
|
+
const scopeId3 = getScopeId(
|
|
748
|
+
cmpMeta.$cmpMeta$);
|
|
749
|
+
const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
|
|
750
|
+
if (styleSheet) {
|
|
751
|
+
hostElm.shadowRoot.append(styleSheet.cloneNode(true));
|
|
752
|
+
}
|
|
753
|
+
}
|
|
608
754
|
}
|
|
609
755
|
if (childRenderNode.$tag$ === "slot") {
|
|
610
756
|
childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
|
|
@@ -620,7 +766,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
620
766
|
}
|
|
621
767
|
}
|
|
622
768
|
if (orgLocationNode && orgLocationNode.isConnected) {
|
|
623
|
-
if (shadowRoot && orgLocationNode["s-en"] === "") {
|
|
769
|
+
if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
|
|
624
770
|
orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
|
|
625
771
|
}
|
|
626
772
|
orgLocationNode.parentNode.removeChild(orgLocationNode);
|
|
@@ -628,7 +774,9 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
628
774
|
node["s-oo"] = parseInt(childRenderNode.$nodeId$);
|
|
629
775
|
}
|
|
630
776
|
}
|
|
631
|
-
|
|
777
|
+
if (orgLocationNode && !orgLocationNode["s-id"]) {
|
|
778
|
+
plt.$orgLocNodes$.delete(orgLocationId);
|
|
779
|
+
}
|
|
632
780
|
}
|
|
633
781
|
const hosts = [];
|
|
634
782
|
const snLen = slottedNodes.length;
|
|
@@ -649,39 +797,46 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
649
797
|
}
|
|
650
798
|
if (!hosts[slottedItem.hostId]) continue;
|
|
651
799
|
const hostEle = hosts[slottedItem.hostId];
|
|
800
|
+
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
|
801
|
+
hostEle.appendChild(slottedItem.node);
|
|
802
|
+
}
|
|
652
803
|
if (!hostEle.shadowRoot || !shadowRoot) {
|
|
653
|
-
slottedItem.slot["s-cr"]
|
|
654
|
-
|
|
655
|
-
slottedItem.slot["s-cr"]
|
|
656
|
-
|
|
657
|
-
|
|
804
|
+
if (!slottedItem.slot["s-cr"]) {
|
|
805
|
+
slottedItem.slot["s-cr"] = hostEle["s-cr"];
|
|
806
|
+
if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
|
|
807
|
+
slottedItem.slot["s-cr"] = hostEle;
|
|
808
|
+
} else {
|
|
809
|
+
slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
|
|
810
|
+
}
|
|
658
811
|
}
|
|
659
812
|
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
813
|
+
if (((_b = slottedItem.node.parentElement) == null ? void 0 : _b.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
|
|
814
|
+
slottedItem.node.removeAttribute("slot");
|
|
815
|
+
}
|
|
663
816
|
}
|
|
664
817
|
}
|
|
665
818
|
}
|
|
666
|
-
if (shadowRoot
|
|
819
|
+
if (shadowRoot) {
|
|
667
820
|
let rnIdex = 0;
|
|
668
821
|
const rnLen = shadowRootNodes.length;
|
|
669
822
|
if (rnLen) {
|
|
670
823
|
for (rnIdex; rnIdex < rnLen; rnIdex++) {
|
|
671
|
-
|
|
824
|
+
const node = shadowRootNodes[rnIdex];
|
|
825
|
+
if (node) {
|
|
826
|
+
shadowRoot.appendChild(node);
|
|
827
|
+
}
|
|
672
828
|
}
|
|
673
829
|
Array.from(hostElm.childNodes).forEach((node) => {
|
|
674
|
-
if (typeof node["s-sn"] !== "string") {
|
|
830
|
+
if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
|
|
675
831
|
if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
|
|
676
832
|
node.removeAttribute("hidden");
|
|
677
|
-
} else if (node.nodeType === 8 /* CommentNode */ || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
833
|
+
} else if (node.nodeType === 8 /* CommentNode */ && !node.nodeValue || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
678
834
|
node.parentNode.removeChild(node);
|
|
679
835
|
}
|
|
680
836
|
}
|
|
681
837
|
});
|
|
682
838
|
}
|
|
683
839
|
}
|
|
684
|
-
plt.$orgLocNodes$.delete(hostElm["s-id"]);
|
|
685
840
|
hostRef.$hostElement$ = hostElm;
|
|
686
841
|
endHydrate();
|
|
687
842
|
};
|
|
@@ -832,7 +987,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
832
987
|
vnode.$index$ = "0";
|
|
833
988
|
parentVNode.$children$ = [vnode];
|
|
834
989
|
} else {
|
|
835
|
-
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
990
|
+
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim() && !node["s-nr"]) {
|
|
836
991
|
node.remove();
|
|
837
992
|
}
|
|
838
993
|
}
|
|
@@ -890,10 +1045,10 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
890
1045
|
if (childVNode.$name$) {
|
|
891
1046
|
childVNode.$elm$.setAttribute("name", slotName);
|
|
892
1047
|
}
|
|
893
|
-
if (parentNodeId && parentNodeId !== childVNode.$hostId$) {
|
|
894
|
-
parentVNode.$elm
|
|
1048
|
+
if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {
|
|
1049
|
+
internalCall(parentVNode.$elm$, "insertBefore")(slot, internalCall(parentVNode.$elm$, "children")[0]);
|
|
895
1050
|
} else {
|
|
896
|
-
node
|
|
1051
|
+
internalCall(internalCall(node, "parentNode"), "insertBefore")(slot, node);
|
|
897
1052
|
}
|
|
898
1053
|
addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
|
|
899
1054
|
node.remove();
|
|
@@ -908,8 +1063,8 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
908
1063
|
if (shouldMove) {
|
|
909
1064
|
parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
|
|
910
1065
|
}
|
|
911
|
-
childRenderNodes.push(childVNode);
|
|
912
1066
|
}
|
|
1067
|
+
childRenderNodes.push(childVNode);
|
|
913
1068
|
slotNodes.push(childVNode);
|
|
914
1069
|
if (!parentVNode.$children$) {
|
|
915
1070
|
parentVNode.$children$ = [];
|
|
@@ -917,13 +1072,17 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
917
1072
|
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
918
1073
|
}
|
|
919
1074
|
var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
|
|
1075
|
+
var _a, _b;
|
|
920
1076
|
let slottedNode = slotNode.nextSibling;
|
|
921
1077
|
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
1078
|
+
if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
|
|
1079
|
+
do {
|
|
1080
|
+
if (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (!slottedNode["getAttribute"] || !slottedNode.getAttribute("slot")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
|
|
1081
|
+
slottedNode["s-sn"] = slotName;
|
|
1082
|
+
slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
|
|
1083
|
+
}
|
|
1084
|
+
slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
|
|
1085
|
+
} while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
|
|
927
1086
|
};
|
|
928
1087
|
var findCorrespondingNode = (node, type) => {
|
|
929
1088
|
let sibling = node;
|
|
@@ -944,19 +1103,17 @@ var createSupportsRuleRe = (selector) => {
|
|
|
944
1103
|
createSupportsRuleRe("::slotted");
|
|
945
1104
|
createSupportsRuleRe(":host");
|
|
946
1105
|
createSupportsRuleRe(":host-context");
|
|
947
|
-
var parsePropertyValue = (propValue, propType) => {
|
|
948
|
-
if (typeof propValue === "string" && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
|
|
949
|
-
try {
|
|
950
|
-
propValue = JSON.parse(propValue);
|
|
951
|
-
return propValue;
|
|
952
|
-
} catch (e) {
|
|
953
|
-
}
|
|
954
|
-
}
|
|
1106
|
+
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
955
1107
|
if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
|
|
956
1108
|
propValue = deserializeProperty(propValue);
|
|
957
1109
|
return propValue;
|
|
958
1110
|
}
|
|
959
1111
|
if (propValue != null && !isComplexType(propValue)) {
|
|
1112
|
+
if (propType & 4 /* Boolean */) {
|
|
1113
|
+
{
|
|
1114
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
960
1117
|
if (propType & 1 /* String */) {
|
|
961
1118
|
return String(propValue);
|
|
962
1119
|
}
|
|
@@ -964,7 +1121,10 @@ var parsePropertyValue = (propValue, propType) => {
|
|
|
964
1121
|
}
|
|
965
1122
|
return propValue;
|
|
966
1123
|
};
|
|
967
|
-
var getElement = (ref) =>
|
|
1124
|
+
var getElement = (ref) => {
|
|
1125
|
+
var _a;
|
|
1126
|
+
return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
|
|
1127
|
+
};
|
|
968
1128
|
|
|
969
1129
|
// src/runtime/event-emitter.ts
|
|
970
1130
|
var createEvent = (ref, name, flags) => {
|
|
@@ -985,115 +1145,6 @@ var emitEvent = (elm, name, opts) => {
|
|
|
985
1145
|
elm.dispatchEvent(ev);
|
|
986
1146
|
return ev;
|
|
987
1147
|
};
|
|
988
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
989
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
990
|
-
let style = styles.get(scopeId2);
|
|
991
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
992
|
-
style = style || new CSSStyleSheet();
|
|
993
|
-
if (typeof style === "string") {
|
|
994
|
-
style = cssText;
|
|
995
|
-
} else {
|
|
996
|
-
style.replaceSync(cssText);
|
|
997
|
-
}
|
|
998
|
-
} else {
|
|
999
|
-
style = cssText;
|
|
1000
|
-
}
|
|
1001
|
-
styles.set(scopeId2, style);
|
|
1002
|
-
};
|
|
1003
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
1004
|
-
var _a;
|
|
1005
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
1006
|
-
const style = styles.get(scopeId2);
|
|
1007
|
-
if (!win.document) {
|
|
1008
|
-
return scopeId2;
|
|
1009
|
-
}
|
|
1010
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
1011
|
-
if (style) {
|
|
1012
|
-
if (typeof style === "string") {
|
|
1013
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
1014
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
1015
|
-
let styleElm;
|
|
1016
|
-
if (!appliedStyles) {
|
|
1017
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
1018
|
-
}
|
|
1019
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
1020
|
-
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
1021
|
-
styleElm.innerHTML = style;
|
|
1022
|
-
} else {
|
|
1023
|
-
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
|
|
1024
|
-
styleElm.innerHTML = style;
|
|
1025
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1026
|
-
if (nonce != null) {
|
|
1027
|
-
styleElm.setAttribute("nonce", nonce);
|
|
1028
|
-
}
|
|
1029
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
1030
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
1031
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
1032
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
1033
|
-
styleContainerNode.insertBefore(
|
|
1034
|
-
styleElm,
|
|
1035
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
1036
|
-
);
|
|
1037
|
-
} else if ("host" in styleContainerNode) {
|
|
1038
|
-
if (supportsConstructableStylesheets) {
|
|
1039
|
-
const stylesheet = new CSSStyleSheet();
|
|
1040
|
-
stylesheet.replaceSync(style);
|
|
1041
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
1042
|
-
} else {
|
|
1043
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
1044
|
-
if (existingStyleContainer) {
|
|
1045
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
1046
|
-
} else {
|
|
1047
|
-
styleContainerNode.prepend(styleElm);
|
|
1048
|
-
}
|
|
1049
|
-
}
|
|
1050
|
-
} else {
|
|
1051
|
-
styleContainerNode.append(styleElm);
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
1054
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1055
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
1056
|
-
}
|
|
1057
|
-
}
|
|
1058
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
1059
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
1060
|
-
}
|
|
1061
|
-
if (appliedStyles) {
|
|
1062
|
-
appliedStyles.add(scopeId2);
|
|
1063
|
-
}
|
|
1064
|
-
}
|
|
1065
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
1066
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
1067
|
-
}
|
|
1068
|
-
}
|
|
1069
|
-
return scopeId2;
|
|
1070
|
-
};
|
|
1071
|
-
var attachStyles = (hostRef) => {
|
|
1072
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
1073
|
-
const elm = hostRef.$hostElement$;
|
|
1074
|
-
const flags = cmpMeta.$flags$;
|
|
1075
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
1076
|
-
const scopeId2 = addStyle(
|
|
1077
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
1078
|
-
cmpMeta);
|
|
1079
|
-
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
1080
|
-
elm["s-sc"] = scopeId2;
|
|
1081
|
-
elm.classList.add(scopeId2 + "-h");
|
|
1082
|
-
}
|
|
1083
|
-
endAttachStyles();
|
|
1084
|
-
};
|
|
1085
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
1086
|
-
var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
|
|
1087
|
-
var hydrateScopedToShadow = () => {
|
|
1088
|
-
if (!win.document) {
|
|
1089
|
-
return;
|
|
1090
|
-
}
|
|
1091
|
-
const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
|
|
1092
|
-
let i2 = 0;
|
|
1093
|
-
for (; i2 < styles2.length; i2++) {
|
|
1094
|
-
registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
|
|
1095
|
-
}
|
|
1096
|
-
};
|
|
1097
1148
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
1098
1149
|
if (oldValue === newValue) {
|
|
1099
1150
|
return;
|
|
@@ -1104,12 +1155,13 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
1104
1155
|
const classList = elm.classList;
|
|
1105
1156
|
const oldClasses = parseClassList(oldValue);
|
|
1106
1157
|
let newClasses = parseClassList(newValue);
|
|
1107
|
-
if (elm["s-si"] && initialRender) {
|
|
1108
|
-
|
|
1158
|
+
if ((elm["s-si"] || elm["s-sc"]) && initialRender) {
|
|
1159
|
+
const scopeId2 = elm["s-sc"] || elm["s-si"];
|
|
1160
|
+
newClasses.push(scopeId2);
|
|
1109
1161
|
oldClasses.forEach((c) => {
|
|
1110
|
-
if (c.startsWith(
|
|
1162
|
+
if (c.startsWith(scopeId2)) newClasses.push(c);
|
|
1111
1163
|
});
|
|
1112
|
-
newClasses = [...new Set(newClasses)];
|
|
1164
|
+
newClasses = [...new Set(newClasses)].filter((c) => c);
|
|
1113
1165
|
classList.add(...newClasses);
|
|
1114
1166
|
} else {
|
|
1115
1167
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
@@ -1443,6 +1495,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1443
1495
|
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
1444
1496
|
) {
|
|
1445
1497
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
1498
|
+
} else if (isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
|
|
1499
|
+
newVNode2.$children$ = oldChildren;
|
|
1446
1500
|
}
|
|
1447
1501
|
if (isSvgMode && tag === "svg") {
|
|
1448
1502
|
isSvgMode = false;
|
|
@@ -1505,6 +1559,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
1505
1559
|
}
|
|
1506
1560
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
1507
1561
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
1562
|
+
if (isInitialLoad) {
|
|
1563
|
+
queueMicrotask(() => {
|
|
1564
|
+
dispatch();
|
|
1565
|
+
});
|
|
1566
|
+
return;
|
|
1567
|
+
}
|
|
1508
1568
|
return writeTask(dispatch) ;
|
|
1509
1569
|
};
|
|
1510
1570
|
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
@@ -1519,10 +1579,15 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1519
1579
|
let maybePromise;
|
|
1520
1580
|
if (isInitialLoad) {
|
|
1521
1581
|
{
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
hostRef.$queuedListeners
|
|
1525
|
-
|
|
1582
|
+
{
|
|
1583
|
+
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
1584
|
+
if (hostRef.$queuedListeners$) {
|
|
1585
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
1586
|
+
hostRef.$queuedListeners$ = void 0;
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1589
|
+
if (hostRef.$fetchedCbList$.length) {
|
|
1590
|
+
hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
|
|
1526
1591
|
}
|
|
1527
1592
|
}
|
|
1528
1593
|
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
@@ -1625,7 +1690,13 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1625
1690
|
}
|
|
1626
1691
|
};
|
|
1627
1692
|
var appDidLoad = (who) => {
|
|
1693
|
+
var _a;
|
|
1628
1694
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
1695
|
+
{
|
|
1696
|
+
if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
|
|
1697
|
+
plt.$orgLocNodes$.clear();
|
|
1698
|
+
}
|
|
1699
|
+
}
|
|
1629
1700
|
};
|
|
1630
1701
|
var safeCall = (instance, method, arg, elm) => {
|
|
1631
1702
|
if (instance && instance[method]) {
|
|
@@ -1646,6 +1717,9 @@ var addHydratedFlag = (elm) => {
|
|
|
1646
1717
|
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
1647
1718
|
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
1648
1719
|
const hostRef = getHostRef(ref);
|
|
1720
|
+
if (!hostRef) {
|
|
1721
|
+
return;
|
|
1722
|
+
}
|
|
1649
1723
|
if (!hostRef) {
|
|
1650
1724
|
throw new Error(
|
|
1651
1725
|
`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).`
|
|
@@ -1654,7 +1728,9 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1654
1728
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
1655
1729
|
const flags = hostRef.$flags$;
|
|
1656
1730
|
const instance = hostRef.$lazyInstance$ ;
|
|
1657
|
-
newVal = parsePropertyValue(
|
|
1731
|
+
newVal = parsePropertyValue(
|
|
1732
|
+
newVal,
|
|
1733
|
+
cmpMeta.$members$[propName][0]);
|
|
1658
1734
|
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
1659
1735
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1660
1736
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
@@ -1676,7 +1752,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1676
1752
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1677
1753
|
var _a, _b;
|
|
1678
1754
|
const prototype = Cstr.prototype;
|
|
1679
|
-
if (cmpMeta.$members$ || BUILD.
|
|
1755
|
+
if (cmpMeta.$members$ || BUILD.propChangeCallback) {
|
|
1680
1756
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1681
1757
|
members.map(([memberName, [memberFlags]]) => {
|
|
1682
1758
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
@@ -1703,14 +1779,19 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1703
1779
|
Object.defineProperty(prototype, memberName, {
|
|
1704
1780
|
set(newValue) {
|
|
1705
1781
|
const ref = getHostRef(this);
|
|
1782
|
+
if (!ref) {
|
|
1783
|
+
return;
|
|
1784
|
+
}
|
|
1706
1785
|
if (origSetter) {
|
|
1707
1786
|
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1708
1787
|
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
1709
1788
|
newValue = ref.$instanceValues$.get(memberName);
|
|
1710
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1711
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1712
1789
|
}
|
|
1713
|
-
origSetter.apply(this, [
|
|
1790
|
+
origSetter.apply(this, [
|
|
1791
|
+
parsePropertyValue(
|
|
1792
|
+
newValue,
|
|
1793
|
+
memberFlags)
|
|
1794
|
+
]);
|
|
1714
1795
|
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1715
1796
|
setValue(this, memberName, newValue, cmpMeta);
|
|
1716
1797
|
return;
|
|
@@ -1719,7 +1800,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1719
1800
|
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1720
1801
|
setValue(this, memberName, newValue, cmpMeta);
|
|
1721
1802
|
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1722
|
-
ref.$
|
|
1803
|
+
ref.$fetchedCbList$.push(() => {
|
|
1723
1804
|
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1724
1805
|
ref.$lazyInstance$[memberName] = newValue;
|
|
1725
1806
|
}
|
|
@@ -1732,13 +1813,17 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1732
1813
|
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1733
1814
|
ref.$instanceValues$.set(memberName, currentValue);
|
|
1734
1815
|
}
|
|
1735
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
1816
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
1817
|
+
newValue,
|
|
1818
|
+
memberFlags);
|
|
1736
1819
|
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1737
1820
|
};
|
|
1738
1821
|
if (ref.$lazyInstance$) {
|
|
1739
1822
|
setterSetVal();
|
|
1740
1823
|
} else {
|
|
1741
|
-
ref.$
|
|
1824
|
+
ref.$fetchedCbList$.push(() => {
|
|
1825
|
+
setterSetVal();
|
|
1826
|
+
});
|
|
1742
1827
|
}
|
|
1743
1828
|
}
|
|
1744
1829
|
}
|
|
@@ -1751,16 +1836,17 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1751
1836
|
plt.jmp(() => {
|
|
1752
1837
|
var _a2;
|
|
1753
1838
|
const propName = attrNameToPropName.get(attrName);
|
|
1839
|
+
const hostRef = getHostRef(this);
|
|
1754
1840
|
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
1755
1841
|
newValue = this[propName];
|
|
1756
1842
|
delete this[propName];
|
|
1757
|
-
}
|
|
1843
|
+
}
|
|
1844
|
+
if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
1758
1845
|
this[propName] == newValue) {
|
|
1759
1846
|
return;
|
|
1760
1847
|
} else if (propName == null) {
|
|
1761
|
-
const hostRef = getHostRef(this);
|
|
1762
1848
|
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
1763
|
-
if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
1849
|
+
if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
1764
1850
|
const instance = hostRef.$lazyInstance$ ;
|
|
1765
1851
|
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
1766
1852
|
entry == null ? void 0 : entry.forEach((callbackName) => {
|
|
@@ -1771,9 +1857,12 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1771
1857
|
}
|
|
1772
1858
|
return;
|
|
1773
1859
|
}
|
|
1860
|
+
const propFlags = members.find(([m]) => m === propName);
|
|
1861
|
+
if (propFlags && propFlags[1][0] & 4 /* Boolean */) {
|
|
1862
|
+
newValue = newValue === null || newValue === "false" ? false : true;
|
|
1863
|
+
}
|
|
1774
1864
|
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1775
|
-
|
|
1776
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1865
|
+
if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1777
1866
|
this[propName] = newValue;
|
|
1778
1867
|
}
|
|
1779
1868
|
});
|
|
@@ -1781,7 +1870,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1781
1870
|
Cstr.observedAttributes = Array.from(
|
|
1782
1871
|
/* @__PURE__ */ new Set([
|
|
1783
1872
|
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
|
1784
|
-
...members.filter(([_, m]) => m[0] &
|
|
1873
|
+
...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
|
|
1785
1874
|
const attrName = m[1] || propName;
|
|
1786
1875
|
attrNameToPropName.set(attrName, propName);
|
|
1787
1876
|
return attrName;
|
|
@@ -1865,6 +1954,9 @@ var fireConnectedCallback = (instance, elm) => {
|
|
|
1865
1954
|
var connectedCallback = (elm) => {
|
|
1866
1955
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1867
1956
|
const hostRef = getHostRef(elm);
|
|
1957
|
+
if (!hostRef) {
|
|
1958
|
+
return;
|
|
1959
|
+
}
|
|
1868
1960
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
1869
1961
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
1870
1962
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
@@ -1891,7 +1983,7 @@ var connectedCallback = (elm) => {
|
|
|
1891
1983
|
}
|
|
1892
1984
|
if (cmpMeta.$members$) {
|
|
1893
1985
|
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
1894
|
-
if (memberFlags & 31 /* Prop */ && elm.
|
|
1986
|
+
if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
|
|
1895
1987
|
const value = elm[memberName];
|
|
1896
1988
|
delete elm[memberName];
|
|
1897
1989
|
elm[memberName] = value;
|
|
@@ -1921,7 +2013,7 @@ var disconnectedCallback = async (elm) => {
|
|
|
1921
2013
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1922
2014
|
const hostRef = getHostRef(elm);
|
|
1923
2015
|
{
|
|
1924
|
-
if (hostRef.$rmListeners$) {
|
|
2016
|
+
if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
|
|
1925
2017
|
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
1926
2018
|
hostRef.$rmListeners$ = void 0;
|
|
1927
2019
|
}
|
|
@@ -1994,9 +2086,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1994
2086
|
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1995
2087
|
{
|
|
1996
2088
|
if (!self.shadowRoot) {
|
|
1997
|
-
|
|
1998
|
-
self.attachShadow({ mode: "open" });
|
|
1999
|
-
}
|
|
2089
|
+
createShadowRoot.call(self, cmpMeta);
|
|
2000
2090
|
} else {
|
|
2001
2091
|
if (self.shadowRoot.mode !== "open") {
|
|
2002
2092
|
throw new Error(
|
|
@@ -2009,6 +2099,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2009
2099
|
}
|
|
2010
2100
|
connectedCallback() {
|
|
2011
2101
|
const hostRef = getHostRef(this);
|
|
2102
|
+
if (!hostRef) {
|
|
2103
|
+
return;
|
|
2104
|
+
}
|
|
2012
2105
|
if (!this.hasRegisteredEventListeners) {
|
|
2013
2106
|
this.hasRegisteredEventListeners = true;
|
|
2014
2107
|
addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
|
|
@@ -2028,6 +2121,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2028
2121
|
plt.raf(() => {
|
|
2029
2122
|
var _a3;
|
|
2030
2123
|
const hostRef = getHostRef(this);
|
|
2124
|
+
if (!hostRef) {
|
|
2125
|
+
return;
|
|
2126
|
+
}
|
|
2031
2127
|
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
2032
2128
|
if (i2 > -1) {
|
|
2033
2129
|
deferredConnectedCallbacks.splice(i2, 1);
|
|
@@ -2038,7 +2134,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2038
2134
|
});
|
|
2039
2135
|
}
|
|
2040
2136
|
componentOnReady() {
|
|
2041
|
-
|
|
2137
|
+
var _a3;
|
|
2138
|
+
return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
|
|
2042
2139
|
}
|
|
2043
2140
|
};
|
|
2044
2141
|
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
@@ -2123,11 +2220,12 @@ exports.bootstrapLazy = bootstrapLazy;
|
|
|
2123
2220
|
exports.createEvent = createEvent;
|
|
2124
2221
|
exports.getAssetPath = getAssetPath;
|
|
2125
2222
|
exports.getElement = getElement;
|
|
2223
|
+
exports.globalScripts = globalScripts;
|
|
2126
2224
|
exports.h = h;
|
|
2127
2225
|
exports.promiseResolve = promiseResolve;
|
|
2128
2226
|
exports.registerInstance = registerInstance;
|
|
2129
2227
|
exports.setAssetPath = setAssetPath;
|
|
2130
2228
|
exports.setNonce = setNonce;
|
|
2131
|
-
//# sourceMappingURL=index-
|
|
2229
|
+
//# sourceMappingURL=index-C0qvW4Ra.js.map
|
|
2132
2230
|
|
|
2133
|
-
//# sourceMappingURL=index-
|
|
2231
|
+
//# sourceMappingURL=index-C0qvW4Ra.js.map
|