proto-table-wc 0.0.575 → 0.0.577

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-c5419b20.js');
5
+ const index = require('./index-10344168.js');
6
6
 
7
7
  const demoTableCss = ".detailWrapper{font-weight:100;font-size:13px;display:flex;flex-direction:column;justify-items:start;padding:5px;padding-left:30px}";
8
8
  const DemoTableStyle0 = demoTableCss;
@@ -24,7 +24,7 @@ const NAMESPACE = 'proto-table-wc';
24
24
  const BUILD = /* proto-table-wc */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: false, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.23.2 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.25.0 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
@@ -79,12 +79,17 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
79
79
  /* webpackExclude: /\.system\.entry\.js$/ */
80
80
  /* webpackMode: "lazy" */
81
81
  `./${bundleId}.entry.js${""}`
82
- )); }).then((importedModule) => {
83
- {
84
- cmpModules.set(bundleId, importedModule);
82
+ )); }).then(
83
+ (importedModule) => {
84
+ {
85
+ cmpModules.set(bundleId, importedModule);
86
+ }
87
+ return importedModule[exportName];
88
+ },
89
+ (e) => {
90
+ consoleError(e, hostRef.$hostElement$);
85
91
  }
86
- return importedModule[exportName];
87
- }, consoleError);
92
+ );
88
93
  };
89
94
 
90
95
  // src/client/client-style.ts
@@ -206,6 +211,20 @@ var unwrapErr = (result) => {
206
211
  throw result.value;
207
212
  }
208
213
  };
214
+ var createTime = (fnName, tagName = "") => {
215
+ {
216
+ return () => {
217
+ return;
218
+ };
219
+ }
220
+ };
221
+ var uniqueTime = (key, measureText) => {
222
+ {
223
+ return () => {
224
+ return;
225
+ };
226
+ }
227
+ };
209
228
  var h = (nodeName, vnodeData, ...children) => {
210
229
  let child = null;
211
230
  let key = null;
@@ -270,6 +289,107 @@ var newVNode = (tag, text) => {
270
289
  };
271
290
  var Host = {};
272
291
  var isHost = (node) => node && node.$tag$ === Host;
292
+ var parsePropertyValue = (propValue, propType) => {
293
+ if (propValue != null && !isComplexType(propValue)) {
294
+ return propValue;
295
+ }
296
+ return propValue;
297
+ };
298
+ var emitEvent = (elm, name, opts) => {
299
+ const ev = plt.ce(name, opts);
300
+ elm.dispatchEvent(ev);
301
+ return ev;
302
+ };
303
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
304
+ var registerStyle = (scopeId2, cssText, allowCS) => {
305
+ let style = styles.get(scopeId2);
306
+ if (supportsConstructableStylesheets && allowCS) {
307
+ style = style || new CSSStyleSheet();
308
+ if (typeof style === "string") {
309
+ style = cssText;
310
+ } else {
311
+ style.replaceSync(cssText);
312
+ }
313
+ } else {
314
+ style = cssText;
315
+ }
316
+ styles.set(scopeId2, style);
317
+ };
318
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
319
+ var _a;
320
+ const scopeId2 = getScopeId(cmpMeta);
321
+ const style = styles.get(scopeId2);
322
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
323
+ if (style) {
324
+ if (typeof style === "string") {
325
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
326
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
327
+ let styleElm;
328
+ if (!appliedStyles) {
329
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
330
+ }
331
+ if (!appliedStyles.has(scopeId2)) {
332
+ {
333
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
334
+ styleElm.innerHTML = style;
335
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
336
+ if (nonce != null) {
337
+ styleElm.setAttribute("nonce", nonce);
338
+ }
339
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
340
+ if (styleContainerNode.nodeName === "HEAD") {
341
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
342
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
343
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
344
+ } else if ("host" in styleContainerNode) {
345
+ if (supportsConstructableStylesheets) {
346
+ const stylesheet = new CSSStyleSheet();
347
+ stylesheet.replaceSync(style);
348
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
349
+ } else {
350
+ const existingStyleContainer = styleContainerNode.querySelector("style");
351
+ if (existingStyleContainer) {
352
+ existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
353
+ } else {
354
+ styleContainerNode.prepend(styleElm);
355
+ }
356
+ }
357
+ } else {
358
+ styleContainerNode.append(styleElm);
359
+ }
360
+ }
361
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
362
+ styleContainerNode.insertBefore(styleElm, null);
363
+ }
364
+ }
365
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
366
+ styleElm.innerHTML += SLOT_FB_CSS;
367
+ }
368
+ if (appliedStyles) {
369
+ appliedStyles.add(scopeId2);
370
+ }
371
+ }
372
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
373
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
374
+ }
375
+ }
376
+ return scopeId2;
377
+ };
378
+ var attachStyles = (hostRef) => {
379
+ const cmpMeta = hostRef.$cmpMeta$;
380
+ const elm = hostRef.$hostElement$;
381
+ const flags = cmpMeta.$flags$;
382
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
383
+ const scopeId2 = addStyle(
384
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
385
+ cmpMeta);
386
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
387
+ elm["s-sc"] = scopeId2;
388
+ elm.classList.add(scopeId2 + "-h");
389
+ }
390
+ endAttachStyles();
391
+ };
392
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
273
393
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
274
394
  if (oldValue !== newValue) {
275
395
  let isProp = isMemberInElement(elm, memberName);
@@ -327,7 +447,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
327
447
  elm.setAttribute(memberName, n);
328
448
  }
329
449
  }
330
- } else {
450
+ } else if (elm[memberName] !== newValue) {
331
451
  elm[memberName] = newValue;
332
452
  }
333
453
  } catch (e) {
@@ -595,8 +715,9 @@ var nullifyVNodeRefs = (vNode) => {
595
715
  }
596
716
  };
597
717
  var insertBefore = (parent, newNode, reference) => {
598
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
599
- return inserted;
718
+ {
719
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
720
+ }
600
721
  };
601
722
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
602
723
  const hostElm = hostRef.$hostElement$;
@@ -618,126 +739,18 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
618
739
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
619
740
  patch(oldVNode, rootVnode, isInitialLoad);
620
741
  };
621
- var createTime = (fnName, tagName = "") => {
622
- {
623
- return () => {
624
- return;
625
- };
626
- }
627
- };
628
- var uniqueTime = (key, measureText) => {
629
- {
630
- return () => {
631
- return;
632
- };
633
- }
634
- };
635
- var parsePropertyValue = (propValue, propType) => {
636
- if (propValue != null && !isComplexType(propValue)) {
637
- return propValue;
638
- }
639
- return propValue;
640
- };
641
- var emitEvent = (elm, name, opts) => {
642
- const ev = plt.ce(name, opts);
643
- elm.dispatchEvent(ev);
644
- return ev;
645
- };
646
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
647
- var registerStyle = (scopeId2, cssText, allowCS) => {
648
- let style = styles.get(scopeId2);
649
- if (supportsConstructableStylesheets && allowCS) {
650
- style = style || new CSSStyleSheet();
651
- if (typeof style === "string") {
652
- style = cssText;
653
- } else {
654
- style.replaceSync(cssText);
655
- }
656
- } else {
657
- style = cssText;
658
- }
659
- styles.set(scopeId2, style);
660
- };
661
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
662
- var _a;
663
- const scopeId2 = getScopeId(cmpMeta);
664
- const style = styles.get(scopeId2);
665
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
666
- if (style) {
667
- if (typeof style === "string") {
668
- styleContainerNode = styleContainerNode.head || styleContainerNode;
669
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
670
- let styleElm;
671
- if (!appliedStyles) {
672
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
673
- }
674
- if (!appliedStyles.has(scopeId2)) {
675
- {
676
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
677
- styleElm.innerHTML = style;
678
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
679
- if (nonce != null) {
680
- styleElm.setAttribute("nonce", nonce);
681
- }
682
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
683
- if (styleContainerNode.nodeName === "HEAD") {
684
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
685
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
686
- styleContainerNode.insertBefore(styleElm, referenceNode2);
687
- } else if ("host" in styleContainerNode) {
688
- if (supportsConstructableStylesheets) {
689
- const stylesheet = new CSSStyleSheet();
690
- stylesheet.replaceSync(style);
691
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
692
- } else {
693
- const existingStyleContainer = styleContainerNode.querySelector("style");
694
- if (existingStyleContainer) {
695
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
696
- } else {
697
- styleContainerNode.prepend(styleElm);
698
- }
699
- }
700
- } else {
701
- styleContainerNode.append(styleElm);
702
- }
703
- }
704
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
705
- styleContainerNode.insertBefore(styleElm, null);
706
- }
707
- }
708
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
709
- styleElm.innerHTML += SLOT_FB_CSS;
710
- }
711
- if (appliedStyles) {
712
- appliedStyles.add(scopeId2);
713
- }
714
- }
715
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
716
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
717
- }
718
- }
719
- return scopeId2;
720
- };
721
- var attachStyles = (hostRef) => {
722
- const cmpMeta = hostRef.$cmpMeta$;
723
- const elm = hostRef.$hostElement$;
724
- const flags = cmpMeta.$flags$;
725
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
726
- const scopeId2 = addStyle(
727
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
728
- cmpMeta);
729
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
730
- elm["s-sc"] = scopeId2;
731
- elm.classList.add(scopeId2 + "-h");
732
- }
733
- endAttachStyles();
734
- };
735
- var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
736
742
 
