@everymatrix/helper-filters 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-filters.cjs.js +2 -2
- package/dist/cjs/helper-filters_2.cjs.entry.js +192 -316
- package/dist/cjs/{index-f886624e.js → index-71fae404.js} +68 -203
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/helper-filters/helper-filters.js +16 -67
- package/dist/esm/helper-filters.js +3 -3
- package/dist/esm/helper-filters_2.entry.js +192 -316
- package/dist/esm/{index-db278f52.js → index-0fad714f.js} +68 -203
- package/dist/esm/loader.js +2 -2
- package/dist/helper-filters/helper-filters.esm.js +1 -1
- package/dist/helper-filters/{p-a7e051df.entry.js → p-185df28e.entry.js} +143 -145
- package/dist/helper-filters/p-a730a9fa.js +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/helper-filters/.stencil/packages/stencil/helper-filters/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/helper-filters/.stencil/packages/stencil/helper-filters/stencil.config.dev.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/package.json +1 -1
- package/dist/helper-filters/p-01cd08da.js +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-filters/.stencil/packages/stencil/helper-filters/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-filters/.stencil/packages/stencil/helper-filters/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/helper-filters/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/helper-filters/.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/helper-filters/.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/helper-filters/.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-71fae404.js');
|
|
6
6
|
|
|
7
7
|
const DEFAULT_LANGUAGE = 'en';
|
|
8
8
|
const SUPPORTED_LANGUAGES = ['ro', 'en', 'hr'];
|
|
@@ -84,55 +84,13 @@ const getTranslations = (data) => {
|
|
|
84
84
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
85
85
|
*/
|
|
86
86
|
|
|
87
|
-
|
|
88
|
-
window.Vaadin.featureFlags ||= {};
|
|
89
|
-
|
|
90
|
-
function dashToCamelCase$1(dash) {
|
|
91
|
-
return dash.replace(/-[a-z]/gu, (m) => m[1].toUpperCase());
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
const experimentalMap = {};
|
|
95
|
-
|
|
96
|
-
function defineCustomElement(CustomElement, version = '24.6.5') {
|
|
87
|
+
function defineCustomElement(CustomElement, version = '24.5.10') {
|
|
97
88
|
Object.defineProperty(CustomElement, 'version', {
|
|
98
89
|
get() {
|
|
99
90
|
return version;
|
|
100
91
|
},
|
|
101
92
|
});
|
|
102
93
|
|
|
103
|
-
if (CustomElement.experimental) {
|
|
104
|
-
const featureFlagKey =
|
|
105
|
-
typeof CustomElement.experimental === 'string'
|
|
106
|
-
? CustomElement.experimental
|
|
107
|
-
: `${dashToCamelCase$1(CustomElement.is.split('-').slice(1).join('-'))}Component`;
|
|
108
|
-
|
|
109
|
-
if (!window.Vaadin.featureFlags[featureFlagKey] && !experimentalMap[featureFlagKey]) {
|
|
110
|
-
// Add setter to define experimental component when it's set to true
|
|
111
|
-
experimentalMap[featureFlagKey] = new Set();
|
|
112
|
-
experimentalMap[featureFlagKey].add(CustomElement);
|
|
113
|
-
|
|
114
|
-
Object.defineProperty(window.Vaadin.featureFlags, featureFlagKey, {
|
|
115
|
-
get() {
|
|
116
|
-
return experimentalMap[featureFlagKey].size === 0;
|
|
117
|
-
},
|
|
118
|
-
set(value) {
|
|
119
|
-
if (!!value && experimentalMap[featureFlagKey].size > 0) {
|
|
120
|
-
experimentalMap[featureFlagKey].forEach((elementClass) => {
|
|
121
|
-
customElements.define(elementClass.is, elementClass);
|
|
122
|
-
});
|
|
123
|
-
experimentalMap[featureFlagKey].clear();
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
});
|
|
127
|
-
|
|
128
|
-
return;
|
|
129
|
-
} else if (experimentalMap[featureFlagKey]) {
|
|
130
|
-
// Allow to register multiple components with single flag
|
|
131
|
-
experimentalMap[featureFlagKey].add(CustomElement);
|
|
132
|
-
return;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
94
|
const defined = customElements.get(CustomElement.is);
|
|
137
95
|
if (!defined) {
|
|
138
96
|
customElements.define(CustomElement.is, CustomElement);
|
|
@@ -2216,7 +2174,7 @@ registerStyles(
|
|
|
2216
2174
|
const fontIcons = i$3`
|
|
2217
2175
|
@font-face {
|
|
2218
2176
|
font-family: 'lumo-icons';
|
|
2219
|
-
src: url(data:application/font-woff;charset=utf-8;base64,
|
|
2177
|
+
src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3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ucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
|
|
2220
2178
|
format('woff');
|
|
2221
2179
|
font-weight: normal;
|
|
2222
2180
|
font-style: normal;
|
|
@@ -2246,27 +2204,25 @@ const fontIcons = i$3`
|
|
|
2246
2204
|
--lumo-icons-cog: '\\ea15';
|
|
2247
2205
|
--lumo-icons-cross: '\\ea16';
|
|
2248
2206
|
--lumo-icons-download: '\\ea17';
|
|
2249
|
-
--lumo-icons-
|
|
2250
|
-
--lumo-icons-
|
|
2251
|
-
--lumo-icons-
|
|
2252
|
-
--lumo-icons-
|
|
2253
|
-
--lumo-icons-eye: '\\ea1c';
|
|
2254
|
-
--lumo-icons-
|
|
2255
|
-
--lumo-icons-
|
|
2256
|
-
--lumo-icons-
|
|
2257
|
-
--lumo-icons-
|
|
2258
|
-
--lumo-icons-
|
|
2259
|
-
--lumo-icons-
|
|
2260
|
-
--lumo-icons-
|
|
2261
|
-
--lumo-icons-
|
|
2262
|
-
--lumo-icons-
|
|
2263
|
-
--lumo-icons-
|
|
2264
|
-
--lumo-icons-
|
|
2265
|
-
--lumo-icons-
|
|
2266
|
-
--lumo-icons-
|
|
2267
|
-
--lumo-icons-
|
|
2268
|
-
--lumo-icons-upload: '\\ea2b';
|
|
2269
|
-
--lumo-icons-user: '\\ea2c';
|
|
2207
|
+
--lumo-icons-dropdown: '\\ea18';
|
|
2208
|
+
--lumo-icons-edit: '\\ea19';
|
|
2209
|
+
--lumo-icons-error: '\\ea1a';
|
|
2210
|
+
--lumo-icons-eye: '\\ea1b';
|
|
2211
|
+
--lumo-icons-eye-disabled: '\\ea1c';
|
|
2212
|
+
--lumo-icons-menu: '\\ea1d';
|
|
2213
|
+
--lumo-icons-minus: '\\ea1e';
|
|
2214
|
+
--lumo-icons-ordered-list: '\\ea1f';
|
|
2215
|
+
--lumo-icons-phone: '\\ea20';
|
|
2216
|
+
--lumo-icons-photo: '\\ea21';
|
|
2217
|
+
--lumo-icons-play: '\\ea22';
|
|
2218
|
+
--lumo-icons-plus: '\\ea23';
|
|
2219
|
+
--lumo-icons-redo: '\\ea24';
|
|
2220
|
+
--lumo-icons-reload: '\\ea25';
|
|
2221
|
+
--lumo-icons-search: '\\ea26';
|
|
2222
|
+
--lumo-icons-undo: '\\ea27';
|
|
2223
|
+
--lumo-icons-unordered-list: '\\ea28';
|
|
2224
|
+
--lumo-icons-upload: '\\ea29';
|
|
2225
|
+
--lumo-icons-user: '\\ea2a';
|
|
2270
2226
|
}
|
|
2271
2227
|
`;
|
|
2272
2228
|
|
|
@@ -11265,7 +11221,6 @@ const OverlayMixin = (superClass) =>
|
|
|
11265
11221
|
notify: true,
|
|
11266
11222
|
observer: '_openedChanged',
|
|
11267
11223
|
reflectToAttribute: true,
|
|
11268
|
-
sync: true,
|
|
11269
11224
|
},
|
|
11270
11225
|
|
|
11271
11226
|
/**
|
|
@@ -11274,7 +11229,6 @@ const OverlayMixin = (superClass) =>
|
|
|
11274
11229
|
*/
|
|
11275
11230
|
owner: {
|
|
11276
11231
|
type: Object,
|
|
11277
|
-
sync: true,
|
|
11278
11232
|
},
|
|
11279
11233
|
|
|
11280
11234
|
/**
|
|
@@ -11282,7 +11236,6 @@ const OverlayMixin = (superClass) =>
|
|
|
11282
11236
|
*/
|
|
11283
11237
|
model: {
|
|
11284
11238
|
type: Object,
|
|
11285
|
-
sync: true,
|
|
11286
11239
|
},
|
|
11287
11240
|
|
|
11288
11241
|
/**
|
|
@@ -11296,7 +11249,6 @@ const OverlayMixin = (superClass) =>
|
|
|
11296
11249
|
*/
|
|
11297
11250
|
renderer: {
|
|
11298
11251
|
type: Object,
|
|
11299
|
-
sync: true,
|
|
11300
11252
|
},
|
|
11301
11253
|
|
|
11302
11254
|
/**
|
|
@@ -11309,7 +11261,6 @@ const OverlayMixin = (superClass) =>
|
|
|
11309
11261
|
value: false,
|
|
11310
11262
|
reflectToAttribute: true,
|
|
11311
11263
|
observer: '_modelessChanged',
|
|
11312
|
-
sync: true,
|
|
11313
11264
|
},
|
|
11314
11265
|
|
|
11315
11266
|
/**
|
|
@@ -11321,7 +11272,6 @@ const OverlayMixin = (superClass) =>
|
|
|
11321
11272
|
type: Boolean,
|
|
11322
11273
|
reflectToAttribute: true,
|
|
11323
11274
|
observer: '_hiddenChanged',
|
|
11324
|
-
sync: true,
|
|
11325
11275
|
},
|
|
11326
11276
|
|
|
11327
11277
|
/**
|
|
@@ -11332,7 +11282,6 @@ const OverlayMixin = (superClass) =>
|
|
|
11332
11282
|
type: Boolean,
|
|
11333
11283
|
value: false,
|
|
11334
11284
|
reflectToAttribute: true,
|
|
11335
|
-
sync: true,
|
|
11336
11285
|
},
|
|
11337
11286
|
};
|
|
11338
11287
|
}
|
|
@@ -14931,7 +14880,6 @@ const DisabledMixin = dedupingMixin(
|
|
|
14931
14880
|
value: false,
|
|
14932
14881
|
observer: '_disabledChanged',
|
|
14933
14882
|
reflectToAttribute: true,
|
|
14934
|
-
sync: true,
|
|
14935
14883
|
},
|
|
14936
14884
|
};
|
|
14937
14885
|
}
|
|
@@ -16088,21 +16036,6 @@ class InfiniteScroller extends HTMLElement {
|
|
|
16088
16036
|
}
|
|
16089
16037
|
}
|
|
16090
16038
|
|
|
16091
|
-
/** @protected */
|
|
16092
|
-
disconnectedCallback() {
|
|
16093
|
-
if (this._debouncerScrollFinish) {
|
|
16094
|
-
this._debouncerScrollFinish.cancel();
|
|
16095
|
-
}
|
|
16096
|
-
|
|
16097
|
-
if (this._debouncerUpdateClones) {
|
|
16098
|
-
this._debouncerUpdateClones.cancel();
|
|
16099
|
-
}
|
|
16100
|
-
|
|
16101
|
-
if (this.__pendingFinishInit) {
|
|
16102
|
-
cancelAnimationFrame(this.__pendingFinishInit);
|
|
16103
|
-
}
|
|
16104
|
-
}
|
|
16105
|
-
|
|
16106
16039
|
/**
|
|
16107
16040
|
* Force the scroller to update clones after a reset, without
|
|
16108
16041
|
* waiting for the debouncer to resolve.
|
|
@@ -16250,9 +16183,8 @@ class InfiniteScroller extends HTMLElement {
|
|
|
16250
16183
|
}
|
|
16251
16184
|
});
|
|
16252
16185
|
|
|
16253
|
-
|
|
16186
|
+
requestAnimationFrame(() => {
|
|
16254
16187
|
this._finishInit();
|
|
16255
|
-
this.__pendingFinishInit = null;
|
|
16256
16188
|
});
|
|
16257
16189
|
}
|
|
16258
16190
|
|
|
@@ -16267,10 +16199,6 @@ class InfiniteScroller extends HTMLElement {
|
|
|
16267
16199
|
itemWrapper.instance = this._createElement();
|
|
16268
16200
|
itemWrapper.appendChild(itemWrapper.instance);
|
|
16269
16201
|
|
|
16270
|
-
if (itemWrapper.instance.performUpdate) {
|
|
16271
|
-
itemWrapper.instance.performUpdate();
|
|
16272
|
-
}
|
|
16273
|
-
|
|
16274
16202
|
Object.keys(tmpInstance).forEach((prop) => {
|
|
16275
16203
|
itemWrapper.instance[prop] = tmpInstance[prop];
|
|
16276
16204
|
});
|
|
@@ -18288,10 +18216,6 @@ const MonthCalendarMixin = (superClass) =>
|
|
|
18288
18216
|
value: () => false,
|
|
18289
18217
|
},
|
|
18290
18218
|
|
|
18291
|
-
enteredDate: {
|
|
18292
|
-
type: Date,
|
|
18293
|
-
},
|
|
18294
|
-
|
|
18295
18219
|
disabled: {
|
|
18296
18220
|
type: Boolean,
|
|
18297
18221
|
reflectToAttribute: true,
|
|
@@ -18311,11 +18235,6 @@ const MonthCalendarMixin = (superClass) =>
|
|
|
18311
18235
|
_notTapping: {
|
|
18312
18236
|
type: Boolean,
|
|
18313
18237
|
},
|
|
18314
|
-
|
|
18315
|
-
/** @private */
|
|
18316
|
-
__hasFocus: {
|
|
18317
|
-
type: Boolean,
|
|
18318
|
-
},
|
|
18319
18238
|
};
|
|
18320
18239
|
}
|
|
18321
18240
|
|
|
@@ -18335,12 +18254,6 @@ const MonthCalendarMixin = (superClass) =>
|
|
|
18335
18254
|
addListener(this.$.monthGrid, 'tap', this._handleTap.bind(this));
|
|
18336
18255
|
}
|
|
18337
18256
|
|
|
18338
|
-
/** @override */
|
|
18339
|
-
_setFocused(focused) {
|
|
18340
|
-
super._setFocused(focused);
|
|
18341
|
-
this.__hasFocus = focused;
|
|
18342
|
-
}
|
|
18343
|
-
|
|
18344
18257
|
/**
|
|
18345
18258
|
* Returns true if all the dates in the month are out of the allowed range
|
|
18346
18259
|
* @protected
|
|
@@ -18636,7 +18549,7 @@ class MonthCalendar extends MonthCalendarMixin(ThemableMixin(PolymerElement)) {
|
|
|
18636
18549
|
<template is="dom-repeat" items="[[week]]">
|
|
18637
18550
|
<td
|
|
18638
18551
|
role="gridcell"
|
|
18639
|
-
part$="[[__getDatePart(item, focusedDate, selectedDate, minDate, maxDate, isDateDisabled
|
|
18552
|
+
part$="[[__getDatePart(item, focusedDate, selectedDate, minDate, maxDate, isDateDisabled)]]"
|
|
18640
18553
|
date="[[item]]"
|
|
18641
18554
|
tabindex$="[[__getDayTabindex(item, focusedDate)]]"
|
|
18642
18555
|
disabled$="[[__isDayDisabled(item, minDate, maxDate, isDateDisabled)]]"
|
|
@@ -18694,7 +18607,7 @@ class MonthCalendar extends MonthCalendarMixin(ThemableMixin(PolymerElement)) {
|
|
|
18694
18607
|
|
|
18695
18608
|
/** @private */
|
|
18696
18609
|
// eslint-disable-next-line @typescript-eslint/max-params
|
|
18697
|
-
__getDatePart(date, focusedDate, selectedDate, minDate, maxDate, isDateDisabled
|
|
18610
|
+
__getDatePart(date, focusedDate, selectedDate, minDate, maxDate, isDateDisabled) {
|
|
18698
18611
|
const result = ['date'];
|
|
18699
18612
|
const greaterThanToday = date > normalizeDate(new Date());
|
|
18700
18613
|
const lessThanToday = date < normalizeDate(new Date());
|
|
@@ -18703,7 +18616,7 @@ class MonthCalendar extends MonthCalendarMixin(ThemableMixin(PolymerElement)) {
|
|
|
18703
18616
|
result.push('disabled');
|
|
18704
18617
|
}
|
|
18705
18618
|
|
|
18706
|
-
if (
|
|
18619
|
+
if (this.__isDayFocused(date, focusedDate)) {
|
|
18707
18620
|
result.push('focused');
|
|
18708
18621
|
}
|
|
18709
18622
|
|
|
@@ -18726,6 +18639,11 @@ class MonthCalendar extends MonthCalendarMixin(ThemableMixin(PolymerElement)) {
|
|
|
18726
18639
|
return result.join(' ');
|
|
18727
18640
|
}
|
|
18728
18641
|
|
|
18642
|
+
/** @private */
|
|
18643
|
+
__isDayFocused(date, focusedDate) {
|
|
18644
|
+
return dateEquals(date, focusedDate);
|
|
18645
|
+
}
|
|
18646
|
+
|
|
18729
18647
|
/** @private */
|
|
18730
18648
|
__isDaySelected(date, selectedDate) {
|
|
18731
18649
|
return dateEquals(date, selectedDate);
|
|
@@ -18756,7 +18674,11 @@ class MonthCalendar extends MonthCalendarMixin(ThemableMixin(PolymerElement)) {
|
|
|
18756
18674
|
|
|
18757
18675
|
/** @private */
|
|
18758
18676
|
__getDayTabindex(date, focusedDate) {
|
|
18759
|
-
|
|
18677
|
+
if (this.__isDayFocused(date, focusedDate)) {
|
|
18678
|
+
return '0';
|
|
18679
|
+
}
|
|
18680
|
+
|
|
18681
|
+
return '-1';
|
|
18760
18682
|
}
|
|
18761
18683
|
}
|
|
18762
18684
|
|
|
@@ -18875,7 +18797,6 @@ const DatePickerOverlayContentMixin = (superClass) =>
|
|
|
18875
18797
|
initialPosition: {
|
|
18876
18798
|
type: Object,
|
|
18877
18799
|
observer: '_initialPositionChanged',
|
|
18878
|
-
sync: true,
|
|
18879
18800
|
},
|
|
18880
18801
|
|
|
18881
18802
|
_originDate: {
|
|
@@ -18943,11 +18864,6 @@ const DatePickerOverlayContentMixin = (superClass) =>
|
|
|
18943
18864
|
type: Function,
|
|
18944
18865
|
},
|
|
18945
18866
|
|
|
18946
|
-
enteredDate: {
|
|
18947
|
-
type: Date,
|
|
18948
|
-
sync: true,
|
|
18949
|
-
},
|
|
18950
|
-
|
|
18951
18867
|
/**
|
|
18952
18868
|
* Input label
|
|
18953
18869
|
*/
|
|
@@ -18975,7 +18891,7 @@ const DatePickerOverlayContentMixin = (superClass) =>
|
|
|
18975
18891
|
|
|
18976
18892
|
static get observers() {
|
|
18977
18893
|
return [
|
|
18978
|
-
'__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled
|
|
18894
|
+
'__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)',
|
|
18979
18895
|
'__updateCancelButton(_cancelButton, i18n)',
|
|
18980
18896
|
'__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)',
|
|
18981
18897
|
'__updateYears(years, selectedDate, _theme)',
|
|
@@ -19163,7 +19079,6 @@ const DatePickerOverlayContentMixin = (superClass) =>
|
|
|
19163
19079
|
ignoreTaps,
|
|
19164
19080
|
theme,
|
|
19165
19081
|
isDateDisabled,
|
|
19166
|
-
enteredDate,
|
|
19167
19082
|
) {
|
|
19168
19083
|
if (calendars && calendars.length) {
|
|
19169
19084
|
calendars.forEach((calendar) => {
|
|
@@ -19175,7 +19090,6 @@ const DatePickerOverlayContentMixin = (superClass) =>
|
|
|
19175
19090
|
calendar.selectedDate = selectedDate;
|
|
19176
19091
|
calendar.showWeekNumbers = showWeekNumbers;
|
|
19177
19092
|
calendar.ignoreTaps = ignoreTaps;
|
|
19178
|
-
calendar.enteredDate = enteredDate;
|
|
19179
19093
|
|
|
19180
19094
|
if (theme) {
|
|
19181
19095
|
calendar.setAttribute('theme', theme);
|
|
@@ -20433,8 +20347,6 @@ const InputMixin = dedupingMixin(
|
|
|
20433
20347
|
if (this.inputElement) {
|
|
20434
20348
|
this.inputElement[this._inputElementValueProperty] = value;
|
|
20435
20349
|
}
|
|
20436
|
-
|
|
20437
|
-
this._hasInputValue = value && value.length > 0;
|
|
20438
20350
|
}
|
|
20439
20351
|
|
|
20440
20352
|
/**
|
|
@@ -21638,22 +21550,6 @@ const ValidateMixin = dedupingMixin(
|
|
|
21638
21550
|
value: false,
|
|
21639
21551
|
},
|
|
21640
21552
|
|
|
21641
|
-
/**
|
|
21642
|
-
* Set to true to enable manual validation mode. This mode disables automatic
|
|
21643
|
-
* constraint validation, allowing you to control the validation process yourself.
|
|
21644
|
-
* You can still trigger constraint validation manually with the `validate()` method
|
|
21645
|
-
* or use `checkValidity()` to assess the component's validity without affecting
|
|
21646
|
-
* the invalid state. In manual validation mode, you can also manipulate
|
|
21647
|
-
* the `invalid` property directly through your application logic without conflicts
|
|
21648
|
-
* with the component's internal validation.
|
|
21649
|
-
*
|
|
21650
|
-
* @attr {boolean} manual-validation
|
|
21651
|
-
*/
|
|
21652
|
-
manualValidation: {
|
|
21653
|
-
type: Boolean,
|
|
21654
|
-
value: false,
|
|
21655
|
-
},
|
|
21656
|
-
|
|
21657
21553
|
/**
|
|
21658
21554
|
* Specifies that the user must fill in a value.
|
|
21659
21555
|
*/
|
|
@@ -21708,14 +21604,6 @@ const ValidateMixin = dedupingMixin(
|
|
|
21708
21604
|
return true;
|
|
21709
21605
|
}
|
|
21710
21606
|
|
|
21711
|
-
/** @protected */
|
|
21712
|
-
_requestValidation() {
|
|
21713
|
-
if (!this.manualValidation) {
|
|
21714
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
21715
|
-
this.validate();
|
|
21716
|
-
}
|
|
21717
|
-
}
|
|
21718
|
-
|
|
21719
21607
|
/**
|
|
21720
21608
|
* Fired whenever the field is validated.
|
|
21721
21609
|
*
|
|
@@ -22145,8 +22033,8 @@ const InputConstraintsMixin = dedupingMixin(
|
|
|
22145
22033
|
const isLastConstraintRemoved = this.__previousHasConstraints && !hasConstraints;
|
|
22146
22034
|
|
|
22147
22035
|
if ((this._hasValue || this.invalid) && hasConstraints) {
|
|
22148
|
-
this.
|
|
22149
|
-
} else if (isLastConstraintRemoved
|
|
22036
|
+
this.validate();
|
|
22037
|
+
} else if (isLastConstraintRemoved) {
|
|
22150
22038
|
this._setInvalid(false);
|
|
22151
22039
|
}
|
|
22152
22040
|
|
|
@@ -22164,7 +22052,7 @@ const InputConstraintsMixin = dedupingMixin(
|
|
|
22164
22052
|
_onChange(event) {
|
|
22165
22053
|
event.stopPropagation();
|
|
22166
22054
|
|
|
22167
|
-
this.
|
|
22055
|
+
this.validate();
|
|
22168
22056
|
|
|
22169
22057
|
this.dispatchEvent(
|
|
22170
22058
|
new CustomEvent('change', {
|
|
@@ -22307,6 +22195,30 @@ const InputControlMixin = (superclass) =>
|
|
|
22307
22195
|
}
|
|
22308
22196
|
}
|
|
22309
22197
|
|
|
22198
|
+
/**
|
|
22199
|
+
* Override an event listener inherited from `InputMixin`
|
|
22200
|
+
* to capture native `change` event and make sure that
|
|
22201
|
+
* a new one is dispatched after validation runs.
|
|
22202
|
+
* @param {Event} event
|
|
22203
|
+
* @protected
|
|
22204
|
+
* @override
|
|
22205
|
+
*/
|
|
22206
|
+
_onChange(event) {
|
|
22207
|
+
event.stopPropagation();
|
|
22208
|
+
|
|
22209
|
+
this.validate();
|
|
22210
|
+
|
|
22211
|
+
this.dispatchEvent(
|
|
22212
|
+
new CustomEvent('change', {
|
|
22213
|
+
detail: {
|
|
22214
|
+
sourceEvent: event,
|
|
22215
|
+
},
|
|
22216
|
+
bubbles: event.bubbles,
|
|
22217
|
+
cancelable: event.cancelable,
|
|
22218
|
+
}),
|
|
22219
|
+
);
|
|
22220
|
+
}
|
|
22221
|
+
|
|
22310
22222
|
/**
|
|
22311
22223
|
* Override a method from `InputMixin`.
|
|
22312
22224
|
* @param {!HTMLElement} input
|
|
@@ -22730,62 +22642,6 @@ class VirtualKeyboardController {
|
|
|
22730
22642
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
22731
22643
|
*/
|
|
22732
22644
|
|
|
22733
|
-
const datePickerI18nDefaults = Object.freeze({
|
|
22734
|
-
monthNames: [
|
|
22735
|
-
'January',
|
|
22736
|
-
'February',
|
|
22737
|
-
'March',
|
|
22738
|
-
'April',
|
|
22739
|
-
'May',
|
|
22740
|
-
'June',
|
|
22741
|
-
'July',
|
|
22742
|
-
'August',
|
|
22743
|
-
'September',
|
|
22744
|
-
'October',
|
|
22745
|
-
'November',
|
|
22746
|
-
'December',
|
|
22747
|
-
],
|
|
22748
|
-
weekdays: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
|
22749
|
-
weekdaysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
|
22750
|
-
firstDayOfWeek: 0,
|
|
22751
|
-
today: 'Today',
|
|
22752
|
-
cancel: 'Cancel',
|
|
22753
|
-
referenceDate: '',
|
|
22754
|
-
formatDate(d) {
|
|
22755
|
-
const yearStr = String(d.year).replace(/\d+/u, (y) => '0000'.substr(y.length) + y);
|
|
22756
|
-
return [d.month + 1, d.day, yearStr].join('/');
|
|
22757
|
-
},
|
|
22758
|
-
parseDate(text) {
|
|
22759
|
-
const parts = text.split('/');
|
|
22760
|
-
const today = new Date();
|
|
22761
|
-
let date,
|
|
22762
|
-
month = today.getMonth(),
|
|
22763
|
-
year = today.getFullYear();
|
|
22764
|
-
|
|
22765
|
-
if (parts.length === 3) {
|
|
22766
|
-
month = parseInt(parts[0]) - 1;
|
|
22767
|
-
date = parseInt(parts[1]);
|
|
22768
|
-
year = parseInt(parts[2]);
|
|
22769
|
-
if (parts[2].length < 3 && year >= 0) {
|
|
22770
|
-
const usedReferenceDate = this.referenceDate ? parseDate(this.referenceDate) : new Date();
|
|
22771
|
-
year = getAdjustedYear(usedReferenceDate, year, month, date);
|
|
22772
|
-
}
|
|
22773
|
-
} else if (parts.length === 2) {
|
|
22774
|
-
month = parseInt(parts[0]) - 1;
|
|
22775
|
-
date = parseInt(parts[1]);
|
|
22776
|
-
} else if (parts.length === 1) {
|
|
22777
|
-
date = parseInt(parts[0]);
|
|
22778
|
-
}
|
|
22779
|
-
|
|
22780
|
-
if (date !== undefined) {
|
|
22781
|
-
return { day: date, month, year };
|
|
22782
|
-
}
|
|
22783
|
-
},
|
|
22784
|
-
formatTitle: (monthName, fullYear) => {
|
|
22785
|
-
return `${monthName} ${fullYear}`;
|
|
22786
|
-
},
|
|
22787
|
-
});
|
|
22788
|
-
|
|
22789
22645
|
/**
|
|
22790
22646
|
* @polymerMixin
|
|
22791
22647
|
* @mixes ControllerMixin
|
|
@@ -22859,10 +22715,7 @@ const DatePickerMixin = (subclass) =>
|
|
|
22859
22715
|
* Set true to prevent the overlay from opening automatically.
|
|
22860
22716
|
* @attr {boolean} auto-open-disabled
|
|
22861
22717
|
*/
|
|
22862
|
-
autoOpenDisabled:
|
|
22863
|
-
type: Boolean,
|
|
22864
|
-
sync: true,
|
|
22865
|
-
},
|
|
22718
|
+
autoOpenDisabled: Boolean,
|
|
22866
22719
|
|
|
22867
22720
|
/**
|
|
22868
22721
|
* Set true to display ISO-8601 week numbers in the calendar. Notice that
|
|
@@ -22983,7 +22836,63 @@ const DatePickerMixin = (subclass) =>
|
|
|
22983
22836
|
i18n: {
|
|
22984
22837
|
type: Object,
|
|
22985
22838
|
sync: true,
|
|
22986
|
-
value: () =>
|
|
22839
|
+
value: () => {
|
|
22840
|
+
return {
|
|
22841
|
+
monthNames: [
|
|
22842
|
+
'January',
|
|
22843
|
+
'February',
|
|
22844
|
+
'March',
|
|
22845
|
+
'April',
|
|
22846
|
+
'May',
|
|
22847
|
+
'June',
|
|
22848
|
+
'July',
|
|
22849
|
+
'August',
|
|
22850
|
+
'September',
|
|
22851
|
+
'October',
|
|
22852
|
+
'November',
|
|
22853
|
+
'December',
|
|
22854
|
+
],
|
|
22855
|
+
weekdays: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
|
22856
|
+
weekdaysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
|
22857
|
+
firstDayOfWeek: 0,
|
|
22858
|
+
today: 'Today',
|
|
22859
|
+
cancel: 'Cancel',
|
|
22860
|
+
referenceDate: '',
|
|
22861
|
+
formatDate(d) {
|
|
22862
|
+
const yearStr = String(d.year).replace(/\d+/u, (y) => '0000'.substr(y.length) + y);
|
|
22863
|
+
return [d.month + 1, d.day, yearStr].join('/');
|
|
22864
|
+
},
|
|
22865
|
+
parseDate(text) {
|
|
22866
|
+
const parts = text.split('/');
|
|
22867
|
+
const today = new Date();
|
|
22868
|
+
let date,
|
|
22869
|
+
month = today.getMonth(),
|
|
22870
|
+
year = today.getFullYear();
|
|
22871
|
+
|
|
22872
|
+
if (parts.length === 3) {
|
|
22873
|
+
month = parseInt(parts[0]) - 1;
|
|
22874
|
+
date = parseInt(parts[1]);
|
|
22875
|
+
year = parseInt(parts[2]);
|
|
22876
|
+
if (parts[2].length < 3 && year >= 0) {
|
|
22877
|
+
const usedReferenceDate = this.referenceDate ? parseDate(this.referenceDate) : new Date();
|
|
22878
|
+
year = getAdjustedYear(usedReferenceDate, year, month, date);
|
|
22879
|
+
}
|
|
22880
|
+
} else if (parts.length === 2) {
|
|
22881
|
+
month = parseInt(parts[0]) - 1;
|
|
22882
|
+
date = parseInt(parts[1]);
|
|
22883
|
+
} else if (parts.length === 1) {
|
|
22884
|
+
date = parseInt(parts[0]);
|
|
22885
|
+
}
|
|
22886
|
+
|
|
22887
|
+
if (date !== undefined) {
|
|
22888
|
+
return { day: date, month, year };
|
|
22889
|
+
}
|
|
22890
|
+
},
|
|
22891
|
+
formatTitle: (monthName, fullYear) => {
|
|
22892
|
+
return `${monthName} ${fullYear}`;
|
|
22893
|
+
},
|
|
22894
|
+
};
|
|
22895
|
+
},
|
|
22987
22896
|
},
|
|
22988
22897
|
|
|
22989
22898
|
/**
|
|
@@ -23068,10 +22977,18 @@ const DatePickerMixin = (subclass) =>
|
|
|
23068
22977
|
sync: true,
|
|
23069
22978
|
},
|
|
23070
22979
|
|
|
23071
|
-
/**
|
|
23072
|
-
|
|
23073
|
-
|
|
23074
|
-
|
|
22980
|
+
/**
|
|
22981
|
+
* In date-picker, unlike other components extending `InputMixin`,
|
|
22982
|
+
* the property indicates true only if the input has been entered by the user.
|
|
22983
|
+
* In the case of programmatic changes, the property is reset to false.
|
|
22984
|
+
* Read more about why this workaround is needed:
|
|
22985
|
+
* https://github.com/vaadin/web-components/issues/5639
|
|
22986
|
+
*
|
|
22987
|
+
* @protected
|
|
22988
|
+
* @override
|
|
22989
|
+
*/
|
|
22990
|
+
_hasInputValue: {
|
|
22991
|
+
type: Boolean,
|
|
23075
22992
|
},
|
|
23076
22993
|
};
|
|
23077
22994
|
}
|
|
@@ -23080,7 +22997,7 @@ const DatePickerMixin = (subclass) =>
|
|
|
23080
22997
|
return [
|
|
23081
22998
|
'_selectedDateChanged(_selectedDate, i18n)',
|
|
23082
22999
|
'_focusedDateChanged(_focusedDate, i18n)',
|
|
23083
|
-
'__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled
|
|
23000
|
+
'__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)',
|
|
23084
23001
|
'__updateOverlayContentTheme(_overlayContent, _theme)',
|
|
23085
23002
|
'__updateOverlayContentFullScreen(_overlayContent, _fullscreen)',
|
|
23086
23003
|
];
|
|
@@ -23098,17 +23015,28 @@ const DatePickerMixin = (subclass) =>
|
|
|
23098
23015
|
this._boundOverlayRenderer = this._overlayRenderer.bind(this);
|
|
23099
23016
|
}
|
|
23100
23017
|
|
|
23101
|
-
/**
|
|
23018
|
+
/**
|
|
23019
|
+
* @override
|
|
23020
|
+
* @protected
|
|
23021
|
+
*/
|
|
23102
23022
|
get _inputElementValue() {
|
|
23103
23023
|
return super._inputElementValue;
|
|
23104
23024
|
}
|
|
23105
23025
|
|
|
23106
|
-
/**
|
|
23026
|
+
/**
|
|
23027
|
+
* The setter is overridden to reset the `_hasInputValue` property
|
|
23028
|
+
* to false when the input element's value is updated programmatically.
|
|
23029
|
+
* In date-picker, `_hasInputValue` is supposed to indicate true only
|
|
23030
|
+
* if the input has been entered by the user.
|
|
23031
|
+
* Read more about why this workaround is needed:
|
|
23032
|
+
* https://github.com/vaadin/web-components/issues/5639
|
|
23033
|
+
*
|
|
23034
|
+
* @override
|
|
23035
|
+
* @protected
|
|
23036
|
+
*/
|
|
23107
23037
|
set _inputElementValue(value) {
|
|
23108
23038
|
super._inputElementValue = value;
|
|
23109
|
-
|
|
23110
|
-
const parsedDate = this.__parseDate(value);
|
|
23111
|
-
this.__setEnteredDate(parsedDate);
|
|
23039
|
+
this._hasInputValue = false;
|
|
23112
23040
|
}
|
|
23113
23041
|
|
|
23114
23042
|
/**
|
|
@@ -23170,7 +23098,7 @@ const DatePickerMixin = (subclass) =>
|
|
|
23170
23098
|
// Do not validate when focusout is caused by document
|
|
23171
23099
|
// losing focus, which happens on browser tab switch.
|
|
23172
23100
|
if (document.hasFocus()) {
|
|
23173
|
-
this.
|
|
23101
|
+
this.validate();
|
|
23174
23102
|
}
|
|
23175
23103
|
}
|
|
23176
23104
|
}
|
|
@@ -23315,8 +23243,13 @@ const DatePickerMixin = (subclass) =>
|
|
|
23315
23243
|
!this._selectedDate || dateAllowed(this._selectedDate, this._minDate, this._maxDate, this.isDateDisabled);
|
|
23316
23244
|
|
|
23317
23245
|
let inputValidity = true;
|
|
23318
|
-
if (this.inputElement
|
|
23319
|
-
|
|
23246
|
+
if (this.inputElement) {
|
|
23247
|
+
if (this.inputElement.checkValidity) {
|
|
23248
|
+
inputValidity = this.inputElement.checkValidity();
|
|
23249
|
+
} else if (this.inputElement.validate) {
|
|
23250
|
+
// Iron-form-elements have the validate API
|
|
23251
|
+
inputValidity = this.inputElement.validate();
|
|
23252
|
+
}
|
|
23320
23253
|
}
|
|
23321
23254
|
|
|
23322
23255
|
return inputValid && isDateValid && inputValidity;
|
|
@@ -23403,10 +23336,10 @@ const DatePickerMixin = (subclass) =>
|
|
|
23403
23336
|
const unparsableValue = this.__unparsableValue;
|
|
23404
23337
|
|
|
23405
23338
|
if (this.__committedValue !== this.value) {
|
|
23406
|
-
this.
|
|
23339
|
+
this.validate();
|
|
23407
23340
|
this.dispatchEvent(new CustomEvent('change', { bubbles: true }));
|
|
23408
23341
|
} else if (this.__committedUnparsableValue !== unparsableValue) {
|
|
23409
|
-
this.
|
|
23342
|
+
this.validate();
|
|
23410
23343
|
this.dispatchEvent(new CustomEvent('unparsable-change'));
|
|
23411
23344
|
}
|
|
23412
23345
|
|
|
@@ -23535,7 +23468,7 @@ const DatePickerMixin = (subclass) =>
|
|
|
23535
23468
|
|
|
23536
23469
|
if (oldValue !== undefined) {
|
|
23537
23470
|
// Validate only if `value` changes after initialization.
|
|
23538
|
-
this.
|
|
23471
|
+
this.validate();
|
|
23539
23472
|
}
|
|
23540
23473
|
}
|
|
23541
23474
|
} else {
|
|
@@ -23562,7 +23495,6 @@ const DatePickerMixin = (subclass) =>
|
|
|
23562
23495
|
selectedDate,
|
|
23563
23496
|
showWeekNumbers,
|
|
23564
23497
|
isDateDisabled,
|
|
23565
|
-
enteredDate,
|
|
23566
23498
|
) {
|
|
23567
23499
|
if (overlayContent) {
|
|
23568
23500
|
overlayContent.i18n = i18n;
|
|
@@ -23573,7 +23505,6 @@ const DatePickerMixin = (subclass) =>
|
|
|
23573
23505
|
overlayContent.selectedDate = selectedDate;
|
|
23574
23506
|
overlayContent.showWeekNumbers = showWeekNumbers;
|
|
23575
23507
|
overlayContent.isDateDisabled = isDateDisabled;
|
|
23576
|
-
overlayContent.enteredDate = enteredDate;
|
|
23577
23508
|
}
|
|
23578
23509
|
}
|
|
23579
23510
|
|
|
@@ -23703,7 +23634,7 @@ const DatePickerMixin = (subclass) =>
|
|
|
23703
23634
|
// Needed in case the value was not changed: open and close dropdown,
|
|
23704
23635
|
// especially on outside click. On Esc key press, do not validate.
|
|
23705
23636
|
if (!this.value && !this._keyboardActive) {
|
|
23706
|
-
this.
|
|
23637
|
+
this.validate();
|
|
23707
23638
|
}
|
|
23708
23639
|
}
|
|
23709
23640
|
|
|
@@ -23895,32 +23826,15 @@ const DatePickerMixin = (subclass) =>
|
|
|
23895
23826
|
this.open();
|
|
23896
23827
|
}
|
|
23897
23828
|
|
|
23898
|
-
|
|
23899
|
-
|
|
23900
|
-
|
|
23901
|
-
|
|
23902
|
-
this._focusedDate
|
|
23903
|
-
|
|
23904
|
-
|
|
23905
|
-
|
|
23906
|
-
|
|
23907
|
-
this.__setEnteredDate(parsedDate);
|
|
23908
|
-
}
|
|
23909
|
-
|
|
23910
|
-
/**
|
|
23911
|
-
* @param {Date} date
|
|
23912
|
-
* @private
|
|
23913
|
-
*/
|
|
23914
|
-
__setEnteredDate(date) {
|
|
23915
|
-
if (date) {
|
|
23916
|
-
if (!dateEquals(this.__enteredDate, date)) {
|
|
23917
|
-
this.__enteredDate = date;
|
|
23829
|
+
if (this._inputElementValue) {
|
|
23830
|
+
const parsedDate = this.__parseDate(this._inputElementValue);
|
|
23831
|
+
if (parsedDate) {
|
|
23832
|
+
this._ignoreFocusedDateChange = true;
|
|
23833
|
+
if (!dateEquals(parsedDate, this._focusedDate)) {
|
|
23834
|
+
this._focusedDate = parsedDate;
|
|
23835
|
+
}
|
|
23836
|
+
this._ignoreFocusedDateChange = false;
|
|
23918
23837
|
}
|
|
23919
|
-
} else if (this.__enteredDate != null) {
|
|
23920
|
-
// Do not override initial undefined value with null
|
|
23921
|
-
// to avoid triggering a Lit update that can cause
|
|
23922
|
-
// other scheduled properties to flush too early.
|
|
23923
|
-
this.__enteredDate = null;
|
|
23924
23838
|
}
|
|
23925
23839
|
}
|
|
23926
23840
|
|
|
@@ -24204,7 +24118,6 @@ class DatePicker extends DatePickerMixin(InputControlMixin(ThemableMixin(Element
|
|
|
24204
24118
|
|
|
24205
24119
|
/** @private */
|
|
24206
24120
|
_onVaadinOverlayClose(e) {
|
|
24207
|
-
// Prevent closing the overlay on label element click
|
|
24208
24121
|
if (e.detail.sourceEvent && e.detail.sourceEvent.composedPath().includes(this)) {
|
|
24209
24122
|
e.preventDefault();
|
|
24210
24123
|
}
|
|
@@ -24241,51 +24154,6 @@ const HelperFilters = class {
|
|
|
24241
24154
|
this.filterDraw = index.createEvent(this, "filterDraw", 7);
|
|
24242
24155
|
this.filterSelection = index.createEvent(this, "filterSelection", 7);
|
|
24243
24156
|
this.filterSelectionReset = index.createEvent(this, "filterSelectionReset", 7);
|
|
24244
|
-
/**
|
|
24245
|
-
* Check if show the filter option by id
|
|
24246
|
-
*/
|
|
24247
|
-
this.showFilterId = true;
|
|
24248
|
-
/**
|
|
24249
|
-
* Choose if filter by draw ID or ticket ID. By default is draw ID.
|
|
24250
|
-
*/
|
|
24251
|
-
this.activateTicketSearch = false;
|
|
24252
|
-
/**
|
|
24253
|
-
* Game ID
|
|
24254
|
-
*/
|
|
24255
|
-
this.gameId = '';
|
|
24256
|
-
/**
|
|
24257
|
-
* Player ID
|
|
24258
|
-
*/
|
|
24259
|
-
this.playerId = '';
|
|
24260
|
-
/**
|
|
24261
|
-
* Session ID
|
|
24262
|
-
*/
|
|
24263
|
-
this.session = '';
|
|
24264
|
-
/**
|
|
24265
|
-
* Instead of customEvents the widget triggers postMessages
|
|
24266
|
-
*/
|
|
24267
|
-
this.postMessage = false;
|
|
24268
|
-
/**
|
|
24269
|
-
* Language
|
|
24270
|
-
*/
|
|
24271
|
-
this.language = 'en';
|
|
24272
|
-
/**
|
|
24273
|
-
* Notifies if the quick filters from tickets are active
|
|
24274
|
-
*/
|
|
24275
|
-
this.quickFiltersActive = false;
|
|
24276
|
-
/**
|
|
24277
|
-
* Client custom styling via string
|
|
24278
|
-
*/
|
|
24279
|
-
this.clientStyling = '';
|
|
24280
|
-
/**
|
|
24281
|
-
* Client custom styling via url content
|
|
24282
|
-
*/
|
|
24283
|
-
this.clientStylingUrlContent = '';
|
|
24284
|
-
this.showFilterModal = false;
|
|
24285
|
-
this.showClearButton = false;
|
|
24286
|
-
this.filterData = {};
|
|
24287
|
-
this.filterDataReset = { ticketDrawId: '', filterFromCalendar: '', filterToCalendar: '' };
|
|
24288
|
-
this.limitStylingAppends = false;
|
|
24289
24157
|
this.handleTicketDrawId = (event) => {
|
|
24290
24158
|
const inputElement = event.target;
|
|
24291
24159
|
this.filterData.ticketDrawId = inputElement.value;
|
|
@@ -24312,6 +24180,22 @@ const HelperFilters = class {
|
|
|
24312
24180
|
this.stylingContainer.prepend(cssFile);
|
|
24313
24181
|
}, 1);
|
|
24314
24182
|
};
|
|
24183
|
+
this.showFilterId = true;
|
|
24184
|
+
this.activateTicketSearch = false;
|
|
24185
|
+
this.gameId = '';
|
|
24186
|
+
this.playerId = '';
|
|
24187
|
+
this.session = '';
|
|
24188
|
+
this.postMessage = false;
|
|
24189
|
+
this.language = 'en';
|
|
24190
|
+
this.quickFiltersActive = false;
|
|
24191
|
+
this.clientStyling = '';
|
|
24192
|
+
this.clientStylingUrlContent = '';
|
|
24193
|
+
this.translationUrl = undefined;
|
|
24194
|
+
this.showFilterModal = false;
|
|
24195
|
+
this.showClearButton = false;
|
|
24196
|
+
this.filterData = {};
|
|
24197
|
+
this.filterDataReset = { ticketDrawId: '', filterFromCalendar: '', filterToCalendar: '' };
|
|
24198
|
+
this.limitStylingAppends = false;
|
|
24315
24199
|
}
|
|
24316
24200
|
componentWillLoad() {
|
|
24317
24201
|
if (this.translationUrl) {
|
|
@@ -24391,19 +24275,6 @@ const HelperModal = class {
|
|
|
24391
24275
|
constructor(hostRef) {
|
|
24392
24276
|
index.registerInstance(this, hostRef);
|
|
24393
24277
|
this.cancel = index.createEvent(this, "modalCloseEvent", 7);
|
|
24394
|
-
/**
|
|
24395
|
-
* Toggles if the helper is visible or not
|
|
24396
|
-
*/
|
|
24397
|
-
this.visible = true;
|
|
24398
|
-
/**
|
|
24399
|
-
* Client custom styling via string
|
|
24400
|
-
*/
|
|
24401
|
-
this.clientStyling = '';
|
|
24402
|
-
/**
|
|
24403
|
-
* Client custom styling via url content
|
|
24404
|
-
*/
|
|
24405
|
-
this.clientStylingUrlContent = '';
|
|
24406
|
-
this.limitStylingAppends = false;
|
|
24407
24278
|
this.userAgent = window.navigator.userAgent;
|
|
24408
24279
|
this.setClientStyling = () => {
|
|
24409
24280
|
let sheet = document.createElement('style');
|
|
@@ -24417,6 +24288,11 @@ const HelperModal = class {
|
|
|
24417
24288
|
this.stylingContainer.prepend(cssFile);
|
|
24418
24289
|
}, 1);
|
|
24419
24290
|
};
|
|
24291
|
+
this.titleModal = undefined;
|
|
24292
|
+
this.visible = true;
|
|
24293
|
+
this.clientStyling = '';
|
|
24294
|
+
this.clientStylingUrlContent = '';
|
|
24295
|
+
this.limitStylingAppends = false;
|
|
24420
24296
|
}
|
|
24421
24297
|
handleHelperModalClose() {
|
|
24422
24298
|
this.visible = false;
|