@sankhyalabs/core-docs 5.20.0-dev.5 → 5.20.0-dev.7
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/classes/JSUtils.md
CHANGED
@@ -1,45 +1,40 @@
|
|
1
|
-
[
|
1
|
+
[**@sankhyalabs/core**](../README.md) • **Docs**
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
Classe com utiliários comuns para funções genéricas em JavaScript.
|
3
|
+
***
|
6
4
|
|
7
|
-
|
5
|
+
[@sankhyalabs/core](../globals.md) / JSUtils
|
8
6
|
|
9
|
-
|
7
|
+
# Class: JSUtils
|
10
8
|
|
11
|
-
|
9
|
+
Classe com utiliários comuns para funções genéricas em JavaScript.
|
12
10
|
|
13
|
-
|
11
|
+
## Constructors
|
14
12
|
|
15
|
-
|
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)
|
21
|
-
- [replaceHtmlEntities](JSUtils.md#replacehtmlentities)
|
13
|
+
### new JSUtils()
|
22
14
|
|
23
|
-
|
15
|
+
> **new JSUtils**(): [`JSUtils`](JSUtils.md)
|
24
16
|
|
25
|
-
|
17
|
+
#### Returns
|
26
18
|
|
27
|
-
|
19
|
+
[`JSUtils`](JSUtils.md)
|
28
20
|
|
29
21
|
## Methods
|
30
22
|
|
31
|
-
### debounce
|
23
|
+
### debounce()
|
32
24
|
|
33
|
-
|
25
|
+
> `static` **debounce**(`callback`, `timeout`): `any`
|
34
26
|
|
35
27
|
Método responsável em criar um timer para processar uma determinada função.
|
36
28
|
|
37
29
|
#### Parameters
|
38
30
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
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).
|
43
38
|
|
44
39
|
#### Returns
|
45
40
|
|
@@ -47,25 +42,31 @@ Método responsável em criar um timer para processar uma determinada função.
|
|
47
42
|
|
48
43
|
- Retorna um método com controle de timer para processar a função de callback.
|
49
44
|
|
50
|
-
####
|
45
|
+
#### Source
|
51
46
|
|
52
47
|
src/utils/JSUtils.ts:21
|
53
48
|
|
54
|
-
|
49
|
+
***
|
55
50
|
|
56
|
-
### debounceLeading
|
51
|
+
### debounceLeading()
|
57
52
|
|
58
|
-
|
53
|
+
> `static` **debounceLeading**(`callback`, `timeout`, `context`?): `VoidFunction`
|
59
54
|
|
60
55
|
Método responsável por executar uma função e ignorar as outras posteriores até o tempo especificado.
|
61
56
|
|
62
57
|
#### Parameters
|
63
58
|
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
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
|
69
70
|
|
70
71
|
#### Returns
|
71
72
|
|
@@ -73,15 +74,15 @@ Método responsável por executar uma função e ignorar as outras posteriores a
|
|
73
74
|
|
74
75
|
A função com o debounce
|
75
76
|
|
76
|
-
####
|
77
|
+
#### Source
|
77
78
|
|
78
79
|
src/utils/JSUtils.ts:37
|
79
80
|
|
80
|
-
|
81
|
+
***
|
81
82
|
|
82
|
-
### generateUUID
|
83
|
+
### generateUUID()
|
83
84
|
|
84
|
-
|
85
|
+
> `static` **generateUUID**(): `string`
|
85
86
|
|
86
87
|
Método responsável em gerar um UUID.
|
87
88
|
|
@@ -91,23 +92,23 @@ Método responsável em gerar um UUID.
|
|
91
92
|
|
92
93
|
- Retorna um UUID.
|
93
94
|
|
94
|
-
####
|
95
|
+
#### Source
|
95
96
|
|
96
97
|
src/utils/JSUtils.ts:95
|
97
98
|
|
98
|
-
|
99
|
+
***
|
99
100
|
|
100
|
-
### isBase64
|
101
|
+
### isBase64()
|
101
102
|
|
102
|
-
|
103
|
+
> `static` **isBase64**(`str`): `boolean`
|
103
104
|
|
104
105
|
Método que verifica se uma string está encodada com base64.
|
105
106
|
|
106
107
|
#### Parameters
|
107
108
|
|
108
|
-
|
109
|
-
|
110
|
-
|
109
|
+
• **str**: `string`
|
110
|
+
|
111
|
+
String que será verificada.
|
111
112
|
|
112
113
|
#### Returns
|
113
114
|
|
@@ -115,23 +116,23 @@ Método que verifica se uma string está encodada com base64.
|
|
115
116
|
|
116
117
|
- Retorna um valor booleando informando se a string está encodada com base64.
|
117
118
|
|
118
|
-
####
|
119
|
+
#### Source
|
119
120
|
|
120
121
|
src/utils/JSUtils.ts:80
|
121
122
|
|
122
|
-
|
123
|
+
***
|
123
124
|
|
124
|
-
### isEllipsisActive
|
125
|
+
### isEllipsisActive()
|
125
126
|
|
126
|
-
|
127
|
+
> `static` **isEllipsisActive**(`element`): `boolean`
|
127
128
|
|
128
129
|
Método responsável em validar se um elemento HTML está com o ellipsis ativo.
|
129
130
|
|
130
131
|
#### Parameters
|
131
132
|
|
132
|
-
|
133
|
-
|
134
|
-
|
133
|
+
• **element**: `any`
|
134
|
+
|
135
|
+
Elemento HTML que será verificado.
|
135
136
|
|
136
137
|
#### Returns
|
137
138
|
|
@@ -139,43 +140,41 @@ Método responsável em validar se um elemento HTML está com o ellipsis ativo.
|
|
139
140
|
|
140
141
|
- Retorna um valor booleando informando se o elemento está com o ellipsis ativo.
|
141
142
|
|
142
|
-
####
|
143
|
+
#### Source
|
143
144
|
|
144
145
|
src/utils/JSUtils.ts:60
|
145
146
|
|
146
|
-
|
147
|
+
***
|
147
148
|
|
148
|
-
### isHiddenElement
|
149
|
+
### isHiddenElement()
|
149
150
|
|
150
|
-
|
151
|
+
> `static` **isHiddenElement**(`element`): `boolean`
|
151
152
|
|
152
153
|
#### Parameters
|
153
154
|
|
154
|
-
|
155
|
-
| :------ | :------ |
|
156
|
-
| `element` | `HTMLElement` |
|
155
|
+
• **element**: `HTMLElement`
|
157
156
|
|
158
157
|
#### Returns
|
159
158
|
|
160
159
|
`boolean`
|
161
160
|
|
162
|
-
####
|
161
|
+
#### Source
|
163
162
|
|
164
163
|
src/utils/JSUtils.ts:8
|
165
164
|
|
166
|
-
|
165
|
+
***
|
167
166
|
|
168
|
-
### replaceHtmlEntities
|
167
|
+
### replaceHtmlEntities()
|
169
168
|
|
170
|
-
|
169
|
+
> `static` **replaceHtmlEntities**(`source`): `string`
|
171
170
|
|
172
171
|
Substitui caracteres para suas entidades HTML.
|
173
172
|
|
174
173
|
#### Parameters
|
175
174
|
|
176
|
-
|
177
|
-
|
178
|
-
|
175
|
+
• **source**: `string`
|
176
|
+
|
177
|
+
String a ter os caracteres substituidos.
|
179
178
|
|
180
179
|
#### Returns
|
181
180
|
|
@@ -183,6 +182,6 @@ Substitui caracteres para suas entidades HTML.
|
|
183
182
|
|
184
183
|
- Retorna um UUID.
|
185
184
|
|
186
|
-
####
|
185
|
+
#### Source
|
187
186
|
|
188
187
|
src/utils/JSUtils.ts:105
|
@@ -1,48 +1,32 @@
|
|
1
|
-
[
|
1
|
+
[**@sankhyalabs/core**](../README.md) • **Docs**
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
`KeyboardManager` é reponsável por gerenciar eventos de teclado.
|
6
|
-
|
7
|
-
## Table of contents
|
8
|
-
|
9
|
-
### Constructors
|
3
|
+
***
|
10
4
|
|
11
|
-
|
5
|
+
[@sankhyalabs/core](../globals.md) / KeyboardManager
|
12
6
|
|
13
|
-
|
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
|
-
|
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
|
-
###
|
13
|
+
### new KeyboardManager()
|
34
14
|
|
35
|
-
|
15
|
+
> **new KeyboardManager**(`options`?): [`KeyboardManager`](KeyboardManager.md)
|
36
16
|
|
37
17
|
Construtor para a classe Keyboard.
|
38
18
|
|
39
19
|
#### Parameters
|
40
20
|
|
41
|
-
|
42
|
-
|
43
|
-
|
21
|
+
• **options?**: `Partial`\<`IKeyboardOptions`\>
|
22
|
+
|
23
|
+
opções para o gerenciamento de eventos de teclado.
|
44
24
|
|
45
|
-
####
|
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
|
-
|
37
|
+
> `private` **\_mappedElements**: `IKeyboardMappedKeysElements` = `{}`
|
54
38
|
|
55
|
-
####
|
39
|
+
#### Source
|
56
40
|
|
57
41
|
src/utils/KeyboardManager/index.ts:12
|
58
42
|
|
59
|
-
|
43
|
+
***
|
60
44
|
|
61
45
|
### \_options
|
62
46
|
|
63
|
-
|
47
|
+
> `private` **\_options**: `IKeyboardOptions`
|
64
48
|
|
65
|
-
####
|
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
|
-
|
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
|
-
####
|
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
|
-
|
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
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
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
|
-
####
|
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
|
-
|
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
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
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
|
-
####
|
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
|
-
|
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
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
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
|
-
####
|
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
|
-
|
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
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
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
|
-
####
|
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
|
-
|
197
|
+
> **unbind**(`keyMap`): [`KeyboardManager`](KeyboardManager.md)
|
193
198
|
|
194
199
|
Remove um evento de teclado
|
195
200
|
|
196
201
|
#### Parameters
|
197
202
|
|
198
|
-
|
199
|
-
|
200
|
-
|
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
|
-
####
|
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
|
-
|
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
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
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
|
-
####
|
239
|
+
#### Source
|
232
240
|
|
233
241
|
src/utils/KeyboardManager/index.ts:202
|