@revolist/revogrid 4.16.0 → 4.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{app-globals-CnL-iuWZ.js → app-globals-D67EXhgK.js} +3 -3
- package/dist/cjs/{app-globals-CnL-iuWZ.js.map → app-globals-D67EXhgK.js.map} +1 -1
- package/dist/cjs/{cell-renderer-RYPxTSX7.js → cell-renderer-TmNnqu7r.js} +5 -5
- package/dist/cjs/{cell-renderer-RYPxTSX7.js.map → cell-renderer-TmNnqu7r.js.map} +1 -1
- package/dist/cjs/{column.drag.plugin-CxKQ-GqY.js → column.drag.plugin-pCfjUQwZ.js} +13 -13
- package/dist/cjs/column.drag.plugin-pCfjUQwZ.js.map +1 -0
- package/dist/cjs/{column.service-urln-gkz.js → column.service-euEyR799.js} +4 -4
- package/dist/cjs/{column.service-urln-gkz.js.map → column.service-euEyR799.js.map} +1 -1
- package/dist/cjs/{dimension.helpers-BmZOxsgq.js → dimension.helpers-C5PvAWJW.js} +24 -8
- package/dist/cjs/dimension.helpers-C5PvAWJW.js.map +1 -0
- package/dist/cjs/{edit.utils-Bx3jy_dC.js → edit.utils-T20rr-g4.js} +3 -3
- package/dist/cjs/{edit.utils-Bx3jy_dC.js.map → edit.utils-T20rr-g4.js.map} +1 -1
- package/dist/cjs/{filter.button-rIn9mDMT.js → filter.button-DSsWNs23.js} +3 -3
- package/dist/cjs/{filter.button-rIn9mDMT.js.map → filter.button-DSsWNs23.js.map} +1 -1
- package/dist/cjs/{header-cell-renderer-c5sd3ee7.js → header-cell-renderer-BwHvC5YY.js} +4 -4
- package/dist/cjs/{header-cell-renderer-c5sd3ee7.js.map → header-cell-renderer-BwHvC5YY.js.map} +1 -1
- package/dist/cjs/{index-BbtPQ4Br.js → index-BF1c1pO3.js} +196 -133
- package/dist/cjs/index-BF1c1pO3.js.map +1 -0
- package/dist/cjs/index.cjs.js +10 -10
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/revo-grid.cjs.entry.js +8 -8
- package/dist/cjs/revo-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/revo-grid.cjs.js +4 -4
- package/dist/cjs/revo-grid.cjs.js.map +1 -1
- package/dist/cjs/revo-grid.entry.cjs.js.map +1 -1
- package/dist/cjs/revogr-attribution.revogr-extra.revogr-focus.revogr-overlay-selection.revogr-row-headers.revogr-scroll-virtual.revogr-temp-range.entry.cjs.js.map +1 -1
- package/dist/cjs/revogr-attribution_7.cjs.entry.js +10 -10
- package/dist/cjs/revogr-attribution_7.cjs.entry.js.map +1 -1
- package/dist/cjs/revogr-clipboard.revogr-edit.revogr-order-editor.entry.cjs.js.map +1 -1
- package/dist/cjs/revogr-clipboard_3.cjs.entry.js +5 -5
- package/dist/cjs/revogr-clipboard_3.cjs.entry.js.map +1 -1
- package/dist/cjs/revogr-data.revogr-header.revogr-viewport-scroll.vnode-html.entry.cjs.js.map +1 -1
- package/dist/cjs/revogr-data_4.cjs.entry.js +10 -10
- package/dist/cjs/revogr-data_4.cjs.entry.js.map +1 -1
- package/dist/cjs/revogr-filter-panel.cjs.entry.js +3 -3
- package/dist/cjs/revogr-filter-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/revogr-filter-panel.entry.cjs.js.map +1 -1
- package/dist/cjs/{text-editor-pxAtbkyc.js → text-editor-C6fUGszl.js} +4 -4
- package/dist/cjs/{text-editor-pxAtbkyc.js.map → text-editor-C6fUGszl.js.map} +1 -1
- package/dist/cjs/{throttle-CQppnhEi.js → throttle-BBq2OiCM.js} +3 -3
- package/dist/cjs/{throttle-CQppnhEi.js.map → throttle-BBq2OiCM.js.map} +1 -1
- package/dist/cjs/{viewport.store-BrZDEt69.js → viewport.store-BQqAGkuJ.js} +3 -3
- package/dist/cjs/{viewport.store-BrZDEt69.js.map → viewport.store-BQqAGkuJ.js.map} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/data/revogr-data-style.css +0 -72
- package/dist/collection/components/editors/revogr-edit-style.css +0 -72
- package/dist/collection/components/header/revogr-header-style.css +0 -72
- package/dist/collection/components/overlay/revogr-overlay-style.css +0 -72
- package/dist/collection/components/revoGrid/revo-grid-style.css +3 -75
- package/dist/collection/components/scroll/revogr-viewport-scroll-style.css +0 -72
- package/dist/collection/components/scrollable/revogr-scroll-style.css +0 -72
- package/dist/collection/components/selectionFocus/revogr-focus-style.css +0 -72
- package/dist/collection/components/selectionTempRange/revogr-temp-range-style.css +0 -72
- package/dist/collection/plugins/filter/filter.style.css +0 -72
- package/dist/collection/plugins/sorting/sorting.func.js +2 -2
- package/dist/collection/plugins/sorting/sorting.func.js.map +1 -1
- package/dist/collection/plugins/sorting/sorting.plugin.js +3 -3
- package/dist/collection/plugins/sorting/sorting.plugin.js.map +1 -1
- package/dist/esm/{app-globals-Bp4Vbqcr.js → app-globals-C3ZHKjnB.js} +3 -3
- package/dist/esm/{app-globals-Bp4Vbqcr.js.map → app-globals-C3ZHKjnB.js.map} +1 -1
- package/dist/{revo-grid/cell-renderer-C6x60eGs.js → esm/cell-renderer-AeQIe3qD.js} +5 -5
- package/dist/{revo-grid/cell-renderer-C6x60eGs.js.map → esm/cell-renderer-AeQIe3qD.js.map} +1 -1
- package/dist/esm/{column.drag.plugin-Capa_0kN.js → column.drag.plugin-Dc7h1kmS.js} +13 -13
- package/dist/esm/column.drag.plugin-Dc7h1kmS.js.map +1 -0
- package/dist/esm/{column.service-QLZCp9EY.js → column.service-DyqJ8oYq.js} +4 -4
- package/dist/{revo-grid/column.service-QLZCp9EY.js.map → esm/column.service-DyqJ8oYq.js.map} +1 -1
- package/dist/{revo-grid/dimension.helpers-pcKIUO61.js → esm/dimension.helpers-D5lwLPzd.js} +24 -8
- package/dist/{revo-grid/dimension.helpers-pcKIUO61.js.map → esm/dimension.helpers-D5lwLPzd.js.map} +1 -1
- package/dist/esm/{edit.utils-BBbK2wbv.js → edit.utils-B6bLKSQh.js} +3 -3
- package/dist/esm/{edit.utils-BBbK2wbv.js.map → edit.utils-B6bLKSQh.js.map} +1 -1
- package/dist/{revo-grid/filter.button-BpZR0kGU.js → esm/filter.button-DmOE7VCJ.js} +3 -3
- package/dist/esm/{filter.button-BpZR0kGU.js.map → filter.button-DmOE7VCJ.js.map} +1 -1
- package/dist/esm/{header-cell-renderer-AAPG96e2.js → header-cell-renderer-XxSVxgM5.js} +4 -4
- package/dist/esm/{header-cell-renderer-AAPG96e2.js.map → header-cell-renderer-XxSVxgM5.js.map} +1 -1
- package/dist/esm/{index-gUcGIzDv.js → index-Dyptvvxf.js} +196 -133
- package/dist/esm/index-Dyptvvxf.js.map +1 -0
- package/dist/esm/index.js +11 -11
- package/dist/esm/loader.js +4 -4
- package/dist/esm/revo-grid.entry.js +8 -8
- package/dist/esm/revo-grid.entry.js.map +1 -1
- package/dist/esm/revo-grid.js +5 -5
- package/dist/esm/revo-grid.js.map +1 -1
- package/dist/esm/revogr-attribution.revogr-extra.revogr-focus.revogr-overlay-selection.revogr-row-headers.revogr-scroll-virtual.revogr-temp-range.entry.js.map +1 -1
- package/dist/esm/revogr-attribution_7.entry.js +10 -10
- package/dist/esm/revogr-attribution_7.entry.js.map +1 -1
- package/dist/esm/revogr-clipboard.revogr-edit.revogr-order-editor.entry.js.map +1 -1
- package/dist/esm/revogr-clipboard_3.entry.js +5 -5
- package/dist/esm/revogr-clipboard_3.entry.js.map +1 -1
- package/dist/esm/revogr-data.revogr-header.revogr-viewport-scroll.vnode-html.entry.js.map +1 -1
- package/dist/esm/revogr-data_4.entry.js +10 -10
- package/dist/esm/revogr-data_4.entry.js.map +1 -1
- package/dist/esm/revogr-filter-panel.entry.js +3 -3
- package/dist/esm/revogr-filter-panel.entry.js.map +1 -1
- package/dist/esm/{text-editor-92MGc5Bc.js → text-editor-DlCRmV75.js} +4 -4
- package/dist/esm/{text-editor-92MGc5Bc.js.map → text-editor-DlCRmV75.js.map} +1 -1
- package/dist/esm/{throttle-Dshl76F1.js → throttle-DcjZyclk.js} +3 -3
- package/dist/{revo-grid/throttle-Dshl76F1.js.map → esm/throttle-DcjZyclk.js.map} +1 -1
- package/dist/{revo-grid/viewport.store-C89n4AEU.js → esm/viewport.store-2mQugd8S.js} +3 -3
- package/dist/{revo-grid/viewport.store-C89n4AEU.js.map → esm/viewport.store-2mQugd8S.js.map} +1 -1
- package/dist/revo-grid/{app-globals-Bp4Vbqcr.js → app-globals-C3ZHKjnB.js} +3 -3
- package/dist/revo-grid/{app-globals-Bp4Vbqcr.js.map → app-globals-C3ZHKjnB.js.map} +1 -1
- package/dist/{esm/cell-renderer-C6x60eGs.js → revo-grid/cell-renderer-AeQIe3qD.js} +5 -5
- package/dist/{esm/cell-renderer-C6x60eGs.js.map → revo-grid/cell-renderer-AeQIe3qD.js.map} +1 -1
- package/dist/revo-grid/{column.drag.plugin-Capa_0kN.js → column.drag.plugin-Dc7h1kmS.js} +13 -13
- package/dist/revo-grid/column.drag.plugin-Dc7h1kmS.js.map +1 -0
- package/dist/revo-grid/{column.service-QLZCp9EY.js → column.service-DyqJ8oYq.js} +4 -4
- package/dist/{esm/column.service-QLZCp9EY.js.map → revo-grid/column.service-DyqJ8oYq.js.map} +1 -1
- package/dist/{esm/dimension.helpers-pcKIUO61.js → revo-grid/dimension.helpers-D5lwLPzd.js} +24 -8
- package/dist/{esm/dimension.helpers-pcKIUO61.js.map → revo-grid/dimension.helpers-D5lwLPzd.js.map} +1 -1
- package/dist/revo-grid/{edit.utils-BBbK2wbv.js → edit.utils-B6bLKSQh.js} +3 -3
- package/dist/revo-grid/{edit.utils-BBbK2wbv.js.map → edit.utils-B6bLKSQh.js.map} +1 -1
- package/dist/{esm/filter.button-BpZR0kGU.js → revo-grid/filter.button-DmOE7VCJ.js} +3 -3
- package/dist/revo-grid/{filter.button-BpZR0kGU.js.map → filter.button-DmOE7VCJ.js.map} +1 -1
- package/dist/revo-grid/{header-cell-renderer-AAPG96e2.js → header-cell-renderer-XxSVxgM5.js} +4 -4
- package/dist/revo-grid/{header-cell-renderer-AAPG96e2.js.map → header-cell-renderer-XxSVxgM5.js.map} +1 -1
- package/dist/revo-grid/{index-gUcGIzDv.js → index-Dyptvvxf.js} +196 -133
- package/dist/revo-grid/index-Dyptvvxf.js.map +1 -0
- package/dist/revo-grid/index.esm.js +11 -11
- package/dist/revo-grid/revo-grid.entry.esm.js.map +1 -1
- package/dist/revo-grid/revo-grid.entry.js +8 -8
- package/dist/revo-grid/revo-grid.entry.js.map +1 -1
- package/dist/revo-grid/revo-grid.esm.js +5 -5
- package/dist/revo-grid/revo-grid.esm.js.map +1 -1
- package/dist/revo-grid/revogr-attribution.revogr-extra.revogr-focus.revogr-overlay-selection.revogr-row-headers.revogr-scroll-virtual.revogr-temp-range.entry.esm.js.map +1 -1
- package/dist/revo-grid/revogr-attribution_7.entry.js +10 -10
- package/dist/revo-grid/revogr-attribution_7.entry.js.map +1 -1
- package/dist/revo-grid/revogr-clipboard.revogr-edit.revogr-order-editor.entry.esm.js.map +1 -1
- package/dist/revo-grid/revogr-clipboard_3.entry.js +5 -5
- package/dist/revo-grid/revogr-clipboard_3.entry.js.map +1 -1
- package/dist/revo-grid/revogr-data.revogr-header.revogr-viewport-scroll.vnode-html.entry.esm.js.map +1 -1
- package/dist/revo-grid/revogr-data_4.entry.js +10 -10
- package/dist/revo-grid/revogr-data_4.entry.js.map +1 -1
- package/dist/revo-grid/revogr-filter-panel.entry.esm.js.map +1 -1
- package/dist/revo-grid/revogr-filter-panel.entry.js +3 -3
- package/dist/revo-grid/revogr-filter-panel.entry.js.map +1 -1
- package/dist/revo-grid/{text-editor-92MGc5Bc.js → text-editor-DlCRmV75.js} +4 -4
- package/dist/revo-grid/{text-editor-92MGc5Bc.js.map → text-editor-DlCRmV75.js.map} +1 -1
- package/dist/revo-grid/{throttle-Dshl76F1.js → throttle-DcjZyclk.js} +3 -3
- package/dist/{esm/throttle-Dshl76F1.js.map → revo-grid/throttle-DcjZyclk.js.map} +1 -1
- package/dist/{esm/viewport.store-C89n4AEU.js → revo-grid/viewport.store-2mQugd8S.js} +3 -3
- package/dist/{esm/viewport.store-C89n4AEU.js.map → revo-grid/viewport.store-2mQugd8S.js.map} +1 -1
- package/dist/types/stencil-public-runtime.d.ts +12 -5
- package/hydrate/index.js +275 -158
- package/hydrate/index.mjs +275 -158
- package/package.json +4 -4
- package/standalone/data.store.js +21 -5
- package/standalone/data.store.js.map +1 -1
- package/standalone/revo-grid.js +7 -7
- package/standalone/revo-grid.js.map +1 -1
- package/standalone/revogr-attribution2.js +1 -1
- package/standalone/revogr-data2.js +2 -2
- package/standalone/revogr-data2.js.map +1 -1
- package/standalone/revogr-edit2.js +2 -2
- package/standalone/revogr-edit2.js.map +1 -1
- package/standalone/revogr-extra2.js +1 -1
- package/standalone/revogr-filter-panel.js +2 -2
- package/standalone/revogr-filter-panel.js.map +1 -1
- package/standalone/revogr-focus2.js +2 -2
- package/standalone/revogr-focus2.js.map +1 -1
- package/standalone/revogr-header2.js +2 -2
- package/standalone/revogr-header2.js.map +1 -1
- package/standalone/revogr-overlay-selection2.js +2 -2
- package/standalone/revogr-overlay-selection2.js.map +1 -1
- package/standalone/revogr-row-headers2.js +1 -1
- package/standalone/revogr-scroll-virtual2.js +2 -2
- package/standalone/revogr-scroll-virtual2.js.map +1 -1
- package/standalone/revogr-temp-range2.js +2 -2
- package/standalone/revogr-temp-range2.js.map +1 -1
- package/standalone/revogr-viewport-scroll2.js +2 -2
- package/standalone/revogr-viewport-scroll2.js.map +1 -1
- package/standalone/vnode-converter.js +1 -1
- package/dist/cjs/column.drag.plugin-CxKQ-GqY.js.map +0 -1
- package/dist/cjs/dimension.helpers-BmZOxsgq.js.map +0 -1
- package/dist/cjs/index-BbtPQ4Br.js.map +0 -1
- package/dist/esm/column.drag.plugin-Capa_0kN.js.map +0 -1
- package/dist/esm/index-gUcGIzDv.js.map +0 -1
- package/dist/revo-grid/column.drag.plugin-Capa_0kN.js.map +0 -1
- package/dist/revo-grid/index-gUcGIzDv.js.map +0 -1
|
@@ -5,7 +5,7 @@ const NAMESPACE = 'revo-grid';
|
|
|
5
5
|
const BUILD = /* revo-grid */ { hydratedSelectorName: "hydrated", lazyLoad: true, shadowDom: false, slotRelocation: true, updatable: true};
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Platform v4.
|
|
8
|
+
Stencil Client Platform v4.36.3 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
var __defProp = Object.defineProperty;
|
|
11
11
|
var __export = (target, all) => {
|
|
@@ -188,6 +188,7 @@ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
|
188
188
|
}
|
|
189
189
|
return false;
|
|
190
190
|
})() ;
|
|
191
|
+
var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
|
|
191
192
|
var queuePending = false;
|
|
192
193
|
var queueDomReads = [];
|
|
193
194
|
var queueDomWrites = [];
|
|
@@ -538,6 +539,107 @@ var uniqueTime = (key, measureText) => {
|
|
|
538
539
|
};
|
|
539
540
|
}
|
|
540
541
|
};
|
|
542
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
543
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
544
|
+
let style = styles.get(scopeId2);
|
|
545
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
546
|
+
style = style || new CSSStyleSheet();
|
|
547
|
+
if (typeof style === "string") {
|
|
548
|
+
style = cssText;
|
|
549
|
+
} else {
|
|
550
|
+
style.replaceSync(cssText);
|
|
551
|
+
}
|
|
552
|
+
} else {
|
|
553
|
+
style = cssText;
|
|
554
|
+
}
|
|
555
|
+
styles.set(scopeId2, style);
|
|
556
|
+
};
|
|
557
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
558
|
+
var _a;
|
|
559
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
560
|
+
const style = styles.get(scopeId2);
|
|
561
|
+
if (!win.document) {
|
|
562
|
+
return scopeId2;
|
|
563
|
+
}
|
|
564
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
565
|
+
if (style) {
|
|
566
|
+
if (typeof style === "string") {
|
|
567
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
568
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
569
|
+
let styleElm;
|
|
570
|
+
if (!appliedStyles) {
|
|
571
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
572
|
+
}
|
|
573
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
574
|
+
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
575
|
+
styleElm.innerHTML = style;
|
|
576
|
+
} else {
|
|
577
|
+
styleElm = win.document.createElement("style");
|
|
578
|
+
styleElm.innerHTML = style;
|
|
579
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
580
|
+
if (nonce != null) {
|
|
581
|
+
styleElm.setAttribute("nonce", nonce);
|
|
582
|
+
}
|
|
583
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
584
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
585
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
586
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
587
|
+
styleContainerNode.insertBefore(
|
|
588
|
+
styleElm,
|
|
589
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
590
|
+
);
|
|
591
|
+
} else if ("host" in styleContainerNode) {
|
|
592
|
+
if (supportsConstructableStylesheets) {
|
|
593
|
+
const stylesheet = new CSSStyleSheet();
|
|
594
|
+
stylesheet.replaceSync(style);
|
|
595
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
596
|
+
styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
|
|
597
|
+
} else {
|
|
598
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
599
|
+
}
|
|
600
|
+
} else {
|
|
601
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
602
|
+
if (existingStyleContainer) {
|
|
603
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
604
|
+
} else {
|
|
605
|
+
styleContainerNode.prepend(styleElm);
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
} else {
|
|
609
|
+
styleContainerNode.append(styleElm);
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
613
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
617
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
618
|
+
}
|
|
619
|
+
if (appliedStyles) {
|
|
620
|
+
appliedStyles.add(scopeId2);
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
624
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
625
|
+
styleContainerNode.adoptedStyleSheets.push(style);
|
|
626
|
+
} else {
|
|
627
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
return scopeId2;
|
|
632
|
+
};
|
|
633
|
+
var attachStyles = (hostRef) => {
|
|
634
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
635
|
+
const elm = hostRef.$hostElement$;
|
|
636
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
637
|
+
addStyle(
|
|
638
|
+
elm.getRootNode(),
|
|
639
|
+
cmpMeta);
|
|
640
|
+
endAttachStyles();
|
|
641
|
+
};
|
|
642
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
541
643
|
var h = (nodeName, vnodeData, ...children) => {
|
|
542
644
|
let child = null;
|
|
543
645
|
let key = null;
|
|
@@ -652,7 +754,7 @@ var convertToPrivate = (node) => {
|
|
|
652
754
|
|
|
653
755
|
// src/runtime/client-hydrate.ts
|
|
654
756
|
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
655
|
-
var _a;
|
|
757
|
+
var _a, _b, _c;
|
|
656
758
|
const endHydrate = createTime("hydrateClient", tagName);
|
|
657
759
|
const shadowRoot = hostElm.shadowRoot;
|
|
658
760
|
const childRenderNodes = [];
|
|
@@ -663,7 +765,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
663
765
|
vnode.$elm$ = hostElm;
|
|
664
766
|
const members = Object.entries(((_a = hostRef.$cmpMeta$) == null ? void 0 : _a.$members$) || {});
|
|
665
767
|
members.forEach(([memberName, [memberFlags, metaAttributeName]]) => {
|
|
666
|
-
var
|
|
768
|
+
var _b2;
|
|
667
769
|
if (!(memberFlags & 31 /* Prop */)) {
|
|
668
770
|
return;
|
|
669
771
|
}
|
|
@@ -673,7 +775,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
673
775
|
const attrPropVal = parsePropertyValue(
|
|
674
776
|
attrVal,
|
|
675
777
|
memberFlags);
|
|
676
|
-
(
|
|
778
|
+
(_b2 = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _b2.set(memberName, attrPropVal);
|
|
677
779
|
}
|
|
678
780
|
});
|
|
679
781
|
if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
|
|
@@ -704,6 +806,16 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
704
806
|
if (childRenderNode.$tag$ === "slot") {
|
|
705
807
|
node["s-cr"] = hostElm["s-cr"];
|
|
706
808
|
}
|
|
809
|
+
} else if (((_b = childRenderNode.$tag$) == null ? void 0 : _b.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
|
|
810
|
+
const cmpMeta = getHostRef(childRenderNode.$elm$);
|
|
811
|
+
if (cmpMeta) {
|
|
812
|
+
const scopeId3 = getScopeId(
|
|
813
|
+
cmpMeta.$cmpMeta$);
|
|
814
|
+
const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
|
|
815
|
+
if (styleSheet) {
|
|
816
|
+
hostElm.shadowRoot.append(styleSheet.cloneNode(true));
|
|
817
|
+
}
|
|
818
|
+
}
|
|
707
819
|
}
|
|
708
820
|
if (childRenderNode.$tag$ === "slot") {
|
|
709
821
|
childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
|
|
@@ -719,7 +831,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
719
831
|
}
|
|
720
832
|
}
|
|
721
833
|
if (orgLocationNode && orgLocationNode.isConnected) {
|
|
722
|
-
if (shadowRoot && orgLocationNode["s-en"] === "") {
|
|
834
|
+
if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
|
|
723
835
|
orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
|
|
724
836
|
}
|
|
725
837
|
orgLocationNode.parentNode.removeChild(orgLocationNode);
|
|
@@ -727,7 +839,9 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
727
839
|
node["s-oo"] = parseInt(childRenderNode.$nodeId$);
|
|
728
840
|
}
|
|
729
841
|
}
|
|
730
|
-
|
|
842
|
+
if (orgLocationNode && !orgLocationNode["s-id"]) {
|
|
843
|
+
plt.$orgLocNodes$.delete(orgLocationId);
|
|
844
|
+
}
|
|
731
845
|
}
|
|
732
846
|
const hosts = [];
|
|
733
847
|
const snLen = slottedNodes.length;
|
|
@@ -748,21 +862,25 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
748
862
|
}
|
|
749
863
|
if (!hosts[slottedItem.hostId]) continue;
|
|
750
864
|
const hostEle = hosts[slottedItem.hostId];
|
|
865
|
+
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
|
866
|
+
hostEle.appendChild(slottedItem.node);
|
|
867
|
+
}
|
|
751
868
|
if (!hostEle.shadowRoot || !shadowRoot) {
|
|
752
|
-
slottedItem.slot["s-cr"]
|
|
753
|
-
|
|
754
|
-
slottedItem.slot["s-cr"]
|
|
755
|
-
|
|
756
|
-
|
|
869
|
+
if (!slottedItem.slot["s-cr"]) {
|
|
870
|
+
slottedItem.slot["s-cr"] = hostEle["s-cr"];
|
|
871
|
+
if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
|
|
872
|
+
slottedItem.slot["s-cr"] = hostEle;
|
|
873
|
+
} else {
|
|
874
|
+
slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
|
|
875
|
+
}
|
|
757
876
|
}
|
|
758
877
|
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
878
|
+
if (((_c = slottedItem.node.parentElement) == null ? void 0 : _c.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
|
|
879
|
+
slottedItem.node.removeAttribute("slot");
|
|
880
|
+
}
|
|
762
881
|
}
|
|
763
882
|
}
|
|
764
883
|
}
|
|
765
|
-
plt.$orgLocNodes$.delete(hostElm["s-id"]);
|
|
766
884
|
hostRef.$hostElement$ = hostElm;
|
|
767
885
|
endHydrate();
|
|
768
886
|
};
|
|
@@ -908,7 +1026,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
908
1026
|
vnode.$index$ = "0";
|
|
909
1027
|
parentVNode.$children$ = [vnode];
|
|
910
1028
|
} else {
|
|
911
|
-
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
1029
|
+
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim() && !node["s-nr"]) {
|
|
912
1030
|
node.remove();
|
|
913
1031
|
}
|
|
914
1032
|
}
|
|
@@ -978,13 +1096,17 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
978
1096
|
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
979
1097
|
}
|
|
980
1098
|
var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
|
|
1099
|
+
var _a, _b;
|
|
981
1100
|
let slottedNode = slotNode.nextSibling;
|
|
982
1101
|
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
1102
|
+
if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
|
|
1103
|
+
do {
|
|
1104
|
+
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 */))) {
|
|
1105
|
+
slottedNode["s-sn"] = slotName;
|
|
1106
|
+
slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
|
|
1107
|
+
}
|
|
1108
|
+
slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
|
|
1109
|
+
} while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
|
|
988
1110
|
};
|
|
989
1111
|
var findCorrespondingNode = (node, type) => {
|
|
990
1112
|
let sibling = node;
|
|
@@ -1006,17 +1128,16 @@ createSupportsRuleRe("::slotted");
|
|
|
1006
1128
|
createSupportsRuleRe(":host");
|
|
1007
1129
|
createSupportsRuleRe(":host-context");
|
|
1008
1130
|
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
1009
|
-
if (typeof propValue === "string" && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
|
|
1010
|
-
try {
|
|
1011
|
-
propValue = JSON.parse(propValue);
|
|
1012
|
-
return propValue;
|
|
1013
|
-
} catch (e) {
|
|
1014
|
-
}
|
|
1015
|
-
}
|
|
1016
1131
|
if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
|
|
1017
1132
|
propValue = deserializeProperty(propValue);
|
|
1018
1133
|
return propValue;
|
|
1019
1134
|
}
|
|
1135
|
+
if (typeof propValue === "string" && (propType & 16 /* Unknown */ || propType & 8 /* Any */) && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
|
|
1136
|
+
try {
|
|
1137
|
+
return JSON.parse(propValue);
|
|
1138
|
+
} catch (e) {
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1020
1141
|
if (propValue != null && !isComplexType(propValue)) {
|
|
1021
1142
|
if (propType & 4 /* Boolean */) {
|
|
1022
1143
|
{
|
|
@@ -1033,7 +1154,10 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
|
1033
1154
|
}
|
|
1034
1155
|
return propValue;
|
|
1035
1156
|
};
|
|
1036
|
-
var getElement = (ref) =>
|
|
1157
|
+
var getElement = (ref) => {
|
|
1158
|
+
var _a;
|
|
1159
|
+
return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
|
|
1160
|
+
};
|
|
1037
1161
|
|
|
1038
1162
|
// src/runtime/event-emitter.ts
|
|
1039
1163
|
var createEvent = (ref, name, flags) => {
|
|
@@ -1054,99 +1178,6 @@ var emitEvent = (elm, name, opts) => {
|
|
|
1054
1178
|
elm.dispatchEvent(ev);
|
|
1055
1179
|
return ev;
|
|
1056
1180
|
};
|
|
1057
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
1058
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
1059
|
-
let style = styles.get(scopeId2);
|
|
1060
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
1061
|
-
style = style || new CSSStyleSheet();
|
|
1062
|
-
if (typeof style === "string") {
|
|
1063
|
-
style = cssText;
|
|
1064
|
-
} else {
|
|
1065
|
-
style.replaceSync(cssText);
|
|
1066
|
-
}
|
|
1067
|
-
} else {
|
|
1068
|
-
style = cssText;
|
|
1069
|
-
}
|
|
1070
|
-
styles.set(scopeId2, style);
|
|
1071
|
-
};
|
|
1072
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
1073
|
-
var _a;
|
|
1074
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
1075
|
-
const style = styles.get(scopeId2);
|
|
1076
|
-
if (!win.document) {
|
|
1077
|
-
return scopeId2;
|
|
1078
|
-
}
|
|
1079
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
1080
|
-
if (style) {
|
|
1081
|
-
if (typeof style === "string") {
|
|
1082
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
1083
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
1084
|
-
let styleElm;
|
|
1085
|
-
if (!appliedStyles) {
|
|
1086
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
1087
|
-
}
|
|
1088
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
1089
|
-
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
1090
|
-
styleElm.innerHTML = style;
|
|
1091
|
-
} else {
|
|
1092
|
-
styleElm = win.document.createElement("style");
|
|
1093
|
-
styleElm.innerHTML = style;
|
|
1094
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1095
|
-
if (nonce != null) {
|
|
1096
|
-
styleElm.setAttribute("nonce", nonce);
|
|
1097
|
-
}
|
|
1098
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
1099
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
1100
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
1101
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
1102
|
-
styleContainerNode.insertBefore(
|
|
1103
|
-
styleElm,
|
|
1104
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
1105
|
-
);
|
|
1106
|
-
} else if ("host" in styleContainerNode) {
|
|
1107
|
-
if (supportsConstructableStylesheets) {
|
|
1108
|
-
const stylesheet = new CSSStyleSheet();
|
|
1109
|
-
stylesheet.replaceSync(style);
|
|
1110
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
1111
|
-
} else {
|
|
1112
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
1113
|
-
if (existingStyleContainer) {
|
|
1114
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
1115
|
-
} else {
|
|
1116
|
-
styleContainerNode.prepend(styleElm);
|
|
1117
|
-
}
|
|
1118
|
-
}
|
|
1119
|
-
} else {
|
|
1120
|
-
styleContainerNode.append(styleElm);
|
|
1121
|
-
}
|
|
1122
|
-
}
|
|
1123
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1124
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
1125
|
-
}
|
|
1126
|
-
}
|
|
1127
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
1128
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
1129
|
-
}
|
|
1130
|
-
if (appliedStyles) {
|
|
1131
|
-
appliedStyles.add(scopeId2);
|
|
1132
|
-
}
|
|
1133
|
-
}
|
|
1134
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
1135
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
1136
|
-
}
|
|
1137
|
-
}
|
|
1138
|
-
return scopeId2;
|
|
1139
|
-
};
|
|
1140
|
-
var attachStyles = (hostRef) => {
|
|
1141
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
1142
|
-
const elm = hostRef.$hostElement$;
|
|
1143
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
1144
|
-
addStyle(
|
|
1145
|
-
elm.getRootNode(),
|
|
1146
|
-
cmpMeta);
|
|
1147
|
-
endAttachStyles();
|
|
1148
|
-
};
|
|
1149
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
1150
1181
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
1151
1182
|
if (oldValue === newValue) {
|
|
1152
1183
|
return;
|
|
@@ -1157,12 +1188,13 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
1157
1188
|
const classList = elm.classList;
|
|
1158
1189
|
const oldClasses = parseClassList(oldValue);
|
|
1159
1190
|
let newClasses = parseClassList(newValue);
|
|
1160
|
-
if (elm["s-si"] && initialRender) {
|
|
1161
|
-
|
|
1191
|
+
if ((elm["s-si"] || elm["s-sc"]) && initialRender) {
|
|
1192
|
+
const scopeId2 = elm["s-sc"] || elm["s-si"];
|
|
1193
|
+
newClasses.push(scopeId2);
|
|
1162
1194
|
oldClasses.forEach((c) => {
|
|
1163
|
-
if (c.startsWith(
|
|
1195
|
+
if (c.startsWith(scopeId2)) newClasses.push(c);
|
|
1164
1196
|
});
|
|
1165
|
-
newClasses = [...new Set(newClasses)];
|
|
1197
|
+
newClasses = [...new Set(newClasses)].filter((c) => c);
|
|
1166
1198
|
classList.add(...newClasses);
|
|
1167
1199
|
} else {
|
|
1168
1200
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
@@ -1586,6 +1618,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1586
1618
|
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
1587
1619
|
) {
|
|
1588
1620
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
1621
|
+
} else if (isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
|
|
1622
|
+
newVNode2.$children$ = oldChildren;
|
|
1589
1623
|
}
|
|
1590
1624
|
if (isSvgMode && tag === "svg") {
|
|
1591
1625
|
isSvgMode = false;
|
|
@@ -1779,6 +1813,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
1779
1813
|
}
|
|
1780
1814
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
1781
1815
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
1816
|
+
if (isInitialLoad) {
|
|
1817
|
+
queueMicrotask(() => {
|
|
1818
|
+
dispatch();
|
|
1819
|
+
});
|
|
1820
|
+
return;
|
|
1821
|
+
}
|
|
1782
1822
|
return writeTask(dispatch) ;
|
|
1783
1823
|
};
|
|
1784
1824
|
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
@@ -1906,9 +1946,10 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1906
1946
|
}
|
|
1907
1947
|
};
|
|
1908
1948
|
var forceUpdate = (ref) => {
|
|
1949
|
+
var _a;
|
|
1909
1950
|
{
|
|
1910
1951
|
const hostRef = getHostRef(ref);
|
|
1911
|
-
const isConnected = hostRef.$hostElement
|
|
1952
|
+
const isConnected = (_a = hostRef == null ? void 0 : hostRef.$hostElement$) == null ? void 0 : _a.isConnected;
|
|
1912
1953
|
if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1913
1954
|
scheduleUpdate(hostRef, false);
|
|
1914
1955
|
}
|
|
@@ -1916,7 +1957,13 @@ var forceUpdate = (ref) => {
|
|
|
1916
1957
|
}
|
|
1917
1958
|
};
|
|
1918
1959
|
var appDidLoad = (who) => {
|
|
1960
|
+
var _a;
|
|
1919
1961
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
1962
|
+
{
|
|
1963
|
+
if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
|
|
1964
|
+
plt.$orgLocNodes$.clear();
|
|
1965
|
+
}
|
|
1966
|
+
}
|
|
1920
1967
|
};
|
|
1921
1968
|
var safeCall = (instance, method, arg, elm) => {
|
|
1922
1969
|
if (instance && instance[method]) {
|
|
@@ -1937,6 +1984,9 @@ var addHydratedFlag = (elm) => {
|
|
|
1937
1984
|
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
1938
1985
|
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
1939
1986
|
const hostRef = getHostRef(ref);
|
|
1987
|
+
if (!hostRef) {
|
|
1988
|
+
return;
|
|
1989
|
+
}
|
|
1940
1990
|
if (!hostRef) {
|
|
1941
1991
|
throw new Error(
|
|
1942
1992
|
`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).`
|
|
@@ -2012,6 +2062,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2012
2062
|
Object.defineProperty(prototype, memberName, {
|
|
2013
2063
|
set(newValue) {
|
|
2014
2064
|
const ref = getHostRef(this);
|
|
2065
|
+
if (!ref) {
|
|
2066
|
+
return;
|
|
2067
|
+
}
|
|
2015
2068
|
if (origSetter) {
|
|
2016
2069
|
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
2017
2070
|
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
@@ -2086,7 +2139,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2086
2139
|
} else if (propName == null) {
|
|
2087
2140
|
const hostRef = getHostRef(this);
|
|
2088
2141
|
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
2089
|
-
if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
2142
|
+
if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
2090
2143
|
const instance = hostRef.$lazyInstance$ ;
|
|
2091
2144
|
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
2092
2145
|
entry == null ? void 0 : entry.forEach((callbackName) => {
|
|
@@ -2107,7 +2160,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2107
2160
|
Cstr.observedAttributes = Array.from(
|
|
2108
2161
|
/* @__PURE__ */ new Set([
|
|
2109
2162
|
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
|
2110
|
-
...members.filter(([_, m]) => m[0] &
|
|
2163
|
+
...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
|
|
2111
2164
|
var _a2;
|
|
2112
2165
|
const attrName = m[1] || propName;
|
|
2113
2166
|
attrNameToPropName.set(attrName, propName);
|
|
@@ -2201,6 +2254,9 @@ var fireConnectedCallback = (instance, elm) => {
|
|
|
2201
2254
|
var connectedCallback = (elm) => {
|
|
2202
2255
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
2203
2256
|
const hostRef = getHostRef(elm);
|
|
2257
|
+
if (!hostRef) {
|
|
2258
|
+
return;
|
|
2259
|
+
}
|
|
2204
2260
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
2205
2261
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
2206
2262
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
@@ -2269,7 +2325,7 @@ var disconnectedCallback = async (elm) => {
|
|
|
2269
2325
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
2270
2326
|
const hostRef = getHostRef(elm);
|
|
2271
2327
|
{
|
|
2272
|
-
if (hostRef.$rmListeners$) {
|
|
2328
|
+
if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
|
|
2273
2329
|
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
2274
2330
|
hostRef.$rmListeners$ = void 0;
|
|
2275
2331
|
}
|
|
@@ -2346,6 +2402,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2346
2402
|
}
|
|
2347
2403
|
connectedCallback() {
|
|
2348
2404
|
const hostRef = getHostRef(this);
|
|
2405
|
+
if (!hostRef) {
|
|
2406
|
+
return;
|
|
2407
|
+
}
|
|
2349
2408
|
if (!this.hasRegisteredEventListeners) {
|
|
2350
2409
|
this.hasRegisteredEventListeners = true;
|
|
2351
2410
|
addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
|
|
@@ -2365,6 +2424,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2365
2424
|
plt.raf(() => {
|
|
2366
2425
|
var _a3;
|
|
2367
2426
|
const hostRef = getHostRef(this);
|
|
2427
|
+
if (!hostRef) {
|
|
2428
|
+
return;
|
|
2429
|
+
}
|
|
2368
2430
|
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
2369
2431
|
if (i2 > -1) {
|
|
2370
2432
|
deferredConnectedCallbacks.splice(i2, 1);
|
|
@@ -2375,7 +2437,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2375
2437
|
});
|
|
2376
2438
|
}
|
|
2377
2439
|
componentOnReady() {
|
|
2378
|
-
|
|
2440
|
+
var _a3;
|
|
2441
|
+
return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
|
|
2379
2442
|
}
|
|
2380
2443
|
};
|
|
2381
2444
|
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
@@ -2451,6 +2514,6 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
|
2451
2514
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
2452
2515
|
|
|
2453
2516
|
export { Build as B, Host as H, getRenderingRef as a, bootstrapLazy as b, createEvent as c, forceUpdate as f, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
|
2454
|
-
//# sourceMappingURL=index-
|
|
2517
|
+
//# sourceMappingURL=index-Dyptvvxf.js.map
|
|
2455
2518
|
|
|
2456
|
-
//# sourceMappingURL=index-
|
|
2519
|
+
//# sourceMappingURL=index-Dyptvvxf.js.map
|