tinybase 8.4.2 → 8.5.0-beta.1
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/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 +242 -0
- package/@types/ui-react-dom-charts/with-schemas/index.d.ts +296 -0
- 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-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-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/common/index.js +3 -2
- package/common/with-schemas/index.js +3 -2
- package/index.js +5 -3
- package/mergeable-store/index.js +5 -3
- package/mergeable-store/with-schemas/index.js +5 -3
- package/metrics/index.js +1 -1
- package/metrics/with-schemas/index.js +1 -1
- package/min/common/index.js +1 -1
- package/min/common/index.js.gz +0 -0
- package/min/common/with-schemas/index.js +1 -1
- package/min/common/with-schemas/index.js.gz +0 -0
- package/min/index.js +1 -1
- package/min/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/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-partykit-server/index.js +1 -1
- package/min/persisters/persister-partykit-server/index.js.gz +0 -0
- package/min/persisters/persister-partykit-server/with-schemas/index.js +1 -1
- package/min/persisters/persister-partykit-server/with-schemas/index.js.gz +0 -0
- package/min/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/index.js +1 -1
- package/min/synchronizers/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -1
- package/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -1
- package/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-local/index.js +1 -1
- package/min/synchronizers/synchronizer-local/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-local/with-schemas/index.js +1 -1
- package/min/synchronizers/synchronizer-local/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/synchronizers/with-schemas/index.js +1 -1
- package/min/synchronizers/with-schemas/index.js.gz +0 -0
- package/min/ui-react-dom/index.js +1 -1
- package/min/ui-react-dom/index.js.gz +0 -0
- package/min/ui-react-dom/with-schemas/index.js +1 -1
- package/min/ui-react-dom/with-schemas/index.js.gz +0 -0
- package/min/ui-react-dom-charts/index.js +1 -0
- package/min/ui-react-dom-charts/index.js.gz +0 -0
- package/min/ui-react-dom-charts/with-schemas/index.js +1 -0
- package/min/ui-react-dom-charts/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-dom/index.js +1 -1
- package/min/ui-solid-dom/index.js.gz +0 -0
- package/min/ui-solid-dom/with-schemas/index.js +1 -1
- package/min/ui-solid-dom/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-dom/index.js +1 -1
- package/min/ui-svelte-dom/index.js.gz +0 -0
- package/min/ui-svelte-dom/with-schemas/index.js +1 -1
- package/min/ui-svelte-dom/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 +7 -4
- package/omni/with-schemas/index.js +7 -4
- package/package.json +38 -2
- package/persisters/persister-durable-object-sql-storage/index.js +13 -11
- package/persisters/persister-durable-object-sql-storage/with-schemas/index.js +13 -11
- package/persisters/persister-partykit-client/index.js +2 -1
- package/persisters/persister-partykit-client/with-schemas/index.js +2 -1
- package/persisters/persister-partykit-server/index.js +2 -1
- package/persisters/persister-partykit-server/with-schemas/index.js +2 -1
- package/queries/index.js +1 -1
- package/queries/with-schemas/index.js +1 -1
- package/readme.md +18 -14
- package/releases.md +91 -58
- package/synchronizers/index.js +3 -2
- package/synchronizers/synchronizer-broadcast-channel/index.js +3 -2
- package/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +3 -2
- package/synchronizers/synchronizer-local/index.js +3 -2
- package/synchronizers/synchronizer-local/with-schemas/index.js +3 -2
- package/synchronizers/synchronizer-ws-client/index.js +3 -2
- package/synchronizers/synchronizer-ws-client/with-schemas/index.js +3 -2
- package/synchronizers/synchronizer-ws-server/index.js +3 -2
- package/synchronizers/synchronizer-ws-server/with-schemas/index.js +3 -2
- package/synchronizers/synchronizer-ws-server-durable-object/index.js +3 -2
- package/synchronizers/synchronizer-ws-server-durable-object/with-schemas/index.js +3 -2
- package/synchronizers/with-schemas/index.js +3 -2
- package/ui-react-dom/index.js +10 -7
- package/ui-react-dom/with-schemas/index.js +10 -7
- package/ui-react-dom-charts/index.js +1229 -0
- package/ui-react-dom-charts/with-schemas/index.js +1229 -0
- package/ui-react-inspector/index.js +13 -9
- package/ui-react-inspector/with-schemas/index.js +13 -9
- package/ui-solid-dom/index.js +10 -7
- package/ui-solid-dom/with-schemas/index.js +10 -7
- package/ui-solid-inspector/index.js +13 -9
- package/ui-solid-inspector/with-schemas/index.js +13 -9
- package/ui-svelte-dom/index.js +11 -8
- package/ui-svelte-dom/with-schemas/index.js +11 -8
- package/ui-svelte-inspector/index.js +17 -13
- package/ui-svelte-inspector/with-schemas/index.js +17 -13
- package/with-schemas/index.js +5 -3
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ui-react-dom-charts module of the TinyBase project provides components
|
|
3
|
+
* to make it easy to create web-based reactive charts with Store and Queries
|
|
4
|
+
* objects.
|
|
5
|
+
*
|
|
6
|
+
* The components in this module use the react-dom module and so are not
|
|
7
|
+
* appropriate for environments like React Native (although those in the
|
|
8
|
+
* lower-level ui-react module are).
|
|
9
|
+
*
|
|
10
|
+
* For a full list of SVG class names that can be styled with CSS, see the
|
|
11
|
+
* Using Charts guide.
|
|
12
|
+
* @packageDocumentation
|
|
13
|
+
* @module ui-react-dom-charts
|
|
14
|
+
* @since v8.5.0
|
|
15
|
+
*/
|
|
16
|
+
import type {
|
|
17
|
+
CellIdFromSchema,
|
|
18
|
+
TableIdFromSchema,
|
|
19
|
+
} from '../../_internal/store/with-schemas/index.d.ts';
|
|
20
|
+
import type {ComponentReturnType} from '../../_internal/ui-react/with-schemas/index.d.ts';
|
|
21
|
+
import type {
|
|
22
|
+
QueriesOrQueriesId,
|
|
23
|
+
StoreOrStoreId,
|
|
24
|
+
} from '../../_internal/ui/with-schemas/index.d.ts';
|
|
25
|
+
import type {Id} from '../../common/with-schemas/index.d.ts';
|
|
26
|
+
import type {OptionalSchemas} from '../../store/with-schemas/index.d.ts';
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The ChartProps type describes the props that are used to configure the
|
|
30
|
+
* chart element that renders a chart.
|
|
31
|
+
* @category Configuration
|
|
32
|
+
* @since v8.5.0
|
|
33
|
+
*/
|
|
34
|
+
export type ChartProps = {
|
|
35
|
+
/**
|
|
36
|
+
* An optional string that will be used as the class attribute of the chart's
|
|
37
|
+
* SVG element. This can be used as the root selector for styling chart
|
|
38
|
+
* internals, as shown in the Using Charts guide.
|
|
39
|
+
* @category Prop
|
|
40
|
+
* @since v8.5.0
|
|
41
|
+
*/
|
|
42
|
+
readonly className?: string;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The ChartTableSourceProps type describes the props that bind a chart to a
|
|
47
|
+
* Table in a Store.
|
|
48
|
+
* @category Configuration
|
|
49
|
+
* @since v8.5.0
|
|
50
|
+
*/
|
|
51
|
+
export type ChartTableSourceProps<
|
|
52
|
+
Schemas extends OptionalSchemas,
|
|
53
|
+
TableIds extends TableIdFromSchema<Schemas[0]> = TableIdFromSchema<
|
|
54
|
+
Schemas[0]
|
|
55
|
+
>,
|
|
56
|
+
> = TableIds extends infer TableId
|
|
57
|
+
? TableId extends TableIdFromSchema<Schemas[0]>
|
|
58
|
+
? {
|
|
59
|
+
/**
|
|
60
|
+
* The Id of the Table in the Store to chart.
|
|
61
|
+
* @category Prop
|
|
62
|
+
* @since v8.5.0
|
|
63
|
+
*/
|
|
64
|
+
readonly tableId: TableId;
|
|
65
|
+
/**
|
|
66
|
+
* The Store to chart, or the Id of a Store that is registered with the
|
|
67
|
+
* Provider component.
|
|
68
|
+
* @category Prop
|
|
69
|
+
* @since v8.5.0
|
|
70
|
+
*/
|
|
71
|
+
readonly store?: StoreOrStoreId<Schemas>;
|
|
72
|
+
/**
|
|
73
|
+
* This prop is not used when binding a chart to a Table.
|
|
74
|
+
* @category Prop
|
|
75
|
+
* @since v8.5.0
|
|
76
|
+
*/
|
|
77
|
+
readonly queryId?: never;
|
|
78
|
+
/**
|
|
79
|
+
* This prop is not used when binding a chart to a Table.
|
|
80
|
+
* @category Prop
|
|
81
|
+
* @since v8.5.0
|
|
82
|
+
*/
|
|
83
|
+
readonly queries?: never;
|
|
84
|
+
}
|
|
85
|
+
: never
|
|
86
|
+
: never;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* The ChartQuerySourceProps type describes the props that bind a chart to a
|
|
90
|
+
* Query in a Queries object.
|
|
91
|
+
* @category Configuration
|
|
92
|
+
* @since v8.5.0
|
|
93
|
+
*/
|
|
94
|
+
export type ChartQuerySourceProps<Schemas extends OptionalSchemas> = {
|
|
95
|
+
/**
|
|
96
|
+
* The Id of the query in the Queries object to chart.
|
|
97
|
+
* @category Prop
|
|
98
|
+
* @since v8.5.0
|
|
99
|
+
*/
|
|
100
|
+
readonly queryId: Id;
|
|
101
|
+
/**
|
|
102
|
+
* The Queries object to chart, or the Id of a Queries object that is
|
|
103
|
+
* registered with the Provider component.
|
|
104
|
+
* @category Prop
|
|
105
|
+
* @since v8.5.0
|
|
106
|
+
*/
|
|
107
|
+
readonly queries?: QueriesOrQueriesId<Schemas>;
|
|
108
|
+
/**
|
|
109
|
+
* This prop is not used when binding a chart to a Query.
|
|
110
|
+
* @category Prop
|
|
111
|
+
* @since v8.5.0
|
|
112
|
+
*/
|
|
113
|
+
readonly tableId?: never;
|
|
114
|
+
/**
|
|
115
|
+
* This prop is not used when binding a chart to a Query.
|
|
116
|
+
* @category Prop
|
|
117
|
+
* @since v8.5.0
|
|
118
|
+
*/
|
|
119
|
+
readonly store?: never;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* The ChartBindingProps type describes the props that bind a chart to Cell
|
|
124
|
+
* values in TinyBase data.
|
|
125
|
+
* @category Configuration
|
|
126
|
+
* @since v8.5.0
|
|
127
|
+
*/
|
|
128
|
+
export type ChartBindingProps<CellId extends Id = Id> = {
|
|
129
|
+
/**
|
|
130
|
+
* The Id of the Cell that provides each data point's x value.
|
|
131
|
+
* @category Prop
|
|
132
|
+
* @since v8.5.0
|
|
133
|
+
*/
|
|
134
|
+
readonly xCellId: CellId;
|
|
135
|
+
/**
|
|
136
|
+
* The Id of the Cell that provides each data point's y value.
|
|
137
|
+
* @category Prop
|
|
138
|
+
* @since v8.5.0
|
|
139
|
+
*/
|
|
140
|
+
readonly yCellId: CellId;
|
|
141
|
+
/**
|
|
142
|
+
* The Id of the Cell used to sort the charted rows.
|
|
143
|
+
* @category Prop
|
|
144
|
+
* @since v8.5.0
|
|
145
|
+
*/
|
|
146
|
+
readonly sortCellId?: CellId;
|
|
147
|
+
/**
|
|
148
|
+
* Whether the charted rows should be sorted in descending order.
|
|
149
|
+
* @category Prop
|
|
150
|
+
* @since v8.5.0
|
|
151
|
+
*/
|
|
152
|
+
readonly descending?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* The number of sorted rows to skip before charting.
|
|
155
|
+
* @category Prop
|
|
156
|
+
* @since v8.5.0
|
|
157
|
+
*/
|
|
158
|
+
readonly offset?: number;
|
|
159
|
+
/**
|
|
160
|
+
* The maximum number of sorted rows to chart.
|
|
161
|
+
* @category Prop
|
|
162
|
+
* @since v8.5.0
|
|
163
|
+
*/
|
|
164
|
+
readonly limit?: number;
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
type ChartTableBindingProps<
|
|
168
|
+
Schemas extends OptionalSchemas,
|
|
169
|
+
TableIds extends TableIdFromSchema<Schemas[0]> = TableIdFromSchema<
|
|
170
|
+
Schemas[0]
|
|
171
|
+
>,
|
|
172
|
+
> = TableIds extends infer TableId
|
|
173
|
+
? TableId extends TableIdFromSchema<Schemas[0]>
|
|
174
|
+
? ChartTableSourceProps<Schemas, TableId> &
|
|
175
|
+
ChartBindingProps<CellIdFromSchema<Schemas[0], TableId>>
|
|
176
|
+
: never
|
|
177
|
+
: never;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* The WithSchemas type provides a version of this module that is typed with
|
|
181
|
+
* schemas.
|
|
182
|
+
* @category Development
|
|
183
|
+
* @since v8.5.0
|
|
184
|
+
*/
|
|
185
|
+
export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
186
|
+
/**
|
|
187
|
+
* The LineChart component renders a line chart from TinyBase data.
|
|
188
|
+
* @category Store components
|
|
189
|
+
* @since v8.5.0
|
|
190
|
+
* @example
|
|
191
|
+
* This example creates a Provider context into which a default Store is
|
|
192
|
+
* provided. The LineChart component then renders an SVG chart from Cells in the
|
|
193
|
+
* `pets` Table.
|
|
194
|
+
*
|
|
195
|
+
* This has schema-based typing. The following is a simplified representation:
|
|
196
|
+
*
|
|
197
|
+
* ```ts override
|
|
198
|
+
* LineChart(
|
|
199
|
+
* props: (ChartTableSourceProps | ChartQuerySourceProps) &
|
|
200
|
+
* ChartBindingProps &
|
|
201
|
+
* ChartProps,
|
|
202
|
+
* ): ComponentReturnType;
|
|
203
|
+
* ```
|
|
204
|
+
*
|
|
205
|
+
* ```jsx
|
|
206
|
+
* import React from 'react';
|
|
207
|
+
* import {createRoot} from 'react-dom/client';
|
|
208
|
+
* import {createStore} from 'tinybase';
|
|
209
|
+
* import {Provider} from 'tinybase/ui-react';
|
|
210
|
+
* import {LineChart} from 'tinybase/ui-react-dom-charts';
|
|
211
|
+
*
|
|
212
|
+
* const App = ({store}) => (
|
|
213
|
+
* <Provider store={store}>
|
|
214
|
+
* <LineChart
|
|
215
|
+
* tableId="pets"
|
|
216
|
+
* xCellId="order"
|
|
217
|
+
* yCellId="sold"
|
|
218
|
+
* className="sales"
|
|
219
|
+
* />
|
|
220
|
+
* </Provider>
|
|
221
|
+
* );
|
|
222
|
+
*
|
|
223
|
+
* const store = createStore().setTable('pets', {
|
|
224
|
+
* hamsters: {order: 1, sold: 12},
|
|
225
|
+
* rabbits: {order: 2, sold: 9},
|
|
226
|
+
* });
|
|
227
|
+
* const app = document.createElement('div');
|
|
228
|
+
* createRoot(app).render(<App store={store} />); // !act
|
|
229
|
+
* console.log(app.firstChild?.nodeName.toLowerCase());
|
|
230
|
+
* // -> 'svg'
|
|
231
|
+
* console.log(app.firstChild?.getAttribute('class'));
|
|
232
|
+
* // -> 'sales'
|
|
233
|
+
* ```
|
|
234
|
+
*/
|
|
235
|
+
LineChart: (
|
|
236
|
+
props:
|
|
237
|
+
| (ChartTableBindingProps<Schemas> & ChartProps)
|
|
238
|
+
| (ChartQuerySourceProps<Schemas> & ChartBindingProps & ChartProps),
|
|
239
|
+
) => ComponentReturnType;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* The BarChart component renders a bar chart from TinyBase data.
|
|
243
|
+
* @category Store components
|
|
244
|
+
* @since v8.5.0
|
|
245
|
+
* @example
|
|
246
|
+
* This example creates a Queries object and provides it through Provider
|
|
247
|
+
* context. The BarChart component then renders an SVG chart from Cells in the
|
|
248
|
+
* `bySpecies` query.
|
|
249
|
+
*
|
|
250
|
+
* This has schema-based typing. The following is a simplified representation:
|
|
251
|
+
*
|
|
252
|
+
* ```ts override
|
|
253
|
+
* BarChart(
|
|
254
|
+
* props: (ChartTableSourceProps | ChartQuerySourceProps) &
|
|
255
|
+
* ChartBindingProps &
|
|
256
|
+
* ChartProps,
|
|
257
|
+
* ): ComponentReturnType;
|
|
258
|
+
* ```
|
|
259
|
+
*
|
|
260
|
+
* ```jsx
|
|
261
|
+
* import React from 'react';
|
|
262
|
+
* import {createRoot} from 'react-dom/client';
|
|
263
|
+
* import {createQueries, createStore} from 'tinybase';
|
|
264
|
+
* import {Provider} from 'tinybase/ui-react';
|
|
265
|
+
* import {BarChart} from 'tinybase/ui-react-dom-charts';
|
|
266
|
+
*
|
|
267
|
+
* const App = ({queries}) => (
|
|
268
|
+
* <Provider queries={queries}>
|
|
269
|
+
* <BarChart queryId="bySpecies" xCellId="species" yCellId="sold" />
|
|
270
|
+
* </Provider>
|
|
271
|
+
* );
|
|
272
|
+
*
|
|
273
|
+
* const store = createStore().setTable('pets', {
|
|
274
|
+
* hamsters: {species: 'hamster', sold: 12},
|
|
275
|
+
* rabbits: {species: 'rabbit', sold: 9},
|
|
276
|
+
* });
|
|
277
|
+
* const queries = createQueries(store).setQueryDefinition(
|
|
278
|
+
* 'bySpecies',
|
|
279
|
+
* 'pets',
|
|
280
|
+
* ({select}) => {
|
|
281
|
+
* select('species');
|
|
282
|
+
* select('sold');
|
|
283
|
+
* },
|
|
284
|
+
* );
|
|
285
|
+
* const app = document.createElement('div');
|
|
286
|
+
* createRoot(app).render(<App queries={queries} />); // !act
|
|
287
|
+
* console.log(app.firstChild?.nodeName.toLowerCase());
|
|
288
|
+
* // -> 'svg'
|
|
289
|
+
* ```
|
|
290
|
+
*/
|
|
291
|
+
BarChart: (
|
|
292
|
+
props:
|
|
293
|
+
| (ChartTableBindingProps<Schemas> & ChartProps)
|
|
294
|
+
| (ChartQuerySourceProps<Schemas> & ChartBindingProps & ChartProps),
|
|
295
|
+
) => ComponentReturnType;
|
|
296
|
+
};
|
|
@@ -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
|
|
@@ -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
|
|
@@ -672,7 +672,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
672
672
|
*
|
|
673
673
|
* See the <TableInHtmlTable /> (Solid) demo for this component in action:
|
|
674
674
|
*
|
|
675
|
-
* 
|
|
677
677
|
*
|
|
678
678
|
* The component's props identify which Table to render based on Table Id, and
|
|
@@ -824,7 +824,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
824
824
|
* See the <SortedTableInHtmlTable /> (Solid) demo for this component in
|
|
825
825
|
* action:
|
|
826
826
|
*
|
|
827
|
-
* 
|
|
829
829
|
*
|
|
830
830
|
* 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 /> (Solid) 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,
|
|
@@ -1140,7 +1140,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1140
1140
|
*
|
|
1141
1141
|
* See the <SliceInHtmlTable /> (Solid) demo for this component in action:
|
|
1142
1142
|
*
|
|
1143
|
-
* 
|
|
1145
1145
|
*
|
|
1146
1146
|
* The component's props identify which Slice to render based on Index Id, Slice
|
|
@@ -1304,7 +1304,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1304
1304
|
* See the <RelationshipInHtmlTable /> (Solid) demo for this component in
|
|
1305
1305
|
* action:
|
|
1306
1306
|
*
|
|
1307
|
-
* 
|
|
1309
1309
|
*
|
|
1310
1310
|
* The component's props identify which Relationship to render based on
|
|
@@ -1486,7 +1486,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1486
1486
|
* See the <ResultTableInHtmlTable /> (Solid) demo for this component in
|
|
1487
1487
|
* action:
|
|
1488
1488
|
*
|
|
1489
|
-
* 
|
|
1491
1491
|
*
|
|
1492
1492
|
* The component's props identify which ResultTable to render based on query Id,
|
|
@@ -1645,7 +1645,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1645
1645
|
* See the <ResultSortedTableInHtmlTable /> (Solid) demo for this component in
|
|
1646
1646
|
* action:
|
|
1647
1647
|
*
|
|
1648
|
-
* 
|
|
1650
1650
|
*
|
|
1651
1651
|
* The component's props identify which ResultTable to render based on query Id,
|
|
@@ -1825,7 +1825,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1825
1825
|
*
|
|
1826
1826
|
* See the <EditableCellView /> (Solid) demo for this component in action:
|
|
1827
1827
|
*
|
|
1828
|
-
* 
|
|
1830
1830
|
*
|
|
1831
1831
|
* The component's props identify which Cell to render based on Table Id, Row
|
|
@@ -1909,7 +1909,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1909
1909
|
*
|
|
1910
1910
|
* See the <EditableValueView /> (Solid) demo for this component in action:
|
|
1911
1911
|
*
|
|
1912
|
-
* 
|
|
1914
1914
|
*
|
|
1915
1915
|
* The component's props identify which Value to render based on Table Id, Row
|
|
@@ -1979,7 +1979,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
|
|
|
1979
1979
|
* See the <SortedTableInHtmlTable /> (Solid) demo for this component in
|
|
1980
1980
|
* action:
|
|
1981
1981
|
*
|
|
1982
|
-
* 
|
|
1984
1984
|
*
|
|
1985
1985
|
* 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
|