tinybase 9.1.0-beta.1 → 9.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/_internal/store/with-schemas/index.d.ts +133 -2
- package/@types/indexes/index.d.ts +97 -0
- package/@types/indexes/with-schemas/index.d.ts +137 -0
- package/@types/store/index.d.ts +96 -18
- package/@types/store/with-schemas/index.d.ts +107 -44
- package/@types/ui-react/index.d.ts +42 -0
- package/@types/ui-react/with-schemas/index.d.ts +101 -32
- package/@types/ui-react-dom/index.d.ts +10 -10
- package/@types/ui-react-dom/with-schemas/index.d.ts +10 -10
- package/@types/ui-react-dom-charts/index.d.ts +7 -7
- package/@types/ui-react-dom-charts/with-schemas/index.d.ts +7 -7
- 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/index.d.ts +42 -0
- package/@types/ui-solid/with-schemas/index.d.ts +101 -32
- package/@types/ui-solid-dom/index.d.ts +10 -10
- package/@types/ui-solid-dom/with-schemas/index.d.ts +10 -10
- 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/index.d.ts +34 -0
- package/@types/ui-svelte/with-schemas/index.d.ts +34 -0
- package/@types/ui-svelte-dom/index.d.ts +10 -10
- package/@types/ui-svelte-dom/with-schemas/index.d.ts +10 -10
- 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 +121 -32
- package/indexes/index.js +39 -0
- package/indexes/with-schemas/index.js +39 -0
- package/mergeable-store/index.js +82 -32
- package/mergeable-store/with-schemas/index.js +82 -32
- 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/mergeable-store/index.js +1 -1
- package/min/mergeable-store/index.js.gz +0 -0
- package/min/mergeable-store/with-schemas/index.js +1 -1
- package/min/mergeable-store/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/store/index.js +1 -1
- package/min/store/index.js.gz +0 -0
- package/min/store/with-schemas/index.js +1 -1
- package/min/store/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-react-inspector/index.js +1 -1
- package/min/ui-react-inspector/index.js.gz +0 -0
- package/min/ui-react-inspector/with-schemas/index.js +1 -1
- package/min/ui-react-inspector/with-schemas/index.js.gz +0 -0
- package/min/ui-solid/index.js +1 -1
- package/min/ui-solid/index.js.gz +0 -0
- package/min/ui-solid/with-schemas/index.js +1 -1
- package/min/ui-solid/with-schemas/index.js.gz +0 -0
- package/min/ui-solid-inspector/index.js +1 -1
- package/min/ui-solid-inspector/index.js.gz +0 -0
- package/min/ui-solid-inspector/with-schemas/index.js +1 -1
- package/min/ui-solid-inspector/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/ui-svelte-inspector/index.js +1 -1
- package/min/ui-svelte-inspector/index.js.gz +0 -0
- package/min/ui-svelte-inspector/with-schemas/index.js +1 -1
- package/min/ui-svelte-inspector/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 +121 -32
- package/omni/with-schemas/index.js +121 -32
- package/package.json +5 -5
- package/readme.md +14 -14
- package/releases.md +101 -60
- package/store/index.js +82 -32
- package/store/with-schemas/index.js +82 -32
- package/ui-react/index.js +16 -0
- package/ui-react/with-schemas/index.js +16 -0
- package/ui-react-inspector/index.js +82 -32
- package/ui-react-inspector/with-schemas/index.js +82 -32
- package/ui-solid/index.js +16 -0
- package/ui-solid/with-schemas/index.js +16 -0
- package/ui-solid-inspector/index.js +82 -32
- package/ui-solid-inspector/with-schemas/index.js +82 -32
- package/ui-svelte/index.js +18 -0
- package/ui-svelte/with-schemas/index.js +18 -0
- package/ui-svelte-inspector/index.js +82 -32
- package/ui-svelte-inspector/with-schemas/index.js +82 -32
- package/with-schemas/index.js +121 -32
|
@@ -668,7 +668,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
668
668
|
*
|
|
669
669
|
* See the <TableInHtmlTable /> (React) demo for this component in action:
|
|
670
670
|
*
|
|
671
|
-
* 
|
|
673
673
|
*
|
|
674
674
|
* The component's props identify which Table to render based on Table Id, and
|
|
@@ -822,7 +822,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
822
822
|
* See the <SortedTableInHtmlTable /> (React) demo for this component in
|
|
823
823
|
* action:
|
|
824
824
|
*
|
|
825
|
-
* 
|
|
827
827
|
*
|
|
828
828
|
* The component's props identify which Table to render based on Table Id, and
|
|
@@ -1003,7 +1003,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1003
1003
|
*
|
|
1004
1004
|
* See the <ValuesInHtmlTable /> (React) demo for this component in action:
|
|
1005
1005
|
*
|
|
1006
|
-
* 
|
|
1008
1008
|
*
|
|
1009
1009
|
* The component's props identify which Row to render based on Table Id, Row Id,
|
|
@@ -1142,7 +1142,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1142
1142
|
*
|
|
1143
1143
|
* See the <SliceInHtmlTable /> (React) demo for this component in action:
|
|
1144
1144
|
*
|
|
1145
|
-
* 
|
|
1147
1147
|
*
|
|
1148
1148
|
* The component's props identify which Slice to render based on Index Id, Slice
|
|
@@ -1308,7 +1308,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1308
1308
|
* See the <RelationshipInHtmlTable /> (React) demo for this component in
|
|
1309
1309
|
* action:
|
|
1310
1310
|
*
|
|
1311
|
-
* 
|
|
1313
1313
|
*
|
|
1314
1314
|
* The component's props identify which Relationship to render based on
|
|
@@ -1494,7 +1494,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1494
1494
|
* See the <ResultTableInHtmlTable /> (React) demo for this component in
|
|
1495
1495
|
* action:
|
|
1496
1496
|
*
|
|
1497
|
-
* 
|
|
1499
1499
|
*
|
|
1500
1500
|
* The component's props identify which ResultTable to render based on query Id,
|
|
@@ -1655,7 +1655,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1655
1655
|
* See the <ResultSortedTableInHtmlTable /> (React) demo for this component in
|
|
1656
1656
|
* action:
|
|
1657
1657
|
*
|
|
1658
|
-
* 
|
|
1660
1660
|
*
|
|
1661
1661
|
* The component's props identify which ResultTable to render based on query Id,
|
|
@@ -1837,7 +1837,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1837
1837
|
*
|
|
1838
1838
|
* See the <EditableCellView /> (React) demo for this component in action:
|
|
1839
1839
|
*
|
|
1840
|
-
* 
|
|
1842
1842
|
*
|
|
1843
1843
|
* The component's props identify which Cell to render based on Table Id, Row
|
|
@@ -1922,7 +1922,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1922
1922
|
*
|
|
1923
1923
|
* See the <EditableValueView /> (React) demo for this component in action:
|
|
1924
1924
|
*
|
|
1925
|
-
* 
|
|
1927
1927
|
*
|
|
1928
1928
|
* The component's props identify which Value to render based on Table Id, Row
|
|
@@ -1993,7 +1993,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1993
1993
|
* See the <SortedTableInHtmlTable /> (React) demo for this component in
|
|
1994
1994
|
* action:
|
|
1995
1995
|
*
|
|
1996
|
-
* 
|
|
1998
1998
|
*
|
|
1999
1999
|
* The component displays 'previous' and 'next' buttons for paging through the
|
|
@@ -483,7 +483,7 @@ export type YAxisProps = {
|
|
|
483
483
|
*
|
|
484
484
|
* See the Composing Charts (React) demo for this component in action:
|
|
485
485
|
*
|
|
486
|
-
* 
|
|
488
488
|
*
|
|
489
489
|
* The series children declare their own xCellId and yCellId bindings. The
|
|
@@ -542,7 +542,7 @@ export function CartesianChart(
|
|
|
542
542
|
*
|
|
543
543
|
* See the Axis Overrides (React) demo for this component in action:
|
|
544
544
|
*
|
|
545
|
-
* 
|
|
547
547
|
* @category Store components
|
|
548
548
|
* @since v8.5.0
|
|
@@ -558,7 +558,7 @@ export function XAxis(props: XAxisProps): ComponentReturnType;
|
|
|
558
558
|
*
|
|
559
559
|
* See the Axis Overrides (React) demo for this component in action:
|
|
560
560
|
*
|
|
561
|
-
* 
|
|
563
563
|
* @category Store components
|
|
564
564
|
* @since v8.5.0
|
|
@@ -574,7 +574,7 @@ export function YAxis(props: YAxisProps): ComponentReturnType;
|
|
|
574
574
|
*
|
|
575
575
|
* See the Composing Charts (React) demo for this component in action:
|
|
576
576
|
*
|
|
577
|
-
* 
|
|
579
579
|
* @category Store components
|
|
580
580
|
* @since v8.5.0
|
|
@@ -590,7 +590,7 @@ export function LineSeries(props: SeriesProps): ComponentReturnType;
|
|
|
590
590
|
*
|
|
591
591
|
* See the Composing Charts (React) demo for this component in action:
|
|
592
592
|
*
|
|
593
|
-
* 
|
|
595
595
|
* @category Store components
|
|
596
596
|
* @since v8.5.0
|
|
@@ -607,7 +607,7 @@ export function BarSeries(props: SeriesProps): ComponentReturnType;
|
|
|
607
607
|
*
|
|
608
608
|
* See the <LineChart /> (React) demo for this component in action:
|
|
609
609
|
*
|
|
610
|
-
* 
|
|
612
612
|
* @category Store components
|
|
613
613
|
* @since v8.5.0
|
|
@@ -660,7 +660,7 @@ export function LineChart(
|
|
|
660
660
|
*
|
|
661
661
|
* See the Sorting And Types (React) demo for this component in action:
|
|
662
662
|
*
|
|
663
|
-
* 
|
|
665
665
|
* @category Store components
|
|
666
666
|
* @since v8.5.0
|
|
@@ -544,7 +544,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
544
544
|
*
|
|
545
545
|
* See the Composing Charts (React) demo for this component in action:
|
|
546
546
|
*
|
|
547
|
-
* 
|
|
549
549
|
*
|
|
550
550
|
* The series children declare their own xCellId and yCellId bindings. The
|
|
@@ -609,7 +609,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
609
609
|
*
|
|
610
610
|
* See the Axis Overrides (React) demo for this component in action:
|
|
611
611
|
*
|
|
612
|
-
* 
|
|
614
614
|
* @category Store components
|
|
615
615
|
* @since v8.5.0
|
|
@@ -625,7 +625,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
625
625
|
*
|
|
626
626
|
* See the Axis Overrides (React) demo for this component in action:
|
|
627
627
|
*
|
|
628
|
-
* 
|
|
630
630
|
* @category Store components
|
|
631
631
|
* @since v8.5.0
|
|
@@ -641,7 +641,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
641
641
|
*
|
|
642
642
|
* See the Composing Charts (React) demo for this component in action:
|
|
643
643
|
*
|
|
644
|
-
* 
|
|
646
646
|
* @category Store components
|
|
647
647
|
* @since v8.5.0
|
|
@@ -657,7 +657,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
657
657
|
*
|
|
658
658
|
* See the Composing Charts (React) demo for this component in action:
|
|
659
659
|
*
|
|
660
|
-
* 
|
|
662
662
|
* @category Store components
|
|
663
663
|
* @since v8.5.0
|
|
@@ -684,7 +684,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
684
684
|
*
|
|
685
685
|
* See the <LineChart /> (React) demo for this component in action:
|
|
686
686
|
*
|
|
687
|
-
* 
|
|
689
689
|
* @category Store components
|
|
690
690
|
* @since v8.5.0
|
|
@@ -750,7 +750,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
750
750
|
*
|
|
751
751
|
* See the Sorting And Types (React) demo for this component in action:
|
|
752
752
|
*
|
|
753
|
-
* 
|
|
755
755
|
* @category Store components
|
|
756
756
|
* @since v8.5.0
|
|
@@ -46,7 +46,7 @@ export type InspectorProps = {
|
|
|
46
46
|
*
|
|
47
47
|
* See the <Inspector /> (React) 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 /> (React) 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
|
|
@@ -6871,6 +6871,26 @@ export function useIndexIds(
|
|
|
6871
6871
|
indexesOrIndexesId?: MaybeAccessor<IndexesOrIndexesId | undefined>,
|
|
6872
6872
|
): Accessor<Ids>;
|
|
6873
6873
|
|
|
6874
|
+
/**
|
|
6875
|
+
* The useHasIndex primitive returns a boolean indicating whether a given Index
|
|
6876
|
+
* exists in the Indexes object, and registers a listener so that any changes to
|
|
6877
|
+
* that result will cause an update.
|
|
6878
|
+
*
|
|
6879
|
+
* This primitive follows the same Indexes object resolution rules as the
|
|
6880
|
+
* useIndexIds primitive.
|
|
6881
|
+
* @param indexId The Id of a possible Index in the Indexes object.
|
|
6882
|
+
* @param indexesOrIndexesId The Indexes object to be accessed: omit for the
|
|
6883
|
+
* default context Indexes object, provide an Id for a named context Indexes
|
|
6884
|
+
* object, or provide an explicit reference.
|
|
6885
|
+
* @returns Whether an Index with that Id exists.
|
|
6886
|
+
* @category Indexes primitives
|
|
6887
|
+
* @since v9.1.0
|
|
6888
|
+
*/
|
|
6889
|
+
export function useHasIndex(
|
|
6890
|
+
indexId: MaybeAccessor<Id>,
|
|
6891
|
+
indexesOrIndexesId?: MaybeAccessor<IndexesOrIndexesId | undefined>,
|
|
6892
|
+
): Accessor<boolean>;
|
|
6893
|
+
|
|
6874
6894
|
/**
|
|
6875
6895
|
* The useSliceIds primitive gets the list of Slice Ids in an Index, and
|
|
6876
6896
|
* registers a listener so that any changes to that result will cause an update.
|
|
@@ -6958,6 +6978,28 @@ export function useSliceIds(
|
|
|
6958
6978
|
indexesOrIndexesId?: MaybeAccessor<IndexesOrIndexesId | undefined>,
|
|
6959
6979
|
): Accessor<Ids>;
|
|
6960
6980
|
|
|
6981
|
+
/**
|
|
6982
|
+
* The useHasSlice primitive returns a boolean indicating whether a given Slice
|
|
6983
|
+
* exists in an Index, and registers a listener so that any changes to that
|
|
6984
|
+
* result will cause an update.
|
|
6985
|
+
*
|
|
6986
|
+
* This primitive follows the same Indexes object resolution rules as the
|
|
6987
|
+
* useSliceIds primitive.
|
|
6988
|
+
* @param indexId The Id of a possible Index in the Indexes object.
|
|
6989
|
+
* @param sliceId The Id of a possible Slice in the Index.
|
|
6990
|
+
* @param indexesOrIndexesId The Indexes object to be accessed: omit for the
|
|
6991
|
+
* default context Indexes object, provide an Id for a named context Indexes
|
|
6992
|
+
* object, or provide an explicit reference.
|
|
6993
|
+
* @returns Whether a Slice with that Id exists.
|
|
6994
|
+
* @category Indexes primitives
|
|
6995
|
+
* @since v9.1.0
|
|
6996
|
+
*/
|
|
6997
|
+
export function useHasSlice(
|
|
6998
|
+
indexId: MaybeAccessor<Id>,
|
|
6999
|
+
sliceId: MaybeAccessor<Id>,
|
|
7000
|
+
indexesOrIndexesId?: MaybeAccessor<IndexesOrIndexesId | undefined>,
|
|
7001
|
+
): Accessor<boolean>;
|
|
7002
|
+
|
|
6961
7003
|
/**
|
|
6962
7004
|
* The useSliceRowIds primitive gets the list of Row Ids in a given Slice, and
|
|
6963
7005
|
* registers a listener so that any changes to that result will cause an update.
|
|
@@ -143,6 +143,8 @@ import type {
|
|
|
143
143
|
MapCell,
|
|
144
144
|
MapValue,
|
|
145
145
|
OptionalSchemas,
|
|
146
|
+
PartialRow,
|
|
147
|
+
PartialValues,
|
|
146
148
|
Row,
|
|
147
149
|
RowCountListener,
|
|
148
150
|
RowIdsListener,
|
|
@@ -2691,13 +2693,13 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
2691
2693
|
* @category Store primitives
|
|
2692
2694
|
* @since v8.3.0
|
|
2693
2695
|
*/
|
|
2694
|
-
useSetTablesCallback: <Parameter
|
|
2696
|
+
useSetTablesCallback: <Parameter>(
|
|
2695
2697
|
getTables: (
|
|
2696
2698
|
parameter: Parameter,
|
|
2697
2699
|
store: Store<Schemas>,
|
|
2698
|
-
) =>
|
|
2700
|
+
) => Tables<Schemas[0], true>,
|
|
2699
2701
|
storeOrStoreId?: MaybeAccessor<StoreOrStoreId<Schemas> | undefined>,
|
|
2700
|
-
then?: (store: Store<Schemas>, tables:
|
|
2702
|
+
then?: (store: Store<Schemas>, tables: Tables<Schemas[0], true>) => void,
|
|
2701
2703
|
) => ParameterizedCallback<Parameter>;
|
|
2702
2704
|
|
|
2703
2705
|
/**
|
|
@@ -2803,15 +2805,17 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
2803
2805
|
useSetTableCallback: <
|
|
2804
2806
|
Parameter,
|
|
2805
2807
|
TableId extends TableIdFromSchema<Schemas[0]>,
|
|
2806
|
-
SetTable = Table<Schemas[0], TableId, true>,
|
|
2807
2808
|
>(
|
|
2808
2809
|
tableId: MaybeAccessor<TableId> | GetId<Schemas, Parameter, TableId>,
|
|
2809
2810
|
getTable: (
|
|
2810
2811
|
parameter: Parameter,
|
|
2811
2812
|
store: Store<Schemas>,
|
|
2812
|
-
) =>
|
|
2813
|
+
) => Table<Schemas[0], TableId, true>,
|
|
2813
2814
|
storeOrStoreId?: MaybeAccessor<StoreOrStoreId<Schemas> | undefined>,
|
|
2814
|
-
then?: (
|
|
2815
|
+
then?: (
|
|
2816
|
+
store: Store<Schemas>,
|
|
2817
|
+
table: Table<Schemas[0], TableId, true>,
|
|
2818
|
+
) => void,
|
|
2815
2819
|
) => ParameterizedCallback<Parameter>;
|
|
2816
2820
|
|
|
2817
2821
|
/**
|
|
@@ -2917,16 +2921,15 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
2917
2921
|
* @category Store primitives
|
|
2918
2922
|
* @since v8.3.0
|
|
2919
2923
|
*/
|
|
2920
|
-
useSetRowCallback: <
|
|
2921
|
-
Parameter,
|
|
2922
|
-
TableId extends TableIdFromSchema<Schemas[0]>,
|
|
2923
|
-
SetRow = Row<Schemas[0], TableId, true>,
|
|
2924
|
-
>(
|
|
2924
|
+
useSetRowCallback: <Parameter, TableId extends TableIdFromSchema<Schemas[0]>>(
|
|
2925
2925
|
tableId: MaybeAccessor<TableId> | GetId<Schemas, Parameter, TableId>,
|
|
2926
2926
|
rowId: MaybeAccessor<Id> | GetId<Schemas, Parameter, Id>,
|
|
2927
|
-
getRow: (
|
|
2927
|
+
getRow: (
|
|
2928
|
+
parameter: Parameter,
|
|
2929
|
+
store: Store<Schemas>,
|
|
2930
|
+
) => Row<Schemas[0], TableId, true>,
|
|
2928
2931
|
storeOrStoreId?: MaybeAccessor<StoreOrStoreId<Schemas> | undefined>,
|
|
2929
|
-
then?: (store: Store<Schemas>, row:
|
|
2932
|
+
then?: (store: Store<Schemas>, row: Row<Schemas[0], TableId, true>) => void,
|
|
2930
2933
|
) => ParameterizedCallback<Parameter>;
|
|
2931
2934
|
|
|
2932
2935
|
/**
|
|
@@ -3039,15 +3042,18 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
3039
3042
|
* @category Store primitives
|
|
3040
3043
|
* @since v8.3.0
|
|
3041
3044
|
*/
|
|
3042
|
-
useAddRowCallback: <
|
|
3043
|
-
Parameter,
|
|
3044
|
-
TableId extends TableIdFromSchema<Schemas[0]>,
|
|
3045
|
-
AddRow = Row<Schemas[0], TableId, true>,
|
|
3046
|
-
>(
|
|
3045
|
+
useAddRowCallback: <Parameter, TableId extends TableIdFromSchema<Schemas[0]>>(
|
|
3047
3046
|
tableId: MaybeAccessor<TableId> | GetId<Schemas, Parameter, TableId>,
|
|
3048
|
-
getRow: (
|
|
3047
|
+
getRow: (
|
|
3048
|
+
parameter: Parameter,
|
|
3049
|
+
store: Store<Schemas>,
|
|
3050
|
+
) => Row<Schemas[0], TableId, true>,
|
|
3049
3051
|
storeOrStoreId?: MaybeAccessor<StoreOrStoreId<Schemas> | undefined>,
|
|
3050
|
-
then?: (
|
|
3052
|
+
then?: (
|
|
3053
|
+
rowId: Id | undefined,
|
|
3054
|
+
store: Store<Schemas>,
|
|
3055
|
+
row: Row<Schemas[0], TableId, true>,
|
|
3056
|
+
) => void,
|
|
3051
3057
|
reuseRowIds?: boolean,
|
|
3052
3058
|
) => ParameterizedCallback<Parameter>;
|
|
3053
3059
|
|
|
@@ -3158,16 +3164,18 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
3158
3164
|
useSetPartialRowCallback: <
|
|
3159
3165
|
Parameter,
|
|
3160
3166
|
TableId extends TableIdFromSchema<Schemas[0]>,
|
|
3161
|
-
SetPartialRow = Row<Schemas[0], TableId, true>,
|
|
3162
3167
|
>(
|
|
3163
3168
|
tableId: MaybeAccessor<TableId> | GetId<Schemas, Parameter, TableId>,
|
|
3164
3169
|
rowId: MaybeAccessor<Id> | GetId<Schemas, Parameter, Id>,
|
|
3165
3170
|
getPartialRow: (
|
|
3166
3171
|
parameter: Parameter,
|
|
3167
3172
|
store: Store<Schemas>,
|
|
3168
|
-
) =>
|
|
3173
|
+
) => PartialRow<Schemas[0], TableId>,
|
|
3169
3174
|
storeOrStoreId?: MaybeAccessor<StoreOrStoreId<Schemas> | undefined>,
|
|
3170
|
-
then?: (
|
|
3175
|
+
then?: (
|
|
3176
|
+
store: Store<Schemas>,
|
|
3177
|
+
partialRow: PartialRow<Schemas[0], TableId>,
|
|
3178
|
+
) => void,
|
|
3171
3179
|
) => ParameterizedCallback<Parameter>;
|
|
3172
3180
|
|
|
3173
3181
|
/**
|
|
@@ -3353,13 +3361,13 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
3353
3361
|
* @category Store primitives
|
|
3354
3362
|
* @since v8.3.0
|
|
3355
3363
|
*/
|
|
3356
|
-
useSetValuesCallback: <Parameter
|
|
3364
|
+
useSetValuesCallback: <Parameter>(
|
|
3357
3365
|
getValues: (
|
|
3358
3366
|
parameter: Parameter,
|
|
3359
3367
|
store: Store<Schemas>,
|
|
3360
|
-
) =>
|
|
3368
|
+
) => Values<Schemas[1], true>,
|
|
3361
3369
|
storeOrStoreId?: MaybeAccessor<StoreOrStoreId<Schemas> | undefined>,
|
|
3362
|
-
then?: (store: Store<Schemas>, values:
|
|
3370
|
+
then?: (store: Store<Schemas>, values: Values<Schemas[1], true>) => void,
|
|
3363
3371
|
) => ParameterizedCallback<Parameter>;
|
|
3364
3372
|
|
|
3365
3373
|
/**
|
|
@@ -3460,16 +3468,16 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
3460
3468
|
* @category Store primitives
|
|
3461
3469
|
* @since v8.3.0
|
|
3462
3470
|
*/
|
|
3463
|
-
useSetPartialValuesCallback: <
|
|
3464
|
-
Parameter,
|
|
3465
|
-
SetPartialValues = Values<Schemas[1], true>,
|
|
3466
|
-
>(
|
|
3471
|
+
useSetPartialValuesCallback: <Parameter>(
|
|
3467
3472
|
getPartialValues: (
|
|
3468
3473
|
parameter: Parameter,
|
|
3469
3474
|
store: Store<Schemas>,
|
|
3470
|
-
) =>
|
|
3475
|
+
) => PartialValues<Schemas[1]>,
|
|
3471
3476
|
storeOrStoreId?: MaybeAccessor<StoreOrStoreId<Schemas> | undefined>,
|
|
3472
|
-
then?: (
|
|
3477
|
+
then?: (
|
|
3478
|
+
store: Store<Schemas>,
|
|
3479
|
+
partialValues: PartialValues<Schemas[1]>,
|
|
3480
|
+
) => void,
|
|
3473
3481
|
) => ParameterizedCallback<Parameter>;
|
|
3474
3482
|
|
|
3475
3483
|
/**
|
|
@@ -7827,6 +7835,35 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
7827
7835
|
indexesOrIndexesId?: MaybeAccessor<IndexesOrIndexesId<Schemas> | undefined>,
|
|
7828
7836
|
): Accessor<Ids>;
|
|
7829
7837
|
|
|
7838
|
+
/**
|
|
7839
|
+
* The useHasIndex primitive returns a boolean indicating whether a given Index
|
|
7840
|
+
* exists in the Indexes object, and registers a listener so that any changes to
|
|
7841
|
+
* that result will cause an update.
|
|
7842
|
+
*
|
|
7843
|
+
* This has schema-based typing. The following is a simplified representation:
|
|
7844
|
+
*
|
|
7845
|
+
* ```ts override
|
|
7846
|
+
* useHasIndex(
|
|
7847
|
+
* indexId: MaybeAccessor<Id>,
|
|
7848
|
+
* indexesOrIndexesId?: MaybeAccessor<IndexesOrIndexesId | undefined>,
|
|
7849
|
+
* ): Accessor<boolean>;
|
|
7850
|
+
* ```
|
|
7851
|
+
*
|
|
7852
|
+
* This primitive follows the same Indexes object resolution rules as the
|
|
7853
|
+
* useIndexIds primitive.
|
|
7854
|
+
* @param indexId The Id of a possible Index in the Indexes object.
|
|
7855
|
+
* @param indexesOrIndexesId The Indexes object to be accessed: omit for the
|
|
7856
|
+
* default context Indexes object, provide an Id for a named context Indexes
|
|
7857
|
+
* object, or provide an explicit reference.
|
|
7858
|
+
* @returns Whether an Index with that Id exists.
|
|
7859
|
+
* @category Indexes primitives
|
|
7860
|
+
* @since v9.1.0
|
|
7861
|
+
*/
|
|
7862
|
+
useHasIndex: (
|
|
7863
|
+
indexId: MaybeAccessor<Id>,
|
|
7864
|
+
indexesOrIndexesId?: MaybeAccessor<IndexesOrIndexesId<Schemas> | undefined>,
|
|
7865
|
+
) => Accessor<boolean>;
|
|
7866
|
+
|
|
7830
7867
|
/**
|
|
7831
7868
|
* The useSliceIds primitive gets the list of Slice Ids in an Index, and
|
|
7832
7869
|
* registers a listener so that any changes to that result will cause an update.
|
|
@@ -7923,6 +7960,38 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
7923
7960
|
indexesOrIndexesId?: MaybeAccessor<IndexesOrIndexesId<Schemas> | undefined>,
|
|
7924
7961
|
) => Accessor<Ids>;
|
|
7925
7962
|
|
|
7963
|
+
/**
|
|
7964
|
+
* The useHasSlice primitive returns a boolean indicating whether a given Slice
|
|
7965
|
+
* exists in an Index, and registers a listener so that any changes to that
|
|
7966
|
+
* result will cause an update.
|
|
7967
|
+
*
|
|
7968
|
+
* This has schema-based typing. The following is a simplified representation:
|
|
7969
|
+
*
|
|
7970
|
+
* ```ts override
|
|
7971
|
+
* useHasSlice(
|
|
7972
|
+
* indexId: MaybeAccessor<Id>,
|
|
7973
|
+
* sliceId: MaybeAccessor<Id>,
|
|
7974
|
+
* indexesOrIndexesId?: MaybeAccessor<IndexesOrIndexesId | undefined>,
|
|
7975
|
+
* ): Accessor<boolean>;
|
|
7976
|
+
* ```
|
|
7977
|
+
*
|
|
7978
|
+
* This primitive follows the same Indexes object resolution rules as the
|
|
7979
|
+
* useSliceIds primitive.
|
|
7980
|
+
* @param indexId The Id of a possible Index in the Indexes object.
|
|
7981
|
+
* @param sliceId The Id of a possible Slice in the Index.
|
|
7982
|
+
* @param indexesOrIndexesId The Indexes object to be accessed: omit for the
|
|
7983
|
+
* default context Indexes object, provide an Id for a named context Indexes
|
|
7984
|
+
* object, or provide an explicit reference.
|
|
7985
|
+
* @returns Whether a Slice with that Id exists.
|
|
7986
|
+
* @category Indexes primitives
|
|
7987
|
+
* @since v9.1.0
|
|
7988
|
+
*/
|
|
7989
|
+
useHasSlice: (
|
|
7990
|
+
indexId: MaybeAccessor<Id>,
|
|
7991
|
+
sliceId: MaybeAccessor<Id>,
|
|
7992
|
+
indexesOrIndexesId?: MaybeAccessor<IndexesOrIndexesId<Schemas> | undefined>,
|
|
7993
|
+
) => Accessor<boolean>;
|
|
7994
|
+
|
|
7926
7995
|
/**
|
|
7927
7996
|
* The useSliceRowIds primitive gets the list of Row Ids in a given Slice, and
|
|
7928
7997
|
* registers a listener so that any changes to that result will cause an update.
|
|
@@ -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
|