@pythia-software/query-table-ui 0.9.6 → 0.9.7
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/README.md +5 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +1686 -1216
- package/dist/index.js.map +1 -1
- package/dist/theme.css +20 -0
- package/dist/theme.css.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -115,7 +115,11 @@ Open **Column Widths** to resize in one step:
|
|
|
115
115
|
- **Fit All to Screen** fills the viewport; when content overflows, narrow
|
|
116
116
|
columns keep their content width and only the widest ones are trimmed. It
|
|
117
117
|
sets `query.fitToScreen`, so shared links and saved queries fit each viewer's
|
|
118
|
-
available table area after loading and when that area changes.
|
|
118
|
+
available table area after loading and when that area changes. No column
|
|
119
|
+
is trimmed below what its buttons and links need (links shorten to an
|
|
120
|
+
ellipsis first); if those minimums exceed the screen, the table scrolls
|
|
121
|
+
horizontally. Set `select.minWidth` on a field whose host renderer needs
|
|
122
|
+
room the table cannot measure.
|
|
119
123
|
- **Equal Widths** splits the viewport evenly.
|
|
120
124
|
- **Reset Widths** drops explicit widths back to schema defaults.
|
|
121
125
|
|
package/dist/index.d.ts
CHANGED
|
@@ -246,7 +246,14 @@ interface MetricClassNames {
|
|
|
246
246
|
}
|
|
247
247
|
declare function createMetricColorResolver(theme?: MetricTheme): {
|
|
248
248
|
token: (name: MetricToken) => string;
|
|
249
|
-
color(field: string, value: MetricValue)
|
|
249
|
+
color: (field: string, value: MetricValue) => string;
|
|
250
|
+
/**
|
|
251
|
+
* Colours whole group keys drawn together. Single values resolve as
|
|
252
|
+
* `color`. A tuple's colour depends only on the theme and its values,
|
|
253
|
+
* except that tuples sharing a chart take the next free colour rather
|
|
254
|
+
* than repeat one while the palette has room.
|
|
255
|
+
*/
|
|
256
|
+
tupleColors(fields: readonly string[], tuples: ReadonlyArray<readonly MetricValue[]>): (values: readonly MetricValue[]) => string;
|
|
250
257
|
};
|
|
251
258
|
|
|
252
259
|
interface QueryBuilderProps<Row> {
|
|
@@ -526,6 +533,9 @@ interface ObjectPropertiesProps<Row> {
|
|
|
526
533
|
onOpenReference?: (reference: ObjectReference) => void;
|
|
527
534
|
/** Explicit projection coverage distinguishes unloaded fields from NULL values. */
|
|
528
535
|
loadedFields?: readonly string[];
|
|
536
|
+
/** The collection query the row came from, passed to renderers; group link
|
|
537
|
+
* summaries resolve their destinations from it. */
|
|
538
|
+
query?: QueryState;
|
|
529
539
|
locale?: string;
|
|
530
540
|
theme?: MetricTheme;
|
|
531
541
|
now?: number;
|