@sankhyalabs/core 5.20.0-dev.43 → 5.20.0-dev.45

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.
@@ -40,7 +40,7 @@ Data a ser ajustada.
40
40
 
41
41
  #### Source
42
42
 
43
- src/utils/DateUtils.ts:136
43
+ src/utils/DateUtils.ts:139
44
44
 
45
45
  ***
46
46
 
@@ -130,7 +130,7 @@ define se devemos considerar os segundos.
130
130
 
131
131
  #### Source
132
132
 
133
- src/utils/DateUtils.ts:53
133
+ src/utils/DateUtils.ts:56
134
134
 
135
135
  ***
136
136
 
@@ -161,7 +161,7 @@ Informo: 2023-03-09 12:42:40 | Obtenho: 2023-03-09T12:42:47-03:00
161
161
 
162
162
  #### Source
163
163
 
164
- src/utils/DateUtils.ts:186
164
+ src/utils/DateUtils.ts:189
165
165
 
166
166
  ***
167
167
 
@@ -213,7 +213,7 @@ Caso true retorna a data com informações de horário.
213
213
 
214
214
  #### Source
215
215
 
216
- src/utils/DateUtils.ts:107
216
+ src/utils/DateUtils.ts:110
217
217
 
218
218
  ***
219
219
 
@@ -247,7 +247,7 @@ Informo: 2 | Obtenho: "02"
247
247
 
248
248
  #### Source
249
249
 
250
- src/utils/DateUtils.ts:155
250
+ src/utils/DateUtils.ts:158
251
251
 
252
252
  ***
253
253
 
@@ -279,7 +279,7 @@ Quando ativado, retorna o primeiro dia do mês apenas para construir a data.
279
279
 
280
280
  #### Source
281
281
 
282
- src/utils/DateUtils.ts:65
282
+ src/utils/DateUtils.ts:68
283
283
 
284
284
  ***
285
285
 
@@ -303,7 +303,7 @@ Timezone da data.
303
303
 
304
304
  #### Source
305
305
 
306
- src/utils/DateUtils.ts:165
306
+ src/utils/DateUtils.ts:168
307
307
 
308
308
  ***
309
309
 
@@ -331,4 +331,4 @@ Determina se a data retornada deve conter informação de horário ou não. Por
331
331
 
332
332
  #### Source
333
333
 
