@nanahoshi/mona-ui 0.24.7 → 0.24.9

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 (97) hide show
  1. package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +1 -1
  2. package/fesm2022/nanahoshi-mona-ui-button-group.mjs +37 -9
  3. package/fesm2022/nanahoshi-mona-ui-button.mjs +8 -2
  4. package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +4 -3
  5. package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +1 -1
  6. package/fesm2022/nanahoshi-mona-ui-contextmenu.mjs +101 -47
  7. package/fesm2022/nanahoshi-mona-ui-dialog.mjs +339 -101
  8. package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +119 -69
  9. package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +1 -1
  10. package/fesm2022/nanahoshi-mona-ui-editor.mjs +2 -2
  11. package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-vXXNWmEN.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-DhKLnW06.mjs} +2 -2
  12. package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-DDgNmgE0.mjs → nanahoshi-mona-ui-grid-grid-list.component-voGbKOiB.mjs} +4 -4
  13. package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-Dzf6Vbs_.mjs → nanahoshi-mona-ui-grid-grid-row.component-HQ1Kv6R9.mjs} +2 -3
  14. package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-DAPNqnWV.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-PNLJFcuH.mjs} +4 -4
  15. package/fesm2022/{nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-B9rmDLq8.mjs → nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-BO19AVwC.mjs} +10 -10
  16. package/fesm2022/nanahoshi-mona-ui-grid.mjs +1 -1
  17. package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +44 -3
  18. package/fesm2022/nanahoshi-mona-ui-internal-filter-input.mjs +20 -4
  19. package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +335 -45
  20. package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +565 -197
  21. package/fesm2022/nanahoshi-mona-ui-internal.mjs +465 -23
  22. package/fesm2022/nanahoshi-mona-ui-list-box.mjs +598 -208
  23. package/fesm2022/nanahoshi-mona-ui-list-view.mjs +193 -71
  24. package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +29 -3
  25. package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +33 -3
  26. package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +33 -3
  27. package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +40 -3
  28. package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +29 -3
  29. package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +33 -3
  30. package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +29 -3
  31. package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +29 -3
  32. package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +33 -3
  33. package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +49 -3
  34. package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +29 -3
  35. package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +29 -3
  36. package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +29 -3
  37. package/fesm2022/nanahoshi-mona-ui-menubar.mjs +127 -133
  38. package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +1 -1
  39. package/fesm2022/nanahoshi-mona-ui-notification.mjs +473 -240
  40. package/fesm2022/nanahoshi-mona-ui-popover.mjs +202 -90
  41. package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +609 -256
  42. package/fesm2022/nanahoshi-mona-ui-popup.mjs +2 -0
  43. package/fesm2022/nanahoshi-mona-ui-sheet.mjs +45 -10
  44. package/fesm2022/nanahoshi-mona-ui-split-button.mjs +102 -58
  45. package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +286 -443
  46. package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +205 -140
  47. package/fesm2022/nanahoshi-mona-ui-window.mjs +591 -310
  48. package/i18n/catalogs/en-US.messages.json +32 -6
  49. package/locales/ar-sa/ar-sa.messages.json +29 -3
  50. package/locales/de-de/de-de.messages.json +29 -3
  51. package/locales/es-es/es-es.messages.json +29 -3
  52. package/locales/fr-fr/fr-fr.messages.json +29 -3
  53. package/locales/id-id/id-id.messages.json +29 -3
  54. package/locales/it-it/it-it.messages.json +29 -3
  55. package/locales/ja-jp/ja-jp.messages.json +29 -3
  56. package/locales/ko-kr/ko-kr.messages.json +29 -3
  57. package/locales/pt-br/pt-br.messages.json +29 -3
  58. package/locales/ru-ru/ru-ru.messages.json +29 -3
  59. package/locales/tr-tr/tr-tr.messages.json +29 -3
  60. package/locales/zh-cn/zh-cn.messages.json +29 -3
  61. package/locales/zh-tw/zh-tw.messages.json +29 -3
  62. package/package.json +1 -1
  63. package/types/nanahoshi-mona-ui-button-group.d.ts +13 -3
  64. package/types/nanahoshi-mona-ui-button.d.ts +20 -3
  65. package/types/nanahoshi-mona-ui-contextmenu.d.ts +5 -6
  66. package/types/nanahoshi-mona-ui-dialog.d.ts +131 -20
  67. package/types/nanahoshi-mona-ui-dropdown-button.d.ts +75 -56
  68. package/types/nanahoshi-mona-ui-i18n.d.ts +69 -0
  69. package/types/nanahoshi-mona-ui-internal-filter-input.d.ts +14 -2
  70. package/types/nanahoshi-mona-ui-internal-list.d.ts +89 -10
  71. package/types/nanahoshi-mona-ui-internal-tree.d.ts +155 -40
  72. package/types/nanahoshi-mona-ui-internal.d.ts +128 -16
  73. package/types/nanahoshi-mona-ui-list-box.d.ts +148 -47
  74. package/types/nanahoshi-mona-ui-list-view.d.ts +112 -21
  75. package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +26 -0
  76. package/types/nanahoshi-mona-ui-locales-de-de.d.ts +26 -0
  77. package/types/nanahoshi-mona-ui-locales-es-es.d.ts +26 -0
  78. package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +26 -0
  79. package/types/nanahoshi-mona-ui-locales-id-id.d.ts +26 -0
  80. package/types/nanahoshi-mona-ui-locales-it-it.d.ts +26 -0
  81. package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +26 -0
  82. package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +26 -0
  83. package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +26 -0
  84. package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +26 -0
  85. package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +26 -0
  86. package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +26 -0
  87. package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +26 -0
  88. package/types/nanahoshi-mona-ui-menubar.d.ts +65 -62
  89. package/types/nanahoshi-mona-ui-notification.d.ts +76 -16
  90. package/types/nanahoshi-mona-ui-popover.d.ts +44 -17
  91. package/types/nanahoshi-mona-ui-popup-menu.d.ts +110 -32
  92. package/types/nanahoshi-mona-ui-popup.d.ts +2 -0
  93. package/types/nanahoshi-mona-ui-sheet.d.ts +16 -5
  94. package/types/nanahoshi-mona-ui-split-button.d.ts +29 -7
  95. package/types/nanahoshi-mona-ui-tooltip.d.ts +43 -20
  96. package/types/nanahoshi-mona-ui-tree-view.d.ts +84 -40
  97. package/types/nanahoshi-mona-ui-window.d.ts +103 -14
