@everymatrix/helper-filters 0.1.24 → 1.15.0

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.
@@ -14,7 +14,7 @@ const patchEsm = () => {
14
14
  const defineCustomElements = (win, options) => {
15
15
  if (typeof window === 'undefined') return Promise.resolve();
16
16
  return patchEsm().then(() => {
17
- return index.bootstrapLazy([["helper-filters_2.cjs",[[1,"helper-filters",{"showFilterId":[4,"show-filter-id"],"activateTicketSearch":[4,"activate-ticket-search"],"gameId":[1,"game-id"],"playerId":[1,"player-id"],"session":[1],"postMessage":[4,"post-message"],"language":[1],"quickFiltersActive":[4,"quick-filters-active"],"clientStyling":[1,"client-styling"],"clientStylingUrlContent":[1,"client-styling-url-content"],"showFilterModal":[32],"showClearButton":[32],"filterData":[32],"filterDataReset":[32],"limitStylingAppends":[32]},[[0,"modalCloseEvent","modalCloseEvent"]]],[1,"helper-modal",{"titleModal":[1,"title-modal"],"visible":[1540],"clientStyling":[1,"client-styling"],"clientStylingUrlContent":[1,"client-styling-url-content"],"limitStylingAppends":[32]}]]]], options);
17
+ return index.bootstrapLazy([["helper-filters_2.cjs",[[1,"helper-filters",{"showFilterId":[516,"show-filter-id"],"activateTicketSearch":[516,"activate-ticket-search"],"gameId":[513,"game-id"],"playerId":[513,"player-id"],"session":[513],"postMessage":[516,"post-message"],"language":[513],"quickFiltersActive":[516,"quick-filters-active"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"showFilterModal":[32],"showClearButton":[32],"filterData":[32],"filterDataReset":[32],"limitStylingAppends":[32]},[[0,"modalCloseEvent","modalCloseEvent"]]],[1,"helper-modal",{"titleModal":[513,"title-modal"],"visible":[1540],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]}]]]], options);
18
18
  });
19
19
  };
20
20
 
@@ -100,6 +100,7 @@ export class HelperFilters {
100
100
  this.modalCloseEvent();
101
101
  this.showClearButton = true;
102
102
  this.filterSelectionHandler(this.filterData);
103
+ console.log(this.showClearButton);
103
104
  }
104
105
  resetSearch() {
105
106
  this.showClearButton = false;
@@ -119,6 +120,7 @@ export class HelperFilters {
119
120
  return (h("div", { class: "HelperFilters", ref: el => this.stylingContainer = el },
120
121
  h("div", { class: "FilterButtonsWrapper" },
121
122
  h("button", { class: "FilterOpen", onClick: () => this.toggleFilterModal() }, translate('filterOpen', this.language)),
123
+ console.log('in filter Open', this.showClearButton, this.quickFiltersActive),
122
124
  (this.showClearButton || this.quickFiltersActive) ?
123
125
  h("button", { class: "FilterClear", onClick: () => this.resetSearch() }, translate('filterClear', this.language))
124
126
  :
@@ -159,7 +161,7 @@ export class HelperFilters {
159
161
  "text": "Check if show the filter option by id"
160
162
  },
161
163
  "attribute": "show-filter-id",
162
- "reflect": false,
164
+ "reflect": true,
163
165
  "defaultValue": "true"
164
166
  },
165
167
  "activateTicketSearch": {
@@ -177,7 +179,7 @@ export class HelperFilters {
177
179
  "text": "Choose if filter by draw ID or ticket ID. By default is draw ID."
178
180
  },
179
181
  "attribute": "activate-ticket-search",
180
- "reflect": false,
182
+ "reflect": true,
181
183
  "defaultValue": "false"
182
184
  },
183
185
  "gameId": {
@@ -195,7 +197,7 @@ export class HelperFilters {
195
197
  "text": "Game ID"
196
198
  },
197
199
  "attribute": "game-id",
198
- "reflect": false,
200
+ "reflect": true,
199
201
  "defaultValue": "''"
200
202
  },
201
203
  "playerId": {
@@ -213,7 +215,7 @@ export class HelperFilters {
213
215
  "text": "Player ID"
214
216
  },
215
217
  "attribute": "player-id",
216
- "reflect": false,
218
+ "reflect": true,
217
219
  "defaultValue": "''"
218
220
  },
219
221
  "session": {
@@ -231,7 +233,7 @@ export class HelperFilters {
231
233
  "text": "Session ID"
232
234
  },
233
235
  "attribute": "session",
234
- "reflect": false,
236
+ "reflect": true,
235
237
  "defaultValue": "''"
236
238
  },
237
239
  "postMessage": {
@@ -249,7 +251,7 @@ export class HelperFilters {
249
251
  "text": "Instead of customEvents the widget triggers postMessages"
250
252
  },
251
253
  "attribute": "post-message",
252
- "reflect": false,
254
+ "reflect": true,
253
255
  "defaultValue": "false"
254
256
  },
255
257
  "language": {
@@ -267,7 +269,7 @@ export class HelperFilters {
267
269
  "text": "Language"
268
270
  },
269
271
  "attribute": "language",
270
- "reflect": false,
272
+ "reflect": true,
271
273
  "defaultValue": "'en'"
272
274
  },
273
275
  "quickFiltersActive": {
@@ -285,7 +287,7 @@ export class HelperFilters {
285
287
  "text": "Notifies if the quick filters from tickets are active"
286
288
  },
287
289
  "attribute": "quick-filters-active",
288
- "reflect": false,
290
+ "reflect": true,
289
291
  "defaultValue": "false"
290
292
  },
291
293
  "clientStyling": {
@@ -303,7 +305,7 @@ export class HelperFilters {
303
305
  "text": "Client custom styling via string"
304
306
  },
305
307
  "attribute": "client-styling",
306
- "reflect": false,
308
+ "reflect": true,
307
309
  "defaultValue": "''"
308
310
  },
309
311
  "clientStylingUrlContent": {
@@ -321,7 +323,7 @@ export class HelperFilters {
321
323
  "text": "Client custom styling via url content"
322
324
  },
323
325
  "attribute": "client-styling-url-content",
324
- "reflect": false,
326
+ "reflect": true,
325
327
  "defaultValue": "''"
326
328
  }
327
329
  }; }