@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,22 +1,34 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { Signal, TemplateRef, ElementRef, InjectionToken, OnInit } from '@angular/core';
3
- import * as _mirei_ts_collections from '@mirei/ts-collections';
4
- import { PreventableEvent, ClassInputType } from '@nanahoshi/mona-ui/common';
5
- import { PopupCloseEvent, PopupRef, ConnectionPoint, PopupOffset } from '@nanahoshi/mona-ui/popup';
6
3
  import { Subject } from 'rxjs';
4
+ import { PreventableEvent, ClassInputType } from '@nanahoshi/mona-ui/common';
5
+ import { PopupCloseEvent, ConnectionPoint, PopupOffset } from '@nanahoshi/mona-ui/popup';
7
6
  import * as class_variance_authority_types from 'class-variance-authority/types';
8
7
  import { VariantProps } from 'class-variance-authority';
9
8
  import { VariantInputs } from '@nanahoshi/mona-ui/internal';
10
9
  import * as _nanahoshi_mona_ui_popup_menu from '@nanahoshi/mona-ui/popup-menu';
11
10
 
12
- declare class PopupMenuCloseEvent extends PreventableEvent {
13
- constructor(originalEvent?: PopupCloseEvent);
14
- }
15
-
11
+ /**
12
+ * Emitted when a menu item is activated by a click, Enter or Space. Preventing it keeps the menu open and leaves a
13
+ * checkbox or radio item's state unchanged.
14
+ */
16
15
  declare class PopupMenuItemClickEvent extends PreventableEvent {
17
16
  #private;
18
17
  constructor(item: PopupMenuItem, originalEvent: MouseEvent);
18
+ /**
19
+ * For a checkbox or radio item, the state the item has once the click is applied (if it isn't prevented).
20
+ * `undefined` for other items.
21
+ */
22
+ get checked(): boolean | undefined;
19
23
  get item(): PopupMenuItem;
24
+ /**
25
+ * The item's label.
26
+ */
27
+ get label(): string;
28
+ /**
29
+ * The item's `value`: the `value` input of the item component, or the `value` of a `MenuItem`.
30
+ */
31
+ get value(): unknown;
20
32
  }
21
33
 
