@gridkitjs/core 0.18.0 → 0.19.0

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.
@@ -130,8 +130,10 @@ interface GridController<Row, Node = string> {
130
130
  readonly setColumnOrder: (order: ColumnOrderState) => void;
131
131
  /**
132
132
  * Moves a column in front of `beforeId`, or to the end when that is
133
- * `null`, among every column — hidden ones keep their place. A move that
134
- * changes nothing reports nothing.
133
+ * `null`, among every column — hidden ones keep their place. The column
134
+ * stays among those pinned to the same edge, or the unpinned ones: a
135
+ * `beforeId` in an earlier group moves it to the start of its own, and one
136
+ * in a later group to its end. A move that changes nothing reports nothing.
135
137
  */
136
138
  readonly moveColumn: (columnId: string, beforeId: string | null) => void;
137
139
  /**
@@ -144,6 +146,19 @@ interface GridController<Row, Node = string> {
144
146
  readonly showColumns: (columnIds: readonly string[]) => void;
145
147
  /** Hides the given columns. A hidden column still sorts, filters and groups. */
146
148
  readonly hideColumns: (columnIds: readonly string[]) => void;
149
+ /**
150
+ * Replaces the column pinning state. Reported through
151
+ * `onColumnPinningChange` with every column whose entry changed; an equal
152
+ * state reports nothing.
153
+ */
154
+ readonly setColumnPinning: (pinning: ColumnPinningState) => void;
155
+ /**
156
+ * Pins a column to the `"start"` or `"end"` edge, or unpins it with
157
+ * `"none"`, leaving the column order as it is: an unpinned column goes
158
+ * back to its place among the others. A column already there, or an id
159
+ * naming no column, reports nothing.
160
+ */
161
+ readonly pinColumn: (columnId: string, pin: ColumnPin) => void;
147
162
  /**
148
163
  * Replaces the filter. Reported through `onFilterChange`; a filter equal to
149
164
  * the current one — the same entries in the same order, a `Date` value
@@ -447,6 +462,10 @@ interface GridMessages {
447
462
  columnsHidden: (count: number) => string;
448
463
  /** Announced when one change shows more than one column. */
449
464
  columnsShown: (count: number) => string;
465
+ /** Announced when one column is pinned to the grid's `"start"` or `"end"` edge. */
466
+ columnPinned: (columnName: string, edge: "start" | "end") => string;
467
+ /** Announced when one column is unpinned. */
468
+ columnUnpinned: (columnName: string) => string;
450
469
  /**
451
470
  * Announced when one action autofits more than one column, as
452
471
  * `column.autoFitAll` does, in place of each column's `columnResized`.
@@ -475,6 +494,12 @@ interface GridMessages {
475
494
  collapseAllGroups: string;
476
495
  /** `column.hide` */
477
496
  hideColumn: string;
497
+ /** `column.pinStart`: pins the column to the grid's start edge. */
498
+ pinToStart: string;
499
+ /** `column.pinEnd`: pins the column to the grid's end edge. */
500
+ pinToEnd: string;
501
+ /** `column.unpin` */
502
+ unpinColumn: string;
478
503
  /** `column.autoFit`: sizes the column to its content. */
479
504
  autoFitColumn: string;
480
505
  autoFitAllColumns: string;
@@ -1248,7 +1273,7 @@ interface GridCommand<Row> {
1248
1273
  * The id of every command `builtInCommands` returns. A minor release may
1249
1274
  * add a command, so a `switch` over it needs a `default`.
1250
1275
  */
1251
- type BuiltInCommandId = "sort.ascending" | "sort.descending" | "sort.clear" | "sort.clearAll" | "group.add" | "group.remove" | "group.clearAll" | "group.expandAll" | "group.collapseAll" | "column.hide" | "column.autoFit" | "column.autoFitAll" | "column.choose" | "filter.open" | "filter.clear" | "selection.selectAllRows" | "selection.clear" | "filter.clearAll" | "export.csv" | "export.json" | "export.xlsx" | "export.pdf" | "exportSelection.csv" | "exportSelection.json" | "exportSelection.xlsx" | "copy.cell" | "copy.row" | "copy.selection" | "print";
1276
+ type BuiltInCommandId = "sort.ascending" | "sort.descending" | "sort.clear" | "sort.clearAll" | "group.add" | "group.remove" | "group.clearAll" | "group.expandAll" | "group.collapseAll" | "column.hide" | "column.pinStart" | "column.pinEnd" | "column.unpin" | "column.autoFit" | "column.autoFitAll" | "column.choose" | "filter.open" | "filter.clear" | "selection.selectAllRows" | "selection.clear" | "filter.clearAll" | "export.csv" | "export.json" | "export.xlsx" | "export.pdf" | "exportSelection.csv" | "exportSelection.json" | "exportSelection.xlsx" | "copy.cell" | "copy.row" | "copy.selection" | "print";
1252
1277
  /**
1253
1278
  * The icon keys the built-ins carry, which a renderer draws as icons of its
1254
1279
  * own. An app command may use them too, to look like the built-ins. A minor
@@ -1257,7 +1282,7 @@ type BuiltInCommandId = "sort.ascending" | "sort.descending" | "sort.clear" | "s
1257
1282
  type BuiltInCommandIcon = "sortAscending" | "sortDescending" | "group" | "hide" | "autoFit" | "copy" | "print";
1258
1283
  /**
1259
1284
  * The grid's own commands, one per action its menus and toolbar offer —
1260
- * sorting, grouping, hiding, fitting and choosing columns, selecting,
1285
+ * sorting, grouping, hiding, pinning, fitting and choosing columns, selecting,
1261
1286
  * clearing, exporting, copying and printing.
1262
1287
  * Labels come from `messages`, so they follow the grid's language.
1263
1288
  *
@@ -1706,6 +1731,23 @@ interface GridOptions<Row> {
1706
1731
  * change touched. A call that changes nothing does not call it.
1707
1732
  */
1708
1733
  onColumnVisibilityChange?: ((event: ColumnVisibilityEvent) => void) | undefined;
1734
+ /**
1735
+ * Columns pinned (`"start"`, `"end"`) or unpinned (`"none"`) to start
1736
+ * with, keyed by column id, over each definition's own `pinned`.
1737
+ * Uncontrolled.
1738
+ */
1739
+ defaultColumnPinning?: ColumnPinningState | undefined;
1740
+ /**
1741
+ * Which columns are pinned, controlled — applied as given, changed only
1742
+ * through `onColumnPinningChange`. Leave it `undefined` for the grid to
1743
+ * keep it itself, starting from `defaultColumnPinning`.
1744
+ */
1745
+ columnPinning?: ColumnPinningState | undefined;
1746
+ /**
1747
+ * Called once when columns are pinned or unpinned, with every column that
1748
+ * one change touched. A call that changes nothing does not call it.
1749
+ */
1750
+ onColumnPinningChange?: ((event: ColumnPinningEvent) => void) | undefined;
1709
1751
  /**
1710
1752
  * Sizes applied to columns that do not set their own — the width they start
1711
1753
  * at and the bounds they may be resized between. Distinct from
@@ -2293,6 +2335,16 @@ interface ColumnDefinition<Row, Node = string> {
2293
2335
  * ways to do it and nothing else: `hideColumns` still hides the column.
2294
2336
  */
2295
2337
  hideable?: boolean | undefined;
2338
+ /**
2339
+ * Pins this column to the grid's inline start or end edge, where it stays
2340
+ * while the other columns scroll sideways. `"start"` is the left edge in a
2341
+ * left-to-right page and the right edge in a right-to-left one. Pinned
2342
+ * columns are drawn ahead of, or after, every unpinned one, each group in
2343
+ * column order. Pinning or unpinning it later lives in
2344
+ * `ColumnPinningState`, which wins over this for as long as it holds an
2345
+ * entry for the column.
2346
+ */
2347
+ pinned?: "start" | "end" | undefined;
2296
2348
  /**
2297
2349
  * Whether this column is written to an export, a clipboard copy or a
2298
2350
  * print. Defaults to `true`. `false` keeps it out of every one of them —
@@ -2363,6 +2415,8 @@ interface ColumnResolveOptions {
2363
2415
  reorderable?: boolean | undefined;
2364
2416
  /** Whether columns may be dragged into the group-by bar, unless a column says otherwise. */
2365
2417
  groupByDraggable?: boolean | undefined;
2418
+ /** Columns pinned or unpinned over their definitions' `pinned`. */
2419
+ pinning?: ColumnPinningState | undefined;
2366
2420
  }
2367
2421
  /**
2368
2422
  * How a column's width relates to the grid's.
@@ -2413,6 +2467,20 @@ interface ResolvedColumn<Row, Node = string> {
2413
2467
  groupByDraggable: boolean;
2414
2468
  /** How this column's cells align, after falling back to its type. */
2415
2469
  alignment: ColumnAlignment;
2470
+ /** The edge this column is pinned to, after the pinning state, or `"none"`. */
2471
+ pinned: ColumnPin;
2472
+ /**
2473
+ * How far, in px, a pinned column sits from its edge: the summed widths of
2474
+ * the columns pinned to the same edge between it and that edge. `0` for
2475
+ * the column nearest the edge, and for an unpinned column.
2476
+ */
2477
+ pinOffset: number;
2478
+ /**
2479
+ * Whether this column is the last pinned to the start edge or the first
2480
+ * pinned to the end edge — the one beside the scrolling columns, where a
2481
+ * divider goes.
2482
+ */
2483
+ pinEdge: boolean;
2416
2484
  }