737
743
  // src/runtime/update-component.ts
738
744
  var attachToAncestor = (hostRef, ancestorComponent) => {
739
745
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
740
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
746
+ const index = ancestorComponent["s-p"].push(
747
+ new Promise(
748
+ (r) => hostRef.$onRenderResolve$ = () => {
749
+ ancestorComponent["s-p"].splice(index - 1, 1);
750
+ r();
751
+ }
752
+ )
753
+ );
741
754
  }
742
755
  };
743
756
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -764,7 +777,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
764
777
  let maybePromise;
765
778
  if (isInitialLoad) {
766
779
  {
767
- maybePromise = safeCall(instance, "componentWillLoad");
780
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
768
781
  }
769
782
  }
770
783
  endSchedule();
@@ -838,7 +851,7 @@ var postUpdateComponent = (hostRef) => {
838
851
  addHydratedFlag(elm);
839
852
  }
840
853
  {
841
- safeCall(instance, "componentDidLoad");
854
+ safeCall(instance, "componentDidLoad", void 0, elm);
842
855
  }
843
856
  endPostUpdate();
844
857
  {
@@ -867,12 +880,12 @@ var appDidLoad = (who) => {
867
880
  }
868
881
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
869
882
  };
870
- var safeCall = (instance, method, arg) => {
883
+ var safeCall = (instance, method, arg, elm) => {
871
884
  if (instance && instance[method]) {
872
885
  try {
873
886
  return instance[method](arg);
874
887
  } catch (e) {
875
- consoleError(e);
888
+ consoleError(e, elm);
876
889
  }
877
890
  }
878
891
  return void 0;
@@ -915,62 +928,69 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
915
928
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
916
929
  members.map(([memberName, [memberFlags]]) => {
917
930
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
918
- if ((memberFlags & 2048 /* Getter */) === 0) {
931
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
932
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
933
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
934
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
919
935
  Object.defineProperty(prototype, memberName, {
920
936
  get() {
921
- return getValue(this, memberName);
922
- },
923
- set(newValue) {
924
- setValue(this, memberName, newValue, cmpMeta);
925
- },
926
- configurable: true,
927
- enumerable: true
928
- });
929
- } else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
930
- {
931
- Object.defineProperty(prototype, memberName, {
932
- get() {
937
+ {
938
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
939
+ return getValue(this, memberName);
940
+ }
933
941
  const ref = getHostRef(this);
934
942
  const instance = ref ? ref.$lazyInstance$ : prototype;
935
943
  if (!instance) return;
936
944
  return instance[memberName];
937
- },
938
- configurable: true,
939
- enumerable: true
940
- });
941
- }
942
- if (memberFlags & 4096 /* Setter */) {
943
- const origSetter = Object.getOwnPropertyDescriptor(prototype, memberName).set;
944
- Object.defineProperty(prototype, memberName, {
945
- set(newValue) {
946
- const ref = getHostRef(this);
947
- if (origSetter) {
948
- const currentValue = ref.$hostElement$[memberName];
949
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
950
- ref.$instanceValues$.set(memberName, currentValue);
951
- }
952
- origSetter.apply(this, [parsePropertyValue(newValue)]);
953
- setValue(this, memberName, ref.$hostElement$[memberName], cmpMeta);
954
- return;
945
+ }
946
+ },
947
+ configurable: true,
948
+ enumerable: true
949
+ });
950
+ }
951
+ Object.defineProperty(prototype, memberName, {
952
+ set(newValue) {
953
+ const ref = getHostRef(this);
954
+ if (origSetter) {
955
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
956
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
957
+ newValue = ref.$instanceValues$.get(memberName);
958
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
959
+ ref.$instanceValues$.set(memberName, currentValue);
960
+ }
961
+ origSetter.apply(this, [parsePropertyValue(newValue)]);
962
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
963
+ setValue(this, memberName, newValue, cmpMeta);
964
+ return;
965
+ }
966
+ {
967
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
968
+ setValue(this, memberName, newValue, cmpMeta);
969
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
970
+ ref.$onReadyPromise$.then(() => {
971
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
972
+ ref.$lazyInstance$[memberName] = newValue;
973
+ }
974
+ });
955
975
  }
956
- if (!ref) return;
957
- const setterSetVal = () => {
958
- const currentValue = ref.$lazyInstance$[memberName];
959
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
960
- ref.$instanceValues$.set(memberName, currentValue);
961
- }
962
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue);
963
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
964
- };
965
- if (ref.$lazyInstance$) {
966
- setterSetVal();
967
- } else {
968
- ref.$onReadyPromise$.then(() => setterSetVal());
976
+ return;
977
+ }
978
+ const setterSetVal = () => {
979
+ const currentValue = ref.$lazyInstance$[memberName];
980
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
981
+ ref.$instanceValues$.set(memberName, currentValue);
969
982
  }
983
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue);
984
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
985
+ };
986
+ if (ref.$lazyInstance$) {
987
+ setterSetVal();
988
+ } else {
989
+ ref.$onReadyPromise$.then(() => setterSetVal());
970
990
  }
971
- });
991
+ }
972
992
  }
973
- }
993
+ });
974
994
  }
975
995
  });
976
996
  if ((flags & 1 /* isElementConstructor */)) {
@@ -1000,8 +1020,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1000
1020
  return;
1001
1021
  }
1002
1022
  const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1003
- if (!propDesc.get || !!propDesc.set) {
1004
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1023
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1024
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1025
+ this[propName] = newValue;
1005
1026
  }
1006
1027
  });
1007
1028
  };
@@ -1025,9 +1046,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1025
1046
  let Cstr;
1026
1047
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1027
1048
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1028
- const bundleId = cmpMeta.$lazyBundleId$;
1029
- if (bundleId) {
1030
- const CstrImport = loadModule(cmpMeta);
1049
+ {
1050
+ const CstrImport = loadModule(cmpMeta, hostRef);
1031
1051
  if (CstrImport && "then" in CstrImport) {
1032
1052
  const endLoad = uniqueTime();
1033
1053
  Cstr = await CstrImport;
@@ -1049,16 +1069,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1049
1069
  try {
1050
1070
  new Cstr(hostRef);
1051
1071
  } catch (e) {
1052
- consoleError(e);
1072
+ consoleError(e, elm);
1053
1073
  }
1054
1074
  {
1055
1075
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1056
1076
  }
1057
1077
  endNewInstance();
1058
- } else {
1059
- Cstr = elm.constructor;
1060
- const cmpTag = elm.localName;
1061
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1062
1078
  }
1063
1079
  if (Cstr && Cstr.style) {
1064
1080
  let style;
@@ -1081,7 +1097,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1081
1097
  schedule();
1082
1098
  }
1083
1099
  };
1084
- var fireConnectedCallback = (instance) => {
1100
+ var fireConnectedCallback = (instance, elm) => {
1085
1101
  };
1086
1102
 
1087
1103
  // src/runtime/connected-callback.ts
@@ -1121,7 +1137,7 @@ var connectedCallback = (elm) => {
1121
1137
  endConnected();
1122
1138
  }
1123
1139
  };
1124
- var disconnectInstance = (instance) => {
1140
+ var disconnectInstance = (instance, elm) => {
1125
1141
  };
1126
1142
  var disconnectedCallback = async (elm) => {
1127
1143
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-c5419b20.js');
5
+ const index = require('./index-10344168.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-c5419b20.js');
5
+ const index = require('./index-10344168.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.23.2 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.25.0 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var patchBrowser = () => {
12
12
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('proto-table-wc.cjs.js', document.baseURI).href));
@@ -5,7 +5,7 @@
5
5
  ],
6
6
  "compiler": {
7
7
  "name": "@stencil/core",
8
- "version": "4.23.2",
8
+ "version": "4.25.0",
9
9
  "typescriptVersion": "5.5.4"
10
10
  },
11
11
  "collections": [],
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-977bebd7.js';
1
+ import { r as registerInstance, h } from './index-2d906f0a.js';
2
2
 
3
3
  const demoTableCss = ".detailWrapper{font-weight:100;font-size:13px;display:flex;flex-direction:column;justify-items:start;padding:5px;padding-left:30px}";
4
4
  const DemoTableStyle0 = demoTableCss;
@@ -2,7 +2,7 @@ const NAMESPACE = 'proto-table-wc';
2
2
  const BUILD = /* proto-table-wc */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: false, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.23.2 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.25.0 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
@@ -57,12 +57,17 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
57
57
  /* webpackExclude: /\.system\.entry\.js$/ */
58
58
  /* webpackMode: "lazy" */
59
59
  `./${bundleId}.entry.js${""}`
60
- ).then((importedModule) => {
61
- {
62
- cmpModules.set(bundleId, importedModule);
60
+ ).then(
61
+ (importedModule) => {
62
+ {
63
+ cmpModules.set(bundleId, importedModule);
64
+ }
65
+ return importedModule[exportName];
66
+ },
67
+ (e) => {
68
+ consoleError(e, hostRef.$hostElement$);
63
69
  }
64
- return importedModule[exportName];
65
- }, consoleError);
70
+ );
66
71
  };
