@session-services/web-elements 0.1.36 → 0.1.37
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/{index-B2ZmNnji.js → index-DizKcz8n.js} +67 -36
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/session-services-elements.cjs.js +2 -2
- package/dist/cjs/session-services-formatted-text.cjs.entry.js +1 -1
- package/dist/cjs/session-services-ticketing.cjs.entry.js +68 -83
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/session-services-ticketing.js +1 -1
- package/dist/esm/{index-DhbVMqIT.js → index-C9V9lLxA.js} +67 -36
- package/dist/esm/loader.js +2 -2
- package/dist/esm/session-services-elements.js +3 -3
- package/dist/esm/session-services-formatted-text.entry.js +1 -1
- package/dist/esm/session-services-ticketing.entry.js +68 -83
- package/dist/session-services-elements/p-C9V9lLxA.js +3 -0
- package/dist/session-services-elements/{p-8483ca88.entry.js → p-e53e1820.entry.js} +1 -1
- package/dist/session-services-elements/p-fdb84721.entry.js +1 -0
- package/dist/session-services-elements/session-services-elements.esm.js +1 -1
- package/dist/types/components.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +73 -55
- package/loader/index.d.ts +1 -1
- package/package.json +9 -9
- package/dist/session-services-elements/p-2fa235a5.entry.js +0 -1
- package/dist/session-services-elements/p-DhbVMqIT.js +0 -2
|
@@ -2,7 +2,7 @@ const NAMESPACE = 'session-services-elements';
|
|
|
2
2
|
const BUILD = /* session-services-elements */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, state: true, updatable: true};
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.45.2 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
|
|
@@ -91,7 +91,9 @@ var consoleError = (e, el) => (0, console.error)(e, el);
|
|
|
91
91
|
|
|
92
92
|
// src/client/client-load-module.ts
|
|
93
93
|
var cmpModules = /* @__PURE__ */ new Map();
|
|
94
|
+
var failedLoadAttempts = /* @__PURE__ */ new Map();
|
|
94
95
|
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
96
|
+
var _a;
|
|
95
97
|
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
|
96
98
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
97
99
|
if (!bundleId) {
|
|
@@ -101,21 +103,28 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
101
103
|
if (module) {
|
|
102
104
|
return module[exportName];
|
|
103
105
|
}
|
|
106
|
+
const retryCount = (_a = failedLoadAttempts.get(bundleId)) != null ? _a : 0;
|
|
107
|
+
const cacheBustParams = [
|
|
108
|
+
retryCount > 0 ? `s-retry=${retryCount}` : "",
|
|
109
|
+
""
|
|
110
|
+
].filter(Boolean).join("&");
|
|
104
111
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
105
112
|
return import(
|
|
106
113
|
/* @vite-ignore */
|
|
107
114
|
/* webpackInclude: /\.entry\.js$/ */
|
|
108
115
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
109
116
|
/* webpackMode: "lazy" */
|
|
110
|
-
`./${bundleId}.entry.js${""}`
|
|
117
|
+
`./${bundleId}.entry.js${cacheBustParams ? "?" + cacheBustParams : ""}`
|
|
111
118
|
).then(
|
|
112
119
|
(importedModule) => {
|
|
113
120
|
{
|
|
121
|
+
failedLoadAttempts.delete(bundleId);
|
|
114
122
|
cmpModules.set(bundleId, importedModule);
|
|
115
123
|
}
|
|
116
124
|
return importedModule[exportName];
|
|
117
125
|
},
|
|
118
126
|
(e) => {
|
|
127
|
+
failedLoadAttempts.set(bundleId, retryCount + 1);
|
|
119
128
|
consoleError(e, hostRef.$hostElement$);
|
|
120
129
|
}
|
|
121
130
|
);
|
|
@@ -125,6 +134,8 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
125
134
|
var styles = /* @__PURE__ */ new Map();
|
|
126
135
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
127
136
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
137
|
+
var MAX_LAZY_LOAD_RETRIES = 3;
|
|
138
|
+
var LAZY_LOAD_RETRY_INTERVAL_MS = 1e3;
|
|
128
139
|
var win = typeof window !== "undefined" ? window : {};
|
|
129
140
|
var plt = {
|
|
130
141
|
$flags$: 0,
|
|
@@ -151,6 +162,10 @@ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @_
|
|
|
151
162
|
var queuePending = false;
|
|
152
163
|
var queueDomReads = [];
|
|
153
164
|
var queueDomWrites = [];
|
|
165
|
+
var scheduleFlush = () => {
|
|
166
|
+
var _a;
|
|
167
|
+
return ((_a = win.document) == null ? void 0 : _a.hidden) ? setTimeout(flush, 16) : plt.raf(flush);
|
|
168
|
+
};
|
|
154
169
|
var queueTask = (queue, write) => (cb) => {
|
|
155
170
|
queue.push(cb);
|
|
156
171
|
if (!queuePending) {
|
|
@@ -158,7 +173,7 @@ var queueTask = (queue, write) => (cb) => {
|
|
|
158
173
|
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
159
174
|
nextTick(flush);
|
|
160
175
|
} else {
|
|
161
|
-
|
|
176
|
+
scheduleFlush();
|
|
162
177
|
}
|
|
163
178
|
}
|
|
164
179
|
};
|
|
@@ -177,7 +192,7 @@ var flush = () => {
|
|
|
177
192
|
{
|
|
178
193
|
consume(queueDomWrites);
|
|
179
194
|
if (queuePending = queueDomReads.length > 0) {
|
|
180
|
-
|
|
195
|
+
scheduleFlush();
|
|
181
196
|
}
|
|
182
197
|
}
|
|
183
198
|
};
|
|
@@ -369,6 +384,11 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
369
384
|
} else if (child != null && typeof child !== "boolean") {
|
|
370
385
|
if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
|
|
371
386
|
child = String(child);
|
|
387
|
+
} else if (typeof nodeName !== "function" && child.$flags$ === void 0) {
|
|
388
|
+
{
|
|
389
|
+
consoleError("Invalid vNode child");
|
|
390
|
+
}
|
|
391
|
+
continue;
|
|
372
392
|
}
|
|
373
393
|
if (simple && lastSimple) {
|
|
374
394
|
vNodeChildren[vNodeChildren.length - 1].$text$ += child;
|
|
@@ -533,7 +553,8 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
533
553
|
const oldClasses = parseClassList(oldValue);
|
|
534
554
|
let newClasses = parseClassList(newValue);
|
|
535
555
|
{
|
|
536
|
-
|
|
556
|
+
let removedClasses = oldClasses.filter((c) => c && !newClasses.includes(c));
|
|
557
|
+
classList.remove(...removedClasses);
|
|
537
558
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
538
559
|
}
|
|
539
560
|
} else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
@@ -606,7 +627,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
606
627
|
}
|
|
607
628
|
}
|
|
608
629
|
if (newValue == null || newValue === false) {
|
|
609
|
-
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
630
|
+
if (newValue !== false || elm.getAttribute(memberName) === "" || flags & 4 /* isHost */ && !isEnumeratedAttribute(memberName)) {
|
|
610
631
|
{
|
|
611
632
|
elm.removeAttribute(memberName);
|
|
612
633
|
}
|
|
@@ -619,6 +640,8 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
619
640
|
}
|
|
620
641
|
}
|
|
621
642
|
};
|
|
643
|
+
var ENUMERATED_ATTRIBUTES = /* @__PURE__ */ new Set(["draggable", "contenteditable", "spellcheck"]);
|
|
644
|
+
var isEnumeratedAttribute = (attrName) => ENUMERATED_ATTRIBUTES.has(attrName) || attrName.startsWith("aria-");
|
|
622
645
|
var parseClassListRegex = /\s/;
|
|
623
646
|
var parseClassList = (value) => {
|
|
624
647
|
if (typeof value === "object" && value && "baseVal" in value) {
|
|
@@ -799,7 +822,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
799
822
|
if (idxInOld >= 0) {
|
|
800
823
|
elmToMove = oldCh[idxInOld];
|
|
801
824
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
802
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2,
|
|
825
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
803
826
|
} else {
|
|
804
827
|
patch(elmToMove, newStartVnode, isInitialRender);
|
|
805
828
|
oldCh[idxInOld] = void 0;
|
|
@@ -876,9 +899,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
876
899
|
}
|
|
877
900
|
};
|
|
878
901
|
var insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
879
|
-
|
|
880
|
-
return parent.__insertBefore(newNode, reference);
|
|
881
|
-
} else {
|
|
902
|
+
{
|
|
882
903
|
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
883
904
|
}
|
|
884
905
|
};
|
|
@@ -1123,8 +1144,19 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1123
1144
|
}
|
|
1124
1145
|
}
|
|
1125
1146
|
};
|
|
1126
|
-
|
|
1127
|
-
|
|
1147
|
+
var replayPendingSetterValues = (hostRef, cmpMeta) => {
|
|
1148
|
+
var _a;
|
|
1149
|
+
const instance = hostRef.$lazyInstance$;
|
|
1150
|
+
if (!instance) return;
|
|
1151
|
+
for (const [memberName, [memberFlags]] of Object.entries((_a = cmpMeta.$members$) != null ? _a : {})) {
|
|
1152
|
+
if (memberFlags & 4096 /* Setter */ && hostRef.$instanceValues$.has(memberName)) {
|
|
1153
|
+
const pendingValue = hostRef.$instanceValues$.get(memberName);
|
|
1154
|
+
if (instance[memberName] !== pendingValue) {
|
|
1155
|
+
instance[memberName] = pendingValue;
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
};
|
|
1128
1160
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1129
1161
|
var _a, _b;
|
|
1130
1162
|
const prototype = Cstr.prototype;
|
|
@@ -1154,9 +1186,8 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1154
1186
|
return getValue(this, memberName);
|
|
1155
1187
|
}
|
|
1156
1188
|
const ref = getHostRef(this);
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
return instance[memberName];
|
|
1189
|
+
if (!ref) return prototype[memberName];
|
|
1190
|
+
return ref.$lazyInstance$ ? ref.$lazyInstance$[memberName] : getValue(this, memberName);
|
|
1160
1191
|
}
|
|
1161
1192
|
},
|
|
1162
1193
|
configurable: true,
|
|
@@ -1186,31 +1217,20 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1186
1217
|
{
|
|
1187
1218
|
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1188
1219
|
setValue(this, memberName, newValue, cmpMeta);
|
|
1189
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1190
|
-
ref.$fetchedCbList$.push(() => {
|
|
1191
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1192
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
1193
|
-
}
|
|
1194
|
-
});
|
|
1195
|
-
}
|
|
1196
1220
|
return;
|
|
1197
1221
|
}
|
|
1198
|
-
const
|
|
1222
|
+
const parsedValue = parsePropertyValue(
|
|
1223
|
+
newValue,
|
|
1224
|
+
memberFlags);
|
|
1225
|
+
if (ref.$lazyInstance$) {
|
|
1199
1226
|
const currentValue = ref.$lazyInstance$[memberName];
|
|
1200
1227
|
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1201
1228
|
ref.$instanceValues$.set(memberName, currentValue);
|
|
1202
1229
|
}
|
|
1203
|
-
ref.$lazyInstance$[memberName] =
|
|
1204
|
-
newValue,
|
|
1205
|
-
memberFlags);
|
|
1230
|
+
ref.$lazyInstance$[memberName] = parsedValue;
|
|
1206
1231
|
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1207
|
-
};
|
|
1208
|
-
if (ref.$lazyInstance$) {
|
|
1209
|
-
setterSetVal();
|
|
1210
1232
|
} else {
|
|
1211
|
-
ref.$
|
|
1212
|
-
setterSetVal();
|
|
1213
|
-
});
|
|
1233
|
+
ref.$instanceValues$.set(memberName, parsedValue);
|
|
1214
1234
|
}
|
|
1215
1235
|
}
|
|
1216
1236
|
}
|
|
@@ -1246,10 +1266,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1246
1266
|
return;
|
|
1247
1267
|
}
|
|
1248
1268
|
const propFlags = members.find(([m]) => m === propName);
|
|
1249
|
-
const
|
|
1269
|
+
const propMemberFlags = propFlags ? propFlags[1][0] : 0;
|
|
1270
|
+
const isBooleanTarget = propMemberFlags & 4 /* Boolean */;
|
|
1250
1271
|
const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
|
|
1251
1272
|
if (isBooleanTarget) {
|
|
1252
|
-
newValue = newValue === null || newValue === "false" ? false : true;
|
|
1273
|
+
newValue = newValue === null || newValue === "false" && true ? false : true;
|
|
1253
1274
|
}
|
|
1254
1275
|
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1255
1276
|
if (!isSpuriousBooleanRemoval && newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
@@ -1274,10 +1295,12 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1274
1295
|
|
|
1275
1296
|
// src/runtime/initialize-component.ts
|
|
1276
1297
|
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1298
|
+
var _a;
|
|
1277
1299
|
let Cstr;
|
|
1278
1300
|
try {
|
|
1279
1301
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1280
1302
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1303
|
+
hostRef.$flags$ &= -1025 /* hasFailedLoad */;
|
|
1281
1304
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1282
1305
|
if (bundleId) {
|
|
1283
1306
|
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
@@ -1289,6 +1312,11 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1289
1312
|
Cstr = CstrImport;
|
|
1290
1313
|
}
|
|
1291
1314
|
if (!Cstr) {
|
|
1315
|
+
hostRef.$flags$ &= -33 /* hasInitializedComponent */;
|
|
1316
|
+
hostRef.$loadRetryCount$ = ((_a = hostRef.$loadRetryCount$) != null ? _a : 0) + 1;
|
|
1317
|
+
if (hostRef.$loadRetryCount$ < MAX_LAZY_LOAD_RETRIES) {
|
|
1318
|
+
hostRef.$flags$ |= 1024 /* hasFailedLoad */;
|
|
1319
|
+
}
|
|
1292
1320
|
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
1293
1321
|
}
|
|
1294
1322
|
if (!Cstr.isProxied) {
|
|
@@ -1311,6 +1339,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1311
1339
|
}
|
|
1312
1340
|
{
|
|
1313
1341
|
hostRef.$flags$ &= -9 /* isConstructingInstance */;
|
|
1342
|
+
replayPendingSetterValues(hostRef, cmpMeta);
|
|
1314
1343
|
}
|
|
1315
1344
|
{
|
|
1316
1345
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
@@ -1350,7 +1379,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1350
1379
|
hostRef.$onRenderResolve$();
|
|
1351
1380
|
hostRef.$onRenderResolve$ = void 0;
|
|
1352
1381
|
}
|
|
1353
|
-
if (hostRef.$onReadyResolve$) {
|
|
1382
|
+
if (hostRef.$onReadyResolve$ && !(hostRef.$flags$ & 1024 /* hasFailedLoad */)) {
|
|
1354
1383
|
hostRef.$onReadyResolve$(elm);
|
|
1355
1384
|
}
|
|
1356
1385
|
}
|
|
@@ -1396,6 +1425,8 @@ var connectedCallback = (elm) => {
|
|
|
1396
1425
|
} else {
|
|
1397
1426
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1398
1427
|
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1428
|
+
} else if (hostRef.$flags$ & 1024 /* hasFailedLoad */) {
|
|
1429
|
+
setTimeout(() => initializeComponent(elm, hostRef, cmpMeta), LAZY_LOAD_RETRY_INTERVAL_MS);
|
|
1399
1430
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1400
1431
|
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
1401
1432
|
}
|
|
@@ -1505,7 +1536,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1505
1536
|
}
|
|
1506
1537
|
disconnectedCallback() {
|
|
1507
1538
|
plt.jmp(() => disconnectedCallback(this));
|
|
1508
|
-
|
|
1539
|
+
nextTick(() => {
|
|
1509
1540
|
var _a3;
|
|
1510
1541
|
const hostRef = getHostRef(this);
|
|
1511
1542
|
if (!hostRef) {
|
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-C9V9lLxA.js';
|
|
2
|
+
export { s as setNonce } from './index-C9V9lLxA.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-C9V9lLxA.js';
|
|
2
|
+
export { s as setNonce } from './index-C9V9lLxA.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-DQuL1Twl.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.45.2 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
var patchBrowser = () => {
|