@everymatrix/casino-tournament-list 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.
Files changed (44) hide show
  1. package/dist/casino-tournament-list/casino-tournament-list.esm.js +1 -0
  2. package/dist/casino-tournament-list/index.esm.js +0 -0
  3. package/dist/casino-tournament-list/p-31a032bc.js +2 -0
  4. package/dist/casino-tournament-list/p-e1255160.js +1 -0
  5. package/dist/casino-tournament-list/p-e4421de0.entry.js +15 -0
  6. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  7. package/dist/cjs/casino-tournament-banner_6.cjs.entry.js +9174 -0
  8. package/dist/cjs/casino-tournament-list.cjs.js +25 -0
  9. package/dist/cjs/index-c8b392e1.js +1336 -0
  10. package/dist/cjs/index.cjs.js +2 -0
  11. package/dist/cjs/loader.cjs.js +15 -0
  12. package/dist/collection/collection-manifest.json +43 -0
  13. package/dist/collection/components/casino-tournament-list/casino-tournament-list.css +97 -0
  14. package/dist/collection/components/casino-tournament-list/casino-tournament-list.js +598 -0
  15. package/dist/collection/components/casino-tournament-list/index.js +1 -0
  16. package/dist/collection/index.js +1 -0
  17. package/dist/collection/utils/locale.utils.js +118 -0
  18. package/dist/collection/utils/utils.js +20 -0
  19. package/dist/esm/app-globals-0f993ce5.js +3 -0
  20. package/dist/esm/casino-tournament-banner_6.entry.js +9165 -0
  21. package/dist/esm/casino-tournament-list.js +20 -0
  22. package/dist/esm/index-8523ee68.js +1308 -0
  23. package/dist/esm/index.js +1 -0
  24. package/dist/esm/loader.js +11 -0
  25. package/dist/index.cjs.js +1 -0
  26. package/dist/index.js +1 -0
  27. package/dist/stencil.config.dev.js +17 -0
  28. package/dist/stencil.config.js +17 -0
  29. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/casino-tournament-list/.stencil/packages/stencil/casino-tournament-list/stencil.config.d.ts +2 -0
  30. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/casino-tournament-list/.stencil/packages/stencil/casino-tournament-list/stencil.config.dev.d.ts +2 -0
  31. package/dist/types/components/casino-tournament-list/casino-tournament-list.d.ts +108 -0
  32. package/dist/types/components/casino-tournament-list/index.d.ts +1 -0
  33. package/dist/types/components.d.ts +189 -0
  34. package/dist/types/index.d.ts +1 -0
  35. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  36. package/dist/types/utils/locale.utils.d.ts +2 -0
  37. package/dist/types/utils/utils.d.ts +2 -0
  38. package/loader/cdn.js +1 -0
  39. package/loader/index.cjs.js +1 -0
  40. package/loader/index.d.ts +24 -0
  41. package/loader/index.es2017.js +1 -0
  42. package/loader/index.js +2 -0
  43. package/loader/package.json +11 -0
  44. package/package.json +30 -0
