@nanahoshi/mona-ui 0.27.0 → 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 +413 -0
  140. package/docs/sidebar-state.md +401 -0
  141. package/docs/sidebar.md +32 -876
  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 +76 -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/list-view.md CHANGED
@@ -344,241 +344,34 @@ Give every list view a name with `aria-label` or `aria-labelledby`. A paged list
344
344
 
345
345
  ## API
346
346
 
347
- Everything below is imported from `@nanahoshi/mona-ui/list-view`.
348
-
349
- ### `ListViewComponent`
350
-
351
- **Selector:** `mona-list-view`
352
- **Type parameters:** `T = unknown`
353
-
354
- #### Inputs
355
-
356
- | Name | Type | Default | Description |
357
- | --- | --- | --- | --- |
358
- | `aria-label` | `string` | `""` | Accessible name for the list view's `listbox` element. Describe what the list represents. |
359
- | `aria-labelledby` | `string` | `""` | Id of the element that names the list view's list, as an alternative to `aria-label`. |
360
- | `class` | `string` | `""` | Additional CSS classes merged onto the host element via `tailwind-merge`. |
361
- | `disabledBy` | `string \| Predicate<T> \| null \| undefined` | `""` | Property name or predicate that marks an item as disabled. Disabled items can't be selected, activated or reached by typeahead. |
362
- | `height` | `string \| number` | `"100%"` | Sets the height of the list view. With virtual scrolling, the viewport takes this height, so a percentage needs a parent with a height; `""` sizes the viewport to its items instead. |
363
- | `items` | `Iterable<T>` | `[]` | Collection of items to render. |
364
- | `listClass` | `string` | `""` | Sets the classes of the inner UL element. |
365
- | `listItemClass` | `string` | `""` | Sets the classes of the list items. |
366
- | `listItemStyle` | `Partial<CSSStyleDeclaration>` | `{}` | Sets the style of the list items. |
367
- | `listStyle` | `Partial<CSSStyleDeclaration>` | `{}` | Sets the style of the list. |
368
- | `loading` | `boolean` | `false` | Marks the list as loading: it gets `aria-busy` and a polite "Loading" status. |
369
- | `maxHeight` | `string \| number` | `""` | Sets the maximum height of the list. |
370
- | `maxWidth` | `string \| number` | `""` | Sets the maximum width of the list. |
371
- | `pagerAriaLabel` | `string` | `""` | Accessible name of the pager. Defaults to "{name} pagination" from the list view's `aria-label`, so two paged list views on a page have different landmarks. |
372
- | `rounded` | `"large" \| "medium" \| "none" \| "small"` | `"medium"` | Border-radius preset applied to the component. |
373
- | `size` | `"large" \| "medium" \| "small"` | `"medium"` | Size preset controlling the component's dimensions. |
374
- | `textField` | `ListKeySelector<T, string> \| undefined` | `""` | Property name or accessor used to derive the display text from a data item. |
375
- | `width` | `string \| number` | `"100%"` | Sets the width of the list view. |
376
-
377
- #### Outputs
378
-
379
- | Name | Type | Description |
380
- | --- | --- | --- |
381
- | `itemActivate` | `T` | Emitted with the data item when the user activates an enabled item by clicking it or pressing Enter on it. Fires whether or not the list view is selectable. |
382
- | `scrollBottom` | `Event` | Emitted once each time the list is scrolled to its end, when the list view isn't paged. Scrolling away and back emits again, as does reaching the new end after more items are added. |
383
-
384
- ### `ListViewPageableDirective`
385
-
386
- **Selector:** `mona-list-view[monaListViewPageable]`
387
-
388
- #### Inputs
389
-
390
- | Name | Type | Default | Description |
391
- | --- | --- | --- | --- |
392
- | `monaListViewPageable` | `Partial<PagerSettings> \| ""` | `""` | Enables pagination. An empty string enables pagination with default settings (`type: "numeric"`, `previousNext: true`, `pageSize: 10`, `pageSizeValues: [5, 10, 20, 25, 50, 100]`, `visiblePages: 5`); pass an object to override any field. Has no visible effect while `monaListViewVirtualScroll` is enabled — see Pagination and virtualization don't combine. |
393
- | `page` (two-way) | `number` | `1` | The current page. Supports two-way binding via `[(page)]`; updates when the user navigates the pager and can be set to navigate programmatically. |
394
- | `pageSize` (two-way) | `number \| undefined` | `undefined` | Items per page. Supports two-way binding via `[(pageSize)]`: it updates when the user picks a size in the pager. While unset, the options' `pageSize` applies. A new size keeps the first item of the current page in view. |
395
-
396
- #### Outputs
397
-
398
- | Name | Type | Description |
399
- | --- | --- | --- |
400
- | `pageChange` | `number` | Emitted when `page` changes. |
401
- | `pageSizeChange` | `number \| undefined` | Emitted when `pageSize` changes. |
402
- | `pageSizeSelect` | `PageSizeChangeEvent` | Emitted when the user picks a page size, before it is applied. Call `preventDefault()` on the event to keep the current size. |
403
-
404
- ### `ListViewSelectableDirective`
405
-
406
- **Selector:** `mona-list-view[monaListViewSelectable]`
407
- **Type parameters:** `T`, `K = unknown`
408
-
409
- #### Inputs
410
-
411
- | Name | Type | Default | Description |
412
- | --- | --- | --- | --- |
413
- | `monaListViewSelectable` | `Partial<SelectableOptions> \| ""` | `""` | Enables selection. An empty string enables single selection with default settings; pass an object to configure `mode` (`"single"` or `"multiple"`), `toggleable`, and `checkboxes`. |
414
- | `selectBy` | `ListKeySelector<T, K> \| undefined` | `""` | Property name or accessor used to derive the selection key from a data item. When omitted, the data item itself is used as the key. |
415
- | `selectedKeys` | `Iterable<K>` | `[]` | The selection, expressed as keys rather than items. Bind `[(selectedKeys)]` to keep it in sync. |
416
-
417
- #### Outputs
418
-
419
- | Name | Type | Description |
420
- | --- | --- | --- |
421
- | `selectedKeysChange` | `K[]` | Emitted with the selected keys when the user selects or deselects an item. Not emitted for keys set through `selectedKeys`. |
422
-
423
- ### `ListViewGroupableDirective`
424
-
425
- **Selector:** `mona-list-view[monaListViewGroupable]`
426
- **Type parameters:** `T`, `K = T`
427
-
428
- #### Inputs
429
-
430
- | Name | Type | Default | Description |
431
- | --- | --- | --- | --- |
432
- | `groupBy` | `ListKeySelector<T, K> \| undefined` | `""` | Property name or accessor used to derive the group key from a data item. |
433
- | `monaListViewGroupable` | `GroupableOptions<T, K> \| ""` | `""` | Enables grouping. An empty string enables grouping with default settings; pass an object to configure `headerOrder`, `headerText`, `orderBy`, and `orderByDirection`. |
434
-
435
- ### `ListViewItemTemplateDirective`
347
+ Everything below is imported from `@nanahoshi/mona-ui/list-view`. Each name links to its reference page, with every input, output, property and method.
436
348
 
