@sankhyalabs/core 5.20.0-dev.73 → 5.20.0-dev.74

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.
@@ -0,0 +1,13 @@
1
+ export default class Base64Utils {
2
+ /**
3
+ * Adiciona caracteres de quebra de linha ao hash64 que representa o recordId do registro.
4
+ * @param base64String - id do registro
5
+ */
6
+ static addBreakLineCharacters(base64String) {
7
+ var _a, _b;
8
+ const lineBreakPattern = /.{1,76}/g;
9
+ const result = (_b = (_a = base64String.match(lineBreakPattern)) === null || _a === void 0 ? void 0 : _a.join('\n')) !== null && _b !== void 0 ? _b : base64String;
10
+ return result.slice(0, 247) + '\n' + result.slice(247);
11
+ }
12
+ }
13
+ //# sourceMappingURL=Base64Utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Base64Utils.js","sourceRoot":"","sources":["../../src/utils/Base64Utils.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,WAAW;IAC9B;;;OAGG;IACI,MAAM,CAAC,sBAAsB,CAAC,YAAoB;;QACvD,MAAM,gBAAgB,GAAG,UAAU,CAAC;QACpC,MAAM,MAAM,GAAG,MAAA,MAAA,YAAY,CAAC,KAAK,CAAC,gBAAgB,CAAC,0CAAE,IAAI,CAAC,IAAI,CAAC,mCAAI,YAAY,CAAC;QAChF,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACzD,CAAC;CAGF"}
@@ -197,4 +197,10 @@ export declare class StringUtils {
197
197
  static removeSpecialCharacters(str: string): string;
198
198
  static getArgumentNumber(argument: String): number;
199
199
  static highlightValue(argument: String, matchFields: any, value: string, fieldMD: any, forceMatch: boolean): string;
200
+ /**
201
+ * Escapa caracteres especiais em uma string, usando sequencias de escape Unicode.
202
+ * @param str A string que deve sofrer alteração.
203
+ * @returns String com valores alterados.
204
+ */
205
+ static escapeString(str: string): string;
200
206
  }
@@ -469,5 +469,16 @@ export class StringUtils {
469
469
  }
470
470
  return valueAux;
471
471
  }
472
+ /**
473
+ * Escapa caracteres especiais em uma string, usando sequencias de escape Unicode.
474
+ * @param str A string que deve sofrer alteração.
475
+ * @returns String com valores alterados.
476
+ */
477
+ static escapeString(str) {
478
+ // eslint-disable-next-line no-control-regex
479
+ return str.replace(/[\u0000-\u001F\u007F-\uFFFF<>=&"']/g, (char) => {
480
+ return "\\u" + char.charCodeAt(0).toString(16).padStart(4, "0");
481
+ });
482
+ }
472
483
  }
473
484
  //# sourceMappingURL=StringUtils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StringUtils.js","sourceRoot":"","sources":["../../src/utils/StringUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,UAAU,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC;;GAEG;AACH,MAAM,OAAO,WAAW;IAEpB;;;;;;;MAOE;IACF,MAAM,CAAC,OAAO,CAAC,KAAU;QAErB,IAAI,KAAK,IAAI,SAAS,IAAI,KAAK,KAAK,IAAI,EAAE;YACtC,OAAO,IAAI,CAAC;SACf;QAED,KAAK,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;QACzB,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;QAErB,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;YACpB,OAAO,IAAI,CAAC;SACf;QAED,OAAO,KAAK,CAAC;IACjB,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,IAAS;QACrB,OAAO,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,YAAY,MAAM,CAAC;IAC9D,CAAC;IAGD;;;;;MAKE;IACF,MAAM,CAAC,4BAA4B,CAAC,IAAY;QAE5C,IAAG,CAAC,IAAI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,IAAI,KAAK,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC;wBAClD,IAAI,GAAG,GAAG,QAAQ,CAAC,SAAS,CAAC,cAAc,GAAG,SAAS,CAAC,CAAC;wBAEzD,QAAQ,GAAG,KAAK,GAAG,UAAU,GAAG,GAAG,CAAC;wBACpC,cAAc,GAAG,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;wBAEpD,SAAS,GAAG,WAAW,CAAC,mCAAmC,CAAC,QAAQ,CAAC,CAAC;qBACvE;iBACF;YACH,CAAC,CAAC,CAAC;SACJ;QAED,OAAO,QAAQ,CAAC;IACpB,CAAC;IAGH;;;;OAIG;IACI,MAAM,CAAC,YAAY,CAAC,GAAW;QACpC,4CAA4C;QAC5C,OAAO,GAAG,CAAC,OAAO,CAAC,qCAAqC,EAAE,CAAC,IAAI,EAAE,EAAE;YACjE,OAAO,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;QAClE,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sankhyalabs/core",
