@sankhyalabs/core 0.0.0-feat-dev-41261.3 → 0.0.0-feat-dev-KB-74201.0

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.
@@ -129,7 +129,7 @@ src/utils/MaskFormatter.ts:55
129
129
 
130
130
  #### Source
131
131
 
132
- src/utils/MaskFormatter.ts:468
132
+ src/utils/MaskFormatter.ts:379
133
133
 
134
134
  ***
135
135
 
@@ -149,7 +149,7 @@ src/utils/MaskFormatter.ts:54
149
149
 
150
150
  #### Source
151
151
 
152
- src/utils/MaskFormatter.ts:482
152
+ src/utils/MaskFormatter.ts:393
153
153
 
154
154
  ***
155
155
 
@@ -179,7 +179,7 @@ src/utils/MaskFormatter.ts:49
179
179
 
180
180
  #### Source
181
181
 
182
- src/utils/MaskFormatter.ts:393
182
+ src/utils/MaskFormatter.ts:304
183
183
 
184
184
  ***
185
185
 
@@ -209,7 +209,7 @@ src/utils/MaskFormatter.ts:52
209
209
 
210
210
  #### Source
211
211
 
212
- src/utils/MaskFormatter.ts:374
212
+ src/utils/MaskFormatter.ts:285
213
213
 
214
214
  ***
215
215
 
@@ -219,7 +219,7 @@ src/utils/MaskFormatter.ts:374
219
219
 
220
220
  #### Source
221
221
 
222
- src/utils/MaskFormatter.ts:445
222
+ src/utils/MaskFormatter.ts:356
223
223
 
224
224
  ***
225
225
 
@@ -239,7 +239,7 @@ src/utils/MaskFormatter.ts:51
239
239
 
240
240
  #### Source
241
241
 
242
- src/utils/MaskFormatter.ts:422
242
+ src/utils/MaskFormatter.ts:333
243
243
 
244
244
  ## Accessors
245
245
 
@@ -269,30 +269,6 @@ src/utils/MaskFormatter.ts:87
269
269
 
270
270
  ## Methods
271
271
 
272
- ### applyMask()
273
-
274
- > **applyMask**(`value`): `string`
275
-
276
- Aplica a máscara quando o input é alterado
277
-
278
- #### Parameters
279
-
280
- • **value**: `string`
281
-
282
- Valor a ser aplicado com a máscara.
283
-
284
- #### Returns
285
-
286
- `string`
287
-
288
- O valor processado de acordo com o padrão.
289
-
290
- #### Source
291
-
292
- src/utils/MaskFormatter.ts:102
293
-
294
- ***
295
-
296
272
  ### format()
297
273
 
298
274
  > **format**(`value`, `trimBefore`): `string`
@@ -317,31 +293,7 @@ O valor processado de acordo com o padrão.
317
293
 
318
294
  #### Source
319
295
 
320
- src/utils/MaskFormatter.ts:191
321
-
322
- ***
323
-
324
- ### removeMask()
325
-
326
- > **removeMask**(`value`): `string`
327
-
328
- Remove a máscara formatando a string retornando sem máscara
329
-
330
- #### Parameters
331
-
332
- • **value**: `string`
333
-
334
- Valor a ser formatado com máscara.
335
-
336
- #### Returns
337
-
338
- `string`
339
-
340
- O valor processado de acordo com o padrão.
341
-
342
- #### Source
343
-
344
- src/utils/MaskFormatter.ts:171
296
+ src/utils/MaskFormatter.ts:102
345
297
 
346
298
  ***
347
299
 
@@ -357,4 +309,4 @@ Prepara a formatação internamente de acordo com o padrão.
357
309
 
358
310
  #### Source
359
311
 
360
- src/utils/MaskFormatter.ts:211
312
+ src/utils/MaskFormatter.ts:122
@@ -14,7 +14,7 @@
14
14
 
15
15
  #### Source
16
16
 
17
- src/dataunit/metadata/UnitMetadata.ts:78
17
+ src/dataunit/metadata/UnitMetadata.ts:77
18
18
 
19
19
  ***
20
20
 
@@ -24,7 +24,7 @@ src/dataunit/metadata/UnitMetadata.ts:78
24
24
 
25
25
  #### Source
26
26
 
27
- src/dataunit/metadata/UnitMetadata.ts:77
27
+ src/dataunit/metadata/UnitMetadata.ts:76
28
28
 
29
29
  ***
30
30
 
@@ -34,4 +34,4 @@ src/dataunit/metadata/UnitMetadata.ts:77
34
34
 
35
35
  #### Source
36
36
 
37
- src/dataunit/metadata/UnitMetadata.ts:79
37
+ src/dataunit/metadata/UnitMetadata.ts:78
@@ -14,7 +14,7 @@
14
14
 
15
15
  #### Source
16
16
 
17
- src/dataunit/metadata/UnitMetadata.ts:72
17
+ src/dataunit/metadata/UnitMetadata.ts:71
18
18
 
19
19
  ***
20
20
 
@@ -24,4 +24,4 @@ src/dataunit/metadata/UnitMetadata.ts:72
24
24
 
25
25
  #### Source
26
26
 
27
- src/dataunit/metadata/UnitMetadata.ts:73
27
+ src/dataunit/metadata/UnitMetadata.ts:72
@@ -14,7 +14,7 @@
14
14
 
15
15
  #### Source
16
16
 
17
- src/dataunit/metadata/UnitMetadata.ts:89
17
+ src/dataunit/metadata/UnitMetadata.ts:88
18
18
 
19
19
  ***
20
20
 
@@ -24,7 +24,7 @@ src/dataunit/metadata/UnitMetadata.ts:89
24
24
 
25
25
  #### Source
26
26
 
27
- src/dataunit/metadata/UnitMetadata.ts:85
27
+ src/dataunit/metadata/UnitMetadata.ts:84
28
28
 
29
29
  ***
30
30
 
@@ -34,7 +34,7 @@ src/dataunit/metadata/UnitMetadata.ts:85
34
34
 
35
35
  #### Source
36
36
 
37
- src/dataunit/metadata/UnitMetadata.ts:86
37
+ src/dataunit/metadata/UnitMetadata.ts:85
38
38
 
39
39
  ***
40
40
 