2417
2485
  /**
2418
2486
  * A resize in progress. It captures its constraints up front so that applying
@@ -2450,6 +2518,26 @@ interface ColumnVisibilityEvent {
2450
2518
  readonly columnIds: readonly string[];
2451
2519
  readonly visibility: ColumnVisibilityState;
2452
2520
  }
2521
+ /**
2522
+ * The edge a column is pinned to: the grid's inline `"start"` or `"end"`, or
2523
+ * `"none"` for a column that scrolls with the rest.
2524
+ */
2525
+ type ColumnPin = "start" | "end" | "none";
2526
+ /**
2527
+ * Columns pinned or unpinned since the grid started, keyed by column id.
2528
+ * Holding only what changed, the way `ColumnVisibilityState` does: a column
2529
+ * absent from it follows its definition's `pinned`, and `"none"` unpins a
2530
+ * column its definition pins.
2531
+ */
2532
+ type ColumnPinningState = Readonly<Record<string, ColumnPin>>;
2533
+ /**
2534
+ * Reports columns pinned or unpinned. `columnIds` lists every column the one
2535
+ * change touched, and `pinning` is the whole state to persist from.
2536
+ */
2537
+ interface ColumnPinningEvent {
2538
+ readonly columnIds: readonly string[];
2539
+ readonly pinning: ColumnPinningState;
2540
+ }
2453
2541
  /**
2454
2542
  * Column ids in the order they render. It need not list every column: one
2455
2543
  * absent from it keeps its position among the definitions and follows those
@@ -2555,6 +2643,10 @@ interface ResolvedGroupRow {
2555
2643
  readonly expanded: boolean;
2556
2644
  /** Leaf row count under this group, regardless of collapse state. */
2557
2645
  readonly count: number;
2646
+ /** 1-based place among the groups sharing its parent, for `aria-posinset`: the same on every page. */
2647
+ readonly position: number;
2648
+ /** How many groups share its parent, itself included, for `aria-setsize`: the same on every page. */
2649
+ readonly setSize: number;
2558
2650
  /** Position among the display rows as rendered — same invariant ResolvedRow.rowIndex keeps. */
2559
2651
  readonly rowIndex: number;
2560
2652
  /** This header's absolute position in the whole filtered/sorted/grouped dataset, matching ResolvedRow.datasetIndex. */
