@nanahoshi/mona-ui 0.25.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) hide show
  1. package/README.md +2 -0
  2. package/command/package.json +4 -0
  3. package/docs/auto-complete.md +733 -0
  4. package/docs/avatar.md +220 -0
  5. package/docs/breadcrumb.md +320 -0
  6. package/docs/button-group.md +392 -0
  7. package/docs/button.md +256 -0
  8. package/docs/calendar.md +515 -0
  9. package/docs/card.md +292 -0
  10. package/docs/chart.md +4058 -0
  11. package/docs/checkbox.md +374 -0
  12. package/docs/chip.md +339 -0
  13. package/docs/circular-progress-bar.md +287 -0
  14. package/docs/collapsible.md +308 -0
  15. package/docs/color-gradient.md +336 -0
  16. package/docs/color-palette.md +317 -0
  17. package/docs/color-picker.md +387 -0
  18. package/docs/combo-box.md +764 -0
  19. package/docs/command.md +582 -0
  20. package/docs/contextmenu.md +530 -0
  21. package/docs/date-picker.md +251 -0
  22. package/docs/datetime-picker.md +284 -0
  23. package/docs/decimal-textbox.md +260 -0
  24. package/docs/dialog.md +822 -0
  25. package/docs/dropdown-button.md +507 -0
  26. package/docs/dropdown-list.md +779 -0
  27. package/docs/editor.md +374 -0
  28. package/docs/expansion-panel.md +348 -0
  29. package/docs/fieldset.md +217 -0
  30. package/docs/forms.md +162 -0
  31. package/docs/grid.md +2053 -0
  32. package/docs/input.md +197 -0
  33. package/docs/installation.md +54 -0
  34. package/docs/introduction.md +46 -0
  35. package/docs/label.md +340 -0
  36. package/docs/list-box.md +637 -0
  37. package/docs/list-view.md +584 -0
  38. package/docs/menubar.md +559 -0
  39. package/docs/multi-select.md +765 -0
  40. package/docs/notification.md +460 -0
  41. package/docs/numeric-textbox.md +301 -0
  42. package/docs/otp-input.md +539 -0
  43. package/docs/pager.md +513 -0
  44. package/docs/placeholder.md +176 -0
  45. package/docs/popover.md +423 -0
  46. package/docs/popup-menu.md +658 -0
  47. package/docs/popup.md +617 -0
  48. package/docs/progress-bar.md +368 -0
  49. package/docs/radio-button.md +451 -0
  50. package/docs/range-slider.md +367 -0
  51. package/docs/rating.md +518 -0
  52. package/docs/scroll-view.md +375 -0
  53. package/docs/segmented.md +434 -0
  54. package/docs/sheet.md +348 -0
  55. package/docs/sidebar.md +1126 -0
  56. package/docs/skeleton.md +181 -0
  57. package/docs/slider.md +423 -0
  58. package/docs/spinner.md +370 -0
  59. package/docs/split-button.md +522 -0
  60. package/docs/splitter.md +342 -0
  61. package/docs/stepper.md +539 -0
  62. package/docs/switch.md +340 -0
  63. package/docs/tabs.md +542 -0
  64. package/docs/textarea.md +196 -0
  65. package/docs/textbox.md +332 -0
  66. package/docs/theming.md +403 -0
  67. package/docs/time-picker.md +254 -0
  68. package/docs/tooltip-directive.md +340 -0
  69. package/docs/tooltip.md +321 -0
  70. package/docs/tree-view.md +1018 -0
  71. package/docs/window.md +663 -0
  72. package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +1 -1
  73. package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +8 -0
  74. package/fesm2022/nanahoshi-mona-ui-button-group.mjs +1 -1
  75. package/fesm2022/nanahoshi-mona-ui-button.mjs +14 -2
  76. package/fesm2022/nanahoshi-mona-ui-calendar.mjs +5 -2
  77. package/fesm2022/nanahoshi-mona-ui-chart.mjs +108 -22
  78. package/fesm2022/nanahoshi-mona-ui-check-box.mjs +4 -0
  79. package/fesm2022/nanahoshi-mona-ui-chip.mjs +1 -1
  80. package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +4 -0
  81. package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +16 -2
  82. package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +1 -1
  83. package/fesm2022/nanahoshi-mona-ui-command.mjs +924 -0
  84. package/fesm2022/nanahoshi-mona-ui-common.mjs +4 -0
  85. package/fesm2022/nanahoshi-mona-ui-contextmenu.mjs +10 -6
  86. package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +2 -1
  87. package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +2 -1
  88. package/fesm2022/nanahoshi-mona-ui-dialog.mjs +9 -5
  89. package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +9 -5
  90. package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +55 -1
  91. package/fesm2022/nanahoshi-mona-ui-editor.mjs +3 -2
  92. package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +13 -0
  93. package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +5 -0
  94. package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-2tVhD2hK.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-DjNnVxHE.mjs} +2 -2
  95. package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-BAN70Wcn.mjs → nanahoshi-mona-ui-grid-grid-list.component-ihQIKeP-.mjs} +5 -5
  96. package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-C_kCaA5b.mjs → nanahoshi-mona-ui-grid-grid-row.component-BpnybNcs.mjs} +18 -35
  97. package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-BsNfrAHz.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-CYlgfc7c.mjs} +5 -5
  98. package/fesm2022/{nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-CEfVa7eo.mjs → nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-LCzfCYd3.mjs} +4653 -4529
  99. package/fesm2022/nanahoshi-mona-ui-grid.mjs +1 -1
  100. package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +10 -0
  101. package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +1 -0
  102. package/fesm2022/nanahoshi-mona-ui-internal-popup-menu.mjs +168 -0
  103. package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +19 -1
  104. package/fesm2022/nanahoshi-mona-ui-list-box.mjs +14 -0
  105. package/fesm2022/nanahoshi-mona-ui-list-view.mjs +32 -0
  106. package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +10 -0
  107. package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +10 -0
  108. package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +10 -0
  109. package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +10 -0
  110. package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +10 -0
  111. package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +10 -0
  112. package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +10 -0
  113. package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +10 -0
  114. package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +10 -0
  115. package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +10 -0
  116. package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +10 -0
  117. package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +10 -0
  118. package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +10 -0
  119. package/fesm2022/nanahoshi-mona-ui-menubar.mjs +15 -8
  120. package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +8 -5
  121. package/fesm2022/nanahoshi-mona-ui-notification.mjs +9 -0
  122. package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +1 -1
  123. package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +5 -0
  124. package/fesm2022/nanahoshi-mona-ui-pager.mjs +2 -1
  125. package/fesm2022/nanahoshi-mona-ui-popover.mjs +14 -6
  126. package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +48 -183
  127. package/fesm2022/nanahoshi-mona-ui-popup.mjs +16 -0
  128. package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +4 -0
  129. package/fesm2022/nanahoshi-mona-ui-rating.mjs +2 -0
  130. package/fesm2022/nanahoshi-mona-ui-scroll-view.mjs +7 -3
  131. package/fesm2022/nanahoshi-mona-ui-segmented.mjs +2 -1
  132. package/fesm2022/nanahoshi-mona-ui-sheet.mjs +5 -5
  133. package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +1 -1
  134. package/fesm2022/nanahoshi-mona-ui-slider.mjs +8 -3
  135. package/fesm2022/nanahoshi-mona-ui-split-button.mjs +10 -7
  136. package/fesm2022/nanahoshi-mona-ui-stepper.mjs +18 -21
  137. package/fesm2022/nanahoshi-mona-ui-tabs.mjs +11 -8
  138. package/fesm2022/nanahoshi-mona-ui-text-box.mjs +9 -1
  139. package/fesm2022/nanahoshi-mona-ui-theme.mjs +53 -21
  140. package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +2 -1
  141. package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +16 -5
  142. package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +13 -11
  143. package/fesm2022/nanahoshi-mona-ui-window.mjs +12 -5
  144. package/i18n/catalogs/en-US.messages.json +10 -0
  145. package/internal/popup-menu/package.json +4 -0
  146. package/llms.txt +123 -0
  147. package/locales/ar-sa/ar-sa.messages.json +10 -0
  148. package/locales/de-de/de-de.messages.json +10 -0
  149. package/locales/es-es/es-es.messages.json +10 -0
  150. package/locales/fr-fr/fr-fr.messages.json +10 -0
  151. package/locales/id-id/id-id.messages.json +10 -0
  152. package/locales/it-it/it-it.messages.json +10 -0
  153. package/locales/ja-jp/ja-jp.messages.json +10 -0
  154. package/locales/ko-kr/ko-kr.messages.json +10 -0
  155. package/locales/pt-br/pt-br.messages.json +10 -0
  156. package/locales/ru-ru/ru-ru.messages.json +10 -0
  157. package/locales/tr-tr/tr-tr.messages.json +10 -0
  158. package/locales/zh-cn/zh-cn.messages.json +10 -0
  159. package/locales/zh-tw/zh-tw.messages.json +10 -0
  160. package/package.json +9 -1
  161. package/styles.css +12 -2
  162. package/types/nanahoshi-mona-ui-auto-complete.d.ts +1 -1
  163. package/types/nanahoshi-mona-ui-breadcrumb.d.ts +8 -0
  164. package/types/nanahoshi-mona-ui-button.d.ts +12 -0
  165. package/types/nanahoshi-mona-ui-calendar.d.ts +3 -0
  166. package/types/nanahoshi-mona-ui-chart.d.ts +200 -0
  167. package/types/nanahoshi-mona-ui-check-box.d.ts +4 -0
  168. package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +4 -0
  169. package/types/nanahoshi-mona-ui-collapsible.d.ts +10 -0
  170. package/types/nanahoshi-mona-ui-combo-box.d.ts +1 -1
  171. package/types/nanahoshi-mona-ui-command.d.ts +253 -0
  172. package/types/nanahoshi-mona-ui-common.d.ts +17 -1
  173. package/types/nanahoshi-mona-ui-contextmenu.d.ts +5 -2
  174. package/types/nanahoshi-mona-ui-date-picker.d.ts +2 -1
  175. package/types/nanahoshi-mona-ui-datetime-picker.d.ts +2 -1
  176. package/types/nanahoshi-mona-ui-dialog.d.ts +58 -1
  177. package/types/nanahoshi-mona-ui-dropdown-button.d.ts +7 -3
  178. package/types/nanahoshi-mona-ui-dropdowns.d.ts +55 -1
  179. package/types/nanahoshi-mona-ui-editor.d.ts +31 -0
  180. package/types/nanahoshi-mona-ui-expansion-panel.d.ts +13 -0
  181. package/types/nanahoshi-mona-ui-fieldset.d.ts +5 -0
  182. package/types/nanahoshi-mona-ui-grid.d.ts +162 -35
  183. package/types/nanahoshi-mona-ui-i18n.d.ts +144 -1
  184. package/types/nanahoshi-mona-ui-internal-list.d.ts +16 -1
  185. package/types/nanahoshi-mona-ui-internal-popup-menu.d.ts +165 -0
  186. package/types/nanahoshi-mona-ui-internal-tree.d.ts +21 -2
  187. package/types/nanahoshi-mona-ui-internal.d.ts +4 -5
  188. package/types/nanahoshi-mona-ui-label.d.ts +1 -0
  189. package/types/nanahoshi-mona-ui-list-box.d.ts +27 -4
  190. package/types/nanahoshi-mona-ui-list-view.d.ts +34 -1
  191. package/types/nanahoshi-mona-ui-list.d.ts +1 -1
  192. package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +10 -0
  193. package/types/nanahoshi-mona-ui-locales-de-de.d.ts +10 -0
  194. package/types/nanahoshi-mona-ui-locales-es-es.d.ts +10 -0
  195. package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +10 -0
  196. package/types/nanahoshi-mona-ui-locales-id-id.d.ts +10 -0
  197. package/types/nanahoshi-mona-ui-locales-it-it.d.ts +10 -0
  198. package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +10 -0
  199. package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +10 -0
  200. package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +10 -0
  201. package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +10 -0
  202. package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +10 -0
  203. package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +10 -0
  204. package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +10 -0
  205. package/types/nanahoshi-mona-ui-menubar.d.ts +10 -3
  206. package/types/nanahoshi-mona-ui-multi-select.d.ts +3 -3
  207. package/types/nanahoshi-mona-ui-notification.d.ts +9 -0
  208. package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +1 -1
  209. package/types/nanahoshi-mona-ui-otp-input.d.ts +1 -0
  210. package/types/nanahoshi-mona-ui-pager.d.ts +5 -1
  211. package/types/nanahoshi-mona-ui-popover.d.ts +9 -1
  212. package/types/nanahoshi-mona-ui-popup-menu.d.ts +48 -161
  213. package/types/nanahoshi-mona-ui-popup.d.ts +16 -0
  214. package/types/nanahoshi-mona-ui-progress-bar.d.ts +4 -0
  215. package/types/nanahoshi-mona-ui-rating.d.ts +2 -0
  216. package/types/nanahoshi-mona-ui-segmented.d.ts +1 -0
  217. package/types/nanahoshi-mona-ui-sheet.d.ts +1 -1
  218. package/types/nanahoshi-mona-ui-slider.d.ts +2 -0
  219. package/types/nanahoshi-mona-ui-spinner.d.ts +7 -0
  220. package/types/nanahoshi-mona-ui-split-button.d.ts +7 -4
  221. package/types/nanahoshi-mona-ui-stepper.d.ts +11 -2
  222. package/types/nanahoshi-mona-ui-tabs.d.ts +4 -1
  223. package/types/nanahoshi-mona-ui-text-box.d.ts +9 -1
  224. package/types/nanahoshi-mona-ui-time-picker.d.ts +2 -1
  225. package/types/nanahoshi-mona-ui-tooltip.d.ts +10 -2
  226. package/types/nanahoshi-mona-ui-tree-view.d.ts +6 -5
  227. package/types/nanahoshi-mona-ui-window.d.ts +66 -1
