@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.
Files changed (78) hide show
  1. package/README.md +3 -1
  2. package/classes/ApplicationContext.md +31 -32
  3. package/classes/ArrayUtils.md +95 -83
  4. package/classes/AuthorizedServiceCaller.md +25 -34
  5. package/classes/Change.md +59 -74
  6. package/classes/DataUnit.md +1017 -1091
  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 +65 -66
  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 +66 -71
  23. package/classes/OnboardingUtils.md +36 -51
  24. package/classes/PromiseSync.md +25 -42
  25. package/classes/ReadyUtil.md +31 -41
  26. package/classes/RequestMetadata.md +29 -30
  27. package/classes/SearchUtils.md +18 -20
  28. package/classes/SelectionInfo.md +59 -74
  29. package/classes/SkwHttpProvider.md +33 -45
  30. package/classes/StringUtils.md +297 -322
  31. package/classes/TimeFormatter.md +43 -44
  32. package/classes/UserAgentUtils.md +17 -20
  33. package/classes/VersionUtils.md +15 -18
  34. package/classes/WaitingChangeException.md +63 -84
  35. package/classes/WarningException.md +67 -88
  36. package/enumerations/Action.md +297 -0
  37. package/enumerations/ChangeOperation.md +47 -0
  38. package/enumerations/DataType.md +57 -0
  39. package/enumerations/DependencyType.md +37 -0
  40. package/enumerations/SelectionMode.md +27 -0
  41. package/enumerations/SortMode.md +27 -0
  42. package/enumerations/UserInterface.md +177 -0
  43. package/functions/defaultDataLoader.md +25 -0
  44. package/{modules.md → globals.md} +17 -39
  45. package/interfaces/ChildDescriptor.md +12 -16
  46. package/interfaces/ChildLink.md +9 -12
  47. package/interfaces/DUActionInterceptor.md +10 -14
  48. package/interfaces/ExecutionContext.md +17 -32
  49. package/interfaces/FieldDescriptor.md +52 -66
  50. package/interfaces/Filter.md +13 -17
  51. package/interfaces/IElementIDInfo.md +11 -14
  52. package/interfaces/ILoadResult.md +11 -16
  53. package/interfaces/IRepository.md +88 -93
  54. package/interfaces/IRepositoryIndex.md +23 -30
  55. package/interfaces/LoadDataRequest.md +36 -45
  56. package/interfaces/LoadDataResponse.md +11 -14
  57. package/interfaces/PageRequest.md +16 -20
  58. package/interfaces/PaginationInfo.md +24 -31
  59. package/interfaces/PromiseSyncCallback.md +13 -17
  60. package/interfaces/QuickFilter.md +17 -21
  61. package/interfaces/Record.md +26 -33
  62. package/interfaces/SavedRecord.md +33 -41
  63. package/interfaces/Sort.md +12 -16
  64. package/interfaces/SortingProvider.md +10 -13
  65. package/interfaces/UnitMetadata.md +16 -21
  66. package/interfaces/WaitingChange.md +16 -20
  67. package/namespaces/MaskFormatter/README.md +17 -0
  68. package/namespaces/MaskFormatter/type-aliases/MaskCharacter.md +13 -0
  69. package/namespaces/MaskFormatter/variables/MaskCharacter.md +13 -0
  70. package/package.json +1 -1
  71. package/enums/Action.md +0 -305
  72. package/enums/ChangeOperation.md +0 -52
  73. package/enums/DataType.md +0 -63
  74. package/enums/DependencyType.md +0 -41
  75. package/enums/SelectionMode.md +0 -30
  76. package/enums/SortMode.md +0 -30
  77. package/enums/UserInterface.md +0 -195
  78. 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,48 +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
