@everymatrix/casino-header-controller-nd 1.39.3 → 1.40.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-header-controller-nd",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.40.0",
|
|
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": "ca3bc98c22d89e64f9d025debb2e59e3e4f22f4c"
|
|
46
46
|
}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
export let userid: string = '';
|
|
20
20
|
export let endpoint: string = '';
|
|
21
21
|
export let cmsendpoint: string = '';
|
|
22
|
-
export let cmsenv: string = '
|
|
22
|
+
export let cmsenv: string = '';
|
|
23
23
|
export let lang: string = 'en';
|
|
24
24
|
export let languageslist: string = 'en, ro';
|
|
25
25
|
export let activecategory: string = '';
|
|
@@ -55,6 +55,8 @@
|
|
|
55
55
|
export let currencydecimal: string = '';
|
|
56
56
|
export let currencyprecision: string = '';
|
|
57
57
|
|
|
58
|
+
export let gamification: string = 'false';
|
|
59
|
+
|
|
58
60
|
let activeIndex: number;
|
|
59
61
|
let customStylingContainer: HTMLElement;
|
|
60
62
|
let balanceContainer: HTMLElement;
|
|
@@ -430,12 +432,16 @@
|
|
|
430
432
|
$: session && setSession();
|
|
431
433
|
$: isShortCashierEnabled = shortcashierenabled.toLocaleLowerCase() == 'true';
|
|
432
434
|
$: lang && setActiveLanguage();
|
|
433
|
-
$: cmsendpoint && lang && languageslist && userroles && initialLoad();
|
|
435
|
+
$: cmsendpoint && lang && languageslist && userroles && cmsenv && initialLoad();
|
|
434
436
|
$: translationurl && setTranslationUrl();
|
|
435
437
|
$: clientstyling && customStylingContainer && setClientStyling();
|
|
436
438
|
$: clientstylingurl && customStylingContainer && setClientStylingURL();
|
|
437
439
|
</script>
|
|
438
440
|
|
|
441
|
+
<svelte:head>
|
|
442
|
+
<script type="module" src="https://unpkg.com/@everymatrix/gamification-dropdown"></script>
|
|
443
|
+
</svelte:head>
|
|
444
|
+
|
|
439
445
|
<div class="HeaderContainer" bind:this={customStylingContainer}>
|
|
440
446
|
<div class="MainNav">
|
|
441
447
|
{#if mobileView}
|
|
@@ -476,6 +482,11 @@
|
|
|
476
482
|
{/if}
|
|
477
483
|
</nav>
|
|
478
484
|
{#if isLoggedIn}
|
|
485
|
+
{#if gamification === 'true' && !mobileView}
|
|
486
|
+
<div class="GamificationWrapper">
|
|
487
|
+
<gamification-dropdown {session} {endpoint} language={lang} client-styling={clientstyling} client-styling-url={clientstylingurl} translation-url={translationurl}></gamification-dropdown>
|
|
488
|
+
</div>
|
|
489
|
+
{/if}
|
|
479
490
|
<div class="BalanceDepositWrapper">
|
|
480
491
|
<div class="Balance {isBalanceOpened ? 'Open' : ''}" bind:this={balanceContainer}>
|
|
481
492
|
<player-account-balance-modal-nd {session} {userid} {endpoint} {lang} {clientstyling} {clientstylingurl} {customlocaleidentifier} {gmversion} {displaybalanceoption} {currencyseparator} {currencydecimal} {currencyprecision} />
|
|
@@ -809,6 +820,10 @@
|
|
|
809
820
|
}
|
|
810
821
|
}
|
|
811
822
|
|
|
823
|
+
.GamificationWrapper{
|
|
824
|
+
margin-right: 16px;
|
|
825
|
+
}
|
|
826
|
+
|
|
812
827
|
.BalanceDepositWrapper {
|
|
813
828
|
height: 34px;
|
|
814
829
|
background-color: white;
|