proto-table-wc 0.0.567 → 0.0.568
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/demo-table_2.cjs.entry.js +1 -1
- package/dist/cjs/{index-4cac46a7.js → index-24b40585.js} +179 -127
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/proto-table-wc.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/proto-table/proto-table.js +6 -0
- package/dist/esm/demo-table_2.entry.js +1 -1
- package/dist/esm/{index-6d910807.js → index-9da45881.js} +179 -127
- package/dist/esm/loader.js +2 -2
- package/dist/esm/proto-table-wc.js +3 -3
- package/dist/proto-table-wc/{p-001d1fe8.entry.js → p-538a6225.entry.js} +1 -1
- package/dist/proto-table-wc/p-83abae2a.js +2 -0
- package/dist/proto-table-wc/proto-table-wc.esm.js +1 -1
- package/package.json +2 -2
- package/dist/proto-table-wc/p-49bafdec.js +0 -2
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
const index = require('./index-
|
5
|
+
const index = require('./index-24b40585.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, 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.
|
27
|
+
Stencil Client Platform v4.23.0 | MIT Licensed | https://stenciljs.com
|
28
28
|
*/
|
29
29
|
var __defProp = Object.defineProperty;
|
30
30
|
var __export = (target, all) => {
|
@@ -204,20 +204,6 @@ var unwrapErr = (result) => {
|
|
204
204
|
throw result.value;
|
205
205
|
}
|
206
206
|
};
|
207
|
-
var createTime = (fnName, tagName = "") => {
|
208
|
-
{
|
209
|
-
return () => {
|
210
|
-
return;
|
211
|
-
};
|
212
|
-
}
|
213
|
-
};
|
214
|
-
var uniqueTime = (key, measureText) => {
|
215
|
-
{
|
216
|
-
return () => {
|
217
|
-
return;
|
218
|
-
};
|
219
|
-
}
|
220
|
-
};
|
221
207
|
var h = (nodeName, vnodeData, ...children) => {
|
222
208
|
let child = null;
|
223
209
|
let key = null;
|
@@ -282,107 +268,6 @@ var newVNode = (tag, text) => {
|
|
282
268
|
};
|
283
269
|
var Host = {};
|
284
270
|
var isHost = (node) => node && node.$tag$ === Host;
|
285
|
-
var parsePropertyValue = (propValue, propType) => {
|
286
|
-
if (propValue != null && !isComplexType(propValue)) {
|
287
|
-
return propValue;
|
288
|
-
}
|
289
|
-
return propValue;
|
290
|
-
};
|
291
|
-
var emitEvent = (elm, name, opts) => {
|
292
|
-
const ev = plt.ce(name, opts);
|
293
|
-
elm.dispatchEvent(ev);
|
294
|
-
return ev;
|
295
|
-
};
|
296
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
297
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
298
|
-
let style = styles.get(scopeId2);
|
299
|
-
if (supportsConstructableStylesheets && allowCS) {
|
300
|
-
style = style || new CSSStyleSheet();
|
301
|
-
if (typeof style === "string") {
|
302
|
-
style = cssText;
|
303
|
-
} else {
|
304
|
-
style.replaceSync(cssText);
|
305
|
-
}
|
306
|
-
} else {
|
307
|
-
style = cssText;
|
308
|
-
}
|
309
|
-
styles.set(scopeId2, style);
|
310
|
-
};
|
311
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
312
|
-
var _a;
|
313
|
-
const scopeId2 = getScopeId(cmpMeta);
|
314
|
-
const style = styles.get(scopeId2);
|
315
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
316
|
-
if (style) {
|
317
|
-
if (typeof style === "string") {
|
318
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
319
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
320
|
-
let styleElm;
|
321
|
-
if (!appliedStyles) {
|
322
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
323
|
-
}
|
324
|
-
if (!appliedStyles.has(scopeId2)) {
|
325
|
-
{
|
326
|
-
styleElm = doc.createElement("style");
|
327
|
-
styleElm.innerHTML = style;
|
328
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
329
|
-
if (nonce != null) {
|
330
|
-
styleElm.setAttribute("nonce", nonce);
|
331
|
-
}
|
332
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
333
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
334
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
335
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
336
|
-
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
337
|
-
} else if ("host" in styleContainerNode) {
|
338
|
-
if (supportsConstructableStylesheets) {
|
339
|
-
const stylesheet = new CSSStyleSheet();
|
340
|
-
stylesheet.replaceSync(style);
|
341
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
342
|
-
} else {
|
343
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
344
|
-
if (existingStyleContainer) {
|
345
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
346
|
-
} else {
|
347
|
-
styleContainerNode.prepend(styleElm);
|
348
|
-
}
|
349
|
-
}
|
350
|
-
} else {
|
351
|
-
styleContainerNode.append(styleElm);
|
352
|
-
}
|
353
|
-
}
|
354
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
355
|
-
styleContainerNode.insertBefore(styleElm, null);
|
356
|
-
}
|
357
|
-
}
|
358
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
359
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
360
|
-
}
|
361
|
-
if (appliedStyles) {
|
362
|
-
appliedStyles.add(scopeId2);
|
363
|
-
}
|
364
|
-
}
|
365
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
366
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
367
|
-
}
|
368
|
-
}
|
369
|
-
return scopeId2;
|
370
|
-
};
|
371
|
-
var attachStyles = (hostRef) => {
|
372
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
373
|
-
const elm = hostRef.$hostElement$;
|
374
|
-
const flags = cmpMeta.$flags$;
|
375
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
376
|
-
const scopeId2 = addStyle(
|
377
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
378
|
-
cmpMeta);
|
379
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
380
|
-
elm["s-sc"] = scopeId2;
|
381
|
-
elm.classList.add(scopeId2 + "-h");
|
382
|
-
}
|
383
|
-
endAttachStyles();
|
384
|
-
};
|
385
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
386
271
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
387
272
|
if (oldValue !== newValue) {
|
388
273
|
let isProp = isMemberInElement(elm, memberName);
|
@@ -391,6 +276,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
391
276
|
const classList = elm.classList;
|
392
277
|
const oldClasses = parseClassList(oldValue);
|
393
278
|
const newClasses = parseClassList(newValue);
|
279
|
+
if (elm["s-si"] && newClasses.indexOf(elm["s-si"]) < 0) {
|
280
|
+
newClasses.push(elm["s-si"]);
|
281
|
+
}
|
394
282
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
395
283
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
396
284
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
@@ -721,6 +609,121 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
721
609
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
722
610
|
patch(oldVNode, rootVnode, isInitialLoad);
|
723
611
|
};
|
612
|
+
var createTime = (fnName, tagName = "") => {
|
613
|
+
{
|
614
|
+
return () => {
|
615
|
+
return;
|
616
|
+
};
|
617
|
+
}
|
618
|
+
};
|
619
|
+
var uniqueTime = (key, measureText) => {
|
620
|
+
{
|
621
|
+
return () => {
|
622
|
+
return;
|
623
|
+
};
|
624
|
+
}
|
625
|
+
};
|
626
|
+
var parsePropertyValue = (propValue, propType) => {
|
627
|
+
if (propValue != null && !isComplexType(propValue)) {
|
628
|
+
return propValue;
|
629
|
+
}
|
630
|
+
return propValue;
|
631
|
+
};
|
632
|
+
var emitEvent = (elm, name, opts) => {
|
633
|
+
const ev = plt.ce(name, opts);
|
634
|
+
elm.dispatchEvent(ev);
|
635
|
+
return ev;
|
636
|
+
};
|
637
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
638
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
639
|
+
let style = styles.get(scopeId2);
|
640
|
+
if (supportsConstructableStylesheets && allowCS) {
|
641
|
+
style = style || new CSSStyleSheet();
|
642
|
+
if (typeof style === "string") {
|
643
|
+
style = cssText;
|
644
|
+
} else {
|
645
|
+
style.replaceSync(cssText);
|
646
|
+
}
|
647
|
+
} else {
|
648
|
+
style = cssText;
|
649
|
+
}
|
650
|
+
styles.set(scopeId2, style);
|
651
|
+
};
|
652
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
653
|
+
var _a;
|
654
|
+
const scopeId2 = getScopeId(cmpMeta);
|
655
|
+
const style = styles.get(scopeId2);
|
656
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
657
|
+
if (style) {
|
658
|
+
if (typeof style === "string") {
|
659
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
660
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
661
|
+
let styleElm;
|
662
|
+
if (!appliedStyles) {
|
663
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
664
|
+
}
|
665
|
+
if (!appliedStyles.has(scopeId2)) {
|
666
|
+
{
|
667
|
+
styleElm = doc.createElement("style");
|
668
|
+
styleElm.innerHTML = style;
|
669
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
670
|
+
if (nonce != null) {
|
671
|
+
styleElm.setAttribute("nonce", nonce);
|
672
|
+
}
|
673
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
674
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
675
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
676
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
677
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
678
|
+
} else if ("host" in styleContainerNode) {
|
679
|
+
if (supportsConstructableStylesheets) {
|
680
|
+
const stylesheet = new CSSStyleSheet();
|
681
|
+
stylesheet.replaceSync(style);
|
682
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
683
|
+
} else {
|
684
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
685
|
+
if (existingStyleContainer) {
|
686
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
687
|
+
} else {
|
688
|
+
styleContainerNode.prepend(styleElm);
|
689
|
+
}
|
690
|
+
}
|
691
|
+
} else {
|
692
|
+
styleContainerNode.append(styleElm);
|
693
|
+
}
|
694
|
+
}
|
695
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
696
|
+
styleContainerNode.insertBefore(styleElm, null);
|
697
|
+
}
|
698
|
+
}
|
699
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
700
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
701
|
+
}
|
702
|
+
if (appliedStyles) {
|
703
|
+
appliedStyles.add(scopeId2);
|
704
|
+
}
|
705
|
+
}
|
706
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
707
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
708
|
+
}
|
709
|
+
}
|
710
|
+
return scopeId2;
|
711
|
+
};
|
712
|
+
var attachStyles = (hostRef) => {
|
713
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
714
|
+
const elm = hostRef.$hostElement$;
|
715
|
+
const flags = cmpMeta.$flags$;
|
716
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
717
|
+
const scopeId2 = addStyle(
|
718
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
719
|
+
cmpMeta);
|
720
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
721
|
+
elm["s-sc"] = scopeId2;
|
722
|
+
elm.classList.add(scopeId2 + "-h");
|
723
|
+
}
|
724
|
+
endAttachStyles();
|
725
|
+
};
|
726
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
724
727
|
|
725
728
|
// src/runtime/update-component.ts
|
726
729
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
@@ -903,16 +906,62 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
903
906
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
904
907
|
members.map(([memberName, [memberFlags]]) => {
|
905
908
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
909
|
+
if ((memberFlags & 2048 /* Getter */) === 0) {
|
910
|
+
Object.defineProperty(prototype, memberName, {
|
911
|
+
get() {
|
912
|
+
return getValue(this, memberName);
|
913
|
+
},
|
914
|
+
set(newValue) {
|
915
|
+
setValue(this, memberName, newValue, cmpMeta);
|
916
|
+
},
|
917
|
+
configurable: true,
|
918
|
+
enumerable: true
|
919
|
+
});
|
920
|
+
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
|
921
|
+
{
|
922
|
+
Object.defineProperty(prototype, memberName, {
|
923
|
+
get() {
|
924
|
+
const ref = getHostRef(this);
|
925
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
926
|
+
if (!instance) return;
|
927
|
+
return instance[memberName];
|
928
|
+
},
|
929
|
+
configurable: true,
|
930
|
+
enumerable: true
|
931
|
+
});
|
932
|
+
}
|
933
|
+
if (memberFlags & 4096 /* Setter */) {
|
934
|
+
const origSetter = Object.getOwnPropertyDescriptor(prototype, memberName).set;
|
935
|
+
Object.defineProperty(prototype, memberName, {
|
936
|
+
set(newValue) {
|
937
|
+
const ref = getHostRef(this);
|
938
|
+
if (origSetter) {
|
939
|
+
const currentValue = ref.$hostElement$[memberName];
|
940
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
941
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
942
|
+
}
|
943
|
+
origSetter.apply(this, [parsePropertyValue(newValue)]);
|
944
|
+
setValue(this, memberName, ref.$hostElement$[memberName], cmpMeta);
|
945
|
+
return;
|
946
|
+
}
|
947
|
+
if (!ref) return;
|
948
|
+
const setterSetVal = () => {
|
949
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
950
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
951
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
952
|
+
}
|
953
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue);
|
954
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
955
|
+
};
|
956
|
+
if (ref.$lazyInstance$) {
|
957
|
+
setterSetVal();
|
958
|
+
} else {
|
959
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
960
|
+
}
|
961
|
+
}
|
962
|
+
});
|
963
|
+
}
|
964
|
+
}
|
916
965
|
}
|
917
966
|
});
|
918
967
|
if ((flags & 1 /* isElementConstructor */)) {
|
@@ -941,7 +990,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
941
990
|
}
|
942
991
|
return;
|
943
992
|
}
|
944
|
-
|
993
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
994
|
+
if (!propDesc.get || !!propDesc.set) {
|
995
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
996
|
+
}
|
945
997
|
});
|
946
998
|
};
|
947
999
|
Cstr.observedAttributes = Array.from(
|
package/dist/cjs/loader.cjs.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
const index = require('./index-
|
5
|
+
const index = require('./index-24b40585.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-
|
5
|
+
const index = require('./index-24b40585.js');
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
7
7
|
|
8
8
|
/*
|
9
|
-
Stencil Client Patch Browser v4.
|
9
|
+
Stencil Client Patch Browser v4.23.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));
|
@@ -97,6 +97,8 @@ export class ProtoTable {
|
|
97
97
|
"tags": [],
|
98
98
|
"text": ""
|
99
99
|
},
|
100
|
+
"getter": false,
|
101
|
+
"setter": false,
|
100
102
|
"defaultValue": "[]"
|
101
103
|
},
|
102
104
|
"details": {
|
@@ -113,6 +115,8 @@ export class ProtoTable {
|
|
113
115
|
"tags": [],
|
114
116
|
"text": ""
|
115
117
|
},
|
118
|
+
"getter": false,
|
119
|
+
"setter": false,
|
116
120
|
"attribute": "details",
|
117
121
|
"reflect": false,
|
118
122
|
"defaultValue": "undefined"
|
@@ -131,6 +135,8 @@ export class ProtoTable {
|
|
131
135
|
"tags": [],
|
132
136
|
"text": ""
|
133
137
|
},
|
138
|
+
"getter": false,
|
139
|
+
"setter": false,
|
134
140
|
"defaultValue": "[]"
|
135
141
|
}
|
136
142
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
1
|
+
import { r as registerInstance, h } from './index-9da45881.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, 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.
|
5
|
+
Stencil Client Platform v4.23.0 | MIT Licensed | https://stenciljs.com
|
6
6
|
*/
|
7
7
|
var __defProp = Object.defineProperty;
|
8
8
|
var __export = (target, all) => {
|
@@ -182,20 +182,6 @@ var unwrapErr = (result) => {
|
|
182
182
|
throw result.value;
|
183
183
|
}
|
184
184
|
};
|
185
|
-
var createTime = (fnName, tagName = "") => {
|
186
|
-
{
|
187
|
-
return () => {
|
188
|
-
return;
|
189
|
-
};
|
190
|
-
}
|
191
|
-
};
|
192
|
-
var uniqueTime = (key, measureText) => {
|
193
|
-
{
|
194
|
-
return () => {
|
195
|
-
return;
|
196
|
-
};
|
197
|
-
}
|
198
|
-
};
|
199
185
|
var h = (nodeName, vnodeData, ...children) => {
|
200
186
|
let child = null;
|
201
187
|
let key = null;
|
@@ -260,107 +246,6 @@ var newVNode = (tag, text) => {
|
|
260
246
|
};
|
261
247
|
var Host = {};
|
262
248
|
var isHost = (node) => node && node.$tag$ === Host;
|
263
|
-
var parsePropertyValue = (propValue, propType) => {
|
264
|
-
if (propValue != null && !isComplexType(propValue)) {
|
265
|
-
return propValue;
|
266
|
-
}
|
267
|
-
return propValue;
|
268
|
-
};
|
269
|
-
var emitEvent = (elm, name, opts) => {
|
270
|
-
const ev = plt.ce(name, opts);
|
271
|
-
elm.dispatchEvent(ev);
|
272
|
-
return ev;
|
273
|
-
};
|
274
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
275
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
276
|
-
let style = styles.get(scopeId2);
|
277
|
-
if (supportsConstructableStylesheets && allowCS) {
|
278
|
-
style = style || new CSSStyleSheet();
|
279
|
-
if (typeof style === "string") {
|
280
|
-
style = cssText;
|
281
|
-
} else {
|
282
|
-
style.replaceSync(cssText);
|
283
|
-
}
|
284
|
-
} else {
|
285
|
-
style = cssText;
|
286
|
-
}
|
287
|
-
styles.set(scopeId2, style);
|
288
|
-
};
|
289
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
290
|
-
var _a;
|
291
|
-
const scopeId2 = getScopeId(cmpMeta);
|
292
|
-
const style = styles.get(scopeId2);
|
293
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
294
|
-
if (style) {
|
295
|
-
if (typeof style === "string") {
|
296
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
297
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
298
|
-
let styleElm;
|
299
|
-
if (!appliedStyles) {
|
300
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
301
|
-
}
|
302
|
-
if (!appliedStyles.has(scopeId2)) {
|
303
|
-
{
|
304
|
-
styleElm = doc.createElement("style");
|
305
|
-
styleElm.innerHTML = style;
|
306
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
307
|
-
if (nonce != null) {
|
308
|
-
styleElm.setAttribute("nonce", nonce);
|
309
|
-
}
|
310
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
311
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
312
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
313
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
314
|
-
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
315
|
-
} else if ("host" in styleContainerNode) {
|
316
|
-
if (supportsConstructableStylesheets) {
|
317
|
-
const stylesheet = new CSSStyleSheet();
|
318
|
-
stylesheet.replaceSync(style);
|
319
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
320
|
-
} else {
|
321
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
322
|
-
if (existingStyleContainer) {
|
323
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
324
|
-
} else {
|
325
|
-
styleContainerNode.prepend(styleElm);
|
326
|
-
}
|
327
|
-
}
|
328
|
-
} else {
|
329
|
-
styleContainerNode.append(styleElm);
|
330
|
-
}
|
331
|
-
}
|
332
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
333
|
-
styleContainerNode.insertBefore(styleElm, null);
|
334
|
-
}
|
335
|
-
}
|
336
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
337
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
338
|
-
}
|
339
|
-
if (appliedStyles) {
|
340
|
-
appliedStyles.add(scopeId2);
|
341
|
-
}
|
342
|
-
}
|
343
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
344
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
345
|
-
}
|
346
|
-
}
|
347
|
-
return scopeId2;
|
348
|
-
};
|
349
|
-
var attachStyles = (hostRef) => {
|
350
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
351
|
-
const elm = hostRef.$hostElement$;
|
352
|
-
const flags = cmpMeta.$flags$;
|
353
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
354
|
-
const scopeId2 = addStyle(
|
355
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
356
|
-
cmpMeta);
|
357
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
358
|
-
elm["s-sc"] = scopeId2;
|
359
|
-
elm.classList.add(scopeId2 + "-h");
|
360
|
-
}
|
361
|
-
endAttachStyles();
|
362
|
-
};
|
363
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
364
249
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
365
250
|
if (oldValue !== newValue) {
|
366
251
|
let isProp = isMemberInElement(elm, memberName);
|
@@ -369,6 +254,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
369
254
|
const classList = elm.classList;
|
370
255
|
const oldClasses = parseClassList(oldValue);
|
371
256
|
const newClasses = parseClassList(newValue);
|
257
|
+
if (elm["s-si"] && newClasses.indexOf(elm["s-si"]) < 0) {
|
258
|
+
newClasses.push(elm["s-si"]);
|
259
|
+
}
|
372
260
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
373
261
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
374
262
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
@@ -699,6 +587,121 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
699
587
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
700
588
|
patch(oldVNode, rootVnode, isInitialLoad);
|
701
589
|
};
|
590
|
+
var createTime = (fnName, tagName = "") => {
|
591
|
+
{
|
592
|
+
return () => {
|
593
|
+
return;
|
594
|
+
};
|
595
|
+
}
|
596
|
+
};
|
597
|
+
var uniqueTime = (key, measureText) => {
|
598
|
+
{
|
599
|
+
return () => {
|
600
|
+
return;
|
601
|
+
};
|
602
|
+
}
|
603
|
+
};
|
604
|
+
var parsePropertyValue = (propValue, propType) => {
|
605
|
+
if (propValue != null && !isComplexType(propValue)) {
|
606
|
+
return propValue;
|
607
|
+
}
|
608
|
+
return propValue;
|
609
|
+
};
|
610
|
+
var emitEvent = (elm, name, opts) => {
|
611
|
+
const ev = plt.ce(name, opts);
|
612
|
+
elm.dispatchEvent(ev);
|
613
|
+
return ev;
|
614
|
+
};
|
615
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
616
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
617
|
+
let style = styles.get(scopeId2);
|
618
|
+
if (supportsConstructableStylesheets && allowCS) {
|
619
|
+
style = style || new CSSStyleSheet();
|
620
|
+
if (typeof style === "string") {
|
621
|
+
style = cssText;
|
622
|
+
} else {
|
623
|
+
style.replaceSync(cssText);
|
624
|
+
}
|
625
|
+
} else {
|
626
|
+
style = cssText;
|
627
|
+
}
|
628
|
+
styles.set(scopeId2, style);
|
629
|
+
};
|
630
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
631
|
+
var _a;
|
632
|
+
const scopeId2 = getScopeId(cmpMeta);
|
633
|
+
const style = styles.get(scopeId2);
|
634
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
635
|
+
if (style) {
|
636
|
+
if (typeof style === "string") {
|
637
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
638
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
639
|
+
let styleElm;
|
640
|
+
if (!appliedStyles) {
|
641
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
642
|
+
}
|
643
|
+
if (!appliedStyles.has(scopeId2)) {
|
644
|
+
{
|
645
|
+
styleElm = doc.createElement("style");
|
646
|
+
styleElm.innerHTML = style;
|
647
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
648
|
+
if (nonce != null) {
|
649
|
+
styleElm.setAttribute("nonce", nonce);
|
650
|
+
}
|
651
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
652
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
653
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
654
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
655
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
656
|
+
} else if ("host" in styleContainerNode) {
|
657
|
+
if (supportsConstructableStylesheets) {
|
658
|
+
const stylesheet = new CSSStyleSheet();
|
659
|
+
stylesheet.replaceSync(style);
|
660
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
661
|
+
} else {
|
662
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
663
|
+
if (existingStyleContainer) {
|
664
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
665
|
+
} else {
|
666
|
+
styleContainerNode.prepend(styleElm);
|
667
|
+
}
|
668
|
+
}
|
669
|
+
} else {
|
670
|
+
styleContainerNode.append(styleElm);
|
671
|
+
}
|
672
|
+
}
|
673
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
674
|
+
styleContainerNode.insertBefore(styleElm, null);
|
675
|
+
}
|
676
|
+
}
|
677
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
678
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
679
|
+
}
|
680
|
+
if (appliedStyles) {
|
681
|
+
appliedStyles.add(scopeId2);
|
682
|
+
}
|
683
|
+
}
|
684
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
685
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
686
|
+
}
|
687
|
+
}
|
688
|
+
return scopeId2;
|
689
|
+
};
|
690
|
+
var attachStyles = (hostRef) => {
|
691
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
692
|
+
const elm = hostRef.$hostElement$;
|
693
|
+
const flags = cmpMeta.$flags$;
|
694
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
695
|
+
const scopeId2 = addStyle(
|
696
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
697
|
+
cmpMeta);
|
698
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
699
|
+
elm["s-sc"] = scopeId2;
|
700
|
+
elm.classList.add(scopeId2 + "-h");
|
701
|
+
}
|
702
|
+
endAttachStyles();
|
703
|
+
};
|
704
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
702
705
|
|
703
706
|
// src/runtime/update-component.ts
|
704
707
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
@@ -881,16 +884,62 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
881
884
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
882
885
|
members.map(([memberName, [memberFlags]]) => {
|
883
886
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
887
|
+
if ((memberFlags & 2048 /* Getter */) === 0) {
|
888
|
+
Object.defineProperty(prototype, memberName, {
|
889
|
+
get() {
|
890
|
+
return getValue(this, memberName);
|
891
|
+
},
|
892
|
+
set(newValue) {
|
893
|
+
setValue(this, memberName, newValue, cmpMeta);
|
894
|
+
},
|
895
|
+
configurable: true,
|
896
|
+
enumerable: true
|
897
|
+
});
|
898
|
+
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
|
899
|
+
{
|
900
|
+
Object.defineProperty(prototype, memberName, {
|
901
|
+
get() {
|
902
|
+
const ref = getHostRef(this);
|
903
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
904
|
+
if (!instance) return;
|
905
|
+
return instance[memberName];
|
906
|
+
},
|
907
|
+
configurable: true,
|
908
|
+
enumerable: true
|
909
|
+
});
|
910
|
+
}
|
911
|
+
if (memberFlags & 4096 /* Setter */) {
|
912
|
+
const origSetter = Object.getOwnPropertyDescriptor(prototype, memberName).set;
|
913
|
+
Object.defineProperty(prototype, memberName, {
|
914
|
+
set(newValue) {
|
915
|
+
const ref = getHostRef(this);
|
916
|
+
if (origSetter) {
|
917
|
+
const currentValue = ref.$hostElement$[memberName];
|
918
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
919
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
920
|
+
}
|
921
|
+
origSetter.apply(this, [parsePropertyValue(newValue)]);
|
922
|
+
setValue(this, memberName, ref.$hostElement$[memberName], cmpMeta);
|
923
|
+
return;
|
924
|
+
}
|
925
|
+
if (!ref) return;
|
926
|
+
const setterSetVal = () => {
|
927
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
928
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
929
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
930
|
+
}
|
931
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue);
|
932
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
933
|
+
};
|
934
|
+
if (ref.$lazyInstance$) {
|
935
|
+
setterSetVal();
|
936
|
+
} else {
|
937
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
938
|
+
}
|
939
|
+
}
|
940
|
+
});
|
941
|
+
}
|
942
|
+
}
|
894
943
|
}
|
895
944
|
});
|
896
945
|
if ((flags & 1 /* isElementConstructor */)) {
|
@@ -919,7 +968,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
919
968
|
}
|
920
969
|
return;
|
921
970
|
}
|
922
|
-
|
971
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
972
|
+
if (!propDesc.get || !!propDesc.set) {
|
973
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
974
|
+
}
|
923
975
|
});
|
924
976
|
};
|
925
977
|
Cstr.observedAttributes = Array.from(
|
package/dist/esm/loader.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
2
|
-
export { s as setNonce } from './index-
|
1
|
+
import { b as bootstrapLazy } from './index-9da45881.js';
|
2
|
+
export { s as setNonce } from './index-9da45881.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-
|
2
|
-
export { s as setNonce } from './index-
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-9da45881.js';
|
2
|
+
export { s as setNonce } from './index-9da45881.js';
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
4
4
|
|
5
5
|
/*
|
6
|
-
Stencil Client Patch Browser v4.
|
6
|
+
Stencil Client Patch Browser v4.23.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-
|
1
|
+
import{r as e,h as t}from"./p-83abae2a.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.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))},this.data=[],this.details=void 0,this.fields=[],this.expanded=void 0,this.sort=void 0,this.clicks=0}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),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,d=[],y=[],w=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&a.o?v($):a.raf($))},b=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},$=()=>{b(d),b(y),(m=d.length>0)&&a.raf($)},v=e=>h().then(e),g=w(y,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function O(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:()=>E,map:()=>C,ok:()=>k,unwrap:()=>x,unwrapErr:()=>P});var k=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>k(e))):k(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},A=(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&&!j(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?D(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=D(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=l,u},D=(e,t)=>({o:0,m:e,i:t,$:null,h:null,u:null,p:null}),H={},L=(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=T(n),s=T(o);e["s-si"]&&s.indexOf(e["s-si"])<0&&s.push(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=j(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(N);t=t.replace(U,""),n&&a.rel(e,t,n,l),o&&a.ael(e,t,o,l)}}},R=/\s/,T=e=>e?e.split(R):[],N="Capture",U=RegExp(N+"$"),W=(e,t,n)=>{const o=11===t.$.nodeType&&t.$.host?t.$.host:t.$,l=e&&e.u||S,s=t.u||S;for(const e of F(Object.keys(l)))e in s||L(o,e,l[e],void 0,n,t.o);for(const e of F(Object.keys(s)))L(o,e,l[e],s[e],n,t.o)};function F(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var q=!1,G=(e,t,n)=>{const o=t.h[n];let l,s,i=0;if(null!==o.i)l=o.$=f.createTextNode(o.i);else{if(q||(q="svg"===o.m),l=o.$=f.createElementNS(q?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),q&&"foreignObject"===o.m&&(q=!1),W(null,o,q),l.getRootNode().querySelector("body"),o.h)for(i=0;i<o.h.length;++i)s=G(e,o,i),s&&l.appendChild(s);"svg"===o.m?q=!1:"foreignObject"===l.tagName&&(q=!0)}return l["s-hn"]=M,l},V=(e,t,n,o,l,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===M&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=G(null,n,l),i&&(o[l].$=i,J(r,i,t)))},_=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.$;I(t),e&&e.remove()}}},z=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),B=(e,t,n=!1)=>{const o=t.$=e.$,l=e.h,s=t.h,i=t.m,r=t.i;null===r?(W(e,t,q="svg"===i||"foreignObject"!==i&&q),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],p=t[a],m=o.length-1,d=o[0],y=o[m];for(;r<=a&&c<=m;)if(null==h)h=t[++r];else if(null==p)p=t[--a];else if(null==d)d=o[++c];else if(null==y)y=o[--m];else if(z(h,d,l))B(h,d,l),h=t[++r],d=o[++c];else if(z(p,y,l))B(p,y,l),p=t[--a],y=o[--m];else if(z(h,y,l))B(h,y,l),J(e,h.$,p.$.nextSibling),h=t[++r],y=o[--m];else if(z(p,d,l))B(p,d,l),J(e,p.$,h.$),p=t[--a],d=o[++c];else{for(u=-1,f=r;f<=a;++f)if(t[f]&&null!==t[f].p&&t[f].p===d.p){u=f;break}u>=0?(i=t[u],i.m!==d.m?s=G(t&&t[c],n,u):(B(i,d,l),t[u]=void 0,s=i.$),d=o[++c]):(s=G(t&&t[c],n,c),d=o[++c]),s&&J(h.$.parentNode,s,h.$)}r>a?V(e,null==o[m+1]?null:o[m+1].$,n,o,c,m):c>m&&_(t,r,a)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),V(o,null,t,s,0,s.length-1)):!n&&null!==l&&_(l,0,l.length-1),q&&"svg"===i&&(q=!1)):e.i!==r&&(o.data=r)},I=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(I)},J=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),K=e=>(null==e||j(e),e),Q=new WeakMap,X=e=>"sc-"+e.v,Y=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},Z=(e,t)=>{if(e.o|=16,!(4&e.o))return Y(e,e.j),g((()=>ee(e,t)));e.o|=512},ee=(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=re(n,"componentWillLoad")),te(o,(()=>oe(e,n,t)))},te=(e,t)=>ne(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ne=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,oe=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=X(t),l=r.get(o);if(e=11===e.nodeType?e:f,l)if("string"==typeof l){let s,i=Q.get(e=e.head||e);if(i||Q.set(e,i=new Set),!i.has(o)){{s=f.createElement("style"),s.innerHTML=l;const o=null!=(n=a.k)?n:O(f);if(null!=o&&s.setAttribute("nonce",o),!(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(p){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);le(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>se(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},le=(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||D(null,null),i=(e=>e&&e.m===H)(t)?t:A(null,null,t);if(M=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.$=s.$=o.shadowRoot||o,B(s,i,n)})(e,t,o)}catch(t){s(t,e.$hostElement$)}return null},se=e=>{const t=e.$hostElement$,n=e.t,o=e.j;64&e.o||(e.o|=64,ce(t),re(n,"componentDidLoad"),e.M(t),o||ie()),e.S&&(e.S(),e.S=void 0),512&e.o&&v((()=>Z(e,!1))),e.o&=-517},ie=()=>{ce(f.documentElement),v((()=>(e=>{const t=a.ce("appload",{detail:{namespace:"proto-table-wc"}});return e.dispatchEvent(t),t})(u)))},re=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ce=e=>e.classList.add("hydrated"),ue=(e,t,o,l)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${l.v}" 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=K(o),8&r&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.P.set(t,o),c&&2==(18&r)&&Z(s,!1))},fe=(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,K(l)),void ue(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]=K(l),ue(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){ue(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},ae=(e,o={})=>{var l;const h=[],m=o.exclude||[],d=u.customElements,y=f.head,w=y.querySelector("meta[charset]"),b=f.createElement("style"),$=[];let v,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],v:o[1],A:o[2],L:o[3]};4&l.o&&(S=!0),l.A=o[2];const c=l.v,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.v}! 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),v&&(clearTimeout(v),v=null),g?$.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"]){Y(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.R){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.R;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.v}#${t.T}" was not found`);o.isProxied||(fe(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=X(n);if(!r.has(t)){const o=()=>{};((e,t,n)=>{let o=r.get(e);p&&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=()=>Z(t,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(e,t,o)}l()}})(this)))}disconnectedCallback(){a.jmp((()=>(async()=>{if(!(1&a.o)){const e=n(this);(null==e?void 0:e.t)||(null==e?void 0:e.D)&&e.D.then((()=>{}))}})()))}componentOnReady(){return n(this).D}};l.R=e[0],m.includes(c)||d.get(c)||(h.push(c),d.define(c,fe(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:O(f);null!=e&&b.setAttribute("nonce",e),y.insertBefore(b,w?w.nextSibling:y.firstChild)}g=!1,$.length?$.map((e=>e.connectedCallback())):a.jmp((()=>v=setTimeout(ie,30)))},he=e=>a.k=e;export{ae as b,A as h,h as p,o as r,he as s}
|
@@ -1 +1 @@
|
|
1
|
-
import{p as
|
1
|
+
import{p as a,b as e}from"./p-83abae2a.js";export{s as setNonce}from"./p-83abae2a.js";import{g as t}from"./p-e1255160.js";(()=>{const e=import.meta.url,s={};return""!==e&&(s.resourcesUrl=new URL(".",e).href),a(s)})().then((async a=>(await t(),e([["p-538a6225",[[1,"demo-table"],[0,"proto-table",{data:[16],details:[8],fields:[16],expanded:[32],sort:[32],clicks:[32]}]]]],a))));
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "proto-table-wc",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.568",
|
4
4
|
"description": "Stencil Component Starter",
|
5
5
|
"main": "dist/index.cjs.js",
|
6
6
|
"module": "dist/index.js",
|
@@ -25,7 +25,7 @@
|
|
25
25
|
"format": "prettier --write src"
|
26
26
|
},
|
27
27
|
"dependencies": {
|
28
|
-
"@stencil/core": "4.
|
28
|
+
"@stencil/core": "4.23.0"
|
29
29
|
},
|
30
30
|
"devDependencies": {
|
31
31
|
"cspell": "8.16.1",
|
@@ -1,2 +0,0 @@
|
|
1
|
-
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,d=[],y=[],w=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&f.l?v(b):f.raf(b))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{$(d),$(y),(m=d.length>0)&&f.raf(b)},v=e=>h().then(e),g=w(y,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function O(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>k,unwrap:()=>x,unwrapErr:()=>P});var k=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>k(e))):k(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},A=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!j(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?D(null,l):l),r=s)};if(c(n),t){t.key&&(o=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=D(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},D=(e,t)=>({l:0,m:e,i:t,$:null,h:null,u:null,p:null}),H={},L=new WeakMap,R=e=>"sc-"+e.v,T=(e,t,n,l,s,r)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=U(n),s=U(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((i||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(t,o))}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(W);t=t.replace(F,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},N=/\s/,U=e=>e?e.split(N):[],W="Capture",F=RegExp(W+"$"),q=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||S,s=t.u||S;for(const e of G(Object.keys(o)))e in s||T(l,e,o[e],void 0,n,t.l);for(const e of G(Object.keys(s)))T(l,e,o[e],s[e],n,t.l)};function G(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var V=!1,_=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.$=a.createTextNode(l.i);else{if(V||(V="svg"===l.m),o=l.$=a.createElementNS(V?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.m),V&&"foreignObject"===l.m&&(V=!1),q(null,l,V),o.getRootNode().querySelector("body"),l.h)for(r=0;r<l.h.length;++r)s=_(e,l,r),s&&o.appendChild(s);"svg"===l.m?V=!1:"foreignObject"===o.tagName&&(V=!0)}return o["s-hn"]=M,o},z=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===M&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=_(null,n,o),r&&(l[o].$=r,Q(i,r,t)))},B=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;K(t),e&&e.remove()}}},I=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),J=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,r=t.m,i=t.i;null===i?(q(e,t,V="svg"===r||"foreignObject"!==r&&V),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],p=t[f],m=l.length-1,d=l[0],y=l[m];for(;i<=f&&c<=m;)if(null==h)h=t[++i];else if(null==p)p=t[--f];else if(null==d)d=l[++c];else if(null==y)y=l[--m];else if(I(h,d,o))J(h,d,o),h=t[++i],d=l[++c];else if(I(p,y,o))J(p,y,o),p=t[--f],y=l[--m];else if(I(h,y,o))J(h,y,o),Q(e,h.$,p.$.nextSibling),h=t[++i],y=l[--m];else if(I(p,d,o))J(p,d,o),Q(e,p.$,h.$),p=t[--f],d=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===d.p){u=a;break}u>=0?(r=t[u],r.m!==d.m?s=_(t&&t[c],n,u):(J(r,d,o),t[u]=void 0,s=r.$),d=l[++c]):(s=_(t&&t[c],n,c),d=l[++c]),s&&Q(h.$.parentNode,s,h.$)}i>f?z(e,null==l[m+1]?null:l[m+1].$,n,l,c,m):c>m&&B(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),z(l,null,t,s,0,s.length-1)):!n&&null!==o&&B(o,0,o.length-1),V&&"svg"===r&&(V=!1)):e.i!==i&&(l.data=i)},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)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},Y=(e,t)=>{if(e.l|=16,!(4&e.l))return X(e,e.j),g((()=>Z(e,t)));e.l|=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 l;return t&&(l=re(n,"componentWillLoad")),ee(l,(()=>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 l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=R(t),o=i.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,r=L.get(e=e.head||e);if(r||L.set(e,r=new Set),!r.has(l)){{s=a.createElement("style"),s.innerHTML=o;const l=null!=(n=f.k)?n:O(a);if(null!=l&&s.setAttribute("nonce",l),!(1&t.l))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(p){const t=new CSSStyleSheet;t.replaceSync(o),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=o+t.innerHTML:e.prepend(s)}else e.append(s);1&t.l&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.l&&(s.innerHTML+=c),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&2&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);le(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>oe(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},le=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.O,s=e.C||D(null,null),r=(e=>e&&e.m===H)(t)?t:A(null,null,t);if(M=l.tagName,n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.m=null,r.l|=4,e.C=r,r.$=s.$=l.shadowRoot||l,J(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},oe=e=>{const t=e.$hostElement$,n=e.t,l=e.j;64&e.l||(e.l|=64,ie(t),re(n,"componentDidLoad"),e.M(t),l||se()),e.S&&(e.S(),e.S=void 0),512&e.l&&v((()=>Y(e,!1))),e.l&=-517},se=()=>{ie(a.documentElement),v((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"proto-table-wc"}});return e.dispatchEvent(t),t})(u)))},re=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ie=e=>e.classList.add("hydrated"),ce=(e,t,l)=>{var o,s;const r=e.prototype;if(t.P){const i=Object.entries(null!=(o=t.P)?o:{});if(i.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(r,e,{get(){return((e,t)=>n(this).A.get(t))(0,e)},set(l){((e,t,l,o)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${o.v}" 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 r=s.A.get(t),i=s.l,c=s.t;l=(e=>(null==e||j(e),e))(l),8&i&&void 0!==r||l===r||Number.isNaN(r)&&Number.isNaN(l)||(s.A.set(t,l),c&&2==(18&i)&&Y(s,!1))})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;r.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var i;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),r=null==l?void 0:l.l;if(r&&!(8&r)&&128&r&&s!==o){const n=l.t,r=null==(i=t.D)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.D)?s:{}),...i.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return l.set(n,e),n}))]))}}return e},ue=(e,l={})=>{var o;const h=[],m=l.exclude||[],d=u.customElements,y=a.head,w=y.querySelector("meta[charset]"),$=a.createElement("style"),b=[];let v,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{const o={l:l[0],v:l[1],P:l[2],H:l[3]};4&o.l&&(S=!0),o.P=l[2];const c=o.v,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,O:n,A:new Map};l.L=new Promise((e=>l.M=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,o),1&o.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.v}! 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),v&&(clearTimeout(v),v=null),g?b.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.O,o=()=>{};if(1&t.l)(null==t?void 0:t.t)||(null==t?void 0:t.L)&&t.L.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){X(t,t.j=n);break}}l.P&&Object.entries(l.P).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.R){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.R;if(!n)return;const l=r.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.v}#${t.T}" was not found`);l.isProxied||(ce(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,o()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=R(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);p&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>Y(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);(null==e?void 0:e.t)||(null==e?void 0:e.L)&&e.L.then((()=>{}))}})()))}componentOnReady(){return n(this).L}};o.R=e[0],m.includes(c)||d.get(c)||(h.push(c),d.define(c,ce(u,o,1)))}))})),h.length>0&&(S&&($.textContent+=c),$.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",$.innerHTML.length)){$.setAttribute("data-styles","");const e=null!=(o=f.k)?o:O(a);null!=e&&$.setAttribute("nonce",e),y.insertBefore($,w?w.nextSibling:y.firstChild)}g=!1,b.length?b.map((e=>e.connectedCallback())):f.jmp((()=>v=setTimeout(se,30)))},ae=e=>f.k=e;export{ue as b,A as h,h as p,l as r,ae as s}
|