67
72
 
68
73
  // src/client/client-style.ts
@@ -184,6 +189,20 @@ var unwrapErr = (result) => {
184
189
  throw result.value;
185
190
  }
186
191
  };
192
+ var createTime = (fnName, tagName = "") => {
193
+ {
194
+ return () => {
195
+ return;
196
+ };
197
+ }
198
+ };
199
+ var uniqueTime = (key, measureText) => {
200
+ {
201
+ return () => {
202
+ return;
203
+ };
204
+ }
205
+ };
187
206
  var h = (nodeName, vnodeData, ...children) => {
188
207
  let child = null;
189
208
  let key = null;
@@ -248,6 +267,107 @@ var newVNode = (tag, text) => {
248
267
  };
249
268
  var Host = {};
250
269
  var isHost = (node) => node && node.$tag$ === Host;
270
+ var parsePropertyValue = (propValue, propType) => {
271
+ if (propValue != null && !isComplexType(propValue)) {
272
+ return propValue;
273
+ }
274
+ return propValue;
275
+ };
276
+ var emitEvent = (elm, name, opts) => {
277
+ const ev = plt.ce(name, opts);
278
+ elm.dispatchEvent(ev);
279
+ return ev;
280
+ };
281
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
282
+ var registerStyle = (scopeId2, cssText, allowCS) => {
283
+ let style = styles.get(scopeId2);
284
+ if (supportsConstructableStylesheets && allowCS) {
285
+ style = style || new CSSStyleSheet();
286
+ if (typeof style === "string") {
287
+ style = cssText;
288
+ } else {
289
+ style.replaceSync(cssText);
290
+ }
291
+ } else {
292
+ style = cssText;
293
+ }
294
+ styles.set(scopeId2, style);
295
+ };
296
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
297
+ var _a;
298
+ const scopeId2 = getScopeId(cmpMeta);
299
+ const style = styles.get(scopeId2);
300
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
301
+ if (style) {
302
+ if (typeof style === "string") {
303
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
304
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
305
+ let styleElm;
306
+ if (!appliedStyles) {
307
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
308
+ }
309
+ if (!appliedStyles.has(scopeId2)) {
310
+ {
311
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
312
+ styleElm.innerHTML = style;
313
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
314
+ if (nonce != null) {
315
+ styleElm.setAttribute("nonce", nonce);
316
+ }
317
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
318
+ if (styleContainerNode.nodeName === "HEAD") {
319
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
320
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
321
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
322
+ } else if ("host" in styleContainerNode) {
323
+ if (supportsConstructableStylesheets) {
324
+ const stylesheet = new CSSStyleSheet();
325
+ stylesheet.replaceSync(style);
326
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
327
+ } else {
328
+ const existingStyleContainer = styleContainerNode.querySelector("style");
329
+ if (existingStyleContainer) {
330
+ existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
331
+ } else {
332
+ styleContainerNode.prepend(styleElm);
333
+ }
334
+ }
335
+ } else {
336
+ styleContainerNode.append(styleElm);
337
+ }
338
+ }
339
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
340
+ styleContainerNode.insertBefore(styleElm, null);
341
+ }
342
+ }
343
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
344
+ styleElm.innerHTML += SLOT_FB_CSS;
345
+ }
346
+ if (appliedStyles) {
347
+ appliedStyles.add(scopeId2);
348
+ }
349
+ }
350
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
351
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
352
+ }
353
+ }
354
+ return scopeId2;
355
+ };
356
+ var attachStyles = (hostRef) => {
357
+ const cmpMeta = hostRef.$cmpMeta$;
358
+ const elm = hostRef.$hostElement$;
359
+ const flags = cmpMeta.$flags$;
360
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
361
+ const scopeId2 = addStyle(
362
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
363
+ cmpMeta);
364
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
365
+ elm["s-sc"] = scopeId2;
366
+ elm.classList.add(scopeId2 + "-h");
367
+ }
368
+ endAttachStyles();
369
+ };
370
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
251
371
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
252
372
  if (oldValue !== newValue) {
253
373
  let isProp = isMemberInElement(elm, memberName);
@@ -305,7 +425,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
305
425
  elm.setAttribute(memberName, n);
306
426
  }
307
427
  }
308
- } else {
428
+ } else if (elm[memberName] !== newValue) {
309
429
  elm[memberName] = newValue;
310
430
  }
311
431
  } catch (e) {
@@ -573,8 +693,9 @@ var nullifyVNodeRefs = (vNode) => {
573
693
  }
574
694
  };
575
695
  var insertBefore = (parent, newNode, reference) => {
576
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
577
- return inserted;
696
+ {
697
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
698
+ }
578
699
  };
579
700
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
580
701
  const hostElm = hostRef.$hostElement$;
@@ -596,126 +717,18 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
596
717
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
597
718
  patch(oldVNode, rootVnode, isInitialLoad);
598
719
  };
599
- var createTime = (fnName, tagName = "") => {
600
- {
601
- return () => {
602
- return;
603
- };
604
- }
605
- };
606
- var uniqueTime = (key, measureText) => {
607
- {
608
- return () => {
609
- return;
610
- };
611
- }
612
- };
613
- var parsePropertyValue = (propValue, propType) => {
614
- if (propValue != null && !isComplexType(propValue)) {
615
- return propValue;
616
- }
617
- return propValue;
618
- };
619
- var emitEvent = (elm, name, opts) => {
620
- const ev = plt.ce(name, opts);
621
- elm.dispatchEvent(ev);
622
- return ev;
623
- };
624
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
625
- var registerStyle = (scopeId2, cssText, allowCS) => {
626
- let style = styles.get(scopeId2);
627
- if (supportsConstructableStylesheets && allowCS) {
628
- style = style || new CSSStyleSheet();
629
- if (typeof style === "string") {
630
- style = cssText;
631
- } else {
632
- style.replaceSync(cssText);
633
- }
634
- } else {
635
- style = cssText;
636
- }
637
- styles.set(scopeId2, style);
638
- };
639
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
640
- var _a;
641
- const scopeId2 = getScopeId(cmpMeta);
642
- const style = styles.get(scopeId2);
643
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
644
- if (style) {
645
- if (typeof style === "string") {
646
- styleContainerNode = styleContainerNode.head || styleContainerNode;
647
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
648
- let styleElm;
649
- if (!appliedStyles) {
650
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
651
- }
652
- if (!appliedStyles.has(scopeId2)) {
653
- {
654
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
655
- styleElm.innerHTML = style;
656
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
657
- if (nonce != null) {
658
- styleElm.setAttribute("nonce", nonce);
659
- }
660
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
661
- if (styleContainerNode.nodeName === "HEAD") {
662
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
663
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
664
- styleContainerNode.insertBefore(styleElm, referenceNode2);
665
- } else if ("host" in styleContainerNode) {
666
- if (supportsConstructableStylesheets) {
667
- const stylesheet = new CSSStyleSheet();
668
- stylesheet.replaceSync(style);
669
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
670
- } else {
671
- const existingStyleContainer = styleContainerNode.querySelector("style");
672
- if (existingStyleContainer) {
673
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
674
- } else {
675
- styleContainerNode.prepend(styleElm);
676
- }
677
- }
678
- } else {
679
- styleContainerNode.append(styleElm);
680
- }
681
- }
682
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
683
- styleContainerNode.insertBefore(styleElm, null);
684
- }
685
- }
686
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
687
- styleElm.innerHTML += SLOT_FB_CSS;
688
- }
689
- if (appliedStyles) {
690
- appliedStyles.add(scopeId2);
691
- }
692
- }
693
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
694
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
695
- }
696
- }
697
- return scopeId2;
698
- };
699
- var attachStyles = (hostRef) => {
700
- const cmpMeta = hostRef.$cmpMeta$;
701
- const elm = hostRef.$hostElement$;
702
- const flags = cmpMeta.$flags$;
703
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
704
- const scopeId2 = addStyle(
705
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
706
- cmpMeta);
707
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
708
- elm["s-sc"] = scopeId2;
709
- elm.classList.add(scopeId2 + "-h");
710
- }
711
- endAttachStyles();
712
- };
713
- var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
714
720
 
