@siemens/ix-icons 0.0.0-pr-69-20250130132918 → 0.0.0-pr-69-20250203134847
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +46 -17
- package/components/icon.js +0 -4
- package/components/icon.js.map +1 -1
- package/dist/cjs/{icon-2c9dc943.js → icon-88309350.js} +2 -6
- package/dist/cjs/icon-88309350.js.map +1 -0
- package/dist/cjs/{index-ea94711c.js → index-f6043fa9.js} +178 -70
- package/dist/cjs/index-f6043fa9.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/ix-icon.cjs.entry.js +2 -2
- package/dist/cjs/ix-icons.cjs.js +2 -2
- package/dist/cjs/ix-icons.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/icon/icon.js +8 -4
- package/dist/collection/components/icon/icon.js.map +1 -1
- package/dist/esm/{icon-e3f6595d.js → icon-4feff534.js} +2 -6
- package/dist/esm/icon-4feff534.js.map +1 -0
- package/dist/esm/{index-050dd9d6.js → index-051cb4f1.js} +178 -70
- package/dist/esm/index-051cb4f1.js.map +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/ix-icon.entry.js +2 -2
- package/dist/esm/ix-icons.js +3 -3
- package/dist/esm/ix-icons.js.map +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/ix-icons/index.esm.js +1 -1
- package/dist/ix-icons/ix-icons.esm.js +1 -1
- package/dist/ix-icons/ix-icons.esm.js.map +1 -1
- package/dist/ix-icons/p-08f117ce.entry.js +2 -0
- package/dist/ix-icons/p-48b5ebf2.js +3 -0
- package/dist/ix-icons/p-48b5ebf2.js.map +1 -0
- package/dist/ix-icons/{p-196f504a.js → p-588f84dc.js} +2 -2
- package/dist/ix-icons/p-588f84dc.js.map +1 -0
- package/dist/sample.json +1259 -0
- package/dist/types/stencil-public-runtime.d.ts +6 -0
- package/icons/package.json +1 -1
- package/package.json +2 -2
- package/dist/cjs/icon-2c9dc943.js.map +0 -1
- package/dist/cjs/index-ea94711c.js.map +0 -1
- package/dist/esm/icon-e3f6595d.js.map +0 -1
- package/dist/esm/index-050dd9d6.js.map +0 -1
- package/dist/ix-icons/p-0194ffaa.js +0 -3
- package/dist/ix-icons/p-0194ffaa.js.map +0 -1
- package/dist/ix-icons/p-196f504a.js.map +0 -1
- package/dist/ix-icons/p-45457b43.entry.js +0 -2
- /package/dist/ix-icons/{p-45457b43.entry.js.map → p-08f117ce.entry.js.map} +0 -0
@@ -21,19 +21,27 @@ function _interopNamespace(e) {
|
|
21
21
|
}
|
22
22
|
|
23
23
|
const NAMESPACE = 'ix-icons';
|
24
|
-
const BUILD = /* ix-icons */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, 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: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, 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: true, vdomText: false, vdomXlink: false, watchCallback: true };
|
24
|
+
const BUILD = /* ix-icons */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, 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: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, 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: true, vdomText: false, vdomXlink: false, watchCallback: true };
|
25
25
|
|
26
26
|
/*
|
27
|
-
Stencil Client Platform v4.
|
27
|
+
Stencil Client Platform v4.25.1 | MIT Licensed | https://stenciljs.com
|
28
28
|
*/
|
29
29
|
var __defProp = Object.defineProperty;
|
30
30
|
var __export = (target, all) => {
|
31
31
|
for (var name in all)
|
32
32
|
__defProp(target, name, { get: all[name], enumerable: true });
|
33
33
|
};
|
34
|
+
|
35
|
+
// src/utils/constants.ts
|
36
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
37
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
38
|
+
|
39
|
+
// src/client/client-host-ref.ts
|
34
40
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
35
41
|
var getHostRef = (ref) => hostRefs.get(ref);
|
36
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
42
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
43
|
+
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
44
|
+
};
|
37
45
|
var registerHost = (hostElement, cmpMeta) => {
|
38
46
|
const hostRef = {
|
39
47
|
$flags$: 0,
|
@@ -46,7 +54,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
46
54
|
hostElement["s-p"] = [];
|
47
55
|
hostElement["s-rc"] = [];
|
48
56
|
}
|
49
|
-
|
57
|
+
const ref = hostRefs.set(hostElement, hostRef);
|
58
|
+
return ref;
|
50
59
|
};
|
51
60
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
52
61
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
@@ -83,16 +92,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
83
92
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
84
93
|
/* webpackMode: "lazy" */
|
85
94
|
`./${bundleId}.entry.js${""}`
|
86
|
-
)); }).then(
|
87
|
-
{
|
88
|
-
|
95
|
+
)); }).then(
|
96
|
+
(importedModule) => {
|
97
|
+
{
|
98
|
+
cmpModules.set(bundleId, importedModule);
|
99
|
+
}
|
100
|
+
return importedModule[exportName];
|
101
|
+
},
|
102
|
+
(e) => {
|
103
|
+
consoleError(e, hostRef.$hostElement$);
|
89
104
|
}
|
90
|
-
|
91
|
-
}, consoleError);
|
105
|
+
);
|
92
106
|
};
|
93
107
|
|
94
108
|
// src/client/client-style.ts
|
95
109
|
var styles = /* @__PURE__ */ new Map();
|
110
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
96
111
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
97
112
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
98
113
|
var win = typeof window !== "undefined" ? window : {};
|
@@ -157,14 +172,6 @@ var getAssetPath = (path) => {
|
|
157
172
|
return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
|
158
173
|
};
|
159
174
|
var setAssetPath = (path) => plt.$resourcesUrl$ = path;
|
160
|
-
|
161
|
-
// src/utils/constants.ts
|
162
|
-
var EMPTY_OBJ = {};
|
163
|
-
var SVG_NS = "http://www.w3.org/2000/svg";
|
164
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
165
|
-
|
166
|
-
// src/utils/helpers.ts
|
167
|
-
var isDef = (v) => v != null;
|
168
175
|
var isComplexType = (o) => {
|
169
176
|
o = typeof o;
|
170
177
|
return o === "object" || o === "function";
|
@@ -350,7 +357,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
350
357
|
}
|
351
358
|
if (!appliedStyles.has(scopeId2)) {
|
352
359
|
{
|
353
|
-
styleElm = doc.createElement("style");
|
360
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
354
361
|
styleElm.innerHTML = style;
|
355
362
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
356
363
|
if (nonce != null) {
|
@@ -359,10 +366,24 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
359
366
|
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
360
367
|
if (styleContainerNode.nodeName === "HEAD") {
|
361
368
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
362
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling :
|
363
|
-
styleContainerNode.insertBefore(
|
369
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
370
|
+
styleContainerNode.insertBefore(
|
371
|
+
styleElm,
|
372
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
373
|
+
);
|
364
374
|
} else if ("host" in styleContainerNode) {
|
365
|
-
|
375
|
+
if (supportsConstructableStylesheets) {
|
376
|
+
const stylesheet = new CSSStyleSheet();
|
377
|
+
stylesheet.replaceSync(style);
|
378
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
379
|
+
} else {
|
380
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
381
|
+
if (existingStyleContainer) {
|
382
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
383
|
+
} else {
|
384
|
+
styleContainerNode.prepend(styleElm);
|
385
|
+
}
|
386
|
+
}
|
366
387
|
} else {
|
367
388
|
styleContainerNode.append(styleElm);
|
368
389
|
}
|
@@ -399,16 +420,18 @@ var attachStyles = (hostRef) => {
|
|
399
420
|
endAttachStyles();
|
400
421
|
};
|
401
422
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
402
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
423
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
403
424
|
if (oldValue !== newValue) {
|
404
425
|
let isProp = isMemberInElement(elm, memberName);
|
405
426
|
memberName.toLowerCase();
|
406
427
|
if (memberName === "class") {
|
407
428
|
const classList = elm.classList;
|
408
429
|
const oldClasses = parseClassList(oldValue);
|
409
|
-
|
410
|
-
|
411
|
-
|
430
|
+
let newClasses = parseClassList(newValue);
|
431
|
+
{
|
432
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
433
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
434
|
+
}
|
412
435
|
} else if (memberName === "style") {
|
413
436
|
{
|
414
437
|
for (const prop in oldValue) {
|
@@ -445,7 +468,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
445
468
|
elm.setAttribute(memberName, n);
|
446
469
|
}
|
447
470
|
}
|
448
|
-
} else {
|
471
|
+
} else if (elm[memberName] !== newValue) {
|
449
472
|
elm[memberName] = newValue;
|
450
473
|
}
|
451
474
|
} catch (e) {
|
@@ -467,22 +490,42 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
467
490
|
}
|
468
491
|
};
|
469
492
|
var parseClassListRegex = /\s/;
|
470
|
-
var parseClassList = (value) =>
|
493
|
+
var parseClassList = (value) => {
|
494
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
495
|
+
value = value.baseVal;
|
496
|
+
}
|
497
|
+
if (!value || typeof value !== "string") {
|
498
|
+
return [];
|
499
|
+
}
|
500
|
+
return value.split(parseClassListRegex);
|
501
|
+
};
|
471
502
|
|
472
503
|
// src/runtime/vdom/update-element.ts
|
473
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
504
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
474
505
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
475
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
476
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
506
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
507
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
477
508
|
{
|
478
509
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
479
510
|
if (!(memberName in newVnodeAttrs)) {
|
480
|
-
setAccessor(
|
511
|
+
setAccessor(
|
512
|
+
elm,
|
513
|
+
memberName,
|
514
|
+
oldVnodeAttrs[memberName],
|
515
|
+
void 0,
|
516
|
+
isSvgMode2,
|
517
|
+
newVnode.$flags$);
|
481
518
|
}
|
482
519
|
}
|
483
520
|
}
|
484
521
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
485
|
-
setAccessor(
|
522
|
+
setAccessor(
|
523
|
+
elm,
|
524
|
+
memberName,
|
525
|
+
oldVnodeAttrs[memberName],
|
526
|
+
newVnodeAttrs[memberName],
|
527
|
+
isSvgMode2,
|
528
|
+
newVnode.$flags$);
|
486
529
|
}
|
487
530
|
};
|
488
531
|
function sortedAttrNames(attrNames) {
|
@@ -494,13 +537,10 @@ function sortedAttrNames(attrNames) {
|
|
494
537
|
attrNames
|
495
538
|
);
|
496
539
|
}
|
497
|
-
|
498
|
-
// src/runtime/vdom/vdom-render.ts
|
499
|
-
var scopeId;
|
500
540
|
var hostTagName;
|
501
541
|
var useNativeShadowDom = false;
|
502
542
|
var isSvgMode = false;
|
503
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
543
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
504
544
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
505
545
|
let i2 = 0;
|
506
546
|
let elm;
|
@@ -519,11 +559,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
519
559
|
{
|
520
560
|
updateElement(null, newVNode2, isSvgMode);
|
521
561
|
}
|
522
|
-
const rootNode = elm.getRootNode();
|
523
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
524
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
525
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
526
|
-
}
|
527
562
|
if (newVNode2.$children$) {
|
528
563
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
529
564
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
@@ -659,6 +694,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
659
694
|
if (!isInitialRender) {
|
660
695
|
return leftVNode.$key$ === rightVNode.$key$;
|
661
696
|
}
|
697
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
698
|
+
leftVNode.$key$ = rightVNode.$key$;
|
699
|
+
}
|
662
700
|
return true;
|
663
701
|
}
|
664
702
|
return false;
|
@@ -693,8 +731,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
693
731
|
}
|
694
732
|
};
|
695
733
|
var insertBefore = (parent, newNode, reference) => {
|
696
|
-
|
697
|
-
|
734
|
+
{
|
735
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
736
|
+
}
|
698
737
|
};
|
699
738
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
700
739
|
const hostElm = hostRef.$hostElement$;
|
@@ -713,9 +752,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
713
752
|
rootVnode.$flags$ |= 4 /* isHost */;
|
714
753
|
hostRef.$vnode$ = rootVnode;
|
715
754
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
716
|
-
{
|
717
|
-
scopeId = hostElm["s-sc"];
|
718
|
-
}
|
719
755
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
720
756
|
patch(oldVNode, rootVnode, isInitialLoad);
|
721
757
|
};
|
@@ -723,7 +759,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
723
759
|
// src/runtime/update-component.ts
|
724
760
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
725
761
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
726
|
-
ancestorComponent["s-p"].push(
|
762
|
+
const index = ancestorComponent["s-p"].push(
|
763
|
+
new Promise(
|
764
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
765
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
766
|
+
r();
|
767
|
+
}
|
768
|
+
)
|
769
|
+
);
|
727
770
|
}
|
728
771
|
};
|
729
772
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
@@ -750,7 +793,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
750
793
|
let maybePromise;
|
751
794
|
if (isInitialLoad) {
|
752
795
|
{
|
753
|
-
maybePromise = safeCall(instance, "componentWillLoad");
|
796
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
754
797
|
}
|
755
798
|
}
|
756
799
|
endSchedule();
|
@@ -849,12 +892,12 @@ var appDidLoad = (who) => {
|
|
849
892
|
}
|
850
893
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
851
894
|
};
|
852
|
-
var safeCall = (instance, method, arg) => {
|
895
|
+
var safeCall = (instance, method, arg, elm) => {
|
853
896
|
if (instance && instance[method]) {
|
854
897
|
try {
|
855
898
|
return instance[method](arg);
|
856
899
|
} catch (e) {
|
857
|
-
consoleError(e);
|
900
|
+
consoleError(e, elm);
|
858
901
|
}
|
859
902
|
}
|
860
903
|
return void 0;
|
@@ -913,15 +956,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
913
956
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
914
957
|
members.map(([memberName, [memberFlags]]) => {
|
915
958
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
959
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
960
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
961
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
962
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
963
|
+
Object.defineProperty(prototype, memberName, {
|
964
|
+
get() {
|
965
|
+
{
|
966
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
967
|
+
return getValue(this, memberName);
|
968
|
+
}
|
969
|
+
const ref = getHostRef(this);
|
970
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
971
|
+
if (!instance) return;
|
972
|
+
return instance[memberName];
|
973
|
+
}
|
974
|
+
},
|
975
|
+
configurable: true,
|
976
|
+
enumerable: true
|
977
|
+
});
|
978
|
+
}
|
916
979
|
Object.defineProperty(prototype, memberName, {
|
917
|
-
get() {
|
918
|
-
return getValue(this, memberName);
|
919
|
-
},
|
920
980
|
set(newValue) {
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
981
|
+
const ref = getHostRef(this);
|
982
|
+
if (origSetter) {
|
983
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
984
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
985
|
+
newValue = ref.$instanceValues$.get(memberName);
|
986
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
987
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
988
|
+
}
|
989
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
990
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
991
|
+
setValue(this, memberName, newValue, cmpMeta);
|
992
|
+
return;
|
993
|
+
}
|
994
|
+
{
|
995
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
996
|
+
setValue(this, memberName, newValue, cmpMeta);
|
997
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
998
|
+
ref.$onReadyPromise$.then(() => {
|
999
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
1000
|
+
ref.$lazyInstance$[memberName] = newValue;
|
1001
|
+
}
|
1002
|
+
});
|
1003
|
+
}
|
1004
|
+
return;
|
1005
|
+
}
|
1006
|
+
const setterSetVal = () => {
|
1007
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
1008
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
1009
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
1010
|
+
}
|
1011
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
1012
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
1013
|
+
};
|
1014
|
+
if (ref.$lazyInstance$) {
|
1015
|
+
setterSetVal();
|
1016
|
+
} else {
|
1017
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
1018
|
+
}
|
1019
|
+
}
|
1020
|
+
}
|
925
1021
|
});
|
926
1022
|
}
|
927
1023
|
});
|
@@ -931,7 +1027,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
931
1027
|
plt.jmp(() => {
|
932
1028
|
var _a2;
|
933
1029
|
const propName = attrNameToPropName.get(attrName);
|
934
|
-
if (this.hasOwnProperty(propName)) {
|
1030
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
935
1031
|
newValue = this[propName];
|
936
1032
|
delete this[propName];
|
937
1033
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
@@ -951,7 +1047,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
951
1047
|
}
|
952
1048
|
return;
|
953
1049
|
}
|
954
|
-
|
1050
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
1051
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
1052
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
1053
|
+
this[propName] = newValue;
|
1054
|
+
}
|
955
1055
|
});
|
956
1056
|
};
|
957
1057
|
Cstr.observedAttributes = Array.from(
|
@@ -974,9 +1074,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
974
1074
|
let Cstr;
|
975
1075
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
976
1076
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
977
|
-
|
978
|
-
|
979
|
-
const CstrImport = loadModule(cmpMeta);
|
1077
|
+
{
|
1078
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
980
1079
|
if (CstrImport && "then" in CstrImport) {
|
981
1080
|
const endLoad = uniqueTime();
|
982
1081
|
Cstr = await CstrImport;
|
@@ -1001,7 +1100,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1001
1100
|
try {
|
1002
1101
|
new Cstr(hostRef);
|
1003
1102
|
} catch (e) {
|
1004
|
-
consoleError(e);
|
1103
|
+
consoleError(e, elm);
|
1005
1104
|
}
|
1006
1105
|
{
|
1007
1106
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
@@ -1010,10 +1109,6 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1010
1109
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
1011
1110
|
}
|
1012
1111
|
endNewInstance();
|
1013
|
-
} else {
|
1014
|
-
Cstr = elm.constructor;
|
1015
|
-
const cmpTag = elm.localName;
|
1016
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
1017
1112
|
}
|
1018
1113
|
if (Cstr && Cstr.style) {
|
1019
1114
|
let style;
|
@@ -1036,7 +1131,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1036
1131
|
schedule();
|
1037
1132
|
}
|
1038
1133
|
};
|
1039
|
-
var fireConnectedCallback = (instance) => {
|
1134
|
+
var fireConnectedCallback = (instance, elm) => {
|
1040
1135
|
};
|
1041
1136
|
|
1042
1137
|
// src/runtime/connected-callback.ts
|
@@ -1076,7 +1171,7 @@ var connectedCallback = (elm) => {
|
|
1076
1171
|
endConnected();
|
1077
1172
|
}
|
1078
1173
|
};
|
1079
|
-
var disconnectInstance = (instance) => {
|
1174
|
+
var disconnectInstance = (instance, elm) => {
|
1080
1175
|
};
|
1081
1176
|
var disconnectedCallback = async (elm) => {
|
1082
1177
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
@@ -1085,6 +1180,12 @@ var disconnectedCallback = async (elm) => {
|
|
1085
1180
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
1086
1181
|
}
|
1087
1182
|
}
|
1183
|
+
if (rootAppliedStyles.has(elm)) {
|
1184
|
+
rootAppliedStyles.delete(elm);
|
1185
|
+
}
|
1186
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
1187
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
1188
|
+
}
|
1088
1189
|
};
|
1089
1190
|
|
1090
1191
|
// src/runtime/bootstrap-lazy.ts
|
@@ -1162,6 +1263,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1162
1263
|
}
|
1163
1264
|
disconnectedCallback() {
|
1164
1265
|
plt.jmp(() => disconnectedCallback(this));
|
1266
|
+
plt.raf(() => {
|
1267
|
+
var _a3;
|
1268
|
+
const hostRef = getHostRef(this);
|
1269
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
1270
|
+
delete hostRef.$vnode$.$elm$;
|
1271
|
+
}
|
1272
|
+
});
|
1165
1273
|
}
|
1166
1274
|
componentOnReady() {
|
1167
1275
|
return getHostRef(this).$onReadyPromise$;
|
@@ -1217,4 +1325,4 @@ exports.registerInstance = registerInstance;
|
|
1217
1325
|
exports.setAssetPath = setAssetPath;
|
1218
1326
|
exports.setNonce = setNonce;
|
1219
1327
|
|
1220
|
-
//# sourceMappingURL=index-
|
1328
|
+
//# sourceMappingURL=index-f6043fa9.js.map
|