@sankhyalabs/core 5.20.0-dev.60 → 5.20.0-dev.61
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import DateUtils from '../../utils/DateUtils.js';
|
|
2
2
|
import { MaskFormatter } from '../../utils/MaskFormatter.js';
|
|
3
3
|
import { NumberUtils } from '../../utils/NumberUtils.js';
|
|
4
|
+
import { TimeFormatter } from '../../utils/TimeFormatter.js';
|
|
4
5
|
import { DataType, toString } from '../metadata/DataType.js';
|
|
5
6
|
import { UserInterface } from '../metadata/UnitMetadata.js';
|
|
6
7
|
export const getFormattedValue = (value, descriptor) => {
|
|
@@ -30,6 +31,9 @@ export const getFormattedValue = (value, descriptor) => {
|
|
|
30
31
|
if ((descriptor === null || descriptor === void 0 ? void 0 : descriptor.userInterface) === UserInterface.TIME) {
|
|
31
32
|
return DateUtils.formatTime(value);
|
|
32
33
|
}
|
|
34
|
+
if ((descriptor === null || descriptor === void 0 ? void 0 : descriptor.userInterface) === UserInterface.ELAPSEDTIME) {
|
|
35
|
+
return TimeFormatter.prepareValue(value, true);
|
|
36
|
+
}
|
|
33
37
|
if ((descriptor === null || descriptor === void 0 ? void 0 : descriptor.userInterface) === UserInterface.DATETIME) {
|
|
34
38
|
return DateUtils.formatDateTime(value);
|
|
35
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrettyFormatter.js","sourceRoot":"","sources":["../../../src/dataunit/formatting/PrettyFormatter.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAmB,aAAa,EAAE,MAAM,6BAA6B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itTest version="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="6"/>
|
|
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="0"/>
|
|
7
|
-
<testCase name="ObjectUtils hasEquivalentValues should return false if both objects are not equivalent with custom property to compare" duration="1"/>
|
|
8
|
-
<testCase name="ObjectUtils hasEquivalentValues should return false if one object does not have the property" duration="1"/>
|
|
9
|
-
<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="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="1"/>
|
|
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="0"/>
|
|
17
|
-
</file>
|
|
18
3
|
<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="
|
|
4
|
+
<testCase name="StringUtils it should return the undefined and [] to Criteria Props through new class with empty constructor" duration="84"/>
|
|
20
5
|
<testCase name="StringUtils it should modify "expressions" and "parameters" properties through Setters methods" duration="1"/>
|
|
21
|
-
<testCase name="StringUtils it should return "expression" and "parameters" setted through constructor method" duration="
|
|
6
|
+
<testCase name="StringUtils it should return "expression" and "parameters" setted through constructor method" duration="1"/>
|
|
22
7
|
<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="
|
|
8
|
+
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "append" method" duration="1"/>
|
|
24
9
|
<testCase name="StringUtils it should return undefined as "expression" and "[]" as parameters as we use an empty criteria as first entry in the constructor" duration="1"/>
|
|
25
10
|
<testCase name="StringUtils it should return a Criteria class with "Expression" and "parameters" concatenaded as needed setted through "OR" method" duration="1"/>
|
|
11
|
+
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "OR" method" duration="0"/>
|
|
26
12
|
<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="109"/>
|
|
28
13
|
<testCase name="StringUtils it should return a Criteria class with "Expression" and "parameters" concatenaded as needed setted through "AND" method" duration="2"/>
|
|
29
14
|
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "AND" method" duration="1"/>
|
|
30
15
|
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "AND" method" duration="1"/>
|
|
31
16
|
<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="
|
|
17
|
+
<testCase name="StringUtils it should return a toJSON object with through empty constructor" duration="5"/>
|
|
18
|
+
</file>
|
|
19
|
+
<file path="/builds/dti/design-system/sankhyacore/src/utils/test/objectUtils.spec.ts">
|
|
20
|
+
<testCase name="ObjectUtils hasEquivalentValues should return true if both objects have the same property value" duration="93"/>
|
|
21
|
+
<testCase name="ObjectUtils hasEquivalentValues should return false if both objects have different property values" duration="0"/>
|
|
22
|
+
<testCase name="ObjectUtils hasEquivalentValues should return true if both objects are equivalent with custom property to compare" duration="0"/>
|
|
23
|
+
<testCase name="ObjectUtils hasEquivalentValues should return false if both objects are not equivalent with custom property to compare" duration="0"/>
|
|
24
|
+
<testCase name="ObjectUtils hasEquivalentValues should return false if one object does not have the property" duration="1"/>
|
|
25
|
+
<testCase name="ObjectUtils hasEquivalentValues should return true if comparing primitive values directly" duration="0"/>
|
|
26
|
+
<testCase name="ObjectUtils hasEquivalentValues should return false if comparing different primitive values" duration="1"/>
|
|
27
|
+
<testCase name="ObjectUtils hasEquivalentValues should return true when comparing object with a null value" duration="0"/>
|
|
28
|
+
<testCase name="ObjectUtils hasEquivalentValues should return false when comparing object with null and non-null value" duration="1"/>
|
|
29
|
+
<testCase name="ObjectUtils hasEquivalentValues should return true when comparing non-object values that are equal" duration="1"/>
|
|
30
|
+
<testCase name="ObjectUtils should get an object value based on its path" duration="1"/>
|
|
31
|
+
<testCase name="ObjectUtils should get an object value based on its path" duration="1"/>
|
|
32
|
+
<testCase name="ObjectUtils should return undefined if the path doesn't exist in the object" duration="0"/>
|
|
33
33
|
</file>
|
|
34
34
|
<file path="/builds/dti/design-system/sankhyacore/test/util/MaskFormatter.spec.ts">
|
|
35
|
-
<testCase name="Mask Formatter mask:CPF complete valid" duration="
|
|
35
|
+
<testCase name="Mask Formatter mask:CPF complete valid" duration="79"/>
|
|
36
36
|
<testCase name="Mask Formatter mask:CPF complete valid literals" duration="1"/>
|
|
37
|
-
<testCase name="Mask Formatter mask:CPF incomplete valid" duration="
|
|
37
|
+
<testCase name="Mask Formatter mask:CPF incomplete valid" duration="0"/>
|
|
38
38
|
<testCase name="Mask Formatter mask:CPF incomplete valid placeholder" duration="1"/>
|
|
39
39
|
<testCase name="Mask Formatter mask:CPF too long valid" duration="1"/>
|
|
40
|
-
<testCase name="Mask Formatter mask:CPF invalid for string" duration="
|
|
41
|
-
<testCase name="Mask Formatter mask:CPF invalid for being too long" duration="
|
|
42
|
-
<testCase name="Mask Formatter mask:Licence plate valid uppercase" duration="
|
|
40
|
+
<testCase name="Mask Formatter mask:CPF invalid for string" duration="115"/>
|
|
41
|
+
<testCase name="Mask Formatter mask:CPF invalid for being too long" duration="82"/>
|
|
42
|
+
<testCase name="Mask Formatter mask:Licence plate valid uppercase" duration="0"/>
|
|
43
43
|
<testCase name="Mask Formatter mask:Licence plate valid lowercase" duration="1"/>
|
|
44
|
+
<testCase name="Mask Formatter mask:Licence plate invalid" duration="2"/>
|
|
45
|
+
<testCase name="Mask Formatter mask:Licence plate invalid for being too short" duration="0"/>
|
|
46
|
+
<testCase name="Mask Formatter mask:Licence plate invalid for being too short with placeholder" duration="1"/>
|
|
47
|
+
<testCase name="Mask Formatter mask:Licence plate invalid" duration="2"/>
|
|
48
|
+
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="0"/>
|
|
49
|
+
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="1"/>
|
|
44
50
|
<testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
|
|
45
|
-
<testCase name="Mask Formatter mask:Licence plate
|
|
46
|
-
<testCase name="Mask Formatter mask:Licence plate
|
|
47
|
-
<testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
|
|
48
|
-
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
|
|
49
|
-
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="0"/>
|
|
50
|
-
<testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
|
|
51
|
-
<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="0"/>
|
|
53
|
-
<testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
|
|
54
|
-
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
|
|
55
|
-
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="0"/>
|
|
51
|
+
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="0"/>
|
|
52
|
+
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="1"/>
|
|
56
53
|
<testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
|
|
54
|
+
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="0"/>
|
|
55
|
+
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="1"/>
|
|
56
|
+
<testCase name="Mask Formatter mask:Licence plate invalid" duration="0"/>
|
|
57
|
+
</file>
|
|
58
|
+
<file path="/builds/dti/design-system/sankhyacore/test/http/HttpProvider.spec.ts">
|
|
59
|
+
<testCase name="HttpProvider Metodo GET" duration="1"/>
|
|
60
|
+
</file>
|
|
61
|
+
<file path="/builds/dti/design-system/sankhyacore/test/util/NumberUtils.spec.ts">
|
|
62
|
+
<testCase name="StringUtils stringToNumber" duration="283"/>
|
|
63
|
+
<testCase name="StringUtils format" duration="99"/>
|
|
64
|
+
<testCase name="StringUtils format without formatnumber parameter" duration="1"/>
|
|
65
|
+
<testCase name="StringUtils format without formatnumber parameter" duration="2"/>
|
|
66
|
+
<testCase name="StringUtils format round number" duration="1"/>
|
|
57
67
|
</file>
|
|
58
68
|
<file path="/builds/dti/design-system/sankhyacore/test/util/StringUtils.spec.ts">
|
|
59
|
-
<testCase name="StringUtils valor vazio" duration="
|
|
60
|
-
<testCase name="StringUtils valor em branco" duration="
|
|
61
|
-
<testCase name="StringUtils valor null" duration="
|
|
69
|
+
<testCase name="StringUtils valor vazio" duration="1"/>
|
|
70
|
+
<testCase name="StringUtils valor em branco" duration="1"/>
|
|
71
|
+
<testCase name="StringUtils valor null" duration="92"/>
|
|
62
72
|
<testCase name="StringUtils valor undefined" duration="0"/>
|
|
63
73
|
<testCase name="StringUtils valor 0" duration="0"/>
|
|
64
74
|
<testCase name="StringUtils com valor" duration="1"/>
|
|
65
75
|
<testCase name="StringUtils substitui vogais com acento por vogais sem acento" duration="1"/>
|
|
66
|
-
<testCase name="StringUtils should return the original value when called with an object without a toString method" duration="
|
|
67
|
-
<testCase name="StringUtils should return the original value when called with undefined" duration="
|
|
68
|
-
</file>
|
|
69
|
-
<file path="/builds/dti/design-system/sankhyacore/test/util/NumberUtils.spec.ts">
|
|
70
|
-
<testCase name="StringUtils stringToNumber" duration="12"/>
|
|
71
|
-
<testCase name="StringUtils format" duration="98"/>
|
|
72
|
-
<testCase name="StringUtils format without formatnumber parameter" duration="1"/>
|
|
73
|
-
<testCase name="StringUtils format without formatnumber parameter" duration="1"/>
|
|
74
|
-
<testCase name="StringUtils format round number" duration="1"/>
|
|
76
|
+
<testCase name="StringUtils should return the original value when called with an object without a toString method" duration="3"/>
|
|
77
|
+
<testCase name="StringUtils should return the original value when called with undefined" duration="0"/>
|
|
75
78
|
</file>
|
|
76
79
|
<file path="/builds/dti/design-system/sankhyacore/test/util/OverflowWatcher.spec.ts">
|
|
77
|
-
<testCase name="OverflowWatcher should initialize with provided parameters" duration="
|
|
78
|
-
<testCase name="OverflowWatcher should disconect ResizeObserver when destroy is called" duration="
|
|
79
|
-
<testCase name="OverflowWatcher Should call callback on forceUpdate" duration="
|
|
80
|
-
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan" duration="
|
|
81
|
-
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan when notOverFlow is empty" duration="
|
|
80
|
+
<testCase name="OverflowWatcher should initialize with provided parameters" duration="90"/>
|
|
81
|
+
<testCase name="OverflowWatcher should disconect ResizeObserver when destroy is called" duration="2"/>
|
|
82
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate" duration="295"/>
|
|
83
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan" duration="14"/>
|
|
84
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan when notOverFlow is empty" duration="86"/>
|
|
82
85
|
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan considering overflowed elements" duration="6"/>
|
|
83
86
|
<testCase name="OverflowWatcher Should call callback on forceUpdate with empty list" duration="4"/>
|
|
84
|
-
<testCase name="OverflowWatcher should ignore elements that can not overflow" duration="
|
|
85
|
-
<testCase name="OverflowWatcher Should not call callback on forceUpdate" duration="
|
|
87
|
+
<testCase name="OverflowWatcher should ignore elements that can not overflow" duration="107"/>
|
|
88
|
+
<testCase name="OverflowWatcher Should not call callback on forceUpdate" duration="1"/>
|
|
86
89
|
</file>
|
|
87
|
-
<file path="/builds/dti/design-system/sankhyacore/test/http/
|
|
88
|
-
<testCase name="HttpProvider Metodo
|
|
90
|
+
<file path="/builds/dti/design-system/sankhyacore/test/http/SkwHttpProvider.ts.spec.ts">
|
|
91
|
+
<testCase name="HttpProvider Metodo POST" duration="1"/>
|
|
89
92
|
</file>
|
|
90
93
|
<file path="/builds/dti/design-system/sankhyacore/test/util/CriteriaParameter.spec.ts">
|
|
91
94
|
<testCase name="StringUtils it should return the correct values of "value" and "type" through the getters methods initial setted by the constructor" duration="2"/>
|
|
92
|
-
<testCase name="StringUtils it should return the correct values of "value" and "type" through the getters methods initial setted by the setters methods" duration="
|
|
95
|
+
<testCase name="StringUtils it should return the correct values of "value" and "type" through the getters methods initial setted by the setters methods" duration="77"/>
|
|
93
96
|
<testCase name="StringUtils it should return the correct JSON/Object value through the buildParam method" duration="1"/>
|
|
94
97
|
</file>
|
|
95
|
-
<file path="/builds/dti/design-system/sankhyacore/test/http/SkwHttpProvider.ts.spec.ts">
|
|
96
|
-
<testCase name="HttpProvider Metodo POST" duration="0"/>
|
|
97
|
-
</file>
|
|
98
98
|
<file path="/builds/dti/design-system/sankhyacore/test/util/TimeFormatter.spec.ts">
|
|
99
99
|
<testCase name="TimeFormatter Case: input string unformated with showSeconds" duration="2"/>
|
|
100
100
|
<testCase name="TimeFormatter Case: input string unformated without showSeconds" duration="1"/>
|
|
101
|
-
<testCase name="TimeFormatter Case: validateTime" duration="
|
|
101
|
+
<testCase name="TimeFormatter Case: validateTime" duration="1"/>
|
|
102
102
|
</file>
|
|
103
103
|
<file path="/builds/dti/design-system/sankhyacore/src/dataunit/state/slice/test/RecordsSlice.spec.ts">
|
|
104
104
|
<testCase name="RecordsSlice should return newlines at the end" duration="2"/>
|
|
105
105
|
</file>
|
|
106
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="
|
|
107
|
+
<testCase name="DataUnitStorage put should store a DataUnit instance in the DataUnitStorage" duration="2"/>
|
|
108
108
|
<testCase name="DataUnitStorage get should return the stored DataUnit instance from the DataUnitStorage" duration="1"/>
|
|
109
|
-
<testCase name="DataUnitStorage get should return undefined if the DataUnit instance is not found in the DataUnitStorage" duration="
|
|
110
|
-
<testCase name="DataUnitStorage remove should remove the specified 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="0"/>
|
|
110
|
+
<testCase name="DataUnitStorage remove should remove the specified DataUnit instance from the DataUnitStorage" duration="1"/>
|
|
111
111
|
<testCase name="DataUnitStorage remove should remove the DataUnit instance with the specified name from the DataUnitStorage" duration="1"/>
|
|
112
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
113
|
</file>
|
|
114
114
|
<file path="/builds/dti/design-system/sankhyacore/src/dataunit/test/DataUnit.spec.ts">
|
|
115
|
-
<testCase name="DataUnit should return false when not waiting to reload" duration="
|
|
115
|
+
<testCase name="DataUnit should return false when not waiting to reload" duration="1"/>
|
|
116
116
|
<testCase name="DataUnit should set waitingToReload to true" duration="0"/>
|
|
117
117
|
<testCase name="DataUnit should set waitingToReload to false" duration="1"/>
|
|
118
118
|
<testCase name="DataUnit should dispatch SAVING_CANCELED action with correct fields and recordId" duration="0"/>
|
|
119
119
|
</file>
|
|
120
120
|
<file path="/builds/dti/design-system/sankhyacore/test/util/ElementIDUtils.spec.ts">
|
|
121
|
-
<testCase name="addIDInfo 1 - should add data-element-id with valid id "movFinanceira_snkApplication"" duration="
|
|
122
|
-
<testCase name="addIDInfo 2 - should add data-element-id with valid id "brComSankhyaFinCadMovimentacaofinanceira_snkApplication"" duration="
|
|
123
|
-
<testCase name="addIDInfo 3 - should add data-element-id with valid id "movFinanceira_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="
|
|
124
|
-
<testCase name="addIDInfo 4 - should add data-element-id with valid id "meuID2_snkApplication"" duration="
|
|
125
|
-
<testCase name="addIDInfo 5 - 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="81"/>
|
|
122
|
+
<testCase name="addIDInfo 2 - should add data-element-id with valid id "brComSankhyaFinCadMovimentacaofinanceira_snkApplication"" duration="5"/>
|
|
123
|
+
<testCase name="addIDInfo 3 - should add data-element-id with valid id "movFinanceira_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="2"/>
|
|
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="1"/>
|
|
126
126
|
<testCase name="addIDInfo 6 - should add data-element-id with valid id "movFinanceira_snkApplication"" duration="1"/>
|
|
127
|
-
<testCase name="addIDInfo 7 - should add data-element-id with valid id "componenteNameTest_snkApplication"" duration="
|
|
128
|
-
<testCase name="addIDInfo 8 - should add data-element-id with valid id "componentLabel_snkApplication"" duration="
|
|
127
|
+
<testCase name="addIDInfo 7 - should add data-element-id with valid id "componenteNameTest_snkApplication"" duration="0"/>
|
|
128
|
+
<testCase name="addIDInfo 8 - should add data-element-id with valid id "componentLabel_snkApplication"" duration="0"/>
|
|
129
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="
|
|
131
|
-
<testCase name="addIDInfo 11 - should add data-element-id with valid id "dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira"" duration="
|
|
130
|
+
<testCase name="addIDInfo 10 - should add data-element-id with valid id "dataunitFinanceiro_meuIDTeste_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="74"/>
|
|
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="
|
|
135
|
-
<testCase name="addIDInfo 15 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_snkApplication"" duration="
|
|
134
|
+
<testCase name="addIDInfo 14 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_movimentacaoFinanceira"" duration="1"/>
|
|
135
|
+
<testCase name="addIDInfo 15 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_snkApplication"" duration="8"/>
|
|
136
136
|
<testCase name="addIDInfo 16 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_snkApplication"" duration="2"/>
|
|
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="0"/>
|
|
139
139
|
<testCase name="addIDInfo 19 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="1"/>
|
|
140
140
|
<testCase name="addIDInfo 20 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="1"/>
|
|
141
141
|
<testCase name="addIDInfo 21 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="1"/>
|
|
142
|
-
<testCase name="addIDInfo 22 - should add data-element-id with valid id "bancoObrigatorio_movimentacaoFinanceira"" duration="
|
|
142
|
+
<testCase name="addIDInfo 22 - should add data-element-id with valid id "bancoObrigatorio_movimentacaoFinanceira"" duration="2"/>
|
|
143
143
|
</file>
|
|
144
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="
|
|
145
|
+
<testCase name="calcMarginSize should calculate correctly the size of horizontal margin" duration="68"/>
|
|
146
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="
|
|
147
|
+
<testCase name="calcMarginSize should threat values defined as zero" duration="3"/>
|
|
148
148
|
</file>
|
|
149
149
|
<file path="/builds/dti/design-system/sankhyacore/test/dataunit/formatting/PrettyFormatter.spec.ts">
|
|
150
|
-
<testCase name="getFormattedValue should return empty string when value is null" duration="
|
|
151
|
-
<testCase name="getFormattedValue should return empty string when value is not an array" duration="
|
|
152
|
-
<testCase name="getFormattedValue should return empty string when value is an empty array" duration="
|
|
150
|
+
<testCase name="getFormattedValue should return empty string when value is null" duration="4"/>
|
|
151
|
+
<testCase name="getFormattedValue should return empty string when value is not an array" duration="0"/>
|
|
152
|
+
<testCase name="getFormattedValue should return empty string when value is an empty array" duration="0"/>
|
|
153
153
|
<testCase name="getFormattedValue should return file name when value is an array with one file object" duration="1"/>
|
|
154
|
-
<testCase name="getFormattedValue should return file count when value is an array with multiple file objects" duration="
|
|
155
|
-
<testCase name="getFormattedValue should return empty string for undefined file" duration="
|
|
156
|
-
<testCase name="getFormattedValue should handle OBJECT type with value field" duration="
|
|
157
|
-
<testCase name="getFormattedValue should return empty string when value is undefined" duration="
|
|
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"/>
|
|
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
158
|
<testCase name="getFormattedValue should return value as string when value is not an object" duration="1"/>
|
|
159
|
-
<testCase name="getFormattedValue should return value.toString() when value is an object without value property" duration="
|
|
159
|
+
<testCase name="getFormattedValue should return value.toString() when value is an object without value property" duration="0"/>
|
|
160
160
|
<testCase name="getFormattedValue should handle BOOLEAN type" duration="1"/>
|
|
161
|
-
<testCase name="getFormattedValue should format numbers correctly" duration="
|
|
162
|
-
<testCase name="getFormattedValue should format dates correctly" duration="
|
|
161
|
+
<testCase name="getFormattedValue should format numbers correctly" duration="17"/>
|
|
162
|
+
<testCase name="getFormattedValue should format dates correctly" duration="8"/>
|
|
163
163
|
<testCase name="getFormattedValue should format times correctly" duration="0"/>
|
|
164
164
|
<testCase name="getFormattedValue should format datetime correctly" duration="1"/>
|
|
165
165
|
<testCase name="getFormattedValue should call toString with correct parameters" duration="1"/>
|
|
166
|
-
<testCase name="getFormattedValue should handle undefined descriptor gracefully" duration="
|
|
167
|
-
<testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and matching option" duration="
|
|
166
|
+
<testCase name="getFormattedValue should handle undefined descriptor gracefully" duration="0"/>
|
|
167
|
+
<testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and matching option" duration="1"/>
|
|
168
168
|
<testCase name="getFormattedValue should return value with OPTIONSELECTOR and no matching option" duration="0"/>
|
|
169
169
|
<testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and value as object" duration="0"/>
|
|
170
|
-
<testCase name="getFormattedValue should return empty string with OPTIONSELECTOR and value as null" duration="
|
|
171
|
-
<testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and options as JSON string" duration="
|
|
172
|
-
<testCase name="getFormattedValue should return value with OPTIONSELECTOR and options as empty array" duration="
|
|
170
|
+
<testCase name="getFormattedValue should return empty string with OPTIONSELECTOR and value as null" duration="1"/>
|
|
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
173
|
<testCase name="getFormattedValue should format masked values correctly" duration="1"/>
|
|
174
174
|
</file>
|
|
175
175
|
</unitTest>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import DateUtils from '../../utils/DateUtils.js';
|
|
2
2
|
import { MaskFormatter } from '../../utils/MaskFormatter.js';
|
|
3
3
|
import { NumberUtils } from '../../utils/NumberUtils.js';
|
|
4
|
+
import { TimeFormatter } from '../../utils/TimeFormatter.js';
|
|
4
5
|
import { DataType, toString } from '../metadata/DataType.js';
|
|
5
6
|
import { FieldDescriptor, UserInterface } from '../metadata/UnitMetadata.js';
|
|
6
7
|
|
|
@@ -39,6 +40,10 @@ export const getFormattedValue = (value: any, descriptor?: FieldDescriptor) => {
|
|
|
39
40
|
return DateUtils.formatTime(value);
|
|
40
41
|
}
|
|
41
42
|
|
|
43
|
+
if(descriptor?.userInterface === UserInterface.ELAPSEDTIME){
|
|
44
|
+
return TimeFormatter.prepareValue(value, true);
|
|
45
|
+
}
|
|
46
|
+
|
|
42
47
|
if(descriptor?.userInterface === UserInterface.DATETIME){
|
|
43
48
|
return DateUtils.formatDateTime(value);
|
|
44
49
|
}
|