proto-table-wc 0.1.82 → 0.1.83
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-CnSz1Sdz.js → index-CzqIADKv.js} +86 -59
- 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-yMehNTuH.js → index-BMly9iLk.js} +86 -59
- package/dist/esm/loader.js +2 -2
- package/dist/esm/proto-table-wc.js +3 -3
- package/dist/proto-table-wc/p-BMly9iLk.js +2 -0
- package/dist/proto-table-wc/{p-4c404547.entry.js → p-eebf6e1d.entry.js} +1 -1
- package/dist/proto-table-wc/proto-table-wc.esm.js +1 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -4
- package/package.json +2 -2
- package/dist/proto-table-wc/p-yMehNTuH.js +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CzqIADKv.js');
|
|
4
4
|
|
|
5
5
|
const demoTableCss = () => `.detailWrapper{font-weight:100;font-size:13px;display:flex;flex-direction:column;justify-items:start;padding:5px;padding-left:30px}`;
|
|
6
6
|
|
|
@@ -4,7 +4,7 @@ const NAMESPACE = 'proto-table-wc';
|
|
|
4
4
|
const BUILD = /* proto-table-wc */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: false, state: true, updatable: true};
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
|
-
Stencil Client Platform v4.42.
|
|
7
|
+
Stencil Client Platform v4.42.1 | MIT Licensed | https://stenciljs.com
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
|
|
@@ -463,7 +463,20 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
465
|
} else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
|
|
466
|
-
const
|
|
466
|
+
const propName = memberName.slice(5);
|
|
467
|
+
let attrName;
|
|
468
|
+
{
|
|
469
|
+
const hostRef = getHostRef(elm);
|
|
470
|
+
if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
|
|
471
|
+
const memberMeta = hostRef.$cmpMeta$.$members$[propName];
|
|
472
|
+
if (memberMeta && memberMeta[1]) {
|
|
473
|
+
attrName = memberMeta[1];
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
if (!attrName) {
|
|
478
|
+
attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
479
|
+
}
|
|
467
480
|
if (newValue == null || newValue === false) {
|
|
468
481
|
if (newValue !== false || elm.getAttribute(attrName) === "") {
|
|
469
482
|
elm.removeAttribute(attrName);
|
|
@@ -906,7 +919,7 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
906
919
|
if (childrenPromises.length === 0) {
|
|
907
920
|
postUpdate();
|
|
908
921
|
} else {
|
|
909
|
-
Promise.all(childrenPromises).then(postUpdate);
|
|
922
|
+
Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
|
|
910
923
|
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
911
924
|
childrenPromises.length = 0;
|
|
912
925
|
}
|
|
@@ -1007,13 +1020,16 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1007
1020
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1008
1021
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
1009
1022
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
1010
|
-
if (
|
|
1023
|
+
if (flags & 2 /* hasRendered */) {
|
|
1011
1024
|
if (instance.componentShouldUpdate) {
|
|
1012
|
-
|
|
1025
|
+
const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
|
|
1026
|
+
if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
|
|
1013
1027
|
return;
|
|
1014
1028
|
}
|
|
1015
1029
|
}
|
|
1016
|
-
|
|
1030
|
+
if (!(flags & 16 /* isQueuedForUpdate */)) {
|
|
1031
|
+
scheduleUpdate(hostRef, false);
|
|
1032
|
+
}
|
|
1017
1033
|
}
|
|
1018
1034
|
}
|
|
1019
1035
|
};
|
|
@@ -1154,65 +1170,76 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1154
1170
|
// src/runtime/initialize-component.ts
|
|
1155
1171
|
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1156
1172
|
let Cstr;
|
|
1157
|
-
|
|
1158
|
-
hostRef.$flags$
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1173
|
+
try {
|
|
1174
|
+
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1175
|
+
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1176
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1177
|
+
if (bundleId) {
|
|
1178
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1179
|
+
if (CstrImport && "then" in CstrImport) {
|
|
1180
|
+
const endLoad = uniqueTime();
|
|
1181
|
+
Cstr = await CstrImport;
|
|
1182
|
+
endLoad();
|
|
1183
|
+
} else {
|
|
1184
|
+
Cstr = CstrImport;
|
|
1185
|
+
}
|
|
1186
|
+
if (!Cstr) {
|
|
1187
|
+
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
1188
|
+
}
|
|
1189
|
+
if (!Cstr.isProxied) {
|
|
1190
|
+
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1191
|
+
Cstr.isProxied = true;
|
|
1192
|
+
}
|
|
1193
|
+
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
|
1194
|
+
{
|
|
1195
|
+
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
1196
|
+
}
|
|
1197
|
+
try {
|
|
1198
|
+
new Cstr(hostRef);
|
|
1199
|
+
} catch (e) {
|
|
1200
|
+
consoleError(e, elm);
|
|
1201
|
+
}
|
|
1202
|
+
{
|
|
1203
|
+
hostRef.$flags$ &= -9 /* isConstructingInstance */;
|
|
1204
|
+
}
|
|
1205
|
+
endNewInstance();
|
|
1206
|
+
{
|
|
1207
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1208
|
+
}
|
|
1166
1209
|
} else {
|
|
1167
|
-
Cstr =
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
1171
|
-
}
|
|
1172
|
-
if (!Cstr.isProxied) {
|
|
1173
|
-
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1174
|
-
Cstr.isProxied = true;
|
|
1175
|
-
}
|
|
1176
|
-
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
|
1177
|
-
{
|
|
1178
|
-
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
1179
|
-
}
|
|
1180
|
-
try {
|
|
1181
|
-
new Cstr(hostRef);
|
|
1182
|
-
} catch (e) {
|
|
1183
|
-
consoleError(e, elm);
|
|
1184
|
-
}
|
|
1185
|
-
{
|
|
1186
|
-
hostRef.$flags$ &= -9 /* isConstructingInstance */;
|
|
1210
|
+
Cstr = elm.constructor;
|
|
1211
|
+
const cmpTag = elm.localName;
|
|
1212
|
+
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1187
1213
|
}
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1214
|
+
if (Cstr && Cstr.style) {
|
|
1215
|
+
let style;
|
|
1216
|
+
if (typeof Cstr.style === "string") {
|
|
1217
|
+
style = Cstr.style;
|
|
1218
|
+
}
|
|
1219
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
1220
|
+
if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
|
|
1221
|
+
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
1222
|
+
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1223
|
+
endRegisterStyles();
|
|
1224
|
+
}
|
|
1191
1225
|
}
|
|
1226
|
+
}
|
|
1227
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1228
|
+
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1229
|
+
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
1230
|
+
ancestorComponent["s-rc"].push(schedule);
|
|
1192
1231
|
} else {
|
|
1193
|
-
|
|
1194
|
-
const cmpTag = elm.localName;
|
|
1195
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1232
|
+
schedule();
|
|
1196
1233
|
}
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1206
|
-
endRegisterStyles();
|
|
1207
|
-
}
|
|
1234
|
+
} catch (e) {
|
|
1235
|
+
consoleError(e, elm);
|
|
1236
|
+
if (hostRef.$onRenderResolve$) {
|
|
1237
|
+
hostRef.$onRenderResolve$();
|
|
1238
|
+
hostRef.$onRenderResolve$ = void 0;
|
|
1239
|
+
}
|
|
1240
|
+
if (hostRef.$onReadyResolve$) {
|
|
1241
|
+
hostRef.$onReadyResolve$(elm);
|
|
1208
1242
|
}
|
|
1209
|
-
}
|
|
1210
|
-
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1211
|
-
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1212
|
-
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
1213
|
-
ancestorComponent["s-rc"].push(schedule);
|
|
1214
|
-
} else {
|
|
1215
|
-
schedule();
|
|
1216
1243
|
}
|
|
1217
1244
|
};
|
|
1218
1245
|
var fireConnectedCallback = (instance, elm) => {
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CzqIADKv.js');
|
|
4
4
|
var appGlobals = require('./app-globals-V2Kpy_OQ.js');
|
|
5
5
|
|
|
6
6
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Browser v4.42.
|
|
8
|
+
Stencil Client Patch Browser v4.42.1 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
var patchBrowser = () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-BMly9iLk.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
|
|
|
@@ -2,7 +2,7 @@ const NAMESPACE = 'proto-table-wc';
|
|
|
2
2
|
const BUILD = /* proto-table-wc */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: false, state: true, updatable: true};
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.42.
|
|
5
|
+
Stencil Client Platform v4.42.1 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
|
|
@@ -461,7 +461,20 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
463
|
} else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
|
|
464
|
-
const
|
|
464
|
+
const propName = memberName.slice(5);
|
|
465
|
+
let attrName;
|
|
466
|
+
{
|
|
467
|
+
const hostRef = getHostRef(elm);
|
|
468
|
+
if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
|
|
469
|
+
const memberMeta = hostRef.$cmpMeta$.$members$[propName];
|
|
470
|
+
if (memberMeta && memberMeta[1]) {
|
|
471
|
+
attrName = memberMeta[1];
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
if (!attrName) {
|
|
476
|
+
attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
477
|
+
}
|
|
465
478
|
if (newValue == null || newValue === false) {
|
|
466
479
|
if (newValue !== false || elm.getAttribute(attrName) === "") {
|
|
467
480
|
elm.removeAttribute(attrName);
|
|
@@ -904,7 +917,7 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
904
917
|
if (childrenPromises.length === 0) {
|
|
905
918
|
postUpdate();
|
|
906
919
|
} else {
|
|
907
|
-
Promise.all(childrenPromises).then(postUpdate);
|
|
920
|
+
Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
|
|
908
921
|
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
909
922
|
childrenPromises.length = 0;
|
|
910
923
|
}
|
|
@@ -1005,13 +1018,16 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1005
1018
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1006
1019
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
1007
1020
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
1008
|
-
if (
|
|
1021
|
+
if (flags & 2 /* hasRendered */) {
|
|
1009
1022
|
if (instance.componentShouldUpdate) {
|
|
1010
|
-
|
|
1023
|
+
const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
|
|
1024
|
+
if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
|
|
1011
1025
|
return;
|
|
1012
1026
|
}
|
|
1013
1027
|
}
|
|
1014
|
-
|
|
1028
|
+
if (!(flags & 16 /* isQueuedForUpdate */)) {
|
|
1029
|
+
scheduleUpdate(hostRef, false);
|
|
1030
|
+
}
|
|
1015
1031
|
}
|
|
1016
1032
|
}
|
|
1017
1033
|
};
|
|
@@ -1152,65 +1168,76 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1152
1168
|
// src/runtime/initialize-component.ts
|
|
1153
1169
|
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1154
1170
|
let Cstr;
|
|
1155
|
-
|
|
1156
|
-
hostRef.$flags$
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1171
|
+
try {
|
|
1172
|
+
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1173
|
+
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1174
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1175
|
+
if (bundleId) {
|
|
1176
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1177
|
+
if (CstrImport && "then" in CstrImport) {
|
|
1178
|
+
const endLoad = uniqueTime();
|
|
1179
|
+
Cstr = await CstrImport;
|
|
1180
|
+
endLoad();
|
|
1181
|
+
} else {
|
|
1182
|
+
Cstr = CstrImport;
|
|
1183
|
+
}
|
|
1184
|
+
if (!Cstr) {
|
|
1185
|
+
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
1186
|
+
}
|
|
1187
|
+
if (!Cstr.isProxied) {
|
|
1188
|
+
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1189
|
+
Cstr.isProxied = true;
|
|
1190
|
+
}
|
|
1191
|
+
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
|
1192
|
+
{
|
|
1193
|
+
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
1194
|
+
}
|
|
1195
|
+
try {
|
|
1196
|
+
new Cstr(hostRef);
|
|
1197
|
+
} catch (e) {
|
|
1198
|
+
consoleError(e, elm);
|
|
1199
|
+
}
|
|
1200
|
+
{
|
|
1201
|
+
hostRef.$flags$ &= -9 /* isConstructingInstance */;
|
|
1202
|
+
}
|
|
1203
|
+
endNewInstance();
|
|
1204
|
+
{
|
|
1205
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1206
|
+
}
|
|
1164
1207
|
} else {
|
|
1165
|
-
Cstr =
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
1169
|
-
}
|
|
1170
|
-
if (!Cstr.isProxied) {
|
|
1171
|
-
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1172
|
-
Cstr.isProxied = true;
|
|
1173
|
-
}
|
|
1174
|
-
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
|
1175
|
-
{
|
|
1176
|
-
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
1177
|
-
}
|
|
1178
|
-
try {
|
|
1179
|
-
new Cstr(hostRef);
|
|
1180
|
-
} catch (e) {
|
|
1181
|
-
consoleError(e, elm);
|
|
1182
|
-
}
|
|
1183
|
-
{
|
|
1184
|
-
hostRef.$flags$ &= -9 /* isConstructingInstance */;
|
|
1208
|
+
Cstr = elm.constructor;
|
|
1209
|
+
const cmpTag = elm.localName;
|
|
1210
|
+
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1185
1211
|
}
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1212
|
+
if (Cstr && Cstr.style) {
|
|
1213
|
+
let style;
|
|
1214
|
+
if (typeof Cstr.style === "string") {
|
|
1215
|
+
style = Cstr.style;
|
|
1216
|
+
}
|
|
1217
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
1218
|
+
if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
|
|
1219
|
+
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
1220
|
+
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1221
|
+
endRegisterStyles();
|
|
1222
|
+
}
|
|
1189
1223
|
}
|
|
1224
|
+
}
|
|
1225
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1226
|
+
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1227
|
+
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
1228
|
+
ancestorComponent["s-rc"].push(schedule);
|
|
1190
1229
|
} else {
|
|
1191
|
-
|
|
1192
|
-
const cmpTag = elm.localName;
|
|
1193
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1230
|
+
schedule();
|
|
1194
1231
|
}
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1204
|
-
endRegisterStyles();
|
|
1205
|
-
}
|
|
1232
|
+
} catch (e) {
|
|
1233
|
+
consoleError(e, elm);
|
|
1234
|
+
if (hostRef.$onRenderResolve$) {
|
|
1235
|
+
hostRef.$onRenderResolve$();
|
|
1236
|
+
hostRef.$onRenderResolve$ = void 0;
|
|
1237
|
+
}
|
|
1238
|
+
if (hostRef.$onReadyResolve$) {
|
|
1239
|
+
hostRef.$onReadyResolve$(elm);
|
|
1206
1240
|
}
|
|
1207
|
-
}
|
|
1208
|
-
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1209
|
-
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1210
|
-
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
1211
|
-
ancestorComponent["s-rc"].push(schedule);
|
|
1212
|
-
} else {
|
|
1213
|
-
schedule();
|
|
1214
1241
|
}
|
|
1215
1242
|
};
|
|
1216
1243
|
var fireConnectedCallback = (instance, 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-BMly9iLk.js';
|
|
2
|
+
export { s as setNonce } from './index-BMly9iLk.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-DQuL1Twl.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-BMly9iLk.js';
|
|
2
|
+
export { s as setNonce } from './index-BMly9iLk.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-DQuL1Twl.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.42.
|
|
6
|
+
Stencil Client Patch Browser v4.42.1 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
var patchBrowser = () => {
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var t,e=(t,e)=>{var n;Object.entries(null!=(n=e.o.t)?n:{}).map((([n,[o]])=>{if(31&o||32&o){const o=t[n],l=function(t,e){for(;t;){const n=Object.getOwnPropertyDescriptor(t,e);if(null==n?void 0:n.get)return n;t=Object.getPrototypeOf(t)}}(Object.getPrototypeOf(t),n)||Object.getOwnPropertyDescriptor(t,n);l&&Object.defineProperty(t,n,{get(){return l.get.call(this)},set(t){l.set.call(this,t)},configurable:!0,enumerable:!0}),t[n]=e.l.has(n)?e.l.get(n):o}}))},n=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},o=(t,n)=>{n&&(t.__stencil__getHostRef=()=>n,n.i=t,512&n.o.u&&e(t,n))},l=(t,e)=>e in t,i=(t,e)=>(0,console.error)(t,e),s=new Map,r=new Map,c="undefined"!=typeof window?window:{},u={u:0,h:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},f=t=>Promise.resolve(t),a=(()=>{try{return!!c.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),d=!!a&&(()=>!!c.document&&Object.getOwnPropertyDescriptor(c.document.adoptedStyleSheets,"length").writable)(),h=!1,p=[],m=[],v=(t,e)=>n=>{t.push(n),h||(h=!0,e&&4&u.u?w(y):u.raf(y))},b=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){i(t)}t.length=0},y=()=>{b(p),b(m),(h=p.length>0)&&u.raf(y)},w=t=>f().then(t),$=v(m,!0);function g(){const e=this.attachShadow({mode:"open"});void 0===t&&(t=null),t&&(d?e.adoptedStyleSheets.push(t):e.adoptedStyleSheets=[...e.adoptedStyleSheets,t])}function j(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}var O,S=new WeakMap,k=t=>"sc-"+t.p,C=t=>"object"==(t=typeof t)||"function"===t,E=(t,e,...n)=>{let o=null,l=null,i=!1,s=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!C(o))&&(o+=""),i&&s?r[r.length-1].m+=o:r.push(i?M(null,o):o),s=i)};if(c(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const u=M(t,null);return u.v=e,r.length>0&&(u.$=r),u.j=l,u},M=(t,e)=>({u:0,O:t,m:null!=e?e:null,S:null,$:null,v:null,j:null}),x={},R=t=>(null==t||C(t),t),D=(t,e,o,i,s,r)=>{if(o===i)return;let f=l(t,e),a=e.toLowerCase();if("class"===e){const e=t.classList,n=A(o);let l=A(i);e.remove(...n.filter((t=>t&&!l.includes(t)))),e.add(...l.filter((t=>t&&!n.includes(t))))}else if("key"===e);else if("ref"===e)i&&_(i,t);else if(f||"o"!==e[0]||"n"!==e[1]){if("a"===e[0]&&e.startsWith("attr:")){const o=e.slice(5);let l;{const e=n(t);if(e&&e.o&&e.o.t){const t=e.o.t[o];t&&t[1]&&(l=t[1])}}return l||(l=o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==i||!1===i?!1===i&&""!==t.getAttribute(l)||t.removeAttribute(l):t.setAttribute(l,!0===i?"":i))}if("p"===e[0]&&e.startsWith("prop:")){const n=e.slice(5);try{t[n]=i}catch(t){}return}{const n=C(i);if((f||n&&null!==i)&&!s)try{if(t.tagName.includes("-"))t[e]!==i&&(t[e]=i);else{const n=null==i?"":i;"list"===e?f=!1:null!=o&&t[e]===n||("function"==typeof t.__lookupSetter__(e)?t[e]=n:t.setAttribute(e,n))}}catch(t){}null==i||!1===i?!1===i&&""!==t.getAttribute(e)||t.removeAttribute(e):(!f||4&r||s)&&!n&&1===t.nodeType&&t.setAttribute(e,i=!0===i?"":i)}}else if(e="-"===e[2]?e.slice(3):l(c,a)?a.slice(2):a[2]+e.slice(3),o||i){const n=e.endsWith(L);e=e.replace(N,""),o&&u.rel(t,e,o,n),i&&u.ael(t,e,i,n)}},P=/\s/,A=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(P):[]),L="Capture",N=RegExp(L+"$"),U=(t,e,n)=>{const o=11===e.S.nodeType&&e.S.host?e.S.host:e.S,l=t&&t.v||{},i=e.v||{};for(const t of T(Object.keys(l)))t in i||D(o,t,l[t],void 0,n,e.u);for(const t of T(Object.keys(i)))D(o,t,l[t],i[t],n,e.u)};function T(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var W=!1,z=[],H=[],V=(t,e,n)=>{const o=e.$[n];let l,i,s=0;if(null!=o.m)l=o.S=c.document.createTextNode(o.m);else{if(W||(W="svg"===o.O),!c.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=o.S=c.document.createElementNS(W?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.O),W&&"foreignObject"===o.O&&(W=!1),U(null,o,W),o.$){const e="template"===o.O?l.content:l;for(s=0;s<o.$.length;++s)i=V(t,o,s),i&&e.appendChild(i)}"svg"===o.O?W=!1:"foreignObject"===l.tagName&&(W=!0)}return l["s-hn"]=O,l},q=(t,e,n,o,l,i)=>{let s,r=t;for(r.shadowRoot&&r.tagName===O&&(r=r.shadowRoot),"template"===n.O&&(r=r.content);l<=i;++l)o[l]&&(s=V(null,n,l),s&&(o[l].S=s,B(r,s,e)))},F=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.S;Z(e),t&&t.remove()}}},G=(t,e,n=!1)=>t.O===e.O&&(n?(n&&!t.j&&e.j&&(t.j=e.j),!0):t.j===e.j),Y=(t,e,n=!1)=>{const o=e.S=t.S,l=t.$,i=e.$,s=e.O,r=e.m;null==r?(U(t,e,W="svg"===s||"foreignObject"!==s&&W),null!==l&&null!==i?((t,e,n,o,l=!1)=>{let i,s,r=0,c=0,u=0,f=0,a=e.length-1,d=e[0],h=e[a],p=o.length-1,m=o[0],v=o[p];const b="template"===n.O?t.content:t;for(;r<=a&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--a];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(G(d,m,l))Y(d,m,l),d=e[++r],m=o[++c];else if(G(h,v,l))Y(h,v,l),h=e[--a],v=o[--p];else if(G(d,v,l))Y(d,v,l),B(b,d.S,h.S.nextSibling),d=e[++r],v=o[--p];else if(G(h,m,l))Y(h,m,l),B(b,h.S,d.S),h=e[--a],m=o[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].j&&e[f].j===m.j){u=f;break}u>=0?(s=e[u],s.O!==m.O?i=V(e&&e[c],n,u):(Y(s,m,l),e[u]=void 0,i=s.S),m=o[++c]):(i=V(e&&e[c],n,c),m=o[++c]),i&&B(d.S.parentNode,i,d.S)}r>a?q(t,null==o[p+1]?null:o[p+1].S,n,o,c,p):c>p&&F(e,r,a)})(o,l,e,i,n):null!==i?(null!==t.m&&(o.textContent=""),q(o,null,e,i,0,i.length-1)):!n&&null!==l&&F(l,0,l.length-1),W&&"svg"===s&&(W=!1)):t.m!==r&&(o.data=r)},Z=t=>{t.v&&t.v.ref&&z.push((()=>t.v.ref(null))),t.$&&t.$.map(Z)},_=(t,e)=>{H.push((()=>t(e)))},B=(t,e,n)=>t.__insertBefore?t.__insertBefore(e,n):null==t?void 0:t.insertBefore(e,n),I=(t,e)=>{if(e&&!t.k&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.k=()=>{e["s-p"].splice(n-1,1),o()})))}},J=(t,e)=>{if(t.u|=16,4&t.u)return void(t.u|=512);I(t,t.C);const n=()=>K(t,e);if(!e)return $(n);queueMicrotask((()=>{n()}))},K=(t,e)=>{const n=t.$hostElement$,o=t.i;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 e?(t.M.length&&t.M.forEach((t=>t(n))),l=lt(o,"componentWillLoad",void 0,n)):l=lt(o,"componentWillUpdate",void 0,n),l=Q(l,(()=>lt(o,"componentWillRender",void 0,n))),Q(l,(()=>tt(t,o,e)))},Q=(t,e)=>X(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),X=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,tt=async(t,e,n)=>{var o;const l=t.$hostElement$,i=l["s-rc"];n&&(t=>{const e=t.o,n=t.$hostElement$,o=e.u,l=((t,e)=>{var n,o,l;const i=k(e),s=r.get(i);if(!c.document)return i;if(t=11===t.nodeType?t:c.document,s)if("string"==typeof s){let l,r=S.get(t=t.head||t);if(r||S.set(t,r=new Set),!r.has(i)){l=c.document.createElement("style"),l.textContent=s;const f=null!=(n=u.R)?n:j(c.document);if(null!=f&&l.setAttribute("nonce",f),!(1&e.u))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(l,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(a){const e=new(null!=(o=t.defaultView)?o:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(s),d?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.textContent=s+e.textContent:t.prepend(l)}else t.append(l);1&e.u&&t.insertBefore(l,null),4&e.u&&(l.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),r&&r.add(i)}}else{let e=S.get(t);if(e||S.set(t,e=new Set),!e.has(i)){const n=null!=(l=t.defaultView)?l:t.ownerDocument.defaultView;let o;if(s.constructor===n.CSSStyleSheet)o=s;else{o=new n.CSSStyleSheet;for(let t=0;t<s.cssRules.length;t++)o.insertRule(s.cssRules[t].cssText,t)}d?t.adoptedStyleSheets.push(o):t.adoptedStyleSheets=[...t.adoptedStyleSheets,o],e.add(i)}}return i})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);et(t,e,l,n),i&&(i.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>nt(t);0===e.length?n():(Promise.all(e).then(n).catch(n),t.u|=4,e.length=0)}},et=(t,e,n,o)=>{try{e=e.render(),t.u&=-17,t.u|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.D||M(null,null),i=(t=>t&&t.O===x)(e)?e:E(null,null,e);if(O=o.tagName,n&&i.v)for(const t of Object.keys(i.v))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(i.v[t]=o[t]);i.O=null,i.u|=4,t.D=i,i.S=l.S=o.shadowRoot||o,Y(l,i,n),z.forEach((t=>t())),z.length=0,H.forEach((t=>t())),H.length=0})(t,e,o)}catch(e){i(e,t.$hostElement$)}return null},nt=t=>{const e=t.$hostElement$,n=t.i,o=t.C;lt(n,"componentDidRender",void 0,e),64&t.u?lt(n,"componentDidUpdate",void 0,e):(t.u|=64,it(e),lt(n,"componentDidLoad",void 0,e),t.P(e),o||ot()),t.k&&(t.k(),t.k=void 0),512&t.u&&w((()=>J(t,!1))),t.u&=-517},ot=()=>{w((()=>(t=>{const e=u.ce("appload",{detail:{namespace:"proto-table-wc"}});return t.dispatchEvent(e),e})(c)))},lt=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){i(t,o)}},it=t=>t.classList.add("hydrated"),st=(t,e,o,l)=>{const i=n(t);if(!i)return;if(!i)throw Error(`Couldn't find host element for "${l.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/stenciljs/core/issues/5457).`);const s=i.l.get(e),r=i.u,c=i.i;if(o=R(o),(!(8&r)||void 0===s)&&o!==s&&(!Number.isNaN(s)||!Number.isNaN(o))&&(i.l.set(e,o),2&r)){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(o,s,e)&&!(16&r))return;16&r||J(i,!1)}},rt=(t,e,o)=>{var l,i;const s=t.prototype;if(e.t){const r=Object.entries(null!=(l=e.t)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:i,set:r}=Object.getOwnPropertyDescriptor(s,t)||{};i&&(e.t[t][0]|=2048),r&&(e.t[t][0]|=4096),(1&o||!i)&&Object.defineProperty(s,t,{get(){{if(!(2048&e.t[t][0]))return((t,e)=>n(this).l.get(e))(0,t);const o=n(this),l=o?o.i:s;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(s,t,{set(i){const s=n(this);if(s){if(r)return void 0===(32&l?this[t]:s.$hostElement$[t])&&s.l.get(t)&&(i=s.l.get(t)),r.call(this,R(i)),void st(this,t,i=32&l?this[t]:s.$hostElement$[t],e);{if(!(1&o&&4096&e.t[t][0]))return st(this,t,i,e),void(1&o&&!s.i&&s.M.push((()=>{4096&e.t[t][0]&&s.i[t]!==s.l.get(t)&&(s.i[t]=i)})));const n=()=>{const n=s.i[t];!s.l.get(t)&&n&&s.l.set(t,n),s.i[t]=R(i),st(this,t,s.i[t],e)};s.i?n():s.M.push((()=>{n()}))}}}})}})),1&o){const o=new Map;s.attributeChangedCallback=function(t,l,i){u.jmp((()=>{var c;const u=o.get(t),f=n(this);if(this.hasOwnProperty(u)&&(i=this[u],delete this[u]),s.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==i)return;if(null==u){const n=null==f?void 0:f.u;if(f&&n&&!(8&n)&&i!==l){const o=f.i,s=null==(c=e.A)?void 0:c[t];null==s||s.forEach((e=>{const[[s,r]]=Object.entries(e);null!=o[s]&&(128&n||1&r)&&o[s].call(o,i,l,t)}))}return}const a=r.find((([t])=>t===u));a&&4&a[1][0]&&(i=null!==i&&"false"!==i);const d=Object.getOwnPropertyDescriptor(s,u);i==this[u]||d.get&&!d.set||(this[u]=i)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=e.A)?i:{}),...r.filter((([t,e])=>31&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},ct=(t,e)=>{lt(t,"connectedCallback",void 0,e)},ut=(t,e)=>{lt(t,"disconnectedCallback",void 0,e||t)},ft=(t,e={})=>{var o;if(!c.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const l=[],f=e.exclude||[],d=c.customElements,h=c.document.head,p=h.querySelector("meta[charset]"),m=c.document.createElement("style"),v=[];let b,y=!0;if(Object.assign(u,e),u.h=new URL(e.resourcesUrl||"./",c.document.baseURI).href,t.map((t=>{t[1].map((e=>{const o={u:e[0],p:e[1],t:e[2],L:e[3]};o.t=e[2];const c=o.p,h=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){if(super(t),((t,e)=>{const n={u:0,$hostElement$:t,o:e,l:new Map,N:new Map};n.U=new Promise((t=>n.P=t)),t["s-p"]=[],t["s-rc"]=[],n.M=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,o),1&o.u)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else g.call(t,o)}connectedCallback(){n(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),y?v.push(this):u.jmp((()=>(t=>{if(!(1&u.u)){const e=n(t);if(!e)return;const o=e.o,l=()=>{};if(1&e.u)(null==e?void 0:e.i)?ct(e.i,t):(null==e?void 0:e.U)&&e.U.then((()=>ct(e.i,t)));else{e.u|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){I(e,e.C=n);break}}o.t&&Object.entries(o.t).map((([e,[n]])=>{if(31&n&&e in t&&t[e]!==Object.prototype[e]){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;try{if(!(32&e.u)){if(e.u|=32,n.T){const l=((t,e)=>{const n=t.p.replace(/-/g,"_"),o=t.T;if(!o)return;const l=s.get(o);return l?l[n]:import(`./${o}.entry.js`).then((t=>(s.set(o,t),t[n])),(t=>{i(t,e.$hostElement$)}))
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(l&&"then"in l){const t=()=>{};o=await l,t()}else o=l;if(!o)throw Error(`Constructor for "${n.p}#${e.W}" was not found`);o.isProxied||(rt(o,n,2),o.isProxied=!0);const r=()=>{};e.u|=8;try{new o(e)}catch(e){i(e,t)}e.u&=-9,r(),ct(e.i,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.u|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=k(n);if(!r.has(e)){const o=()=>{};((t,e,n)=>{let o=r.get(t);a&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,r.set(t,o)})(e,t,!!(1&n.u)),o()}}}const l=e.C,c=()=>J(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()}catch(n){i(n,t),e.k&&(e.k(),e.k=void 0),e.P&&e.P(t)}})(t,e,o)}l()}})(this))))}disconnectedCallback(){u.jmp((()=>(async t=>{if(!(1&u.u)){const e=n(t);(null==e?void 0:e.i)?ut(e.i,t):(null==e?void 0:e.U)&&e.U.then((()=>ut(e.i,t)))}S.has(t)&&S.delete(t),t.shadowRoot&&S.has(t.shadowRoot)&&S.delete(t.shadowRoot)})(this))),u.raf((()=>{var t;const e=n(this);if(!e)return;const o=v.findIndex((t=>t===this));o>-1&&v.splice(o,1),(null==(t=null==e?void 0:e.D)?void 0:t.S)instanceof Node&&!e.D.S.isConnected&&delete e.D.S}))}componentOnReady(){var t;return null==(t=n(this))?void 0:t.U}};o.T=t[0],f.includes(c)||d.get(c)||(l.push(c),d.define(c,rt(h,o,1)))}))})),l.length>0&&(m.textContent+=l.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",m.innerHTML.length)){m.setAttribute("data-styles","");const t=null!=(o=u.R)?o:j(c.document);null!=t&&m.setAttribute("nonce",t),h.insertBefore(m,p?p.nextSibling:h.firstChild)}y=!1,v.length?v.map((t=>t.connectedCallback())):u.jmp((()=>b=setTimeout(ot,30)))},at=t=>u.R=t;export{ft as b,E as h,f as p,o as r,at as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t}from"./p-
|
|
1
|
+
import{r as e,h as t}from"./p-BMly9iLk.js";const r=class{constructor(r){e(this,r),this.fields=[{label:"Date",prop:"date"},{label:"List Price",prop:"price"},{label:"% of Market",prop:"market"},{label:"ProfitTime Score",prop:"score"}],this.items=[],this.table=void 0,this.renderDetails=e=>{const{tags:r=[]}=e;return t("div",{class:"detailWrapper"},t("span",null,r.length," details..."),t("ul",null,r.map((e=>t("li",null,e)))))}}componentWillLoad(){this.items=[{date:"08/30/2020",price:"$24,000",market:"98%",score:"No Score",tags:["one","two","three"]},{date:"08/31/2020",price:"$24,000",market:"99%",score:"No Score",tags:["uno","duo"]},{date:"09/01/2020",price:"$27,000",market:"102%",score:"Platinum"},{date:"09/02/2020",price:"$27,423",market:"104%",score:"Platinum",tags:["dog","cat","fish","hamster"]},{date:"09/03/2020",price:"$27,521",market:"106%",score:"Platinum",tags:["4wd","sports"]},{date:"09/04/2020",price:"$27,687",market:"107%",score:"Platinum",tags:["leather","chrome"]}]}componentDidLoad(){const{table:e,items:t,fields:r}=this;e.data=t,e.fields=r,e.details=this.renderDetails}render(){return t("proto-table",{key:"aa5f26287b85073afb5bbd3c133f9ad388fc8138",ref:e=>this.table=e})}};r.style=".detailWrapper{font-weight:100;font-size:13px;display:flex;flex-direction:column;justify-items:start;padding:5px;padding-left:30px}";const s={down:"M12 15.4L6.6 10 8 8.6l4 4 4-4 1.4 1.4z",up:"M16 15.4l-4-4-4 4L6.6 14 12 8.6l5.4 5.4z",left:"M14 17.4L8.6 12 14 6.6 15.4 8l-4 4 4 4z",right:"M10 17.4L8.6 16l4-4-4-4L10 6.6l5.4 5.4z",more:"M12 14a2 2 0 100-4 2 2 0 000 4zm-6 0a2 2 0 100-4 2 2 0 000 4zm12 0a2 2 0 100-4 2 2 0 000 4z","arrow-up":"M5.3 10.7l1.4 1.4L11 7.8V20h2V7.8l4.3 4.3 1.4-1.4L12 4z","arrow-down":"M18.7 13.3l-1.4-1.4-4.3 4.3V4h-2v12.2l-4.3-4.3-1.4 1.4L12 20z"},i={right:"show",down:"hide","arrow-up":"sort","arrow-down":"sort"},l=class{constructor(r){e(this,r),this.data=[],this.details=void 0,this.fields=[],this.expanded=void 0,this.sort=void 0,this.clicks=0,this.protoIcon=(e,r,l=24)=>{const o=s[e];return t("svg",{width:l,height:l,viewBox:"0 0 24 24",role:"img","aria-labelledby":"title"},t("title",null,(e=>i[e])(e)),t("g",{fill:r},t("path",{d:o})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},this.handleCellClick=(e,t)=>()=>{0===e&&(this.expanded=this.expanded===t?void 0:t)},this.handleSortClick=e=>()=>{this.sort===e?2===this.clicks?(this.clicks=0,this.sort=void 0):this.clicks=this.clicks+1:(this.sort=e,this.clicks=1)},this.iconFor=e=>this.sort===e&&2===this.clicks?"arrow-up":"arrow-down",this.header=()=>{const{fields:e,iconFor:r,protoIcon:s}=this;return t("div",{class:"header"},e.map((({label:e},i)=>{const l=i===this.sort?"headerCell sort":"headerCell",o=r(i);return t("div",{class:l,onClick:this.handleSortClick(i)},s(o),t("span",null,e))})))},this.row=(e,r)=>{const{fields:s,protoIcon:i}=this;return t("div",{class:"rowContainer"},t("div",{class:this.expanded===r?"row expanded":"row"},s.map((({prop:s},l)=>t("div",{class:l===this.sort?"cell sort":"cell",onClick:this.handleCellClick(l,r)},i(0===l&&this.details?this.expanded===r?"down":"right":"pad"),e[s])))),this.details&&this.expanded===r&&this.details(e))}}render(){const e=this.data||[];return t("div",{key:"c30742fde0de976c553234528a7bfb6ce10d3ef5",class:"table"},this.header(),e.map(((e,t)=>this.row(e,t))))}};l.style=".table{font-weight:400;font-size:13px;display:flex;flex-direction:column;width:100%;border:1px solid var(--clrs-navy);border-radius:2px}.table svg{fill:var(--clrs-navy)}.header{display:flex}.headerCell{flex-basis:100%;display:flex;align-items:center;justify-items:start;border-right:1px solid var(--clrs-navy);border-bottom:1px solid var(--clrs-navy);padding:5px;cursor:pointer}.headerCell svg g{display:none}.headerCell.sort svg g{display:inline}.headerCell:hover svg g{display:inline}.headerCell:hover{background-color:var(--clrs-silver)}.headerCell:last-child{border-right:none}.cell{flex-basis:100%;display:flex;align-items:center;justify-items:start;padding:5px}.cell:first-child svg{cursor:pointer}.sort{background-color:var(--cx-column-sort)}.row{display:flex;justify-items:stretch;width:100%}.row.expanded{background-color:var(--cx-row-expanded)}.row.expanded svg{fill:var(--clrs-red)}.row:hover{background-color:var(--cx-row-hover)}";export{r as demo_table,l as proto_table}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-
|
|
1
|
+
import{p as e,b as t}from"./p-BMly9iLk.js";export{s as setNonce}from"./p-BMly9iLk.js";import{g as a}from"./p-DQuL1Twl.js";(()=>{const s=import.meta.url,t={};return""!==s&&(t.resourcesUrl=new URL(".",s).href),e(t)})().then((async e=>(await a(),t([["p-eebf6e1d",[[1,"demo-table"],[0,"proto-table",{data:[16],details:[8],fields:[16],expanded:[32],sort:[32],clicks:[32]}]]]],e))));
|
|
@@ -1438,8 +1438,6 @@ export declare namespace JSXBase {
|
|
|
1438
1438
|
results?: number;
|
|
1439
1439
|
security?: string;
|
|
1440
1440
|
unselectable?: boolean;
|
|
1441
|
-
[key: `attr:${string}`]: string;
|
|
1442
|
-
[key: `prop:${string}`]: any;
|
|
1443
1441
|
}
|
|
1444
1442
|
interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
|
|
1445
1443
|
class?: string | {
|
|
@@ -1701,8 +1699,6 @@ export declare namespace JSXBase {
|
|
|
1701
1699
|
yChannelSelector?: string;
|
|
1702
1700
|
z?: number | string;
|
|
1703
1701
|
zoomAndPan?: string;
|
|
1704
|
-
[key: `attr:${string}`]: string;
|
|
1705
|
-
[key: `prop:${string}`]: any;
|
|
1706
1702
|
}
|
|
1707
1703
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */
|
|
1708
1704
|
interface ToggleEvent extends Event {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "proto-table-wc",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.83",
|
|
4
4
|
"description": "Stencil Component Starter",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"loader/"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@stencil/core": "4.42.
|
|
18
|
+
"@stencil/core": "4.42.1"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"bumpp": "10.4.1",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var t,e=(t,e)=>{var n;Object.entries(null!=(n=e.o.t)?n:{}).map((([n,[o]])=>{if(31&o||32&o){const o=t[n],l=function(t,e){for(;t;){const n=Object.getOwnPropertyDescriptor(t,e);if(null==n?void 0:n.get)return n;t=Object.getPrototypeOf(t)}}(Object.getPrototypeOf(t),n)||Object.getOwnPropertyDescriptor(t,n);l&&Object.defineProperty(t,n,{get(){return l.get.call(this)},set(t){l.set.call(this,t)},configurable:!0,enumerable:!0}),t[n]=e.l.has(n)?e.l.get(n):o}}))},n=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},o=(t,n)=>{n&&(t.__stencil__getHostRef=()=>n,n.i=t,512&n.o.u&&e(t,n))},l=(t,e)=>e in t,i=(t,e)=>(0,console.error)(t,e),s=new Map,r=new Map,c="undefined"!=typeof window?window:{},u={u:0,h:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},f=t=>Promise.resolve(t),a=(()=>{try{return!!c.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),d=!!a&&(()=>!!c.document&&Object.getOwnPropertyDescriptor(c.document.adoptedStyleSheets,"length").writable)(),h=!1,p=[],m=[],v=(t,e)=>n=>{t.push(n),h||(h=!0,e&&4&u.u?w(y):u.raf(y))},b=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){i(t)}t.length=0},y=()=>{b(p),b(m),(h=p.length>0)&&u.raf(y)},w=t=>f().then(t),$=v(m,!0);function g(){const e=this.attachShadow({mode:"open"});void 0===t&&(t=null),t&&(d?e.adoptedStyleSheets.push(t):e.adoptedStyleSheets=[...e.adoptedStyleSheets,t])}function j(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}var O,S=new WeakMap,k=t=>"sc-"+t.p,C=t=>"object"==(t=typeof t)||"function"===t,E=(t,e,...n)=>{let o=null,l=null,i=!1,s=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!C(o))&&(o+=""),i&&s?r[r.length-1].m+=o:r.push(i?M(null,o):o),s=i)};if(c(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const u=M(t,null);return u.v=e,r.length>0&&(u.$=r),u.j=l,u},M=(t,e)=>({u:0,O:t,m:null!=e?e:null,S:null,$:null,v:null,j:null}),x={},R=t=>(null==t||C(t),t),D=(t,e,n,o,i,s)=>{if(n===o)return;let r=l(t,e),f=e.toLowerCase();if("class"===e){const e=t.classList,l=L(n);let i=L(o);e.remove(...l.filter((t=>t&&!i.includes(t)))),e.add(...i.filter((t=>t&&!l.includes(t))))}else if("key"===e);else if("ref"===e)o&&B(o,t);else if(r||"o"!==e[0]||"n"!==e[1]){if("a"===e[0]&&e.startsWith("attr:")){const n=e.slice(5);return void(null==o||!1===o?!1===o&&""!==t.getAttribute(n)||t.removeAttribute(n):t.setAttribute(n,!0===o?"":o))}if("p"===e[0]&&e.startsWith("prop:")){const n=e.slice(5);try{t[n]=o}catch(t){}return}{const l=C(o);if((r||l&&null!==o)&&!i)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?r=!1:null!=n&&t[e]===l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&s||i)&&!l&&1===t.nodeType&&t.setAttribute(e,o=!0===o?"":o)}}else if(e="-"===e[2]?e.slice(3):l(c,f)?f.slice(2):f[2]+e.slice(3),n||o){const l=e.endsWith(N);e=e.replace(U,""),n&&u.rel(t,e,n,l),o&&u.ael(t,e,o,l)}},P=/\s/,L=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(P):[]),N="Capture",U=RegExp(N+"$"),A=(t,e,n)=>{const o=11===e.S.nodeType&&e.S.host?e.S.host:e.S,l=t&&t.v||{},i=e.v||{};for(const t of T(Object.keys(l)))t in i||D(o,t,l[t],void 0,n,e.u);for(const t of T(Object.keys(i)))D(o,t,l[t],i[t],n,e.u)};function T(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var W=!1,H=[],V=[],q=(t,e,n)=>{const o=e.$[n];let l,i,s=0;if(null!=o.m)l=o.S=c.document.createTextNode(o.m);else{if(W||(W="svg"===o.O),!c.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=o.S=c.document.createElementNS(W?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.O),W&&"foreignObject"===o.O&&(W=!1),A(null,o,W),o.$){const e="template"===o.O?l.content:l;for(s=0;s<o.$.length;++s)i=q(t,o,s),i&&e.appendChild(i)}"svg"===o.O?W=!1:"foreignObject"===l.tagName&&(W=!0)}return l["s-hn"]=O,l},z=(t,e,n,o,l,i)=>{let s,r=t;for(r.shadowRoot&&r.tagName===O&&(r=r.shadowRoot),"template"===n.O&&(r=r.content);l<=i;++l)o[l]&&(s=q(null,n,l),s&&(o[l].S=s,I(r,s,e)))},F=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.S;_(e),t&&t.remove()}}},G=(t,e,n=!1)=>t.O===e.O&&(n?(n&&!t.j&&e.j&&(t.j=e.j),!0):t.j===e.j),Y=(t,e,n=!1)=>{const o=e.S=t.S,l=t.$,i=e.$,s=e.O,r=e.m;null==r?(A(t,e,W="svg"===s||"foreignObject"!==s&&W),null!==l&&null!==i?((t,e,n,o,l=!1)=>{let i,s,r=0,c=0,u=0,f=0,a=e.length-1,d=e[0],h=e[a],p=o.length-1,m=o[0],v=o[p];const b="template"===n.O?t.content:t;for(;r<=a&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--a];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(G(d,m,l))Y(d,m,l),d=e[++r],m=o[++c];else if(G(h,v,l))Y(h,v,l),h=e[--a],v=o[--p];else if(G(d,v,l))Y(d,v,l),I(b,d.S,h.S.nextSibling),d=e[++r],v=o[--p];else if(G(h,m,l))Y(h,m,l),I(b,h.S,d.S),h=e[--a],m=o[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].j&&e[f].j===m.j){u=f;break}u>=0?(s=e[u],s.O!==m.O?i=q(e&&e[c],n,u):(Y(s,m,l),e[u]=void 0,i=s.S),m=o[++c]):(i=q(e&&e[c],n,c),m=o[++c]),i&&I(d.S.parentNode,i,d.S)}r>a?z(t,null==o[p+1]?null:o[p+1].S,n,o,c,p):c>p&&F(e,r,a)})(o,l,e,i,n):null!==i?(null!==t.m&&(o.textContent=""),z(o,null,e,i,0,i.length-1)):!n&&null!==l&&F(l,0,l.length-1),W&&"svg"===s&&(W=!1)):t.m!==r&&(o.data=r)},_=t=>{t.v&&t.v.ref&&H.push((()=>t.v.ref(null))),t.$&&t.$.map(_)},B=(t,e)=>{V.push((()=>t(e)))},I=(t,e,n)=>t.__insertBefore?t.__insertBefore(e,n):null==t?void 0:t.insertBefore(e,n),J=(t,e)=>{if(e&&!t.k&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.k=()=>{e["s-p"].splice(n-1,1),o()})))}},K=(t,e)=>{if(t.u|=16,4&t.u)return void(t.u|=512);J(t,t.C);const n=()=>Q(t,e);if(!e)return $(n);queueMicrotask((()=>{n()}))},Q=(t,e)=>{const n=t.$hostElement$,o=t.i;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 e?(t.M.length&&t.M.forEach((t=>t(n))),l=lt(o,"componentWillLoad",void 0,n)):l=lt(o,"componentWillUpdate",void 0,n),l=X(l,(()=>lt(o,"componentWillRender",void 0,n))),X(l,(()=>tt(t,o,e)))},X=(t,e)=>Z(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),Z=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,tt=async(t,e,n)=>{var o;const l=t.$hostElement$,i=l["s-rc"];n&&(t=>{const e=t.o,n=t.$hostElement$,o=e.u,l=((t,e)=>{var n,o,l;const i=k(e),s=r.get(i);if(!c.document)return i;if(t=11===t.nodeType?t:c.document,s)if("string"==typeof s){let l,r=S.get(t=t.head||t);if(r||S.set(t,r=new Set),!r.has(i)){l=c.document.createElement("style"),l.textContent=s;const f=null!=(n=u.R)?n:j(c.document);if(null!=f&&l.setAttribute("nonce",f),!(1&e.u))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(l,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(a){const e=new(null!=(o=t.defaultView)?o:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(s),d?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.textContent=s+e.textContent:t.prepend(l)}else t.append(l);1&e.u&&t.insertBefore(l,null),4&e.u&&(l.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),r&&r.add(i)}}else{let e=S.get(t);if(e||S.set(t,e=new Set),!e.has(i)){const n=null!=(l=t.defaultView)?l:t.ownerDocument.defaultView;let o;if(s.constructor===n.CSSStyleSheet)o=s;else{o=new n.CSSStyleSheet;for(let t=0;t<s.cssRules.length;t++)o.insertRule(s.cssRules[t].cssText,t)}d?t.adoptedStyleSheets.push(o):t.adoptedStyleSheets=[...t.adoptedStyleSheets,o],e.add(i)}}return i})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);et(t,e,l,n),i&&(i.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>nt(t);0===e.length?n():(Promise.all(e).then(n),t.u|=4,e.length=0)}},et=(t,e,n,o)=>{try{e=e.render(),t.u&=-17,t.u|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.D||M(null,null),i=(t=>t&&t.O===x)(e)?e:E(null,null,e);if(O=o.tagName,n&&i.v)for(const t of Object.keys(i.v))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(i.v[t]=o[t]);i.O=null,i.u|=4,t.D=i,i.S=l.S=o.shadowRoot||o,Y(l,i,n),H.forEach((t=>t())),H.length=0,V.forEach((t=>t())),V.length=0})(t,e,o)}catch(e){i(e,t.$hostElement$)}return null},nt=t=>{const e=t.$hostElement$,n=t.i,o=t.C;lt(n,"componentDidRender",void 0,e),64&t.u?lt(n,"componentDidUpdate",void 0,e):(t.u|=64,it(e),lt(n,"componentDidLoad",void 0,e),t.P(e),o||ot()),t.k&&(t.k(),t.k=void 0),512&t.u&&w((()=>K(t,!1))),t.u&=-517},ot=()=>{w((()=>(t=>{const e=u.ce("appload",{detail:{namespace:"proto-table-wc"}});return t.dispatchEvent(e),e})(c)))},lt=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){i(t,o)}},it=t=>t.classList.add("hydrated"),st=(t,e,o,l)=>{const i=n(t);if(!i)return;if(!i)throw Error(`Couldn't find host element for "${l.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/stenciljs/core/issues/5457).`);const s=i.l.get(e),r=i.u,c=i.i;if(o=R(o),!(8&r&&void 0!==s||o===s||Number.isNaN(s)&&Number.isNaN(o)||(i.l.set(e,o),2!=(18&r)))){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(o,s,e))return;K(i,!1)}},rt=(t,e,o)=>{var l,i;const s=t.prototype;if(e.t){const r=Object.entries(null!=(l=e.t)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:i,set:r}=Object.getOwnPropertyDescriptor(s,t)||{};i&&(e.t[t][0]|=2048),r&&(e.t[t][0]|=4096),(1&o||!i)&&Object.defineProperty(s,t,{get(){{if(!(2048&e.t[t][0]))return((t,e)=>n(this).l.get(e))(0,t);const o=n(this),l=o?o.i:s;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(s,t,{set(i){const s=n(this);if(s){if(r)return void 0===(32&l?this[t]:s.$hostElement$[t])&&s.l.get(t)&&(i=s.l.get(t)),r.call(this,R(i)),void st(this,t,i=32&l?this[t]:s.$hostElement$[t],e);{if(!(1&o&&4096&e.t[t][0]))return st(this,t,i,e),void(1&o&&!s.i&&s.M.push((()=>{4096&e.t[t][0]&&s.i[t]!==s.l.get(t)&&(s.i[t]=i)})));const n=()=>{const n=s.i[t];!s.l.get(t)&&n&&s.l.set(t,n),s.i[t]=R(i),st(this,t,s.i[t],e)};s.i?n():s.M.push((()=>{n()}))}}}})}})),1&o){const o=new Map;s.attributeChangedCallback=function(t,l,i){u.jmp((()=>{var c;const u=o.get(t),f=n(this);if(this.hasOwnProperty(u)&&(i=this[u],delete this[u]),s.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==i)return;if(null==u){const n=null==f?void 0:f.u;if(f&&n&&!(8&n)&&i!==l){const o=f.i,s=null==(c=e.L)?void 0:c[t];null==s||s.forEach((e=>{const[[s,r]]=Object.entries(e);null!=o[s]&&(128&n||1&r)&&o[s].call(o,i,l,t)}))}return}const a=r.find((([t])=>t===u));a&&4&a[1][0]&&(i=null!==i&&"false"!==i);const d=Object.getOwnPropertyDescriptor(s,u);i==this[u]||d.get&&!d.set||(this[u]=i)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=e.L)?i:{}),...r.filter((([t,e])=>31&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},ct=(t,e)=>{lt(t,"connectedCallback",void 0,e)},ut=(t,e)=>{lt(t,"disconnectedCallback",void 0,e||t)},ft=(t,e={})=>{var o;if(!c.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const l=[],f=e.exclude||[],d=c.customElements,h=c.document.head,p=h.querySelector("meta[charset]"),m=c.document.createElement("style"),v=[];let b,y=!0;if(Object.assign(u,e),u.h=new URL(e.resourcesUrl||"./",c.document.baseURI).href,t.map((t=>{t[1].map((e=>{const o={u:e[0],p:e[1],t:e[2],N:e[3]};o.t=e[2];const c=o.p,h=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){if(super(t),((t,e)=>{const n={u:0,$hostElement$:t,o:e,l:new Map,U:new Map};n.A=new Promise((t=>n.P=t)),t["s-p"]=[],t["s-rc"]=[],n.M=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,o),1&o.u)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else g.call(t,o)}connectedCallback(){n(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),y?v.push(this):u.jmp((()=>(t=>{if(!(1&u.u)){const e=n(t);if(!e)return;const o=e.o,l=()=>{};if(1&e.u)(null==e?void 0:e.i)?ct(e.i,t):(null==e?void 0:e.A)&&e.A.then((()=>ct(e.i,t)));else{e.u|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){J(e,e.C=n);break}}o.t&&Object.entries(o.t).map((([e,[n]])=>{if(31&n&&e in t&&t[e]!==Object.prototype[e]){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.u)){if(e.u|=32,n.T){const l=((t,e)=>{const n=t.p.replace(/-/g,"_"),o=t.T;if(!o)return;const l=s.get(o);return l?l[n]:import(`./${o}.entry.js`).then((t=>(s.set(o,t),t[n])),(t=>{i(t,e.$hostElement$)}))
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(l&&"then"in l){const t=()=>{};o=await l,t()}else o=l;if(!o)throw Error(`Constructor for "${n.p}#${e.W}" was not found`);o.isProxied||(rt(o,n,2),o.isProxied=!0);const r=()=>{};e.u|=8;try{new o(e)}catch(e){i(e,t)}e.u&=-9,r(),ct(e.i,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.u|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=k(n);if(!r.has(e)){const o=()=>{};((t,e,n)=>{let o=r.get(t);a&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,r.set(t,o)})(e,t,!!(1&n.u)),o()}}}const l=e.C,c=()=>K(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this))))}disconnectedCallback(){u.jmp((()=>(async t=>{if(!(1&u.u)){const e=n(t);(null==e?void 0:e.i)?ut(e.i,t):(null==e?void 0:e.A)&&e.A.then((()=>ut(e.i,t)))}S.has(t)&&S.delete(t),t.shadowRoot&&S.has(t.shadowRoot)&&S.delete(t.shadowRoot)})(this))),u.raf((()=>{var t;const e=n(this);if(!e)return;const o=v.findIndex((t=>t===this));o>-1&&v.splice(o,1),(null==(t=null==e?void 0:e.D)?void 0:t.S)instanceof Node&&!e.D.S.isConnected&&delete e.D.S}))}componentOnReady(){var t;return null==(t=n(this))?void 0:t.A}};o.T=t[0],f.includes(c)||d.get(c)||(l.push(c),d.define(c,rt(h,o,1)))}))})),l.length>0&&(m.textContent+=l.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",m.innerHTML.length)){m.setAttribute("data-styles","");const t=null!=(o=u.R)?o:j(c.document);null!=t&&m.setAttribute("nonce",t),h.insertBefore(m,p?p.nextSibling:h.firstChild)}y=!1,v.length?v.map((t=>t.connectedCallback())):u.jmp((()=>b=setTimeout(ot,30)))},at=t=>u.R=t;export{ft as b,E as h,f as p,o as r,at as s}
|