@nanahoshi/mona-ui 0.27.1 → 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 (359) hide show
  1. package/docs/api/auto-complete.md +67 -0
  2. package/docs/api/avatar.md +31 -0
  3. package/docs/api/breadcrumb.md +74 -0
  4. package/docs/api/button-group.md +71 -0
  5. package/docs/api/button.md +84 -0
  6. package/docs/api/calendar.md +123 -0
  7. package/docs/api/card.md +97 -0
  8. package/docs/api/chart.md +4380 -0
  9. package/docs/api/check-box.md +70 -0
  10. package/docs/api/chip.md +55 -0
  11. package/docs/api/circular-progress-bar.md +71 -0
  12. package/docs/api/collapsible.md +71 -0
  13. package/docs/api/color-gradient.md +54 -0
  14. package/docs/api/color-palette.md +52 -0
  15. package/docs/api/color-picker.md +89 -0
  16. package/docs/api/combo-box.md +69 -0
  17. package/docs/api/command.md +282 -0
  18. package/docs/api/common.md +599 -0
  19. package/docs/api/contextmenu.md +239 -0
  20. package/docs/api/date-input.md +119 -0
  21. package/docs/api/date-picker.md +67 -0
  22. package/docs/api/datetime-picker.md +72 -0
  23. package/docs/api/dialog.md +291 -0
  24. package/docs/api/dropdown-button.md +248 -0
  25. package/docs/api/dropdown-list.md +72 -0
  26. package/docs/api/dropdowns.md +172 -0
  27. package/docs/api/editor.md +117 -0
  28. package/docs/api/expansion-panel.md +85 -0
  29. package/docs/api/fieldset.md +33 -0
  30. package/docs/api/filter.md +116 -0
  31. package/docs/api/grid.md +1445 -0
  32. package/docs/api/i18n.md +1699 -0
  33. package/docs/api/label.md +58 -0
  34. package/docs/api/list-box.md +301 -0
  35. package/docs/api/list-view.md +294 -0
  36. package/docs/api/list.md +119 -0
  37. package/docs/api/locales.md +134 -0
  38. package/docs/api/menubar.md +275 -0
  39. package/docs/api/multi-select.md +92 -0
  40. package/docs/api/notification.md +164 -0
  41. package/docs/api/numeric-text-box.md +130 -0
  42. package/docs/api/otp-input.md +100 -0
  43. package/docs/api/pager.md +371 -0
  44. package/docs/api/placeholder.md +18 -0
  45. package/docs/api/popover.md +170 -0
  46. package/docs/api/popup-menu.md +328 -0
  47. package/docs/api/popup.md +299 -0
  48. package/docs/api/progress-bar.md +79 -0
  49. package/docs/api/query.md +367 -0
  50. package/docs/api/radio-button.md +113 -0
  51. package/docs/api/rating.md +187 -0
  52. package/docs/api/scroll-view.md +93 -0
  53. package/docs/api/segmented.md +114 -0
  54. package/docs/api/sheet.md +65 -0
  55. package/docs/api/sidebar.md +583 -0
  56. package/docs/api/skeleton.md +26 -0
  57. package/docs/api/slider.md +173 -0
  58. package/docs/api/spinner.md +132 -0
  59. package/docs/api/split-button.md +261 -0
  60. package/docs/api/splitter.md +57 -0
  61. package/docs/api/stepper.md +148 -0
  62. package/docs/api/switch.md +78 -0
  63. package/docs/api/tabs.md +139 -0
  64. package/docs/api/text-area.md +20 -0
  65. package/docs/api/text-box.md +106 -0
  66. package/docs/api/theme.md +627 -0
  67. package/docs/api/time-picker.md +69 -0
  68. package/docs/api/time-selector.md +54 -0
  69. package/docs/api/tooltip.md +112 -0
  70. package/docs/api/tree-view.md +631 -0
  71. package/docs/api/window.md +245 -0
  72. package/docs/auto-complete.md +28 -329
  73. package/docs/avatar.md +4 -24
  74. package/docs/breadcrumb.md +10 -65
  75. package/docs/button-group.md +7 -60
  76. package/docs/button.md +8 -67
  77. package/docs/calendar.md +16 -121
  78. package/docs/card.md +16 -79
  79. package/docs/chart-bar.md +16 -234
  80. package/docs/chart-financial.md +10 -121
  81. package/docs/chart-funnel.md +13 -176
  82. package/docs/chart-heatmap.md +15 -131
  83. package/docs/chart-line-area.md +12 -137
  84. package/docs/chart-pie.md +17 -221
  85. package/docs/chart-radar.md +13 -129
  86. package/docs/chart-radial.md +13 -211
  87. package/docs/chart-scatter.md +6 -74
  88. package/docs/chart-treemap.md +14 -196
  89. package/docs/chart.md +168 -1892
  90. package/docs/checkbox.md +5 -61
  91. package/docs/chip.md +7 -42
  92. package/docs/circular-progress-bar.md +9 -61
  93. package/docs/collapsible.md +5 -87
  94. package/docs/color-gradient.md +8 -81
  95. package/docs/color-palette.md +7 -69
  96. package/docs/color-picker.md +9 -105
  97. package/docs/combo-box.md +28 -331
  98. package/docs/command.md +25 -236
  99. package/docs/contextmenu.md +15 -140
  100. package/docs/date-picker.md +7 -110
  101. package/docs/datetime-picker.md +7 -129
  102. package/docs/decimal-textbox.md +6 -69
  103. package/docs/dialog.md +23 -263
  104. package/docs/dropdown-button.md +15 -146
  105. package/docs/dropdown-list.md +29 -332
  106. package/docs/editor.md +10 -164
  107. package/docs/expansion-panel.md +7 -69
  108. package/docs/fieldset.md +5 -24
  109. package/docs/grid-columns.md +12 -92
  110. package/docs/grid-editing.md +29 -291
  111. package/docs/grid-grouping.md +11 -50
  112. package/docs/grid-rows.md +10 -74
  113. package/docs/grid-selection.md +7 -36
  114. package/docs/grid-server.md +8 -293
  115. package/docs/grid-sorting-filtering.md +10 -333
  116. package/docs/grid-state-export.md +17 -228
  117. package/docs/grid.md +23 -216
  118. package/docs/input.md +7 -19
  119. package/docs/installation.md +147 -15
  120. package/docs/introduction.md +37 -15
  121. package/docs/label.md +8 -39
  122. package/docs/list-box.md +21 -253
  123. package/docs/list-view.md +25 -232
  124. package/docs/menubar.md +21 -167
  125. package/docs/multi-select.md +31 -350
  126. package/docs/notification.md +17 -116
  127. package/docs/numeric-textbox.md +9 -78
  128. package/docs/otp-input.md +9 -95
  129. package/docs/pager.md +19 -239
  130. package/docs/placeholder.md +5 -18
  131. package/docs/popover.md +13 -123
  132. package/docs/popup-menu.md +22 -243
  133. package/docs/popup.md +24 -248
  134. package/docs/progress-bar.md +10 -75
  135. package/docs/radio-button.md +8 -96
  136. package/docs/range-slider.md +9 -82
  137. package/docs/rating.md +15 -163
  138. package/docs/scroll-view.md +9 -86
  139. package/docs/segmented.md +8 -90
  140. package/docs/sheet.md +10 -74
  141. package/docs/sidebar-menus.md +20 -155
  142. package/docs/sidebar-state.md +16 -134
  143. package/docs/sidebar.md +18 -218
  144. package/docs/skeleton.md +5 -26
  145. package/docs/slider.md +9 -97
  146. package/docs/spinner.md +15 -95
  147. package/docs/split-button.md +21 -166
  148. package/docs/splitter.md +9 -56
  149. package/docs/stepper.md +13 -127
  150. package/docs/switch.md +8 -58
  151. package/docs/tabs.md +13 -111
  152. package/docs/textarea.md +4 -13
  153. package/docs/textbox.md +10 -77
  154. package/docs/theming-built-in-themes.md +67 -0
  155. package/docs/theming-custom-colors.md +274 -0
  156. package/docs/theming-custom-themes.md +168 -0
  157. package/docs/theming.md +164 -248
  158. package/docs/time-picker.md +7 -112
  159. package/docs/tooltip-directive.md +12 -96
  160. package/docs/tooltip.md +12 -96
  161. package/docs/tree-view.md +42 -495
  162. package/docs/window.md +19 -230
  163. package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +1089 -603
  164. package/fesm2022/nanahoshi-mona-ui-avatar.mjs +369 -184
  165. package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +658 -371
  166. package/fesm2022/nanahoshi-mona-ui-button-group.mjs +513 -359
  167. package/fesm2022/nanahoshi-mona-ui-button.mjs +622 -517
  168. package/fesm2022/nanahoshi-mona-ui-calendar.mjs +2070 -1573
  169. package/fesm2022/nanahoshi-mona-ui-card.mjs +620 -316
  170. package/fesm2022/nanahoshi-mona-ui-chart.mjs +61151 -64921
  171. package/fesm2022/nanahoshi-mona-ui-check-box.mjs +646 -317
  172. package/fesm2022/nanahoshi-mona-ui-chip.mjs +737 -516
  173. package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +441 -242
  174. package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +443 -389
  175. package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +1138 -814
  176. package/fesm2022/nanahoshi-mona-ui-color-palette.mjs +1114 -959
  177. package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +858 -504
  178. package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +1181 -742
  179. package/fesm2022/nanahoshi-mona-ui-command.mjs +1454 -853
  180. package/fesm2022/nanahoshi-mona-ui-common.mjs +569 -740
  181. package/fesm2022/nanahoshi-mona-ui-contextmenu.mjs +978 -532
  182. package/fesm2022/nanahoshi-mona-ui-date-input.mjs +283 -254
  183. package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +973 -451
  184. package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +1203 -658
  185. package/fesm2022/nanahoshi-mona-ui-dialog.mjs +1415 -936
  186. package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +1165 -568
  187. package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +1142 -677
  188. package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +1018 -729
  189. package/fesm2022/nanahoshi-mona-ui-editor.mjs +3589 -2122
  190. package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +577 -359
  191. package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +311 -151
  192. package/fesm2022/nanahoshi-mona-ui-filter.mjs +1086 -718
  193. package/fesm2022/nanahoshi-mona-ui-grid-grid-colgroup.component-NhONCVIX.mjs +77 -0
  194. package/fesm2022/nanahoshi-mona-ui-grid-grid-footer-row.component-Djv8ZnT5.mjs +480 -0
  195. package/fesm2022/nanahoshi-mona-ui-grid-grid-list.component-WbXAzGCa.mjs +470 -0
  196. package/fesm2022/nanahoshi-mona-ui-grid-grid-row.component-DkWTD3pN.mjs +2115 -0
  197. package/fesm2022/nanahoshi-mona-ui-grid-grid-virtual-list.component-DAHqTwBJ.mjs +330 -0
  198. package/fesm2022/nanahoshi-mona-ui-grid-grid.styles-BmLU-3zP.mjs +3766 -0
  199. package/fesm2022/nanahoshi-mona-ui-grid.mjs +5418 -2
  200. package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +1379 -1079
  201. package/fesm2022/nanahoshi-mona-ui-i18n.mjs +4451 -5068
  202. package/fesm2022/nanahoshi-mona-ui-internal-filter-input.mjs +344 -143
  203. package/fesm2022/nanahoshi-mona-ui-internal-indicator-icon.mjs +257 -127
  204. package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +2080 -1829
  205. package/fesm2022/nanahoshi-mona-ui-internal-popup-menu.mjs +103 -141
  206. package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +2498 -2706
  207. package/fesm2022/nanahoshi-mona-ui-internal.mjs +722 -1007
  208. package/fesm2022/nanahoshi-mona-ui-label.mjs +313 -202
  209. package/fesm2022/nanahoshi-mona-ui-list-box.mjs +1308 -1009
  210. package/fesm2022/nanahoshi-mona-ui-list-view.mjs +1411 -677
  211. package/fesm2022/nanahoshi-mona-ui-list.mjs +1 -6
  212. package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +556 -577
  213. package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +530 -573
  214. package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +530 -573
  215. package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +533 -576
  216. package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +520 -555
  217. package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +530 -571
  218. package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +520 -555
  219. package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +520 -555
  220. package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +530 -571
  221. package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +576 -591
  222. package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +530 -565
  223. package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +520 -555
  224. package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +520 -555
  225. package/fesm2022/nanahoshi-mona-ui-locales.mjs +59 -77
  226. package/fesm2022/nanahoshi-mona-ui-menubar.mjs +1411 -829
  227. package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +1326 -702
  228. package/fesm2022/nanahoshi-mona-ui-notification.mjs +763 -675
  229. package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +1306 -826
  230. package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +1122 -897
  231. package/fesm2022/nanahoshi-mona-ui-pager.mjs +1110 -651
  232. package/fesm2022/nanahoshi-mona-ui-placeholder.mjs +95 -53
  233. package/fesm2022/nanahoshi-mona-ui-popover.mjs +559 -397
  234. package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +2323 -1694
  235. package/fesm2022/nanahoshi-mona-ui-popup.mjs +1657 -1455
  236. package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +441 -267
  237. package/fesm2022/nanahoshi-mona-ui-query.mjs +211 -340
  238. package/fesm2022/nanahoshi-mona-ui-radio-button.mjs +1017 -548
  239. package/fesm2022/nanahoshi-mona-ui-rating.mjs +874 -624
  240. package/fesm2022/nanahoshi-mona-ui-scroll-view.mjs +1130 -917
  241. package/fesm2022/nanahoshi-mona-ui-segmented.mjs +705 -455
  242. package/fesm2022/nanahoshi-mona-ui-sheet.mjs +461 -283
  243. package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +2791 -2449
  244. package/fesm2022/nanahoshi-mona-ui-skeleton.mjs +145 -90
  245. package/fesm2022/nanahoshi-mona-ui-slider.mjs +1563 -1103
  246. package/fesm2022/nanahoshi-mona-ui-spinner.mjs +738 -673
  247. package/fesm2022/nanahoshi-mona-ui-split-button.mjs +1287 -647
  248. package/fesm2022/nanahoshi-mona-ui-splitter.mjs +1313 -909
  249. package/fesm2022/nanahoshi-mona-ui-stepper.mjs +761 -540
  250. package/fesm2022/nanahoshi-mona-ui-switch.mjs +611 -280
  251. package/fesm2022/nanahoshi-mona-ui-tabs.mjs +1393 -841
  252. package/fesm2022/nanahoshi-mona-ui-text-area.mjs +142 -73
  253. package/fesm2022/nanahoshi-mona-ui-text-box.mjs +876 -374
  254. package/fesm2022/nanahoshi-mona-ui-theme.mjs +1465 -1449
  255. package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +897 -443
  256. package/fesm2022/nanahoshi-mona-ui-time-selector.mjs +1100 -703
  257. package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +789 -538
  258. package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +1361 -805
  259. package/fesm2022/nanahoshi-mona-ui-window.mjs +2145 -1531
  260. package/fesm2022/nanahoshi-mona-ui.mjs +1 -8
  261. package/llms.txt +80 -2
  262. package/package.json +62 -23
  263. package/types/nanahoshi-mona-ui-auto-complete.d.ts +367 -233
  264. package/types/nanahoshi-mona-ui-avatar.d.ts +722 -649
  265. package/types/nanahoshi-mona-ui-breadcrumb.d.ts +134 -103
  266. package/types/nanahoshi-mona-ui-button-group.d.ts +213 -152
  267. package/types/nanahoshi-mona-ui-button.d.ts +227 -166
  268. package/types/nanahoshi-mona-ui-calendar.d.ts +324 -259
  269. package/types/nanahoshi-mona-ui-card.d.ts +125 -111
  270. package/types/nanahoshi-mona-ui-chart.d.ts +10483 -7326
  271. package/types/nanahoshi-mona-ui-check-box.d.ts +293 -180
  272. package/types/nanahoshi-mona-ui-chip.d.ts +208 -141
  273. package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +194 -133
  274. package/types/nanahoshi-mona-ui-collapsible.d.ts +105 -87
  275. package/types/nanahoshi-mona-ui-color-gradient.d.ts +281 -213
  276. package/types/nanahoshi-mona-ui-color-palette.d.ts +201 -138
  277. package/types/nanahoshi-mona-ui-color-picker.d.ts +283 -194
  278. package/types/nanahoshi-mona-ui-combo-box.d.ts +401 -262
  279. package/types/nanahoshi-mona-ui-command.d.ts +279 -191
  280. package/types/nanahoshi-mona-ui-common.d.ts +360 -385
  281. package/types/nanahoshi-mona-ui-contextmenu.d.ts +142 -117
  282. package/types/nanahoshi-mona-ui-date-input.d.ts +97 -97
  283. package/types/nanahoshi-mona-ui-date-picker.d.ts +338 -208
  284. package/types/nanahoshi-mona-ui-datetime-picker.d.ts +413 -259
  285. package/types/nanahoshi-mona-ui-dialog.d.ts +470 -381
  286. package/types/nanahoshi-mona-ui-dropdown-button.d.ts +216 -168
  287. package/types/nanahoshi-mona-ui-dropdown-list.d.ts +369 -243
  288. package/types/nanahoshi-mona-ui-dropdowns.d.ts +255 -235
  289. package/types/nanahoshi-mona-ui-editor.d.ts +302 -235
  290. package/types/nanahoshi-mona-ui-expansion-panel.d.ts +140 -109
  291. package/types/nanahoshi-mona-ui-fieldset.d.ts +98 -68
  292. package/types/nanahoshi-mona-ui-filter.d.ts +150 -124
  293. package/types/nanahoshi-mona-ui-grid.d.ts +1956 -1678
  294. package/types/nanahoshi-mona-ui-i18n-icu.d.ts +25 -34
  295. package/types/nanahoshi-mona-ui-i18n.d.ts +999 -1052
  296. package/types/nanahoshi-mona-ui-internal-filter-input.d.ts +118 -71
  297. package/types/nanahoshi-mona-ui-internal-indicator-icon.d.ts +56 -27
  298. package/types/nanahoshi-mona-ui-internal-list.d.ts +474 -408
  299. package/types/nanahoshi-mona-ui-internal-popup-menu.d.ts +143 -150
  300. package/types/nanahoshi-mona-ui-internal-tree.d.ts +493 -506
  301. package/types/nanahoshi-mona-ui-internal.d.ts +195 -213
  302. package/types/nanahoshi-mona-ui-label.d.ts +108 -78
  303. package/types/nanahoshi-mona-ui-list-box.d.ts +392 -322
  304. package/types/nanahoshi-mona-ui-list-view.d.ts +423 -282
  305. package/types/nanahoshi-mona-ui-list.d.ts +2 -1
  306. package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +540 -542
  307. package/types/nanahoshi-mona-ui-locales-de-de.d.ts +540 -542
  308. package/types/nanahoshi-mona-ui-locales-es-es.d.ts +540 -542
  309. package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +540 -542
  310. package/types/nanahoshi-mona-ui-locales-id-id.d.ts +540 -542
  311. package/types/nanahoshi-mona-ui-locales-it-it.d.ts +540 -542
  312. package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +540 -542
  313. package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +540 -542
  314. package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +540 -542
  315. package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +540 -542
  316. package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +540 -542
  317. package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +540 -542
  318. package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +540 -542
  319. package/types/nanahoshi-mona-ui-locales.d.ts +17 -19
  320. package/types/nanahoshi-mona-ui-menubar.d.ts +210 -181
  321. package/types/nanahoshi-mona-ui-multi-select.d.ts +416 -276
  322. package/types/nanahoshi-mona-ui-notification.d.ts +140 -151
  323. package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +407 -270
  324. package/types/nanahoshi-mona-ui-otp-input.d.ts +364 -241
  325. package/types/nanahoshi-mona-ui-pager.d.ts +379 -301
  326. package/types/nanahoshi-mona-ui-placeholder.d.ts +35 -28
  327. package/types/nanahoshi-mona-ui-popover.d.ts +176 -134
  328. package/types/nanahoshi-mona-ui-popup-menu.d.ts +488 -344
  329. package/types/nanahoshi-mona-ui-popup.d.ts +698 -560
  330. package/types/nanahoshi-mona-ui-progress-bar.d.ts +197 -137
  331. package/types/nanahoshi-mona-ui-query.d.ts +82 -88
  332. package/types/nanahoshi-mona-ui-radio-button.d.ts +434 -269
  333. package/types/nanahoshi-mona-ui-rating.d.ts +348 -254
  334. package/types/nanahoshi-mona-ui-scroll-view.d.ts +244 -172
  335. package/types/nanahoshi-mona-ui-segmented.d.ts +250 -175
  336. package/types/nanahoshi-mona-ui-sheet.d.ts +115 -63
  337. package/types/nanahoshi-mona-ui-sidebar.d.ts +653 -493
  338. package/types/nanahoshi-mona-ui-skeleton.d.ts +55 -39
  339. package/types/nanahoshi-mona-ui-slider.d.ts +503 -354
  340. package/types/nanahoshi-mona-ui-spinner.d.ts +125 -112
  341. package/types/nanahoshi-mona-ui-split-button.d.ts +241 -196
  342. package/types/nanahoshi-mona-ui-splitter.d.ts +124 -78
  343. package/types/nanahoshi-mona-ui-stepper.d.ts +206 -181
  344. package/types/nanahoshi-mona-ui-switch.d.ts +197 -131
  345. package/types/nanahoshi-mona-ui-tabs.d.ts +349 -248
  346. package/types/nanahoshi-mona-ui-text-area.d.ts +52 -36
  347. package/types/nanahoshi-mona-ui-text-box.d.ts +349 -218
  348. package/types/nanahoshi-mona-ui-theme.d.ts +415 -408
  349. package/types/nanahoshi-mona-ui-time-picker.d.ts +357 -217
  350. package/types/nanahoshi-mona-ui-time-selector.d.ts +255 -170
  351. package/types/nanahoshi-mona-ui-tooltip.d.ts +222 -144
  352. package/types/nanahoshi-mona-ui-tree-view.d.ts +466 -308
  353. package/types/nanahoshi-mona-ui-window.d.ts +494 -399
  354. package/types/nanahoshi-mona-ui.d.ts +1 -2
  355. package/fesm2022/nanahoshi-mona-ui-grid-grid-footer-row.component-DjNnVxHE.mjs +0 -181
  356. package/fesm2022/nanahoshi-mona-ui-grid-grid-list.component-ihQIKeP-.mjs +0 -208
  357. package/fesm2022/nanahoshi-mona-ui-grid-grid-row.component-BpnybNcs.mjs +0 -1082
  358. package/fesm2022/nanahoshi-mona-ui-grid-grid-virtual-list.component-CYlgfc7c.mjs +0 -186
  359. package/fesm2022/nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-LCzfCYd3.mjs +0 -7568
