tinybase 8.5.0 → 9.0.0-beta.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/_internal/queries/with-schemas/index.d.ts +1 -2
- package/@types/_internal/ui/with-schemas/index.d.ts +8 -16
- package/@types/persisters/index.d.ts +32 -12
- package/@types/persisters/persister-durable-object-sql-storage/index.d.ts +9 -8
- package/@types/persisters/persister-durable-object-sql-storage/with-schemas/index.d.ts +10 -10
- package/@types/persisters/with-schemas/index.d.ts +56 -20
- package/@types/queries/index.d.ts +1 -7
- package/@types/queries/with-schemas/index.d.ts +5 -15
- package/@types/store/index.d.ts +1 -2
- package/@types/store/with-schemas/index.d.ts +19 -29
- package/@types/synchronizers/synchronizer-ws-client/index.d.ts +9 -3
- package/@types/synchronizers/synchronizer-ws-client/with-schemas/index.d.ts +10 -3
- package/@types/synchronizers/synchronizer-ws-server/index.d.ts +15 -2
- package/@types/synchronizers/synchronizer-ws-server/with-schemas/index.d.ts +17 -2
- package/@types/synchronizers/synchronizer-ws-server-durable-object/index.d.ts +51 -0
- package/@types/synchronizers/synchronizer-ws-server-durable-object/with-schemas/index.d.ts +51 -0
- package/@types/ui-react/with-schemas/index.d.ts +3 -6
- package/@types/ui-react-dom/index.d.ts +10 -10
- package/@types/ui-react-dom/with-schemas/index.d.ts +16 -22
- package/@types/ui-react-dom-charts/index.d.ts +7 -7
- package/@types/ui-react-dom-charts/with-schemas/index.d.ts +10 -11
- package/@types/ui-react-inspector/index.d.ts +1 -1
- package/@types/ui-react-inspector/with-schemas/index.d.ts +1 -1
- package/@types/ui-solid/with-schemas/index.d.ts +4 -8
- package/@types/ui-solid-dom/index.d.ts +10 -10
- package/@types/ui-solid-dom/with-schemas/index.d.ts +16 -22
- package/@types/ui-solid-inspector/index.d.ts +1 -1
- package/@types/ui-solid-inspector/with-schemas/index.d.ts +1 -1
- package/@types/ui-svelte-dom/index.d.ts +10 -10
- package/@types/ui-svelte-dom/with-schemas/index.d.ts +16 -22
- package/@types/ui-svelte-inspector/index.d.ts +1 -1
- package/@types/ui-svelte-inspector/with-schemas/index.d.ts +1 -1
- package/index.js +21 -19
- package/indexes/index.js +6 -8
- package/indexes/with-schemas/index.js +6 -8
- package/metrics/index.js +6 -8
- package/metrics/with-schemas/index.js +6 -8
- package/min/index.js +1 -1
- package/min/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/persisters/index.js +1 -1
- package/min/persisters/index.js.gz +0 -0
- package/min/persisters/persister-cr-sqlite-wasm/index.js +1 -1
- package/min/persisters/persister-cr-sqlite-wasm/index.js.gz +0 -0
- package/min/persisters/persister-cr-sqlite-wasm/with-schemas/index.js +1 -1
- package/min/persisters/persister-cr-sqlite-wasm/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-durable-object-sql-storage/index.js +1 -1
- package/min/persisters/persister-durable-object-sql-storage/index.js.gz +0 -0
- package/min/persisters/persister-durable-object-sql-storage/with-schemas/index.js +1 -1
- package/min/persisters/persister-durable-object-sql-storage/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-electric-sql/index.js +1 -1
- package/min/persisters/persister-electric-sql/index.js.gz +0 -0
- package/min/persisters/persister-electric-sql/with-schemas/index.js +1 -1
- package/min/persisters/persister-electric-sql/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-expo-sqlite/index.js +1 -1
- package/min/persisters/persister-expo-sqlite/index.js.gz +0 -0
- package/min/persisters/persister-expo-sqlite/with-schemas/index.js +1 -1
- package/min/persisters/persister-expo-sqlite/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-libsql/index.js +1 -1
- package/min/persisters/persister-libsql/index.js.gz +0 -0
- package/min/persisters/persister-libsql/with-schemas/index.js +1 -1
- package/min/persisters/persister-libsql/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-pglite/index.js +1 -1
- package/min/persisters/persister-pglite/index.js.gz +0 -0
- package/min/persisters/persister-pglite/with-schemas/index.js +1 -1
- package/min/persisters/persister-pglite/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-postgres/index.js +1 -1
- package/min/persisters/persister-postgres/index.js.gz +0 -0
- package/min/persisters/persister-postgres/with-schemas/index.js +1 -1
- package/min/persisters/persister-postgres/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-powersync/index.js +1 -1
- package/min/persisters/persister-powersync/index.js.gz +0 -0
- package/min/persisters/persister-powersync/with-schemas/index.js +1 -1
- package/min/persisters/persister-powersync/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-react-native-sqlite/index.js +1 -1
- package/min/persisters/persister-react-native-sqlite/index.js.gz +0 -0
- package/min/persisters/persister-react-native-sqlite/with-schemas/index.js +1 -1
- package/min/persisters/persister-react-native-sqlite/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-sqlite-bun/index.js +1 -1
- package/min/persisters/persister-sqlite-bun/index.js.gz +0 -0
- package/min/persisters/persister-sqlite-bun/with-schemas/index.js +1 -1
- package/min/persisters/persister-sqlite-bun/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-sqlite-wasm/index.js +1 -1
- package/min/persisters/persister-sqlite-wasm/index.js.gz +0 -0
- package/min/persisters/persister-sqlite-wasm/with-schemas/index.js +1 -1
- package/min/persisters/persister-sqlite-wasm/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-sqlite3/index.js +1 -1
- package/min/persisters/persister-sqlite3/index.js.gz +0 -0
- package/min/persisters/persister-sqlite3/with-schemas/index.js +1 -1
- package/min/persisters/persister-sqlite3/with-schemas/index.js.gz +0 -0
- package/min/persisters/with-schemas/index.js +1 -1
- package/min/persisters/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/synchronizers/synchronizer-ws-client/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-ws-server/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-server/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-ws-server/with-schemas/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-server/with-schemas/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-ws-server-durable-object/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-server-durable-object/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-ws-server-durable-object/with-schemas/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-server-durable-object/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 +311 -141
- package/omni/with-schemas/index.js +311 -141
- package/package.json +7 -7
- package/persisters/index.js +129 -37
- package/persisters/persister-cr-sqlite-wasm/index.js +129 -37
- package/persisters/persister-cr-sqlite-wasm/with-schemas/index.js +129 -37
- package/persisters/persister-durable-object-sql-storage/index.js +271 -110
- package/persisters/persister-durable-object-sql-storage/with-schemas/index.js +271 -110
- package/persisters/persister-electric-sql/index.js +129 -37
- package/persisters/persister-electric-sql/with-schemas/index.js +129 -37
- package/persisters/persister-expo-sqlite/index.js +129 -37
- package/persisters/persister-expo-sqlite/with-schemas/index.js +129 -37
- package/persisters/persister-libsql/index.js +129 -37
- package/persisters/persister-libsql/with-schemas/index.js +129 -37
- package/persisters/persister-pglite/index.js +130 -37
- package/persisters/persister-pglite/with-schemas/index.js +130 -37
- package/persisters/persister-postgres/index.js +130 -37
- package/persisters/persister-postgres/with-schemas/index.js +130 -37
- package/persisters/persister-powersync/index.js +182 -117
- package/persisters/persister-powersync/with-schemas/index.js +182 -117
- package/persisters/persister-react-native-sqlite/index.js +129 -37
- package/persisters/persister-react-native-sqlite/with-schemas/index.js +129 -37
- package/persisters/persister-sqlite-bun/index.js +129 -37
- package/persisters/persister-sqlite-bun/with-schemas/index.js +129 -37
- package/persisters/persister-sqlite-wasm/index.js +129 -37
- package/persisters/persister-sqlite-wasm/with-schemas/index.js +129 -37
- package/persisters/persister-sqlite3/index.js +129 -37
- package/persisters/persister-sqlite3/with-schemas/index.js +129 -37
- package/persisters/with-schemas/index.js +129 -37
- package/queries/index.js +21 -19
- package/queries/with-schemas/index.js +21 -19
- package/readme.md +14 -14
- package/relationships/index.js +6 -8
- package/relationships/with-schemas/index.js +6 -8
- package/releases.md +57 -57
- package/synchronizers/synchronizer-ws-client/index.js +116 -42
- package/synchronizers/synchronizer-ws-client/with-schemas/index.js +116 -42
- package/synchronizers/synchronizer-ws-server/index.js +109 -28
- package/synchronizers/synchronizer-ws-server/with-schemas/index.js +109 -28
- package/synchronizers/synchronizer-ws-server-durable-object/index.js +122 -38
- package/synchronizers/synchronizer-ws-server-durable-object/with-schemas/index.js +122 -38
- package/ui-svelte/index.js +1 -1
- package/ui-svelte/with-schemas/index.js +1 -1
- 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 +21 -19
|
@@ -692,7 +692,7 @@ export type SortedTablePaginatorProps = {
|
|
|
692
692
|
*
|
|
693
693
|
* See the <TableInHtmlTable /> (Solid) demo for this component in action:
|
|
694
694
|
*
|
|
695
|
-
* 
|
|
697
697
|
*
|
|
698
698
|
* The component's props identify which Table to render based on Table Id, and
|
|
@@ -836,7 +836,7 @@ export function TableInHtmlTable(
|
|
|
836
836
|
* See the <SortedTableInHtmlTable /> (Solid) demo for this component in
|
|
837
837
|
* action:
|
|
838
838
|
*
|
|
839
|
-
* 
|
|
841
841
|
*
|
|
842
842
|
* The component's props identify which Table to render based on Table Id, and
|
|
@@ -1007,7 +1007,7 @@ export function SortedTableInHtmlTable(
|
|
|
1007
1007
|
*
|
|
1008
1008
|
* See the <ValuesInHtmlTable /> (Solid) demo for this component in action:
|
|
1009
1009
|
*
|
|
1010
|
-
* 
|
|
1012
1012
|
*
|
|
1013
1013
|
* The component's props identify which Row to render based on Table Id, Row Id,
|
|
@@ -1136,7 +1136,7 @@ export function ValuesInHtmlTable(
|
|
|
1136
1136
|
*
|
|
1137
1137
|
* See the <SliceInHtmlTable /> (Solid) demo for this component in action:
|
|
1138
1138
|
*
|
|
1139
|
-
* 
|
|
1141
1141
|
*
|
|
1142
1142
|
* The component's props identify which Slice to render based on Index Id, Slice
|
|
@@ -1292,7 +1292,7 @@ export function SliceInHtmlTable(
|
|
|
1292
1292
|
* See the <RelationshipInHtmlTable /> (Solid) demo for this component in
|
|
1293
1293
|
* action:
|
|
1294
1294
|
*
|
|
1295
|
-
* 
|
|
1297
1297
|
*
|
|
1298
1298
|
* The component's props identify which Relationship to render based on
|
|
@@ -1466,7 +1466,7 @@ export function RelationshipInHtmlTable(
|
|
|
1466
1466
|
* See the <ResultTableInHtmlTable /> (Solid) demo for this component in
|
|
1467
1467
|
* action:
|
|
1468
1468
|
*
|
|
1469
|
-
* 
|
|
1471
1471
|
*
|
|
1472
1472
|
* The component's props identify which ResultTable to render based on query Id,
|
|
@@ -1617,7 +1617,7 @@ export function ResultTableInHtmlTable(
|
|
|
1617
1617
|
* See the <ResultSortedTableInHtmlTable /> (Solid) demo for this component in
|
|
1618
1618
|
* action:
|
|
1619
1619
|
*
|
|
1620
|
-
* 
|
|
1622
1622
|
*
|
|
1623
1623
|
* The component's props identify which ResultTable to render based on query Id,
|
|
@@ -1789,7 +1789,7 @@ export function ResultSortedTableInHtmlTable(
|
|
|
1789
1789
|
*
|
|
1790
1790
|
* See the <EditableCellView /> (Solid) demo for this component in action:
|
|
1791
1791
|
*
|
|
1792
|
-
* 
|
|
1794
1794
|
*
|
|
1795
1795
|
* The component's props identify which Cell to render based on Table Id, Row
|
|
@@ -1859,7 +1859,7 @@ export function EditableCellView(
|
|
|
1859
1859
|
*
|
|
1860
1860
|
* See the <EditableValueView /> (Solid) demo for this component in action:
|
|
1861
1861
|
*
|
|
1862
|
-
* 
|
|
1864
1864
|
*
|
|
1865
1865
|
* The component's props identify which Value to render based on Table Id, Row
|
|
@@ -1929,7 +1929,7 @@ export function EditableValueView(
|
|
|
1929
1929
|
* See the <SortedTableInHtmlTable /> (Solid) demo for this component in
|
|
1930
1930
|
* action:
|
|
1931
1931
|
*
|
|
1932
|
-
* 
|
|
1934
1934
|
*
|
|
1935
1935
|
* The component displays 'previous' and 'next' buttons for paging through the
|
|
@@ -227,8 +227,7 @@ export type TableInHtmlTableProps<
|
|
|
227
227
|
| CellIdFromSchema<Schemas[0], TableId>[]
|
|
228
228
|
| {
|
|
229
229
|
[CellId in CellIdFromSchema<Schemas[0], TableId>]?:
|
|
230
|
-
|
|
|
231
|
-
| CustomCell<Schemas, TableId, CellId>;
|
|
230
|
+
string | CustomCell<Schemas, TableId, CellId>;
|
|
232
231
|
};
|
|
233
232
|
}
|
|
234
233
|
: never
|
|
@@ -307,8 +306,7 @@ export type SortedTableInHtmlTableProps<
|
|
|
307
306
|
| CellIdFromSchema<Schemas[0], TableId>[]
|
|
308
307
|
| {
|
|
309
308
|
[CellId in CellIdFromSchema<Schemas[0], TableId>]?:
|
|
310
|
-
|
|
|
311
|
-
| CustomCell<Schemas, TableId, CellId>;
|
|
309
|
+
string | CustomCell<Schemas, TableId, CellId>;
|
|
312
310
|
};
|
|
313
311
|
/**
|
|
314
312
|
* Whether the table should be interactive such that clicking a header changes
|
|
@@ -425,8 +423,7 @@ export type SliceInHtmlTableProps<Schemas extends OptionalSchemas> = {
|
|
|
425
423
|
* @since v8.4.0
|
|
426
424
|
*/
|
|
427
425
|
readonly customCells?:
|
|
428
|
-
|
|
|
429
|
-
| {[cellId: Id]: string | CustomCell<NoSchemas, Id, Id>};
|
|
426
|
+
Ids | {[cellId: Id]: string | CustomCell<NoSchemas, Id, Id>};
|
|
430
427
|
};
|
|
431
428
|
|
|
432
429
|
/**
|
|
@@ -476,8 +473,7 @@ export type RelationshipInHtmlTableProps<Schemas extends OptionalSchemas> = {
|
|
|
476
473
|
* @since v8.4.0
|
|
477
474
|
*/
|
|
478
475
|
readonly customCells?:
|
|
479
|
-
|
|
|
480
|
-
| {[cellId: Id]: string | CustomCell<NoSchemas, Id, Id>};
|
|
476
|
+
Ids | {[cellId: Id]: string | CustomCell<NoSchemas, Id, Id>};
|
|
481
477
|
};
|
|
482
478
|
|
|
483
479
|
/**
|
|
@@ -512,8 +508,7 @@ export type ResultTableInHtmlTableProps<Schemas extends OptionalSchemas> = {
|
|
|
512
508
|
* @since v8.4.0
|
|
513
509
|
*/
|
|
514
510
|
readonly customCells?:
|
|
515
|
-
|
|
|
516
|
-
| {[cellId: Id]: string | CustomResultCell<Schemas>};
|
|
511
|
+
Ids | {[cellId: Id]: string | CustomResultCell<Schemas>};
|
|
517
512
|
};
|
|
518
513
|
|
|
519
514
|
/**
|
|
@@ -575,8 +570,7 @@ export type ResultSortedTableInHtmlTableProps<Schemas extends OptionalSchemas> =
|
|
|
575
570
|
* @since v8.4.0
|
|
576
571
|
*/
|
|
577
572
|
readonly customCells?:
|
|
578
|
-
|
|
|
579
|
-
| {[cellId: Id]: string | CustomResultCell<Schemas>};
|
|
573
|
+
Ids | {[cellId: Id]: string | CustomResultCell<Schemas>};
|
|
580
574
|
/**
|
|
581
575
|
* Whether the table should be interactive such that clicking a header changes
|
|
582
576
|
* the sorting and/or direction.
|
|
@@ -672,7 +666,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
672
666
|
*
|
|
673
667
|
* See the <TableInHtmlTable /> (Solid) demo for this component in action:
|
|
674
668
|
*
|
|
675
|
-
* 
|
|
677
671
|
*
|
|
678
672
|
* The component's props identify which Table to render based on Table Id, and
|
|
@@ -824,7 +818,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
824
818
|
* See the <SortedTableInHtmlTable /> (Solid) demo for this component in
|
|
825
819
|
* action:
|
|
826
820
|
*
|
|
827
|
-
* 
|
|
829
823
|
*
|
|
830
824
|
* The component's props identify which Table to render based on Table Id, and
|
|
@@ -1003,7 +997,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1003
997
|
*
|
|
1004
998
|
* See the <ValuesInHtmlTable /> (Solid) demo for this component in action:
|
|
1005
999
|
*
|
|
1006
|
-
* 
|
|
1008
1002
|
*
|
|
1009
1003
|
* The component's props identify which Row to render based on Table Id, Row Id,
|
|
@@ -1140,7 +1134,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1140
1134
|
*
|
|
1141
1135
|
* See the <SliceInHtmlTable /> (Solid) demo for this component in action:
|
|
1142
1136
|
*
|
|
1143
|
-
* 
|
|
1145
1139
|
*
|
|
1146
1140
|
* The component's props identify which Slice to render based on Index Id, Slice
|
|
@@ -1304,7 +1298,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1304
1298
|
* See the <RelationshipInHtmlTable /> (Solid) demo for this component in
|
|
1305
1299
|
* action:
|
|
1306
1300
|
*
|
|
1307
|
-
* 
|
|
1309
1303
|
*
|
|
1310
1304
|
* The component's props identify which Relationship to render based on
|
|
@@ -1486,7 +1480,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1486
1480
|
* See the <ResultTableInHtmlTable /> (Solid) demo for this component in
|
|
1487
1481
|
* action:
|
|
1488
1482
|
*
|
|
1489
|
-
* 
|
|
1491
1485
|
*
|
|
1492
1486
|
* The component's props identify which ResultTable to render based on query Id,
|
|
@@ -1645,7 +1639,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1645
1639
|
* See the <ResultSortedTableInHtmlTable /> (Solid) demo for this component in
|
|
1646
1640
|
* action:
|
|
1647
1641
|
*
|
|
1648
|
-
* 
|
|
1650
1644
|
*
|
|
1651
1645
|
* The component's props identify which ResultTable to render based on query Id,
|
|
@@ -1825,7 +1819,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1825
1819
|
*
|
|
1826
1820
|
* See the <EditableCellView /> (Solid) demo for this component in action:
|
|
1827
1821
|
*
|
|
1828
|
-
* 
|
|
1830
1824
|
*
|
|
1831
1825
|
* The component's props identify which Cell to render based on Table Id, Row
|
|
@@ -1909,7 +1903,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1909
1903
|
*
|
|
1910
1904
|
* See the <EditableValueView /> (Solid) demo for this component in action:
|
|
1911
1905
|
*
|
|
1912
|
-
* 
|
|
1914
1908
|
*
|
|
1915
1909
|
* The component's props identify which Value to render based on Table Id, Row
|
|
@@ -1979,7 +1973,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1979
1973
|
* See the <SortedTableInHtmlTable /> (Solid) demo for this component in
|
|
1980
1974
|
* action:
|
|
1981
1975
|
*
|
|
1982
|
-
* 
|
|
1984
1978
|
*
|
|
1985
1979
|
* The component displays 'previous' and 'next' buttons for paging through the
|
|
@@ -46,7 +46,7 @@ export type InspectorProps = {
|
|
|
46
46
|
*
|
|
47
47
|
* See the <Inspector /> (Solid) demo for this component in action:
|
|
48
48
|
*
|
|
49
|
-
* 
|
|
51
51
|
*
|
|
52
52
|
* The component displays a nub in the corner of the screen which you may then
|
|
@@ -46,7 +46,7 @@ export type InspectorProps = {
|
|
|
46
46
|
*
|
|
47
47
|
* See the <Inspector /> (Solid) demo for this component in action:
|
|
48
48
|
*
|
|
49
|
-
* 
|
|
51
51
|
*
|
|
52
52
|
* The component displays a nub in the corner of the screen which you may then
|
|
@@ -690,7 +690,7 @@ export type SortedTablePaginatorProps = {
|
|
|
690
690
|
*
|
|
691
691
|
* See the <TableInHtmlTable /> (Svelte) demo for this component in action:
|
|
692
692
|
*
|
|
693
|
-
* 
|
|
695
695
|
*
|
|
696
696
|
* The component's props identify which Table to render based on Table Id, and
|
|
@@ -854,7 +854,7 @@ export const TableInHtmlTable: Component<
|
|
|
854
854
|
* See the <SortedTableInHtmlTable /> (Svelte) demo for this component in
|
|
855
855
|
* action:
|
|
856
856
|
*
|
|
857
|
-
* 
|
|
859
859
|
*
|
|
860
860
|
* The component's props identify which Table to render based on Table Id, and
|
|
@@ -1042,7 +1042,7 @@ export const SortedTableInHtmlTable: Component<
|
|
|
1042
1042
|
*
|
|
1043
1043
|
* See the <ValuesInHtmlTable /> (Svelte) demo for this component in action:
|
|
1044
1044
|
*
|
|
1045
|
-
* 
|
|
1047
1047
|
*
|
|
1048
1048
|
* The component's props identify which Row to render based on Table Id, Row Id,
|
|
@@ -1185,7 +1185,7 @@ export const ValuesInHtmlTable: Component<
|
|
|
1185
1185
|
*
|
|
1186
1186
|
* See the <SliceInHtmlTable /> (Svelte) demo for this component in action:
|
|
1187
1187
|
*
|
|
1188
|
-
* 
|
|
1190
1190
|
*
|
|
1191
1191
|
* The component's props identify which Slice to render based on Index Id, Slice
|
|
@@ -1357,7 +1357,7 @@ export const SliceInHtmlTable: Component<
|
|
|
1357
1357
|
* See the <RelationshipInHtmlTable /> (Svelte) demo for this component in
|
|
1358
1358
|
* action:
|
|
1359
1359
|
*
|
|
1360
|
-
* 
|
|
1362
1362
|
*
|
|
1363
1363
|
* The component's props identify which Relationship to render based on
|
|
@@ -1544,7 +1544,7 @@ export const RelationshipInHtmlTable: Component<
|
|
|
1544
1544
|
* See the <ResultTableInHtmlTable /> (Svelte) demo for this component in
|
|
1545
1545
|
* action:
|
|
1546
1546
|
*
|
|
1547
|
-
* 
|
|
1549
1549
|
*
|
|
1550
1550
|
* The component's props identify which ResultTable to render based on query Id,
|
|
@@ -1713,7 +1713,7 @@ export const ResultTableInHtmlTable: Component<
|
|
|
1713
1713
|
* See the <ResultSortedTableInHtmlTable /> (Svelte) demo for this component in
|
|
1714
1714
|
* action:
|
|
1715
1715
|
*
|
|
1716
|
-
* 
|
|
1718
1718
|
*
|
|
1719
1719
|
* The component's props identify which ResultTable to render based on query Id,
|
|
@@ -1902,7 +1902,7 @@ export const ResultSortedTableInHtmlTable: Component<
|
|
|
1902
1902
|
*
|
|
1903
1903
|
* See the <EditableCellView /> (Svelte) demo for this component in action:
|
|
1904
1904
|
*
|
|
1905
|
-
* 
|
|
1907
1907
|
*
|
|
1908
1908
|
* The component's props identify which Cell to render based on Table Id, Row
|
|
@@ -1975,7 +1975,7 @@ export const EditableCellView: Component<
|
|
|
1975
1975
|
*
|
|
1976
1976
|
* See the <EditableValueView /> (Svelte) demo for this component in action:
|
|
1977
1977
|
*
|
|
1978
|
-
* 
|
|
1980
1980
|
*
|
|
1981
1981
|
* The component's props identify which Value to render based on Table Id, Row
|
|
@@ -2050,7 +2050,7 @@ export const EditableValueView: Component<
|
|
|
2050
2050
|
* See the <SortedTableInHtmlTable /> (Svelte) demo for this component in
|
|
2051
2051
|
* action:
|
|
2052
2052
|
*
|
|
2053
|
-
* 
|
|
2055
2055
|
*
|
|
2056
2056
|
* The component displays 'previous' and 'next' buttons for paging through the
|
|
@@ -225,8 +225,7 @@ export type TableInHtmlTableProps<
|
|
|
225
225
|
| CellIdFromSchema<Schemas[0], TableId>[]
|
|
226
226
|
| {
|
|
227
227
|
[CellId in CellIdFromSchema<Schemas[0], TableId>]?:
|
|
228
|
-
|
|
|
229
|
-
| CustomCell<Schemas, TableId, CellId>;
|
|
228
|
+
string | CustomCell<Schemas, TableId, CellId>;
|
|
230
229
|
};
|
|
231
230
|
}
|
|
232
231
|
: never
|
|
@@ -305,8 +304,7 @@ export type SortedTableInHtmlTableProps<
|
|
|
305
304
|
| CellIdFromSchema<Schemas[0], TableId>[]
|
|
306
305
|
| {
|
|
307
306
|
[CellId in CellIdFromSchema<Schemas[0], TableId>]?:
|
|
308
|
-
|
|
|
309
|
-
| CustomCell<Schemas, TableId, CellId>;
|
|
307
|
+
string | CustomCell<Schemas, TableId, CellId>;
|
|
310
308
|
};
|
|
311
309
|
/**
|
|
312
310
|
* Whether the table should be interactive such that clicking a header changes
|
|
@@ -423,8 +421,7 @@ export type SliceInHtmlTableProps<Schemas extends OptionalSchemas> = {
|
|
|
423
421
|
* @since v4.1.0
|
|
424
422
|
*/
|
|
425
423
|
readonly customCells?:
|
|
426
|
-
|
|
|
427
|
-
| {[cellId: Id]: string | CustomCell<NoSchemas, Id, Id>};
|
|
424
|
+
Ids | {[cellId: Id]: string | CustomCell<NoSchemas, Id, Id>};
|
|
428
425
|
};
|
|
429
426
|
|
|
430
427
|
/**
|
|
@@ -474,8 +471,7 @@ export type RelationshipInHtmlTableProps<Schemas extends OptionalSchemas> = {
|
|
|
474
471
|
* @since v4.1.0
|
|
475
472
|
*/
|
|
476
473
|
readonly customCells?:
|
|
477
|
-
|
|
|
478
|
-
| {[cellId: Id]: string | CustomCell<NoSchemas, Id, Id>};
|
|
474
|
+
Ids | {[cellId: Id]: string | CustomCell<NoSchemas, Id, Id>};
|
|
479
475
|
};
|
|
480
476
|
|
|
481
477
|
/**
|
|
@@ -510,8 +506,7 @@ export type ResultTableInHtmlTableProps<Schemas extends OptionalSchemas> = {
|
|
|
510
506
|
* @since v4.1.0
|
|
511
507
|
*/
|
|
512
508
|
readonly customCells?:
|
|
513
|
-
|
|
|
514
|
-
| {[cellId: Id]: string | CustomResultCell<Schemas>};
|
|
509
|
+
Ids | {[cellId: Id]: string | CustomResultCell<Schemas>};
|
|
515
510
|
};
|
|
516
511
|
|
|
517
512
|
/**
|
|
@@ -573,8 +568,7 @@ export type ResultSortedTableInHtmlTableProps<Schemas extends OptionalSchemas> =
|
|
|
573
568
|
* @since v4.1.0
|
|
574
569
|
*/
|
|
575
570
|
readonly customCells?:
|
|
576
|
-
|
|
|
577
|
-
| {[cellId: Id]: string | CustomResultCell<Schemas>};
|
|
571
|
+
Ids | {[cellId: Id]: string | CustomResultCell<Schemas>};
|
|
578
572
|
/**
|
|
579
573
|
* Whether the table should be interactive such that clicking a header changes
|
|
580
574
|
* the sorting and/or direction.
|
|
@@ -670,7 +664,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
670
664
|
*
|
|
671
665
|
* See the <TableInHtmlTable /> (Svelte) demo for this component in action:
|
|
672
666
|
*
|
|
673
|
-
* 
|
|
675
669
|
*
|
|
676
670
|
* The component's props identify which Table to render based on Table Id, and
|
|
@@ -840,7 +834,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
840
834
|
* See the <SortedTableInHtmlTable /> (Svelte) demo for this component in
|
|
841
835
|
* action:
|
|
842
836
|
*
|
|
843
|
-
* 
|
|
845
839
|
*
|
|
846
840
|
* The component's props identify which Table to render based on Table Id, and
|
|
@@ -1036,7 +1030,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1036
1030
|
*
|
|
1037
1031
|
* See the <ValuesInHtmlTable /> (Svelte) demo for this component in action:
|
|
1038
1032
|
*
|
|
1039
|
-
* 
|
|
1041
1035
|
*
|
|
1042
1036
|
* The component's props identify which Row to render based on Table Id, Row Id,
|
|
@@ -1187,7 +1181,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1187
1181
|
*
|
|
1188
1182
|
* See the <SliceInHtmlTable /> (Svelte) demo for this component in action:
|
|
1189
1183
|
*
|
|
1190
|
-
* 
|
|
1192
1186
|
*
|
|
1193
1187
|
* The component's props identify which Slice to render based on Index Id, Slice
|
|
@@ -1365,7 +1359,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1365
1359
|
* See the <RelationshipInHtmlTable /> (Svelte) demo for this component in
|
|
1366
1360
|
* action:
|
|
1367
1361
|
*
|
|
1368
|
-
* 
|
|
1370
1364
|
*
|
|
1371
1365
|
* The component's props identify which Relationship to render based on
|
|
@@ -1560,7 +1554,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1560
1554
|
* See the <ResultTableInHtmlTable /> (Svelte) demo for this component in
|
|
1561
1555
|
* action:
|
|
1562
1556
|
*
|
|
1563
|
-
* 
|
|
1565
1559
|
*
|
|
1566
1560
|
* The component's props identify which ResultTable to render based on query Id,
|
|
@@ -1737,7 +1731,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1737
1731
|
* See the <ResultSortedTableInHtmlTable /> (Svelte) demo for this component in
|
|
1738
1732
|
* action:
|
|
1739
1733
|
*
|
|
1740
|
-
* 
|
|
1742
1736
|
*
|
|
1743
1737
|
* The component's props identify which ResultTable to render based on query Id,
|
|
@@ -1934,7 +1928,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1934
1928
|
*
|
|
1935
1929
|
* See the <EditableCellView /> (Svelte) demo for this component in action:
|
|
1936
1930
|
*
|
|
1937
|
-
* 
|
|
1939
1933
|
*
|
|
1940
1934
|
* The component's props identify which Cell to render based on Table Id, Row
|
|
@@ -2021,7 +2015,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
2021
2015
|
*
|
|
2022
2016
|
* See the <EditableValueView /> (Svelte) demo for this component in action:
|
|
2023
2017
|
*
|
|
2024
|
-
* 
|
|
2026
2020
|
*
|
|
2027
2021
|
* The component's props identify which Value to render based on Table Id, Row
|
|
@@ -2096,7 +2090,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
2096
2090
|
* See the <SortedTableInHtmlTable /> (Svelte) demo for this component in
|
|
2097
2091
|
* action:
|
|
2098
2092
|
*
|
|
2099
|
-
* 
|
|
2101
2095
|
*
|
|
2102
2096
|
* The component displays 'previous' and 'next' buttons for paging through the
|
|
@@ -46,7 +46,7 @@ export type InspectorProps = {
|
|
|
46
46
|
*
|
|
47
47
|
* See the <Inspector /> (Svelte) demo for this component in action:
|
|
48
48
|
*
|
|
49
|
-
* 
|
|
51
51
|
*
|
|
52
52
|
* The component displays a nub in the corner of the screen which you may then
|
|
@@ -46,7 +46,7 @@ export type InspectorProps = {
|
|
|
46
46
|
*
|
|
47
47
|
* See the <Inspector /> (Svelte) demo for this component in action:
|
|
48
48
|
*
|
|
49
|
-
* 
|
|
51
51
|
*
|
|
52
52
|
* The component displays a nub in the corner of the screen which you may then
|
package/index.js
CHANGED
|
@@ -339,14 +339,12 @@ const getDefinableFunctions = (
|
|
|
339
339
|
const newRowValue = hasRow(tableId, rowId)
|
|
340
340
|
? validateRowValue(getRowValue(getCell, rowId))
|
|
341
341
|
: void 0;
|
|
342
|
-
if (
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
)
|
|
349
|
-
) {
|
|
342
|
+
if (!(
|
|
343
|
+
oldRowValue === newRowValue ||
|
|
344
|
+
(isArray(oldRowValue) &&
|
|
345
|
+
isArray(newRowValue) &&
|
|
346
|
+
arrayIsEqual(oldRowValue, newRowValue))
|
|
347
|
+
)) {
|
|
350
348
|
mapSet(changedRowValues, rowId, [oldRowValue, newRowValue]);
|
|
351
349
|
}
|
|
352
350
|
if (!isUndefined(getSortKey)) {
|
|
@@ -3753,9 +3751,9 @@ const PARAMS_TABLE = '_';
|
|
|
3753
3751
|
const PARAM_LISTENER_PREFIX = 'p';
|
|
3754
3752
|
const createQueries = getCreateFunction((store) => {
|
|
3755
3753
|
const createStore = store._[0];
|
|
3756
|
-
const preStore = createStore();
|
|
3757
3754
|
const paramStore = createStore();
|
|
3758
3755
|
const resultStore = createStore();
|
|
3756
|
+
const preStores = mapNew();
|
|
3759
3757
|
const resultStores = mapNew();
|
|
3760
3758
|
const redefiningQueryIds = setNew();
|
|
3761
3759
|
const routedResultListeners = mapNew();
|
|
@@ -3798,12 +3796,13 @@ const createQueries = getCreateFunction((store) => {
|
|
|
3798
3796
|
);
|
|
3799
3797
|
const getResultStore = (queryId) =>
|
|
3800
3798
|
mapEnsure(resultStores, queryId, createStore);
|
|
3801
|
-
const
|
|
3799
|
+
const getPreStore = (queryId) => mapEnsure(preStores, queryId, createStore);
|
|
3800
|
+
const addPreStoreListener = (preStore, queryId, ...listenerIds) =>
|
|
3802
3801
|
arrayForEach(listenerIds, (listenerId) =>
|
|
3803
3802
|
setAdd(
|
|
3804
3803
|
mapEnsure(
|
|
3805
3804
|
mapEnsure(preStoreListenerIds, queryId, mapNew),
|
|
3806
|
-
|
|
3805
|
+
preStore,
|
|
3807
3806
|
setNew,
|
|
3808
3807
|
),
|
|
3809
3808
|
listenerId,
|
|
@@ -3813,16 +3812,17 @@ const createQueries = getCreateFunction((store) => {
|
|
|
3813
3812
|
ifNotUndefined(
|
|
3814
3813
|
mapGet(preStoreListenerIds, queryId),
|
|
3815
3814
|
(queryPreStoreListenerIds) => {
|
|
3816
|
-
mapForEach(queryPreStoreListenerIds, (
|
|
3815
|
+
mapForEach(queryPreStoreListenerIds, (preStore, listenerIds) =>
|
|
3817
3816
|
collForEach(listenerIds, (listenerId) =>
|
|
3818
|
-
|
|
3817
|
+
preStore.delListener(listenerId),
|
|
3819
3818
|
),
|
|
3820
3819
|
);
|
|
3821
3820
|
collClear(queryPreStoreListenerIds);
|
|
3822
3821
|
},
|
|
3823
3822
|
);
|
|
3824
|
-
arrayForEach(
|
|
3825
|
-
|
|
3823
|
+
arrayForEach(
|
|
3824
|
+
[getResultStore(queryId), mapGet(preStores, queryId)],
|
|
3825
|
+
(store2) => store2?.delTable(queryId),
|
|
3826
3826
|
);
|
|
3827
3827
|
};
|
|
3828
3828
|
const addSourceStoreListeners = (
|
|
@@ -4050,10 +4050,12 @@ const createQueries = getCreateFunction((store) => {
|
|
|
4050
4050
|
),
|
|
4051
4051
|
);
|
|
4052
4052
|
const groups = mapNew(groupEntries);
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4053
|
+
const hasGroupsOrHavings =
|
|
4054
|
+
!collIsEmpty(groups) || !arrayIsEmpty(havings);
|
|
4055
|
+
const selectJoinWhereStore = hasGroupsOrHavings
|
|
4056
|
+
? getPreStore(queryId)
|
|
4057
|
+
: resultStore2;
|
|
4058
|
+
if (hasGroupsOrHavings) {
|
|
4057
4059
|
synchronizeTransactions(queryId, selectJoinWhereStore, resultStore2);
|
|
4058
4060
|
const groupedSelectedCellIds = mapNew();
|
|
4059
4061
|
mapForEach(groups, (groupedCellId, [selectedCellId, aggregators]) =>
|
package/indexes/index.js
CHANGED
|
@@ -153,14 +153,12 @@ const getDefinableFunctions = (
|
|
|
153
153
|
const newRowValue = hasRow(tableId, rowId)
|
|
154
154
|
? validateRowValue(getRowValue(getCell, rowId))
|
|
155
155
|
: void 0;
|
|
156
|
-
if (
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
)
|
|
163
|
-
) {
|
|
156
|
+
if (!(
|
|
157
|
+
oldRowValue === newRowValue ||
|
|
158
|
+
(isArray(oldRowValue) &&
|
|
159
|
+
isArray(newRowValue) &&
|
|
160
|
+
arrayIsEqual(oldRowValue, newRowValue))
|
|
161
|
+
)) {
|
|
164
162
|
mapSet(changedRowValues, rowId, [oldRowValue, newRowValue]);
|
|
165
163
|
}
|
|
166
164
|
if (!isUndefined(getSortKey)) {
|
|
@@ -153,14 +153,12 @@ const getDefinableFunctions = (
|
|
|
153
153
|
const newRowValue = hasRow(tableId, rowId)
|
|
154
154
|
? validateRowValue(getRowValue(getCell, rowId))
|
|
155
155
|
: void 0;
|
|
156
|
-
if (
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
)
|
|
163
|
-
) {
|
|
156
|
+
if (!(
|
|
157
|
+
oldRowValue === newRowValue ||
|
|
158
|
+
(isArray(oldRowValue) &&
|
|
159
|
+
isArray(newRowValue) &&
|
|
160
|
+
arrayIsEqual(oldRowValue, newRowValue))
|
|
161
|
+
)) {
|
|
164
162
|
mapSet(changedRowValues, rowId, [oldRowValue, newRowValue]);
|
|
165
163
|
}
|
|
166
164
|
if (!isUndefined(getSortKey)) {
|