@sankhyalabs/core-docs 2.3.4 → 2.3.5

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 (49) hide show
  1. package/README.md +57 -0
  2. package/classes/ApplicationContext.md +76 -0
  3. package/classes/ArrayUtils.md +89 -0
  4. package/classes/AuthorizedServiceCaller.md +76 -0
  5. package/classes/Change.md +168 -0
  6. package/classes/DataUnit.md +1394 -0
  7. package/classes/DataUnitAction.md +96 -0
  8. package/classes/DateUtils.md +190 -0
  9. package/classes/ElementIDUtils.md +243 -0
  10. package/classes/ErrorException.md +204 -0
  11. package/classes/ErrorTracking.md +54 -0
  12. package/classes/FloatingManager.md +384 -0
  13. package/classes/HttpProvider.md +96 -0
  14. package/classes/MaskFormatter-1.md +336 -0
  15. package/classes/NumberUtils.md +188 -0
  16. package/classes/ObjectUtils.md +81 -0
  17. package/classes/ReadyUtil.md +103 -0
  18. package/classes/RequestMetadata.md +84 -0
  19. package/classes/SkwHttpProvider.md +109 -0
  20. package/classes/StringUtils.md +381 -0
  21. package/classes/TimeFormatter.md +98 -0
  22. package/classes/UserAgentUtils.md +48 -0
  23. package/classes/WaitingChangeException.md +192 -0
  24. package/classes/WarningException.md +204 -0
  25. package/enums/Action.md +250 -0
  26. package/enums/ChangeOperation.md +52 -0
  27. package/enums/DataType.md +63 -0
  28. package/enums/DependencyType.md +41 -0
  29. package/enums/SortMode.md +30 -0
  30. package/enums/UserInterface.md +195 -0
  31. package/interfaces/DUActionInterceptor.md +29 -0
  32. package/interfaces/ExecutionContext.md +58 -0
  33. package/interfaces/FieldDescriptor.md +129 -0
  34. package/interfaces/Filter.md +41 -0
  35. package/interfaces/IElementIDInfo.md +30 -0
  36. package/interfaces/LoadDataRequest.md +63 -0
  37. package/interfaces/LoadDataResponse.md +30 -0
  38. package/interfaces/PageRequest.md +41 -0
  39. package/interfaces/PaginationInfo.md +63 -0
  40. package/interfaces/QuickFilter.md +30 -0
  41. package/interfaces/Record.md +40 -0
  42. package/interfaces/SavedRecord.md +55 -0
  43. package/interfaces/Sort.md +41 -0
  44. package/interfaces/SortingProvider.md +29 -0
  45. package/interfaces/UnitMetadata.md +41 -0
  46. package/interfaces/WaitingChange.md +41 -0
  47. package/modules/MaskFormatter.md +37 -0
  48. package/modules.md +63 -0
  49. package/package.json +1 -1
