@everymatrix/casino-tournament-info 1.0.69
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-tournament-info/casino-tournament-info.esm.js +1 -0
- package/dist/casino-tournament-info/index.esm.js +0 -0
- package/dist/casino-tournament-info/p-26566da9.entry.js +9 -0
- package/dist/casino-tournament-info/p-4a6f6b25.js +2 -0
- package/dist/casino-tournament-info/p-e1255160.js +1 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/casino-tournament-buttons_4.cjs.entry.js +7139 -0
- package/dist/cjs/casino-tournament-info.cjs.js +25 -0
- package/dist/cjs/index-770591f4.js +1336 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/collection/collection-manifest.json +31 -0
- package/dist/collection/components/casino-tournament-info/casino-tournament-info.css +70 -0
- package/dist/collection/components/casino-tournament-info/casino-tournament-info.js +782 -0
- package/dist/collection/components/casino-tournament-info/index.js +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/locale.utils.js +329 -0
- package/dist/collection/utils/utils.js +3 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/casino-tournament-buttons_4.entry.js +7132 -0
- package/dist/esm/casino-tournament-info.js +20 -0
- package/dist/esm/index-9aa45abf.js +1308 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +17 -0
- package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/casino-tournament-info/.stencil/packages/stencil/casino-tournament-info/stencil.config.d.ts +2 -0
- package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/casino-tournament-info/.stencil/packages/stencil/casino-tournament-info/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/casino-tournament-info/casino-tournament-info.d.ts +156 -0
- package/dist/types/components/casino-tournament-info/index.d.ts +1 -0
- package/dist/types/components.d.ts +309 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1674 -0
- package/dist/types/utils/locale.utils.d.ts +3 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +31 -0
|
@@ -0,0 +1,782 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { lowerCaseFirstLetter } from "../../utils/utils";
|
|
3
|
+
import "../../../../../casino-tournament-duration/dist/types/index";
|
|
4
|
+
import "../../../../../casino-tournament-prizes/dist/types/index";
|
|
5
|
+
import "../../../../../casino-tournament-buttons/dist/types/index";
|
|
6
|
+
import { translate, getTranslations, getTranslationsByUrl } from "../../utils/locale.utils";
|
|
7
|
+
import moment from "moment";
|
|
8
|
+
export class CasinoTournamentInfo {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.formatDate = () => {
|
|
11
|
+
const dateOptions = { month: 'long' };
|
|
12
|
+
const startTime = this.tournamentInfo.startTime;
|
|
13
|
+
const state = this.tournamentInfo.state;
|
|
14
|
+
let currentDate = new Date(startTime);
|
|
15
|
+
const setTranslation = () => {
|
|
16
|
+
return (state === 'Running' || state == 'Closing' || state == 'Closed') ?
|
|
17
|
+
translate('startedAt', this.language) :
|
|
18
|
+
translate('startingAt', this.language);
|
|
19
|
+
};
|
|
20
|
+
if (this.shortStart) {
|
|
21
|
+
let startTimeAsString = moment(currentDate).format(this.shortStartFormat);
|
|
22
|
+
this.startDate = (state === 'Running' || state == 'Closing' || state == 'Closed') ?
|
|
23
|
+
translate('startedAtWithTime', this.language) + startTimeAsString :
|
|
24
|
+
translate('startingAtWithTime', this.language) + startTimeAsString;
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
let currentMonthKey = new Intl.DateTimeFormat('en', dateOptions).format(currentDate);
|
|
28
|
+
let currentDay = currentDate.getDate();
|
|
29
|
+
let currentHour = currentDate.toLocaleString('en-GB', { hour: 'numeric', minute: 'numeric', hour12: false });
|
|
30
|
+
this.startDate =
|
|
31
|
+
`${currentDay}` + ' ' +
|
|
32
|
+
translate(`${currentMonthKey}`, this.language) + ', ' +
|
|
33
|
+
setTranslation() +
|
|
34
|
+
` ${currentHour}`;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
this.detailsAction = (tournamentId) => {
|
|
38
|
+
window.postMessage({ type: 'TournamentDetailsClicked', tournamentId }, window.location.href);
|
|
39
|
+
};
|
|
40
|
+
this.endpoint = undefined;
|
|
41
|
+
this.nameOrTitle = undefined;
|
|
42
|
+
this.scoreCriteria = undefined;
|
|
43
|
+
this.tournamentId = undefined;
|
|
44
|
+
this.session = undefined;
|
|
45
|
+
this.userId = undefined;
|
|
46
|
+
this.language = undefined;
|
|
47
|
+
this.termsUrl = '#';
|
|
48
|
+
this.keepContext = false;
|
|
49
|
+
this.useGroup = false;
|
|
50
|
+
this.align = 'center';
|
|
51
|
+
this.showDates = false;
|
|
52
|
+
this.showPrizes = false;
|
|
53
|
+
this.showButton = false;
|
|
54
|
+
this.shortStart = false;
|
|
55
|
+
this.seeGames = false;
|
|
56
|
+
this.useEvent = false;
|
|
57
|
+
this.startTime = undefined;
|
|
58
|
+
this.endTime = undefined;
|
|
59
|
+
this.minBetCount = undefined;
|
|
60
|
+
this.prizes = undefined;
|
|
61
|
+
this.shortStartFormat = 'DD MMM YYYY';
|
|
62
|
+
this.clientStyling = '';
|
|
63
|
+
this.clientStylingUrl = '';
|
|
64
|
+
this.enrolled = false;
|
|
65
|
+
this.loginEvent = undefined;
|
|
66
|
+
this.loginUrl = undefined;
|
|
67
|
+
this.registerEvent = undefined;
|
|
68
|
+
this.registerUrl = undefined;
|
|
69
|
+
this.currency = undefined;
|
|
70
|
+
this.bonusCode = undefined;
|
|
71
|
+
this.showReadMore = false;
|
|
72
|
+
this.translationUrl = '';
|
|
73
|
+
this.translationData = undefined;
|
|
74
|
+
this.limitStylingAppends = false;
|
|
75
|
+
this.startDate = undefined;
|
|
76
|
+
this.tournamentInfo = undefined;
|
|
77
|
+
}
|
|
78
|
+
async infoCompletedHandler(event) {
|
|
79
|
+
if (event.detail && this.useEvent) {
|
|
80
|
+
if (this.tournamentId && this.tournamentId != event.detail.id)
|
|
81
|
+
return;
|
|
82
|
+
if (this.translationUrl) {
|
|
83
|
+
await getTranslationsByUrl(this.translationUrl);
|
|
84
|
+
}
|
|
85
|
+
else if (this.translationData) {
|
|
86
|
+
await getTranslations(JSON.parse(this.translationData));
|
|
87
|
+
}
|
|
88
|
+
this.tournamentInfo = event.detail;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
async componentWillLoad() {
|
|
92
|
+
if (!this.useEvent) {
|
|
93
|
+
if (this.translationUrl) {
|
|
94
|
+
return getTranslationsByUrl(this.translationUrl);
|
|
95
|
+
}
|
|
96
|
+
else if (this.translationData) {
|
|
97
|
+
return getTranslations(JSON.parse(this.translationData));
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
setTournamentInfo() {
|
|
102
|
+
this.tournamentInfo = {
|
|
103
|
+
nameOrTitle: this.nameOrTitle,
|
|
104
|
+
scoreCriteria: lowerCaseFirstLetter(this.scoreCriteria),
|
|
105
|
+
termsUrl: this.termsUrl,
|
|
106
|
+
startTime: this.startTime,
|
|
107
|
+
endTime: this.endTime,
|
|
108
|
+
prizes: this.prizes,
|
|
109
|
+
minBetCount: this.minBetCount
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
componentWillRender() {
|
|
113
|
+
this.setTournamentInfo();
|
|
114
|
+
if (this.tournamentInfo.startTime) {
|
|
115
|
+
this.formatDate();
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
componentDidRender() {
|
|
119
|
+
if (!this.limitStylingAppends && this.host) {
|
|
120
|
+
if (this.clientStyling)
|
|
121
|
+
this.setClientStyling();
|
|
122
|
+
if (this.clientStylingUrl)
|
|
123
|
+
this.setClientStylingURL();
|
|
124
|
+
this.limitStylingAppends = true;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
setClientStyling() {
|
|
128
|
+
const sheet = new CSSStyleSheet();
|
|
129
|
+
// @ts-ignore
|
|
130
|
+
sheet.replace(this.clientStyling);
|
|
131
|
+
// @ts-ignore
|
|
132
|
+
this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
|
|
133
|
+
}
|
|
134
|
+
setClientStylingURL() {
|
|
135
|
+
let url = new URL(this.clientStylingUrl);
|
|
136
|
+
fetch(url.href)
|
|
137
|
+
.then((res) => res.text())
|
|
138
|
+
.then((data) => {
|
|
139
|
+
const sheet = new CSSStyleSheet();
|
|
140
|
+
// @ts-ignore
|
|
141
|
+
sheet.replace(data);
|
|
142
|
+
// @ts-ignore
|
|
143
|
+
this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
tournamentGamesClicked(id) {
|
|
147
|
+
window.postMessage({ type: 'tournamentGamesClicked', id }, window.location.href);
|
|
148
|
+
}
|
|
149
|
+
render() {
|
|
150
|
+
if (this.tournamentInfo) {
|
|
151
|
+
return h("div", { key: 'd6c39acb71a8a267d46dd4e3055f8a51eb1a4473', class: "TournamentInfoWrap" }, h("div", { key: '98d7d74f0532652c85e5970fd28c1658fa970642', class: `TournamentInfo ${this.align}`, part: "TournamentInfo" }, h("h1", { key: 'f3afe0cfa5c9ebac1e6638d852e64369616bfef6', class: "Title" }, this.tournamentInfo.nameOrTitle), h("div", { key: 'f4f4bcb63d3d492abccbaa86682f34208aa5d1e4', class: "Details" }, h("p", { key: '4d2875c8507f6db2c16f055810f82942406007b4', class: "Score" }, translate('scoreCriteria', this.language), ": ", translate(this.tournamentInfo.scoreCriteria, this.language), " (", translate('minbet', this.language), ": ", this.tournamentInfo.minBetCount, ")"), this.showDates && h("p", { key: '00fae2420d9c6e6eafe9a2f8c378198638b88981', class: "Dates" }, this.startDate), this.seeGames && h("p", { key: '4a22edfcf8a06a3c48b4d6280ae6a6bc3c824905', class: "SeeGames" }, translate('seegames', this.language), ":", h("a", { key: '44a29b2e941bd03febd124082998262357fc9885', class: "GameLink", href: this.tournamentInfo.termsUrl || '#', target: this.keepContext == true ? '_self' : '_blank', onClick: () => this.tournamentGamesClicked(this.tournamentId) }, " ", translate('here', this.language))), this.showButton &&
|
|
152
|
+
h("div", { key: '19b176dd5d021856fa55016f64a67b21f4e16f04', class: "InfoButtons" }, h("casino-tournament-buttons", { key: '30820e16c97365a7b86387e6bcb462c054b99ecf', enrolled: this.enrolled, session: this.session, endpoint: this.endpoint, language: this.language, "tournament-id": this.tournamentId, "login-event": this.loginEvent, "login-url": this.loginUrl, "register-event": this.registerEvent, "register-url": this.registerUrl, currency: this.currency, "bonus-code": this.bonusCode, "show-read-more": this.showReadMore, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "translation-data": this.translationData }))), this.showPrizes && h("casino-tournament-prizes", { key: 'c7bfdeab8b12f2b069123309bb9ace7ac409feff', "raw-prizes": JSON.stringify(this.tournamentInfo.prizes), "use-event": "false", "use-group": this.useGroup, language: this.language, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl }), h("casino-tournament-duration", { key: '717a439c994a5dc6fee28be78cca68def8202e16', exportparts: "Remaining,ProgressBar,ProgressBarFill,ProgressBarFillStarting,ProgressBarFillEnd,StartDate,EndDate", "start-time": this.tournamentInfo.startTime, "end-time": this.tournamentInfo.endTime, language: this.language, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "translation-data": this.translationData })));
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
static get is() { return "casino-tournament-info"; }
|
|
156
|
+
static get encapsulation() { return "shadow"; }
|
|
157
|
+
static get originalStyleUrls() {
|
|
158
|
+
return {
|
|
159
|
+
"$": ["casino-tournament-info.scss"]
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
static get styleUrls() {
|
|
163
|
+
return {
|
|
164
|
+
"$": ["casino-tournament-info.css"]
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
static get properties() {
|
|
168
|
+
return {
|
|
169
|
+
"endpoint": {
|
|
170
|
+
"type": "string",
|
|
171
|
+
"mutable": false,
|
|
172
|
+
"complexType": {
|
|
173
|
+
"original": "string",
|
|
174
|
+
"resolved": "string",
|
|
175
|
+
"references": {}
|
|
176
|
+
},
|
|
177
|
+
"required": false,
|
|
178
|
+
"optional": true,
|
|
179
|
+
"docs": {
|
|
180
|
+
"tags": [],
|
|
181
|
+
"text": "The NWA endpoint"
|
|
182
|
+
},
|
|
183
|
+
"attribute": "endpoint",
|
|
184
|
+
"reflect": false
|
|
185
|
+
},
|
|
186
|
+
"nameOrTitle": {
|
|
187
|
+
"type": "string",
|
|
188
|
+
"mutable": false,
|
|
189
|
+
"complexType": {
|
|
190
|
+
"original": "string",
|
|
191
|
+
"resolved": "string",
|
|
192
|
+
"references": {}
|
|
193
|
+
},
|
|
194
|
+
"required": false,
|
|
195
|
+
"optional": true,
|
|
196
|
+
"docs": {
|
|
197
|
+
"tags": [],
|
|
198
|
+
"text": "Tournament name or title"
|
|
199
|
+
},
|
|
200
|
+
"attribute": "name-or-title",
|
|
201
|
+
"reflect": false
|
|
202
|
+
},
|
|
203
|
+
"scoreCriteria": {
|
|
204
|
+
"type": "string",
|
|
205
|
+
"mutable": false,
|
|
206
|
+
"complexType": {
|
|
207
|
+
"original": "string",
|
|
208
|
+
"resolved": "string",
|
|
209
|
+
"references": {}
|
|
210
|
+
},
|
|
211
|
+
"required": false,
|
|
212
|
+
"optional": true,
|
|
213
|
+
"docs": {
|
|
214
|
+
"tags": [],
|
|
215
|
+
"text": "Tournament score criteria"
|
|
216
|
+
},
|
|
217
|
+
"attribute": "score-criteria",
|
|
218
|
+
"reflect": false
|
|
219
|
+
},
|
|
220
|
+
"tournamentId": {
|
|
221
|
+
"type": "string",
|
|
222
|
+
"mutable": false,
|
|
223
|
+
"complexType": {
|
|
224
|
+
"original": "string",
|
|
225
|
+
"resolved": "string",
|
|
226
|
+
"references": {}
|
|
227
|
+
},
|
|
228
|
+
"required": false,
|
|
229
|
+
"optional": true,
|
|
230
|
+
"docs": {
|
|
231
|
+
"tags": [],
|
|
232
|
+
"text": "Tournament ID"
|
|
233
|
+
},
|
|
234
|
+
"attribute": "tournament-id",
|
|
235
|
+
"reflect": false
|
|
236
|
+
},
|
|
237
|
+
"session": {
|
|
238
|
+
"type": "string",
|
|
239
|
+
"mutable": false,
|
|
240
|
+
"complexType": {
|
|
241
|
+
"original": "string",
|
|
242
|
+
"resolved": "string",
|
|
243
|
+
"references": {}
|
|
244
|
+
},
|
|
245
|
+
"required": false,
|
|
246
|
+
"optional": true,
|
|
247
|
+
"docs": {
|
|
248
|
+
"tags": [],
|
|
249
|
+
"text": "The NWA session"
|
|
250
|
+
},
|
|
251
|
+
"attribute": "session",
|
|
252
|
+
"reflect": false
|
|
253
|
+
},
|
|
254
|
+
"userId": {
|
|
255
|
+
"type": "string",
|
|
256
|
+
"mutable": false,
|
|
257
|
+
"complexType": {
|
|
258
|
+
"original": "string",
|
|
259
|
+
"resolved": "string",
|
|
260
|
+
"references": {}
|
|
261
|
+
},
|
|
262
|
+
"required": false,
|
|
263
|
+
"optional": true,
|
|
264
|
+
"docs": {
|
|
265
|
+
"tags": [],
|
|
266
|
+
"text": "User ID"
|
|
267
|
+
},
|
|
268
|
+
"attribute": "user-id",
|
|
269
|
+
"reflect": false
|
|
270
|
+
},
|
|
271
|
+
"language": {
|
|
272
|
+
"type": "string",
|
|
273
|
+
"mutable": false,
|
|
274
|
+
"complexType": {
|
|
275
|
+
"original": "string",
|
|
276
|
+
"resolved": "string",
|
|
277
|
+
"references": {}
|
|
278
|
+
},
|
|
279
|
+
"required": true,
|
|
280
|
+
"optional": false,
|
|
281
|
+
"docs": {
|
|
282
|
+
"tags": [],
|
|
283
|
+
"text": "Widget language to show"
|
|
284
|
+
},
|
|
285
|
+
"attribute": "language",
|
|
286
|
+
"reflect": false
|
|
287
|
+
},
|
|
288
|
+
"termsUrl": {
|
|
289
|
+
"type": "string",
|
|
290
|
+
"mutable": false,
|
|
291
|
+
"complexType": {
|
|
292
|
+
"original": "string",
|
|
293
|
+
"resolved": "string",
|
|
294
|
+
"references": {}
|
|
295
|
+
},
|
|
296
|
+
"required": false,
|
|
297
|
+
"optional": true,
|
|
298
|
+
"docs": {
|
|
299
|
+
"tags": [],
|
|
300
|
+
"text": "Terms and conditions url"
|
|
301
|
+
},
|
|
302
|
+
"attribute": "terms-url",
|
|
303
|
+
"reflect": false,
|
|
304
|
+
"defaultValue": "'#'"
|
|
305
|
+
},
|
|
306
|
+
"keepContext": {
|
|
307
|
+
"type": "boolean",
|
|
308
|
+
"mutable": false,
|
|
309
|
+
"complexType": {
|
|
310
|
+
"original": "boolean",
|
|
311
|
+
"resolved": "boolean",
|
|
312
|
+
"references": {}
|
|
313
|
+
},
|
|
314
|
+
"required": false,
|
|
315
|
+
"optional": true,
|
|
316
|
+
"docs": {
|
|
317
|
+
"tags": [],
|
|
318
|
+
"text": "If see games link keep context"
|
|
319
|
+
},
|
|
320
|
+
"attribute": "keep-context",
|
|
321
|
+
"reflect": false,
|
|
322
|
+
"defaultValue": "false"
|
|
323
|
+
},
|
|
324
|
+
"useGroup": {
|
|
325
|
+
"type": "boolean",
|
|
326
|
+
"mutable": false,
|
|
327
|
+
"complexType": {
|
|
328
|
+
"original": "boolean",
|
|
329
|
+
"resolved": "boolean",
|
|
330
|
+
"references": {}
|
|
331
|
+
},
|
|
332
|
+
"required": false,
|
|
333
|
+
"optional": true,
|
|
334
|
+
"docs": {
|
|
335
|
+
"tags": [],
|
|
336
|
+
"text": "Tournament prizes display as group"
|
|
337
|
+
},
|
|
338
|
+
"attribute": "use-group",
|
|
339
|
+
"reflect": false,
|
|
340
|
+
"defaultValue": "false"
|
|
341
|
+
},
|
|
342
|
+
"align": {
|
|
343
|
+
"type": "string",
|
|
344
|
+
"mutable": false,
|
|
345
|
+
"complexType": {
|
|
346
|
+
"original": "string",
|
|
347
|
+
"resolved": "string",
|
|
348
|
+
"references": {}
|
|
349
|
+
},
|
|
350
|
+
"required": false,
|
|
351
|
+
"optional": true,
|
|
352
|
+
"docs": {
|
|
353
|
+
"tags": [],
|
|
354
|
+
"text": "Tournament info text align"
|
|
355
|
+
},
|
|
356
|
+
"attribute": "align",
|
|
357
|
+
"reflect": false,
|
|
358
|
+
"defaultValue": "'center'"
|
|
359
|
+
},
|
|
360
|
+
"showDates": {
|
|
361
|
+
"type": "boolean",
|
|
362
|
+
"mutable": false,
|
|
363
|
+
"complexType": {
|
|
364
|
+
"original": "boolean",
|
|
365
|
+
"resolved": "boolean",
|
|
366
|
+
"references": {}
|
|
367
|
+
},
|
|
368
|
+
"required": false,
|
|
369
|
+
"optional": true,
|
|
370
|
+
"docs": {
|
|
371
|
+
"tags": [],
|
|
372
|
+
"text": "Show tournament dates"
|
|
373
|
+
},
|
|
374
|
+
"attribute": "show-dates",
|
|
375
|
+
"reflect": false,
|
|
376
|
+
"defaultValue": "false"
|
|
377
|
+
},
|
|
378
|
+
"showPrizes": {
|
|
379
|
+
"type": "boolean",
|
|
380
|
+
"mutable": false,
|
|
381
|
+
"complexType": {
|
|
382
|
+
"original": "boolean",
|
|
383
|
+
"resolved": "boolean",
|
|
384
|
+
"references": {}
|
|
385
|
+
},
|
|
386
|
+
"required": false,
|
|
387
|
+
"optional": true,
|
|
388
|
+
"docs": {
|
|
389
|
+
"tags": [],
|
|
390
|
+
"text": "Show tournament prizes"
|
|
391
|
+
},
|
|
392
|
+
"attribute": "show-prizes",
|
|
393
|
+
"reflect": false,
|
|
394
|
+
"defaultValue": "false"
|
|
395
|
+
},
|
|
396
|
+
"showButton": {
|
|
397
|
+
"type": "boolean",
|
|
398
|
+
"mutable": false,
|
|
399
|
+
"complexType": {
|
|
400
|
+
"original": "boolean",
|
|
401
|
+
"resolved": "boolean",
|
|
402
|
+
"references": {}
|
|
403
|
+
},
|
|
404
|
+
"required": false,
|
|
405
|
+
"optional": true,
|
|
406
|
+
"docs": {
|
|
407
|
+
"tags": [],
|
|
408
|
+
"text": "Show detail, join, login , register button"
|
|
409
|
+
},
|
|
410
|
+
"attribute": "show-button",
|
|
411
|
+
"reflect": false,
|
|
412
|
+
"defaultValue": "false"
|
|
413
|
+
},
|
|
414
|
+
"shortStart": {
|
|
415
|
+
"type": "boolean",
|
|
416
|
+
"mutable": false,
|
|
417
|
+
"complexType": {
|
|
418
|
+
"original": "boolean",
|
|
419
|
+
"resolved": "boolean",
|
|
420
|
+
"references": {}
|
|
421
|
+
},
|
|
422
|
+
"required": false,
|
|
423
|
+
"optional": true,
|
|
424
|
+
"docs": {
|
|
425
|
+
"tags": [],
|
|
426
|
+
"text": "Short start time on tag"
|
|
427
|
+
},
|
|
428
|
+
"attribute": "short-start",
|
|
429
|
+
"reflect": false,
|
|
430
|
+
"defaultValue": "false"
|
|
431
|
+
},
|
|
432
|
+
"seeGames": {
|
|
433
|
+
"type": "boolean",
|
|
434
|
+
"mutable": false,
|
|
435
|
+
"complexType": {
|
|
436
|
+
"original": "boolean",
|
|
437
|
+
"resolved": "boolean",
|
|
438
|
+
"references": {}
|
|
439
|
+
},
|
|
440
|
+
"required": false,
|
|
441
|
+
"optional": true,
|
|
442
|
+
"docs": {
|
|
443
|
+
"tags": [],
|
|
444
|
+
"text": "Show see games here link"
|
|
445
|
+
},
|
|
446
|
+
"attribute": "see-games",
|
|
447
|
+
"reflect": false,
|
|
448
|
+
"defaultValue": "false"
|
|
449
|
+
},
|
|
450
|
+
"useEvent": {
|
|
451
|
+
"type": "boolean",
|
|
452
|
+
"mutable": false,
|
|
453
|
+
"complexType": {
|
|
454
|
+
"original": "boolean",
|
|
455
|
+
"resolved": "boolean",
|
|
456
|
+
"references": {}
|
|
457
|
+
},
|
|
458
|
+
"required": false,
|
|
459
|
+
"optional": true,
|
|
460
|
+
"docs": {
|
|
461
|
+
"tags": [],
|
|
462
|
+
"text": "Use event to load data"
|
|
463
|
+
},
|
|
464
|
+
"attribute": "use-event",
|
|
465
|
+
"reflect": false,
|
|
466
|
+
"defaultValue": "false"
|
|
467
|
+
},
|
|
468
|
+
"startTime": {
|
|
469
|
+
"type": "string",
|
|
470
|
+
"mutable": false,
|
|
471
|
+
"complexType": {
|
|
472
|
+
"original": "string",
|
|
473
|
+
"resolved": "string",
|
|
474
|
+
"references": {}
|
|
475
|
+
},
|
|
476
|
+
"required": false,
|
|
477
|
+
"optional": true,
|
|
478
|
+
"docs": {
|
|
479
|
+
"tags": [],
|
|
480
|
+
"text": "Tournament start time"
|
|
481
|
+
},
|
|
482
|
+
"attribute": "start-time",
|
|
483
|
+
"reflect": false
|
|
484
|
+
},
|
|
485
|
+
"endTime": {
|
|
486
|
+
"type": "string",
|
|
487
|
+
"mutable": false,
|
|
488
|
+
"complexType": {
|
|
489
|
+
"original": "string",
|
|
490
|
+
"resolved": "string",
|
|
491
|
+
"references": {}
|
|
492
|
+
},
|
|
493
|
+
"required": false,
|
|
494
|
+
"optional": true,
|
|
495
|
+
"docs": {
|
|
496
|
+
"tags": [],
|
|
497
|
+
"text": "Tournament end time"
|
|
498
|
+
},
|
|
499
|
+
"attribute": "end-time",
|
|
500
|
+
"reflect": false
|
|
501
|
+
},
|
|
502
|
+
"minBetCount": {
|
|
503
|
+
"type": "number",
|
|
504
|
+
"mutable": false,
|
|
505
|
+
"complexType": {
|
|
506
|
+
"original": "number",
|
|
507
|
+
"resolved": "number",
|
|
508
|
+
"references": {}
|
|
509
|
+
},
|
|
510
|
+
"required": false,
|
|
511
|
+
"optional": true,
|
|
512
|
+
"docs": {
|
|
513
|
+
"tags": [],
|
|
514
|
+
"text": "Minimum bet count of Tournament"
|
|
515
|
+
},
|
|
516
|
+
"attribute": "min-bet-count",
|
|
517
|
+
"reflect": false
|
|
518
|
+
},
|
|
519
|
+
"prizes": {
|
|
520
|
+
"type": "any",
|
|
521
|
+
"mutable": false,
|
|
522
|
+
"complexType": {
|
|
523
|
+
"original": "any",
|
|
524
|
+
"resolved": "any",
|
|
525
|
+
"references": {}
|
|
526
|
+
},
|
|
527
|
+
"required": false,
|
|
528
|
+
"optional": true,
|
|
529
|
+
"docs": {
|
|
530
|
+
"tags": [],
|
|
531
|
+
"text": "Tournament prizes data JSON"
|
|
532
|
+
},
|
|
533
|
+
"attribute": "prizes",
|
|
534
|
+
"reflect": false
|
|
535
|
+
},
|
|
536
|
+
"shortStartFormat": {
|
|
537
|
+
"type": "string",
|
|
538
|
+
"mutable": false,
|
|
539
|
+
"complexType": {
|
|
540
|
+
"original": "string",
|
|
541
|
+
"resolved": "string",
|
|
542
|
+
"references": {}
|
|
543
|
+
},
|
|
544
|
+
"required": false,
|
|
545
|
+
"optional": true,
|
|
546
|
+
"docs": {
|
|
547
|
+
"tags": [],
|
|
548
|
+
"text": "Short start time format"
|
|
549
|
+
},
|
|
550
|
+
"attribute": "short-start-format",
|
|
551
|
+
"reflect": false,
|
|
552
|
+
"defaultValue": "'DD MMM YYYY'"
|
|
553
|
+
},
|
|
554
|
+
"clientStyling": {
|
|
555
|
+
"type": "string",
|
|
556
|
+
"mutable": false,
|
|
557
|
+
"complexType": {
|
|
558
|
+
"original": "string",
|
|
559
|
+
"resolved": "string",
|
|
560
|
+
"references": {}
|
|
561
|
+
},
|
|
562
|
+
"required": false,
|
|
563
|
+
"optional": true,
|
|
564
|
+
"docs": {
|
|
565
|
+
"tags": [],
|
|
566
|
+
"text": "Client custom styling via inline styles"
|
|
567
|
+
},
|
|
568
|
+
"attribute": "client-styling",
|
|
569
|
+
"reflect": false,
|
|
570
|
+
"defaultValue": "''"
|
|
571
|
+
},
|
|
572
|
+
"clientStylingUrl": {
|
|
573
|
+
"type": "string",
|
|
574
|
+
"mutable": false,
|
|
575
|
+
"complexType": {
|
|
576
|
+
"original": "string",
|
|
577
|
+
"resolved": "string",
|
|
578
|
+
"references": {}
|
|
579
|
+
},
|
|
580
|
+
"required": false,
|
|
581
|
+
"optional": true,
|
|
582
|
+
"docs": {
|
|
583
|
+
"tags": [],
|
|
584
|
+
"text": "Client custom styling via url"
|
|
585
|
+
},
|
|
586
|
+
"attribute": "client-styling-url",
|
|
587
|
+
"reflect": false,
|
|
588
|
+
"defaultValue": "''"
|
|
589
|
+
},
|
|
590
|
+
"enrolled": {
|
|
591
|
+
"type": "boolean",
|
|
592
|
+
"mutable": false,
|
|
593
|
+
"complexType": {
|
|
594
|
+
"original": "boolean",
|
|
595
|
+
"resolved": "boolean",
|
|
596
|
+
"references": {}
|
|
597
|
+
},
|
|
598
|
+
"required": false,
|
|
599
|
+
"optional": true,
|
|
600
|
+
"docs": {
|
|
601
|
+
"tags": [],
|
|
602
|
+
"text": "Player enrolled"
|
|
603
|
+
},
|
|
604
|
+
"attribute": "enrolled",
|
|
605
|
+
"reflect": false,
|
|
606
|
+
"defaultValue": "false"
|
|
607
|
+
},
|
|
608
|
+
"loginEvent": {
|
|
609
|
+
"type": "string",
|
|
610
|
+
"mutable": false,
|
|
611
|
+
"complexType": {
|
|
612
|
+
"original": "string",
|
|
613
|
+
"resolved": "string",
|
|
614
|
+
"references": {}
|
|
615
|
+
},
|
|
616
|
+
"required": false,
|
|
617
|
+
"optional": true,
|
|
618
|
+
"docs": {
|
|
619
|
+
"tags": [],
|
|
620
|
+
"text": "Login event"
|
|
621
|
+
},
|
|
622
|
+
"attribute": "login-event",
|
|
623
|
+
"reflect": false
|
|
624
|
+
},
|
|
625
|
+
"loginUrl": {
|
|
626
|
+
"type": "string",
|
|
627
|
+
"mutable": false,
|
|
628
|
+
"complexType": {
|
|
629
|
+
"original": "string",
|
|
630
|
+
"resolved": "string",
|
|
631
|
+
"references": {}
|
|
632
|
+
},
|
|
633
|
+
"required": false,
|
|
634
|
+
"optional": true,
|
|
635
|
+
"docs": {
|
|
636
|
+
"tags": [],
|
|
637
|
+
"text": "Login url"
|
|
638
|
+
},
|
|
639
|
+
"attribute": "login-url",
|
|
640
|
+
"reflect": false
|
|
641
|
+
},
|
|
642
|
+
"registerEvent": {
|
|
643
|
+
"type": "string",
|
|
644
|
+
"mutable": false,
|
|
645
|
+
"complexType": {
|
|
646
|
+
"original": "string",
|
|
647
|
+
"resolved": "string",
|
|
648
|
+
"references": {}
|
|
649
|
+
},
|
|
650
|
+
"required": false,
|
|
651
|
+
"optional": true,
|
|
652
|
+
"docs": {
|
|
653
|
+
"tags": [],
|
|
654
|
+
"text": "Register event"
|
|
655
|
+
},
|
|
656
|
+
"attribute": "register-event",
|
|
657
|
+
"reflect": false
|
|
658
|
+
},
|
|
659
|
+
"registerUrl": {
|
|
660
|
+
"type": "string",
|
|
661
|
+
"mutable": false,
|
|
662
|
+
"complexType": {
|
|
663
|
+
"original": "string",
|
|
664
|
+
"resolved": "string",
|
|
665
|
+
"references": {}
|
|
666
|
+
},
|
|
667
|
+
"required": false,
|
|
668
|
+
"optional": true,
|
|
669
|
+
"docs": {
|
|
670
|
+
"tags": [],
|
|
671
|
+
"text": "Register url"
|
|
672
|
+
},
|
|
673
|
+
"attribute": "register-url",
|
|
674
|
+
"reflect": false
|
|
675
|
+
},
|
|
676
|
+
"currency": {
|
|
677
|
+
"type": "string",
|
|
678
|
+
"mutable": false,
|
|
679
|
+
"complexType": {
|
|
680
|
+
"original": "string",
|
|
681
|
+
"resolved": "string",
|
|
682
|
+
"references": {}
|
|
683
|
+
},
|
|
684
|
+
"required": false,
|
|
685
|
+
"optional": true,
|
|
686
|
+
"docs": {
|
|
687
|
+
"tags": [],
|
|
688
|
+
"text": "Player curreny"
|
|
689
|
+
},
|
|
690
|
+
"attribute": "currency",
|
|
691
|
+
"reflect": false
|
|
692
|
+
},
|
|
693
|
+
"bonusCode": {
|
|
694
|
+
"type": "string",
|
|
695
|
+
"mutable": false,
|
|
696
|
+
"complexType": {
|
|
697
|
+
"original": "string",
|
|
698
|
+
"resolved": "string",
|
|
699
|
+
"references": {}
|
|
700
|
+
},
|
|
701
|
+
"required": false,
|
|
702
|
+
"optional": true,
|
|
703
|
+
"docs": {
|
|
704
|
+
"tags": [],
|
|
705
|
+
"text": "Bonus Code"
|
|
706
|
+
},
|
|
707
|
+
"attribute": "bonus-code",
|
|
708
|
+
"reflect": false
|
|
709
|
+
},
|
|
710
|
+
"showReadMore": {
|
|
711
|
+
"type": "boolean",
|
|
712
|
+
"mutable": false,
|
|
713
|
+
"complexType": {
|
|
714
|
+
"original": "boolean",
|
|
715
|
+
"resolved": "boolean",
|
|
716
|
+
"references": {}
|
|
717
|
+
},
|
|
718
|
+
"required": false,
|
|
719
|
+
"optional": true,
|
|
720
|
+
"docs": {
|
|
721
|
+
"tags": [],
|
|
722
|
+
"text": "Show read more button"
|
|
723
|
+
},
|
|
724
|
+
"attribute": "show-read-more",
|
|
725
|
+
"reflect": false,
|
|
726
|
+
"defaultValue": "false"
|
|
727
|
+
},
|
|
728
|
+
"translationUrl": {
|
|
729
|
+
"type": "string",
|
|
730
|
+
"mutable": false,
|
|
731
|
+
"complexType": {
|
|
732
|
+
"original": "string",
|
|
733
|
+
"resolved": "string",
|
|
734
|
+
"references": {}
|
|
735
|
+
},
|
|
736
|
+
"required": false,
|
|
737
|
+
"optional": true,
|
|
738
|
+
"docs": {
|
|
739
|
+
"tags": [],
|
|
740
|
+
"text": "Translations via URL"
|
|
741
|
+
},
|
|
742
|
+
"attribute": "translation-url",
|
|
743
|
+
"reflect": true,
|
|
744
|
+
"defaultValue": "''"
|
|
745
|
+
},
|
|
746
|
+
"translationData": {
|
|
747
|
+
"type": "any",
|
|
748
|
+
"mutable": false,
|
|
749
|
+
"complexType": {
|
|
750
|
+
"original": "any",
|
|
751
|
+
"resolved": "any",
|
|
752
|
+
"references": {}
|
|
753
|
+
},
|
|
754
|
+
"required": false,
|
|
755
|
+
"optional": true,
|
|
756
|
+
"docs": {
|
|
757
|
+
"tags": [],
|
|
758
|
+
"text": "Translations via parent component"
|
|
759
|
+
},
|
|
760
|
+
"attribute": "translation-data",
|
|
761
|
+
"reflect": true
|
|
762
|
+
}
|
|
763
|
+
};
|
|
764
|
+
}
|
|
765
|
+
static get states() {
|
|
766
|
+
return {
|
|
767
|
+
"limitStylingAppends": {},
|
|
768
|
+
"startDate": {},
|
|
769
|
+
"tournamentInfo": {}
|
|
770
|
+
};
|
|
771
|
+
}
|
|
772
|
+
static get elementRef() { return "host"; }
|
|
773
|
+
static get listeners() {
|
|
774
|
+
return [{
|
|
775
|
+
"name": "getTournamentInfoCompleted",
|
|
776
|
+
"method": "infoCompletedHandler",
|
|
777
|
+
"target": "window",
|
|
778
|
+
"capture": false,
|
|
779
|
+
"passive": false
|
|
780
|
+
}];
|
|
781
|
+
}
|
|
782
|
+
}
|