proto-table-wc 0.0.571 → 0.0.572
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 +7 -7
- package/dist/cjs/{index-24b40585.js → index-000a9d22.js} +41 -31
- 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 -6
- package/dist/esm/demo-table_2.entry.js +7 -7
- package/dist/esm/{index-9da45881.js → index-575c46e6.js} +41 -31
- package/dist/esm/loader.js +2 -2
- package/dist/esm/proto-table-wc.js +3 -3
- package/dist/proto-table-wc/{p-538a6225.entry.js → p-0cd120b7.entry.js} +1 -1
- package/dist/proto-table-wc/p-bc866172.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-83abae2a.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-000a9d22.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;
|
@@ -105,6 +105,12 @@ const aliasFor = name => {
|
|
105
105
|
const ProtoTable = class {
|
106
106
|
constructor(hostRef) {
|
107
107
|
index.registerInstance(this, hostRef);
|
108
|
+
this.data = [];
|
109
|
+
this.details = undefined;
|
110
|
+
this.fields = [];
|
111
|
+
this.expanded = undefined;
|
112
|
+
this.sort = undefined;
|
113
|
+
this.clicks = 0;
|
108
114
|
this.protoIcon = (name, hex = undefined, size = 24) => {
|
109
115
|
const path = iconPaths[name];
|
110
116
|
return (index.h("svg", { width: size, height: size, viewBox: "0 0 24 24", role: "img", "aria-labelledby": "title" }, index.h("title", null, aliasFor(name)), index.h("g", { fill: hex }, index.h("path", { d: path })), index.h("path", { d: "M0 0h24v24H0z", fill: "none" })));
|
@@ -153,12 +159,6 @@ const ProtoTable = class {
|
|
153
159
|
return (index.h("div", { class: cellClass, onClick: this.handleCellClick(index$1, row) }, index$1 === 0 && this.details ? protoIcon(this.expanded === row ? 'down' : 'right') : protoIcon('pad'), data[prop]));
|
154
160
|
})), this.details && this.expanded === row && this.details(data)));
|
155
161
|
};
|
156
|
-
this.data = [];
|
157
|
-
this.details = undefined;
|
158
|
-
this.fields = [];
|
159
|
-
this.expanded = undefined;
|
160
|
-
this.sort = undefined;
|
161
|
-
this.clicks = 0;
|
162
162
|
}
|
163
163
|
render() {
|
164
164
|
const items = this.data || [];
|
@@ -21,19 +21,28 @@ function _interopNamespace(e) {
|
|
21
21
|
}
|
22
22
|
|
23
23
|
const NAMESPACE = 'proto-table-wc';
|
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 };
|
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.
|
27
|
+
Stencil Client Platform v4.23.1 | MIT Licensed | https://stenciljs.com
|
28
28
|
*/
|
29
29
|
var __defProp = Object.defineProperty;
|
30
30
|
var __export = (target, all) => {
|
31
31
|
for (var name in all)
|
32
32
|
__defProp(target, name, { get: all[name], enumerable: true });
|
33
33
|
};
|
34
|
+
|
35
|
+
// src/utils/constants.ts
|
36
|
+
var EMPTY_OBJ = {};
|
37
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
38
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
39
|
+
|
40
|
+
// src/client/client-host-ref.ts
|
34
41
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
35
42
|
var getHostRef = (ref) => hostRefs.get(ref);
|
36
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
43
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
44
|
+
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
45
|
+
};
|
37
46
|
var registerHost = (hostElement, cmpMeta) => {
|
38
47
|
const hostRef = {
|
39
48
|
$flags$: 0,
|
@@ -46,7 +55,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
46
55
|
hostElement["s-p"] = [];
|
47
56
|
hostElement["s-rc"] = [];
|
48
57
|
}
|
49
|
-
|
58
|
+
const ref = hostRefs.set(hostElement, hostRef);
|
59
|
+
return ref;
|
50
60
|
};
|
51
61
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
52
62
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
@@ -80,6 +90,7 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
80
90
|
|
81
91
|
// src/client/client-style.ts
|
82
92
|
var styles = /* @__PURE__ */ new Map();
|
93
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
83
94
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
84
95
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
85
96
|
var win = typeof window !== "undefined" ? window : {};
|
@@ -137,14 +148,6 @@ var flush = () => {
|
|
137
148
|
};
|
138
149
|
var nextTick = (cb) => promiseResolve().then(cb);
|
139
150
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
140
|
-
|
141
|
-
// src/utils/constants.ts
|
142
|
-
var EMPTY_OBJ = {};
|
143
|
-
var SVG_NS = "http://www.w3.org/2000/svg";
|
144
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
145
|
-
|
146
|
-
// src/utils/helpers.ts
|
147
|
-
var isDef = (v) => v != null;
|
148
151
|
var isComplexType = (o) => {
|
149
152
|
o = typeof o;
|
150
153
|
return o === "object" || o === "function";
|
@@ -275,12 +278,19 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
275
278
|
if (memberName === "class") {
|
276
279
|
const classList = elm.classList;
|
277
280
|
const oldClasses = parseClassList(oldValue);
|
278
|
-
|
279
|
-
if (elm["s-si"]
|
281
|
+
let newClasses = parseClassList(newValue);
|
282
|
+
if (elm["s-si"]) {
|
280
283
|
newClasses.push(elm["s-si"]);
|
284
|
+
oldClasses.forEach((c) => {
|
285
|
+
if (c.startsWith(elm["s-si"])) newClasses.push(c);
|
286
|
+
});
|
287
|
+
newClasses = [...new Set(newClasses)];
|
288
|
+
classList.add(...newClasses);
|
289
|
+
delete elm["s-si"];
|
290
|
+
} else {
|
291
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
292
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
281
293
|
}
|
282
|
-
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
283
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
284
294
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
285
295
|
if (newValue) {
|
286
296
|
newValue(elm);
|
@@ -340,7 +350,15 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
340
350
|
}
|
341
351
|
};
|
342
352
|
var parseClassListRegex = /\s/;
|
343
|
-
var parseClassList = (value) =>
|
353
|
+
var parseClassList = (value) => {
|
354
|
+
if (typeof value === "object" && "baseVal" in value) {
|
355
|
+
value = value.baseVal;
|
356
|
+
}
|
357
|
+
if (!value) {
|
358
|
+
return [];
|
359
|
+
}
|
360
|
+
return value.split(parseClassListRegex);
|
361
|
+
};
|
344
362
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
345
363
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
346
364
|
|
@@ -369,13 +387,10 @@ function sortedAttrNames(attrNames) {
|
|
369
387
|
attrNames
|
370
388
|
);
|
371
389
|
}
|
372
|
-
|
373
|
-
// src/runtime/vdom/vdom-render.ts
|
374
|
-
var scopeId;
|
375
390
|
var hostTagName;
|
376
391
|
var useNativeShadowDom = false;
|
377
392
|
var isSvgMode = false;
|
378
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
393
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
379
394
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
380
395
|
let i2 = 0;
|
381
396
|
let elm;
|
@@ -396,11 +411,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
396
411
|
{
|
397
412
|
updateElement(null, newVNode2, isSvgMode);
|
398
413
|
}
|
399
|
-
const rootNode = elm.getRootNode();
|
400
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
401
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
402
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
403
|
-
}
|
404
414
|
if (newVNode2.$children$) {
|
405
415
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
406
416
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
@@ -537,6 +547,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
537
547
|
if (!isInitialRender) {
|
538
548
|
return leftVNode.$key$ === rightVNode.$key$;
|
539
549
|
}
|
550
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
551
|
+
leftVNode.$key$ = rightVNode.$key$;
|
552
|
+
}
|
540
553
|
return true;
|
541
554
|
}
|
542
555
|
return false;
|
@@ -603,9 +616,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
603
616
|
rootVnode.$flags$ |= 4 /* isHost */;
|
604
617
|
hostRef.$vnode$ = rootVnode;
|
605
618
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
606
|
-
{
|
607
|
-
scopeId = hostElm["s-sc"];
|
608
|
-
}
|
609
619
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
610
620
|
patch(oldVNode, rootVnode, isInitialLoad);
|
611
621
|
};
|
@@ -664,7 +674,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
664
674
|
}
|
665
675
|
if (!appliedStyles.has(scopeId2)) {
|
666
676
|
{
|
667
|
-
styleElm = doc.createElement("style");
|
677
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
668
678
|
styleElm.innerHTML = style;
|
669
679
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
670
680
|
if (nonce != null) {
|
@@ -970,7 +980,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
970
980
|
plt.jmp(() => {
|
971
981
|
var _a2;
|
972
982
|
const propName = attrNameToPropName.get(attrName);
|
973
|
-
if (this.hasOwnProperty(propName)) {
|
983
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
974
984
|
newValue = this[propName];
|
975
985
|
delete this[propName];
|
976
986
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
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-000a9d22.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-000a9d22.js');
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
7
7
|
|
8
8
|
/*
|
9
|
-
Stencil Client Patch Browser v4.23.
|
9
|
+
Stencil Client Patch Browser v4.23.1 | 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));
|
@@ -11,6 +11,12 @@ const aliasFor = name => {
|
|
11
11
|
};
|
12
12
|
export class ProtoTable {
|
13
13
|
constructor() {
|
14
|
+
this.data = [];
|
15
|
+
this.details = undefined;
|
16
|
+
this.fields = [];
|
17
|
+
this.expanded = undefined;
|
18
|
+
this.sort = undefined;
|
19
|
+
this.clicks = 0;
|
14
20
|
this.protoIcon = (name, hex = undefined, size = 24) => {
|
15
21
|
const path = iconPaths[name];
|
16
22
|
return (h("svg", { width: size, height: size, viewBox: "0 0 24 24", role: "img", "aria-labelledby": "title" }, h("title", null, aliasFor(name)), h("g", { fill: hex }, h("path", { d: path })), h("path", { d: "M0 0h24v24H0z", fill: "none" })));
|
@@ -59,12 +65,6 @@ export class ProtoTable {
|
|
59
65
|
return (h("div", { class: cellClass, onClick: this.handleCellClick(index, row) }, index === 0 && this.details ? protoIcon(this.expanded === row ? 'down' : 'right') : protoIcon('pad'), data[prop]));
|
60
66
|
})), this.details && this.expanded === row && this.details(data)));
|
61
67
|
};
|
62
|
-
this.data = [];
|
63
|
-
this.details = undefined;
|
64
|
-
this.fields = [];
|
65
|
-
this.expanded = undefined;
|
66
|
-
this.sort = undefined;
|
67
|
-
this.clicks = 0;
|
68
68
|
}
|
69
69
|
render() {
|
70
70
|
const items = this.data || [];
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
1
|
+
import { r as registerInstance, h } from './index-575c46e6.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;
|
@@ -101,6 +101,12 @@ const aliasFor = name => {
|
|
101
101
|
const ProtoTable = class {
|
102
102
|
constructor(hostRef) {
|
103
103
|
registerInstance(this, hostRef);
|
104
|
+
this.data = [];
|
105
|
+
this.details = undefined;
|
106
|
+
this.fields = [];
|
107
|
+
this.expanded = undefined;
|
108
|
+
this.sort = undefined;
|
109
|
+
this.clicks = 0;
|
104
110
|
this.protoIcon = (name, hex = undefined, size = 24) => {
|
105
111
|
const path = iconPaths[name];
|
106
112
|
return (h("svg", { width: size, height: size, viewBox: "0 0 24 24", role: "img", "aria-labelledby": "title" }, h("title", null, aliasFor(name)), h("g", { fill: hex }, h("path", { d: path })), h("path", { d: "M0 0h24v24H0z", fill: "none" })));
|
@@ -149,12 +155,6 @@ const ProtoTable = class {
|
|
149
155
|
return (h("div", { class: cellClass, onClick: this.handleCellClick(index, row) }, index === 0 && this.details ? protoIcon(this.expanded === row ? 'down' : 'right') : protoIcon('pad'), data[prop]));
|
150
156
|
})), this.details && this.expanded === row && this.details(data)));
|
151
157
|
};
|
152
|
-
this.data = [];
|
153
|
-
this.details = undefined;
|
154
|
-
this.fields = [];
|
155
|
-
this.expanded = undefined;
|
156
|
-
this.sort = undefined;
|
157
|
-
this.clicks = 0;
|
158
158
|
}
|
159
159
|
render() {
|
160
160
|
const items = this.data || [];
|
@@ -1,17 +1,26 @@
|
|
1
1
|
const NAMESPACE = 'proto-table-wc';
|
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 };
|
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.
|
5
|
+
Stencil Client Platform v4.23.1 | MIT Licensed | https://stenciljs.com
|
6
6
|
*/
|
7
7
|
var __defProp = Object.defineProperty;
|
8
8
|
var __export = (target, all) => {
|
9
9
|
for (var name in all)
|
10
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
11
11
|
};
|
12
|
+
|
13
|
+
// src/utils/constants.ts
|
14
|
+
var EMPTY_OBJ = {};
|
15
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
16
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
17
|
+
|
18
|
+
// src/client/client-host-ref.ts
|
12
19
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
13
20
|
var getHostRef = (ref) => hostRefs.get(ref);
|
14
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
21
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
22
|
+
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
23
|
+
};
|
15
24
|
var registerHost = (hostElement, cmpMeta) => {
|
16
25
|
const hostRef = {
|
17
26
|
$flags$: 0,
|
@@ -24,7 +33,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
24
33
|
hostElement["s-p"] = [];
|
25
34
|
hostElement["s-rc"] = [];
|
26
35
|
}
|
27
|
-
|
36
|
+
const ref = hostRefs.set(hostElement, hostRef);
|
37
|
+
return ref;
|
28
38
|
};
|
29
39
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
30
40
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
@@ -58,6 +68,7 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
58
68
|
|
59
69
|
// src/client/client-style.ts
|
60
70
|
var styles = /* @__PURE__ */ new Map();
|
71
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
61
72
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
62
73
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
63
74
|
var win = typeof window !== "undefined" ? window : {};
|
@@ -115,14 +126,6 @@ var flush = () => {
|
|
115
126
|
};
|
116
127
|
var nextTick = (cb) => promiseResolve().then(cb);
|
117
128
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
118
|
-
|
119
|
-
// src/utils/constants.ts
|
120
|
-
var EMPTY_OBJ = {};
|
121
|
-
var SVG_NS = "http://www.w3.org/2000/svg";
|
122
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
123
|
-
|
124
|
-
// src/utils/helpers.ts
|
125
|
-
var isDef = (v) => v != null;
|
126
129
|
var isComplexType = (o) => {
|
127
130
|
o = typeof o;
|
128
131
|
return o === "object" || o === "function";
|
@@ -253,12 +256,19 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
253
256
|
if (memberName === "class") {
|
254
257
|
const classList = elm.classList;
|
255
258
|
const oldClasses = parseClassList(oldValue);
|
256
|
-
|
257
|
-
if (elm["s-si"]
|
259
|
+
let newClasses = parseClassList(newValue);
|
260
|
+
if (elm["s-si"]) {
|
258
261
|
newClasses.push(elm["s-si"]);
|
262
|
+
oldClasses.forEach((c) => {
|
263
|
+
if (c.startsWith(elm["s-si"])) newClasses.push(c);
|
264
|
+
});
|
265
|
+
newClasses = [...new Set(newClasses)];
|
266
|
+
classList.add(...newClasses);
|
267
|
+
delete elm["s-si"];
|
268
|
+
} else {
|
269
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
270
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
259
271
|
}
|
260
|
-
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
261
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
262
272
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
263
273
|
if (newValue) {
|
264
274
|
newValue(elm);
|
@@ -318,7 +328,15 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
318
328
|
}
|
319
329
|
};
|
320
330
|
var parseClassListRegex = /\s/;
|
321
|
-
var parseClassList = (value) =>
|
331
|
+
var parseClassList = (value) => {
|
332
|
+
if (typeof value === "object" && "baseVal" in value) {
|
333
|
+
value = value.baseVal;
|
334
|
+
}
|
335
|
+
if (!value) {
|
336
|
+
return [];
|
337
|
+
}
|
338
|
+
return value.split(parseClassListRegex);
|
339
|
+
};
|
322
340
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
323
341
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
324
342
|
|
@@ -347,13 +365,10 @@ function sortedAttrNames(attrNames) {
|
|
347
365
|
attrNames
|
348
366
|
);
|
349
367
|
}
|
350
|
-
|
351
|
-
// src/runtime/vdom/vdom-render.ts
|
352
|
-
var scopeId;
|
353
368
|
var hostTagName;
|
354
369
|
var useNativeShadowDom = false;
|
355
370
|
var isSvgMode = false;
|
356
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
371
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
357
372
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
358
373
|
let i2 = 0;
|
359
374
|
let elm;
|
@@ -374,11 +389,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
374
389
|
{
|
375
390
|
updateElement(null, newVNode2, isSvgMode);
|
376
391
|
}
|
377
|
-
const rootNode = elm.getRootNode();
|
378
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
379
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
380
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
381
|
-
}
|
382
392
|
if (newVNode2.$children$) {
|
383
393
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
384
394
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
@@ -515,6 +525,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
515
525
|
if (!isInitialRender) {
|
516
526
|
return leftVNode.$key$ === rightVNode.$key$;
|
517
527
|
}
|
528
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
529
|
+
leftVNode.$key$ = rightVNode.$key$;
|
530
|
+
}
|
518
531
|
return true;
|
519
532
|
}
|
520
533
|
return false;
|
@@ -581,9 +594,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
581
594
|
rootVnode.$flags$ |= 4 /* isHost */;
|
582
595
|
hostRef.$vnode$ = rootVnode;
|
583
596
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
584
|
-
{
|
585
|
-
scopeId = hostElm["s-sc"];
|
586
|
-
}
|
587
597
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
588
598
|
patch(oldVNode, rootVnode, isInitialLoad);
|
589
599
|
};
|
@@ -642,7 +652,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
642
652
|
}
|
643
653
|
if (!appliedStyles.has(scopeId2)) {
|
644
654
|
{
|
645
|
-
styleElm = doc.createElement("style");
|
655
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
646
656
|
styleElm.innerHTML = style;
|
647
657
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
648
658
|
if (nonce != null) {
|
@@ -948,7 +958,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
948
958
|
plt.jmp(() => {
|
949
959
|
var _a2;
|
950
960
|
const propName = attrNameToPropName.get(attrName);
|
951
|
-
if (this.hasOwnProperty(propName)) {
|
961
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
952
962
|
newValue = this[propName];
|
953
963
|
delete this[propName];
|
954
964
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
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-575c46e6.js';
|
2
|
+
export { s as setNonce } from './index-575c46e6.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-575c46e6.js';
|
2
|
+
export { s as setNonce } from './index-575c46e6.js';
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
4
4
|
|
5
5
|
/*
|
6
|
-
Stencil Client Patch Browser v4.23.
|
6
|
+
Stencil Client Patch Browser v4.23.1 | 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-bc866172.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={},n=new WeakMap,o=e=>n.get(e),l=(e,t)=>{n.set(t.t=e,t)},s=(e,t)=>t in e,i=(e,t)=>(0,console.error)(e,t),r=new Map,c=new Map,u="slot-fb{display:contents}slot-fb[hidden]{display:none}",f="undefined"!=typeof window?window:{},a=f.document||{head:{}},h={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)},p=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,y=[],w=[],b=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&h.o?g(v):h.raf(v))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){i(e)}e.length=0},v=()=>{$(y),$(w),(m=y.length>0)&&h.raf(v)},g=e=>p().then(e),S=b(w,!0),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,l,i)=>{if(n!==o){let r=s(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,l=T(n);let s=T(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 s=j(o);if((r||s&&null!==o)&&!l)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||l)&&!s&&e.setAttribute(t,o=!0===o?"":o)}else if(t="-"===t[2]?t.slice(3):s(f,c)?c.slice(2):c[2]+t.slice(3),n||o){const l=t.endsWith(N);t=t.replace(U,""),n&&h.rel(e,t,n,l),o&&h.ael(e,t,o,l)}}},R=/\s/,T=e=>("object"==typeof e&&"baseVal"in e&&(e=e.baseVal),e?e.split(R):[]),N="Capture",U=RegExp(N+"$"),W=(e,n,o)=>{const l=11===n.$.nodeType&&n.$.host?n.$.host:n.$,s=e&&e.u||t,i=n.u||t;for(const e of F(Object.keys(s)))e in i||L(l,e,s[e],void 0,o,n.o);for(const e of F(Object.keys(i)))L(l,e,s[e],i[e],o,n.o)};function F(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var V=!1,q=(e,t,n)=>{const o=t.h[n];let l,s,i=0;if(null!==o.i)l=o.$=a.createTextNode(o.i);else{if(V||(V="svg"===o.m),l=o.$=a.createElementNS(V?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),V&&"foreignObject"===o.m&&(V=!1),W(null,o,V),o.h)for(i=0;i<o.h.length;++i)s=q(e,o,i),s&&l.appendChild(s);"svg"===o.m?V=!1:"foreignObject"===l.tagName&&(V=!0)}return l["s-hn"]=M,l},G=(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=q(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?(n&&!e.p&&t.p&&(e.p=t.p),!0):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,V="svg"===i||"foreignObject"!==i&&V),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],d=o.length-1,m=o[0],y=o[d];for(;r<=a&&c<=d;)if(null==h)h=t[++r];else if(null==p)p=t[--a];else if(null==m)m=o[++c];else if(null==y)y=o[--d];else if(z(h,m,l))B(h,m,l),h=t[++r],m=o[++c];else if(z(p,y,l))B(p,y,l),p=t[--a],y=o[--d];else if(z(h,y,l))B(h,y,l),J(e,h.$,p.$.nextSibling),h=t[++r],y=o[--d];else if(z(p,m,l))B(p,m,l),J(e,p.$,h.$),p=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=q(t&&t[c],n,u):(B(i,m,l),t[u]=void 0,s=i.$),m=o[++c]):(s=q(t&&t[c],n,c),m=o[++c]),s&&J(h.$.parentNode,s,h.$)}r>a?G(e,null==o[d+1]?null:o[d+1].$,n,o,c,d):c>d&&_(t,r,a)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),G(o,null,t,s,0,s.length-1)):!n&&null!==l&&_(l,0,l.length-1),V&&"svg"===i&&(V=!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),S((()=>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=c.get(o);if(e=11===e.nodeType?e:a,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=document.querySelector(`[sty-id="${o}"]`)||a.createElement("style"),s.innerHTML=l;const i=null!=(n=h.k)?n:O(a);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+=u),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){i(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&&g((()=>Z(e,!1))),e.o&=-517},ie=()=>{ce(a.documentElement),g((()=>(e=>{const t=h.ce("appload",{detail:{namespace:"proto-table-wc"}});return e.dispatchEvent(t),t})(f)))},re=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){i(e)}},ce=e=>e.classList.add("hydrated"),ue=(e,t,n,l)=>{const s=o(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;n=K(n),8&r&&void 0!==i||n===i||Number.isNaN(i)&&Number.isNaN(n)||(s.P.set(t,n),c&&2==(18&r)&&Z(s,!1))},fe=(e,t,n)=>{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&n&&32&l)if(2048&l){if(1&n&&2048&l&&(Object.defineProperty(i,e,{get(){const t=o(this),n=t?t.t:i;if(n)return n[e]},configurable:!0,enumerable:!0}),4096&l)){const n=Object.getOwnPropertyDescriptor(i,e).set;Object.defineProperty(i,e,{set(l){const s=o(this);if(n){const o=s.$hostElement$[e];return!s.P.get(e)&&o&&s.P.set(e,o),n.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)=>o(this).P.get(t))(0,e)},set(n){ue(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const n=new Map;i.attributeChangedCallback=function(e,l,s){h.jmp((()=>{var r;const c=n.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 n=o(this),i=null==n?void 0:n.o;if(i&&!(8&i)&&128&i&&s!==l){const o=n.t,i=null==(r=t.H)?void 0:r[e];null==i||i.forEach((t=>{null!=o[t]&&o[t].call(o,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 o=t[1]||e;return n.set(o,e),o}))]))}}return e},ae=(e,t={})=>{var l;const s=[],p=t.exclude||[],m=f.customElements,y=a.head,w=y.querySelector("meta[charset]"),b=a.createElement("style"),$=[];let v,g=!0;Object.assign(h,t),h.l=new URL(t.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((t=>{const l={o:t[0],v:t[1],A:t[2],L:t[3]};4&l.o&&(S=!0),l.A=t[2];const u=l.v,f=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,t)=>{const o={o:0,$hostElement$:e,O:t,P:new Map};o.D=new Promise((e=>o.M=e)),e["s-p"]=[],e["s-rc"]=[],n.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):h.jmp((()=>(e=>{if(!(1&h.o)){const t=o(e),n=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}}n.A&&Object.entries(n.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=r.get(n);return o?o[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),i)
|
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){i(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(!c.has(t)){const o=()=>{};((e,t,n)=>{let o=c.get(e);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,c.set(e,o)})(t,e,!!(1&n.o)),o()}}}const l=t.j,s=()=>Z(t,!0);l&&l["s-rc"]?l["s-rc"].push(s):s()})(e,t,n)}l()}})(this)))}disconnectedCallback(){h.jmp((()=>(async()=>{if(!(1&h.o)){const e=o(this);(null==e?void 0:e.t)||(null==e?void 0:e.D)&&e.D.then((()=>{}))}})()))}componentOnReady(){return o(this).D}};l.R=e[0],p.includes(u)||m.get(u)||(s.push(u),m.define(u,fe(f,l,1)))}))})),s.length>0&&(S&&(b.textContent+=u),b.textContent+=s.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",b.innerHTML.length)){b.setAttribute("data-styles","");const e=null!=(l=h.k)?l:O(a);null!=e&&b.setAttribute("nonce",e),y.insertBefore(b,w?w.nextSibling:y.firstChild)}g=!1,$.length?$.map((e=>e.connectedCallback())):h.jmp((()=>v=setTimeout(ie,30)))},he=e=>h.k=e;export{ae as b,A as h,p,l as r,he as s}
|
@@ -1 +1 @@
|
|
1
|
-
import{p as
|
1
|
+
import{p as t,b as a}from"./p-bc866172.js";export{s as setNonce}from"./p-bc866172.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-0cd120b7",[[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.
|
3
|
+
"version": "0.0.572",
|
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.23.
|
28
|
+
"@stencil/core": "4.23.1"
|
29
29
|
},
|
30
30
|
"devDependencies": {
|
31
31
|
"cspell": "8.17.1",
|
@@ -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),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}
|