@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,96 @@
1
+ [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / DataUnitAction
2
+
3
+ # Class: DataUnitAction
4
+
5
+ ## Implements
6
+
7
+ - `StateAction`
8
+
9
+ ## Table of contents
10
+
11
+ ### Constructors
12
+
13
+ - [constructor](DataUnitAction.md#constructor)
14
+
15
+ ### Properties
16
+
17
+ - [\_payload](DataUnitAction.md#_payload)
18
+ - [\_type](DataUnitAction.md#_type)
19
+
20
+ ### Accessors
21
+
22
+ - [payload](DataUnitAction.md#payload)
23
+ - [type](DataUnitAction.md#type)
24
+
25
+ ## Constructors
26
+
27
+ ### constructor
28
+
29
+ • **new DataUnitAction**(`type`, `payload?`)
30
+
31
+ #### Parameters
32
+
33
+ | Name | Type |
34
+ | :------ | :------ |
35
+ | `type` | [`Action`](../enums/Action.md) |
36
+ | `payload?` | `any` |
37
+
38
+ #### Defined in
39
+
40
+ src/dataunit/state/action/DataUnitAction.ts:9
41
+
42
+ ## Properties
43
+
44
+ ### \_payload
45
+
46
+ • `Private` **\_payload**: `any`
47
+
48
+ #### Defined in
49
+
50
+ src/dataunit/state/action/DataUnitAction.ts:7
51
+
52
+ ___
53
+
54
+ ### \_type
55
+
56
+ • `Private` **\_type**: [`Action`](../enums/Action.md)
57
+
58
+ #### Defined in
59
+
60
+ src/dataunit/state/action/DataUnitAction.ts:6
61
+
62
+ ## Accessors
63
+
64
+ ### payload
65
+
66
+ • `get` **payload**(): `any`
67
+
68
+ #### Returns
69
+
70
+ `any`
71
+
72
+ #### Implementation of
73
+
74
+ StateAction.payload
75
+
76
+ #### Defined in
77
+
78
+ src/dataunit/state/action/DataUnitAction.ts:18
79
+
80
+ ___
81
+
82
+ ### type
83
+
84
+ • `get` **type**(): [`Action`](../enums/Action.md)
85
+
86
+ #### Returns
87
+
88
+ [`Action`](../enums/Action.md)
89
+
90
+ #### Implementation of
91
+
92
+ StateAction.type
93
+
94
+ #### Defined in
95
+
96
+ src/dataunit/state/action/DataUnitAction.ts:14
@@ -0,0 +1,116 @@
1
+ [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / DataUnitStorage
2
+
3
+ # Class: DataUnitStorage
4
+
5
+ Classe responsável por armazenar instâncias de DataUnit.
6
+
7
+ ## Table of contents
8
+
9
+ ### Constructors
10
+
11
+ - [constructor](DataUnitStorage.md#constructor)
12
+
13
+ ### Properties
14
+
15
+ - [dataUnitMap](DataUnitStorage.md#dataunitmap)
16
+ - [keyMap](DataUnitStorage.md#keymap)
17
+
18
+ ### Methods
19
+
20
+ - [get](DataUnitStorage.md#get)
21
+ - [put](DataUnitStorage.md#put)
22
+ - [remove](DataUnitStorage.md#remove)
23
+
24
+ ## Constructors
25
+
26
+ ### constructor
27
+
28
+ • **new DataUnitStorage**()
29
+
30
+ ## Properties
31
+
32
+ ### dataUnitMap
33
+
34
+ ▪ `Static` `Private` **dataUnitMap**: `WeakMap`<{ `key`: `string` }, [`DataUnit`](DataUnit.md)\>
35
+
36
+ #### Defined in
37
+
38
+ src/dataunit/DataUnitStorage.ts:7
39
+
40
+ ___
41
+
42
+ ### keyMap
43
+
44
+ ▪ `Static` `Private` **keyMap**: `Map`<`string`, { `key`: `string` }\>
45
+
46
+ #### Defined in
47
+
48
+ src/dataunit/DataUnitStorage.ts:8
49
+
50
+ ## Methods
51
+
52
+ ### get
53
+
54
+ ▸ `Static` **get**(`dataUnitName`): `undefined` \| [`DataUnit`](DataUnit.md)
55
+
56
+ Retorna uma instância de DataUnit armazenada no DataUnitStorage.
57
+
58
+ #### Parameters
59
+
60
+ | Name | Type | Description |
61
+ | :------ | :------ | :------ |
62
+ | `dataUnitName` | `string` | O nome do DataUnit. |
63
+
64
+ #### Returns
65
+
66
+ `undefined` \| [`DataUnit`](DataUnit.md)
67
+
68
+ - A instância do DataUnit ou undefined caso não seja encontrada.
69
+
70
+ #### Defined in
71
+
72
+ src/dataunit/DataUnitStorage.ts:15
73
+
74
+ ___
75
+
76
+ ### put
77
+
78
+ ▸ `Static` **put**(`dataUnit`): `void`
79
+
80
+ Armazena uma instância de DataUnit no DataUnitStorage.
81
+
82
+ #### Parameters
83
+
84
+ | Name | Type | Description |
85
+ | :------ | :------ | :------ |
86
+ | `dataUnit` | [`DataUnit`](DataUnit.md) | A instância de DataUnit a ser armazenada. |
87
+
88
+ #### Returns
89
+
90
+ `void`
91
+
92
+ #### Defined in
93
+
94
+ src/dataunit/DataUnitStorage.ts:24
95
+
96
+ ___
97
+
98
+ ### remove
99
+
100
+ ▸ `Static` **remove**(`dataUnit`): `void`
101
+
102
+ Remove uma instância de DataUnit do DataUnitStorage.
103
+
104
+ #### Parameters
105
+
106
+ | Name | Type | Description |
107
+ | :------ | :------ | :------ |
108
+ | `dataUnit` | `string` \| [`DataUnit`](DataUnit.md) | A instância de DataUnit ou o nome do DataUnit a ser removido. |
109
+
110
+ #### Returns
111
+
112
+ `void`
113
+
114
+ #### Defined in
115
+
116
+ src/dataunit/DataUnitStorage.ts:34
@@ -0,0 +1,327 @@
1
+ [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / DateUtils
2
+
3
+ # Class: DateUtils
4
+
5
+ `DateUtils`: Utilizado para formatação, padronização e cálculos de datas.
6
+
7
+ ## Table of contents
8
+
9
+ ### Constructors
10
+
11
+ - [constructor](DateUtils.md#constructor)
12
+
13
+ ### Methods
14
+
15
+ - [adjustDLST](DateUtils.md#adjustdlst)
16
+ - [clearTime](DateUtils.md#cleartime)
17
+ - [formatDate](DateUtils.md#formatdate)
18
+ - [formatDateTime](DateUtils.md#formatdatetime)
19
+ - [formatRfc3339](DateUtils.md#formatrfc3339)
20
+ - [formatTime](DateUtils.md#formattime)
21
+ - [getToday](DateUtils.md#gettoday)
22
+ - [pad](DateUtils.md#pad)
23
+ - [strToDate](DateUtils.md#strtodate)
24
+ - [timezoneOffset](DateUtils.md#timezoneoffset)
25
+ - [validateDate](DateUtils.md#validatedate)
26
+
27
+ ## Constructors
28
+
29
+ ### constructor
30
+
31
+ • **new DateUtils**()
32
+
33
+ ## Methods
34
+
35
+ ### adjustDLST
36
+
37
+ ▸ `Static` `Private` **adjustDLST**(`date`): `Date`
38
+
39
+ Realiza correção do horário de verão.
40
+
41
+ #### Parameters
42
+
43
+ | Name | Type | Description |
44
+ | :------ | :------ | :------ |
45
+ | `date` | `Date` | Data a ser ajustada. |
46
+
47
+ #### Returns
48
+
49
+ `Date`
50
+
51
+ - Data informada ajustada para horário de verão.
52
+
53
+ #### Defined in
54
+
55
+ src/utils/DateUtils.ts:135
56
+
57
+ ___
58
+
59
+ ### clearTime
60
+
61
+ ▸ `Static` **clearTime**(`date`, `adjustDayLightSavingTime?`): `Date`
62
+
63
+ Zerar o horário de uma data.
64
+
65
+ **`Example`**
66
+
67
+ ```ts
68
+ Informo: 2023-03-09 12:42:40 | Obtenho: 2023-03-09 00:00:00
69
+ ```
70
+
71
+ #### Parameters
72
+
73
+ | Name | Type | Default value | Description |
74
+ | :------ | :------ | :------ | :------ |
75
+ | `date` | `Date` | `undefined` | Data a ser manipulada. |
76
+ | `adjustDayLightSavingTime` | `boolean` | `true` | Ajusta horário de verão na data recebida. |
77
+
78
+ #### Returns
79
+
80
+ `Date`
81
+
82
+ - Data sem as informações de horário.
83
+
84
+ #### Defined in
85
+
86
+ src/utils/DateUtils.ts:17
87
+
88
+ ___
89
+
90
+ ### formatDate
91
+
92
+ ▸ `Static` **formatDate**(`date`, `options?`): `string`
93
+
94
+ Converte data para uma string no formato pt-BR.
95
+
96
+ #### Parameters
97
+
98
+ | Name | Type | Description |
99
+ | :------ | :------ | :------ |
100
+ | `date` | `Date` | Data a ser convertida. |
101
+ | `options?` | `DateTimeFormatOptions` | Opções de formatação da data. |
102
+
103
+ #### Returns
104
+
105
+ `string`
106
+
107
+ - Uma string com a data no formato pt-BR DD/MM/YYYY.
108
+
109
+ #### Defined in
110
+
111
+ src/utils/DateUtils.ts:29
112
+
113
+ ___
114
+
115
+ ### formatDateTime
116
+
117
+ ▸ `Static` **formatDateTime**(`date`, `showSeconds?`): `string`
118
+
119
+ Converte a data e hora para uma string no formato pt-BR.
120
+
121
+ #### Parameters
122
+
123
+ | Name | Type | Default value | Description |
124
+ | :------ | :------ | :------ | :------ |
125
+ | `date` | `Date` | `undefined` | Data a ser convertida. |
126
+ | `showSeconds` | `boolean` | `false` | define se devemos considerar os segundos. |
127
+
128
+ #### Returns
129
+
130
+ `string`
131
+
132
+ - Uma string com as horas no formato DD/MM/YYYY HH:MM ou DD/MM/YYYY HH:MM:SS.
133
+
134
+ #### Defined in
135
+
136
+ src/utils/DateUtils.ts:52
137
+
138
+ ___
139
+
140
+ ### formatRfc3339
141
+
142
+ ▸ `Static` **formatRfc3339**(`date`): `string`
143
+
144
+ Converte a data para o formato RFC3339.
145
+
146
+ **`Example`**
147
+
148
+ ```ts
149
+ Informo: 2023-03-09 12:42:40 | Obtenho: 2023-03-09T12:42:47-03:00
150
+ ```
151
+
152
+ #### Parameters
153
+
154
+ | Name | Type | Description |
155
+ | :------ | :------ | :------ |
156
+ | `date` | `Date` | Data a ser convertida |
157
+
158
+ #### Returns
159
+
160
+ `string`
161
+
162
+ - Data informada no formato RFC3339.
163
+ *
164
+
165
+ #### Defined in
166
+
167
+ src/utils/DateUtils.ts:185
168
+
169
+ ___
170
+
171
+ ### formatTime
172
+
173
+ ▸ `Static` **formatTime**(`date`, `showSeconds?`): `string`
174
+
175
+ Converte as horas de uma data para uma string pt-BR.
176
+
177
+ #### Parameters
178
+
179
+ | Name | Type | Default value | Description |
180
+ | :------ | :------ | :------ | :------ |
181
+ | `date` | `Date` | `undefined` | Data a ser convertida. |
182
+ | `showSeconds` | `boolean` | `false` | define se devemos considerar os segundos. |
183
+
184
+ #### Returns
185
+
186
+ `string`
187
+
188
+ - Uma string com as horas no formato HH:MM ou HH:MM:SS.
189
+
190
+ #### Defined in
191
+
192
+ src/utils/DateUtils.ts:40
193
+
194
+ ___
195
+
196
+ ### getToday
197
+
198
+ ▸ `Static` **getToday**(`withTime?`): `Date`
199
+
200
+ Obtém a data atual.
201
+
202
+ #### Parameters
203
+
204
+ | Name | Type | Default value | Description |
205
+ | :------ | :------ | :------ | :------ |
206
+ | `withTime` | `boolean` | `false` | Caso true retorna a data com informações de horário. |
207
+
208
+ #### Returns
209
+
210
+ `Date`
211
+
212
+ - Data atual sem informação de horário.
213
+
214
+ #### Defined in
215
+
216
+ src/utils/DateUtils.ts:106
217
+
218
+ ___
219
+
220
+ ### pad
221
+
222
+ ▸ `Static` `Private` **pad**(`n`): `string` \| `number`
223
+
224
+ Adiciona uma casa decimal a esquerda de uma unidade.
225
+
226
+ **`Example`**
227
+
228
+ ```ts
229
+ Informo: 15 | Obtenho: 15
230
+ ```
231
+
232
+ **`Example`**
233
+
234
+ ```ts
235
+ Informo: 2 | Obtenho: "02"
236
+ ```
237
+
238
+ #### Parameters
239
+
240
+ | Name | Type | Description |
241
+ | :------ | :------ | :------ |
242
+ | `n` | `number` | Número a ser ajustado |
243
+
244
+ #### Returns
245
+
246
+ `string` \| `number`
247
+
248
+ - O número informado, com uma casa decimal a esquerda.
249
+
250
+ #### Defined in
251
+
252
+ src/utils/DateUtils.ts:154
253
+
254
+ ___
255
+
256
+ ### strToDate
257
+
258
+ ▸ `Static` **strToDate**(`strValue`, `adjustDayLightSavingTime?`, `monthYearMode?`): `undefined` \| `Date`
259
+
260
+ Converte String para Date.
261
+
262
+ #### Parameters
263
+
264
+ | Name | Type | Default value | Description |
265
+ | :------ | :------ | :------ | :------ |
266
+ | `strValue` | `string` | `undefined` | Texto a ser convertido para data. |
267
+ | `adjustDayLightSavingTime` | `boolean` | `true` | Se verdadeiro, ativa regra de horário de verão. |
268
+ | `monthYearMode` | `boolean` | `false` | Quando ativado, retorna o primeiro dia do mês apenas para construir a data. |
269
+
270
+ #### Returns
271
+
272
+ `undefined` \| `Date`
273
+
274
+ - Data sem as informações de horário.
275
+
276
+ #### Defined in
277
+
278
+ src/utils/DateUtils.ts:64
279
+
280
+ ___
281
+
282
+ ### timezoneOffset
283
+
284
+ ▸ `Static` `Private` **timezoneOffset**(`offset`): `string`
285
+
286
+ Retorna timezone da data.
287
+
288
+ #### Parameters
289
+
290
+ | Name | Type | Description |
291
+ | :------ | :------ | :------ |
292
+ | `offset` | `number` | Valor do timezone desejado. |
293
+
294
+ #### Returns
295
+
296
+ `string`
297
+
298
+ Timezone da data.
299
+
300
+ #### Defined in
301
+
302
+ src/utils/DateUtils.ts:164
303
+
304
+ ___
305
+
306
+ ### validateDate
307
+
308
+ ▸ `Static` **validateDate**(`value`, `hasTime?`): `undefined` \| `Date`
309
+
310
+ Retorna se a data é válida.
311
+
312
+ #### Parameters
313
+
314
+ | Name | Type | Default value | Description |
315
+ | :------ | :------ | :------ | :------ |
316
+ | `value` | `Date` | `undefined` | Data a ser validada. |
317
+ | `hasTime` | `boolean` | `false` | Determina se a data retornada deve conter informação de horário ou não. Por padrão não retorna a hora. |
318
+
319
+ #### Returns
320
+
321
+ `undefined` \| `Date`
322
+
323
+ - Caso válida, retorna a própria data.
324
+
325
+ #### Defined in
326
+
327
+ src/utils/DateUtils.ts:123