3
- "version": "5.20.0-dev.73",
3
+ "version": "5.20.0-dev.74",
4
4
  "description": "Modulo core JavaScript da Sankhya.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -1,215 +1,215 @@
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="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="1"/>
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="0"/>
11
+ <testCase name="ObjectUtils hasEquivalentValues should return true when comparing object with a null value" duration="1"/>
12
+ <testCase name="ObjectUtils hasEquivalentValues should return false when comparing object with null and non-null value" duration="0"/>
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="77"/>
15
+ <testCase name="ObjectUtils should get an object value based on its path" duration="1"/>
16
+ <testCase name="ObjectUtils should return undefined if the path doesn&apos;t exist in the object" duration="1"/>
17
+ </file>
3
18
  <file path="/builds/dti/design-system/sankhyacore/test/util/CriteriaModel.spec.ts">
4
- <testCase name="StringUtils it should return the undefined and [] to Criteria Props through new class with empty constructor" duration="74"/>
19
+ <testCase name="StringUtils it should return the undefined and [] to Criteria Props through new class with empty constructor" duration="181"/>
5
20
  <testCase name="StringUtils it should modify &quot;expressions&quot; and &quot;parameters&quot; properties through Setters methods" duration="1"/>
6
- <testCase name="StringUtils it should return &quot;expression&quot; and &quot;parameters&quot; setted through constructor method" duration="0"/>
21
+ <testCase name="StringUtils it should return &quot;expression&quot; and &quot;parameters&quot; setted through constructor method" duration="1"/>
7
22
  <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"/>
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"/>
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;append&quot; method" duration="2"/>
9
24
  <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="1"/>
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="1"/>
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="94"/>
11
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="1"/>
12
27
  <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="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="3"/>
14
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"/>
15
30
  <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"/>
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="82"/>
17
- <testCase name="StringUtils it should return a toJSON object with through empty constructor" duration="0"/>
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="1"/>
18
33
  </file>
19
- <file path="/builds/dti/design-system/sankhyacore/test/util/NumberUtils.spec.ts">
20
- <testCase name="StringUtils stringToNumber" duration="120"/>
21
- <testCase name="StringUtils format" duration="304"/>
22
- <testCase name="StringUtils format without formatnumber parameter" duration="0"/>
23
- <testCase name="StringUtils format without formatnumber parameter" duration="0"/>
24
- <testCase name="StringUtils format round number" duration="1"/>
34
+ <file path="/builds/dti/design-system/sankhyacore/test/http/HttpProvider.spec.ts">
35
+ <testCase name="HttpProvider Metodo GET" duration="0"/>
36
+ </file>
37
+ <file path="/builds/dti/design-system/sankhyacore/test/util/OverflowWatcher.spec.ts">
38
+ <testCase name="OverflowWatcher should initialize with provided parameters" duration="10"/>
39
+ <testCase name="OverflowWatcher should disconect ResizeObserver when destroy is called" duration="3"/>
40
+ <testCase name="OverflowWatcher Should call callback on forceUpdate" duration="315"/>
41
+ <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan" duration="96"/>
42
+ <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan when notOverFlow is empty" duration="92"/>
43
+ <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan considering overflowed elements" duration="7"/>
44
+ <testCase name="OverflowWatcher Should call callback on forceUpdate with empty list" duration="3"/>
45
+ <testCase name="OverflowWatcher should ignore elements that can not overflow" duration="201"/>
46
+ <testCase name="OverflowWatcher Should not call callback on forceUpdate" duration="1"/>
47
+ </file>
48
+ <file path="/builds/dti/design-system/sankhyacore/test/http/SkwHttpProvider.ts.spec.ts">
49
+ <testCase name="HttpProvider Metodo POST" duration="1"/>
25
50
  </file>
26
51
  <file path="/builds/dti/design-system/sankhyacore/test/util/MaskFormatter.spec.ts">
27
- <testCase name="Mask Formatter mask:CPF complete valid" duration="2"/>
52
+ <testCase name="Mask Formatter mask:CPF complete valid" duration="92"/>
28
53
  <testCase name="Mask Formatter mask:CPF complete valid literals" duration="1"/>
29
- <testCase name="Mask Formatter mask:CPF incomplete valid" duration="0"/>
54
+ <testCase name="Mask Formatter mask:CPF incomplete valid" duration="1"/>
30
55
  <testCase name="Mask Formatter mask:CPF incomplete valid placeholder" duration="1"/>
31
- <testCase name="Mask Formatter mask:CPF too long valid" duration="0"/>
32
- <testCase name="Mask Formatter mask:CPF invalid for string" duration="111"/>
33
- <testCase name="Mask Formatter mask:CPF invalid for being too long" duration="1"/>
34
- <testCase name="Mask Formatter mask:Licence plate valid uppercase" duration="73"/>
35
- <testCase name="Mask Formatter mask:Licence plate valid lowercase" duration="0"/>
36
- <testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
37
- <testCase name="Mask Formatter mask:Licence plate invalid for being too short" duration="0"/>
38
- <testCase name="Mask Formatter mask:Licence plate invalid for being too short with placeholder" duration="1"/>
56
+ <testCase name="Mask Formatter mask:CPF too long valid" duration="1"/>
57
+ <testCase name="Mask Formatter mask:CPF invalid for string" duration="140"/>
58
+ <testCase name="Mask Formatter mask:CPF invalid for being too long" duration="0"/>
59
+ <testCase name="Mask Formatter mask:Licence plate valid uppercase" duration="1"/>
60
+ <testCase name="Mask Formatter mask:Licence plate valid lowercase" duration="1"/>
61
+ <testCase name="Mask Formatter mask:Licence plate invalid" duration="57"/>
62
+ <testCase name="Mask Formatter mask:Licence plate invalid for being too short" duration="1"/>
63
+ <testCase name="Mask Formatter mask:Licence plate invalid for being too short with placeholder" duration="0"/>
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="0"/>
39
67
  <testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
