@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) => {
|
|
@@ -159,6 +159,7 @@ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
|
159
159
|
}
|
|
160
160
|
return false;
|
|
161
161
|
})() ;
|
|
162
|
+
var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
|
|
162
163
|
var queuePending = false;
|
|
163
164
|
var queueDomReads = [];
|
|
164
165
|
var queueDomWrites = [];
|
|
@@ -509,6 +510,107 @@ var uniqueTime = (key, measureText) => {
|
|
|
509
510
|
};
|
|
510
511
|
}
|
|
511
512
|
};
|
|
513
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
514
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
515
|
+
let style = styles.get(scopeId2);
|
|
516
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
517
|
+
style = style || new CSSStyleSheet();
|
|
518
|
+
if (typeof style === "string") {
|
|
519
|
+
style = cssText;
|
|
520
|
+
} else {
|
|
521
|
+
style.replaceSync(cssText);
|
|
522
|
+
}
|
|
523
|
+
} else {
|
|
524
|
+
style = cssText;
|
|
525
|
+
}
|
|
526
|
+
styles.set(scopeId2, style);
|
|
527
|
+
};
|
|
528
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
529
|
+
var _a;
|
|
530
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
531
|
+
const style = styles.get(scopeId2);
|
|
532
|
+
if (!win.document) {
|
|
533
|
+
return scopeId2;
|
|
534
|
+
}
|
|
535
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
536
|
+
if (style) {
|
|
537
|
+
if (typeof style === "string") {
|
|
538
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
539
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
540
|
+
let styleElm;
|
|
541
|
+
if (!appliedStyles) {
|
|
542
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
543
|
+
}
|
|
544
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
545
|
+
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
546
|
+
styleElm.innerHTML = style;
|
|
547
|
+
} else {
|
|
548
|
+
styleElm = win.document.createElement("style");
|
|
549
|
+
styleElm.innerHTML = style;
|
|
550
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
551
|
+
if (nonce != null) {
|
|
552
|
+
styleElm.setAttribute("nonce", nonce);
|
|
553
|
+
}
|
|
554
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
555
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
556
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
557
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
558
|
+
styleContainerNode.insertBefore(
|
|
559
|
+
styleElm,
|
|
560
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
561
|
+
);
|
|
562
|
+
} else if ("host" in styleContainerNode) {
|
|
563
|
+
if (supportsConstructableStylesheets) {
|
|
564
|
+
const stylesheet = new CSSStyleSheet();
|
|
565
|
+
stylesheet.replaceSync(style);
|
|
566
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
567
|
+
styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
|
|
568
|
+
} else {
|
|
569
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
570
|
+
}
|
|
571
|
+
} else {
|
|
572
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
573
|
+
if (existingStyleContainer) {
|
|
574
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
575
|
+
} else {
|
|
576
|
+
styleContainerNode.prepend(styleElm);
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
} else {
|
|
580
|
+
styleContainerNode.append(styleElm);
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
584
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
588
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
589
|
+
}
|
|
590
|
+
if (appliedStyles) {
|
|
591
|
+
appliedStyles.add(scopeId2);
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
595
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
596
|
+
styleContainerNode.adoptedStyleSheets.push(style);
|
|
597
|
+
} else {
|
|
598
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
return scopeId2;
|
|
603
|
+
};
|
|
604
|
+
var attachStyles = (hostRef) => {
|
|
605
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
606
|
+
const elm = hostRef.$hostElement$;
|
|
607
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
608
|
+
addStyle(
|
|
609
|
+
elm.getRootNode(),
|
|
610
|
+
cmpMeta);
|
|
611
|
+
endAttachStyles();
|
|
612
|
+
};
|
|
613
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
512
614
|
var h = (nodeName, vnodeData, ...children) => {
|
|
513
615
|
let child = null;
|
|
514
616
|
let key = null;
|
|
@@ -623,7 +725,7 @@ var convertToPrivate = (node) => {
|
|
|
623
725
|
|
|
624
726
|
// src/runtime/client-hydrate.ts
|
|
625
727
|
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
626
|
-
var _a;
|
|
728
|
+
var _a, _b, _c;
|
|
627
729
|
const endHydrate = createTime("hydrateClient", tagName);
|
|
628
730
|
const shadowRoot = hostElm.shadowRoot;
|
|
629
731
|
const childRenderNodes = [];
|
|
@@ -634,7 +736,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
634
736
|
vnode.$elm$ = hostElm;
|
|
635
737
|
const members = Object.entries(((_a = hostRef.$cmpMeta$) == null ? void 0 : _a.$members$) || {});
|
|
636
738
|
members.forEach(([memberName, [memberFlags, metaAttributeName]]) => {
|
|
637
|
-
var
|
|
739
|
+
var _b2;
|
|
638
740
|
if (!(memberFlags & 31 /* Prop */)) {
|
|
639
741
|
return;
|
|
640
742
|
}
|
|
@@ -644,7 +746,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
644
746
|
const attrPropVal = parsePropertyValue(
|
|
645
747
|
attrVal,
|
|
646
748
|
memberFlags);
|
|
647
|
-
(
|
|
749
|
+
(_b2 = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _b2.set(memberName, attrPropVal);
|
|
648
750
|
}
|
|
649
751
|
});
|
|
650
752
|
if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
|
|
@@ -675,6 +777,16 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
675
777
|
if (childRenderNode.$tag$ === "slot") {
|
|
676
778
|
node["s-cr"] = hostElm["s-cr"];
|
|
677
779
|
}
|
|
780
|
+
} else if (((_b = childRenderNode.$tag$) == null ? void 0 : _b.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
|
|
781
|
+
const cmpMeta = getHostRef(childRenderNode.$elm$);
|
|
782
|
+
if (cmpMeta) {
|
|
783
|
+
const scopeId3 = getScopeId(
|
|
784
|
+
cmpMeta.$cmpMeta$);
|
|
785
|
+
const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
|
|
786
|
+
if (styleSheet) {
|
|
787
|
+
hostElm.shadowRoot.append(styleSheet.cloneNode(true));
|
|
788
|
+
}
|
|
789
|
+
}
|
|
678
790
|
}
|
|
679
791
|
if (childRenderNode.$tag$ === "slot") {
|
|
680
792
|
childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
|
|
@@ -690,7 +802,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
690
802
|
}
|
|
691
803
|
}
|
|
692
804
|
if (orgLocationNode && orgLocationNode.isConnected) {
|
|
693
|
-
if (shadowRoot && orgLocationNode["s-en"] === "") {
|
|
805
|
+
if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
|
|
694
806
|
orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
|
|
695
807
|
}
|
|
696
808
|
orgLocationNode.parentNode.removeChild(orgLocationNode);
|
|
@@ -698,7 +810,9 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
698
810
|
node["s-oo"] = parseInt(childRenderNode.$nodeId$);
|
|
699
811
|
}
|
|
700
812
|
}
|
|
701
|
-
|
|
813
|
+
if (orgLocationNode && !orgLocationNode["s-id"]) {
|
|
814
|
+
plt.$orgLocNodes$.delete(orgLocationId);
|
|
815
|
+
}
|
|
702
816
|
}
|
|
703
817
|
const hosts = [];
|
|
704
818
|
const snLen = slottedNodes.length;
|
|
@@ -719,21 +833,25 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
719
833
|
}
|
|
720
834
|
if (!hosts[slottedItem.hostId]) continue;
|
|
721
835
|
const hostEle = hosts[slottedItem.hostId];
|
|
836
|
+
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
|
837
|
+
hostEle.appendChild(slottedItem.node);
|
|
838
|
+
}
|
|
722
839
|
if (!hostEle.shadowRoot || !shadowRoot) {
|
|
723
|
-
slottedItem.slot["s-cr"]
|
|
724
|
-
|
|
725
|
-
slottedItem.slot["s-cr"]
|
|
726
|
-
|
|
727
|
-
|
|
840
|
+
if (!slottedItem.slot["s-cr"]) {
|
|
841
|
+
slottedItem.slot["s-cr"] = hostEle["s-cr"];
|
|
842
|
+
if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
|
|
843
|
+
slottedItem.slot["s-cr"] = hostEle;
|
|
844
|
+
} else {
|
|
845
|
+
slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
|
|
846
|
+
}
|
|
728
847
|
}
|
|
729
848
|
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
849
|
+
if (((_c = slottedItem.node.parentElement) == null ? void 0 : _c.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
|
|
850
|
+
slottedItem.node.removeAttribute("slot");
|
|
851
|
+
}
|
|
733
852
|
}
|
|
734
853
|
}
|
|
735
854
|
}
|
|
736
|
-
plt.$orgLocNodes$.delete(hostElm["s-id"]);
|
|
737
855
|
hostRef.$hostElement$ = hostElm;
|
|
738
856
|
endHydrate();
|
|
739
857
|
};
|
|
@@ -879,7 +997,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
879
997
|
vnode.$index$ = "0";
|
|
880
998
|
parentVNode.$children$ = [vnode];
|
|
881
999
|
} else {
|
|
882
|
-
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
1000
|
+
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim() && !node["s-nr"]) {
|
|
883
1001
|
node.remove();
|
|
884
1002
|
}
|
|
885
1003
|
}
|
|
@@ -949,13 +1067,17 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
949
1067
|
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
950
1068
|
}
|
|
951
1069
|
var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
|
|
1070
|
+
var _a, _b;
|
|
952
1071
|
let slottedNode = slotNode.nextSibling;
|
|
953
1072
|
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
1073
|
+
if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
|
|
1074
|
+
do {
|
|
1075
|
+
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 */))) {
|
|
1076
|
+
slottedNode["s-sn"] = slotName;
|
|
1077
|
+
slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
|
|
1078
|
+
}
|
|
1079
|
+
slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
|
|
1080
|
+
} while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
|
|
959
1081
|
};
|
|
960
1082
|
var findCorrespondingNode = (node, type) => {
|
|
961
1083
|
let sibling = node;
|
|
@@ -977,17 +1099,16 @@ createSupportsRuleRe("::slotted");
|
|
|
977
1099
|
createSupportsRuleRe(":host");
|
|
978
1100
|
createSupportsRuleRe(":host-context");
|
|
979
1101
|
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
980
|
-
if (typeof propValue === "string" && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
|
|
981
|
-
try {
|
|
982
|
-
propValue = JSON.parse(propValue);
|
|
983
|
-
return propValue;
|
|
984
|
-
} catch (e) {
|
|
985
|
-
}
|
|
986
|
-
}
|
|
987
1102
|
if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
|
|
988
1103
|
propValue = deserializeProperty(propValue);
|
|
989
1104
|
return propValue;
|
|
990
1105
|
}
|
|
1106
|
+
if (typeof propValue === "string" && (propType & 16 /* Unknown */ || propType & 8 /* Any */) && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
|
|
1107
|
+
try {
|
|
1108
|
+
return JSON.parse(propValue);
|
|
1109
|
+
} catch (e) {
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
991
1112
|
if (propValue != null && !isComplexType(propValue)) {
|
|
992
1113
|
if (propType & 4 /* Boolean */) {
|
|
993
1114
|
{
|
|
@@ -1004,7 +1125,10 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
|
1004
1125
|
}
|
|
1005
1126
|
return propValue;
|
|
1006
1127
|
};
|
|
1007
|
-
var getElement = (ref) =>
|
|
1128
|
+
var getElement = (ref) => {
|
|
1129
|
+
var _a;
|
|
1130
|
+
return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
|
|
1131
|
+
};
|
|
1008
1132
|
|
|
1009
1133
|
// src/runtime/event-emitter.ts
|
|
1010
1134
|
var createEvent = (ref, name, flags) => {
|
|
@@ -1025,99 +1149,6 @@ var emitEvent = (elm, name, opts) => {
|
|
|
1025
1149
|
elm.dispatchEvent(ev);
|
|
1026
1150
|
return ev;
|
|
1027
1151
|
};
|
|
1028
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
1029
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
1030
|
-
let style = styles.get(scopeId2);
|
|
1031
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
1032
|
-
style = style || new CSSStyleSheet();
|
|
1033
|
-
if (typeof style === "string") {
|
|
1034
|
-
style = cssText;
|
|
1035
|
-
} else {
|
|
1036
|
-
style.replaceSync(cssText);
|
|
1037
|
-
}
|
|
1038
|
-
} else {
|
|
1039
|
-
style = cssText;
|
|
1040
|
-
}
|
|
1041
|
-
styles.set(scopeId2, style);
|
|
1042
|
-
};
|
|
1043
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
1044
|
-
var _a;
|
|
1045
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
1046
|
-
const style = styles.get(scopeId2);
|
|
1047
|
-
if (!win.document) {
|
|
1048
|
-
return scopeId2;
|
|
1049
|
-
}
|
|
1050
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
1051
|
-
if (style) {
|
|
1052
|
-
if (typeof style === "string") {
|
|
1053
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
1054
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
1055
|
-
let styleElm;
|
|
1056
|
-
if (!appliedStyles) {
|
|
1057
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
1058
|
-
}
|
|
1059
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
1060
|
-
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
1061
|
-
styleElm.innerHTML = style;
|
|
1062
|
-
} else {
|
|
1063
|
-
styleElm = win.document.createElement("style");
|
|
1064
|
-
styleElm.innerHTML = style;
|
|
1065
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1066
|
-
if (nonce != null) {
|
|
1067
|
-
styleElm.setAttribute("nonce", nonce);
|
|
1068
|
-
}
|
|
1069
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
1070
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
1071
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
1072
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
1073
|
-
styleContainerNode.insertBefore(
|
|
1074
|
-
styleElm,
|
|
1075
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
1076
|
-
);
|
|
1077
|
-
} else if ("host" in styleContainerNode) {
|
|
1078
|
-
if (supportsConstructableStylesheets) {
|
|
1079
|
-
const stylesheet = new CSSStyleSheet();
|
|
1080
|
-
stylesheet.replaceSync(style);
|
|
1081
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
1082
|
-
} else {
|
|
1083
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
1084
|
-
if (existingStyleContainer) {
|
|
1085
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
1086
|
-
} else {
|
|
1087
|
-
styleContainerNode.prepend(styleElm);
|
|
1088
|
-
}
|
|
1089
|
-
}
|
|
1090
|
-
} else {
|
|
1091
|
-
styleContainerNode.append(styleElm);
|
|
1092
|
-
}
|
|
1093
|
-
}
|
|
1094
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1095
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
1096
|
-
}
|
|
1097
|
-
}
|
|
1098
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
1099
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
1100
|
-
}
|
|
1101
|
-
if (appliedStyles) {
|
|
1102
|
-
appliedStyles.add(scopeId2);
|
|
1103
|
-
}
|
|
1104
|
-
}
|
|
1105
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
1106
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
1107
|
-
}
|
|
1108
|
-
}
|
|
1109
|
-
return scopeId2;
|
|
1110
|
-
};
|
|
1111
|
-
var attachStyles = (hostRef) => {
|
|
1112
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
1113
|
-
const elm = hostRef.$hostElement$;
|
|
1114
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
1115
|
-
addStyle(
|
|
1116
|
-
elm.getRootNode(),
|
|
1117
|
-
cmpMeta);
|
|
1118
|
-
endAttachStyles();
|
|
1119
|
-
};
|
|
1120
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
1121
1152
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
1122
1153
|
if (oldValue === newValue) {
|
|
1123
1154
|
return;
|
|
@@ -1128,12 +1159,13 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
1128
1159
|
const classList = elm.classList;
|
|
1129
1160
|
const oldClasses = parseClassList(oldValue);
|
|
1130
1161
|
let newClasses = parseClassList(newValue);
|
|
1131
|
-
if (elm["s-si"] && initialRender) {
|
|
1132
|
-
|
|
1162
|
+
if ((elm["s-si"] || elm["s-sc"]) && initialRender) {
|
|
1163
|
+
const scopeId2 = elm["s-sc"] || elm["s-si"];
|
|
1164
|
+
newClasses.push(scopeId2);
|
|
1133
1165
|
oldClasses.forEach((c) => {
|
|
1134
|
-
if (c.startsWith(
|
|
1166
|
+
if (c.startsWith(scopeId2)) newClasses.push(c);
|
|
1135
1167
|
});
|
|
1136
|
-
newClasses = [...new Set(newClasses)];
|
|
1168
|
+
newClasses = [...new Set(newClasses)].filter((c) => c);
|
|
1137
1169
|
classList.add(...newClasses);
|
|
1138
1170
|
} else {
|
|
1139
1171
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
@@ -1557,6 +1589,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1557
1589
|
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
1558
1590
|
) {
|
|
1559
1591
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
1592
|
+
} else if (isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
|
|
1593
|
+
newVNode2.$children$ = oldChildren;
|
|
1560
1594
|
}
|
|
1561
1595
|
if (isSvgMode && tag === "svg") {
|
|
1562
1596
|
isSvgMode = false;
|
|
@@ -1750,6 +1784,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
1750
1784
|
}
|
|
1751
1785
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
1752
1786
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
1787
|
+
if (isInitialLoad) {
|
|
1788
|
+
queueMicrotask(() => {
|
|
1789
|
+
dispatch();
|
|
1790
|
+
});
|
|
1791
|
+
return;
|
|
1792
|
+
}
|
|
1753
1793
|
return writeTask(dispatch) ;
|
|
1754
1794
|
};
|
|
1755
1795
|
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
@@ -1877,9 +1917,10 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1877
1917
|
}
|
|
1878
1918
|
};
|
|
1879
1919
|
var forceUpdate = (ref) => {
|
|
1920
|
+
var _a;
|
|
1880
1921
|
{
|
|
1881
1922
|
const hostRef = getHostRef(ref);
|
|
1882
|
-
const isConnected = hostRef.$hostElement
|
|
1923
|
+
const isConnected = (_a = hostRef == null ? void 0 : hostRef.$hostElement$) == null ? void 0 : _a.isConnected;
|
|
1883
1924
|
if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1884
1925
|
scheduleUpdate(hostRef, false);
|
|
1885
1926
|
}
|
|
@@ -1887,7 +1928,13 @@ var forceUpdate = (ref) => {
|
|
|
1887
1928
|
}
|
|
1888
1929
|
};
|
|
1889
1930
|
var appDidLoad = (who) => {
|
|
1931
|
+
var _a;
|
|
1890
1932
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
1933
|
+
{
|
|
1934
|
+
if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
|
|
1935
|
+
plt.$orgLocNodes$.clear();
|
|
1936
|
+
}
|
|
1937
|
+
}
|
|
1891
1938
|
};
|
|
1892
1939
|
var safeCall = (instance, method, arg, elm) => {
|
|
1893
1940
|
if (instance && instance[method]) {
|
|
@@ -1908,6 +1955,9 @@ var addHydratedFlag = (elm) => {
|
|
|
1908
1955
|
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
1909
1956
|
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
1910
1957
|
const hostRef = getHostRef(ref);
|
|
1958
|
+
if (!hostRef) {
|
|
1959
|
+
return;
|
|
1960
|
+
}
|
|
1911
1961
|
if (!hostRef) {
|
|
1912
1962
|
throw new Error(
|
|
1913
1963
|
`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).`
|
|
@@ -1983,6 +2033,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1983
2033
|
Object.defineProperty(prototype, memberName, {
|
|
1984
2034
|
set(newValue) {
|
|
1985
2035
|
const ref = getHostRef(this);
|
|
2036
|
+
if (!ref) {
|
|
2037
|
+
return;
|
|
2038
|
+
}
|
|
1986
2039
|
if (origSetter) {
|
|
1987
2040
|
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1988
2041
|
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
@@ -2057,7 +2110,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2057
2110
|
} else if (propName == null) {
|
|
2058
2111
|
const hostRef = getHostRef(this);
|
|
2059
2112
|
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
2060
|
-
if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
2113
|
+
if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
2061
2114
|
const instance = hostRef.$lazyInstance$ ;
|
|
2062
2115
|
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
2063
2116
|
entry == null ? void 0 : entry.forEach((callbackName) => {
|
|
@@ -2078,7 +2131,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2078
2131
|
Cstr.observedAttributes = Array.from(
|
|
2079
2132
|
/* @__PURE__ */ new Set([
|
|
2080
2133
|
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
|
2081
|
-
...members.filter(([_, m]) => m[0] &
|
|
2134
|
+
...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
|
|
2082
2135
|
var _a2;
|
|
2083
2136
|
const attrName = m[1] || propName;
|
|
2084
2137
|
attrNameToPropName.set(attrName, propName);
|
|
@@ -2172,6 +2225,9 @@ var fireConnectedCallback = (instance, elm) => {
|
|
|
2172
2225
|
var connectedCallback = (elm) => {
|
|
2173
2226
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
2174
2227
|
const hostRef = getHostRef(elm);
|
|
2228
|
+
if (!hostRef) {
|
|
2229
|
+
return;
|
|
2230
|
+
}
|
|
2175
2231
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
2176
2232
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
2177
2233
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
@@ -2240,7 +2296,7 @@ var disconnectedCallback = async (elm) => {
|
|
|
2240
2296
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
2241
2297
|
const hostRef = getHostRef(elm);
|
|
2242
2298
|
{
|
|
2243
|
-
if (hostRef.$rmListeners$) {
|
|
2299
|
+
if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
|
|
2244
2300
|
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
2245
2301
|
hostRef.$rmListeners$ = void 0;
|
|
2246
2302
|
}
|
|
@@ -2317,6 +2373,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2317
2373
|
}
|
|
2318
2374
|
connectedCallback() {
|
|
2319
2375
|
const hostRef = getHostRef(this);
|
|
2376
|
+
if (!hostRef) {
|
|
2377
|
+
return;
|
|
2378
|
+
}
|
|
2320
2379
|
if (!this.hasRegisteredEventListeners) {
|
|
2321
2380
|
this.hasRegisteredEventListeners = true;
|
|
2322
2381
|
addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
|
|
@@ -2336,6 +2395,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2336
2395
|
plt.raf(() => {
|
|
2337
2396
|
var _a3;
|
|
2338
2397
|
const hostRef = getHostRef(this);
|
|
2398
|
+
if (!hostRef) {
|
|
2399
|
+
return;
|
|
2400
|
+
}
|
|
2339
2401
|
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
2340
2402
|
if (i2 > -1) {
|
|
2341
2403
|
deferredConnectedCallbacks.splice(i2, 1);
|
|
@@ -2346,7 +2408,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2346
2408
|
});
|
|
2347
2409
|
}
|
|
2348
2410
|
componentOnReady() {
|
|
2349
|
-
|
|
2411
|
+
var _a3;
|
|
2412
|
+
return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
|
|
2350
2413
|
}
|
|
2351
2414
|
};
|
|
2352
2415
|
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
@@ -2422,6 +2485,6 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
|
2422
2485
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
2423
2486
|
|
|
2424
2487
|
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 };
|
|
2425
|
-
//# sourceMappingURL=index-
|
|
2488
|
+
//# sourceMappingURL=index-Dyptvvxf.js.map
|
|
2426
2489
|
|
|
2427
|
-
//# sourceMappingURL=index-
|
|
2490
|
+
//# sourceMappingURL=index-Dyptvvxf.js.map
|