22
34
  interface PopupMenuItem {
@@ -24,33 +36,57 @@ interface PopupMenuItem {
24
36
  checked?: Signal<boolean>;
25
37
  click$?: Subject<PopupMenuItemClickEvent>;
26
38
  disabled: boolean;
39
+ /**
40
+ * The group the item belongs to. Consecutive items with the same key form a group. A string key, or a symbol
41
+ * with a description, is the group's title.
42
+ */
27
43
  group: string | symbol;
28
- groupTemplate: Signal<TemplateRef<any> | null> | null;
29
- iconTemplate: Signal<TemplateRef<any> | null> | null;
44
+ groupTemplate: Signal<TemplateRef<unknown> | null> | null;
45
+ iconTemplate: Signal<TemplateRef<unknown> | null> | null;
30
46
  items: PopupMenuItem[];
31
47
  label: string;
32
48
  radio?: boolean;
33
49
  selected?: Signal<boolean>;
34
50
  separator?: boolean;
35
- shortcutTemplate: Signal<TemplateRef<any> | null> | null;
36
- textTemplate: Signal<TemplateRef<any> | null> | null;
51
+ shortcutTemplate: Signal<TemplateRef<unknown> | null> | null;
52
+ textTemplate: Signal<TemplateRef<unknown> | null> | null;
37
53
  uid: string;
38
- value?: Signal<string>;
54
+ value?: Signal<unknown>;
39
55
  }
40
56
  interface MenuItem {
57
+ /**
58
+ * Whether the item is a checkbox item. Its `checked` state toggles when it's activated, unless `menuClick` is
59
+ * prevented. The state lives in the menu: read the new state from the event's `checked` and keep it in your
60
+ * items if they can be replaced.
61
+ */
41
62
  checkable?: boolean;
42
63
  checked?: boolean;
43
64
  disabled?: boolean;
65
+ /**
66
+ * The title of the group the item belongs to. Consecutive items with the same group form one group.
67
+ */
44
68
  group?: string;
45
69
  items?: MenuItem[];
46
70
  label: string;
47
71
  separator?: boolean;
72
+ /**
73
+ * A value that identifies the item in `menuClick` (the event's `value`).
74
+ */
75
+ value?: unknown;
48
76
  }
49
77
 
50
- interface PopupMenuNavigationEvent {
51
- direction: "up" | "down" | "left" | "right";
52
- item: PopupMenuItem | null;
53
- level: number;
78
+ /** A run of consecutive menu items that share a group key. */
79
+ interface PopupMenuItemGroup {
80
+ readonly items: readonly PopupMenuItem[];
81
+ readonly key: string | symbol;
82
+ /** The id of the group's title element, when it has a title. */
83
+ readonly labelId: string;
84
+ /** The group's title: a string key, or a symbol key's description. Empty for ungrouped items. */
85
+ readonly title: string;
86
+ }
87
+
88
+ declare class PopupMenuCloseEvent extends PreventableEvent {
89
+ constructor(originalEvent?: PopupCloseEvent);
54
90
  }
55
91
 
56
92
  declare const popupMenuBaseThemeVariants: (props?: ({
@@ -77,6 +113,15 @@ type PopupMenuLinkVariantProps = VariantProps<typeof popupMenuLinkThemeVariants>
77
113
  type PopupMenuVariantProps = PopupMenuBaseVariantProps & PopupMenuContainerVariantProps & PopupMenuGroupHeaderVariantProps & PopupMenuIconContainerVariantProps & PopupMenuItemVariantProps & PopupMenuLinkVariantProps;
78
114
  type PopupMenuVariantInput = VariantInputs<PopupMenuVariantProps>;
79
115
 
116
+ interface PopupMenuNavigationEvent {
117
+ direction: "up" | "down" | "left" | "right";
118
+ item: PopupMenuItem | null;
119
+ level: number;
120
+ }
121
+
122
+ /** The item a menu opened from the keyboard highlights first. */
123
+ type PopupMenuInitialFocus = "first" | "last";
124
+
80
125
  declare class PopupMenuComponent implements PopupMenuVariantInput {
81
126
  #private;
82
127
  private readonly groupTemplateConfig;
@@ -84,8 +129,7 @@ declare class PopupMenuComponent implements PopupMenuVariantInput {
84
129
  private readonly nestedComponents;
85
130
  private readonly shortcutTemplateConfig;
86
131
  private readonly textTemplateConfig;
87
- protected readonly menuItems: _angular_core.Signal<_mirei_ts_collections.ImmutableSet<_mirei_ts_collections.IGroup<string | symbol, PopupMenuItem>>>;
88
- protected popupRef: PopupRef | null;
132
+ protected readonly menuItems: _angular_core.Signal<PopupMenuItemGroup[]>;
89
133
  /**
90
134
  * @description The anchor element that the context menu will be anchored to.
91
135
  * Only applicable when `precise` is set to `false`.
@@ -96,6 +140,15 @@ declare class PopupMenuComponent implements PopupMenuVariantInput {
96
140
  * Only applicable when `precise` is set to `false`.
97
141
  */
98
142
  readonly anchorConnectionPoint: _angular_core.InputSignal<ConnectionPoint | null | undefined>;
143
+ /**
144
+ * @description The accessible name of the root menu. Takes precedence over `ariaLabelledBy`.
145
+ */
146
+ readonly ariaLabel: _angular_core.InputSignal<string>;
147
+ /**
148
+ * @description The ids of the elements that name the root menu. When neither this nor `ariaLabel` is set, the
149
+ * menu is named by the target element if it has an id.
150
+ */
151
+ readonly ariaLabelledBy: _angular_core.InputSignal<string>;
99
152
  /**
100
153
  * @description The event that is emitted when the popup menu is closed.
101
154
  */
@@ -160,26 +213,44 @@ declare class PopupMenuComponent implements PopupMenuVariantInput {
160
213
  * @description The event that triggers the popup menu.
161
214
  */
162
215
  readonly trigger: _angular_core.InputSignal<string>;
216
+ readonly userClass: _angular_core.InputSignalWithTransform<string | undefined, ClassInputType>;
163
217
  /**
164
218
  * @description Sets the width of the popup menu.
165
219
  * This will be applied to the root menu and all submenus.
166
220
  */
167
221
  readonly width: _angular_core.InputSignal<string | number | undefined>;
168
- readonly userClass: _angular_core.InputSignalWithTransform<string | undefined, ClassInputType>;
169
222
  constructor();
223
+ /**
224
+ * @description Keeps focus where it is when the open menu closes, instead of returning it to the element that
225
+ * had it before the menu opened. Used when another menu takes over, as in a menubar.
226
+ */
170
227
  clearFocusRestoration(): void;
228
+ /**
229
+ * @description Closes the menu. Focus returns to the element that had it before the menu opened, unless focus
230
+ * has already moved elsewhere.
231
+ */
171
232
  closeMenu(): void;
172
233
  openMenu(viaContextMenuKey: boolean): void;
173
- openMenuViaKeyboard(viaContextMenuKey?: boolean): void;
234
+ /**
235
+ * @description Opens the menu as the keyboard does, with its first (or last) item highlighted.
236
+ * @param viaContextMenuKey Whether the menu opens from the ContextMenu key or Shift+F10.
237
+ * @param focus The item to highlight: "first" (ArrowDown, Enter, Space) or "last" (ArrowUp).
238
+ */
239
+ openMenuViaKeyboard(viaContextMenuKey?: boolean, focus?: PopupMenuInitialFocus): void;
240
+ /**
241
+ * @deprecated Focus now returns to the element that had it before the menu opened after every close.
242
+ */
174
243
  setRestoreFocusForKeyboard(): void;
244
+ private closeFromList;
175
245
  private createMenu;
176
246
  private getPopupAnchor;
247
+ private openFor;
248
+ private restoreFocus;
177
249
  private setMenuItemClickSubscription;
178
250
  private setNavigationSubscription;
179
- private setSubscriptions;
180
251
  private setTriggerSubscription;
181
252
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<PopupMenuComponent, never>;
182
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<PopupMenuComponent, "mona-popup-menu", never, { "anchor": { "alias": "anchor"; "required": false; "isSignal": true; }; "anchorConnectionPoint": { "alias": "anchorConnectionPoint"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "menuId": { "alias": "id"; "required": false; "isSignal": true; }; "minWidth": { "alias": "minWidth"; "required": false; "isSignal": true; }; "offset": { "alias": "offset"; "required": false; "isSignal": true; }; "popupConnectionPoint": { "alias": "popupConnectionPoint"; "required": false; "isSignal": true; }; "precise": { "alias": "precise"; "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; }; "trigger": { "alias": "trigger"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, { "close": "close"; "menuClick": "menuClick"; "navigate": "navigate"; "open": "open"; }, ["groupTemplateConfig", "iconTemplateConfig", "nestedComponents", "shortcutTemplateConfig", "textTemplateConfig"], never, true, never>;
253
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<PopupMenuComponent, "mona-popup-menu", never, { "anchor": { "alias": "anchor"; "required": false; "isSignal": true; }; "anchorConnectionPoint": { "alias": "anchorConnectionPoint"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "menuId": { "alias": "id"; "required": false; "isSignal": true; }; "minWidth": { "alias": "minWidth"; "required": false; "isSignal": true; }; "offset": { "alias": "offset"; "required": false; "isSignal": true; }; "popupConnectionPoint": { "alias": "popupConnectionPoint"; "required": false; "isSignal": true; }; "precise": { "alias": "precise"; "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; }; "trigger": { "alias": "trigger"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; }, { "close": "close"; "menuClick": "menuClick"; "navigate": "navigate"; "open": "open"; }, ["groupTemplateConfig", "iconTemplateConfig", "nestedComponents", "shortcutTemplateConfig", "textTemplateConfig"], never, true, never>;
183
254
  }
184
255
 
185
256
  declare const PopupMenuToken: InjectionToken<PopupMenuConfig>;
@@ -195,7 +266,7 @@ interface PopupMenuConfig {
195
266
  }
196
267
  interface PopupTemplateConfig {
197
268
  readonly origin: PopupMenuTemplateOrigin;
198
- readonly template: TemplateRef<any>;
269
+ readonly template: TemplateRef<unknown>;
199
270
  readonly type: PopupMenuTemplateType;
200
271
  }
201
272
  declare enum PopupMenuOrigin {
@@ -232,13 +303,10 @@ declare class PopupMenuCheckboxItemComponent implements PopupMenuConfig, OnInit
232
303
  protected readonly shortcutTemplateConfig: _angular_core.Signal<_nanahoshi_mona_ui_popup_menu.PopupTemplateConfig | undefined>;
233
304
  protected readonly textTemplateConfig: _angular_core.Signal<_nanahoshi_mona_ui_popup_menu.PopupTemplateConfig | undefined>;
234
305
  /**
235
- * @description Sets the checked state of the menu item.
306
+ * @description The checked state of the menu item. Activating the item toggles it (unless its `menuClick` is
307
+ * prevented) and emits `checkedChange`, so it works with or without a two-way binding.
236
308
  */
237
- readonly checked: _angular_core.InputSignal<boolean>;
238
- /**
239
- * @description Emits when the checked state of the menu item changes.
240
- */
241
- readonly checkedChange: _angular_core.OutputEmitterRef<boolean>;
309
+ readonly checked: _angular_core.ModelSignal<boolean>;
242
310
  /**
243
311
  * @description Sets the disabled state of the menu item.
244
312
  */
@@ -254,11 +322,15 @@ declare class PopupMenuCheckboxItemComponent implements PopupMenuConfig, OnInit
254
322
  readonly menuClick: _angular_core.OutputEmitterRef<PopupMenuItemClickEvent>;
255
323
  readonly origin: PopupMenuOrigin;
256
324
  readonly type = PopupMenuItemType.CheckboxMenuItem;
325
+ /**
326
+ * @description A value that identifies the item. It's the `value` of the item's `menuClick` events.
327
+ */
328
+ readonly value: _angular_core.InputSignal<unknown>;
257
329
  getPopupMenuItem(): PopupMenuItem[];
258
330
  ngOnInit(): void;
259
331
  private setSubscriptions;
260
332
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<PopupMenuCheckboxItemComponent, never>;
261
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<PopupMenuCheckboxItemComponent, "mona-popup-menu-checkbox-item", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, { "checkedChange": "checkedChange"; "menuClick": "menuClick"; }, ["shortcutTemplateConfig", "textTemplateConfig"], never, true, never>;
333
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<PopupMenuCheckboxItemComponent, "mona-popup-menu-checkbox-item", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "menuClick": "menuClick"; }, ["shortcutTemplateConfig", "textTemplateConfig"], never, true, never>;
262
334
  }
263
335
 
264
336
  declare class PopupMenuItemComponent implements PopupMenuConfig, OnInit {
@@ -282,11 +354,16 @@ declare class PopupMenuItemComponent implements PopupMenuConfig, OnInit {
282
354
  readonly menuClick: _angular_core.OutputEmitterRef<PopupMenuItemClickEvent>;
283
355
  readonly origin: PopupMenuOrigin;
284
356
  readonly type: PopupMenuItemType;
357
+ /**
358
+ * @description A value that identifies the item. It's the `value` of the item's `menuClick` events, so
359
+ * handlers don't depend on the label's text.
360
+ */
361
+ readonly value: _angular_core.InputSignal<unknown>;
285
362
  getPopupMenuItem(): PopupMenuItem[];
286
363
  ngOnInit(): void;
287
364
  private setSubscriptions;
288
365
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<PopupMenuItemComponent, never>;
289
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<PopupMenuItemComponent, "mona-popup-menu-item", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, { "menuClick": "menuClick"; }, ["iconTemplateConfig", "items", "shortcutTemplateConfig", "textTemplateConfig"], never, true, never>;
366
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<PopupMenuItemComponent, "mona-popup-menu-item", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "menuClick": "menuClick"; }, ["iconTemplateConfig", "items", "shortcutTemplateConfig", "textTemplateConfig"], never, true, never>;
290
367
  }
291
368
 
292
369
  declare class PopupMenuGroupComponent implements PopupMenuConfig {
@@ -339,7 +416,8 @@ declare class PopupMenuRadioItemComponent implements PopupMenuConfig, OnInit {
339
416
  readonly label: _angular_core.InputSignal<string>;
340
417
  /**
341
418
  * @description The click event of the menu item.
342
- * Emits when the menu item is selected by keyboard or mouse.
419
+ * Emits when the menu item is selected by keyboard or mouse, before the radio group selects it. Preventing it
420
+ * keeps the group's value and the menu open.
343
421
  */
344
422
  readonly menuClick: _angular_core.OutputEmitterRef<PopupMenuItemClickEvent>;
345
423
  readonly origin: PopupMenuOrigin;
@@ -19,6 +19,8 @@ interface PopupCloseEventOptions<R = unknown, E = unknown> {
19
19
  via?: PopupCloseSource;
20
20
  }
21
21
  declare enum PopupCloseSource {
22
+ /** A dialog action button, such as OK or Cancel. */
23
+ Action = "action",
22
24
  BackdropClick = "backdropClick",
23
25
  CloseButton = "closeButton",
24
26
  Escape = "escape",
@@ -6,7 +6,13 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
6
6
  import { VariantInputs } from '@nanahoshi/mona-ui/internal';
7
7
  import { VariantProps } from 'class-variance-authority';
8
8
 
9
- type SheetSide = "top" | "right" | "bottom" | "left";
9
+ /**
10
+ * Edge the sheet opens from. `left` and `right` are physical, whatever the direction; `start` and `end` follow it
11
+ * (`start` is the left edge in LTR and the right edge in RTL).
12
+ */
13
+ type SheetSide = "bottom" | "end" | "left" | "right" | "start" | "top";
14
+ /** A side resolved to a physical edge. */
15
+ type SheetPhysicalSide = "bottom" | "left" | "right" | "top";
10
16
 
11
17
  /**
12
18
  * `overflow-clip` rather than `overflow-hidden` is deliberate. `hidden` would make the sheet a scroll
@@ -14,12 +20,12 @@ type SheetSide = "top" | "right" | "bottom" | "left";
14
20
  * still has the sheet translated off-screen, which cancels the animation. `clip` cannot scroll.
15
21
  */
16
22
  declare const sheetBaseVariants: (props?: ({
17
- side?: "top" | "right" | "bottom" | "left" | null | undefined;
23
+ side?: "bottom" | "left" | "right" | "top" | null | undefined;
18
24
  } & class_variance_authority_types.ClassProp) | undefined) => string;
19
25
  type SheetVariantProps = VariantProps<typeof sheetBaseVariants>;
20
26
  type SheetVariantInput = VariantInputs<SheetVariantProps>;
21
27
 
22
- declare class SheetComponent implements SheetVariantInput {
28
+ declare class SheetComponent implements Omit<SheetVariantInput, "side"> {
23
29
  #private;
24
30
  private readonly sheetTemplate;
25
31
  protected readonly baseClass: _angular_core.Signal<string>;
@@ -49,10 +55,15 @@ declare class SheetComponent implements SheetVariantInput {
49
55
  readonly height: _angular_core.InputSignal<string | number | undefined>;
50
56
  /** @description Internationalization message overrides for accessible labels. */
51
57
  readonly messages: _angular_core.InputSignal<Partial<MonaSheetMessages> | undefined>;
52
- /** @description Edge of the viewport from which the sheet opens. @default "right" */
58
+ /**
59
+ * @description Edge of the viewport from which the sheet opens. `left` and `right` are physical; `start` and
60
+ * `end` follow the direction (`start` is the left edge in LTR and the right edge in RTL). The edge is fixed
61
+ * once the sheet opens. @default "right"
62
+ */
53
63
  readonly side: _angular_core.InputSignal<SheetSide>;
54
64
  /** @description Title displayed in the sheet header and used as its accessible name. */
55
65
  readonly title: _angular_core.InputSignal<string | undefined>;
66
+ /** @description Additional CSS classes merged onto the sheet panel via `tailwind-merge`. */
56
67
  readonly userClass: _angular_core.InputSignalWithTransform<string | undefined, ClassInputType>;
57
68
  /** @description Explicit sheet width. Numbers are interpreted as pixels. */
58
69
  readonly width: _angular_core.InputSignal<string | number | undefined>;
@@ -65,4 +76,4 @@ declare class SheetComponent implements SheetVariantInput {
65
76
  declare const SHEET_DEFAULT_MESSAGES: MonaSheetMessages;
66
77
 
67
78
  export { SHEET_DEFAULT_MESSAGES, SheetComponent };
68
- export type { SheetSide };
79
+ export type { SheetPhysicalSide, SheetSide };
@@ -4,6 +4,7 @@ import * as _nanahoshi_mona_ui_popup_menu from '@nanahoshi/mona-ui/popup-menu';
4
4
  import { PopupMenuComponent, PopupMenuItemClickEvent, PopupMenuCheckboxItemComponent, PopupMenuOrigin, PopupMenuGroupComponent, PopupMenuItemComponent, PopupMenuRadioGroupComponent, PopupMenuRadioItemComponent, PopupMenuSeparatorComponent, PopupMenuGroupTemplateDirective, PopupMenuTemplateOrigin, PopupMenuIconTemplateDirective, PopupMenuShortcutTemplateDirective, PopupMenuTextTemplateDirective } from '@nanahoshi/mona-ui/popup-menu';
5
5
  import * as _angular_core from '@angular/core';
6
6
  import { TemplateRef, ElementRef } from '@angular/core';
7
+ import { ButtonGroupMember, ButtonDirective } from '@nanahoshi/mona-ui/button';
7
8
  import * as class_variance_authority_types from 'class-variance-authority/types';
8
9
  import { VariantInputs } from '@nanahoshi/mona-ui/internal';
9
10
  import { VariantProps } from 'class-variance-authority';
@@ -16,13 +17,14 @@ declare const splitButtonThemeVariants: (props?: ({
16
17
  type SplitButtonVariantProps = VariantProps<typeof splitButtonThemeVariants>;
17
18
  type SplitButtonVariantInputs = VariantInputs<SplitButtonVariantProps>;
18
19
 
19
- declare class SplitButtonComponent implements SplitButtonVariantInputs {
20
+ declare class SplitButtonComponent implements ButtonGroupMember, SplitButtonVariantInputs {
20
21
  #private;
21
22
  private readonly menuItemComponents;
22
23
  protected readonly classes: _angular_core.Signal<string>;
23
24
  protected readonly effectiveMenuButtonAriaLabel: _angular_core.Signal<string>;
24
25
  protected readonly groupTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
25
26
  protected readonly iconTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
27
+ protected readonly mainButtonId: string;
26
28
  protected readonly mainButtonTextTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
27
29
  protected readonly menuButtonRef: _angular_core.Signal<ElementRef<HTMLButtonElement> | undefined>;
28
30
  protected readonly menuButtonTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
@@ -33,11 +35,11 @@ declare class SplitButtonComponent implements SplitButtonVariantInputs {
33
35
  protected readonly popupMenuRef: _angular_core.Signal<PopupMenuComponent | undefined>;
34
36
  protected readonly popupMenuRounded: _angular_core.Signal<"large" | "medium" | "none" | "small" | null | undefined>;
35
37
  protected readonly shortcutTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
36
- protected readonly splitButtonAriaLabel: _angular_core.Signal<string>;
37
38
  protected readonly textTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
38
39
  /**
39
- * @description Accessible name for the main action button.
40
- * Falls back to `"{text} splitbutton"` when empty.
40
+ * @description Accessible name for the main action button. Leave it empty when the button shows its name as
41
+ * text; set it (or `aria-labelledby`) when it shows only an icon. The pair of buttons is a group named by the
42
+ * main button.
41
43
  * @default ""
42
44
  */
43
45
  readonly ariaLabel: _angular_core.InputSignal<string>;
@@ -53,10 +55,27 @@ declare class SplitButtonComponent implements SplitButtonVariantInputs {
53
55
  readonly buttonClick: _angular_core.OutputEmitterRef<MouseEvent>;
54
56
  /**
55
57
  * @description Renders the component with reduced visual emphasis
56
- * and removes pointer interaction from both the main button and the menu toggle button.
58
+ * and removes pointer interaction from both the main button and the menu toggle button. Disabling it closes the
59
+ * open menu.
57
60
  * @default false
58
61
  */
59
62
  readonly disabled: _angular_core.InputSignal<boolean>;
63
+ /**
64
+ * The main and arrow buttons, which join a surrounding `mona-button-group`.
65
+ */
66
+ readonly groupButtons: _angular_core.Signal<readonly ButtonDirective[]>;
67
+ /**
68
+ * @description Renders the main button as a square for icon-only content, removing horizontal text padding.
69
+ * Set `aria-label` so the main button has a name.
70
+ * @default false
71
+ */
72
+ readonly iconOnly: _angular_core.InputSignal<boolean>;
73
+ /**
74
+ * @description Shows a loading indicator on the main button and keeps the menu from opening while an operation
75
+ * is in progress. Starting to load closes the open menu.
76
+ * @default false
77
+ */
78
+ readonly loading: _angular_core.InputSignal<boolean>;
60
79
  /**
61
80
  * @description Visual style preset applied to the button.
62
81
  * @default "default"
@@ -64,7 +83,8 @@ declare class SplitButtonComponent implements SplitButtonVariantInputs {
64
83
  readonly look: _angular_core.InputSignal<"default" | "error" | "ghost" | "info" | "outline" | "primary" | "secondary" | "success" | "warning" | null | undefined>;
65
84
  /**
66
85
  * @description Accessible name for the menu toggle button.
67
- * If not provided, falls back to the localized default message.
86
+ * If not provided, it's the localized "More {text} options", or "Show menu options" when the main button has no
87
+ * `text` or `aria-label`.
68
88
  * @default ""
69
89
  */
70
90
  readonly menuButtonAriaLabel: _angular_core.InputSignal<string>;
@@ -100,11 +120,13 @@ declare class SplitButtonComponent implements SplitButtonVariantInputs {
100
120
  */
101
121
  readonly userClass: _angular_core.InputSignal<string>;
102
122
  constructor();
123
+ protected onMainButtonClick(event: MouseEvent): void;
124
+ protected onMainButtonKeydown(event: KeyboardEvent): void;
103
125
  protected onMenuClose(): void;
104
126
  protected onMenuItemClick(event: PopupMenuItemClickEvent): void;
105
127
  protected onMenuOpen(): void;
106
128
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SplitButtonComponent, never>;
107
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SplitButtonComponent, "mona-split-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; }; "look": { "alias": "look"; "required": false; "isSignal": true; }; "menuButtonAriaLabel": { "alias": "menuButtonAriaLabel"; "required": false; "isSignal": true; }; "popupWidth": { "alias": "popupWidth"; "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; }; }, { "buttonClick": "buttonClick"; "menuItemClick": "menuItemClick"; }, ["menuItemComponents", "groupTemplate", "iconTemplate", "mainButtonTextTemplate", "menuButtonTemplate", "shortcutTemplate", "textTemplate"], never, true, never>;
129
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SplitButtonComponent, "mona-split-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; }; "menuButtonAriaLabel": { "alias": "menuButtonAriaLabel"; "required": false; "isSignal": true; }; "popupWidth": { "alias": "popupWidth"; "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; }; }, { "buttonClick": "buttonClick"; "menuItemClick": "menuItemClick"; }, ["menuItemComponents", "groupTemplate", "iconTemplate", "mainButtonTextTemplate", "menuButtonTemplate", "shortcutTemplate", "textTemplate"], never, true, never>;
108
130
  }
109
131
 
110
132
  declare class SplitButtonCheckboxItemComponent extends PopupMenuCheckboxItemComponent {
@@ -1,10 +1,11 @@
1
+ import * as _nanahoshi_mona_ui_internal from '@nanahoshi/mona-ui/internal';
2
+ import { VariantInputs, PhysicalOverlaySide, OverlaySide } from '@nanahoshi/mona-ui/internal';
1
3
  import * as _angular_core from '@angular/core';
2
4
  import { TemplateRef } from '@angular/core';
3
- import { Position } from '@nanahoshi/mona-ui/common';
4
5
  import { PopupAnchor, PopupOffset, ConnectionPoint } from '@nanahoshi/mona-ui/popup';
5
6
  import * as class_variance_authority_types from 'class-variance-authority/types';
6
- import { VariantInputs } from '@nanahoshi/mona-ui/internal';
7
7
  import { VariantProps } from 'class-variance-authority';
8
+ import { Position } from '@nanahoshi/mona-ui/common';
8
9
 
9
10
  declare const tooltipBaseThemeVariants: (props?: ({
10
11
  rounded?: "full" | "large" | "medium" | "none" | "small" | null | undefined;
@@ -20,11 +21,12 @@ declare class TooltipComponent implements TooltipVariantInputs {
20
21
  #private;
21
22
  protected readonly arrowClasses: _angular_core.Signal<string>;
22
23
  protected readonly baseClasses: _angular_core.Signal<string>;
23
- protected readonly currentArrowPosition: _angular_core.WritableSignal<Position>;
24
+ protected readonly currentArrowPosition: _angular_core.WritableSignal<PhysicalOverlaySide>;
24
25
  protected readonly templateRef: _angular_core.Signal<TemplateRef<any>>;
25
26
  protected readonly tooltipId: string;
26
27
  /**
27
- * @description Whether the tooltip is disabled. When disabled, the tooltip will not be shown.
28
+ * @description Whether the tooltip is disabled. When disabled, the tooltip will not be shown, and an open one
29
+ * closes.
28
30
  */
29
31
  readonly disabled: _angular_core.InputSignal<boolean>;
30
32
  /**
@@ -32,13 +34,15 @@ declare class TooltipComponent implements TooltipVariantInputs {
32
34
  */
33
35
  readonly hidden: _angular_core.OutputEmitterRef<void>;
34
36
  /**
35
- * @description The delay in milliseconds before hiding the tooltip after the trigger event ends.
37
+ * @description The delay in milliseconds before hiding the tooltip after the pointer or focus leaves. A pointer
38
+ * that leaves always gets a short grace, so it can move onto the tooltip.
36
39
  */
37
40
  readonly hideDelay: _angular_core.InputSignal<number>;
38
41
  /**
39
- * @description The position of the tooltip relative to the target element.
42
+ * @description The side of the target the tooltip opens on. `left` and `right` are physical; `start` and `end`
43
+ * follow the text direction. It flips to the opposite side when there isn't room.
40
44
  */
41
- readonly position: _angular_core.InputSignal<Position>;
45
+ readonly position: _angular_core.InputSignal<_nanahoshi_mona_ui_internal.OverlaySide>;
42
46
  /**
43
47
  * @description The border radius of the tooltip.
44
48
  */
@@ -53,7 +57,8 @@ declare class TooltipComponent implements TooltipVariantInputs {
53
57
  readonly shown: _angular_core.OutputEmitterRef<void>;
54
58
  /**
55
59
  * @description The target element(s) to which the tooltip is attached.
56
- * Can be an Element, ElementRef, or CSS selector string.
60
+ * Can be an Element, ElementRef, or CSS selector string. A selector matches elements anywhere in the document,
61
+ * including ones added later.
57
62
  */
58
63
  readonly target: _angular_core.InputSignal<PopupAnchor>;
59
64
  constructor();
@@ -63,36 +68,46 @@ declare class TooltipComponent implements TooltipVariantInputs {
63
68
 
64
69
  declare class TooltipDirective implements TooltipVariantInputs {
65
70
  #private;
66
- protected readonly originalTitle: _angular_core.WritableSignal<string>;
67
71
  /**
68
- * @description Whether the tooltip is disabled. When disabled, the tooltip will not be shown.
72
+ * @description Whether the tooltip is disabled. When disabled, the tooltip will not be shown, and an open one
73
+ * closes.
69
74
  * @default false
70
75
  */
71
76
  readonly disabled: _angular_core.InputSignal<boolean>;
72
77
  /**
73
78
  * @description The filter to select elements that will have tooltips.
74
- * It can be a CSS selector that matches elements within the host element.
79
+ * It can be a CSS selector that matches elements within the host element, including ones added later.
75
80
  * Only applies when `mode` is set to `content`.
76
81
  * @default "[title]"
77
82
  */
78
83
  readonly filter: _angular_core.InputSignal<string>;
79
84
  /**
80
- * @description The delay in milliseconds before hiding the tooltip.
85
+ * @description Emitted when the tooltip popup is hidden.
86
+ */
87
+ readonly hidden: _angular_core.OutputEmitterRef<void>;
88
+ /**
89
+ * @description The delay in milliseconds before hiding the tooltip after the pointer or focus leaves. A pointer
90
+ * that leaves always gets a short grace, so it can move onto the tooltip.
81
91
  * @default 0
82
92
  */
83
93
  readonly hideDelay: _angular_core.InputSignal<number>;
84
94
  /**
85
95
  * @description The mode of the tooltip.
86
- * "host" mode receives the tooltip from the host element's title attribute.
96
+ * "host" mode shows the host's tooltip content, or its title attribute.
87
97
  * "content" mode uses the title attribute of elements matching the filter.
88
98
  * @default "host"
89
99
  */
90
100
  readonly mode: _angular_core.InputSignal<"host" | "content">;
91
101
  /**
92
- * @description The position of the tooltip relative to the target element.
102
+ * @description The tooltip's content in host mode: text, or a template. Without it, the host's `title` is shown.
103
+ */
104
+ readonly monaTooltip: _angular_core.InputSignal<string | TemplateRef<unknown> | null | undefined>;
105
+ /**
106
+ * @description The side of the target the tooltip opens on. `left` and `right` are physical; `start` and `end`
107
+ * follow the text direction. It flips to the opposite side when there isn't room.
93
108
  * @default "top"
94
109
  */
95
- readonly position: _angular_core.InputSignal<Position>;
110
+ readonly position: _angular_core.InputSignal<_nanahoshi_mona_ui_internal.OverlaySide>;
96
111
  /**
97
112
  * @description The border radius of the tooltip.
98
113
  * @default "medium"
@@ -103,27 +118,35 @@ declare class TooltipDirective implements TooltipVariantInputs {
103
118
  * @default 0
104
119
  */
105
120
  readonly showDelay: _angular_core.InputSignal<number>;
106
- /**
107
- * @description Emitted when the tooltip popup is hidden.
108
- */
109
- readonly hidden: _angular_core.OutputEmitterRef<void>;
110
121
  /**
111
122
  * @description Emitted when the tooltip popup is shown.
112
123
  */
113
124
  readonly shown: _angular_core.OutputEmitterRef<void>;
114
125
  constructor();
115
126
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<TooltipDirective, never>;
116
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TooltipDirective, "[monaTooltip]", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "hideDelay": { "alias": "hideDelay"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "rounded": { "alias": "tooltipRounded"; "required": false; "isSignal": true; }; "showDelay": { "alias": "showDelay"; "required": false; "isSignal": true; }; }, { "hidden": "hidden"; "shown": "shown"; }, never, never, true, never>;
127
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TooltipDirective, "[monaTooltip]", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "hideDelay": { "alias": "hideDelay"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "monaTooltip": { "alias": "monaTooltip"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "rounded": { "alias": "tooltipRounded"; "required": false; "isSignal": true; }; "showDelay": { "alias": "showDelay"; "required": false; "isSignal": true; }; }, { "hidden": "hidden"; "shown": "shown"; }, never, never, true, never>;
117
128
  }
118
129
 
130
+ /**
131
+ * The side of its anchor a tooltip opens on. `left` and `right` are physical in every direction; `start` and `end`
132
+ * follow the text direction.
133
+ */
134
+ type TooltipPosition = OverlaySide;
135
+
119
136
  /**
120
137
  * Gets the appropriate offset for a tooltip based on its position.
121
138
  * The offset ensures proper spacing between the tooltip and its anchor element.
139
+ * @deprecated No longer used by the tooltip or popover, which keep the gap on the side they flip to and place
140
+ * `left` and `right` physically in RTL. Kept for existing callers.
122
141
  */
123
142
  declare function getOffsetForPosition(position: Position, arrowVisible: boolean): PopupOffset;
143
+ /**
144
+ * @deprecated No longer used by the tooltip or popover. Kept for existing callers.
145
+ */
124
146
  declare function getPositionConnectionPoints(position: Position): {
125
147
  anchor: ConnectionPoint;
126
148
  popup: ConnectionPoint;
127
149
  };
128
150
 
129
151
  export { TooltipComponent, TooltipDirective, getOffsetForPosition, getPositionConnectionPoints, tooltipArrowThemeVariants };
152
+ export type { TooltipPosition };