@everymatrix/lottery-ticket-controller 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/cjs/helper-accordion_5.cjs.entry.js +8248 -8502
- package/dist/cjs/{index-e28f68ca.js → index-ce57b34d.js} +173 -72
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/lottery-ticket-controller.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/lottery-ticket-controller/lottery-ticket-controller.js +83 -15
- package/dist/esm/helper-accordion_5.entry.js +8248 -8502
- package/dist/esm/{index-bd95d491.js → index-30728886.js} +173 -72
- package/dist/esm/loader.js +2 -2
- package/dist/esm/lottery-ticket-controller.js +3 -3
- package/dist/lottery-ticket-controller/lottery-ticket-controller.esm.js +1 -1
- package/dist/lottery-ticket-controller/p-44ec1b95.js +2 -0
- package/dist/lottery-ticket-controller/p-6262cd49.entry.js +2727 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-ticket-controller/.stencil/packages/stencil/lottery-ticket-controller/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-ticket-controller/.stencil/packages/stencil/lottery-ticket-controller/stencil.config.dev.d.ts +2 -0
- package/package.json +1 -1
- package/dist/lottery-ticket-controller/p-16bb9142.entry.js +0 -3439
- package/dist/lottery-ticket-controller/p-9e034c46.js +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-ticket-controller/.stencil/packages/stencil/lottery-ticket-controller/stencil.config.d.ts +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-ticket-controller/.stencil/packages/stencil/lottery-ticket-controller/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/lottery-ticket-controller/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/lottery-ticket-controller/.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/lottery-ticket-controller/.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/lottery-ticket-controller/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -21,19 +21,23 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'lottery-ticket-controller';
|
|
24
|
-
const BUILD = /* lottery-ticket-controller */ { 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: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, 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: false, 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: false, watchCallback: true };
|
|
24
|
+
const BUILD = /* lottery-ticket-controller */ { 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: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, 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, modernPropertyDecls: 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: false, 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: false, watchCallback: true };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.26.0 | 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
|
|
34
36
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
35
37
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
36
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
38
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
39
|
+
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
40
|
+
};
|
|
37
41
|
var registerHost = (hostElement, cmpMeta) => {
|
|
38
42
|
const hostRef = {
|
|
39
43
|
$flags$: 0,
|
|
@@ -46,7 +50,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
46
50
|
hostElement["s-p"] = [];
|
|
47
51
|
hostElement["s-rc"] = [];
|
|
48
52
|
}
|
|
49
|
-
|
|
53
|
+
const ref = hostRefs.set(hostElement, hostRef);
|
|
54
|
+
return ref;
|
|
50
55
|
};
|
|
51
56
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
52
57
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -83,16 +88,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
83
88
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
84
89
|
/* webpackMode: "lazy" */
|
|
85
90
|
`./${bundleId}.entry.js${""}`
|
|
86
|
-
)); }).then(
|
|
87
|
-
{
|
|
88
|
-
|
|
91
|
+
)); }).then(
|
|
92
|
+
(importedModule) => {
|
|
93
|
+
{
|
|
94
|
+
cmpModules.set(bundleId, importedModule);
|
|
95
|
+
}
|
|
96
|
+
return importedModule[exportName];
|
|
97
|
+
},
|
|
98
|
+
(e) => {
|
|
99
|
+
consoleError(e, hostRef.$hostElement$);
|
|
89
100
|
}
|
|
90
|
-
|
|
91
|
-
}, consoleError);
|
|
101
|
+
);
|
|
92
102
|
};
|
|
93
103
|
|
|
94
104
|
// src/client/client-style.ts
|
|
95
105
|
var styles = /* @__PURE__ */ new Map();
|
|
106
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
96
107
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
97
108
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
98
109
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -166,12 +177,6 @@ var flush = () => {
|
|
|
166
177
|
};
|
|
167
178
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
168
179
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
169
|
-
|
|
170
|
-
// src/utils/constants.ts
|
|
171
|
-
var EMPTY_OBJ = {};
|
|
172
|
-
|
|
173
|
-
// src/utils/helpers.ts
|
|
174
|
-
var isDef = (v) => v != null;
|
|
175
180
|
var isComplexType = (o) => {
|
|
176
181
|
o = typeof o;
|
|
177
182
|
return o === "object" || o === "function";
|
|
@@ -375,7 +380,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
375
380
|
}
|
|
376
381
|
if (!appliedStyles.has(scopeId2)) {
|
|
377
382
|
{
|
|
378
|
-
styleElm = doc.createElement("style");
|
|
383
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
379
384
|
styleElm.innerHTML = style;
|
|
380
385
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
381
386
|
if (nonce != null) {
|
|
@@ -385,7 +390,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
385
390
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
386
391
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
387
392
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
388
|
-
styleContainerNode.insertBefore(
|
|
393
|
+
styleContainerNode.insertBefore(
|
|
394
|
+
styleElm,
|
|
395
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
396
|
+
);
|
|
389
397
|
} else if ("host" in styleContainerNode) {
|
|
390
398
|
if (supportsConstructableStylesheets) {
|
|
391
399
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -403,7 +411,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
403
411
|
styleContainerNode.append(styleElm);
|
|
404
412
|
}
|
|
405
413
|
}
|
|
406
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */
|
|
414
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
407
415
|
styleContainerNode.insertBefore(styleElm, null);
|
|
408
416
|
}
|
|
409
417
|
}
|
|
@@ -428,23 +436,25 @@ var attachStyles = (hostRef) => {
|
|
|
428
436
|
const scopeId2 = addStyle(
|
|
429
437
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
430
438
|
cmpMeta);
|
|
431
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
439
|
+
if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
|
|
432
440
|
elm["s-sc"] = scopeId2;
|
|
433
441
|
elm.classList.add(scopeId2 + "-h");
|
|
434
442
|
}
|
|
435
443
|
endAttachStyles();
|
|
436
444
|
};
|
|
437
445
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
438
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
446
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
439
447
|
if (oldValue !== newValue) {
|
|
440
448
|
let isProp = isMemberInElement(elm, memberName);
|
|
441
449
|
let ln = memberName.toLowerCase();
|
|
442
450
|
if (memberName === "class") {
|
|
443
451
|
const classList = elm.classList;
|
|
444
452
|
const oldClasses = parseClassList(oldValue);
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
453
|
+
let newClasses = parseClassList(newValue);
|
|
454
|
+
{
|
|
455
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
456
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
457
|
+
}
|
|
448
458
|
} else if (memberName === "style") {
|
|
449
459
|
{
|
|
450
460
|
for (const prop in oldValue) {
|
|
@@ -503,7 +513,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
503
513
|
elm.setAttribute(memberName, n);
|
|
504
514
|
}
|
|
505
515
|
}
|
|
506
|
-
} else {
|
|
516
|
+
} else if (elm[memberName] !== newValue) {
|
|
507
517
|
elm[memberName] = newValue;
|
|
508
518
|
}
|
|
509
519
|
} catch (e) {
|
|
@@ -525,24 +535,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
525
535
|
}
|
|
526
536
|
};
|
|
527
537
|
var parseClassListRegex = /\s/;
|
|
528
|
-
var parseClassList = (value) =>
|
|
538
|
+
var parseClassList = (value) => {
|
|
539
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
|
540
|
+
value = value.baseVal;
|
|
541
|
+
}
|
|
542
|
+
if (!value || typeof value !== "string") {
|
|
543
|
+
return [];
|
|
544
|
+
}
|
|
545
|
+
return value.split(parseClassListRegex);
|
|
546
|
+
};
|
|
529
547
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
530
548
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
531
549
|
|
|
532
550
|
// src/runtime/vdom/update-element.ts
|
|
533
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
551
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
534
552
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
535
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
536
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
553
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
554
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
537
555
|
{
|
|
538
556
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
539
557
|
if (!(memberName in newVnodeAttrs)) {
|
|
540
|
-
setAccessor(
|
|
558
|
+
setAccessor(
|
|
559
|
+
elm,
|
|
560
|
+
memberName,
|
|
561
|
+
oldVnodeAttrs[memberName],
|
|
562
|
+
void 0,
|
|
563
|
+
isSvgMode2,
|
|
564
|
+
newVnode.$flags$);
|
|
541
565
|
}
|
|
542
566
|
}
|
|
543
567
|
}
|
|
544
568
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
545
|
-
setAccessor(
|
|
569
|
+
setAccessor(
|
|
570
|
+
elm,
|
|
571
|
+
memberName,
|
|
572
|
+
oldVnodeAttrs[memberName],
|
|
573
|
+
newVnodeAttrs[memberName],
|
|
574
|
+
isSvgMode2,
|
|
575
|
+
newVnode.$flags$);
|
|
546
576
|
}
|
|
547
577
|
};
|
|
548
578
|
function sortedAttrNames(attrNames) {
|
|
@@ -554,13 +584,10 @@ function sortedAttrNames(attrNames) {
|
|
|
554
584
|
attrNames
|
|
555
585
|
);
|
|
556
586
|
}
|
|
557
|
-
|
|
558
|
-
// src/runtime/vdom/vdom-render.ts
|
|
559
|
-
var scopeId;
|
|
560
587
|
var hostTagName;
|
|
561
588
|
var useNativeShadowDom = false;
|
|
562
589
|
var isSvgMode = false;
|
|
563
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
590
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
564
591
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
565
592
|
let i2 = 0;
|
|
566
593
|
let elm;
|
|
@@ -574,11 +601,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
574
601
|
{
|
|
575
602
|
updateElement(null, newVNode2, isSvgMode);
|
|
576
603
|
}
|
|
577
|
-
const rootNode = elm.getRootNode();
|
|
578
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
579
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
580
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
581
|
-
}
|
|
582
604
|
if (newVNode2.$children$) {
|
|
583
605
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
584
606
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -708,6 +730,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
708
730
|
if (!isInitialRender) {
|
|
709
731
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
710
732
|
}
|
|
733
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
734
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
735
|
+
}
|
|
711
736
|
return true;
|
|
712
737
|
}
|
|
713
738
|
return false;
|
|
@@ -748,8 +773,9 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
748
773
|
}
|
|
749
774
|
};
|
|
750
775
|
var insertBefore = (parent, newNode, reference) => {
|
|
751
|
-
|
|
752
|
-
|
|
776
|
+
{
|
|
777
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
778
|
+
}
|
|
753
779
|
};
|
|
754
780
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
755
781
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -774,17 +800,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
774
800
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
775
801
|
hostRef.$vnode$ = rootVnode;
|
|
776
802
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
777
|
-
|
|
778
|
-
scopeId = hostElm["s-sc"];
|
|
779
|
-
}
|
|
780
|
-
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
803
|
+
useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
781
804
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
782
805
|
};
|
|
783
806
|
|
|
784
807
|
// src/runtime/update-component.ts
|
|
785
808
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
786
809
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
787
|
-
ancestorComponent["s-p"].push(
|
|
810
|
+
const index = ancestorComponent["s-p"].push(
|
|
811
|
+
new Promise(
|
|
812
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
813
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
814
|
+
r();
|
|
815
|
+
}
|
|
816
|
+
)
|
|
817
|
+
);
|
|
788
818
|
}
|
|
789
819
|
};
|
|
790
820
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -813,12 +843,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
813
843
|
{
|
|
814
844
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
815
845
|
if (hostRef.$queuedListeners$) {
|
|
816
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
846
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
817
847
|
hostRef.$queuedListeners$ = void 0;
|
|
818
848
|
}
|
|
819
849
|
}
|
|
820
850
|
{
|
|
821
|
-
maybePromise = safeCall(instance, "componentWillLoad");
|
|
851
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
822
852
|
}
|
|
823
853
|
}
|
|
824
854
|
endSchedule();
|
|
@@ -887,7 +917,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
887
917
|
const instance = hostRef.$lazyInstance$ ;
|
|
888
918
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
889
919
|
{
|
|
890
|
-
safeCall(instance, "componentDidRender");
|
|
920
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
891
921
|
}
|
|
892
922
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
893
923
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -916,17 +946,14 @@ var postUpdateComponent = (hostRef) => {
|
|
|
916
946
|
}
|
|
917
947
|
};
|
|
918
948
|
var appDidLoad = (who) => {
|
|
919
|
-
{
|
|
920
|
-
addHydratedFlag(doc.documentElement);
|
|
921
|
-
}
|
|
922
949
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
923
950
|
};
|
|
924
|
-
var safeCall = (instance, method, arg) => {
|
|
951
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
925
952
|
if (instance && instance[method]) {
|
|
926
953
|
try {
|
|
927
954
|
return instance[method](arg);
|
|
928
955
|
} catch (e) {
|
|
929
|
-
consoleError(e);
|
|
956
|
+
consoleError(e, elm);
|
|
930
957
|
}
|
|
931
958
|
}
|
|
932
959
|
return void 0;
|
|
@@ -985,15 +1012,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
985
1012
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
986
1013
|
members.map(([memberName, [memberFlags]]) => {
|
|
987
1014
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1015
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
1016
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1017
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1018
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
1019
|
+
Object.defineProperty(prototype, memberName, {
|
|
1020
|
+
get() {
|
|
1021
|
+
{
|
|
1022
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
1023
|
+
return getValue(this, memberName);
|
|
1024
|
+
}
|
|
1025
|
+
const ref = getHostRef(this);
|
|
1026
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
1027
|
+
if (!instance) return;
|
|
1028
|
+
return instance[memberName];
|
|
1029
|
+
}
|
|
1030
|
+
},
|
|
1031
|
+
configurable: true,
|
|
1032
|
+
enumerable: true
|
|
1033
|
+
});
|
|
1034
|
+
}
|
|
988
1035
|
Object.defineProperty(prototype, memberName, {
|
|
989
|
-
get() {
|
|
990
|
-
return getValue(this, memberName);
|
|
991
|
-
},
|
|
992
1036
|
set(newValue) {
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
1037
|
+
const ref = getHostRef(this);
|
|
1038
|
+
if (origSetter) {
|
|
1039
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1040
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
1041
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
1042
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1043
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1044
|
+
}
|
|
1045
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1046
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1047
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1048
|
+
return;
|
|
1049
|
+
}
|
|
1050
|
+
{
|
|
1051
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1052
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1053
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1054
|
+
ref.$onReadyPromise$.then(() => {
|
|
1055
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1056
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
1057
|
+
}
|
|
1058
|
+
});
|
|
1059
|
+
}
|
|
1060
|
+
return;
|
|
1061
|
+
}
|
|
1062
|
+
const setterSetVal = () => {
|
|
1063
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
1064
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1065
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1066
|
+
}
|
|
1067
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1068
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1069
|
+
};
|
|
1070
|
+
if (ref.$lazyInstance$) {
|
|
1071
|
+
setterSetVal();
|
|
1072
|
+
} else {
|
|
1073
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
997
1077
|
});
|
|
998
1078
|
}
|
|
999
1079
|
});
|
|
@@ -1003,7 +1083,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1003
1083
|
plt.jmp(() => {
|
|
1004
1084
|
var _a2;
|
|
1005
1085
|
const propName = attrNameToPropName.get(attrName);
|
|
1006
|
-
if (this.hasOwnProperty(propName)) {
|
|
1086
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
1007
1087
|
newValue = this[propName];
|
|
1008
1088
|
delete this[propName];
|
|
1009
1089
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1023,7 +1103,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1023
1103
|
}
|
|
1024
1104
|
return;
|
|
1025
1105
|
}
|
|
1026
|
-
|
|
1106
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1107
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1108
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1109
|
+
this[propName] = newValue;
|
|
1110
|
+
}
|
|
1027
1111
|
});
|
|
1028
1112
|
};
|
|
1029
1113
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1052,7 +1136,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1052
1136
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1053
1137
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1054
1138
|
if (bundleId) {
|
|
1055
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1139
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1056
1140
|
if (CstrImport && "then" in CstrImport) {
|
|
1057
1141
|
const endLoad = uniqueTime();
|
|
1058
1142
|
Cstr = await CstrImport;
|
|
@@ -1077,7 +1161,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1077
1161
|
try {
|
|
1078
1162
|
new Cstr(hostRef);
|
|
1079
1163
|
} catch (e) {
|
|
1080
|
-
consoleError(e);
|
|
1164
|
+
consoleError(e, elm);
|
|
1081
1165
|
}
|
|
1082
1166
|
{
|
|
1083
1167
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1086,7 +1170,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1086
1170
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1087
1171
|
}
|
|
1088
1172
|
endNewInstance();
|
|
1089
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1173
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1090
1174
|
} else {
|
|
1091
1175
|
Cstr = elm.constructor;
|
|
1092
1176
|
const cmpTag = elm.localName;
|
|
@@ -1113,9 +1197,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1113
1197
|
schedule();
|
|
1114
1198
|
}
|
|
1115
1199
|
};
|
|
1116
|
-
var fireConnectedCallback = (instance) => {
|
|
1200
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1117
1201
|
{
|
|
1118
|
-
safeCall(instance, "connectedCallback");
|
|
1202
|
+
safeCall(instance, "connectedCallback", void 0, elm);
|
|
1119
1203
|
}
|
|
1120
1204
|
};
|
|
1121
1205
|
|
|
@@ -1151,15 +1235,15 @@ var connectedCallback = (elm) => {
|
|
|
1151
1235
|
} else {
|
|
1152
1236
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1153
1237
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1154
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1238
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1155
1239
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1156
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance
|
|
1240
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
1157
1241
|
}
|
|
1158
1242
|
}
|
|
1159
1243
|
endConnected();
|
|
1160
1244
|
}
|
|
1161
1245
|
};
|
|
1162
|
-
var disconnectInstance = (instance) => {
|
|
1246
|
+
var disconnectInstance = (instance, elm) => {
|
|
1163
1247
|
};
|
|
1164
1248
|
var disconnectedCallback = async (elm) => {
|
|
1165
1249
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1174,6 +1258,12 @@ var disconnectedCallback = async (elm) => {
|
|
|
1174
1258
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1175
1259
|
}
|
|
1176
1260
|
}
|
|
1261
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1262
|
+
rootAppliedStyles.delete(elm);
|
|
1263
|
+
}
|
|
1264
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1265
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1266
|
+
}
|
|
1177
1267
|
};
|
|
1178
1268
|
|
|
1179
1269
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1258,6 +1348,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1258
1348
|
}
|
|
1259
1349
|
disconnectedCallback() {
|
|
1260
1350
|
plt.jmp(() => disconnectedCallback(this));
|
|
1351
|
+
plt.raf(() => {
|
|
1352
|
+
var _a3;
|
|
1353
|
+
const hostRef = getHostRef(this);
|
|
1354
|
+
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1355
|
+
if (i2 > -1) {
|
|
1356
|
+
deferredConnectedCallbacks.splice(i2, 1);
|
|
1357
|
+
}
|
|
1358
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1359
|
+
delete hostRef.$vnode$.$elm$;
|
|
1360
|
+
}
|
|
1361
|
+
});
|
|
1261
1362
|
}
|
|
1262
1363
|
componentOnReady() {
|
|
1263
1364
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1321,7 +1422,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1321
1422
|
}
|
|
1322
1423
|
}
|
|
1323
1424
|
} catch (e) {
|
|
1324
|
-
consoleError(e);
|
|
1425
|
+
consoleError(e, hostRef.$hostElement$);
|
|
1325
1426
|
}
|
|
1326
1427
|
};
|
|
1327
1428
|
var getHostListenerTarget = (elm, flags) => {
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-ce57b34d.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-ce57b34d.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('lottery-ticket-controller.cjs.js', document.baseURI).href));
|