@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,580 +1,718 @@
1
- import * as _angular_core from '@angular/core';
2
- import { ComponentRef, TemplateRef, Injector, StaticProvider, OnDestroy, InjectionToken } from '@angular/core';
3
- import { OverlayRef, ConnectionPositionPair, FlexibleConnectedPositionStrategyOrigin, ComponentType, ConnectedPosition } from '@angular/cdk/overlay';
4
- import { Action } from '@nanahoshi/mona-ui/internal';
5
- import { PreventableEvent } from '@nanahoshi/mona-ui/common';
6
- import { Observable } from 'rxjs';
7
-
8
- declare class PopupCloseEvent<R = unknown> extends PreventableEvent {
9
- #private;
10
- constructor(options?: Partial<PopupCloseEventOptions<R>>);
11
- /** The result value passed to `close()`, if any. */
12
- get result(): R | undefined;
13
- /** The source of the close. */
14
- get via(): PopupCloseSource | undefined;
1
+ import { ComponentType, ConnectedPosition, ConnectionPositionPair, FlexibleConnectedPositionStrategyOrigin, OverlayRef } from "@angular/cdk/overlay";
2
+ import * as i0 from "@angular/core";
3
+ import { ComponentRef, InjectionToken, Injector, OnDestroy, StaticProvider, TemplateRef } from "@angular/core";
4
+ import { Action } from "@nanahoshi/mona-ui/internal";
5
+ import { PreventableEvent } from "@nanahoshi/mona-ui/common";
6
+ import { Observable } from "rxjs";
7
+ export declare class PopupCloseEvent<R = unknown> extends PreventableEvent {
8
+ #private;
9
+ constructor(options?: Partial<PopupCloseEventOptions<R>>);
10
+ /** The result value passed to `close()`, if any. */
11
+ get result(): R | undefined;
12
+ /** The source of the close. */
13
+ get via(): PopupCloseSource | undefined;
15
14
  }
16
15
  interface PopupCloseEventOptions<R = unknown, E = unknown> {
17
- event?: E;
18
- originalEvent: Event;
19
- result?: R;
20
- type?: string;
21
- via?: PopupCloseSource;
16
+ event?: E;
17
+ originalEvent: Event;
18
+ result?: R;
19
+ type?: string;
20
+ via?: PopupCloseSource;
22
21
  }
23
- declare enum PopupCloseSource {
24
- /** A dialog action button, such as OK or Cancel. */
25
- Action = "action",
26
- /** A click on the backdrop, when `closeOnBackdropClick` allows it. */
27
- BackdropClick = "backdropClick",
28
- /** The close button of a dialog, window or sheet. */
29
- CloseButton = "closeButton",
30
- /** The Escape key. */
31
- Escape = "escape",
32
- /** The pointer leaving the anchor, when `closeOnMouseLeave` is set. */
33
- MouseLeave = "mouseLeave",
34
- /** A `close()` call from code, with no user interaction behind it. */
35
- Programmatic = "programmatic",
36
- /** A pointer press outside the popup and its anchor. */
37
- OutsideClick = "outsideClick",
38
- /** The anchor scrolling away, when `closeOnScroll` is set. */
39
- Scroll = "scroll"
22
+ export declare enum PopupCloseSource {
23
+ /** A dialog action button, such as OK or Cancel. */
24
+ Action = "action",
25
+ /** A click on the backdrop, when `closeOnBackdropClick` allows it. */
26
+ BackdropClick = "backdropClick",
27
+ /** The close button of a dialog, window or sheet. */
28
+ CloseButton = "closeButton",
29
+ /** The Escape key. */
30
+ Escape = "escape",
31
+ /** The pointer leaving the anchor, when `closeOnMouseLeave` is set. */
32
+ MouseLeave = "mouseLeave",
33
+ /** A `close()` call from code, with no user interaction behind it. */
34
+ Programmatic = "programmatic",
35
+ /** A pointer press outside the popup and its anchor. */
36
+ OutsideClick = "outsideClick",
37
+ /** The anchor scrolling away, when `closeOnScroll` is set. */
38
+ Scroll = "scroll"
40
39
  }
41
-
42
- interface PopupOffset {
43
- horizontal?: number;
44
- vertical?: number;
40
+ export interface PopupOffset {
41
+ horizontal?: number;
42
+ vertical?: number;
45
43
  }
46
-
47
44
  interface PopupRefParams {
48
- get beforeClose$(): Observable<PopupCloseEvent>;
49
- close: <R>(result?: R, delay?: number) => boolean;
50
- get closeStart$(): Observable<PopupCloseEvent>;
51
- get closed$(): Observable<PopupCloseEvent>;
52
- get component(): ComponentRef<unknown> | null;
53
- get opened$(): Observable<void>;
54
- get overlayRef(): OverlayRef;
55
- get positionChanges$(): Observable<ConnectionPositionPair>;
45
+ get beforeClose$(): Observable<PopupCloseEvent>;
46
+ close: <R>(result?: R, delay?: number) => boolean;
47
+ get closeStart$(): Observable<PopupCloseEvent>;
48
+ get closed$(): Observable<PopupCloseEvent>;
49
+ get component(): ComponentRef<unknown> | null;
50
+ get opened$(): Observable<void>;
51
+ get overlayRef(): OverlayRef;
52
+ get positionChanges$(): Observable<ConnectionPositionPair>;
56
53
  }
57
-
58
54
  /** Returned by `PopupService.create()` and emitted via `PopupComponent`'s `open` output. */
59
- declare class PopupRef {
60
- #private;
61
- constructor(options: PopupRefParams);
62
- /**
63
- * Requests the popup to close.
64
- * @param result optional result passed to `beforeClose` and `closed` as the event's `result`
65
- * @param delay optional delay in milliseconds before the popup is removed, instead of waiting for the
66
- * leave animation
67
- * @returns `false` when the close was prevented or the popup is already closing, `true` otherwise.
68
- */
69
- close<R>(result?: R, delay?: number): boolean;
70
- /**
71
- * Closes the popup after a delay.
72
- * When the popup is closed, the overlay element is removed from the DOM instantly.
73
- * This causes the animation of the child elements to not play, therefore,
74
- * a delay is added to allow the animation to play.
75
- *
76
- * @see {@link https://github.com/angular/angular/issues/23302} for more information.
77
- * @param delay delay in milliseconds
78
- * @param result optional result to pass to the closed observable
79
- */
80
- closeWithDelay<R>(delay?: number, result?: R): void;
81
- /**
82
- * @description Emitted when the popup is about to close.
83
- * This event can be prevented. If it is prevented, the popup will not close.
84
- */
85
- get beforeClose(): Observable<PopupCloseEvent>;
86
- /**
87
- * @description Emitted when the popup begins closing, before the leave animation completes.
88
- * Subscribe to this to react at the moment the close sequence starts — for example, to begin
89
- * coordinating a transition in the consuming component. The `closed` observable fires after
90
- * the leave animation finishes.
91
- */
92
- get closeStart(): Observable<PopupCloseEvent>;
93
- /**
94
- * @description Emitted when the popup is closed.
95
- * This event is emitted after the animation completes.
96
- * Preventing this event has no effect.
97
- */
98
- get closed(): Observable<PopupCloseEvent>;
99
- /**
100
- * @description Reference to the component hosted in the popup.
101
- * This is `null` if the popup does not contain a component.
102
- */
103
- get component(): ComponentRef<unknown> | null;
104
- /**
105
- * @description Emitted when the popup is opened.
106
- */
107
- get opened(): Observable<void>;
108
- /**
109
- * @description Reference to the underlying CDK overlay.
110
- * Use this reference to manipulate the overlay directly, such as to set its size or position.
111
- * @see {@link https://material.angular.io/cdk/overlay/overview} for more information.
112
- * @example
113
- * ```ts
114
- * const overlayRef = popupRef.overlayRef;
115
- * overlayRef.updateSize({ width: '500px', height: '300px' });
116
- * ```
117
- */
118
- get overlayRef(): OverlayRef;
119
- /**
120
- * @description Returns the position pair of the popup's anchor element.
121
- * @example
122
- * ```ts
123
- * const positionChanges$ = popupRef.positionChanges;
124
- * positionChanges$.subscribe(pair => {
125
- * console.log(`Popup position changed to: ${pair.originX} ${pair.originY} -> ${pair.overlayX} ${pair.overlayY}`);
126
- * });
127
- * ```
128
- */
129
- get positionChanges(): Observable<ConnectionPositionPair>;
55
+ export declare class PopupRef {
56
+ #private;
57
+ constructor(options: PopupRefParams);
58
+ /**
59
+ * Requests the popup to close.
60
+ * @param result optional result passed to `beforeClose` and `closed` as the event's `result`
61
+ * @param delay optional delay in milliseconds before the popup is removed, instead of waiting for the
62
+ * leave animation
63
+ * @returns `false` when the close was prevented or the popup is already closing, `true` otherwise.
64
+ */
65
+ close<R>(result?: R, delay?: number): boolean;
66
+ /**
67
+ * Closes the popup after a delay.
68
+ * When the popup is closed, the overlay element is removed from the DOM instantly.
69
+ * This causes the animation of the child elements to not play, therefore,
70
+ * a delay is added to allow the animation to play.
71
+ *
72
+ * @see {@link https://github.com/angular/angular/issues/23302} for more information.
73
+ * @param delay delay in milliseconds
74
+ * @param result optional result to pass to the closed observable
75
+ */
76
+ closeWithDelay<R>(delay?: number, result?: R): void;
77
+ /**
78
+ * @description Emitted when the popup is about to close.
79
+ * This event can be prevented. If it is prevented, the popup will not close.
80
+ */
81
+ get beforeClose(): Observable<PopupCloseEvent>;
82
+ /**
83
+ * @description Emitted when the popup begins closing, before the leave animation completes.
84
+ * Subscribe to this to react at the moment the close sequence starts — for example, to begin
85
+ * coordinating a transition in the consuming component. The `closed` observable fires after
86
+ * the leave animation finishes.
87
+ */
88
+ get closeStart(): Observable<PopupCloseEvent>;
89
+ /**
90
+ * @description Emitted when the popup is closed.
91
+ * This event is emitted after the animation completes.
92
+ * Preventing this event has no effect.
93
+ */
94
+ get closed(): Observable<PopupCloseEvent>;
95
+ /**
96
+ * @description Reference to the component hosted in the popup.
97
+ * This is `null` if the popup does not contain a component.
98
+ */
99
+ get component(): ComponentRef<unknown> | null;
100
+ /**
101
+ * @description Emitted when the popup is opened.
102
+ */
103
+ get opened(): Observable<void>;
104
+ /**
105
+ * @description Reference to the underlying CDK overlay.
106
+ * Use this reference to manipulate the overlay directly, such as to set its size or position.
107
+ * @see {@link https://material.angular.io/cdk/overlay/overview} for more information.
108
+ * @example
109
+ * ```ts
110
+ * const overlayRef = popupRef.overlayRef;
111
+ * overlayRef.updateSize({ width: '500px', height: '300px' });
112
+ * ```
113
+ */
114
+ get overlayRef(): OverlayRef;
115
+ /**
116
+ * @description Returns the position pair of the popup's anchor element.
117
+ * @example
118
+ * ```ts
119
+ * const positionChanges$ = popupRef.positionChanges;
120
+ * positionChanges$.subscribe(pair => {
121
+ * console.log(`Popup position changed to: ${pair.originX} ${pair.originY} -> ${pair.overlayX} ${pair.overlayY}`);
122
+ * });
123
+ * ```
124
+ */
125
+ get positionChanges(): Observable<ConnectionPositionPair>;
130
126
  }
131
-
132
127
  type ConnectionPoint = "topleft" | "topcenter" | "topright" | "centerleft" | "center" | "centerright" | "bottomleft" | "bottomcenter" | "bottomright";
133
-
134
128
  type PopupAnchor = FlexibleConnectedPositionStrategyOrigin | string;
135
129
  interface PopupSettings<T = unknown, C = void> {
136
- /**
137
- * The anchor element to which the popup will be connected.
138
- * Can be an element, ElementRef, or CSS selector string.
139
- * @type {PopupAnchor}
140
- */
141
- anchor: PopupAnchor;
142
- /**
143
- * The connection point of the anchor element to which the popup will be connected.
144
- * @type {ConnectionPoint}
145
- */
146
- anchorConnectionPoint?: ConnectionPoint | null;
147
- /**
148
- * Animation settings for the popup.
149
- */
150
- animation?: boolean | PopupAnimationSettings;
151
- /**
152
- * Classes to be applied to the backdrop.
153
- * @type {string | string[]}
154
- */
155
- backdropClass?: string | string[];
156
- /**
157
- * Whether scrolling behind the popup should be blocked while it is open.
158
- * Default: false.
159
- * @type {boolean}
160
- */
161
- blockScroll?: boolean;
162
- /**
163
- * Whether the popup will be closed when the user clicks on the backdrop.
164
- * Only applies if `hasBackdrop` is true.
165
- * Default: true.
166
- * @type {boolean}
167
- */
168
- closeOnBackdropClick?: boolean;
169
- /**
170
- * Whether the popup will be closed when the user presses the escape key.
171
- * Escape only reaches the topmost open popup. When that popup sets this to `false`, Escape closes nothing,
172
- * not even the popups underneath it.
173
- * Default: true.
174
- * @type {boolean}
175
- */
176
- closeOnEscape?: boolean;
177
- /**
178
- * Whether the popup will be closed when the mouse leaves the anchor element.
179
- * Default: false.
180
- * @type {boolean}
181
- */
182
- closeOnMouseLeave?: boolean;
183
- /**
184
- * Whether the popup will be closed when the user clicks outside of it.
185
- * Clicks on the backdrop are governed by `closeOnBackdropClick` instead.
186
- * Default: true.
187
- * @type {boolean}
188
- */
189
- closeOnOutsideClick?: boolean;
190
- /**
191
- * Whether the popup will be closed when the user scrolls the page or a scrollable container around the anchor.
192
- * Default: false.
193
- * @type {boolean}
194
- */
195
- closeOnScroll?: boolean;
196
- /**
197
- * The content to display in the popup.
198
- * @type {TemplateRef | ComponentType}
199
- */
200
- content: TemplateRef<C> | ComponentType<C>;
201
- /**
202
- * Optional data to pass to the popup context.
203
- */
204
- data?: T;
205
- /**
206
- * Whether the popup will have a backdrop.
207
- * Default: false.
208
- */
209
- hasBackdrop?: boolean;
210
- /**
211
- * Height of the popup.
212
- * @type {number | string}
213
- */
214
- height?: number | string;
215
- /**
216
- * Parent injector for the popup content. Component content resolves its dependencies here, after
217
- * `providers`. Pass the injector of the component that opens the popup so its content can use services
218
- * provided by that component, its ancestors or a lazy-loaded route.
219
- * Default: the root injector.
220
- * @type {Injector}
221
- */
222
- injector?: Injector;
223
- /**
224
- * Maximum height of the popup.
225
- * @type {number | string}
226
- */
227
- maxHeight?: number | string;
228
- /**
229
- * Maximum width of the popup.
230
- * @type {number | string}
231
- */
232
- maxWidth?: number | string;
233
- /**
234
- * Minimum height of the popup.
235
- * @type {number | string}
236
- */
237
- minHeight?: number | string;
238
- /**
239
- * Minimum width of the popup.
240
- * @type {number | string}
241
- */
242
- minWidth?: number | string;
243
- /**
244
- * Offset of the popup.
245
- * @type {PopupOffset}
246
- */
247
- offset?: PopupOffset;
248
- /**
249
- * Classes to be applied to the popup.
250
- * @type {string | string[]}
251
- */
252
- popupClass?: string | string[];
253
- /**
254
- * The connection point of the popup element to which the anchor will be connected.
255
- * @type {ConnectionPoint}
256
- */
257
- popupConnectionPoint?: ConnectionPoint | null;
258
- /**
259
- * Classes to be applied to the popup wrapper content div.
260
- */
261
- popupWrapperClass?: string | string[];
262
- /**
263
- * The strategy for positioning the popup.
264
- * `global` means the popup will be positioned relative to the viewport,
265
- * `connected` means the popup will be positioned relative to the anchor element.
266
- * @type {"global" | "connected"}
267
- */
268
- positionStrategy?: "global" | "connected";
269
- /**
270
- * @description The positions to use for the popup.
271
- * The popup will try to position itself in the first position that fits.
272
- * This is only used when `positionStrategy` is set to `connected`.
273
- */
274
- positions?: Array<ConnectedPosition | ConnectionPositionPair>;
275
- /**
276
- * Optional callback invoked when the popup is about to close.
277
- * Return `true` to cancel the close. Takes priority over `PopupCloseEvent.preventDefault()`.
278
- * @type {(event: PopupCloseEvent) => boolean}
279
- */
280
- preventClose?: Action<PopupCloseEvent, boolean>;
281
- /**
282
- * Additional Angular providers made available within the popup's injector.
283
- * Use this to inject services or values that the popup content component needs.
284
- * @type {StaticProvider[]}
285
- */
286
- providers?: StaticProvider[];
287
- /**
288
- * Controls focus restoration behavior when the popup is closed.
289
- * - true: Always restore focus to anchor
290
- * - false: Never restore focus (recommended for tooltips)
291
- * - "auto": Only restore focus if the anchor, or an element inside it, was focused when the popup opened;
292
- * focus returns to that element
293
- * Focus is only restored while it is on the page itself, inside the popup or inside the anchor. If the user
294
- * moved it elsewhere, for example by clicking another field, it stays there.
295
- * Default: "auto".
296
- * @type {boolean | "auto"}
297
- */
298
- restoreFocus?: boolean | "auto";
299
- /**
300
- * Width of the popup.
301
- * @type {number | string}
302
- */
303
- width?: number | string;
304
- /**
305
- * Whether the CDK overlay should push the popup into the visible viewport when it would
306
- * otherwise overflow the screen edges.
307
- * Default: true.
308
- * @type {boolean}
309
- */
310
- withPush?: boolean;
311
- /**
312
- * Whether the popup should track scroll events and reposition itself.
313
- * Default: true.
314
- * @type {boolean}
315
- */
316
- withScrollTracking?: boolean;
130
+ /**
131
+ * The anchor element to which the popup will be connected.
132
+ * Can be an element, ElementRef, or CSS selector string.
133
+ * @type {PopupAnchor}
134
+ */
135
+ anchor: PopupAnchor;
136
+ /**
137
+ * The connection point of the anchor element to which the popup will be connected.
138
+ * @type {ConnectionPoint}
139
+ */
140
+ anchorConnectionPoint?: ConnectionPoint | null;
141
+ /**
142
+ * Animation settings for the popup.
143
+ */
144
+ animation?: boolean | PopupAnimationSettings;
145
+ /**
146
+ * Classes to be applied to the backdrop.
147
+ * @type {string | string[]}
148
+ */
149
+ backdropClass?: string | string[];
150
+ /**
151
+ * Whether scrolling behind the popup should be blocked while it is open. A page whose root doesn't scroll, because
152
+ * `html` or `body` hides its overflow, is left as it is, so no scrollbar appears and the page doesn't shift.
153
+ * Default: false.
154
+ * @type {boolean}
155
+ */
156
+ blockScroll?: boolean;
157
+ /**
158
+ * Whether the popup will be closed when the user clicks on the backdrop.
159
+ * Only applies if `hasBackdrop` is true.
160
+ * Default: true.
161
+ * @type {boolean}
162
+ */
163
+ closeOnBackdropClick?: boolean;
164
+ /**
165
+ * Whether the popup will be closed when the user presses the escape key.
166
+ * Escape only reaches the topmost open popup. When that popup sets this to `false`, Escape closes nothing,
167
+ * not even the popups underneath it.
168
+ * Default: true.
169
+ * @type {boolean}
170
+ */
171
+ closeOnEscape?: boolean;
172
+ /**
173
+ * Whether the popup will be closed when the mouse leaves the anchor element.
174
+ * Default: false.
175
+ * @type {boolean}
176
+ */
177
+ closeOnMouseLeave?: boolean;
178
+ /**
179
+ * Whether the popup will be closed when the user clicks outside of it.
180
+ * Clicks on the backdrop are governed by `closeOnBackdropClick` instead.
181
+ * Default: true.
182
+ * @type {boolean}
183
+ */
184
+ closeOnOutsideClick?: boolean;
185
+ /**
186
+ * Whether the popup will be closed when the user scrolls the page or a scrollable container around the anchor.
187
+ * Default: false.
188
+ * @type {boolean}
189
+ */
190
+ closeOnScroll?: boolean;
191
+ /**
192
+ * The content to display in the popup.
193
+ * @type {TemplateRef | ComponentType}
194
+ */
195
+ content: TemplateRef<C> | ComponentType<C>;
196
+ /**
197
+ * Optional data to pass to the popup context.
198
+ */
199
+ data?: T;
200
+ /**
201
+ * Whether the popup will have a backdrop.
202
+ * Default: false.
203
+ */
204
+ hasBackdrop?: boolean;
205
+ /**
206
+ * Height of the popup.
207
+ * @type {number | string}
208
+ */
209
+ height?: number | string;
210
+ /**
211
+ * Parent injector for the popup content. Component content resolves its dependencies here, after
212
+ * `providers`. Pass the injector of the component that opens the popup so its content can use services
213
+ * provided by that component, its ancestors or a lazy-loaded route.
214
+ * Default: the root injector.
215
+ * @type {Injector}
216
+ */
217
+ injector?: Injector;
218
+ /**
219
+ * Maximum height of the popup.
220
+ * @type {number | string}
221
+ */
222
+ maxHeight?: number | string;
223
+ /**
224
+ * Maximum width of the popup.
225
+ * @type {number | string}
226
+ */
227
+ maxWidth?: number | string;
228
+ /**
229
+ * Minimum height of the popup.
230
+ * @type {number | string}
231
+ */
232
+ minHeight?: number | string;
233
+ /**
234
+ * Minimum width of the popup.
235
+ * @type {number | string}
236
+ */
237
+ minWidth?: number | string;
238
+ /**
239
+ * Offset of the popup.
240
+ * @type {PopupOffset}
241
+ */
242
+ offset?: PopupOffset;
243
+ /**
244
+ * Classes to be applied to the popup.
245
+ * @type {string | string[]}
246
+ */
247
+ popupClass?: string | string[];
248
+ /**
249
+ * The connection point of the popup element to which the anchor will be connected.
250
+ * @type {ConnectionPoint}
251
+ */
252
+ popupConnectionPoint?: ConnectionPoint | null;
253
+ /**
254
+ * Classes to be applied to the popup wrapper content div.
255
+ */
256
+ popupWrapperClass?: string | string[];
257
+ /**
258
+ * The strategy for positioning the popup.
259
+ * `global` means the popup will be positioned relative to the viewport,
260
+ * `connected` means the popup will be positioned relative to the anchor element.
261
+ * @type {"global" | "connected"}
262
+ */
263
+ positionStrategy?: "global" | "connected";
264
+ /**
265
+ * @description The positions to use for the popup.
266
+ * The popup will try to position itself in the first position that fits.
267
+ * This is only used when `positionStrategy` is set to `connected`.
268
+ */
269
+ positions?: Array<ConnectedPosition | ConnectionPositionPair>;
270
+ /**
271
+ * Optional callback invoked when the popup is about to close.
272
+ * Return `true` to cancel the close. Takes priority over `PopupCloseEvent.preventDefault()`.
273
+ * @type {(event: PopupCloseEvent) => boolean}
274
+ */
275
+ preventClose?: Action<PopupCloseEvent, boolean>;
276
+ /**
277
+ * Additional Angular providers made available within the popup's injector.
278
+ * Use this to inject services or values that the popup content component needs.
279
+ * @type {StaticProvider[]}
280
+ */
281
+ providers?: StaticProvider[];
282
+ /**
283
+ * Controls focus restoration behavior when the popup is closed.
284
+ * - true: Always restore focus to anchor
285
+ * - false: Never restore focus (recommended for tooltips)
286
+ * - "auto": Only restore focus if the anchor, or an element inside it, was focused when the popup opened;
287
+ * focus returns to that element
288
+ * Focus is only restored while it is on the page itself, inside the popup or inside the anchor. If the user
289
+ * moved it elsewhere, for example by clicking another field, it stays there.
290
+ * Default: "auto".
291
+ * @type {boolean | "auto"}
292
+ */
293
+ restoreFocus?: boolean | "auto";
294
+ /**
295
+ * Width of the popup.
296
+ * @type {number | string}
297
+ */
298
+ width?: number | string;
299
+ /**
300
+ * Whether the CDK overlay should push the popup into the visible viewport when it would
301
+ * otherwise overflow the screen edges.
302
+ * Default: true.
303
+ * @type {boolean}
304
+ */
305
+ withPush?: boolean;
306
+ /**
307
+ * Whether the popup should track scroll events and reposition itself.
308
+ * Default: true.
309
+ * @type {boolean}
310
+ */
311
+ withScrollTracking?: boolean;
317
312
  }
318
313
  interface PopupAnimationSettings {
319
- /**
320
- * CSS class or classes applied by animate.enter when the popup is shown.
321
- */
322
- enter?: string | string[];
323
- /**
324
- * CSS class or classes applied by animate.leave when the popup is hidden.
325
- */
326
- leave?: string | string[];
314
+ /**
315
+ * CSS class or classes applied by animate.enter when the popup is shown.
316
+ */
317
+ enter?: string | string[];
318
+ /**
319
+ * CSS class or classes applied by animate.leave when the popup is hidden.
320
+ */
321
+ leave?: string | string[];
327
322
  }
328
-
329
- declare class PopupComponent<T = unknown> implements OnDestroy {
330
- #private;
331
- protected readonly contentTemplate: _angular_core.Signal<TemplateRef<any>>;
332
- protected popupRef: PopupRef | null;
333
- /**
334
- * @description The anchor element or point for the popup.
335
- */
336
- readonly anchor: _angular_core.InputSignal<FlexibleConnectedPositionStrategyOrigin>;
337
- /**
338
- * @description The connection point for the popup anchor.
339
- */
340
- readonly anchorConnectionPoint: _angular_core.InputSignal<ConnectionPoint>;
341
- /**
342
- * @description The animation settings for the popup.
343
- */
344
- readonly animation: _angular_core.InputSignal<boolean | PopupAnimationSettings>;
345
- /**
346
- * @description The class or classes to apply to the backdrop of the popup.
347
- */
348
- readonly backdropClass: _angular_core.InputSignal<string | string[]>;
349
- /**
350
- * @description Emits when the popup is closed.
351
- */
352
- readonly close: _angular_core.OutputEmitterRef<void>;
353
- /**
354
- * @description Whether to close the popup when clicking on the backdrop.
355
- * Only applies when the popup has a backdrop.
356
- */
357
- readonly closeOnBackdropClick: _angular_core.InputSignalWithTransform<boolean, unknown>;
358
- /**
359
- * @description Whether to close the popup when the escape key is pressed.
360
- * Escape only reaches the topmost open popup.
361
- */
362
- readonly closeOnEscape: _angular_core.InputSignalWithTransform<boolean, unknown>;
363
- /**
364
- * @description Whether to close the popup when the mouse leaves the anchor element.
365
- */
366
- readonly closeOnMouseLeave: _angular_core.InputSignalWithTransform<boolean, unknown>;
367
- /**
368
- * @description Whether to close the popup when clicking outside of it.
369
- */
370
- readonly closeOnOutsideClick: _angular_core.InputSignalWithTransform<boolean, unknown>;
371
- /**
372
- * @description Whether to close the popup when the user scrolls the page or a scrollable container around the anchor.
373
- */
374
- readonly closeOnScroll: _angular_core.InputSignalWithTransform<boolean, unknown>;
375
- /**
376
- * @description Arbitrary data to pass to the popup.
377
- */
378
- readonly data: _angular_core.InputSignal<T | undefined>;
379
- /**
380
- * @description Whether the popup should have a backdrop.
381
- */
382
- readonly hasBackdrop: _angular_core.InputSignalWithTransform<boolean, unknown>;
383
- /**
384
- * @description The height of the popup.
385
- */
386
- readonly height: _angular_core.InputSignal<string | number | undefined>;
387
- /**
388
- * @description The maximum height of the popup.
389
- */
390
- readonly maxHeight: _angular_core.InputSignal<string | number | undefined>;
391
- /**
392
- * @description The maximum width of the popup.
393
- */
394
- readonly maxWidth: _angular_core.InputSignal<string | number | undefined>;
395
- /**
396
- * @description The minimum height of the popup.
397
- */
398
- readonly minHeight: _angular_core.InputSignal<string | number | undefined>;
399
- /**
400
- * @description The minimum width of the popup.
401
- */
402
- readonly minWidth: _angular_core.InputSignal<string | number | undefined>;
403
- /**
404
- * @description The offset of the popup from the anchor.
405
- */
406
- readonly offset: _angular_core.InputSignal<PopupOffset | undefined>;
407
- /**
408
- * @description Emits when the popup is opened.
409
- */
410
- readonly open: _angular_core.OutputEmitterRef<PopupRef>;
411
- /**
412
- * @description The class or classes to apply to the popup.
413
- */
414
- readonly popupClass: _angular_core.InputSignal<string | string[]>;
415
- /**
416
- * @description The connection point for the popup.
417
- */
418
- readonly popupConnectionPoint: _angular_core.InputSignal<ConnectionPoint>;
419
- /**
420
- * @description The class or classes to apply to the popup wrapper.
421
- */
422
- readonly popupWrapperClass: _angular_core.InputSignal<string | string[]>;
423
- /**
424
- * @description The strategy for positioning the popup.
425
- * `global` means the popup will be positioned relative to the viewport,
426
- * `connected` means the popup will be positioned relative to the anchor element.
427
- */
428
- readonly positionStrategy: _angular_core.InputSignal<"global" | "connected">;
429
- /**
430
- * @description The positions to use for the popup.
431
- * The popup will try to position itself in the first position that fits.
432
- * This is only used when the `positionStrategy` is set to `connected`.
433
- */
434
- readonly positions: _angular_core.InputSignal<(ConnectionPositionPair | ConnectedPosition)[] | undefined>;
435
- /**
436
- * @description Called when the popup is requested to close.
437
- * This can be used to prevent the popup from closing.
438
- */
439
- readonly preventClose: _angular_core.InputSignal<Action<PopupCloseEvent<unknown>, boolean> | undefined>;
440
- /**
441
- * @description The providers that will be injected into the popup.
442
- */
443
- readonly providers: _angular_core.InputSignal<StaticProvider[]>;
444
- /**
445
- * @description Controls focus restoration when the popup closes.
446
- * - `true`: always restore focus to the anchor element.
447
- * - `false`: never restore focus (recommended for tooltips).
448
- * - `"auto"`: restore focus only if the anchor, or an element inside it, was focused when the popup opened.
449
- *
450
- * Focus is left alone if the user moved it outside the popup and the anchor before it closed.
451
- */
452
- readonly restoreFocus: _angular_core.InputSignalWithTransform<boolean | "auto", unknown>;
453
- /**
454
- * @description The trigger event for opening the popup.
455
- */
456
- readonly trigger: _angular_core.InputSignal<string>;
457
- /**
458
- * @description The width of the popup.
459
- */
460
- readonly width: _angular_core.InputSignal<string | number | undefined>;
461
- /**
462
- * @description Whether to push the popup into the screen when it is opened.
463
- */
464
- readonly withPush: _angular_core.InputSignalWithTransform<boolean, unknown>;
465
- /**
466
- * @description Whether the popup should track scroll events and reposition itself.
467
- */
468
- readonly withScrollTracking: _angular_core.InputSignalWithTransform<boolean, unknown>;
469
- constructor();
470
- /** Closes the popup if one is currently open. */
471
- closePopup(): void;
472
- ngOnDestroy(): void;
473
- private getPopupWidth;
474
- private setupEventListeners;
475
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<PopupComponent<any>, never>;
476
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<PopupComponent<any>, "mona-popup", never, { "anchor": { "alias": "anchor"; "required": true; "isSignal": true; }; "anchorConnectionPoint": { "alias": "anchorConnectionPoint"; "required": false; "isSignal": true; }; "animation": { "alias": "animation"; "required": false; "isSignal": true; }; "backdropClass": { "alias": "backdropClass"; "required": false; "isSignal": true; }; "closeOnBackdropClick": { "alias": "closeOnBackdropClick"; "required": false; "isSignal": true; }; "closeOnEscape": { "alias": "closeOnEscape"; "required": false; "isSignal": true; }; "closeOnMouseLeave": { "alias": "closeOnMouseLeave"; "required": false; "isSignal": true; }; "closeOnOutsideClick": { "alias": "closeOnOutsideClick"; "required": false; "isSignal": true; }; "closeOnScroll": { "alias": "closeOnScroll"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; "minHeight": { "alias": "minHeight"; "required": false; "isSignal": true; }; "minWidth": { "alias": "minWidth"; "required": false; "isSignal": true; }; "offset": { "alias": "offset"; "required": false; "isSignal": true; }; "popupClass": { "alias": "popupClass"; "required": false; "isSignal": true; }; "popupConnectionPoint": { "alias": "popupConnectionPoint"; "required": false; "isSignal": true; }; "popupWrapperClass": { "alias": "popupWrapperClass"; "required": false; "isSignal": true; }; "positionStrategy": { "alias": "positionStrategy"; "required": false; "isSignal": true; }; "positions": { "alias": "positions"; "required": false; "isSignal": true; }; "preventClose": { "alias": "preventClose"; "required": false; "isSignal": true; }; "providers": { "alias": "providers"; "required": false; "isSignal": true; }; "restoreFocus": { "alias": "restoreFocus"; "required": false; "isSignal": true; }; "trigger": { "alias": "trigger"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "withPush": { "alias": "withPush"; "required": false; "isSignal": true; }; "withScrollTracking": { "alias": "withScrollTracking"; "required": false; "isSignal": true; }; }, { "close": "close"; "open": "open"; }, never, ["*"], true, never>;
323
+ export declare class PopupComponent<T = unknown> implements OnDestroy {
324
+ #private;
325
+ protected readonly contentTemplate: import("@angular/core").Signal<TemplateRef<any>>;
326
+ protected popupRef: PopupRef | null;
327
+ /**
328
+ * @description The anchor element or point for the popup.
329
+ */
330
+ readonly anchor: import("@angular/core").InputSignal<FlexibleConnectedPositionStrategyOrigin>;
331
+ /**
332
+ * @description The connection point for the popup anchor.
333
+ */
334
+ readonly anchorConnectionPoint: import("@angular/core").InputSignal<ConnectionPoint>;
335
+ /**
336
+ * @description The animation settings for the popup.
337
+ */
338
+ readonly animation: import("@angular/core").InputSignal<boolean | PopupAnimationSettings>;
339
+ /**
340
+ * @description The class or classes to apply to the backdrop of the popup.
341
+ */
342
+ readonly backdropClass: import("@angular/core").InputSignal<string | string[]>;
343
+ /**
344
+ * @description Emits when the popup is closed.
345
+ */
346
+ readonly close: import("@angular/core").OutputEmitterRef<void>;
347
+ /**
348
+ * @description Whether to close the popup when clicking on the backdrop.
349
+ * Only applies when the popup has a backdrop.
350
+ */
351
+ readonly closeOnBackdropClick: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
352
+ /**
353
+ * @description Whether to close the popup when the escape key is pressed.
354
+ * Escape only reaches the topmost open popup.
355
+ */
356
+ readonly closeOnEscape: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
357
+ /**
358
+ * @description Whether to close the popup when the mouse leaves the anchor element.
359
+ */
360
+ readonly closeOnMouseLeave: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
361
+ /**
362
+ * @description Whether to close the popup when clicking outside of it.
363
+ */
364
+ readonly closeOnOutsideClick: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
365
+ /**
366
+ * @description Whether to close the popup when the user scrolls the page or a scrollable container around the anchor.
367
+ */
368
+ readonly closeOnScroll: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
369
+ /**
370
+ * @description Arbitrary data to pass to the popup.
371
+ */
372
+ readonly data: import("@angular/core").InputSignal<T | undefined>;
373
+ /**
374
+ * @description Whether the popup should have a backdrop.
375
+ */
376
+ readonly hasBackdrop: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
377
+ /**
378
+ * @description The height of the popup.
379
+ */
380
+ readonly height: import("@angular/core").InputSignal<string | number | undefined>;
381
+ /**
382
+ * @description The maximum height of the popup.
383
+ */
384
+ readonly maxHeight: import("@angular/core").InputSignal<string | number | undefined>;
385
+ /**
386
+ * @description The maximum width of the popup.
387
+ */
388
+ readonly maxWidth: import("@angular/core").InputSignal<string | number | undefined>;
389
+ /**
390
+ * @description The minimum height of the popup.
391
+ */
392
+ readonly minHeight: import("@angular/core").InputSignal<string | number | undefined>;
393
+ /**
394
+ * @description The minimum width of the popup.
395
+ */
396
+ readonly minWidth: import("@angular/core").InputSignal<string | number | undefined>;
397
+ /**
398
+ * @description The offset of the popup from the anchor.
399
+ */
400
+ readonly offset: import("@angular/core").InputSignal<PopupOffset | undefined>;
401
+ /**
402
+ * @description Emits when the popup is opened.
403
+ */
404
+ readonly open: import("@angular/core").OutputEmitterRef<PopupRef>;
405
+ /**
406
+ * @description The class or classes to apply to the popup.
407
+ */
408
+ readonly popupClass: import("@angular/core").InputSignal<string | string[]>;
409
+ /**
410
+ * @description The connection point for the popup.
411
+ */
412
+ readonly popupConnectionPoint: import("@angular/core").InputSignal<ConnectionPoint>;
413
+ /**
414
+ * @description The class or classes to apply to the popup wrapper.
415
+ */
416
+ readonly popupWrapperClass: import("@angular/core").InputSignal<string | string[]>;
417
+ /**
418
+ * @description The strategy for positioning the popup.
419
+ * `global` means the popup will be positioned relative to the viewport,
420
+ * `connected` means the popup will be positioned relative to the anchor element.
421
+ */
422
+ readonly positionStrategy: import("@angular/core").InputSignal<"global" | "connected">;
423
+ /**
424
+ * @description The positions to use for the popup.
425
+ * The popup will try to position itself in the first position that fits.
426
+ * This is only used when the `positionStrategy` is set to `connected`.
427
+ */
428
+ readonly positions: import("@angular/core").InputSignal<(ConnectionPositionPair | ConnectedPosition)[] | undefined>;
429
+ /**
430
+ * @description Called when the popup is requested to close.
431
+ * This can be used to prevent the popup from closing.
432
+ */
433
+ readonly preventClose: import("@angular/core").InputSignal<Action<PopupCloseEvent<unknown>, boolean> | undefined>;
434
+ /**
435
+ * @description The providers that will be injected into the popup.
436
+ */
437
+ readonly providers: import("@angular/core").InputSignal<StaticProvider[]>;
438
+ /**
439
+ * @description Controls focus restoration when the popup closes.
440
+ * - `true`: always restore focus to the anchor element.
441
+ * - `false`: never restore focus (recommended for tooltips).
442
+ * - `"auto"`: restore focus only if the anchor, or an element inside it, was focused when the popup opened.
443
+ *
444
+ * Focus is left alone if the user moved it outside the popup and the anchor before it closed.
445
+ */
446
+ readonly restoreFocus: import("@angular/core").InputSignalWithTransform<boolean | "auto", unknown>;
447
+ /**
448
+ * @description The trigger event for opening the popup.
449
+ */
450
+ readonly trigger: import("@angular/core").InputSignal<string>;
451
+ /**
452
+ * @description The width of the popup.
453
+ */
454
+ readonly width: import("@angular/core").InputSignal<string | number | undefined>;
455
+ /**
456
+ * @description Whether to push the popup into the screen when it is opened.
457
+ */
458
+ readonly withPush: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
459
+ /**
460
+ * @description Whether the popup should track scroll events and reposition itself.
461
+ */
462
+ readonly withScrollTracking: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
463
+ constructor();
464
+ /** Closes the popup if one is currently open. */
465
+ closePopup(): void;
466
+ ngOnDestroy(): void;
467
+ private getPopupWidth;
468
+ private setupEventListeners;
469
+ static ɵfac: i0.ɵɵFactoryDeclaration<PopupComponent<any>, never>;
470
+ static ɵcmp: i0.ɵɵComponentDeclaration<PopupComponent<any>, "mona-popup", never, {
471
+ "anchor": {
472
+ "alias": "anchor";
473
+ "required": true;
474
+ "isSignal": true;
475
+ };
476
+ "anchorConnectionPoint": {
477
+ "alias": "anchorConnectionPoint";
478
+ "required": false;
479
+ "isSignal": true;
480
+ };
481
+ "animation": {
482
+ "alias": "animation";
483
+ "required": false;
484
+ "isSignal": true;
485
+ };
486
+ "backdropClass": {
487
+ "alias": "backdropClass";
488
+ "required": false;
489
+ "isSignal": true;
490
+ };
491
+ "closeOnBackdropClick": {
492
+ "alias": "closeOnBackdropClick";
493
+ "required": false;
494
+ "isSignal": true;
495
+ };
496
+ "closeOnEscape": {
497
+ "alias": "closeOnEscape";
498
+ "required": false;
499
+ "isSignal": true;
500
+ };
501
+ "closeOnMouseLeave": {
502
+ "alias": "closeOnMouseLeave";
503
+ "required": false;
504
+ "isSignal": true;
505
+ };
506
+ "closeOnOutsideClick": {
507
+ "alias": "closeOnOutsideClick";
508
+ "required": false;
509
+ "isSignal": true;
510
+ };
511
+ "closeOnScroll": {
512
+ "alias": "closeOnScroll";
513
+ "required": false;
514
+ "isSignal": true;
515
+ };
516
+ "data": {
517
+ "alias": "data";
518
+ "required": false;
519
+ "isSignal": true;
520
+ };
521
+ "hasBackdrop": {
522
+ "alias": "hasBackdrop";
523
+ "required": false;
524
+ "isSignal": true;
525
+ };
526
+ "height": {
527
+ "alias": "height";
528
+ "required": false;
529
+ "isSignal": true;
530
+ };
531
+ "maxHeight": {
532
+ "alias": "maxHeight";
533
+ "required": false;
534
+ "isSignal": true;
535
+ };
536
+ "maxWidth": {
537
+ "alias": "maxWidth";
538
+ "required": false;
539
+ "isSignal": true;
540
+ };
541
+ "minHeight": {
542
+ "alias": "minHeight";
543
+ "required": false;
544
+ "isSignal": true;
545
+ };
546
+ "minWidth": {
547
+ "alias": "minWidth";
548
+ "required": false;
549
+ "isSignal": true;
550
+ };
551
+ "offset": {
552
+ "alias": "offset";
553
+ "required": false;
554
+ "isSignal": true;
555
+ };
556
+ "popupClass": {
557
+ "alias": "popupClass";
558
+ "required": false;
559
+ "isSignal": true;
560
+ };
561
+ "popupConnectionPoint": {
562
+ "alias": "popupConnectionPoint";
563
+ "required": false;
564
+ "isSignal": true;
565
+ };
566
+ "popupWrapperClass": {
567
+ "alias": "popupWrapperClass";
568
+ "required": false;
569
+ "isSignal": true;
570
+ };
571
+ "positionStrategy": {
572
+ "alias": "positionStrategy";
573
+ "required": false;
574
+ "isSignal": true;
575
+ };
576
+ "positions": {
577
+ "alias": "positions";
578
+ "required": false;
579
+ "isSignal": true;
580
+ };
581
+ "preventClose": {
582
+ "alias": "preventClose";
583
+ "required": false;
584
+ "isSignal": true;
585
+ };
586
+ "providers": {
587
+ "alias": "providers";
588
+ "required": false;
589
+ "isSignal": true;
590
+ };
591
+ "restoreFocus": {
592
+ "alias": "restoreFocus";
593
+ "required": false;
594
+ "isSignal": true;
595
+ };
596
+ "trigger": {
597
+ "alias": "trigger";
598
+ "required": false;
599
+ "isSignal": true;
600
+ };
601
+ "width": {
602
+ "alias": "width";
603
+ "required": false;
604
+ "isSignal": true;
605
+ };
606
+ "withPush": {
607
+ "alias": "withPush";
608
+ "required": false;
609
+ "isSignal": true;
610
+ };
611
+ "withScrollTracking": {
612
+ "alias": "withScrollTracking";
613
+ "required": false;
614
+ "isSignal": true;
615
+ };
616
+ }, {
617
+ "close": "close";
618
+ "open": "open";
619
+ }, never, ["*"], true, never>;
477
620
  }
478
-
479
- declare class PopupService {
480
- #private;
481
- /**
482
- * Opens a popup and returns its `PopupRef`. If `settings.anchor` is a CSS selector string, creates a
483
- * hover-triggered popup for every matching element (see Multi-element popups); otherwise creates a single popup
484
- * attached to the given element, `ElementRef`, or point.
485
- */
486
- create(settings: PopupSettings): PopupRef;
487
- private attachContent;
488
- private buildPanelClass;
489
- /**
490
- * With `"auto"` (also the default), remembers the focused element when it is the anchor or inside it, such
491
- * as the button inside a host component or the input inside a date picker, and returns focus to that element.
492
- */
493
- private captureOriginalFocus;
494
- private createInjector;
495
- private createMultiElementPopup;
496
- private createOverlay;
497
- private createPositionStrategy;
498
- private createScrollDispatcherTarget;
499
- private createSingleElementPopup;
500
- private getAnchorElement;
501
- private getPosition;
502
- private getScrollableAncestorElements;
503
- private getScrollableContainers;
504
- private getTopmostOpenPopup;
505
- /**
506
- * Escape goes to the topmost open popup only, so closing a dropdown inside a dialog leaves the dialog
507
- * open. The topmost popup consumes the key even when it doesn't close on Escape, so a modal that can't
508
- * be dismissed doesn't let it reach the popup underneath. An Escape that ends an IME composition is left
509
- * alone. `preventDefault()` doesn't keep the popup open, because controls call it on every navigation key;
510
- * a control that handles Escape itself stops its propagation instead.
511
- */
512
- private handleEscapeKey;
513
- private handleFocusRestoration;
514
- private isScrollableElement;
515
- private isScrollableOverflow;
516
- /**
517
- * One pair of `document` listeners serves every open popup. The capturing one notes which popup is on
518
- * top before the key reaches any control; the bubbling one closes it if nothing handled the key.
519
- */
520
- private listenForEscape;
521
- /**
522
- * A popup leaves the stack as soon as it starts closing, so a second Escape during its leave animation
523
- * goes to the popup underneath.
524
- */
525
- private registerOpenPopup;
526
- /**
527
- * Resolves a PopupAnchor to a FlexibleConnectedPositionStrategyOrigin.
528
- * This method should only receive actual elements or ElementRefs, not CSS selector strings.
529
- * CSS selectors are handled by the multi-element popup creation path.
530
- * @param anchor The anchor to resolve (should be Element or ElementRef)
531
- * @returns The resolved anchor
532
- */
533
- private resolveAnchor;
534
- private setupBackdropCloseSubscription;
535
- /**
536
- * Starts the backdrop fade-out as soon as the close begins, so it runs alongside the popup's leave
537
- * animation. Without it the backdrop stays fully opaque until `dispose()` removes it in one frame.
538
- */
539
- private setupBackdropFadeOut;
540
- private setupCleanupSubscription;
541
- private setupCloseSubscriptions;
542
- /**
543
- * `PopupRef.overlayRef` is public, so the overlay can be detached or disposed without going through
544
- * `close()`. Finish the close then too, or `closed` never fires and focus, subscriptions and consumers
545
- * waiting for it (the dropdowns won't reopen until it does) stay stuck.
546
- */
547
- private setupDetachTracking;
548
- private setupDirectionTracking;
549
- /**
550
- * Listens on the document rather than on the elements matched at creation time, so elements added later
551
- * get a popup too. One popup shows at a time; it closes when the pointer leaves its element, and the
552
- * returned subscription's teardown closes it as well.
553
- */
554
- private setupInternalEventDelegation;
555
- private setupMouseLeaveSubscription;
556
- private setupOutsideClickSubscription;
557
- private setupPositionChangeTracking;
558
- private setupScrollClosing;
559
- private setupScrollTracking;
560
- private shouldIgnoreOutsideClick;
561
- private unregisterOpenPopup;
562
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<PopupService, never>;
563
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<PopupService>;
621
+ export declare class PopupService {
622
+ #private;
623
+ /**
624
+ * Opens a popup and returns its `PopupRef`. If `settings.anchor` is a CSS selector string, creates a
625
+ * hover-triggered popup for every matching element (see Multi-element popups); otherwise creates a single popup
626
+ * attached to the given element, `ElementRef`, or point.
627
+ */
628
+ create(settings: PopupSettings): PopupRef;
629
+ private attachContent;
630
+ private buildPanelClass;
631
+ /**
632
+ * With `"auto"` (also the default), remembers the focused element when it is the anchor or inside it, such
633
+ * as the button inside a host component or the input inside a date picker, and returns focus to that element.
634
+ */
635
+ private captureOriginalFocus;
636
+ private createInjector;
637
+ private createMultiElementPopup;
638
+ private createOverlay;
639
+ private createPositionStrategy;
640
+ private createScrollDispatcherTarget;
641
+ private createSingleElementPopup;
642
+ private getAnchorElement;
643
+ private getPosition;
644
+ private getScrollableAncestorElements;
645
+ private getScrollableContainers;
646
+ private getTopmostOpenPopup;
647
+ /**
648
+ * Escape goes to the topmost open popup only, so closing a dropdown inside a dialog leaves the dialog
649
+ * open. The topmost popup consumes the key even when it doesn't close on Escape, so a modal that can't
650
+ * be dismissed doesn't let it reach the popup underneath. An Escape that ends an IME composition is left
651
+ * alone. `preventDefault()` doesn't keep the popup open, because controls call it on every navigation key;
652
+ * a control that handles Escape itself stops its propagation instead.
653
+ */
654
+ private handleEscapeKey;
655
+ private handleFocusRestoration;
656
+ private isScrollableElement;
657
+ private isScrollableOverflow;
658
+ /**
659
+ * One pair of `document` listeners serves every open popup. The capturing one notes which popup is on
660
+ * top before the key reaches any control; the bubbling one closes it if nothing handled the key.
661
+ */
662
+ private listenForEscape;
663
+ /**
664
+ * A popup leaves the stack as soon as it starts closing, so a second Escape during its leave animation
665
+ * goes to the popup underneath.
666
+ */
667
+ private registerOpenPopup;
668
+ /**
669
+ * Resolves a PopupAnchor to a FlexibleConnectedPositionStrategyOrigin.
670
+ * This method should only receive actual elements or ElementRefs, not CSS selector strings.
671
+ * CSS selectors are handled by the multi-element popup creation path.
672
+ * @param anchor The anchor to resolve (should be Element or ElementRef)
673
+ * @returns The resolved anchor
674
+ */
675
+ private resolveAnchor;
676
+ private setupBackdropCloseSubscription;
677
+ /**
678
+ * Starts the backdrop fade-out as soon as the close begins, so it runs alongside the popup's leave
679
+ * animation. Without it the backdrop stays fully opaque until `dispose()` removes it in one frame.
680
+ */
681
+ private setupBackdropFadeOut;
682
+ private setupCleanupSubscription;
683
+ private setupCloseSubscriptions;
684
+ /**
685
+ * `PopupRef.overlayRef` is public, so the overlay can be detached or disposed without going through
686
+ * `close()`. Finish the close then too, or `closed` never fires and focus, subscriptions and consumers
687
+ * waiting for it (the dropdowns won't reopen until it does) stay stuck.
688
+ */
689
+ private setupDetachTracking;
690
+ private setupDirectionTracking;
691
+ /**
692
+ * Listens on the document rather than on the elements matched at creation time, so elements added later
693
+ * get a popup too. One popup shows at a time; it closes when the pointer leaves its element, and the
694
+ * returned subscription's teardown closes it as well.
695
+ */
696
+ private setupInternalEventDelegation;
697
+ private setupMouseLeaveSubscription;
698
+ private setupOutsideClickSubscription;
699
+ private setupPositionChangeTracking;
700
+ private setupScrollClosing;
701
+ private setupScrollTracking;
702
+ private shouldIgnoreOutsideClick;
703
+ private unregisterOpenPopup;
704
+ static ɵfac: i0.ɵɵFactoryDeclaration<PopupService, never>;
705
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
564
706
  }
565
-
566
- declare const defaultPopupAnimation: Required<PopupAnimationSettings>;
567
- declare const dropdownPopupAnimation: Required<PopupAnimationSettings>;
568
- declare const fadePopupAnimation: Required<PopupAnimationSettings>;
569
- declare const slideFromRightPopupAnimation: Required<PopupAnimationSettings>;
570
- declare const slideFromLeftPopupAnimation: Required<PopupAnimationSettings>;
571
- declare const slideFromTopPopupAnimation: Required<PopupAnimationSettings>;
572
- declare const slideFromBottomPopupAnimation: Required<PopupAnimationSettings>;
573
-
707
+ export declare const defaultPopupAnimation: Required<PopupAnimationSettings>;
708
+ export declare const dropdownPopupAnimation: Required<PopupAnimationSettings>;
709
+ export declare const fadePopupAnimation: Required<PopupAnimationSettings>;
710
+ export declare const slideFromRightPopupAnimation: Required<PopupAnimationSettings>;
711
+ export declare const slideFromLeftPopupAnimation: Required<PopupAnimationSettings>;
712
+ export declare const slideFromTopPopupAnimation: Required<PopupAnimationSettings>;
713
+ export declare const slideFromBottomPopupAnimation: Required<PopupAnimationSettings>;
574
714
  /**
575
715
  * The `data` passed in `PopupSettings`, available to the popup content.
576
716
  */
577
- declare const PopupDataInjectionToken: InjectionToken<unknown>;
578
-
579
- export { PopupCloseEvent, PopupCloseSource, PopupComponent, PopupDataInjectionToken, PopupRef, PopupService, defaultPopupAnimation, dropdownPopupAnimation, fadePopupAnimation, slideFromBottomPopupAnimation, slideFromLeftPopupAnimation, slideFromRightPopupAnimation, slideFromTopPopupAnimation };
580
- export type { ConnectionPoint, PopupAnchor, PopupAnimationSettings, PopupOffset, PopupSettings };
717
+ export declare const PopupDataInjectionToken: InjectionToken<unknown>;
718
+ export type { ConnectionPoint, PopupAnchor, PopupAnimationSettings, PopupSettings };