@everymatrix/casino-search 1.8.1 → 1.8.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-search",
3
- "version": "1.8.1",
3
+ "version": "1.8.3",
4
4
  "main": "index.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "e558ed5234cd858fa71696743229caa273752a2e"
39
+ "gitHead": "15df0a4bc1195017b7df65675dfd40261b5dbe8b"
40
40
  }
@@ -31,6 +31,7 @@
31
31
  let searchElement:HTMLElement;
32
32
  let searchCancelled:boolean = true;
33
33
  let searchActive:boolean = false;
34
+ let searchInputMaxLength:number = 50;
34
35
 
35
36
  let isLoading:boolean = false;
36
37
  let customStylingContainer:HTMLElement;
@@ -249,7 +250,7 @@
249
250
  if (searchedValues.indexOf(gameID) === -1) {
250
251
  let value;
251
252
 
252
- searchedValues.push(gameID);
253
+ searchedValues.unshift(gameID);
253
254
  value = searchedValues.join(',');
254
255
  localStorage.setItem(`searchedGamesWds_casino`, value);
255
256
  }
@@ -339,14 +340,14 @@
339
340
 
340
341
  </script>
341
342
  <div class="{(getDevice(userAgent) !== 'PC') ? '' : 'Desktop'} CasinoSearch" bind:this={customStylingContainer}>
342
- <div class="Search">
343
+ <div class="Search {searchCancelled ? '' : 'SearchAnimation'}">
343
344
  <div class="SearchIcon">
344
345
  <svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg">
345
346
  <path stroke="#212121" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"/>
346
347
  <circle cx="6.5" cy="6.5" r="5.75" stroke="#212121" stroke-width="1.5"/>
347
348
  </svg>
348
349
  </div>
349
- <input class="SearchInput {searchCancelled ? '' : 'SearchAnimation'}" type="search" placeholder="{$_('Translations.placeHolderSearchGames')}" bind:value={searchValue} on:focus={onFocus} bind:this={searchElement}>
350
+ <input class="SearchInput" type="search" placeholder="{$_('Translations.placeHolderSearchGames')}" bind:value={searchValue} on:focus={onFocus} bind:this={searchElement} maxlength={searchInputMaxLength}>
350
351
  <span on:click={() => clearSearch()} class="SearchClearButton { searchValue.length != 0 ? '' : 'NotVisible'}">
351
352
  <svg width="11" height="11" fill="none" xmlns="http://www.w3.org/2000/svg">
352
353
  <path d="m1.45 1.5 8.1 8M1.45 9.5l8.1-8" stroke="#717171" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
@@ -541,6 +542,8 @@
541
542
  display: flex;
542
543
  align-items: center;
543
544
  justify-content: center;
545
+ transition: all 0.2s cubic-bezier(1, 0, 0.46, 1.03);
546
+
544
547
 
545
548
  &Icon {
546
549
  position: relative;
@@ -552,7 +555,6 @@
552
555
 
553
556
  &Input {
554
557
  width: 50%;
555
- transition: all 0.2s cubic-bezier(1, 0, 0.46, 1.03);
556
558
  }
557
559
 
558
560
  &ClearButton{
@@ -563,15 +565,16 @@
563
565
  }
564
566
 
565
567
  &CancelButton {
566
- transition: all 0.2s cubic-bezier(1, 0, 0.46, 1.03);
567
568
  margin-left: 20px;
568
569
  }
569
570
 
570
571
  &Animation {
571
- width: 60%;
572
- outline: none;
573
- box-shadow: 0 5px 7px rgba(0,0,0,0.25);
574
- background-color: rgba(255, 255, 255, 0.2);
572
+ transform: scaleX(110%);
573
+ & Input {
574
+ outline: none;
575
+ box-shadow: 0 5px 7px rgba(0,0,0,0.25);
576
+ background-color: rgba(255, 255, 255, 0.2);
577
+ }
575
578
  }
576
579
 
577
580
  &Message {