@everymatrix/lottery-ticket-controller 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/cjs/helper-accordion_5.cjs.entry.js +21187 -237
- package/dist/cjs/{index-79c2688a.js → index-805691f2.js} +187 -71
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/lottery-ticket-controller.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/lottery-ticket-controller/lottery-ticket-controller.css +0 -159
- package/dist/collection/components/lottery-ticket-controller/lottery-ticket-controller.js +82 -16
- package/dist/esm/helper-accordion_5.entry.js +21190 -240
- package/dist/esm/{index-0c3b2dac.js → index-112e65a8.js} +187 -71
- package/dist/esm/loader.js +3 -3
- package/dist/esm/lottery-ticket-controller.js +4 -4
- package/dist/lottery-ticket-controller/lottery-ticket-controller.esm.js +1 -1
- package/dist/lottery-ticket-controller/p-1090b990.js +2 -0
- package/dist/lottery-ticket-controller/p-6d913fec.entry.js +3115 -0
- package/package.json +1 -1
- package/dist/lottery-ticket-controller/p-8461c714.entry.js +0 -1
- package/dist/lottery-ticket-controller/p-f94609d8.js +0 -2
|
@@ -23,163 +23,4 @@ input::-webkit-inner-spin-button {
|
|
|
23
23
|
/* Firefox */
|
|
24
24
|
input[type=number] {
|
|
25
25
|
-moz-appearance: textfield;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.player-account-gaming-limits-popup-2 {
|
|
29
|
-
background: var(--emw--color-black, #000000);
|
|
30
|
-
color: var(--emw--color-white, #000);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.Title {
|
|
34
|
-
font-weight: 800;
|
|
35
|
-
font-size: 18px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
button {
|
|
39
|
-
display: block;
|
|
40
|
-
font-size: 0.75rem;
|
|
41
|
-
padding: 12px 0;
|
|
42
|
-
border: 0;
|
|
43
|
-
border-radius: 2px;
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
}
|
|
46
|
-
button.PrimaryButtonStyle {
|
|
47
|
-
font-size: 14px;
|
|
48
|
-
color: #fff;
|
|
49
|
-
background: rgb(122, 195, 23);
|
|
50
|
-
}
|
|
51
|
-
button.SecondaryButtonStyle {
|
|
52
|
-
border: 1px solid #999;
|
|
53
|
-
color: #666;
|
|
54
|
-
background: #fff;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.LinkButton {
|
|
58
|
-
display: inline;
|
|
59
|
-
padding: 0;
|
|
60
|
-
color: #3366CC;
|
|
61
|
-
text-decoration: underline;
|
|
62
|
-
background-color: rgba(0, 0, 0, 0);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.ResultIconWrapper {
|
|
66
|
-
display: flex;
|
|
67
|
-
flex-direction: column;
|
|
68
|
-
align-items: center;
|
|
69
|
-
margin: 12px 0;
|
|
70
|
-
}
|
|
71
|
-
.ResultIconWrapper svg {
|
|
72
|
-
height: auto;
|
|
73
|
-
width: 60px;
|
|
74
|
-
margin: 12px;
|
|
75
|
-
}
|
|
76
|
-
.ResultIconWrapper p {
|
|
77
|
-
color: #666;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.Overlay {
|
|
81
|
-
position: absolute;
|
|
82
|
-
top: 0;
|
|
83
|
-
left: 0;
|
|
84
|
-
width: 100vw;
|
|
85
|
-
height: 100vh;
|
|
86
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
87
|
-
display: flex;
|
|
88
|
-
justify-content: center;
|
|
89
|
-
align-items: center;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.ModalContainer {
|
|
93
|
-
position: fixed;
|
|
94
|
-
top: 30vh;
|
|
95
|
-
width: 320px;
|
|
96
|
-
height: auto;
|
|
97
|
-
padding: 18px 14px;
|
|
98
|
-
background: #fff;
|
|
99
|
-
border-radius: 4px;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.InitialWrapper {
|
|
103
|
-
display: flex;
|
|
104
|
-
flex-direction: column;
|
|
105
|
-
gap: 12px;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.AdditionalInformation {
|
|
109
|
-
margin: 10px 0;
|
|
110
|
-
font-size: 14px;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.TermsConditions {
|
|
114
|
-
font-size: 12px;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.ExpandButton {
|
|
118
|
-
font-size: 14px;
|
|
119
|
-
background-color: #fff;
|
|
120
|
-
border: 0;
|
|
121
|
-
padding: 0;
|
|
122
|
-
margin-top: -10px;
|
|
123
|
-
color: #999;
|
|
124
|
-
display: flex;
|
|
125
|
-
justify-content: center;
|
|
126
|
-
align-items: center;
|
|
127
|
-
cursor: pointer;
|
|
128
|
-
}
|
|
129
|
-
.ExpandButton svg {
|
|
130
|
-
width: 28px;
|
|
131
|
-
height: auto;
|
|
132
|
-
margin-left: -4px;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.LeftAlign {
|
|
136
|
-
text-align: left;
|
|
137
|
-
font-size: 16px;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.CenterAlign {
|
|
141
|
-
text-align: center;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.SetLimitSection {
|
|
145
|
-
display: flex;
|
|
146
|
-
flex-direction: column;
|
|
147
|
-
gap: 6px;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.DepositTextSection {
|
|
151
|
-
display: flex;
|
|
152
|
-
justify-content: space-between;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.DepositInputSection {
|
|
156
|
-
height: 32px;
|
|
157
|
-
display: flex;
|
|
158
|
-
gap: 4px;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.DepositInput {
|
|
162
|
-
flex-grow: 1;
|
|
163
|
-
padding: 0 6px;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.SubmitDepositButton {
|
|
167
|
-
flex-grow: 1;
|
|
168
|
-
font-size: 0.75rem;
|
|
169
|
-
padding: 0;
|
|
170
|
-
}
|
|
171
|
-
.SubmitDepositButton[disabled] {
|
|
172
|
-
align-items: center;
|
|
173
|
-
color: #ccc;
|
|
174
|
-
cursor: not-allowed;
|
|
175
|
-
background: #fff;
|
|
176
|
-
border: #ccc 1px solid;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.Hidden {
|
|
180
|
-
display: none;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.Extended {
|
|
184
|
-
transform: rotate(180deg);
|
|
185
26
|
}
|
|
@@ -4,34 +4,71 @@ import "../../../../../lottery-ticket/dist/types/index";
|
|
|
4
4
|
import { translate } from "../../utils/locale.utils";
|
|
5
5
|
export class LotteryTicketController {
|
|
6
6
|
constructor() {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
this.stylingContainer.prepend(sheet);
|
|
11
|
-
};
|
|
12
|
-
this.setClientStylingURL = () => {
|
|
13
|
-
let cssFile = document.createElement('style');
|
|
14
|
-
setTimeout(() => {
|
|
15
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
16
|
-
this.stylingContainer.prepend(cssFile);
|
|
17
|
-
}, 1);
|
|
18
|
-
};
|
|
7
|
+
/**
|
|
8
|
+
* Endpoint URL for the source of data (NorWAy standard)
|
|
9
|
+
*/
|
|
19
10
|
this.endpoint = '';
|
|
11
|
+
/**
|
|
12
|
+
* Ticket number
|
|
13
|
+
*/
|
|
20
14
|
this.ticketId = 1;
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Activates postMessages as events for actions from the widget
|
|
17
|
+
*/
|
|
23
18
|
this.postMessage = false;
|
|
19
|
+
/**
|
|
20
|
+
* Name of the event emitter by the action button
|
|
21
|
+
*/
|
|
24
22
|
this.eventName = 'deleteTicketAction';
|
|
23
|
+
/**
|
|
24
|
+
* Collapsed
|
|
25
|
+
*/
|
|
25
26
|
this.collapsed = true;
|
|
27
|
+
/**
|
|
28
|
+
* Number of grids?
|
|
29
|
+
*/
|
|
26
30
|
this.numberOfGrids = 1;
|
|
31
|
+
/**
|
|
32
|
+
* This toggles if the last ticket added should be expanded or not
|
|
33
|
+
*/
|
|
27
34
|
this.last = false;
|
|
35
|
+
/**
|
|
36
|
+
* Language
|
|
37
|
+
*/
|
|
28
38
|
this.language = 'en';
|
|
39
|
+
/**
|
|
40
|
+
* Shows the auto-pick button
|
|
41
|
+
*/
|
|
29
42
|
this.autoPick = false;
|
|
43
|
+
/**
|
|
44
|
+
* Shows the reset button
|
|
45
|
+
*/
|
|
30
46
|
this.resetButton = false;
|
|
47
|
+
/**
|
|
48
|
+
* Number of ticket controllers
|
|
49
|
+
*/
|
|
31
50
|
this.totalControllers = 1;
|
|
51
|
+
/**
|
|
52
|
+
* Client custom styling via string
|
|
53
|
+
*/
|
|
32
54
|
this.clientStyling = '';
|
|
55
|
+
/**
|
|
56
|
+
* Client custom styling via url content
|
|
57
|
+
*/
|
|
33
58
|
this.clientStylingUrlContent = '';
|
|
34
59
|
this.limitStylingAppends = false;
|
|
60
|
+
this.setClientStyling = () => {
|
|
61
|
+
let sheet = document.createElement('style');
|
|
62
|
+
sheet.innerHTML = this.clientStyling;
|
|
63
|
+
this.stylingContainer.prepend(sheet);
|
|
64
|
+
};
|
|
65
|
+
this.setClientStylingURL = () => {
|
|
66
|
+
let cssFile = document.createElement('style');
|
|
67
|
+
setTimeout(() => {
|
|
68
|
+
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
69
|
+
this.stylingContainer.prepend(cssFile);
|
|
70
|
+
}, 1);
|
|
71
|
+
};
|
|
35
72
|
}
|
|
36
73
|
// @TODO fix the `any` type
|
|
37
74
|
helperAccordionActionHandler() {
|
|
@@ -54,8 +91,7 @@ export class LotteryTicketController {
|
|
|
54
91
|
// end custom styling area
|
|
55
92
|
}
|
|
56
93
|
render() {
|
|
57
|
-
|
|
58
|
-
return (h("div", { key: '203c89c4b240cd7c99eb3d37fa3a4dbc17ed18e3', class: "LotteryTicketControllerContainer", ref: el => this.stylingContainer = el }, h("helper-accordion", { key: 'ad9801b15a1718ff7470ab3084c4b569ad23f6e3', "header-title": `${translate('ticket', this.language)} ${this.ticketId}`, "header-subtitle": this.ticketDescription, footer: true, "delete-tab": this.totalControllers !== 1, collapsed: !this.last || this.collapsed, language: this.language, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }, h("div", { key: 'b9c618987e848d4b44fee6941f8b5c9696bd44e8', slot: "accordionContent" }, h("lottery-ticket", { key: '8acdc3d3cce5b654e7cddd71576c2e993881786f', endpoint: this.endpoint, "game-id": this.gameId, "ticket-id": this.ticketId, "number-of-grids": this.numberOfGrids, language: this.language, "reset-button": this.resetButton, "auto-pick": this.autoPick, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent })))));
|
|
94
|
+
return (h("div", { key: '4d590432063c3eb6ebc21d0c529d861d60f0af3c', class: "LotteryTicketControllerContainer", ref: el => this.stylingContainer = el }, h("helper-accordion", { key: 'afdc0f2938b173a41966fa93d2d0d92551058dc5', "header-title": `${translate('ticket', this.language)} ${this.ticketId}`, "header-subtitle": this.ticketDescription, footer: true, "delete-tab": this.totalControllers !== 1, collapsed: !this.last || this.collapsed, language: this.language, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }, h("div", { key: '9f01d3ffcb6fa2342394de10efc666cbc5c7f042', slot: "accordionContent" }, h("lottery-ticket", { key: 'bdf5ea12c603665b6d9f9133de9d5206344677f1', endpoint: this.endpoint, "game-id": this.gameId, "ticket-id": this.ticketId, "number-of-grids": this.numberOfGrids, language: this.language, "reset-button": this.resetButton, "auto-pick": this.autoPick, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent })))));
|
|
59
95
|
}
|
|
60
96
|
static get is() { return "lottery-ticket-controller"; }
|
|
61
97
|
static get encapsulation() { return "shadow"; }
|
|
@@ -85,6 +121,8 @@ export class LotteryTicketController {
|
|
|
85
121
|
"tags": [],
|
|
86
122
|
"text": "Endpoint URL for the source of data (NorWAy standard)"
|
|
87
123
|
},
|
|
124
|
+
"getter": false,
|
|
125
|
+
"setter": false,
|
|
88
126
|
"attribute": "endpoint",
|
|
89
127
|
"reflect": true,
|
|
90
128
|
"defaultValue": "''"
|
|
@@ -103,6 +141,8 @@ export class LotteryTicketController {
|
|
|
103
141
|
"tags": [],
|
|
104
142
|
"text": "Ticket number"
|
|
105
143
|
},
|
|
144
|
+
"getter": false,
|
|
145
|
+
"setter": false,
|
|
106
146
|
"attribute": "ticket-id",
|
|
107
147
|
"reflect": true,
|
|
108
148
|
"defaultValue": "1"
|
|
@@ -121,6 +161,8 @@ export class LotteryTicketController {
|
|
|
121
161
|
"tags": [],
|
|
122
162
|
"text": "Ticket header description"
|
|
123
163
|
},
|
|
164
|
+
"getter": false,
|
|
165
|
+
"setter": false,
|
|
124
166
|
"attribute": "ticket-description",
|
|
125
167
|
"reflect": true
|
|
126
168
|
},
|
|
@@ -138,6 +180,8 @@ export class LotteryTicketController {
|
|
|
138
180
|
"tags": [],
|
|
139
181
|
"text": "ID of the lottery game"
|
|
140
182
|
},
|
|
183
|
+
"getter": false,
|
|
184
|
+
"setter": false,
|
|
141
185
|
"attribute": "game-id",
|
|
142
186
|
"reflect": true
|
|
143
187
|
},
|
|
@@ -155,6 +199,8 @@ export class LotteryTicketController {
|
|
|
155
199
|
"tags": [],
|
|
156
200
|
"text": "Activates postMessages as events for actions from the widget"
|
|
157
201
|
},
|
|
202
|
+
"getter": false,
|
|
203
|
+
"setter": false,
|
|
158
204
|
"attribute": "post-message",
|
|
159
205
|
"reflect": true,
|
|
160
206
|
"defaultValue": "false"
|
|
@@ -173,6 +219,8 @@ export class LotteryTicketController {
|
|
|
173
219
|
"tags": [],
|
|
174
220
|
"text": "Name of the event emitter by the action button"
|
|
175
221
|
},
|
|
222
|
+
"getter": false,
|
|
223
|
+
"setter": false,
|
|
176
224
|
"attribute": "event-name",
|
|
177
225
|
"reflect": true,
|
|
178
226
|
"defaultValue": "'deleteTicketAction'"
|
|
@@ -191,6 +239,8 @@ export class LotteryTicketController {
|
|
|
191
239
|
"tags": [],
|
|
192
240
|
"text": "Collapsed"
|
|
193
241
|
},
|
|
242
|
+
"getter": false,
|
|
243
|
+
"setter": false,
|
|
194
244
|
"attribute": "collapsed",
|
|
195
245
|
"reflect": true,
|
|
196
246
|
"defaultValue": "true"
|
|
@@ -209,6 +259,8 @@ export class LotteryTicketController {
|
|
|
209
259
|
"tags": [],
|
|
210
260
|
"text": "Number of grids?"
|
|
211
261
|
},
|
|
262
|
+
"getter": false,
|
|
263
|
+
"setter": false,
|
|
212
264
|
"attribute": "number-of-grids",
|
|
213
265
|
"reflect": true,
|
|
214
266
|
"defaultValue": "1"
|
|
@@ -227,6 +279,8 @@ export class LotteryTicketController {
|
|
|
227
279
|
"tags": [],
|
|
228
280
|
"text": "This toggles if the last ticket added should be expanded or not"
|
|
229
281
|
},
|
|
282
|
+
"getter": false,
|
|
283
|
+
"setter": false,
|
|
230
284
|
"attribute": "last",
|
|
231
285
|
"reflect": true,
|
|
232
286
|
"defaultValue": "false"
|
|
@@ -245,6 +299,8 @@ export class LotteryTicketController {
|
|
|
245
299
|
"tags": [],
|
|
246
300
|
"text": "Language"
|
|
247
301
|
},
|
|
302
|
+
"getter": false,
|
|
303
|
+
"setter": false,
|
|
248
304
|
"attribute": "language",
|
|
249
305
|
"reflect": true,
|
|
250
306
|
"defaultValue": "'en'"
|
|
@@ -263,6 +319,8 @@ export class LotteryTicketController {
|
|
|
263
319
|
"tags": [],
|
|
264
320
|
"text": "Shows the auto-pick button"
|
|
265
321
|
},
|
|
322
|
+
"getter": false,
|
|
323
|
+
"setter": false,
|
|
266
324
|
"attribute": "auto-pick",
|
|
267
325
|
"reflect": true,
|
|
268
326
|
"defaultValue": "false"
|
|
@@ -281,6 +339,8 @@ export class LotteryTicketController {
|
|
|
281
339
|
"tags": [],
|
|
282
340
|
"text": "Shows the reset button"
|
|
283
341
|
},
|
|
342
|
+
"getter": false,
|
|
343
|
+
"setter": false,
|
|
284
344
|
"attribute": "reset-button",
|
|
285
345
|
"reflect": true,
|
|
286
346
|
"defaultValue": "false"
|
|
@@ -299,6 +359,8 @@ export class LotteryTicketController {
|
|
|
299
359
|
"tags": [],
|
|
300
360
|
"text": "Number of ticket controllers"
|
|
301
361
|
},
|
|
362
|
+
"getter": false,
|
|
363
|
+
"setter": false,
|
|
302
364
|
"attribute": "total-controllers",
|
|
303
365
|
"reflect": true,
|
|
304
366
|
"defaultValue": "1"
|
|
@@ -317,6 +379,8 @@ export class LotteryTicketController {
|
|
|
317
379
|
"tags": [],
|
|
318
380
|
"text": "Client custom styling via string"
|
|
319
381
|
},
|
|
382
|
+
"getter": false,
|
|
383
|
+
"setter": false,
|
|
320
384
|
"attribute": "client-styling",
|
|
321
385
|
"reflect": true,
|
|
322
386
|
"defaultValue": "''"
|
|
@@ -335,6 +399,8 @@ export class LotteryTicketController {
|
|
|
335
399
|
"tags": [],
|
|
336
400
|
"text": "Client custom styling via url content"
|
|
337
401
|
},
|
|
402
|
+
"getter": false,
|
|
403
|
+
"setter": false,
|
|
338
404
|
"attribute": "client-styling-url-content",
|
|
339
405
|
"reflect": true,
|
|
340
406
|
"defaultValue": "''"
|