@pythia-software/query-table-ui 0.9.4 → 0.9.5
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 +9 -0
- package/dist/index.d.ts +6 -2
- package/dist/index.js +464 -362
- package/dist/index.js.map +1 -1
- package/dist/theme.css +19 -3
- package/dist/theme.css.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -234,6 +234,15 @@ full workbenches use the shared modal/sheet foundation with Apply/Cancel and foc
|
|
|
234
234
|
containment. Native selects, expandable sections, and formula autocomplete keep
|
|
235
235
|
their respective form, disclosure, and combobox interactions.
|
|
236
236
|
|
|
237
|
+
Distinct filter values use a freeform combobox. Focus or click the value input
|
|
238
|
+
to open suggestions; Arrow Up/Down highlights a choice and Enter selects it.
|
|
239
|
+
Escape dismisses suggestions and Tab leaves without selecting. The menu sizes
|
|
240
|
+
to its contents independently of the compact input, wraps long values, and
|
|
241
|
+
scrolls within the viewport, including inside mobile filter dialogs. Loading,
|
|
242
|
+
unavailable suggestions, and no matches never prevent typing arbitrary values.
|
|
243
|
+
While fetching new suggestions, matching values from the previous response stay
|
|
244
|
+
visible and selectable. A loading message appears only when no known values match.
|
|
245
|
+
|
|
237
246
|
## Tag/set filters
|
|
238
247
|
|
|
239
248
|
Set `filter.editor: "set"` on a `textarray` field to use the native WHERE
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { ReactNode, SetStateAction,
|
|
2
|
+
import { ReactNode, SetStateAction, CSSProperties, ButtonHTMLAttributes, PointerEvent, Ref, MutableRefObject } from 'react';
|
|
3
3
|
import { FieldDef, QueryState, LinkTargets, CellDisplay, JsonCellDisplay, RowId, AggregationClause, AggregationBucket, AggregationResultEntry, MetricValue, SavedQuery, FieldStats, WhereClause, MetricValueFormat, FieldSchema, PropertyViewState, RelationshipAdapter, ObjectReference, PropertyFormat, PropertyViewStorage, ItemPropertyMode, FormulaFunction, GroupedRow } from '@pythia-software/query-table-core';
|
|
4
4
|
import { ItemDetailsApi, SelectionApi, ColumnDragApi, QueryTableApi, QueryFilterApi, AggregationsApi, SavedQueriesApi, RequestActivityApi, PropertyViewApi, GroupingApi } from '@pythia-software/query-table-react';
|
|
5
5
|
import { Placement } from '@floating-ui/react';
|
|
@@ -346,7 +346,11 @@ interface FloatingOverlayOptions {
|
|
|
346
346
|
anchor: OverlayAnchor;
|
|
347
347
|
onClose: () => void;
|
|
348
348
|
returnFocus?: HTMLElement | null | undefined;
|
|
349
|
-
width?:
|
|
349
|
+
width?: CSSProperties["width"] | undefined;
|
|
350
|
+
/** Combobox suggestions remain anchored on mobile and keep focus in their input. */
|
|
351
|
+
modalOnMobile?: boolean | undefined;
|
|
352
|
+
retainAnchorFocus?: boolean | undefined;
|
|
353
|
+
maxHeight?: number | undefined;
|
|
350
354
|
placement?: Placement | undefined;
|
|
351
355
|
nodeId?: string | undefined;
|
|
352
356
|
}
|