40
68
  <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="0"/>
41
- <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="1"/>
42
- <testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
69
+ <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="0"/>
70
+ <testCase name="Mask Formatter mask:Licence plate invalid" duration="2"/>
43
71
  <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="0"/>
44
72
  <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="1"/>
45
- <testCase name="Mask Formatter mask:Licence plate invalid" duration="102"/>
46
- <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
47
- <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="0"/>
48
73
  <testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
49
74
  </file>
50
- <file path="/builds/dti/design-system/sankhyacore/test/util/OverflowWatcher.spec.ts">
51
- <testCase name="OverflowWatcher should initialize with provided parameters" duration="10"/>
52
- <testCase name="OverflowWatcher should disconect ResizeObserver when destroy is called" duration="2"/>
53
- <testCase name="OverflowWatcher Should call callback on forceUpdate" duration="292"/>
54
- <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan" duration="125"/>
55
- <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan when notOverFlow is empty" duration="100"/>
56
- <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan considering overflowed elements" duration="82"/>
57
- <testCase name="OverflowWatcher Should call callback on forceUpdate with empty list" duration="5"/>
58
- <testCase name="OverflowWatcher should ignore elements that can not overflow" duration="92"/>
59
- <testCase name="OverflowWatcher Should not call callback on forceUpdate" duration="1"/>
60
- </file>
61
- <file path="/builds/dti/design-system/sankhyacore/src/utils/test/objectUtils.spec.ts">
62
- <testCase name="ObjectUtils hasEquivalentValues should return true if both objects have the same property value" duration="1"/>
63
- <testCase name="ObjectUtils hasEquivalentValues should return false if both objects have different property values" duration="0"/>
64
- <testCase name="ObjectUtils hasEquivalentValues should return true if both objects are equivalent with custom property to compare" duration="0"/>
65
- <testCase name="ObjectUtils hasEquivalentValues should return false if both objects are not equivalent with custom property to compare" duration="1"/>
66
- <testCase name="ObjectUtils hasEquivalentValues should return false if one object does not have the property" duration="0"/>
67
- <testCase name="ObjectUtils hasEquivalentValues should return true if comparing primitive values directly" duration="0"/>
68
- <testCase name="ObjectUtils hasEquivalentValues should return false if comparing different primitive values" duration="0"/>
69
- <testCase name="ObjectUtils hasEquivalentValues should return true when comparing object with a null value" duration="0"/>
70
- <testCase name="ObjectUtils hasEquivalentValues should return false when comparing object with null and non-null value" duration="1"/>
71
- <testCase name="ObjectUtils hasEquivalentValues should return true when comparing non-object values that are equal" duration="0"/>
72
- <testCase name="ObjectUtils should get an object value based on its path" duration="0"/>
73
- <testCase name="ObjectUtils should get an object value based on its path" duration="0"/>
74
- <testCase name="ObjectUtils should return undefined if the path doesn&apos;t exist in the object" duration="1"/>
75
- </file>
76
- <file path="/builds/dti/design-system/sankhyacore/test/dataunit/loader/utils/dataUnitLoaderUtils.spec.ts">
77
- <testCase name="Utility Functions applyFilter should return the original records if no filters are provided" duration="10"/>
78
- <testCase name="Utility Functions applyFilter should filter records based on provided filters" duration="1"/>
79
- <testCase name="Utility Functions buildPaginationInfo function should return correct pagination info with default values" duration="1"/>
80
- <testCase name="Utility Functions buildPaginationInfo function should redosLenth as same size as recordsPerPage" duration="1"/>
81
- <testCase name="Utility Functions buildPaginationInfo function should handle case when totalRecordsLength and offset 0" duration="1"/>
82
- <testCase name="Utility Functions buildPaginationInfo function should handle case when currentPageLength is less than totalRecordsLength and lastPage" duration="84"/>
83
- <testCase name="Utility Functions applySorting function should return the original records if no sorting is provided" duration="2"/>
84
- <testCase name="Utility Functions applySorting function should sort records based on provided sorting criteria" duration="2"/>
85
- </file>
86
- <file path="/builds/dti/design-system/sankhyacore/test/http/HttpProvider.spec.ts">
87
- <testCase name="HttpProvider Metodo GET" duration="1"/>
88
- </file>
89
- <file path="/builds/dti/design-system/sankhyacore/test/util/ColumnFilterManager.spec.ts">
90
- <testCase name="ColumnFilterManager getColumnFilters should return an empty map if filters are undefined or empty" duration="95"/>
91
- <testCase name="ColumnFilterManager getColumnFilters should return a map of filters matching the pattern and not the provided fieldName" duration="1"/>
92
- <testCase name="ColumnFilterManager getFilterFunction should return undefined if no filters are provided" duration="1"/>
93
- <testCase name="ColumnFilterManager getFilterFunction should return a function that evaluates records based on filters" duration="2"/>
94
- <testCase name="ColumnFilterManager getFilterFunction should return a function that evaluates records and return false" duration="1"/>
95
- <testCase name="ColumnFilterManager compileDistinct should return an array of distinct field values formatted correctly" duration="1"/>
96
- <testCase name="ColumnFilterManager compileDistinct should filter records if a load request is present" duration="1"/>
97
- </file>
98
75
  <file path="/builds/dti/design-system/sankhyacore/test/util/StringUtils.spec.ts">
