@everymatrix/lottery-grid 1.52.6 → 1.53.10
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/{index-8b26cfcb.js → index-da5ca73b.js} +166 -71
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/lottery-bullet_2.cjs.entry.js +170 -62
- package/dist/cjs/lottery-grid.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/lottery-grid/lottery-grid.js +304 -56
- package/dist/collection/utils/locale.utils.js +5 -5
- package/dist/esm/{index-610c64ca.js → index-7b1959d3.js} +166 -71
- package/dist/esm/loader.js +3 -3
- package/dist/esm/lottery-bullet_2.entry.js +170 -62
- package/dist/esm/lottery-grid.js +4 -4
- package/dist/lottery-grid/lottery-grid.esm.js +1 -1
- package/dist/lottery-grid/p-3502867c.js +2 -0
- package/dist/lottery-grid/p-c5f385e4.entry.js +1 -0
- package/dist/types/components/lottery-grid/lottery-grid.d.ts +35 -0
- package/dist/types/components/lottery-grid/lottery-grid.types.d.ts +1 -0
- package/dist/types/components.d.ts +53 -0
- package/package.json +1 -1
- package/dist/lottery-grid/p-95806832.entry.js +0 -1
- package/dist/lottery-grid/p-a2add9a5.js +0 -2
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
const NAMESPACE = 'lottery-grid';
|
|
2
|
-
const BUILD = /* lottery-grid */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, 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: 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: true, propMutable: false, propNumber: true, propString: true, reflect: true, 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: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
|
|
2
|
+
const BUILD = /* lottery-grid */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, 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: 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: true, propMutable: false, propNumber: true, propString: true, reflect: true, 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: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.25.1 | 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 : {};
|
|
@@ -144,12 +155,6 @@ var flush = () => {
|
|
|
144
155
|
};
|
|
145
156
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
146
157
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
147
|
-
|
|
148
|
-
// src/utils/constants.ts
|
|
149
|
-
var EMPTY_OBJ = {};
|
|
150
|
-
|
|
151
|
-
// src/utils/helpers.ts
|
|
152
|
-
var isDef = (v) => v != null;
|
|
153
158
|
var isComplexType = (o) => {
|
|
154
159
|
o = typeof o;
|
|
155
160
|
return o === "object" || o === "function";
|
|
@@ -353,7 +358,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
353
358
|
}
|
|
354
359
|
if (!appliedStyles.has(scopeId2)) {
|
|
355
360
|
{
|
|
356
|
-
styleElm = doc.createElement("style");
|
|
361
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
357
362
|
styleElm.innerHTML = style;
|
|
358
363
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
359
364
|
if (nonce != null) {
|
|
@@ -363,7 +368,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
363
368
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
364
369
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
365
370
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
366
|
-
styleContainerNode.insertBefore(
|
|
371
|
+
styleContainerNode.insertBefore(
|
|
372
|
+
styleElm,
|
|
373
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
374
|
+
);
|
|
367
375
|
} else if ("host" in styleContainerNode) {
|
|
368
376
|
if (supportsConstructableStylesheets) {
|
|
369
377
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -413,16 +421,18 @@ var attachStyles = (hostRef) => {
|
|
|
413
421
|
endAttachStyles();
|
|
414
422
|
};
|
|
415
423
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
416
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
424
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
417
425
|
if (oldValue !== newValue) {
|
|
418
426
|
let isProp = isMemberInElement(elm, memberName);
|
|
419
427
|
let ln = memberName.toLowerCase();
|
|
420
428
|
if (memberName === "class") {
|
|
421
429
|
const classList = elm.classList;
|
|
422
430
|
const oldClasses = parseClassList(oldValue);
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
431
|
+
let newClasses = parseClassList(newValue);
|
|
432
|
+
{
|
|
433
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
434
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
435
|
+
}
|
|
426
436
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
427
437
|
if (newValue) {
|
|
428
438
|
newValue(elm);
|
|
@@ -460,7 +470,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
460
470
|
elm.setAttribute(memberName, n);
|
|
461
471
|
}
|
|
462
472
|
}
|
|
463
|
-
} else {
|
|
473
|
+
} else if (elm[memberName] !== newValue) {
|
|
464
474
|
elm[memberName] = newValue;
|
|
465
475
|
}
|
|
466
476
|
} catch (e) {
|
|
@@ -482,24 +492,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
482
492
|
}
|
|
483
493
|
};
|
|
484
494
|
var parseClassListRegex = /\s/;
|
|
485
|
-
var parseClassList = (value) =>
|
|
495
|
+
var parseClassList = (value) => {
|
|
496
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
|
497
|
+
value = value.baseVal;
|
|
498
|
+
}
|
|
499
|
+
if (!value || typeof value !== "string") {
|
|
500
|
+
return [];
|
|
501
|
+
}
|
|
502
|
+
return value.split(parseClassListRegex);
|
|
503
|
+
};
|
|
486
504
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
487
505
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
488
506
|
|
|
489
507
|
// src/runtime/vdom/update-element.ts
|
|
490
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
508
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
491
509
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
492
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
493
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
510
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
511
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
494
512
|
{
|
|
495
513
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
496
514
|
if (!(memberName in newVnodeAttrs)) {
|
|
497
|
-
setAccessor(
|
|
515
|
+
setAccessor(
|
|
516
|
+
elm,
|
|
517
|
+
memberName,
|
|
518
|
+
oldVnodeAttrs[memberName],
|
|
519
|
+
void 0,
|
|
520
|
+
isSvgMode2,
|
|
521
|
+
newVnode.$flags$);
|
|
498
522
|
}
|
|
499
523
|
}
|
|
500
524
|
}
|
|
501
525
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
502
|
-
setAccessor(
|
|
526
|
+
setAccessor(
|
|
527
|
+
elm,
|
|
528
|
+
memberName,
|
|
529
|
+
oldVnodeAttrs[memberName],
|
|
530
|
+
newVnodeAttrs[memberName],
|
|
531
|
+
isSvgMode2,
|
|
532
|
+
newVnode.$flags$);
|
|
503
533
|
}
|
|
504
534
|
};
|
|
505
535
|
function sortedAttrNames(attrNames) {
|
|
@@ -511,13 +541,10 @@ function sortedAttrNames(attrNames) {
|
|
|
511
541
|
attrNames
|
|
512
542
|
);
|
|
513
543
|
}
|
|
514
|
-
|
|
515
|
-
// src/runtime/vdom/vdom-render.ts
|
|
516
|
-
var scopeId;
|
|
517
544
|
var hostTagName;
|
|
518
545
|
var useNativeShadowDom = false;
|
|
519
546
|
var isSvgMode = false;
|
|
520
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
547
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
521
548
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
522
549
|
let i2 = 0;
|
|
523
550
|
let elm;
|
|
@@ -531,11 +558,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
531
558
|
{
|
|
532
559
|
updateElement(null, newVNode2, isSvgMode);
|
|
533
560
|
}
|
|
534
|
-
const rootNode = elm.getRootNode();
|
|
535
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
536
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
537
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
538
|
-
}
|
|
539
561
|
if (newVNode2.$children$) {
|
|
540
562
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
541
563
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -665,6 +687,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
665
687
|
if (!isInitialRender) {
|
|
666
688
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
667
689
|
}
|
|
690
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
691
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
692
|
+
}
|
|
668
693
|
return true;
|
|
669
694
|
}
|
|
670
695
|
return false;
|
|
@@ -704,8 +729,9 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
704
729
|
}
|
|
705
730
|
};
|
|
706
731
|
var insertBefore = (parent, newNode, reference) => {
|
|
707
|
-
|
|
708
|
-
|
|
732
|
+
{
|
|
733
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
734
|
+
}
|
|
709
735
|
};
|
|
710
736
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
711
737
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -730,9 +756,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
730
756
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
731
757
|
hostRef.$vnode$ = rootVnode;
|
|
732
758
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
733
|
-
{
|
|
734
|
-
scopeId = hostElm["s-sc"];
|
|
735
|
-
}
|
|
736
759
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
737
760
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
738
761
|
};
|
|
@@ -740,7 +763,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
740
763
|
// src/runtime/update-component.ts
|
|
741
764
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
742
765
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
743
|
-
ancestorComponent["s-p"].push(
|
|
766
|
+
const index = ancestorComponent["s-p"].push(
|
|
767
|
+
new Promise(
|
|
768
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
769
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
770
|
+
r();
|
|
771
|
+
}
|
|
772
|
+
)
|
|
773
|
+
);
|
|
744
774
|
}
|
|
745
775
|
};
|
|
746
776
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -769,7 +799,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
769
799
|
{
|
|
770
800
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
771
801
|
if (hostRef.$queuedListeners$) {
|
|
772
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
802
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
773
803
|
hostRef.$queuedListeners$ = void 0;
|
|
774
804
|
}
|
|
775
805
|
}
|
|
@@ -840,7 +870,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
840
870
|
const instance = hostRef.$lazyInstance$ ;
|
|
841
871
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
842
872
|
{
|
|
843
|
-
safeCall(instance, "componentDidRender");
|
|
873
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
844
874
|
}
|
|
845
875
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
846
876
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -874,12 +904,12 @@ var appDidLoad = (who) => {
|
|
|
874
904
|
}
|
|
875
905
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
876
906
|
};
|
|
877
|
-
var safeCall = (instance, method, arg) => {
|
|
907
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
878
908
|
if (instance && instance[method]) {
|
|
879
909
|
try {
|
|
880
910
|
return instance[method](arg);
|
|
881
911
|
} catch (e) {
|
|
882
|
-
consoleError(e);
|
|
912
|
+
consoleError(e, elm);
|
|
883
913
|
}
|
|
884
914
|
}
|
|
885
915
|
return void 0;
|
|
@@ -922,15 +952,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
922
952
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
923
953
|
members.map(([memberName, [memberFlags]]) => {
|
|
924
954
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
955
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
956
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
957
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
958
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
959
|
+
Object.defineProperty(prototype, memberName, {
|
|
960
|
+
get() {
|
|
961
|
+
{
|
|
962
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
963
|
+
return getValue(this, memberName);
|
|
964
|
+
}
|
|
965
|
+
const ref = getHostRef(this);
|
|
966
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
967
|
+
if (!instance) return;
|
|
968
|
+
return instance[memberName];
|
|
969
|
+
}
|
|
970
|
+
},
|
|
971
|
+
configurable: true,
|
|
972
|
+
enumerable: true
|
|
973
|
+
});
|
|
974
|
+
}
|
|
925
975
|
Object.defineProperty(prototype, memberName, {
|
|
926
|
-
get() {
|
|
927
|
-
return getValue(this, memberName);
|
|
928
|
-
},
|
|
929
976
|
set(newValue) {
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
977
|
+
const ref = getHostRef(this);
|
|
978
|
+
if (origSetter) {
|
|
979
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
980
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
981
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
982
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
983
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
984
|
+
}
|
|
985
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
986
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
987
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
988
|
+
return;
|
|
989
|
+
}
|
|
990
|
+
{
|
|
991
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
992
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
993
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
994
|
+
ref.$onReadyPromise$.then(() => {
|
|
995
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
996
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
997
|
+
}
|
|
998
|
+
});
|
|
999
|
+
}
|
|
1000
|
+
return;
|
|
1001
|
+
}
|
|
1002
|
+
const setterSetVal = () => {
|
|
1003
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
1004
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1005
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1006
|
+
}
|
|
1007
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1008
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1009
|
+
};
|
|
1010
|
+
if (ref.$lazyInstance$) {
|
|
1011
|
+
setterSetVal();
|
|
1012
|
+
} else {
|
|
1013
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
934
1017
|
});
|
|
935
1018
|
}
|
|
936
1019
|
});
|
|
@@ -940,7 +1023,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
940
1023
|
plt.jmp(() => {
|
|
941
1024
|
var _a2;
|
|
942
1025
|
const propName = attrNameToPropName.get(attrName);
|
|
943
|
-
if (this.hasOwnProperty(propName)) {
|
|
1026
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
944
1027
|
newValue = this[propName];
|
|
945
1028
|
delete this[propName];
|
|
946
1029
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -960,7 +1043,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
960
1043
|
}
|
|
961
1044
|
return;
|
|
962
1045
|
}
|
|
963
|
-
|
|
1046
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1047
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1048
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1049
|
+
this[propName] = newValue;
|
|
1050
|
+
}
|
|
964
1051
|
});
|
|
965
1052
|
};
|
|
966
1053
|
Cstr.observedAttributes = Array.from(
|
|
@@ -987,9 +1074,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
987
1074
|
let Cstr;
|
|
988
1075
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
989
1076
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1077
|
+
{
|
|
1078
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
993
1079
|
if (CstrImport && "then" in CstrImport) {
|
|
994
1080
|
const endLoad = uniqueTime();
|
|
995
1081
|
Cstr = await CstrImport;
|
|
@@ -1011,17 +1097,13 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1011
1097
|
try {
|
|
1012
1098
|
new Cstr(hostRef);
|
|
1013
1099
|
} catch (e) {
|
|
1014
|
-
consoleError(e);
|
|
1100
|
+
consoleError(e, elm);
|
|
1015
1101
|
}
|
|
1016
1102
|
{
|
|
1017
1103
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1018
1104
|
}
|
|
1019
1105
|
endNewInstance();
|
|
1020
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1021
|
-
} else {
|
|
1022
|
-
Cstr = elm.constructor;
|
|
1023
|
-
const cmpTag = elm.localName;
|
|
1024
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1106
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1025
1107
|
}
|
|
1026
1108
|
if (Cstr && Cstr.style) {
|
|
1027
1109
|
let style;
|
|
@@ -1044,9 +1126,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1044
1126
|
schedule();
|
|
1045
1127
|
}
|
|
1046
1128
|
};
|
|
1047
|
-
var fireConnectedCallback = (instance) => {
|
|
1129
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1048
1130
|
{
|
|
1049
|
-
safeCall(instance, "connectedCallback");
|
|
1131
|
+
safeCall(instance, "connectedCallback", void 0, elm);
|
|
1050
1132
|
}
|
|
1051
1133
|
};
|
|
1052
1134
|
|
|
@@ -1082,15 +1164,15 @@ var connectedCallback = (elm) => {
|
|
|
1082
1164
|
} else {
|
|
1083
1165
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1084
1166
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1085
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1167
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1086
1168
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1087
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance
|
|
1169
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
1088
1170
|
}
|
|
1089
1171
|
}
|
|
1090
1172
|
endConnected();
|
|
1091
1173
|
}
|
|
1092
1174
|
};
|
|
1093
|
-
var disconnectInstance = (instance) => {
|
|
1175
|
+
var disconnectInstance = (instance, elm) => {
|
|
1094
1176
|
};
|
|
1095
1177
|
var disconnectedCallback = async (elm) => {
|
|
1096
1178
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1105,6 +1187,12 @@ var disconnectedCallback = async (elm) => {
|
|
|
1105
1187
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1106
1188
|
}
|
|
1107
1189
|
}
|
|
1190
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1191
|
+
rootAppliedStyles.delete(elm);
|
|
1192
|
+
}
|
|
1193
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1194
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1195
|
+
}
|
|
1108
1196
|
};
|
|
1109
1197
|
|
|
1110
1198
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1185,6 +1273,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1185
1273
|
}
|
|
1186
1274
|
disconnectedCallback() {
|
|
1187
1275
|
plt.jmp(() => disconnectedCallback(this));
|
|
1276
|
+
plt.raf(() => {
|
|
1277
|
+
var _a3;
|
|
1278
|
+
const hostRef = getHostRef(this);
|
|
1279
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1280
|
+
delete hostRef.$vnode$.$elm$;
|
|
1281
|
+
}
|
|
1282
|
+
});
|
|
1188
1283
|
}
|
|
1189
1284
|
componentOnReady() {
|
|
1190
1285
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1248,7 +1343,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1248
1343
|
}
|
|
1249
1344
|
}
|
|
1250
1345
|
} catch (e) {
|
|
1251
|
-
consoleError(e);
|
|
1346
|
+
consoleError(e, hostRef.$hostElement$);
|
|
1252
1347
|
}
|
|
1253
1348
|
};
|
|
1254
1349
|
var getHostListenerTarget = (elm, flags) => {
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-7b1959d3.js';
|
|
2
|
+
export { s as setNonce } from './index-7b1959d3.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["lottery-bullet_2",[[1,"lottery-grid",{"ticketId":[514,"ticket-id"],"totalNumbers":[514,"total-numbers"],"gameId":[513,"game-id"],"maximumAllowed":[514,"maximum-allowed"],"minimumAllowed":[514,"minimum-allowed"],"selectable":[516],"selectedNumbers":[513,"selected-numbers"],"displaySelected":[516,"display-selected"],"language":[513],"gridIndex":[514,"grid-index"],"gridType":[513,"grid-type"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"numbers":[32],"limitStylingAppends":[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]]],[1,"lottery-bullet",{"value":[513],"selectable":[516],"isSelected":[516,"is-selected"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]}]]]], options);
|
|
8
|
+
return bootstrapLazy([["lottery-bullet_2",[[1,"lottery-grid",{"ticketId":[514,"ticket-id"],"totalNumbers":[514,"total-numbers"],"gameId":[513,"game-id"],"maximumAllowed":[514,"maximum-allowed"],"minimumAllowed":[514,"minimum-allowed"],"numberRange":[513,"number-range"],"selectable":[516],"selectedNumbers":[513,"selected-numbers"],"secondaryNumbers":[513,"secondary-numbers"],"displaySelected":[516,"display-selected"],"language":[513],"gridIndex":[514,"grid-index"],"gridType":[513,"grid-type"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"highNumber":[514,"high-number"],"lowNumber":[514,"low-number"],"selectionType":[513,"selection-type"],"partialQuickpickAvailable":[516,"partial-quickpick-available"],"numbers":[32],"bonusNumbers":[32],"limitStylingAppends":[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]]],[1,"lottery-bullet",{"value":[513],"selectable":[516],"isSelected":[516,"is-selected"],"isBonus":[516,"is-bonus"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|