@everymatrix/player-account-gaming-limits-group-edit 0.0.328 → 0.0.331

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-group-edit",
3
- "version": "0.0.328",
3
+ "version": "0.0.331",
4
4
  "main": "dist/player-account-gaming-limits-group-edit.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": "e6a5c4c056ea102bb8b9ff2fed506826f0f76867"
39
+ "gitHead": "5c0181c53436efa45b47eea2b32ccea002e3b1de"
40
40
  }
@@ -54,7 +54,7 @@
54
54
  // utilitary regex
55
55
  let validCurrentAmount:boolean = true;
56
56
  const regexValidators = {
57
- amount: /^[0-9]{0,7}$/,
57
+ amount: /^[0-9]{0,8}$/,
58
58
  time:/^[1-9]\d*$/
59
59
  }
60
60
  // variables used for storing data
@@ -66,24 +66,24 @@
66
66
 
67
67
  // arrays with the predefined standard values respective to the selected category
68
68
  let depositPredefinedValues = [
69
- { period: 'Daily', values: ["10000", "20000", "50000", "Custom"] },
70
- { period: 'Weekly', values: ["10000", "50000", "100000", "Custom"] },
71
- { period: 'Monthly', values: ["50000", "100000", "200000", "Custom"] }
69
+ { period: 'Daily', values: ["10000", "20000", "50000", "No limit", "Custom"] },
70
+ { period: 'Weekly', values: ["10000", "50000", "100000", "No limit", "Custom"] },
71
+ { period: 'Monthly', values: ["50000", "100000", "200000", "No limit", "Custom"] }
72
72
  ];
73
73
  let wageringLimitPredefinedValues = [
74
- { period: 'Daily', values: ["10000", "20000", "50000", "Custom"] },
75
- { period: 'Weekly', values: ["10000", "50000", "100000", "Custom"] },
76
- { period: 'Monthly', values: ["50000", "100000", "200000", "Custom"] }
74
+ { period: 'Daily', values: ["5000", "7000", "10000", "No limit", "Custom"] },
75
+ { period: 'Weekly', values: ["25000", "50000", "100000", "No limit", "Custom"] },
76
+ { period: 'Monthly', values: ["125000", "175000", "200000", "No limit", "Custom"] }
77
77
  ];
78
78
  let lossLimitPredefinedValues = [
79
- { period: 'Daily', values: ["10000", "20000", "50000", "Custom"] },
80
- { period: 'Weekly', values: ["10000", "50000", "100000", "Custom"] },
81
- { period: 'Monthly', values: ["50000", "100000", "200000", "Custom"] }
79
+ { period: 'Daily', values: ["5000", "7000", "10000", "No limit", "Custom"] },
80
+ { period: 'Weekly', values: ["25000", "50000", "100000", "No limit", "Custom"] },
81
+ { period: 'Monthly', values: ["125000", "175000", "200000", "No limit", "Custom"] }
82
82
  ];
83
83
  let timeLimitPredefinedValues = [
84
- { period: 'Daily', values: ["500", "1000", "1430", "Custom"] },
85
- { period: 'Weekly', values: ["5000", "7000", "10000", "Custom"] },
86
- { period: 'Monthly', values: ["20000", "30000", "43000", "Custom"] }
84
+ { period: 'Daily', values: ["500", "1000", "1430", "No limit", "Custom"] },
85
+ { period: 'Weekly', values: ["5000", "7000", "10000", "No limit", "Custom"] },
86
+ { period: 'Monthly', values: ["20000", "30000", "43000", "No limit", "Custom"] }
87
87
  ];
88
88
  let periodValues = ["Daily", "Weekly", "Monthly"];
89
89
 
@@ -183,7 +183,7 @@
183
183
 
184
184
  // @TODO: needs code refactoring - separate function for the switch cases