@@ -1,577 +1,1174 @@
1
- import { NgTemplateOutlet } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { forwardRef, Directive, inject, DestroyRef, signal, contentChildren, viewChild, contentChild, TemplateRef, computed, input, viewChildren, output, effect, untracked, afterNextRender, Component } from '@angular/core';
4
- import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
5
- import { LucideChevronDown } from '@lucide/angular';
6
- import { ButtonDirective, BUTTON_GROUP_MEMBER } from '@nanahoshi/mona-ui/button';
7
- import { createElementControlId } from '@nanahoshi/mona-ui/internal';
8
- import { PopupMenuGroupTemplateDirective, PopupMenuIconTemplateDirective, PopupMenuShortcutTemplateDirective, PopupMenuTextTemplateDirective, PopupMenuComponent, PopupMenuCheckboxItemComponent, PopupMenuGroupComponent, PopupMenuItemComponent, PopupMenuRadioGroupComponent, PopupMenuRadioItemComponent, PopupMenuSeparatorComponent } from '@nanahoshi/mona-ui/popup-menu';
9
- import { PopupMenuTemplateOrigin, PopupMenuGroupTemplateToken, PopupMenuIconTemplateToken, PopupMenuShortcutTemplateToken, PopupMenuTextTemplateToken, PopupMenuItemType, PopupMenuTemplateType, ensurePopupComponentTypes, PopupMenuOrigin, ensurePopupTemplateTypes, PopupMenuToken, PopupMenuRadioItemToken } from '@nanahoshi/mona-ui/internal/popup-menu';
10
- import { fromEvent } from 'rxjs';
11
-
12
- class DropdownButtonMenuGroupTemplateDirective extends PopupMenuGroupTemplateDirective {
13
- constructor() {
14
- super(...arguments);
15
- this.origin = PopupMenuTemplateOrigin.DropdownButton;
16
- }
17
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DropdownButtonMenuGroupTemplateDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
18
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: DropdownButtonMenuGroupTemplateDirective, isStandalone: true, selector: "ng-template[monaDropdownButtonMenuGroupTemplate]", providers: [
19
- {
20
- provide: PopupMenuGroupTemplateToken,
21
- useExisting: forwardRef(() => DropdownButtonMenuGroupTemplateDirective)
22
- }
23
- ], usesInheritance: true, ngImport: i0 }); }
24
- }
25
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DropdownButtonMenuGroupTemplateDirective, decorators: [{
26
- type: Directive,
27
- args: [{
28
- selector: "ng-template[monaDropdownButtonMenuGroupTemplate]",
29
- providers: [
30
- {
31
- provide: PopupMenuGroupTemplateToken,
32
- useExisting: forwardRef(() => DropdownButtonMenuGroupTemplateDirective)
33
- }
34
- ]
35
- }]
36
- }] });
37
-
38
- class DropdownButtonMenuItemIconTemplateDirective extends PopupMenuIconTemplateDirective {
39
- constructor() {
40
- super(...arguments);
41
- this.origin = PopupMenuTemplateOrigin.DropdownButton;
42
- }
43
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DropdownButtonMenuItemIconTemplateDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
44
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: DropdownButtonMenuItemIconTemplateDirective, isStandalone: true, selector: "ng-template[monaDropdownButtonMenuItemIconTemplate]", providers: [
45
- {
46
- provide: PopupMenuIconTemplateToken,
47
- useExisting: forwardRef(() => DropdownButtonMenuItemIconTemplateDirective)
48
- }
49
- ], usesInheritance: true, ngImport: i0 }); }
50
- }
51
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DropdownButtonMenuItemIconTemplateDirective, decorators: [{
52
- type: Directive,
53
- args: [{
54
- selector: "ng-template[monaDropdownButtonMenuItemIconTemplate]",
55
- providers: [
56
- {
57
- provide: PopupMenuIconTemplateToken,
58
- useExisting: forwardRef(() => DropdownButtonMenuItemIconTemplateDirective)
59
- }
60
- ]
61
- }]
62
- }] });
63
-
64
- class DropdownButtonMenuItemShortcutTemplateDirective extends PopupMenuShortcutTemplateDirective {
65
- constructor() {
66
- super(...arguments);
67
- this.origin = PopupMenuTemplateOrigin.DropdownButton;
68
- }
69
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DropdownButtonMenuItemShortcutTemplateDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
70
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: DropdownButtonMenuItemShortcutTemplateDirective, isStandalone: true, selector: "ng-template[monaDropdownButtonMenuItemShortcutTemplate]", providers: [
71
- {
72
- provide: PopupMenuShortcutTemplateToken,
73
- useExisting: forwardRef(() => DropdownButtonMenuItemShortcutTemplateDirective)
74
- }
75
- ], usesInheritance: true, ngImport: i0 }); }
76
- }
77
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DropdownButtonMenuItemShortcutTemplateDirective, decorators: [{
78
- type: Directive,
79
- args: [{
80
- selector: "ng-template[monaDropdownButtonMenuItemShortcutTemplate]",
81
- providers: [
82
- {
83
- provide: PopupMenuShortcutTemplateToken,
84
- useExisting: forwardRef(() => DropdownButtonMenuItemShortcutTemplateDirective)
85
- }
86
- ]
87
- }]
88
- }] });
89
-
90
- class DropdownButtonMenuItemTextTemplateDirective extends PopupMenuTextTemplateDirective {
91
- constructor() {
92
- super(...arguments);
93
- this.origin = PopupMenuTemplateOrigin.DropdownButton;
94
- }
95
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DropdownButtonMenuItemTextTemplateDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
96
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: DropdownButtonMenuItemTextTemplateDirective, isStandalone: true, selector: "ng-template[monaDropdownButtonMenuItemTextTemplate]", providers: [
97
- {
98
- provide: PopupMenuTextTemplateToken,
99
- useExisting: forwardRef(() => DropdownButtonMenuItemTextTemplateDirective)
100
- }
101
- ], usesInheritance: true, ngImport: i0 }); }
102
- }
103
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DropdownButtonMenuItemTextTemplateDirective, decorators: [{
104
- type: Directive,
105
- args: [{
106
- selector: "ng-template[monaDropdownButtonMenuItemTextTemplate]",
107
- providers: [
108
- {
109
- provide: PopupMenuTextTemplateToken,
110
- useExisting: forwardRef(() => DropdownButtonMenuItemTextTemplateDirective)
111
- }
112
- ]
113
- }]
114
- }] });
115
-
116
- class DropdownButtonTextTemplateDirective {
117
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DropdownButtonTextTemplateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
118
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: DropdownButtonTextTemplateDirective, isStandalone: true, selector: "ng-template[monaDropdownButtonTextTemplate]", ngImport: i0 }); }
119
- }
120
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DropdownButtonTextTemplateDirective, decorators: [{
121
- type: Directive,
122
- args: [{
123
- selector: "ng-template[monaDropdownButtonTextTemplate]"
124
- }]
125
- }] });
126
-
1
+ import { NgTemplateOutlet } from "@angular/common";
2
+ import * as i0 from "@angular/core";
3
+ import { Component, DestroyRef, Directive, TemplateRef, afterNextRender, computed, contentChild, contentChildren, effect, forwardRef, inject, input, output, signal, untracked, viewChild, viewChildren } from "@angular/core";
4
+ import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
5
+ import { LucideChevronDown } from "@lucide/angular";
6
+ import { BUTTON_GROUP_MEMBER, ButtonDirective } from "@nanahoshi/mona-ui/button";
7
+ import { createElementControlId } from "@nanahoshi/mona-ui/internal";
8
+ import { PopupMenuCheckboxItemComponent, PopupMenuComponent, PopupMenuGroupComponent, PopupMenuGroupTemplateDirective, PopupMenuIconTemplateDirective, PopupMenuItemComponent, PopupMenuRadioGroupComponent, PopupMenuRadioItemComponent, PopupMenuSeparatorComponent, PopupMenuShortcutTemplateDirective, PopupMenuTextTemplateDirective } from "@nanahoshi/mona-ui/popup-menu";
9
+ import { PopupMenuGroupTemplateToken, PopupMenuIconTemplateToken, PopupMenuItemType, PopupMenuOrigin, PopupMenuRadioItemToken, PopupMenuShortcutTemplateToken, PopupMenuTemplateOrigin, PopupMenuTemplateType, PopupMenuTextTemplateToken, PopupMenuToken, ensurePopupComponentTypes, ensurePopupTemplateTypes } from "@nanahoshi/mona-ui/internal/popup-menu";
10
+ import { fromEvent } from "rxjs";
11
+ var DropdownButtonMenuGroupTemplateDirective = class DropdownButtonMenuGroupTemplateDirective extends PopupMenuGroupTemplateDirective {
12
+ constructor() {
13
+ super(...arguments);
14
+ this.origin = PopupMenuTemplateOrigin.DropdownButton;
15
+ }
16
+ static {
17
+ this.ɵfac = i0.ɵɵngDeclareFactory({
18
+ minVersion: "12.0.0",
19
+ version: "22.2.6",
20
+ ngImport: i0,
21
+ type: DropdownButtonMenuGroupTemplateDirective,
22
+ deps: null,
23
+ target: i0.ɵɵFactoryTarget.Directive
24
+ });
25
+ }
26
+ static {
27
+ this.ɵdir = i0.ɵɵngDeclareDirective({
28
+ minVersion: "14.0.0",
29
+ version: "22.2.6",
30
+ type: DropdownButtonMenuGroupTemplateDirective,
31
+ isStandalone: true,
32
+ selector: "ng-template[monaDropdownButtonMenuGroupTemplate]",
33
+ providers: [{
34
+ provide: PopupMenuGroupTemplateToken,
35
+ useExisting: forwardRef(() => DropdownButtonMenuGroupTemplateDirective)
36
+ }],
37
+ usesInheritance: true,
38
+ ngImport: i0
39
+ });
40
+ }
41
+ };
42
+ i0.ɵɵngDeclareClassMetadata({
43
+ minVersion: "12.0.0",
44
+ version: "22.2.6",
45
+ ngImport: i0,
46
+ type: DropdownButtonMenuGroupTemplateDirective,
47
+ decorators: [{
48
+ type: Directive,
49
+ args: [{
50
+ selector: "ng-template[monaDropdownButtonMenuGroupTemplate]",
51
+ providers: [{
52
+ provide: PopupMenuGroupTemplateToken,
53
+ useExisting: forwardRef(() => DropdownButtonMenuGroupTemplateDirective)
54
+ }]
55
+ }]
56
+ }]
57
+ });
58
+ var DropdownButtonMenuItemIconTemplateDirective = class DropdownButtonMenuItemIconTemplateDirective extends PopupMenuIconTemplateDirective {
59
+ constructor() {
60
+ super(...arguments);
61
+ this.origin = PopupMenuTemplateOrigin.DropdownButton;
62
+ }
63
+ static {
64
+ this.ɵfac = i0.ɵɵngDeclareFactory({
65
+ minVersion: "12.0.0",
66
+ version: "22.2.6",
67
+ ngImport: i0,
68
+ type: DropdownButtonMenuItemIconTemplateDirective,
69
+ deps: null,
70
+ target: i0.ɵɵFactoryTarget.Directive
71
+ });
72
+ }
73
+ static {
74
+ this.ɵdir = i0.ɵɵngDeclareDirective({
75
+ minVersion: "14.0.0",
76
+ version: "22.2.6",
77
+ type: DropdownButtonMenuItemIconTemplateDirective,
78
+ isStandalone: true,
79
+ selector: "ng-template[monaDropdownButtonMenuItemIconTemplate]",
80
+ providers: [{
81
+ provide: PopupMenuIconTemplateToken,
82
+ useExisting: forwardRef(() => DropdownButtonMenuItemIconTemplateDirective)
83
+ }],
84
+ usesInheritance: true,
85
+ ngImport: i0
86
+ });
87
+ }
88
+ };
89
+ i0.ɵɵngDeclareClassMetadata({
90
+ minVersion: "12.0.0",
91
+ version: "22.2.6",
92
+ ngImport: i0,
93
+ type: DropdownButtonMenuItemIconTemplateDirective,
94
+ decorators: [{
95
+ type: Directive,
96
+ args: [{
97
+ selector: "ng-template[monaDropdownButtonMenuItemIconTemplate]",
98
+ providers: [{
99
+ provide: PopupMenuIconTemplateToken,
100
+ useExisting: forwardRef(() => DropdownButtonMenuItemIconTemplateDirective)
101
+ }]
102
+ }]
103
+ }]
104
+ });
105
+ var DropdownButtonMenuItemShortcutTemplateDirective = class DropdownButtonMenuItemShortcutTemplateDirective extends PopupMenuShortcutTemplateDirective {
106
+ constructor() {
107
+ super(...arguments);
108
+ this.origin = PopupMenuTemplateOrigin.DropdownButton;
109
+ }
110
+ static {
111
+ this.ɵfac = i0.ɵɵngDeclareFactory({
112
+ minVersion: "12.0.0",
113
+ version: "22.2.6",
114
+ ngImport: i0,
115
+ type: DropdownButtonMenuItemShortcutTemplateDirective,
116
+ deps: null,
117
+ target: i0.ɵɵFactoryTarget.Directive
118
+ });
119
+ }
120
+ static {
121
+ this.ɵdir = i0.ɵɵngDeclareDirective({
122
+ minVersion: "14.0.0",
123
+ version: "22.2.6",
124
+ type: DropdownButtonMenuItemShortcutTemplateDirective,
125
+ isStandalone: true,
126
+ selector: "ng-template[monaDropdownButtonMenuItemShortcutTemplate]",
127
+ providers: [{
128
+ provide: PopupMenuShortcutTemplateToken,
129
+ useExisting: forwardRef(() => DropdownButtonMenuItemShortcutTemplateDirective)
130
+ }],
131
+ usesInheritance: true,
132
+ ngImport: i0
133
+ });
134
+ }
135
+ };
136
+ i0.ɵɵngDeclareClassMetadata({
137
+ minVersion: "12.0.0",
138
+ version: "22.2.6",
139
+ ngImport: i0,
140
+ type: DropdownButtonMenuItemShortcutTemplateDirective,
141
+ decorators: [{
142
+ type: Directive,
143
+ args: [{
144
+ selector: "ng-template[monaDropdownButtonMenuItemShortcutTemplate]",
145
+ providers: [{
146
+ provide: PopupMenuShortcutTemplateToken,
147
+ useExisting: forwardRef(() => DropdownButtonMenuItemShortcutTemplateDirective)
148
+ }]
149
+ }]
150
+ }]
151
+ });
152
+ var DropdownButtonMenuItemTextTemplateDirective = class DropdownButtonMenuItemTextTemplateDirective extends PopupMenuTextTemplateDirective {
153
+ constructor() {
154
+ super(...arguments);
155
+ this.origin = PopupMenuTemplateOrigin.DropdownButton;
156
+ }
157
+ static {
158
+ this.ɵfac = i0.ɵɵngDeclareFactory({
159
+ minVersion: "12.0.0",
160
+ version: "22.2.6",
161
+ ngImport: i0,
162
+ type: DropdownButtonMenuItemTextTemplateDirective,
163
+ deps: null,
164
+ target: i0.ɵɵFactoryTarget.Directive
165
+ });
166
+ }
167
+ static {
168
+ this.ɵdir = i0.ɵɵngDeclareDirective({
169
+ minVersion: "14.0.0",
170
+ version: "22.2.6",
171
+ type: DropdownButtonMenuItemTextTemplateDirective,
172
+ isStandalone: true,
173
+ selector: "ng-template[monaDropdownButtonMenuItemTextTemplate]",
174
+ providers: [{
175
+ provide: PopupMenuTextTemplateToken,
176
+ useExisting: forwardRef(() => DropdownButtonMenuItemTextTemplateDirective)
177
+ }],
178
+ usesInheritance: true,
179
+ ngImport: i0
180
+ });
181
+ }
182
+ };
183
+ i0.ɵɵngDeclareClassMetadata({
184
+ minVersion: "12.0.0",
185
+ version: "22.2.6",
186
+ ngImport: i0,
187
+ type: DropdownButtonMenuItemTextTemplateDirective,
188
+ decorators: [{
189
+ type: Directive,
190
+ args: [{
191
+ selector: "ng-template[monaDropdownButtonMenuItemTextTemplate]",
192
+ providers: [{
193
+ provide: PopupMenuTextTemplateToken,
194
+ useExisting: forwardRef(() => DropdownButtonMenuItemTextTemplateDirective)
195
+ }]
196
+ }]
197
+ }]
198
+ });
199
+ var DropdownButtonTextTemplateDirective = class DropdownButtonTextTemplateDirective {
200
+ static {
201
+ this.ɵfac = i0.ɵɵngDeclareFactory({
202
+ minVersion: "12.0.0",
203
+ version: "22.2.6",
204
+ ngImport: i0,
205
+ type: DropdownButtonTextTemplateDirective,
206
+ deps: [],
207
+ target: i0.ɵɵFactoryTarget.Directive
208
+ });
209
+ }
210
+ static {
211
+ this.ɵdir = i0.ɵɵngDeclareDirective({
212
+ minVersion: "14.0.0",
213
+ version: "22.2.6",
214
+ type: DropdownButtonTextTemplateDirective,
215
+ isStandalone: true,
216
+ selector: "ng-template[monaDropdownButtonTextTemplate]",
217
+ ngImport: i0
218
+ });
219
+ }
220
+ };
221
+ i0.ɵɵngDeclareClassMetadata({
222
+ minVersion: "12.0.0",
223
+ version: "22.2.6",
224
+ ngImport: i0,
225
+ type: DropdownButtonTextTemplateDirective,
226
+ decorators: [{
227
+ type: Directive,
228
+ args: [{ selector: "ng-template[monaDropdownButtonTextTemplate]" }]
229
+ }]
230
+ });
127
231
  const componentTypeMap = {
128
- [PopupMenuItemType.CheckboxMenuItem]: "mona-dropdown-button-checkbox-item",
129
- [PopupMenuItemType.MenuGroup]: "mona-dropdown-button-group",
130
- [PopupMenuItemType.MenuItem]: "mona-dropdown-button-item",
131
- [PopupMenuItemType.RadioGroup]: "mona-dropdown-button-radio-group",
132
- [PopupMenuItemType.RadioItem]: "mona-dropdown-button-radio-item",
133
- [PopupMenuItemType.Separator]: "mona-dropdown-button-separator"
232
+ [PopupMenuItemType.CheckboxMenuItem]: "mona-dropdown-button-checkbox-item",
233
+ [PopupMenuItemType.MenuGroup]: "mona-dropdown-button-group",
234
+ [PopupMenuItemType.MenuItem]: "mona-dropdown-button-item",
235
+ [PopupMenuItemType.RadioGroup]: "mona-dropdown-button-radio-group",
236
+ [PopupMenuItemType.RadioItem]: "mona-dropdown-button-radio-item",
237
+ [PopupMenuItemType.Separator]: "mona-dropdown-button-separator"
134
238
  };
