@sankhyalabs/core 5.20.0-dev.57 → 5.20.0-dev.59
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 +72 -70
- 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/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 +4 -1
- package/dist/dataunit/DataUnit.js +4 -2
- package/dist/dataunit/DataUnit.js.map +1 -1
- package/package.json +1 -1
- package/reports/test-report.xml +105 -105
- package/src/dataunit/DataUnit.ts +9 -3
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
3
|
<file path="/builds/dti/design-system/sankhyacore/test/http/SkwHttpProvider.ts.spec.ts">
|
|
4
|
-
<testCase name="HttpProvider Metodo POST" duration="
|
|
4
|
+
<testCase name="HttpProvider Metodo POST" duration="199"/>
|
|
5
5
|
</file>
|
|
6
6
|
<file path="/builds/dti/design-system/sankhyacore/test/http/HttpProvider.spec.ts">
|
|
7
|
-
<testCase name="HttpProvider Metodo GET" duration="
|
|
8
|
-
</file>
|
|
9
|
-
<file path="/builds/dti/design-system/sankhyacore/test/util/CriteriaParameter.spec.ts">
|
|
10
|
-
<testCase name="StringUtils it should return the correct values of "value" and "type" through the getters methods initial setted by the constructor" duration="115"/>
|
|
11
|
-
<testCase name="StringUtils it should return the correct values of "value" and "type" through the getters methods initial setted by the setters methods" duration="1"/>
|
|
12
|
-
<testCase name="StringUtils it should return the correct JSON/Object value through the buildParam method" duration="1"/>
|
|
13
|
-
</file>
|
|
14
|
-
<file path="/builds/dti/design-system/sankhyacore/test/util/MaskFormatter.spec.ts">
|
|
15
|
-
<testCase name="Mask Formatter mask:CPF complete valid" duration="20"/>
|
|
16
|
-
<testCase name="Mask Formatter mask:CPF complete valid literals" duration="64"/>
|
|
17
|
-
<testCase name="Mask Formatter mask:CPF incomplete valid" duration="1"/>
|
|
18
|
-
<testCase name="Mask Formatter mask:CPF incomplete valid placeholder" duration="1"/>
|
|
19
|
-
<testCase name="Mask Formatter mask:CPF too long valid" duration="1"/>
|
|
20
|
-
<testCase name="Mask Formatter mask:CPF invalid for string" duration="197"/>
|
|
21
|
-
<testCase name="Mask Formatter mask:CPF invalid for being too long" duration="1"/>
|
|
22
|
-
<testCase name="Mask Formatter mask:Licence plate valid uppercase" duration="0"/>
|
|
23
|
-
<testCase name="Mask Formatter mask:Licence plate valid lowercase" duration="1"/>
|
|
24
|
-
<testCase name="Mask Formatter mask:Licence plate invalid" duration="2"/>
|
|
25
|
-
<testCase name="Mask Formatter mask:Licence plate invalid for being too short" duration="1"/>
|
|
26
|
-
<testCase name="Mask Formatter mask:Licence plate invalid for being too short with placeholder" duration="0"/>
|
|
27
|
-
<testCase name="Mask Formatter mask:Licence plate invalid" duration="11"/>
|
|
28
|
-
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
|
|
29
|
-
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="0"/>
|
|
30
|
-
<testCase name="Mask Formatter mask:Licence plate invalid" duration="2"/>
|
|
31
|
-
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
|
|
32
|
-
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="0"/>
|
|
33
|
-
<testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
|
|
34
|
-
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="4"/>
|
|
35
|
-
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="0"/>
|
|
36
|
-
<testCase name="Mask Formatter mask:Licence plate invalid" duration="5"/>
|
|
7
|
+
<testCase name="HttpProvider Metodo GET" duration="6"/>
|
|
37
8
|
</file>
|
|
38
9
|
<file path="/builds/dti/design-system/sankhyacore/src/utils/test/objectUtils.spec.ts">
|
|
39
|
-
<testCase name="ObjectUtils hasEquivalentValues should return true if both objects have the same property value" duration="
|
|
40
|
-
<testCase name="ObjectUtils hasEquivalentValues should return false if both objects have different property values" duration="
|
|
10
|
+
<testCase name="ObjectUtils hasEquivalentValues should return true if both objects have the same property value" duration="7"/>
|
|
11
|
+
<testCase name="ObjectUtils hasEquivalentValues should return false if both objects have different property values" duration="0"/>
|
|
41
12
|
<testCase name="ObjectUtils hasEquivalentValues should return true if both objects are equivalent with custom property to compare" duration="1"/>
|
|
42
|
-
<testCase name="ObjectUtils hasEquivalentValues should return false if both objects are not equivalent with custom property to compare" duration="
|
|
13
|
+
<testCase name="ObjectUtils hasEquivalentValues should return false if both objects are not equivalent with custom property to compare" duration="0"/>
|
|
43
14
|
<testCase name="ObjectUtils hasEquivalentValues should return false if one object does not have the property" duration="1"/>
|
|
44
|
-
<testCase name="ObjectUtils hasEquivalentValues should return true if comparing primitive values directly" duration="
|
|
45
|
-
<testCase name="ObjectUtils hasEquivalentValues should return false if comparing different primitive values" duration="
|
|
15
|
+
<testCase name="ObjectUtils hasEquivalentValues should return true if comparing primitive values directly" duration="0"/>
|
|
16
|
+
<testCase name="ObjectUtils hasEquivalentValues should return false if comparing different primitive values" duration="1"/>
|
|
46
17
|
<testCase name="ObjectUtils hasEquivalentValues should return true when comparing object with a null value" duration="0"/>
|
|
47
18
|
<testCase name="ObjectUtils hasEquivalentValues should return false when comparing object with null and non-null value" duration="0"/>
|
|
48
19
|
<testCase name="ObjectUtils hasEquivalentValues should return true when comparing non-object values that are equal" duration="1"/>
|
|
49
|
-
<testCase name="ObjectUtils should get an object value based on its path" duration="
|
|
50
|
-
<testCase name="ObjectUtils should get an object value based on its path" duration="
|
|
20
|
+
<testCase name="ObjectUtils should get an object value based on its path" duration="82"/>
|
|
21
|
+
<testCase name="ObjectUtils should get an object value based on its path" duration="1"/>
|
|
51
22
|
<testCase name="ObjectUtils should return undefined if the path doesn't exist in the object" duration="0"/>
|
|
52
23
|
</file>
|
|
24
|
+
<file path="/builds/dti/design-system/sankhyacore/test/util/CriteriaParameter.spec.ts">
|
|
25
|
+
<testCase name="StringUtils it should return the correct values of "value" and "type" through the getters methods initial setted by the constructor" duration="94"/>
|
|
26
|
+
<testCase name="StringUtils it should return the correct values of "value" and "type" through the getters methods initial setted by the setters methods" duration="2"/>
|
|
27
|
+
<testCase name="StringUtils it should return the correct JSON/Object value through the buildParam method" duration="1"/>
|
|
28
|
+
</file>
|
|
53
29
|
<file path="/builds/dti/design-system/sankhyacore/test/util/CriteriaModel.spec.ts">
|
|
54
|
-
<testCase name="StringUtils it should return the undefined and [] to Criteria Props through new class with empty constructor" duration="
|
|
30
|
+
<testCase name="StringUtils it should return the undefined and [] to Criteria Props through new class with empty constructor" duration="92"/>
|
|
55
31
|
<testCase name="StringUtils it should modify "expressions" and "parameters" properties through Setters methods" duration="1"/>
|
|
56
|
-
<testCase name="StringUtils it should return "expression" and "parameters" setted through constructor method" duration="
|
|
57
|
-
<testCase name="StringUtils it should return a Criteria class with "expression" and "parameters" as needed setted through "append" method" duration="
|
|
58
|
-
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "append" method" duration="
|
|
32
|
+
<testCase name="StringUtils it should return "expression" and "parameters" setted through constructor method" duration="1"/>
|
|
33
|
+
<testCase name="StringUtils it should return a Criteria class with "expression" and "parameters" as needed setted through "append" method" duration="1"/>
|
|
34
|
+
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "append" method" duration="1"/>
|
|
59
35
|
<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"/>
|
|
60
36
|
<testCase name="StringUtils it should return a Criteria class with "Expression" and "parameters" concatenaded as needed setted through "OR" method" duration="1"/>
|
|
61
37
|
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "OR" method" duration="1"/>
|
|
62
38
|
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "OR" method" duration="1"/>
|
|
63
|
-
<testCase name="StringUtils it should return a Criteria class with "Expression" and "parameters" concatenaded as needed setted through "AND" method" duration="
|
|
64
|
-
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "AND" method" duration="4"/>
|
|
39
|
+
<testCase name="StringUtils it should return a Criteria class with "Expression" and "parameters" concatenaded as needed setted through "AND" method" duration="2"/>
|
|
65
40
|
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "AND" method" duration="1"/>
|
|
66
|
-
<testCase name="StringUtils it should return a
|
|
41
|
+
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "AND" method" duration="1"/>
|
|
42
|
+
<testCase name="StringUtils it should return a toJSON object with "Criteria class" and "parameters" concatenaded as needed setted through "AND" method" duration="486"/>
|
|
67
43
|
<testCase name="StringUtils it should return a toJSON object with through empty constructor" duration="0"/>
|
|
68
44
|
</file>
|
|
69
|
-
<file path="/builds/dti/design-system/sankhyacore/test/util/
|
|
70
|
-
<testCase name="
|
|
71
|
-
<testCase name="
|
|
72
|
-
<testCase name="
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
<testCase name="
|
|
45
|
+
<file path="/builds/dti/design-system/sankhyacore/test/util/MaskFormatter.spec.ts">
|
|
46
|
+
<testCase name="Mask Formatter mask:CPF complete valid" duration="95"/>
|
|
47
|
+
<testCase name="Mask Formatter mask:CPF complete valid literals" duration="1"/>
|
|
48
|
+
<testCase name="Mask Formatter mask:CPF incomplete valid" duration="1"/>
|
|
49
|
+
<testCase name="Mask Formatter mask:CPF incomplete valid placeholder" duration="1"/>
|
|
50
|
+
<testCase name="Mask Formatter mask:CPF too long valid" duration="1"/>
|
|
51
|
+
<testCase name="Mask Formatter mask:CPF invalid for string" duration="301"/>
|
|
52
|
+
<testCase name="Mask Formatter mask:CPF invalid for being too long" duration="0"/>
|
|
53
|
+
<testCase name="Mask Formatter mask:Licence plate valid uppercase" duration="1"/>
|
|
54
|
+
<testCase name="Mask Formatter mask:Licence plate valid lowercase" duration="1"/>
|
|
55
|
+
<testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
|
|
56
|
+
<testCase name="Mask Formatter mask:Licence plate invalid for being too short" duration="97"/>
|
|
57
|
+
<testCase name="Mask Formatter mask:Licence plate invalid for being too short with placeholder" duration="1"/>
|
|
58
|
+
<testCase name="Mask Formatter mask:Licence plate invalid" duration="85"/>
|
|
59
|
+
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
|
|
60
|
+
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="1"/>
|
|
61
|
+
<testCase name="Mask Formatter mask:Licence plate invalid" duration="3"/>
|
|
62
|
+
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
|
|
63
|
+
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="1"/>
|
|
64
|
+
<testCase name="Mask Formatter mask:Licence plate invalid" duration="2"/>
|
|
65
|
+
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
|
|
66
|
+
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="1"/>
|
|
67
|
+
<testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
|
|
76
68
|
</file>
|
|
77
69
|
<file path="/builds/dti/design-system/sankhyacore/test/util/StringUtils.spec.ts">
|
|
78
|
-
<testCase name="StringUtils valor vazio" duration="
|
|
79
|
-
<testCase name="StringUtils valor em branco" duration="
|
|
80
|
-
<testCase name="StringUtils valor null" duration="
|
|
81
|
-
<testCase name="StringUtils valor undefined" duration="
|
|
82
|
-
<testCase name="StringUtils valor 0" duration="
|
|
83
|
-
<testCase name="StringUtils com valor" duration="
|
|
84
|
-
<testCase name="StringUtils substitui vogais com acento por vogais sem acento" duration="
|
|
85
|
-
<testCase name="StringUtils should return the original value when called with an object without a toString method" duration="
|
|
70
|
+
<testCase name="StringUtils valor vazio" duration="6"/>
|
|
71
|
+
<testCase name="StringUtils valor em branco" duration="93"/>
|
|
72
|
+
<testCase name="StringUtils valor null" duration="1"/>
|
|
73
|
+
<testCase name="StringUtils valor undefined" duration="0"/>
|
|
74
|
+
<testCase name="StringUtils valor 0" duration="0"/>
|
|
75
|
+
<testCase name="StringUtils com valor" duration="1"/>
|
|
76
|
+
<testCase name="StringUtils substitui vogais com acento por vogais sem acento" duration="1"/>
|
|
77
|
+
<testCase name="StringUtils should return the original value when called with an object without a toString method" duration="4"/>
|
|
86
78
|
<testCase name="StringUtils should return the original value when called with undefined" duration="1"/>
|
|
87
79
|
</file>
|
|
88
80
|
<file path="/builds/dti/design-system/sankhyacore/test/util/NumberUtils.spec.ts">
|
|
89
|
-
<testCase name="StringUtils stringToNumber" duration="
|
|
90
|
-
<testCase name="StringUtils format" duration="
|
|
81
|
+
<testCase name="StringUtils stringToNumber" duration="198"/>
|
|
82
|
+
<testCase name="StringUtils format" duration="293"/>
|
|
91
83
|
<testCase name="StringUtils format without formatnumber parameter" duration="1"/>
|
|
92
84
|
<testCase name="StringUtils format without formatnumber parameter" duration="1"/>
|
|
93
|
-
<testCase name="StringUtils format round number" duration="
|
|
85
|
+
<testCase name="StringUtils format round number" duration="2"/>
|
|
86
|
+
</file>
|
|
87
|
+
<file path="/builds/dti/design-system/sankhyacore/test/util/TimeFormatter.spec.ts">
|
|
88
|
+
<testCase name="TimeFormatter Case: input string unformated with showSeconds" duration="2"/>
|
|
89
|
+
<testCase name="TimeFormatter Case: input string unformated without showSeconds" duration="1"/>
|
|
90
|
+
<testCase name="TimeFormatter Case: validateTime" 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="3"/>
|
|
94
94
|
</file>
|
|
95
95
|
<file path="/builds/dti/design-system/sankhyacore/test/util/OverflowWatcher.spec.ts">
|
|
96
|
-
<testCase name="OverflowWatcher should initialize with provided parameters" duration="
|
|
96
|
+
<testCase name="OverflowWatcher should initialize with provided parameters" duration="98"/>
|
|
97
97
|
<testCase name="OverflowWatcher should disconect ResizeObserver when destroy is called" duration="2"/>
|
|
98
|
-
<testCase name="OverflowWatcher Should call callback on forceUpdate" duration="
|
|
99
|
-
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan" duration="
|
|
100
|
-
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan when notOverFlow is empty" duration="
|
|
101
|
-
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan considering overflowed elements" duration="
|
|
102
|
-
<testCase name="OverflowWatcher Should call callback on forceUpdate with empty list" duration="
|
|
103
|
-
<testCase name="OverflowWatcher should ignore elements that can not overflow" duration="
|
|
98
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate" duration="305"/>
|
|
99
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan" duration="188"/>
|
|
100
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan when notOverFlow is empty" duration="198"/>
|
|
101
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan considering overflowed elements" duration="6"/>
|
|
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="110"/>
|
|
104
104
|
<testCase name="OverflowWatcher Should not call callback on forceUpdate" duration="1"/>
|
|
105
105
|
</file>
|
|
106
|
-
<file path="/builds/dti/design-system/sankhyacore/test/util/DataUnitStorage.spec.ts">
|
|
107
|
-
<testCase name="DataUnitStorage put should store a DataUnit instance in the DataUnitStorage" duration="8"/>
|
|
108
|
-
<testCase name="DataUnitStorage get should return the stored DataUnit instance from the DataUnitStorage" duration="4"/>
|
|
109
|
-
<testCase name="DataUnitStorage get should return undefined if the DataUnit instance is not found in the DataUnitStorage" duration="1"/>
|
|
110
|
-
<testCase name="DataUnitStorage remove should remove the specified DataUnit instance from the DataUnitStorage" duration="1"/>
|
|
111
|
-
<testCase name="DataUnitStorage remove should remove the DataUnit instance with the specified name from the DataUnitStorage" duration="1"/>
|
|
112
|
-
<testCase name="DataUnitStorage remove should not remove any DataUnit instance if the specified DataUnit instance or name is not found in the DataUnitStorage" duration="1"/>
|
|
113
|
-
</file>
|
|
114
106
|
<file path="/builds/dti/design-system/sankhyacore/src/dataunit/test/DataUnit.spec.ts">
|
|
115
107
|
<testCase name="DataUnit should return false when not waiting to reload" duration="3"/>
|
|
116
108
|
<testCase name="DataUnit should set waitingToReload to true" duration="1"/>
|
|
117
|
-
<testCase name="DataUnit should set waitingToReload to false" duration="
|
|
109
|
+
<testCase name="DataUnit should set waitingToReload to false" duration="1"/>
|
|
118
110
|
<testCase name="DataUnit should dispatch SAVING_CANCELED action with correct fields and recordId" duration="2"/>
|
|
119
111
|
</file>
|
|
112
|
+
<file path="/builds/dti/design-system/sankhyacore/test/util/DataUnitStorage.spec.ts">
|
|
113
|
+
<testCase name="DataUnitStorage put should store a DataUnit instance in the DataUnitStorage" duration="8"/>
|
|
114
|
+
<testCase name="DataUnitStorage get should return the stored DataUnit instance from the DataUnitStorage" duration="1"/>
|
|
115
|
+
<testCase name="DataUnitStorage get should return undefined if the DataUnit instance is not found in the DataUnitStorage" duration="2"/>
|
|
116
|
+
<testCase name="DataUnitStorage remove should remove the specified DataUnit instance from the DataUnitStorage" duration="73"/>
|
|
117
|
+
<testCase name="DataUnitStorage remove should remove the DataUnit instance with the specified name from the DataUnitStorage" duration="1"/>
|
|
118
|
+
<testCase name="DataUnitStorage remove should not remove any DataUnit instance if the specified DataUnit instance or name is not found in the DataUnitStorage" duration="1"/>
|
|
119
|
+
</file>
|
|
120
120
|
<file path="/builds/dti/design-system/sankhyacore/test/util/ElementIDUtils.spec.ts">
|
|
121
121
|
<testCase name="addIDInfo 1 - should add data-element-id with valid id "movFinanceira_snkApplication"" duration="12"/>
|
|
122
|
-
<testCase name="addIDInfo 2 - should add data-element-id with valid id "brComSankhyaFinCadMovimentacaofinanceira_snkApplication"" duration="
|
|
122
|
+
<testCase name="addIDInfo 2 - should add data-element-id with valid id "brComSankhyaFinCadMovimentacaofinanceira_snkApplication"" duration="2"/>
|
|
123
123
|
<testCase name="addIDInfo 3 - should add data-element-id with valid id "movFinanceira_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="2"/>
|
|
124
124
|
<testCase name="addIDInfo 4 - should add data-element-id with valid id "meuID2_snkApplication"" duration="1"/>
|
|
125
|
-
<testCase name="addIDInfo 5 - 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="1"/>
|
|
126
126
|
<testCase name="addIDInfo 6 - should add data-element-id with valid id "movFinanceira_snkApplication"" duration="1"/>
|
|
127
127
|
<testCase name="addIDInfo 7 - should add data-element-id with valid id "componenteNameTest_snkApplication"" duration="1"/>
|
|
128
128
|
<testCase name="addIDInfo 8 - should add data-element-id with valid id "componentLabel_snkApplication"" duration="1"/>
|
|
129
|
-
<testCase name="addIDInfo 9 - should add data-element-id with valid id "dataunitFinanceiro_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="
|
|
130
|
-
<testCase name="addIDInfo 10 - should add data-element-id with valid id "dataunitFinanceiro_meuIDTeste_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="
|
|
129
|
+
<testCase name="addIDInfo 9 - should add data-element-id with valid id "dataunitFinanceiro_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="1"/>
|
|
130
|
+
<testCase name="addIDInfo 10 - should add data-element-id with valid id "dataunitFinanceiro_meuIDTeste_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="79"/>
|
|
131
131
|
<testCase name="addIDInfo 11 - should add data-element-id with valid id "dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira"" duration="2"/>
|
|
132
132
|
<testCase name="addIDInfo 12 - should add data-element-id with valid id "dataunitFinanceiro_movFinanceira_movimentacaoFinanceira"" duration="1"/>
|
|
133
133
|
<testCase name="addIDInfo 13 - should add data-element-id with valid id "dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira"" duration="1"/>
|
|
134
|
-
<testCase name="addIDInfo 14 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_movimentacaoFinanceira"" duration="
|
|
134
|
+
<testCase name="addIDInfo 14 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_movimentacaoFinanceira"" duration="1"/>
|
|
135
135
|
<testCase name="addIDInfo 15 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_snkApplication"" duration="1"/>
|
|
136
136
|
<testCase name="addIDInfo 16 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_snkApplication"" duration="1"/>
|
|
137
137
|
<testCase name="addIDInfo 17 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="1"/>
|
|
138
138
|
<testCase name="addIDInfo 18 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="1"/>
|
|
139
139
|
<testCase name="addIDInfo 19 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="1"/>
|
|
140
|
-
<testCase name="addIDInfo 20 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="
|
|
140
|
+
<testCase name="addIDInfo 20 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="0"/>
|
|
141
141
|
<testCase name="addIDInfo 21 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="1"/>
|
|
142
142
|
<testCase name="addIDInfo 22 - should add data-element-id with valid id "bancoObrigatorio_movimentacaoFinanceira"" duration="1"/>
|
|
143
143
|
</file>
|
|
144
|
+
<file path="/builds/dti/design-system/sankhyacore/test/util/ElementUtils.spec.ts">
|
|
145
|
+
<testCase name="calcMarginSize should calculate correctly the size of horizontal margin" duration="25"/>
|
|
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="4"/>
|
|
148
|
+
</file>
|
|
144
149
|
<file path="/builds/dti/design-system/sankhyacore/test/dataunit/formatting/PrettyFormatter.spec.ts">
|
|
145
150
|
<testCase name="getFormattedValue should return empty string when value is null" duration="4"/>
|
|
146
|
-
<testCase name="getFormattedValue should return empty string when value is not an array" duration="
|
|
151
|
+
<testCase name="getFormattedValue should return empty string when value is not an array" duration="1"/>
|
|
147
152
|
<testCase name="getFormattedValue should return empty string when value is an empty array" duration="0"/>
|
|
148
|
-
<testCase name="getFormattedValue should return file name when value is an array with one file object" duration="
|
|
153
|
+
<testCase name="getFormattedValue should return file name when value is an array with one file object" duration="1"/>
|
|
149
154
|
<testCase name="getFormattedValue should return file count when value is an array with multiple file objects" duration="0"/>
|
|
150
|
-
<testCase name="getFormattedValue should return empty string for undefined file" duration="
|
|
151
|
-
<testCase name="getFormattedValue should handle OBJECT type with value field" duration="
|
|
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="
|
|
155
|
+
<testCase name="getFormattedValue should return empty string for undefined file" duration="0"/>
|
|
156
|
+
<testCase name="getFormattedValue should handle OBJECT type with value field" duration="0"/>
|
|
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="1"/>
|
|
154
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="
|
|
157
|
-
<testCase name="getFormattedValue should format dates correctly" duration="
|
|
158
|
-
<testCase name="getFormattedValue should format times correctly" duration="
|
|
161
|
+
<testCase name="getFormattedValue should format numbers correctly" duration="10"/>
|
|
162
|
+
<testCase name="getFormattedValue should format dates correctly" duration="4"/>
|
|
163
|
+
<testCase name="getFormattedValue should format times correctly" duration="0"/>
|
|
159
164
|
<testCase name="getFormattedValue should format datetime correctly" duration="1"/>
|
|
160
165
|
<testCase name="getFormattedValue should call toString with correct parameters" duration="0"/>
|
|
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
|
-
<testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and value as object" duration="
|
|
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
|
-
<testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and options as JSON string" duration="
|
|
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="68"/>
|
|
172
|
-
<testCase name="calcMarginSize should calculate correctly the size of vertical margin" duration="3"/>
|
|
173
|
-
<testCase name="calcMarginSize should threat values defined as zero" duration="5"/>
|
|
171
|
+
<testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and options as JSON string" duration="0"/>
|
|
172
|
+
<testCase name="getFormattedValue should return value with OPTIONSELECTOR and options as empty array" duration="1"/>
|
|
173
|
+
<testCase name="getFormattedValue should format masked values correctly" duration="0"/>
|
|
174
174
|
</file>
|
|
175
175
|
</unitTest>
|
package/src/dataunit/DataUnit.ts
CHANGED
|
@@ -824,7 +824,8 @@ export default class DataUnit {
|
|
|
824
824
|
*
|
|
825
825
|
*/
|
|
826
826
|
public set records(records: Array<Record>) {
|
|
827
|
-
this.
|
|
827
|
+
const paginationInfo = this.getPaginationInfo();
|
|
828
|
+
this.dispatchAction(Action.DATA_LOADED, { records, paginationInfo }, undefined);
|
|
828
829
|
}
|
|
829
830
|
|
|
830
831
|
/**
|
|
@@ -1769,11 +1770,12 @@ export default class DataUnit {
|
|
|
1769
1770
|
* @param fieldName - nome do campo para ficar invisível.
|
|
1770
1771
|
*
|
|
1771
1772
|
*/
|
|
1772
|
-
public hideField(fieldName:string) {
|
|
1773
|
+
public hideField(fieldName:string, options:HideFieldOptions) {
|
|
1773
1774
|
const fieldDescriptor = this.getField(fieldName);
|
|
1774
1775
|
|
|
1775
1776
|
if(fieldDescriptor?.visible === true){
|
|
1776
1777
|
fieldDescriptor.visible = false;
|
|
1778
|
+
fieldDescriptor.properties = {...fieldDescriptor.properties, visibleOnConfig: options.visibleOnConfig };
|
|
1777
1779
|
this.metadata = {...this.metadata};
|
|
1778
1780
|
}
|
|
1779
1781
|
}
|
|
@@ -2071,4 +2073,8 @@ export class SelectionInfo{
|
|
|
2071
2073
|
}
|
|
2072
2074
|
}
|
|
2073
2075
|
|
|
2074
|
-
export type DataUnitEventOptions = {[key:string]: any};
|
|
2076
|
+
export type DataUnitEventOptions = {[key:string]: any};
|
|
2077
|
+
|
|
2078
|
+
export type HideFieldOptions = {
|
|
2079
|
+
visibleOnConfig: boolean
|
|
2080
|
+
};
|