@everymatrix/lottery-grid 1.54.11 → 1.55.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/{index-0019f59e.js → index-8b26cfcb.js} +71 -172
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/lottery-bullet_2.cjs.entry.js +25 -90
- package/dist/cjs/lottery-grid.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/lottery-grid/lottery-grid.js +17 -102
- package/dist/esm/{index-a4a45d0f.js → index-610c64ca.js} +71 -172
- package/dist/esm/loader.js +2 -2
- package/dist/esm/lottery-bullet_2.entry.js +25 -90
- package/dist/esm/lottery-grid.js +3 -3
- package/dist/lottery-grid/lottery-grid.esm.js +1 -1
- package/dist/lottery-grid/p-a27a4bfc.entry.js +1 -0
- package/dist/lottery-grid/p-a2add9a5.js +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-grid/.stencil/packages/stencil/lottery-grid/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-grid/.stencil/packages/stencil/lottery-grid/stencil.config.dev.d.ts +2 -0
- package/package.json +1 -1
- package/dist/lottery-grid/p-7ec64ea7.entry.js +0 -1
- package/dist/lottery-grid/p-eee776b4.js +0 -2
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-grid/.stencil/packages/stencil/lottery-grid/stencil.config.d.ts +0 -2
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-grid/.stencil/packages/stencil/lottery-grid/stencil.config.dev.d.ts +0 -2
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-grid/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-grid/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-grid/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-grid/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -21,23 +21,19 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'lottery-grid';
|
|
24
|
-
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,
|
|
24
|
+
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 };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
31
31
|
for (var name in all)
|
|
32
32
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
33
33
|
};
|
|
34
|
-
|
|
35
|
-
// src/client/client-host-ref.ts
|
|
36
34
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
37
35
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
38
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
39
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
40
|
-
};
|
|
36
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
41
37
|
var registerHost = (hostElement, cmpMeta) => {
|
|
42
38
|
const hostRef = {
|
|
43
39
|
$flags$: 0,
|
|
@@ -50,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
50
46
|
hostElement["s-p"] = [];
|
|
51
47
|
hostElement["s-rc"] = [];
|
|
52
48
|
}
|
|
53
|
-
|
|
54
|
-
return ref;
|
|
49
|
+
return hostRefs.set(hostElement, hostRef);
|
|
55
50
|
};
|
|
56
51
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
57
52
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -88,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
88
83
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
89
84
|
/* webpackMode: "lazy" */
|
|
90
85
|
`./${bundleId}.entry.js${""}`
|
|
91
|
-
)); }).then(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
cmpModules.set(bundleId, importedModule);
|
|
95
|
-
}
|
|
96
|
-
return importedModule[exportName];
|
|
97
|
-
},
|
|
98
|
-
(e) => {
|
|
99
|
-
consoleError(e, hostRef.$hostElement$);
|
|
86
|
+
)); }).then((importedModule) => {
|
|
87
|
+
{
|
|
88
|
+
cmpModules.set(bundleId, importedModule);
|
|
100
89
|
}
|
|
101
|
-
|
|
90
|
+
return importedModule[exportName];
|
|
91
|
+
}, consoleError);
|
|
102
92
|
};
|
|
103
93
|
|
|
104
94
|
// src/client/client-style.ts
|
|
105
95
|
var styles = /* @__PURE__ */ new Map();
|
|
106
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
107
96
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
108
97
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
109
98
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -177,6 +166,12 @@ var flush = () => {
|
|
|
177
166
|
};
|
|
178
167
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
179
168
|
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;
|
|
180
175
|
var isComplexType = (o) => {
|
|
181
176
|
o = typeof o;
|
|
182
177
|
return o === "object" || o === "function";
|
|
@@ -380,7 +375,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
380
375
|
}
|
|
381
376
|
if (!appliedStyles.has(scopeId2)) {
|
|
382
377
|
{
|
|
383
|
-
styleElm =
|
|
378
|
+
styleElm = doc.createElement("style");
|
|
384
379
|
styleElm.innerHTML = style;
|
|
385
380
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
386
381
|
if (nonce != null) {
|
|
@@ -390,10 +385,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
390
385
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
391
386
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
392
387
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
393
|
-
styleContainerNode.insertBefore(
|
|
394
|
-
styleElm,
|
|
395
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
396
|
-
);
|
|
388
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
397
389
|
} else if ("host" in styleContainerNode) {
|
|
398
390
|
if (supportsConstructableStylesheets) {
|
|
399
391
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -411,7 +403,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
411
403
|
styleContainerNode.append(styleElm);
|
|
412
404
|
}
|
|
413
405
|
}
|
|
414
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
406
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
415
407
|
styleContainerNode.insertBefore(styleElm, null);
|
|
416
408
|
}
|
|
417
409
|
}
|
|
@@ -436,25 +428,23 @@ var attachStyles = (hostRef) => {
|
|
|
436
428
|
const scopeId2 = addStyle(
|
|
437
429
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
438
430
|
cmpMeta);
|
|
439
|
-
if (
|
|
431
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
440
432
|
elm["s-sc"] = scopeId2;
|
|
441
433
|
elm.classList.add(scopeId2 + "-h");
|
|
442
434
|
}
|
|
443
435
|
endAttachStyles();
|
|
444
436
|
};
|
|
445
437
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
446
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
438
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
447
439
|
if (oldValue !== newValue) {
|
|
448
440
|
let isProp = isMemberInElement(elm, memberName);
|
|
449
441
|
let ln = memberName.toLowerCase();
|
|
450
442
|
if (memberName === "class") {
|
|
451
443
|
const classList = elm.classList;
|
|
452
444
|
const oldClasses = parseClassList(oldValue);
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
457
|
-
}
|
|
445
|
+
const newClasses = parseClassList(newValue);
|
|
446
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
447
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
458
448
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
459
449
|
if (newValue) {
|
|
460
450
|
newValue(elm);
|
|
@@ -492,7 +482,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
492
482
|
elm.setAttribute(memberName, n);
|
|
493
483
|
}
|
|
494
484
|
}
|
|
495
|
-
} else
|
|
485
|
+
} else {
|
|
496
486
|
elm[memberName] = newValue;
|
|
497
487
|
}
|
|
498
488
|
} catch (e) {
|
|
@@ -514,44 +504,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
514
504
|
}
|
|
515
505
|
};
|
|
516
506
|
var parseClassListRegex = /\s/;
|
|
517
|
-
var parseClassList = (value) =>
|
|
518
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
519
|
-
value = value.baseVal;
|
|
520
|
-
}
|
|
521
|
-
if (!value || typeof value !== "string") {
|
|
522
|
-
return [];
|
|
523
|
-
}
|
|
524
|
-
return value.split(parseClassListRegex);
|
|
525
|
-
};
|
|
507
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
526
508
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
527
509
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
528
510
|
|
|
529
511
|
// src/runtime/vdom/update-element.ts
|
|
530
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
512
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
531
513
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
532
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
533
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
514
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
515
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
534
516
|
{
|
|
535
517
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
536
518
|
if (!(memberName in newVnodeAttrs)) {
|
|
537
|
-
setAccessor(
|
|
538
|
-
elm,
|
|
539
|
-
memberName,
|
|
540
|
-
oldVnodeAttrs[memberName],
|
|
541
|
-
void 0,
|
|
542
|
-
isSvgMode2,
|
|
543
|
-
newVnode.$flags$);
|
|
519
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
544
520
|
}
|
|
545
521
|
}
|
|
546
522
|
}
|
|
547
523
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
548
|
-
setAccessor(
|
|
549
|
-
elm,
|
|
550
|
-
memberName,
|
|
551
|
-
oldVnodeAttrs[memberName],
|
|
552
|
-
newVnodeAttrs[memberName],
|
|
553
|
-
isSvgMode2,
|
|
554
|
-
newVnode.$flags$);
|
|
524
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
555
525
|
}
|
|
556
526
|
};
|
|
557
527
|
function sortedAttrNames(attrNames) {
|
|
@@ -563,10 +533,13 @@ function sortedAttrNames(attrNames) {
|
|
|
563
533
|
attrNames
|
|
564
534
|
);
|
|
565
535
|
}
|
|
536
|
+
|
|
537
|
+
// src/runtime/vdom/vdom-render.ts
|
|
538
|
+
var scopeId;
|
|
566
539
|
var hostTagName;
|
|
567
540
|
var useNativeShadowDom = false;
|
|
568
541
|
var isSvgMode = false;
|
|
569
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
542
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
570
543
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
571
544
|
let i2 = 0;
|
|
572
545
|
let elm;
|
|
@@ -580,6 +553,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
580
553
|
{
|
|
581
554
|
updateElement(null, newVNode2, isSvgMode);
|
|
582
555
|
}
|
|
556
|
+
const rootNode = elm.getRootNode();
|
|
557
|
+
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
558
|
+
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
559
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
560
|
+
}
|
|
583
561
|
if (newVNode2.$children$) {
|
|
584
562
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
585
563
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -709,9 +687,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
709
687
|
if (!isInitialRender) {
|
|
710
688
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
711
689
|
}
|
|
712
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
713
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
714
|
-
}
|
|
715
690
|
return true;
|
|
716
691
|
}
|
|
717
692
|
return false;
|
|
@@ -751,9 +726,8 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
751
726
|
}
|
|
752
727
|
};
|
|
753
728
|
var insertBefore = (parent, newNode, reference) => {
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
}
|
|
729
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
730
|
+
return inserted;
|
|
757
731
|
};
|
|
758
732
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
759
733
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -778,21 +752,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
778
752
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
779
753
|
hostRef.$vnode$ = rootVnode;
|
|
780
754
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
781
|
-
|
|
755
|
+
{
|
|
756
|
+
scopeId = hostElm["s-sc"];
|
|
757
|
+
}
|
|
758
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
782
759
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
783
760
|
};
|
|
784
761
|
|
|
785
762
|
// src/runtime/update-component.ts
|
|
786
763
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
787
764
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
788
|
-
|
|
789
|
-
new Promise(
|
|
790
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
791
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
792
|
-
r();
|
|
793
|
-
}
|
|
794
|
-
)
|
|
795
|
-
);
|
|
765
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
796
766
|
}
|
|
797
767
|
};
|
|
798
768
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -821,7 +791,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
821
791
|
{
|
|
822
792
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
823
793
|
if (hostRef.$queuedListeners$) {
|
|
824
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event
|
|
794
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
825
795
|
hostRef.$queuedListeners$ = void 0;
|
|
826
796
|
}
|
|
827
797
|
}
|
|
@@ -892,7 +862,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
892
862
|
const instance = hostRef.$lazyInstance$ ;
|
|
893
863
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
894
864
|
{
|
|
895
|
-
safeCall(instance, "componentDidRender"
|
|
865
|
+
safeCall(instance, "componentDidRender");
|
|
896
866
|
}
|
|
897
867
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
898
868
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -921,14 +891,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
921
891
|
}
|
|
922
892
|
};
|
|
923
893
|
var appDidLoad = (who) => {
|
|
894
|
+
{
|
|
895
|
+
addHydratedFlag(doc.documentElement);
|
|
896
|
+
}
|
|
924
897
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
925
898
|
};
|
|
926
|
-
var safeCall = (instance, method, arg
|
|
899
|
+
var safeCall = (instance, method, arg) => {
|
|
927
900
|
if (instance && instance[method]) {
|
|
928
901
|
try {
|
|
929
902
|
return instance[method](arg);
|
|
930
903
|
} catch (e) {
|
|
931
|
-
consoleError(e
|
|
904
|
+
consoleError(e);
|
|
932
905
|
}
|
|
933
906
|
}
|
|
934
907
|
return void 0;
|
|
@@ -971,68 +944,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
971
944
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
972
945
|
members.map(([memberName, [memberFlags]]) => {
|
|
973
946
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
974
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
975
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
976
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
977
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
978
|
-
Object.defineProperty(prototype, memberName, {
|
|
979
|
-
get() {
|
|
980
|
-
{
|
|
981
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
982
|
-
return getValue(this, memberName);
|
|
983
|
-
}
|
|
984
|
-
const ref = getHostRef(this);
|
|
985
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
986
|
-
if (!instance) return;
|
|
987
|
-
return instance[memberName];
|
|
988
|
-
}
|
|
989
|
-
},
|
|
990
|
-
configurable: true,
|
|
991
|
-
enumerable: true
|
|
992
|
-
});
|
|
993
|
-
}
|
|
994
947
|
Object.defineProperty(prototype, memberName, {
|
|
948
|
+
get() {
|
|
949
|
+
return getValue(this, memberName);
|
|
950
|
+
},
|
|
995
951
|
set(newValue) {
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
1001
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1002
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1003
|
-
}
|
|
1004
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1005
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1006
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1007
|
-
return;
|
|
1008
|
-
}
|
|
1009
|
-
{
|
|
1010
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1011
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1012
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1013
|
-
ref.$onReadyPromise$.then(() => {
|
|
1014
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1015
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
1016
|
-
}
|
|
1017
|
-
});
|
|
1018
|
-
}
|
|
1019
|
-
return;
|
|
1020
|
-
}
|
|
1021
|
-
const setterSetVal = () => {
|
|
1022
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
1023
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1024
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1025
|
-
}
|
|
1026
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1027
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1028
|
-
};
|
|
1029
|
-
if (ref.$lazyInstance$) {
|
|
1030
|
-
setterSetVal();
|
|
1031
|
-
} else {
|
|
1032
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1033
|
-
}
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
952
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
953
|
+
},
|
|
954
|
+
configurable: true,
|
|
955
|
+
enumerable: true
|
|
1036
956
|
});
|
|
1037
957
|
}
|
|
1038
958
|
});
|
|
@@ -1042,7 +962,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1042
962
|
plt.jmp(() => {
|
|
1043
963
|
var _a2;
|
|
1044
964
|
const propName = attrNameToPropName.get(attrName);
|
|
1045
|
-
if (this.hasOwnProperty(propName)
|
|
965
|
+
if (this.hasOwnProperty(propName)) {
|
|
1046
966
|
newValue = this[propName];
|
|
1047
967
|
delete this[propName];
|
|
1048
968
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1062,11 +982,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1062
982
|
}
|
|
1063
983
|
return;
|
|
1064
984
|
}
|
|
1065
|
-
|
|
1066
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1067
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1068
|
-
this[propName] = newValue;
|
|
1069
|
-
}
|
|
985
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1070
986
|
});
|
|
1071
987
|
};
|
|
1072
988
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1095,7 +1011,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1095
1011
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1096
1012
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1097
1013
|
if (bundleId) {
|
|
1098
|
-
const CstrImport = loadModule(cmpMeta
|
|
1014
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1099
1015
|
if (CstrImport && "then" in CstrImport) {
|
|
1100
1016
|
const endLoad = uniqueTime();
|
|
1101
1017
|
Cstr = await CstrImport;
|
|
@@ -1117,13 +1033,13 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1117
1033
|
try {
|
|
1118
1034
|
new Cstr(hostRef);
|
|
1119
1035
|
} catch (e) {
|
|
1120
|
-
consoleError(e
|
|
1036
|
+
consoleError(e);
|
|
1121
1037
|
}
|
|
1122
1038
|
{
|
|
1123
1039
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1124
1040
|
}
|
|
1125
1041
|
endNewInstance();
|
|
1126
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1042
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1127
1043
|
} else {
|
|
1128
1044
|
Cstr = elm.constructor;
|
|
1129
1045
|
const cmpTag = elm.localName;
|
|
@@ -1150,9 +1066,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1150
1066
|
schedule();
|
|
1151
1067
|
}
|
|
1152
1068
|
};
|
|
1153
|
-
var fireConnectedCallback = (instance
|
|
1069
|
+
var fireConnectedCallback = (instance) => {
|
|
1154
1070
|
{
|
|
1155
|
-
safeCall(instance, "connectedCallback"
|
|
1071
|
+
safeCall(instance, "connectedCallback");
|
|
1156
1072
|
}
|
|
1157
1073
|
};
|
|
1158
1074
|
|
|
@@ -1188,15 +1104,15 @@ var connectedCallback = (elm) => {
|
|
|
1188
1104
|
} else {
|
|
1189
1105
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1190
1106
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1191
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1107
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1192
1108
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1193
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance
|
|
1109
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
|
1194
1110
|
}
|
|
1195
1111
|
}
|
|
1196
1112
|
endConnected();
|
|
1197
1113
|
}
|
|
1198
1114
|
};
|
|
1199
|
-
var disconnectInstance = (instance
|
|
1115
|
+
var disconnectInstance = (instance) => {
|
|
1200
1116
|
};
|
|
1201
1117
|
var disconnectedCallback = async (elm) => {
|
|
1202
1118
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1211,12 +1127,6 @@ var disconnectedCallback = async (elm) => {
|
|
|
1211
1127
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1212
1128
|
}
|
|
1213
1129
|
}
|
|
1214
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1215
|
-
rootAppliedStyles.delete(elm);
|
|
1216
|
-
}
|
|
1217
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1218
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1219
|
-
}
|
|
1220
1130
|
};
|
|
1221
1131
|
|
|
1222
1132
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1297,17 +1207,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1297
1207
|
}
|
|
1298
1208
|
disconnectedCallback() {
|
|
1299
1209
|
plt.jmp(() => disconnectedCallback(this));
|
|
1300
|
-
plt.raf(() => {
|
|
1301
|
-
var _a3;
|
|
1302
|
-
const hostRef = getHostRef(this);
|
|
1303
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1304
|
-
if (i2 > -1) {
|
|
1305
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1306
|
-
}
|
|
1307
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1308
|
-
delete hostRef.$vnode$.$elm$;
|
|
1309
|
-
}
|
|
1310
|
-
});
|
|
1311
1210
|
}
|
|
1312
1211
|
componentOnReady() {
|
|
1313
1212
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1371,7 +1270,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1371
1270
|
}
|
|
1372
1271
|
}
|
|
1373
1272
|
} catch (e) {
|
|
1374
|
-
consoleError(e
|
|
1273
|
+
consoleError(e);
|
|
1375
1274
|
}
|
|
1376
1275
|
};
|
|
1377
1276
|
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-8b26cfcb.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -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-8b26cfcb.js');
|
|
6
6
|
|
|
7
7
|
const lotteryBulletCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}@-webkit-keyframes Circle{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes Circle{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes hover-rotate{0%{-webkit-transform:scale(1) rotateZ(0);transform:scale(1) rotateZ(0)}50%{-webkit-transform:scale(1.2) rotateZ(180deg);transform:scale(1.22) rotateZ(180deg)}100%{-webkit-transform:scale(1) rotateZ(360deg);transform:scale(1) rotateZ(360deg)}}@keyframes hover-rotate{0%{-webkit-transform:scale(1) rotateZ(0);transform:scale(1) rotateZ(0)}50%{-webkit-transform:scale(1.2) rotateZ(180deg);transform:scale(1.2) rotateZ(180deg)}100%{-webkit-transform:scale(1) rotateZ(360deg);transform:scale(1) rotateZ(360deg)}}@-webkit-keyframes selected-scaleUp{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1.2);transform:scale(1.2)}}@keyframes selected-scaleUp{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}.Circle{-webkit-animation:Circle 0.8s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:Circle 0.8s cubic-bezier(0.39, 0.575, 0.565, 1) both;cursor:pointer;color:var(--emw--button-text-color, #000);display:block;height:30px;width:30px;margin:0;display:flex;align-items:center;justify-content:center;justify-content:center;align-items:center;border:solid 2px var(--emw--color-gray-transparency-100, rgb(255, 255, 255));background:radial-gradient(circle at top, var(--emw--color-gray-transparency-100, rgb(255, 255, 255)) 0%, var(--emw--color-gray-transparency-100, rgb(255, 255, 255)) 100%);font-weight:bold;border-radius:50%;box-shadow:0 2px 4px 0 rgba(0, 0, 0, 0.5);user-select:none;font-size:16px;line-height:16px;font-weight:600;position:relative}.Circle:hover{-webkit-animation:hover-rotate 0.4s linear both;animation:hover-rotate 0.4s linear both;background:radial-gradient(circle at top, var(--emw--color-gray-transparency-100, rgb(255, 255, 255)) 0%, var(--emw--color-gray-50, #F1F1F1) 100%)}.Circle.Selected{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255));background:var(--emw--color-primary, #9EC258);background:-webkit-radial-gradient(top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));background:-moz-radial-gradient(top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));background:radial-gradient(circle at top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));border:solid 2px var(--emw--button-border-color, #00958f)}.Circle.Disabled{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:var(--emw--color-gray-50, #F1F1F1);background:var(--emw--color-gray-100, #D4D4D4);border:solid 2px var(--emw--color-gray-100, #D4D4D4);cursor:default}.Circle.DisabledSelected{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:var(--emw--color-gray-50, #F1F1F1);background:var(--emw--color-primary, #9EC258);background:-webkit-radial-gradient(top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));background:-moz-radial-gradient(top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));background:radial-gradient(circle at top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));border:solid 2px var(--emw--color-gray-100, #D4D4D4);cursor:default}.Circle.Bonus{background:var(--emw--color-error, #FF3D00)}";
|
|
8
8
|
const LotteryBulletStyle0 = lotteryBulletCss;
|
|
@@ -11,31 +11,6 @@ const LotteryBullet = class {
|
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
13
|
this.bulletEvent = index.createEvent(this, "lotteryBulletSelection", 7);
|
|
14
|
-
/**
|
|
15
|
-
* Value of the bullet
|
|
16
|
-
*/
|
|
17
|
-
this.value = '0';
|
|
18
|
-
/**
|
|
19
|
-
* Marks if the bullet should be selectable
|
|
20
|
-
*/
|
|
21
|
-
this.selectable = true;
|
|
22
|
-
/**
|
|
23
|
-
* Marks if the bullet should be selected
|
|
24
|
-
*/
|
|
25
|
-
this.isSelected = false;
|
|
26
|
-
/**
|
|
27
|
-
* Marks if the number is bonus number.
|
|
28
|
-
*/
|
|
29
|
-
this.isBonus = false;
|
|
30
|
-
/**
|
|
31
|
-
* Client custom styling via string
|
|
32
|
-
*/
|
|
33
|
-
this.clientStyling = '';
|
|
34
|
-
/**
|
|
35
|
-
* Client custom styling via url content
|
|
36
|
-
*/
|
|
37
|
-
this.clientStylingUrlContent = '';
|
|
38
|
-
this.limitStylingAppends = false;
|
|
39
14
|
this.select = () => {
|
|
40
15
|
if (this.selectable) {
|
|
41
16
|
this.isSelected = !this.isSelected;
|
|
@@ -57,6 +32,13 @@ const LotteryBullet = class {
|
|
|
57
32
|
this.stylingContainer.prepend(cssFile);
|
|
58
33
|
}, 1);
|
|
59
34
|
};
|
|
35
|
+
this.value = '0';
|
|
36
|
+
this.selectable = true;
|
|
37
|
+
this.isSelected = false;
|
|
38
|
+
this.isBonus = false;
|
|
39
|
+
this.clientStyling = '';
|
|
40
|
+
this.clientStylingUrlContent = '';
|
|
41
|
+
this.limitStylingAppends = false;
|
|
60
42
|
}
|
|
61
43
|
componentDidRender() {
|
|
62
44
|
// start custom styling area
|
|
@@ -84,88 +66,41 @@ const LotteryGrid = class {
|
|
|
84
66
|
this.gridFilledEvent = index.createEvent(this, "gridFilled", 7);
|
|
85
67
|
this.gridDirtyEvent = index.createEvent(this, "gridDirty", 7);
|
|
86
68
|
this.gridClearAllEvent = index.createEvent(this, "gridClearAllEvent", 7);
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
69
|
+
this.selectedCounter = 0;
|
|
70
|
+
this.setClientStyling = () => {
|
|
71
|
+
let sheet = document.createElement('style');
|
|
72
|
+
sheet.innerHTML = this.clientStyling;
|
|
73
|
+
this.stylingContainer.prepend(sheet);
|
|
74
|
+
};
|
|
75
|
+
this.setClientStylingURL = () => {
|
|
76
|
+
let cssFile = document.createElement('style');
|
|
77
|
+
setTimeout(() => {
|
|
78
|
+
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
79
|
+
this.stylingContainer.prepend(cssFile);
|
|
80
|
+
}, 1);
|
|
81
|
+
};
|
|
82
|
+
this.ticketId = undefined;
|
|
90
83
|
this.totalNumbers = 0;
|
|
91
|
-
|
|
92
|
-
* Number of maximum bullets that can be selected
|
|
93
|
-
*/
|
|
84
|
+
this.gameId = undefined;
|
|
94
85
|
this.maximumAllowed = 7;
|
|
95
|
-
/**
|
|
96
|
-
* Minimum allowed of bullets
|
|
97
|
-
*/
|
|
98
86
|
this.minimumAllowed = 3;
|
|
99
|
-
|
|
100
|
-
* Allows the user to select numbers on the grid
|
|
101
|
-
*/
|
|
87
|
+
this.numberRange = undefined;
|
|
102
88
|
this.selectable = true;
|
|
103
|
-
/**
|
|
104
|
-
* Numbers that should be showed as selected on the grid (as a string of those numbers e.g. '1,2,3,4,5,6')
|
|
105
|
-
*/
|
|
106
89
|
this.selectedNumbers = '';
|
|
107
|
-
/**
|
|
108
|
-
* Bonus numbers that should be showed as selected on the grid (as a string of those numbers e.g. '1')
|
|
109
|
-
*/
|
|
110
90
|
this.secondaryNumbers = '';
|
|
111
|
-
/**
|
|
112
|
-
* Show only selected numbers
|
|
113
|
-
*/
|
|
114
91
|
this.displaySelected = false;
|
|
115
|
-
/**
|
|
116
|
-
* Language
|
|
117
|
-
*/
|
|
118
92
|
this.language = 'en';
|
|
119
|
-
|
|
120
|
-
* Personalize grid for ticket
|
|
121
|
-
*/
|
|
93
|
+
this.gridIndex = undefined;
|
|
122
94
|
this.gridType = '';
|
|
123
|
-
/**
|
|
124
|
-
* Client custom styling via string
|
|
125
|
-
*/
|
|
126
95
|
this.clientStyling = '';
|
|
127
|
-
/**
|
|
128
|
-
* Client custom styling via url content
|
|
129
|
-
*/
|
|
130
96
|
this.clientStylingUrlContent = '';
|
|
131
|
-
/**
|
|
132
|
-
* Maximum number of the grid
|
|
133
|
-
*/
|
|
134
97
|
this.highNumber = 47;
|
|
135
|
-
/**
|
|
136
|
-
* Lowest number of the grid
|
|
137
|
-
*/
|
|
138
98
|
this.lowNumber = 1;
|
|
139
|
-
/**
|
|
140
|
-
* Type of selection
|
|
141
|
-
*/
|
|
142
99
|
this.selectionType = 'mainSelection';
|
|
143
|
-
/**
|
|
144
|
-
* Allows partial quickpick or not
|
|
145
|
-
*/
|
|
146
100
|
this.partialQuickpickAvailable = false;
|
|
147
|
-
/**
|
|
148
|
-
* main selection numbers
|
|
149
|
-
*/
|
|
150
101
|
this.numbers = [];
|
|
151
|
-
/**
|
|
152
|
-
* Bonus selection numbers
|
|
153
|
-
*/
|
|
154
102
|
this.bonusNumbers = [];
|
|
155
103
|
this.limitStylingAppends = false;
|
|
156
|
-
this.selectedCounter = 0;
|
|
157
|
-
this.setClientStyling = () => {
|
|
158
|
-
let sheet = document.createElement('style');
|
|
159
|
-
sheet.innerHTML = this.clientStyling;
|
|
160
|
-
this.stylingContainer.prepend(sheet);
|
|
161
|
-
};
|
|
162
|
-
this.setClientStylingURL = () => {
|
|
163
|
-
let cssFile = document.createElement('style');
|
|
164
|
-
setTimeout(() => {
|
|
165
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
166
|
-
this.stylingContainer.prepend(cssFile);
|
|
167
|
-
}, 1);
|
|
168
|
-
};
|
|
169
104
|
}
|
|
170
105
|
connectedCallback() {
|
|
171
106
|
let selected = [];
|