@@ -2863,6 +2955,20 @@ interface ResolvedRow<Row> {
2863
2955
  readonly rowIndex: number;
2864
2956
  /** This row's absolute position in the whole filtered/sorted/grouped dataset, matching `CellTemplateContext`. */
2865
2957
  readonly datasetIndex: number;
2958
+ /** Where the row sits in its group. Set by `groupRows`; absent from an ungrouped result. */
2959
+ readonly groupPosition?: RowGroupPosition;
2960
+ }
2961
+ /**
2962
+ * A data row's place inside its group: what a renderer draws as the row's
2963
+ * `aria-level`, `aria-posinset` and `aria-setsize` in a treegrid.
2964
+ */
2965
+ interface RowGroupPosition {
2966
+ /** Nesting depth on `ResolvedGroupRow.level`'s scale: one deeper than the group holding the row, so `1` under a top-level group. */
2967
+ readonly level: number;
2968
+ /** 1-based place among the data rows of its group. */
2969
+ readonly position: number;
2970
+ /** How many data rows its group holds, its `count`: the same on every page the group spans. */
2971
+ readonly setSize: number;
2866
2972
  }
2867
2973
  /**
2868
2974
  * A selected column. Carries the resolved column rather than the bare
@@ -2970,6 +3076,7 @@ interface GridState<Row> {
2970
3076
  readonly columnSizing: ColumnSizingState;
2971
3077
  readonly columnOrder: ColumnOrderState;
2972
3078
  readonly columnVisibility: ColumnVisibilityState;
3079
+ readonly columnPinning: ColumnPinningState;
2973
3080
  readonly columnSort: ColumnSortState;
2974
3081
  readonly filter: FilterState<Row>;
2975
3082
  readonly groupBy: GroupByState;
@@ -3031,8 +3138,8 @@ interface GridViewInput<Row, Node = string> {
3031
3138
  readonly columns: readonly ColumnDefinition<Row, Node>[];
3032
3139
  /**
3033
3140
  * The slices to show, any of them: one left out reads as the grid's
3034
- * starting default — no sizes, order, hidden columns, sort, filter or
3035
- * grouping, every group expanded, and the first page of 25.
3141
+ * starting default — no sizes, order, hidden or pinned columns, sort,
3142
+ * filter or grouping, every group expanded, and the first page of 25.
3036
3143
  */
