@everymatrix/casino-engagement-suite-tournament 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/casino-engagement-suite-tournament/casino-engagement-suite-tournament.esm.js +1 -1
- package/dist/casino-engagement-suite-tournament/index.esm.js +1 -1
- package/dist/casino-engagement-suite-tournament/p-399401c8.js +2 -0
- package/dist/casino-engagement-suite-tournament/p-575729c8.js +1 -0
- package/dist/casino-engagement-suite-tournament/{p-6d03bbf5.entry.js → p-f3795238.entry.js} +1 -1
- package/dist/cjs/casino-engagement-suite-progress-bar_3.cjs.entry.js +39 -13
- package/dist/cjs/{casino-engagement-suite-tournament-71606d08.js → casino-engagement-suite-tournament-c194e96a.js} +505 -10
- package/dist/cjs/casino-engagement-suite-tournament.cjs.js +2 -2
- package/dist/cjs/{index-4eb9b2e6.js → index-6ea4215d.js} +247 -145
- 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-tournament/casino-engagement-suite-tournament.js +36 -5
- package/dist/esm/casino-engagement-suite-progress-bar_3.entry.js +39 -13
- package/dist/esm/{casino-engagement-suite-tournament-d6f0ee89.js → casino-engagement-suite-tournament-18e62f35.js} +587 -92
- package/dist/esm/casino-engagement-suite-tournament.js +3 -3
- package/dist/esm/{index-3124114b.js → index-b5adca25.js} +247 -145
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/types/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.d.ts +1 -1
- package/package.json +1 -1
- package/dist/casino-engagement-suite-tournament/p-1cd75583.js +0 -2
- package/dist/casino-engagement-suite-tournament/p-c416546b.js +0 -1
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 casinoEngagementSuiteTournament = require('./casino-engagement-suite-tournament-
|
|
6
|
-
require('./index-
|
|
5
|
+
const casinoEngagementSuiteTournament = require('./casino-engagement-suite-tournament-c194e96a.js');
|
|
6
|
+
require('./index-6ea4215d.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-6ea4215d.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -6,7 +6,7 @@ import { LeaderboardPage, DialogType } from "../../utils/types";
|
|
|
6
6
|
import { isTournamentClosed } from "../../utils/bussiness";
|
|
7
7
|
import { renders } from "../../shared/renders";
|
|
8
8
|
import { messageReceiver, messageSender } from "../../utils/message";
|
|
9
|
-
import "../../../../../../svelte/general-animation-loading/
|
|
9
|
+
import "../../../../../../svelte/general-animation-loading/esnext/general-animation-loading";
|
|
10
10
|
import "../../../../../general-styling-wrapper/dist/types/index";
|
|
11
11
|
import "../../../../../casino-engagement-suite-progress-bar/dist/types/index";
|
|
12
12
|
export class CasinoEngagementSuiteTournament {
|
|
@@ -126,15 +126,30 @@ export class CasinoEngagementSuiteTournament {
|
|
|
126
126
|
this.dialog = Object.assign(Object.assign({}, this.dialog), { isOpen: false, onClose: undefined });
|
|
127
127
|
}
|
|
128
128
|
constructor() {
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
/**
|
|
130
|
+
* Language
|
|
131
|
+
*/
|
|
131
132
|
this.language = 'en';
|
|
133
|
+
/**
|
|
134
|
+
* if widget is showing
|
|
135
|
+
*/
|
|
132
136
|
this.show = false;
|
|
137
|
+
/**
|
|
138
|
+
* Client custom styling via string
|
|
139
|
+
*/
|
|
133
140
|
this.clientStyling = '';
|
|
141
|
+
/**
|
|
142
|
+
* Client custom styling via url
|
|
143
|
+
*/
|
|
134
144
|
this.clientStylingUrl = '';
|
|
145
|
+
/**
|
|
146
|
+
* Translation via url
|
|
147
|
+
*/
|
|
135
148
|
this.translationUrl = '';
|
|
149
|
+
/**
|
|
150
|
+
* User's device type
|
|
151
|
+
*/
|
|
136
152
|
this.device = 'Mobile';
|
|
137
|
-
this.leaderboardsInit = undefined;
|
|
138
153
|
this.tab = Tab.info;
|
|
139
154
|
this.locale = TRANSLATIONS;
|
|
140
155
|
this.tournamentItem = undefined;
|
|
@@ -152,7 +167,9 @@ export class CasinoEngagementSuiteTournament {
|
|
|
152
167
|
onClose: undefined
|
|
153
168
|
};
|
|
154
169
|
this.time = 0;
|
|
170
|
+
this.gifts = [];
|
|
155
171
|
this.newIdList = [];
|
|
172
|
+
this.labels = [];
|
|
156
173
|
// bind all renders
|
|
157
174
|
this.renders = {};
|
|
158
175
|
Object.keys(renders).forEach((key) => {
|
|
@@ -190,6 +207,8 @@ export class CasinoEngagementSuiteTournament {
|
|
|
190
207
|
"tags": [],
|
|
191
208
|
"text": "Language"
|
|
192
209
|
},
|
|
210
|
+
"getter": false,
|
|
211
|
+
"setter": false,
|
|
193
212
|
"attribute": "language",
|
|
194
213
|
"reflect": false,
|
|
195
214
|
"defaultValue": "'en'"
|
|
@@ -208,6 +227,8 @@ export class CasinoEngagementSuiteTournament {
|
|
|
208
227
|
"tags": [],
|
|
209
228
|
"text": "if widget is showing"
|
|
210
229
|
},
|
|
230
|
+
"getter": false,
|
|
231
|
+
"setter": false,
|
|
211
232
|
"attribute": "show",
|
|
212
233
|
"reflect": false,
|
|
213
234
|
"defaultValue": "false"
|
|
@@ -226,6 +247,8 @@ export class CasinoEngagementSuiteTournament {
|
|
|
226
247
|
"tags": [],
|
|
227
248
|
"text": "Client custom styling via string"
|
|
228
249
|
},
|
|
250
|
+
"getter": false,
|
|
251
|
+
"setter": false,
|
|
229
252
|
"attribute": "client-styling",
|
|
230
253
|
"reflect": true,
|
|
231
254
|
"defaultValue": "''"
|
|
@@ -244,6 +267,8 @@ export class CasinoEngagementSuiteTournament {
|
|
|
244
267
|
"tags": [],
|
|
245
268
|
"text": "Client custom styling via url"
|
|
246
269
|
},
|
|
270
|
+
"getter": false,
|
|
271
|
+
"setter": false,
|
|
247
272
|
"attribute": "client-styling-url",
|
|
248
273
|
"reflect": true,
|
|
249
274
|
"defaultValue": "''"
|
|
@@ -262,6 +287,8 @@ export class CasinoEngagementSuiteTournament {
|
|
|
262
287
|
"tags": [],
|
|
263
288
|
"text": "Translation via url"
|
|
264
289
|
},
|
|
290
|
+
"getter": false,
|
|
291
|
+
"setter": false,
|
|
265
292
|
"attribute": "translation-url",
|
|
266
293
|
"reflect": true,
|
|
267
294
|
"defaultValue": "''"
|
|
@@ -280,6 +307,8 @@ export class CasinoEngagementSuiteTournament {
|
|
|
280
307
|
"tags": [],
|
|
281
308
|
"text": "User's device type"
|
|
282
309
|
},
|
|
310
|
+
"getter": false,
|
|
311
|
+
"setter": false,
|
|
283
312
|
"attribute": "device",
|
|
284
313
|
"reflect": false,
|
|
285
314
|
"defaultValue": "'Mobile' as 'Mobile' | 'Tablet' | 'Desktop'"
|
|
@@ -303,7 +332,9 @@ export class CasinoEngagementSuiteTournament {
|
|
|
303
332
|
"docs": {
|
|
304
333
|
"tags": [],
|
|
305
334
|
"text": "Raw Leaderboards from API for Init"
|
|
306
|
-
}
|
|
335
|
+
},
|
|
336
|
+
"getter": false,
|
|
337
|
+
"setter": false
|
|
307
338
|
}
|
|
308
339
|
};
|
|
309
340
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
2
|
-
export { C as casino_engagement_suite_tournament } from './casino-engagement-suite-tournament-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-b5adca25.js';
|
|
2
|
+
export { C as casino_engagement_suite_tournament } from './casino-engagement-suite-tournament-18e62f35.js';
|
|
3
3
|
|
|
4
4
|
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)}";
|
|
5
5
|
const CasinoEngagementSuiteProgressBarStyle0 = casinoEngagementSuiteProgressBarCss;
|
|
@@ -7,6 +7,31 @@ const CasinoEngagementSuiteProgressBarStyle0 = casinoEngagementSuiteProgressBarC
|
|
|
7
7
|
const CasinoEngagementSuiteProgressBar = class {
|
|
8
8
|
constructor(hostRef) {
|
|
9
9
|
registerInstance(this, hostRef);
|
|
10
|
+
/**
|
|
11
|
+
* Value for the widget
|
|
12
|
+
*/
|
|
13
|
+
this.value = 0;
|
|
14
|
+
/**
|
|
15
|
+
* Shows disabled styles
|
|
16
|
+
*/
|
|
17
|
+
this.disabled = false;
|
|
18
|
+
/**
|
|
19
|
+
* Hide percent value
|
|
20
|
+
*/
|
|
21
|
+
this.hidePercent = false;
|
|
22
|
+
/**
|
|
23
|
+
* Constantly animates
|
|
24
|
+
*/
|
|
25
|
+
this.indeterminate = false;
|
|
26
|
+
/**
|
|
27
|
+
* Client custom styling via string
|
|
28
|
+
*/
|
|
29
|
+
this.clientStyling = '';
|
|
30
|
+
/**
|
|
31
|
+
* Client custom styling via url
|
|
32
|
+
*/
|
|
33
|
+
this.clientStylingUrl = '';
|
|
34
|
+
this.limitStylingAppends = false;
|
|
10
35
|
this.setClientStyling = () => {
|
|
11
36
|
let sheet = document.createElement('style');
|
|
12
37
|
sheet.innerHTML = this.clientStyling;
|
|
@@ -25,13 +50,6 @@ const CasinoEngagementSuiteProgressBar = class {
|
|
|
25
50
|
console.log('Error ', err);
|
|
26
51
|
});
|
|
27
52
|
};
|
|
28
|
-
this.value = 0;
|
|
29
|
-
this.disabled = false;
|
|
30
|
-
this.hidePercent = false;
|
|
31
|
-
this.indeterminate = false;
|
|
32
|
-
this.clientStyling = '';
|
|
33
|
-
this.clientStylingUrl = '';
|
|
34
|
-
this.limitStylingAppends = false;
|
|
35
53
|
}
|
|
36
54
|
componentDidRender() {
|
|
37
55
|
if (!this.limitStylingAppends && this.host) {
|
|
@@ -87,6 +105,18 @@ const GeneralStylingWrapperStyle0 = generalStylingWrapperCss;
|
|
|
87
105
|
const GeneralStylingWrapper = class {
|
|
88
106
|
constructor(hostRef) {
|
|
89
107
|
registerInstance(this, hostRef);
|
|
108
|
+
/**
|
|
109
|
+
* Client custom styling via inline styles
|
|
110
|
+
*/
|
|
111
|
+
this.clientStyling = '';
|
|
112
|
+
/**
|
|
113
|
+
* Client custom styling via url
|
|
114
|
+
*/
|
|
115
|
+
this.clientStylingUrl = '';
|
|
116
|
+
/**
|
|
117
|
+
* Translation via url
|
|
118
|
+
*/
|
|
119
|
+
this.translationUrl = '';
|
|
90
120
|
this.stylingAppends = false;
|
|
91
121
|
this.setClientStyling = () => {
|
|
92
122
|
let sheet = document.createElement('style');
|
|
@@ -108,10 +138,6 @@ const GeneralStylingWrapper = class {
|
|
|
108
138
|
console.log('error ', err);
|
|
109
139
|
});
|
|
110
140
|
};
|
|
111
|
-
this.clientStyling = '';
|
|
112
|
-
this.clientStylingUrl = '';
|
|
113
|
-
this.translationUrl = '';
|
|
114
|
-
this.targetTranslations = undefined;
|
|
115
141
|
}
|
|
116
142
|
componentDidRender() {
|
|
117
143
|
// start custom styling area
|