@sankhyalabs/core 0.0.0-bugfix-dev-KB-75940.1 → 0.0.0-bugfix-dev-KB-81596.0

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.
@@ -28,7 +28,7 @@ opções para o gerenciamento de eventos de teclado.
28
28
 
29
29
  #### Source
30
30
 
31
- src/utils/KeyboardManager/index.ts:20
31
+ src/utils/KeyboardManager/index.ts:19
32
32
 
33
33
  ## Properties
34
34
 
@@ -38,7 +38,7 @@ src/utils/KeyboardManager/index.ts:20
38
38
 
39
39
  #### Source
40
40
 
41
- src/utils/KeyboardManager/index.ts:13
41
+ src/utils/KeyboardManager/index.ts:12
42
42
 
43
43
  ***
44
44
 
@@ -50,16 +50,6 @@ src/utils/KeyboardManager/index.ts:13
50
50
 
51
51
  src/utils/KeyboardManager/index.ts:11
52
52
 
53
- ***
54
-
55
- ### \_shadowRoots
56
-
57
- > `private` **\_shadowRoots**: `ShadowRoot`[] = `[]`
58
-
59
- #### Source
60
-
61
- src/utils/KeyboardManager/index.ts:12
62
-
63
53
  ## Accessors
64
54
 
65
55
  ### mappedKeys
@@ -76,30 +66,10 @@ chaves mapeadas com descrições
76
66
 
77
67
  #### Source
78
68
 
79
- src/utils/KeyboardManager/index.ts:144
69
+ src/utils/KeyboardManager/index.ts:97
80
70
 
81
71
  ## Methods
82
72
 
83
- ### addEventListenerToNestedShadowRoots()
84
-
85
- > `private` **addEventListenerToNestedShadowRoots**(`event`, `callback`): `void`
86
-
87
- #### Parameters
88
-
89
- • **event**: `"keydown"` \| `"keyup"`
90
-
91
- • **callback**: `VoidFunction`
92
-
93
- #### Returns
94
-
95
- `void`
96
-
97
- #### Source
98
-
99
- src/utils/KeyboardManager/index.ts:56
100
-
101
- ***
102
-
103
73
  ### bind()
104
74
 
105
75
  > **bind**(`keyMap`, `callback`, `options`?): [`KeyboardManager`](KeyboardManager.md)
@@ -128,7 +98,7 @@ O objeto `KeyboardManager`
128
98
 
129
99
  #### Source
130
100
 
131
- src/utils/KeyboardManager/index.ts:76
101
+ src/utils/KeyboardManager/index.ts:37
132
102
 
133
103
  ***
134
104
 
@@ -156,27 +126,7 @@ Retorna se todas as teclas modificadoras foram aplicadas
156
126
 
157
127
  #### Source
158
128
 
159
- src/utils/KeyboardManager/index.ts:213
160
-
161
- ***
162
-
163
- ### findAllNestedShadowRoots()
164
-
165
- > `private` **findAllNestedShadowRoots**(`element`, `results`): `ShadowRoot`[]
166
-
167
- #### Parameters
168
-
169
- • **element**: `Element` \| `Document` \| `HTMLElement` \| `ChildNode`
170
-
171
- • **results**: `ShadowRoot`[]= `[]`
172
-
173
- #### Returns
174
-
175
- `ShadowRoot`[]
176
-
177
- #### Source
178
-
179
- src/utils/KeyboardManager/index.ts:35
129
+ src/utils/KeyboardManager/index.ts:166
180
130
 
181
131
  ***
182
132
 
@@ -210,7 +160,7 @@ O evento de teclado
210
160
 
211
161
  #### Source
212
162
 
213
- src/utils/KeyboardManager/index.ts:160
163
+ src/utils/KeyboardManager/index.ts:113
214
164
 
215
165
  ***
216
166
 
@@ -238,27 +188,7 @@ Retorna se o evento de teclado foi disparado e as teclas modificadoras aplicadas
238
188
 
239
189
  #### Source
240
190
 
241
- src/utils/KeyboardManager/index.ts:176
242
-
243
- ***
244
-
245
- ### removeEventListenerToNestedShadowRoots()
246
-
247
- > `private` **removeEventListenerToNestedShadowRoots**(`event`, `callback`): `void`
248
-
249
- #### Parameters
250
-
251
- • **event**: `"keydown"` \| `"keyup"`
252
-
253
- • **callback**: `VoidFunction`
254
-
255
- #### Returns
256
-
257
- `void`
258
-
259
- #### Source
260
-
261
- src/utils/KeyboardManager/index.ts:62
191
+ src/utils/KeyboardManager/index.ts:129
262
192
 
263
193
  ***
264
194
 
@@ -282,7 +212,7 @@ Chave de mapeamento de teclado.
282
212
 
283
213
  #### Source
284
214
 
285
- src/utils/KeyboardManager/index.ts:116
215
+ src/utils/KeyboardManager/index.ts:73
286
216
 
287
217
  ***
288
218
 
@@ -308,4 +238,4 @@ Se o evento de teclado deve ser propagado
308
238
 
309
239
  #### Source
310
240
 
