@everymatrix/player-account-gaming-limits-wrapper-2 0.0.388 → 0.0.390
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/index.html
CHANGED
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
<div class="webcomponent">
|
|
25
25
|
<player-account-gaming-limits-wrapper-2 endpoint="https://betathome-de-stage-api.stage.norway.everymatrix.com/" session="499b548a-73fd-45d1-a56e-2256b609513e" userid="4229869" currency="EUR" includedlimits="deposit, wager, deposit wager loss" tablabels="Deposit limit, Slots limit, Other limits" historyenabled="true" apiversion="gm16" lang="en"></player-account-gaming-limits-wrapper-2>
|
|
26
|
+
<player-account-gaming-limits-wrapper-2 endpoint="https://betathomecom.nwacdn.com/" session="270e163a-e9b1-4e12-ba74-7b3ff167d594" userid="15335603" currency="EUR" includedlimits="deposit" tablabels="Deposit" historyenabled="false" apiversion="gmcore" lang="en"></player-account-gaming-limits-wrapper-2>
|
|
26
27
|
</div>
|
|
27
28
|
|
|
28
29
|
</body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/player-account-gaming-limits-wrapper-2",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.390",
|
|
4
4
|
"main": "dist/player-account-gaming-limits-wrapper-2.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"typescript": "^3.9.3"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@everymatrix/player-account-gaming-limits-history-2": "^0.0.
|
|
33
|
-
"@everymatrix/player-account-gaming-limits-page-2-gm16": "^0.0.
|
|
34
|
-
"@everymatrix/player-account-gaming-limits-page-2-gmcore": "^0.0.
|
|
32
|
+
"@everymatrix/player-account-gaming-limits-history-2": "^0.0.390",
|
|
33
|
+
"@everymatrix/player-account-gaming-limits-page-2-gm16": "^0.0.390",
|
|
34
|
+
"@everymatrix/player-account-gaming-limits-page-2-gmcore": "^0.0.390",
|
|
35
35
|
"cross-env": "^7.0.3",
|
|
36
36
|
"sirv-cli": "^1.0.0",
|
|
37
37
|
"svelte": "^3.0.0"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "56b9e91f90c8306b4a383dd6411b1de4f7e540ca"
|
|
43
43
|
}
|
|
@@ -29,14 +29,13 @@
|
|
|
29
29
|
let tabsContainer:HTMLElement | undefined = undefined;
|
|
30
30
|
|
|
31
31
|
const determineTabs = ():void => {
|
|
32
|
-
console.log('hello')
|
|
33
32
|
limitTabs = includedlimits.split(',').map(word => word.trim());
|
|
34
33
|
tabLabelArray = tablabels.split(',').map(word => word.trim());
|
|
35
34
|
isLoading = false;
|
|
36
35
|
}
|
|
37
36
|
|
|
38
37
|
const selectTab = (index:number):void => {
|
|
39
|
-
if (mainContainer.children.length > 0){
|
|
38
|
+
if (mainContainer.children.length > 0) {
|
|
40
39
|
for (let i:number = 0; i < mainContainer.children.length; i++) {
|
|
41
40
|
if (index === i) {
|
|
42
41
|
mainContainer.children[i].classList.remove('hidden');
|
|
@@ -78,11 +77,15 @@
|
|
|
78
77
|
});
|
|
79
78
|
|
|
80
79
|
$: userid && session && endpoint && includedlimits && tablabels && lang && determineTabs();
|
|
81
|
-
$: mainContainer && selectTab(0);
|
|
80
|
+
$: mainContainer && !isLoading && selectTab(0);
|
|
82
81
|
$: clientstylingurl && setClientStylingURL();
|
|
83
82
|
$: clientstyling && setClientStyling();
|
|
84
83
|
</script>
|
|
85
84
|
|
|
85
|
+
<svelte:head>
|
|
86
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
87
|
+
</svelte:head>
|
|
88
|
+
|
|
86
89
|
<div bind:this={customStylingContainer}>
|
|
87
90
|
{#if isLoading}
|
|
88
91
|
<!-- Just show nothing, this is loading exposed attributes, not making a fetch. It takes an instant, but prevents nested widgets from rendering with empty attributes -->
|
|
@@ -95,41 +98,43 @@
|
|
|
95
98
|
</div>
|
|
96
99
|
{/if}
|
|
97
100
|
|
|
98
|
-
<div class="
|
|
99
|
-
|
|
100
|
-
{#
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
101
|
+
<div class="LimitsWrapper">
|
|
102
|
+
<div class="player-account-gaming-limits-wrapper-2" bind:this={mainContainer}>
|
|
103
|
+
{#each limitTabs as limits}
|
|
104
|
+
{#if apiversion == 'gmcore'}
|
|
105
|
+
<player-account-gaming-limits-page-2-gmcore class="hidden selected"
|
|
106
|
+
{lang}
|
|
107
|
+
{currency}
|
|
108
|
+
{limits}
|
|
109
|
+
{userid}
|
|
110
|
+
{session}
|
|
111
|
+
{endpoint}
|
|
112
|
+
{apiversion}
|
|
113
|
+
></player-account-gaming-limits-page-2-gmcore>
|
|
114
|
+
{:else}
|
|
115
|
+
<player-account-gaming-limits-page-2-gm16 class="hidden selected"
|
|
116
|
+
{lang}
|
|
117
|
+
{currency}
|
|
118
|
+
{limits}
|
|
119
|
+
{userid}
|
|
120
|
+
{session}
|
|
121
|
+
{endpoint}
|
|
122
|
+
{apiversion}
|
|
123
|
+
></player-account-gaming-limits-page-2-gm16>
|
|
124
|
+
{/if}
|
|
125
|
+
{/each}
|
|
126
|
+
</div>
|
|
127
|
+
{#if historyenabled === 'true'}
|
|
128
|
+
<player-account-gaming-limits-history-2
|
|
129
|
+
{lang}
|
|
130
|
+
{userid}
|
|
131
|
+
{session}
|
|
132
|
+
{endpoint}
|
|
133
|
+
{apiversion}
|
|
134
|
+
></player-account-gaming-limits-history-2>
|
|
135
|
+
{/if}
|
|
136
|
+
</div>
|
|
131
137
|
{/if}
|
|
132
|
-
{/if}
|
|
133
138
|
</div>
|
|
134
139
|
<style lang="scss">
|
|
135
140
|
:host {
|
|
@@ -148,13 +153,20 @@
|
|
|
148
153
|
box-sizing: border-box;
|
|
149
154
|
}
|
|
150
155
|
|
|
156
|
+
.LimitsWrapper {
|
|
157
|
+
display: flex;
|
|
158
|
+
flex-direction: column;
|
|
159
|
+
}
|
|
160
|
+
|
|
151
161
|
.TabsContainer {
|
|
152
|
-
height:
|
|
162
|
+
height: 50px;
|
|
153
163
|
display: flex;
|
|
154
164
|
margin-bottom: 12px;
|
|
155
165
|
cursor: pointer;
|
|
156
166
|
border-bottom: 1px solid #ccc;
|
|
157
167
|
justify-content: center;
|
|
168
|
+
background: #fff;
|
|
169
|
+
box-shadow: 0 0.15rem 0.2rem 0 rgba(0, 0, 0, 0.12);
|
|
158
170
|
}
|
|
159
171
|
|
|
160
172
|
.LimitsTab {
|
|
@@ -175,8 +187,8 @@
|
|
|
175
187
|
}
|
|
176
188
|
|
|
177
189
|
.selected {
|
|
178
|
-
border-bottom: 0.2rem solid #
|
|
179
|
-
color: #
|
|
190
|
+
border-bottom: 0.2rem solid #002554;
|
|
191
|
+
color: #002554;
|
|
180
192
|
margin: 0;
|
|
181
193
|
}
|
|
182
194
|
</style>
|