- - [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
- ## Constructors
15
+ > **new ArrayUtils**(): [`ArrayUtils`](ArrayUtils.md)
25
16
 
26
- ### constructor
17
+ #### Returns
27
18
 
28
- • **new ArrayUtils**()
19
+ [`ArrayUtils`](ArrayUtils.md)
29
20
 
30
21
  ## Methods
31
22
 
32
- ### applyStringFilter
23
+ ### applyStringFilter()
33
24
 
34
- `Static` **applyStringFilter**(`argument`, `originalArray`, `alphabeticalSorting?`, `fieldName?`): `any`[]
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
- | Name | Type | Default value | Description |
41
- | :------ | :------ | :------ | :------ |
42
- | `argument` | `string` | `undefined` | Texto a ser usado no filtro. |
43
- | `originalArray` | `any`[] | `undefined` | Array no formato original. |
44
- | `alphabeticalSorting` | `boolean` | `true` | Determina se o resultado deve ser ordenado ou mantido na ordem original. Por padrão ordena. |
45
- | `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.
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
- #### Defined in
53
+ #### Source
54
54
 
55
55
  src/utils/ArrayUtils.ts:18
56
56
 
57
- ___
57
+ ***
58
58
 
59
- ### find
59
+ ### find()
60
60
 
61
- `Static` **find**(`arr`, `checkerFn`): `any`
61
+ > `static` **find**(`arr`, `checkerFn`): `any`
62
62
 
63
63
  Ordena valores de um array alfabeticamente.
64
64
 
65
65
  #### Parameters
66
66
 
67
- | Name | Type | Description |
68
- | :------ | :------ | :------ |
69
- | `arr` | `any` | Array a ser ordenado. |
70
- | `checkerFn` | `any` | - |
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
- #### Defined in
79
+ #### Source
79
80
 
80
81
  src/utils/ArrayUtils.ts:69
81
82
 
82
- ___
83
+ ***
83
84
 
84
- ### indexOf
85
+ ### indexOf()
85
86
 
86
- `Static` **indexOf**(`arr`, `obj`): `number`
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
- | Name | Type | Description |
93
- | :------ | :------ | :------ |
94
- | `arr` | `any` | Array onde está o objeto. |
95
- | `obj` | `any` | Objeto a ser procurado. |
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
- #### Defined in
107
+ #### Source
104
108
 
105
109
  src/utils/ArrayUtils.ts:88
106
110
 
107
- ___
111
+ ***
108
112
 
109
- ### isIn
113
+ ### isIn()
110
114
 
111
- `Static` **isIn**(`arr`, `obj`): `boolean`
115
+ > `static` **isIn**(`arr`, `obj`): `boolean`
112
116
 
113
117
  Remove um objeto do array.
114
118
 
115
119
  #### Parameters
116
120
 
117
- | Name | Type | Description |
118
- | :------ | :------ | :------ |
119
- | `arr` | `any` | - |
120
- | `obj` | `any` | Objeto a ser removido. |
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
- #### Defined in
133
+ #### Source
129
134
 
130
135
  src/utils/ArrayUtils.ts:131
131
136
 
132
- ___
137
+ ***
133
138
 
134
- ### normalizeSearchString
139
+ ### normalizeSearchString()
135
140
 
136
- `Static` `Private` **normalizeSearchString**(`original`): `string`
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
- | Name | Type | Description |
143
- | :------ | :------ | :------ |
144
- | `original` | `string` | Texto a ser convertido. |
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
- #### Defined in
157
+ #### Source
153
158
 
154
159
  src/utils/ArrayUtils.ts:36
155
160
 
156
- ___
161
+ ***
157
162
 
158
- ### removeAtIndex
163
+ ### removeAtIndex()
159
164
 
160
- `Static` **removeAtIndex**(`array`, `index`): `any`
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
- | Name | Type | Description |
167
- | :------ | :------ | :------ |
168
- | `array` | `any` | Array onde está o item. |
169
- | `index` | `number` | Index do item a ser removido. |
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
- #### Defined in
185
+ #### Source
178
186
 
179
187
  src/utils/ArrayUtils.ts:106
180
188
 
181
- ___
189
+ ***
182
190
 
183
- ### removeReference
191
+ ### removeReference()
184
192
 
185
- `Static` **removeReference**(`array`, `obj`): `any`
193
+ > `static` **removeReference**(`array`, `obj`): `any`
186
194
 
187
195
  Remove um objeto do array.
188
196
 
189
197
  #### Parameters
190
198
 
191
- | Name | Type | Description |
192
- | :------ | :------ | :------ |
193
- | `array` | `any` | Array onde está o objeto. |
194
- | `obj` | `any` | Objeto a ser removido. |
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
- #### Defined in
213
+ #### Source
203
214
 
204
215
  src/utils/ArrayUtils.ts:119
205
216
 
206
- ___
217
+ ***
207
218
 
208
- ### sortAlphabetically
219
+ ### sortAlphabetically()
209
220
 
210
- `Static` **sortAlphabetically**(`originalArray`, `fieldName?`): `any`[]
221
+ > `static` **sortAlphabetically**(`originalArray`, `fieldName`): `any`[]
211
222
 
212
223
  Ordena valores de um array alfabeticamente.
213
224
 
214
225
  #### Parameters
215
226
 
216
- | Name | Type | Default value | Description |
217
- | :------ | :------ | :------ | :------ |
218
- | `originalArray` | `any`[] | `undefined` | Array a ser ordenado. |
219
- | `fieldName` | `string` | `"label"` | - |
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
- #### Defined in
239
+ #### Source
228
240
 
229
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