437
- Template for each item of a list view. The data item is the template's implicit value (`let-item`). Bind the list
438
- view's items to `monaListViewItemTemplateOf` to type it; without it, the item is `any` in templates.
439
-
440
- **Selector:** `ng-template[monaListViewItemTemplate]`
441
- **Type parameters:** `T = any`
442
-
443
- #### Inputs
444
-
445
- | Name | Type | Default | Description |
446
- | --- | --- | --- | --- |
447
- | `monaListViewItemTemplateOf` | `Iterable<T> \| null \| undefined` | `null` | The list view's items, used only to type the template's item. Optional. |
448
-
449
- #### Template context
450
-
451
- | Name | Type | Description |
349
+ | Name | Kind | Description |
452
350
  | --- | --- | --- |
453
- | `$implicit` | `T` | The data item (`let-item`), or the group's value (`let-group`). |
454
-
455
- ### `ListViewNavigableDirective`
456
-
457
- **Selector:** `mona-list-view[monaListViewNavigable]`
458
- **Type parameters:** `T`
459
-
460
- #### Inputs
461
-
462
- | Name | Type | Default | Description |
463
- | --- | --- | --- | --- |
464
- | `monaListViewNavigable` | `Partial<NavigableOptions> \| ""` | `""` | Configures keyboard navigation, which is on without the directive. An empty string keeps the defaults (`enabled: true`, `mode: "select"`, `wrap: false`); pass an object to override any field. |
465
-
466
- ### `ListViewVirtualScrollDirective`
467
-
468
- **Selector:** `mona-list-view[monaListViewVirtualScroll]`
469
- **Type parameters:** `T`
470
-
471
- #### Inputs
472
-
473
- | Name | Type | Default | Description |
474
- | --- | --- | --- | --- |
475
- | `monaListViewVirtualScroll` (required) | `VirtualScrollOptions` | — | Enables virtual scrolling. `height` is the fixed row height, in pixels, used to measure the viewport; when omitted, a `28`px row height is assumed. |
476
-
477
- ### `ListViewFooterTemplateDirective`
478
-
479
- **Selector:** `ng-template[monaListViewFooterTemplate]`
480
-
481
- ### `ListViewGroupHeaderTemplateDirective`
482
-
483
- Template for the header of each group. The group's value is the template's implicit value (`let-group`); see
484
- `ListViewGroupHeaderTemplateContext`. The context isn't type-checked, so templates written against the value's own
485
- type keep compiling.
486
-
487
- **Selector:** `ng-template[monaListViewGroupHeaderTemplate]`
488
-
489
- ### `ListViewHeaderTemplateDirective`
490
-
491
- **Selector:** `ng-template[monaListViewHeaderTemplate]`
492
-
493
- ### `ListViewNoDataTemplateDirective`
494
-
495
- **Selector:** `ng-template[monaListViewNoDataTemplate]`
351
+ | [`ListViewComponent`](api/list-view.md#listviewcomponent) | Component | |
352
+ | [`ListViewPageableDirective`](api/list-view.md#listviewpageabledirective) | Directive | |
353
+ | [`ListViewSelectableDirective`](api/list-view.md#listviewselectabledirective) | Directive | |
354
+ | [`ListViewGroupableDirective`](api/list-view.md#listviewgroupabledirective) | Directive | |
355
+ | [`ListViewItemTemplateDirective`](api/list-view.md#listviewitemtemplatedirective) | Directive | Template for each item of a list view. |
356
+ | [`ListViewNavigableDirective`](api/list-view.md#listviewnavigabledirective) | Directive | |
357
+ | [`ListViewVirtualScrollDirective`](api/list-view.md#listviewvirtualscrolldirective) | Directive | |
358
+ | [`ListViewFooterTemplateDirective`](api/list-view.md#listviewfootertemplatedirective) | Directive | |
359
+ | [`ListViewGroupHeaderTemplateDirective`](api/list-view.md#listviewgroupheadertemplatedirective) | Directive | Template for the header of each group. |
360
+ | [`ListViewHeaderTemplateDirective`](api/list-view.md#listviewheadertemplatedirective) | Directive | |
361
+ | [`ListViewNoDataTemplateDirective`](api/list-view.md#listviewnodatatemplatedirective) | Directive | |
496
362
 
497
363
  ### Types
498
364
 
499
- #### `ListViewGroupHeaderTemplateContext`
500
-
501
- The context of a `monaListViewGroupHeaderTemplate`: the group's value (what `groupBy` returned for its items), as
502
- `let-group`.
503
-
504
- **Type parameters:** `G = unknown`
505
-
506
- | Name | Type |
507
- | --- | --- |
508
- | `$implicit` (read-only) | `G` |
509
-
510
- #### `ListViewItemTemplateContext`
511
-
512
- The context of a `monaListViewItemTemplate`: the data item, as `let-item`.
513
-
514
- **Type parameters:** `T = unknown`
515
-
516
- | Name | Type | Description |
517
- | --- | --- | --- |
518
- | `$implicit` (read-only) | `T` | The data item (`let-item`), or the group's value (`let-group`). |
519
-
520
- #### `NavigableOptions`
521
-
522
- | Name | Type | Description |
523
- | --- | --- | --- |
524
- | `enabled` | `boolean` | Whether keyboard navigation is active. |
525
- | `mode` | `NavigationMode` | Whether navigation only moves a visual highlight (`"highlight"`) or also changes selection (`"select"`). |
526
- | `wrap` | `boolean` | Whether navigating past the last (or before the first) item cycles to the other end. |
527
-
528
- #### `PagerSettings`
529
-
530
- | Name | Type | Description |
365
+ | Type | Kind | Description |
531
366
  | --- | --- | --- |
532
- | `enabled` | `boolean` | Whether the pager is active. |
533
- | `firstLast` | `boolean` | Whether first/last page buttons are shown. |
534
- | `pageSize` | `number` | Number of items shown per page. |
535
- | `pageSizeValues` | `number[] \| boolean` | Page size options shown in the pager, or `false`/`true` to hide/show a default set. |
536
- | `previousNext` | `boolean` | Whether previous/next page buttons are shown. |
537
- | `showInfo` | `boolean` | Whether a page summary (e.g. "1-10 of 50") is shown. |
538
- | `type` | `"numeric" \| "input"` | Whether pages are selected via numbered buttons or a page-number input. |
539
- | `visiblePages` | `number` | Number of numeric page buttons shown at once, when `type` is `"numeric"`. |
540
-
541
- #### `VirtualScrollOptions`
542
-
543
- | Name | Type | Description |
544
- | --- | --- | --- |
545
- | `enabled` | `boolean` | Whether virtual scrolling is active. |
546
- | `height?` | `number` | Fixed row height, in pixels, used to measure the virtual scroll viewport. |
547
-
548
- #### `GroupableOptions`
549
-
550
- ```typescript
551
- type GroupableOptions<T = unknown, R = unknown> = { enabled?: boolean; headerOrder?: "asc" | "desc"; headerText?: (value: unknown) => string; } & OrderByOptions<T, R>;
552
- ```
553
-
554
- #### `NavigationMode`
555
-
556
- Whether arrow keys only highlight an item, or select it as well.
557
-
558
- ```typescript
559
- type NavigationMode = "highlight" | "select";
560
- ```
561
-
562
- #### `OrderByOptions`
563
-
564
- How the items within each group are ordered. Leave both out to keep their order.
565
-
566
- ```typescript
567
- type OrderByOptions<T, R> = | { orderBy?: never; orderByDirection?: never } | { orderBy: string | Selector<T, R>; orderByDirection?: "asc" | "desc"; };
568
- ```
569
-
570
- #### `SelectableOptions`
571
-
572
- ```typescript
573
- type SelectableOptions = | { checkboxes?: boolean; enabled?: boolean; mode: "single"; toggleable?: boolean; } | { checkboxes?: boolean; enabled?: boolean; mode: "multiple"; };
574
- ```
575
-
576
- #### `ListKeySelector`
577
-
578
- From `@nanahoshi/mona-ui/list`.
579
-
580
- ```typescript
581
- type ListKeySelector<T, K = unknown> = string | Selector<T, K> | null;
582
- ```
583
-
584
- **Documented elsewhere:** [`PageSizeChangeEvent`](pager.md)
367
+ | [`ListViewGroupHeaderTemplateContext`](api/list-view.md#listviewgroupheadertemplatecontext) | Interface | The context of a `monaListViewGroupHeaderTemplate`: the group's value (what `groupBy` returned for its items), as `let-group`. |
368
+ | [`ListViewItemTemplateContext`](api/list-view.md#listviewitemtemplatecontext) | Interface | The context of a `monaListViewItemTemplate`: the data item, as `let-item`. |
369
+ | [`NavigableOptions`](api/list-view.md#navigableoptions) | Interface | |
370
+ | [`PagerSettings`](api/list-view.md#pagersettings) | Interface | |
371
+ | [`VirtualScrollOptions`](api/list-view.md#virtualscrolloptions) | Interface | |
372
+ | [`GroupableOptions`](api/list-view.md#groupableoptions) | Type alias | |
373
+ | [`NavigationMode`](api/list-view.md#navigationmode) | Type alias | Whether arrow keys only highlight an item, or select it as well. |
374
+ | [`OrderByOptions`](api/list-view.md#orderbyoptions) | Type alias | How the items within each group are ordered. |
375
+ | [`SelectableOptions`](api/list-view.md#selectableoptions) | Type alias | |
376
+
377
+ **Related types:** [`ListKeySelector`](api/list.md#listkeyselector), [`PageSizeChangeEvent`](api/pager.md#pagesizechangeevent)
package/docs/menubar.md CHANGED
@@ -72,7 +72,7 @@ mona-menubar
72
72
  └── mona-menu-separator — a horizontal divider
73
73
  ```
74
74
 
75
- Alternatively, a `mona-menu` can be given an `items` collection directly (see the API section) instead of projecting item components. When `items` is non-empty, it takes precedence over projected content.
75
+ Alternatively, a `mona-menu` can be given an [`items`](api/menubar.md#menucomponent) collection directly instead of projecting item components. When `items` is non-empty, it takes precedence over projected content.
76
76
 
77
77
  ### Template directives
78
78
 
@@ -385,175 +385,29 @@ Set `[disabled]` on the whole `<mona-menubar>` to disable every menu at once, or
385
385
 
386
386
  ## API
387
387
 
388
- Everything below is imported from `@nanahoshi/mona-ui/menubar`.
388
+ Everything below is imported from `@nanahoshi/mona-ui/menubar`. Each name links to its reference page, with every input, output, property and method.
389
389
 
390
- ### `MenubarComponent`
391
-
392
- **Selector:** `mona-menubar`
393
-
394
- #### Inputs
395
-
396
- | Name | Type | Default | Description |
397
- | --- | --- | --- | --- |
398
- | `aria-label` | `string` | `""` | ARIA label for the menubar. |
399
- | `aria-labelledby` | `string` | `""` | ARIA labelledby for the menubar. |
400
- | `class` | `string` | `""` | Additional CSS classes to apply to the menubar, merged with the computed theme classes. |
401
- | `disabled` | `boolean` | `false` | Sets the disabled state of menubar. |
402
- | `rounded` | `"large" \| "medium" \| "none" \| "small"` | `"medium"` | Sets the rounded style of the menubar. |
403
- | `size` | `"large" \| "medium" \| "small"` | `"medium"` | Sets the size of the menubar. |
404
-
405
- #### Outputs
406
-
407
- | Name | Type | Description |
408
- | --- | --- | --- |
409
- | `menuItemClick` | `PopupMenuItemClickEvent` | Emits when a menu item is clicked. |
410
-
411
- ### `MenuCheckboxItemComponent`
412
-
413
- **Selector:** `mona-menu-checkbox-item`
414
- **Extends:** `PopupMenuCheckboxItemComponent`
415
-
416
- #### Inputs
417
-
418
- | Name | Type | Default | Description |
419
- | --- | --- | --- | --- |
420
- | `checked` (two-way) | `boolean` | `false` | The checked state of the menu item. Activating the item toggles it (unless its `menuClick` is prevented) and emits `checkedChange`, so it works with or without a two-way binding. |
421
- | `disabled` | `boolean` | `false` | Sets the disabled state of the menu item. |
422
- | `label` | `string` | `""` | The text of the menu item. |
423
- | `value` | `unknown` | — | A value that identifies the item. It's the `value` of the item's `menuClick` events. |
424
-
425
- #### Outputs
426
-
427
- | Name | Type | Description |
390
+ | Name | Kind | Description |
428
391
  | --- | --- | --- |
429
- | `checkedChange` | `boolean` | Emitted when `checked` changes. |
430
- | `menuClick` | `PopupMenuItemClickEvent` | The click event of the menu item. Emits when the menu item is selected by keyboard or mouse. |
431
-
432
- ### `MenuItemComponent`
433
-
434
- **Selector:** `mona-menu-item`
435
- **Extends:** `PopupMenuItemComponent`
436
-
437
- #### Inputs
438
-
439
- | Name | Type | Default | Description |
440
- | --- | --- | --- | --- |
441
- | `disabled` | `boolean` | `false` | Sets the disabled state of the menu item. |
442
- | `label` | `string` | `""` | The text of the menu item. |
443
- | `value` | `unknown` | — | A value that identifies the item. It's the `value` of the item's `menuClick` events, so handlers don't depend on the label's text. |
444
-
445
- #### Outputs
446
-
447
- | Name | Type | Description |
448
- | --- | --- | --- |
449
- | `menuClick` | `PopupMenuItemClickEvent` | The click event of the menu item. Emits when the menu item is selected by keyboard or mouse. |
450
-
451
- ### `MenuRadioItemComponent`
452
-
453
- **Selector:** `mona-menu-radio-item`
454
- **Extends:** `PopupMenuRadioItemComponent`
455
-
456
- #### Inputs
457
-
458
- | Name | Type | Default | Description |
459
- | --- | --- | --- | --- |
460
- | `disabled` | `boolean` | `false` | Sets the disabled state of the menu item. |
461
- | `label` | `string` | `""` | The text of the menu item. |
462
- | `value` (required) | `string` | — | The value of the radio item. |
463
-
464
- #### Outputs
465
-
466
- | Name | Type | Description |
467
- | --- | --- | --- |
468
- | `menuClick` | `PopupMenuItemClickEvent` | The click event of the menu item. Emits when the menu item is selected by keyboard or mouse, before the radio group selects it. Preventing it keeps the group's value and the menu open. |
469
-
470
- ### `MenuComponent`
471
-
472
- A top-level menu. Its `text` is displayed on the menubar; its projected items (or `items` input) become the popup
473
- content.
474
-
475
- **Selector:** `mona-menu`
476
-
477
- #### Inputs
478
-
479
- | Name | Type | Default | Description |
480
- | --- | --- | --- | --- |
481
- | `disabled` | `boolean` | `false` | Sets the menu as disabled. |
482
- | `items` | `Iterable<MenuItem>` | `[]` | Sets the items of the menu. If provided, it will override the menu items defined by the menu item components. |
483
- | `text` | `string` | `""` | The text of the menu. |
484
-
485
- ### `MenuRadioGroupComponent`
486
-
487
- **Selector:** `mona-menu-radio-group`
488
- **Extends:** `PopupMenuRadioGroupComponent`
489
-
490
- #### Inputs
491
-
492
- | Name | Type | Default | Description |
493
- | --- | --- | --- | --- |
494
- | `title` | `string` | `""` | The title of the radio group. |
495
- | `value` (two-way) | `string` | `""` | The value of the selected radio item. |
496
-
497
- #### Outputs
498
-
499
- | Name | Type | Description |
500
- | --- | --- | --- |
501
- | `valueChange` | `string` | Emitted when `value` changes. |
502
-
503
- ### `MenuGroupComponent`
504
-
505
- **Selector:** `mona-menu-group`
506
- **Extends:** `PopupMenuGroupComponent`
507
-
508
- #### Inputs
509
-
510
- | Name | Type | Default | Description |
511
- | --- | --- | --- | --- |
512
- | `title` | `string` | — | Sets the title of the menu group. |
513
-
514
- ### `MenuSeparatorComponent`
515
-
516
- Renders a horizontal visual divider between items.
517
-
518
- **Selector:** `mona-menu-separator`
519
- **Extends:** `PopupMenuSeparatorComponent`
520
-
521
- ### `MenuGroupTemplateDirective`
522
-
523
- Customizes a group header's content.
524
-
525
- **Selector:** `ng-template[monaMenuGroupTemplate]`
526
- **Extends:** `PopupMenuGroupTemplateDirective`
527
-
528
- ### `MenuIconTemplateDirective`
529
-
530
- **Selector:** `ng-template[monaMenuIconTemplate]`
531
-
532
- ### `MenuItemIconTemplateDirective`
533
-
534
- **Selector:** `ng-template[monaMenuItemIconTemplate]`
535
- **Extends:** `PopupMenuIconTemplateDirective`
536
-
537
- ### `MenuItemShortcutTemplateDirective`
538
-
539
- **Selector:** `ng-template[monaMenuItemShortcutTemplate]`
540
- **Extends:** `PopupMenuShortcutTemplateDirective`
541
-
542
- ### `MenuItemTextTemplateDirective`
543
-
544
- **Selector:** `ng-template[monaMenuItemTextTemplate]`
545
- **Extends:** `PopupMenuTextTemplateDirective`
546
-
547
- ### `MenuTextTemplateDirective`
548
-
549
- **Selector:** `ng-template[monaMenuTextTemplate]`
392
+ | [`MenubarComponent`](api/menubar.md#menubarcomponent) | Component | |
393
+ | [`MenuCheckboxItemComponent`](api/menubar.md#menucheckboxitemcomponent) | Component | |
394
+ | [`MenuItemComponent`](api/menubar.md#menuitemcomponent) | Component | |
395
+ | [`MenuRadioItemComponent`](api/menubar.md#menuradioitemcomponent) | Component | |
396
+ | [`MenuComponent`](api/menubar.md#menucomponent) | Component | A top-level menu. |
397
+ | [`MenuRadioGroupComponent`](api/menubar.md#menuradiogroupcomponent) | Component | |
398
+ | [`MenuGroupComponent`](api/menubar.md#menugroupcomponent) | Component | |
399
+ | [`MenuSeparatorComponent`](api/menubar.md#menuseparatorcomponent) | Component | Renders a horizontal visual divider between items. |
400
+ | [`MenuGroupTemplateDirective`](api/menubar.md#menugrouptemplatedirective) | Directive | Customizes a group header's content. |
401
+ | [`MenuIconTemplateDirective`](api/menubar.md#menuicontemplatedirective) | Directive | |
402
+ | [`MenuItemIconTemplateDirective`](api/menubar.md#menuitemicontemplatedirective) | Directive | |
403
+ | [`MenuItemShortcutTemplateDirective`](api/menubar.md#menuitemshortcuttemplatedirective) | Directive | |
404
+ | [`MenuItemTextTemplateDirective`](api/menubar.md#menuitemtexttemplatedirective) | Directive | |
405
+ | [`MenuTextTemplateDirective`](api/menubar.md#menutexttemplatedirective) | Directive | |
550
406
 
551
407
  ### Types
552
408
 
553
- #### `MenuItemClickEvent`
554
-
555
- ```typescript
556
- type MenuItemClickEvent = PopupMenuItemClickEvent;
557
- ```
409
+ | Type | Kind |
410
+ | --- | --- |
411
+ | [`MenuItemClickEvent`](api/menubar.md#menuitemclickevent) | Type alias |
558
412
 
559
- **Documented elsewhere:** [`MenuItem`](popup-menu.md), [`PopupMenuCheckboxItemComponent`](popup-menu.md), [`PopupMenuGroupComponent`](popup-menu.md), [`PopupMenuGroupTemplateDirective`](popup-menu.md), [`PopupMenuIconTemplateDirective`](popup-menu.md), [`PopupMenuItemClickEvent`](popup-menu.md), [`PopupMenuItemComponent`](popup-menu.md), [`PopupMenuRadioGroupComponent`](popup-menu.md), [`PopupMenuRadioItemComponent`](popup-menu.md), [`PopupMenuSeparatorComponent`](popup-menu.md), [`PopupMenuShortcutTemplateDirective`](popup-menu.md), [`PopupMenuTextTemplateDirective`](popup-menu.md)
413
+ **Related types:** [`MenuItem`](api/popup-menu.md#menuitem), [`PopupMenuCheckboxItemComponent`](api/popup-menu.md#popupmenucheckboxitemcomponent), [`PopupMenuGroupComponent`](api/popup-menu.md#popupmenugroupcomponent), [`PopupMenuGroupTemplateDirective`](api/popup-menu.md#popupmenugrouptemplatedirective), [`PopupMenuIconTemplateDirective`](api/popup-menu.md#popupmenuicontemplatedirective), [`PopupMenuItemClickEvent`](api/popup-menu.md#popupmenuitemclickevent), [`PopupMenuItemComponent`](api/popup-menu.md#popupmenuitemcomponent), [`PopupMenuRadioGroupComponent`](api/popup-menu.md#popupmenuradiogroupcomponent), [`PopupMenuRadioItemComponent`](api/popup-menu.md#popupmenuradioitemcomponent), [`PopupMenuSeparatorComponent`](api/popup-menu.md#popupmenuseparatorcomponent), [`PopupMenuShortcutTemplateDirective`](api/popup-menu.md#popupmenushortcuttemplatedirective), [`PopupMenuTextTemplateDirective`](api/popup-menu.md#popupmenutexttemplatedirective)