715
721
  // src/runtime/update-component.ts
716
722
  var attachToAncestor = (hostRef, ancestorComponent) => {
717
723
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
718
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
724
+ const index = ancestorComponent["s-p"].push(
725
+ new Promise(
726
+ (r) => hostRef.$onRenderResolve$ = () => {
727
+ ancestorComponent["s-p"].splice(index - 1, 1);
728
+ r();
729
+ }
730
+ )
731
+ );
719
732
  }
720
733
  };
721
734
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -742,7 +755,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
742
755
  let maybePromise;
743
756
  if (isInitialLoad) {
744
757
  {
745
- maybePromise = safeCall(instance, "componentWillLoad");
758
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
746
759
  }
747
760
  }
748
761
  endSchedule();
@@ -816,7 +829,7 @@ var postUpdateComponent = (hostRef) => {
816
829
  addHydratedFlag(elm);
817
830
  }
818
831
  {
819
- safeCall(instance, "componentDidLoad");
832
+ safeCall(instance, "componentDidLoad", void 0, elm);
820
833
  }
821
834
  endPostUpdate();
822
835
  {
@@ -845,12 +858,12 @@ var appDidLoad = (who) => {
845
858
  }
846
859
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
847
860
  };
848
- var safeCall = (instance, method, arg) => {
861
+ var safeCall = (instance, method, arg, elm) => {
849
862
  if (instance && instance[method]) {
850
863
  try {
851
864
  return instance[method](arg);
852
865
  } catch (e) {
853
- consoleError(e);
866
+ consoleError(e, elm);
854
867
  }
855
868
  }
856
869
  return void 0;
@@ -893,62 +906,69 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
893
906
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
894
907
  members.map(([memberName, [memberFlags]]) => {
895
908
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
896
- if ((memberFlags & 2048 /* Getter */) === 0) {
909
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
910
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
911
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
912
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
897
913
  Object.defineProperty(prototype, memberName, {
898
914
  get() {
899
- return getValue(this, memberName);
900
- },
901
- set(newValue) {
902
- setValue(this, memberName, newValue, cmpMeta);
903
- },
904
- configurable: true,
905
- enumerable: true
906
- });
907
- } else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
908
- {
909
- Object.defineProperty(prototype, memberName, {
910
- get() {
915
+ {
916
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
917
+ return getValue(this, memberName);
918
+ }
911
919
  const ref = getHostRef(this);
912
920
  const instance = ref ? ref.$lazyInstance$ : prototype;
913
921
  if (!instance) return;
914
922
  return instance[memberName];
915
- },
916
- configurable: true,
917
- enumerable: true
918
- });
919
- }
920
- if (memberFlags & 4096 /* Setter */) {
921
- const origSetter = Object.getOwnPropertyDescriptor(prototype, memberName).set;
922
- Object.defineProperty(prototype, memberName, {
923
- set(newValue) {
924
- const ref = getHostRef(this);
925
- if (origSetter) {
926
- const currentValue = ref.$hostElement$[memberName];
927
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
928
- ref.$instanceValues$.set(memberName, currentValue);
929
- }
930
- origSetter.apply(this, [parsePropertyValue(newValue)]);
931
- setValue(this, memberName, ref.$hostElement$[memberName], cmpMeta);
932
- return;
923
+ }
924
+ },
925
+ configurable: true,
926
+ enumerable: true
927
+ });
928
+ }
929
+ Object.defineProperty(prototype, memberName, {
930
+ set(newValue) {
931
+ const ref = getHostRef(this);
932
+ if (origSetter) {
933
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
934
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
935
+ newValue = ref.$instanceValues$.get(memberName);
936
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
937
+ ref.$instanceValues$.set(memberName, currentValue);
938
+ }
939
+ origSetter.apply(this, [parsePropertyValue(newValue)]);
940
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
941
+ setValue(this, memberName, newValue, cmpMeta);
942
+ return;
943
+ }
944
+ {
945
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
946
+ setValue(this, memberName, newValue, cmpMeta);
947
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
948
+ ref.$onReadyPromise$.then(() => {
949
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
950
+ ref.$lazyInstance$[memberName] = newValue;
951
+ }
952
+ });
933
953
  }
934
- if (!ref) return;
935
- const setterSetVal = () => {
936
- const currentValue = ref.$lazyInstance$[memberName];
937
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
938
- ref.$instanceValues$.set(memberName, currentValue);
939
- }
940
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue);
941
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
942
- };
943
- if (ref.$lazyInstance$) {
944
- setterSetVal();
945
- } else {
946
- ref.$onReadyPromise$.then(() => setterSetVal());
954
+ return;
955
+ }
956
+ const setterSetVal = () => {
957
+ const currentValue = ref.$lazyInstance$[memberName];
958
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
959
+ ref.$instanceValues$.set(memberName, currentValue);
947
960
  }
961
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue);
962
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
963
+ };
964
+ if (ref.$lazyInstance$) {
965
+ setterSetVal();
966
+ } else {
967
+ ref.$onReadyPromise$.then(() => setterSetVal());
948
968
  }
949
- });
969
+ }
950
970
  }
951
- }
971
+ });
952
972
  }
953
973
  });
954
974
  if ((flags & 1 /* isElementConstructor */)) {
@@ -978,8 +998,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
978
998
  return;
979
999
  }
980
1000
  const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
981
- if (!propDesc.get || !!propDesc.set) {
982
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1001
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1002
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1003
+ this[propName] = newValue;
983
1004
  }
984
1005
  });
985
1006
  };
@@ -1003,9 +1024,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1003
1024
  let Cstr;
