proto-ikons-wc 0.1.15 → 0.1.16
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/acura-ikon_119.cjs.entry.js +1 -1
- package/dist/cjs/{index-Bc0cOtSY.js → index-BszoV7OU.js} +127 -96
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/proto-ikons-wc.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/esm/acura-ikon_119.entry.js +1 -1
- package/dist/esm/{index-Bd_uuq_K.js → index-DOLju3Sj.js} +127 -96
- package/dist/esm/loader.js +2 -2
- package/dist/esm/proto-ikons-wc.js +3 -3
- package/dist/proto-ikons-wc/{p-6fbbe50a.entry.js → p-13ee8346.entry.js} +1 -1
- package/dist/proto-ikons-wc/p-DOLju3Sj.js +2 -0
- package/dist/proto-ikons-wc/proto-ikons-wc.esm.js +1 -1
- package/dist/types/stencil-public-runtime.d.ts +12 -5
- package/package.json +2 -2
- package/dist/proto-ikons-wc/p-Bd_uuq_K.js +0 -2
|
@@ -4,7 +4,7 @@ const NAMESPACE = 'proto-ikons-wc';
|
|
|
4
4
|
const BUILD = /* proto-ikons-wc */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true, watchCallback: false };
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
|
-
Stencil Client Platform v4.
|
|
7
|
+
Stencil Client Platform v4.36.0 | MIT Licensed | https://stenciljs.com
|
|
8
8
|
*/
|
|
9
9
|
var __defProp = Object.defineProperty;
|
|
10
10
|
var __export = (target, all) => {
|
|
@@ -102,6 +102,7 @@ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
|
102
102
|
}
|
|
103
103
|
return false;
|
|
104
104
|
})() ;
|
|
105
|
+
var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
|
|
105
106
|
var queuePending = false;
|
|
106
107
|
var queueDomReads = [];
|
|
107
108
|
var queueDomWrites = [];
|
|
@@ -215,6 +216,105 @@ var uniqueTime = (key, measureText) => {
|
|
|
215
216
|
};
|
|
216
217
|
}
|
|
217
218
|
};
|
|
219
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
220
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
221
|
+
let style = styles.get(scopeId2);
|
|
222
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
223
|
+
style = style || new CSSStyleSheet();
|
|
224
|
+
if (typeof style === "string") {
|
|
225
|
+
style = cssText;
|
|
226
|
+
} else {
|
|
227
|
+
style.replaceSync(cssText);
|
|
228
|
+
}
|
|
229
|
+
} else {
|
|
230
|
+
style = cssText;
|
|
231
|
+
}
|
|
232
|
+
styles.set(scopeId2, style);
|
|
233
|
+
};
|
|
234
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
235
|
+
var _a;
|
|
236
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
237
|
+
const style = styles.get(scopeId2);
|
|
238
|
+
if (!win.document) {
|
|
239
|
+
return scopeId2;
|
|
240
|
+
}
|
|
241
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
242
|
+
if (style) {
|
|
243
|
+
if (typeof style === "string") {
|
|
244
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
245
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
246
|
+
let styleElm;
|
|
247
|
+
if (!appliedStyles) {
|
|
248
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
249
|
+
}
|
|
250
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
251
|
+
{
|
|
252
|
+
styleElm = win.document.createElement("style");
|
|
253
|
+
styleElm.innerHTML = style;
|
|
254
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
255
|
+
if (nonce != null) {
|
|
256
|
+
styleElm.setAttribute("nonce", nonce);
|
|
257
|
+
}
|
|
258
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
259
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
260
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
261
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
262
|
+
styleContainerNode.insertBefore(
|
|
263
|
+
styleElm,
|
|
264
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
265
|
+
);
|
|
266
|
+
} else if ("host" in styleContainerNode) {
|
|
267
|
+
if (supportsConstructableStylesheets) {
|
|
268
|
+
const stylesheet = new CSSStyleSheet();
|
|
269
|
+
stylesheet.replaceSync(style);
|
|
270
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
271
|
+
styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
|
|
272
|
+
} else {
|
|
273
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
274
|
+
}
|
|
275
|
+
} else {
|
|
276
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
277
|
+
if (existingStyleContainer) {
|
|
278
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
279
|
+
} else {
|
|
280
|
+
styleContainerNode.prepend(styleElm);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
} else {
|
|
284
|
+
styleContainerNode.append(styleElm);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
288
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
292
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
293
|
+
}
|
|
294
|
+
if (appliedStyles) {
|
|
295
|
+
appliedStyles.add(scopeId2);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
299
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
300
|
+
styleContainerNode.adoptedStyleSheets.push(style);
|
|
301
|
+
} else {
|
|
302
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
return scopeId2;
|
|
307
|
+
};
|
|
308
|
+
var attachStyles = (hostRef) => {
|
|
309
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
310
|
+
const elm = hostRef.$hostElement$;
|
|
311
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
312
|
+
addStyle(
|
|
313
|
+
elm.getRootNode(),
|
|
314
|
+
cmpMeta);
|
|
315
|
+
endAttachStyles();
|
|
316
|
+
};
|
|
317
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
218
318
|
var h = (nodeName, vnodeData, ...children) => {
|
|
219
319
|
let child = null;
|
|
220
320
|
let key = null;
|
|
@@ -313,97 +413,6 @@ var emitEvent = (elm, name, opts) => {
|
|
|
313
413
|
elm.dispatchEvent(ev);
|
|
314
414
|
return ev;
|
|
315
415
|
};
|
|
316
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
317
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
318
|
-
let style = styles.get(scopeId2);
|
|
319
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
320
|
-
style = style || new CSSStyleSheet();
|
|
321
|
-
if (typeof style === "string") {
|
|
322
|
-
style = cssText;
|
|
323
|
-
} else {
|
|
324
|
-
style.replaceSync(cssText);
|
|
325
|
-
}
|
|
326
|
-
} else {
|
|
327
|
-
style = cssText;
|
|
328
|
-
}
|
|
329
|
-
styles.set(scopeId2, style);
|
|
330
|
-
};
|
|
331
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
332
|
-
var _a;
|
|
333
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
334
|
-
const style = styles.get(scopeId2);
|
|
335
|
-
if (!win.document) {
|
|
336
|
-
return scopeId2;
|
|
337
|
-
}
|
|
338
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
339
|
-
if (style) {
|
|
340
|
-
if (typeof style === "string") {
|
|
341
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
342
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
343
|
-
let styleElm;
|
|
344
|
-
if (!appliedStyles) {
|
|
345
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
346
|
-
}
|
|
347
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
348
|
-
{
|
|
349
|
-
styleElm = win.document.createElement("style");
|
|
350
|
-
styleElm.innerHTML = style;
|
|
351
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
352
|
-
if (nonce != null) {
|
|
353
|
-
styleElm.setAttribute("nonce", nonce);
|
|
354
|
-
}
|
|
355
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
356
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
357
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
358
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
359
|
-
styleContainerNode.insertBefore(
|
|
360
|
-
styleElm,
|
|
361
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
362
|
-
);
|
|
363
|
-
} else if ("host" in styleContainerNode) {
|
|
364
|
-
if (supportsConstructableStylesheets) {
|
|
365
|
-
const stylesheet = new CSSStyleSheet();
|
|
366
|
-
stylesheet.replaceSync(style);
|
|
367
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
368
|
-
} else {
|
|
369
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
370
|
-
if (existingStyleContainer) {
|
|
371
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
372
|
-
} else {
|
|
373
|
-
styleContainerNode.prepend(styleElm);
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
} else {
|
|
377
|
-
styleContainerNode.append(styleElm);
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
381
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
385
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
386
|
-
}
|
|
387
|
-
if (appliedStyles) {
|
|
388
|
-
appliedStyles.add(scopeId2);
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
392
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
return scopeId2;
|
|
396
|
-
};
|
|
397
|
-
var attachStyles = (hostRef) => {
|
|
398
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
399
|
-
const elm = hostRef.$hostElement$;
|
|
400
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
401
|
-
addStyle(
|
|
402
|
-
elm.getRootNode(),
|
|
403
|
-
cmpMeta);
|
|
404
|
-
endAttachStyles();
|
|
405
|
-
};
|
|
406
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
407
416
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
408
417
|
if (oldValue === newValue) {
|
|
409
418
|
return;
|
|
@@ -704,7 +713,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
704
713
|
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
705
714
|
) {
|
|
706
715
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
707
|
-
}
|
|
716
|
+
} else ;
|
|
708
717
|
if (isSvgMode && tag === "svg") {
|
|
709
718
|
isSvgMode = false;
|
|
710
719
|
}
|
|
@@ -760,6 +769,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
760
769
|
}
|
|
761
770
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
762
771
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
772
|
+
if (isInitialLoad) {
|
|
773
|
+
queueMicrotask(() => {
|
|
774
|
+
dispatch();
|
|
775
|
+
});
|
|
776
|
+
return;
|
|
777
|
+
}
|
|
763
778
|
return writeTask(dispatch) ;
|
|
764
779
|
};
|
|
765
780
|
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
@@ -894,6 +909,9 @@ var addHydratedFlag = (elm) => {
|
|
|
894
909
|
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
895
910
|
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
896
911
|
const hostRef = getHostRef(ref);
|
|
912
|
+
if (!hostRef) {
|
|
913
|
+
return;
|
|
914
|
+
}
|
|
897
915
|
if (!hostRef) {
|
|
898
916
|
throw new Error(
|
|
899
917
|
`Couldn't find host element for "${cmpMeta.$tagName$}" 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).`
|
|
@@ -953,6 +971,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
953
971
|
Object.defineProperty(prototype, memberName, {
|
|
954
972
|
set(newValue) {
|
|
955
973
|
const ref = getHostRef(this);
|
|
974
|
+
if (!ref) {
|
|
975
|
+
return;
|
|
976
|
+
}
|
|
956
977
|
if (origSetter) {
|
|
957
978
|
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
958
979
|
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
@@ -1016,7 +1037,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1016
1037
|
} else if (propName == null) {
|
|
1017
1038
|
const hostRef = getHostRef(this);
|
|
1018
1039
|
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
1019
|
-
if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
1040
|
+
if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
1020
1041
|
const instance = hostRef.$lazyInstance$ ;
|
|
1021
1042
|
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
1022
1043
|
entry == null ? void 0 : entry.forEach((callbackName) => {
|
|
@@ -1121,6 +1142,9 @@ var fireConnectedCallback = (instance, elm) => {
|
|
|
1121
1142
|
var connectedCallback = (elm) => {
|
|
1122
1143
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1123
1144
|
const hostRef = getHostRef(elm);
|
|
1145
|
+
if (!hostRef) {
|
|
1146
|
+
return;
|
|
1147
|
+
}
|
|
1124
1148
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
1125
1149
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
1126
1150
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
@@ -1222,7 +1246,10 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1222
1246
|
registerHost(self, cmpMeta);
|
|
1223
1247
|
}
|
|
1224
1248
|
connectedCallback() {
|
|
1225
|
-
getHostRef(this);
|
|
1249
|
+
const hostRef = getHostRef(this);
|
|
1250
|
+
if (!hostRef) {
|
|
1251
|
+
return;
|
|
1252
|
+
}
|
|
1226
1253
|
if (!this.hasRegisteredEventListeners) {
|
|
1227
1254
|
this.hasRegisteredEventListeners = true;
|
|
1228
1255
|
}
|
|
@@ -1241,6 +1268,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1241
1268
|
plt.raf(() => {
|
|
1242
1269
|
var _a3;
|
|
1243
1270
|
const hostRef = getHostRef(this);
|
|
1271
|
+
if (!hostRef) {
|
|
1272
|
+
return;
|
|
1273
|
+
}
|
|
1244
1274
|
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1245
1275
|
if (i2 > -1) {
|
|
1246
1276
|
deferredConnectedCallbacks.splice(i2, 1);
|
|
@@ -1251,7 +1281,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1251
1281
|
});
|
|
1252
1282
|
}
|
|
1253
1283
|
componentOnReady() {
|
|
1254
|
-
|
|
1284
|
+
var _a3;
|
|
1285
|
+
return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
|
|
1255
1286
|
}
|
|
1256
1287
|
};
|
|
1257
1288
|
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
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-BszoV7OU.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.
|
|
8
|
+
Stencil Client Patch Browser v4.36.0 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
var patchBrowser = () => {
|
|
@@ -2,7 +2,7 @@ const NAMESPACE = 'proto-ikons-wc';
|
|
|
2
2
|
const BUILD = /* proto-ikons-wc */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true, watchCallback: false };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.36.0 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
@@ -100,6 +100,7 @@ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
|
100
100
|
}
|
|
101
101
|
return false;
|
|
102
102
|
})() ;
|
|
103
|
+
var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
|
|
103
104
|
var queuePending = false;
|
|
104
105
|
var queueDomReads = [];
|
|
105
106
|
var queueDomWrites = [];
|
|
@@ -213,6 +214,105 @@ var uniqueTime = (key, measureText) => {
|
|
|
213
214
|
};
|
|
214
215
|
}
|
|
215
216
|
};
|
|
217
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
218
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
219
|
+
let style = styles.get(scopeId2);
|
|
220
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
221
|
+
style = style || new CSSStyleSheet();
|
|
222
|
+
if (typeof style === "string") {
|
|
223
|
+
style = cssText;
|
|
224
|
+
} else {
|
|
225
|
+
style.replaceSync(cssText);
|
|
226
|
+
}
|
|
227
|
+
} else {
|
|
228
|
+
style = cssText;
|
|
229
|
+
}
|
|
230
|
+
styles.set(scopeId2, style);
|
|
231
|
+
};
|
|
232
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
233
|
+
var _a;
|
|
234
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
235
|
+
const style = styles.get(scopeId2);
|
|
236
|
+
if (!win.document) {
|
|
237
|
+
return scopeId2;
|
|
238
|
+
}
|
|
239
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
240
|
+
if (style) {
|
|
241
|
+
if (typeof style === "string") {
|
|
242
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
243
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
244
|
+
let styleElm;
|
|
245
|
+
if (!appliedStyles) {
|
|
246
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
247
|
+
}
|
|
248
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
249
|
+
{
|
|
250
|
+
styleElm = win.document.createElement("style");
|
|
251
|
+
styleElm.innerHTML = style;
|
|
252
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
253
|
+
if (nonce != null) {
|
|
254
|
+
styleElm.setAttribute("nonce", nonce);
|
|
255
|
+
}
|
|
256
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
257
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
258
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
259
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
260
|
+
styleContainerNode.insertBefore(
|
|
261
|
+
styleElm,
|
|
262
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
263
|
+
);
|
|
264
|
+
} else if ("host" in styleContainerNode) {
|
|
265
|
+
if (supportsConstructableStylesheets) {
|
|
266
|
+
const stylesheet = new CSSStyleSheet();
|
|
267
|
+
stylesheet.replaceSync(style);
|
|
268
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
269
|
+
styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
|
|
270
|
+
} else {
|
|
271
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
272
|
+
}
|
|
273
|
+
} else {
|
|
274
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
275
|
+
if (existingStyleContainer) {
|
|
276
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
277
|
+
} else {
|
|
278
|
+
styleContainerNode.prepend(styleElm);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
} else {
|
|
282
|
+
styleContainerNode.append(styleElm);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
286
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
290
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
291
|
+
}
|
|
292
|
+
if (appliedStyles) {
|
|
293
|
+
appliedStyles.add(scopeId2);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
297
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
298
|
+
styleContainerNode.adoptedStyleSheets.push(style);
|
|
299
|
+
} else {
|
|
300
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
return scopeId2;
|
|
305
|
+
};
|
|
306
|
+
var attachStyles = (hostRef) => {
|
|
307
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
308
|
+
const elm = hostRef.$hostElement$;
|
|
309
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
310
|
+
addStyle(
|
|
311
|
+
elm.getRootNode(),
|
|
312
|
+
cmpMeta);
|
|
313
|
+
endAttachStyles();
|
|
314
|
+
};
|
|
315
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
216
316
|
var h = (nodeName, vnodeData, ...children) => {
|
|
217
317
|
let child = null;
|
|
218
318
|
let key = null;
|
|
@@ -311,97 +411,6 @@ var emitEvent = (elm, name, opts) => {
|
|
|
311
411
|
elm.dispatchEvent(ev);
|
|
312
412
|
return ev;
|
|
313
413
|
};
|
|
314
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
315
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
316
|
-
let style = styles.get(scopeId2);
|
|
317
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
318
|
-
style = style || new CSSStyleSheet();
|
|
319
|
-
if (typeof style === "string") {
|
|
320
|
-
style = cssText;
|
|
321
|
-
} else {
|
|
322
|
-
style.replaceSync(cssText);
|
|
323
|
-
}
|
|
324
|
-
} else {
|
|
325
|
-
style = cssText;
|
|
326
|
-
}
|
|
327
|
-
styles.set(scopeId2, style);
|
|
328
|
-
};
|
|
329
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
330
|
-
var _a;
|
|
331
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
332
|
-
const style = styles.get(scopeId2);
|
|
333
|
-
if (!win.document) {
|
|
334
|
-
return scopeId2;
|
|
335
|
-
}
|
|
336
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
337
|
-
if (style) {
|
|
338
|
-
if (typeof style === "string") {
|
|
339
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
340
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
341
|
-
let styleElm;
|
|
342
|
-
if (!appliedStyles) {
|
|
343
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
344
|
-
}
|
|
345
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
346
|
-
{
|
|
347
|
-
styleElm = win.document.createElement("style");
|
|
348
|
-
styleElm.innerHTML = style;
|
|
349
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
350
|
-
if (nonce != null) {
|
|
351
|
-
styleElm.setAttribute("nonce", nonce);
|
|
352
|
-
}
|
|
353
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
354
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
355
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
356
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
357
|
-
styleContainerNode.insertBefore(
|
|
358
|
-
styleElm,
|
|
359
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
360
|
-
);
|
|
361
|
-
} else if ("host" in styleContainerNode) {
|
|
362
|
-
if (supportsConstructableStylesheets) {
|
|
363
|
-
const stylesheet = new CSSStyleSheet();
|
|
364
|
-
stylesheet.replaceSync(style);
|
|
365
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
366
|
-
} else {
|
|
367
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
368
|
-
if (existingStyleContainer) {
|
|
369
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
370
|
-
} else {
|
|
371
|
-
styleContainerNode.prepend(styleElm);
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
} else {
|
|
375
|
-
styleContainerNode.append(styleElm);
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
379
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
383
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
384
|
-
}
|
|
385
|
-
if (appliedStyles) {
|
|
386
|
-
appliedStyles.add(scopeId2);
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
390
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
return scopeId2;
|
|
394
|
-
};
|
|
395
|
-
var attachStyles = (hostRef) => {
|
|
396
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
397
|
-
const elm = hostRef.$hostElement$;
|
|
398
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
399
|
-
addStyle(
|
|
400
|
-
elm.getRootNode(),
|
|
401
|
-
cmpMeta);
|
|
402
|
-
endAttachStyles();
|
|
403
|
-
};
|
|
404
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
405
414
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
406
415
|
if (oldValue === newValue) {
|
|
407
416
|
return;
|
|
@@ -702,7 +711,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
702
711
|
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
703
712
|
) {
|
|
704
713
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
705
|
-
}
|
|
714
|
+
} else ;
|
|
706
715
|
if (isSvgMode && tag === "svg") {
|
|
707
716
|
isSvgMode = false;
|
|
708
717
|
}
|
|
@@ -758,6 +767,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
758
767
|
}
|
|
759
768
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
760
769
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
770
|
+
if (isInitialLoad) {
|
|
771
|
+
queueMicrotask(() => {
|
|
772
|
+
dispatch();
|
|
773
|
+
});
|
|
774
|
+
return;
|
|
775
|
+
}
|
|
761
776
|
return writeTask(dispatch) ;
|
|
762
777
|
};
|
|
763
778
|
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
@@ -892,6 +907,9 @@ var addHydratedFlag = (elm) => {
|
|
|
892
907
|
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
893
908
|
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
894
909
|
const hostRef = getHostRef(ref);
|
|
910
|
+
if (!hostRef) {
|
|
911
|
+
return;
|
|
912
|
+
}
|
|
895
913
|
if (!hostRef) {
|
|
896
914
|
throw new Error(
|
|
897
915
|
`Couldn't find host element for "${cmpMeta.$tagName$}" 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).`
|
|
@@ -951,6 +969,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
951
969
|
Object.defineProperty(prototype, memberName, {
|
|
952
970
|
set(newValue) {
|
|
953
971
|
const ref = getHostRef(this);
|
|
972
|
+
if (!ref) {
|
|
973
|
+
return;
|
|
974
|
+
}
|
|
954
975
|
if (origSetter) {
|
|
955
976
|
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
956
977
|
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
@@ -1014,7 +1035,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1014
1035
|
} else if (propName == null) {
|
|
1015
1036
|
const hostRef = getHostRef(this);
|
|
1016
1037
|
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
1017
|
-
if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
1038
|
+
if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
1018
1039
|
const instance = hostRef.$lazyInstance$ ;
|
|
1019
1040
|
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
1020
1041
|
entry == null ? void 0 : entry.forEach((callbackName) => {
|
|
@@ -1119,6 +1140,9 @@ var fireConnectedCallback = (instance, elm) => {
|
|
|
1119
1140
|
var connectedCallback = (elm) => {
|
|
1120
1141
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1121
1142
|
const hostRef = getHostRef(elm);
|
|
1143
|
+
if (!hostRef) {
|
|
1144
|
+
return;
|
|
1145
|
+
}
|
|
1122
1146
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
1123
1147
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
1124
1148
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
@@ -1220,7 +1244,10 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1220
1244
|
registerHost(self, cmpMeta);
|
|
1221
1245
|
}
|
|
1222
1246
|
connectedCallback() {
|
|
1223
|
-
getHostRef(this);
|
|
1247
|
+
const hostRef = getHostRef(this);
|
|
1248
|
+
if (!hostRef) {
|
|
1249
|
+
return;
|
|
1250
|
+
}
|
|
1224
1251
|
if (!this.hasRegisteredEventListeners) {
|
|
1225
1252
|
this.hasRegisteredEventListeners = true;
|
|
1226
1253
|
}
|
|
@@ -1239,6 +1266,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1239
1266
|
plt.raf(() => {
|
|
1240
1267
|
var _a3;
|
|
1241
1268
|
const hostRef = getHostRef(this);
|
|
1269
|
+
if (!hostRef) {
|
|
1270
|
+
return;
|
|
1271
|
+
}
|
|
1242
1272
|
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1243
1273
|
if (i2 > -1) {
|
|
1244
1274
|
deferredConnectedCallbacks.splice(i2, 1);
|
|
@@ -1249,7 +1279,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1249
1279
|
});
|
|
1250
1280
|
}
|
|
1251
1281
|
componentOnReady() {
|
|
1252
|
-
|
|
1282
|
+
var _a3;
|
|
1283
|
+
return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
|
|
1253
1284
|
}
|
|
1254
1285
|
};
|
|
1255
1286
|
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
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-DOLju3Sj.js';
|
|
2
|
+
export { s as setNonce } from './index-DOLju3Sj.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-DQuL1Twl.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|