@gridkitjs/core 0.0.0-dev-20261112195026 → 0.0.0-dev-20261112200523
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/dist/{chunk-NXKMJVDV.js → chunk-AHDALZCY.js} +1 -1
- package/dist/chunk-AHDALZCY.js.map +1 -0
- package/dist/{filterEditor-D5WzEl48.d.ts → filterEditor-9hncygVf.d.ts} +35 -28
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/renderer.d.ts +2 -2
- package/dist/renderer.js +1 -1
- package/package.json +2 -1
- package/dist/chunk-NXKMJVDV.js.map +0 -1
|
@@ -103,7 +103,7 @@ interface GridController<Row, Node = string> {
|
|
|
103
103
|
*/
|
|
104
104
|
readonly restoreState: (saved: Partial<GridState<Row>> | Partial<SerializedGridState<Row>>) => void;
|
|
105
105
|
/**
|
|
106
|
-
* Replaces the column widths. Reported through `
|
|
106
|
+
* Replaces the column widths. Reported through `onColumnSizingChange` as the
|
|
107
107
|
* `"end"` of a resize of the first column whose width changed, at its new
|
|
108
108
|
* width — or, when its entry was removed, the width its definition gives
|
|
109
109
|
* it. Equal widths report nothing.
|
|
@@ -379,6 +379,10 @@ declare function formatGroupValue<Row>(value: unknown, column: ColumnDefinition<
|
|
|
379
379
|
* the app's to choose. Nor is formatting — dates and numbers follow
|
|
380
380
|
* `locale`, and so do the counts the defaults print: "1,204 of 10,000 rows"
|
|
381
381
|
* under `"en"`, "1.204 of 10.000 rows" under `"de-DE"`.
|
|
382
|
+
*
|
|
383
|
+
* A minor release may add keys. The `messages` option takes a partial set
|
|
384
|
+
* laid over the defaults, so a translation without a new key shows its
|
|
385
|
+
* English default until it gains one.
|
|
382
386
|
*/
|
|
383
387
|
interface GridMessages {
|
|
384
388
|
/** The pager's accessible name. */
|
|
@@ -865,7 +869,7 @@ interface PrintOptions extends ExportOptions {
|
|
|
865
869
|
*/
|
|
866
870
|
readonly timestamp?: boolean | Date | undefined;
|
|
867
871
|
/** The language the timestamp is written in. Defaults to the grid's. */
|
|
868
|
-
readonly locale?: FormatLocale;
|
|
872
|
+
readonly locale?: FormatLocale | undefined;
|
|
869
873
|
/**
|
|
870
874
|
* Which way the paper is turned. Defaults to `"landscape"` for a table of
|
|
871
875
|
* more than six columns, which rarely fits a portrait page, else
|
|
@@ -950,7 +954,7 @@ interface CsvOptions {
|
|
|
950
954
|
*/
|
|
951
955
|
readonly delimiter?: string | undefined;
|
|
952
956
|
/** The locale `delimiter: "auto"` reads; the runtime's own when absent. */
|
|
953
|
-
readonly locale?: FormatLocale;
|
|
957
|
+
readonly locale?: FormatLocale | undefined;
|
|
954
958
|
/** What ends each record. Defaults to `"\r\n"`, as RFC 4180 writes it. */
|
|
955
959
|
readonly eol?: string | undefined;
|
|
956
960
|
/**
|
|
@@ -1117,6 +1121,7 @@ type GridCommandTarget = {
|
|
|
1117
1121
|
/**
|
|
1118
1122
|
* Where a command was run from: a context menu, the toolbar, a renderer's
|
|
1119
1123
|
* API, or a column's filter menu — its sort entries and its "Clear filter".
|
|
1124
|
+
* A minor release may add a source, so a `switch` over it needs a `default`.
|
|
1120
1125
|
*/
|
|
1121
1126
|
type GridCommandSource = "contextMenu" | "toolbar" | "api" | "filterMenu";
|
|
1122
1127
|
/** What `onCommand` is told of a command, or an inline menu item, that ran. */
|
|
@@ -1129,13 +1134,15 @@ interface GridCommandEvent {
|
|
|
1129
1134
|
}
|
|
1130
1135
|
/**
|
|
1131
1136
|
* The panels a command can ask a renderer to open: the column chooser, and
|
|
1132
|
-
* a column's filter menu, which opens on a header target only.
|
|
1137
|
+
* a column's filter menu, which opens on a header target only. A minor
|
|
1138
|
+
* release may add a panel, so a `switch` over it needs a `default`.
|
|
1133
1139
|
*/
|
|
1134
1140
|
type GridPanelKind = "columnChooser" | "filter";
|
|
1135
1141
|
/**
|
|
1136
1142
|
* What a command needs that only a renderer has: a DOM to measure, panels to
|
|
1137
1143
|
* open, a live region to speak through. A caller with none of these — a test,
|
|
1138
|
-
* a script in Node — passes members that do nothing.
|
|
1144
|
+
* a script in Node — passes members that do nothing. A member added in a
|
|
1145
|
+
* minor release is optional, so a host built by hand keeps compiling.
|
|
1139
1146
|
*/
|
|
1140
1147
|
interface GridCommandHost {
|
|
1141
1148
|
/** Sizes each column to fit its content, as double-clicking its resize handle does. */
|
|
@@ -1533,9 +1540,9 @@ declare function toolbarEntries<Row>(toolbar: boolean | GridToolbarOptions<Row>
|
|
|
1533
1540
|
type Borders = "horizontal" | "vertical" | "all" | "none";
|
|
1534
1541
|
/** Which hover highlighting a grid shows. Every member defaults to on. */
|
|
1535
1542
|
interface HoverableConfig {
|
|
1536
|
-
rows?: boolean;
|
|
1537
|
-
columns?: boolean;
|
|
1538
|
-
cells?: boolean;
|
|
1543
|
+
rows?: boolean | undefined;
|
|
1544
|
+
columns?: boolean | undefined;
|
|
1545
|
+
cells?: boolean | undefined;
|
|
1539
1546
|
}
|
|
1540
1547
|
/**
|
|
1541
1548
|
* How the group-by bar's visibility follows the active grouping. `"always"`
|
|
@@ -1659,7 +1666,7 @@ interface GridOptions<Row> {
|
|
|
1659
1666
|
defaultColumnSizing?: ColumnSizingState | undefined;
|
|
1660
1667
|
/**
|
|
1661
1668
|
* Column widths, controlled — applied as given, changed only through
|
|
1662
|
-
* `
|
|
1669
|
+
* `onColumnSizingChange`, whose `sizing` is the next state. Leave it
|
|
1663
1670
|
* `undefined` for the grid to keep the widths itself, starting from
|
|
1664
1671
|
* `defaultColumnSizing`.
|
|
1665
1672
|
*/
|
|
@@ -1702,7 +1709,7 @@ interface GridOptions<Row> {
|
|
|
1702
1709
|
* `phase: "move"` and once on release with `phase: "end"` — the latter being
|
|
1703
1710
|
* the one to persist. Auto-fitting a column calls it once, with "end".
|
|
1704
1711
|
*/
|
|
1705
|
-
|
|
1712
|
+
onColumnSizingChange?: ((event: ColumnResizeEvent) => void) | undefined;
|
|
1706
1713
|
/**
|
|
1707
1714
|
* Called once when the user drops a column somewhere new. A drop that leaves
|
|
1708
1715
|
* the order as it was does not call it.
|
|
@@ -1910,7 +1917,7 @@ interface GridOptions<Row> {
|
|
|
1910
1917
|
* without it, only a column with its own `format` is formatted, in the
|
|
1911
1918
|
* runtime's locale, and the rest print as they always have.
|
|
1912
1919
|
*/
|
|
1913
|
-
locale?: FormatLocale;
|
|
1920
|
+
locale?: FormatLocale | undefined;
|
|
1914
1921
|
/**
|
|
1915
1922
|
* The grid's own strings, replacing its English key by key — the pager's
|
|
1916
1923
|
* buttons, the group-by bar, the loading row, boolean and blank values,
|
|
@@ -2146,7 +2153,7 @@ interface ColumnDefinition<Row, Node = string> {
|
|
|
2146
2153
|
* is unique in the common case but need not be — two columns may render the
|
|
2147
2154
|
* same field differently.
|
|
2148
2155
|
*/
|
|
2149
|
-
id?: string;
|
|
2156
|
+
id?: string | undefined;
|
|
2150
2157
|
/**
|
|
2151
2158
|
* The column's name as plain text. The header shows it when there is no
|
|
2152
2159
|
* `headerTemplate`, and anything that needs the name as text rather than
|
|
@@ -2174,7 +2181,7 @@ interface ColumnDefinition<Row, Node = string> {
|
|
|
2174
2181
|
* sorts as `compareValues` does without a type, two numbers or two `Date`s
|
|
2175
2182
|
* by value and any other pair as text.
|
|
2176
2183
|
*/
|
|
2177
|
-
type?: ColumnType;
|
|
2184
|
+
type?: ColumnType | undefined;
|
|
2178
2185
|
/**
|
|
2179
2186
|
* `Intl` options for how this column's values read as text: number options
|
|
2180
2187
|
* for a numeric `type`, date options for a date or time one. Passed to
|
|
@@ -2195,25 +2202,25 @@ interface ColumnDefinition<Row, Node = string> {
|
|
|
2195
2202
|
* Alignment of this column's cells. This package is framework-agnostic so it
|
|
2196
2203
|
* defaults to `left` (`right` for numbers);
|
|
2197
2204
|
*/
|
|
2198
|
-
alignment?: ColumnAlignment;
|
|
2205
|
+
alignment?: ColumnAlignment | undefined;
|
|
2199
2206
|
/**
|
|
2200
2207
|
* Width in px this column starts at. A user resize overrides it for as long
|
|
2201
2208
|
* as that resize lives in the sizing state.
|
|
2202
2209
|
*/
|
|
2203
|
-
width?: number;
|
|
2210
|
+
width?: number | undefined;
|
|
2204
2211
|
/** Lower bound a resize may not drag below. */
|
|
2205
|
-
minWidth?: number;
|
|
2212
|
+
minWidth?: number | undefined;
|
|
2206
2213
|
/** Upper bound a resize may not drag above. */
|
|
2207
|
-
maxWidth?: number;
|
|
2214
|
+
maxWidth?: number | undefined;
|
|
2208
2215
|
/** Whether this column can be resized, overriding the grid-level default. */
|
|
2209
|
-
resizable?: boolean;
|
|
2216
|
+
resizable?: boolean | undefined;
|
|
2210
2217
|
/**
|
|
2211
2218
|
* Whether this column can be dragged to a new position, overriding the
|
|
2212
2219
|
* grid-level default. A column that cannot move can still be moved past.
|
|
2213
2220
|
*/
|
|
2214
|
-
reorderable?: boolean;
|
|
2221
|
+
reorderable?: boolean | undefined;
|
|
2215
2222
|
/** Whether this column can be sorted, overriding the grid-level default. */
|
|
2216
|
-
sortable?: boolean;
|
|
2223
|
+
sortable?: boolean | undefined;
|
|
2217
2224
|
/**
|
|
2218
2225
|
* Whether this column has a filter menu, overriding the grid-level
|
|
2219
2226
|
* `filterableColumns`. Like `sortable`, it gates the user's way in and
|
|
@@ -2226,7 +2233,7 @@ interface ColumnDefinition<Row, Node = string> {
|
|
|
2226
2233
|
*/
|
|
2227
2234
|
filterMenu?: ColumnFilterMenuOptions | undefined;
|
|
2228
2235
|
/** Whether this column can be grouped by, overriding the grid-level default. */
|
|
2229
|
-
groupable?: boolean;
|
|
2236
|
+
groupable?: boolean | undefined;
|
|
2230
2237
|
/**
|
|
2231
2238
|
* Whether this column's header shows its group-toggle icon, overriding
|
|
2232
2239
|
* the grid-level default. Purely a rendering choice — it does not affect
|
|
@@ -2235,14 +2242,14 @@ interface ColumnDefinition<Row, Node = string> {
|
|
|
2235
2242
|
* same way the resize handle stays `aria-hidden` while `Alt+ArrowLeft`/
|
|
2236
2243
|
* `ArrowRight` still resize.
|
|
2237
2244
|
*/
|
|
2238
|
-
groupToggleIcon?: boolean;
|
|
2245
|
+
groupToggleIcon?: boolean | undefined;
|
|
2239
2246
|
/**
|
|
2240
2247
|
* Whether this column's header may be dragged into the group-by bar to
|
|
2241
2248
|
* add it to the active grouping, overriding the grid-level default.
|
|
2242
2249
|
* Distinct from `groupable`: a column can be groupable via its header's
|
|
2243
2250
|
* click/`Alt+ArrowDown` toggle, via this drag, both, or neither.
|
|
2244
2251
|
*/
|
|
2245
|
-
groupByDraggable?: boolean;
|
|
2252
|
+
groupByDraggable?: boolean | undefined;
|
|
2246
2253
|
/**
|
|
2247
2254
|
* Lets this column's header and/or cell text wrap onto multiple lines
|
|
2248
2255
|
* instead of the grid's default single line with an ellipsis. Off by
|
|
@@ -2250,20 +2257,20 @@ interface ColumnDefinition<Row, Node = string> {
|
|
|
2250
2257
|
* rather than something a minor release could turn on under an existing
|
|
2251
2258
|
* grid.
|
|
2252
2259
|
*/
|
|
2253
|
-
wrap?: ColumnWrapConfig;
|
|
2260
|
+
wrap?: ColumnWrapConfig | undefined;
|
|
2254
2261
|
/**
|
|
2255
2262
|
* Extra class names appended to this column's `th`. An escape hatch for a
|
|
2256
2263
|
* consumer's own CSS — nothing in this package reads them — for anything
|
|
2257
2264
|
* `wrap` and the rest of this type don't cover.
|
|
2258
2265
|
*/
|
|
2259
|
-
headerClassName?: string;
|
|
2266
|
+
headerClassName?: string | undefined;
|
|
2260
2267
|
/**
|
|
2261
2268
|
* Extra class names appended to this column's `td`, on every row. Static
|
|
2262
2269
|
* per column: a per-row condition is already `cellTemplate`'s job (a
|
|
2263
2270
|
* template returning its own markup with a conditional class), so this
|
|
2264
2271
|
* stays a plain string rather than taking the row.
|
|
2265
2272
|
*/
|
|
2266
|
-
cellClassName?: string;
|
|
2273
|
+
cellClassName?: string | undefined;
|
|
2267
2274
|
/**
|
|
2268
2275
|
* Whether this column starts out hidden. A hidden column is not rendered
|
|
2269
2276
|
* but is still a column of the grid: a sort, filter or grouping on it
|
|
@@ -2297,8 +2304,8 @@ interface ColumnDefinition<Row, Node = string> {
|
|
|
2297
2304
|
}
|
|
2298
2305
|
/** Which parts of a column opt out of the grid's default single-line text. */
|
|
2299
2306
|
interface ColumnWrapConfig {
|
|
2300
|
-
header?: boolean;
|
|
2301
|
-
cells?: boolean;
|
|
2307
|
+
header?: boolean | undefined;
|
|
2308
|
+
cells?: boolean | undefined;
|
|
2302
2309
|
}
|
|
2303
2310
|
/**
|
|
2304
2311
|
* Widths the user has changed, keyed by column id. Holding only what changed —
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { G as GridControllerOptions, a as GridController, b as GridCommandTarget, c as GridMessages, d as GridCommandHost, e as GridCommandContext, f as GridCommand, M as MenuEntry, R as ResolvedMenuEntry, g as GridToolbarTarget, T as ToolbarItemAttributes, h as ToolbarEntry, i as ResolvedToolbarItem, C as ColumnType, j as ColumnSortState, S as SortDirection, k as ResolvedRow, D as DataColumn, F as FilterState, l as FieldPath, m as ResolvedColumn, n as SelectedCellRef, o as SelectedCell, p as SelectedColumn, P as PaginationUnit, q as DisplayRow, r as PaginationState, A as AggregateState, s as AggregateResults, t as GroupByState, u as GroupAggregateDisplay, v as ColumnVisibilityState, w as ColumnDefinition, x as GridViewInput, y as GridView, z as GridState, B as SerializedGridState, E as ExportTable, H as ExportSource, I as ExportWriter, J as GridExportOptions, K as ExportFile } from './filterEditor-
|
|
2
|
-
export { L as ALL_COLLAPSED, N as ALL_EXPANDED, O as AggregateFn, Q as AggregateSpec, U as Borders, V as BuiltInAggregate, W as BuiltInCommandIcon, X as BuiltInCommandId, Y as CellSelectEvent, Z as CellSelectionChangeEvent, _ as CellSelectionMode, $ as CellSelectionState, a0 as CellTemplateContext, a1 as ColumnAlignment, a2 as ColumnConstraints, a3 as ColumnFilterMenuOptions, a4 as ColumnOrderEvent, a5 as ColumnOrderState, a6 as ColumnResizeEvent, a7 as ColumnResolveOptions, a8 as ColumnSelectEvent, a9 as ColumnSelectionChangeEvent, aa as ColumnSizeDefaults, ab as ColumnSizingState, ac as ColumnSortEntry, ad as ColumnSortEvent, ae as ColumnVisibilityEvent, af as ColumnWrapConfig, ag as ColumnsSelectEvent, ah as ContextMenuOpenChangeEvent, ai as CopyContent, aj as CsvOptions, ak as DEFAULT_COLUMN_SIZES, al as DEFAULT_FILTER_VALUE_LIMIT, am as ExportCell, an as ExportColumn, ao as ExportDataRow, ap as ExportGroupRow, aq as ExportGroupSummaryRow, ar as ExportOptions, as as ExportRow, at as ExportScalar, au as ExportTotalRow, av as ExportWriteContext, aw as FilterChangeEvent, ax as FilterEntry, ay as FilterMenuUi, az as FilterOperator, aA as FilterOperatorFamily, aB as FilterPredicate, aC as FilterScalar, aD as FooterTemplateContext, aE as FormatLocale, aF as GridCommandActions, aG as GridCommandEvent, aH as GridCommandSource, aI as GridContextMenuArea, aJ as GridContextMenuEntries, aK as GridContextMenuOptions, aL as GridContextMenuRequest, aM as GridContextMenuTarget, aN as GridFilterMenuOptions, aO as GridFocus, aP as GridOptions, aQ as GridPanelKind, aR as GridToolbarOptions, aS as GridViewOptions, aT as GridViewState, aU as GroupByBarVisibility, aV as GroupByEntry, aW as GroupByEvent, aX as GroupExpansionEvent, aY as GroupExpansionState, aZ as GroupFilterEntry, a_ as HoverableConfig, a$ as JsonOptions, b0 as MenuItemEntry, b1 as MenuSubmenuEntry, b2 as OperatorFilterEntry, b3 as PaginationChangeEvent, b4 as PredicateFilterEntry, b5 as PrintDocument, b6 as PrintOptions, b7 as PrintOrientation, b8 as PrintPage, b9 as PrintSource, ba as ResizeMode, bb as ResolvedGroupRow, bc as ResolvedGroupSummaryRow, bd as ResolvedMenuItem, be as ResolvedMenuSeparator, bf as ResolvedMenuSubmenu, bg as ResolvedToolbarButton, bh as ResolvedToolbarCustom, bi as ResolvedToolbarMenu, bj as ResolvedToolbarSearch, bk as ResolvedToolbarSpacer, bl as RowPointerEvent, bm as RowProps, bn as RowSelectEvent, bo as RowSelectionChangeEvent, bp as RowsSelectEvent, bq as SelectIntent, br as SelectableConfig, bs as SelectionCallbacks, bt as SelectionDiff, bu as SelectionDiffEvent, bv as SelectionMode, bw as SelectionState, bx as SerializedFilterEntry, by as SerializedFilterScalar, bz as SerializedFilterState, bA as SerializedGroupFilterEntry, bB as SerializedOperatorFilterEntry, bC as SerializedValueFilterEntry, bD as TextFilterEntry, bE as ToolbarCustomEntry, bF as ValueFilterEntry, bG as accessDotted, bH as alignmentForType, bI as applyColumnOrder, bJ as applySelectionIntent, bK as bodyFocus, bL as buildExportTable, bM as builtInCommands, bN as clearSelection, bO as collapseAllGroups, bP as contextMenuEntries, bQ as createDefaultMessages, bR as csvWriter, bS as defaultContextMenu, bT as defaultFilterOperators, bU as defaultMessages, bV as defaultToolbar, bW as defineColumnsFromRows, bX as expandAllGroups, bY as exportPrintDocument, bZ as formatAggregateValue, b_ as formatCellValue, b$ as formatGroupValue, c0 as getColumnId, c1 as groupRowId, c2 as groupRows, c3 as headerFocus, c4 as isColumnFiltered, c5 as isGroupExpanded, c6 as isSameCell, c7 as jsonWriter, c8 as moveColumnBefore, c9 as moveGroupByBefore, ca as resolveColumnHeaderText, cb as resolveColumnLabel, cc as resolveColumnWidths, cd as resolveDataColumns, ce as resolveExportWriters, cf as resolveMessages, cg as resolveRowId, ch as selectAll, ci as selectCell, cj as selectOnly, ck as selectRange, cl as toCsv, cm as toJson, cn as toggleCellSelection, co as toggleGroupExpansion, cp as toggleSelection, cq as toolbarEntries } from './filterEditor-
|
|
1
|
+
import { G as GridControllerOptions, a as GridController, b as GridCommandTarget, c as GridMessages, d as GridCommandHost, e as GridCommandContext, f as GridCommand, M as MenuEntry, R as ResolvedMenuEntry, g as GridToolbarTarget, T as ToolbarItemAttributes, h as ToolbarEntry, i as ResolvedToolbarItem, C as ColumnType, j as ColumnSortState, S as SortDirection, k as ResolvedRow, D as DataColumn, F as FilterState, l as FieldPath, m as ResolvedColumn, n as SelectedCellRef, o as SelectedCell, p as SelectedColumn, P as PaginationUnit, q as DisplayRow, r as PaginationState, A as AggregateState, s as AggregateResults, t as GroupByState, u as GroupAggregateDisplay, v as ColumnVisibilityState, w as ColumnDefinition, x as GridViewInput, y as GridView, z as GridState, B as SerializedGridState, E as ExportTable, H as ExportSource, I as ExportWriter, J as GridExportOptions, K as ExportFile } from './filterEditor-9hncygVf.js';
|
|
2
|
+
export { L as ALL_COLLAPSED, N as ALL_EXPANDED, O as AggregateFn, Q as AggregateSpec, U as Borders, V as BuiltInAggregate, W as BuiltInCommandIcon, X as BuiltInCommandId, Y as CellSelectEvent, Z as CellSelectionChangeEvent, _ as CellSelectionMode, $ as CellSelectionState, a0 as CellTemplateContext, a1 as ColumnAlignment, a2 as ColumnConstraints, a3 as ColumnFilterMenuOptions, a4 as ColumnOrderEvent, a5 as ColumnOrderState, a6 as ColumnResizeEvent, a7 as ColumnResolveOptions, a8 as ColumnSelectEvent, a9 as ColumnSelectionChangeEvent, aa as ColumnSizeDefaults, ab as ColumnSizingState, ac as ColumnSortEntry, ad as ColumnSortEvent, ae as ColumnVisibilityEvent, af as ColumnWrapConfig, ag as ColumnsSelectEvent, ah as ContextMenuOpenChangeEvent, ai as CopyContent, aj as CsvOptions, ak as DEFAULT_COLUMN_SIZES, al as DEFAULT_FILTER_VALUE_LIMIT, am as ExportCell, an as ExportColumn, ao as ExportDataRow, ap as ExportGroupRow, aq as ExportGroupSummaryRow, ar as ExportOptions, as as ExportRow, at as ExportScalar, au as ExportTotalRow, av as ExportWriteContext, aw as FilterChangeEvent, ax as FilterEntry, ay as FilterMenuUi, az as FilterOperator, aA as FilterOperatorFamily, aB as FilterPredicate, aC as FilterScalar, aD as FooterTemplateContext, aE as FormatLocale, aF as GridCommandActions, aG as GridCommandEvent, aH as GridCommandSource, aI as GridContextMenuArea, aJ as GridContextMenuEntries, aK as GridContextMenuOptions, aL as GridContextMenuRequest, aM as GridContextMenuTarget, aN as GridFilterMenuOptions, aO as GridFocus, aP as GridOptions, aQ as GridPanelKind, aR as GridToolbarOptions, aS as GridViewOptions, aT as GridViewState, aU as GroupByBarVisibility, aV as GroupByEntry, aW as GroupByEvent, aX as GroupExpansionEvent, aY as GroupExpansionState, aZ as GroupFilterEntry, a_ as HoverableConfig, a$ as JsonOptions, b0 as MenuItemEntry, b1 as MenuSubmenuEntry, b2 as OperatorFilterEntry, b3 as PaginationChangeEvent, b4 as PredicateFilterEntry, b5 as PrintDocument, b6 as PrintOptions, b7 as PrintOrientation, b8 as PrintPage, b9 as PrintSource, ba as ResizeMode, bb as ResolvedGroupRow, bc as ResolvedGroupSummaryRow, bd as ResolvedMenuItem, be as ResolvedMenuSeparator, bf as ResolvedMenuSubmenu, bg as ResolvedToolbarButton, bh as ResolvedToolbarCustom, bi as ResolvedToolbarMenu, bj as ResolvedToolbarSearch, bk as ResolvedToolbarSpacer, bl as RowPointerEvent, bm as RowProps, bn as RowSelectEvent, bo as RowSelectionChangeEvent, bp as RowsSelectEvent, bq as SelectIntent, br as SelectableConfig, bs as SelectionCallbacks, bt as SelectionDiff, bu as SelectionDiffEvent, bv as SelectionMode, bw as SelectionState, bx as SerializedFilterEntry, by as SerializedFilterScalar, bz as SerializedFilterState, bA as SerializedGroupFilterEntry, bB as SerializedOperatorFilterEntry, bC as SerializedValueFilterEntry, bD as TextFilterEntry, bE as ToolbarCustomEntry, bF as ValueFilterEntry, bG as accessDotted, bH as alignmentForType, bI as applyColumnOrder, bJ as applySelectionIntent, bK as bodyFocus, bL as buildExportTable, bM as builtInCommands, bN as clearSelection, bO as collapseAllGroups, bP as contextMenuEntries, bQ as createDefaultMessages, bR as csvWriter, bS as defaultContextMenu, bT as defaultFilterOperators, bU as defaultMessages, bV as defaultToolbar, bW as defineColumnsFromRows, bX as expandAllGroups, bY as exportPrintDocument, bZ as formatAggregateValue, b_ as formatCellValue, b$ as formatGroupValue, c0 as getColumnId, c1 as groupRowId, c2 as groupRows, c3 as headerFocus, c4 as isColumnFiltered, c5 as isGroupExpanded, c6 as isSameCell, c7 as jsonWriter, c8 as moveColumnBefore, c9 as moveGroupByBefore, ca as resolveColumnHeaderText, cb as resolveColumnLabel, cc as resolveColumnWidths, cd as resolveDataColumns, ce as resolveExportWriters, cf as resolveMessages, cg as resolveRowId, ch as selectAll, ci as selectCell, cj as selectOnly, ck as selectRange, cl as toCsv, cm as toJson, cn as toggleCellSelection, co as toggleGroupExpansion, cp as toggleSelection, cq as toolbarEntries } from './filterEditor-9hncygVf.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Creates the state container for one grid — see `GridController`. Hold one
|
package/dist/index.js
CHANGED
|
@@ -86,7 +86,7 @@ import {
|
|
|
86
86
|
unknownDisplayRow,
|
|
87
87
|
unknownFilterEntry,
|
|
88
88
|
withGroupAggregates
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-AHDALZCY.js";
|
|
90
90
|
|
|
91
91
|
// src/util/memoize.ts
|
|
92
92
|
function memoizeLast(compute) {
|
|
@@ -950,7 +950,7 @@ function createGridController(initial) {
|
|
|
950
950
|
}
|
|
951
951
|
function commitColumnSizing(next, columnId, width, phase) {
|
|
952
952
|
commit("columnSizing", next, () => {
|
|
953
|
-
options.
|
|
953
|
+
options.onColumnSizingChange?.({ columnId, width, sizing: next, phase });
|
|
954
954
|
});
|
|
955
955
|
}
|
|
956
956
|
function definedWidth(columnId) {
|