@everymatrix/casino-jackpot-winner 1.55.0 → 1.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/casino-jackpot-winner/casino-jackpot-winner.esm.js +1 -1
- package/dist/casino-jackpot-winner/p-87493cd4.entry.js +1 -0
- package/dist/casino-jackpot-winner/p-96cbf2e8.js +2 -0
- package/dist/cjs/casino-jackpot-winner.cjs.entry.js +207 -26
- package/dist/cjs/casino-jackpot-winner.cjs.js +2 -2
- package/dist/cjs/{index-ebf58fc5.js → index-a6322576.js} +153 -62
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/casino-jackpot-winner/casino-jackpot-winner.js +43 -3
- package/dist/esm/casino-jackpot-winner.entry.js +207 -26
- package/dist/esm/casino-jackpot-winner.js +3 -3
- package/dist/esm/{index-e8ade48c.js → index-8bc5c2e9.js} +153 -62
- package/dist/esm/loader.js +2 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-jackpot-winner/.stencil/packages/stencil/casino-jackpot-winner/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-jackpot-winner/.stencil/packages/stencil/casino-jackpot-winner/stencil.config.dev.d.ts +2 -0
- package/package.json +1 -1
- package/dist/casino-jackpot-winner/p-0a14a6b5.entry.js +0 -1
- package/dist/casino-jackpot-winner/p-caf0a01d.js +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-jackpot-winner/.stencil/packages/stencil/casino-jackpot-winner/stencil.config.d.ts +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-jackpot-winner/.stencil/packages/stencil/casino-jackpot-winner/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-jackpot-winner/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-jackpot-winner/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-jackpot-winner/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-jackpot-winner/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
const NAMESPACE = 'casino-jackpot-winner';
|
|
2
|
-
const BUILD = /* casino-jackpot-winner */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: true, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, 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: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: false, vdomFunctional: true, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: true };
|
|
2
|
+
const BUILD = /* casino-jackpot-winner */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: true, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, 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: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: false, vdomFunctional: true, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
9
9
|
for (var name in all)
|
|
10
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
11
|
};
|
|
12
|
+
|
|
13
|
+
// src/client/client-host-ref.ts
|
|
12
14
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
13
15
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
14
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
16
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
17
|
+
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
18
|
+
};
|
|
15
19
|
var registerHost = (hostElement, cmpMeta) => {
|
|
16
20
|
const hostRef = {
|
|
17
21
|
$flags$: 0,
|
|
@@ -24,7 +28,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
24
28
|
hostElement["s-p"] = [];
|
|
25
29
|
hostElement["s-rc"] = [];
|
|
26
30
|
}
|
|
27
|
-
|
|
31
|
+
const ref = hostRefs.set(hostElement, hostRef);
|
|
32
|
+
return ref;
|
|
28
33
|
};
|
|
29
34
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
30
35
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -61,16 +66,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
61
66
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
62
67
|
/* webpackMode: "lazy" */
|
|
63
68
|
`./${bundleId}.entry.js${""}`
|
|
64
|
-
).then(
|
|
65
|
-
{
|
|
66
|
-
|
|
69
|
+
).then(
|
|
70
|
+
(importedModule) => {
|
|
71
|
+
{
|
|
72
|
+
cmpModules.set(bundleId, importedModule);
|
|
73
|
+
}
|
|
74
|
+
return importedModule[exportName];
|
|
75
|
+
},
|
|
76
|
+
(e) => {
|
|
77
|
+
consoleError(e, hostRef.$hostElement$);
|
|
67
78
|
}
|
|
68
|
-
|
|
69
|
-
}, consoleError);
|
|
79
|
+
);
|
|
70
80
|
};
|
|
71
81
|
|
|
72
82
|
// src/client/client-style.ts
|
|
73
83
|
var styles = /* @__PURE__ */ new Map();
|
|
84
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
74
85
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
75
86
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
76
87
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -128,12 +139,6 @@ var flush = () => {
|
|
|
128
139
|
};
|
|
129
140
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
130
141
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
131
|
-
|
|
132
|
-
// src/utils/constants.ts
|
|
133
|
-
var EMPTY_OBJ = {};
|
|
134
|
-
|
|
135
|
-
// src/utils/helpers.ts
|
|
136
|
-
var isDef = (v) => v != null;
|
|
137
142
|
var isComplexType = (o) => {
|
|
138
143
|
o = typeof o;
|
|
139
144
|
return o === "object" || o === "function";
|
|
@@ -347,7 +352,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
347
352
|
}
|
|
348
353
|
if (!appliedStyles.has(scopeId2)) {
|
|
349
354
|
{
|
|
350
|
-
styleElm = doc.createElement("style");
|
|
355
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
351
356
|
styleElm.innerHTML = style;
|
|
352
357
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
353
358
|
if (nonce != null) {
|
|
@@ -357,7 +362,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
357
362
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
358
363
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
359
364
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
360
|
-
styleContainerNode.insertBefore(
|
|
365
|
+
styleContainerNode.insertBefore(
|
|
366
|
+
styleElm,
|
|
367
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
368
|
+
);
|
|
361
369
|
} else if ("host" in styleContainerNode) {
|
|
362
370
|
if (supportsConstructableStylesheets) {
|
|
363
371
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -375,7 +383,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
375
383
|
styleContainerNode.append(styleElm);
|
|
376
384
|
}
|
|
377
385
|
}
|
|
378
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */
|
|
386
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
379
387
|
styleContainerNode.insertBefore(styleElm, null);
|
|
380
388
|
}
|
|
381
389
|
}
|
|
@@ -400,14 +408,14 @@ var attachStyles = (hostRef) => {
|
|
|
400
408
|
const scopeId2 = addStyle(
|
|
401
409
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
402
410
|
cmpMeta);
|
|
403
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
411
|
+
if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
|
|
404
412
|
elm["s-sc"] = scopeId2;
|
|
405
413
|
elm.classList.add(scopeId2 + "-h");
|
|
406
414
|
}
|
|
407
415
|
endAttachStyles();
|
|
408
416
|
};
|
|
409
417
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
410
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
418
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
411
419
|
if (oldValue !== newValue) {
|
|
412
420
|
let isProp = isMemberInElement(elm, memberName);
|
|
413
421
|
memberName.toLowerCase();
|
|
@@ -426,7 +434,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
426
434
|
elm.setAttribute(memberName, n);
|
|
427
435
|
}
|
|
428
436
|
}
|
|
429
|
-
} else {
|
|
437
|
+
} else if (elm[memberName] !== newValue) {
|
|
430
438
|
elm[memberName] = newValue;
|
|
431
439
|
}
|
|
432
440
|
} catch (e) {
|
|
@@ -449,19 +457,31 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
449
457
|
};
|
|
450
458
|
|
|
451
459
|
// src/runtime/vdom/update-element.ts
|
|
452
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
460
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
453
461
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
454
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
455
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
462
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
463
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
456
464
|
{
|
|
457
465
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
458
466
|
if (!(memberName in newVnodeAttrs)) {
|
|
459
|
-
setAccessor(
|
|
467
|
+
setAccessor(
|
|
468
|
+
elm,
|
|
469
|
+
memberName,
|
|
470
|
+
oldVnodeAttrs[memberName],
|
|
471
|
+
void 0,
|
|
472
|
+
isSvgMode2,
|
|
473
|
+
newVnode.$flags$);
|
|
460
474
|
}
|
|
461
475
|
}
|
|
462
476
|
}
|
|
463
477
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
464
|
-
setAccessor(
|
|
478
|
+
setAccessor(
|
|
479
|
+
elm,
|
|
480
|
+
memberName,
|
|
481
|
+
oldVnodeAttrs[memberName],
|
|
482
|
+
newVnodeAttrs[memberName],
|
|
483
|
+
isSvgMode2,
|
|
484
|
+
newVnode.$flags$);
|
|
465
485
|
}
|
|
466
486
|
};
|
|
467
487
|
function sortedAttrNames(attrNames) {
|
|
@@ -473,13 +493,10 @@ function sortedAttrNames(attrNames) {
|
|
|
473
493
|
attrNames
|
|
474
494
|
);
|
|
475
495
|
}
|
|
476
|
-
|
|
477
|
-
// src/runtime/vdom/vdom-render.ts
|
|
478
|
-
var scopeId;
|
|
479
496
|
var hostTagName;
|
|
480
497
|
var useNativeShadowDom = false;
|
|
481
498
|
var isSvgMode = false;
|
|
482
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
499
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
483
500
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
484
501
|
let i2 = 0;
|
|
485
502
|
let elm;
|
|
@@ -491,11 +508,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
491
508
|
{
|
|
492
509
|
updateElement(null, newVNode2, isSvgMode);
|
|
493
510
|
}
|
|
494
|
-
const rootNode = elm.getRootNode();
|
|
495
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
496
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
497
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
498
|
-
}
|
|
499
511
|
if (newVNode2.$children$) {
|
|
500
512
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
501
513
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -624,6 +636,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
624
636
|
if (!isInitialRender) {
|
|
625
637
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
626
638
|
}
|
|
639
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
640
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
641
|
+
}
|
|
627
642
|
return true;
|
|
628
643
|
}
|
|
629
644
|
return false;
|
|
@@ -651,8 +666,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
651
666
|
}
|
|
652
667
|
};
|
|
653
668
|
var insertBefore = (parent, newNode, reference) => {
|
|
654
|
-
|
|
655
|
-
|
|
669
|
+
{
|
|
670
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
671
|
+
}
|
|
656
672
|
};
|
|
657
673
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
658
674
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -671,17 +687,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
671
687
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
672
688
|
hostRef.$vnode$ = rootVnode;
|
|
673
689
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
674
|
-
|
|
675
|
-
scopeId = hostElm["s-sc"];
|
|
676
|
-
}
|
|
677
|
-
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
690
|
+
useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
678
691
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
679
692
|
};
|
|
680
693
|
|
|
681
694
|
// src/runtime/update-component.ts
|
|
682
695
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
683
696
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
684
|
-
ancestorComponent["s-p"].push(
|
|
697
|
+
const index = ancestorComponent["s-p"].push(
|
|
698
|
+
new Promise(
|
|
699
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
700
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
701
|
+
r();
|
|
702
|
+
}
|
|
703
|
+
)
|
|
704
|
+
);
|
|
685
705
|
}
|
|
686
706
|
};
|
|
687
707
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -708,7 +728,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
708
728
|
let maybePromise;
|
|
709
729
|
if (isInitialLoad) {
|
|
710
730
|
{
|
|
711
|
-
maybePromise = safeCall(instance, "componentWillLoad");
|
|
731
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
712
732
|
}
|
|
713
733
|
}
|
|
714
734
|
endSchedule();
|
|
@@ -782,7 +802,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
782
802
|
addHydratedFlag(elm);
|
|
783
803
|
}
|
|
784
804
|
{
|
|
785
|
-
safeCall(instance, "componentDidLoad");
|
|
805
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
786
806
|
}
|
|
787
807
|
endPostUpdate();
|
|
788
808
|
{
|
|
@@ -806,17 +826,14 @@ var postUpdateComponent = (hostRef) => {
|
|
|
806
826
|
}
|
|
807
827
|
};
|
|
808
828
|
var appDidLoad = (who) => {
|
|
809
|
-
{
|
|
810
|
-
addHydratedFlag(doc.documentElement);
|
|
811
|
-
}
|
|
812
829
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
813
830
|
};
|
|
814
|
-
var safeCall = (instance, method, arg) => {
|
|
831
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
815
832
|
if (instance && instance[method]) {
|
|
816
833
|
try {
|
|
817
834
|
return instance[method](arg);
|
|
818
835
|
} catch (e) {
|
|
819
|
-
consoleError(e);
|
|
836
|
+
consoleError(e, elm);
|
|
820
837
|
}
|
|
821
838
|
}
|
|
822
839
|
return void 0;
|
|
@@ -880,15 +897,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
880
897
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
881
898
|
members.map(([memberName, [memberFlags]]) => {
|
|
882
899
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
900
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
901
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
902
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
903
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
904
|
+
Object.defineProperty(prototype, memberName, {
|
|
905
|
+
get() {
|
|
906
|
+
{
|
|
907
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
908
|
+
return getValue(this, memberName);
|
|
909
|
+
}
|
|
910
|
+
const ref = getHostRef(this);
|
|
911
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
912
|
+
if (!instance) return;
|
|
913
|
+
return instance[memberName];
|
|
914
|
+
}
|
|
915
|
+
},
|
|
916
|
+
configurable: true,
|
|
917
|
+
enumerable: true
|
|
918
|
+
});
|
|
919
|
+
}
|
|
883
920
|
Object.defineProperty(prototype, memberName, {
|
|
884
|
-
get() {
|
|
885
|
-
return getValue(this, memberName);
|
|
886
|
-
},
|
|
887
921
|
set(newValue) {
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
922
|
+
const ref = getHostRef(this);
|
|
923
|
+
if (origSetter) {
|
|
924
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
925
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
926
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
927
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
928
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
929
|
+
}
|
|
930
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
931
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
932
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
933
|
+
return;
|
|
934
|
+
}
|
|
935
|
+
{
|
|
936
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
937
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
938
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
939
|
+
ref.$onReadyPromise$.then(() => {
|
|
940
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
941
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
942
|
+
}
|
|
943
|
+
});
|
|
944
|
+
}
|
|
945
|
+
return;
|
|
946
|
+
}
|
|
947
|
+
const setterSetVal = () => {
|
|
948
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
949
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
950
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
951
|
+
}
|
|
952
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
953
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
954
|
+
};
|
|
955
|
+
if (ref.$lazyInstance$) {
|
|
956
|
+
setterSetVal();
|
|
957
|
+
} else {
|
|
958
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
}
|
|
892
962
|
});
|
|
893
963
|
}
|
|
894
964
|
});
|
|
@@ -898,7 +968,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
898
968
|
plt.jmp(() => {
|
|
899
969
|
var _a2;
|
|
900
970
|
const propName = attrNameToPropName.get(attrName);
|
|
901
|
-
if (this.hasOwnProperty(propName)) {
|
|
971
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
902
972
|
newValue = this[propName];
|
|
903
973
|
delete this[propName];
|
|
904
974
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -918,7 +988,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
918
988
|
}
|
|
919
989
|
return;
|
|
920
990
|
}
|
|
921
|
-
|
|
991
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
992
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
993
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
994
|
+
this[propName] = newValue;
|
|
995
|
+
}
|
|
922
996
|
});
|
|
923
997
|
};
|
|
924
998
|
Cstr.observedAttributes = Array.from(
|
|
@@ -943,7 +1017,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
943
1017
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
944
1018
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
945
1019
|
if (bundleId) {
|
|
946
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1020
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
947
1021
|
if (CstrImport && "then" in CstrImport) {
|
|
948
1022
|
const endLoad = uniqueTime();
|
|
949
1023
|
Cstr = await CstrImport;
|
|
@@ -968,7 +1042,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
968
1042
|
try {
|
|
969
1043
|
new Cstr(hostRef);
|
|
970
1044
|
} catch (e) {
|
|
971
|
-
consoleError(e);
|
|
1045
|
+
consoleError(e, elm);
|
|
972
1046
|
}
|
|
973
1047
|
{
|
|
974
1048
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1003,7 +1077,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1003
1077
|
schedule();
|
|
1004
1078
|
}
|
|
1005
1079
|
};
|
|
1006
|
-
var fireConnectedCallback = (instance) => {
|
|
1080
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1007
1081
|
};
|
|
1008
1082
|
|
|
1009
1083
|
// src/runtime/connected-callback.ts
|
|
@@ -1043,7 +1117,7 @@ var connectedCallback = (elm) => {
|
|
|
1043
1117
|
endConnected();
|
|
1044
1118
|
}
|
|
1045
1119
|
};
|
|
1046
|
-
var disconnectInstance = (instance) => {
|
|
1120
|
+
var disconnectInstance = (instance, elm) => {
|
|
1047
1121
|
};
|
|
1048
1122
|
var disconnectedCallback = async (elm) => {
|
|
1049
1123
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1052,6 +1126,12 @@ var disconnectedCallback = async (elm) => {
|
|
|
1052
1126
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1053
1127
|
}
|
|
1054
1128
|
}
|
|
1129
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1130
|
+
rootAppliedStyles.delete(elm);
|
|
1131
|
+
}
|
|
1132
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1133
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1134
|
+
}
|
|
1055
1135
|
};
|
|
1056
1136
|
|
|
1057
1137
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1129,6 +1209,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1129
1209
|
}
|
|
1130
1210
|
disconnectedCallback() {
|
|
1131
1211
|
plt.jmp(() => disconnectedCallback(this));
|
|
1212
|
+
plt.raf(() => {
|
|
1213
|
+
var _a3;
|
|
1214
|
+
const hostRef = getHostRef(this);
|
|
1215
|
+
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1216
|
+
if (i2 > -1) {
|
|
1217
|
+
deferredConnectedCallbacks.splice(i2, 1);
|
|
1218
|
+
}
|
|
1219
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1220
|
+
delete hostRef.$vnode$.$elm$;
|
|
1221
|
+
}
|
|
1222
|
+
});
|
|
1132
1223
|
}
|
|
1133
1224
|
componentOnReady() {
|
|
1134
1225
|
return getHostRef(this).$onReadyPromise$;
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-8bc5c2e9.js';
|
|
2
|
+
export { s as setNonce } from './index-8bc5c2e9.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|