proto-table-wc 0.0.520 → 0.0.522
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/demo-table_2.cjs.entry.js +1 -1
- package/dist/cjs/{index-44342372.js → index-6c63e4c4.js} +143 -122
- 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-01cf751f.js → index-58c52308.js} +143 -122
- package/dist/esm/loader.js +2 -2
- package/dist/esm/proto-table-wc.js +3 -3
- package/dist/proto-table-wc/{p-2e795ec6.entry.js → p-67883ba1.entry.js} +1 -1
- package/dist/proto-table-wc/p-c02c432b.js +2 -0
- package/dist/proto-table-wc/proto-table-wc.esm.js +1 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -2
- package/loader/index.d.ts +3 -0
- package/package.json +2 -2
- package/dist/proto-table-wc/p-f41159b4.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-6c63e4c4.js');
|
6
6
|
|
7
7
|
const demoTableCss = ".detailWrapper{font-weight:100;font-size:13px;display:flex;flex-direction:column;justify-items:start;padding:5px;padding-left:30px}";
|
8
8
|
const DemoTableStyle0 = demoTableCss;
|
@@ -24,13 +24,119 @@ const NAMESPACE = 'proto-table-wc';
|
|
24
24
|
const BUILD = /* proto-table-wc */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: false, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
|
25
25
|
|
26
26
|
/*
|
27
|
-
Stencil Client Platform v4.
|
27
|
+
Stencil Client Platform v4.19.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
|
+
var hostRefs = /* @__PURE__ */ new WeakMap();
|
35
|
+
var getHostRef = (ref) => hostRefs.get(ref);
|
36
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
37
|
+
var registerHost = (hostElement, cmpMeta) => {
|
38
|
+
const hostRef = {
|
39
|
+
$flags$: 0,
|
40
|
+
$hostElement$: hostElement,
|
41
|
+
$cmpMeta$: cmpMeta,
|
42
|
+
$instanceValues$: /* @__PURE__ */ new Map()
|
43
|
+
};
|
44
|
+
{
|
45
|
+
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
46
|
+
hostElement["s-p"] = [];
|
47
|
+
hostElement["s-rc"] = [];
|
48
|
+
}
|
49
|
+
return hostRefs.set(hostElement, hostRef);
|
50
|
+
};
|
51
|
+
var isMemberInElement = (elm, memberName) => memberName in elm;
|
52
|
+
var consoleError = (e, el) => (0, console.error)(e, el);
|
53
|
+
|
54
|
+
// src/client/client-load-module.ts
|
55
|
+
var cmpModules = /* @__PURE__ */ new Map();
|
56
|
+
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
57
|
+
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
58
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
59
|
+
if (!bundleId) {
|
60
|
+
return void 0;
|
61
|
+
}
|
62
|
+
const module = cmpModules.get(bundleId) ;
|
63
|
+
if (module) {
|
64
|
+
return module[exportName];
|
65
|
+
}
|
66
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
67
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
68
|
+
/* @vite-ignore */
|
69
|
+
/* webpackInclude: /\.entry\.js$/ */
|
70
|
+
/* webpackExclude: /\.system\.entry\.js$/ */
|
71
|
+
/* webpackMode: "lazy" */
|
72
|
+
`./${bundleId}.entry.js${""}`
|
73
|
+
)); }).then((importedModule) => {
|
74
|
+
{
|
75
|
+
cmpModules.set(bundleId, importedModule);
|
76
|
+
}
|
77
|
+
return importedModule[exportName];
|
78
|
+
}, consoleError);
|
79
|
+
};
|
80
|
+
|
81
|
+
// src/client/client-style.ts
|
82
|
+
var styles = /* @__PURE__ */ new Map();
|
83
|
+
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
84
|
+
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
85
|
+
var win = typeof window !== "undefined" ? window : {};
|
86
|
+
var doc = win.document || { head: {} };
|
87
|
+
var plt = {
|
88
|
+
$flags$: 0,
|
89
|
+
$resourcesUrl$: "",
|
90
|
+
jmp: (h2) => h2(),
|
91
|
+
raf: (h2) => requestAnimationFrame(h2),
|
92
|
+
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
93
|
+
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
94
|
+
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
95
|
+
};
|
96
|
+
var promiseResolve = (v) => Promise.resolve(v);
|
97
|
+
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
98
|
+
try {
|
99
|
+
new CSSStyleSheet();
|
100
|
+
return typeof new CSSStyleSheet().replaceSync === "function";
|
101
|
+
} catch (e) {
|
102
|
+
}
|
103
|
+
return false;
|
104
|
+
})() ;
|
105
|
+
var queuePending = false;
|
106
|
+
var queueDomReads = [];
|
107
|
+
var queueDomWrites = [];
|
108
|
+
var queueTask = (queue, write) => (cb) => {
|
109
|
+
queue.push(cb);
|
110
|
+
if (!queuePending) {
|
111
|
+
queuePending = true;
|
112
|
+
if (write && plt.$flags$ & 4 /* queueSync */) {
|
113
|
+
nextTick(flush);
|
114
|
+
} else {
|
115
|
+
plt.raf(flush);
|
116
|
+
}
|
117
|
+
}
|
118
|
+
};
|
119
|
+
var consume = (queue) => {
|
120
|
+
for (let i2 = 0; i2 < queue.length; i2++) {
|
121
|
+
try {
|
122
|
+
queue[i2](performance.now());
|
123
|
+
} catch (e) {
|
124
|
+
consoleError(e);
|
125
|
+
}
|
126
|
+
}
|
127
|
+
queue.length = 0;
|
128
|
+
};
|
129
|
+
var flush = () => {
|
130
|
+
consume(queueDomReads);
|
131
|
+
{
|
132
|
+
consume(queueDomWrites);
|
133
|
+
if (queuePending = queueDomReads.length > 0) {
|
134
|
+
plt.raf(flush);
|
135
|
+
}
|
136
|
+
}
|
137
|
+
};
|
138
|
+
var nextTick = (cb) => promiseResolve().then(cb);
|
139
|
+
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
34
140
|
|
35
141
|
// src/utils/constants.ts
|
36
142
|
var EMPTY_OBJ = {};
|
@@ -112,8 +218,6 @@ var uniqueTime = (key, measureText) => {
|
|
112
218
|
};
|
113
219
|
}
|
114
220
|
};
|
115
|
-
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
116
|
-
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
117
221
|
var h = (nodeName, vnodeData, ...children) => {
|
118
222
|
let child = null;
|
119
223
|
let key = null;
|
@@ -206,12 +310,13 @@ var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
206
310
|
};
|
207
311
|
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
208
312
|
var _a;
|
313
|
+
const styleContainerDocument = styleContainerNode;
|
209
314
|
const scopeId2 = getScopeId(cmpMeta);
|
210
315
|
const style = styles.get(scopeId2);
|
211
316
|
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
212
317
|
if (style) {
|
213
318
|
if (typeof style === "string") {
|
214
|
-
styleContainerNode =
|
319
|
+
styleContainerNode = styleContainerDocument.head || styleContainerNode;
|
215
320
|
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
216
321
|
let styleElm;
|
217
322
|
if (!appliedStyles) {
|
@@ -234,8 +339,8 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
234
339
|
appliedStyles.add(scopeId2);
|
235
340
|
}
|
236
341
|
}
|
237
|
-
} else if (!
|
238
|
-
|
342
|
+
} else if (!styleContainerDocument.adoptedStyleSheets.includes(style)) {
|
343
|
+
styleContainerDocument.adoptedStyleSheets = [...styleContainerDocument.adoptedStyleSheets, style];
|
239
344
|
}
|
240
345
|
}
|
241
346
|
return scopeId2;
|
@@ -353,6 +458,7 @@ function sortedAttrNames(attrNames) {
|
|
353
458
|
// src/runtime/vdom/vdom-render.ts
|
354
459
|
var scopeId;
|
355
460
|
var hostTagName;
|
461
|
+
var useNativeShadowDom = false;
|
356
462
|
var isSvgMode = false;
|
357
463
|
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
358
464
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
@@ -367,7 +473,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
367
473
|
}
|
368
474
|
elm = newVNode2.$elm$ = doc.createElementNS(
|
369
475
|
isSvgMode ? SVG_NS : HTML_NS,
|
370
|
-
newVNode2.$tag$
|
476
|
+
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
371
477
|
) ;
|
372
478
|
if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
|
373
479
|
isSvgMode = false;
|
@@ -562,6 +668,7 @@ var insertBefore = (parent, newNode, reference) => {
|
|
562
668
|
};
|
563
669
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
564
670
|
const hostElm = hostRef.$hostElement$;
|
671
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
565
672
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
566
673
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
567
674
|
hostTagName = hostElm.tagName;
|
@@ -579,6 +686,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
579
686
|
{
|
580
687
|
scopeId = hostElm["s-sc"];
|
581
688
|
}
|
689
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
582
690
|
patch(oldVNode, rootVnode, isInitialLoad);
|
583
691
|
};
|
584
692
|
|
@@ -618,7 +726,10 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
618
726
|
endSchedule();
|
619
727
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
620
728
|
};
|
621
|
-
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn)
|
729
|
+
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
|
730
|
+
console.error(err2);
|
731
|
+
fn();
|
732
|
+
}) : fn();
|
622
733
|
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
623
734
|
var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
624
735
|
var _a;
|
@@ -754,10 +865,10 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
754
865
|
|
755
866
|
// src/runtime/proxy-component.ts
|
756
867
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
757
|
-
var _a;
|
868
|
+
var _a, _b;
|
758
869
|
const prototype = Cstr.prototype;
|
759
|
-
if (cmpMeta.$members$) {
|
760
|
-
const members = Object.entries(cmpMeta.$members$);
|
870
|
+
if (cmpMeta.$members$ || BUILD.watchCallback ) {
|
871
|
+
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
761
872
|
members.map(([memberName, [memberFlags]]) => {
|
762
873
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
763
874
|
Object.defineProperty(prototype, memberName, {
|
@@ -802,7 +913,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
802
913
|
};
|
803
914
|
Cstr.observedAttributes = Array.from(
|
804
915
|
/* @__PURE__ */ new Set([
|
805
|
-
...Object.keys((
|
916
|
+
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
806
917
|
...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
|
807
918
|
const attrName = m[1] || propName;
|
808
919
|
attrNameToPropName.set(attrName, propName);
|
@@ -856,7 +967,10 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
856
967
|
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
857
968
|
}
|
858
969
|
if (Cstr && Cstr.style) {
|
859
|
-
let style
|
970
|
+
let style;
|
971
|
+
if (typeof Cstr.style === "string") {
|
972
|
+
style = Cstr.style;
|
973
|
+
}
|
860
974
|
const scopeId2 = getScopeId(cmpMeta);
|
861
975
|
if (!styles.has(scopeId2)) {
|
862
976
|
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
@@ -959,17 +1073,30 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
959
1073
|
// StencilLazyHost
|
960
1074
|
constructor(self) {
|
961
1075
|
super(self);
|
1076
|
+
this.hasRegisteredEventListeners = false;
|
962
1077
|
self = this;
|
963
1078
|
registerHost(self, cmpMeta);
|
964
1079
|
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
965
1080
|
{
|
966
|
-
{
|
967
|
-
|
1081
|
+
if (!self.shadowRoot) {
|
1082
|
+
{
|
1083
|
+
self.attachShadow({ mode: "open" });
|
1084
|
+
}
|
1085
|
+
} else {
|
1086
|
+
if (self.shadowRoot.mode !== "open") {
|
1087
|
+
throw new Error(
|
1088
|
+
`Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
|
1089
|
+
);
|
1090
|
+
}
|
968
1091
|
}
|
969
1092
|
}
|
970
1093
|
}
|
971
1094
|
}
|
972
1095
|
connectedCallback() {
|
1096
|
+
getHostRef(this);
|
1097
|
+
if (!this.hasRegisteredEventListeners) {
|
1098
|
+
this.hasRegisteredEventListeners = true;
|
1099
|
+
}
|
973
1100
|
if (appLoadFallback) {
|
974
1101
|
clearTimeout(appLoadFallback);
|
975
1102
|
appLoadFallback = null;
|
@@ -1002,7 +1129,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1002
1129
|
dataStyles.textContent += SLOT_FB_CSS;
|
1003
1130
|
}
|
1004
1131
|
{
|
1005
|
-
dataStyles.textContent += cmpTags + HYDRATED_CSS;
|
1132
|
+
dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
|
1006
1133
|
}
|
1007
1134
|
if (dataStyles.innerHTML.length) {
|
1008
1135
|
dataStyles.setAttribute("data-styles", "");
|
@@ -1027,112 +1154,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1027
1154
|
// src/runtime/nonce.ts
|
1028
1155
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
1029
1156
|
|
1030
|
-
// src/client/client-host-ref.ts
|
1031
|
-
var hostRefs = /* @__PURE__ */ new WeakMap();
|
1032
|
-
var getHostRef = (ref) => hostRefs.get(ref);
|
1033
|
-
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
1034
|
-
var registerHost = (hostElement, cmpMeta) => {
|
1035
|
-
const hostRef = {
|
1036
|
-
$flags$: 0,
|
1037
|
-
$hostElement$: hostElement,
|
1038
|
-
$cmpMeta$: cmpMeta,
|
1039
|
-
$instanceValues$: /* @__PURE__ */ new Map()
|
1040
|
-
};
|
1041
|
-
{
|
1042
|
-
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
1043
|
-
hostElement["s-p"] = [];
|
1044
|
-
hostElement["s-rc"] = [];
|
1045
|
-
}
|
1046
|
-
return hostRefs.set(hostElement, hostRef);
|
1047
|
-
};
|
1048
|
-
var isMemberInElement = (elm, memberName) => memberName in elm;
|
1049
|
-
var consoleError = (e, el) => (0, console.error)(e, el);
|
1050
|
-
|
1051
|
-
// src/client/client-load-module.ts
|
1052
|
-
var cmpModules = /* @__PURE__ */ new Map();
|
1053
|
-
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
1054
|
-
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
1055
|
-
const bundleId = cmpMeta.$lazyBundleId$;
|
1056
|
-
if (!bundleId) {
|
1057
|
-
return void 0;
|
1058
|
-
}
|
1059
|
-
const module = cmpModules.get(bundleId) ;
|
1060
|
-
if (module) {
|
1061
|
-
return module[exportName];
|
1062
|
-
}
|
1063
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
1064
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
1065
|
-
/* @vite-ignore */
|
1066
|
-
/* webpackInclude: /\.entry\.js$/ */
|
1067
|
-
/* webpackExclude: /\.system\.entry\.js$/ */
|
1068
|
-
/* webpackMode: "lazy" */
|
1069
|
-
`./${bundleId}.entry.js${""}`
|
1070
|
-
)); }).then((importedModule) => {
|
1071
|
-
{
|
1072
|
-
cmpModules.set(bundleId, importedModule);
|
1073
|
-
}
|
1074
|
-
return importedModule[exportName];
|
1075
|
-
}, consoleError);
|
1076
|
-
};
|
1077
|
-
|
1078
|
-
// src/client/client-style.ts
|
1079
|
-
var styles = /* @__PURE__ */ new Map();
|
1080
|
-
var win = typeof window !== "undefined" ? window : {};
|
1081
|
-
var doc = win.document || { head: {} };
|
1082
|
-
var plt = {
|
1083
|
-
$flags$: 0,
|
1084
|
-
$resourcesUrl$: "",
|
1085
|
-
jmp: (h2) => h2(),
|
1086
|
-
raf: (h2) => requestAnimationFrame(h2),
|
1087
|
-
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
1088
|
-
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
1089
|
-
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
1090
|
-
};
|
1091
|
-
var promiseResolve = (v) => Promise.resolve(v);
|
1092
|
-
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
1093
|
-
try {
|
1094
|
-
new CSSStyleSheet();
|
1095
|
-
return typeof new CSSStyleSheet().replaceSync === "function";
|
1096
|
-
} catch (e) {
|
1097
|
-
}
|
1098
|
-
return false;
|
1099
|
-
})() ;
|
1100
|
-
var queuePending = false;
|
1101
|
-
var queueDomReads = [];
|
1102
|
-
var queueDomWrites = [];
|
1103
|
-
var queueTask = (queue, write) => (cb) => {
|
1104
|
-
queue.push(cb);
|
1105
|
-
if (!queuePending) {
|
1106
|
-
queuePending = true;
|
1107
|
-
if (write && plt.$flags$ & 4 /* queueSync */) {
|
1108
|
-
nextTick(flush);
|
1109
|
-
} else {
|
1110
|
-
plt.raf(flush);
|
1111
|
-
}
|
1112
|
-
}
|
1113
|
-
};
|
1114
|
-
var consume = (queue) => {
|
1115
|
-
for (let i2 = 0; i2 < queue.length; i2++) {
|
1116
|
-
try {
|
1117
|
-
queue[i2](performance.now());
|
1118
|
-
} catch (e) {
|
1119
|
-
consoleError(e);
|
1120
|
-
}
|
1121
|
-
}
|
1122
|
-
queue.length = 0;
|
1123
|
-
};
|
1124
|
-
var flush = () => {
|
1125
|
-
consume(queueDomReads);
|
1126
|
-
{
|
1127
|
-
consume(queueDomWrites);
|
1128
|
-
if (queuePending = queueDomReads.length > 0) {
|
1129
|
-
plt.raf(flush);
|
1130
|
-
}
|
1131
|
-
}
|
1132
|
-
};
|
1133
|
-
var nextTick = (cb) => promiseResolve().then(cb);
|
1134
|
-
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
1135
|
-
|
1136
1157
|
exports.bootstrapLazy = bootstrapLazy;
|
1137
1158
|
exports.h = h;
|
1138
1159
|
exports.promiseResolve = promiseResolve;
|
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-6c63e4c4.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-6c63e4c4.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.19.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));
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
1
|
+
import { r as registerInstance, h } from './index-58c52308.js';
|
2
2
|
|
3
3
|
const demoTableCss = ".detailWrapper{font-weight:100;font-size:13px;display:flex;flex-direction:column;justify-items:start;padding:5px;padding-left:30px}";
|
4
4
|
const DemoTableStyle0 = demoTableCss;
|
@@ -2,13 +2,119 @@ const NAMESPACE = 'proto-table-wc';
|
|
2
2
|
const BUILD = /* proto-table-wc */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: false, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
|
3
3
|
|
4
4
|
/*
|
5
|
-
Stencil Client Platform v4.
|
5
|
+
Stencil Client Platform v4.19.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
|
+
var hostRefs = /* @__PURE__ */ new WeakMap();
|
13
|
+
var getHostRef = (ref) => hostRefs.get(ref);
|
14
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
15
|
+
var registerHost = (hostElement, cmpMeta) => {
|
16
|
+
const hostRef = {
|
17
|
+
$flags$: 0,
|
18
|
+
$hostElement$: hostElement,
|
19
|
+
$cmpMeta$: cmpMeta,
|
20
|
+
$instanceValues$: /* @__PURE__ */ new Map()
|
21
|
+
};
|
22
|
+
{
|
23
|
+
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
24
|
+
hostElement["s-p"] = [];
|
25
|
+
hostElement["s-rc"] = [];
|
26
|
+
}
|
27
|
+
return hostRefs.set(hostElement, hostRef);
|
28
|
+
};
|
29
|
+
var isMemberInElement = (elm, memberName) => memberName in elm;
|
30
|
+
var consoleError = (e, el) => (0, console.error)(e, el);
|
31
|
+
|
32
|
+
// src/client/client-load-module.ts
|
33
|
+
var cmpModules = /* @__PURE__ */ new Map();
|
34
|
+
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
35
|
+
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
36
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
37
|
+
if (!bundleId) {
|
38
|
+
return void 0;
|
39
|
+
}
|
40
|
+
const module = cmpModules.get(bundleId) ;
|
41
|
+
if (module) {
|
42
|
+
return module[exportName];
|
43
|
+
}
|
44
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
45
|
+
return import(
|
46
|
+
/* @vite-ignore */
|
47
|
+
/* webpackInclude: /\.entry\.js$/ */
|
48
|
+
/* webpackExclude: /\.system\.entry\.js$/ */
|
49
|
+
/* webpackMode: "lazy" */
|
50
|
+
`./${bundleId}.entry.js${""}`
|
51
|
+
).then((importedModule) => {
|
52
|
+
{
|
53
|
+
cmpModules.set(bundleId, importedModule);
|
54
|
+
}
|
55
|
+
return importedModule[exportName];
|
56
|
+
}, consoleError);
|
57
|
+
};
|
58
|
+
|
59
|
+
// src/client/client-style.ts
|
60
|
+
var styles = /* @__PURE__ */ new Map();
|
61
|
+
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
62
|
+
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
63
|
+
var win = typeof window !== "undefined" ? window : {};
|
64
|
+
var doc = win.document || { head: {} };
|
65
|
+
var plt = {
|
66
|
+
$flags$: 0,
|
67
|
+
$resourcesUrl$: "",
|
68
|
+
jmp: (h2) => h2(),
|
69
|
+
raf: (h2) => requestAnimationFrame(h2),
|
70
|
+
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
71
|
+
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
72
|
+
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
73
|
+
};
|
74
|
+
var promiseResolve = (v) => Promise.resolve(v);
|
75
|
+
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
76
|
+
try {
|
77
|
+
new CSSStyleSheet();
|
78
|
+
return typeof new CSSStyleSheet().replaceSync === "function";
|
79
|
+
} catch (e) {
|
80
|
+
}
|
81
|
+
return false;
|
82
|
+
})() ;
|
83
|
+
var queuePending = false;
|
84
|
+
var queueDomReads = [];
|
85
|
+
var queueDomWrites = [];
|
86
|
+
var queueTask = (queue, write) => (cb) => {
|
87
|
+
queue.push(cb);
|
88
|
+
if (!queuePending) {
|
89
|
+
queuePending = true;
|
90
|
+
if (write && plt.$flags$ & 4 /* queueSync */) {
|
91
|
+
nextTick(flush);
|
92
|
+
} else {
|
93
|
+
plt.raf(flush);
|
94
|
+
}
|
95
|
+
}
|
96
|
+
};
|
97
|
+
var consume = (queue) => {
|
98
|
+
for (let i2 = 0; i2 < queue.length; i2++) {
|
99
|
+
try {
|
100
|
+
queue[i2](performance.now());
|
101
|
+
} catch (e) {
|
102
|
+
consoleError(e);
|
103
|
+
}
|
104
|
+
}
|
105
|
+
queue.length = 0;
|
106
|
+
};
|
107
|
+
var flush = () => {
|
108
|
+
consume(queueDomReads);
|
109
|
+
{
|
110
|
+
consume(queueDomWrites);
|
111
|
+
if (queuePending = queueDomReads.length > 0) {
|
112
|
+
plt.raf(flush);
|
113
|
+
}
|
114
|
+
}
|
115
|
+
};
|
116
|
+
var nextTick = (cb) => promiseResolve().then(cb);
|
117
|
+
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
12
118
|
|
13
119
|
// src/utils/constants.ts
|
14
120
|
var EMPTY_OBJ = {};
|
@@ -90,8 +196,6 @@ var uniqueTime = (key, measureText) => {
|
|
90
196
|
};
|
91
197
|
}
|
92
198
|
};
|
93
|
-
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
94
|
-
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
95
199
|
var h = (nodeName, vnodeData, ...children) => {
|
96
200
|
let child = null;
|
97
201
|
let key = null;
|
@@ -184,12 +288,13 @@ var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
184
288
|
};
|
185
289
|
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
186
290
|
var _a;
|
291
|
+
const styleContainerDocument = styleContainerNode;
|
187
292
|
const scopeId2 = getScopeId(cmpMeta);
|
188
293
|
const style = styles.get(scopeId2);
|
189
294
|
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
190
295
|
if (style) {
|
191
296
|
if (typeof style === "string") {
|
192
|
-
styleContainerNode =
|
297
|
+
styleContainerNode = styleContainerDocument.head || styleContainerNode;
|
193
298
|
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
194
299
|
let styleElm;
|
195
300
|
if (!appliedStyles) {
|
@@ -212,8 +317,8 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
212
317
|
appliedStyles.add(scopeId2);
|
213
318
|
}
|
214
319
|
}
|
215
|
-
} else if (!
|
216
|
-
|
320
|
+
} else if (!styleContainerDocument.adoptedStyleSheets.includes(style)) {
|
321
|
+
styleContainerDocument.adoptedStyleSheets = [...styleContainerDocument.adoptedStyleSheets, style];
|
217
322
|
}
|
218
323
|
}
|
219
324
|
return scopeId2;
|
@@ -331,6 +436,7 @@ function sortedAttrNames(attrNames) {
|
|
331
436
|
// src/runtime/vdom/vdom-render.ts
|
332
437
|
var scopeId;
|
333
438
|
var hostTagName;
|
439
|
+
var useNativeShadowDom = false;
|
334
440
|
var isSvgMode = false;
|
335
441
|
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
336
442
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
@@ -345,7 +451,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
345
451
|
}
|
346
452
|
elm = newVNode2.$elm$ = doc.createElementNS(
|
347
453
|
isSvgMode ? SVG_NS : HTML_NS,
|
348
|
-
newVNode2.$tag$
|
454
|
+
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
349
455
|
) ;
|
350
456
|
if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
|
351
457
|
isSvgMode = false;
|
@@ -540,6 +646,7 @@ var insertBefore = (parent, newNode, reference) => {
|
|
540
646
|
};
|
541
647
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
542
648
|
const hostElm = hostRef.$hostElement$;
|
649
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
543
650
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
544
651
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
545
652
|
hostTagName = hostElm.tagName;
|
@@ -557,6 +664,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
557
664
|
{
|
558
665
|
scopeId = hostElm["s-sc"];
|
559
666
|
}
|
667
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
560
668
|
patch(oldVNode, rootVnode, isInitialLoad);
|
561
669
|
};
|
562
670
|
|
@@ -596,7 +704,10 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
596
704
|
endSchedule();
|
597
705
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
598
706
|
};
|
599
|
-
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn)
|
707
|
+
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
|
708
|
+
console.error(err2);
|
709
|
+
fn();
|
710
|
+
}) : fn();
|
600
711
|
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
601
712
|
var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
602
713
|
var _a;
|
@@ -732,10 +843,10 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
732
843
|
|
733
844
|
// src/runtime/proxy-component.ts
|
734
845
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
735
|
-
var _a;
|
846
|
+
var _a, _b;
|
736
847
|
const prototype = Cstr.prototype;
|
737
|
-
if (cmpMeta.$members$) {
|
738
|
-
const members = Object.entries(cmpMeta.$members$);
|
848
|
+
if (cmpMeta.$members$ || BUILD.watchCallback ) {
|
849
|
+
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
739
850
|
members.map(([memberName, [memberFlags]]) => {
|
740
851
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
741
852
|
Object.defineProperty(prototype, memberName, {
|
@@ -780,7 +891,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
780
891
|
};
|
781
892
|
Cstr.observedAttributes = Array.from(
|
782
893
|
/* @__PURE__ */ new Set([
|
783
|
-
...Object.keys((
|
894
|
+
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
784
895
|
...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
|
785
896
|
const attrName = m[1] || propName;
|
786
897
|
attrNameToPropName.set(attrName, propName);
|
@@ -834,7 +945,10 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
834
945
|
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
835
946
|
}
|
836
947
|
if (Cstr && Cstr.style) {
|
837
|
-
let style
|
948
|
+
let style;
|
949
|
+
if (typeof Cstr.style === "string") {
|
950
|
+
style = Cstr.style;
|
951
|
+
}
|
838
952
|
const scopeId2 = getScopeId(cmpMeta);
|
839
953
|
if (!styles.has(scopeId2)) {
|
840
954
|
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
@@ -937,17 +1051,30 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
937
1051
|
// StencilLazyHost
|
938
1052
|
constructor(self) {
|
939
1053
|
super(self);
|
1054
|
+
this.hasRegisteredEventListeners = false;
|
940
1055
|
self = this;
|
941
1056
|
registerHost(self, cmpMeta);
|
942
1057
|
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
943
1058
|
{
|
944
|
-
{
|
945
|
-
|
1059
|
+
if (!self.shadowRoot) {
|
1060
|
+
{
|
1061
|
+
self.attachShadow({ mode: "open" });
|
1062
|
+
}
|
1063
|
+
} else {
|
1064
|
+
if (self.shadowRoot.mode !== "open") {
|
1065
|
+
throw new Error(
|
1066
|
+
`Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
|
1067
|
+
);
|
1068
|
+
}
|
946
1069
|
}
|
947
1070
|
}
|
948
1071
|
}
|
949
1072
|
}
|
950
1073
|
connectedCallback() {
|
1074
|
+
getHostRef(this);
|
1075
|
+
if (!this.hasRegisteredEventListeners) {
|
1076
|
+
this.hasRegisteredEventListeners = true;
|
1077
|
+
}
|
951
1078
|
if (appLoadFallback) {
|
952
1079
|
clearTimeout(appLoadFallback);
|
953
1080
|
appLoadFallback = null;
|
@@ -980,7 +1107,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
980
1107
|
dataStyles.textContent += SLOT_FB_CSS;
|
981
1108
|
}
|
982
1109
|
{
|
983
|
-
dataStyles.textContent += cmpTags + HYDRATED_CSS;
|
1110
|
+
dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
|
984
1111
|
}
|
985
1112
|
if (dataStyles.innerHTML.length) {
|
986
1113
|
dataStyles.setAttribute("data-styles", "");
|
@@ -1005,110 +1132,4 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1005
1132
|
// src/runtime/nonce.ts
|
1006
1133
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
1007
1134
|
|
1008
|
-
// src/client/client-host-ref.ts
|
1009
|
-
var hostRefs = /* @__PURE__ */ new WeakMap();
|
1010
|
-
var getHostRef = (ref) => hostRefs.get(ref);
|
1011
|
-
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
1012
|
-
var registerHost = (hostElement, cmpMeta) => {
|
1013
|
-
const hostRef = {
|
1014
|
-
$flags$: 0,
|
1015
|
-
$hostElement$: hostElement,
|
1016
|
-
$cmpMeta$: cmpMeta,
|
1017
|
-
$instanceValues$: /* @__PURE__ */ new Map()
|
1018
|
-
};
|
1019
|
-
{
|
1020
|
-
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
1021
|
-
hostElement["s-p"] = [];
|
1022
|
-
hostElement["s-rc"] = [];
|
1023
|
-
}
|
1024
|
-
return hostRefs.set(hostElement, hostRef);
|
1025
|
-
};
|
1026
|
-
var isMemberInElement = (elm, memberName) => memberName in elm;
|
1027
|
-
var consoleError = (e, el) => (0, console.error)(e, el);
|
1028
|
-
|
1029
|
-
// src/client/client-load-module.ts
|
1030
|
-
var cmpModules = /* @__PURE__ */ new Map();
|
1031
|
-
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
1032
|
-
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
1033
|
-
const bundleId = cmpMeta.$lazyBundleId$;
|
1034
|
-
if (!bundleId) {
|
1035
|
-
return void 0;
|
1036
|
-
}
|
1037
|
-
const module = cmpModules.get(bundleId) ;
|
1038
|
-
if (module) {
|
1039
|
-
return module[exportName];
|
1040
|
-
}
|
1041
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
1042
|
-
return import(
|
1043
|
-
/* @vite-ignore */
|
1044
|
-
/* webpackInclude: /\.entry\.js$/ */
|
1045
|
-
/* webpackExclude: /\.system\.entry\.js$/ */
|
1046
|
-
/* webpackMode: "lazy" */
|
1047
|
-
`./${bundleId}.entry.js${""}`
|
1048
|
-
).then((importedModule) => {
|
1049
|
-
{
|
1050
|
-
cmpModules.set(bundleId, importedModule);
|
1051
|
-
}
|
1052
|
-
return importedModule[exportName];
|
1053
|
-
}, consoleError);
|
1054
|
-
};
|
1055
|
-
|
1056
|
-
// src/client/client-style.ts
|
1057
|
-
var styles = /* @__PURE__ */ new Map();
|
1058
|
-
var win = typeof window !== "undefined" ? window : {};
|
1059
|
-
var doc = win.document || { head: {} };
|
1060
|
-
var plt = {
|
1061
|
-
$flags$: 0,
|
1062
|
-
$resourcesUrl$: "",
|
1063
|
-
jmp: (h2) => h2(),
|
1064
|
-
raf: (h2) => requestAnimationFrame(h2),
|
1065
|
-
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
1066
|
-
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
1067
|
-
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
1068
|
-
};
|
1069
|
-
var promiseResolve = (v) => Promise.resolve(v);
|
1070
|
-
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
1071
|
-
try {
|
1072
|
-
new CSSStyleSheet();
|
1073
|
-
return typeof new CSSStyleSheet().replaceSync === "function";
|
1074
|
-
} catch (e) {
|
1075
|
-
}
|
1076
|
-
return false;
|
1077
|
-
})() ;
|
1078
|
-
var queuePending = false;
|
1079
|
-
var queueDomReads = [];
|
1080
|
-
var queueDomWrites = [];
|
1081
|
-
var queueTask = (queue, write) => (cb) => {
|
1082
|
-
queue.push(cb);
|
1083
|
-
if (!queuePending) {
|
1084
|
-
queuePending = true;
|
1085
|
-
if (write && plt.$flags$ & 4 /* queueSync */) {
|
1086
|
-
nextTick(flush);
|
1087
|
-
} else {
|
1088
|
-
plt.raf(flush);
|
1089
|
-
}
|
1090
|
-
}
|
1091
|
-
};
|
1092
|
-
var consume = (queue) => {
|
1093
|
-
for (let i2 = 0; i2 < queue.length; i2++) {
|
1094
|
-
try {
|
1095
|
-
queue[i2](performance.now());
|
1096
|
-
} catch (e) {
|
1097
|
-
consoleError(e);
|
1098
|
-
}
|
1099
|
-
}
|
1100
|
-
queue.length = 0;
|
1101
|
-
};
|
1102
|
-
var flush = () => {
|
1103
|
-
consume(queueDomReads);
|
1104
|
-
{
|
1105
|
-
consume(queueDomWrites);
|
1106
|
-
if (queuePending = queueDomReads.length > 0) {
|
1107
|
-
plt.raf(flush);
|
1108
|
-
}
|
1109
|
-
}
|
1110
|
-
};
|
1111
|
-
var nextTick = (cb) => promiseResolve().then(cb);
|
1112
|
-
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
1113
|
-
|
1114
1135
|
export { bootstrapLazy as b, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
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-58c52308.js';
|
2
|
+
export { s as setNonce } from './index-58c52308.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-58c52308.js';
|
2
|
+
export { s as setNonce } from './index-58c52308.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.19.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-c02c432b.js";const r=class{constructor(r){e(this,r),this.fields=[{label:"Date",prop:"date"},{label:"List Price",prop:"price"},{label:"% of Market",prop:"market"},{label:"ProfitTime Score",prop:"score"}],this.items=[],this.table=void 0,this.renderDetails=e=>{const{tags:r=[]}=e;return t("div",{class:"detailWrapper"},t("span",null,r.length," details..."),t("ul",null,r.map((e=>t("li",null,e)))))}}componentWillLoad(){this.items=[{date:"08/30/2020",price:"$24,000",market:"98%",score:"No Score",tags:["one","two","three"]},{date:"08/31/2020",price:"$24,000",market:"99%",score:"No Score",tags:["uno","duo"]},{date:"09/01/2020",price:"$27,000",market:"102%",score:"Platinum"},{date:"09/02/2020",price:"$27,423",market:"104%",score:"Platinum",tags:["dog","cat","fish","hamster"]},{date:"09/03/2020",price:"$27,521",market:"106%",score:"Platinum",tags:["4wd","sports"]},{date:"09/04/2020",price:"$27,687",market:"107%",score:"Platinum",tags:["leather","chrome"]}]}componentDidLoad(){const{table:e,items:t,fields:r}=this;e.data=t,e.fields=r,e.details=this.renderDetails}render(){return t("proto-table",{key:"aa5f26287b85073afb5bbd3c133f9ad388fc8138",ref:e=>this.table=e})}};r.style=".detailWrapper{font-weight:100;font-size:13px;display:flex;flex-direction:column;justify-items:start;padding:5px;padding-left:30px}";const s={down:"M12 15.4L6.6 10 8 8.6l4 4 4-4 1.4 1.4z",up:"M16 15.4l-4-4-4 4L6.6 14 12 8.6l5.4 5.4z",left:"M14 17.4L8.6 12 14 6.6 15.4 8l-4 4 4 4z",right:"M10 17.4L8.6 16l4-4-4-4L10 6.6l5.4 5.4z",more:"M12 14a2 2 0 100-4 2 2 0 000 4zm-6 0a2 2 0 100-4 2 2 0 000 4zm12 0a2 2 0 100-4 2 2 0 000 4z","arrow-up":"M5.3 10.7l1.4 1.4L11 7.8V20h2V7.8l4.3 4.3 1.4-1.4L12 4z","arrow-down":"M18.7 13.3l-1.4-1.4-4.3 4.3V4h-2v12.2l-4.3-4.3-1.4 1.4L12 20z"},i={right:"show",down:"hide","arrow-up":"sort","arrow-down":"sort"},l=class{constructor(r){e(this,r),this.protoIcon=(e,r,l=24)=>{const o=s[e];return t("svg",{width:l,height:l,viewBox:"0 0 24 24",role:"img","aria-labelledby":"title"},t("title",null,(e=>i[e])(e)),t("g",{fill:r},t("path",{d:o})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},this.handleCellClick=(e,t)=>()=>{0===e&&(this.expanded=this.expanded===t?void 0:t)},this.handleSortClick=e=>()=>{this.sort===e?2===this.clicks?(this.clicks=0,this.sort=void 0):this.clicks=this.clicks+1:(this.sort=e,this.clicks=1)},this.iconFor=e=>this.sort===e&&2===this.clicks?"arrow-up":"arrow-down",this.header=()=>{const{fields:e,iconFor:r,protoIcon:s}=this;return t("div",{class:"header"},e.map((({label:e},i)=>{const l=i===this.sort?"headerCell sort":"headerCell",o=r(i);return t("div",{class:l,onClick:this.handleSortClick(i)},s(o),t("span",null,e))})))},this.row=(e,r)=>{const{fields:s,protoIcon:i}=this;return t("div",{class:"rowContainer"},t("div",{class:this.expanded===r?"row expanded":"row"},s.map((({prop:s},l)=>t("div",{class:l===this.sort?"cell sort":"cell",onClick:this.handleCellClick(l,r)},i(0===l&&this.details?this.expanded===r?"down":"right":"pad"),e[s])))),this.details&&this.expanded===r&&this.details(e))},this.data=[],this.details=void 0,this.fields=[],this.expanded=void 0,this.sort=void 0,this.clicks=0}render(){const e=this.data||[];return t("div",{key:"c30742fde0de976c553234528a7bfb6ce10d3ef5",class:"table"},this.header(),e.map(((e,t)=>this.row(e,t))))}};l.style=".table{font-weight:400;font-size:13px;display:flex;flex-direction:column;width:100%;border:1px solid var(--clrs-navy);border-radius:2px}.table svg{fill:var(--clrs-navy)}.header{display:flex}.headerCell{flex-basis:100%;display:flex;align-items:center;justify-items:start;border-right:1px solid var(--clrs-navy);border-bottom:1px solid var(--clrs-navy);padding:5px;cursor:pointer}.headerCell svg g{display:none}.headerCell.sort svg g{display:inline}.headerCell:hover svg g{display:inline}.headerCell:hover{background-color:var(--clrs-silver)}.headerCell:last-child{border-right:none}.cell{flex-basis:100%;display:flex;align-items:center;justify-items:start;padding:5px}.cell:first-child svg{cursor:pointer}.sort{background-color:var(--cx-column-sort)}.row{display:flex;justify-items:stretch;width:100%}.row.expanded{background-color:var(--cx-row-expanded)}.row.expanded svg{fill:var(--clrs-red)}.row:hover{background-color:var(--cx-row-hover)}";export{r as demo_table,l as proto_table}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,d=[],w=[],y=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&f.l?b(v):f.raf(v))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},v=()=>{$(d),$(w),(m=d.length>0)&&f.raf(v)},b=e=>h().then(e),g=y(w,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function O(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>k,unwrap:()=>P,unwrapErr:()=>L});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,P=e=>{if(e.isOk)return e.value;throw e.value},L=e=>{if(e.isErr)return e.value;throw e.value},R=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!j(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?T(null,l):l),r=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=T(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},T=(e,t)=>({l:0,m:e,i:t,$:null,h:null,u:null,p:null}),A={},N=new WeakMap,U=e=>"sc-"+e.v,W=(e,t,n,l,s,r)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=F(n),s=F(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((i||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(H);t=t.replace(q,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},D=/\s/,F=e=>e?e.split(D):[],H="Capture",q=RegExp(H+"$"),G=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||S,s=t.u||S;for(const e of V(Object.keys(o)))e in s||W(l,e,o[e],void 0,n,t.l);for(const e of V(Object.keys(s)))W(l,e,o[e],s[e],n,t.l)};function V(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var _=!1,z=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.$=a.createTextNode(l.i);else{if(_||(_="svg"===l.m),o=l.$=a.createElementNS(_?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.m),_&&"foreignObject"===l.m&&(_=!1),G(null,l,_),null!=M&&o["s-si"]!==M&&o.classList.add(o["s-si"]=M),l.h)for(r=0;r<l.h.length;++r)s=z(e,l,r),s&&o.appendChild(s);"svg"===l.m?_=!1:"foreignObject"===o.tagName&&(_=!0)}return o["s-hn"]=x,o},B=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===x&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=z(null,n,o),r&&(l[o].$=r,X(i,r,t)))},I=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;Q(t),e&&e.remove()}}},J=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),K=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,r=t.m,i=t.i;null===i?(G(e,t,_="svg"===r||"foreignObject"!==r&&_),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],p=t[f],m=l.length-1,d=l[0],w=l[m];for(;i<=f&&c<=m;)if(null==h)h=t[++i];else if(null==p)p=t[--f];else if(null==d)d=l[++c];else if(null==w)w=l[--m];else if(J(h,d,o))K(h,d,o),h=t[++i],d=l[++c];else if(J(p,w,o))K(p,w,o),p=t[--f],w=l[--m];else if(J(h,w,o))K(h,w,o),X(e,h.$,p.$.nextSibling),h=t[++i],w=l[--m];else if(J(p,d,o))K(p,d,o),X(e,p.$,h.$),p=t[--f],d=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===d.p){u=a;break}u>=0?(r=t[u],r.m!==d.m?s=z(t&&t[c],n,u):(K(r,d,o),t[u]=void 0,s=r.$),d=l[++c]):(s=z(t&&t[c],n,c),d=l[++c]),s&&X(h.$.parentNode,s,h.$)}i>f?B(e,null==l[m+1]?null:l[m+1].$,n,l,c,m):c>m&&I(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),B(l,null,t,s,0,s.length-1)):null!==o&&I(o,0,o.length-1),_&&"svg"===r&&(_=!1)):e.i!==i&&(l.data=i)},Q=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(Q)},X=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),Y=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},Z=(e,t)=>{if(e.l|=16,!(4&e.l))return Y(e,e.j),g((()=>ee(e,t)));e.l|=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 l;return t&&(l=ie(n,"componentWillLoad")),te(l,(()=>le(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,le=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=e,o=U(t),s=i.get(o);if(e=11===e.nodeType?e:a,s)if("string"==typeof s){let r,i=N.get(e=l.head||e);if(i||N.set(e,i=new Set),!i.has(o)){{r=a.createElement("style"),r.innerHTML=s;const t=null!=(n=f.k)?n:O(a);null!=t&&r.setAttribute("nonce",t),e.insertBefore(r,e.querySelector("link"))}4&t.l&&(r.innerHTML+=c),i&&i.add(o)}}else l.adoptedStyleSheets.includes(s)||(l.adoptedStyleSheets=[...l.adoptedStyleSheets,s]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);oe(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>se(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},oe=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.O,s=e.C||T(null,null),r=(e=>e&&e.m===A)(t)?t:R(null,null,t);if(x=l.tagName,n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.m=null,r.l|=4,e.C=r,r.$=s.$=l.shadowRoot||l,M=l["s-sc"],K(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},se=e=>{const t=e.$hostElement$,n=e.t,l=e.j;64&e.l||(e.l|=64,ce(t),ie(n,"componentDidLoad"),e.M(t),l||re()),e.S&&(e.S(),e.S=void 0),512&e.l&&b((()=>Z(e,!1))),e.l&=-517},re=()=>{ce(a.documentElement),b((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"proto-table-wc"}});return e.dispatchEvent(t),t})(u)))},ie=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ce=e=>e.classList.add("hydrated"),ue=(e,t,l)=>{var o,s;const r=e.prototype;if(t.P){const i=Object.entries(null!=(o=t.P)?o:{});if(i.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(r,e,{get(){return((e,t)=>n(this).L.get(t))(0,e)},set(l){((e,t,l,o)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${o.v}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=s.L.get(t),i=s.l,c=s.t;l=(e=>(null==e||j(e),e))(l),8&i&&void 0!==r||l===r||Number.isNaN(r)&&Number.isNaN(l)||(s.L.set(t,l),c&&2==(18&i)&&Z(s,!1))})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;r.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var i;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),r=null==l?void 0:l.l;if(r&&!(8&r)&&128&r&&s!==o){const n=l.t,r=null==(i=t.R)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.R)?s:{}),...i.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return l.set(n,e),n}))]))}}return e},ae=(e,l={})=>{var o;const h=[],m=l.exclude||[],d=u.customElements,w=a.head,y=w.querySelector("meta[charset]"),$=a.createElement("style"),v=[];let b,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{const o={l:l[0],v:l[1],P:l[2],T:l[3]};4&o.l&&(S=!0),o.P=l[2];const c=o.v,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,O:n,L:new Map};l.A=new Promise((e=>l.M=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,o),1&o.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.v}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),g?v.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.O,o=()=>{};if(1&t.l)(null==t?void 0:t.t)||(null==t?void 0:t.A)&&t.A.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Y(t,t.j=n);break}}l.P&&Object.entries(l.P).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.N){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.N;if(!n)return;const l=r.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.v}#${t.U}" was not found`);l.isProxied||(ue(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,o()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=U(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);p&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>Z(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);(null==e?void 0:e.t)||(null==e?void 0:e.A)&&e.A.then((()=>{}))}})()))}componentOnReady(){return n(this).A}};o.N=e[0],m.includes(c)||d.get(c)||(h.push(c),d.define(c,ue(u,o,1)))}))})),h.length>0&&(S&&($.textContent+=c),$.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",$.innerHTML.length)){$.setAttribute("data-styles","");const e=null!=(o=f.k)?o:O(a);null!=e&&$.setAttribute("nonce",e),w.insertBefore($,y?y.nextSibling:w.firstChild)}g=!1,v.length?v.map((e=>e.connectedCallback())):f.jmp((()=>b=setTimeout(re,30)))},fe=e=>f.k=e;export{ae as b,R as h,h as p,l as r,fe as s}
|
@@ -1 +1 @@
|
|
1
|
-
import{p as
|
1
|
+
import{p as a,b as t}from"./p-c02c432b.js";export{s as setNonce}from"./p-c02c432b.js";import{g as e}from"./p-e1255160.js";(()=>{const s=import.meta.url,t={};return""!==s&&(t.resourcesUrl=new URL(".",s).href),a(t)})().then((async a=>(await e(),t([["p-67883ba1",[[1,"demo-table"],[0,"proto-table",{data:[16],details:[8],fields:[16],expanded:[32],sort:[32],clicks:[32]}]]]],a))));
|
@@ -989,7 +989,6 @@ export declare namespace JSXBase {
|
|
989
989
|
interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
|
990
990
|
form?: string;
|
991
991
|
htmlFor?: string;
|
992
|
-
htmlfor?: string;
|
993
992
|
}
|
994
993
|
interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
|
995
994
|
value?: string | string[] | number;
|
@@ -1100,7 +1099,6 @@ export declare namespace JSXBase {
|
|
1100
1099
|
interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
|
1101
1100
|
form?: string;
|
1102
1101
|
htmlFor?: string;
|
1103
|
-
htmlfor?: string;
|
1104
1102
|
name?: string;
|
1105
1103
|
}
|
1106
1104
|
interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
|
package/loader/index.d.ts
CHANGED
@@ -9,6 +9,9 @@ export interface CustomElementsDefineOptions {
|
|
9
9
|
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
10
10
|
}
|
11
11
|
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): void;
|
12
|
+
/**
|
13
|
+
* @deprecated
|
14
|
+
*/
|
12
15
|
export declare function applyPolyfills(): Promise<void>;
|
13
16
|
|
14
17
|
/**
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "proto-table-wc",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.522",
|
4
4
|
"description": "Stencil Component Starter",
|
5
5
|
"main": "dist/index.cjs.js",
|
6
6
|
"module": "dist/index.js",
|
@@ -25,7 +25,7 @@
|
|
25
25
|
"format": "prettier --write src"
|
26
26
|
},
|
27
27
|
"dependencies": {
|
28
|
-
"@stencil/core": "4.
|
28
|
+
"@stencil/core": "4.19.1"
|
29
29
|
},
|
30
30
|
"devDependencies": {
|
31
31
|
"cspell": "8.9.1",
|
@@ -1,2 +0,0 @@
|
|
1
|
-
var e=Object.defineProperty,t={},n=e=>"object"==(e=typeof e)||"function"===e;function l(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>r,map:()=>s,ok:()=>o,unwrap:()=>u,unwrapErr:()=>a});var o=e=>({isOk:!0,isErr:!1,value:e}),r=e=>({isOk:!1,isErr:!0,value:e});function s(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 r(e.value);throw"should never get here"}var i,c,u=e=>{if(e.isOk)return e.value;throw e.value},a=e=>{if(e.isErr)return e.value;throw e.value},f="slot-fb{display:contents}slot-fb[hidden]{display:none}",h=(e,t,...l)=>{let o=null,r=null,s=!1,i=!1;const c=[],u=t=>{for(let l=0;l<t.length;l++)o=t[l],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!n(o))&&(o+=""),s&&i?c[c.length-1].t+=o:c.push(s?m(null,o):o),i=s)};if(u(l),t){t.key&&(r=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const a=m(e,null);return a.l=t,c.length>0&&(a.o=c),a.i=r,a},m=(e,t)=>({u:0,h:e,t,m:null,o:null,l:null,i:null}),p={},d=new WeakMap,w=e=>"sc-"+e.p,y=(e,t,l,o,r,s)=>{if(l!==o){let i=Q(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,n=v(l),r=v(o);t.remove(...n.filter((e=>e&&!r.includes(e)))),t.add(...r.filter((e=>e&&!n.includes(e))))}else if("key"===t);else if("ref"===t)o&&o(e);else if(i||"o"!==t[0]||"n"!==t[1]){const c=n(o);if((i||c&&null!==o)&&!r)try{if(e.tagName.includes("-"))e[t]=o;else{const n=null==o?"":o;"list"===t?i=!1:null!=l&&e[t]==n||(e[t]=n)}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&s||r)&&!c&&e.setAttribute(t,o=!0===o?"":o)}else if(t="-"===t[2]?t.slice(3):Q(te,c)?c.slice(2):c[2]+t.slice(3),l||o){const n=t.endsWith(b);t=t.replace(g,""),l&&le.rel(e,t,l,n),o&&le.ael(e,t,o,n)}}},$=/\s/,v=e=>e?e.split($):[],b="Capture",g=RegExp(b+"$"),S=(e,n,l)=>{const o=11===n.m.nodeType&&n.m.host?n.m.host:n.m,r=e&&e.l||t,s=n.l||t;for(const e of j(Object.keys(r)))e in s||y(o,e,r[e],void 0,l,n.u);for(const e of j(Object.keys(s)))y(o,e,r[e],s[e],l,n.u)};function j(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var O=!1,k=(e,t,n)=>{const l=t.o[n];let o,r,s=0;if(null!==l.t)o=l.m=ne.createTextNode(l.t);else{if(O||(O="svg"===l.h),o=l.m=ne.createElementNS(O?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.h),O&&"foreignObject"===l.h&&(O=!1),S(null,l,O),null!=i&&o["s-si"]!==i&&o.classList.add(o["s-si"]=i),l.o)for(s=0;s<l.o.length;++s)r=k(e,l,s),r&&o.appendChild(r);"svg"===l.h?O=!1:"foreignObject"===o.tagName&&(O=!0)}return o["s-hn"]=c,o},E=(e,t,n,l,o,r)=>{let s,i=e;for(i.shadowRoot&&i.tagName===c&&(i=i.shadowRoot);o<=r;++o)l[o]&&(s=k(null,n,o),s&&(l[o].m=s,L(i,s,t)))},C=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.m;P(t),e&&e.remove()}}},M=(e,t,n=!1)=>e.h===t.h&&(!!n||e.i===t.i),x=(e,t,n=!1)=>{const l=t.m=e.m,o=e.o,r=t.o,s=t.h,i=t.t;null===i?(S(e,t,O="svg"===s||"foreignObject"!==s&&O),null!==o&&null!==r?((e,t,n,l,o=!1)=>{let r,s,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],m=t[f],p=l.length-1,d=l[0],w=l[p];for(;i<=f&&c<=p;)if(null==h)h=t[++i];else if(null==m)m=t[--f];else if(null==d)d=l[++c];else if(null==w)w=l[--p];else if(M(h,d,o))x(h,d,o),h=t[++i],d=l[++c];else if(M(m,w,o))x(m,w,o),m=t[--f],w=l[--p];else if(M(h,w,o))x(h,w,o),L(e,h.m,m.m.nextSibling),h=t[++i],w=l[--p];else if(M(m,d,o))x(m,d,o),L(e,m.m,h.m),m=t[--f],d=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].i&&t[a].i===d.i){u=a;break}u>=0?(s=t[u],s.h!==d.h?r=k(t&&t[c],n,u):(x(s,d,o),t[u]=void 0,r=s.m),d=l[++c]):(r=k(t&&t[c],n,c),d=l[++c]),r&&L(h.m.parentNode,r,h.m)}i>f?E(e,null==l[p+1]?null:l[p+1].m,n,l,c,p):c>p&&C(t,i,f)})(l,o,t,r,n):null!==r?(null!==e.t&&(l.textContent=""),E(l,null,t,r,0,r.length-1)):null!==o&&C(o,0,o.length-1),O&&"svg"===s&&(O=!1)):e.t!==i&&(l.data=i)},P=e=>{e.l&&e.l.ref&&e.l.ref(null),e.o&&e.o.map(P)},L=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),R=(e,t)=>{t&&!e.$&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.$=t)))},T=(e,t)=>{if(e.u|=16,!(4&e.u))return R(e,e.v),me((()=>A(e,t)));e.u|=512},A=(e,t)=>{const n=e.S;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(l=q(n,"componentWillLoad")),N(l,(()=>D(e,n,t)))},N=(e,t)=>W(e)?e.then(t):t(),W=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,D=async(e,t,n)=>{var o;const r=e.$hostElement$,s=r["s-rc"];n&&(e=>{const t=e.j,n=e.$hostElement$,o=t.u,r=((e,t)=>{var n;const o=w(t),r=ee.get(o);if(e=11===e.nodeType?e:ne,r)if("string"==typeof r){let s,i=d.get(e=e.head||e);if(i||d.set(e,i=new Set),!i.has(o)){{s=ne.createElement("style"),s.innerHTML=r;const t=null!=(n=le.O)?n:l(ne);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.u&&(s.innerHTML+=f),i&&i.add(o)}}else e.adoptedStyleSheets.includes(r)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&(n["s-sc"]=r,n.classList.add(r+"-h"))})(e);F(e,t,r,n),s&&(s.map((e=>e())),r["s-rc"]=void 0);{const t=null!=(o=r["s-p"])?o:[],n=()=>H(e);0===t.length?n():(Promise.all(t).then(n),e.u|=4,t.length=0)}},F=(e,t,n,l)=>{try{t=t.render(),e.u&=-17,e.u|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.k||m(null,null),r=(e=>e&&e.h===p)(t)?t:h(null,null,t);if(c=l.tagName,n&&r.l)for(const e of Object.keys(r.l))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.l[e]=l[e]);r.h=null,r.u|=4,e.k=r,r.m=o.m=l.shadowRoot||l,i=l["s-sc"],x(o,r,n)})(e,t,l)}catch(t){X(t,e.$hostElement$)}return null},H=e=>{const t=e.$hostElement$,n=e.S,l=e.v;64&e.u||(e.u|=64,G(t),q(n,"componentDidLoad"),e.C(t),l||U()),e.$&&(e.$(),e.$=void 0),512&e.u&&he((()=>T(e,!1))),e.u&=-517},U=()=>{G(ne.documentElement),he((()=>(e=>{const t=le.ce("appload",{detail:{namespace:"proto-table-wc"}});return e.dispatchEvent(t),t})(te)))},q=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){X(e)}},G=e=>e.classList.add(("hydrated","hydrated")),V=(e,t,l)=>{var o;const r=e.prototype;if(t.M){const s=Object.entries(t.M);if(s.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(r,e,{get(){return((e,t)=>I(this).P.get(t))(0,e)},set(l){((e,t,l,o)=>{const r=I(e);if(!r)throw Error(`Couldn't find host element for "${o.p}" 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=r.P.get(t),i=r.u,c=r.S;l=(e=>(null==e||n(e),e))(l),8&i&&void 0!==s||l===s||Number.isNaN(s)&&Number.isNaN(l)||(r.P.set(t,l),c&&2==(18&i)&&T(r,!1))})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const n=new Map;r.attributeChangedCallback=function(e,l,o){le.jmp((()=>{var s;const i=n.get(e);if(this.hasOwnProperty(i))o=this[i],delete this[i];else{if(r.hasOwnProperty(i)&&"number"==typeof this[i]&&this[i]==o)return;if(null==i){const n=I(this),r=null==n?void 0:n.u;if(r&&!(8&r)&&128&r&&o!==l){const r=n.S,i=null==(s=t.L)?void 0:s[e];null==i||i.forEach((t=>{null!=r[t]&&r[t].call(r,o,l,e)}))}return}}this[i]=(null!==o||"boolean"!=typeof this[i])&&o}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(o=t.L)?o:{}),...s.filter((([e,t])=>15&t[0])).map((([e,t])=>{const l=t[1]||e;return n.set(l,e),l}))]))}}return e},_=(e,t={})=>{var n;const o=[],r=t.exclude||[],s=te.customElements,i=ne.head,c=i.querySelector("meta[charset]"),u=ne.createElement("style"),a=[];let h,m=!0;Object.assign(le,t),le.R=new URL(t.resourcesUrl||"./",ne.baseURI).href;let p=!1;if(e.map((e=>{e[1].map((t=>{const n={u:t[0],p:t[1],M:t[2],T:t[3]};4&n.u&&(p=!0),n.M=t[2];const l=n.p,i=class extends HTMLElement{constructor(e){super(e),K(e=this,n),1&n.u&&e.attachShadow({mode:"open"})}connectedCallback(){h&&(clearTimeout(h),h=null),m?a.push(this):le.jmp((()=>(e=>{if(!(1&le.u)){const t=I(e),n=t.j,l=()=>{};if(1&t.u)(null==t?void 0:t.S)||(null==t?void 0:t.A)&&t.A.then((()=>{}));else{t.u|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){R(t,t.v=n);break}}n.M&&Object.entries(n.M).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.u)){if(t.u|=32,n.N){const e=Z(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.p}#${t.W}" was not found`);l.isProxied||(V(l,n,2),l.isProxied=!0);const o=()=>{};t.u|=8;try{new l(t)}catch(e){X(e)}t.u&=-9,o()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.u|=128));if(l&&l.style){let e=l.style;const t=w(n);if(!ee.has(t)){const l=()=>{};((e,t,n)=>{let l=ee.get(e);re&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,ee.set(e,l)})(t,e,!!(1&n.u)),l()}}}const o=t.v,r=()=>T(t,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(e,t,n)}l()}})(this)))}disconnectedCallback(){le.jmp((()=>(async()=>{if(!(1&le.u)){const e=I(this);(null==e?void 0:e.S)||(null==e?void 0:e.A)&&e.A.then((()=>{}))}})()))}componentOnReady(){return I(this).A}};n.N=e[0],r.includes(l)||s.get(l)||(o.push(l),s.define(l,V(i,n,1)))}))})),o.length>0&&(p&&(u.textContent+=f),u.textContent+=o+"{visibility:hidden}.hydrated{visibility:inherit}",u.innerHTML.length)){u.setAttribute("data-styles","");const e=null!=(n=le.O)?n:l(ne);null!=e&&u.setAttribute("nonce",e),i.insertBefore(u,c?c.nextSibling:i.firstChild)}m=!1,a.length?a.map((e=>e.connectedCallback())):le.jmp((()=>h=setTimeout(U,30)))},z=e=>le.O=e,B=new WeakMap,I=e=>B.get(e),J=(e,t)=>B.set(t.S=e,t),K=(e,t)=>{const n={u:0,$hostElement$:e,j:t,P:new Map};return n.A=new Promise((e=>n.C=e)),e["s-p"]=[],e["s-rc"]=[],B.set(e,n)},Q=(e,t)=>t in e,X=(e,t)=>(0,console.error)(e,t),Y=new Map,Z=e=>{const t=e.p.replace(/-/g,"_"),n=e.N;if(!n)return;const l=Y.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(Y.set(n,e),e[t])),X)
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},ee=new Map,te="undefined"!=typeof window?window:{},ne=te.document||{head:{}},le={u:0,R:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},oe=e=>Promise.resolve(e),re=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),se=!1,ie=[],ce=[],ue=(e,t)=>n=>{e.push(n),se||(se=!0,t&&4&le.u?he(fe):le.raf(fe))},ae=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){X(e)}e.length=0},fe=()=>{ae(ie),ae(ce),(se=ie.length>0)&&le.raf(fe)},he=e=>oe().then(e),me=ue(ce,!0);export{_ as b,h,oe as p,J as r,z as s}
|