@everymatrix/player-elevate-points-history 1.56.0 → 1.56.2
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-pagination-limits_6.cjs.entry.js +33 -106
- package/dist/cjs/{index-c3f0d8ea.js → index-ba216df9.js} +130 -281
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{player-elevate-card-items-8b7d73d2.js → player-elevate-card-items-00234afd.js} +1 -1
- package/dist/cjs/player-elevate-card.cjs.entry.js +9 -21
- package/dist/cjs/player-elevate-loyaltycard.cjs.entry.js +10 -21
- package/dist/cjs/player-elevate-points-history.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/player-elevate-points-history/player-elevate-points-history.js +5 -43
- package/dist/esm/bonus-pagination-limits_6.entry.js +33 -106
- package/dist/esm/{index-8008f845.js → index-f02f9189.js} +130 -281
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{player-elevate-card-items-81ace8b1.js → player-elevate-card-items-9e358981.js} +1 -1
- package/dist/esm/player-elevate-card.entry.js +9 -21
- package/dist/esm/player-elevate-loyaltycard.entry.js +10 -21
- package/dist/esm/player-elevate-points-history.js +3 -3
- package/dist/player-elevate-points-history/p-09fa4bcd.js +2 -0
- package/dist/player-elevate-points-history/p-2be8ce26.entry.js +1 -0
- package/dist/player-elevate-points-history/{p-1c49c46d.js → p-55a1fd32.js} +1 -1
- package/dist/player-elevate-points-history/p-63db7560.entry.js +1 -0
- package/dist/player-elevate-points-history/p-77e54a25.entry.js +1 -0
- package/dist/player-elevate-points-history/player-elevate-points-history.esm.js +1 -1
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/packages/stencil/player-elevate-points-history/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/packages/stencil/player-elevate-points-history/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-points-history/p-3d707cb1.entry.js +0 -1
- package/dist/player-elevate-points-history/p-530d5612.js +0 -2
- package/dist/player-elevate-points-history/p-78e6bcdb.entry.js +0 -1
- package/dist/player-elevate-points-history/p-d7b1a6d5.entry.js +0 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/packages/stencil/player-elevate-points-history/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/packages/stencil/player-elevate-points-history/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/player-elevate-points-history/.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-points-history/.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-points-history/.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-points-history/.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-points-history';
|
|
24
|
-
const BUILD = /* player-elevate-points-history */ { 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,
|
|
24
|
+
const BUILD = /* player-elevate-points-history */ { 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: true, 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.19.2 | 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);
|
|
@@ -96,22 +91,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
96
91
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
97
92
|
/* webpackMode: "lazy" */
|
|
98
93
|
`./${bundleId}.entry.js${""}`
|
|
99
|
-
)); }).then(
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
cmpModules.set(bundleId, importedModule);
|
|
103
|
-
}
|
|
104
|
-
return importedModule[exportName];
|
|
105
|
-
},
|
|
106
|
-
(e) => {
|
|
107
|
-
consoleError(e, hostRef.$hostElement$);
|
|
94
|
+
)); }).then((importedModule) => {
|
|
95
|
+
{
|
|
96
|
+
cmpModules.set(bundleId, importedModule);
|
|
108
97
|
}
|
|
109
|
-
|
|
98
|
+
return importedModule[exportName];
|
|
99
|
+
}, consoleError);
|
|
110
100
|
};
|
|
111
101
|
|
|
112
102
|
// src/client/client-style.ts
|
|
113
103
|
var styles = /* @__PURE__ */ new Map();
|
|
114
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
115
104
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
116
105
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
117
106
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -191,6 +180,12 @@ var getAssetPath = (path) => {
|
|
|
191
180
|
const assetUrl = new URL(path, plt.$resourcesUrl$);
|
|
192
181
|
return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
|
|
193
182
|
};
|
|
183
|
+
|
|
184
|
+
// src/utils/constants.ts
|
|
185
|
+
var EMPTY_OBJ = {};
|
|
186
|
+
|
|
187
|
+
// src/utils/helpers.ts
|
|
188
|
+
var isDef = (v) => v != null;
|
|
194
189
|
var isComplexType = (o) => {
|
|
195
190
|
o = typeof o;
|
|
196
191
|
return o === "object" || o === "function";
|
|
@@ -250,63 +245,6 @@ var unwrapErr = (result) => {
|
|
|
250
245
|
throw result.value;
|
|
251
246
|
}
|
|
252
247
|
};
|
|
253
|
-
var updateFallbackSlotVisibility = (elm) => {
|
|
254
|
-
const childNodes = elm.__childNodes || elm.childNodes;
|
|
255
|
-
if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
|
|
256
|
-
getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
|
|
257
|
-
var _a;
|
|
258
|
-
if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
|
|
259
|
-
if ((_a = getHostSlotChildNodes(slotNode, slotNode["s-sn"], false)) == null ? void 0 : _a.length) {
|
|
260
|
-
slotNode.hidden = true;
|
|
261
|
-
} else {
|
|
262
|
-
slotNode.hidden = false;
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
|
-
for (const childNode of childNodes) {
|
|
268
|
-
if (childNode.nodeType === 1 /* ElementNode */ && (childNode.__childNodes || childNode.childNodes).length) {
|
|
269
|
-
updateFallbackSlotVisibility(childNode);
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
};
|
|
273
|
-
function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
274
|
-
let i2 = 0;
|
|
275
|
-
let slottedNodes = [];
|
|
276
|
-
let childNode;
|
|
277
|
-
for (; i2 < childNodes.length; i2++) {
|
|
278
|
-
childNode = childNodes[i2];
|
|
279
|
-
if (childNode["s-sr"] && childNode["s-hn"] === hostName && (slotName === void 0 || childNode["s-sn"] === slotName)) {
|
|
280
|
-
slottedNodes.push(childNode);
|
|
281
|
-
if (typeof slotName !== "undefined") return slottedNodes;
|
|
282
|
-
}
|
|
283
|
-
slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
|
|
284
|
-
}
|
|
285
|
-
return slottedNodes;
|
|
286
|
-
}
|
|
287
|
-
var getHostSlotChildNodes = (node, slotName, includeSlot = true) => {
|
|
288
|
-
const childNodes = [];
|
|
289
|
-
if (includeSlot && node["s-sr"] || !node["s-sr"]) childNodes.push(node);
|
|
290
|
-
while ((node = node.nextSibling) && node["s-sn"] === slotName) {
|
|
291
|
-
childNodes.push(node);
|
|
292
|
-
}
|
|
293
|
-
return childNodes;
|
|
294
|
-
};
|
|
295
|
-
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
296
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
297
|
-
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
298
|
-
return true;
|
|
299
|
-
}
|
|
300
|
-
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
301
|
-
return true;
|
|
302
|
-
}
|
|
303
|
-
return false;
|
|
304
|
-
}
|
|
305
|
-
if (nodeToRelocate["s-sn"] === slotName) {
|
|
306
|
-
return true;
|
|
307
|
-
}
|
|
308
|
-
return slotName === "";
|
|
309
|
-
};
|
|
310
248
|
var createTime = (fnName, tagName = "") => {
|
|
311
249
|
{
|
|
312
250
|
return () => {
|
|
@@ -498,40 +436,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
498
436
|
}
|
|
499
437
|
if (!appliedStyles.has(scopeId2)) {
|
|
500
438
|
{
|
|
501
|
-
styleElm =
|
|
439
|
+
styleElm = doc.createElement("style");
|
|
502
440
|
styleElm.innerHTML = style;
|
|
503
441
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
504
442
|
if (nonce != null) {
|
|
505
443
|
styleElm.setAttribute("nonce", nonce);
|
|
506
444
|
}
|
|
507
|
-
|
|
508
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
509
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
510
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
511
|
-
styleContainerNode.insertBefore(
|
|
512
|
-
styleElm,
|
|
513
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
514
|
-
);
|
|
515
|
-
} else if ("host" in styleContainerNode) {
|
|
516
|
-
if (supportsConstructableStylesheets) {
|
|
517
|
-
const stylesheet = new CSSStyleSheet();
|
|
518
|
-
stylesheet.replaceSync(style);
|
|
519
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
520
|
-
} else {
|
|
521
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
522
|
-
if (existingStyleContainer) {
|
|
523
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
524
|
-
} else {
|
|
525
|
-
styleContainerNode.prepend(styleElm);
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
} else {
|
|
529
|
-
styleContainerNode.append(styleElm);
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
533
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
534
|
-
}
|
|
445
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
535
446
|
}
|
|
536
447
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
537
448
|
styleElm.innerHTML += SLOT_FB_CSS;
|
|
@@ -554,25 +465,23 @@ var attachStyles = (hostRef) => {
|
|
|
554
465
|
const scopeId2 = addStyle(
|
|
555
466
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
556
467
|
cmpMeta);
|
|
557
|
-
if (
|
|
468
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
558
469
|
elm["s-sc"] = scopeId2;
|
|
559
470
|
elm.classList.add(scopeId2 + "-h");
|
|
560
471
|
}
|
|
561
472
|
endAttachStyles();
|
|
562
473
|
};
|
|
563
474
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
564
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
475
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
565
476
|
if (oldValue !== newValue) {
|
|
566
477
|
let isProp = isMemberInElement(elm, memberName);
|
|
567
478
|
let ln = memberName.toLowerCase();
|
|
568
479
|
if (memberName === "class") {
|
|
569
480
|
const classList = elm.classList;
|
|
570
481
|
const oldClasses = parseClassList(oldValue);
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
575
|
-
}
|
|
482
|
+
const newClasses = parseClassList(newValue);
|
|
483
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
484
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
576
485
|
} else if (memberName === "style") {
|
|
577
486
|
{
|
|
578
487
|
for (const prop in oldValue) {
|
|
@@ -621,13 +530,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
621
530
|
if (memberName === "list") {
|
|
622
531
|
isProp = false;
|
|
623
532
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
624
|
-
|
|
625
|
-
elm[memberName] = n;
|
|
626
|
-
} else {
|
|
627
|
-
elm.setAttribute(memberName, n);
|
|
628
|
-
}
|
|
533
|
+
elm[memberName] = n;
|
|
629
534
|
}
|
|
630
|
-
} else
|
|
535
|
+
} else {
|
|
631
536
|
elm[memberName] = newValue;
|
|
632
537
|
}
|
|
633
538
|
} catch (e) {
|
|
@@ -649,44 +554,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
649
554
|
}
|
|
650
555
|
};
|
|
651
556
|
var parseClassListRegex = /\s/;
|
|
652
|
-
var parseClassList = (value) =>
|
|
653
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
654
|
-
value = value.baseVal;
|
|
655
|
-
}
|
|
656
|
-
if (!value || typeof value !== "string") {
|
|
657
|
-
return [];
|
|
658
|
-
}
|
|
659
|
-
return value.split(parseClassListRegex);
|
|
660
|
-
};
|
|
557
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
661
558
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
662
559
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
663
560
|
|
|
664
561
|
// src/runtime/vdom/update-element.ts
|
|
665
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
562
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
666
563
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
667
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
668
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
564
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
565
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
669
566
|
{
|
|
670
567
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
671
568
|
if (!(memberName in newVnodeAttrs)) {
|
|
672
|
-
setAccessor(
|
|
673
|
-
elm,
|
|
674
|
-
memberName,
|
|
675
|
-
oldVnodeAttrs[memberName],
|
|
676
|
-
void 0,
|
|
677
|
-
isSvgMode2,
|
|
678
|
-
newVnode.$flags$);
|
|
569
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
679
570
|
}
|
|
680
571
|
}
|
|
681
572
|
}
|
|
682
573
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
683
|
-
setAccessor(
|
|
684
|
-
elm,
|
|
685
|
-
memberName,
|
|
686
|
-
oldVnodeAttrs[memberName],
|
|
687
|
-
newVnodeAttrs[memberName],
|
|
688
|
-
isSvgMode2,
|
|
689
|
-
newVnode.$flags$);
|
|
574
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
690
575
|
}
|
|
691
576
|
};
|
|
692
577
|
function sortedAttrNames(attrNames) {
|
|
@@ -698,13 +583,16 @@ function sortedAttrNames(attrNames) {
|
|
|
698
583
|
attrNames
|
|
699
584
|
);
|
|
700
585
|
}
|
|
586
|
+
|
|
587
|
+
// src/runtime/vdom/vdom-render.ts
|
|
588
|
+
var scopeId;
|
|
701
589
|
var contentRef;
|
|
702
590
|
var hostTagName;
|
|
703
591
|
var useNativeShadowDom = false;
|
|
704
592
|
var checkSlotFallbackVisibility = false;
|
|
705
593
|
var checkSlotRelocate = false;
|
|
706
594
|
var isSvgMode = false;
|
|
707
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
595
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
708
596
|
var _a;
|
|
709
597
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
710
598
|
let i2 = 0;
|
|
@@ -714,6 +602,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
714
602
|
if (!useNativeShadowDom) {
|
|
715
603
|
checkSlotRelocate = true;
|
|
716
604
|
if (newVNode2.$tag$ === "slot") {
|
|
605
|
+
if (scopeId) {
|
|
606
|
+
parentElm.classList.add(scopeId + "-s");
|
|
607
|
+
}
|
|
717
608
|
newVNode2.$flags$ |= newVNode2.$children$ ? (
|
|
718
609
|
// slot element has fallback content
|
|
719
610
|
// still create an element that "mocks" the slot element
|
|
@@ -737,9 +628,12 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
737
628
|
{
|
|
738
629
|
updateElement(null, newVNode2, isSvgMode);
|
|
739
630
|
}
|
|
631
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
632
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
633
|
+
}
|
|
740
634
|
if (newVNode2.$children$) {
|
|
741
635
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
742
|
-
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
636
|
+
childNode = createElm(oldParentVNode, newVNode2, i2, elm);
|
|
743
637
|
if (childNode) {
|
|
744
638
|
elm.appendChild(childNode);
|
|
745
639
|
}
|
|
@@ -765,7 +659,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
765
659
|
};
|
|
766
660
|
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
767
661
|
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
768
|
-
const oldSlotChildNodes = Array.from(parentElm.
|
|
662
|
+
const oldSlotChildNodes = Array.from(parentElm.childNodes);
|
|
769
663
|
if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
|
|
770
664
|
let node = parentElm;
|
|
771
665
|
while (node = node.nextSibling) {
|
|
@@ -777,7 +671,7 @@ var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
777
671
|
for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
|
|
778
672
|
const childNode = oldSlotChildNodes[i2];
|
|
779
673
|
if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
|
|
780
|
-
insertBefore(
|
|
674
|
+
insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
|
|
781
675
|
childNode["s-ol"].remove();
|
|
782
676
|
childNode["s-ol"] = void 0;
|
|
783
677
|
childNode["s-sh"] = void 0;
|
|
@@ -797,7 +691,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
|
797
691
|
}
|
|
798
692
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
799
693
|
if (vnodes[startIdx]) {
|
|
800
|
-
childNode = createElm(null, parentVNode, startIdx);
|
|
694
|
+
childNode = createElm(null, parentVNode, startIdx, parentElm);
|
|
801
695
|
if (childNode) {
|
|
802
696
|
vnodes[startIdx].$elm$ = childNode;
|
|
803
697
|
insertBefore(containerElm, childNode, referenceNode(before) );
|
|
@@ -883,7 +777,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
883
777
|
if (idxInOld >= 0) {
|
|
884
778
|
elmToMove = oldCh[idxInOld];
|
|
885
779
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
886
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
|
780
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
|
|
887
781
|
} else {
|
|
888
782
|
patch(elmToMove, newStartVnode, isInitialRender);
|
|
889
783
|
oldCh[idxInOld] = void 0;
|
|
@@ -891,16 +785,12 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
891
785
|
}
|
|
892
786
|
newStartVnode = newCh[++newStartIdx];
|
|
893
787
|
} else {
|
|
894
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
788
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
|
|
895
789
|
newStartVnode = newCh[++newStartIdx];
|
|
896
790
|
}
|
|
897
791
|
if (node) {
|
|
898
792
|
{
|
|
899
|
-
insertBefore(
|
|
900
|
-
referenceNode(oldStartVnode.$elm$).parentNode,
|
|
901
|
-
node,
|
|
902
|
-
referenceNode(oldStartVnode.$elm$)
|
|
903
|
-
);
|
|
793
|
+
insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
|
|
904
794
|
}
|
|
905
795
|
}
|
|
906
796
|
}
|
|
@@ -926,14 +816,14 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
926
816
|
if (!isInitialRender) {
|
|
927
817
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
928
818
|
}
|
|
929
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
930
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
931
|
-
}
|
|
932
819
|
return true;
|
|
933
820
|
}
|
|
934
821
|
return false;
|
|
935
822
|
};
|
|
936
|
-
var referenceNode = (node) =>
|
|
823
|
+
var referenceNode = (node) => {
|
|
824
|
+
return node && node["s-ol"] || node;
|
|
825
|
+
};
|
|
826
|
+
var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
|
|
937
827
|
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
938
828
|
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
939
829
|
const oldChildren = oldVNode.$children$;
|
|
@@ -954,10 +844,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
954
844
|
elm.textContent = "";
|
|
955
845
|
}
|
|
956
846
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
957
|
-
} else if (
|
|
958
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
959
|
-
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
960
|
-
) {
|
|
847
|
+
} else if (oldChildren !== null) {
|
|
961
848
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
962
849
|
}
|
|
963
850
|
} else if ((defaultHolder = elm["s-cr"])) {
|
|
@@ -966,15 +853,41 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
966
853
|
elm.data = text;
|
|
967
854
|
}
|
|
968
855
|
};
|
|
856
|
+
var updateFallbackSlotVisibility = (elm) => {
|
|
857
|
+
const childNodes = elm.childNodes;
|
|
858
|
+
for (const childNode of childNodes) {
|
|
859
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
860
|
+
if (childNode["s-sr"]) {
|
|
861
|
+
const slotName = childNode["s-sn"];
|
|
862
|
+
childNode.hidden = false;
|
|
863
|
+
for (const siblingNode of childNodes) {
|
|
864
|
+
if (siblingNode !== childNode) {
|
|
865
|
+
if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
|
|
866
|
+
if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
|
|
867
|
+
childNode.hidden = true;
|
|
868
|
+
break;
|
|
869
|
+
}
|
|
870
|
+
} else {
|
|
871
|
+
if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
|
|
872
|
+
childNode.hidden = true;
|
|
873
|
+
break;
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
updateFallbackSlotVisibility(childNode);
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
};
|
|
969
883
|
var relocateNodes = [];
|
|
970
884
|
var markSlotContentForRelocation = (elm) => {
|
|
971
885
|
let node;
|
|
972
886
|
let hostContentNodes;
|
|
973
887
|
let j;
|
|
974
|
-
const
|
|
975
|
-
for (const childNode of children) {
|
|
888
|
+
for (const childNode of elm.childNodes) {
|
|
976
889
|
if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
|
|
977
|
-
hostContentNodes = node.parentNode.
|
|
890
|
+
hostContentNodes = node.parentNode.childNodes;
|
|
978
891
|
const slotName = childNode["s-sn"];
|
|
979
892
|
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
980
893
|
node = hostContentNodes[j];
|
|
@@ -1016,10 +929,24 @@ var markSlotContentForRelocation = (elm) => {
|
|
|
1016
929
|
}
|
|
1017
930
|
}
|
|
1018
931
|
};
|
|
1019
|
-
var
|
|
1020
|
-
{
|
|
1021
|
-
|
|
932
|
+
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
933
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
934
|
+
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
935
|
+
return true;
|
|
936
|
+
}
|
|
937
|
+
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
938
|
+
return true;
|
|
939
|
+
}
|
|
940
|
+
return false;
|
|
1022
941
|
}
|
|
942
|
+
if (nodeToRelocate["s-sn"] === slotName) {
|
|
943
|
+
return true;
|
|
944
|
+
}
|
|
945
|
+
return slotName === "";
|
|
946
|
+
};
|
|
947
|
+
var insertBefore = (parent, newNode, reference) => {
|
|
948
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
949
|
+
return inserted;
|
|
1023
950
|
};
|
|
1024
951
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
1025
952
|
var _a, _b, _c, _d;
|
|
@@ -1045,7 +972,10 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1045
972
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
1046
973
|
hostRef.$vnode$ = rootVnode;
|
|
1047
974
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
1048
|
-
|
|
975
|
+
{
|
|
976
|
+
scopeId = hostElm["s-sc"];
|
|
977
|
+
}
|
|
978
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
1049
979
|
{
|
|
1050
980
|
contentRef = hostElm["s-cr"];
|
|
1051
981
|
checkSlotFallbackVisibility = false;
|
|
@@ -1073,7 +1003,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1073
1003
|
let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
|
|
1074
1004
|
while (orgLocationNode) {
|
|
1075
1005
|
let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
|
|
1076
|
-
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef ===
|
|
1006
|
+
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
|
|
1077
1007
|
refNode = refNode.nextSibling;
|
|
1078
1008
|
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
|
1079
1009
|
refNode = refNode == null ? void 0 : refNode.nextSibling;
|
|
@@ -1086,15 +1016,13 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1086
1016
|
orgLocationNode = orgLocationNode.previousSibling;
|
|
1087
1017
|
}
|
|
1088
1018
|
}
|
|
1089
|
-
|
|
1090
|
-
const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
|
|
1091
|
-
if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
|
|
1019
|
+
if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
1092
1020
|
if (nodeToRelocate !== insertBeforeNode) {
|
|
1093
1021
|
if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
|
|
1094
1022
|
nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
|
|
1095
1023
|
}
|
|
1096
1024
|
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
|
|
1097
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */
|
|
1025
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1098
1026
|
nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
|
|
1099
1027
|
}
|
|
1100
1028
|
}
|
|
@@ -1122,14 +1050,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1122
1050
|
// src/runtime/update-component.ts
|
|
1123
1051
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
1124
1052
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
1125
|
-
|
|
1126
|
-
new Promise(
|
|
1127
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
1128
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
1129
|
-
r();
|
|
1130
|
-
}
|
|
1131
|
-
)
|
|
1132
|
-
);
|
|
1053
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
1133
1054
|
}
|
|
1134
1055
|
};
|
|
1135
1056
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -1158,16 +1079,16 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1158
1079
|
{
|
|
1159
1080
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
1160
1081
|
if (hostRef.$queuedListeners$) {
|
|
1161
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event
|
|
1082
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
1162
1083
|
hostRef.$queuedListeners$ = void 0;
|
|
1163
1084
|
}
|
|
1164
1085
|
}
|
|
1165
1086
|
{
|
|
1166
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
1087
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
1167
1088
|
}
|
|
1168
1089
|
}
|
|
1169
1090
|
{
|
|
1170
|
-
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"
|
|
1091
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
|
|
1171
1092
|
}
|
|
1172
1093
|
endSchedule();
|
|
1173
1094
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
@@ -1235,7 +1156,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1235
1156
|
const instance = hostRef.$lazyInstance$ ;
|
|
1236
1157
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1237
1158
|
{
|
|
1238
|
-
safeCall(instance, "componentDidRender"
|
|
1159
|
+
safeCall(instance, "componentDidRender");
|
|
1239
1160
|
}
|
|
1240
1161
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
1241
1162
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -1264,14 +1185,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1264
1185
|
}
|
|
1265
1186
|
};
|
|
1266
1187
|
var appDidLoad = (who) => {
|
|
1188
|
+
{
|
|
1189
|
+
addHydratedFlag(doc.documentElement);
|
|
1190
|
+
}
|
|
1267
1191
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
1268
1192
|
};
|
|
1269
|
-
var safeCall = (instance, method, arg
|
|
1193
|
+
var safeCall = (instance, method, arg) => {
|
|
1270
1194
|
if (instance && instance[method]) {
|
|
1271
1195
|
try {
|
|
1272
1196
|
return instance[method](arg);
|
|
1273
1197
|
} catch (e) {
|
|
1274
|
-
consoleError(e
|
|
1198
|
+
consoleError(e);
|
|
1275
1199
|
}
|
|
1276
1200
|
}
|
|
1277
1201
|
return void 0;
|
|
@@ -1330,68 +1254,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1330
1254
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1331
1255
|
members.map(([memberName, [memberFlags]]) => {
|
|
1332
1256
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1333
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
1334
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1335
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1336
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
1337
|
-
Object.defineProperty(prototype, memberName, {
|
|
1338
|
-
get() {
|
|
1339
|
-
{
|
|
1340
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
1341
|
-
return getValue(this, memberName);
|
|
1342
|
-
}
|
|
1343
|
-
const ref = getHostRef(this);
|
|
1344
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
1345
|
-
if (!instance) return;
|
|
1346
|
-
return instance[memberName];
|
|
1347
|
-
}
|
|
1348
|
-
},
|
|
1349
|
-
configurable: true,
|
|
1350
|
-
enumerable: true
|
|
1351
|
-
});
|
|
1352
|
-
}
|
|
1353
1257
|
Object.defineProperty(prototype, memberName, {
|
|
1258
|
+
get() {
|
|
1259
|
+
return getValue(this, memberName);
|
|
1260
|
+
},
|
|
1354
1261
|
set(newValue) {
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
1360
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1361
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1362
|
-
}
|
|
1363
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1364
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1365
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1366
|
-
return;
|
|
1367
|
-
}
|
|
1368
|
-
{
|
|
1369
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1370
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1371
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1372
|
-
ref.$onReadyPromise$.then(() => {
|
|
1373
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1374
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
1375
|
-
}
|
|
1376
|
-
});
|
|
1377
|
-
}
|
|
1378
|
-
return;
|
|
1379
|
-
}
|
|
1380
|
-
const setterSetVal = () => {
|
|
1381
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
1382
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1383
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1384
|
-
}
|
|
1385
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1386
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1387
|
-
};
|
|
1388
|
-
if (ref.$lazyInstance$) {
|
|
1389
|
-
setterSetVal();
|
|
1390
|
-
} else {
|
|
1391
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1392
|
-
}
|
|
1393
|
-
}
|
|
1394
|
-
}
|
|
1262
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1263
|
+
},
|
|
1264
|
+
configurable: true,
|
|
1265
|
+
enumerable: true
|
|
1395
1266
|
});
|
|
1396
1267
|
}
|
|
1397
1268
|
});
|
|
@@ -1401,11 +1272,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1401
1272
|
plt.jmp(() => {
|
|
1402
1273
|
var _a2;
|
|
1403
1274
|
const propName = attrNameToPropName.get(attrName);
|
|
1404
|
-
if (this.hasOwnProperty(propName)
|
|
1275
|
+
if (this.hasOwnProperty(propName)) {
|
|
1405
1276
|
newValue = this[propName];
|
|
1406
1277
|
delete this[propName];
|
|
1407
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
|
1408
|
-
this[propName] == newValue) {
|
|
1278
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
|
|
1409
1279
|
return;
|
|
1410
1280
|
} else if (propName == null) {
|
|
1411
1281
|
const hostRef = getHostRef(this);
|
|
@@ -1421,11 +1291,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1421
1291
|
}
|
|
1422
1292
|
return;
|
|
1423
1293
|
}
|
|
1424
|
-
|
|
1425
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1426
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1427
|
-
this[propName] = newValue;
|
|
1428
|
-
}
|
|
1294
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1429
1295
|
});
|
|
1430
1296
|
};
|
|
1431
1297
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1454,7 +1320,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1454
1320
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1455
1321
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1456
1322
|
if (bundleId) {
|
|
1457
|
-
const CstrImport = loadModule(cmpMeta
|
|
1323
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1458
1324
|
if (CstrImport && "then" in CstrImport) {
|
|
1459
1325
|
const endLoad = uniqueTime();
|
|
1460
1326
|
Cstr = await CstrImport;
|
|
@@ -1479,7 +1345,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1479
1345
|
try {
|
|
1480
1346
|
new Cstr(hostRef);
|
|
1481
1347
|
} catch (e) {
|
|
1482
|
-
consoleError(e
|
|
1348
|
+
consoleError(e);
|
|
1483
1349
|
}
|
|
1484
1350
|
{
|
|
1485
1351
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1514,7 +1380,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1514
1380
|
schedule();
|
|
1515
1381
|
}
|
|
1516
1382
|
};
|
|
1517
|
-
var fireConnectedCallback = (instance
|
|
1383
|
+
var fireConnectedCallback = (instance) => {
|
|
1518
1384
|
};
|
|
1519
1385
|
|
|
1520
1386
|
// src/runtime/connected-callback.ts
|
|
@@ -1568,7 +1434,7 @@ var setContentReference = (elm) => {
|
|
|
1568
1434
|
contentRefElm["s-cn"] = true;
|
|
1569
1435
|
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
1570
1436
|
};
|
|
1571
|
-
var disconnectInstance = (instance
|
|
1437
|
+
var disconnectInstance = (instance) => {
|
|
1572
1438
|
};
|
|
1573
1439
|
var disconnectedCallback = async (elm) => {
|
|
1574
1440
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1583,12 +1449,6 @@ var disconnectedCallback = async (elm) => {
|
|
|
1583
1449
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1584
1450
|
}
|
|
1585
1451
|
}
|
|
1586
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1587
|
-
rootAppliedStyles.delete(elm);
|
|
1588
|
-
}
|
|
1589
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1590
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1591
|
-
}
|
|
1592
1452
|
};
|
|
1593
1453
|
|
|
1594
1454
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1673,17 +1533,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1673
1533
|
}
|
|
1674
1534
|
disconnectedCallback() {
|
|
1675
1535
|
plt.jmp(() => disconnectedCallback(this));
|
|
1676
|
-
plt.raf(() => {
|
|
1677
|
-
var _a3;
|
|
1678
|
-
const hostRef = getHostRef(this);
|
|
1679
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1680
|
-
if (i2 > -1) {
|
|
1681
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1682
|
-
}
|
|
1683
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1684
|
-
delete hostRef.$vnode$.$elm$;
|
|
1685
|
-
}
|
|
1686
|
-
});
|
|
1687
1536
|
}
|
|
1688
1537
|
componentOnReady() {
|
|
1689
1538
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1750,7 +1599,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1750
1599
|
}
|
|
1751
1600
|
}
|
|
1752
1601
|
} catch (e) {
|
|
1753
|
-
consoleError(e
|
|
1602
|
+
consoleError(e);
|
|
1754
1603
|
}
|
|
1755
1604
|
};
|
|
1756
1605
|
var getHostListenerTarget = (elm, flags) => {
|