@@ -1,5 +1,5 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { Signal } from '@angular/core';
2
+ import { InjectionToken, Signal } from '@angular/core';
3
3
  import * as class_variance_authority_types from 'class-variance-authority/types';
4
4
  import { VariantInputs } from '@nanahoshi/mona-ui/internal';
5
5
  import { VariantProps } from 'class-variance-authority';
@@ -111,6 +111,23 @@ declare class ButtonDirective implements ButtonVariantsInput {
111
111
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ButtonDirective, "button[monaButton]", never, { "ariaHasPopup": { "alias": "aria-haspopup"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "iconOnly": { "alias": "iconOnly"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "look": { "alias": "look"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; "toggleable": { "alias": "toggleable"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, { "look": "lookChange"; "selected": "selectedChange"; }, never, never, true, never>;
112
112
  }
113
113
 
114
+ /**
115
+ * A component whose own buttons join the `mona-button-group` it is placed in, such as a dropdown or split button.
116
+ * Those buttons follow the group's look, size, rounding and disabled state, but they aren't toggleable and take no
117
+ * part in the group's selection.
118
+ */
119
+ interface ButtonGroupMember {
120
+ /**
121
+ * The component's buttons that join the group.
122
+ */
123
+ readonly groupButtons: Signal<readonly ButtonDirective[]>;
124
+ }
125
+ /**
126
+ * Provided by a component that implements {@link ButtonGroupMember}, so a `mona-button-group` can find it among its
127
+ * content children.
128
+ */
129
+ declare const BUTTON_GROUP_MEMBER: InjectionToken<ButtonGroupMember>;
130
+
114
131
  /**
115
132
  * Coordinates a `mona-button-group` with its buttons: the group publishes its look, size, rounding, disabled state
116
133
  * and members here, and buttons report clicks and receive selection changes through it. It is public so the
@@ -137,5 +154,5 @@ declare class ButtonService {
137
154
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<ButtonService>;
138
155
  }
139
156
 
140
- export { ButtonDirective, ButtonService };
141
- export type { ButtonAriaHasPopup, ButtonVariantProps, ButtonVariantsInput };
157
+ export { BUTTON_GROUP_MEMBER, ButtonDirective, ButtonService };
158
+ export type { ButtonAriaHasPopup, ButtonGroupMember, ButtonVariantProps, ButtonVariantsInput };
@@ -15,8 +15,7 @@ declare class ContextMenuComponent implements ContextMenuVariantInput {
15
15
  protected readonly shortcutTemplate: i0.Signal<TemplateRef<any> | undefined>;
16
16
  protected readonly textTemplate: i0.Signal<TemplateRef<any> | undefined>;
17
17
  /**
18
- * @description Reserved for an ARIA label on the context menu.
19
- * Not currently applied to the target element or the rendered menu.
18
+ * @description Accessible name for the menu. When empty, the menu is named by the target if it has an `id`.
20
19
  */
21
20
  readonly ariaLabel: i0.InputSignal<string>;
22
21
  /**
@@ -42,7 +41,10 @@ declare class ContextMenuComponent implements ContextMenuVariantInput {
42
41
  */
43
42
  readonly size: i0.InputSignal<"small" | "medium" | "large" | null | undefined>;
44
43
  /**
45
- * @description The target element that will be used to trigger the context menu.
44
+ * @description The target element that will be used to trigger the context menu. It can change: the menu, its
45
+ * keyboard shortcuts and its ARIA attributes follow. `aria-haspopup`, `aria-expanded` and `aria-controls` are set
46
+ * only on targets whose role allows them (button, link, gridcell, menuitem, tab, treeitem), and are put back
47
+ * when the target changes or the menu is destroyed.
46
48
  */
47
49
  readonly target: i0.InputSignal<HTMLElement | ElementRef<HTMLElement>>;
48
50
  /**
@@ -54,9 +56,6 @@ declare class ContextMenuComponent implements ContextMenuVariantInput {
54
56
  protected onMenuClose(): void;
55
57
  protected onMenuOpen(): void;
56
58
  private openMenuViaKeyboard;
57
- private setKeyboardEvents;
58
- private setTargetAriaAttributes;
59
- private updateTargetAriaAttributes;
60
59
  static ɵfac: i0.ɵɵFactoryDeclaration<ContextMenuComponent, never>;
61
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>;
62
61
  }
@@ -1,8 +1,8 @@
1
1
  import * as _nanahoshi_mona_ui_i18n from '@nanahoshi/mona-ui/i18n';
2
2
  import { DialogMessages, MonaDialogMessages } from '@nanahoshi/mona-ui/i18n';
3
3
  import * as _angular_core from '@angular/core';
4
- import { ElementRef, TemplateRef, ComponentRef } from '@angular/core';
5
- import { PopupCloseEvent, PopupRef } from '@nanahoshi/mona-ui/popup';
4
+ import { ElementRef, TemplateRef, Type, Injector, ComponentRef, InjectionToken } from '@angular/core';
5
+ import { PopupCloseEvent, PopupCloseSource, PopupRef } from '@nanahoshi/mona-ui/popup';
6
6
  import { ButtonVariantProps } from '@nanahoshi/mona-ui/button';
7
7
  import { PreventableEvent } from '@nanahoshi/mona-ui/common';
8
8
  import * as class_variance_authority_types from 'class-variance-authority/types';
@@ -15,6 +15,11 @@ type ActionsLayout = "end" | "center" | "start" | "stretched";
15
15
  interface DialogAction<T = unknown> {
16
16
  cssClass?: string;
17
17
  data?: T;
18
+ /**
19
+ * The action Enter triggers when focus is in the dialog but not on a button, link, text area or other control
20
+ * that handles Enter itself. Mark at most one action.
21
+ */
22
+ default?: boolean;
18
23
  iconOnly?: boolean;
19
24
  look?: ButtonVariantProps["look"];
20
25
  rounded?: ButtonVariantProps["rounded"];
@@ -71,14 +76,19 @@ declare class DialogComponent implements DialogVariantInput {
71
76
  * @default "end"
72
77
  */
73
78
  readonly actionsLayout: _angular_core.InputSignal<ActionsLayout>;
79
+ /**
80
+ * @description Accessible name for the dialog when it has no `title` or title template.
81
+ */
82
+ readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
74
83
  /**
75
84
  * @description Sets the visibility of the close button in the dialog header.
76
85
  * @default true
77
86
  */
78
87
  readonly closable: _angular_core.InputSignal<boolean>;
79
88
  /**
80
- * @description Emits when the user clicks on the close button or presses the escape key.
81
- * This event is preventable.
89
+ * @description Emits before the dialog closes, whatever closes it: an action, the close button, Escape, or the
90
+ * component being destroyed. Call `preventDefault()` to keep it open (a close caused by destruction can't be
91
+ * kept).
82
92
  */
83
93
  readonly close: _angular_core.OutputEmitterRef<PopupCloseEvent<unknown>>;
84
94
  /**
@@ -87,7 +97,7 @@ declare class DialogComponent implements DialogVariantInput {
87
97
  */
88
98
  readonly closeOnEscape: _angular_core.InputSignal<boolean>;
89
99
  /**
90
- * @description Emits when the dialog is closed.
100
+ * @description Emits when the dialog has closed and its leave animation has finished.
91
101
  */
92
102
  readonly closed: _angular_core.OutputEmitterRef<void>;
93
103
  /**
@@ -128,7 +138,8 @@ declare class DialogComponent implements DialogVariantInput {
128
138
  */
129
139
  readonly minWidth: _angular_core.InputSignal<number | undefined>;
130
140
  /**
131
- * @description Sets whether the dialog should have an overlay behind it.
141
+ * @description Whether the dialog is modal: a backdrop, `aria-modal="true"`, focus kept inside, page scroll
142
+ * locked, and the rest of the page inert.
132
143
  * @default true
133
144
  */
134
145
  readonly modal: _angular_core.InputSignal<boolean>;
@@ -161,7 +172,7 @@ declare class DialogComponent implements DialogVariantInput {
161
172
  readonly width: _angular_core.InputSignal<number | undefined>;
162
173
  constructor();
163
174
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DialogComponent, never>;
164
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DialogComponent, "mona-dialog", never, { "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "actionsLayout": { "alias": "actionsLayout"; "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>;
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>;
165
176
  }
166
177
 
167
178
  declare class DialogContentTemplateDirective {
@@ -189,81 +200,181 @@ declare class DialogTitleTemplateDirective {
189
200
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DialogTitleTemplateDirective, "ng-template[monaDialogTitleTemplate]", never, {}, {}, never, never, true, never>;
190
201
  }
191
202
 
192
- type DialogResult = {
193
- viaClose: true;
203
+ /**
204
+ * How a dialog closed. Every close produces one: an action button (`viaClose: false`), or anything else
205
+ * (`viaClose: true`): the close button, Escape, a backdrop click, or `close()`.
206
+ */
207
+ type DialogResult<R = unknown> = {
208
+ /** The action that closed the dialog. */
209
+ readonly action: DialogAction;
210
+ readonly via: PopupCloseSource.Action;
211
+ readonly viaClose: false;
194
212
  } | {
195
- viaClose: false;
196
- action: DialogAction;
213
+ /** What closed the dialog. */
214
+ readonly via: Exclude<PopupCloseSource, PopupCloseSource.Action>;
215
+ /** The value passed to `close(value)`, when the dialog was closed that way. */
216
+ readonly value?: R;
217
+ readonly viaClose: true;
197
218
  };
198
219
 
199
- interface DialogSettings {
220
+ interface DialogSettings<D = unknown> {
200
221
  actions?: Iterable<DialogAction>;
201
222
  actionsLayout?: ActionsLayout;
223
+ /** Accessible name for the dialog when it has no `title` or `titleTemplate`. */
224
+ ariaLabel?: string;
202
225
  closable?: boolean;
203
226
  closeOnEscape?: boolean;
204
- content?: TemplateRef<unknown>;
227
+ /**
228
+ * The dialog's body: a template, or a component. A template gets the dialog's `data` as `$implicit` and the
229
+ * `DialogRef` as `dialogRef`; a component can inject `DIALOG_DATA` and `DialogRef`.
230
+ */
231
+ content?: TemplateRef<unknown> | Type<unknown>;
232
+ /** Data for the content: `DIALOG_DATA` in a component, `$implicit` in a template. */
233
+ data?: D;
205
234
  description?: string;
206
235
  descriptionTemplate?: TemplateRef<unknown>;
207
236
  focusedElement?: HTMLElement | ElementRef<HTMLElement> | string | null;
208
237
  footerTemplate?: TemplateRef<unknown>;
209
238
  height?: number;
210
239
  iconTemplate?: TemplateRef<unknown>;
240
+ /**
241
+ * Parent injector for the dialog's content, so a component given as `content` can inject what the opener
242
+ * provides. Defaults to the application injector.
243
+ */
244
+ injector?: Injector;
245
+ /** Distance from the viewport's left edge in pixels. When omitted, the dialog is centered horizontally. */
211
246
  left?: number;
247
+ /** Maximum height in pixels. When omitted, the dialog stays 1rem inside the viewport and its body scrolls. */
212
248
  maxHeight?: number;
249
+ /** Maximum width in pixels. When omitted, the dialog stays 1rem inside the viewport. */
213
250
  maxWidth?: number;
214
251
  messages?: Partial<DialogMessages>;
215
252
  minHeight?: number;
216
253
  minWidth?: number;
254
+ /**
255
+ * Whether the dialog is modal: a backdrop, `aria-modal="true"`, focus kept inside, page scroll locked, and the
256
+ * rest of the page inert. A non-modal dialog does none of these.
257
+ * @default true
258
+ */
217
259
  modal?: boolean;
260
+ /**
261
+ * Whether focus goes back to where it was when the dialog opened, once it closes.
262
+ * @default true
263
+ */
264
+ restoreFocus?: boolean;
218
265
  rounded?: DialogVariantProps["rounded"];
219
266
  text?: string;
220
267
  title?: string;
221
268
  titleTemplate?: TemplateRef<unknown>;
269
+ /** Distance from the viewport's top edge in pixels. When omitted, the dialog is centered vertically. */
222
270
  top?: number;
223
271
  type?: DialogVariantProps["type"];
224
272
  width?: number;
225
273
  }
226
274
 
227
275
  interface DialogRefParams<R = unknown> {
276
+ get action$(): Observable<DialogActionEvent>;
228
277
  close: (result?: R) => void;
229
278
  get close$(): Observable<PopupCloseEvent<R>>;
230
- get closed$(): Observable<void>;
279
+ get closed$(): Observable<DialogResult<R>>;
231
280
  get component(): ComponentRef<unknown> | null;
232
281
  get element(): HTMLElement;
233
282
  get height(): number;
234
283
  get popupRef(): PopupRef;
235
- get result(): Observable<DialogResult>;
284
+ get result(): Observable<DialogResult<R>>;
236
285
  update: (data: Partial<DialogSettings>) => void;
237
286
  get width(): number;
238
287
  }
239
288
 
289
+ /**
290
+ * A handle on an open dialog. The close contract:
291
+ * - `action$` emits when an action button is clicked, before the dialog closes; `preventDefault()` keeps it open.
292
+ * - `close$` emits before any close, and `preventDefault()` keeps the dialog open.
293
+ * - `result` emits how the dialog closed as soon as the close goes ahead, and `closed$` emits the same result once
294
+ * the dialog is gone. All of them complete when it closes.
295
+ */
240
296
  declare class DialogRef<R = unknown> implements DialogRefParams<R> {
241
297
  #private;
242
298
  constructor(options: DialogRefParams<R>);
299
+ /**
300
+ * @description Closes the dialog. The value is the `value` of the result, which reports the close as
301
+ * programmatic.
302
+ */
243
303
  close(result?: R): void;
244
304
  /**
245
305
  * @description Updates the dialog's content and appearance in place without closing and reopening it.
246
306
  * Only the fields provided are changed; anything omitted keeps its current value.
247
307
  */
248
308
  update(data: Partial<DialogSettings>): void;
309
+ /**
310
+ * @description Emits when an action button is clicked, before the dialog closes. Call `preventDefault()` on
311
+ * the event to keep the dialog open. Completes when the dialog closes.
312
+ */
313
+ get action$(): Observable<DialogActionEvent>;
314
+ /**
315
+ * @description Emits before the dialog closes, whatever closes it. Call `preventDefault()` to keep it open.
316
+ * Completes when the dialog closes.
317
+ */
249
318
  get close$(): Observable<PopupCloseEvent<R>>;
250
- get closed$(): Observable<void>;
319
+ /**
320
+ * @description Emits the dialog's result once it has closed and its leave animation has finished, then
321
+ * completes.
322
+ */
323
+ get closed$(): Observable<DialogResult<R>>;
324
+ /**
325
+ * @description The component given as `content`, or `null` for template and text content.
326
+ */
251
327
  get component(): ComponentRef<unknown> | null;
252
328
  get element(): HTMLElement;
253
329
  get height(): number;
254
330
  get popupRef(): PopupRef;
255
- get result(): Observable<DialogResult>;
331
+ /**
332
+ * @description Emits how the dialog closed (an action, the close button, Escape, a backdrop click or
333
+ * `close()`) as soon as the close goes ahead, then completes when the dialog is gone. Late subscribers get the
334
+ * result too.
335
+ */
336
+ get result(): Observable<DialogResult<R>>;
256
337
  get width(): number;
257
338
  }
258
339
 
340
+ /** Settings for the `alert()` and `confirm()` helpers, which bring their own buttons. */
341
+ type DialogPromptSettings = Omit<DialogSettings, "actions" | "content" | "data" | "footerTemplate">;
342
+ /** Marks the buttons `confirm()` and `alert()` add, so their result can be read without comparing text. */
343
+ declare const DIALOG_OK = "ok";
344
+ declare const DIALOG_CANCEL = "cancel";
259
345
  declare class DialogService {
260
346
  #private;
261
- show(settings: DialogSettings): DialogRef;
347
+ /**
348
+ * Opens a dialog with an OK button. Emits once it closes, however it closes, then completes.
349
+ * The dialog opens when `alert()` is called, whether or not the result is subscribed to.
350
+ */
351
+ alert(settings: DialogPromptSettings): Observable<void>;
352
+ /**
353
+ * Opens a confirmation dialog with OK and Cancel buttons. Emits `true` for OK and `false` for anything else
354
+ * (Cancel, the close button, Escape), then completes. The dialog opens when `confirm()` is called, whether or
355
+ * not the result is subscribed to.
356
+ */
357
+ confirm(settings: DialogPromptSettings): Observable<boolean>;
358
+ /**
359
+ * Opens a dialog.
360
+ * @typeParam R the type of the value passed to `DialogRef.close(value)`
361
+ * @typeParam D the type of `data`
362
+ */
363
+ show<R = unknown, D = unknown>(settings: DialogSettings<D>): DialogRef<R>;
262
364
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DialogService, never>;
263
365
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<DialogService>;
264
366
  }
265
367
 
368
+ /**
369
+ * The `data` a dialog was opened with, for a component given as its `content`.
370
+ * @example
371
+ * ```ts
372
+ * readonly #data = inject<{ name: string }>(DIALOG_DATA);
373
+ * ```
374
+ */
375
+ declare const DIALOG_DATA: InjectionToken<unknown>;
376
+
266
377
  declare const DIALOG_DEFAULT_MESSAGES: MonaDialogMessages;
267
378
 
268
- export { DIALOG_DEFAULT_MESSAGES, DialogActionEvent, DialogComponent, DialogContentTemplateDirective, DialogDescriptionTemplateDirective, DialogFooterTemplateDirective, DialogIconTemplateDirective, DialogRef, DialogService, DialogTitleTemplateDirective };
269
- export type { ActionsLayout, DialogAction, DialogResult, DialogSettings, DialogVariantProps };
379
+ export { DIALOG_CANCEL, DIALOG_DATA, DIALOG_DEFAULT_MESSAGES, DIALOG_OK, DialogActionEvent, DialogComponent, DialogContentTemplateDirective, DialogDescriptionTemplateDirective, DialogFooterTemplateDirective, DialogIconTemplateDirective, DialogRef, DialogService, DialogTitleTemplateDirective };
380
+ export type { ActionsLayout, DialogAction, DialogPromptSettings, DialogResult, DialogSettings, DialogVariantProps };
@@ -1,159 +1,178 @@
1
1
  import * as _nanahoshi_mona_ui_popup_menu from '@nanahoshi/mona-ui/popup-menu';
2
2
  import { PopupMenuComponent, PopupMenuItemClickEvent, PopupMenuCheckboxItemComponent, PopupMenuOrigin, PopupMenuGroupComponent, PopupMenuItemComponent, PopupMenuRadioGroupComponent, PopupMenuRadioItemComponent, PopupMenuSeparatorComponent, PopupMenuGroupTemplateDirective, PopupMenuTemplateOrigin, PopupMenuIconTemplateDirective, PopupMenuShortcutTemplateDirective, PopupMenuTextTemplateDirective } from '@nanahoshi/mona-ui/popup-menu';
3
- import * as i0 from '@angular/core';
3
+ import * as _angular_core from '@angular/core';
4
4
  import { ElementRef, TemplateRef } from '@angular/core';
5
- import { ButtonVariantsInput } from '@nanahoshi/mona-ui/button';
5
+ import { ButtonVariantsInput, ButtonGroupMember, ButtonDirective } from '@nanahoshi/mona-ui/button';
6
6
 
7
7
  type DropdownButtonVariantInputs = Omit<ButtonVariantsInput, "selected">;
8
8
 
9
- declare class DropdownButtonComponent implements DropdownButtonVariantInputs {
9
+ declare class DropdownButtonComponent implements ButtonGroupMember, DropdownButtonVariantInputs {
10
10
  #private;
11
11
  private readonly menuItemComponents;
12
- protected readonly buttonRef: i0.Signal<ElementRef<HTMLButtonElement> | undefined>;
13
- protected readonly dropdownButtonAriaLabel: i0.Signal<string>;
14
- protected readonly isMenuOpen: i0.WritableSignal<boolean>;
12
+ protected readonly buttonRef: _angular_core.Signal<ElementRef<HTMLButtonElement> | undefined>;
13
+ protected readonly groupTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
14
+ protected readonly isMenuOpen: _angular_core.WritableSignal<boolean>;
15
15
  protected readonly menuId: string;
16
- protected readonly groupTemplate: i0.Signal<TemplateRef<any> | undefined>;
17
- protected readonly menuItemIconTemplate: i0.Signal<TemplateRef<any> | undefined>;
18
- protected readonly menuItems: i0.Signal<_nanahoshi_mona_ui_popup_menu.PopupMenuItem[]>;
19
- protected readonly menuItemShortcutTemplate: i0.Signal<TemplateRef<any> | undefined>;
20
- protected readonly menuItemTextTemplate: i0.Signal<TemplateRef<any> | undefined>;
21
- protected readonly popupMenuRef: i0.Signal<PopupMenuComponent | undefined>;
22
- protected readonly textTemplate: i0.Signal<TemplateRef<any> | undefined>;
16
+ protected readonly menuItemIconTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
17
+ protected readonly menuItemShortcutTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
18
+ protected readonly menuItemTextTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
19
+ protected readonly menuItems: _angular_core.Signal<_nanahoshi_mona_ui_popup_menu.PopupMenuItem[]>;
20
+ protected readonly popupMenuRef: _angular_core.Signal<PopupMenuComponent | undefined>;
21
+ protected readonly popupMenuRounded: _angular_core.Signal<"large" | "medium" | "none" | "small" | null | undefined>;
22
+ protected readonly popupMinWidth: _angular_core.Signal<number | undefined>;
23
+ protected readonly textTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
23
24
  /**
24
- * @description Accessible name for the dropdown button.
25
- * Falls back to `"{text} dropdown button"` when empty; provide an explicit value when no visible text is present.
25
+ * @description Accessible name for the dropdown button. Leave it empty when the button shows its name as text;
26
+ * set it (or `aria-labelledby`) when the button shows only an icon.
26
27
  * @default ""
27
28
  */
28
- readonly ariaLabel: i0.InputSignal<string>;
29
+ readonly ariaLabel: _angular_core.InputSignal<string>;
29
30
  /**
30
31
  * @description ID of an external element that provides the accessible name for the dropdown button.
31
- * Takes precedence over `ariaLabel` when both are set.
32
+ * Takes precedence over `aria-label` when both are set.
32
33
  * @default ""
33
34
  */
34
- readonly ariaLabelledby: i0.InputSignal<string>;
35
+ readonly ariaLabelledby: _angular_core.InputSignal<string>;
35
36
  /**
36
- * @description Renders the button as a square for icon-only usage, removing horizontal text padding.
37
- * Set `ariaLabel` when no visible text is present to ensure an accessible name.
37
+ * @description Renders the button with reduced visual emphasis and removes pointer interaction. Disabling the
38
+ * button closes its open menu.
38
39
  * @default false
39
40
  */
40
- readonly iconOnly: i0.InputSignal<boolean>;
41
+ readonly disabled: _angular_core.InputSignal<boolean>;
41
42
  /**
42
- * @description Renders the button with reduced visual emphasis and removes pointer interaction.
43
+ * The trigger button, which joins a surrounding `mona-button-group`.
44
+ */
45
+ readonly groupButtons: _angular_core.Signal<readonly ButtonDirective[]>;
46
+ /**
47
+ * @description Renders the button as a square for icon-only usage, removing horizontal text padding and the arrow.
48
+ * Set `aria-label` when no visible text is present to ensure an accessible name.
43
49
  * @default false
44
50
  */
45
- readonly disabled: i0.InputSignal<boolean>;
51
+ readonly iconOnly: _angular_core.InputSignal<boolean>;
46
52
  /**
47
- * @description Displays a loading indicator and prevents interaction while an operation is in progress.
53
+ * @description Displays a loading indicator and prevents interaction while an operation is in progress. Starting
54
+ * to load closes the open menu.
48
55
  * @default false
49
56
  */
50
- readonly loading: i0.InputSignal<boolean>;
57
+ readonly loading: _angular_core.InputSignal<boolean>;
51
58
  /**
52
59
  * @description Visual style preset applied to the button.
53
60
  * @default "default"
54
61
  */
55
- readonly look: i0.InputSignal<"default" | "primary" | "success" | "error" | "warning" | "info" | "outline" | "secondary" | "ghost" | "link" | "clear" | null | undefined>;
62
+ readonly look: _angular_core.InputSignal<"default" | "primary" | "success" | "error" | "warning" | "info" | "outline" | "secondary" | "ghost" | "link" | "clear" | null | undefined>;
56
63
  /**
57
64
  * @description Emitted when a menu item in the dropdown menu is clicked.
58
65
  */
59
- readonly menuItemClick: i0.OutputEmitterRef<PopupMenuItemClickEvent>;
66
+ readonly menuItemClick: _angular_core.OutputEmitterRef<PopupMenuItemClickEvent>;
67
+ /**
68
+ * @description Minimum width of the popup menu in pixels. A value of `0` makes the menu at least as wide as the
69
+ * button.
70
+ * @default 0
71
+ */
72
+ readonly popupWidth: _angular_core.InputSignal<number>;
60
73
  /**
61
- * @description Border-radius preset applied to the button.
74
+ * @description Border-radius preset applied to the button. The menu follows it (`"full"` gives it large corners).
62
75
  * @default "medium"
63
76
  */
64
- readonly rounded: i0.InputSignal<"full" | "large" | "medium" | "none" | "small" | null | undefined>;
77
+ readonly rounded: _angular_core.InputSignal<"full" | "large" | "medium" | "none" | "small" | null | undefined>;
78
+ /**
79
+ * @description Shows a down arrow after the text, so the button reads as one that opens a menu. Icon-only buttons
80
+ * never show it.
81
+ * @default true
82
+ */
83
+ readonly showArrow: _angular_core.InputSignal<boolean>;
65
84
  /**
66
85
  * @description Size preset controlling the button's dimensions.
67
86
  * @default "medium"
68
87
  */
69
- readonly size: i0.InputSignal<"large" | "medium" | "small" | null | undefined>;
88
+ readonly size: _angular_core.InputSignal<"large" | "medium" | "small" | null | undefined>;
70
89
  /**
71
90
  * @description Primary text content displayed inside the dropdown button.
72
91
  * Passed as `$implicit` to a `monaDropdownButtonTextTemplate` when one is provided.
73
92
  * @default ""
74
93
  */
75
- readonly text: i0.InputSignal<string>;
94
+ readonly text: _angular_core.InputSignal<string>;
76
95
  /**
77
96
  * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
78
97
  * @default ""
79
98
  */
80
- readonly userClass: i0.InputSignal<string>;
99
+ readonly userClass: _angular_core.InputSignal<string>;
81
100
  constructor();
82
101
  protected onMenuClose(): void;
83
102
  protected onMenuItemClick(event: PopupMenuItemClickEvent): void;
84
103
  protected onMenuOpen(): void;
85
- static ɵfac: i0.ɵɵFactoryDeclaration<DropdownButtonComponent, never>;
86
- static ɵcmp: i0.ɵɵComponentDeclaration<DropdownButtonComponent, "mona-dropdown-button", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "iconOnly": { "alias": "iconOnly"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "look": { "alias": "look"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, { "menuItemClick": "menuItemClick"; }, ["menuItemComponents", "groupTemplate", "menuItemIconTemplate", "menuItemShortcutTemplate", "menuItemTextTemplate", "textTemplate"], never, true, never>;
104
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropdownButtonComponent, never>;
105
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropdownButtonComponent, "mona-dropdown-button", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "iconOnly": { "alias": "iconOnly"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "look": { "alias": "look"; "required": false; "isSignal": true; }; "popupWidth": { "alias": "popupWidth"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "showArrow": { "alias": "showArrow"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, { "menuItemClick": "menuItemClick"; }, ["menuItemComponents", "groupTemplate", "menuItemIconTemplate", "menuItemShortcutTemplate", "menuItemTextTemplate", "textTemplate"], never, true, never>;
87
106
  }
88
107
 
89
108
  declare class DropdownButtonCheckboxItemComponent extends PopupMenuCheckboxItemComponent {
90
109
  readonly origin = PopupMenuOrigin.DropdownButton;
91
110
  constructor();
92
- static ɵfac: i0.ɵɵFactoryDeclaration<DropdownButtonCheckboxItemComponent, never>;
93
- static ɵcmp: i0.ɵɵComponentDeclaration<DropdownButtonCheckboxItemComponent, "mona-dropdown-button-checkbox-item", never, {}, {}, never, never, true, never>;
111
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropdownButtonCheckboxItemComponent, never>;
112
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropdownButtonCheckboxItemComponent, "mona-dropdown-button-checkbox-item", never, {}, {}, never, never, true, never>;
94
113
  }
95
114
 
96
115
  declare class DropdownButtonGroupComponent extends PopupMenuGroupComponent {
97
116
  readonly origin = PopupMenuOrigin.DropdownButton;
98
117
  constructor();
99
- static ɵfac: i0.ɵɵFactoryDeclaration<DropdownButtonGroupComponent, never>;
100
- static ɵcmp: i0.ɵɵComponentDeclaration<DropdownButtonGroupComponent, "mona-dropdown-button-group", never, {}, {}, never, never, true, never>;
118
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropdownButtonGroupComponent, never>;
119
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropdownButtonGroupComponent, "mona-dropdown-button-group", never, {}, {}, never, never, true, never>;
101
120
  }
102
121
 
103
122
  declare class DropdownButtonItemComponent extends PopupMenuItemComponent {
104
123
  readonly origin = PopupMenuOrigin.DropdownButton;
105
124
  constructor();
106
- static ɵfac: i0.ɵɵFactoryDeclaration<DropdownButtonItemComponent, never>;
107
- static ɵcmp: i0.ɵɵComponentDeclaration<DropdownButtonItemComponent, "mona-dropdown-button-item", never, {}, {}, never, never, true, never>;
125
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropdownButtonItemComponent, never>;
126
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropdownButtonItemComponent, "mona-dropdown-button-item", never, {}, {}, never, never, true, never>;
108
127
  }
109
128
 
110
129
  declare class DropdownButtonRadioGroupComponent extends PopupMenuRadioGroupComponent {
111
130
  readonly origin = PopupMenuOrigin.DropdownButton;
112
131
  constructor();
113
- static ɵfac: i0.ɵɵFactoryDeclaration<DropdownButtonRadioGroupComponent, never>;
114
- static ɵcmp: i0.ɵɵComponentDeclaration<DropdownButtonRadioGroupComponent, "mona-dropdown-button-radio-group", never, {}, {}, never, never, true, never>;
132
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropdownButtonRadioGroupComponent, never>;
133
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropdownButtonRadioGroupComponent, "mona-dropdown-button-radio-group", never, {}, {}, never, never, true, never>;
115
134
  }
116
135
 
117
136
  declare class DropdownButtonRadioItemComponent extends PopupMenuRadioItemComponent {
118
137
  readonly origin = PopupMenuOrigin.DropdownButton;
119
138
  constructor();
120
- static ɵfac: i0.ɵɵFactoryDeclaration<DropdownButtonRadioItemComponent, never>;
121
- static ɵcmp: i0.ɵɵComponentDeclaration<DropdownButtonRadioItemComponent, "mona-dropdown-button-radio-item", never, {}, {}, never, never, true, never>;
139
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropdownButtonRadioItemComponent, never>;
140
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropdownButtonRadioItemComponent, "mona-dropdown-button-radio-item", never, {}, {}, never, never, true, never>;
122
141
  }
123
142
 
124
143
  declare class DropdownButtonSeparatorComponent extends PopupMenuSeparatorComponent {
125
144
  readonly origin = PopupMenuOrigin.DropdownButton;
126
- static ɵfac: i0.ɵɵFactoryDeclaration<DropdownButtonSeparatorComponent, never>;
127
- static ɵcmp: i0.ɵɵComponentDeclaration<DropdownButtonSeparatorComponent, "mona-dropdown-button-separator", never, {}, {}, never, never, true, never>;
145
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropdownButtonSeparatorComponent, never>;
146
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropdownButtonSeparatorComponent, "mona-dropdown-button-separator", never, {}, {}, never, never, true, never>;
128
147
  }
129
148
 
130
149
  declare class DropdownButtonMenuGroupTemplateDirective extends PopupMenuGroupTemplateDirective {
131
150
  readonly origin = PopupMenuTemplateOrigin.DropdownButton;
132
- static ɵfac: i0.ɵɵFactoryDeclaration<DropdownButtonMenuGroupTemplateDirective, never>;
133
- static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownButtonMenuGroupTemplateDirective, "ng-template[monaDropdownButtonMenuGroupTemplate]", never, {}, {}, never, never, true, never>;
151
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropdownButtonMenuGroupTemplateDirective, never>;
152
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DropdownButtonMenuGroupTemplateDirective, "ng-template[monaDropdownButtonMenuGroupTemplate]", never, {}, {}, never, never, true, never>;
134
153
  }
135
154
 
136
155
  declare class DropdownButtonMenuItemIconTemplateDirective extends PopupMenuIconTemplateDirective {
137
156
  readonly origin = PopupMenuTemplateOrigin.DropdownButton;
138
- static ɵfac: i0.ɵɵFactoryDeclaration<DropdownButtonMenuItemIconTemplateDirective, never>;
139
- static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownButtonMenuItemIconTemplateDirective, "ng-template[monaDropdownButtonMenuItemIconTemplate]", never, {}, {}, never, never, true, never>;
157
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropdownButtonMenuItemIconTemplateDirective, never>;
158
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DropdownButtonMenuItemIconTemplateDirective, "ng-template[monaDropdownButtonMenuItemIconTemplate]", never, {}, {}, never, never, true, never>;
140
159
  }
141
160
 
142
161
  declare class DropdownButtonMenuItemShortcutTemplateDirective extends PopupMenuShortcutTemplateDirective {
143
162
  readonly origin = PopupMenuTemplateOrigin.DropdownButton;
144
- static ɵfac: i0.ɵɵFactoryDeclaration<DropdownButtonMenuItemShortcutTemplateDirective, never>;
145
- static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownButtonMenuItemShortcutTemplateDirective, "ng-template[monaDropdownButtonMenuItemShortcutTemplate]", never, {}, {}, never, never, true, never>;
163
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropdownButtonMenuItemShortcutTemplateDirective, never>;
164
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DropdownButtonMenuItemShortcutTemplateDirective, "ng-template[monaDropdownButtonMenuItemShortcutTemplate]", never, {}, {}, never, never, true, never>;
146
165
  }
147
166
 
148
167
  declare class DropdownButtonMenuItemTextTemplateDirective extends PopupMenuTextTemplateDirective {
149
168
  readonly origin = PopupMenuTemplateOrigin.DropdownButton;
150
- static ɵfac: i0.ɵɵFactoryDeclaration<DropdownButtonMenuItemTextTemplateDirective, never>;
151
- static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownButtonMenuItemTextTemplateDirective, "ng-template[monaDropdownButtonMenuItemTextTemplate]", never, {}, {}, never, never, true, never>;
169
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropdownButtonMenuItemTextTemplateDirective, never>;
170
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DropdownButtonMenuItemTextTemplateDirective, "ng-template[monaDropdownButtonMenuItemTextTemplate]", never, {}, {}, never, never, true, never>;
152
171
  }
153
172
 
154
173
  declare class DropdownButtonTextTemplateDirective {
155
- static ɵfac: i0.ɵɵFactoryDeclaration<DropdownButtonTextTemplateDirective, never>;
156
- static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownButtonTextTemplateDirective, "ng-template[monaDropdownButtonTextTemplate]", never, {}, {}, never, never, true, never>;
174
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropdownButtonTextTemplateDirective, never>;
175
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DropdownButtonTextTemplateDirective, "ng-template[monaDropdownButtonTextTemplate]", never, {}, {}, never, never, true, never>;
157
176
  }
158
177
 
159
178
  export { DropdownButtonCheckboxItemComponent, DropdownButtonComponent, DropdownButtonGroupComponent, DropdownButtonItemComponent, DropdownButtonMenuGroupTemplateDirective, DropdownButtonMenuItemIconTemplateDirective, DropdownButtonMenuItemShortcutTemplateDirective, DropdownButtonMenuItemTextTemplateDirective, DropdownButtonRadioGroupComponent, DropdownButtonRadioItemComponent, DropdownButtonSeparatorComponent, DropdownButtonTextTemplateDirective };