@sankhyalabs/core 5.20.0-dev.55 → 5.20.0-dev.57

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.
Files changed (40) hide show
  1. package/.docs/classes/Change.md +11 -11
  2. package/.docs/classes/DataUnit.md +135 -135
  3. package/.docs/classes/LockManager.md +191 -0
  4. package/.docs/classes/MaskFormatter.md +61 -13
  5. package/.docs/classes/SelectionInfo.md +12 -12
  6. package/.docs/classes/SilentException.md +193 -0
  7. package/.docs/enumerations/ChangeOperation.md +4 -4
  8. package/.docs/enumerations/LockManagerOperation.md +21 -0
  9. package/.docs/enumerations/SelectionMode.md +2 -2
  10. package/.docs/globals.md +3 -0
  11. package/.docs/interfaces/DUActionInterceptor.md +1 -1
  12. package/.docs/interfaces/PageRequest.md +3 -3
  13. package/.docs/interfaces/QuickFilter.md +3 -3
  14. package/.docs/interfaces/Record.md +4 -4
  15. package/.docs/interfaces/SavedRecord.md +5 -5
  16. package/.docs/interfaces/WaitingChange.md +3 -3
  17. package/.docs/namespaces/MaskFormatter/type-aliases/MaskCharacter.md +1 -1
  18. package/.docs/namespaces/MaskFormatter/variables/MaskCharacter.md +1 -1
  19. package/.docs/type-aliases/DataUnitEventOptions.md +1 -1
  20. package/dist/dataunit/DataUnit.js +4 -2
  21. package/dist/dataunit/DataUnit.js.map +1 -1
  22. package/dist/exceptions/SilentException.d.ts +14 -0
  23. package/dist/exceptions/SilentException.js +13 -0
  24. package/dist/exceptions/SilentException.js.map +1 -0
  25. package/dist/index.d.ts +3 -1
  26. package/dist/index.js +3 -1
  27. package/dist/index.js.map +1 -1
  28. package/dist/utils/LockManager.d.ts +46 -0
  29. package/dist/utils/LockManager.js +141 -0
  30. package/dist/utils/LockManager.js.map +1 -0
  31. package/dist/utils/MaskFormatter.d.ts +14 -0
  32. package/dist/utils/MaskFormatter.js +77 -1
  33. package/dist/utils/MaskFormatter.js.map +1 -1
  34. package/package.json +1 -1
  35. package/reports/test-report.xml +107 -107
  36. package/src/dataunit/DataUnit.ts +7 -4
  37. package/src/exceptions/SilentException.ts +25 -0
  38. package/src/index.ts +6 -1
  39. package/src/utils/LockManager.ts +157 -0
  40. package/src/utils/MaskFormatter.ts +88 -1
