@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
@@ -1,44 +1,40 @@
1
- [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / JSUtils
1
+ [**@sankhyalabs/core**](../README.md) **Docs**
2
2
 
3
- # Class: JSUtils
4
-
5
- Classe com utiliários comuns para funções genéricas em JavaScript.
3
+ ***
6
4
 
7
- ## Table of contents
5
+ [@sankhyalabs/core](../globals.md) / JSUtils
8
6
 
9
- ### Constructors
7
+ # Class: JSUtils
10
8
 
11
- - [constructor](JSUtils.md#constructor)
9
+ Classe com utiliários comuns para funções genéricas em JavaScript.
12
10
 
13
- ### Methods
11
+ ## Constructors
14
12
 
15
- - [debounce](JSUtils.md#debounce)
16
- - [debounceLeading](JSUtils.md#debounceleading)
17
- - [generateUUID](JSUtils.md#generateuuid)
18
- - [isBase64](JSUtils.md#isbase64)
19
- - [isEllipsisActive](JSUtils.md#isellipsisactive)
20
- - [isHiddenElement](JSUtils.md#ishiddenelement)
13
+ ### new JSUtils()
21
14
 
22
- ## Constructors
15
+ > **new JSUtils**(): [`JSUtils`](JSUtils.md)
23
16
 
24
- ### constructor
17
+ #### Returns
25
18
 
26
- • **new JSUtils**()
19
+ [`JSUtils`](JSUtils.md)
27
20
 
28
21
  ## Methods
29
22
 
30
- ### debounce
23
+ ### debounce()
31
24
 
32
- `Static` **debounce**(`callback`, `timeout?`): `any`
25
+ > `static` **debounce**(`callback`, `timeout`): `any`
33
26
 
34
27
  Método responsável em criar um timer para processar uma determinada função.
35
28
 
36
29
  #### Parameters
37
30
 
38
- | Name | Type | Default value | Description |
39
- | :------ | :------ | :------ | :------ |
40
- | `callback` | `any` | `undefined` | Função de callback para processar após o timer. |
41
- | `timeout` | `number` | `300` | Valor dos milissegundos desejados para processar a função (o padrão é 300). |
31
+ **callback**: `any`
32
+
33
+ Função de callback para processar após o timer.
34
+
35
+ • **timeout**: `number`= `300`
36
+
37
+ Valor dos milissegundos desejados para processar a função (o padrão é 300).
42
38
 
43
39
  #### Returns
44
40
 
@@ -46,25 +42,31 @@ Método responsável em criar um timer para processar uma determinada função.
46
42
 
47
43
  - Retorna um método com controle de timer para processar a função de callback.
48
44
 
49
- #### Defined in
45
+ #### Source
50
46
 
51
47
  src/utils/JSUtils.ts:21
52
48
 
53
- ___
49
+ ***
54
50
 
55
- ### debounceLeading
51
+ ### debounceLeading()
56
52
 
57
- `Static` **debounceLeading**(`callback`, `timeout?`, `context?`): `VoidFunction`
53
+ > `static` **debounceLeading**(`callback`, `timeout`, `context`?): `VoidFunction`
58
54
 
59
55
  Método responsável por executar uma função e ignorar as outras posteriores até o tempo especificado.
60
56
 
61
57
  #### Parameters
62
58
 
63
- | Name | Type | Default value | Description |
64
- | :------ | :------ | :------ | :------ |
65
- | `callback` | `Function` | `undefined` | Função a ser invocada |
66
- | `timeout` | `number` | `300` | Quantidade de tempo para aguardar antes de invocar novamente |
67
- | `context?` | `any` | `undefined` | O contexto atual |
59
+ **callback**: `Function`
60
+
61
+ Função a ser invocada
62
+
63
+ **timeout**: `number`= `300`
64
+
65
+ Quantidade de tempo para aguardar antes de invocar novamente
66
+
67
+ • **context?**: `any`
68
+
69
+ O contexto atual
68
70
 
69
71
  #### Returns
70
72
 
@@ -72,15 +74,15 @@ Método responsável por executar uma função e ignorar as outras posteriores a
72
74
 
73
75
  A função com o debounce
74
76
 
75
- #### Defined in
77
+ #### Source
76
78
 
77
79
  src/utils/JSUtils.ts:37
78
80
 
79
- ___
81
+ ***
80
82
 
81
- ### generateUUID
83
+ ### generateUUID()
82
84
 
83
- `Static` **generateUUID**(): `string`
85
+ > `static` **generateUUID**(): `string`
84
86
 
85
87
  Método responsável em gerar um UUID.
86
88
 
@@ -90,23 +92,23 @@ Método responsável em gerar um UUID.
90
92
 
91
93
  - Retorna um UUID.
92
94
 
93
- #### Defined in
95
+ #### Source
94
96
 
95
97
  src/utils/JSUtils.ts:95
96
98
 
97
- ___
99
+ ***
98
100
 
99
- ### isBase64
101
+ ### isBase64()
100
102
 
101
- `Static` **isBase64**(`str`): `boolean`
103
+ > `static` **isBase64**(`str`): `boolean`
102
104
 
103
105
  Método que verifica se uma string está encodada com base64.
104
106
 
105
107
  #### Parameters
106
108
 
107
- | Name | Type | Description |
108
- | :------ | :------ | :------ |
109
- | `str` | `string` | String que será verificada. |
109
+ **str**: `string`
110
+
111
+ String que será verificada.
110
112
 
111
113
  #### Returns
112
114
 
@@ -114,23 +116,23 @@ Método que verifica se uma string está encodada com base64.
114
116
 
115
117
  - Retorna um valor booleando informando se a string está encodada com base64.
116
118
 
117
- #### Defined in
119
+ #### Source
118
120
 
119
121
  src/utils/JSUtils.ts:80
120
122
 
121
- ___
123
+ ***
122
124
 
123
- ### isEllipsisActive
125
+ ### isEllipsisActive()
124
126
 
125
- `Static` **isEllipsisActive**(`element`): `boolean`
127
+ > `static` **isEllipsisActive**(`element`): `boolean`
126
128
 
127
129
  Método responsável em validar se um elemento HTML está com o ellipsis ativo.
128
130
 
129
131
  #### Parameters
130
132
 
131
- | Name | Type | Description |
132
- | :------ | :------ | :------ |
133
- | `element` | `any` | Elemento HTML que será verificado. |
133
+ **element**: `any`
134
+
135
+ Elemento HTML que será verificado.
134
136
 
135
137
  #### Returns
136
138
 
@@ -138,26 +140,48 @@ Método responsável em validar se um elemento HTML está com o ellipsis ativo.
138
140
 
139
141
  - Retorna um valor booleando informando se o elemento está com o ellipsis ativo.
140
142
 
141
- #### Defined in
143
+ #### Source
142
144
 
143
145
  src/utils/JSUtils.ts:60
144
146
 
145
- ___
147
+ ***
146
148
 
147
- ### isHiddenElement
149
+ ### isHiddenElement()
148
150
 
149
- `Static` **isHiddenElement**(`element`): `boolean`
151
+ > `static` **isHiddenElement**(`element`): `boolean`
150
152
 
151
153
  #### Parameters
152
154
 
153
- | Name | Type |
154
- | :------ | :------ |
155
- | `element` | `HTMLElement` |
155
+ **element**: `HTMLElement`
156
156
 
157
157
  #### Returns
158
158
 
159
159
  `boolean`
160
160
 
161
- #### Defined in
161
+ #### Source
162
162
 
163
163
  src/utils/JSUtils.ts:8
164
+
165
+ ***
166
+
167
+ ### replaceHtmlEntities()
168
+
169
+ > `static` **replaceHtmlEntities**(`source`): `string`
170
+
171
+ Substitui caracteres para suas entidades HTML.
172
+
173
+ #### Parameters
174
+
175
+ • **source**: `string`
176
+
177
+ String a ter os caracteres substituidos.
178
+
179
+ #### Returns
180
+
181
+ `string`
182
+
183
+ - Retorna um UUID.
184
+
185
+ #### Source
186
+
187
+ src/utils/JSUtils.ts:105
@@ -1,48 +1,32 @@
1
- [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / KeyboardManager
1
+ [**@sankhyalabs/core**](../README.md) **Docs**
2
2
 
3
- # Class: KeyboardManager
4
-
5
- `KeyboardManager` é reponsável por gerenciar eventos de teclado.
6
-
7
- ## Table of contents
8
-
9
- ### Constructors
3
+ ***
10
4
 
11
- - [constructor](KeyboardManager.md#constructor)
5
+ [@sankhyalabs/core](../globals.md) / KeyboardManager
12
6
 
13
- ### Properties
14
-
15
- - [\_mappedElements](KeyboardManager.md#_mappedelements)
16
- - [\_options](KeyboardManager.md#_options)
17
-
18
- ### Accessors
19
-
20
- - [mappedKeys](KeyboardManager.md#mappedkeys)
21
-
22
- ### Methods
7
+ # Class: KeyboardManager
23
8
 
24
- - [bind](KeyboardManager.md#bind)
25
- - [checkModifiersIsApplied](KeyboardManager.md#checkmodifiersisapplied)
26
- - [handleListenerEvent](KeyboardManager.md#handlelistenerevent)
27
- - [keyAppliedWithModifiers](KeyboardManager.md#keyappliedwithmodifiers)
28
- - [unbind](KeyboardManager.md#unbind)
29
- - [verifyAndStopPropagation](KeyboardManager.md#verifyandstoppropagation)
9
+ `KeyboardManager` é reponsável por gerenciar eventos de teclado.
30
10
 
31
11
  ## Constructors
32
12
 
33
- ### constructor
13
+ ### new KeyboardManager()
34
14
 
35
- **new KeyboardManager**(`options?`)
15
+ > **new KeyboardManager**(`options`?): [`KeyboardManager`](KeyboardManager.md)
36
16
 
37
17
  Construtor para a classe Keyboard.
38
18
 
39
19
  #### Parameters
40
20
 
41
- | Name | Type | Description |
42
- | :------ | :------ | :------ |
43
- | `options?` | `Partial`<`IKeyboardOptions`\> | opções para o gerenciamento de eventos de teclado. |
21
+ **options?**: `Partial`\<`IKeyboardOptions`\>
22
+
23
+ opções para o gerenciamento de eventos de teclado.
44
24
 
45
- #### Defined in
25
+ #### Returns
26
+
27
+ [`KeyboardManager`](KeyboardManager.md)
28
+
29
+ #### Source
46
30
 
47
31
  src/utils/KeyboardManager/index.ts:19
48
32
 
@@ -50,19 +34,19 @@ src/utils/KeyboardManager/index.ts:19
50
34
 
51
35
  ### \_mappedElements
52
36
 
53
- `Private` **\_mappedElements**: `IKeyboardMappedKeysElements` = `{}`
37
+ > `private` **\_mappedElements**: `IKeyboardMappedKeysElements` = `{}`
54
38
 
55
- #### Defined in
39
+ #### Source
56
40
 
57
41
  src/utils/KeyboardManager/index.ts:12
58
42
 
59
- ___
43
+ ***
60
44
 
61
45
  ### \_options
62
46
 
63
- `Private` **\_options**: `IKeyboardOptions`
47
+ > `private` **\_options**: `IKeyboardOptions`
64
48
 
65
- #### Defined in
49
+ #### Source
66
50
 
67
51
  src/utils/KeyboardManager/index.ts:11
68
52
 
@@ -70,7 +54,7 @@ src/utils/KeyboardManager/index.ts:11
70
54
 
71
55
  ### mappedKeys
72
56
 
73
- `get` **mappedKeys**(): `IGetMappedKeys`[]
57
+ > `get` **mappedKeys**(): `IGetMappedKeys`[]
74
58
 
75
59
  Obtém as chaves mapeadas.
76
60
 
@@ -80,25 +64,31 @@ Obtém as chaves mapeadas.
80
64
 
81
65
  chaves mapeadas com descrições
82
66
 
83
- #### Defined in
67
+ #### Source
84
68
 
85
69
  src/utils/KeyboardManager/index.ts:97
86
70
 
87
71
  ## Methods
88
72
 
89
- ### bind
73
+ ### bind()
90
74
 
91
- **bind**(`keyMap`, `callback`, `options?`): [`KeyboardManager`](KeyboardManager.md)
75
+ > **bind**(`keyMap`, `callback`, `options`?): [`KeyboardManager`](KeyboardManager.md)
92
76
 
93
77
  Associa um evento de teclado com uma função
94
78
 
95
79
  #### Parameters
96
80
 
97
- | Name | Type | Description |
98
- | :------ | :------ | :------ |
99
- | `keyMap` | `string` | Chave de mapeamento de teclado. |
100
- | `callback` | `VoidFunction` | Função a ser executada quando o evento de teclado for disparado. |
101
- | `options?` | `Partial`<`IKeyboardOptions`\> | Configurações dos eventos de teclado. |
81
+ **keyMap**: `string`
82
+
83
+ Chave de mapeamento de teclado.
84
+
85
+ **callback**: `VoidFunction`
86
+
87
+ Função a ser executada quando o evento de teclado for disparado.
88
+
89
+ • **options?**: `Partial`\<`IKeyboardOptions`\>
90
+
91
+ Configurações dos eventos de teclado.
102
92
 
103
93
  #### Returns
104
94
 
@@ -106,24 +96,27 @@ Associa um evento de teclado com uma função
106
96
 
107
97
  O objeto `KeyboardManager`
108
98
 
109
- #### Defined in
99
+ #### Source
110
100
 
111
101
  src/utils/KeyboardManager/index.ts:37
112
102
 
113
- ___
103
+ ***
114
104
 
115
- ### checkModifiersIsApplied
105
+ ### checkModifiersIsApplied()
116
106
 
117
- `Private` **checkModifiersIsApplied**(`event`, `modifiedList`): `boolean`
107
+ > `private` **checkModifiersIsApplied**(`event`, `modifiedList`): `boolean`
118
108
 
119
109
  Verifica se todas as teclas modificadoras foram aplicadas ao evento
120
110
 
121
111
  #### Parameters
122
112
 
123
- | Name | Type | Description |
124
- | :------ | :------ | :------ |
125
- | `event` | `KeyboardEvent` | O evento de teclado |
126
- | `modifiedList` | `string`[] | As teclas modificadoras |
113
+ **event**: `KeyboardEvent`
114
+
115
+ O evento de teclado
116
+
117
+ • **modifiedList**: `string`[]
118
+
119
+ As teclas modificadoras
127
120
 
128
121
  #### Returns
129
122
 
@@ -131,49 +124,61 @@ Verifica se todas as teclas modificadoras foram aplicadas ao evento
131
124
 
132
125
  Retorna se todas as teclas modificadoras foram aplicadas
133
126
 
134
- #### Defined in
127
+ #### Source
135
128
 
136
129
  src/utils/KeyboardManager/index.ts:166
137
130
 
138
- ___
131
+ ***
139
132
 
140
- ### handleListenerEvent
133
+ ### handleListenerEvent()
141
134
 
142
- `Private` **handleListenerEvent**(`keyMap`, `callback`, `propagate`, `event`): `void`
135
+ > `private` **handleListenerEvent**(`keyMap`, `callback`, `propagate`, `event`): `void`
143
136
 
144
137
  Executa uma função quando um evento de teclado for disparado
145
138
 
146
139
  #### Parameters
147
140
 
148
- | Name | Type | Description |
149
- | :------ | :------ | :------ |
150
- | `keyMap` | `string` | Chave de mapeamento de teclado |
151
- | `callback` | `VoidFunction` | Função a ser executada |
152
- | `propagate` | `boolean` | Se o evento de teclado deve ser propagado |
153
- | `event` | `KeyboardEvent` | O evento de teclado |
141
+ **keyMap**: `string`
142
+
143
+ Chave de mapeamento de teclado
144
+
145
+ **callback**: `VoidFunction`
146
+
147
+ Função a ser executada
148
+
149
+ • **propagate**: `boolean`
150
+
151
+ Se o evento de teclado deve ser propagado
152
+
153
+ • **event**: `KeyboardEvent`
154
+
155
+ O evento de teclado
154
156
 
155
157
  #### Returns
156
158
 
157
159
  `void`
158
160
 
159
- #### Defined in
161
+ #### Source
160
162
 
161
163
  src/utils/KeyboardManager/index.ts:113
162
164
 
163
- ___
165
+ ***
164
166
 
165
- ### keyAppliedWithModifiers
167
+ ### keyAppliedWithModifiers()
166
168
 
167
- `Private` **keyAppliedWithModifiers**(`keyMap`, `pressedKeyCode`): `IKeyAppliedResponse`
169
+ > `private` **keyAppliedWithModifiers**(`keyMap`, `pressedKeyCode`): `IKeyAppliedResponse`
168
170
 
169
171
  Verifica se um evento de teclado foi disparado
170
172
 
171
173
  #### Parameters
172
174
 
173
- | Name | Type | Description |
174
- | :------ | :------ | :------ |
175
- | `keyMap` | `string` | Chave de mapeamento de teclado |
176
- | `pressedKeyCode` | `number` | Código do evento de teclado pressionado |
175
+ **keyMap**: `string`
176
+
177
+ Chave de mapeamento de teclado
178
+
179
+ • **pressedKeyCode**: `number`
180
+
181
+ Código do evento de teclado pressionado
177
182
 
178
183
  #### Returns
179
184
 
@@ -181,23 +186,23 @@ Verifica se um evento de teclado foi disparado
181
186
 
182
187
  Retorna se o evento de teclado foi disparado e as teclas modificadoras aplicadas ao evento
183
188
 
184
- #### Defined in
189
+ #### Source
185
190
 
186
191
  src/utils/KeyboardManager/index.ts:129
187
192
 
188
- ___
193
+ ***
189
194
 
190
- ### unbind
195
+ ### unbind()
191
196
 
192
- **unbind**(`keyMap`): [`KeyboardManager`](KeyboardManager.md)
197
+ > **unbind**(`keyMap`): [`KeyboardManager`](KeyboardManager.md)
193
198
 
194
199
  Remove um evento de teclado
195
200
 
196
201
  #### Parameters
197
202
 
198
- | Name | Type | Description |
199
- | :------ | :------ | :------ |
200
- | `keyMap` | `string` | Chave de mapeamento de teclado. |
203
+ **keyMap**: `string`
204
+
205
+ Chave de mapeamento de teclado.
201
206
 
202
207
  #### Returns
203
208
 
@@ -205,29 +210,32 @@ Remove um evento de teclado
205
210
 
206
211
  - O objeto `KeyboardManager`
207
212
 
208
- #### Defined in
213
+ #### Source
209
214
 
210
215
  src/utils/KeyboardManager/index.ts:73
211
216
 
212
- ___
217
+ ***
213
218
 
214
- ### verifyAndStopPropagation
219
+ ### verifyAndStopPropagation()
215
220
 
216
- `Private` **verifyAndStopPropagation**(`event`, `propagate`): `void`
221
+ > `private` **verifyAndStopPropagation**(`event`, `propagate`): `void`
217
222
 
218
223
  Verifica e impede que o evento de teclado seja propagado
219
224
 
220
225
  #### Parameters
221
226
 
222
- | Name | Type | Description |
223
- | :------ | :------ | :------ |
224
- | `event` | `KeyboardEvent` | O evento de teclado |
225
- | `propagate` | `boolean` | Se o evento de teclado deve ser propagado |
227
+ **event**: `KeyboardEvent`
228
+
229
+ O evento de teclado
230
+
231
+ • **propagate**: `boolean`
232
+
233
+ Se o evento de teclado deve ser propagado
226
234
 
227
235
  #### Returns
228
236
 
229
237
  `void`
230
238
 
231
- #### Defined in
239
+ #### Source
232
240
 
233
241
  src/utils/KeyboardManager/index.ts:202