@sankhyalabs/core 5.20.0-dev.76 → 5.20.0-dev.77
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/KeyboardManager.md +26 -6
- package/dist/utils/KeyboardManager/index.d.ts +5 -0
- package/dist/utils/KeyboardManager/index.js +8 -0
- package/dist/utils/KeyboardManager/index.js.map +1 -1
- package/package.json +1 -1
- package/reports/test-report.xml +141 -141
- package/src/utils/KeyboardManager/index.ts +10 -0
|
@@ -76,7 +76,7 @@ chaves mapeadas com descrições
|
|
|
76
76
|
|
|
77
77
|
#### Source
|
|
78
78
|
|
|
79
|
-
src/utils/KeyboardManager/index.ts:
|
|
79
|
+
src/utils/KeyboardManager/index.ts:154
|
|
80
80
|
|
|
81
81
|
## Methods
|
|
82
82
|
|
|
@@ -156,7 +156,7 @@ Retorna se todas as teclas modificadoras foram aplicadas
|
|
|
156
156
|
|
|
157
157
|
#### Source
|
|
158
158
|
|
|
159
|
-
src/utils/KeyboardManager/index.ts:
|
|
159
|
+
src/utils/KeyboardManager/index.ts:223
|
|
160
160
|
|
|
161
161
|
***
|
|
162
162
|
|
|
@@ -210,7 +210,7 @@ O evento de teclado
|
|
|
210
210
|
|
|
211
211
|
#### Source
|
|
212
212
|
|
|
213
|
-
src/utils/KeyboardManager/index.ts:
|
|
213
|
+
src/utils/KeyboardManager/index.ts:170
|
|
214
214
|
|
|
215
215
|
***
|
|
216
216
|
|
|
@@ -238,7 +238,7 @@ Retorna se o evento de teclado foi disparado e as teclas modificadoras aplicadas
|
|
|
238
238
|
|
|
239
239
|
#### Source
|
|
240
240
|
|
|
241
|
-
src/utils/KeyboardManager/index.ts:
|
|
241
|
+
src/utils/KeyboardManager/index.ts:186
|
|
242
242
|
|
|
243
243
|
***
|
|
244
244
|
|
|
@@ -282,7 +282,27 @@ Chave de mapeamento de teclado.
|
|
|
282
282
|
|
|
283
283
|
#### Source
|
|
284
284
|
|
|
285
|
-
src/utils/KeyboardManager/index.ts:
|
|
285
|
+
src/utils/KeyboardManager/index.ts:126
|
|
286
|
+
|
|
287
|
+
***
|
|
288
|
+
|
|
289
|
+
### unbindAllShortcutKeys()
|
|
290
|
+
|
|
291
|
+
> **unbindAllShortcutKeys**(`listShortcutKeys`?): `void`
|
|
292
|
+
|
|
293
|
+
Remove todos os eventos de teclado ou de uma lista informada
|
|
294
|
+
|
|
295
|
+
#### Parameters
|
|
296
|
+
|
|
297
|
+
• **listShortcutKeys?**: `string`[]
|
|
298
|
+
|
|
299
|
+
#### Returns
|
|
300
|
+
|
|
301
|
+
`void`
|
|
302
|
+
|
|
303
|
+
#### Source
|
|
304
|
+
|
|
305
|
+
src/utils/KeyboardManager/index.ts:115
|
|
286
306
|
|
|
287
307
|
***
|
|
288
308
|
|
|
@@ -308,4 +328,4 @@ Se o evento de teclado deve ser propagado
|
|
|
308
328
|
|
|
309
329
|
#### Source
|
|
310
330
|
|
|
311
|
-
src/utils/KeyboardManager/index.ts:
|
|
331
|
+
src/utils/KeyboardManager/index.ts:259
|
|
@@ -24,6 +24,11 @@ export declare class KeyboardManager {
|
|
|
24
24
|
* @return {KeyboardManager} O objeto `KeyboardManager`
|
|
25
25
|
*/
|
|
26
26
|
bind(keyMap: string, callback: VoidFunction, options?: Partial<IKeyboardOptions>): KeyboardManager;
|
|
27
|
+
/**
|
|
28
|
+
* Remove todos os eventos de teclado ou de uma lista informada
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
unbindAllShortcutKeys(listShortcutKeys?: string[]): void;
|
|
27
32
|
/**
|
|
28
33
|
* Remove um evento de teclado
|
|
29
34
|
*
|
|
@@ -71,6 +71,14 @@ export class KeyboardManager {
|
|
|
71
71
|
}
|
|
72
72
|
return this;
|
|
73
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* Remove todos os eventos de teclado ou de uma lista informada
|
|
76
|
+
*
|
|
77
|
+
*/
|
|
78
|
+
unbindAllShortcutKeys(listShortcutKeys) {
|
|
79
|
+
const mappedKeys = [...Object.keys(listShortcutKeys || this._mappedElements)];
|
|
80
|
+
mappedKeys === null || mappedKeys === void 0 ? void 0 : mappedKeys.forEach(keyMap => this.unbind(keyMap));
|
|
81
|
+
}
|
|
74
82
|
/**
|
|
75
83
|
* Remove um evento de teclado
|
|
76
84
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/KeyboardManager/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD;;GAEG;AACH,MAAM,OAAO,eAAe;IAKzB;;;;OAIG;IACH,YAAY,OAAmC;QARvC,iBAAY,GAAkB,EAAE,CAAC;QACjC,oBAAe,GAAgC,EAAE,CAAC;QAQvD,IAAI,CAAC,QAAQ,mBACV,IAAI,EAAE,SAAS,EACf,SAAS,EAAE,KAAK,EAChB,OAAO,EAAE,QAAQ,CAAC,IAAI,EACtB,YAAY,EAAE,CAAC,EACf,eAAe,EAAE,KAAK,IACnB,OAAO,CACZ,CAAA;QAED,IAAG,IAAI,CAAC,QAAQ,CAAC,eAAe,EAAE;YAC/B,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;SAC3E;IACJ,CAAC;IAEO,wBAAwB,CAAC,OAAqD,EAAG,UAAyB,EAAE;QACjH,IAAI,CAAC,OAAO,EAAE;YACX,OAAO,OAAO,CAAC;SACjB;QAED,MAAM,UAAU,GAAI,OAAuB,aAAvB,OAAO,uBAAP,OAAO,CAAkB,UAAU,CAAC;QACxD,IAAI,UAAU,EAAE;YACd,OAAO,CAAC,IAAI,CAAC,UA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gBAC9B,MAAM;aACR;SACH;QAED,OAAO,qBAAqB,CAAC;IAChC,CAAC;IAED;;;;;;OAMG;IACK,wBAAwB,CAAC,KAAoB,EAAE,SAAkB;;QACtE,IAAI,CAAC,SAAS,EAAE;YACb,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,cAAc,qDAAI,CAAC;YAC1B,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,eAAe,qDAAI,CAAC;SAC7B;IACJ,CAAC;CACH"}
|
package/package.json
CHANGED
package/reports/test-report.xml
CHANGED
|
@@ -1,215 +1,215 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<unitTest version="1">
|
|
3
|
-
<file path="/builds/dti/design-system/sankhyacore/test/
|
|
4
|
-
<testCase name="
|
|
5
|
-
<testCase name="
|
|
6
|
-
<testCase name="
|
|
7
|
-
<testCase name="
|
|
8
|
-
<testCase name="
|
|
9
|
-
<testCase name="
|
|
10
|
-
<testCase name="
|
|
11
|
-
<testCase name="
|
|
12
|
-
<testCase name="
|
|
13
|
-
<testCase name="
|
|
14
|
-
<testCase name="
|
|
15
|
-
<testCase name="
|
|
16
|
-
<testCase name="
|
|
17
|
-
<testCase name="StringUtils it should return a toJSON object with through empty constructor" duration="1"/>
|
|
3
|
+
<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="102"/>
|
|
5
|
+
<testCase name="ObjectUtils hasEquivalentValues should return false if both objects have different property values" duration="0"/>
|
|
6
|
+
<testCase name="ObjectUtils hasEquivalentValues should return true if both objects are equivalent with custom property to compare" duration="1"/>
|
|
7
|
+
<testCase name="ObjectUtils hasEquivalentValues should return false if both objects are not equivalent with custom property to compare" duration="86"/>
|
|
8
|
+
<testCase name="ObjectUtils hasEquivalentValues should return false if one object does not have the property" duration="0"/>
|
|
9
|
+
<testCase name="ObjectUtils hasEquivalentValues should return true if comparing primitive values directly" duration="105"/>
|
|
10
|
+
<testCase name="ObjectUtils hasEquivalentValues should return false if comparing different primitive values" duration="1"/>
|
|
11
|
+
<testCase name="ObjectUtils hasEquivalentValues should return true when comparing object with a null value" duration="0"/>
|
|
12
|
+
<testCase name="ObjectUtils hasEquivalentValues should return false when comparing object with null and non-null value" duration="1"/>
|
|
13
|
+
<testCase name="ObjectUtils hasEquivalentValues should return true when comparing non-object values that are equal" duration="9"/>
|
|
14
|
+
<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="0"/>
|
|
16
|
+
<testCase name="ObjectUtils should return undefined if the path doesn't exist in the object" duration="1"/>
|
|
18
17
|
</file>
|
|
19
18
|
<file path="/builds/dti/design-system/sankhyacore/test/util/MaskFormatter.spec.ts">
|
|
20
|
-
<testCase name="Mask Formatter mask:CPF complete valid" duration="
|
|
21
|
-
<testCase name="Mask Formatter mask:CPF complete valid literals" duration="
|
|
22
|
-
<testCase name="Mask Formatter mask:CPF incomplete valid" duration="
|
|
19
|
+
<testCase name="Mask Formatter mask:CPF complete valid" duration="184"/>
|
|
20
|
+
<testCase name="Mask Formatter mask:CPF complete valid literals" duration="2"/>
|
|
21
|
+
<testCase name="Mask Formatter mask:CPF incomplete valid" duration="1"/>
|
|
23
22
|
<testCase name="Mask Formatter mask:CPF incomplete valid placeholder" duration="1"/>
|
|
24
|
-
<testCase name="Mask Formatter mask:CPF too long valid" duration="
|
|
25
|
-
<testCase name="Mask Formatter mask:CPF invalid for string" duration="
|
|
26
|
-
<testCase name="Mask Formatter mask:CPF invalid for being too long" duration="
|
|
23
|
+
<testCase name="Mask Formatter mask:CPF too long valid" duration="1"/>
|
|
24
|
+
<testCase name="Mask Formatter mask:CPF invalid for string" duration="211"/>
|
|
25
|
+
<testCase name="Mask Formatter mask:CPF invalid for being too long" duration="1"/>
|
|
27
26
|
<testCase name="Mask Formatter mask:Licence plate valid uppercase" duration="1"/>
|
|
28
|
-
<testCase name="Mask Formatter mask:Licence plate valid lowercase" duration="
|
|
29
|
-
<testCase name="Mask Formatter mask:Licence plate invalid" duration="
|
|
30
|
-
<testCase name="Mask Formatter mask:Licence plate invalid for being too short" duration="
|
|
27
|
+
<testCase name="Mask Formatter mask:Licence plate valid lowercase" duration="2"/>
|
|
28
|
+
<testCase name="Mask Formatter mask:Licence plate invalid" duration="3"/>
|
|
29
|
+
<testCase name="Mask Formatter mask:Licence plate invalid for being too short" duration="1"/>
|
|
31
30
|
<testCase name="Mask Formatter mask:Licence plate invalid for being too short with placeholder" duration="1"/>
|
|
31
|
+
<testCase name="Mask Formatter mask:Licence plate invalid" duration="82"/>
|
|
32
|
+
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
|
|
33
|
+
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="1"/>
|
|
32
34
|
<testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
|
|
33
35
|
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
|
|
34
|
-
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="
|
|
36
|
+
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="1"/>
|
|
35
37
|
<testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
|
|
36
38
|
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
|
|
37
39
|
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="0"/>
|
|
38
|
-
<testCase name="Mask Formatter mask:Licence plate invalid" duration="
|
|
39
|
-
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
|
|
40
|
-
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="1"/>
|
|
41
|
-
<testCase name="Mask Formatter mask:Licence plate invalid" duration="17"/>
|
|
42
|
-
</file>
|
|
43
|
-
<file path="/builds/dti/design-system/sankhyacore/test/util/NumberUtils.spec.ts">
|
|
44
|
-
<testCase name="StringUtils stringToNumber" duration="101"/>
|
|
45
|
-
<testCase name="StringUtils format" duration="89"/>
|
|
46
|
-
<testCase name="StringUtils format without formatnumber parameter" duration="0"/>
|
|
47
|
-
<testCase name="StringUtils format without formatnumber parameter" duration="1"/>
|
|
48
|
-
<testCase name="StringUtils format round number" duration="2"/>
|
|
49
|
-
</file>
|
|
50
|
-
<file path="/builds/dti/design-system/sankhyacore/test/util/OverflowWatcher.spec.ts">
|
|
51
|
-
<testCase name="OverflowWatcher should initialize with provided parameters" duration="17"/>
|
|
52
|
-
<testCase name="OverflowWatcher should disconect ResizeObserver when destroy is called" duration="80"/>
|
|
53
|
-
<testCase name="OverflowWatcher Should call callback on forceUpdate" duration="317"/>
|
|
54
|
-
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan" duration="95"/>
|
|
55
|
-
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan when notOverFlow is empty" duration="89"/>
|
|
56
|
-
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan considering overflowed elements" duration="9"/>
|
|
57
|
-
<testCase name="OverflowWatcher Should call callback on forceUpdate with empty list" duration="95"/>
|
|
58
|
-
<testCase name="OverflowWatcher should ignore elements that can not overflow" duration="17"/>
|
|
59
|
-
<testCase name="OverflowWatcher Should not call callback on forceUpdate" duration="1"/>
|
|
60
|
-
</file>
|
|
61
|
-
<file path="/builds/dti/design-system/sankhyacore/test/dataunit/loader/utils/dataUnitLoaderUtils.spec.ts">
|
|
62
|
-
<testCase name="Utility Functions applyFilter should return the original records if no filters are provided" duration="95"/>
|
|
63
|
-
<testCase name="Utility Functions applyFilter should filter records based on provided filters" duration="1"/>
|
|
64
|
-
<testCase name="Utility Functions buildPaginationInfo function should return correct pagination info with default values" duration="1"/>
|
|
65
|
-
<testCase name="Utility Functions buildPaginationInfo function should redosLenth as same size as recordsPerPage" duration="0"/>
|
|
66
|
-
<testCase name="Utility Functions buildPaginationInfo function should handle case when totalRecordsLength and offset 0" duration="1"/>
|
|
67
|
-
<testCase name="Utility Functions buildPaginationInfo function should handle case when currentPageLength is less than totalRecordsLength and lastPage" duration="0"/>
|
|
68
|
-
<testCase name="Utility Functions applySorting function should return the original records if no sorting is provided" duration="1"/>
|
|
69
|
-
<testCase name="Utility Functions applySorting function should sort records based on provided sorting criteria" duration="1"/>
|
|
40
|
+
<testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
|
|
70
41
|
</file>
|
|
71
|
-
<file path="/builds/dti/design-system/sankhyacore/
|
|
72
|
-
<testCase name="
|
|
73
|
-
<testCase name="
|
|
74
|
-
<testCase name="
|
|
75
|
-
<testCase name="
|
|
76
|
-
<testCase name="
|
|
77
|
-
<testCase name="
|
|
78
|
-
<testCase name="
|
|
79
|
-
<testCase name="
|
|
80
|
-
<testCase name="
|
|
81
|
-
<testCase name="
|
|
82
|
-
<testCase name="
|
|
83
|
-
<testCase name="
|
|
84
|
-
<testCase name="
|
|
42
|
+
<file path="/builds/dti/design-system/sankhyacore/test/util/CriteriaModel.spec.ts">
|
|
43
|
+
<testCase name="StringUtils it should return the undefined and [] to Criteria Props through new class with empty constructor" duration="85"/>
|
|
44
|
+
<testCase name="StringUtils it should modify "expressions" and "parameters" properties through Setters methods" duration="1"/>
|
|
45
|
+
<testCase name="StringUtils it should return "expression" and "parameters" setted through constructor method" duration="1"/>
|
|
46
|
+
<testCase name="StringUtils it should return a Criteria class with "expression" and "parameters" as needed setted through "append" method" duration="1"/>
|
|
47
|
+
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "append" method" duration="1"/>
|
|
48
|
+
<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"/>
|
|
49
|
+
<testCase name="StringUtils it should return a Criteria class with "Expression" and "parameters" concatenaded as needed setted through "OR" method" duration="1"/>
|
|
50
|
+
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "OR" method" duration="1"/>
|
|
51
|
+
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "OR" method" duration="1"/>
|
|
52
|
+
<testCase name="StringUtils it should return a Criteria class with "Expression" and "parameters" concatenaded as needed setted through "AND" method" duration="8"/>
|
|
53
|
+
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "AND" method" duration="1"/>
|
|
54
|
+
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "AND" method" duration="1"/>
|
|
55
|
+
<testCase name="StringUtils it should return a toJSON object with "Criteria class" and "parameters" concatenaded as needed setted through "AND" method" duration="1"/>
|
|
56
|
+
<testCase name="StringUtils it should return a toJSON object with through empty constructor" duration="1"/>
|
|
85
57
|
</file>
|
|
86
58
|
<file path="/builds/dti/design-system/sankhyacore/test/http/HttpProvider.spec.ts">
|
|
87
59
|
<testCase name="HttpProvider Metodo GET" duration="1"/>
|
|
88
60
|
</file>
|
|
61
|
+
<file path="/builds/dti/design-system/sankhyacore/test/http/SkwHttpProvider.ts.spec.ts">
|
|
62
|
+
<testCase name="HttpProvider Metodo POST" duration="1"/>
|
|
63
|
+
</file>
|
|
89
64
|
<file path="/builds/dti/design-system/sankhyacore/test/util/StringUtils.spec.ts">
|
|
90
|
-
<testCase name="StringUtils valor vazio" duration="
|
|
91
|
-
<testCase name="StringUtils valor em branco" duration="
|
|
92
|
-
<testCase name="StringUtils valor null" duration="
|
|
65
|
+
<testCase name="StringUtils valor vazio" duration="1"/>
|
|
66
|
+
<testCase name="StringUtils valor em branco" duration="1"/>
|
|
67
|
+
<testCase name="StringUtils valor null" duration="0"/>
|
|
93
68
|
<testCase name="StringUtils valor undefined" duration="0"/>
|
|
94
69
|
<testCase name="StringUtils valor 0" duration="0"/>
|
|
95
|
-
<testCase name="StringUtils com valor" duration="
|
|
96
|
-
<testCase name="StringUtils substitui vogais com acento por vogais sem acento" duration="
|
|
97
|
-
<testCase name="StringUtils should return the original value when called with an object without a toString method" duration="
|
|
70
|
+
<testCase name="StringUtils com valor" duration="0"/>
|
|
71
|
+
<testCase name="StringUtils substitui vogais com acento por vogais sem acento" duration="90"/>
|
|
72
|
+
<testCase name="StringUtils should return the original value when called with an object without a toString method" duration="2"/>
|
|
98
73
|
<testCase name="StringUtils should return the original value when called with undefined" duration="1"/>
|
|
99
74
|
</file>
|
|
75
|
+
<file path="/builds/dti/design-system/sankhyacore/test/util/NumberUtils.spec.ts">
|
|
76
|
+
<testCase name="StringUtils stringToNumber" duration="99"/>
|
|
77
|
+
<testCase name="StringUtils format" duration="202"/>
|
|
78
|
+
<testCase name="StringUtils format without formatnumber parameter" duration="1"/>
|
|
79
|
+
<testCase name="StringUtils format without formatnumber parameter" duration="91"/>
|
|
80
|
+
<testCase name="StringUtils format round number" duration="2"/>
|
|
81
|
+
</file>
|
|
82
|
+
<file path="/builds/dti/design-system/sankhyacore/test/dataunit/loader/utils/dataUnitLoaderUtils.spec.ts">
|
|
83
|
+
<testCase name="Utility Functions applyFilter should return the original records if no filters are provided" duration="103"/>
|
|
84
|
+
<testCase name="Utility Functions applyFilter should filter records based on provided filters" duration="21"/>
|
|
85
|
+
<testCase name="Utility Functions buildPaginationInfo function should return correct pagination info with default values" duration="1"/>
|
|
86
|
+
<testCase name="Utility Functions buildPaginationInfo function should redosLenth as same size as recordsPerPage" duration="0"/>
|
|
87
|
+
<testCase name="Utility Functions buildPaginationInfo function should handle case when totalRecordsLength and offset 0" duration="0"/>
|
|
88
|
+
<testCase name="Utility Functions buildPaginationInfo function should handle case when currentPageLength is less than totalRecordsLength and lastPage" duration="1"/>
|
|
89
|
+
<testCase name="Utility Functions applySorting function should return the original records if no sorting is provided" duration="65"/>
|
|
90
|
+
<testCase name="Utility Functions applySorting function should sort records based on provided sorting criteria" duration="1"/>
|
|
91
|
+
</file>
|
|
100
92
|
<file path="/builds/dti/design-system/sankhyacore/test/util/ColumnFilterManager.spec.ts">
|
|
101
|
-
<testCase name="ColumnFilterManager getColumnFilters should return an empty map if filters are undefined or empty" duration="
|
|
93
|
+
<testCase name="ColumnFilterManager getColumnFilters should return an empty map if filters are undefined or empty" duration="88"/>
|
|
102
94
|
<testCase name="ColumnFilterManager getColumnFilters should return a map of filters matching the pattern and not the provided fieldName" duration="1"/>
|
|
103
|
-
<testCase name="ColumnFilterManager getFilterFunction should return undefined if no filters are provided" duration="
|
|
104
|
-
<testCase name="ColumnFilterManager getFilterFunction should return a function that evaluates records based on filters" duration="
|
|
105
|
-
<testCase name="ColumnFilterManager getFilterFunction should return a function that evaluates records and return false" duration="
|
|
106
|
-
<testCase name="ColumnFilterManager compileDistinct should return an array of distinct field values formatted correctly" duration="
|
|
95
|
+
<testCase name="ColumnFilterManager getFilterFunction should return undefined if no filters are provided" duration="1"/>
|
|
96
|
+
<testCase name="ColumnFilterManager getFilterFunction should return a function that evaluates records based on filters" duration="2"/>
|
|
97
|
+
<testCase name="ColumnFilterManager getFilterFunction should return a function that evaluates records and return false" duration="1"/>
|
|
98
|
+
<testCase name="ColumnFilterManager compileDistinct should return an array of distinct field values formatted correctly" duration="1"/>
|
|
107
99
|
<testCase name="ColumnFilterManager compileDistinct should filter records if a load request is present" duration="1"/>
|
|
108
100
|
</file>
|
|
109
|
-
<file path="/builds/dti/design-system/sankhyacore/test/http/SkwHttpProvider.ts.spec.ts">
|
|
110
|
-
<testCase name="HttpProvider Metodo POST" duration="1"/>
|
|
111
|
-
</file>
|
|
112
101
|
<file path="/builds/dti/design-system/sankhyacore/test/util/CriteriaParameter.spec.ts">
|
|
113
102
|
<testCase name="StringUtils it should return the correct values of "value" and "type" through the getters methods initial setted by the constructor" duration="1"/>
|
|
114
|
-
<testCase name="StringUtils it should return the correct values of "value" and "type" through the getters methods initial setted by the setters methods" duration="
|
|
115
|
-
<testCase name="StringUtils it should return the correct JSON/Object value through the buildParam method" duration="
|
|
103
|
+
<testCase name="StringUtils it should return the correct values of "value" and "type" through the getters methods initial setted by the setters methods" duration="0"/>
|
|
104
|
+
<testCase name="StringUtils it should return the correct JSON/Object value through the buildParam method" duration="0"/>
|
|
116
105
|
</file>
|
|
117
|
-
<file path="/builds/dti/design-system/sankhyacore/
|
|
118
|
-
<testCase name="
|
|
106
|
+
<file path="/builds/dti/design-system/sankhyacore/test/util/OverflowWatcher.spec.ts">
|
|
107
|
+
<testCase name="OverflowWatcher should initialize with provided parameters" duration="96"/>
|
|
108
|
+
<testCase name="OverflowWatcher should disconect ResizeObserver when destroy is called" duration="2"/>
|
|
109
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate" duration="600"/>
|
|
110
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan" duration="106"/>
|
|
111
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan when notOverFlow is empty" duration="103"/>
|
|
112
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan considering overflowed elements" duration="9"/>
|
|
113
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate with empty list" duration="4"/>
|
|
114
|
+
<testCase name="OverflowWatcher should ignore elements that can not overflow" duration="99"/>
|
|
115
|
+
<testCase name="OverflowWatcher Should not call callback on forceUpdate" duration="1"/>
|
|
119
116
|
</file>
|
|
120
117
|
<file path="/builds/dti/design-system/sankhyacore/test/util/TimeFormatter.spec.ts">
|
|
121
118
|
<testCase name="TimeFormatter Case: input string unformated with showSeconds" duration="1"/>
|
|
122
119
|
<testCase name="TimeFormatter Case: input string unformated without showSeconds" duration="0"/>
|
|
123
|
-
<testCase name="TimeFormatter Case: validateTime" duration="
|
|
120
|
+
<testCase name="TimeFormatter Case: validateTime" duration="2"/>
|
|
121
|
+
</file>
|
|
122
|
+
<file path="/builds/dti/design-system/sankhyacore/src/dataunit/state/slice/test/RecordsSlice.spec.ts">
|
|
123
|
+
<testCase name="RecordsSlice should return newlines at the end" duration="3"/>
|
|
124
124
|
</file>
|
|
125
125
|
<file path="/builds/dti/design-system/sankhyacore/test/util/DataUnitStorage.spec.ts">
|
|
126
|
-
<testCase name="DataUnitStorage put should store a DataUnit instance in the DataUnitStorage" duration="
|
|
127
|
-
<testCase name="DataUnitStorage get should return the stored DataUnit instance from the DataUnitStorage" duration="
|
|
128
|
-
<testCase name="DataUnitStorage get should return undefined if the DataUnit instance is not found in the DataUnitStorage" duration="
|
|
129
|
-
<testCase name="DataUnitStorage remove should remove the specified DataUnit instance from the DataUnitStorage" duration="
|
|
126
|
+
<testCase name="DataUnitStorage put should store a DataUnit instance in the DataUnitStorage" duration="93"/>
|
|
127
|
+
<testCase name="DataUnitStorage get should return the stored DataUnit instance from the DataUnitStorage" duration="0"/>
|
|
128
|
+
<testCase name="DataUnitStorage get should return undefined if the DataUnit instance is not found in the DataUnitStorage" duration="1"/>
|
|
129
|
+
<testCase name="DataUnitStorage remove should remove the specified DataUnit instance from the DataUnitStorage" duration="1"/>
|
|
130
130
|
<testCase name="DataUnitStorage remove should remove the DataUnit instance with the specified name from the DataUnitStorage" duration="1"/>
|
|
131
131
|
<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"/>
|
|
132
132
|
</file>
|
|
133
133
|
<file path="/builds/dti/design-system/sankhyacore/test/util/ElementIDUtils.spec.ts">
|
|
134
|
-
<testCase name="addIDInfo 1 - should add data-element-id with valid id "movFinanceira_snkApplication"" duration="
|
|
135
|
-
<testCase name="addIDInfo 2 - should add data-element-id with valid id "brComSankhyaFinCadMovimentacaofinanceira_snkApplication"" duration="
|
|
136
|
-
<testCase name="addIDInfo 3 - should add data-element-id with valid id "movFinanceira_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="
|
|
137
|
-
<testCase name="addIDInfo 4 - should add data-element-id with valid id "meuID2_snkApplication"" duration="
|
|
134
|
+
<testCase name="addIDInfo 1 - should add data-element-id with valid id "movFinanceira_snkApplication"" duration="97"/>
|
|
135
|
+
<testCase name="addIDInfo 2 - should add data-element-id with valid id "brComSankhyaFinCadMovimentacaofinanceira_snkApplication"" duration="2"/>
|
|
136
|
+
<testCase name="addIDInfo 3 - should add data-element-id with valid id "movFinanceira_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="1"/>
|
|
137
|
+
<testCase name="addIDInfo 4 - should add data-element-id with valid id "meuID2_snkApplication"" duration="2"/>
|
|
138
138
|
<testCase name="addIDInfo 5 - should add data-element-id with valid id "movFinanceira_snkApplication"" duration="1"/>
|
|
139
|
-
<testCase name="addIDInfo 6 - should add data-element-id with valid id "movFinanceira_snkApplication"" duration="
|
|
139
|
+
<testCase name="addIDInfo 6 - should add data-element-id with valid id "movFinanceira_snkApplication"" duration="1"/>
|
|
140
140
|
<testCase name="addIDInfo 7 - should add data-element-id with valid id "componenteNameTest_snkApplication"" duration="1"/>
|
|
141
|
-
<testCase name="addIDInfo 8 - should add data-element-id with valid id "componentLabel_snkApplication"" duration="
|
|
142
|
-
<testCase name="addIDInfo 9 - should add data-element-id with valid id "dataunitFinanceiro_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="
|
|
143
|
-
<testCase name="addIDInfo 10 - should add data-element-id with valid id "dataunitFinanceiro_meuIDTeste_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="
|
|
144
|
-
<testCase name="addIDInfo 11 - should add data-element-id with valid id "dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira"" duration="
|
|
145
|
-
<testCase name="addIDInfo 12 - should add data-element-id with valid id "dataunitFinanceiro_movFinanceira_movimentacaoFinanceira"" duration="
|
|
146
|
-
<testCase name="addIDInfo 13 - should add data-element-id with valid id "dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira"" duration="
|
|
147
|
-
<testCase name="addIDInfo 14 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_movimentacaoFinanceira"" duration="
|
|
148
|
-
<testCase name="addIDInfo 15 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_snkApplication"" duration="
|
|
141
|
+
<testCase name="addIDInfo 8 - should add data-element-id with valid id "componentLabel_snkApplication"" duration="1"/>
|
|
142
|
+
<testCase name="addIDInfo 9 - should add data-element-id with valid id "dataunitFinanceiro_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="1"/>
|
|
143
|
+
<testCase name="addIDInfo 10 - should add data-element-id with valid id "dataunitFinanceiro_meuIDTeste_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="66"/>
|
|
144
|
+
<testCase name="addIDInfo 11 - should add data-element-id with valid id "dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira"" duration="11"/>
|
|
145
|
+
<testCase name="addIDInfo 12 - should add data-element-id with valid id "dataunitFinanceiro_movFinanceira_movimentacaoFinanceira"" duration="1"/>
|
|
146
|
+
<testCase name="addIDInfo 13 - should add data-element-id with valid id "dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira"" duration="4"/>
|
|
147
|
+
<testCase name="addIDInfo 14 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_movimentacaoFinanceira"" duration="2"/>
|
|
148
|
+
<testCase name="addIDInfo 15 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_snkApplication"" duration="1"/>
|
|
149
149
|
<testCase name="addIDInfo 16 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_snkApplication"" duration="1"/>
|
|
150
|
-
<testCase name="addIDInfo 17 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="
|
|
151
|
-
<testCase name="addIDInfo 18 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="
|
|
152
|
-
<testCase name="addIDInfo 19 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="
|
|
153
|
-
<testCase name="addIDInfo 20 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="
|
|
150
|
+
<testCase name="addIDInfo 17 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="78"/>
|
|
151
|
+
<testCase name="addIDInfo 18 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="1"/>
|
|
152
|
+
<testCase name="addIDInfo 19 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="1"/>
|
|
153
|
+
<testCase name="addIDInfo 20 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="1"/>
|
|
154
154
|
<testCase name="addIDInfo 21 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="1"/>
|
|
155
|
-
<testCase name="addIDInfo 22 - should add data-element-id with valid id "bancoObrigatorio_movimentacaoFinanceira"" duration="
|
|
155
|
+
<testCase name="addIDInfo 22 - should add data-element-id with valid id "bancoObrigatorio_movimentacaoFinanceira"" duration="1"/>
|
|
156
156
|
</file>
|
|
157
157
|
<file path="/builds/dti/design-system/sankhyacore/src/dataunit/test/DataUnit.spec.ts">
|
|
158
|
-
<testCase name="DataUnit should return false when not waiting to reload" duration="
|
|
158
|
+
<testCase name="DataUnit should return false when not waiting to reload" duration="3"/>
|
|
159
159
|
<testCase name="DataUnit should set waitingToReload to true" duration="1"/>
|
|
160
|
-
<testCase name="DataUnit should set waitingToReload to false" duration="
|
|
161
|
-
<testCase name="DataUnit should dispatch SAVING_CANCELED action with correct fields and recordId" duration="
|
|
162
|
-
</file>
|
|
163
|
-
<file path="/builds/dti/design-system/sankhyacore/test/util/ElementUtils.spec.ts">
|
|
164
|
-
<testCase name="calcMarginSize should calculate correctly the size of horizontal margin" duration="71"/>
|
|
165
|
-
<testCase name="calcMarginSize should calculate correctly the size of vertical margin" duration="2"/>
|
|
166
|
-
<testCase name="calcMarginSize should threat values defined as zero" duration="4"/>
|
|
160
|
+
<testCase name="DataUnit should set waitingToReload to false" duration="76"/>
|
|
161
|
+
<testCase name="DataUnit should dispatch SAVING_CANCELED action with correct fields and recordId" duration="2"/>
|
|
167
162
|
</file>
|
|
168
163
|
<file path="/builds/dti/design-system/sankhyacore/test/dataunit/loader/dataUnitInMemoryLoader.spec.ts">
|
|
169
|
-
<testCase name="DataUnitInMemoryLoader - loadData should be called load data when auto load is true" duration="
|
|
164
|
+
<testCase name="DataUnitInMemoryLoader - loadData should be called load data when auto load is true" duration="10"/>
|
|
170
165
|
<testCase name="DataUnitInMemoryLoader - loadData should be called load data when auto load is undefined" duration="1"/>
|
|
171
166
|
<testCase name="DataUnitInMemoryLoader - loadData should not be called load data when auto load is false" duration="1"/>
|
|
172
167
|
<testCase name="DataUnitInMemoryLoader - loadData should be called load data when config is undefined" duration="1"/>
|
|
173
168
|
<testCase name="DataUnitInMemoryLoader - getConvertedValue should return the original string if descriptor is undefined" duration="1"/>
|
|
174
|
-
<testCase name="DataUnitInMemoryLoader - getConvertedValue should return the original string if dataType is TEXT" duration="
|
|
175
|
-
<testCase name="DataUnitInMemoryLoader - getConvertedValue should convert to boolean when dataType is BOOLEAN" duration="
|
|
176
|
-
<testCase name="DataUnitInMemoryLoader - getConvertedValue should convert to number when dataType is NUMBER" duration="
|
|
169
|
+
<testCase name="DataUnitInMemoryLoader - getConvertedValue should return the original string if dataType is TEXT" duration="1"/>
|
|
170
|
+
<testCase name="DataUnitInMemoryLoader - getConvertedValue should convert to boolean when dataType is BOOLEAN" duration="0"/>
|
|
171
|
+
<testCase name="DataUnitInMemoryLoader - getConvertedValue should convert to number when dataType is NUMBER" duration="1"/>
|
|
177
172
|
<testCase name="DataUnitInMemoryLoader - getConvertedValue should parse JSON when dataType is OBJECT" duration="1"/>
|
|
178
173
|
<testCase name="DataUnitInMemoryLoader - getConvertedValue should convert to date when dataType is DATE and format is ISO" duration="1"/>
|
|
179
|
-
<testCase name="DataUnitInMemoryLoader - getConvertedValue should convert to date when dataType is DATE and format is not ISO" duration="
|
|
174
|
+
<testCase name="DataUnitInMemoryLoader - getConvertedValue should convert to date when dataType is DATE and format is not ISO" duration="0"/>
|
|
180
175
|
<testCase name="DataUnitInMemoryLoader - getConvertedValue should return the original string if no dataType matches" duration="1"/>
|
|
181
176
|
<testCase name="DataUnitInMemoryLoader - removeLoader should resolve with the provided record IDs" duration="1"/>
|
|
182
177
|
<testCase name="DataUnitInMemoryLoader - removeLoader should handle empty record ID array" duration="1"/>
|
|
183
|
-
<testCase name="DataUnitInMemoryLoader - removeLoader should resolve the promise" duration="
|
|
184
|
-
<testCase name="DataUnitInMemoryLoader - buildInitialRecords (indiretamente via set records) should build initial records and convert field values based on metadata" duration="
|
|
185
|
-
<testCase name="DataUnitInMemoryLoader - buildInitialRecords (indiretamente via set records) should generate unique IDs for records without "__record__id__"" duration="
|
|
178
|
+
<testCase name="DataUnitInMemoryLoader - removeLoader should resolve the promise" duration="1"/>
|
|
179
|
+
<testCase name="DataUnitInMemoryLoader - buildInitialRecords (indiretamente via set records) should build initial records and convert field values based on metadata" duration="2"/>
|
|
180
|
+
<testCase name="DataUnitInMemoryLoader - buildInitialRecords (indiretamente via set records) should generate unique IDs for records without "__record__id__"" duration="2"/>
|
|
186
181
|
<testCase name="DataUnitInMemoryLoader - buildInitialRecords (indiretamente via set records) should leave fields untouched if no matching metadata exists" duration="2"/>
|
|
187
|
-
<testCase name="DataUnitInMemoryLoader - buildInitialRecords (indiretamente via set records) should skip conversion for non-string field values" duration="
|
|
182
|
+
<testCase name="DataUnitInMemoryLoader - buildInitialRecords (indiretamente via set records) should skip conversion for non-string field values" duration="1"/>
|
|
183
|
+
</file>
|
|
184
|
+
<file path="/builds/dti/design-system/sankhyacore/test/util/ElementUtils.spec.ts">
|
|
185
|
+
<testCase name="calcMarginSize should calculate correctly the size of horizontal margin" duration="91"/>
|
|
186
|
+
<testCase name="calcMarginSize should calculate correctly the size of vertical margin" duration="4"/>
|
|
187
|
+
<testCase name="calcMarginSize should threat values defined as zero" duration="15"/>
|
|
188
188
|
</file>
|
|
189
189
|
<file path="/builds/dti/design-system/sankhyacore/test/dataunit/formatting/PrettyFormatter.spec.ts">
|
|
190
|
-
<testCase name="getFormattedValue should return empty string when value is null" duration="
|
|
191
|
-
<testCase name="getFormattedValue should return empty string when value is not an array" duration="
|
|
192
|
-
<testCase name="getFormattedValue should return empty string when value is an empty array" duration="
|
|
193
|
-
<testCase name="getFormattedValue should return file name when value is an array with one file object" duration="
|
|
194
|
-
<testCase name="getFormattedValue should return file count when value is an array with multiple file objects" duration="
|
|
195
|
-
<testCase name="getFormattedValue should return empty string for undefined file" duration="
|
|
196
|
-
<testCase name="getFormattedValue should handle OBJECT type with value field" duration="
|
|
190
|
+
<testCase name="getFormattedValue should return empty string when value is null" duration="6"/>
|
|
191
|
+
<testCase name="getFormattedValue should return empty string when value is not an array" duration="1"/>
|
|
192
|
+
<testCase name="getFormattedValue should return empty string when value is an empty array" duration="0"/>
|
|
193
|
+
<testCase name="getFormattedValue should return file name when value is an array with one file object" duration="1"/>
|
|
194
|
+
<testCase name="getFormattedValue should return file count when value is an array with multiple file objects" duration="0"/>
|
|
195
|
+
<testCase name="getFormattedValue should return empty string for undefined file" duration="1"/>
|
|
196
|
+
<testCase name="getFormattedValue should handle OBJECT type with value field" duration="0"/>
|
|
197
197
|
<testCase name="getFormattedValue should return empty string when value is undefined" duration="0"/>
|
|
198
198
|
<testCase name="getFormattedValue should return value as string when value is not an object" duration="1"/>
|
|
199
199
|
<testCase name="getFormattedValue should return value.toString() when value is an object without value property" duration="0"/>
|
|
200
200
|
<testCase name="getFormattedValue should handle BOOLEAN type" duration="1"/>
|
|
201
|
-
<testCase name="getFormattedValue should format numbers correctly" duration="
|
|
202
|
-
<testCase name="getFormattedValue should format dates correctly" duration="
|
|
201
|
+
<testCase name="getFormattedValue should format numbers correctly" duration="11"/>
|
|
202
|
+
<testCase name="getFormattedValue should format dates correctly" duration="6"/>
|
|
203
203
|
<testCase name="getFormattedValue should format times correctly" duration="0"/>
|
|
204
204
|
<testCase name="getFormattedValue should format datetime correctly" duration="1"/>
|
|
205
205
|
<testCase name="getFormattedValue should call toString with correct parameters" duration="1"/>
|
|
206
206
|
<testCase name="getFormattedValue should handle undefined descriptor gracefully" duration="0"/>
|
|
207
|
-
<testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and matching option" duration="
|
|
207
|
+
<testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and matching option" duration="0"/>
|
|
208
208
|
<testCase name="getFormattedValue should return value with OPTIONSELECTOR and no matching option" duration="0"/>
|
|
209
209
|
<testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and value as object" duration="0"/>
|
|
210
|
-
<testCase name="getFormattedValue should return empty string with OPTIONSELECTOR and value as null" duration="
|
|
210
|
+
<testCase name="getFormattedValue should return empty string with OPTIONSELECTOR and value as null" duration="0"/>
|
|
211
211
|
<testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and options as JSON string" duration="0"/>
|
|
212
|
-
<testCase name="getFormattedValue should return value with OPTIONSELECTOR and options as empty array" duration="
|
|
212
|
+
<testCase name="getFormattedValue should return value with OPTIONSELECTOR and options as empty array" duration="0"/>
|
|
213
213
|
<testCase name="getFormattedValue should format masked values correctly" duration="1"/>
|
|
214
214
|
</file>
|
|
215
215
|
</unitTest>
|
|
@@ -107,6 +107,16 @@ export class KeyboardManager {
|
|
|
107
107
|
return this;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Remove todos os eventos de teclado ou de uma lista informada
|
|
113
|
+
*
|
|
114
|
+
*/
|
|
115
|
+
public unbindAllShortcutKeys(listShortcutKeys?: string[]): void {
|
|
116
|
+
const mappedKeys = [...Object.keys(listShortcutKeys || this._mappedElements)];
|
|
117
|
+
mappedKeys?.forEach(keyMap => this.unbind(keyMap));
|
|
118
|
+
}
|
|
119
|
+
|
|
110
120
|
/**
|
|
111
121
|
* Remove um evento de teclado
|
|
112
122
|
*
|