@@ -61,16 +61,23 @@ interface MonaChartMessages {
61
61
  readonly categoryFallbackName: (index: number) => string;
62
62
  /** The category range of a Cartesian chart, in its description. */
63
63
  readonly categoryRange: (from: string, to: string) => string;
64
+ /** The tooltip label for a waterfall change step or a financial point's price change. */
64
65
  readonly change: string;
65
66
  /** The price change in a financial announcement. */
66
67
  readonly changeValue: (change: string) => string;
68
+ /** The chart's accessible name when it has neither an `ariaLabel` nor a title. */
67
69
  readonly chart: string;
70
+ /** The accessible name of the legend. */
68
71
  readonly chartLegend: string;
69
72
  /** What screen readers call the chart (`aria-roledescription`). */
70
73
  readonly chartRoleDescription: string;
74
+ /** The tooltip label for a candlestick or OHLC point's closing price. */
71
75
  readonly close: string;
76
+ /** The short closing price label in a tooltip that lists several financial series ("C" in English). */
72
77
  readonly closeAbbreviation: string;
78
+ /** The name of a heatmap color legend whose scale has no title, in its accessible name. */
73
79
  readonly colorScale: string;
80
+ /** The tooltip label for a funnel stage's conversion rate. */
74
81
  readonly conversion: string;
75
82
  /** A funnel stage's conversion from the previous stage, in an announcement. */
76
83
  readonly conversionOfPrevious: (rate: string) => string;
@@ -78,51 +85,82 @@ interface MonaChartMessages {
78
85
  readonly dataTableTruncated: (shown: number, total: number) => string;
79
86
  /** The waterfall legend's name for falling steps. */
80
87
  readonly decrease: string;
88
+ /** Announced for a waterfall step that lowers the running total. */
81
89
  readonly decreaseAnnouncement: (delta: string, from: string, to: string) => string;
90
+ /** The accessible name of a diverging heatmap color legend, with its minimum, midpoint and maximum. */
82
91
  readonly divergingRangeDescription: (title: string, minimum: string, midpoint: string, maximum: string) => string;
92
+ /** The tooltip label for a funnel stage's drop-off from the previous stage. */
83
93
  readonly dropOff: string;
94
+ /** A funnel stage's drop-off from the previous stage, in an announcement. */
84
95
  readonly dropOffValue: (value: string) => string;
96
+ /** Names a falling candlestick or OHLC point, in the tooltip and in announcements. */
85
97
  readonly falling: string;
86
98
  /** A gauge's scale, in an announcement. */
87
99
  readonly gaugeRange: (minimum: string, maximum: string) => string;
100
+ /** The tooltip label for a candlestick or OHLC point's high price. */
88
101
  readonly high: string;
102
+ /** The short high price label in a tooltip that lists several financial series ("H" in English). */
89
103
  readonly highAbbreviation: string;
90
104
  /** The waterfall legend's name for rising steps. */
91
105
  readonly increase: string;
106
+ /** Announced for a waterfall step that raises the running total. */
92
107
  readonly increaseAnnouncement: (delta: string, from: string, to: string) => string;
108
+ /** Announced when the keyboard deselects a point. */
93
109
  readonly itemDeselected: (item: string) => string;
94
110
  /** The name of a pie, donut, rose or radial bar item without a category. */
95
111
  readonly itemFallbackName: (index: number) => string;
112
+ /** Announced when the keyboard selects a point. */
96
113
  readonly itemSelected: (item: string) => string;
97
114
  /** The keyboard instructions at the end of the chart's description. */
98
115
  readonly keyboardHelp: string;
116
+ /** Separates a label from its value in the tooltip (":" in English). */
99
117
  readonly labelValueSeparator: string;
118
+ /** Pairs a label with a value in an announcement, such as a series name with the point's values. */
100
119
  readonly labeledValue: (label: string, value: string) => string;
120
+ /** The tooltip label for a candlestick or OHLC point's low price. */
101
121
  readonly low: string;
122
+ /** The short low price label in a tooltip that lists several financial series ("L" in English). */
102
123
  readonly lowAbbreviation: string;
103
124
  /** The waterfall legend's name for unchanged steps. */
104
125
  readonly noChange: string;
126
+ /** Announced for a waterfall step that leaves the running total unchanged. */
105
127
  readonly noChangeAnnouncement: (value: string) => string;
128
+ /** Shown and included in the chart's description when it has no data and no `noData` template. */
106
129
  readonly noData: string;
107
130
  /** A candlestick or OHLC point's prices, in an announcement. */
108
131
  readonly ohlcValues: (open: string, high: string, low: string, close: string) => string;
132
+ /** The tooltip label for a candlestick or OHLC point's opening price. */
109
133
  readonly open: string;
134
+ /** The short opening price label in a tooltip that lists several financial series ("O" in English). */
110
135
  readonly openAbbreviation: string;
136
+ /** The tooltip label for a funnel stage's conversion from the first stage. */
111
137
  readonly overall: string;
138
+ /** A funnel stage's conversion from the first stage, in an announcement. */
112
139
  readonly overallConversion: (rate: string) => string;
140
+ /** Announced when the keyboard pans the viewport down. */
113
141
  readonly pannedDown: string;
142
+ /** Announced when the keyboard pans the viewport left. */
114
143
  readonly pannedLeft: string;
144
+ /** Announced when the keyboard pans the viewport right. */
115
145
  readonly pannedRight: string;
146
+ /** Announced when the keyboard pans the viewport up. */
116
147
  readonly pannedUp: string;
117
148
  /** Joins a treemap node's path (" / " in English). */
118
149
  readonly pathSeparator: string;
119
150
  /** A point's position among the points it is navigated with, in an announcement. */
120
151
  readonly pointPosition: (position: number, total: number) => string;
152
+ /** The tooltip label for a radial point's minimum-to-maximum range. */
121
153
  readonly range: string;
154
+ /**
155
+ * Describes a range with its title, minimum and maximum: a range point in an announcement, or a heatmap color
156
+ * legend in its accessible name.
157
+ */
122
158
  readonly rangeDescription: (title: string, minimum: string, maximum: string) => string;
123
159
  /** A range value, in an announcement. */
124
160
  readonly rangeValue: (from: string, to: string) => string;
161
+ /** Names a rising candlestick or OHLC point, in the tooltip and in announcements. */
125
162
  readonly rising: string;
163
+ /** The tooltip label for a waterfall step's running total. */
126
164
  readonly runningTotal: string;
127
165
  /** The name of a series without a name. */
128
166
  readonly seriesFallbackName: (index: number) => string;
@@ -136,6 +174,7 @@ interface MonaChartMessages {
136
174
  readonly seriesValueRange: (series: string, minimum: string, maximum: string) => string;
137
175
  /** A treemap node's share of the whole, in an announcement. */
138
176
  readonly shareOfTotal: (share: string) => string;
177
+ /** The tooltip label for a bubble's size. */
139
178
  readonly size: string;
140
179
  /** A bubble's size, in an announcement. */
141
180
  readonly sizeValue: (size: string) => string;
@@ -143,28 +182,39 @@ interface MonaChartMessages {
143
182
  readonly stackShare: (share: string) => string;
144
183
  /** The name of a funnel stage without a category. */
145
184
  readonly stageFallbackName: (index: number) => string;
185
+ /** A funnel stage's position among the stages, in an announcement. */
146
186
  readonly stagePosition: (position: number, total: number) => string;
147
187
  /** The name of a waterfall step without a category. */
148
188
  readonly stepFallbackName: (index: number) => string;
189
+ /** A waterfall step's position among the steps, in an announcement. */
149
190
  readonly stepPosition: (position: number, total: number) => string;
150
191
  /** The waterfall legend's name for subtotal steps. */
151
192
  readonly subtotal: string;
193
+ /** Announced for a waterfall subtotal step. */
152
194
  readonly subtotalAnnouncement: (value: string) => string;
153
195
  /** The waterfall legend's name for total steps. */
154
196
  readonly total: string;
197
+ /** Announced for a waterfall total step. */
155
198
  readonly totalAnnouncement: (value: string) => string;
156
199
  /** A treemap group, in an announcement. */
157
200
  readonly treemapGroup: (count: number) => string;
158
201
  /** A treemap leaf, in an announcement. */
159
202
  readonly treemapLeaf: string;
203
+ /** Names a candlestick or OHLC point that closed at its opening price, in the tooltip and in announcements. */
160
204
  readonly unchanged: string;
205
+ /** The tooltip label for a point's value. */
161
206
  readonly value: string;
162
207
  /** A range value in the tooltip ("10 – 20" in English). */
163
208
  readonly valueRange: (from: string, to: string) => string;
209
+ /** Announced when the keyboard resets the viewport to its configured default range. */
164
210
  readonly viewportResetToDefault: string;
211
+ /** Announced when the keyboard resets the viewport to the full data range, when no default range is configured. */
165
212
  readonly viewportResetToFull: string;
213
+ /** Shown and announced when a gauge value lies outside the gauge's scale and its indicator stops at the edge. */
166
214
  readonly visualIndicatorClamped: string;
215
+ /** Announced when the keyboard zooms the viewport in. */
167
216
  readonly zoomedIn: string;
217
+ /** Announced when the keyboard zooms the viewport out. */
168
218
  readonly zoomedOut: string;
169
219
  }
170
220
 
@@ -235,8 +285,11 @@ interface MonaDateTimePickerMessages {
235
285
  type DateTimePickerMessages = MonaDateTimePickerMessages;
236
286
 
237
287
  interface MonaDialogMessages {
288
+ /** The label of the Cancel button that `confirm()` and a `"confirm"` dialog without `actions` add. */
238
289
  readonly cancel: string;
290
+ /** The accessible name of the close button in the dialog header. */
239
291
  readonly closeDialog: string;
292
+ /** The label of the OK button that `alert()`, `confirm()` and a dialog without `actions` add. */
240
293
  readonly ok: string;
241
294
  }
242
295
  type DialogMessages = MonaDialogMessages;
@@ -252,72 +305,138 @@ interface MonaDropdownsMessages {
252
305
  }
253
306
 
254
307
  interface MonaEditorMessages {
308
+ /** The label of the toolbar button that adds a column after the current one. */
255
309
  readonly addColumnAfter: string;
310
+ /** The label of the toolbar button that adds a column before the current one. */
256
311
  readonly addColumnBefore: string;
312
+ /** The label of the toolbar button that inserts a horizontal line. */
257
313
  readonly addHorizontalLine: string;
314
+ /** The label of the toolbar button that adds a row after the current one. */
258
315
  readonly addRowAfter: string;
316
+ /** The label of the toolbar button that adds a row before the current one. */
259
317
  readonly addRowBefore: string;
318
+ /** The label of the toolbar button that centers the text. */
260
319
  readonly alignCenter: string;
320
+ /** The label of the toolbar button that aligns the text to the end of the line. */
261
321
  readonly alignEnd: string;
262
322
  /** @deprecated No longer rendered: the toolbar aligns to the start and end with `alignStart` and `alignEnd`. */
263
323
  readonly alignLeft: string;
264
324
  /** @deprecated No longer rendered: the toolbar aligns to the start and end with `alignStart` and `alignEnd`. */
265
325
  readonly alignRight: string;
326
+ /** The label of the toolbar button that aligns the text to the start of the line. */
266
327
  readonly alignStart: string;
328
+ /** The accessible name of the toolbar's text alignment button group. */
267
329
  readonly alignmentGroup: string;
330
+ /** The label of the alternative text field in the insert image form. */
268
331
  readonly altText: string;
332
+ /** The label of the link dialog's button that sets the link. */
269
333
  readonly apply: string;
334
+ /** The label of the toolbar color picker that sets the text's highlight color. */
270
335
  readonly backgroundColor: string;
336
+ /** The label of the toolbar button that toggles bold. */
271
337
  readonly bold: string;
338
+ /** The label of the Cancel button in the link dialog and the insert image form. */
272
339
  readonly cancel: string;
340
+ /** The label of the toolbar button that toggles a code block. */
273
341
  readonly codeBlock: string;
342
+ /** The label of the toolbar color picker that sets the text color. */
274
343
  readonly color: string;
344
+ /** The accessible name of the editable content when the editor has no `aria-label` or `aria-labelledby`. */
275
345
  readonly contentLabel: string;
346
+ /** The placeholder of the font family dropdown when the text uses no specific font. */
276
347
  readonly defaultFontFamily: string;
348
+ /** The label of the toolbar button that deletes the current column. */
277
349
  readonly deleteColumn: string;
350
+ /** The label of the toolbar button that deletes the current row. */
278
351
  readonly deleteRow: string;
352
+ /** The label of the toolbar button that deletes the table. */
279
353
  readonly deleteTable: string;
354
+ /** The title of the link dialog when the selection is already in a link. */
280
355
  readonly editLink: string;
356
+ /** The label of the URL field in the link dialog. */
281
357
  readonly enterUrl: string;
358
+ /** The placeholder of the font size dropdown when the text has no specific size. */
282
359
  readonly fontSize: string;
360
+ /** The label of the toolbar dropdown that switches between paragraph and heading levels. */
283
361
  readonly format: string;
362
+ /** The text of a heading level in the format dropdown, given the level number. */
284
363
  readonly heading: (level: number) => string;
364
+ /** The label of the height field in the insert image form. */
285
365
  readonly heightPx: string;
366
+ /** The accessible name of the toolbar's undo and redo button group. */
286
367
  readonly historyGroup: string;
368
+ /** The label of the image URL field in the insert image form. */
287
369
  readonly imageUrl: string;
370
+ /** The label of the toolbar button that increases the indentation. */
288
371
  readonly indent: string;
372
+ /** The accessible name of the toolbar's indent and outdent button group. */
289
373
  readonly indentGroup: string;
374
+ /** The label of the insert image form's button that inserts the image. */
290
375
  readonly insert: string;
376
+ /** The label of the toolbar button that opens the insert image form, and the title of that form's window. */
291
377
  readonly insertImage: string;
378
+ /** The label of the toolbar button that opens the link dialog, and the dialog's title for a new link. */
292
379
  readonly insertLink: string;
380
+ /** The label of the toolbar button that toggles a numbered list. */
293
381
  readonly insertOrderedList: string;
382
+ /** The label of the toolbar button that opens the table size grid, and the accessible name of that grid. */
294
383
  readonly insertTable: string;
384
+ /** The label of the toolbar button that toggles a task list. */
295
385
  readonly insertTaskList: string;
386
+ /** The label of the toolbar button that toggles a bulleted list. */
296
387
  readonly insertUnorderedList: string;
388
+ /** The error shown in the link dialog when the URL isn't a valid link. */
297
389
  readonly invalidUrl: string;
390
+ /** The label of the toolbar button that toggles italic. */
298
391
  readonly italic: string;
392
+ /** The label of the toolbar button that justifies the text. */
299
393
  readonly justify: string;
394
+ /** The accessible name of the toolbar's link button group. */
300
395
  readonly linkGroup: string;
396
+ /** The accessible name of the toolbar's list button group. */
301
397
  readonly listGroup: string;
398
+ /** The label of the toolbar button that merges the selected cells. */
302
399
  readonly mergeCells: string;
400
+ /** The label of the toolbar button that decreases the indentation. */
303
401
  readonly outdent: string;
402
+ /** The text of the plain paragraph option in the format dropdown. */
304
403
  readonly paragraph: string;
404
+ /** The label of the toolbar button that toggles a block quote. */
305
405
  readonly quotation: string;
406
+ /** The label of the toolbar button that redoes the last undone change. */
306
407
  readonly redo: string;
408
+ /** The label of the toolbar button and the link dialog button that remove the link. */
307
409
  readonly removeLink: string;
410
+ /** The label of the toolbar's font family dropdown. */
308
411
  readonly selectFontFamily: string;
412
+ /** The label of the toolbar's font size dropdown. */
309
413
  readonly selectFontSize: string;
414
+ /** The label of the toolbar button that splits a merged cell. */
310
415
  readonly splitCell: string;
416
+ /** The label of the toolbar button that toggles strikethrough. */
311
417
  readonly strikethrough: string;
418
+ /** The label of the toolbar button that toggles subscript. */
312
419
  readonly subscript: string;
420
+ /** The label of the toolbar button that toggles superscript. */
313
421
  readonly superscript: string;
422
+ /** The accessible name of the toolbar's table button group. */
314
423
  readonly tableGroup: string;
424
+ /**
425
+ * Describes a table size in the table size grid, given the number of rows and columns. It names each grid cell and
426
+ * announces the highlighted size.
427
+ */
315
428
  readonly tableSize: (rows: number, columns: number) => string;
429
+ /** The accessible name of the toolbar's bold, italic and other text style button group. */
316
430
  readonly textStyleGroup: string;
431
+ /** The label of the toolbar button that turns the header row on or off. */
317
432
  readonly toggleHeaderRow: string;
433
+ /** The accessible name of the editor's toolbar. */
318
434
  readonly toolbar: string;
435
+ /** The label of the toolbar button that toggles underline. */
319
436
  readonly underline: string;
437
+ /** The label of the toolbar button that undoes the last change. */
320
438
  readonly undo: string;
439
+ /** The label of the width field in the insert image form. */
321
440
  readonly widthPx: string;
322
441
  }
323
442
 
@@ -389,6 +508,8 @@ interface MonaGridMessages {
389
508
  readonly filterPlaceholder: string;
390
509
  /** The name of a group indent column's header. */
391
510
  readonly group: string;
511
+ /** The name of the button on a group chip that opens its menu. */
512
+ groupOptions(column: string): string;
392
513
  /** Shown while the grid body loads. */
393
514
  readonly loading: string;
394
515
  readonly modified: string;
@@ -438,6 +559,7 @@ interface MonaListMessages {
438
559
  }
439
560
 
440
561
  interface MonaListBoxMessages {
562
+ /** Label of the Clear Selection toolbar button. */
441
563
  readonly clearSelection: string;
442
564
  /** Announced after Move Up or Move Down, with the new position of the first moved item ("Moved to position 2 of 5"). */
443
565
  itemsMoved(position: number, total: number): string;
@@ -447,8 +569,11 @@ interface MonaListBoxMessages {
447
569
  itemsTransferred(count: number, list: string): string;
448
570
  /** Announced after a transfer to a list box that has no accessible name. */
449
571
  itemsTransferredToOtherList(count: number): string;
572
+ /** Label of the Move Down toolbar button. */
450
573
  readonly moveDown: string;
574
+ /** Label of the Move Up toolbar button. */
451
575
  readonly moveUp: string;
576
+ /** Label of the Remove toolbar button. */
452
577
  readonly remove: string;
453
578
  /** Announced after Clear Selection. */
454
579
  readonly selectionCleared: string;
@@ -539,6 +664,16 @@ interface MonaRatingMessages {
539
664
  valueText(value: number, max: number): string;
540
665
  }
541
666
 
667
+ interface MonaCommandMessages {
668
+ readonly dialogLabel: string;
669
+ readonly inputLabel: string;
670
+ readonly listLabel: string;
671
+ readonly loading: string;
672
+ readonly noResults: string;
673
+ readonly placeholder: string;
674
+ readonly resultsAvailable: (count: number) => string;
675
+ }
676
+
542
677
  interface MonaScrollViewMessages {
543
678
  readonly carousel: string;
544
679
  readonly nextPage: string;
@@ -625,7 +760,9 @@ interface MonaTimeSelectorMessages {
625
760
  type TimeSelectorMessages = MonaTimeSelectorMessages;
626
761
 
627
762
  interface MonaTreeViewMessages {
763
+ /** Start of an expanded node's expander name, followed by the node's text ("Collapse Documents"). */
628
764
  readonly collapse: string;
765
+ /** Start of a collapsed node's expander name, followed by the node's text ("Expand Documents"). */
629
766
  readonly expand: string;
630
767
  /** @deprecated No longer rendered; the filter input's name comes from {@link filterLabel}. */
631
768
  readonly filter: string;
@@ -654,9 +791,13 @@ interface MonaTreeViewMessages {
654
791
  }
655
792
 
656
793
  interface MonaWindowMessages {
794
+ /** The close button's tooltip. */
657
795
  readonly close: string;
796
+ /** The close button's accessible name. */
658
797
  readonly closeWindow: string;
798
+ /** The maximize button's tooltip and accessible name while the window isn't maximized. */
659
799
  readonly maximize: string;
800
+ /** The minimize button's tooltip and accessible name while the window isn't minimized. */
660
801
  readonly minimize: string;
661
802
  /** The title bar's name when the window can be both dragged and resized; it says which keys do each. */
662
803
  readonly moveOrResizeWindow: string;
@@ -680,6 +821,7 @@ interface MonaWindowMessages {
680
821
  readonly resizeTopRight: string;
681
822
  /** The title bar's name when the window can be resized but not dragged. */
682
823
  readonly resizeWindow: string;
824
+ /** The tooltip and accessible name of the minimize or maximize button while it would restore the window. */
683
825
  readonly restore: string;
684
826
  }
685
827
  type WindowMessages = MonaWindowMessages;
@@ -715,6 +857,7 @@ interface MonaLocaleMessages {
715
857
  progressBar: MonaProgressBarMessages;
716
858
  sidebar: MonaSidebarMessages;
717
859
  rating: MonaRatingMessages;
860
+ command: MonaCommandMessages;
718
861
  scrollView: MonaScrollViewMessages;
719
862
  sheet: MonaSheetMessages;
720
863
  slider: MonaSliderMessages;
@@ -1081,4 +1224,4 @@ declare function pseudoLocalizeCatalog<T extends object>(catalog: T, options?: P
1081
1224
  declare function generatePseudoLocale(catalogs: DeepPartial<MonaLocaleMessages>, options?: GeneratePseudoLocaleOptions): MonaLocale;
1082
1225
 
1083
1226
  export { BIDI_CONTROL_REGEX, MONA_DEFAULT_LOCALE, MONA_FALLBACK_LOCALE_ID, MONA_I18N_CONFIG, MonaDirectionService, MonaI18nService, canonicalizeLocaleId, formatGregorianDateToLocaleString, formatNumber, generatePseudoLocale, getEditDecimalSeparators, getLocaleDateInputFormat, getLocaleDateTimeInputFormat, getLocaleFirstDayOfWeek, getLocaleTimeInputFormat, getNumberFormatter, getNumberGroupingPattern, getNumberSymbols, gregorianDateTime, gregorianDateTimeFromObject, injectComponentDirection, mergeMessages, mergeTwo, normalizeGregorianLocale, normalizeLocalizedDigits, normalizeLocalizedInput, normalizeLocalizedMinus, observeComponentDirection, parseGregorianDate, parseLocalizedDecimal, parseLocalizedNumber, provideMonaI18n, pseudoLocalize, pseudoLocalizeCatalog, resolveComponentDirection, sanitizeDateText, stripBidiControls, tryCanonicalizeLocaleId, validateLocalizedDecimal, validateLocalizedDecimalEdit, validateLocalizedNumber, validateLocalizedNumberEdit };
1084
- export type { CalendarMessages, DatePickerMessages, DateTimePickerMessages, DeepPartial, DialogMessages, DirectionObserverHandle, FilterMessages, GeneratePseudoLocaleOptions, LocaleFirstDayOfWeek, LocaleTimeFormatOptions, LocalizedDecimalEditValidationResult, LocalizedDecimalValidationResult, LocalizedNumberEditValidationResult, LocalizedNumberInvalidReason, LocalizedNumberParseMode, LocalizedNumberValidationResult, MonaAutoCompleteMessages, MonaBreadcrumbMessages, MonaButtonGroupMessages, MonaCalendarMessages, MonaCardMessages, MonaChartMessages, MonaChipMessages, MonaColorGradientMessages, MonaColorPaletteMessages, MonaColorPickerMessages, MonaComboBoxMessages, MonaDatePickerMessages, MonaDateTimePickerMessages, MonaDialogMessages, MonaDropdownListMessages, MonaDropdownsMessages, MonaEditorMessages, MonaFilterMessages, MonaGridMessages, MonaI18nConfig, MonaLabelMessages, MonaListBoxMessages, MonaListMessages, MonaLocale, MonaLocaleMessages, MonaMessageNamespace, MonaMessageOverrideOptions, MonaMultiSelectMessages, MonaNotificationMessages, MonaNumericTextBoxMessages, MonaOtpInputMessages, MonaPagerMessages, MonaProgressBarMessages, MonaRatingMessages, MonaScrollViewMessages, MonaSheetMessages, MonaSidebarMessages, MonaSliderMessages, MonaSpinnerMessages, MonaSplitButtonMessages, MonaSplitterMessages, MonaStepperMessages, MonaTabsMessages, MonaTextBoxMessages, MonaTextDirection, MonaTimePickerMessages, MonaTimeSelectorMessages, MonaTreeViewMessages, MonaWindowMessages, NotificationMessages, NumberGroupingPattern, NumberSymbols, ParseLocalizedNumberOptions, PseudoLocalizationOptions, SheetMessages, TimePickerMessages, TimeSelectorMessages, ValidateLocalizedNumberEditOptions, WindowMessages };
1227
+ export type { CalendarMessages, DatePickerMessages, DateTimePickerMessages, DeepPartial, DialogMessages, DirectionObserverHandle, FilterMessages, GeneratePseudoLocaleOptions, LocaleFirstDayOfWeek, LocaleTimeFormatOptions, LocalizedDecimalEditValidationResult, LocalizedDecimalValidationResult, LocalizedNumberEditValidationResult, LocalizedNumberInvalidReason, LocalizedNumberParseMode, LocalizedNumberValidationResult, MonaAutoCompleteMessages, MonaBreadcrumbMessages, MonaButtonGroupMessages, MonaCalendarMessages, MonaCardMessages, MonaChartMessages, MonaChipMessages, MonaColorGradientMessages, MonaColorPaletteMessages, MonaColorPickerMessages, MonaComboBoxMessages, MonaCommandMessages, MonaDatePickerMessages, MonaDateTimePickerMessages, MonaDialogMessages, MonaDropdownListMessages, MonaDropdownsMessages, MonaEditorMessages, MonaFilterMessages, MonaGridMessages, MonaI18nConfig, MonaLabelMessages, MonaListBoxMessages, MonaListMessages, MonaLocale, MonaLocaleMessages, MonaMessageNamespace, MonaMessageOverrideOptions, MonaMultiSelectMessages, MonaNotificationMessages, MonaNumericTextBoxMessages, MonaOtpInputMessages, MonaPagerMessages, MonaProgressBarMessages, MonaRatingMessages, MonaScrollViewMessages, MonaSheetMessages, MonaSidebarMessages, MonaSliderMessages, MonaSpinnerMessages, MonaSplitButtonMessages, MonaSplitterMessages, MonaStepperMessages, MonaTabsMessages, MonaTextBoxMessages, MonaTextDirection, MonaTimePickerMessages, MonaTimeSelectorMessages, MonaTreeViewMessages, MonaWindowMessages, NotificationMessages, NumberGroupingPattern, NumberSymbols, ParseLocalizedNumberOptions, PseudoLocalizationOptions, SheetMessages, TimePickerMessages, TimeSelectorMessages, ValidateLocalizedNumberEditOptions, WindowMessages };
@@ -21,6 +21,7 @@ interface ListItemOptions<T> {
21
21
  */
22
22
  uid?: string;
23
23
  }
24
+ /** An item of a list, wrapping its data item. */
24
25
  declare class ListItem<TData> {
25
26
  readonly data: TData;
26
27
  readonly header: string;
@@ -31,6 +32,7 @@ declare class ListItem<TData> {
31
32
 
32
33
  type ListKeySelector<T, K = unknown> = string | Selector<T, K> | null;
33
34
 
35
+ /** A CSS length, or nothing to leave it to the stylesheet. */
34
36
  type ListSizeType = string | null | undefined;
35
37
  type ListSizeInputType = ListSizeType | number;
36
38
 
@@ -45,6 +47,7 @@ type SelectionSource = {
45
47
  key: string;
46
48
  };
47
49
 
50
+ /** How the items within each group are ordered. Leave both out to keep their order. */
48
51
  type OrderByOptions<T, R> = {
49
52
  orderBy?: never;
50
53
  orderByDirection?: never;
@@ -76,24 +79,36 @@ type GroupableOptions<T = unknown, R = unknown> = {
76
79
  headerText?: (value: unknown) => string;
77
80
  } & OrderByOptions<T, R>;
78
81
 
82
+ /** Whether arrow keys only highlight an item, or select it as well. */
79
83
  type NavigationMode = "highlight" | "select";
80
84
 
81
85
  interface NavigableOptions {
86
+ /** Whether keyboard navigation is active. */
82
87
  enabled: boolean;
88
+ /** Whether navigation only moves a visual highlight (`"highlight"`) or also changes selection (`"select"`). */
83
89
  mode: NavigationMode;
90
+ /** Whether navigating past the last (or before the first) item cycles to the other end. */
84
91
  wrap: boolean;
85
92
  }
86
93
 
87
94
  type NavigationDirection = "next" | "previous" | "first" | "last" | "pageup" | "pagedown";
88
95
 
89
96
  interface PagerSettings {
97
+ /** Whether the pager is active. */
90
98
  enabled: boolean;
99
+ /** Whether first/last page buttons are shown. */
91
100
  firstLast: boolean;
101
+ /** Number of items shown per page. */
92
102
  pageSize: number;
103
+ /** Page size options shown in the pager, or `false`/`true` to hide/show a default set. */
93
104
  pageSizeValues: number[] | boolean;
105
+ /** Whether previous/next page buttons are shown. */
94
106
  previousNext: boolean;
107
+ /** Whether a page summary (e.g. "1-10 of 50") is shown. */
95
108
  showInfo: boolean;
109
+ /** Whether pages are selected via numbered buttons or a page-number input. */
96
110
  type: "numeric" | "input";
111
+ /** Number of numeric page buttons shown at once, when `type` is `"numeric"`. */
97
112
  visiblePages: number;
98
113
  }
99
114
 
@@ -426,4 +441,4 @@ declare const LIST_VIEW_HOST_LIST_SERVICE: InjectionToken<ListService<unknown>>;
426
441
  declare const LIST_DEFAULT_MESSAGES: MonaListMessages;
427
442
 
428
443
  export { LIST_DEFAULT_MESSAGES, LIST_VIEW_HOST_LIST_SERVICE, ListComponent, ListFooterTemplateDirective, ListGroupHeaderTemplateDirective, ListHeaderTemplateDirective, ListItem, ListItemTemplateDirective, ListNoDataTemplateDirective, ListService };
429
- export type { GroupableOptions, ListKeySelector, ListSizeInputType, NavigableOptions, NavigationDirection, NavigationMode, PagerSettings, SelectableOptions, SelectionChangeEvent };
444
+ export type { GroupableOptions, ListKeySelector, ListSizeInputType, ListSizeType, NavigableOptions, NavigationDirection, NavigationMode, OrderByOptions, PagerSettings, SelectableOptions, SelectionChangeEvent };
@@ -0,0 +1,165 @@
1
+ import { Signal, TemplateRef, InjectionToken } from '@angular/core';
2
+ import { Subject } from 'rxjs';
3
+ import { PreventableEvent } from '@nanahoshi/mona-ui/common';
4
+
5
+ /**
6
+ * Emitted when a menu item is activated by a click, Enter or Space. Preventing it keeps the menu open and leaves a
7
+ * checkbox or radio item's state unchanged.
8
+ */
9
+ declare class PopupMenuItemClickEvent extends PreventableEvent {
10
+ #private;
11
+ constructor(item: PopupMenuItem, originalEvent: MouseEvent);
12
+ /**
13
+ * For a checkbox or radio item, the state the item has once the click is applied (if it isn't prevented).
14
+ * `undefined` for other items.
15
+ */
16
+ get checked(): boolean | undefined;
17
+ /**
18
+ * The activated item, as the menu holds it. The event's `label` and `value` read from it.
19
+ * @hidden
20
+ */
21
+ get item(): PopupMenuItem;
22
+ /**
23
+ * The item's label.
24
+ */
25
+ get label(): string;
26
+ /**
27
+ * The item's `value`: the `value` input of the item component, or the `value` of a `MenuItem`.
28
+ */
29
+ get value(): unknown;
30
+ }
31
+
32
+ interface PopupMenuItem {
33
+ /** Whether the item is a checkbox item. */
34
+ checkable?: boolean;
35
+ /** The checked state of a checkbox item. */
36
+ checked?: Signal<boolean>;
37
+ /**
38
+ * The stream the menu pushes the item's click events to. The item component or radio group behind the item
39
+ * listens to it.
40
+ * @hidden
41
+ */
42
+ click$?: Subject<PopupMenuItemClickEvent>;
43
+ /** Whether the item can't be activated. */
44
+ disabled: boolean;
45
+ /**
46
+ * The group the item belongs to. Consecutive items with the same key form a group. A string key, or a symbol
47
+ * with a description, is the group's title.
48
+ */
49
+ group: string | symbol;
50
+ /** @hidden The template that renders the title of the item's group, or `null` to use the menu's group template. */
51
+ groupTemplate: Signal<TemplateRef<unknown> | null> | null;
52
+ /** @hidden The template that renders the item's icon, or `null` to use the menu's icon template. */
53
+ iconTemplate: Signal<TemplateRef<unknown> | null> | null;
54
+ /** The items of the item's submenu. Empty when it has none. */
55
+ items: PopupMenuItem[];
56
+ /** The item's text. */
57
+ label: string;
58
+ /** Whether the item is a radio item in a radio group. */
59
+ radio?: boolean;
60
+ /** Whether a radio item is the selected item of its radio group. */
61
+ selected?: Signal<boolean>;
62
+ /** Whether the item is a divider. */
63
+ separator?: boolean;
64
+ /**
65
+ * @hidden The template that renders the item's shortcut text, or `null` to use the menu's shortcut template.
66
+ */
67
+ shortcutTemplate: Signal<TemplateRef<unknown> | null> | null;
68
+ /**
69
+ * @hidden The template that renders the item's text in place of its label, or `null` to use the menu's text
70
+ * template.
71
+ */
72
+ textTemplate: Signal<TemplateRef<unknown> | null> | null;
73
+ /** @hidden A unique id for the item. The menu uses it as the item element's `id`. */
74
+ uid: string;
75
+ /** The item's value: the `value` input of the item component, or the `value` of a `MenuItem`. */
76
+ value?: Signal<unknown>;
77
+ }
78
+ interface MenuItem {
79
+ /**
80
+ * Whether the item is a checkbox item. Its `checked` state toggles when it's activated, unless `menuClick` is
81
+ * prevented. The state lives in the menu: read the new state from the event's `checked` and keep it in your
82
+ * items if they can be replaced.
83
+ */
84
+ checkable?: boolean;
85
+ /** The item's initial checked state. */
86
+ checked?: boolean;
87
+ /** Keeps the item from being activated. */
88
+ disabled?: boolean;
89
+ /**
90
+ * The title of the group the item belongs to. Consecutive items with the same group form one group.
91
+ */
92
+ group?: string;
93
+ /** The items of its submenu. */
94
+ items?: MenuItem[];
95
+ /** Required. The item's text. */
96
+ label: string;
97
+ /** Renders the item as a divider. */
98
+ separator?: boolean;
99
+ /**
100
+ * A value that identifies the item in `menuClick` (the event's `value`).
101
+ */
102
+ value?: unknown;
103
+ }
104
+
105
+ declare const PopupMenuToken: InjectionToken<PopupMenuConfig>;
106
+ declare const PopupMenuRadioItemToken: InjectionToken<PopupMenuConfig>;
107
+ declare const PopupMenuGroupTemplateToken: InjectionToken<PopupTemplateConfig>;
108
+ declare const PopupMenuIconTemplateToken: InjectionToken<PopupTemplateConfig>;
109
+ declare const PopupMenuShortcutTemplateToken: InjectionToken<PopupTemplateConfig>;
110
+ declare const PopupMenuTextTemplateToken: InjectionToken<PopupTemplateConfig>;
111
+ interface PopupMenuConfig {
112
+ getPopupMenuItem: () => PopupMenuItem[];
113
+ readonly origin: PopupMenuOrigin;
114
+ readonly type: PopupMenuItemType;
115
+ }
116
+ interface PopupTemplateConfig {
117
+ readonly origin: PopupMenuTemplateOrigin;
118
+ readonly template: TemplateRef<unknown>;
119
+ readonly type: PopupMenuTemplateType;
120
+ }
121
+ declare enum PopupMenuOrigin {
122
+ Popup = 1,
123
+ ContextMenu = 2,
124
+ DropdownButton = 3,
125
+ SplitButton = 4,
126
+ MenubarMenu = 5
127
+ }
128
+ declare enum PopupMenuItemType {
129
+ CheckboxMenuItem = 1,
130
+ MenuItem = 2,
131
+ MenuGroup = 3,
132
+ RadioGroup = 4,
133
+ RadioItem = 5,
134
+ Separator = 6
135
+ }
136
+ declare enum PopupMenuTemplateOrigin {
137
+ Popup = 1,
138
+ ContextMenu = 2,
139
+ DropdownButton = 3,
140
+ SplitButton = 4,
141
+ MenubarMenu = 5
142
+ }
143
+ declare enum PopupMenuTemplateType {
144
+ Group = 1,
145
+ Icon = 2,
146
+ Shortcut = 3,
147
+ Text = 4
148
+ }
149
+
150
+ declare const ensurePopupComponentTypes: (params: {
151
+ components: Iterable<PopupMenuConfig>;
152
+ componentTypeMap: Record<PopupMenuItemType, string>;
153
+ origin: PopupMenuOrigin;
154
+ prefix: string;
155
+ }) => void;
156
+ declare const ensurePopupTemplateTypes: (params: {
157
+ templates: Iterable<PopupTemplateConfig>;
158
+ templateTypeMap: Record<PopupMenuTemplateType, string>;
159
+ origin: PopupMenuTemplateOrigin;
160
+ prefix: string;
161
+ }) => void;
162
+ declare const preparePopupMenuItems: (items: Iterable<MenuItem>) => PopupMenuItem[];
163
+
164
+ export { PopupMenuGroupTemplateToken, PopupMenuIconTemplateToken, PopupMenuItemClickEvent, PopupMenuItemType, PopupMenuOrigin, PopupMenuRadioItemToken, PopupMenuShortcutTemplateToken, PopupMenuTemplateOrigin, PopupMenuTemplateType, PopupMenuTextTemplateToken, PopupMenuToken, ensurePopupComponentTypes, ensurePopupTemplateTypes, preparePopupMenuItems };
165
+ export type { MenuItem, PopupMenuConfig, PopupMenuItem, PopupTemplateConfig };