@everymatrix/casino-engagement-suite-tournament 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/casino-engagement-suite-tournament/casino-engagement-suite-tournament.esm.js +1 -1
- package/dist/casino-engagement-suite-tournament/index.esm.js +1 -1
- package/dist/casino-engagement-suite-tournament/p-36511cf5.js +15 -0
- package/dist/casino-engagement-suite-tournament/{p-69ef97d1.entry.js → p-6e87f006.entry.js} +1 -1
- package/dist/casino-engagement-suite-tournament/p-7dd52ef4.js +2 -0
- package/dist/cjs/casino-engagement-suite-progress-bar_3.cjs.entry.js +13 -39
- package/dist/cjs/{casino-engagement-suite-tournament-19a1c3b7.js → casino-engagement-suite-tournament-dea6117d.js} +12 -31
- package/dist/cjs/casino-engagement-suite-tournament.cjs.js +2 -2
- package/dist/cjs/{index-79c59362.js → index-9b5a5304.js} +136 -287
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.js +4 -35
- package/dist/esm/casino-engagement-suite-progress-bar_3.entry.js +13 -39
- package/dist/esm/{casino-engagement-suite-tournament-f2131da2.js → casino-engagement-suite-tournament-520e74da.js} +12 -31
- package/dist/esm/casino-engagement-suite-tournament.js +3 -3
- package/dist/esm/{index-bc18616b.js → index-e8e1e68e.js} +136 -287
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/packages/stencil/casino-engagement-suite-tournament/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/packages/stencil/casino-engagement-suite-tournament/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.d.ts +7 -2
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/dist/types/utils/api.apdater.d.ts +30 -2
- package/package.json +1 -1
- package/dist/casino-engagement-suite-tournament/p-00972ad5.js +0 -2
- package/dist/casino-engagement-suite-tournament/p-c1d0b870.js +0 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/packages/stencil/casino-engagement-suite-tournament/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/packages/stencil/casino-engagement-suite-tournament/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.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/casino-engagement-suite-tournament/.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/casino-engagement-suite-tournament/.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 = 'casino-engagement-suite-tournament';
|
|
24
|
-
const BUILD = /* casino-engagement-suite-tournament */ { allRenderFn: true, 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: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, 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 = /* casino-engagement-suite-tournament */ { allRenderFn: true, 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: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, 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: false, 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: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, 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);
|
|
@@ -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 XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
@@ -178,6 +167,12 @@ var flush = () => {
|
|
|
178
167
|
};
|
|
179
168
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
180
169
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
170
|
+
|
|
171
|
+
// src/utils/constants.ts
|
|
172
|
+
var EMPTY_OBJ = {};
|
|
173
|
+
|
|
174
|
+
// src/utils/helpers.ts
|
|
175
|
+
var isDef = (v) => v != null;
|
|
181
176
|
var isComplexType = (o) => {
|
|
182
177
|
o = typeof o;
|
|
183
178
|
return o === "object" || o === "function";
|
|
@@ -237,63 +232,6 @@ var unwrapErr = (result) => {
|
|
|
237
232
|
throw result.value;
|
|
238
233
|
}
|
|
239
234
|
};
|
|
240
|
-
var updateFallbackSlotVisibility = (elm) => {
|
|
241
|
-
const childNodes = elm.__childNodes || elm.childNodes;
|
|
242
|
-
if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
|
|
243
|
-
getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
|
|
244
|
-
var _a;
|
|
245
|
-
if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
|
|
246
|
-
if ((_a = getHostSlotChildNodes(slotNode, slotNode["s-sn"], false)) == null ? void 0 : _a.length) {
|
|
247
|
-
slotNode.hidden = true;
|
|
248
|
-
} else {
|
|
249
|
-
slotNode.hidden = false;
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
});
|
|
253
|
-
}
|
|
254
|
-
for (const childNode of childNodes) {
|
|
255
|
-
if (childNode.nodeType === 1 /* ElementNode */ && (childNode.__childNodes || childNode.childNodes).length) {
|
|
256
|
-
updateFallbackSlotVisibility(childNode);
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
};
|
|
260
|
-
function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
261
|
-
let i2 = 0;
|
|
262
|
-
let slottedNodes = [];
|
|
263
|
-
let childNode;
|
|
264
|
-
for (; i2 < childNodes.length; i2++) {
|
|
265
|
-
childNode = childNodes[i2];
|
|
266
|
-
if (childNode["s-sr"] && childNode["s-hn"] === hostName && (slotName === void 0 || childNode["s-sn"] === slotName)) {
|
|
267
|
-
slottedNodes.push(childNode);
|
|
268
|
-
if (typeof slotName !== "undefined") return slottedNodes;
|
|
269
|
-
}
|
|
270
|
-
slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
|
|
271
|
-
}
|
|
272
|
-
return slottedNodes;
|
|
273
|
-
}
|
|
274
|
-
var getHostSlotChildNodes = (node, slotName, includeSlot = true) => {
|
|
275
|
-
const childNodes = [];
|
|
276
|
-
if (includeSlot && node["s-sr"] || !node["s-sr"]) childNodes.push(node);
|
|
277
|
-
while ((node = node.nextSibling) && node["s-sn"] === slotName) {
|
|
278
|
-
childNodes.push(node);
|
|
279
|
-
}
|
|
280
|
-
return childNodes;
|
|
281
|
-
};
|
|
282
|
-
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
283
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
284
|
-
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
285
|
-
return true;
|
|
286
|
-
}
|
|
287
|
-
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
288
|
-
return true;
|
|
289
|
-
}
|
|
290
|
-
return false;
|
|
291
|
-
}
|
|
292
|
-
if (nodeToRelocate["s-sn"] === slotName) {
|
|
293
|
-
return true;
|
|
294
|
-
}
|
|
295
|
-
return slotName === "";
|
|
296
|
-
};
|
|
297
235
|
var createTime = (fnName, tagName = "") => {
|
|
298
236
|
{
|
|
299
237
|
return () => {
|
|
@@ -448,40 +386,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
448
386
|
}
|
|
449
387
|
if (!appliedStyles.has(scopeId2)) {
|
|
450
388
|
{
|
|
451
|
-
styleElm =
|
|
389
|
+
styleElm = doc.createElement("style");
|
|
452
390
|
styleElm.innerHTML = style;
|
|
453
391
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
454
392
|
if (nonce != null) {
|
|
455
393
|
styleElm.setAttribute("nonce", nonce);
|
|
456
394
|
}
|
|
457
|
-
|
|
458
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
459
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
460
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
461
|
-
styleContainerNode.insertBefore(
|
|
462
|
-
styleElm,
|
|
463
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
464
|
-
);
|
|
465
|
-
} else if ("host" in styleContainerNode) {
|
|
466
|
-
if (supportsConstructableStylesheets) {
|
|
467
|
-
const stylesheet = new CSSStyleSheet();
|
|
468
|
-
stylesheet.replaceSync(style);
|
|
469
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
470
|
-
} else {
|
|
471
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
472
|
-
if (existingStyleContainer) {
|
|
473
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
474
|
-
} else {
|
|
475
|
-
styleContainerNode.prepend(styleElm);
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
} else {
|
|
479
|
-
styleContainerNode.append(styleElm);
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
483
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
484
|
-
}
|
|
395
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
485
396
|
}
|
|
486
397
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
487
398
|
styleElm.innerHTML += SLOT_FB_CSS;
|
|
@@ -504,25 +415,23 @@ var attachStyles = (hostRef) => {
|
|
|
504
415
|
const scopeId2 = addStyle(
|
|
505
416
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
506
417
|
cmpMeta);
|
|
507
|
-
if (
|
|
418
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
508
419
|
elm["s-sc"] = scopeId2;
|
|
509
420
|
elm.classList.add(scopeId2 + "-h");
|
|
510
421
|
}
|
|
511
422
|
endAttachStyles();
|
|
512
423
|
};
|
|
513
424
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
514
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
425
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
515
426
|
if (oldValue !== newValue) {
|
|
516
427
|
let isProp = isMemberInElement(elm, memberName);
|
|
517
428
|
let ln = memberName.toLowerCase();
|
|
518
429
|
if (memberName === "class") {
|
|
519
430
|
const classList = elm.classList;
|
|
520
431
|
const oldClasses = parseClassList(oldValue);
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
525
|
-
}
|
|
432
|
+
const newClasses = parseClassList(newValue);
|
|
433
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
434
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
526
435
|
} else if (memberName === "style") {
|
|
527
436
|
{
|
|
528
437
|
for (const prop in oldValue) {
|
|
@@ -575,13 +484,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
575
484
|
if (memberName === "list") {
|
|
576
485
|
isProp = false;
|
|
577
486
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
578
|
-
|
|
579
|
-
elm[memberName] = n;
|
|
580
|
-
} else {
|
|
581
|
-
elm.setAttribute(memberName, n);
|
|
582
|
-
}
|
|
487
|
+
elm[memberName] = n;
|
|
583
488
|
}
|
|
584
|
-
} else
|
|
489
|
+
} else {
|
|
585
490
|
elm[memberName] = newValue;
|
|
586
491
|
}
|
|
587
492
|
} catch (e) {
|
|
@@ -614,44 +519,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
614
519
|
}
|
|
615
520
|
};
|
|
616
521
|
var parseClassListRegex = /\s/;
|
|
617
|
-
var parseClassList = (value) =>
|
|
618
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
619
|
-
value = value.baseVal;
|
|
620
|
-
}
|
|
621
|
-
if (!value || typeof value !== "string") {
|
|
622
|
-
return [];
|
|
623
|
-
}
|
|
624
|
-
return value.split(parseClassListRegex);
|
|
625
|
-
};
|
|
522
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
626
523
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
627
524
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
628
525
|
|
|
629
526
|
// src/runtime/vdom/update-element.ts
|
|
630
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
527
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
631
528
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
632
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
633
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
529
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
530
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
634
531
|
{
|
|
635
532
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
636
533
|
if (!(memberName in newVnodeAttrs)) {
|
|
637
|
-
setAccessor(
|
|
638
|
-
elm,
|
|
639
|
-
memberName,
|
|
640
|
-
oldVnodeAttrs[memberName],
|
|
641
|
-
void 0,
|
|
642
|
-
isSvgMode2,
|
|
643
|
-
newVnode.$flags$);
|
|
534
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
644
535
|
}
|
|
645
536
|
}
|
|
646
537
|
}
|
|
647
538
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
648
|
-
setAccessor(
|
|
649
|
-
elm,
|
|
650
|
-
memberName,
|
|
651
|
-
oldVnodeAttrs[memberName],
|
|
652
|
-
newVnodeAttrs[memberName],
|
|
653
|
-
isSvgMode2,
|
|
654
|
-
newVnode.$flags$);
|
|
539
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
655
540
|
}
|
|
656
541
|
};
|
|
657
542
|
function sortedAttrNames(attrNames) {
|
|
@@ -663,13 +548,16 @@ function sortedAttrNames(attrNames) {
|
|
|
663
548
|
attrNames
|
|
664
549
|
);
|
|
665
550
|
}
|
|
551
|
+
|
|
552
|
+
// src/runtime/vdom/vdom-render.ts
|
|
553
|
+
var scopeId;
|
|
666
554
|
var contentRef;
|
|
667
555
|
var hostTagName;
|
|
668
556
|
var useNativeShadowDom = false;
|
|
669
557
|
var checkSlotFallbackVisibility = false;
|
|
670
558
|
var checkSlotRelocate = false;
|
|
671
559
|
var isSvgMode = false;
|
|
672
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
560
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
673
561
|
var _a;
|
|
674
562
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
675
563
|
let i2 = 0;
|
|
@@ -679,6 +567,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
679
567
|
if (!useNativeShadowDom) {
|
|
680
568
|
checkSlotRelocate = true;
|
|
681
569
|
if (newVNode2.$tag$ === "slot") {
|
|
570
|
+
if (scopeId) {
|
|
571
|
+
parentElm.classList.add(scopeId + "-s");
|
|
572
|
+
}
|
|
682
573
|
newVNode2.$flags$ |= newVNode2.$children$ ? (
|
|
683
574
|
// slot element has fallback content
|
|
684
575
|
// still create an element that "mocks" the slot element
|
|
@@ -702,9 +593,12 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
702
593
|
{
|
|
703
594
|
updateElement(null, newVNode2, isSvgMode);
|
|
704
595
|
}
|
|
596
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
597
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
598
|
+
}
|
|
705
599
|
if (newVNode2.$children$) {
|
|
706
600
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
707
|
-
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
601
|
+
childNode = createElm(oldParentVNode, newVNode2, i2, elm);
|
|
708
602
|
if (childNode) {
|
|
709
603
|
elm.appendChild(childNode);
|
|
710
604
|
}
|
|
@@ -730,7 +624,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
730
624
|
};
|
|
731
625
|
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
732
626
|
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
733
|
-
const oldSlotChildNodes = Array.from(parentElm.
|
|
627
|
+
const oldSlotChildNodes = Array.from(parentElm.childNodes);
|
|
734
628
|
if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
|
|
735
629
|
let node = parentElm;
|
|
736
630
|
while (node = node.nextSibling) {
|
|
@@ -742,7 +636,7 @@ var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
742
636
|
for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
|
|
743
637
|
const childNode = oldSlotChildNodes[i2];
|
|
744
638
|
if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
|
|
745
|
-
insertBefore(
|
|
639
|
+
insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
|
|
746
640
|
childNode["s-ol"].remove();
|
|
747
641
|
childNode["s-ol"] = void 0;
|
|
748
642
|
childNode["s-sh"] = void 0;
|
|
@@ -762,7 +656,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
|
762
656
|
}
|
|
763
657
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
764
658
|
if (vnodes[startIdx]) {
|
|
765
|
-
childNode = createElm(null, parentVNode, startIdx);
|
|
659
|
+
childNode = createElm(null, parentVNode, startIdx, parentElm);
|
|
766
660
|
if (childNode) {
|
|
767
661
|
vnodes[startIdx].$elm$ = childNode;
|
|
768
662
|
insertBefore(containerElm, childNode, referenceNode(before) );
|
|
@@ -849,7 +743,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
849
743
|
if (idxInOld >= 0) {
|
|
850
744
|
elmToMove = oldCh[idxInOld];
|
|
851
745
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
852
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
|
746
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
|
|
853
747
|
} else {
|
|
854
748
|
patch(elmToMove, newStartVnode, isInitialRender);
|
|
855
749
|
oldCh[idxInOld] = void 0;
|
|
@@ -857,16 +751,12 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
857
751
|
}
|
|
858
752
|
newStartVnode = newCh[++newStartIdx];
|
|
859
753
|
} else {
|
|
860
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
754
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
|
|
861
755
|
newStartVnode = newCh[++newStartIdx];
|
|
862
756
|
}
|
|
863
757
|
if (node) {
|
|
864
758
|
{
|
|
865
|
-
insertBefore(
|
|
866
|
-
referenceNode(oldStartVnode.$elm$).parentNode,
|
|
867
|
-
node,
|
|
868
|
-
referenceNode(oldStartVnode.$elm$)
|
|
869
|
-
);
|
|
759
|
+
insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
|
|
870
760
|
}
|
|
871
761
|
}
|
|
872
762
|
}
|
|
@@ -892,14 +782,14 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
892
782
|
if (!isInitialRender) {
|
|
893
783
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
894
784
|
}
|
|
895
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
896
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
897
|
-
}
|
|
898
785
|
return true;
|
|
899
786
|
}
|
|
900
787
|
return false;
|
|
901
788
|
};
|
|
902
|
-
var referenceNode = (node) =>
|
|
789
|
+
var referenceNode = (node) => {
|
|
790
|
+
return node && node["s-ol"] || node;
|
|
791
|
+
};
|
|
792
|
+
var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
|
|
903
793
|
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
904
794
|
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
905
795
|
const oldChildren = oldVNode.$children$;
|
|
@@ -920,10 +810,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
920
810
|
elm.textContent = "";
|
|
921
811
|
}
|
|
922
812
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
923
|
-
} else if (
|
|
924
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
925
|
-
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
926
|
-
) {
|
|
813
|
+
} else if (oldChildren !== null) {
|
|
927
814
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
928
815
|
}
|
|
929
816
|
} else if ((defaultHolder = elm["s-cr"])) {
|
|
@@ -932,15 +819,41 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
932
819
|
elm.data = text;
|
|
933
820
|
}
|
|
934
821
|
};
|
|
822
|
+
var updateFallbackSlotVisibility = (elm) => {
|
|
823
|
+
const childNodes = elm.childNodes;
|
|
824
|
+
for (const childNode of childNodes) {
|
|
825
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
826
|
+
if (childNode["s-sr"]) {
|
|
827
|
+
const slotName = childNode["s-sn"];
|
|
828
|
+
childNode.hidden = false;
|
|
829
|
+
for (const siblingNode of childNodes) {
|
|
830
|
+
if (siblingNode !== childNode) {
|
|
831
|
+
if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
|
|
832
|
+
if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
|
|
833
|
+
childNode.hidden = true;
|
|
834
|
+
break;
|
|
835
|
+
}
|
|
836
|
+
} else {
|
|
837
|
+
if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
|
|
838
|
+
childNode.hidden = true;
|
|
839
|
+
break;
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
updateFallbackSlotVisibility(childNode);
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
};
|
|
935
849
|
var relocateNodes = [];
|
|
936
850
|
var markSlotContentForRelocation = (elm) => {
|
|
937
851
|
let node;
|
|
938
852
|
let hostContentNodes;
|
|
939
853
|
let j;
|
|
940
|
-
const
|
|
941
|
-
for (const childNode of children) {
|
|
854
|
+
for (const childNode of elm.childNodes) {
|
|
942
855
|
if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
|
|
943
|
-
hostContentNodes = node.parentNode.
|
|
856
|
+
hostContentNodes = node.parentNode.childNodes;
|
|
944
857
|
const slotName = childNode["s-sn"];
|
|
945
858
|
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
946
859
|
node = hostContentNodes[j];
|
|
@@ -982,6 +895,21 @@ var markSlotContentForRelocation = (elm) => {
|
|
|
982
895
|
}
|
|
983
896
|
}
|
|
984
897
|
};
|
|
898
|
+
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
899
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
900
|
+
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
901
|
+
return true;
|
|
902
|
+
}
|
|
903
|
+
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
904
|
+
return true;
|
|
905
|
+
}
|
|
906
|
+
return false;
|
|
907
|
+
}
|
|
908
|
+
if (nodeToRelocate["s-sn"] === slotName) {
|
|
909
|
+
return true;
|
|
910
|
+
}
|
|
911
|
+
return slotName === "";
|
|
912
|
+
};
|
|
985
913
|
var nullifyVNodeRefs = (vNode) => {
|
|
986
914
|
{
|
|
987
915
|
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
@@ -989,9 +917,8 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
989
917
|
}
|
|
990
918
|
};
|
|
991
919
|
var insertBefore = (parent, newNode, reference) => {
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
}
|
|
920
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
921
|
+
return inserted;
|
|
995
922
|
};
|
|
996
923
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
997
924
|
var _a, _b, _c, _d;
|
|
@@ -1017,7 +944,10 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1017
944
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
1018
945
|
hostRef.$vnode$ = rootVnode;
|
|
1019
946
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
1020
|
-
|
|
947
|
+
{
|
|
948
|
+
scopeId = hostElm["s-sc"];
|
|
949
|
+
}
|
|
950
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
1021
951
|
{
|
|
1022
952
|
contentRef = hostElm["s-cr"];
|
|
1023
953
|
checkSlotFallbackVisibility = false;
|
|
@@ -1045,7 +975,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1045
975
|
let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
|
|
1046
976
|
while (orgLocationNode) {
|
|
1047
977
|
let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
|
|
1048
|
-
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef ===
|
|
978
|
+
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
|
|
1049
979
|
refNode = refNode.nextSibling;
|
|
1050
980
|
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
|
1051
981
|
refNode = refNode == null ? void 0 : refNode.nextSibling;
|
|
@@ -1058,15 +988,13 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1058
988
|
orgLocationNode = orgLocationNode.previousSibling;
|
|
1059
989
|
}
|
|
1060
990
|
}
|
|
1061
|
-
|
|
1062
|
-
const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
|
|
1063
|
-
if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
|
|
991
|
+
if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
1064
992
|
if (nodeToRelocate !== insertBeforeNode) {
|
|
1065
993
|
if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
|
|
1066
994
|
nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
|
|
1067
995
|
}
|
|
1068
996
|
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
|
|
1069
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */
|
|
997
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1070
998
|
nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
|
|
1071
999
|
}
|
|
1072
1000
|
}
|
|
@@ -1094,14 +1022,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1094
1022
|
// src/runtime/update-component.ts
|
|
1095
1023
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
1096
1024
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
1097
|
-
|
|
1098
|
-
new Promise(
|
|
1099
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
1100
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
1101
|
-
r();
|
|
1102
|
-
}
|
|
1103
|
-
)
|
|
1104
|
-
);
|
|
1025
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
1105
1026
|
}
|
|
1106
1027
|
};
|
|
1107
1028
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -1130,12 +1051,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1130
1051
|
{
|
|
1131
1052
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
1132
1053
|
if (hostRef.$queuedListeners$) {
|
|
1133
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event
|
|
1054
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
1134
1055
|
hostRef.$queuedListeners$ = void 0;
|
|
1135
1056
|
}
|
|
1136
1057
|
}
|
|
1137
1058
|
{
|
|
1138
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
1059
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
1139
1060
|
}
|
|
1140
1061
|
}
|
|
1141
1062
|
endSchedule();
|
|
@@ -1204,7 +1125,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1204
1125
|
const instance = hostRef.$lazyInstance$ ;
|
|
1205
1126
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1206
1127
|
{
|
|
1207
|
-
safeCall(instance, "componentDidRender"
|
|
1128
|
+
safeCall(instance, "componentDidRender");
|
|
1208
1129
|
}
|
|
1209
1130
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
1210
1131
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -1233,14 +1154,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1233
1154
|
}
|
|
1234
1155
|
};
|
|
1235
1156
|
var appDidLoad = (who) => {
|
|
1157
|
+
{
|
|
1158
|
+
addHydratedFlag(doc.documentElement);
|
|
1159
|
+
}
|
|
1236
1160
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
1237
1161
|
};
|
|
1238
|
-
var safeCall = (instance, method, arg
|
|
1162
|
+
var safeCall = (instance, method, arg) => {
|
|
1239
1163
|
if (instance && instance[method]) {
|
|
1240
1164
|
try {
|
|
1241
1165
|
return instance[method](arg);
|
|
1242
1166
|
} catch (e) {
|
|
1243
|
-
consoleError(e
|
|
1167
|
+
consoleError(e);
|
|
1244
1168
|
}
|
|
1245
1169
|
}
|
|
1246
1170
|
return void 0;
|
|
@@ -1299,68 +1223,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1299
1223
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1300
1224
|
members.map(([memberName, [memberFlags]]) => {
|
|
1301
1225
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1302
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
1303
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1304
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1305
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
1306
|
-
Object.defineProperty(prototype, memberName, {
|
|
1307
|
-
get() {
|
|
1308
|
-
{
|
|
1309
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
1310
|
-
return getValue(this, memberName);
|
|
1311
|
-
}
|
|
1312
|
-
const ref = getHostRef(this);
|
|
1313
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
1314
|
-
if (!instance) return;
|
|
1315
|
-
return instance[memberName];
|
|
1316
|
-
}
|
|
1317
|
-
},
|
|
1318
|
-
configurable: true,
|
|
1319
|
-
enumerable: true
|
|
1320
|
-
});
|
|
1321
|
-
}
|
|
1322
1226
|
Object.defineProperty(prototype, memberName, {
|
|
1227
|
+
get() {
|
|
1228
|
+
return getValue(this, memberName);
|
|
1229
|
+
},
|
|
1323
1230
|
set(newValue) {
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
1329
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1330
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1331
|
-
}
|
|
1332
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1333
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1334
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1335
|
-
return;
|
|
1336
|
-
}
|
|
1337
|
-
{
|
|
1338
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1339
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1340
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1341
|
-
ref.$onReadyPromise$.then(() => {
|
|
1342
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1343
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
1344
|
-
}
|
|
1345
|
-
});
|
|
1346
|
-
}
|
|
1347
|
-
return;
|
|
1348
|
-
}
|
|
1349
|
-
const setterSetVal = () => {
|
|
1350
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
1351
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1352
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1353
|
-
}
|
|
1354
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1355
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1356
|
-
};
|
|
1357
|
-
if (ref.$lazyInstance$) {
|
|
1358
|
-
setterSetVal();
|
|
1359
|
-
} else {
|
|
1360
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1361
|
-
}
|
|
1362
|
-
}
|
|
1363
|
-
}
|
|
1231
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1232
|
+
},
|
|
1233
|
+
configurable: true,
|
|
1234
|
+
enumerable: true
|
|
1364
1235
|
});
|
|
1365
1236
|
}
|
|
1366
1237
|
});
|
|
@@ -1370,11 +1241,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1370
1241
|
plt.jmp(() => {
|
|
1371
1242
|
var _a2;
|
|
1372
1243
|
const propName = attrNameToPropName.get(attrName);
|
|
1373
|
-
if (this.hasOwnProperty(propName)
|
|
1244
|
+
if (this.hasOwnProperty(propName)) {
|
|
1374
1245
|
newValue = this[propName];
|
|
1375
1246
|
delete this[propName];
|
|
1376
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
|
1377
|
-
this[propName] == newValue) {
|
|
1247
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
|
|
1378
1248
|
return;
|
|
1379
1249
|
} else if (propName == null) {
|
|
1380
1250
|
const hostRef = getHostRef(this);
|
|
@@ -1390,11 +1260,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1390
1260
|
}
|
|
1391
1261
|
return;
|
|
1392
1262
|
}
|
|
1393
|
-
|
|
1394
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1395
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1396
|
-
this[propName] = newValue;
|
|
1397
|
-
}
|
|
1263
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1398
1264
|
});
|
|
1399
1265
|
};
|
|
1400
1266
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1423,7 +1289,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1423
1289
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1424
1290
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1425
1291
|
if (bundleId) {
|
|
1426
|
-
const CstrImport = loadModule(cmpMeta
|
|
1292
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1427
1293
|
if (CstrImport && "then" in CstrImport) {
|
|
1428
1294
|
const endLoad = uniqueTime();
|
|
1429
1295
|
Cstr = await CstrImport;
|
|
@@ -1448,7 +1314,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1448
1314
|
try {
|
|
1449
1315
|
new Cstr(hostRef);
|
|
1450
1316
|
} catch (e) {
|
|
1451
|
-
consoleError(e
|
|
1317
|
+
consoleError(e);
|
|
1452
1318
|
}
|
|
1453
1319
|
{
|
|
1454
1320
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1457,7 +1323,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1457
1323
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1458
1324
|
}
|
|
1459
1325
|
endNewInstance();
|
|
1460
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1326
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1461
1327
|
} else {
|
|
1462
1328
|
Cstr = elm.constructor;
|
|
1463
1329
|
const cmpTag = elm.localName;
|
|
@@ -1484,9 +1350,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1484
1350
|
schedule();
|
|
1485
1351
|
}
|
|
1486
1352
|
};
|
|
1487
|
-
var fireConnectedCallback = (instance
|
|
1353
|
+
var fireConnectedCallback = (instance) => {
|
|
1488
1354
|
{
|
|
1489
|
-
safeCall(instance, "connectedCallback"
|
|
1355
|
+
safeCall(instance, "connectedCallback");
|
|
1490
1356
|
}
|
|
1491
1357
|
};
|
|
1492
1358
|
|
|
@@ -1528,9 +1394,9 @@ var connectedCallback = (elm) => {
|
|
|
1528
1394
|
} else {
|
|
1529
1395
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1530
1396
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1531
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1397
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1532
1398
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1533
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance
|
|
1399
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
|
1534
1400
|
}
|
|
1535
1401
|
}
|
|
1536
1402
|
endConnected();
|
|
@@ -1543,9 +1409,9 @@ var setContentReference = (elm) => {
|
|
|
1543
1409
|
contentRefElm["s-cn"] = true;
|
|
1544
1410
|
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
1545
1411
|
};
|
|
1546
|
-
var disconnectInstance = (instance
|
|
1412
|
+
var disconnectInstance = (instance) => {
|
|
1547
1413
|
{
|
|
1548
|
-
safeCall(instance, "disconnectedCallback"
|
|
1414
|
+
safeCall(instance, "disconnectedCallback");
|
|
1549
1415
|
}
|
|
1550
1416
|
};
|
|
1551
1417
|
var disconnectedCallback = async (elm) => {
|
|
@@ -1558,17 +1424,11 @@ var disconnectedCallback = async (elm) => {
|
|
|
1558
1424
|
}
|
|
1559
1425
|
}
|
|
1560
1426
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1561
|
-
disconnectInstance(hostRef.$lazyInstance
|
|
1427
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
|
1562
1428
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1563
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance
|
|
1429
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
1564
1430
|
}
|
|
1565
1431
|
}
|
|
1566
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1567
|
-
rootAppliedStyles.delete(elm);
|
|
1568
|
-
}
|
|
1569
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1570
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1571
|
-
}
|
|
1572
1432
|
};
|
|
1573
1433
|
|
|
1574
1434
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1653,17 +1513,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1653
1513
|
}
|
|
1654
1514
|
disconnectedCallback() {
|
|
1655
1515
|
plt.jmp(() => disconnectedCallback(this));
|
|
1656
|
-
plt.raf(() => {
|
|
1657
|
-
var _a3;
|
|
1658
|
-
const hostRef = getHostRef(this);
|
|
1659
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1660
|
-
if (i2 > -1) {
|
|
1661
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1662
|
-
}
|
|
1663
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1664
|
-
delete hostRef.$vnode$.$elm$;
|
|
1665
|
-
}
|
|
1666
|
-
});
|
|
1667
1516
|
}
|
|
1668
1517
|
componentOnReady() {
|
|
1669
1518
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1727,7 +1576,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1727
1576
|
}
|
|
1728
1577
|
}
|
|
1729
1578
|
} catch (e) {
|
|
1730
|
-
consoleError(e
|
|
1579
|
+
consoleError(e);
|
|
1731
1580
|
}
|
|
1732
1581
|
};
|
|
1733
1582
|
var getHostListenerTarget = (elm, flags) => {
|