@everymatrix/casino-header-controller 1.12.6 → 1.13.0
Sign up to get free protection for your applications and to get access to all the features.
package/index.html
CHANGED
@@ -22,25 +22,21 @@
|
|
22
22
|
</style>
|
23
23
|
|
24
24
|
<div class="webcomponent">
|
25
|
-
<casino-header-controller
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
gmversion="gm1.6"
|
41
|
-
displayoption="both"
|
42
|
-
></casino-header-controller>
|
43
|
-
|
25
|
+
<casino-header-controller _ngcontent-mup-c29="" session="01347826-ed6c-4305-80c7-1dab6b2fc151" userid="3920216" userroles="everyone,loggedIn,TestDemoCosmin" cmsendpoint="https://wt1-stage.everymatrix.com/apijson" env="stage" lang="en" languageslist="en,ro" endpoint="https://demo-api.stage.norway.everymatrix.com/v1" actionevent="HeaderMenuItemClicked" activecategory="/casino/RNG$new-sub-category$new-sub-category-1" clientstyling="
|
26
|
+
.HeaderWrapper{
|
27
|
+
position: fixed;
|
28
|
+
top: 0;
|
29
|
+
left: 0;
|
30
|
+
right: 0;
|
31
|
+
z-index: 99;
|
32
|
+
}
|
33
|
+
|
34
|
+
.HeaderMobileWrapper {
|
35
|
+
.HeaderContainer {
|
36
|
+
height: 55px;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
" currencyseparator="." currencydecimal="," currencyprecision="2" gmversion="gmcore"></casino-header-controller>
|
44
40
|
|
45
41
|
</div>
|
46
42
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@everymatrix/casino-header-controller",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.13.0",
|
4
4
|
"main": "dist/casino-header-controller.js",
|
5
5
|
"svelte": "src/index.ts",
|
6
6
|
"scripts": {
|
@@ -37,5 +37,5 @@
|
|
37
37
|
"publishConfig": {
|
38
38
|
"access": "public"
|
39
39
|
},
|
40
|
-
"gitHead": "
|
40
|
+
"gitHead": "1e1112223dbbcaa114d0dc15006eb09f2beabedd"
|
41
41
|
}
|
@@ -35,6 +35,11 @@
|
|
35
35
|
export let clientstyling:string = '';
|
36
36
|
export let clientstylingurl:string = '';
|
37
37
|
|
38
|
+
export let currencyseparator:string = '';
|
39
|
+
export let currencydecimal:string = '';
|
40
|
+
export let currencyprecision:string = '';
|
41
|
+
|
42
|
+
|
38
43
|
let primaryActiveIndex:string;
|
39
44
|
let secondaryActiveIndex:string;
|
40
45
|
let identity:string = "HeaderMenu";
|
@@ -233,15 +238,28 @@
|
|
233
238
|
}
|
234
239
|
|
235
240
|
const setActiveIndex = (activecategory, menuList) => {
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
return
|
242
|
-
}
|
243
|
-
}
|
241
|
+
let result = menuList.find(item => {
|
242
|
+
if (activecategory.indexOf('/sport') > -1) {
|
243
|
+
return item.path.indexOf(activecategory) > -1;
|
244
|
+
} else {
|
245
|
+
if (item.path.includes(activecategory)) {
|
246
|
+
return true;
|
247
|
+
}
|
248
|
+
}
|
249
|
+
});
|
250
|
+
|
251
|
+
if (!result) {
|
252
|
+
result = menuList.find(item => {
|
253
|
+
return item.path.split('/').indexOf(activecategory.split('/')[1]) > -1;
|
254
|
+
});
|
255
|
+
}
|
256
|
+
|
257
|
+
if (result) {
|
258
|
+
return result.id;
|
259
|
+
} else {
|
260
|
+
return -1;
|
244
261
|
}
|
262
|
+
}
|
245
263
|
|
246
264
|
const sendSliderData = ():void => {
|
247
265
|
window.postMessage({ type: 'SliderData', identity, data: mainMenuArray }, window.location.href);
|
@@ -364,7 +382,7 @@
|
|
364
382
|
|
365
383
|
<div class="HeaderTopActions" part="HeaderTopActions">
|
366
384
|
<div class="HeaderItemsMenu PrimaryMenu" part="HeaderItemsMenu PrimaryMenu">
|
367
|
-
<player-account-balance-modal {session} {userid} {endpoint} {lang} {clientstyling} {clientstylingurl} {customlocaleidentifier} {gmversion} {displaybalanceoption}/>
|
385
|
+
<player-account-balance-modal {session} {userid} {endpoint} {lang} {clientstyling} {clientstylingurl} {customlocaleidentifier} {gmversion} {displaybalanceoption} {currencyseparator} {currencydecimal} {currencyprecision} />
|
368
386
|
<div class="Item ItemDeposit" part="Item ItemDeposit" on:click={() => menuAction('deposit')}>{$_('deposit')}</div>
|
369
387
|
<div class="Item ItemAccount" part="Item ItemAccount" on:click={() => menuAction('myaccount')}>
|
370
388
|
<svg xmlns="http://www.w3.org/2000/svg" width="15" height="16.429" viewBox="0 0 15 16.429">
|
@@ -417,7 +435,7 @@
|
|
417
435
|
</nav>
|
418
436
|
<div class="HeaderTopActions" part="HeaderItemsMenu">
|
419
437
|
<div class="HeaderItemsMenu PrimaryMenu" part="HeaderItemsMenu PrimaryMenu">
|
420
|
-
<player-account-balance-modal {session} {userid} {endpoint} {lang} {clientstyling} {clientstylingurl} {customlocaleidentifier} {gmversion} {displaybalanceoption}/>
|
438
|
+
<player-account-balance-modal {session} {userid} {endpoint} {lang} {clientstyling} {clientstylingurl} {customlocaleidentifier} {gmversion} {displaybalanceoption} {currencyseparator} {currencydecimal} {currencyprecision}/>
|
421
439
|
<div class="Item ItemDeposit" part="Item ItemDeposit" on:click={() => menuAction('deposit')}>{$_('deposit')}</div>
|
422
440
|
<div class="Item ItemAccount" part="Item ItemAccount" on:click={() => menuAction('myaccount')}>
|
423
441
|
<svg xmlns="http://www.w3.org/2000/svg" width="15" height="16.429" viewBox="0 0 15 16.429">
|
@@ -547,9 +565,7 @@
|
|
547
565
|
|
548
566
|
<style lang="scss">
|
549
567
|
|
550
|
-
|
551
|
-
font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
552
|
-
}
|
568
|
+
|
553
569
|
|
554
570
|
.HeaderSlider {
|
555
571
|
width: 100%;
|