@sankhyalabs/core-docs 5.15.5 → 5.16.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 (81) hide show
  1. package/README.md +3 -1
  2. package/classes/ApplicationContext.md +31 -32
  3. package/classes/ArrayUtils.md +183 -41
  4. package/classes/AuthorizedServiceCaller.md +25 -34
  5. package/classes/Change.md +59 -74
  6. package/classes/DataUnit.md +970 -1068
  7. package/classes/DataUnitAction.md +25 -42
  8. package/classes/DataUnitStorage.md +40 -43
  9. package/classes/DateUtils.md +133 -126
  10. package/classes/ElementIDUtils.md +123 -122
  11. package/classes/ErrorException.md +67 -88
  12. package/classes/ErrorTracking.md +20 -23
  13. package/classes/FieldComparator.md +35 -39
  14. package/classes/FloatingManager.md +195 -198
  15. package/classes/HTMLBuilder.md +14 -20
  16. package/classes/HttpProvider.md +45 -41
  17. package/classes/IDBRepository.md +179 -196
  18. package/classes/JSUtils.md +82 -58
  19. package/classes/KeyboardManager.md +95 -87
  20. package/classes/{MaskFormatter-1.md → MaskFormatter.md} +81 -120
  21. package/classes/NumberUtils.md +163 -152
  22. package/classes/ObjectUtils.md +82 -61
  23. package/classes/OnboardingUtils.md +36 -51
  24. package/classes/OverflowWatcher.md +269 -0
  25. package/classes/PromiseSync.md +25 -42
  26. package/classes/ReadyUtil.md +31 -41
  27. package/classes/RequestMetadata.md +29 -30
  28. package/classes/SearchUtils.md +41 -0
  29. package/classes/SelectionInfo.md +59 -74
  30. package/classes/SkwHttpProvider.md +33 -45
  31. package/classes/StringUtils.md +397 -268
  32. package/classes/TimeFormatter.md +43 -44
  33. package/classes/UserAgentUtils.md +17 -20
  34. package/classes/VersionUtils.md +15 -18
  35. package/classes/WaitingChangeException.md +63 -84
  36. package/classes/WarningException.md +67 -88
  37. package/enumerations/Action.md +297 -0
  38. package/enumerations/ChangeOperation.md +47 -0
  39. package/enumerations/DataType.md +57 -0
  40. package/enumerations/DependencyType.md +37 -0
  41. package/enumerations/OverflowDirection.md +29 -0
  42. package/enumerations/SelectionMode.md +27 -0
  43. package/enumerations/SortMode.md +27 -0
  44. package/enumerations/UserInterface.md +177 -0
  45. package/functions/defaultDataLoader.md +25 -0
  46. package/{modules.md → globals.md} +22 -37
  47. package/interfaces/ChildDescriptor.md +12 -16
  48. package/interfaces/ChildLink.md +9 -12
  49. package/interfaces/DUActionInterceptor.md +10 -14
  50. package/interfaces/ExecutionContext.md +17 -32
  51. package/interfaces/FieldDescriptor.md +52 -66
  52. package/interfaces/Filter.md +13 -17
  53. package/interfaces/IElementIDInfo.md +11 -14
  54. package/interfaces/ILoadResult.md +11 -16
  55. package/interfaces/IRepository.md +88 -93
  56. package/interfaces/IRepositoryIndex.md +23 -30
  57. package/interfaces/LoadDataRequest.md +36 -45
  58. package/interfaces/LoadDataResponse.md +11 -14
  59. package/interfaces/PageRequest.md +16 -20
  60. package/interfaces/PaginationInfo.md +24 -31
  61. package/interfaces/PromiseSyncCallback.md +13 -17
  62. package/interfaces/QuickFilter.md +17 -21
  63. package/interfaces/Record.md +26 -33
  64. package/interfaces/SavedRecord.md +33 -41
  65. package/interfaces/Sort.md +12 -16
  66. package/interfaces/SortingProvider.md +10 -13
  67. package/interfaces/UnitMetadata.md +16 -21
  68. package/interfaces/WaitingChange.md +16 -20
  69. package/namespaces/MaskFormatter/README.md +17 -0
  70. package/namespaces/MaskFormatter/type-aliases/MaskCharacter.md +13 -0
  71. package/namespaces/MaskFormatter/variables/MaskCharacter.md +13 -0
  72. package/package.json +1 -1
  73. package/type-aliases/OnOverflowCallBack.md +25 -0
  74. package/enums/Action.md +0 -327
  75. package/enums/ChangeOperation.md +0 -52
  76. package/enums/DataType.md +0 -63
  77. package/enums/DependencyType.md +0 -41
  78. package/enums/SelectionMode.md +0 -30
  79. package/enums/SortMode.md +0 -30
  80. package/enums/UserInterface.md +0 -195
  81. package/modules/MaskFormatter.md +0 -37
