@everymatrix/casino-header-controller-nd 1.37.5 → 1.37.7
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-header-controller-nd",
|
|
3
|
-
"version": "1.37.
|
|
3
|
+
"version": "1.37.7",
|
|
4
4
|
"main": "dist/casino-header-controller-nd.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "af78ab396ff52a67f38d5f27034fb755e7bbddfa"
|
|
46
46
|
}
|
|
@@ -6,9 +6,8 @@
|
|
|
6
6
|
import { _, addNewMessages, setLocale, setupI18n } from './i18n';
|
|
7
7
|
import { TRANSLATIONS } from './translations';
|
|
8
8
|
|
|
9
|
-
import '@everymatrix/casino-
|
|
10
|
-
import '@everymatrix/
|
|
11
|
-
import '@everymatrix/player-account-balance-modal';
|
|
9
|
+
import '@everymatrix/casino-hamburger-menu-nd';
|
|
10
|
+
import '@everymatrix/player-account-balance-modal-nd';
|
|
12
11
|
import '@everymatrix/player-deposit';
|
|
13
12
|
|
|
14
13
|
import * as countryFlags from 'country-flag-icons/string/3x2';
|
|
@@ -101,6 +100,7 @@
|
|
|
101
100
|
let logoPath: string = '';
|
|
102
101
|
let shortCashierActivated: boolean = false;
|
|
103
102
|
let isBalanceOpened: boolean = false;
|
|
103
|
+
let languageValue: string;
|
|
104
104
|
|
|
105
105
|
const gtagCall = (eventName: string): void => {
|
|
106
106
|
// @ts-ignore
|
|
@@ -150,12 +150,17 @@
|
|
|
150
150
|
break;
|
|
151
151
|
|
|
152
152
|
case 'language':
|
|
153
|
+
languageValue = determineFlag();
|
|
153
154
|
window.postMessage({ type: 'LanguageChanged', selectedLanguage }, window.location.href);
|
|
154
155
|
break;
|
|
155
156
|
|
|
156
157
|
case 'page':
|
|
157
158
|
window.postMessage({ type: 'NavigateTo', item: data, path: data.path });
|
|
158
159
|
break;
|
|
160
|
+
|
|
161
|
+
case 'closeLanguageSelector':
|
|
162
|
+
isOptionsListVisible = false;
|
|
163
|
+
break;
|
|
159
164
|
}
|
|
160
165
|
}
|
|
161
166
|
|
|
@@ -278,6 +283,7 @@
|
|
|
278
283
|
}
|
|
279
284
|
|
|
280
285
|
const initialLoad = (): void => {
|
|
286
|
+
languageValue = determineFlag();
|
|
281
287
|
languagesArray = languageslist.replace(/ /g,'').split(',');
|
|
282
288
|
languagesArray = languagesArray.map((language:string) => language.toUpperCase());
|
|
283
289
|
|
|
@@ -468,7 +474,7 @@
|
|
|
468
474
|
{#if isLoggedIn}
|
|
469
475
|
<div class="BalanceDepositWrapper">
|
|
470
476
|
<div class="Balance {isBalanceOpened ? 'Open' : ''}" bind:this={balanceContainer}>
|
|
471
|
-
<player-account-balance-modal {session} {userid} {endpoint} {lang} {clientstyling} {clientstylingurl} {customlocaleidentifier} {gmversion} {displaybalanceoption} {currencyseparator} {currencydecimal} {currencyprecision} />
|
|
477
|
+
<player-account-balance-modal-nd {session} {userid} {endpoint} {lang} {clientstyling} {clientstylingurl} {customlocaleidentifier} {gmversion} {displaybalanceoption} {currencyseparator} {currencydecimal} {currencyprecision} />
|
|
472
478
|
</div>
|
|
473
479
|
<div class="Deposit {isBalanceOpened ? 'Open' : ''}" bind:this={depositContainer}>
|
|
474
480
|
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
@@ -567,9 +573,9 @@
|
|
|
567
573
|
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
568
574
|
<div class="SelectedOption" on:click={() => toggleLanguageDropdown()}>
|
|
569
575
|
{#if countryflagheader == 'true' }
|
|
570
|
-
<span class="LanguageName">{@html countryFlags[
|
|
576
|
+
<span class="LanguageName">{@html countryFlags[languageValue]}</span>
|
|
571
577
|
{:else}
|
|
572
|
-
<span class="LanguageName">{
|
|
578
|
+
<span class="LanguageName">{languageValue}</span>
|
|
573
579
|
{/if}
|
|
574
580
|
<span class=" {isOptionsListVisible ? 'TriangleActive' : 'TriangleInactive'}">
|
|
575
581
|
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="6.835" viewBox="0 0 14 6.835">
|
|
@@ -618,6 +624,10 @@
|
|
|
618
624
|
</div>
|
|
619
625
|
</div>
|
|
620
626
|
{/if}
|
|
627
|
+
{#if isOptionsListVisible}
|
|
628
|
+
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
629
|
+
<div class="OptionListOverlay" on:click={() => menuAction('closeLanguageSelector')} />
|
|
630
|
+
{/if}
|
|
621
631
|
</div>
|
|
622
632
|
<!--
|
|
623
633
|
{#if isLoggedIn}
|
|
@@ -937,7 +947,7 @@
|
|
|
937
947
|
{/if}
|
|
938
948
|
-->
|
|
939
949
|
|
|
940
|
-
<casino-hamburger-menu {cmsendpoint} {cmsenv} {userroles} {activecategory} {lang} {countryflaghamburger} {customlocaleidentifier} {languageslist} {clientstyling} {clientstylingurl}></casino-hamburger-menu>
|
|
950
|
+
<casino-hamburger-menu-nd {cmsendpoint} {cmsenv} {userroles} {activecategory} {lang} {countryflaghamburger} {customlocaleidentifier} {languageslist} {clientstyling} {clientstylingurl}></casino-hamburger-menu-nd>
|
|
941
951
|
|
|
942
952
|
<style lang="scss">
|
|
943
953
|
*,
|
|
@@ -1354,7 +1364,6 @@
|
|
|
1354
1364
|
.Slot3 {}
|
|
1355
1365
|
.LanguageSelector {
|
|
1356
1366
|
align-content: center;
|
|
1357
|
-
height: 100%;
|
|
1358
1367
|
cursor: pointer;
|
|
1359
1368
|
transform: all .3s linear;
|
|
1360
1369
|
color: white;
|
|
@@ -1407,8 +1416,9 @@
|
|
|
1407
1416
|
gap: 4px;
|
|
1408
1417
|
flex-direction: column;
|
|
1409
1418
|
border-radius: 10px;
|
|
1419
|
+
transition: all 0.4s ease;
|
|
1410
1420
|
opacity: 0;
|
|
1411
|
-
|
|
1421
|
+
visibility: hidden;
|
|
1412
1422
|
z-index: 6;
|
|
1413
1423
|
right: 5px;
|
|
1414
1424
|
color: var(--emw-header-typography, var(--emw-color-white, #FFFFFF));
|
|
@@ -1416,6 +1426,7 @@
|
|
|
1416
1426
|
|
|
1417
1427
|
&.Active {
|
|
1418
1428
|
opacity: 1;
|
|
1429
|
+
visibility: visible;
|
|
1419
1430
|
}
|
|
1420
1431
|
|
|
1421
1432
|
.FlagIcon {
|
|
@@ -1494,6 +1505,15 @@
|
|
|
1494
1505
|
}
|
|
1495
1506
|
}
|
|
1496
1507
|
}
|
|
1508
|
+
|
|
1509
|
+
.OptionListOverlay {
|
|
1510
|
+
position: fixed;
|
|
1511
|
+
top: 0;
|
|
1512
|
+
bottom: 0;
|
|
1513
|
+
left: 0;
|
|
1514
|
+
right: 0;
|
|
1515
|
+
z-index: 5;
|
|
1516
|
+
}
|
|
1497
1517
|
}
|
|
1498
1518
|
|
|
1499
1519
|
// ------> old stuff
|