@everymatrix/lottery-game-page 1.56.0 → 1.56.3
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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h as h$2, g as getElement, a as getAssetPath } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h as h$2, g as getElement, a as getAssetPath } from './index-1df2d78b.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_LANGUAGE$8 = 'en';
|
|
4
4
|
const SUPPORTED_LANGUAGES$7 = ['ro', 'en', 'hr'];
|
|
@@ -38,67 +38,33 @@ const HelperAccordion = class {
|
|
|
38
38
|
constructor(hostRef) {
|
|
39
39
|
registerInstance(this, hostRef);
|
|
40
40
|
this.accordionEvent = createEvent(this, "helperAccordionAction", 7);
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
this.setClientStyling = () => {
|
|
42
|
+
let sheet = document.createElement('style');
|
|
43
|
+
sheet.innerHTML = this.clientStyling;
|
|
44
|
+
this.stylingContainer.prepend(sheet);
|
|
45
|
+
};
|
|
46
|
+
this.setClientStylingURL = () => {
|
|
47
|
+
let cssFile = document.createElement('style');
|
|
48
|
+
setTimeout(() => {
|
|
49
|
+
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
50
|
+
this.stylingContainer.prepend(cssFile);
|
|
51
|
+
}, 1);
|
|
52
|
+
};
|
|
44
53
|
this.ticketHistoryFlag = false;
|
|
45
|
-
/**
|
|
46
|
-
* Title (top header)
|
|
47
|
-
*/
|
|
48
54
|
this.headerTitle = '';
|
|
49
|
-
/**
|
|
50
|
-
* SubTitle (top header)
|
|
51
|
-
*/
|
|
52
55
|
this.headerSubtitle = '';
|
|
53
|
-
/**
|
|
54
|
-
* Description
|
|
55
|
-
*/
|
|
56
56
|
this.description = '';
|
|
57
|
-
/**
|
|
58
|
-
* Enables footer content
|
|
59
|
-
*/
|
|
60
57
|
this.footer = false;
|
|
61
|
-
/**
|
|
62
|
-
* Enables footer button for tab deletion
|
|
63
|
-
*/
|
|
64
58
|
this.deleteTab = false;
|
|
65
|
-
/**
|
|
66
|
-
* Activates postMessages as events for actions from the widget
|
|
67
|
-
*/
|
|
68
59
|
this.postMessage = false;
|
|
69
|
-
/**
|
|
70
|
-
* Name of the event emitter by the action button
|
|
71
|
-
*/
|
|
72
60
|
this.eventName = 'helperAccordionAction';
|
|
73
|
-
/**
|
|
74
|
-
* Collapsed
|
|
75
|
-
*/
|
|
76
61
|
this.collapsed = true;
|
|
77
|
-
/**
|
|
78
|
-
* Language
|
|
79
|
-
*/
|
|
80
62
|
this.language = 'en';
|
|
81
|
-
/**
|
|
82
|
-
* Client custom styling via string
|
|
83
|
-
*/
|
|
84
63
|
this.clientStyling = '';
|
|
85
|
-
/**
|
|
86
|
-
* Client custom styling via url content
|
|
87
|
-
*/
|
|
88
64
|
this.clientStylingUrlContent = '';
|
|
65
|
+
this.translationUrl = undefined;
|
|
66
|
+
this.showContent = undefined;
|
|
89
67
|
this.limitStylingAppends = false;
|
|
90
|
-
this.setClientStyling = () => {
|
|
91
|
-
let sheet = document.createElement('style');
|
|
92
|
-
sheet.innerHTML = this.clientStyling;
|
|
93
|
-
this.stylingContainer.prepend(sheet);
|
|
94
|
-
};
|
|
95
|
-
this.setClientStylingURL = () => {
|
|
96
|
-
let cssFile = document.createElement('style');
|
|
97
|
-
setTimeout(() => {
|
|
98
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
99
|
-
this.stylingContainer.prepend(cssFile);
|
|
100
|
-
}, 1);
|
|
101
|
-
};
|
|
102
68
|
}
|
|
103
69
|
// @TODO fix the `any` type :)
|
|
104
70
|
connectedCallback() {
|
|
@@ -219,55 +185,13 @@ const getTranslations$7 = (data) => {
|
|
|
219
185
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
220
186
|
*/
|
|
221
187
|
|
|
222
|
-
|
|
223
|
-
window.Vaadin.featureFlags ||= {};
|
|
224
|
-
|
|
225
|
-
function dashToCamelCase$1(dash) {
|
|
226
|
-
return dash.replace(/-[a-z]/gu, (m) => m[1].toUpperCase());
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
const experimentalMap = {};
|
|
230
|
-
|
|
231
|
-
function defineCustomElement(CustomElement, version = '24.6.5') {
|
|
188
|
+
function defineCustomElement(CustomElement, version = '24.5.10') {
|
|
232
189
|
Object.defineProperty(CustomElement, 'version', {
|
|
233
190
|
get() {
|
|
234
191
|
return version;
|
|
235
192
|
},
|
|
236
193
|
});
|
|
237
194
|
|
|
238
|
-
if (CustomElement.experimental) {
|
|
239
|
-
const featureFlagKey =
|
|
240
|
-
typeof CustomElement.experimental === 'string'
|
|
241
|
-
? CustomElement.experimental
|
|
242
|
-
: `${dashToCamelCase$1(CustomElement.is.split('-').slice(1).join('-'))}Component`;
|
|
243
|
-
|
|
244
|
-
if (!window.Vaadin.featureFlags[featureFlagKey] && !experimentalMap[featureFlagKey]) {
|
|
245
|
-
// Add setter to define experimental component when it's set to true
|
|
246
|
-
experimentalMap[featureFlagKey] = new Set();
|
|
247
|
-
experimentalMap[featureFlagKey].add(CustomElement);
|
|
248
|
-
|
|
249
|
-
Object.defineProperty(window.Vaadin.featureFlags, featureFlagKey, {
|
|
250
|
-
get() {
|
|
251
|
-
return experimentalMap[featureFlagKey].size === 0;
|
|
252
|
-
},
|
|
253
|
-
set(value) {
|
|
254
|
-
if (!!value && experimentalMap[featureFlagKey].size > 0) {
|
|
255
|
-
experimentalMap[featureFlagKey].forEach((elementClass) => {
|
|
256
|
-
customElements.define(elementClass.is, elementClass);
|
|
257
|
-
});
|
|
258
|
-
experimentalMap[featureFlagKey].clear();
|
|
259
|
-
}
|
|
260
|
-
},
|
|
261
|
-
});
|
|
262
|
-
|
|
263
|
-
return;
|
|
264
|
-
} else if (experimentalMap[featureFlagKey]) {
|
|
265
|
-
// Allow to register multiple components with single flag
|
|
266
|
-
experimentalMap[featureFlagKey].add(CustomElement);
|
|
267
|
-
return;
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
|
|
271
195
|
const defined = customElements.get(CustomElement.is);
|
|
272
196
|
if (!defined) {
|
|
273
197
|
customElements.define(CustomElement.is, CustomElement);
|
|
@@ -2351,7 +2275,7 @@ registerStyles(
|
|
|
2351
2275
|
const fontIcons = i$3`
|
|
2352
2276
|
@font-face {
|
|
2353
2277
|
font-family: 'lumo-icons';
|
|
2354
|
-
src: url(data:application/font-woff;charset=utf-8;base64,
|
|
2278
|
+
src: url(data:application/font-woff;charset=utf-8;base64,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)
|
|
2355
2279
|
format('woff');
|
|
2356
2280
|
font-weight: normal;
|
|
2357
2281
|
font-style: normal;
|
|
@@ -2381,27 +2305,25 @@ const fontIcons = i$3`
|
|
|
2381
2305
|
--lumo-icons-cog: '\\ea15';
|
|
2382
2306
|
--lumo-icons-cross: '\\ea16';
|
|
2383
2307
|
--lumo-icons-download: '\\ea17';
|
|
2384
|
-
--lumo-icons-
|
|
2385
|
-
--lumo-icons-
|
|
2386
|
-
--lumo-icons-
|
|
2387
|
-
--lumo-icons-
|
|
2388
|
-
--lumo-icons-eye: '\\ea1c';
|
|
2389
|
-
--lumo-icons-
|
|
2390
|
-
--lumo-icons-
|
|
2391
|
-
--lumo-icons-
|
|
2392
|
-
--lumo-icons-
|
|
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-upload: '\\ea2b';
|
|
2404
|
-
--lumo-icons-user: '\\ea2c';
|
|
2308
|
+
--lumo-icons-dropdown: '\\ea18';
|
|
2309
|
+
--lumo-icons-edit: '\\ea19';
|
|
2310
|
+
--lumo-icons-error: '\\ea1a';
|
|
2311
|
+
--lumo-icons-eye: '\\ea1b';
|
|
2312
|
+
--lumo-icons-eye-disabled: '\\ea1c';
|
|
2313
|
+
--lumo-icons-menu: '\\ea1d';
|
|
2314
|
+
--lumo-icons-minus: '\\ea1e';
|
|
2315
|
+
--lumo-icons-ordered-list: '\\ea1f';
|
|
2316
|
+
--lumo-icons-phone: '\\ea20';
|
|
2317
|
+
--lumo-icons-photo: '\\ea21';
|
|
2318
|
+
--lumo-icons-play: '\\ea22';
|
|
2319
|
+
--lumo-icons-plus: '\\ea23';
|
|
2320
|
+
--lumo-icons-redo: '\\ea24';
|
|
2321
|
+
--lumo-icons-reload: '\\ea25';
|
|
2322
|
+
--lumo-icons-search: '\\ea26';
|
|
2323
|
+
--lumo-icons-undo: '\\ea27';
|
|
2324
|
+
--lumo-icons-unordered-list: '\\ea28';
|
|
2325
|
+
--lumo-icons-upload: '\\ea29';
|
|
2326
|
+
--lumo-icons-user: '\\ea2a';
|
|
2405
2327
|
}
|
|
2406
2328
|
`;
|
|
2407
2329
|
|
|
@@ -11423,7 +11345,6 @@ const OverlayMixin = (superClass) =>
|
|
|
11423
11345
|
notify: true,
|
|
11424
11346
|
observer: '_openedChanged',
|
|
11425
11347
|
reflectToAttribute: true,
|
|
11426
|
-
sync: true,
|
|
11427
11348
|
},
|
|
11428
11349
|
|
|
11429
11350
|
/**
|
|
@@ -11432,7 +11353,6 @@ const OverlayMixin = (superClass) =>
|
|
|
11432
11353
|
*/
|
|
11433
11354
|
owner: {
|
|
11434
11355
|
type: Object,
|
|
11435
|
-
sync: true,
|
|
11436
11356
|
},
|
|
11437
11357
|
|
|
11438
11358
|
/**
|
|
@@ -11440,7 +11360,6 @@ const OverlayMixin = (superClass) =>
|
|
|
11440
11360
|
*/
|
|
11441
11361
|
model: {
|
|
11442
11362
|
type: Object,
|
|
11443
|
-
sync: true,
|
|
11444
11363
|
},
|
|
11445
11364
|
|
|
11446
11365
|
/**
|
|
@@ -11454,7 +11373,6 @@ const OverlayMixin = (superClass) =>
|
|
|
11454
11373
|
*/
|
|
11455
11374
|
renderer: {
|
|
11456
11375
|
type: Object,
|
|
11457
|
-
sync: true,
|
|
11458
11376
|
},
|
|
11459
11377
|
|
|
11460
11378
|
/**
|
|
@@ -11467,7 +11385,6 @@ const OverlayMixin = (superClass) =>
|
|
|
11467
11385
|
value: false,
|
|
11468
11386
|
reflectToAttribute: true,
|
|
11469
11387
|
observer: '_modelessChanged',
|
|
11470
|
-
sync: true,
|
|
11471
11388
|
},
|
|
11472
11389
|
|
|
11473
11390
|
/**
|
|
@@ -11479,7 +11396,6 @@ const OverlayMixin = (superClass) =>
|
|
|
11479
11396
|
type: Boolean,
|
|
11480
11397
|
reflectToAttribute: true,
|
|
11481
11398
|
observer: '_hiddenChanged',
|
|
11482
|
-
sync: true,
|
|
11483
11399
|
},
|
|
11484
11400
|
|
|
11485
11401
|
/**
|
|
@@ -11490,7 +11406,6 @@ const OverlayMixin = (superClass) =>
|
|
|
11490
11406
|
type: Boolean,
|
|
11491
11407
|
value: false,
|
|
11492
11408
|
reflectToAttribute: true,
|
|
11493
|
-
sync: true,
|
|
11494
11409
|
},
|
|
11495
11410
|
};
|
|
11496
11411
|
}
|
|
@@ -15110,7 +15025,6 @@ const DisabledMixin = dedupingMixin(
|
|
|
15110
15025
|
value: false,
|
|
15111
15026
|
observer: '_disabledChanged',
|
|
15112
15027
|
reflectToAttribute: true,
|
|
15113
|
-
sync: true,
|
|
15114
15028
|
},
|
|
15115
15029
|
};
|
|
15116
15030
|
}
|
|
@@ -16267,21 +16181,6 @@ class InfiniteScroller extends HTMLElement {
|
|
|
16267
16181
|
}
|
|
16268
16182
|
}
|
|
16269
16183
|
|
|
16270
|
-
/** @protected */
|
|
16271
|
-
disconnectedCallback() {
|
|
16272
|
-
if (this._debouncerScrollFinish) {
|
|
16273
|
-
this._debouncerScrollFinish.cancel();
|
|
16274
|
-
}
|
|
16275
|
-
|
|
16276
|
-
if (this._debouncerUpdateClones) {
|
|
16277
|
-
this._debouncerUpdateClones.cancel();
|
|
16278
|
-
}
|
|
16279
|
-
|
|
16280
|
-
if (this.__pendingFinishInit) {
|
|
16281
|
-
cancelAnimationFrame(this.__pendingFinishInit);
|
|
16282
|
-
}
|
|
16283
|
-
}
|
|
16284
|
-
|
|
16285
16184
|
/**
|
|
16286
16185
|
* Force the scroller to update clones after a reset, without
|
|
16287
16186
|
* waiting for the debouncer to resolve.
|
|
@@ -16429,9 +16328,8 @@ class InfiniteScroller extends HTMLElement {
|
|
|
16429
16328
|
}
|
|
16430
16329
|
});
|
|
16431
16330
|
|
|
16432
|
-
|
|
16331
|
+
requestAnimationFrame(() => {
|
|
16433
16332
|
this._finishInit();
|
|
16434
|
-
this.__pendingFinishInit = null;
|
|
16435
16333
|
});
|
|
16436
16334
|
}
|
|
16437
16335
|
|
|
@@ -16446,10 +16344,6 @@ class InfiniteScroller extends HTMLElement {
|
|
|
16446
16344
|
itemWrapper.instance = this._createElement();
|
|
16447
16345
|
itemWrapper.appendChild(itemWrapper.instance);
|
|
16448
16346
|
|
|
16449
|
-
if (itemWrapper.instance.performUpdate) {
|
|
16450
|
-
itemWrapper.instance.performUpdate();
|
|
16451
|
-
}
|
|
16452
|
-
|
|
16453
16347
|
Object.keys(tmpInstance).forEach((prop) => {
|
|
16454
16348
|
itemWrapper.instance[prop] = tmpInstance[prop];
|
|
16455
16349
|
});
|
|
@@ -18467,10 +18361,6 @@ const MonthCalendarMixin = (superClass) =>
|
|
|
18467
18361
|
value: () => false,
|
|
18468
18362
|
},
|
|
18469
18363
|
|
|
18470
|
-
enteredDate: {
|
|
18471
|
-
type: Date,
|
|
18472
|
-
},
|
|
18473
|
-
|
|
18474
18364
|
disabled: {
|
|
18475
18365
|
type: Boolean,
|
|
18476
18366
|
reflectToAttribute: true,
|
|
@@ -18490,11 +18380,6 @@ const MonthCalendarMixin = (superClass) =>
|
|
|
18490
18380
|
_notTapping: {
|
|
18491
18381
|
type: Boolean,
|
|
18492
18382
|
},
|
|
18493
|
-
|
|
18494
|
-
/** @private */
|
|
18495
|
-
__hasFocus: {
|
|
18496
|
-
type: Boolean,
|
|
18497
|
-
},
|
|
18498
18383
|
};
|
|
18499
18384
|
}
|
|
18500
18385
|
|
|
@@ -18514,12 +18399,6 @@ const MonthCalendarMixin = (superClass) =>
|
|
|
18514
18399
|
addListener(this.$.monthGrid, 'tap', this._handleTap.bind(this));
|
|
18515
18400
|
}
|
|
18516
18401
|
|
|
18517
|
-
/** @override */
|
|
18518
|
-
_setFocused(focused) {
|
|
18519
|
-
super._setFocused(focused);
|
|
18520
|
-
this.__hasFocus = focused;
|
|
18521
|
-
}
|
|
18522
|
-
|
|
18523
18402
|
/**
|
|
18524
18403
|
* Returns true if all the dates in the month are out of the allowed range
|
|
18525
18404
|
* @protected
|
|
@@ -18815,7 +18694,7 @@ class MonthCalendar extends MonthCalendarMixin(ThemableMixin(PolymerElement)) {
|
|
|
18815
18694
|
<template is="dom-repeat" items="[[week]]">
|
|
18816
18695
|
<td
|
|
18817
18696
|
role="gridcell"
|
|
18818
|
-
part$="[[__getDatePart(item, focusedDate, selectedDate, minDate, maxDate, isDateDisabled
|
|
18697
|
+
part$="[[__getDatePart(item, focusedDate, selectedDate, minDate, maxDate, isDateDisabled)]]"
|
|
18819
18698
|
date="[[item]]"
|
|
18820
18699
|
tabindex$="[[__getDayTabindex(item, focusedDate)]]"
|
|
18821
18700
|
disabled$="[[__isDayDisabled(item, minDate, maxDate, isDateDisabled)]]"
|
|
@@ -18873,7 +18752,7 @@ class MonthCalendar extends MonthCalendarMixin(ThemableMixin(PolymerElement)) {
|
|
|
18873
18752
|
|
|
18874
18753
|
/** @private */
|
|
18875
18754
|
// eslint-disable-next-line @typescript-eslint/max-params
|
|
18876
|
-
__getDatePart(date, focusedDate, selectedDate, minDate, maxDate, isDateDisabled
|
|
18755
|
+
__getDatePart(date, focusedDate, selectedDate, minDate, maxDate, isDateDisabled) {
|
|
18877
18756
|
const result = ['date'];
|
|
18878
18757
|
const greaterThanToday = date > normalizeDate(new Date());
|
|
18879
18758
|
const lessThanToday = date < normalizeDate(new Date());
|
|
@@ -18882,7 +18761,7 @@ class MonthCalendar extends MonthCalendarMixin(ThemableMixin(PolymerElement)) {
|
|
|
18882
18761
|
result.push('disabled');
|
|
18883
18762
|
}
|
|
18884
18763
|
|
|
18885
|
-
if (
|
|
18764
|
+
if (this.__isDayFocused(date, focusedDate)) {
|
|
18886
18765
|
result.push('focused');
|
|
18887
18766
|
}
|
|
18888
18767
|
|
|
@@ -18905,6 +18784,11 @@ class MonthCalendar extends MonthCalendarMixin(ThemableMixin(PolymerElement)) {
|
|
|
18905
18784
|
return result.join(' ');
|
|
18906
18785
|
}
|
|
18907
18786
|
|
|
18787
|
+
/** @private */
|
|
18788
|
+
__isDayFocused(date, focusedDate) {
|
|
18789
|
+
return dateEquals(date, focusedDate);
|
|
18790
|
+
}
|
|
18791
|
+
|
|
18908
18792
|
/** @private */
|
|
18909
18793
|
__isDaySelected(date, selectedDate) {
|
|
18910
18794
|
return dateEquals(date, selectedDate);
|
|
@@ -18935,7 +18819,11 @@ class MonthCalendar extends MonthCalendarMixin(ThemableMixin(PolymerElement)) {
|
|
|
18935
18819
|
|
|
18936
18820
|
/** @private */
|
|
18937
18821
|
__getDayTabindex(date, focusedDate) {
|
|
18938
|
-
|
|
18822
|
+
if (this.__isDayFocused(date, focusedDate)) {
|
|
18823
|
+
return '0';
|
|
18824
|
+
}
|
|
18825
|
+
|
|
18826
|
+
return '-1';
|
|
18939
18827
|
}
|
|
18940
18828
|
}
|
|
18941
18829
|
|
|
@@ -19054,7 +18942,6 @@ const DatePickerOverlayContentMixin = (superClass) =>
|
|
|
19054
18942
|
initialPosition: {
|
|
19055
18943
|
type: Object,
|
|
19056
18944
|
observer: '_initialPositionChanged',
|
|
19057
|
-
sync: true,
|
|
19058
18945
|
},
|
|
19059
18946
|
|
|
19060
18947
|
_originDate: {
|
|
@@ -19122,11 +19009,6 @@ const DatePickerOverlayContentMixin = (superClass) =>
|
|
|
19122
19009
|
type: Function,
|
|
19123
19010
|
},
|
|
19124
19011
|
|
|
19125
|
-
enteredDate: {
|
|
19126
|
-
type: Date,
|
|
19127
|
-
sync: true,
|
|
19128
|
-
},
|
|
19129
|
-
|
|
19130
19012
|
/**
|
|
19131
19013
|
* Input label
|
|
19132
19014
|
*/
|
|
@@ -19154,7 +19036,7 @@ const DatePickerOverlayContentMixin = (superClass) =>
|
|
|
19154
19036
|
|
|
19155
19037
|
static get observers() {
|
|
19156
19038
|
return [
|
|
19157
|
-
'__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled
|
|
19039
|
+
'__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)',
|
|
19158
19040
|
'__updateCancelButton(_cancelButton, i18n)',
|
|
19159
19041
|
'__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)',
|
|
19160
19042
|
'__updateYears(years, selectedDate, _theme)',
|
|
@@ -19342,7 +19224,6 @@ const DatePickerOverlayContentMixin = (superClass) =>
|
|
|
19342
19224
|
ignoreTaps,
|
|
19343
19225
|
theme,
|
|
19344
19226
|
isDateDisabled,
|
|
19345
|
-
enteredDate,
|
|
19346
19227
|
) {
|
|
19347
19228
|
if (calendars && calendars.length) {
|
|
19348
19229
|
calendars.forEach((calendar) => {
|
|
@@ -19354,7 +19235,6 @@ const DatePickerOverlayContentMixin = (superClass) =>
|
|
|
19354
19235
|
calendar.selectedDate = selectedDate;
|
|
19355
19236
|
calendar.showWeekNumbers = showWeekNumbers;
|
|
19356
19237
|
calendar.ignoreTaps = ignoreTaps;
|
|
19357
|
-
calendar.enteredDate = enteredDate;
|
|
19358
19238
|
|
|
19359
19239
|
if (theme) {
|
|
19360
19240
|
calendar.setAttribute('theme', theme);
|
|
@@ -20612,8 +20492,6 @@ const InputMixin = dedupingMixin(
|
|
|
20612
20492
|
if (this.inputElement) {
|
|
20613
20493
|
this.inputElement[this._inputElementValueProperty] = value;
|
|
20614
20494
|
}
|
|
20615
|
-
|
|
20616
|
-
this._hasInputValue = value && value.length > 0;
|
|
20617
20495
|
}
|
|
20618
20496
|
|
|
20619
20497
|
/**
|
|
@@ -21817,22 +21695,6 @@ const ValidateMixin = dedupingMixin(
|
|
|
21817
21695
|
value: false,
|
|
21818
21696
|
},
|
|
21819
21697
|
|
|
21820
|
-
/**
|
|
21821
|
-
* Set to true to enable manual validation mode. This mode disables automatic
|
|
21822
|
-
* constraint validation, allowing you to control the validation process yourself.
|
|
21823
|
-
* You can still trigger constraint validation manually with the `validate()` method
|
|
21824
|
-
* or use `checkValidity()` to assess the component's validity without affecting
|
|
21825
|
-
* the invalid state. In manual validation mode, you can also manipulate
|
|
21826
|
-
* the `invalid` property directly through your application logic without conflicts
|
|
21827
|
-
* with the component's internal validation.
|
|
21828
|
-
*
|
|
21829
|
-
* @attr {boolean} manual-validation
|
|
21830
|
-
*/
|
|
21831
|
-
manualValidation: {
|
|
21832
|
-
type: Boolean,
|
|
21833
|
-
value: false,
|
|
21834
|
-
},
|
|
21835
|
-
|
|
21836
21698
|
/**
|
|
21837
21699
|
* Specifies that the user must fill in a value.
|
|
21838
21700
|
*/
|
|
@@ -21887,14 +21749,6 @@ const ValidateMixin = dedupingMixin(
|
|
|
21887
21749
|
return true;
|
|
21888
21750
|
}
|
|
21889
21751
|
|
|
21890
|
-
/** @protected */
|
|
21891
|
-
_requestValidation() {
|
|
21892
|
-
if (!this.manualValidation) {
|
|
21893
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
21894
|
-
this.validate();
|
|
21895
|
-
}
|
|
21896
|
-
}
|
|
21897
|
-
|
|
21898
21752
|
/**
|
|
21899
21753
|
* Fired whenever the field is validated.
|
|
21900
21754
|
*
|
|
@@ -22324,8 +22178,8 @@ const InputConstraintsMixin = dedupingMixin(
|
|
|
22324
22178
|
const isLastConstraintRemoved = this.__previousHasConstraints && !hasConstraints;
|
|
22325
22179
|
|
|
22326
22180
|
if ((this._hasValue || this.invalid) && hasConstraints) {
|
|
22327
|
-
this.
|
|
22328
|
-
} else if (isLastConstraintRemoved
|
|
22181
|
+
this.validate();
|
|
22182
|
+
} else if (isLastConstraintRemoved) {
|
|
22329
22183
|
this._setInvalid(false);
|
|
22330
22184
|
}
|
|
22331
22185
|
|
|
@@ -22343,7 +22197,7 @@ const InputConstraintsMixin = dedupingMixin(
|
|
|
22343
22197
|
_onChange(event) {
|
|
22344
22198
|
event.stopPropagation();
|
|
22345
22199
|
|
|
22346
|
-
this.
|
|
22200
|
+
this.validate();
|
|
22347
22201
|
|
|
22348
22202
|
this.dispatchEvent(
|
|
22349
22203
|
new CustomEvent('change', {
|
|
@@ -22486,6 +22340,30 @@ const InputControlMixin = (superclass) =>
|
|
|
22486
22340
|
}
|
|
22487
22341
|
}
|
|
22488
22342
|
|
|
22343
|
+
/**
|
|
22344
|
+
* Override an event listener inherited from `InputMixin`
|
|
22345
|
+
* to capture native `change` event and make sure that
|
|
22346
|
+
* a new one is dispatched after validation runs.
|
|
22347
|
+
* @param {Event} event
|
|
22348
|
+
* @protected
|
|
22349
|
+
* @override
|
|
22350
|
+
*/
|
|
22351
|
+
_onChange(event) {
|
|
22352
|
+
event.stopPropagation();
|
|
22353
|
+
|
|
22354
|
+
this.validate();
|
|
22355
|
+
|
|
22356
|
+
this.dispatchEvent(
|
|
22357
|
+
new CustomEvent('change', {
|
|
22358
|
+
detail: {
|
|
22359
|
+
sourceEvent: event,
|
|
22360
|
+
},
|
|
22361
|
+
bubbles: event.bubbles,
|
|
22362
|
+
cancelable: event.cancelable,
|
|
22363
|
+
}),
|
|
22364
|
+
);
|
|
22365
|
+
}
|
|
22366
|
+
|
|
22489
22367
|
/**
|
|
22490
22368
|
* Override a method from `InputMixin`.
|
|
22491
22369
|
* @param {!HTMLElement} input
|
|
@@ -22909,62 +22787,6 @@ class VirtualKeyboardController {
|
|
|
22909
22787
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
22910
22788
|
*/
|
|
22911
22789
|
|
|
22912
|
-
const datePickerI18nDefaults = Object.freeze({
|
|
22913
|
-
monthNames: [
|
|
22914
|
-
'January',
|
|
22915
|
-
'February',
|
|
22916
|
-
'March',
|
|
22917
|
-
'April',
|
|
22918
|
-
'May',
|
|
22919
|
-
'June',
|
|
22920
|
-
'July',
|
|
22921
|
-
'August',
|
|
22922
|
-
'September',
|
|
22923
|
-
'October',
|
|
22924
|
-
'November',
|
|
22925
|
-
'December',
|
|
22926
|
-
],
|
|
22927
|
-
weekdays: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
|
22928
|
-
weekdaysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
|
22929
|
-
firstDayOfWeek: 0,
|
|
22930
|
-
today: 'Today',
|
|
22931
|
-
cancel: 'Cancel',
|
|
22932
|
-
referenceDate: '',
|
|
22933
|
-
formatDate(d) {
|
|
22934
|
-
const yearStr = String(d.year).replace(/\d+/u, (y) => '0000'.substr(y.length) + y);
|
|
22935
|
-
return [d.month + 1, d.day, yearStr].join('/');
|
|
22936
|
-
},
|
|
22937
|
-
parseDate(text) {
|
|
22938
|
-
const parts = text.split('/');
|
|
22939
|
-
const today = new Date();
|
|
22940
|
-
let date,
|
|
22941
|
-
month = today.getMonth(),
|
|
22942
|
-
year = today.getFullYear();
|
|
22943
|
-
|
|
22944
|
-
if (parts.length === 3) {
|
|
22945
|
-
month = parseInt(parts[0]) - 1;
|
|
22946
|
-
date = parseInt(parts[1]);
|
|
22947
|
-
year = parseInt(parts[2]);
|
|
22948
|
-
if (parts[2].length < 3 && year >= 0) {
|
|
22949
|
-
const usedReferenceDate = this.referenceDate ? parseDate(this.referenceDate) : new Date();
|
|
22950
|
-
year = getAdjustedYear(usedReferenceDate, year, month, date);
|
|
22951
|
-
}
|
|
22952
|
-
} else if (parts.length === 2) {
|
|
22953
|
-
month = parseInt(parts[0]) - 1;
|
|
22954
|
-
date = parseInt(parts[1]);
|
|
22955
|
-
} else if (parts.length === 1) {
|
|
22956
|
-
date = parseInt(parts[0]);
|
|
22957
|
-
}
|
|
22958
|
-
|
|
22959
|
-
if (date !== undefined) {
|
|
22960
|
-
return { day: date, month, year };
|
|
22961
|
-
}
|
|
22962
|
-
},
|
|
22963
|
-
formatTitle: (monthName, fullYear) => {
|
|
22964
|
-
return `${monthName} ${fullYear}`;
|
|
22965
|
-
},
|
|
22966
|
-
});
|
|
22967
|
-
|
|
22968
22790
|
/**
|
|
22969
22791
|
* @polymerMixin
|
|
22970
22792
|
* @mixes ControllerMixin
|
|
@@ -23038,10 +22860,7 @@ const DatePickerMixin = (subclass) =>
|
|
|
23038
22860
|
* Set true to prevent the overlay from opening automatically.
|
|
23039
22861
|
* @attr {boolean} auto-open-disabled
|
|
23040
22862
|
*/
|
|
23041
|
-
autoOpenDisabled:
|
|
23042
|
-
type: Boolean,
|
|
23043
|
-
sync: true,
|
|
23044
|
-
},
|
|
22863
|
+
autoOpenDisabled: Boolean,
|
|
23045
22864
|
|
|
23046
22865
|
/**
|
|
23047
22866
|
* Set true to display ISO-8601 week numbers in the calendar. Notice that
|
|
@@ -23162,7 +22981,63 @@ const DatePickerMixin = (subclass) =>
|
|
|
23162
22981
|
i18n: {
|
|
23163
22982
|
type: Object,
|
|
23164
22983
|
sync: true,
|
|
23165
|
-
value: () =>
|
|
22984
|
+
value: () => {
|
|
22985
|
+
return {
|
|
22986
|
+
monthNames: [
|
|
22987
|
+
'January',
|
|
22988
|
+
'February',
|
|
22989
|
+
'March',
|
|
22990
|
+
'April',
|
|
22991
|
+
'May',
|
|
22992
|
+
'June',
|
|
22993
|
+
'July',
|
|
22994
|
+
'August',
|
|
22995
|
+
'September',
|
|
22996
|
+
'October',
|
|
22997
|
+
'November',
|
|
22998
|
+
'December',
|
|
22999
|
+
],
|
|
23000
|
+
weekdays: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
|
23001
|
+
weekdaysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
|
23002
|
+
firstDayOfWeek: 0,
|
|
23003
|
+
today: 'Today',
|
|
23004
|
+
cancel: 'Cancel',
|
|
23005
|
+
referenceDate: '',
|
|
23006
|
+
formatDate(d) {
|
|
23007
|
+
const yearStr = String(d.year).replace(/\d+/u, (y) => '0000'.substr(y.length) + y);
|
|
23008
|
+
return [d.month + 1, d.day, yearStr].join('/');
|
|
23009
|
+
},
|
|
23010
|
+
parseDate(text) {
|
|
23011
|
+
const parts = text.split('/');
|
|
23012
|
+
const today = new Date();
|
|
23013
|
+
let date,
|
|
23014
|
+
month = today.getMonth(),
|
|
23015
|
+
year = today.getFullYear();
|
|
23016
|
+
|
|
23017
|
+
if (parts.length === 3) {
|
|
23018
|
+
month = parseInt(parts[0]) - 1;
|
|
23019
|
+
date = parseInt(parts[1]);
|
|
23020
|
+
year = parseInt(parts[2]);
|
|
23021
|
+
if (parts[2].length < 3 && year >= 0) {
|
|
23022
|
+
const usedReferenceDate = this.referenceDate ? parseDate(this.referenceDate) : new Date();
|
|
23023
|
+
year = getAdjustedYear(usedReferenceDate, year, month, date);
|
|
23024
|
+
}
|
|
23025
|
+
} else if (parts.length === 2) {
|
|
23026
|
+
month = parseInt(parts[0]) - 1;
|
|
23027
|
+
date = parseInt(parts[1]);
|
|
23028
|
+
} else if (parts.length === 1) {
|
|
23029
|
+
date = parseInt(parts[0]);
|
|
23030
|
+
}
|
|
23031
|
+
|
|
23032
|
+
if (date !== undefined) {
|
|
23033
|
+
return { day: date, month, year };
|
|
23034
|
+
}
|
|
23035
|
+
},
|
|
23036
|
+
formatTitle: (monthName, fullYear) => {
|
|
23037
|
+
return `${monthName} ${fullYear}`;
|
|
23038
|
+
},
|
|
23039
|
+
};
|
|
23040
|
+
},
|
|
23166
23041
|
},
|
|
23167
23042
|
|
|
23168
23043
|
/**
|
|
@@ -23247,10 +23122,18 @@ const DatePickerMixin = (subclass) =>
|
|
|
23247
23122
|
sync: true,
|
|
23248
23123
|
},
|
|
23249
23124
|
|
|
23250
|
-
/**
|
|
23251
|
-
|
|
23252
|
-
|
|
23253
|
-
|
|
23125
|
+
/**
|
|
23126
|
+
* In date-picker, unlike other components extending `InputMixin`,
|
|
23127
|
+
* the property indicates true only if the input has been entered by the user.
|
|
23128
|
+
* In the case of programmatic changes, the property is reset to false.
|
|
23129
|
+
* Read more about why this workaround is needed:
|
|
23130
|
+
* https://github.com/vaadin/web-components/issues/5639
|
|
23131
|
+
*
|
|
23132
|
+
* @protected
|
|
23133
|
+
* @override
|
|
23134
|
+
*/
|
|
23135
|
+
_hasInputValue: {
|
|
23136
|
+
type: Boolean,
|
|
23254
23137
|
},
|
|
23255
23138
|
};
|
|
23256
23139
|
}
|
|
@@ -23259,7 +23142,7 @@ const DatePickerMixin = (subclass) =>
|
|
|
23259
23142
|
return [
|
|
23260
23143
|
'_selectedDateChanged(_selectedDate, i18n)',
|
|
23261
23144
|
'_focusedDateChanged(_focusedDate, i18n)',
|
|
23262
|
-
'__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled
|
|
23145
|
+
'__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)',
|
|
23263
23146
|
'__updateOverlayContentTheme(_overlayContent, _theme)',
|
|
23264
23147
|
'__updateOverlayContentFullScreen(_overlayContent, _fullscreen)',
|
|
23265
23148
|
];
|
|
@@ -23277,17 +23160,28 @@ const DatePickerMixin = (subclass) =>
|
|
|
23277
23160
|
this._boundOverlayRenderer = this._overlayRenderer.bind(this);
|
|
23278
23161
|
}
|
|
23279
23162
|
|
|
23280
|
-
/**
|
|
23163
|
+
/**
|
|
23164
|
+
* @override
|
|
23165
|
+
* @protected
|
|
23166
|
+
*/
|
|
23281
23167
|
get _inputElementValue() {
|
|
23282
23168
|
return super._inputElementValue;
|
|
23283
23169
|
}
|
|
23284
23170
|
|
|
23285
|
-
/**
|
|
23171
|
+
/**
|
|
23172
|
+
* The setter is overridden to reset the `_hasInputValue` property
|
|
23173
|
+
* to false when the input element's value is updated programmatically.
|
|
23174
|
+
* In date-picker, `_hasInputValue` is supposed to indicate true only
|
|
23175
|
+
* if the input has been entered by the user.
|
|
23176
|
+
* Read more about why this workaround is needed:
|
|
23177
|
+
* https://github.com/vaadin/web-components/issues/5639
|
|
23178
|
+
*
|
|
23179
|
+
* @override
|
|
23180
|
+
* @protected
|
|
23181
|
+
*/
|
|
23286
23182
|
set _inputElementValue(value) {
|
|
23287
23183
|
super._inputElementValue = value;
|
|
23288
|
-
|
|
23289
|
-
const parsedDate = this.__parseDate(value);
|
|
23290
|
-
this.__setEnteredDate(parsedDate);
|
|
23184
|
+
this._hasInputValue = false;
|
|
23291
23185
|
}
|
|
23292
23186
|
|
|
23293
23187
|
/**
|
|
@@ -23349,7 +23243,7 @@ const DatePickerMixin = (subclass) =>
|
|
|
23349
23243
|
// Do not validate when focusout is caused by document
|
|
23350
23244
|
// losing focus, which happens on browser tab switch.
|
|
23351
23245
|
if (document.hasFocus()) {
|
|
23352
|
-
this.
|
|
23246
|
+
this.validate();
|
|
23353
23247
|
}
|
|
23354
23248
|
}
|
|
23355
23249
|
}
|
|
@@ -23494,8 +23388,13 @@ const DatePickerMixin = (subclass) =>
|
|
|
23494
23388
|
!this._selectedDate || dateAllowed(this._selectedDate, this._minDate, this._maxDate, this.isDateDisabled);
|
|
23495
23389
|
|
|
23496
23390
|
let inputValidity = true;
|
|
23497
|
-
if (this.inputElement
|
|
23498
|
-
|
|
23391
|
+
if (this.inputElement) {
|
|
23392
|
+
if (this.inputElement.checkValidity) {
|
|
23393
|
+
inputValidity = this.inputElement.checkValidity();
|
|
23394
|
+
} else if (this.inputElement.validate) {
|
|
23395
|
+
// Iron-form-elements have the validate API
|
|
23396
|
+
inputValidity = this.inputElement.validate();
|
|
23397
|
+
}
|
|
23499
23398
|
}
|
|
23500
23399
|
|
|
23501
23400
|
return inputValid && isDateValid && inputValidity;
|
|
@@ -23582,10 +23481,10 @@ const DatePickerMixin = (subclass) =>
|
|
|
23582
23481
|
const unparsableValue = this.__unparsableValue;
|
|
23583
23482
|
|
|
23584
23483
|
if (this.__committedValue !== this.value) {
|
|
23585
|
-
this.
|
|
23484
|
+
this.validate();
|
|
23586
23485
|
this.dispatchEvent(new CustomEvent('change', { bubbles: true }));
|
|
23587
23486
|
} else if (this.__committedUnparsableValue !== unparsableValue) {
|
|
23588
|
-
this.
|
|
23487
|
+
this.validate();
|
|
23589
23488
|
this.dispatchEvent(new CustomEvent('unparsable-change'));
|
|
23590
23489
|
}
|
|
23591
23490
|
|
|
@@ -23714,7 +23613,7 @@ const DatePickerMixin = (subclass) =>
|
|
|
23714
23613
|
|
|
23715
23614
|
if (oldValue !== undefined) {
|
|
23716
23615
|
// Validate only if `value` changes after initialization.
|
|
23717
|
-
this.
|
|
23616
|
+
this.validate();
|
|
23718
23617
|
}
|
|
23719
23618
|
}
|
|
23720
23619
|
} else {
|
|
@@ -23741,7 +23640,6 @@ const DatePickerMixin = (subclass) =>
|
|
|
23741
23640
|
selectedDate,
|
|
23742
23641
|
showWeekNumbers,
|
|
23743
23642
|
isDateDisabled,
|
|
23744
|
-
enteredDate,
|
|
23745
23643
|
) {
|
|
23746
23644
|
if (overlayContent) {
|
|
23747
23645
|
overlayContent.i18n = i18n;
|
|
@@ -23752,7 +23650,6 @@ const DatePickerMixin = (subclass) =>
|
|
|
23752
23650
|
overlayContent.selectedDate = selectedDate;
|
|
23753
23651
|
overlayContent.showWeekNumbers = showWeekNumbers;
|
|
23754
23652
|
overlayContent.isDateDisabled = isDateDisabled;
|
|
23755
|
-
overlayContent.enteredDate = enteredDate;
|
|
23756
23653
|
}
|
|
23757
23654
|
}
|
|
23758
23655
|
|
|
@@ -23882,7 +23779,7 @@ const DatePickerMixin = (subclass) =>
|
|
|
23882
23779
|
// Needed in case the value was not changed: open and close dropdown,
|
|
23883
23780
|
// especially on outside click. On Esc key press, do not validate.
|
|
23884
23781
|
if (!this.value && !this._keyboardActive) {
|
|
23885
|
-
this.
|
|
23782
|
+
this.validate();
|
|
23886
23783
|
}
|
|
23887
23784
|
}
|
|
23888
23785
|
|
|
@@ -24074,32 +23971,15 @@ const DatePickerMixin = (subclass) =>
|
|
|
24074
23971
|
this.open();
|
|
24075
23972
|
}
|
|
24076
23973
|
|
|
24077
|
-
|
|
24078
|
-
|
|
24079
|
-
|
|
24080
|
-
|
|
24081
|
-
this._focusedDate
|
|
24082
|
-
|
|
24083
|
-
|
|
24084
|
-
|
|
24085
|
-
|
|
24086
|
-
this.__setEnteredDate(parsedDate);
|
|
24087
|
-
}
|
|
24088
|
-
|
|
24089
|
-
/**
|
|
24090
|
-
* @param {Date} date
|
|
24091
|
-
* @private
|
|
24092
|
-
*/
|
|
24093
|
-
__setEnteredDate(date) {
|
|
24094
|
-
if (date) {
|
|
24095
|
-
if (!dateEquals(this.__enteredDate, date)) {
|
|
24096
|
-
this.__enteredDate = date;
|
|
23974
|
+
if (this._inputElementValue) {
|
|
23975
|
+
const parsedDate = this.__parseDate(this._inputElementValue);
|
|
23976
|
+
if (parsedDate) {
|
|
23977
|
+
this._ignoreFocusedDateChange = true;
|
|
23978
|
+
if (!dateEquals(parsedDate, this._focusedDate)) {
|
|
23979
|
+
this._focusedDate = parsedDate;
|
|
23980
|
+
}
|
|
23981
|
+
this._ignoreFocusedDateChange = false;
|
|
24097
23982
|
}
|
|
24098
|
-
} else if (this.__enteredDate != null) {
|
|
24099
|
-
// Do not override initial undefined value with null
|
|
24100
|
-
// to avoid triggering a Lit update that can cause
|
|
24101
|
-
// other scheduled properties to flush too early.
|
|
24102
|
-
this.__enteredDate = null;
|
|
24103
23983
|
}
|
|
24104
23984
|
}
|
|
24105
23985
|
|
|
@@ -24383,7 +24263,6 @@ class DatePicker extends DatePickerMixin(InputControlMixin(ThemableMixin(Element
|
|
|
24383
24263
|
|
|
24384
24264
|
/** @private */
|
|
24385
24265
|
_onVaadinOverlayClose(e) {
|
|
24386
|
-
// Prevent closing the overlay on label element click
|
|
24387
24266
|
if (e.detail.sourceEvent && e.detail.sourceEvent.composedPath().includes(this)) {
|
|
24388
24267
|
e.preventDefault();
|
|
24389
24268
|
}
|
|
@@ -24420,51 +24299,6 @@ const HelperFilters = class {
|
|
|
24420
24299
|
this.filterDraw = createEvent(this, "filterDraw", 7);
|
|
24421
24300
|
this.filterSelection = createEvent(this, "filterSelection", 7);
|
|
24422
24301
|
this.filterSelectionReset = createEvent(this, "filterSelectionReset", 7);
|
|
24423
|
-
/**
|
|
24424
|
-
* Check if show the filter option by id
|
|
24425
|
-
*/
|
|
24426
|
-
this.showFilterId = true;
|
|
24427
|
-
/**
|
|
24428
|
-
* Choose if filter by draw ID or ticket ID. By default is draw ID.
|
|
24429
|
-
*/
|
|
24430
|
-
this.activateTicketSearch = false;
|
|
24431
|
-
/**
|
|
24432
|
-
* Game ID
|
|
24433
|
-
*/
|
|
24434
|
-
this.gameId = '';
|
|
24435
|
-
/**
|
|
24436
|
-
* Player ID
|
|
24437
|
-
*/
|
|
24438
|
-
this.playerId = '';
|
|
24439
|
-
/**
|
|
24440
|
-
* Session ID
|
|
24441
|
-
*/
|
|
24442
|
-
this.session = '';
|
|
24443
|
-
/**
|
|
24444
|
-
* Instead of customEvents the widget triggers postMessages
|
|
24445
|
-
*/
|
|
24446
|
-
this.postMessage = false;
|
|
24447
|
-
/**
|
|
24448
|
-
* Language
|
|
24449
|
-
*/
|
|
24450
|
-
this.language = 'en';
|
|
24451
|
-
/**
|
|
24452
|
-
* Notifies if the quick filters from tickets are active
|
|
24453
|
-
*/
|
|
24454
|
-
this.quickFiltersActive = false;
|
|
24455
|
-
/**
|
|
24456
|
-
* Client custom styling via string
|
|
24457
|
-
*/
|
|
24458
|
-
this.clientStyling = '';
|
|
24459
|
-
/**
|
|
24460
|
-
* Client custom styling via url content
|
|
24461
|
-
*/
|
|
24462
|
-
this.clientStylingUrlContent = '';
|
|
24463
|
-
this.showFilterModal = false;
|
|
24464
|
-
this.showClearButton = false;
|
|
24465
|
-
this.filterData = {};
|
|
24466
|
-
this.filterDataReset = { ticketDrawId: '', filterFromCalendar: '', filterToCalendar: '' };
|
|
24467
|
-
this.limitStylingAppends = false;
|
|
24468
24302
|
this.handleTicketDrawId = (event) => {
|
|
24469
24303
|
const inputElement = event.target;
|
|
24470
24304
|
this.filterData.ticketDrawId = inputElement.value;
|
|
@@ -24491,6 +24325,22 @@ const HelperFilters = class {
|
|
|
24491
24325
|
this.stylingContainer.prepend(cssFile);
|
|
24492
24326
|
}, 1);
|
|
24493
24327
|
};
|
|
24328
|
+
this.showFilterId = true;
|
|
24329
|
+
this.activateTicketSearch = false;
|
|
24330
|
+
this.gameId = '';
|
|
24331
|
+
this.playerId = '';
|
|
24332
|
+
this.session = '';
|
|
24333
|
+
this.postMessage = false;
|
|
24334
|
+
this.language = 'en';
|
|
24335
|
+
this.quickFiltersActive = false;
|
|
24336
|
+
this.clientStyling = '';
|
|
24337
|
+
this.clientStylingUrlContent = '';
|
|
24338
|
+
this.translationUrl = undefined;
|
|
24339
|
+
this.showFilterModal = false;
|
|
24340
|
+
this.showClearButton = false;
|
|
24341
|
+
this.filterData = {};
|
|
24342
|
+
this.filterDataReset = { ticketDrawId: '', filterFromCalendar: '', filterToCalendar: '' };
|
|
24343
|
+
this.limitStylingAppends = false;
|
|
24494
24344
|
}
|
|
24495
24345
|
componentWillLoad() {
|
|
24496
24346
|
if (this.translationUrl) {
|
|
@@ -24570,19 +24420,6 @@ const HelperModal = class {
|
|
|
24570
24420
|
constructor(hostRef) {
|
|
24571
24421
|
registerInstance(this, hostRef);
|
|
24572
24422
|
this.cancel = createEvent(this, "modalCloseEvent", 7);
|
|
24573
|
-
/**
|
|
24574
|
-
* Toggles if the helper is visible or not
|
|
24575
|
-
*/
|
|
24576
|
-
this.visible = true;
|
|
24577
|
-
/**
|
|
24578
|
-
* Client custom styling via string
|
|
24579
|
-
*/
|
|
24580
|
-
this.clientStyling = '';
|
|
24581
|
-
/**
|
|
24582
|
-
* Client custom styling via url content
|
|
24583
|
-
*/
|
|
24584
|
-
this.clientStylingUrlContent = '';
|
|
24585
|
-
this.limitStylingAppends = false;
|
|
24586
24423
|
this.userAgent = window.navigator.userAgent;
|
|
24587
24424
|
this.setClientStyling = () => {
|
|
24588
24425
|
let sheet = document.createElement('style');
|
|
@@ -24596,8 +24433,13 @@ const HelperModal = class {
|
|
|
24596
24433
|
this.stylingContainer.prepend(cssFile);
|
|
24597
24434
|
}, 1);
|
|
24598
24435
|
};
|
|
24599
|
-
|
|
24600
|
-
|
|
24436
|
+
this.titleModal = undefined;
|
|
24437
|
+
this.visible = true;
|
|
24438
|
+
this.clientStyling = '';
|
|
24439
|
+
this.clientStylingUrlContent = '';
|
|
24440
|
+
this.limitStylingAppends = false;
|
|
24441
|
+
}
|
|
24442
|
+
handleHelperModalClose() {
|
|
24601
24443
|
this.visible = false;
|
|
24602
24444
|
this.cancel.emit();
|
|
24603
24445
|
}
|
|
@@ -24755,22 +24597,17 @@ const HelperTabStyle0 = helperTabCss;
|
|
|
24755
24597
|
const HelperTab = class {
|
|
24756
24598
|
constructor(hostRef) {
|
|
24757
24599
|
registerInstance(this, hostRef);
|
|
24758
|
-
/**
|
|
24759
|
-
* Selected index
|
|
24760
|
-
*/
|
|
24761
24600
|
this.selectedIndex = 0;
|
|
24762
|
-
|
|
24763
|
-
|
|
24764
|
-
*/
|
|
24601
|
+
this.cmsEndpoint = undefined;
|
|
24602
|
+
this.mbSource = undefined;
|
|
24765
24603
|
this.clientStyling = '';
|
|
24766
|
-
/**
|
|
24767
|
-
* Client custom styling via url content
|
|
24768
|
-
*/
|
|
24769
24604
|
this.clientStylingUrl = '';
|
|
24770
|
-
|
|
24771
|
-
|
|
24772
|
-
|
|
24605
|
+
this.lowNumber = undefined;
|
|
24606
|
+
this.highNumber = undefined;
|
|
24607
|
+
this.minimumAllowed = undefined;
|
|
24608
|
+
this.maxinumAllowed = undefined;
|
|
24773
24609
|
this.language = 'en';
|
|
24610
|
+
this.translationUrl = undefined;
|
|
24774
24611
|
this.tabContent = '';
|
|
24775
24612
|
}
|
|
24776
24613
|
handleClientStylingChange(newValue, oldValue) {
|
|
@@ -24840,38 +24677,22 @@ const HelperTabsStyle0 = helperTabsCss;
|
|
|
24840
24677
|
const HelperTabs = class {
|
|
24841
24678
|
constructor(hostRef) {
|
|
24842
24679
|
registerInstance(this, hostRef);
|
|
24843
|
-
/**
|
|
24844
|
-
* Tell me if it is disabled
|
|
24845
|
-
*/
|
|
24846
24680
|
this.disabled = false;
|
|
24847
|
-
|
|
24848
|
-
* Tell me what tab is selected
|
|
24849
|
-
*/
|
|
24681
|
+
this.label = undefined;
|
|
24850
24682
|
this.selected = false;
|
|
24851
|
-
|
|
24852
|
-
* Default selected index
|
|
24853
|
-
*/
|
|
24683
|
+
this.cmsEndpoint = undefined;
|
|
24854
24684
|
this.selectedIndex = 0;
|
|
24855
|
-
/**
|
|
24856
|
-
* Tabs details
|
|
24857
|
-
*/
|
|
24858
24685
|
this.tabs = [{ label: 'How to Play' }, { label: 'About' }, { label: 'FAQs' }];
|
|
24859
|
-
/**
|
|
24860
|
-
* Client custom styling via string
|
|
24861
|
-
*/
|
|
24862
24686
|
this.clientStyling = '';
|
|
24863
|
-
|
|
24864
|
-
* Client custom styling via url
|
|
24865
|
-
*/
|
|
24687
|
+
this.mbSource = undefined;
|
|
24866
24688
|
this.clientStylingurl = '';
|
|
24867
|
-
/**
|
|
24868
|
-
* Client custom styling via url content
|
|
24869
|
-
*/
|
|
24870
24689
|
this.clientStylingUrl = '';
|
|
24871
|
-
|
|
24872
|
-
|
|
24873
|
-
|
|
24690
|
+
this.lowNumber = undefined;
|
|
24691
|
+
this.highNumber = undefined;
|
|
24692
|
+
this.minimumAllowed = undefined;
|
|
24693
|
+
this.maxinumAllowed = undefined;
|
|
24874
24694
|
this.language = 'en';
|
|
24695
|
+
this.translationUrl = undefined;
|
|
24875
24696
|
}
|
|
24876
24697
|
connectedCallback() {
|
|
24877
24698
|
}
|
|
@@ -24920,31 +24741,6 @@ const LotteryBullet = class {
|
|
|
24920
24741
|
constructor(hostRef) {
|
|
24921
24742
|
registerInstance(this, hostRef);
|
|
24922
24743
|
this.bulletEvent = createEvent(this, "lotteryBulletSelection", 7);
|
|
24923
|
-
/**
|
|
24924
|
-
* Value of the bullet
|
|
24925
|
-
*/
|
|
24926
|
-
this.value = '0';
|
|
24927
|
-
/**
|
|
24928
|
-
* Marks if the bullet should be selectable
|
|
24929
|
-
*/
|
|
24930
|
-
this.selectable = true;
|
|
24931
|
-
/**
|
|
24932
|
-
* Marks if the bullet should be selected
|
|
24933
|
-
*/
|
|
24934
|
-
this.isSelected = false;
|
|
24935
|
-
/**
|
|
24936
|
-
* Marks if the number is bonus number.
|
|
24937
|
-
*/
|
|
24938
|
-
this.isBonus = false;
|
|
24939
|
-
/**
|
|
24940
|
-
* Client custom styling via string
|
|
24941
|
-
*/
|
|
24942
|
-
this.clientStyling = '';
|
|
24943
|
-
/**
|
|
24944
|
-
* Client custom styling via url content
|
|
24945
|
-
*/
|
|
24946
|
-
this.clientStylingUrlContent = '';
|
|
24947
|
-
this.limitStylingAppends = false;
|
|
24948
24744
|
this.select = () => {
|
|
24949
24745
|
if (this.selectable) {
|
|
24950
24746
|
this.isSelected = !this.isSelected;
|
|
@@ -24966,6 +24762,13 @@ const LotteryBullet = class {
|
|
|
24966
24762
|
this.stylingContainer.prepend(cssFile);
|
|
24967
24763
|
}, 1);
|
|
24968
24764
|
};
|
|
24765
|
+
this.value = '0';
|
|
24766
|
+
this.selectable = true;
|
|
24767
|
+
this.isSelected = false;
|
|
24768
|
+
this.isBonus = false;
|
|
24769
|
+
this.clientStyling = '';
|
|
24770
|
+
this.clientStylingUrlContent = '';
|
|
24771
|
+
this.limitStylingAppends = false;
|
|
24969
24772
|
}
|
|
24970
24773
|
componentDidRender() {
|
|
24971
24774
|
// start custom styling area
|
|
@@ -25071,74 +24874,42 @@ const LotteryDrawResultsStyle0 = lotteryDrawResultsCss;
|
|
|
25071
24874
|
const LotteryDrawResults = class {
|
|
25072
24875
|
constructor(hostRef) {
|
|
25073
24876
|
registerInstance(this, hostRef);
|
|
25074
|
-
|
|
25075
|
-
|
|
25076
|
-
|
|
24877
|
+
this.ticketDrawDetails = [];
|
|
24878
|
+
this.ticketDrawDetailsFlag = true;
|
|
24879
|
+
this.setClientStyling = () => {
|
|
24880
|
+
let sheet = document.createElement('style');
|
|
24881
|
+
sheet.innerHTML = this.clientStyling;
|
|
24882
|
+
this.stylingContainer.prepend(sheet);
|
|
24883
|
+
};
|
|
24884
|
+
this.setClientStylingURL = () => {
|
|
24885
|
+
let cssFile = document.createElement('style');
|
|
24886
|
+
setTimeout(() => {
|
|
24887
|
+
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
24888
|
+
this.stylingContainer.prepend(cssFile);
|
|
24889
|
+
}, 1);
|
|
24890
|
+
};
|
|
24891
|
+
this.endpoint = undefined;
|
|
24892
|
+
this.gameId = undefined;
|
|
25077
24893
|
this.language = 'en';
|
|
25078
|
-
|
|
25079
|
-
* Shows only the last draw
|
|
25080
|
-
*/
|
|
24894
|
+
this.playerId = undefined;
|
|
25081
24895
|
this.drawMode = false;
|
|
25082
|
-
/**
|
|
25083
|
-
* The drawID (option)
|
|
25084
|
-
*/
|
|
25085
24896
|
this.drawId = '';
|
|
25086
|
-
/**
|
|
25087
|
-
* The game name
|
|
25088
|
-
*/
|
|
25089
24897
|
this.gameName = '';
|
|
25090
|
-
/**
|
|
25091
|
-
* The ticket submission date
|
|
25092
|
-
*/
|
|
25093
24898
|
this.ticketDate = '';
|
|
25094
|
-
/**
|
|
25095
|
-
* The ticket status
|
|
25096
|
-
*/
|
|
25097
24899
|
this.ticketStatus = '';
|
|
25098
|
-
/**
|
|
25099
|
-
* The ticket id
|
|
25100
|
-
*/
|
|
25101
24900
|
this.ticketId = '';
|
|
25102
|
-
/**
|
|
25103
|
-
* The ticket amount
|
|
25104
|
-
*/
|
|
25105
24901
|
this.ticketAmount = '';
|
|
25106
|
-
/**
|
|
25107
|
-
* The ticket currency
|
|
25108
|
-
*/
|
|
25109
24902
|
this.ticketCurrency = '';
|
|
25110
|
-
/**
|
|
25111
|
-
* The ticket is multiplier or not
|
|
25112
|
-
*/
|
|
25113
24903
|
this.ticketMultiplier = false;
|
|
25114
|
-
|
|
25115
|
-
* The ticket draw count
|
|
25116
|
-
*/
|
|
24904
|
+
this.ticketMultiplierNum = undefined;
|
|
25117
24905
|
this.ticketDrawCount = 0;
|
|
25118
|
-
/**
|
|
25119
|
-
* The ticket winning numbers
|
|
25120
|
-
*/
|
|
25121
24906
|
this.ticketNumbers = '';
|
|
25122
|
-
/**
|
|
25123
|
-
* The session id
|
|
25124
|
-
*/
|
|
25125
24907
|
this.sessionId = '';
|
|
25126
|
-
/**
|
|
25127
|
-
* Client custom styling via string
|
|
25128
|
-
*/
|
|
25129
24908
|
this.clientStyling = '';
|
|
25130
|
-
/**
|
|
25131
|
-
* Client custom styling via url content
|
|
25132
|
-
*/
|
|
25133
24909
|
this.clientStylingUrlContent = '';
|
|
25134
|
-
/**
|
|
25135
|
-
* Data showing the ticket's draw results details
|
|
25136
|
-
*/
|
|
25137
24910
|
this.ticketDrawData = '';
|
|
25138
|
-
/**
|
|
25139
|
-
* the filter value
|
|
25140
|
-
*/
|
|
25141
24911
|
this.tabValue = '';
|
|
24912
|
+
this.translationUrl = undefined;
|
|
25142
24913
|
this.multiplier = 3;
|
|
25143
24914
|
this.isLoading = true;
|
|
25144
24915
|
this.hasErrors = false;
|
|
@@ -25148,20 +24919,7 @@ const LotteryDrawResults = class {
|
|
|
25148
24919
|
this.ticketDraws = [];
|
|
25149
24920
|
this.toggleDrawer = [false];
|
|
25150
24921
|
this.limitStylingAppends = false;
|
|
25151
|
-
this.
|
|
25152
|
-
this.ticketDrawDetailsFlag = true;
|
|
25153
|
-
this.setClientStyling = () => {
|
|
25154
|
-
let sheet = document.createElement('style');
|
|
25155
|
-
sheet.innerHTML = this.clientStyling;
|
|
25156
|
-
this.stylingContainer.prepend(sheet);
|
|
25157
|
-
};
|
|
25158
|
-
this.setClientStylingURL = () => {
|
|
25159
|
-
let cssFile = document.createElement('style');
|
|
25160
|
-
setTimeout(() => {
|
|
25161
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
25162
|
-
this.stylingContainer.prepend(cssFile);
|
|
25163
|
-
}, 1);
|
|
25164
|
-
};
|
|
24922
|
+
this.drawData = undefined;
|
|
25165
24923
|
}
|
|
25166
24924
|
componentWillLoad() {
|
|
25167
24925
|
if (this.translationUrl) {
|
|
@@ -25351,29 +25109,6 @@ const LotteryDrawResultsHistoryStyle0 = lotteryDrawResultsHistoryCss;
|
|
|
25351
25109
|
const LotteryDrawResultsHistory = class {
|
|
25352
25110
|
constructor(hostRef) {
|
|
25353
25111
|
registerInstance(this, hostRef);
|
|
25354
|
-
/**
|
|
25355
|
-
*Language
|
|
25356
|
-
*/
|
|
25357
|
-
this.language = 'en';
|
|
25358
|
-
/**
|
|
25359
|
-
* Client custom styling via string
|
|
25360
|
-
*/
|
|
25361
|
-
this.clientStyling = '';
|
|
25362
|
-
/**
|
|
25363
|
-
* Client custom styling via url content
|
|
25364
|
-
*/
|
|
25365
|
-
this.clientStylingUrlContent = '';
|
|
25366
|
-
this.drawData = [];
|
|
25367
|
-
this.winningDataSetsData = [''];
|
|
25368
|
-
this.dateFiltersFrom = '';
|
|
25369
|
-
this.dateFiltersTo = '';
|
|
25370
|
-
this.isLoading = false;
|
|
25371
|
-
this.noResults = false;
|
|
25372
|
-
this.limitStylingAppends = false;
|
|
25373
|
-
this.activeIndex = 0;
|
|
25374
|
-
this.totalResults = 0;
|
|
25375
|
-
this.limit = 5;
|
|
25376
|
-
this.offset = 0;
|
|
25377
25112
|
this.isReset = false;
|
|
25378
25113
|
this.getDrawsData = () => {
|
|
25379
25114
|
this.isLoading = true;
|
|
@@ -25443,6 +25178,23 @@ const LotteryDrawResultsHistory = class {
|
|
|
25443
25178
|
this.stylingContainer.prepend(cssFile);
|
|
25444
25179
|
}, 1);
|
|
25445
25180
|
};
|
|
25181
|
+
this.endpoint = undefined;
|
|
25182
|
+
this.gameId = undefined;
|
|
25183
|
+
this.language = 'en';
|
|
25184
|
+
this.clientStyling = '';
|
|
25185
|
+
this.clientStylingUrlContent = '';
|
|
25186
|
+
this.translationUrl = undefined;
|
|
25187
|
+
this.drawData = [];
|
|
25188
|
+
this.winningDataSetsData = [''];
|
|
25189
|
+
this.dateFiltersFrom = '';
|
|
25190
|
+
this.dateFiltersTo = '';
|
|
25191
|
+
this.isLoading = false;
|
|
25192
|
+
this.noResults = false;
|
|
25193
|
+
this.limitStylingAppends = false;
|
|
25194
|
+
this.activeIndex = 0;
|
|
25195
|
+
this.totalResults = 0;
|
|
25196
|
+
this.limit = 5;
|
|
25197
|
+
this.offset = 0;
|
|
25446
25198
|
}
|
|
25447
25199
|
filtersHandler(event) {
|
|
25448
25200
|
if (event.detail.ticketDrawId) {
|
|
@@ -25506,19 +25258,6 @@ const LotteryGameDetailsStyle0 = lotteryGameDetailsCss;
|
|
|
25506
25258
|
const LotteryGameDetails = class {
|
|
25507
25259
|
constructor(hostRef) {
|
|
25508
25260
|
registerInstance(this, hostRef);
|
|
25509
|
-
/**
|
|
25510
|
-
* Client custom styling via string
|
|
25511
|
-
*/
|
|
25512
|
-
this.clientStyling = '';
|
|
25513
|
-
/**
|
|
25514
|
-
* Client custom styling via url content
|
|
25515
|
-
*/
|
|
25516
|
-
this.clientStylingUrlContent = '';
|
|
25517
|
-
/**
|
|
25518
|
-
* Language
|
|
25519
|
-
*/
|
|
25520
|
-
this.language = 'en';
|
|
25521
|
-
this.limitStylingAppends = false;
|
|
25522
25261
|
this.setClientStyling = () => {
|
|
25523
25262
|
let sheet = document.createElement('style');
|
|
25524
25263
|
sheet.innerHTML = this.clientStyling;
|
|
@@ -25531,6 +25270,15 @@ const LotteryGameDetails = class {
|
|
|
25531
25270
|
this.stylingContainer.prepend(cssFile);
|
|
25532
25271
|
}, 1);
|
|
25533
25272
|
};
|
|
25273
|
+
this.clientStyling = '';
|
|
25274
|
+
this.clientStylingUrlContent = '';
|
|
25275
|
+
this.lowNumber = undefined;
|
|
25276
|
+
this.highNumber = undefined;
|
|
25277
|
+
this.minimumAllowed = undefined;
|
|
25278
|
+
this.maxinumAllowed = undefined;
|
|
25279
|
+
this.language = 'en';
|
|
25280
|
+
this.translationUrl = undefined;
|
|
25281
|
+
this.limitStylingAppends = false;
|
|
25534
25282
|
}
|
|
25535
25283
|
componentDidRender() {
|
|
25536
25284
|
// start custom styling area
|
|
@@ -25676,38 +25424,6 @@ const LotteryGamePage = class {
|
|
|
25676
25424
|
registerInstance(this, hostRef);
|
|
25677
25425
|
this.goBackEvent = createEvent(this, "goBackEvent", 7);
|
|
25678
25426
|
this.goToLobbyEvent = createEvent(this, "goToLobbyEvent", 7);
|
|
25679
|
-
/**
|
|
25680
|
-
* Language of the widget
|
|
25681
|
-
*/
|
|
25682
|
-
this.language = 'en';
|
|
25683
|
-
/**
|
|
25684
|
-
* Client custom styling via string
|
|
25685
|
-
*/
|
|
25686
|
-
this.clientStyling = '';
|
|
25687
|
-
/**
|
|
25688
|
-
* Client custom styling via url
|
|
25689
|
-
*/
|
|
25690
|
-
this.clientStylingurl = '';
|
|
25691
|
-
/**
|
|
25692
|
-
* Translation via url
|
|
25693
|
-
*/
|
|
25694
|
-
this.translationUrl = '';
|
|
25695
|
-
this.clientStylingUrlContent = '';
|
|
25696
|
-
this.tickets = [];
|
|
25697
|
-
this.mainTickets = [];
|
|
25698
|
-
this.secondaryTickets = [];
|
|
25699
|
-
this.tabIndex = 0;
|
|
25700
|
-
this.hasErrors = false;
|
|
25701
|
-
this.totalAmount = 0;
|
|
25702
|
-
this.successVisible = false;
|
|
25703
|
-
this.isLoggedIn = false;
|
|
25704
|
-
this.loginModalVisible = false;
|
|
25705
|
-
this.limitStylingAppends = false;
|
|
25706
|
-
this.isLoading = false;
|
|
25707
|
-
this.showSubmitError = false;
|
|
25708
|
-
this.submitError = '';
|
|
25709
|
-
this.showApiError = false;
|
|
25710
|
-
this.apiError = '';
|
|
25711
25427
|
// @TODO fix any type
|
|
25712
25428
|
this.userAgent = window.navigator.userAgent;
|
|
25713
25429
|
this.quickPick = false;
|
|
@@ -25733,6 +25449,38 @@ const LotteryGamePage = class {
|
|
|
25733
25449
|
console.log('error ', err);
|
|
25734
25450
|
});
|
|
25735
25451
|
};
|
|
25452
|
+
this.endpoint = undefined;
|
|
25453
|
+
this.endpointTicket = undefined;
|
|
25454
|
+
this.gameId = undefined;
|
|
25455
|
+
this.playerId = undefined;
|
|
25456
|
+
this.sessionId = undefined;
|
|
25457
|
+
this.language = 'en';
|
|
25458
|
+
this.backgroundUrl = undefined;
|
|
25459
|
+
this.clientStyling = '';
|
|
25460
|
+
this.clientStylingurl = '';
|
|
25461
|
+
this.translationUrl = '';
|
|
25462
|
+
this.clientStylingUrlContent = '';
|
|
25463
|
+
this.tickets = [];
|
|
25464
|
+
this.mainTickets = [];
|
|
25465
|
+
this.secondaryTickets = [];
|
|
25466
|
+
this.tabIndex = 0;
|
|
25467
|
+
this.hasErrors = false;
|
|
25468
|
+
this.totalAmount = 0;
|
|
25469
|
+
this.successVisible = false;
|
|
25470
|
+
this.daysRemaining = undefined;
|
|
25471
|
+
this.hoursRemaining = undefined;
|
|
25472
|
+
this.minutesRemaining = undefined;
|
|
25473
|
+
this.secondsRemaining = undefined;
|
|
25474
|
+
this.nextDate = undefined;
|
|
25475
|
+
this.isLoggedIn = false;
|
|
25476
|
+
this.loginModalVisible = false;
|
|
25477
|
+
this.limitStylingAppends = false;
|
|
25478
|
+
this.isLoading = false;
|
|
25479
|
+
this.showSubmitError = false;
|
|
25480
|
+
this.submitError = '';
|
|
25481
|
+
this.showApiError = false;
|
|
25482
|
+
this.apiError = '';
|
|
25483
|
+
this.translationData = undefined;
|
|
25736
25484
|
}
|
|
25737
25485
|
handleNewTranslations() {
|
|
25738
25486
|
this.isLoading = true;
|
|
@@ -26067,88 +25815,41 @@ const LotteryGrid = class {
|
|
|
26067
25815
|
this.gridFilledEvent = createEvent(this, "gridFilled", 7);
|
|
26068
25816
|
this.gridDirtyEvent = createEvent(this, "gridDirty", 7);
|
|
26069
25817
|
this.gridClearAllEvent = createEvent(this, "gridClearAllEvent", 7);
|
|
26070
|
-
|
|
26071
|
-
|
|
26072
|
-
|
|
25818
|
+
this.selectedCounter = 0;
|
|
25819
|
+
this.setClientStyling = () => {
|
|
25820
|
+
let sheet = document.createElement('style');
|
|
25821
|
+
sheet.innerHTML = this.clientStyling;
|
|
25822
|
+
this.stylingContainer.prepend(sheet);
|
|
25823
|
+
};
|
|
25824
|
+
this.setClientStylingURL = () => {
|
|
25825
|
+
let cssFile = document.createElement('style');
|
|
25826
|
+
setTimeout(() => {
|
|
25827
|
+
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
25828
|
+
this.stylingContainer.prepend(cssFile);
|
|
25829
|
+
}, 1);
|
|
25830
|
+
};
|
|
25831
|
+
this.ticketId = undefined;
|
|
26073
25832
|
this.totalNumbers = 0;
|
|
26074
|
-
|
|
26075
|
-
* Number of maximum bullets that can be selected
|
|
26076
|
-
*/
|
|
25833
|
+
this.gameId = undefined;
|
|
26077
25834
|
this.maximumAllowed = 7;
|
|
26078
|
-
/**
|
|
26079
|
-
* Minimum allowed of bullets
|
|
26080
|
-
*/
|
|
26081
25835
|
this.minimumAllowed = 3;
|
|
26082
|
-
|
|
26083
|
-
* Allows the user to select numbers on the grid
|
|
26084
|
-
*/
|
|
25836
|
+
this.numberRange = undefined;
|
|
26085
25837
|
this.selectable = true;
|
|
26086
|
-
/**
|
|
26087
|
-
* Numbers that should be showed as selected on the grid (as a string of those numbers e.g. '1,2,3,4,5,6')
|
|
26088
|
-
*/
|
|
26089
25838
|
this.selectedNumbers = '';
|
|
26090
|
-
/**
|
|
26091
|
-
* Bonus numbers that should be showed as selected on the grid (as a string of those numbers e.g. '1')
|
|
26092
|
-
*/
|
|
26093
25839
|
this.secondaryNumbers = '';
|
|
26094
|
-
/**
|
|
26095
|
-
* Show only selected numbers
|
|
26096
|
-
*/
|
|
26097
25840
|
this.displaySelected = false;
|
|
26098
|
-
/**
|
|
26099
|
-
* Language
|
|
26100
|
-
*/
|
|
26101
25841
|
this.language = 'en';
|
|
26102
|
-
|
|
26103
|
-
* Personalize grid for ticket
|
|
26104
|
-
*/
|
|
25842
|
+
this.gridIndex = undefined;
|
|
26105
25843
|
this.gridType = '';
|
|
26106
|
-
/**
|
|
26107
|
-
* Client custom styling via string
|
|
26108
|
-
*/
|
|
26109
25844
|
this.clientStyling = '';
|
|
26110
|
-
/**
|
|
26111
|
-
* Client custom styling via url content
|
|
26112
|
-
*/
|
|
26113
25845
|
this.clientStylingUrlContent = '';
|
|
26114
|
-
/**
|
|
26115
|
-
* Maximum number of the grid
|
|
26116
|
-
*/
|
|
26117
25846
|
this.highNumber = 47;
|
|
26118
|
-
/**
|
|
26119
|
-
* Lowest number of the grid
|
|
26120
|
-
*/
|
|
26121
25847
|
this.lowNumber = 1;
|
|
26122
|
-
/**
|
|
26123
|
-
* Type of selection
|
|
26124
|
-
*/
|
|
26125
25848
|
this.selectionType = 'mainSelection';
|
|
26126
|
-
/**
|
|
26127
|
-
* Allows partial quickpick or not
|
|
26128
|
-
*/
|
|
26129
25849
|
this.partialQuickpickAvailable = false;
|
|
26130
|
-
/**
|
|
26131
|
-
* main selection numbers
|
|
26132
|
-
*/
|
|
26133
25850
|
this.numbers = [];
|
|
26134
|
-
/**
|
|
26135
|
-
* Bonus selection numbers
|
|
26136
|
-
*/
|
|
26137
25851
|
this.bonusNumbers = [];
|
|
26138
25852
|
this.limitStylingAppends = false;
|
|
26139
|
-
this.selectedCounter = 0;
|
|
26140
|
-
this.setClientStyling = () => {
|
|
26141
|
-
let sheet = document.createElement('style');
|
|
26142
|
-
sheet.innerHTML = this.clientStyling;
|
|
26143
|
-
this.stylingContainer.prepend(sheet);
|
|
26144
|
-
};
|
|
26145
|
-
this.setClientStylingURL = () => {
|
|
26146
|
-
let cssFile = document.createElement('style');
|
|
26147
|
-
setTimeout(() => {
|
|
26148
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
26149
|
-
this.stylingContainer.prepend(cssFile);
|
|
26150
|
-
}, 1);
|
|
26151
|
-
};
|
|
26152
25853
|
}
|
|
26153
25854
|
connectedCallback() {
|
|
26154
25855
|
let selected = [];
|
|
@@ -26397,58 +26098,8 @@ const LotteryPagination = class {
|
|
|
26397
26098
|
constructor(hostRef) {
|
|
26398
26099
|
registerInstance(this, hostRef);
|
|
26399
26100
|
this.hpPageChange = createEvent(this, "hpPageChange", 7);
|
|
26400
|
-
/**
|
|
26401
|
-
* Next page string value - determines if the next page is disabled or active
|
|
26402
|
-
*/
|
|
26403
|
-
this.nextPage = false;
|
|
26404
|
-
/**
|
|
26405
|
-
* Previous page string value - determines if the previous page is disabled or active
|
|
26406
|
-
*/
|
|
26407
|
-
this.prevPage = false;
|
|
26408
|
-
/**
|
|
26409
|
-
* The received offset
|
|
26410
|
-
*/
|
|
26411
|
-
this.offset = 0;
|
|
26412
|
-
/**
|
|
26413
|
-
* The received limit for the number of pages
|
|
26414
|
-
*/
|
|
26415
|
-
this.limit = 10;
|
|
26416
|
-
/**
|
|
26417
|
-
* The received total number of pages
|
|
26418
|
-
*/
|
|
26419
|
-
this.total = 1;
|
|
26420
|
-
/**
|
|
26421
|
-
* Language
|
|
26422
|
-
*/
|
|
26423
|
-
this.language = 'en';
|
|
26424
|
-
/**
|
|
26425
|
-
* Client custom styling via string
|
|
26426
|
-
*/
|
|
26427
|
-
this.clientStyling = '';
|
|
26428
|
-
/**
|
|
26429
|
-
* Client custom styling via url content
|
|
26430
|
-
*/
|
|
26431
|
-
this.clientStylingUrlContent = '';
|
|
26432
|
-
this.isReset = false;
|
|
26433
|
-
/**
|
|
26434
|
-
* Component working variable for last page
|
|
26435
|
-
*/
|
|
26436
|
-
this.lastPage = false;
|
|
26437
|
-
/**
|
|
26438
|
-
* Component working variable for prvious page
|
|
26439
|
-
*/
|
|
26440
|
-
this.previousPage = false;
|
|
26441
|
-
/**
|
|
26442
|
-
* In component working variable for the array of pages
|
|
26443
|
-
*/
|
|
26444
|
-
this.pagesArray = [];
|
|
26445
|
-
/**
|
|
26446
|
-
* In component working variable for last page
|
|
26447
|
-
*/
|
|
26448
|
-
this.endInt = 0;
|
|
26449
26101
|
this.userAgent = window.navigator.userAgent;
|
|
26450
26102
|
this.currentPage = 1;
|
|
26451
|
-
this.limitStylingAppends = false;
|
|
26452
26103
|
/**
|
|
26453
26104
|
* Navigation logic
|
|
26454
26105
|
*/
|
|
@@ -26526,6 +26177,27 @@ const LotteryPagination = class {
|
|
|
26526
26177
|
this.stylingContainer.prepend(cssFile);
|
|
26527
26178
|
}, 1);
|
|
26528
26179
|
};
|
|
26180
|
+
this.nextPage = false;
|
|
26181
|
+
this.prevPage = false;
|
|
26182
|
+
this.offset = 0;
|
|
26183
|
+
this.limit = 10;
|
|
26184
|
+
this.total = 1;
|
|
26185
|
+
this.language = 'en';
|
|
26186
|
+
this.clientStyling = '';
|
|
26187
|
+
this.clientStylingUrlContent = '';
|
|
26188
|
+
this.arrowsActive = undefined;
|
|
26189
|
+
this.secondaryArrowsActive = undefined;
|
|
26190
|
+
this.numberedNavActive = undefined;
|
|
26191
|
+
this.isReset = false;
|
|
26192
|
+
this.translationUrl = undefined;
|
|
26193
|
+
this.offsetInt = undefined;
|
|
26194
|
+
this.lastPage = false;
|
|
26195
|
+
this.previousPage = false;
|
|
26196
|
+
this.limitInt = undefined;
|
|
26197
|
+
this.totalInt = undefined;
|
|
26198
|
+
this.pagesArray = [];
|
|
26199
|
+
this.endInt = 0;
|
|
26200
|
+
this.limitStylingAppends = false;
|
|
26529
26201
|
}
|
|
26530
26202
|
componentWillLoad() {
|
|
26531
26203
|
if (this.translationUrl) {
|
|
@@ -26952,7 +26624,6 @@ const ItemMixin = (superClass) =>
|
|
|
26952
26624
|
value: false,
|
|
26953
26625
|
reflectToAttribute: true,
|
|
26954
26626
|
observer: '_selectedChanged',
|
|
26955
|
-
sync: true,
|
|
26956
26627
|
},
|
|
26957
26628
|
|
|
26958
26629
|
/** @private */
|
|
@@ -27376,7 +27047,6 @@ const ListMixin = (superClass) =>
|
|
|
27376
27047
|
type: Number,
|
|
27377
27048
|
reflectToAttribute: true,
|
|
27378
27049
|
notify: true,
|
|
27379
|
-
sync: true,
|
|
27380
27050
|
},
|
|
27381
27051
|
|
|
27382
27052
|
/**
|
|
@@ -28270,7 +27940,7 @@ const SelectBaseMixin = (superClass) =>
|
|
|
28270
27940
|
super._requiredChanged(required);
|
|
28271
27941
|
|
|
28272
27942
|
if (required === false) {
|
|
28273
|
-
this.
|
|
27943
|
+
this.validate();
|
|
28274
27944
|
}
|
|
28275
27945
|
}
|
|
28276
27946
|
|
|
@@ -28334,7 +28004,7 @@ const SelectBaseMixin = (superClass) =>
|
|
|
28334
28004
|
// a change event is scheduled, as validation will be
|
|
28335
28005
|
// triggered by `__dispatchChange()` in that case.
|
|
28336
28006
|
if (oldValue !== undefined && !this.__dispatchChangePending) {
|
|
28337
|
-
this.
|
|
28007
|
+
this.validate();
|
|
28338
28008
|
}
|
|
28339
28009
|
}
|
|
28340
28010
|
|
|
@@ -28432,7 +28102,7 @@ const SelectBaseMixin = (superClass) =>
|
|
|
28432
28102
|
// will be triggered by `__dispatchChange()` in that case.
|
|
28433
28103
|
// Also, skip validation when closed on Escape or Tab keys.
|
|
28434
28104
|
if (!this.__dispatchChangePending && !this._keyboardActive) {
|
|
28435
|
-
this.
|
|
28105
|
+
this.validate();
|
|
28436
28106
|
}
|
|
28437
28107
|
}
|
|
28438
28108
|
|
|
@@ -28505,11 +28175,6 @@ const SelectBaseMixin = (superClass) =>
|
|
|
28505
28175
|
*/
|
|
28506
28176
|
__appendValueItemElement(itemElement, parent) {
|
|
28507
28177
|
parent.appendChild(itemElement);
|
|
28508
|
-
// Trigger observer that sets aria-selected attribute
|
|
28509
|
-
// so that we can then synchronously remove it below.
|
|
28510
|
-
if (itemElement.performUpdate) {
|
|
28511
|
-
itemElement.performUpdate();
|
|
28512
|
-
}
|
|
28513
28178
|
itemElement.removeAttribute('tabindex');
|
|
28514
28179
|
itemElement.removeAttribute('aria-selected');
|
|
28515
28180
|
itemElement.removeAttribute('role');
|
|
@@ -28645,7 +28310,7 @@ const SelectBaseMixin = (superClass) =>
|
|
|
28645
28310
|
// Do not validate when focusout is caused by document
|
|
28646
28311
|
// losing focus, which happens on browser tab switch.
|
|
28647
28312
|
if (!focused && document.hasFocus()) {
|
|
28648
|
-
this.
|
|
28313
|
+
this.validate();
|
|
28649
28314
|
}
|
|
28650
28315
|
}
|
|
28651
28316
|
|
|
@@ -28690,7 +28355,7 @@ const SelectBaseMixin = (superClass) =>
|
|
|
28690
28355
|
await this.updateComplete;
|
|
28691
28356
|
}
|
|
28692
28357
|
|
|
28693
|
-
this.
|
|
28358
|
+
this.validate();
|
|
28694
28359
|
this.dispatchEvent(new CustomEvent('change', { bubbles: true }));
|
|
28695
28360
|
this.__dispatchChangePending = false;
|
|
28696
28361
|
}
|
|
@@ -28936,34 +28601,29 @@ const LotteryTicket = class {
|
|
|
28936
28601
|
this.drawMultiplierChange = createEvent(this, "drawMultiplierChange", 7);
|
|
28937
28602
|
this.lineMultiplierChange = createEvent(this, "lineMultiplierChange", 7);
|
|
28938
28603
|
this.betTypeChange = createEvent(this, "betTypeChange", 7);
|
|
28939
|
-
|
|
28940
|
-
|
|
28941
|
-
|
|
28604
|
+
this.setClientStyling = () => {
|
|
28605
|
+
let sheet = document.createElement('style');
|
|
28606
|
+
sheet.innerHTML = this.clientStyling;
|
|
28607
|
+
this.stylingContainer.prepend(sheet);
|
|
28608
|
+
};
|
|
28609
|
+
this.setClientStylingURL = () => {
|
|
28610
|
+
let cssFile = document.createElement('style');
|
|
28611
|
+
setTimeout(() => {
|
|
28612
|
+
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
28613
|
+
this.stylingContainer.prepend(cssFile);
|
|
28614
|
+
}, 1);
|
|
28615
|
+
};
|
|
28616
|
+
this.endpoint = undefined;
|
|
28617
|
+
this.gameId = undefined;
|
|
28942
28618
|
this.numberOfGrids = 1;
|
|
28943
|
-
/**
|
|
28944
|
-
* Option to have the ticket registered for multiple draws
|
|
28945
|
-
*/
|
|
28946
28619
|
this.multipleDraws = true;
|
|
28947
|
-
|
|
28948
|
-
* Shows the reset button
|
|
28949
|
-
*/
|
|
28620
|
+
this.ticketId = undefined;
|
|
28950
28621
|
this.resetButton = false;
|
|
28951
|
-
/**
|
|
28952
|
-
* Shows the auto-pick button
|
|
28953
|
-
*/
|
|
28954
28622
|
this.autoPick = false;
|
|
28955
|
-
/**
|
|
28956
|
-
* Language
|
|
28957
|
-
*/
|
|
28958
28623
|
this.language = 'en';
|
|
28959
|
-
/**
|
|
28960
|
-
* Client custom styling via string
|
|
28961
|
-
*/
|
|
28962
28624
|
this.clientStyling = '';
|
|
28963
|
-
/**
|
|
28964
|
-
* Client custom styling via url content
|
|
28965
|
-
*/
|
|
28966
28625
|
this.clientStylingUrlContent = '';
|
|
28626
|
+
this.translationUrl = undefined;
|
|
28967
28627
|
this.isLoading = true;
|
|
28968
28628
|
this.hasErrors = false;
|
|
28969
28629
|
this.ticketDone = [];
|
|
@@ -28989,18 +28649,6 @@ const LotteryTicket = class {
|
|
|
28989
28649
|
this.secondaryMaximumAllowed = 1;
|
|
28990
28650
|
this.minimumAllowed = 6;
|
|
28991
28651
|
this.secondaryMinimumAllowed = 1;
|
|
28992
|
-
this.setClientStyling = () => {
|
|
28993
|
-
let sheet = document.createElement('style');
|
|
28994
|
-
sheet.innerHTML = this.clientStyling;
|
|
28995
|
-
this.stylingContainer.prepend(sheet);
|
|
28996
|
-
};
|
|
28997
|
-
this.setClientStylingURL = () => {
|
|
28998
|
-
let cssFile = document.createElement('style');
|
|
28999
|
-
setTimeout(() => {
|
|
29000
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
29001
|
-
this.stylingContainer.prepend(cssFile);
|
|
29002
|
-
}, 1);
|
|
29003
|
-
};
|
|
29004
28652
|
}
|
|
29005
28653
|
handleLineMultiplierChange(newValue) {
|
|
29006
28654
|
this.grids = Array.from({ length: newValue }, (_, i) => i + 1);
|
|
@@ -29308,71 +28956,35 @@ const LotteryTicketController = class {
|
|
|
29308
28956
|
constructor(hostRef) {
|
|
29309
28957
|
registerInstance(this, hostRef);
|
|
29310
28958
|
this.deleteTicketEvent = createEvent(this, "deleteTicket", 7);
|
|
29311
|
-
|
|
29312
|
-
|
|
29313
|
-
|
|
28959
|
+
this.setClientStyling = () => {
|
|
28960
|
+
let sheet = document.createElement('style');
|
|
28961
|
+
sheet.innerHTML = this.clientStyling;
|
|
28962
|
+
this.stylingContainer.prepend(sheet);
|
|
28963
|
+
};
|
|
28964
|
+
this.setClientStylingURL = () => {
|
|
28965
|
+
let cssFile = document.createElement('style');
|
|
28966
|
+
setTimeout(() => {
|
|
28967
|
+
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
28968
|
+
this.stylingContainer.prepend(cssFile);
|
|
28969
|
+
}, 1);
|
|
28970
|
+
};
|
|
29314
28971
|
this.endpoint = '';
|
|
29315
|
-
/**
|
|
29316
|
-
* Ticket number
|
|
29317
|
-
*/
|
|
29318
28972
|
this.ticketId = 1;
|
|
29319
|
-
|
|
29320
|
-
|
|
29321
|
-
*/
|
|
28973
|
+
this.ticketDescription = undefined;
|
|
28974
|
+
this.gameId = undefined;
|
|
29322
28975
|
this.postMessage = false;
|
|
29323
|
-
/**
|
|
29324
|
-
* Name of the event emitter by the action button
|
|
29325
|
-
*/
|
|
29326
28976
|
this.eventName = 'deleteTicketAction';
|
|
29327
|
-
/**
|
|
29328
|
-
* Collapsed
|
|
29329
|
-
*/
|
|
29330
28977
|
this.collapsed = true;
|
|
29331
|
-
/**
|
|
29332
|
-
* Number of grids?
|
|
29333
|
-
*/
|
|
29334
28978
|
this.numberOfGrids = 1;
|
|
29335
|
-
/**
|
|
29336
|
-
* This toggles if the last ticket added should be expanded or not
|
|
29337
|
-
*/
|
|
29338
28979
|
this.last = false;
|
|
29339
|
-
/**
|
|
29340
|
-
* Language
|
|
29341
|
-
*/
|
|
29342
28980
|
this.language = 'en';
|
|
29343
|
-
/**
|
|
29344
|
-
* Shows the auto-pick button
|
|
29345
|
-
*/
|
|
29346
28981
|
this.autoPick = false;
|
|
29347
|
-
/**
|
|
29348
|
-
* Shows the reset button
|
|
29349
|
-
*/
|
|
29350
28982
|
this.resetButton = false;
|
|
29351
|
-
/**
|
|
29352
|
-
* Number of ticket controllers
|
|
29353
|
-
*/
|
|
29354
28983
|
this.totalControllers = 1;
|
|
29355
|
-
/**
|
|
29356
|
-
* Client custom styling via string
|
|
29357
|
-
*/
|
|
29358
28984
|
this.clientStyling = '';
|
|
29359
|
-
/**
|
|
29360
|
-
* Client custom styling via url content
|
|
29361
|
-
*/
|
|
29362
28985
|
this.clientStylingUrlContent = '';
|
|
28986
|
+
this.translationUrl = undefined;
|
|
29363
28987
|
this.limitStylingAppends = false;
|
|
29364
|
-
this.setClientStyling = () => {
|
|
29365
|
-
let sheet = document.createElement('style');
|
|
29366
|
-
sheet.innerHTML = this.clientStyling;
|
|
29367
|
-
this.stylingContainer.prepend(sheet);
|
|
29368
|
-
};
|
|
29369
|
-
this.setClientStylingURL = () => {
|
|
29370
|
-
let cssFile = document.createElement('style');
|
|
29371
|
-
setTimeout(() => {
|
|
29372
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
29373
|
-
this.stylingContainer.prepend(cssFile);
|
|
29374
|
-
}, 1);
|
|
29375
|
-
};
|
|
29376
28988
|
}
|
|
29377
28989
|
// @TODO fix the `any` type
|
|
29378
28990
|
helperAccordionActionHandler() {
|