@everymatrix/helper-filters 0.1.24 → 1.0.70

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/helper-filters.cjs.js +17 -11
  3. package/dist/cjs/helper-filters_2.cjs.entry.js +11585 -9574
  4. package/dist/cjs/index-c0a2f0ff.js +1264 -0
  5. package/dist/cjs/loader.cjs.js +7 -13
  6. package/dist/collection/collection-manifest.json +3 -3
  7. package/dist/collection/components/helper-filters/helper-filters.js +368 -396
  8. package/dist/collection/components/helper-filters/index.js +1 -0
  9. package/dist/collection/utils/locale.utils.js +66 -53
  10. package/dist/collection/utils/utils.js +1 -1
  11. package/dist/esm/app-globals-0f993ce5.js +3 -0
  12. package/dist/esm/helper-filters.js +14 -11
  13. package/dist/esm/helper-filters_2.entry.js +11585 -9574
  14. package/dist/esm/index-0aa988c9.js +1237 -0
  15. package/dist/esm/loader.js +7 -13
  16. package/dist/helper-filters/helper-filters.esm.js +1 -1
  17. package/dist/helper-filters/p-5e354aa8.entry.js +3567 -0
  18. package/dist/helper-filters/p-e1255160.js +1 -0
  19. package/dist/helper-filters/p-f48a0fde.js +2 -0
  20. package/dist/stencil.config.dev.js +17 -0
  21. package/dist/stencil.config.js +14 -19
  22. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/helper-filters/.stencil/packages/stencil/helper-filters/stencil.config.d.ts +2 -0
  23. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/helper-filters/.stencil/packages/stencil/helper-filters/stencil.config.dev.d.ts +2 -0
  24. package/dist/types/components/helper-filters/helper-filters.d.ts +63 -63
  25. package/dist/types/components/helper-filters/index.d.ts +1 -0
  26. package/dist/types/components.d.ts +20 -3
  27. package/dist/types/stencil-public-runtime.d.ts +142 -33
  28. package/loader/cdn.js +1 -3
  29. package/loader/index.cjs.js +1 -3
  30. package/loader/index.d.ts +13 -1
  31. package/loader/index.es2017.js +1 -3
  32. package/loader/index.js +1 -3
  33. package/loader/package.json +1 -0
  34. package/package.json +10 -4
  35. package/dist/cjs/index-4be1aa12.js +0 -1235
  36. package/dist/components/helper-filters.d.ts +0 -11
  37. package/dist/components/helper-filters.js +0 -22422
  38. package/dist/components/helper-modal.js +0 -6
  39. package/dist/components/helper-modal2.js +0 -93
  40. package/dist/components/index.d.ts +0 -26
  41. package/dist/components/index.js +0 -1
  42. package/dist/esm/index-5f4ed338.js +0 -1209
  43. package/dist/esm/polyfills/core-js.js +0 -11
  44. package/dist/esm/polyfills/css-shim.js +0 -1
  45. package/dist/esm/polyfills/dom.js +0 -79
  46. package/dist/esm/polyfills/es5-html-element.js +0 -1
  47. package/dist/esm/polyfills/index.js +0 -34
  48. package/dist/esm/polyfills/system.js +0 -6
  49. package/dist/helper-filters/p-13c0b3c4.entry.js +0 -2849
  50. package/dist/helper-filters/p-6a46b66a.js +0 -1
  51. package/dist/types/Users/dragos.bodea/Documents/everymatrix-prjs/stencil/widgets-stencil/packages/helper-filters/.stencil/packages/helper-filters/stencil.config.d.ts +0 -2
