@everymatrix/player-account-gaming-limits-wrapper-2 0.0.404 → 0.0.405

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": "0.0.404",
3
+ "version": "0.0.405",
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.404",
33
- "@everymatrix/player-account-gaming-limits-page-2-gm16": "^0.0.404",
34
- "@everymatrix/player-account-gaming-limits-page-2-gmcore": "^0.0.404",
32
+ "@everymatrix/player-account-gaming-limits-history-2": "^0.0.405",
33
+ "@everymatrix/player-account-gaming-limits-page-2-gm16": "^0.0.405",
34
+ "@everymatrix/player-account-gaming-limits-page-2-gmcore": "^0.0.405",
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": "6ff29e92718b7de1f9dc974bd643e9f108dcd3fd"
42
+ "gitHead": "3c9d8400ed7c29ed065e75cd6eebf9ffae3461d7"
43
43
  }
@@ -6,6 +6,7 @@
6
6
  import '@everymatrix/player-account-gaming-limits-page-2-gmcore';
7
7
  import '@everymatrix/player-account-gaming-limits-page-2-gm16';
8
8
  import '@everymatrix/player-account-gaming-limits-history-2';
9
+ import { each } from 'svelte/internal';
9
10
 
10
11
  export let lang:string = '';
11
12
  export let userid:string = '';
@@ -23,15 +24,32 @@
23
24
 
24
25
  let isLoading:boolean = true;
25
26
  let customStylingContainer:HTMLElement;
26
- let limitTabs:Array<string> = [];
27
+ let limitTabs:Array<any> = [];
28
+ let limitMinMax:object = {};
29
+
27
30
  let tabLabelArray:Array<string>;
28
31
  let mainContainer:HTMLElement | undefined = undefined;
29
32
  let tabsContainer:HTMLElement | undefined = undefined;
30
33
 
31
34
  const determineTabs = ():void => {
32
- limitTabs = includedlimits.split(',').map(word => word.trim());
35
+ let eachLimit;
36
+ let limits = includedlimits.split('; ')
37
+ limits.forEach(element => {
38
+ if( element.indexOf(':') >= 0 ){
39
+ eachLimit = element.slice(0, element.indexOf(':'))
40
+ limitTabs.push(eachLimit)
41
+ limitMinMax[eachLimit] = element.slice(element.indexOf(':') + 1).trim()
42
+ } else {
43
+ limitTabs.push(element)
44
+ }
45
+ });
46
+
33
47
  tabLabelArray = tablabels.split(',').map(word => word.trim());
34
48
  isLoading = false;
49
+
50
+ if(limitMinMax){
51
+ window.postMessage({ type: 'SetLimitsMinMax', limitMinMax}, window.location.href);
52
+ }
35
53
  }
36
54
 
37
55
  const selectTab = (index:number):void => {