@everymatrix/lottery-draw-results 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.
Files changed (52) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/index-e39715e5.js +1279 -0
  3. package/dist/cjs/loader.cjs.js +6 -12
  4. package/dist/cjs/lottery-bullet_3.cjs.entry.js +436 -516
  5. package/dist/cjs/lottery-draw-results.cjs.js +16 -10
  6. package/dist/collection/collection-manifest.json +3 -3
  7. package/dist/collection/components/lottery-draw-results/index.js +1 -0
  8. package/dist/collection/components/lottery-draw-results/lottery-draw-results.js +484 -608
  9. package/dist/collection/utils/locale.utils.js +87 -87
  10. package/dist/collection/utils/utils.js +1 -1
  11. package/dist/esm/app-globals-0f993ce5.js +3 -0
  12. package/dist/esm/index-cb2f9906.js +1252 -0
  13. package/dist/esm/loader.js +6 -12
  14. package/dist/esm/lottery-bullet_3.entry.js +436 -516
  15. package/dist/esm/lottery-draw-results.js +13 -10
  16. package/dist/lottery-draw-results/lottery-draw-results.esm.js +1 -1
  17. package/dist/lottery-draw-results/p-43abc07f.js +2 -0
  18. package/dist/lottery-draw-results/p-a12b1856.entry.js +1 -0
  19. package/dist/lottery-draw-results/p-e1255160.js +1 -0
  20. package/dist/stencil.config.dev.js +17 -0
  21. package/dist/stencil.config.js +14 -19
  22. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-draw-results/.stencil/packages/stencil/lottery-draw-results/stencil.config.d.ts +2 -0
  23. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-draw-results/.stencil/packages/stencil/lottery-draw-results/stencil.config.dev.d.ts +2 -0
  24. package/dist/types/components/lottery-draw-results/index.d.ts +1 -0
  25. package/dist/types/components/lottery-draw-results/lottery-draw-results.d.ts +95 -95
  26. package/dist/types/stencil-public-runtime.d.ts +142 -33
  27. package/loader/cdn.js +1 -3
  28. package/loader/index.cjs.js +1 -3
  29. package/loader/index.d.ts +13 -1
  30. package/loader/index.es2017.js +1 -3
  31. package/loader/index.js +1 -3
  32. package/loader/package.json +1 -0
  33. package/package.json +9 -2
  34. package/dist/cjs/index-40e6760b.js +0 -1252
  35. package/dist/components/index.d.ts +0 -26
  36. package/dist/components/index.js +0 -1
  37. package/dist/components/lottery-bullet.js +0 -6
  38. package/dist/components/lottery-bullet2.js +0 -91
  39. package/dist/components/lottery-draw-results.d.ts +0 -11
  40. package/dist/components/lottery-draw-results.js +0 -346
  41. package/dist/components/lottery-grid.js +0 -6
  42. package/dist/components/lottery-grid2.js +0 -245
  43. package/dist/esm/index-3c2823a2.js +0 -1226
  44. package/dist/esm/polyfills/core-js.js +0 -11
  45. package/dist/esm/polyfills/css-shim.js +0 -1
  46. package/dist/esm/polyfills/dom.js +0 -79
  47. package/dist/esm/polyfills/es5-html-element.js +0 -1
  48. package/dist/esm/polyfills/index.js +0 -34
  49. package/dist/esm/polyfills/system.js +0 -6
  50. package/dist/lottery-draw-results/p-0eb80b2e.js +0 -1
  51. package/dist/lottery-draw-results/p-ca18f246.entry.js +0 -1
  52. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/lottery-draw-results/.stencil/packages/lottery-draw-results/stencil.config.d.ts +0 -2
