@nanahoshi/mona-ui 0.27.2 → 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (208) hide show
  1. package/docs/api/chart.md +2 -2
  2. package/docs/api/popup.md +1 -1
  3. package/docs/api/theme.md +2 -2
  4. package/docs/chart.md +14 -0
  5. package/docs/editor.md +2 -0
  6. package/docs/installation.md +147 -15
  7. package/docs/introduction.md +37 -15
  8. package/docs/theming-built-in-themes.md +67 -0
  9. package/docs/theming-custom-colors.md +274 -0
  10. package/docs/theming-custom-themes.md +168 -0
  11. package/docs/theming.md +164 -248
  12. package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +1089 -603
  13. package/fesm2022/nanahoshi-mona-ui-avatar.mjs +369 -184
  14. package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +658 -371
  15. package/fesm2022/nanahoshi-mona-ui-button-group.mjs +513 -359
  16. package/fesm2022/nanahoshi-mona-ui-button.mjs +622 -517
  17. package/fesm2022/nanahoshi-mona-ui-calendar.mjs +2070 -1573
  18. package/fesm2022/nanahoshi-mona-ui-card.mjs +620 -316
  19. package/fesm2022/nanahoshi-mona-ui-chart.mjs +61151 -64921
  20. package/fesm2022/nanahoshi-mona-ui-check-box.mjs +646 -317
  21. package/fesm2022/nanahoshi-mona-ui-chip.mjs +737 -516
  22. package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +441 -242
  23. package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +443 -390
  24. package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +1138 -814
  25. package/fesm2022/nanahoshi-mona-ui-color-palette.mjs +1114 -959
  26. package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +858 -504
  27. package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +1181 -742
  28. package/fesm2022/nanahoshi-mona-ui-command.mjs +1454 -853
  29. package/fesm2022/nanahoshi-mona-ui-common.mjs +569 -743
  30. package/fesm2022/nanahoshi-mona-ui-contextmenu.mjs +978 -532
  31. package/fesm2022/nanahoshi-mona-ui-date-input.mjs +283 -266
  32. package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +973 -451
  33. package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +1203 -658
  34. package/fesm2022/nanahoshi-mona-ui-dialog.mjs +1415 -936
  35. package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +1165 -568
  36. package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +1142 -677
  37. package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +1018 -734
  38. package/fesm2022/nanahoshi-mona-ui-editor.mjs +3589 -2122
  39. package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +577 -359
  40. package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +311 -151
  41. package/fesm2022/nanahoshi-mona-ui-filter.mjs +1086 -718
  42. package/fesm2022/nanahoshi-mona-ui-grid-grid-colgroup.component-NhONCVIX.mjs +77 -0
  43. package/fesm2022/nanahoshi-mona-ui-grid-grid-footer-row.component-Djv8ZnT5.mjs +480 -0
  44. package/fesm2022/nanahoshi-mona-ui-grid-grid-list.component-WbXAzGCa.mjs +470 -0
  45. package/fesm2022/nanahoshi-mona-ui-grid-grid-row.component-DkWTD3pN.mjs +2115 -0
  46. package/fesm2022/nanahoshi-mona-ui-grid-grid-virtual-list.component-DAHqTwBJ.mjs +330 -0
  47. package/fesm2022/nanahoshi-mona-ui-grid-grid.styles-BmLU-3zP.mjs +3766 -0
  48. package/fesm2022/nanahoshi-mona-ui-grid.mjs +5418 -2
  49. package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +1379 -1079
  50. package/fesm2022/nanahoshi-mona-ui-i18n.mjs +4451 -5077
  51. package/fesm2022/nanahoshi-mona-ui-internal-filter-input.mjs +344 -143
  52. package/fesm2022/nanahoshi-mona-ui-internal-indicator-icon.mjs +257 -127
  53. package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +2080 -1829
  54. package/fesm2022/nanahoshi-mona-ui-internal-popup-menu.mjs +103 -141
  55. package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +2498 -2706
  56. package/fesm2022/nanahoshi-mona-ui-internal.mjs +722 -1007
  57. package/fesm2022/nanahoshi-mona-ui-label.mjs +313 -202
  58. package/fesm2022/nanahoshi-mona-ui-list-box.mjs +1308 -1009
  59. package/fesm2022/nanahoshi-mona-ui-list-view.mjs +1411 -677
  60. package/fesm2022/nanahoshi-mona-ui-list.mjs +1 -6
  61. package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +556 -577
  62. package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +530 -573
  63. package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +530 -573
  64. package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +533 -576
  65. package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +520 -555
  66. package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +530 -571
  67. package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +520 -555
  68. package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +520 -555
  69. package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +530 -571
  70. package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +576 -591
  71. package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +530 -565
  72. package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +520 -555
  73. package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +520 -555
  74. package/fesm2022/nanahoshi-mona-ui-locales.mjs +59 -77
  75. package/fesm2022/nanahoshi-mona-ui-menubar.mjs +1411 -829
  76. package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +1326 -702
  77. package/fesm2022/nanahoshi-mona-ui-notification.mjs +763 -675
  78. package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +1306 -826
  79. package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +1122 -897
  80. package/fesm2022/nanahoshi-mona-ui-pager.mjs +1110 -651
  81. package/fesm2022/nanahoshi-mona-ui-placeholder.mjs +95 -53
  82. package/fesm2022/nanahoshi-mona-ui-popover.mjs +559 -397
  83. package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +2323 -1694
  84. package/fesm2022/nanahoshi-mona-ui-popup.mjs +1657 -1455
  85. package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +441 -267
  86. package/fesm2022/nanahoshi-mona-ui-query.mjs +211 -340
  87. package/fesm2022/nanahoshi-mona-ui-radio-button.mjs +1017 -548
  88. package/fesm2022/nanahoshi-mona-ui-rating.mjs +874 -624
  89. package/fesm2022/nanahoshi-mona-ui-scroll-view.mjs +1130 -917
  90. package/fesm2022/nanahoshi-mona-ui-segmented.mjs +705 -455
  91. package/fesm2022/nanahoshi-mona-ui-sheet.mjs +461 -283
  92. package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +2791 -2449
  93. package/fesm2022/nanahoshi-mona-ui-skeleton.mjs +145 -90
  94. package/fesm2022/nanahoshi-mona-ui-slider.mjs +1563 -1103
  95. package/fesm2022/nanahoshi-mona-ui-spinner.mjs +738 -673
  96. package/fesm2022/nanahoshi-mona-ui-split-button.mjs +1287 -647
  97. package/fesm2022/nanahoshi-mona-ui-splitter.mjs +1313 -909
  98. package/fesm2022/nanahoshi-mona-ui-stepper.mjs +761 -540
  99. package/fesm2022/nanahoshi-mona-ui-switch.mjs +611 -280
  100. package/fesm2022/nanahoshi-mona-ui-tabs.mjs +1393 -841
  101. package/fesm2022/nanahoshi-mona-ui-text-area.mjs +142 -73
  102. package/fesm2022/nanahoshi-mona-ui-text-box.mjs +876 -374
  103. package/fesm2022/nanahoshi-mona-ui-theme.mjs +1465 -1449
  104. package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +897 -443
  105. package/fesm2022/nanahoshi-mona-ui-time-selector.mjs +1100 -703
  106. package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +789 -538
  107. package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +1361 -805
  108. package/fesm2022/nanahoshi-mona-ui-window.mjs +2145 -1531
  109. package/fesm2022/nanahoshi-mona-ui.mjs +1 -8
  110. package/llms.txt +6 -2
  111. package/package.json +62 -23
  112. package/types/nanahoshi-mona-ui-auto-complete.d.ts +367 -233
  113. package/types/nanahoshi-mona-ui-avatar.d.ts +722 -649
  114. package/types/nanahoshi-mona-ui-breadcrumb.d.ts +134 -103
  115. package/types/nanahoshi-mona-ui-button-group.d.ts +213 -152
  116. package/types/nanahoshi-mona-ui-button.d.ts +227 -166
  117. package/types/nanahoshi-mona-ui-calendar.d.ts +324 -259
  118. package/types/nanahoshi-mona-ui-card.d.ts +125 -111
  119. package/types/nanahoshi-mona-ui-chart.d.ts +10483 -7326
  120. package/types/nanahoshi-mona-ui-check-box.d.ts +293 -180
  121. package/types/nanahoshi-mona-ui-chip.d.ts +208 -141
  122. package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +194 -133
  123. package/types/nanahoshi-mona-ui-collapsible.d.ts +103 -87
  124. package/types/nanahoshi-mona-ui-color-gradient.d.ts +281 -213
  125. package/types/nanahoshi-mona-ui-color-palette.d.ts +201 -138
  126. package/types/nanahoshi-mona-ui-color-picker.d.ts +283 -194
  127. package/types/nanahoshi-mona-ui-combo-box.d.ts +401 -262
  128. package/types/nanahoshi-mona-ui-command.d.ts +279 -191
  129. package/types/nanahoshi-mona-ui-common.d.ts +354 -385
  130. package/types/nanahoshi-mona-ui-contextmenu.d.ts +142 -117
  131. package/types/nanahoshi-mona-ui-date-input.d.ts +79 -96
  132. package/types/nanahoshi-mona-ui-date-picker.d.ts +338 -208
  133. package/types/nanahoshi-mona-ui-datetime-picker.d.ts +413 -259
  134. package/types/nanahoshi-mona-ui-dialog.d.ts +470 -381
  135. package/types/nanahoshi-mona-ui-dropdown-button.d.ts +216 -168
  136. package/types/nanahoshi-mona-ui-dropdown-list.d.ts +369 -243
  137. package/types/nanahoshi-mona-ui-dropdowns.d.ts +231 -217
  138. package/types/nanahoshi-mona-ui-editor.d.ts +302 -235
  139. package/types/nanahoshi-mona-ui-expansion-panel.d.ts +140 -109
  140. package/types/nanahoshi-mona-ui-fieldset.d.ts +98 -68
  141. package/types/nanahoshi-mona-ui-filter.d.ts +150 -124
  142. package/types/nanahoshi-mona-ui-grid.d.ts +1956 -1678
  143. package/types/nanahoshi-mona-ui-i18n-icu.d.ts +25 -34
  144. package/types/nanahoshi-mona-ui-i18n.d.ts +987 -1052
  145. package/types/nanahoshi-mona-ui-internal-filter-input.d.ts +118 -71
  146. package/types/nanahoshi-mona-ui-internal-indicator-icon.d.ts +56 -27
  147. package/types/nanahoshi-mona-ui-internal-list.d.ts +474 -408
  148. package/types/nanahoshi-mona-ui-internal-popup-menu.d.ts +143 -150
  149. package/types/nanahoshi-mona-ui-internal-tree.d.ts +493 -506
  150. package/types/nanahoshi-mona-ui-internal.d.ts +195 -213
  151. package/types/nanahoshi-mona-ui-label.d.ts +108 -78
  152. package/types/nanahoshi-mona-ui-list-box.d.ts +392 -322
  153. package/types/nanahoshi-mona-ui-list-view.d.ts +423 -282
  154. package/types/nanahoshi-mona-ui-list.d.ts +2 -1
  155. package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +540 -542
  156. package/types/nanahoshi-mona-ui-locales-de-de.d.ts +540 -542
  157. package/types/nanahoshi-mona-ui-locales-es-es.d.ts +540 -542
  158. package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +540 -542
  159. package/types/nanahoshi-mona-ui-locales-id-id.d.ts +540 -542
  160. package/types/nanahoshi-mona-ui-locales-it-it.d.ts +540 -542
  161. package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +540 -542
  162. package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +540 -542
  163. package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +540 -542
  164. package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +540 -542
  165. package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +540 -542
  166. package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +540 -542
  167. package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +540 -542
  168. package/types/nanahoshi-mona-ui-locales.d.ts +17 -19
  169. package/types/nanahoshi-mona-ui-menubar.d.ts +210 -181
  170. package/types/nanahoshi-mona-ui-multi-select.d.ts +416 -276
  171. package/types/nanahoshi-mona-ui-notification.d.ts +140 -151
  172. package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +407 -270
  173. package/types/nanahoshi-mona-ui-otp-input.d.ts +364 -241
  174. package/types/nanahoshi-mona-ui-pager.d.ts +379 -301
  175. package/types/nanahoshi-mona-ui-placeholder.d.ts +35 -28
  176. package/types/nanahoshi-mona-ui-popover.d.ts +176 -134
  177. package/types/nanahoshi-mona-ui-popup-menu.d.ts +488 -344
  178. package/types/nanahoshi-mona-ui-popup.d.ts +698 -560
  179. package/types/nanahoshi-mona-ui-progress-bar.d.ts +197 -137
  180. package/types/nanahoshi-mona-ui-query.d.ts +82 -88
  181. package/types/nanahoshi-mona-ui-radio-button.d.ts +434 -269
  182. package/types/nanahoshi-mona-ui-rating.d.ts +348 -254
  183. package/types/nanahoshi-mona-ui-scroll-view.d.ts +244 -172
  184. package/types/nanahoshi-mona-ui-segmented.d.ts +250 -175
  185. package/types/nanahoshi-mona-ui-sheet.d.ts +115 -63
  186. package/types/nanahoshi-mona-ui-sidebar.d.ts +653 -493
  187. package/types/nanahoshi-mona-ui-skeleton.d.ts +55 -39
  188. package/types/nanahoshi-mona-ui-slider.d.ts +503 -354
  189. package/types/nanahoshi-mona-ui-spinner.d.ts +125 -112
  190. package/types/nanahoshi-mona-ui-split-button.d.ts +241 -196
  191. package/types/nanahoshi-mona-ui-splitter.d.ts +124 -78
  192. package/types/nanahoshi-mona-ui-stepper.d.ts +206 -181
  193. package/types/nanahoshi-mona-ui-switch.d.ts +197 -131
  194. package/types/nanahoshi-mona-ui-tabs.d.ts +349 -248
  195. package/types/nanahoshi-mona-ui-text-area.d.ts +52 -36
  196. package/types/nanahoshi-mona-ui-text-box.d.ts +349 -218
  197. package/types/nanahoshi-mona-ui-theme.d.ts +415 -408
  198. package/types/nanahoshi-mona-ui-time-picker.d.ts +357 -217
  199. package/types/nanahoshi-mona-ui-time-selector.d.ts +255 -170
  200. package/types/nanahoshi-mona-ui-tooltip.d.ts +222 -144
  201. package/types/nanahoshi-mona-ui-tree-view.d.ts +466 -308
  202. package/types/nanahoshi-mona-ui-window.d.ts +494 -399
  203. package/types/nanahoshi-mona-ui.d.ts +1 -2
  204. package/fesm2022/nanahoshi-mona-ui-grid-grid-footer-row.component-DjNnVxHE.mjs +0 -181
  205. package/fesm2022/nanahoshi-mona-ui-grid-grid-list.component-ihQIKeP-.mjs +0 -208
  206. package/fesm2022/nanahoshi-mona-ui-grid-grid-row.component-BpnybNcs.mjs +0 -1082
  207. package/fesm2022/nanahoshi-mona-ui-grid-grid-virtual-list.component-CYlgfc7c.mjs +0 -186
  208. package/fesm2022/nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-LCzfCYd3.mjs +0 -7568
