@sankhyalabs/core-docs 0.0.0-hotfix-ga-KB-4098.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.
Files changed (59) hide show
  1. package/README.md +63 -0
  2. package/classes/ApplicationContext.md +90 -0
  3. package/classes/ArrayUtils.md +99 -0
  4. package/classes/AuthorizedServiceCaller.md +76 -0
  5. package/classes/Change.md +190 -0
  6. package/classes/DataUnit.md +2427 -0
  7. package/classes/DataUnitAction.md +96 -0
  8. package/classes/DataUnitStorage.md +116 -0
  9. package/classes/DateUtils.md +327 -0
  10. package/classes/ElementIDUtils.md +308 -0
  11. package/classes/ErrorException.md +214 -0
  12. package/classes/ErrorTracking.md +62 -0
  13. package/classes/FloatingManager.md +530 -0
  14. package/classes/HttpProvider.md +96 -0
  15. package/classes/JSUtils.md +115 -0
  16. package/classes/MaskFormatter-1.md +347 -0
  17. package/classes/NumberUtils.md +335 -0
  18. package/classes/ObjectUtils.md +160 -0
  19. package/classes/OnboardingUtils.md +126 -0
  20. package/classes/PromiseSync.md +91 -0
  21. package/classes/ReadyUtil.md +115 -0
  22. package/classes/RequestMetadata.md +84 -0
  23. package/classes/SelectionInfo.md +168 -0
  24. package/classes/SkwHttpProvider.md +109 -0
  25. package/classes/StringUtils.md +562 -0
  26. package/classes/TimeFormatter.md +98 -0
  27. package/classes/UserAgentUtils.md +58 -0
  28. package/classes/VersionUtils.md +42 -0
  29. package/classes/WaitingChangeException.md +200 -0
  30. package/classes/WarningException.md +214 -0
  31. package/enums/Action.md +283 -0
  32. package/enums/ChangeOperation.md +52 -0
  33. package/enums/DataType.md +63 -0
  34. package/enums/DependencyType.md +41 -0
  35. package/enums/SelectionMode.md +30 -0
  36. package/enums/SortMode.md +30 -0
  37. package/enums/UserInterface.md +195 -0
  38. package/interfaces/ChildDescriptor.md +41 -0
  39. package/interfaces/ChildLink.md +30 -0
  40. package/interfaces/DUActionInterceptor.md +29 -0
  41. package/interfaces/ExecutionContext.md +58 -0
  42. package/interfaces/FieldDescriptor.md +140 -0
  43. package/interfaces/Filter.md +41 -0
  44. package/interfaces/IElementIDInfo.md +30 -0
  45. package/interfaces/LoadDataRequest.md +101 -0
  46. package/interfaces/LoadDataResponse.md +36 -0
  47. package/interfaces/PageRequest.md +41 -0
  48. package/interfaces/PaginationInfo.md +75 -0
  49. package/interfaces/PromiseSyncCallback.md +39 -0
  50. package/interfaces/QuickFilter.md +41 -0
  51. package/interfaces/Record.md +62 -0
  52. package/interfaces/SavedRecord.md +85 -0
  53. package/interfaces/Sort.md +41 -0
  54. package/interfaces/SortingProvider.md +29 -0
  55. package/interfaces/UnitMetadata.md +52 -0
  56. package/interfaces/WaitingChange.md +41 -0
  57. package/modules/MaskFormatter.md +37 -0
  58. package/modules.md +73 -0
  59. package/package.json +14 -0