@@ -1,622 +1,498 @@
1
- import { Component, Prop, h, State } from '@stencil/core';
2
- import { translate } from '../../utils/locale.utils';
3
- import '@everymatrix/lottery-grid';
1
+ import { h } from "@stencil/core";
2
+ import { translate } from "../../utils/locale.utils";
3
+ import "../../../../../lottery-grid/dist/types/index";
4
4
  export class LotteryDrawResults {
5
- constructor() {
6
- /**
7
- * Language of the widget
8
- */
9
- this.language = 'en';
10
- /**
11
- * Shows only the last draw
12
- */
13
- this.drawMode = false;
14
- /**
15
- * The drawID (option)
16
- */
17
- this.drawId = '';
18
- /**
19
- * The game name
20
- */
21
- this.gameName = '';
22
- /**
23
- * The ticket submission date
24
- */
25
- this.ticketDate = '';
26
- /**
27
- * The ticket status
28
- */
29
- this.ticketStatus = '';
30
- /**
31
- * The ticket id
32
- */
33
- this.ticketId = '';
34
- /**
35
- * The ticket amount
36
- */
37
- this.ticketAmount = '';
38
- /**
39
- * The ticket multiplier
40
- */
41
- this.ticketMultiplier = false;
42
- /**
43
- * The ticket draw count
44
- */
45
- this.ticketDrawCount = 0;
46
- /**
47
- * The ticket winning numbers
48
- */
49
- this.ticketNumbers = '';
50
- /**
51
- * The session id
52
- */
53
- this.sessionId = '';
54
- /**
55
- * Client custom styling via string
56
- */
57
- this.clientStyling = '';
58
- /**
59
- * Client custom styling via url content
60
- */
61
- this.clientStylingUrlContent = '';
62
- /**
63
- * Data showing the ticket's draw results details
64
- */
65
- this.ticketDrawData = '';
66
- this.multiplier = 3;
67
- this.isLoading = true;
68
- this.hasErrors = false;
69
- this.errorText = '';
70
- this.ticketData = [];
71
- this.ticketDataLoaded = false;
72
- this.ticketDraws = [];
73
- this.toggleDrawer = [false];
74
- this.limitStylingAppends = false;
75
- this.ticketDrawDetails = [];
76
- this.ticketDrawDetailsFlag = true;
77
- this.setClientStyling = () => {
78
- let sheet = document.createElement('style');
79
- sheet.innerHTML = this.clientStyling;
80
- this.stylingContainer.prepend(sheet);
81
- };
82
- this.setClientStylingURL = () => {
83
- let cssFile = document.createElement('style');
84
- setTimeout(() => {
85
- cssFile.innerHTML = this.clientStylingUrlContent;
86
- this.stylingContainer.prepend(cssFile);
87
- }, 1);
88
- };
89
- }
90
- connectedCallback() {
91
- let promises = [];
92
- // Split ticket numbers for each grid
93
- if (this.ticketNumbers) {
94
- this.gridNumbers = JSON.parse(this.ticketNumbers);
5
+ constructor() {
6
+ this.ticketDrawDetails = [];
7
+ this.ticketDrawDetailsFlag = true;
8
+ this.setClientStyling = () => {
9
+ let sheet = document.createElement('style');
10
+ sheet.innerHTML = this.clientStyling;
11
+ this.stylingContainer.prepend(sheet);
12
+ };
13
+ this.setClientStylingURL = () => {
14
+ let cssFile = document.createElement('style');
15
+ setTimeout(() => {
16
+ cssFile.innerHTML = this.clientStylingUrlContent;
17
+ this.stylingContainer.prepend(cssFile);
18
+ }, 1);
19
+ };
20
+ this.endpoint = undefined;
21
+ this.gameId = undefined;
22
+ this.language = 'en';
23
+ this.playerId = undefined;
24
+ this.drawMode = false;
25
+ this.drawId = '';
26
+ this.gameName = '';
27
+ this.ticketDate = '';
28
+ this.ticketStatus = '';
29
+ this.ticketId = '';
30
+ this.ticketAmount = '';
31
+ this.ticketMultiplier = false;
32
+ this.ticketDrawCount = 0;
33
+ this.ticketNumbers = '';
34
+ this.sessionId = '';
35
+ this.clientStyling = '';
36
+ this.clientStylingUrlContent = '';
37
+ this.ticketDrawData = '';
38
+ this.multiplier = 3;
39
+ this.isLoading = true;
40
+ this.hasErrors = false;
41
+ this.errorText = '';
42
+ this.ticketData = [];
43
+ this.ticketDataLoaded = false;
44
+ this.ticketDraws = [];
45
+ this.toggleDrawer = [false];
46
+ this.limitStylingAppends = false;
47
+ this.drawData = undefined;
95
48
  }
96
- if (this.drawId) {
97
- promises.push(this.getDrawData());
49
+ connectedCallback() {
50
+ let promises = [];
51
+ // Split ticket numbers for each grid
52
+ if (this.ticketNumbers) {
53
+ this.gridNumbers = JSON.parse(this.ticketNumbers);
54
+ }
55
+ if (this.drawId) {
56
+ promises.push(this.getDrawData());
57
+ }
58
+ Promise.all(promises)
59
+ .then(() => {
60
+ this.isLoading = false;
61
+ }).catch((err) => {
62
+ console.log('error ', err);
63
+ this.isLoading = false;
64
+ });
65
+ }
66
+ componentWillRender() {
67
+ if (this.ticketDrawData && this.ticketDrawDetailsFlag) {
68
+ this.ticketDrawDetails = JSON.parse(this.ticketDrawData);
69
+ this.ticketDrawDetails.forEach((drawDetail) => {
70
+ this.getDrawData(drawDetail.drawId).then((drawData) => drawDetail.drawData = drawData);
71
+ });
72
+ this.ticketDrawDetailsFlag = false;
73
+ }
98
74
  }
99
- Promise.all(promises)
100
- .then(() => {
101
- this.isLoading = false;
102
- }).catch((err) => {
103
- console.log('error ', err);
104
- this.isLoading = false;
105
- });
106
- }
107
- componentWillRender() {
108
- if (this.ticketDrawData && this.ticketDrawDetailsFlag) {
109
- this.ticketDrawDetails = JSON.parse(this.ticketDrawData);
110
- this.ticketDrawDetails.forEach((drawDetail) => {
111
- this.getDrawData(drawDetail.drawId).then((drawData) => drawDetail.drawData = drawData);
112
- });
113
- this.ticketDrawDetailsFlag = false;
75
+ componentDidRender() {
76
+ // start custom styling area
77
+ if (!this.limitStylingAppends && this.stylingContainer) {
78
+ if (this.clientStyling)
79
+ this.setClientStyling();
80
+ if (this.clientStylingUrlContent)
81
+ this.setClientStylingURL();
82
+ this.limitStylingAppends = true;
83
+ }
84
+ // end custom styling area
85
+ }
86
+ getDrawData(drawId) {
87
+ this.isLoading = true;
88
+ return new Promise((resolve, reject) => {
89
+ let url = new URL(`${this.endpoint}/games/${this.gameId}/draws/${drawId ? drawId : this.drawId}`);
90
+ fetch(url.href)
91
+ .then((response) => {
92
+ // @TODO EXCEPTIONS
93
+ return response.json();
94
+ })
95
+ .then((data) => {
96
+ if (drawId) {
97
+ resolve(data);
98
+ }
99
+ else {
100
+ this.drawData = data;
101
+ resolve(true);
102
+ }
103
+ this.isLoading = false;
104
+ })
105
+ .catch((err) => {
106
+ reject(err);
107
+ this.isLoading = false;
108
+ });
109
+ });
114
110
  }
115
- }
116
- componentDidRender() {
117
- // start custom styling area
118
- if (!this.limitStylingAppends && this.stylingContainer) {
119
- if (this.clientStyling)
120
- this.setClientStyling();
121
- if (this.clientStylingUrlContent)
122
- this.setClientStylingURL();
123
- this.limitStylingAppends = true;
111
+ drawerToggle(index) {
112
+ this.toggleDrawer = this.toggleDrawer.map((item, itemIndex) => {
113
+ if (itemIndex == index) {
114
+ return !item;
115
+ }
116
+ return item;
117
+ });
118
+ if (index >= this.toggleDrawer.length) {
119
+ this.toggleDrawer.push(true);
120
+ }
124
121
  }
125
- // end custom styling area
126
- }
127
- getDrawData(drawId) {
128
- this.isLoading = true;
129
- return new Promise((resolve, reject) => {
130
- let url = new URL(`${this.endpoint}/games/${this.gameId}/draws/${drawId ? drawId : this.drawId}`);
131
- fetch(url.href)
132
- .then((response) => {
133
- // @TODO EXCEPTIONS
134
- return response.json();
135
- })
136
- .then((data) => {
137
- if (drawId) {
138
- resolve(data);
122
+ render() {
123
+ if (this.isLoading) {
124
+ return (h("p", null, "Loading, please wait ..."));
125
+ }
126
+ else if (this.hasErrors) {
127
+ h("p", null, this.errorText);
139
128
  }
140
129
  else {
141
- this.drawData = data;
142
- resolve(true);
130
+ return (h("section", { class: "DrawResultsSection", ref: el => this.stylingContainer = el }, this.drawMode ?
131
+ h("div", { class: "DrawResultsArea" }, this.drawData &&
132
+ h("div", null, h("div", { class: "DrawResultsHeader" }, h("span", null, translate('drawId', this.language), ": ", this.drawData.id), h("span", null, translate('drawDate', this.language), ": ", this.drawData.date.slice(0, 10))), h("div", { class: "DrawResultsBody" }, h("div", { class: "DrawNumbersGrid" }, h("p", null, translate('drawNumbersGridDraw', this.language), "0:"), h("div", { class: "BulletContainer" }, h("lottery-grid", { "selected-numbers": this.drawData.winningNumbers.join(','), "display-selected": true, selectable: false, language: this.language, "grid-type": 'ticket', "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent })), h("div", { class: "DrawMultipler" }, h("label", { class: "Label" }, translate('multiplier', this.language), " ", this.multiplier))))))
133
+ :
134
+ h("div", { class: "DrawResultsArea TicketDraws" }, h("div", { class: "DrawResultsBody" }, h("div", { class: "TicketIdContainer" }, h("label", { class: "Label" }, translate('ticketId', this.language), ": ", h("span", null, this.ticketId))), h("div", { class: "TicketAmountContainer" }, h("label", { class: "Label" }, translate('ticketAmount', this.language), " ", h("span", null, this.ticketAmount))), h("div", { class: "DrawNumbersGrid" }, this.gridNumbers.map((grid, index) => h("div", null, h("label", { class: "Label" }, translate('drawNumbersGridTicket', this.language), " ", String.fromCharCode(index + 65), ":"), h("div", { class: "BulletContainer" }, h("lottery-grid", { "selected-numbers": grid.join(','), selectable: false, "display-selected": true, language: this.language, "grid-type": 'ticket', "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }))))), h("div", { class: "DrawMultipler" }, h("label", { class: "Label" }, translate('multiplier', this.language), " ", JSON.stringify(this.ticketMultiplier))), h("div", { class: "NumberOfDrawsContainer" }, h("label", { class: "Label" }, translate('numberOfDraws', this.language), ": ", this.ticketDrawCount), h("div", { class: "DrawTicketsContainer" }, this.ticketDrawDetails && this.ticketDrawDetails.length > 0 &&
135
+ h("div", { class: "ExpandableBoxes" }, this.ticketDrawDetails.map((drawDetail, index) => {
136
+ var _a, _b, _c, _d, _e;
137
+ return h("div", { class: { 'ExpandableBox': true, 'ShowBox': this.toggleDrawer[index] }, onClick: () => this.drawerToggle(index) }, h("div", { class: "ExpandableBoxHeader" }, h("div", { class: "TicketResultContainer" }, h("p", null, translate('ticketResult', this.language), ": ", drawDetail.state)), drawDetail.state == 'won' &&
138
+ h("div", { class: "AmountWonContainer" }, h("p", null, translate('amountWon', this.language), ": ", Number(drawDetail.amount).toLocaleString('en'), " ", drawDetail.currency)), drawDetail.state == 'lost' &&
139
+ h("div", { class: "DrawIdContainer" }, h("p", null, translate('drawId', this.language), ": ", drawDetail.drawId))), h("div", { class: "ExpandableBoxBody" }, h("div", { class: "DrawIdContainer" }, h("p", null, translate('drawId', this.language), ": ", drawDetail.drawId)), h("div", { class: "DrawDateContainer" }, h("p", null, translate('drawDate', this.language), ": ", (_a = drawDetail.drawData) === null || _a === void 0 ? void 0 :
140
+ _a.date.slice(0, 10), " | ", (_b = drawDetail.drawData) === null || _b === void 0 ? void 0 :
141
+ _b.date.slice(11, 19))), h("div", { class: "DrawNumbersGrid" }, drawDetail.drawData &&
142
+ h("div", { class: 'BulletContainer' }, h("label", { class: "Label" }, translate('drawNumbersGridDraw', this.language), " ", String.fromCharCode(index + 10), ":"), h("lottery-grid", { "selected-numbers": (_d = (_c = drawDetail.drawData) === null || _c === void 0 ? void 0 : _c.winningNumbers) === null || _d === void 0 ? void 0 : _d.join(','), selectable: false, "display-selected": true, language: this.language, "grid-type": 'ticket', "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }))), h("div", { class: "DrawMultipler" }, h("label", { class: "Label" }, translate('multiplier', this.language), " ", (_e = drawDetail.drawData) === null || _e === void 0 ? void 0 :
143
+ _e.multiplier))));
144
+ }))))))));
143
145
  }
144
- this.isLoading = false;
145
- })
146
- .catch((err) => {
147
- reject(err);
148
- this.isLoading = false;
149
- });
150
- });
151
- }
152
- drawerToggle(index) {
153
- this.toggleDrawer = this.toggleDrawer.map((item, itemIndex) => {
154
- if (itemIndex == index) {
155
- return !item;
156
- }
157
- return item;
158
- });
159
- if (index >= this.toggleDrawer.length) {
160
- this.toggleDrawer.push(true);
161
146
  }
162
- }
163
- render() {
164
- if (this.isLoading) {
165
- return (h("p", null, "Loading, please wait ..."));
147
+ static get is() { return "lottery-draw-results"; }
148
+ static get encapsulation() { return "shadow"; }
149
+ static get originalStyleUrls() {
150
+ return {
151
+ "$": ["lottery-draw-results.scss"]
152
+ };
166
153
  }
167
- else if (this.hasErrors) {
168
- h("p", null, this.errorText);
154
+ static get styleUrls() {
155
+ return {
156
+ "$": ["lottery-draw-results.css"]
157
+ };
169
158
  }
170
- else {
171
- return (h("section", { class: "DrawResultsSection", ref: el => this.stylingContainer = el }, this.drawMode ?
172
- h("div", { class: "DrawResultsArea" }, this.drawData &&
173
- h("div", null,
174
- h("div", { class: "DrawResultsHeader" },
175
- h("span", null,
176
- translate('drawId', this.language),
177
- ": ",
178
- this.drawData.id),
179
- h("span", null,
180
- translate('drawDate', this.language),
181
- ": ",
182
- this.drawData.date.slice(0, 10))),
183
- h("div", { class: "DrawResultsBody" },
184
- h("div", { class: "DrawNumbersGrid" },
185
- h("p", null,
186
- translate('drawNumbersGridDraw', this.language),
187
- "0:"),
188
- h("div", { class: "BulletContainer" },
189
- h("lottery-grid", { "selected-numbers": this.drawData.winningNumbers.join(','), "display-selected": true, selectable: false, language: this.language, "grid-type": 'ticket', "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent })),
190
- h("div", { class: "DrawMultipler" },
191
- h("label", { class: "Label" },
192
- translate('multiplier', this.language),
193
- " ",
194
- this.multiplier))))))
195
- :
196
- h("div", { class: "DrawResultsArea TicketDraws" },
197
- h("div", { class: "DrawResultsBody" },
198
- h("div", { class: "TicketIdContainer" },
199
- h("label", { class: "Label" },
200
- translate('ticketId', this.language),
201
- ": ",
202
- h("span", null, this.ticketId))),
203
- h("div", { class: "TicketAmountContainer" },
204
- h("label", { class: "Label" },
205
- translate('ticketAmount', this.language),
206
- " ",
207
- h("span", null, this.ticketAmount))),
208
- h("div", { class: "DrawNumbersGrid" }, this.gridNumbers.map((grid, index) => h("div", null,
209
- h("label", { class: "Label" },
210
- translate('drawNumbersGridTicket', this.language),
211
- " ",
212
- String.fromCharCode(index + 65),
213
- ":"),
214
- h("div", { class: "BulletContainer" },
215
- h("lottery-grid", { "selected-numbers": grid.join(','), selectable: false, "display-selected": true, language: this.language, "grid-type": 'ticket', "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }))))),
216
- h("div", { class: "DrawMultipler" },
217
- h("label", { class: "Label" },
218
- translate('multiplier', this.language),
219
- " ",
220
- JSON.stringify(this.ticketMultiplier))),
221
- h("div", { class: "NumberOfDrawsContainer" },
222
- h("label", { class: "Label" },
223
- translate('numberOfDraws', this.language),
224
- ": ",
225
- this.ticketDrawCount),
226
- h("div", { class: "DrawTicketsContainer" }, this.ticketDrawDetails && this.ticketDrawDetails.length > 0 &&
227
- h("div", { class: "ExpandableBoxes" }, this.ticketDrawDetails.map((drawDetail, index) => {
228
- var _a, _b, _c, _d, _e;
229
- return h("div", { class: { 'ExpandableBox': true, 'ShowBox': this.toggleDrawer[index] }, onClick: () => this.drawerToggle(index) },
230
- h("div", { class: "ExpandableBoxHeader" },
231
- h("div", { class: "TicketResultContainer" },
232
- h("p", null,
233
- translate('ticketResult', this.language),
234
- ": ",
235
- drawDetail.state)),
236
- drawDetail.state == 'won' &&
237
- h("div", { class: "AmountWonContainer" },
238
- h("p", null,
239
- translate('amountWon', this.language),
240
- ": ",
241
- Number(drawDetail.amount).toLocaleString('en'),
242
- " ",
243
- drawDetail.currency)),
244
- drawDetail.state == 'lost' &&
245
- h("div", { class: "DrawIdContainer" },
246
- h("p", null,
247
- translate('drawId', this.language),
248
- ": ",
249
- drawDetail.drawId))),
250
- h("div", { class: "ExpandableBoxBody" },
251
- h("div", { class: "DrawIdContainer" },
252
- h("p", null,
253
- translate('drawId', this.language),
254
- ": ",
255
- drawDetail.drawId)),
256
- h("div", { class: "DrawDateContainer" },
257
- h("p", null,
258
- translate('drawDate', this.language),
259
- ": ", (_a = drawDetail.drawData) === null || _a === void 0 ? void 0 :
260
- _a.date.slice(0, 10),
261
- " | ", (_b = drawDetail.drawData) === null || _b === void 0 ? void 0 :
262
- _b.date.slice(11, 19))),
263
- h("div", { class: "DrawNumbersGrid" }, drawDetail.drawData &&
264
- h("div", { class: 'BulletContainer' },
265
- h("label", { class: "Label" },
266
- translate('drawNumbersGridDraw', this.language),
267
- " ",
268
- String.fromCharCode(index + 10),
269
- ":"),
270
- h("lottery-grid", { "selected-numbers": (_d = (_c = drawDetail.drawData) === null || _c === void 0 ? void 0 : _c.winningNumbers) === null || _d === void 0 ? void 0 : _d.join(','), selectable: false, "display-selected": true, language: this.language, "grid-type": 'ticket', "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }))),
271
- h("div", { class: "DrawMultipler" },
272
- h("label", { class: "Label" },
273
- translate('multiplier', this.language),
274
- " ", (_e = drawDetail.drawData) === null || _e === void 0 ? void 0 :
275
- _e.multiplier))));
276
- }))))))));
159
+ static get properties() {
160
+ return {
161
+ "endpoint": {
162
+ "type": "string",
163
+ "mutable": false,
164
+ "complexType": {
165
+ "original": "string",
166
+ "resolved": "string",
167
+ "references": {}
168
+ },
169
+ "required": false,
170
+ "optional": false,
171
+ "docs": {
172
+ "tags": [],
173
+ "text": "Endpoint URL for the source of data"
174
+ },
175
+ "attribute": "endpoint",
176
+ "reflect": true
177
+ },
178
+ "gameId": {
179
+ "type": "string",
180
+ "mutable": false,
181
+ "complexType": {
182
+ "original": "string",
183
+ "resolved": "string",
184
+ "references": {}
185
+ },
186
+ "required": false,
187
+ "optional": false,
188
+ "docs": {
189
+ "tags": [],
190
+ "text": "GameID of the lottery game"
191
+ },
192
+ "attribute": "game-id",
193
+ "reflect": true
194
+ },
195
+ "language": {
196
+ "type": "string",
197
+ "mutable": false,
198
+ "complexType": {
199
+ "original": "string",
200
+ "resolved": "string",
201
+ "references": {}
202
+ },
203
+ "required": false,
204
+ "optional": false,
205
+ "docs": {
206
+ "tags": [],
207
+ "text": "Language of the widget"
208
+ },
209
+ "attribute": "language",
210
+ "reflect": true,
211
+ "defaultValue": "'en'"
212
+ },
213
+ "playerId": {
214
+ "type": "string",
215
+ "mutable": false,
216
+ "complexType": {
217
+ "original": "string",
218
+ "resolved": "string",
219
+ "references": {}
220
+ },
221
+ "required": false,
222
+ "optional": false,
223
+ "docs": {
224
+ "tags": [],
225
+ "text": "Player ID"
226
+ },
227
+ "attribute": "player-id",
228
+ "reflect": true
229
+ },
230
+ "drawMode": {
231
+ "type": "boolean",
232
+ "mutable": false,
233
+ "complexType": {
234
+ "original": "boolean",
235
+ "resolved": "boolean",
236
+ "references": {}
237
+ },
238
+ "required": false,
239
+ "optional": false,
240
+ "docs": {
241
+ "tags": [],
242
+ "text": "Shows only the last draw"
243
+ },
244
+ "attribute": "draw-mode",
245
+ "reflect": true,
246
+ "defaultValue": "false"
247
+ },
248
+ "drawId": {
249
+ "type": "string",
250
+ "mutable": false,
251
+ "complexType": {
252
+ "original": "string",
253
+ "resolved": "string",
254
+ "references": {}
255
+ },
256
+ "required": false,
257
+ "optional": false,
258
+ "docs": {
259
+ "tags": [],
260
+ "text": "The drawID (option)"
261
+ },
262
+ "attribute": "draw-id",
263
+ "reflect": true,
264
+ "defaultValue": "''"
265
+ },
266
+ "gameName": {
267
+ "type": "string",
268
+ "mutable": false,
269
+ "complexType": {
270
+ "original": "string",
271
+ "resolved": "string",
272
+ "references": {}
273
+ },
274
+ "required": false,
275
+ "optional": false,
276
+ "docs": {
277
+ "tags": [],
278
+ "text": "The game name"
279
+ },
280
+ "attribute": "game-name",
281
+ "reflect": true,
282
+ "defaultValue": "''"
283
+ },
284
+ "ticketDate": {
285
+ "type": "string",
286
+ "mutable": false,
287
+ "complexType": {
288
+ "original": "string",
289
+ "resolved": "string",
290
+ "references": {}
291
+ },
292
+ "required": false,
293
+ "optional": false,
294
+ "docs": {
295
+ "tags": [],
296
+ "text": "The ticket submission date"
297
+ },
298
+ "attribute": "ticket-date",
299
+ "reflect": true,
300
+ "defaultValue": "''"
301
+ },
302
+ "ticketStatus": {
303
+ "type": "string",
304
+ "mutable": false,
305
+ "complexType": {
306
+ "original": "string",
307
+ "resolved": "string",
308
+ "references": {}
309
+ },
310
+ "required": false,
311
+ "optional": false,
312
+ "docs": {
313
+ "tags": [],
314
+ "text": "The ticket status"
315
+ },
316
+ "attribute": "ticket-status",
317
+ "reflect": true,
318
+ "defaultValue": "''"
319
+ },
320
+ "ticketId": {
321
+ "type": "string",
322
+ "mutable": false,
323
+ "complexType": {
324
+ "original": "string",
325
+ "resolved": "string",
326
+ "references": {}
327
+ },
328
+ "required": false,
329
+ "optional": false,
330
+ "docs": {
331
+ "tags": [],
332
+ "text": "The ticket id"
333
+ },
334
+ "attribute": "ticket-id",
335
+ "reflect": true,
336
+ "defaultValue": "''"
337
+ },
338
+ "ticketAmount": {
339
+ "type": "string",
340
+ "mutable": false,
341
+ "complexType": {
342
+ "original": "string",
343
+ "resolved": "string",
344
+ "references": {}
345
+ },
346
+ "required": false,
347
+ "optional": false,
348
+ "docs": {
349
+ "tags": [],
350
+ "text": "The ticket amount"
351
+ },
352
+ "attribute": "ticket-amount",
353
+ "reflect": true,
354
+ "defaultValue": "''"
355
+ },
356
+ "ticketMultiplier": {
357
+ "type": "boolean",
358
+ "mutable": false,
359
+ "complexType": {
360
+ "original": "boolean",
361
+ "resolved": "boolean",
362
+ "references": {}
363
+ },
364
+ "required": false,
365
+ "optional": false,
366
+ "docs": {
367
+ "tags": [],
368
+ "text": "The ticket multiplier"
369
+ },
370
+ "attribute": "ticket-multiplier",
371
+ "reflect": true,
372
+ "defaultValue": "false"
373
+ },
374
+ "ticketDrawCount": {
375
+ "type": "number",
376
+ "mutable": false,
377
+ "complexType": {
378
+ "original": "number",
379
+ "resolved": "number",
380
+ "references": {}
381
+ },
382
+ "required": false,
383
+ "optional": false,
384
+ "docs": {
385
+ "tags": [],
386
+ "text": "The ticket draw count"
387
+ },
388
+ "attribute": "ticket-draw-count",
389
+ "reflect": true,
390
+ "defaultValue": "0"
391
+ },
392
+ "ticketNumbers": {
393
+ "type": "string",
394
+ "mutable": false,
395
+ "complexType": {
396
+ "original": "string",
397
+ "resolved": "string",
398
+ "references": {}
399
+ },
400
+ "required": false,
401
+ "optional": false,
402
+ "docs": {
403
+ "tags": [],
404
+ "text": "The ticket winning numbers"
405
+ },
406
+ "attribute": "ticket-numbers",
407
+ "reflect": true,
408
+ "defaultValue": "''"
409
+ },
410
+ "sessionId": {
411
+ "type": "string",
412
+ "mutable": false,
413
+ "complexType": {
414
+ "original": "string",
415
+ "resolved": "string",
416
+ "references": {}
417
+ },
418
+ "required": false,
419
+ "optional": false,
420
+ "docs": {
421
+ "tags": [],
422
+ "text": "The session id"
423
+ },
424
+ "attribute": "session-id",
425
+ "reflect": true,
426
+ "defaultValue": "''"
427
+ },
428
+ "clientStyling": {
429
+ "type": "string",
430
+ "mutable": false,
431
+ "complexType": {
432
+ "original": "string",
433
+ "resolved": "string",
434
+ "references": {}
435
+ },
436
+ "required": false,
437
+ "optional": false,
438
+ "docs": {
439
+ "tags": [],
440
+ "text": "Client custom styling via string"
441
+ },
442
+ "attribute": "client-styling",
443
+ "reflect": true,
444
+ "defaultValue": "''"
445
+ },
446
+ "clientStylingUrlContent": {
447
+ "type": "string",
448
+ "mutable": false,
449
+ "complexType": {
450
+ "original": "string",
451
+ "resolved": "string",
452
+ "references": {}
453
+ },
454
+ "required": false,
455
+ "optional": false,
456
+ "docs": {
457
+ "tags": [],
458
+ "text": "Client custom styling via url content"
459
+ },
460
+ "attribute": "client-styling-url-content",
461
+ "reflect": true,
462
+ "defaultValue": "''"
463
+ },
464
+ "ticketDrawData": {
465
+ "type": "string",
466
+ "mutable": false,
467
+ "complexType": {
468
+ "original": "string",
469
+ "resolved": "string",
470
+ "references": {}
471
+ },
472
+ "required": false,
473
+ "optional": false,
474
+ "docs": {
475
+ "tags": [],
476
+ "text": "Data showing the ticket's draw results details"
477
+ },
478
+ "attribute": "ticket-draw-data",
479
+ "reflect": true,
480
+ "defaultValue": "''"
481
+ }
482
+ };
277
483
  }
278
- }
279
- static get is() { return "lottery-draw-results"; }
280
- static get encapsulation() { return "shadow"; }
281
- static get originalStyleUrls() { return {
282
- "$": ["lottery-draw-results.scss"]
283
- }; }
284
- static get styleUrls() { return {
285
- "$": ["lottery-draw-results.css"]
286
- }; }
287
- static get properties() { return {
288
- "endpoint": {
289
- "type": "string",
290
- "mutable": false,
291
- "complexType": {
292
- "original": "string",
293
- "resolved": "string",
294
- "references": {}
295
- },
296
- "required": false,
297
- "optional": false,
298
- "docs": {
299
- "tags": [],
300
- "text": "Endpoint URL for the source of data"
301
- },
302
- "attribute": "endpoint",
303
- "reflect": true
304
- },
305
- "gameId": {
306
- "type": "string",
307
- "mutable": false,
308
- "complexType": {
309
- "original": "string",
310
- "resolved": "string",
311
- "references": {}
312
- },
313
- "required": false,
314
- "optional": false,
315
- "docs": {
316
- "tags": [],
317
- "text": "GameID of the lottery game"
318
- },
319
- "attribute": "game-id",
320
- "reflect": true
321
- },
322
- "language": {
323
- "type": "string",
324
- "mutable": false,
325
- "complexType": {
326
- "original": "string",
327
- "resolved": "string",
328
- "references": {}
329
- },
330
- "required": false,
331
- "optional": false,
332
- "docs": {
333
- "tags": [],
334
- "text": "Language of the widget"
335
- },
336
- "attribute": "language",
337
- "reflect": true,
338
- "defaultValue": "'en'"
339
- },
340
- "playerId": {
341
- "type": "string",
342
- "mutable": false,
343
- "complexType": {
344
- "original": "string",
345
- "resolved": "string",
346
- "references": {}
347
- },
348
- "required": false,
349
- "optional": false,
350
- "docs": {
351
- "tags": [],
352
- "text": "Player ID"
353
- },
354
- "attribute": "player-id",
355
- "reflect": true
356
- },
357
- "drawMode": {
358
- "type": "boolean",
359
- "mutable": false,
360
- "complexType": {
361
- "original": "boolean",
362
- "resolved": "boolean",
363
- "references": {}
364
- },
365
- "required": false,
366
- "optional": false,
367
- "docs": {
368
- "tags": [],
369
- "text": "Shows only the last draw"
370
- },
371
- "attribute": "draw-mode",
372
- "reflect": true,
373
- "defaultValue": "false"
374
- },
375
- "drawId": {
376
- "type": "string",
377
- "mutable": false,
378
- "complexType": {
379
- "original": "string",
380
- "resolved": "string",
381
- "references": {}
382
- },
383
- "required": false,
384
- "optional": false,
385
- "docs": {
386
- "tags": [],
387
- "text": "The drawID (option)"
388
- },
389
- "attribute": "draw-id",
390
- "reflect": true,
391
- "defaultValue": "''"
392
- },
393
- "gameName": {
394
- "type": "string",
395
- "mutable": false,
396
- "complexType": {
397
- "original": "string",
398
- "resolved": "string",
399
- "references": {}
400
- },
401
- "required": false,
402
- "optional": false,
403
- "docs": {
404
- "tags": [],
405
- "text": "The game name"
406
- },
407
- "attribute": "game-name",
408
- "reflect": true,
409
- "defaultValue": "''"
410
- },
411
- "ticketDate": {
412
- "type": "string",
413
- "mutable": false,
414
- "complexType": {
415
- "original": "string",
416
- "resolved": "string",
417
- "references": {}
418
- },
419
- "required": false,
420
- "optional": false,
421
- "docs": {
422
- "tags": [],
423
- "text": "The ticket submission date"
424
- },
425
- "attribute": "ticket-date",
426
- "reflect": true,
427
- "defaultValue": "''"
428
- },
429
- "ticketStatus": {
430
- "type": "string",
431
- "mutable": false,
432
- "complexType": {
433
- "original": "string",
434
- "resolved": "string",
435
- "references": {}
436
- },
437
- "required": false,
438
- "optional": false,
439
- "docs": {
440
- "tags": [],
441
- "text": "The ticket status"
442
- },
443
- "attribute": "ticket-status",
444
- "reflect": true,
445
- "defaultValue": "''"
446
- },
447
- "ticketId": {
448
- "type": "string",
449
- "mutable": false,
450
- "complexType": {
451
- "original": "string",
452
- "resolved": "string",
453
- "references": {}
454
- },
455
- "required": false,
456
- "optional": false,
457
- "docs": {
458
- "tags": [],
459
- "text": "The ticket id"
460
- },
461
- "attribute": "ticket-id",
462
- "reflect": true,
463
- "defaultValue": "''"
464
- },
465
- "ticketAmount": {
466
- "type": "string",
467
- "mutable": false,
468
- "complexType": {
469
- "original": "string",
470
- "resolved": "string",
471
- "references": {}
472
- },
473
- "required": false,
474
- "optional": false,
475
- "docs": {
476
- "tags": [],
477
- "text": "The ticket amount"
478
- },
479
- "attribute": "ticket-amount",
480
- "reflect": true,
481
- "defaultValue": "''"
482
- },
483
- "ticketMultiplier": {
484
- "type": "boolean",
485
- "mutable": false,
486
- "complexType": {
487
- "original": "boolean",
488
- "resolved": "boolean",
489
- "references": {}
490
- },
491
- "required": false,
492
- "optional": false,
493
- "docs": {
494
- "tags": [],
495
- "text": "The ticket multiplier"
496
- },
497
- "attribute": "ticket-multiplier",
498
- "reflect": true,
499
- "defaultValue": "false"
500
- },
501
- "ticketDrawCount": {
502
- "type": "number",
503
- "mutable": false,
504
- "complexType": {
505
- "original": "number",
506
- "resolved": "number",
507
- "references": {}
508
- },
509
- "required": false,
510
- "optional": false,
511
- "docs": {
512
- "tags": [],
513
- "text": "The ticket draw count"
514
- },
515
- "attribute": "ticket-draw-count",
516
- "reflect": true,
517
- "defaultValue": "0"
518
- },
519
- "ticketNumbers": {
520
- "type": "string",
521
- "mutable": false,
522
- "complexType": {
523
- "original": "string",
524
- "resolved": "string",
525
- "references": {}
526
- },
527
- "required": false,
528
- "optional": false,
529
- "docs": {
530
- "tags": [],
531
- "text": "The ticket winning numbers"
532
- },
533
- "attribute": "ticket-numbers",
534
- "reflect": true,
535
- "defaultValue": "''"
536
- },
537
- "sessionId": {
538
- "type": "string",
539
- "mutable": false,
540
- "complexType": {
541
- "original": "string",
542
- "resolved": "string",
543
- "references": {}
544
- },
545
- "required": false,
546
- "optional": false,
547
- "docs": {
548
- "tags": [],
549
- "text": "The session id"
550
- },
551
- "attribute": "session-id",
552
- "reflect": true,
553
- "defaultValue": "''"
554
- },
555
- "clientStyling": {
556
- "type": "string",
557
- "mutable": false,
558
- "complexType": {
559
- "original": "string",
560
- "resolved": "string",
561
- "references": {}
562
- },
563
- "required": false,
564
- "optional": false,
565
- "docs": {
566
- "tags": [],
567
- "text": "Client custom styling via string"
568
- },
569
- "attribute": "client-styling",
570
- "reflect": true,
571
- "defaultValue": "''"
572
- },
573
- "clientStylingUrlContent": {
574
- "type": "string",
575
- "mutable": false,
576
- "complexType": {
577
- "original": "string",
578
- "resolved": "string",
579
- "references": {}
580
- },
581
- "required": false,
582
- "optional": false,
583
- "docs": {
584
- "tags": [],
585
- "text": "Client custom styling via url content"
586
- },
587
- "attribute": "client-styling-url-content",
588
- "reflect": true,
589
- "defaultValue": "''"
590
- },
591
- "ticketDrawData": {
592
- "type": "string",
593
- "mutable": false,
594
- "complexType": {
595
- "original": "string",
596
- "resolved": "string",
597
- "references": {}
598
- },
599
- "required": false,
600
- "optional": false,
601
- "docs": {
602
- "tags": [],
603
- "text": "Data showing the ticket's draw results details"
604
- },
605
- "attribute": "ticket-draw-data",
606
- "reflect": true,
607
- "defaultValue": "''"
484
+ static get states() {
485
+ return {
486
+ "multiplier": {},
487
+ "isLoading": {},
488
+ "hasErrors": {},
489
+ "errorText": {},
490
+ "ticketData": {},
491
+ "ticketDataLoaded": {},
492
+ "ticketDraws": {},
493
+ "toggleDrawer": {},
494
+ "limitStylingAppends": {},
495
+ "drawData": {}
496
+ };
608
497
  }
609
- }; }
610
- static get states() { return {
611
- "multiplier": {},
612
- "isLoading": {},
613
- "hasErrors": {},
614
- "errorText": {},
615
- "ticketData": {},
616
- "ticketDataLoaded": {},
617
- "ticketDraws": {},
618
- "toggleDrawer": {},
619
- "limitStylingAppends": {},
620
- "drawData": {}
621
- }; }
622
498
  }