@nanahoshi/mona-ui 0.25.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) hide show
  1. package/README.md +2 -0
  2. package/command/package.json +4 -0
  3. package/docs/auto-complete.md +733 -0
  4. package/docs/avatar.md +220 -0
  5. package/docs/breadcrumb.md +320 -0
  6. package/docs/button-group.md +392 -0
  7. package/docs/button.md +256 -0
  8. package/docs/calendar.md +515 -0
  9. package/docs/card.md +292 -0
  10. package/docs/chart.md +4058 -0
  11. package/docs/checkbox.md +374 -0
  12. package/docs/chip.md +339 -0
  13. package/docs/circular-progress-bar.md +287 -0
  14. package/docs/collapsible.md +308 -0
  15. package/docs/color-gradient.md +336 -0
  16. package/docs/color-palette.md +317 -0
  17. package/docs/color-picker.md +387 -0
  18. package/docs/combo-box.md +764 -0
  19. package/docs/command.md +582 -0
  20. package/docs/contextmenu.md +530 -0
  21. package/docs/date-picker.md +251 -0
  22. package/docs/datetime-picker.md +284 -0
  23. package/docs/decimal-textbox.md +260 -0
  24. package/docs/dialog.md +822 -0
  25. package/docs/dropdown-button.md +507 -0
  26. package/docs/dropdown-list.md +779 -0
  27. package/docs/editor.md +374 -0
  28. package/docs/expansion-panel.md +348 -0
  29. package/docs/fieldset.md +217 -0
  30. package/docs/forms.md +162 -0
  31. package/docs/grid.md +2053 -0
  32. package/docs/input.md +197 -0
  33. package/docs/installation.md +54 -0
  34. package/docs/introduction.md +46 -0
  35. package/docs/label.md +340 -0
  36. package/docs/list-box.md +637 -0
  37. package/docs/list-view.md +584 -0
  38. package/docs/menubar.md +559 -0
  39. package/docs/multi-select.md +765 -0
  40. package/docs/notification.md +460 -0
  41. package/docs/numeric-textbox.md +301 -0
  42. package/docs/otp-input.md +539 -0
  43. package/docs/pager.md +513 -0
  44. package/docs/placeholder.md +176 -0
  45. package/docs/popover.md +423 -0
  46. package/docs/popup-menu.md +658 -0
  47. package/docs/popup.md +617 -0
  48. package/docs/progress-bar.md +368 -0
  49. package/docs/radio-button.md +451 -0
  50. package/docs/range-slider.md +367 -0
  51. package/docs/rating.md +518 -0
  52. package/docs/scroll-view.md +375 -0
  53. package/docs/segmented.md +434 -0
  54. package/docs/sheet.md +348 -0
  55. package/docs/sidebar.md +1126 -0
  56. package/docs/skeleton.md +181 -0
  57. package/docs/slider.md +423 -0
  58. package/docs/spinner.md +370 -0
  59. package/docs/split-button.md +522 -0
  60. package/docs/splitter.md +342 -0
  61. package/docs/stepper.md +539 -0
  62. package/docs/switch.md +340 -0
  63. package/docs/tabs.md +542 -0
  64. package/docs/textarea.md +196 -0
  65. package/docs/textbox.md +332 -0
  66. package/docs/theming.md +403 -0
  67. package/docs/time-picker.md +254 -0
  68. package/docs/tooltip-directive.md +340 -0
  69. package/docs/tooltip.md +321 -0
  70. package/docs/tree-view.md +1018 -0
  71. package/docs/window.md +663 -0
  72. package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +1 -1
  73. package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +8 -0
  74. package/fesm2022/nanahoshi-mona-ui-button-group.mjs +1 -1
  75. package/fesm2022/nanahoshi-mona-ui-button.mjs +14 -2
  76. package/fesm2022/nanahoshi-mona-ui-calendar.mjs +5 -2
  77. package/fesm2022/nanahoshi-mona-ui-chart.mjs +108 -22
  78. package/fesm2022/nanahoshi-mona-ui-check-box.mjs +4 -0
  79. package/fesm2022/nanahoshi-mona-ui-chip.mjs +1 -1
  80. package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +4 -0
  81. package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +16 -2
  82. package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +1 -1
  83. package/fesm2022/nanahoshi-mona-ui-command.mjs +924 -0
  84. package/fesm2022/nanahoshi-mona-ui-common.mjs +4 -0
  85. package/fesm2022/nanahoshi-mona-ui-contextmenu.mjs +10 -6
  86. package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +2 -1
  87. package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +2 -1
  88. package/fesm2022/nanahoshi-mona-ui-dialog.mjs +9 -5
  89. package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +9 -5
  90. package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +55 -1
  91. package/fesm2022/nanahoshi-mona-ui-editor.mjs +3 -2
  92. package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +13 -0
  93. package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +5 -0
  94. package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-2tVhD2hK.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-DjNnVxHE.mjs} +2 -2
  95. package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-BAN70Wcn.mjs → nanahoshi-mona-ui-grid-grid-list.component-ihQIKeP-.mjs} +5 -5
  96. package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-C_kCaA5b.mjs → nanahoshi-mona-ui-grid-grid-row.component-BpnybNcs.mjs} +18 -35
  97. package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-BsNfrAHz.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-CYlgfc7c.mjs} +5 -5
  98. package/fesm2022/{nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-CEfVa7eo.mjs → nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-LCzfCYd3.mjs} +4653 -4529
  99. package/fesm2022/nanahoshi-mona-ui-grid.mjs +1 -1
  100. package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +10 -0
  101. package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +1 -0
  102. package/fesm2022/nanahoshi-mona-ui-internal-popup-menu.mjs +168 -0
  103. package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +19 -1
  104. package/fesm2022/nanahoshi-mona-ui-list-box.mjs +14 -0
  105. package/fesm2022/nanahoshi-mona-ui-list-view.mjs +32 -0
  106. package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +10 -0
  107. package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +10 -0
  108. package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +10 -0
  109. package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +10 -0
  110. package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +10 -0
  111. package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +10 -0
  112. package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +10 -0
  113. package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +10 -0
  114. package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +10 -0
  115. package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +10 -0
  116. package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +10 -0
  117. package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +10 -0
  118. package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +10 -0
  119. package/fesm2022/nanahoshi-mona-ui-menubar.mjs +15 -8
  120. package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +8 -5
  121. package/fesm2022/nanahoshi-mona-ui-notification.mjs +9 -0
  122. package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +1 -1
  123. package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +5 -0
  124. package/fesm2022/nanahoshi-mona-ui-pager.mjs +2 -1
  125. package/fesm2022/nanahoshi-mona-ui-popover.mjs +14 -6
  126. package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +48 -183
  127. package/fesm2022/nanahoshi-mona-ui-popup.mjs +16 -0
  128. package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +4 -0
  129. package/fesm2022/nanahoshi-mona-ui-rating.mjs +2 -0
  130. package/fesm2022/nanahoshi-mona-ui-scroll-view.mjs +7 -3
  131. package/fesm2022/nanahoshi-mona-ui-segmented.mjs +2 -1
  132. package/fesm2022/nanahoshi-mona-ui-sheet.mjs +5 -5
  133. package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +1 -1
  134. package/fesm2022/nanahoshi-mona-ui-slider.mjs +8 -3
  135. package/fesm2022/nanahoshi-mona-ui-split-button.mjs +10 -7
  136. package/fesm2022/nanahoshi-mona-ui-stepper.mjs +18 -21
  137. package/fesm2022/nanahoshi-mona-ui-tabs.mjs +11 -8
  138. package/fesm2022/nanahoshi-mona-ui-text-box.mjs +9 -1
  139. package/fesm2022/nanahoshi-mona-ui-theme.mjs +53 -21
  140. package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +2 -1
  141. package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +16 -5
  142. package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +13 -11
  143. package/fesm2022/nanahoshi-mona-ui-window.mjs +12 -5
  144. package/i18n/catalogs/en-US.messages.json +10 -0
  145. package/internal/popup-menu/package.json +4 -0
  146. package/llms.txt +123 -0
  147. package/locales/ar-sa/ar-sa.messages.json +10 -0
  148. package/locales/de-de/de-de.messages.json +10 -0
  149. package/locales/es-es/es-es.messages.json +10 -0
  150. package/locales/fr-fr/fr-fr.messages.json +10 -0
  151. package/locales/id-id/id-id.messages.json +10 -0
  152. package/locales/it-it/it-it.messages.json +10 -0
  153. package/locales/ja-jp/ja-jp.messages.json +10 -0
  154. package/locales/ko-kr/ko-kr.messages.json +10 -0
  155. package/locales/pt-br/pt-br.messages.json +10 -0
  156. package/locales/ru-ru/ru-ru.messages.json +10 -0
  157. package/locales/tr-tr/tr-tr.messages.json +10 -0
  158. package/locales/zh-cn/zh-cn.messages.json +10 -0
  159. package/locales/zh-tw/zh-tw.messages.json +10 -0
  160. package/package.json +9 -1
  161. package/styles.css +12 -2
  162. package/types/nanahoshi-mona-ui-auto-complete.d.ts +1 -1
  163. package/types/nanahoshi-mona-ui-breadcrumb.d.ts +8 -0
  164. package/types/nanahoshi-mona-ui-button.d.ts +12 -0
  165. package/types/nanahoshi-mona-ui-calendar.d.ts +3 -0
  166. package/types/nanahoshi-mona-ui-chart.d.ts +200 -0
  167. package/types/nanahoshi-mona-ui-check-box.d.ts +4 -0
  168. package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +4 -0
  169. package/types/nanahoshi-mona-ui-collapsible.d.ts +10 -0
  170. package/types/nanahoshi-mona-ui-combo-box.d.ts +1 -1
  171. package/types/nanahoshi-mona-ui-command.d.ts +253 -0
  172. package/types/nanahoshi-mona-ui-common.d.ts +17 -1
  173. package/types/nanahoshi-mona-ui-contextmenu.d.ts +5 -2
  174. package/types/nanahoshi-mona-ui-date-picker.d.ts +2 -1
  175. package/types/nanahoshi-mona-ui-datetime-picker.d.ts +2 -1
  176. package/types/nanahoshi-mona-ui-dialog.d.ts +58 -1
  177. package/types/nanahoshi-mona-ui-dropdown-button.d.ts +7 -3
  178. package/types/nanahoshi-mona-ui-dropdowns.d.ts +55 -1
  179. package/types/nanahoshi-mona-ui-editor.d.ts +31 -0
  180. package/types/nanahoshi-mona-ui-expansion-panel.d.ts +13 -0
  181. package/types/nanahoshi-mona-ui-fieldset.d.ts +5 -0
  182. package/types/nanahoshi-mona-ui-grid.d.ts +162 -35
  183. package/types/nanahoshi-mona-ui-i18n.d.ts +144 -1
  184. package/types/nanahoshi-mona-ui-internal-list.d.ts +16 -1
  185. package/types/nanahoshi-mona-ui-internal-popup-menu.d.ts +165 -0
  186. package/types/nanahoshi-mona-ui-internal-tree.d.ts +21 -2
  187. package/types/nanahoshi-mona-ui-internal.d.ts +4 -5
  188. package/types/nanahoshi-mona-ui-label.d.ts +1 -0
  189. package/types/nanahoshi-mona-ui-list-box.d.ts +27 -4
  190. package/types/nanahoshi-mona-ui-list-view.d.ts +34 -1
  191. package/types/nanahoshi-mona-ui-list.d.ts +1 -1
  192. package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +10 -0
  193. package/types/nanahoshi-mona-ui-locales-de-de.d.ts +10 -0
  194. package/types/nanahoshi-mona-ui-locales-es-es.d.ts +10 -0
  195. package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +10 -0
  196. package/types/nanahoshi-mona-ui-locales-id-id.d.ts +10 -0
  197. package/types/nanahoshi-mona-ui-locales-it-it.d.ts +10 -0
  198. package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +10 -0
  199. package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +10 -0
  200. package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +10 -0
  201. package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +10 -0
  202. package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +10 -0
  203. package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +10 -0
  204. package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +10 -0
  205. package/types/nanahoshi-mona-ui-menubar.d.ts +10 -3
  206. package/types/nanahoshi-mona-ui-multi-select.d.ts +3 -3
  207. package/types/nanahoshi-mona-ui-notification.d.ts +9 -0
  208. package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +1 -1
  209. package/types/nanahoshi-mona-ui-otp-input.d.ts +1 -0
  210. package/types/nanahoshi-mona-ui-pager.d.ts +5 -1
  211. package/types/nanahoshi-mona-ui-popover.d.ts +9 -1
  212. package/types/nanahoshi-mona-ui-popup-menu.d.ts +48 -161
  213. package/types/nanahoshi-mona-ui-popup.d.ts +16 -0
  214. package/types/nanahoshi-mona-ui-progress-bar.d.ts +4 -0
  215. package/types/nanahoshi-mona-ui-rating.d.ts +2 -0
  216. package/types/nanahoshi-mona-ui-segmented.d.ts +1 -0
  217. package/types/nanahoshi-mona-ui-sheet.d.ts +1 -1
  218. package/types/nanahoshi-mona-ui-slider.d.ts +2 -0
  219. package/types/nanahoshi-mona-ui-spinner.d.ts +7 -0
  220. package/types/nanahoshi-mona-ui-split-button.d.ts +7 -4
  221. package/types/nanahoshi-mona-ui-stepper.d.ts +11 -2
  222. package/types/nanahoshi-mona-ui-tabs.d.ts +4 -1
  223. package/types/nanahoshi-mona-ui-text-box.d.ts +9 -1
  224. package/types/nanahoshi-mona-ui-time-picker.d.ts +2 -1
  225. package/types/nanahoshi-mona-ui-tooltip.d.ts +10 -2
  226. package/types/nanahoshi-mona-ui-tree-view.d.ts +6 -5
  227. package/types/nanahoshi-mona-ui-window.d.ts +66 -1
