@everymatrix/player-account-gaming-limits-wrapper-2 0.0.365 → 0.0.368

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
@@ -20,26 +20,17 @@
20
20
  .header__name span { margin-right: 10px; font-weight: bold; }
21
21
  .webcomponent { padding: 10px 20px; }
22
22
  </style>
23
- <!--
24
- <header class="header">
25
- <div class="header__logo">
26
- <svg xmlns="http://www.w3.org/2000/svg" width="161" height="132" viewBox="0 0 161 132"><defs><linearGradient x1="0%" y1="50%" y2="50%" id="a"><stop stop-color="#2A3B8F" offset="0%"/><stop stop-color="#29ABE2" offset="100%"/></linearGradient><linearGradient x1="100%" y1="50%" x2="0%" y2="50%" id="c"><stop stop-color="#B4D44E" offset="0%"/><stop stop-color="#E7F716" offset="100%"/></linearGradient></defs><g fill="none" fill-rule="evenodd"><path fill="#166DA5" d="M160.6 65.9l-17.4 29.3-24.4-29.7 24.4-28.9z"/><path fill="#8FDB69" d="M141.3 100.2l-26.5-31.7-15.9 26.6 24.7 36.1z"/><path fill="#166DA5" d="M141 31.4l-26.2 31.8-15.9-26.6L123.6.9z"/><path fill="url(#a)" opacity=".95" d="M61.1 31.4H141L123.4.7H78.7z M114.8 63.3H159l-15.9-26.8H98.8"/><path fill="url(#c)" opacity=".95" d="M141.3 100.3H61l17.6 30.5h45z M114.8 68.4H159l-15.9 26.8H98.8"/><path fill="#010101" d="M78.6 130.8L41 65.8 79.1.8H37.9L.4 65.8l37.5 65z"/></g></svg>
27
- </div>
28
- <h1 class="header__name">
29
- <span>WEBCOMPONENT:</span> player-account-gaming-limits-wrapper-2
30
- </h1>
31
- </header> -->
32
23
 
33
24
  <div class="webcomponent">
34
25
  <player-account-gaming-limits-wrapper-2
35
- userid="4486158"
36
- session="92c1a714-5a6b-4c4b-96ea-50a133d898f7"
37
- endpoint="https://betathome-de-stage-api.stage.norway.everymatrix.com/"
38
- apiversion="gm16"
26
+ userid="4500790"
27
+ session="cf931f70-0545-42c4-b662-dbd70d3fff85"
28
+ endpoint="https://betathome-com-stage-api.stage.norway.everymatrix.com/"
29
+ apiversion="gmcore"
39
30
  currency = 'EUR'
40
31
  lang="en"
41
32
 
42
- includedlimits = "lugas, wager, deposit loss stake"
33
+ includedlimits = "wager, deposit loss stake"
43
34
  tablabels = 'Deposit Limit, Slots Limit, Other'
44
35
  historyenabled = "true"
45
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/player-account-gaming-limits-wrapper-2",
3
- "version": "0.0.365",
3
+ "version": "0.0.368",
4
4
  "main": "dist/player-account-gaming-limits-wrapper-2.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": "f4dabfce4df55a591981f327a670cc250a2ed257"
39
+ "gitHead": "8de3cc787cc97aec99916dfedb01ec69ac55ba98"
40
40
  }
@@ -1,4 +1,5 @@
1
1
  <svelte:options tag={null} />
2
+
2
3
  <script lang="ts">
3
4
  import '@everymatrix/player-account-gaming-limits-page-2-gmcore';
4
5
  import '@everymatrix/player-account-gaming-limits-page-2-gm16';
@@ -19,10 +20,7 @@
19
20
  export let clientstylingurl:string = '';
20
21
 
21
22
  let isLoading:boolean = true;
22
-
23
23
  let customStylingContainer:HTMLElement;
24
- let displayNone:boolean = false;
25
-
26
24
  let limitTabs:Array<string> = [];
27
25
  let tabLabelArray:Array<string>;
28
26
  let mainContainer:HTMLElement;
@@ -34,9 +32,9 @@
34
32
  isLoading = false;
35
33
  }
36
34
 
37
- const selectTab = (index):void => {
35
+ const selectTab = (index:number):void => {
38
36
  if (mainContainer.children.length > 0){
39
- for (let i = 0; i < mainContainer.children.length; i++) {
37
+ for (let i:number = 0; i < mainContainer.children.length; i++) {
40
38
  if (index === i) {
41
39
  mainContainer.children[i].classList.remove('hidden');
42
40
  tabsContainer?.children[i].classList.add('selected');
@@ -49,14 +47,12 @@
49
47
  }
50
48
 
51
49
  const setClientStyling = ():void => {
52
- let sheet = document.createElement('style');
50
+ let sheet:HTMLElement = document.createElement('style');
53
51
  sheet.innerHTML = clientstyling;
54
52
  customStylingContainer.appendChild(sheet);
55
53
  }
56
54
 
57
55
  const setClientStylingURL = ():void => {
58
- displayNone = true;
59
-
60
56
  let url:URL = new URL(clientstylingurl);
61
57
  let cssFile:HTMLElement = document.createElement('style');
62
58
 
@@ -67,7 +63,6 @@
67
63
 
68
64
  if (customStylingContainer) {
69
65
  setTimeout(() => { customStylingContainer.appendChild(cssFile) }, 1);
70
- setTimeout(() => { displayNone = false; }, 500);
71
66
  }
72
67
  });
73
68
  }
@@ -77,6 +72,7 @@
77
72
  $:clientstyling && setClientStyling();
78
73
  $:userid && session && endpoint && includedlimits && tablabels && determineTabs();
79
74
  </script>
75
+
80
76
  <div bind:this={customStylingContainer}>
81
77
  {#if isLoading}
82
78
  <!-- 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 -->
@@ -91,6 +87,17 @@
91
87
 
92
88
  <div class="player-account-gaming-limits-wrapper-2" bind:this={mainContainer}>
93
89
  {#each limitTabs as limits}
90
+ {#if apiversion == 'gmcore'}
91
+ <player-account-gaming-limits-page-2-gmcore class="hidden selected"
92
+ {lang}
93
+ {currency}
94
+ {limits}
95
+ {userid}
96
+ {session}
97
+ {endpoint}
98
+ {apiversion}
99
+ ></player-account-gaming-limits-page-2-gmcore>
100
+ {:else}
94
101
  <player-account-gaming-limits-page-2-gm16 class="hidden selected"
95
102
  {lang}
96
103
  {currency}
@@ -100,15 +107,16 @@
100
107
  {endpoint}
101
108
  {apiversion}
102
109
  ></player-account-gaming-limits-page-2-gm16>
110
+ {/if}
103
111
  {/each}
104
112
  </div>
105
113
  {#if historyenabled === 'true'}
106
- <player-account-gaming-limits-history-2
107
- {lang}
108
- {userid}
109
- {session}
110
- {endpoint}
111
- ></player-account-gaming-limits-history-2>
114
+ <player-account-gaming-limits-history-2
115
+ {lang}
116
+ {userid}
117
+ {session}
118
+ {endpoint}
119
+ ></player-account-gaming-limits-history-2>
112
120
  {/if}
113
121
  {/if}
114
122
  </div>
@@ -138,7 +146,7 @@
138
146
  }
139
147
 
140
148
  .LimitsTab {
141
- font-size: 0.9rem;
149
+ font-size: 18px;
142
150
  margin-bottom: 3px;
143
151
 
144
152
  display: flex;