@everymatrix/player-account-gaming-limits-wrapper-2 1.37.2 → 1.37.4

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-wrapper-2",
3
- "version": "1.37.2",
3
+ "version": "1.37.4",
4
4
  "main": "dist/player-account-gaming-limits-wrapper-2.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -35,5 +35,5 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "0a314fe46510038a31ea77b611f22f5429a56d49"
38
+ "gitHead": "863252ebf7c846696d9b388f0d288993dbd5065c"
39
39
  }
@@ -87,11 +87,11 @@
87
87
  if (mainContainer.children.length > 0) {
88
88
  for (let i:number = 0; i < mainContainer.children.length; i++) {
89
89
  if (index === i) {
90
- mainContainer.children[i].classList.remove('Hidden');
91
- tabsContainer?.children[i].classList.add('Selected');
90
+ mainContainer.children[i].classList.remove('hidden');
91
+ tabsContainer?.children[i].classList.add('selected');
92
92
  } else {
93
- mainContainer.children[i].classList.add('Hidden');
94
- tabsContainer?.children[i].classList.remove('Selected');
93
+ mainContainer.children[i].classList.add('hidden');
94
+ tabsContainer?.children[i].classList.remove('selected');
95
95
  }
96
96
  }
97
97
  }
@@ -142,15 +142,15 @@
142
142
  <div class="TitleSection">
