@nanahoshi/mona-ui 0.24.8 → 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 (81) hide show
  1. package/fesm2022/nanahoshi-mona-ui-button-group.mjs +37 -9
  2. package/fesm2022/nanahoshi-mona-ui-button.mjs +8 -2
  3. package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +4 -3
  4. package/fesm2022/nanahoshi-mona-ui-contextmenu.mjs +101 -47
  5. package/fesm2022/nanahoshi-mona-ui-dialog.mjs +339 -101
  6. package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +119 -69
  7. package/fesm2022/nanahoshi-mona-ui-editor.mjs +2 -2
  8. package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-DdyHnUIr.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-DhKLnW06.mjs} +2 -2
  9. package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-B6gq7Hu3.mjs → nanahoshi-mona-ui-grid-grid-list.component-voGbKOiB.mjs} +4 -4
  10. package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-DdUY3I7P.mjs → nanahoshi-mona-ui-grid-grid-row.component-HQ1Kv6R9.mjs} +2 -3
  11. package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-DG8Bu4Dy.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-PNLJFcuH.mjs} +4 -4
  12. package/fesm2022/{nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-CVqpbMcb.mjs → nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-BO19AVwC.mjs} +9 -9
  13. package/fesm2022/nanahoshi-mona-ui-grid.mjs +1 -1
  14. package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +4 -0
  15. package/fesm2022/nanahoshi-mona-ui-internal.mjs +438 -22
  16. package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +4 -0
  17. package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +4 -0
  18. package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +4 -0
  19. package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +4 -0
  20. package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +4 -0
  21. package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +4 -0
  22. package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +4 -0
  23. package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +4 -0
  24. package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +4 -0
  25. package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +4 -0
  26. package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +4 -0
  27. package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +4 -0
  28. package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +4 -0
  29. package/fesm2022/nanahoshi-mona-ui-menubar.mjs +127 -133
  30. package/fesm2022/nanahoshi-mona-ui-notification.mjs +473 -240
  31. package/fesm2022/nanahoshi-mona-ui-popover.mjs +202 -90
  32. package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +609 -256
  33. package/fesm2022/nanahoshi-mona-ui-popup.mjs +2 -0
  34. package/fesm2022/nanahoshi-mona-ui-sheet.mjs +45 -10
  35. package/fesm2022/nanahoshi-mona-ui-split-button.mjs +102 -58
  36. package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +286 -443
  37. package/fesm2022/nanahoshi-mona-ui-window.mjs +591 -310
  38. package/i18n/catalogs/en-US.messages.json +4 -0
  39. package/locales/ar-sa/ar-sa.messages.json +4 -0
  40. package/locales/de-de/de-de.messages.json +4 -0
  41. package/locales/es-es/es-es.messages.json +4 -0
  42. package/locales/fr-fr/fr-fr.messages.json +4 -0
  43. package/locales/id-id/id-id.messages.json +4 -0
  44. package/locales/it-it/it-it.messages.json +4 -0
  45. package/locales/ja-jp/ja-jp.messages.json +4 -0
  46. package/locales/ko-kr/ko-kr.messages.json +4 -0
  47. package/locales/pt-br/pt-br.messages.json +4 -0
  48. package/locales/ru-ru/ru-ru.messages.json +4 -0
  49. package/locales/tr-tr/tr-tr.messages.json +4 -0
  50. package/locales/zh-cn/zh-cn.messages.json +4 -0
  51. package/locales/zh-tw/zh-tw.messages.json +4 -0
  52. package/package.json +1 -1
  53. package/types/nanahoshi-mona-ui-button-group.d.ts +13 -3
  54. package/types/nanahoshi-mona-ui-button.d.ts +20 -3
  55. package/types/nanahoshi-mona-ui-contextmenu.d.ts +5 -6
  56. package/types/nanahoshi-mona-ui-dialog.d.ts +131 -20
  57. package/types/nanahoshi-mona-ui-dropdown-button.d.ts +75 -56
  58. package/types/nanahoshi-mona-ui-i18n.d.ts +19 -0
  59. package/types/nanahoshi-mona-ui-internal.d.ts +119 -15
  60. package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +4 -0
  61. package/types/nanahoshi-mona-ui-locales-de-de.d.ts +4 -0
  62. package/types/nanahoshi-mona-ui-locales-es-es.d.ts +4 -0
  63. package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +4 -0
  64. package/types/nanahoshi-mona-ui-locales-id-id.d.ts +4 -0
  65. package/types/nanahoshi-mona-ui-locales-it-it.d.ts +4 -0
  66. package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +4 -0
  67. package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +4 -0
  68. package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +4 -0
  69. package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +4 -0
  70. package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +4 -0
  71. package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +4 -0
  72. package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +4 -0
  73. package/types/nanahoshi-mona-ui-menubar.d.ts +65 -62
  74. package/types/nanahoshi-mona-ui-notification.d.ts +76 -16
  75. package/types/nanahoshi-mona-ui-popover.d.ts +44 -17
  76. package/types/nanahoshi-mona-ui-popup-menu.d.ts +110 -32
  77. package/types/nanahoshi-mona-ui-popup.d.ts +2 -0
  78. package/types/nanahoshi-mona-ui-sheet.d.ts +16 -5
  79. package/types/nanahoshi-mona-ui-split-button.d.ts +29 -7
  80. package/types/nanahoshi-mona-ui-tooltip.d.ts +43 -20
  81. package/types/nanahoshi-mona-ui-window.d.ts +103 -14