@@ -0,0 +1,598 @@
1
+ import { h } from "@stencil/core";
2
+ import { getDevice, isMobile } from "../../utils/utils";
3
+ import { translate, getTranslations } from "../../utils/locale.utils";
4
+ import { EventSourcePolyfill } from "event-source-polyfill";
5
+ import "../../../../../casino-tournament-banner/dist/types/index";
6
+ import "../../../../../casino-tournament-info/dist/types/index";
7
+ export class CasinoTournamentList {
8
+ constructor() {
9
+ this.endpoint = undefined;
10
+ this.language = undefined;
11
+ this.session = undefined;
12
+ this.sortType = undefined;
13
+ this.sortOrder = undefined;
14
+ this.offset = 0;
15
+ this.limit = 6;
16
+ this.showAnonymous = false;
17
+ this.state = 'All,Ongoing,Upcoming,Expired';
18
+ this.startTimeAfter = undefined;
19
+ this.updateTournaments = true;
20
+ this.loginEvent = 'OpenLoginRegisterModal';
21
+ this.registerEvent = 'OpenLoginRegisterModal';
22
+ this.cardMode = false;
23
+ this.showReadMore = false;
24
+ this.currency = '';
25
+ this.clientStyling = '';
26
+ this.clientStylingUrl = '';
27
+ this.translationUrl = '';
28
+ this.limitStylingAppends = false;
29
+ this.tournaments = [];
30
+ this.states = undefined;
31
+ this.currentState = 'All';
32
+ this.isLoading = false;
33
+ this.tournamentsShown = 0;
34
+ this.allTournamentsShown = false;
35
+ this.sseConnection = undefined;
36
+ this.translationData = undefined;
37
+ this.initialLoad = false;
38
+ }
39
+ async updateTournament(newVal, oldValue) {
40
+ if (newVal != oldValue) {
41
+ this.setDefaultTournaments();
42
+ this.getTournamentInfo(this.offset, this.limit);
43
+ }
44
+ }
45
+ getTournamentInfo(offset, limit, showMore) {
46
+ let url = new URL(this.endpoint + `/v1/tournaments`);
47
+ let reqHeaders = new Headers();
48
+ if (this.session) {
49
+ reqHeaders.append('X-SessionId', this.session);
50
+ }
51
+ const filterOptions = {
52
+ StartTimeAfter: this.getStartTimeAfter(),
53
+ };
54
+ if (!this.session && this.showAnonymous == false) {
55
+ filterOptions.tags = 'no-role-set';
56
+ }
57
+ if (this.currentState && this.currentState != 'All') {
58
+ filterOptions.state = this.matchStatus(this.currentState);
59
+ }
60
+ const filter = Object.keys(filterOptions).map(k => `${k}=${filterOptions[k]}`).join(',');
61
+ url.searchParams.append('filter', filter);
62
+ url.searchParams.append('platform', getDevice());
63
+ url.searchParams.append('language', this.language);
64
+ url.searchParams.append('fields', 'id,nameOrTitle,termsUrl,thumbnail,startTime,endTime,closeTime,playerEnrolled,wallets');
65
+ url.searchParams.append('pagination', `offset=${offset},limit=${limit}`);
66
+ url.searchParams.append('sortField', 'StartTime');
67
+ url.searchParams.append('sortOrder', this.sortOrder || 'desc');
68
+ if (this.sortType) {
69
+ url.searchParams.append('sortType', this.sortType);
70
+ }
71
+ let requestOptions = {
72
+ method: 'GET',
73
+ headers: reqHeaders,
74
+ cache: 'no-cache'
75
+ };
76
+ this.isLoading = true;
77
+ fetch(url.href, requestOptions).then((res) => res.json())
78
+ .then((res) => {
79
+ this.tournaments = showMore ? this.tournaments.concat(res.items) : res.items;
80
+ this.tournaments.forEach((item) => {
81
+ if (item.wallets && item.wallets[0]) {
82
+ item.bonusCode = item.wallets[0].code;
83
+ }
84
+ });
85
+ this.tournamentsShown += res.items.length;
86
+ if (this.tournamentsShown >= res.total) {
87
+ this.allTournamentsShown = true;
88
+ }
89
+ if (this.updateTournaments) {
90
+ url.searchParams.set('pagination', `offset=0,limit=${this.tournamentsShown}`);
91
+ let endpointURL = `${this.endpoint}/v1/tournaments/updates?${url.searchParams.toString()}`;
92
+ this.startUpdate(endpointURL, { headers: { 'accept': 'text/event-stream', 'X-SessionId': this.session } });
93
+ }
94
+ }).catch((err) => {
95
+ this.allTournamentsShown = true;
96
+ throw new Error(err);
97
+ }).finally(() => {
98
+ this.isLoading = false;
99
+ });
100
+ }
101
+ createImagePlaceHolder(width, height) {
102
+ const canvas = document.createElement('canvas');
103
+ canvas.width = width;
104
+ canvas.height = height;
105
+ const ctx = canvas.getContext('2d');
106
+ ctx.fillStyle = 'rgb(0, 0, 0)';
107
+ ctx.fillRect(0, 0, width, height);
108
+ const img = new Image(width, height);
109
+ img.src = canvas.toDataURL();
110
+ return img.src;
111
+ }
112
+ componentDidRender() {
113
+ if (!this.limitStylingAppends && this.host) {
114
+ if (this.clientStyling)
115
+ this.setClientStyling();
116
+ if (this.clientStylingUrl)
117
+ this.setClientStylingURL();
118
+ this.limitStylingAppends = true;
119
+ }
120
+ }
121
+ setClientStyling() {
122
+ let sheet = document.createElement('style');
123
+ sheet.innerHTML = this.clientStyling;
124
+ this.host.shadowRoot.prepend(sheet);
125
+ }
126
+ setClientStylingURL() {
127
+ let url = new URL(this.clientStylingUrl);
128
+ let cssFile = document.createElement('style');
129
+ fetch(url.href)
130
+ .then((res) => res.text())
131
+ .then((data) => {
132
+ cssFile.innerHTML = data;
133
+ this.clientStyling = data;
134
+ setTimeout(() => { this.host.shadowRoot.prepend(cssFile); }, 1);
135
+ });
136
+ }
137
+ getStartTimeAfter() {
138
+ const dateStartTimeAfter = new Date();
139
+ if (this.startTimeAfter) {
140
+ dateStartTimeAfter.setDate(dateStartTimeAfter.getDate() - Number(this.startTimeAfter));
141
+ }
142
+ else {
143
+ dateStartTimeAfter.setMonth(dateStartTimeAfter.getMonth() - 12);
144
+ }
145
+ return dateStartTimeAfter.toISOString().substring(0, 10);
146
+ }
147
+ onStateChange(state) {
148
+ if (this.isLoading == false) {
149
+ this.setDefaultTournaments();
150
+ this.sseConnection.removeEventListener('message', this.updateHandler);
151
+ this.currentState = state;
152
+ this.getTournamentInfo(this.offset, this.limit);
153
+ }
154
+ }
155
+ setDefaultTournaments() {
156
+ this.tournaments = [];
157
+ this.tournamentsShown = 0;
158
+ this.allTournamentsShown = false;
159
+ }
160
+ showMoreAction() {
161
+ this.getTournamentInfo(this.offset + this.tournamentsShown, this.limit, true);
162
+ }
163
+ matchStatus(status) {
164
+ if (status == 'Upcoming') {
165
+ return 'Unstarted';
166
+ }
167
+ if (status == 'Ongoing') {
168
+ return 'Running';
169
+ }
170
+ return 'Closing|Closed';
171
+ }
172
+ startUpdate(updateUrl, updateOptions) {
173
+ if (this.sseConnection) {
174
+ this.sseConnection.close();
175
+ }
176
+ this.sseConnection = new EventSourcePolyfill(updateUrl, updateOptions);
177
+ this.sseConnection.removeEventListener('message', this.updateHandler);
178
+ this.sseConnection.addEventListener('message', this.updateHandler.bind(this));
179
+ }
180
+ updateHandler(message) {
181
+ if (!message.data) {
182
+ return;
183
+ }
184
+ let data = JSON.parse(message.data);
185
+ if (data.messageType == 'LeaderBoardUpdate') {
186
+ this.updateView(data);
187
+ }
188
+ }
189
+ updateView(data) {
190
+ this.tournaments = data.items;
191
+ }
192
+ async componentWillLoad() {
193
+ if (this.state) {
194
+ this.states = this.state.split(',');
195
+ }
196
+ const promises = [];
197
+ if (this.endpoint) {
198
+ const consentsPromise = this.getTournamentInfo(this.offset, this.limit);
199
+ promises.push(consentsPromise);
200
+ }
201
+ if (this.translationUrl) {
202
+ const translationPromise = getTranslations(this.translationUrl).then((data) => {
203
+ this.translationData = JSON.stringify(data);
204
+ }).catch(err => {
205
+ console.log(err);
206
+ });
207
+ promises.push(translationPromise);
208
+ }
209
+ return Promise.all(promises);
210
+ }
211
+ render() {
212
+ return h("div", { key: '4975447a0a236f8be9a5fd7c45d939df8238dc67', class: `TournamentList ${this.cardMode ? 'CardMode' : ''} ${isMobile() ? 'Mobile' : ''}` }, this.states && h("div", { key: '6ec43b09ed16eab506acdd4119f4ba896e4861c8', class: "States" }, this.states.map(state => {
213
+ return h("div", { onClick: this.onStateChange.bind(this, state), class: `State ${this.currentState == state ? 'active' : ''}` }, translate(state, this.language));
214
+ })), !this.isLoading && (!this.tournaments || this.tournaments.length == 0) && h("div", { key: '59a7ec3d32a8563f2dd3175dea325d1f839c0d90', class: `NoTournaments ${isMobile() ? 'Mobile' : ''}` }, translate('noTournaments', this.language)), this.tournaments && h("div", { key: 'f8e0922425689ce92be5abfede1dfc9101de5c33', class: `Tournaments ${isMobile() ? 'Mobile' : ''}` }, this.tournaments.map(item => {
215
+ if (this.cardMode) {
216
+ return h("div", { class: `TournamentCard ${isMobile() ? 'Mobile' : ''}` }, h("casino-tournament-banner", { "name-or-title": item.nameOrTitle, description: item.description, "tournament-id": item.id, state: item.state, enrolled: item.playerEnrolled, "start-time": item.startTime, "end-time": item.endTime, thumbnail: item.thumbnail ? item.thumbnail : this.createImagePlaceHolder(320, 180), "show-date": "false", "show-check": "true", "show-calendar": "true", "show-running-date": "true", "short-start": "true", "bonus-code": item.bonusCode, currency: this.currency, "show-read-more": this.showReadMore, "card-mode": this.cardMode, language: this.language, endpoint: this.endpoint, loginEvent: this.loginEvent, session: this.session, registerEvent: this.registerEvent, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "translation-data": this.translationData }));
217
+ }
218
+ else {
219
+ return h("div", { class: "Tournament" }, h("casino-tournament-banner", { "name-or-title": item.nameOrTitle, "tournament-id": item.id, state: item.state, enrolled: item.playerEnrolled, "start-time": item.startTime, thumbnail: item.thumbnail ? item.thumbnail : this.createImagePlaceHolder(320, 180), "show-date": "false", "show-check": "true", "show-calendar": "true", "short-start": "true", "bonus-code": item.bonusCode, currency: this.currency, "card-mode": this.cardMode, language: this.language, endpoint: this.endpoint, session: this.session, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "translation-data": this.translationData }), h("casino-tournament-info", { "name-or-title": item.nameOrTitle, "tournament-id": item.id, "start-time": item.startTime, "end-time": item.endTime, "score-criteria": item.scoreCriteria, "min-bet-count": item.minBetCount, enrolled: item.playerEnrolled, align: "left", "see-games": "true", "show-button": "true", "bonus-code": item.bonusCode, currency: this.currency, loginEvent: this.loginEvent, registerEvent: this.registerEvent, "show-read-more": this.showReadMore, language: this.language, endpoint: this.endpoint, session: this.session, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "translation-data": this.translationData }));
220
+ }
221
+ }), this.isLoading &&
222
+ h("p", { key: '42467b468909822aa4549d7169bac0fd0f9d942c', class: "Loading" }, translate('loading', this.language)), !this.isLoading && !this.allTournamentsShown &&
223
+ h("div", { key: '5483c6a4ef85ae8cc61b5ebf660c1d59be110d5f', class: "CenterButton", part: "CenterButton" }, h("button", { key: '87fad8d67a1cfa6e04c40384eae95d36565f8b86', class: "ShowMoreButton", part: "ShowMoreButton", onClick: () => this.showMoreAction(), title: "Show More" }, translate('showMore', this.language)))));
224
+ }
225
+ static get is() { return "casino-tournament-list"; }
226
+ static get encapsulation() { return "shadow"; }
227
+ static get originalStyleUrls() {
228
+ return {
229
+ "$": ["casino-tournament-list.scss"]
230
+ };
231
+ }
232
+ static get styleUrls() {
233
+ return {
234
+ "$": ["casino-tournament-list.css"]
235
+ };
236
+ }
237
+ static get properties() {
238
+ return {
239
+ "endpoint": {
240
+ "type": "string",
241
+ "mutable": false,
242
+ "complexType": {
243
+ "original": "string",
244
+ "resolved": "string",
245
+ "references": {}
246
+ },
247
+ "required": true,
248
+ "optional": false,
249
+ "docs": {
250
+ "tags": [],
251
+ "text": "The NWA endpoint"
252
+ },
253
+ "attribute": "endpoint",
254
+ "reflect": false
255
+ },
256
+ "language": {
257
+ "type": "string",
258
+ "mutable": false,
259
+ "complexType": {
260
+ "original": "string",
261
+ "resolved": "string",
262
+ "references": {}
263
+ },
264
+ "required": true,
265
+ "optional": false,
266
+ "docs": {
267
+ "tags": [],
268
+ "text": "Widget Language to show"
269
+ },
270
+ "attribute": "language",
271
+ "reflect": false
272
+ },
273
+ "session": {
274
+ "type": "string",
275
+ "mutable": false,
276
+ "complexType": {
277
+ "original": "string",
278
+ "resolved": "string",
279
+ "references": {}
280
+ },
281
+ "required": false,
282
+ "optional": true,
283
+ "docs": {
284
+ "tags": [],
285
+ "text": "The NWA session for the logged-in user"
286
+ },
287
+ "attribute": "session",
288
+ "reflect": false
289
+ },
290
+ "sortType": {
291
+ "type": "string",
292
+ "mutable": false,
293
+ "complexType": {
294
+ "original": "string",
295
+ "resolved": "string",
296
+ "references": {}
297
+ },
298
+ "required": false,
299
+ "optional": true,
300
+ "docs": {
301
+ "tags": [],
302
+ "text": "NWA parameter for tournaments sort type"
303
+ },
304
+ "attribute": "sort-type",
305
+ "reflect": false
306
+ },
307
+ "sortOrder": {
308
+ "type": "string",
309
+ "mutable": false,
310
+ "complexType": {
311
+ "original": "string",
312
+ "resolved": "string",
313
+ "references": {}
314
+ },
315
+ "required": false,
316
+ "optional": true,
317
+ "docs": {
318
+ "tags": [],
319
+ "text": "NWA parameter for tournaments sort order"
320
+ },
321
+ "attribute": "sort-order",
322
+ "reflect": false
323
+ },
324
+ "offset": {
325
+ "type": "number",
326
+ "mutable": false,
327
+ "complexType": {
328
+ "original": "number",
329
+ "resolved": "number",
330
+ "references": {}
331
+ },
332
+ "required": false,
333
+ "optional": true,
334
+ "docs": {
335
+ "tags": [],
336
+ "text": "NWA parameter tournaments offet"
337
+ },
338
+ "attribute": "offset",
339
+ "reflect": false,
340
+ "defaultValue": "0"
341
+ },
342
+ "limit": {
343
+ "type": "number",
344
+ "mutable": false,
345
+ "complexType": {
346
+ "original": "number",
347
+ "resolved": "number",
348
+ "references": {}
349
+ },
350
+ "required": false,
351
+ "optional": true,
352
+ "docs": {
353
+ "tags": [],
354
+ "text": "NWA parameter tournaments limit"
355
+ },
356
+ "attribute": "limit",
357
+ "reflect": false,
358
+ "defaultValue": "6"
359
+ },
360
+ "showAnonymous": {
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": "NWA parameter show anonymous tournament"
373
+ },
374
+ "attribute": "show-anonymous",
375
+ "reflect": false,
376
+ "defaultValue": "false"
377
+ },
378
+ "state": {
379
+ "type": "string",
380
+ "mutable": false,
381
+ "complexType": {
382
+ "original": "string",
383
+ "resolved": "string",
384
+ "references": {}
385
+ },
386
+ "required": false,
387
+ "optional": true,
388
+ "docs": {
389
+ "tags": [],
390
+ "text": "Tournament states"
391
+ },
392
+ "attribute": "state",
393
+ "reflect": false,
394
+ "defaultValue": "'All,Ongoing,Upcoming,Expired'"
395
+ },
396
+ "startTimeAfter": {
397
+ "type": "string",
398
+ "mutable": false,
399
+ "complexType": {
400
+ "original": "string",
401
+ "resolved": "string",
402
+ "references": {}
403
+ },
404
+ "required": false,
405
+ "optional": true,
406
+ "docs": {
407
+ "tags": [],
408
+ "text": "Display tournaments from a specific time onward"
409
+ },
410
+ "attribute": "start-time-after",
411
+ "reflect": false
412
+ },
413
+ "updateTournaments": {
414
+ "type": "boolean",
415
+ "mutable": false,
416
+ "complexType": {
417
+ "original": "boolean",
418
+ "resolved": "boolean",
419
+ "references": {}
420
+ },
421
+ "required": false,
422
+ "optional": true,
423
+ "docs": {
424
+ "tags": [],
425
+ "text": "Real time update"
426
+ },
427
+ "attribute": "update-tournaments",
428
+ "reflect": false,
429
+ "defaultValue": "true"
430
+ },
431
+ "loginEvent": {
432
+ "type": "string",
433
+ "mutable": false,
434
+ "complexType": {
435
+ "original": "string",
436
+ "resolved": "string",
437
+ "references": {}
438
+ },
439
+ "required": false,
440
+ "optional": true,
441
+ "docs": {
442
+ "tags": [],
443
+ "text": "Event for login button"
444
+ },
445
+ "attribute": "login-event",
446
+ "reflect": false,
447
+ "defaultValue": "'OpenLoginRegisterModal'"
448
+ },
449
+ "registerEvent": {
450
+ "type": "string",
451
+ "mutable": false,
452
+ "complexType": {
453
+ "original": "string",
454
+ "resolved": "string",
455
+ "references": {}
456
+ },
457
+ "required": false,
458
+ "optional": true,
459
+ "docs": {
460
+ "tags": [],
461
+ "text": "Event for register button"
462
+ },
463
+ "attribute": "register-event",
464
+ "reflect": false,
465
+ "defaultValue": "'OpenLoginRegisterModal'"
466
+ },
467
+ "cardMode": {
468
+ "type": "boolean",
469
+ "mutable": false,
470
+ "complexType": {
471
+ "original": "boolean",
472
+ "resolved": "boolean",
473
+ "references": {}
474
+ },
475
+ "required": false,
476
+ "optional": true,
477
+ "docs": {
478
+ "tags": [],
479
+ "text": "Display as card"
480
+ },
481
+ "attribute": "card-mode",
482
+ "reflect": false,
483
+ "defaultValue": "false"
484
+ },
485
+ "showReadMore": {
486
+ "type": "boolean",
487
+ "mutable": false,
488
+ "complexType": {
489
+ "original": "boolean",
490
+ "resolved": "boolean",
491
+ "references": {}
492
+ },
493
+ "required": false,
494
+ "optional": true,
495
+ "docs": {
496
+ "tags": [],
497
+ "text": "Show read more button"
498
+ },
499
+ "attribute": "show-read-more",
500
+ "reflect": false,
501
+ "defaultValue": "false"
502
+ },
503
+ "currency": {
504
+ "type": "string",
505
+ "mutable": false,
506
+ "complexType": {
507
+ "original": "string",
508
+ "resolved": "string",
509
+ "references": {}
510
+ },
511
+ "required": false,
512
+ "optional": true,
513
+ "docs": {
514
+ "tags": [],
515
+ "text": "Player currency"
516
+ },
517
+ "attribute": "currency",
518
+ "reflect": false,
519
+ "defaultValue": "''"
520
+ },
521
+ "clientStyling": {
522
+ "type": "string",
523
+ "mutable": false,
524
+ "complexType": {
525
+ "original": "string",
526
+ "resolved": "string",
527
+ "references": {}
528
+ },
529
+ "required": false,
530
+ "optional": true,
531
+ "docs": {
532
+ "tags": [],
533
+ "text": "Client custom styling via inline styles"
534
+ },
535
+ "attribute": "client-styling",
536
+ "reflect": false,
537
+ "defaultValue": "''"
538
+ },
539
+ "clientStylingUrl": {
540
+ "type": "string",
541
+ "mutable": false,
542
+ "complexType": {
543
+ "original": "string",
544
+ "resolved": "string",
545
+ "references": {}
546
+ },
547
+ "required": false,
548
+ "optional": true,
549
+ "docs": {
550
+ "tags": [],
551
+ "text": "Client custom styling via url"
552
+ },
553
+ "attribute": "client-styling-url",
554
+ "reflect": false,
555
+ "defaultValue": "''"
556
+ },
557
+ "translationUrl": {
558
+ "type": "string",
559
+ "mutable": false,
560
+ "complexType": {
561
+ "original": "string",
562
+ "resolved": "string",
563
+ "references": {}
564
+ },
565
+ "required": false,
566
+ "optional": true,
567
+ "docs": {
568
+ "tags": [],
569
+ "text": "Translations via URL"
570
+ },
571
+ "attribute": "translation-url",
572
+ "reflect": false,
573
+ "defaultValue": "''"
574
+ }
575
+ };
576
+ }
577
+ static get states() {
578
+ return {
579
+ "limitStylingAppends": {},
580
+ "tournaments": {},
581
+ "states": {},
582
+ "currentState": {},
583
+ "isLoading": {},
584
+ "tournamentsShown": {},
585
+ "allTournamentsShown": {},
586
+ "sseConnection": {},
587
+ "translationData": {},
588
+ "initialLoad": {}
589
+ };
590
+ }
591
+ static get elementRef() { return "host"; }
592
+ static get watchers() {
593
+ return [{
594
+ "propName": "session",
595
+ "methodName": "updateTournament"
596
+ }];
597
+ }
598
+ }
@@ -0,0 +1 @@
1
+ export { CasinoTournamentList } from './casino-tournament-list';
@@ -0,0 +1 @@
1
+ export * from './components';