99
- <testCase name="StringUtils valor vazio" duration="1"/>
100
- <testCase name="StringUtils valor em branco" duration="1"/>
76
+ <testCase name="StringUtils valor vazio" duration="107"/>
77
+ <testCase name="StringUtils valor em branco" duration="10"/>
101
78
  <testCase name="StringUtils valor null" duration="0"/>
102
- <testCase name="StringUtils valor undefined" duration="7"/>
103
- <testCase name="StringUtils valor 0" duration="1"/>
104
- <testCase name="StringUtils com valor" duration="0"/>
105
- <testCase name="StringUtils substitui vogais com acento por vogais sem acento" duration="2"/>
106
- <testCase name="StringUtils should return the original value when called with an object without a toString method" duration="1"/>
107
- <testCase name="StringUtils should return the original value when called with undefined" duration="0"/>
79
+ <testCase name="StringUtils valor undefined" duration="0"/>
80
+ <testCase name="StringUtils valor 0" duration="0"/>
81
+ <testCase name="StringUtils com valor" duration="1"/>
82
+ <testCase name="StringUtils substitui vogais com acento por vogais sem acento" duration="1"/>
83
+ <testCase name="StringUtils should return the original value when called with an object without a toString method" duration="83"/>
84
+ <testCase name="StringUtils should return the original value when called with undefined" duration="1"/>
108
85
  </file>
109
- <file path="/builds/dti/design-system/sankhyacore/test/http/SkwHttpProvider.ts.spec.ts">
110
- <testCase name="HttpProvider Metodo POST" duration="1"/>
86
+ <file path="/builds/dti/design-system/sankhyacore/test/util/NumberUtils.spec.ts">
87
+ <testCase name="StringUtils stringToNumber" duration="183"/>
88
+ <testCase name="StringUtils format" duration="315"/>
89
+ <testCase name="StringUtils format without formatnumber parameter" duration="1"/>
90
+ <testCase name="StringUtils format without formatnumber parameter" duration="2"/>
91
+ <testCase name="StringUtils format round number" duration="1"/>
111
92
  </file>
112
93
  <file path="/builds/dti/design-system/sankhyacore/test/util/CriteriaParameter.spec.ts">
113
- <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="2"/>
114
- <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"/>
94
+ <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"/>
95
+ <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="4"/>
115
96
  <testCase name="StringUtils it should return the correct JSON/Object value through the buildParam method" duration="1"/>
116
97
  </file>
117
- <file path="/builds/dti/design-system/sankhyacore/src/dataunit/state/slice/test/RecordsSlice.spec.ts">
118
- <testCase name="RecordsSlice should return newlines at the end" duration="2"/>
98
+ <file path="/builds/dti/design-system/sankhyacore/test/util/ColumnFilterManager.spec.ts">
99
+ <testCase name="ColumnFilterManager getColumnFilters should return an empty map if filters are undefined or empty" duration="12"/>
100
+ <testCase name="ColumnFilterManager getColumnFilters should return a map of filters matching the pattern and not the provided fieldName" duration="0"/>
101
+ <testCase name="ColumnFilterManager getFilterFunction should return undefined if no filters are provided" duration="1"/>
102
+ <testCase name="ColumnFilterManager getFilterFunction should return a function that evaluates records based on filters" duration="3"/>
103
+ <testCase name="ColumnFilterManager getFilterFunction should return a function that evaluates records and return false" duration="1"/>
104
+ <testCase name="ColumnFilterManager compileDistinct should return an array of distinct field values formatted correctly" duration="2"/>
105
+ <testCase name="ColumnFilterManager compileDistinct should filter records if a load request is present" duration="2"/>
106
+ </file>
107
+ <file path="/builds/dti/design-system/sankhyacore/test/dataunit/loader/utils/dataUnitLoaderUtils.spec.ts">
108
+ <testCase name="Utility Functions applyFilter should return the original records if no filters are provided" duration="16"/>
109
+ <testCase name="Utility Functions applyFilter should filter records based on provided filters" duration="1"/>
110
+ <testCase name="Utility Functions buildPaginationInfo function should return correct pagination info with default values" duration="1"/>
111
+ <testCase name="Utility Functions buildPaginationInfo function should redosLenth as same size as recordsPerPage" duration="4"/>
112
+ <testCase name="Utility Functions buildPaginationInfo function should handle case when totalRecordsLength and offset 0" duration="1"/>
113
+ <testCase name="Utility Functions buildPaginationInfo function should handle case when currentPageLength is less than totalRecordsLength and lastPage" duration="1"/>
114
+ <testCase name="Utility Functions applySorting function should return the original records if no sorting is provided" duration="1"/>
115
+ <testCase name="Utility Functions applySorting function should sort records based on provided sorting criteria" duration="2"/>
119
116
  </file>
