@everymatrix/player-elevate-card 1.54.11 → 1.55.0
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/general-styling-wrapper_5.cjs.entry.js +32 -78
- package/dist/cjs/{index-e1db0305.js → index-fcb2d8d9.js} +138 -246
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/player-elevate-card.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/player-elevate-card/player-elevate-card.js +7 -39
- package/dist/collection/components/player-elevate-card-data/player-elevate-card-data.js +5 -2
- package/dist/collection/components/player-elevate-loyaltycard/player-elevate-loyaltycard.js +7 -39
- package/dist/collection/components/player-elevate-pointcard/player-elevate-pointcard.js +10 -51
- package/dist/esm/general-styling-wrapper_5.entry.js +32 -78
- package/dist/esm/{index-29ae3408.js → index-94328d47.js} +138 -246
- package/dist/esm/loader.js +2 -2
- package/dist/esm/player-elevate-card.js +3 -3
- package/dist/player-elevate-card/p-08c2b497.entry.js +1 -0
- package/dist/player-elevate-card/p-8dfd18ff.js +2 -0
- package/dist/player-elevate-card/player-elevate-card.esm.js +1 -1
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-elevate-card/.stencil/packages/stencil/player-elevate-card/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-elevate-card/.stencil/packages/stencil/player-elevate-card/stencil.config.dev.d.ts +2 -0
- package/package.json +1 -1
- package/dist/player-elevate-card/p-17e5148c.js +0 -2
- package/dist/player-elevate-card/p-fbac732f.entry.js +0 -1
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-card/.stencil/packages/stencil/player-elevate-card/stencil.config.d.ts +0 -2
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-card/.stencil/packages/stencil/player-elevate-card/stencil.config.dev.d.ts +0 -2
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/player-elevate-card/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/player-elevate-card/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/player-elevate-card/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/player-elevate-card/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -21,23 +21,19 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'player-elevate-card';
|
|
24
|
-
const BUILD = /* player-elevate-card */ { allRenderFn: false, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, 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: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, 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,
|
|
24
|
+
const BUILD = /* player-elevate-card */ { allRenderFn: false, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, 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: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, 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: false, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.22.3 | 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/client/client-host-ref.ts
|
|
36
34
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
37
35
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
38
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
39
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
40
|
-
};
|
|
36
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
41
37
|
var registerHost = (hostElement, cmpMeta) => {
|
|
42
38
|
const hostRef = {
|
|
43
39
|
$flags$: 0,
|
|
@@ -50,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
50
46
|
hostElement["s-p"] = [];
|
|
51
47
|
hostElement["s-rc"] = [];
|
|
52
48
|
}
|
|
53
|
-
|
|
54
|
-
return ref;
|
|
49
|
+
return hostRefs.set(hostElement, hostRef);
|
|
55
50
|
};
|
|
56
51
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
57
52
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -88,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
88
83
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
89
84
|
/* webpackMode: "lazy" */
|
|
90
85
|
`./${bundleId}.entry.js${""}`
|
|
91
|
-
)); }).then(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
cmpModules.set(bundleId, importedModule);
|
|
95
|
-
}
|
|
96
|
-
return importedModule[exportName];
|
|
97
|
-
},
|
|
98
|
-
(e) => {
|
|
99
|
-
consoleError(e, hostRef.$hostElement$);
|
|
86
|
+
)); }).then((importedModule) => {
|
|
87
|
+
{
|
|
88
|
+
cmpModules.set(bundleId, importedModule);
|
|
100
89
|
}
|
|
101
|
-
|
|
90
|
+
return importedModule[exportName];
|
|
91
|
+
}, consoleError);
|
|
102
92
|
};
|
|
103
93
|
|
|
104
94
|
// src/client/client-style.ts
|
|
105
95
|
var styles = /* @__PURE__ */ new Map();
|
|
106
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
107
96
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
108
97
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
109
98
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -183,6 +172,12 @@ var getAssetPath = (path) => {
|
|
|
183
172
|
const assetUrl = new URL(path, plt.$resourcesUrl$);
|
|
184
173
|
return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
|
|
185
174
|
};
|
|
175
|
+
|
|
176
|
+
// src/utils/constants.ts
|
|
177
|
+
var EMPTY_OBJ = {};
|
|
178
|
+
|
|
179
|
+
// src/utils/helpers.ts
|
|
180
|
+
var isDef = (v) => v != null;
|
|
186
181
|
var isComplexType = (o) => {
|
|
187
182
|
o = typeof o;
|
|
188
183
|
return o === "object" || o === "function";
|
|
@@ -242,63 +237,6 @@ var unwrapErr = (result) => {
|
|
|
242
237
|
throw result.value;
|
|
243
238
|
}
|
|
244
239
|
};
|
|
245
|
-
var updateFallbackSlotVisibility = (elm) => {
|
|
246
|
-
const childNodes = elm.__childNodes || elm.childNodes;
|
|
247
|
-
if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
|
|
248
|
-
getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
|
|
249
|
-
var _a;
|
|
250
|
-
if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
|
|
251
|
-
if ((_a = getHostSlotChildNodes(slotNode, slotNode["s-sn"], false)) == null ? void 0 : _a.length) {
|
|
252
|
-
slotNode.hidden = true;
|
|
253
|
-
} else {
|
|
254
|
-
slotNode.hidden = false;
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
|
-
}
|
|
259
|
-
for (const childNode of childNodes) {
|
|
260
|
-
if (childNode.nodeType === 1 /* ElementNode */ && (childNode.__childNodes || childNode.childNodes).length) {
|
|
261
|
-
updateFallbackSlotVisibility(childNode);
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
};
|
|
265
|
-
function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
266
|
-
let i2 = 0;
|
|
267
|
-
let slottedNodes = [];
|
|
268
|
-
let childNode;
|
|
269
|
-
for (; i2 < childNodes.length; i2++) {
|
|
270
|
-
childNode = childNodes[i2];
|
|
271
|
-
if (childNode["s-sr"] && childNode["s-hn"] === hostName && (slotName === void 0 || childNode["s-sn"] === slotName)) {
|
|
272
|
-
slottedNodes.push(childNode);
|
|
273
|
-
if (typeof slotName !== "undefined") return slottedNodes;
|
|
274
|
-
}
|
|
275
|
-
slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
|
|
276
|
-
}
|
|
277
|
-
return slottedNodes;
|
|
278
|
-
}
|
|
279
|
-
var getHostSlotChildNodes = (node, slotName, includeSlot = true) => {
|
|
280
|
-
const childNodes = [];
|
|
281
|
-
if (includeSlot && node["s-sr"] || !node["s-sr"]) childNodes.push(node);
|
|
282
|
-
while ((node = node.nextSibling) && node["s-sn"] === slotName) {
|
|
283
|
-
childNodes.push(node);
|
|
284
|
-
}
|
|
285
|
-
return childNodes;
|
|
286
|
-
};
|
|
287
|
-
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
288
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
289
|
-
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
290
|
-
return true;
|
|
291
|
-
}
|
|
292
|
-
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
293
|
-
return true;
|
|
294
|
-
}
|
|
295
|
-
return false;
|
|
296
|
-
}
|
|
297
|
-
if (nodeToRelocate["s-sn"] === slotName) {
|
|
298
|
-
return true;
|
|
299
|
-
}
|
|
300
|
-
return slotName === "";
|
|
301
|
-
};
|
|
302
240
|
var createTime = (fnName, tagName = "") => {
|
|
303
241
|
{
|
|
304
242
|
return () => {
|
|
@@ -484,7 +422,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
484
422
|
}
|
|
485
423
|
if (!appliedStyles.has(scopeId2)) {
|
|
486
424
|
{
|
|
487
|
-
styleElm =
|
|
425
|
+
styleElm = doc.createElement("style");
|
|
488
426
|
styleElm.innerHTML = style;
|
|
489
427
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
490
428
|
if (nonce != null) {
|
|
@@ -494,10 +432,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
494
432
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
495
433
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
496
434
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
497
|
-
styleContainerNode.insertBefore(
|
|
498
|
-
styleElm,
|
|
499
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
500
|
-
);
|
|
435
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
501
436
|
} else if ("host" in styleContainerNode) {
|
|
502
437
|
if (supportsConstructableStylesheets) {
|
|
503
438
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -515,7 +450,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
515
450
|
styleContainerNode.append(styleElm);
|
|
516
451
|
}
|
|
517
452
|
}
|
|
518
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
453
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
519
454
|
styleContainerNode.insertBefore(styleElm, null);
|
|
520
455
|
}
|
|
521
456
|
}
|
|
@@ -540,25 +475,23 @@ var attachStyles = (hostRef) => {
|
|
|
540
475
|
const scopeId2 = addStyle(
|
|
541
476
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
542
477
|
cmpMeta);
|
|
543
|
-
if (
|
|
478
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
544
479
|
elm["s-sc"] = scopeId2;
|
|
545
480
|
elm.classList.add(scopeId2 + "-h");
|
|
546
481
|
}
|
|
547
482
|
endAttachStyles();
|
|
548
483
|
};
|
|
549
484
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
550
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
485
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
551
486
|
if (oldValue !== newValue) {
|
|
552
487
|
let isProp = isMemberInElement(elm, memberName);
|
|
553
488
|
let ln = memberName.toLowerCase();
|
|
554
489
|
if (memberName === "class") {
|
|
555
490
|
const classList = elm.classList;
|
|
556
491
|
const oldClasses = parseClassList(oldValue);
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
561
|
-
}
|
|
492
|
+
const newClasses = parseClassList(newValue);
|
|
493
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
494
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
562
495
|
} else if (memberName === "style") {
|
|
563
496
|
{
|
|
564
497
|
for (const prop in oldValue) {
|
|
@@ -613,7 +546,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
613
546
|
elm.setAttribute(memberName, n);
|
|
614
547
|
}
|
|
615
548
|
}
|
|
616
|
-
} else
|
|
549
|
+
} else {
|
|
617
550
|
elm[memberName] = newValue;
|
|
618
551
|
}
|
|
619
552
|
} catch (e) {
|
|
@@ -635,44 +568,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
635
568
|
}
|
|
636
569
|
};
|
|
637
570
|
var parseClassListRegex = /\s/;
|
|
638
|
-
var parseClassList = (value) =>
|
|
639
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
640
|
-
value = value.baseVal;
|
|
641
|
-
}
|
|
642
|
-
if (!value || typeof value !== "string") {
|
|
643
|
-
return [];
|
|
644
|
-
}
|
|
645
|
-
return value.split(parseClassListRegex);
|
|
646
|
-
};
|
|
571
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
647
572
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
648
573
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
649
574
|
|
|
650
575
|
// src/runtime/vdom/update-element.ts
|
|
651
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
576
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
652
577
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
653
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
654
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
578
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
579
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
655
580
|
{
|
|
656
581
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
657
582
|
if (!(memberName in newVnodeAttrs)) {
|
|
658
|
-
setAccessor(
|
|
659
|
-
elm,
|
|
660
|
-
memberName,
|
|
661
|
-
oldVnodeAttrs[memberName],
|
|
662
|
-
void 0,
|
|
663
|
-
isSvgMode2,
|
|
664
|
-
newVnode.$flags$);
|
|
583
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
665
584
|
}
|
|
666
585
|
}
|
|
667
586
|
}
|
|
668
587
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
669
|
-
setAccessor(
|
|
670
|
-
elm,
|
|
671
|
-
memberName,
|
|
672
|
-
oldVnodeAttrs[memberName],
|
|
673
|
-
newVnodeAttrs[memberName],
|
|
674
|
-
isSvgMode2,
|
|
675
|
-
newVnode.$flags$);
|
|
588
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
676
589
|
}
|
|
677
590
|
};
|
|
678
591
|
function sortedAttrNames(attrNames) {
|
|
@@ -684,13 +597,16 @@ function sortedAttrNames(attrNames) {
|
|
|
684
597
|
attrNames
|
|
685
598
|
);
|
|
686
599
|
}
|
|
600
|
+
|
|
601
|
+
// src/runtime/vdom/vdom-render.ts
|
|
602
|
+
var scopeId;
|
|
687
603
|
var contentRef;
|
|
688
604
|
var hostTagName;
|
|
689
605
|
var useNativeShadowDom = false;
|
|
690
606
|
var checkSlotFallbackVisibility = false;
|
|
691
607
|
var checkSlotRelocate = false;
|
|
692
608
|
var isSvgMode = false;
|
|
693
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
609
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
694
610
|
var _a;
|
|
695
611
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
696
612
|
let i2 = 0;
|
|
@@ -700,6 +616,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
700
616
|
if (!useNativeShadowDom) {
|
|
701
617
|
checkSlotRelocate = true;
|
|
702
618
|
if (newVNode2.$tag$ === "slot") {
|
|
619
|
+
if (scopeId) {
|
|
620
|
+
parentElm.classList.add(scopeId + "-s");
|
|
621
|
+
}
|
|
703
622
|
newVNode2.$flags$ |= newVNode2.$children$ ? (
|
|
704
623
|
// slot element has fallback content
|
|
705
624
|
// still create an element that "mocks" the slot element
|
|
@@ -723,9 +642,14 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
723
642
|
{
|
|
724
643
|
updateElement(null, newVNode2, isSvgMode);
|
|
725
644
|
}
|
|
645
|
+
const rootNode = elm.getRootNode();
|
|
646
|
+
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
647
|
+
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
648
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
649
|
+
}
|
|
726
650
|
if (newVNode2.$children$) {
|
|
727
651
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
728
|
-
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
652
|
+
childNode = createElm(oldParentVNode, newVNode2, i2, elm);
|
|
729
653
|
if (childNode) {
|
|
730
654
|
elm.appendChild(childNode);
|
|
731
655
|
}
|
|
@@ -751,7 +675,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
751
675
|
};
|
|
752
676
|
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
753
677
|
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
754
|
-
const oldSlotChildNodes = Array.from(parentElm.
|
|
678
|
+
const oldSlotChildNodes = Array.from(parentElm.childNodes);
|
|
755
679
|
if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
|
|
756
680
|
let node = parentElm;
|
|
757
681
|
while (node = node.nextSibling) {
|
|
@@ -763,7 +687,7 @@ var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
763
687
|
for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
|
|
764
688
|
const childNode = oldSlotChildNodes[i2];
|
|
765
689
|
if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
|
|
766
|
-
insertBefore(
|
|
690
|
+
insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
|
|
767
691
|
childNode["s-ol"].remove();
|
|
768
692
|
childNode["s-ol"] = void 0;
|
|
769
693
|
childNode["s-sh"] = void 0;
|
|
@@ -783,7 +707,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
|
783
707
|
}
|
|
784
708
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
785
709
|
if (vnodes[startIdx]) {
|
|
786
|
-
childNode = createElm(null, parentVNode, startIdx);
|
|
710
|
+
childNode = createElm(null, parentVNode, startIdx, parentElm);
|
|
787
711
|
if (childNode) {
|
|
788
712
|
vnodes[startIdx].$elm$ = childNode;
|
|
789
713
|
insertBefore(containerElm, childNode, referenceNode(before) );
|
|
@@ -869,7 +793,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
869
793
|
if (idxInOld >= 0) {
|
|
870
794
|
elmToMove = oldCh[idxInOld];
|
|
871
795
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
872
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
|
796
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
|
|
873
797
|
} else {
|
|
874
798
|
patch(elmToMove, newStartVnode, isInitialRender);
|
|
875
799
|
oldCh[idxInOld] = void 0;
|
|
@@ -877,16 +801,12 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
877
801
|
}
|
|
878
802
|
newStartVnode = newCh[++newStartIdx];
|
|
879
803
|
} else {
|
|
880
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
804
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
|
|
881
805
|
newStartVnode = newCh[++newStartIdx];
|
|
882
806
|
}
|
|
883
807
|
if (node) {
|
|
884
808
|
{
|
|
885
|
-
insertBefore(
|
|
886
|
-
referenceNode(oldStartVnode.$elm$).parentNode,
|
|
887
|
-
node,
|
|
888
|
-
referenceNode(oldStartVnode.$elm$)
|
|
889
|
-
);
|
|
809
|
+
insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
|
|
890
810
|
}
|
|
891
811
|
}
|
|
892
812
|
}
|
|
@@ -907,19 +827,28 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
907
827
|
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
908
828
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
909
829
|
if (leftVNode.$tag$ === "slot") {
|
|
830
|
+
if (
|
|
831
|
+
// The component gets hydrated and no VDOM has been initialized.
|
|
832
|
+
// Here the comparison can't happen as $name$ property is not set for `leftNode`.
|
|
833
|
+
"$nodeId$" in leftVNode && isInitialRender && // `leftNode` is not from type HTMLComment which would cause many
|
|
834
|
+
// hydration comments to be removed
|
|
835
|
+
leftVNode.$elm$.nodeType !== 8
|
|
836
|
+
) {
|
|
837
|
+
return false;
|
|
838
|
+
}
|
|
910
839
|
return leftVNode.$name$ === rightVNode.$name$;
|
|
911
840
|
}
|
|
912
841
|
if (!isInitialRender) {
|
|
913
842
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
914
843
|
}
|
|
915
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
916
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
917
|
-
}
|
|
918
844
|
return true;
|
|
919
845
|
}
|
|
920
846
|
return false;
|
|
921
847
|
};
|
|
922
|
-
var referenceNode = (node) =>
|
|
848
|
+
var referenceNode = (node) => {
|
|
849
|
+
return node && node["s-ol"] || node;
|
|
850
|
+
};
|
|
851
|
+
var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
|
|
923
852
|
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
924
853
|
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
925
854
|
const oldChildren = oldVNode.$children$;
|
|
@@ -952,15 +881,41 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
952
881
|
elm.data = text;
|
|
953
882
|
}
|
|
954
883
|
};
|
|
884
|
+
var updateFallbackSlotVisibility = (elm) => {
|
|
885
|
+
const childNodes = elm.childNodes;
|
|
886
|
+
for (const childNode of childNodes) {
|
|
887
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
888
|
+
if (childNode["s-sr"]) {
|
|
889
|
+
const slotName = childNode["s-sn"];
|
|
890
|
+
childNode.hidden = false;
|
|
891
|
+
for (const siblingNode of childNodes) {
|
|
892
|
+
if (siblingNode !== childNode) {
|
|
893
|
+
if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
|
|
894
|
+
if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
|
|
895
|
+
childNode.hidden = true;
|
|
896
|
+
break;
|
|
897
|
+
}
|
|
898
|
+
} else {
|
|
899
|
+
if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
|
|
900
|
+
childNode.hidden = true;
|
|
901
|
+
break;
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
updateFallbackSlotVisibility(childNode);
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
};
|
|
955
911
|
var relocateNodes = [];
|
|
956
912
|
var markSlotContentForRelocation = (elm) => {
|
|
957
913
|
let node;
|
|
958
914
|
let hostContentNodes;
|
|
959
915
|
let j;
|
|
960
|
-
const
|
|
961
|
-
for (const childNode of children) {
|
|
916
|
+
for (const childNode of elm.childNodes) {
|
|
962
917
|
if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
|
|
963
|
-
hostContentNodes = node.parentNode.
|
|
918
|
+
hostContentNodes = node.parentNode.childNodes;
|
|
964
919
|
const slotName = childNode["s-sn"];
|
|
965
920
|
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
966
921
|
node = hostContentNodes[j];
|
|
@@ -1002,10 +957,24 @@ var markSlotContentForRelocation = (elm) => {
|
|
|
1002
957
|
}
|
|
1003
958
|
}
|
|
1004
959
|
};
|
|
1005
|
-
var
|
|
1006
|
-
{
|
|
1007
|
-
|
|
960
|
+
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
961
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
962
|
+
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
963
|
+
return true;
|
|
964
|
+
}
|
|
965
|
+
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
966
|
+
return true;
|
|
967
|
+
}
|
|
968
|
+
return false;
|
|
1008
969
|
}
|
|
970
|
+
if (nodeToRelocate["s-sn"] === slotName) {
|
|
971
|
+
return true;
|
|
972
|
+
}
|
|
973
|
+
return slotName === "";
|
|
974
|
+
};
|
|
975
|
+
var insertBefore = (parent, newNode, reference) => {
|
|
976
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
977
|
+
return inserted;
|
|
1009
978
|
};
|
|
1010
979
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
1011
980
|
var _a, _b, _c, _d;
|
|
@@ -1031,7 +1000,10 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1031
1000
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
1032
1001
|
hostRef.$vnode$ = rootVnode;
|
|
1033
1002
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
1034
|
-
|
|
1003
|
+
{
|
|
1004
|
+
scopeId = hostElm["s-sc"];
|
|
1005
|
+
}
|
|
1006
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
1035
1007
|
{
|
|
1036
1008
|
contentRef = hostElm["s-cr"];
|
|
1037
1009
|
checkSlotFallbackVisibility = false;
|
|
@@ -1059,7 +1031,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1059
1031
|
let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
|
|
1060
1032
|
while (orgLocationNode) {
|
|
1061
1033
|
let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
|
|
1062
|
-
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef ===
|
|
1034
|
+
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
|
|
1063
1035
|
refNode = refNode.nextSibling;
|
|
1064
1036
|
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
|
1065
1037
|
refNode = refNode == null ? void 0 : refNode.nextSibling;
|
|
@@ -1072,15 +1044,13 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1072
1044
|
orgLocationNode = orgLocationNode.previousSibling;
|
|
1073
1045
|
}
|
|
1074
1046
|
}
|
|
1075
|
-
|
|
1076
|
-
const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
|
|
1077
|
-
if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
|
|
1047
|
+
if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
1078
1048
|
if (nodeToRelocate !== insertBeforeNode) {
|
|
1079
1049
|
if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
|
|
1080
1050
|
nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
|
|
1081
1051
|
}
|
|
1082
1052
|
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
|
|
1083
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */
|
|
1053
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1084
1054
|
nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
|
|
1085
1055
|
}
|
|
1086
1056
|
}
|
|
@@ -1108,14 +1078,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1108
1078
|
// src/runtime/update-component.ts
|
|
1109
1079
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
1110
1080
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
1111
|
-
|
|
1112
|
-
new Promise(
|
|
1113
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
1114
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
1115
|
-
r();
|
|
1116
|
-
}
|
|
1117
|
-
)
|
|
1118
|
-
);
|
|
1081
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
1119
1082
|
}
|
|
1120
1083
|
};
|
|
1121
1084
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -1144,12 +1107,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1144
1107
|
{
|
|
1145
1108
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
1146
1109
|
if (hostRef.$queuedListeners$) {
|
|
1147
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event
|
|
1110
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
1148
1111
|
hostRef.$queuedListeners$ = void 0;
|
|
1149
1112
|
}
|
|
1150
1113
|
}
|
|
1151
1114
|
{
|
|
1152
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
1115
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
1153
1116
|
}
|
|
1154
1117
|
}
|
|
1155
1118
|
endSchedule();
|
|
@@ -1218,7 +1181,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1218
1181
|
const instance = hostRef.$lazyInstance$ ;
|
|
1219
1182
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1220
1183
|
{
|
|
1221
|
-
safeCall(instance, "componentDidRender"
|
|
1184
|
+
safeCall(instance, "componentDidRender");
|
|
1222
1185
|
}
|
|
1223
1186
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
1224
1187
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -1247,14 +1210,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1247
1210
|
}
|
|
1248
1211
|
};
|
|
1249
1212
|
var appDidLoad = (who) => {
|
|
1213
|
+
{
|
|
1214
|
+
addHydratedFlag(doc.documentElement);
|
|
1215
|
+
}
|
|
1250
1216
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
1251
1217
|
};
|
|
1252
|
-
var safeCall = (instance, method, arg
|
|
1218
|
+
var safeCall = (instance, method, arg) => {
|
|
1253
1219
|
if (instance && instance[method]) {
|
|
1254
1220
|
try {
|
|
1255
1221
|
return instance[method](arg);
|
|
1256
1222
|
} catch (e) {
|
|
1257
|
-
consoleError(e
|
|
1223
|
+
consoleError(e);
|
|
1258
1224
|
}
|
|
1259
1225
|
}
|
|
1260
1226
|
return void 0;
|
|
@@ -1313,68 +1279,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1313
1279
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1314
1280
|
members.map(([memberName, [memberFlags]]) => {
|
|
1315
1281
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1316
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
1317
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1318
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1319
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
1320
|
-
Object.defineProperty(prototype, memberName, {
|
|
1321
|
-
get() {
|
|
1322
|
-
{
|
|
1323
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
1324
|
-
return getValue(this, memberName);
|
|
1325
|
-
}
|
|
1326
|
-
const ref = getHostRef(this);
|
|
1327
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
1328
|
-
if (!instance) return;
|
|
1329
|
-
return instance[memberName];
|
|
1330
|
-
}
|
|
1331
|
-
},
|
|
1332
|
-
configurable: true,
|
|
1333
|
-
enumerable: true
|
|
1334
|
-
});
|
|
1335
|
-
}
|
|
1336
1282
|
Object.defineProperty(prototype, memberName, {
|
|
1283
|
+
get() {
|
|
1284
|
+
return getValue(this, memberName);
|
|
1285
|
+
},
|
|
1337
1286
|
set(newValue) {
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
1343
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1344
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1345
|
-
}
|
|
1346
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1347
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1348
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1349
|
-
return;
|
|
1350
|
-
}
|
|
1351
|
-
{
|
|
1352
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1353
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1354
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1355
|
-
ref.$onReadyPromise$.then(() => {
|
|
1356
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1357
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
1358
|
-
}
|
|
1359
|
-
});
|
|
1360
|
-
}
|
|
1361
|
-
return;
|
|
1362
|
-
}
|
|
1363
|
-
const setterSetVal = () => {
|
|
1364
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
1365
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1366
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1367
|
-
}
|
|
1368
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1369
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1370
|
-
};
|
|
1371
|
-
if (ref.$lazyInstance$) {
|
|
1372
|
-
setterSetVal();
|
|
1373
|
-
} else {
|
|
1374
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1375
|
-
}
|
|
1376
|
-
}
|
|
1377
|
-
}
|
|
1287
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1288
|
+
},
|
|
1289
|
+
configurable: true,
|
|
1290
|
+
enumerable: true
|
|
1378
1291
|
});
|
|
1379
1292
|
}
|
|
1380
1293
|
});
|
|
@@ -1384,7 +1297,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1384
1297
|
plt.jmp(() => {
|
|
1385
1298
|
var _a2;
|
|
1386
1299
|
const propName = attrNameToPropName.get(attrName);
|
|
1387
|
-
if (this.hasOwnProperty(propName)
|
|
1300
|
+
if (this.hasOwnProperty(propName)) {
|
|
1388
1301
|
newValue = this[propName];
|
|
1389
1302
|
delete this[propName];
|
|
1390
1303
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1404,11 +1317,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1404
1317
|
}
|
|
1405
1318
|
return;
|
|
1406
1319
|
}
|
|
1407
|
-
|
|
1408
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1409
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1410
|
-
this[propName] = newValue;
|
|
1411
|
-
}
|
|
1320
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1412
1321
|
});
|
|
1413
1322
|
};
|
|
1414
1323
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1437,7 +1346,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1437
1346
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1438
1347
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1439
1348
|
if (bundleId) {
|
|
1440
|
-
const CstrImport = loadModule(cmpMeta
|
|
1349
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1441
1350
|
if (CstrImport && "then" in CstrImport) {
|
|
1442
1351
|
const endLoad = uniqueTime();
|
|
1443
1352
|
Cstr = await CstrImport;
|
|
@@ -1462,7 +1371,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1462
1371
|
try {
|
|
1463
1372
|
new Cstr(hostRef);
|
|
1464
1373
|
} catch (e) {
|
|
1465
|
-
consoleError(e
|
|
1374
|
+
consoleError(e);
|
|
1466
1375
|
}
|
|
1467
1376
|
{
|
|
1468
1377
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1497,7 +1406,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1497
1406
|
schedule();
|
|
1498
1407
|
}
|
|
1499
1408
|
};
|
|
1500
|
-
var fireConnectedCallback = (instance
|
|
1409
|
+
var fireConnectedCallback = (instance) => {
|
|
1501
1410
|
};
|
|
1502
1411
|
|
|
1503
1412
|
// src/runtime/connected-callback.ts
|
|
@@ -1551,7 +1460,7 @@ var setContentReference = (elm) => {
|
|
|
1551
1460
|
contentRefElm["s-cn"] = true;
|
|
1552
1461
|
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
1553
1462
|
};
|
|
1554
|
-
var disconnectInstance = (instance
|
|
1463
|
+
var disconnectInstance = (instance) => {
|
|
1555
1464
|
};
|
|
1556
1465
|
var disconnectedCallback = async (elm) => {
|
|
1557
1466
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1566,12 +1475,6 @@ var disconnectedCallback = async (elm) => {
|
|
|
1566
1475
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1567
1476
|
}
|
|
1568
1477
|
}
|
|
1569
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1570
|
-
rootAppliedStyles.delete(elm);
|
|
1571
|
-
}
|
|
1572
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1573
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1574
|
-
}
|
|
1575
1478
|
};
|
|
1576
1479
|
|
|
1577
1480
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1656,17 +1559,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1656
1559
|
}
|
|
1657
1560
|
disconnectedCallback() {
|
|
1658
1561
|
plt.jmp(() => disconnectedCallback(this));
|
|
1659
|
-
plt.raf(() => {
|
|
1660
|
-
var _a3;
|
|
1661
|
-
const hostRef = getHostRef(this);
|
|
1662
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1663
|
-
if (i2 > -1) {
|
|
1664
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1665
|
-
}
|
|
1666
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1667
|
-
delete hostRef.$vnode$.$elm$;
|
|
1668
|
-
}
|
|
1669
|
-
});
|
|
1670
1562
|
}
|
|
1671
1563
|
componentOnReady() {
|
|
1672
1564
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1733,7 +1625,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1733
1625
|
}
|
|
1734
1626
|
}
|
|
1735
1627
|
} catch (e) {
|
|
1736
|
-
consoleError(e
|
|
1628
|
+
consoleError(e);
|
|
1737
1629
|
}
|
|
1738
1630
|
};
|
|
1739
1631
|
var getHostListenerTarget = (elm, flags) => {
|