135
239
  const templateTypeMap = {
136
- [PopupMenuTemplateType.Group]: "monaDropdownButtonMenuGroupTemplate",
137
- [PopupMenuTemplateType.Icon]: "monaDropdownButtonMenuItemIconTemplate",
138
- [PopupMenuTemplateType.Shortcut]: "monaDropdownButtonMenuItemShortcutTemplate",
139
- [PopupMenuTemplateType.Text]: "monaDropdownButtonMenuItemTextTemplate"
240
+ [PopupMenuTemplateType.Group]: "monaDropdownButtonMenuGroupTemplate",
241
+ [PopupMenuTemplateType.Icon]: "monaDropdownButtonMenuItemIconTemplate",
242
+ [PopupMenuTemplateType.Shortcut]: "monaDropdownButtonMenuItemShortcutTemplate",
243
+ [PopupMenuTemplateType.Text]: "monaDropdownButtonMenuItemTextTemplate"
140
244
  };
141
245
  const ensureDropdownButtonComponentTypes = (components) => {
142
- ensurePopupComponentTypes({
143
- components,
144
- componentTypeMap,
145
- origin: PopupMenuOrigin.DropdownButton,
146
- prefix: "mona-dropdown-button"
147
- });
246
+ ensurePopupComponentTypes({
247
+ components,
248
+ componentTypeMap,
249
+ origin: PopupMenuOrigin.DropdownButton,
250
+ prefix: "mona-dropdown-button"
251
+ });
148
252
  };