3037
3144
  readonly state: {
3038
3145
  readonly [K in keyof GridViewState<Row>]?: GridViewState<Row>[K] | undefined;
@@ -3047,7 +3154,10 @@ interface GridViewInput<Row, Node = string> {
3047
3154
  interface GridView<Row, Node = string> {
3048
3155
  /** Every column, hidden ones included, ordered but not sized — what the data stages read. */
3049
3156
  readonly dataColumns: readonly DataColumn<Row, Node>[];
3050
- /** The columns as rendered: visible, ordered and sized. */
3157
+ /**
3158
+ * The columns as rendered: visible, ordered and sized, with the columns
3159
+ * pinned to the start first and those pinned to the end last.
3160
+ */
3051
3161
  readonly columns: readonly ResolvedColumn<Row, Node>[];
3052
3162
  /** The rows, filtered then sorted. */
3053
3163
  readonly rows: readonly ResolvedRow<Row>[];
@@ -3129,6 +3239,9 @@ interface KeyShortcutCapabilities {
3129
3239
  * The `aria-keyshortcuts` string for a column header, naming only the keys
3130
3240
  * that column actually responds to — so the keys are discoverable, since
3131
3241
  * none of them is a convention a user would try unprompted.
3242
+ *
3243
+ * The same in either writing direction: both horizontal arrows work in
3244
+ * each, and only which way each one moves is mirrored.
3132
3245
  */
3133
3246
  declare function buildKeyShortcuts(capabilities: KeyShortcutCapabilities): string;
3134
3247
  /**
@@ -3140,6 +3253,20 @@ declare function buildKeyShortcuts(capabilities: KeyShortcutCapabilities): strin
3140
3253
  */
3141
3254
  declare function accessDotted(obj: unknown, path: string): unknown;
3142
3255
 
3256
+ /**
3257
+ * The way a line runs: left to right, or right to left as in Arabic and
3258
+ * Hebrew. Rows, toolbars and the group-by bar run this way, so in `"rtl"`
3259
+ * the first column sits at the right edge.
3260
+ */
3261
+ type WritingDirection = "ltr" | "rtl";
3262
+ /**
3263
+ * Which way a horizontal arrow key moves along a line in `direction`: `1`
3264
+ * to the next column, chip or toolbar control, `-1` to the previous one, or
3265
+ * `null` for any other key. The arrows point the way they move, so in
3266
+ * `"rtl"`, where the next one is to the left, `ArrowLeft` moves forward.
3267
+ */
3268
+ declare function inlineStep(key: string, direction?: WritingDirection): 1 | -1 | null;
3269
+
3143
3270
  /**
3144
3271
  * The cell the grid's single tab stop sits on: a header cell, or a cell of
3145
3272
  * body row `rowIndex`. A body focus's `rowIndex` counts from `0`.
@@ -3184,10 +3311,13 @@ declare function clampFocus(focus: GridFocus, rowCount: number, columnCount: num
3184
3311
  * summary row (`groupAggregateDisplay: "row"`), which still occupies a real
3185
3312
  * row slot for `rowCount`/`aria-rowindex` purposes but is presentational,
3186
3313
  * not a stop of its own. Left/right and plain `Home`/`End` stay row-scoped
3187
- * and so never consult it. Defaults to skipping nothing, so every existing
3188
- * caller (and every horizontal move) is unaffected.
3314
+ * and so never consult it. Defaults to skipping nothing.
3315
+ *
3316
+ * `direction` is the way the grid's rows run, which the left and right
3317
+ * arrows follow: in `"rtl"`, where the first column is at the right edge,
3318
+ * `ArrowLeft` moves to the next column. Defaults to `"ltr"`.
3189
3319
  */
3190
- declare function nextFocusForKey(key: string, modifiers: NavigationModifiers, focus: GridFocus, rowCount: number, columnCount: number, pageSize: number, isSkippableRow?: (rowIndex: number) => boolean): GridFocus | null;
3320
+ declare function nextFocusForKey(key: string, modifiers: NavigationModifiers, focus: GridFocus, rowCount: number, columnCount: number, pageSize: number, isSkippableRow?: (rowIndex: number) => boolean, direction?: WritingDirection): GridFocus | null;
3191
3321
 
3192
3322
  /**
3193
3323
  * Puts `columns` in the order `order` gives. Ids it lists come first, in that
@@ -3214,6 +3344,21 @@ declare function resolveDataColumns<Row, Node>(columns: readonly ColumnDefinitio
3214
3344
  * treat an unchanged reference as "no move happened".
3215
3345
  */
3216
3346
  declare function moveColumnBefore(orderedIds: ColumnOrderState, movedId: string, beforeId: string | null): ColumnOrderState;
3347
+ /**
3348
+ * `moveColumnBefore`, kept inside the moved column's pin group: a column is
3349
+ * pinned or unpinned on purpose, never by being dragged across the boundary.
3350
+ * `pinOf` gives each id's pin. A `beforeId` in an earlier group lands the
3351
+ * column at the start of its own group, and one in a later group, like
3352
+ * `null`, at its end.
3353
+ *
3354
+ * The end of a group is the end of `orderedIds`: the view lists each group
3355
+ * in column order, so a column last in the order is last in its group,
3356
+ * wherever the other groups' columns sit. That is also why a move can change
3357
+ * `orderedIds` and leave every group as it was — a column already last in
3358
+ * its group moved to the end — and such a move hands back `orderedIds`
3359
+ * itself, as a move that changes nothing does.
3360
+ */
3361
+ declare function moveColumnInPinGroup(orderedIds: ColumnOrderState, pinOf: (columnId: string) => ColumnPin, movedId: string, beforeId: string | null): ColumnOrderState;
3217
3362
  /**
3218
3363
  * Whether moving `movedId` in front of `beforeId` would rearrange anything, so
3219
3364
  * that a drop indicator promises exactly the moves that happen.
@@ -3334,12 +3479,15 @@ declare function resolveColumnConstraints<Row>(column: ColumnDefinition<Row, unk
3334
3479
  declare function clampColumnWidth(width: number, constraints: ColumnConstraints): number;
3335
3480
  /**
3336
3481
  * Pairs each column with everything needed to render it — the width it sits
3337
- * at, the label its header shows, whether it may be resized and how its cells
3338
- * align. Widths take the first of the sizing state, the column's own `width`,
3339
- * and the default, then clamp.
3482
+ * at, the label its header shows, whether it may be resized, how its cells
3483
+ * align and where it is pinned. Widths take the first of the sizing state,
3484
+ * the column's own `width`, and the default, then clamp.
3340
3485
  *
3341
3486
  * The sizing state winning means a user's drag outlives a re-render; a column
3342
3487
  * absent from it still tracks a `width` edited in the definition.
3488
+ *
3489
+ * Pin offsets are summed along `columns` as given, so they hold for columns
3490
+ * already in pinned order — see `applyColumnPinning`.
3343
3491
  */
3344
3492
  declare function resolveColumnWidths<Row, Node>(columns: readonly ColumnDefinition<Row, Node>[], sizing: ColumnSizingState, options?: ColumnResolveOptions): readonly ResolvedColumn<Row, Node>[];
3345
3493
  declare function totalColumnWidth<Row, Node>(resolved: readonly ResolvedColumn<Row, Node>[]): number;
@@ -3352,10 +3500,12 @@ declare function totalColumnWidth<Row, Node>(resolved: readonly ResolvedColumn<R
3352
3500
  */
3353
3501
  declare function beginColumnResize<Row>(column: ColumnDefinition<Row, unknown>, startWidth: number, startPosition: number, defaults?: Partial<ColumnSizeDefaults>): ColumnResizeSession;
3354
3502
  /**
3355
- * The width the dragged column takes with the pointer at `position`. The delta
3356
- * is signed, so a right-to-left adapter negates it and nothing else changes.
3503
+ * The width the dragged column takes with the pointer at `position`, its
3504
+ * edge at the inline end of the column: the right edge in `"ltr"`, the left
3505
+ * in `"rtl"`. Dragging that edge outward, away from the column, grows it in
3506
+ * either direction. `direction` defaults to `"ltr"`.
3357
3507
  */
3358
- declare function applyColumnResize(session: ColumnResizeSession, position: number): number;
3508
+ declare function applyColumnResize(session: ColumnResizeSession, position: number, direction?: WritingDirection): number;
3359
3509
  /**
3360
3510
  * Fits columns to `availableWidth`: grows them to fill leftover space, or
3361
3511
  * shrinks them to relieve an overflow, in both cases proportionally to each
@@ -3366,7 +3516,8 @@ declare function applyColumnResize(session: ColumnResizeSession, position: numbe
3366
3516
  * Growing stops at each column's `maxWidth`; shrinking stops at its
3367
3517
  * `minWidth`. If shrinking every adjustable column to its floor still does
3368
3518
  * not reach `availableWidth`, the columns are returned untouched and the
3369
- * container scrolls rather than crushing them further.
3519
+ * container scrolls rather than crushing them further. Pin offsets follow
3520
+ * the new widths.
3370
3521
  */
3371
3522
  declare function fitColumnsToWidth<Row, Node>(resolved: readonly ResolvedColumn<Row, Node>[], availableWidth: number, defaults?: Partial<ColumnSizeDefaults>): readonly ResolvedColumn<Row, Node>[];
3372
3523
  /**
@@ -3402,7 +3553,8 @@ declare function groupRowId(path: readonly unknown[]): string;
3402
3553
  * own `direction`, followed depth-first by its nested groups and/or data
3403
3554
  * rows. A group `expansion` collapses contributes only its own header,
3404
3555
  * nothing beneath it — but its `count` still reports the group's full
3405
- * leaf-row count either way.
3556
+ * leaf-row count either way. Each data row carries its `groupPosition`:
3557
+ * its depth, and its place among and the count of its group's rows.
3406
3558
  *
3407
3559
  * Filter and sort are expected to have already run (see `resolveShownRows`):
3408
3560
  * this only reshapes their output, and never changes which rows appear or
@@ -3469,6 +3621,37 @@ declare function moveGroupByBefore(groupBy: GroupByState, columnId: string, befo
3469
3621
  */
3470
3622
  declare function movesGroupBy(groupBy: GroupByState, columnId: string, beforeColumnId: string | null): boolean;
3471
3623
 
3624
+ /**
3625
+ * The edge `column` is pinned to: what the user last chose for it, if
3626
+ * anything, else what its definition says. The one place that precedence is
3627
+ * decided, so the view and an imperative "is it pinned?" cannot disagree.
3628
+ */
3629
+ declare function resolveColumnPin<Row>(column: ColumnDefinition<Row, unknown>, pinning: ColumnPinningState): ColumnPin;
3630
+ /**
3631
+ * `columns` with the start-pinned ones first and the end-pinned ones last,
3632
+ * each group in the order given. `columns` itself when that is already their
3633
+ * order — always, with nothing pinned — so a stage memoised on this output
3634
+ * sees nothing change.
3635
+ */
3636
+ declare function applyColumnPinning<Row, Node>(columns: readonly DataColumn<Row, Node>[], pinning: ColumnPinningState): readonly DataColumn<Row, Node>[];
3637
+ /**
3638
+ * `pinning` with `columnId` pinned to `pin`, `"none"` to unpin it. The entry
3639
+ * is written only when the column's pin actually changes, and an id naming
3640
+ * no column is ignored, so asking for the pin a column already has hands back
3641
+ * `pinning` itself — the same reference, for a caller deciding whether
3642
+ * anything happened.
3643
+ */
3644
+ declare function setColumnPin<Row>(columns: readonly DataColumn<Row, unknown>[], pinning: ColumnPinningState, columnId: string, pin: ColumnPin): ColumnPinningState;
3645
+ /**
3646
+ * The summed widths of the columns pinned to each edge — how much of the
3647
+ * grid's width each side's pinned columns cover, which a renderer keeps
3648
+ * scrolled content clear of.
3649
+ */
3650
+ declare function pinnedWidths<Row, Node>(columns: readonly ResolvedColumn<Row, Node>[]): {
3651
+ readonly start: number;
3652
+ readonly end: number;
3653
+ };
3654
+
3472
3655
  /**
3473
3656
  * What one column's filter looks like to an editor — which of its forms can
3474
3657
  * show it, or that none can.
@@ -3700,4 +3883,4 @@ declare function draftToFilter<Row>(draft: FilterEditorDraft<Row>, columnId: str
3700
3883
  */
3701
3884
  declare function filterDraftChanged<Row>(opened: FilterEditorDraft<Row>, draft: FilterEditorDraft<Row>): boolean;
3702
3885
 
3703
- export { type CellSelectionState as $, type AggregateState as A, type SerializedGridState as B, type ColumnType as C, type DataColumn as D, type ExportTable as E, type FilterState as F, type GridControllerOptions as G, type ExportSource as H, type ExportWriter as I, type GridExportOptions as J, type ExportFile as K, ALL_COLLAPSED as L, type MenuEntry as M, ALL_EXPANDED as N, type AggregateFn as O, type PaginationUnit as P, type AggregateSpec as Q, type ResolvedMenuEntry as R, type SortDirection as S, type ToolbarItemAttributes as T, type Borders as U, type BuiltInAggregate as V, type BuiltInCommandIcon as W, type BuiltInCommandId as X, type CellSelectEvent as Y, type CellSelectionChangeEvent as Z, type CellSelectionMode as _, type GridController as a, type JsonOptions as a$, type CellTemplateContext as a0, type ColumnAlignment as a1, type ColumnConstraints as a2, type ColumnFilterMenuOptions as a3, type ColumnOrderEvent as a4, type ColumnOrderState as a5, type ColumnResizeEvent as a6, type ColumnResolveOptions as a7, type ColumnSelectEvent as a8, type ColumnSelectionChangeEvent as a9, type FilterOperatorFamily as aA, type FilterPredicate as aB, type FilterScalar as aC, type FooterTemplateContext as aD, type FormatLocale as aE, type GridCommandActions as aF, type GridCommandEvent as aG, type GridCommandSource as aH, type GridContextMenuArea as aI, type GridContextMenuEntries as aJ, type GridContextMenuOptions as aK, type GridContextMenuRequest as aL, type GridContextMenuTarget as aM, type GridFilterMenuOptions as aN, type GridFocus as aO, type GridOptions as aP, type GridPanelKind as aQ, type GridToolbarOptions as aR, type GridViewOptions as aS, type GridViewState as aT, type GroupByBarVisibility as aU, type GroupByEntry as aV, type GroupByEvent as aW, type GroupExpansionEvent as aX, type GroupExpansionState as aY, type GroupFilterEntry as aZ, type HoverableConfig as a_, type ColumnSizeDefaults as aa, type ColumnSizingState as ab, type ColumnSortEntry as ac, type ColumnSortEvent as ad, type ColumnVisibilityEvent as ae, type ColumnWrapConfig as af, type ColumnsSelectEvent as ag, type ContextMenuOpenChangeEvent as ah, type CopyContent as ai, type CsvOptions as aj, DEFAULT_COLUMN_SIZES as ak, DEFAULT_FILTER_VALUE_LIMIT as al, type ExportCell as am, type ExportColumn as an, type ExportDataRow as ao, type ExportGroupRow as ap, type ExportGroupSummaryRow as aq, type ExportOptions as ar, type ExportRow as as, type ExportScalar as at, type ExportTotalRow as au, type ExportWriteContext as av, type FilterChangeEvent as aw, type FilterEntry as ax, type FilterMenuUi as ay, type FilterOperator as az, type GridCommandTarget as b, formatGroupValue as b$, type MenuItemEntry as b0, type MenuSubmenuEntry as b1, type OperatorFilterEntry as b2, type PaginationChangeEvent as b3, type PredicateFilterEntry as b4, type PrintDocument as b5, type PrintOptions as b6, type PrintOrientation as b7, type PrintPage as b8, type PrintSource as b9, type SerializedGroupFilterEntry as bA, type SerializedOperatorFilterEntry as bB, type SerializedValueFilterEntry as bC, type TextFilterEntry as bD, type ToolbarCustomEntry as bE, type ValueFilterEntry as bF, accessDotted as bG, alignmentForType as bH, applyColumnOrder as bI, applySelectionIntent as bJ, bodyFocus as bK, buildExportTable as bL, builtInCommands as bM, clearSelection as bN, collapseAllGroups as bO, contextMenuEntries as bP, createDefaultMessages as bQ, csvWriter as bR, defaultContextMenu as bS, defaultFilterOperators as bT, defaultMessages as bU, defaultToolbar as bV, defineColumnsFromRows as bW, expandAllGroups as bX, exportPrintDocument as bY, formatAggregateValue as bZ, formatCellValue as b_, type ResizeMode as ba, type ResolvedGroupRow as bb, type ResolvedGroupSummaryRow as bc, type ResolvedMenuItem as bd, type ResolvedMenuSeparator as be, type ResolvedMenuSubmenu as bf, type ResolvedToolbarButton as bg, type ResolvedToolbarCustom as bh, type ResolvedToolbarMenu as bi, type ResolvedToolbarSearch as bj, type ResolvedToolbarSpacer as bk, type RowPointerEvent as bl, type RowProps as bm, type RowSelectEvent as bn, type RowSelectionChangeEvent as bo, type RowsSelectEvent as bp, type SelectIntent as bq, type SelectableConfig as br, type SelectionCallbacks as bs, type SelectionDiff as bt, type SelectionDiffEvent as bu, type SelectionMode as bv, type SelectionState as bw, type SerializedFilterEntry as bx, type SerializedFilterScalar as by, type SerializedFilterState as bz, type GridMessages as c, initialFilterEditorDraft as c$, getColumnId as c0, groupRowId as c1, groupRows as c2, headerFocus as c3, isColumnFiltered as c4, isGroupExpanded as c5, isSameCell as c6, jsonWriter as c7, moveColumnBefore as c8, moveGroupByBefore as c9, type CopySource as cA, type DropSide as cB, type FilterEditorAction as cC, type FilterEditorDraft as cD, type FilterEditorDraftBase as cE, KEYBOARD_STEP as cF, type KeyShortcutCapabilities as cG, type NavigationModifiers as cH, type ResolvedColumnFilterMenu as cI, applyColumnResize as cJ, beginColumnResize as cK, buildKeyShortcuts as cL, buildPrintDocument as cM, clampColumnWidth as cN, clampFocus as cO, columnValueOptions as cP, copyContent as cQ, describeColumnFilter as cR, diffSelection as cS, draftToFilter as cT, filterDraftChanged as cU, filterEditorReducer as cV, filterOperandArity as cW, filterOperatorFamily as cX, fitColumnsToWidth as cY, formatFilterOperand as cZ, hasContextMenu as c_, resolveColumnHeaderText as ca, resolveColumnLabel as cb, resolveColumnWidths as cc, resolveDataColumns as cd, resolveExportWriters as ce, resolveMessages as cf, resolveRowId as cg, selectAll as ch, selectCell as ci, selectOnly as cj, selectRange as ck, toCsv as cl, toJson as cm, toggleCellSelection as cn, toggleGroupExpansion as co, toggleSelection as cp, toolbarEntries as cq, type SelectAllState as cr, type ColumnFilterShape as cs, type ColumnValueQuery as ct, type ColumnValueOptions as cu, type ValuesDraft as cv, type ColumnResizeSession as cw, type ColumnValueOption as cx, type ConditionsDraft as cy, type CopyRequest as cz, type GridCommandHost as d, intentOf as d0, movesColumn as d1, movesGroupBy as d2, nextFocusForKey as d3, parseFilterOperand as d4, resolveColumnConstraints as d5, resolveColumnFilterMenu as d6, resolveDropBefore as d7, resolveKeyboardDropTarget as d8, revertColumnSize as d9, selectAllState as da, sizeColumnToContent as db, toConditionsDraft as dc, toValuesDraft as dd, totalColumnWidth as de, visibleFilterOptions as df, type GridCommandContext as e, type GridCommand as f, type GridToolbarTarget as g, type ToolbarEntry as h, type ResolvedToolbarItem as i, type ColumnSortState as j, type ResolvedRow as k, type FieldPath as l, type ResolvedColumn as m, type SelectedCellRef as n, type SelectedCell as o, type SelectedColumn as p, type DisplayRow as q, type PaginationState as r, type AggregateResults as s, type GroupByState as t, type GroupAggregateDisplay as u, type ColumnVisibilityState as v, type ColumnDefinition as w, type GridViewInput as x, type GridView as y, type GridState as z };
3886
+ export { type CellSelectionState as $, type AggregateState as A, type SerializedGridState as B, type ColumnType as C, type DataColumn as D, type ExportTable as E, type FilterState as F, type GridControllerOptions as G, type ExportSource as H, type ExportWriter as I, type GridExportOptions as J, type ExportFile as K, ALL_COLLAPSED as L, type MenuEntry as M, ALL_EXPANDED as N, type AggregateFn as O, type PaginationUnit as P, type AggregateSpec as Q, type ResolvedMenuEntry as R, type SortDirection as S, type ToolbarItemAttributes as T, type Borders as U, type BuiltInAggregate as V, type BuiltInCommandIcon as W, type BuiltInCommandId as X, type CellSelectEvent as Y, type CellSelectionChangeEvent as Z, type CellSelectionMode as _, type GridController as a, type GroupExpansionState as a$, type CellTemplateContext as a0, type ColumnAlignment as a1, type ColumnConstraints as a2, type ColumnFilterMenuOptions as a3, type ColumnOrderEvent as a4, type ColumnOrderState as a5, type ColumnPin as a6, type ColumnPinningEvent as a7, type ColumnPinningState as a8, type ColumnResizeEvent as a9, type FilterEntry as aA, type FilterMenuUi as aB, type FilterOperator as aC, type FilterOperatorFamily as aD, type FilterPredicate as aE, type FilterScalar as aF, type FooterTemplateContext as aG, type FormatLocale as aH, type GridCommandActions as aI, type GridCommandEvent as aJ, type GridCommandSource as aK, type GridContextMenuArea as aL, type GridContextMenuEntries as aM, type GridContextMenuOptions as aN, type GridContextMenuRequest as aO, type GridContextMenuTarget as aP, type GridFilterMenuOptions as aQ, type GridFocus as aR, type GridOptions as aS, type GridPanelKind as aT, type GridToolbarOptions as aU, type GridViewOptions as aV, type GridViewState as aW, type GroupByBarVisibility as aX, type GroupByEntry as aY, type GroupByEvent as aZ, type GroupExpansionEvent as a_, type ColumnResolveOptions as aa, type ColumnSelectEvent as ab, type ColumnSelectionChangeEvent as ac, type ColumnSizeDefaults as ad, type ColumnSizingState as ae, type ColumnSortEntry as af, type ColumnSortEvent as ag, type ColumnVisibilityEvent as ah, type ColumnWrapConfig as ai, type ColumnsSelectEvent as aj, type ContextMenuOpenChangeEvent as ak, type CopyContent as al, type CsvOptions as am, DEFAULT_COLUMN_SIZES as an, DEFAULT_FILTER_VALUE_LIMIT as ao, type ExportCell as ap, type ExportColumn as aq, type ExportDataRow as ar, type ExportGroupRow as as, type ExportGroupSummaryRow as at, type ExportOptions as au, type ExportRow as av, type ExportScalar as aw, type ExportTotalRow as ax, type ExportWriteContext as ay, type FilterChangeEvent as az, type GridCommandTarget as b, defineColumnsFromRows as b$, type GroupFilterEntry as b0, type HoverableConfig as b1, type JsonOptions as b2, type MenuItemEntry as b3, type MenuSubmenuEntry as b4, type OperatorFilterEntry as b5, type PaginationChangeEvent as b6, type PredicateFilterEntry as b7, type PrintDocument as b8, type PrintOptions as b9, type SelectionState as bA, type SerializedFilterEntry as bB, type SerializedFilterScalar as bC, type SerializedFilterState as bD, type SerializedGroupFilterEntry as bE, type SerializedOperatorFilterEntry as bF, type SerializedValueFilterEntry as bG, type TextFilterEntry as bH, type ToolbarCustomEntry as bI, type ValueFilterEntry as bJ, accessDotted as bK, alignmentForType as bL, applyColumnOrder as bM, applyColumnPinning as bN, applySelectionIntent as bO, bodyFocus as bP, buildExportTable as bQ, builtInCommands as bR, clearSelection as bS, collapseAllGroups as bT, contextMenuEntries as bU, createDefaultMessages as bV, csvWriter as bW, defaultContextMenu as bX, defaultFilterOperators as bY, defaultMessages as bZ, defaultToolbar as b_, type PrintOrientation as ba, type PrintPage as bb, type PrintSource as bc, type ResizeMode as bd, type ResolvedGroupRow as be, type ResolvedGroupSummaryRow as bf, type ResolvedMenuItem as bg, type ResolvedMenuSeparator as bh, type ResolvedMenuSubmenu as bi, type ResolvedToolbarButton as bj, type ResolvedToolbarCustom as bk, type ResolvedToolbarMenu as bl, type ResolvedToolbarSearch as bm, type ResolvedToolbarSpacer as bn, type RowGroupPosition as bo, type RowPointerEvent as bp, type RowProps as bq, type RowSelectEvent as br, type RowSelectionChangeEvent as bs, type RowsSelectEvent as bt, type SelectIntent as bu, type SelectableConfig as bv, type SelectionCallbacks as bw, type SelectionDiff as bx, type SelectionDiffEvent as by, type SelectionMode as bz, type GridMessages as c, draftToFilter as c$, expandAllGroups as c0, exportPrintDocument as c1, formatAggregateValue as c2, formatCellValue as c3, formatGroupValue as c4, getColumnId as c5, groupRowId as c6, groupRows as c7, headerFocus as c8, isColumnFiltered as c9, type ColumnValueQuery as cA, type ColumnValueOptions as cB, type ValuesDraft as cC, type ColumnResizeSession as cD, type ColumnValueOption as cE, type ConditionsDraft as cF, type CopyRequest as cG, type CopySource as cH, type DropSide as cI, type FilterEditorAction as cJ, type FilterEditorDraft as cK, type FilterEditorDraftBase as cL, KEYBOARD_STEP as cM, type KeyShortcutCapabilities as cN, type NavigationModifiers as cO, type ResolvedColumnFilterMenu as cP, type WritingDirection as cQ, applyColumnResize as cR, beginColumnResize as cS, buildKeyShortcuts as cT, buildPrintDocument as cU, clampColumnWidth as cV, clampFocus as cW, columnValueOptions as cX, copyContent as cY, describeColumnFilter as cZ, diffSelection as c_, isGroupExpanded as ca, isSameCell as cb, jsonWriter as cc, moveColumnBefore as cd, moveGroupByBefore as ce, resolveColumnHeaderText as cf, resolveColumnLabel as cg, resolveColumnPin as ch, resolveColumnWidths as ci, resolveDataColumns as cj, resolveExportWriters as ck, resolveMessages as cl, resolveRowId as cm, selectAll as cn, selectCell as co, selectOnly as cp, selectRange as cq, setColumnPin as cr, toCsv as cs, toJson as ct, toggleCellSelection as cu, toggleGroupExpansion as cv, toggleSelection as cw, toolbarEntries as cx, type SelectAllState as cy, type ColumnFilterShape as cz, type GridCommandHost as d, filterDraftChanged as d0, filterEditorReducer as d1, filterOperandArity as d2, filterOperatorFamily as d3, fitColumnsToWidth as d4, formatFilterOperand as d5, hasContextMenu as d6, initialFilterEditorDraft as d7, inlineStep as d8, intentOf as d9, moveColumnInPinGroup as da, movesColumn as db, movesGroupBy as dc, nextFocusForKey as dd, parseFilterOperand as de, pinnedWidths as df, resolveColumnConstraints as dg, resolveColumnFilterMenu as dh, resolveDropBefore as di, resolveKeyboardDropTarget as dj, revertColumnSize as dk, selectAllState as dl, sizeColumnToContent as dm, toConditionsDraft as dn, toValuesDraft as dp, totalColumnWidth as dq, visibleFilterOptions as dr, type GridCommandContext as e, type GridCommand as f, type GridToolbarTarget as g, type ToolbarEntry as h, type ResolvedToolbarItem as i, type ColumnSortState as j, type ResolvedRow as k, type FieldPath as l, type ResolvedColumn as m, type SelectedCellRef as n, type SelectedCell as o, type SelectedColumn as p, type DisplayRow as q, type PaginationState as r, type AggregateResults as s, type GroupByState as t, type GroupAggregateDisplay as u, type ColumnVisibilityState as v, type ColumnDefinition as w, type GridViewInput as x, type GridView as y, type GridState as z };
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-B7C_n89V.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-B7C_n89V.js';
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-C4x0X-nh.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 ColumnPin, a7 as ColumnPinningEvent, a8 as ColumnPinningState, a9 as ColumnResizeEvent, aa as ColumnResolveOptions, ab as ColumnSelectEvent, ac as ColumnSelectionChangeEvent, ad as ColumnSizeDefaults, ae as ColumnSizingState, af as ColumnSortEntry, ag as ColumnSortEvent, ah as ColumnVisibilityEvent, ai as ColumnWrapConfig, aj as ColumnsSelectEvent, ak as ContextMenuOpenChangeEvent, al as CopyContent, am as CsvOptions, an as DEFAULT_COLUMN_SIZES, ao as DEFAULT_FILTER_VALUE_LIMIT, ap as ExportCell, aq as ExportColumn, ar as ExportDataRow, as as ExportGroupRow, at as ExportGroupSummaryRow, au as ExportOptions, av as ExportRow, aw as ExportScalar, ax as ExportTotalRow, ay as ExportWriteContext, az as FilterChangeEvent, aA as FilterEntry, aB as FilterMenuUi, aC as FilterOperator, aD as FilterOperatorFamily, aE as FilterPredicate, aF as FilterScalar, aG as FooterTemplateContext, aH as FormatLocale, aI as GridCommandActions, aJ as GridCommandEvent, aK as GridCommandSource, aL as GridContextMenuArea, aM as GridContextMenuEntries, aN as GridContextMenuOptions, aO as GridContextMenuRequest, aP as GridContextMenuTarget, aQ as GridFilterMenuOptions, aR as GridFocus, aS as GridOptions, aT as GridPanelKind, aU as GridToolbarOptions, aV as GridViewOptions, aW as GridViewState, aX as GroupByBarVisibility, aY as GroupByEntry, aZ as GroupByEvent, a_ as GroupExpansionEvent, a$ as GroupExpansionState, b0 as GroupFilterEntry, b1 as HoverableConfig, b2 as JsonOptions, b3 as MenuItemEntry, b4 as MenuSubmenuEntry, b5 as OperatorFilterEntry, b6 as PaginationChangeEvent, b7 as PredicateFilterEntry, b8 as PrintDocument, b9 as PrintOptions, ba as PrintOrientation, bb as PrintPage, bc as PrintSource, bd as ResizeMode, be as ResolvedGroupRow, bf as ResolvedGroupSummaryRow, bg as ResolvedMenuItem, bh as ResolvedMenuSeparator, bi as ResolvedMenuSubmenu, bj as ResolvedToolbarButton, bk as ResolvedToolbarCustom, bl as ResolvedToolbarMenu, bm as ResolvedToolbarSearch, bn as ResolvedToolbarSpacer, bo as RowGroupPosition, bp as RowPointerEvent, bq as RowProps, br as RowSelectEvent, bs as RowSelectionChangeEvent, bt as RowsSelectEvent, bu as SelectIntent, bv as SelectableConfig, bw as SelectionCallbacks, bx as SelectionDiff, by as SelectionDiffEvent, bz as SelectionMode, bA as SelectionState, bB as SerializedFilterEntry, bC as SerializedFilterScalar, bD as SerializedFilterState, bE as SerializedGroupFilterEntry, bF as SerializedOperatorFilterEntry, bG as SerializedValueFilterEntry, bH as TextFilterEntry, bI as ToolbarCustomEntry, bJ as ValueFilterEntry, bK as accessDotted, bL as alignmentForType, bM as applyColumnOrder, bN as applyColumnPinning, bO as applySelectionIntent, bP as bodyFocus, bQ as buildExportTable, bR as builtInCommands, bS as clearSelection, bT as collapseAllGroups, bU as contextMenuEntries, bV as createDefaultMessages, bW as csvWriter, bX as defaultContextMenu, bY as defaultFilterOperators, bZ as defaultMessages, b_ as defaultToolbar, b$ as defineColumnsFromRows, c0 as expandAllGroups, c1 as exportPrintDocument, c2 as formatAggregateValue, c3 as formatCellValue, c4 as formatGroupValue, c5 as getColumnId, c6 as groupRowId, c7 as groupRows, c8 as headerFocus, c9 as isColumnFiltered, ca as isGroupExpanded, cb as isSameCell, cc as jsonWriter, cd as moveColumnBefore, ce as moveGroupByBefore, cf as resolveColumnHeaderText, cg as resolveColumnLabel, ch as resolveColumnPin, ci as resolveColumnWidths, cj as resolveDataColumns, ck as resolveExportWriters, cl as resolveMessages, cm as resolveRowId, cn as selectAll, co as selectCell, cp as selectOnly, cq as selectRange, cr as setColumnPin, cs as toCsv, ct as toJson, cu as toggleCellSelection, cv as toggleGroupExpansion, cw as toggleSelection, cx as toolbarEntries } from './filterEditor-C4x0X-nh.js';
3
3
 
4
4
  /**
5
5
  * Creates the state container for one grid — see `GridController`. Hold one
@@ -331,8 +331,8 @@ declare function createGridViewResolver<Row, Node = string>(): (input: GridViewI
331
331
  /**
332
332
  * What the user is looking at, derived from the rows, the columns, the
333
333
  * grid's state and its options in one call: rows filtered → sorted →
334
- * grouped → aggregated → paginated, and columns ordered → hidden → sized.
335
- * The one function a renderer, an export or a toolbar calls instead of
334
+ * grouped → aggregated → paginated, and columns ordered → hidden → pinned →
335
+ * sized. The one function a renderer, an export or a toolbar calls instead of
336
336
  * composing the stages itself, so none of them can disagree about what is
337
337
  * shown.
338
338
  *