@everymatrix/casino-search 1.5.2 → 1.5.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/dist/casino-search.js +69 -97
- package/dist/casino-search.js.map +1 -1
- package/package.json +2 -2
- package/src/CasinoSearch.svelte +72 -56
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/casino-search",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.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": "
|
|
39
|
+
"gitHead": "455c9a0d14fef23d3698fbea37042c69e3aeed24"
|
|
40
40
|
}
|
package/src/CasinoSearch.svelte
CHANGED
|
@@ -329,22 +329,20 @@
|
|
|
329
329
|
$: clientstylingurl && customStylingContainer && setClientStylingURL();
|
|
330
330
|
|
|
331
331
|
</script>
|
|
332
|
-
<div class="{(getDevice(userAgent) !== 'PC') ? '
|
|
333
|
-
<div class="
|
|
334
|
-
<div class="
|
|
332
|
+
<div class="{(getDevice(userAgent) !== 'PC') ? '' : 'Desktop'} CasinoSearch" bind:this={customStylingContainer}>
|
|
333
|
+
<div class="Search">
|
|
334
|
+
<div class="SearchIcon">
|
|
335
335
|
<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
336
336
|
<path stroke="#212121" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"/>
|
|
337
337
|
<circle cx="6.5" cy="6.5" r="5.75" stroke="#212121" stroke-width="1.5"/>
|
|
338
338
|
</svg>
|
|
339
339
|
</div>
|
|
340
|
-
|
|
341
|
-
<input class="SearchInput" type="search" placeholder="{$_('Translations.placeHolderSearchGames')}" bind:value={searchValue} on:focus={onFocus} bind:this={searchElement}>
|
|
340
|
+
<input class="SearchInput {searchCancelled ? '' : 'SearchAnimation'}" type="search" placeholder="{$_('Translations.placeHolderSearchGames')}" bind:value={searchValue} on:focus={onFocus} bind:this={searchElement}>
|
|
342
341
|
<span on:click={() => clearSearch()} class="SearchClearButton { searchValue.length != 0 ? '' : 'NotVisible'}">
|
|
343
342
|
<svg width="11" height="11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
344
343
|
<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"/>
|
|
345
344
|
</svg>
|
|
346
345
|
</span>
|
|
347
|
-
</div>
|
|
348
346
|
<small on:click={() => cancelSearch()} class="SearchCancelButton {searchCancelled ? 'NotVisible' : ''}">
|
|
349
347
|
{$_('Translations.cancel')}
|
|
350
348
|
</small>
|
|
@@ -353,14 +351,14 @@
|
|
|
353
351
|
<p>{$_('Translations.loading')}</p>
|
|
354
352
|
{:else}
|
|
355
353
|
{#if searchActive == true && searchValue.length < 2}
|
|
356
|
-
<p class="
|
|
354
|
+
<p class="SearchMessage">{$_('Translations.recentSearch')}</p>
|
|
357
355
|
{#if searchArray.length == 0}
|
|
358
356
|
<div class="ResultsContainerError">
|
|
359
|
-
<p class="
|
|
357
|
+
<p class="SearchMessage">{$_('Translations.noRecentSearches')}</p>
|
|
360
358
|
</div>
|
|
361
359
|
{/if}
|
|
362
360
|
{:else if searchArray.length != 0}
|
|
363
|
-
<p class="
|
|
361
|
+
<p class="SearchMessage">{$_('Translations.searchResult')}</p>
|
|
364
362
|
{/if}
|
|
365
363
|
<div class="SearchResultsContainer {searchActive == true ? '': 'NotVisible'}">
|
|
366
364
|
{#if searchCancelled === false}
|
|
@@ -391,7 +389,7 @@
|
|
|
391
389
|
{/if}
|
|
392
390
|
{#if searchValue.length >= 2 && searchArray.length == 0}
|
|
393
391
|
<div class="ResultsContainerError">
|
|
394
|
-
<p class="
|
|
392
|
+
<p class="SearchMessage">{$_('Translations.notFound')}</p>
|
|
395
393
|
<p>{$_('Translations.notFoundText')}</p>
|
|
396
394
|
</div>
|
|
397
395
|
{/if}
|
|
@@ -421,44 +419,22 @@
|
|
|
421
419
|
box-sizing: border-box;
|
|
422
420
|
}
|
|
423
421
|
|
|
424
|
-
.CasinoSearchPc{
|
|
425
|
-
margin: 30px 16px;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
422
|
.CasinoSearch {
|
|
429
423
|
margin: 30px 16px;
|
|
430
424
|
}
|
|
431
425
|
|
|
432
|
-
.SearchPc{
|
|
433
|
-
display: flex;
|
|
434
|
-
align-items: center;
|
|
435
|
-
position: relative;
|
|
436
|
-
margin-bottom: 20px;
|
|
437
|
-
left:19%;
|
|
438
|
-
}
|
|
439
|
-
|
|
440
426
|
.Search {
|
|
441
427
|
display: flex;
|
|
442
428
|
align-items: center;
|
|
443
429
|
position: relative;
|
|
444
|
-
justify-content: space-between;
|
|
445
430
|
margin-bottom: 20px;
|
|
446
|
-
|
|
447
|
-
&IconPc{
|
|
448
|
-
position: absolute;
|
|
449
|
-
left: 20px;
|
|
450
|
-
z-index: 1;
|
|
451
|
-
|
|
452
|
-
svg {
|
|
453
|
-
height: 14px;
|
|
454
|
-
width: 13px;
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
431
|
|
|
458
432
|
&Icon{
|
|
459
433
|
position: absolute;
|
|
460
|
-
left:
|
|
434
|
+
left: 15px;
|
|
435
|
+
top: 50%;
|
|
461
436
|
z-index: 1;
|
|
437
|
+
transform: translateY(-50%);
|
|
462
438
|
|
|
463
439
|
svg {
|
|
464
440
|
height: 14px;
|
|
@@ -466,16 +442,6 @@
|
|
|
466
442
|
}
|
|
467
443
|
}
|
|
468
444
|
|
|
469
|
-
&ContainerPc{
|
|
470
|
-
width: 60%;
|
|
471
|
-
position: relative;
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
&Container {
|
|
475
|
-
width: 100%;
|
|
476
|
-
position: relative;
|
|
477
|
-
}
|
|
478
|
-
|
|
479
445
|
&Input {
|
|
480
446
|
border-radius: 4px;
|
|
481
447
|
border: 1px solid $color-light-grey;
|
|
@@ -484,7 +450,7 @@
|
|
|
484
450
|
font-size: 16px;
|
|
485
451
|
font-weight: 300;
|
|
486
452
|
padding: 14px 5px 14px 46px;
|
|
487
|
-
width:100%;
|
|
453
|
+
width: 100%;
|
|
488
454
|
|
|
489
455
|
&::placeholder {
|
|
490
456
|
color: $color-grey;
|
|
@@ -507,7 +473,7 @@
|
|
|
507
473
|
&ClearButton{
|
|
508
474
|
position: absolute;
|
|
509
475
|
top: 30%;
|
|
510
|
-
right:
|
|
476
|
+
right: 65px;
|
|
511
477
|
cursor: pointer;
|
|
512
478
|
}
|
|
513
479
|
|
|
@@ -518,14 +484,6 @@
|
|
|
518
484
|
cursor: pointer;
|
|
519
485
|
}
|
|
520
486
|
|
|
521
|
-
&MessagePc {
|
|
522
|
-
font-size: 18px;
|
|
523
|
-
font-weight: 600;
|
|
524
|
-
margin: 24px 0;
|
|
525
|
-
color: #FFFFFF;
|
|
526
|
-
margin-top:90px
|
|
527
|
-
}
|
|
528
|
-
|
|
529
487
|
&Message {
|
|
530
488
|
font-size: 18px;
|
|
531
489
|
font-weight: 600;
|
|
@@ -556,7 +514,65 @@
|
|
|
556
514
|
}
|
|
557
515
|
|
|
558
516
|
.NotVisible {
|
|
559
|
-
|
|
517
|
+
display: none;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
.Desktop {
|
|
521
|
+
|
|
522
|
+
.NotVisible {
|
|
523
|
+
opacity: 0;
|
|
524
|
+
visibility: hidden;
|
|
525
|
+
display: inline;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
&.CasinoSearch {
|
|
529
|
+
margin: 30px 16px;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.Search {
|
|
533
|
+
display: flex;
|
|
534
|
+
align-items: center;
|
|
535
|
+
justify-content: center;
|
|
536
|
+
|
|
537
|
+
&Icon {
|
|
538
|
+
position: relative;
|
|
539
|
+
top: 0;
|
|
540
|
+
left: 0;
|
|
541
|
+
transform: translateY(0);
|
|
542
|
+
margin-right: -28px;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
&Input {
|
|
546
|
+
width: 50%;
|
|
547
|
+
transition: all 0.2s cubic-bezier(1, 0, 0.46, 1.03);
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
&ClearButton{
|
|
551
|
+
position: relative;
|
|
552
|
+
top: 0;
|
|
553
|
+
right: 0;
|
|
554
|
+
margin-left: -23px;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
&CancelButton {
|
|
558
|
+
transition: all 0.2s cubic-bezier(1, 0, 0.46, 1.03);
|
|
559
|
+
margin-left: 20px;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
&Animation {
|
|
563
|
+
width: 60%;
|
|
564
|
+
outline: none;
|
|
565
|
+
box-shadow: 0 5px 7px rgba(0,0,0,0.25);
|
|
566
|
+
background-color: rgba(255, 255, 255, 0.2);
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
&Message {
|
|
570
|
+
font-size: 18px;
|
|
571
|
+
font-weight: 600;
|
|
572
|
+
margin: 24px 0;
|
|
573
|
+
margin-top:90px
|
|
574
|
+
}
|
|
575
|
+
}
|
|
560
576
|
}
|
|
561
577
|
|
|
562
578
|
</style>
|