149
253
  const ensureDropdownButtonTemplateTypes = (templates) => {
150
- ensurePopupTemplateTypes({
151
- templates,
152
- templateTypeMap,
153
- origin: PopupMenuTemplateOrigin.DropdownButton,
154
- prefix: "mona-dropdown-button"
155
- });
254
+ ensurePopupTemplateTypes({
255
+ templates,
256
+ templateTypeMap,
257
+ origin: PopupMenuTemplateOrigin.DropdownButton,
258
+ prefix: "mona-dropdown-button"
259
+ });
156
260
  };
157
-
158
- class DropdownButtonComponent {
159
- #destroyRef;
160
- #triggerWidth;
161
- constructor() {
162
- this.#destroyRef = inject(DestroyRef);
163
- this.#triggerWidth = signal(0, /* @ts-ignore */
164
- ...(ngDevMode ? [{ debugName: "#triggerWidth" }] : /* istanbul ignore next */ []));
165
- this.menuItemComponents = contentChildren(PopupMenuToken, { ...(ngDevMode ? { debugName: "menuItemComponents" } : /* istanbul ignore next */ {}), descendants: false });
166
- /** The menu is named by the element it opens from, through this id. */
167
- this.buttonId = createElementControlId();
168
- this.buttonRef = viewChild("dropdownButton", /* @ts-ignore */
169
- ...(ngDevMode ? [{ debugName: "buttonRef" }] : /* istanbul ignore next */ []));
170
- this.groupTemplate = contentChild(DropdownButtonMenuGroupTemplateDirective, { ...(ngDevMode ? { debugName: "groupTemplate" } : /* istanbul ignore next */ {}), read: TemplateRef,
171
- descendants: false });
172
- this.isMenuOpen = signal(false, /* @ts-ignore */
173
- ...(ngDevMode ? [{ debugName: "isMenuOpen" }] : /* istanbul ignore next */ []));
174
- this.menuId = createElementControlId();
175
- this.menuItemIconTemplate = contentChild(DropdownButtonMenuItemIconTemplateDirective, { ...(ngDevMode ? { debugName: "menuItemIconTemplate" } : /* istanbul ignore next */ {}), read: TemplateRef,
176
- descendants: false });
177
- this.menuItemShortcutTemplate = contentChild(DropdownButtonMenuItemShortcutTemplateDirective, { ...(ngDevMode ? { debugName: "menuItemShortcutTemplate" } : /* istanbul ignore next */ {}), read: TemplateRef,
178
- descendants: false });
179
- this.menuItemTextTemplate = contentChild(DropdownButtonMenuItemTextTemplateDirective, { ...(ngDevMode ? { debugName: "menuItemTextTemplate" } : /* istanbul ignore next */ {}), read: TemplateRef,
180
- descendants: false });
181
- this.menuItems = computed(() => {
182
- return this.menuItemComponents()
183
- .map(item => item.getPopupMenuItem())
184
- .flatMap(i => i);
185
- }, /* @ts-ignore */
186
- ...(ngDevMode ? [{ debugName: "menuItems" }] : /* istanbul ignore next */ []));
187
- this.popupMenuRef = viewChild("popupMenu", /* @ts-ignore */
188
- ...(ngDevMode ? [{ debugName: "popupMenuRef" }] : /* istanbul ignore next */ []));
189
- this.popupMenuRounded = computed(() => {
190
- const rounded = this.rounded();
191
- return rounded === "full" ? "large" : rounded;
192
- }, /* @ts-ignore */
193
- ...(ngDevMode ? [{ debugName: "popupMenuRounded" }] : /* istanbul ignore next */ []));
194
- this.popupMinWidth = computed(() => this.popupWidth() || this.#triggerWidth() || undefined, /* @ts-ignore */
195
- ...(ngDevMode ? [{ debugName: "popupMinWidth" }] : /* istanbul ignore next */ []));
196
- this.textTemplate = contentChild(DropdownButtonTextTemplateDirective, { ...(ngDevMode ? { debugName: "textTemplate" } : /* istanbul ignore next */ {}), read: TemplateRef });
197
- /**
198
- * @description Accessible name for the dropdown button. Leave it empty when the button shows its name as text;
199
- * set it (or `aria-labelledby`) when the button shows only an icon.
200
- * @default ""
201
- */
202
- this.ariaLabel = input("", { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: "aria-label" });
203
- /**
204
- * @description ID of an external element that provides the accessible name for the dropdown button.
205
- * Takes precedence over `aria-label` when both are set.
206
- * @default ""
207
- */
208
- this.ariaLabelledBy = input("", { ...(ngDevMode ? { debugName: "ariaLabelledBy" } : /* istanbul ignore next */ {}), alias: "aria-labelledby" });
209
- /**
210
- * @description Renders the button with reduced visual emphasis and removes pointer interaction. Disabling the
211
- * button closes its open menu.
212
- * @default false
213
- */
214
- this.disabled = input(false, /* @ts-ignore */
215
- ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
216
- /**
217
- * The trigger button, which joins a surrounding `mona-button-group`.
218
- */
219
- this.groupButtons = viewChildren(ButtonDirective, /* @ts-ignore */
220
- ...(ngDevMode ? [{ debugName: "groupButtons" }] : /* istanbul ignore next */ []));
221
- /**
222
- * @description Renders the button as a square for icon-only usage, removing horizontal text padding and the arrow.
223
- * Set `aria-label` when no visible text is present to ensure an accessible name.
224
- * @default false
225
- */
226
- this.iconOnly = input(false, /* @ts-ignore */
227
- ...(ngDevMode ? [{ debugName: "iconOnly" }] : /* istanbul ignore next */ []));
228
- /**
229
- * @description Displays a loading indicator and prevents interaction while an operation is in progress. Starting
230
- * to load closes the open menu.
231
- * @default false
232
- */
233
- this.loading = input(false, /* @ts-ignore */
234
- ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
235
- /**
236
- * @description Visual style preset applied to the button.
237
- * @default "default"
238
- */
239
- this.look = input("default", /* @ts-ignore */
240
- ...(ngDevMode ? [{ debugName: "look" }] : /* istanbul ignore next */ []));
241
- /**
242
- * @description Emitted when a menu item in the dropdown menu is clicked.
243
- */
244
- this.menuItemClick = output();
245
- /**
246
- * @description Minimum width of the popup menu in pixels. A value of `0` makes the menu at least as wide as the
247
- * button.
248
- * @default 0
249
- */
250
- this.popupWidth = input(0, /* @ts-ignore */
251
- ...(ngDevMode ? [{ debugName: "popupWidth" }] : /* istanbul ignore next */ []));
252
- /**
253
- * @description Border-radius preset applied to the button. The menu follows it (`"full"` gives it large corners).
254
- * @default "medium"
255
- */
256
- this.rounded = input("medium", /* @ts-ignore */
257
- ...(ngDevMode ? [{ debugName: "rounded" }] : /* istanbul ignore next */ []));
258
- /**
259
- * @description Shows a down arrow after the text, so the button reads as one that opens a menu. Icon-only buttons
260
- * never show it.
261
- * @default true
262
- */
263
- this.showArrow = input(true, /* @ts-ignore */
264
- ...(ngDevMode ? [{ debugName: "showArrow" }] : /* istanbul ignore next */ []));
265
- /**
266
- * @description Size preset controlling the button's dimensions.
267
- * @default "medium"
268
- */
269
- this.size = input("medium", /* @ts-ignore */
270
- ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
271
- /**
272
- * @description Primary text content displayed inside the dropdown button.
273
- * Passed as `$implicit` to a `monaDropdownButtonTextTemplate` when one is provided.
274
- * @default ""
275
- */
276
- this.text = input("", /* @ts-ignore */
277
- ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
278
- /**
279
- * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
280
- * @default ""
281
- */
282
- this.userClass = input("", { ...(ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {}), alias: "class" });
283
- effect(() => ensureDropdownButtonComponentTypes(this.menuItemComponents()));
284
- effect(() => {
285
- if (this.disabled() || this.loading() || this.groupButtons().some(button => button.effectiveDisabled())) {
286
- untracked(() => this.popupMenuRef()?.closeMenu());
287
- }
288
- });
289
- afterNextRender({
290
- read: () => {
291
- this.#setKeyboardEvents();
292
- this.#observeTriggerWidth();
293
- }
294
- });
295
- }
296
- onMenuClose() {
297
- this.isMenuOpen.set(false);
298
- }
299
- onMenuItemClick(event) {
300
- this.menuItemClick.emit(event);
301
- }
302
- onMenuOpen() {
303
- this.isMenuOpen.set(true);
304
- }
305
- #closeMenu() {
306
- const popupMenu = this.popupMenuRef();
307
- if (popupMenu && this.isMenuOpen()) {
308
- popupMenu.closeMenu();
309
- this.buttonRef()?.nativeElement?.focus();
310
- }
311
- }
312
- #observeTriggerWidth() {
313
- const button = this.buttonRef()?.nativeElement;
314
- if (!button || typeof ResizeObserver === "undefined") {
315
- return;
316
- }
317
- const observer = new ResizeObserver(() => this.#triggerWidth.set(button.offsetWidth));
318
- observer.observe(button);
319
- this.#destroyRef.onDestroy(() => observer.disconnect());
320
- }
321
- #openMenuViaKeyboard(focus) {
322
- const popupMenu = this.popupMenuRef();
323
- if (popupMenu && !this.isMenuOpen() && !this.disabled() && !this.loading()) {
324
- popupMenu.openMenuViaKeyboard(false, focus);
325
- }
326
- }
327
- #setKeyboardEvents() {
328
- const buttonElement = this.buttonRef()?.nativeElement;
329
- if (!buttonElement) {
330
- return;
331
- }
332
- fromEvent(buttonElement, "keydown")
333
- .pipe(takeUntilDestroyed(this.#destroyRef))
334
- .subscribe(event => {
335
- switch (event.key) {
336
- case "ArrowDown":
337
- case " ":
338
- case "Enter":
339
- event.preventDefault();
340
- this.#openMenuViaKeyboard("first");
341
- break;
342
- case "ArrowUp":
343
- event.preventDefault();
344
- this.#openMenuViaKeyboard("last");
345
- break;
346
- case "Escape":
347
- if (this.isMenuOpen()) {
348
- this.#closeMenu();
349
- }
350
- break;
351
- }
352
- });
353
- }
354
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DropdownButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
355
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: DropdownButtonComponent, isStandalone: true, selector: "mona-dropdown-button", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, iconOnly: { classPropertyName: "iconOnly", publicName: "iconOnly", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, look: { classPropertyName: "look", publicName: "look", isSignal: true, isRequired: false, transformFunction: null }, popupWidth: { classPropertyName: "popupWidth", publicName: "popupWidth", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, showArrow: { classPropertyName: "showArrow", publicName: "showArrow", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { menuItemClick: "menuItemClick" }, host: { properties: { "attr.aria-label": "null", "attr.aria-labelledby": "null", "class": "userClass()" } }, providers: [{ provide: BUTTON_GROUP_MEMBER, useExisting: DropdownButtonComponent }], queries: [{ propertyName: "menuItemComponents", predicate: PopupMenuToken, isSignal: true }, { propertyName: "groupTemplate", first: true, predicate: DropdownButtonMenuGroupTemplateDirective, read: TemplateRef, isSignal: true }, { propertyName: "menuItemIconTemplate", first: true, predicate: DropdownButtonMenuItemIconTemplateDirective, read: TemplateRef, isSignal: true }, { propertyName: "menuItemShortcutTemplate", first: true, predicate: DropdownButtonMenuItemShortcutTemplateDirective, read: TemplateRef, isSignal: true }, { propertyName: "menuItemTextTemplate", first: true, predicate: DropdownButtonMenuItemTextTemplateDirective, read: TemplateRef, isSignal: true }, { propertyName: "textTemplate", first: true, predicate: DropdownButtonTextTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }], viewQueries: [{ propertyName: "buttonRef", first: true, predicate: ["dropdownButton"], descendants: true, isSignal: true }, { propertyName: "popupMenuRef", first: true, predicate: ["popupMenu"], descendants: true, isSignal: true }, { propertyName: "groupButtons", predicate: ButtonDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<button\n monaButton\n [look]=\"look()\"\n [size]=\"size()\"\n [iconOnly]=\"iconOnly()\"\n [loading]=\"loading()\"\n [rounded]=\"rounded()\"\n [disabled]=\"disabled()\"\n [toggleable]=\"false\"\n aria-haspopup=\"menu\"\n [id]=\"buttonId\"\n [attr.aria-label]=\"ariaLabelledBy() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-expanded]=\"isMenuOpen()\"\n [attr.aria-controls]=\"isMenuOpen() ? menuId : null\"\n #dropdownButton>\n @if (textTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"textTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: text() }\"></ng-container>\n } @else {\n {{ text() }}\n }\n @if (showArrow() && !iconOnly()) {\n <svg lucideChevronDown [size]=\"16\" class=\"shrink-0\"></svg>\n }\n</button>\n\n<mona-popup-menu\n #popupMenu\n (close)=\"onMenuClose()\"\n (menuClick)=\"onMenuItemClick($event)\"\n (open)=\"onMenuOpen()\"\n [anchorConnectionPoint]=\"'bottomcenter'\"\n [id]=\"menuId\"\n [items]=\"menuItems()\"\n [minWidth]=\"popupMinWidth()\"\n [offset]=\"{ horizontal: 0, vertical: 2 }\"\n [popupConnectionPoint]=\"'topcenter'\"\n [rounded]=\"popupMenuRounded()\"\n [size]=\"size()\"\n [target]=\"dropdownButton\"\n [trigger]=\"'click'\">\n @if (groupTemplate()) {\n <ng-template monaPopupMenuGroupTemplate let-group>\n <ng-container\n [ngTemplateOutlet]=\"groupTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: group }\"></ng-container>\n </ng-template>\n }\n @if (menuItemIconTemplate()) {\n <ng-template monaPopupMenuIconTemplate let-item>\n <ng-container\n [ngTemplateOutlet]=\"menuItemIconTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n </ng-template>\n }\n @if (menuItemShortcutTemplate()) {\n <ng-template monaPopupMenuShortcutTemplate let-item>\n <ng-container\n [ngTemplateOutlet]=\"menuItemShortcutTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n </ng-template>\n }\n @if (menuItemTextTemplate()) {\n <ng-template monaPopupMenuTextTemplate let-item>\n <ng-container\n [ngTemplateOutlet]=\"menuItemTextTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n </ng-template>\n }\n</mona-popup-menu>\n", dependencies: [{ kind: "directive", type: ButtonDirective, selector: "button[monaButton]", inputs: ["aria-haspopup", "disabled", "iconOnly", "loading", "look", "rounded", "selected", "size", "tabindex", "toggleable", "type", "class", "value"], outputs: ["lookChange", "selectedChange"] }, { kind: "component", type: LucideChevronDown, selector: "svg[lucideChevronDown]" }, { kind: "component", type: PopupMenuComponent, selector: "mona-popup-menu", inputs: ["anchor", "anchorConnectionPoint", "aria-label", "aria-labelledby", "items", "id", "minWidth", "offset", "openAtPointer", "popupConnectionPoint", "rounded", "size", "target", "trigger", "class", "width"], outputs: ["close", "menuClick", "navigate", "open"] }, { kind: "directive", type: PopupMenuGroupTemplateDirective, selector: "ng-template[monaPopupMenuGroupTemplate]" }, { kind: "directive", type: PopupMenuIconTemplateDirective, selector: "ng-template[monaPopupMenuIconTemplate]" }, { kind: "directive", type: PopupMenuShortcutTemplateDirective, selector: "ng-template[monaPopupMenuShortcutTemplate]" }, { kind: "directive", type: PopupMenuTextTemplateDirective, selector: "ng-template[monaPopupMenuTextTemplate]" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
356
- }
357
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DropdownButtonComponent, decorators: [{
358
- type: Component,
359
- args: [{ selector: "mona-dropdown-button", providers: [{ provide: BUTTON_GROUP_MEMBER, useExisting: DropdownButtonComponent }], host: {
360
- "[attr.aria-label]": "null",
361
- "[attr.aria-labelledby]": "null",
362
- "[class]": "userClass()"
363
- }, imports: [
364
- ButtonDirective,
365
- LucideChevronDown,
366
- PopupMenuComponent,
367
- PopupMenuGroupTemplateDirective,
368
- PopupMenuIconTemplateDirective,
369
- PopupMenuShortcutTemplateDirective,
370
- PopupMenuTextTemplateDirective,
371
- NgTemplateOutlet
372
- ], template: "<button\n monaButton\n [look]=\"look()\"\n [size]=\"size()\"\n [iconOnly]=\"iconOnly()\"\n [loading]=\"loading()\"\n [rounded]=\"rounded()\"\n [disabled]=\"disabled()\"\n [toggleable]=\"false\"\n aria-haspopup=\"menu\"\n [id]=\"buttonId\"\n [attr.aria-label]=\"ariaLabelledBy() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-expanded]=\"isMenuOpen()\"\n [attr.aria-controls]=\"isMenuOpen() ? menuId : null\"\n #dropdownButton>\n @if (textTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"textTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: text() }\"></ng-container>\n } @else {\n {{ text() }}\n }\n @if (showArrow() && !iconOnly()) {\n <svg lucideChevronDown [size]=\"16\" class=\"shrink-0\"></svg>\n }\n</button>\n\n<mona-popup-menu\n #popupMenu\n (close)=\"onMenuClose()\"\n (menuClick)=\"onMenuItemClick($event)\"\n (open)=\"onMenuOpen()\"\n [anchorConnectionPoint]=\"'bottomcenter'\"\n [id]=\"menuId\"\n [items]=\"menuItems()\"\n [minWidth]=\"popupMinWidth()\"\n [offset]=\"{ horizontal: 0, vertical: 2 }\"\n [popupConnectionPoint]=\"'topcenter'\"\n [rounded]=\"popupMenuRounded()\"\n [size]=\"size()\"\n [target]=\"dropdownButton\"\n [trigger]=\"'click'\">\n @if (groupTemplate()) {\n <ng-template monaPopupMenuGroupTemplate let-group>\n <ng-container\n [ngTemplateOutlet]=\"groupTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: group }\"></ng-container>\n </ng-template>\n }\n @if (menuItemIconTemplate()) {\n <ng-template monaPopupMenuIconTemplate let-item>\n <ng-container\n [ngTemplateOutlet]=\"menuItemIconTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n </ng-template>\n }\n @if (menuItemShortcutTemplate()) {\n <ng-template monaPopupMenuShortcutTemplate let-item>\n <ng-container\n [ngTemplateOutlet]=\"menuItemShortcutTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n </ng-template>\n }\n @if (menuItemTextTemplate()) {\n <ng-template monaPopupMenuTextTemplate let-item>\n <ng-container\n [ngTemplateOutlet]=\"menuItemTextTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n </ng-template>\n }\n</mona-popup-menu>\n" }]
373
- }], ctorParameters: () => [], propDecorators: { menuItemComponents: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PopupMenuToken), { ...{ descendants: false }, isSignal: true }] }], buttonRef: [{ type: i0.ViewChild, args: ["dropdownButton", { isSignal: true }] }], groupTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => DropdownButtonMenuGroupTemplateDirective), { ...{
374
- read: TemplateRef,
375
- descendants: false
376
- }, isSignal: true }] }], menuItemIconTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => DropdownButtonMenuItemIconTemplateDirective), { ...{
377
- read: TemplateRef,
378
- descendants: false
379
- }, isSignal: true }] }], menuItemShortcutTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => DropdownButtonMenuItemShortcutTemplateDirective), { ...{
380
- read: TemplateRef,
381
- descendants: false
382
- }, isSignal: true }] }], menuItemTextTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => DropdownButtonMenuItemTextTemplateDirective), { ...{
383
- read: TemplateRef,
384
- descendants: false
385
- }, isSignal: true }] }], popupMenuRef: [{ type: i0.ViewChild, args: ["popupMenu", { isSignal: true }] }], textTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => DropdownButtonTextTemplateDirective), { ...{
386
- read: TemplateRef
387
- }, isSignal: true }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], groupButtons: [{ type: i0.ViewChildren, args: [i0.forwardRef(() => ButtonDirective), { isSignal: true }] }], iconOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconOnly", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], look: [{ type: i0.Input, args: [{ isSignal: true, alias: "look", required: false }] }], menuItemClick: [{ type: i0.Output, args: ["menuItemClick"] }], popupWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "popupWidth", required: false }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], showArrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "showArrow", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
388
-
389
- class DropdownButtonCheckboxItemComponent extends PopupMenuCheckboxItemComponent {
390
- constructor() {
391
- super();
392
- this.origin = PopupMenuOrigin.DropdownButton;
393
- effect(() => ensureDropdownButtonTemplateTypes([this.shortcutTemplateConfig(), this.textTemplateConfig()].filter(t => t !== undefined)));
394
- }
395
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DropdownButtonCheckboxItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
396
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: DropdownButtonCheckboxItemComponent, isStandalone: true, selector: "mona-dropdown-button-checkbox-item", providers: [
397
- {
398
- provide: PopupMenuToken,
399
- useExisting: forwardRef(() => DropdownButtonCheckboxItemComponent)
400
- }
401
- ], usesInheritance: true, ngImport: i0, template: "", isInline: true }); }
402
- }
403
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DropdownButtonCheckboxItemComponent, decorators: [{
404
- type: Component,
405
- args: [{
406
- selector: "mona-dropdown-button-checkbox-item",
407
- template: "",
408
- providers: [
409
- {
410
- provide: PopupMenuToken,
411
- useExisting: forwardRef(() => DropdownButtonCheckboxItemComponent)
412
- }
413
- ]
414
- }]
415
- }], ctorParameters: () => [] });
416
-
417
- class DropdownButtonGroupComponent extends PopupMenuGroupComponent {
418
- constructor() {
419
- super();
420
- this.origin = PopupMenuOrigin.DropdownButton;
421
- effect(() => ensureDropdownButtonComponentTypes(this.items()));
422
- effect(() => ensureDropdownButtonTemplateTypes([this.groupTemplateConfig()].filter(t => t !== undefined)));
423
- }
424
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DropdownButtonGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
425
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: DropdownButtonGroupComponent, isStandalone: true, selector: "mona-dropdown-button-group", providers: [
426
- {
427
- provide: PopupMenuToken,
428
- useExisting: forwardRef(() => DropdownButtonGroupComponent)
429
- }
430
- ], usesInheritance: true, ngImport: i0, template: "", isInline: true }); }
431
- }
432
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DropdownButtonGroupComponent, decorators: [{
433
- type: Component,
434
- args: [{
435
- selector: "mona-dropdown-button-group",
436
- template: "",
437
- providers: [
438
- {
439
- provide: PopupMenuToken,
440
- useExisting: forwardRef(() => DropdownButtonGroupComponent)
441
- }
442
- ]
443
- }]
444
- }], ctorParameters: () => [] });
445
-
446
- class DropdownButtonItemComponent extends PopupMenuItemComponent {
447
- constructor() {
448
- super();
449
- this.origin = PopupMenuOrigin.DropdownButton;
450
- effect(() => ensureDropdownButtonComponentTypes(this.items()));
451
- effect(() => ensureDropdownButtonTemplateTypes([this.iconTemplateConfig(), this.shortcutTemplateConfig(), this.textTemplateConfig()].filter(t => t !== undefined)));
452
- }
453
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DropdownButtonItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
454
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: DropdownButtonItemComponent, isStandalone: true, selector: "mona-dropdown-button-item", providers: [
455
- {
456
- provide: PopupMenuToken,
457
- useExisting: forwardRef(() => DropdownButtonItemComponent)
458
- }
459
- ], usesInheritance: true, ngImport: i0, template: "", isInline: true }); }
460
- }
461
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DropdownButtonItemComponent, decorators: [{
462
- type: Component,
463
- args: [{
464
- selector: "mona-dropdown-button-item",
465
- template: "",
466
- providers: [
467
- {
468
- provide: PopupMenuToken,
469
- useExisting: forwardRef(() => DropdownButtonItemComponent)
470
- }
471
- ]
472
- }]
473
- }], ctorParameters: () => [] });
474
-
475
- class DropdownButtonRadioGroupComponent extends PopupMenuRadioGroupComponent {
476
- constructor() {
477
- super();
478
- this.origin = PopupMenuOrigin.DropdownButton;
479
- effect(() => ensureDropdownButtonComponentTypes(this.items()));
480
- effect(() => ensureDropdownButtonTemplateTypes([this.groupTemplateConfig()].filter(t => t !== undefined)));
481
- }
482
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DropdownButtonRadioGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
483
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: DropdownButtonRadioGroupComponent, isStandalone: true, selector: "mona-dropdown-button-radio-group", providers: [
484
- {
485
- provide: PopupMenuToken,
486
- useExisting: forwardRef(() => DropdownButtonRadioGroupComponent)
487
- }
488
- ], usesInheritance: true, ngImport: i0, template: "", isInline: true }); }
489
- }
490
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DropdownButtonRadioGroupComponent, decorators: [{
491
- type: Component,
492
- args: [{
493
- selector: "mona-dropdown-button-radio-group",
494
- template: "",
495
- providers: [
496
- {
497
- provide: PopupMenuToken,
498
- useExisting: forwardRef(() => DropdownButtonRadioGroupComponent)
499
- }
500
- ]
501
- }]
502
- }], ctorParameters: () => [] });
503
-
504
- class DropdownButtonRadioItemComponent extends PopupMenuRadioItemComponent {
505
- constructor() {
506
- super();
507
- this.origin = PopupMenuOrigin.DropdownButton;
508
- effect(() => ensureDropdownButtonTemplateTypes([this.shortcutTemplateConfig(), this.textTemplateConfig()].filter(t => t !== undefined)));
509
- }
510
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DropdownButtonRadioItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
511
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: DropdownButtonRadioItemComponent, isStandalone: true, selector: "mona-dropdown-button-radio-item", providers: [
512
- {
513
- provide: PopupMenuToken,
514
- useExisting: forwardRef(() => DropdownButtonRadioItemComponent)
515
- },
516
- {
517
- provide: PopupMenuRadioItemToken,
518
- useExisting: forwardRef(() => DropdownButtonRadioItemComponent)
519
- }
520
- ], usesInheritance: true, ngImport: i0, template: "", isInline: true }); }
521
- }
522
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DropdownButtonRadioItemComponent, decorators: [{
523
- type: Component,
524
- args: [{
525
- selector: "mona-dropdown-button-radio-item",
526
- template: "",
527
- providers: [
528
- {
529
- provide: PopupMenuToken,
530
- useExisting: forwardRef(() => DropdownButtonRadioItemComponent)
531
- },
532
- {
533
- provide: PopupMenuRadioItemToken,
534
- useExisting: forwardRef(() => DropdownButtonRadioItemComponent)
535
- }
536
- ]
537
- }]
538
- }], ctorParameters: () => [] });
539
-
540
- /** Renders a horizontal visual divider between sections. */
541
- class DropdownButtonSeparatorComponent extends PopupMenuSeparatorComponent {
542
- constructor() {
543
- super(...arguments);
544
- this.origin = PopupMenuOrigin.DropdownButton;
545
- }
546
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DropdownButtonSeparatorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
547
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: DropdownButtonSeparatorComponent, isStandalone: true, selector: "mona-dropdown-button-separator", providers: [
548
- {
549
- provide: PopupMenuToken,
550
- useExisting: forwardRef(() => DropdownButtonSeparatorComponent)
551
- }
552
- ], usesInheritance: true, ngImport: i0, template: "", isInline: true }); }
553
- }
554
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DropdownButtonSeparatorComponent, decorators: [{
555
- type: Component,
556
- args: [{
557
- selector: "mona-dropdown-button-separator",
558
- template: "",
559
- providers: [
560
- {
561
- provide: PopupMenuToken,
562
- useExisting: forwardRef(() => DropdownButtonSeparatorComponent)
563
- }
564
- ]
565
- }]
566
- }] });
567
-
568
- /*
569
- * Public API Surface of @nanahoshi/mona-ui/dropdown-button
570
- */
571
-
572
- /**
573
- * Generated bundle index. Do not edit.
574
- */
575
-
261
+ var DropdownButtonComponent = class DropdownButtonComponent {
262
+ #destroyRef;
263
+ #triggerWidth;
264
+ constructor() {
265
+ this.#destroyRef = inject(DestroyRef);
266
+ this.#triggerWidth = signal(0, ...ngDevMode ? [{ debugName: "#triggerWidth" }] : /* istanbul ignore next */ []);
267
+ this.menuItemComponents = contentChildren(PopupMenuToken, {
268
+ ...ngDevMode ? { debugName: "menuItemComponents" } : /* istanbul ignore next */ {},
269
+ descendants: false
270
+ });
271
+ this.buttonId = createElementControlId();
272
+ this.buttonRef = viewChild("dropdownButton", ...ngDevMode ? [{ debugName: "buttonRef" }] : /* istanbul ignore next */ []);
273
+ this.groupTemplate = contentChild(DropdownButtonMenuGroupTemplateDirective, {
274
+ ...ngDevMode ? { debugName: "groupTemplate" } : /* istanbul ignore next */ {},
275
+ read: TemplateRef,
276
+ descendants: false
277
+ });
278
+ this.isMenuOpen = signal(false, ...ngDevMode ? [{ debugName: "isMenuOpen" }] : /* istanbul ignore next */ []);
279
+ this.menuId = createElementControlId();
280
+ this.menuItemIconTemplate = contentChild(DropdownButtonMenuItemIconTemplateDirective, {
281
+ ...ngDevMode ? { debugName: "menuItemIconTemplate" } : /* istanbul ignore next */ {},
282
+ read: TemplateRef,
283
+ descendants: false
284
+ });
285
+ this.menuItemShortcutTemplate = contentChild(DropdownButtonMenuItemShortcutTemplateDirective, {
286
+ ...ngDevMode ? { debugName: "menuItemShortcutTemplate" } : /* istanbul ignore next */ {},
287
+ read: TemplateRef,
288
+ descendants: false
289
+ });
290
+ this.menuItemTextTemplate = contentChild(DropdownButtonMenuItemTextTemplateDirective, {
291
+ ...ngDevMode ? { debugName: "menuItemTextTemplate" } : /* istanbul ignore next */ {},
292
+ read: TemplateRef,
293
+ descendants: false
294
+ });
295
+ this.menuItems = computed(() => {
296
+ return this.menuItemComponents().map((item) => item.getPopupMenuItem()).flatMap((i) => i);
297
+ }, ...ngDevMode ? [{ debugName: "menuItems" }] : /* istanbul ignore next */ []);
298
+ this.popupMenuRef = viewChild("popupMenu", ...ngDevMode ? [{ debugName: "popupMenuRef" }] : /* istanbul ignore next */ []);
299
+ this.popupMenuRounded = computed(() => {
300
+ const rounded = this.rounded();
301
+ return rounded === "full" ? "large" : rounded;
302
+ }, ...ngDevMode ? [{ debugName: "popupMenuRounded" }] : /* istanbul ignore next */ []);
303
+ this.popupMinWidth = computed(() => this.popupWidth() || this.#triggerWidth() || void 0, ...ngDevMode ? [{ debugName: "popupMinWidth" }] : /* istanbul ignore next */ []);
304
+ this.textTemplate = contentChild(DropdownButtonTextTemplateDirective, {
305
+ ...ngDevMode ? { debugName: "textTemplate" } : /* istanbul ignore next */ {},
306
+ read: TemplateRef
307
+ });
308
+ this.ariaLabel = input("", {
309
+ ...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
310
+ alias: "aria-label"
311
+ });
312
+ this.ariaLabelledBy = input("", {
313
+ ...ngDevMode ? { debugName: "ariaLabelledBy" } : /* istanbul ignore next */ {},
314
+ alias: "aria-labelledby"
315
+ });
316
+ this.disabled = input(false, ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
317
+ this.groupButtons = viewChildren(ButtonDirective, ...ngDevMode ? [{ debugName: "groupButtons" }] : /* istanbul ignore next */ []);
318
+ this.iconOnly = input(false, ...ngDevMode ? [{ debugName: "iconOnly" }] : /* istanbul ignore next */ []);
319
+ this.loading = input(false, ...ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []);
320
+ this.look = input("default", ...ngDevMode ? [{ debugName: "look" }] : /* istanbul ignore next */ []);
321
+ this.menuItemClick = output();
322
+ this.popupWidth = input(0, ...ngDevMode ? [{ debugName: "popupWidth" }] : /* istanbul ignore next */ []);
323
+ this.rounded = input("medium", ...ngDevMode ? [{ debugName: "rounded" }] : /* istanbul ignore next */ []);
324
+ this.showArrow = input(true, ...ngDevMode ? [{ debugName: "showArrow" }] : /* istanbul ignore next */ []);
325
+ this.size = input("medium", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
326
+ this.text = input("", ...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
327
+ this.userClass = input("", {
328
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
329
+ alias: "class"
330
+ });
331
+ effect(() => ensureDropdownButtonComponentTypes(this.menuItemComponents()));
332
+ effect(() => {
333
+ if (this.disabled() || this.loading() || this.groupButtons().some((button) => button.effectiveDisabled())) untracked(() => this.popupMenuRef()?.closeMenu());
334
+ });
335
+ afterNextRender({ read: () => {
336
+ this.#setKeyboardEvents();
337
+ this.#observeTriggerWidth();
338
+ } });
339
+ }
340
+ onMenuClose() {
341
+ this.isMenuOpen.set(false);
342
+ }
343
+ onMenuItemClick(event) {
344
+ this.menuItemClick.emit(event);
345
+ }
346
+ onMenuOpen() {
347
+ this.isMenuOpen.set(true);
348
+ }
349
+ #closeMenu() {
350
+ const popupMenu = this.popupMenuRef();
351
+ if (popupMenu && this.isMenuOpen()) {
352
+ popupMenu.closeMenu();
353
+ this.buttonRef()?.nativeElement?.focus();
354
+ }
355
+ }
356
+ #observeTriggerWidth() {
357
+ const button = this.buttonRef()?.nativeElement;
358
+ if (!button || typeof ResizeObserver === "undefined") return;
359
+ const observer = new ResizeObserver(() => this.#triggerWidth.set(button.offsetWidth));
360
+ observer.observe(button);
361
+ this.#destroyRef.onDestroy(() => observer.disconnect());
362
+ }
363
+ #openMenuViaKeyboard(focus) {
364
+ const popupMenu = this.popupMenuRef();
365
+ if (popupMenu && !this.isMenuOpen() && !this.disabled() && !this.loading()) popupMenu.openMenuViaKeyboard(false, focus);
366
+ }
367
+ #setKeyboardEvents() {
368
+ const buttonElement = this.buttonRef()?.nativeElement;
369
+ if (!buttonElement) return;
370
+ fromEvent(buttonElement, "keydown").pipe(takeUntilDestroyed(this.#destroyRef)).subscribe((event) => {
371
+ switch (event.key) {
372
+ case "ArrowDown":
373
+ case " ":
374
+ case "Enter":
375
+ event.preventDefault();
376
+ this.#openMenuViaKeyboard("first");
377
+ break;
378
+ case "ArrowUp":
379
+ event.preventDefault();
380
+ this.#openMenuViaKeyboard("last");
381
+ break;
382
+ case "Escape": if (this.isMenuOpen()) this.#closeMenu();
383
+ }
384
+ });
385
+ }
386
+ static {
387
+ this.ɵfac = i0.ɵɵngDeclareFactory({
388
+ minVersion: "12.0.0",
389
+ version: "22.2.6",
390
+ ngImport: i0,
391
+ type: DropdownButtonComponent,
392
+ deps: [],
393
+ target: i0.ɵɵFactoryTarget.Component
394
+ });
395
+ }
396
+ static {
397
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
398
+ minVersion: "17.0.0",
399
+ version: "22.2.6",
400
+ type: DropdownButtonComponent,
401
+ isStandalone: true,
402
+ selector: "mona-dropdown-button",
403
+ inputs: {
404
+ ariaLabel: {
405
+ classPropertyName: "ariaLabel",
406
+ publicName: "aria-label",
407
+ isSignal: true,
408
+ isRequired: false,
409
+ transformFunction: null
410
+ },
411
+ ariaLabelledBy: {
412
+ classPropertyName: "ariaLabelledBy",
413
+ publicName: "aria-labelledby",
414
+ isSignal: true,
415
+ isRequired: false,
416
+ transformFunction: null
417
+ },
418
+ disabled: {
419
+ classPropertyName: "disabled",
420
+ publicName: "disabled",
421
+ isSignal: true,
422
+ isRequired: false,
423
+ transformFunction: null
424
+ },
425
+ iconOnly: {
426
+ classPropertyName: "iconOnly",
427
+ publicName: "iconOnly",
428
+ isSignal: true,
429
+ isRequired: false,
430
+ transformFunction: null
431
+ },
432
+ loading: {
433
+ classPropertyName: "loading",
434
+ publicName: "loading",
435
+ isSignal: true,
436
+ isRequired: false,
437
+ transformFunction: null
438
+ },
439
+ look: {
440
+ classPropertyName: "look",
441
+ publicName: "look",
442
+ isSignal: true,
443
+ isRequired: false,
444
+ transformFunction: null
445
+ },
446
+ popupWidth: {
447
+ classPropertyName: "popupWidth",
448
+ publicName: "popupWidth",
449
+ isSignal: true,
450
+ isRequired: false,
451
+ transformFunction: null
452
+ },
453
+ rounded: {
454
+ classPropertyName: "rounded",
455
+ publicName: "rounded",
456
+ isSignal: true,
457
+ isRequired: false,
458
+ transformFunction: null
459
+ },
460
+ showArrow: {
461
+ classPropertyName: "showArrow",
462
+ publicName: "showArrow",
463
+ isSignal: true,
464
+ isRequired: false,
465
+ transformFunction: null
466
+ },
467
+ size: {
468
+ classPropertyName: "size",
469
+ publicName: "size",
470
+ isSignal: true,
471
+ isRequired: false,
472
+ transformFunction: null
473
+ },
474
+ text: {
475
+ classPropertyName: "text",
476
+ publicName: "text",
477
+ isSignal: true,
478
+ isRequired: false,
479
+ transformFunction: null
480
+ },
481
+ userClass: {
482
+ classPropertyName: "userClass",
483
+ publicName: "class",
484
+ isSignal: true,
485
+ isRequired: false,
486
+ transformFunction: null
487
+ }
488
+ },
489
+ outputs: { menuItemClick: "menuItemClick" },
490
+ host: { properties: {
491
+ "attr.aria-label": "null",
492
+ "attr.aria-labelledby": "null",
493
+ "class": "userClass()"
494
+ } },
495
+ providers: [{
496
+ provide: BUTTON_GROUP_MEMBER,
497
+ useExisting: DropdownButtonComponent
498
+ }],
499
+ queries: [
500
+ {
501
+ propertyName: "menuItemComponents",
502
+ predicate: PopupMenuToken,
503
+ isSignal: true
504
+ },
505
+ {
506
+ propertyName: "groupTemplate",
507
+ first: true,
508
+ predicate: DropdownButtonMenuGroupTemplateDirective,
509
+ read: TemplateRef,
510
+ isSignal: true
511
+ },
512
+ {
513
+ propertyName: "menuItemIconTemplate",
514
+ first: true,
515
+ predicate: DropdownButtonMenuItemIconTemplateDirective,
516
+ read: TemplateRef,
517
+ isSignal: true
518
+ },
519
+ {
520
+ propertyName: "menuItemShortcutTemplate",
521
+ first: true,
522
+ predicate: DropdownButtonMenuItemShortcutTemplateDirective,
523
+ read: TemplateRef,
524
+ isSignal: true
525
+ },
526
+ {
527
+ propertyName: "menuItemTextTemplate",
528
+ first: true,
529
+ predicate: DropdownButtonMenuItemTextTemplateDirective,
530
+ read: TemplateRef,
531
+ isSignal: true
532
+ },
533
+ {
534
+ propertyName: "textTemplate",
535
+ first: true,
536
+ predicate: DropdownButtonTextTemplateDirective,
537
+ descendants: true,
538
+ read: TemplateRef,
539
+ isSignal: true
540
+ }
541
+ ],
542
+ viewQueries: [
543
+ {
544
+ propertyName: "buttonRef",
545
+ first: true,
546
+ predicate: ["dropdownButton"],
547
+ descendants: true,
548
+ isSignal: true
549
+ },
550
+ {
551
+ propertyName: "popupMenuRef",
552
+ first: true,
553
+ predicate: ["popupMenu"],
554
+ descendants: true,
555
+ isSignal: true
556
+ },
557
+ {
558
+ propertyName: "groupButtons",
559
+ predicate: ButtonDirective,
560
+ descendants: true,
561
+ isSignal: true
562
+ }
563
+ ],
564
+ ngImport: i0,
565
+ template: "<button\n monaButton\n [look]=\"look()\"\n [size]=\"size()\"\n [iconOnly]=\"iconOnly()\"\n [loading]=\"loading()\"\n [rounded]=\"rounded()\"\n [disabled]=\"disabled()\"\n [toggleable]=\"false\"\n aria-haspopup=\"menu\"\n [id]=\"buttonId\"\n [attr.aria-label]=\"ariaLabelledBy() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-expanded]=\"isMenuOpen()\"\n [attr.aria-controls]=\"isMenuOpen() ? menuId : null\"\n #dropdownButton>\n @if (textTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"textTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: text() }\"></ng-container>\n } @else {\n {{ text() }}\n }\n @if (showArrow() && !iconOnly()) {\n <svg lucideChevronDown [size]=\"16\" class=\"shrink-0\"></svg>\n }\n</button>\n\n<mona-popup-menu\n #popupMenu\n (close)=\"onMenuClose()\"\n (menuClick)=\"onMenuItemClick($event)\"\n (open)=\"onMenuOpen()\"\n [anchorConnectionPoint]=\"'bottomcenter'\"\n [id]=\"menuId\"\n [items]=\"menuItems()\"\n [minWidth]=\"popupMinWidth()\"\n [offset]=\"{ horizontal: 0, vertical: 2 }\"\n [popupConnectionPoint]=\"'topcenter'\"\n [rounded]=\"popupMenuRounded()\"\n [size]=\"size()\"\n [target]=\"dropdownButton\"\n [trigger]=\"'click'\">\n @if (groupTemplate()) {\n <ng-template monaPopupMenuGroupTemplate let-group>\n <ng-container\n [ngTemplateOutlet]=\"groupTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: group }\"></ng-container>\n </ng-template>\n }\n @if (menuItemIconTemplate()) {\n <ng-template monaPopupMenuIconTemplate let-item>\n <ng-container\n [ngTemplateOutlet]=\"menuItemIconTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n </ng-template>\n }\n @if (menuItemShortcutTemplate()) {\n <ng-template monaPopupMenuShortcutTemplate let-item>\n <ng-container\n [ngTemplateOutlet]=\"menuItemShortcutTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n </ng-template>\n }\n @if (menuItemTextTemplate()) {\n <ng-template monaPopupMenuTextTemplate let-item>\n <ng-container\n [ngTemplateOutlet]=\"menuItemTextTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n </ng-template>\n }\n</mona-popup-menu>\n",
566
+ dependencies: [
567
+ {
568
+ kind: "directive",
569
+ type: ButtonDirective,
570
+ selector: "button[monaButton]",
571
+ inputs: [
572
+ "aria-haspopup",
573
+ "disabled",
574
+ "iconOnly",
575
+ "loading",
576
+ "look",
577
+ "rounded",
578
+ "selected",
579
+ "size",
580
+ "tabindex",
581
+ "toggleable",
582
+ "type",
583
+ "class",
584
+ "value"
585
+ ],
586
+ outputs: ["lookChange", "selectedChange"]
587
+ },
588
+ {
589
+ kind: "component",
590
+ type: LucideChevronDown,
591
+ selector: "svg[lucideChevronDown]"
592
+ },
593
+ {
594
+ kind: "component",
595
+ type: PopupMenuComponent,
596
+ selector: "mona-popup-menu",
597
+ inputs: [
598
+ "anchor",
599
+ "anchorConnectionPoint",
600
+ "aria-label",
601
+ "aria-labelledby",
602
+ "items",
603
+ "id",
604
+ "minWidth",
605
+ "offset",
606
+ "openAtPointer",
607
+ "popupConnectionPoint",
608
+ "rounded",
609
+ "size",
610
+ "target",
611
+ "trigger",
612
+ "class",
613
+ "width"
614
+ ],
615
+ outputs: [
616
+ "close",
617
+ "menuClick",
618
+ "navigate",
619
+ "open"
620
+ ]
621
+ },
622
+ {
623
+ kind: "directive",
624
+ type: PopupMenuGroupTemplateDirective,
625
+ selector: "ng-template[monaPopupMenuGroupTemplate]"
626
+ },
627
+ {
628
+ kind: "directive",
629
+ type: PopupMenuIconTemplateDirective,
630
+ selector: "ng-template[monaPopupMenuIconTemplate]"
631
+ },
632
+ {
633
+ kind: "directive",
634
+ type: PopupMenuShortcutTemplateDirective,
635
+ selector: "ng-template[monaPopupMenuShortcutTemplate]"
636
+ },
637
+ {
638
+ kind: "directive",
639
+ type: PopupMenuTextTemplateDirective,
640
+ selector: "ng-template[monaPopupMenuTextTemplate]"
641
+ },
642
+ {
643
+ kind: "directive",
644
+ type: NgTemplateOutlet,
645
+ selector: "[ngTemplateOutlet]",
646
+ inputs: [
647
+ "ngTemplateOutletContext",
648
+ "ngTemplateOutlet",
649
+ "ngTemplateOutletInjector"
650
+ ]
651
+ }
652
+ ]
653
+ });
654
+ }
655
+ };
656
+ i0.ɵɵngDeclareClassMetadata({
657
+ minVersion: "12.0.0",
658
+ version: "22.2.6",
659
+ ngImport: i0,
660
+ type: DropdownButtonComponent,
661
+ decorators: [{
662
+ type: Component,
663
+ args: [{
664
+ selector: "mona-dropdown-button",
665
+ providers: [{
666
+ provide: BUTTON_GROUP_MEMBER,
667
+ useExisting: DropdownButtonComponent
668
+ }],
669
+ host: {
670
+ "[attr.aria-label]": "null",
671
+ "[attr.aria-labelledby]": "null",
672
+ "[class]": "userClass()"
673
+ },
674
+ imports: [
675
+ ButtonDirective,
676
+ LucideChevronDown,
677
+ PopupMenuComponent,
678
+ PopupMenuGroupTemplateDirective,
679
+ PopupMenuIconTemplateDirective,
680
+ PopupMenuShortcutTemplateDirective,
681
+ PopupMenuTextTemplateDirective,
682
+ NgTemplateOutlet
683
+ ],
684
+ template: "<button\n monaButton\n [look]=\"look()\"\n [size]=\"size()\"\n [iconOnly]=\"iconOnly()\"\n [loading]=\"loading()\"\n [rounded]=\"rounded()\"\n [disabled]=\"disabled()\"\n [toggleable]=\"false\"\n aria-haspopup=\"menu\"\n [id]=\"buttonId\"\n [attr.aria-label]=\"ariaLabelledBy() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-expanded]=\"isMenuOpen()\"\n [attr.aria-controls]=\"isMenuOpen() ? menuId : null\"\n #dropdownButton>\n @if (textTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"textTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: text() }\"></ng-container>\n } @else {\n {{ text() }}\n }\n @if (showArrow() && !iconOnly()) {\n <svg lucideChevronDown [size]=\"16\" class=\"shrink-0\"></svg>\n }\n</button>\n\n<mona-popup-menu\n #popupMenu\n (close)=\"onMenuClose()\"\n (menuClick)=\"onMenuItemClick($event)\"\n (open)=\"onMenuOpen()\"\n [anchorConnectionPoint]=\"'bottomcenter'\"\n [id]=\"menuId\"\n [items]=\"menuItems()\"\n [minWidth]=\"popupMinWidth()\"\n [offset]=\"{ horizontal: 0, vertical: 2 }\"\n [popupConnectionPoint]=\"'topcenter'\"\n [rounded]=\"popupMenuRounded()\"\n [size]=\"size()\"\n [target]=\"dropdownButton\"\n [trigger]=\"'click'\">\n @if (groupTemplate()) {\n <ng-template monaPopupMenuGroupTemplate let-group>\n <ng-container\n [ngTemplateOutlet]=\"groupTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: group }\"></ng-container>\n </ng-template>\n }\n @if (menuItemIconTemplate()) {\n <ng-template monaPopupMenuIconTemplate let-item>\n <ng-container\n [ngTemplateOutlet]=\"menuItemIconTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n </ng-template>\n }\n @if (menuItemShortcutTemplate()) {\n <ng-template monaPopupMenuShortcutTemplate let-item>\n <ng-container\n [ngTemplateOutlet]=\"menuItemShortcutTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n </ng-template>\n }\n @if (menuItemTextTemplate()) {\n <ng-template monaPopupMenuTextTemplate let-item>\n <ng-container\n [ngTemplateOutlet]=\"menuItemTextTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n </ng-template>\n }\n</mona-popup-menu>\n"
685
+ }]
686
+ }],
687
+ ctorParameters: () => [],
688
+ propDecorators: {
689
+ menuItemComponents: [{
690
+ type: i0.ContentChildren,
691
+ args: [i0.forwardRef(() => PopupMenuToken), {
692
+ descendants: false,
693
+ isSignal: true
694
+ }]
695
+ }],
696
+ buttonRef: [{
697
+ type: i0.ViewChild,
698
+ args: ["dropdownButton", { isSignal: true }]
699
+ }],
700
+ groupTemplate: [{
701
+ type: i0.ContentChild,
702
+ args: [i0.forwardRef(() => DropdownButtonMenuGroupTemplateDirective), {
703
+ read: TemplateRef,
704
+ descendants: false,
705
+ isSignal: true
706
+ }]
707
+ }],
708
+ menuItemIconTemplate: [{
709
+ type: i0.ContentChild,
710
+ args: [i0.forwardRef(() => DropdownButtonMenuItemIconTemplateDirective), {
711
+ read: TemplateRef,
712
+ descendants: false,
713
+ isSignal: true
714
+ }]
715
+ }],
716
+ menuItemShortcutTemplate: [{
717
+ type: i0.ContentChild,
718
+ args: [i0.forwardRef(() => DropdownButtonMenuItemShortcutTemplateDirective), {
719
+ read: TemplateRef,
720
+ descendants: false,
721
+ isSignal: true
722
+ }]
723
+ }],
724
+ menuItemTextTemplate: [{
725
+ type: i0.ContentChild,
726
+ args: [i0.forwardRef(() => DropdownButtonMenuItemTextTemplateDirective), {
727
+ read: TemplateRef,
728
+ descendants: false,
729
+ isSignal: true
730
+ }]
731
+ }],
732
+ popupMenuRef: [{
733
+ type: i0.ViewChild,
734
+ args: ["popupMenu", { isSignal: true }]
735
+ }],
736
+ textTemplate: [{
737
+ type: i0.ContentChild,
738
+ args: [i0.forwardRef(() => DropdownButtonTextTemplateDirective), {
739
+ read: TemplateRef,
740
+ isSignal: true
741
+ }]
742
+ }],
743
+ ariaLabel: [{
744
+ type: i0.Input,
745
+ args: [{
746
+ isSignal: true,
747
+ alias: "aria-label",
748
+ required: false
749
+ }]
750
+ }],
751
+ ariaLabelledBy: [{
752
+ type: i0.Input,
753
+ args: [{
754
+ isSignal: true,
755
+ alias: "aria-labelledby",
756
+ required: false
757
+ }]
758
+ }],
759
+ disabled: [{
760
+ type: i0.Input,
761
+ args: [{
762
+ isSignal: true,
763
+ alias: "disabled",
764
+ required: false
765
+ }]
766
+ }],
767
+ groupButtons: [{
768
+ type: i0.ViewChildren,
769
+ args: [i0.forwardRef(() => ButtonDirective), { isSignal: true }]
770
+ }],
771
+ iconOnly: [{
772
+ type: i0.Input,
773
+ args: [{
774
+ isSignal: true,
775
+ alias: "iconOnly",
776
+ required: false
777
+ }]
778
+ }],
779
+ loading: [{
780
+ type: i0.Input,
781
+ args: [{
782
+ isSignal: true,
783
+ alias: "loading",
784
+ required: false
785
+ }]
786
+ }],
787
+ look: [{
788
+ type: i0.Input,
789
+ args: [{
790
+ isSignal: true,
791
+ alias: "look",
792
+ required: false
793
+ }]
794
+ }],
795
+ menuItemClick: [{
796
+ type: i0.Output,
797
+ args: ["menuItemClick"]
798
+ }],
799
+ popupWidth: [{
800
+ type: i0.Input,
801
+ args: [{
802
+ isSignal: true,
803
+ alias: "popupWidth",
804
+ required: false
805
+ }]
806
+ }],
807
+ rounded: [{
808
+ type: i0.Input,
809
+ args: [{
810
+ isSignal: true,
811
+ alias: "rounded",
812
+ required: false
813
+ }]
814
+ }],
815
+ showArrow: [{
816
+ type: i0.Input,
817
+ args: [{
818
+ isSignal: true,
819
+ alias: "showArrow",
820
+ required: false
821
+ }]
822
+ }],
823
+ size: [{
824
+ type: i0.Input,
825
+ args: [{
826
+ isSignal: true,
827
+ alias: "size",
828
+ required: false
829
+ }]
830
+ }],
831
+ text: [{
832
+ type: i0.Input,
833
+ args: [{
834
+ isSignal: true,
835
+ alias: "text",
836
+ required: false
837
+ }]
838
+ }],
839
+ userClass: [{
840
+ type: i0.Input,
841
+ args: [{
842
+ isSignal: true,
843
+ alias: "class",
844
+ required: false
845
+ }]
846
+ }]
847
+ }
848
+ });
849
+ var DropdownButtonCheckboxItemComponent = class DropdownButtonCheckboxItemComponent extends PopupMenuCheckboxItemComponent {
850
+ constructor() {
851
+ super();
852
+ this.origin = PopupMenuOrigin.DropdownButton;
853
+ effect(() => ensureDropdownButtonTemplateTypes([this.shortcutTemplateConfig(), this.textTemplateConfig()].filter((t) => t !== void 0)));
854
+ }
855
+ static {
856
+ this.ɵfac = i0.ɵɵngDeclareFactory({
857
+ minVersion: "12.0.0",
858
+ version: "22.2.6",
859
+ ngImport: i0,
860
+ type: DropdownButtonCheckboxItemComponent,
861
+ deps: [],
862
+ target: i0.ɵɵFactoryTarget.Component
863
+ });
864
+ }
865
+ static {
866
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
867
+ minVersion: "14.0.0",
868
+ version: "22.2.6",
869
+ type: DropdownButtonCheckboxItemComponent,
870
+ isStandalone: true,
871
+ selector: "mona-dropdown-button-checkbox-item",
872
+ providers: [{
873
+ provide: PopupMenuToken,
874
+ useExisting: forwardRef(() => DropdownButtonCheckboxItemComponent)
875
+ }],
876
+ usesInheritance: true,
877
+ ngImport: i0,
878
+ template: "",
879
+ isInline: true
880
+ });
881
+ }
882
+ };
883
+ i0.ɵɵngDeclareClassMetadata({
884
+ minVersion: "12.0.0",
885
+ version: "22.2.6",
886
+ ngImport: i0,
887
+ type: DropdownButtonCheckboxItemComponent,
888
+ decorators: [{
889
+ type: Component,
890
+ args: [{
891
+ selector: "mona-dropdown-button-checkbox-item",
892
+ template: "",
893
+ providers: [{
894
+ provide: PopupMenuToken,
895
+ useExisting: forwardRef(() => DropdownButtonCheckboxItemComponent)
896
+ }]
897
+ }]
898
+ }],
899
+ ctorParameters: () => []
900
+ });
901
+ var DropdownButtonGroupComponent = class DropdownButtonGroupComponent extends PopupMenuGroupComponent {
902
+ constructor() {
903
+ super();
904
+ this.origin = PopupMenuOrigin.DropdownButton;
905
+ effect(() => ensureDropdownButtonComponentTypes(this.items()));
906
+ effect(() => ensureDropdownButtonTemplateTypes([this.groupTemplateConfig()].filter((t) => t !== void 0)));
907
+ }
908
+ static {
909
+ this.ɵfac = i0.ɵɵngDeclareFactory({
910
+ minVersion: "12.0.0",
911
+ version: "22.2.6",
912
+ ngImport: i0,
913
+ type: DropdownButtonGroupComponent,
914
+ deps: [],
915
+ target: i0.ɵɵFactoryTarget.Component
916
+ });
917
+ }
918
+ static {
919
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
920
+ minVersion: "14.0.0",
921
+ version: "22.2.6",
922
+ type: DropdownButtonGroupComponent,
923
+ isStandalone: true,
924
+ selector: "mona-dropdown-button-group",
925
+ providers: [{
926
+ provide: PopupMenuToken,
927
+ useExisting: forwardRef(() => DropdownButtonGroupComponent)
928
+ }],
929
+ usesInheritance: true,
930
+ ngImport: i0,
931
+ template: "",
932
+ isInline: true
933
+ });
934
+ }
935
+ };
936
+ i0.ɵɵngDeclareClassMetadata({
937
+ minVersion: "12.0.0",
938
+ version: "22.2.6",
939
+ ngImport: i0,
940
+ type: DropdownButtonGroupComponent,
941
+ decorators: [{
942
+ type: Component,
943
+ args: [{
944
+ selector: "mona-dropdown-button-group",
945
+ template: "",
946
+ providers: [{
947
+ provide: PopupMenuToken,
948
+ useExisting: forwardRef(() => DropdownButtonGroupComponent)
949
+ }]
950
+ }]
951
+ }],
952
+ ctorParameters: () => []
953
+ });
954
+ var DropdownButtonItemComponent = class DropdownButtonItemComponent extends PopupMenuItemComponent {
955
+ constructor() {
956
+ super();
957
+ this.origin = PopupMenuOrigin.DropdownButton;
958
+ effect(() => ensureDropdownButtonComponentTypes(this.items()));
959
+ effect(() => ensureDropdownButtonTemplateTypes([
960
+ this.iconTemplateConfig(),
961
+ this.shortcutTemplateConfig(),
962
+ this.textTemplateConfig()
963
+ ].filter((t) => t !== void 0)));
964
+ }
965
+ static {
966
+ this.ɵfac = i0.ɵɵngDeclareFactory({
967
+ minVersion: "12.0.0",
968
+ version: "22.2.6",
969
+ ngImport: i0,
970
+ type: DropdownButtonItemComponent,
971
+ deps: [],
972
+ target: i0.ɵɵFactoryTarget.Component
973
+ });
974
+ }
975
+ static {
976
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
977
+ minVersion: "14.0.0",
978
+ version: "22.2.6",
979
+ type: DropdownButtonItemComponent,
980
+ isStandalone: true,
981
+ selector: "mona-dropdown-button-item",
982
+ providers: [{
983
+ provide: PopupMenuToken,
984
+ useExisting: forwardRef(() => DropdownButtonItemComponent)
985
+ }],
986
+ usesInheritance: true,
987
+ ngImport: i0,
988
+ template: "",
989
+ isInline: true
990
+ });
991
+ }
992
+ };
993
+ i0.ɵɵngDeclareClassMetadata({
994
+ minVersion: "12.0.0",
995
+ version: "22.2.6",
996
+ ngImport: i0,
997
+ type: DropdownButtonItemComponent,
998
+ decorators: [{
999
+ type: Component,
1000
+ args: [{
1001
+ selector: "mona-dropdown-button-item",
1002
+ template: "",
1003
+ providers: [{
1004
+ provide: PopupMenuToken,
1005
+ useExisting: forwardRef(() => DropdownButtonItemComponent)
1006
+ }]
1007
+ }]
1008
+ }],
1009
+ ctorParameters: () => []
1010
+ });
1011
+ var DropdownButtonRadioGroupComponent = class DropdownButtonRadioGroupComponent extends PopupMenuRadioGroupComponent {
1012
+ constructor() {
1013
+ super();
1014
+ this.origin = PopupMenuOrigin.DropdownButton;
1015
+ effect(() => ensureDropdownButtonComponentTypes(this.items()));
1016
+ effect(() => ensureDropdownButtonTemplateTypes([this.groupTemplateConfig()].filter((t) => t !== void 0)));
1017
+ }
1018
+ static {
1019
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1020
+ minVersion: "12.0.0",
1021
+ version: "22.2.6",
1022
+ ngImport: i0,
1023
+ type: DropdownButtonRadioGroupComponent,
1024
+ deps: [],
1025
+ target: i0.ɵɵFactoryTarget.Component
1026
+ });
1027
+ }
1028
+ static {
1029
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
1030
+ minVersion: "14.0.0",
1031
+ version: "22.2.6",
1032
+ type: DropdownButtonRadioGroupComponent,
1033
+ isStandalone: true,
1034
+ selector: "mona-dropdown-button-radio-group",
1035
+ providers: [{
1036
+ provide: PopupMenuToken,
1037
+ useExisting: forwardRef(() => DropdownButtonRadioGroupComponent)
1038
+ }],
1039
+ usesInheritance: true,
1040
+ ngImport: i0,
1041
+ template: "",
1042
+ isInline: true
1043
+ });
1044
+ }
1045
+ };
1046
+ i0.ɵɵngDeclareClassMetadata({
1047
+ minVersion: "12.0.0",
1048
+ version: "22.2.6",
1049
+ ngImport: i0,
1050
+ type: DropdownButtonRadioGroupComponent,
1051
+ decorators: [{
1052
+ type: Component,
1053
+ args: [{
1054
+ selector: "mona-dropdown-button-radio-group",
1055
+ template: "",
1056
+ providers: [{
1057
+ provide: PopupMenuToken,
1058
+ useExisting: forwardRef(() => DropdownButtonRadioGroupComponent)
1059
+ }]
1060
+ }]
1061
+ }],
1062
+ ctorParameters: () => []
1063
+ });
1064
+ var DropdownButtonRadioItemComponent = class DropdownButtonRadioItemComponent extends PopupMenuRadioItemComponent {
1065
+ constructor() {
1066
+ super();
1067
+ this.origin = PopupMenuOrigin.DropdownButton;
1068
+ effect(() => ensureDropdownButtonTemplateTypes([this.shortcutTemplateConfig(), this.textTemplateConfig()].filter((t) => t !== void 0)));
1069
+ }
1070
+ static {
1071
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1072
+ minVersion: "12.0.0",
1073
+ version: "22.2.6",
1074
+ ngImport: i0,
1075
+ type: DropdownButtonRadioItemComponent,
1076
+ deps: [],
1077
+ target: i0.ɵɵFactoryTarget.Component
1078
+ });
1079
+ }
1080
+ static {
1081
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
1082
+ minVersion: "14.0.0",
1083
+ version: "22.2.6",
1084
+ type: DropdownButtonRadioItemComponent,
1085
+ isStandalone: true,
1086
+ selector: "mona-dropdown-button-radio-item",
1087
+ providers: [{
1088
+ provide: PopupMenuToken,
1089
+ useExisting: forwardRef(() => DropdownButtonRadioItemComponent)
1090
+ }, {
1091
+ provide: PopupMenuRadioItemToken,
1092
+ useExisting: forwardRef(() => DropdownButtonRadioItemComponent)
1093
+ }],
1094
+ usesInheritance: true,
1095
+ ngImport: i0,
1096
+ template: "",
1097
+ isInline: true
1098
+ });
1099
+ }
1100
+ };
1101
+ i0.ɵɵngDeclareClassMetadata({
1102
+ minVersion: "12.0.0",
1103
+ version: "22.2.6",
1104
+ ngImport: i0,
1105
+ type: DropdownButtonRadioItemComponent,
1106
+ decorators: [{
1107
+ type: Component,
1108
+ args: [{
1109
+ selector: "mona-dropdown-button-radio-item",
1110
+ template: "",
1111
+ providers: [{
1112
+ provide: PopupMenuToken,
1113
+ useExisting: forwardRef(() => DropdownButtonRadioItemComponent)
1114
+ }, {
1115
+ provide: PopupMenuRadioItemToken,
1116
+ useExisting: forwardRef(() => DropdownButtonRadioItemComponent)
1117
+ }]
1118
+ }]
1119
+ }],
1120
+ ctorParameters: () => []
1121
+ });
1122
+ var DropdownButtonSeparatorComponent = class DropdownButtonSeparatorComponent extends PopupMenuSeparatorComponent {
1123
+ constructor() {
1124
+ super(...arguments);
1125
+ this.origin = PopupMenuOrigin.DropdownButton;
1126
+ }
1127
+ static {
1128
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1129
+ minVersion: "12.0.0",
1130
+ version: "22.2.6",
1131
+ ngImport: i0,
1132
+ type: DropdownButtonSeparatorComponent,
1133
+ deps: null,
1134
+ target: i0.ɵɵFactoryTarget.Component
1135
+ });
1136
+ }
1137
+ static {
1138
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
1139
+ minVersion: "14.0.0",
1140
+ version: "22.2.6",
1141
+ type: DropdownButtonSeparatorComponent,
1142
+ isStandalone: true,
1143
+ selector: "mona-dropdown-button-separator",
1144
+ providers: [{
1145
+ provide: PopupMenuToken,
1146
+ useExisting: forwardRef(() => DropdownButtonSeparatorComponent)
1147
+ }],
1148
+ usesInheritance: true,
1149
+ ngImport: i0,
1150
+ template: "",
1151
+ isInline: true
1152
+ });
1153
+ }
1154
+ };
1155
+ i0.ɵɵngDeclareClassMetadata({
1156
+ minVersion: "12.0.0",
1157
+ version: "22.2.6",
1158
+ ngImport: i0,
1159
+ type: DropdownButtonSeparatorComponent,
1160
+ decorators: [{
1161
+ type: Component,
1162
+ args: [{
1163
+ selector: "mona-dropdown-button-separator",
1164
+ template: "",
1165
+ providers: [{
1166
+ provide: PopupMenuToken,
1167
+ useExisting: forwardRef(() => DropdownButtonSeparatorComponent)
1168
+ }]
1169
+ }]
1170
+ }]
1171
+ });
576
1172
  export { DropdownButtonCheckboxItemComponent, DropdownButtonComponent, DropdownButtonGroupComponent, DropdownButtonItemComponent, DropdownButtonMenuGroupTemplateDirective, DropdownButtonMenuItemIconTemplateDirective, DropdownButtonMenuItemShortcutTemplateDirective, DropdownButtonMenuItemTextTemplateDirective, DropdownButtonRadioGroupComponent, DropdownButtonRadioItemComponent, DropdownButtonSeparatorComponent, DropdownButtonTextTemplateDirective };
577
- //# sourceMappingURL=nanahoshi-mona-ui-dropdown-button.mjs.map
1173
+
1174
+ //# sourceMappingURL=nanahoshi-mona-ui-dropdown-button.mjs.map