@@ -44,7 +44,7 @@ src/dataunit/metadata/UnitMetadata.ts:86
44
44
 
45
45
  #### Source
46
46
 
47
- src/dataunit/metadata/UnitMetadata.ts:92
47
+ src/dataunit/metadata/UnitMetadata.ts:91
48
48
 
49
49
  ***
50
50
 
@@ -54,7 +54,7 @@ src/dataunit/metadata/UnitMetadata.ts:92
54
54
 
55
55
  #### Source
56
56
 
57
- src/dataunit/metadata/UnitMetadata.ts:88
57
+ src/dataunit/metadata/UnitMetadata.ts:87
58
58
 
59
59
  ***
60
60
 
@@ -64,7 +64,7 @@ src/dataunit/metadata/UnitMetadata.ts:88
64
64
 
65
65
  #### Source
66
66
 
67
- src/dataunit/metadata/UnitMetadata.ts:83
67
+ src/dataunit/metadata/UnitMetadata.ts:82
68
68
 
69
69
  ***
70
70
 
@@ -74,7 +74,7 @@ src/dataunit/metadata/UnitMetadata.ts:83
74
74
 
75
75
  #### Source
76
76
 
77
- src/dataunit/metadata/UnitMetadata.ts:99
77
+ src/dataunit/metadata/UnitMetadata.ts:98
78
78
 
79
79
  ***
80
80
 
@@ -84,7 +84,7 @@ src/dataunit/metadata/UnitMetadata.ts:99
84
84
 
85
85
  #### Source
86
86
 
87
- src/dataunit/metadata/UnitMetadata.ts:84
87
+ src/dataunit/metadata/UnitMetadata.ts:83
88
88
 
89
89
  ***
90
90
 
@@ -94,7 +94,7 @@ src/dataunit/metadata/UnitMetadata.ts:84
94
94
 
95
95
  #### Source
96
96
 
97
- src/dataunit/metadata/UnitMetadata.ts:93
97
+ src/dataunit/metadata/UnitMetadata.ts:92
98
98
 
99
99
  ***
100
100
 
@@ -104,7 +104,7 @@ src/dataunit/metadata/UnitMetadata.ts:93
104
104
 
105
105
  #### Source
106
106
 
107
- src/dataunit/metadata/UnitMetadata.ts:98
107
+ src/dataunit/metadata/UnitMetadata.ts:97
108
108
 
109
109
  ***
110
110
 
@@ -114,7 +114,7 @@ src/dataunit/metadata/UnitMetadata.ts:98
114
114
 
115
115
  #### Source
116
116
 
117
- src/dataunit/metadata/UnitMetadata.ts:97
117
+ src/dataunit/metadata/UnitMetadata.ts:96
118
118
 
119
119
  ***
120
120
 
@@ -124,7 +124,7 @@ src/dataunit/metadata/UnitMetadata.ts:97
124
124
 
125
125
  #### Source
126
126
 
127
- src/dataunit/metadata/UnitMetadata.ts:91
127
+ src/dataunit/metadata/UnitMetadata.ts:90
128
128
 
129
129
  ***
130
130
 
@@ -134,7 +134,7 @@ src/dataunit/metadata/UnitMetadata.ts:91
134
134
 
135
135
  #### Source
136
136
 
137
- src/dataunit/metadata/UnitMetadata.ts:96
137
+ src/dataunit/metadata/UnitMetadata.ts:95
138
138
 
139
139
  ***
140
140
 
@@ -144,7 +144,7 @@ src/dataunit/metadata/UnitMetadata.ts:96
144
144
 
145
145
  #### Source
146
146
 
147
- src/dataunit/metadata/UnitMetadata.ts:94
147
+ src/dataunit/metadata/UnitMetadata.ts:93
148
148
 
149
149
  ***
150
150
 
@@ -154,7 +154,7 @@ src/dataunit/metadata/UnitMetadata.ts:94
154
154
 
155
155
  #### Source
156
156
 
157
- src/dataunit/metadata/UnitMetadata.ts:95
157
+ src/dataunit/metadata/UnitMetadata.ts:94
158
158
 
159
159
  ***
160
160
 
@@ -164,7 +164,7 @@ src/dataunit/metadata/UnitMetadata.ts:95
164
164
 
165
165
  #### Source
166
166
 
167
- src/dataunit/metadata/UnitMetadata.ts:90
167
+ src/dataunit/metadata/UnitMetadata.ts:89
168
168
 
169
169
  ***
170
170
 
@@ -174,4 +174,4 @@ src/dataunit/metadata/UnitMetadata.ts:90
174
174
 
175
175
  #### Source
176
176
 
177
- src/dataunit/metadata/UnitMetadata.ts:87
177
+ src/dataunit/metadata/UnitMetadata.ts:86
@@ -58,16 +58,6 @@ src/dataunit/metadata/UnitMetadata.ts:23
58
58
 
59
59
  ***
60
60
 
61
- ### mask?
62
-
63
- > `optional` **mask**: `string`
64
-
65
- #### Source
66
-
67
- src/dataunit/metadata/UnitMetadata.ts:35
68
-
69
- ***
70
-
71
61
  ### name
72
62
 
73
63
  > **name**: `string`
@@ -14,7 +14,7 @@
14
14
 
15
15
  #### Source
16
16
 
17
- src/dataunit/metadata/UnitMetadata.ts:46
17
+ src/dataunit/metadata/UnitMetadata.ts:45
18
18
 
19
19
  ***
20
20
 
@@ -24,7 +24,7 @@ src/dataunit/metadata/UnitMetadata.ts:46
24
24
 
25
25
  #### Source
26
26
 
27
- src/dataunit/metadata/UnitMetadata.ts:45
27
+ src/dataunit/metadata/UnitMetadata.ts:44
28
28
 
29
29
  ***
30
30
 
@@ -34,4 +34,4 @@ src/dataunit/metadata/UnitMetadata.ts:45
34
34
 
35
35
  #### Source
36
36
 
37
- src/dataunit/metadata/UnitMetadata.ts:47
37
+ src/dataunit/metadata/UnitMetadata.ts:46
@@ -14,7 +14,7 @@
14
14
 
15
15
  #### Source
16
16
 
17
- src/dataunit/metadata/UnitMetadata.ts:59
17
+ src/dataunit/metadata/UnitMetadata.ts:58
18
18
 
