@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
package/classes/TimeFormatter.md
CHANGED
@@ -1,60 +1,50 @@
|
|
1
|
-
[
|
1
|
+
[**@sankhyalabs/core**](../README.md) • **Docs**
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
`TimeFormatter`: Utilizado para formatar horas.
|
6
|
-
|
7
|
-
## Table of contents
|
3
|
+
***
|
8
4
|
|
9
|
-
|
5
|
+
[@sankhyalabs/core](../globals.md) / TimeFormatter
|
10
6
|
|
11
|
-
|
12
|
-
|
13
|
-
### Properties
|
7
|
+
# Class: TimeFormatter
|
14
8
|
|
15
|
-
|
9
|
+
`TimeFormatter`: Utilizado para formatar horas.
|
16
10
|
|
17
|
-
|
11
|
+
## Constructors
|
18
12
|
|
19
|
-
|
20
|
-
- [validateTime](TimeFormatter.md#validatetime)
|
13
|
+
### new TimeFormatter()
|
21
14
|
|
22
|
-
|
15
|
+
> **new TimeFormatter**(): [`TimeFormatter`](TimeFormatter.md)
|
23
16
|
|
24
|
-
|
17
|
+
#### Returns
|
25
18
|
|
26
|
-
|
19
|
+
[`TimeFormatter`](TimeFormatter.md)
|
27
20
|
|
28
21
|
## Properties
|
29
22
|
|
30
23
|
### \_maskFormatter
|
31
24
|
|
32
|
-
|
25
|
+
> `static` **\_maskFormatter**: [`MaskFormatter`](MaskFormatter.md)
|
33
26
|
|
34
|
-
####
|
27
|
+
#### Source
|
35
28
|
|
36
29
|
src/utils/TimeFormatter.ts:8
|
37
30
|
|
38
31
|
## Methods
|
39
32
|
|
40
|
-
### prepareValue
|
33
|
+
### prepareValue()
|
41
34
|
|
42
|
-
|
35
|
+
> `static` **prepareValue**(`value`, `showSeconds`): `string`
|
43
36
|
|
44
37
|
Converte um texto para o formato de hora.
|
45
38
|
|
46
|
-
|
39
|
+
#### Parameters
|
47
40
|
|
48
|
-
|
49
|
-
@"10:12" | "10:12:00"
|
50
|
-
@"100112" | "10:01:12"
|
41
|
+
• **value**: `string`
|
51
42
|
|
52
|
-
|
43
|
+
Texto não formatado.
|
44
|
+
|
45
|
+
• **showSeconds**: `boolean`
|
53
46
|
|
54
|
-
|
55
|
-
| :------ | :------ | :------ |
|
56
|
-
| `value` | `string` | Texto não formatado. |
|
57
|
-
| `showSeconds` | `boolean` | Se será validado os segundos. |
|
47
|
+
Se será validado os segundos.
|
58
48
|
|
59
49
|
#### Returns
|
60
50
|
|
@@ -62,30 +52,33 @@ Converte um texto para o formato de hora.
|
|
62
52
|
|
63
53
|
- Texto em formato de hora.
|
64
54
|
|
65
|
-
####
|
55
|
+
#### Exemples
|
56
|
+
|
57
|
+
@"1012" | "10:12"
|
58
|
+
@"10:12" | "10:12:00"
|
59
|
+
@"100112" | "10:01:12"
|
60
|
+
|
61
|
+
#### Source
|
66
62
|
|
67
63
|
src/utils/TimeFormatter.ts:22
|
68
64
|
|
69
|
-
|
65
|
+
***
|
70
66
|
|
71
|
-
### validateTime
|
67
|
+
### validateTime()
|
72
68
|
|
73
|
-
|
69
|
+
> `static` **validateTime**(`value`, `showSeconds`): `boolean`
|
74
70
|
|
75
71
|
Retorna se o texto está no formato de hora.
|
76
72
|
|
77
|
-
|
73
|
+
#### Parameters
|
78
74
|
|
79
|
-
|
80
|
-
@"14e4" | false
|
81
|
-
@"2624" | false
|
75
|
+
• **value**: `string`
|
82
76
|
|
83
|
-
|
77
|
+
Texto a ser validado.
|
84
78
|
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
| `showSeconds` | `boolean` | Se será validado os segundos. |
|
79
|
+
• **showSeconds**: `boolean`
|
80
|
+
|
81
|
+
Se será validado os segundos.
|
89
82
|
|
90
83
|
#### Returns
|
91
84
|
|
@@ -93,6 +86,12 @@ Retorna se o texto está no formato de hora.
|
|
93
86
|
|
94
87
|
- Verdadeiro para valores no formato de hora e False para formatos diferentes.
|
95
88
|
|
96
|
-
####
|
89
|
+
#### Exemples
|
90
|
+
|
91
|
+
@"1012" | true
|
92
|
+
@"14e4" | false
|
93
|
+
@"2624" | false
|
94
|
+
|
95
|
+
#### Source
|
97
96
|
|
98
97
|
src/utils/TimeFormatter.ts:64
|
@@ -1,31 +1,28 @@
|
|
1
|
-
[
|
1
|
+
[**@sankhyalabs/core**](../README.md) • **Docs**
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
`UserAgentUtils`: Utilitario para tratativas relacionadas ao navegador.
|
3
|
+
***
|
6
4
|
|
7
|
-
|
5
|
+
[@sankhyalabs/core](../globals.md) / UserAgentUtils
|
8
6
|
|
9
|
-
|
7
|
+
# Class: UserAgentUtils
|
10
8
|
|
11
|
-
|
9
|
+
`UserAgentUtils`: Utilitario para tratativas relacionadas ao navegador.
|
12
10
|
|
13
|
-
|
11
|
+
## Constructors
|
14
12
|
|
15
|
-
|
16
|
-
- [isFirefox](UserAgentUtils.md#isfirefox)
|
13
|
+
### new UserAgentUtils()
|
17
14
|
|
18
|
-
|
15
|
+
> **new UserAgentUtils**(): [`UserAgentUtils`](UserAgentUtils.md)
|
19
16
|
|
20
|
-
|
17
|
+
#### Returns
|
21
18
|
|
22
|
-
|
19
|
+
[`UserAgentUtils`](UserAgentUtils.md)
|
23
20
|
|
24
21
|
## Methods
|
25
22
|
|
26
|
-
### getBrowserInfo
|
23
|
+
### getBrowserInfo()
|
27
24
|
|
28
|
-
|
25
|
+
> `static` **getBrowserInfo**(): `any`
|
29
26
|
|
30
27
|
Obtém nome e versão do navegador que está sendo utilizado.
|
31
28
|
|
@@ -35,15 +32,15 @@ Obtém nome e versão do navegador que está sendo utilizado.
|
|
35
32
|
|
36
33
|
Objeto com o nome e versão do navegador.
|
37
34
|
|
38
|
-
####
|
35
|
+
#### Source
|
39
36
|
|
40
37
|
src/utils/UserAgentUtils/index.ts:22
|
41
38
|
|
42
|
-
|
39
|
+
***
|
43
40
|
|
44
|
-
### isFirefox
|
41
|
+
### isFirefox()
|
45
42
|
|
46
|
-
|
43
|
+
> `static` **isFirefox**(): `boolean`
|
47
44
|
|
48
45
|
Obtém se o navegador do usuário é o firefox.
|
49
46
|
|
@@ -53,6 +50,6 @@ Obtém se o navegador do usuário é o firefox.
|
|
53
50
|
|
54
51
|
Verdadeiro se o navegador do usuário for o firefox.
|
55
52
|
|
56
|
-
####
|
53
|
+
#### Source
|
57
54
|
|
58
55
|
src/utils/UserAgentUtils/index.ts:13
|
package/classes/VersionUtils.md
CHANGED
@@ -1,42 +1,39 @@
|
|
1
|
-
[
|
1
|
+
[**@sankhyalabs/core**](../README.md) • **Docs**
|
2
2
|
|
3
|
-
|
3
|
+
***
|
4
4
|
|
5
|
-
|
5
|
+
[@sankhyalabs/core](../globals.md) / VersionUtils
|
6
6
|
|
7
|
-
|
7
|
+
# Class: VersionUtils
|
8
8
|
|
9
|
-
|
9
|
+
## Constructors
|
10
10
|
|
11
|
-
###
|
11
|
+
### new VersionUtils()
|
12
12
|
|
13
|
-
|
13
|
+
> **new VersionUtils**(): [`VersionUtils`](VersionUtils.md)
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
### constructor
|
15
|
+
#### Returns
|
18
16
|
|
19
|
-
|
17
|
+
[`VersionUtils`](VersionUtils.md)
|
20
18
|
|
21
19
|
## Methods
|
22
20
|
|
23
|
-
### isRequiredVersion
|
21
|
+
### isRequiredVersion()
|
24
22
|
|
25
|
-
|
23
|
+
> `static` **isRequiredVersion**(`currentVersion`, `requiredVersion`): `boolean`
|
26
24
|
|
27
25
|
Verifica se a versão do backend (SankhyaOM) é maior ou igual a uma determinada versão.
|
28
26
|
|
29
27
|
#### Parameters
|
30
28
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
| `requiredVersion` | `string` |
|
29
|
+
• **currentVersion**: `string`
|
30
|
+
|
31
|
+
• **requiredVersion**: `string`
|
35
32
|
|
36
33
|
#### Returns
|
37
34
|
|
38
35
|
`boolean`
|
39
36
|
|
40
|
-
####
|
37
|
+
#### Source
|
41
38
|
|
42
39
|
src/utils/VersionUtils.ts:8
|
@@ -1,191 +1,170 @@
|
|
1
|
-
[
|
1
|
+
[**@sankhyalabs/core**](../README.md) • **Docs**
|
2
|
+
|
3
|
+
***
|
4
|
+
|
5
|
+
[@sankhyalabs/core](../globals.md) / WaitingChangeException
|
2
6
|
|
3
7
|
# Class: WaitingChangeException
|
4
8
|
|
5
9
|
`WaitingChangeException`: Exceção lançada quando um campo está pendente de finalizar a alteração antes de executar uma ação.
|
6
10
|
|
7
|
-
##
|
11
|
+
## Extends
|
8
12
|
|
9
13
|
- `Error`
|
10
14
|
|
11
|
-
|
12
|
-
|
13
|
-
## Table of contents
|
14
|
-
|
15
|
-
### Constructors
|
16
|
-
|
17
|
-
- [constructor](WaitingChangeException.md#constructor)
|
18
|
-
|
19
|
-
### Properties
|
20
|
-
|
21
|
-
- [cause](WaitingChangeException.md#cause)
|
22
|
-
- [message](WaitingChangeException.md#message)
|
23
|
-
- [name](WaitingChangeException.md#name)
|
24
|
-
- [stack](WaitingChangeException.md#stack)
|
25
|
-
- [title](WaitingChangeException.md#title)
|
26
|
-
- [prepareStackTrace](WaitingChangeException.md#preparestacktrace)
|
27
|
-
- [stackTraceLimit](WaitingChangeException.md#stacktracelimit)
|
15
|
+
## Constructors
|
28
16
|
|
29
|
-
###
|
17
|
+
### new WaitingChangeException()
|
30
18
|
|
31
|
-
|
19
|
+
> **new WaitingChangeException**(`title`, `message`): [`WaitingChangeException`](WaitingChangeException.md)
|
32
20
|
|
33
|
-
|
21
|
+
#### Parameters
|
34
22
|
|
35
|
-
|
23
|
+
• **title**: `string`
|
36
24
|
|
37
|
-
• **
|
25
|
+
• **message**: `string`
|
38
26
|
|
39
|
-
####
|
27
|
+
#### Returns
|
40
28
|
|
41
|
-
|
42
|
-
| :------ | :------ |
|
43
|
-
| `title` | `string` |
|
44
|
-
| `message` | `string` |
|
29
|
+
[`WaitingChangeException`](WaitingChangeException.md)
|
45
30
|
|
46
31
|
#### Overrides
|
47
32
|
|
48
|
-
Error.constructor
|
33
|
+
`Error.constructor`
|
49
34
|
|
50
|
-
####
|
35
|
+
#### Source
|
51
36
|
|
52
37
|
src/exceptions/WaitingChangeException.ts:15
|
53
38
|
|
54
39
|
## Properties
|
55
40
|
|
56
|
-
### cause
|
41
|
+
### cause?
|
57
42
|
|
58
|
-
|
43
|
+
> `optional` **cause**: `unknown`
|
59
44
|
|
60
45
|
#### Inherited from
|
61
46
|
|
62
|
-
Error.cause
|
47
|
+
`Error.cause`
|
63
48
|
|
64
|
-
####
|
49
|
+
#### Source
|
65
50
|
|
66
|
-
|
51
|
+
node\_modules/typescript/lib/lib.es2022.error.d.ts:26
|
67
52
|
|
68
|
-
|
53
|
+
***
|
69
54
|
|
70
55
|
### message
|
71
56
|
|
72
|
-
|
57
|
+
> **message**: `string`
|
73
58
|
|
74
59
|
Descrição do erro.
|
75
60
|
|
76
61
|
#### Overrides
|
77
62
|
|
78
|
-
Error.message
|
63
|
+
`Error.message`
|
79
64
|
|
80
|
-
####
|
65
|
+
#### Source
|
81
66
|
|
82
67
|
src/exceptions/WaitingChangeException.ts:13
|
83
68
|
|
84
|
-
|
69
|
+
***
|
85
70
|
|
86
71
|
### name
|
87
72
|
|
88
|
-
|
73
|
+
> **name**: `string`
|
89
74
|
|
90
75
|
Nome da exceção.
|
91
76
|
|
92
77
|
#### Overrides
|
93
78
|
|
94
|
-
Error.name
|
79
|
+
`Error.name`
|
95
80
|
|
96
|
-
####
|
81
|
+
#### Source
|
97
82
|
|
98
83
|
src/exceptions/WaitingChangeException.ts:7
|
99
84
|
|
100
|
-
|
85
|
+
***
|
101
86
|
|
102
|
-
### stack
|
87
|
+
### stack?
|
103
88
|
|
104
|
-
|
89
|
+
> `optional` **stack**: `string`
|
105
90
|
|
106
91
|
#### Inherited from
|
107
92
|
|
108
|
-
Error.stack
|
93
|
+
`Error.stack`
|
109
94
|
|
110
|
-
####
|
95
|
+
#### Source
|
111
96
|
|
112
|
-
|
97
|
+
node\_modules/typescript/lib/lib.es5.d.ts:1055
|
113
98
|
|
114
|
-
|
99
|
+
***
|
115
100
|
|
116
101
|
### title
|
117
102
|
|
118
|
-
|
103
|
+
> **title**: `string`
|
119
104
|
|
120
105
|
Titulo do erro.
|
121
106
|
|
122
|
-
####
|
107
|
+
#### Source
|
123
108
|
|
124
109
|
src/exceptions/WaitingChangeException.ts:10
|
125
110
|
|
126
|
-
|
127
|
-
|
128
|
-
### prepareStackTrace
|
111
|
+
***
|
129
112
|
|
130
|
-
|
113
|
+
### prepareStackTrace()?
|
131
114
|
|
132
|
-
|
133
|
-
|
134
|
-
▸ (`err`, `stackTraces`): `any`
|
115
|
+
> `static` `optional` **prepareStackTrace**: (`err`, `stackTraces`) => `any`
|
135
116
|
|
136
117
|
Optional override for formatting stack traces
|
137
118
|
|
138
|
-
|
119
|
+
#### See
|
139
120
|
|
140
121
|
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
|
141
122
|
|
142
|
-
|
123
|
+
#### Parameters
|
143
124
|
|
144
|
-
|
145
|
-
| :------ | :------ |
|
146
|
-
| `err` | `Error` |
|
147
|
-
| `stackTraces` | `CallSite`[] |
|
125
|
+
• **err**: `Error`
|
148
126
|
|
149
|
-
|
127
|
+
• **stackTraces**: `CallSite`[]
|
128
|
+
|
129
|
+
#### Returns
|
150
130
|
|
151
131
|
`any`
|
152
132
|
|
153
133
|
#### Inherited from
|
154
134
|
|
155
|
-
Error.prepareStackTrace
|
135
|
+
`Error.prepareStackTrace`
|
156
136
|
|
157
|
-
####
|
137
|
+
#### Source
|
158
138
|
|
159
|
-
|
139
|
+
node\_modules/@types/node/globals.d.ts:27
|
160
140
|
|
161
|
-
|
141
|
+
***
|
162
142
|
|
163
143
|
### stackTraceLimit
|
164
144
|
|
165
|
-
|
145
|
+
> `static` **stackTraceLimit**: `number`
|
166
146
|
|
167
147
|
#### Inherited from
|
168
148
|
|
169
|
-
Error.stackTraceLimit
|
149
|
+
`Error.stackTraceLimit`
|
170
150
|
|
171
|
-
####
|
151
|
+
#### Source
|
172
152
|
|
173
|
-
|
153
|
+
node\_modules/@types/node/globals.d.ts:29
|
174
154
|
|
175
155
|
## Methods
|
176
156
|
|
177
|
-
### captureStackTrace
|
157
|
+
### captureStackTrace()
|
178
158
|
|
179
|
-
|
159
|
+
> `static` **captureStackTrace**(`targetObject`, `constructorOpt`?): `void`
|
180
160
|
|
181
161
|
Create .stack property on a target object
|
182
162
|
|
183
163
|
#### Parameters
|
184
164
|
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
| `constructorOpt?` | `Function` |
|
165
|
+
• **targetObject**: `object`
|
166
|
+
|
167
|
+
• **constructorOpt?**: `Function`
|
189
168
|
|
190
169
|
#### Returns
|
191
170
|
|
@@ -193,8 +172,8 @@ Create .stack property on a target object
|
|
193
172
|
|
194
173
|
#### Inherited from
|
195
174
|
|
196
|
-
Error.captureStackTrace
|
175
|
+
`Error.captureStackTrace`
|
197
176
|
|
198
|
-
####
|
177
|
+
#### Source
|
199
178
|
|
200
|
-
|
179
|
+
node\_modules/@types/node/globals.d.ts:20
|