@everymatrix/player-elevate-level 1.56.0 → 1.56.3
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/bonus-elevate-levels_8.cjs.entry.js +46 -72
- package/dist/cjs/{index-199914b5.js → index-fc200b31.js} +132 -285
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{player-elevate-card-items-acfe519b.js → player-elevate-card-items-71b8983b.js} +1 -1
- package/dist/cjs/player-elevate-card.cjs.entry.js +9 -21
- package/dist/cjs/player-elevate-level.cjs.js +2 -2
- package/dist/cjs/player-elevate-pointcard.cjs.entry.js +12 -29
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/player-elevate-level/player-elevate-level.js +6 -30
- package/dist/esm/bonus-elevate-levels_8.entry.js +46 -72
- package/dist/esm/{index-0029392c.js → index-625be212.js} +132 -285
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{player-elevate-card-items-01a62645.js → player-elevate-card-items-a466e11e.js} +1 -1
- package/dist/esm/player-elevate-card.entry.js +9 -21
- package/dist/esm/player-elevate-level.js +3 -3
- package/dist/esm/player-elevate-pointcard.entry.js +12 -29
- package/dist/player-elevate-level/p-33a9c59e.js +2 -0
- package/dist/player-elevate-level/p-49f4c92f.entry.js +1 -0
- package/dist/player-elevate-level/p-62d6e102.entry.js +1 -0
- package/dist/player-elevate-level/p-651c438c.entry.js +1 -0
- package/dist/player-elevate-level/{p-61624f78.js → p-6bc76f4a.js} +1 -1
- package/dist/player-elevate-level/player-elevate-level.esm.js +1 -1
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-elevate-level/.stencil/packages/stencil/player-elevate-level/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-elevate-level/.stencil/packages/stencil/player-elevate-level/stencil.config.dev.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/package.json +1 -1
- package/dist/player-elevate-level/p-273cd792.entry.js +0 -1
- package/dist/player-elevate-level/p-30fdef2d.js +0 -2
- package/dist/player-elevate-level/p-927c5c3b.entry.js +0 -1
- package/dist/player-elevate-level/p-eeb6f10f.entry.js +0 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-elevate-level/.stencil/packages/stencil/player-elevate-level/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-elevate-level/.stencil/packages/stencil/player-elevate-level/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/player-elevate-level/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/player-elevate-level/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/player-elevate-level/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/player-elevate-level/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1,25 +1,17 @@
|
|
|
1
1
|
const NAMESPACE = 'player-elevate-level';
|
|
2
|
-
const BUILD = /* player-elevate-level */ { 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: true, 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,
|
|
2
|
+
const BUILD = /* player-elevate-level */ { 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: true, 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: true, propMutable: true, 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: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
9
9
|
for (var name in all)
|
|
10
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
// src/utils/constants.ts
|
|
14
|
-
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
15
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
16
|
-
|
|
17
|
-
// src/client/client-host-ref.ts
|
|
18
12
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
19
13
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
20
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
21
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
22
|
-
};
|
|
14
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
23
15
|
var registerHost = (hostElement, cmpMeta) => {
|
|
24
16
|
const hostRef = {
|
|
25
17
|
$flags$: 0,
|
|
@@ -32,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
32
24
|
hostElement["s-p"] = [];
|
|
33
25
|
hostElement["s-rc"] = [];
|
|
34
26
|
}
|
|
35
|
-
|
|
36
|
-
return ref;
|
|
27
|
+
return hostRefs.set(hostElement, hostRef);
|
|
37
28
|
};
|
|
38
29
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
39
30
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -78,22 +69,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
78
69
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
79
70
|
/* webpackMode: "lazy" */
|
|
80
71
|
`./${bundleId}.entry.js${""}`
|
|
81
|
-
).then(
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
cmpModules.set(bundleId, importedModule);
|
|
85
|
-
}
|
|
86
|
-
return importedModule[exportName];
|
|
87
|
-
},
|
|
88
|
-
(e) => {
|
|
89
|
-
consoleError(e, hostRef.$hostElement$);
|
|
72
|
+
).then((importedModule) => {
|
|
73
|
+
{
|
|
74
|
+
cmpModules.set(bundleId, importedModule);
|
|
90
75
|
}
|
|
91
|
-
|
|
76
|
+
return importedModule[exportName];
|
|
77
|
+
}, consoleError);
|
|
92
78
|
};
|
|
93
79
|
|
|
94
80
|
// src/client/client-style.ts
|
|
95
81
|
var styles = /* @__PURE__ */ new Map();
|
|
96
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
97
82
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
98
83
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
99
84
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -173,6 +158,14 @@ var getAssetPath = (path) => {
|
|
|
173
158
|
const assetUrl = new URL(path, plt.$resourcesUrl$);
|
|
174
159
|
return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
|
|
175
160
|
};
|
|
161
|
+
|
|
162
|
+
// src/utils/constants.ts
|
|
163
|
+
var EMPTY_OBJ = {};
|
|
164
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
165
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
166
|
+
|
|
167
|
+
// src/utils/helpers.ts
|
|
168
|
+
var isDef = (v) => v != null;
|
|
176
169
|
var isComplexType = (o) => {
|
|
177
170
|
o = typeof o;
|
|
178
171
|
return o === "object" || o === "function";
|
|
@@ -232,63 +225,6 @@ var unwrapErr = (result) => {
|
|
|
232
225
|
throw result.value;
|
|
233
226
|
}
|
|
234
227
|
};
|
|
235
|
-
var updateFallbackSlotVisibility = (elm) => {
|
|
236
|
-
const childNodes = elm.__childNodes || elm.childNodes;
|
|
237
|
-
if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
|
|
238
|
-
getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
|
|
239
|
-
var _a;
|
|
240
|
-
if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
|
|
241
|
-
if ((_a = getHostSlotChildNodes(slotNode, slotNode["s-sn"], false)) == null ? void 0 : _a.length) {
|
|
242
|
-
slotNode.hidden = true;
|
|
243
|
-
} else {
|
|
244
|
-
slotNode.hidden = false;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
for (const childNode of childNodes) {
|
|
250
|
-
if (childNode.nodeType === 1 /* ElementNode */ && (childNode.__childNodes || childNode.childNodes).length) {
|
|
251
|
-
updateFallbackSlotVisibility(childNode);
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
};
|
|
255
|
-
function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
256
|
-
let i2 = 0;
|
|
257
|
-
let slottedNodes = [];
|
|
258
|
-
let childNode;
|
|
259
|
-
for (; i2 < childNodes.length; i2++) {
|
|
260
|
-
childNode = childNodes[i2];
|
|
261
|
-
if (childNode["s-sr"] && childNode["s-hn"] === hostName && (slotName === void 0 || childNode["s-sn"] === slotName)) {
|
|
262
|
-
slottedNodes.push(childNode);
|
|
263
|
-
if (typeof slotName !== "undefined") return slottedNodes;
|
|
264
|
-
}
|
|
265
|
-
slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
|
|
266
|
-
}
|
|
267
|
-
return slottedNodes;
|
|
268
|
-
}
|
|
269
|
-
var getHostSlotChildNodes = (node, slotName, includeSlot = true) => {
|
|
270
|
-
const childNodes = [];
|
|
271
|
-
if (includeSlot && node["s-sr"] || !node["s-sr"]) childNodes.push(node);
|
|
272
|
-
while ((node = node.nextSibling) && node["s-sn"] === slotName) {
|
|
273
|
-
childNodes.push(node);
|
|
274
|
-
}
|
|
275
|
-
return childNodes;
|
|
276
|
-
};
|
|
277
|
-
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
278
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
279
|
-
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
280
|
-
return true;
|
|
281
|
-
}
|
|
282
|
-
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
283
|
-
return true;
|
|
284
|
-
}
|
|
285
|
-
return false;
|
|
286
|
-
}
|
|
287
|
-
if (nodeToRelocate["s-sn"] === slotName) {
|
|
288
|
-
return true;
|
|
289
|
-
}
|
|
290
|
-
return slotName === "";
|
|
291
|
-
};
|
|
292
228
|
var createTime = (fnName, tagName = "") => {
|
|
293
229
|
{
|
|
294
230
|
return () => {
|
|
@@ -477,40 +413,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
477
413
|
}
|
|
478
414
|
if (!appliedStyles.has(scopeId2)) {
|
|
479
415
|
{
|
|
480
|
-
styleElm =
|
|
416
|
+
styleElm = doc.createElement("style");
|
|
481
417
|
styleElm.innerHTML = style;
|
|
482
418
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
483
419
|
if (nonce != null) {
|
|
484
420
|
styleElm.setAttribute("nonce", nonce);
|
|
485
421
|
}
|
|
486
|
-
|
|
487
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
488
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
489
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
490
|
-
styleContainerNode.insertBefore(
|
|
491
|
-
styleElm,
|
|
492
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
493
|
-
);
|
|
494
|
-
} else if ("host" in styleContainerNode) {
|
|
495
|
-
if (supportsConstructableStylesheets) {
|
|
496
|
-
const stylesheet = new CSSStyleSheet();
|
|
497
|
-
stylesheet.replaceSync(style);
|
|
498
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
499
|
-
} else {
|
|
500
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
501
|
-
if (existingStyleContainer) {
|
|
502
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
503
|
-
} else {
|
|
504
|
-
styleContainerNode.prepend(styleElm);
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
} else {
|
|
508
|
-
styleContainerNode.append(styleElm);
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
512
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
513
|
-
}
|
|
422
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
514
423
|
}
|
|
515
424
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
516
425
|
styleElm.innerHTML += SLOT_FB_CSS;
|
|
@@ -533,25 +442,23 @@ var attachStyles = (hostRef) => {
|
|
|
533
442
|
const scopeId2 = addStyle(
|
|
534
443
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
535
444
|
cmpMeta);
|
|
536
|
-
if (
|
|
445
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
537
446
|
elm["s-sc"] = scopeId2;
|
|
538
447
|
elm.classList.add(scopeId2 + "-h");
|
|
539
448
|
}
|
|
540
449
|
endAttachStyles();
|
|
541
450
|
};
|
|
542
451
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
543
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
452
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
544
453
|
if (oldValue !== newValue) {
|
|
545
454
|
let isProp = isMemberInElement(elm, memberName);
|
|
546
455
|
let ln = memberName.toLowerCase();
|
|
547
456
|
if (memberName === "class") {
|
|
548
457
|
const classList = elm.classList;
|
|
549
458
|
const oldClasses = parseClassList(oldValue);
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
554
|
-
}
|
|
459
|
+
const newClasses = parseClassList(newValue);
|
|
460
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
461
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
555
462
|
} else if (memberName === "style") {
|
|
556
463
|
{
|
|
557
464
|
for (const prop in oldValue) {
|
|
@@ -604,13 +511,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
604
511
|
if (memberName === "list") {
|
|
605
512
|
isProp = false;
|
|
606
513
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
607
|
-
|
|
608
|
-
elm[memberName] = n;
|
|
609
|
-
} else {
|
|
610
|
-
elm.setAttribute(memberName, n);
|
|
611
|
-
}
|
|
514
|
+
elm[memberName] = n;
|
|
612
515
|
}
|
|
613
|
-
} else
|
|
516
|
+
} else {
|
|
614
517
|
elm[memberName] = newValue;
|
|
615
518
|
}
|
|
616
519
|
} catch (e) {
|
|
@@ -632,44 +535,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
632
535
|
}
|
|
633
536
|
};
|
|
634
537
|
var parseClassListRegex = /\s/;
|
|
635
|
-
var parseClassList = (value) =>
|
|
636
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
637
|
-
value = value.baseVal;
|
|
638
|
-
}
|
|
639
|
-
if (!value || typeof value !== "string") {
|
|
640
|
-
return [];
|
|
641
|
-
}
|
|
642
|
-
return value.split(parseClassListRegex);
|
|
643
|
-
};
|
|
538
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
644
539
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
645
540
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
646
541
|
|
|
647
542
|
// src/runtime/vdom/update-element.ts
|
|
648
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
543
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
649
544
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
650
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
651
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
545
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
546
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
652
547
|
{
|
|
653
548
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
654
549
|
if (!(memberName in newVnodeAttrs)) {
|
|
655
|
-
setAccessor(
|
|
656
|
-
elm,
|
|
657
|
-
memberName,
|
|
658
|
-
oldVnodeAttrs[memberName],
|
|
659
|
-
void 0,
|
|
660
|
-
isSvgMode2,
|
|
661
|
-
newVnode.$flags$);
|
|
550
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
662
551
|
}
|
|
663
552
|
}
|
|
664
553
|
}
|
|
665
554
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
666
|
-
setAccessor(
|
|
667
|
-
elm,
|
|
668
|
-
memberName,
|
|
669
|
-
oldVnodeAttrs[memberName],
|
|
670
|
-
newVnodeAttrs[memberName],
|
|
671
|
-
isSvgMode2,
|
|
672
|
-
newVnode.$flags$);
|
|
555
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
673
556
|
}
|
|
674
557
|
};
|
|
675
558
|
function sortedAttrNames(attrNames) {
|
|
@@ -681,13 +564,16 @@ function sortedAttrNames(attrNames) {
|
|
|
681
564
|
attrNames
|
|
682
565
|
);
|
|
683
566
|
}
|
|
567
|
+
|
|
568
|
+
// src/runtime/vdom/vdom-render.ts
|
|
569
|
+
var scopeId;
|
|
684
570
|
var contentRef;
|
|
685
571
|
var hostTagName;
|
|
686
572
|
var useNativeShadowDom = false;
|
|
687
573
|
var checkSlotFallbackVisibility = false;
|
|
688
574
|
var checkSlotRelocate = false;
|
|
689
575
|
var isSvgMode = false;
|
|
690
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
576
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
691
577
|
var _a;
|
|
692
578
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
693
579
|
let i2 = 0;
|
|
@@ -697,6 +583,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
697
583
|
if (!useNativeShadowDom) {
|
|
698
584
|
checkSlotRelocate = true;
|
|
699
585
|
if (newVNode2.$tag$ === "slot") {
|
|
586
|
+
if (scopeId) {
|
|
587
|
+
parentElm.classList.add(scopeId + "-s");
|
|
588
|
+
}
|
|
700
589
|
newVNode2.$flags$ |= newVNode2.$children$ ? (
|
|
701
590
|
// slot element has fallback content
|
|
702
591
|
// still create an element that "mocks" the slot element
|
|
@@ -727,9 +616,12 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
727
616
|
{
|
|
728
617
|
updateElement(null, newVNode2, isSvgMode);
|
|
729
618
|
}
|
|
619
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
620
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
621
|
+
}
|
|
730
622
|
if (newVNode2.$children$) {
|
|
731
623
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
732
|
-
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
624
|
+
childNode = createElm(oldParentVNode, newVNode2, i2, elm);
|
|
733
625
|
if (childNode) {
|
|
734
626
|
elm.appendChild(childNode);
|
|
735
627
|
}
|
|
@@ -762,7 +654,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
762
654
|
};
|
|
763
655
|
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
764
656
|
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
765
|
-
const oldSlotChildNodes = Array.from(parentElm.
|
|
657
|
+
const oldSlotChildNodes = Array.from(parentElm.childNodes);
|
|
766
658
|
if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
|
|
767
659
|
let node = parentElm;
|
|
768
660
|
while (node = node.nextSibling) {
|
|
@@ -774,7 +666,7 @@ var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
774
666
|
for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
|
|
775
667
|
const childNode = oldSlotChildNodes[i2];
|
|
776
668
|
if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
|
|
777
|
-
insertBefore(
|
|
669
|
+
insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
|
|
778
670
|
childNode["s-ol"].remove();
|
|
779
671
|
childNode["s-ol"] = void 0;
|
|
780
672
|
childNode["s-sh"] = void 0;
|
|
@@ -794,7 +686,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
|
794
686
|
}
|
|
795
687
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
796
688
|
if (vnodes[startIdx]) {
|
|
797
|
-
childNode = createElm(null, parentVNode, startIdx);
|
|
689
|
+
childNode = createElm(null, parentVNode, startIdx, parentElm);
|
|
798
690
|
if (childNode) {
|
|
799
691
|
vnodes[startIdx].$elm$ = childNode;
|
|
800
692
|
insertBefore(containerElm, childNode, referenceNode(before) );
|
|
@@ -881,7 +773,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
881
773
|
if (idxInOld >= 0) {
|
|
882
774
|
elmToMove = oldCh[idxInOld];
|
|
883
775
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
884
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
|
776
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
|
|
885
777
|
} else {
|
|
886
778
|
patch(elmToMove, newStartVnode, isInitialRender);
|
|
887
779
|
oldCh[idxInOld] = void 0;
|
|
@@ -889,16 +781,12 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
889
781
|
}
|
|
890
782
|
newStartVnode = newCh[++newStartIdx];
|
|
891
783
|
} else {
|
|
892
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
784
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
|
|
893
785
|
newStartVnode = newCh[++newStartIdx];
|
|
894
786
|
}
|
|
895
787
|
if (node) {
|
|
896
788
|
{
|
|
897
|
-
insertBefore(
|
|
898
|
-
referenceNode(oldStartVnode.$elm$).parentNode,
|
|
899
|
-
node,
|
|
900
|
-
referenceNode(oldStartVnode.$elm$)
|
|
901
|
-
);
|
|
789
|
+
insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
|
|
902
790
|
}
|
|
903
791
|
}
|
|
904
792
|
}
|
|
@@ -924,14 +812,14 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
924
812
|
if (!isInitialRender) {
|
|
925
813
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
926
814
|
}
|
|
927
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
928
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
929
|
-
}
|
|
930
815
|
return true;
|
|
931
816
|
}
|
|
932
817
|
return false;
|
|
933
818
|
};
|
|
934
|
-
var referenceNode = (node) =>
|
|
819
|
+
var referenceNode = (node) => {
|
|
820
|
+
return node && node["s-ol"] || node;
|
|
821
|
+
};
|
|
822
|
+
var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
|
|
935
823
|
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
936
824
|
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
937
825
|
const oldChildren = oldVNode.$children$;
|
|
@@ -955,10 +843,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
955
843
|
elm.textContent = "";
|
|
956
844
|
}
|
|
957
845
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
958
|
-
} else if (
|
|
959
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
960
|
-
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
961
|
-
) {
|
|
846
|
+
} else if (oldChildren !== null) {
|
|
962
847
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
963
848
|
}
|
|
964
849
|
if (isSvgMode && tag === "svg") {
|
|
@@ -970,15 +855,41 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
970
855
|
elm.data = text;
|
|
971
856
|
}
|
|
972
857
|
};
|
|
858
|
+
var updateFallbackSlotVisibility = (elm) => {
|
|
859
|
+
const childNodes = elm.childNodes;
|
|
860
|
+
for (const childNode of childNodes) {
|
|
861
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
862
|
+
if (childNode["s-sr"]) {
|
|
863
|
+
const slotName = childNode["s-sn"];
|
|
864
|
+
childNode.hidden = false;
|
|
865
|
+
for (const siblingNode of childNodes) {
|
|
866
|
+
if (siblingNode !== childNode) {
|
|
867
|
+
if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
|
|
868
|
+
if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
|
|
869
|
+
childNode.hidden = true;
|
|
870
|
+
break;
|
|
871
|
+
}
|
|
872
|
+
} else {
|
|
873
|
+
if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
|
|
874
|
+
childNode.hidden = true;
|
|
875
|
+
break;
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
updateFallbackSlotVisibility(childNode);
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
};
|
|
973
885
|
var relocateNodes = [];
|
|
974
886
|
var markSlotContentForRelocation = (elm) => {
|
|
975
887
|
let node;
|
|
976
888
|
let hostContentNodes;
|
|
977
889
|
let j;
|
|
978
|
-
const
|
|
979
|
-
for (const childNode of children) {
|
|
890
|
+
for (const childNode of elm.childNodes) {
|
|
980
891
|
if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
|
|
981
|
-
hostContentNodes = node.parentNode.
|
|
892
|
+
hostContentNodes = node.parentNode.childNodes;
|
|
982
893
|
const slotName = childNode["s-sn"];
|
|
983
894
|
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
984
895
|
node = hostContentNodes[j];
|
|
@@ -1020,6 +931,21 @@ var markSlotContentForRelocation = (elm) => {
|
|
|
1020
931
|
}
|
|
1021
932
|
}
|
|
1022
933
|
};
|
|
934
|
+
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
935
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
936
|
+
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
937
|
+
return true;
|
|
938
|
+
}
|
|
939
|
+
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
940
|
+
return true;
|
|
941
|
+
}
|
|
942
|
+
return false;
|
|
943
|
+
}
|
|
944
|
+
if (nodeToRelocate["s-sn"] === slotName) {
|
|
945
|
+
return true;
|
|
946
|
+
}
|
|
947
|
+
return slotName === "";
|
|
948
|
+
};
|
|
1023
949
|
var nullifyVNodeRefs = (vNode) => {
|
|
1024
950
|
{
|
|
1025
951
|
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
@@ -1027,9 +953,8 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
1027
953
|
}
|
|
1028
954
|
};
|
|
1029
955
|
var insertBefore = (parent, newNode, reference) => {
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
}
|
|
956
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
957
|
+
return inserted;
|
|
1033
958
|
};
|
|
1034
959
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
1035
960
|
var _a, _b, _c, _d;
|
|
@@ -1055,7 +980,10 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1055
980
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
1056
981
|
hostRef.$vnode$ = rootVnode;
|
|
1057
982
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
1058
|
-
|
|
983
|
+
{
|
|
984
|
+
scopeId = hostElm["s-sc"];
|
|
985
|
+
}
|
|
986
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
1059
987
|
{
|
|
1060
988
|
contentRef = hostElm["s-cr"];
|
|
1061
989
|
checkSlotFallbackVisibility = false;
|
|
@@ -1083,7 +1011,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1083
1011
|
let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
|
|
1084
1012
|
while (orgLocationNode) {
|
|
1085
1013
|
let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
|
|
1086
|
-
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef ===
|
|
1014
|
+
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
|
|
1087
1015
|
refNode = refNode.nextSibling;
|
|
1088
1016
|
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
|
1089
1017
|
refNode = refNode == null ? void 0 : refNode.nextSibling;
|
|
@@ -1096,15 +1024,13 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1096
1024
|
orgLocationNode = orgLocationNode.previousSibling;
|
|
1097
1025
|
}
|
|
1098
1026
|
}
|
|
1099
|
-
|
|
1100
|
-
const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
|
|
1101
|
-
if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
|
|
1027
|
+
if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
1102
1028
|
if (nodeToRelocate !== insertBeforeNode) {
|
|
1103
1029
|
if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
|
|
1104
1030
|
nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
|
|
1105
1031
|
}
|
|
1106
1032
|
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
|
|
1107
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */
|
|
1033
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1108
1034
|
nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
|
|
1109
1035
|
}
|
|
1110
1036
|
}
|
|
@@ -1132,14 +1058,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1132
1058
|
// src/runtime/update-component.ts
|
|
1133
1059
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
1134
1060
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
1135
|
-
|
|
1136
|
-
new Promise(
|
|
1137
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
1138
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
1139
|
-
r();
|
|
1140
|
-
}
|
|
1141
|
-
)
|
|
1142
|
-
);
|
|
1061
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
1143
1062
|
}
|
|
1144
1063
|
};
|
|
1145
1064
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -1168,16 +1087,16 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1168
1087
|
{
|
|
1169
1088
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
1170
1089
|
if (hostRef.$queuedListeners$) {
|
|
1171
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event
|
|
1090
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
1172
1091
|
hostRef.$queuedListeners$ = void 0;
|
|
1173
1092
|
}
|
|
1174
1093
|
}
|
|
1175
1094
|
{
|
|
1176
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
1095
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
1177
1096
|
}
|
|
1178
1097
|
}
|
|
1179
1098
|
{
|
|
1180
|
-
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"
|
|
1099
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
|
|
1181
1100
|
}
|
|
1182
1101
|
endSchedule();
|
|
1183
1102
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
@@ -1245,7 +1164,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1245
1164
|
const instance = hostRef.$lazyInstance$ ;
|
|
1246
1165
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1247
1166
|
{
|
|
1248
|
-
safeCall(instance, "componentDidRender"
|
|
1167
|
+
safeCall(instance, "componentDidRender");
|
|
1249
1168
|
}
|
|
1250
1169
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
1251
1170
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -1274,14 +1193,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1274
1193
|
}
|
|
1275
1194
|
};
|
|
1276
1195
|
var appDidLoad = (who) => {
|
|
1196
|
+
{
|
|
1197
|
+
addHydratedFlag(doc.documentElement);
|
|
1198
|
+
}
|
|
1277
1199
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
1278
1200
|
};
|
|
1279
|
-
var safeCall = (instance, method, arg
|
|
1201
|
+
var safeCall = (instance, method, arg) => {
|
|
1280
1202
|
if (instance && instance[method]) {
|
|
1281
1203
|
try {
|
|
1282
1204
|
return instance[method](arg);
|
|
1283
1205
|
} catch (e) {
|
|
1284
|
-
consoleError(e
|
|
1206
|
+
consoleError(e);
|
|
1285
1207
|
}
|
|
1286
1208
|
}
|
|
1287
1209
|
return void 0;
|
|
@@ -1340,68 +1262,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1340
1262
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1341
1263
|
members.map(([memberName, [memberFlags]]) => {
|
|
1342
1264
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1343
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
1344
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1345
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1346
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
1347
|
-
Object.defineProperty(prototype, memberName, {
|
|
1348
|
-
get() {
|
|
1349
|
-
{
|
|
1350
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
1351
|
-
return getValue(this, memberName);
|
|
1352
|
-
}
|
|
1353
|
-
const ref = getHostRef(this);
|
|
1354
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
1355
|
-
if (!instance) return;
|
|
1356
|
-
return instance[memberName];
|
|
1357
|
-
}
|
|
1358
|
-
},
|
|
1359
|
-
configurable: true,
|
|
1360
|
-
enumerable: true
|
|
1361
|
-
});
|
|
1362
|
-
}
|
|
1363
1265
|
Object.defineProperty(prototype, memberName, {
|
|
1266
|
+
get() {
|
|
1267
|
+
return getValue(this, memberName);
|
|
1268
|
+
},
|
|
1364
1269
|
set(newValue) {
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
1370
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1371
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1372
|
-
}
|
|
1373
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1374
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1375
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1376
|
-
return;
|
|
1377
|
-
}
|
|
1378
|
-
{
|
|
1379
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1380
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1381
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1382
|
-
ref.$onReadyPromise$.then(() => {
|
|
1383
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1384
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
1385
|
-
}
|
|
1386
|
-
});
|
|
1387
|
-
}
|
|
1388
|
-
return;
|
|
1389
|
-
}
|
|
1390
|
-
const setterSetVal = () => {
|
|
1391
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
1392
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1393
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1394
|
-
}
|
|
1395
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1396
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1397
|
-
};
|
|
1398
|
-
if (ref.$lazyInstance$) {
|
|
1399
|
-
setterSetVal();
|
|
1400
|
-
} else {
|
|
1401
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1402
|
-
}
|
|
1403
|
-
}
|
|
1404
|
-
}
|
|
1270
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1271
|
+
},
|
|
1272
|
+
configurable: true,
|
|
1273
|
+
enumerable: true
|
|
1405
1274
|
});
|
|
1406
1275
|
}
|
|
1407
1276
|
});
|
|
@@ -1411,11 +1280,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1411
1280
|
plt.jmp(() => {
|
|
1412
1281
|
var _a2;
|
|
1413
1282
|
const propName = attrNameToPropName.get(attrName);
|
|
1414
|
-
if (this.hasOwnProperty(propName)
|
|
1283
|
+
if (this.hasOwnProperty(propName)) {
|
|
1415
1284
|
newValue = this[propName];
|
|
1416
1285
|
delete this[propName];
|
|
1417
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
|
1418
|
-
this[propName] == newValue) {
|
|
1286
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
|
|
1419
1287
|
return;
|
|
1420
1288
|
} else if (propName == null) {
|
|
1421
1289
|
const hostRef = getHostRef(this);
|
|
@@ -1431,11 +1299,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1431
1299
|
}
|
|
1432
1300
|
return;
|
|
1433
1301
|
}
|
|
1434
|
-
|
|
1435
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1436
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1437
|
-
this[propName] = newValue;
|
|
1438
|
-
}
|
|
1302
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1439
1303
|
});
|
|
1440
1304
|
};
|
|
1441
1305
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1464,7 +1328,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1464
1328
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1465
1329
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1466
1330
|
if (bundleId) {
|
|
1467
|
-
const CstrImport = loadModule(cmpMeta
|
|
1331
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1468
1332
|
if (CstrImport && "then" in CstrImport) {
|
|
1469
1333
|
const endLoad = uniqueTime();
|
|
1470
1334
|
Cstr = await CstrImport;
|
|
@@ -1489,7 +1353,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1489
1353
|
try {
|
|
1490
1354
|
new Cstr(hostRef);
|
|
1491
1355
|
} catch (e) {
|
|
1492
|
-
consoleError(e
|
|
1356
|
+
consoleError(e);
|
|
1493
1357
|
}
|
|
1494
1358
|
{
|
|
1495
1359
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1524,7 +1388,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1524
1388
|
schedule();
|
|
1525
1389
|
}
|
|
1526
1390
|
};
|
|
1527
|
-
var fireConnectedCallback = (instance
|
|
1391
|
+
var fireConnectedCallback = (instance) => {
|
|
1528
1392
|
};
|
|
1529
1393
|
|
|
1530
1394
|
// src/runtime/connected-callback.ts
|
|
@@ -1578,7 +1442,7 @@ var setContentReference = (elm) => {
|
|
|
1578
1442
|
contentRefElm["s-cn"] = true;
|
|
1579
1443
|
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
1580
1444
|
};
|
|
1581
|
-
var disconnectInstance = (instance
|
|
1445
|
+
var disconnectInstance = (instance) => {
|
|
1582
1446
|
};
|
|
1583
1447
|
var disconnectedCallback = async (elm) => {
|
|
1584
1448
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1593,12 +1457,6 @@ var disconnectedCallback = async (elm) => {
|
|
|
1593
1457
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1594
1458
|
}
|
|
1595
1459
|
}
|
|
1596
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1597
|
-
rootAppliedStyles.delete(elm);
|
|
1598
|
-
}
|
|
1599
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1600
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1601
|
-
}
|
|
1602
1460
|
};
|
|
1603
1461
|
|
|
1604
1462
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1683,17 +1541,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1683
1541
|
}
|
|
1684
1542
|
disconnectedCallback() {
|
|
1685
1543
|
plt.jmp(() => disconnectedCallback(this));
|
|
1686
|
-
plt.raf(() => {
|
|
1687
|
-
var _a3;
|
|
1688
|
-
const hostRef = getHostRef(this);
|
|
1689
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1690
|
-
if (i2 > -1) {
|
|
1691
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1692
|
-
}
|
|
1693
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1694
|
-
delete hostRef.$vnode$.$elm$;
|
|
1695
|
-
}
|
|
1696
|
-
});
|
|
1697
1544
|
}
|
|
1698
1545
|
componentOnReady() {
|
|
1699
1546
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1760,7 +1607,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1760
1607
|
}
|
|
1761
1608
|
}
|
|
1762
1609
|
} catch (e) {
|
|
1763
|
-
consoleError(e
|
|
1610
|
+
consoleError(e);
|
|
1764
1611
|
}
|
|
1765
1612
|
};
|
|
1766
1613
|
var getHostListenerTarget = (elm, flags) => {
|