143
143
  {#if isMobile}
144
144
  <div class="MenuReturnButton" part="MenuReturnButton" on:click={() => toggleScreen()}>
145
- <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15"><defs><style>.aaa{fill:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));}</style></defs><g transform="translate(-20 -158)">
145
+ <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15"><defs><style>.aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}</style></defs><g transform="translate(-20 -158)">
146
146
  <g transform="translate(20 158)">
147
147
  <path class="aaa" d="M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z" transform="translate(15 15) rotate(180)"/>
148
148
  </g></g>
149
149
  </svg>
150
- <h2 class="GamingLimitsTitleMobile">{$_('title')}</h2>
150
+ <h2 class="GamingLimitsTitleMobile">{$_('titleLimitsWrapper2')}</h2>
151
151
  </div>
152
152
  {/if}
153
- <h2 class="GamingLimitsTitle {isMobile ? 'Hidden' : ''}">{$_('title')}</h2>
153
+ <h2 class="GamingLimitsTitle {isMobile ? 'Hidden' : ''}">{$_('titleLimitsWrapper2')}</h2>
154
154
  </div>
155
155
  {#if isLoading}
156
156
  <!-- 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 -->
@@ -162,157 +162,138 @@
162
162
  {/each}
163
163
  </div>
164
164
  {/if}
165
- <div class="GamingLimitsContent">
166
- <div class="PlayerAccountGamingLmitsWrapper2" bind:this={mainContainer}>
167
- {#each limitTabs as _, i}
168
- <player-account-gaming-limits-page-2-gm16 class="Hidden Selected"
169
- {lang}
170
- {currency}
171
- amountsconfig = {amountsArray[i]}
172
- periodsconfig = {periodsArray[i]}
173
- limittabindex = {i + 1}
174
- {userid}
175
- {deletelimit}
176
- {enablecompliancetext}
177
- {session}
178
- {endpoint}
179
- {apiversion}
180
- {clientstyling}
181
- {clientstylingurl}
182
- {translationurl}
183
- {customcurrencysymbols}
184
- ></player-account-gaming-limits-page-2-gm16>
185
- {/each}
186
- </div>
187
- {#if historyenabled === 'true'}
188
- <player-account-gaming-limits-history-2
189
- {lang}
190
- {userid}
191
- {session}
192
- {endpoint}
193
- {apiversion}
194
- {numberofentries}
195
- {clientstyling}
196
- {clientstylingurl}
197
- {translationurl}
198
- {customcurrencysymbols}
199
- ></player-account-gaming-limits-history-2>
200
- {/if}
201
-
165
+ <div class="PlayerAccountGamingLmitsWrapper2" bind:this={mainContainer}>
166
+ {#each limitTabs as _, i}
167
+ <player-account-gaming-limits-page-2-gm16 class="hidden selected"
168
+ {lang}
169
+ {currency}
170
+ amountsconfig = {amountsArray[i]}
171
+ periodsconfig = {periodsArray[i]}
172
+ limittabindex = {i + 1}
173
+ {userid}
174
+ {deletelimit}
175
+ {enablecompliancetext}
176
+ {session}
177
+ {endpoint}
178
+ {apiversion}
179
+ {clientstyling}
180
+ {clientstylingurl}
181
+ {translationurl}
182
+ {customcurrencysymbols}
183
+ ></player-account-gaming-limits-page-2-gm16>
184
+ {/each}
202
185
  </div>
186
+ {#if historyenabled === 'true'}
187
+ <player-account-gaming-limits-history-2
188
+ {lang}
189
+ {userid}
190
+ {session}
191
+ {endpoint}
192
+ {apiversion}
193
+ {numberofentries}
194
+ {clientstyling}
195
+ {clientstylingurl}
196
+ {translationurl}
197
+ {customcurrencysymbols}
198
+ ></player-account-gaming-limits-history-2>
199
+ {/if}
203
200
  {/if}
204
201
  </div>
205
202
  </div>
206
203
  <style lang="scss">
207
204
  :host {
208
- font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
209
- color: #666;
210
- }
211
-
212
- *, *::before, *::after {
213
- margin: 0;
214
- padding: 0;
215
- list-style: none;
216
- text-decoration: none;
217
- outline: none;
218
- box-sizing: border-box;
219
- }
220
-
221
- .GamingLimitsWrapper {
222
- padding: 50px;
223
- color: var(--emfe-w-pam-color-primary, #22B04E);
224
- background-color: var(--emfe-w-pam-color-bg, #F1F1F1);
225
- border-radius: var(--emw--border-radius-large, 20px);
226
- min-height: 1000px;
227
- display: flex;
228
- flex-direction: column;
229
-
230
- &.GamingLimitsWrapperMobile {
231
- padding: 20px 15px;
232
- .GamingLimitsContent, .PlayerAccountGamingLmitsWrapper2, .LimitsTab {
233
- flex-direction: column;
234
- width: 100%;
235
- height: fit-content;
236
- padding: 5px 0;
237
- font-size: 10px;
238
- margin-right: 5px;
239
- }
240
- // .LimitsList {
241
- // font-size: 12px;
242
- // background-color: red;
243
- // }
205
+ font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
206
+ color: #666;
244
207
  }
245
208
 
246
- .GamingLimitsContent {
247
- display: flex;
248
- flex-direction: row;
209
+ *,
210
+ *::before,
211
+ *::after {
212
+ margin: 0;
213
+ padding: 0;
214
+ list-style: none;
215
+ text-decoration: none;
216
+ outline: none;
217
+ box-sizing: border-box;
249
218
  }
250
219
 
251
- .LimitsWrapper, .TabsContainer, .LimitsTab {
220
+ .GamingLimitsWrapper{
221
+ padding: 50px 50px 30px 50px;
222
+ }
223
+
224
+ .GamingLimitsWrapper.GamingLimitsWrapperMobile{
225
+ padding: 20px 15px;
226
+ }
227
+
228
+ .LimitsWrapper {
252
229
  display: flex;
253
230
  flex-direction: column;
254
- align-items: center;
255
- flex-direction: row;
256
231
  }
257
232
 
258
233
  .TabsContainer {
259
234
  height: 50px;
235
+ display: flex;
260
236
  margin-bottom: 12px;
261
237
  cursor: pointer;
262
- justify-content: left;
263
- color: var(--emw--color-typography-contrast, #444444);
238
+ border-bottom: 1px solid var(--emfe-w-color-gray-300, #58586B);
239
+ justify-content: center;
240
+ background: var(--emfe-w-color-white, #FFFFFF);
241
+ box-shadow: 0 0.15rem 0.2rem 0 rgba(0, 0, 0, 0.12);
264
242
  }
265
243
 
266
244
  .LimitsTab {
267
- font-size: 16px;
245
+ font-size: 1.3rem;
268
246
  line-height: 1.4rem;
269
- text-transform: uppercase;
270
- padding: 10px 40px;
271
- background-color: var(--emw--color-grey-150, #C0CBC3);
272
- border-radius: var(--emw--border-radius-large, 50px);
273
- margin-right: 20px;
247
+ margin-bottom: 3px;
274
248
 
275
- }
249
+ display: flex;
250
+ justify-content: center;
251
+ align-items: center;
252
+ padding: 0 1rem;
276
253
 
277
- .Selected {
278
- color: var(--emw--color-typpgraphy, #FFFFFF);
279
- background: linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));
254
+ box-sizing: content-box;
280
255
  }
281
-
282
- .PlayerAccountGamingLmitsWrapper2 {
283
- margin-bottom: 20px;
284
- width: 65%;
256
+
257
+ .hidden {
258
+ display: none;
285
259
  }
286
- }
287
260
 
288
- .Hidden {
289
- display: none;
290
- }
261
+ h2{
262
+ margin: 20px 0px;
263
+ }
291
264
 
292
- h2 {
293
- margin: 20px 0;
294
- }
265
+ .PlayerAccountGamingLmitsWrapper2{
266
+ margin-bottom: 20px;
267
+ }
295
268
 
296
- .MenuReturnButton {
297
- color: var(--emfe-w-pam-color-primary, #22B04E);
298
- display: inline-flex;
299
- align-items: center;
300
- column-gap: 10px;
301
- margin-bottom: 10px;
269
+ .MenuReturnButton{
270
+ color: var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));
271
+ display: inline-flex;
272
+ align-items: center;
273
+ column-gap: 10px;
274
+ margin-bottom: 10px;
275
+ & svg {
276
+ fill: var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));
277
+ }
278
+ }
302
279
 
303
- & svg {
304
- fill: var(--emfe-w-pam-color-primary, #22B04E);
280
+ .GamingLimitsTitle{
281
+ font-size: 26px;
282
+ color: var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));
283
+ font-weight: 400;
305
284
  }
306
- }
307
-
308
- .GamingLimitsTitle {
309
- font-size: 26px;
310
- color: var(--emfe-w-pam-color-primary, #22B04E);
311
- font-weight: 400;
312
-
313
- &Mobile {
285
+
286
+ .GamingLimitsTitleMobile {
314
287
  font-size: 16px;
315
288
  }
316
- }
317
289
 
290
+ .GamingLimitsTitleNone {
291
+ display: none;
292
+ }
293
+
294
+ .selected {
295
+ border-bottom: 0.2rem solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));
296
+ color: var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));
297
+ margin: 0;
298
+ }
318
299
  </style>
@@ -1,32 +1,32 @@
1
1
  export const TRANSLATIONS = {
2
2
  "en": {
3
- "title": "Limits"
3
+ "titleLimitsWrapper2": "Limits"
4
4
  },
5
5
  "zh-hk": {
6
- "title": "Limits"
6
+ "titleLimitsWrapper2": "Limits"
7
7
  },
8
8
  "fr": {
9
- "title": "Limits"
9
+ "titleLimitsWrapper2": "Limits"
10
10
  },
11
11
  "ro": {
12
- "title": "Limits"
12
+ "titleLimitsWrapper2": "Limits"
13
13
  },
14
14
  "es": {
15
- "title": "Limits"
15
+ "titleLimitsWrapper2": "Limits"
16
16
  },
17
17
  "pt": {
18
- "title": "Limits"
18
+ "titleLimitsWrapper2": "Limits"
19
19
  },
20
20
  "hr": {
21
- "title": "Ograničenja"
21
+ "titleLimitsWrapper2": "Ograničenja"
22
22
  },
23
23
  "pt-br": {
24
- "title": "Limites"
24
+ "titleLimitsWrapper2": "Limites"
25
25
  },
26
26
  "es-mx": {
27
- "title": "Límites"
27
+ "titleLimitsWrapper2": "Límites"
28
28
  },
29
29
  "tr": {
30
- "title": "Sınırlar"
30
+ "titleLimitsWrapper2": "Sınırlar"
31
31
  }
32
32
  }