120
117
  <file path="/builds/dti/design-system/sankhyacore/test/util/TimeFormatter.spec.ts">
121
- <testCase name="TimeFormatter Case: input string unformated with showSeconds" duration="1"/>
122
- <testCase name="TimeFormatter Case: input string unformated without showSeconds" duration="0"/>
118
+ <testCase name="TimeFormatter Case: input string unformated with showSeconds" duration="3"/>
119
+ <testCase name="TimeFormatter Case: input string unformated without showSeconds" duration="1"/>
123
120
  <testCase name="TimeFormatter Case: validateTime" duration="1"/>
124
121
  </file>
125
- <file path="/builds/dti/design-system/sankhyacore/src/dataunit/test/DataUnit.spec.ts">
126
- <testCase name="DataUnit should return false when not waiting to reload" duration="2"/>
127
- <testCase name="DataUnit should set waitingToReload to true" duration="0"/>
128
- <testCase name="DataUnit should set waitingToReload to false" duration="1"/>
129
- <testCase name="DataUnit should dispatch SAVING_CANCELED action with correct fields and recordId" duration="0"/>
122
+ <file path="/builds/dti/design-system/sankhyacore/src/dataunit/state/slice/test/RecordsSlice.spec.ts">
123
+ <testCase name="RecordsSlice should return newlines at the end" duration="2"/>
130
124
  </file>
131
125
  <file path="/builds/dti/design-system/sankhyacore/test/util/DataUnitStorage.spec.ts">
132
- <testCase name="DataUnitStorage put should store a DataUnit instance in the DataUnitStorage" duration="2"/>
126
+ <testCase name="DataUnitStorage put should store a DataUnit instance in the DataUnitStorage" duration="7"/>
133
127
  <testCase name="DataUnitStorage get should return the stored DataUnit instance from the DataUnitStorage" duration="1"/>
134
128
  <testCase name="DataUnitStorage get should return undefined if the DataUnit instance is not found in the DataUnitStorage" duration="1"/>
135
- <testCase name="DataUnitStorage remove should remove the specified DataUnit instance from the DataUnitStorage" duration="0"/>
129
+ <testCase name="DataUnitStorage remove should remove the specified DataUnit instance from the DataUnitStorage" duration="1"/>
136
130
  <testCase name="DataUnitStorage remove should remove the DataUnit instance with the specified name from the DataUnitStorage" duration="1"/>
137
- <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"/>
131
+ <testCase name="DataUnitStorage remove should not remove any DataUnit instance if the specified DataUnit instance or name is not found in the DataUnitStorage" duration="66"/>
138
132
  </file>
139
133
  <file path="/builds/dti/design-system/sankhyacore/test/util/ElementIDUtils.spec.ts">
140
- <testCase name="addIDInfo 1 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="9"/>
141
- <testCase name="addIDInfo 2 - should add data-element-id with valid id &quot;brComSankhyaFinCadMovimentacaofinanceira_snkApplication&quot;" duration="1"/>
134
+ <testCase name="addIDInfo 1 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="90"/>
135
+ <testCase name="addIDInfo 2 - should add data-element-id with valid id &quot;brComSankhyaFinCadMovimentacaofinanceira_snkApplication&quot;" duration="2"/>
142
136
  <testCase name="addIDInfo 3 - should add data-element-id with valid id &quot;movFinanceira_br.com.sankhya.fin.cad.movimentacaoFinanceira&quot;" duration="1"/>
143
137
  <testCase name="addIDInfo 4 - should add data-element-id with valid id &quot;meuID2_snkApplication&quot;" duration="1"/>
144
138
  <testCase name="addIDInfo 5 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="1"/>
145
- <testCase name="addIDInfo 6 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="1"/>
146
- <testCase name="addIDInfo 7 - should add data-element-id with valid id &quot;componenteNameTest_snkApplication&quot;" duration="1"/>
147
- <testCase name="addIDInfo 8 - should add data-element-id with valid id &quot;componentLabel_snkApplication&quot;" duration="1"/>
139
+ <testCase name="addIDInfo 6 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="2"/>
140
+ <testCase name="addIDInfo 7 - should add data-element-id with valid id &quot;componenteNameTest_snkApplication&quot;" duration="3"/>
141
+ <testCase name="addIDInfo 8 - should add data-element-id with valid id &quot;componentLabel_snkApplication&quot;" duration="2"/>
148
142
  <testCase name="addIDInfo 9 - should add data-element-id with valid id &quot;dataunitFinanceiro_br.com.sankhya.fin.cad.movimentacaoFinanceira&quot;" duration="1"/>
149
- <testCase name="addIDInfo 10 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIDTeste_br.com.sankhya.fin.cad.movimentacaoFinanceira&quot;" duration="1"/>
143
+ <testCase name="addIDInfo 10 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIDTeste_br.com.sankhya.fin.cad.movimentacaoFinanceira&quot;" duration="70"/>
150
144
  <testCase name="addIDInfo 11 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira&quot;" duration="1"/>