@@ -1,43 +1,38 @@
1
- import * as _angular_core from '@angular/core';
2
- import { ElementRef, OnInit, TemplateRef } from '@angular/core';
3
- import * as _nanahoshi_mona_ui_internal_popup_menu from '@nanahoshi/mona-ui/internal/popup-menu';
4
- import { PopupMenuItem, MenuItem, PopupMenuItemClickEvent, PopupMenuConfig, PopupMenuOrigin, PopupMenuItemType, PopupTemplateConfig, PopupMenuTemplateOrigin, PopupMenuTemplateType } from '@nanahoshi/mona-ui/internal/popup-menu';
5
- export { MenuItem, PopupMenuItem, PopupMenuItemClickEvent } from '@nanahoshi/mona-ui/internal/popup-menu';
6
- import { PreventableEvent, ClassInputType } from '@nanahoshi/mona-ui/common';
7
- import { PopupCloseEvent, ConnectionPoint, PopupOffset } from '@nanahoshi/mona-ui/popup';
8
- import * as class_variance_authority_types from 'class-variance-authority/types';
9
- import { VariantProps } from 'class-variance-authority';
10
- import { VariantInputs } from '@nanahoshi/mona-ui/internal';
11
-
1
+ import { MenuItem, MenuItem as MenuItem$1, PopupMenuConfig, PopupMenuItem, PopupMenuItem as PopupMenuItem$1, PopupMenuItemClickEvent, PopupMenuItemClickEvent as PopupMenuItemClickEvent$1, PopupMenuItemType, PopupMenuOrigin, PopupMenuTemplateOrigin, PopupMenuTemplateType, PopupTemplateConfig } from "@nanahoshi/mona-ui/internal/popup-menu";
2
+ import * as i0 from "@angular/core";
3
+ import { ElementRef, OnInit, TemplateRef } from "@angular/core";
4
+ import { ClassInputType, PreventableEvent } from "@nanahoshi/mona-ui/common";
5
+ import { ConnectionPoint, PopupCloseEvent, PopupOffset } from "@nanahoshi/mona-ui/popup";
6
+ import "rxjs";
7
+ import { VariantProps } from "class-variance-authority";
8
+ import { VariantInputs } from "@nanahoshi/mona-ui/internal";
12
9
  /** A run of consecutive menu items that share a group key. */
