tinybase 8.1.0-beta.4 → 8.1.0
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/indexes/index.d.ts +0 -1
- package/@types/indexes/with-schemas/index.d.ts +0 -1
- package/@types/metrics/index.d.ts +0 -1
- package/@types/metrics/with-schemas/index.d.ts +0 -1
- package/@types/ui-react/index.d.ts +2 -1
- package/@types/ui-react/with-schemas/index.d.ts +2 -1
- package/@types/ui-svelte/index.d.ts +462 -361
- package/@types/ui-svelte/with-schemas/index.d.ts +451 -359
- 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/persisters/persister-partykit-server/index.js +1 -1
- package/min/persisters/persister-partykit-server/index.js.gz +0 -0
- package/min/persisters/persister-partykit-server/with-schemas/index.js +1 -1
- package/min/persisters/persister-partykit-server/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-remote/index.js +1 -1
- package/min/persisters/persister-remote/index.js.gz +0 -0
- package/min/persisters/persister-remote/with-schemas/index.js +1 -1
- package/min/persisters/persister-remote/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/omni/index.js +5 -2
- package/omni/with-schemas/index.js +5 -2
- package/package.json +5 -5
- package/persisters/persister-partykit-server/index.js +1 -0
- package/persisters/persister-partykit-server/with-schemas/index.js +1 -0
- package/persisters/persister-remote/index.js +4 -2
- package/persisters/persister-remote/with-schemas/index.js +4 -2
- package/readme.md +5 -5
- package/releases.md +15 -7
- package/ui-svelte/index.js +121 -121
- package/ui-svelte/with-schemas/index.js +121 -121
package/ui-svelte/index.js
CHANGED
|
@@ -200,7 +200,7 @@ const addListenerEffect = (
|
|
|
200
200
|
}
|
|
201
201
|
};
|
|
202
202
|
|
|
203
|
-
const
|
|
203
|
+
const hasTables = (storeOrStoreId) =>
|
|
204
204
|
createListenable(
|
|
205
205
|
resolveStore(storeOrStoreId),
|
|
206
206
|
TABLES,
|
|
@@ -208,11 +208,11 @@ const createHasTables = (storeOrStoreId) =>
|
|
|
208
208
|
() => EMPTY_ARR,
|
|
209
209
|
1,
|
|
210
210
|
);
|
|
211
|
-
const
|
|
211
|
+
const getTables = (storeOrStoreId) =>
|
|
212
212
|
createListenable(resolveStore(storeOrStoreId), TABLES, EMPTY_OBJ);
|
|
213
|
-
const
|
|
213
|
+
const getTableIds = (storeOrStoreId) =>
|
|
214
214
|
createListenable(resolveStore(storeOrStoreId), TABLE_IDS, EMPTY_ARR);
|
|
215
|
-
const
|
|
215
|
+
const hasTable = (tableId, storeOrStoreId) =>
|
|
216
216
|
createListenable(
|
|
217
217
|
resolveStore(storeOrStoreId),
|
|
218
218
|
TABLE,
|
|
@@ -220,18 +220,18 @@ const createHasTable = (tableId, storeOrStoreId) =>
|
|
|
220
220
|
() => [maybeGet(tableId)],
|
|
221
221
|
1,
|
|
222
222
|
);
|
|
223
|
-
const
|
|
223
|
+
const getTable = (tableId, storeOrStoreId) =>
|
|
224
224
|
createListenable(resolveStore(storeOrStoreId), TABLE, EMPTY_OBJ, () => [
|
|
225
225
|
maybeGet(tableId),
|
|
226
226
|
]);
|
|
227
|
-
const
|
|
227
|
+
const getTableCellIds = (tableId, storeOrStoreId) =>
|
|
228
228
|
createListenable(
|
|
229
229
|
resolveStore(storeOrStoreId),
|
|
230
230
|
TABLE + CELL_IDS,
|
|
231
231
|
EMPTY_ARR,
|
|
232
232
|
() => [maybeGet(tableId)],
|
|
233
233
|
);
|
|
234
|
-
const
|
|
234
|
+
const hasTableCell = (tableId, cellId, storeOrStoreId) =>
|
|
235
235
|
createListenable(
|
|
236
236
|
resolveStore(storeOrStoreId),
|
|
237
237
|
TABLE + CELL,
|
|
@@ -239,16 +239,16 @@ const createHasTableCell = (tableId, cellId, storeOrStoreId) =>
|
|
|
239
239
|
() => [maybeGet(tableId), maybeGet(cellId)],
|
|
240
240
|
1,
|
|
241
241
|
);
|
|
242
|
-
const
|
|
242
|
+
const getRowCount = (tableId, storeOrStoreId) =>
|
|
243
243
|
createListenable(resolveStore(storeOrStoreId), ROW_COUNT, 0, () => [
|
|
244
244
|
maybeGet(tableId),
|
|
245
245
|
]);
|
|
246
|
-
const
|
|
246
|
+
const getRowIds = (tableId, storeOrStoreId) =>
|
|
247
247
|
createListenable(resolveStore(storeOrStoreId), ROW_IDS, EMPTY_ARR, () => [
|
|
248
248
|
maybeGet(tableId),
|
|
249
249
|
]);
|
|
250
250
|
|
|
251
|
-
const
|
|
251
|
+
const getSortedRowIds = (
|
|
252
252
|
tableId,
|
|
253
253
|
cellId,
|
|
254
254
|
descending = false,
|
|
@@ -269,7 +269,7 @@ const createSortedRowIds = (
|
|
|
269
269
|
],
|
|
270
270
|
);
|
|
271
271
|
|
|
272
|
-
const
|
|
272
|
+
const hasRow = (tableId, rowId, storeOrStoreId) =>
|
|
273
273
|
createListenable(
|
|
274
274
|
resolveStore(storeOrStoreId),
|
|
275
275
|
ROW,
|
|
@@ -277,17 +277,17 @@ const createHasRow = (tableId, rowId, storeOrStoreId) =>
|
|
|
277
277
|
() => [maybeGet(tableId), maybeGet(rowId)],
|
|
278
278
|
1,
|
|
279
279
|
);
|
|
280
|
-
const
|
|
280
|
+
const getRow = (tableId, rowId, storeOrStoreId) =>
|
|
281
281
|
createListenable(resolveStore(storeOrStoreId), ROW, EMPTY_OBJ, () => [
|
|
282
282
|
maybeGet(tableId),
|
|
283
283
|
maybeGet(rowId),
|
|
284
284
|
]);
|
|
285
|
-
const
|
|
285
|
+
const getCellIds = (tableId, rowId, storeOrStoreId) =>
|
|
286
286
|
createListenable(resolveStore(storeOrStoreId), CELL_IDS, EMPTY_ARR, () => [
|
|
287
287
|
maybeGet(tableId),
|
|
288
288
|
maybeGet(rowId),
|
|
289
289
|
]);
|
|
290
|
-
const
|
|
290
|
+
const hasCell = (tableId, rowId, cellId, storeOrStoreId) =>
|
|
291
291
|
createListenable(
|
|
292
292
|
resolveStore(storeOrStoreId),
|
|
293
293
|
CELL,
|
|
@@ -296,7 +296,7 @@ const createHasCell = (tableId, rowId, cellId, storeOrStoreId) =>
|
|
|
296
296
|
1,
|
|
297
297
|
);
|
|
298
298
|
|
|
299
|
-
const
|
|
299
|
+
const getCell = (tableId, rowId, cellId, storeOrStoreId) => {
|
|
300
300
|
const getStore2 = resolveStore(storeOrStoreId);
|
|
301
301
|
let subscribe = $.state($.proxy(noop));
|
|
302
302
|
|
|
@@ -342,7 +342,7 @@ const createCell = (tableId, rowId, cellId, storeOrStoreId) => {
|
|
|
342
342
|
);
|
|
343
343
|
};
|
|
344
344
|
|
|
345
|
-
const
|
|
345
|
+
const hasValues = (storeOrStoreId) =>
|
|
346
346
|
createListenable(
|
|
347
347
|
resolveStore(storeOrStoreId),
|
|
348
348
|
VALUES,
|
|
@@ -350,11 +350,11 @@ const createHasValues = (storeOrStoreId) =>
|
|
|
350
350
|
() => EMPTY_ARR,
|
|
351
351
|
1,
|
|
352
352
|
);
|
|
353
|
-
const
|
|
353
|
+
const getValues = (storeOrStoreId) =>
|
|
354
354
|
createListenable(resolveStore(storeOrStoreId), VALUES, EMPTY_OBJ);
|
|
355
|
-
const
|
|
355
|
+
const getValueIds = (storeOrStoreId) =>
|
|
356
356
|
createListenable(resolveStore(storeOrStoreId), VALUE_IDS, EMPTY_ARR);
|
|
357
|
-
const
|
|
357
|
+
const hasValue = (valueId, storeOrStoreId) =>
|
|
358
358
|
createListenable(
|
|
359
359
|
resolveStore(storeOrStoreId),
|
|
360
360
|
VALUE,
|
|
@@ -363,7 +363,7 @@ const createHasValue = (valueId, storeOrStoreId) =>
|
|
|
363
363
|
1,
|
|
364
364
|
);
|
|
365
365
|
|
|
366
|
-
const
|
|
366
|
+
const getValue = (valueId, storeOrStoreId) => {
|
|
367
367
|
const getStore2 = resolveStore(storeOrStoreId);
|
|
368
368
|
let subscribe = $.state($.proxy(noop));
|
|
369
369
|
|
|
@@ -393,7 +393,7 @@ const createValue = (valueId, storeOrStoreId) => {
|
|
|
393
393
|
|
|
394
394
|
const getStore = (id) => getProvidedThing(id, OFFSET_STORE);
|
|
395
395
|
|
|
396
|
-
const
|
|
396
|
+
const getStoreIds = () => {
|
|
397
397
|
const contextValue = getContextValue();
|
|
398
398
|
let ids = $.state($.proxy(getThingIds(contextValue, OFFSET_STORE)));
|
|
399
399
|
|
|
@@ -412,7 +412,7 @@ const createStoreIds = () => {
|
|
|
412
412
|
|
|
413
413
|
const getMetrics = (id) => getProvidedThing(id, OFFSET_METRICS);
|
|
414
414
|
|
|
415
|
-
const
|
|
415
|
+
const getMetricsIds = () => {
|
|
416
416
|
const contextValue = getContextValue();
|
|
417
417
|
let ids = $.state($.proxy(getThingIds(contextValue, OFFSET_METRICS)));
|
|
418
418
|
|
|
@@ -429,15 +429,15 @@ const createMetricsIds = () => {
|
|
|
429
429
|
};
|
|
430
430
|
};
|
|
431
431
|
|
|
432
|
-
const
|
|
432
|
+
const getMetricIds = (metricsOrMetricsId) =>
|
|
433
433
|
createListenable(resolveMetrics(metricsOrMetricsId), METRIC + IDS, EMPTY_ARR);
|
|
434
|
-
const
|
|
434
|
+
const getMetric = (metricId, metricsOrMetricsId) =>
|
|
435
435
|
createListenable(resolveMetrics(metricsOrMetricsId), METRIC, void 0, () => [
|
|
436
436
|
maybeGet(metricId),
|
|
437
437
|
]);
|
|
438
438
|
const getIndexes = (id) => getProvidedThing(id, OFFSET_INDEXES);
|
|
439
439
|
|
|
440
|
-
const
|
|
440
|
+
const getIndexesIds = () => {
|
|
441
441
|
const contextValue = getContextValue();
|
|
442
442
|
let ids = $.state($.proxy(getThingIds(contextValue, OFFSET_INDEXES)));
|
|
443
443
|
|
|
@@ -454,16 +454,16 @@ const createIndexesIds = () => {
|
|
|
454
454
|
};
|
|
455
455
|
};
|
|
456
456
|
|
|
457
|
-
const
|
|
457
|
+
const getIndexIds = (indexesOrIndexesId) =>
|
|
458
458
|
createListenable(resolveIndexes(indexesOrIndexesId), INDEX + IDS, EMPTY_ARR);
|
|
459
|
-
const
|
|
459
|
+
const getSliceIds = (indexId, indexesOrIndexesId) =>
|
|
460
460
|
createListenable(
|
|
461
461
|
resolveIndexes(indexesOrIndexesId),
|
|
462
462
|
SLICE + IDS,
|
|
463
463
|
EMPTY_ARR,
|
|
464
464
|
() => [maybeGet(indexId)],
|
|
465
465
|
);
|
|
466
|
-
const
|
|
466
|
+
const getSliceRowIds = (indexId, sliceId, indexesOrIndexesId) =>
|
|
467
467
|
createListenable(
|
|
468
468
|
resolveIndexes(indexesOrIndexesId),
|
|
469
469
|
SLICE + ROW_IDS,
|
|
@@ -487,7 +487,7 @@ const getIndexStoreTableId = (indexesOrId, indexId) => {
|
|
|
487
487
|
|
|
488
488
|
const getQueries = (id) => getProvidedThing(id, OFFSET_QUERIES);
|
|
489
489
|
|
|
490
|
-
const
|
|
490
|
+
const getQueriesIds = () => {
|
|
491
491
|
const contextValue = getContextValue();
|
|
492
492
|
let ids = $.state($.proxy(getThingIds(contextValue, OFFSET_QUERIES)));
|
|
493
493
|
|
|
@@ -504,30 +504,30 @@ const createQueriesIds = () => {
|
|
|
504
504
|
};
|
|
505
505
|
};
|
|
506
506
|
|
|
507
|
-
const
|
|
507
|
+
const getQueryIds = (queriesOrQueriesId) =>
|
|
508
508
|
createListenable(resolveQueries(queriesOrQueriesId), QUERY + IDS, EMPTY_ARR);
|
|
509
|
-
const
|
|
509
|
+
const getResultTable = (queryId, queriesOrQueriesId) =>
|
|
510
510
|
createListenable(
|
|
511
511
|
resolveQueries(queriesOrQueriesId),
|
|
512
512
|
RESULT + TABLE,
|
|
513
513
|
EMPTY_OBJ,
|
|
514
514
|
() => [maybeGet(queryId)],
|
|
515
515
|
);
|
|
516
|
-
const
|
|
516
|
+
const getResultTableCellIds = (queryId, queriesOrQueriesId) =>
|
|
517
517
|
createListenable(
|
|
518
518
|
resolveQueries(queriesOrQueriesId),
|
|
519
519
|
RESULT + TABLE + CELL_IDS,
|
|
520
520
|
EMPTY_ARR,
|
|
521
521
|
() => [maybeGet(queryId)],
|
|
522
522
|
);
|
|
523
|
-
const
|
|
523
|
+
const getResultRowCount = (queryId, queriesOrQueriesId) =>
|
|
524
524
|
createListenable(
|
|
525
525
|
resolveQueries(queriesOrQueriesId),
|
|
526
526
|
RESULT + ROW_COUNT,
|
|
527
527
|
0,
|
|
528
528
|
() => [maybeGet(queryId)],
|
|
529
529
|
);
|
|
530
|
-
const
|
|
530
|
+
const getResultRowIds = (queryId, queriesOrQueriesId) =>
|
|
531
531
|
createListenable(
|
|
532
532
|
resolveQueries(queriesOrQueriesId),
|
|
533
533
|
RESULT + ROW_IDS,
|
|
@@ -535,7 +535,7 @@ const createResultRowIds = (queryId, queriesOrQueriesId) =>
|
|
|
535
535
|
() => [maybeGet(queryId)],
|
|
536
536
|
);
|
|
537
537
|
|
|
538
|
-
const
|
|
538
|
+
const getResultSortedRowIds = (
|
|
539
539
|
queryId,
|
|
540
540
|
cellId,
|
|
541
541
|
descending = false,
|
|
@@ -556,21 +556,21 @@ const createResultSortedRowIds = (
|
|
|
556
556
|
],
|
|
557
557
|
);
|
|
558
558
|
|
|
559
|
-
const
|
|
559
|
+
const getResultRow = (queryId, rowId, queriesOrQueriesId) =>
|
|
560
560
|
createListenable(
|
|
561
561
|
resolveQueries(queriesOrQueriesId),
|
|
562
562
|
RESULT + ROW,
|
|
563
563
|
EMPTY_OBJ,
|
|
564
564
|
() => [maybeGet(queryId), maybeGet(rowId)],
|
|
565
565
|
);
|
|
566
|
-
const
|
|
566
|
+
const getResultCellIds = (queryId, rowId, queriesOrQueriesId) =>
|
|
567
567
|
createListenable(
|
|
568
568
|
resolveQueries(queriesOrQueriesId),
|
|
569
569
|
RESULT + CELL_IDS,
|
|
570
570
|
EMPTY_ARR,
|
|
571
571
|
() => [maybeGet(queryId), maybeGet(rowId)],
|
|
572
572
|
);
|
|
573
|
-
const
|
|
573
|
+
const getResultCell = (queryId, rowId, cellId, queriesOrQueriesId) =>
|
|
574
574
|
createListenable(
|
|
575
575
|
resolveQueries(queriesOrQueriesId),
|
|
576
576
|
RESULT + CELL,
|
|
@@ -579,7 +579,7 @@ const createResultCell = (queryId, rowId, cellId, queriesOrQueriesId) =>
|
|
|
579
579
|
);
|
|
580
580
|
const getRelationships = (id) => getProvidedThing(id, OFFSET_RELATIONSHIPS);
|
|
581
581
|
|
|
582
|
-
const
|
|
582
|
+
const getRelationshipsIds = () => {
|
|
583
583
|
const contextValue = getContextValue();
|
|
584
584
|
let ids = $.state($.proxy(getThingIds(contextValue, OFFSET_RELATIONSHIPS)));
|
|
585
585
|
|
|
@@ -596,13 +596,13 @@ const createRelationshipsIds = () => {
|
|
|
596
596
|
};
|
|
597
597
|
};
|
|
598
598
|
|
|
599
|
-
const
|
|
599
|
+
const getRelationshipIds = (relationshipsOrRelationshipsId) =>
|
|
600
600
|
createListenable(
|
|
601
601
|
resolveRelationships(relationshipsOrRelationshipsId),
|
|
602
602
|
RELATIONSHIP + IDS,
|
|
603
603
|
EMPTY_ARR,
|
|
604
604
|
);
|
|
605
|
-
const
|
|
605
|
+
const getRemoteRowId = (
|
|
606
606
|
relationshipId,
|
|
607
607
|
localRowId,
|
|
608
608
|
relationshipsOrRelationshipsId,
|
|
@@ -613,7 +613,7 @@ const createRemoteRowId = (
|
|
|
613
613
|
void 0,
|
|
614
614
|
() => [maybeGet(relationshipId), maybeGet(localRowId)],
|
|
615
615
|
);
|
|
616
|
-
const
|
|
616
|
+
const getLocalRowIds = (
|
|
617
617
|
relationshipId,
|
|
618
618
|
remoteRowId,
|
|
619
619
|
relationshipsOrRelationshipsId,
|
|
@@ -624,7 +624,7 @@ const createLocalRowIds = (
|
|
|
624
624
|
EMPTY_ARR,
|
|
625
625
|
() => [maybeGet(relationshipId), maybeGet(remoteRowId)],
|
|
626
626
|
);
|
|
627
|
-
const
|
|
627
|
+
const getLinkedRowIds = (
|
|
628
628
|
relationshipId,
|
|
629
629
|
firstRowId,
|
|
630
630
|
relationshipsOrRelationshipsId,
|
|
@@ -656,7 +656,7 @@ const getRelationshipsStoreTableIds = (relationshipsOrId, relationshipId) => {
|
|
|
656
656
|
|
|
657
657
|
const getCheckpoints = (id) => getProvidedThing(id, OFFSET_CHECKPOINTS);
|
|
658
658
|
|
|
659
|
-
const
|
|
659
|
+
const getCheckpointsIds = () => {
|
|
660
660
|
const contextValue = getContextValue();
|
|
661
661
|
let ids = $.state($.proxy(getThingIds(contextValue, OFFSET_CHECKPOINTS)));
|
|
662
662
|
|
|
@@ -673,13 +673,13 @@ const createCheckpointsIds = () => {
|
|
|
673
673
|
};
|
|
674
674
|
};
|
|
675
675
|
|
|
676
|
-
const
|
|
676
|
+
const getCheckpointIds = (checkpointsOrCheckpointsId) =>
|
|
677
677
|
createListenable(
|
|
678
678
|
resolveCheckpoints(checkpointsOrCheckpointsId),
|
|
679
679
|
CHECKPOINT + IDS,
|
|
680
680
|
DEFAULT_CHECKPOINT_IDS,
|
|
681
681
|
);
|
|
682
|
-
const
|
|
682
|
+
const getCheckpoint = (checkpointId, checkpointsOrCheckpointsId) =>
|
|
683
683
|
createListenable(
|
|
684
684
|
resolveCheckpoints(checkpointsOrCheckpointsId),
|
|
685
685
|
CHECKPOINT,
|
|
@@ -701,7 +701,7 @@ const createGoForwardCallback = (checkpointsOrCheckpointsId) => {
|
|
|
701
701
|
|
|
702
702
|
const getPersister = (id) => getProvidedThing(id, OFFSET_PERSISTER);
|
|
703
703
|
|
|
704
|
-
const
|
|
704
|
+
const getPersisterIds = () => {
|
|
705
705
|
const contextValue = getContextValue();
|
|
706
706
|
let ids = $.state($.proxy(getThingIds(contextValue, OFFSET_PERSISTER)));
|
|
707
707
|
|
|
@@ -718,11 +718,11 @@ const createPersisterIds = () => {
|
|
|
718
718
|
};
|
|
719
719
|
};
|
|
720
720
|
|
|
721
|
-
const
|
|
721
|
+
const getPersisterStatus = (persisterOrPersisterId) =>
|
|
722
722
|
createListenable(resolvePersister(persisterOrPersisterId), STATUS, 0);
|
|
723
723
|
const getSynchronizer = (id) => getProvidedThing(id, OFFSET_SYNCHRONIZER);
|
|
724
724
|
|
|
725
|
-
const
|
|
725
|
+
const getSynchronizerIds = () => {
|
|
726
726
|
const contextValue = getContextValue();
|
|
727
727
|
let ids = $.state($.proxy(getThingIds(contextValue, OFFSET_SYNCHRONIZER)));
|
|
728
728
|
|
|
@@ -739,7 +739,7 @@ const createSynchronizerIds = () => {
|
|
|
739
739
|
};
|
|
740
740
|
};
|
|
741
741
|
|
|
742
|
-
const
|
|
742
|
+
const getSynchronizerStatus = (synchronizerOrSynchronizerId) =>
|
|
743
743
|
createListenable(
|
|
744
744
|
resolveSynchronizer(synchronizerOrSynchronizerId),
|
|
745
745
|
STATUS,
|
|
@@ -1141,7 +1141,7 @@ const provideSynchronizer = (synchronizerId, synchronizer) =>
|
|
|
1141
1141
|
function CheckpointView($$anchor, $$props) {
|
|
1142
1142
|
$.push($$props, true);
|
|
1143
1143
|
|
|
1144
|
-
const checkpoint =
|
|
1144
|
+
const checkpoint = getCheckpoint(
|
|
1145
1145
|
() => $$props.checkpointId,
|
|
1146
1146
|
() => $$props.checkpoints,
|
|
1147
1147
|
);
|
|
@@ -1272,7 +1272,7 @@ function Wrap($$anchor, $$props) {
|
|
|
1272
1272
|
function BackwardCheckpointsView($$anchor, $$props) {
|
|
1273
1273
|
$.push($$props, true);
|
|
1274
1274
|
|
|
1275
|
-
const checkpointIds =
|
|
1275
|
+
const checkpointIds = getCheckpointIds(() => $$props.checkpoints);
|
|
1276
1276
|
const ids = $.derived(() => checkpointIds.current[0]);
|
|
1277
1277
|
|
|
1278
1278
|
{
|
|
@@ -1319,7 +1319,7 @@ function BackwardCheckpointsView($$anchor, $$props) {
|
|
|
1319
1319
|
function CellView($$anchor, $$props) {
|
|
1320
1320
|
$.push($$props, true);
|
|
1321
1321
|
|
|
1322
|
-
const cell =
|
|
1322
|
+
const cell = getCell(
|
|
1323
1323
|
() => $$props.tableId,
|
|
1324
1324
|
() => $$props.rowId,
|
|
1325
1325
|
() => $$props.cellId,
|
|
@@ -1343,7 +1343,7 @@ function CellView($$anchor, $$props) {
|
|
|
1343
1343
|
function CurrentCheckpointView($$anchor, $$props) {
|
|
1344
1344
|
$.push($$props, true);
|
|
1345
1345
|
|
|
1346
|
-
const checkpointIds =
|
|
1346
|
+
const checkpointIds = getCheckpointIds(() => $$props.checkpoints);
|
|
1347
1347
|
const currentId = $.derived(() => checkpointIds.current[1]);
|
|
1348
1348
|
var fragment = $.comment();
|
|
1349
1349
|
var node = $.first_child(fragment);
|
|
@@ -1405,7 +1405,7 @@ function CurrentCheckpointView($$anchor, $$props) {
|
|
|
1405
1405
|
function ForwardCheckpointsView($$anchor, $$props) {
|
|
1406
1406
|
$.push($$props, true);
|
|
1407
1407
|
|
|
1408
|
-
const checkpointIds =
|
|
1408
|
+
const checkpointIds = getCheckpointIds(() => $$props.checkpoints);
|
|
1409
1409
|
const ids = $.derived(() => checkpointIds.current[2]);
|
|
1410
1410
|
|
|
1411
1411
|
{
|
|
@@ -1452,7 +1452,7 @@ function ForwardCheckpointsView($$anchor, $$props) {
|
|
|
1452
1452
|
function RowView($$anchor, $$props) {
|
|
1453
1453
|
$.push($$props, true);
|
|
1454
1454
|
|
|
1455
|
-
const defaultCellIds =
|
|
1455
|
+
const defaultCellIds = getCellIds(
|
|
1456
1456
|
() => $$props.tableId,
|
|
1457
1457
|
() => $$props.rowId,
|
|
1458
1458
|
() => $$props.store,
|
|
@@ -1521,7 +1521,7 @@ function SliceView($$anchor, $$props) {
|
|
|
1521
1521
|
() => $$props.indexes,
|
|
1522
1522
|
() => $$props.indexId,
|
|
1523
1523
|
);
|
|
1524
|
-
const rowIds =
|
|
1524
|
+
const rowIds = getSliceRowIds(
|
|
1525
1525
|
() => $$props.indexId,
|
|
1526
1526
|
() => $$props.sliceId,
|
|
1527
1527
|
() => $$props.indexes,
|
|
@@ -1592,7 +1592,7 @@ function SliceView($$anchor, $$props) {
|
|
|
1592
1592
|
function IndexView($$anchor, $$props) {
|
|
1593
1593
|
$.push($$props, true);
|
|
1594
1594
|
|
|
1595
|
-
const sliceIds =
|
|
1595
|
+
const sliceIds = getSliceIds(
|
|
1596
1596
|
() => $$props.indexId,
|
|
1597
1597
|
() => $$props.indexes,
|
|
1598
1598
|
);
|
|
@@ -1653,7 +1653,7 @@ function LinkedRowsView($$anchor, $$props) {
|
|
|
1653
1653
|
() => $$props.relationships,
|
|
1654
1654
|
() => $$props.relationshipId,
|
|
1655
1655
|
);
|
|
1656
|
-
const rowIds =
|
|
1656
|
+
const rowIds = getLinkedRowIds(
|
|
1657
1657
|
() => $$props.relationshipId,
|
|
1658
1658
|
() => $$props.firstRowId,
|
|
1659
1659
|
() => $$props.relationships,
|
|
@@ -1728,7 +1728,7 @@ function LocalRowsView($$anchor, $$props) {
|
|
|
1728
1728
|
() => $$props.relationships,
|
|
1729
1729
|
() => $$props.relationshipId,
|
|
1730
1730
|
);
|
|
1731
|
-
const rowIds =
|
|
1731
|
+
const rowIds = getLocalRowIds(
|
|
1732
1732
|
() => $$props.relationshipId,
|
|
1733
1733
|
() => $$props.remoteRowId,
|
|
1734
1734
|
() => $$props.relationships,
|
|
@@ -1799,7 +1799,7 @@ function LocalRowsView($$anchor, $$props) {
|
|
|
1799
1799
|
function MetricView($$anchor, $$props) {
|
|
1800
1800
|
$.push($$props, true);
|
|
1801
1801
|
|
|
1802
|
-
const metric =
|
|
1802
|
+
const metric = getMetric(
|
|
1803
1803
|
() => $$props.metricId,
|
|
1804
1804
|
() => $$props.metrics,
|
|
1805
1805
|
);
|
|
@@ -1945,7 +1945,7 @@ function RemoteRowView($$anchor, $$props) {
|
|
|
1945
1945
|
() => $$props.relationships,
|
|
1946
1946
|
() => $$props.relationshipId,
|
|
1947
1947
|
);
|
|
1948
|
-
const remoteRowId =
|
|
1948
|
+
const remoteRowId = getRemoteRowId(
|
|
1949
1949
|
() => $$props.relationshipId,
|
|
1950
1950
|
() => $$props.localRowId,
|
|
1951
1951
|
() => $$props.relationships,
|
|
@@ -2046,7 +2046,7 @@ function RemoteRowView($$anchor, $$props) {
|
|
|
2046
2046
|
function ResultCellView($$anchor, $$props) {
|
|
2047
2047
|
$.push($$props, true);
|
|
2048
2048
|
|
|
2049
|
-
const cell =
|
|
2049
|
+
const cell = getResultCell(
|
|
2050
2050
|
() => $$props.queryId,
|
|
2051
2051
|
() => $$props.rowId,
|
|
2052
2052
|
() => $$props.cellId,
|
|
@@ -2070,7 +2070,7 @@ function ResultCellView($$anchor, $$props) {
|
|
|
2070
2070
|
function ResultRowView($$anchor, $$props) {
|
|
2071
2071
|
$.push($$props, true);
|
|
2072
2072
|
|
|
2073
|
-
const cellIds =
|
|
2073
|
+
const cellIds = getResultCellIds(
|
|
2074
2074
|
() => $$props.queryId,
|
|
2075
2075
|
() => $$props.rowId,
|
|
2076
2076
|
() => $$props.queries,
|
|
@@ -2132,7 +2132,7 @@ function ResultRowView($$anchor, $$props) {
|
|
|
2132
2132
|
function ResultSortedTableView($$anchor, $$props) {
|
|
2133
2133
|
$.push($$props, true);
|
|
2134
2134
|
|
|
2135
|
-
const rowIds =
|
|
2135
|
+
const rowIds = getResultSortedRowIds(
|
|
2136
2136
|
() => $$props.queryId,
|
|
2137
2137
|
() => $$props.cellId,
|
|
2138
2138
|
() => $$props.descending ?? false,
|
|
@@ -2193,7 +2193,7 @@ function ResultSortedTableView($$anchor, $$props) {
|
|
|
2193
2193
|
function ResultTableView($$anchor, $$props) {
|
|
2194
2194
|
$.push($$props, true);
|
|
2195
2195
|
|
|
2196
|
-
const rowIds =
|
|
2196
|
+
const rowIds = getResultRowIds(
|
|
2197
2197
|
() => $$props.queryId,
|
|
2198
2198
|
() => $$props.queries,
|
|
2199
2199
|
);
|
|
@@ -2250,7 +2250,7 @@ function ResultTableView($$anchor, $$props) {
|
|
|
2250
2250
|
function SortedTableView($$anchor, $$props) {
|
|
2251
2251
|
$.push($$props, true);
|
|
2252
2252
|
|
|
2253
|
-
const rowIds =
|
|
2253
|
+
const rowIds = getSortedRowIds(
|
|
2254
2254
|
() => $$props.tableId,
|
|
2255
2255
|
() => $$props.cellId,
|
|
2256
2256
|
() => $$props.descending ?? false,
|
|
@@ -2315,7 +2315,7 @@ function SortedTableView($$anchor, $$props) {
|
|
|
2315
2315
|
function TableView($$anchor, $$props) {
|
|
2316
2316
|
$.push($$props, true);
|
|
2317
2317
|
|
|
2318
|
-
const rowIds =
|
|
2318
|
+
const rowIds = getRowIds(
|
|
2319
2319
|
() => $$props.tableId,
|
|
2320
2320
|
() => $$props.store,
|
|
2321
2321
|
);
|
|
@@ -2376,7 +2376,7 @@ function TableView($$anchor, $$props) {
|
|
|
2376
2376
|
function TablesView($$anchor, $$props) {
|
|
2377
2377
|
$.push($$props, true);
|
|
2378
2378
|
|
|
2379
|
-
const tableIds =
|
|
2379
|
+
const tableIds = getTableIds(() => $$props.store);
|
|
2380
2380
|
|
|
2381
2381
|
{
|
|
2382
2382
|
const children = ($$anchor, /* istanbul ignore next */ tableId = $.noop) => {
|
|
@@ -2422,7 +2422,7 @@ function TablesView($$anchor, $$props) {
|
|
|
2422
2422
|
function ValueView($$anchor, $$props) {
|
|
2423
2423
|
$.push($$props, true);
|
|
2424
2424
|
|
|
2425
|
-
const value =
|
|
2425
|
+
const value = getValue(
|
|
2426
2426
|
() => $$props.valueId,
|
|
2427
2427
|
() => $$props.store,
|
|
2428
2428
|
);
|
|
@@ -2446,7 +2446,7 @@ function ValueView($$anchor, $$props) {
|
|
|
2446
2446
|
function ValuesView($$anchor, $$props) {
|
|
2447
2447
|
$.push($$props, true);
|
|
2448
2448
|
|
|
2449
|
-
const valueIds =
|
|
2449
|
+
const valueIds = getValueIds(() => $$props.store);
|
|
2450
2450
|
|
|
2451
2451
|
{
|
|
2452
2452
|
const children = ($$anchor, /* istanbul ignore next */ valueId = $.noop) => {
|
|
@@ -2493,70 +2493,70 @@ export {
|
|
|
2493
2493
|
BackwardCheckpointsView,
|
|
2494
2494
|
CellView,
|
|
2495
2495
|
CheckpointView,
|
|
2496
|
-
createCell,
|
|
2497
|
-
createCellIds,
|
|
2498
|
-
createCheckpoint,
|
|
2499
|
-
createCheckpointIds,
|
|
2500
|
-
createCheckpointsIds,
|
|
2501
2496
|
createGoBackwardCallback,
|
|
2502
2497
|
createGoForwardCallback,
|
|
2503
|
-
createHasCell,
|
|
2504
|
-
createHasRow,
|
|
2505
|
-
createHasTable,
|
|
2506
|
-
createHasTableCell,
|
|
2507
|
-
createHasTables,
|
|
2508
|
-
createHasValue,
|
|
2509
|
-
createHasValues,
|
|
2510
|
-
createIndexesIds,
|
|
2511
|
-
createIndexIds,
|
|
2512
|
-
createLinkedRowIds,
|
|
2513
|
-
createLocalRowIds,
|
|
2514
|
-
createMetric,
|
|
2515
|
-
createMetricIds,
|
|
2516
|
-
createMetricsIds,
|
|
2517
|
-
createPersisterIds,
|
|
2518
|
-
createPersisterStatus,
|
|
2519
|
-
createQueriesIds,
|
|
2520
|
-
createQueryIds,
|
|
2521
|
-
createRelationshipIds,
|
|
2522
|
-
createRelationshipsIds,
|
|
2523
|
-
createRemoteRowId,
|
|
2524
|
-
createResultCell,
|
|
2525
|
-
createResultCellIds,
|
|
2526
|
-
createResultRow,
|
|
2527
|
-
createResultRowCount,
|
|
2528
|
-
createResultRowIds,
|
|
2529
|
-
createResultSortedRowIds,
|
|
2530
|
-
createResultTable,
|
|
2531
|
-
createResultTableCellIds,
|
|
2532
|
-
createRow,
|
|
2533
|
-
createRowCount,
|
|
2534
|
-
createRowIds,
|
|
2535
|
-
createSliceIds,
|
|
2536
|
-
createSliceRowIds,
|
|
2537
|
-
createSortedRowIds,
|
|
2538
|
-
createStoreIds,
|
|
2539
|
-
createSynchronizerIds,
|
|
2540
|
-
createSynchronizerStatus,
|
|
2541
|
-
createTable,
|
|
2542
|
-
createTableCellIds,
|
|
2543
|
-
createTableIds,
|
|
2544
|
-
createTables,
|
|
2545
|
-
createValue,
|
|
2546
|
-
createValueIds,
|
|
2547
|
-
createValues,
|
|
2548
2498
|
CurrentCheckpointView,
|
|
2549
2499
|
ForwardCheckpointsView,
|
|
2500
|
+
getCell,
|
|
2501
|
+
getCellIds,
|
|
2502
|
+
getCheckpoint,
|
|
2503
|
+
getCheckpointIds,
|
|
2550
2504
|
getCheckpoints,
|
|
2505
|
+
getCheckpointsIds,
|
|
2551
2506
|
getIndexes,
|
|
2507
|
+
getIndexesIds,
|
|
2508
|
+
getIndexIds,
|
|
2552
2509
|
getIndexStoreTableId,
|
|
2510
|
+
getLinkedRowIds,
|
|
2511
|
+
getLocalRowIds,
|
|
2512
|
+
getMetric,
|
|
2513
|
+
getMetricIds,
|
|
2553
2514
|
getMetrics,
|
|
2515
|
+
getMetricsIds,
|
|
2554
2516
|
getPersister,
|
|
2517
|
+
getPersisterIds,
|
|
2518
|
+
getPersisterStatus,
|
|
2555
2519
|
getQueries,
|
|
2520
|
+
getQueriesIds,
|
|
2521
|
+
getQueryIds,
|
|
2522
|
+
getRelationshipIds,
|
|
2556
2523
|
getRelationships,
|
|
2524
|
+
getRelationshipsIds,
|
|
2557
2525
|
getRelationshipsStoreTableIds,
|
|
2526
|
+
getRemoteRowId,
|
|
2527
|
+
getResultCell,
|
|
2528
|
+
getResultCellIds,
|
|
2529
|
+
getResultRow,
|
|
2530
|
+
getResultRowCount,
|
|
2531
|
+
getResultRowIds,
|
|
2532
|
+
getResultSortedRowIds,
|
|
2533
|
+
getResultTable,
|
|
2534
|
+
getResultTableCellIds,
|
|
2535
|
+
getRow,
|
|
2536
|
+
getRowCount,
|
|
2537
|
+
getRowIds,
|
|
2538
|
+
getSliceIds,
|
|
2539
|
+
getSliceRowIds,
|
|
2540
|
+
getSortedRowIds,
|
|
2558
2541
|
getStore,
|
|
2542
|
+
getStoreIds,
|
|
2559
2543
|
getSynchronizer,
|
|
2544
|
+
getSynchronizerIds,
|
|
2545
|
+
getSynchronizerStatus,
|
|
2546
|
+
getTable,
|
|
2547
|
+
getTableCellIds,
|
|
2548
|
+
getTableIds,
|
|
2549
|
+
getTables,
|
|
2550
|
+
getValue,
|
|
2551
|
+
getValueIds,
|
|
2552
|
+
getValues,
|
|
2553
|
+
hasCell,
|
|
2554
|
+
hasRow,
|
|
2555
|
+
hasTable,
|
|
2556
|
+
hasTableCell,
|
|
2557
|
+
hasTables,
|
|
2558
|
+
hasValue,
|
|
2559
|
+
hasValues,
|
|
2560
2560
|
IndexView,
|
|
2561
2561
|
LinkedRowsView,
|
|
2562
2562
|
LocalRowsView,
|