tinybase 8.3.0-beta.0 → 8.3.0-beta.2
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/@types/_internal/ui-solid/index.d.ts +0 -0
- package/@types/_internal/ui-solid/with-schemas/index.d.ts +1104 -0
- package/@types/persisters/index.d.ts +2 -2
- package/@types/persisters/with-schemas/index.d.ts +2 -2
- package/@types/queries/index.d.ts +141 -0
- package/@types/queries/with-schemas/index.d.ts +184 -0
- package/@types/ui-react/index.d.ts +6 -6
- package/@types/ui-react/with-schemas/index.d.ts +6 -6
- package/@types/ui-solid/index.d.ts +16336 -0
- package/@types/ui-solid/with-schemas/index.d.ts +16951 -0
- package/@types/ui-svelte/index.d.ts +6123 -80
- package/@types/ui-svelte/with-schemas/index.d.ts +7348 -89
- package/agents.md +3 -3
- package/index.js +594 -418
- package/indexes/index.js +8 -22
- package/indexes/with-schemas/index.js +8 -22
- package/metrics/index.js +8 -22
- package/metrics/with-schemas/index.js +8 -22
- package/min/index.js +1 -1
- package/min/index.js.gz +0 -0
- package/min/indexes/index.js +1 -1
- package/min/indexes/index.js.gz +0 -0
- package/min/indexes/with-schemas/index.js +1 -1
- package/min/indexes/with-schemas/index.js.gz +0 -0
- package/min/metrics/index.js +1 -1
- package/min/metrics/index.js.gz +0 -0
- package/min/metrics/with-schemas/index.js +1 -1
- package/min/metrics/with-schemas/index.js.gz +0 -0
- package/min/omni/index.js +1 -1
- package/min/omni/index.js.gz +0 -0
- package/min/omni/with-schemas/index.js +1 -1
- package/min/omni/with-schemas/index.js.gz +0 -0
- package/min/queries/index.js +1 -1
- package/min/queries/index.js.gz +0 -0
- package/min/queries/with-schemas/index.js +1 -1
- package/min/queries/with-schemas/index.js.gz +0 -0
- package/min/relationships/index.js +1 -1
- package/min/relationships/index.js.gz +0 -0
- package/min/relationships/with-schemas/index.js +1 -1
- package/min/relationships/with-schemas/index.js.gz +0 -0
- package/min/ui-react/index.js +1 -1
- package/min/ui-react/index.js.gz +0 -0
- package/min/ui-react/with-schemas/index.js +1 -1
- package/min/ui-react/with-schemas/index.js.gz +0 -0
- package/min/ui-solid/index.js +1 -0
- package/min/ui-solid/index.js.gz +0 -0
- package/min/ui-solid/with-schemas/index.js +1 -0
- package/min/ui-solid/with-schemas/index.js.gz +0 -0
- package/min/ui-svelte/index.js +1 -1
- package/min/ui-svelte/index.js.gz +0 -0
- package/min/ui-svelte/with-schemas/index.js +1 -1
- package/min/ui-svelte/with-schemas/index.js.gz +0 -0
- package/min/with-schemas/index.js +1 -1
- package/min/with-schemas/index.js.gz +0 -0
- package/omni/index.js +594 -418
- package/omni/with-schemas/index.js +594 -418
- package/package.json +53 -13
- package/queries/index.js +596 -454
- package/queries/with-schemas/index.js +596 -454
- package/readme.md +14 -14
- package/relationships/index.js +8 -22
- package/relationships/with-schemas/index.js +8 -22
- package/releases.md +51 -51
- package/ui-react/index.js +1 -1
- package/ui-react/with-schemas/index.js +1 -1
- package/ui-solid/index.js +2154 -0
- package/ui-solid/with-schemas/index.js +2154 -0
- package/ui-svelte/index.js +12 -5
- package/ui-svelte/with-schemas/index.js +12 -5
- package/ui-svelte-dom/index.js +2 -2
- package/ui-svelte-dom/with-schemas/index.js +2 -2
- package/ui-svelte-inspector/index.js +2 -2
- package/ui-svelte-inspector/with-schemas/index.js +2 -2
- package/with-schemas/index.js +594 -418
|
@@ -0,0 +1,1104 @@
|
|
|
1
|
+
import type {Component, JSXElement} from 'solid-js';
|
|
2
|
+
import type {Checkpoints} from '../../../checkpoints/with-schemas/index.d.ts';
|
|
3
|
+
import type {Callback, Id} from '../../../common/with-schemas/index.d.ts';
|
|
4
|
+
import type {Indexes} from '../../../indexes/with-schemas/index.d.ts';
|
|
5
|
+
import type {Metrics} from '../../../metrics/with-schemas/index.d.ts';
|
|
6
|
+
import type {
|
|
7
|
+
Persister,
|
|
8
|
+
Persists,
|
|
9
|
+
} from '../../../persisters/with-schemas/index.d.ts';
|
|
10
|
+
import type {Queries} from '../../../queries/with-schemas/index.d.ts';
|
|
11
|
+
import type {Relationships} from '../../../relationships/with-schemas/index.d.ts';
|
|
12
|
+
import type {
|
|
13
|
+
OptionalSchemas,
|
|
14
|
+
Store,
|
|
15
|
+
} from '../../../store/with-schemas/index.d.ts';
|
|
16
|
+
import type {Synchronizer} from '../../../synchronizers/with-schemas/index.d.ts';
|
|
17
|
+
import type {
|
|
18
|
+
CellIdFromSchema,
|
|
19
|
+
TableIdFromSchema,
|
|
20
|
+
ValueIdFromSchema,
|
|
21
|
+
} from '../../store/with-schemas/index.d.ts';
|
|
22
|
+
import type {
|
|
23
|
+
CheckpointsOrCheckpointsId,
|
|
24
|
+
IndexesOrIndexesId,
|
|
25
|
+
MetricsOrMetricsId,
|
|
26
|
+
QueriesOrQueriesId,
|
|
27
|
+
RelationshipsOrRelationshipsId,
|
|
28
|
+
StoreOrStoreId,
|
|
29
|
+
} from '../../ui/with-schemas/index.d.ts';
|
|
30
|
+
|
|
31
|
+
export type UndoOrRedoInformation = [boolean, Callback, Id | undefined, string];
|
|
32
|
+
|
|
33
|
+
export type GetId<Schemas extends OptionalSchemas, Parameter, Id> = (
|
|
34
|
+
parameter: Parameter,
|
|
35
|
+
store: Store<Schemas>,
|
|
36
|
+
) => Id;
|
|
37
|
+
|
|
38
|
+
export type ExtraProps = {[propName: string]: any};
|
|
39
|
+
|
|
40
|
+
export type TablesProps<Schemas extends OptionalSchemas> = {
|
|
41
|
+
/**
|
|
42
|
+
* The Store to be accessed: omit for the default context Store, provide an Id
|
|
43
|
+
* for a named context Store, or provide an explicit reference.
|
|
44
|
+
* @category Props
|
|
45
|
+
* @since v8.3.0
|
|
46
|
+
*/
|
|
47
|
+
readonly store?: StoreOrStoreId<Schemas>;
|
|
48
|
+
/**
|
|
49
|
+
* A component for rendering each Table in the Store (to override the default
|
|
50
|
+
* TableView component).
|
|
51
|
+
* @category Props
|
|
52
|
+
* @since v8.3.0
|
|
53
|
+
*/
|
|
54
|
+
readonly tableComponent?: Component<TableProps<Schemas>>;
|
|
55
|
+
/**
|
|
56
|
+
* A custom function for generating extra props for each Table component based
|
|
57
|
+
* on its Id.
|
|
58
|
+
* @category Props
|
|
59
|
+
* @since v8.3.0
|
|
60
|
+
*/
|
|
61
|
+
readonly getTableComponentProps?: (tableId: Id) => ExtraProps;
|
|
62
|
+
/**
|
|
63
|
+
* A component or string to separate each Table component.
|
|
64
|
+
* @category Props
|
|
65
|
+
* @since v8.3.0
|
|
66
|
+
*/
|
|
67
|
+
readonly separator?: JSXElement | string;
|
|
68
|
+
/**
|
|
69
|
+
* Whether the component should also render the Ids of each Table, and its
|
|
70
|
+
* descendent objects, to assist with debugging.
|
|
71
|
+
* @category Props
|
|
72
|
+
* @since v8.3.0
|
|
73
|
+
*/
|
|
74
|
+
readonly debugIds?: boolean;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export type TableProps<
|
|
78
|
+
Schemas extends OptionalSchemas,
|
|
79
|
+
TableIds extends TableIdFromSchema<Schemas[0]> = TableIdFromSchema<
|
|
80
|
+
Schemas[0]
|
|
81
|
+
>,
|
|
82
|
+
> = TableIds extends infer TableId
|
|
83
|
+
? TableId extends TableIdFromSchema<Schemas[0]>
|
|
84
|
+
? {
|
|
85
|
+
/**
|
|
86
|
+
* The Id of the Table in the Store to be rendered.
|
|
87
|
+
* @category Props
|
|
88
|
+
* @since v8.3.0
|
|
89
|
+
*/
|
|
90
|
+
readonly tableId: TableId;
|
|
91
|
+
/**
|
|
92
|
+
* The Store to be accessed: omit for the default context Store, provide an Id
|
|
93
|
+
* for a named context Store, or provide an explicit reference.
|
|
94
|
+
* @category Props
|
|
95
|
+
* @since v8.3.0
|
|
96
|
+
*/
|
|
97
|
+
readonly store?: StoreOrStoreId<Schemas>;
|
|
98
|
+
/**
|
|
99
|
+
* A custom component for rendering each Row in the Table (to override the
|
|
100
|
+
* default RowView component).
|
|
101
|
+
* @category Props
|
|
102
|
+
* @since v8.3.0
|
|
103
|
+
*/
|
|
104
|
+
readonly rowComponent?: Component<RowProps<Schemas, TableId>>;
|
|
105
|
+
/**
|
|
106
|
+
* A function for generating extra props for each custom Row component based on
|
|
107
|
+
* its Id.
|
|
108
|
+
* @category Props
|
|
109
|
+
* @since v8.3.0
|
|
110
|
+
*/
|
|
111
|
+
readonly getRowComponentProps?: (rowId: Id) => ExtraProps;
|
|
112
|
+
/**
|
|
113
|
+
* An optional list of Cell Ids to use for rendering a prescribed set of the
|
|
114
|
+
* Table's Cells in a given order.
|
|
115
|
+
* @category Props
|
|
116
|
+
* @since v8.3.0
|
|
117
|
+
*/
|
|
118
|
+
readonly customCellIds?: CellIdFromSchema<Schemas[0], TableId>[];
|
|
119
|
+
/**
|
|
120
|
+
* A component or string to separate each Row component.
|
|
121
|
+
* @category Props
|
|
122
|
+
* @since v8.3.0
|
|
123
|
+
*/
|
|
124
|
+
readonly separator?: JSXElement | string;
|
|
125
|
+
/**
|
|
126
|
+
* Whether the component should also render the Id of the Table, and its
|
|
127
|
+
* descendent objects, to assist with debugging.
|
|
128
|
+
* @category Props
|
|
129
|
+
* @since v8.3.0
|
|
130
|
+
*/
|
|
131
|
+
readonly debugIds?: boolean;
|
|
132
|
+
}
|
|
133
|
+
: never
|
|
134
|
+
: never;
|
|
135
|
+
|
|
136
|
+
export type SortedTableProps<
|
|
137
|
+
Schemas extends OptionalSchemas,
|
|
138
|
+
TableIds extends TableIdFromSchema<Schemas[0]> = TableIdFromSchema<
|
|
139
|
+
Schemas[0]
|
|
140
|
+
>,
|
|
141
|
+
> = TableIds extends infer TableId
|
|
142
|
+
? TableId extends TableIdFromSchema<Schemas[0]>
|
|
143
|
+
? {
|
|
144
|
+
/**
|
|
145
|
+
* The Id of the Table in the Store to be rendered.
|
|
146
|
+
* @category Props
|
|
147
|
+
* @since v8.3.0
|
|
148
|
+
*/
|
|
149
|
+
readonly tableId: TableId;
|
|
150
|
+
/**
|
|
151
|
+
* The Id of the Cell whose values are used for the sorting. If omitted, the
|
|
152
|
+
* view will sort the Row Id itself.
|
|
153
|
+
* @category Props
|
|
154
|
+
* @since v8.3.0
|
|
155
|
+
*/
|
|
156
|
+
readonly cellId?: CellIdFromSchema<Schemas[0], TableId>;
|
|
157
|
+
/**
|
|
158
|
+
* Whether the sorting should be in descending order.
|
|
159
|
+
* @category Props
|
|
160
|
+
* @since v8.3.0
|
|
161
|
+
*/
|
|
162
|
+
readonly descending?: boolean;
|
|
163
|
+
/**
|
|
164
|
+
* The number of Row Ids to skip for pagination purposes.
|
|
165
|
+
* @category Props
|
|
166
|
+
* @since v8.3.0
|
|
167
|
+
*/
|
|
168
|
+
readonly offset?: number;
|
|
169
|
+
/**
|
|
170
|
+
* The maximum number of Row Ids to return.
|
|
171
|
+
* @category Props
|
|
172
|
+
* @since v8.3.0
|
|
173
|
+
*/
|
|
174
|
+
readonly limit?: number;
|
|
175
|
+
/**
|
|
176
|
+
* The Store to be accessed: omit for the default context Store, provide an Id
|
|
177
|
+
* for a named context Store, or provide an explicit reference.
|
|
178
|
+
* @category Props
|
|
179
|
+
* @since v8.3.0
|
|
180
|
+
*/
|
|
181
|
+
readonly store?: StoreOrStoreId<Schemas>;
|
|
182
|
+
/**
|
|
183
|
+
* A custom component for rendering each Row in the Table (to override the
|
|
184
|
+
* default RowView component).
|
|
185
|
+
* @category Props
|
|
186
|
+
* @since v8.3.0
|
|
187
|
+
*/
|
|
188
|
+
readonly rowComponent?: Component<RowProps<Schemas, TableId>>;
|
|
189
|
+
/**
|
|
190
|
+
* A function for generating extra props for each custom Row component based on
|
|
191
|
+
* its Id.
|
|
192
|
+
* @category Props
|
|
193
|
+
* @since v8.3.0
|
|
194
|
+
*/
|
|
195
|
+
readonly getRowComponentProps?: (rowId: Id) => ExtraProps;
|
|
196
|
+
/**
|
|
197
|
+
* An optional list of Cell Ids to use for rendering a prescribed set of the
|
|
198
|
+
* sorted Table's Cells in a given order.
|
|
199
|
+
* @category Props
|
|
200
|
+
* @since v8.3.0
|
|
201
|
+
*/
|
|
202
|
+
readonly customCellIds?: CellIdFromSchema<Schemas[0], TableId>[];
|
|
203
|
+
/**
|
|
204
|
+
* A component or string to separate each Row component.
|
|
205
|
+
* @category Props
|
|
206
|
+
* @since v8.3.0
|
|
207
|
+
*/
|
|
208
|
+
readonly separator?: JSXElement | string;
|
|
209
|
+
/**
|
|
210
|
+
* Whether the component should also render the Id of the Table, and its
|
|
211
|
+
* descendent objects, to assist with debugging.
|
|
212
|
+
* @category Props
|
|
213
|
+
* @since v8.3.0
|
|
214
|
+
*/
|
|
215
|
+
readonly debugIds?: boolean;
|
|
216
|
+
}
|
|
217
|
+
: never
|
|
218
|
+
: never;
|
|
219
|
+
|
|
220
|
+
export type RowProps<
|
|
221
|
+
Schemas extends OptionalSchemas,
|
|
222
|
+
TableIds extends TableIdFromSchema<Schemas[0]> = TableIdFromSchema<
|
|
223
|
+
Schemas[0]
|
|
224
|
+
>,
|
|
225
|
+
> = TableIds extends infer TableId
|
|
226
|
+
? TableId extends TableIdFromSchema<Schemas[0]>
|
|
227
|
+
? {
|
|
228
|
+
/**
|
|
229
|
+
* The Id of the Table in the Store.
|
|
230
|
+
* @category Props
|
|
231
|
+
* @since v8.3.0
|
|
232
|
+
*/
|
|
233
|
+
readonly tableId: TableId;
|
|
234
|
+
/**
|
|
235
|
+
* The Id of the Row in the Table to be rendered.
|
|
236
|
+
* @category Props
|
|
237
|
+
* @since v8.3.0
|
|
238
|
+
*/
|
|
239
|
+
readonly rowId: Id;
|
|
240
|
+
/**
|
|
241
|
+
* The Store to be accessed: omit for the default context Store, provide an Id
|
|
242
|
+
* for a named context Store, or provide an explicit reference.
|
|
243
|
+
* @category Props
|
|
244
|
+
* @since v8.3.0
|
|
245
|
+
*/
|
|
246
|
+
readonly store?: StoreOrStoreId<Schemas>;
|
|
247
|
+
/**
|
|
248
|
+
* A custom component for rendering each Cell in the Row (to override the
|
|
249
|
+
* default CellView component).
|
|
250
|
+
* @category Props
|
|
251
|
+
* @since v8.3.0
|
|
252
|
+
*/
|
|
253
|
+
readonly cellComponent?: Component<CellProps<Schemas, TableId>>;
|
|
254
|
+
/**
|
|
255
|
+
* A function for generating extra props for each custom Cell component based on
|
|
256
|
+
* its Id.
|
|
257
|
+
* @category Props
|
|
258
|
+
* @since v8.3.0
|
|
259
|
+
*/
|
|
260
|
+
readonly getCellComponentProps?: (cellId: Id) => ExtraProps;
|
|
261
|
+
/**
|
|
262
|
+
* An optional list of Cell Ids to use for rendering a prescribed set of the
|
|
263
|
+
* Row's Cells in a given order.
|
|
264
|
+
* @category Props
|
|
265
|
+
* @since v8.3.0
|
|
266
|
+
*/
|
|
267
|
+
readonly customCellIds?: CellIdFromSchema<Schemas[0], TableId>[];
|
|
268
|
+
/**
|
|
269
|
+
* A component or string to separate each Cell component.
|
|
270
|
+
* @category Props
|
|
271
|
+
* @since v8.3.0
|
|
272
|
+
*/
|
|
273
|
+
readonly separator?: JSXElement | string;
|
|
274
|
+
/**
|
|
275
|
+
* Whether the component should also render the Id of the Row, and its
|
|
276
|
+
* descendent objects, to assist with debugging.
|
|
277
|
+
* @category Props
|
|
278
|
+
* @since v8.3.0
|
|
279
|
+
*/
|
|
280
|
+
readonly debugIds?: boolean;
|
|
281
|
+
}
|
|
282
|
+
: never
|
|
283
|
+
: never;
|
|
284
|
+
|
|
285
|
+
export type CellProps<
|
|
286
|
+
Schemas extends OptionalSchemas,
|
|
287
|
+
TableIds extends TableIdFromSchema<Schemas[0]> = TableIdFromSchema<
|
|
288
|
+
Schemas[0]
|
|
289
|
+
>,
|
|
290
|
+
> = TableIds extends infer TableId
|
|
291
|
+
? TableId extends TableIdFromSchema<Schemas[0]>
|
|
292
|
+
? CellPropsForTableIdAndCellId<
|
|
293
|
+
Schemas,
|
|
294
|
+
TableId,
|
|
295
|
+
CellIdFromSchema<Schemas[0], TableId>
|
|
296
|
+
>
|
|
297
|
+
: never
|
|
298
|
+
: never;
|
|
299
|
+
|
|
300
|
+
export type CellPropsForTableIdAndCellId<
|
|
301
|
+
Schemas extends OptionalSchemas,
|
|
302
|
+
TableId extends TableIdFromSchema<Schemas[0]>,
|
|
303
|
+
CellId extends CellIdFromSchema<Schemas[0], TableId>,
|
|
304
|
+
> = {
|
|
305
|
+
/**
|
|
306
|
+
* The Id of the Table in the Store.
|
|
307
|
+
* @category Props
|
|
308
|
+
* @since v8.3.0
|
|
309
|
+
*/
|
|
310
|
+
readonly tableId: TableId;
|
|
311
|
+
/**
|
|
312
|
+
* The Id of the Row in the Table.
|
|
313
|
+
* @category Props
|
|
314
|
+
* @since v8.3.0
|
|
315
|
+
*/
|
|
316
|
+
readonly rowId: Id;
|
|
317
|
+
/**
|
|
318
|
+
* The Id of the Cell in the Row to be rendered.
|
|
319
|
+
* @category Props
|
|
320
|
+
* @since v8.3.0
|
|
321
|
+
*/
|
|
322
|
+
readonly cellId: CellId;
|
|
323
|
+
/**
|
|
324
|
+
* The Store to be accessed: omit for the default context Store, provide an Id
|
|
325
|
+
* for a named context Store, or provide an explicit reference.
|
|
326
|
+
* @category Props
|
|
327
|
+
* @since v8.3.0
|
|
328
|
+
*/
|
|
329
|
+
readonly store?: StoreOrStoreId<Schemas>;
|
|
330
|
+
/**
|
|
331
|
+
* Whether the component should also render the Id of the Cell to assist with
|
|
332
|
+
* debugging.
|
|
333
|
+
* @category Props
|
|
334
|
+
* @since v8.3.0
|
|
335
|
+
*/
|
|
336
|
+
readonly debugIds?: boolean;
|
|
337
|
+
};
|
|
338
|
+
|
|
339
|
+
export type ValuesProps<Schemas extends OptionalSchemas> = {
|
|
340
|
+
/**
|
|
341
|
+
* The Store to be accessed: omit for the default context Store, provide an Id
|
|
342
|
+
* for a named context Store, or provide an explicit reference.
|
|
343
|
+
* @category Props
|
|
344
|
+
* @since v8.3.0
|
|
345
|
+
*/
|
|
346
|
+
readonly store?: StoreOrStoreId<Schemas>;
|
|
347
|
+
/**
|
|
348
|
+
* A custom component for rendering each Value in the Store (to override the
|
|
349
|
+
* default ValueView component).
|
|
350
|
+
* @category Props
|
|
351
|
+
* @since v8.3.0
|
|
352
|
+
*/
|
|
353
|
+
readonly valueComponent?: Component<ValueProps<Schemas>>;
|
|
354
|
+
/**
|
|
355
|
+
* A function for generating extra props for each custom Value component based
|
|
356
|
+
* on its Id.
|
|
357
|
+
* @category Props
|
|
358
|
+
* @since v8.3.0
|
|
359
|
+
*/
|
|
360
|
+
readonly getValueComponentProps?: (valueId: Id) => ExtraProps;
|
|
361
|
+
/**
|
|
362
|
+
* A component or string to separate each Value component.
|
|
363
|
+
* @category Props
|
|
364
|
+
* @since v8.3.0
|
|
365
|
+
*/
|
|
366
|
+
readonly separator?: JSXElement | string;
|
|
367
|
+
/**
|
|
368
|
+
* Whether the component should also render the Ids of each Value to assist with
|
|
369
|
+
* debugging.
|
|
370
|
+
* @category Props
|
|
371
|
+
* @since v8.3.0
|
|
372
|
+
*/
|
|
373
|
+
readonly debugIds?: boolean;
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
export type ValueProps<Schemas extends OptionalSchemas> = {
|
|
377
|
+
/**
|
|
378
|
+
* The Id of the Value in the Row to be rendered.
|
|
379
|
+
* @category Props
|
|
380
|
+
* @since v8.3.0
|
|
381
|
+
*/
|
|
382
|
+
readonly valueId: ValueIdFromSchema<Schemas[1]>;
|
|
383
|
+
/**
|
|
384
|
+
* The Store to be accessed: omit for the default context Store, provide an Id
|
|
385
|
+
* for a named context Store, or provide an explicit reference.
|
|
386
|
+
* @category Props
|
|
387
|
+
* @since v8.3.0
|
|
388
|
+
*/
|
|
389
|
+
readonly store?: StoreOrStoreId<Schemas>;
|
|
390
|
+
/**
|
|
391
|
+
* Whether the component should also render the Id of the Value to assist with
|
|
392
|
+
* debugging.
|
|
393
|
+
* @category Props
|
|
394
|
+
* @since v8.3.0
|
|
395
|
+
*/
|
|
396
|
+
readonly debugIds?: boolean;
|
|
397
|
+
};
|
|
398
|
+
|
|
399
|
+
export type MetricProps<Schemas extends OptionalSchemas> = {
|
|
400
|
+
/**
|
|
401
|
+
* The Id of the Metric in the Metrics object to be rendered.
|
|
402
|
+
* @category Props
|
|
403
|
+
* @since v8.3.0
|
|
404
|
+
*/
|
|
405
|
+
readonly metricId: Id;
|
|
406
|
+
/**
|
|
407
|
+
* The Metrics object to be accessed: omit for the default context Metrics
|
|
408
|
+
* object, provide an Id for a named context Metrics object, or provide an
|
|
409
|
+
* explicit reference.
|
|
410
|
+
* @category Props
|
|
411
|
+
* @since v8.3.0
|
|
412
|
+
*/
|
|
413
|
+
readonly metrics?: MetricsOrMetricsId<Schemas>;
|
|
414
|
+
/**
|
|
415
|
+
* Whether the component should also render the Id of the Metric to assist with
|
|
416
|
+
* debugging.
|
|
417
|
+
* @category Props
|
|
418
|
+
* @since v8.3.0
|
|
419
|
+
*/
|
|
420
|
+
readonly debugIds?: boolean;
|
|
421
|
+
};
|
|
422
|
+
|
|
423
|
+
export type IndexProps<Schemas extends OptionalSchemas> = {
|
|
424
|
+
/**
|
|
425
|
+
* The Id of the Index in the Indexes object to be rendered.
|
|
426
|
+
* @category Props
|
|
427
|
+
* @since v8.3.0
|
|
428
|
+
*/
|
|
429
|
+
readonly indexId: Id;
|
|
430
|
+
/**
|
|
431
|
+
* The Indexes object to be accessed: omit for the default context Indexes
|
|
432
|
+
* object, provide an Id for a named context Indexes object, or provide an
|
|
433
|
+
* explicit reference.
|
|
434
|
+
* @category Props
|
|
435
|
+
* @since v8.3.0
|
|
436
|
+
*/
|
|
437
|
+
readonly indexes?: IndexesOrIndexesId<Schemas>;
|
|
438
|
+
/**
|
|
439
|
+
* A component for rendering each Slice in the Index.
|
|
440
|
+
* @category Props
|
|
441
|
+
* @since v8.3.0
|
|
442
|
+
*/
|
|
443
|
+
readonly sliceComponent?: Component<SliceProps<Schemas>>;
|
|
444
|
+
/**
|
|
445
|
+
* A function for generating extra props for each Slice component based on its
|
|
446
|
+
* Id.
|
|
447
|
+
* @category Props
|
|
448
|
+
* @since v8.3.0
|
|
449
|
+
*/
|
|
450
|
+
readonly getSliceComponentProps?: (sliceId: Id) => ExtraProps;
|
|
451
|
+
/**
|
|
452
|
+
* A component or string to separate each Slice component.
|
|
453
|
+
* @category Props
|
|
454
|
+
* @since v8.3.0
|
|
455
|
+
*/
|
|
456
|
+
readonly separator?: JSXElement | string;
|
|
457
|
+
/**
|
|
458
|
+
* Whether the component should also render the Id of the Index, and its
|
|
459
|
+
* descendent objects, to assist with debugging.
|
|
460
|
+
* @category Props
|
|
461
|
+
* @since v8.3.0
|
|
462
|
+
*/
|
|
463
|
+
readonly debugIds?: boolean;
|
|
464
|
+
};
|
|
465
|
+
|
|
466
|
+
export type SliceProps<Schemas extends OptionalSchemas> = {
|
|
467
|
+
/**
|
|
468
|
+
* The Id of the Index in the Indexes object.
|
|
469
|
+
* @category Props
|
|
470
|
+
* @since v8.3.0
|
|
471
|
+
*/
|
|
472
|
+
readonly indexId: Id;
|
|
473
|
+
/**
|
|
474
|
+
* The Id of the Slice in the Index to be rendered.
|
|
475
|
+
* @category Props
|
|
476
|
+
* @since v8.3.0
|
|
477
|
+
*/
|
|
478
|
+
readonly sliceId: Id;
|
|
479
|
+
/**
|
|
480
|
+
* The Indexes object to be accessed: omit for the default context Indexes
|
|
481
|
+
* object, provide an Id for a named context Indexes object, or provide an
|
|
482
|
+
* explicit reference.
|
|
483
|
+
* @category Props
|
|
484
|
+
* @since v8.3.0
|
|
485
|
+
*/
|
|
486
|
+
readonly indexes?: IndexesOrIndexesId<Schemas>;
|
|
487
|
+
/**
|
|
488
|
+
* A component for rendering each Row in the Index.
|
|
489
|
+
* @category Props
|
|
490
|
+
* @since v8.3.0
|
|
491
|
+
*/
|
|
492
|
+
readonly rowComponent?: Component<RowProps<Schemas>>;
|
|
493
|
+
/**
|
|
494
|
+
* A function for generating extra props for each Row component based on its Id.
|
|
495
|
+
* @category Props
|
|
496
|
+
* @since v8.3.0
|
|
497
|
+
*/
|
|
498
|
+
readonly getRowComponentProps?: (rowId: Id) => ExtraProps;
|
|
499
|
+
/**
|
|
500
|
+
* A component or string to separate each Row component.
|
|
501
|
+
* @category Props
|
|
502
|
+
* @since v8.3.0
|
|
503
|
+
*/
|
|
504
|
+
readonly separator?: JSXElement | string;
|
|
505
|
+
/**
|
|
506
|
+
* Whether the component should also render the Id of the Slice, and its
|
|
507
|
+
* descendent objects, to assist with debugging.
|
|
508
|
+
* @category Props
|
|
509
|
+
* @since v8.3.0
|
|
510
|
+
*/
|
|
511
|
+
readonly debugIds?: boolean;
|
|
512
|
+
};
|
|
513
|
+
|
|
514
|
+
export type RemoteRowProps<Schemas extends OptionalSchemas> = {
|
|
515
|
+
/**
|
|
516
|
+
* The Id of the Relationship in the Relationships object.
|
|
517
|
+
* @category Props
|
|
518
|
+
* @since v8.3.0
|
|
519
|
+
*/
|
|
520
|
+
readonly relationshipId: Id;
|
|
521
|
+
/**
|
|
522
|
+
* The Id of the local Row for which to render the remote Row.
|
|
523
|
+
* @category Props
|
|
524
|
+
* @since v8.3.0
|
|
525
|
+
*/
|
|
526
|
+
readonly localRowId: Id;
|
|
527
|
+
/**
|
|
528
|
+
* The Relationships object to be accessed: omit for the default context
|
|
529
|
+
* Relationships object, provide an Id for a named context Relationships object,
|
|
530
|
+
* or provide an explicit reference.
|
|
531
|
+
* @category Props
|
|
532
|
+
* @since v8.3.0
|
|
533
|
+
*/
|
|
534
|
+
readonly relationships?: RelationshipsOrRelationshipsId<Schemas>;
|
|
535
|
+
/**
|
|
536
|
+
* A component for rendering each (remote, local, or linked) Row in the
|
|
537
|
+
* Relationship.
|
|
538
|
+
* @category Props
|
|
539
|
+
* @since v8.3.0
|
|
540
|
+
*/
|
|
541
|
+
readonly rowComponent?: Component<RowProps<Schemas>>;
|
|
542
|
+
/**
|
|
543
|
+
* A function for generating extra props for each Row component based on its Id.
|
|
544
|
+
* @category Props
|
|
545
|
+
* @since v8.3.0
|
|
546
|
+
*/
|
|
547
|
+
readonly getRowComponentProps?: (rowId: Id) => ExtraProps;
|
|
548
|
+
/**
|
|
549
|
+
* Whether the component should also render the Id of the Row in the
|
|
550
|
+
* Relationship, and its descendent objects, to assist with debugging.
|
|
551
|
+
* @category Props
|
|
552
|
+
* @since v8.3.0
|
|
553
|
+
*/
|
|
554
|
+
readonly debugIds?: boolean;
|
|
555
|
+
};
|
|
556
|
+
|
|
557
|
+
export type LocalRowsProps<Schemas extends OptionalSchemas> = {
|
|
558
|
+
/**
|
|
559
|
+
* The Id of the Relationship in the Relationships object.
|
|
560
|
+
* @category Props
|
|
561
|
+
* @since v8.3.0
|
|
562
|
+
*/
|
|
563
|
+
readonly relationshipId: Id;
|
|
564
|
+
/**
|
|
565
|
+
* The Id of the remote Row for which to render the local Rows.
|
|
566
|
+
* @category Props
|
|
567
|
+
* @since v8.3.0
|
|
568
|
+
*/
|
|
569
|
+
readonly remoteRowId: Id;
|
|
570
|
+
/**
|
|
571
|
+
* The Relationships object to be accessed: omit for the default context
|
|
572
|
+
* Relationships object, provide an Id for a named context Relationships object,
|
|
573
|
+
* or provide an explicit reference.
|
|
574
|
+
* @category Props
|
|
575
|
+
* @since v8.3.0
|
|
576
|
+
*/
|
|
577
|
+
readonly relationships?: RelationshipsOrRelationshipsId<Schemas>;
|
|
578
|
+
/**
|
|
579
|
+
* A component for rendering each (remote, local, or linked) Row in the
|
|
580
|
+
* Relationship.
|
|
581
|
+
* @category Props
|
|
582
|
+
* @since v8.3.0
|
|
583
|
+
*/
|
|
584
|
+
readonly rowComponent?: Component<RowProps<Schemas>>;
|
|
585
|
+
/**
|
|
586
|
+
* A function for generating extra props for each Row component based on its Id.
|
|
587
|
+
* @category Props
|
|
588
|
+
* @since v8.3.0
|
|
589
|
+
*/
|
|
590
|
+
readonly getRowComponentProps?: (rowId: Id) => ExtraProps;
|
|
591
|
+
/**
|
|
592
|
+
* A component or string to separate each Row component.
|
|
593
|
+
* @category Props
|
|
594
|
+
* @since v8.3.0
|
|
595
|
+
*/
|
|
596
|
+
readonly separator?: JSXElement | string;
|
|
597
|
+
/**
|
|
598
|
+
* Whether the component should also render the Id of the Row in the
|
|
599
|
+
* Relationship, and its descendent objects, to assist with debugging.
|
|
600
|
+
* @category Props
|
|
601
|
+
* @since v8.3.0
|
|
602
|
+
*/
|
|
603
|
+
readonly debugIds?: boolean;
|
|
604
|
+
};
|
|
605
|
+
|
|
606
|
+
export type LinkedRowsProps<Schemas extends OptionalSchemas> = {
|
|
607
|
+
/**
|
|
608
|
+
* The Id of the Relationship in the Relationships object.
|
|
609
|
+
* @category Props
|
|
610
|
+
* @since v8.3.0
|
|
611
|
+
*/
|
|
612
|
+
readonly relationshipId: Id;
|
|
613
|
+
/**
|
|
614
|
+
* The Id of the first Row in the linked list Relationship.
|
|
615
|
+
* @category Props
|
|
616
|
+
* @since v8.3.0
|
|
617
|
+
*/
|
|
618
|
+
readonly firstRowId: Id;
|
|
619
|
+
/**
|
|
620
|
+
* The Relationships object to be accessed: omit for the default context
|
|
621
|
+
* Relationships object, provide an Id for a named context Relationships object,
|
|
622
|
+
* or provide an explicit reference.
|
|
623
|
+
* @category Props
|
|
624
|
+
* @since v8.3.0
|
|
625
|
+
*/
|
|
626
|
+
readonly relationships?: RelationshipsOrRelationshipsId<Schemas>;
|
|
627
|
+
/**
|
|
628
|
+
* A component for rendering each (remote, local, or linked) Row in the
|
|
629
|
+
* Relationship.
|
|
630
|
+
* @category Props
|
|
631
|
+
* @since v8.3.0
|
|
632
|
+
*/
|
|
633
|
+
readonly rowComponent?: Component<RowProps<Schemas>>;
|
|
634
|
+
/**
|
|
635
|
+
* A function for generating extra props for each Row component based on its Id.
|
|
636
|
+
* @category Props
|
|
637
|
+
* @since v8.3.0
|
|
638
|
+
*/
|
|
639
|
+
readonly getRowComponentProps?: (rowId: Id) => ExtraProps;
|
|
640
|
+
/**
|
|
641
|
+
* A component or string to separate each Row component.
|
|
642
|
+
* @category Props
|
|
643
|
+
* @since v8.3.0
|
|
644
|
+
*/
|
|
645
|
+
readonly separator?: JSXElement | string;
|
|
646
|
+
/**
|
|
647
|
+
* Whether the component should also render the Id of the Row in the
|
|
648
|
+
* Relationship, and its descendent objects, to assist with debugging.
|
|
649
|
+
* @category Props
|
|
650
|
+
* @since v8.3.0
|
|
651
|
+
*/
|
|
652
|
+
readonly debugIds?: boolean;
|
|
653
|
+
};
|
|
654
|
+
|
|
655
|
+
export type ResultTableProps<Schemas extends OptionalSchemas> = {
|
|
656
|
+
/**
|
|
657
|
+
* The Id of the query in the Queries object for which the ResultTable will be
|
|
658
|
+
* rendered.
|
|
659
|
+
* @category Props
|
|
660
|
+
* @since v8.3.0
|
|
661
|
+
*/
|
|
662
|
+
readonly queryId: Id;
|
|
663
|
+
/**
|
|
664
|
+
* The Queries object to be accessed: omit for the default context Queries
|
|
665
|
+
* object, provide an Id for a named context Queries object, or provide an
|
|
666
|
+
* explicit reference.
|
|
667
|
+
* @category Props
|
|
668
|
+
* @since v8.3.0
|
|
669
|
+
*/
|
|
670
|
+
readonly queries?: QueriesOrQueriesId<Schemas>;
|
|
671
|
+
/**
|
|
672
|
+
* A custom component for rendering each Row in the Table (to override the
|
|
673
|
+
* default ResultRowView component).
|
|
674
|
+
* @category Props
|
|
675
|
+
* @since v8.3.0
|
|
676
|
+
*/
|
|
677
|
+
readonly resultRowComponent?: Component<ResultRowProps<Schemas>>;
|
|
678
|
+
/**
|
|
679
|
+
* A function for generating extra props for each custom Row component based on
|
|
680
|
+
* its Id.
|
|
681
|
+
* @category Props
|
|
682
|
+
* @since v8.3.0
|
|
683
|
+
*/
|
|
684
|
+
readonly getResultRowComponentProps?: (rowId: Id) => ExtraProps;
|
|
685
|
+
/**
|
|
686
|
+
* A component or string to separate each Row component.
|
|
687
|
+
* @category Props
|
|
688
|
+
* @since v8.3.0
|
|
689
|
+
*/
|
|
690
|
+
readonly separator?: JSXElement | string;
|
|
691
|
+
/**
|
|
692
|
+
* Whether the component should also render the Id of the query, and its
|
|
693
|
+
* descendent objects, to assist with debugging.
|
|
694
|
+
* @category Props
|
|
695
|
+
* @since v8.3.0
|
|
696
|
+
*/
|
|
697
|
+
readonly debugIds?: boolean;
|
|
698
|
+
};
|
|
699
|
+
|
|
700
|
+
export type ResultSortedTableProps<Schemas extends OptionalSchemas> = {
|
|
701
|
+
/**
|
|
702
|
+
* The Id of the query in the Queries object for which the sorted ResultTable
|
|
703
|
+
* will be rendered.
|
|
704
|
+
* @category Props
|
|
705
|
+
* @since v8.3.0
|
|
706
|
+
*/
|
|
707
|
+
readonly queryId: Id;
|
|
708
|
+
/**
|
|
709
|
+
* The Id of the Cell whose values are used for the sorting. If omitted, the
|
|
710
|
+
* view will sort the Row Id itself.
|
|
711
|
+
* @category Props
|
|
712
|
+
* @since v8.3.0
|
|
713
|
+
*/
|
|
714
|
+
readonly cellId?: Id;
|
|
715
|
+
/**
|
|
716
|
+
* Whether the sorting should be in descending order.
|
|
717
|
+
* @category Props
|
|
718
|
+
* @since v8.3.0
|
|
719
|
+
*/
|
|
720
|
+
readonly descending?: boolean;
|
|
721
|
+
/**
|
|
722
|
+
* The number of Row Ids to skip for pagination purposes.
|
|
723
|
+
* @category Props
|
|
724
|
+
* @since v8.3.0
|
|
725
|
+
*/
|
|
726
|
+
readonly offset?: number;
|
|
727
|
+
/**
|
|
728
|
+
* The maximum number of Row Ids to return.
|
|
729
|
+
* @category Props
|
|
730
|
+
* @since v8.3.0
|
|
731
|
+
*/
|
|
732
|
+
readonly limit?: number;
|
|
733
|
+
/**
|
|
734
|
+
* The Queries object to be accessed: omit for the default context Queries
|
|
735
|
+
* object, provide an Id for a named context Queries object, or provide an
|
|
736
|
+
* explicit reference.
|
|
737
|
+
* @category Props
|
|
738
|
+
* @since v8.3.0
|
|
739
|
+
*/
|
|
740
|
+
readonly queries?: QueriesOrQueriesId<Schemas>;
|
|
741
|
+
/**
|
|
742
|
+
* A custom component for rendering each Row in the Table (to override the
|
|
743
|
+
* default ResultRowView component).
|
|
744
|
+
* @category Props
|
|
745
|
+
* @since v8.3.0
|
|
746
|
+
*/
|
|
747
|
+
readonly resultRowComponent?: Component<ResultRowProps<Schemas>>;
|
|
748
|
+
/**
|
|
749
|
+
* A function for generating extra props for each custom Row component based on
|
|
750
|
+
* its Id.
|
|
751
|
+
* @category Props
|
|
752
|
+
* @since v8.3.0
|
|
753
|
+
*/
|
|
754
|
+
readonly getResultRowComponentProps?: (rowId: Id) => ExtraProps;
|
|
755
|
+
/**
|
|
756
|
+
* A component or string to separate each Row component.
|
|
757
|
+
* @category Props
|
|
758
|
+
* @since v8.3.0
|
|
759
|
+
*/
|
|
760
|
+
readonly separator?: JSXElement | string;
|
|
761
|
+
/**
|
|
762
|
+
* Whether the component should also render the Id of the query, and its
|
|
763
|
+
* descendent objects, to assist with debugging.
|
|
764
|
+
* @category Props
|
|
765
|
+
* @since v8.3.0
|
|
766
|
+
*/
|
|
767
|
+
readonly debugIds?: boolean;
|
|
768
|
+
};
|
|
769
|
+
|
|
770
|
+
export type ResultRowProps<Schemas extends OptionalSchemas> = {
|
|
771
|
+
/**
|
|
772
|
+
* The Id of the query in the Queries object for which the ResultTable will be
|
|
773
|
+
* rendered.
|
|
774
|
+
* @category Props
|
|
775
|
+
* @since v8.3.0
|
|
776
|
+
*/
|
|
777
|
+
readonly queryId: Id;
|
|
778
|
+
/**
|
|
779
|
+
* The Id of the Row in the ResultTable to be rendered.
|
|
780
|
+
* @category Props
|
|
781
|
+
* @since v8.3.0
|
|
782
|
+
*/
|
|
783
|
+
readonly rowId: Id;
|
|
784
|
+
/**
|
|
785
|
+
* The Queries object to be accessed: omit for the default context Queries
|
|
786
|
+
* object, provide an Id for a named context Queries object, or provide an
|
|
787
|
+
* explicit reference.
|
|
788
|
+
* @category Props
|
|
789
|
+
* @since v8.3.0
|
|
790
|
+
*/
|
|
791
|
+
readonly queries?: QueriesOrQueriesId<Schemas>;
|
|
792
|
+
/**
|
|
793
|
+
* A custom component for rendering each Cell in the Row (to override the
|
|
794
|
+
* default CellView component).
|
|
795
|
+
* @category Props
|
|
796
|
+
* @since v8.3.0
|
|
797
|
+
*/
|
|
798
|
+
readonly resultCellComponent?: Component<ResultCellProps<Schemas>>;
|
|
799
|
+
/**
|
|
800
|
+
* A function for generating extra props for each custom Cell component based on
|
|
801
|
+
* its Id.
|
|
802
|
+
* @category Props
|
|
803
|
+
* @since v8.3.0
|
|
804
|
+
*/
|
|
805
|
+
readonly getResultCellComponentProps?: (cellId: Id) => ExtraProps;
|
|
806
|
+
/**
|
|
807
|
+
* A component or string to separate each Cell component.
|
|
808
|
+
* @category Props
|
|
809
|
+
* @since v8.3.0
|
|
810
|
+
*/
|
|
811
|
+
readonly separator?: JSXElement | string;
|
|
812
|
+
/**
|
|
813
|
+
* Whether the component should also render the Id of the Row, and its
|
|
814
|
+
* descendent objects, to assist with debugging.
|
|
815
|
+
* @category Props
|
|
816
|
+
* @since v8.3.0
|
|
817
|
+
*/
|
|
818
|
+
readonly debugIds?: boolean;
|
|
819
|
+
};
|
|
820
|
+
|
|
821
|
+
export type ResultCellProps<Schemas extends OptionalSchemas> = {
|
|
822
|
+
/**
|
|
823
|
+
* The Id of the query in the Queries object for which the ResultTable will be
|
|
824
|
+
* rendered.
|
|
825
|
+
* @category Props
|
|
826
|
+
* @since v8.3.0
|
|
827
|
+
*/
|
|
828
|
+
readonly queryId: Id;
|
|
829
|
+
/**
|
|
830
|
+
* The Id of the Row in the Table.
|
|
831
|
+
* @category Props
|
|
832
|
+
* @since v8.3.0
|
|
833
|
+
*/
|
|
834
|
+
readonly rowId: Id;
|
|
835
|
+
/**
|
|
836
|
+
* The Id of the Cell in the Row to be rendered.
|
|
837
|
+
* @category Props
|
|
838
|
+
* @since v8.3.0
|
|
839
|
+
*/
|
|
840
|
+
readonly cellId: Id;
|
|
841
|
+
/**
|
|
842
|
+
* The Queries object to be accessed: omit for the default context Queries
|
|
843
|
+
* object, provide an Id for a named context Queries object, or provide an
|
|
844
|
+
* explicit reference.
|
|
845
|
+
* @category Props
|
|
846
|
+
* @since v8.3.0
|
|
847
|
+
*/
|
|
848
|
+
readonly queries?: QueriesOrQueriesId<Schemas>;
|
|
849
|
+
/**
|
|
850
|
+
* Whether the component should also render the Id of the Cell to assist with
|
|
851
|
+
* debugging.
|
|
852
|
+
* @category Props
|
|
853
|
+
* @since v8.3.0
|
|
854
|
+
*/
|
|
855
|
+
readonly debugIds?: boolean;
|
|
856
|
+
};
|
|
857
|
+
|
|
858
|
+
export type CheckpointProps<Schemas extends OptionalSchemas> = {
|
|
859
|
+
/**
|
|
860
|
+
* The Id of the checkpoint in the Checkpoints object.
|
|
861
|
+
* @category Props
|
|
862
|
+
* @since v8.3.0
|
|
863
|
+
*/
|
|
864
|
+
readonly checkpointId: Id;
|
|
865
|
+
/**
|
|
866
|
+
* The Checkpoints object to be accessed: omit for the default context
|
|
867
|
+
* Checkpoints object, provide an Id for a named context Checkpoints object, or
|
|
868
|
+
* provide an explicit reference.
|
|
869
|
+
* @category Props
|
|
870
|
+
* @since v8.3.0
|
|
871
|
+
*/
|
|
872
|
+
readonly checkpoints?: CheckpointsOrCheckpointsId<Schemas>;
|
|
873
|
+
/**
|
|
874
|
+
* Whether the component should also render the Id of the checkpoint to assist
|
|
875
|
+
* with debugging.
|
|
876
|
+
* @category Props
|
|
877
|
+
* @since v8.3.0
|
|
878
|
+
*/
|
|
879
|
+
readonly debugIds?: boolean;
|
|
880
|
+
};
|
|
881
|
+
|
|
882
|
+
export type BackwardCheckpointsProps<Schemas extends OptionalSchemas> = {
|
|
883
|
+
/**
|
|
884
|
+
* The Checkpoints object to be accessed: omit for the default context
|
|
885
|
+
* Checkpoints object, provide an Id for a named context Checkpoints object, or
|
|
886
|
+
* provide an explicit reference.
|
|
887
|
+
* @category Props
|
|
888
|
+
* @since v8.3.0
|
|
889
|
+
*/
|
|
890
|
+
readonly checkpoints?: CheckpointsOrCheckpointsId<Schemas>;
|
|
891
|
+
/**
|
|
892
|
+
* A component for rendering each checkpoint in the Checkpoints object.
|
|
893
|
+
* @category Props
|
|
894
|
+
* @since v8.3.0
|
|
895
|
+
*/
|
|
896
|
+
readonly checkpointComponent?: Component<CheckpointProps<Schemas>>;
|
|
897
|
+
/**
|
|
898
|
+
* A function for generating extra props for each checkpoint component based on
|
|
899
|
+
* its Id.
|
|
900
|
+
* @category Props
|
|
901
|
+
* @since v8.3.0
|
|
902
|
+
*/
|
|
903
|
+
readonly getCheckpointComponentProps?: (checkpointId: Id) => ExtraProps;
|
|
904
|
+
/**
|
|
905
|
+
* A component or string to separate each Checkpoint component.
|
|
906
|
+
* @category Props
|
|
907
|
+
* @since v8.3.0
|
|
908
|
+
*/
|
|
909
|
+
readonly separator?: JSXElement | string;
|
|
910
|
+
/**
|
|
911
|
+
* Whether the component should also render the Ids of the checkpoints to assist
|
|
912
|
+
* with debugging.
|
|
913
|
+
* @category Props
|
|
914
|
+
* @since v8.3.0
|
|
915
|
+
*/
|
|
916
|
+
readonly debugIds?: boolean;
|
|
917
|
+
};
|
|
918
|
+
|
|
919
|
+
export type CurrentCheckpointProps<Schemas extends OptionalSchemas> = {
|
|
920
|
+
/**
|
|
921
|
+
* The Checkpoints object to be accessed: omit for the default context
|
|
922
|
+
* Checkpoints object, provide an Id for a named context Checkpoints object, or
|
|
923
|
+
* provide an explicit reference.
|
|
924
|
+
* @category Props
|
|
925
|
+
* @since v8.3.0
|
|
926
|
+
*/
|
|
927
|
+
readonly checkpoints?: CheckpointsOrCheckpointsId<Schemas>;
|
|
928
|
+
/**
|
|
929
|
+
* A component for rendering each checkpoint in the Checkpoints object.
|
|
930
|
+
* @category Props
|
|
931
|
+
* @since v8.3.0
|
|
932
|
+
*/
|
|
933
|
+
readonly checkpointComponent?: Component<CheckpointProps<Schemas>>;
|
|
934
|
+
/**
|
|
935
|
+
* A function for generating extra props for each checkpoint component based on
|
|
936
|
+
* its Id.
|
|
937
|
+
* @category Props
|
|
938
|
+
* @since v8.3.0
|
|
939
|
+
*/
|
|
940
|
+
readonly getCheckpointComponentProps?: (checkpointId: Id) => ExtraProps;
|
|
941
|
+
/**
|
|
942
|
+
* Whether the component should also render the Ids of the checkpoints to assist
|
|
943
|
+
* with debugging.
|
|
944
|
+
* @category Props
|
|
945
|
+
* @since v8.3.0
|
|
946
|
+
*/
|
|
947
|
+
readonly debugIds?: boolean;
|
|
948
|
+
};
|
|
949
|
+
|
|
950
|
+
export type ForwardCheckpointsProps<Schemas extends OptionalSchemas> = {
|
|
951
|
+
/**
|
|
952
|
+
* The Checkpoints object to be accessed: omit for the default context
|
|
953
|
+
* Checkpoints object, provide an Id for a named context Checkpoints object, or
|
|
954
|
+
* provide an explicit reference.
|
|
955
|
+
* @category Props
|
|
956
|
+
* @since v8.3.0
|
|
957
|
+
*/
|
|
958
|
+
readonly checkpoints?: CheckpointsOrCheckpointsId<Schemas>;
|
|
959
|
+
/**
|
|
960
|
+
* A component for rendering each checkpoint in the Checkpoints object.
|
|
961
|
+
* @category Props
|
|
962
|
+
* @since v8.3.0
|
|
963
|
+
*/
|
|
964
|
+
readonly checkpointComponent?: Component<CheckpointProps<Schemas>>;
|
|
965
|
+
/**
|
|
966
|
+
* A function for generating extra props for each checkpoint component based on
|
|
967
|
+
* its Id.
|
|
968
|
+
* @category Props
|
|
969
|
+
* @since v8.3.0
|
|
970
|
+
*/
|
|
971
|
+
readonly getCheckpointComponentProps?: (checkpointId: Id) => ExtraProps;
|
|
972
|
+
/**
|
|
973
|
+
* A component or string to separate each Checkpoint component.
|
|
974
|
+
* @category Props
|
|
975
|
+
* @since v8.3.0
|
|
976
|
+
*/
|
|
977
|
+
readonly separator?: JSXElement | string;
|
|
978
|
+
/**
|
|
979
|
+
* Whether the component should also render the Ids of the checkpoints to assist
|
|
980
|
+
* with debugging.
|
|
981
|
+
* @category Props
|
|
982
|
+
* @since v8.3.0
|
|
983
|
+
*/
|
|
984
|
+
readonly debugIds?: boolean;
|
|
985
|
+
};
|
|
986
|
+
|
|
987
|
+
export type ProviderProps<Schemas extends OptionalSchemas> = {
|
|
988
|
+
/**
|
|
989
|
+
* A default single Store object that will be available within the Provider
|
|
990
|
+
* context.
|
|
991
|
+
* @category Props
|
|
992
|
+
* @since v8.3.0
|
|
993
|
+
*/
|
|
994
|
+
readonly store?: Store<Schemas>;
|
|
995
|
+
/**
|
|
996
|
+
* An object containing multiple Store objects that will be available within the
|
|
997
|
+
* Provider context by their Id.
|
|
998
|
+
* @category Props
|
|
999
|
+
* @since v8.3.0
|
|
1000
|
+
*/
|
|
1001
|
+
readonly storesById?: {[storeId: Id]: Store<Schemas>};
|
|
1002
|
+
/**
|
|
1003
|
+
* A default single Metrics object that will be available within the Provider
|
|
1004
|
+
* context.
|
|
1005
|
+
* @category Props
|
|
1006
|
+
* @since v8.3.0
|
|
1007
|
+
*/
|
|
1008
|
+
readonly metrics?: Metrics<Schemas>;
|
|
1009
|
+
/**
|
|
1010
|
+
* An object containing multiple Metrics objects that will be available within
|
|
1011
|
+
* the Provider context by their Id.
|
|
1012
|
+
* @category Props
|
|
1013
|
+
* @since v8.3.0
|
|
1014
|
+
*/
|
|
1015
|
+
readonly metricsById?: {[metricsId: Id]: Metrics<Schemas>};
|
|
1016
|
+
/**
|
|
1017
|
+
* A default single Indexes object that will be available within the Provider
|
|
1018
|
+
* context.
|
|
1019
|
+
* @category Props
|
|
1020
|
+
* @since v8.3.0
|
|
1021
|
+
*/
|
|
1022
|
+
readonly indexes?: Indexes<Schemas>;
|
|
1023
|
+
/**
|
|
1024
|
+
* An object containing multiple Indexes objects that will be available within
|
|
1025
|
+
* the Provider context by their Id.
|
|
1026
|
+
* @category Props
|
|
1027
|
+
* @since v8.3.0
|
|
1028
|
+
*/
|
|
1029
|
+
readonly indexesById?: {[indexesId: Id]: Indexes<Schemas>};
|
|
1030
|
+
/**
|
|
1031
|
+
* A default single Relationships object that will be available within the
|
|
1032
|
+
* Provider context.
|
|
1033
|
+
* @category Props
|
|
1034
|
+
* @since v8.3.0
|
|
1035
|
+
*/
|
|
1036
|
+
readonly relationships?: Relationships<Schemas>;
|
|
1037
|
+
/**
|
|
1038
|
+
* An object containing multiple Relationships objects that will be available
|
|
1039
|
+
* within the Provider context by their Id.
|
|
1040
|
+
* @category Props
|
|
1041
|
+
* @since v8.3.0
|
|
1042
|
+
*/
|
|
1043
|
+
readonly relationshipsById?: {[relationshipsId: Id]: Relationships<Schemas>};
|
|
1044
|
+
/**
|
|
1045
|
+
* A default single Queries object that will be available within the Provider
|
|
1046
|
+
* context, since v2.0.
|
|
1047
|
+
* @category Props
|
|
1048
|
+
* @since v8.3.0
|
|
1049
|
+
*/
|
|
1050
|
+
readonly queries?: Queries<Schemas>;
|
|
1051
|
+
/**
|
|
1052
|
+
* An object containing multiple Queries objects that will be available within
|
|
1053
|
+
* the Provider context by their Id, since v2.0.
|
|
1054
|
+
* @category Props
|
|
1055
|
+
* @since v8.3.0
|
|
1056
|
+
*/
|
|
1057
|
+
readonly queriesById?: {[queriesId: Id]: Queries<Schemas>};
|
|
1058
|
+
/**
|
|
1059
|
+
* A default single Checkpoints object that will be available within the
|
|
1060
|
+
* Provider context.
|
|
1061
|
+
* @category Props
|
|
1062
|
+
* @since v8.3.0
|
|
1063
|
+
*/
|
|
1064
|
+
readonly checkpoints?: Checkpoints<Schemas>;
|
|
1065
|
+
/**
|
|
1066
|
+
* An object containing multiple Checkpoints objects that will be available
|
|
1067
|
+
* within the Provider context by their Id.
|
|
1068
|
+
* @category Props
|
|
1069
|
+
* @since v8.3.0
|
|
1070
|
+
*/
|
|
1071
|
+
readonly checkpointsById?: {[checkpointsId: Id]: Checkpoints<Schemas>};
|
|
1072
|
+
/**
|
|
1073
|
+
* A default single Persister object that will be available within the Provider
|
|
1074
|
+
* context.
|
|
1075
|
+
* @category Props
|
|
1076
|
+
* @since v8.3.0
|
|
1077
|
+
*/
|
|
1078
|
+
readonly persister?: Persister<Schemas, Persists.StoreOrMergeableStore>;
|
|
1079
|
+
/**
|
|
1080
|
+
* An object containing multiple Persister objects that will be available within
|
|
1081
|
+
* the Provider context by their Id.
|
|
1082
|
+
* @category Props
|
|
1083
|
+
* @since v8.3.0
|
|
1084
|
+
*/
|
|
1085
|
+
readonly persistersById?: {
|
|
1086
|
+
[persisterId: Id]: Persister<Schemas, Persists.StoreOrMergeableStore>;
|
|
1087
|
+
};
|
|
1088
|
+
/**
|
|
1089
|
+
* A default single Synchronizer object that will be available within the
|
|
1090
|
+
* Provider context.
|
|
1091
|
+
* @category Props
|
|
1092
|
+
* @since v8.3.0
|
|
1093
|
+
*/
|
|
1094
|
+
readonly synchronizer?: Synchronizer<Schemas>;
|
|
1095
|
+
/**
|
|
1096
|
+
* An object containing multiple Synchronizer objects that will be available
|
|
1097
|
+
* within the Provider context by their Id.
|
|
1098
|
+
* @category Props
|
|
1099
|
+
* @since v8.3.0
|
|
1100
|
+
*/
|
|
1101
|
+
readonly synchronizersById?: {[synchronizerId: Id]: Synchronizer<Schemas>};
|
|
1102
|
+
};
|
|
1103
|
+
|
|
1104
|
+
export type ComponentReturnType = JSXElement;
|