334
- src/utils/DateUtils.ts:124
334
+ src/utils/DateUtils.ts:127
@@ -36,6 +36,9 @@ export default class DateUtils {
36
36
  * @returns - Uma string com as horas no formato HH:MM ou HH:MM:SS.
37
37
  */
38
38
  static formatTime(date, showSeconds = false) {
39
+ if (date == null) {
40
+ return '';
41
+ }
39
42
  const timeOptions = { hour: "2-digit", minute: "2-digit", second: showSeconds ? "2-digit" : undefined };
40
43
  return new Intl.DateTimeFormat("pt-BR", timeOptions).format(date);
41
44
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DateUtils.js","sourceRoot":"","sources":["../../src/utils/DateUtils.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,SAAS;IAEzB;;;;;;;;MAQE;IACI,MAAM,CAAC,SAAS,CAAC,IAAS,EAAE,2BAAmC,IAAI;QACtE,MAAM,OAAO,GAAS,IAAI,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;QAChG,OAAO,wBAAwB,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;IAC9E,CAAC;IAED;;;;;;OAMG;IACI,MAAM,CAAC,UAAU,CAAC,IAAU,EAAE,OAAoC;QACrE,IAAG,OAAO,IAAI,KAAK,QAAQ,EAAC;YACxB,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACpF,CAAC;IAED;;;;;;OAMG;IACI,MAAM,CAAC,UAAU,CAAC,IAAU,EAAE,cAAuB,KAAK;QAC7D,MAAM,WAAW,GAA8B,EAAC,IAAI,EAAE,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,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;OAOG;IACI,MAAM,CAAC,aAAa,CAAC,IAAU;QAElC,OAAO,IAAI,CAAC,WAAW,EAAE,GAAG,GAAG;YAC3B,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,GAAG,GAAG;YACnC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,GAAG,GAAG;YAC9B,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,GAAG,GAAG;YAC/B,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,GAAG,GAAG;YACjC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YAC3B,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC,CAAC;IACtD,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sankhyalabs/core",
3
- "version": "5.20.0-dev.43",
3
+ "version": "5.20.0-dev.45",
4
4
  "description": "Modulo core JavaScript da Sankhya.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -1,165 +1,165 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <unitTest 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="7"/>
5
- <testCase name="ObjectUtils hasEquivalentValues should return false if both objects have different property values" duration="1"/>
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="0"/>
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="0"/>
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&apos;t exist in the object" duration="1"/>
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="18"/>
4
+ <testCase name="StringUtils it should return the undefined and [] to Criteria Props through new class with empty constructor" duration="181"/>
20
5
  <testCase name="StringUtils it should modify &quot;expressions&quot; and &quot;parameters&quot; properties through Setters methods" duration="1"/>
21
6
  <testCase name="StringUtils it should return &quot;expression&quot; and &quot;parameters&quot; setted through constructor method" duration="1"/>
22
7
  <testCase name="StringUtils it should return a Criteria class with &quot;expression&quot; and &quot;parameters&quot; as needed setted through &quot;append&quot; method" duration="1"/>
23
8
  <testCase name="StringUtils it should return a Criteria class with &quot;Criteria class&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;append&quot; method" duration="1"/>
24
9
  <testCase name="StringUtils it should return undefined as &quot;expression&quot; and &quot;[]&quot; as parameters as we use an empty criteria as first entry in the constructor" duration="0"/>
25
- <testCase name="StringUtils it should return a Criteria class with &quot;Expression&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;OR&quot; method" duration="0"/>
26
- <testCase name="StringUtils it should return a Criteria class with &quot;Criteria class&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;OR&quot; method" duration="0"/>
10
+ <testCase name="StringUtils it should return a Criteria class with &quot;Expression&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;OR&quot; method" duration="94"/>
27
11
  <testCase name="StringUtils it should return a Criteria class with &quot;Criteria class&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;OR&quot; method" duration="1"/>
28
- <testCase name="StringUtils it should return a Criteria class with &quot;Expression&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;AND&quot; method" duration="71"/>
29
- <testCase name="StringUtils it should return a Criteria class with &quot;Criteria class&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;AND&quot; method" duration="1"/>
12
+ <testCase name="StringUtils it should return a Criteria class with &quot;Criteria class&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;OR&quot; method" duration="1"/>
13
+ <testCase name="StringUtils it should return a Criteria class with &quot;Expression&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;AND&quot; method" duration="9"/>
14
+ <testCase name="StringUtils it should return a Criteria class with &quot;Criteria class&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;AND&quot; method" duration="2"/>
30
15
  <testCase name="StringUtils it should return a Criteria class with &quot;Criteria class&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;AND&quot; method" duration="1"/>
31
- <testCase name="StringUtils it should return a toJSON object with &quot;Criteria class&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;AND&quot; method" duration="1"/>
32
- <testCase name="StringUtils it should return a toJSON object with through empty constructor" duration="0"/>
16
+ <testCase name="StringUtils it should return a toJSON object with &quot;Criteria class&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;AND&quot; method" duration="3"/>
17
+ <testCase name="StringUtils it should return a toJSON object with through empty constructor" duration="1"/>
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="84"/>
21
+ <testCase name="ObjectUtils hasEquivalentValues should return false if both objects have different property values" duration="1"/>
22
+ <testCase name="ObjectUtils hasEquivalentValues should return true if both objects are equivalent with custom property to compare" duration="1"/>
23
+ <testCase name="ObjectUtils hasEquivalentValues should return false if both objects are not equivalent with custom property to compare" duration="1"/>
24
+ <testCase name="ObjectUtils hasEquivalentValues should return false if one object does not have the property" duration="80"/>
25
+ <testCase name="ObjectUtils hasEquivalentValues should return true if comparing primitive values directly" duration="1"/>
26
+ <testCase name="ObjectUtils hasEquivalentValues should return false if comparing different primitive values" duration="0"/>
27
+ <testCase name="ObjectUtils hasEquivalentValues should return true when comparing object with a null value" duration="8"/>
28
+ <testCase name="ObjectUtils hasEquivalentValues should return false when comparing object with null and non-null value" duration="0"/>
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&apos;t exist in the object" duration="1"/>
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="18"/>
35
+ <testCase name="Mask Formatter mask:CPF complete valid" duration="8"/>
36
36
  <testCase name="Mask Formatter mask:CPF complete valid literals" duration="1"/>
37
37
  <testCase name="Mask Formatter mask:CPF incomplete valid" duration="1"/>
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="107"/>
40
+ <testCase name="Mask Formatter mask:CPF invalid for string" duration="191"/>
41
41
  <testCase name="Mask Formatter mask:CPF invalid for being too long" duration="1"/>
42
- <testCase name="Mask Formatter mask:Licence plate valid uppercase" duration="3"/>
43
- <testCase name="Mask Formatter mask:Licence plate valid lowercase" duration="2"/>
44
- <testCase name="Mask Formatter mask:Licence plate invalid" duration="5"/>
42
+ <testCase name="Mask Formatter mask:Licence plate valid uppercase" duration="1"/>
43
+ <testCase name="Mask Formatter mask:Licence plate valid lowercase" duration="1"/>
44
+ <testCase name="Mask Formatter mask:Licence plate invalid" duration="2"/>
45
45
  <testCase name="Mask Formatter mask:Licence plate invalid for being too short" duration="1"/>
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="68"/>
48
- <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
46
+ <testCase name="Mask Formatter mask:Licence plate invalid for being too short with placeholder" duration="0"/>
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
49
  <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="1"/>
50
- <testCase name="Mask Formatter mask:Licence plate invalid" duration="5"/>
50
+ <testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
51
51
  <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="0"/>
52
52
  <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="0"/>
53
53
  <testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
54
- <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="0"/>
54
+ <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
55
55
  <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="1"/>
56
56
  <testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
57
57
  </file>
58
58
  <file path="/builds/dti/design-system/sankhyacore/test/http/HttpProvider.spec.ts">
59
59
  <testCase name="HttpProvider Metodo GET" duration="1"/>
60
60
  </file>
61
- <file path="/builds/dti/design-system/sankhyacore/test/util/NumberUtils.spec.ts">
62
- <testCase name="StringUtils stringToNumber" duration="92"/>
63
- <testCase name="StringUtils format" duration="184"/>
64
- <testCase name="StringUtils format without formatnumber parameter" duration="1"/>
65
- <testCase name="StringUtils format without formatnumber parameter" duration="1"/>
66
- <testCase name="StringUtils format round number" duration="2"/>
67
- </file>
68
61
  <file path="/builds/dti/design-system/sankhyacore/test/http/SkwHttpProvider.ts.spec.ts">
69
- <testCase name="HttpProvider Metodo POST" duration="6"/>
70
- </file>
71
- <file path="/builds/dti/design-system/sankhyacore/test/util/StringUtils.spec.ts">
72
- <testCase name="StringUtils valor vazio" duration="1"/>
73
- <testCase name="StringUtils valor em branco" duration="1"/>
74
- <testCase name="StringUtils valor null" duration="0"/>
75
- <testCase name="StringUtils valor undefined" duration="0"/>
76
- <testCase name="StringUtils valor 0" duration="0"/>
77
- <testCase name="StringUtils com valor" duration="7"/>
78
- <testCase name="StringUtils substitui vogais com acento por vogais sem acento" duration="2"/>
79
- <testCase name="StringUtils should return the original value when called with an object without a toString method" duration="2"/>
80
- <testCase name="StringUtils should return the original value when called with undefined" duration="0"/>
62
+ <testCase name="HttpProvider Metodo POST" duration="1"/>
81
63
  </file>
82
64
  <file path="/builds/dti/design-system/sankhyacore/test/util/CriteriaParameter.spec.ts">
83
- <testCase name="StringUtils it should return the correct values of &quot;value&quot; and &quot;type&quot; through the getters methods initial setted by the constructor" duration="80"/>
84
- <testCase name="StringUtils it should return the correct values of &quot;value&quot; and &quot;type&quot; through the getters methods initial setted by the setters methods" duration="1"/>
85
- <testCase name="StringUtils it should return the correct JSON/Object value through the buildParam method" duration="1"/>
65
+ <testCase name="StringUtils it should return the correct values of &quot;value&quot; and &quot;type&quot; through the getters methods initial setted by the constructor" duration="1"/>
66
+ <testCase name="StringUtils it should return the correct values of &quot;value&quot; and &quot;type&quot; through the getters methods initial setted by the setters methods" duration="85"/>
67
+ <testCase name="StringUtils it should return the correct JSON/Object value through the buildParam method" duration="0"/>
86
68
  </file>
87
69
  <file path="/builds/dti/design-system/sankhyacore/test/util/OverflowWatcher.spec.ts">
88
- <testCase name="OverflowWatcher should initialize with provided parameters" duration="75"/>
89
- <testCase name="OverflowWatcher should disconect ResizeObserver when destroy is called" duration="3"/>
90
- <testCase name="OverflowWatcher Should call callback on forceUpdate" duration="137"/>
91
- <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan" duration="95"/>
92
- <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan when notOverFlow is empty" duration="11"/>
93
- <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan considering overflowed elements" duration="7"/>
94
- <testCase name="OverflowWatcher Should call callback on forceUpdate with empty list" duration="5"/>
95
- <testCase name="OverflowWatcher should ignore elements that can not overflow" duration="176"/>
70
+ <testCase name="OverflowWatcher should initialize with provided parameters" duration="8"/>
71
+ <testCase name="OverflowWatcher should disconect ResizeObserver when destroy is called" duration="1"/>
72
+ <testCase name="OverflowWatcher Should call callback on forceUpdate" duration="207"/>
73
+ <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan" duration="170"/>
74
+ <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan when notOverFlow is empty" duration="15"/>
75
+ <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan considering overflowed elements" duration="9"/>
76
+ <testCase name="OverflowWatcher Should call callback on forceUpdate with empty list" duration="74"/>
77
+ <testCase name="OverflowWatcher should ignore elements that can not overflow" duration="18"/>
96
78
  <testCase name="OverflowWatcher Should not call callback on forceUpdate" duration="1"/>
97
79
  </file>
80
+ <file path="/builds/dti/design-system/sankhyacore/test/util/StringUtils.spec.ts">
81
+ <testCase name="StringUtils valor vazio" duration="0"/>
82
+ <testCase name="StringUtils valor em branco" duration="0"/>
83
+ <testCase name="StringUtils valor null" duration="0"/>
84
+ <testCase name="StringUtils valor undefined" duration="1"/>
85
+ <testCase name="StringUtils valor 0" duration="0"/>
86
+ <testCase name="StringUtils com valor" duration="0"/>
87
+ <testCase name="StringUtils substitui vogais com acento por vogais sem acento" duration="1"/>
88
+ <testCase name="StringUtils should return the original value when called with an object without a toString method" duration="3"/>
89
+ <testCase name="StringUtils should return the original value when called with undefined" duration="65"/>
90
+ </file>
91
+ <file path="/builds/dti/design-system/sankhyacore/test/util/NumberUtils.spec.ts">
92
+ <testCase name="StringUtils stringToNumber" duration="169"/>
93
+ <testCase name="StringUtils format" duration="19"/>
94
+ <testCase name="StringUtils format without formatnumber parameter" duration="1"/>
95
+ <testCase name="StringUtils format without formatnumber parameter" duration="2"/>
96
+ <testCase name="StringUtils format round number" duration="2"/>
97
+ </file>
98
98
  <file path="/builds/dti/design-system/sankhyacore/test/util/TimeFormatter.spec.ts">
99
- <testCase name="TimeFormatter Case: input string unformated with showSeconds" duration="128"/>
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
101
  <testCase name="TimeFormatter Case: validateTime" duration="1"/>
102
102
  </file>
103
103
  <file path="/builds/dti/design-system/sankhyacore/test/util/DataUnitStorage.spec.ts">
104
104
  <testCase name="DataUnitStorage put should store a DataUnit instance in the DataUnitStorage" duration="3"/>
105
- <testCase name="DataUnitStorage get should return the stored DataUnit instance from the DataUnitStorage" duration="0"/>
105
+ <testCase name="DataUnitStorage get should return the stored DataUnit instance from the DataUnitStorage" duration="1"/>
106
106
  <testCase name="DataUnitStorage get should return undefined if the DataUnit instance is not found in the DataUnitStorage" duration="1"/>
107
- <testCase name="DataUnitStorage remove should remove the specified DataUnit instance from the DataUnitStorage" duration="2"/>
107
+ <testCase name="DataUnitStorage remove should remove the specified DataUnit instance from the DataUnitStorage" duration="0"/>
108
108
  <testCase name="DataUnitStorage remove should remove the DataUnit instance with the specified name from the DataUnitStorage" duration="1"/>
109
109
  <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"/>
110
110
  </file>
111
111
  <file path="/builds/dti/design-system/sankhyacore/test/util/ElementIDUtils.spec.ts">
112
- <testCase name="addIDInfo 1 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="21"/>
113
- <testCase name="addIDInfo 2 - should add data-element-id with valid id &quot;brComSankhyaFinCadMovimentacaofinanceira_snkApplication&quot;" duration="2"/>
112
+ <testCase name="addIDInfo 1 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="14"/>
113
+ <testCase name="addIDInfo 2 - should add data-element-id with valid id &quot;brComSankhyaFinCadMovimentacaofinanceira_snkApplication&quot;" duration="62"/>
114
114
  <testCase name="addIDInfo 3 - should add data-element-id with valid id &quot;movFinanceira_br.com.sankhya.fin.cad.movimentacaoFinanceira&quot;" duration="2"/>
115
- <testCase name="addIDInfo 4 - should add data-element-id with valid id &quot;meuID2_snkApplication&quot;" duration="1"/>
116
- <testCase name="addIDInfo 5 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="2"/>
117
- <testCase name="addIDInfo 6 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="1"/>
115
+ <testCase name="addIDInfo 4 - should add data-element-id with valid id &quot;meuID2_snkApplication&quot;" duration="2"/>
116
+ <testCase name="addIDInfo 5 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="13"/>
117
+ <testCase name="addIDInfo 6 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="2"/>
118
118
  <testCase name="addIDInfo 7 - should add data-element-id with valid id &quot;componenteNameTest_snkApplication&quot;" duration="1"/>
119
119
  <testCase name="addIDInfo 8 - should add data-element-id with valid id &quot;componentLabel_snkApplication&quot;" duration="1"/>
120
- <testCase name="addIDInfo 9 - should add data-element-id with valid id &quot;dataunitFinanceiro_br.com.sankhya.fin.cad.movimentacaoFinanceira&quot;" duration="5"/>
120
+ <testCase name="addIDInfo 9 - should add data-element-id with valid id &quot;dataunitFinanceiro_br.com.sankhya.fin.cad.movimentacaoFinanceira&quot;" duration="2"/>
121
121
  <testCase name="addIDInfo 10 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIDTeste_br.com.sankhya.fin.cad.movimentacaoFinanceira&quot;" duration="2"/>
122
122
  <testCase name="addIDInfo 11 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira&quot;" duration="1"/>
123
123
  <testCase name="addIDInfo 12 - should add data-element-id with valid id &quot;dataunitFinanceiro_movFinanceira_movimentacaoFinanceira&quot;" duration="2"/>
124
124
  <testCase name="addIDInfo 13 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira&quot;" duration="1"/>
125
- <testCase name="addIDInfo 14 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIdTeste_movimentacaoFinanceira&quot;" duration="48"/>
125
+ <testCase name="addIDInfo 14 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIdTeste_movimentacaoFinanceira&quot;" duration="2"/>
126
126
  <testCase name="addIDInfo 15 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIdTeste_snkApplication&quot;" duration="1"/>
127
- <testCase name="addIDInfo 16 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIdTeste_snkApplication&quot;" duration="1"/>
128
- <testCase name="addIDInfo 17 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
129
- <testCase name="addIDInfo 18 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="14"/>
130
- <testCase name="addIDInfo 19 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="3"/>
127
+ <testCase name="addIDInfo 16 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIdTeste_snkApplication&quot;" duration="2"/>
128
+ <testCase name="addIDInfo 17 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="65"/>
129
+ <testCase name="addIDInfo 18 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
130
+ <testCase name="addIDInfo 19 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
131
131
  <testCase name="addIDInfo 20 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
132
- <testCase name="addIDInfo 21 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="0"/>
133
- <testCase name="addIDInfo 22 - should add data-element-id with valid id &quot;bancoObrigatorio_movimentacaoFinanceira&quot;" duration="1"/>
132
+ <testCase name="addIDInfo 21 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
133
+ <testCase name="addIDInfo 22 - should add data-element-id with valid id &quot;bancoObrigatorio_movimentacaoFinanceira&quot;" duration="0"/>
134
134
  </file>
135
135
  <file path="/builds/dti/design-system/sankhyacore/test/util/ElementUtils.spec.ts">
136
- <testCase name="calcMarginSize should calculate correctly the size of horizontal margin" duration="28"/>
136
+ <testCase name="calcMarginSize should calculate correctly the size of horizontal margin" duration="46"/>
137
137
  <testCase name="calcMarginSize should calculate correctly the size of vertical margin" duration="2"/>
138
- <testCase name="calcMarginSize should threat values defined as zero" duration="3"/>
138
+ <testCase name="calcMarginSize should threat values defined as zero" duration="16"/>
139
139
  </file>
140
140
  <file path="/builds/dti/design-system/sankhyacore/test/dataunit/formatting/PrettyFormatter.spec.ts">
141
- <testCase name="getFormattedValue should return empty string when value is null" duration="6"/>
141
+ <testCase name="getFormattedValue should return empty string when value is null" duration="26"/>
142
142
  <testCase name="getFormattedValue should return empty string when value is not an array" duration="0"/>
143
143
  <testCase name="getFormattedValue should return empty string when value is an empty array" duration="1"/>
144
144
  <testCase name="getFormattedValue should return file name when value is an array with one file object" duration="0"/>
145
- <testCase name="getFormattedValue should return file count when value is an array with multiple file objects" duration="1"/>
145
+ <testCase name="getFormattedValue should return file count when value is an array with multiple file objects" duration="10"/>
146
146
  <testCase name="getFormattedValue should return empty string for undefined file" duration="1"/>
147
147
  <testCase name="getFormattedValue should handle OBJECT type with value field" duration="0"/>
148
- <testCase name="getFormattedValue should return empty string when value is undefined" duration="1"/>
148
+ <testCase name="getFormattedValue should return empty string when value is undefined" duration="0"/>
149
149
  <testCase name="getFormattedValue should return value as string when value is not an object" duration="0"/>
150
- <testCase name="getFormattedValue should return value.toString() when value is an object without value property" duration="1"/>
150
+ <testCase name="getFormattedValue should return value.toString() when value is an object without value property" duration="0"/>
151
151
  <testCase name="getFormattedValue should handle BOOLEAN type" duration="1"/>
152
152
  <testCase name="getFormattedValue should format numbers correctly" duration="17"/>
153
- <testCase name="getFormattedValue should format dates correctly" duration="20"/>
154
- <testCase name="getFormattedValue should format times correctly" duration="1"/>
155
- <testCase name="getFormattedValue should format datetime correctly" duration="0"/>
153
+ <testCase name="getFormattedValue should format dates correctly" duration="6"/>
154
+ <testCase name="getFormattedValue should format times correctly" duration="0"/>
155
+ <testCase name="getFormattedValue should format datetime correctly" duration="1"/>
156
156
  <testCase name="getFormattedValue should call toString with correct parameters" duration="1"/>
157
- <testCase name="getFormattedValue should handle undefined descriptor gracefully" duration="0"/>
158
- <testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and matching option" duration="1"/>
159
- <testCase name="getFormattedValue should return value with OPTIONSELECTOR and no matching option" duration="0"/>
157
+ <testCase name="getFormattedValue should handle undefined descriptor gracefully" duration="1"/>
158
+ <testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and matching option" duration="0"/>
159
+ <testCase name="getFormattedValue should return value with OPTIONSELECTOR and no matching option" duration="1"/>
160
160
  <testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and value as object" duration="0"/>
161
- <testCase name="getFormattedValue should return empty string with OPTIONSELECTOR and value as null" duration="1"/>
162
- <testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and options as JSON string" duration="0"/>
161
+ <testCase name="getFormattedValue should return empty string with OPTIONSELECTOR and value as null" duration="0"/>
162
+ <testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and options as JSON string" duration="1"/>
163
163
  <testCase name="getFormattedValue should return value with OPTIONSELECTOR and options as empty array" duration="0"/>
164
164
  <testCase name="getFormattedValue should format masked values correctly" duration="2"/>
165
165
  </file>
@@ -39,6 +39,9 @@ export default class DateUtils{
39
39
  * @returns - Uma string com as horas no formato HH:MM ou HH:MM:SS.
40
40
  */
41
41
  public static formatTime(date: Date, showSeconds: boolean = false): string{
42
+ if (date == null){
43
+ return '';
44
+ }
42
45
  const timeOptions:Intl.DateTimeFormatOptions = {hour: "2-digit", minute: "2-digit", second: showSeconds ? "2-digit" : undefined};
43
46
  return new Intl.DateTimeFormat("pt-BR", timeOptions).format(date);
44
47
  }