@@ -1,400 +1,372 @@
1
- import { Component, h, State, Prop, Event, Listen } from '@stencil/core';
2
- import { translate } from '../../utils/locale.utils';
3
- import '@vaadin/date-picker';
4
- import '@everymatrix/helper-modal';
1
+ import { h } from "@stencil/core";
2
+ import { translate } from "../../utils/locale.utils";
3
+ import "@vaadin/date-picker";
4
+ import "../../../../../helper-modal/dist/types/index";
5
5
  export class HelperFilters {
6
- constructor() {
7
- /**
8
- * Check if show the filter option by id
9
- */
10
- this.showFilterId = true;
11
- /**
12
- * Choose if filter by draw ID or ticket ID. By default is draw ID.
13
- */
14
- this.activateTicketSearch = false;
15
- /**
16
- * Game ID
17
- */
18
- this.gameId = '';
19
- /**
20
- * Player ID
21
- */
22
- this.playerId = '';
23
- /**
24
- * Session ID
25
- */
26
- this.session = '';
27
- /**
28
- * Instead of customEvents the widget triggers postMessages
29
- */
30
- this.postMessage = false;
31
- /**
32
- * Language
33
- */
34
- this.language = 'en';
35
- /**
36
- * Notifies if the quick filters from tickets are active
37
- */
38
- this.quickFiltersActive = false;
39
- /**
40
- * Client custom styling via string
41
- */
42
- this.clientStyling = '';
43
- /**
44
- * Client custom styling via url content
45
- */
46
- this.clientStylingUrlContent = '';
47
- this.showFilterModal = false;
48
- this.showClearButton = false;
49
- this.filterData = {};
50
- this.filterDataReset = { ticketDrawId: '', filterFromCalendar: '', filterToCalendar: '' };
51
- this.limitStylingAppends = false;
52
- this.setClientStyling = () => {
53
- let sheet = document.createElement('style');
54
- sheet.innerHTML = this.clientStyling;
55
- this.stylingContainer.prepend(sheet);
56
- };
57
- this.setClientStylingURL = () => {
58
- let cssFile = document.createElement('style');
59
- setTimeout(() => {
60
- cssFile.innerHTML = this.clientStylingUrlContent;
61
- this.stylingContainer.prepend(cssFile);
62
- }, 1);
63
- };
64
- }
65
- // reset field values each time the filter modal opens
66
- componentDidRender() {
67
- // @TODO: to way binding?
68
- if (document.getElementById('#FilterById'))
69
- document.getElementById('#FilterById').value = '';
70
- // start custom styling area
71
- if (!this.limitStylingAppends && this.stylingContainer) {
72
- if (this.clientStyling)
73
- this.setClientStyling();
74
- if (this.clientStylingUrlContent)
75
- this.setClientStylingURL();
76
- this.limitStylingAppends = true;
6
+ constructor() {
7
+ this.setClientStyling = () => {
8
+ let sheet = document.createElement('style');
9
+ sheet.innerHTML = this.clientStyling;
10
+ this.stylingContainer.prepend(sheet);
11
+ };
12
+ this.setClientStylingURL = () => {
13
+ let cssFile = document.createElement('style');
14
+ setTimeout(() => {
15
+ cssFile.innerHTML = this.clientStylingUrlContent;
16
+ this.stylingContainer.prepend(cssFile);
17
+ }, 1);
18
+ };
19
+ this.showFilterId = true;
20
+ this.activateTicketSearch = false;
21
+ this.gameId = '';
22
+ this.playerId = '';
23
+ this.session = '';
24
+ this.postMessage = false;
25
+ this.language = 'en';
26
+ this.quickFiltersActive = false;
27
+ this.clientStyling = '';
28
+ this.clientStylingUrlContent = '';
29
+ this.showFilterModal = false;
30
+ this.showClearButton = false;
31
+ this.filterData = {};
32
+ this.filterDataReset = { ticketDrawId: '', filterFromCalendar: '', filterToCalendar: '' };
33
+ this.limitStylingAppends = false;
77
34
  }
78
- // end custom styling area
79
- }
80
- filterSelectionHandler(event) {
81
- if (this.postMessage)
82
- window.postMessage({ type: 'filterSelection', event }, window.location.href);
83
- if (this.filterData.ticketDrawId || this.filterData.filterFromCalendar || this.filterData.filterToCalendar)
84
- this.filterSelection.emit(event);
85
- }
86
- filterSelectionResetHandler(event) {
87
- if (this.postMessage)
88
- window.postMessage({ type: 'filterSelectionReset', event }, window.location.href);
89
- this.filterSelectionReset.emit(event);
90
- }
91
- modalCloseEvent() {
92
- this.showFilterModal = false;
93
- }
94
- // Toggle filter modal
95
- toggleFilterModal() {
96
- this.showFilterModal = true;
97
- }
98
- // Filter search
99
- filterSearch() {
100
- this.modalCloseEvent();
101
- this.showClearButton = true;
102
- this.filterSelectionHandler(this.filterData);
103
- }
104
- resetSearch() {
105
- this.showClearButton = false;
106
- this.filterSelectionResetHandler(this.filterDataReset);
107
- this.filterData = {};
108
- }
109
- handleTicketDrawId(event) {
110
- this.filterData.ticketDrawId = event.target.value;
111
- }
112
- handleFilterFrom(event) {
113
- this.filterData.filterFromCalendar = new Date(event.target.value).toISOString();
114
- }
115
- handleFilterTo(event) {
116
- this.filterData.filterToCalendar = new Date(event.target.value).toISOString();
117
- }
118
- render() {
119
- return (h("div", { class: "HelperFilters", ref: el => this.stylingContainer = el },
120
- h("div", { class: "FilterButtonsWrapper" },
121
- h("button", { class: "FilterOpen", onClick: () => this.toggleFilterModal() }, translate('filterOpen', this.language)),
122
- (this.showClearButton || this.quickFiltersActive) ?
123
- h("button", { class: "FilterClear", onClick: () => this.resetSearch() }, translate('filterClear', this.language))
124
- :
125
- null),
126
- h("helper-modal", { "title-modal": "Filter Modal", visible: this.showFilterModal, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent },
127
- h("div", { class: "FilterModalHeader" },
128
- h("h3", { class: "FilterModalTitle" }, this.activateTicketSearch ? translate('filterModalTicketTitle', this.language) : translate('filterModalDrawTitle', this.language))),
129
- h("div", { class: "FilterModalBody" },
130
- h("input", { id: "FilterById", type: "text", value: this.filterData.ticketDrawId, onInput: (event) => this.handleTicketDrawId(event), class: "FilterModalSearch", placeholder: this.activateTicketSearch ? translate('filterTicketPlaceholder', this.language) : translate('filterDrawPlaceholder', this.language) }),
131
- h("p", null, translate('filterOrDate', this.language)),
132
- h("div", { class: "FilterCalendarWrapper" },
133
- h("vaadin-date-picker", { value: this.filterData.filterFromCalendar, onChange: (event) => this.handleFilterFrom(event), placeholder: translate('filterFromCalendar', this.language), class: "VaadinDatePicker" }),
134
- h("vaadin-date-picker", { value: this.filterData.filterToCalendar, onChange: (event) => this.handleFilterTo(event), placeholder: translate('filterToCalendar', this.language), class: "VaadinDatePicker" }))),
135
- h("div", { class: "FilterModalFooter" },
136
- h("button", { class: "FilterModalButton", onClick: () => this.filterSearch() }, translate('filterModalButton', this.language))))));
137
- }
138
- static get is() { return "helper-filters"; }
139
- static get encapsulation() { return "shadow"; }
140
- static get originalStyleUrls() { return {
141
- "$": ["helper-filters.scss"]
142
- }; }
143
- static get styleUrls() { return {
144
- "$": ["helper-filters.css"]
145
- }; }
146
- static get properties() { return {
147
- "showFilterId": {
148
- "type": "boolean",
149
- "mutable": false,
150
- "complexType": {
151
- "original": "boolean",
152
- "resolved": "boolean",
153
- "references": {}
154
- },
155
- "required": false,
156
- "optional": false,
157
- "docs": {
158
- "tags": [],
159
- "text": "Check if show the filter option by id"
160
- },
161
- "attribute": "show-filter-id",
162
- "reflect": false,
163
- "defaultValue": "true"
164
- },
165
- "activateTicketSearch": {
166
- "type": "boolean",
167
- "mutable": false,
168
- "complexType": {
169
- "original": "boolean",
170
- "resolved": "boolean",
171
- "references": {}
172
- },
173
- "required": false,
174
- "optional": false,
175
- "docs": {
176
- "tags": [],
177
- "text": "Choose if filter by draw ID or ticket ID. By default is draw ID."
178
- },
179
- "attribute": "activate-ticket-search",
180
- "reflect": false,
181
- "defaultValue": "false"
182
- },
183
- "gameId": {
184
- "type": "string",
185
- "mutable": false,
186
- "complexType": {
187
- "original": "string",
188
- "resolved": "string",
189
- "references": {}
190
- },
191
- "required": false,
192
- "optional": false,
193
- "docs": {
194
- "tags": [],
195
- "text": "Game ID"
196
- },
197
- "attribute": "game-id",
198
- "reflect": false,
199
- "defaultValue": "''"
200
- },
201
- "playerId": {
202
- "type": "string",
203
- "mutable": false,
204
- "complexType": {
205
- "original": "string",
206
- "resolved": "string",
207
- "references": {}
208
- },
209
- "required": false,
210
- "optional": false,
211
- "docs": {
212
- "tags": [],
213
- "text": "Player ID"
214
- },
215
- "attribute": "player-id",
216
- "reflect": false,
217
- "defaultValue": "''"
218
- },
219
- "session": {
220
- "type": "string",
221
- "mutable": false,
222
- "complexType": {
223
- "original": "string",
224
- "resolved": "string",
225
- "references": {}
226
- },
227
- "required": false,
228
- "optional": false,
229
- "docs": {
230
- "tags": [],
231
- "text": "Session ID"
232
- },
233
- "attribute": "session",
234
- "reflect": false,
235
- "defaultValue": "''"
236
- },
237
- "postMessage": {
238
- "type": "boolean",
239
- "mutable": false,
240
- "complexType": {
241
- "original": "boolean",
242
- "resolved": "boolean",
243
- "references": {}
244
- },
245
- "required": false,
246
- "optional": false,
247
- "docs": {
248
- "tags": [],
249
- "text": "Instead of customEvents the widget triggers postMessages"
250
- },
251
- "attribute": "post-message",
252
- "reflect": false,
253
- "defaultValue": "false"
254
- },
255
- "language": {
256
- "type": "string",
257
- "mutable": false,
258
- "complexType": {
259
- "original": "string",
260
- "resolved": "string",
261
- "references": {}
262
- },
263
- "required": false,
264
- "optional": false,
265
- "docs": {
266
- "tags": [],
267
- "text": "Language"
268
- },
269
- "attribute": "language",
270
- "reflect": false,
271
- "defaultValue": "'en'"
272
- },
273
- "quickFiltersActive": {
274
- "type": "boolean",
275
- "mutable": false,
276
- "complexType": {
277
- "original": "boolean",
278
- "resolved": "boolean",
279
- "references": {}
280
- },
281
- "required": false,
282
- "optional": false,
283
- "docs": {
284
- "tags": [],
285
- "text": "Notifies if the quick filters from tickets are active"
286
- },
287
- "attribute": "quick-filters-active",
288
- "reflect": false,
289
- "defaultValue": "false"
290
- },
291
- "clientStyling": {
292
- "type": "string",
293
- "mutable": false,
294
- "complexType": {
295
- "original": "string",
296
- "resolved": "string",
297
- "references": {}
298
- },
299
- "required": false,
300
- "optional": false,
301
- "docs": {
302
- "tags": [],
303
- "text": "Client custom styling via string"
304
- },
305
- "attribute": "client-styling",
306
- "reflect": false,
307
- "defaultValue": "''"
308
- },
309
- "clientStylingUrlContent": {
310
- "type": "string",
311
- "mutable": false,
312
- "complexType": {
313
- "original": "string",
314
- "resolved": "string",
315
- "references": {}
316
- },
317
- "required": false,
318
- "optional": false,
319
- "docs": {
320
- "tags": [],
321
- "text": "Client custom styling via url content"
322
- },
323
- "attribute": "client-styling-url-content",
324
- "reflect": false,
325
- "defaultValue": "''"
326
- }
327
- }; }
328
- static get states() { return {
329
- "showFilterModal": {},
330
- "showClearButton": {},
331
- "filterData": {},
332
- "filterDataReset": {},
333
- "limitStylingAppends": {}
334
- }; }
335
- static get events() { return [{
336
- "method": "filterDraw",
337
- "name": "filterDraw",
338
- "bubbles": true,
339
- "cancelable": true,
340
- "composed": true,
341
- "docs": {
342
- "tags": [],
343
- "text": ""
344
- },
345
- "complexType": {
346
- "original": "HelperFilters",
347
- "resolved": "HelperFilters",
348
- "references": {
349
- "HelperFilters": {
350
- "location": "global"
351
- }
352
- }
353
- }
354
- }, {
355
- "method": "filterSelection",
356
- "name": "filterSelection",
357
- "bubbles": true,
358
- "cancelable": true,
359
- "composed": true,
360
- "docs": {
361
- "tags": [],
362
- "text": ""
363
- },
364
- "complexType": {
365
- "original": "HelperFilters",
366
- "resolved": "HelperFilters",
367
- "references": {
368
- "HelperFilters": {
369
- "location": "global"
370
- }
371
- }
372
- }
373
- }, {
374
- "method": "filterSelectionReset",
375
- "name": "filterSelectionReset",
376
- "bubbles": true,
377
- "cancelable": true,
378
- "composed": true,
379
- "docs": {
380
- "tags": [],
381
- "text": ""
382
- },
383
- "complexType": {
384
- "original": "HelperFilters",
385
- "resolved": "HelperFilters",
386
- "references": {
387
- "HelperFilters": {
388
- "location": "global"
389
- }
35
+ // reset field values each time the filter modal opens
36
+ componentDidRender() {
37
+ // @TODO: to way binding?
38
+ if (document.getElementById('#FilterById'))
39
+ document.getElementById('#FilterById').value = '';
40
+ // start custom styling area
41
+ if (!this.limitStylingAppends && this.stylingContainer) {
42
+ if (this.clientStyling)
43
+ this.setClientStyling();
44
+ if (this.clientStylingUrlContent)
45
+ this.setClientStylingURL();
46
+ this.limitStylingAppends = true;
390
47
  }
391
- }
392
- }]; }
393
- static get listeners() { return [{
394
- "name": "modalCloseEvent",
395
- "method": "modalCloseEvent",
396
- "target": undefined,
397
- "capture": false,
398
- "passive": false
399
- }]; }
48
+ // end custom styling area
49
+ }
50
+ filterSelectionHandler(event) {
51
+ if (this.postMessage)
52
+ window.postMessage({ type: 'filterSelection', event }, window.location.href);
53
+ if (this.filterData.ticketDrawId || this.filterData.filterFromCalendar || this.filterData.filterToCalendar)
54
+ this.filterSelection.emit(event);
55
+ }
56
+ filterSelectionResetHandler(event) {
57
+ if (this.postMessage)
58
+ window.postMessage({ type: 'filterSelectionReset', event }, window.location.href);
59
+ this.filterSelectionReset.emit(event);
60
+ }
61
+ modalCloseEvent() {
62
+ this.showFilterModal = false;
63
+ }
64
+ // Toggle filter modal
65
+ toggleFilterModal() {
66
+ this.showFilterModal = true;
67
+ }
68
+ // Filter search
69
+ filterSearch() {
70
+ this.modalCloseEvent();
71
+ this.showClearButton = true;
72
+ this.filterSelectionHandler(this.filterData);
73
+ console.log(this.showClearButton);
74
+ }
75
+ resetSearch() {
76
+ this.showClearButton = false;
77
+ this.filterSelectionResetHandler(this.filterDataReset);
78
+ this.filterData = {};
79
+ }
80
+ handleTicketDrawId(event) {
81
+ this.filterData.ticketDrawId = event.target.value;
82
+ }
83
+ handleFilterFrom(event) {
84
+ this.filterData.filterFromCalendar = new Date(event.target.value).toISOString();
85
+ }
86
+ handleFilterTo(event) {
87
+ this.filterData.filterToCalendar = new Date(event.target.value).toISOString();
88
+ }
89
+ render() {
90
+ return (h("div", { key: 'd74774bd58fa3df6b0038fd979fb4aec4262d43d', class: "HelperFilters", ref: el => this.stylingContainer = el }, h("div", { key: '0827128924ba350888ae81e67e0306e536b15047', class: "FilterButtonsWrapper" }, h("button", { key: '73ae5aff5896195cd895410caf44dccfa1ac5cfc', class: "FilterOpen", onClick: () => this.toggleFilterModal() }, translate('filterOpen', this.language)), console.log('in filter Open', this.showClearButton, this.quickFiltersActive), (this.showClearButton || this.quickFiltersActive) ?
91
+ h("button", { class: "FilterClear", onClick: () => this.resetSearch() }, translate('filterClear', this.language))
92
+ :
93
+ null), h("helper-modal", { key: 'add83df2714fdb69e8dfa7a0f5d1eb0d526fc2b4', "title-modal": "Filter Modal", visible: this.showFilterModal, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }, h("div", { key: '861b04161876b557184fe49c514867788147e4b9', class: "FilterModalHeader" }, h("h3", { key: '7471430912f301ff995c401b08298d9006816216', class: "FilterModalTitle" }, this.activateTicketSearch ? translate('filterModalTicketTitle', this.language) : translate('filterModalDrawTitle', this.language))), h("div", { key: 'af6bd8e253f332c8724e1bb40100ba5e1e59838f', class: "FilterModalBody" }, h("input", { key: '9edc7e14b801d40d4861625264f82b2fa213a770', id: "FilterById", type: "text", value: this.filterData.ticketDrawId, onInput: (event) => this.handleTicketDrawId(event), class: "FilterModalSearch", placeholder: this.activateTicketSearch ? translate('filterTicketPlaceholder', this.language) : translate('filterDrawPlaceholder', this.language) }), h("p", { key: '9665b359f9d6da19f120eb9bb315c4b144c80ced' }, translate('filterOrDate', this.language)), h("div", { key: 'd155c7d73a719aaedc581f51aa97cf21ec3125df', class: "FilterCalendarWrapper" }, h("vaadin-date-picker", { key: '586fb38bc5c718a4afa06ebec96bec0fd46949eb', value: this.filterData.filterFromCalendar, onChange: (event) => this.handleFilterFrom(event), placeholder: translate('filterFromCalendar', this.language), class: "VaadinDatePicker" }), h("vaadin-date-picker", { key: '42e8965b2c740c19c53687c114faf6aa22f11de8', value: this.filterData.filterToCalendar, onChange: (event) => this.handleFilterTo(event), placeholder: translate('filterToCalendar', this.language), class: "VaadinDatePicker" }))), h("div", { key: '7529eef1b25d130d183a55e45862418444054d3c', class: "FilterModalFooter" }, h("button", { key: '7dac7dc7b01c1c66dde7c6670a352f597b3f75fc', class: "FilterModalButton", onClick: () => this.filterSearch() }, translate('filterModalButton', this.language))))));
94
+ }
95
+ static get is() { return "helper-filters"; }
96
+ static get encapsulation() { return "shadow"; }
97
+ static get originalStyleUrls() {
98
+ return {
99
+ "$": ["helper-filters.scss"]
100
+ };
101
+ }
102
+ static get styleUrls() {
103
+ return {
104
+ "$": ["helper-filters.css"]
105
+ };
106
+ }
107
+ static get properties() {
108
+ return {
109
+ "showFilterId": {
110
+ "type": "boolean",
111
+ "mutable": false,
112
+ "complexType": {
113
+ "original": "boolean",
114
+ "resolved": "boolean",
115
+ "references": {}
116
+ },
117
+ "required": false,
118
+ "optional": false,
119
+ "docs": {
120
+ "tags": [],
121
+ "text": "Check if show the filter option by id"
122
+ },
123
+ "attribute": "show-filter-id",
124
+ "reflect": true,
125
+ "defaultValue": "true"
126
+ },
127
+ "activateTicketSearch": {
128
+ "type": "boolean",
129
+ "mutable": false,
130
+ "complexType": {
131
+ "original": "boolean",
132
+ "resolved": "boolean",
133
+ "references": {}
134
+ },
135
+ "required": false,
136
+ "optional": false,
137
+ "docs": {
138
+ "tags": [],
139
+ "text": "Choose if filter by draw ID or ticket ID. By default is draw ID."
140
+ },
141
+ "attribute": "activate-ticket-search",
142
+ "reflect": true,
143
+ "defaultValue": "false"
144
+ },
145
+ "gameId": {
146
+ "type": "string",
147
+ "mutable": false,
148
+ "complexType": {
149
+ "original": "string",
150
+ "resolved": "string",
151
+ "references": {}
152
+ },
153
+ "required": false,
154
+ "optional": false,
155
+ "docs": {
156
+ "tags": [],
157
+ "text": "Game ID"
158
+ },
159
+ "attribute": "game-id",
160
+ "reflect": true,
161
+ "defaultValue": "''"
162
+ },
163
+ "playerId": {
164
+ "type": "string",
165
+ "mutable": false,
166
+ "complexType": {
167
+ "original": "string",
168
+ "resolved": "string",
169
+ "references": {}
170
+ },
171
+ "required": false,
172
+ "optional": false,
173
+ "docs": {
174
+ "tags": [],
175
+ "text": "Player ID"
176
+ },
177
+ "attribute": "player-id",
178
+ "reflect": true,
179
+ "defaultValue": "''"
180
+ },
181
+ "session": {
182
+ "type": "string",
183
+ "mutable": false,
184
+ "complexType": {
185
+ "original": "string",
186
+ "resolved": "string",
187
+ "references": {}
188
+ },
189
+ "required": false,
190
+ "optional": false,
191
+ "docs": {
192
+ "tags": [],
193
+ "text": "Session ID"
194
+ },
195
+ "attribute": "session",
196
+ "reflect": true,
197
+ "defaultValue": "''"
198
+ },
199
+ "postMessage": {
200
+ "type": "boolean",
201
+ "mutable": false,
202
+ "complexType": {
203
+ "original": "boolean",
204
+ "resolved": "boolean",
205
+ "references": {}
206
+ },
207
+ "required": false,
208
+ "optional": false,
209
+ "docs": {
210
+ "tags": [],
211
+ "text": "Instead of customEvents the widget triggers postMessages"
212
+ },
213
+ "attribute": "post-message",
214
+ "reflect": true,
215
+ "defaultValue": "false"
216
+ },
217
+ "language": {
218
+ "type": "string",
219
+ "mutable": false,
220
+ "complexType": {
221
+ "original": "string",
222
+ "resolved": "string",
223
+ "references": {}
224
+ },
225
+ "required": false,
226
+ "optional": false,
227
+ "docs": {
228
+ "tags": [],
229
+ "text": "Language"
230
+ },
231
+ "attribute": "language",
232
+ "reflect": true,
233
+ "defaultValue": "'en'"
234
+ },
235
+ "quickFiltersActive": {
236
+ "type": "boolean",
237
+ "mutable": false,
238
+ "complexType": {
239
+ "original": "boolean",
240
+ "resolved": "boolean",
241
+ "references": {}
242
+ },
243
+ "required": false,
244
+ "optional": false,
245
+ "docs": {
246
+ "tags": [],
247
+ "text": "Notifies if the quick filters from tickets are active"
248
+ },
249
+ "attribute": "quick-filters-active",
250
+ "reflect": true,
251
+ "defaultValue": "false"
252
+ },
253
+ "clientStyling": {
254
+ "type": "string",
255
+ "mutable": false,
256
+ "complexType": {
257
+ "original": "string",
258
+ "resolved": "string",
259
+ "references": {}
260
+ },
261
+ "required": false,
262
+ "optional": false,
263
+ "docs": {
264
+ "tags": [],
265
+ "text": "Client custom styling via string"
266
+ },
267
+ "attribute": "client-styling",
268
+ "reflect": true,
269
+ "defaultValue": "''"
270
+ },
271
+ "clientStylingUrlContent": {
272
+ "type": "string",
273
+ "mutable": false,
274
+ "complexType": {
275
+ "original": "string",
276
+ "resolved": "string",
277
+ "references": {}
278
+ },
279
+ "required": false,
280
+ "optional": false,
281
+ "docs": {
282
+ "tags": [],
283
+ "text": "Client custom styling via url content"
284
+ },
285
+ "attribute": "client-styling-url-content",
286
+ "reflect": true,
287
+ "defaultValue": "''"
288
+ }
289
+ };
290
+ }
291
+ static get states() {
292
+ return {
293
+ "showFilterModal": {},
294
+ "showClearButton": {},
295
+ "filterData": {},
296
+ "filterDataReset": {},
297
+ "limitStylingAppends": {}
298
+ };
299
+ }
300
+ static get events() {
301
+ return [{
302
+ "method": "filterDraw",
303
+ "name": "filterDraw",
304
+ "bubbles": true,
305
+ "cancelable": true,
306
+ "composed": true,
307
+ "docs": {
308
+ "tags": [],
309
+ "text": ""
310
+ },
311
+ "complexType": {
312
+ "original": "HelperFilters",
313
+ "resolved": "HelperFilters",
314
+ "references": {
315
+ "HelperFilters": {
316
+ "location": "global",
317
+ "id": "global::HelperFilters"
318
+ }
319
+ }
320
+ }
321
+ }, {
322
+ "method": "filterSelection",
323
+ "name": "filterSelection",
324
+ "bubbles": true,
325
+ "cancelable": true,
326
+ "composed": true,
327
+ "docs": {
328
+ "tags": [],
329
+ "text": ""
330
+ },
331
+ "complexType": {
332
+ "original": "HelperFilters",
333
+ "resolved": "HelperFilters",
334
+ "references": {
335
+ "HelperFilters": {
336
+ "location": "global",
337
+ "id": "global::HelperFilters"
338
+ }
339
+ }
340
+ }
341
+ }, {
342
+ "method": "filterSelectionReset",
343
+ "name": "filterSelectionReset",
344
+ "bubbles": true,
345
+ "cancelable": true,
346
+ "composed": true,
347
+ "docs": {
348
+ "tags": [],
349
+ "text": ""
350
+ },
351
+ "complexType": {
352
+ "original": "HelperFilters",
353
+ "resolved": "HelperFilters",
354
+ "references": {
355
+ "HelperFilters": {
356
+ "location": "global",
357
+ "id": "global::HelperFilters"
358
+ }
359
+ }
360
+ }
361
+ }];
362
+ }
363
+ static get listeners() {
364
+ return [{
365
+ "name": "modalCloseEvent",
366
+ "method": "modalCloseEvent",
367
+ "target": undefined,
368
+ "capture": false,
369
+ "passive": false
370
+ }];
371
+ }
400
372
  }