proto-ikons-wc 0.0.171 → 0.0.173
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-44dd3e76.js → index-0e3c76da.js} +203 -187
- 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-a17b2977.js → index-f25fbb04.js} +203 -187
- package/dist/esm/loader.js +2 -2
- package/dist/esm/proto-ikons-wc.js +3 -3
- package/dist/proto-ikons-wc/{p-c1ebf1ad.entry.js → p-5763be3c.entry.js} +1 -1
- package/dist/proto-ikons-wc/p-d4d82d99.js +2 -0
- package/dist/proto-ikons-wc/proto-ikons-wc.esm.js +1 -1
- package/package.json +2 -2
- package/dist/proto-ikons-wc/p-241f9ddd.js +0 -2
|
@@ -2,7 +2,7 @@ const NAMESPACE = 'proto-ikons-wc';
|
|
|
2
2
|
const BUILD = /* proto-ikons-wc */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: false, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: false, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: true, watchCallback: false };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.25.0 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
@@ -57,12 +57,17 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
57
57
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
58
58
|
/* webpackMode: "lazy" */
|
|
59
59
|
`./${bundleId}.entry.js${""}`
|
|
60
|
-
).then(
|
|
61
|
-
{
|
|
62
|
-
|
|
60
|
+
).then(
|
|
61
|
+
(importedModule) => {
|
|
62
|
+
{
|
|
63
|
+
cmpModules.set(bundleId, importedModule);
|
|
64
|
+
}
|
|
65
|
+
return importedModule[exportName];
|
|
66
|
+
},
|
|
67
|
+
(e) => {
|
|
68
|
+
consoleError(e, hostRef.$hostElement$);
|
|
63
69
|
}
|
|
64
|
-
|
|
65
|
-
}, consoleError);
|
|
70
|
+
);
|
|
66
71
|
};
|
|
67
72
|
|
|
68
73
|
// src/client/client-style.ts
|
|
@@ -186,6 +191,20 @@ var unwrapErr = (result) => {
|
|
|
186
191
|
throw result.value;
|
|
187
192
|
}
|
|
188
193
|
};
|
|
194
|
+
var createTime = (fnName, tagName = "") => {
|
|
195
|
+
{
|
|
196
|
+
return () => {
|
|
197
|
+
return;
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
var uniqueTime = (key, measureText) => {
|
|
202
|
+
{
|
|
203
|
+
return () => {
|
|
204
|
+
return;
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
};
|
|
189
208
|
var h = (nodeName, vnodeData, ...children) => {
|
|
190
209
|
let child = null;
|
|
191
210
|
let key = null;
|
|
@@ -250,6 +269,111 @@ var newVNode = (tag, text) => {
|
|
|
250
269
|
};
|
|
251
270
|
var Host = {};
|
|
252
271
|
var isHost = (node) => node && node.$tag$ === Host;
|
|
272
|
+
var parsePropertyValue = (propValue, propType) => {
|
|
273
|
+
if (propValue != null && !isComplexType(propValue)) {
|
|
274
|
+
if (propType & 4 /* Boolean */) {
|
|
275
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
276
|
+
}
|
|
277
|
+
if (propType & 2 /* Number */) {
|
|
278
|
+
return parseFloat(propValue);
|
|
279
|
+
}
|
|
280
|
+
if (propType & 1 /* String */) {
|
|
281
|
+
return String(propValue);
|
|
282
|
+
}
|
|
283
|
+
return propValue;
|
|
284
|
+
}
|
|
285
|
+
return propValue;
|
|
286
|
+
};
|
|
287
|
+
var emitEvent = (elm, name, opts) => {
|
|
288
|
+
const ev = plt.ce(name, opts);
|
|
289
|
+
elm.dispatchEvent(ev);
|
|
290
|
+
return ev;
|
|
291
|
+
};
|
|
292
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
293
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
294
|
+
let style = styles.get(scopeId2);
|
|
295
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
296
|
+
style = style || new CSSStyleSheet();
|
|
297
|
+
if (typeof style === "string") {
|
|
298
|
+
style = cssText;
|
|
299
|
+
} else {
|
|
300
|
+
style.replaceSync(cssText);
|
|
301
|
+
}
|
|
302
|
+
} else {
|
|
303
|
+
style = cssText;
|
|
304
|
+
}
|
|
305
|
+
styles.set(scopeId2, style);
|
|
306
|
+
};
|
|
307
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
308
|
+
var _a;
|
|
309
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
310
|
+
const style = styles.get(scopeId2);
|
|
311
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
312
|
+
if (style) {
|
|
313
|
+
if (typeof style === "string") {
|
|
314
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
315
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
316
|
+
let styleElm;
|
|
317
|
+
if (!appliedStyles) {
|
|
318
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
319
|
+
}
|
|
320
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
321
|
+
{
|
|
322
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
323
|
+
styleElm.innerHTML = style;
|
|
324
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
325
|
+
if (nonce != null) {
|
|
326
|
+
styleElm.setAttribute("nonce", nonce);
|
|
327
|
+
}
|
|
328
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
329
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
330
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
331
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
332
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
333
|
+
} else if ("host" in styleContainerNode) {
|
|
334
|
+
if (supportsConstructableStylesheets) {
|
|
335
|
+
const stylesheet = new CSSStyleSheet();
|
|
336
|
+
stylesheet.replaceSync(style);
|
|
337
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
338
|
+
} else {
|
|
339
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
340
|
+
if (existingStyleContainer) {
|
|
341
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
342
|
+
} else {
|
|
343
|
+
styleContainerNode.prepend(styleElm);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
} else {
|
|
347
|
+
styleContainerNode.append(styleElm);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
351
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
355
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
356
|
+
}
|
|
357
|
+
if (appliedStyles) {
|
|
358
|
+
appliedStyles.add(scopeId2);
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
362
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
return scopeId2;
|
|
366
|
+
};
|
|
367
|
+
var attachStyles = (hostRef) => {
|
|
368
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
369
|
+
const elm = hostRef.$hostElement$;
|
|
370
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
371
|
+
addStyle(
|
|
372
|
+
elm.getRootNode(),
|
|
373
|
+
cmpMeta);
|
|
374
|
+
endAttachStyles();
|
|
375
|
+
};
|
|
376
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
253
377
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
254
378
|
if (oldValue !== newValue) {
|
|
255
379
|
let isProp = isMemberInElement(elm, memberName);
|
|
@@ -285,7 +409,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
285
409
|
elm.setAttribute(memberName, n);
|
|
286
410
|
}
|
|
287
411
|
}
|
|
288
|
-
} else {
|
|
412
|
+
} else if (elm[memberName] !== newValue) {
|
|
289
413
|
elm[memberName] = newValue;
|
|
290
414
|
}
|
|
291
415
|
} catch (e) {
|
|
@@ -552,8 +676,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
552
676
|
}
|
|
553
677
|
};
|
|
554
678
|
var insertBefore = (parent, newNode, reference) => {
|
|
555
|
-
|
|
556
|
-
|
|
679
|
+
{
|
|
680
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
681
|
+
}
|
|
557
682
|
};
|
|
558
683
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
559
684
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -574,130 +699,18 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
574
699
|
useNativeShadowDom = supportsShadow ;
|
|
575
700
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
576
701
|
};
|
|
577
|
-
var createTime = (fnName, tagName = "") => {
|
|
578
|
-
{
|
|
579
|
-
return () => {
|
|
580
|
-
return;
|
|
581
|
-
};
|
|
582
|
-
}
|
|
583
|
-
};
|
|
584
|
-
var uniqueTime = (key, measureText) => {
|
|
585
|
-
{
|
|
586
|
-
return () => {
|
|
587
|
-
return;
|
|
588
|
-
};
|
|
589
|
-
}
|
|
590
|
-
};
|
|
591
|
-
var parsePropertyValue = (propValue, propType) => {
|
|
592
|
-
if (propValue != null && !isComplexType(propValue)) {
|
|
593
|
-
if (propType & 4 /* Boolean */) {
|
|
594
|
-
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
595
|
-
}
|
|
596
|
-
if (propType & 2 /* Number */) {
|
|
597
|
-
return parseFloat(propValue);
|
|
598
|
-
}
|
|
599
|
-
if (propType & 1 /* String */) {
|
|
600
|
-
return String(propValue);
|
|
601
|
-
}
|
|
602
|
-
return propValue;
|
|
603
|
-
}
|
|
604
|
-
return propValue;
|
|
605
|
-
};
|
|
606
|
-
var emitEvent = (elm, name, opts) => {
|
|
607
|
-
const ev = plt.ce(name, opts);
|
|
608
|
-
elm.dispatchEvent(ev);
|
|
609
|
-
return ev;
|
|
610
|
-
};
|
|
611
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
612
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
613
|
-
let style = styles.get(scopeId2);
|
|
614
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
615
|
-
style = style || new CSSStyleSheet();
|
|
616
|
-
if (typeof style === "string") {
|
|
617
|
-
style = cssText;
|
|
618
|
-
} else {
|
|
619
|
-
style.replaceSync(cssText);
|
|
620
|
-
}
|
|
621
|
-
} else {
|
|
622
|
-
style = cssText;
|
|
623
|
-
}
|
|
624
|
-
styles.set(scopeId2, style);
|
|
625
|
-
};
|
|
626
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
627
|
-
var _a;
|
|
628
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
629
|
-
const style = styles.get(scopeId2);
|
|
630
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
631
|
-
if (style) {
|
|
632
|
-
if (typeof style === "string") {
|
|
633
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
634
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
635
|
-
let styleElm;
|
|
636
|
-
if (!appliedStyles) {
|
|
637
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
638
|
-
}
|
|
639
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
640
|
-
{
|
|
641
|
-
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
642
|
-
styleElm.innerHTML = style;
|
|
643
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
644
|
-
if (nonce != null) {
|
|
645
|
-
styleElm.setAttribute("nonce", nonce);
|
|
646
|
-
}
|
|
647
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
648
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
649
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
650
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
651
|
-
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
652
|
-
} else if ("host" in styleContainerNode) {
|
|
653
|
-
if (supportsConstructableStylesheets) {
|
|
654
|
-
const stylesheet = new CSSStyleSheet();
|
|
655
|
-
stylesheet.replaceSync(style);
|
|
656
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
657
|
-
} else {
|
|
658
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
659
|
-
if (existingStyleContainer) {
|
|
660
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
661
|
-
} else {
|
|
662
|
-
styleContainerNode.prepend(styleElm);
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
} else {
|
|
666
|
-
styleContainerNode.append(styleElm);
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
670
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
674
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
675
|
-
}
|
|
676
|
-
if (appliedStyles) {
|
|
677
|
-
appliedStyles.add(scopeId2);
|
|
678
|
-
}
|
|
679
|
-
}
|
|
680
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
681
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
return scopeId2;
|
|
685
|
-
};
|
|
686
|
-
var attachStyles = (hostRef) => {
|
|
687
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
688
|
-
const elm = hostRef.$hostElement$;
|
|
689
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
690
|
-
addStyle(
|
|
691
|
-
elm.getRootNode(),
|
|
692
|
-
cmpMeta);
|
|
693
|
-
endAttachStyles();
|
|
694
|
-
};
|
|
695
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
696
702
|
|
|
697
703
|
// src/runtime/update-component.ts
|
|
698
704
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
699
705
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
700
|
-
ancestorComponent["s-p"].push(
|
|
706
|
+
const index = ancestorComponent["s-p"].push(
|
|
707
|
+
new Promise(
|
|
708
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
709
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
710
|
+
r();
|
|
711
|
+
}
|
|
712
|
+
)
|
|
713
|
+
);
|
|
701
714
|
}
|
|
702
715
|
};
|
|
703
716
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -856,62 +869,69 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
856
869
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
857
870
|
members.map(([memberName, [memberFlags]]) => {
|
|
858
871
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
859
|
-
|
|
872
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
873
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
874
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
875
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
860
876
|
Object.defineProperty(prototype, memberName, {
|
|
861
877
|
get() {
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
},
|
|
867
|
-
configurable: true,
|
|
868
|
-
enumerable: true
|
|
869
|
-
});
|
|
870
|
-
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
|
|
871
|
-
{
|
|
872
|
-
Object.defineProperty(prototype, memberName, {
|
|
873
|
-
get() {
|
|
878
|
+
{
|
|
879
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
880
|
+
return getValue(this, memberName);
|
|
881
|
+
}
|
|
874
882
|
const ref = getHostRef(this);
|
|
875
883
|
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
876
884
|
if (!instance) return;
|
|
877
885
|
return instance[memberName];
|
|
878
|
-
}
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
}
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
886
|
+
}
|
|
887
|
+
},
|
|
888
|
+
configurable: true,
|
|
889
|
+
enumerable: true
|
|
890
|
+
});
|
|
891
|
+
}
|
|
892
|
+
Object.defineProperty(prototype, memberName, {
|
|
893
|
+
set(newValue) {
|
|
894
|
+
const ref = getHostRef(this);
|
|
895
|
+
if (origSetter) {
|
|
896
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
897
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
898
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
899
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
900
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
901
|
+
}
|
|
902
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
903
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
904
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
905
|
+
return;
|
|
906
|
+
}
|
|
907
|
+
{
|
|
908
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
909
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
910
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
911
|
+
ref.$onReadyPromise$.then(() => {
|
|
912
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
913
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
914
|
+
}
|
|
915
|
+
});
|
|
896
916
|
}
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
|
|
904
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
905
|
-
};
|
|
906
|
-
if (ref.$lazyInstance$) {
|
|
907
|
-
setterSetVal();
|
|
908
|
-
} else {
|
|
909
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
917
|
+
return;
|
|
918
|
+
}
|
|
919
|
+
const setterSetVal = () => {
|
|
920
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
921
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
922
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
910
923
|
}
|
|
924
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
925
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
926
|
+
};
|
|
927
|
+
if (ref.$lazyInstance$) {
|
|
928
|
+
setterSetVal();
|
|
929
|
+
} else {
|
|
930
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
911
931
|
}
|
|
912
|
-
}
|
|
932
|
+
}
|
|
913
933
|
}
|
|
914
|
-
}
|
|
934
|
+
});
|
|
915
935
|
}
|
|
916
936
|
});
|
|
917
937
|
if ((flags & 1 /* isElementConstructor */)) {
|
|
@@ -941,8 +961,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
941
961
|
return;
|
|
942
962
|
}
|
|
943
963
|
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
944
|
-
|
|
945
|
-
|
|
964
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
965
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
966
|
+
this[propName] = newValue;
|
|
946
967
|
}
|
|
947
968
|
});
|
|
948
969
|
};
|
|
@@ -966,9 +987,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
966
987
|
let Cstr;
|
|
967
988
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
968
989
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
const CstrImport = loadModule(cmpMeta);
|
|
990
|
+
{
|
|
991
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
972
992
|
if (CstrImport && "then" in CstrImport) {
|
|
973
993
|
const endLoad = uniqueTime();
|
|
974
994
|
Cstr = await CstrImport;
|
|
@@ -990,16 +1010,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
990
1010
|
try {
|
|
991
1011
|
new Cstr(hostRef);
|
|
992
1012
|
} catch (e) {
|
|
993
|
-
consoleError(e);
|
|
1013
|
+
consoleError(e, elm);
|
|
994
1014
|
}
|
|
995
1015
|
{
|
|
996
1016
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
997
1017
|
}
|
|
998
1018
|
endNewInstance();
|
|
999
|
-
} else {
|
|
1000
|
-
Cstr = elm.constructor;
|
|
1001
|
-
const cmpTag = elm.localName;
|
|
1002
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1003
1019
|
}
|
|
1004
1020
|
if (Cstr && Cstr.style) {
|
|
1005
1021
|
let style;
|
|
@@ -1022,7 +1038,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1022
1038
|
schedule();
|
|
1023
1039
|
}
|
|
1024
1040
|
};
|
|
1025
|
-
var fireConnectedCallback = (instance) => {
|
|
1041
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1026
1042
|
};
|
|
1027
1043
|
|
|
1028
1044
|
// src/runtime/connected-callback.ts
|
|
@@ -1062,7 +1078,7 @@ var connectedCallback = (elm) => {
|
|
|
1062
1078
|
endConnected();
|
|
1063
1079
|
}
|
|
1064
1080
|
};
|
|
1065
|
-
var disconnectInstance = (instance) => {
|
|
1081
|
+
var disconnectInstance = (instance, elm) => {
|
|
1066
1082
|
};
|
|
1067
1083
|
var disconnectedCallback = async (elm) => {
|
|
1068
1084
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 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-f25fbb04.js';
|
|
2
|
+
export { s as setNonce } from './index-f25fbb04.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-f25fbb04.js';
|
|
2
|
+
export { s as setNonce } from './index-f25fbb04.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.25.0 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|