@everymatrix/casino-engagement-suite-jackpot-details 1.44.0 → 1.45.2
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-jackpot-details/casino-engagement-suite-jackpot-details.esm.js +1 -1
- package/dist/casino-engagement-suite-jackpot-details/p-33f229da.entry.js +1 -0
- package/dist/casino-engagement-suite-jackpot-details/p-be66309f.entry.js +1 -0
- package/dist/casino-engagement-suite-jackpot-details/p-c7ee604a.js +2 -0
- package/dist/casino-engagement-suite-jackpot-details/p-e1255160.js +1 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/casino-engagement-suite-jackpot-details.cjs.entry.js +286 -284
- package/dist/cjs/casino-engagement-suite-jackpot-details.cjs.js +17 -11
- package/dist/cjs/casino-engagement-suite-progress-bar.cjs.entry.js +58 -75
- package/dist/cjs/index-d83151b6.js +1331 -0
- package/dist/cjs/loader.cjs.js +7 -13
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/casino-engagement-suite-jackpot-details/casino-engagement-suite-jackpot-details.css +95 -104
- package/dist/collection/components/casino-engagement-suite-jackpot-details/casino-engagement-suite-jackpot-details.js +476 -526
- package/dist/collection/components/casino-engagement-suite-jackpot-details/index.js +1 -0
- package/dist/collection/utils/index.js +3 -3
- package/dist/collection/utils/locale.utils.js +24 -22
- package/dist/collection/utils/utils.js +3 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/casino-engagement-suite-jackpot-details.entry.js +286 -284
- package/dist/esm/casino-engagement-suite-jackpot-details.js +14 -11
- package/dist/esm/casino-engagement-suite-progress-bar.entry.js +58 -75
- package/dist/esm/index-0237d1e2.js +1303 -0
- package/dist/esm/loader.js +7 -13
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +14 -19
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-jackpot-details/.stencil/packages/stencil/casino-engagement-suite-jackpot-details/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-jackpot-details/.stencil/packages/stencil/casino-engagement-suite-jackpot-details/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/casino-engagement-suite-jackpot-details/casino-engagement-suite-jackpot-details.d.ts +89 -88
- package/dist/types/components/casino-engagement-suite-jackpot-details/index.d.ts +1 -0
- package/dist/types/components.d.ts +19 -2
- package/dist/types/models/index.d.ts +38 -37
- package/dist/types/stencil-public-runtime.d.ts +142 -33
- package/dist/types/utils/utils.d.ts +1 -0
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +13 -1
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/loader/package.json +1 -0
- package/package.json +12 -2
- package/dist/casino-engagement-suite-jackpot-details/p-0135e830.js +0 -1
- package/dist/casino-engagement-suite-jackpot-details/p-8fee813c.entry.js +0 -1
- package/dist/casino-engagement-suite-jackpot-details/p-b361748c.entry.js +0 -1
- package/dist/cjs/index-84a14c86.js +0 -1349
- package/dist/components/casino-engagement-suite-jackpot-details.d.ts +0 -11
- package/dist/components/casino-engagement-suite-jackpot-details.js +0 -439
- package/dist/components/casino-engagement-suite-progress-bar.js +0 -110
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/esm/index-5707e619.js +0 -1322
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/casino-engagement-suite-jackpot-details/.stencil/packages/casino-engagement-suite-jackpot-details/stencil.config.d.ts +0 -2
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-d83151b6.js');
|
|
6
|
+
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
4
7
|
|
|
5
8
|
/*
|
|
6
|
-
Stencil Client Patch Browser
|
|
9
|
+
Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
|
|
7
10
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
var patchBrowser = () => {
|
|
12
|
+
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('casino-engagement-suite-jackpot-details.cjs.js', document.baseURI).href));
|
|
13
|
+
const opts = {};
|
|
14
|
+
if (importMeta !== "") {
|
|
15
|
+
opts.resourcesUrl = new URL(".", importMeta).href;
|
|
16
|
+
}
|
|
17
|
+
return index.promiseResolve(opts);
|
|
15
18
|
};
|
|
16
19
|
|
|
17
|
-
patchBrowser().then(options => {
|
|
18
|
-
|
|
20
|
+
patchBrowser().then(async (options) => {
|
|
21
|
+
await appGlobals.globalScripts();
|
|
22
|
+
return index.bootstrapLazy([["casino-engagement-suite-jackpot-details.cjs",[[1,"casino-engagement-suite-jackpot-details",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"jackpot":[16],"jackpotChangeStatusRequest":[1040],"language":[1],"gameSlug":[1,"game-slug"],"device":[1],"limitStylingAppends":[32],"timer":[32],"disabledStatus":[32],"activeTab":[32],"visibleGames":[32],"enabled":[32],"balance":[32],"winBalance":[32],"showDetails":[32],"jackpotEndTime":[32],"tooltip":[32]},[[8,"message","handleEvent"],[9,"resize","handleResize"]],{"jackpot":["handleJackpotUpdate"]}]]],["casino-engagement-suite-progress-bar.cjs",[[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"hidePercent":[4,"hide-percent"],"indeterminate":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}]]]], options);
|
|
19
23
|
});
|
|
24
|
+
|
|
25
|
+
exports.setNonce = index.setNonce;
|
|
@@ -2,87 +2,70 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-d83151b6.js');
|
|
6
6
|
|
|
7
|
-
const casinoEngagementSuiteProgressBarCss = ":host{display:block;font-family:inherit}:host(.Desktop) .ProgressBarPercent{font-size:14px;line-height:14px}@keyframes indeterminate{0%{left:-200%;right:100%}60%{left:110%;right:-10%}to{left:110%;right:-10%}}.ProgressBarBackground{height:8px;background-color:var(--emw--color-
|
|
7
|
+
const casinoEngagementSuiteProgressBarCss = ":host{display:block;font-family:inherit}:host(.Desktop) .ProgressBarPercent{font-size:var(--emw--font-size-small, 14px);line-height:14px}@keyframes indeterminate{0%{left:-200%;right:100%}60%{left:110%;right:-10%}to{left:110%;right:-10%}}.ProgressBarBackground{height:8px;background-color:var(--emw--color-gray-300, #666178);border-radius:var(--emw--border-radius-small, 4px);position:relative;overflow:hidden}.ProgressBarLine{position:absolute;left:0;top:0;bottom:0;border-radius:var(--emw--border-radius-small, 4px);background:var(--emw--engagement-suite-gradient-button, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%));transition:width ease-out 0.3s}.ProgressBarLine.Indeterminate{animation:indeterminate 1s linear infinite}.ProgressBarInfo{margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}.ProgressBarPercent{font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-x-small, 12px);line-height:12px}.HidePercent .ProgressBarPercent{display:none}.ProgressBar:not(.Disabled) .ProgressBarPercent{background:var(--emw--engagement-suite-gradient-button, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ProgressBar.Disabled .ProgressBarPercent{color:var(--emw--color-gray-300, #666178)}.ProgressBar.Disabled .ProgressBarLine{background:var(--emw--color-background-secondary, #474668)}";
|
|
8
|
+
const CasinoEngagementSuiteProgressBarStyle0 = casinoEngagementSuiteProgressBarCss;
|
|
8
9
|
|
|
9
10
|
const CasinoEngagementSuiteProgressBar = class {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
this.setClientStyling = () => {
|
|
38
|
-
let sheet = document.createElement('style');
|
|
39
|
-
sheet.innerHTML = this.clientStyling;
|
|
40
|
-
this.host.prepend(sheet);
|
|
41
|
-
};
|
|
42
|
-
this.setClientStylingURL = () => {
|
|
43
|
-
let url = new URL(this.clientStylingUrl);
|
|
44
|
-
let cssFile = document.createElement('style');
|
|
45
|
-
fetch(url.href)
|
|
46
|
-
.then((res) => res.text())
|
|
47
|
-
.then((data) => {
|
|
48
|
-
cssFile.innerHTML = data;
|
|
49
|
-
setTimeout(() => { this.host.prepend(cssFile); }, 1);
|
|
50
|
-
})
|
|
51
|
-
.catch((err) => {
|
|
52
|
-
console.log('Error ', err);
|
|
53
|
-
});
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
componentDidRender() {
|
|
57
|
-
if (!this.limitStylingAppends && this.host) {
|
|
58
|
-
if (this.clientStyling)
|
|
59
|
-
this.setClientStyling();
|
|
60
|
-
if (this.clientStylingUrl)
|
|
61
|
-
this.setClientStylingURL();
|
|
62
|
-
this.limitStylingAppends = true;
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.setClientStyling = () => {
|
|
14
|
+
let sheet = document.createElement('style');
|
|
15
|
+
sheet.innerHTML = this.clientStyling;
|
|
16
|
+
this.host.prepend(sheet);
|
|
17
|
+
};
|
|
18
|
+
this.setClientStylingURL = () => {
|
|
19
|
+
let url = new URL(this.clientStylingUrl);
|
|
20
|
+
let cssFile = document.createElement('style');
|
|
21
|
+
fetch(url.href)
|
|
22
|
+
.then((res) => res.text())
|
|
23
|
+
.then((data) => {
|
|
24
|
+
cssFile.innerHTML = data;
|
|
25
|
+
setTimeout(() => { this.host.prepend(cssFile); }, 1);
|
|
26
|
+
})
|
|
27
|
+
.catch((err) => {
|
|
28
|
+
console.log('Error ', err);
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
this.value = 0;
|
|
32
|
+
this.disabled = false;
|
|
33
|
+
this.hidePercent = false;
|
|
34
|
+
this.indeterminate = false;
|
|
35
|
+
this.clientStyling = '';
|
|
36
|
+
this.clientStylingUrl = '';
|
|
37
|
+
this.limitStylingAppends = false;
|
|
63
38
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
getProgressBarLineTemplate() {
|
|
74
|
-
if (this.indeterminate) {
|
|
75
|
-
return index.h("div", { class: "ProgressBarLine Indeterminate", part: "ProgressBarLine Indeterminate" });
|
|
39
|
+
componentDidRender() {
|
|
40
|
+
if (!this.limitStylingAppends && this.host) {
|
|
41
|
+
if (this.clientStyling)
|
|
42
|
+
this.setClientStyling();
|
|
43
|
+
if (this.clientStylingUrl)
|
|
44
|
+
this.setClientStylingURL();
|
|
45
|
+
this.limitStylingAppends = true;
|
|
46
|
+
}
|
|
76
47
|
}
|
|
77
|
-
|
|
78
|
-
|
|
48
|
+
getProgressBarClasses() {
|
|
49
|
+
return {
|
|
50
|
+
ProgressBar: true,
|
|
51
|
+
Completed: this.value === 100,
|
|
52
|
+
Disabled: this.disabled,
|
|
53
|
+
HidePercent: this.hidePercent || this.indeterminate
|
|
54
|
+
};
|
|
79
55
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
56
|
+
getProgressBarLineTemplate() {
|
|
57
|
+
if (this.indeterminate) {
|
|
58
|
+
return index.h("div", { class: "ProgressBarLine Indeterminate", part: "ProgressBarLine Indeterminate" });
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
return index.h("div", { class: "ProgressBarLine", part: "ProgressBarLine", style: { width: this.value + '%' } });
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
render() {
|
|
65
|
+
return index.h("div", { key: 'ecce3a26a92d2e090c1db84bdc1bdbeb505080ed', class: this.getProgressBarClasses(), part: "ProgressBar" }, index.h("div", { key: '649fe1103d222200f2a1ad3b5967e37da1f1ab3d', class: "ProgressBarInfo", part: "ProgressBarInfo" }, index.h("slot", { key: '49dc180eedd823f0027f75099813fb9d91bcd938', name: "Title" }, index.h("div", { key: 'e6e59da3fe7bbcb37e118e7fd23a8ff35587aca5' })), index.h("slot", { key: '3dc8e5fd1dbc8c268b9c76e393b751cb53605e7e', name: "Percent" }, index.h("div", { key: '6a9e880f3ee3c4f26e8577c69be5db5f8e2d10ad', class: "ProgressBarPercent", part: "ProgressBarPercent" }, this.value, "%"))), index.h("div", { key: '141106e77caad7b04bb199f911e87c0c6f0adc2d', class: "ProgressBarBackground", part: "ProgressBarBackground" }, this.getProgressBarLineTemplate()));
|
|
66
|
+
}
|
|
67
|
+
get host() { return index.getElement(this); }
|
|
85
68
|
};
|
|
86
|
-
CasinoEngagementSuiteProgressBar.style =
|
|
69
|
+
CasinoEngagementSuiteProgressBar.style = CasinoEngagementSuiteProgressBarStyle0;
|
|
87
70
|
|
|
88
71
|
exports.casino_engagement_suite_progress_bar = CasinoEngagementSuiteProgressBar;
|