@@ -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 };
@@ -353,6 +353,8 @@ interface MonaNotificationMessages {
353
353
  readonly close: string;
354
354
  readonly error: string;
355
355
  readonly info: string;
356
+ /** The name of the region that holds the notifications at one position. */
357
+ readonly region: string;
356
358
  readonly success: string;
357
359
  readonly warning: string;
358
360
  }
@@ -427,7 +429,11 @@ interface MonaSpinnerMessages {
427
429
  }
428
430
 
429
431
  interface MonaSplitButtonMessages {
432
+ /** The arrow button's name when the main button has no `text` (it shows a template instead). */
430
433
  readonly menuButtonAriaLabel: string;
434
+ /** The arrow button's name, from the main button's `text`. */
435
+ readonly menuButtonWithText: (text: string) => string;
436
+ /** @deprecated No longer rendered; the main button is named by its content or by `aria-label`. */
431
437
  readonly splitButton: (text: string) => string;
432
438
  }
433
439
 
@@ -510,15 +516,28 @@ interface MonaWindowMessages {
510
516
  readonly closeWindow: string;
511
517
  readonly maximize: string;
512
518
  readonly minimize: string;
519
+ /** The title bar's name when the window can be both dragged and resized; it says which keys do each. */
520
+ readonly moveOrResizeWindow: string;
521
+ /** The title bar's name when the window can be dragged but not resized. */
513
522
  readonly moveWindow: string;
523
+ /** @deprecated No longer rendered; resize handles are for the pointer, and the title bar resizes with the keyboard. */
514
524
  readonly resizeBottom: string;
525
+ /** @deprecated No longer rendered; resize handles are for the pointer, and the title bar resizes with the keyboard. */
515
526
  readonly resizeBottomLeft: string;
527
+ /** @deprecated No longer rendered; resize handles are for the pointer, and the title bar resizes with the keyboard. */
516
528
  readonly resizeBottomRight: string;
529
+ /** @deprecated No longer rendered; resize handles are for the pointer, and the title bar resizes with the keyboard. */
517
530
  readonly resizeLeft: string;
531
+ /** @deprecated No longer rendered; resize handles are for the pointer, and the title bar resizes with the keyboard. */
518
532
  readonly resizeRight: string;
533
+ /** @deprecated No longer rendered; resize handles are for the pointer, and the title bar resizes with the keyboard. */
519
534
  readonly resizeTop: string;
535
+ /** @deprecated No longer rendered; resize handles are for the pointer, and the title bar resizes with the keyboard. */
520
536
  readonly resizeTopLeft: string;
537
+ /** @deprecated No longer rendered; resize handles are for the pointer, and the title bar resizes with the keyboard. */
521
538
  readonly resizeTopRight: string;
539
+ /** The title bar's name when the window can be resized but not dragged. */
540
+ readonly resizeWindow: string;
522
541
  readonly restore: string;
523
542
  }
524
543
  type WindowMessages = MonaWindowMessages;