@sankhyalabs/core-docs 0.0.0-feat-dev-kb-15253.0 → 0.0.0-feat-dev-KB-14960.1

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/enums/Action.md CHANGED
@@ -22,6 +22,7 @@
22
22
  - [LOADING\_RECORD](Action.md#loading_record)
23
23
  - [METADATA\_LOADED](Action.md#metadata_loaded)
24
24
  - [NEXT\_SELECTED](Action.md#next_selected)
25
+ - [PAGINATION\_UPDATED](Action.md#pagination_updated)
25
26
  - [PREVIOUS\_SELECTED](Action.md#previous_selected)
26
27
  - [RECORDS\_ADDED](Action.md#records_added)
27
28
  - [RECORDS\_COPIED](Action.md#records_copied)
@@ -41,7 +42,7 @@
41
42
 
42
43
  #### Defined in
43
44
 
44
- src/dataunit/state/action/DataUnitAction.ts:51
45
+ src/dataunit/state/action/DataUnitAction.ts:52
45
46
 
46
47
  ___
47
48
 
@@ -51,7 +52,7 @@ ___
51
52
 
52
53
  #### Defined in
53
54
 
54
- src/dataunit/state/action/DataUnitAction.ts:50
55
+ src/dataunit/state/action/DataUnitAction.ts:51
55
56
 
56
57
  ___
57
58
 
@@ -61,7 +62,7 @@ ___
61
62
 
62
63
  #### Defined in
63
64
 
64
- src/dataunit/state/action/DataUnitAction.ts:44
65
+ src/dataunit/state/action/DataUnitAction.ts:45
65
66
 
66
67
  ___
67
68
 
@@ -71,7 +72,7 @@ ___
71
72
 
72
73
  #### Defined in
73
74
 
74
- src/dataunit/state/action/DataUnitAction.ts:62
75
+ src/dataunit/state/action/DataUnitAction.ts:63
75
76
 
76
77
  ___
77
78
 
@@ -81,7 +82,7 @@ ___
81
82
 
82
83
  #### Defined in
83
84
 
84
- src/dataunit/state/action/DataUnitAction.ts:46
85
+ src/dataunit/state/action/DataUnitAction.ts:47
85
86
 
86
87
  ___
87
88
 
@@ -101,7 +102,7 @@ ___
101
102
 
102
103
  #### Defined in
103
104
 
104
- src/dataunit/state/action/DataUnitAction.ts:47
105
+ src/dataunit/state/action/DataUnitAction.ts:48
105
106
 
106
107
  ___
107
108
 
@@ -111,7 +112,7 @@ ___
111
112
 
112
113
  #### Defined in
113
114
 
114
- src/dataunit/state/action/DataUnitAction.ts:36
115
+ src/dataunit/state/action/DataUnitAction.ts:37
115
116
 
116
117
  ___
117
118
 
@@ -121,7 +122,7 @@ ___
121
122
 
122
123
  #### Defined in
123
124
 
124
- src/dataunit/state/action/DataUnitAction.ts:49
125
+ src/dataunit/state/action/DataUnitAction.ts:50
125
126
 
126
127
  ___
127
128
 
@@ -131,7 +132,7 @@ ___
131
132
 
132
133
  #### Defined in
133
134
 
134
- src/dataunit/state/action/DataUnitAction.ts:64
135
+ src/dataunit/state/action/DataUnitAction.ts:65
135
136
 
136
137
  ___
137
138
 
@@ -141,7 +142,7 @@ ___
141
142
 
142
143
  #### Defined in
143
144
 
144
- src/dataunit/state/action/DataUnitAction.ts:65
145
+ src/dataunit/state/action/DataUnitAction.ts:66
145
146
 
146
147
  ___
147
148
 
@@ -171,7 +172,7 @@ ___
171
172
 
172
173
  #### Defined in
173
174
 
174
- src/dataunit/state/action/DataUnitAction.ts:59
175
+ src/dataunit/state/action/DataUnitAction.ts:60
175
176
 
176
177
  ___
177
178
 
@@ -191,7 +192,17 @@ ___
191
192
 
192
193
  #### Defined in
193
194
 
194
- src/dataunit/state/action/DataUnitAction.ts:54
195
+ src/dataunit/state/action/DataUnitAction.ts:55
196
+
197
+ ___
198
+
199
+ ### PAGINATION\_UPDATED
200
+
201
+ • **PAGINATION\_UPDATED** = ``"paginationUpdated"``
202
+
203
+ #### Defined in
204
+
205
+ src/dataunit/state/action/DataUnitAction.ts:34
195
206
 
196
207
  ___
197
208
 
@@ -201,7 +212,7 @@ ___
201
212
 
202
213
  #### Defined in
203
214
 
204
- src/dataunit/state/action/DataUnitAction.ts:55
215
+ src/dataunit/state/action/DataUnitAction.ts:56
205
216
 
206
217
  ___
207
218
 
@@ -211,7 +222,7 @@ ___
211
222
 
212
223
  #### Defined in
213
224
 
214
- src/dataunit/state/action/DataUnitAction.ts:41
225
+ src/dataunit/state/action/DataUnitAction.ts:42
215
226
 
216
227
  ___
217
228
 
@@ -221,7 +232,7 @@ ___
221
232
 
222
233
  #### Defined in
223
234
 
224
- src/dataunit/state/action/DataUnitAction.ts:42
235
+ src/dataunit/state/action/DataUnitAction.ts:43
225
236
 
226
237
  ___
227
238
 
@@ -231,7 +242,7 @@ ___
231
242
 
232
243
  #### Defined in
233
244
 
234
- src/dataunit/state/action/DataUnitAction.ts:39
245
+ src/dataunit/state/action/DataUnitAction.ts:40
235
246
 
236
247
  ___
237
248
 
@@ -241,7 +252,7 @@ ___
241
252
 
242
253
  #### Defined in
243
254
 
244
- src/dataunit/state/action/DataUnitAction.ts:60
255
+ src/dataunit/state/action/DataUnitAction.ts:61
245
256
 
246
257
  ___
247
258
 
@@ -251,7 +262,7 @@ ___
251
262
 
252
263
  #### Defined in
253
264
 
254
- src/dataunit/state/action/DataUnitAction.ts:38
265
+ src/dataunit/state/action/DataUnitAction.ts:39
255
266
 
256
267
  ___
257
268
 
@@ -261,7 +272,7 @@ ___
261
272
 
262
273
  #### Defined in
263
274
 
264
- src/dataunit/state/action/DataUnitAction.ts:35
275
+ src/dataunit/state/action/DataUnitAction.ts:36
265
276
 
266
277
  ___
267
278
 
@@ -271,7 +282,7 @@ ___
271
282
 
272
283
  #### Defined in
273
284
 
274
- src/dataunit/state/action/DataUnitAction.ts:53
285
+ src/dataunit/state/action/DataUnitAction.ts:54
275
286
 
276
287
  ___
277
288
 
@@ -281,7 +292,7 @@ ___
281
292
 
282
293
  #### Defined in
283
294
 
284
- src/dataunit/state/action/DataUnitAction.ts:57
295
+ src/dataunit/state/action/DataUnitAction.ts:58
285
296
 
286
297
  ___
287
298
 
@@ -291,4 +302,4 @@ ___
291
302
 
292
303
  #### Defined in
293
304
 
294
- src/dataunit/state/action/DataUnitAction.ts:45
305
+ src/dataunit/state/action/DataUnitAction.ts:46
@@ -19,7 +19,7 @@
19
19
 
20
20
  #### Defined in
21
21
 
22
- src/dataunit/DataUnit.ts:1700
22
+ src/dataunit/DataUnit.ts:1714
23
23
 
24
24
  ___
25
25
 
@@ -29,7 +29,7 @@ ___
29
29
 
30
30
  #### Defined in
31
31
 
32
- src/dataunit/DataUnit.ts:1702
32
+ src/dataunit/DataUnit.ts:1716
33
33
 
34
34
  ___
35
35
 
@@ -39,7 +39,7 @@ ___
39
39
 
40
40
  #### Defined in
41
41
 
42
- src/dataunit/DataUnit.ts:1699
42
+ src/dataunit/DataUnit.ts:1713
43
43
 
44
44
  ___
45
45
 
@@ -49,4 +49,4 @@ ___
49
49
 
50
50
  #### Defined in
51
51
 
52
- src/dataunit/DataUnit.ts:1701
52
+ src/dataunit/DataUnit.ts:1715
@@ -17,7 +17,7 @@
17
17
 
18
18
  #### Defined in
19
19
 
20
- src/dataunit/DataUnit.ts:1810
20
+ src/dataunit/DataUnit.ts:1822
21
21
 
22
22
  ___
23
23
 
@@ -27,4 +27,4 @@ ___
27
27
 
28
28
  #### Defined in
29
29
 
30
- src/dataunit/DataUnit.ts:1811
30
+ src/dataunit/DataUnit.ts:1823
@@ -26,4 +26,4 @@
26
26
 
27
27
  #### Defined in
28
28
 
29
- src/dataunit/DataUnit.ts:1683
29
+ src/dataunit/DataUnit.ts:1697
@@ -23,7 +23,7 @@
23
23
 
24
24
  #### Defined in
25
25
 
26
- src/indexeddb/ILoadResult.ts:3
26
+ src/repository/ILoadResult.ts:3
27
27
 
28
28
  ___
29
29
 
@@ -33,4 +33,4 @@ ___
33
33
 
34
34
  #### Defined in
35
35
 
36
- src/indexeddb/ILoadResult.ts:2
36
+ src/repository/ILoadResult.ts:2
@@ -0,0 +1,245 @@
1
+ [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / IRepository
2
+
3
+ # Interface: IRepository<T\>
4
+
5
+ ## Type parameters
6
+
7
+ | Name |
8
+ | :------ |
9
+ | `T` |
10
+
11
+ ## Implemented by
12
+
13
+ - [`IDBRepository`](../classes/IDBRepository.md)
14
+
15
+ ## Table of contents
16
+
17
+ ### Methods
18
+
19
+ - [clear](IRepository.md#clear)
20
+ - [count](IRepository.md#count)
21
+ - [delete](IRepository.md#delete)
22
+ - [distict](IRepository.md#distict)
23
+ - [insert](IRepository.md#insert)
24
+ - [isEmpty](IRepository.md#isempty)
25
+ - [isOperating](IRepository.md#isoperating)
26
+ - [load](IRepository.md#load)
27
+ - [push](IRepository.md#push)
28
+ - [update](IRepository.md#update)
29
+
30
+ ## Methods
31
+
32
+ ### clear
33
+
34
+ ▸ **clear**(): `Promise`<`void`\>
35
+
36
+ Limpa todo o repositório
37
+
38
+ #### Returns
39
+
40
+ `Promise`<`void`\>
41
+
42
+ Promessa de execução
43
+
44
+ #### Defined in
45
+
46
+ src/repository/IRepository.ts:38
47
+
48
+ ___
49
+
50
+ ### count
51
+
52
+ ▸ **count**(): `Promise`<`number`\>
53
+
54
+ Conta os itens do repositório
55
+
56
+ #### Returns
57
+
58
+ `Promise`<`number`\>
59
+
60
+ Promessa de quantidade
61
+
62
+ #### Defined in
63
+
64
+ src/repository/IRepository.ts:81
65
+
66
+ ___
67
+
68
+ ### delete
69
+
70
+ ▸ **delete**(`items`): `Promise`<`void`\>
71
+
72
+ Remove itens do repositório
73
+
74
+ #### Parameters
75
+
76
+ | Name | Type | Description |
77
+ | :------ | :------ | :------ |
78
+ | `items` | `T`[] | Os itens a serem removidos |
79
+
80
+ #### Returns
81
+
82
+ `Promise`<`void`\>
83
+
84
+ Promessa de execução
85
+
86
+ #### Defined in
87
+
88
+ src/repository/IRepository.ts:46
89
+
90
+ ___
91
+
92
+ ### distict
93
+
94
+ ▸ **distict**(`itemProcessor`): `Promise`<`Map`<`string`, `any`\>\>
95
+
96
+ Itera todos os items colecionando os valores distintos.
97
+
98
+ #### Parameters
99
+
100
+ | Name | Type | Description |
101
+ | :------ | :------ | :------ |
102
+ | `itemProcessor` | (`item`: `T`) => { `key`: `string` ; `value`: `any` } | Uma função que processa um item e gera a chave e valor |
103
+
104
+ #### Returns
105
+
106
+ `Promise`<`Map`<`string`, `any`\>\>
107
+
108
+ Promessa de array com os valores distintos.
109
+
110
+ #### Defined in
111
+
112
+ src/repository/IRepository.ts:23
113
+
114
+ ___
115
+
116
+ ### insert
117
+
118
+ ▸ **insert**(`itemReference`, `items`): `Promise`<`void`\>
119
+
120
+ Insere itens em uma posição de referência
121
+
122
+ #### Parameters
123
+
124
+ | Name | Type | Description |
125
+ | :------ | :------ | :------ |
126
+ | `itemReference` | `T` | O item posterior aos inseridos |
127
+ | `items` | `T`[] | Os itens a serem inseridos |
128
+
129
+ #### Returns
130
+
131
+ `Promise`<`void`\>
132
+
133
+ Promessa de execução
134
+
135
+ #### Defined in
136
+
137
+ src/repository/IRepository.ts:63
138
+
139
+ ___
140
+
141
+ ### isEmpty
142
+
143
+ ▸ **isEmpty**(): `Promise`<`boolean`\>
144
+
145
+ Determina se o repositório está vazio ou ainda não foi criado.
146
+
147
+ #### Returns
148
+
149
+ `Promise`<`boolean`\>
150
+
151
+ #### Defined in
152
+
153
+ src/repository/IRepository.ts:74
154
+
155
+ ___
156
+
157
+ ### isOperating
158
+
159
+ ▸ **isOperating**(): `boolean`
160
+
161
+ Determina se o repositório está em condições normais de funcionamento.
162
+ Caso o banco tenha sido excluido, retorna false.
163
+
164
+ #### Returns
165
+
166
+ `boolean`
167
+
168
+ #### Defined in
169
+
170
+ src/repository/IRepository.ts:69
171
+
172
+ ___
173
+
174
+ ### load
175
+
176
+ ▸ **load**(`filterFunction?`, `sortingFunction?`, `offset?`, `limit?`): `Promise`<[`ILoadResult`](ILoadResult.md)<`T`\>\>
177
+
178
+ Recupera registros do repositório
179
+
180
+ #### Parameters
181
+
182
+ | Name | Type | Description |
183
+ | :------ | :------ | :------ |
184
+ | `filterFunction?` | (`value`: `T`) => `boolean` | Teste para determinar se um registro está no universo desejado |
185
+ | `sortingFunction?` | (`itemA`: `T`, `itemB`: `T`) => `number` | Critério comparação para ordenação |
186
+ | `offset?` | `number` | Determina que o resultado descarta os registros iniciais |
187
+ | `limit?` | `number` | Descarta o resultado a partir de uma quantidade de registros |
188
+
189
+ #### Returns
190
+
191
+ `Promise`<[`ILoadResult`](ILoadResult.md)<`T`\>\>
192
+
193
+ Promessa de um array que satisfaça aos critérios informados
194
+
195
+ #### Defined in
196
+
197
+ src/repository/IRepository.ts:14
198
+
199
+ ___
200
+
201
+ ### push
202
+
203
+ ▸ **push**(`items`): `Promise`<`void`\>
204
+
205
+ Adiciona registros no final do repositório
206
+
207
+ #### Parameters
208
+
209
+ | Name | Type | Description |
210
+ | :------ | :------ | :------ |
211
+ | `items` | `T`[] | Os items a serem adicionados |
212
+
213
+ #### Returns
214
+
215
+ `Promise`<`void`\>
216
+
217
+ Promessa de execução
218
+
219
+ #### Defined in
220
+
221
+ src/repository/IRepository.ts:31
222
+
223
+ ___
224
+
225
+ ### update
226
+
227
+ ▸ **update**(`items`): `Promise`<`void`\>
228
+
229
+ Altera itens já persistido no repositório
230
+
231
+ #### Parameters
232
+
233
+ | Name | Type | Description |
234
+ | :------ | :------ | :------ |
235
+ | `items` | `T`[] | Os itens a serem alterados |
236
+
237
+ #### Returns
238
+
239
+ `Promise`<`void`\>
240
+
241
+ Promessa de execução
242
+
243
+ #### Defined in
244
+
245
+ src/repository/IRepository.ts:54
@@ -0,0 +1,66 @@
1
+ [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / IRepositoryIndex
2
+
3
+ # Interface: IRepositoryIndex
4
+
5
+ ## Hierarchy
6
+
7
+ - `IDBIndexParameters`
8
+
9
+ ↳ **`IRepositoryIndex`**
10
+
11
+ ## Table of contents
12
+
13
+ ### Properties
14
+
15
+ - [multiEntry](IRepositoryIndex.md#multientry)
16
+ - [name](IRepositoryIndex.md#name)
17
+ - [path](IRepositoryIndex.md#path)
18
+ - [unique](IRepositoryIndex.md#unique)
19
+
20
+ ## Properties
21
+
22
+ ### multiEntry
23
+
24
+ • `Optional` **multiEntry**: `boolean`
25
+
26
+ #### Inherited from
27
+
28
+ IDBIndexParameters.multiEntry
29
+
30
+ #### Defined in
31
+
32
+ node_modules/typescript/lib/lib.dom.d.ts:583
33
+
34
+ ___
35
+
36
+ ### name
37
+
38
+ • **name**: `string`
39
+
40
+ #### Defined in
41
+
42
+ src/repository/indexeddb/IRepositoryIndex.ts:2
43
+
44
+ ___
45
+
46
+ ### path
47
+
48
+ • **path**: `string`
49
+
50
+ #### Defined in
51
+
52
+ src/repository/indexeddb/IRepositoryIndex.ts:3
53
+
54
+ ___
55
+
56
+ ### unique
57
+
58
+ • `Optional` **unique**: `boolean`
59
+
60
+ #### Inherited from
61
+
62
+ IDBIndexParameters.unique
63
+
64
+ #### Defined in
65
+
66
+ node_modules/typescript/lib/lib.dom.d.ts:584
@@ -15,6 +15,7 @@ Atributos enviados na requisição de carregamento dos registros
15
15
  - [parentRecordId](LoadDataRequest.md#parentrecordid)
16
16
  - [quickFilter](LoadDataRequest.md#quickfilter)
17
17
  - [sort](LoadDataRequest.md#sort)
18
+ - [source](LoadDataRequest.md#source)
18
19
 
19
20
  ## Properties
20
21
 
@@ -26,7 +27,7 @@ Filtros
26
27
 
27
28
  #### Defined in
28
29
 
29
- src/dataunit/loading/LoadDataRequest.ts:16
30
+ src/dataunit/loading/LoadDataRequest.ts:19
30
31
 
31
32
  ___
32
33
 
@@ -38,7 +39,7 @@ Na navegação de páginas devemos manter a seleção
38
39
 
39
40
  #### Defined in
40
41
 
41
- src/dataunit/loading/LoadDataRequest.ts:25
42
+ src/dataunit/loading/LoadDataRequest.ts:28
42
43
 
43
44
  ___
44
45
 
@@ -50,7 +51,7 @@ Quantidade de registros que será retornado
50
51
 
51
52
  #### Defined in
52
53
 
53
- src/dataunit/loading/LoadDataRequest.ts:10
54
+ src/dataunit/loading/LoadDataRequest.ts:13
54
55
 
55
56
  ___
56
57
 
@@ -62,7 +63,7 @@ Indice inicial dos registros que será retornado
62
63
 
63
64
  #### Defined in
64
65
 
65
- src/dataunit/loading/LoadDataRequest.ts:7
66
+ src/dataunit/loading/LoadDataRequest.ts:10
66
67
 
67
68
  ___
68
69
 
@@ -74,7 +75,7 @@ Info parent
74
75
 
75
76
  #### Defined in
76
77
 
77
- src/dataunit/loading/LoadDataRequest.ts:22
78
+ src/dataunit/loading/LoadDataRequest.ts:25
78
79
 
79
80
  ___
80
81
 
@@ -86,7 +87,7 @@ Filtro rápido
86
87
 
87
88
  #### Defined in
88
89
 
89
- src/dataunit/loading/LoadDataRequest.ts:13
90
+ src/dataunit/loading/LoadDataRequest.ts:16
90
91
 
91
92
  ___
92
93
 
@@ -98,4 +99,16 @@ Ordenação dos resultados
98
99
 
99
100
  #### Defined in
100
101
 
101
- src/dataunit/loading/LoadDataRequest.ts:19
102
+ src/dataunit/loading/LoadDataRequest.ts:22
103
+
104
+ ___
105
+
106
+ ### source
107
+
108
+ • `Optional` **source**: `String`
109
+
110
+ De onde partiu o refresh. Por padrão a fonte não é identificada
111
+
112
+ #### Defined in
113
+
114
+ src/dataunit/loading/LoadDataRequest.ts:7
@@ -18,7 +18,7 @@
18
18
 
19
19
  #### Defined in
20
20
 
21
- src/dataunit/DataUnit.ts:1790
21
+ src/dataunit/DataUnit.ts:1802
22
22
 
23
23
  ___
24
24
 
@@ -28,7 +28,7 @@ ___
28
28
 
29
29
  #### Defined in
30
30
 
31
- src/dataunit/DataUnit.ts:1791
31
+ src/dataunit/DataUnit.ts:1803
32
32
 
33
33
  ___
34
34
 
@@ -38,4 +38,4 @@ ___
38
38
 
39
39
  #### Defined in
40
40
 
41
- src/dataunit/DataUnit.ts:1792
41
+ src/dataunit/DataUnit.ts:1804