@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
|
@@ -25,7 +25,7 @@ const NAMESPACE = 'revo-grid';
|
|
|
25
25
|
const BUILD = /* revo-grid */ { hydratedSelectorName: "hydrated", lazyLoad: true, shadowDom: false, slotRelocation: true, updatable: true};
|
|
26
26
|
|
|
27
27
|
/*
|
|
28
|
-
Stencil Client Platform v4.
|
|
28
|
+
Stencil Client Platform v4.36.3 | MIT Licensed | https://stenciljs.com
|
|
29
29
|
*/
|
|
30
30
|
var __defProp = Object.defineProperty;
|
|
31
31
|
var __export = (target, all) => {
|
|
@@ -208,6 +208,7 @@ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
|
208
208
|
}
|
|
209
209
|
return false;
|
|
210
210
|
})() ;
|
|
211
|
+
var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
|
|
211
212
|
var queuePending = false;
|
|
212
213
|
var queueDomReads = [];
|
|
213
214
|
var queueDomWrites = [];
|
|
@@ -558,6 +559,107 @@ var uniqueTime = (key, measureText) => {
|
|
|
558
559
|
};
|
|
559
560
|
}
|
|
560
561
|
};
|
|
562
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
563
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
564
|
+
let style = styles.get(scopeId2);
|
|
565
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
566
|
+
style = style || new CSSStyleSheet();
|
|
567
|
+
if (typeof style === "string") {
|
|
568
|
+
style = cssText;
|
|
569
|
+
} else {
|
|
570
|
+
style.replaceSync(cssText);
|
|
571
|
+
}
|
|
572
|
+
} else {
|
|
573
|
+
style = cssText;
|
|
574
|
+
}
|
|
575
|
+
styles.set(scopeId2, style);
|
|
576
|
+
};
|
|
577
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
578
|
+
var _a;
|
|
579
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
580
|
+
const style = styles.get(scopeId2);
|
|
581
|
+
if (!win.document) {
|
|
582
|
+
return scopeId2;
|
|
583
|
+
}
|
|
584
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
585
|
+
if (style) {
|
|
586
|
+
if (typeof style === "string") {
|
|
587
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
588
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
589
|
+
let styleElm;
|
|
590
|
+
if (!appliedStyles) {
|
|
591
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
592
|
+
}
|
|
593
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
594
|
+
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
595
|
+
styleElm.innerHTML = style;
|
|
596
|
+
} else {
|
|
597
|
+
styleElm = win.document.createElement("style");
|
|
598
|
+
styleElm.innerHTML = style;
|
|
599
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
600
|
+
if (nonce != null) {
|
|
601
|
+
styleElm.setAttribute("nonce", nonce);
|
|
602
|
+
}
|
|
603
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
604
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
605
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
606
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
607
|
+
styleContainerNode.insertBefore(
|
|
608
|
+
styleElm,
|
|
609
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
610
|
+
);
|
|
611
|
+
} else if ("host" in styleContainerNode) {
|
|
612
|
+
if (supportsConstructableStylesheets) {
|
|
613
|
+
const stylesheet = new CSSStyleSheet();
|
|
614
|
+
stylesheet.replaceSync(style);
|
|
615
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
616
|
+
styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
|
|
617
|
+
} else {
|
|
618
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
619
|
+
}
|
|
620
|
+
} else {
|
|
621
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
622
|
+
if (existingStyleContainer) {
|
|
623
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
624
|
+
} else {
|
|
625
|
+
styleContainerNode.prepend(styleElm);
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
} else {
|
|
629
|
+
styleContainerNode.append(styleElm);
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
633
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
637
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
638
|
+
}
|
|
639
|
+
if (appliedStyles) {
|
|
640
|
+
appliedStyles.add(scopeId2);
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
644
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
645
|
+
styleContainerNode.adoptedStyleSheets.push(style);
|
|
646
|
+
} else {
|
|
647
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
return scopeId2;
|
|
652
|
+
};
|
|
653
|
+
var attachStyles = (hostRef) => {
|
|
654
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
655
|
+
const elm = hostRef.$hostElement$;
|
|
656
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
657
|
+
addStyle(
|
|
658
|
+
elm.getRootNode(),
|
|
659
|
+
cmpMeta);
|
|
660
|
+
endAttachStyles();
|
|
661
|
+
};
|
|
662
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
561
663
|
var h = (nodeName, vnodeData, ...children) => {
|
|
562
664
|
let child = null;
|
|
563
665
|
let key = null;
|
|
@@ -672,7 +774,7 @@ var convertToPrivate = (node) => {
|
|
|
672
774
|
|
|
673
775
|
// src/runtime/client-hydrate.ts
|
|
674
776
|
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
675
|
-
var _a;
|
|
777
|
+
var _a, _b, _c;
|
|
676
778
|
const endHydrate = createTime("hydrateClient", tagName);
|
|
677
779
|
const shadowRoot = hostElm.shadowRoot;
|
|
678
780
|
const childRenderNodes = [];
|
|
@@ -683,7 +785,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
683
785
|
vnode.$elm$ = hostElm;
|
|
684
786
|
const members = Object.entries(((_a = hostRef.$cmpMeta$) == null ? void 0 : _a.$members$) || {});
|
|
685
787
|
members.forEach(([memberName, [memberFlags, metaAttributeName]]) => {
|
|
686
|
-
var
|
|
788
|
+
var _b2;
|
|
687
789
|
if (!(memberFlags & 31 /* Prop */)) {
|
|
688
790
|
return;
|
|
689
791
|
}
|
|
@@ -693,7 +795,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
693
795
|
const attrPropVal = parsePropertyValue(
|
|
694
796
|
attrVal,
|
|
695
797
|
memberFlags);
|
|
696
|
-
(
|
|
798
|
+
(_b2 = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _b2.set(memberName, attrPropVal);
|
|
697
799
|
}
|
|
698
800
|
});
|
|
699
801
|
if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
|
|
@@ -724,6 +826,16 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
724
826
|
if (childRenderNode.$tag$ === "slot") {
|
|
725
827
|
node["s-cr"] = hostElm["s-cr"];
|
|
726
828
|
}
|
|
829
|
+
} else if (((_b = childRenderNode.$tag$) == null ? void 0 : _b.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
|
|
830
|
+
const cmpMeta = getHostRef(childRenderNode.$elm$);
|
|
831
|
+
if (cmpMeta) {
|
|
832
|
+
const scopeId3 = getScopeId(
|
|
833
|
+
cmpMeta.$cmpMeta$);
|
|
834
|
+
const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
|
|
835
|
+
if (styleSheet) {
|
|
836
|
+
hostElm.shadowRoot.append(styleSheet.cloneNode(true));
|
|
837
|
+
}
|
|
838
|
+
}
|
|
727
839
|
}
|
|
728
840
|
if (childRenderNode.$tag$ === "slot") {
|
|
729
841
|
childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
|
|
@@ -739,7 +851,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
739
851
|
}
|
|
740
852
|
}
|
|
741
853
|
if (orgLocationNode && orgLocationNode.isConnected) {
|
|
742
|
-
if (shadowRoot && orgLocationNode["s-en"] === "") {
|
|
854
|
+
if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
|
|
743
855
|
orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
|
|
744
856
|
}
|
|
745
857
|
orgLocationNode.parentNode.removeChild(orgLocationNode);
|
|
@@ -747,7 +859,9 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
747
859
|
node["s-oo"] = parseInt(childRenderNode.$nodeId$);
|
|
748
860
|
}
|
|
749
861
|
}
|
|
750
|
-
|
|
862
|
+
if (orgLocationNode && !orgLocationNode["s-id"]) {
|
|
863
|
+
plt.$orgLocNodes$.delete(orgLocationId);
|
|
864
|
+
}
|
|
751
865
|
}
|
|
752
866
|
const hosts = [];
|
|
753
867
|
const snLen = slottedNodes.length;
|
|
@@ -768,21 +882,25 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
768
882
|
}
|
|
769
883
|
if (!hosts[slottedItem.hostId]) continue;
|
|
770
884
|
const hostEle = hosts[slottedItem.hostId];
|
|
885
|
+
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
|
886
|
+
hostEle.appendChild(slottedItem.node);
|
|
887
|
+
}
|
|
771
888
|
if (!hostEle.shadowRoot || !shadowRoot) {
|
|
772
|
-
slottedItem.slot["s-cr"]
|
|
773
|
-
|
|
774
|
-
slottedItem.slot["s-cr"]
|
|
775
|
-
|
|
776
|
-
|
|
889
|
+
if (!slottedItem.slot["s-cr"]) {
|
|
890
|
+
slottedItem.slot["s-cr"] = hostEle["s-cr"];
|
|
891
|
+
if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
|
|
892
|
+
slottedItem.slot["s-cr"] = hostEle;
|
|
893
|
+
} else {
|
|
894
|
+
slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
|
|
895
|
+
}
|
|
777
896
|
}
|
|
778
897
|
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
898
|
+
if (((_c = slottedItem.node.parentElement) == null ? void 0 : _c.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
|
|
899
|
+
slottedItem.node.removeAttribute("slot");
|
|
900
|
+
}
|
|
782
901
|
}
|
|
783
902
|
}
|
|
784
903
|
}
|
|
785
|
-
plt.$orgLocNodes$.delete(hostElm["s-id"]);
|
|
786
904
|
hostRef.$hostElement$ = hostElm;
|
|
787
905
|
endHydrate();
|
|
788
906
|
};
|
|
@@ -928,7 +1046,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
928
1046
|
vnode.$index$ = "0";
|
|
929
1047
|
parentVNode.$children$ = [vnode];
|
|
930
1048
|
} else {
|
|
931
|
-
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
1049
|
+
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim() && !node["s-nr"]) {
|
|
932
1050
|
node.remove();
|
|
933
1051
|
}
|
|
934
1052
|
}
|
|
@@ -998,13 +1116,17 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
998
1116
|
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
999
1117
|
}
|
|
1000
1118
|
var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
|
|
1119
|
+
var _a, _b;
|
|
1001
1120
|
let slottedNode = slotNode.nextSibling;
|
|
1002
1121
|
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1122
|
+
if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
|
|
1123
|
+
do {
|
|
1124
|
+
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 */))) {
|
|
1125
|
+
slottedNode["s-sn"] = slotName;
|
|
1126
|
+
slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
|
|
1127
|
+
}
|
|
1128
|
+
slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
|
|
1129
|
+
} while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
|
|
1008
1130
|
};
|
|
1009
1131
|
var findCorrespondingNode = (node, type) => {
|
|
1010
1132
|
let sibling = node;
|
|
@@ -1026,17 +1148,16 @@ createSupportsRuleRe("::slotted");
|
|
|
1026
1148
|
createSupportsRuleRe(":host");
|
|
1027
1149
|
createSupportsRuleRe(":host-context");
|
|
1028
1150
|
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
1029
|
-
if (typeof propValue === "string" && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
|
|
1030
|
-
try {
|
|
1031
|
-
propValue = JSON.parse(propValue);
|
|
1032
|
-
return propValue;
|
|
1033
|
-
} catch (e) {
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
1036
1151
|
if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
|
|
1037
1152
|
propValue = deserializeProperty(propValue);
|
|
1038
1153
|
return propValue;
|
|
1039
1154
|
}
|
|
1155
|
+
if (typeof propValue === "string" && (propType & 16 /* Unknown */ || propType & 8 /* Any */) && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
|
|
1156
|
+
try {
|
|
1157
|
+
return JSON.parse(propValue);
|
|
1158
|
+
} catch (e) {
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1040
1161
|
if (propValue != null && !isComplexType(propValue)) {
|
|
1041
1162
|
if (propType & 4 /* Boolean */) {
|
|
1042
1163
|
{
|
|
@@ -1053,7 +1174,10 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
|
1053
1174
|
}
|
|
1054
1175
|
return propValue;
|
|
1055
1176
|
};
|
|
1056
|
-
var getElement = (ref) =>
|
|
1177
|
+
var getElement = (ref) => {
|
|
1178
|
+
var _a;
|
|
1179
|
+
return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
|
|
1180
|
+
};
|
|
1057
1181
|
|
|
1058
1182
|
// src/runtime/event-emitter.ts
|
|
1059
1183
|
var createEvent = (ref, name, flags) => {
|
|
@@ -1074,99 +1198,6 @@ var emitEvent = (elm, name, opts) => {
|
|
|
1074
1198
|
elm.dispatchEvent(ev);
|
|
1075
1199
|
return ev;
|
|
1076
1200
|
};
|
|
1077
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
1078
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
1079
|
-
let style = styles.get(scopeId2);
|
|
1080
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
1081
|
-
style = style || new CSSStyleSheet();
|
|
1082
|
-
if (typeof style === "string") {
|
|
1083
|
-
style = cssText;
|
|
1084
|
-
} else {
|
|
1085
|
-
style.replaceSync(cssText);
|
|
1086
|
-
}
|
|
1087
|
-
} else {
|
|
1088
|
-
style = cssText;
|
|
1089
|
-
}
|
|
1090
|
-
styles.set(scopeId2, style);
|
|
1091
|
-
};
|
|
1092
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
1093
|
-
var _a;
|
|
1094
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
1095
|
-
const style = styles.get(scopeId2);
|
|
1096
|
-
if (!win.document) {
|
|
1097
|
-
return scopeId2;
|
|
1098
|
-
}
|
|
1099
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
1100
|
-
if (style) {
|
|
1101
|
-
if (typeof style === "string") {
|
|
1102
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
1103
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
1104
|
-
let styleElm;
|
|
1105
|
-
if (!appliedStyles) {
|
|
1106
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
1107
|
-
}
|
|
1108
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
1109
|
-
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
1110
|
-
styleElm.innerHTML = style;
|
|
1111
|
-
} else {
|
|
1112
|
-
styleElm = win.document.createElement("style");
|
|
1113
|
-
styleElm.innerHTML = style;
|
|
1114
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1115
|
-
if (nonce != null) {
|
|
1116
|
-
styleElm.setAttribute("nonce", nonce);
|
|
1117
|
-
}
|
|
1118
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
1119
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
1120
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
1121
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
1122
|
-
styleContainerNode.insertBefore(
|
|
1123
|
-
styleElm,
|
|
1124
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
1125
|
-
);
|
|
1126
|
-
} else if ("host" in styleContainerNode) {
|
|
1127
|
-
if (supportsConstructableStylesheets) {
|
|
1128
|
-
const stylesheet = new CSSStyleSheet();
|
|
1129
|
-
stylesheet.replaceSync(style);
|
|
1130
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
1131
|
-
} else {
|
|
1132
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
1133
|
-
if (existingStyleContainer) {
|
|
1134
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
1135
|
-
} else {
|
|
1136
|
-
styleContainerNode.prepend(styleElm);
|
|
1137
|
-
}
|
|
1138
|
-
}
|
|
1139
|
-
} else {
|
|
1140
|
-
styleContainerNode.append(styleElm);
|
|
1141
|
-
}
|
|
1142
|
-
}
|
|
1143
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1144
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
1145
|
-
}
|
|
1146
|
-
}
|
|
1147
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
1148
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
1149
|
-
}
|
|
1150
|
-
if (appliedStyles) {
|
|
1151
|
-
appliedStyles.add(scopeId2);
|
|
1152
|
-
}
|
|
1153
|
-
}
|
|
1154
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
1155
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
1156
|
-
}
|
|
1157
|
-
}
|
|
1158
|
-
return scopeId2;
|
|
1159
|
-
};
|
|
1160
|
-
var attachStyles = (hostRef) => {
|
|
1161
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
1162
|
-
const elm = hostRef.$hostElement$;
|
|
1163
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
1164
|
-
addStyle(
|
|
1165
|
-
elm.getRootNode(),
|
|
1166
|
-
cmpMeta);
|
|
1167
|
-
endAttachStyles();
|
|
1168
|
-
};
|
|
1169
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
1170
1201
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
1171
1202
|
if (oldValue === newValue) {
|
|
1172
1203
|
return;
|
|
@@ -1177,12 +1208,13 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
1177
1208
|
const classList = elm.classList;
|
|
1178
1209
|
const oldClasses = parseClassList(oldValue);
|
|
1179
1210
|
let newClasses = parseClassList(newValue);
|
|
1180
|
-
if (elm["s-si"] && initialRender) {
|
|
1181
|
-
|
|
1211
|
+
if ((elm["s-si"] || elm["s-sc"]) && initialRender) {
|
|
1212
|
+
const scopeId2 = elm["s-sc"] || elm["s-si"];
|
|
1213
|
+
newClasses.push(scopeId2);
|
|
1182
1214
|
oldClasses.forEach((c) => {
|
|
1183
|
-
if (c.startsWith(
|
|
1215
|
+
if (c.startsWith(scopeId2)) newClasses.push(c);
|
|
1184
1216
|
});
|
|
1185
|
-
newClasses = [...new Set(newClasses)];
|
|
1217
|
+
newClasses = [...new Set(newClasses)].filter((c) => c);
|
|
1186
1218
|
classList.add(...newClasses);
|
|
1187
1219
|
} else {
|
|
1188
1220
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
@@ -1606,6 +1638,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1606
1638
|
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
1607
1639
|
) {
|
|
1608
1640
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
1641
|
+
} else if (isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
|
|
1642
|
+
newVNode2.$children$ = oldChildren;
|
|
1609
1643
|
}
|
|
1610
1644
|
if (isSvgMode && tag === "svg") {
|
|
1611
1645
|
isSvgMode = false;
|
|
@@ -1799,6 +1833,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
1799
1833
|
}
|
|
1800
1834
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
1801
1835
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
1836
|
+
if (isInitialLoad) {
|
|
1837
|
+
queueMicrotask(() => {
|
|
1838
|
+
dispatch();
|
|
1839
|
+
});
|
|
1840
|
+
return;
|
|
1841
|
+
}
|
|
1802
1842
|
return writeTask(dispatch) ;
|
|
1803
1843
|
};
|
|
1804
1844
|
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
@@ -1926,9 +1966,10 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1926
1966
|
}
|
|
1927
1967
|
};
|
|
1928
1968
|
var forceUpdate = (ref) => {
|
|
1969
|
+
var _a;
|
|
1929
1970
|
{
|
|
1930
1971
|
const hostRef = getHostRef(ref);
|
|
1931
|
-
const isConnected = hostRef.$hostElement
|
|
1972
|
+
const isConnected = (_a = hostRef == null ? void 0 : hostRef.$hostElement$) == null ? void 0 : _a.isConnected;
|
|
1932
1973
|
if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1933
1974
|
scheduleUpdate(hostRef, false);
|
|
1934
1975
|
}
|
|
@@ -1936,7 +1977,13 @@ var forceUpdate = (ref) => {
|
|
|
1936
1977
|
}
|
|
1937
1978
|
};
|
|
1938
1979
|
var appDidLoad = (who) => {
|
|
1980
|
+
var _a;
|
|
1939
1981
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
1982
|
+
{
|
|
1983
|
+
if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
|
|
1984
|
+
plt.$orgLocNodes$.clear();
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1940
1987
|
};
|
|
1941
1988
|
var safeCall = (instance, method, arg, elm) => {
|
|
1942
1989
|
if (instance && instance[method]) {
|
|
@@ -1957,6 +2004,9 @@ var addHydratedFlag = (elm) => {
|
|
|
1957
2004
|
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
1958
2005
|
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
1959
2006
|
const hostRef = getHostRef(ref);
|
|
2007
|
+
if (!hostRef) {
|
|
2008
|
+
return;
|
|
2009
|
+
}
|
|
1960
2010
|
if (!hostRef) {
|
|
1961
2011
|
throw new Error(
|
|
1962
2012
|
`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).`
|
|
@@ -2032,6 +2082,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2032
2082
|
Object.defineProperty(prototype, memberName, {
|
|
2033
2083
|
set(newValue) {
|
|
2034
2084
|
const ref = getHostRef(this);
|
|
2085
|
+
if (!ref) {
|
|
2086
|
+
return;
|
|
2087
|
+
}
|
|
2035
2088
|
if (origSetter) {
|
|
2036
2089
|
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
2037
2090
|
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
@@ -2106,7 +2159,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2106
2159
|
} else if (propName == null) {
|
|
2107
2160
|
const hostRef = getHostRef(this);
|
|
2108
2161
|
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
2109
|
-
if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
2162
|
+
if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
2110
2163
|
const instance = hostRef.$lazyInstance$ ;
|
|
2111
2164
|
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
2112
2165
|
entry == null ? void 0 : entry.forEach((callbackName) => {
|
|
@@ -2127,7 +2180,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2127
2180
|
Cstr.observedAttributes = Array.from(
|
|
2128
2181
|
/* @__PURE__ */ new Set([
|
|
2129
2182
|
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
|
2130
|
-
...members.filter(([_, m]) => m[0] &
|
|
2183
|
+
...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
|
|
2131
2184
|
var _a2;
|
|
2132
2185
|
const attrName = m[1] || propName;
|
|
2133
2186
|
attrNameToPropName.set(attrName, propName);
|
|
@@ -2221,6 +2274,9 @@ var fireConnectedCallback = (instance, elm) => {
|
|
|
2221
2274
|
var connectedCallback = (elm) => {
|
|
2222
2275
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
2223
2276
|
const hostRef = getHostRef(elm);
|
|
2277
|
+
if (!hostRef) {
|
|
2278
|
+
return;
|
|
2279
|
+
}
|
|
2224
2280
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
2225
2281
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
2226
2282
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
@@ -2289,7 +2345,7 @@ var disconnectedCallback = async (elm) => {
|
|
|
2289
2345
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
2290
2346
|
const hostRef = getHostRef(elm);
|
|
2291
2347
|
{
|
|
2292
|
-
if (hostRef.$rmListeners$) {
|
|
2348
|
+
if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
|
|
2293
2349
|
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
2294
2350
|
hostRef.$rmListeners$ = void 0;
|
|
2295
2351
|
}
|
|
@@ -2366,6 +2422,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2366
2422
|
}
|
|
2367
2423
|
connectedCallback() {
|
|
2368
2424
|
const hostRef = getHostRef(this);
|
|
2425
|
+
if (!hostRef) {
|
|
2426
|
+
return;
|
|
2427
|
+
}
|
|
2369
2428
|
if (!this.hasRegisteredEventListeners) {
|
|
2370
2429
|
this.hasRegisteredEventListeners = true;
|
|
2371
2430
|
addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
|
|
@@ -2385,6 +2444,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2385
2444
|
plt.raf(() => {
|
|
2386
2445
|
var _a3;
|
|
2387
2446
|
const hostRef = getHostRef(this);
|
|
2447
|
+
if (!hostRef) {
|
|
2448
|
+
return;
|
|
2449
|
+
}
|
|
2388
2450
|
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
2389
2451
|
if (i2 > -1) {
|
|
2390
2452
|
deferredConnectedCallbacks.splice(i2, 1);
|
|
@@ -2395,7 +2457,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2395
2457
|
});
|
|
2396
2458
|
}
|
|
2397
2459
|
componentOnReady() {
|
|
2398
|
-
|
|
2460
|
+
var _a3;
|
|
2461
|
+
return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
|
|
2399
2462
|
}
|
|
2400
2463
|
};
|
|
2401
2464
|
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
@@ -2481,6 +2544,6 @@ exports.h = h;
|
|
|
2481
2544
|
exports.promiseResolve = promiseResolve;
|
|
2482
2545
|
exports.registerInstance = registerInstance;
|
|
2483
2546
|
exports.setNonce = setNonce;
|
|
2484
|
-
//# sourceMappingURL=index-
|
|
2547
|
+
//# sourceMappingURL=index-BF1c1pO3.js.map
|
|
2485
2548
|
|
|
2486
|
-
//# sourceMappingURL=index-
|
|
2549
|
+
//# sourceMappingURL=index-BF1c1pO3.js.map
|