@sankhyalabs/core 5.20.0-dev.12 → 5.20.0-dev.14

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.
@@ -44,6 +44,8 @@ export const getFormattedValue = (value, descriptor) => {
44
44
  };
45
45
  const getNumberFormat = (value, descriptor) => {
46
46
  var _a, _b;
47
+ if (!value)
48
+ return "";
47
49
  if (descriptor.userInterface === UserInterface.INTEGERNUMBER) {
48
50
  return value;
49
51
  }
@@ -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,CAAC;AAE7E,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAU,EAAE,UAA4B,EAAE,EAAE;IAC1E,IAAG,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,aAAa,MAAK,aAAa,CAAC,IAAI,EAAC;QAChD,OAAO,aAAa,CAAC,KAAK,CAAC,CAAC;KAC/B;IAED,IAAG,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,QAAQ,MAAK,QAAQ,CAAC,MAAM,EAAC;QACxC,IAAG,KAAK,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,EAAC;YACtC,OAAO,eAAe,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;SAC7C;QACD,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;KACzC;IAED,IA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C,CAAC,CAAC,CAAC,IAAI,CAAC;IAE7C,OAAO,GAAG,KAAK,CAAC,MAAM,WAAW,CAAC;AACtC,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sankhyalabs/core",
3
- "version": "5.20.0-dev.12",
3
+ "version": "5.20.0-dev.14",
4
4
  "description": "Modulo core JavaScript da Sankhya.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -0,0 +1,116 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <unitTest version="1">
3
+ <file path="/builds/dti/design-system/sankhyacore/test/http/SkwHttpProvider.ts.spec.ts">
4
+ <testCase name="HttpProvider Metodo POST" duration="65"/>
5
+ </file>
6
+ <file path="/builds/dti/design-system/sankhyacore/test/http/HttpProvider.spec.ts">
7
+ <testCase name="HttpProvider Metodo GET" duration="209"/>
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 &quot;value&quot; and &quot;type&quot; through the getters methods initial setted by the constructor" duration="7"/>
11
+ <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"/>
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/CriteriaModel.spec.ts">
15
+ <testCase name="StringUtils it should return the undefined and [] to Criteria Props through new class with empty constructor" duration="87"/>
16
+ <testCase name="StringUtils it should modify &quot;expressions&quot; and &quot;parameters&quot; properties through Setters methods" duration="1"/>
17
+ <testCase name="StringUtils it should return &quot;expression&quot; and &quot;parameters&quot; setted through constructor method" duration="0"/>
18
+ <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"/>
19
+ <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"/>
20
+ <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"/>
21
+ <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="5"/>
22
+ <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"/>
23
+ <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"/>
24
+ <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="4"/>
25
+ <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"/>
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;AND&quot; method" duration="1"/>
27
+ <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"/>
28
+ <testCase name="StringUtils it should return a toJSON object with through empty constructor" duration="87"/>
29
+ </file>
30
+ <file path="/builds/dti/design-system/sankhyacore/test/util/TimeFormatter.spec.ts">
31
+ <testCase name="TimeFormatter Case: input string unformated with showSeconds" duration="7"/>
32
+ <testCase name="TimeFormatter Case: input string unformated without showSeconds" duration="73"/>
33
+ <testCase name="TimeFormatter Case: validateTime" duration="1"/>
34
+ </file>
35
+ <file path="/builds/dti/design-system/sankhyacore/test/util/OverflowWatcher.spec.ts">
36
+ <testCase name="OverflowWatcher constructor initializes properties correctly" duration="16"/>
37
+ <testCase name="OverflowWatcher handleResize horizontal calls callback with hidden items" duration="290"/>
38
+ <testCase name="OverflowWatcher handleResize vertical calls callback with hidden items" duration="8"/>
39
+ <testCase name="OverflowWatcher isChangedSize returns true if no previous size" duration="2"/>
40
+ <testCase name="OverflowWatcher prevent resize without entries" duration="2"/>
41
+ </file>
42
+ <file path="/builds/dti/design-system/sankhyacore/test/util/StringUtils.spec.ts">
43
+ <testCase name="StringUtils valor vazio" duration="6"/>
44
+ <testCase name="StringUtils valor em branco" duration="72"/>
45
+ <testCase name="StringUtils valor null" duration="0"/>
46
+ <testCase name="StringUtils valor undefined" duration="1"/>
47
+ <testCase name="StringUtils valor 0" duration="1"/>
48
+ <testCase name="StringUtils com valor" duration="1"/>
49
+ <testCase name="StringUtils substitui vogais com acento por vogais sem acento" duration="1"/>
50
+ <testCase name="StringUtils should return the original value when called with an object without a toString method" duration="3"/>
51
+ <testCase name="StringUtils should return the original value when called with undefined" duration="0"/>
52
+ </file>
53
+ <file path="/builds/dti/design-system/sankhyacore/test/util/NumberUtils.spec.ts">
54
+ <testCase name="StringUtils stringToNumber" duration="15"/>
55
+ <testCase name="StringUtils format" duration="95"/>
56
+ <testCase name="StringUtils format without formatnumber parameter" duration="1"/>
57
+ <testCase name="StringUtils format without formatnumber parameter" duration="1"/>
58
+ <testCase name="StringUtils format round number" duration="2"/>
59
+ </file>
60
+ <file path="/builds/dti/design-system/sankhyacore/test/util/MaskFormatter.spec.ts">
61
+ <testCase name="Mask Formatter mask:CPF complete valid" duration="6"/>
62
+ <testCase name="Mask Formatter mask:CPF complete valid literals" duration="1"/>
63
+ <testCase name="Mask Formatter mask:CPF incomplete valid" duration="0"/>
64
+ <testCase name="Mask Formatter mask:CPF incomplete valid placeholder" duration="70"/>
65
+ <testCase name="Mask Formatter mask:CPF too long valid" duration="1"/>
66
+ <testCase name="Mask Formatter mask:CPF invalid for string" duration="23"/>
67
+ <testCase name="Mask Formatter mask:CPF invalid for being too long" duration="0"/>
68
+ <testCase name="Mask Formatter mask:Licence plate valid uppercase" duration="1"/>
69
+ <testCase name="Mask Formatter mask:Licence plate valid lowercase" duration="0"/>
70
+ <testCase name="Mask Formatter mask:Licence plate invalid" duration="2"/>
71
+ <testCase name="Mask Formatter mask:Licence plate invalid for being too short" duration="1"/>
72
+ <testCase name="Mask Formatter mask:Licence plate invalid for being too short with placeholder" duration="0"/>
73
+ <testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
74
+ <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="0"/>
75
+ <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="1"/>
76
+ <testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
77
+ <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
78
+ <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="0"/>
79
+ <testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
80
+ <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
81
+ <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="0"/>
82
+ <testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
83
+ </file>
84
+ <file path="/builds/dti/design-system/sankhyacore/test/util/DataUnitStorage.spec.ts">
85
+ <testCase name="DataUnitStorage put should store a DataUnit instance in the DataUnitStorage" duration="5"/>
86
+ <testCase name="DataUnitStorage get should return the stored DataUnit instance from the DataUnitStorage" duration="1"/>
87
+ <testCase name="DataUnitStorage get should return undefined if the DataUnit instance is not found in the DataUnitStorage" duration="1"/>
88
+ <testCase name="DataUnitStorage remove should remove the specified DataUnit instance from the DataUnitStorage" duration="0"/>
89
+ <testCase name="DataUnitStorage remove should remove the DataUnit instance with the specified name from the DataUnitStorage" duration="1"/>
90
+ <testCase name="DataUnitStorage remove should not remove any DataUnit instance if the specified DataUnit instance or name is not found in the DataUnitStorage" duration="0"/>
91
+ </file>
92
+ <file path="/builds/dti/design-system/sankhyacore/test/util/ElementIDUtils.spec.ts">
93
+ <testCase name="addIDInfo 1 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="12"/>
94
+ <testCase name="addIDInfo 2 - should add data-element-id with valid id &quot;brComSankhyaFinCadMovimentacaofinanceira_snkApplication&quot;" duration="2"/>
95
+ <testCase name="addIDInfo 3 - should add data-element-id with valid id &quot;movFinanceira_br.com.sankhya.fin.cad.movimentacaoFinanceira&quot;" duration="1"/>
96
+ <testCase name="addIDInfo 4 - should add data-element-id with valid id &quot;meuID2_snkApplication&quot;" duration="1"/>
97
+ <testCase name="addIDInfo 5 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="1"/>
98
+ <testCase name="addIDInfo 6 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="2"/>
99
+ <testCase name="addIDInfo 7 - should add data-element-id with valid id &quot;componenteNameTest_snkApplication&quot;" duration="1"/>
100
+ <testCase name="addIDInfo 8 - should add data-element-id with valid id &quot;componentLabel_snkApplication&quot;" duration="1"/>
101
+ <testCase name="addIDInfo 9 - should add data-element-id with valid id &quot;dataunitFinanceiro_br.com.sankhya.fin.cad.movimentacaoFinanceira&quot;" duration="1"/>
102
+ <testCase name="addIDInfo 10 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIDTeste_br.com.sankhya.fin.cad.movimentacaoFinanceira&quot;" duration="40"/>
103
+ <testCase name="addIDInfo 11 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira&quot;" duration="2"/>
104
+ <testCase name="addIDInfo 12 - should add data-element-id with valid id &quot;dataunitFinanceiro_movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
105
+ <testCase name="addIDInfo 13 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira&quot;" duration="1"/>
106
+ <testCase name="addIDInfo 14 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIdTeste_movimentacaoFinanceira&quot;" duration="6"/>
107
+ <testCase name="addIDInfo 15 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIdTeste_snkApplication&quot;" duration="1"/>
108
+ <testCase name="addIDInfo 16 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIdTeste_snkApplication&quot;" duration="1"/>
109
+ <testCase name="addIDInfo 17 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
110
+ <testCase name="addIDInfo 18 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
111
+ <testCase name="addIDInfo 19 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
112
+ <testCase name="addIDInfo 20 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
113
+ <testCase name="addIDInfo 21 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
114
+ <testCase name="addIDInfo 22 - should add data-element-id with valid id &quot;bancoObrigatorio_movimentacaoFinanceira&quot;" duration="0"/>
115
+ </file>
116
+ </unitTest>
@@ -1,7 +1,9 @@
1
1
  sonar.testExecutionReportPaths=./reports/test-report.xml
2
2
  sonar.typescript.lcov.reportPaths=./coverage/lcov.info
3
- sonar.test.inclusions="**/test/*.e2e.ts","**/test/*.spec.ts","**/test/*.spec.tsx","**/utils/*.spec.ts"
4
- sonar.tests=.
3
+ sonar.test.inclusions=coverage/**,**/test/*.e2e.ts,**/test/*.spec.ts,**/test/*.spec.tsx,**/utils/*.spec.ts,**/test/**/*.ts
4
+ sonar.tests=test
5
5
  sonar.c.file.suffixes=-
6
6
  sonar.cpp.file.suffixes=-
7
- sonar.objc.file.suffixes=-
7
+ sonar.objc.file.suffixes=-
8
+ sonar.qualitygate.wait=true
9
+ sonar.host.url=http://sonarqube.sankhya.com.br
@@ -53,6 +53,7 @@ export const getFormattedValue = (value: any, descriptor?: FieldDescriptor) => {
53
53
  }
54
54
 
55
55
  const getNumberFormat = (value: any, descriptor: FieldDescriptor) => {
56
+ if(!value) return "";
56
57
  if(descriptor.userInterface === UserInterface.INTEGERNUMBER){
57
58
  return value;
58
59
  }
@@ -117,7 +117,7 @@ export default class OverflowWatcher {
117
117
  }
118
118
  }
119
119
 
120
-
120
+
121
121
  this._hiddenItems = elementsOverflow;
122
122
  this._onResize(elementsOverflow);
123
123
 
@@ -141,7 +141,7 @@ export default class OverflowWatcher {
141
141
  private calcMarginSize(el:Element){
142
142
  const computedStyle = getComputedStyle(el);
143
143
 
144
- if(OverflowDirection.HORIZONTAL === this._scrollDirection){
144
+ if(OverflowDirection.HORIZONTAL === this._scrollDirection){
145
145
  return (parseInt(computedStyle.marginLeft || '0') + parseInt(computedStyle.marginRight || '0'));
146
146
  }
147
147