@nanahoshi/mona-ui 0.27.1 → 0.27.2

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.
Files changed (168) hide show
  1. package/docs/api/auto-complete.md +67 -0
  2. package/docs/api/avatar.md +31 -0
  3. package/docs/api/breadcrumb.md +74 -0
  4. package/docs/api/button-group.md +71 -0
  5. package/docs/api/button.md +84 -0
  6. package/docs/api/calendar.md +123 -0
  7. package/docs/api/card.md +97 -0
  8. package/docs/api/chart.md +4380 -0
  9. package/docs/api/check-box.md +70 -0
  10. package/docs/api/chip.md +55 -0
  11. package/docs/api/circular-progress-bar.md +71 -0
  12. package/docs/api/collapsible.md +71 -0
  13. package/docs/api/color-gradient.md +54 -0
  14. package/docs/api/color-palette.md +52 -0
  15. package/docs/api/color-picker.md +89 -0
  16. package/docs/api/combo-box.md +69 -0
  17. package/docs/api/command.md +282 -0
  18. package/docs/api/common.md +599 -0
  19. package/docs/api/contextmenu.md +239 -0
  20. package/docs/api/date-input.md +119 -0
  21. package/docs/api/date-picker.md +67 -0
  22. package/docs/api/datetime-picker.md +72 -0
  23. package/docs/api/dialog.md +291 -0
  24. package/docs/api/dropdown-button.md +248 -0
  25. package/docs/api/dropdown-list.md +72 -0
  26. package/docs/api/dropdowns.md +172 -0
  27. package/docs/api/editor.md +117 -0
  28. package/docs/api/expansion-panel.md +85 -0
  29. package/docs/api/fieldset.md +33 -0
  30. package/docs/api/filter.md +116 -0
  31. package/docs/api/grid.md +1445 -0
  32. package/docs/api/i18n.md +1699 -0
  33. package/docs/api/label.md +58 -0
  34. package/docs/api/list-box.md +301 -0
  35. package/docs/api/list-view.md +294 -0
  36. package/docs/api/list.md +119 -0
  37. package/docs/api/locales.md +134 -0
  38. package/docs/api/menubar.md +275 -0
  39. package/docs/api/multi-select.md +92 -0
  40. package/docs/api/notification.md +164 -0
  41. package/docs/api/numeric-text-box.md +130 -0
  42. package/docs/api/otp-input.md +100 -0
  43. package/docs/api/pager.md +371 -0
  44. package/docs/api/placeholder.md +18 -0
  45. package/docs/api/popover.md +170 -0
  46. package/docs/api/popup-menu.md +328 -0
  47. package/docs/api/popup.md +299 -0
  48. package/docs/api/progress-bar.md +79 -0
  49. package/docs/api/query.md +367 -0
  50. package/docs/api/radio-button.md +113 -0
  51. package/docs/api/rating.md +187 -0
  52. package/docs/api/scroll-view.md +93 -0
  53. package/docs/api/segmented.md +114 -0
  54. package/docs/api/sheet.md +65 -0
  55. package/docs/api/sidebar.md +583 -0
  56. package/docs/api/skeleton.md +26 -0
  57. package/docs/api/slider.md +173 -0
  58. package/docs/api/spinner.md +132 -0
  59. package/docs/api/split-button.md +261 -0
  60. package/docs/api/splitter.md +57 -0
  61. package/docs/api/stepper.md +148 -0
  62. package/docs/api/switch.md +78 -0
  63. package/docs/api/tabs.md +139 -0
  64. package/docs/api/text-area.md +20 -0
  65. package/docs/api/text-box.md +106 -0
  66. package/docs/api/theme.md +627 -0
  67. package/docs/api/time-picker.md +69 -0
  68. package/docs/api/time-selector.md +54 -0
  69. package/docs/api/tooltip.md +112 -0
  70. package/docs/api/tree-view.md +631 -0
  71. package/docs/api/window.md +245 -0
  72. package/docs/auto-complete.md +28 -329
  73. package/docs/avatar.md +4 -24
  74. package/docs/breadcrumb.md +10 -65
  75. package/docs/button-group.md +7 -60
  76. package/docs/button.md +8 -67
  77. package/docs/calendar.md +16 -121
  78. package/docs/card.md +16 -79
  79. package/docs/chart-bar.md +16 -234
  80. package/docs/chart-financial.md +10 -121
  81. package/docs/chart-funnel.md +13 -176
  82. package/docs/chart-heatmap.md +15 -131
  83. package/docs/chart-line-area.md +12 -137
  84. package/docs/chart-pie.md +17 -221
  85. package/docs/chart-radar.md +13 -129
  86. package/docs/chart-radial.md +13 -211
  87. package/docs/chart-scatter.md +6 -74
  88. package/docs/chart-treemap.md +14 -196
  89. package/docs/chart.md +154 -1892
  90. package/docs/checkbox.md +5 -61
  91. package/docs/chip.md +7 -42
  92. package/docs/circular-progress-bar.md +9 -61
  93. package/docs/collapsible.md +5 -87
  94. package/docs/color-gradient.md +8 -81
  95. package/docs/color-palette.md +7 -69
  96. package/docs/color-picker.md +9 -105
  97. package/docs/combo-box.md +28 -331
  98. package/docs/command.md +25 -236
  99. package/docs/contextmenu.md +15 -140
  100. package/docs/date-picker.md +7 -110
  101. package/docs/datetime-picker.md +7 -129
  102. package/docs/decimal-textbox.md +6 -69
  103. package/docs/dialog.md +23 -263
  104. package/docs/dropdown-button.md +15 -146
  105. package/docs/dropdown-list.md +29 -332
  106. package/docs/editor.md +8 -164
  107. package/docs/expansion-panel.md +7 -69
  108. package/docs/fieldset.md +5 -24
  109. package/docs/grid-columns.md +12 -92
  110. package/docs/grid-editing.md +29 -291
  111. package/docs/grid-grouping.md +11 -50
  112. package/docs/grid-rows.md +10 -74
  113. package/docs/grid-selection.md +7 -36
  114. package/docs/grid-server.md +8 -293
  115. package/docs/grid-sorting-filtering.md +10 -333
  116. package/docs/grid-state-export.md +17 -228
  117. package/docs/grid.md +23 -216
  118. package/docs/input.md +7 -19
  119. package/docs/label.md +8 -39
  120. package/docs/list-box.md +21 -253
  121. package/docs/list-view.md +25 -232
  122. package/docs/menubar.md +21 -167
  123. package/docs/multi-select.md +31 -350
  124. package/docs/notification.md +17 -116
  125. package/docs/numeric-textbox.md +9 -78
  126. package/docs/otp-input.md +9 -95
  127. package/docs/pager.md +19 -239
  128. package/docs/placeholder.md +5 -18
  129. package/docs/popover.md +13 -123
  130. package/docs/popup-menu.md +22 -243
  131. package/docs/popup.md +24 -248
  132. package/docs/progress-bar.md +10 -75
  133. package/docs/radio-button.md +8 -96
  134. package/docs/range-slider.md +9 -82
  135. package/docs/rating.md +15 -163
  136. package/docs/scroll-view.md +9 -86
  137. package/docs/segmented.md +8 -90
  138. package/docs/sheet.md +10 -74
  139. package/docs/sidebar-menus.md +20 -155
  140. package/docs/sidebar-state.md +16 -134
  141. package/docs/sidebar.md +18 -218
  142. package/docs/skeleton.md +5 -26
  143. package/docs/slider.md +9 -97
  144. package/docs/spinner.md +15 -95
  145. package/docs/split-button.md +21 -166
  146. package/docs/splitter.md +9 -56
  147. package/docs/stepper.md +13 -127
  148. package/docs/switch.md +8 -58
  149. package/docs/tabs.md +13 -111
  150. package/docs/textarea.md +4 -13
  151. package/docs/textbox.md +10 -77
  152. package/docs/time-picker.md +7 -112
  153. package/docs/tooltip-directive.md +12 -96
  154. package/docs/tooltip.md +12 -96
  155. package/docs/tree-view.md +42 -495
  156. package/docs/window.md +19 -230
  157. package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +1 -0
  158. package/fesm2022/nanahoshi-mona-ui-common.mjs +3 -0
  159. package/fesm2022/nanahoshi-mona-ui-date-input.mjs +13 -1
  160. package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +5 -0
  161. package/fesm2022/nanahoshi-mona-ui-i18n.mjs +9 -0
  162. package/llms.txt +74 -0
  163. package/package.json +1 -1
  164. package/types/nanahoshi-mona-ui-collapsible.d.ts +2 -0
  165. package/types/nanahoshi-mona-ui-common.d.ts +6 -0
  166. package/types/nanahoshi-mona-ui-date-input.d.ts +18 -1
  167. package/types/nanahoshi-mona-ui-dropdowns.d.ts +6 -0
  168. package/types/nanahoshi-mona-ui-i18n.d.ts +12 -0
