tinybase 5.0.0-beta.27 → 5.0.0-beta.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/_internal/ui-react/with-schemas/index.d.cts +274 -0
- package/@types/_internal/ui-react/with-schemas/index.d.ts +274 -0
- package/@types/checkpoints/index.d.cts +30 -1
- package/@types/checkpoints/index.d.ts +30 -1
- package/@types/checkpoints/with-schemas/index.d.cts +30 -1
- package/@types/checkpoints/with-schemas/index.d.ts +30 -1
- package/@types/common/index.d.cts +9 -0
- package/@types/common/index.d.ts +9 -0
- package/@types/common/with-schemas/index.d.cts +9 -0
- package/@types/common/with-schemas/index.d.ts +9 -0
- package/@types/index.d.cts +1 -0
- package/@types/index.d.ts +1 -0
- package/@types/indexes/index.d.cts +32 -1
- package/@types/indexes/index.d.ts +32 -1
- package/@types/indexes/with-schemas/index.d.cts +32 -1
- package/@types/indexes/with-schemas/index.d.ts +32 -1
- package/@types/mergeable-store/index.d.cts +0 -2
- package/@types/mergeable-store/index.d.ts +0 -2
- package/@types/mergeable-store/with-schemas/index.d.cts +2 -2
- package/@types/mergeable-store/with-schemas/index.d.ts +2 -2
- package/@types/metrics/index.d.cts +30 -4
- package/@types/metrics/index.d.ts +30 -4
- package/@types/metrics/with-schemas/index.d.cts +30 -4
- package/@types/metrics/with-schemas/index.d.ts +30 -4
- package/@types/persisters/index.d.cts +87 -25
- package/@types/persisters/index.d.ts +87 -25
- package/@types/persisters/persister-automerge/index.d.cts +4 -4
- package/@types/persisters/persister-automerge/index.d.ts +4 -4
- package/@types/persisters/persister-automerge/with-schemas/index.d.cts +4 -4
- package/@types/persisters/persister-automerge/with-schemas/index.d.ts +4 -4
- package/@types/persisters/persister-browser/index.d.cts +7 -4
- package/@types/persisters/persister-browser/index.d.ts +7 -4
- package/@types/persisters/persister-browser/with-schemas/index.d.cts +7 -4
- package/@types/persisters/persister-browser/with-schemas/index.d.ts +7 -4
- package/@types/persisters/persister-cr-sqlite-wasm/index.d.cts +4 -4
- package/@types/persisters/persister-cr-sqlite-wasm/index.d.ts +4 -4
- package/@types/persisters/persister-cr-sqlite-wasm/with-schemas/index.d.cts +4 -4
- package/@types/persisters/persister-cr-sqlite-wasm/with-schemas/index.d.ts +4 -4
- package/@types/persisters/persister-electric-sql/index.d.cts +4 -4
- package/@types/persisters/persister-electric-sql/index.d.ts +4 -4
- package/@types/persisters/persister-electric-sql/with-schemas/index.d.cts +4 -4
- package/@types/persisters/persister-electric-sql/with-schemas/index.d.ts +4 -4
- package/@types/persisters/persister-expo-sqlite/index.d.cts +4 -4
- package/@types/persisters/persister-expo-sqlite/index.d.ts +4 -4
- package/@types/persisters/persister-expo-sqlite/with-schemas/index.d.cts +4 -4
- package/@types/persisters/persister-expo-sqlite/with-schemas/index.d.ts +4 -4
- package/@types/persisters/persister-file/index.d.cts +6 -4
- package/@types/persisters/persister-file/index.d.ts +6 -4
- package/@types/persisters/persister-file/with-schemas/index.d.cts +6 -4
- package/@types/persisters/persister-file/with-schemas/index.d.ts +6 -4
- package/@types/persisters/persister-indexed-db/index.d.cts +5 -4
- package/@types/persisters/persister-indexed-db/index.d.ts +5 -4
- package/@types/persisters/persister-indexed-db/with-schemas/index.d.cts +5 -4
- package/@types/persisters/persister-indexed-db/with-schemas/index.d.ts +5 -4
- package/@types/persisters/persister-libsql/index.d.cts +5 -4
- package/@types/persisters/persister-libsql/index.d.ts +5 -4
- package/@types/persisters/persister-libsql/with-schemas/index.d.cts +5 -4
- package/@types/persisters/persister-libsql/with-schemas/index.d.ts +5 -4
- package/@types/persisters/persister-partykit-client/index.d.cts +12 -6
- package/@types/persisters/persister-partykit-client/index.d.ts +12 -6
- package/@types/persisters/persister-partykit-client/with-schemas/index.d.cts +12 -6
- package/@types/persisters/persister-partykit-client/with-schemas/index.d.ts +12 -6
- package/@types/persisters/persister-partykit-server/index.d.cts +11 -3
- package/@types/persisters/persister-partykit-server/index.d.ts +11 -3
- package/@types/persisters/persister-partykit-server/with-schemas/index.d.cts +11 -3
- package/@types/persisters/persister-partykit-server/with-schemas/index.d.ts +11 -3
- package/@types/persisters/persister-powersync/index.d.cts +5 -4
- package/@types/persisters/persister-powersync/index.d.ts +5 -4
- package/@types/persisters/persister-powersync/with-schemas/index.d.cts +5 -4
- package/@types/persisters/persister-powersync/with-schemas/index.d.ts +5 -4
- package/@types/persisters/persister-remote/index.d.cts +6 -4
- package/@types/persisters/persister-remote/index.d.ts +6 -4
- package/@types/persisters/persister-remote/with-schemas/index.d.cts +6 -4
- package/@types/persisters/persister-remote/with-schemas/index.d.ts +6 -4
- package/@types/persisters/persister-sqlite-wasm/index.d.cts +4 -4
- package/@types/persisters/persister-sqlite-wasm/index.d.ts +4 -4
- package/@types/persisters/persister-sqlite-wasm/with-schemas/index.d.cts +4 -4
- package/@types/persisters/persister-sqlite-wasm/with-schemas/index.d.ts +4 -4
- package/@types/persisters/persister-sqlite3/index.d.cts +4 -4
- package/@types/persisters/persister-sqlite3/index.d.ts +4 -4
- package/@types/persisters/persister-sqlite3/with-schemas/index.d.cts +4 -4
- package/@types/persisters/persister-sqlite3/with-schemas/index.d.ts +4 -4
- package/@types/persisters/persister-yjs/index.d.cts +4 -4
- package/@types/persisters/persister-yjs/index.d.ts +4 -4
- package/@types/persisters/persister-yjs/with-schemas/index.d.cts +4 -4
- package/@types/persisters/persister-yjs/with-schemas/index.d.ts +4 -4
- package/@types/persisters/with-schemas/index.d.cts +87 -25
- package/@types/persisters/with-schemas/index.d.ts +87 -25
- package/@types/queries/index.d.cts +64 -4
- package/@types/queries/index.d.ts +64 -4
- package/@types/queries/with-schemas/index.d.cts +64 -4
- package/@types/queries/with-schemas/index.d.ts +64 -4
- package/@types/relationships/index.d.cts +34 -1
- package/@types/relationships/index.d.ts +34 -1
- package/@types/relationships/with-schemas/index.d.cts +34 -1
- package/@types/relationships/with-schemas/index.d.ts +34 -1
- package/@types/store/index.d.cts +125 -0
- package/@types/store/index.d.ts +125 -0
- package/@types/store/with-schemas/index.d.cts +125 -0
- package/@types/store/with-schemas/index.d.ts +125 -0
- package/@types/synchronizers/index.d.cts +32 -10
- package/@types/synchronizers/index.d.ts +32 -10
- package/@types/synchronizers/synchronizer-broadcast-channel/index.d.cts +114 -0
- package/@types/synchronizers/synchronizer-broadcast-channel/index.d.ts +114 -0
- package/@types/synchronizers/synchronizer-broadcast-channel/with-schemas/index.d.cts +128 -0
- package/@types/synchronizers/synchronizer-broadcast-channel/with-schemas/index.d.ts +128 -0
- package/@types/synchronizers/synchronizer-local/index.d.cts +16 -17
- package/@types/synchronizers/synchronizer-local/index.d.ts +16 -17
- package/@types/synchronizers/synchronizer-local/with-schemas/index.d.cts +16 -17
- package/@types/synchronizers/synchronizer-local/with-schemas/index.d.ts +16 -17
- package/@types/synchronizers/synchronizer-ws-client/index.d.cts +66 -6
- package/@types/synchronizers/synchronizer-ws-client/index.d.ts +66 -6
- package/@types/synchronizers/synchronizer-ws-client/with-schemas/index.d.cts +77 -6
- package/@types/synchronizers/synchronizer-ws-client/with-schemas/index.d.ts +77 -6
- package/@types/synchronizers/synchronizer-ws-server/index.d.cts +486 -7
- package/@types/synchronizers/synchronizer-ws-server/index.d.ts +486 -7
- package/@types/synchronizers/synchronizer-ws-server/with-schemas/index.d.cts +486 -7
- package/@types/synchronizers/synchronizer-ws-server/with-schemas/index.d.ts +486 -7
- package/@types/synchronizers/with-schemas/index.d.cts +29 -11
- package/@types/synchronizers/with-schemas/index.d.ts +29 -11
- package/@types/tools/index.d.cts +22 -0
- package/@types/tools/index.d.ts +22 -0
- package/@types/tools/with-schemas/index.d.cts +22 -0
- package/@types/tools/with-schemas/index.d.ts +22 -0
- package/@types/ui-react/index.d.cts +375 -1
- package/@types/ui-react/index.d.ts +375 -1
- package/@types/ui-react/with-schemas/index.d.cts +100 -1
- package/@types/ui-react/with-schemas/index.d.ts +100 -1
- package/@types/ui-react-dom/index.d.cts +112 -0
- package/@types/ui-react-dom/index.d.ts +112 -0
- package/@types/ui-react-dom/with-schemas/index.d.cts +112 -0
- package/@types/ui-react-dom/with-schemas/index.d.ts +112 -0
- package/@types/ui-react-inspector/index.d.cts +6 -2
- package/@types/ui-react-inspector/index.d.ts +6 -2
- package/@types/ui-react-inspector/with-schemas/index.d.cts +118 -2
- package/@types/ui-react-inspector/with-schemas/index.d.ts +118 -2
- package/@types/with-schemas/index.d.cts +1 -0
- package/@types/with-schemas/index.d.ts +1 -0
- package/cjs/es6/index.cjs +2 -2
- package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/index.cjs +1 -0
- package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +1 -0
- package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/synchronizer-ws-client/index.cjs +1 -1
- package/cjs/es6/min/synchronizers/synchronizer-ws-client/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/synchronizers/index.cjs +2 -2
- package/cjs/es6/synchronizers/synchronizer-broadcast-channel/index.cjs +628 -0
- package/cjs/es6/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +628 -0
- package/cjs/es6/synchronizers/synchronizer-local/index.cjs +4 -4
- package/cjs/es6/synchronizers/synchronizer-local/with-schemas/index.cjs +4 -4
- package/cjs/es6/synchronizers/synchronizer-ws-client/index.cjs +15 -21
- package/cjs/es6/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +15 -21
- package/cjs/es6/synchronizers/with-schemas/index.cjs +2 -2
- package/cjs/es6/with-schemas/index.cjs +2 -2
- package/cjs/index.cjs +2 -2
- package/cjs/min/synchronizers/synchronizer-broadcast-channel/index.cjs +1 -0
- package/cjs/min/synchronizers/synchronizer-broadcast-channel/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +1 -0
- package/cjs/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/synchronizer-ws-client/index.cjs +1 -1
- package/cjs/min/synchronizers/synchronizer-ws-client/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +1 -1
- package/cjs/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs.gz +0 -0
- package/cjs/synchronizers/index.cjs +2 -2
- package/cjs/synchronizers/synchronizer-broadcast-channel/index.cjs +500 -0
- package/cjs/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +500 -0
- package/cjs/synchronizers/synchronizer-local/index.cjs +4 -4
- package/cjs/synchronizers/synchronizer-local/with-schemas/index.cjs +4 -4
- package/cjs/synchronizers/synchronizer-ws-client/index.cjs +15 -21
- package/cjs/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +15 -21
- package/cjs/synchronizers/with-schemas/index.cjs +2 -2
- package/cjs/with-schemas/index.cjs +2 -2
- package/es6/index.js +2 -2
- package/es6/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -0
- package/es6/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
- package/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -0
- package/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
- package/es6/min/synchronizers/synchronizer-ws-client/index.js +1 -1
- package/es6/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
- package/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
- package/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
- package/es6/synchronizers/index.js +2 -2
- package/es6/synchronizers/synchronizer-broadcast-channel/index.js +626 -0
- package/es6/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +626 -0
- package/es6/synchronizers/synchronizer-local/index.js +4 -4
- package/es6/synchronizers/synchronizer-local/with-schemas/index.js +4 -4
- package/es6/synchronizers/synchronizer-ws-client/index.js +15 -21
- package/es6/synchronizers/synchronizer-ws-client/with-schemas/index.js +15 -21
- package/es6/synchronizers/with-schemas/index.js +2 -2
- package/es6/with-schemas/index.js +2 -2
- package/index.js +2 -2
- package/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -0
- package/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -0
- package/min/synchronizers/synchronizer-broadcast-channel/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/package.json +105 -1
- package/readme.md +9 -9
- package/releases.md +4 -4
- package/synchronizers/index.js +2 -2
- package/synchronizers/synchronizer-broadcast-channel/index.js +498 -0
- package/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +498 -0
- package/synchronizers/synchronizer-local/index.js +4 -4
- package/synchronizers/synchronizer-local/with-schemas/index.js +4 -4
- package/synchronizers/synchronizer-ws-client/index.js +15 -21
- package/synchronizers/synchronizer-ws-client/with-schemas/index.js +15 -21
- package/synchronizers/with-schemas/index.js +2 -2
- package/umd/es6/index.js +2 -2
- package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -0
- package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -0
- package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/synchronizer-ws-client/index.js +1 -1
- package/umd/es6/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
- package/umd/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
- package/umd/es6/synchronizers/index.js +2 -2
- package/umd/es6/synchronizers/synchronizer-broadcast-channel/index.js +654 -0
- package/umd/es6/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +654 -0
- package/umd/es6/synchronizers/synchronizer-local/index.js +4 -4
- package/umd/es6/synchronizers/synchronizer-local/with-schemas/index.js +4 -4
- package/umd/es6/synchronizers/synchronizer-ws-client/index.js +15 -21
- package/umd/es6/synchronizers/synchronizer-ws-client/with-schemas/index.js +15 -21
- package/umd/es6/synchronizers/with-schemas/index.js +2 -2
- package/umd/es6/with-schemas/index.js +2 -2
- package/umd/index.js +2 -2
- package/umd/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -0
- package/umd/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
- package/umd/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -0
- package/umd/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
- package/umd/min/synchronizers/synchronizer-ws-client/index.js +1 -1
- package/umd/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
- package/umd/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
- package/umd/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
- package/umd/synchronizers/index.js +2 -2
- package/umd/synchronizers/synchronizer-broadcast-channel/index.js +516 -0
- package/umd/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +516 -0
- package/umd/synchronizers/synchronizer-local/index.js +4 -4
- package/umd/synchronizers/synchronizer-local/with-schemas/index.js +4 -4
- package/umd/synchronizers/synchronizer-ws-client/index.js +15 -21
- package/umd/synchronizers/synchronizer-ws-client/with-schemas/index.js +15 -21
- package/umd/synchronizers/with-schemas/index.js +2 -2
- package/umd/with-schemas/index.js +2 -2
- package/with-schemas/index.js +2 -2
|
@@ -45,11 +45,15 @@ export type CustomCell<
|
|
|
45
45
|
/**
|
|
46
46
|
* An optional string that will be used as the label at the top of the table
|
|
47
47
|
* column for this Cell.
|
|
48
|
+
* @category Prop
|
|
49
|
+
* @since v4.1.0
|
|
48
50
|
*/
|
|
49
51
|
label?: string;
|
|
50
52
|
/**
|
|
51
53
|
* An optional custom component for rendering each Cell in the Table (to
|
|
52
54
|
* override the default CellView component).
|
|
55
|
+
* @category Prop
|
|
56
|
+
* @since v4.1.0
|
|
53
57
|
*/
|
|
54
58
|
component?: ComponentType<
|
|
55
59
|
CellPropsForTableIdAndCellId<Schemas, TableId, CellId>
|
|
@@ -57,6 +61,8 @@ export type CustomCell<
|
|
|
57
61
|
/**
|
|
58
62
|
* An optional function for generating extra props for each custom Cell
|
|
59
63
|
* component based on Row and Cell Id.
|
|
64
|
+
* @category Prop
|
|
65
|
+
* @since v4.1.0
|
|
60
66
|
*/
|
|
61
67
|
getComponentProps?: (rowId: Id, cellId: CellId) => ExtraProps;
|
|
62
68
|
};
|
|
@@ -71,16 +77,22 @@ export type CustomResultCell<Schemas extends OptionalSchemas> = {
|
|
|
71
77
|
/**
|
|
72
78
|
* An optional string that will be used as the label at the top of the table
|
|
73
79
|
* column for this Cell.
|
|
80
|
+
* @category Prop
|
|
81
|
+
* @since v4.1.0
|
|
74
82
|
*/
|
|
75
83
|
label?: string;
|
|
76
84
|
/**
|
|
77
85
|
* An optional custom component for rendering each Cell in the ResultTable (to
|
|
78
86
|
* override the default ResultCellView component).
|
|
87
|
+
* @category Prop
|
|
88
|
+
* @since v4.1.0
|
|
79
89
|
*/
|
|
80
90
|
component?: ComponentType<ResultCellProps<Schemas>>;
|
|
81
91
|
/**
|
|
82
92
|
* An optional function for generating extra props for each custom Cell
|
|
83
93
|
* component based on Row and Cell Id.
|
|
94
|
+
* @category Prop
|
|
95
|
+
* @since v4.1.0
|
|
84
96
|
*/
|
|
85
97
|
getComponentProps?: (rowId: Id, cellId: Id) => ExtraProps;
|
|
86
98
|
};
|
|
@@ -95,16 +107,22 @@ export type CustomResultCell<Schemas extends OptionalSchemas> = {
|
|
|
95
107
|
export type HtmlTableProps = {
|
|
96
108
|
/**
|
|
97
109
|
* A string className to use on the root of the resulting element.
|
|
110
|
+
* @category Prop
|
|
111
|
+
* @since v4.1.0
|
|
98
112
|
*/
|
|
99
113
|
readonly className?: string;
|
|
100
114
|
/**
|
|
101
115
|
* Whether a header row should be rendered at the top of the table, defaulting
|
|
102
116
|
* to `true`.
|
|
117
|
+
* @category Prop
|
|
118
|
+
* @since v4.1.0
|
|
103
119
|
*/
|
|
104
120
|
readonly headerRow?: boolean;
|
|
105
121
|
/**
|
|
106
122
|
* Whether an Id column should be rendered on the left of the table,
|
|
107
123
|
* defaulting to `true`.
|
|
124
|
+
* @category Prop
|
|
125
|
+
* @since v4.1.0
|
|
108
126
|
*/
|
|
109
127
|
readonly idColumn?: boolean;
|
|
110
128
|
};
|
|
@@ -125,17 +143,23 @@ export type TableInHtmlTableProps<
|
|
|
125
143
|
? {
|
|
126
144
|
/**
|
|
127
145
|
* The Id of the Table in the Store to be rendered.
|
|
146
|
+
* @category Prop
|
|
147
|
+
* @since v4.1.0
|
|
128
148
|
*/
|
|
129
149
|
readonly tableId: TableId;
|
|
130
150
|
/**
|
|
131
151
|
* The Store to be accessed: omit for the default context Store, provide an Id
|
|
132
152
|
* for a named context Store, or provide an explicit reference.
|
|
153
|
+
* @category Prop
|
|
154
|
+
* @since v4.1.0
|
|
133
155
|
*/
|
|
134
156
|
readonly store?: StoreOrStoreId<Schemas>;
|
|
135
157
|
/**
|
|
136
158
|
* Whether the Cells should be editable. This affects the default CellView
|
|
137
159
|
* component (to use the EditableCellView component instead) but of course
|
|
138
160
|
* will not affect custom Cell components if you have set them.
|
|
161
|
+
* @category Prop
|
|
162
|
+
* @since v4.1.0
|
|
139
163
|
*/
|
|
140
164
|
readonly editable?: boolean;
|
|
141
165
|
/**
|
|
@@ -144,6 +168,8 @@ export type TableInHtmlTableProps<
|
|
|
144
168
|
* Cell Ids as keys, and with a value that can either be a string label to
|
|
145
169
|
* show in the column header, or a CustomCell object to further configure the
|
|
146
170
|
* column.
|
|
171
|
+
* @category Prop
|
|
172
|
+
* @since v4.1.0
|
|
147
173
|
*/
|
|
148
174
|
readonly customCells?:
|
|
149
175
|
| CellIdFromSchema<Schemas[0], TableId>[]
|
|
@@ -172,34 +198,48 @@ export type SortedTableInHtmlTableProps<
|
|
|
172
198
|
? {
|
|
173
199
|
/**
|
|
174
200
|
* The Id of the Table in the Store to be rendered.
|
|
201
|
+
* @category Prop
|
|
202
|
+
* @since v4.1.0
|
|
175
203
|
*/
|
|
176
204
|
readonly tableId: TableId;
|
|
177
205
|
/**
|
|
178
206
|
* The Id of the Cell whose values are used for the sorting. If omitted, the
|
|
179
207
|
* view will sort the Row Id itself.
|
|
208
|
+
* @category Prop
|
|
209
|
+
* @since v4.1.0
|
|
180
210
|
*/
|
|
181
211
|
readonly cellId?: CellIdFromSchema<Schemas[0], TableId>;
|
|
182
212
|
/**
|
|
183
213
|
* Whether the sorting should be in descending order.
|
|
214
|
+
* @category Prop
|
|
215
|
+
* @since v4.1.0
|
|
184
216
|
*/
|
|
185
217
|
readonly descending?: boolean;
|
|
186
218
|
/**
|
|
187
219
|
* The number of Row Ids to skip for pagination purposes.
|
|
220
|
+
* @category Prop
|
|
221
|
+
* @since v4.1.0
|
|
188
222
|
*/
|
|
189
223
|
readonly offset?: number;
|
|
190
224
|
/**
|
|
191
225
|
* The maximum number of Row Ids to return.
|
|
226
|
+
* @category Prop
|
|
227
|
+
* @since v4.1.0
|
|
192
228
|
*/
|
|
193
229
|
readonly limit?: number;
|
|
194
230
|
/**
|
|
195
231
|
* The Store to be accessed: omit for the default context Store, provide an Id
|
|
196
232
|
* for a named context Store, or provide an explicit reference.
|
|
233
|
+
* @category Prop
|
|
234
|
+
* @since v4.1.0
|
|
197
235
|
*/
|
|
198
236
|
readonly store?: StoreOrStoreId<Schemas>;
|
|
199
237
|
/**
|
|
200
238
|
* Whether the Cells should be editable. This affects the default CellView
|
|
201
239
|
* component (to use the EditableCellView component instead) but of course
|
|
202
240
|
* will not affect custom Cell components if you have set them.
|
|
241
|
+
* @category Prop
|
|
242
|
+
* @since v4.1.0
|
|
203
243
|
*/
|
|
204
244
|
readonly editable?: boolean;
|
|
205
245
|
/**
|
|
@@ -208,6 +248,8 @@ export type SortedTableInHtmlTableProps<
|
|
|
208
248
|
* Cell Ids as keys, and with a value that can either be a string label to
|
|
209
249
|
* show in the column header, or a CustomCell object to further configure the
|
|
210
250
|
* column.
|
|
251
|
+
* @category Prop
|
|
252
|
+
* @since v4.1.0
|
|
211
253
|
*/
|
|
212
254
|
readonly customCells?:
|
|
213
255
|
| CellIdFromSchema<Schemas[0], TableId>[]
|
|
@@ -219,17 +261,23 @@ export type SortedTableInHtmlTableProps<
|
|
|
219
261
|
/**
|
|
220
262
|
* Whether the table should be interactive such that clicking a header changes
|
|
221
263
|
* the sorting and/or direction.
|
|
264
|
+
* @category Prop
|
|
265
|
+
* @since v4.1.0
|
|
222
266
|
*/
|
|
223
267
|
readonly sortOnClick?: boolean;
|
|
224
268
|
/**
|
|
225
269
|
* Either `true` to show the default SortedTablePaginator for the Table, or
|
|
226
270
|
* provide your own paginator component that takes SortedTablePaginatorProps.
|
|
271
|
+
* @category Prop
|
|
272
|
+
* @since v4.1.0
|
|
227
273
|
*/
|
|
228
274
|
readonly paginator?: boolean | ComponentType<SortedTablePaginatorProps>;
|
|
229
275
|
/**
|
|
230
276
|
* A function that is called whenever the sorting or pagination of the Table
|
|
231
277
|
* is changed by the user, invoked with the sorted Cell Id, whether descending
|
|
232
278
|
* or not, and the offset of the pagination.
|
|
279
|
+
* @category Prop
|
|
280
|
+
* @since v4.1.0
|
|
233
281
|
*/
|
|
234
282
|
readonly onChange?: (
|
|
235
283
|
sortAndOffset: [
|
|
@@ -252,22 +300,30 @@ export type ValuesInHtmlTableProps<Schemas extends OptionalSchemas> = {
|
|
|
252
300
|
/**
|
|
253
301
|
* The Store to be accessed: omit for the default context Store, provide an Id
|
|
254
302
|
* for a named context Store, or provide an explicit reference.
|
|
303
|
+
* @category Prop
|
|
304
|
+
* @since v4.1.0
|
|
255
305
|
*/
|
|
256
306
|
readonly store?: StoreOrStoreId<Schemas>;
|
|
257
307
|
/**
|
|
258
308
|
* Whether the Values should be editable. This affects the default ValueView
|
|
259
309
|
* component (to use the EditableValueView component instead) but of course
|
|
260
310
|
* will not affect a custom valueComponent if you have set one.
|
|
311
|
+
* @category Prop
|
|
312
|
+
* @since v4.1.0
|
|
261
313
|
*/
|
|
262
314
|
readonly editable?: boolean;
|
|
263
315
|
/**
|
|
264
316
|
* A custom component for rendering each Value in the Store (to override the
|
|
265
317
|
* default ValueView component).
|
|
318
|
+
* @category Prop
|
|
319
|
+
* @since v4.1.0
|
|
266
320
|
*/
|
|
267
321
|
readonly valueComponent?: ComponentType<ValueProps<Schemas>>;
|
|
268
322
|
/**
|
|
269
323
|
* A function for generating extra props for each custom Value component based
|
|
270
324
|
* on its Id.
|
|
325
|
+
* @category Prop
|
|
326
|
+
* @since v4.1.0
|
|
271
327
|
*/
|
|
272
328
|
readonly getValueComponentProps?: (valueId: Id) => ExtraProps;
|
|
273
329
|
};
|
|
@@ -281,22 +337,30 @@ export type ValuesInHtmlTableProps<Schemas extends OptionalSchemas> = {
|
|
|
281
337
|
export type SliceInHtmlTableProps<Schemas extends OptionalSchemas> = {
|
|
282
338
|
/**
|
|
283
339
|
* The Id of the Index in the Indexes object.
|
|
340
|
+
* @category Prop
|
|
341
|
+
* @since v4.1.0
|
|
284
342
|
*/
|
|
285
343
|
readonly indexId: Id;
|
|
286
344
|
/**
|
|
287
345
|
* The Id of the Slice in the Index to be rendered.
|
|
346
|
+
* @category Prop
|
|
347
|
+
* @since v4.1.0
|
|
288
348
|
*/
|
|
289
349
|
readonly sliceId: Id;
|
|
290
350
|
/**
|
|
291
351
|
* The Indexes object to be accessed: omit for the default context Indexes
|
|
292
352
|
* object, provide an Id for a named context Indexes object, or provide an
|
|
293
353
|
* explicit reference.
|
|
354
|
+
* @category Prop
|
|
355
|
+
* @since v4.1.0
|
|
294
356
|
*/
|
|
295
357
|
readonly indexes?: IndexesOrIndexesId<Schemas>;
|
|
296
358
|
/**
|
|
297
359
|
* Whether the Cells should be editable. This affects the default CellView
|
|
298
360
|
* component (to use the EditableCellView component instead) but of course
|
|
299
361
|
* will not affect custom Cell components if you have set them.
|
|
362
|
+
* @category Prop
|
|
363
|
+
* @since v4.1.0
|
|
300
364
|
*/
|
|
301
365
|
readonly editable?: boolean;
|
|
302
366
|
/**
|
|
@@ -305,6 +369,8 @@ export type SliceInHtmlTableProps<Schemas extends OptionalSchemas> = {
|
|
|
305
369
|
* Cell Ids as keys, and with a value that can either be a string label to
|
|
306
370
|
* show in the column header, or a CustomCell object to further configure the
|
|
307
371
|
* column.
|
|
372
|
+
* @category Prop
|
|
373
|
+
* @since v4.1.0
|
|
308
374
|
*/
|
|
309
375
|
readonly customCells?:
|
|
310
376
|
| Ids
|
|
@@ -327,18 +393,24 @@ export type RelationshipInHtmlTableProps<Schemas extends OptionalSchemas> = {
|
|
|
327
393
|
/**
|
|
328
394
|
* The Id of the relationship in the Relationships object for which the
|
|
329
395
|
* relationship Table Rows will be rendered.
|
|
396
|
+
* @category Prop
|
|
397
|
+
* @since v4.1.0
|
|
330
398
|
*/
|
|
331
399
|
readonly relationshipId: Id;
|
|
332
400
|
/**
|
|
333
401
|
* The Relationships object to be accessed: omit for the default context
|
|
334
402
|
* Relationships object, provide an Id for a named context Relationships
|
|
335
403
|
* object, or provide an explicit reference.
|
|
404
|
+
* @category Prop
|
|
405
|
+
* @since v4.1.0
|
|
336
406
|
*/
|
|
337
407
|
readonly relationships?: RelationshipsOrRelationshipsId<Schemas>;
|
|
338
408
|
/**
|
|
339
409
|
* Whether the Cells should be editable. This affects the default CellView
|
|
340
410
|
* component (to use the EditableCellView component instead) but of course
|
|
341
411
|
* will not affect custom Cell components if you have set them.
|
|
412
|
+
* @category Prop
|
|
413
|
+
* @since v4.1.0
|
|
342
414
|
*/
|
|
343
415
|
readonly editable?: boolean;
|
|
344
416
|
/**
|
|
@@ -348,6 +420,8 @@ export type RelationshipInHtmlTableProps<Schemas extends OptionalSchemas> = {
|
|
|
348
420
|
* pairs as keys, and with a value that can either be a string label to show
|
|
349
421
|
* in the column header, or a CustomCell object to further configure the
|
|
350
422
|
* column.
|
|
423
|
+
* @category Prop
|
|
424
|
+
* @since v4.1.0
|
|
351
425
|
*/
|
|
352
426
|
readonly customCells?:
|
|
353
427
|
| Ids
|
|
@@ -364,12 +438,16 @@ export type ResultTableInHtmlTableProps<Schemas extends OptionalSchemas> = {
|
|
|
364
438
|
/**
|
|
365
439
|
* The Id of the query in the Queries object for which the ResultTable will be
|
|
366
440
|
* rendered.
|
|
441
|
+
* @category Prop
|
|
442
|
+
* @since v4.1.0
|
|
367
443
|
*/
|
|
368
444
|
readonly queryId: Id;
|
|
369
445
|
/**
|
|
370
446
|
* The Queries object to be accessed: omit for the default context Queries
|
|
371
447
|
* object, provide an Id for a named context Queries object, or provide an
|
|
372
448
|
* explicit reference.
|
|
449
|
+
* @category Prop
|
|
450
|
+
* @since v4.1.0
|
|
373
451
|
*/
|
|
374
452
|
readonly queries?: QueriesOrQueriesId<Schemas>;
|
|
375
453
|
/**
|
|
@@ -378,6 +456,8 @@ export type ResultTableInHtmlTableProps<Schemas extends OptionalSchemas> = {
|
|
|
378
456
|
* desired Cell Ids as keys, and with a value that can either be a string
|
|
379
457
|
* label to show in the column header, or a ResultCustomCell object to further
|
|
380
458
|
* configure the column.
|
|
459
|
+
* @category Prop
|
|
460
|
+
* @since v4.1.0
|
|
381
461
|
*/
|
|
382
462
|
readonly customCells?:
|
|
383
463
|
| Ids
|
|
@@ -396,29 +476,41 @@ export type ResultSortedTableInHtmlTableProps<Schemas extends OptionalSchemas> =
|
|
|
396
476
|
/**
|
|
397
477
|
* The Id of the query in the Queries object for which the ResultTable will be
|
|
398
478
|
* rendered.
|
|
479
|
+
* @category Prop
|
|
480
|
+
* @since v4.1.0
|
|
399
481
|
*/
|
|
400
482
|
readonly queryId: Id;
|
|
401
483
|
/**
|
|
402
484
|
* The Id of the Cell whose values are used for the sorting. If omitted, the
|
|
403
485
|
* view will sort the Row Id itself.
|
|
486
|
+
* @category Prop
|
|
487
|
+
* @since v4.1.0
|
|
404
488
|
*/
|
|
405
489
|
readonly cellId?: Id;
|
|
406
490
|
/**
|
|
407
491
|
* Whether the sorting should be in descending order.
|
|
492
|
+
* @category Prop
|
|
493
|
+
* @since v4.1.0
|
|
408
494
|
*/
|
|
409
495
|
readonly descending?: boolean;
|
|
410
496
|
/**
|
|
411
497
|
* The number of Row Ids to skip for pagination purposes.
|
|
498
|
+
* @category Prop
|
|
499
|
+
* @since v4.1.0
|
|
412
500
|
*/
|
|
413
501
|
readonly offset?: number;
|
|
414
502
|
/**
|
|
415
503
|
* The maximum number of Row Ids to return.
|
|
504
|
+
* @category Prop
|
|
505
|
+
* @since v4.1.0
|
|
416
506
|
*/
|
|
417
507
|
readonly limit?: number;
|
|
418
508
|
/**
|
|
419
509
|
* The Queries object to be accessed: omit for the default context Queries
|
|
420
510
|
* object, provide an Id for a named context Queries object, or provide an
|
|
421
511
|
* explicit reference.
|
|
512
|
+
* @category Prop
|
|
513
|
+
* @since v4.1.0
|
|
422
514
|
*/
|
|
423
515
|
readonly queries?: QueriesOrQueriesId<Schemas>;
|
|
424
516
|
/**
|
|
@@ -427,6 +519,8 @@ export type ResultSortedTableInHtmlTableProps<Schemas extends OptionalSchemas> =
|
|
|
427
519
|
* desired Cell Ids as keys, and with a value that can either be a string
|
|
428
520
|
* label to show in the column header, or a ResultCustomCell object to further
|
|
429
521
|
* configure the column.
|
|
522
|
+
* @category Prop
|
|
523
|
+
* @since v4.1.0
|
|
430
524
|
*/
|
|
431
525
|
readonly customCells?:
|
|
432
526
|
| Ids
|
|
@@ -434,18 +528,24 @@ export type ResultSortedTableInHtmlTableProps<Schemas extends OptionalSchemas> =
|
|
|
434
528
|
/**
|
|
435
529
|
* Whether the table should be interactive such that clicking a header changes
|
|
436
530
|
* the sorting and/or direction.
|
|
531
|
+
* @category Prop
|
|
532
|
+
* @since v4.1.0
|
|
437
533
|
*/
|
|
438
534
|
readonly sortOnClick?: boolean;
|
|
439
535
|
/**
|
|
440
536
|
* Either `true` to show the default SortedTablePaginator for the ResultTable,
|
|
441
537
|
* or provide your own paginator component that takes
|
|
442
538
|
* SortedTablePaginatorProps.
|
|
539
|
+
* @category Prop
|
|
540
|
+
* @since v4.1.0
|
|
443
541
|
*/
|
|
444
542
|
readonly paginator?: boolean | ComponentType<SortedTablePaginatorProps>;
|
|
445
543
|
/**
|
|
446
544
|
* A function that is called whenever the sorting or pagination of the
|
|
447
545
|
* ResultTable is changed by the user, invoked with the sorted Cell Id,
|
|
448
546
|
* whether descending or not, and the offset of the pagination.
|
|
547
|
+
* @category Prop
|
|
548
|
+
* @since v4.1.0
|
|
449
549
|
*/
|
|
450
550
|
readonly onChange?: (
|
|
451
551
|
sortAndOffset: [
|
|
@@ -466,28 +566,40 @@ export type SortedTablePaginatorProps = {
|
|
|
466
566
|
/**
|
|
467
567
|
* An event that will fire when the offset is updated, called with the new
|
|
468
568
|
* offset.
|
|
569
|
+
* @category Prop
|
|
570
|
+
* @since v4.1.0
|
|
469
571
|
*/
|
|
470
572
|
readonly onChange: (offset: number) => void;
|
|
471
573
|
/**
|
|
472
574
|
* The number of Row Ids to skip for pagination.
|
|
575
|
+
* @category Prop
|
|
576
|
+
* @since v4.1.0
|
|
473
577
|
*/
|
|
474
578
|
readonly offset?: number;
|
|
475
579
|
/**
|
|
476
580
|
* The maximum number of Row Ids being returned.
|
|
581
|
+
* @category Prop
|
|
582
|
+
* @since v4.1.0
|
|
477
583
|
*/
|
|
478
584
|
readonly limit?: number;
|
|
479
585
|
/**
|
|
480
586
|
* The total number of Row Ids in the paginated table.
|
|
587
|
+
* @category Prop
|
|
588
|
+
* @since v4.1.0
|
|
481
589
|
*/
|
|
482
590
|
readonly total: number;
|
|
483
591
|
/**
|
|
484
592
|
* A noun to use in the pagination label for a single row, defaulting to
|
|
485
593
|
* 'row'.
|
|
594
|
+
* @category Prop
|
|
595
|
+
* @since v4.1.0
|
|
486
596
|
*/
|
|
487
597
|
readonly singular?: string;
|
|
488
598
|
/**
|
|
489
599
|
* A noun to use in the pagination label for multiple rows, defaulting to the
|
|
490
600
|
* value of the singular noun suffixed with the letter 's'.
|
|
601
|
+
* @category Prop
|
|
602
|
+
* @since v4.1.0
|
|
491
603
|
*/
|
|
492
604
|
readonly plural?: string;
|
|
493
605
|
};
|
|
@@ -495,17 +607,21 @@ export type SortedTablePaginatorProps = {
|
|
|
495
607
|
/**
|
|
496
608
|
* InspectorProps props are used to configure the Inspector component.
|
|
497
609
|
* @category Props
|
|
498
|
-
* @since
|
|
610
|
+
* @since v5.0.0
|
|
499
611
|
*/
|
|
500
612
|
export type InspectorProps = {
|
|
501
613
|
/**
|
|
502
614
|
* An optional string to indicate where you want the inspector to first
|
|
503
615
|
* appear.
|
|
616
|
+
* @category Prop
|
|
617
|
+
* @since v5.0.0
|
|
504
618
|
*/
|
|
505
619
|
readonly position?: 'top' | 'right' | 'bottom' | 'left' | 'full';
|
|
506
620
|
/**
|
|
507
621
|
* An optional boolean to indicate whether the inspector should start in the
|
|
508
622
|
* opened state.
|
|
623
|
+
* @category Prop
|
|
624
|
+
* @since v5.0.0
|
|
509
625
|
*/
|
|
510
626
|
readonly open?: boolean;
|
|
511
627
|
};
|
|
@@ -1864,7 +1980,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1864
1980
|
* // -> '<aside id="tinybaseInspector">'
|
|
1865
1981
|
* ```
|
|
1866
1982
|
* @category Development components
|
|
1867
|
-
* @since
|
|
1983
|
+
* @since v5.0.0
|
|
1868
1984
|
*/
|
|
1869
1985
|
Inspector: (props: InspectorProps) => ComponentReturnType;
|
|
1870
1986
|
};
|