311
- src/utils/KeyboardManager/index.ts:249
241
+ src/utils/KeyboardManager/index.ts:202
package/.releaserc CHANGED
@@ -3,6 +3,7 @@
3
3
  "branches": [
4
4
  "master",
5
5
  { "name": "develop", "channel": "dev", "prerelease": "dev" },
6
+ { "name": "milestone", "channel": "ms", "prerelease": "ms" },
6
7
  { "name": "release", "channel": "rc", "prerelease": "rc" }
7
8
  ],
8
9
  "plugins": [
@@ -4,7 +4,6 @@ import { IGetMappedKeys, IKeyboardOptions } from "./interface.js";
4
4
  */
5
5
  export declare class KeyboardManager {
6
6
  private _options;
7
- private _shadowRoots;
8
7
  private _mappedElements;
9
8
  /**
10
9
  * Construtor para a classe Keyboard.
@@ -12,9 +11,6 @@ export declare class KeyboardManager {
12
11
  * @param {IKeyboardOptions} options - opções para o gerenciamento de eventos de teclado.
13
12
  */
14
13
  constructor(options?: Partial<IKeyboardOptions>);
15
- private findAllNestedShadowRoots;
16
- private addEventListenerToNestedShadowRoots;
17
- private removeEventListenerToNestedShadowRoots;
18
14
  /**
19
15
  * Associa um evento de teclado com uma função
20
16
  *
@@ -12,38 +12,8 @@ export class KeyboardManager {
12
12
  * @param {IKeyboardOptions} options - opções para o gerenciamento de eventos de teclado.
13
13
  */
14
14
  constructor(options) {
15
- this._shadowRoots = [];
16
15
  this._mappedElements = {};
17
- this._options = Object.assign({ type: 'keydown', propagate: false, element: document.body, debounceTime: 0, enableShadowDom: false }, options);
18
- if (this._options.enableShadowDom) {
19
- this._shadowRoots = this.findAllNestedShadowRoots(this._options.element);
20
- }
21
- }
22
- findAllNestedShadowRoots(element, results = []) {
23
- if (!element) {
24
- return results;
25
- }
26
- const shadowRoot = element === null || element === void 0 ? void 0 : element.shadowRoot;
27
- if (shadowRoot) {
28
- results.push(shadowRoot);
29
- shadowRoot.querySelectorAll("*").forEach((child) => {
30
- this.findAllNestedShadowRoots(child, results);
31
- });
32
- }
33
- element.childNodes.forEach((child) => {
34
- this.findAllNestedShadowRoots(child, results);
35
- });
36
- return results;
37
- }
38
- addEventListenerToNestedShadowRoots(event, callback) {
39
- this._shadowRoots.forEach((shadowRoot) => {
40
- shadowRoot.addEventListener(event, callback);
41
- });
42
- }
43
- removeEventListenerToNestedShadowRoots(event, callback) {
44
- this._shadowRoots.forEach((shadowRoot) => {
45
- shadowRoot.removeEventListener(event, callback);
46
- });
16
+ this._options = Object.assign({ type: 'keydown', propagate: false, element: document.body, debounceTime: 0 }, options);
47
17
  }
48
18
  /**
49
19
  * Associa um evento de teclado com uma função
@@ -66,9 +36,6 @@ export class KeyboardManager {
66
36
  options: bindOptions
67
37
  } });
68
38
  bindOptions.element.addEventListener(bindOptions.type, debounceFunction);
69
- if (bindOptions.enableShadowDom) {
70
- this.addEventListenerToNestedShadowRoots(bindOptions.type, debounceFunction);
71
- }
72
39
  return this;
73
40
  }
74
41
  /**
@@ -86,9 +53,6 @@ export class KeyboardManager {
86
53
  delete this._mappedElements[keyMap];
87
54
  const { callback, options: { element, type } } = unbindElement;
88
55
  element.removeEventListener(type, callback);
89
- if (unbindElement.options.enableShadowDom) {
90
- this.removeEventListenerToNestedShadowRoots(type, callback);
91
- }
92
56
  return this;
93
57
  }
94
58
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/KeyboardManager/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD;;GAEG;AACH,MAAM,OAAO,eAAe;IAKzB;;;;OAIG;IACH,YAAY,OAAmC;QARvC,iBAAY,GAAkB,EAAE,CAAC;QACjC,oBAAe,GAAgC,EAAE,CAAC;QAQvD,I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AI,CAAC;aACtB;SACH;QAED,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;IACzC,CAAC;IAED;;;;;;OAMG;IACK,uBAAuB,CAAC,KAAoB,EAAE,YAA2B;QAC9E,MAAM,cAAc,GAA4B;YAC7C,KAAK,EAAE,KAAK,CAAC,QAAQ;YACrB,IAAI,EAAE,KAAK,CAAC,OAAO;YACnB,GAAG,EAAE,KAAK,CAAC,MAAM;YACjB,IAAI,EAAE,KAAK,CAAC,OAAO;SACrB,CAAC;QAEF,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE;YAC5B,OAAO,CAAC,CACL,cAAc,CAAC,KAAK;gBACpB,cAAc,CAAC,IAAI;gBACnB,cAAc,CAAC,GAAG;gBAClB,cAAc,CAAC,IAAI,CACrB,CAAC;SACJ;QAED,IAAI,qBAAqB,GAAG,IAAI,CAAC;QAEjC,KAAK,MAAM,QAAQ,IAAI,YAAY,EAAE;YAClC,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE;gBAC5B,qBAAqB,GAAG,KAAK,CAAC;gBAC9B,MAAM;aACR;SACH;QAED,OAAO,qBAAqB,CAAC;IAChC,CAAC;IAED;;;;;;OAMG;IACK,wBAAwB,CAAC,KAAoB,EAAE,SAAkB;;QACtE,IAAI,CAAC,SAAS,EAAE;YACb,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,cAAc,qDAAI,CAAC;YAC1B,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,eAAe,qDAAI,CAAC;SAC7B;IACJ,CAAC;CACH"}
@@ -1,7 +1,6 @@
1
1
  export interface IKeyboardOptions {
2
2
  type: 'keydown' | 'keyup';
3
3
  propagate: boolean;
4
- enableShadowDom: boolean;
5
4
  element: HTMLElement | Document;
6
5
  debounceTime: number;
7
6
  description?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sankhyalabs/core",
3
- "version": "0.0.0-bugfix-dev-KB-75940.1",
3
+ "version": "0.0.0-bugfix-dev-KB-81596.0",
4
4
  "description": "Modulo core JavaScript da Sankhya.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -1,77 +1,99 @@
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="94"/>
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="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="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="0"/>
14
- <testCase name="ObjectUtils should get an object value based on its path" duration="0"/>
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="0"/>
17
- </file>
18
3
  <file path="/builds/dti/design-system/sankhyacore/test/util/CriteriaModel.spec.ts">
19
- <testCase name="StringUtils it should return the undefined and [] to Criteria Props through new class with empty constructor" duration="84"/>
20
- <testCase name="StringUtils it should modify &quot;expressions&quot; and &quot;parameters&quot; properties through Setters methods" duration="1"/>
4
+ <testCase name="StringUtils it should return the undefined and [] to Criteria Props through new class with empty constructor" duration="8"/>
5
+ <testCase name="StringUtils it should modify &quot;expressions&quot; and &quot;parameters&quot; properties through Setters methods" duration="65"/>
21
6
  <testCase name="StringUtils it should return &quot;expression&quot; and &quot;parameters&quot; setted through constructor method" duration="1"/>
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="2"/>
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"/>
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"/>
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="1"/>
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"/>
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="25"/>
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="2"/>
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="2"/>
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"/>
26
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="0"/>
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="2"/>
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="95"/>
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="87"/>
29
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="1"/>
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
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="1"/>
32
- <testCase name="StringUtils it should return a toJSON object with through empty constructor" duration="1"/>
17
+ <testCase name="StringUtils it should return a toJSON object with through empty constructor" duration="0"/>
18
+ </file>
19
+ <file path="/builds/dti/design-system/sankhyacore/test/util/NumberUtils.spec.ts">
20
+ <testCase name="StringUtils stringToNumber" duration="17"/>
21
+ <testCase name="StringUtils format" duration="93"/>
22
+ <testCase name="StringUtils format without formatnumber parameter" duration="1"/>
23
+ <testCase name="StringUtils format without formatnumber parameter" duration="2"/>
24
+ <testCase name="StringUtils format round number" duration="2"/>
25
+ </file>
26
+ <file path="/builds/dti/design-system/sankhyacore/test/dataunit/loader/utils/dataUnitLoaderUtils.spec.ts">
27
+ <testCase name="Utility Functions applyFilter should return the original records if no filters are provided" duration="101"/>
28
+ <testCase name="Utility Functions applyFilter should filter records based on provided filters" duration="1"/>
29
+ <testCase name="Utility Functions buildPaginationInfo function should return correct pagination info with default values" duration="1"/>
30
+ <testCase name="Utility Functions buildPaginationInfo function should redosLenth as same size as recordsPerPage" duration="1"/>
31
+ <testCase name="Utility Functions buildPaginationInfo function should handle case when totalRecordsLength and offset 0" duration="1"/>
32
+ <testCase name="Utility Functions buildPaginationInfo function should handle case when currentPageLength is less than totalRecordsLength and lastPage" duration="0"/>
33
+ <testCase name="Utility Functions applySorting function should return the original records if no sorting is provided" duration="1"/>
34
+ <testCase name="Utility Functions applySorting function should sort records based on provided sorting criteria" duration="1"/>
33
35
  </file>
34
36
  <file path="/builds/dti/design-system/sankhyacore/test/util/MaskFormatter.spec.ts">
35
- <testCase name="Mask Formatter mask:CPF complete valid" duration="93"/>
36
- <testCase name="Mask Formatter mask:CPF complete valid literals" duration="1"/>
37
- <testCase name="Mask Formatter mask:CPF incomplete valid" duration="1"/>
37
+ <testCase name="Mask Formatter mask:CPF complete valid" duration="2"/>
38
+ <testCase name="Mask Formatter mask:CPF complete valid literals" duration="0"/>
39
+ <testCase name="Mask Formatter mask:CPF incomplete valid" duration="73"/>
38
40
  <testCase name="Mask Formatter mask:CPF incomplete valid placeholder" duration="1"/>
39
41
  <testCase name="Mask Formatter mask:CPF too long valid" duration="0"/>
40
- <testCase name="Mask Formatter mask:CPF invalid for string" duration="210"/>
41
- <testCase name="Mask Formatter mask:CPF invalid for being too long" duration="93"/>
42
- <testCase name="Mask Formatter mask:Licence plate valid uppercase" duration="5"/>
42
+ <testCase name="Mask Formatter mask:CPF invalid for string" duration="326"/>
43
+ <testCase name="Mask Formatter mask:CPF invalid for being too long" duration="1"/>
44
+ <testCase name="Mask Formatter mask:Licence plate valid uppercase" duration="1"/>
43
45
  <testCase name="Mask Formatter mask:Licence plate valid lowercase" duration="1"/>
44
- <testCase name="Mask Formatter mask:Licence plate invalid" duration="2"/>
46
+ <testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
45
47
  <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="0"/>
47
- <testCase name="Mask Formatter mask:Licence plate invalid" duration="92"/>
48
+ <testCase name="Mask Formatter mask:Licence plate invalid for being too short with placeholder" duration="1"/>
49
+ <testCase name="Mask Formatter mask:Licence plate invalid" duration="22"/>
48
50
  <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
49
- <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="0"/>
51
+ <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="1"/>
50
52
  <testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
51
53
  <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
52
54
  <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="0"/>
53
55
  <testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
54
- <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
55
- <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="85"/>
56
- <testCase name="Mask Formatter mask:Licence plate invalid" duration="4"/>
56
+ <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="0"/>
57
+ <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="17"/>
58
+ <testCase name="Mask Formatter mask:Licence plate invalid" duration="2"/>
57
59
  </file>
58
- <file path="/builds/dti/design-system/sankhyacore/test/http/HttpProvider.spec.ts">
59
- <testCase name="HttpProvider Metodo GET" duration="1"/>
60
+ <file path="/builds/dti/design-system/sankhyacore/test/util/OverflowWatcher.spec.ts">
61
+ <testCase name="OverflowWatcher should initialize with provided parameters" duration="19"/>
62
+ <testCase name="OverflowWatcher should disconect ResizeObserver when destroy is called" duration="63"/>
63
+ <testCase name="OverflowWatcher Should call callback on forceUpdate" duration="135"/>
64
+ <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan" duration="114"/>
65
+ <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan when notOverFlow is empty" duration="120"/>
66
+ <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan considering overflowed elements" duration="10"/>
67
+ <testCase name="OverflowWatcher Should call callback on forceUpdate with empty list" duration="13"/>
68
+ <testCase name="OverflowWatcher should ignore elements that can not overflow" duration="100"/>
69
+ <testCase name="OverflowWatcher Should not call callback on forceUpdate" duration="2"/>
60
70
  </file>
61
- <file path="/builds/dti/design-system/sankhyacore/test/http/SkwHttpProvider.ts.spec.ts">
62
- <testCase name="HttpProvider Metodo POST" duration="5"/>
71
+ <file path="/builds/dti/design-system/sankhyacore/src/utils/test/objectUtils.spec.ts">
72
+ <testCase name="ObjectUtils hasEquivalentValues should return true if both objects have the same property value" duration="1"/>
73
+ <testCase name="ObjectUtils hasEquivalentValues should return false if both objects have different property values" duration="1"/>
74
+ <testCase name="ObjectUtils hasEquivalentValues should return true if both objects are equivalent with custom property to compare" duration="0"/>
75
+ <testCase name="ObjectUtils hasEquivalentValues should return false if both objects are not equivalent with custom property to compare" duration="1"/>
76
+ <testCase name="ObjectUtils hasEquivalentValues should return false if one object does not have the property" duration="0"/>
77
+ <testCase name="ObjectUtils hasEquivalentValues should return true if comparing primitive values directly" duration="1"/>
78
+ <testCase name="ObjectUtils hasEquivalentValues should return false if comparing different primitive values" duration="0"/>
79
+ <testCase name="ObjectUtils hasEquivalentValues should return true when comparing object with a null value" duration="0"/>
80
+ <testCase name="ObjectUtils hasEquivalentValues should return false when comparing object with null and non-null value" duration="0"/>
81
+ <testCase name="ObjectUtils hasEquivalentValues should return true when comparing non-object values that are equal" duration="0"/>
82
+ <testCase name="ObjectUtils should get an object value based on its path" duration="1"/>
83
+ <testCase name="ObjectUtils should get an object value based on its path" duration="0"/>
84
+ <testCase name="ObjectUtils should return undefined if the path doesn&apos;t exist in the object" duration="1"/>
63
85
  </file>
64
- <file path="/builds/dti/design-system/sankhyacore/test/util/CriteriaParameter.spec.ts">
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="89"/>
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="1"/>
67
- <testCase name="StringUtils it should return the correct JSON/Object value through the buildParam method" duration="1"/>
86
+ <file path="/builds/dti/design-system/sankhyacore/test/util/ColumnFilterManager.spec.ts">
87
+ <testCase name="ColumnFilterManager getColumnFilters should return an empty map if filters are undefined or empty" duration="2"/>
88
+ <testCase name="ColumnFilterManager getColumnFilters should return a map of filters matching the pattern and not the provided fieldName" duration="1"/>
89
+ <testCase name="ColumnFilterManager getFilterFunction should return undefined if no filters are provided" duration="0"/>
90
+ <testCase name="ColumnFilterManager getFilterFunction should return a function that evaluates records based on filters" duration="1"/>
91
+ <testCase name="ColumnFilterManager getFilterFunction should return a function that evaluates records and return false" duration="1"/>
92
+ <testCase name="ColumnFilterManager compileDistinct should return an array of distinct field values formatted correctly" duration="1"/>
93
+ <testCase name="ColumnFilterManager compileDistinct should filter records if a load request is present" duration="1"/>
68
94
  </file>
69
- <file path="/builds/dti/design-system/sankhyacore/test/util/NumberUtils.spec.ts">
70
- <testCase name="StringUtils stringToNumber" duration="199"/>
71
- <testCase name="StringUtils format" duration="120"/>
72
- <testCase name="StringUtils format without formatnumber parameter" duration="0"/>
73
- <testCase name="StringUtils format without formatnumber parameter" duration="1"/>
74
- <testCase name="StringUtils format round number" duration="3"/>
95
+ <file path="/builds/dti/design-system/sankhyacore/test/http/HttpProvider.spec.ts">
96
+ <testCase name="HttpProvider Metodo GET" duration="1"/>
75
97
  </file>
76
98
  <file path="/builds/dti/design-system/sankhyacore/test/util/StringUtils.spec.ts">
77
99
  <testCase name="StringUtils valor vazio" duration="1"/>
@@ -79,137 +101,115 @@
79
101
  <testCase name="StringUtils valor null" duration="0"/>
80
102
  <testCase name="StringUtils valor undefined" duration="0"/>
81
103
  <testCase name="StringUtils valor 0" duration="1"/>
82
- <testCase name="StringUtils com valor" duration="2"/>
83
- <testCase name="StringUtils substitui vogais com acento por vogais sem acento" duration="2"/>
84
- <testCase name="StringUtils should return the original value when called with an object without a toString method" duration="3"/>
85
- <testCase name="StringUtils should return the original value when called with undefined" duration="81"/>
104
+ <testCase name="StringUtils com valor" duration="0"/>
105
+ <testCase name="StringUtils substitui vogais com acento por vogais sem acento" duration="192"/>
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="1"/>
86
108
  </file>
87
- <file path="/builds/dti/design-system/sankhyacore/test/dataunit/loader/utils/dataUnitLoaderUtils.spec.ts">
88
- <testCase name="Utility Functions applyFilter should return the original records if no filters are provided" duration="8"/>
89
- <testCase name="Utility Functions applyFilter should filter records based on provided filters" duration="1"/>
90
- <testCase name="Utility Functions buildPaginationInfo function should return correct pagination info with default values" duration="1"/>
91
- <testCase name="Utility Functions buildPaginationInfo function should redosLenth as same size as recordsPerPage" duration="1"/>
92
- <testCase name="Utility Functions buildPaginationInfo function should handle case when totalRecordsLength and offset 0" duration="1"/>
93
- <testCase name="Utility Functions buildPaginationInfo function should handle case when currentPageLength is less than totalRecordsLength and lastPage" duration="0"/>
94
- <testCase name="Utility Functions applySorting function should return the original records if no sorting is provided" duration="1"/>
95
- <testCase name="Utility Functions applySorting function should sort records based on provided sorting criteria" duration="1"/>
109
+ <file path="/builds/dti/design-system/sankhyacore/test/http/SkwHttpProvider.ts.spec.ts">
110
+ <testCase name="HttpProvider Metodo POST" duration="1"/>
96
111
  </file>
97
- <file path="/builds/dti/design-system/sankhyacore/test/util/ColumnFilterManager.spec.ts">
98
- <testCase name="ColumnFilterManager getColumnFilters should return an empty map if filters are undefined or empty" duration="7"/>
99
- <testCase name="ColumnFilterManager getColumnFilters should return a map of filters matching the pattern and not the provided fieldName" duration="1"/>
100
- <testCase name="ColumnFilterManager getFilterFunction should return undefined if no filters are provided" duration="1"/>
101
- <testCase name="ColumnFilterManager getFilterFunction should return a function that evaluates records based on filters" duration="2"/>
102
- <testCase name="ColumnFilterManager getFilterFunction should return a function that evaluates records and return false" duration="0"/>
103
- <testCase name="ColumnFilterManager compileDistinct should return an array of distinct field values formatted correctly" duration="2"/>
104
- <testCase name="ColumnFilterManager compileDistinct should filter records if a load request is present" duration="0"/>
112
+ <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="38"/>
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"/>
115
+ <testCase name="StringUtils it should return the correct JSON/Object value through the buildParam method" duration="0"/>
105
116
  </file>
106
- <file path="/builds/dti/design-system/sankhyacore/test/util/OverflowWatcher.spec.ts">
107
- <testCase name="OverflowWatcher should initialize with provided parameters" duration="199"/>
108
- <testCase name="OverflowWatcher should disconect ResizeObserver when destroy is called" duration="2"/>
109
- <testCase name="OverflowWatcher Should call callback on forceUpdate" duration="397"/>
110
- <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan" duration="107"/>
111
- <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan when notOverFlow is empty" duration="99"/>
112
- <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan considering overflowed elements" duration="8"/>
113
- <testCase name="OverflowWatcher Should call callback on forceUpdate with empty list" duration="3"/>
114
- <testCase name="OverflowWatcher should ignore elements that can not overflow" duration="96"/>
115
- <testCase name="OverflowWatcher Should not call callback on forceUpdate" duration="1"/>
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="1"/>
116
119
  </file>
117
120
  <file path="/builds/dti/design-system/sankhyacore/test/util/TimeFormatter.spec.ts">
118
121
  <testCase name="TimeFormatter Case: input string unformated with showSeconds" duration="2"/>
119
- <testCase name="TimeFormatter Case: input string unformated without showSeconds" duration="0"/>
120
- <testCase name="TimeFormatter Case: validateTime" duration="3"/>
121
- </file>
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"/>
122
+ <testCase name="TimeFormatter Case: input string unformated without showSeconds" duration="13"/>
123
+ <testCase name="TimeFormatter Case: validateTime" duration="1"/>
124
124
  </file>
125
125
  <file path="/builds/dti/design-system/sankhyacore/test/util/DataUnitStorage.spec.ts">
126
- <testCase name="DataUnitStorage put should store a DataUnit instance in the DataUnitStorage" duration="71"/>
127
- <testCase name="DataUnitStorage get should return the stored DataUnit instance from the DataUnitStorage" duration="1"/>
128
- <testCase name="DataUnitStorage get should return undefined if the DataUnit instance is not found in the DataUnitStorage" duration="13"/>
129
- <testCase name="DataUnitStorage remove should remove the specified DataUnit instance from the DataUnitStorage" duration="1"/>
126
+ <testCase name="DataUnitStorage put should store a DataUnit instance in the DataUnitStorage" duration="3"/>
127
+ <testCase name="DataUnitStorage get should return the stored DataUnit instance from the DataUnitStorage" duration="65"/>
128
+ <testCase name="DataUnitStorage get should return undefined if the DataUnit instance is not found in the DataUnitStorage" duration="0"/>
129
+ <testCase name="DataUnitStorage remove should remove the specified DataUnit instance from the DataUnitStorage" duration="0"/>
130
130
  <testCase name="DataUnitStorage remove should remove the DataUnit instance with the specified name from the DataUnitStorage" duration="1"/>
131
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="1"/>
132
132
  </file>
133
133
  <file path="/builds/dti/design-system/sankhyacore/src/dataunit/test/DataUnit.spec.ts">
134
- <testCase name="DataUnit should return false when not waiting to reload" duration="3"/>
134
+ <testCase name="DataUnit should return false when not waiting to reload" duration="62"/>
135
135
  <testCase name="DataUnit should set waitingToReload to true" duration="0"/>
136
136
  <testCase name="DataUnit should set waitingToReload to false" duration="1"/>
137
137
  <testCase name="DataUnit should dispatch SAVING_CANCELED action with correct fields and recordId" duration="1"/>
138
138
  </file>
139
139
  <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="14"/>
140
+ <testCase name="addIDInfo 1 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="15"/>
141
141
  <testCase name="addIDInfo 2 - should add data-element-id with valid id &quot;brComSankhyaFinCadMovimentacaofinanceira_snkApplication&quot;" duration="2"/>
142
- <testCase name="addIDInfo 3 - should add data-element-id with valid id &quot;movFinanceira_br.com.sankhya.fin.cad.movimentacaoFinanceira&quot;" duration="1"/>
142
+ <testCase name="addIDInfo 3 - should add data-element-id with valid id &quot;movFinanceira_br.com.sankhya.fin.cad.movimentacaoFinanceira&quot;" duration="2"/>
143
143
  <testCase name="addIDInfo 4 - should add data-element-id with valid id &quot;meuID2_snkApplication&quot;" duration="1"/>
144
144
  <testCase name="addIDInfo 5 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="1"/>
145
145
  <testCase name="addIDInfo 6 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="1"/>
146
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="74"/>
148
- <testCase name="addIDInfo 9 - should add data-element-id with valid id &quot;dataunitFinanceiro_br.com.sankhya.fin.cad.movimentacaoFinanceira&quot;" duration="2"/>
149
- <testCase name="addIDInfo 10 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIDTeste_br.com.sankhya.fin.cad.movimentacaoFinanceira&quot;" duration="2"/>
150
- <testCase name="addIDInfo 11 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira&quot;" duration="1"/>
151
- <testCase name="addIDInfo 12 - should add data-element-id with valid id &quot;dataunitFinanceiro_movFinanceira_movimentacaoFinanceira&quot;" duration="2"/>
147
+ <testCase name="addIDInfo 8 - should add data-element-id with valid id &quot;componentLabel_snkApplication&quot;" duration="1"/>
148
+ <testCase name="addIDInfo 9 - should add data-element-id with valid id &quot;dataunitFinanceiro_br.com.sankhya.fin.cad.movimentacaoFinanceira&quot;" duration="70"/>
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"/>
150
+ <testCase name="addIDInfo 11 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira&quot;" duration="2"/>
151
+ <testCase name="addIDInfo 12 - should add data-element-id with valid id &quot;dataunitFinanceiro_movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
152
152
  <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="7"/>
154
- <testCase name="addIDInfo 15 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIdTeste_snkApplication&quot;" duration="1"/>
153
+ <testCase name="addIDInfo 14 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIdTeste_movimentacaoFinanceira&quot;" duration="2"/>
154
+ <testCase name="addIDInfo 15 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIdTeste_snkApplication&quot;" duration="0"/>
155
155
  <testCase name="addIDInfo 16 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIdTeste_snkApplication&quot;" duration="1"/>
156
156
  <testCase name="addIDInfo 17 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
157
157
  <testCase name="addIDInfo 18 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
158
158
  <testCase name="addIDInfo 19 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
159
159
  <testCase name="addIDInfo 20 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
160
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"/>
162
- </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="5"/>
165
- <testCase name="getFormattedValue should return empty string when value is not an array" duration="1"/>
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="0"/>
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="1"/>
175
- <testCase name="getFormattedValue should format numbers correctly" duration="13"/>
176
- <testCase name="getFormattedValue should format dates correctly" duration="4"/>
177
- <testCase name="getFormattedValue should format times correctly" duration="0"/>
178
- <testCase name="getFormattedValue should format datetime correctly" duration="1"/>
179
- <testCase name="getFormattedValue should call toString with correct parameters" duration="1"/>
180
- <testCase name="getFormattedValue should handle undefined descriptor gracefully" duration="10"/>
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="0"/>
183
- <testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and value as object" duration="1"/>
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"/>
161
+ <testCase name="addIDInfo 22 - should add data-element-id with valid id &quot;bancoObrigatorio_movimentacaoFinanceira&quot;" duration="0"/>
188
162
  </file>
189
163
  <file path="/builds/dti/design-system/sankhyacore/test/dataunit/loader/dataUnitInMemoryLoader.spec.ts">
190
- <testCase name="DataUnitInMemoryLoader - loadData should be called load data when auto load is true" duration="65"/>
164
+ <testCase name="DataUnitInMemoryLoader - loadData should be called load data when auto load is true" duration="12"/>
191
165
  <testCase name="DataUnitInMemoryLoader - loadData should be called load data when auto load is undefined" duration="2"/>
192
166
  <testCase name="DataUnitInMemoryLoader - loadData should not be called load data when auto load is false" duration="1"/>
193
167
  <testCase name="DataUnitInMemoryLoader - loadData should be called load data when config is undefined" duration="1"/>
194
168
  <testCase name="DataUnitInMemoryLoader - getConvertedValue should return the original string if descriptor is undefined" duration="1"/>
195
169
  <testCase name="DataUnitInMemoryLoader - getConvertedValue should return the original string if dataType is TEXT" duration="0"/>
196
- <testCase name="DataUnitInMemoryLoader - getConvertedValue should convert to boolean when dataType is BOOLEAN" duration="4"/>
170
+ <testCase name="DataUnitInMemoryLoader - getConvertedValue should convert to boolean when dataType is BOOLEAN" duration="1"/>
197
171
  <testCase name="DataUnitInMemoryLoader - getConvertedValue should convert to number when dataType is NUMBER" duration="1"/>
198
172
  <testCase name="DataUnitInMemoryLoader - getConvertedValue should parse JSON when dataType is OBJECT" duration="1"/>
199
173
  <testCase name="DataUnitInMemoryLoader - getConvertedValue should convert to date when dataType is DATE and format is ISO" duration="1"/>
200
- <testCase name="DataUnitInMemoryLoader - getConvertedValue should convert to date when dataType is DATE and format is not ISO" duration="1"/>
201
- <testCase name="DataUnitInMemoryLoader - getConvertedValue should return the original string if no dataType matches" duration="0"/>
174
+ <testCase name="DataUnitInMemoryLoader - getConvertedValue should convert to date when dataType is DATE and format is not ISO" duration="0"/>
175
+ <testCase name="DataUnitInMemoryLoader - getConvertedValue should return the original string if no dataType matches" duration="1"/>
202
176
  <testCase name="DataUnitInMemoryLoader - removeLoader should resolve with the provided record IDs" duration="1"/>
203
177
  <testCase name="DataUnitInMemoryLoader - removeLoader should handle empty record ID array" duration="1"/>
204
178
  <testCase name="DataUnitInMemoryLoader - removeLoader should resolve the promise" duration="1"/>
205
179
  <testCase name="DataUnitInMemoryLoader - buildInitialRecords (indiretamente via set records) should build initial records and convert field values based on metadata" duration="2"/>
206
180
  <testCase name="DataUnitInMemoryLoader - buildInitialRecords (indiretamente via set records) should generate unique IDs for records without &quot;__record__id__&quot;" duration="2"/>
207
- <testCase name="DataUnitInMemoryLoader - buildInitialRecords (indiretamente via set records) should leave fields untouched if no matching metadata exists" duration="1"/>
181
+ <testCase name="DataUnitInMemoryLoader - buildInitialRecords (indiretamente via set records) should leave fields untouched if no matching metadata exists" duration="53"/>
208
182
  <testCase name="DataUnitInMemoryLoader - buildInitialRecords (indiretamente via set records) should skip conversion for non-string field values" duration="2"/>
209
183
  </file>
210
184
  <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="29"/>
185
+ <testCase name="calcMarginSize should calculate correctly the size of horizontal margin" duration="28"/>
212
186
  <testCase name="calcMarginSize should calculate correctly the size of vertical margin" duration="2"/>
213
- <testCase name="calcMarginSize should threat values defined as zero" duration="4"/>
187
+ <testCase name="calcMarginSize should threat values defined as zero" duration="55"/>
188
+ </file>
189
+ <file path="/builds/dti/design-system/sankhyacore/test/dataunit/formatting/PrettyFormatter.spec.ts">
190
+ <testCase name="getFormattedValue should return empty string when value is null" duration="59"/>
191
+ <testCase name="getFormattedValue should return empty string when value is not an array" duration="1"/>
192
+ <testCase name="getFormattedValue should return empty string when value is an empty array" duration="0"/>
193
+ <testCase name="getFormattedValue should return file name when value is an array with one file object" duration="0"/>
194
+ <testCase name="getFormattedValue should return file count when value is an array with multiple file objects" duration="1"/>
195
+ <testCase name="getFormattedValue should return empty string for undefined file" duration="0"/>
196
+ <testCase name="getFormattedValue should handle OBJECT type with value field" duration="1"/>
197
+ <testCase name="getFormattedValue should return empty string when value is undefined" duration="1"/>
198
+ <testCase name="getFormattedValue should return value as string when value is not an object" duration="0"/>
199
+ <testCase name="getFormattedValue should return value.toString() when value is an object without value property" duration="1"/>
200
+ <testCase name="getFormattedValue should handle BOOLEAN type" duration="0"/>
201
+ <testCase name="getFormattedValue should format numbers correctly" duration="17"/>
202
+ <testCase name="getFormattedValue should format dates correctly" duration="7"/>
203
+ <testCase name="getFormattedValue should format times correctly" duration="1"/>
204
+ <testCase name="getFormattedValue should format datetime correctly" duration="0"/>
205
+ <testCase name="getFormattedValue should call toString with correct parameters" duration="1"/>
206
+ <testCase name="getFormattedValue should handle undefined descriptor gracefully" duration="1"/>
207
+ <testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and matching option" duration="0"/>
208
+ <testCase name="getFormattedValue should return value with OPTIONSELECTOR and no matching option" duration="1"/>
209
+ <testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and value as object" duration="0"/>
210
+ <testCase name="getFormattedValue should return empty string with OPTIONSELECTOR and value as null" duration="0"/>
211
+ <testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and options as JSON string" duration="1"/>
212
+ <testCase name="getFormattedValue should return value with OPTIONSELECTOR and options as empty array" duration="0"/>
213
+ <testCase name="getFormattedValue should format masked values correctly" duration="3"/>
214
214
  </file>
215
215
  </unitTest>
@@ -9,7 +9,6 @@ import { keyCodeEventValues } from "./keyCodes/index.js";
9
9
  */
10
10
  export class KeyboardManager {
11
11
  private _options: IKeyboardOptions;
12
- private _shadowRoots: ShadowRoot [] = [];
13
12
  private _mappedElements: IKeyboardMappedKeysElements = {};
14
13
 
15
14
  /**
@@ -23,48 +22,10 @@ export class KeyboardManager {
23
22
  propagate: false,
24
23
  element: document.body,
25
24
  debounceTime: 0,
26
- enableShadowDom: false,
27
25
  ...options
28
26
  }
29
-
30
- if(this._options.enableShadowDom) {
31
- this._shadowRoots = this.findAllNestedShadowRoots(this._options.element);
32
- }
33
27
  }
34
28
 
35
- private findAllNestedShadowRoots(element: HTMLElement | Element | ChildNode | Document , results: ShadowRoot [] = []): ShadowRoot [] {
36
- if (!element) {
37
- return results;
38
- }
39
-
40
- const shadowRoot = (element as HTMLElement)?.shadowRoot;
41
- if (shadowRoot) {
42
- results.push(shadowRoot);
43
-
44
- shadowRoot.querySelectorAll("*").forEach((child) => {
45
- this.findAllNestedShadowRoots(child, results);
46
- });
47
- }
48
-
49
- element.childNodes.forEach((child) => {
50
- this.findAllNestedShadowRoots(child, results);
51
- });
52
-
53
- return results;
54
- }
55
-
56
- private addEventListenerToNestedShadowRoots(event: 'keydown' | 'keyup', callback: VoidFunction) {
57
- this._shadowRoots.forEach((shadowRoot) => {
58
- shadowRoot.addEventListener(event, callback);
59
- });
60
- }
61
-
62
- private removeEventListenerToNestedShadowRoots(event: 'keydown' | 'keyup', callback: VoidFunction) {
63
- this._shadowRoots.forEach((shadowRoot) => {
64
- shadowRoot.removeEventListener(event, callback);
65
- });
66
- }
67
-
68
29
  /**
69
30
  * Associa um evento de teclado com uma função
70
31
  *
@@ -100,10 +61,6 @@ export class KeyboardManager {
100
61
 
101
62
  bindOptions.element.addEventListener(bindOptions.type, debounceFunction);
102
63
 
103
- if(bindOptions.enableShadowDom) {
104
- this.addEventListenerToNestedShadowRoots(bindOptions.type, debounceFunction);
105
- }
106
-
107
64
  return this;
108
65
  }
109
66
 
@@ -129,10 +86,6 @@ export class KeyboardManager {
129
86
 
130
87
  element.removeEventListener(type, callback);
131
88
 
132
- if(unbindElement.options.enableShadowDom) {
133
- this.removeEventListenerToNestedShadowRoots(type, callback);
134
- }
135
-
136
89
  return this;
137
90
  }
138
91
 
@@ -1,7 +1,6 @@
1
1
  export interface IKeyboardOptions {
2
2
  type: 'keydown' | 'keyup',
3
3
  propagate: boolean,
4
- enableShadowDom: boolean,
5
4
  element: HTMLElement | Document,
6
5
  debounceTime: number,
7
6
  description?: string,