package/README.md CHANGED
@@ -1,4 +1,6 @@
1
- @sankhyalabs/core / [Exports](modules.md)
1
+ **@sankhyalabs/core** [**Docs**](globals.md)
2
+
3
+ ***
2
4
 
3
5
  # @sankhyalabs/core
4
6
 
@@ -1,41 +1,37 @@
1
- [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / ApplicationContext
1
+ [**@sankhyalabs/core**](../README.md) **Docs**
2
+
3
+ ***
4
+
5
+ [@sankhyalabs/core](../globals.md) / ApplicationContext
2
6
 
3
7
  # Class: ApplicationContext
4
8
 
5
9
  `ApplicationContext`: Utilizado para manipulação do contexto.
6
10
  - Evitar uso da classe sem alinhamento com a arquitetura devido ao uso de variáveis globais.
7
11
 
8
- ## Table of contents
9
-
10
- ### Constructors
11
-
12
- - [constructor](ApplicationContext.md#constructor)
13
-
14
- ### Methods
12
+ ## Constructors
15
13
 
16
- - [getContextValue](ApplicationContext.md#getcontextvalue)
17
- - [getCtx](ApplicationContext.md#getctx)
18
- - [setContextValue](ApplicationContext.md#setcontextvalue)
14
+ ### new ApplicationContext()
19
15
 
20
- ## Constructors
16
+ > **new ApplicationContext**(): [`ApplicationContext`](ApplicationContext.md)
21
17
 
22
- ### constructor
18
+ #### Returns
23
19
 
24
- • **new ApplicationContext**()
20
+ [`ApplicationContext`](ApplicationContext.md)
25
21
 
26
22
  ## Methods
27
23
 
28
- ### getContextValue
24
+ ### getContextValue()
29
25
 
30
- `Static` **getContextValue**(`key`): `any`
26
+ > `static` **getContextValue**(`key`): `any`
31
27
 
32
28
  Obtém informação específica do contexto.
33
29
 
34
30
  #### Parameters
35
31
 
36
- | Name | Type | Description |
37
- | :------ | :------ | :------ |
38
- | `key` | `string` | Chave do contexto desejada. |
32
+ **key**: `string`
33
+
34
+ Chave do contexto desejada.
39
35
 
40
36
  #### Returns
41
37
 
@@ -43,15 +39,15 @@ Obtém informação específica do contexto.
43
39
 
44
40
  - Informação do contexto desejado.
45
41
 
46
- #### Defined in
42
+ #### Source
47
43
 
48
44
  src/utils/ApplicationContext.ts:13
49
45
 
50
- ___
46
+ ***
51
47
 
52
- ### getCtx
48
+ ### getCtx()
53
49
 
54
- `Static` `Private` **getCtx**(): `any`
50
+ > `static` `private` **getCtx**(): `any`
55
51
 
56
52
  Obtém o contexto global da aplicação sankhyacore.
57
53
  - Esse contexto pode ser entendido como um ponto de coesão para atores que não se conhecem poderem trocar informação. Assim, o código x busca por um possível valor no contexto. Se essa informação estiver lá, ele reage de certa forma. O código Y, sabe dessa necessidade mas não consegue passar essa informação diretamente, então atribui o valor ao contexto.
@@ -62,29 +58,32 @@ Obtém o contexto global da aplicação sankhyacore.
62
58
 
63
59
  - Objeto com as propriedades da variável global ___snkcore___ctx___.
64
60
 
65
- #### Defined in
61
+ #### Source
66
62
 
67
63
  src/utils/ApplicationContext.ts:32
68
64
 
69
- ___
65
+ ***
70
66
 
71
- ### setContextValue
67
+ ### setContextValue()
72
68
 
73
- `Static` **setContextValue**(`key`, `value`): `any`
69
+ > `static` **setContextValue**(`key`, `value`): `any`
74
70
 
75
71
  Aplica informação no contexto.
76
72
 
77
73
  #### Parameters
78
74
 
79
- | Name | Type | Description |
80
- | :------ | :------ | :------ |
81
- | `key` | `string` | Identificador do contexto. |
82
- | `value` | `any` | Informação a ser inserida no contexto. |
75
+ **key**: `string`
76
+
77
+ Identificador do contexto.
78
+
79
+ • **value**: `any`
80
+
81
+ Informação a ser inserida no contexto.
83
82
 
84
83
  #### Returns
85
84
 
86
85
  `any`
87
86
 
88
- #### Defined in
87
+ #### Source
89
88
 
90
89
  src/utils/ApplicationContext.ts:23
@@ -1,43 +1,48 @@
1
- [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / ArrayUtils
1
+ [**@sankhyalabs/core**](../README.md) **Docs**
2
2
 
3
- # Class: ArrayUtils
4
-
5
- `ArrayUtils`: Utilitário com a responsabilidade de manipular Arrays.
3
+ ***
6
4
 
7
- ## Table of contents
5
+ [@sankhyalabs/core](../globals.md) / ArrayUtils
8
6
 
9
- ### Constructors
7
+ # Class: ArrayUtils
10
8
 
11
- - [constructor](ArrayUtils.md#constructor)
9
+ `ArrayUtils`: Utilitário com a responsabilidade de manipular Arrays.
12
10
 
13
- ### Methods
11
+ ## Constructors
14
12
 
15
- - [applyStringFilter](ArrayUtils.md#applystringfilter)
16
- - [normalizeSearchString](ArrayUtils.md#normalizesearchstring)
17
- - [sortAlphabetically](ArrayUtils.md#sortalphabetically)
13
+ ### new ArrayUtils()
18
14
 
19
- ## Constructors
15
+ > **new ArrayUtils**(): [`ArrayUtils`](ArrayUtils.md)
20
16
 
21
- ### constructor
17
+ #### Returns
22
18
 
23
- • **new ArrayUtils**()
19
+ [`ArrayUtils`](ArrayUtils.md)
24
20
 
25
21
  ## Methods
26
22
 
27
- ### applyStringFilter
23
+ ### applyStringFilter()
28
24
 
29
- `Static` **applyStringFilter**(`argument`, `originalArray`, `alphabeticalSorting?`, `fieldName?`): `any`[]
25
+ > `static` **applyStringFilter**(`argument`, `originalArray`, `alphabeticalSorting`, `fieldName`): `any`[]
30
26
 
31
27
  Filtra um array a partir de um critério textual.
32
28
 
33
29
  #### Parameters
34
30
 
35
- | Name | Type | Default value | Description |
36
- | :------ | :------ | :------ | :------ |
37
- | `argument` | `string` | `undefined` | Texto a ser usado no filtro. |
38
- | `originalArray` | `any`[] | `undefined` | Array no formato original. |
39
- | `alphabeticalSorting` | `boolean` | `true` | Determina se o resultado deve ser ordenado ou mantido na ordem original. Por padrão ordena. |
40
- | `fieldName` | `string` | `"label"` | Caso o objeto deva ser filtrado por um campo diferente de "label", pode-se usar esse parâmetro. |
31
+ **argument**: `string`
32
+
33
+ Texto a ser usado no filtro.
34
+
35
+ **originalArray**: `any`[]
36
+
37
+ Array no formato original.
38
+
39
+ • **alphabeticalSorting**: `boolean`= `true`
40
+
41
+ Determina se o resultado deve ser ordenado ou mantido na ordem original. Por padrão ordena.
42
+
43
+ • **fieldName**: `string`= `"label"`
44
+
45
+ Caso o objeto deva ser filtrado por um campo diferente de "label", pode-se usar esse parâmetro.
41
46
 
42
47
  #### Returns
43
48
 
@@ -45,23 +50,103 @@ Filtra um array a partir de um critério textual.
45
50
 
46
51
  - Um array filtrado e ordenado conforme necessidade..
47
52
 
48
- #### Defined in
53
+ #### Source
54
+
55
+ src/utils/ArrayUtils.ts:18
56
+
57
+ ***
58
+
59
+ ### find()
60
+
61
+ > `static` **find**(`arr`, `checkerFn`): `any`
62
+
63
+ Ordena valores de um array alfabeticamente.
64
+
65
+ #### Parameters
66
+
67
+ • **arr**: `any`
68
+
69
+ Array a ser ordenado.
70
+
71
+ • **checkerFn**: `any`
72
+
73
+ #### Returns
74
+
75
+ `any`
76
+
77
+ - Array ordenado alfabeticamente..
78
+
79
+ #### Source
80
+
81
+ src/utils/ArrayUtils.ts:69
82
+
83
+ ***
84
+
85
+ ### indexOf()
86
+
87
+ > `static` **indexOf**(`arr`, `obj`): `number`
88
+
89
+ Retorna o objeto se for encontrado no array, ou -1 se não for encontrado.
90
+
91
+ #### Parameters
92
+
93
+ • **arr**: `any`
94
+
95
+ Array onde está o objeto.
96
+
97
+ • **obj**: `any`
98
+
99
+ Objeto a ser procurado.
100
+
101
+ #### Returns
102
+
103
+ `number`
104
+
105
+ - Array ordenado alfabeticamente..
106
+
107
+ #### Source
108
+
109
+ src/utils/ArrayUtils.ts:88
49
110
 
50
- src/utils/ArrayUtils.ts:17
111
+ ***
51
112
 
52
- ___
113
+ ### isIn()
53
114
 
54
- ### normalizeSearchString
115
+ > `static` **isIn**(`arr`, `obj`): `boolean`
55
116
 
56
- `Static` `Private` **normalizeSearchString**(`original`): `string`
117
+ Remove um objeto do array.
118
+
119
+ #### Parameters
120
+
121
+ • **arr**: `any`
122
+
123
+ • **obj**: `any`
124
+
125
+ Objeto a ser removido.
126
+
127
+ #### Returns
128
+
129
+ `boolean`
130
+
131
+ - Array sem o Objeto informado.
132
+
133
+ #### Source
134
+
135
+ src/utils/ArrayUtils.ts:131
136
+
137
+ ***
138
+
139
+ ### normalizeSearchString()
140
+
141
+ > `static` `private` **normalizeSearchString**(`original`): `string`
57
142
 
58
143
  Converte texto para caixa alta e substitui caracteres acentuados.
59
144
 
60
145
  #### Parameters
61
146
 
62
- | Name | Type | Description |
63
- | :------ | :------ | :------ |
64
- | `original` | `string` | Texto a ser convertido. |
147
+ **original**: `string`
148
+
149
+ Texto a ser convertido.
65
150
 
66
151
  #### Returns
67
152
 
@@ -69,24 +154,81 @@ Converte texto para caixa alta e substitui caracteres acentuados.
69
154
 
70
155
  - Texto com as letras acentuadas sem os acentos e em caixa alta.
71
156
 
72
- #### Defined in
157
+ #### Source
158
+
159
+ src/utils/ArrayUtils.ts:36
160
+
161
+ ***
162
+
163
+ ### removeAtIndex()
164
+
165
+ > `static` **removeAtIndex**(`array`, `index`): `any`
73
166
 
74
- src/utils/ArrayUtils.ts:35
167
+ Remove um item de array de acordo com o index.
75
168
 
76
- ___
169
+ #### Parameters
170
+
171
+ • **array**: `any`
172
+
173
+ Array onde está o item.
77
174
 
78
- ### sortAlphabetically
175
+ **index**: `number`
176
+
177
+ Index do item a ser removido.
178
+
179
+ #### Returns
79
180
 
80
- `Static` **sortAlphabetically**(`originalArray`, `fieldName?`): `any`[]
181
+ `any`
182
+
183
+ - Array sem o item do index informado.
184
+
185
+ #### Source
186
+
187
+ src/utils/ArrayUtils.ts:106
188
+
189
+ ***
190
+
191
+ ### removeReference()
192
+
193
+ > `static` **removeReference**(`array`, `obj`): `any`
194
+
195
+ Remove um objeto do array.
196
+
197
+ #### Parameters
198
+
199
+ • **array**: `any`
200
+
201
+ Array onde está o objeto.
202
+
203
+ • **obj**: `any`
204
+
205
+ Objeto a ser removido.
206
+
207
+ #### Returns
208
+
209
+ `any`
210
+
211
+ - Array sem o Objeto informado.
212
+
213
+ #### Source
214
+
215
+ src/utils/ArrayUtils.ts:119
216
+
217
+ ***
218
+
219
+ ### sortAlphabetically()
220
+
221
+ > `static` **sortAlphabetically**(`originalArray`, `fieldName`): `any`[]
81
222
 
82
223
  Ordena valores de um array alfabeticamente.
83
224
 
84
225
  #### Parameters
85
226
 
86
- | Name | Type | Default value | Description |
87
- | :------ | :------ | :------ | :------ |
88
- | `originalArray` | `any`[] | `undefined` | Array a ser ordenado. |
89
- | `fieldName` | `string` | `"label"` | - |
227
+ **originalArray**: `any`[]
228
+
229
+ Array a ser ordenado.
230
+
231
+ • **fieldName**: `string`= `"label"`
90
232
 
91
233
  #### Returns
92
234
 
@@ -94,6 +236,6 @@ Ordena valores de um array alfabeticamente.
94
236
 
95
237
  - Array ordenado alfabeticamente..
96
238
 
97
- #### Defined in
239
+ #### Source
98
240
 
99
- src/utils/ArrayUtils.ts:45
241
+ src/utils/ArrayUtils.ts:46
@@ -1,36 +1,28 @@
1
- [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / AuthorizedServiceCaller
1
+ [**@sankhyalabs/core**](../README.md) **Docs**
2
2
 
3
- # Class: AuthorizedServiceCaller
4
-
5
- ## Table of contents
6
-
7
- ### Constructors
3
+ ***
8
4
 
9
- - [constructor](AuthorizedServiceCaller.md#constructor)
5
+ [@sankhyalabs/core](../globals.md) / AuthorizedServiceCaller
10
6
 
11
- ### Properties
7
+ # Class: AuthorizedServiceCaller
12
8
 
13
- - [serverURL](AuthorizedServiceCaller.md#serverurl)
14
- - [unauthorizedPath](AuthorizedServiceCaller.md#unauthorizedpath)
9
+ ## Constructors
15
10
 
16
- ### Methods
11
+ ### new AuthorizedServiceCaller()
17
12
 
18
- - [requestService](AuthorizedServiceCaller.md#requestservice)
13
+ > **new AuthorizedServiceCaller**(`serverURL`, `unauthorizedPath`): [`AuthorizedServiceCaller`](AuthorizedServiceCaller.md)
19
14
 
20
- ## Constructors
15
+ #### Parameters
21
16
 
22
- ### constructor
17
+ **serverURL**: `string`
23
18
 
24
- • **new AuthorizedServiceCaller**(`serverURL`, `unauthorizedPath`)
19
+ • **unauthorizedPath**: `string`
25
20
 
26
- #### Parameters
21
+ #### Returns
27
22
 
28
- | Name | Type |
29
- | :------ | :------ |
30
- | `serverURL` | `string` |
31
- | `unauthorizedPath` | `string` |
23
+ [`AuthorizedServiceCaller`](AuthorizedServiceCaller.md)
32
24
 
33
- #### Defined in
25
+ #### Source
34
26
 
35
27
  src/http/AuthorizedServiceCaller.ts:6
36
28
 
@@ -38,39 +30,38 @@ src/http/AuthorizedServiceCaller.ts:6
38
30
 
39
31
  ### serverURL
40
32
 
41
- `Private` **serverURL**: `string` = `"http://192.168.1.218:8503"`
33
+ > `private` **serverURL**: `string` = `"http://192.168.1.218:8503"`
42
34
 
43
- #### Defined in
35
+ #### Source
44
36
 
45
37
  src/http/AuthorizedServiceCaller.ts:3
46
38
 
47
- ___
39
+ ***
48
40
 
49
41
  ### unauthorizedPath
50
42
 
51
- `Private` **unauthorizedPath**: `string` = `"/"`
43
+ > `private` **unauthorizedPath**: `string` = `"/"`
52
44
 
53
- #### Defined in
45
+ #### Source
54
46
 
55
47
  src/http/AuthorizedServiceCaller.ts:4
56
48
 
57
49
  ## Methods
58
50
 
59
- ### requestService
51
+ ### requestService()
60
52
 
61
- **requestService**(`request`, `callback?`): `Promise`<`void` \| `Response`\>
53
+ > **requestService**(`request`, `callback`?): `Promise`\<`void` \| `Response`\>
62
54
 
63
55
  #### Parameters
64
56
 
65
- | Name | Type |
66
- | :------ | :------ |
67
- | `request` | `AuthorizedRequest` |
68
- | `callback?` | `Function` |
57
+ **request**: `AuthorizedRequest`
58
+
59
+ **callback?**: `Function`
69
60
 
70
61
  #### Returns
71
62
 
72
- `Promise`<`void` \| `Response`\>
63
+ `Promise`\<`void` \| `Response`\>
73
64
 
74
- #### Defined in
65
+ #### Source
75
66
 
76
67
  src/http/AuthorizedServiceCaller.ts:12