@sankhyalabs/core 5.20.0-dev.75 → 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/dataunit/metadata/DataType.js +4 -1
- package/dist/dataunit/metadata/DataType.js.map +1 -1
- 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 +132 -132
- package/src/dataunit/metadata/DataType.ts +5 -1
- 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
|
|
@@ -139,12 +139,15 @@ export const toString = (dataType, value) => {
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
};
|
|
142
|
+
const isSearchField = (userInterface) => {
|
|
143
|
+
return userInterface === UserInterface.SEARCH || userInterface === UserInterface.SEARCHPLUS;
|
|
144
|
+
};
|
|
142
145
|
export const compareValues = (valueA, valueB, descriptor) => {
|
|
143
146
|
if (useStringForComparison(descriptor)) {
|
|
144
147
|
return getFormattedValue(valueA, descriptor).localeCompare(getFormattedValue(valueB, descriptor));
|
|
145
148
|
}
|
|
146
149
|
const { dataType, userInterface } = descriptor;
|
|
147
|
-
if (userInterface
|
|
150
|
+
if (isSearchField(userInterface) || userInterface === UserInterface.OPTIONSELECTOR) {
|
|
148
151
|
const optionValueA = (valueA === null || valueA === void 0 ? void 0 : valueA.value) || valueA;
|
|
149
152
|
const optionValueB = (valueB === null || valueB === void 0 ? void 0 : valueB.value) || valueB;
|
|
150
153
|
if (isNaN(optionValueA) || isNaN(optionValueB)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataType.js","sourceRoot":"","sources":["../../../src/dataunit/metadata/DataType.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAmB,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD,8EAA8E;AAE9E,MAAM,CAAN,IAAY,QAMX;AAND,WAAY,QAAQ;IAChB,6BAAiB,CAAA;IACjB,yBAAa,CAAA;IACb,yBAAa,CAAA;IACb,+BAAmB,CAAA;IACnB,6BAAiB,CAAA;AACrB,CAAC,EANW,QAAQ,KAAR,QAAQ,QAMnB;AAED;;;;;;;;;;;;;;;;;EAiBE;AACF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,QAAkB,EAAE,KAAU,EAAO,EAAE;IAE/D,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,EAAE;QACvC,OAAO,KAAK,CAAC;KAChB;IAED,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,QAAQ,KAAK,QAAQ,CAAC,MAAM,IAAI,OAAO,IAAI,KAAK,EAAC;QAC9E,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;KACvB;IAED,OAAO,iBAAiB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC,CAAA;AAED;;;;;;;;;;;;;;;;;EAiBE;AACF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,QAAkB,EAAE,KAAU,EAAO,EAAE;IACvE,QAAQ,QAAQ,EAAE;QAChB,KAAK,QAAQ,C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GAAG,CAAC,UAA2B,EAAW,EAAE;IACpE,IAAG,UAAU,CAAC,QAAQ,KAAK,QAAQ,CAAC,OAAO,EAAC;QACxC,OAAO,IAAI,CAAC;KACf;IACD,IAAG,UAAU,CAAC,QAAQ,KAAK,QAAQ,CAAC,IAAI,EAAC;QACrC,OAAO,IAAI,CAAC;KACf;IACD,OAAO,KAAK,CAAC;AACjB,CAAC,CAAC"}
|
|
@@ -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,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" 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="
|
|
19
|
+
<testCase name="Mask Formatter mask:CPF complete valid" duration="184"/>
|
|
20
|
+
<testCase name="Mask Formatter mask:CPF complete valid literals" duration="2"/>
|
|
22
21
|
<testCase name="Mask Formatter mask:CPF incomplete valid" duration="1"/>
|
|
23
|
-
<testCase name="Mask Formatter mask:CPF incomplete valid placeholder" duration="
|
|
22
|
+
<testCase name="Mask Formatter mask:CPF incomplete valid placeholder" duration="1"/>
|
|
24
23
|
<testCase name="Mask Formatter mask:CPF too long valid" duration="1"/>
|
|
25
|
-
<testCase name="Mask Formatter mask:CPF invalid for string" duration="
|
|
24
|
+
<testCase name="Mask Formatter mask:CPF invalid for string" duration="211"/>
|
|
26
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="
|
|
27
|
+
<testCase name="Mask Formatter mask:Licence plate valid lowercase" duration="2"/>
|
|
29
28
|
<testCase name="Mask Formatter mask:Licence plate invalid" duration="3"/>
|
|
30
29
|
<testCase name="Mask Formatter mask:Licence plate invalid for being too short" duration="1"/>
|
|
31
|
-
<testCase name="Mask Formatter mask:Licence plate invalid for being too short with placeholder" duration="
|
|
32
|
-
<testCase name="Mask Formatter mask:Licence plate invalid" duration="
|
|
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"/>
|
|
33
32
|
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
|
|
34
33
|
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="1"/>
|
|
35
34
|
<testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
|
|
@@ -40,176 +39,177 @@
|
|
|
40
39
|
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="0"/>
|
|
41
40
|
<testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
|
|
42
41
|
</file>
|
|
43
|
-
<file path="/builds/dti/design-system/sankhyacore/test/util/
|
|
44
|
-
<testCase name="
|
|
45
|
-
<testCase name="
|
|
46
|
-
<testCase name="
|
|
47
|
-
<testCase name="
|
|
48
|
-
<testCase name="
|
|
49
|
-
<testCase name="
|
|
50
|
-
<testCase name="
|
|
51
|
-
<testCase name="
|
|
52
|
-
<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"/>
|
|
53
57
|
</file>
|
|
54
|
-
<file path="/builds/dti/design-system/sankhyacore/test/
|
|
55
|
-
<testCase name="
|
|
56
|
-
<testCase name="Utility Functions applyFilter should filter records based on provided filters" duration="1"/>
|
|
57
|
-
<testCase name="Utility Functions buildPaginationInfo function should return correct pagination info with default values" duration="4"/>
|
|
58
|
-
<testCase name="Utility Functions buildPaginationInfo function should redosLenth as same size as recordsPerPage" duration="1"/>
|
|
59
|
-
<testCase name="Utility Functions buildPaginationInfo function should handle case when totalRecordsLength and offset 0" duration="0"/>
|
|
60
|
-
<testCase name="Utility Functions buildPaginationInfo function should handle case when currentPageLength is less than totalRecordsLength and lastPage" duration="1"/>
|
|
61
|
-
<testCase name="Utility Functions applySorting function should return the original records if no sorting is provided" duration="2"/>
|
|
62
|
-
<testCase name="Utility Functions applySorting function should sort records based on provided sorting criteria" duration="1"/>
|
|
58
|
+
<file path="/builds/dti/design-system/sankhyacore/test/http/HttpProvider.spec.ts">
|
|
59
|
+
<testCase name="HttpProvider Metodo GET" duration="1"/>
|
|
63
60
|
</file>
|
|
64
|
-
<file path="/builds/dti/design-system/sankhyacore/test/
|
|
65
|
-
<testCase name="
|
|
66
|
-
<testCase name="StringUtils format" duration="188"/>
|
|
67
|
-
<testCase name="StringUtils format without formatnumber parameter" duration="1"/>
|
|
68
|
-
<testCase name="StringUtils format without formatnumber parameter" duration="1"/>
|
|
69
|
-
<testCase name="StringUtils format round number" duration="2"/>
|
|
61
|
+
<file path="/builds/dti/design-system/sankhyacore/test/http/SkwHttpProvider.ts.spec.ts">
|
|
62
|
+
<testCase name="HttpProvider Metodo POST" duration="1"/>
|
|
70
63
|
</file>
|
|
71
64
|
<file path="/builds/dti/design-system/sankhyacore/test/util/StringUtils.spec.ts">
|
|
72
65
|
<testCase name="StringUtils valor vazio" duration="1"/>
|
|
73
|
-
<testCase name="StringUtils valor em branco" duration="
|
|
74
|
-
<testCase name="StringUtils valor null" duration="
|
|
66
|
+
<testCase name="StringUtils valor em branco" duration="1"/>
|
|
67
|
+
<testCase name="StringUtils valor null" duration="0"/>
|
|
75
68
|
<testCase name="StringUtils valor undefined" duration="0"/>
|
|
76
|
-
<testCase name="StringUtils valor 0" duration="
|
|
69
|
+
<testCase name="StringUtils valor 0" duration="0"/>
|
|
77
70
|
<testCase name="StringUtils com valor" duration="0"/>
|
|
78
|
-
<testCase name="StringUtils substitui vogais com acento por vogais sem acento" duration="
|
|
71
|
+
<testCase name="StringUtils substitui vogais com acento por vogais sem acento" duration="90"/>
|
|
79
72
|
<testCase name="StringUtils should return the original value when called with an object without a toString method" duration="2"/>
|
|
80
73
|
<testCase name="StringUtils should return the original value when called with undefined" duration="1"/>
|
|
81
74
|
</file>
|
|
82
|
-
<file path="/builds/dti/design-system/sankhyacore/
|
|
83
|
-
<testCase name="
|
|
84
|
-
<testCase name="
|
|
85
|
-
<testCase name="
|
|
86
|
-
<testCase name="
|
|
87
|
-
<testCase name="
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
<testCase name="
|
|
91
|
-
<testCase name="
|
|
92
|
-
<testCase name="
|
|
93
|
-
<testCase name="
|
|
94
|
-
<testCase name="
|
|
95
|
-
<testCase name="
|
|
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"/>
|
|
96
91
|
</file>
|
|
97
92
|
<file path="/builds/dti/design-system/sankhyacore/test/util/ColumnFilterManager.spec.ts">
|
|
98
|
-
<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"/>
|
|
99
94
|
<testCase name="ColumnFilterManager getColumnFilters should return a map of filters matching the pattern and not the provided fieldName" duration="1"/>
|
|
100
95
|
<testCase name="ColumnFilterManager getFilterFunction should return undefined if no filters are provided" duration="1"/>
|
|
101
96
|
<testCase name="ColumnFilterManager getFilterFunction should return a function that evaluates records based on filters" duration="2"/>
|
|
102
|
-
<testCase name="ColumnFilterManager getFilterFunction should return a function that evaluates records and return false" duration="
|
|
97
|
+
<testCase name="ColumnFilterManager getFilterFunction should return a function that evaluates records and return false" duration="1"/>
|
|
103
98
|
<testCase name="ColumnFilterManager compileDistinct should return an array of distinct field values formatted correctly" duration="1"/>
|
|
104
99
|
<testCase name="ColumnFilterManager compileDistinct should filter records if a load request is present" duration="1"/>
|
|
105
100
|
</file>
|
|
106
|
-
<file path="/builds/dti/design-system/sankhyacore/test/http/HttpProvider.spec.ts">
|
|
107
|
-
<testCase name="HttpProvider Metodo GET" duration="0"/>
|
|
108
|
-
</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
|
-
<testCase name="TimeFormatter Case: input string unformated with showSeconds" duration="
|
|
122
|
-
<testCase name="TimeFormatter Case: input string unformated without showSeconds" duration="
|
|
123
|
-
<testCase name="TimeFormatter Case: validateTime" duration="
|
|
118
|
+
<testCase name="TimeFormatter Case: input string unformated with showSeconds" duration="1"/>
|
|
119
|
+
<testCase name="TimeFormatter Case: input string unformated without showSeconds" duration="0"/>
|
|
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="
|
|
126
|
+
<testCase name="DataUnitStorage put should store a DataUnit instance in the DataUnitStorage" duration="93"/>
|
|
127
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="
|
|
128
|
+
<testCase name="DataUnitStorage get should return undefined if the DataUnit instance is not found in the DataUnitStorage" duration="1"/>
|
|
129
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="
|
|
134
|
+
<testCase name="addIDInfo 1 - should add data-element-id with valid id "movFinanceira_snkApplication"" duration="97"/>
|
|
135
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="
|
|
136
|
+
<testCase name="addIDInfo 3 - should add data-element-id with valid id "movFinanceira_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="1"/>
|
|
137
137
|
<testCase name="addIDInfo 4 - should add data-element-id with valid id "meuID2_snkApplication"" duration="2"/>
|
|
138
|
-
<testCase name="addIDInfo 5 - 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="
|
|
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="1"/>
|
|
140
140
|
<testCase name="addIDInfo 7 - should add data-element-id with valid id "componenteNameTest_snkApplication"" duration="1"/>
|
|
141
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="
|
|
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="
|
|
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
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="
|
|
147
|
-
<testCase name="addIDInfo 14 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_movimentacaoFinanceira"" duration="
|
|
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
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="
|
|
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
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="
|
|
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
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
158
|
<testCase name="DataUnit should return false when not waiting to reload" duration="3"/>
|
|
159
|
-
<testCase name="DataUnit should set waitingToReload to true" duration="
|
|
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="
|
|
159
|
+
<testCase name="DataUnit should set waitingToReload to true" duration="1"/>
|
|
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"/>
|
|
162
|
+
</file>
|
|
163
|
+
<file path="/builds/dti/design-system/sankhyacore/test/dataunit/loader/dataUnitInMemoryLoader.spec.ts">
|
|
164
|
+
<testCase name="DataUnitInMemoryLoader - loadData should be called load data when auto load is true" duration="10"/>
|
|
165
|
+
<testCase name="DataUnitInMemoryLoader - loadData should be called load data when auto load is undefined" duration="1"/>
|
|
166
|
+
<testCase name="DataUnitInMemoryLoader - loadData should not be called load data when auto load is false" duration="1"/>
|
|
167
|
+
<testCase name="DataUnitInMemoryLoader - loadData should be called load data when config is undefined" duration="1"/>
|
|
168
|
+
<testCase name="DataUnitInMemoryLoader - getConvertedValue should return the original string if descriptor is undefined" duration="1"/>
|
|
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"/>
|
|
172
|
+
<testCase name="DataUnitInMemoryLoader - getConvertedValue should parse JSON when dataType is OBJECT" duration="1"/>
|
|
173
|
+
<testCase name="DataUnitInMemoryLoader - getConvertedValue should convert to date when dataType is DATE and format is ISO" duration="1"/>
|
|
174
|
+
<testCase name="DataUnitInMemoryLoader - getConvertedValue should convert to date when dataType is DATE and format is not ISO" duration="0"/>
|
|
175
|
+
<testCase name="DataUnitInMemoryLoader - getConvertedValue should return the original string if no dataType matches" duration="1"/>
|
|
176
|
+
<testCase name="DataUnitInMemoryLoader - removeLoader should resolve with the provided record IDs" duration="1"/>
|
|
177
|
+
<testCase name="DataUnitInMemoryLoader - removeLoader should handle empty record ID array" duration="1"/>
|
|
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"/>
|
|
181
|
+
<testCase name="DataUnitInMemoryLoader - buildInitialRecords (indiretamente via set records) should leave fields untouched if no matching metadata exists" duration="2"/>
|
|
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"/>
|
|
162
188
|
</file>
|
|
163
189
|
<file path="/builds/dti/design-system/sankhyacore/test/dataunit/formatting/PrettyFormatter.spec.ts">
|
|
164
|
-
<testCase name="getFormattedValue should return empty string when value is null" duration="
|
|
190
|
+
<testCase name="getFormattedValue should return empty string when value is null" duration="6"/>
|
|
165
191
|
<testCase name="getFormattedValue should return empty string when value is not an array" duration="1"/>
|
|
166
192
|
<testCase name="getFormattedValue should return empty string when value is an empty array" duration="0"/>
|
|
167
|
-
<testCase name="getFormattedValue should return file name when value is an array with one file object" duration="
|
|
193
|
+
<testCase name="getFormattedValue should return file name when value is an array with one file object" duration="1"/>
|
|
168
194
|
<testCase name="getFormattedValue should return file count when value is an array with multiple file objects" duration="0"/>
|
|
169
|
-
<testCase name="getFormattedValue should return empty string for undefined file" duration="
|
|
195
|
+
<testCase name="getFormattedValue should return empty string for undefined file" duration="1"/>
|
|
170
196
|
<testCase name="getFormattedValue should handle OBJECT type with value field" duration="0"/>
|
|
171
197
|
<testCase name="getFormattedValue should return empty string when value is undefined" duration="0"/>
|
|
172
198
|
<testCase name="getFormattedValue should return value as string when value is not an object" duration="1"/>
|
|
173
199
|
<testCase name="getFormattedValue should return value.toString() when value is an object without value property" duration="0"/>
|
|
174
|
-
<testCase name="getFormattedValue should handle BOOLEAN type" duration="
|
|
175
|
-
<testCase name="getFormattedValue should format numbers correctly" duration="
|
|
176
|
-
<testCase name="getFormattedValue should format dates correctly" duration="
|
|
200
|
+
<testCase name="getFormattedValue should handle BOOLEAN type" duration="1"/>
|
|
201
|
+
<testCase name="getFormattedValue should format numbers correctly" duration="11"/>
|
|
202
|
+
<testCase name="getFormattedValue should format dates correctly" duration="6"/>
|
|
177
203
|
<testCase name="getFormattedValue should format times correctly" duration="0"/>
|
|
178
|
-
<testCase name="getFormattedValue should format datetime correctly" duration="
|
|
204
|
+
<testCase name="getFormattedValue should format datetime correctly" duration="1"/>
|
|
179
205
|
<testCase name="getFormattedValue should call toString with correct parameters" duration="1"/>
|
|
180
206
|
<testCase name="getFormattedValue should handle undefined descriptor gracefully" duration="0"/>
|
|
181
|
-
<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"/>
|
|
182
208
|
<testCase name="getFormattedValue should return value with OPTIONSELECTOR and no matching option" duration="0"/>
|
|
183
|
-
<testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and value as object" duration="
|
|
209
|
+
<testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and value as object" duration="0"/>
|
|
184
210
|
<testCase name="getFormattedValue should return empty string with OPTIONSELECTOR and value as null" duration="0"/>
|
|
185
211
|
<testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and options as JSON string" duration="0"/>
|
|
186
212
|
<testCase name="getFormattedValue should return value with OPTIONSELECTOR and options as empty array" duration="0"/>
|
|
187
213
|
<testCase name="getFormattedValue should format masked values correctly" duration="1"/>
|
|
188
214
|
</file>
|
|
189
|
-
<file path="/builds/dti/design-system/sankhyacore/test/util/ElementUtils.spec.ts">
|
|
190
|
-
<testCase name="calcMarginSize should calculate correctly the size of horizontal margin" duration="78"/>
|
|
191
|
-
<testCase name="calcMarginSize should calculate correctly the size of vertical margin" duration="2"/>
|
|
192
|
-
<testCase name="calcMarginSize should threat values defined as zero" duration="4"/>
|
|
193
|
-
</file>
|
|
194
|
-
<file path="/builds/dti/design-system/sankhyacore/test/dataunit/loader/dataUnitInMemoryLoader.spec.ts">
|
|
195
|
-
<testCase name="DataUnitInMemoryLoader - loadData should be called load data when auto load is true" duration="63"/>
|
|
196
|
-
<testCase name="DataUnitInMemoryLoader - loadData should be called load data when auto load is undefined" duration="2"/>
|
|
197
|
-
<testCase name="DataUnitInMemoryLoader - loadData should not be called load data when auto load is false" duration="1"/>
|
|
198
|
-
<testCase name="DataUnitInMemoryLoader - loadData should be called load data when config is undefined" duration="1"/>
|
|
199
|
-
<testCase name="DataUnitInMemoryLoader - getConvertedValue should return the original string if descriptor is undefined" duration="1"/>
|
|
200
|
-
<testCase name="DataUnitInMemoryLoader - getConvertedValue should return the original string if dataType is TEXT" duration="1"/>
|
|
201
|
-
<testCase name="DataUnitInMemoryLoader - getConvertedValue should convert to boolean when dataType is BOOLEAN" duration="1"/>
|
|
202
|
-
<testCase name="DataUnitInMemoryLoader - getConvertedValue should convert to number when dataType is NUMBER" duration="0"/>
|
|
203
|
-
<testCase name="DataUnitInMemoryLoader - getConvertedValue should parse JSON when dataType is OBJECT" duration="1"/>
|
|
204
|
-
<testCase name="DataUnitInMemoryLoader - getConvertedValue should convert to date when dataType is DATE and format is ISO" duration="0"/>
|
|
205
|
-
<testCase name="DataUnitInMemoryLoader - getConvertedValue should convert to date when dataType is DATE and format is not ISO" duration="0"/>
|
|
206
|
-
<testCase name="DataUnitInMemoryLoader - getConvertedValue should return the original string if no dataType matches" duration="1"/>
|
|
207
|
-
<testCase name="DataUnitInMemoryLoader - removeLoader should resolve with the provided record IDs" duration="1"/>
|
|
208
|
-
<testCase name="DataUnitInMemoryLoader - removeLoader should handle empty record ID array" duration="1"/>
|
|
209
|
-
<testCase name="DataUnitInMemoryLoader - removeLoader should resolve the promise" duration="1"/>
|
|
210
|
-
<testCase name="DataUnitInMemoryLoader - buildInitialRecords (indiretamente via set records) should build initial records and convert field values based on metadata" duration="3"/>
|
|
211
|
-
<testCase name="DataUnitInMemoryLoader - buildInitialRecords (indiretamente via set records) should generate unique IDs for records without "__record__id__"" duration="2"/>
|
|
212
|
-
<testCase name="DataUnitInMemoryLoader - buildInitialRecords (indiretamente via set records) should leave fields untouched if no matching metadata exists" duration="2"/>
|
|
213
|
-
<testCase name="DataUnitInMemoryLoader - buildInitialRecords (indiretamente via set records) should skip conversion for non-string field values" duration="2"/>
|
|
214
|
-
</file>
|
|
215
215
|
</unitTest>
|
|
@@ -144,6 +144,10 @@ export const toString = ( dataType: DataType|undefined, value: any): string => {
|
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
+
const isSearchField = (userInterface:UserInterface | undefined): boolean => {
|
|
148
|
+
return userInterface === UserInterface.SEARCH || userInterface === UserInterface.SEARCHPLUS;
|
|
149
|
+
}
|
|
150
|
+
|
|
147
151
|
export const compareValues = (valueA: any, valueB: any, descriptor: FieldDescriptor): number => {
|
|
148
152
|
|
|
149
153
|
if(useStringForComparison(descriptor)){
|
|
@@ -151,7 +155,7 @@ export const compareValues = (valueA: any, valueB: any, descriptor: FieldDescrip
|
|
|
151
155
|
}
|
|
152
156
|
|
|
153
157
|
const {dataType, userInterface} = descriptor;
|
|
154
|
-
if(userInterface
|
|
158
|
+
if(isSearchField(userInterface) || userInterface === UserInterface.OPTIONSELECTOR){
|
|
155
159
|
const optionValueA = valueA?.value || valueA;
|
|
156
160
|
const optionValueB = valueB?.value || valueB;
|
|
157
161
|
if(isNaN(optionValueA) || isNaN(optionValueB)){
|
|
@@ -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
|
*
|