151
145
  <testCase name="addIDInfo 12 - should add data-element-id with valid id &quot;dataunitFinanceiro_movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
152
146
  <testCase name="addIDInfo 13 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira&quot;" duration="1"/>
153
- <testCase name="addIDInfo 14 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIdTeste_movimentacaoFinanceira&quot;" duration="1"/>
147
+ <testCase name="addIDInfo 14 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIdTeste_movimentacaoFinanceira&quot;" duration="2"/>
154
148
  <testCase name="addIDInfo 15 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIdTeste_snkApplication&quot;" duration="1"/>
155
149
  <testCase name="addIDInfo 16 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIdTeste_snkApplication&quot;" duration="1"/>
156
150
  <testCase name="addIDInfo 17 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
157
- <testCase name="addIDInfo 18 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="0"/>
151
+ <testCase name="addIDInfo 18 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
158
152
  <testCase name="addIDInfo 19 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
159
153
  <testCase name="addIDInfo 20 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
160
- <testCase name="addIDInfo 21 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="0"/>
161
- <testCase name="addIDInfo 22 - should add data-element-id with valid id &quot;bancoObrigatorio_movimentacaoFinanceira&quot;" duration="1"/>
154
+ <testCase name="addIDInfo 21 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="4"/>
155
+ <testCase name="addIDInfo 22 - should add data-element-id with valid id &quot;bancoObrigatorio_movimentacaoFinanceira&quot;" duration="2"/>
162
156
  </file>
163
- <file path="/builds/dti/design-system/sankhyacore/test/dataunit/formatting/PrettyFormatter.spec.ts">
164
- <testCase name="getFormattedValue should return empty string when value is null" duration="6"/>
165
- <testCase name="getFormattedValue should return empty string when value is not an array" duration="0"/>
166
- <testCase name="getFormattedValue should return empty string when value is an empty array" duration="0"/>
167
- <testCase name="getFormattedValue should return file name when value is an array with one file object" duration="1"/>
168
- <testCase name="getFormattedValue should return file count when value is an array with multiple file objects" duration="1"/>
169
- <testCase name="getFormattedValue should return empty string for undefined file" duration="0"/>
170
- <testCase name="getFormattedValue should handle OBJECT type with value field" duration="1"/>
171
- <testCase name="getFormattedValue should return empty string when value is undefined" duration="0"/>
172
- <testCase name="getFormattedValue should return value as string when value is not an object" duration="1"/>
173
- <testCase name="getFormattedValue should return value.toString() when value is an object without value property" duration="0"/>
174
- <testCase name="getFormattedValue should handle BOOLEAN type" duration="0"/>
175
- <testCase name="getFormattedValue should format numbers correctly" duration="13"/>
176
- <testCase name="getFormattedValue should format dates correctly" duration="45"/>
177
- <testCase name="getFormattedValue should format times correctly" duration="1"/>
178
- <testCase name="getFormattedValue should format datetime correctly" duration="1"/>
179
- <testCase name="getFormattedValue should call toString with correct parameters" duration="0"/>
180
- <testCase name="getFormattedValue should handle undefined descriptor gracefully" duration="0"/>
181
- <testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and matching option" duration="1"/>
182
- <testCase name="getFormattedValue should return value with OPTIONSELECTOR and no matching option" duration="8"/>
183
- <testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and value as object" duration="0"/>
184
- <testCase name="getFormattedValue should return empty string with OPTIONSELECTOR and value as null" duration="0"/>
185
- <testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and options as JSON string" duration="0"/>
186
- <testCase name="getFormattedValue should return value with OPTIONSELECTOR and options as empty array" duration="1"/>
187
- <testCase name="getFormattedValue should format masked values correctly" duration="2"/>
188
- </file>
189
- <file path="/builds/dti/design-system/sankhyacore/test/util/ElementUtils.spec.ts">
190
- <testCase name="calcMarginSize should calculate correctly the size of horizontal margin" duration="47"/>
191
- <testCase name="calcMarginSize should calculate correctly the size of vertical margin" duration="54"/>
192
- <testCase name="calcMarginSize should threat values defined as zero" duration="7"/>
157
+ <file path="/builds/dti/design-system/sankhyacore/src/dataunit/test/DataUnit.spec.ts">
158
+ <testCase name="DataUnit should return false when not waiting to reload" duration="2"/>
159
+ <testCase name="DataUnit should set waitingToReload to true" duration="0"/>
160
+ <testCase name="DataUnit should set waitingToReload to false" duration="1"/>
161
+ <testCase name="DataUnit should dispatch SAVING_CANCELED action with correct fields and recordId" duration="1"/>
193
162
  </file>
194
163
  <file path="/builds/dti/design-system/sankhyacore/test/dataunit/loader/dataUnitInMemoryLoader.spec.ts">
195
- <testCase name="DataUnitInMemoryLoader - loadData should be called load data when auto load is true" duration="14"/>
164
+ <testCase name="DataUnitInMemoryLoader - loadData should be called load data when auto load is true" duration="77"/>
196
165
  <testCase name="DataUnitInMemoryLoader - loadData should be called load data when auto load is undefined" duration="3"/>
