@sankhyalabs/core 5.20.0-dev.16 → 5.20.0-dev.17
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/.docs/classes/OverflowWatcher.md +39 -21
- package/.docs/interfaces/OverFlowWatcherParams.md +6 -6
- package/dist/utils/OverflowWatcher/index.d.ts +1 -0
- package/dist/utils/OverflowWatcher/index.js +5 -0
- package/dist/utils/OverflowWatcher/index.js.map +1 -1
- package/package.json +1 -1
- package/reports/test-report.xml +79 -79
- package/src/utils/OverflowWatcher/index.ts +6 -0
- package/test/util/OverflowWatcher.spec.ts +9 -0
|
@@ -138,6 +138,24 @@ src/utils/OverflowWatcher/index.ts:16
|
|
|
138
138
|
|
|
139
139
|
## Methods
|
|
140
140
|
|
|
141
|
+
### addNotOverFlowElement()
|
|
142
|
+
|
|
143
|
+
> **addNotOverFlowElement**(`elementId`): `void`
|
|
144
|
+
|
|
145
|
+
#### Parameters
|
|
146
|
+
|
|
147
|
+
• **elementId**: `string`
|
|
148
|
+
|
|
149
|
+
#### Returns
|
|
150
|
+
|
|
151
|
+
`void`
|
|
152
|
+
|
|
153
|
+
#### Source
|
|
154
|
+
|
|
155
|
+
src/utils/OverflowWatcher/index.ts:52
|
|
156
|
+
|
|
157
|
+
***
|
|
158
|
+
|
|
141
159
|
### calcChildrenSize()
|
|
142
160
|
|
|
143
161
|
> `private` **calcChildrenSize**(`children`): `number`
|
|
@@ -152,7 +170,7 @@ src/utils/OverflowWatcher/index.ts:16
|
|
|
152
170
|
|
|
153
171
|
#### Source
|
|
154
172
|
|
|
155
|
-
src/utils/OverflowWatcher/index.ts:
|
|
173
|
+
src/utils/OverflowWatcher/index.ts:205
|
|
156
174
|
|
|
157
175
|
***
|
|
158
176
|
|
|
@@ -170,7 +188,7 @@ src/utils/OverflowWatcher/index.ts:199
|
|
|
170
188
|
|
|
171
189
|
#### Source
|
|
172
190
|
|
|
173
|
-
src/utils/OverflowWatcher/index.ts:
|
|
191
|
+
src/utils/OverflowWatcher/index.ts:212
|
|
174
192
|
|
|
175
193
|
***
|
|
176
194
|
|
|
@@ -188,7 +206,7 @@ src/utils/OverflowWatcher/index.ts:206
|
|
|
188
206
|
|
|
189
207
|
#### Source
|
|
190
208
|
|
|
191
|
-
src/utils/OverflowWatcher/index.ts:
|
|
209
|
+
src/utils/OverflowWatcher/index.ts:177
|
|
192
210
|
|
|
193
211
|
***
|
|
194
212
|
|
|
@@ -206,7 +224,7 @@ src/utils/OverflowWatcher/index.ts:171
|
|
|
206
224
|
|
|
207
225
|
#### Source
|
|
208
226
|
|
|
209
|
-
src/utils/OverflowWatcher/index.ts:
|
|
227
|
+
src/utils/OverflowWatcher/index.ts:187
|
|
210
228
|
|
|
211
229
|
***
|
|
212
230
|
|
|
@@ -224,7 +242,7 @@ src/utils/OverflowWatcher/index.ts:181
|
|
|
224
242
|
|
|
225
243
|
#### Source
|
|
226
244
|
|
|
227
|
-
src/utils/OverflowWatcher/index.ts:
|
|
245
|
+
src/utils/OverflowWatcher/index.ts:96
|
|
228
246
|
|
|
229
247
|
***
|
|
230
248
|
|
|
@@ -242,7 +260,7 @@ src/utils/OverflowWatcher/index.ts:90
|
|
|
242
260
|
|
|
243
261
|
#### Source
|
|
244
262
|
|
|
245
|
-
src/utils/OverflowWatcher/index.ts:
|
|
263
|
+
src/utils/OverflowWatcher/index.ts:157
|
|
246
264
|
|
|
247
265
|
***
|
|
248
266
|
|
|
@@ -256,7 +274,7 @@ src/utils/OverflowWatcher/index.ts:151
|
|
|
256
274
|
|
|
257
275
|
#### Source
|
|
258
276
|
|
|
259
|
-
src/utils/OverflowWatcher/index.ts:
|
|
277
|
+
src/utils/OverflowWatcher/index.ts:126
|
|
260
278
|
|
|
261
279
|
***
|
|
262
280
|
|
|
@@ -270,7 +288,7 @@ src/utils/OverflowWatcher/index.ts:120
|
|
|
270
288
|
|
|
271
289
|
#### Source
|
|
272
290
|
|
|
273
|
-
src/utils/OverflowWatcher/index.ts:
|
|
291
|
+
src/utils/OverflowWatcher/index.ts:58
|
|
274
292
|
|
|
275
293
|
***
|
|
276
294
|
|
|
@@ -292,7 +310,7 @@ src/utils/OverflowWatcher/index.ts:52
|
|
|
292
310
|
|
|
293
311
|
#### Source
|
|
294
312
|
|
|
295
|
-
src/utils/OverflowWatcher/index.ts:
|
|
313
|
+
src/utils/OverflowWatcher/index.ts:166
|
|
296
314
|
|
|
297
315
|
***
|
|
298
316
|
|
|
@@ -306,7 +324,7 @@ src/utils/OverflowWatcher/index.ts:160
|
|
|
306
324
|
|
|
307
325
|
#### Source
|
|
308
326
|
|
|
309
|
-
src/utils/OverflowWatcher/index.ts:
|
|
327
|
+
src/utils/OverflowWatcher/index.ts:62
|
|
310
328
|
|
|
311
329
|
***
|
|
312
330
|
|
|
@@ -324,7 +342,7 @@ src/utils/OverflowWatcher/index.ts:56
|
|
|
324
342
|
|
|
325
343
|
#### Source
|
|
326
344
|
|
|
327
|
-
src/utils/OverflowWatcher/index.ts:
|
|
345
|
+
src/utils/OverflowWatcher/index.ts:162
|
|
328
346
|
|
|
329
347
|
***
|
|
330
348
|
|
|
@@ -342,7 +360,7 @@ src/utils/OverflowWatcher/index.ts:156
|
|
|
342
360
|
|
|
343
361
|
#### Source
|
|
344
362
|
|
|
345
|
-
src/utils/OverflowWatcher/index.ts:
|
|
363
|
+
src/utils/OverflowWatcher/index.ts:197
|
|
346
364
|
|
|
347
365
|
***
|
|
348
366
|
|
|
@@ -360,7 +378,7 @@ src/utils/OverflowWatcher/index.ts:191
|
|
|
360
378
|
|
|
361
379
|
#### Source
|
|
362
380
|
|
|
363
|
-
src/utils/OverflowWatcher/index.ts:
|
|
381
|
+
src/utils/OverflowWatcher/index.ts:68
|
|
364
382
|
|
|
365
383
|
***
|
|
366
384
|
|
|
@@ -378,7 +396,7 @@ src/utils/OverflowWatcher/index.ts:62
|
|
|
378
396
|
|
|
379
397
|
#### Source
|
|
380
398
|
|
|
381
|
-
src/utils/OverflowWatcher/index.ts:
|
|
399
|
+
src/utils/OverflowWatcher/index.ts:100
|
|
382
400
|
|
|
383
401
|
***
|
|
384
402
|
|
|
@@ -398,7 +416,7 @@ src/utils/OverflowWatcher/index.ts:94
|
|
|
398
416
|
|
|
399
417
|
#### Source
|
|
400
418
|
|
|
401
|
-
src/utils/OverflowWatcher/index.ts:
|
|
419
|
+
src/utils/OverflowWatcher/index.ts:153
|
|
402
420
|
|
|
403
421
|
***
|
|
404
422
|
|
|
@@ -416,7 +434,7 @@ src/utils/OverflowWatcher/index.ts:147
|
|
|
416
434
|
|
|
417
435
|
#### Source
|
|
418
436
|
|
|
419
|
-
src/utils/OverflowWatcher/index.ts:
|
|
437
|
+
src/utils/OverflowWatcher/index.ts:226
|
|
420
438
|
|
|
421
439
|
***
|
|
422
440
|
|
|
@@ -436,7 +454,7 @@ src/utils/OverflowWatcher/index.ts:220
|
|
|
436
454
|
|
|
437
455
|
#### Source
|
|
438
456
|
|
|
439
|
-
src/utils/OverflowWatcher/index.ts:
|
|
457
|
+
src/utils/OverflowWatcher/index.ts:112
|
|
440
458
|
|
|
441
459
|
***
|
|
442
460
|
|
|
@@ -456,7 +474,7 @@ src/utils/OverflowWatcher/index.ts:106
|
|
|
456
474
|
|
|
457
475
|
#### Source
|
|
458
476
|
|
|
459
|
-
src/utils/OverflowWatcher/index.ts:
|
|
477
|
+
src/utils/OverflowWatcher/index.ts:131
|
|
460
478
|
|
|
461
479
|
***
|
|
462
480
|
|
|
@@ -474,7 +492,7 @@ src/utils/OverflowWatcher/index.ts:125
|
|
|
474
492
|
|
|
475
493
|
#### Source
|
|
476
494
|
|
|
477
|
-
src/utils/OverflowWatcher/index.ts:
|
|
495
|
+
src/utils/OverflowWatcher/index.ts:192
|
|
478
496
|
|
|
479
497
|
***
|
|
480
498
|
|
|
@@ -492,7 +510,7 @@ src/utils/OverflowWatcher/index.ts:186
|
|
|
492
510
|
|
|
493
511
|
#### Source
|
|
494
512
|
|
|
495
|
-
src/utils/OverflowWatcher/index.ts:
|
|
513
|
+
src/utils/OverflowWatcher/index.ts:88
|
|
496
514
|
|
|
497
515
|
***
|
|
498
516
|
|
|
@@ -512,4 +530,4 @@ src/utils/OverflowWatcher/index.ts:82
|
|
|
512
530
|
|
|
513
531
|
#### Source
|
|
514
532
|
|
|
515
|
-
src/utils/OverflowWatcher/index.ts:
|
|
533
|
+
src/utils/OverflowWatcher/index.ts:80
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
#### Source
|
|
16
16
|
|
|
17
|
-
src/utils/OverflowWatcher/index.ts:
|
|
17
|
+
src/utils/OverflowWatcher/index.ts:233
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
@@ -24,7 +24,7 @@ src/utils/OverflowWatcher/index.ts:227
|
|
|
24
24
|
|
|
25
25
|
#### Source
|
|
26
26
|
|
|
27
|
-
src/utils/OverflowWatcher/index.ts:
|
|
27
|
+
src/utils/OverflowWatcher/index.ts:236
|
|
28
28
|
|
|
29
29
|
***
|
|
30
30
|
|
|
@@ -34,7 +34,7 @@ src/utils/OverflowWatcher/index.ts:230
|
|
|
34
34
|
|
|
35
35
|
#### Source
|
|
36
36
|
|
|
37
|
-
src/utils/OverflowWatcher/index.ts:
|
|
37
|
+
src/utils/OverflowWatcher/index.ts:235
|
|
38
38
|
|
|
39
39
|
***
|
|
40
40
|
|
|
@@ -44,7 +44,7 @@ src/utils/OverflowWatcher/index.ts:229
|
|
|
44
44
|
|
|
45
45
|
#### Source
|
|
46
46
|
|
|
47
|
-
src/utils/OverflowWatcher/index.ts:
|
|
47
|
+
src/utils/OverflowWatcher/index.ts:232
|
|
48
48
|
|
|
49
49
|
***
|
|
50
50
|
|
|
@@ -54,7 +54,7 @@ src/utils/OverflowWatcher/index.ts:226
|
|
|
54
54
|
|
|
55
55
|
#### Source
|
|
56
56
|
|
|
57
|
-
src/utils/OverflowWatcher/index.ts:
|
|
57
|
+
src/utils/OverflowWatcher/index.ts:237
|
|
58
58
|
|
|
59
59
|
***
|
|
60
60
|
|
|
@@ -64,4 +64,4 @@ src/utils/OverflowWatcher/index.ts:231
|
|
|
64
64
|
|
|
65
65
|
#### Source
|
|
66
66
|
|
|
67
|
-
src/utils/OverflowWatcher/index.ts:
|
|
67
|
+
src/utils/OverflowWatcher/index.ts:234
|
|
@@ -26,6 +26,7 @@ export default class OverflowWatcher {
|
|
|
26
26
|
* @param notOverFlow - Lista de ids ou data-element-ids dos elementos que não devem sofrer overFlow.
|
|
27
27
|
*/
|
|
28
28
|
constructor({ element, callback, overFlowDirection, debounce, deltaSize, notOverFlow }: OverFlowWatcherParams);
|
|
29
|
+
addNotOverFlowElement(elementId: string): void;
|
|
29
30
|
destroy(): void;
|
|
30
31
|
forceUpdate(): void;
|
|
31
32
|
private handleResize;
|
|
@@ -31,6 +31,11 @@ export default class OverflowWatcher {
|
|
|
31
31
|
this._deltaSize = deltaSize;
|
|
32
32
|
this._notOverFlow = notOverFlow;
|
|
33
33
|
}
|
|
34
|
+
addNotOverFlowElement(elementId) {
|
|
35
|
+
if (!this._notOverFlow.includes(elementId)) {
|
|
36
|
+
this._notOverFlow.push(elementId);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
34
39
|
destroy() {
|
|
35
40
|
this._resizeObserver.disconnect();
|
|
36
41
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/OverflowWatcher/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAA;AAEjE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAE7C,MAAM,CAAC,MAAM,qBAAqB,GAAG,YAAY,CAAC;AAElD,MAAM,CAAC,OAAO,OAAO,eAAe;IAchC;;;;;;;;;OASG;IACH,YAAY,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C,QAAQ,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,WAAW,IAAI,IAAI,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,CAAC;QAC5E,OAAO,WAAW,CAAC;IACvB,CAAC;IAEO,eAAe,CAAC,EAAW;;QAC/B,IAAI,IAAI,GAAG,CAAC,CAAA;QACZ,IAAI,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,EAAE;YACvB,MAAM,SAAS,GAAG,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YACjD,IAAI,IAAI,MAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,IAAI,mCAAI,CAAC,CAAC;YAC7B,IAAI,IAAI,MAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,MAAM,mCAAI,CAAC,CAAC;YAC/B,OAAO,IAAI,CAAC;SACf;QAED,IAAI,IAAK,EAAE,CAAC,qBAAqB,EAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC5D,IAAI,IAAI,cAAc,CAAC,EAAE,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAClD,OAAO,IAAI,CAAC;IAChB,CAAC;IAEO,YAAY,CAAC,EAAW;QAC5B,OAAO,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC;IACxD,CAAC;CACJ"}
|
package/package.json
CHANGED
package/reports/test-report.xml
CHANGED
|
@@ -1,125 +1,125 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<unitTest version="1">
|
|
3
|
+
<file path="/builds/dti/design-system/sankhyacore/test/util/CriteriaModel.spec.ts">
|
|
4
|
+
<testCase name="StringUtils it should return the undefined and [] to Criteria Props through new class with empty constructor" duration="99"/>
|
|
5
|
+
<testCase name="StringUtils it should modify "expressions" and "parameters" properties through Setters methods" duration="1"/>
|
|
6
|
+
<testCase name="StringUtils it should return "expression" and "parameters" setted through constructor method" duration="1"/>
|
|
7
|
+
<testCase name="StringUtils it should return a Criteria class with "expression" and "parameters" as needed setted through "append" method" duration="1"/>
|
|
8
|
+
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "append" method" duration="5"/>
|
|
9
|
+
<testCase name="StringUtils it should return undefined as "expression" and "[]" as parameters as we use an empty criteria as first entry in the constructor" duration="1"/>
|
|
10
|
+
<testCase name="StringUtils it should return a Criteria class with "Expression" and "parameters" concatenaded as needed setted through "OR" method" duration="1"/>
|
|
11
|
+
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "OR" method" duration="1"/>
|
|
12
|
+
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "OR" method" duration="1"/>
|
|
13
|
+
<testCase name="StringUtils it should return a Criteria class with "Expression" and "parameters" concatenaded as needed setted through "AND" method" duration="3"/>
|
|
14
|
+
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "AND" method" duration="1"/>
|
|
15
|
+
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "AND" method" duration="1"/>
|
|
16
|
+
<testCase name="StringUtils it should return a toJSON object with "Criteria class" and "parameters" concatenaded as needed setted through "AND" method" duration="1"/>
|
|
17
|
+
<testCase name="StringUtils it should return a toJSON object with through empty constructor" duration="0"/>
|
|
18
|
+
</file>
|
|
3
19
|
<file path="/builds/dti/design-system/sankhyacore/test/http/HttpProvider.spec.ts">
|
|
4
|
-
<testCase name="HttpProvider Metodo GET" duration="
|
|
20
|
+
<testCase name="HttpProvider Metodo GET" duration="0"/>
|
|
5
21
|
</file>
|
|
6
22
|
<file path="/builds/dti/design-system/sankhyacore/test/http/SkwHttpProvider.ts.spec.ts">
|
|
7
|
-
<testCase name="HttpProvider Metodo POST" duration="
|
|
8
|
-
</file>
|
|
9
|
-
<file path="/builds/dti/design-system/sankhyacore/test/util/CriteriaParameter.spec.ts">
|
|
10
|
-
<testCase name="StringUtils it should return the correct values of "value" and "type" through the getters methods initial setted by the constructor" duration="86"/>
|
|
11
|
-
<testCase name="StringUtils it should return the correct values of "value" and "type" through the getters methods initial setted by the setters methods" duration="1"/>
|
|
12
|
-
<testCase name="StringUtils it should return the correct JSON/Object value through the buildParam method" duration="1"/>
|
|
23
|
+
<testCase name="HttpProvider Metodo POST" duration="1"/>
|
|
13
24
|
</file>
|
|
14
25
|
<file path="/builds/dti/design-system/sankhyacore/test/util/MaskFormatter.spec.ts">
|
|
15
|
-
<testCase name="Mask Formatter mask:CPF complete valid" duration="
|
|
26
|
+
<testCase name="Mask Formatter mask:CPF complete valid" duration="11"/>
|
|
16
27
|
<testCase name="Mask Formatter mask:CPF complete valid literals" duration="1"/>
|
|
17
28
|
<testCase name="Mask Formatter mask:CPF incomplete valid" duration="1"/>
|
|
18
|
-
<testCase name="Mask Formatter mask:CPF incomplete valid placeholder" duration="
|
|
29
|
+
<testCase name="Mask Formatter mask:CPF incomplete valid placeholder" duration="1"/>
|
|
19
30
|
<testCase name="Mask Formatter mask:CPF too long valid" duration="0"/>
|
|
20
|
-
<testCase name="Mask Formatter mask:CPF invalid for string" duration="
|
|
21
|
-
<testCase name="Mask Formatter mask:CPF invalid for being too long" duration="
|
|
22
|
-
<testCase name="Mask Formatter mask:Licence plate valid uppercase" duration="
|
|
31
|
+
<testCase name="Mask Formatter mask:CPF invalid for string" duration="183"/>
|
|
32
|
+
<testCase name="Mask Formatter mask:CPF invalid for being too long" duration="1"/>
|
|
33
|
+
<testCase name="Mask Formatter mask:Licence plate valid uppercase" duration="0"/>
|
|
23
34
|
<testCase name="Mask Formatter mask:Licence plate valid lowercase" duration="1"/>
|
|
24
|
-
<testCase name="Mask Formatter mask:Licence plate invalid" duration="
|
|
35
|
+
<testCase name="Mask Formatter mask:Licence plate invalid" duration="2"/>
|
|
25
36
|
<testCase name="Mask Formatter mask:Licence plate invalid for being too short" duration="1"/>
|
|
26
37
|
<testCase name="Mask Formatter mask:Licence plate invalid for being too short with placeholder" duration="0"/>
|
|
27
|
-
<testCase name="Mask Formatter mask:Licence plate invalid" duration="
|
|
38
|
+
<testCase name="Mask Formatter mask:Licence plate invalid" duration="2"/>
|
|
28
39
|
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
|
|
29
40
|
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="0"/>
|
|
30
41
|
<testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
|
|
31
|
-
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="
|
|
42
|
+
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
|
|
32
43
|
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="0"/>
|
|
33
|
-
<testCase name="Mask Formatter mask:Licence plate invalid" duration="
|
|
34
|
-
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="
|
|
44
|
+
<testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
|
|
45
|
+
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
|
|
35
46
|
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="0"/>
|
|
36
47
|
<testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
|
|
37
48
|
</file>
|
|
38
|
-
<file path="/builds/dti/design-system/sankhyacore/test/util/
|
|
39
|
-
<testCase name="StringUtils it should return the
|
|
40
|
-
<testCase name="StringUtils it should
|
|
41
|
-
<testCase name="StringUtils it should return
|
|
42
|
-
<testCase name="StringUtils it should return a Criteria class with "expression" and "parameters" as needed setted through "append" method" duration="81"/>
|
|
43
|
-
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "append" method" duration="2"/>
|
|
44
|
-
<testCase name="StringUtils it should return undefined as "expression" and "[]" as parameters as we use an empty criteria as first entry in the constructor" duration="1"/>
|
|
45
|
-
<testCase name="StringUtils it should return a Criteria class with "Expression" and "parameters" concatenaded as needed setted through "OR" method" duration="1"/>
|
|
46
|
-
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "OR" method" duration="105"/>
|
|
47
|
-
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "OR" method" duration="1"/>
|
|
48
|
-
<testCase name="StringUtils it should return a Criteria class with "Expression" and "parameters" concatenaded as needed setted through "AND" method" duration="2"/>
|
|
49
|
-
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "AND" method" duration="87"/>
|
|
50
|
-
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "AND" method" duration="11"/>
|
|
51
|
-
<testCase name="StringUtils it should return a toJSON object with "Criteria class" and "parameters" concatenaded as needed setted through "AND" method" duration="1"/>
|
|
52
|
-
<testCase name="StringUtils it should return a toJSON object with through empty constructor" duration="1"/>
|
|
53
|
-
</file>
|
|
54
|
-
<file path="/builds/dti/design-system/sankhyacore/test/util/TimeFormatter.spec.ts">
|
|
55
|
-
<testCase name="TimeFormatter Case: input string unformated with showSeconds" duration="1"/>
|
|
56
|
-
<testCase name="TimeFormatter Case: input string unformated without showSeconds" duration="0"/>
|
|
57
|
-
<testCase name="TimeFormatter Case: validateTime" duration="81"/>
|
|
58
|
-
</file>
|
|
59
|
-
<file path="/builds/dti/design-system/sankhyacore/test/util/NumberUtils.spec.ts">
|
|
60
|
-
<testCase name="StringUtils stringToNumber" duration="13"/>
|
|
61
|
-
<testCase name="StringUtils format" duration="97"/>
|
|
62
|
-
<testCase name="StringUtils format without formatnumber parameter" duration="1"/>
|
|
63
|
-
<testCase name="StringUtils format without formatnumber parameter" duration="90"/>
|
|
64
|
-
<testCase name="StringUtils format round number" duration="1"/>
|
|
49
|
+
<file path="/builds/dti/design-system/sankhyacore/test/util/CriteriaParameter.spec.ts">
|
|
50
|
+
<testCase name="StringUtils it should return the correct values of "value" and "type" through the getters methods initial setted by the constructor" duration="12"/>
|
|
51
|
+
<testCase name="StringUtils it should return the correct values of "value" and "type" through the getters methods initial setted by the setters methods" duration="1"/>
|
|
52
|
+
<testCase name="StringUtils it should return the correct JSON/Object value through the buildParam method" duration="1"/>
|
|
65
53
|
</file>
|
|
66
54
|
<file path="/builds/dti/design-system/sankhyacore/test/util/StringUtils.spec.ts">
|
|
67
|
-
<testCase name="StringUtils valor vazio" duration="
|
|
55
|
+
<testCase name="StringUtils valor vazio" duration="6"/>
|
|
68
56
|
<testCase name="StringUtils valor em branco" duration="1"/>
|
|
69
57
|
<testCase name="StringUtils valor null" duration="1"/>
|
|
70
|
-
<testCase name="StringUtils valor undefined" duration="
|
|
71
|
-
<testCase name="StringUtils valor 0" duration="
|
|
58
|
+
<testCase name="StringUtils valor undefined" duration="0"/>
|
|
59
|
+
<testCase name="StringUtils valor 0" duration="1"/>
|
|
72
60
|
<testCase name="StringUtils com valor" duration="0"/>
|
|
73
|
-
<testCase name="StringUtils substitui vogais com acento por vogais sem acento" duration="
|
|
61
|
+
<testCase name="StringUtils substitui vogais com acento por vogais sem acento" duration="1"/>
|
|
74
62
|
<testCase name="StringUtils should return the original value when called with an object without a toString method" duration="2"/>
|
|
75
|
-
<testCase name="StringUtils should return the original value when called with undefined" duration="
|
|
63
|
+
<testCase name="StringUtils should return the original value when called with undefined" duration="1"/>
|
|
76
64
|
</file>
|
|
77
65
|
<file path="/builds/dti/design-system/sankhyacore/test/util/OverflowWatcher.spec.ts">
|
|
78
|
-
<testCase name="OverflowWatcher should initialize with provided parameters" duration="
|
|
66
|
+
<testCase name="OverflowWatcher should initialize with provided parameters" duration="72"/>
|
|
79
67
|
<testCase name="OverflowWatcher should disconect ResizeObserver when destroy is called" duration="2"/>
|
|
80
|
-
<testCase name="OverflowWatcher Should call callback on forceUpdate" duration="
|
|
81
|
-
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan" duration="
|
|
82
|
-
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan when notOverFlow is empty" duration="
|
|
83
|
-
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan considering overflowed elements" duration="
|
|
84
|
-
<testCase name="OverflowWatcher Should call callback on forceUpdate with empty list" duration="
|
|
85
|
-
<testCase name="OverflowWatcher should ignore elements that can not overflow" duration="
|
|
86
|
-
<testCase name="OverflowWatcher Should not call callback on forceUpdate" duration="
|
|
68
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate" duration="291"/>
|
|
69
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan" duration="27"/>
|
|
70
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan when notOverFlow is empty" duration="15"/>
|
|
71
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan considering overflowed elements" duration="10"/>
|
|
72
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate with empty list" duration="76"/>
|
|
73
|
+
<testCase name="OverflowWatcher should ignore elements that can not overflow" duration="21"/>
|
|
74
|
+
<testCase name="OverflowWatcher Should not call callback on forceUpdate" duration="1"/>
|
|
75
|
+
</file>
|
|
76
|
+
<file path="/builds/dti/design-system/sankhyacore/test/util/NumberUtils.spec.ts">
|
|
77
|
+
<testCase name="StringUtils stringToNumber" duration="73"/>
|
|
78
|
+
<testCase name="StringUtils format" duration="21"/>
|
|
79
|
+
<testCase name="StringUtils format without formatnumber parameter" duration="1"/>
|
|
80
|
+
<testCase name="StringUtils format without formatnumber parameter" duration="2"/>
|
|
81
|
+
<testCase name="StringUtils format round number" duration="2"/>
|
|
82
|
+
</file>
|
|
83
|
+
<file path="/builds/dti/design-system/sankhyacore/test/util/TimeFormatter.spec.ts">
|
|
84
|
+
<testCase name="TimeFormatter Case: input string unformated with showSeconds" duration="2"/>
|
|
85
|
+
<testCase name="TimeFormatter Case: input string unformated without showSeconds" duration="0"/>
|
|
86
|
+
<testCase name="TimeFormatter Case: validateTime" duration="1"/>
|
|
87
|
+
</file>
|
|
88
|
+
<file path="/builds/dti/design-system/sankhyacore/test/util/DataUnitStorage.spec.ts">
|
|
89
|
+
<testCase name="DataUnitStorage put should store a DataUnit instance in the DataUnitStorage" duration="5"/>
|
|
90
|
+
<testCase name="DataUnitStorage get should return the stored DataUnit instance from the DataUnitStorage" duration="0"/>
|
|
91
|
+
<testCase name="DataUnitStorage get should return undefined if the DataUnit instance is not found in the DataUnitStorage" duration="1"/>
|
|
92
|
+
<testCase name="DataUnitStorage remove should remove the specified DataUnit instance from the DataUnitStorage" duration="0"/>
|
|
93
|
+
<testCase name="DataUnitStorage remove should remove the DataUnit instance with the specified name from the DataUnitStorage" duration="53"/>
|
|
94
|
+
<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"/>
|
|
87
95
|
</file>
|
|
88
96
|
<file path="/builds/dti/design-system/sankhyacore/test/util/ElementIDUtils.spec.ts">
|
|
89
|
-
<testCase name="addIDInfo 1 - should add data-element-id with valid id "movFinanceira_snkApplication"" duration="
|
|
97
|
+
<testCase name="addIDInfo 1 - should add data-element-id with valid id "movFinanceira_snkApplication"" duration="70"/>
|
|
90
98
|
<testCase name="addIDInfo 2 - should add data-element-id with valid id "brComSankhyaFinCadMovimentacaofinanceira_snkApplication"" duration="2"/>
|
|
91
99
|
<testCase name="addIDInfo 3 - should add data-element-id with valid id "movFinanceira_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="1"/>
|
|
92
100
|
<testCase name="addIDInfo 4 - should add data-element-id with valid id "meuID2_snkApplication"" duration="1"/>
|
|
93
101
|
<testCase name="addIDInfo 5 - should add data-element-id with valid id "movFinanceira_snkApplication"" duration="1"/>
|
|
94
102
|
<testCase name="addIDInfo 6 - should add data-element-id with valid id "movFinanceira_snkApplication"" duration="1"/>
|
|
95
|
-
<testCase name="addIDInfo 7 - should add data-element-id with valid id "componenteNameTest_snkApplication"" duration="
|
|
96
|
-
<testCase name="addIDInfo 8 - should add data-element-id with valid id "componentLabel_snkApplication"" duration="
|
|
103
|
+
<testCase name="addIDInfo 7 - should add data-element-id with valid id "componenteNameTest_snkApplication"" duration="6"/>
|
|
104
|
+
<testCase name="addIDInfo 8 - should add data-element-id with valid id "componentLabel_snkApplication"" duration="1"/>
|
|
97
105
|
<testCase name="addIDInfo 9 - should add data-element-id with valid id "dataunitFinanceiro_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="1"/>
|
|
98
|
-
<testCase name="addIDInfo 10 - should add data-element-id with valid id "dataunitFinanceiro_meuIDTeste_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="
|
|
99
|
-
<testCase name="addIDInfo 11 - should add data-element-id with valid id "dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira"" duration="
|
|
100
|
-
<testCase name="addIDInfo 12 - should add data-element-id with valid id "dataunitFinanceiro_movFinanceira_movimentacaoFinanceira"" duration="
|
|
106
|
+
<testCase name="addIDInfo 10 - should add data-element-id with valid id "dataunitFinanceiro_meuIDTeste_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="1"/>
|
|
107
|
+
<testCase name="addIDInfo 11 - should add data-element-id with valid id "dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira"" duration="2"/>
|
|
108
|
+
<testCase name="addIDInfo 12 - should add data-element-id with valid id "dataunitFinanceiro_movFinanceira_movimentacaoFinanceira"" duration="1"/>
|
|
101
109
|
<testCase name="addIDInfo 13 - should add data-element-id with valid id "dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira"" duration="1"/>
|
|
102
|
-
<testCase name="addIDInfo 14 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_movimentacaoFinanceira"" duration="
|
|
110
|
+
<testCase name="addIDInfo 14 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_movimentacaoFinanceira"" duration="2"/>
|
|
103
111
|
<testCase name="addIDInfo 15 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_snkApplication"" duration="1"/>
|
|
104
112
|
<testCase name="addIDInfo 16 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_snkApplication"" duration="1"/>
|
|
105
113
|
<testCase name="addIDInfo 17 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="1"/>
|
|
106
|
-
<testCase name="addIDInfo 18 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="
|
|
107
|
-
<testCase name="addIDInfo 19 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="
|
|
108
|
-
<testCase name="addIDInfo 20 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="
|
|
114
|
+
<testCase name="addIDInfo 18 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="1"/>
|
|
115
|
+
<testCase name="addIDInfo 19 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="0"/>
|
|
116
|
+
<testCase name="addIDInfo 20 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="0"/>
|
|
109
117
|
<testCase name="addIDInfo 21 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="1"/>
|
|
110
|
-
<testCase name="addIDInfo 22 - should add data-element-id with valid id "bancoObrigatorio_movimentacaoFinanceira"" duration="
|
|
111
|
-
</file>
|
|
112
|
-
<file path="/builds/dti/design-system/sankhyacore/test/util/DataUnitStorage.spec.ts">
|
|
113
|
-
<testCase name="DataUnitStorage put should store a DataUnit instance in the DataUnitStorage" duration="7"/>
|
|
114
|
-
<testCase name="DataUnitStorage get should return the stored DataUnit instance from the DataUnitStorage" duration="0"/>
|
|
115
|
-
<testCase name="DataUnitStorage get should return undefined if the DataUnit instance is not found in the DataUnitStorage" duration="1"/>
|
|
116
|
-
<testCase name="DataUnitStorage remove should remove the specified DataUnit instance from the DataUnitStorage" duration="1"/>
|
|
117
|
-
<testCase name="DataUnitStorage remove should remove the DataUnit instance with the specified name from the DataUnitStorage" duration="1"/>
|
|
118
|
-
<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"/>
|
|
118
|
+
<testCase name="addIDInfo 22 - should add data-element-id with valid id "bancoObrigatorio_movimentacaoFinanceira"" duration="1"/>
|
|
119
119
|
</file>
|
|
120
120
|
<file path="/builds/dti/design-system/sankhyacore/test/util/ElementUtils.spec.ts">
|
|
121
|
-
<testCase name="calcMarginSize should calculate correctly the size of horizontal margin" duration="
|
|
122
|
-
<testCase name="calcMarginSize should calculate correctly the size of vertical margin" duration="
|
|
123
|
-
<testCase name="calcMarginSize should threat values defined as zero" duration="
|
|
121
|
+
<testCase name="calcMarginSize should calculate correctly the size of horizontal margin" duration="80"/>
|
|
122
|
+
<testCase name="calcMarginSize should calculate correctly the size of vertical margin" duration="3"/>
|
|
123
|
+
<testCase name="calcMarginSize should threat values defined as zero" duration="5"/>
|
|
124
124
|
</file>
|
|
125
125
|
</unitTest>
|
|
@@ -49,6 +49,12 @@ export default class OverflowWatcher {
|
|
|
49
49
|
this._notOverFlow = notOverFlow;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
public addNotOverFlowElement(elementId: string){
|
|
53
|
+
if(!this._notOverFlow.includes(elementId)){
|
|
54
|
+
this._notOverFlow.push(elementId);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
52
58
|
public destroy(){
|
|
53
59
|
this._resizeObserver.disconnect();
|
|
54
60
|
}
|
|
@@ -108,7 +108,16 @@ describe('OverflowWatcher', () => {
|
|
|
108
108
|
notOverflowElement.setAttribute('data-element-id', 'testId') ;
|
|
109
109
|
notOverflowElement.getBoundingClientRect = jest.fn().mockReturnValue(getMockedRectClientValue(50));
|
|
110
110
|
|
|
111
|
+
const notOverflowElement2 = document.createElement('div');
|
|
112
|
+
notOverflowElement2.setAttribute('data-element-id', 'testId2') ;
|
|
113
|
+
notOverflowElement2.getBoundingClientRect = jest.fn().mockReturnValue(getMockedRectClientValue(50));
|
|
114
|
+
|
|
111
115
|
mockElement.appendChild(notOverflowElement);
|
|
116
|
+
mockElement.appendChild(notOverflowElement2);
|
|
117
|
+
|
|
118
|
+
watcherInstance.addNotOverFlowElement('testId');
|
|
119
|
+
watcherInstance.addNotOverFlowElement('testId2');
|
|
120
|
+
|
|
112
121
|
watcherInstance.forceUpdate();
|
|
113
122
|
|
|
114
123
|
expect(mockCallback).not.toHaveBeenCalledWith(expect.arrayContaining([notOverflowElement]));
|