@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.
- package/README.md +3 -1
- package/classes/ApplicationContext.md +31 -32
- package/classes/ArrayUtils.md +183 -41
- package/classes/AuthorizedServiceCaller.md +25 -34
- package/classes/Change.md +59 -74
- package/classes/DataUnit.md +970 -1068
- package/classes/DataUnitAction.md +25 -42
- package/classes/DataUnitStorage.md +40 -43
- package/classes/DateUtils.md +133 -126
- package/classes/ElementIDUtils.md +123 -122
- package/classes/ErrorException.md +67 -88
- package/classes/ErrorTracking.md +20 -23
- package/classes/FieldComparator.md +35 -39
- package/classes/FloatingManager.md +195 -198
- package/classes/HTMLBuilder.md +14 -20
- package/classes/HttpProvider.md +45 -41
- package/classes/IDBRepository.md +179 -196
- package/classes/JSUtils.md +82 -58
- package/classes/KeyboardManager.md +95 -87
- package/classes/{MaskFormatter-1.md → MaskFormatter.md} +81 -120
- package/classes/NumberUtils.md +163 -152
- package/classes/ObjectUtils.md +82 -61
- package/classes/OnboardingUtils.md +36 -51
- package/classes/OverflowWatcher.md +269 -0
- package/classes/PromiseSync.md +25 -42
- package/classes/ReadyUtil.md +31 -41
- package/classes/RequestMetadata.md +29 -30
- package/classes/SearchUtils.md +41 -0
- package/classes/SelectionInfo.md +59 -74
- package/classes/SkwHttpProvider.md +33 -45
- package/classes/StringUtils.md +397 -268
- package/classes/TimeFormatter.md +43 -44
- package/classes/UserAgentUtils.md +17 -20
- package/classes/VersionUtils.md +15 -18
- package/classes/WaitingChangeException.md +63 -84
- package/classes/WarningException.md +67 -88
- package/enumerations/Action.md +297 -0
- package/enumerations/ChangeOperation.md +47 -0
- package/enumerations/DataType.md +57 -0
- package/enumerations/DependencyType.md +37 -0
- package/enumerations/OverflowDirection.md +29 -0
- package/enumerations/SelectionMode.md +27 -0
- package/enumerations/SortMode.md +27 -0
- package/enumerations/UserInterface.md +177 -0
- package/functions/defaultDataLoader.md +25 -0
- package/{modules.md → globals.md} +22 -37
- package/interfaces/ChildDescriptor.md +12 -16
- package/interfaces/ChildLink.md +9 -12
- package/interfaces/DUActionInterceptor.md +10 -14
- package/interfaces/ExecutionContext.md +17 -32
- package/interfaces/FieldDescriptor.md +52 -66
- package/interfaces/Filter.md +13 -17
- package/interfaces/IElementIDInfo.md +11 -14
- package/interfaces/ILoadResult.md +11 -16
- package/interfaces/IRepository.md +88 -93
- package/interfaces/IRepositoryIndex.md +23 -30
- package/interfaces/LoadDataRequest.md +36 -45
- package/interfaces/LoadDataResponse.md +11 -14
- package/interfaces/PageRequest.md +16 -20
- package/interfaces/PaginationInfo.md +24 -31
- package/interfaces/PromiseSyncCallback.md +13 -17
- package/interfaces/QuickFilter.md +17 -21
- package/interfaces/Record.md +26 -33
- package/interfaces/SavedRecord.md +33 -41
- package/interfaces/Sort.md +12 -16
- package/interfaces/SortingProvider.md +10 -13
- package/interfaces/UnitMetadata.md +16 -21
- package/interfaces/WaitingChange.md +16 -20
- package/namespaces/MaskFormatter/README.md +17 -0
- package/namespaces/MaskFormatter/type-aliases/MaskCharacter.md +13 -0
- package/namespaces/MaskFormatter/variables/MaskCharacter.md +13 -0
- package/package.json +1 -1
- package/type-aliases/OnOverflowCallBack.md +25 -0
- package/enums/Action.md +0 -327
- package/enums/ChangeOperation.md +0 -52
- package/enums/DataType.md +0 -63
- package/enums/DependencyType.md +0 -41
- package/enums/SelectionMode.md +0 -30
- package/enums/SortMode.md +0 -30
- package/enums/UserInterface.md +0 -195
- package/modules/MaskFormatter.md +0 -37
package/README.md
CHANGED
@@ -1,41 +1,37 @@
|
|
1
|
-
[
|
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
|
-
##
|
9
|
-
|
10
|
-
### Constructors
|
11
|
-
|
12
|
-
- [constructor](ApplicationContext.md#constructor)
|
13
|
-
|
14
|
-
### Methods
|
12
|
+
## Constructors
|
15
13
|
|
16
|
-
|
17
|
-
- [getCtx](ApplicationContext.md#getctx)
|
18
|
-
- [setContextValue](ApplicationContext.md#setcontextvalue)
|
14
|
+
### new ApplicationContext()
|
19
15
|
|
20
|
-
|
16
|
+
> **new ApplicationContext**(): [`ApplicationContext`](ApplicationContext.md)
|
21
17
|
|
22
|
-
|
18
|
+
#### Returns
|
23
19
|
|
24
|
-
|
20
|
+
[`ApplicationContext`](ApplicationContext.md)
|
25
21
|
|
26
22
|
## Methods
|
27
23
|
|
28
|
-
### getContextValue
|
24
|
+
### getContextValue()
|
29
25
|
|
30
|
-
|
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
|
-
|
37
|
-
|
38
|
-
|
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
|
-
####
|
42
|
+
#### Source
|
47
43
|
|
48
44
|
src/utils/ApplicationContext.ts:13
|
49
45
|
|
50
|
-
|
46
|
+
***
|
51
47
|
|
52
|
-
### getCtx
|
48
|
+
### getCtx()
|
53
49
|
|
54
|
-
|
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
|
-
####
|
61
|
+
#### Source
|
66
62
|
|
67
63
|
src/utils/ApplicationContext.ts:32
|
68
64
|
|
69
|
-
|
65
|
+
***
|
70
66
|
|
71
|
-
### setContextValue
|
67
|
+
### setContextValue()
|
72
68
|
|
73
|
-
|
69
|
+
> `static` **setContextValue**(`key`, `value`): `any`
|
74
70
|
|
75
71
|
Aplica informação no contexto.
|
76
72
|
|
77
73
|
#### Parameters
|
78
74
|
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
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
|
-
####
|
87
|
+
#### Source
|
89
88
|
|
90
89
|
src/utils/ApplicationContext.ts:23
|
package/classes/ArrayUtils.md
CHANGED
@@ -1,43 +1,48 @@
|
|
1
|
-
[
|
1
|
+
[**@sankhyalabs/core**](../README.md) • **Docs**
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
`ArrayUtils`: Utilitário com a responsabilidade de manipular Arrays.
|
3
|
+
***
|
6
4
|
|
7
|
-
|
5
|
+
[@sankhyalabs/core](../globals.md) / ArrayUtils
|
8
6
|
|
9
|
-
|
7
|
+
# Class: ArrayUtils
|
10
8
|
|
11
|
-
|
9
|
+
`ArrayUtils`: Utilitário com a responsabilidade de manipular Arrays.
|
12
10
|
|
13
|
-
|
11
|
+
## Constructors
|
14
12
|
|
15
|
-
|
16
|
-
- [normalizeSearchString](ArrayUtils.md#normalizesearchstring)
|
17
|
-
- [sortAlphabetically](ArrayUtils.md#sortalphabetically)
|
13
|
+
### new ArrayUtils()
|
18
14
|
|
19
|
-
|
15
|
+
> **new ArrayUtils**(): [`ArrayUtils`](ArrayUtils.md)
|
20
16
|
|
21
|
-
|
17
|
+
#### Returns
|
22
18
|
|
23
|
-
|
19
|
+
[`ArrayUtils`](ArrayUtils.md)
|
24
20
|
|
25
21
|
## Methods
|
26
22
|
|
27
|
-
### applyStringFilter
|
23
|
+
### applyStringFilter()
|
28
24
|
|
29
|
-
|
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
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
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
|
-
####
|
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
|
-
|
111
|
+
***
|
51
112
|
|
52
|
-
|
113
|
+
### isIn()
|
53
114
|
|
54
|
-
|
115
|
+
> `static` **isIn**(`arr`, `obj`): `boolean`
|
55
116
|
|
56
|
-
|
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
|
-
|
63
|
-
|
64
|
-
|
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
|
-
####
|
157
|
+
#### Source
|
158
|
+
|
159
|
+
src/utils/ArrayUtils.ts:36
|
160
|
+
|
161
|
+
***
|
162
|
+
|
163
|
+
### removeAtIndex()
|
164
|
+
|
165
|
+
> `static` **removeAtIndex**(`array`, `index`): `any`
|
73
166
|
|
74
|
-
|
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
|
-
|
175
|
+
• **index**: `number`
|
176
|
+
|
177
|
+
Index do item a ser removido.
|
178
|
+
|
179
|
+
#### Returns
|
79
180
|
|
80
|
-
|
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
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
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
|
-
####
|
239
|
+
#### Source
|
98
240
|
|
99
|
-
src/utils/ArrayUtils.ts:
|
241
|
+
src/utils/ArrayUtils.ts:46
|
@@ -1,36 +1,28 @@
|
|
1
|
-
[
|
1
|
+
[**@sankhyalabs/core**](../README.md) • **Docs**
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
## Table of contents
|
6
|
-
|
7
|
-
### Constructors
|
3
|
+
***
|
8
4
|
|
9
|
-
|
5
|
+
[@sankhyalabs/core](../globals.md) / AuthorizedServiceCaller
|
10
6
|
|
11
|
-
|
7
|
+
# Class: AuthorizedServiceCaller
|
12
8
|
|
13
|
-
|
14
|
-
- [unauthorizedPath](AuthorizedServiceCaller.md#unauthorizedpath)
|
9
|
+
## Constructors
|
15
10
|
|
16
|
-
###
|
11
|
+
### new AuthorizedServiceCaller()
|
17
12
|
|
18
|
-
|
13
|
+
> **new AuthorizedServiceCaller**(`serverURL`, `unauthorizedPath`): [`AuthorizedServiceCaller`](AuthorizedServiceCaller.md)
|
19
14
|
|
20
|
-
|
15
|
+
#### Parameters
|
21
16
|
|
22
|
-
|
17
|
+
• **serverURL**: `string`
|
23
18
|
|
24
|
-
• **
|
19
|
+
• **unauthorizedPath**: `string`
|
25
20
|
|
26
|
-
####
|
21
|
+
#### Returns
|
27
22
|
|
28
|
-
|
29
|
-
| :------ | :------ |
|
30
|
-
| `serverURL` | `string` |
|
31
|
-
| `unauthorizedPath` | `string` |
|
23
|
+
[`AuthorizedServiceCaller`](AuthorizedServiceCaller.md)
|
32
24
|
|
33
|
-
####
|
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
|
-
|
33
|
+
> `private` **serverURL**: `string` = `"http://192.168.1.218:8503"`
|
42
34
|
|
43
|
-
####
|
35
|
+
#### Source
|
44
36
|
|
45
37
|
src/http/AuthorizedServiceCaller.ts:3
|
46
38
|
|
47
|
-
|
39
|
+
***
|
48
40
|
|
49
41
|
### unauthorizedPath
|
50
42
|
|
51
|
-
|
43
|
+
> `private` **unauthorizedPath**: `string` = `"/"`
|
52
44
|
|
53
|
-
####
|
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
|
-
|
53
|
+
> **requestService**(`request`, `callback`?): `Promise`\<`void` \| `Response`\>
|
62
54
|
|
63
55
|
#### Parameters
|
64
56
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
| `callback?` | `Function` |
|
57
|
+
• **request**: `AuthorizedRequest`
|
58
|
+
|
59
|
+
• **callback?**: `Function`
|
69
60
|
|
70
61
|
#### Returns
|
71
62
|
|
72
|
-
`Promise
|
63
|
+
`Promise`\<`void` \| `Response`\>
|
73
64
|
|
74
|
-
####
|
65
|
+
#### Source
|
75
66
|
|
76
67
|
src/http/AuthorizedServiceCaller.ts:12
|