197
- <testCase name="DataUnitInMemoryLoader - loadData should not be called load data when auto load is false" duration="2"/>
198
- <testCase name="DataUnitInMemoryLoader - loadData should be called load data when config is undefined" duration="4"/>
166
+ <testCase name="DataUnitInMemoryLoader - loadData should not be called load data when auto load is false" duration="1"/>
167
+ <testCase name="DataUnitInMemoryLoader - loadData should be called load data when config is undefined" duration="1"/>
199
168
  <testCase name="DataUnitInMemoryLoader - getConvertedValue should return the original string if descriptor is undefined" duration="1"/>
200
169
  <testCase name="DataUnitInMemoryLoader - getConvertedValue should return the original string if dataType is TEXT" duration="1"/>
201
170
  <testCase name="DataUnitInMemoryLoader - getConvertedValue should convert to boolean when dataType is BOOLEAN" duration="0"/>
202
171
  <testCase name="DataUnitInMemoryLoader - getConvertedValue should convert to number when dataType is NUMBER" duration="1"/>
203
172
  <testCase name="DataUnitInMemoryLoader - getConvertedValue should parse JSON when dataType is OBJECT" duration="1"/>
204
173
  <testCase name="DataUnitInMemoryLoader - getConvertedValue should convert to date when dataType is DATE and format is ISO" duration="1"/>
205
- <testCase name="DataUnitInMemoryLoader - getConvertedValue should convert to date when dataType is DATE and format is not ISO" duration="7"/>
174
+ <testCase name="DataUnitInMemoryLoader - getConvertedValue should convert to date when dataType is DATE and format is not ISO" duration="1"/>
206
175
  <testCase name="DataUnitInMemoryLoader - getConvertedValue should return the original string if no dataType matches" duration="1"/>
207
- <testCase name="DataUnitInMemoryLoader - removeLoader should resolve with the provided record IDs" duration="2"/>
176
+ <testCase name="DataUnitInMemoryLoader - removeLoader should resolve with the provided record IDs" duration="1"/>
208
177
  <testCase name="DataUnitInMemoryLoader - removeLoader should handle empty record ID array" duration="1"/>
209
178
  <testCase name="DataUnitInMemoryLoader - removeLoader should resolve the promise" duration="1"/>
210
179
  <testCase name="DataUnitInMemoryLoader - buildInitialRecords (indiretamente via set records) should build initial records and convert field values based on metadata" duration="2"/>
211
180
  <testCase name="DataUnitInMemoryLoader - buildInitialRecords (indiretamente via set records) should generate unique IDs for records without &quot;__record__id__&quot;" duration="4"/>
212
- <testCase name="DataUnitInMemoryLoader - buildInitialRecords (indiretamente via set records) should leave fields untouched if no matching metadata exists" duration="16"/>
181
+ <testCase name="DataUnitInMemoryLoader - buildInitialRecords (indiretamente via set records) should leave fields untouched if no matching metadata exists" duration="4"/>
213
182
  <testCase name="DataUnitInMemoryLoader - buildInitialRecords (indiretamente via set records) should skip conversion for non-string field values" duration="2"/>
214
183
  </file>
184
+ <file path="/builds/dti/design-system/sankhyacore/test/dataunit/formatting/PrettyFormatter.spec.ts">
185
+ <testCase name="getFormattedValue should return empty string when value is null" duration="5"/>
186
+ <testCase name="getFormattedValue should return empty string when value is not an array" duration="1"/>
187
+ <testCase name="getFormattedValue should return empty string when value is an empty array" duration="0"/>
188
+ <testCase name="getFormattedValue should return file name when value is an array with one file object" duration="1"/>
189
+ <testCase name="getFormattedValue should return file count when value is an array with multiple file objects" duration="0"/>
190
+ <testCase name="getFormattedValue should return empty string for undefined file" duration="1"/>
191
+ <testCase name="getFormattedValue should handle OBJECT type with value field" duration="0"/>
192
+ <testCase name="getFormattedValue should return empty string when value is undefined" duration="1"/>
193
+ <testCase name="getFormattedValue should return value as string when value is not an object" duration="0"/>
194
+ <testCase name="getFormattedValue should return value.toString() when value is an object without value property" duration="1"/>
195
+ <testCase name="getFormattedValue should handle BOOLEAN type" duration="56"/>
196
+ <testCase name="getFormattedValue should format numbers correctly" duration="20"/>
197
+ <testCase name="getFormattedValue should format dates correctly" duration="11"/>
198
+ <testCase name="getFormattedValue should format times correctly" duration="1"/>
199
+ <testCase name="getFormattedValue should format datetime correctly" duration="0"/>
200
+ <testCase name="getFormattedValue should call toString with correct parameters" duration="0"/>
201
+ <testCase name="getFormattedValue should handle undefined descriptor gracefully" duration="1"/>
202
+ <testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and matching option" duration="1"/>
203
+ <testCase name="getFormattedValue should return value with OPTIONSELECTOR and no matching option" duration="0"/>
204
+ <testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and value as object" duration="0"/>
205
+ <testCase name="getFormattedValue should return empty string with OPTIONSELECTOR and value as null" duration="1"/>
206
+ <testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and options as JSON string" duration="0"/>
207
+ <testCase name="getFormattedValue should return value with OPTIONSELECTOR and options as empty array" duration="1"/>
208
+ <testCase name="getFormattedValue should format masked values correctly" duration="8"/>
209
+ </file>
210
+ <file path="/builds/dti/design-system/sankhyacore/test/util/ElementUtils.spec.ts">
211
+ <testCase name="calcMarginSize should calculate correctly the size of horizontal margin" duration="42"/>
212
+ <testCase name="calcMarginSize should calculate correctly the size of vertical margin" duration="4"/>
213
+ <testCase name="calcMarginSize should threat values defined as zero" duration="41"/>
214
+ </file>
215
215
  </unitTest>