@@ -0,0 +1,308 @@
1
+ [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / ElementIDUtils
2
+
3
+ # Class: ElementIDUtils
4
+
5
+ `ElementIDUtils`: O ElementIDUtils é um utilitário responsável por criar e adicionar identificadores únicos aos componentes através do atributo data-element-id.
6
+ A finalidade dele é otimizar a automação dos testes e melhorar a eficiência na manipulação dos componentes do Design System, garantindo seleções precisas e seguras.
7
+
8
+ ## Table of contents
9
+
10
+ ### Constructors
11
+
12
+ - [constructor](ElementIDUtils.md#constructor)
13
+
14
+ ### Properties
15
+
16
+ - [DATA\_ELEMENT\_ID\_ATTRIBUTE\_NAME](ElementIDUtils.md#data_element_id_attribute_name)
17
+ - [INTERNAL\_INPUT\_NAME](ElementIDUtils.md#internal_input_name)
18
+ - [REGEX\_DATAUNIT\_NAME](ElementIDUtils.md#regex_dataunit_name)
19
+
20
+ ### Methods
21
+
22
+ - [addIDInfo](ElementIDUtils.md#addidinfo)
23
+ - [addIDInfoIfNotExists](ElementIDUtils.md#addidinfoifnotexists)
24
+ - [addPrefix](ElementIDUtils.md#addprefix)
25
+ - [addSuffix](ElementIDUtils.md#addsuffix)
26
+ - [formatDescription](ElementIDUtils.md#formatdescription)
27
+ - [getAttributeValid](ElementIDUtils.md#getattributevalid)
28
+ - [getDataElementID](ElementIDUtils.md#getdataelementid)
29
+ - [getDataElementIDAttribute](ElementIDUtils.md#getdataelementidattribute)
30
+ - [getInternalIDInfo](ElementIDUtils.md#getinternalidinfo)
31
+ - [parseDataUnitName](ElementIDUtils.md#parsedataunitname)
32
+
33
+ ## Constructors
34
+
35
+ ### constructor
36
+
37
+ • **new ElementIDUtils**()
38
+
39
+ ## Properties
40
+
41
+ ### DATA\_ELEMENT\_ID\_ATTRIBUTE\_NAME
42
+
43
+ ▪ `Static` **DATA\_ELEMENT\_ID\_ATTRIBUTE\_NAME**: `string` = `"data-element-id"`
44
+
45
+ #### Defined in
46
+
47
+ src/utils/ElementIDUtils.ts:14
48
+
49
+ ___
50
+
51
+ ### INTERNAL\_INPUT\_NAME
52
+
53
+ ▪ `Static` **INTERNAL\_INPUT\_NAME**: `string` = `"embedded"`
54
+
55
+ #### Defined in
56
+
57
+ src/utils/ElementIDUtils.ts:15
58
+
59
+ ___
60
+
61
+ ### REGEX\_DATAUNIT\_NAME
62
+
63
+ ▪ `Static` `Private` **REGEX\_DATAUNIT\_NAME**: `RegExp`
64
+
65
+ #### Defined in
66
+
67
+ src/utils/ElementIDUtils.ts:16
68
+
69
+ ## Methods
70
+
71
+ ### addIDInfo
72
+
73
+ ▸ `Static` **addIDInfo**(`element`, `suffix?`, `iDInfo?`): `string`
74
+
75
+ Cria e adiciona a propriedade `data-element-id` em um elemento.
76
+
77
+ #### Parameters
78
+
79
+ | Name | Type | Description |
80
+ | :------ | :------ | :------ |
81
+ | `element` | `HTMLElement` | Elemento HTML a ser modificado (HTMLElement). |
82
+ | `suffix?` | `string` | Sufixo/Texto para ser adicionado. |
83
+ | `iDInfo?` | [`IElementIDInfo`](../interfaces/IElementIDInfo.md) | ID para ser adicionado. |
84
+
85
+ #### Returns
86
+
87
+ `string`
88
+
89
+ - O data-element-id gerado.
90
+
91
+ #### Defined in
92
+
93
+ src/utils/ElementIDUtils.ts:26
94
+
95
+ ___
96
+
97
+ ### addIDInfoIfNotExists
98
+
99
+ ▸ `Static` **addIDInfoIfNotExists**(`element`, `suffix?`, `iDInfo?`): `string`
100
+
101
+ #### Parameters
102
+
103
+ | Name | Type |
104
+ | :------ | :------ |
105
+ | `element` | `HTMLElement` |
106
+ | `suffix?` | `string` |
107
+ | `iDInfo?` | [`IElementIDInfo`](../interfaces/IElementIDInfo.md) |
108
+
109
+ #### Returns
110
+
111
+ `string`
112
+
113
+ #### Defined in
114
+
115
+ src/utils/ElementIDUtils.ts:39
116
+
117
+ ___
118
+
119
+ ### addPrefix
120
+
121
+ ▸ `Static` `Private` **addPrefix**(`iDInfo`, `dataElementID`): `string`
122
+
123
+ Adiciona a propriedade name do DataUnit como prefixo do data-element-id do elemento.
124
+
125
+ #### Parameters
126
+
127
+ | Name | Type | Description |
128
+ | :------ | :------ | :------ |
129
+ | `iDInfo` | `undefined` \| [`IElementIDInfo`](../interfaces/IElementIDInfo.md) | ID para ser adicionado ao `data-element-id`. |
130
+ | `dataElementID` | `string` | Sufixo/Texto para ser adicionado ao `data-element-id`. |
131
+
132
+ #### Returns
133
+
134
+ `string`
135
+
136
+ - String contendo informação para ser usada no `data-element-id` do elemento.
137
+
138
+ #### Defined in
139
+
140
+ src/utils/ElementIDUtils.ts:147
141
+
142
+ ___
143
+
144
+ ### addSuffix
145
+
146
+ ▸ `Static` `Private` **addSuffix**(`dataElementID`, `suffix`, `element`): `string`
147
+
148
+ Adiciona sufixo ao atributo `data-element-id` de um elemento, utilizado para montar a hierarquia dos ids dos componentes em tela.
149
+
150
+ **`Example`**
151
+
152
+ ```ts
153
+ Um ez-combo-box tem data-element-id = codparc_input_embedded_combo.
154
+ Dentro desse ez-combo-box existe um ez-text-input. O data-element-id teria como sufixo o id 'codparc_input_embedded_combo' referente ao seu pai.
155
+ ```
156
+
157
+ #### Parameters
158
+
159
+ | Name | Type | Description |
160
+ | :------ | :------ | :------ |
161
+ | `dataElementID` | ``null`` \| `string` | ID para ser adicionado ao `data-element-id`. |
162
+ | `suffix` | `undefined` \| `string` | Sufixo/Texto para ser adicionado ao `data-element-id`. |
163
+ | `element` | `HTMLElement` | Elemento HTML a ser modificado (HTMLElement). |
164
+
165
+ #### Returns
166
+
167
+ `string`
168
+
169
+ - `data-element-id` com sufixo.
170
+
171
+ #### Defined in
172
+
173
+ src/utils/ElementIDUtils.ts:130
174
+
175
+ ___
176
+
177
+ ### formatDescription
178
+
179
+ ▸ `Static` `Private` **formatDescription**(`value`): `string`
180
+
181
+ Remove caracteres especiais.
182
+
183
+ #### Parameters
184
+
185
+ | Name | Type | Description |
186
+ | :------ | :------ | :------ |
187
+ | `value` | ``null`` \| `string` | Texto que terá os caracteres especiais removidos. |
188
+
189
+ #### Returns
190
+
191
+ `string`
192
+
193
+ - Retorna a string sem caracteres especiais e em camelCase.
194
+
195
+ #### Defined in
196
+
197
+ src/utils/ElementIDUtils.ts:162
198
+
199
+ ___
200
+
201
+ ### getAttributeValid
202
+
203
+ ▸ `Static` `Private` **getAttributeValid**(`element`, `iDInfo?`): ``null`` \| `string`
204
+
205
+ Obtém ID válido para o elemento.
206
+
207
+ #### Parameters
208
+
209
+ | Name | Type | Description |
210
+ | :------ | :------ | :------ |
211
+ | `element` | `HTMLElement` | Elemento HTML a ser modificado (HTMLElement). |
212
+ | `iDInfo?` | [`IElementIDInfo`](../interfaces/IElementIDInfo.md) | ID para ser adicionado. |
213
+
214
+ #### Returns
215
+
216
+ ``null`` \| `string`
217
+
218
+ - ID para ser adicionado ao elemento conforme ordem de prioridade.
219
+
220
+ #### Defined in
221
+
222
+ src/utils/ElementIDUtils.ts:90
223
+
224
+ ___
225
+
226
+ ### getDataElementID
227
+
228
+ ▸ `Static` `Private` **getDataElementID**(`element`, `suffix?`, `iDInfo?`): `string`
229
+
230
+ Obtém o `data-element-id` do elemento com adição do sufixo e ID.
231
+
232
+ #### Parameters
233
+
234
+ | Name | Type | Description |
235
+ | :------ | :------ | :------ |
236
+ | `element` | `HTMLElement` | Elemento HTML a ser modificado (HTMLElement). |
237
+ | `suffix?` | `string` | Sufixo/Texto para ser adicionado. |
238
+ | `iDInfo?` | [`IElementIDInfo`](../interfaces/IElementIDInfo.md) | ID para ser adicionado. |
239
+
240
+ #### Returns
241
+
242
+ `string`
243
+
244
+ - Atributo `data-element-id` do elemento modificado com sufixo e/ou ID.
245
+
246
+ #### Defined in
247
+
248
+ src/utils/ElementIDUtils.ts:66
249
+
250
+ ___
251
+
252
+ ### getDataElementIDAttribute
253
+
254
+ ▸ `Static` `Private` **getDataElementIDAttribute**(`element`): ``null`` \| `string`
255
+
256
+ #### Parameters
257
+
258
+ | Name | Type |
259
+ | :------ | :------ |
260
+ | `element` | `HTMLElement` |
261
+
262
+ #### Returns
263
+
264
+ ``null`` \| `string`
265
+
266
+ #### Defined in
267
+
268
+ src/utils/ElementIDUtils.ts:168
269
+
270
+ ___
271
+
272
+ ### getInternalIDInfo
273
+
274
+ ▸ `Static` **getInternalIDInfo**(`sufix`): `string`
275
+
276
+ #### Parameters
277
+
278
+ | Name | Type |
279
+ | :------ | :------ |
280
+ | `sufix` | `string` |
281
+
282
+ #### Returns
283
+
284
+ `string`
285
+
286
+ #### Defined in
287
+
288
+ src/utils/ElementIDUtils.ts:54
289
+
290
+ ___
291
+
292
+ ### parseDataUnitName
293
+
294
+ ▸ `Static` `Private` **parseDataUnitName**(`uri`): `string`
295
+
296
+ #### Parameters
297
+
298
+ | Name | Type |
299
+ | :------ | :------ |
300
+ | `uri` | `string` |
301
+
302
+ #### Returns
303
+
304
+ `string`
305
+
306
+ #### Defined in
307
+
308
+ src/utils/ElementIDUtils.ts:175
@@ -0,0 +1,214 @@
1
+ [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / ErrorException
2
+
3
+ # Class: ErrorException
4
+
5
+ `ErrorException`: Exceção lançada quando ocorre um erro.
6
+
7
+ ## Hierarchy
8
+
9
+ - `Error`
10
+
11
+ ↳ **`ErrorException`**
12
+
13
+ ## Table of contents
14
+
15
+ ### Constructors
16
+
17
+ - [constructor](ErrorException.md#constructor)
18
+
19
+ ### Properties
20
+
21
+ - [cause](ErrorException.md#cause)
22
+ - [errorCode](ErrorException.md#errorcode)
23
+ - [message](ErrorException.md#message)
24
+ - [name](ErrorException.md#name)
25
+ - [stack](ErrorException.md#stack)
26
+ - [title](ErrorException.md#title)
27
+ - [prepareStackTrace](ErrorException.md#preparestacktrace)
28
+ - [stackTraceLimit](ErrorException.md#stacktracelimit)
29
+
30
+ ### Methods
31
+
32
+ - [captureStackTrace](ErrorException.md#capturestacktrace)
33
+
34
+ ## Constructors
35
+
36
+ ### constructor
37
+
38
+ • **new ErrorException**(`title`, `message`, `errorCode?`)
39
+
40
+ #### Parameters
41
+
42
+ | Name | Type | Default value |
43
+ | :------ | :------ | :------ |
44
+ | `title` | `string` | `undefined` |
45
+ | `message` | `string` | `undefined` |
46
+ | `errorCode` | `string` | `""` |
47
+
48
+ #### Overrides
49
+
50
+ Error.constructor
51
+
52
+ #### Defined in
53
+
54
+ src/exceptions/ErrorException.ts:18
55
+
56
+ ## Properties
57
+
58
+ ### cause
59
+
60
+ • `Optional` **cause**: `unknown`
61
+
62
+ #### Inherited from
63
+
64
+ Error.cause
65
+
66
+ #### Defined in
67
+
68
+ node_modules/typescript/lib/lib.es2022.error.d.ts:26
69
+
70
+ ___
71
+
72
+ ### errorCode
73
+
74
+ • **errorCode**: `string`
75
+
76
+ Código do erro, indica o erro disparado pelo backend.
77
+
78
+ #### Defined in
79
+
80
+ src/exceptions/ErrorException.ts:16
81
+
82
+ ___
83
+
84
+ ### message
85
+
86
+ • **message**: `string`
87
+
88
+ Descrição do erro.
89
+
90
+ #### Overrides
91
+
92
+ Error.message
93
+
94
+ #### Defined in
95
+
96
+ src/exceptions/ErrorException.ts:13
97
+
98
+ ___
99
+
100
+ ### name
101
+
102
+ • **name**: `string`
103
+
104
+ Nome da exceção.
105
+
106
+ #### Overrides
107
+
108
+ Error.name
109
+
110
+ #### Defined in
111
+
112
+ src/exceptions/ErrorException.ts:7
113
+
114
+ ___
115
+
116
+ ### stack
117
+
118
+ • `Optional` **stack**: `string`
119
+
120
+ #### Inherited from
121
+
122
+ Error.stack
123
+
124
+ #### Defined in
125
+
126
+ node_modules/typescript/lib/lib.es5.d.ts:1055
127
+
128
+ ___
129
+
130
+ ### title
131
+
132
+ • **title**: `string`
133
+
134
+ Titulo do erro.
135
+
136
+ #### Defined in
137
+
138
+ src/exceptions/ErrorException.ts:10
139
+
140
+ ___
141
+
142
+ ### prepareStackTrace
143
+
144
+ ▪ `Static` `Optional` **prepareStackTrace**: (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any`
145
+
146
+ #### Type declaration
147
+
148
+ ▸ (`err`, `stackTraces`): `any`
149
+
150
+ Optional override for formatting stack traces
151
+
152
+ **`See`**
153
+
154
+ https://v8.dev/docs/stack-trace-api#customizing-stack-traces
155
+
156
+ ##### Parameters
157
+
158
+ | Name | Type |
159
+ | :------ | :------ |
160
+ | `err` | `Error` |
161
+ | `stackTraces` | `CallSite`[] |
162
+
163
+ ##### Returns
164
+
165
+ `any`
166
+
167
+ #### Inherited from
168
+
169
+ Error.prepareStackTrace
170
+
171
+ #### Defined in
172
+
173
+ node_modules/@types/node/globals.d.ts:11
174
+
175
+ ___
176
+
177
+ ### stackTraceLimit
178
+
179
+ ▪ `Static` **stackTraceLimit**: `number`
180
+
181
+ #### Inherited from
182
+
183
+ Error.stackTraceLimit
184
+
185
+ #### Defined in
186
+
187
+ node_modules/@types/node/globals.d.ts:13
188
+
189
+ ## Methods
190
+
191
+ ### captureStackTrace
192
+
193
+ ▸ `Static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
194
+
195
+ Create .stack property on a target object
196
+
197
+ #### Parameters
198
+
199
+ | Name | Type |
200
+ | :------ | :------ |
201
+ | `targetObject` | `object` |
202
+ | `constructorOpt?` | `Function` |
203
+
204
+ #### Returns
205
+
206
+ `void`
207
+
208
+ #### Inherited from
209
+
210
+ Error.captureStackTrace
211
+
212
+ #### Defined in
213
+
214
+ node_modules/@types/node/globals.d.ts:4
@@ -0,0 +1,62 @@
1
+ [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / ErrorTracking
2
+
3
+ # Class: ErrorTracking
4
+
5
+ `ErrorTracking`: Handler para processar exceptions lançadas.
6
+
7
+ ## Table of contents
8
+
9
+ ### Constructors
10
+
11
+ - [constructor](ErrorTracking.md#constructor)
12
+
13
+ ### Methods
14
+
15
+ - [init](ErrorTracking.md#init)
16
+ - [isInternalException](ErrorTracking.md#isinternalexception)
17
+
18
+ ## Constructors
19
+
20
+ ### constructor
21
+
22
+ • **new ErrorTracking**()
23
+
24
+ ## Methods
25
+
26
+ ### init
27
+
28
+ ▸ `Static` **init**(): `void`
29
+
30
+ Inicializa o Rollbar, utilizado para rastreio de erros e análise de logs.
31
+
32
+ #### Returns
33
+
34
+ `void`
35
+
36
+ #### Defined in
37
+
38
+ src/traking/ErrorTraking.ts:16
39
+
40
+ ___
41
+
42
+ ### isInternalException
43
+
44
+ ▸ `Static` `Private` **isInternalException**(`error`): `boolean`
45
+
46
+ Retorna se o erro é uma exceção interna na aplicação.
47
+
48
+ #### Parameters
49
+
50
+ | Name | Type | Description |
51
+ | :------ | :------ | :------ |
52
+ | `error` | `any` | Erro que será identificado como exceção interna ou não. |
53
+
54
+ #### Returns
55
+
56
+ `boolean`
57
+
58
+ - Verdadeiro caso seja uma exceção interna.
59
+
60
+ #### Defined in
61
+
62
+ src/traking/ErrorTraking.ts:34