@everymatrix/casino-games-category-section 1.17.5 → 1.18.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-games-category-section",
3
- "version": "1.17.5",
3
+ "version": "1.18.0",
4
4
  "main": "dist/casino-games-category-section.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -35,5 +35,5 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "e558426aacbc1f9a28260526551afc6d4cf887b1"
38
+ "gitHead": "6e90294022b2d742320099f1a4681ee431732dd5"
39
39
  }
@@ -55,6 +55,7 @@
55
55
  let playerID:string;
56
56
 
57
57
  let lobbyView:boolean = true;
58
+
58
59
 
59
60
  let userAgent = window.navigator.userAgent;
60
61
 
@@ -68,7 +69,7 @@
68
69
  let recentSearched:boolean = false;
69
70
  let scrollTop:boolean = false;
70
71
  let searchItem:boolean = false;
71
- let filteresPresent:boolean = false;
72
+ let presentFilters:boolean = false;
72
73
  let showItems:boolean = true;
73
74
 
74
75
  /* Start Lazy Loading */
@@ -211,20 +212,20 @@
211
212
  window.postMessage({ type: 'CategoryVendors', categoryid }, window.location.href);
212
213
 
213
214
  if (vendorFilters) {
214
- if (vendorFilters[categoryid]) {
215
- if (vendorFilters[categoryid].length && lobbyView === false && showFavGamesCategory === false) {
216
- let queryParamVendorId:string = '';
215
+ if (vendorFilters[categoryid]) {
216
+ if (vendorFilters[categoryid].length && lobbyView === false && showFavGamesCategory === false) {
217
+ let queryParamVendorId:string = '';
217
218
 
218
- filteresPresent = true;
219
- vendorFilters[categoryid].forEach(vendorId => {
220
- queryParamVendorId = queryParamVendorId + (queryParamVendorId ? `,games(vendor(id=${vendorId}))` : `games(vendor(id=${vendorId}))`);
221
- });
222
-
223
- url.searchParams.append('filter', ((vendorFilters && vendorFilters[categoryid].length < 2) ? `$and` : `$or`) + `(${queryParamVendorId})`);
224
- } else {
225
- filteresPresent = false;
219
+ presentFilters = true;
220
+ vendorFilters[categoryid].forEach(vendorId => {
221
+ queryParamVendorId = queryParamVendorId + (queryParamVendorId ? `,games(vendor(id=${vendorId}))` : `games(vendor(id=${vendorId}))`);
222
+ });
223
+
224
+ url.searchParams.append('filter', ((vendorFilters && vendorFilters[categoryid].length < 2) ? `$and` : `$or`) + `(${queryParamVendorId})`);
225
+ } else {
226
+ presentFilters = false;
227
+ }
226
228
  }
227
- }
228
229
  }
229
230
 
230
231
  if(vendorSort){
@@ -359,6 +360,8 @@
359
360
  case `CategoryData_${categoryid}`:
360
361
  searched = false;
361
362
  lobbyView = true;
363
+ addfilterselector = 'false';
364
+ addsortingselector = 'false';
362
365
  showLoadCategory = true;
363
366
  searchItem = false;
364
367
  validObservers = false;
@@ -634,7 +637,7 @@
634
637
  <div class="CasinoGamesCategorySectionContainer" bind:this={customStylingContainer}>
635
638
  {#if hasErrors}
636
639
  <!-- @TODO diversify error handling -->
637
- {#if filteresPresent}
640
+ {#if presentFilters}
638
641
  <p class="SearchLoading">404 Error - No result found.</p>
639
642
  {:else}
640
643
  <p class="SearchLoading">500 Error - Internal Server Error.</p>
@@ -715,7 +718,7 @@
715
718
  </span>
716
719
  </a>
717
720
  {:else}
718
- <div class=" {(addfilterselector == 'true' && addsortingselector == 'true') ? 'CategoryFilterContainer' : ''}">
721
+ <div class="{(addfilterselector == 'true' && addsortingselector == 'true') ? 'CategoryFilterContainer' : ''}">
719
722
  {#if addfilterselector == "true"}
720
723
  <casino-filter
721
724
  {clientstylingurl}