185
185
  const checkUserInputAmount = (data:any, index:number, isTimeAmount:boolean, referenceArray) => {
186
- switch (data.amount) {
186
+ switch (data.amount) {
187
187
  case 'Custom':
188
188
  if (limitname == 'Time Limit') {
189
189
  minTimeValue = 60;
@@ -210,7 +210,7 @@
210
210
  invalidIndexes[index] = 1;
211
211
  hasDifferences = false;
212
212
  }
213
- } else if (data.value && regexValidators.amount.test(data.value)) {
213
+ } else if (data.value && regexValidators.amount.test(data.value)) {
214
214
  invalidIndexes[index] = 0;
215
215
 
216
216
  if (data.period == referenceArray[index].period && data.value == referenceArray[index].amount) {
@@ -8,7 +8,7 @@ export const PlayerGamingLimitsEditTranslations = {
8
8
  changeLimitsText: `Are you sure you want to change the {limit}s?`,
9
9
  success: `Success lorem Ipsum is simply dummy text of the printing and typesetting industry.`,
10
10
  remove: `You have requested to remove this limit. This will be applied on `,
11
- invalidInputMessageLimit: `The amount needs to be between 0 and 99,999,999.`,
11
+ invalidInputMessageLimit: `The amount needs to be between 1 and 99,999,999.`,
12
12
  invalidInputMessageTime: `The time amount needs to be greater than {minTime} and below {maxTime} minutes.`,
13
13
  expirationDate: `Expiration Date:`,
14
14
  save: `Save`,
@@ -35,7 +35,7 @@ export const PlayerGamingLimitsEditTranslations = {
35
35
  changeLimitsText: `Etes-vous sûr de vouloir changer les {limit}s??`,
36
36
  success: `Vos limites de jeu ont été respectées.`,
37
37
  remove: `Vous avez demandé à ce que cette limite soit supprimée,elle sera appliquée `,
38
- invalidInputMessageLimit: `Le montant doit être compris entre 0 et 99,999,999.`,
38
+ invalidInputMessageLimit: `Le montant doit être compris entre 1 et 99,999,999.`,
39
39
  invalidInputMessageTime: `La durée doit être supérieure au {minTime} et inférieur au {maxTime} minutes .`,
40
40
  expirationDate: `Date d'expiration:`,
41
41
  save: `Sauvez`,
@@ -56,7 +56,7 @@ export const PlayerGamingLimitsEditTranslations = {
56
56
  changeLimitsText: `Ești sigur că vrei să modifici {limit}?`,
57
57
  success: `Limitele tale de joc au fost configurate cu success.`,
58
58
  remove: `Ai solicitat eliminarea acestei limite. Acest lucru va avea loc la data expirării limitei `,
59
- invalidInputMessageLimit: `Trebuie să setezi o sumă intre 0 și 99,999,999.`,
59
+ invalidInputMessageLimit: `Trebuie să setezi o sumă intre 1 și 99,999,999.`,
60
60
  invalidInputMessageTime: `Trebuie să setezi o limită intre {minTime} minute și {maxTime} minute`,
61
61
  expirationDate: `Dată Expirare:`,
62
62
  save: `Salvează`,
@@ -80,7 +80,7 @@ export const PlayerGamingLimitsEditTranslations = {
80
80
  changeLimitsText: `Estás seguro de que quieres cambiar los {limit}s?`,
81
81
  success: `Sus límites de juego se han establecido correctamente.`,
82
82
  remove: `Solicitaste la eliminación de este límite. Esto se aplicará en`,
83
- invalidInputMessageLimit: `El valor debe estar entre 0 y 99.999.999`,
83
+ invalidInputMessageLimit: `El valor debe estar entre 1 y 99.999.999`,
84
84
  invalidInputMessageTime: `La cantidad de tiempo debe ser mayor que {1} y menor que {99999999} minutos`,
85
85
  expirationDate: `Fecha de validez`,
86
86
  save: `Guardar`,
@@ -104,7 +104,7 @@ export const PlayerGamingLimitsEditTranslations = {
104
104
  changeLimitsText: `Tem certeza de que deseja alterar os {limite}s?`,
105
105
  success: `Seus limites de jogo foram definidos com sucesso.`,
106
106
  remove: `Você solicitou a remoção deste limite. Isso será aplicado em`,
107
- invalidInputMessageLimit: `O valor precisa estar entre 0 e 99.999.999`,
107
+ invalidInputMessageLimit: `O valor precisa estar entre 1 e 99.999.999`,
108
108
  invalidInputMessageTime: `A quantidade de tempo precisa ser maior que {1} e menor que {99999999} minutos`,
109
109
  expirationDate: `Data de Validade`,
110
110
  save: `Guardar`,