@sankhyalabs/core 5.20.0-dev.68 → 5.20.0-dev.69
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/Change.md +11 -11
- package/.docs/classes/DataUnit.md +154 -120
- package/.docs/classes/SelectionInfo.md +12 -12
- package/.docs/enumerations/ChangeOperation.md +4 -4
- package/.docs/enumerations/SelectionMode.md +2 -2
- package/.docs/interfaces/DUActionInterceptor.md +1 -1
- package/.docs/interfaces/PageRequest.md +3 -3
- package/.docs/interfaces/PaginationInfo.md +12 -0
- package/.docs/interfaces/QuickFilter.md +3 -3
- package/.docs/interfaces/Record.md +4 -4
- package/.docs/interfaces/SavedRecord.md +5 -5
- package/.docs/interfaces/WaitingChange.md +3 -3
- package/.docs/type-aliases/DataUnitEventOptions.md +1 -1
- package/dist/dataunit/DataUnit.d.ts +9 -0
- package/dist/dataunit/DataUnit.js +13 -0
- package/dist/dataunit/DataUnit.js.map +1 -1
- package/dist/dataunit/loading/PaginationInfo.d.ts +4 -0
- package/package.json +1 -1
- package/reports/test-report.xml +107 -107
- package/src/dataunit/DataUnit.ts +17 -0
- package/src/dataunit/loading/PaginationInfo.ts +5 -0
package/reports/test-report.xml
CHANGED
|
@@ -1,175 +1,175 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<unitTest version="1">
|
|
3
|
+
<file path="/builds/dti/design-system/sankhyacore/test/http/HttpProvider.spec.ts">
|
|
4
|
+
<testCase name="HttpProvider Metodo GET" duration="4"/>
|
|
5
|
+
</file>
|
|
6
|
+
<file path="/builds/dti/design-system/sankhyacore/test/http/SkwHttpProvider.ts.spec.ts">
|
|
7
|
+
<testCase name="HttpProvider Metodo POST" duration="190"/>
|
|
8
|
+
</file>
|
|
9
|
+
<file path="/builds/dti/design-system/sankhyacore/test/util/CriteriaModel.spec.ts">
|
|
10
|
+
<testCase name="StringUtils it should return the undefined and [] to Criteria Props through new class with empty constructor" duration="6"/>
|
|
11
|
+
<testCase name="StringUtils it should modify "expressions" and "parameters" properties through Setters methods" duration="1"/>
|
|
12
|
+
<testCase name="StringUtils it should return "expression" and "parameters" setted through constructor method" duration="0"/>
|
|
13
|
+
<testCase name="StringUtils it should return a Criteria class with "expression" and "parameters" as needed setted through "append" method" duration="2"/>
|
|
14
|
+
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "append" method" duration="97"/>
|
|
15
|
+
<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"/>
|
|
16
|
+
<testCase name="StringUtils it should return a Criteria class with "Expression" and "parameters" concatenaded as needed setted through "OR" method" duration="1"/>
|
|
17
|
+
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "OR" method" duration="1"/>
|
|
18
|
+
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "OR" method" duration="1"/>
|
|
19
|
+
<testCase name="StringUtils it should return a Criteria class with "Expression" and "parameters" concatenaded as needed setted through "AND" method" duration="1"/>
|
|
20
|
+
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "AND" method" duration="1"/>
|
|
21
|
+
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "AND" method" duration="1"/>
|
|
22
|
+
<testCase name="StringUtils it should return a toJSON object with "Criteria class" and "parameters" concatenaded as needed setted through "AND" method" duration="100"/>
|
|
23
|
+
<testCase name="StringUtils it should return a toJSON object with through empty constructor" duration="0"/>
|
|
24
|
+
</file>
|
|
25
|
+
<file path="/builds/dti/design-system/sankhyacore/test/util/CriteriaParameter.spec.ts">
|
|
26
|
+
<testCase name="StringUtils it should return the correct values of "value" and "type" through the getters methods initial setted by the constructor" duration="2"/>
|
|
27
|
+
<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"/>
|
|
28
|
+
<testCase name="StringUtils it should return the correct JSON/Object value through the buildParam method" duration="0"/>
|
|
29
|
+
</file>
|
|
3
30
|
<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="
|
|
31
|
+
<testCase name="ObjectUtils hasEquivalentValues should return true if both objects have the same property value" duration="91"/>
|
|
5
32
|
<testCase name="ObjectUtils hasEquivalentValues should return false if both objects have different property values" duration="1"/>
|
|
6
33
|
<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="
|
|
8
|
-
<testCase name="ObjectUtils hasEquivalentValues should return false if one object does not have the property" duration="
|
|
34
|
+
<testCase name="ObjectUtils hasEquivalentValues should return false if both objects are not equivalent with custom property to compare" duration="1"/>
|
|
35
|
+
<testCase name="ObjectUtils hasEquivalentValues should return false if one object does not have the property" duration="1"/>
|
|
9
36
|
<testCase name="ObjectUtils hasEquivalentValues should return true if comparing primitive values directly" duration="1"/>
|
|
10
|
-
<testCase name="ObjectUtils hasEquivalentValues should return false if comparing different primitive values" duration="
|
|
37
|
+
<testCase name="ObjectUtils hasEquivalentValues should return false if comparing different primitive values" duration="1"/>
|
|
11
38
|
<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="
|
|
39
|
+
<testCase name="ObjectUtils hasEquivalentValues should return false when comparing object with null and non-null value" duration="0"/>
|
|
13
40
|
<testCase name="ObjectUtils hasEquivalentValues should return true when comparing non-object values that are equal" duration="1"/>
|
|
14
41
|
<testCase name="ObjectUtils should get an object value based on its path" duration="1"/>
|
|
15
42
|
<testCase name="ObjectUtils should get an object value based on its path" duration="1"/>
|
|
16
43
|
<testCase name="ObjectUtils should return undefined if the path doesn't exist in the object" duration="1"/>
|
|
17
44
|
</file>
|
|
18
|
-
<file path="/builds/dti/design-system/sankhyacore/test/util/CriteriaModel.spec.ts">
|
|
19
|
-
<testCase name="StringUtils it should return the undefined and [] to Criteria Props through new class with empty constructor" duration="79"/>
|
|
20
|
-
<testCase name="StringUtils it should modify "expressions" and "parameters" properties through Setters methods" duration="2"/>
|
|
21
|
-
<testCase name="StringUtils it should return "expression" and "parameters" setted through constructor method" duration="1"/>
|
|
22
|
-
<testCase name="StringUtils it should return a Criteria class with "expression" and "parameters" as needed setted through "append" method" duration="1"/>
|
|
23
|
-
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "append" method" duration="2"/>
|
|
24
|
-
<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"/>
|
|
25
|
-
<testCase name="StringUtils it should return a Criteria class with "Expression" and "parameters" concatenaded as needed setted through "OR" method" duration="2"/>
|
|
26
|
-
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "OR" method" duration="1"/>
|
|
27
|
-
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "OR" method" duration="19"/>
|
|
28
|
-
<testCase name="StringUtils it should return a Criteria class with "Expression" and "parameters" concatenaded as needed setted through "AND" method" duration="68"/>
|
|
29
|
-
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "AND" method" duration="1"/>
|
|
30
|
-
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "AND" method" duration="1"/>
|
|
31
|
-
<testCase name="StringUtils it should return a toJSON object with "Criteria class" and "parameters" concatenaded as needed setted through "AND" method" duration="1"/>
|
|
32
|
-
<testCase name="StringUtils it should return a toJSON object with through empty constructor" duration="0"/>
|
|
33
|
-
</file>
|
|
34
45
|
<file path="/builds/dti/design-system/sankhyacore/test/util/MaskFormatter.spec.ts">
|
|
35
|
-
<testCase name="Mask Formatter mask:CPF complete valid" duration="
|
|
36
|
-
<testCase name="Mask Formatter mask:CPF complete valid literals" duration="
|
|
37
|
-
<testCase name="Mask Formatter mask:CPF incomplete valid" duration="
|
|
38
|
-
<testCase name="Mask Formatter mask:CPF incomplete valid placeholder" duration="
|
|
39
|
-
<testCase name="Mask Formatter mask:CPF too long valid" duration="
|
|
40
|
-
<testCase name="Mask Formatter mask:CPF invalid for string" duration="
|
|
46
|
+
<testCase name="Mask Formatter mask:CPF complete valid" duration="7"/>
|
|
47
|
+
<testCase name="Mask Formatter mask:CPF complete valid literals" duration="85"/>
|
|
48
|
+
<testCase name="Mask Formatter mask:CPF incomplete valid" duration="0"/>
|
|
49
|
+
<testCase name="Mask Formatter mask:CPF incomplete valid placeholder" duration="4"/>
|
|
50
|
+
<testCase name="Mask Formatter mask:CPF too long valid" duration="4"/>
|
|
51
|
+
<testCase name="Mask Formatter mask:CPF invalid for string" duration="298"/>
|
|
41
52
|
<testCase name="Mask Formatter mask:CPF invalid for being too long" duration="0"/>
|
|
42
53
|
<testCase name="Mask Formatter mask:Licence plate valid uppercase" duration="0"/>
|
|
43
|
-
<testCase name="Mask Formatter mask:Licence plate valid lowercase" duration="
|
|
54
|
+
<testCase name="Mask Formatter mask:Licence plate valid lowercase" duration="1"/>
|
|
44
55
|
<testCase name="Mask Formatter mask:Licence plate invalid" duration="2"/>
|
|
45
56
|
<testCase name="Mask Formatter mask:Licence plate invalid for being too short" duration="1"/>
|
|
46
57
|
<testCase name="Mask Formatter mask:Licence plate invalid for being too short with placeholder" duration="1"/>
|
|
47
58
|
<testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
|
|
48
|
-
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="
|
|
59
|
+
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="91"/>
|
|
49
60
|
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="1"/>
|
|
50
|
-
<testCase name="Mask Formatter mask:Licence plate invalid" duration="
|
|
61
|
+
<testCase name="Mask Formatter mask:Licence plate invalid" duration="2"/>
|
|
51
62
|
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
|
|
52
|
-
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="
|
|
63
|
+
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="1"/>
|
|
53
64
|
<testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
|
|
54
|
-
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="
|
|
65
|
+
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
|
|
55
66
|
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="1"/>
|
|
56
67
|
<testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
|
|
57
68
|
</file>
|
|
58
|
-
<file path="/builds/dti/design-system/sankhyacore/test/
|
|
59
|
-
<testCase name="
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
<testCase name="HttpProvider Metodo POST" duration="0"/>
|
|
63
|
-
</file>
|
|
64
|
-
<file path="/builds/dti/design-system/sankhyacore/test/util/NumberUtils.spec.ts">
|
|
65
|
-
<testCase name="StringUtils stringToNumber" duration="89"/>
|
|
66
|
-
<testCase name="StringUtils format" duration="125"/>
|
|
67
|
-
<testCase name="StringUtils format without formatnumber parameter" duration="1"/>
|
|
68
|
-
<testCase name="StringUtils format without formatnumber parameter" duration="2"/>
|
|
69
|
-
<testCase name="StringUtils format round number" duration="67"/>
|
|
69
|
+
<file path="/builds/dti/design-system/sankhyacore/test/util/TimeFormatter.spec.ts">
|
|
70
|
+
<testCase name="TimeFormatter Case: input string unformated with showSeconds" duration="3"/>
|
|
71
|
+
<testCase name="TimeFormatter Case: input string unformated without showSeconds" duration="1"/>
|
|
72
|
+
<testCase name="TimeFormatter Case: validateTime" duration="1"/>
|
|
70
73
|
</file>
|
|
71
74
|
<file path="/builds/dti/design-system/sankhyacore/test/util/StringUtils.spec.ts">
|
|
72
|
-
<testCase name="StringUtils valor vazio" duration="
|
|
73
|
-
<testCase name="StringUtils valor em branco" duration="
|
|
75
|
+
<testCase name="StringUtils valor vazio" duration="6"/>
|
|
76
|
+
<testCase name="StringUtils valor em branco" duration="1"/>
|
|
74
77
|
<testCase name="StringUtils valor null" duration="0"/>
|
|
75
|
-
<testCase name="StringUtils valor undefined" duration="
|
|
76
|
-
<testCase name="StringUtils valor 0" duration="
|
|
77
|
-
<testCase name="StringUtils com valor" duration="
|
|
78
|
+
<testCase name="StringUtils valor undefined" duration="1"/>
|
|
79
|
+
<testCase name="StringUtils valor 0" duration="0"/>
|
|
80
|
+
<testCase name="StringUtils com valor" duration="0"/>
|
|
78
81
|
<testCase name="StringUtils substitui vogais com acento por vogais sem acento" duration="1"/>
|
|
79
|
-
<testCase name="StringUtils should return the original value when called with an object without a toString method" duration="
|
|
82
|
+
<testCase name="StringUtils should return the original value when called with an object without a toString method" duration="2"/>
|
|
80
83
|
<testCase name="StringUtils should return the original value when called with undefined" duration="1"/>
|
|
81
84
|
</file>
|
|
82
|
-
<file path="/builds/dti/design-system/sankhyacore/test/util/
|
|
83
|
-
<testCase name="StringUtils
|
|
84
|
-
<testCase name="StringUtils
|
|
85
|
-
<testCase name="StringUtils
|
|
85
|
+
<file path="/builds/dti/design-system/sankhyacore/test/util/NumberUtils.spec.ts">
|
|
86
|
+
<testCase name="StringUtils stringToNumber" duration="103"/>
|
|
87
|
+
<testCase name="StringUtils format" duration="103"/>
|
|
88
|
+
<testCase name="StringUtils format without formatnumber parameter" duration="1"/>
|
|
89
|
+
<testCase name="StringUtils format without formatnumber parameter" duration="2"/>
|
|
90
|
+
<testCase name="StringUtils format round number" duration="1"/>
|
|
91
|
+
</file>
|
|
92
|
+
<file path="/builds/dti/design-system/sankhyacore/src/dataunit/state/slice/test/RecordsSlice.spec.ts">
|
|
93
|
+
<testCase name="RecordsSlice should return newlines at the end" duration="2"/>
|
|
86
94
|
</file>
|
|
87
95
|
<file path="/builds/dti/design-system/sankhyacore/test/util/OverflowWatcher.spec.ts">
|
|
88
|
-
<testCase name="OverflowWatcher should initialize with provided parameters" duration="
|
|
89
|
-
<testCase name="OverflowWatcher should disconect ResizeObserver when destroy is called" duration="
|
|
90
|
-
<testCase name="OverflowWatcher Should call callback on forceUpdate" duration="
|
|
91
|
-
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan" duration="
|
|
92
|
-
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan when notOverFlow is empty" duration="
|
|
93
|
-
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan considering overflowed elements" duration="
|
|
94
|
-
<testCase name="OverflowWatcher Should call callback on forceUpdate with empty list" duration="
|
|
95
|
-
<testCase name="OverflowWatcher should ignore elements that can not overflow" duration="
|
|
96
|
+
<testCase name="OverflowWatcher should initialize with provided parameters" duration="8"/>
|
|
97
|
+
<testCase name="OverflowWatcher should disconect ResizeObserver when destroy is called" duration="3"/>
|
|
98
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate" duration="208"/>
|
|
99
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan" duration="102"/>
|
|
100
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan when notOverFlow is empty" duration="6"/>
|
|
101
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan considering overflowed elements" duration="87"/>
|
|
102
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate with empty list" duration="3"/>
|
|
103
|
+
<testCase name="OverflowWatcher should ignore elements that can not overflow" duration="196"/>
|
|
96
104
|
<testCase name="OverflowWatcher Should not call callback on forceUpdate" duration="1"/>
|
|
97
105
|
</file>
|
|
98
|
-
<file path="/builds/dti/design-system/sankhyacore/test/
|
|
99
|
-
<testCase name="
|
|
100
|
-
<testCase name="
|
|
101
|
-
<testCase name="
|
|
102
|
-
|
|
103
|
-
<file path="/builds/dti/design-system/sankhyacore/src/dataunit/state/slice/test/RecordsSlice.spec.ts">
|
|
104
|
-
<testCase name="RecordsSlice should return newlines at the end" duration="3"/>
|
|
106
|
+
<file path="/builds/dti/design-system/sankhyacore/src/dataunit/test/DataUnit.spec.ts">
|
|
107
|
+
<testCase name="DataUnit should return false when not waiting to reload" duration="3"/>
|
|
108
|
+
<testCase name="DataUnit should set waitingToReload to true" duration="1"/>
|
|
109
|
+
<testCase name="DataUnit should set waitingToReload to false" duration="1"/>
|
|
110
|
+
<testCase name="DataUnit should dispatch SAVING_CANCELED action with correct fields and recordId" duration="1"/>
|
|
105
111
|
</file>
|
|
106
112
|
<file path="/builds/dti/design-system/sankhyacore/test/util/DataUnitStorage.spec.ts">
|
|
107
|
-
<testCase name="DataUnitStorage put should store a DataUnit instance in the DataUnitStorage" duration="
|
|
108
|
-
<testCase name="DataUnitStorage get should return the stored DataUnit instance from the DataUnitStorage" duration="
|
|
109
|
-
<testCase name="DataUnitStorage get should return undefined if the DataUnit instance is not found in the DataUnitStorage" duration="
|
|
113
|
+
<testCase name="DataUnitStorage put should store a DataUnit instance in the DataUnitStorage" duration="6"/>
|
|
114
|
+
<testCase name="DataUnitStorage get should return the stored DataUnit instance from the DataUnitStorage" duration="73"/>
|
|
115
|
+
<testCase name="DataUnitStorage get should return undefined if the DataUnit instance is not found in the DataUnitStorage" duration="1"/>
|
|
110
116
|
<testCase name="DataUnitStorage remove should remove the specified DataUnit instance from the DataUnitStorage" duration="1"/>
|
|
111
|
-
<testCase name="DataUnitStorage remove should remove the DataUnit instance with the specified name from the DataUnitStorage" duration="
|
|
117
|
+
<testCase name="DataUnitStorage remove should remove the DataUnit instance with the specified name from the DataUnitStorage" duration="1"/>
|
|
112
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"/>
|
|
113
119
|
</file>
|
|
114
120
|
<file path="/builds/dti/design-system/sankhyacore/test/util/ElementIDUtils.spec.ts">
|
|
115
|
-
<testCase name="addIDInfo 1 - should add data-element-id with valid id "movFinanceira_snkApplication"" duration="
|
|
121
|
+
<testCase name="addIDInfo 1 - should add data-element-id with valid id "movFinanceira_snkApplication"" duration="77"/>
|
|
116
122
|
<testCase name="addIDInfo 2 - should add data-element-id with valid id "brComSankhyaFinCadMovimentacaofinanceira_snkApplication"" duration="2"/>
|
|
117
|
-
<testCase name="addIDInfo 3 - should add data-element-id with valid id "movFinanceira_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="
|
|
123
|
+
<testCase name="addIDInfo 3 - should add data-element-id with valid id "movFinanceira_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="1"/>
|
|
118
124
|
<testCase name="addIDInfo 4 - should add data-element-id with valid id "meuID2_snkApplication"" duration="1"/>
|
|
119
|
-
<testCase name="addIDInfo 5 - should add data-element-id with valid id "movFinanceira_snkApplication"" duration="
|
|
120
|
-
<testCase name="addIDInfo 6 - should add data-element-id with valid id "movFinanceira_snkApplication"" duration="
|
|
125
|
+
<testCase name="addIDInfo 5 - should add data-element-id with valid id "movFinanceira_snkApplication"" duration="0"/>
|
|
126
|
+
<testCase name="addIDInfo 6 - should add data-element-id with valid id "movFinanceira_snkApplication"" duration="1"/>
|
|
121
127
|
<testCase name="addIDInfo 7 - should add data-element-id with valid id "componenteNameTest_snkApplication"" duration="1"/>
|
|
122
128
|
<testCase name="addIDInfo 8 - should add data-element-id with valid id "componentLabel_snkApplication"" duration="1"/>
|
|
123
129
|
<testCase name="addIDInfo 9 - should add data-element-id with valid id "dataunitFinanceiro_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="1"/>
|
|
124
130
|
<testCase name="addIDInfo 10 - should add data-element-id with valid id "dataunitFinanceiro_meuIDTeste_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="1"/>
|
|
125
|
-
<testCase name="addIDInfo 11 - should add data-element-id with valid id "dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira"" duration="
|
|
126
|
-
<testCase name="addIDInfo 12 - should add data-element-id with valid id "dataunitFinanceiro_movFinanceira_movimentacaoFinanceira"" duration="
|
|
127
|
-
<testCase name="addIDInfo 13 - should add data-element-id with valid id "dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira"" duration="
|
|
131
|
+
<testCase name="addIDInfo 11 - should add data-element-id with valid id "dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira"" duration="1"/>
|
|
132
|
+
<testCase name="addIDInfo 12 - should add data-element-id with valid id "dataunitFinanceiro_movFinanceira_movimentacaoFinanceira"" duration="1"/>
|
|
133
|
+
<testCase name="addIDInfo 13 - should add data-element-id with valid id "dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira"" duration="1"/>
|
|
128
134
|
<testCase name="addIDInfo 14 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_movimentacaoFinanceira"" duration="2"/>
|
|
129
135
|
<testCase name="addIDInfo 15 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_snkApplication"" duration="1"/>
|
|
130
|
-
<testCase name="addIDInfo 16 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_snkApplication"" duration="
|
|
136
|
+
<testCase name="addIDInfo 16 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_snkApplication"" duration="0"/>
|
|
131
137
|
<testCase name="addIDInfo 17 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="1"/>
|
|
132
138
|
<testCase name="addIDInfo 18 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="1"/>
|
|
133
|
-
<testCase name="addIDInfo 19 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="
|
|
139
|
+
<testCase name="addIDInfo 19 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="0"/>
|
|
134
140
|
<testCase name="addIDInfo 20 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="1"/>
|
|
135
|
-
<testCase name="addIDInfo 21 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="
|
|
136
|
-
<testCase name="addIDInfo 22 - should add data-element-id with valid id "bancoObrigatorio_movimentacaoFinanceira"" duration="
|
|
141
|
+
<testCase name="addIDInfo 21 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="77"/>
|
|
142
|
+
<testCase name="addIDInfo 22 - should add data-element-id with valid id "bancoObrigatorio_movimentacaoFinanceira"" duration="1"/>
|
|
137
143
|
</file>
|
|
138
|
-
<file path="/builds/dti/design-system/sankhyacore/
|
|
139
|
-
<testCase name="
|
|
140
|
-
<testCase name="
|
|
141
|
-
<testCase name="
|
|
142
|
-
<testCase name="DataUnit should dispatch SAVING_CANCELED action with correct fields and recordId" duration="2"/>
|
|
144
|
+
<file path="/builds/dti/design-system/sankhyacore/test/util/ElementUtils.spec.ts">
|
|
145
|
+
<testCase name="calcMarginSize should calculate correctly the size of horizontal margin" duration="26"/>
|
|
146
|
+
<testCase name="calcMarginSize should calculate correctly the size of vertical margin" duration="2"/>
|
|
147
|
+
<testCase name="calcMarginSize should threat values defined as zero" duration="2"/>
|
|
143
148
|
</file>
|
|
144
149
|
<file path="/builds/dti/design-system/sankhyacore/test/dataunit/formatting/PrettyFormatter.spec.ts">
|
|
145
|
-
<testCase name="getFormattedValue should return empty string when value is null" duration="
|
|
150
|
+
<testCase name="getFormattedValue should return empty string when value is null" duration="4"/>
|
|
146
151
|
<testCase name="getFormattedValue should return empty string when value is not an array" duration="0"/>
|
|
147
152
|
<testCase name="getFormattedValue should return empty string when value is an empty array" duration="1"/>
|
|
148
|
-
<testCase name="getFormattedValue should return file name when value is an array with one file object" duration="
|
|
149
|
-
<testCase name="getFormattedValue should return file count when value is an array with multiple file objects" duration="
|
|
150
|
-
<testCase name="getFormattedValue should return empty string for undefined file" duration="
|
|
153
|
+
<testCase name="getFormattedValue should return file name when value is an array with one file object" duration="0"/>
|
|
154
|
+
<testCase name="getFormattedValue should return file count when value is an array with multiple file objects" duration="0"/>
|
|
155
|
+
<testCase name="getFormattedValue should return empty string for undefined file" duration="1"/>
|
|
151
156
|
<testCase name="getFormattedValue should handle OBJECT type with value field" duration="0"/>
|
|
152
|
-
<testCase name="getFormattedValue should return empty string when value is undefined" duration="
|
|
153
|
-
<testCase name="getFormattedValue should return value as string when value is not an object" duration="
|
|
154
|
-
<testCase name="getFormattedValue should return value.toString() when value is an object without value property" duration="
|
|
157
|
+
<testCase name="getFormattedValue should return empty string when value is undefined" duration="0"/>
|
|
158
|
+
<testCase name="getFormattedValue should return value as string when value is not an object" duration="0"/>
|
|
159
|
+
<testCase name="getFormattedValue should return value.toString() when value is an object without value property" duration="0"/>
|
|
155
160
|
<testCase name="getFormattedValue should handle BOOLEAN type" duration="1"/>
|
|
156
|
-
<testCase name="getFormattedValue should format numbers correctly" duration="
|
|
161
|
+
<testCase name="getFormattedValue should format numbers correctly" duration="10"/>
|
|
157
162
|
<testCase name="getFormattedValue should format dates correctly" duration="4"/>
|
|
158
|
-
<testCase name="getFormattedValue should format times correctly" duration="
|
|
163
|
+
<testCase name="getFormattedValue should format times correctly" duration="1"/>
|
|
159
164
|
<testCase name="getFormattedValue should format datetime correctly" duration="0"/>
|
|
160
165
|
<testCase name="getFormattedValue should call toString with correct parameters" duration="1"/>
|
|
161
|
-
<testCase name="getFormattedValue should handle undefined descriptor gracefully" duration="
|
|
162
|
-
<testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and matching option" duration="
|
|
166
|
+
<testCase name="getFormattedValue should handle undefined descriptor gracefully" duration="1"/>
|
|
167
|
+
<testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and matching option" duration="0"/>
|
|
163
168
|
<testCase name="getFormattedValue should return value with OPTIONSELECTOR and no matching option" duration="0"/>
|
|
164
169
|
<testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and value as object" duration="1"/>
|
|
165
170
|
<testCase name="getFormattedValue should return empty string with OPTIONSELECTOR and value as null" duration="0"/>
|
|
166
171
|
<testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and options as JSON string" duration="0"/>
|
|
167
|
-
<testCase name="getFormattedValue should return value with OPTIONSELECTOR and options as empty array" duration="
|
|
168
|
-
<testCase name="getFormattedValue should format masked values correctly" duration="
|
|
169
|
-
</file>
|
|
170
|
-
<file path="/builds/dti/design-system/sankhyacore/test/util/ElementUtils.spec.ts">
|
|
171
|
-
<testCase name="calcMarginSize should calculate correctly the size of horizontal margin" duration="66"/>
|
|
172
|
-
<testCase name="calcMarginSize should calculate correctly the size of vertical margin" duration="4"/>
|
|
173
|
-
<testCase name="calcMarginSize should threat values defined as zero" duration="5"/>
|
|
172
|
+
<testCase name="getFormattedValue should return value with OPTIONSELECTOR and options as empty array" duration="0"/>
|
|
173
|
+
<testCase name="getFormattedValue should format masked values correctly" duration="1"/>
|
|
174
174
|
</file>
|
|
175
175
|
</unitTest>
|
package/src/dataunit/DataUnit.ts
CHANGED
|
@@ -54,6 +54,7 @@ export default class DataUnit {
|
|
|
54
54
|
private _defaultSorting: Array<Sort>;
|
|
55
55
|
private _allowReleaseCallbacks: boolean;
|
|
56
56
|
private _waitingToReload: boolean = false;
|
|
57
|
+
private _cancelPagination: boolean = false;
|
|
57
58
|
|
|
58
59
|
public metadataLoader?: (dataUnit: DataUnit) => Promise<UnitMetadata>;
|
|
59
60
|
public dataLoader?: (dataUnit: DataUnit, request: LoadDataRequest) => Promise<LoadDataResponse>;
|
|
@@ -152,6 +153,7 @@ export default class DataUnit {
|
|
|
152
153
|
return this._uuid;
|
|
153
154
|
}
|
|
154
155
|
|
|
156
|
+
|
|
155
157
|
/**
|
|
156
158
|
* Retorna se o dataUnit está com recarregamento pendente.
|
|
157
159
|
*/
|
|
@@ -167,6 +169,20 @@ export default class DataUnit {
|
|
|
167
169
|
this._waitingToReload = isWaiting;
|
|
168
170
|
}
|
|
169
171
|
|
|
172
|
+
/**
|
|
173
|
+
* Informa se a paginação deve ser cancelada.
|
|
174
|
+
*/
|
|
175
|
+
public get cancelPagination(): boolean {
|
|
176
|
+
return this._cancelPagination;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Informa se a paginação deve ser cancelada.
|
|
181
|
+
*/
|
|
182
|
+
public set cancelPagination(cancelPagination: boolean) {
|
|
183
|
+
this._cancelPagination = cancelPagination;
|
|
184
|
+
}
|
|
185
|
+
|
|
170
186
|
/**
|
|
171
187
|
*
|
|
172
188
|
* Obtém o nome de identificação do DataUnit (geralmente em formato de URI - Uniform Resource Identifier).
|
|
@@ -764,6 +780,7 @@ export default class DataUnit {
|
|
|
764
780
|
return this.dispatchAction(Action.PAGINATION_UPDATED, info, undefined);
|
|
765
781
|
}
|
|
766
782
|
|
|
783
|
+
|
|
767
784
|
/**
|
|
768
785
|
*
|
|
769
786
|
* Define a lógica de ordenação dos registros.
|
|
@@ -23,4 +23,9 @@ export interface PaginationInfo {
|
|
|
23
23
|
* Caso o dataunit não tenha carga paralela o valor será indefinido
|
|
24
24
|
*/
|
|
25
25
|
loadingInProgress?: boolean;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Informa se deve exibir diálogo para cancelar carregamento de registros
|
|
29
|
+
*/
|
|
30
|
+
askRowsLimit?: number;
|
|
26
31
|
}
|