@@ -0,0 +1,1445 @@
1
+ # `@nanahoshi/mona-ui/grid`
2
+
3
+ Everything `@nanahoshi/mona-ui/grid` exports.
4
+
5
+ **Guides:** [Grid Overview](../grid.md), [Sorting & Filtering](../grid-sorting-filtering.md), [Grouping & Aggregates](../grid-grouping.md), [Selection](../grid-selection.md), [Editing](../grid-editing.md), [Columns](../grid-columns.md), [Rows](../grid-rows.md), [Server Binding & Virtualization](../grid-server.md), [State & Export](../grid-state-export.md)
6
+
7
+ ## `GridColumnComponent`
8
+
9
+ Component.
10
+
11
+ **Selector:** `mona-grid-column`
12
+
13
+ ### Inputs
14
+
15
+ | Name | Type | Default | Description |
16
+ | --- | --- | --- | --- |
17
+ | `aggregate` | `AggregateFunction \| null` | `null` | The aggregate shown in the grid footer for this column. |
18
+ | `editable` | `boolean \| null` | `null` | Whether this column is editable when the grid is in edit mode. Left unset, every column is editable except the one whose `field` is the grid's `rowKey`. |
19
+ | `field` | `string` | `""` | The field name of the data property to display in this column. |
20
+ | `filterable` | `boolean` | `true` | Whether this column can be filtered when grid filtering is enabled. Has no effect if filtering is disabled on the grid. |
21
+ | `format` | `ColumnFormat \| null` | — | Formats the displayed cell value. String formats apply to date columns and their date filters; formatter functions replace the cell text. |
22
+ | `hidden` | `boolean` | `false` | Whether this column is hidden from the rendered grid. |
23
+ | `locked` | `boolean` | `false` | Whether this column remains fixed while the grid scrolls horizontally. |
24
+ | `lockedPosition` | `GridColumnLockedPosition` | `"left"` | The side of the grid where this locked column is fixed. |
25
+ | `maxWidth` | `number \| null` | `null` | The maximum width of this column in pixels. |
26
+ | `minWidth` | `number` | `40` | The minimum width of this column in pixels. |
27
+ | `sortable` | `boolean` | `true` | Whether this column can be sorted through its header when grid sorting is enabled. Has no effect if sorting is disabled on the grid. |
28
+ | `sortComparator` | `ColumnSortComparator \| null` | `null` | Compares two values of this column when the user sorts it, returning a negative number, zero or a positive number. Without it, values sort by type (empty values first) and strings by the locale. |
29
+ | `stateKey` | `string \| null` | `null` | A stable key used to persist state for columns whose field is empty or unstable. |
30
+ | `title` | `string` | `""` | The title displayed in the column header. |
31
+ | `type` | `DataType` | `"string"` | The data type of the column. Determines the edit component and filter behavior. |
32
+ | `width` | `number \| null` | — | The fixed width of this column in pixels. If not set, the column width is calculated automatically. |
33
+
34
+ ## `GridComponent`
35
+
36
+ Component.
37
+
38
+ **Selector:** `mona-grid`
39
+ **Type parameters:** `T`
40
+
41
+ ### Inputs
42
+
43
+ | Name | Type | Default | Description |
44
+ | --- | --- | --- | --- |
45
+ | `aria-label` | `string \| null` | `null` | The grid's accessible name, such as "Orders". Use it, or `aria-labelledby`. The grid moves the name to its `role="grid"` element, so the host keeps no `aria-label` attribute. |
46
+ | `aria-labelledby` | `string \| null` | `null` | The id of the element that names the grid, such as a heading above it. |
47
+ | `class` | `string` | `""` | Additional CSS classes merged onto the host element via `tailwind-merge`. |
48
+ | `data` | `Iterable<T>` | `[]` | The row data to be displayed in the grid. |
49
+ | `expandedKeys` (two-way) | `unknown[]` | `[]` | Keys of the rows whose detail row is open: `rowKey` values, or the data items when the grid has no `rowKey`. Supports two-way binding; `expandedKeysChange` emits when the user opens or closes one. |
50
+ | `pageSize` (two-way) | `number` | — | The number of items to be displayed on a page. Values that aren't positive integers are ignored. A new size keeps the first row of the current page in view. Supports two-way binding. |
51
+ | `pageSizeValues` | `number[]` | `[]` | The page sizes that the user can select from. These values will be displayed in the page size dropdown. |
52
+ | `resizeMethod` | `ResizeMethod` | `"fitView"` | The method to be used to set initial column widths. It can be the following values: - `fitView`: The columns will be resized to fit the available width. - `auto`: The columns will be resized based on the content. - A number representing the width of the columns. All columns except the columns with a specified width will have the same width. |
53
+ | `responsivePager` | `boolean` | `true` | Whether the pager is responsive. If set to `true`, the pager will be displayed as a dropdown when the grid width gets smaller. |
54
+ | `rounded` | `"large" \| "medium" \| "none" \| "small"` | `"medium"` | The border radius of the grid. |
55
+ | `rowClass` | `GridRowClass<T> \| null` | `null` | Returns extra CSS classes for the data row that shows an item, merged onto the row's own classes via `tailwind-merge`. It runs again whenever the item's row is rebound. Group, group footer and detail rows are not affected. To dim a row, prefer a text style such as `text-muted-foreground` over `opacity`: locked cells stay opaque so scrolled cells pass beneath them, and opacity on the row or its cells would let those show through. |
56
+ | `rowKey` | `GridKeySelector<unknown> \| null` | `null` | Field name or selector used to derive a stable identity for each row. The resolved value must be unique within the grid data. |
57
+ | `skip` (two-way) | `number` | `0` | The number of rows before the current page, in client paging. Supports two-way binding. With `monaGridServerBinding`, the directive's `skip` sets the page and this model reports user changes. |
58
+
59
+ ### Outputs
60
+
61
+ | Name | Type | Description |
62
+ | --- | --- | --- |
63
+ | `expandedKeysChange` | `unknown[]` | Emitted when `expandedKeys` changes. |
64
+ | `pageChange` | `PageChangeEvent` | Emitted when the user changes the page or the page size, when the user's sort or filter moves a client-side grid back to the first page, and when the grid moves back to the last page because the data shrank. Not emitted for `skip` or `pageSize` values set from code. |
65
+ | `pageSizeChange` | `number` | Emitted when `pageSize` changes. |
66
+ | `skipChange` | `number` | Emitted when `skip` changes. |
67
+
68
+ ## `GridCommandColumnComponent`
69
+
70
+ Component.
71
+
72
+ **Selector:** `mona-grid-command-column`
73
+
74
+ ### Inputs
75
+
76
+ | Name | Type | Default | Description |
77
+ | --- | --- | --- | --- |
78
+ | `hidden` | `boolean` | `false` | Whether this command column is hidden from the rendered grid. |
79
+ | `locked` | `boolean` | `false` | Whether this command column remains fixed while the grid scrolls horizontally. |
80
+ | `lockedPosition` | `GridColumnLockedPosition` | `"left"` | The side of the grid where this locked command column is fixed. |
81
+ | `maxWidth` | `number \| null` | `null` | The maximum width of this command column in pixels. |
82
+ | `minWidth` | `number \| null` | `null` | The minimum width of this command column in pixels. |
83
+ | `removeConfirmation` | `boolean` | `false` | Whether removing a row asks for confirmation before emitting `remove`: from the built-in Remove button, or from a `monaGridRemoveCommand` button in this column's template. |
84
+ | `stateKey` | `string \| null` | `"commands"` | A stable key used to persist state for this command column. |
85
+ | `title` | `string \| null` | `null` | The title displayed in the command column header. Without one, the localized `commandColumnTitle` message ("Commands"). |
86
+ | `width` | `number \| null` | `160` | The fixed width of this command column in pixels. |
87
+
88
+ ## `GridEditableDirective`
89
+
90
+ Directive.
91
+
92
+ **Selector:** `mona-grid[monaGridEditable]`
93
+ **Type parameters:** `T extends object = Record<PropertyKey, unknown>`
94
+
95
+ ### Inputs
96
+
97
+ | Name | Type | Default | Description |
98
+ | --- | --- | --- | --- |
99
+ | `monaGridEditable` | `EditableOptions<T> \| ""` | `""` | Enables inline editing. An empty string enables cell-mode editing with default settings; pass an object to choose `"cell"` or `"row"` mode and an optional validation `schema`. |
100
+ | `newRowFactory` | `() => T` | — | Creates the initial data object used by the add-row editor. |
101
+
102
+ ### Outputs
103
+
104
+ | Name | Type | Description |
105
+ | --- | --- | --- |
106
+ | `add` | `GridAddEvent` | Emitted before the grid displays the new-row editor. |
107
+ | `cancel` | `GridCancelEvent` | Emitted before an edit operation is canceled; `reason` says why. Prevent it to keep editing, except for `"removed"`, when the edited row left the data or the view. |
108
+ | `cellEdit` | `CellEditEvent` | Emitted before a changed cell is saved in cell mode; not when the value didn't change. `rowData` is the row as it was; persist from `save`, whose `rowData` holds the edited values. |
109
+ | `edit` | `GridEditEvent` | Emitted before a row enters edit mode. |
110
+ | `remove` | `GridRemoveEvent` | Emitted when a row remove command is triggered, with the row's `key` and `index`. |
111
+ | `rowEdit` | `RowEditEvent` | Emitted after a changed row is saved (row mode only). |
112
+ | `save` | `GridSaveEvent<T>` | Emitted before an edited or new row is saved; not when an edit changed nothing. `rowData` holds the edited values and `originalRowData` the row as it was. Prevent it to keep the editor open, for example while saving on the server, then call `endEdit()`. |
113
+
114
+ ### Methods
115
+
116
+ | Signature | Description |
117
+ | --- | --- |
118
+ | `endEdit(): void` | Closes the current edit without reporting it, such as after a `save` that was prevented to save on the server has finished. |
119
+
120
+ ## `GridSelectableDirective`
121
+
122
+ Directive.
123
+
124
+ **Selector:** `mona-grid[monaGridSelectable]`
125
+
126
+ ### Inputs
127
+
128
+ | Name | Type | Default | Description |
129
+ | --- | --- | --- | --- |
130
+ | `monaGridSelectable` | `SelectableOptions \| ""` | `""` | Enables row selection on the grid. Pass a `SelectableOptions` object to configure single or multiple selection mode. Selection is on unless the object sets `enabled: false`. |
131
+ | `selectBy` | `GridKeySelector<unknown>` | `""` | Field name or function that gives a row's selection key. Without it, rows are selected by the grid's `rowKey` value, or by the data item when there's no `rowKey`. |
132
+ | `selectedKeys` | `Iterable<unknown>` | `[]` | Currently selected row keys. |
133
+
134
+ ### Outputs
135
+
136
+ | Name | Type | Description |
137
+ | --- | --- | --- |
138
+ | `selectedKeysChange` | `unknown[]` | Emitted when the user changes the selection. Not emitted for a `selectedKeys` value set from code. |
139
+
140
+ ## `GridServerBindingDirective`
141
+
142
+ Directive.
143
+
144
+ **Selector:** `mona-grid[monaGridServerBinding]`
145
+
146
+ ### Inputs
147
+
148
+ | Name | Type | Default | Description |
149
+ | --- | --- | --- | --- |
150
+ | `loading` | `boolean` | `false` | Shows a loading overlay while the application requests server data. |
151
+ | `skip` | `number` | `0` | Zero-based offset of the supplied server page. External changes do not request data. |
152
+ | `total` (required) | `number` | — | Total matching server records before paging. Must be a non-negative integer. |
153
+
154
+ ### Outputs
155
+
156
+ | Name | Type | Description |
157
+ | --- | --- | --- |
158
+ | `dataStateChange` | `GridDataState` | Emitted once per user paging, sorting, or filtering action with the requested server state. |
159
+
160
+ ## `GridStatePersistenceDirective`
161
+
162
+ Directive.
163
+
164
+ **Selector:** `mona-grid[monaGridStatePersistence]`
165
+ **Exported as:** `monaGridStatePersistence`
166
+
167
+ ### Inputs
168
+
169
+ | Name | Type | Default | Description |
170
+ | --- | --- | --- | --- |
171
+ | `monaGridStatePersistence` | `GridStatePersistenceOptions \| ""` | `""` | State persistence options such as schema version and page size persistence. |
172
+ | `state` (two-way) | `GridState \| null` | `null` | The persisted grid state to apply and update when the grid state changes. |
173
+
174
+ ### Outputs
175
+
176
+ | Name | Type | Description |
177
+ | --- | --- | --- |
178
+ | `stateChange` | `GridState \| null` | Emitted when `state` changes. |
179
+
180
+ ### Methods
181
+
182
+ | Signature | Description |
183
+ | --- | --- |
184
+ | `captureState(): GridState` | Captures the grid's current state (columns, sort, filter, group) without waiting for the next change cycle. |
185
+ | `loadState(state: GridState \| null, options: GridStatePersistenceOptions = this.#resolveOptions()): GridStateLoadResult` | Applies a previously captured state to the grid. A state that isn't well formed (a missing array, a duplicate column id, an unknown filter operator, a page size or width that isn't a positive number) returns `rejected-invalid` and changes nothing. |
186
+
187
+ ## `GridSortableDirective`
188
+
189
+ Directive.
190
+
191
+ **Selector:** `mona-grid[monaGridSortable]`
192
+
193
+ ### Inputs
194
+
195
+ | Name | Type | Default | Description |
196
+ | --- | --- | --- | --- |
197
+ | `monaGridSortable` | `SortableOptions \| ""` | `""` | Enables column sorting on the grid. Pass a `SortableOptions` object to configure sort mode, unsort behavior, or sort-index display. Sorting is on unless the object sets `enabled: false`. |
198
+ | `sort` (two-way) | `SortDescriptor[]` | `[]` | Current sort descriptors applied to the grid. Descriptors are kept even when no column shows the field, and a repeated field keeps its last descriptor. Supports two-way binding; a restored grid state updates it too. |
199
+
200
+ ### Outputs
201
+
202
+ | Name | Type | Description |
203
+ | --- | --- | --- |
204
+ | `columnSort` | `ColumnSortEvent` | Emitted when a column header is activated to change its sort direction. Call `preventDefault()` on the event to cancel the sort. |
205
+ | `sortChange` | `SortDescriptor[]` | Emitted when `sort` changes. |
206
+
207
+ ## `GridVirtualScrollDirective`
208
+
209
+ Directive.
210
+
211
+ **Selector:** `mona-grid[monaGridVirtualScroll]`
212
+
213
+ ### Inputs
214
+
215
+ | Name | Type | Default | Description |
216
+ | --- | --- | --- | --- |
217
+ | `monaGridVirtualScroll` | `Partial<VirtualScrollOptions> \| "" \| undefined` | `undefined` | Enables row virtualization on the grid. Pass a `VirtualScrollOptions` object to configure the fixed row height. |
218
+ | `scrollEndThreshold` | `number` | `5` | Distance, in rows, from the bottom of the virtualized list at which `scrollEnd` is emitted. |
219
+
220
+ ### Outputs
221
+
222
+ | Name | Type | Description |
223
+ | --- | --- | --- |
224
+ | `scrollEnd` | `void` | Emitted when the scroll position reaches the configured threshold from the bottom of the virtualized list. |
225
+
226
+ ## `GridFilterableDirective`
227
+
228
+ Directive.
229
+
230
+ **Selector:** `mona-grid[monaGridFilterable]`
231
+
232
+ ### Inputs
233
+
234
+ | Name | Type | Default | Description |
235
+ | --- | --- | --- | --- |
236
+ | `filter` (two-way) | `CompositeFilterDescriptor[]` | `[]` | Current filter descriptors applied to the grid. Conditions on one field show in that column's filter menu (repeated fields are combined with `and`); filters across fields, such as an `or` of two columns, are still applied and reported. Conditions with an unknown operator are ignored. Supports two-way binding. |
237
+ | `monaGridFilterable` | `Partial<FilterableOptions> \| ""` | `""` | Enables column filtering on the grid. Pass a `FilterableOptions` object to configure whether filters render in the header menu, a filter row, or both. Filtering is on unless the object sets `enabled: false`. |
238
+
239
+ ### Outputs
240
+
241
+ | Name | Type | Description |
242
+ | --- | --- | --- |
243
+ | `filterChange` | `CompositeFilterDescriptor[]` | Emitted when `filter` changes. |
244
+
245
+ ## `GridGroupableDirective`
246
+
247
+ Directive.
248
+
249
+ **Selector:** `mona-grid[monaGridGroupable]`
250
+
251
+ ### Inputs
252
+
253
+ | Name | Type | Default | Description |
254
+ | --- | --- | --- | --- |
255
+ | `group` (two-way) | `GroupDescriptor[]` | `[]` | Current group descriptors applied to the grid. A repeated field keeps its last descriptor; a field without a column is grouped once its column appears. Supports two-way binding: `groupChange` emits after the user groups, ungroups, reorders or re-sorts groups, and after a grid state is restored, never for a value set here. |
256
+ | `monaGridGroupable` | `Partial<GroupableOptions> \| "" \| undefined` | `undefined` | Enables column grouping on the grid. Pass a `GroupableOptions` object to configure group footer display. Grouping is on unless the object sets `enabled: false`. |
257
+
258
+ ### Outputs
259
+
260
+ | Name | Type | Description |
261
+ | --- | --- | --- |
262
+ | `groupChange` | `GroupDescriptor[]` | Emitted when `group` changes. |
263
+
264
+ ## `GridReorderableDirective`
265
+
266
+ Directive.
267
+
268
+ **Selector:** `mona-grid[monaGridReorderable]`
269
+
270
+ ### Inputs
271
+
272
+ | Name | Type | Default | Description |
273
+ | --- | --- | --- | --- |
274
+ | `monaGridReorderable` | `ReorderableOptions \| ""` | `""` | Enables column reordering via drag and drop. Pass a `ReorderableOptions` object to configure it explicitly. |
275
+
276
+ ### Outputs
277
+
278
+ | Name | Type | Description |
279
+ | --- | --- | --- |
280
+ | `columnReorder` | `ColumnReorderEvent` | Emitted when a column is dropped into a new position. Call `preventDefault()` on the event to cancel the reorder. |
281
+
282
+ ## `GridResizableDirective`
283
+
284
+ Directive.
285
+
286
+ **Selector:** `mona-grid[monaGridResizable]`
287
+
288
+ ### Inputs
289
+
290
+ | Name | Type | Default | Description |
291
+ | --- | --- | --- | --- |
292
+ | `monaGridResizable` | `ResizableOptions \| ""` | `""` | Enables column resizing on the grid. Pass a `ResizableOptions` object to configure it explicitly. |
293
+
294
+ ### Outputs
295
+
296
+ | Name | Type | Description |
297
+ | --- | --- | --- |
298
+ | `columnResize` | `ColumnResizeEvent` | Emitted when a column resize completes, with the column and its old and new widths. |
299
+
300
+ ## `GridRowReorderableDirective`
301
+
302
+ Directive.
303
+
304
+ **Selector:** `mona-grid[monaGridRowReorderable]`
305
+
306
+ ### Inputs
307
+
308
+ | Name | Type | Default | Description |
309
+ | --- | --- | --- | --- |
310
+ | `monaGridRowReorderable` | `RowReorderableOptions \| ""` | `""` | Enables row reordering via the reorder-handle column. Pass a `RowReorderableOptions` object to configure it explicitly. |
311
+
312
+ ### Outputs
313
+
314
+ | Name | Type | Description |
315
+ | --- | --- | --- |
316
+ | `rowReorder` | `RowReorderEvent<Record<PropertyKey, unknown>>` | Emitted when a row is moved to a new position. The event carries the moved row, source- and page-relative indices, and the complete reordered application data. |
317
+
318
+ ## `GridEditCommandDirective`
319
+
320
+ Directive.
321
+
322
+ **Selector:** `button[monaGridEditCommand]`
323
+
324
+ ### Inputs
325
+
326
+ | Name | Type | Default | Description |
327
+ | --- | --- | --- | --- |
328
+ | `monaGridEditCommand` | `Row \| null` | `null` | The row the button puts into row edit mode when clicked, usually the command template's `row`. Does nothing while `null` or when the grid isn't in row edit mode. |
329
+
330
+ ## `GridExportDirective`
331
+
332
+ Directive.
333
+
334
+ **Selector:** `mona-grid[monaGridExport]`
335
+ **Exported as:** `monaGridExport`
336
+
337
+ ### Methods
338
+
339
+ | Signature | Description |
340
+ | --- | --- |
341
+ | `exportCsv(filename?: string): void` | Exports the visible columns of the current view as CSV (only the loaded page with server binding). |
342
+
343
+ ## `GridRemoveCommandDirective`
344
+
345
+ Directive.
346
+
347
+ **Selector:** `button[monaGridRemoveCommand]`
348
+
349
+ ### Inputs
350
+
351
+ | Name | Type | Default | Description |
352
+ | --- | --- | --- | --- |
353
+ | `monaGridRemoveCommand` | `Row \| null` | `null` | The row the button removes when clicked, usually the command template's `row`. The click emits the grid's `remove` event for that row. Inside a command column with `removeConfirmation`, it asks first, as the built-in remove command does. Does nothing while `null`. |
354
+
355
+ ## `GridAddCommandDirective`
356
+
357
+ Directive.
358
+
359
+ **Selector:** `button[monaGridAddCommand]`
360
+
361
+ ## `GridCancelCommandDirective`
362
+
363
+ Directive.
364
+
365
+ **Selector:** `button[monaGridCancelCommand]`
366
+
367
+ ## `GridCellTemplateDirective`
368
+
369
+ Directive.
370
+
371
+ **Selector:** `ng-template[monaGridCellTemplate]`
372
+
373
+ ## `GridColumnTitleTemplateDirective`
374
+
375
+ Directive.
376
+
377
+ **Selector:** `[monaGridColumnTitleTemplate]`
378
+
379
+ ## `GridContextMenuDirective`
380
+
381
+ Directive.
382
+
383
+ **Selector:** `[monaGridContextMenu]`
384
+
385
+ ## `GridDetailTemplateDirective`
386
+
387
+ Directive.
388
+
389
+ **Selector:** `ng-template[monaGridDetailTemplate]`
390
+
391
+ ## `GridEditTemplateDirective`
392
+
393
+ Directive.
394
+
395
+ **Selector:** `ng-template[monaGridEditTemplate]`
396
+
397
+ ## `GridFooterTemplateDirective`
398
+
399
+ Directive.
400
+
401
+ **Selector:** `ng-template[monaGridFooterTemplate]`
402
+
403
+ ## `GridGroupFooterTemplateDirective`
404
+
405
+ Directive.
406
+
407
+ **Selector:** `ng-template[monaGridGroupFooterTemplate]`
408
+
409
+ ## `GridHeaderTemplateDirective`
410
+
411
+ Directive.
412
+
413
+ **Selector:** `ng-template[monaGridHeaderTemplate]`
414
+
415
+ ## `GridNoDataTemplateDirective`
416
+
417
+ Directive.
418
+
419
+ **Selector:** `ng-template[monaGridNoDataTemplate]`
420
+
421
+ ## `GridSaveCommandDirective`
422
+
423
+ Directive.
424
+
425
+ **Selector:** `button[monaGridSaveCommand]`
426
+
427
+ ## `GridToolbarTemplateDirective`
428
+
429
+ Directive.
430
+
431
+ **Selector:** `ng-template[monaGridToolbarTemplate]`
432
+
433
+ ## `CellEditEvent`
434
+
435
+ Class.
436
+
437
+ **Extends:** `PreventableEvent`
438
+
439
+ ### Properties
440
+
441
+ | Name | Type |
442
+ | --- | --- |
443
+ | `field` (read-only) | `string` |
444
+ | `newValue` (read-only) | `unknown` |
445
+ | `oldValue` (read-only) | `unknown` |
446
+ | `rowData` (read-only) | `Record<PropertyKey, unknown>` |
447
+ | `session` (read-only) | `GridEditSession` |
448
+
449
+ ### Inherited from `PreventableEvent`
450
+
451
+ | Name | Type | Description |
452
+ | --- | --- | --- |
453
+ | `originalEvent` (read-only) | `E \| undefined` | The DOM event that caused this one, when there is one. |
454
+ | `type` (read-only) | `string \| undefined` | A name for the kind of event, when the component that emits it sets one. |
455
+
456
+ **Methods**
457
+
458
+ | Signature | Description |
459
+ | --- | --- |
460
+ | `isDefaultPrevented(): boolean` | Whether `preventDefault()` was called. |
461
+ | `preventDefault(): void` | Cancels what the event announces, such as opening or closing a popup, or closing a dialog. |
462
+
463
+ **Used by:** [`GridEditableDirective`](grid.md#grideditabledirective)
464
+
465
+ ## `ColumnReorderEvent`
466
+
467
+ Class.
468
+
469
+ **Extends:** `PreventableEvent`
470
+
471
+ ### Properties
472
+
473
+ | Name | Type |
474
+ | --- | --- |
475
+ | `column` (read-only) | `Column` |
476
+ | `newIndex` (read-only) | `number` |
477
+ | `oldIndex` (read-only) | `number` |
478
+
479
+ ### Inherited from `PreventableEvent`
480
+
481
+ | Name | Type | Description |
482
+ | --- | --- | --- |
483
+ | `originalEvent` (read-only) | `E \| undefined` | The DOM event that caused this one, when there is one. |
484
+ | `type` (read-only) | `string \| undefined` | A name for the kind of event, when the component that emits it sets one. |
485
+
486
+ **Methods**
487
+
488
+ | Signature | Description |
489
+ | --- | --- |
490
+ | `isDefaultPrevented(): boolean` | Whether `preventDefault()` was called. |
491
+ | `preventDefault(): void` | Cancels what the event announces, such as opening or closing a popup, or closing a dialog. |
492
+
493
+ **Used by:** [`GridReorderableDirective`](grid.md#gridreorderabledirective)
494
+
495
+ ## `ColumnSortEvent`
496
+
497
+ Class.
498
+
499
+ **Extends:** `PreventableEvent`
500
+
501
+ ### Properties
502
+
503
+ | Name | Type |
504
+ | --- | --- |
505
+ | `column` (read-only) | `Column` |
506
+
507
+ ### Inherited from `PreventableEvent`
508
+
509
+ | Name | Type | Description |
510
+ | --- | --- | --- |
511
+ | `originalEvent` (read-only) | `E \| undefined` | The DOM event that caused this one, when there is one. |
512
+ | `type` (read-only) | `string \| undefined` | A name for the kind of event, when the component that emits it sets one. |
513
+
514
+ **Methods**
515
+
516
+ | Signature | Description |
517
+ | --- | --- |
518
+ | `isDefaultPrevented(): boolean` | Whether `preventDefault()` was called. |
519
+ | `preventDefault(): void` | Cancels what the event announces, such as opening or closing a popup, or closing a dialog. |
520
+
521
+ **Used by:** [`GridSortableDirective`](grid.md#gridsortabledirective)
522
+
523
+ ## `GridAddEvent`
524
+
525
+ Class.
526
+
527
+ **Extends:** `PreventableEvent`
528
+
529
+ ### Properties
530
+
531
+ | Name | Type |
532
+ | --- | --- |
533
+ | `rowData` (read-only) | `Record<PropertyKey, unknown>` |
534
+ | `session` (read-only) | `GridEditSession` |
535
+
536
+ ### Inherited from `PreventableEvent`
537
+
538
+ | Name | Type | Description |
539
+ | --- | --- | --- |
540
+ | `originalEvent` (read-only) | `E \| undefined` | The DOM event that caused this one, when there is one. |
541
+ | `type` (read-only) | `string \| undefined` | A name for the kind of event, when the component that emits it sets one. |
542
+
543
+ **Methods**
544
+
545
+ | Signature | Description |
546
+ | --- | --- |
547
+ | `isDefaultPrevented(): boolean` | Whether `preventDefault()` was called. |
548
+ | `preventDefault(): void` | Cancels what the event announces, such as opening or closing a popup, or closing a dialog. |
549
+
550
+ **Used by:** [`GridEditableDirective`](grid.md#grideditabledirective)
551
+
552
+ ## `GridCancelEvent`
553
+
554
+ Class.
555
+
556
+ **Extends:** `PreventableEvent`
557
+
558
+ ### Properties
559
+
560
+ | Name | Type |
561
+ | --- | --- |
562
+ | `operation` (read-only) | `GridSaveOperation` |
563
+ | `reason` (read-only) | `GridCancelReason` |
564
+ | `rowData` (read-only) | `Record<PropertyKey, unknown>` |
565
+ | `session` (read-only) | `GridEditSession` |
566
+
567
+ ### Inherited from `PreventableEvent`
568
+
569
+ | Name | Type | Description |
570
+ | --- | --- | --- |
571
+ | `originalEvent` (read-only) | `E \| undefined` | The DOM event that caused this one, when there is one. |
572
+ | `type` (read-only) | `string \| undefined` | A name for the kind of event, when the component that emits it sets one. |
573
+
574
+ **Methods**
575
+
576
+ | Signature | Description |
577
+ | --- | --- |
578
+ | `isDefaultPrevented(): boolean` | Whether `preventDefault()` was called. |
579
+ | `preventDefault(): void` | Cancels what the event announces, such as opening or closing a popup, or closing a dialog. |
580
+
581
+ **Used by:** [`GridEditableDirective`](grid.md#grideditabledirective)
582
+
583
+ ## `GridEditEvent`
584
+
585
+ Class.
586
+
587
+ **Extends:** `PreventableEvent`
588
+
589
+ ### Properties
590
+
591
+ | Name | Type |
592
+ | --- | --- |
593
+ | `rowData` (read-only) | `Record<PropertyKey, unknown>` |
594
+ | `session` (read-only) | `GridEditSession` |
595
+
596
+ ### Inherited from `PreventableEvent`
597
+
598
+ | Name | Type | Description |
599
+ | --- | --- | --- |
600
+ | `originalEvent` (read-only) | `E \| undefined` | The DOM event that caused this one, when there is one. |
601
+ | `type` (read-only) | `string \| undefined` | A name for the kind of event, when the component that emits it sets one. |
602
+
603
+ **Methods**
604
+
605
+ | Signature | Description |
606
+ | --- | --- |
607
+ | `isDefaultPrevented(): boolean` | Whether `preventDefault()` was called. |
608
+ | `preventDefault(): void` | Cancels what the event announces, such as opening or closing a popup, or closing a dialog. |
609
+
610
+ **Used by:** [`GridEditableDirective`](grid.md#grideditabledirective)
611
+
612
+ ## `GridRemoveEvent`
613
+
614
+ Class.
615
+
616
+ **Extends:** `PreventableEvent`
617
+
618
+ ### Properties
619
+
620
+ | Name | Type | Description |
621
+ | --- | --- | --- |
622
+ | `index` (read-only) | `number` | The row's position in the grid's `data`, or -1 when it is no longer there. |
623
+ | `key` (read-only) | `unknown` | The row's `rowKey` value, or the data item when the grid has no `rowKey`. |
624
+ | `rowData` (read-only) | `Record<PropertyKey, unknown>` | The data item of the row being removed. |
625
+
626
+ ### Inherited from `PreventableEvent`
627
+
628
+ | Name | Type | Description |
629
+ | --- | --- | --- |
630
+ | `originalEvent` (read-only) | `E \| undefined` | The DOM event that caused this one, when there is one. |
631
+ | `type` (read-only) | `string \| undefined` | A name for the kind of event, when the component that emits it sets one. |
632
+
633
+ **Methods**
634
+
635
+ | Signature | Description |
636
+ | --- | --- |
637
+ | `isDefaultPrevented(): boolean` | Whether `preventDefault()` was called. |
638
+ | `preventDefault(): void` | Cancels what the event announces, such as opening or closing a popup, or closing a dialog. |
639
+
640
+ **Used by:** [`GridEditableDirective`](grid.md#grideditabledirective)
641
+
642
+ ## `GridSaveEvent`
643
+
644
+ Class.
645
+
646
+ `T` is the row type, which a typed `schema` or `newRowFactory` on `monaGridEditable` sets.
647
+
648
+ **Type parameters:** `T extends object = Record<PropertyKey, unknown>`
649
+ **Extends:** `PreventableEvent`
650
+
651
+ ### Properties
652
+
653
+ | Name | Type |
654
+ | --- | --- |
655
+ | `operation` (read-only) | `GridSaveOperation` |
656
+ | `originalRowData` (read-only) | `T \| null` |
657
+ | `rowData` (read-only) | `T` |
658
+ | `session` (read-only) | `GridEditSession` |
659
+
660
+ ### Inherited from `PreventableEvent`
661
+
662
+ | Name | Type | Description |
663
+ | --- | --- | --- |
664
+ | `originalEvent` (read-only) | `E \| undefined` | The DOM event that caused this one, when there is one. |
665
+ | `type` (read-only) | `string \| undefined` | A name for the kind of event, when the component that emits it sets one. |
666
+
667
+ **Methods**
668
+
669
+ | Signature | Description |
670
+ | --- | --- |
671
+ | `isDefaultPrevented(): boolean` | Whether `preventDefault()` was called. |
672
+ | `preventDefault(): void` | Cancels what the event announces, such as opening or closing a popup, or closing a dialog. |
673
+
674
+ **Used by:** [`GridEditableDirective`](grid.md#grideditabledirective)
675
+
676
+ ## `Row`
677
+
678
+ Class.
679
+
680
+ A row of the grid, wrapping its data item.
681
+
682
+ ### Properties
683
+
684
+ | Name | Type |
685
+ | --- | --- |
686
+ | `data` (read-only) | `Record<PropertyKey, unknown>` |
687
+ | `uid` (read-only) | `string` |
688
+
689
+ **Used by:** [`GridEditCommandDirective`](grid.md#grideditcommanddirective), [`GridEditSession`](grid.md#grideditsession), [`GridRemoveCommandDirective`](grid.md#gridremovecommanddirective)
690
+
691
+ ## `RowEditEvent`
692
+
693
+ Class.
694
+
695
+ **Extends:** `PreventableEvent`
696
+
697
+ ### Properties
698
+
699
+ | Name | Type |
700
+ | --- | --- |
701
+ | `originalRowData` (read-only) | `Record<PropertyKey, unknown> \| null` |
702
+ | `rowData` (read-only) | `Record<PropertyKey, unknown>` |
703
+ | `session` (read-only) | `GridEditSession` |
704
+
705
+ ### Inherited from `PreventableEvent`
706
+
707
+ | Name | Type | Description |
708
+ | --- | --- | --- |
709
+ | `originalEvent` (read-only) | `E \| undefined` | The DOM event that caused this one, when there is one. |
710
+ | `type` (read-only) | `string \| undefined` | A name for the kind of event, when the component that emits it sets one. |
711
+
712
+ **Methods**
713
+
714
+ | Signature | Description |
715
+ | --- | --- |
716
+ | `isDefaultPrevented(): boolean` | Whether `preventDefault()` was called. |
717
+ | `preventDefault(): void` | Cancels what the event announces, such as opening or closing a popup, or closing a dialog. |
718
+
719
+ **Used by:** [`GridEditableDirective`](grid.md#grideditabledirective)
720
+
721
+ ## `RowReorderEvent`
722
+
723
+ Class.
724
+
725
+ **Type parameters:** `TData extends Record<PropertyKey, unknown> = Record<PropertyKey, unknown>`
726
+ **Extends:** `PreventableEvent`
727
+
728
+ ### Properties
729
+
730
+ | Name | Type |
731
+ | --- | --- |
732
+ | `currentIndex` (read-only) | `number` |
733
+ | `currentPageIndex` (read-only) | `number` |
734
+ | `previousIndex` (read-only) | `number` |
735
+ | `previousPageIndex` (read-only) | `number` |
736
+ | `reorderedData` (read-only) | `readonly TData[]` |
737
+ | `rowData` (read-only) | `TData` |
738
+
739
+ ### Inherited from `PreventableEvent`
740
+
741
+ | Name | Type | Description |
742
+ | --- | --- | --- |
743
+ | `originalEvent` (read-only) | `E \| undefined` | The DOM event that caused this one, when there is one. |
744
+ | `type` (read-only) | `string \| undefined` | A name for the kind of event, when the component that emits it sets one. |
745
+
746
+ **Methods**
747
+
748
+ | Signature | Description |
749
+ | --- | --- |
750
+ | `isDefaultPrevented(): boolean` | Whether `preventDefault()` was called. |
751
+ | `preventDefault(): void` | Cancels what the event announces, such as opening or closing a popup, or closing a dialog. |
752
+
753
+ **Used by:** [`GridRowReorderableDirective`](grid.md#gridrowreorderabledirective)
754
+
755
+ ## `GRID_DEFAULT_MESSAGES`
756
+
757
+ Constant.
758
+
759
+ ```typescript
760
+ const GRID_DEFAULT_MESSAGES: { all: string; apply: string; cancel: string; cancelNewRow: string; cancelRowEdit: (rowNumber: number) => string; clearFilter: (column: string) => string; collapseDetail: (rowNumber: number) => string; columnGrouped: (column: string) => string; columnMoved: (column: string, position: number) => string; columns: string; columnsSelected: (count: number) => string; commandColumnTitle: string; delete: string; deleteRowConfirmation: (rowNumber: number) => string; deleteRowTitle: string; details: string; dragColumnHeaderToGroup: string; edit: string; editRow: (rowNumber: number) => string; expandDetail: (rowNumber: number) => string; fieldValidationError: string; filterByColumn: (column: string) => string; filterByColumnFiltered: (column: string) => string; filterOperator: (column: string, operator: string) => string; filterPlaceholder: string; group: string; groupOptions: (column: string) => string; loading: string; modified: string; moveAsNext: string; moveAsPrevious: string; moveRow: string; noData: string; remove: string; removeRow: (rowNumber: number) => string; reorderRow: (rowNumber: number) => string; resizeColumn: (column: string) => string; rowReorder: string; rowReorderDisabled: string; rowReorderDisabledEditing: string; rowReorderDisabledFiltered: string; rowReorderDisabledGrouped: string; rowReorderDisabledServerBinding: string; rowReorderDisabledSingleRow: string; rowReorderDisabledSorted: string; rowReorderDisabledVirtualScroll: string; rowReorderHandleAriaLabel: (rowLabel: string, keyboardHint: string, disabledReason?: string) => string; rowReorderKeyboardHint: string; rowReorderMoved: (fromRowNumber: number, toPosition: number) => string; rowValidationError: string; save: string; saveNewRow: string; saveRow: (rowNumber: number) => string; selectAllRows: string; selectRow: (rowNumber: number) => string; sortOrder: (position: number) => string; toolbar: string; };
761
+ ```
762
+
763
+ ## `GridToolbarContext`
764
+
765
+ Interface.
766
+
767
+ The grid state and actions a toolbar template can use.
768
+
769
+ ### Properties
770
+
771
+ | Name | Type | Description |
772
+ | --- | --- | --- |
773
+ | `addRowData` (read-only) | `Record<PropertyKey, unknown> \| null` | The new row's values while a row is being added, otherwise `null`. |
774
+ | `addRowVisible` (read-only) | `boolean` | Whether the add row is open. |
775
+ | `dataState` (read-only) | `GridDataState` | The current paging, sorting and filtering. |
776
+ | `editSession` (read-only) | `GridEditSession \| null` | The current edit, or `null` when nothing is being edited. |
777
+ | `selectedKeys` (read-only) | `readonly unknown[]` | The selected row keys. |
778
+
779
+ ### Methods
780
+
781
+ | Signature | Description |
782
+ | --- | --- |
783
+ | `cancelAdd(): boolean` | Closes the add row without saving. Returns whether it closed. |
784
+ | `cancelEdit(): boolean` | Ends the current cell or row edit without saving. Returns whether an edit was cancelled. |
785
+ | `saveAdd(): boolean` | Saves the add row. Returns whether it was saved. |
786
+ | `startAdd(): boolean` | Opens the add row. Returns whether it opened. |
787
+
788
+ **Used by:** [`GridToolbarTemplateContext`](grid.md#gridtoolbartemplatecontext)
789
+
790
+ ## `Column`
791
+
792
+ Interface.
793
+
794
+ Set `locked` and `lockedPosition` on a `mona-grid-column` (or `mona-grid-command-column`) to keep it fixed while the
795
+ grid scrolls horizontally.
796
+
797
+ **Extends:** `ColumnConfig`
798
+
799
+ ### Properties
800
+
801
+ | Name | Type | Description |
802
+ | --- | --- | --- |
803
+ | `calculatedWidth` (read-only) | `number \| null` | The column's currently rendered width. |
804
+ | `columnSortDirection` (read-only) | `SortDirection \| null` | The direction the grid is currently sorted by this column, or `null` when it isn't. |
805
+ | `filtered` (read-only) | `boolean` | Whether a filter is currently applied to this column. |
806
+ | `groupSortDirection` (read-only) | `SortDirection \| null` | The sort direction of the grid's grouping by this column, or `null` when the grid isn't grouped by it. |
807
+ | `hidden` (read-only) | `boolean` | Whether the column is hidden. |
808
+ | `sortIndex` (read-only) | `number \| null` | The column's one-based position among the grid's sorted columns, or `null` when it isn't sorted. |
809
+
810
+ ### Inherited from `ColumnConfig`
811
+
812
+ | Name | Type | Description |
813
+ | --- | --- | --- |
814
+ | `aggregate` (read-only) | `AggregateFunction \| null` | The aggregate shown in the grid footer for this column, or `null` for none. |
815
+ | `cellTemplate` (read-only) | `TemplateRef<unknown> \| null` | The column's `monaGridCellTemplate`, which renders its body cells, or `null` for the default text. |
816
+ | `commandTemplate` (read-only) | `TemplateRef<unknown> \| null` | A command column's `monaGridCellTemplate`, which replaces the built-in command buttons, or `null`. |
817
+ | `configuredEditable?` (read-only) | `boolean \| null` | The `editable` input as the consumer set it; `null` leaves it to the default, which is every column but the `rowKey` field. Left out, `editable` is used as given. |
818
+ | `dataType` (read-only) | `DataType` | The column's data type, which picks the editor and the filter. Command columns use `"string"`. |
819
+ | `editable` (read-only) | `boolean` | Whether the column can be edited. The grid resolves it from `configuredEditable` when that is set. |
820
+ | `editTemplate` (read-only) | `TemplateRef<unknown> \| null` | The column's `monaGridEditTemplate`, which renders the cell editor, or `null` for the editor of its data type. |
821
+ | `field` (read-only) | `string` | The data property the column shows. A command column uses its `stateKey`, or `"commands"`. |
822
+ | `filterable` (read-only) | `boolean` | Whether the column can be filtered when the grid's filtering is enabled. |
823
+ | `footerTemplate` (read-only) | `TemplateRef<unknown> \| null` | The column's `monaGridFooterTemplate`, which renders its footer cell, or `null`. |
824
+ | `format` (read-only) | `ColumnFormat \| null` | How cell values are formatted for display, or `null` to show them as they are. |
825
+ | `groupFooterTemplate` (read-only) | `TemplateRef<unknown> \| null` | The column's `monaGridGroupFooterTemplate`, which renders its cell in group footer rows, or `null`. |
826
+ | `headerTemplate` (read-only) | `TemplateRef<unknown> \| null` | The column's `monaGridHeaderTemplate`, which replaces the whole header content and receives the column, or `null`. |
827
+ | `hidden` (read-only) | `boolean` | The column's `hidden` input as set. |
828
+ | `id` (read-only) | `string` | A unique id generated for the column. |
829
+ | `kind` (read-only) | `ColumnKind` | `"data"` for a `mona-grid-column`, `"command"` for a `mona-grid-command-column`. |
830
+ | `locked` (read-only) | `boolean` | Whether the column stays fixed while the grid scrolls horizontally. |
831
+ | `lockedPosition` (read-only) | `GridColumnLockedPosition` | The side of the grid a locked column is fixed to. |
832
+ | `maxWidth` (read-only) | `number \| null` | The column's maximum width in pixels, or `null` for no maximum. |
833
+ | `minWidth` (read-only) | `number \| null` | The column's minimum width in pixels, or `null` for no minimum. |
834
+ | `removeConfirmation` (read-only) | `boolean` | Whether the built-in remove command asks for confirmation before emitting `remove`. Only command columns set it. |
835
+ | `sortable` (read-only) | `boolean` | Whether the column can be sorted from its header when the grid's sorting is enabled. |
836
+ | `sortComparator?` (read-only) | `ColumnSortComparator \| null` | Compares values when the user sorts this column; without it values sort by type, strings by locale. |
837
+ | `stateKey` (read-only) | `string \| null` | The key the column's saved state is stored under, or `null` to use `field`. |
838
+ | `title` (read-only) | `string` | The text shown in the column header. |
839
+ | `titleTemplate` (read-only) | `TemplateRef<unknown> \| null` | The column's `monaGridColumnTitleTemplate`, shown in the header in place of `title` when there is no header template, or `null`. |
840
+ | `width` (read-only) | `number \| null` | The column's configured width in pixels, or `null` to size it automatically. |
841
+
842
+ **Used by:** [`ColumnFormatFunction`](grid.md#columnformatfunction), [`ColumnReorderEvent`](grid.md#columnreorderevent), [`ColumnResizeEvent`](grid.md#columnresizeevent), [`ColumnSortEvent`](grid.md#columnsortevent), [`GridEditFormContext`](grid.md#grideditformcontext), [`GridEditSession`](grid.md#grideditsession)
843
+
844
+ ## `ColumnConfig`
845
+
846
+ Interface.
847
+
848
+ ### Properties
849
+
850
+ | Name | Type | Description |
851
+ | --- | --- | --- |
852
+ | `aggregate` (read-only) | `AggregateFunction \| null` | The aggregate shown in the grid footer for this column, or `null` for none. |
853
+ | `cellTemplate` (read-only) | `TemplateRef<unknown> \| null` | The column's `monaGridCellTemplate`, which renders its body cells, or `null` for the default text. |
854
+ | `commandTemplate` (read-only) | `TemplateRef<unknown> \| null` | A command column's `monaGridCellTemplate`, which replaces the built-in command buttons, or `null`. |
855
+ | `configuredEditable?` (read-only) | `boolean \| null` | The `editable` input as the consumer set it; `null` leaves it to the default, which is every column but the `rowKey` field. Left out, `editable` is used as given. |
856
+ | `dataType` (read-only) | `DataType` | The column's data type, which picks the editor and the filter. Command columns use `"string"`. |
857
+ | `editable` (read-only) | `boolean` | Whether the column can be edited. The grid resolves it from `configuredEditable` when that is set. |
858
+ | `editTemplate` (read-only) | `TemplateRef<unknown> \| null` | The column's `monaGridEditTemplate`, which renders the cell editor, or `null` for the editor of its data type. |
859
+ | `field` (read-only) | `string` | The data property the column shows. A command column uses its `stateKey`, or `"commands"`. |
860
+ | `filterable` (read-only) | `boolean` | Whether the column can be filtered when the grid's filtering is enabled. |
861
+ | `footerTemplate` (read-only) | `TemplateRef<unknown> \| null` | The column's `monaGridFooterTemplate`, which renders its footer cell, or `null`. |
862
+ | `format` (read-only) | `ColumnFormat \| null` | How cell values are formatted for display, or `null` to show them as they are. |
863
+ | `groupFooterTemplate` (read-only) | `TemplateRef<unknown> \| null` | The column's `monaGridGroupFooterTemplate`, which renders its cell in group footer rows, or `null`. |
864
+ | `headerTemplate` (read-only) | `TemplateRef<unknown> \| null` | The column's `monaGridHeaderTemplate`, which replaces the whole header content and receives the column, or `null`. |
865
+ | `hidden` (read-only) | `boolean` | The column's `hidden` input as set. |
866
+ | `id` (read-only) | `string` | A unique id generated for the column. |
867
+ | `kind` (read-only) | `ColumnKind` | `"data"` for a `mona-grid-column`, `"command"` for a `mona-grid-command-column`. |
868
+ | `locked` (read-only) | `boolean` | Whether the column stays fixed while the grid scrolls horizontally. |
869
+ | `lockedPosition` (read-only) | `GridColumnLockedPosition` | The side of the grid a locked column is fixed to. |
870
+ | `maxWidth` (read-only) | `number \| null` | The column's maximum width in pixels, or `null` for no maximum. |
871
+ | `minWidth` (read-only) | `number \| null` | The column's minimum width in pixels, or `null` for no minimum. |
872
+ | `removeConfirmation` (read-only) | `boolean` | Whether the built-in remove command asks for confirmation before emitting `remove`. Only command columns set it. |
873
+ | `sortable` (read-only) | `boolean` | Whether the column can be sorted from its header when the grid's sorting is enabled. |
874
+ | `sortComparator?` (read-only) | `ColumnSortComparator \| null` | Compares values when the user sorts this column; without it values sort by type, strings by locale. |
875
+ | `stateKey` (read-only) | `string \| null` | The key the column's saved state is stored under, or `null` to use `field`. |
876
+ | `title` (read-only) | `string` | The text shown in the column header. |
877
+ | `titleTemplate` (read-only) | `TemplateRef<unknown> \| null` | The column's `monaGridColumnTitleTemplate`, shown in the header in place of `title` when there is no header template, or `null`. |
878
+ | `width` (read-only) | `number \| null` | The column's configured width in pixels, or `null` to size it automatically. |
879
+
880
+ **Used by:** [`Column`](grid.md#column)
881
+
882
+ ## `ColumnResizeEvent`
883
+
884
+ Interface.
885
+
886
+ ### Properties
887
+
888
+ | Name | Type |
889
+ | --- | --- |
890
+ | `column` | `Column` |
891
+ | `newWidth` | `number` |
892
+ | `oldWidth` | `number` |
893
+
894
+ **Used by:** [`GridResizableDirective`](grid.md#gridresizabledirective)
895
+
896
+ ## `EditableOptions`
897
+
898
+ Interface.
899
+
900
+ `T` is the row type, which a typed `schema` sets.
901
+
902
+ **Type parameters:** `T extends object = Record<PropertyKey, unknown>`
903
+
904
+ ### Properties
905
+
906
+ | Name | Type | Description |
907
+ | --- | --- | --- |
908
+ | `commandAriaLabel?` | `( command: GridRowCommand, rowData: Record<PropertyKey, unknown>, absoluteIndex: number ) => string` | Returns the accessible name of a row's command button, such as "Edit order 10248". Without it the buttons are named by position ("Edit row 3"). `absoluteIndex` is the row's 0-based position in the filtered and sorted rows; the add row isn't passed here. |
909
+ | `enabled?` | `boolean` | Whether editing is active. On unless set to `false`; options replace earlier ones. |
910
+ | `mode` | `"cell" \| "row"` | Whether editing commits per cell or per row. |
911
+ | `schema?` | `GridEditSchemaFactory<T>` | Builds a Signal Forms validation schema for the row being edited. |
912
+
913
+ **Used by:** [`GridEditableDirective`](grid.md#grideditabledirective)
914
+
915
+ ## `FilterableOptions`
916
+
917
+ Interface.
918
+
919
+ ### Properties
920
+
921
+ | Name | Type |
922
+ | --- | --- |
923
+ | `enabled` | `boolean` |
924
+ | `type` | `"menu" \| "row" \| "menu, row"` |
925
+
926
+ **Used by:** [`DropdownFilterableDirective`](dropdowns.md#dropdownfilterabledirective), [`GridFilterableDirective`](grid.md#gridfilterabledirective), [`TreeViewFilterableDirective`](tree-view.md#treeviewfilterabledirective)
927
+
928
+ ## `GridColumnState`
929
+
930
+ Interface.
931
+
932
+ ### Properties
933
+
934
+ | Name | Type |
935
+ | --- | --- |
936
+ | `hidden` | `boolean` |
937
+ | `id` | `string` |
938
+ | `order` | `number` |
939
+ | `width` | `number \| null` |
940
+
941
+ **Used by:** [`GridState`](grid.md#gridstate)
942
+
943
+ ## `GridDataState`
944
+
945
+ Interface.
946
+
947
+ The paging, sorting, and filtering requested by a server-bound Grid.
948
+
949
+ ### Properties
950
+
951
+ | Name | Type | Description |
952
+ | --- | --- | --- |
953
+ | `filter` (read-only) | `readonly CompositeFilterDescriptor[]` | Applied composite filter descriptors. |
954
+ | `skip` (read-only) | `number` | Requested zero-based offset. |
955
+ | `sort` (read-only) | `readonly SortDescriptor[]` | Sort descriptors in priority order. |
956
+ | `take` (read-only) | `number` | Requested page size. |
957
+
958
+ **Used by:** [`GridServerBindingDirective`](grid.md#gridserverbindingdirective), [`GridToolbarContext`](grid.md#gridtoolbarcontext)
959
+
960
+ ## `GridEditFormContext`
961
+
962
+ Interface.
963
+
964
+ What a schema factory is told about the edit. `T` is the row type, untyped unless you give one.
965
+
966
+ **Type parameters:** `T extends object = Record<PropertyKey, unknown>`
967
+
968
+ ### Properties
969
+
970
+ | Name | Type |
971
+ | --- | --- |
972
+ | `column` (read-only) | `Column \| null` |
973
+ | `field` (read-only) | `string \| null` |
974
+ | `isNew` (read-only) | `boolean` |
975
+ | `mode` (read-only) | `"cell" \| "row"` |
976
+ | `operation` (read-only) | `GridEditOperation` |
977
+ | `originalRowData` (read-only) | `T \| null` |
978
+ | `rowData` (read-only) | `T` |
979
+
980
+ **Used by:** [`GridEditSchemaFactory`](grid.md#grideditschemafactory)
981
+
982
+ ## `GridEditSession`
983
+
984
+ Interface.
985
+
986
+ ### Properties
987
+
988
+ | Name | Type | Description |
989
+ | --- | --- | --- |
990
+ | `column` (read-only) | `Column \| null` | The column currently being edited, in cell mode. |
991
+ | `field` (read-only) | `string \| null` | The field name currently being edited, in cell mode. |
992
+ | `form` (read-only) | `FieldTree<Record<PropertyKey, unknown>>` | The Signal Forms field tree backing the row being edited. |
993
+ | `isNew` (read-only) | `boolean` | Whether this session represents a new row being added. |
994
+ | `mode` (read-only) | `"cell" \| "row"` | The active editing mode. |
995
+ | `model` (read-only) | `WritableSignal<Record<PropertyKey, unknown>>` | The signal holding the row's current edited values. |
996
+ | `operation` (read-only) | `GridEditOperation` | `"create"` or `"update"`. |
997
+ | `originalRowData` (read-only) | `Record<PropertyKey, unknown> \| null` | The row's data before editing began. |
998
+ | `row` (read-only) | `Row \| null` | The internal row wrapper being edited. |
999
+ | `rowUid` (read-only) | `string \| null` | The stable identifier of the row being edited. |
1000
+
1001
+ **Used by:** [`CellEditEvent`](grid.md#celleditevent), [`GridAddEvent`](grid.md#gridaddevent), [`GridCancelEvent`](grid.md#gridcancelevent), [`GridEditEvent`](grid.md#grideditevent), [`GridEditTemplateContext`](grid.md#gridedittemplatecontext), [`GridSaveEvent`](grid.md#gridsaveevent), [`GridToolbarContext`](grid.md#gridtoolbarcontext), [`RowEditEvent`](grid.md#roweditevent)
1002
+
1003
+ ## `GridEditTemplateContext`
1004
+
1005
+ Interface.
1006
+
1007
+ ### Properties
1008
+
1009
+ | Name | Type | Description |
1010
+ | --- | --- | --- |
1011
+ | `cancel` (read-only) | `() => void` | Cancels the current edit. |
1012
+ | `column` (read-only) | `string` | The field name of the column being edited. |
1013
+ | `commit` (read-only) | `() => void` | Commits the current edit. |
1014
+ | `dataField` (read-only) | `string` | Same as `column`; the field name being edited. |
1015
+ | `dataItem` (read-only) | `Record<PropertyKey, unknown>` | The row's current edited values. |
1016
+ | `errors` (read-only) | `readonly ValidationError.WithFieldTree[]` | Validation errors for this field. |
1017
+ | `field` (read-only) | `FieldTree<unknown>` | The Signal Forms field for this column. |
1018
+ | `form` (read-only) | `GridEditSession["form"]` | The row's full Signal Forms field tree. |
1019
+ | `invalid` (read-only) | `boolean` | Whether this field currently fails validation. |
1020
+ | `isNew` (read-only) | `boolean` | Whether this is a new row being added. |
1021
+ | `session` (read-only) | `GridEditSession` | The full edit session for this row. |
1022
+ | `setValue` (read-only) | `(value: unknown) => void` | Sets this field's value. |
1023
+ | `touched` (read-only) | `boolean` | Whether this field has been touched. |
1024
+ | `value` (read-only) | `unknown` | This field's current value. |
1025
+
1026
+ ## `GridState`
1027
+
1028
+ Interface.
1029
+
1030
+ ### Properties
1031
+
1032
+ | Name | Type | Description |
1033
+ | --- | --- | --- |
1034
+ | `columns` | `readonly GridColumnState[]` | Persisted per-column hidden/order/width state. |
1035
+ | `filter` | `readonly GridStateCompositeFilterDescriptor[]` | Persisted filter descriptors. |
1036
+ | `group` | `readonly GroupDescriptor[]` | Persisted group descriptors. |
1037
+ | `pageSize?` | `number` | Persisted page size, unless `persistPageSize` is `false`. |
1038
+ | `schemaVersion?` | `number \| string` | Consumer-defined version tag used to reject stale persisted state. |
1039
+ | `sort` | `readonly GridStateSortDescriptor[]` | Persisted sort descriptors. |
1040
+ | `version` | `GridStateVersion` | The state schema version produced by this version of the library. |
1041
+
1042
+ **Used by:** [`GridStatePersistenceDirective`](grid.md#gridstatepersistencedirective)
1043
+
1044
+ ## `GridStateCompositeFilterDescriptor`
1045
+
1046
+ Interface.
1047
+
1048
+ ### Properties
1049
+
1050
+ | Name | Type |
1051
+ | --- | --- |
1052
+ | `filters` | `readonly (GridStateFilterDescriptor \| GridStateCompositeFilterDescriptor)[]` |
1053
+ | `logic` | `FilterLogic` |
1054
+
1055
+ **Used by:** [`GridState`](grid.md#gridstate)
1056
+
1057
+ ## `GridStateFilterDescriptor`
1058
+
1059
+ Interface.
1060
+
1061
+ ### Properties
1062
+
1063
+ | Name | Type |
1064
+ | --- | --- |
1065
+ | `field` | `string` |
1066
+ | `operator` | `Exclude<FilterOperators, "function">` |
1067
+ | `value?` | `GridStateFilterValue` |
1068
+
1069
+ **Used by:** [`GridStateCompositeFilterDescriptor`](grid.md#gridstatecompositefilterdescriptor)
1070
+
1071
+ ## `GridStateLoadResult`
1072
+
1073
+ Interface.
1074
+
1075
+ ### Properties
1076
+
1077
+ | Name | Type |
1078
+ | --- | --- |
1079
+ | `ignoredColumns` | `readonly string[]` |
1080
+ | `missingColumns` | `readonly string[]` |
1081
+ | `status` | `GridStateLoadStatus` |
1082
+
1083
+ **Used by:** [`GridStatePersistenceDirective`](grid.md#gridstatepersistencedirective)
1084
+
1085
+ ## `GridStatePersistenceOptions`
1086
+
1087
+ Interface.
1088
+
1089
+ ### Properties
1090
+
1091
+ | Name | Type |
1092
+ | --- | --- |
1093
+ | `enabled?` | `boolean` |
1094
+ | `persistPageSize?` | `boolean` |
1095
+ | `schemaVersion?` | `number \| string` |
1096
+
1097
+ **Used by:** [`GridStatePersistenceDirective`](grid.md#gridstatepersistencedirective)
1098
+
1099
+ ## `GridStateSortDescriptor`
1100
+
1101
+ Interface.
1102
+
1103
+ ### Properties
1104
+
1105
+ | Name | Type |
1106
+ | --- | --- |
1107
+ | `dir` | `SortDirection` |
1108
+ | `field` | `string` |
1109
+
1110
+ **Used by:** [`GridState`](grid.md#gridstate)
1111
+
1112
+ ## `GridToolbarTemplateContext`
1113
+
1114
+ Interface.
1115
+
1116
+ Context of `monaGridToolbarTemplate`: the toolbar state, also as `$implicit`.
1117
+
1118
+ **Extends:** `GridToolbarContext`
1119
+
1120
+ ### Properties
1121
+
1122
+ | Name | Type |
1123
+ | --- | --- |
1124
+ | `$implicit` (read-only) | `GridToolbarContext` |
1125
+
1126
+ ### Inherited from `GridToolbarContext`
1127
+
1128
+ | Name | Type | Description |
1129
+ | --- | --- | --- |
1130
+ | `addRowData` (read-only) | `Record<PropertyKey, unknown> \| null` | The new row's values while a row is being added, otherwise `null`. |
1131
+ | `addRowVisible` (read-only) | `boolean` | Whether the add row is open. |
1132
+ | `dataState` (read-only) | `GridDataState` | The current paging, sorting and filtering. |
1133
+ | `editSession` (read-only) | `GridEditSession \| null` | The current edit, or `null` when nothing is being edited. |
1134
+ | `selectedKeys` (read-only) | `readonly unknown[]` | The selected row keys. |
1135
+
1136
+ **Methods**
1137
+
1138
+ | Signature | Description |
1139
+ | --- | --- |
1140
+ | `cancelAdd(): boolean` | Closes the add row without saving. Returns whether it closed. |
1141
+ | `cancelEdit(): boolean` | Ends the current cell or row edit without saving. Returns whether an edit was cancelled. |
1142
+ | `saveAdd(): boolean` | Saves the add row. Returns whether it was saved. |
1143
+ | `startAdd(): boolean` | Opens the add row. Returns whether it opened. |
1144
+
1145
+ ## `GroupableOptions`
1146
+
1147
+ Interface.
1148
+
1149
+ ### Properties
1150
+
1151
+ | Name | Type | Description |
1152
+ | --- | --- | --- |
1153
+ | `enabled` | `boolean` | Whether grouping is active. |
1154
+ | `showFooter` | `boolean` | Whether a group's aggregate footer also shows while the group is collapsed; expanded groups always show it. |
1155
+
1156
+ **Used by:** [`DropdownGroupableDirective`](dropdowns.md#dropdowngroupabledirective), [`GridGroupableDirective`](grid.md#gridgroupabledirective), [`ListViewGroupableDirective`](list-view.md#listviewgroupabledirective)
1157
+
1158
+ ## `GroupDescriptor`
1159
+
1160
+ Interface.
1161
+
1162
+ ### Properties
1163
+
1164
+ | Name | Type |
1165
+ | --- | --- |
1166
+ | `dir?` | `SortDirection` |
1167
+ | `field` | `string` |
1168
+
1169
+ **Used by:** [`GridGroupableDirective`](grid.md#gridgroupabledirective), [`GridState`](grid.md#gridstate)
1170
+
1171
+ ## `ReorderableOptions`
1172
+
1173
+ Interface.
1174
+
1175
+ ### Properties
1176
+
1177
+ | Name | Type | Description |
1178
+ | --- | --- | --- |
1179
+ | `enabled` | `boolean` | Whether column reordering is active. On unless set to `false`; options replace earlier ones. |
1180
+
1181
+ **Used by:** [`GridReorderableDirective`](grid.md#gridreorderabledirective)
1182
+
1183
+ ## `ResizableOptions`
1184
+
1185
+ Interface.
1186
+
1187
+ ### Properties
1188
+
1189
+ | Name | Type | Description |
1190
+ | --- | --- | --- |
1191
+ | `enabled` | `boolean` | Whether column resizing is active. On unless set to `false`; options replace earlier ones. |
1192
+
1193
+ **Used by:** [`GridResizableDirective`](grid.md#gridresizabledirective)
1194
+
1195
+ ## `RowReorderableOptions`
1196
+
1197
+ Interface.
1198
+
1199
+ ### Properties
1200
+
1201
+ | Name | Type | Description |
1202
+ | --- | --- | --- |
1203
+ | `canReorder?` | `(rowData: Record<PropertyKey, unknown>) => boolean` | Determines whether an individual row may be reordered. Rows for which this returns false must show a disabled handle. |
1204
+ | `enabled?` | `boolean` | Enables row reordering. |
1205
+ | `rowAriaLabel?` | `(rowData: Record<PropertyKey, unknown>, absoluteIndex: number) => string` | Returns the accessible label fragment for a row's reorder handle. Locale-aware composition supplies sentence punctuation, keyboard instructions, and disabled reasons around this fragment. The default must be positional, such as: "Reorder row 3" |
1206
+
1207
+ **Used by:** [`GridRowReorderableDirective`](grid.md#gridrowreorderabledirective)
1208
+
1209
+ ## `SelectableOptions`
1210
+
1211
+ Interface.
1212
+
1213
+ ### Properties
1214
+
1215
+ | Name | Type | Description |
1216
+ | --- | --- | --- |
1217
+ | `enabled?` | `boolean` | Enables row selection. |
1218
+ | `mode?` | `"single" \| "multiple"` | Controls whether one or multiple rows can be selected. |
1219
+ | `rowAriaLabel?` | `(rowData: Record<PropertyKey, unknown>) => string` | Derives the accessible label for a row's selection checkbox from its data. When omitted, the checkbox falls back to a positional label (e.g. "Select row 3"). |
1220
+ | `selectAllScope?` | `"page" \| "view"` | Determines which rows are affected by the header checkbox. - "page": rows on the current paginated page - "view": all rows in the current filtered and sorted view For virtual scrolling, "page" resolves to the complete current view because virtual scrolling does not have logical pages. |
1221
+ | `selectOnRowClick?` | `boolean` | Whether clicking the row itself changes selection. Off by default so that clicking a row to interact with its content (a link, a button, an editable cell) never silently discards the current selection. Set this to true to also select rows via a plain click, in addition to checkboxes or application code. |
1222
+ | `showCheckboxes?` | `boolean` | Displays the built-in checkbox selection column. |
1223
+ | `showSelectAll?` | `boolean` | Displays a select-all checkbox in the selection-column header. Only applies to multiple-selection mode. |
1224
+
1225
+ **Used by:** [`GridSelectableDirective`](grid.md#gridselectabledirective), [`ListViewSelectableDirective`](list-view.md#listviewselectabledirective), [`TreeViewSelectableDirective`](tree-view.md#treeviewselectabledirective)
1226
+
1227
+ ## `SortableOptions`
1228
+
1229
+ Interface.
1230
+
1231
+ ### Properties
1232
+
1233
+ | Name | Type | Description |
1234
+ | --- | --- | --- |
1235
+ | `allowUnsort?` | `boolean` | Whether a third click on a sorted column clears its sort. |
1236
+ | `enabled?` | `boolean` | Whether sorting is active. On unless set to `false`; options replace earlier ones. |
1237
+ | `mode?` | `"single" \| "multiple"` | Whether one or several columns can be sorted at once. |
1238
+ | `showIndices?` | `boolean` | Whether sort order indices are displayed on header cells. |
1239
+
1240
+ **Used by:** [`GridSortableDirective`](grid.md#gridsortabledirective)
1241
+
1242
+ ## `AggregateFunction`
1243
+
1244
+ Type alias.
1245
+
1246
+ ```typescript
1247
+ type AggregateFunction = "sum" | "avg" | "count" | "min" | "max" | "custom";
1248
+ ```
1249
+
1250
+ **Used by:** [`ColumnConfig`](grid.md#columnconfig), [`GridColumnComponent`](grid.md#gridcolumncomponent)
1251
+
1252
+ ## `ColumnFormat`
1253
+
1254
+ Type alias.
1255
+
1256
+ A date format string, for `date` columns, or a formatter function, for any column.
1257
+
1258
+ ```typescript
1259
+ type ColumnFormat = string | ColumnFormatFunction;
1260
+ ```
1261
+
1262
+ **Used by:** [`ColumnConfig`](grid.md#columnconfig), [`GridColumnComponent`](grid.md#gridcolumncomponent)
1263
+
1264
+ ## `ColumnFormatFunction`
1265
+
1266
+ Type alias.
1267
+
1268
+ Formats a cell's value for display. Written in method form so a formatter typed for the column's own
1269
+ value (`(value: number) => string`) is accepted.
1270
+
1271
+ ```typescript
1272
+ type ColumnFormatFunction = { format(value: unknown, row: Record<PropertyKey, unknown>, column: Column): string; }["format"];
1273
+ ```
1274
+
1275
+ **Used by:** [`ColumnFormat`](grid.md#columnformat)
1276
+
1277
+ ## `ColumnKind`
1278
+
1279
+ Type alias.
1280
+
1281
+ ```typescript
1282
+ type ColumnKind = "command" | "data";
1283
+ ```
1284
+
1285
+ **Used by:** [`ColumnConfig`](grid.md#columnconfig)
1286
+
1287
+ ## `ColumnSortComparator`
1288
+
1289
+ Type alias.
1290
+
1291
+ Compares two cell values for sorting: negative, zero or positive, as for `Array.prototype.sort`.
1292
+
1293
+ ```typescript
1294
+ type ColumnSortComparator = { compare(left: unknown, right: unknown): number }["compare"];
1295
+ ```
1296
+
1297
+ **Used by:** [`ColumnConfig`](grid.md#columnconfig), [`GridColumnComponent`](grid.md#gridcolumncomponent)
1298
+
1299
+ ## `GridCancelReason`
1300
+
1301
+ Type alias.
1302
+
1303
+ Why an edit is being canceled: `"command"` for the Cancel button or `cancel()` in a template, `"escape"` for
1304
+ the Escape key, `"switch"` when another edit or the add row starts, `"removed"` when the edited row left the
1305
+ data or the view. A `"removed"` cancel can't be prevented: the row is gone.
1306
+
1307
+ ```typescript
1308
+ type GridCancelReason = "command" | "escape" | "removed" | "switch";
1309
+ ```
1310
+
1311
+ **Used by:** [`GridCancelEvent`](grid.md#gridcancelevent)
1312
+
1313
+ ## `GridColumnLockedPosition`
1314
+
1315
+ Type alias.
1316
+
1317
+ ```typescript
1318
+ type GridColumnLockedPosition = "left" | "right";
1319
+ ```
1320
+
1321
+ **Used by:** [`ColumnConfig`](grid.md#columnconfig), [`GridColumnComponent`](grid.md#gridcolumncomponent), [`GridCommandColumnComponent`](grid.md#gridcommandcolumncomponent)
1322
+
1323
+ ## `GridEditOperation`
1324
+
1325
+ Type alias.
1326
+
1327
+ ```typescript
1328
+ type GridEditOperation = "create" | "update";
1329
+ ```
1330
+
1331
+ **Used by:** [`GridEditFormContext`](grid.md#grideditformcontext), [`GridEditSession`](grid.md#grideditsession), [`GridSaveOperation`](grid.md#gridsaveoperation)
1332
+
1333
+ ## `GridEditSchemaFactory`
1334
+
1335
+ Type alias.
1336
+
1337
+ Builds the Signal Forms schema for the row being edited. `T` is the row type, untyped unless you give one.
1338
+
1339
+ ```typescript
1340
+ type GridEditSchemaFactory<T extends object = Record<PropertyKey, unknown>> = ( context: GridEditFormContext<T> ) => SchemaOrSchemaFn<T> | null | undefined;
1341
+ ```
1342
+
1343
+ **Used by:** [`EditableOptions`](grid.md#editableoptions)
1344
+
1345
+ ## `GridKeySelector`
1346
+
1347
+ Type alias.
1348
+
1349
+ The field holding a row's key, or a function returning it.
1350
+
1351
+ ```typescript
1352
+ type GridKeySelector<TData, TKey = unknown> = string | Selector<TData, TKey> | null;
1353
+ ```
1354
+
1355
+ **Used by:** [`GridComponent`](grid.md#gridcomponent), [`GridSelectableDirective`](grid.md#gridselectabledirective)
1356
+
1357
+ ## `GridRowClass`
1358
+
1359
+ Type alias.
1360
+
1361
+ Returns the classes to add to the data row that shows the given item.
1362
+
1363
+ ```typescript
1364
+ type GridRowClass<TData> = (data: TData) => GridRowClassValue;
1365
+ ```
1366
+
1367
+ **Used by:** [`GridComponent`](grid.md#gridcomponent)
1368
+
1369
+ ## `GridRowClassValue`
1370
+
1371
+ Type alias.
1372
+
1373
+ The classes a `GridRowClass` function adds to a data row. Nullish values add nothing.
1374
+
1375
+ ```typescript
1376
+ type GridRowClassValue = string | readonly string[] | null | undefined;
1377
+ ```
1378
+
1379
+ **Used by:** [`GridRowClass`](grid.md#gridrowclass)
1380
+
1381
+ ## `GridRowCommand`
1382
+
1383
+ Type alias.
1384
+
1385
+ A row command button: Edit, Remove, Save or Cancel.
1386
+
1387
+ ```typescript
1388
+ type GridRowCommand = "cancel" | "edit" | "remove" | "save";
1389
+ ```
1390
+
1391
+ **Used by:** [`EditableOptions`](grid.md#editableoptions)
1392
+
1393
+ ## `GridSaveOperation`
1394
+
1395
+ Type alias.
1396
+
1397
+ ```typescript
1398
+ type GridSaveOperation = GridEditOperation;
1399
+ ```
1400
+
1401
+ **Used by:** [`GridCancelEvent`](grid.md#gridcancelevent), [`GridSaveEvent`](grid.md#gridsaveevent)
1402
+
1403
+ ## `GridStateFilterValue`
1404
+
1405
+ Type alias.
1406
+
1407
+ ```typescript
1408
+ type GridStateFilterValue = boolean | number | string | null | readonly (boolean | number | string | null)[];
1409
+ ```
1410
+
1411
+ **Used by:** [`GridStateFilterDescriptor`](grid.md#gridstatefilterdescriptor)
1412
+
1413
+ ## `GridStateLoadStatus`
1414
+
1415
+ Type alias.
1416
+
1417
+ The outcome of loading a state. `rejected-invalid`: the state isn't a well-formed `GridState` (a missing
1418
+ array, a duplicate column id, an unknown filter operator, a page size or width that isn't a positive
1419
+ number), and nothing was changed.
1420
+
1421
+ ```typescript
1422
+ type GridStateLoadStatus = "applied" | "empty" | "rejected-invalid" | "rejected-schema" | "rejected-version";
1423
+ ```
1424
+
1425
+ **Used by:** [`GridStateLoadResult`](grid.md#gridstateloadresult)
1426
+
1427
+ ## `GridStateVersion`
1428
+
1429
+ Type alias.
1430
+
1431
+ ```typescript
1432
+ type GridStateVersion = 1;
1433
+ ```
1434
+
1435
+ **Used by:** [`GridState`](grid.md#gridstate)
1436
+
1437
+ ## `ResizeMethod`
1438
+
1439
+ Type alias.
1440
+
1441
+ ```typescript
1442
+ type ResizeMethod = "auto" | "fitView" | number;
1443
+ ```
1444
+
1445
+ **Used by:** [`GridComponent`](grid.md#gridcomponent)