13
10
  interface PopupMenuItemGroup {
14
- readonly items: readonly PopupMenuItem[];
15
- readonly key: string | symbol;
16
- /** The id of the group's title element, when it has a title. */
17
- readonly labelId: string;
18
- /** The group's title: a string key, or a symbol key's description. Empty for ungrouped items. */
19
- readonly title: string;
11
+ readonly items: readonly PopupMenuItem$1[];
12
+ readonly key: string | symbol;
13
+ /** The id of the group's title element, when it has a title. */
14
+ readonly labelId: string;
15
+ /** The group's title: a string key, or a symbol key's description. Empty for ungrouped items. */
16
+ readonly title: string;
20
17
  }
21
-
22
- declare class PopupMenuCloseEvent extends PreventableEvent {
23
- constructor(originalEvent?: PopupCloseEvent);
18
+ export declare class PopupMenuCloseEvent extends PreventableEvent {
19
+ constructor(originalEvent?: PopupCloseEvent);
24
20
  }
25
-
26
21
  declare const popupMenuBaseThemeVariants: (props?: ({
27
- rounded?: "small" | "medium" | "large" | "none" | null | undefined;
28
- } & class_variance_authority_types.ClassProp) | undefined) => string;
22
+ rounded?: "small" | "medium" | "large" | "none" | null | undefined;
23
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
29
24
  declare const popupMenuContainerThemeVariants: (props?: ({
30
- rounded?: "small" | "medium" | "large" | "none" | null | undefined;
31
- } & class_variance_authority_types.ClassProp) | undefined) => string;
25
+ rounded?: "small" | "medium" | "large" | "none" | null | undefined;
26
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
32
27
  declare const popupMenuGroupHeaderThemeVariants: (props?: ({
33
- size?: "small" | "medium" | "large" | null | undefined;
34
- } & class_variance_authority_types.ClassProp) | undefined) => string;
35
- declare const popupMenuIconContainerThemeVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
28
+ size?: "small" | "medium" | "large" | null | undefined;
29
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
30
+ declare const popupMenuIconContainerThemeVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
36
31
  declare const popupMenuItemThemeVariants: (props?: ({
37
- rounded?: "small" | "medium" | "large" | "none" | null | undefined;
38
- size?: "small" | "medium" | "large" | null | undefined;
39
- } & class_variance_authority_types.ClassProp) | undefined) => string;
40
- declare const popupMenuLinkThemeVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
32
+ rounded?: "small" | "medium" | "large" | "none" | null | undefined;
33
+ size?: "small" | "medium" | "large" | null | undefined;
34
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
35
+ declare const popupMenuLinkThemeVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
41
36
  type PopupMenuBaseVariantProps = VariantProps<typeof popupMenuBaseThemeVariants>;
42
37
  type PopupMenuContainerVariantProps = VariantProps<typeof popupMenuContainerThemeVariants>;
43
38
  type PopupMenuGroupHeaderVariantProps = VariantProps<typeof popupMenuGroupHeaderThemeVariants>;
@@ -46,333 +41,482 @@ type PopupMenuItemVariantProps = VariantProps<typeof popupMenuItemThemeVariants>
46
41
  type PopupMenuLinkVariantProps = VariantProps<typeof popupMenuLinkThemeVariants>;
47
42
  type PopupMenuVariantProps = PopupMenuBaseVariantProps & PopupMenuContainerVariantProps & PopupMenuGroupHeaderVariantProps & PopupMenuIconContainerVariantProps & PopupMenuItemVariantProps & PopupMenuLinkVariantProps;
48
43
  type PopupMenuVariantInput = VariantInputs<PopupMenuVariantProps>;
49
-
50
- interface PopupMenuNavigationEvent {
51
- direction: "up" | "down" | "left" | "right";
52
- item: PopupMenuItem | null;
53
- level: number;
44
+ export interface PopupMenuNavigationEvent {
45
+ direction: "up" | "down" | "left" | "right";
46
+ item: PopupMenuItem$1 | null;
47
+ level: number;
54
48
  }
55
-
56
49
  /** The item a menu opened from the keyboard highlights first. */
57
50
  type PopupMenuInitialFocus = "first" | "last";
58
-
59
51
  /**
60
52
  * What opens a popup menu: a click on the target, a right-click on it, or `"none"` to open it only through
61
53
  * `openMenu()`.
62
54
  */
63
- type PopupMenuTrigger = "click" | "contextmenu" | "none";
64
-
65
- declare class PopupMenuComponent implements PopupMenuVariantInput {
66
- #private;
67
- private readonly groupTemplateConfig;
68
- private readonly iconTemplateConfig;
69
- private readonly nestedComponents;
70
- private readonly shortcutTemplateConfig;
71
- private readonly textTemplateConfig;
72
- protected readonly menuItems: _angular_core.Signal<PopupMenuItemGroup[]>;
73
- /**
74
- * @description The element to position the menu against, when it isn't the `target`.
75
- * Ignored when `openAtPointer` is set.
76
- */
77
- readonly anchor: _angular_core.InputSignal<Element | ElementRef<HTMLElement> | undefined>;
78
- /**
79
- * @description The point on the anchor that the menu attaches to.
80
- * Ignored when `openAtPointer` is set.
81
- */
82
- readonly anchorConnectionPoint: _angular_core.InputSignal<ConnectionPoint | null | undefined>;
83
- /**
84
- * @description The accessible name of the root menu. Takes precedence over `aria-labelledby`.
85
- */
86
- readonly ariaLabel: _angular_core.InputSignal<string>;
87
- /**
88
- * @description The ids of the elements that name the root menu. When neither this nor `aria-label` is set, the
89
- * menu is named by the target element if it has an id.
90
- */
91
- readonly ariaLabelledBy: _angular_core.InputSignal<string>;
92
- /**
93
- * @description The event that is emitted when the popup menu is closed.
94
- */
95
- readonly close: _angular_core.OutputEmitterRef<PopupMenuCloseEvent>;
96
- /**
97
- * @description The items to render in the popup menu.
98
- * If provided, it will override the menu items defined by projected menu item components.
99
- */
100
- readonly items: _angular_core.InputSignal<Iterable<PopupMenuItem | MenuItem>>;
101
- /**
102
- * @description The event that is emitted when a menu item is clicked.
103
- */
104
- readonly menuClick: _angular_core.OutputEmitterRef<PopupMenuItemClickEvent>;
105
- /**
106
- * @description The id of the popup menu's root element.
107
- */
108
- readonly menuId: _angular_core.InputSignal<string>;
109
- /**
110
- * @description Sets the minimum width of the popup menu.
111
- * This will be applied to the root menu and all submenus.
112
- */
113
- readonly minWidth: _angular_core.InputSignal<string | number | undefined>;
114
- /**
115
- * @description Emitted when an arrow key moves through the menu, or tries to leave it.
116
- */
117
- readonly navigate: _angular_core.OutputEmitterRef<PopupMenuNavigationEvent>;
118
- /**
119
- * @description The distance between the menu and its anchor.
120
- */
121
- readonly offset: _angular_core.InputSignal<PopupOffset | undefined>;
122
- /**
123
- * @description The event that is emitted when the popup menu is opened.
124
- */
125
- readonly open: _angular_core.OutputEmitterRef<void>;
126
- /**
127
- * @description Opens the menu where the pointer is, instead of against the `anchor` or `target`. Opened from the
128
- * keyboard, it opens at the center of the target.
129
- */
130
- readonly openAtPointer: _angular_core.InputSignal<boolean>;
131
- /**
132
- * @description The point on the menu that attaches to the anchor.
133
- * Ignored when `openAtPointer` is set.
134
- */
135
- readonly popupConnectionPoint: _angular_core.InputSignal<ConnectionPoint | null | undefined>;
136
- /**
137
- * @description Sets the border radius of the popup menu.
138
- * This will be applied to the root menu and all submenus.
139
- */
140
- readonly rounded: _angular_core.InputSignal<"small" | "medium" | "large" | "none" | null | undefined>;
141
- /**
142
- * @description Sets the size of the popup menu.
143
- * This will be applied to the root menu and all submenus.
144
- */
145
- readonly size: _angular_core.InputSignal<"small" | "medium" | "large" | null | undefined>;
146
- /**
147
- * @description The element that opens the menu. The menu is positioned against it unless `anchor` is set.
148
- */
149
- readonly target: _angular_core.InputSignal<Element | ElementRef<HTMLElement>>;
150
- /**
151
- * @description What opens the menu: a click on the target, a right-click on it, or `"none"` to open it only
152
- * through `openMenu()`.
153
- */
154
- readonly trigger: _angular_core.InputSignal<PopupMenuTrigger>;
155
- /**
156
- * @description Extra classes for the menu's popup.
157
- */
158
- readonly userClass: _angular_core.InputSignalWithTransform<string | undefined, ClassInputType>;
159
- /**
160
- * @description Sets the width of the popup menu.
161
- * This will be applied to the root menu and all submenus.
162
- */
163
- readonly width: _angular_core.InputSignal<string | number | undefined>;
164
- constructor();
165
- /**
166
- * @description Keeps focus where it is when the open menu closes, instead of returning it to the element that
167
- * had it before the menu opened. Used when another menu takes over, as in a menubar.
168
- */
169
- clearFocusRestoration(): void;
170
- /**
171
- * @description Closes the menu. Focus returns to the element that had it before the menu opened, unless focus
172
- * has already moved elsewhere.
173
- */
174
- closeMenu(): void;
175
- /**
176
- * @description Opens the menu, as if the target had been clicked.
177
- * @param viaContextMenuKey Whether the menu opens from the ContextMenu key or Shift+F10.
178
- */
179
- openMenu(viaContextMenuKey?: boolean): void;
180
- /**
181
- * @description Opens the menu as the keyboard does, with its first (or last) item highlighted.
182
- * @param viaContextMenuKey Whether the menu opens from the ContextMenu key or Shift+F10.
183
- * @param focus The item to highlight: "first" (ArrowDown, Enter, Space) or "last" (ArrowUp).
184
- */
185
- openMenuViaKeyboard(viaContextMenuKey?: boolean, focus?: PopupMenuInitialFocus): void;
186
- /**
187
- * @deprecated Focus now returns to the element that had it before the menu opened after every close.
188
- */
189
- setRestoreFocusForKeyboard(): void;
190
- private closeFromList;
191
- private createMenu;
192
- private getPopupAnchor;
193
- private openFor;
194
- private restoreFocus;
195
- private setMenuItemClickSubscription;
196
- private setNavigationSubscription;
197
- private setTriggerSubscription;
198
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<PopupMenuComponent, never>;
199
- 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": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "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; }; "openAtPointer": { "alias": "openAtPointer"; "required": false; "isSignal": true; }; "popupConnectionPoint": { "alias": "popupConnectionPoint"; "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>;
55
+ export type PopupMenuTrigger = "click" | "contextmenu" | "none";
56
+ export declare class PopupMenuComponent implements PopupMenuVariantInput {
57
+ #private;
58
+ private readonly groupTemplateConfig;
59
+ private readonly iconTemplateConfig;
60
+ private readonly nestedComponents;
61
+ private readonly shortcutTemplateConfig;
62
+ private readonly textTemplateConfig;
63
+ protected readonly menuItems: import("@angular/core").Signal<PopupMenuItemGroup[]>;
64
+ /**
65
+ * @description The element to position the menu against, when it isn't the `target`.
66
+ * Ignored when `openAtPointer` is set.
67
+ */
68
+ readonly anchor: import("@angular/core").InputSignal<Element | ElementRef<HTMLElement> | undefined>;
69
+ /**
70
+ * @description The point on the anchor that the menu attaches to.
71
+ * Ignored when `openAtPointer` is set.
72
+ */
73
+ readonly anchorConnectionPoint: import("@angular/core").InputSignal<ConnectionPoint | null | undefined>;
74
+ /**
75
+ * @description The accessible name of the root menu. Takes precedence over `aria-labelledby`.
76
+ */
77
+ readonly ariaLabel: import("@angular/core").InputSignal<string>;
78
+ /**
79
+ * @description The ids of the elements that name the root menu. When neither this nor `aria-label` is set, the
80
+ * menu is named by the target element if it has an id.
81
+ */
82
+ readonly ariaLabelledBy: import("@angular/core").InputSignal<string>;
83
+ /**
84
+ * @description The event that is emitted when the popup menu is closed.
85
+ */
86
+ readonly close: import("@angular/core").OutputEmitterRef<PopupMenuCloseEvent>;
87
+ /**
88
+ * @description The items to render in the popup menu.
89
+ * If provided, it will override the menu items defined by projected menu item components.
90
+ */
91
+ readonly items: import("@angular/core").InputSignal<Iterable<PopupMenuItem$1 | MenuItem$1>>;
92
+ /**
93
+ * @description The event that is emitted when a menu item is clicked.
94
+ */
95
+ readonly menuClick: import("@angular/core").OutputEmitterRef<PopupMenuItemClickEvent$1>;
96
+ /**
97
+ * @description The id of the popup menu's root element.
98
+ */
99
+ readonly menuId: import("@angular/core").InputSignal<string>;
100
+ /**
101
+ * @description Sets the minimum width of the popup menu.
102
+ * This will be applied to the root menu and all submenus.
103
+ */
104
+ readonly minWidth: import("@angular/core").InputSignal<string | number | undefined>;
105
+ /**
106
+ * @description Emitted when an arrow key moves through the menu, or tries to leave it.
107
+ */
108
+ readonly navigate: import("@angular/core").OutputEmitterRef<PopupMenuNavigationEvent>;
109
+ /**
110
+ * @description The distance between the menu and its anchor.
111
+ */
112
+ readonly offset: import("@angular/core").InputSignal<PopupOffset | undefined>;
113
+ /**
114
+ * @description The event that is emitted when the popup menu is opened.
115
+ */
116
+ readonly open: import("@angular/core").OutputEmitterRef<void>;
117
+ /**
118
+ * @description Opens the menu where the pointer is, instead of against the `anchor` or `target`. Opened from the
119
+ * keyboard, it opens at the center of the target.
120
+ */
121
+ readonly openAtPointer: import("@angular/core").InputSignal<boolean>;
122
+ /**
123
+ * @description The point on the menu that attaches to the anchor.
124
+ * Ignored when `openAtPointer` is set.
125
+ */
126
+ readonly popupConnectionPoint: import("@angular/core").InputSignal<ConnectionPoint | null | undefined>;
127
+ /**
128
+ * @description Sets the border radius of the popup menu.
129
+ * This will be applied to the root menu and all submenus.
130
+ */
131
+ readonly rounded: import("@angular/core").InputSignal<"small" | "medium" | "large" | "none" | null | undefined>;
132
+ /**
133
+ * @description Sets the size of the popup menu.
134
+ * This will be applied to the root menu and all submenus.
135
+ */
136
+ readonly size: import("@angular/core").InputSignal<"small" | "medium" | "large" | null | undefined>;
137
+ /**
138
+ * @description The element that opens the menu. The menu is positioned against it unless `anchor` is set.
139
+ */
140
+ readonly target: import("@angular/core").InputSignal<Element | ElementRef<HTMLElement>>;
141
+ /**
142
+ * @description What opens the menu: a click on the target, a right-click on it, or `"none"` to open it only
143
+ * through `openMenu()`.
144
+ */
145
+ readonly trigger: import("@angular/core").InputSignal<PopupMenuTrigger>;
146
+ /**
147
+ * @description Extra classes for the menu's popup.
148
+ */
149
+ readonly userClass: import("@angular/core").InputSignalWithTransform<string | undefined, ClassInputType>;
150
+ /**
151
+ * @description Sets the width of the popup menu.
152
+ * This will be applied to the root menu and all submenus.
153
+ */
154
+ readonly width: import("@angular/core").InputSignal<string | number | undefined>;
155
+ constructor();
156
+ /**
157
+ * @description Keeps focus where it is when the open menu closes, instead of returning it to the element that
158
+ * had it before the menu opened. Used when another menu takes over, as in a menubar.
159
+ */
160
+ clearFocusRestoration(): void;
161
+ /**
162
+ * @description Closes the menu. Focus returns to the element that had it before the menu opened, unless focus
163
+ * has already moved elsewhere.
164
+ */
165
+ closeMenu(): void;
166
+ /**
167
+ * @description Opens the menu, as if the target had been clicked.
168
+ * @param viaContextMenuKey Whether the menu opens from the ContextMenu key or Shift+F10.
169
+ */
170
+ openMenu(viaContextMenuKey?: boolean): void;
171
+ /**
172
+ * @description Opens the menu as the keyboard does, with its first (or last) item highlighted.
173
+ * @param viaContextMenuKey Whether the menu opens from the ContextMenu key or Shift+F10.
174
+ * @param focus The item to highlight: "first" (ArrowDown, Enter, Space) or "last" (ArrowUp).
175
+ */
176
+ openMenuViaKeyboard(viaContextMenuKey?: boolean, focus?: PopupMenuInitialFocus): void;
177
+ /**
178
+ * @deprecated Focus now returns to the element that had it before the menu opened after every close.
179
+ */
180
+ setRestoreFocusForKeyboard(): void;
181
+ private closeFromList;
182
+ private createMenu;
183
+ private getPopupAnchor;
184
+ private openFor;
185
+ private restoreFocus;
186
+ private setMenuItemClickSubscription;
187
+ private setNavigationSubscription;
188
+ private setTriggerSubscription;
189
+ static ɵfac: i0.ɵɵFactoryDeclaration<PopupMenuComponent, never>;
190
+ static ɵcmp: i0.ɵɵComponentDeclaration<PopupMenuComponent, "mona-popup-menu", never, {
191
+ "anchor": {
192
+ "alias": "anchor";
193
+ "required": false;
194
+ "isSignal": true;
195
+ };
196
+ "anchorConnectionPoint": {
197
+ "alias": "anchorConnectionPoint";
198
+ "required": false;
199
+ "isSignal": true;
200
+ };
201
+ "ariaLabel": {
202
+ "alias": "aria-label";
203
+ "required": false;
204
+ "isSignal": true;
205
+ };
206
+ "ariaLabelledBy": {
207
+ "alias": "aria-labelledby";
208
+ "required": false;
209
+ "isSignal": true;
210
+ };
211
+ "items": {
212
+ "alias": "items";
213
+ "required": false;
214
+ "isSignal": true;
215
+ };
216
+ "menuId": {
217
+ "alias": "id";
218
+ "required": false;
219
+ "isSignal": true;
220
+ };
221
+ "minWidth": {
222
+ "alias": "minWidth";
223
+ "required": false;
224
+ "isSignal": true;
225
+ };
226
+ "offset": {
227
+ "alias": "offset";
228
+ "required": false;
229
+ "isSignal": true;
230
+ };
231
+ "openAtPointer": {
232
+ "alias": "openAtPointer";
233
+ "required": false;
234
+ "isSignal": true;
235
+ };
236
+ "popupConnectionPoint": {
237
+ "alias": "popupConnectionPoint";
238
+ "required": false;
239
+ "isSignal": true;
240
+ };
241
+ "rounded": {
242
+ "alias": "rounded";
243
+ "required": false;
244
+ "isSignal": true;
245
+ };
246
+ "size": {
247
+ "alias": "size";
248
+ "required": false;
249
+ "isSignal": true;
250
+ };
251
+ "target": {
252
+ "alias": "target";
253
+ "required": true;
254
+ "isSignal": true;
255
+ };
256
+ "trigger": {
257
+ "alias": "trigger";
258
+ "required": false;
259
+ "isSignal": true;
260
+ };
261
+ "userClass": {
262
+ "alias": "class";
263
+ "required": false;
264
+ "isSignal": true;
265
+ };
266
+ "width": {
267
+ "alias": "width";
268
+ "required": false;
269
+ "isSignal": true;
270
+ };
271
+ }, {
272
+ "close": "close";
273
+ "menuClick": "menuClick";
274
+ "navigate": "navigate";
275
+ "open": "open";
276
+ }, ["groupTemplateConfig", "iconTemplateConfig", "nestedComponents", "shortcutTemplateConfig", "textTemplateConfig"], never, true, never>;
200
277
  }
201
-
202
- declare class PopupMenuCheckboxItemComponent implements PopupMenuConfig, OnInit {
203
- #private;
204
- protected readonly shortcutTemplateConfig: _angular_core.Signal<_nanahoshi_mona_ui_internal_popup_menu.PopupTemplateConfig | undefined>;
205
- protected readonly textTemplateConfig: _angular_core.Signal<_nanahoshi_mona_ui_internal_popup_menu.PopupTemplateConfig | undefined>;
206
- /**
207
- * @description The checked state of the menu item. Activating the item toggles it (unless its `menuClick` is
208
- * prevented) and emits `checkedChange`, so it works with or without a two-way binding.
209
- */
210
- readonly checked: _angular_core.ModelSignal<boolean>;
211
- /**
212
- * @description Sets the disabled state of the menu item.
213
- */
214
- readonly disabled: _angular_core.InputSignal<boolean>;
215
- /**
216
- * @description The text of the menu item.
217
- */
218
- readonly label: _angular_core.InputSignal<string>;
219
- /**
220
- * @description The click event of the menu item.
221
- * Emits when the menu item is selected by keyboard or mouse.
222
- */
223
- readonly menuClick: _angular_core.OutputEmitterRef<PopupMenuItemClickEvent>;
224
- readonly origin: PopupMenuOrigin;
225
- readonly type = PopupMenuItemType.CheckboxMenuItem;
226
- /**
227
- * @description A value that identifies the item. It's the `value` of the item's `menuClick` events.
228
- */
229
- readonly value: _angular_core.InputSignal<unknown>;
230
- getPopupMenuItem(): PopupMenuItem[];
231
- ngOnInit(): void;
232
- private setSubscriptions;
233
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<PopupMenuCheckboxItemComponent, never>;
234
- 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>;
278
+ export declare class PopupMenuCheckboxItemComponent implements PopupMenuConfig, OnInit {
279
+ #private;
280
+ protected readonly shortcutTemplateConfig: import("@angular/core").Signal<import("@nanahoshi/mona-ui/internal/popup-menu").PopupTemplateConfig | undefined>;
281
+ protected readonly textTemplateConfig: import("@angular/core").Signal<import("@nanahoshi/mona-ui/internal/popup-menu").PopupTemplateConfig | undefined>;
282
+ /**
283
+ * @description The checked state of the menu item. Activating the item toggles it (unless its `menuClick` is
284
+ * prevented) and emits `checkedChange`, so it works with or without a two-way binding.
285
+ */
286
+ readonly checked: import("@angular/core").ModelSignal<boolean>;
287
+ /**
288
+ * @description Sets the disabled state of the menu item.
289
+ */
290
+ readonly disabled: import("@angular/core").InputSignal<boolean>;
291
+ /**
292
+ * @description The text of the menu item.
293
+ */
294
+ readonly label: import("@angular/core").InputSignal<string>;
295
+ /**
296
+ * @description The click event of the menu item.
297
+ * Emits when the menu item is selected by keyboard or mouse.
298
+ */
299
+ readonly menuClick: import("@angular/core").OutputEmitterRef<PopupMenuItemClickEvent$1>;
300
+ readonly origin: PopupMenuOrigin;
301
+ readonly type = PopupMenuItemType.CheckboxMenuItem;
302
+ /**
303
+ * @description A value that identifies the item. It's the `value` of the item's `menuClick` events.
304
+ */
305
+ readonly value: import("@angular/core").InputSignal<unknown>;
306
+ getPopupMenuItem(): PopupMenuItem$1[];
307
+ ngOnInit(): void;
308
+ private setSubscriptions;
309
+ static ɵfac: i0.ɵɵFactoryDeclaration<PopupMenuCheckboxItemComponent, never>;
310
+ static ɵcmp: i0.ɵɵComponentDeclaration<PopupMenuCheckboxItemComponent, "mona-popup-menu-checkbox-item", never, {
311
+ "checked": {
312
+ "alias": "checked";
313
+ "required": false;
314
+ "isSignal": true;
315
+ };
316
+ "disabled": {
317
+ "alias": "disabled";
318
+ "required": false;
319
+ "isSignal": true;
320
+ };
321
+ "label": {
322
+ "alias": "label";
323
+ "required": false;
324
+ "isSignal": true;
325
+ };
326
+ "value": {
327
+ "alias": "value";
328
+ "required": false;
329
+ "isSignal": true;
330
+ };
331
+ }, {
332
+ "checked": "checkedChange";
333
+ "menuClick": "menuClick";
334
+ }, ["shortcutTemplateConfig", "textTemplateConfig"], never, true, never>;
235
335
  }
236
-
237
- declare class PopupMenuItemComponent implements PopupMenuConfig, OnInit {
238
- #private;
239
- protected readonly iconTemplateConfig: _angular_core.Signal<_nanahoshi_mona_ui_internal_popup_menu.PopupTemplateConfig | undefined>;
240
- protected readonly items: _angular_core.Signal<readonly PopupMenuConfig[]>;
241
- protected readonly shortcutTemplateConfig: _angular_core.Signal<_nanahoshi_mona_ui_internal_popup_menu.PopupTemplateConfig | undefined>;
242
- protected readonly textTemplateConfig: _angular_core.Signal<_nanahoshi_mona_ui_internal_popup_menu.PopupTemplateConfig | undefined>;
243
- /**
244
- * @description Sets the disabled state of the menu item.
245
- */
246
- readonly disabled: _angular_core.InputSignal<boolean>;
247
- /**
248
- * @description The text of the menu item.
249
- */
250
- readonly label: _angular_core.InputSignal<string>;
251
- /**
252
- * @description The click event of the menu item.
253
- * Emits when the menu item is selected by keyboard or mouse.
254
- */
255
- readonly menuClick: _angular_core.OutputEmitterRef<PopupMenuItemClickEvent>;
256
- readonly origin: PopupMenuOrigin;
257
- readonly type: PopupMenuItemType;
258
- /**
259
- * @description A value that identifies the item. It's the `value` of the item's `menuClick` events, so
260
- * handlers don't depend on the label's text.
261
- */
262
- readonly value: _angular_core.InputSignal<unknown>;
263
- getPopupMenuItem(): PopupMenuItem[];
264
- ngOnInit(): void;
265
- private setSubscriptions;
266
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<PopupMenuItemComponent, never>;
267
- 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>;
336
+ export declare class PopupMenuItemComponent implements PopupMenuConfig, OnInit {
337
+ #private;
338
+ protected readonly iconTemplateConfig: import("@angular/core").Signal<import("@nanahoshi/mona-ui/internal/popup-menu").PopupTemplateConfig | undefined>;
339
+ protected readonly items: import("@angular/core").Signal<readonly PopupMenuConfig[]>;
340
+ protected readonly shortcutTemplateConfig: import("@angular/core").Signal<import("@nanahoshi/mona-ui/internal/popup-menu").PopupTemplateConfig | undefined>;
341
+ protected readonly textTemplateConfig: import("@angular/core").Signal<import("@nanahoshi/mona-ui/internal/popup-menu").PopupTemplateConfig | undefined>;
342
+ /**
343
+ * @description Sets the disabled state of the menu item.
344
+ */
345
+ readonly disabled: import("@angular/core").InputSignal<boolean>;
346
+ /**
347
+ * @description The text of the menu item.
348
+ */
349
+ readonly label: import("@angular/core").InputSignal<string>;
350
+ /**
351
+ * @description The click event of the menu item.
352
+ * Emits when the menu item is selected by keyboard or mouse.
353
+ */
354
+ readonly menuClick: import("@angular/core").OutputEmitterRef<PopupMenuItemClickEvent$1>;
355
+ readonly origin: PopupMenuOrigin;
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: import("@angular/core").InputSignal<unknown>;
362
+ getPopupMenuItem(): PopupMenuItem$1[];
363
+ ngOnInit(): void;
364
+ private setSubscriptions;
365
+ static ɵfac: i0.ɵɵFactoryDeclaration<PopupMenuItemComponent, never>;
366
+ static ɵcmp: i0.ɵɵComponentDeclaration<PopupMenuItemComponent, "mona-popup-menu-item", never, {
367
+ "disabled": {
368
+ "alias": "disabled";
369
+ "required": false;
370
+ "isSignal": true;
371
+ };
372
+ "label": {
373
+ "alias": "label";
374
+ "required": false;
375
+ "isSignal": true;
376
+ };
377
+ "value": {
378
+ "alias": "value";
379
+ "required": false;
380
+ "isSignal": true;
381
+ };
382
+ }, {
383
+ "menuClick": "menuClick";
384
+ }, ["iconTemplateConfig", "items", "shortcutTemplateConfig", "textTemplateConfig"], never, true, never>;
268
385
  }
269
-
270
- declare class PopupMenuGroupComponent implements PopupMenuConfig {
271
- #private;
272
- protected readonly groupTemplateConfig: _angular_core.Signal<_nanahoshi_mona_ui_internal_popup_menu.PopupTemplateConfig | undefined>;
273
- protected readonly items: _angular_core.Signal<readonly PopupMenuConfig[]>;
274
- readonly origin: PopupMenuOrigin;
275
- /**
276
- * @description Sets the title of the menu group.
277
- */
278
- readonly title: _angular_core.InputSignal<string | undefined>;
279
- readonly type = PopupMenuItemType.MenuGroup;
280
- getPopupMenuItem(): PopupMenuItem[];
281
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<PopupMenuGroupComponent, never>;
282
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<PopupMenuGroupComponent, "mona-popup-menu-group", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; }, {}, ["groupTemplateConfig", "items"], never, true, never>;
386
+ export declare class PopupMenuGroupComponent implements PopupMenuConfig {
387
+ #private;
388
+ protected readonly groupTemplateConfig: import("@angular/core").Signal<import("@nanahoshi/mona-ui/internal/popup-menu").PopupTemplateConfig | undefined>;
389
+ protected readonly items: import("@angular/core").Signal<readonly PopupMenuConfig[]>;
390
+ readonly origin: PopupMenuOrigin;
391
+ /**
392
+ * @description Sets the title of the menu group.
393
+ */
394
+ readonly title: import("@angular/core").InputSignal<string | undefined>;
395
+ readonly type = PopupMenuItemType.MenuGroup;
396
+ getPopupMenuItem(): PopupMenuItem$1[];
397
+ static ɵfac: i0.ɵɵFactoryDeclaration<PopupMenuGroupComponent, never>;
398
+ static ɵcmp: i0.ɵɵComponentDeclaration<PopupMenuGroupComponent, "mona-popup-menu-group", never, {
399
+ "title": {
400
+ "alias": "title";
401
+ "required": false;
402
+ "isSignal": true;
403
+ };
404
+ }, {}, ["groupTemplateConfig", "items"], never, true, never>;
283
405
  }
284
-
285
- declare class PopupMenuRadioGroupComponent implements PopupMenuConfig, OnInit {
286
- #private;
287
- protected readonly groupTemplateConfig: _angular_core.Signal<_nanahoshi_mona_ui_internal_popup_menu.PopupTemplateConfig | undefined>;
288
- protected readonly items: _angular_core.Signal<readonly PopupMenuConfig[]>;
289
- readonly origin: PopupMenuOrigin;
290
- /**
291
- * @description The title of the radio group.
292
- */
293
- readonly title: _angular_core.InputSignal<string>;
294
- readonly type = PopupMenuItemType.RadioGroup;
295
- /**
296
- * @description The value of the selected radio item.
297
- */
298
- readonly value: _angular_core.ModelSignal<string>;
299
- getPopupMenuItem(): PopupMenuItem[];
300
- ngOnInit(): void;
301
- private setSubscription;
302
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<PopupMenuRadioGroupComponent, never>;
303
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<PopupMenuRadioGroupComponent, "mona-popup-menu-radio-group", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, ["groupTemplateConfig", "items"], never, true, never>;
406
+ export declare class PopupMenuRadioGroupComponent implements PopupMenuConfig, OnInit {
407
+ #private;
408
+ protected readonly groupTemplateConfig: import("@angular/core").Signal<import("@nanahoshi/mona-ui/internal/popup-menu").PopupTemplateConfig | undefined>;
409
+ protected readonly items: import("@angular/core").Signal<readonly PopupMenuConfig[]>;
410
+ readonly origin: PopupMenuOrigin;
411
+ /**
412
+ * @description The title of the radio group.
413
+ */
414
+ readonly title: import("@angular/core").InputSignal<string>;
415
+ readonly type = PopupMenuItemType.RadioGroup;
416
+ /**
417
+ * @description The value of the selected radio item.
418
+ */
419
+ readonly value: import("@angular/core").ModelSignal<string>;
420
+ getPopupMenuItem(): PopupMenuItem$1[];
421
+ ngOnInit(): void;
422
+ private setSubscription;
423
+ static ɵfac: i0.ɵɵFactoryDeclaration<PopupMenuRadioGroupComponent, never>;
424
+ static ɵcmp: i0.ɵɵComponentDeclaration<PopupMenuRadioGroupComponent, "mona-popup-menu-radio-group", never, {
425
+ "title": {
426
+ "alias": "title";
427
+ "required": false;
428
+ "isSignal": true;
429
+ };
430
+ "value": {
431
+ "alias": "value";
432
+ "required": false;
433
+ "isSignal": true;
434
+ };
435
+ }, {
436
+ "value": "valueChange";
437
+ }, ["groupTemplateConfig", "items"], never, true, never>;
304
438
  }
305
-
306
- declare class PopupMenuRadioItemComponent implements PopupMenuConfig, OnInit {
307
- #private;
308
- protected readonly shortcutTemplateConfig: _angular_core.Signal<_nanahoshi_mona_ui_internal_popup_menu.PopupTemplateConfig | undefined>;
309
- protected readonly textTemplateConfig: _angular_core.Signal<_nanahoshi_mona_ui_internal_popup_menu.PopupTemplateConfig | undefined>;
310
- /**
311
- * @description Sets the disabled state of the menu item.
312
- */
313
- readonly disabled: _angular_core.InputSignal<boolean>;
314
- /**
315
- * @description The text of the menu item.
316
- */
317
- readonly label: _angular_core.InputSignal<string>;
318
- /**
319
- * @description The click event of the menu item.
320
- * Emits when the menu item is selected by keyboard or mouse, before the radio group selects it. Preventing it
321
- * keeps the group's value and the menu open.
322
- */
323
- readonly menuClick: _angular_core.OutputEmitterRef<PopupMenuItemClickEvent>;
324
- readonly origin: PopupMenuOrigin;
325
- readonly type = PopupMenuItemType.RadioItem;
326
- /**
327
- * @description The value of the radio item.
328
- */
329
- readonly value: _angular_core.InputSignal<string>;
330
- getPopupMenuItem(): PopupMenuItem[];
331
- ngOnInit(): void;
332
- private setSubscription;
333
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<PopupMenuRadioItemComponent, never>;
334
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<PopupMenuRadioItemComponent, "mona-popup-menu-radio-item", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; }, { "menuClick": "menuClick"; }, ["shortcutTemplateConfig", "textTemplateConfig"], never, true, never>;
439
+ export declare class PopupMenuRadioItemComponent implements PopupMenuConfig, OnInit {
440
+ #private;
441
+ protected readonly shortcutTemplateConfig: import("@angular/core").Signal<import("@nanahoshi/mona-ui/internal/popup-menu").PopupTemplateConfig | undefined>;
442
+ protected readonly textTemplateConfig: import("@angular/core").Signal<import("@nanahoshi/mona-ui/internal/popup-menu").PopupTemplateConfig | undefined>;
443
+ /**
444
+ * @description Sets the disabled state of the menu item.
445
+ */
446
+ readonly disabled: import("@angular/core").InputSignal<boolean>;
447
+ /**
448
+ * @description The text of the menu item.
449
+ */
450
+ readonly label: import("@angular/core").InputSignal<string>;
451
+ /**
452
+ * @description The click event of the menu item.
453
+ * Emits when the menu item is selected by keyboard or mouse, before the radio group selects it. Preventing it
454
+ * keeps the group's value and the menu open.
455
+ */
456
+ readonly menuClick: import("@angular/core").OutputEmitterRef<PopupMenuItemClickEvent$1>;
457
+ readonly origin: PopupMenuOrigin;
458
+ readonly type = PopupMenuItemType.RadioItem;
459
+ /**
460
+ * @description The value of the radio item.
461
+ */
462
+ readonly value: import("@angular/core").InputSignal<string>;
463
+ getPopupMenuItem(): PopupMenuItem$1[];
464
+ ngOnInit(): void;
465
+ private setSubscription;
466
+ static ɵfac: i0.ɵɵFactoryDeclaration<PopupMenuRadioItemComponent, never>;
467
+ static ɵcmp: i0.ɵɵComponentDeclaration<PopupMenuRadioItemComponent, "mona-popup-menu-radio-item", never, {
468
+ "disabled": {
469
+ "alias": "disabled";
470
+ "required": false;
471
+ "isSignal": true;
472
+ };
473
+ "label": {
474
+ "alias": "label";
475
+ "required": false;
476
+ "isSignal": true;
477
+ };
478
+ "value": {
479
+ "alias": "value";
480
+ "required": true;
481
+ "isSignal": true;
482
+ };
483
+ }, {
484
+ "menuClick": "menuClick";
485
+ }, ["shortcutTemplateConfig", "textTemplateConfig"], never, true, never>;
335
486
  }
336
-
337
- declare class PopupMenuSeparatorComponent implements PopupMenuConfig {
338
- readonly origin: PopupMenuOrigin;
339
- readonly type = PopupMenuItemType.Separator;
340
- getPopupMenuItem(): PopupMenuItem[];
341
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<PopupMenuSeparatorComponent, never>;
342
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<PopupMenuSeparatorComponent, "mona-popup-menu-separator", never, {}, {}, never, never, true, never>;
487
+ export declare class PopupMenuSeparatorComponent implements PopupMenuConfig {
488
+ readonly origin: PopupMenuOrigin;
489
+ readonly type = PopupMenuItemType.Separator;
490
+ getPopupMenuItem(): PopupMenuItem$1[];
491
+ static ɵfac: i0.ɵɵFactoryDeclaration<PopupMenuSeparatorComponent, never>;
492
+ static ɵcmp: i0.ɵɵComponentDeclaration<PopupMenuSeparatorComponent, "mona-popup-menu-separator", never, {}, {}, never, never, true, never>;
343
493
  }
344
-
345
- declare class PopupMenuGroupTemplateDirective implements PopupTemplateConfig {
346
- readonly origin: PopupMenuTemplateOrigin;
347
- readonly template: TemplateRef<any>;
348
- readonly type = PopupMenuTemplateType.Group;
349
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<PopupMenuGroupTemplateDirective, never>;
350
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<PopupMenuGroupTemplateDirective, "ng-template[monaPopupMenuGroupTemplate]", never, {}, {}, never, never, true, never>;
494
+ export declare class PopupMenuGroupTemplateDirective implements PopupTemplateConfig {
495
+ readonly origin: PopupMenuTemplateOrigin;
496
+ readonly template: TemplateRef<any>;
497
+ readonly type = PopupMenuTemplateType.Group;
498
+ static ɵfac: i0.ɵɵFactoryDeclaration<PopupMenuGroupTemplateDirective, never>;
499
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PopupMenuGroupTemplateDirective, "ng-template[monaPopupMenuGroupTemplate]", never, {}, {}, never, never, true, never>;
351
500
  }
352
-
353
- declare class PopupMenuIconTemplateDirective implements PopupTemplateConfig {
354
- readonly origin: PopupMenuTemplateOrigin;
355
- readonly template: TemplateRef<any>;
356
- readonly type: PopupMenuTemplateType;
357
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<PopupMenuIconTemplateDirective, never>;
358
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<PopupMenuIconTemplateDirective, "ng-template[monaPopupMenuIconTemplate]", never, {}, {}, never, never, true, never>;
501
+ export declare class PopupMenuIconTemplateDirective implements PopupTemplateConfig {
502
+ readonly origin: PopupMenuTemplateOrigin;
503
+ readonly template: TemplateRef<any>;
504
+ readonly type: PopupMenuTemplateType;
505
+ static ɵfac: i0.ɵɵFactoryDeclaration<PopupMenuIconTemplateDirective, never>;
506
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PopupMenuIconTemplateDirective, "ng-template[monaPopupMenuIconTemplate]", never, {}, {}, never, never, true, never>;
359
507
  }
360
-
361
- declare class PopupMenuShortcutTemplateDirective implements PopupTemplateConfig {
362
- readonly origin: PopupMenuTemplateOrigin;
363
- readonly template: TemplateRef<any>;
364
- readonly type: PopupMenuTemplateType;
365
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<PopupMenuShortcutTemplateDirective, never>;
366
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<PopupMenuShortcutTemplateDirective, "ng-template[monaPopupMenuShortcutTemplate]", never, {}, {}, never, never, true, never>;
508
+ export declare class PopupMenuShortcutTemplateDirective implements PopupTemplateConfig {
509
+ readonly origin: PopupMenuTemplateOrigin;
510
+ readonly template: TemplateRef<any>;
511
+ readonly type: PopupMenuTemplateType;
512
+ static ɵfac: i0.ɵɵFactoryDeclaration<PopupMenuShortcutTemplateDirective, never>;
513
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PopupMenuShortcutTemplateDirective, "ng-template[monaPopupMenuShortcutTemplate]", never, {}, {}, never, never, true, never>;
367
514
  }
368
-
369
- declare class PopupMenuTextTemplateDirective implements PopupTemplateConfig {
370
- readonly origin: PopupMenuTemplateOrigin;
371
- readonly template: TemplateRef<any>;
372
- readonly type: PopupMenuTemplateType;
373
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<PopupMenuTextTemplateDirective, never>;
374
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<PopupMenuTextTemplateDirective, "ng-template[monaPopupMenuTextTemplate]", never, {}, {}, never, never, true, never>;
515
+ export declare class PopupMenuTextTemplateDirective implements PopupTemplateConfig {
516
+ readonly origin: PopupMenuTemplateOrigin;
517
+ readonly template: TemplateRef<any>;
518
+ readonly type: PopupMenuTemplateType;
519
+ static ɵfac: i0.ɵɵFactoryDeclaration<PopupMenuTextTemplateDirective, never>;
520
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PopupMenuTextTemplateDirective, "ng-template[monaPopupMenuTextTemplate]", never, {}, {}, never, never, true, never>;
375
521
  }
376
-
377
- export { PopupMenuCheckboxItemComponent, PopupMenuCloseEvent, PopupMenuComponent, PopupMenuGroupComponent, PopupMenuGroupTemplateDirective, PopupMenuIconTemplateDirective, PopupMenuItemComponent, PopupMenuRadioGroupComponent, PopupMenuRadioItemComponent, PopupMenuSeparatorComponent, PopupMenuShortcutTemplateDirective, PopupMenuTextTemplateDirective };
378
- export type { PopupMenuInitialFocus, PopupMenuNavigationEvent, PopupMenuTrigger, PopupMenuVariantInput, PopupMenuVariantProps };
522
+ export { type MenuItem, type PopupMenuInitialFocus, type PopupMenuItem, PopupMenuItemClickEvent, type PopupMenuVariantInput, type PopupMenuVariantProps };