@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
package/docs/fieldset.md CHANGED
@@ -190,28 +190,9 @@ The component renders a native `<fieldset>`, which has the implicit `group` role
190
190
 
191
191
  ## API
192
192
 
193
- Everything below is imported from `@nanahoshi/mona-ui/fieldset`.
193
+ Everything below is imported from `@nanahoshi/mona-ui/fieldset`. Each name links to its reference page, with every input, output, property and method.
194
194
 
195
- ### `FieldsetComponent`
196
-
197
- **Selector:** `mona-fieldset`
198
-
199
- #### Inputs
200
-
201
- | Name | Type | Default | Description |
202
- | --- | --- | --- | --- |
203
- | `aria-label` | `string` | `""` | Accessible name of the fieldset when it has no legend. |
204
- | `aria-labelledby` | `string` | `""` | Id of the element that labels the fieldset when it has no legend. |
205
- | `class` | `string` | `""` | Additional CSS classes merged onto the rendered `<fieldset>` element via `tailwind-merge`. |
206
- | `disabled` | `boolean` | `false` | Whether the fieldset and the Mona UI form controls inside it are disabled, including nested fieldsets. Reflected as the native `disabled` attribute on the rendered `<fieldset>`, which also covers native controls. A signal form field inside stays enabled in the form model, so its validation keeps running. |
207
- | `legend` | `string` | `""` | The legend text of the fieldset. Shown in the top border as a labelled notch. Ignored when `monaFieldsetLegendTemplate` is provided. |
208
- | `name` | `string \| undefined` | `undefined` | The `name` attribute reflected onto the rendered `<fieldset>` element. |
209
- | `rounded` | `"full" \| "large" \| "medium" \| "none" \| "small"` | `"medium"` | Border-radius preset applied to the fieldset and its legend. |
210
-
211
- ### `FieldsetLegendTemplateDirective`
212
-
213
- Replaces the string `legend` with projected content inside the `<legend>` element. When this template is present, no
214
- default legend styling is applied — the consumer is responsible for all visual treatment. The template has no context
215
- variables.
216
-
217
- **Selector:** `ng-template[monaFieldsetLegendTemplate]`
195
+ | Name | Kind | Description |
196
+ | --- | --- | --- |
197
+ | [`FieldsetComponent`](api/fieldset.md#fieldsetcomponent) | Component | |
198
+ | [`FieldsetLegendTemplateDirective`](api/fieldset.md#fieldsetlegendtemplatedirective) | Directive | Replaces the string `legend` with projected content inside the `<legend>` element. |
@@ -195,102 +195,22 @@ The rest of the grid's keys are on [Grid Overview](grid.md#keyboard).
195
195
 
196
196
  ## API
197
197
 
198
- Everything below is imported from `@nanahoshi/mona-ui/grid`.
198
+ Everything below is imported from `@nanahoshi/mona-ui/grid`. Each name links to its reference page, with every input, output, property and method.
199
199
 
200
- ### `GridReorderableDirective`
201
-
202
- **Selector:** `mona-grid[monaGridReorderable]`
203
-
204
- #### Inputs
205
-
206
- | Name | Type | Default | Description |
207
- | --- | --- | --- | --- |
208
- | `monaGridReorderable` | `ReorderableOptions \| ""` | `""` | Enables column reordering via drag and drop. Pass a `ReorderableOptions` object to configure it explicitly. |
209
-
210
- #### Outputs
211
-
212
- | Name | Type | Description |
213
- | --- | --- | --- |
214
- | `columnReorder` | `ColumnReorderEvent` | Emitted when a column is dropped into a new position. Call `preventDefault()` on the event to cancel the reorder. |
215
-
216
- ### `GridResizableDirective`
217
-
218
- **Selector:** `mona-grid[monaGridResizable]`
219
-
220
- #### Inputs
221
-
222
- | Name | Type | Default | Description |
223
- | --- | --- | --- | --- |
224
- | `monaGridResizable` | `ResizableOptions \| ""` | `""` | Enables column resizing on the grid. Pass a `ResizableOptions` object to configure it explicitly. |
225
-
226
- #### Outputs
227
-
228
- | Name | Type | Description |
229
- | --- | --- | --- |
230
- | `columnResize` | `ColumnResizeEvent` | Emitted when a column resize completes, with the column and its old and new widths. |
231
-
232
- ### `ColumnReorderEvent`
233
-
234
- **Extends:** `PreventableEvent`
235
-
236
- #### Properties
237
-
238
- | Name | Type |
200
+ | Name | Kind |
239
201
  | --- | --- |
240
- | `column` (read-only) | `Column` |
241
- | `newIndex` (read-only) | `number` |
242
- | `oldIndex` (read-only) | `number` |
202
+ | [`GridReorderableDirective`](api/grid.md#gridreorderabledirective) | Directive |
203
+ | [`GridResizableDirective`](api/grid.md#gridresizabledirective) | Directive |
204
+ | [`ColumnReorderEvent`](api/grid.md#columnreorderevent) | Class |
243
205
 
244
206
  ### Types
245
207
 
246
- #### `ColumnResizeEvent`
247
-
248
- | Name | Type |
249
- | --- | --- |
250
- | `column` | `Column` |
251
- | `newWidth` | `number` |
252
- | `oldWidth` | `number` |
253
-
254
- #### `ReorderableOptions`
255
-
256
- | Name | Type | Description |
257
- | --- | --- | --- |
258
- | `enabled` | `boolean` | Whether column reordering is active. On unless set to `false`; options replace earlier ones. |
259
-
260
- #### `ResizableOptions`
261
-
262
- | Name | Type | Description |
263
- | --- | --- | --- |
264
- | `enabled` | `boolean` | Whether column resizing is active. On unless set to `false`; options replace earlier ones. |
265
-
266
- #### `GridColumnLockedPosition`
267
-
268
- ```typescript
269
- type GridColumnLockedPosition = "left" | "right";
270
- ```
271
-
272
- #### `ResizeMethod`
273
-
274
- ```typescript
275
- type ResizeMethod = "auto" | "fitView" | number;
276
- ```
277
-
278
- #### `PreventableEvent`
279
-
280
- From `@nanahoshi/mona-ui/common`.
281
-
282
- **Type parameters:** `E extends Event = Event`
283
-
284
- | Name | Type | Description |
285
- | --- | --- | --- |
286
- | `originalEvent` (read-only) | `E \| undefined` | The DOM event that caused this one, when there is one. |
287
- | `type` (read-only) | `string \| undefined` | A name for the kind of event, when the component that emits it sets one. |
288
-
289
- **Methods**
290
-
291
- | Signature | Description |
208
+ | Type | Kind |
292
209
  | --- | --- |
293
- | `isDefaultPrevented(): boolean` | Whether `preventDefault()` was called. |
294
- | `preventDefault(): void` | Cancels what the event announces, such as opening or closing a popup, or closing a dialog. |
210
+ | [`ColumnResizeEvent`](api/grid.md#columnresizeevent) | Interface |
211
+ | [`ReorderableOptions`](api/grid.md#reorderableoptions) | Interface |
212
+ | [`ResizableOptions`](api/grid.md#resizableoptions) | Interface |
213
+ | [`GridColumnLockedPosition`](api/grid.md#gridcolumnlockedposition) | Type alias |
214
+ | [`ResizeMethod`](api/grid.md#resizemethod) | Type alias |
295
215
 
296
- **Documented elsewhere:** [`Column`](grid.md)
216
+ **Related types:** [`Column`](api/grid.md#column), [`PreventableEvent`](api/common.md#preventableevent)
@@ -276,300 +276,38 @@ The add row works the same way. `Enter` and `Escape` are left to an input method
276
276
 
277
277
  ## API
278
278
 
279
- Everything below is imported from `@nanahoshi/mona-ui/grid`.
279
+ Everything below is imported from `@nanahoshi/mona-ui/grid`. Each name links to its reference page, with every input, output, property and method.
280
280
 
281
- ### `GridCommandColumnComponent`
282
-
283
- **Selector:** `mona-grid-command-column`
284
-
285
- #### Inputs
286
-
287
- | Name | Type | Default | Description |
288
- | --- | --- | --- | --- |
289
- | `hidden` | `boolean` | `false` | Whether this command column is hidden from the rendered grid. |
290
- | `locked` | `boolean` | `false` | Whether this command column remains fixed while the grid scrolls horizontally. |
291
- | `lockedPosition` | `GridColumnLockedPosition` | `"left"` | The side of the grid where this locked command column is fixed. |
292
- | `maxWidth` | `number \| null` | `null` | The maximum width of this command column in pixels. |
293
- | `minWidth` | `number \| null` | `null` | The minimum width of this command column in pixels. |
294
- | `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. |
295
- | `stateKey` | `string \| null` | `"commands"` | A stable key used to persist state for this command column. |
296
- | `title` | `string \| null` | `null` | The title displayed in the command column header. Without one, the localized `commandColumnTitle` message ("Commands"). |
297
- | `width` | `number \| null` | `160` | The fixed width of this command column in pixels. |
298
-
299
- ### `GridEditableDirective`
300
-
301
- **Selector:** `mona-grid[monaGridEditable]`
302
- **Type parameters:** `T extends object = Record<PropertyKey, unknown>`
303
-
304
- #### Inputs
305
-
306
- | Name | Type | Default | Description |
307
- | --- | --- | --- | --- |
308
- | `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`. |
309
- | `newRowFactory` | `() => T` | — | Creates the initial data object used by the add-row editor. |
310
-
311
- #### Outputs
312
-
313
- | Name | Type | Description |
314
- | --- | --- | --- |
315
- | `add` | `GridAddEvent` | Emitted before the grid displays the new-row editor. |
316
- | `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. |
317
- | `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. |
318
- | `edit` | `GridEditEvent` | Emitted before a row enters edit mode. |
319
- | `remove` | `GridRemoveEvent` | Emitted when a row remove command is triggered, with the row's `key` and `index`. |
320
- | `rowEdit` | `RowEditEvent` | Emitted after a changed row is saved (row mode only). |
321
- | `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()`. |
322
-
323
- #### Methods
324
-
325
- | Signature | Description |
326
- | --- | --- |
327
- | `endEdit(): void` | Closes the current edit without reporting it, such as after a `save` that was prevented to save on the server has finished. |
328
-
329
- ### `GridEditCommandDirective`
330
-
331
- **Selector:** `button[monaGridEditCommand]`
332
-
333
- #### Inputs
334
-
335
- | Name | Type | Default | Description |
336
- | --- | --- | --- | --- |
337
- | `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. |
338
-
339
- ### `GridRemoveCommandDirective`
340
-
341
- **Selector:** `button[monaGridRemoveCommand]`
342
-
343
- #### Inputs
344
-
345
- | Name | Type | Default | Description |
346
- | --- | --- | --- | --- |
347
- | `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`. |
348
-
349
- ### `GridAddCommandDirective`
350
-
351
- **Selector:** `button[monaGridAddCommand]`
352
-
353
- ### `GridCancelCommandDirective`
354
-
355
- **Selector:** `button[monaGridCancelCommand]`
356
-
357
- ### `GridEditTemplateDirective`
358
-
359
- **Selector:** `ng-template[monaGridEditTemplate]`
360
-
361
- ### `GridSaveCommandDirective`
362
-
363
- **Selector:** `button[monaGridSaveCommand]`
364
-
365
- ### `CellEditEvent`
366
-
367
- **Extends:** `PreventableEvent`
368
-
369
- #### Properties
370
-
371
- | Name | Type |
372
- | --- | --- |
373
- | `field` (read-only) | `string` |
374
- | `newValue` (read-only) | `unknown` |
375
- | `oldValue` (read-only) | `unknown` |
376
- | `rowData` (read-only) | `Record<PropertyKey, unknown>` |
377
- | `session` (read-only) | `GridEditSession` |
378
-
379
- ### `GridAddEvent`
380
-
381
- **Extends:** `PreventableEvent`
382
-
383
- #### Properties
384
-
385
- | Name | Type |
386
- | --- | --- |
387
- | `rowData` (read-only) | `Record<PropertyKey, unknown>` |
388
- | `session` (read-only) | `GridEditSession` |
389
-
390
- ### `GridCancelEvent`
391
-
392
- **Extends:** `PreventableEvent`
393
-
394
- #### Properties
395
-
396
- | Name | Type |
397
- | --- | --- |
398
- | `operation` (read-only) | `GridSaveOperation` |
399
- | `reason` (read-only) | `GridCancelReason` |
400
- | `rowData` (read-only) | `Record<PropertyKey, unknown>` |
401
- | `session` (read-only) | `GridEditSession` |
402
-
403
- ### `GridEditEvent`
404
-
405
- **Extends:** `PreventableEvent`
406
-
407
- #### Properties
408
-
409
- | Name | Type |
410
- | --- | --- |
411
- | `rowData` (read-only) | `Record<PropertyKey, unknown>` |
412
- | `session` (read-only) | `GridEditSession` |
413
-
414
- ### `GridRemoveEvent`
415
-
416
- **Extends:** `PreventableEvent`
417
-
418
- #### Properties
419
-
420
- | Name | Type | Description |
281
+ | Name | Kind | Description |
421
282
  | --- | --- | --- |
422
- | `index` (read-only) | `number` | The row's position in the grid's `data`, or -1 when it is no longer there. |
423
- | `key` (read-only) | `unknown` | The row's `rowKey` value, or the data item when the grid has no `rowKey`. |
424
- | `rowData` (read-only) | `Record<PropertyKey, unknown>` | The data item of the row being removed. |
425
-
426
- ### `GridSaveEvent`
427
-
428
- `T` is the row type, which a typed `schema` or `newRowFactory` on `monaGridEditable` sets.
429
-
430
- **Type parameters:** `T extends object = Record<PropertyKey, unknown>`
431
- **Extends:** `PreventableEvent`
432
-
433
- #### Properties
434
-
435
- | Name | Type |
436
- | --- | --- |
437
- | `operation` (read-only) | `GridSaveOperation` |
438
- | `originalRowData` (read-only) | `T \| null` |
439
- | `rowData` (read-only) | `T` |
440
- | `session` (read-only) | `GridEditSession` |
441
-
442
- ### `RowEditEvent`
443
-
444
- **Extends:** `PreventableEvent`
445
-
446
- #### Properties
447
-
448
- | Name | Type |
449
- | --- | --- |
450
- | `originalRowData` (read-only) | `Record<PropertyKey, unknown> \| null` |
451
- | `rowData` (read-only) | `Record<PropertyKey, unknown>` |
452
- | `session` (read-only) | `GridEditSession` |
283
+ | [`GridCommandColumnComponent`](api/grid.md#gridcommandcolumncomponent) | Component | |
284
+ | [`GridEditableDirective`](api/grid.md#grideditabledirective) | Directive | |
285
+ | [`GridEditCommandDirective`](api/grid.md#grideditcommanddirective) | Directive | |
286
+ | [`GridRemoveCommandDirective`](api/grid.md#gridremovecommanddirective) | Directive | |
287
+ | [`GridAddCommandDirective`](api/grid.md#gridaddcommanddirective) | Directive | |
288
+ | [`GridCancelCommandDirective`](api/grid.md#gridcancelcommanddirective) | Directive | |
289
+ | [`GridEditTemplateDirective`](api/grid.md#gridedittemplatedirective) | Directive | |
290
+ | [`GridSaveCommandDirective`](api/grid.md#gridsavecommanddirective) | Directive | |
291
+ | [`CellEditEvent`](api/grid.md#celleditevent) | Class | |
292
+ | [`GridAddEvent`](api/grid.md#gridaddevent) | Class | |
293
+ | [`GridCancelEvent`](api/grid.md#gridcancelevent) | Class | |
294
+ | [`GridEditEvent`](api/grid.md#grideditevent) | Class | |
295
+ | [`GridRemoveEvent`](api/grid.md#gridremoveevent) | Class | |
296
+ | [`GridSaveEvent`](api/grid.md#gridsaveevent) | Class | `T` is the row type, which a typed `schema` or `newRowFactory` on `monaGridEditable` sets. |
297
+ | [`RowEditEvent`](api/grid.md#roweditevent) | Class | |
453
298
 
454
299
  ### Types
455
300
 
456
- #### `EditableOptions`
457
-
458
- `T` is the row type, which a typed `schema` sets.
459
-
460
- **Type parameters:** `T extends object = Record<PropertyKey, unknown>`
461
-
462
- | Name | Type | Description |
301
+ | Type | Kind | Description |
463
302
  | --- | --- | --- |
464
- | `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. |
465
- | `enabled?` | `boolean` | Whether editing is active. On unless set to `false`; options replace earlier ones. |
466
- | `mode` | `"cell" \| "row"` | Whether editing commits per cell or per row. |
467
- | `schema?` | `GridEditSchemaFactory<T>` | Builds a Signal Forms validation schema for the row being edited. |
468
-
469
- #### `GridEditFormContext`
470
-
471
- What a schema factory is told about the edit. `T` is the row type, untyped unless you give one.
472
-
473
- **Type parameters:** `T extends object = Record<PropertyKey, unknown>`
474
-
475
- | Name | Type |
476
- | --- | --- |
477
- | `column` (read-only) | `Column \| null` |
478
- | `field` (read-only) | `string \| null` |
479
- | `isNew` (read-only) | `boolean` |
480
- | `mode` (read-only) | `"cell" \| "row"` |
481
- | `operation` (read-only) | `GridEditOperation` |
482
- | `originalRowData` (read-only) | `T \| null` |
483
- | `rowData` (read-only) | `T` |
484
-
485
- #### `GridEditSession`
486
-
487
- | Name | Type | Description |
488
- | --- | --- | --- |
489
- | `column` (read-only) | `Column \| null` | The column currently being edited, in cell mode. |
490
- | `field` (read-only) | `string \| null` | The field name currently being edited, in cell mode. |
491
- | `form` (read-only) | `FieldTree<Record<PropertyKey, unknown>>` | The Signal Forms field tree backing the row being edited. |
492
- | `isNew` (read-only) | `boolean` | Whether this session represents a new row being added. |
493
- | `mode` (read-only) | `"cell" \| "row"` | The active editing mode. |
494
- | `model` (read-only) | `WritableSignal<Record<PropertyKey, unknown>>` | The signal holding the row's current edited values. |
495
- | `operation` (read-only) | `GridEditOperation` | `"create"` or `"update"`. |
496
- | `originalRowData` (read-only) | `Record<PropertyKey, unknown> \| null` | The row's data before editing began. |
497
- | `row` (read-only) | `Row \| null` | The internal row wrapper being edited. |
498
- | `rowUid` (read-only) | `string \| null` | The stable identifier of the row being edited. |
499
-
500
- #### `GridEditTemplateContext`
501
-
502
- | Name | Type | Description |
503
- | --- | --- | --- |
504
- | `cancel` (read-only) | `() => void` | Cancels the current edit. |
505
- | `column` (read-only) | `string` | The field name of the column being edited. |
506
- | `commit` (read-only) | `() => void` | Commits the current edit. |
507
- | `dataField` (read-only) | `string` | Same as `column`; the field name being edited. |
508
- | `dataItem` (read-only) | `Record<PropertyKey, unknown>` | The row's current edited values. |
509
- | `errors` (read-only) | `readonly ValidationError.WithFieldTree[]` | Validation errors for this field. |
510
- | `field` (read-only) | `FieldTree<unknown>` | The Signal Forms field for this column. |
511
- | `form` (read-only) | `GridEditSession["form"]` | The row's full Signal Forms field tree. |
512
- | `invalid` (read-only) | `boolean` | Whether this field currently fails validation. |
513
- | `isNew` (read-only) | `boolean` | Whether this is a new row being added. |
514
- | `session` (read-only) | `GridEditSession` | The full edit session for this row. |
515
- | `setValue` (read-only) | `(value: unknown) => void` | Sets this field's value. |
516
- | `touched` (read-only) | `boolean` | Whether this field has been touched. |
517
- | `value` (read-only) | `unknown` | This field's current value. |
518
-
519
- #### `GridCancelReason`
520
-
521
- Why an edit is being canceled: `"command"` for the Cancel button or `cancel()` in a template, `"escape"` for
522
- the Escape key, `"switch"` when another edit or the add row starts, `"removed"` when the edited row left the
523
- data or the view. A `"removed"` cancel can't be prevented: the row is gone.
524
-
525
- ```typescript
526
- type GridCancelReason = "command" | "escape" | "removed" | "switch";
527
- ```
528
-
529
- #### `GridEditOperation`
530
-
531
- ```typescript
532
- type GridEditOperation = "create" | "update";
533
- ```
534
-
535
- #### `GridEditSchemaFactory`
536
-
537
- Builds the Signal Forms schema for the row being edited. `T` is the row type, untyped unless you give one.
538
-
539
- ```typescript
540
- type GridEditSchemaFactory<T extends object = Record<PropertyKey, unknown>> = ( context: GridEditFormContext<T> ) => SchemaOrSchemaFn<T> | null | undefined;
541
- ```
542
-
543
- #### `GridRowCommand`
544
-
545
- A row command button: Edit, Remove, Save or Cancel.
546
-
547
- ```typescript
548
- type GridRowCommand = "cancel" | "edit" | "remove" | "save";
549
- ```
550
-
551
- #### `GridSaveOperation`
552
-
553
- ```typescript
554
- type GridSaveOperation = GridEditOperation;
555
- ```
556
-
557
- #### `PreventableEvent`
558
-
559
- From `@nanahoshi/mona-ui/common`.
560
-
561
- **Type parameters:** `E extends Event = Event`
562
-
563
- | Name | Type | Description |
564
- | --- | --- | --- |
565
- | `originalEvent` (read-only) | `E \| undefined` | The DOM event that caused this one, when there is one. |
566
- | `type` (read-only) | `string \| undefined` | A name for the kind of event, when the component that emits it sets one. |
567
-
568
- **Methods**
569
-
570
- | Signature | Description |
571
- | --- | --- |
572
- | `isDefaultPrevented(): boolean` | Whether `preventDefault()` was called. |
573
- | `preventDefault(): void` | Cancels what the event announces, such as opening or closing a popup, or closing a dialog. |
574
-
575
- **Documented elsewhere:** [`Column`](grid.md), [`GridColumnLockedPosition`](grid-columns.md), [`Row`](grid.md)
303
+ | [`EditableOptions`](api/grid.md#editableoptions) | Interface | `T` is the row type, which a typed `schema` sets. |
304
+ | [`GridEditFormContext`](api/grid.md#grideditformcontext) | Interface | What a schema factory is told about the edit. |
305
+ | [`GridEditSession`](api/grid.md#grideditsession) | Interface | |
306
+ | [`GridEditTemplateContext`](api/grid.md#gridedittemplatecontext) | Interface | |
307
+ | [`GridCancelReason`](api/grid.md#gridcancelreason) | Type alias | Why an edit is being canceled: `"command"` for the Cancel button or `cancel()` in a template, `"escape"` for the Escape key, `"switch"` when another edit or the add row starts, `"removed"` when the edited row left the data or the view. |
308
+ | [`GridEditOperation`](api/grid.md#grideditoperation) | Type alias | |
309
+ | [`GridEditSchemaFactory`](api/grid.md#grideditschemafactory) | Type alias | Builds the Signal Forms schema for the row being edited. |
310
+ | [`GridRowCommand`](api/grid.md#gridrowcommand) | Type alias | A row command button: Edit, Remove, Save or Cancel. |
311
+ | [`GridSaveOperation`](api/grid.md#gridsaveoperation) | Type alias | |
312
+
313
+ **Related types:** [`Column`](api/grid.md#column), [`GridColumnLockedPosition`](api/grid.md#gridcolumnlockedposition), [`PreventableEvent`](api/common.md#preventableevent), [`Row`](api/grid.md#row)
@@ -180,59 +180,20 @@ The rest of the grid's keys are on [Grid Overview](grid.md#keyboard).
180
180
 
181
181
  ## API
182
182
 
183
- Everything below is imported from `@nanahoshi/mona-ui/grid`.
183
+ Everything below is imported from `@nanahoshi/mona-ui/grid`. Each name links to its reference page, with every input, output, property and method.
184
184
 
185
- ### `GridGroupableDirective`
186
-
187
- **Selector:** `mona-grid[monaGridGroupable]`
188
-
189
- #### Inputs
190
-
191
- | Name | Type | Default | Description |
192
- | --- | --- | --- | --- |
193
- | `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. |
194
- | `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`. |
195
-
196
- #### Outputs
197
-
198
- | Name | Type | Description |
199
- | --- | --- | --- |
200
- | `groupChange` | `GroupDescriptor[]` | Emitted when `group` changes. |
201
-
202
- ### `GridFooterTemplateDirective`
203
-
204
- **Selector:** `ng-template[monaGridFooterTemplate]`
205
-
206
- ### `GridGroupFooterTemplateDirective`
207
-
208
- **Selector:** `ng-template[monaGridGroupFooterTemplate]`
185
+ | Name | Kind |
186
+ | --- | --- |
187
+ | [`GridGroupableDirective`](api/grid.md#gridgroupabledirective) | Directive |
188
+ | [`GridFooterTemplateDirective`](api/grid.md#gridfootertemplatedirective) | Directive |
189
+ | [`GridGroupFooterTemplateDirective`](api/grid.md#gridgroupfootertemplatedirective) | Directive |
209
190
 
210
191
  ### Types
211
192
 
212
- #### `GroupableOptions`
213
-
214
- | Name | Type | Description |
215
- | --- | --- | --- |
216
- | `enabled` | `boolean` | Whether grouping is active. |
217
- | `showFooter` | `boolean` | Whether a group's aggregate footer also shows while the group is collapsed; expanded groups always show it. |
218
-
219
- #### `GroupDescriptor`
220
-
221
- | Name | Type |
193
+ | Type | Kind |
222
194
  | --- | --- |
223
- | `dir?` | `SortDirection` |
224
- | `field` | `string` |
195
+ | [`GroupableOptions`](api/grid.md#groupableoptions) | Interface |
196
+ | [`GroupDescriptor`](api/grid.md#groupdescriptor) | Interface |
197
+ | [`AggregateFunction`](api/grid.md#aggregatefunction) | Type alias |
225
198
 
226
- #### `AggregateFunction`
227
-
228
- ```typescript
229
- type AggregateFunction = "sum" | "avg" | "count" | "min" | "max" | "custom";
230
- ```
231
-
232
- #### `SortDirection`
233
-
234
- From `@nanahoshi/mona-ui/query`.
235
-
236
- ```typescript
237
- type SortDirection = "asc" | "desc";
238
- ```
199
+ **Related types:** [`SortDirection`](api/query.md#sortdirection)
package/docs/grid-rows.md CHANGED
@@ -214,84 +214,20 @@ The rest of the grid's keys are on [Grid Overview](grid.md#keyboard).
214
214
 
215
215
  ## API
216
216
 
217
- Everything below is imported from `@nanahoshi/mona-ui/grid`.
217
+ Everything below is imported from `@nanahoshi/mona-ui/grid`. Each name links to its reference page, with every input, output, property and method.
218
218
 
219
- ### `GridRowReorderableDirective`
220
-
221
- **Selector:** `mona-grid[monaGridRowReorderable]`
222
-
223
- #### Inputs
224
-
225
- | Name | Type | Default | Description |
226
- | --- | --- | --- | --- |
227
- | `monaGridRowReorderable` | `RowReorderableOptions \| ""` | `""` | Enables row reordering via the reorder-handle column. Pass a `RowReorderableOptions` object to configure it explicitly. |
228
-
229
- #### Outputs
230
-
231
- | Name | Type | Description |
232
- | --- | --- | --- |
233
- | `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. |
234
-
235
- ### `GridDetailTemplateDirective`
236
-
237
- **Selector:** `ng-template[monaGridDetailTemplate]`
238
-
239
- ### `RowReorderEvent`
240
-
241
- **Type parameters:** `TData extends Record<PropertyKey, unknown> = Record<PropertyKey, unknown>`
242
- **Extends:** `PreventableEvent`
243
-
244
- #### Properties
245
-
246
- | Name | Type |
219
+ | Name | Kind |
247
220
  | --- | --- |
248
- | `currentIndex` (read-only) | `number` |
249
- | `currentPageIndex` (read-only) | `number` |
250
- | `previousIndex` (read-only) | `number` |
251
- | `previousPageIndex` (read-only) | `number` |
252
- | `reorderedData` (read-only) | `readonly TData[]` |
253
- | `rowData` (read-only) | `TData` |
221
+ | [`GridRowReorderableDirective`](api/grid.md#gridrowreorderabledirective) | Directive |
222
+ | [`GridDetailTemplateDirective`](api/grid.md#griddetailtemplatedirective) | Directive |
223
+ | [`RowReorderEvent`](api/grid.md#rowreorderevent) | Class |
254
224
 
255
225
  ### Types
256
226
 
257
- #### `RowReorderableOptions`
258
-
259
- | Name | Type | Description |
260
- | --- | --- | --- |
261
- | `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. |
262
- | `enabled?` | `boolean` | Enables row reordering. |
263
- | `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" |
264
-
265
- #### `GridRowClass`
266
-
267
- Returns the classes to add to the data row that shows the given item.
268
-
269
- ```typescript
270
- type GridRowClass<TData> = (data: TData) => GridRowClassValue;
271
- ```
272
-
273
- #### `GridRowClassValue`
274
-
275
- The classes a `GridRowClass` function adds to a data row. Nullish values add nothing.
276
-
277
- ```typescript
278
- type GridRowClassValue = string | readonly string[] | null | undefined;
279
- ```
280
-
281
- #### `PreventableEvent`
282
-
283
- From `@nanahoshi/mona-ui/common`.
284
-
285
- **Type parameters:** `E extends Event = Event`
286
-
287
- | Name | Type | Description |
227
+ | Type | Kind | Description |
288
228
  | --- | --- | --- |
289
- | `originalEvent` (read-only) | `E \| undefined` | The DOM event that caused this one, when there is one. |
290
- | `type` (read-only) | `string \| undefined` | A name for the kind of event, when the component that emits it sets one. |
291
-
292
- **Methods**
229
+ | [`RowReorderableOptions`](api/grid.md#rowreorderableoptions) | Interface | |
230
+ | [`GridRowClass`](api/grid.md#gridrowclass) | Type alias | Returns the classes to add to the data row that shows the given item. |
231
+ | [`GridRowClassValue`](api/grid.md#gridrowclassvalue) | Type alias | The classes a `GridRowClass` function adds to a data row. |
293
232
 
294
- | Signature | Description |
295
- | --- | --- |
296
- | `isDefaultPrevented(): boolean` | Whether `preventDefault()` was called. |
297
- | `preventDefault(): void` | Cancels what the event announces, such as opening or closing a popup, or closing a dialog. |
233
+ **Related types:** [`PreventableEvent`](api/common.md#preventableevent)