1004
1025
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1005
1026
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1006
- const bundleId = cmpMeta.$lazyBundleId$;
1007
- if (bundleId) {
1008
- const CstrImport = loadModule(cmpMeta);
1027
+ {
1028
+ const CstrImport = loadModule(cmpMeta, hostRef);
1009
1029
  if (CstrImport && "then" in CstrImport) {
1010
1030
  const endLoad = uniqueTime();
1011
1031
  Cstr = await CstrImport;
@@ -1027,16 +1047,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1027
1047
  try {
1028
1048
  new Cstr(hostRef);
1029
1049
  } catch (e) {
1030
- consoleError(e);
1050
+ consoleError(e, elm);
1031
1051
  }
1032
1052
  {
1033
1053
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1034
1054
  }
1035
1055
  endNewInstance();
1036
- } else {
1037
- Cstr = elm.constructor;
1038
- const cmpTag = elm.localName;
1039
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1040
1056
  }
1041
1057
  if (Cstr && Cstr.style) {
1042
1058
  let style;
@@ -1059,7 +1075,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1059
1075
  schedule();
1060
1076
  }
1061
1077
  };
1062
- var fireConnectedCallback = (instance) => {
1078
+ var fireConnectedCallback = (instance, elm) => {
1063
1079
  };
1064
1080
 
1065
1081
  // src/runtime/connected-callback.ts
@@ -1099,7 +1115,7 @@ var connectedCallback = (elm) => {
1099
1115
  endConnected();
1100
1116
  }
1101
1117
  };
1102
- var disconnectInstance = (instance) => {
1118
+ var disconnectInstance = (instance, elm) => {
1103
1119
  };
1104
1120
  var disconnectedCallback = async (elm) => {
1105
1121
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-977bebd7.js';
2
- export { s as setNonce } from './index-977bebd7.js';
1
+ import { b as bootstrapLazy } from './index-2d906f0a.js';
2
+ export { s as setNonce } from './index-2d906f0a.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-977bebd7.js';
2
- export { s as setNonce } from './index-977bebd7.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-2d906f0a.js';
2
+ export { s as setNonce } from './index-2d906f0a.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.23.2 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.25.0 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;
@@ -1 +1 @@
1
- import{r as e,h as t}from"./p-5d92147a.js";const r=class{constructor(r){e(this,r),this.fields=[{label:"Date",prop:"date"},{label:"List Price",prop:"price"},{label:"% of Market",prop:"market"},{label:"ProfitTime Score",prop:"score"}],this.items=[],this.table=void 0,this.renderDetails=e=>{const{tags:r=[]}=e;return t("div",{class:"detailWrapper"},t("span",null,r.length," details..."),t("ul",null,r.map((e=>t("li",null,e)))))}}componentWillLoad(){this.items=[{date:"08/30/2020",price:"$24,000",market:"98%",score:"No Score",tags:["one","two","three"]},{date:"08/31/2020",price:"$24,000",market:"99%",score:"No Score",tags:["uno","duo"]},{date:"09/01/2020",price:"$27,000",market:"102%",score:"Platinum"},{date:"09/02/2020",price:"$27,423",market:"104%",score:"Platinum",tags:["dog","cat","fish","hamster"]},{date:"09/03/2020",price:"$27,521",market:"106%",score:"Platinum",tags:["4wd","sports"]},{date:"09/04/2020",price:"$27,687",market:"107%",score:"Platinum",tags:["leather","chrome"]}]}componentDidLoad(){const{table:e,items:t,fields:r}=this;e.data=t,e.fields=r,e.details=this.renderDetails}render(){return t("proto-table",{key:"aa5f26287b85073afb5bbd3c133f9ad388fc8138",ref:e=>this.table=e})}};r.style=".detailWrapper{font-weight:100;font-size:13px;display:flex;flex-direction:column;justify-items:start;padding:5px;padding-left:30px}";const s={down:"M12 15.4L6.6 10 8 8.6l4 4 4-4 1.4 1.4z",up:"M16 15.4l-4-4-4 4L6.6 14 12 8.6l5.4 5.4z",left:"M14 17.4L8.6 12 14 6.6 15.4 8l-4 4 4 4z",right:"M10 17.4L8.6 16l4-4-4-4L10 6.6l5.4 5.4z",more:"M12 14a2 2 0 100-4 2 2 0 000 4zm-6 0a2 2 0 100-4 2 2 0 000 4zm12 0a2 2 0 100-4 2 2 0 000 4z","arrow-up":"M5.3 10.7l1.4 1.4L11 7.8V20h2V7.8l4.3 4.3 1.4-1.4L12 4z","arrow-down":"M18.7 13.3l-1.4-1.4-4.3 4.3V4h-2v12.2l-4.3-4.3-1.4 1.4L12 20z"},i={right:"show",down:"hide","arrow-up":"sort","arrow-down":"sort"},l=class{constructor(r){e(this,r),this.data=[],this.details=void 0,this.fields=[],this.expanded=void 0,this.sort=void 0,this.clicks=0,this.protoIcon=(e,r,l=24)=>{const o=s[e];return t("svg",{width:l,height:l,viewBox:"0 0 24 24",role:"img","aria-labelledby":"title"},t("title",null,(e=>i[e])(e)),t("g",{fill:r},t("path",{d:o})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},this.handleCellClick=(e,t)=>()=>{0===e&&(this.expanded=this.expanded===t?void 0:t)},this.handleSortClick=e=>()=>{this.sort===e?2===this.clicks?(this.clicks=0,this.sort=void 0):this.clicks=this.clicks+1:(this.sort=e,this.clicks=1)},this.iconFor=e=>this.sort===e&&2===this.clicks?"arrow-up":"arrow-down",this.header=()=>{const{fields:e,iconFor:r,protoIcon:s}=this;return t("div",{class:"header"},e.map((({label:e},i)=>{const l=i===this.sort?"headerCell sort":"headerCell",o=r(i);return t("div",{class:l,onClick:this.handleSortClick(i)},s(o),t("span",null,e))})))},this.row=(e,r)=>{const{fields:s,protoIcon:i}=this;return t("div",{class:"rowContainer"},t("div",{class:this.expanded===r?"row expanded":"row"},s.map((({prop:s},l)=>t("div",{class:l===this.sort?"cell sort":"cell",onClick:this.handleCellClick(l,r)},i(0===l&&this.details?this.expanded===r?"down":"right":"pad"),e[s])))),this.details&&this.expanded===r&&this.details(e))}}render(){const e=this.data||[];return t("div",{key:"c30742fde0de976c553234528a7bfb6ce10d3ef5",class:"table"},this.header(),e.map(((e,t)=>this.row(e,t))))}};l.style=".table{font-weight:400;font-size:13px;display:flex;flex-direction:column;width:100%;border:1px solid var(--clrs-navy);border-radius:2px}.table svg{fill:var(--clrs-navy)}.header{display:flex}.headerCell{flex-basis:100%;display:flex;align-items:center;justify-items:start;border-right:1px solid var(--clrs-navy);border-bottom:1px solid var(--clrs-navy);padding:5px;cursor:pointer}.headerCell svg g{display:none}.headerCell.sort svg g{display:inline}.headerCell:hover svg g{display:inline}.headerCell:hover{background-color:var(--clrs-silver)}.headerCell:last-child{border-right:none}.cell{flex-basis:100%;display:flex;align-items:center;justify-items:start;padding:5px}.cell:first-child svg{cursor:pointer}.sort{background-color:var(--cx-column-sort)}.row{display:flex;justify-items:stretch;width:100%}.row.expanded{background-color:var(--cx-row-expanded)}.row.expanded svg{fill:var(--clrs-red)}.row:hover{background-color:var(--cx-row-hover)}";export{r as demo_table,l as proto_table}
1
+ import{r as e,h as t}from"./p-bbd5d05f.js";const r=class{constructor(r){e(this,r),this.fields=[{label:"Date",prop:"date"},{label:"List Price",prop:"price"},{label:"% of Market",prop:"market"},{label:"ProfitTime Score",prop:"score"}],this.items=[],this.table=void 0,this.renderDetails=e=>{const{tags:r=[]}=e;return t("div",{class:"detailWrapper"},t("span",null,r.length," details..."),t("ul",null,r.map((e=>t("li",null,e)))))}}componentWillLoad(){this.items=[{date:"08/30/2020",price:"$24,000",market:"98%",score:"No Score",tags:["one","two","three"]},{date:"08/31/2020",price:"$24,000",market:"99%",score:"No Score",tags:["uno","duo"]},{date:"09/01/2020",price:"$27,000",market:"102%",score:"Platinum"},{date:"09/02/2020",price:"$27,423",market:"104%",score:"Platinum",tags:["dog","cat","fish","hamster"]},{date:"09/03/2020",price:"$27,521",market:"106%",score:"Platinum",tags:["4wd","sports"]},{date:"09/04/2020",price:"$27,687",market:"107%",score:"Platinum",tags:["leather","chrome"]}]}componentDidLoad(){const{table:e,items:t,fields:r}=this;e.data=t,e.fields=r,e.details=this.renderDetails}render(){return t("proto-table",{key:"aa5f26287b85073afb5bbd3c133f9ad388fc8138",ref:e=>this.table=e})}};r.style=".detailWrapper{font-weight:100;font-size:13px;display:flex;flex-direction:column;justify-items:start;padding:5px;padding-left:30px}";const s={down:"M12 15.4L6.6 10 8 8.6l4 4 4-4 1.4 1.4z",up:"M16 15.4l-4-4-4 4L6.6 14 12 8.6l5.4 5.4z",left:"M14 17.4L8.6 12 14 6.6 15.4 8l-4 4 4 4z",right:"M10 17.4L8.6 16l4-4-4-4L10 6.6l5.4 5.4z",more:"M12 14a2 2 0 100-4 2 2 0 000 4zm-6 0a2 2 0 100-4 2 2 0 000 4zm12 0a2 2 0 100-4 2 2 0 000 4z","arrow-up":"M5.3 10.7l1.4 1.4L11 7.8V20h2V7.8l4.3 4.3 1.4-1.4L12 4z","arrow-down":"M18.7 13.3l-1.4-1.4-4.3 4.3V4h-2v12.2l-4.3-4.3-1.4 1.4L12 20z"},i={right:"show",down:"hide","arrow-up":"sort","arrow-down":"sort"},l=class{constructor(r){e(this,r),this.data=[],this.details=void 0,this.fields=[],this.expanded=void 0,this.sort=void 0,this.clicks=0,this.protoIcon=(e,r,l=24)=>{const o=s[e];return t("svg",{width:l,height:l,viewBox:"0 0 24 24",role:"img","aria-labelledby":"title"},t("title",null,(e=>i[e])(e)),t("g",{fill:r},t("path",{d:o})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},this.handleCellClick=(e,t)=>()=>{0===e&&(this.expanded=this.expanded===t?void 0:t)},this.handleSortClick=e=>()=>{this.sort===e?2===this.clicks?(this.clicks=0,this.sort=void 0):this.clicks=this.clicks+1:(this.sort=e,this.clicks=1)},this.iconFor=e=>this.sort===e&&2===this.clicks?"arrow-up":"arrow-down",this.header=()=>{const{fields:e,iconFor:r,protoIcon:s}=this;return t("div",{class:"header"},e.map((({label:e},i)=>{const l=i===this.sort?"headerCell sort":"headerCell",o=r(i);return t("div",{class:l,onClick:this.handleSortClick(i)},s(o),t("span",null,e))})))},this.row=(e,r)=>{const{fields:s,protoIcon:i}=this;return t("div",{class:"rowContainer"},t("div",{class:this.expanded===r?"row expanded":"row"},s.map((({prop:s},l)=>t("div",{class:l===this.sort?"cell sort":"cell",onClick:this.handleCellClick(l,r)},i(0===l&&this.details?this.expanded===r?"down":"right":"pad"),e[s])))),this.details&&this.expanded===r&&this.details(e))}}render(){const e=this.data||[];return t("div",{key:"c30742fde0de976c553234528a7bfb6ce10d3ef5",class:"table"},this.header(),e.map(((e,t)=>this.row(e,t))))}};l.style=".table{font-weight:400;font-size:13px;display:flex;flex-direction:column;width:100%;border:1px solid var(--clrs-navy);border-radius:2px}.table svg{fill:var(--clrs-navy)}.header{display:flex}.headerCell{flex-basis:100%;display:flex;align-items:center;justify-items:start;border-right:1px solid var(--clrs-navy);border-bottom:1px solid var(--clrs-navy);padding:5px;cursor:pointer}.headerCell svg g{display:none}.headerCell.sort svg g{display:inline}.headerCell:hover svg g{display:inline}.headerCell:hover{background-color:var(--clrs-silver)}.headerCell:last-child{border-right:none}.cell{flex-basis:100%;display:flex;align-items:center;justify-items:start;padding:5px}.cell:first-child svg{cursor:pointer}.sort{background-color:var(--cx-column-sort)}.row{display:flex;justify-items:stretch;width:100%}.row.expanded{background-color:var(--cx-row-expanded)}.row.expanded svg{fill:var(--clrs-red)}.row:hover{background-color:var(--cx-row-hover)}";export{r as demo_table,l as proto_table}
@@ -0,0 +1,2 @@
1
+ var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>{t.set(n.t=e,n)},l=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},f=u.document||{head:{}},a={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,m=[],y=[],w=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&a.o?$(b):a.raf(b))},v=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{v(m),v(y),(p=m.length>0)&&a.raf(b)},$=e=>h().then(e),g=w(y,!0),S=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>E,ok:()=>O,unwrap:()=>M,unwrapErr:()=>x});var O=e=>({isOk:!0,isErr:!1,value:e}),k=e=>({isOk:!1,isErr:!0,value:e});function E(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return k(e.value);throw"should never get here"}var C,M=e=>{if(e.isOk)return e.value;throw e.value},x=e=>{if(e.isErr)return e.value;throw e.value},P=(e,t,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!S(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?A(null,o):o),i=s)};if(c(n),t){t.key&&(l=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=A(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=l,u},A=(e,t)=>({o:0,m:e,i:t,v:null,h:null,u:null,p:null}),D={},H=e=>(null==e||S(e),e),L=new WeakMap,N=e=>"sc-"+e.$,R=(e,t,n,o,s,i)=>{if(n!==o){let r=l(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,l=U(n);let s=U(o);e["s-si"]?(s.push(e["s-si"]),l.forEach((t=>{t.startsWith(e["s-si"])&&s.push(t)})),s=[...new Set(s)],t.add(...s),delete e["s-si"]):(t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e)))))}else if("key"===t);else if("ref"===t)o&&o(e);else if(r||"o"!==t[0]||"n"!==t[1]){const l=S(o);if((r||l&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[t]!==o&&(e[t]=o);else{const l=null==o?"":o;"list"===t?r=!1:null!=n&&e[t]==l||("function"==typeof e.__lookupSetter__(t)?e[t]=l:e.setAttribute(t,l))}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!l&&e.setAttribute(t,o=!0===o?"":o)}else if(t="-"===t[2]?t.slice(3):l(u,c)?c.slice(2):c[2]+t.slice(3),n||o){const l=t.endsWith(W);t=t.replace(F,""),n&&a.rel(e,t,n,l),o&&a.ael(e,t,o,l)}}},T=/\s/,U=e=>("object"==typeof e&&"baseVal"in e&&(e=e.baseVal),e?e.split(T):[]),W="Capture",F=RegExp(W+"$"),V=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||{},s=t.u||{};for(const e of q(Object.keys(l)))e in s||R(o,e,l[e],void 0,n,t.o);for(const e of q(Object.keys(s)))R(o,e,l[e],s[e],n,t.o)};function q(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var G=!1,_=(e,t,n)=>{const o=t.h[n];let l,s,i=0;if(null!==o.i)l=o.v=f.createTextNode(o.i);else{if(G||(G="svg"===o.m),l=o.v=f.createElementNS(G?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),G&&"foreignObject"===o.m&&(G=!1),V(null,o,G),o.h)for(i=0;i<o.h.length;++i)s=_(e,o,i),s&&l.appendChild(s);"svg"===o.m?G=!1:"foreignObject"===l.tagName&&(G=!0)}return l["s-hn"]=C,l},z=(e,t,n,o,l,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===C&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=_(null,n,l),i&&(o[l].v=i,Q(r,i,t)))},B=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;K(t),e&&e.remove()}}},I=(e,t,n=!1)=>e.m===t.m&&(n?(n&&!e.p&&t.p&&(e.p=t.p),!0):e.p===t.p),J=(e,t,n=!1)=>{const o=t.v=e.v,l=e.h,s=t.h,i=t.m,r=t.i;null===r?(V(e,t,G="svg"===i||"foreignObject"!==i&&G),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=t.length-1,h=t[0],d=t[a],p=o.length-1,m=o[0],y=o[p];for(;r<=a&&c<=p;)if(null==h)h=t[++r];else if(null==d)d=t[--a];else if(null==m)m=o[++c];else if(null==y)y=o[--p];else if(I(h,m,l))J(h,m,l),h=t[++r],m=o[++c];else if(I(d,y,l))J(d,y,l),d=t[--a],y=o[--p];else if(I(h,y,l))J(h,y,l),Q(e,h.v,d.v.nextSibling),h=t[++r],y=o[--p];else if(I(d,m,l))J(d,m,l),Q(e,d.v,h.v),d=t[--a],m=o[++c];else{for(u=-1,f=r;f<=a;++f)if(t[f]&&null!==t[f].p&&t[f].p===m.p){u=f;break}u>=0?(i=t[u],i.m!==m.m?s=_(t&&t[c],n,u):(J(i,m,l),t[u]=void 0,s=i.v),m=o[++c]):(s=_(t&&t[c],n,c),m=o[++c]),s&&Q(h.v.parentNode,s,h.v)}r>a?z(e,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&B(t,r,a)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),z(o,null,t,s,0,s.length-1)):!n&&null!==l&&B(l,0,l.length-1),G&&"svg"===i&&(G=!1)):e.i!==r&&(o.data=r)},K=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(K)},Q=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),X=(e,t)=>{if(t&&!e.S&&t["s-p"]){const n=t["s-p"].push(new Promise((o=>e.S=()=>{t["s-p"].splice(n-1,1),o()})))}},Y=(e,t)=>{if(e.o|=16,!(4&e.o))return X(e,e.j),g((()=>Z(e,t)));e.o|=512},Z=(e,t)=>{const n=e.$hostElement$,o=e.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(l=ie(o,"componentWillLoad",void 0,n)),ee(l,(()=>ne(e,o,t)))},ee=(e,t)=>te(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),te=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ne=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=N(t),l=r.get(o);if(e=11===e.nodeType?e:f,l)if("string"==typeof l){let s,i=L.get(e=e.head||e);if(i||L.set(e,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||f.createElement("style"),s.innerHTML=l;const i=null!=(n=a.k)?n:j(f);if(null!=i&&s.setAttribute("nonce",i),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(d){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(s)}else e.append(s);1&t.o&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=c),i&&i.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);oe(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>le(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},oe=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.O,s=e.C||A(null,null),i=(e=>e&&e.m===D)(t)?t:P(null,null,t);if(C=o.tagName,n&&i.u)for(const e of Object.keys(i.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=o[e]);i.m=null,i.o|=4,e.C=i,i.v=s.v=o.shadowRoot||o,J(s,i,n)})(e,t,o)}catch(t){s(t,e.$hostElement$)}return null},le=e=>{const t=e.$hostElement$,n=e.t,o=e.j;64&e.o||(e.o|=64,re(t),ie(n,"componentDidLoad",void 0,t),e.M(t),o||se()),e.S&&(e.S(),e.S=void 0),512&e.o&&$((()=>Y(e,!1))),e.o&=-517},se=()=>{re(f.documentElement),$((()=>(e=>{const t=a.ce("appload",{detail:{namespace:"proto-table-wc"}});return e.dispatchEvent(t),t})(u)))},ie=(e,t,n,o)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e,o)}},re=e=>e.classList.add("hydrated"),ce=(e,t,o,l)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${l.$}" 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/ionic-team/stencil/issues/5457).`);const i=s.P.get(t),r=s.o,c=s.t;o=H(o),8&r&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.P.set(t,o),c&&2==(18&r)&&Y(s,!1))},ue=(e,t,o)=>{var l,s;const i=e.prototype;if(t.A){const r=Object.entries(null!=(l=t.A)?l:{});if(r.map((([e,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,e)||{};s&&(t.A[e][0]|=2048),r&&(t.A[e][0]|=4096),(1&o||!s)&&Object.defineProperty(i,e,{get(){{if(!(2048&t.A[e][0]))return((e,t)=>n(this).P.get(t))(0,e);const o=n(this),l=o?o.t:i;if(!l)return;return l[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,e,{set(s){const i=n(this);if(r){const n=32&l?this[e]:i.$hostElement$[e];return void 0===n&&i.P.get(e)?s=i.P.get(e):!i.P.get(e)&&n&&i.P.set(e,n),r.call(this,H(s)),void ce(this,e,s=32&l?this[e]:i.$hostElement$[e],t)}{if(!(1&o&&4096&t.A[e][0]))return ce(this,e,s,t),void(1&o&&!i.t&&i.D.then((()=>{4096&t.A[e][0]&&i.t[e]!==i.P.get(e)&&(i.t[e]=s)})));const n=()=>{const n=i.t[e];!i.P.get(e)&&n&&i.P.set(e,n),i.t[e]=H(s),ce(this,e,i.t[e],t)};i.t?n():i.D.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(e,l,s){a.jmp((()=>{var r;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=t.H)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.H)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},fe=(e,o={})=>{var l;const h=[],p=o.exclude||[],m=u.customElements,y=f.head,w=y.querySelector("meta[charset]"),v=f.createElement("style"),b=[];let $,g=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",f.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((o=>{const l={o:o[0],$:o[1],A:o[2],L:o[3]};4&l.o&&(S=!0),l.A=o[2];const c=l.$,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,O:n,P:new Map};o.D=new Promise((e=>o.M=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,l),1&l.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),$&&(clearTimeout($),$=null),g?b.push(this):a.jmp((()=>(e=>{if(!(1&a.o)){const t=n(e),o=t.O,l=()=>{};if(1&t.o)(null==t?void 0:t.t)||(null==t?void 0:t.D)&&t.D.then((()=>{}));else{t.o|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){X(t,t.j=n);break}}o.A&&Object.entries(o.A).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){t.o|=32;{const l=((e,t)=>{const n=e.$.replace(/-/g,"_"),o=e.N;if(!o)return;const l=i.get(o);return l?l[n]:import(`./${o}.entry.js`).then((e=>(i.set(o,e),e[n])),(e=>{s(e,t.$hostElement$)}))
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,t);if(l&&"then"in l){const e=()=>{};o=await l,e()}else o=l;if(!o)throw Error(`Constructor for "${n.$}#${t.R}" was not found`);o.isProxied||(ue(o,n,2),o.isProxied=!0);const r=()=>{};t.o|=8;try{new o(t)}catch(t){s(t,e)}t.o&=-9,r()}if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=N(n);if(!r.has(t)){const o=()=>{};((e,t,n)=>{let o=r.get(e);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,r.set(e,o)})(t,e,!!(1&n.o)),o()}}}const l=t.j,c=()=>Y(t,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(e,t,o)}l()}})(this)))}disconnectedCallback(){a.jmp((()=>(async e=>{if(!(1&a.o)){const t=n(e);(null==t?void 0:t.t)||(null==t?void 0:t.D)&&t.D.then((()=>{}))}L.has(e)&&L.delete(e),e.shadowRoot&&L.has(e.shadowRoot)&&L.delete(e.shadowRoot)})(this))),a.raf((()=>{var e;const t=n(this);(null==(e=null==t?void 0:t.C)?void 0:e.v)instanceof Node&&!t.C.v.isConnected&&delete t.C.v}))}componentOnReady(){return n(this).D}};l.N=e[0],p.includes(c)||m.get(c)||(h.push(c),m.define(c,ue(u,l,1)))}))})),h.length>0&&(S&&(v.textContent+=c),v.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(l=a.k)?l:j(f);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,w?w.nextSibling:y.firstChild)}g=!1,b.length?b.map((e=>e.connectedCallback())):a.jmp((()=>$=setTimeout(se,30)))},ae=e=>a.k=e;export{fe as b,P as h,h as p,o as r,ae as s}
@@ -1 +1 @@
1
- import{p as a,b as t}from"./p-5d92147a.js";export{s as setNonce}from"./p-5d92147a.js";import{g as e}from"./p-e1255160.js";(()=>{const s=import.meta.url,t={};return""!==s&&(t.resourcesUrl=new URL(".",s).href),a(t)})().then((async a=>(await e(),t([["p-04d96caa",[[1,"demo-table"],[0,"proto-table",{data:[16],details:[8],fields:[16],expanded:[32],sort:[32],clicks:[32]}]]]],a))));
1
+ import{p as t,b as a}from"./p-bbd5d05f.js";export{s as setNonce}from"./p-bbd5d05f.js";import{g as e}from"./p-e1255160.js";(()=>{const s=import.meta.url,a={};return""!==s&&(a.resourcesUrl=new URL(".",s).href),t(a)})().then((async s=>(await e(),a([["p-5d4cd50f",[[1,"demo-table"],[0,"proto-table",{data:[16],details:[8],fields:[16],expanded:[32],sort:[32],clicks:[32]}]]]],s))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proto-table-wc",
3
- "version": "0.0.575",
3
+ "version": "0.0.577",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -25,11 +25,11 @@
25
25
  "format": "prettier --write src"
26
26
  },
27
27
  "dependencies": {
28
- "@stencil/core": "4.23.2"
28
+ "@stencil/core": "4.25.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "cspell": "8.17.2",
32
- "eslint": "9.18.0",
32
+ "eslint": "9.19.0",
33
33
  "prettier": "3.4.2",
34
34
  "typescript": "5.7.3"
35
35
  },
@@ -1,2 +0,0 @@
1
- var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>{t.set(n.t=e,n)},l=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},f=u.document||{head:{}},a={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,m=[],y=[],w=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&a.o?$(v):a.raf(v))},b=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},v=()=>{b(m),b(y),(p=m.length>0)&&a.raf(v)},$=e=>h().then(e),g=w(y,!0),S=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>E,ok:()=>O,unwrap:()=>M,unwrapErr:()=>x});var O=e=>({isOk:!0,isErr:!1,value:e}),k=e=>({isOk:!1,isErr:!0,value:e});function E(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return k(e.value);throw"should never get here"}var C,M=e=>{if(e.isOk)return e.value;throw e.value},x=e=>{if(e.isErr)return e.value;throw e.value},P=(e,t,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!S(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?A(null,o):o),i=s)};if(c(n),t){t.key&&(l=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=A(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=l,u},A=(e,t)=>({o:0,m:e,i:t,v:null,h:null,u:null,p:null}),D={},H=(e,t,n,o,s,i)=>{if(n!==o){let r=l(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,l=N(n);let s=N(o);e["s-si"]?(s.push(e["s-si"]),l.forEach((t=>{t.startsWith(e["s-si"])&&s.push(t)})),s=[...new Set(s)],t.add(...s),delete e["s-si"]):(t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e)))))}else if("key"===t);else if("ref"===t)o&&o(e);else if(r||"o"!==t[0]||"n"!==t[1]){const l=S(o);if((r||l&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[t]=o;else{const l=null==o?"":o;"list"===t?r=!1:null!=n&&e[t]==l||("function"==typeof e.__lookupSetter__(t)?e[t]=l:e.setAttribute(t,l))}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!l&&e.setAttribute(t,o=!0===o?"":o)}else if(t="-"===t[2]?t.slice(3):l(u,c)?c.slice(2):c[2]+t.slice(3),n||o){const l=t.endsWith(R);t=t.replace(T,""),n&&a.rel(e,t,n,l),o&&a.ael(e,t,o,l)}}},L=/\s/,N=e=>("object"==typeof e&&"baseVal"in e&&(e=e.baseVal),e?e.split(L):[]),R="Capture",T=RegExp(R+"$"),U=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||{},s=t.u||{};for(const e of W(Object.keys(l)))e in s||H(o,e,l[e],void 0,n,t.o);for(const e of W(Object.keys(s)))H(o,e,l[e],s[e],n,t.o)};function W(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var F=!1,V=(e,t,n)=>{const o=t.h[n];let l,s,i=0;if(null!==o.i)l=o.v=f.createTextNode(o.i);else{if(F||(F="svg"===o.m),l=o.v=f.createElementNS(F?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),F&&"foreignObject"===o.m&&(F=!1),U(null,o,F),o.h)for(i=0;i<o.h.length;++i)s=V(e,o,i),s&&l.appendChild(s);"svg"===o.m?F=!1:"foreignObject"===l.tagName&&(F=!0)}return l["s-hn"]=C,l},q=(e,t,n,o,l,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===C&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=V(null,n,l),i&&(o[l].v=i,I(r,i,t)))},G=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;B(t),e&&e.remove()}}},_=(e,t,n=!1)=>e.m===t.m&&(n?(n&&!e.p&&t.p&&(e.p=t.p),!0):e.p===t.p),z=(e,t,n=!1)=>{const o=t.v=e.v,l=e.h,s=t.h,i=t.m,r=t.i;null===r?(U(e,t,F="svg"===i||"foreignObject"!==i&&F),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=t.length-1,h=t[0],d=t[a],p=o.length-1,m=o[0],y=o[p];for(;r<=a&&c<=p;)if(null==h)h=t[++r];else if(null==d)d=t[--a];else if(null==m)m=o[++c];else if(null==y)y=o[--p];else if(_(h,m,l))z(h,m,l),h=t[++r],m=o[++c];else if(_(d,y,l))z(d,y,l),d=t[--a],y=o[--p];else if(_(h,y,l))z(h,y,l),I(e,h.v,d.v.nextSibling),h=t[++r],y=o[--p];else if(_(d,m,l))z(d,m,l),I(e,d.v,h.v),d=t[--a],m=o[++c];else{for(u=-1,f=r;f<=a;++f)if(t[f]&&null!==t[f].p&&t[f].p===m.p){u=f;break}u>=0?(i=t[u],i.m!==m.m?s=V(t&&t[c],n,u):(z(i,m,l),t[u]=void 0,s=i.v),m=o[++c]):(s=V(t&&t[c],n,c),m=o[++c]),s&&I(h.v.parentNode,s,h.v)}r>a?q(e,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&G(t,r,a)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),q(o,null,t,s,0,s.length-1)):!n&&null!==l&&G(l,0,l.length-1),F&&"svg"===i&&(F=!1)):e.i!==r&&(o.data=r)},B=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(B)},I=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),J=e=>(null==e||S(e),e),K=new WeakMap,Q=e=>"sc-"+e.$,X=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},Y=(e,t)=>{if(e.o|=16,!(4&e.o))return X(e,e.j),g((()=>Z(e,t)));e.o|=512},Z=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return t&&(o=ie(n,"componentWillLoad")),ee(o,(()=>ne(e,n,t)))},ee=(e,t)=>te(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),te=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ne=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=Q(t),l=r.get(o);if(e=11===e.nodeType?e:f,l)if("string"==typeof l){let s,i=K.get(e=e.head||e);if(i||K.set(e,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||f.createElement("style"),s.innerHTML=l;const i=null!=(n=a.k)?n:j(f);if(null!=i&&s.setAttribute("nonce",i),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(d){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(s)}else e.append(s);1&t.o&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=c),i&&i.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);oe(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>le(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},oe=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.O,s=e.C||A(null,null),i=(e=>e&&e.m===D)(t)?t:P(null,null,t);if(C=o.tagName,n&&i.u)for(const e of Object.keys(i.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=o[e]);i.m=null,i.o|=4,e.C=i,i.v=s.v=o.shadowRoot||o,z(s,i,n)})(e,t,o)}catch(t){s(t,e.$hostElement$)}return null},le=e=>{const t=e.$hostElement$,n=e.t,o=e.j;64&e.o||(e.o|=64,re(t),ie(n,"componentDidLoad"),e.M(t),o||se()),e.S&&(e.S(),e.S=void 0),512&e.o&&$((()=>Y(e,!1))),e.o&=-517},se=()=>{re(f.documentElement),$((()=>(e=>{const t=a.ce("appload",{detail:{namespace:"proto-table-wc"}});return e.dispatchEvent(t),t})(u)))},ie=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},re=e=>e.classList.add("hydrated"),ce=(e,t,o,l)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${l.$}" 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/ionic-team/stencil/issues/5457).`);const i=s.P.get(t),r=s.o,c=s.t;o=J(o),8&r&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.P.set(t,o),c&&2==(18&r)&&Y(s,!1))},ue=(e,t,o)=>{var l,s;const i=e.prototype;if(t.A){const r=Object.entries(null!=(l=t.A)?l:{});if(r.map((([e,[l]])=>{if(31&l||2&o&&32&l)if(2048&l){if(1&o&&2048&l&&(Object.defineProperty(i,e,{get(){const t=n(this),o=t?t.t:i;if(o)return o[e]},configurable:!0,enumerable:!0}),4096&l)){const o=Object.getOwnPropertyDescriptor(i,e).set;Object.defineProperty(i,e,{set(l){const s=n(this);if(o){const n=s.$hostElement$[e];return!s.P.get(e)&&n&&s.P.set(e,n),o.call(this,J(l)),void ce(this,e,s.$hostElement$[e],t)}if(!s)return;const i=()=>{const n=s.t[e];!s.P.get(e)&&n&&s.P.set(e,n),s.t[e]=J(l),ce(this,e,s.t[e],t)};s.t?i():s.D.then((()=>i()))}})}}else Object.defineProperty(i,e,{get(){return((e,t)=>n(this).P.get(t))(0,e)},set(n){ce(this,e,n,t)},configurable:!0,enumerable:!0})})),1&o){const o=new Map;i.attributeChangedCallback=function(e,l,s){a.jmp((()=>{var r;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=t.H)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);u.get&&!u.set||(this[c]=(null!==s||"boolean"!=typeof this[c])&&s)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.H)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},fe=(e,o={})=>{var l;const h=[],p=o.exclude||[],m=u.customElements,y=f.head,w=y.querySelector("meta[charset]"),b=f.createElement("style"),v=[];let $,g=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",f.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((o=>{const l={o:o[0],$:o[1],A:o[2],L:o[3]};4&l.o&&(S=!0),l.A=o[2];const c=l.$,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,O:n,P:new Map};o.D=new Promise((e=>o.M=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,l),1&l.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),$&&(clearTimeout($),$=null),g?v.push(this):a.jmp((()=>(e=>{if(!(1&a.o)){const t=n(e),o=t.O,l=()=>{};if(1&t.o)(null==t?void 0:t.t)||(null==t?void 0:t.D)&&t.D.then((()=>{}));else{t.o|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){X(t,t.j=n);break}}o.A&&Object.entries(o.A).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.N){const e=(e=>{const t=e.$.replace(/-/g,"_"),n=e.N;if(!n)return;const o=i.get(n);return o?o[t]:import(`./${n}.entry.js`).then((e=>(i.set(n,e),e[t])),s)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};o=await e,t()}else o=e;if(!o)throw Error(`Constructor for "${n.$}#${t.R}" was not found`);o.isProxied||(ue(o,n,2),o.isProxied=!0);const l=()=>{};t.o|=8;try{new o(t)}catch(e){s(e)}t.o&=-9,l()}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=Q(n);if(!r.has(t)){const o=()=>{};((e,t,n)=>{let o=r.get(e);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,r.set(e,o)})(t,e,!!(1&n.o)),o()}}}const l=t.j,c=()=>Y(t,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(e,t,o)}l()}})(this)))}disconnectedCallback(){a.jmp((()=>(async e=>{if(!(1&a.o)){const t=n(e);(null==t?void 0:t.t)||(null==t?void 0:t.D)&&t.D.then((()=>{}))}K.has(e)&&K.delete(e),e.shadowRoot&&K.has(e.shadowRoot)&&K.delete(e.shadowRoot)})(this))),a.raf((()=>{var e;const t=n(this);(null==(e=null==t?void 0:t.C)?void 0:e.v)instanceof Node&&!t.C.v.isConnected&&delete t.C.v}))}componentOnReady(){return n(this).D}};l.N=e[0],p.includes(c)||m.get(c)||(h.push(c),m.define(c,ue(u,l,1)))}))})),h.length>0&&(S&&(b.textContent+=c),b.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",b.innerHTML.length)){b.setAttribute("data-styles","");const e=null!=(l=a.k)?l:j(f);null!=e&&b.setAttribute("nonce",e),y.insertBefore(b,w?w.nextSibling:y.firstChild)}g=!1,v.length?v.map((e=>e.connectedCallback())):a.jmp((()=>$=setTimeout(se,30)))},ae=e=>a.k=e;export{fe as b,P as h,h as p,o as r,ae as s}