proto-table-wc 0.1.2 → 0.1.3
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-f8ff8f37.js → index-daed8e36.js} +97 -75
- 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/esm/demo-table_2.entry.js +1 -1
- package/dist/esm/{index-b5b3273e.js → index-6ef5a820.js} +97 -75
- package/dist/esm/loader.js +2 -2
- package/dist/esm/proto-table-wc.js +3 -3
- package/dist/proto-table-wc/{p-1e563194.entry.js → p-7976c102.entry.js} +1 -1
- package/dist/proto-table-wc/p-d70093be.js +2 -0
- package/dist/proto-table-wc/proto-table-wc.esm.js +1 -1
- package/package.json +4 -4
- package/dist/proto-table-wc/p-8ea71cc7.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-daed8e36.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;
|
@@ -21,10 +21,10 @@ 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,
|
24
|
+
const BUILD = /* proto-table-wc */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: 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.
|
27
|
+
Stencil Client Platform v4.27.0 | MIT Licensed | https://stenciljs.com
|
28
28
|
*/
|
29
29
|
var __defProp = Object.defineProperty;
|
30
30
|
var __export = (target, all) => {
|
@@ -37,10 +37,15 @@ var SVG_NS = "http://www.w3.org/2000/svg";
|
|
37
37
|
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
38
38
|
|
39
39
|
// src/client/client-host-ref.ts
|
40
|
-
var
|
41
|
-
|
40
|
+
var getHostRef = (ref) => {
|
41
|
+
if (ref.__stencil__getHostRef) {
|
42
|
+
return ref.__stencil__getHostRef();
|
43
|
+
}
|
44
|
+
return void 0;
|
45
|
+
};
|
42
46
|
var registerInstance = (lazyInstance, hostRef) => {
|
43
|
-
|
47
|
+
lazyInstance.__stencil__getHostRef = () => hostRef;
|
48
|
+
hostRef.$lazyInstance$ = lazyInstance;
|
44
49
|
};
|
45
50
|
var registerHost = (hostElement, cmpMeta) => {
|
46
51
|
const hostRef = {
|
@@ -54,7 +59,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
54
59
|
hostElement["s-p"] = [];
|
55
60
|
hostElement["s-rc"] = [];
|
56
61
|
}
|
57
|
-
const ref =
|
62
|
+
const ref = hostRef;
|
63
|
+
hostElement.__stencil__getHostRef = () => ref;
|
58
64
|
return ref;
|
59
65
|
};
|
60
66
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
@@ -394,72 +400,73 @@ var attachStyles = (hostRef) => {
|
|
394
400
|
};
|
395
401
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
396
402
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
397
|
-
if (oldValue
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
403
|
+
if (oldValue === newValue) {
|
404
|
+
return;
|
405
|
+
}
|
406
|
+
let isProp = isMemberInElement(elm, memberName);
|
407
|
+
let ln = memberName.toLowerCase();
|
408
|
+
if (memberName === "class") {
|
409
|
+
const classList = elm.classList;
|
410
|
+
const oldClasses = parseClassList(oldValue);
|
411
|
+
let newClasses = parseClassList(newValue);
|
412
|
+
{
|
413
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
414
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
415
|
+
}
|
416
|
+
} else if (memberName === "key") ; else if (memberName === "ref") {
|
417
|
+
if (newValue) {
|
418
|
+
newValue(elm);
|
419
|
+
}
|
420
|
+
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
421
|
+
if (memberName[2] === "-") {
|
422
|
+
memberName = memberName.slice(3);
|
423
|
+
} else if (isMemberInElement(win, ln)) {
|
424
|
+
memberName = ln.slice(2);
|
425
|
+
} else {
|
426
|
+
memberName = ln[2] + memberName.slice(3);
|
427
|
+
}
|
428
|
+
if (oldValue || newValue) {
|
429
|
+
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
430
|
+
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
431
|
+
if (oldValue) {
|
432
|
+
plt.rel(elm, memberName, oldValue, capture);
|
407
433
|
}
|
408
|
-
} else if (memberName === "key") ; else if (memberName === "ref") {
|
409
434
|
if (newValue) {
|
410
|
-
|
435
|
+
plt.ael(elm, memberName, newValue, capture);
|
411
436
|
}
|
412
|
-
}
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
if (newValue) {
|
427
|
-
plt.ael(elm, memberName, newValue, capture);
|
428
|
-
}
|
429
|
-
}
|
430
|
-
} else {
|
431
|
-
const isComplex = isComplexType(newValue);
|
432
|
-
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
433
|
-
try {
|
434
|
-
if (!elm.tagName.includes("-")) {
|
435
|
-
const n = newValue == null ? "" : newValue;
|
436
|
-
if (memberName === "list") {
|
437
|
-
isProp = false;
|
438
|
-
} else if (oldValue == null || elm[memberName] != n) {
|
439
|
-
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
440
|
-
elm[memberName] = n;
|
441
|
-
} else {
|
442
|
-
elm.setAttribute(memberName, n);
|
443
|
-
}
|
437
|
+
}
|
438
|
+
} else {
|
439
|
+
const isComplex = isComplexType(newValue);
|
440
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
441
|
+
try {
|
442
|
+
if (!elm.tagName.includes("-")) {
|
443
|
+
const n = newValue == null ? "" : newValue;
|
444
|
+
if (memberName === "list") {
|
445
|
+
isProp = false;
|
446
|
+
} else if (oldValue == null || elm[memberName] != n) {
|
447
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
448
|
+
elm[memberName] = n;
|
449
|
+
} else {
|
450
|
+
elm.setAttribute(memberName, n);
|
444
451
|
}
|
445
|
-
} else if (elm[memberName] !== newValue) {
|
446
|
-
elm[memberName] = newValue;
|
447
452
|
}
|
448
|
-
}
|
453
|
+
} else if (elm[memberName] !== newValue) {
|
454
|
+
elm[memberName] = newValue;
|
449
455
|
}
|
456
|
+
} catch (e) {
|
450
457
|
}
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
elm.removeAttribute(memberName);
|
455
|
-
}
|
456
|
-
}
|
457
|
-
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
458
|
-
newValue = newValue === true ? "" : newValue;
|
458
|
+
}
|
459
|
+
if (newValue == null || newValue === false) {
|
460
|
+
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
459
461
|
{
|
460
|
-
elm.
|
462
|
+
elm.removeAttribute(memberName);
|
461
463
|
}
|
462
464
|
}
|
465
|
+
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
|
466
|
+
newValue = newValue === true ? "" : newValue;
|
467
|
+
{
|
468
|
+
elm.setAttribute(memberName, newValue);
|
469
|
+
}
|
463
470
|
}
|
464
471
|
}
|
465
472
|
};
|
@@ -691,9 +698,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
691
698
|
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
692
699
|
}
|
693
700
|
{
|
694
|
-
|
695
|
-
updateElement(oldVNode, newVNode2, isSvgMode);
|
696
|
-
}
|
701
|
+
updateElement(oldVNode, newVNode2, isSvgMode);
|
697
702
|
}
|
698
703
|
if (oldChildren !== null && newChildren !== null) {
|
699
704
|
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
@@ -783,10 +788,11 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
783
788
|
}
|
784
789
|
let maybePromise;
|
785
790
|
if (isInitialLoad) {
|
786
|
-
|
787
|
-
|
788
|
-
|
791
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
792
|
+
} else {
|
793
|
+
maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
|
789
794
|
}
|
795
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
790
796
|
endSchedule();
|
791
797
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
792
798
|
};
|
@@ -852,14 +858,13 @@ var postUpdateComponent = (hostRef) => {
|
|
852
858
|
const endPostUpdate = createTime("postUpdate", tagName);
|
853
859
|
const instance = hostRef.$lazyInstance$ ;
|
854
860
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
861
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
855
862
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
856
863
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
857
864
|
{
|
858
865
|
addHydratedFlag(elm);
|
859
866
|
}
|
860
|
-
|
861
|
-
safeCall(instance, "componentDidLoad", void 0, elm);
|
862
|
-
}
|
867
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
863
868
|
endPostUpdate();
|
864
869
|
{
|
865
870
|
hostRef.$onReadyResolve$(elm);
|
@@ -868,6 +873,7 @@ var postUpdateComponent = (hostRef) => {
|
|
868
873
|
}
|
869
874
|
}
|
870
875
|
} else {
|
876
|
+
safeCall(instance, "componentDidUpdate", void 0, elm);
|
871
877
|
endPostUpdate();
|
872
878
|
}
|
873
879
|
{
|
@@ -918,6 +924,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
918
924
|
hostRef.$instanceValues$.set(propName, newVal);
|
919
925
|
if (instance) {
|
920
926
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
927
|
+
if (instance.componentShouldUpdate) {
|
928
|
+
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
929
|
+
return;
|
930
|
+
}
|
931
|
+
}
|
921
932
|
scheduleUpdate(hostRef, false);
|
922
933
|
}
|
923
934
|
}
|
@@ -1080,6 +1091,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1080
1091
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
1081
1092
|
}
|
1082
1093
|
endNewInstance();
|
1094
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
1083
1095
|
} else {
|
1084
1096
|
Cstr = elm.constructor;
|
1085
1097
|
const cmpTag = elm.localName;
|
@@ -1107,6 +1119,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1107
1119
|
}
|
1108
1120
|
};
|
1109
1121
|
var fireConnectedCallback = (instance, elm) => {
|
1122
|
+
{
|
1123
|
+
safeCall(instance, "connectedCallback", void 0, elm);
|
1124
|
+
}
|
1110
1125
|
};
|
1111
1126
|
|
1112
1127
|
// src/runtime/connected-callback.ts
|
@@ -1139,20 +1154,27 @@ var connectedCallback = (elm) => {
|
|
1139
1154
|
initializeComponent(elm, hostRef, cmpMeta);
|
1140
1155
|
}
|
1141
1156
|
} else {
|
1142
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
1143
|
-
hostRef.$
|
1157
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
1158
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
1159
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
1160
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
1144
1161
|
}
|
1145
1162
|
}
|
1146
1163
|
endConnected();
|
1147
1164
|
}
|
1148
1165
|
};
|
1149
1166
|
var disconnectInstance = (instance, elm) => {
|
1167
|
+
{
|
1168
|
+
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
1169
|
+
}
|
1150
1170
|
};
|
1151
1171
|
var disconnectedCallback = async (elm) => {
|
1152
1172
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
1153
1173
|
const hostRef = getHostRef(elm);
|
1154
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
1155
|
-
hostRef.$
|
1174
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
1175
|
+
disconnectInstance(hostRef.$lazyInstance$, elm);
|
1176
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
1177
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
1156
1178
|
}
|
1157
1179
|
}
|
1158
1180
|
if (rootAppliedStyles.has(elm)) {
|
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-daed8e36.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-daed8e36.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.27.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));
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
1
|
+
import { r as registerInstance, h } from './index-6ef5a820.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;
|
@@ -1,8 +1,8 @@
|
|
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,
|
2
|
+
const BUILD = /* proto-table-wc */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: 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.
|
5
|
+
Stencil Client Platform v4.27.0 | MIT Licensed | https://stenciljs.com
|
6
6
|
*/
|
7
7
|
var __defProp = Object.defineProperty;
|
8
8
|
var __export = (target, all) => {
|
@@ -15,10 +15,15 @@ var SVG_NS = "http://www.w3.org/2000/svg";
|
|
15
15
|
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
16
16
|
|
17
17
|
// src/client/client-host-ref.ts
|
18
|
-
var
|
19
|
-
|
18
|
+
var getHostRef = (ref) => {
|
19
|
+
if (ref.__stencil__getHostRef) {
|
20
|
+
return ref.__stencil__getHostRef();
|
21
|
+
}
|
22
|
+
return void 0;
|
23
|
+
};
|
20
24
|
var registerInstance = (lazyInstance, hostRef) => {
|
21
|
-
|
25
|
+
lazyInstance.__stencil__getHostRef = () => hostRef;
|
26
|
+
hostRef.$lazyInstance$ = lazyInstance;
|
22
27
|
};
|
23
28
|
var registerHost = (hostElement, cmpMeta) => {
|
24
29
|
const hostRef = {
|
@@ -32,7 +37,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
32
37
|
hostElement["s-p"] = [];
|
33
38
|
hostElement["s-rc"] = [];
|
34
39
|
}
|
35
|
-
const ref =
|
40
|
+
const ref = hostRef;
|
41
|
+
hostElement.__stencil__getHostRef = () => ref;
|
36
42
|
return ref;
|
37
43
|
};
|
38
44
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
@@ -372,72 +378,73 @@ var attachStyles = (hostRef) => {
|
|
372
378
|
};
|
373
379
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
374
380
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
375
|
-
if (oldValue
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
381
|
+
if (oldValue === newValue) {
|
382
|
+
return;
|
383
|
+
}
|
384
|
+
let isProp = isMemberInElement(elm, memberName);
|
385
|
+
let ln = memberName.toLowerCase();
|
386
|
+
if (memberName === "class") {
|
387
|
+
const classList = elm.classList;
|
388
|
+
const oldClasses = parseClassList(oldValue);
|
389
|
+
let newClasses = parseClassList(newValue);
|
390
|
+
{
|
391
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
392
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
393
|
+
}
|
394
|
+
} else if (memberName === "key") ; else if (memberName === "ref") {
|
395
|
+
if (newValue) {
|
396
|
+
newValue(elm);
|
397
|
+
}
|
398
|
+
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
399
|
+
if (memberName[2] === "-") {
|
400
|
+
memberName = memberName.slice(3);
|
401
|
+
} else if (isMemberInElement(win, ln)) {
|
402
|
+
memberName = ln.slice(2);
|
403
|
+
} else {
|
404
|
+
memberName = ln[2] + memberName.slice(3);
|
405
|
+
}
|
406
|
+
if (oldValue || newValue) {
|
407
|
+
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
408
|
+
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
409
|
+
if (oldValue) {
|
410
|
+
plt.rel(elm, memberName, oldValue, capture);
|
385
411
|
}
|
386
|
-
} else if (memberName === "key") ; else if (memberName === "ref") {
|
387
412
|
if (newValue) {
|
388
|
-
|
413
|
+
plt.ael(elm, memberName, newValue, capture);
|
389
414
|
}
|
390
|
-
}
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
if (newValue) {
|
405
|
-
plt.ael(elm, memberName, newValue, capture);
|
406
|
-
}
|
407
|
-
}
|
408
|
-
} else {
|
409
|
-
const isComplex = isComplexType(newValue);
|
410
|
-
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
411
|
-
try {
|
412
|
-
if (!elm.tagName.includes("-")) {
|
413
|
-
const n = newValue == null ? "" : newValue;
|
414
|
-
if (memberName === "list") {
|
415
|
-
isProp = false;
|
416
|
-
} else if (oldValue == null || elm[memberName] != n) {
|
417
|
-
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
418
|
-
elm[memberName] = n;
|
419
|
-
} else {
|
420
|
-
elm.setAttribute(memberName, n);
|
421
|
-
}
|
415
|
+
}
|
416
|
+
} else {
|
417
|
+
const isComplex = isComplexType(newValue);
|
418
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
419
|
+
try {
|
420
|
+
if (!elm.tagName.includes("-")) {
|
421
|
+
const n = newValue == null ? "" : newValue;
|
422
|
+
if (memberName === "list") {
|
423
|
+
isProp = false;
|
424
|
+
} else if (oldValue == null || elm[memberName] != n) {
|
425
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
426
|
+
elm[memberName] = n;
|
427
|
+
} else {
|
428
|
+
elm.setAttribute(memberName, n);
|
422
429
|
}
|
423
|
-
} else if (elm[memberName] !== newValue) {
|
424
|
-
elm[memberName] = newValue;
|
425
430
|
}
|
426
|
-
}
|
431
|
+
} else if (elm[memberName] !== newValue) {
|
432
|
+
elm[memberName] = newValue;
|
427
433
|
}
|
434
|
+
} catch (e) {
|
428
435
|
}
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
elm.removeAttribute(memberName);
|
433
|
-
}
|
434
|
-
}
|
435
|
-
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
436
|
-
newValue = newValue === true ? "" : newValue;
|
436
|
+
}
|
437
|
+
if (newValue == null || newValue === false) {
|
438
|
+
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
437
439
|
{
|
438
|
-
elm.
|
440
|
+
elm.removeAttribute(memberName);
|
439
441
|
}
|
440
442
|
}
|
443
|
+
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
|
444
|
+
newValue = newValue === true ? "" : newValue;
|
445
|
+
{
|
446
|
+
elm.setAttribute(memberName, newValue);
|
447
|
+
}
|
441
448
|
}
|
442
449
|
}
|
443
450
|
};
|
@@ -669,9 +676,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
669
676
|
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
670
677
|
}
|
671
678
|
{
|
672
|
-
|
673
|
-
updateElement(oldVNode, newVNode2, isSvgMode);
|
674
|
-
}
|
679
|
+
updateElement(oldVNode, newVNode2, isSvgMode);
|
675
680
|
}
|
676
681
|
if (oldChildren !== null && newChildren !== null) {
|
677
682
|
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
@@ -761,10 +766,11 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
761
766
|
}
|
762
767
|
let maybePromise;
|
763
768
|
if (isInitialLoad) {
|
764
|
-
|
765
|
-
|
766
|
-
|
769
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
770
|
+
} else {
|
771
|
+
maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
|
767
772
|
}
|
773
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
768
774
|
endSchedule();
|
769
775
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
770
776
|
};
|
@@ -830,14 +836,13 @@ var postUpdateComponent = (hostRef) => {
|
|
830
836
|
const endPostUpdate = createTime("postUpdate", tagName);
|
831
837
|
const instance = hostRef.$lazyInstance$ ;
|
832
838
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
839
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
833
840
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
834
841
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
835
842
|
{
|
836
843
|
addHydratedFlag(elm);
|
837
844
|
}
|
838
|
-
|
839
|
-
safeCall(instance, "componentDidLoad", void 0, elm);
|
840
|
-
}
|
845
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
841
846
|
endPostUpdate();
|
842
847
|
{
|
843
848
|
hostRef.$onReadyResolve$(elm);
|
@@ -846,6 +851,7 @@ var postUpdateComponent = (hostRef) => {
|
|
846
851
|
}
|
847
852
|
}
|
848
853
|
} else {
|
854
|
+
safeCall(instance, "componentDidUpdate", void 0, elm);
|
849
855
|
endPostUpdate();
|
850
856
|
}
|
851
857
|
{
|
@@ -896,6 +902,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
896
902
|
hostRef.$instanceValues$.set(propName, newVal);
|
897
903
|
if (instance) {
|
898
904
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
905
|
+
if (instance.componentShouldUpdate) {
|
906
|
+
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
907
|
+
return;
|
908
|
+
}
|
909
|
+
}
|
899
910
|
scheduleUpdate(hostRef, false);
|
900
911
|
}
|
901
912
|
}
|
@@ -1058,6 +1069,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1058
1069
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
1059
1070
|
}
|
1060
1071
|
endNewInstance();
|
1072
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
1061
1073
|
} else {
|
1062
1074
|
Cstr = elm.constructor;
|
1063
1075
|
const cmpTag = elm.localName;
|
@@ -1085,6 +1097,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1085
1097
|
}
|
1086
1098
|
};
|
1087
1099
|
var fireConnectedCallback = (instance, elm) => {
|
1100
|
+
{
|
1101
|
+
safeCall(instance, "connectedCallback", void 0, elm);
|
1102
|
+
}
|
1088
1103
|
};
|
1089
1104
|
|
1090
1105
|
// src/runtime/connected-callback.ts
|
@@ -1117,20 +1132,27 @@ var connectedCallback = (elm) => {
|
|
1117
1132
|
initializeComponent(elm, hostRef, cmpMeta);
|
1118
1133
|
}
|
1119
1134
|
} else {
|
1120
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
1121
|
-
hostRef.$
|
1135
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
1136
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
1137
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
1138
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
1122
1139
|
}
|
1123
1140
|
}
|
1124
1141
|
endConnected();
|
1125
1142
|
}
|
1126
1143
|
};
|
1127
1144
|
var disconnectInstance = (instance, elm) => {
|
1145
|
+
{
|
1146
|
+
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
1147
|
+
}
|
1128
1148
|
};
|
1129
1149
|
var disconnectedCallback = async (elm) => {
|
1130
1150
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
1131
1151
|
const hostRef = getHostRef(elm);
|
1132
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
1133
|
-
hostRef.$
|
1152
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
1153
|
+
disconnectInstance(hostRef.$lazyInstance$, elm);
|
1154
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
1155
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
1134
1156
|
}
|
1135
1157
|
}
|
1136
1158
|
if (rootAppliedStyles.has(elm)) {
|
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-6ef5a820.js';
|
2
|
+
export { s as setNonce } from './index-6ef5a820.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-6ef5a820.js';
|
2
|
+
export { s as setNonce } from './index-6ef5a820.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.27.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-d70093be.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=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},n=(e,t)=>{e.__stencil__getHostRef=()=>t,t.t=e},o=(e,t)=>t in e,l=(e,t)=>(0,console.error)(e,t),i=new Map,s=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u=c.document||{head:{}},f={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)},a=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),h=!1,p=[],m=[],v=(e,t)=>n=>{e.push(n),h||(h=!0,t&&4&f.o?b(w):f.raf(w))},y=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){l(e)}e.length=0},w=()=>{y(p),y(m),(h=p.length>0)&&f.raf(w)},b=e=>a().then(e),$=v(m,!0),g=e=>"object"==(e=typeof e)||"function"===e;function S(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:()=>O,map:()=>k,ok:()=>j,unwrap:()=>E,unwrapErr:()=>M});var j=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function k(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>j(e))):j(n)}if(e.isErr)return O(e.value);throw"should never get here"}var C,E=e=>{if(e.isOk)return e.value;throw e.value},M=e=>{if(e.isErr)return e.value;throw e.value},x=(e,t,...n)=>{let o=null,l=null,i=!1,s=!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&&((i="function"!=typeof e&&!g(o))&&(o+=""),i&&s?r[r.length-1].i+=o:r.push(i?P(null,o):o),s=i)};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=P(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=l,u},P=(e,t)=>({o:0,m:e,i:t,v:null,h:null,u:null,p:null}),R={},D=e=>(null==e||g(e),e),U=new WeakMap,A=e=>"sc-"+e.$,L=(e,t,n,l,i,s)=>{if(n===l)return;let r=o(e,t),u=t.toLowerCase();if("class"===t){const t=e.classList,o=T(n);let i=T(l);t.remove(...o.filter((e=>e&&!i.includes(e)))),t.add(...i.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const o=g(l);if((r||o&&null!==l)&&!i)try{if(e.tagName.includes("-"))e[t]!==l&&(e[t]=l);else{const o=null==l?"":l;"list"===t?r=!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):(!r||4&s||i)&&!o&&1===e.nodeType&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(c,u)?u.slice(2):u[2]+t.slice(3),n||l){const o=t.endsWith(W);t=t.replace(H,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}},N=/\s/,T=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(N):[]),W="Capture",H=RegExp(W+"$"),F=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||{},i=t.u||{};for(const e of V(Object.keys(l)))e in i||L(o,e,l[e],void 0,n,t.o);for(const e of V(Object.keys(i)))L(o,e,l[e],i[e],n,t.o)};function V(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,i,s=0;if(null!==o.i)l=o.v=u.createTextNode(o.i);else{if(q||(q="svg"===o.m),l=o.v=u.createElementNS(q?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),q&&"foreignObject"===o.m&&(q=!1),F(null,o,q),o.h)for(s=0;s<o.h.length;++s)i=G(e,o,s),i&&l.appendChild(i);"svg"===o.m?q=!1:"foreignObject"===l.tagName&&(q=!0)}return l["s-hn"]=C,l},_=(e,t,n,o,l,i)=>{let s,r=e;for(r.shadowRoot&&r.tagName===C&&(r=r.shadowRoot);l<=i;++l)o[l]&&(s=G(null,n,l),s&&(o[l].v=s,K(r,s,t)))},z=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;J(t),e&&e.remove()}}},B=(e,t,n=!1)=>e.m===t.m&&(n?(n&&!e.p&&t.p&&(e.p=t.p),!0):e.p===t.p),I=(e,t,n=!1)=>{const o=t.v=e.v,l=e.h,i=t.h,s=t.m,r=t.i;null===r?(F(e,t,q="svg"===s||"foreignObject"!==s&&q),null!==l&&null!==i?((e,t,n,o,l=!1)=>{let i,s,r=0,c=0,u=0,f=0,a=t.length-1,d=t[0],h=t[a],p=o.length-1,m=o[0],v=o[p];for(;r<=a&&c<=p;)if(null==d)d=t[++r];else if(null==h)h=t[--a];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(B(d,m,l))I(d,m,l),d=t[++r],m=o[++c];else if(B(h,v,l))I(h,v,l),h=t[--a],v=o[--p];else if(B(d,v,l))I(d,v,l),K(e,d.v,h.v.nextSibling),d=t[++r],v=o[--p];else if(B(h,m,l))I(h,m,l),K(e,h.v,d.v),h=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?(s=t[u],s.m!==m.m?i=G(t&&t[c],n,u):(I(s,m,l),t[u]=void 0,i=s.v),m=o[++c]):(i=G(t&&t[c],n,c),m=o[++c]),i&&K(d.v.parentNode,i,d.v)}r>a?_(e,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&z(t,r,a)})(o,l,t,i,n):null!==i?(null!==e.i&&(o.textContent=""),_(o,null,t,i,0,i.length-1)):!n&&null!==l&&z(l,0,l.length-1),q&&"svg"===s&&(q=!1)):e.i!==r&&(o.data=r)},J=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(J)},K=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),Q=(e,t)=>{if(t&&!e.S&&t["s-p"]){const n=t["s-p"].push(new Promise((o=>e.S=()=>{t["s-p"].splice(n-1,1),o()})))}},X=(e,t)=>{if(e.o|=16,!(4&e.o))return Q(e,e.j),$((()=>Y(e,t)));e.o|=512},Y=(e,t)=>{const n=e.$hostElement$,o=e.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return l=ie(o,t?"componentWillLoad":"componentWillUpdate",void 0,n),l=Z(l,(()=>ie(o,"componentWillRender",void 0,n))),Z(l,(()=>te(e,o,t)))},Z=(e,t)=>ee(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ee=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,te=async(e,t,n)=>{var o;const l=e.$hostElement$,i=l["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=A(t),l=s.get(o);if(e=11===e.nodeType?e:u,l)if("string"==typeof l){let i,s=U.get(e=e.head||e);if(s||U.set(e,s=new Set),!s.has(o)){{i=document.querySelector(`[sty-id="${o}"]`)||u.createElement("style"),i.innerHTML=l;const s=null!=(n=f.k)?n:S(u);if(null!=s&&i.setAttribute("nonce",s),!(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(i,(null==n?void 0:n.parentNode)===e?n:null)}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(i)}else e.append(i);1&t.o&&e.insertBefore(i,null)}4&t.o&&(i.innerHTML+=r),s&&s.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||128&o)&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);ne(e,t,l,n),i&&(i.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>oe(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},ne=(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,i=e.C||P(null,null),s=(e=>e&&e.m===R)(t)?t:x(null,null,t);if(C=o.tagName,n&&s.u)for(const e of Object.keys(s.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(s.u[e]=o[e]);s.m=null,s.o|=4,e.C=s,s.v=i.v=o.shadowRoot||o,I(i,s,n)})(e,t,o)}catch(t){l(t,e.$hostElement$)}return null},oe=e=>{const t=e.$hostElement$,n=e.t,o=e.j;ie(n,"componentDidRender",void 0,t),64&e.o?ie(n,"componentDidUpdate",void 0,t):(e.o|=64,se(t),ie(n,"componentDidLoad",void 0,t),e.M(t),o||le()),e.S&&(e.S(),e.S=void 0),512&e.o&&b((()=>X(e,!1))),e.o&=-517},le=()=>{b((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"proto-table-wc"}});return e.dispatchEvent(t),t})(c)))},ie=(e,t,n,o)=>{if(e&&e[t])try{return e[t](n)}catch(e){l(e,o)}},se=e=>e.classList.add("hydrated"),re=(e,n,o,l)=>{const i=t(e);if(!i)throw Error(`Couldn't find host element for "${l.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const s=i.P.get(n),r=i.o,c=i.t;if(o=D(o),(!(8&r)||void 0===s)&&o!==s&&(!Number.isNaN(s)||!Number.isNaN(o))&&(i.P.set(n,o),c&&2==(18&r))){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(o,s,n))return;X(i,!1)}},ce=(e,n,o)=>{var l,i;const s=e.prototype;if(n.R){const r=Object.entries(null!=(l=n.R)?l:{});if(r.map((([e,[l]])=>{if(31&l||2&o&&32&l){const{get:i,set:r}=Object.getOwnPropertyDescriptor(s,e)||{};i&&(n.R[e][0]|=2048),r&&(n.R[e][0]|=4096),(1&o||!i)&&Object.defineProperty(s,e,{get(){{if(!(2048&n.R[e][0]))return((e,n)=>t(this).P.get(n))(0,e);const o=t(this),l=o?o.t:s;if(!l)return;return l[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(s,e,{set(i){const s=t(this);if(r){const t=32&l?this[e]:s.$hostElement$[e];return void 0===t&&s.P.get(e)?i=s.P.get(e):!s.P.get(e)&&t&&s.P.set(e,t),r.call(this,D(i)),void re(this,e,i=32&l?this[e]:s.$hostElement$[e],n)}{if(!(1&o&&4096&n.R[e][0]))return re(this,e,i,n),void(1&o&&!s.t&&s.D.then((()=>{4096&n.R[e][0]&&s.t[e]!==s.P.get(e)&&(s.t[e]=i)})));const t=()=>{const t=s.t[e];!s.P.get(e)&&t&&s.P.set(e,t),s.t[e]=D(i),re(this,e,s.t[e],n)};s.t?t():s.D.then((()=>t()))}}})}})),1&o){const o=new Map;s.attributeChangedCallback=function(e,l,i){f.jmp((()=>{var r;const c=o.get(e);if(this.hasOwnProperty(c))i=this[c],delete this[c];else{if(s.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==i)return;if(null==c){const o=t(this),s=null==o?void 0:o.o;if(s&&!(8&s)&&128&s&&i!==l){const t=o.t,s=null==(r=n.U)?void 0:r[e];null==s||s.forEach((n=>{null!=t[n]&&t[n].call(t,i,l,e)}))}return}}const u=Object.getOwnPropertyDescriptor(s,c);(i=(null!==i||"boolean"!=typeof this[c])&&i)===this[c]||u.get&&!u.set||(this[c]=i)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=n.U)?i:{}),...r.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},ue=(e,t)=>{ie(e,"connectedCallback",void 0,t)},fe=(e,t)=>{ie(e,"disconnectedCallback",void 0,t||e)},ae=(e,n={})=>{var o;const a=[],h=n.exclude||[],p=c.customElements,m=u.head,v=m.querySelector("meta[charset]"),y=u.createElement("style"),w=[];let b,$=!0;Object.assign(f,n),f.l=new URL(n.resourcesUrl||"./",u.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((n=>{const o={o:n[0],$:n[1],R:n[2],A:n[3]};4&o.o&&(g=!0),o.R=n[2];const r=o.$,c=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,t)=>{const n={o:0,$hostElement$:e,O:t,P:new Map};n.D=new Promise((e=>n.M=e)),e["s-p"]=[],e["s-rc"]=[];const o=n;e.__stencil__getHostRef=()=>o})(e=this,o),1&o.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.$}! 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),b&&(clearTimeout(b),b=null),$?w.push(this):f.jmp((()=>(e=>{if(!(1&f.o)){const n=t(e),o=n.O,r=()=>{};if(1&n.o)(null==n?void 0:n.t)?ue(n.t,e):(null==n?void 0:n.D)&&n.D.then((()=>ue(n.t,e)));else{n.o|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){Q(n,n.j=t);break}}o.R&&Object.entries(o.R).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.L){const s=((e,t)=>{const n=e.$.replace(/-/g,"_"),o=e.L;if(!o)return;const s=i.get(o);return s?s[n]:import(`./${o}.entry.js`).then((e=>(i.set(o,e),e[n])),(e=>{l(e,t.$hostElement$)}))
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,t);if(s&&"then"in s){const e=()=>{};o=await s,e()}else o=s;if(!o)throw Error(`Constructor for "${n.$}#${t.N}" was not found`);o.isProxied||(ce(o,n,2),o.isProxied=!0);const r=()=>{};t.o|=8;try{new o(t)}catch(t){l(t,e)}t.o&=-9,r(),ue(t.t,e)}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=A(n);if(!s.has(t)){const o=()=>{};((e,t,n)=>{let o=s.get(e);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,s.set(e,o)})(t,e,!!(1&n.o)),o()}}}const r=t.j,c=()=>X(t,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(e,n,o)}r()}})(this)))}disconnectedCallback(){f.jmp((()=>(async e=>{if(!(1&f.o)){const n=t(e);(null==n?void 0:n.t)?fe(n.t,e):(null==n?void 0:n.D)&&n.D.then((()=>fe(n.t,e)))}U.has(e)&&U.delete(e),e.shadowRoot&&U.has(e.shadowRoot)&&U.delete(e.shadowRoot)})(this))),f.raf((()=>{var e;const n=t(this),o=w.findIndex((e=>e===this));o>-1&&w.splice(o,1),(null==(e=null==n?void 0:n.C)?void 0:e.v)instanceof Node&&!n.C.v.isConnected&&delete n.C.v}))}componentOnReady(){return t(this).D}};o.L=e[0],h.includes(r)||p.get(r)||(a.push(r),p.define(r,ce(c,o,1)))}))})),a.length>0&&(g&&(y.textContent+=r),y.textContent+=a.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",y.innerHTML.length)){y.setAttribute("data-styles","");const e=null!=(o=f.k)?o:S(u);null!=e&&y.setAttribute("nonce",e),m.insertBefore(y,v?v.nextSibling:m.firstChild)}$=!1,w.length?w.map((e=>e.connectedCallback())):f.jmp((()=>b=setTimeout(le,30)))},de=e=>f.k=e;export{ae as b,x as h,a as p,n as r,de as s}
|
@@ -1 +1 @@
|
|
1
|
-
import{p as e,b as
|
1
|
+
import{p as e,b as t}from"./p-d70093be.js";export{s as setNonce}from"./p-d70093be.js";import{g as a}from"./p-e1255160.js";(()=>{const s=import.meta.url,t={};return""!==s&&(t.resourcesUrl=new URL(".",s).href),e(t)})().then((async e=>(await a(),t([["p-7976c102",[[1,"demo-table"],[0,"proto-table",{data:[16],details:[8],fields:[16],expanded:[32],sort:[32],clicks:[32]}]]]],e))));
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "proto-table-wc",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.3",
|
4
4
|
"description": "Stencil Component Starter",
|
5
5
|
"main": "dist/index.cjs.js",
|
6
6
|
"module": "dist/index.js",
|
@@ -25,12 +25,12 @@
|
|
25
25
|
"format": "prettier --write src"
|
26
26
|
},
|
27
27
|
"dependencies": {
|
28
|
-
"@stencil/core": "4.
|
28
|
+
"@stencil/core": "4.27.0"
|
29
29
|
},
|
30
30
|
"devDependencies": {
|
31
|
-
"cspell": "8.17.
|
31
|
+
"cspell": "8.17.5",
|
32
32
|
"eslint": "9.21.0",
|
33
|
-
"prettier": "3.5.
|
33
|
+
"prettier": "3.5.2",
|
34
34
|
"typescript": "5.7.3"
|
35
35
|
},
|
36
36
|
"license": "MIT"
|
@@ -1,2 +0,0 @@
|
|
1
|
-
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>{t.set(n.t=e,n)},l=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},f=u.document||{head:{}},a={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,m=[],y=[],v=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&a.o?$(b):a.raf(b))},w=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{w(m),w(y),(p=m.length>0)&&a.raf(b)},$=e=>h().then(e),g=v(y,!0),S=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>E,ok:()=>O,unwrap:()=>M,unwrapErr:()=>x});var O=e=>({isOk:!0,isErr:!1,value:e}),k=e=>({isOk:!1,isErr:!0,value:e});function E(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return k(e.value);throw"should never get here"}var C,M=e=>{if(e.isOk)return e.value;throw e.value},x=e=>{if(e.isErr)return e.value;throw e.value},P=(e,t,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!S(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?A(null,o):o),i=s)};if(c(n),t){t.key&&(l=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=A(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=l,u},A=(e,t)=>({o:0,m:e,i:t,v:null,h:null,u:null,p:null}),L={},N=e=>(null==e||S(e),e),R=new WeakMap,T=e=>"sc-"+e.$,D=(e,t,n,o,s,i)=>{if(n!==o){let r=l(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,l=U(n);let s=U(o);t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e))))}else if("key"===t);else if("ref"===t)o&&o(e);else if(r||"o"!==t[0]||"n"!==t[1]){const l=S(o);if((r||l&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[t]!==o&&(e[t]=o);else{const l=null==o?"":o;"list"===t?r=!1:null!=n&&e[t]==l||("function"==typeof e.__lookupSetter__(t)?e[t]=l:e.setAttribute(t,l))}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!l&&e.setAttribute(t,o=!0===o?"":o)}else if(t="-"===t[2]?t.slice(3):l(u,c)?c.slice(2):c[2]+t.slice(3),n||o){const l=t.endsWith(W);t=t.replace(F,""),n&&a.rel(e,t,n,l),o&&a.ael(e,t,o,l)}}},H=/\s/,U=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(H):[]),W="Capture",F=RegExp(W+"$"),V=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||{},s=t.u||{};for(const e of q(Object.keys(l)))e in s||D(o,e,l[e],void 0,n,t.o);for(const e of q(Object.keys(s)))D(o,e,l[e],s[e],n,t.o)};function q(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var G=!1,_=(e,t,n)=>{const o=t.h[n];let l,s,i=0;if(null!==o.i)l=o.v=f.createTextNode(o.i);else{if(G||(G="svg"===o.m),l=o.v=f.createElementNS(G?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),G&&"foreignObject"===o.m&&(G=!1),V(null,o,G),o.h)for(i=0;i<o.h.length;++i)s=_(e,o,i),s&&l.appendChild(s);"svg"===o.m?G=!1:"foreignObject"===l.tagName&&(G=!0)}return l["s-hn"]=C,l},z=(e,t,n,o,l,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===C&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=_(null,n,l),i&&(o[l].v=i,Q(r,i,t)))},B=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;K(t),e&&e.remove()}}},I=(e,t,n=!1)=>e.m===t.m&&(n?(n&&!e.p&&t.p&&(e.p=t.p),!0):e.p===t.p),J=(e,t,n=!1)=>{const o=t.v=e.v,l=e.h,s=t.h,i=t.m,r=t.i;null===r?(V(e,t,G="svg"===i||"foreignObject"!==i&&G),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=t.length-1,h=t[0],d=t[a],p=o.length-1,m=o[0],y=o[p];for(;r<=a&&c<=p;)if(null==h)h=t[++r];else if(null==d)d=t[--a];else if(null==m)m=o[++c];else if(null==y)y=o[--p];else if(I(h,m,l))J(h,m,l),h=t[++r],m=o[++c];else if(I(d,y,l))J(d,y,l),d=t[--a],y=o[--p];else if(I(h,y,l))J(h,y,l),Q(e,h.v,d.v.nextSibling),h=t[++r],y=o[--p];else if(I(d,m,l))J(d,m,l),Q(e,d.v,h.v),d=t[--a],m=o[++c];else{for(u=-1,f=r;f<=a;++f)if(t[f]&&null!==t[f].p&&t[f].p===m.p){u=f;break}u>=0?(i=t[u],i.m!==m.m?s=_(t&&t[c],n,u):(J(i,m,l),t[u]=void 0,s=i.v),m=o[++c]):(s=_(t&&t[c],n,c),m=o[++c]),s&&Q(h.v.parentNode,s,h.v)}r>a?z(e,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&B(t,r,a)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),z(o,null,t,s,0,s.length-1)):!n&&null!==l&&B(l,0,l.length-1),G&&"svg"===i&&(G=!1)):e.i!==r&&(o.data=r)},K=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(K)},Q=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),X=(e,t)=>{if(t&&!e.S&&t["s-p"]){const n=t["s-p"].push(new Promise((o=>e.S=()=>{t["s-p"].splice(n-1,1),o()})))}},Y=(e,t)=>{if(e.o|=16,!(4&e.o))return X(e,e.j),g((()=>Z(e,t)));e.o|=512},Z=(e,t)=>{const n=e.$hostElement$,o=e.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(l=ie(o,"componentWillLoad",void 0,n)),ee(l,(()=>ne(e,o,t)))},ee=(e,t)=>te(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),te=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ne=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=T(t),l=r.get(o);if(e=11===e.nodeType?e:f,l)if("string"==typeof l){let s,i=R.get(e=e.head||e);if(i||R.set(e,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||f.createElement("style"),s.innerHTML=l;const i=null!=(n=a.k)?n:j(f);if(null!=i&&s.setAttribute("nonce",i),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,(null==n?void 0:n.parentNode)===e?n:null)}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&&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||128&o)&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);oe(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>le(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},oe=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.O,s=e.C||A(null,null),i=(e=>e&&e.m===L)(t)?t:P(null,null,t);if(C=o.tagName,n&&i.u)for(const e of Object.keys(i.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=o[e]);i.m=null,i.o|=4,e.C=i,i.v=s.v=o.shadowRoot||o,J(s,i,n)})(e,t,o)}catch(t){s(t,e.$hostElement$)}return null},le=e=>{const t=e.$hostElement$,n=e.t,o=e.j;64&e.o||(e.o|=64,re(t),ie(n,"componentDidLoad",void 0,t),e.M(t),o||se()),e.S&&(e.S(),e.S=void 0),512&e.o&&$((()=>Y(e,!1))),e.o&=-517},se=()=>{$((()=>(e=>{const t=a.ce("appload",{detail:{namespace:"proto-table-wc"}});return e.dispatchEvent(t),t})(u)))},ie=(e,t,n,o)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e,o)}},re=e=>e.classList.add("hydrated"),ce=(e,t,o,l)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${l.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=s.P.get(t),r=s.o,c=s.t;o=N(o),8&r&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.P.set(t,o),c&&2==(18&r)&&Y(s,!1))},ue=(e,t,o)=>{var l,s;const i=e.prototype;if(t.A){const r=Object.entries(null!=(l=t.A)?l:{});if(r.map((([e,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,e)||{};s&&(t.A[e][0]|=2048),r&&(t.A[e][0]|=4096),(1&o||!s)&&Object.defineProperty(i,e,{get(){{if(!(2048&t.A[e][0]))return((e,t)=>n(this).P.get(t))(0,e);const o=n(this),l=o?o.t:i;if(!l)return;return l[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,e,{set(s){const i=n(this);if(r){const n=32&l?this[e]:i.$hostElement$[e];return void 0===n&&i.P.get(e)?s=i.P.get(e):!i.P.get(e)&&n&&i.P.set(e,n),r.call(this,N(s)),void ce(this,e,s=32&l?this[e]:i.$hostElement$[e],t)}{if(!(1&o&&4096&t.A[e][0]))return ce(this,e,s,t),void(1&o&&!i.t&&i.L.then((()=>{4096&t.A[e][0]&&i.t[e]!==i.P.get(e)&&(i.t[e]=s)})));const n=()=>{const n=i.t[e];!i.P.get(e)&&n&&i.P.set(e,n),i.t[e]=N(s),ce(this,e,i.t[e],t)};i.t?n():i.L.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(e,l,s){a.jmp((()=>{var r;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=t.N)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.N)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},fe=(e,o={})=>{var l;const h=[],p=o.exclude||[],m=u.customElements,y=f.head,v=y.querySelector("meta[charset]"),w=f.createElement("style"),b=[];let $,g=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",f.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((o=>{const l={o:o[0],$:o[1],A:o[2],R:o[3]};4&l.o&&(S=!0),l.A=o[2];const c=l.$,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,O:n,P:new Map};o.L=new Promise((e=>o.M=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,l),1&l.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),$&&(clearTimeout($),$=null),g?b.push(this):a.jmp((()=>(e=>{if(!(1&a.o)){const t=n(e),o=t.O,l=()=>{};if(1&t.o)(null==t?void 0:t.t)||(null==t?void 0:t.L)&&t.L.then((()=>{}));else{t.o|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){X(t,t.j=n);break}}o.A&&Object.entries(o.A).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.T){const l=((e,t)=>{const n=e.$.replace(/-/g,"_"),o=e.T;if(!o)return;const l=i.get(o);return l?l[n]:import(`./${o}.entry.js`).then((e=>(i.set(o,e),e[n])),(e=>{s(e,t.$hostElement$)}))
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,t);if(l&&"then"in l){const e=()=>{};o=await l,e()}else o=l;if(!o)throw Error(`Constructor for "${n.$}#${t.D}" was not found`);o.isProxied||(ue(o,n,2),o.isProxied=!0);const r=()=>{};t.o|=8;try{new o(t)}catch(t){s(t,e)}t.o&=-9,r()}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=T(n);if(!r.has(t)){const o=()=>{};((e,t,n)=>{let o=r.get(e);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,r.set(e,o)})(t,e,!!(1&n.o)),o()}}}const l=t.j,c=()=>Y(t,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(e,t,o)}l()}})(this)))}disconnectedCallback(){a.jmp((()=>(async e=>{if(!(1&a.o)){const t=n(e);(null==t?void 0:t.t)||(null==t?void 0:t.L)&&t.L.then((()=>{}))}R.has(e)&&R.delete(e),e.shadowRoot&&R.has(e.shadowRoot)&&R.delete(e.shadowRoot)})(this))),a.raf((()=>{var e;const t=n(this),o=b.findIndex((e=>e===this));o>-1&&b.splice(o,1),(null==(e=null==t?void 0:t.C)?void 0:e.v)instanceof Node&&!t.C.v.isConnected&&delete t.C.v}))}componentOnReady(){return n(this).L}};l.T=e[0],p.includes(c)||m.get(c)||(h.push(c),m.define(c,ue(u,l,1)))}))})),h.length>0&&(S&&(w.textContent+=c),w.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const e=null!=(l=a.k)?l:j(f);null!=e&&w.setAttribute("nonce",e),y.insertBefore(w,v?v.nextSibling:y.firstChild)}g=!1,b.length?b.map((e=>e.connectedCallback())):a.jmp((()=>$=setTimeout(se,30)))},ae=e=>a.k=e;export{fe as b,P as h,h as p,o as r,ae as s}
|