@@ -345,6 +345,10 @@ export default class DataUnit {
345
345
  }
346
346
  }
347
347
 
348
+ public async loadDataWithParams({source, keepSelection, selectFirstRecord, executionCtx, checkLastFilter, quickFilter}: LoadDataParams): Promise<LoadDataResponse> {
349
+ return await this.loadData(quickFilter, executionCtx, checkLastFilter, source, selectFirstRecord, keepSelection);
350
+ }
351
+
348
352
  /**
349
353
  *
350
354
  * Carrega os registros do DataUnit.
@@ -356,7 +360,7 @@ export default class DataUnit {
356
360
  * @returns - Registros requisitados.
357
361
  *
358
362
  */
359
- public async loadData(quickFilter?: QuickFilter, executionCtx?: ExecutionContext, checkLastFilter?: boolean, source?: string, selectFirstRecord?: boolean): Promise<LoadDataResponse> {
363
+ public async loadData(quickFilter?: QuickFilter, executionCtx?: ExecutionContext, checkLastFilter?: boolean, source?: string, selectFirstRecord?: boolean, keepSelection?: boolean): Promise<LoadDataResponse> {
360
364
 
361
365
  await this.processLoadingLockers();
362
366
 
@@ -372,7 +376,7 @@ export default class DataUnit {
372
376
  }
373
377
  }
374
378
 
375
- const loadDataRequest = this.getLoadDataRequest(quickFilter, source);
379
+ const loadDataRequest = this.getLoadDataRequest(quickFilter, source, keepSelection);
376
380
  return this.executeLoadData(loadDataRequest, executionCtx, checkLastFilter, selectFirstRecord);
377
381
  }
378
382
 
@@ -437,12 +441,13 @@ export default class DataUnit {
437
441
  return this.gotoPage(getCurrentPage(this._stateManager) - 1, executionCtx);
438
442
  }
439
443
 
440
- private getLoadDataRequest(quickFilter?: QuickFilter, source?: string): LoadDataRequest {
444
+ private getLoadDataRequest(quickFilter?: QuickFilter, source?: string, keepSelection?: boolean): LoadDataRequest {
441
445
  const request: LoadDataRequest = {
442
446
  filters: quickFilter?.filter ? [quickFilter.filter] : this.getFilters(),
443
447
  sort: this.getSort(),
444
448
  parentRecordId: this.getParentRecordId(),
445
- source
449
+ source,
450
+ keepSelection
446
451
  };
447
452
 
448
453
  if (quickFilter) {
@@ -1932,6 +1937,15 @@ export default class DataUnit {
1932
1937
 
1933
1938
  }
1934
1939
 
1940
+ export interface LoadDataParams {
1941
+ quickFilter?: QuickFilter;
1942
+ executionCtx?: ExecutionContext;
1943
+ checkLastFilter?: boolean;
1944
+ source?: string;
1945
+ selectFirstRecord?: boolean;
1946
+ keepSelection?: boolean
1947
+ }
1948
+
1935
1949
  export interface DUActionInterceptor {
1936
1950
  interceptAction(action: DataUnitAction): DataUnitAction | Promise<DataUnitAction>;
1937
1951
  }
package/src/index.ts CHANGED
@@ -49,6 +49,7 @@ import { DataUnitInMemoryLoader } from "./dataunit/loader/dataUnitInMemoryLoader
49
49
  import { DataUnitLoaderUtils, PaginationInfoBuilderParams } from "./dataunit/loader/utils/dataUnitLoaderUtils.js";
50
50
  import { ColumnFilterManager } from "./utils/ColumnFilterManager.js";
51
51
  import { DataUnitInMemoryLoaderConfig, RECORD_DATE_FORMAT } from "./dataunit/loader/DataUnitInMemoryLoaderConfig.js";
52
+ import Base64Utils from "./utils/Base64Utils.js";
52
53
 
53
54
  /*Classes públicas no pacote*/
54
55
  export {
@@ -133,5 +134,7 @@ export {
133
134
  PaginationInfoBuilderParams,
134
135
  ColumnFilterManager,
135
136
  DataUnitInMemoryLoaderConfig,
136
- RECORD_DATE_FORMAT
137
+ RECORD_DATE_FORMAT,
138
+ Base64Utils,
139
+
137
140
  };