@everymatrix/casino-game-thumb-view 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-game-thumb-view/casino-game-thumb-view.esm.js +1 -1
- package/dist/casino-game-thumb-view/{p-600af885.entry.js → p-0f03c743.entry.js} +1 -1
- package/dist/casino-game-thumb-view/p-358a4af8.entry.js +7 -0
- package/dist/casino-game-thumb-view/p-4ece4698.js +8 -0
- package/dist/casino-game-thumb-view/p-74a4ae4a.entry.js +1 -0
- package/dist/casino-game-thumb-view/p-a0c26052.entry.js +1 -0
- package/dist/casino-game-thumb-view/p-b5a64db5.js +2 -0
- package/dist/casino-game-thumb-view/p-d6ec6d6a.entry.js +1 -0
- package/dist/casino-game-thumb-view/p-fd38189d.entry.js +1 -0
- package/dist/cjs/casino-extrainfo-baccarat.cjs.entry.js +5 -1
- package/dist/cjs/casino-extrainfo-blackjack.cjs.entry.js +6 -1
- package/dist/cjs/casino-extrainfo-roulette.cjs.entry.js +4 -4
- package/dist/cjs/casino-game-thumb-view.cjs.js +2 -2
- package/dist/cjs/casino-game-thumb-view_2.cjs.entry.js +41 -52
- package/dist/cjs/casino-game-thumbnail-betlimit_2.cjs.entry.js +8 -3
- package/dist/cjs/casino-normal-game-thumbnail.cjs.entry.js +2 -1
- package/dist/cjs/{index-b36c6933.js → index-81c5b70d.js} +136 -289
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-c4ed3adc.js → utils-21e506f8.js} +365 -368
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/casino-extrainfo-baccarat/casino-extrainfo-baccarat.js +4 -4
- package/dist/collection/components/casino-extrainfo-blackjack/casino-extrainfo-blackjack.js +7 -2
- package/dist/collection/components/casino-extrainfo-roulette/casino-extrainfo-roulette.js +3 -5
- package/dist/collection/components/casino-game-thumb-view/casino-game-thumb-view.js +33 -99
- package/dist/collection/components/casino-game-thumbnail-betlimit/casino-game-thumbnail-betlimit.js +3 -5
- package/dist/collection/components/casino-game-thumbnail-extrainfo/casino-game-thumbnail-extrainfo.js +4 -3
- package/dist/collection/components/casino-game-thumbnail-overlay/casino-game-thumbnail-overlay.js +6 -27
- package/dist/collection/components/casino-normal-game-thumbnail/casino-normal-game-thumbnail.js +3 -2
- package/dist/esm/casino-extrainfo-baccarat.entry.js +5 -1
- package/dist/esm/casino-extrainfo-blackjack.entry.js +6 -1
- package/dist/esm/casino-extrainfo-roulette.entry.js +4 -4
- package/dist/esm/casino-game-thumb-view.js +3 -3
- package/dist/esm/casino-game-thumb-view_2.entry.js +41 -52
- package/dist/esm/casino-game-thumbnail-betlimit_2.entry.js +8 -3
- package/dist/esm/casino-normal-game-thumbnail.entry.js +2 -1
- package/dist/esm/{index-23b4a4c5.js → index-8058a16f.js} +136 -289
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{utils-090ac2e9.js → utils-d11d0845.js} +365 -368
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-game-thumb-view/.stencil/packages/stencil/casino-game-thumb-view/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-game-thumb-view/.stencil/packages/stencil/casino-game-thumb-view/stencil.config.dev.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/package.json +1 -1
- package/dist/casino-game-thumb-view/p-13741d4d.js +0 -2
- package/dist/casino-game-thumb-view/p-53ba085b.entry.js +0 -1
- package/dist/casino-game-thumb-view/p-b13b5c25.entry.js +0 -1
- package/dist/casino-game-thumb-view/p-c6ee2783.entry.js +0 -1
- package/dist/casino-game-thumb-view/p-d2580653.js +0 -8
- package/dist/casino-game-thumb-view/p-dd797f50.entry.js +0 -7
- package/dist/casino-game-thumb-view/p-ee2bdcce.entry.js +0 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-game-thumb-view/.stencil/packages/stencil/casino-game-thumb-view/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-game-thumb-view/.stencil/packages/stencil/casino-game-thumb-view/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-game-thumb-view/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-game-thumb-view/.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-game-thumb-view/.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-game-thumb-view/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -21,27 +21,19 @@ function _interopNamespace(e) {
|
|
21
21
|
}
|
22
22
|
|
23
23
|
const NAMESPACE = 'casino-game-thumb-view';
|
24
|
-
const BUILD = /* casino-game-thumb-view */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: false, 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: true, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false,
|
24
|
+
const BUILD = /* casino-game-thumb-view */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: false, 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: true, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: false, 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: 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/utils/constants.ts
|
36
|
-
var SVG_NS = "http://www.w3.org/2000/svg";
|
37
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
38
|
-
|
39
|
-
// src/client/client-host-ref.ts
|
40
34
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
41
35
|
var getHostRef = (ref) => hostRefs.get(ref);
|
42
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
43
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
44
|
-
};
|
36
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
45
37
|
var registerHost = (hostElement, cmpMeta) => {
|
46
38
|
const hostRef = {
|
47
39
|
$flags$: 0,
|
@@ -57,8 +49,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
57
49
|
hostElement["s-p"] = [];
|
58
50
|
hostElement["s-rc"] = [];
|
59
51
|
}
|
60
|
-
|
61
|
-
return ref;
|
52
|
+
return hostRefs.set(hostElement, hostRef);
|
62
53
|
};
|
63
54
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
64
55
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
@@ -115,22 +106,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
115
106
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
116
107
|
/* webpackMode: "lazy" */
|
117
108
|
`./${bundleId}.entry.js${""}`
|
118
|
-
)); }).then(
|
119
|
-
|
120
|
-
|
121
|
-
cmpModules.set(bundleId, importedModule);
|
122
|
-
}
|
123
|
-
return importedModule[exportName];
|
124
|
-
},
|
125
|
-
(e) => {
|
126
|
-
consoleError(e, hostRef.$hostElement$);
|
109
|
+
)); }).then((importedModule) => {
|
110
|
+
{
|
111
|
+
cmpModules.set(bundleId, importedModule);
|
127
112
|
}
|
128
|
-
|
113
|
+
return importedModule[exportName];
|
114
|
+
}, consoleError);
|
129
115
|
};
|
130
116
|
|
131
117
|
// src/client/client-style.ts
|
132
118
|
var styles = /* @__PURE__ */ new Map();
|
133
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
134
119
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
135
120
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
136
121
|
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
@@ -205,6 +190,14 @@ var flush = () => {
|
|
205
190
|
};
|
206
191
|
var nextTick = (cb) => promiseResolve().then(cb);
|
207
192
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
193
|
+
|
194
|
+
// src/utils/constants.ts
|
195
|
+
var EMPTY_OBJ = {};
|
196
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
197
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
198
|
+
|
199
|
+
// src/utils/helpers.ts
|
200
|
+
var isDef = (v) => v != null;
|
208
201
|
var isComplexType = (o) => {
|
209
202
|
o = typeof o;
|
210
203
|
return o === "object" || o === "function";
|
@@ -264,63 +257,6 @@ var unwrapErr = (result) => {
|
|
264
257
|
throw result.value;
|
265
258
|
}
|
266
259
|
};
|
267
|
-
var updateFallbackSlotVisibility = (elm) => {
|
268
|
-
const childNodes = elm.__childNodes || elm.childNodes;
|
269
|
-
if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
|
270
|
-
getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
|
271
|
-
var _a;
|
272
|
-
if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
|
273
|
-
if ((_a = getHostSlotChildNodes(slotNode, slotNode["s-sn"], false)) == null ? void 0 : _a.length) {
|
274
|
-
slotNode.hidden = true;
|
275
|
-
} else {
|
276
|
-
slotNode.hidden = false;
|
277
|
-
}
|
278
|
-
}
|
279
|
-
});
|
280
|
-
}
|
281
|
-
for (const childNode of childNodes) {
|
282
|
-
if (childNode.nodeType === 1 /* ElementNode */ && (childNode.__childNodes || childNode.childNodes).length) {
|
283
|
-
updateFallbackSlotVisibility(childNode);
|
284
|
-
}
|
285
|
-
}
|
286
|
-
};
|
287
|
-
function getHostSlotNodes(childNodes, hostName, slotName) {
|
288
|
-
let i2 = 0;
|
289
|
-
let slottedNodes = [];
|
290
|
-
let childNode;
|
291
|
-
for (; i2 < childNodes.length; i2++) {
|
292
|
-
childNode = childNodes[i2];
|
293
|
-
if (childNode["s-sr"] && childNode["s-hn"] === hostName && (slotName === void 0 || childNode["s-sn"] === slotName)) {
|
294
|
-
slottedNodes.push(childNode);
|
295
|
-
if (typeof slotName !== "undefined") return slottedNodes;
|
296
|
-
}
|
297
|
-
slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
|
298
|
-
}
|
299
|
-
return slottedNodes;
|
300
|
-
}
|
301
|
-
var getHostSlotChildNodes = (node, slotName, includeSlot = true) => {
|
302
|
-
const childNodes = [];
|
303
|
-
if (includeSlot && node["s-sr"] || !node["s-sr"]) childNodes.push(node);
|
304
|
-
while ((node = node.nextSibling) && node["s-sn"] === slotName) {
|
305
|
-
childNodes.push(node);
|
306
|
-
}
|
307
|
-
return childNodes;
|
308
|
-
};
|
309
|
-
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
310
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
311
|
-
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
312
|
-
return true;
|
313
|
-
}
|
314
|
-
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
315
|
-
return true;
|
316
|
-
}
|
317
|
-
return false;
|
318
|
-
}
|
319
|
-
if (nodeToRelocate["s-sn"] === slotName) {
|
320
|
-
return true;
|
321
|
-
}
|
322
|
-
return slotName === "";
|
323
|
-
};
|
324
260
|
var createTime = (fnName, tagName = "") => {
|
325
261
|
{
|
326
262
|
return () => {
|
@@ -512,40 +448,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
512
448
|
}
|
513
449
|
if (!appliedStyles.has(scopeId2)) {
|
514
450
|
{
|
515
|
-
styleElm =
|
451
|
+
styleElm = doc.createElement("style");
|
516
452
|
styleElm.innerHTML = style;
|
517
453
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
518
454
|
if (nonce != null) {
|
519
455
|
styleElm.setAttribute("nonce", nonce);
|
520
456
|
}
|
521
|
-
|
522
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
523
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
524
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
525
|
-
styleContainerNode.insertBefore(
|
526
|
-
styleElm,
|
527
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
528
|
-
);
|
529
|
-
} else if ("host" in styleContainerNode) {
|
530
|
-
if (supportsConstructableStylesheets) {
|
531
|
-
const stylesheet = new CSSStyleSheet();
|
532
|
-
stylesheet.replaceSync(style);
|
533
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
534
|
-
} else {
|
535
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
536
|
-
if (existingStyleContainer) {
|
537
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
538
|
-
} else {
|
539
|
-
styleContainerNode.prepend(styleElm);
|
540
|
-
}
|
541
|
-
}
|
542
|
-
} else {
|
543
|
-
styleContainerNode.append(styleElm);
|
544
|
-
}
|
545
|
-
}
|
546
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
547
|
-
styleContainerNode.insertBefore(styleElm, null);
|
548
|
-
}
|
457
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
549
458
|
}
|
550
459
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
551
460
|
styleElm.innerHTML += SLOT_FB_CSS;
|
@@ -568,25 +477,23 @@ var attachStyles = (hostRef) => {
|
|
568
477
|
const scopeId2 = addStyle(
|
569
478
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
570
479
|
cmpMeta);
|
571
|
-
if (
|
480
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
572
481
|
elm["s-sc"] = scopeId2;
|
573
482
|
elm.classList.add(scopeId2 + "-h");
|
574
483
|
}
|
575
484
|
endAttachStyles();
|
576
485
|
};
|
577
486
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
578
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
487
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
579
488
|
if (oldValue !== newValue) {
|
580
489
|
let isProp = isMemberInElement(elm, memberName);
|
581
490
|
let ln = memberName.toLowerCase();
|
582
491
|
if (memberName === "class") {
|
583
492
|
const classList = elm.classList;
|
584
493
|
const oldClasses = parseClassList(oldValue);
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
589
|
-
}
|
494
|
+
const newClasses = parseClassList(newValue);
|
495
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
496
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
590
497
|
} else if (memberName === "style") {
|
591
498
|
{
|
592
499
|
for (const prop in oldValue) {
|
@@ -639,13 +546,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
639
546
|
if (memberName === "list") {
|
640
547
|
isProp = false;
|
641
548
|
} else if (oldValue == null || elm[memberName] != n) {
|
642
|
-
|
643
|
-
elm[memberName] = n;
|
644
|
-
} else {
|
645
|
-
elm.setAttribute(memberName, n);
|
646
|
-
}
|
549
|
+
elm[memberName] = n;
|
647
550
|
}
|
648
|
-
} else
|
551
|
+
} else {
|
649
552
|
elm[memberName] = newValue;
|
650
553
|
}
|
651
554
|
} catch (e) {
|
@@ -678,44 +581,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
678
581
|
}
|
679
582
|
};
|
680
583
|
var parseClassListRegex = /\s/;
|
681
|
-
var parseClassList = (value) =>
|
682
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
683
|
-
value = value.baseVal;
|
684
|
-
}
|
685
|
-
if (!value || typeof value !== "string") {
|
686
|
-
return [];
|
687
|
-
}
|
688
|
-
return value.split(parseClassListRegex);
|
689
|
-
};
|
584
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
690
585
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
691
586
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
692
587
|
|
693
588
|
// src/runtime/vdom/update-element.ts
|
694
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
589
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
695
590
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
696
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
697
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
591
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
592
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
698
593
|
{
|
699
594
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
700
595
|
if (!(memberName in newVnodeAttrs)) {
|
701
|
-
setAccessor(
|
702
|
-
elm,
|
703
|
-
memberName,
|
704
|
-
oldVnodeAttrs[memberName],
|
705
|
-
void 0,
|
706
|
-
isSvgMode2,
|
707
|
-
newVnode.$flags$);
|
596
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
708
597
|
}
|
709
598
|
}
|
710
599
|
}
|
711
600
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
712
|
-
setAccessor(
|
713
|
-
elm,
|
714
|
-
memberName,
|
715
|
-
oldVnodeAttrs[memberName],
|
716
|
-
newVnodeAttrs[memberName],
|
717
|
-
isSvgMode2,
|
718
|
-
newVnode.$flags$);
|
601
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
719
602
|
}
|
720
603
|
};
|
721
604
|
function sortedAttrNames(attrNames) {
|
@@ -727,13 +610,16 @@ function sortedAttrNames(attrNames) {
|
|
727
610
|
attrNames
|
728
611
|
);
|
729
612
|
}
|
613
|
+
|
614
|
+
// src/runtime/vdom/vdom-render.ts
|
615
|
+
var scopeId;
|
730
616
|
var contentRef;
|
731
617
|
var hostTagName;
|
732
618
|
var useNativeShadowDom = false;
|
733
619
|
var checkSlotFallbackVisibility = false;
|
734
620
|
var checkSlotRelocate = false;
|
735
621
|
var isSvgMode = false;
|
736
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
622
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
737
623
|
var _a;
|
738
624
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
739
625
|
let i2 = 0;
|
@@ -743,6 +629,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
743
629
|
if (!useNativeShadowDom) {
|
744
630
|
checkSlotRelocate = true;
|
745
631
|
if (newVNode2.$tag$ === "slot") {
|
632
|
+
if (scopeId) {
|
633
|
+
parentElm.classList.add(scopeId + "-s");
|
634
|
+
}
|
746
635
|
newVNode2.$flags$ |= newVNode2.$children$ ? (
|
747
636
|
// slot element has fallback content
|
748
637
|
// still create an element that "mocks" the slot element
|
@@ -773,9 +662,12 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
773
662
|
{
|
774
663
|
updateElement(null, newVNode2, isSvgMode);
|
775
664
|
}
|
665
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
666
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
667
|
+
}
|
776
668
|
if (newVNode2.$children$) {
|
777
669
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
778
|
-
childNode = createElm(oldParentVNode, newVNode2, i2);
|
670
|
+
childNode = createElm(oldParentVNode, newVNode2, i2, elm);
|
779
671
|
if (childNode) {
|
780
672
|
elm.appendChild(childNode);
|
781
673
|
}
|
@@ -808,7 +700,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
808
700
|
};
|
809
701
|
var putBackInOriginalLocation = (parentElm, recursive) => {
|
810
702
|
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
811
|
-
const oldSlotChildNodes = Array.from(parentElm.
|
703
|
+
const oldSlotChildNodes = Array.from(parentElm.childNodes);
|
812
704
|
if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
|
813
705
|
let node = parentElm;
|
814
706
|
while (node = node.nextSibling) {
|
@@ -820,7 +712,7 @@ var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
820
712
|
for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
|
821
713
|
const childNode = oldSlotChildNodes[i2];
|
822
714
|
if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
|
823
|
-
insertBefore(
|
715
|
+
insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
|
824
716
|
childNode["s-ol"].remove();
|
825
717
|
childNode["s-ol"] = void 0;
|
826
718
|
childNode["s-sh"] = void 0;
|
@@ -840,7 +732,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
840
732
|
}
|
841
733
|
for (; startIdx <= endIdx; ++startIdx) {
|
842
734
|
if (vnodes[startIdx]) {
|
843
|
-
childNode = createElm(null, parentVNode, startIdx);
|
735
|
+
childNode = createElm(null, parentVNode, startIdx, parentElm);
|
844
736
|
if (childNode) {
|
845
737
|
vnodes[startIdx].$elm$ = childNode;
|
846
738
|
insertBefore(containerElm, childNode, referenceNode(before) );
|
@@ -927,7 +819,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
927
819
|
if (idxInOld >= 0) {
|
928
820
|
elmToMove = oldCh[idxInOld];
|
929
821
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
930
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
822
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
|
931
823
|
} else {
|
932
824
|
patch(elmToMove, newStartVnode, isInitialRender);
|
933
825
|
oldCh[idxInOld] = void 0;
|
@@ -935,16 +827,12 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
935
827
|
}
|
936
828
|
newStartVnode = newCh[++newStartIdx];
|
937
829
|
} else {
|
938
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
830
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
|
939
831
|
newStartVnode = newCh[++newStartIdx];
|
940
832
|
}
|
941
833
|
if (node) {
|
942
834
|
{
|
943
|
-
insertBefore(
|
944
|
-
referenceNode(oldStartVnode.$elm$).parentNode,
|
945
|
-
node,
|
946
|
-
referenceNode(oldStartVnode.$elm$)
|
947
|
-
);
|
835
|
+
insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
|
948
836
|
}
|
949
837
|
}
|
950
838
|
}
|
@@ -970,14 +858,14 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
970
858
|
if (!isInitialRender) {
|
971
859
|
return leftVNode.$key$ === rightVNode.$key$;
|
972
860
|
}
|
973
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
974
|
-
leftVNode.$key$ = rightVNode.$key$;
|
975
|
-
}
|
976
861
|
return true;
|
977
862
|
}
|
978
863
|
return false;
|
979
864
|
};
|
980
|
-
var referenceNode = (node) =>
|
865
|
+
var referenceNode = (node) => {
|
866
|
+
return node && node["s-ol"] || node;
|
867
|
+
};
|
868
|
+
var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
|
981
869
|
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
982
870
|
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
983
871
|
const oldChildren = oldVNode.$children$;
|
@@ -1001,10 +889,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
1001
889
|
elm.textContent = "";
|
1002
890
|
}
|
1003
891
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
1004
|
-
} else if (
|
1005
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
1006
|
-
!isInitialRender && BUILD.updatable && oldChildren !== null
|
1007
|
-
) {
|
892
|
+
} else if (oldChildren !== null) {
|
1008
893
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
1009
894
|
}
|
1010
895
|
if (isSvgMode && tag === "svg") {
|
@@ -1016,15 +901,41 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
1016
901
|
elm.data = text;
|
1017
902
|
}
|
1018
903
|
};
|
904
|
+
var updateFallbackSlotVisibility = (elm) => {
|
905
|
+
const childNodes = elm.childNodes;
|
906
|
+
for (const childNode of childNodes) {
|
907
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
908
|
+
if (childNode["s-sr"]) {
|
909
|
+
const slotName = childNode["s-sn"];
|
910
|
+
childNode.hidden = false;
|
911
|
+
for (const siblingNode of childNodes) {
|
912
|
+
if (siblingNode !== childNode) {
|
913
|
+
if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
|
914
|
+
if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
|
915
|
+
childNode.hidden = true;
|
916
|
+
break;
|
917
|
+
}
|
918
|
+
} else {
|
919
|
+
if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
|
920
|
+
childNode.hidden = true;
|
921
|
+
break;
|
922
|
+
}
|
923
|
+
}
|
924
|
+
}
|
925
|
+
}
|
926
|
+
}
|
927
|
+
updateFallbackSlotVisibility(childNode);
|
928
|
+
}
|
929
|
+
}
|
930
|
+
};
|
1019
931
|
var relocateNodes = [];
|
1020
932
|
var markSlotContentForRelocation = (elm) => {
|
1021
933
|
let node;
|
1022
934
|
let hostContentNodes;
|
1023
935
|
let j;
|
1024
|
-
const
|
1025
|
-
for (const childNode of children) {
|
936
|
+
for (const childNode of elm.childNodes) {
|
1026
937
|
if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
|
1027
|
-
hostContentNodes = node.parentNode.
|
938
|
+
hostContentNodes = node.parentNode.childNodes;
|
1028
939
|
const slotName = childNode["s-sn"];
|
1029
940
|
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
1030
941
|
node = hostContentNodes[j];
|
@@ -1066,6 +977,21 @@ var markSlotContentForRelocation = (elm) => {
|
|
1066
977
|
}
|
1067
978
|
}
|
1068
979
|
};
|
980
|
+
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
981
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
982
|
+
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
983
|
+
return true;
|
984
|
+
}
|
985
|
+
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
986
|
+
return true;
|
987
|
+
}
|
988
|
+
return false;
|
989
|
+
}
|
990
|
+
if (nodeToRelocate["s-sn"] === slotName) {
|
991
|
+
return true;
|
992
|
+
}
|
993
|
+
return slotName === "";
|
994
|
+
};
|
1069
995
|
var nullifyVNodeRefs = (vNode) => {
|
1070
996
|
{
|
1071
997
|
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
@@ -1073,9 +999,8 @@ var nullifyVNodeRefs = (vNode) => {
|
|
1073
999
|
}
|
1074
1000
|
};
|
1075
1001
|
var insertBefore = (parent, newNode, reference) => {
|
1076
|
-
|
1077
|
-
|
1078
|
-
}
|
1002
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
1003
|
+
return inserted;
|
1079
1004
|
};
|
1080
1005
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
1081
1006
|
var _a, _b, _c, _d;
|
@@ -1095,7 +1020,10 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
1095
1020
|
rootVnode.$flags$ |= 4 /* isHost */;
|
1096
1021
|
hostRef.$vnode$ = rootVnode;
|
1097
1022
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
1098
|
-
|
1023
|
+
{
|
1024
|
+
scopeId = hostElm["s-sc"];
|
1025
|
+
}
|
1026
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
1099
1027
|
{
|
1100
1028
|
contentRef = hostElm["s-cr"];
|
1101
1029
|
checkSlotFallbackVisibility = false;
|
@@ -1123,7 +1051,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
1123
1051
|
let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
|
1124
1052
|
while (orgLocationNode) {
|
1125
1053
|
let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
|
1126
|
-
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef ===
|
1054
|
+
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
|
1127
1055
|
refNode = refNode.nextSibling;
|
1128
1056
|
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
1129
1057
|
refNode = refNode == null ? void 0 : refNode.nextSibling;
|
@@ -1136,15 +1064,13 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
1136
1064
|
orgLocationNode = orgLocationNode.previousSibling;
|
1137
1065
|
}
|
1138
1066
|
}
|
1139
|
-
|
1140
|
-
const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
|
1141
|
-
if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
|
1067
|
+
if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
|
1142
1068
|
if (nodeToRelocate !== insertBeforeNode) {
|
1143
1069
|
if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
|
1144
1070
|
nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
|
1145
1071
|
}
|
1146
1072
|
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
|
1147
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */
|
1073
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
1148
1074
|
nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
|
1149
1075
|
}
|
1150
1076
|
}
|
@@ -1172,14 +1098,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
1172
1098
|
// src/runtime/update-component.ts
|
1173
1099
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
1174
1100
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
1175
|
-
|
1176
|
-
new Promise(
|
1177
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
1178
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
1179
|
-
r();
|
1180
|
-
}
|
1181
|
-
)
|
1182
|
-
);
|
1101
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
1183
1102
|
}
|
1184
1103
|
};
|
1185
1104
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
@@ -1208,16 +1127,16 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
1208
1127
|
{
|
1209
1128
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
1210
1129
|
if (hostRef.$queuedListeners$) {
|
1211
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event
|
1130
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
1212
1131
|
hostRef.$queuedListeners$ = void 0;
|
1213
1132
|
}
|
1214
1133
|
}
|
1215
1134
|
{
|
1216
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
1135
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
1217
1136
|
}
|
1218
1137
|
}
|
1219
1138
|
{
|
1220
|
-
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"
|
1139
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
|
1221
1140
|
}
|
1222
1141
|
endSchedule();
|
1223
1142
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
@@ -1285,7 +1204,7 @@ var postUpdateComponent = (hostRef) => {
|
|
1285
1204
|
const instance = hostRef.$lazyInstance$ ;
|
1286
1205
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
1287
1206
|
{
|
1288
|
-
safeCall(instance, "componentDidRender"
|
1207
|
+
safeCall(instance, "componentDidRender");
|
1289
1208
|
}
|
1290
1209
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
1291
1210
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
@@ -1293,7 +1212,7 @@ var postUpdateComponent = (hostRef) => {
|
|
1293
1212
|
addHydratedFlag(elm);
|
1294
1213
|
}
|
1295
1214
|
{
|
1296
|
-
safeCall(instance, "componentDidLoad"
|
1215
|
+
safeCall(instance, "componentDidLoad");
|
1297
1216
|
}
|
1298
1217
|
endPostUpdate();
|
1299
1218
|
{
|
@@ -1320,14 +1239,17 @@ var postUpdateComponent = (hostRef) => {
|
|
1320
1239
|
}
|
1321
1240
|
};
|
1322
1241
|
var appDidLoad = (who) => {
|
1242
|
+
{
|
1243
|
+
addHydratedFlag(doc.documentElement);
|
1244
|
+
}
|
1323
1245
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
1324
1246
|
};
|
1325
|
-
var safeCall = (instance, method, arg
|
1247
|
+
var safeCall = (instance, method, arg) => {
|
1326
1248
|
if (instance && instance[method]) {
|
1327
1249
|
try {
|
1328
1250
|
return instance[method](arg);
|
1329
1251
|
} catch (e) {
|
1330
|
-
consoleError(e
|
1252
|
+
consoleError(e);
|
1331
1253
|
}
|
1332
1254
|
}
|
1333
1255
|
return void 0;
|
@@ -1386,68 +1308,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1386
1308
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
1387
1309
|
members.map(([memberName, [memberFlags]]) => {
|
1388
1310
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
1389
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
1390
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
1391
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
1392
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
1393
|
-
Object.defineProperty(prototype, memberName, {
|
1394
|
-
get() {
|
1395
|
-
{
|
1396
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
1397
|
-
return getValue(this, memberName);
|
1398
|
-
}
|
1399
|
-
const ref = getHostRef(this);
|
1400
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
1401
|
-
if (!instance) return;
|
1402
|
-
return instance[memberName];
|
1403
|
-
}
|
1404
|
-
},
|
1405
|
-
configurable: true,
|
1406
|
-
enumerable: true
|
1407
|
-
});
|
1408
|
-
}
|
1409
1311
|
Object.defineProperty(prototype, memberName, {
|
1312
|
+
get() {
|
1313
|
+
return getValue(this, memberName);
|
1314
|
+
},
|
1410
1315
|
set(newValue) {
|
1411
|
-
|
1412
|
-
|
1413
|
-
|
1414
|
-
|
1415
|
-
newValue = ref.$instanceValues$.get(memberName);
|
1416
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
1417
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
1418
|
-
}
|
1419
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
1420
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
1421
|
-
setValue(this, memberName, newValue, cmpMeta);
|
1422
|
-
return;
|
1423
|
-
}
|
1424
|
-
{
|
1425
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
1426
|
-
setValue(this, memberName, newValue, cmpMeta);
|
1427
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
1428
|
-
ref.$onReadyPromise$.then(() => {
|
1429
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
1430
|
-
ref.$lazyInstance$[memberName] = newValue;
|
1431
|
-
}
|
1432
|
-
});
|
1433
|
-
}
|
1434
|
-
return;
|
1435
|
-
}
|
1436
|
-
const setterSetVal = () => {
|
1437
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
1438
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
1439
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
1440
|
-
}
|
1441
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
1442
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
1443
|
-
};
|
1444
|
-
if (ref.$lazyInstance$) {
|
1445
|
-
setterSetVal();
|
1446
|
-
} else {
|
1447
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
1448
|
-
}
|
1449
|
-
}
|
1450
|
-
}
|
1316
|
+
setValue(this, memberName, newValue, cmpMeta);
|
1317
|
+
},
|
1318
|
+
configurable: true,
|
1319
|
+
enumerable: true
|
1451
1320
|
});
|
1452
1321
|
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
|
1453
1322
|
Object.defineProperty(prototype, memberName, {
|
@@ -1468,11 +1337,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1468
1337
|
plt.jmp(() => {
|
1469
1338
|
var _a2;
|
1470
1339
|
const propName = attrNameToPropName.get(attrName);
|
1471
|
-
if (this.hasOwnProperty(propName)
|
1340
|
+
if (this.hasOwnProperty(propName)) {
|
1472
1341
|
newValue = this[propName];
|
1473
1342
|
delete this[propName];
|
1474
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
1475
|
-
this[propName] == newValue) {
|
1343
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
|
1476
1344
|
return;
|
1477
1345
|
} else if (propName == null) {
|
1478
1346
|
const hostRef = getHostRef(this);
|
@@ -1488,11 +1356,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1488
1356
|
}
|
1489
1357
|
return;
|
1490
1358
|
}
|
1491
|
-
|
1492
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
1493
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
1494
|
-
this[propName] = newValue;
|
1495
|
-
}
|
1359
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
1496
1360
|
});
|
1497
1361
|
};
|
1498
1362
|
Cstr.observedAttributes = Array.from(
|
@@ -1517,7 +1381,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1517
1381
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
1518
1382
|
const bundleId = cmpMeta.$lazyBundleId$;
|
1519
1383
|
if (bundleId) {
|
1520
|
-
const CstrImport = loadModule(cmpMeta
|
1384
|
+
const CstrImport = loadModule(cmpMeta);
|
1521
1385
|
if (CstrImport && "then" in CstrImport) {
|
1522
1386
|
const endLoad = uniqueTime();
|
1523
1387
|
Cstr = await CstrImport;
|
@@ -1542,7 +1406,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1542
1406
|
try {
|
1543
1407
|
new Cstr(hostRef);
|
1544
1408
|
} catch (e) {
|
1545
|
-
consoleError(e
|
1409
|
+
consoleError(e);
|
1546
1410
|
}
|
1547
1411
|
{
|
1548
1412
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
@@ -1577,7 +1441,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1577
1441
|
schedule();
|
1578
1442
|
}
|
1579
1443
|
};
|
1580
|
-
var fireConnectedCallback = (instance
|
1444
|
+
var fireConnectedCallback = (instance) => {
|
1581
1445
|
};
|
1582
1446
|
|
1583
1447
|
// src/runtime/connected-callback.ts
|
@@ -1631,9 +1495,9 @@ var setContentReference = (elm) => {
|
|
1631
1495
|
contentRefElm["s-cn"] = true;
|
1632
1496
|
insertBefore(elm, contentRefElm, elm.firstChild);
|
1633
1497
|
};
|
1634
|
-
var disconnectInstance = (instance
|
1498
|
+
var disconnectInstance = (instance) => {
|
1635
1499
|
{
|
1636
|
-
safeCall(instance, "disconnectedCallback"
|
1500
|
+
safeCall(instance, "disconnectedCallback");
|
1637
1501
|
}
|
1638
1502
|
};
|
1639
1503
|
var disconnectedCallback = async (elm) => {
|
@@ -1646,17 +1510,11 @@ var disconnectedCallback = async (elm) => {
|
|
1646
1510
|
}
|
1647
1511
|
}
|
1648
1512
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
1649
|
-
disconnectInstance(hostRef.$lazyInstance
|
1513
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
1650
1514
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
1651
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance
|
1515
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
1652
1516
|
}
|
1653
1517
|
}
|
1654
|
-
if (rootAppliedStyles.has(elm)) {
|
1655
|
-
rootAppliedStyles.delete(elm);
|
1656
|
-
}
|
1657
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
1658
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
1659
|
-
}
|
1660
1518
|
};
|
1661
1519
|
|
1662
1520
|
// src/runtime/bootstrap-lazy.ts
|
@@ -1738,17 +1596,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1738
1596
|
}
|
1739
1597
|
disconnectedCallback() {
|
1740
1598
|
plt.jmp(() => disconnectedCallback(this));
|
1741
|
-
plt.raf(() => {
|
1742
|
-
var _a3;
|
1743
|
-
const hostRef = getHostRef(this);
|
1744
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
1745
|
-
if (i2 > -1) {
|
1746
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
1747
|
-
}
|
1748
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
1749
|
-
delete hostRef.$vnode$.$elm$;
|
1750
|
-
}
|
1751
|
-
});
|
1752
1599
|
}
|
1753
1600
|
componentOnReady() {
|
1754
1601
|
return getHostRef(this).$onReadyPromise$;
|
@@ -1812,7 +1659,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
1812
1659
|
}
|
1813
1660
|
}
|
1814
1661
|
} catch (e) {
|
1815
|
-
consoleError(e
|
1662
|
+
consoleError(e);
|
1816
1663
|
}
|
1817
1664
|
};
|
1818
1665
|
var getHostListenerTarget = (elm, flags) => {
|