19
19
  ***
20
20
 
@@ -24,7 +24,7 @@ src/dataunit/metadata/UnitMetadata.ts:59
24
24
 
25
25
  #### Source
26
26
 
27
- src/dataunit/metadata/UnitMetadata.ts:57
27
+ src/dataunit/metadata/UnitMetadata.ts:56
28
28
 
29
29
  ***
30
30
 
@@ -34,4 +34,4 @@ src/dataunit/metadata/UnitMetadata.ts:57
34
34
 
35
35
  #### Source
36
36
 
37
- src/dataunit/metadata/UnitMetadata.ts:58
37
+ src/dataunit/metadata/UnitMetadata.ts:57
@@ -24,4 +24,4 @@
24
24
 
25
25
  #### Source
26
26
 
27
- src/dataunit/metadata/UnitMetadata.ts:68
27
+ src/dataunit/metadata/UnitMetadata.ts:67
@@ -10,4 +10,4 @@
10
10
 
11
11
  ## Source
12
12
 
13
- src/utils/MaskFormatter.ts:259
13
+ src/utils/MaskFormatter.ts:170
@@ -10,4 +10,4 @@
10
10
 
11
11
  ## Source
12
12
 
13
- src/utils/MaskFormatter.ts:259
13
+ src/utils/MaskFormatter.ts:170
@@ -28,7 +28,6 @@ export interface FieldDescriptor {
28
28
  dependencies?: Array<FieldDependency>;
29
29
  group?: string;
30
30
  order?: number;
31
- mask?: string;
32
31
  }
33
32
  export interface FieldDependency {
34
33
  masterFields: Array<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"UnitMetadata.js","sourceRoot":"","sources":["../../../src/dataunit/metadata/UnitMetadata.ts"],"names":[],"mappings":"AAsEA,MAAM,CAAN,IAAY,QAGX;AAHD,WAAY,QAAQ;IAChB,uBAAW,CAAA;IACX,yBAAa,CAAA;AACjB,CAAC,EAHW,QAAQ,KAAR,QAAQ,QAGnB;AAED,MAAM,CAAN,IAAY,cAIX;AAJD,WAAY,cAAc;IACtB,yCAAuB,CAAA;IACvB,6CAA2B,CAAA;IAC3B,4CAA0B,CAAA;AAC9B,CAAC,EAJW,cAAc,KAAd,cAAc,QAIzB;AAED,MAAM,CAAN,IAAY,aAkBX;AAlBD,WAAY,aAAa;IACrB,8BAAa,CAAA;IACb,gCAAe,CAAA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,CAAA;AACjB,CAAC,EAlBW,aAAa,KAAb,aAAa,QAkBxB;AAED,MAAM,CAAN,IAAY,iBAEX;AAFD,WAAY,iBAAiB;IACzB,mEAA8C,CAAA;AAClD,CAAC,EAFW,iBAAiB,KAAjB,iBAAiB,QAE5B"}
