@sankhyalabs/core-docs 5.20.0-dev.5 → 5.20.0-dev.6
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 +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
@@ -1,205 +1,184 @@
|
|
1
|
-
[
|
1
|
+
[**@sankhyalabs/core**](../README.md) • **Docs**
|
2
|
+
|
3
|
+
***
|
4
|
+
|
5
|
+
[@sankhyalabs/core](../globals.md) / ErrorException
|
2
6
|
|
3
7
|
# Class: ErrorException
|
4
8
|
|
5
9
|
`ErrorException`: Exceção lançada quando ocorre um erro.
|
6
10
|
|
7
|
-
##
|
11
|
+
## Extends
|
8
12
|
|
9
13
|
- `Error`
|
10
14
|
|
11
|
-
|
12
|
-
|
13
|
-
## Table of contents
|
14
|
-
|
15
|
-
### Constructors
|
16
|
-
|
17
|
-
- [constructor](ErrorException.md#constructor)
|
18
|
-
|
19
|
-
### Properties
|
15
|
+
## Constructors
|
20
16
|
|
21
|
-
|
22
|
-
- [errorCode](ErrorException.md#errorcode)
|
23
|
-
- [message](ErrorException.md#message)
|
24
|
-
- [name](ErrorException.md#name)
|
25
|
-
- [stack](ErrorException.md#stack)
|
26
|
-
- [title](ErrorException.md#title)
|
27
|
-
- [prepareStackTrace](ErrorException.md#preparestacktrace)
|
28
|
-
- [stackTraceLimit](ErrorException.md#stacktracelimit)
|
17
|
+
### new ErrorException()
|
29
18
|
|
30
|
-
|
19
|
+
> **new ErrorException**(`title`, `message`, `errorCode`): [`ErrorException`](ErrorException.md)
|
31
20
|
|
32
|
-
|
21
|
+
#### Parameters
|
33
22
|
|
34
|
-
|
23
|
+
• **title**: `string`
|
35
24
|
|
36
|
-
|
25
|
+
• **message**: `string`
|
37
26
|
|
38
|
-
• **
|
27
|
+
• **errorCode**: `string`= `""`
|
39
28
|
|
40
|
-
####
|
29
|
+
#### Returns
|
41
30
|
|
42
|
-
|
43
|
-
| :------ | :------ | :------ |
|
44
|
-
| `title` | `string` | `undefined` |
|
45
|
-
| `message` | `string` | `undefined` |
|
46
|
-
| `errorCode` | `string` | `""` |
|
31
|
+
[`ErrorException`](ErrorException.md)
|
47
32
|
|
48
33
|
#### Overrides
|
49
34
|
|
50
|
-
Error.constructor
|
35
|
+
`Error.constructor`
|
51
36
|
|
52
|
-
####
|
37
|
+
#### Source
|
53
38
|
|
54
39
|
src/exceptions/ErrorException.ts:18
|
55
40
|
|
56
41
|
## Properties
|
57
42
|
|
58
|
-
### cause
|
43
|
+
### cause?
|
59
44
|
|
60
|
-
|
45
|
+
> `optional` **cause**: `unknown`
|
61
46
|
|
62
47
|
#### Inherited from
|
63
48
|
|
64
|
-
Error.cause
|
49
|
+
`Error.cause`
|
65
50
|
|
66
|
-
####
|
51
|
+
#### Source
|
67
52
|
|
68
|
-
|
53
|
+
node\_modules/typescript/lib/lib.es2022.error.d.ts:26
|
69
54
|
|
70
|
-
|
55
|
+
***
|
71
56
|
|
72
57
|
### errorCode
|
73
58
|
|
74
|
-
|
59
|
+
> **errorCode**: `string`
|
75
60
|
|
76
61
|
Código do erro, indica o erro disparado pelo backend.
|
77
62
|
|
78
|
-
####
|
63
|
+
#### Source
|
79
64
|
|
80
65
|
src/exceptions/ErrorException.ts:16
|
81
66
|
|
82
|
-
|
67
|
+
***
|
83
68
|
|
84
69
|
### message
|
85
70
|
|
86
|
-
|
71
|
+
> **message**: `string`
|
87
72
|
|
88
73
|
Descrição do erro.
|
89
74
|
|
90
75
|
#### Overrides
|
91
76
|
|
92
|
-
Error.message
|
77
|
+
`Error.message`
|
93
78
|
|
94
|
-
####
|
79
|
+
#### Source
|
95
80
|
|
96
81
|
src/exceptions/ErrorException.ts:13
|
97
82
|
|
98
|
-
|
83
|
+
***
|
99
84
|
|
100
85
|
### name
|
101
86
|
|
102
|
-
|
87
|
+
> **name**: `string`
|
103
88
|
|
104
89
|
Nome da exceção.
|
105
90
|
|
106
91
|
#### Overrides
|
107
92
|
|
108
|
-
Error.name
|
93
|
+
`Error.name`
|
109
94
|
|
110
|
-
####
|
95
|
+
#### Source
|
111
96
|
|
112
97
|
src/exceptions/ErrorException.ts:7
|
113
98
|
|
114
|
-
|
99
|
+
***
|
115
100
|
|
116
|
-
### stack
|
101
|
+
### stack?
|
117
102
|
|
118
|
-
|
103
|
+
> `optional` **stack**: `string`
|
119
104
|
|
120
105
|
#### Inherited from
|
121
106
|
|
122
|
-
Error.stack
|
107
|
+
`Error.stack`
|
123
108
|
|
124
|
-
####
|
109
|
+
#### Source
|
125
110
|
|
126
|
-
|
111
|
+
node\_modules/typescript/lib/lib.es5.d.ts:1055
|
127
112
|
|
128
|
-
|
113
|
+
***
|
129
114
|
|
130
115
|
### title
|
131
116
|
|
132
|
-
|
117
|
+
> **title**: `string`
|
133
118
|
|
134
119
|
Titulo do erro.
|
135
120
|
|
136
|
-
####
|
121
|
+
#### Source
|
137
122
|
|
138
123
|
src/exceptions/ErrorException.ts:10
|
139
124
|
|
140
|
-
|
141
|
-
|
142
|
-
### prepareStackTrace
|
125
|
+
***
|
143
126
|
|
144
|
-
|
127
|
+
### prepareStackTrace()?
|
145
128
|
|
146
|
-
|
147
|
-
|
148
|
-
▸ (`err`, `stackTraces`): `any`
|
129
|
+
> `static` `optional` **prepareStackTrace**: (`err`, `stackTraces`) => `any`
|
149
130
|
|
150
131
|
Optional override for formatting stack traces
|
151
132
|
|
152
|
-
|
133
|
+
#### See
|
153
134
|
|
154
135
|
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
|
155
136
|
|
156
|
-
|
137
|
+
#### Parameters
|
157
138
|
|
158
|
-
|
159
|
-
| :------ | :------ |
|
160
|
-
| `err` | `Error` |
|
161
|
-
| `stackTraces` | `CallSite`[] |
|
139
|
+
• **err**: `Error`
|
162
140
|
|
163
|
-
|
141
|
+
• **stackTraces**: `CallSite`[]
|
142
|
+
|
143
|
+
#### Returns
|
164
144
|
|
165
145
|
`any`
|
166
146
|
|
167
147
|
#### Inherited from
|
168
148
|
|
169
|
-
Error.prepareStackTrace
|
149
|
+
`Error.prepareStackTrace`
|
170
150
|
|
171
|
-
####
|
151
|
+
#### Source
|
172
152
|
|
173
|
-
|
153
|
+
node\_modules/@types/node/globals.d.ts:27
|
174
154
|
|
175
|
-
|
155
|
+
***
|
176
156
|
|
177
157
|
### stackTraceLimit
|
178
158
|
|
179
|
-
|
159
|
+
> `static` **stackTraceLimit**: `number`
|
180
160
|
|
181
161
|
#### Inherited from
|
182
162
|
|
183
|
-
Error.stackTraceLimit
|
163
|
+
`Error.stackTraceLimit`
|
184
164
|
|
185
|
-
####
|
165
|
+
#### Source
|
186
166
|
|
187
|
-
|
167
|
+
node\_modules/@types/node/globals.d.ts:29
|
188
168
|
|
189
169
|
## Methods
|
190
170
|
|
191
|
-
### captureStackTrace
|
171
|
+
### captureStackTrace()
|
192
172
|
|
193
|
-
|
173
|
+
> `static` **captureStackTrace**(`targetObject`, `constructorOpt`?): `void`
|
194
174
|
|
195
175
|
Create .stack property on a target object
|
196
176
|
|
197
177
|
#### Parameters
|
198
178
|
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
| `constructorOpt?` | `Function` |
|
179
|
+
• **targetObject**: `object`
|
180
|
+
|
181
|
+
• **constructorOpt?**: `Function`
|
203
182
|
|
204
183
|
#### Returns
|
205
184
|
|
@@ -207,8 +186,8 @@ Create .stack property on a target object
|
|
207
186
|
|
208
187
|
#### Inherited from
|
209
188
|
|
210
|
-
Error.captureStackTrace
|
189
|
+
`Error.captureStackTrace`
|
211
190
|
|
212
|
-
####
|
191
|
+
#### Source
|
213
192
|
|
214
|
-
|
193
|
+
node\_modules/@types/node/globals.d.ts:20
|
package/classes/ErrorTracking.md
CHANGED
@@ -1,31 +1,28 @@
|
|
1
|
-
[
|
1
|
+
[**@sankhyalabs/core**](../README.md) • **Docs**
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
`ErrorTracking`: Handler para processar exceptions lançadas.
|
3
|
+
***
|
6
4
|
|
7
|
-
|
5
|
+
[@sankhyalabs/core](../globals.md) / ErrorTracking
|
8
6
|
|
9
|
-
|
7
|
+
# Class: ErrorTracking
|
10
8
|
|
11
|
-
|
9
|
+
`ErrorTracking`: Handler para processar exceptions lançadas.
|
12
10
|
|
13
|
-
|
11
|
+
## Constructors
|
14
12
|
|
15
|
-
|
16
|
-
- [isInternalException](ErrorTracking.md#isinternalexception)
|
13
|
+
### new ErrorTracking()
|
17
14
|
|
18
|
-
|
15
|
+
> **new ErrorTracking**(): [`ErrorTracking`](ErrorTracking.md)
|
19
16
|
|
20
|
-
|
17
|
+
#### Returns
|
21
18
|
|
22
|
-
|
19
|
+
[`ErrorTracking`](ErrorTracking.md)
|
23
20
|
|
24
21
|
## Methods
|
25
22
|
|
26
|
-
### init
|
23
|
+
### init()
|
27
24
|
|
28
|
-
|
25
|
+
> `static` **init**(): `void`
|
29
26
|
|
30
27
|
Inicializa o Rollbar, utilizado para rastreio de erros e análise de logs.
|
31
28
|
|
@@ -33,23 +30,23 @@ Inicializa o Rollbar, utilizado para rastreio de erros e análise de logs.
|
|
33
30
|
|
34
31
|
`void`
|
35
32
|
|
36
|
-
####
|
33
|
+
#### Source
|
37
34
|
|
38
35
|
src/traking/ErrorTraking.ts:16
|
39
36
|
|
40
|
-
|
37
|
+
***
|
41
38
|
|
42
|
-
### isInternalException
|
39
|
+
### isInternalException()
|
43
40
|
|
44
|
-
|
41
|
+
> `static` `private` **isInternalException**(`error`): `boolean`
|
45
42
|
|
46
43
|
Retorna se o erro é uma exceção interna na aplicação.
|
47
44
|
|
48
45
|
#### Parameters
|
49
46
|
|
50
|
-
|
51
|
-
|
52
|
-
|
47
|
+
• **error**: `any`
|
48
|
+
|
49
|
+
Erro que será identificado como exceção interna ou não.
|
53
50
|
|
54
51
|
#### Returns
|
55
52
|
|
@@ -57,6 +54,6 @@ Retorna se o erro é uma exceção interna na aplicação.
|
|
57
54
|
|
58
55
|
- Verdadeiro caso seja uma exceção interna.
|
59
56
|
|
60
|
-
####
|
57
|
+
#### Source
|
61
58
|
|
62
59
|
src/traking/ErrorTraking.ts:34
|
@@ -1,87 +1,83 @@
|
|
1
|
-
[
|
1
|
+
[**@sankhyalabs/core**](../README.md) • **Docs**
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
## Table of contents
|
3
|
+
***
|
6
4
|
|
7
|
-
|
5
|
+
[@sankhyalabs/core](../globals.md) / FieldComparator
|
8
6
|
|
9
|
-
|
7
|
+
# Class: FieldComparator
|
10
8
|
|
11
|
-
|
9
|
+
## Constructors
|
12
10
|
|
13
|
-
|
14
|
-
- [compareUndefined](FieldComparator.md#compareundefined)
|
15
|
-
- [compareValues](FieldComparator.md#comparevalues)
|
11
|
+
### new FieldComparator()
|
16
12
|
|
17
|
-
|
13
|
+
> **new FieldComparator**(): [`FieldComparator`](FieldComparator.md)
|
18
14
|
|
19
|
-
|
15
|
+
#### Returns
|
20
16
|
|
21
|
-
|
17
|
+
[`FieldComparator`](FieldComparator.md)
|
22
18
|
|
23
19
|
## Methods
|
24
20
|
|
25
|
-
### compare
|
21
|
+
### compare()
|
26
22
|
|
27
|
-
|
23
|
+
> `static` **compare**(`field`, `recordA`, `recordB`, `asc`): `number`
|
28
24
|
|
29
25
|
#### Parameters
|
30
26
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
27
|
+
• **field**: [`FieldDescriptor`](../interfaces/FieldDescriptor.md)
|
28
|
+
|
29
|
+
• **recordA**: [`Record`](../interfaces/Record.md)
|
30
|
+
|
31
|
+
• **recordB**: [`Record`](../interfaces/Record.md)
|
32
|
+
|
33
|
+
• **asc**: `boolean`= `true`
|
37
34
|
|
38
35
|
#### Returns
|
39
36
|
|
40
37
|
`number`
|
41
38
|
|
42
|
-
####
|
39
|
+
#### Source
|
43
40
|
|
44
41
|
src/dataunit/sorting/FieldComparator.ts:7
|
45
42
|
|
46
|
-
|
43
|
+
***
|
47
44
|
|
48
|
-
### compareUndefined
|
45
|
+
### compareUndefined()
|
49
46
|
|
50
|
-
|
47
|
+
> `static` **compareUndefined**(`isUndefinedA`, `isUndefinedB`): `undefined` \| `number`
|
51
48
|
|
52
49
|
#### Parameters
|
53
50
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
| `isUndefinedB` | `boolean` |
|
51
|
+
• **isUndefinedA**: `boolean`
|
52
|
+
|
53
|
+
• **isUndefinedB**: `boolean`
|
58
54
|
|
59
55
|
#### Returns
|
60
56
|
|
61
57
|
`undefined` \| `number`
|
62
58
|
|
63
|
-
####
|
59
|
+
#### Source
|
64
60
|
|
65
61
|
src/dataunit/sorting/FieldComparator.ts:26
|
66
62
|
|
67
|
-
|
63
|
+
***
|
68
64
|
|
69
|
-
### compareValues
|
65
|
+
### compareValues()
|
70
66
|
|
71
|
-
|
67
|
+
> `static` **compareValues**(`descriptor`, `valueA`, `valueB`): `number`
|
72
68
|
|
73
69
|
#### Parameters
|
74
70
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
71
|
+
• **descriptor**: [`FieldDescriptor`](../interfaces/FieldDescriptor.md)
|
72
|
+
|
73
|
+
• **valueA**: `any`
|
74
|
+
|
75
|
+
• **valueB**: `any`
|
80
76
|
|
81
77
|
#### Returns
|
82
78
|
|
83
79
|
`number`
|
84
80
|
|
85
|
-
####
|
81
|
+
#### Source
|
86
82
|
|
87
83
|
src/dataunit/sorting/FieldComparator.ts:16
|