@@ -0,0 +1,141 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { StringUtils } from "./StringUtils.js";
11
+ /**
12
+ * Define os tipos de operação que o locker pode controlar
13
+ */
14
+ export var LockManagerOperation;
15
+ (function (LockManagerOperation) {
16
+ /**
17
+ Operação de lock utilizada para controlar cliques nos botoes da taskbar.
18
+ */
19
+ LockManagerOperation["TASKBAR_CLICK"] = "taskbar_click";
20
+ })(LockManagerOperation || (LockManagerOperation = {}));
21
+ export class LockManager {
22
+ static buildContextID() {
23
+ return StringUtils.generateUUID();
24
+ }
25
+ static buildLockerID(ctxId, operation) {
26
+ if (ctxId == undefined)
27
+ return undefined;
28
+ let resolvedID = ctxId;
29
+ if (resolvedID instanceof HTMLElement) {
30
+ resolvedID = ctxId.getAttribute(LockManager.ATTRIBUTE_NAME);
31
+ if (!resolvedID)
32
+ return undefined;
33
+ }
34
+ return `${resolvedID}_${operation}`;
35
+ }
36
+ /**
37
+ * Cria um contexto de locker, caso nao exista, para todos elementos pais iniciados com ez- ou snk-.
38
+ *
39
+ * @param startElement - Elemento de de onde o lock deve começar.
40
+ *
41
+ * @returns - O id do locker, que pode ser usado para iniciar ou aguardar um lock do contexto.
42
+ */
43
+ static addLockManagerCtxId(startElement) {
44
+ var _a;
45
+ try {
46
+ if (!startElement) {
47
+ console.error("Elemento inicial não fornecido.");
48
+ return "";
49
+ }
50
+ const ctxId = (_a = LockManager.findExistingCtxId(startElement)) !== null && _a !== void 0 ? _a : LockManager.buildContextID();
51
+ let currentElement = startElement;
52
+ while (currentElement && currentElement.tagName != 'BODY') {
53
+ LockManager.traverseAndAddAttr(currentElement, ctxId);
54
+ currentElement = currentElement.parentElement;
55
+ }
56
+ return ctxId;
57
+ }
58
+ catch (err) {
59
+ console.warn(`Erro ao registrar locks para o elemento: ${startElement === null || startElement === void 0 ? void 0 : startElement.tagName}`, err);
60
+ return "";
61
+ }
62
+ }
63
+ /**
64
+ * Inicia um locker baseado em um contexto e uma operação.
65
+ *
66
+ * @param id - Pode ser um ID do contexto de locker, ou, o elemento contendo um contexto de locker.
67
+ * @param operation - Operação do contexto que o lock deve ser feito.
68
+ *
69
+ * @returns - Uma função que fara a liberação do lock.
70
+ */
71
+ static lock(id, operation) {
72
+ var _a;
73
+ const lockerId = LockManager.buildLockerID(id, operation);
74
+ if (!lockerId)
75
+ return () => { };
76
+ const lock = { done: false };
77
+ const promise = new Promise(resolve => lock.resolve = resolve);
78
+ lock.promise = promise;
79
+ const currentLocks = (_a = LockManager._locks.get(lockerId)) !== null && _a !== void 0 ? _a : [];
80
+ currentLocks.push(lock);
81
+ LockManager._locks.set(lockerId, currentLocks);
82
+ return () => {
83
+ var _a;
84
+ lock.done = true;
85
+ (_a = lock.resolve) === null || _a === void 0 ? void 0 : _a.call(lock);
86
+ };
87
+ }
88
+ /**
89
+ * Aguarda todos os lockers de um contexto e operação serem resolvidos.
90
+ *
91
+ * @param id - Pode ser um ID do contexto de locker, ou, o elemento contendo um contexto de locker.
92
+ * @param operation - Operação do contexto que devera aguardar.
93
+ *
94
+ * @returns - Promise que será resolvida quando todos lockers forem finalizados.
95
+ */
96
+ static whenResolve(id, operation) {
97
+ var _a, _b;
98
+ return __awaiter(this, void 0, void 0, function* () {
99
+ const lockerId = LockManager.buildLockerID(id, operation);
100
+ if (!lockerId)
101
+ return;
102
+ while ((_a = LockManager._locks.get(lockerId)) === null || _a === void 0 ? void 0 : _a.length) {
103
+ const locks = (_b = LockManager._locks.get(lockerId)) !== null && _b !== void 0 ? _b : [];
104
+ yield Promise.all(locks.map(lock => lock.promise));
105
+ //Aguarda listeners da tela reagirem as mudancas de estado do dataunit
106
+ yield new Promise(resolve => setTimeout(resolve, 200));
107
+ LockManager._locks.set(lockerId, locks.filter(lock => !lock.done));
108
+ }
109
+ });
110
+ }
111
+ }
112
+ LockManager._locks = new Map();
113
+ /**
114
+ * Nome do atributo que será utilizado para controlar contexto de locks nos elementos da DOM.
115
+ */
116
+ LockManager.ATTRIBUTE_NAME = "data-locker-manger-context-id";
117
+ LockManager.findExistingCtxId = (element) => {
118
+ let currentElement = element;
119
+ while (currentElement) {
120
+ if (currentElement.hasAttribute(LockManager.ATTRIBUTE_NAME)) {
121
+ return currentElement.getAttribute(LockManager.ATTRIBUTE_NAME);
122
+ }
123
+ const childWithCtxId = Array.from(currentElement.children).find(child => (child instanceof HTMLElement) && child.hasAttribute(LockManager.ATTRIBUTE_NAME));
124
+ if (childWithCtxId) {
125
+ return childWithCtxId.getAttribute(LockManager.ATTRIBUTE_NAME);
126
+ }
127
+ currentElement = currentElement.parentElement;
128
+ }
129
+ return null;
130
+ };
131
+ LockManager.traverseAndAddAttr = (element, ctxId) => {
132
+ if (element.tagName.startsWith('EZ-') || element.tagName.startsWith('SNK-')) {
133
+ element.setAttribute(LockManager.ATTRIBUTE_NAME, ctxId);
134
+ }
135
+ Array.from(element.children).forEach((child) => {
136
+ if (child instanceof HTMLElement) {
137
+ LockManager.traverseAndAddAttr(child, ctxId);
138
+ }
139
+ });
140
+ };
141
+ //# sourceMappingURL=LockManager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LockManager.js","sourceRoot":"","sources":["../../src/utils/LockManager.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,E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OAAoB,EAAE,KAAa,EAAQ,EAAE;IAC9E,IAAI,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE;QACzE,OAAO,CAAC,YAAY,CAAC,WAAW,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;KAC3D;IACD,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QAC3C,IAAI,KAAK,YAAY,WAAW,EAAE;YAC9B,WAAW,CAAC,kBAAkB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;SAChD;IACL,CAAC,CAAC,CAAC;AACP,CAAC,CAAC"}
@@ -71,6 +71,20 @@ export declare class MaskFormatter {
71
71
  */
72
72
  get mask(): string;
73
73
  constructor(mask: string);
74
+ /**
75
+ * Aplica a máscara quando o input é alterado
76
+ *
77
+ * @param value Valor a ser aplicado com a máscara.
78
+ * @return O valor processado de acordo com o padrão.
79
+ */
80
+ applyMask(value: string): string;
81
+ /**
82
+ * Remove a máscara formatando a string retornando sem máscara
83
+ *
84
+ * @param value Valor a ser formatado com máscara.
85
+ * @return O valor processado de acordo com o padrão.
86
+ */
87
+ removeMask(value: string): string;
74
88
  /**
75
89
  * Formata a string passada baseada na máscara definda pelo atributo mask.
76
90
  *
@@ -70,6 +70,81 @@ export class MaskFormatter {
70
70
  this.placeholder = ' ';
71
71
  this.mask = mask;
72
72
  }
73
+ /**
74
+ * Aplica a máscara quando o input é alterado
75
+ *
76
+ * @param value Valor a ser aplicado com a máscara.
77
+ * @return O valor processado de acordo com o padrão.
78
+ */
79
+ applyMask(value) {
80
+ if (this.mask === MaskFormatter.DEFAULT_MASKS.cor_rgb) {
81
+ value = value.replace("#", "");
82
+ const expectedFormattedValue = this.format(value.replace(/\s/g, ""));
83
+ if (value === expectedFormattedValue) {
84
+ return value;
85
+ }
86
+ if (value.length >= 6) {
87
+ const formattedValue = this.format(value);
88
+ return formattedValue;
89
+ }
90
+ else {
91
+ return value;
92
+ }
93
+ }
94
+ const expectedFormattedValue = this.format(value.replace(/\s/g, ""));
95
+ if (value === expectedFormattedValue) {
96
+ return value;
97
+ }
98
+ const maskPlaceholders = this.mask.match(/[UAL#?*']/g) || [];
99
+ const placeholderCount = maskPlaceholders.length;
100
+ const validValue = value.split('').filter((char, index) => {
101
+ const placeholder = maskPlaceholders[index];
102
+ if (!placeholder)
103
+ return false;
104
+ switch (placeholder) {
105
+ case MaskFormatter.DIGIT_KEY:
106
+ return /\d/.test(char);
107
+ case MaskFormatter.UPPERCASE_KEY:
108
+ return /[a-zA-Z]/.test(char);
109
+ case MaskFormatter.LOWERCASE_KEY:
110
+ return /[a-zA-Z]/.test(char);
111
+ case MaskFormatter.ALPHA_NUMERIC_KEY:
112
+ return /[a-zA-Z0-9]/.test(char);
113
+ case MaskFormatter.CHARACTER_KEY:
114
+ return /[a-zA-Z]/.test(char);
115
+ case MaskFormatter.ANYTHING_KEY:
116
+ return true;
117
+ case MaskFormatter.LITERAL_KEY:
118
+ const literalChar = this.mask.charAt(index);
119
+ return char === literalChar;
120
+ default:
121
+ return false;
122
+ }
123
+ });
124
+ if (validValue.length >= placeholderCount) {
125
+ const formattedValue = this.format(validValue.join(''));
126
+ return formattedValue;
127
+ }
128
+ else {
129
+ const partialValue = validValue.join('');
130
+ return partialValue;
131
+ }
132
+ }
133
+ /**
134
+ * Remove a máscara formatando a string retornando sem máscara
135
+ *
136
+ * @param value Valor a ser formatado com máscara.
137
+ * @return O valor processado de acordo com o padrão.
138
+ */
139
+ removeMask(value) {
140
+ const maskString = this.mask.replace("#", "");
141
+ const maskElements = maskString.split("");
142
+ let valueMapped = value;
143
+ maskElements.forEach(maskChar => {
144
+ valueMapped = valueMapped.replace(maskChar, "");
145
+ });
146
+ return valueMapped;
147
+ }
73
148
  /**
74
149
  * Formata a string passada baseada na máscara definda pelo atributo mask.
75
150
  *
@@ -146,7 +221,8 @@ MaskFormatter.DEFAULT_MASKS = {
146
221
  "cnpj": "##.###.###/####-##",
147
222
  "cpf": "###.###.###-##",
148
223
  "phone": "(##) ####-####",
149
- "cep": "##.###-###"
224
+ "cep": "##.###-###",
225
+ "cor_rgb": "'#AAAAAA"
150
226
  };
151
227
  //
152
228
  // Classes internas usadas para representar a máscara.
@@ -1 +1 @@
1
- {"version":3,"file":"MaskFormatter.js","sourceRoot":"","sources":["../../src/utils/MaskFormatter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAM,OAAO,aAAa;IA2BtB;;OAEG;IACH,IAAW,IAAI,CAAC,IAAY;QACxB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,kBAAkB,EAAE,CAAC;IAC9B,CAAC;IAED;;;;OAIG;IACH,IAAW,IAAI;QACX,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAED,YAAY,IAAY;QA1BhB,UAAK,GAAW,EAAE,CAAC;QACnB,eAAU,GAAuC,IAAI,KAAK,EAA+B,CAAC;QAElG;;;WAGG;QACI,gBAAW,GAAW,GAAG,CAAC;QAoB7B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;IAED;;;;;;OAMG;IACI,MAAM,CAAC,KAAa,EAAE,aAAsB,KAAK;QACpD,IAAG,UAAU,EAAC;YACV,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;SACxB;QACD,IAAI,MAAM,GAAW,EAAE,CAAC;QACxB,MAAM,KAAK,GAAkB,CAAC,CAAC,CAAC,CAAC;QAEjC,IAAI,OAAO,GAAW,CAAC,CAAC;QACxB,MAAM,UAAU,GAAW,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;QAClD,OAAO,OAAO,GAAG,UAAU,EAAE;YACzB,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CA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;MAKE;IACK,gBAAgB,CAAC,KAAa;QACjC,oFAAoF;QACpF,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC;IACnE,CAAC;CAEJ,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sankhyalabs/core",
3
- "version": "5.20.0-dev.55",
3
+ "version": "5.20.0-dev.57",
4
4
  "description": "Modulo core JavaScript da Sankhya.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -1,175 +1,175 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <unitTest version="1">
3
- <file path="/builds/dti/design-system/sankhyacore/test/http/HttpProvider.spec.ts">
4
- <testCase name="HttpProvider Metodo GET" duration="12"/>
5
- </file>
6
3
  <file path="/builds/dti/design-system/sankhyacore/test/http/SkwHttpProvider.ts.spec.ts">
7
- <testCase name="HttpProvider Metodo POST" duration="16"/>
4
+ <testCase name="HttpProvider Metodo POST" duration="93"/>
5
+ </file>
6
+ <file path="/builds/dti/design-system/sankhyacore/test/http/HttpProvider.spec.ts">
7
+ <testCase name="HttpProvider Metodo GET" duration="21"/>
8
8
  </file>
9
9
  <file path="/builds/dti/design-system/sankhyacore/test/util/CriteriaParameter.spec.ts">
10
- <testCase name="StringUtils it should return the correct values of &quot;value&quot; and &quot;type&quot; through the getters methods initial setted by the constructor" duration="3"/>
11
- <testCase name="StringUtils it should return the correct values of &quot;value&quot; and &quot;type&quot; through the getters methods initial setted by the setters methods" duration="0"/>
10
+ <testCase name="StringUtils it should return the correct values of &quot;value&quot; and &quot;type&quot; through the getters methods initial setted by the constructor" duration="115"/>
11
+ <testCase name="StringUtils it should return the correct values of &quot;value&quot; and &quot;type&quot; through the getters methods initial setted by the setters methods" duration="1"/>
12
12
  <testCase name="StringUtils it should return the correct JSON/Object value through the buildParam method" duration="1"/>
13
13
  </file>
14
- <file path="/builds/dti/design-system/sankhyacore/src/utils/test/objectUtils.spec.ts">
15
- <testCase name="ObjectUtils hasEquivalentValues should return true if both objects have the same property value" duration="6"/>
16
- <testCase name="ObjectUtils hasEquivalentValues should return false if both objects have different property values" duration="1"/>
17
- <testCase name="ObjectUtils hasEquivalentValues should return true if both objects are equivalent with custom property to compare" duration="1"/>
18
- <testCase name="ObjectUtils hasEquivalentValues should return false if both objects are not equivalent with custom property to compare" duration="190"/>
19
- <testCase name="ObjectUtils hasEquivalentValues should return false if one object does not have the property" duration="1"/>
20
- <testCase name="ObjectUtils hasEquivalentValues should return true if comparing primitive values directly" duration="1"/>
21
- <testCase name="ObjectUtils hasEquivalentValues should return false if comparing different primitive values" duration="0"/>
22
- <testCase name="ObjectUtils hasEquivalentValues should return true when comparing object with a null value" duration="0"/>
23
- <testCase name="ObjectUtils hasEquivalentValues should return false when comparing object with null and non-null value" duration="1"/>
24
- <testCase name="ObjectUtils hasEquivalentValues should return true when comparing non-object values that are equal" duration="1"/>
25
- <testCase name="ObjectUtils should get an object value based on its path" duration="0"/>
26
- <testCase name="ObjectUtils should get an object value based on its path" duration="0"/>
27
- <testCase name="ObjectUtils should return undefined if the path doesn&apos;t exist in the object" duration="1"/>
28
- </file>
29
14
  <file path="/builds/dti/design-system/sankhyacore/test/util/MaskFormatter.spec.ts">
30
- <testCase name="Mask Formatter mask:CPF complete valid" duration="84"/>
31
- <testCase name="Mask Formatter mask:CPF complete valid literals" duration="1"/>
32
- <testCase name="Mask Formatter mask:CPF incomplete valid" duration="0"/>
15
+ <testCase name="Mask Formatter mask:CPF complete valid" duration="20"/>
16
+ <testCase name="Mask Formatter mask:CPF complete valid literals" duration="64"/>
17
+ <testCase name="Mask Formatter mask:CPF incomplete valid" duration="1"/>
33
18
  <testCase name="Mask Formatter mask:CPF incomplete valid placeholder" duration="1"/>
34
- <testCase name="Mask Formatter mask:CPF too long valid" duration="0"/>
35
- <testCase name="Mask Formatter mask:CPF invalid for string" duration="112"/>
36
- <testCase name="Mask Formatter mask:CPF invalid for being too long" duration="0"/>
37
- <testCase name="Mask Formatter mask:Licence plate valid uppercase" duration="1"/>
19
+ <testCase name="Mask Formatter mask:CPF too long valid" duration="1"/>
20
+ <testCase name="Mask Formatter mask:CPF invalid for string" duration="197"/>
21
+ <testCase name="Mask Formatter mask:CPF invalid for being too long" duration="1"/>
22
+ <testCase name="Mask Formatter mask:Licence plate valid uppercase" duration="0"/>
38
23
  <testCase name="Mask Formatter mask:Licence plate valid lowercase" duration="1"/>
39
- <testCase name="Mask Formatter mask:Licence plate invalid" duration="78"/>
24
+ <testCase name="Mask Formatter mask:Licence plate invalid" duration="2"/>
40
25
  <testCase name="Mask Formatter mask:Licence plate invalid for being too short" duration="1"/>
41
- <testCase name="Mask Formatter mask:Licence plate invalid for being too short with placeholder" duration="1"/>
42
- <testCase name="Mask Formatter mask:Licence plate invalid" duration="3"/>
26
+ <testCase name="Mask Formatter mask:Licence plate invalid for being too short with placeholder" duration="0"/>
27
+ <testCase name="Mask Formatter mask:Licence plate invalid" duration="11"/>
43
28
  <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
44
29
  <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="0"/>
45
30
  <testCase name="Mask Formatter mask:Licence plate invalid" duration="2"/>
46
31
  <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="1"/>
48
- <testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
49
- <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="0"/>
50
32
  <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="0"/>
51
33
  <testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
34
+ <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="4"/>
35
+ <testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="0"/>
36
+ <testCase name="Mask Formatter mask:Licence plate invalid" duration="5"/>
37
+ </file>
38
+ <file path="/builds/dti/design-system/sankhyacore/src/utils/test/objectUtils.spec.ts">
39
+ <testCase name="ObjectUtils hasEquivalentValues should return true if both objects have the same property value" duration="14"/>
40
+ <testCase name="ObjectUtils hasEquivalentValues should return false if both objects have different property values" duration="1"/>
41
+ <testCase name="ObjectUtils hasEquivalentValues should return true if both objects are equivalent with custom property to compare" duration="1"/>
42
+ <testCase name="ObjectUtils hasEquivalentValues should return false if both objects are not equivalent with custom property to compare" duration="1"/>
43
+ <testCase name="ObjectUtils hasEquivalentValues should return false if one object does not have the property" duration="1"/>
44
+ <testCase name="ObjectUtils hasEquivalentValues should return true if comparing primitive values directly" duration="73"/>
45
+ <testCase name="ObjectUtils hasEquivalentValues should return false if comparing different primitive values" duration="0"/>
46
+ <testCase name="ObjectUtils hasEquivalentValues should return true when comparing object with a null value" duration="0"/>
47
+ <testCase name="ObjectUtils hasEquivalentValues should return false when comparing object with null and non-null value" duration="0"/>
48
+ <testCase name="ObjectUtils hasEquivalentValues should return true when comparing non-object values that are equal" duration="1"/>
49
+ <testCase name="ObjectUtils should get an object value based on its path" duration="0"/>
50
+ <testCase name="ObjectUtils should get an object value based on its path" duration="213"/>
51
+ <testCase name="ObjectUtils should return undefined if the path doesn&apos;t exist in the object" duration="0"/>
52
52
  </file>
53
53
  <file path="/builds/dti/design-system/sankhyacore/test/util/CriteriaModel.spec.ts">
54
- <testCase name="StringUtils it should return the undefined and [] to Criteria Props through new class with empty constructor" duration="14"/>
55
- <testCase name="StringUtils it should modify &quot;expressions&quot; and &quot;parameters&quot; properties through Setters methods" duration="2"/>
54
+ <testCase name="StringUtils it should return the undefined and [] to Criteria Props through new class with empty constructor" duration="15"/>
55
+ <testCase name="StringUtils it should modify &quot;expressions&quot; and &quot;parameters&quot; properties through Setters methods" duration="1"/>
56
56
  <testCase name="StringUtils it should return &quot;expression&quot; and &quot;parameters&quot; setted through constructor method" duration="2"/>
57
- <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="87"/>
58
- <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"/>
57
+ <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"/>
58
+ <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"/>
59
59
  <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"/>
60
60
  <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"/>
61
- <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"/>
62
- <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"/>
63
- <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="91"/>
61
+ <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"/>
62
+ <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"/>
63
+ <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="5"/>
64
+ <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="4"/>
64
65
  <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"/>
65
- <testCase name="StringUtils it should return a Criteria class with &quot;Criteria class&quot; and &quot;parameters&quot; concatenaded as needed setted through &quot;AND&quot; method" duration="2"/>
66
66
  <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"/>
67
- <testCase name="StringUtils it should return a toJSON object with through empty constructor" duration="1"/>
67
+ <testCase name="StringUtils it should return a toJSON object with through empty constructor" duration="0"/>
68
+ </file>
69
+ <file path="/builds/dti/design-system/sankhyacore/test/util/TimeFormatter.spec.ts">
70
+ <testCase name="TimeFormatter Case: input string unformated with showSeconds" duration="10"/>
71
+ <testCase name="TimeFormatter Case: input string unformated without showSeconds" duration="0"/>
72
+ <testCase name="TimeFormatter Case: validateTime" duration="1"/>
68
73
  </file>
69
74
  <file path="/builds/dti/design-system/sankhyacore/src/dataunit/state/slice/test/RecordsSlice.spec.ts">
70
- <testCase name="RecordsSlice should return newlines at the end" duration="3"/>
75
+ <testCase name="RecordsSlice should return newlines at the end" duration="2"/>
71
76
  </file>
72
77
  <file path="/builds/dti/design-system/sankhyacore/test/util/StringUtils.spec.ts">
73
- <testCase name="StringUtils valor vazio" duration="24"/>
78
+ <testCase name="StringUtils valor vazio" duration="83"/>
74
79
  <testCase name="StringUtils valor em branco" duration="1"/>
75
- <testCase name="StringUtils valor null" duration="0"/>
76
- <testCase name="StringUtils valor undefined" duration="0"/>
80
+ <testCase name="StringUtils valor null" duration="2"/>
81
+ <testCase name="StringUtils valor undefined" duration="1"/>
77
82
  <testCase name="StringUtils valor 0" duration="1"/>
78
83
  <testCase name="StringUtils com valor" duration="0"/>
79
- <testCase name="StringUtils substitui vogais com acento por vogais sem acento" duration="3"/>
80
- <testCase name="StringUtils should return the original value when called with an object without a toString method" duration="70"/>
84
+ <testCase name="StringUtils substitui vogais com acento por vogais sem acento" duration="11"/>
85
+ <testCase name="StringUtils should return the original value when called with an object without a toString method" duration="3"/>
81
86
  <testCase name="StringUtils should return the original value when called with undefined" duration="1"/>
82
87
  </file>
83
88
  <file path="/builds/dti/design-system/sankhyacore/test/util/NumberUtils.spec.ts">
84
- <testCase name="StringUtils stringToNumber" duration="102"/>
85
- <testCase name="StringUtils format" duration="199"/>
86
- <testCase name="StringUtils format without formatnumber parameter" duration="2"/>
89
+ <testCase name="StringUtils stringToNumber" duration="119"/>
90
+ <testCase name="StringUtils format" duration="288"/>
87
91
  <testCase name="StringUtils format without formatnumber parameter" duration="1"/>
88
- <testCase name="StringUtils format round number" duration="3"/>
89
- </file>
90
- <file path="/builds/dti/design-system/sankhyacore/test/util/TimeFormatter.spec.ts">
91
- <testCase name="TimeFormatter Case: input string unformated with showSeconds" duration="1"/>
92
- <testCase name="TimeFormatter Case: input string unformated without showSeconds" duration="0"/>
93
- <testCase name="TimeFormatter Case: validateTime" duration="1"/>
92
+ <testCase name="StringUtils format without formatnumber parameter" duration="1"/>
93
+ <testCase name="StringUtils format round number" duration="1"/>
94
94
  </file>
95
95
  <file path="/builds/dti/design-system/sankhyacore/test/util/OverflowWatcher.spec.ts">
96
- <testCase name="OverflowWatcher should initialize with provided parameters" duration="9"/>
96
+ <testCase name="OverflowWatcher should initialize with provided parameters" duration="22"/>
97
97
  <testCase name="OverflowWatcher should disconect ResizeObserver when destroy is called" duration="2"/>
98
- <testCase name="OverflowWatcher Should call callback on forceUpdate" duration="292"/>
99
- <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan" duration="26"/>
100
- <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan when notOverFlow is empty" duration="99"/>
101
- <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan considering overflowed elements" duration="78"/>
102
- <testCase name="OverflowWatcher Should call callback on forceUpdate with empty list" duration="4"/>
103
- <testCase name="OverflowWatcher should ignore elements that can not overflow" duration="97"/>
98
+ <testCase name="OverflowWatcher Should call callback on forceUpdate" duration="422"/>
99
+ <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan" duration="90"/>
100
+ <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan when notOverFlow is empty" duration="96"/>
101
+ <testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan considering overflowed elements" duration="10"/>
102
+ <testCase name="OverflowWatcher Should call callback on forceUpdate with empty list" duration="8"/>
103
+ <testCase name="OverflowWatcher should ignore elements that can not overflow" duration="177"/>
104
104
  <testCase name="OverflowWatcher Should not call callback on forceUpdate" duration="1"/>
105
105
  </file>
106
106
  <file path="/builds/dti/design-system/sankhyacore/test/util/DataUnitStorage.spec.ts">
107
- <testCase name="DataUnitStorage put should store a DataUnit instance in the DataUnitStorage" duration="72"/>
108
- <testCase name="DataUnitStorage get should return the stored DataUnit instance from the DataUnitStorage" duration="0"/>
109
- <testCase name="DataUnitStorage get should return undefined if the DataUnit instance is not found in the DataUnitStorage" duration="0"/>
107
+ <testCase name="DataUnitStorage put should store a DataUnit instance in the DataUnitStorage" duration="8"/>
108
+ <testCase name="DataUnitStorage get should return the stored DataUnit instance from the DataUnitStorage" duration="4"/>
109
+ <testCase name="DataUnitStorage get should return undefined if the DataUnit instance is not found in the DataUnitStorage" duration="1"/>
110
110
  <testCase name="DataUnitStorage remove should remove the specified DataUnit instance from the DataUnitStorage" duration="1"/>
111
111
  <testCase name="DataUnitStorage remove should remove the DataUnit instance with the specified name from the DataUnitStorage" duration="1"/>
112
- <testCase name="DataUnitStorage remove should not remove any DataUnit instance if the specified DataUnit instance or name is not found in the DataUnitStorage" duration="0"/>
112
+ <testCase name="DataUnitStorage remove should not remove any DataUnit instance if the specified DataUnit instance or name is not found in the DataUnitStorage" duration="1"/>
113
113
  </file>
114
114
  <file path="/builds/dti/design-system/sankhyacore/src/dataunit/test/DataUnit.spec.ts">
115
- <testCase name="DataUnit should return false when not waiting to reload" duration="4"/>
116
- <testCase name="DataUnit should set waitingToReload to true" duration="0"/>
117
- <testCase name="DataUnit should set waitingToReload to false" duration="1"/>
118
- <testCase name="DataUnit should dispatch SAVING_CANCELED action with correct fields and recordId" duration="4"/>
115
+ <testCase name="DataUnit should return false when not waiting to reload" duration="3"/>
116
+ <testCase name="DataUnit should set waitingToReload to true" duration="1"/>
117
+ <testCase name="DataUnit should set waitingToReload to false" duration="0"/>
118
+ <testCase name="DataUnit should dispatch SAVING_CANCELED action with correct fields and recordId" duration="2"/>
119
119
  </file>
120
120
  <file path="/builds/dti/design-system/sankhyacore/test/util/ElementIDUtils.spec.ts">
121
- <testCase name="addIDInfo 1 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="13"/>
122
- <testCase name="addIDInfo 2 - should add data-element-id with valid id &quot;brComSankhyaFinCadMovimentacaofinanceira_snkApplication&quot;" duration="2"/>
121
+ <testCase name="addIDInfo 1 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="12"/>
122
+ <testCase name="addIDInfo 2 - should add data-element-id with valid id &quot;brComSankhyaFinCadMovimentacaofinanceira_snkApplication&quot;" duration="3"/>
123
123
  <testCase name="addIDInfo 3 - should add data-element-id with valid id &quot;movFinanceira_br.com.sankhya.fin.cad.movimentacaoFinanceira&quot;" duration="2"/>
124
124
  <testCase name="addIDInfo 4 - should add data-element-id with valid id &quot;meuID2_snkApplication&quot;" duration="1"/>
125
- <testCase name="addIDInfo 5 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="1"/>
126
- <testCase name="addIDInfo 6 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="2"/>
125
+ <testCase name="addIDInfo 5 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="2"/>
126
+ <testCase name="addIDInfo 6 - should add data-element-id with valid id &quot;movFinanceira_snkApplication&quot;" duration="1"/>
127
127
  <testCase name="addIDInfo 7 - should add data-element-id with valid id &quot;componenteNameTest_snkApplication&quot;" duration="1"/>
128
128
  <testCase name="addIDInfo 8 - should add data-element-id with valid id &quot;componentLabel_snkApplication&quot;" duration="1"/>
129
129
  <testCase name="addIDInfo 9 - should add data-element-id with valid id &quot;dataunitFinanceiro_br.com.sankhya.fin.cad.movimentacaoFinanceira&quot;" duration="2"/>
130
- <testCase name="addIDInfo 10 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIDTeste_br.com.sankhya.fin.cad.movimentacaoFinanceira&quot;" duration="62"/>
131
- <testCase name="addIDInfo 11 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira&quot;" duration="1"/>
132
- <testCase name="addIDInfo 12 - should add data-element-id with valid id &quot;dataunitFinanceiro_movFinanceira_movimentacaoFinanceira&quot;" duration="2"/>
133
- <testCase name="addIDInfo 13 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira&quot;" duration="2"/>
134
- <testCase name="addIDInfo 14 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIdTeste_movimentacaoFinanceira&quot;" duration="1"/>
130
+ <testCase name="addIDInfo 10 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIDTeste_br.com.sankhya.fin.cad.movimentacaoFinanceira&quot;" duration="2"/>
131
+ <testCase name="addIDInfo 11 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira&quot;" duration="2"/>
132
+ <testCase name="addIDInfo 12 - should add data-element-id with valid id &quot;dataunitFinanceiro_movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
133
+ <testCase name="addIDInfo 13 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira&quot;" duration="1"/>
134
+ <testCase name="addIDInfo 14 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIdTeste_movimentacaoFinanceira&quot;" duration="2"/>
135
135
  <testCase name="addIDInfo 15 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIdTeste_snkApplication&quot;" duration="1"/>
136
- <testCase name="addIDInfo 16 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIdTeste_snkApplication&quot;" duration="8"/>
136
+ <testCase name="addIDInfo 16 - should add data-element-id with valid id &quot;dataunitFinanceiro_meuIdTeste_snkApplication&quot;" duration="1"/>
137
137
  <testCase name="addIDInfo 17 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
138
138
  <testCase name="addIDInfo 18 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
139
- <testCase name="addIDInfo 19 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="0"/>
140
- <testCase name="addIDInfo 20 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="0"/>
141
- <testCase name="addIDInfo 21 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="2"/>
139
+ <testCase name="addIDInfo 19 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
140
+ <testCase name="addIDInfo 20 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
141
+ <testCase name="addIDInfo 21 - should add data-element-id with valid id &quot;movFinanceira_movimentacaoFinanceira&quot;" duration="1"/>
142
142
  <testCase name="addIDInfo 22 - should add data-element-id with valid id &quot;bancoObrigatorio_movimentacaoFinanceira&quot;" duration="1"/>
143
143
  </file>
144
- <file path="/builds/dti/design-system/sankhyacore/test/util/ElementUtils.spec.ts">
145
- <testCase name="calcMarginSize should calculate correctly the size of horizontal margin" duration="53"/>
146
- <testCase name="calcMarginSize should calculate correctly the size of vertical margin" duration="2"/>
147
- <testCase name="calcMarginSize should threat values defined as zero" duration="3"/>
148
- </file>
149
144
  <file path="/builds/dti/design-system/sankhyacore/test/dataunit/formatting/PrettyFormatter.spec.ts">
150
- <testCase name="getFormattedValue should return empty string when value is null" duration="5"/>
151
- <testCase name="getFormattedValue should return empty string when value is not an array" duration="1"/>
145
+ <testCase name="getFormattedValue should return empty string when value is null" duration="4"/>
146
+ <testCase name="getFormattedValue should return empty string when value is not an array" duration="0"/>
152
147
  <testCase name="getFormattedValue should return empty string when value is an empty array" duration="0"/>
153
- <testCase name="getFormattedValue should return file name when value is an array with one file object" duration="1"/>
148
+ <testCase name="getFormattedValue should return file name when value is an array with one file object" duration="0"/>
154
149
  <testCase name="getFormattedValue should return file count when value is an array with multiple file objects" duration="0"/>
155
- <testCase name="getFormattedValue should return empty string for undefined file" duration="0"/>
156
- <testCase name="getFormattedValue should handle OBJECT type with value field" duration="0"/>
157
- <testCase name="getFormattedValue should return empty string when value is undefined" duration="0"/>
158
- <testCase name="getFormattedValue should return value as string when value is not an object" duration="1"/>
150
+ <testCase name="getFormattedValue should return empty string for undefined file" duration="1"/>
151
+ <testCase name="getFormattedValue should handle OBJECT type with value field" duration="36"/>
152
+ <testCase name="getFormattedValue should return empty string when value is undefined" duration="1"/>
153
+ <testCase name="getFormattedValue should return value as string when value is not an object" duration="0"/>
159
154
  <testCase name="getFormattedValue should return value.toString() when value is an object without value property" duration="0"/>
160
155
  <testCase name="getFormattedValue should handle BOOLEAN type" duration="1"/>
161
- <testCase name="getFormattedValue should format numbers correctly" duration="15"/>
162
- <testCase name="getFormattedValue should format dates correctly" duration="4"/>
163
- <testCase name="getFormattedValue should format times correctly" duration="0"/>
164
- <testCase name="getFormattedValue should format datetime correctly" duration="0"/>
165
- <testCase name="getFormattedValue should call toString with correct parameters" duration="1"/>
166
- <testCase name="getFormattedValue should handle undefined descriptor gracefully" duration="1"/>
167
- <testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and matching option" duration="0"/>
156
+ <testCase name="getFormattedValue should format numbers correctly" duration="17"/>
157
+ <testCase name="getFormattedValue should format dates correctly" duration="5"/>
158
+ <testCase name="getFormattedValue should format times correctly" duration="1"/>
159
+ <testCase name="getFormattedValue should format datetime correctly" duration="1"/>
160
+ <testCase name="getFormattedValue should call toString with correct parameters" duration="0"/>
161
+ <testCase name="getFormattedValue should handle undefined descriptor gracefully" duration="0"/>
162
+ <testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and matching option" duration="1"/>
168
163
  <testCase name="getFormattedValue should return value with OPTIONSELECTOR and no matching option" duration="0"/>
169
164
  <testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and value as object" duration="0"/>
170
165
  <testCase name="getFormattedValue should return empty string with OPTIONSELECTOR and value as null" duration="0"/>
171
- <testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and options as JSON string" duration="0"/>
166
+ <testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and options as JSON string" duration="1"/>
172
167
  <testCase name="getFormattedValue should return value with OPTIONSELECTOR and options as empty array" duration="0"/>
173
- <testCase name="getFormattedValue should format masked values correctly" duration="1"/>
168
+ <testCase name="getFormattedValue should format masked values correctly" duration="2"/>
169
+ </file>
170
+ <file path="/builds/dti/design-system/sankhyacore/test/util/ElementUtils.spec.ts">
171
+ <testCase name="calcMarginSize should calculate correctly the size of horizontal margin" duration="68"/>
172
+ <testCase name="calcMarginSize should calculate correctly the size of vertical margin" duration="3"/>
173
+ <testCase name="calcMarginSize should threat values defined as zero" duration="5"/>
174
174
  </file>
175
175
  </unitTest>