@sankhyalabs/core-docs 5.20.0-dev.4 → 5.20.0-dev.6
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +3 -1
- package/classes/ApplicationContext.md +31 -32
- package/classes/ArrayUtils.md +95 -83
- package/classes/AuthorizedServiceCaller.md +25 -34
- package/classes/Change.md +59 -74
- package/classes/DataUnit.md +1017 -1091
- 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 +65 -66
- 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 +66 -71
- package/classes/OnboardingUtils.md +36 -51
- package/classes/PromiseSync.md +25 -42
- package/classes/ReadyUtil.md +31 -41
- package/classes/RequestMetadata.md +29 -30
- package/classes/SearchUtils.md +18 -20
- package/classes/SelectionInfo.md +59 -74
- package/classes/SkwHttpProvider.md +33 -45
- package/classes/StringUtils.md +297 -322
- 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/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} +17 -39
- 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/enums/Action.md +0 -305
- 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,48 +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
|
-
- [find](ArrayUtils.md#find)
|
17
|
-
- [indexOf](ArrayUtils.md#indexof)
|
18
|
-
- [isIn](ArrayUtils.md#isin)
|
19
|
-
- [normalizeSearchString](ArrayUtils.md#normalizesearchstring)
|
20
|
-
- [removeAtIndex](ArrayUtils.md#removeatindex)
|
21
|
-
- [removeReference](ArrayUtils.md#removereference)
|
22
|
-
- [sortAlphabetically](ArrayUtils.md#sortalphabetically)
|
13
|
+
### new ArrayUtils()
|
23
14
|
|
24
|
-
|
15
|
+
> **new ArrayUtils**(): [`ArrayUtils`](ArrayUtils.md)
|
25
16
|
|
26
|
-
|
17
|
+
#### Returns
|
27
18
|
|
28
|
-
|
19
|
+
[`ArrayUtils`](ArrayUtils.md)
|
29
20
|
|
30
21
|
## Methods
|
31
22
|
|
32
|
-
### applyStringFilter
|
23
|
+
### applyStringFilter()
|
33
24
|
|
34
|
-
|
25
|
+
> `static` **applyStringFilter**(`argument`, `originalArray`, `alphabeticalSorting`, `fieldName`): `any`[]
|
35
26
|
|
36
27
|
Filtra um array a partir de um critério textual.
|
37
28
|
|
38
29
|
#### Parameters
|
39
30
|
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
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.
|
46
46
|
|
47
47
|
#### Returns
|
48
48
|
|
@@ -50,24 +50,25 @@ Filtra um array a partir de um critério textual.
|
|
50
50
|
|
51
51
|
- Um array filtrado e ordenado conforme necessidade..
|
52
52
|
|
53
|
-
####
|
53
|
+
#### Source
|
54
54
|
|
55
55
|
src/utils/ArrayUtils.ts:18
|
56
56
|
|
57
|
-
|
57
|
+
***
|
58
58
|
|
59
|
-
### find
|
59
|
+
### find()
|
60
60
|
|
61
|
-
|
61
|
+
> `static` **find**(`arr`, `checkerFn`): `any`
|
62
62
|
|
63
63
|
Ordena valores de um array alfabeticamente.
|
64
64
|
|
65
65
|
#### Parameters
|
66
66
|
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
67
|
+
• **arr**: `any`
|
68
|
+
|
69
|
+
Array a ser ordenado.
|
70
|
+
|
71
|
+
• **checkerFn**: `any`
|
71
72
|
|
72
73
|
#### Returns
|
73
74
|
|
@@ -75,24 +76,27 @@ Ordena valores de um array alfabeticamente.
|
|
75
76
|
|
76
77
|
- Array ordenado alfabeticamente..
|
77
78
|
|
78
|
-
####
|
79
|
+
#### Source
|
79
80
|
|
80
81
|
src/utils/ArrayUtils.ts:69
|
81
82
|
|
82
|
-
|
83
|
+
***
|
83
84
|
|
84
|
-
### indexOf
|
85
|
+
### indexOf()
|
85
86
|
|
86
|
-
|
87
|
+
> `static` **indexOf**(`arr`, `obj`): `number`
|
87
88
|
|
88
89
|
Retorna o objeto se for encontrado no array, ou -1 se não for encontrado.
|
89
90
|
|
90
91
|
#### Parameters
|
91
92
|
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
93
|
+
• **arr**: `any`
|
94
|
+
|
95
|
+
Array onde está o objeto.
|
96
|
+
|
97
|
+
• **obj**: `any`
|
98
|
+
|
99
|
+
Objeto a ser procurado.
|
96
100
|
|
97
101
|
#### Returns
|
98
102
|
|
@@ -100,24 +104,25 @@ Retorna o objeto se for encontrado no array, ou -1 se não for encontrado.
|
|
100
104
|
|
101
105
|
- Array ordenado alfabeticamente..
|
102
106
|
|
103
|
-
####
|
107
|
+
#### Source
|
104
108
|
|
105
109
|
src/utils/ArrayUtils.ts:88
|
106
110
|
|
107
|
-
|
111
|
+
***
|
108
112
|
|
109
|
-
### isIn
|
113
|
+
### isIn()
|
110
114
|
|
111
|
-
|
115
|
+
> `static` **isIn**(`arr`, `obj`): `boolean`
|
112
116
|
|
113
117
|
Remove um objeto do array.
|
114
118
|
|
115
119
|
#### Parameters
|
116
120
|
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
+
• **arr**: `any`
|
122
|
+
|
123
|
+
• **obj**: `any`
|
124
|
+
|
125
|
+
Objeto a ser removido.
|
121
126
|
|
122
127
|
#### Returns
|
123
128
|
|
@@ -125,23 +130,23 @@ Remove um objeto do array.
|
|
125
130
|
|
126
131
|
- Array sem o Objeto informado.
|
127
132
|
|
128
|
-
####
|
133
|
+
#### Source
|
129
134
|
|
130
135
|
src/utils/ArrayUtils.ts:131
|
131
136
|
|
132
|
-
|
137
|
+
***
|
133
138
|
|
134
|
-
### normalizeSearchString
|
139
|
+
### normalizeSearchString()
|
135
140
|
|
136
|
-
|
141
|
+
> `static` `private` **normalizeSearchString**(`original`): `string`
|
137
142
|
|
138
143
|
Converte texto para caixa alta e substitui caracteres acentuados.
|
139
144
|
|
140
145
|
#### Parameters
|
141
146
|
|
142
|
-
|
143
|
-
|
144
|
-
|
147
|
+
• **original**: `string`
|
148
|
+
|
149
|
+
Texto a ser convertido.
|
145
150
|
|
146
151
|
#### Returns
|
147
152
|
|
@@ -149,24 +154,27 @@ Converte texto para caixa alta e substitui caracteres acentuados.
|
|
149
154
|
|
150
155
|
- Texto com as letras acentuadas sem os acentos e em caixa alta.
|
151
156
|
|
152
|
-
####
|
157
|
+
#### Source
|
153
158
|
|
154
159
|
src/utils/ArrayUtils.ts:36
|
155
160
|
|
156
|
-
|
161
|
+
***
|
157
162
|
|
158
|
-
### removeAtIndex
|
163
|
+
### removeAtIndex()
|
159
164
|
|
160
|
-
|
165
|
+
> `static` **removeAtIndex**(`array`, `index`): `any`
|
161
166
|
|
162
167
|
Remove um item de array de acordo com o index.
|
163
168
|
|
164
169
|
#### Parameters
|
165
170
|
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
171
|
+
• **array**: `any`
|
172
|
+
|
173
|
+
Array onde está o item.
|
174
|
+
|
175
|
+
• **index**: `number`
|
176
|
+
|
177
|
+
Index do item a ser removido.
|
170
178
|
|
171
179
|
#### Returns
|
172
180
|
|
@@ -174,24 +182,27 @@ Remove um item de array de acordo com o index.
|
|
174
182
|
|
175
183
|
- Array sem o item do index informado.
|
176
184
|
|
177
|
-
####
|
185
|
+
#### Source
|
178
186
|
|
179
187
|
src/utils/ArrayUtils.ts:106
|
180
188
|
|
181
|
-
|
189
|
+
***
|
182
190
|
|
183
|
-
### removeReference
|
191
|
+
### removeReference()
|
184
192
|
|
185
|
-
|
193
|
+
> `static` **removeReference**(`array`, `obj`): `any`
|
186
194
|
|
187
195
|
Remove um objeto do array.
|
188
196
|
|
189
197
|
#### Parameters
|
190
198
|
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
199
|
+
• **array**: `any`
|
200
|
+
|
201
|
+
Array onde está o objeto.
|
202
|
+
|
203
|
+
• **obj**: `any`
|
204
|
+
|
205
|
+
Objeto a ser removido.
|
195
206
|
|
196
207
|
#### Returns
|
197
208
|
|
@@ -199,24 +210,25 @@ Remove um objeto do array.
|
|
199
210
|
|
200
211
|
- Array sem o Objeto informado.
|
201
212
|
|
202
|
-
####
|
213
|
+
#### Source
|
203
214
|
|
204
215
|
src/utils/ArrayUtils.ts:119
|
205
216
|
|
206
|
-
|
217
|
+
***
|
207
218
|
|
208
|
-
### sortAlphabetically
|
219
|
+
### sortAlphabetically()
|
209
220
|
|
210
|
-
|
221
|
+
> `static` **sortAlphabetically**(`originalArray`, `fieldName`): `any`[]
|
211
222
|
|
212
223
|
Ordena valores de um array alfabeticamente.
|
213
224
|
|
214
225
|
#### Parameters
|
215
226
|
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
227
|
+
• **originalArray**: `any`[]
|
228
|
+
|
229
|
+
Array a ser ordenado.
|
230
|
+
|
231
|
+
• **fieldName**: `string`= `"label"`
|
220
232
|
|
221
233
|
#### Returns
|
222
234
|
|
@@ -224,6 +236,6 @@ Ordena valores de um array alfabeticamente.
|
|
224
236
|
|
225
237
|
- Array ordenado alfabeticamente..
|
226
238
|
|
227
|
-
####
|
239
|
+
#### Source
|
228
240
|
|
229
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
|