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
|
@@ -24,7 +24,7 @@ const NAMESPACE = 'proto-ikons-wc';
|
|
|
24
24
|
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 };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.25.0 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
@@ -79,12 +79,17 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
79
79
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
80
80
|
/* webpackMode: "lazy" */
|
|
81
81
|
`./${bundleId}.entry.js${""}`
|
|
82
|
-
)); }).then(
|
|
83
|
-
{
|
|
84
|
-
|
|
82
|
+
)); }).then(
|
|
83
|
+
(importedModule) => {
|
|
84
|
+
{
|
|
85
|
+
cmpModules.set(bundleId, importedModule);
|
|
86
|
+
}
|
|
87
|
+
return importedModule[exportName];
|
|
88
|
+
},
|
|
89
|
+
(e) => {
|
|
90
|
+
consoleError(e, hostRef.$hostElement$);
|
|
85
91
|
}
|
|
86
|
-
|
|
87
|
-
}, consoleError);
|
|
92
|
+
);
|
|
88
93
|
};
|
|
89
94
|
|
|
90
95
|
// src/client/client-style.ts
|
|
@@ -208,6 +213,20 @@ var unwrapErr = (result) => {
|
|
|
208
213
|
throw result.value;
|
|
209
214
|
}
|
|
210
215
|
};
|
|
216
|
+
var createTime = (fnName, tagName = "") => {
|
|
217
|
+
{
|
|
218
|
+
return () => {
|
|
219
|
+
return;
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
var uniqueTime = (key, measureText) => {
|
|
224
|
+
{
|
|
225
|
+
return () => {
|
|
226
|
+
return;
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
};
|
|
211
230
|
var h = (nodeName, vnodeData, ...children) => {
|
|
212
231
|
let child = null;
|
|
213
232
|
let key = null;
|
|
@@ -272,6 +291,111 @@ var newVNode = (tag, text) => {
|
|
|
272
291
|
};
|
|
273
292
|
var Host = {};
|
|
274
293
|
var isHost = (node) => node && node.$tag$ === Host;
|
|
294
|
+
var parsePropertyValue = (propValue, propType) => {
|
|
295
|
+
if (propValue != null && !isComplexType(propValue)) {
|
|
296
|
+
if (propType & 4 /* Boolean */) {
|
|
297
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
298
|
+
}
|
|
299
|
+
if (propType & 2 /* Number */) {
|
|
300
|
+
return parseFloat(propValue);
|
|
301
|
+
}
|
|
302
|
+
if (propType & 1 /* String */) {
|
|
303
|
+
return String(propValue);
|
|
304
|
+
}
|
|
305
|
+
return propValue;
|
|
306
|
+
}
|
|
307
|
+
return propValue;
|
|
308
|
+
};
|
|
309
|
+
var emitEvent = (elm, name, opts) => {
|
|
310
|
+
const ev = plt.ce(name, opts);
|
|
311
|
+
elm.dispatchEvent(ev);
|
|
312
|
+
return ev;
|
|
313
|
+
};
|
|
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
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
334
|
+
if (style) {
|
|
335
|
+
if (typeof style === "string") {
|
|
336
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
337
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
338
|
+
let styleElm;
|
|
339
|
+
if (!appliedStyles) {
|
|
340
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
341
|
+
}
|
|
342
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
343
|
+
{
|
|
344
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
345
|
+
styleElm.innerHTML = style;
|
|
346
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
347
|
+
if (nonce != null) {
|
|
348
|
+
styleElm.setAttribute("nonce", nonce);
|
|
349
|
+
}
|
|
350
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
351
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
352
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
353
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
354
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
355
|
+
} else if ("host" in styleContainerNode) {
|
|
356
|
+
if (supportsConstructableStylesheets) {
|
|
357
|
+
const stylesheet = new CSSStyleSheet();
|
|
358
|
+
stylesheet.replaceSync(style);
|
|
359
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
360
|
+
} else {
|
|
361
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
362
|
+
if (existingStyleContainer) {
|
|
363
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
364
|
+
} else {
|
|
365
|
+
styleContainerNode.prepend(styleElm);
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
} else {
|
|
369
|
+
styleContainerNode.append(styleElm);
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
373
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
377
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
378
|
+
}
|
|
379
|
+
if (appliedStyles) {
|
|
380
|
+
appliedStyles.add(scopeId2);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
384
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
return scopeId2;
|
|
388
|
+
};
|
|
389
|
+
var attachStyles = (hostRef) => {
|
|
390
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
391
|
+
const elm = hostRef.$hostElement$;
|
|
392
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
393
|
+
addStyle(
|
|
394
|
+
elm.getRootNode(),
|
|
395
|
+
cmpMeta);
|
|
396
|
+
endAttachStyles();
|
|
397
|
+
};
|
|
398
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
275
399
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
276
400
|
if (oldValue !== newValue) {
|
|
277
401
|
let isProp = isMemberInElement(elm, memberName);
|
|
@@ -307,7 +431,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
307
431
|
elm.setAttribute(memberName, n);
|
|
308
432
|
}
|
|
309
433
|
}
|
|
310
|
-
} else {
|
|
434
|
+
} else if (elm[memberName] !== newValue) {
|
|
311
435
|
elm[memberName] = newValue;
|
|
312
436
|
}
|
|
313
437
|
} catch (e) {
|
|
@@ -574,8 +698,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
574
698
|
}
|
|
575
699
|
};
|
|
576
700
|
var insertBefore = (parent, newNode, reference) => {
|
|
577
|
-
|
|
578
|
-
|
|
701
|
+
{
|
|
702
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
703
|
+
}
|
|
579
704
|
};
|
|
580
705
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
581
706
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -596,130 +721,18 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
596
721
|
useNativeShadowDom = supportsShadow ;
|
|
597
722
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
598
723
|
};
|
|
599
|
-
var createTime = (fnName, tagName = "") => {
|
|
600
|
-
{
|
|
601
|
-
return () => {
|
|
602
|
-
return;
|
|
603
|
-
};
|
|
604
|
-
}
|
|
605
|
-
};
|
|
606
|
-
var uniqueTime = (key, measureText) => {
|
|
607
|
-
{
|
|
608
|
-
return () => {
|
|
609
|
-
return;
|
|
610
|
-
};
|
|
611
|
-
}
|
|
612
|
-
};
|
|
613
|
-
var parsePropertyValue = (propValue, propType) => {
|
|
614
|
-
if (propValue != null && !isComplexType(propValue)) {
|
|
615
|
-
if (propType & 4 /* Boolean */) {
|
|
616
|
-
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
617
|
-
}
|
|
618
|
-
if (propType & 2 /* Number */) {
|
|
619
|
-
return parseFloat(propValue);
|
|
620
|
-
}
|
|
621
|
-
if (propType & 1 /* String */) {
|
|
622
|
-
return String(propValue);
|
|
623
|
-
}
|
|
624
|
-
return propValue;
|
|
625
|
-
}
|
|
626
|
-
return propValue;
|
|
627
|
-
};
|
|
628
|
-
var emitEvent = (elm, name, opts) => {
|
|
629
|
-
const ev = plt.ce(name, opts);
|
|
630
|
-
elm.dispatchEvent(ev);
|
|
631
|
-
return ev;
|
|
632
|
-
};
|
|
633
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
634
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
635
|
-
let style = styles.get(scopeId2);
|
|
636
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
637
|
-
style = style || new CSSStyleSheet();
|
|
638
|
-
if (typeof style === "string") {
|
|
639
|
-
style = cssText;
|
|
640
|
-
} else {
|
|
641
|
-
style.replaceSync(cssText);
|
|
642
|
-
}
|
|
643
|
-
} else {
|
|
644
|
-
style = cssText;
|
|
645
|
-
}
|
|
646
|
-
styles.set(scopeId2, style);
|
|
647
|
-
};
|
|
648
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
649
|
-
var _a;
|
|
650
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
651
|
-
const style = styles.get(scopeId2);
|
|
652
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
653
|
-
if (style) {
|
|
654
|
-
if (typeof style === "string") {
|
|
655
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
656
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
657
|
-
let styleElm;
|
|
658
|
-
if (!appliedStyles) {
|
|
659
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
660
|
-
}
|
|
661
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
662
|
-
{
|
|
663
|
-
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
664
|
-
styleElm.innerHTML = style;
|
|
665
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
666
|
-
if (nonce != null) {
|
|
667
|
-
styleElm.setAttribute("nonce", nonce);
|
|
668
|
-
}
|
|
669
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
670
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
671
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
672
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
673
|
-
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
674
|
-
} else if ("host" in styleContainerNode) {
|
|
675
|
-
if (supportsConstructableStylesheets) {
|
|
676
|
-
const stylesheet = new CSSStyleSheet();
|
|
677
|
-
stylesheet.replaceSync(style);
|
|
678
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
679
|
-
} else {
|
|
680
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
681
|
-
if (existingStyleContainer) {
|
|
682
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
683
|
-
} else {
|
|
684
|
-
styleContainerNode.prepend(styleElm);
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
} else {
|
|
688
|
-
styleContainerNode.append(styleElm);
|
|
689
|
-
}
|
|
690
|
-
}
|
|
691
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
692
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
693
|
-
}
|
|
694
|
-
}
|
|
695
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
696
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
697
|
-
}
|
|
698
|
-
if (appliedStyles) {
|
|
699
|
-
appliedStyles.add(scopeId2);
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
703
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
return scopeId2;
|
|
707
|
-
};
|
|
708
|
-
var attachStyles = (hostRef) => {
|
|
709
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
710
|
-
const elm = hostRef.$hostElement$;
|
|
711
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
712
|
-
addStyle(
|
|
713
|
-
elm.getRootNode(),
|
|
714
|
-
cmpMeta);
|
|
715
|
-
endAttachStyles();
|
|
716
|
-
};
|
|
717
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
718
724
|
|
|
719
725
|
// src/runtime/update-component.ts
|
|
720
726
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
721
727
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
722
|
-
ancestorComponent["s-p"].push(
|
|
728
|
+
const index = ancestorComponent["s-p"].push(
|
|
729
|
+
new Promise(
|
|
730
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
731
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
732
|
+
r();
|
|
733
|
+
}
|
|
734
|
+
)
|
|
735
|
+
);
|
|
723
736
|
}
|
|
724
737
|
};
|
|
725
738
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -878,62 +891,69 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
878
891
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
879
892
|
members.map(([memberName, [memberFlags]]) => {
|
|
880
893
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
881
|
-
|
|
894
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
895
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
896
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
897
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
882
898
|
Object.defineProperty(prototype, memberName, {
|
|
883
899
|
get() {
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
},
|
|
889
|
-
configurable: true,
|
|
890
|
-
enumerable: true
|
|
891
|
-
});
|
|
892
|
-
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
|
|
893
|
-
{
|
|
894
|
-
Object.defineProperty(prototype, memberName, {
|
|
895
|
-
get() {
|
|
900
|
+
{
|
|
901
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
902
|
+
return getValue(this, memberName);
|
|
903
|
+
}
|
|
896
904
|
const ref = getHostRef(this);
|
|
897
905
|
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
898
906
|
if (!instance) return;
|
|
899
907
|
return instance[memberName];
|
|
900
|
-
}
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
}
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
908
|
+
}
|
|
909
|
+
},
|
|
910
|
+
configurable: true,
|
|
911
|
+
enumerable: true
|
|
912
|
+
});
|
|
913
|
+
}
|
|
914
|
+
Object.defineProperty(prototype, memberName, {
|
|
915
|
+
set(newValue) {
|
|
916
|
+
const ref = getHostRef(this);
|
|
917
|
+
if (origSetter) {
|
|
918
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
919
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
920
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
921
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
922
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
923
|
+
}
|
|
924
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
925
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
926
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
927
|
+
return;
|
|
928
|
+
}
|
|
929
|
+
{
|
|
930
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
931
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
932
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
933
|
+
ref.$onReadyPromise$.then(() => {
|
|
934
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
935
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
936
|
+
}
|
|
937
|
+
});
|
|
918
938
|
}
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
|
|
926
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
927
|
-
};
|
|
928
|
-
if (ref.$lazyInstance$) {
|
|
929
|
-
setterSetVal();
|
|
930
|
-
} else {
|
|
931
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
939
|
+
return;
|
|
940
|
+
}
|
|
941
|
+
const setterSetVal = () => {
|
|
942
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
943
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
944
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
932
945
|
}
|
|
946
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
947
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
948
|
+
};
|
|
949
|
+
if (ref.$lazyInstance$) {
|
|
950
|
+
setterSetVal();
|
|
951
|
+
} else {
|
|
952
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
933
953
|
}
|
|
934
|
-
}
|
|
954
|
+
}
|
|
935
955
|
}
|
|
936
|
-
}
|
|
956
|
+
});
|
|
937
957
|
}
|
|
938
958
|
});
|
|
939
959
|
if ((flags & 1 /* isElementConstructor */)) {
|
|
@@ -963,8 +983,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
963
983
|
return;
|
|
964
984
|
}
|
|
965
985
|
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
966
|
-
|
|
967
|
-
|
|
986
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
987
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
988
|
+
this[propName] = newValue;
|
|
968
989
|
}
|
|
969
990
|
});
|
|
970
991
|
};
|
|
@@ -988,9 +1009,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
988
1009
|
let Cstr;
|
|
989
1010
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
990
1011
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1012
|
+
{
|
|
1013
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
994
1014
|
if (CstrImport && "then" in CstrImport) {
|
|
995
1015
|
const endLoad = uniqueTime();
|
|
996
1016
|
Cstr = await CstrImport;
|
|
@@ -1012,16 +1032,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1012
1032
|
try {
|
|
1013
1033
|
new Cstr(hostRef);
|
|
1014
1034
|
} catch (e) {
|
|
1015
|
-
consoleError(e);
|
|
1035
|
+
consoleError(e, elm);
|
|
1016
1036
|
}
|
|
1017
1037
|
{
|
|
1018
1038
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1019
1039
|
}
|
|
1020
1040
|
endNewInstance();
|
|
1021
|
-
} else {
|
|
1022
|
-
Cstr = elm.constructor;
|
|
1023
|
-
const cmpTag = elm.localName;
|
|
1024
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1025
1041
|
}
|
|
1026
1042
|
if (Cstr && Cstr.style) {
|
|
1027
1043
|
let style;
|
|
@@ -1044,7 +1060,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1044
1060
|
schedule();
|
|
1045
1061
|
}
|
|
1046
1062
|
};
|
|
1047
|
-
var fireConnectedCallback = (instance) => {
|
|
1063
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1048
1064
|
};
|
|
1049
1065
|
|
|
1050
1066
|
// src/runtime/connected-callback.ts
|
|
@@ -1084,7 +1100,7 @@ var connectedCallback = (elm) => {
|
|
|
1084
1100
|
endConnected();
|
|
1085
1101
|
}
|
|
1086
1102
|
};
|
|
1087
|
-
var disconnectInstance = (instance) => {
|
|
1103
|
+
var disconnectInstance = (instance, elm) => {
|
|
1088
1104
|
};
|
|
1089
1105
|
var disconnectedCallback = async (elm) => {
|
|
1090
1106
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-0e3c76da.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-0e3c76da.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.25.0 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('proto-ikons-wc.cjs.js', document.baseURI).href));
|