@@ -0,0 +1,54 @@
1
+ [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / ErrorTracking
2
+
3
+ # Class: ErrorTracking
4
+
5
+ ## Table of contents
6
+
7
+ ### Constructors
8
+
9
+ - [constructor](ErrorTracking.md#constructor)
10
+
11
+ ### Methods
12
+
13
+ - [init](ErrorTracking.md#init)
14
+ - [isInternalException](ErrorTracking.md#isinternalexception)
15
+
16
+ ## Constructors
17
+
18
+ ### constructor
19
+
20
+ • **new ErrorTracking**()
21
+
22
+ ## Methods
23
+
24
+ ### init
25
+
26
+ ▸ `Static` **init**(): `void`
27
+
28
+ #### Returns
29
+
30
+ `void`
31
+
32
+ #### Defined in
33
+
34
+ src/traking/ErrorTraking.ts:6
35
+
36
+ ___
37
+
38
+ ### isInternalException
39
+
40
+ ▸ `Static` `Private` **isInternalException**(`error`): `boolean`
41
+
42
+ #### Parameters
43
+
44
+ | Name | Type |
45
+ | :------ | :------ |
46
+ | `error` | `any` |
47
+
48
+ #### Returns
49
+
50
+ `boolean`
51
+
52
+ #### Defined in
53
+
54
+ src/traking/ErrorTraking.ts:17
@@ -0,0 +1,384 @@
1
+ [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / FloatingManager
2
+
3
+ # Class: FloatingManager
4
+
5
+ ## Table of contents
6
+
7
+ ### Constructors
8
+
9
+ - [constructor](FloatingManager.md#constructor)
10
+
11
+ ### Properties
12
+
13
+ - [MODAL\_DEFAULT\_CLASSNAME](FloatingManager.md#modal_default_classname)
14
+ - [MODAL\_ELEMENT\_ID](FloatingManager.md#modal_element_id)
15
+ - [STYLE\_ELEMENT\_ID](FloatingManager.md#style_element_id)
16
+ - [entries](FloatingManager.md#entries)
17
+ - [initialized](FloatingManager.md#initialized)
18
+
19
+ ### Methods
20
+
21
+ - [applyStyle](FloatingManager.md#applystyle)
22
+ - [close](FloatingManager.md#close)
23
+ - [createOrUpdatOverlay](FloatingManager.md#createorupdatoverlay)
24
+ - [createStyleElement](FloatingManager.md#createstyleelement)
25
+ - [doClose](FloatingManager.md#doclose)
26
+ - [float](FloatingManager.md#float)
27
+ - [getFloatIndex](FloatingManager.md#getfloatindex)
28
+ - [handleDocumentEvent](FloatingManager.md#handledocumentevent)
29
+ - [handleKeyboardEvent](FloatingManager.md#handlekeyboardevent)
30
+ - [hideOverlay](FloatingManager.md#hideoverlay)
31
+ - [init](FloatingManager.md#init)
32
+ - [innerClick](FloatingManager.md#innerclick)
33
+ - [isFloating](FloatingManager.md#isfloating)
34
+ - [showOverlay](FloatingManager.md#showoverlay)
35
+ - [updateFloatPosition](FloatingManager.md#updatefloatposition)
36
+
37
+ ## Constructors
38
+
39
+ ### constructor
40
+
41
+ • **new FloatingManager**()
42
+
43
+ ## Properties
44
+
45
+ ### MODAL\_DEFAULT\_CLASSNAME
46
+
47
+ ▪ `Static` **MODAL\_DEFAULT\_CLASSNAME**: `string` = `"FloatingManager__modal"`
48
+
49
+ #### Defined in
50
+
51
+ src/ui/FloatingManager.ts:50
52
+
53
+ ___
54
+
55
+ ### MODAL\_ELEMENT\_ID
56
+
57
+ ▪ `Static` **MODAL\_ELEMENT\_ID**: `string` = `"FloatingManager__overlay"`
58
+
59
+ #### Defined in
60
+
61
+ src/ui/FloatingManager.ts:51
62
+
63
+ ___
64
+
65
+ ### STYLE\_ELEMENT\_ID
66
+
67
+ ▪ `Static` **STYLE\_ELEMENT\_ID**: `string` = `"FloatingManager__style"`
68
+
69
+ #### Defined in
70
+
71
+ src/ui/FloatingManager.ts:52
72
+
73
+ ___
74
+
75
+ ### entries
76
+
77
+ ▪ `Static` `Private` **entries**: `FloatingEntry`[]
78
+
79
+ #### Defined in
80
+
81
+ src/ui/FloatingManager.ts:55
82
+
83
+ ___
84
+
85
+ ### initialized
86
+
87
+ ▪ `Static` `Private` **initialized**: `boolean`
88
+
89
+ #### Defined in
90
+
91
+ src/ui/FloatingManager.ts:54
92
+
93
+ ## Methods
94
+
95
+ ### applyStyle
96
+
97
+ ▸ `Static` `Private` **applyStyle**(`element`, `propertyName`, `value?`): `void`
98
+
99
+ #### Parameters
100
+
101
+ | Name | Type |
102
+ | :------ | :------ |
103
+ | `element` | `HTMLElement` |
104
+ | `propertyName` | `string` |
105
+ | `value?` | `string` |
106
+
107
+ #### Returns
108
+
109
+ `void`
110
+
111
+ #### Defined in
112
+
113
+ src/ui/FloatingManager.ts:115
114
+
115
+ ___
116
+
117
+ ### close
118
+
119
+ ▸ `Static` **close**(`id`): `void`
120
+
121
+ #### Parameters
122
+
123
+ | Name | Type |
124
+ | :------ | :------ |
125
+ | `id` | `number` |
126
+
127
+ #### Returns
128
+
129
+ `void`
130
+
131
+ #### Defined in
132
+
133
+ src/ui/FloatingManager.ts:233
134
+
135
+ ___
136
+
137
+ ### createOrUpdatOverlay
138
+
139
+ ▸ `Static` `Private` **createOrUpdatOverlay**(`className?`): `HTMLDivElement`
140
+
141
+ #### Parameters
142
+
143
+ | Name | Type | Default value |
144
+ | :------ | :------ | :------ |
145
+ | `className` | `string` | `FloatingManager.MODAL_DEFAULT_CLASSNAME` |
146
+
147
+ #### Returns
148
+
149
+ `HTMLDivElement`
150
+
151
+ #### Defined in
152
+
153
+ src/ui/FloatingManager.ts:179
154
+
155
+ ___
156
+
157
+ ### createStyleElement
158
+
159
+ ▸ `Static` `Private` **createStyleElement**(): `void`
160
+
161
+ #### Returns
162
+
163
+ `void`
164
+
165
+ #### Defined in
166
+
167
+ src/ui/FloatingManager.ts:198
168
+
169
+ ___
170
+
171
+ ### doClose
172
+
173
+ ▸ `Static` `Private` **doClose**(`id`, `entry`, `target?`, `event?`): `void`
174
+
175
+ #### Parameters
176
+
177
+ | Name | Type |
178
+ | :------ | :------ |
179
+ | `id` | `number` |
180
+ | `entry` | `FloatingEntry` |
181
+ | `target?` | `HTMLElement` |
182
+ | `event?` | `Event` |
183
+
184
+ #### Returns
185
+
186
+ `void`
187
+
188
+ #### Defined in
189
+
190
+ src/ui/FloatingManager.ts:76
191
+
192
+ ___
193
+
194
+ ### float
195
+
196
+ ▸ `Static` **float**(`content`, `parent`, `options?`): `number`
197
+
198
+ #### Parameters
199
+
200
+ | Name | Type |
201
+ | :------ | :------ |
202
+ | `content` | `HTMLElement` |
203
+ | `parent` | `HTMLElement` |
204
+ | `options` | `FloatingOptions` |
205
+
206
+ #### Returns
207
+
208
+ `number`
209
+
210
+ #### Defined in
211
+
212
+ src/ui/FloatingManager.ts:136
213
+
214
+ ___
215
+
216
+ ### getFloatIndex
217
+
218
+ ▸ `Static` `Private` **getFloatIndex**(`content`, `parent`): `number`
219
+
220
+ #### Parameters
221
+
222
+ | Name | Type |
223
+ | :------ | :------ |
224
+ | `content` | `HTMLElement` |
225
+ | `parent` | `HTMLElement` |
226
+
227
+ #### Returns
228
+
229
+ `number`
230
+
231
+ #### Defined in
232
+
233
+ src/ui/FloatingManager.ts:121
234
+
235
+ ___
236
+
237
+ ### handleDocumentEvent
238
+
239
+ ▸ `Static` `Private` **handleDocumentEvent**(`event`): `void`
240
+
241
+ #### Parameters
242
+
243
+ | Name | Type |
244
+ | :------ | :------ |
245
+ | `event` | `Event` |
246
+
247
+ #### Returns
248
+
249
+ `void`
250
+
251
+ #### Defined in
252
+
253
+ src/ui/FloatingManager.ts:96
254
+
255
+ ___
256
+
257
+ ### handleKeyboardEvent
258
+
259
+ ▸ `Static` `Private` **handleKeyboardEvent**(`event`): `void`
260
+
261
+ #### Parameters
262
+
263
+ | Name | Type |
264
+ | :------ | :------ |
265
+ | `event` | `KeyboardEvent` |
266
+
267
+ #### Returns
268
+
269
+ `void`
270
+
271
+ #### Defined in
272
+
273
+ src/ui/FloatingManager.ts:103
274
+
275
+ ___
276
+
277
+ ### hideOverlay
278
+
279
+ ▸ `Static` `Private` **hideOverlay**(): `void`
280
+
281
+ #### Returns
282
+
283
+ `void`
284
+
285
+ #### Defined in
286
+
287
+ src/ui/FloatingManager.ts:167
288
+
289
+ ___
290
+
291
+ ### init
292
+
293
+ ▸ `Static` `Private` **init**(): `void`
294
+
295
+ #### Returns
296
+
297
+ `void`
298
+
299
+ #### Defined in
300
+
301
+ src/ui/FloatingManager.ts:57
302
+
303
+ ___
304
+
305
+ ### innerClick
306
+
307
+ ▸ `Static` `Private` **innerClick**(`container`, `node`): `boolean`
308
+
309
+ #### Parameters
310
+
311
+ | Name | Type |
312
+ | :------ | :------ |
313
+ | `container` | `HTMLElement` |
314
+ | `node` | `HTMLElement` |
315
+
316
+ #### Returns
317
+
318
+ `boolean`
319
+
320
+ #### Defined in
321
+
322
+ src/ui/FloatingManager.ts:64
323
+
324
+ ___
325
+
326
+ ### isFloating
327
+
328
+ ▸ `Static` **isFloating**(`id`): `boolean`
329
+
330
+ #### Parameters
331
+
332
+ | Name | Type |
333
+ | :------ | :------ |
334
+ | `id` | `number` |
335
+
336
+ #### Returns
337
+
338
+ `boolean`
339
+
340
+ #### Defined in
341
+
342
+ src/ui/FloatingManager.ts:132
343
+
344
+ ___
345
+
346
+ ### showOverlay
347
+
348
+ ▸ `Static` `Private` **showOverlay**(`options`): `void`
349
+
350
+ #### Parameters
351
+
352
+ | Name | Type |
353
+ | :------ | :------ |
354
+ | `options` | `FloatingOptions` |
355
+
356
+ #### Returns
357
+
358
+ `void`
359
+
360
+ #### Defined in
361
+
362
+ src/ui/FloatingManager.ts:161
363
+
364
+ ___
365
+
366
+ ### updateFloatPosition
367
+
368
+ ▸ `Static` **updateFloatPosition**(`content`, `parent`, `options?`): `void`
369
+
370
+ #### Parameters
371
+
372
+ | Name | Type |
373
+ | :------ | :------ |
374
+ | `content` | `HTMLElement` |
375
+ | `parent` | `HTMLElement` |
376
+ | `options` | `FloatingOptions` |
377
+
378
+ #### Returns
379
+
380
+ `void`
381
+
382
+ #### Defined in
383
+
384
+ src/ui/FloatingManager.ts:222
@@ -0,0 +1,96 @@
1
+ [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / HttpProvider
2
+
3
+ # Class: HttpProvider
4
+
5
+ Abstração do XMLHttpRequest. Este serviço é responsável por realizar as requisições
6
+ ao backend. Todos os métodos são estáticos.
7
+
8
+ ## Table of contents
9
+
10
+ ### Constructors
11
+
12
+ - [constructor](HttpProvider.md#constructor)
13
+
14
+ ### Methods
15
+
16
+ - [dispatch](HttpProvider.md#dispatch)
17
+ - [get](HttpProvider.md#get)
18
+ - [post](HttpProvider.md#post)
19
+
20
+ ## Constructors
21
+
22
+ ### constructor
23
+
24
+ • **new HttpProvider**()
25
+
26
+ ## Methods
27
+
28
+ ### dispatch
29
+
30
+ ▸ `Static` `Private` **dispatch**(`requestMetadata`, `payload?`): `Promise`<`any`\>
31
+
32
+ #### Parameters
33
+
34
+ | Name | Type |
35
+ | :------ | :------ |
36
+ | `requestMetadata` | [`RequestMetadata`](RequestMetadata.md) |
37
+ | `payload?` | `Object` |
38
+
39
+ #### Returns
40
+
41
+ `Promise`<`any`\>
42
+
43
+ #### Defined in
44
+
45
+ src/http/HttpProvider.ts:32
46
+
47
+ ___
48
+
49
+ ### get
50
+
51
+ ▸ `Static` **get**(`url`, `headers?`): `Promise`<`Object`\>
52
+
53
+ Faz uma requisição usando o método GET do HTTP para uma URL específica.
54
+
55
+ #### Parameters
56
+
57
+ | Name | Type | Description |
58
+ | :------ | :------ | :------ |
59
+ | `url` | `string` | A URL que deve ser chamada. |
60
+ | `headers?` | `Header`[] | [Opcional] Cabeçalhos HTTP. |
61
+
62
+ #### Returns
63
+
64
+ `Promise`<`Object`\>
65
+
66
+ Uma promessa de que a requisição será preenchida.
67
+
68
+ #### Defined in
69
+
70
+ src/http/HttpProvider.ts:16
71
+
72
+ ___
73
+
74
+ ### post
75
+
76
+ ▸ `Static` **post**(`url`, `payload`, `headers?`): `Promise`<`any`\>
77
+
78
+ Faz uma requisição usando o método POST do HTTP para uma URL específica.
79
+
80
+ #### Parameters
81
+
82
+ | Name | Type | Description |
83
+ | :------ | :------ | :------ |
84
+ | `url` | `string` | A URL que deve ser chamada. |
85
+ | `payload` | `Object` | Informações a serem enviadas. |
86
+ | `headers?` | `Header`[] | [Opcional] Cabeçalhos HTTP. |
87
+
88
+ #### Returns
89
+
90
+ `Promise`<`any`\>
91
+
92
+ Uma promessa de que a requisição será preenchida.
93
+
94
+ #### Defined in
95
+
96
+ src/http/HttpProvider.ts:28