@everymatrix/casino-engagement-suite-luckywheel 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/casino-engagement-suite-luckywheel/casino-engagement-suite-luckywheel.esm.js +1 -1
- package/dist/casino-engagement-suite-luckywheel/index.esm.js +1 -1
- package/dist/casino-engagement-suite-luckywheel/p-2a6e103b.entry.js +1 -0
- package/dist/casino-engagement-suite-luckywheel/p-781c5f2a.js +1 -0
- package/dist/casino-engagement-suite-luckywheel/p-eaad80fd.js +2 -0
- package/dist/cjs/{casino-engagement-suite-luckywheel-46532b7a.js → casino-engagement-suite-luckywheel-cc8d37c2.js} +30 -19
- package/dist/cjs/casino-engagement-suite-luckywheel.cjs.entry.js +2 -2
- package/dist/cjs/casino-engagement-suite-luckywheel.cjs.js +2 -2
- package/dist/cjs/{index-b8cc2368.js → index-b46604f4.js} +173 -70
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/casino-engagement-suite-luckywheel/casino-engagement-suite-luckywheel.js +44 -19
- package/dist/esm/{casino-engagement-suite-luckywheel-b370bbfe.js → casino-engagement-suite-luckywheel-cf7e798a.js} +30 -19
- package/dist/esm/casino-engagement-suite-luckywheel.entry.js +2 -2
- package/dist/esm/casino-engagement-suite-luckywheel.js +3 -3
- package/dist/esm/{index-0b3806b2.js → index-8ce51859.js} +173 -70
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.stencil/packages/stencil/casino-engagement-suite-luckywheel/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.stencil/packages/stencil/casino-engagement-suite-luckywheel/stencil.config.dev.d.ts +2 -0
- package/package.json +1 -1
- package/dist/casino-engagement-suite-luckywheel/p-2afd9927.entry.js +0 -1
- package/dist/casino-engagement-suite-luckywheel/p-5da7530f.js +0 -1
- package/dist/casino-engagement-suite-luckywheel/p-fc393d1b.js +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.stencil/packages/stencil/casino-engagement-suite-luckywheel/stencil.config.d.ts +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.stencil/packages/stencil/casino-engagement-suite-luckywheel/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.stencil/packages/stencil/casino-engagement-suite-luckywheel/storybook/main.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.stencil/packages/stencil/casino-engagement-suite-luckywheel/storybook/preview.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -21,19 +21,27 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'casino-engagement-suite-luckywheel';
|
|
24
|
-
const BUILD = /* casino-engagement-suite-luckywheel */ { 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: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, 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: false, propMutable: false, propNumber: false, 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: true, 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: true, watchCallback: false };
|
|
24
|
+
const BUILD = /* casino-engagement-suite-luckywheel */ { 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: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, 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: false, propMutable: false, propNumber: false, 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: true, 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: true, watchCallback: false };
|
|
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/utils/constants.ts
|
|
36
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
37
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
38
|
+
|
|
39
|
+
// src/client/client-host-ref.ts
|
|
34
40
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
35
41
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
36
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
42
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
43
|
+
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
44
|
+
};
|
|
37
45
|
var registerHost = (hostElement, cmpMeta) => {
|
|
38
46
|
const hostRef = {
|
|
39
47
|
$flags$: 0,
|
|
@@ -46,7 +54,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
46
54
|
hostElement["s-p"] = [];
|
|
47
55
|
hostElement["s-rc"] = [];
|
|
48
56
|
}
|
|
49
|
-
|
|
57
|
+
const ref = hostRefs.set(hostElement, hostRef);
|
|
58
|
+
return ref;
|
|
50
59
|
};
|
|
51
60
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
52
61
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -83,16 +92,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
83
92
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
84
93
|
/* webpackMode: "lazy" */
|
|
85
94
|
`./${bundleId}.entry.js${""}`
|
|
86
|
-
)); }).then(
|
|
87
|
-
{
|
|
88
|
-
|
|
95
|
+
)); }).then(
|
|
96
|
+
(importedModule) => {
|
|
97
|
+
{
|
|
98
|
+
cmpModules.set(bundleId, importedModule);
|
|
99
|
+
}
|
|
100
|
+
return importedModule[exportName];
|
|
101
|
+
},
|
|
102
|
+
(e) => {
|
|
103
|
+
consoleError(e, hostRef.$hostElement$);
|
|
89
104
|
}
|
|
90
|
-
|
|
91
|
-
}, consoleError);
|
|
105
|
+
);
|
|
92
106
|
};
|
|
93
107
|
|
|
94
108
|
// src/client/client-style.ts
|
|
95
109
|
var styles = /* @__PURE__ */ new Map();
|
|
110
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
96
111
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
97
112
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
98
113
|
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
@@ -167,14 +182,6 @@ var flush = () => {
|
|
|
167
182
|
};
|
|
168
183
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
169
184
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
170
|
-
|
|
171
|
-
// src/utils/constants.ts
|
|
172
|
-
var EMPTY_OBJ = {};
|
|
173
|
-
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
174
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
175
|
-
|
|
176
|
-
// src/utils/helpers.ts
|
|
177
|
-
var isDef = (v) => v != null;
|
|
178
185
|
var isComplexType = (o) => {
|
|
179
186
|
o = typeof o;
|
|
180
187
|
return o === "object" || o === "function";
|
|
@@ -357,7 +364,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
357
364
|
}
|
|
358
365
|
if (!appliedStyles.has(scopeId2)) {
|
|
359
366
|
{
|
|
360
|
-
styleElm = doc.createElement("style");
|
|
367
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
361
368
|
styleElm.innerHTML = style;
|
|
362
369
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
363
370
|
if (nonce != null) {
|
|
@@ -367,7 +374,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
367
374
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
368
375
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
369
376
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
370
|
-
styleContainerNode.insertBefore(
|
|
377
|
+
styleContainerNode.insertBefore(
|
|
378
|
+
styleElm,
|
|
379
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
380
|
+
);
|
|
371
381
|
} else if ("host" in styleContainerNode) {
|
|
372
382
|
if (supportsConstructableStylesheets) {
|
|
373
383
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -385,7 +395,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
385
395
|
styleContainerNode.append(styleElm);
|
|
386
396
|
}
|
|
387
397
|
}
|
|
388
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */
|
|
398
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
389
399
|
styleContainerNode.insertBefore(styleElm, null);
|
|
390
400
|
}
|
|
391
401
|
}
|
|
@@ -410,23 +420,25 @@ var attachStyles = (hostRef) => {
|
|
|
410
420
|
const scopeId2 = addStyle(
|
|
411
421
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
412
422
|
cmpMeta);
|
|
413
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
423
|
+
if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
|
|
414
424
|
elm["s-sc"] = scopeId2;
|
|
415
425
|
elm.classList.add(scopeId2 + "-h");
|
|
416
426
|
}
|
|
417
427
|
endAttachStyles();
|
|
418
428
|
};
|
|
419
429
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
420
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
430
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
421
431
|
if (oldValue !== newValue) {
|
|
422
432
|
let isProp = isMemberInElement(elm, memberName);
|
|
423
433
|
let ln = memberName.toLowerCase();
|
|
424
434
|
if (memberName === "class") {
|
|
425
435
|
const classList = elm.classList;
|
|
426
436
|
const oldClasses = parseClassList(oldValue);
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
437
|
+
let newClasses = parseClassList(newValue);
|
|
438
|
+
{
|
|
439
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
440
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
441
|
+
}
|
|
430
442
|
} else if (memberName === "style") {
|
|
431
443
|
{
|
|
432
444
|
for (const prop in oldValue) {
|
|
@@ -485,7 +497,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
485
497
|
elm.setAttribute(memberName, n);
|
|
486
498
|
}
|
|
487
499
|
}
|
|
488
|
-
} else {
|
|
500
|
+
} else if (elm[memberName] !== newValue) {
|
|
489
501
|
elm[memberName] = newValue;
|
|
490
502
|
}
|
|
491
503
|
} catch (e) {
|
|
@@ -518,24 +530,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
518
530
|
}
|
|
519
531
|
};
|
|
520
532
|
var parseClassListRegex = /\s/;
|
|
521
|
-
var parseClassList = (value) =>
|
|
533
|
+
var parseClassList = (value) => {
|
|
534
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
|
535
|
+
value = value.baseVal;
|
|
536
|
+
}
|
|
537
|
+
if (!value || typeof value !== "string") {
|
|
538
|
+
return [];
|
|
539
|
+
}
|
|
540
|
+
return value.split(parseClassListRegex);
|
|
541
|
+
};
|
|
522
542
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
523
543
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
524
544
|
|
|
525
545
|
// src/runtime/vdom/update-element.ts
|
|
526
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
546
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
527
547
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
528
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
529
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
548
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
549
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
530
550
|
{
|
|
531
551
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
532
552
|
if (!(memberName in newVnodeAttrs)) {
|
|
533
|
-
setAccessor(
|
|
553
|
+
setAccessor(
|
|
554
|
+
elm,
|
|
555
|
+
memberName,
|
|
556
|
+
oldVnodeAttrs[memberName],
|
|
557
|
+
void 0,
|
|
558
|
+
isSvgMode2,
|
|
559
|
+
newVnode.$flags$);
|
|
534
560
|
}
|
|
535
561
|
}
|
|
536
562
|
}
|
|
537
563
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
538
|
-
setAccessor(
|
|
564
|
+
setAccessor(
|
|
565
|
+
elm,
|
|
566
|
+
memberName,
|
|
567
|
+
oldVnodeAttrs[memberName],
|
|
568
|
+
newVnodeAttrs[memberName],
|
|
569
|
+
isSvgMode2,
|
|
570
|
+
newVnode.$flags$);
|
|
539
571
|
}
|
|
540
572
|
};
|
|
541
573
|
function sortedAttrNames(attrNames) {
|
|
@@ -547,13 +579,10 @@ function sortedAttrNames(attrNames) {
|
|
|
547
579
|
attrNames
|
|
548
580
|
);
|
|
549
581
|
}
|
|
550
|
-
|
|
551
|
-
// src/runtime/vdom/vdom-render.ts
|
|
552
|
-
var scopeId;
|
|
553
582
|
var hostTagName;
|
|
554
583
|
var useNativeShadowDom = false;
|
|
555
584
|
var isSvgMode = false;
|
|
556
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
585
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
557
586
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
558
587
|
let i2 = 0;
|
|
559
588
|
let elm;
|
|
@@ -574,11 +603,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
574
603
|
{
|
|
575
604
|
updateElement(null, newVNode2, isSvgMode);
|
|
576
605
|
}
|
|
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
606
|
if (newVNode2.$children$) {
|
|
583
607
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
584
608
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -715,6 +739,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
715
739
|
if (!isInitialRender) {
|
|
716
740
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
717
741
|
}
|
|
742
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
743
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
744
|
+
}
|
|
718
745
|
return true;
|
|
719
746
|
}
|
|
720
747
|
return false;
|
|
@@ -761,8 +788,9 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
761
788
|
}
|
|
762
789
|
};
|
|
763
790
|
var insertBefore = (parent, newNode, reference) => {
|
|
764
|
-
|
|
765
|
-
|
|
791
|
+
{
|
|
792
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
793
|
+
}
|
|
766
794
|
};
|
|
767
795
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
768
796
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -787,17 +815,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
787
815
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
788
816
|
hostRef.$vnode$ = rootVnode;
|
|
789
817
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
790
|
-
|
|
791
|
-
scopeId = hostElm["s-sc"];
|
|
792
|
-
}
|
|
793
|
-
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
818
|
+
useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
794
819
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
795
820
|
};
|
|
796
821
|
|
|
797
822
|
// src/runtime/update-component.ts
|
|
798
823
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
799
824
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
800
|
-
ancestorComponent["s-p"].push(
|
|
825
|
+
const index = ancestorComponent["s-p"].push(
|
|
826
|
+
new Promise(
|
|
827
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
828
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
829
|
+
r();
|
|
830
|
+
}
|
|
831
|
+
)
|
|
832
|
+
);
|
|
801
833
|
}
|
|
802
834
|
};
|
|
803
835
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -826,12 +858,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
826
858
|
{
|
|
827
859
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
828
860
|
if (hostRef.$queuedListeners$) {
|
|
829
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
861
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
830
862
|
hostRef.$queuedListeners$ = void 0;
|
|
831
863
|
}
|
|
832
864
|
}
|
|
833
865
|
{
|
|
834
|
-
maybePromise = safeCall(instance, "componentWillLoad");
|
|
866
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
835
867
|
}
|
|
836
868
|
}
|
|
837
869
|
endSchedule();
|
|
@@ -900,7 +932,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
900
932
|
const instance = hostRef.$lazyInstance$ ;
|
|
901
933
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
902
934
|
{
|
|
903
|
-
safeCall(instance, "componentDidRender");
|
|
935
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
904
936
|
}
|
|
905
937
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
906
938
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -929,17 +961,14 @@ var postUpdateComponent = (hostRef) => {
|
|
|
929
961
|
}
|
|
930
962
|
};
|
|
931
963
|
var appDidLoad = (who) => {
|
|
932
|
-
{
|
|
933
|
-
addHydratedFlag(doc.documentElement);
|
|
934
|
-
}
|
|
935
964
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
936
965
|
};
|
|
937
|
-
var safeCall = (instance, method, arg) => {
|
|
966
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
938
967
|
if (instance && instance[method]) {
|
|
939
968
|
try {
|
|
940
969
|
return instance[method](arg);
|
|
941
970
|
} catch (e) {
|
|
942
|
-
consoleError(e);
|
|
971
|
+
consoleError(e, elm);
|
|
943
972
|
}
|
|
944
973
|
}
|
|
945
974
|
return void 0;
|
|
@@ -982,15 +1011,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
982
1011
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
983
1012
|
members.map(([memberName, [memberFlags]]) => {
|
|
984
1013
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1014
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
1015
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1016
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1017
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
1018
|
+
Object.defineProperty(prototype, memberName, {
|
|
1019
|
+
get() {
|
|
1020
|
+
{
|
|
1021
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
1022
|
+
return getValue(this, memberName);
|
|
1023
|
+
}
|
|
1024
|
+
const ref = getHostRef(this);
|
|
1025
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
1026
|
+
if (!instance) return;
|
|
1027
|
+
return instance[memberName];
|
|
1028
|
+
}
|
|
1029
|
+
},
|
|
1030
|
+
configurable: true,
|
|
1031
|
+
enumerable: true
|
|
1032
|
+
});
|
|
1033
|
+
}
|
|
985
1034
|
Object.defineProperty(prototype, memberName, {
|
|
986
|
-
get() {
|
|
987
|
-
return getValue(this, memberName);
|
|
988
|
-
},
|
|
989
1035
|
set(newValue) {
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
1036
|
+
const ref = getHostRef(this);
|
|
1037
|
+
if (origSetter) {
|
|
1038
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1039
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
1040
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
1041
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1042
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1043
|
+
}
|
|
1044
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1045
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1046
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1047
|
+
return;
|
|
1048
|
+
}
|
|
1049
|
+
{
|
|
1050
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1051
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1052
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1053
|
+
ref.$onReadyPromise$.then(() => {
|
|
1054
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1055
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
1056
|
+
}
|
|
1057
|
+
});
|
|
1058
|
+
}
|
|
1059
|
+
return;
|
|
1060
|
+
}
|
|
1061
|
+
const setterSetVal = () => {
|
|
1062
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
1063
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1064
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1065
|
+
}
|
|
1066
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1067
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1068
|
+
};
|
|
1069
|
+
if (ref.$lazyInstance$) {
|
|
1070
|
+
setterSetVal();
|
|
1071
|
+
} else {
|
|
1072
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
994
1076
|
});
|
|
995
1077
|
}
|
|
996
1078
|
});
|
|
@@ -1000,7 +1082,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1000
1082
|
plt.jmp(() => {
|
|
1001
1083
|
var _a2;
|
|
1002
1084
|
const propName = attrNameToPropName.get(attrName);
|
|
1003
|
-
if (this.hasOwnProperty(propName)) {
|
|
1085
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
1004
1086
|
newValue = this[propName];
|
|
1005
1087
|
delete this[propName];
|
|
1006
1088
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1020,7 +1102,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1020
1102
|
}
|
|
1021
1103
|
return;
|
|
1022
1104
|
}
|
|
1023
|
-
|
|
1105
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1106
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1107
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1108
|
+
this[propName] = newValue;
|
|
1109
|
+
}
|
|
1024
1110
|
});
|
|
1025
1111
|
};
|
|
1026
1112
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1049,7 +1135,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1049
1135
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1050
1136
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1051
1137
|
if (bundleId) {
|
|
1052
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1138
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1053
1139
|
if (CstrImport && "then" in CstrImport) {
|
|
1054
1140
|
const endLoad = uniqueTime();
|
|
1055
1141
|
Cstr = await CstrImport;
|
|
@@ -1071,7 +1157,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1071
1157
|
try {
|
|
1072
1158
|
new Cstr(hostRef);
|
|
1073
1159
|
} catch (e) {
|
|
1074
|
-
consoleError(e);
|
|
1160
|
+
consoleError(e, elm);
|
|
1075
1161
|
}
|
|
1076
1162
|
{
|
|
1077
1163
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1103,7 +1189,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1103
1189
|
schedule();
|
|
1104
1190
|
}
|
|
1105
1191
|
};
|
|
1106
|
-
var fireConnectedCallback = (instance) => {
|
|
1192
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1107
1193
|
};
|
|
1108
1194
|
|
|
1109
1195
|
// src/runtime/connected-callback.ts
|
|
@@ -1144,7 +1230,7 @@ var connectedCallback = (elm) => {
|
|
|
1144
1230
|
endConnected();
|
|
1145
1231
|
}
|
|
1146
1232
|
};
|
|
1147
|
-
var disconnectInstance = (instance) => {
|
|
1233
|
+
var disconnectInstance = (instance, elm) => {
|
|
1148
1234
|
};
|
|
1149
1235
|
var disconnectedCallback = async (elm) => {
|
|
1150
1236
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1159,6 +1245,12 @@ var disconnectedCallback = async (elm) => {
|
|
|
1159
1245
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1160
1246
|
}
|
|
1161
1247
|
}
|
|
1248
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1249
|
+
rootAppliedStyles.delete(elm);
|
|
1250
|
+
}
|
|
1251
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1252
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1253
|
+
}
|
|
1162
1254
|
};
|
|
1163
1255
|
|
|
1164
1256
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1239,6 +1331,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1239
1331
|
}
|
|
1240
1332
|
disconnectedCallback() {
|
|
1241
1333
|
plt.jmp(() => disconnectedCallback(this));
|
|
1334
|
+
plt.raf(() => {
|
|
1335
|
+
var _a3;
|
|
1336
|
+
const hostRef = getHostRef(this);
|
|
1337
|
+
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1338
|
+
if (i2 > -1) {
|
|
1339
|
+
deferredConnectedCallbacks.splice(i2, 1);
|
|
1340
|
+
}
|
|
1341
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1342
|
+
delete hostRef.$vnode$.$elm$;
|
|
1343
|
+
}
|
|
1344
|
+
});
|
|
1242
1345
|
}
|
|
1243
1346
|
componentOnReady() {
|
|
1244
1347
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1302,7 +1405,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1302
1405
|
}
|
|
1303
1406
|
}
|
|
1304
1407
|
} catch (e) {
|
|
1305
|
-
consoleError(e);
|
|
1408
|
+
consoleError(e, hostRef.$hostElement$);
|
|
1306
1409
|
}
|
|
1307
1410
|
};
|
|
1308
1411
|
var getHostListenerTarget = (elm, flags) => {
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const casinoEngagementSuiteLuckywheel = require('./casino-engagement-suite-luckywheel-
|
|
6
|
-
require('./index-
|
|
5
|
+
const casinoEngagementSuiteLuckywheel = require('./casino-engagement-suite-luckywheel-cc8d37c2.js');
|
|
6
|
+
require('./index-b46604f4.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
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-b46604f4.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -6,6 +6,35 @@ import { getOptions, isSafari, setProps } from "../../utils/utils";
|
|
|
6
6
|
import { Spinner } from "../../utils/class.spinner";
|
|
7
7
|
export class CasinoEngagementSuiteLuckywheel {
|
|
8
8
|
constructor() {
|
|
9
|
+
/**
|
|
10
|
+
* Client custom styling via string
|
|
11
|
+
*/
|
|
12
|
+
this.clientStyling = '';
|
|
13
|
+
/**
|
|
14
|
+
* Client custom styling via url
|
|
15
|
+
*/
|
|
16
|
+
this.clientStylingUrl = '';
|
|
17
|
+
/**
|
|
18
|
+
* Language of the widget
|
|
19
|
+
*/
|
|
20
|
+
this.language = 'en';
|
|
21
|
+
/**
|
|
22
|
+
* User's device type
|
|
23
|
+
*/
|
|
24
|
+
this.device = 'Mobile';
|
|
25
|
+
/**
|
|
26
|
+
* Wheel size
|
|
27
|
+
*/
|
|
28
|
+
this.size = '440';
|
|
29
|
+
/**
|
|
30
|
+
* Content Direction
|
|
31
|
+
*/
|
|
32
|
+
this.contentdirection = 'anticlockwise';
|
|
33
|
+
this.limitStylingAppends = false;
|
|
34
|
+
this.isPartitionsCustomableReady = false;
|
|
35
|
+
this.isSpinning = false;
|
|
36
|
+
this.radius = 0.85 * Number(this.size) / 2;
|
|
37
|
+
this.speed = 0;
|
|
9
38
|
this.setClientStyling = () => {
|
|
10
39
|
let sheet = document.createElement('style');
|
|
11
40
|
sheet.innerHTML = this.clientStyling;
|
|
@@ -72,24 +101,6 @@ export class CasinoEngagementSuiteLuckywheel {
|
|
|
72
101
|
}
|
|
73
102
|
this.eventSpin();
|
|
74
103
|
};
|
|
75
|
-
this.clientStyling = '';
|
|
76
|
-
this.clientStylingUrl = '';
|
|
77
|
-
this.language = 'en';
|
|
78
|
-
this.device = 'Mobile';
|
|
79
|
-
this.luckywheel = undefined;
|
|
80
|
-
this.size = '440';
|
|
81
|
-
this.contentdirection = 'anticlockwise';
|
|
82
|
-
this.limitStylingAppends = false;
|
|
83
|
-
this.isPartitionsCustomableReady = false;
|
|
84
|
-
this.isSpinning = false;
|
|
85
|
-
this.options = undefined;
|
|
86
|
-
this.radius = 0.85 * Number(this.size) / 2;
|
|
87
|
-
this.speed = 0;
|
|
88
|
-
this.settings = undefined;
|
|
89
|
-
this.svg = undefined;
|
|
90
|
-
this.spinContainer = undefined;
|
|
91
|
-
this.spinable = undefined;
|
|
92
|
-
this.spinner = undefined;
|
|
93
104
|
}
|
|
94
105
|
handleEvent(e) {
|
|
95
106
|
const _a = e === null || e === void 0 ? void 0 : e.data, { type } = _a, rest = __rest(_a, ["type"]);
|
|
@@ -197,6 +208,8 @@ export class CasinoEngagementSuiteLuckywheel {
|
|
|
197
208
|
"tags": [],
|
|
198
209
|
"text": "Client custom styling via string"
|
|
199
210
|
},
|
|
211
|
+
"getter": false,
|
|
212
|
+
"setter": false,
|
|
200
213
|
"attribute": "client-styling",
|
|
201
214
|
"reflect": true,
|
|
202
215
|
"defaultValue": "''"
|
|
@@ -215,6 +228,8 @@ export class CasinoEngagementSuiteLuckywheel {
|
|
|
215
228
|
"tags": [],
|
|
216
229
|
"text": "Client custom styling via url"
|
|
217
230
|
},
|
|
231
|
+
"getter": false,
|
|
232
|
+
"setter": false,
|
|
218
233
|
"attribute": "client-styling-url",
|
|
219
234
|
"reflect": true,
|
|
220
235
|
"defaultValue": "''"
|
|
@@ -233,6 +248,8 @@ export class CasinoEngagementSuiteLuckywheel {
|
|
|
233
248
|
"tags": [],
|
|
234
249
|
"text": "Language of the widget"
|
|
235
250
|
},
|
|
251
|
+
"getter": false,
|
|
252
|
+
"setter": false,
|
|
236
253
|
"attribute": "language",
|
|
237
254
|
"reflect": false,
|
|
238
255
|
"defaultValue": "'en'"
|
|
@@ -251,6 +268,8 @@ export class CasinoEngagementSuiteLuckywheel {
|
|
|
251
268
|
"tags": [],
|
|
252
269
|
"text": "User's device type"
|
|
253
270
|
},
|
|
271
|
+
"getter": false,
|
|
272
|
+
"setter": false,
|
|
254
273
|
"attribute": "device",
|
|
255
274
|
"reflect": false,
|
|
256
275
|
"defaultValue": "'Mobile' as 'Mobile' | 'Tablet' | 'Desktop'"
|
|
@@ -274,7 +293,9 @@ export class CasinoEngagementSuiteLuckywheel {
|
|
|
274
293
|
"docs": {
|
|
275
294
|
"tags": [],
|
|
276
295
|
"text": "Active Luckywheel"
|
|
277
|
-
}
|
|
296
|
+
},
|
|
297
|
+
"getter": false,
|
|
298
|
+
"setter": false
|
|
278
299
|
},
|
|
279
300
|
"size": {
|
|
280
301
|
"type": "string",
|
|
@@ -290,6 +311,8 @@ export class CasinoEngagementSuiteLuckywheel {
|
|
|
290
311
|
"tags": [],
|
|
291
312
|
"text": "Wheel size"
|
|
292
313
|
},
|
|
314
|
+
"getter": false,
|
|
315
|
+
"setter": false,
|
|
293
316
|
"attribute": "size",
|
|
294
317
|
"reflect": false,
|
|
295
318
|
"defaultValue": "'440'"
|
|
@@ -308,6 +331,8 @@ export class CasinoEngagementSuiteLuckywheel {
|
|
|
308
331
|
"tags": [],
|
|
309
332
|
"text": "Content Direction"
|
|
310
333
|
},
|
|
334
|
+
"getter": false,
|
|
335
|
+
"setter": false,
|
|
311
336
|
"attribute": "contentdirection",
|
|
312
337
|
"reflect": false,
|
|
313
338
|
"defaultValue": "'anticlockwise'"
|