@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
@@ -160,6 +160,10 @@ declare class CheckBoxComponent implements CheckboxVariantInput, CheckmarkVarian
160
160
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CheckBoxComponent, "mona-check-box", never, { "ariaDescribedBy": { "alias": "aria-describedby"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelPosition": { "alias": "labelPosition"; "required": false; "isSignal": true; }; "labelSize": { "alias": "labelSize"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "tabIndex": { "alias": "tabIndex"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "indeterminateChange": "indeterminateChange"; "inputBlur": "inputBlur"; "inputChange": "inputChange"; "inputFocus": "inputFocus"; "touch": "touch"; }, never, ["*"], true, never>;
161
161
  }
162
162
 
163
+ /**
164
+ * Applies Mona UI styling to a native `<input type="checkbox">`. All native checkbox behaviors — keyboard interaction,
165
+ * form submission, `indeterminate` state, and Angular forms directives — are preserved.
166
+ */
163
167
  declare class CheckboxDirective implements CheckboxDirectiveVariantInput {
164
168
  protected readonly classes: _angular_core.Signal<string>;
165
169
  protected readonly inputInvalid: _angular_core.Signal<boolean>;
@@ -13,6 +13,10 @@ interface LabelTemplateContext {
13
13
  percent: number;
14
14
  }
15
15
 
16
+ /**
17
+ * Structural template directive that replaces the default percentage label inside the circle. The template is hidden
18
+ * when `indeterminate` is `true`.
19
+ */
16
20
  declare class CircularProgressBarLabelTemplateDirective {
17
21
  readonly templateRef: TemplateRef<LabelTemplateContext>;
18
22
  static ngTemplateContextGuard(_dir: CircularProgressBarLabelTemplateDirective, _ctx: unknown): _ctx is LabelTemplateContext;
@@ -8,13 +8,16 @@ declare const COLLAPSIBLE_CONFIG: InjectionToken<CollapsibleConfig>;
8
8
  */
9
9
  interface CollapsibleConfig {
10
10
  readonly animate: Signal<boolean>;
11
+ /** Collapses the content. */
11
12
  collapse(): void;
12
13
  readonly contentId: string;
13
14
  readonly disabled: Signal<boolean>;
15
+ /** Expands the content. */
14
16
  expand(): void;
15
17
  readonly expanded: Signal<boolean>;
16
18
  /** Takes the id the content was given, so the trigger points at it. A root without it always uses `contentId`. */
17
19
  setContentId?(id: string | null): void;
20
+ /** Switches between expanded and collapsed. The trigger calls it on activation. */
18
21
  toggle(): void;
19
22
  }
20
23
 
@@ -46,9 +49,16 @@ declare class CollapsibleDirective implements CollapsibleConfig {
46
49
  * content element has its own `id`.
47
50
  */
48
51
  get contentId(): string;
52
+ /** Sets `expanded` to `false`. */
49
53
  collapse(): void;
54
+ /** Sets `expanded` to `true`. */
50
55
  expand(): void;
56
+ /**
57
+ * Takes the ID the content element was given, so the trigger points at it. `CollapsibleContentDirective` calls it,
58
+ * so there's no need to.
59
+ */
51
60
  setContentId(id: string | null): void;
61
+ /** Toggles `expanded` unless the root is disabled. */
52
62
  toggle(): void;
53
63
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CollapsibleDirective, never>;
54
64
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CollapsibleDirective, "[monaCollapsible]", ["monaCollapsible"], { "animate": { "alias": "animate"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; }, { "expanded": "expandedChange"; }, never, never, true, never>;
@@ -70,7 +70,7 @@ declare class ComboBoxComponent<TData = unknown, TValue = TData> implements Form
70
70
  readonly ariaDescribedBy: _angular_core.InputSignal<string>;
71
71
  /**
72
72
  * @description Accessible name for the input. Describe what the combo box represents. Prefer a visible label,
73
- * linked through {@link inputId} or {@link ariaLabelledBy}; without any of them, browsers fall back to the
73
+ * linked through {@link inputId} or `aria-labelledby`; without any of them, browsers fall back to the
74
74
  * {@link placeholder}.
75
75
  * @default ""
76
76
  */
@@ -0,0 +1,253 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { TemplateRef, ElementRef } from '@angular/core';
3
+ import * as _nanahoshi_mona_ui_i18n from '@nanahoshi/mona-ui/i18n';
4
+ import { MonaCommandMessages } from '@nanahoshi/mona-ui/i18n';
5
+
6
+ /** What a filter sees of an item. */
7
+ interface CommandFilterItem {
8
+ /** Other words the item should be found by. */
9
+ readonly keywords: readonly string[];
10
+ /** The item's value. */
11
+ readonly value: string;
12
+ }
13
+ /**
14
+ * Decides whether an item stays in the list for a query. It's only called while the query isn't empty.
15
+ * @param query the query, trimmed
16
+ * @param item the item to test
17
+ */
18
+ type CommandFilter = (query: string, item: CommandFilterItem) => boolean;
19
+ /**
20
+ * Who decides which items show. `"auto"` filters them on the client. `"manual"` shows every item, for results the
21
+ * consumer already narrowed down, such as a server's.
22
+ */
23
+ type CommandFilterMode = "auto" | "manual";
24
+
25
+ /** Emitted when an item is chosen, with the pointer or with Enter. */
26
+ interface CommandSelectEvent {
27
+ /** The click or key press that chose the item, to tell apart a modified one, such as Ctrl+Enter. */
28
+ readonly originalEvent: KeyboardEvent | MouseEvent;
29
+ /** The value of the chosen item. */
30
+ readonly value: string;
31
+ }
32
+
33
+ /**
34
+ * A searchable list of actions or options, operated from one input. It works inline, in a popover, or in a
35
+ * `mona-command-dialog`. It only runs what the consumer asks for: choosing an item emits an event, and nothing closes
36
+ * or navigates by itself.
37
+ */
38
+ declare class CommandComponent {
39
+ #private;
40
+ protected readonly baseClass: _angular_core.Signal<string>;
41
+ /**
42
+ * @description What counts as a match while `filterMode` is `"auto"`.
43
+ * @default defaultCommandFilter
44
+ */
45
+ readonly filter: _angular_core.InputSignal<CommandFilter>;
46
+ /** @description Whether the component filters the items, or the consumer supplies only the matching ones. */
47
+ readonly filterMode: _angular_core.InputSignal<CommandFilterMode>;
48
+ /** @description Emits when any item is chosen, with the pointer or with Enter. */
49
+ readonly itemSelect: _angular_core.OutputEmitterRef<CommandSelectEvent>;
50
+ /** @description Whether results are on their way. Shows `mona-command-loading` and holds back the empty state. */
51
+ readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
52
+ /** @description Whether the arrow keys wrap around at the ends of the list. */
53
+ readonly loop: _angular_core.InputSignalWithTransform<boolean, unknown>;
54
+ /** @description The text in the input. */
55
+ readonly query: _angular_core.ModelSignal<string>;
56
+ /** @description The corner radius. */
57
+ readonly rounded: _angular_core.InputSignal<"none" | "small" | "medium" | "large" | null | undefined>;
58
+ constructor();
59
+ /** Moves focus to the input. */
60
+ focus(): void;
61
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommandComponent, never>;
62
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CommandComponent, "mona-command", never, { "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "filterMode": { "alias": "filterMode"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "loop": { "alias": "loop"; "required": false; "isSignal": true; }; "query": { "alias": "query"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; }, { "itemSelect": "itemSelect"; "query": "queryChange"; }, never, ["*"], true, never>;
63
+ }
64
+
65
+ /**
66
+ * A modal for a `mona-command`. It stays near the top of the page instead of centering, so the input doesn't jump as
67
+ * results come and go, and the `mona-command` inside is created each time it opens, so it starts with an empty query.
68
+ */
69
+ declare class CommandDialogComponent {
70
+ #private;
71
+ protected readonly content: _angular_core.Signal<TemplateRef<any> | undefined>;
72
+ protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaCommandMessages>;
73
+ protected readonly panel: _angular_core.Signal<TemplateRef<void>>;
74
+ protected readonly panelClass: _angular_core.Signal<string>;
75
+ /** @description The accessible name of the dialog. */
76
+ readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
77
+ /** @description Whether the dialog is open. */
78
+ readonly open: _angular_core.ModelSignal<boolean>;
79
+ /**
80
+ * @description A key combination that opens and closes the dialog from anywhere on the page, such as `mod+k`.
81
+ * `mod` is Command on Apple devices and Ctrl elsewhere. Nothing is bound unless this is set.
82
+ */
83
+ readonly shortcut: _angular_core.InputSignal<string | null>;
84
+ /** @description The dialog's width. It never gets wider than the viewport. */
85
+ readonly width: _angular_core.InputSignal<string | number>;
86
+ constructor();
87
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommandDialogComponent, never>;
88
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CommandDialogComponent, "mona-command-dialog", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "shortcut": { "alias": "shortcut"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; }, { "open": "openChange"; }, ["content"], never, true, never>;
89
+ }
90
+
91
+ /** Shows while a query has no results. Its content replaces the default message. */
92
+ declare class CommandEmptyComponent {
93
+ protected readonly root: CommandComponent;
94
+ protected readonly statusClass: _angular_core.Signal<string>;
95
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommandEmptyComponent, never>;
96
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CommandEmptyComponent, "mona-command-empty", never, {}, {}, never, ["*"], true, never>;
97
+ }
98
+
99
+ /** A strip below the list, for key hints or links. */
100
+ declare class CommandFooterComponent {
101
+ protected readonly hostClass: _angular_core.Signal<string>;
102
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommandFooterComponent, never>;
103
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CommandFooterComponent, "mona-command-footer", never, {}, {}, never, ["*"], true, never>;
104
+ }
105
+
106
+ /** A titled set of items. It hides itself while none of its items show. */
107
+ declare class CommandGroupComponent {
108
+ #private;
109
+ protected readonly headingClass: _angular_core.Signal<string>;
110
+ protected readonly headingId: string;
111
+ protected readonly hostClass: _angular_core.Signal<string>;
112
+ protected readonly visible: _angular_core.Signal<boolean>;
113
+ /** @description The title above the group's items. */
114
+ readonly heading: _angular_core.InputSignal<string | undefined>;
115
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommandGroupComponent, never>;
116
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CommandGroupComponent, "mona-command-group", never, { "heading": { "alias": "heading"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
117
+ }
118
+
119
+ /** A strip above or below the input, for filters or a title. */
120
+ declare class CommandHeaderComponent {
121
+ protected readonly hostClass: _angular_core.Signal<string>;
122
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommandHeaderComponent, never>;
123
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CommandHeaderComponent, "mona-command-header", never, {}, {}, never, ["*"], true, never>;
124
+ }
125
+
126
+ /**
127
+ * The default filter: an item stays when every word of the query appears in its value or keywords, ignoring case and
128
+ * accents.
129
+ */
130
+ declare const defaultCommandFilter: CommandFilter;
131
+ interface CommandTextPart {
132
+ readonly match: boolean;
133
+ readonly text: string;
134
+ }
135
+
136
+ /** Shows a text with the parts the query matches marked. Marks the query's words, however the item was matched. */
137
+ declare class CommandHighlightComponent {
138
+ #private;
139
+ protected readonly markClass: _angular_core.Signal<string>;
140
+ protected readonly parts: _angular_core.Signal<readonly CommandTextPart[]>;
141
+ /** @description The text to show. */
142
+ readonly text: _angular_core.InputSignal<string>;
143
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommandHighlightComponent, never>;
144
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CommandHighlightComponent, "mona-command-highlight", never, { "text": { "alias": "text"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
145
+ }
146
+
147
+ /**
148
+ * The search field of a `mona-command`. Focus stays here while the arrow keys move through the list, so typing always
149
+ * continues the search.
150
+ */
151
+ declare class CommandInputComponent {
152
+ protected readonly field: _angular_core.Signal<ElementRef<HTMLInputElement>>;
153
+ protected readonly fieldClass: _angular_core.Signal<string>;
154
+ protected readonly hostClass: _angular_core.Signal<string>;
155
+ protected readonly iconClass: _angular_core.Signal<string>;
156
+ protected readonly root: CommandComponent;
157
+ /** @description The accessible name of the field. */
158
+ readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
159
+ /** @description The text shown while the field is empty. */
160
+ readonly placeholder: _angular_core.InputSignal<string | undefined>;
161
+ constructor();
162
+ protected onInput(event: Event): void;
163
+ protected onKeydown(event: KeyboardEvent): void;
164
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommandInputComponent, never>;
165
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CommandInputComponent, "mona-command-input", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
166
+ }
167
+
168
+ /** One action or option in a `mona-command`. What it shows is its content; what it's found by is its value. */
169
+ declare class CommandItemComponent {
170
+ #private;
171
+ protected readonly active: _angular_core.Signal<boolean>;
172
+ protected readonly hostClass: _angular_core.Signal<string>;
173
+ /** @description Whether the item shows but can't be chosen. */
174
+ readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
175
+ /** @description Emits when this item is chosen, with the pointer or with Enter. */
176
+ readonly itemSelect: _angular_core.OutputEmitterRef<CommandSelectEvent>;
177
+ /** @description Other words the item should be found by, such as synonyms. */
178
+ readonly keywords: _angular_core.InputSignal<readonly string[]>;
179
+ /** @description What the item is found by, and what the select event carries. */
180
+ readonly value: _angular_core.InputSignal<string>;
181
+ constructor();
182
+ protected onClick(event: MouseEvent): void;
183
+ /** Not `mouseenter`: that also fires when the list scrolls under a resting pointer, which would steal the active item. */
184
+ protected onPointerMove(): void;
185
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommandItemComponent, never>;
186
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CommandItemComponent, "mona-command-item", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "keywords": { "alias": "keywords"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; }, { "itemSelect": "itemSelect"; }, never, ["*"], true, never>;
187
+ }
188
+
189
+ /**
190
+ * Holds the items of a `mona-command`, and scrolls them. The empty and loading states sit outside the listbox, which
191
+ * may only contain options and groups.
192
+ */
193
+ declare class CommandListComponent {
194
+ protected readonly listClass: _angular_core.Signal<string>;
195
+ protected readonly root: CommandComponent;
196
+ /** @description The accessible name of the list. */
197
+ readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
198
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommandListComponent, never>;
199
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CommandListComponent, "mona-command-list", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; }, {}, never, ["mona-command-empty, mona-command-loading", "*"], true, never>;
200
+ }
201
+
202
+ /** Shows while the `mona-command` is `loading`. Its content replaces the default message. */
203
+ declare class CommandLoadingComponent {
204
+ protected readonly root: CommandComponent;
205
+ protected readonly statusClass: _angular_core.Signal<string>;
206
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommandLoadingComponent, never>;
207
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CommandLoadingComponent, "mona-command-loading", never, {}, {}, never, ["*"], true, never>;
208
+ }
209
+
210
+ /**
211
+ * A line between items. It's only visual, because a listbox can't contain a separator role. It hides while the
212
+ * component filters, when it would divide nothing.
213
+ */
214
+ declare class CommandSeparatorComponent {
215
+ #private;
216
+ protected readonly hidden: _angular_core.Signal<boolean>;
217
+ protected readonly hostClass: _angular_core.Signal<string>;
218
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommandSeparatorComponent, never>;
219
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CommandSeparatorComponent, "mona-command-separator", never, {}, {}, never, never, true, never>;
220
+ }
221
+
222
+ interface CommandKey {
223
+ /** What a screen reader should say. */
224
+ readonly name: string;
225
+ /** What the key looks like on the keyboard. */
226
+ readonly symbol: string;
227
+ }
228
+
229
+ /**
230
+ * Shows an item's shortcut the way the platform writes it. It's only a hint: binding the keys stays with the consumer,
231
+ * who knows what they do.
232
+ */
233
+ declare class CommandShortcutComponent {
234
+ #private;
235
+ protected readonly hostClass: _angular_core.Signal<string>;
236
+ protected readonly keyClass: _angular_core.Signal<string>;
237
+ protected readonly parts: _angular_core.Signal<readonly CommandKey[]>;
238
+ /** @description The keys, joined with `+`, such as `mod+k`. `mod` is Command on Apple devices and Ctrl elsewhere. */
239
+ readonly keys: _angular_core.InputSignal<string>;
240
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommandShortcutComponent, never>;
241
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CommandShortcutComponent, "mona-command-shortcut", never, { "keys": { "alias": "keys"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
242
+ }
243
+
244
+ /** Marks the template a `mona-command-dialog` renders while it's open. */
245
+ declare class CommandDialogContentDirective {
246
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommandDialogContentDirective, never>;
247
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CommandDialogContentDirective, "ng-template[monaCommandDialogContent]", never, {}, {}, never, never, true, never>;
248
+ }
249
+
250
+ declare const COMMAND_DEFAULT_MESSAGES: MonaCommandMessages;
251
+
252
+ export { COMMAND_DEFAULT_MESSAGES, CommandComponent, CommandDialogComponent, CommandDialogContentDirective, CommandEmptyComponent, CommandFooterComponent, CommandGroupComponent, CommandHeaderComponent, CommandHighlightComponent, CommandInputComponent, CommandItemComponent, CommandListComponent, CommandLoadingComponent, CommandSeparatorComponent, CommandShortcutComponent, defaultCommandFilter };
253
+ export type { CommandFilter, CommandFilterItem, CommandFilterMode, CommandSelectEvent };
@@ -6,6 +6,12 @@ type SelectionMode = "single" | "multiple";
6
6
 
7
7
  type ScrollDirection = "left" | "right";
8
8
 
9
+ /** A function taking a `P` and returning an `R`. */
10
+ type Action<P = void, R = void> = (arg: P) => R;
11
+
12
+ /** HTML attributes by name, to apply to an element. */
13
+ type AttributeConfig = Record<string, unknown>;
14
+
9
15
  type ClassInputType = string | string[] | Record<string, unknown> | null | undefined;
10
16
 
11
17
  type ColorMode = "hsv" | "rgb";
@@ -16,9 +22,13 @@ type DataType = "string" | "number" | "date" | "boolean";
16
22
  declare class PreventableEvent<E extends Event = Event> {
17
23
  #private;
18
24
  constructor(type?: string, event?: E);
25
+ /** Whether `preventDefault()` was called. */
19
26
  isDefaultPrevented(): boolean;
27
+ /** Cancels what the event announces, such as opening or closing a popup, or closing a dialog. */
20
28
  preventDefault(): void;
29
+ /** The DOM event that caused this one, when there is one. */
21
30
  get originalEvent(): E | undefined;
31
+ /** A name for the kind of event, when the component that emits it sets one. */
22
32
  get type(): string | undefined;
23
33
  }
24
34
 
@@ -30,9 +40,13 @@ declare class FilterChangeEvent extends PreventableEvent {
30
40
 
31
41
  type FilterOperator = "contains" | "endsWith" | "startsWith" | ((value: string, filter: string) => boolean);
32
42
  interface FilterableOptions {
43
+ /** Whether text matching is case-sensitive. */
33
44
  caseSensitive: boolean;
45
+ /** Milliseconds to wait after the last keystroke before applying the filter. */
34
46
  debounce: number;
47
+ /** Whether filtering is active. */
35
48
  enabled: boolean;
49
+ /** Match strategy used to test an option's text against the filter text. */
36
50
  operator: FilterOperator;
37
51
  }
38
52
 
@@ -53,7 +67,9 @@ type PaletteType = "flat" | "material" | "websafe";
53
67
  type Position = "top" | "right" | "bottom" | "left";
54
68
 
55
69
  interface VirtualScrollOptions {
70
+ /** Whether virtual scrolling is active. */
56
71
  enabled: boolean;
72
+ /** Fixed row height, in pixels, used to measure the virtual scroll viewport. */
57
73
  height?: number;
58
74
  }
59
75
 
@@ -456,4 +472,4 @@ declare const normalizeProgressRange: (value: number, min: number, max: number)
456
472
  declare function moveIndices<T>(array: T[], indices: number[], offset: number): T[];
457
473
 
458
474
  export { AnyPipe, ContainsPipe, FilterChangeEvent, IterablePatchStore, ObjectPatchStore, PreventableEvent, SlicePipe, TakeFirstPipe, buildNested, classInputToClass, createIterablePatchStore, createObjectPatchStore, deepEquals, deepMerge, getPercentage, isEmptyObject, isPlainObject, mergeInto, mergePatchInto, moveIndices, normalizeProgressRange, patchAt, prunePatch, setAt };
459
- export type { ArrayStrategy, BaseChangeStrategy, ClassInputType, ColorMode, ColorOutputFormat, ColorPaletteItem, DataType, DeepMergeOptions, DeepPartial, FilterOperator, FilterableOptions, IIterablePatchStore, IObjectPatchStore, IterablePatchStoreOptions, ObjectPatchStoreOptions, Orientation, PaletteType, Path, PathValue, Position, ProgressRange, ScrollDirection, SelectionMode, VirtualScrollOptions };
475
+ export type { Action, ArrayStrategy, AttributeConfig, BaseChangeStrategy, ClassInputType, ColorMode, ColorOutputFormat, ColorPaletteItem, DataType, DeepMergeOptions, DeepPartial, FilterOperator, FilterableOptions, IIterablePatchStore, IObjectPatchStore, IterablePatchStoreOptions, ObjectPatchStoreOptions, Orientation, PaletteType, Path, PathValue, Position, ProgressRange, ScrollDirection, SelectionMode, VirtualScrollOptions };
@@ -1,6 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { TemplateRef, ElementRef } from '@angular/core';
3
- import { PopupMenuVariantInput, PopupMenuItem, PopupMenuComponent, PopupMenuItemClickEvent, PopupMenuGroupComponent, PopupMenuOrigin, PopupMenuCheckboxItemComponent, PopupMenuItemComponent, PopupMenuRadioGroupComponent, PopupMenuRadioItemComponent, PopupMenuSeparatorComponent, PopupMenuGroupTemplateDirective, PopupMenuTemplateOrigin, PopupMenuIconTemplateDirective, PopupMenuShortcutTemplateDirective, PopupMenuTextTemplateDirective } from '@nanahoshi/mona-ui/popup-menu';
3
+ import { PopupMenuVariantInput, PopupMenuItem, PopupMenuComponent, PopupMenuItemClickEvent, PopupMenuGroupComponent, PopupMenuCheckboxItemComponent, PopupMenuItemComponent, PopupMenuRadioGroupComponent, PopupMenuRadioItemComponent, PopupMenuSeparatorComponent, PopupMenuGroupTemplateDirective, PopupMenuIconTemplateDirective, PopupMenuShortcutTemplateDirective, PopupMenuTextTemplateDirective } from '@nanahoshi/mona-ui/popup-menu';
4
+ import { PopupMenuOrigin, PopupMenuTemplateOrigin } from '@nanahoshi/mona-ui/internal/popup-menu';
4
5
 
5
6
  type ContextMenuVariantInput = PopupMenuVariantInput;
6
7
 
@@ -57,7 +58,7 @@ declare class ContextMenuComponent implements ContextMenuVariantInput {
57
58
  protected onMenuOpen(): void;
58
59
  private openMenuViaKeyboard;
59
60
  static ɵfac: i0.ɵɵFactoryDeclaration<ContextMenuComponent, never>;
60
- static ɵcmp: i0.ɵɵComponentDeclaration<ContextMenuComponent, "mona-contextmenu", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "minWidth": { "alias": "minWidth"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "target": { "alias": "target"; "required": true; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; }, { "menuClick": "menuClick"; }, ["menuItemComponents", "groupTemplate", "iconTemplate", "shortcutTemplate", "textTemplate"], never, true, never>;
61
+ static ɵcmp: i0.ɵɵComponentDeclaration<ContextMenuComponent, "mona-contextmenu", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "minWidth": { "alias": "minWidth"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "target": { "alias": "target"; "required": true; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; }, { "menuClick": "menuClick"; }, ["menuItemComponents", "groupTemplate", "iconTemplate", "shortcutTemplate", "textTemplate"], never, true, never>;
61
62
  }
62
63
 
63
64
  declare class ContextMenuGroupComponent extends PopupMenuGroupComponent {
@@ -95,12 +96,14 @@ declare class ContextMenuRadioItemComponent extends PopupMenuRadioItemComponent
95
96
  static ɵcmp: i0.ɵɵComponentDeclaration<ContextMenuRadioItemComponent, "mona-contextmenu-radio-item", never, {}, {}, never, never, true, never>;
96
97
  }
97
98
 
99
+ /** Renders a horizontal visual divider between items. */
98
100
  declare class ContextMenuSeparatorComponent extends PopupMenuSeparatorComponent {
99
101
  readonly origin = PopupMenuOrigin.ContextMenu;
100
102
  static ɵfac: i0.ɵɵFactoryDeclaration<ContextMenuSeparatorComponent, never>;
101
103
  static ɵcmp: i0.ɵɵComponentDeclaration<ContextMenuSeparatorComponent, "mona-contextmenu-separator", never, {}, {}, never, never, true, never>;
102
104
  }
103
105
 
106
+ /** Customizes a group header's content. */
104
107
  declare class ContextMenuGroupTemplateDirective extends PopupMenuGroupTemplateDirective {
105
108
  readonly origin = PopupMenuTemplateOrigin.ContextMenu;
106
109
  static ɵfac: i0.ɵɵFactoryDeclaration<ContextMenuGroupTemplateDirective, never>;
@@ -49,7 +49,7 @@ declare class DatePickerComponent implements FormValueControl<Date | null>, Drop
49
49
  readonly ariaDescribedBy: _angular_core.InputSignal<string>;
50
50
  /**
51
51
  * @description Accessible name of the input. Prefer a visible label, linked through {@link inputId} or
52
- * {@link ariaLabelledBy}; the placeholder is not a label.
52
+ * `aria-labelledby`; the placeholder is not a label.
53
53
  * @default ""
54
54
  */
55
55
  readonly ariaLabel: _angular_core.InputSignal<string>;
@@ -175,6 +175,7 @@ declare class DatePickerComponent implements FormValueControl<Date | null>, Drop
175
175
  * @default false
176
176
  */
177
177
  readonly touched: _angular_core.InputSignalWithTransform<boolean, unknown>;
178
+ /** @description Extra classes for the input's container. */
178
179
  readonly userClass: _angular_core.InputSignal<string>;
179
180
  /**
180
181
  * @description Two-way bindable current date value. Typed text is written on Enter and when the input loses
@@ -54,7 +54,7 @@ declare class DateTimePickerComponent implements FormValueControl<Date | null>,
54
54
  readonly ariaDescribedBy: _angular_core.InputSignal<string>;
55
55
  /**
56
56
  * @description Accessible name of the input. Prefer a visible label, linked through {@link inputId} or
57
- * {@link ariaLabelledBy}; the placeholder is not a label.
57
+ * `aria-labelledby`; the placeholder is not a label.
58
58
  * @default ""
59
59
  */
60
60
  readonly ariaLabel: _angular_core.InputSignal<string>;
@@ -207,6 +207,7 @@ declare class DateTimePickerComponent implements FormValueControl<Date | null>,
207
207
  * @default false
208
208
  */
209
209
  readonly touched: _angular_core.InputSignalWithTransform<boolean, unknown>;
210
+ /** @description Extra classes for the input's container. */
210
211
  readonly userClass: _angular_core.InputSignal<string>;
211
212
  /**
212
213
  * @description Two-way bindable current date time value. Typed text is written on Enter and when the input loses
@@ -13,16 +13,22 @@ import { Observable } from 'rxjs';
13
13
  type ActionsLayout = "end" | "center" | "start" | "stretched";
14
14
 
15
15
  interface DialogAction<T = unknown> {
16
+ /** Additional class applied to the action button. */
16
17
  cssClass?: string;
18
+ /** Arbitrary data associated with the action, readable from `DialogActionEvent.action.data`. */
17
19
  data?: T;
18
20
  /**
19
21
  * The action Enter triggers when focus is in the dialog but not on a button, link, text area or other control
20
22
  * that handles Enter itself. Mark at most one action.
21
23
  */
22
24
  default?: boolean;
25
+ /** Renders the button as icon-only. */
23
26
  iconOnly?: boolean;
27
+ /** The action button's visual style. */
24
28
  look?: ButtonVariantProps["look"];
29
+ /** The action button's border-radius preset. Falls back to the dialog's own `rounded` when omitted. */
25
30
  rounded?: ButtonVariantProps["rounded"];
31
+ /** Required. The button's label. */
26
32
  text: string;
27
33
  }
28
34
 
@@ -172,7 +178,7 @@ declare class DialogComponent implements DialogVariantInput {
172
178
  readonly width: _angular_core.InputSignal<number | undefined>;
173
179
  constructor();
174
180
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DialogComponent, never>;
175
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DialogComponent, "mona-dialog", never, { "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "actionsLayout": { "alias": "actionsLayout"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "closeOnEscape": { "alias": "closeOnEscape"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "focusedElement": { "alias": "focusedElement"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "left": { "alias": "left"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "minHeight": { "alias": "minHeight"; "required": false; "isSignal": true; }; "minWidth": { "alias": "minWidth"; "required": false; "isSignal": true; }; "modal": { "alias": "modal"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "top": { "alias": "top"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; }, { "action": "action"; "close": "close"; "closed": "closed"; }, ["contentTemplate", "descriptionTemplate", "footerTemplate", "iconTemplate", "titleTemplate"], never, true, never>;
181
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DialogComponent, "mona-dialog", never, { "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "actionsLayout": { "alias": "actionsLayout"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "closeOnEscape": { "alias": "closeOnEscape"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "focusedElement": { "alias": "focusedElement"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "left": { "alias": "left"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "minHeight": { "alias": "minHeight"; "required": false; "isSignal": true; }; "minWidth": { "alias": "minWidth"; "required": false; "isSignal": true; }; "modal": { "alias": "modal"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "top": { "alias": "top"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; }, { "action": "action"; "close": "close"; "closed": "closed"; }, ["contentTemplate", "descriptionTemplate", "footerTemplate", "iconTemplate", "titleTemplate"], never, true, never>;
176
182
  }
177
183
 
178
184
  declare class DialogContentTemplateDirective {
@@ -217,12 +223,34 @@ type DialogResult<R = unknown> = {
217
223
  readonly viaClose: true;
218
224
  };
219
225
 
226
+ /**
227
+ * The settings object accepted by `DialogService.show()`. Fields mirror the `DialogComponent` inputs of the same name
228
+ * (`actions`, `actionsLayout`, `ariaLabel`, `closable`, `closeOnEscape`, `description`, `focusedElement`, `height`,
229
+ * `left`, `maxHeight`, `maxWidth`, `minHeight`, `minWidth`, `modal`, `rounded`, `text`, `title`, `top`, `type`,
230
+ * `width`), plus these service-only fields:
231
+ */
220
232
  interface DialogSettings<D = unknown> {
233
+ /**
234
+ * The buttons in the dialog footer. When omitted, the dialog shows an OK button, plus a Cancel button when `type`
235
+ * is `"confirm"`. Pass an empty list for no buttons.
236
+ */
221
237
  actions?: Iterable<DialogAction>;
238
+ /**
239
+ * How the action buttons are aligned in the footer.
240
+ * @default "end"
241
+ */
222
242
  actionsLayout?: ActionsLayout;
223
243
  /** Accessible name for the dialog when it has no `title` or `titleTemplate`. */
224
244
  ariaLabel?: string;
245
+ /**
246
+ * Whether the header shows a close button.
247
+ * @default true
248
+ */
225
249
  closable?: boolean;
250
+ /**
251
+ * Whether pressing Escape closes the dialog.
252
+ * @default true
253
+ */
226
254
  closeOnEscape?: boolean;
227
255
  /**
228
256
  * The dialog's body: a template, or a component. A template gets the dialog's `data` as `$implicit` and the
@@ -231,11 +259,20 @@ interface DialogSettings<D = unknown> {
231
259
  content?: TemplateRef<unknown> | Type<unknown>;
232
260
  /** Data for the content: `DIALOG_DATA` in a component, `$implicit` in a template. */
233
261
  data?: D;
262
+ /** Text shown under the title, and used as the dialog's accessible description. */
234
263
  description?: string;
264
+ /** Template rendered in place of `description`. */
235
265
  descriptionTemplate?: TemplateRef<unknown>;
266
+ /**
267
+ * The element that receives focus when the dialog opens: an element, an element reference, or a CSS selector
268
+ * matched inside the dialog. When omitted, focus moves to the first focusable element.
269
+ */
236
270
  focusedElement?: HTMLElement | ElementRef<HTMLElement> | string | null;
271
+ /** Template rendered in place of the generated action-button row. */
237
272
  footerTemplate?: TemplateRef<unknown>;
273
+ /** Height in pixels. When omitted, the dialog fits its content. */
238
274
  height?: number;
275
+ /** Template rendered in place of the built-in `type` icon. */
239
276
  iconTemplate?: TemplateRef<unknown>;
240
277
  /**
241
278
  * Parent injector for the dialog's content, so a component given as `content` can inject what the opener
@@ -248,8 +285,11 @@ interface DialogSettings<D = unknown> {
248
285
  maxHeight?: number;
249
286
  /** Maximum width in pixels. When omitted, the dialog stays 1rem inside the viewport. */
250
287
  maxWidth?: number;
288
+ /** Overrides for the dialog's messages (close button label, OK, Cancel). */
251
289
  messages?: Partial<DialogMessages>;
290
+ /** Minimum height in pixels. */
252
291
  minHeight?: number;
292
+ /** Minimum width in pixels. */
253
293
  minWidth?: number;
254
294
  /**
255
295
  * Whether the dialog is modal: a backdrop, `aria-modal="true"`, focus kept inside, page scroll locked, and the
@@ -262,13 +302,26 @@ interface DialogSettings<D = unknown> {
262
302
  * @default true
263
303
  */
264
304
  restoreFocus?: boolean;
305
+ /**
306
+ * Border-radius preset for the dialog and its action buttons.
307
+ * @default "medium"
308
+ */
265
309
  rounded?: DialogVariantProps["rounded"];
310
+ /** Text shown in the dialog's body when no `content` is given. */
266
311
  text?: string;
312
+ /** Text shown in the dialog header, and used as the dialog's accessible name. */
267
313
  title?: string;
314
+ /** Template rendered in place of `title`. */
268
315
  titleTemplate?: TemplateRef<unknown>;
269
316
  /** Distance from the viewport's top edge in pixels. When omitted, the dialog is centered vertically. */
270
317
  top?: number;
318
+ /**
319
+ * The dialog's severity, which picks its icon. `"confirm"`, `"error"` and `"warning"` give the dialog the
320
+ * `alertdialog` role. When omitted, `show()` renders no icon; `alert()` uses `"info"` and `confirm()` uses
321
+ * `"confirm"`.
322
+ */
271
323
  type?: DialogVariantProps["type"];
324
+ /** Width in pixels. When omitted, the dialog fits its content. */
272
325
  width?: number;
273
326
  }
274
327
 
@@ -325,8 +378,11 @@ declare class DialogRef<R = unknown> implements DialogRefParams<R> {
325
378
  * @description The component given as `content`, or `null` for template and text content.
326
379
  */
327
380
  get component(): ComponentRef<unknown> | null;
381
+ /** The dialog's overlay element. */
328
382
  get element(): HTMLElement;
383
+ /** The dialog's current rendered height, in pixels. */
329
384
  get height(): number;
385
+ /** The underlying `PopupRef`, for advanced overlay access. */
330
386
  get popupRef(): PopupRef;
331
387
  /**
332
388
  * @description Emits how the dialog closed (an action, the close button, Escape, a backdrop click or
@@ -334,6 +390,7 @@ declare class DialogRef<R = unknown> implements DialogRefParams<R> {
334
390
  * result too.
335
391
  */
336
392
  get result(): Observable<DialogResult<R>>;
393
+ /** The dialog's current rendered width, in pixels. */
337
394
  get width(): number;
338
395
  }
339
396