@@ -0,0 +1,764 @@
1
+ # Combo Box
2
+
3
+ > A text input that resolves typed text to one item from a collection.
4
+
5
+ Entry point: `@nanahoshi/mona-ui/combo-box`
6
+
7
+ **Selector:** `mona-combo-box`
8
+
9
+ `ComboBoxComponent` is a text input that resolves typed or navigated text to a single selected item from a fixed collection, optionally allowing values that don't match any item.
10
+
11
+ ## Overview
12
+
13
+ Combo Box renders a real text input backed by a popup of matching options, similar to Auto Complete. Unlike Auto Complete, `value` is typed `TData | null` and normally only becomes non-null when the typed or navigated text resolves to one of the items in `data` — free text that doesn't match anything is discarded on commit, unless `allowCustomValue` is enabled.
14
+
15
+ Filtering, grouping, and virtual scrolling are opt-in through companion attribute directives applied to the `<mona-combo-box>` host element, the same pattern used by Dropdown List and Auto Complete:
16
+
17
+ - `monaDropDownFilterable` — narrows the popup's visible options to those matching the typed text.
18
+ - `monaDropDownGroupable` — groups options under a header row.
19
+ - `monaDropDownVirtualScroll` — renders only the options currently in view.
20
+
21
+ **Use Combo Box when:**
22
+
23
+ - The consumer should be able to type or navigate to a value, but the committed value should still resolve to one of the listed options (unless `allowCustomValue` is explicitly enabled).
24
+
25
+ **Use `AutoComplete` instead when:**
26
+
27
+ - Any typed text is an acceptable value — the value never needs to resolve to a specific data item.
28
+
29
+ **Use `DropDownList` instead when:**
30
+
31
+ - The consumer must pick one of a bounded set of options and free-text entry into the value area is not wanted at all.
32
+
33
+ **Use `MultiSelect` instead when:**
34
+
35
+ - More than one value can be selected at once.
36
+
37
+ ## Import & Quick Start
38
+
39
+ ```typescript
40
+ import { ComboBoxComponent } from "@nanahoshi/mona-ui/combo-box";
41
+ ```
42
+
43
+ ```typescript
44
+ protected readonly countries = [
45
+ { id: 1, name: "United States" },
46
+ { id: 2, name: "Canada" },
47
+ { id: 3, name: "Mexico" }
48
+ ];
49
+ protected readonly selectedCountry = signal<{ id: number; name: string } | null>(null);
50
+ ```
51
+
52
+ ```html
53
+
54
+ <mona-combo-box
55
+ [data]="countries"
56
+ textField="name"
57
+ valueField="id"
58
+ placeholder="Select a country"
59
+ [(value)]="selectedCountry">
60
+ </mona-combo-box>
61
+ ```
62
+
63
+ `textField` and `valueField` each accept a property name or an accessor function. `valueField` identifies each item for selection matching and, when `valuePrimitive` is enabled, is also what gets read from and written into `value` instead of the full item — see [Primitive value binding](#primitive-value-binding).
64
+
65
+ ## Anatomy
66
+
67
+ Each structural directive below is an `ng-template` placed as projected content inside `<mona-combo-box>...</mona-combo-box>`. As with Auto Complete, there is no value-template directive — the value area is a plain text input.
68
+
69
+ | Directive | Selector | Template context | Replaces |
70
+ |----------------------------------------|------------------------------------------------|-------------------------------------------------|-------------------------------------------------------------|
71
+ | `DropdownItemTemplateDirective` | `ng-template[monaDropDownItemTemplate]` | `{ $implicit: TData }` (the option's data item) | Each option's default text rendering inside the popup |
72
+ | `DropdownGroupHeaderTemplateDirective` | `ng-template[monaDropDownGroupHeaderTemplate]` | `{ $implicit: group }` | The default group header row, when grouping is enabled |
73
+ | `DropdownHeaderTemplateDirective` | `ng-template[monaDropDownHeaderTemplate]` | None | No default — renders above the option list inside the popup |
74
+ | `DropdownFooterTemplateDirective` | `ng-template[monaDropDownFooterTemplate]` | None | No default — renders below the option list inside the popup |
75
+ | `DropdownNoDataTemplateDirective` | `ng-template[monaDropDownNoDataTemplate]` | None | The popup's default empty-state content |
76
+ | `DropdownPrefixTemplateDirective` | `ng-template[monaDropdownPrefixTemplate]` | None | No default — projected content rendered before the input |
77
+
78
+ ```html
79
+
80
+ <mona-combo-box [data]="countries" textField="name" valueField="id">
81
+ <ng-template monaDropDownItemTemplate let-dataItem>
82
+ <span>{{ dataItem.name }}</span>
83
+ </ng-template>
84
+ </mona-combo-box>
85
+ ```
86
+
87
+ ## Examples
88
+
89
+ ### Filtering
90
+
91
+ `monaDropDownFilterable` narrows the popup's visible options to those matching the typed text.
92
+
93
+ `filtering-example.component.ts`
94
+
95
+ ```typescript
96
+ import { Component, signal } from "@angular/core";
97
+ import { ComboBoxComponent } from "@nanahoshi/mona-ui/combo-box";
98
+ import { DropdownFilterableDirective } from "@nanahoshi/mona-ui/dropdowns";
99
+ import { LabelDirective } from "@nanahoshi/mona-ui/label";
100
+
101
+ interface Country {
102
+ id: number;
103
+ name: string;
104
+ }
105
+
106
+ @Component({
107
+ selector: "app-combo-box-filtering-example",
108
+ imports: [ComboBoxComponent, DropdownFilterableDirective, LabelDirective],
109
+ templateUrl: "./filtering-example.component.html"
110
+ })
111
+ export class ComboBoxFilteringExampleComponent {
112
+ protected readonly countries: Country[] = [
113
+ { id: 1, name: "Argentina" },
114
+ { id: 2, name: "Canada" },
115
+ { id: 3, name: "Germany" },
116
+ { id: 4, name: "Japan" },
117
+ { id: 5, name: "Kenya" },
118
+ { id: 6, name: "Mexico" },
119
+ { id: 7, name: "Norway" }
120
+ ];
121
+ protected readonly country = signal<Country | null>(null);
122
+ }
123
+ ```
124
+
125
+ `filtering-example.component.html`
126
+
127
+ ```html
128
+ <div class="flex max-w-xs flex-col gap-1">
129
+ <label monaLabel for="combo-box-filtering-country">Country</label>
130
+ <mona-combo-box
131
+ inputId="combo-box-filtering-country"
132
+ monaDropDownFilterable
133
+ placeholder="Select a country"
134
+ textField="name"
135
+ valueField="id"
136
+ [data]="countries"
137
+ [showClearButton]="true"
138
+ [(value)]="country" />
139
+ <span aria-live="polite" class="text-sm">Selected: {{ country()?.name ?? "none" }}</span>
140
+ </div>
141
+ ```
142
+
143
+ ### Primitive value binding
144
+
145
+ By default `value` holds the complete selected data item. Set `valuePrimitive` to `true` to have `value` hold the value resolved through `valueField` instead — useful for storing just an id rather than the whole object. Setting `value` to a matching field value (for example, restoring it from a signal forms field) also selects the corresponding item and updates the displayed text to that item's `textField`.
146
+
147
+ `primitive-example.component.ts`
148
+
149
+ ```typescript
150
+ import { Component, signal } from "@angular/core";
151
+ import { ComboBoxComponent } from "@nanahoshi/mona-ui/combo-box";
152
+ import { LabelDirective } from "@nanahoshi/mona-ui/label";
153
+
154
+ @Component({
155
+ selector: "app-combo-box-primitive-example",
156
+ imports: [ComboBoxComponent, LabelDirective],
157
+ templateUrl: "./primitive-example.component.html"
158
+ })
159
+ export class ComboBoxPrimitiveExampleComponent {
160
+ protected readonly sizeCode = signal<string | null>("M");
161
+ protected readonly sizes = [
162
+ { code: "S", label: "Small" },
163
+ { code: "M", label: "Medium" },
164
+ { code: "L", label: "Large" },
165
+ { code: "XL", label: "Extra large" }
166
+ ];
167
+ }
168
+ ```
169
+
170
+ `primitive-example.component.html`
171
+
172
+ ```html
173
+ <div class="flex max-w-xs flex-col gap-1">
174
+ <label monaLabel for="combo-box-primitive-size">Shirt size</label>
175
+ <mona-combo-box
176
+ inputId="combo-box-primitive-size"
177
+ textField="label"
178
+ valueField="code"
179
+ [data]="sizes"
180
+ [valuePrimitive]="true"
181
+ [(value)]="sizeCode" />
182
+ <span aria-live="polite" class="text-sm">Value: {{ sizeCode() ?? "null" }}</span>
183
+ </div>
184
+ ```
185
+
186
+ The value becomes the matching `code` once an item is selected, and `null` again once cleared. `valueField` should resolve to a stable, unique scalar; without it, the item itself is used as the value, which naturally supports primitive data such as `["One", "Two", "Three"]`. Custom values via `allowCustomValue`/`valueAdd` are unaffected — see [Allowing custom values](#allowing-custom-values).
187
+
188
+ ### Allowing custom values
189
+
190
+ `allowCustomValue` lets the consumer commit typed text that doesn't match any item in `data`. When enabled, unmatched text on `Enter` emits `valueAdd` with the typed text instead of writing to `value` — the consumer decides how to handle it, here by adding a new item to `data` and then setting `value`.
191
+
192
+ `custom-values-example.component.ts`
193
+
194
+ ```typescript
195
+ import { Component, signal } from "@angular/core";
196
+ import { ComboBoxComponent } from "@nanahoshi/mona-ui/combo-box";
197
+ import { LabelDirective } from "@nanahoshi/mona-ui/label";
198
+
199
+ interface Tag {
200
+ id: number;
201
+ name: string;
202
+ }
203
+
204
+ @Component({
205
+ selector: "app-combo-box-custom-values-example",
206
+ imports: [ComboBoxComponent, LabelDirective],
207
+ templateUrl: "./custom-values-example.component.html"
208
+ })
209
+ export class ComboBoxCustomValuesExampleComponent {
210
+ protected readonly tag = signal<Tag | null>(null);
211
+ protected readonly tags = signal<Tag[]>([
212
+ { id: 1, name: "Bug" },
213
+ { id: 2, name: "Documentation" },
214
+ { id: 3, name: "Feature" }
215
+ ]);
216
+
217
+ protected addTag(name: string): void {
218
+ const tag: Tag = { id: this.tags().length + 1, name };
219
+ this.tags.update(tags => [...tags, tag]);
220
+ this.tag.set(tag);
221
+ }
222
+ }
223
+ ```
224
+
225
+ `custom-values-example.component.html`
226
+
227
+ ```html
228
+ <div class="flex max-w-xs flex-col gap-1">
229
+ <label monaLabel for="combo-box-custom-values-tag">Tag</label>
230
+ <mona-combo-box
231
+ inputId="combo-box-custom-values-tag"
232
+ placeholder="Pick or type a tag"
233
+ textField="name"
234
+ valueField="id"
235
+ [allowCustomValue]="true"
236
+ [data]="tags()"
237
+ [(value)]="tag"
238
+ (valueAdd)="addTag($event)" />
239
+ <span aria-live="polite" class="text-sm">Selected: {{ tag()?.name ?? "none" }} ({{ tags().length }} tags)</span>
240
+ </div>
241
+ ```
242
+
243
+ ### Signal Forms integration
244
+
245
+ Binding `[formField]` synchronizes `value`, `disabled`, `readonly`, `required`, `invalid`, and `touched` with a signal forms field automatically.
246
+
247
+ `forms-example.component.ts`
248
+
249
+ ```typescript
250
+ import { Component, signal } from "@angular/core";
251
+ import { form, FormField, required } from "@angular/forms/signals";
252
+ import { ComboBoxComponent } from "@nanahoshi/mona-ui/combo-box";
253
+ import { LabelDirective } from "@nanahoshi/mona-ui/label";
254
+
255
+ interface EmployeeModel {
256
+ departmentId: number | null;
257
+ }
258
+
259
+ @Component({
260
+ selector: "app-combo-box-forms-example",
261
+ imports: [ComboBoxComponent, FormField, LabelDirective],
262
+ templateUrl: "./forms-example.component.html"
263
+ })
264
+ export class ComboBoxFormsExampleComponent {
265
+ readonly #model = signal<EmployeeModel>({ departmentId: null });
266
+ protected readonly departments = [
267
+ { id: 1, name: "Engineering" },
268
+ { id: 2, name: "Finance" },
269
+ { id: 3, name: "Marketing" },
270
+ { id: 4, name: "Support" }
271
+ ];
272
+ protected readonly employee = form(this.#model, path => {
273
+ required(path.departmentId);
274
+ });
275
+ }
276
+ ```
277
+
278
+ `forms-example.component.html`
279
+
280
+ ```html
281
+ <div class="flex max-w-xs flex-col gap-1">
282
+ <label monaLabel for="combo-box-forms-department">Department</label>
283
+ <mona-combo-box
284
+ aria-describedby="combo-box-forms-department-hint"
285
+ inputId="combo-box-forms-department"
286
+ textField="name"
287
+ valueField="id"
288
+ [data]="departments"
289
+ [formField]="employee.departmentId"
290
+ [valuePrimitive]="true" />
291
+ <p id="combo-box-forms-department-hint" class="text-sm">Required.</p>
292
+ @if (employee.departmentId().touched() && employee.departmentId().invalid()) {
293
+ <p class="text-error text-sm" role="alert">Choose a department.</p>
294
+ }
295
+ </div>
296
+ ```
297
+
298
+ ### Grouping
299
+
300
+ `monaDropDownGroupable` groups options under a header row, driven by `groupBy`.
301
+
302
+ ```html
303
+
304
+ <mona-combo-box [data]="countries" textField="name" valueField="id" monaDropDownGroupable groupBy="region"></mona-combo-box>
305
+ ```
306
+
307
+ ### Disabled, readonly, loading, and required states
308
+
309
+ `disabled` renders the control with reduced visual emphasis and removes pointer interaction. `readonly` prevents value changes while preserving the visual state. `loading` shows a loading indicator in place of the clear button and prevents interaction while an operation is in progress. `required` marks the field for form validation and affects the invalid state once the control is touched.
310
+
311
+ ```html
312
+
313
+ <mona-combo-box
314
+ [data]="countries"
315
+ textField="name"
316
+ valueField="id"
317
+ [disabled]="isDisabled()"
318
+ [readonly]="isReadonly()"
319
+ [loading]="isLoading()"
320
+ [required]="true"
321
+ [showClearButton]="true">
322
+ </mona-combo-box>
323
+ ```
324
+
325
+ ### Virtual scrolling
326
+
327
+ `monaDropDownVirtualScroll` renders only the options currently in view, for large collections.
328
+
329
+ ```html
330
+
331
+ <mona-combo-box
332
+ [data]="countries"
333
+ textField="name"
334
+ valueField="id"
335
+ monaDropDownVirtualScroll
336
+ [monaDropDownVirtualScroll]="{ height: 32 }">
337
+ </mona-combo-box>
338
+ ```
339
+
340
+ ## Behavior
341
+
342
+ ### Enter key resolution
343
+
344
+ Pressing `Enter` resolves the typed or navigated text to a value:
345
+
346
+ 1. If an item was reached by arrow-key navigation, that item is committed.
347
+ 2. Otherwise, if the typed text case-insensitively matches the highlighted item's text, or matches another item in `data`, that item is committed.
348
+ 3. Otherwise, when `allowCustomValue` is `false`, the value is cleared — see [Allowing custom values](#allowing-custom-values).
349
+ 4. Otherwise, when `allowCustomValue` is `true` and there is typed text, `valueAdd` is emitted with that text instead of writing to `value`.
350
+
351
+ ### Clear button requires a matched selection
352
+
353
+ The clear button (`showClearButton`) only appears once the typed or navigated text resolves to a selected item — typing unmatched text does not show it, even though the input is not empty.
354
+
355
+ ### Escape reverts unsaved navigation
356
+
357
+ While the popup is open, `Escape` reverts the displayed text to the currently selected item (or clears it if nothing is selected) and closes the popup, discarding any in-progress typing or arrow-key navigation. While the popup is closed, `Escape` clears the value entirely.
358
+
359
+ ### `Tab` closes without reverting
360
+
361
+ `Tab` closes the popup without committing or reverting in-progress typed text.
362
+ `TODO(owner-review): confirm whether Tab is intended to leave the displayed text out of sync with value, or whether it should behave like Escape.`
363
+
364
+ ### `open` and `close` are cancelable
365
+
366
+ `open` and `close` emit event objects with `preventDefault()` and `isDefaultPrevented()`. Calling `preventDefault()` in an `open` handler stops the popup from opening; calling it in a `close` handler stops the popup from closing. `close`'s event object also exposes `via`, describing what triggered the close attempt.
367
+
368
+ ### `DropdownFieldSelectorType`, `DropdownFieldPredicateType`, and `ListSizeInputType` are not exported
369
+
370
+ `textField`, `valueField`, `itemDisabled`, `popupHeight`, and `popupWidth` are typed with these generic aliases internally, but none of the three types are re-exported from `@nanahoshi/mona-ui`. Inline values (as in the examples above) still type-check structurally; only a standalone typed variable would require an import.
371
+ `TODO(owner-review): confirm whether these types should be added to the public barrel export.`
372
+
373
+ ## Forms Integration
374
+
375
+ `ComboBoxComponent` implements the signal forms `FormValueControl<TValue | null>` interface (`TValue` defaults to `TData`, or the `valueField` type when `valuePrimitive` is `true`) and synchronizes with a field bound through `[formField]` (see [Signal Forms integration](#signal-forms-integration)). It has no `ControlValueAccessor`, but `[(ngModel)]`, `[formControl]` and `formControlName` work too, because Angular binds a control's `value` and `touch` directly when it has no accessor. Prefer `[formField]`, which also hands it `disabled`, `readonly`, `required` and validation state.
376
+
377
+ ## Accessibility
378
+
379
+ ### Keyboard
380
+
381
+ | Key | Action |
382
+ |-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
383
+ | `ArrowDown` / `ArrowUp` | Navigate to the next or previous option and stage it (does not commit until `Enter`). |
384
+ | `Enter` | Resolve the typed or navigated text to a value and close the popup — see [Enter key resolution](#enter-key-resolution). |
385
+ | `Escape` | Revert to the current selection and close the popup, or clear the value if the popup is already closed — see [Escape reverts unsaved navigation](#escape-reverts-unsaved-navigation). |
386
+ | `Tab` | Close the popup — see [`Tab` closes without reverting](#tab-closes-without-reverting). |
387
+ | Any other character | Typed into the input as usual, and re-opens the popup if it is closed. When `monaDropDownFilterable` is applied, also narrows the popup's visible options. |
388
+
389
+ ### Focus
390
+
391
+ The host element itself is not a Tab stop (`tabindex="-1"`); the inner `<input>` element receives focus and is the actual Tab stop. Arrow-key navigation moves an internal highlighted-option pointer, reflected through `aria-activedescendant` on the input, instead of moving DOM focus into the popup.
392
+
393
+ ### ARIA
394
+
395
+ | Element | Attribute | When present | Value |
396
+ |--------------|-------------------------|------------------------------------------------------------------------------------------------|---------------------------------------------------|
397
+ | Host element | `aria-disabled` | `disabled` is `true` | `"true"` |
398
+ | Host element | `aria-invalid` | `invalid` is `true`, or `required` is `true` and the control is `touched` with no value | `"true"` |
399
+ | Host element | `aria-readonly` | `readonly` is `true` | `"true"` |
400
+ | Host element | `aria-required` | `required` is `true` | `"true"` |
401
+ | Input | `role` | Always | `"combobox"` |
402
+ | Input | `aria-autocomplete` | Always | `"list"` |
403
+ | Input | `aria-haspopup` | Always | `"listbox"` |
404
+ | Input | `aria-controls` | Always | The popup listbox's element id |
405
+ | Input | `aria-expanded` | Always | Reflects the popup's open state |
406
+ | Input | `aria-busy` | Always | Reflects the `loading` input |
407
+ | Input | `aria-activedescendant` | While an option is highlighted | The highlighted option's element id |
408
+ | Input | `aria-invalid` | `invalid` is `true`, or `required` is `true` and the control is `touched` with no value | `"true"` |
409
+ | Input | `aria-label` | The `aria-label` input is set, or as a fallback to `placeholder` when `aria-labelledby` is unset | The `aria-label` value, or the `placeholder` value |
410
+ | Input | `aria-labelledby` | The `aria-labelledby` input is set | The `aria-labelledby` value |
411
+ | Input | `aria-describedby` | The `aria-describedby` input is set | The `aria-describedby` value |
412
+
413
+ The input also carries the native HTML `required` attribute (not just `aria-required`) when `required` is `true`, so native browser form validation also observes it.
414
+
415
+ Provide `aria-label` or `aria-labelledby` when `placeholder` does not already identify the input's purpose, or point a `<label for>` or `<mona-label for>` at `inputId`. Provide `aria-describedby` to associate error messages or help text with the input.
416
+
417
+ The control also renders a visually hidden live region that announces the highlighted option's text and position to screen reader users as the consumer types.
418
+
419
+ ## API
420
+
421
+ Everything below is imported from `@nanahoshi/mona-ui/combo-box`, `@nanahoshi/mona-ui/dropdowns`, as noted.
422
+
423
+ ### `ComboBoxComponent`
424
+
425
+ **Selector:** `mona-combo-box`
426
+ **Type parameters:** `TData = unknown`, `TValue = TData`
427
+ **Implements:** `FormValueControl<TValue \| null>`
428
+
429
+ #### Inputs
430
+
431
+ | Name | Type | Default | Description |
432
+ | --- | --- | --- | --- |
433
+ | `allowCustomValue` | `boolean` | `false` | Allows a custom value to be committed when it doesn't match any item in `data`. |
434
+ | `aria-describedby` | `string` | `""` | ID of an element that provides an extended description for the input. |
435
+ | `aria-label` | `string` | `""` | Accessible name for the input. Describe what the combo box represents. Prefer a visible label, linked through `inputId` or `aria-labelledby`; without any of them, browsers fall back to the `placeholder`. |
436
+ | `aria-labelledby` | `string` | `""` | ID of an external element that provides the accessible name for the input. |
437
+ | `class` | `string` | `""` | Additional CSS classes merged onto the host element via `tailwind-merge`. |
438
+ | `data` | `Iterable<TData>` | `[]` | Collection of items to render. |
439
+ | `disabled` | `boolean` | `false` | Renders the component with reduced visual emphasis and removes pointer interaction. |
440
+ | `inputId` | `string` | `generated` | Id of the inner `<input>` element. Point a `<label for>` or `<mona-label for>` at it to label the combo box. A unique id is generated when it isn't set. |
441
+ | `invalid` | `boolean` | `false` | Marks the combo box as invalid. When bound to a signal form field via `[formField]`, this is written by the `FormField` directive. |
442
+ | `itemDisabled` | `DropdownFieldPredicateType<TData>` | `undefined` | A predicate function or the name of the field that determines whether an item is disabled. |
443
+ | `loading` | `boolean` | `false` | Shows a loading indicator, in place of the clear button, and marks the field busy. It doesn't block interaction: the field stays usable while data loads. |
444
+ | `placeholder` | `string` | `""` | Placeholder text shown when no value is selected or entered. |
445
+ | `popupClass` | `string` | `""` | Sets the class of the popup element. |
446
+ | `popupHeight` | `ListSizeInputType` | `null` | Maximum height of the popup, in pixels or as a CSS length. Shorter lists shrink to fit. When unset, the popup is at most 200 pixels tall. |
447
+ | `popupWidth` | `ListSizeInputType` | `null` | Sets the width of the popup element. |
448
+ | `readonly` | `boolean` | `false` | Prevents value changes while preserving the component's visual state. |
449
+ | `required` | `boolean` | `false` | Sets the required state of the combo box component. |
450
+ | `rounded` | `"full" \| "large" \| "medium" \| "none" \| "small"` | `"medium"` | Border-radius preset applied to the component. |
451
+ | `showClearButton` | `boolean` | `false` | Displays a button that resets the value to empty when an item is selected. |
452
+ | `size` | `"large" \| "medium" \| "small"` | `"medium"` | Size preset controlling the component's dimensions. |
453
+ | `textField` | `DropdownFieldSelectorType<TData, string>` | `undefined` | Property name or accessor used to derive the display text from a data item. If not set, the item itself is used as the text representation. |
454
+ | `touched` | `boolean` | `false` | Sets the touched state of the combo box. When bound to a signal form field via `[formField]`, this is written by the `FormField` directive. |
455
+ | `value` (two-way) | `TValue \| null` | `null` | Two-way bindable current selected value. Implements `FormValueControl<TValue \| null>`, enabling signal forms `[formField]` binding. Object mode returns the selected data item; primitive mode (see `valuePrimitive`) returns the value resolved through `valueField`. `null` represents no selection. |
456
+ | `valueField` | `DropdownFieldSelectorType<TData, unknown>` | `undefined` | Property name or accessor used to derive the value from a data item. It is used for stable item identity, matching externally supplied values, and primitive value projection when `valuePrimitive` is enabled. When omitted, the item itself is used as the value representation. Should resolve to a stable, unique scalar. |
457
+ | `valuePrimitive` | `boolean` | `false` | Determines whether the bound value contains complete data items or values extracted through `valueField`. When `false`, selecting an item writes the complete data item. When `true`, selecting an item writes the value resolved through `valueField`. |
458
+
459
+ #### Outputs
460
+
461
+ | Name | Type | Description |
462
+ | --- | --- | --- |
463
+ | `close` | `PopupCloseEvent<unknown>` | Emitted when the popup is about to close. This event is preventable. |
464
+ | `closed` | `void` | Emitted after the popup is closed. |
465
+ | `open` | `PreventableEvent<Event>` | Emitted when the popup is about to open. This event is preventable. |
466
+ | `opened` | `void` | Emitted after the popup is opened. |
467
+ | `touch` | `void` | Emitted when focus leaves the combo box. Moving between its input, clear button and popup doesn't count. The `FormField` directive listens to this to mark the field as touched. |
468
+ | `valueAdd` | `string` | Emitted with the entered text when the user presses Enter on text that matches no item, or leaves the field with it. Only emitted when `allowCustomValue` is true. |
469
+ | `valueChange` | `TValue \| null` | Emitted when `value` changes. |
470
+
471
+ #### Methods
472
+
473
+ | Signature | Description |
474
+ | --- | --- |
475
+ | `focus(options?: FocusOptions): void` | Moves focus to the inner input. The caret goes to the end of the text. |
476
+
477
+ ### `DropdownFilterableDirective`
478
+
479
+ From `@nanahoshi/mona-ui/dropdowns`.
480
+
481
+ **Selector:** `mona-auto-complete[monaDropDownFilterable], mona-dropdown-list[monaDropDownFilterable], mona-combo-box[monaDropDownFilterable], mona-multi-select[monaDropDownFilterable]`
482
+
483
+ #### Inputs
484
+
485
+ | Name | Type | Default | Description |
486
+ | --- | --- | --- | --- |
487
+ | `filter` | `string` | `""` | Current filter text used to narrow the visible options. |
488
+ | `filterPlaceholder` | `string` | `""` | Placeholder text in the popup's filter row. Auto Complete has no filter row, since its own input is the filter, so it ignores this. |
489
+ | `monaDropDownFilterable` | `Partial<FilterableOptions> \| ""` | `""` | Filter operator, case sensitivity, and debounce delay. An empty string enables filtering with default settings (`operator: "contains"`, `caseSensitive: false`, `debounce: 0`); pass an object to override any field. |
490
+
491
+ #### Outputs
492
+
493
+ | Name | Type | Description |
494
+ | --- | --- | --- |
495
+ | `filterChange` | `FilterChangeEvent` | Emitted when the filter value changes. Cancelable. |
496
+
497
+ ### `DropdownGroupableDirective`
498
+
499
+ From `@nanahoshi/mona-ui/dropdowns`.
500
+
501
+ **Selector:** `mona-auto-complete[monaDropDownGroupable], mona-combo-box[monaDropDownGroupable], mona-dropdown-list[monaDropDownGroupable], mona-multi-select[monaDropDownGroupable]`
502
+ **Type parameters:** `TData`
503
+
504
+ #### Inputs
505
+
506
+ | Name | Type | Default | Description |
507
+ | --- | --- | --- | --- |
508
+ | `groupBy` | `string \| Selector<TData, unknown> \| null \| undefined` | `""` | Property name, or accessor, used to derive an option's group. |
509
+ | `monaDropDownGroupable` | `GroupableOptions<TData, unknown> \| ""` | `""` | Group header order, and optional per-group item ordering. An empty string enables grouping with default settings (`headerOrder: "asc"`); pass an object to override any field. |
510
+
511
+ ### `DropdownVirtualScrollDirective`
512
+
513
+ From `@nanahoshi/mona-ui/dropdowns`.
514
+
515
+ **Selector:** `mona-auto-complete[monaDropDownVirtualScroll], mona-dropdown-list[monaDropDownVirtualScroll], mona-combo-box[monaDropDownVirtualScroll], mona-multi-select[monaDropDownVirtualScroll]`
516
+
517
+ #### Inputs
518
+
519
+ | Name | Type | Default | Description |
520
+ | --- | --- | --- | --- |
521
+ | `monaDropDownVirtualScroll` | `Partial<VirtualScrollOptions> \| ""` | `""` | Whether virtual scrolling is enabled and the pixel height of a single option row. An empty string enables virtual scrolling with default settings (`height: 28`); pass an object to override either field. |
522
+
523
+ ### `DropdownDataHandlerDirective`
524
+
525
+ From `@nanahoshi/mona-ui/dropdowns`.
526
+
527
+ **Selector:** `[monaDropdownDataHandler]`
528
+
529
+ ### `DropdownFooterTemplateDirective`
530
+
531
+ From `@nanahoshi/mona-ui/dropdowns`.
532
+
533
+ **Selector:** `ng-template[monaDropDownFooterTemplate], ng-template[monaAutoCompleteFooterTemplate], ng-template[monaDropDownListFooterTemplate], ng-template[monaDropDownTreeFooterTemplate], ng-template[monaComboBoxFooterTemplate], ng-template[monaMultiSelectFooterTemplate]`
534
+
535
+ ### `DropdownGroupHeaderTemplateDirective`
536
+
537
+ From `@nanahoshi/mona-ui/dropdowns`.
538
+
539
+ **Selector:** `ng-template[monaDropDownGroupHeaderTemplate], ng-template[monaAutoCompleteGroupHeaderTemplate], ng-template[monaDropDownListGroupHeaderTemplate], ng-template[monaComboBoxGroupHeaderTemplate], ng-template[monaMultiSelectGroupHeaderTemplate]`
540
+
541
+ ### `DropdownHeaderTemplateDirective`
542
+
543
+ From `@nanahoshi/mona-ui/dropdowns`.
544
+
545
+ **Selector:** `ng-template[monaDropDownHeaderTemplate], ng-template[monaAutoCompleteHeaderTemplate], ng-template[monaDropDownListHeaderTemplate], ng-template[monaDropDownTreeHeaderTemplate], ng-template[monaComboBoxHeaderTemplate], ng-template[monaMultiSelectHeaderTemplate]`
546
+
547
+ ### `DropdownItemTemplateDirective`
548
+
549
+ From `@nanahoshi/mona-ui/dropdowns`.
550
+
551
+ **Selector:** `ng-template[monaDropDownItemTemplate], ng-template[monaAutoCompleteItemTemplate], ng-template[monaDropDownListItemTemplate], ng-template[monaComboBoxItemTemplate], ng-template[monaMultiSelectItemTemplate]`
552
+
553
+ ### `DropdownListPopupHandlerDirective`
554
+
555
+ From `@nanahoshi/mona-ui/dropdowns`.
556
+
557
+ **Selector:** `[monaDropdownListPopupHandler]`
558
+
559
+ ### `DropdownLiveRegionDirective`
560
+
561
+ From `@nanahoshi/mona-ui/dropdowns`.
562
+
563
+ Announces how many results a dropdown shows after its list is filtered, or after its items change, while the
564
+ popup is open ("3 results available", "No results found").
565
+
566
+ The announcement goes through the CDK `LiveAnnouncer`, whose live region lives at the end of the document, so it
567
+ never becomes part of the combobox's content. The highlighted option isn't announced here:
568
+ `aria-activedescendant` already does that.
569
+
570
+ **Selector:** `[monaDropdownLiveRegion]`
571
+
572
+ ### `DropdownNoDataTemplateDirective`
573
+
574
+ From `@nanahoshi/mona-ui/dropdowns`.
575
+
576
+ **Selector:** `ng-template[monaDropDownNoDataTemplate], ng-template[monaAutoCompleteNoDataTemplate], ng-template[monaDropDownListNoDataTemplate], ng-template[monaDropDownTreeNoDataTemplate], ng-template[monaComboBoxNoDataTemplate], ng-template[monaMultiSelectNoDataTemplate]`
577
+
578
+ ### `DropdownPopupHandlerDirective`
579
+
580
+ From `@nanahoshi/mona-ui/dropdowns`.
581
+
582
+ **Selector:** `[monaDropdownPopupHandler]`
583
+
584
+ ### `DropdownPrefixTemplateDirective`
585
+
586
+ From `@nanahoshi/mona-ui/dropdowns`.
587
+
588
+ **Selector:** `ng-template[monaDropdownPrefixTemplate]`
589
+
590
+ ### `DropdownSuffixTemplateDirective`
591
+
592
+ From `@nanahoshi/mona-ui/dropdowns`.
593
+
594
+ **Selector:** `ng-template[monaDropdownSuffixTemplate]`
595
+
596
+ ### `DropdownListService`
597
+
598
+ From `@nanahoshi/mona-ui/dropdowns`.
599
+
600
+ **Type parameters:** `TData = unknown`
601
+
602
+ #### Properties
603
+
604
+ | Name | Type |
605
+ | --- | --- |
606
+ | `navigate$` (read-only) | `Subject<{ item: ListItem<TData>; }>` |
607
+
608
+ ### Types
609
+
610
+ #### `COMBO_BOX_DEFAULT_MESSAGES`
611
+
612
+ ```typescript
613
+ const COMBO_BOX_DEFAULT_MESSAGES: MonaComboBoxMessages;
614
+ ```
615
+
616
+ #### `DROPDOWN_DATA_INPUT_TOKEN`
617
+
618
+ ```typescript
619
+ const DROPDOWN_DATA_INPUT_TOKEN: InjectionToken<DropdownDataInput<unknown>>;
620
+ ```
621
+
622
+ #### `DROPDOWN_POPUP_INPUT_TOKEN`
623
+
624
+ ```typescript
625
+ const DROPDOWN_POPUP_INPUT_TOKEN: InjectionToken<DropdownPopupInput>;
626
+ ```
627
+
628
+ #### `DropdownDataInputToken`
629
+
630
+ **Deprecated.** Use `DROPDOWN_DATA_INPUT_TOKEN`.
631
+
632
+ ```typescript
633
+ const DropdownDataInputToken: InjectionToken<DropdownDataInput<unknown>>;
634
+ ```
635
+
636
+ #### `dropdownPopupThemeVariants`
637
+
638
+ ```typescript
639
+ const dropdownPopupThemeVariants: (props?: ({ rounded?: "none" | "small" | "medium" | "large" | "full" | null | undefined; size?: "small" | "medium" | "large" | null | undefined; } & ClassProp) | undefined) => string;
640
+ ```
641
+
642
+ #### `DROPDOWNS_DEFAULT_MESSAGES`
643
+
644
+ ```typescript
645
+ const DROPDOWNS_DEFAULT_MESSAGES: MonaDropdownsMessages;
646
+ ```
647
+
648
+ #### `DropdownDataInput`
649
+
650
+ **Type parameters:** `TData`
651
+
652
+ | Name | Type |
653
+ | --- | --- |
654
+ | `data` (read-only) | `InputSignal<Iterable<TData>>` |
655
+ | `itemDisabled` (read-only) | `InputSignal<DropdownFieldPredicateType<TData>>` |
656
+ | `textField` (read-only) | `InputSignal<DropdownFieldSelectorType<TData, string>>` |
657
+ | `valueField` (read-only) | `InputSignal<DropdownFieldSelectorType<TData, unknown>>` |
658
+
659
+ #### `DropdownPopupInput`
660
+
661
+ | Name | Type |
662
+ | --- | --- |
663
+ | `close` (read-only) | `OutputEmitterRef<PopupCloseEvent>` |
664
+ | `closed` (read-only) | `OutputEmitterRef<void>` |
665
+ | `disabled` (read-only) | `Signal<boolean>` |
666
+ | `open` (read-only) | `OutputEmitterRef<PreventableEvent>` |
667
+ | `opened` (read-only) | `OutputEmitterRef<void>` |
668
+ | `popupHeight` (read-only) | `InputSignal<ListSizeInputType>` |
669
+ | `popupWidth` (read-only) | `InputSignal<ListSizeInputType>` |
670
+ | `readonly` (read-only) | `Signal<boolean>` |
671
+ | `touch` (read-only) | `OutputEmitterRef<void>` |
672
+
673
+ #### `DropdownFieldPredicateType`
674
+
675
+ ```typescript
676
+ type DropdownFieldPredicateType<TData> = string | Predicate<TData> | null | undefined;
677
+ ```
678
+
679
+ #### `DropdownFieldSelectorType`
680
+
681
+ ```typescript
682
+ type DropdownFieldSelectorType<TData, TResult = unknown> = string | Selector<TData, TResult> | null | undefined;
683
+ ```
684
+
685
+ #### `FilterChangeEvent`
686
+
687
+ From `@nanahoshi/mona-ui/common`.
688
+
689
+ **Extends:** `PreventableEvent`
690
+
691
+ | Name | Type |
692
+ | --- | --- |
693
+ | `filter` (read-only) | `string` |
694
+
695
+ #### `ListItem`
696
+
697
+ From `@nanahoshi/mona-ui/list`.
698
+
699
+ An item of a list, wrapping its data item.
700
+
701
+ **Type parameters:** `TData`
702
+
703
+ | Name | Type |
704
+ | --- | --- |
705
+ | `data` (read-only) | `TData` |
706
+ | `header` (read-only) | `string` |
707
+ | `isHeader` (read-only) | `boolean` |
708
+ | `uid` (read-only) | `string` |
709
+
710
+ #### `ListSizeInputType`
711
+
712
+ From `@nanahoshi/mona-ui/list`.
713
+
714
+ ```typescript
715
+ type ListSizeInputType = ListSizeType | number;
716
+ ```
717
+
718
+ #### `ListSizeType`
719
+
720
+ From `@nanahoshi/mona-ui/list`.
721
+
722
+ A CSS length, or nothing to leave it to the stylesheet.
723
+
724
+ ```typescript
725
+ type ListSizeType = string | null | undefined;
726
+ ```
727
+
728
+ #### `MonaComboBoxMessages`
729
+
730
+ From `@nanahoshi/mona-ui/i18n`.
731
+
732
+ | Name | Type |
733
+ | --- | --- |
734
+ | `clear` (read-only) | `string` |
735
+
736
+ #### `MonaDropdownsMessages`
737
+
738
+ From `@nanahoshi/mona-ui/i18n`.
739
+
740
+ | Name | Type |
741
+ | --- | --- |
742
+ | `itemPosition` (read-only) | `(text: string, position: number, total: number) => string` |
743
+ | `noResultsFound` (read-only) | `string` |
744
+ | `resultsAvailable` (read-only) | `(count: number) => string` |
745
+
746
+ #### `PreventableEvent`
747
+
748
+ From `@nanahoshi/mona-ui/common`.
749
+
750
+ **Type parameters:** `E extends Event = Event`
751
+
752
+ | Name | Type | Description |
753
+ | --- | --- | --- |
754
+ | `originalEvent` (read-only) | `E \| undefined` | The DOM event that caused this one, when there is one. |
755
+ | `type` (read-only) | `string \| undefined` | A name for the kind of event, when the component that emits it sets one. |
756
+
757
+ **Methods**
758
+
759
+ | Signature | Description |
760
+ | --- | --- |
761
+ | `isDefaultPrevented(): boolean` | Whether `preventDefault()` was called. |
762
+ | `preventDefault(): void` | Cancels what the event announces, such as opening or closing a popup, or closing a dialog. |
763
+
764
+ **Documented elsewhere:** [`FilterableOptions`](grid.md), [`GroupableOptions`](grid.md), [`PopupCloseEvent`](popup.md), [`VirtualScrollOptions`](list-view.md)