@sankhyalabs/core 5.20.0-dev.5 → 5.20.0-dev.50
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/.docs/README.md +3 -1
- package/.docs/classes/ApplicationContext.md +31 -32
- package/.docs/classes/ArrayUtils.md +95 -83
- package/.docs/classes/AuthorizedServiceCaller.md +25 -34
- package/.docs/classes/Change.md +59 -74
- package/.docs/classes/DataUnit.md +1180 -1086
- package/.docs/classes/DataUnitAction.md +25 -42
- package/.docs/classes/DataUnitStorage.md +40 -43
- package/.docs/classes/DateUtils.md +140 -133
- package/.docs/classes/ElementIDUtils.md +123 -122
- package/.docs/classes/ErrorException.md +67 -88
- package/.docs/classes/ErrorTracking.md +20 -23
- package/.docs/classes/FieldComparator.md +35 -39
- package/.docs/classes/FloatingManager.md +195 -198
- package/.docs/classes/HTMLBuilder.md +14 -20
- package/.docs/classes/HttpProvider.md +45 -41
- package/.docs/classes/IDBRepository.md +201 -196
- package/.docs/classes/JSUtils.md +65 -66
- package/.docs/classes/KeyboardManager.md +95 -87
- package/.docs/classes/{MaskFormatter-1.md → MaskFormatter.md} +93 -128
- package/.docs/classes/NumberUtils.md +163 -152
- package/.docs/classes/ObjectUtils.md +206 -70
- package/.docs/classes/OnboardingUtils.md +36 -51
- package/.docs/classes/OverflowWatcher.md +533 -0
- package/.docs/classes/PromiseSync.md +25 -42
- package/.docs/classes/ReadyUtil.md +31 -41
- package/.docs/classes/RequestMetadata.md +29 -30
- package/.docs/classes/SearchUtils.md +18 -20
- package/.docs/classes/SelectionInfo.md +73 -74
- package/.docs/classes/ServiceCanceledException.md +193 -0
- package/.docs/classes/SkwHttpProvider.md +33 -45
- package/.docs/classes/StringUtils.md +297 -322
- package/.docs/classes/TimeFormatter.md +43 -44
- package/.docs/classes/UserAgentUtils.md +17 -20
- package/.docs/classes/VersionUtils.md +15 -18
- package/.docs/classes/WaitingChangeException.md +63 -84
- package/.docs/classes/WarningException.md +67 -88
- package/.docs/enumerations/Action.md +317 -0
- package/.docs/enumerations/ChangeOperation.md +47 -0
- package/.docs/enumerations/DataType.md +57 -0
- package/.docs/enumerations/DependencyType.md +37 -0
- package/.docs/enumerations/OverflowDirection.md +29 -0
- package/.docs/enumerations/SelectionMode.md +27 -0
- package/.docs/enumerations/SortMode.md +27 -0
- package/.docs/enumerations/UserInterface.md +177 -0
- package/.docs/functions/defaultDataLoader.md +25 -0
- package/.docs/{modules.md → globals.md} +27 -36
- package/.docs/interfaces/ChildDescriptor.md +12 -16
- package/.docs/interfaces/ChildLink.md +9 -12
- package/.docs/interfaces/DUActionInterceptor.md +10 -14
- package/.docs/interfaces/ExecutionContext.md +17 -32
- package/.docs/interfaces/FieldDescriptor.md +52 -66
- package/.docs/interfaces/Filter.md +13 -17
- package/.docs/interfaces/IElementIDInfo.md +11 -14
- package/.docs/interfaces/ILoadResult.md +11 -16
- package/.docs/interfaces/IRepository.md +106 -93
- package/.docs/interfaces/IRepositoryIndex.md +23 -30
- package/.docs/interfaces/LoadDataRequest.md +36 -45
- package/.docs/interfaces/LoadDataResponse.md +11 -14
- package/.docs/interfaces/OverFlowWatcherParams.md +67 -0
- package/.docs/interfaces/PageRequest.md +16 -20
- package/.docs/interfaces/PaginationInfo.md +24 -31
- package/.docs/interfaces/PromiseSyncCallback.md +13 -17
- package/.docs/interfaces/QuickFilter.md +17 -21
- package/.docs/interfaces/Record.md +26 -33
- package/.docs/interfaces/SavedRecord.md +33 -41
- package/.docs/interfaces/Sort.md +12 -16
- package/.docs/interfaces/SortingProvider.md +10 -13
- package/.docs/interfaces/UnitMetadata.md +16 -21
- package/.docs/interfaces/WaitingChange.md +16 -20
- package/.docs/namespaces/MaskFormatter/README.md +17 -0
- package/.docs/namespaces/MaskFormatter/type-aliases/MaskCharacter.md +13 -0
- package/.docs/namespaces/MaskFormatter/variables/MaskCharacter.md +13 -0
- package/.docs/type-aliases/DataUnitEventOptions.md +17 -0
- package/.docs/type-aliases/OnOverflowCallBack.md +25 -0
- package/.docs/variables/OVERFLOWED_CLASS_NAME.md +13 -0
- package/dist/dataunit/DataUnit.d.ts +67 -6
- package/dist/dataunit/DataUnit.js +151 -32
- package/dist/dataunit/DataUnit.js.map +1 -1
- package/dist/dataunit/DataUnitHelper.js +6 -5
- package/dist/dataunit/DataUnitHelper.js.map +1 -1
- package/dist/dataunit/formatting/PrettyFormatter.js +8 -6
- package/dist/dataunit/formatting/PrettyFormatter.js.map +1 -1
- package/dist/dataunit/loading/LoadDataRequest.d.ts +1 -1
- package/dist/dataunit/metadata/DataType.js +13 -1
- package/dist/dataunit/metadata/DataType.js.map +1 -1
- package/dist/dataunit/state/action/DataUnitAction.d.ts +5 -1
- package/dist/dataunit/state/action/DataUnitAction.js +4 -0
- package/dist/dataunit/state/action/DataUnitAction.js.map +1 -1
- package/dist/dataunit/state/slice/ChangesSlice.js +12 -11
- package/dist/dataunit/state/slice/ChangesSlice.js.map +1 -1
- package/dist/dataunit/state/slice/InvalidFieldsSlice.js +2 -0
- package/dist/dataunit/state/slice/InvalidFieldsSlice.js.map +1 -1
- package/dist/dataunit/state/slice/LoadingProperties.d.ts +9 -0
- package/dist/dataunit/state/slice/LoadingProperties.js +31 -0
- package/dist/dataunit/state/slice/LoadingProperties.js.map +1 -0
- package/dist/dataunit/state/slice/RecordsSlice.js +1 -1
- package/dist/dataunit/state/slice/RecordsSlice.js.map +1 -1
- package/dist/dataunit/state/slice/SelectionSlice.js +4 -4
- package/dist/dataunit/state/slice/SelectionSlice.js.map +1 -1
- package/dist/exceptions/ServiceCanceledException.d.ts +14 -0
- package/dist/exceptions/ServiceCanceledException.js +13 -0
- package/dist/exceptions/ServiceCanceledException.js.map +1 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/repository/IRepository.d.ts +6 -0
- package/dist/repository/indexeddb/IDBRepository.d.ts +1 -0
- package/dist/repository/indexeddb/IDBRepository.js +3 -0
- package/dist/repository/indexeddb/IDBRepository.js.map +1 -1
- package/dist/utils/DateUtils.js +3 -0
- package/dist/utils/DateUtils.js.map +1 -1
- package/dist/utils/ElementUtils.d.ts +2 -0
- package/dist/utils/ElementUtils.js +9 -0
- package/dist/utils/ElementUtils.js.map +1 -0
- package/dist/utils/MaskFormatter.d.ts +2 -1
- package/dist/utils/MaskFormatter.js +5 -1
- package/dist/utils/MaskFormatter.js.map +1 -1
- package/dist/utils/ObjectUtils.d.ts +38 -0
- package/dist/utils/ObjectUtils.js +51 -0
- package/dist/utils/ObjectUtils.js.map +1 -1
- package/dist/utils/OnboardingUtils.js +1 -1
- package/dist/utils/OnboardingUtils.js.map +1 -1
- package/dist/utils/OverflowWatcher/index.d.ts +59 -0
- package/dist/utils/OverflowWatcher/index.js +188 -0
- package/dist/utils/OverflowWatcher/index.js.map +1 -0
- package/dist/utils/OverflowWatcher/types/overflow-callback.d.ts +6 -0
- package/dist/utils/OverflowWatcher/types/overflow-callback.js +2 -0
- package/dist/utils/OverflowWatcher/types/overflow-callback.js.map +1 -0
- package/dist/utils/OverflowWatcher/types/overflow-direction.d.ts +7 -0
- package/dist/utils/OverflowWatcher/types/overflow-direction.js +9 -0
- package/dist/utils/OverflowWatcher/types/overflow-direction.js.map +1 -0
- package/dist/utils/SortingUtils.d.ts +9 -0
- package/dist/utils/SortingUtils.js +24 -0
- package/dist/utils/SortingUtils.js.map +1 -0
- package/jest.config.ts +3 -1
- package/package.json +12 -4
- package/reports/test-report.xml +175 -0
- package/setupTests.js +7 -0
- package/sonar-project.properties +10 -0
- package/src/dataunit/DataUnit.ts +179 -46
- package/src/dataunit/DataUnitHelper.ts +6 -5
- package/src/dataunit/formatting/PrettyFormatter.ts +7 -6
- package/src/dataunit/loading/LoadDataRequest.ts +1 -1
- package/src/dataunit/metadata/DataType.ts +13 -1
- package/src/dataunit/state/action/DataUnitAction.ts +5 -1
- package/src/dataunit/state/slice/ChangesSlice.ts +15 -14
- package/src/dataunit/state/slice/InvalidFieldsSlice.ts +2 -0
- package/src/dataunit/state/slice/LoadingProperties.ts +37 -0
- package/src/dataunit/state/slice/RecordsSlice.ts +1 -1
- package/src/dataunit/state/slice/SelectionSlice.ts +4 -4
- package/src/dataunit/state/slice/test/RecordsSlice.spec.ts +45 -0
- package/src/dataunit/test/DataUnit.spec.ts +44 -0
- package/src/exceptions/ServiceCanceledException.ts +25 -0
- package/src/index.ts +10 -1
- package/src/repository/IRepository.ts +7 -0
- package/src/repository/indexeddb/IDBRepository.ts +4 -0
- package/src/utils/DateUtils.ts +3 -0
- package/src/utils/ElementUtils.ts +10 -0
- package/src/utils/MaskFormatter.ts +5 -1
- package/src/utils/ObjectUtils.ts +56 -0
- package/src/utils/OnboardingUtils.ts +1 -1
- package/src/utils/OverflowWatcher/index.ts +243 -0
- package/src/utils/OverflowWatcher/types/overflow-callback.ts +6 -0
- package/src/utils/OverflowWatcher/types/overflow-direction.ts +7 -0
- package/src/utils/SortingUtils.ts +30 -0
- package/src/utils/test/objectUtils.spec.ts +109 -0
- package/test/dataunit/formatting/PrettyFormatter.spec.ts +177 -0
- package/test/util/ElementUtils.spec.ts +34 -0
- package/test/util/OverflowWatcher.spec.ts +152 -0
- package/.docs/.nojekyll +0 -1
- package/.docs/enums/Action.md +0 -305
- package/.docs/enums/ChangeOperation.md +0 -52
- package/.docs/enums/DataType.md +0 -63
- package/.docs/enums/DependencyType.md +0 -41
- package/.docs/enums/SelectionMode.md +0 -30
- package/.docs/enums/SortMode.md +0 -30
- package/.docs/enums/UserInterface.md +0 -195
- package/.docs/modules/MaskFormatter.md +0 -37
package/.docs/classes/Change.md
CHANGED
|
@@ -1,109 +1,94 @@
|
|
|
1
|
-
[
|
|
1
|
+
[**@sankhyalabs/core**](../README.md) • **Docs**
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
`Change`: Dados que representam uma alteração.
|
|
3
|
+
***
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
[@sankhyalabs/core](../globals.md) / Change
|
|
8
6
|
|
|
9
|
-
|
|
7
|
+
# Class: Change
|
|
10
8
|
|
|
11
|
-
|
|
9
|
+
`Change`: Dados que representam uma alteração.
|
|
12
10
|
|
|
13
|
-
|
|
11
|
+
## Constructors
|
|
14
12
|
|
|
15
|
-
|
|
16
|
-
- [dataUnit](Change.md#dataunit)
|
|
17
|
-
- [record](Change.md#record)
|
|
18
|
-
- [sourceId](Change.md#sourceid)
|
|
19
|
-
- [updatingFields](Change.md#updatingfields)
|
|
13
|
+
### new Change()
|
|
20
14
|
|
|
21
|
-
|
|
15
|
+
> **new Change**(`dataUnit`, `record`, `updates`, `operation`, `sourceId`?): [`Change`](Change.md)
|
|
22
16
|
|
|
23
|
-
|
|
17
|
+
#### Parameters
|
|
24
18
|
|
|
25
|
-
|
|
19
|
+
• **dataUnit**: `string`
|
|
26
20
|
|
|
27
|
-
|
|
28
|
-
- [isDelete](Change.md#isdelete)
|
|
29
|
-
- [isInsert](Change.md#isinsert)
|
|
30
|
-
- [isUpdate](Change.md#isupdate)
|
|
21
|
+
• **record**: [`Record`](../interfaces/Record.md)
|
|
31
22
|
|
|
32
|
-
|
|
23
|
+
• **updates**: `any`
|
|
33
24
|
|
|
34
|
-
|
|
25
|
+
• **operation**: [`ChangeOperation`](../enumerations/ChangeOperation.md)
|
|
35
26
|
|
|
36
|
-
• **
|
|
27
|
+
• **sourceId?**: `string`
|
|
37
28
|
|
|
38
|
-
####
|
|
29
|
+
#### Returns
|
|
39
30
|
|
|
40
|
-
|
|
41
|
-
| :------ | :------ |
|
|
42
|
-
| `dataUnit` | `string` |
|
|
43
|
-
| `record` | [`Record`](../interfaces/Record.md) |
|
|
44
|
-
| `updates` | `any` |
|
|
45
|
-
| `operation` | [`ChangeOperation`](../enums/ChangeOperation.md) |
|
|
46
|
-
| `sourceId?` | `string` |
|
|
31
|
+
[`Change`](Change.md)
|
|
47
32
|
|
|
48
|
-
####
|
|
33
|
+
#### Source
|
|
49
34
|
|
|
50
|
-
src/dataunit/DataUnit.ts:
|
|
35
|
+
src/dataunit/DataUnit.ts:1904
|
|
51
36
|
|
|
52
37
|
## Properties
|
|
53
38
|
|
|
54
39
|
### \_operation
|
|
55
40
|
|
|
56
|
-
|
|
41
|
+
> `private` **\_operation**: [`ChangeOperation`](../enumerations/ChangeOperation.md)
|
|
57
42
|
|
|
58
|
-
####
|
|
43
|
+
#### Source
|
|
59
44
|
|
|
60
|
-
src/dataunit/DataUnit.ts:
|
|
45
|
+
src/dataunit/DataUnit.ts:1902
|
|
61
46
|
|
|
62
|
-
|
|
47
|
+
***
|
|
63
48
|
|
|
64
49
|
### dataUnit
|
|
65
50
|
|
|
66
|
-
|
|
51
|
+
> **dataUnit**: `string`
|
|
67
52
|
|
|
68
|
-
####
|
|
53
|
+
#### Source
|
|
69
54
|
|
|
70
|
-
src/dataunit/DataUnit.ts:
|
|
55
|
+
src/dataunit/DataUnit.ts:1897
|
|
71
56
|
|
|
72
|
-
|
|
57
|
+
***
|
|
73
58
|
|
|
74
59
|
### record
|
|
75
60
|
|
|
76
|
-
|
|
61
|
+
> **record**: [`Record`](../interfaces/Record.md)
|
|
77
62
|
|
|
78
|
-
####
|
|
63
|
+
#### Source
|
|
79
64
|
|
|
80
|
-
src/dataunit/DataUnit.ts:
|
|
65
|
+
src/dataunit/DataUnit.ts:1898
|
|
81
66
|
|
|
82
|
-
|
|
67
|
+
***
|
|
83
68
|
|
|
84
69
|
### sourceId
|
|
85
70
|
|
|
86
|
-
|
|
71
|
+
> **sourceId**: `undefined` \| `string`
|
|
87
72
|
|
|
88
|
-
####
|
|
73
|
+
#### Source
|
|
89
74
|
|
|
90
|
-
src/dataunit/DataUnit.ts:
|
|
75
|
+
src/dataunit/DataUnit.ts:1899
|
|
91
76
|
|
|
92
|
-
|
|
77
|
+
***
|
|
93
78
|
|
|
94
79
|
### updatingFields
|
|
95
80
|
|
|
96
|
-
|
|
81
|
+
> **updatingFields**: `any`
|
|
97
82
|
|
|
98
|
-
####
|
|
83
|
+
#### Source
|
|
99
84
|
|
|
100
|
-
src/dataunit/DataUnit.ts:
|
|
85
|
+
src/dataunit/DataUnit.ts:1900
|
|
101
86
|
|
|
102
87
|
## Accessors
|
|
103
88
|
|
|
104
89
|
### operation
|
|
105
90
|
|
|
106
|
-
|
|
91
|
+
> `get` **operation**(): `string`
|
|
107
92
|
|
|
108
93
|
Obtém o tipo de operação que está sendo realizada.
|
|
109
94
|
|
|
@@ -113,15 +98,15 @@ Obtém o tipo de operação que está sendo realizada.
|
|
|
113
98
|
|
|
114
99
|
- Ação que está sendo executada.
|
|
115
100
|
|
|
116
|
-
####
|
|
101
|
+
#### Source
|
|
117
102
|
|
|
118
|
-
src/dataunit/DataUnit.ts:
|
|
103
|
+
src/dataunit/DataUnit.ts:1919
|
|
119
104
|
|
|
120
105
|
## Methods
|
|
121
106
|
|
|
122
|
-
### isCopy
|
|
107
|
+
### isCopy()
|
|
123
108
|
|
|
124
|
-
|
|
109
|
+
> **isCopy**(): `boolean`
|
|
125
110
|
|
|
126
111
|
Retorna se o DataUnit está em uma operação de cópia.
|
|
127
112
|
|
|
@@ -131,15 +116,15 @@ Retorna se o DataUnit está em uma operação de cópia.
|
|
|
131
116
|
|
|
132
117
|
- Verdadeiro se a operação for de cópia.
|
|
133
118
|
|
|
134
|
-
####
|
|
119
|
+
#### Source
|
|
135
120
|
|
|
136
|
-
src/dataunit/DataUnit.ts:
|
|
121
|
+
src/dataunit/DataUnit.ts:1941
|
|
137
122
|
|
|
138
|
-
|
|
123
|
+
***
|
|
139
124
|
|
|
140
|
-
### isDelete
|
|
125
|
+
### isDelete()
|
|
141
126
|
|
|
142
|
-
|
|
127
|
+
> **isDelete**(): `boolean`
|
|
143
128
|
|
|
144
129
|
Retorna se o DataUnit está em uma operação de deleção.
|
|
145
130
|
|
|
@@ -149,15 +134,15 @@ Retorna se o DataUnit está em uma operação de deleção.
|
|
|
149
134
|
|
|
150
135
|
- Verdadeiro se a operação for de deleção.
|
|
151
136
|
|
|
152
|
-
####
|
|
137
|
+
#### Source
|
|
153
138
|
|
|
154
|
-
src/dataunit/DataUnit.ts:
|
|
139
|
+
src/dataunit/DataUnit.ts:1952
|
|
155
140
|
|
|
156
|
-
|
|
141
|
+
***
|
|
157
142
|
|
|
158
|
-
### isInsert
|
|
143
|
+
### isInsert()
|
|
159
144
|
|
|
160
|
-
|
|
145
|
+
> **isInsert**(): `boolean`
|
|
161
146
|
|
|
162
147
|
Retorna se o DataUnit está em uma operação de inserção.
|
|
163
148
|
|
|
@@ -167,15 +152,15 @@ Retorna se o DataUnit está em uma operação de inserção.
|
|
|
167
152
|
|
|
168
153
|
- Verdadeiro se a operação for de inserção.
|
|
169
154
|
|
|
170
|
-
####
|
|
155
|
+
#### Source
|
|
171
156
|
|
|
172
|
-
src/dataunit/DataUnit.ts:
|
|
157
|
+
src/dataunit/DataUnit.ts:1930
|
|
173
158
|
|
|
174
|
-
|
|
159
|
+
***
|
|
175
160
|
|
|
176
|
-
### isUpdate
|
|
161
|
+
### isUpdate()
|
|
177
162
|
|
|
178
|
-
|
|
163
|
+
> **isUpdate**(): `boolean`
|
|
179
164
|
|
|
180
165
|
Retorna se o DataUnit está em uma operação de atualização.
|
|
181
166
|
|
|
@@ -185,6 +170,6 @@ Retorna se o DataUnit está em uma operação de atualização.
|
|
|
185
170
|
|
|
186
171
|
- Verdadeiro se a operação for de atualização.
|
|
187
172
|
|
|
188
|
-
####
|
|
173
|
+
#### Source
|
|
189
174
|
|
|
190
|
-
src/dataunit/DataUnit.ts:
|
|
175
|
+
src/dataunit/DataUnit.ts:1963
|