@everymatrix/player-account-gaming-limits 0.0.290 → 0.0.293
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/player-account-gaming-limits",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.293",
|
|
4
4
|
"main": "dist/player-account-gaming-limits.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": "5b7aee827d2cbc67a99e15775c630c6f9ddfbf43"
|
|
40
40
|
}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
export let showsuccessnotification:boolean = false;
|
|
15
15
|
export let lang:string = 'en';
|
|
16
16
|
export let playercurrency:string = '';
|
|
17
|
+
export let separatelimits:string = 'true';
|
|
17
18
|
|
|
18
19
|
Object.keys(PlayerGamingLimitsCardTranslations).forEach((item) => {
|
|
19
20
|
addNewMessages(item, PlayerGamingLimitsCardTranslations[item]);
|
|
@@ -42,6 +43,10 @@
|
|
|
42
43
|
setLocale(lang);
|
|
43
44
|
}
|
|
44
45
|
|
|
46
|
+
const getLimitdata = (limitData) => {
|
|
47
|
+
window.postMessage({type: 'GetLimitData', limit: limitData}, window.location.href);
|
|
48
|
+
}
|
|
49
|
+
|
|
45
50
|
const messageHandler = (e:any) => {
|
|
46
51
|
if (e.data) {
|
|
47
52
|
switch(e.data.type) {
|
|
@@ -58,6 +63,7 @@
|
|
|
58
63
|
editLimitData = e.data.edit;
|
|
59
64
|
editLimitName = e.data.name;
|
|
60
65
|
limitsGroupView = false;
|
|
66
|
+
window.postMessage({ type: 'EditPlayerLimit', name: editLimitName }, window.location.href);
|
|
61
67
|
break;
|
|
62
68
|
|
|
63
69
|
case 'PlayerAccountBackToLimitsView':
|
|
@@ -72,9 +78,8 @@
|
|
|
72
78
|
}
|
|
73
79
|
}
|
|
74
80
|
|
|
75
|
-
onMount(() => {
|
|
81
|
+
onMount(() => {
|
|
76
82
|
window.addEventListener('message', messageHandler, false);
|
|
77
|
-
|
|
78
83
|
return () => {
|
|
79
84
|
window.removeEventListener('message', messageHandler);
|
|
80
85
|
}
|
|
@@ -102,14 +107,41 @@
|
|
|
102
107
|
<h2 class="PlayerGamingLimitsTitle {isMobile ? 'PlayerGamingLimitsTitleNone' : ''}" part="PlayerGamingLimitsTitle {isMobile ? 'PlayerGamingLimitsTitleNone' : ''}">{$_('gamingLimits.gamingLimitsText')}</h2>
|
|
103
108
|
|
|
104
109
|
<div class="PlayerAccountGamingLimitsContainer" part="PlayerAccountGamingLimitsContainer">
|
|
105
|
-
<player-account-gaming-limits-info-card
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
110
|
+
<player-account-gaming-limits-info-card
|
|
111
|
+
limitsdata={depositlimit}
|
|
112
|
+
limitname={depositLimitName}
|
|
113
|
+
{playercurrency} {lang}>
|
|
114
|
+
</player-account-gaming-limits-info-card>
|
|
115
|
+
<player-account-gaming-limits-info-card
|
|
116
|
+
limitsdata={wageringlimit}
|
|
117
|
+
limitname={wageringLimitName}
|
|
118
|
+
{playercurrency}
|
|
119
|
+
{lang}>
|
|
120
|
+
</player-account-gaming-limits-info-card>
|
|
121
|
+
<player-account-gaming-limits-info-card
|
|
122
|
+
limitsdata={losslimit}
|
|
123
|
+
limitname={lossLimitName}
|
|
124
|
+
{playercurrency}
|
|
125
|
+
{lang}>
|
|
126
|
+
</player-account-gaming-limits-info-card>
|
|
127
|
+
<player-account-gaming-limits-info-card
|
|
128
|
+
limitsdata={timelimit}
|
|
129
|
+
limitname={timeLimitName}
|
|
130
|
+
{playercurrency}
|
|
131
|
+
{lang}>
|
|
132
|
+
</player-account-gaming-limits-info-card>
|
|
109
133
|
</div>
|
|
110
134
|
</div>
|
|
111
135
|
{:else}
|
|
112
|
-
<player-account-gaming-limits-group-edit
|
|
136
|
+
<player-account-gaming-limits-group-edit
|
|
137
|
+
limitsdata={editLimitData}
|
|
138
|
+
limitname={editLimitName}
|
|
139
|
+
{showsuccessnotification}
|
|
140
|
+
{showdeletenotification}
|
|
141
|
+
{playercurrency}
|
|
142
|
+
{lang}
|
|
143
|
+
{separatelimits}>
|
|
144
|
+
</player-account-gaming-limits-group-edit>
|
|
113
145
|
{/if}
|
|
114
146
|
{/if}
|
|
115
147
|
|