@everymatrix/lottery-game-page 1.56.0 → 1.56.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.
- package/dist/cjs/helper-accordion_14.cjs.entry.js +382 -770
- package/dist/cjs/{index-c77bea42.js → index-bc91a30a.js} +77 -212
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/lottery-game-page.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/lottery-game-page/lottery-game-page.js +32 -52
- package/dist/esm/helper-accordion_14.entry.js +382 -770
- package/dist/esm/{index-13ed46b6.js → index-1df2d78b.js} +77 -212
- package/dist/esm/loader.js +2 -2
- package/dist/esm/lottery-game-page.js +3 -3
- package/dist/lottery-game-page/lottery-game-page.esm.js +1 -1
- package/dist/lottery-game-page/p-486d5a35.js +2 -0
- package/dist/lottery-game-page/{p-f348243b.entry.js → p-9a6c64e8.entry.js} +166 -168
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-game-page/.stencil/packages/stencil/lottery-game-page/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-game-page/.stencil/packages/stencil/lottery-game-page/stencil.config.dev.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/package.json +1 -1
- package/dist/lottery-game-page/p-07f9838b.js +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-game-page/.stencil/packages/stencil/lottery-game-page/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-game-page/.stencil/packages/stencil/lottery-game-page/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-game-page/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-game-page/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-game-page/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-game-page/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-bc91a30a.js');
|
|
6
6
|
|
|
7
7
|
const DEFAULT_LANGUAGE$8 = 'en';
|
|
8
8
|
const SUPPORTED_LANGUAGES$7 = ['ro', 'en', 'hr'];
|
|
@@ -42,67 +42,33 @@ const HelperAccordion = class {
|
|
|
42
42
|
constructor(hostRef) {
|
|
43
43
|
index.registerInstance(this, hostRef);
|
|
44
44
|
this.accordionEvent = index.createEvent(this, "helperAccordionAction", 7);
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
this.setClientStyling = () => {
|
|
46
|
+
let sheet = document.createElement('style');
|
|
47
|
+
sheet.innerHTML = this.clientStyling;
|
|
48
|
+
this.stylingContainer.prepend(sheet);
|
|
49
|
+
};
|
|
50
|
+
this.setClientStylingURL = () => {
|
|
51
|
+
let cssFile = document.createElement('style');
|
|
52
|
+
setTimeout(() => {
|
|
53
|
+
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
54
|
+
this.stylingContainer.prepend(cssFile);
|
|
55
|
+
}, 1);
|
|
56
|
+
};
|
|
48
57
|
this.ticketHistoryFlag = false;
|
|
49
|
-
/**
|
|
50
|
-
* Title (top header)
|
|
51
|
-
*/
|
|
52
58
|
this.headerTitle = '';
|
|
53
|
-
/**
|
|
54
|
-
* SubTitle (top header)
|
|
55
|
-
*/
|
|
56
59
|
this.headerSubtitle = '';
|
|
57
|
-
/**
|
|
58
|
-
* Description
|
|
59
|
-
*/
|
|
60
60
|
this.description = '';
|
|
61
|
-
/**
|
|
62
|
-
* Enables footer content
|
|
63
|
-
*/
|
|
64
61
|
this.footer = false;
|
|
65
|
-
/**
|
|
66
|
-
* Enables footer button for tab deletion
|
|
67
|
-
*/
|
|
68
62
|
this.deleteTab = false;
|
|
69
|
-
/**
|
|
70
|
-
* Activates postMessages as events for actions from the widget
|
|
71
|
-
*/
|
|
72
63
|
this.postMessage = false;
|
|
73
|
-
/**
|
|
74
|
-
* Name of the event emitter by the action button
|
|
75
|
-
*/
|
|
76
64
|
this.eventName = 'helperAccordionAction';
|
|
77
|
-
/**
|
|
78
|
-
* Collapsed
|
|
79
|
-
*/
|
|
80
65
|
this.collapsed = true;
|
|
81
|
-
/**
|
|
82
|
-
* Language
|
|
83
|
-
*/
|
|
84
66
|
this.language = 'en';
|
|
85
|
-
/**
|
|
86
|
-
* Client custom styling via string
|
|
87
|
-
*/
|
|
88
67
|
this.clientStyling = '';
|
|
89
|
-
/**
|
|
90
|
-
* Client custom styling via url content
|
|
91
|
-
*/
|
|
92
68
|
this.clientStylingUrlContent = '';
|
|
69
|
+
this.translationUrl = undefined;
|
|
70
|
+
this.showContent = undefined;
|
|
93
71
|
this.limitStylingAppends = false;
|
|
94
|
-
this.setClientStyling = () => {
|
|
95
|
-
let sheet = document.createElement('style');
|
|
96
|
-
sheet.innerHTML = this.clientStyling;
|
|
97
|
-
this.stylingContainer.prepend(sheet);
|
|
98
|
-
};
|
|
99
|
-
this.setClientStylingURL = () => {
|
|
100
|
-
let cssFile = document.createElement('style');
|
|
101
|
-
setTimeout(() => {
|
|
102
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
103
|
-
this.stylingContainer.prepend(cssFile);
|
|
104
|
-
}, 1);
|
|
105
|
-
};
|
|
106
72
|
}
|
|
107
73
|
// @TODO fix the `any` type :)
|
|
108
74
|
connectedCallback() {
|
|
@@ -223,55 +189,13 @@ const getTranslations$7 = (data) => {
|
|
|
223
189
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
224
190
|
*/
|
|
225
191
|
|
|
226
|
-
|
|
227
|
-
window.Vaadin.featureFlags ||= {};
|
|
228
|
-
|
|
229
|
-
function dashToCamelCase$1(dash) {
|
|
230
|
-
return dash.replace(/-[a-z]/gu, (m) => m[1].toUpperCase());
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
const experimentalMap = {};
|
|
234
|
-
|
|
235
|
-
function defineCustomElement(CustomElement, version = '24.6.5') {
|
|
192
|
+
function defineCustomElement(CustomElement, version = '24.5.10') {
|
|
236
193
|
Object.defineProperty(CustomElement, 'version', {
|
|
237
194
|
get() {
|
|
238
195
|
return version;
|
|
239
196
|
},
|
|
240
197
|
});
|
|
241
198
|
|
|
242
|
-
if (CustomElement.experimental) {
|
|
243
|
-
const featureFlagKey =
|
|
244
|
-
typeof CustomElement.experimental === 'string'
|
|
245
|
-
? CustomElement.experimental
|
|
246
|
-
: `${dashToCamelCase$1(CustomElement.is.split('-').slice(1).join('-'))}Component`;
|
|
247
|
-
|
|
248
|
-
if (!window.Vaadin.featureFlags[featureFlagKey] && !experimentalMap[featureFlagKey]) {
|
|
249
|
-
// Add setter to define experimental component when it's set to true
|
|
250
|
-
experimentalMap[featureFlagKey] = new Set();
|
|
251
|
-
experimentalMap[featureFlagKey].add(CustomElement);
|
|
252
|
-
|
|
253
|
-
Object.defineProperty(window.Vaadin.featureFlags, featureFlagKey, {
|
|
254
|
-
get() {
|
|
255
|
-
return experimentalMap[featureFlagKey].size === 0;
|
|
256
|
-
},
|
|
257
|
-
set(value) {
|
|
258
|
-
if (!!value && experimentalMap[featureFlagKey].size > 0) {
|
|
259
|
-
experimentalMap[featureFlagKey].forEach((elementClass) => {
|
|
260
|
-
customElements.define(elementClass.is, elementClass);
|
|
261
|
-
});
|
|
262
|
-
experimentalMap[featureFlagKey].clear();
|
|
263
|
-
}
|
|
264
|
-
},
|
|
265
|
-
});
|
|
266
|
-
|
|
267
|
-
return;
|
|
268
|
-
} else if (experimentalMap[featureFlagKey]) {
|
|
269
|
-
// Allow to register multiple components with single flag
|
|
270
|
-
experimentalMap[featureFlagKey].add(CustomElement);
|
|
271
|
-
return;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
|
|
275
199
|
const defined = customElements.get(CustomElement.is);
|
|
276
200
|
if (!defined) {
|
|
277
201
|
customElements.define(CustomElement.is, CustomElement);
|
|
@@ -2355,7 +2279,7 @@ registerStyles(
|
|
|
2355
2279
|
const fontIcons = i$3`
|
|
2356
2280
|
@font-face {
|
|
2357
2281
|
font-family: 'lumo-icons';
|
|
2358
|
-
src: url(data:application/font-woff;charset=utf-8;base64,
|
|
2282
|
+
src: url(data:application/font-woff;charset=utf-8;base64,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)
|
|
2359
2283
|
format('woff');
|
|
2360
2284
|
font-weight: normal;
|
|
2361
2285
|
font-style: normal;
|
|
@@ -2385,27 +2309,25 @@ const fontIcons = i$3`
|
|
|
2385
2309
|
--lumo-icons-cog: '\\ea15';
|
|
2386
2310
|
--lumo-icons-cross: '\\ea16';
|
|
2387
2311
|
--lumo-icons-download: '\\ea17';
|
|
2388
|
-
--lumo-icons-
|
|
2389
|
-
--lumo-icons-
|
|
2390
|
-
--lumo-icons-
|
|
2391
|
-
--lumo-icons-
|
|
2392
|
-
--lumo-icons-eye: '\\ea1c';
|
|
2393
|
-
--lumo-icons-
|
|
2394
|
-
--lumo-icons-
|
|
2395
|
-
--lumo-icons-
|
|
2396
|
-
--lumo-icons-
|
|
2397
|
-
--lumo-icons-
|
|
2398
|
-
--lumo-icons-
|
|
2399
|
-
--lumo-icons-
|
|
2400
|
-
--lumo-icons-
|
|
2401
|
-
--lumo-icons-
|
|
2402
|
-
--lumo-icons-
|
|
2403
|
-
--lumo-icons-
|
|
2404
|
-
--lumo-icons-
|
|
2405
|
-
--lumo-icons-
|
|
2406
|
-
--lumo-icons-
|
|
2407
|
-
--lumo-icons-upload: '\\ea2b';
|
|
2408
|
-
--lumo-icons-user: '\\ea2c';
|
|
2312
|
+
--lumo-icons-dropdown: '\\ea18';
|
|
2313
|
+
--lumo-icons-edit: '\\ea19';
|
|
2314
|
+
--lumo-icons-error: '\\ea1a';
|
|
2315
|
+
--lumo-icons-eye: '\\ea1b';
|
|
2316
|
+
--lumo-icons-eye-disabled: '\\ea1c';
|
|
2317
|
+
--lumo-icons-menu: '\\ea1d';
|
|
2318
|
+
--lumo-icons-minus: '\\ea1e';
|
|
2319
|
+
--lumo-icons-ordered-list: '\\ea1f';
|
|
2320
|
+
--lumo-icons-phone: '\\ea20';
|
|
2321
|
+
--lumo-icons-photo: '\\ea21';
|
|
2322
|
+
--lumo-icons-play: '\\ea22';
|
|
2323
|
+
--lumo-icons-plus: '\\ea23';
|
|
2324
|
+
--lumo-icons-redo: '\\ea24';
|
|
2325
|
+
--lumo-icons-reload: '\\ea25';
|
|
2326
|
+
--lumo-icons-search: '\\ea26';
|
|
2327
|
+
--lumo-icons-undo: '\\ea27';
|
|
2328
|
+
--lumo-icons-unordered-list: '\\ea28';
|
|
2329
|
+
--lumo-icons-upload: '\\ea29';
|
|
2330
|
+
--lumo-icons-user: '\\ea2a';
|
|
2409
2331
|
}
|
|
2410
2332
|
`;
|
|
2411
2333
|
|
|
@@ -11427,7 +11349,6 @@ const OverlayMixin = (superClass) =>
|
|
|
11427
11349
|
notify: true,
|
|
11428
11350
|
observer: '_openedChanged',
|
|
11429
11351
|
reflectToAttribute: true,
|
|
11430
|
-
sync: true,
|
|
11431
11352
|
},
|
|
11432
11353
|
|
|
11433
11354
|
/**
|
|
@@ -11436,7 +11357,6 @@ const OverlayMixin = (superClass) =>
|
|
|
11436
11357
|
*/
|
|
11437
11358
|
owner: {
|
|
11438
11359
|
type: Object,
|
|
11439
|
-
sync: true,
|
|
11440
11360
|
},
|
|
11441
11361
|
|
|
11442
11362
|
/**
|
|
@@ -11444,7 +11364,6 @@ const OverlayMixin = (superClass) =>
|
|
|
11444
11364
|
*/
|
|
11445
11365
|
model: {
|
|
11446
11366
|
type: Object,
|
|
11447
|
-
sync: true,
|
|
11448
11367
|
},
|
|
11449
11368
|
|
|
11450
11369
|
/**
|
|
@@ -11458,7 +11377,6 @@ const OverlayMixin = (superClass) =>
|
|
|
11458
11377
|
*/
|
|
11459
11378
|
renderer: {
|
|
11460
11379
|
type: Object,
|
|
11461
|
-
sync: true,
|
|
11462
11380
|
},
|
|
11463
11381
|
|
|
11464
11382
|
/**
|
|
@@ -11471,7 +11389,6 @@ const OverlayMixin = (superClass) =>
|
|
|
11471
11389
|
value: false,
|
|
11472
11390
|
reflectToAttribute: true,
|
|
11473
11391
|
observer: '_modelessChanged',
|
|
11474
|
-
sync: true,
|
|
11475
11392
|
},
|
|
11476
11393
|
|
|
11477
11394
|
/**
|
|
@@ -11483,7 +11400,6 @@ const OverlayMixin = (superClass) =>
|
|
|
11483
11400
|
type: Boolean,
|
|
11484
11401
|
reflectToAttribute: true,
|
|
11485
11402
|
observer: '_hiddenChanged',
|
|
11486
|
-
sync: true,
|
|
11487
11403
|
},
|
|
11488
11404
|
|
|
11489
11405
|
/**
|
|
@@ -11494,7 +11410,6 @@ const OverlayMixin = (superClass) =>
|
|
|
11494
11410
|
type: Boolean,
|
|
11495
11411
|
value: false,
|
|
11496
11412
|
reflectToAttribute: true,
|
|
11497
|
-
sync: true,
|
|
11498
11413
|
},
|
|
11499
11414
|
};
|
|
11500
11415
|
}
|
|
@@ -15114,7 +15029,6 @@ const DisabledMixin = dedupingMixin(
|
|
|
15114
15029
|
value: false,
|
|
15115
15030
|
observer: '_disabledChanged',
|
|
15116
15031
|
reflectToAttribute: true,
|
|
15117
|
-
sync: true,
|
|
15118
15032
|
},
|
|
15119
15033
|
};
|
|
15120
15034
|
}
|
|
@@ -16271,21 +16185,6 @@ class InfiniteScroller extends HTMLElement {
|
|
|
16271
16185
|
}
|
|
16272
16186
|
}
|
|
16273
16187
|
|
|
16274
|
-
/** @protected */
|
|
16275
|
-
disconnectedCallback() {
|
|
16276
|
-
if (this._debouncerScrollFinish) {
|
|
16277
|
-
this._debouncerScrollFinish.cancel();
|
|
16278
|
-
}
|
|
16279
|
-
|
|
16280
|
-
if (this._debouncerUpdateClones) {
|
|
16281
|
-
this._debouncerUpdateClones.cancel();
|
|
16282
|
-
}
|
|
16283
|
-
|
|
16284
|
-
if (this.__pendingFinishInit) {
|
|
16285
|
-
cancelAnimationFrame(this.__pendingFinishInit);
|
|
16286
|
-
}
|
|
16287
|
-
}
|
|
16288
|
-
|
|
16289
16188
|
/**
|
|
16290
16189
|
* Force the scroller to update clones after a reset, without
|
|
16291
16190
|
* waiting for the debouncer to resolve.
|
|
@@ -16433,9 +16332,8 @@ class InfiniteScroller extends HTMLElement {
|
|
|
16433
16332
|
}
|
|
16434
16333
|
});
|
|
16435
16334
|
|
|
16436
|
-
|
|
16335
|
+
requestAnimationFrame(() => {
|
|
16437
16336
|
this._finishInit();
|
|
16438
|
-
this.__pendingFinishInit = null;
|
|
16439
16337
|
});
|
|
16440
16338
|
}
|
|
16441
16339
|
|
|
@@ -16450,10 +16348,6 @@ class InfiniteScroller extends HTMLElement {
|
|
|
16450
16348
|
itemWrapper.instance = this._createElement();
|
|
16451
16349
|
itemWrapper.appendChild(itemWrapper.instance);
|
|
16452
16350
|
|
|
16453
|
-
if (itemWrapper.instance.performUpdate) {
|
|
16454
|
-
itemWrapper.instance.performUpdate();
|
|
16455
|
-
}
|
|
16456
|
-
|
|
16457
16351
|
Object.keys(tmpInstance).forEach((prop) => {
|
|
16458
16352
|
itemWrapper.instance[prop] = tmpInstance[prop];
|
|
16459
16353
|
});
|
|
@@ -18471,10 +18365,6 @@ const MonthCalendarMixin = (superClass) =>
|
|
|
18471
18365
|
value: () => false,
|
|
18472
18366
|
},
|
|
18473
18367
|
|
|
18474
|
-
enteredDate: {
|
|
18475
|
-
type: Date,
|
|
18476
|
-
},
|
|
18477
|
-
|
|
18478
18368
|
disabled: {
|
|
18479
18369
|
type: Boolean,
|
|
18480
18370
|
reflectToAttribute: true,
|
|
@@ -18494,11 +18384,6 @@ const MonthCalendarMixin = (superClass) =>
|
|
|
18494
18384
|
_notTapping: {
|
|
18495
18385
|
type: Boolean,
|
|
18496
18386
|
},
|
|
18497
|
-
|
|
18498
|
-
/** @private */
|
|
18499
|
-
__hasFocus: {
|
|
18500
|
-
type: Boolean,
|
|
18501
|
-
},
|
|
18502
18387
|
};
|
|
18503
18388
|
}
|
|
18504
18389
|
|
|
@@ -18518,12 +18403,6 @@ const MonthCalendarMixin = (superClass) =>
|
|
|
18518
18403
|
addListener(this.$.monthGrid, 'tap', this._handleTap.bind(this));
|
|
18519
18404
|
}
|
|
18520
18405
|
|
|
18521
|
-
/** @override */
|
|
18522
|
-
_setFocused(focused) {
|
|
18523
|
-
super._setFocused(focused);
|
|
18524
|
-
this.__hasFocus = focused;
|
|
18525
|
-
}
|
|
18526
|
-
|
|
18527
18406
|
/**
|
|
18528
18407
|
* Returns true if all the dates in the month are out of the allowed range
|
|
18529
18408
|
* @protected
|
|
@@ -18819,7 +18698,7 @@ class MonthCalendar extends MonthCalendarMixin(ThemableMixin(PolymerElement)) {
|
|
|
18819
18698
|
<template is="dom-repeat" items="[[week]]">
|
|
18820
18699
|
<td
|
|
18821
18700
|
role="gridcell"
|
|
18822
|
-
part$="[[__getDatePart(item, focusedDate, selectedDate, minDate, maxDate, isDateDisabled
|
|
18701
|
+
part$="[[__getDatePart(item, focusedDate, selectedDate, minDate, maxDate, isDateDisabled)]]"
|
|
18823
18702
|
date="[[item]]"
|
|
18824
18703
|
tabindex$="[[__getDayTabindex(item, focusedDate)]]"
|
|
18825
18704
|
disabled$="[[__isDayDisabled(item, minDate, maxDate, isDateDisabled)]]"
|
|
@@ -18877,7 +18756,7 @@ class MonthCalendar extends MonthCalendarMixin(ThemableMixin(PolymerElement)) {
|
|
|
18877
18756
|
|
|
18878
18757
|
/** @private */
|
|
18879
18758
|
// eslint-disable-next-line @typescript-eslint/max-params
|
|
18880
|
-
__getDatePart(date, focusedDate, selectedDate, minDate, maxDate, isDateDisabled
|
|
18759
|
+
__getDatePart(date, focusedDate, selectedDate, minDate, maxDate, isDateDisabled) {
|
|
18881
18760
|
const result = ['date'];
|
|
18882
18761
|
const greaterThanToday = date > normalizeDate(new Date());
|
|
18883
18762
|
const lessThanToday = date < normalizeDate(new Date());
|
|
@@ -18886,7 +18765,7 @@ class MonthCalendar extends MonthCalendarMixin(ThemableMixin(PolymerElement)) {
|
|
|
18886
18765
|
result.push('disabled');
|
|
18887
18766
|
}
|
|
18888
18767
|
|
|
18889
|
-
if (
|
|
18768
|
+
if (this.__isDayFocused(date, focusedDate)) {
|
|
18890
18769
|
result.push('focused');
|
|
18891
18770
|
}
|
|
18892
18771
|
|
|
@@ -18909,6 +18788,11 @@ class MonthCalendar extends MonthCalendarMixin(ThemableMixin(PolymerElement)) {
|
|
|
18909
18788
|
return result.join(' ');
|
|
18910
18789
|
}
|
|
18911
18790
|
|
|
18791
|
+
/** @private */
|
|
18792
|
+
__isDayFocused(date, focusedDate) {
|
|
18793
|
+
return dateEquals(date, focusedDate);
|
|
18794
|
+
}
|
|
18795
|
+
|
|
18912
18796
|
/** @private */
|
|
18913
18797
|
__isDaySelected(date, selectedDate) {
|
|
18914
18798
|
return dateEquals(date, selectedDate);
|
|
@@ -18939,7 +18823,11 @@ class MonthCalendar extends MonthCalendarMixin(ThemableMixin(PolymerElement)) {
|
|
|
18939
18823
|
|
|
18940
18824
|
/** @private */
|
|
18941
18825
|
__getDayTabindex(date, focusedDate) {
|
|
18942
|
-
|
|
18826
|
+
if (this.__isDayFocused(date, focusedDate)) {
|
|
18827
|
+
return '0';
|
|
18828
|
+
}
|
|
18829
|
+
|
|
18830
|
+
return '-1';
|
|
18943
18831
|
}
|
|
18944
18832
|
}
|
|
18945
18833
|
|
|
@@ -19058,7 +18946,6 @@ const DatePickerOverlayContentMixin = (superClass) =>
|
|
|
19058
18946
|
initialPosition: {
|
|
19059
18947
|
type: Object,
|
|
19060
18948
|
observer: '_initialPositionChanged',
|
|
19061
|
-
sync: true,
|
|
19062
18949
|
},
|
|
19063
18950
|
|
|
19064
18951
|
_originDate: {
|
|
@@ -19126,11 +19013,6 @@ const DatePickerOverlayContentMixin = (superClass) =>
|
|
|
19126
19013
|
type: Function,
|
|
19127
19014
|
},
|
|
19128
19015
|
|
|
19129
|
-
enteredDate: {
|
|
19130
|
-
type: Date,
|
|
19131
|
-
sync: true,
|
|
19132
|
-
},
|
|
19133
|
-
|
|
19134
19016
|
/**
|
|
19135
19017
|
* Input label
|
|
19136
19018
|
*/
|
|
@@ -19158,7 +19040,7 @@ const DatePickerOverlayContentMixin = (superClass) =>
|
|
|
19158
19040
|
|
|
19159
19041
|
static get observers() {
|
|
19160
19042
|
return [
|
|
19161
|
-
'__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled
|
|
19043
|
+
'__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)',
|
|
19162
19044
|
'__updateCancelButton(_cancelButton, i18n)',
|
|
19163
19045
|
'__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)',
|
|
19164
19046
|
'__updateYears(years, selectedDate, _theme)',
|
|
@@ -19346,7 +19228,6 @@ const DatePickerOverlayContentMixin = (superClass) =>
|
|
|
19346
19228
|
ignoreTaps,
|
|
19347
19229
|
theme,
|
|
19348
19230
|
isDateDisabled,
|
|
19349
|
-
enteredDate,
|
|
19350
19231
|
) {
|
|
19351
19232
|
if (calendars && calendars.length) {
|
|
19352
19233
|
calendars.forEach((calendar) => {
|
|
@@ -19358,7 +19239,6 @@ const DatePickerOverlayContentMixin = (superClass) =>
|
|
|
19358
19239
|
calendar.selectedDate = selectedDate;
|
|
19359
19240
|
calendar.showWeekNumbers = showWeekNumbers;
|
|
19360
19241
|
calendar.ignoreTaps = ignoreTaps;
|
|
19361
|
-
calendar.enteredDate = enteredDate;
|
|
19362
19242
|
|
|
19363
19243
|
if (theme) {
|
|
19364
19244
|
calendar.setAttribute('theme', theme);
|
|
@@ -20616,8 +20496,6 @@ const InputMixin = dedupingMixin(
|
|
|
20616
20496
|
if (this.inputElement) {
|
|
20617
20497
|
this.inputElement[this._inputElementValueProperty] = value;
|
|
20618
20498
|
}
|
|
20619
|
-
|
|
20620
|
-
this._hasInputValue = value && value.length > 0;
|
|
20621
20499
|
}
|
|
20622
20500
|
|
|
20623
20501
|
/**
|
|
@@ -21821,22 +21699,6 @@ const ValidateMixin = dedupingMixin(
|
|
|
21821
21699
|
value: false,
|
|
21822
21700
|
},
|
|
21823
21701
|
|
|
21824
|
-
/**
|
|
21825
|
-
* Set to true to enable manual validation mode. This mode disables automatic
|
|
21826
|
-
* constraint validation, allowing you to control the validation process yourself.
|
|
21827
|
-
* You can still trigger constraint validation manually with the `validate()` method
|
|
21828
|
-
* or use `checkValidity()` to assess the component's validity without affecting
|
|
21829
|
-
* the invalid state. In manual validation mode, you can also manipulate
|
|
21830
|
-
* the `invalid` property directly through your application logic without conflicts
|
|
21831
|
-
* with the component's internal validation.
|
|
21832
|
-
*
|
|
21833
|
-
* @attr {boolean} manual-validation
|
|
21834
|
-
*/
|
|
21835
|
-
manualValidation: {
|
|
21836
|
-
type: Boolean,
|
|
21837
|
-
value: false,
|
|
21838
|
-
},
|
|
21839
|
-
|
|
21840
21702
|
/**
|
|
21841
21703
|
* Specifies that the user must fill in a value.
|
|
21842
21704
|
*/
|
|
@@ -21891,14 +21753,6 @@ const ValidateMixin = dedupingMixin(
|
|
|
21891
21753
|
return true;
|
|
21892
21754
|
}
|
|
21893
21755
|
|
|
21894
|
-
/** @protected */
|
|
21895
|
-
_requestValidation() {
|
|
21896
|
-
if (!this.manualValidation) {
|
|
21897
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
21898
|
-
this.validate();
|
|
21899
|
-
}
|
|
21900
|
-
}
|
|
21901
|
-
|
|
21902
21756
|
/**
|
|
21903
21757
|
* Fired whenever the field is validated.
|
|
21904
21758
|
*
|
|
@@ -22328,8 +22182,8 @@ const InputConstraintsMixin = dedupingMixin(
|
|
|
22328
22182
|
const isLastConstraintRemoved = this.__previousHasConstraints && !hasConstraints;
|
|
22329
22183
|
|
|
22330
22184
|
if ((this._hasValue || this.invalid) && hasConstraints) {
|
|
22331
|
-
this.
|
|
22332
|
-
} else if (isLastConstraintRemoved
|
|
22185
|
+
this.validate();
|
|
22186
|
+
} else if (isLastConstraintRemoved) {
|
|
22333
22187
|
this._setInvalid(false);
|
|
22334
22188
|
}
|
|
22335
22189
|
|
|
@@ -22347,7 +22201,7 @@ const InputConstraintsMixin = dedupingMixin(
|
|
|
22347
22201
|
_onChange(event) {
|
|
22348
22202
|
event.stopPropagation();
|
|
22349
22203
|
|
|
22350
|
-
this.
|
|
22204
|
+
this.validate();
|
|
22351
22205
|
|
|
22352
22206
|
this.dispatchEvent(
|
|
22353
22207
|
new CustomEvent('change', {
|
|
@@ -22490,6 +22344,30 @@ const InputControlMixin = (superclass) =>
|
|
|
22490
22344
|
}
|
|
22491
22345
|
}
|
|
22492
22346
|
|
|
22347
|
+
/**
|
|
22348
|
+
* Override an event listener inherited from `InputMixin`
|
|
22349
|
+
* to capture native `change` event and make sure that
|
|
22350
|
+
* a new one is dispatched after validation runs.
|
|
22351
|
+
* @param {Event} event
|
|
22352
|
+
* @protected
|
|
22353
|
+
* @override
|
|
22354
|
+
*/
|
|
22355
|
+
_onChange(event) {
|
|
22356
|
+
event.stopPropagation();
|
|
22357
|
+
|
|
22358
|
+
this.validate();
|
|
22359
|
+
|
|
22360
|
+
this.dispatchEvent(
|
|
22361
|
+
new CustomEvent('change', {
|
|
22362
|
+
detail: {
|
|
22363
|
+
sourceEvent: event,
|
|
22364
|
+
},
|
|
22365
|
+
bubbles: event.bubbles,
|
|
22366
|
+
cancelable: event.cancelable,
|
|
22367
|
+
}),
|
|
22368
|
+
);
|
|
22369
|
+
}
|
|
22370
|
+
|
|
22493
22371
|
/**
|
|
22494
22372
|
* Override a method from `InputMixin`.
|
|
22495
22373
|
* @param {!HTMLElement} input
|
|
@@ -22913,62 +22791,6 @@ class VirtualKeyboardController {
|
|
|
22913
22791
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
22914
22792
|
*/
|
|
22915
22793
|
|
|
22916
|
-
const datePickerI18nDefaults = Object.freeze({
|
|
22917
|
-
monthNames: [
|
|
22918
|
-
'January',
|
|
22919
|
-
'February',
|
|
22920
|
-
'March',
|
|
22921
|
-
'April',
|
|
22922
|
-
'May',
|
|
22923
|
-
'June',
|
|
22924
|
-
'July',
|
|
22925
|
-
'August',
|
|
22926
|
-
'September',
|
|
22927
|
-
'October',
|
|
22928
|
-
'November',
|
|
22929
|
-
'December',
|
|
22930
|
-
],
|
|
22931
|
-
weekdays: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
|
22932
|
-
weekdaysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
|
22933
|
-
firstDayOfWeek: 0,
|
|
22934
|
-
today: 'Today',
|
|
22935
|
-
cancel: 'Cancel',
|
|
22936
|
-
referenceDate: '',
|
|
22937
|
-
formatDate(d) {
|
|
22938
|
-
const yearStr = String(d.year).replace(/\d+/u, (y) => '0000'.substr(y.length) + y);
|
|
22939
|
-
return [d.month + 1, d.day, yearStr].join('/');
|
|
22940
|
-
},
|
|
22941
|
-
parseDate(text) {
|
|
22942
|
-
const parts = text.split('/');
|
|
22943
|
-
const today = new Date();
|
|
22944
|
-
let date,
|
|
22945
|
-
month = today.getMonth(),
|
|
22946
|
-
year = today.getFullYear();
|
|
22947
|
-
|
|
22948
|
-
if (parts.length === 3) {
|
|
22949
|
-
month = parseInt(parts[0]) - 1;
|
|
22950
|
-
date = parseInt(parts[1]);
|
|
22951
|
-
year = parseInt(parts[2]);
|
|
22952
|
-
if (parts[2].length < 3 && year >= 0) {
|
|
22953
|
-
const usedReferenceDate = this.referenceDate ? parseDate(this.referenceDate) : new Date();
|
|
22954
|
-
year = getAdjustedYear(usedReferenceDate, year, month, date);
|
|
22955
|
-
}
|
|
22956
|
-
} else if (parts.length === 2) {
|
|
22957
|
-
month = parseInt(parts[0]) - 1;
|
|
22958
|
-
date = parseInt(parts[1]);
|
|
22959
|
-
} else if (parts.length === 1) {
|
|
22960
|
-
date = parseInt(parts[0]);
|
|
22961
|
-
}
|
|
22962
|
-
|
|
22963
|
-
if (date !== undefined) {
|
|
22964
|
-
return { day: date, month, year };
|
|
22965
|
-
}
|
|
22966
|
-
},
|
|
22967
|
-
formatTitle: (monthName, fullYear) => {
|
|
22968
|
-
return `${monthName} ${fullYear}`;
|
|
22969
|
-
},
|
|
22970
|
-
});
|
|
22971
|
-
|
|
22972
22794
|
/**
|
|
22973
22795
|
* @polymerMixin
|
|
22974
22796
|
* @mixes ControllerMixin
|
|
@@ -23042,10 +22864,7 @@ const DatePickerMixin = (subclass) =>
|
|
|
23042
22864
|
* Set true to prevent the overlay from opening automatically.
|
|
23043
22865
|
* @attr {boolean} auto-open-disabled
|
|
23044
22866
|
*/
|
|
23045
|
-
autoOpenDisabled:
|
|
23046
|
-
type: Boolean,
|
|
23047
|
-
sync: true,
|
|
23048
|
-
},
|
|
22867
|
+
autoOpenDisabled: Boolean,
|
|
23049
22868
|
|
|
23050
22869
|
/**
|
|
23051
22870
|
* Set true to display ISO-8601 week numbers in the calendar. Notice that
|
|
@@ -23166,7 +22985,63 @@ const DatePickerMixin = (subclass) =>
|
|
|
23166
22985
|
i18n: {
|
|
23167
22986
|
type: Object,
|
|
23168
22987
|
sync: true,
|
|
23169
|
-
value: () =>
|
|
22988
|
+
value: () => {
|
|
22989
|
+
return {
|
|
22990
|
+
monthNames: [
|
|
22991
|
+
'January',
|
|
22992
|
+
'February',
|
|
22993
|
+
'March',
|
|
22994
|
+
'April',
|
|
22995
|
+
'May',
|
|
22996
|
+
'June',
|
|
22997
|
+
'July',
|
|
22998
|
+
'August',
|
|
22999
|
+
'September',
|
|
23000
|
+
'October',
|
|
23001
|
+
'November',
|
|
23002
|
+
'December',
|
|
23003
|
+
],
|
|
23004
|
+
weekdays: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
|
23005
|
+
weekdaysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
|
23006
|
+
firstDayOfWeek: 0,
|
|
23007
|
+
today: 'Today',
|
|
23008
|
+
cancel: 'Cancel',
|
|
23009
|
+
referenceDate: '',
|
|
23010
|
+
formatDate(d) {
|
|
23011
|
+
const yearStr = String(d.year).replace(/\d+/u, (y) => '0000'.substr(y.length) + y);
|
|
23012
|
+
return [d.month + 1, d.day, yearStr].join('/');
|
|
23013
|
+
},
|
|
23014
|
+
parseDate(text) {
|
|
23015
|
+
const parts = text.split('/');
|
|
23016
|
+
const today = new Date();
|
|
23017
|
+
let date,
|
|
23018
|
+
month = today.getMonth(),
|
|
23019
|
+
year = today.getFullYear();
|
|
23020
|
+
|
|
23021
|
+
if (parts.length === 3) {
|
|
23022
|
+
month = parseInt(parts[0]) - 1;
|
|
23023
|
+
date = parseInt(parts[1]);
|
|
23024
|
+
year = parseInt(parts[2]);
|
|
23025
|
+
if (parts[2].length < 3 && year >= 0) {
|
|
23026
|
+
const usedReferenceDate = this.referenceDate ? parseDate(this.referenceDate) : new Date();
|
|
23027
|
+
year = getAdjustedYear(usedReferenceDate, year, month, date);
|
|
23028
|
+
}
|
|
23029
|
+
} else if (parts.length === 2) {
|
|
23030
|
+
month = parseInt(parts[0]) - 1;
|
|
23031
|
+
date = parseInt(parts[1]);
|
|
23032
|
+
} else if (parts.length === 1) {
|
|
23033
|
+
date = parseInt(parts[0]);
|
|
23034
|
+
}
|
|
23035
|
+
|
|
23036
|
+
if (date !== undefined) {
|
|
23037
|
+
return { day: date, month, year };
|
|
23038
|
+
}
|
|
23039
|
+
},
|
|
23040
|
+
formatTitle: (monthName, fullYear) => {
|
|
23041
|
+
return `${monthName} ${fullYear}`;
|
|
23042
|
+
},
|
|
23043
|
+
};
|
|
23044
|
+
},
|
|
23170
23045
|
},
|
|
23171
23046
|
|
|
23172
23047
|
/**
|
|
@@ -23251,10 +23126,18 @@ const DatePickerMixin = (subclass) =>
|
|
|
23251
23126
|
sync: true,
|
|
23252
23127
|
},
|
|
23253
23128
|
|
|
23254
|
-
/**
|
|
23255
|
-
|
|
23256
|
-
|
|
23257
|
-
|
|
23129
|
+
/**
|
|
23130
|
+
* In date-picker, unlike other components extending `InputMixin`,
|
|
23131
|
+
* the property indicates true only if the input has been entered by the user.
|
|
23132
|
+
* In the case of programmatic changes, the property is reset to false.
|
|
23133
|
+
* Read more about why this workaround is needed:
|
|
23134
|
+
* https://github.com/vaadin/web-components/issues/5639
|
|
23135
|
+
*
|
|
23136
|
+
* @protected
|
|
23137
|
+
* @override
|
|
23138
|
+
*/
|
|
23139
|
+
_hasInputValue: {
|
|
23140
|
+
type: Boolean,
|
|
23258
23141
|
},
|
|
23259
23142
|
};
|
|
23260
23143
|
}
|
|
@@ -23263,7 +23146,7 @@ const DatePickerMixin = (subclass) =>
|
|
|
23263
23146
|
return [
|
|
23264
23147
|
'_selectedDateChanged(_selectedDate, i18n)',
|
|
23265
23148
|
'_focusedDateChanged(_focusedDate, i18n)',
|
|
23266
|
-
'__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled
|
|
23149
|
+
'__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)',
|
|
23267
23150
|
'__updateOverlayContentTheme(_overlayContent, _theme)',
|
|
23268
23151
|
'__updateOverlayContentFullScreen(_overlayContent, _fullscreen)',
|
|
23269
23152
|
];
|
|
@@ -23281,17 +23164,28 @@ const DatePickerMixin = (subclass) =>
|
|
|
23281
23164
|
this._boundOverlayRenderer = this._overlayRenderer.bind(this);
|
|
23282
23165
|
}
|
|
23283
23166
|
|
|
23284
|
-
/**
|
|
23167
|
+
/**
|
|
23168
|
+
* @override
|
|
23169
|
+
* @protected
|
|
23170
|
+
*/
|
|
23285
23171
|
get _inputElementValue() {
|
|
23286
23172
|
return super._inputElementValue;
|
|
23287
23173
|
}
|
|
23288
23174
|
|
|
23289
|
-
/**
|
|
23175
|
+
/**
|
|
23176
|
+
* The setter is overridden to reset the `_hasInputValue` property
|
|
23177
|
+
* to false when the input element's value is updated programmatically.
|
|
23178
|
+
* In date-picker, `_hasInputValue` is supposed to indicate true only
|
|
23179
|
+
* if the input has been entered by the user.
|
|
23180
|
+
* Read more about why this workaround is needed:
|
|
23181
|
+
* https://github.com/vaadin/web-components/issues/5639
|
|
23182
|
+
*
|
|
23183
|
+
* @override
|
|
23184
|
+
* @protected
|
|
23185
|
+
*/
|
|
23290
23186
|
set _inputElementValue(value) {
|
|
23291
23187
|
super._inputElementValue = value;
|
|
23292
|
-
|
|
23293
|
-
const parsedDate = this.__parseDate(value);
|
|
23294
|
-
this.__setEnteredDate(parsedDate);
|
|
23188
|
+
this._hasInputValue = false;
|
|
23295
23189
|
}
|
|
23296
23190
|
|
|
23297
23191
|
/**
|
|
@@ -23353,7 +23247,7 @@ const DatePickerMixin = (subclass) =>
|
|
|
23353
23247
|
// Do not validate when focusout is caused by document
|
|
23354
23248
|
// losing focus, which happens on browser tab switch.
|
|
23355
23249
|
if (document.hasFocus()) {
|
|
23356
|
-
this.
|
|
23250
|
+
this.validate();
|
|
23357
23251
|
}
|
|
23358
23252
|
}
|
|
23359
23253
|
}
|
|
@@ -23498,8 +23392,13 @@ const DatePickerMixin = (subclass) =>
|
|
|
23498
23392
|
!this._selectedDate || dateAllowed(this._selectedDate, this._minDate, this._maxDate, this.isDateDisabled);
|
|
23499
23393
|
|
|
23500
23394
|
let inputValidity = true;
|
|
23501
|
-
if (this.inputElement
|
|
23502
|
-
|
|
23395
|
+
if (this.inputElement) {
|
|
23396
|
+
if (this.inputElement.checkValidity) {
|
|
23397
|
+
inputValidity = this.inputElement.checkValidity();
|
|
23398
|
+
} else if (this.inputElement.validate) {
|
|
23399
|
+
// Iron-form-elements have the validate API
|
|
23400
|
+
inputValidity = this.inputElement.validate();
|
|
23401
|
+
}
|
|
23503
23402
|
}
|
|
23504
23403
|
|
|
23505
23404
|
return inputValid && isDateValid && inputValidity;
|
|
@@ -23586,10 +23485,10 @@ const DatePickerMixin = (subclass) =>
|
|
|
23586
23485
|
const unparsableValue = this.__unparsableValue;
|
|
23587
23486
|
|
|
23588
23487
|
if (this.__committedValue !== this.value) {
|
|
23589
|
-
this.
|
|
23488
|
+
this.validate();
|
|
23590
23489
|
this.dispatchEvent(new CustomEvent('change', { bubbles: true }));
|
|
23591
23490
|
} else if (this.__committedUnparsableValue !== unparsableValue) {
|
|
23592
|
-
this.
|
|
23491
|
+
this.validate();
|
|
23593
23492
|
this.dispatchEvent(new CustomEvent('unparsable-change'));
|
|
23594
23493
|
}
|
|
23595
23494
|
|
|
@@ -23718,7 +23617,7 @@ const DatePickerMixin = (subclass) =>
|
|
|
23718
23617
|
|
|
23719
23618
|
if (oldValue !== undefined) {
|
|
23720
23619
|
// Validate only if `value` changes after initialization.
|
|
23721
|
-
this.
|
|
23620
|
+
this.validate();
|
|
23722
23621
|
}
|
|
23723
23622
|
}
|
|
23724
23623
|
} else {
|
|
@@ -23745,7 +23644,6 @@ const DatePickerMixin = (subclass) =>
|
|
|
23745
23644
|
selectedDate,
|
|
23746
23645
|
showWeekNumbers,
|
|
23747
23646
|
isDateDisabled,
|
|
23748
|
-
enteredDate,
|
|
23749
23647
|
) {
|
|
23750
23648
|
if (overlayContent) {
|
|
23751
23649
|
overlayContent.i18n = i18n;
|
|
@@ -23756,7 +23654,6 @@ const DatePickerMixin = (subclass) =>
|
|
|
23756
23654
|
overlayContent.selectedDate = selectedDate;
|
|
23757
23655
|
overlayContent.showWeekNumbers = showWeekNumbers;
|
|
23758
23656
|
overlayContent.isDateDisabled = isDateDisabled;
|
|
23759
|
-
overlayContent.enteredDate = enteredDate;
|
|
23760
23657
|
}
|
|
23761
23658
|
}
|
|
23762
23659
|
|
|
@@ -23886,7 +23783,7 @@ const DatePickerMixin = (subclass) =>
|
|
|
23886
23783
|
// Needed in case the value was not changed: open and close dropdown,
|
|
23887
23784
|
// especially on outside click. On Esc key press, do not validate.
|
|
23888
23785
|
if (!this.value && !this._keyboardActive) {
|
|
23889
|
-
this.
|
|
23786
|
+
this.validate();
|
|
23890
23787
|
}
|
|
23891
23788
|
}
|
|
23892
23789
|
|
|
@@ -24078,32 +23975,15 @@ const DatePickerMixin = (subclass) =>
|
|
|
24078
23975
|
this.open();
|
|
24079
23976
|
}
|
|
24080
23977
|
|
|
24081
|
-
|
|
24082
|
-
|
|
24083
|
-
|
|
24084
|
-
|
|
24085
|
-
this._focusedDate
|
|
24086
|
-
|
|
24087
|
-
|
|
24088
|
-
|
|
24089
|
-
|
|
24090
|
-
this.__setEnteredDate(parsedDate);
|
|
24091
|
-
}
|
|
24092
|
-
|
|
24093
|
-
/**
|
|
24094
|
-
* @param {Date} date
|
|
24095
|
-
* @private
|
|
24096
|
-
*/
|
|
24097
|
-
__setEnteredDate(date) {
|
|
24098
|
-
if (date) {
|
|
24099
|
-
if (!dateEquals(this.__enteredDate, date)) {
|
|
24100
|
-
this.__enteredDate = date;
|
|
23978
|
+
if (this._inputElementValue) {
|
|
23979
|
+
const parsedDate = this.__parseDate(this._inputElementValue);
|
|
23980
|
+
if (parsedDate) {
|
|
23981
|
+
this._ignoreFocusedDateChange = true;
|
|
23982
|
+
if (!dateEquals(parsedDate, this._focusedDate)) {
|
|
23983
|
+
this._focusedDate = parsedDate;
|
|
23984
|
+
}
|
|
23985
|
+
this._ignoreFocusedDateChange = false;
|
|
24101
23986
|
}
|
|
24102
|
-
} else if (this.__enteredDate != null) {
|
|
24103
|
-
// Do not override initial undefined value with null
|
|
24104
|
-
// to avoid triggering a Lit update that can cause
|
|
24105
|
-
// other scheduled properties to flush too early.
|
|
24106
|
-
this.__enteredDate = null;
|
|
24107
23987
|
}
|
|
24108
23988
|
}
|
|
24109
23989
|
|
|
@@ -24387,7 +24267,6 @@ class DatePicker extends DatePickerMixin(InputControlMixin(ThemableMixin(Element
|
|
|
24387
24267
|
|
|
24388
24268
|
/** @private */
|
|
24389
24269
|
_onVaadinOverlayClose(e) {
|
|
24390
|
-
// Prevent closing the overlay on label element click
|
|
24391
24270
|
if (e.detail.sourceEvent && e.detail.sourceEvent.composedPath().includes(this)) {
|
|
24392
24271
|
e.preventDefault();
|
|
24393
24272
|
}
|
|
@@ -24424,51 +24303,6 @@ const HelperFilters = class {
|
|
|
24424
24303
|
this.filterDraw = index.createEvent(this, "filterDraw", 7);
|
|
24425
24304
|
this.filterSelection = index.createEvent(this, "filterSelection", 7);
|
|
24426
24305
|
this.filterSelectionReset = index.createEvent(this, "filterSelectionReset", 7);
|
|
24427
|
-
/**
|
|
24428
|
-
* Check if show the filter option by id
|
|
24429
|
-
*/
|
|
24430
|
-
this.showFilterId = true;
|
|
24431
|
-
/**
|
|
24432
|
-
* Choose if filter by draw ID or ticket ID. By default is draw ID.
|
|
24433
|
-
*/
|
|
24434
|
-
this.activateTicketSearch = false;
|
|
24435
|
-
/**
|
|
24436
|
-
* Game ID
|
|
24437
|
-
*/
|
|
24438
|
-
this.gameId = '';
|
|
24439
|
-
/**
|
|
24440
|
-
* Player ID
|
|
24441
|
-
*/
|
|
24442
|
-
this.playerId = '';
|
|
24443
|
-
/**
|
|
24444
|
-
* Session ID
|
|
24445
|
-
*/
|
|
24446
|
-
this.session = '';
|
|
24447
|
-
/**
|
|
24448
|
-
* Instead of customEvents the widget triggers postMessages
|
|
24449
|
-
*/
|
|
24450
|
-
this.postMessage = false;
|
|
24451
|
-
/**
|
|
24452
|
-
* Language
|
|
24453
|
-
*/
|
|
24454
|
-
this.language = 'en';
|
|
24455
|
-
/**
|
|
24456
|
-
* Notifies if the quick filters from tickets are active
|
|
24457
|
-
*/
|
|
24458
|
-
this.quickFiltersActive = false;
|
|
24459
|
-
/**
|
|
24460
|
-
* Client custom styling via string
|
|
24461
|
-
*/
|
|
24462
|
-
this.clientStyling = '';
|
|
24463
|
-
/**
|
|
24464
|
-
* Client custom styling via url content
|
|
24465
|
-
*/
|
|
24466
|
-
this.clientStylingUrlContent = '';
|
|
24467
|
-
this.showFilterModal = false;
|
|
24468
|
-
this.showClearButton = false;
|
|
24469
|
-
this.filterData = {};
|
|
24470
|
-
this.filterDataReset = { ticketDrawId: '', filterFromCalendar: '', filterToCalendar: '' };
|
|
24471
|
-
this.limitStylingAppends = false;
|
|
24472
24306
|
this.handleTicketDrawId = (event) => {
|
|
24473
24307
|
const inputElement = event.target;
|
|
24474
24308
|
this.filterData.ticketDrawId = inputElement.value;
|
|
@@ -24495,6 +24329,22 @@ const HelperFilters = class {
|
|
|
24495
24329
|
this.stylingContainer.prepend(cssFile);
|
|
24496
24330
|
}, 1);
|
|
24497
24331
|
};
|
|
24332
|
+
this.showFilterId = true;
|
|
24333
|
+
this.activateTicketSearch = false;
|
|
24334
|
+
this.gameId = '';
|
|
24335
|
+
this.playerId = '';
|
|
24336
|
+
this.session = '';
|
|
24337
|
+
this.postMessage = false;
|
|
24338
|
+
this.language = 'en';
|
|
24339
|
+
this.quickFiltersActive = false;
|
|
24340
|
+
this.clientStyling = '';
|
|
24341
|
+
this.clientStylingUrlContent = '';
|
|
24342
|
+
this.translationUrl = undefined;
|
|
24343
|
+
this.showFilterModal = false;
|
|
24344
|
+
this.showClearButton = false;
|
|
24345
|
+
this.filterData = {};
|
|
24346
|
+
this.filterDataReset = { ticketDrawId: '', filterFromCalendar: '', filterToCalendar: '' };
|
|
24347
|
+
this.limitStylingAppends = false;
|
|
24498
24348
|
}
|
|
24499
24349
|
componentWillLoad() {
|
|
24500
24350
|
if (this.translationUrl) {
|
|
@@ -24574,19 +24424,6 @@ const HelperModal = class {
|
|
|
24574
24424
|
constructor(hostRef) {
|
|
24575
24425
|
index.registerInstance(this, hostRef);
|
|
24576
24426
|
this.cancel = index.createEvent(this, "modalCloseEvent", 7);
|
|
24577
|
-
/**
|
|
24578
|
-
* Toggles if the helper is visible or not
|
|
24579
|
-
*/
|
|
24580
|
-
this.visible = true;
|
|
24581
|
-
/**
|
|
24582
|
-
* Client custom styling via string
|
|
24583
|
-
*/
|
|
24584
|
-
this.clientStyling = '';
|
|
24585
|
-
/**
|
|
24586
|
-
* Client custom styling via url content
|
|
24587
|
-
*/
|
|
24588
|
-
this.clientStylingUrlContent = '';
|
|
24589
|
-
this.limitStylingAppends = false;
|
|
24590
24427
|
this.userAgent = window.navigator.userAgent;
|
|
24591
24428
|
this.setClientStyling = () => {
|
|
24592
24429
|
let sheet = document.createElement('style');
|
|
@@ -24600,8 +24437,13 @@ const HelperModal = class {
|
|
|
24600
24437
|
this.stylingContainer.prepend(cssFile);
|
|
24601
24438
|
}, 1);
|
|
24602
24439
|
};
|
|
24603
|
-
|
|
24604
|
-
|
|
24440
|
+
this.titleModal = undefined;
|
|
24441
|
+
this.visible = true;
|
|
24442
|
+
this.clientStyling = '';
|
|
24443
|
+
this.clientStylingUrlContent = '';
|
|
24444
|
+
this.limitStylingAppends = false;
|
|
24445
|
+
}
|
|
24446
|
+
handleHelperModalClose() {
|
|
24605
24447
|
this.visible = false;
|
|
24606
24448
|
this.cancel.emit();
|
|
24607
24449
|
}
|
|
@@ -24759,22 +24601,17 @@ const HelperTabStyle0 = helperTabCss;
|
|
|
24759
24601
|
const HelperTab = class {
|
|
24760
24602
|
constructor(hostRef) {
|
|
24761
24603
|
index.registerInstance(this, hostRef);
|
|
24762
|
-
/**
|
|
24763
|
-
* Selected index
|
|
24764
|
-
*/
|
|
24765
24604
|
this.selectedIndex = 0;
|
|
24766
|
-
|
|
24767
|
-
|
|
24768
|
-
*/
|
|
24605
|
+
this.cmsEndpoint = undefined;
|
|
24606
|
+
this.mbSource = undefined;
|
|
24769
24607
|
this.clientStyling = '';
|
|
24770
|
-
/**
|
|
24771
|
-
* Client custom styling via url content
|
|
24772
|
-
*/
|
|
24773
24608
|
this.clientStylingUrl = '';
|
|
24774
|
-
|
|
24775
|
-
|
|
24776
|
-
|
|
24609
|
+
this.lowNumber = undefined;
|
|
24610
|
+
this.highNumber = undefined;
|
|
24611
|
+
this.minimumAllowed = undefined;
|
|
24612
|
+
this.maxinumAllowed = undefined;
|
|
24777
24613
|
this.language = 'en';
|
|
24614
|
+
this.translationUrl = undefined;
|
|
24778
24615
|
this.tabContent = '';
|
|
24779
24616
|
}
|
|
24780
24617
|
handleClientStylingChange(newValue, oldValue) {
|
|
@@ -24844,38 +24681,22 @@ const HelperTabsStyle0 = helperTabsCss;
|
|
|
24844
24681
|
const HelperTabs = class {
|
|
24845
24682
|
constructor(hostRef) {
|
|
24846
24683
|
index.registerInstance(this, hostRef);
|
|
24847
|
-
/**
|
|
24848
|
-
* Tell me if it is disabled
|
|
24849
|
-
*/
|
|
24850
24684
|
this.disabled = false;
|
|
24851
|
-
|
|
24852
|
-
* Tell me what tab is selected
|
|
24853
|
-
*/
|
|
24685
|
+
this.label = undefined;
|
|
24854
24686
|
this.selected = false;
|
|
24855
|
-
|
|
24856
|
-
* Default selected index
|
|
24857
|
-
*/
|
|
24687
|
+
this.cmsEndpoint = undefined;
|
|
24858
24688
|
this.selectedIndex = 0;
|
|
24859
|
-
/**
|
|
24860
|
-
* Tabs details
|
|
24861
|
-
*/
|
|
24862
24689
|
this.tabs = [{ label: 'How to Play' }, { label: 'About' }, { label: 'FAQs' }];
|
|
24863
|
-
/**
|
|
24864
|
-
* Client custom styling via string
|
|
24865
|
-
*/
|
|
24866
24690
|
this.clientStyling = '';
|
|
24867
|
-
|
|
24868
|
-
* Client custom styling via url
|
|
24869
|
-
*/
|
|
24691
|
+
this.mbSource = undefined;
|
|
24870
24692
|
this.clientStylingurl = '';
|
|
24871
|
-
/**
|
|
24872
|
-
* Client custom styling via url content
|
|
24873
|
-
*/
|
|
24874
24693
|
this.clientStylingUrl = '';
|
|
24875
|
-
|
|
24876
|
-
|
|
24877
|
-
|
|
24694
|
+
this.lowNumber = undefined;
|
|
24695
|
+
this.highNumber = undefined;
|
|
24696
|
+
this.minimumAllowed = undefined;
|
|
24697
|
+
this.maxinumAllowed = undefined;
|
|
24878
24698
|
this.language = 'en';
|
|
24699
|
+
this.translationUrl = undefined;
|
|
24879
24700
|
}
|
|
24880
24701
|
connectedCallback() {
|
|
24881
24702
|
}
|
|
@@ -24924,31 +24745,6 @@ const LotteryBullet = class {
|
|
|
24924
24745
|
constructor(hostRef) {
|
|
24925
24746
|
index.registerInstance(this, hostRef);
|
|
24926
24747
|
this.bulletEvent = index.createEvent(this, "lotteryBulletSelection", 7);
|
|
24927
|
-
/**
|
|
24928
|
-
* Value of the bullet
|
|
24929
|
-
*/
|
|
24930
|
-
this.value = '0';
|
|
24931
|
-
/**
|
|
24932
|
-
* Marks if the bullet should be selectable
|
|
24933
|
-
*/
|
|
24934
|
-
this.selectable = true;
|
|
24935
|
-
/**
|
|
24936
|
-
* Marks if the bullet should be selected
|
|
24937
|
-
*/
|
|
24938
|
-
this.isSelected = false;
|
|
24939
|
-
/**
|
|
24940
|
-
* Marks if the number is bonus number.
|
|
24941
|
-
*/
|
|
24942
|
-
this.isBonus = false;
|
|
24943
|
-
/**
|
|
24944
|
-
* Client custom styling via string
|
|
24945
|
-
*/
|
|
24946
|
-
this.clientStyling = '';
|
|
24947
|
-
/**
|
|
24948
|
-
* Client custom styling via url content
|
|
24949
|
-
*/
|
|
24950
|
-
this.clientStylingUrlContent = '';
|
|
24951
|
-
this.limitStylingAppends = false;
|
|
24952
24748
|
this.select = () => {
|
|
24953
24749
|
if (this.selectable) {
|
|
24954
24750
|
this.isSelected = !this.isSelected;
|
|
@@ -24970,6 +24766,13 @@ const LotteryBullet = class {
|
|
|
24970
24766
|
this.stylingContainer.prepend(cssFile);
|
|
24971
24767
|
}, 1);
|
|
24972
24768
|
};
|
|
24769
|
+
this.value = '0';
|
|
24770
|
+
this.selectable = true;
|
|
24771
|
+
this.isSelected = false;
|
|
24772
|
+
this.isBonus = false;
|
|
24773
|
+
this.clientStyling = '';
|
|
24774
|
+
this.clientStylingUrlContent = '';
|
|
24775
|
+
this.limitStylingAppends = false;
|
|
24973
24776
|
}
|
|
24974
24777
|
componentDidRender() {
|
|
24975
24778
|
// start custom styling area
|
|
@@ -25075,74 +24878,42 @@ const LotteryDrawResultsStyle0 = lotteryDrawResultsCss;
|
|
|
25075
24878
|
const LotteryDrawResults = class {
|
|
25076
24879
|
constructor(hostRef) {
|
|
25077
24880
|
index.registerInstance(this, hostRef);
|
|
25078
|
-
|
|
25079
|
-
|
|
25080
|
-
|
|
24881
|
+
this.ticketDrawDetails = [];
|
|
24882
|
+
this.ticketDrawDetailsFlag = true;
|
|
24883
|
+
this.setClientStyling = () => {
|
|
24884
|
+
let sheet = document.createElement('style');
|
|
24885
|
+
sheet.innerHTML = this.clientStyling;
|
|
24886
|
+
this.stylingContainer.prepend(sheet);
|
|
24887
|
+
};
|
|
24888
|
+
this.setClientStylingURL = () => {
|
|
24889
|
+
let cssFile = document.createElement('style');
|
|
24890
|
+
setTimeout(() => {
|
|
24891
|
+
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
24892
|
+
this.stylingContainer.prepend(cssFile);
|
|
24893
|
+
}, 1);
|
|
24894
|
+
};
|
|
24895
|
+
this.endpoint = undefined;
|
|
24896
|
+
this.gameId = undefined;
|
|
25081
24897
|
this.language = 'en';
|
|
25082
|
-
|
|
25083
|
-
* Shows only the last draw
|
|
25084
|
-
*/
|
|
24898
|
+
this.playerId = undefined;
|
|
25085
24899
|
this.drawMode = false;
|
|
25086
|
-
/**
|
|
25087
|
-
* The drawID (option)
|
|
25088
|
-
*/
|
|
25089
24900
|
this.drawId = '';
|
|
25090
|
-
/**
|
|
25091
|
-
* The game name
|
|
25092
|
-
*/
|
|
25093
24901
|
this.gameName = '';
|
|
25094
|
-
/**
|
|
25095
|
-
* The ticket submission date
|
|
25096
|
-
*/
|
|
25097
24902
|
this.ticketDate = '';
|
|
25098
|
-
/**
|
|
25099
|
-
* The ticket status
|
|
25100
|
-
*/
|
|
25101
24903
|
this.ticketStatus = '';
|
|
25102
|
-
/**
|
|
25103
|
-
* The ticket id
|
|
25104
|
-
*/
|
|
25105
24904
|
this.ticketId = '';
|
|
25106
|
-
/**
|
|
25107
|
-
* The ticket amount
|
|
25108
|
-
*/
|
|
25109
24905
|
this.ticketAmount = '';
|
|
25110
|
-
/**
|
|
25111
|
-
* The ticket currency
|
|
25112
|
-
*/
|
|
25113
24906
|
this.ticketCurrency = '';
|
|
25114
|
-
/**
|
|
25115
|
-
* The ticket is multiplier or not
|
|
25116
|
-
*/
|
|
25117
24907
|
this.ticketMultiplier = false;
|
|
25118
|
-
|
|
25119
|
-
* The ticket draw count
|
|
25120
|
-
*/
|
|
24908
|
+
this.ticketMultiplierNum = undefined;
|
|
25121
24909
|
this.ticketDrawCount = 0;
|
|
25122
|
-
/**
|
|
25123
|
-
* The ticket winning numbers
|
|
25124
|
-
*/
|
|
25125
24910
|
this.ticketNumbers = '';
|
|
25126
|
-
/**
|
|
25127
|
-
* The session id
|
|
25128
|
-
*/
|
|
25129
24911
|
this.sessionId = '';
|
|
25130
|
-
/**
|
|
25131
|
-
* Client custom styling via string
|
|
25132
|
-
*/
|
|
25133
24912
|
this.clientStyling = '';
|
|
25134
|
-
/**
|
|
25135
|
-
* Client custom styling via url content
|
|
25136
|
-
*/
|
|
25137
24913
|
this.clientStylingUrlContent = '';
|
|
25138
|
-
/**
|
|
25139
|
-
* Data showing the ticket's draw results details
|
|
25140
|
-
*/
|
|
25141
24914
|
this.ticketDrawData = '';
|
|
25142
|
-
/**
|
|
25143
|
-
* the filter value
|
|
25144
|
-
*/
|
|
25145
24915
|
this.tabValue = '';
|
|
24916
|
+
this.translationUrl = undefined;
|
|
25146
24917
|
this.multiplier = 3;
|
|
25147
24918
|
this.isLoading = true;
|
|
25148
24919
|
this.hasErrors = false;
|
|
@@ -25152,20 +24923,7 @@ const LotteryDrawResults = class {
|
|
|
25152
24923
|
this.ticketDraws = [];
|
|
25153
24924
|
this.toggleDrawer = [false];
|
|
25154
24925
|
this.limitStylingAppends = false;
|
|
25155
|
-
this.
|
|
25156
|
-
this.ticketDrawDetailsFlag = true;
|
|
25157
|
-
this.setClientStyling = () => {
|
|
25158
|
-
let sheet = document.createElement('style');
|
|
25159
|
-
sheet.innerHTML = this.clientStyling;
|
|
25160
|
-
this.stylingContainer.prepend(sheet);
|
|
25161
|
-
};
|
|
25162
|
-
this.setClientStylingURL = () => {
|
|
25163
|
-
let cssFile = document.createElement('style');
|
|
25164
|
-
setTimeout(() => {
|
|
25165
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
25166
|
-
this.stylingContainer.prepend(cssFile);
|
|
25167
|
-
}, 1);
|
|
25168
|
-
};
|
|
24926
|
+
this.drawData = undefined;
|
|
25169
24927
|
}
|
|
25170
24928
|
componentWillLoad() {
|
|
25171
24929
|
if (this.translationUrl) {
|
|
@@ -25355,29 +25113,6 @@ const LotteryDrawResultsHistoryStyle0 = lotteryDrawResultsHistoryCss;
|
|
|
25355
25113
|
const LotteryDrawResultsHistory = class {
|
|
25356
25114
|
constructor(hostRef) {
|
|
25357
25115
|
index.registerInstance(this, hostRef);
|
|
25358
|
-
/**
|
|
25359
|
-
*Language
|
|
25360
|
-
*/
|
|
25361
|
-
this.language = 'en';
|
|
25362
|
-
/**
|
|
25363
|
-
* Client custom styling via string
|
|
25364
|
-
*/
|
|
25365
|
-
this.clientStyling = '';
|
|
25366
|
-
/**
|
|
25367
|
-
* Client custom styling via url content
|
|
25368
|
-
*/
|
|
25369
|
-
this.clientStylingUrlContent = '';
|
|
25370
|
-
this.drawData = [];
|
|
25371
|
-
this.winningDataSetsData = [''];
|
|
25372
|
-
this.dateFiltersFrom = '';
|
|
25373
|
-
this.dateFiltersTo = '';
|
|
25374
|
-
this.isLoading = false;
|
|
25375
|
-
this.noResults = false;
|
|
25376
|
-
this.limitStylingAppends = false;
|
|
25377
|
-
this.activeIndex = 0;
|
|
25378
|
-
this.totalResults = 0;
|
|
25379
|
-
this.limit = 5;
|
|
25380
|
-
this.offset = 0;
|
|
25381
25116
|
this.isReset = false;
|
|
25382
25117
|
this.getDrawsData = () => {
|
|
25383
25118
|
this.isLoading = true;
|
|
@@ -25447,6 +25182,23 @@ const LotteryDrawResultsHistory = class {
|
|
|
25447
25182
|
this.stylingContainer.prepend(cssFile);
|
|
25448
25183
|
}, 1);
|
|
25449
25184
|
};
|
|
25185
|
+
this.endpoint = undefined;
|
|
25186
|
+
this.gameId = undefined;
|
|
25187
|
+
this.language = 'en';
|
|
25188
|
+
this.clientStyling = '';
|
|
25189
|
+
this.clientStylingUrlContent = '';
|
|
25190
|
+
this.translationUrl = undefined;
|
|
25191
|
+
this.drawData = [];
|
|
25192
|
+
this.winningDataSetsData = [''];
|
|
25193
|
+
this.dateFiltersFrom = '';
|
|
25194
|
+
this.dateFiltersTo = '';
|
|
25195
|
+
this.isLoading = false;
|
|
25196
|
+
this.noResults = false;
|
|
25197
|
+
this.limitStylingAppends = false;
|
|
25198
|
+
this.activeIndex = 0;
|
|
25199
|
+
this.totalResults = 0;
|
|
25200
|
+
this.limit = 5;
|
|
25201
|
+
this.offset = 0;
|
|
25450
25202
|
}
|
|
25451
25203
|
filtersHandler(event) {
|
|
25452
25204
|
if (event.detail.ticketDrawId) {
|
|
@@ -25510,19 +25262,6 @@ const LotteryGameDetailsStyle0 = lotteryGameDetailsCss;
|
|
|
25510
25262
|
const LotteryGameDetails = class {
|
|
25511
25263
|
constructor(hostRef) {
|
|
25512
25264
|
index.registerInstance(this, hostRef);
|
|
25513
|
-
/**
|
|
25514
|
-
* Client custom styling via string
|
|
25515
|
-
*/
|
|
25516
|
-
this.clientStyling = '';
|
|
25517
|
-
/**
|
|
25518
|
-
* Client custom styling via url content
|
|
25519
|
-
*/
|
|
25520
|
-
this.clientStylingUrlContent = '';
|
|
25521
|
-
/**
|
|
25522
|
-
* Language
|
|
25523
|
-
*/
|
|
25524
|
-
this.language = 'en';
|
|
25525
|
-
this.limitStylingAppends = false;
|
|
25526
25265
|
this.setClientStyling = () => {
|
|
25527
25266
|
let sheet = document.createElement('style');
|
|
25528
25267
|
sheet.innerHTML = this.clientStyling;
|
|
@@ -25535,6 +25274,15 @@ const LotteryGameDetails = class {
|
|
|
25535
25274
|
this.stylingContainer.prepend(cssFile);
|
|
25536
25275
|
}, 1);
|
|
25537
25276
|
};
|
|
25277
|
+
this.clientStyling = '';
|
|
25278
|
+
this.clientStylingUrlContent = '';
|
|
25279
|
+
this.lowNumber = undefined;
|
|
25280
|
+
this.highNumber = undefined;
|
|
25281
|
+
this.minimumAllowed = undefined;
|
|
25282
|
+
this.maxinumAllowed = undefined;
|
|
25283
|
+
this.language = 'en';
|
|
25284
|
+
this.translationUrl = undefined;
|
|
25285
|
+
this.limitStylingAppends = false;
|
|
25538
25286
|
}
|
|
25539
25287
|
componentDidRender() {
|
|
25540
25288
|
// start custom styling area
|
|
@@ -25680,38 +25428,6 @@ const LotteryGamePage = class {
|
|
|
25680
25428
|
index.registerInstance(this, hostRef);
|
|
25681
25429
|
this.goBackEvent = index.createEvent(this, "goBackEvent", 7);
|
|
25682
25430
|
this.goToLobbyEvent = index.createEvent(this, "goToLobbyEvent", 7);
|
|
25683
|
-
/**
|
|
25684
|
-
* Language of the widget
|
|
25685
|
-
*/
|
|
25686
|
-
this.language = 'en';
|
|
25687
|
-
/**
|
|
25688
|
-
* Client custom styling via string
|
|
25689
|
-
*/
|
|
25690
|
-
this.clientStyling = '';
|
|
25691
|
-
/**
|
|
25692
|
-
* Client custom styling via url
|
|
25693
|
-
*/
|
|
25694
|
-
this.clientStylingurl = '';
|
|
25695
|
-
/**
|
|
25696
|
-
* Translation via url
|
|
25697
|
-
*/
|
|
25698
|
-
this.translationUrl = '';
|
|
25699
|
-
this.clientStylingUrlContent = '';
|
|
25700
|
-
this.tickets = [];
|
|
25701
|
-
this.mainTickets = [];
|
|
25702
|
-
this.secondaryTickets = [];
|
|
25703
|
-
this.tabIndex = 0;
|
|
25704
|
-
this.hasErrors = false;
|
|
25705
|
-
this.totalAmount = 0;
|
|
25706
|
-
this.successVisible = false;
|
|
25707
|
-
this.isLoggedIn = false;
|
|
25708
|
-
this.loginModalVisible = false;
|
|
25709
|
-
this.limitStylingAppends = false;
|
|
25710
|
-
this.isLoading = false;
|
|
25711
|
-
this.showSubmitError = false;
|
|
25712
|
-
this.submitError = '';
|
|
25713
|
-
this.showApiError = false;
|
|
25714
|
-
this.apiError = '';
|
|
25715
25431
|
// @TODO fix any type
|
|
25716
25432
|
this.userAgent = window.navigator.userAgent;
|
|
25717
25433
|
this.quickPick = false;
|
|
@@ -25737,6 +25453,38 @@ const LotteryGamePage = class {
|
|
|
25737
25453
|
console.log('error ', err);
|
|
25738
25454
|
});
|
|
25739
25455
|
};
|
|
25456
|
+
this.endpoint = undefined;
|
|
25457
|
+
this.endpointTicket = undefined;
|
|
25458
|
+
this.gameId = undefined;
|
|
25459
|
+
this.playerId = undefined;
|
|
25460
|
+
this.sessionId = undefined;
|
|
25461
|
+
this.language = 'en';
|
|
25462
|
+
this.backgroundUrl = undefined;
|
|
25463
|
+
this.clientStyling = '';
|
|
25464
|
+
this.clientStylingurl = '';
|
|
25465
|
+
this.translationUrl = '';
|
|
25466
|
+
this.clientStylingUrlContent = '';
|
|
25467
|
+
this.tickets = [];
|
|
25468
|
+
this.mainTickets = [];
|
|
25469
|
+
this.secondaryTickets = [];
|
|
25470
|
+
this.tabIndex = 0;
|
|
25471
|
+
this.hasErrors = false;
|
|
25472
|
+
this.totalAmount = 0;
|
|
25473
|
+
this.successVisible = false;
|
|
25474
|
+
this.daysRemaining = undefined;
|
|
25475
|
+
this.hoursRemaining = undefined;
|
|
25476
|
+
this.minutesRemaining = undefined;
|
|
25477
|
+
this.secondsRemaining = undefined;
|
|
25478
|
+
this.nextDate = undefined;
|
|
25479
|
+
this.isLoggedIn = false;
|
|
25480
|
+
this.loginModalVisible = false;
|
|
25481
|
+
this.limitStylingAppends = false;
|
|
25482
|
+
this.isLoading = false;
|
|
25483
|
+
this.showSubmitError = false;
|
|
25484
|
+
this.submitError = '';
|
|
25485
|
+
this.showApiError = false;
|
|
25486
|
+
this.apiError = '';
|
|
25487
|
+
this.translationData = undefined;
|
|
25740
25488
|
}
|
|
25741
25489
|
handleNewTranslations() {
|
|
25742
25490
|
this.isLoading = true;
|
|
@@ -26071,88 +25819,41 @@ const LotteryGrid = class {
|
|
|
26071
25819
|
this.gridFilledEvent = index.createEvent(this, "gridFilled", 7);
|
|
26072
25820
|
this.gridDirtyEvent = index.createEvent(this, "gridDirty", 7);
|
|
26073
25821
|
this.gridClearAllEvent = index.createEvent(this, "gridClearAllEvent", 7);
|
|
26074
|
-
|
|
26075
|
-
|
|
26076
|
-
|
|
25822
|
+
this.selectedCounter = 0;
|
|
25823
|
+
this.setClientStyling = () => {
|
|
25824
|
+
let sheet = document.createElement('style');
|
|
25825
|
+
sheet.innerHTML = this.clientStyling;
|
|
25826
|
+
this.stylingContainer.prepend(sheet);
|
|
25827
|
+
};
|
|
25828
|
+
this.setClientStylingURL = () => {
|
|
25829
|
+
let cssFile = document.createElement('style');
|
|
25830
|
+
setTimeout(() => {
|
|
25831
|
+
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
25832
|
+
this.stylingContainer.prepend(cssFile);
|
|
25833
|
+
}, 1);
|
|
25834
|
+
};
|
|
25835
|
+
this.ticketId = undefined;
|
|
26077
25836
|
this.totalNumbers = 0;
|
|
26078
|
-
|
|
26079
|
-
* Number of maximum bullets that can be selected
|
|
26080
|
-
*/
|
|
25837
|
+
this.gameId = undefined;
|
|
26081
25838
|
this.maximumAllowed = 7;
|
|
26082
|
-
/**
|
|
26083
|
-
* Minimum allowed of bullets
|
|
26084
|
-
*/
|
|
26085
25839
|
this.minimumAllowed = 3;
|
|
26086
|
-
|
|
26087
|
-
* Allows the user to select numbers on the grid
|
|
26088
|
-
*/
|
|
25840
|
+
this.numberRange = undefined;
|
|
26089
25841
|
this.selectable = true;
|
|
26090
|
-
/**
|
|
26091
|
-
* Numbers that should be showed as selected on the grid (as a string of those numbers e.g. '1,2,3,4,5,6')
|
|
26092
|
-
*/
|
|
26093
25842
|
this.selectedNumbers = '';
|
|
26094
|
-
/**
|
|
26095
|
-
* Bonus numbers that should be showed as selected on the grid (as a string of those numbers e.g. '1')
|
|
26096
|
-
*/
|
|
26097
25843
|
this.secondaryNumbers = '';
|
|
26098
|
-
/**
|
|
26099
|
-
* Show only selected numbers
|
|
26100
|
-
*/
|
|
26101
25844
|
this.displaySelected = false;
|
|
26102
|
-
/**
|
|
26103
|
-
* Language
|
|
26104
|
-
*/
|
|
26105
25845
|
this.language = 'en';
|
|
26106
|
-
|
|
26107
|
-
* Personalize grid for ticket
|
|
26108
|
-
*/
|
|
25846
|
+
this.gridIndex = undefined;
|
|
26109
25847
|
this.gridType = '';
|
|
26110
|
-
/**
|
|
26111
|
-
* Client custom styling via string
|
|
26112
|
-
*/
|
|
26113
25848
|
this.clientStyling = '';
|
|
26114
|
-
/**
|
|
26115
|
-
* Client custom styling via url content
|
|
26116
|
-
*/
|
|
26117
25849
|
this.clientStylingUrlContent = '';
|
|
26118
|
-
/**
|
|
26119
|
-
* Maximum number of the grid
|
|
26120
|
-
*/
|
|
26121
25850
|
this.highNumber = 47;
|
|
26122
|
-
/**
|
|
26123
|
-
* Lowest number of the grid
|
|
26124
|
-
*/
|
|
26125
25851
|
this.lowNumber = 1;
|
|
26126
|
-
/**
|
|
26127
|
-
* Type of selection
|
|
26128
|
-
*/
|
|
26129
25852
|
this.selectionType = 'mainSelection';
|
|
26130
|
-
/**
|
|
26131
|
-
* Allows partial quickpick or not
|
|
26132
|
-
*/
|
|
26133
25853
|
this.partialQuickpickAvailable = false;
|
|
26134
|
-
/**
|
|
26135
|
-
* main selection numbers
|
|
26136
|
-
*/
|
|
26137
25854
|
this.numbers = [];
|
|
26138
|
-
/**
|
|
26139
|
-
* Bonus selection numbers
|
|
26140
|
-
*/
|
|
26141
25855
|
this.bonusNumbers = [];
|
|
26142
25856
|
this.limitStylingAppends = false;
|
|
26143
|
-
this.selectedCounter = 0;
|
|
26144
|
-
this.setClientStyling = () => {
|
|
26145
|
-
let sheet = document.createElement('style');
|
|
26146
|
-
sheet.innerHTML = this.clientStyling;
|
|
26147
|
-
this.stylingContainer.prepend(sheet);
|
|
26148
|
-
};
|
|
26149
|
-
this.setClientStylingURL = () => {
|
|
26150
|
-
let cssFile = document.createElement('style');
|
|
26151
|
-
setTimeout(() => {
|
|
26152
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
26153
|
-
this.stylingContainer.prepend(cssFile);
|
|
26154
|
-
}, 1);
|
|
26155
|
-
};
|
|
26156
25857
|
}
|
|
26157
25858
|
connectedCallback() {
|
|
26158
25859
|
let selected = [];
|
|
@@ -26401,58 +26102,8 @@ const LotteryPagination = class {
|
|
|
26401
26102
|
constructor(hostRef) {
|
|
26402
26103
|
index.registerInstance(this, hostRef);
|
|
26403
26104
|
this.hpPageChange = index.createEvent(this, "hpPageChange", 7);
|
|
26404
|
-
/**
|
|
26405
|
-
* Next page string value - determines if the next page is disabled or active
|
|
26406
|
-
*/
|
|
26407
|
-
this.nextPage = false;
|
|
26408
|
-
/**
|
|
26409
|
-
* Previous page string value - determines if the previous page is disabled or active
|
|
26410
|
-
*/
|
|
26411
|
-
this.prevPage = false;
|
|
26412
|
-
/**
|
|
26413
|
-
* The received offset
|
|
26414
|
-
*/
|
|
26415
|
-
this.offset = 0;
|
|
26416
|
-
/**
|
|
26417
|
-
* The received limit for the number of pages
|
|
26418
|
-
*/
|
|
26419
|
-
this.limit = 10;
|
|
26420
|
-
/**
|
|
26421
|
-
* The received total number of pages
|
|
26422
|
-
*/
|
|
26423
|
-
this.total = 1;
|
|
26424
|
-
/**
|
|
26425
|
-
* Language
|
|
26426
|
-
*/
|
|
26427
|
-
this.language = 'en';
|
|
26428
|
-
/**
|
|
26429
|
-
* Client custom styling via string
|
|
26430
|
-
*/
|
|
26431
|
-
this.clientStyling = '';
|
|
26432
|
-
/**
|
|
26433
|
-
* Client custom styling via url content
|
|
26434
|
-
*/
|
|
26435
|
-
this.clientStylingUrlContent = '';
|
|
26436
|
-
this.isReset = false;
|
|
26437
|
-
/**
|
|
26438
|
-
* Component working variable for last page
|
|
26439
|
-
*/
|
|
26440
|
-
this.lastPage = false;
|
|
26441
|
-
/**
|
|
26442
|
-
* Component working variable for prvious page
|
|
26443
|
-
*/
|
|
26444
|
-
this.previousPage = false;
|
|
26445
|
-
/**
|
|
26446
|
-
* In component working variable for the array of pages
|
|
26447
|
-
*/
|
|
26448
|
-
this.pagesArray = [];
|
|
26449
|
-
/**
|
|
26450
|
-
* In component working variable for last page
|
|
26451
|
-
*/
|
|
26452
|
-
this.endInt = 0;
|
|
26453
26105
|
this.userAgent = window.navigator.userAgent;
|
|
26454
26106
|
this.currentPage = 1;
|
|
26455
|
-
this.limitStylingAppends = false;
|
|
26456
26107
|
/**
|
|
26457
26108
|
* Navigation logic
|
|
26458
26109
|
*/
|
|
@@ -26530,6 +26181,27 @@ const LotteryPagination = class {
|
|
|
26530
26181
|
this.stylingContainer.prepend(cssFile);
|
|
26531
26182
|
}, 1);
|
|
26532
26183
|
};
|
|
26184
|
+
this.nextPage = false;
|
|
26185
|
+
this.prevPage = false;
|
|
26186
|
+
this.offset = 0;
|
|
26187
|
+
this.limit = 10;
|
|
26188
|
+
this.total = 1;
|
|
26189
|
+
this.language = 'en';
|
|
26190
|
+
this.clientStyling = '';
|
|
26191
|
+
this.clientStylingUrlContent = '';
|
|
26192
|
+
this.arrowsActive = undefined;
|
|
26193
|
+
this.secondaryArrowsActive = undefined;
|
|
26194
|
+
this.numberedNavActive = undefined;
|
|
26195
|
+
this.isReset = false;
|
|
26196
|
+
this.translationUrl = undefined;
|
|
26197
|
+
this.offsetInt = undefined;
|
|
26198
|
+
this.lastPage = false;
|
|
26199
|
+
this.previousPage = false;
|
|
26200
|
+
this.limitInt = undefined;
|
|
26201
|
+
this.totalInt = undefined;
|
|
26202
|
+
this.pagesArray = [];
|
|
26203
|
+
this.endInt = 0;
|
|
26204
|
+
this.limitStylingAppends = false;
|
|
26533
26205
|
}
|
|
26534
26206
|
componentWillLoad() {
|
|
26535
26207
|
if (this.translationUrl) {
|
|
@@ -26956,7 +26628,6 @@ const ItemMixin = (superClass) =>
|
|
|
26956
26628
|
value: false,
|
|
26957
26629
|
reflectToAttribute: true,
|
|
26958
26630
|
observer: '_selectedChanged',
|
|
26959
|
-
sync: true,
|
|
26960
26631
|
},
|
|
26961
26632
|
|
|
26962
26633
|
/** @private */
|
|
@@ -27380,7 +27051,6 @@ const ListMixin = (superClass) =>
|
|
|
27380
27051
|
type: Number,
|
|
27381
27052
|
reflectToAttribute: true,
|
|
27382
27053
|
notify: true,
|
|
27383
|
-
sync: true,
|
|
27384
27054
|
},
|
|
27385
27055
|
|
|
27386
27056
|
/**
|
|
@@ -28274,7 +27944,7 @@ const SelectBaseMixin = (superClass) =>
|
|
|
28274
27944
|
super._requiredChanged(required);
|
|
28275
27945
|
|
|
28276
27946
|
if (required === false) {
|
|
28277
|
-
this.
|
|
27947
|
+
this.validate();
|
|
28278
27948
|
}
|
|
28279
27949
|
}
|
|
28280
27950
|
|
|
@@ -28338,7 +28008,7 @@ const SelectBaseMixin = (superClass) =>
|
|
|
28338
28008
|
// a change event is scheduled, as validation will be
|
|
28339
28009
|
// triggered by `__dispatchChange()` in that case.
|
|
28340
28010
|
if (oldValue !== undefined && !this.__dispatchChangePending) {
|
|
28341
|
-
this.
|
|
28011
|
+
this.validate();
|
|
28342
28012
|
}
|
|
28343
28013
|
}
|
|
28344
28014
|
|
|
@@ -28436,7 +28106,7 @@ const SelectBaseMixin = (superClass) =>
|
|
|
28436
28106
|
// will be triggered by `__dispatchChange()` in that case.
|
|
28437
28107
|
// Also, skip validation when closed on Escape or Tab keys.
|
|
28438
28108
|
if (!this.__dispatchChangePending && !this._keyboardActive) {
|
|
28439
|
-
this.
|
|
28109
|
+
this.validate();
|
|
28440
28110
|
}
|
|
28441
28111
|
}
|
|
28442
28112
|
|
|
@@ -28509,11 +28179,6 @@ const SelectBaseMixin = (superClass) =>
|
|
|
28509
28179
|
*/
|
|
28510
28180
|
__appendValueItemElement(itemElement, parent) {
|
|
28511
28181
|
parent.appendChild(itemElement);
|
|
28512
|
-
// Trigger observer that sets aria-selected attribute
|
|
28513
|
-
// so that we can then synchronously remove it below.
|
|
28514
|
-
if (itemElement.performUpdate) {
|
|
28515
|
-
itemElement.performUpdate();
|
|
28516
|
-
}
|
|
28517
28182
|
itemElement.removeAttribute('tabindex');
|
|
28518
28183
|
itemElement.removeAttribute('aria-selected');
|
|
28519
28184
|
itemElement.removeAttribute('role');
|
|
@@ -28649,7 +28314,7 @@ const SelectBaseMixin = (superClass) =>
|
|
|
28649
28314
|
// Do not validate when focusout is caused by document
|
|
28650
28315
|
// losing focus, which happens on browser tab switch.
|
|
28651
28316
|
if (!focused && document.hasFocus()) {
|
|
28652
|
-
this.
|
|
28317
|
+
this.validate();
|
|
28653
28318
|
}
|
|
28654
28319
|
}
|
|
28655
28320
|
|
|
@@ -28694,7 +28359,7 @@ const SelectBaseMixin = (superClass) =>
|
|
|
28694
28359
|
await this.updateComplete;
|
|
28695
28360
|
}
|
|
28696
28361
|
|
|
28697
|
-
this.
|
|
28362
|
+
this.validate();
|
|
28698
28363
|
this.dispatchEvent(new CustomEvent('change', { bubbles: true }));
|
|
28699
28364
|
this.__dispatchChangePending = false;
|
|
28700
28365
|
}
|
|
@@ -28940,34 +28605,29 @@ const LotteryTicket = class {
|
|
|
28940
28605
|
this.drawMultiplierChange = index.createEvent(this, "drawMultiplierChange", 7);
|
|
28941
28606
|
this.lineMultiplierChange = index.createEvent(this, "lineMultiplierChange", 7);
|
|
28942
28607
|
this.betTypeChange = index.createEvent(this, "betTypeChange", 7);
|
|
28943
|
-
|
|
28944
|
-
|
|
28945
|
-
|
|
28608
|
+
this.setClientStyling = () => {
|
|
28609
|
+
let sheet = document.createElement('style');
|
|
28610
|
+
sheet.innerHTML = this.clientStyling;
|
|
28611
|
+
this.stylingContainer.prepend(sheet);
|
|
28612
|
+
};
|
|
28613
|
+
this.setClientStylingURL = () => {
|
|
28614
|
+
let cssFile = document.createElement('style');
|
|
28615
|
+
setTimeout(() => {
|
|
28616
|
+
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
28617
|
+
this.stylingContainer.prepend(cssFile);
|
|
28618
|
+
}, 1);
|
|
28619
|
+
};
|
|
28620
|
+
this.endpoint = undefined;
|
|
28621
|
+
this.gameId = undefined;
|
|
28946
28622
|
this.numberOfGrids = 1;
|
|
28947
|
-
/**
|
|
28948
|
-
* Option to have the ticket registered for multiple draws
|
|
28949
|
-
*/
|
|
28950
28623
|
this.multipleDraws = true;
|
|
28951
|
-
|
|
28952
|
-
* Shows the reset button
|
|
28953
|
-
*/
|
|
28624
|
+
this.ticketId = undefined;
|
|
28954
28625
|
this.resetButton = false;
|
|
28955
|
-
/**
|
|
28956
|
-
* Shows the auto-pick button
|
|
28957
|
-
*/
|
|
28958
28626
|
this.autoPick = false;
|
|
28959
|
-
/**
|
|
28960
|
-
* Language
|
|
28961
|
-
*/
|
|
28962
28627
|
this.language = 'en';
|
|
28963
|
-
/**
|
|
28964
|
-
* Client custom styling via string
|
|
28965
|
-
*/
|
|
28966
28628
|
this.clientStyling = '';
|
|
28967
|
-
/**
|
|
28968
|
-
* Client custom styling via url content
|
|
28969
|
-
*/
|
|
28970
28629
|
this.clientStylingUrlContent = '';
|
|
28630
|
+
this.translationUrl = undefined;
|
|
28971
28631
|
this.isLoading = true;
|
|
28972
28632
|
this.hasErrors = false;
|
|
28973
28633
|
this.ticketDone = [];
|
|
@@ -28993,18 +28653,6 @@ const LotteryTicket = class {
|
|
|
28993
28653
|
this.secondaryMaximumAllowed = 1;
|
|
28994
28654
|
this.minimumAllowed = 6;
|
|
28995
28655
|
this.secondaryMinimumAllowed = 1;
|
|
28996
|
-
this.setClientStyling = () => {
|
|
28997
|
-
let sheet = document.createElement('style');
|
|
28998
|
-
sheet.innerHTML = this.clientStyling;
|
|
28999
|
-
this.stylingContainer.prepend(sheet);
|
|
29000
|
-
};
|
|
29001
|
-
this.setClientStylingURL = () => {
|
|
29002
|
-
let cssFile = document.createElement('style');
|
|
29003
|
-
setTimeout(() => {
|
|
29004
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
29005
|
-
this.stylingContainer.prepend(cssFile);
|
|
29006
|
-
}, 1);
|
|
29007
|
-
};
|
|
29008
28656
|
}
|
|
29009
28657
|
handleLineMultiplierChange(newValue) {
|
|
29010
28658
|
this.grids = Array.from({ length: newValue }, (_, i) => i + 1);
|
|
@@ -29312,71 +28960,35 @@ const LotteryTicketController = class {
|
|
|
29312
28960
|
constructor(hostRef) {
|
|
29313
28961
|
index.registerInstance(this, hostRef);
|
|
29314
28962
|
this.deleteTicketEvent = index.createEvent(this, "deleteTicket", 7);
|
|
29315
|
-
|
|
29316
|
-
|
|
29317
|
-
|
|
28963
|
+
this.setClientStyling = () => {
|
|
28964
|
+
let sheet = document.createElement('style');
|
|
28965
|
+
sheet.innerHTML = this.clientStyling;
|
|
28966
|
+
this.stylingContainer.prepend(sheet);
|
|
28967
|
+
};
|
|
28968
|
+
this.setClientStylingURL = () => {
|
|
28969
|
+
let cssFile = document.createElement('style');
|
|
28970
|
+
setTimeout(() => {
|
|
28971
|
+
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
28972
|
+
this.stylingContainer.prepend(cssFile);
|
|
28973
|
+
}, 1);
|
|
28974
|
+
};
|
|
29318
28975
|
this.endpoint = '';
|
|
29319
|
-
/**
|
|
29320
|
-
* Ticket number
|
|
29321
|
-
*/
|
|
29322
28976
|
this.ticketId = 1;
|
|
29323
|
-
|
|
29324
|
-
|
|
29325
|
-
*/
|
|
28977
|
+
this.ticketDescription = undefined;
|
|
28978
|
+
this.gameId = undefined;
|
|
29326
28979
|
this.postMessage = false;
|
|
29327
|
-
/**
|
|
29328
|
-
* Name of the event emitter by the action button
|
|
29329
|
-
*/
|
|
29330
28980
|
this.eventName = 'deleteTicketAction';
|
|
29331
|
-
/**
|
|
29332
|
-
* Collapsed
|
|
29333
|
-
*/
|
|
29334
28981
|
this.collapsed = true;
|
|
29335
|
-
/**
|
|
29336
|
-
* Number of grids?
|
|
29337
|
-
*/
|
|
29338
28982
|
this.numberOfGrids = 1;
|
|
29339
|
-
/**
|
|
29340
|
-
* This toggles if the last ticket added should be expanded or not
|
|
29341
|
-
*/
|
|
29342
28983
|
this.last = false;
|
|
29343
|
-
/**
|
|
29344
|
-
* Language
|
|
29345
|
-
*/
|
|
29346
28984
|
this.language = 'en';
|
|
29347
|
-
/**
|
|
29348
|
-
* Shows the auto-pick button
|
|
29349
|
-
*/
|
|
29350
28985
|
this.autoPick = false;
|
|
29351
|
-
/**
|
|
29352
|
-
* Shows the reset button
|
|
29353
|
-
*/
|
|
29354
28986
|
this.resetButton = false;
|
|
29355
|
-
/**
|
|
29356
|
-
* Number of ticket controllers
|
|
29357
|
-
*/
|
|
29358
28987
|
this.totalControllers = 1;
|
|
29359
|
-
/**
|
|
29360
|
-
* Client custom styling via string
|
|
29361
|
-
*/
|
|
29362
28988
|
this.clientStyling = '';
|
|
29363
|
-
/**
|
|
29364
|
-
* Client custom styling via url content
|
|
29365
|
-
*/
|
|
29366
28989
|
this.clientStylingUrlContent = '';
|
|
28990
|
+
this.translationUrl = undefined;
|
|
29367
28991
|
this.limitStylingAppends = false;
|
|
29368
|
-
this.setClientStyling = () => {
|
|
29369
|
-
let sheet = document.createElement('style');
|
|
29370
|
-
sheet.innerHTML = this.clientStyling;
|
|
29371
|
-
this.stylingContainer.prepend(sheet);
|
|
29372
|
-
};
|
|
29373
|
-
this.setClientStylingURL = () => {
|
|
29374
|
-
let cssFile = document.createElement('style');
|
|
29375
|
-
setTimeout(() => {
|
|
29376
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
29377
|
-
this.stylingContainer.prepend(cssFile);
|
|
29378
|
-
}, 1);
|
|
29379
|
-
};
|
|
29380
28992
|
}
|
|
29381
28993
|
// @TODO fix the `any` type
|
|
29382
28994
|
helperAccordionActionHandler() {
|