@@ -71,20 +71,6 @@ export declare class MaskFormatter {
71
71
  */
72
72
  get mask(): string;
73
73
  constructor(mask: string);
74
- /**
75
- * Aplica a máscara quando o input é alterado
76
- *
77
- * @param value Valor a ser aplicado com a máscara.
78
- * @return O valor processado de acordo com o padrão.
79
- */
80
- applyMask(value: string): string;
81
- /**
82
- * Remove a máscara formatando a string retornando sem máscara
83
- *
84
- * @param value Valor a ser formatado com máscara.
85
- * @return O valor processado de acordo com o padrão.
86
- */
87
- removeMask(value: string): string;
88
74
  /**
89
75
  * Formata a string passada baseada na máscara definda pelo atributo mask.
90
76
  *
@@ -70,82 +70,6 @@ export class MaskFormatter {
70
70
  this.placeholder = ' ';
71
71
  this.mask = mask;
72
72
  }
73
- /**
74
- * Aplica a máscara quando o input é alterado
75
- *
76
- * @param value Valor a ser aplicado com a máscara.
77
- * @return O valor processado de acordo com o padrão.
78
- */
79
- applyMask(value) {
80
- const MASK_COR = "'#AAAAAA";
81
- const expectedFormattedValue = this.format(value.replace(/\s/g, ""));
82
- if (value === expectedFormattedValue) {
83
- return value;
84
- }
85
- if (this.mask === MASK_COR) {
86
- value = value.replace("#", "");
87
- const expectedFormattedValue = this.format(value.replace(/\s/g, ""));
88
- if (value === expectedFormattedValue) {
89
- return value;
90
- }
91
- if (value.length >= 6) {
92
- const formattedValue = this.format(value);
93
- return formattedValue;
94
- }
95
- else {
96
- return value;
97
- }
98
- }
99
- const maskPlaceholders = this.mask.match(/[UAL#?*']/g) || [];
100
- const placeholderCount = maskPlaceholders.length;
101
- const validValue = value.split('').filter((char, index) => {
102
- const placeholder = maskPlaceholders[index];
103
- if (!placeholder)
104
- return false;
105
- switch (placeholder) {
106
- case MaskFormatter.DIGIT_KEY:
107
- return /\d/.test(char);
108
- case MaskFormatter.UPPERCASE_KEY:
109
- return /[a-zA-Z]/.test(char);
110
- case MaskFormatter.LOWERCASE_KEY:
111
- return /[a-zA-Z]/.test(char);
112
- case MaskFormatter.ALPHA_NUMERIC_KEY:
113
- return /[a-zA-Z0-9]/.test(char);
114
- case MaskFormatter.CHARACTER_KEY:
115
- return /[a-zA-Z]/.test(char);
116
- case MaskFormatter.ANYTHING_KEY:
117
- return true;
118
- case MaskFormatter.LITERAL_KEY:
119
- const literalChar = this.mask.charAt(index);
120
- return char === literalChar;
121
- default:
122
- return false;
123
- }
124
- });
125
- if (validValue.length >= placeholderCount) {
126
- const formattedValue = this.format(validValue.join(''));
127
- return formattedValue;
128
- }
129
- else {
130
- const partialValue = validValue.join('');
131
- return partialValue;
132
- }
133
- }
134
- /**
135
- * Remove a máscara formatando a string retornando sem máscara
136
- *
137
- * @param value Valor a ser formatado com máscara.
138
- * @return O valor processado de acordo com o padrão.
139
- */
140
- removeMask(value) {
141
- const maskString = this.mask.replace("#", "");
142
- const maskElements = maskString.split("");
143
- let valueMapped = value;
144
- maskElements.forEach(maskChar => {
145
- valueMapped = valueMapped.replace(maskChar, "");
146
- });
147
- return valueMapped;
148
- }
149
73
  /**
150
74
  * Formata a string passada baseada na máscara definda pelo atributo mask.
151
75
  *
@@ -1 +1 @@
1
- {"version":3,"file":"MaskFormatter.js","sourceRoot":"","sources":["../../src/utils/MaskFormatter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAM,OAAO,aAAa;IA2BtB;;OAEG;IACH,IAAW,IAAI,CAAC,IAAY;QACxB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,kBAAkB,EAAE,CAAC;IAC9B,CAAC;IAED;;;;OAIG;IACH,IAAW,IAAI;QACX,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAED,YAAY,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,aAAa;IAEzE;;;;;MAKE;IACK,gBAAgB,CAAC,KAAa;QACjC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC;IACnE,CAAC;IAED;;;;;MAKE;IACK,OAAO,CAAC,KAAa;QACxB,OAAO,KAAK,CAAC,iBAAiB,EAAE,CAAC;IACrC,CAAC;CACJ,CAAA;AAEc,mCAAqB,GAAG,KAAM,SAAQ,aAAa,CAAC,aAAa;IAE5E;;;;;MAKE;IACK,gBAAgB,CAAC,KAAa;QACjC,qFAAqF;QACrF,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;IACtE,CAAC;CACJ,CAAA;AAEc,2BAAa,GAAG,KAAM,SAAQ,aAAa,CAAC,aAAa;IACpE;;;;;MAKE;IACK,gBAAgB,CAAC,KAAa;QACjC,oFAAoF;QACpF,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC;IACnE,CAAC;CAEJ,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sankhyalabs/core",
3
- "version": "0.0.0-feat-dev-41261.3",
3
+ "version": "0.0.0-feat-dev-KB-74201.0",
4
4
  "description": "Modulo core JavaScript da Sankhya.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -1,113 +1,113 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <unitTest version="1">
3
+ <file path="/builds/dti/design-system/sankhyacore/test/http/HttpProvider.spec.ts">
4
+ <testCase name="HttpProvider Metodo GET" duration="84"/>
5
+ </file>
6
+ <file path="/builds/dti/design-system/sankhyacore/test/http/SkwHttpProvider.ts.spec.ts">
7
+ <testCase name="HttpProvider Metodo POST" duration="4"/>
8
+ </file>
3
9
  <file path="/builds/dti/design-system/sankhyacore/src/utils/test/objectUtils.spec.ts">
4
- <testCase name="ObjectUtils hasEquivalentValues should return true if both objects have the same property value" duration="195"/>
5
- <testCase name="ObjectUtils hasEquivalentValues should return false if both objects have different property values" duration="1"/>
6
- <testCase name="ObjectUtils hasEquivalentValues should return true if both objects are equivalent with custom property to compare" duration="1"/>
10
+ <testCase name="ObjectUtils hasEquivalentValues should return true if both objects have the same property value" duration="95"/>
11
+ <testCase name="ObjectUtils hasEquivalentValues should return false if both objects have different property values" duration="0"/>
12
+ <testCase name="ObjectUtils hasEquivalentValues should return true if both objects are equivalent with custom property to compare" duration="0"/>
7
13
  <testCase name="ObjectUtils hasEquivalentValues should return false if both objects are not equivalent with custom property to compare" duration="1"/>
8
14
  <testCase name="ObjectUtils hasEquivalentValues should return false if one object does not have the property" duration="1"/>
9
- <testCase name="ObjectUtils hasEquivalentValues should return true if comparing primitive values directly" duration="2"/>
10
- <testCase name="ObjectUtils hasEquivalentValues should return false if comparing different primitive values" duration="1"/>
15
+ <testCase name="ObjectUtils hasEquivalentValues should return true if comparing primitive values directly" duration="1"/>
16
+ <testCase name="ObjectUtils hasEquivalentValues should return false if comparing different primitive values" duration="0"/>
11
17
  <testCase name="ObjectUtils hasEquivalentValues should return true when comparing object with a null value" duration="1"/>
12
- <testCase name="ObjectUtils hasEquivalentValues should return false when comparing object with null and non-null value" duration="3"/>
18
+ <testCase name="ObjectUtils hasEquivalentValues should return false when comparing object with null and non-null value" duration="1"/>
13
19
  <testCase name="ObjectUtils hasEquivalentValues should return true when comparing non-object values that are equal" duration="1"/>
20
+ <testCase name="ObjectUtils should get an object value based on its path" duration="2"/>
14
21
  <testCase name="ObjectUtils should get an object value based on its path" duration="1"/>
15
- <testCase name="ObjectUtils should get an object value based on its path" duration="3"/>
16
- <testCase name="ObjectUtils should return undefined if the path doesn&apos;t exist in the object" duration="1"/>
17
- </file>
18
- <file path="/builds/dti/design-system/sankhyacore/test/util/CriteriaModel.spec.ts">
19
- <testCase name="StringUtils it should return the undefined and [] to Criteria Props through new class with empty constructor" duration="180"/>
20
- <testCase name="StringUtils it should modify &quot;expressions&quot; and &quot;parameters&quot; properties through Setters methods" duration="1"/>
21
- <testCase name="StringUtils it should return &quot;expression&quot; and &quot;parameters&quot; setted through constructor method" duration="1"/>
22
- <testCase name="StringUtils it should return a Criteria class with &quot;expression&quot; and &quot;parameters&quot; as needed setted through &quot;append&quot; method" duration="3"/>
23
- <testCase name="StringUtils it should return a Criteria class with &quot;Criteria class&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;append&quot; method" duration="5"/>
24
- <testCase name="StringUtils it should return undefined as &quot;expression&quot; and &quot;[]&quot; as parameters as we use an empty criteria as first entry in the constructor" duration="1"/>
25
- <testCase name="StringUtils it should return a Criteria class with &quot;Expression&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;OR&quot; method" duration="1"/>
26
- <testCase name="StringUtils it should return a Criteria class with &quot;Criteria class&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;OR&quot; method" duration="3"/>
27
- <testCase name="StringUtils it should return a Criteria class with &quot;Criteria class&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;OR&quot; method" duration="1"/>
28
- <testCase name="StringUtils it should return a Criteria class with &quot;Expression&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;AND&quot; method" duration="2"/>
29
- <testCase name="StringUtils it should return a Criteria class with &quot;Criteria class&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;AND&quot; method" duration="1"/>
30
- <testCase name="StringUtils it should return a Criteria class with &quot;Criteria class&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;AND&quot; method" duration="1"/>
31
- <testCase name="StringUtils it should return a toJSON object with &quot;Criteria class&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;AND&quot; method" duration="1"/>
32
- <testCase name="StringUtils it should return a toJSON object with through empty constructor" duration="0"/>
22
+ <testCase name="ObjectUtils should return undefined if the path doesn&apos;t exist in the object" duration="0"/>
33
23
  </file>
34
24
  <file path="/builds/dti/design-system/sankhyacore/test/util/MaskFormatter.spec.ts">
35
- <testCase name="Mask Formatter mask:CPF complete valid" duration="10"/>
36
- <testCase name="Mask Formatter mask:CPF complete valid literals" duration="1"/>
37
- <testCase name="Mask Formatter mask:CPF incomplete valid" duration="1"/>
25
+ <testCase name="Mask Formatter mask:CPF complete valid" duration="19"/>
26
+ <testCase name="Mask Formatter mask:CPF complete valid literals" duration="0"/>
27
+ <testCase name="Mask Formatter mask:CPF incomplete valid" duration="0"/>
38
28
  <testCase name="Mask Formatter mask:CPF incomplete valid placeholder" duration="1"/>
39
29
  <testCase name="Mask Formatter mask:CPF too long valid" duration="1"/>
40
- <testCase name="Mask Formatter mask:CPF invalid for string" duration="188"/>
30
+ <testCase name="Mask Formatter mask:CPF invalid for string" duration="199"/>
41
31
  <testCase name="Mask Formatter mask:CPF invalid for being too long" duration="1"/>
42
- <testCase name="Mask Formatter mask:Licence plate valid uppercase" duration="0"/>
32
+ <testCase name="Mask Formatter mask:Licence plate valid uppercase" duration="87"/>
43
33
  <testCase name="Mask Formatter mask:Licence plate valid lowercase" duration="1"/>
44
34
  <testCase name="Mask Formatter mask:Licence plate invalid" duration="2"/>
45
- <testCase name="Mask Formatter mask:Licence plate invalid for being too short" duration="1"/>
46
- <testCase name="Mask Formatter mask:Licence plate invalid for being too short with placeholder" duration="0"/>
47
- <testCase name="Mask Formatter mask:Licence plate invalid" duration="2"/>
35
+ <testCase name="Mask Formatter mask:Licence plate invalid for being too short" duration="85"/>
36
+ <testCase name="Mask Formatter mask:Licence plate invalid for being too short with placeholder" duration="1"/>
37
+ <testCase name="Mask Formatter mask:Licence plate invalid" duration="3"/>
48
38
  <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
49
39
  <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="1"/>
50
40
  <testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
51
- <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
52
- <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="1"/>
53
- <testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
54
- <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
41
+ <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="0"/>
55
42
  <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="1"/>
43
+ <testCase name="Mask Formatter mask:Licence plate invalid" duration="2"/>
44
+ <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="0"/>
45
+ <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="0"/>
56
46
  <testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
57
47
  </file>
48
+ <file path="/builds/dti/design-system/sankhyacore/test/util/CriteriaParameter.spec.ts">
49
+ <testCase name="StringUtils it should return the correct values of &quot;value&quot; and &quot;type&quot; through the getters methods initial setted by the constructor" duration="3"/>
50
+ <testCase name="StringUtils it should return the correct values of &quot;value&quot; and &quot;type&quot; through the getters methods initial setted by the setters methods" duration="1"/>
51
+ <testCase name="StringUtils it should return the correct JSON/Object value through the buildParam method" duration="1"/>
52
+ </file>
53
+ <file path="/builds/dti/design-system/sankhyacore/test/util/CriteriaModel.spec.ts">
54
+ <testCase name="StringUtils it should return the undefined and [] to Criteria Props through new class with empty constructor" duration="6"/>
55
+ <testCase name="StringUtils it should modify &quot;expressions&quot; and &quot;parameters&quot; properties through Setters methods" duration="1"/>
56
+ <testCase name="StringUtils it should return &quot;expression&quot; and &quot;parameters&quot; setted through constructor method" duration="0"/>
57
+ <testCase name="StringUtils it should return a Criteria class with &quot;expression&quot; and &quot;parameters&quot; as needed setted through &quot;append&quot; method" duration="2"/>
58
+ <testCase name="StringUtils it should return a Criteria class with &quot;Criteria class&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;append&quot; method" duration="1"/>
59
+ <testCase name="StringUtils it should return undefined as &quot;expression&quot; and &quot;[]&quot; as parameters as we use an empty criteria as first entry in the constructor" duration="2"/>
60
+ <testCase name="StringUtils it should return a Criteria class with &quot;Expression&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;OR&quot; method" duration="1"/>
61
+ <testCase name="StringUtils it should return a Criteria class with &quot;Criteria class&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;OR&quot; method" duration="0"/>
62
+ <testCase name="StringUtils it should return a Criteria class with &quot;Criteria class&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;OR&quot; method" duration="1"/>
63
+ <testCase name="StringUtils it should return a Criteria class with &quot;Expression&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;AND&quot; method" duration="89"/>
64
+ <testCase name="StringUtils it should return a Criteria class with &quot;Criteria class&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;AND&quot; method" duration="0"/>
65
+ <testCase name="StringUtils it should return a Criteria class with &quot;Criteria class&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;AND&quot; method" duration="0"/>
66
+ <testCase name="StringUtils it should return a toJSON object with &quot;Criteria class&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;AND&quot; method" duration="1"/>
67
+ <testCase name="StringUtils it should return a toJSON object with through empty constructor" duration="0"/>
68
+ </file>
58
69
  <file path="/builds/dti/design-system/sankhyacore/test/util/StringUtils.spec.ts">
59
- <testCase name="StringUtils valor vazio" duration="1"/>
70
+ <testCase name="StringUtils valor vazio" duration="6"/>
60
71
  <testCase name="StringUtils valor em branco" duration="1"/>
61
72
  <testCase name="StringUtils valor null" duration="0"/>
62
- <testCase name="StringUtils valor undefined" duration="0"/>
73
+ <testCase name="StringUtils valor undefined" duration="1"/>
63
74
  <testCase name="StringUtils valor 0" duration="1"/>
64
75
  <testCase name="StringUtils com valor" duration="0"/>
65
- <testCase name="StringUtils substitui vogais com acento por vogais sem acento" duration="1"/>
76
+ <testCase name="StringUtils substitui vogais com acento por vogais sem acento" duration="2"/>
66
77
  <testCase name="StringUtils should return the original value when called with an object without a toString method" duration="2"/>
67
78
  <testCase name="StringUtils should return the original value when called with undefined" duration="1"/>
68
79
  </file>
69
- <file path="/builds/dti/design-system/sankhyacore/test/util/NumberUtils.spec.ts">
70
- <testCase name="StringUtils stringToNumber" duration="14"/>
71
- <testCase name="StringUtils format" duration="99"/>
72
- <testCase name="StringUtils format without formatnumber parameter" duration="1"/>
73
- <testCase name="StringUtils format without formatnumber parameter" duration="1"/>
74
- <testCase name="StringUtils format round number" duration="79"/>
75
- </file>
76
- <file path="/builds/dti/design-system/sankhyacore/test/http/HttpProvider.spec.ts">
77
- <testCase name="HttpProvider Metodo GET" duration="1"/>
78
- </file>
79
- <file path="/builds/dti/design-system/sankhyacore/test/util/CriteriaParameter.spec.ts">
80
- <testCase name="StringUtils it should return the correct values of &quot;value&quot; and &quot;type&quot; through the getters methods initial setted by the constructor" duration="2"/>
81
- <testCase name="StringUtils it should return the correct values of &quot;value&quot; and &quot;type&quot; through the getters methods initial setted by the setters methods" duration="0"/>
82
- <testCase name="StringUtils it should return the correct JSON/Object value through the buildParam method" duration="0"/>
83
- </file>
84
- <file path="/builds/dti/design-system/sankhyacore/test/http/SkwHttpProvider.ts.spec.ts">
85
- <testCase name="HttpProvider Metodo POST" duration="0"/>
86
- </file>
87
- <file path="/builds/dti/design-system/sankhyacore/test/util/OverflowWatcher.spec.ts">
88
- <testCase name="OverflowWatcher should initialize with provided parameters" duration="87"/>
89
- <testCase name="OverflowWatcher should disconect ResizeObserver when destroy is called" duration="2"/>
90
- <testCase name="OverflowWatcher Should call callback on forceUpdate" duration="203"/>
91
- <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan" duration="98"/>
92
- <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan when notOverFlow is empty" duration="15"/>
93
- <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan considering overflowed elements" duration="97"/>
94
- <testCase name="OverflowWatcher Should call callback on forceUpdate with empty list" duration="91"/>
95
- <testCase name="OverflowWatcher should ignore elements that can not overflow" duration="106"/>
96
- <testCase name="OverflowWatcher Should not call callback on forceUpdate" duration="6"/>
97
- </file>
98
80
  <file path="/builds/dti/design-system/sankhyacore/test/util/TimeFormatter.spec.ts">
99
81
  <testCase name="TimeFormatter Case: input string unformated with showSeconds" duration="2"/>
100
82
  <testCase name="TimeFormatter Case: input string unformated without showSeconds" duration="1"/>
101
83
  <testCase name="TimeFormatter Case: validateTime" duration="1"/>
102
84
  </file>
85
+ <file path="/builds/dti/design-system/sankhyacore/test/util/NumberUtils.spec.ts">
86
+ <testCase name="StringUtils stringToNumber" duration="94"/>
87
+ <testCase name="StringUtils format" duration="699"/>
88
+ <testCase name="StringUtils format without formatnumber parameter" duration="1"/>
89
+ <testCase name="StringUtils format without formatnumber parameter" duration="2"/>
90
+ <testCase name="StringUtils format round number" duration="2"/>
91
+ </file>
92
+ <file path="/builds/dti/design-system/sankhyacore/test/util/OverflowWatcher.spec.ts">
93
+ <testCase name="OverflowWatcher should initialize with provided parameters" duration="89"/>
94
+ <testCase name="OverflowWatcher should disconect ResizeObserver when destroy is called" duration="5"/>
95
+ <testCase name="OverflowWatcher Should call callback on forceUpdate" duration="302"/>
96
+ <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan" duration="104"/>
97
+ <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan when notOverFlow is empty" duration="7"/>
98
+ <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan considering overflowed elements" duration="88"/>
99
+ <testCase name="OverflowWatcher Should call callback on forceUpdate with empty list" duration="10"/>
100
+ <testCase name="OverflowWatcher should ignore elements that can not overflow" duration="88"/>
101
+ <testCase name="OverflowWatcher Should not call callback on forceUpdate" duration="5"/>
102
+ </file>
103
103
  <file path="/builds/dti/design-system/sankhyacore/src/dataunit/state/slice/test/RecordsSlice.spec.ts">
104
104
  <testCase name="RecordsSlice should return newlines at the end" duration="2"/>
105
105
  </file>
106
106
  <file path="/builds/dti/design-system/sankhyacore/test/util/DataUnitStorage.spec.ts">
107
- <testCase name="DataUnitStorage put should store a DataUnit instance in the DataUnitStorage" duration="2"/>
107
+ <testCase name="DataUnitStorage put should store a DataUnit instance in the DataUnitStorage" duration="7"/>
108
108
  <testCase name="DataUnitStorage get should return the stored DataUnit instance from the DataUnitStorage" duration="1"/>
109
109
  <testCase name="DataUnitStorage get should return undefined if the DataUnit instance is not found in the DataUnitStorage" duration="1"/>
110
- <testCase name="DataUnitStorage remove should remove the specified DataUnit instance from the DataUnitStorage" duration="0"/>
110
+ <testCase name="DataUnitStorage remove should remove the specified DataUnit instance from the DataUnitStorage" duration="1"/>
111
111
  <testCase name="DataUnitStorage remove should remove the DataUnit instance with the specified name from the DataUnitStorage" duration="1"/>
112
112
  <testCase name="DataUnitStorage remove should not remove any DataUnit instance if the specified DataUnit instance or name is not found in the DataUnitStorage" duration="1"/>
113
113
  </file>
@@ -118,58 +118,58 @@
118
118
  <testCase name="DataUnit should dispatch SAVING_CANCELED action with correct fields and recordId" duration="1"/>
119
119
  </file>
120
120
  <file path="/builds/dti/design-system/sankhyacore/test/util/ElementIDUtils.spec.ts">
121
- <testCase name="addIDInfo 1 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="13"/>
122
- <testCase name="addIDInfo 2 - should add data-element-id with valid id &quot;brComSankhyaFinCadMovimentacaofinanceira_snkApplication&quot;" duration="2"/>
123
- <testCase name="addIDInfo 3 - should add data-element-id with valid id &quot;movFinanceira_br.com.sankhya.fin.cad.movimentacaoFinanceira&quot;" duration="2"/>
124
- <testCase name="addIDInfo 4 - should add data-element-id with valid id &quot;meuID2_snkApplication&quot;" duration="2"/>
125
- <testCase name="addIDInfo 5 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="2"/>
121
+ <testCase name="addIDInfo 1 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="19"/>
122
+ <testCase name="addIDInfo 2 - should add data-element-id with valid id &quot;brComSankhyaFinCadMovimentacaofinanceira_snkApplication&quot;" duration="74"/>
123
+ <testCase name="addIDInfo 3 - should add data-element-id with valid id &quot;movFinanceira_br.com.sankhya.fin.cad.movimentacaoFinanceira&quot;" duration="1"/>
124
+ <testCase name="addIDInfo 4 - should add data-element-id with valid id &quot;meuID2_snkApplication&quot;" duration="1"/>
125
+ <testCase name="addIDInfo 5 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="1"/>
126
126
  <testCase name="addIDInfo 6 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="1"/>
127
127
  <testCase name="addIDInfo 7 - should add data-element-id with valid id &quot;componenteNameTest_snkApplication&quot;" duration="1"/>
128
- <testCase name="addIDInfo 8 - should add data-element-id with valid id &quot;componentLabel_snkApplication&quot;" duration="1"/>
128
+ <testCase name="addIDInfo 8 - should add data-element-id with valid id &quot;componentLabel_snkApplication&quot;" duration="0"/>
129
129
  <testCase name="addIDInfo 9 - should add data-element-id with valid id &quot;dataunitFinanceiro_br.com.sankhya.fin.cad.movimentacaoFinanceira&quot;" duration="1"/>
130
130
  <testCase name="addIDInfo 10 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIDTeste_br.com.sankhya.fin.cad.movimentacaoFinanceira&quot;" duration="2"/>
131
- <testCase name="addIDInfo 11 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira&quot;" duration="2"/>
132
- <testCase name="addIDInfo 12 - should add data-element-id with valid id &quot;dataunitFinanceiro_movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
133
- <testCase name="addIDInfo 13 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira&quot;" duration="2"/>
134
- <testCase name="addIDInfo 14 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIdTeste_movimentacaoFinanceira&quot;" duration="8"/>
131
+ <testCase name="addIDInfo 11 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira&quot;" duration="1"/>
132
+ <testCase name="addIDInfo 12 - should add data-element-id with valid id &quot;dataunitFinanceiro_movFinanceira_movimentacaoFinanceira&quot;" duration="2"/>
133
+ <testCase name="addIDInfo 13 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira&quot;" duration="1"/>
134
+ <testCase name="addIDInfo 14 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIdTeste_movimentacaoFinanceira&quot;" duration="2"/>
135
135
  <testCase name="addIDInfo 15 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIdTeste_snkApplication&quot;" duration="1"/>
136
- <testCase name="addIDInfo 16 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIdTeste_snkApplication&quot;" duration="80"/>
137
- <testCase name="addIDInfo 17 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="2"/>
136
+ <testCase name="addIDInfo 16 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIdTeste_snkApplication&quot;" duration="1"/>
137
+ <testCase name="addIDInfo 17 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
138
138
  <testCase name="addIDInfo 18 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
139
139
  <testCase name="addIDInfo 19 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="0"/>
140
- <testCase name="addIDInfo 20 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
140
+ <testCase name="addIDInfo 20 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="2"/>
141
141
  <testCase name="addIDInfo 21 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
142
142
  <testCase name="addIDInfo 22 - should add data-element-id with valid id &quot;bancoObrigatorio_movimentacaoFinanceira&quot;" duration="1"/>
143
143
  </file>
144
- <file path="/builds/dti/design-system/sankhyacore/test/util/ElementUtils.spec.ts">
145
- <testCase name="calcMarginSize should calculate correctly the size of horizontal margin" duration="27"/>
146
- <testCase name="calcMarginSize should calculate correctly the size of vertical margin" duration="2"/>
147
- <testCase name="calcMarginSize should threat values defined as zero" duration="3"/>
148
- </file>
149
144
  <file path="/builds/dti/design-system/sankhyacore/test/dataunit/formatting/PrettyFormatter.spec.ts">
150
- <testCase name="getFormattedValue should return empty string when value is null" duration="5"/>
145
+ <testCase name="getFormattedValue should return empty string when value is null" duration="6"/>
151
146
  <testCase name="getFormattedValue should return empty string when value is not an array" duration="0"/>
152
147
  <testCase name="getFormattedValue should return empty string when value is an empty array" duration="1"/>
153
- <testCase name="getFormattedValue should return file name when value is an array with one file object" duration="0"/>
154
- <testCase name="getFormattedValue should return file count when value is an array with multiple file objects" duration="1"/>
148
+ <testCase name="getFormattedValue should return file name when value is an array with one file object" duration="4"/>
149
+ <testCase name="getFormattedValue should return file count when value is an array with multiple file objects" duration="0"/>
155
150
  <testCase name="getFormattedValue should return empty string for undefined file" duration="0"/>
156
- <testCase name="getFormattedValue should handle OBJECT type with value field" duration="1"/>
151
+ <testCase name="getFormattedValue should handle OBJECT type with value field" duration="0"/>
157
152
  <testCase name="getFormattedValue should return empty string when value is undefined" duration="0"/>
158
153
  <testCase name="getFormattedValue should return value as string when value is not an object" duration="1"/>
159
154
  <testCase name="getFormattedValue should return value.toString() when value is an object without value property" duration="0"/>
160
155
  <testCase name="getFormattedValue should handle BOOLEAN type" duration="1"/>
161
- <testCase name="getFormattedValue should format numbers correctly" duration="10"/>
162
- <testCase name="getFormattedValue should format dates correctly" duration="4"/>
156
+ <testCase name="getFormattedValue should format numbers correctly" duration="18"/>
157
+ <testCase name="getFormattedValue should format dates correctly" duration="7"/>
163
158
  <testCase name="getFormattedValue should format times correctly" duration="0"/>
164
- <testCase name="getFormattedValue should format datetime correctly" duration="0"/>
159
+ <testCase name="getFormattedValue should format datetime correctly" duration="1"/>
165
160
  <testCase name="getFormattedValue should call toString with correct parameters" duration="1"/>
166
161
  <testCase name="getFormattedValue should handle undefined descriptor gracefully" duration="0"/>
167
- <testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and matching option" duration="1"/>
162
+ <testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and matching option" duration="0"/>
168
163
  <testCase name="getFormattedValue should return value with OPTIONSELECTOR and no matching option" duration="0"/>
169
- <testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and value as object" duration="0"/>
170
- <testCase name="getFormattedValue should return empty string with OPTIONSELECTOR and value as null" duration="1"/>
164
+ <testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and value as object" duration="1"/>
165
+ <testCase name="getFormattedValue should return empty string with OPTIONSELECTOR and value as null" duration="0"/>
171
166
  <testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and options as JSON string" duration="0"/>
172
- <testCase name="getFormattedValue should return value with OPTIONSELECTOR and options as empty array" duration="1"/>
167
+ <testCase name="getFormattedValue should return value with OPTIONSELECTOR and options as empty array" duration="0"/>
173
168
  <testCase name="getFormattedValue should format masked values correctly" duration="1"/>
174
169
  </file>
170
+ <file path="/builds/dti/design-system/sankhyacore/test/util/ElementUtils.spec.ts">
171
+ <testCase name="calcMarginSize should calculate correctly the size of horizontal margin" duration="58"/>
172
+ <testCase name="calcMarginSize should calculate correctly the size of vertical margin" duration="3"/>
173
+ <testCase name="calcMarginSize should threat values defined as zero" duration="4"/>
174
+ </file>
175
175
  </unitTest>
@@ -32,7 +32,6 @@ export interface FieldDescriptor {
32
32
  dependencies?: Array<FieldDependency>;
33
33
  group?: string;
34
34
  order?: number;
35
- mask?: string;
36
35
  }
37
36
 
38
37
  export interface FieldDependency {
@@ -92,95 +92,6 @@ export class MaskFormatter {
92
92
  this.mask = mask;
93
93
  }
94
94
 
95
-
96
- /**
97
- * Aplica a máscara quando o input é alterado
98
- *
99
- * @param value Valor a ser aplicado com a máscara.
100
- * @return O valor processado de acordo com o padrão.
101
- */
102
- public applyMask(value: string) {
103
- const MASK_COR = "'#AAAAAA";
104
-
105
- const expectedFormattedValue = this.format(value.replace(/\s/g, ""));
106
-
107
- if (value === expectedFormattedValue) {
108
- return value;
109
- }
110
-
111
- if (this.mask === MASK_COR) {
112
- value = value.replace("#", "")
113
-
114
- const expectedFormattedValue = this.format(value.replace(/\s/g, ""));
115
-
116
- if (value === expectedFormattedValue) {
117
- return value;
118
- }
119
-
120
- if (value.length >= 6) {
121
- const formattedValue = this.format(value);
122
- return formattedValue;
123
- } else {
124
- return value;
125
- }
126
- }
127
-
128
- const maskPlaceholders = this.mask.match(/[UAL#?*']/g) || [];
129
- const placeholderCount = maskPlaceholders.length;
130
-
131
- const validValue = value.split('').filter((char, index) => {
132
- const placeholder = maskPlaceholders[index];
133
- if (!placeholder) return false;
134
-
135
- switch (placeholder) {
136
- case MaskFormatter.DIGIT_KEY:
137
- return /\d/.test(char);
138
- case MaskFormatter.UPPERCASE_KEY:
139
- return /[a-zA-Z]/.test(char);
140
- case MaskFormatter.LOWERCASE_KEY:
141
- return /[a-zA-Z]/.test(char);
142
- case MaskFormatter.ALPHA_NUMERIC_KEY:
143
- return /[a-zA-Z0-9]/.test(char);
144
- case MaskFormatter.CHARACTER_KEY:
145
- return /[a-zA-Z]/.test(char);
146
- case MaskFormatter.ANYTHING_KEY:
147
- return true;
148
- case MaskFormatter.LITERAL_KEY:
149
- const literalChar = this.mask.charAt(index);
150
- return char === literalChar;
151
- default:
152
- return false;
153
- }
154
- });
155
-
156
- if (validValue.length >= placeholderCount) {
157
- const formattedValue = this.format(validValue.join(''));
158
- return formattedValue;
159
- } else {
160
- const partialValue = validValue.join('');
161
- return partialValue;
162
- }
163
- }
164
-
165
- /**
166
- * Remove a máscara formatando a string retornando sem máscara
167
- *
168
- * @param value Valor a ser formatado com máscara.
169
- * @return O valor processado de acordo com o padrão.
170
- */
171
- public removeMask(value: string): string {
172
- const maskString = this.mask.replace("#", "");
173
- const maskElements = maskString.split("");
174
-
175
- let valueMapped = value
176
-
177
- maskElements.forEach(maskChar => {
178
- valueMapped = valueMapped.replace(maskChar, "")
179
- })
180
-
181
- return valueMapped;
182
- }
183
-
184
95
  /**
185
96
  * Formata a string passada baseada na máscara definda pelo atributo mask.
186
97
  *