@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,552 +1,542 @@
1
- import * as _nanahoshi_mona_ui_i18n from '@nanahoshi/mona-ui/i18n';
2
- import { MonaTreeViewMessages } from '@nanahoshi/mona-ui/i18n';
3
- import * as _angular_core from '@angular/core';
4
- import { TemplateRef } from '@angular/core';
5
- import { ImmutableSet, Selector, List, Predicate } from '@mirei/ts-collections';
6
- import { PreventableEvent, FilterChangeEvent, FilterableOptions } from '@nanahoshi/mona-ui/common';
7
- import { Observable, Subject, BehaviorSubject, ReplaySubject } from 'rxjs';
8
-
9
- interface CheckableOptions {
10
- /**
11
- * @description Determines whether checking a node should also check its children.
12
- * Only applicable when `mode` is set to `multiple`.
13
- */
14
- checkChildren?: boolean;
15
- /**
16
- * @description Determines whether checking a node should also check its disabled children.
17
- * Only applicable when `mode` is set to `multiple`.
18
- */
19
- checkDisabledChildren?: boolean;
20
- /**
21
- * @description Determines whether checking a node should also check its parents.
22
- * Only applicable when `mode` is set to `multiple`.
23
- */
24
- checkParents?: boolean;
25
- /**
26
- * @description Determines whether only the children of the node should be checkable.
27
- */
28
- childrenOnly?: boolean;
29
- /**
30
- * @description Determines if the checkboxes are enabled.
31
- */
32
- enabled?: boolean;
33
- /**
34
- * @description Specifies the check mode.
35
- */
36
- mode?: "multiple" | "single";
1
+ import * as i0 from "@angular/core";
2
+ import { TemplateRef } from "@angular/core";
3
+ import { ImmutableSet, List, Predicate, Selector } from "@mirei/ts-collections";
4
+ import { FilterChangeEvent, FilterableOptions, PreventableEvent } from "@nanahoshi/mona-ui/common";
5
+ import { BehaviorSubject, Observable, ReplaySubject, Subject } from "rxjs";
6
+ import { MonaTreeViewMessages } from "@nanahoshi/mona-ui/i18n";
7
+ export interface CheckableOptions {
8
+ /**
9
+ * @description Determines whether checking a node should also check its children.
10
+ * Only applicable when `mode` is set to `multiple`.
11
+ */
12
+ checkChildren?: boolean;
13
+ /**
14
+ * @description Determines whether checking a node should also check its disabled children.
15
+ * Only applicable when `mode` is set to `multiple`.
16
+ */
17
+ checkDisabledChildren?: boolean;
18
+ /**
19
+ * @description Determines whether checking a node should also check its parents.
20
+ * Only applicable when `mode` is set to `multiple`.
21
+ */
22
+ checkParents?: boolean;
23
+ /**
24
+ * @description Determines whether only the children of the node should be checkable.
25
+ */
26
+ childrenOnly?: boolean;
27
+ /**
28
+ * @description Determines if the checkboxes are enabled.
29
+ */
30
+ enabled?: boolean;
31
+ /**
32
+ * @description Specifies the check mode.
33
+ */
34
+ mode?: "multiple" | "single";
37
35
  }
38
-
39
- type DataStructure = "flat" | "hierarchical";
40
-
41
- interface DisableOptions {
42
- /**
43
- * @description Determines whether the children of the node should be disabled as well.
44
- */
45
- disableChildren: boolean;
46
- /**
47
- * @description Determines if the disabling is enabled.
48
- */
49
- enabled: boolean;
36
+ export type DataStructure = "flat" | "hierarchical";
37
+ export interface DisableOptions {
38
+ /**
39
+ * @description Determines whether the children of the node should be disabled as well.
40
+ */
41
+ disableChildren: boolean;
42
+ /**
43
+ * @description Determines if the disabling is enabled.
44
+ */
45
+ enabled: boolean;
50
46
  }
51
-
52
- interface DraggableOptions {
53
- /**
54
- * @description Determines if the dragging is enabled.
55
- */
56
- enabled: boolean;
47
+ export interface DraggableOptions {
48
+ /**
49
+ * @description Determines if the dragging is enabled.
50
+ */
51
+ enabled: boolean;
57
52
  }
58
-
59
- interface NodeItem<T> {
60
- data: T;
61
- hasChildren: boolean;
62
- uid: string;
53
+ export interface NodeItem<T> {
54
+ data: T;
55
+ hasChildren: boolean;
56
+ uid: string;
63
57
  }
64
-
65
58
  /**
66
59
  * A node of a tree, wrapping its data item. Read `data`, `uid` and `nodeItem`; the tree keeps the rest, and writing to it
67
60
  * would put the node out of step with the tree.
68
61
  */
69
- declare class TreeNode<T> {
70
- /** @hidden Whether the node is checked. The tree keeps it in step with the checked keys. */
71
- readonly checked: _angular_core.WritableSignal<boolean>;
72
- /** @hidden The node's child nodes, in display order. */
73
- readonly children: _angular_core.WritableSignal<ImmutableSet<TreeNode<T>>>;
74
- /** The data item this node was created from. */
75
- readonly data: T;
76
- /** @hidden Whether the last load of this node's children from an asynchronous children selector failed. */
77
- readonly loadFailed: _angular_core.WritableSignal<boolean>;
78
- /** @hidden Whether the node's children are being loaded from an asynchronous children selector. */
79
- readonly loading: _angular_core.WritableSignal<boolean>;
80
- /** A unique id generated for the node when it is created. */
81
- readonly uid: string;
82
- /**
83
- * Whether children from an asynchronous children selector have been loaded. Loaded children are cached,
84
- * so collapsing and re-expanding the node does not request them again.
85
- * @hidden
86
- */
87
- childrenLoaded: boolean;
88
- /**
89
- * The node's position in the tree as dot-separated zero-based indices from the root, such as `"0.2.1"` for
90
- * the second child of the third child of the first root node.
91
- * @hidden
92
- */
93
- index: string;
94
- /** @hidden The node's parent node, or `null` for a root node. */
95
- parent: TreeNode<T> | null;
96
- constructor(data: T);
97
- /** @hidden Copies the node and its children. */
98
- clone(): TreeNode<T>;
99
- /** @hidden Whether the node sits anywhere below `node`. */
100
- isDescendantOf(node: TreeNode<T>): boolean;
101
- /** A plain snapshot of the node (its data, uid and whether it has children), as the tree view's events carry it. */
102
- get nodeItem(): NodeItem<T>;
62
+ export declare class TreeNode<T> {
63
+ /** @hidden Whether the node is checked. The tree keeps it in step with the checked keys. */
64
+ readonly checked: import("@angular/core").WritableSignal<boolean>;
65
+ /** @hidden The node's child nodes, in display order. */
66
+ readonly children: import("@angular/core").WritableSignal<ImmutableSet<TreeNode<T>>>;
67
+ /** The data item this node was created from. */
68
+ readonly data: T;
69
+ /** @hidden Whether the last load of this node's children from an asynchronous children selector failed. */
70
+ readonly loadFailed: import("@angular/core").WritableSignal<boolean>;
71
+ /** @hidden Whether the node's children are being loaded from an asynchronous children selector. */
72
+ readonly loading: import("@angular/core").WritableSignal<boolean>;
73
+ /** A unique id generated for the node when it is created. */
74
+ readonly uid: string;
75
+ /**
76
+ * Whether children from an asynchronous children selector have been loaded. Loaded children are cached,
77
+ * so collapsing and re-expanding the node does not request them again.
78
+ * @hidden
79
+ */
80
+ childrenLoaded: boolean;
81
+ /**
82
+ * The node's position in the tree as dot-separated zero-based indices from the root, such as `"0.2.1"` for
83
+ * the second child of the third child of the first root node.
84
+ * @hidden
85
+ */
86
+ index: string;
87
+ /** @hidden The node's parent node, or `null` for a root node. */
88
+ parent: TreeNode<T> | null;
89
+ constructor(data: T);
90
+ /** @hidden Copies the node and its children. */
91
+ clone(): TreeNode<T>;
92
+ /** @hidden Whether the node sits anywhere below `node`. */
93
+ isDescendantOf(node: TreeNode<T>): boolean;
94
+ /** A plain snapshot of the node (its data, uid and whether it has children), as the tree view's events carry it. */
95
+ get nodeItem(): NodeItem<T>;
103
96
  }
104
-
105
- type DropPosition = "before" | "after" | "inside" | "outside";
106
- interface DropPositionChangeEvent<T> {
107
- position: DropPosition;
108
- targetNode: TreeNode<T> | null;
97
+ export type DropPosition = "before" | "after" | "inside" | "outside";
98
+ export interface DropPositionChangeEvent<T> {
99
+ position: DropPosition;
100
+ targetNode: TreeNode<T> | null;
109
101
  }
110
-
111
- interface ExpandableOptions {
112
- /**
113
- * @description Determines if the expanding is enabled.
114
- */
115
- enabled: boolean;
102
+ export interface ExpandableOptions {
103
+ /**
104
+ * @description Determines if the expanding is enabled.
105
+ */
106
+ enabled: boolean;
116
107
  }
117
-
118
- declare class NodeCheckEvent<T> extends PreventableEvent {
119
- #private;
120
- constructor(node: TreeNode<T>, event: MouseEvent | KeyboardEvent);
121
- get nodeItem(): NodeItem<T>;
108
+ export declare class NodeCheckEvent<T> extends PreventableEvent {
109
+ #private;
110
+ constructor(node: TreeNode<T>, event: MouseEvent | KeyboardEvent);
111
+ get nodeItem(): NodeItem<T>;
122
112
  }
123
-
124
- declare class NodeClickEvent<T> extends PreventableEvent {
125
- #private;
126
- constructor(node: TreeNode<T>, event: MouseEvent);
127
- get nodeItem(): NodeItem<T>;
113
+ export declare class NodeClickEvent<T> extends PreventableEvent {
114
+ #private;
115
+ constructor(node: TreeNode<T>, event: MouseEvent);
116
+ get nodeItem(): NodeItem<T>;
128
117
  }
129
-
130
- declare abstract class NodeEvent<T, E extends Event = MouseEvent | TouchEvent> extends PreventableEvent<E> {
131
- #private;
132
- protected constructor(type: string, node: TreeNode<T>, event: E);
133
- get nodeItem(): NodeItem<T>;
118
+ export declare abstract class NodeEvent<T, E extends Event = MouseEvent | TouchEvent> extends PreventableEvent<E> {
119
+ #private;
120
+ protected constructor(type: string, node: TreeNode<T>, event: E);
121
+ get nodeItem(): NodeItem<T>;
134
122
  }
135
-
136
- declare class NodeDragEndEvent<T> extends NodeEvent<T> {
137
- constructor(node: TreeNode<T>, event: MouseEvent | TouchEvent);
123
+ export declare class NodeDragEndEvent<T> extends NodeEvent<T> {
124
+ constructor(node: TreeNode<T>, event: MouseEvent | TouchEvent);
138
125
  }
139
-
140
- declare class NodeDragEvent<T> {
141
- #private;
142
- constructor(node: TreeNode<T>, targetNode: TreeNode<T> | null, event: MouseEvent | TouchEvent);
143
- get nodeItem(): NodeItem<T>;
144
- get originalEvent(): MouseEvent | TouchEvent;
145
- get targetNodeItem(): NodeItem<T> | null;
146
- get type(): string;
126
+ export declare class NodeDragEvent<T> {
127
+ #private;
128
+ constructor(node: TreeNode<T>, targetNode: TreeNode<T> | null, event: MouseEvent | TouchEvent);
129
+ get nodeItem(): NodeItem<T>;
130
+ get originalEvent(): MouseEvent | TouchEvent;
131
+ get targetNodeItem(): NodeItem<T> | null;
132
+ get type(): string;
147
133
  }
148
- declare class InternalNodeDragEvent<T> {
149
- #private;
150
- constructor(dragEvent: NodeDragEvent<T>, dropAllowed: boolean);
151
- get dragEvent(): NodeDragEvent<T>;
152
- get dropAllowed(): boolean;
134
+ export declare class InternalNodeDragEvent<T> {
135
+ #private;
136
+ constructor(dragEvent: NodeDragEvent<T>, dropAllowed: boolean);
137
+ get dragEvent(): NodeDragEvent<T>;
138
+ get dropAllowed(): boolean;
153
139
  }
154
-
155
- declare class NodeDragStartEvent<T> extends NodeEvent<T> {
156
- constructor(node: TreeNode<T>, event: MouseEvent | TouchEvent);
140
+ export declare class NodeDragStartEvent<T> extends NodeEvent<T> {
141
+ constructor(node: TreeNode<T>, event: MouseEvent | TouchEvent);
157
142
  }
158
-
159
- interface NodeMoveSnapshot {
160
- readonly originalIndex: number;
161
- readonly originalParentUid: string | null;
162
- readonly sourceNodeUid: string;
143
+ export interface NodeMoveSnapshot {
144
+ readonly originalIndex: number;
145
+ readonly originalParentUid: string | null;
146
+ readonly sourceNodeUid: string;
163
147
  }
164
-
165
- interface ITreeView<T> {
166
- moveNode(source: NodeItem<T>, target: NodeItem<T>, position: DropPosition): NodeMoveSnapshot | null;
167
- undoMoveNode(snapshot: NodeMoveSnapshot): void;
148
+ export interface ITreeView<T> {
149
+ moveNode(source: NodeItem<T>, target: NodeItem<T>, position: DropPosition): NodeMoveSnapshot | null;
150
+ undoMoveNode(snapshot: NodeMoveSnapshot): void;
168
151
  }
169
-
170
152
  /**
171
153
  * A request to move a node: a drop, or a keyboard move (Ctrl+Shift+Arrow), whose original event is then the
172
154
  * `KeyboardEvent`.
173
155
  */
174
- declare class NodeDropEvent<T> extends NodeEvent<T, NodeDropOriginalEvent> {
175
- #private;
176
- constructor(params: NodeDropEventArgs<T>);
177
- get position(): DropPosition;
178
- get sourceNode(): NodeItem<T>;
179
- get targetNode(): NodeItem<T>;
180
- get treeView(): ITreeView<T>;
156
+ export declare class NodeDropEvent<T> extends NodeEvent<T, NodeDropOriginalEvent> {
157
+ #private;
158
+ constructor(params: NodeDropEventArgs<T>);
159
+ get position(): DropPosition;
160
+ get sourceNode(): NodeItem<T>;
161
+ get targetNode(): NodeItem<T>;
162
+ get treeView(): ITreeView<T>;
181
163
  }
182
- declare class NodeDropEventSansTree<T> extends NodeEvent<T, NodeDropOriginalEvent> {
183
- #private;
184
- constructor(params: NodeDropEventArgsSansTree<T>);
185
- get event(): NodeDropOriginalEvent;
186
- get position(): DropPosition;
187
- get sourceNode(): TreeNode<T>;
188
- get targetNode(): TreeNode<T>;
164
+ export declare class NodeDropEventSansTree<T> extends NodeEvent<T, NodeDropOriginalEvent> {
165
+ #private;
166
+ constructor(params: NodeDropEventArgsSansTree<T>);
167
+ get event(): NodeDropOriginalEvent;
168
+ get position(): DropPosition;
169
+ get sourceNode(): TreeNode<T>;
170
+ get targetNode(): TreeNode<T>;
189
171
  }
190
172
  /** The event behind a `nodeDrop`: the pointer event of a drop, or the key press of a keyboard move. */
191
- type NodeDropOriginalEvent = MouseEvent | TouchEvent | KeyboardEvent;
192
- interface NodeDropEventArgs<T> {
193
- event: NodeDropOriginalEvent;
194
- position: DropPosition;
195
- sourceNode: TreeNode<T>;
196
- targetNode: TreeNode<T>;
197
- treeView: ITreeView<T>;
173
+ export type NodeDropOriginalEvent = MouseEvent | TouchEvent | KeyboardEvent;
174
+ export interface NodeDropEventArgs<T> {
175
+ event: NodeDropOriginalEvent;
176
+ position: DropPosition;
177
+ sourceNode: TreeNode<T>;
178
+ targetNode: TreeNode<T>;
179
+ treeView: ITreeView<T>;
198
180
  }
199
- type NodeDropEventArgsSansTree<T> = Omit<NodeDropEventArgs<T>, "treeView">;
200
-
201
- declare class NodeSelectEvent<T> extends PreventableEvent {
202
- #private;
203
- constructor(node: TreeNode<T>, event: MouseEvent | KeyboardEvent);
204
- get nodeItem(): NodeItem<T>;
181
+ export type NodeDropEventArgsSansTree<T> = Omit<NodeDropEventArgs<T>, "treeView">;
182
+ export declare class NodeSelectEvent<T> extends PreventableEvent {
183
+ #private;
184
+ constructor(node: TreeNode<T>, event: MouseEvent | KeyboardEvent);
185
+ get nodeItem(): NodeItem<T>;
205
186
  }
206
-
207
- type SelectableOptions = {
208
- /**
209
- * @description Determines if the selection functionality is active.
210
- */
211
- enabled: boolean;
212
- /**
213
- * @description Determines whether only the children of the node should be selectable.
214
- */
215
- childrenOnly: boolean;
187
+ export type SelectableOptions = {
188
+ /**
189
+ * @description Determines if the selection functionality is active.
190
+ */
191
+ enabled: boolean;
192
+ /**
193
+ * @description Determines whether only the children of the node should be selectable.
194
+ */
195
+ childrenOnly: boolean;
216
196
  } & (SingleSelectionConfig | MultipleSelectionConfig);
217
- interface SingleSelectionConfig {
218
- /**
219
- * @description Allows only one item to be selected at a time.
220
- */
221
- mode: "single";
222
- /**
223
- * @description Determines if clicking an already selected item will deselect it.
224
- */
225
- toggleable?: boolean;
197
+ export interface SingleSelectionConfig {
198
+ /**
199
+ * @description Allows only one item to be selected at a time.
200
+ */
201
+ mode: "single";
202
+ /**
203
+ * @description Determines if clicking an already selected item will deselect it.
204
+ */
205
+ toggleable?: boolean;
226
206
  }
227
- interface MultipleSelectionConfig {
228
- /**
229
- * @description Allows multiple items to be selected simultaneously.
230
- */
231
- mode: "multiple";
207
+ export interface MultipleSelectionConfig {
208
+ /**
209
+ * @description Allows multiple items to be selected simultaneously.
210
+ */
211
+ mode: "multiple";
232
212
  }
233
-
234
- interface TreeNodeCheckEvent<T> {
235
- checked: boolean;
236
- node: TreeNode<T>;
213
+ export interface TreeNodeCheckEvent<T> {
214
+ checked: boolean;
215
+ node: TreeNode<T>;
237
216
  }
238
-
239
- interface TreeNodeExpandEvent<T> {
240
- expanded: boolean;
241
- node: TreeNode<T>;
217
+ export interface TreeNodeExpandEvent<T> {
218
+ expanded: boolean;
219
+ node: TreeNode<T>;
242
220
  }
243
-
244
221
  /** The ways Ctrl+Shift+Arrow moves a node: past a sibling, into the previous sibling, or out of its parent. */
245
222
  type TreeKeyboardMoveDirection = "down" | "in" | "out" | "up";
246
223
  /** Where a keyboard move takes a node. */
247
224
  interface TreeKeyboardMove<T> {
248
- readonly position: Exclude<DropPosition, "outside">;
249
- readonly targetNode: TreeNode<T>;
225
+ readonly position: Exclude<DropPosition, "outside">;
226
+ readonly targetNode: TreeNode<T>;
250
227
  }
251
-
252
- interface TreeNodeSelectEvent<T> {
253
- node: TreeNode<T>;
254
- selected: boolean;
228
+ export interface TreeNodeSelectEvent<T> {
229
+ node: TreeNode<T>;
230
+ selected: boolean;
255
231
  }
256
-
257
- type ChildrenSelector<T> = string | Selector<T, Iterable<T> | Observable<Iterable<T>>>;
258
- type NodeKeySelector<T, K = unknown> = string | Selector<T, K> | null;
259
-
260
- declare class TreeService<T> {
261
- #private;
262
- readonly animationEnabled: _angular_core.WritableSignal<boolean>;
263
- readonly animationTemporarilyDisabled: _angular_core.WritableSignal<boolean>;
264
- readonly blur$: Subject<FocusEvent>;
265
- readonly checkBy: _angular_core.WritableSignal<NodeKeySelector<T>>;
266
- readonly checkableOptions: _angular_core.WritableSignal<CheckableOptions>;
267
- /**
268
- * The checked keys after the user checks or unchecks a node. Keys set from code, and keys the tree derives on its
269
- * own (parents with `checkParents`, lazily loaded children of a checked node, ancestors after a move), aren't
270
- * reported here.
271
- */
272
- readonly checkedKeysChange$: Subject<ImmutableSet<unknown>>;
273
- readonly children: _angular_core.WritableSignal<ChildrenSelector<T>>;
274
- /**
275
- * A node's children failed to load from an asynchronous children selector. The node is collapsed again (not
276
- * reported through `expandedKeysChange$`), and expanding it retries the load.
277
- */
278
- readonly childrenLoadError$: Subject<{
279
- readonly error: unknown;
280
- readonly node: TreeNode<T>;
281
- }>;
282
- /** A node started loading its children from an asynchronous children selector. */
283
- readonly childrenLoadStart$: Subject<TreeNode<T>>;
284
- readonly disableBy: _angular_core.WritableSignal<NodeKeySelector<T>>;
285
- readonly disableOptions: _angular_core.WritableSignal<DisableOptions>;
286
- readonly disabledKeys: _angular_core.WritableSignal<ImmutableSet<unknown>>;
287
- readonly draggableOptions: _angular_core.WritableSignal<DraggableOptions>;
288
- readonly dragging: _angular_core.WritableSignal<boolean>;
289
- readonly dragging$: Observable<boolean>;
290
- readonly dropAllowed: _angular_core.WritableSignal<boolean>;
291
- readonly dropPositionChange$: BehaviorSubject<DropPositionChangeEvent<T> | null>;
292
- readonly dropPositionSignal: _angular_core.Signal<DropPositionChangeEvent<T> | null>;
293
- readonly expandBy: _angular_core.WritableSignal<NodeKeySelector<T>>;
294
- readonly expandableOptions: _angular_core.WritableSignal<ExpandableOptions>;
295
- readonly expandedKeys: _angular_core.Signal<ImmutableSet<unknown>>;
296
- /**
297
- * The expanded keys after the user expands or collapses a node outside filtering. The expansion a filter applies,
298
- * and the user's changes to it while filtering, are view state and aren't reported.
299
- */
300
- readonly expandedKeysChange$: Subject<ImmutableSet<unknown>>;
301
- readonly filter$: ReplaySubject<string>;
302
- readonly filterChange$: Subject<FilterChangeEvent>;
303
- readonly filterPlaceholder: _angular_core.WritableSignal<string>;
304
- /** The applied filter. Typing is debounced by the filter input; a filter set from code applies at once. */
305
- readonly filterText: _angular_core.Signal<string>;
306
- readonly filterableOptions: _angular_core.Signal<FilterableOptions>;
307
- readonly focus$: Subject<FocusEvent>;
308
- /** The number of nodes whose text matches the filter (their ancestors, shown for context, aren't counted). */
309
- readonly matchCount: _angular_core.Signal<number>;
310
- readonly navigatedNode: _angular_core.WritableSignal<TreeNode<T> | null>;
311
- readonly nodeCheck$: Subject<NodeCheckEvent<T>>;
312
- readonly nodeCheckChange$: Subject<TreeNodeCheckEvent<T>>;
313
- readonly nodeClick$: Subject<NodeClickEvent<T>>;
314
- readonly nodeDrag$: Subject<InternalNodeDragEvent<T>>;
315
- readonly nodeDragEnd$: Subject<NodeDragEndEvent<T>>;
316
- readonly nodeDragStart$: Subject<NodeDragStartEvent<T>>;
317
- readonly nodeDrop$: Subject<NodeDropEventSansTree<T>>;
318
- readonly nodeExpand$: Subject<TreeNodeExpandEvent<T>>;
319
- readonly nodeSelect$: Subject<NodeSelectEvent<T>>;
320
- readonly nodeSelectChange$: Subject<TreeNodeSelectEvent<T>>;
321
- readonly nodeSet: _angular_core.WritableSignal<ImmutableSet<TreeNode<T>>>;
322
- readonly nodeTemplate: _angular_core.WritableSignal<TemplateRef<unknown> | null>;
323
- readonly selectBy: _angular_core.WritableSignal<NodeKeySelector<T>>;
324
- readonly selectableOptions: _angular_core.WritableSignal<SelectableOptions>;
325
- readonly selectedKeys: _angular_core.WritableSignal<ImmutableSet<unknown>>;
326
- /** The selected keys after the user selects or deselects a node. Keys set from code aren't reported. */
327
- readonly selectedKeysChange$: Subject<ImmutableSet<unknown>>;
328
- readonly selectedNodes: _angular_core.Signal<ImmutableSet<TreeNode<T>>>;
329
- readonly selectionChange$: Subject<NodeItem<T>>;
330
- readonly textField: _angular_core.WritableSignal<string | Selector<T, string>>;
331
- readonly viewNodeSet: _angular_core.Signal<ImmutableSet<TreeNode<T>>>;
332
- constructor();
333
- /** Whether two key sets hold the same keys, in any order. */
334
- /** Reads a field of a data item by name (for the string forms of the key, id and children selectors). */
335
- private static readField;
336
- private static sameKeys;
337
- static flatten<T>(nodes: Iterable<TreeNode<T>>): List<TreeNode<T>>;
338
- clearFilter(): void;
339
- detachNode(node: TreeNode<T>): void;
340
- /**
341
- * Expands every expandable, enabled sibling of a node (the `*` key of the WAI-ARIA tree pattern).
342
- */
343
- expandSiblings(node: TreeNode<T>): void;
344
- /**
345
- * The node of the current nodes that stands for `node`: the node itself, or after a data refresh rebuilt the
346
- * nodes, the node of the same data item (or, for flat data, of the same id).
347
- */
348
- findCounterpart(node: TreeNode<T>): TreeNode<T> | null;
349
- /**
350
- * Finds the next visible node whose text starts with `prefix` (case-insensitive), wrapping around. Used for
351
- * typeahead: a first character searches after the navigated node, and each further character keeps the
352
- * navigated node while it still matches.
353
- */
354
- findNodeByText(prefix: string): TreeNode<T> | null;
355
- getCheckKey(node: TreeNode<T>): unknown;
356
- getDisableKey(node: TreeNode<T>): unknown;
357
- /**
358
- * Where a keyboard move takes a node: before its previous or after its next visible sibling (`"up"`, `"down"`),
359
- * inside its previous visible sibling as the last child (`"in"`), or after its parent (`"out"`). `null` when the
360
- * node can't move that way or is disabled.
361
- */
362
- getKeyboardMove(node: TreeNode<T>, direction: TreeKeyboardMoveDirection): TreeKeyboardMove<T> | null;
363
- getNodeByUid(uid: string): TreeNode<T> | null;
364
- getNodeElementId(uid: string): string;
365
- /** What identifies a node's data item across data refreshes: its id for flat data, else the item itself. */
366
- getNodeIdentity(node: TreeNode<T>): unknown;
367
- getNodeText(node: TreeNode<T>): string;
368
- hasChildren(node: TreeNode<T> | null): boolean;
369
- insertNodeAtIndex(node: TreeNode<T>, parentUid: string | null, index: number): void;
370
- isCheckable(node: TreeNode<T>): boolean;
371
- isChecked(node: TreeNode<T>): boolean;
372
- isDisabled(node: TreeNode<T>): boolean;
373
- isExpanded(node: TreeNode<T>): boolean;
374
- isIndeterminate(node: TreeNode<T>): boolean;
375
- isNavigated(node: TreeNode<T>): boolean;
376
- isSelected(node: TreeNode<T>): boolean;
377
- isTreeFiltered(): boolean;
378
- isVisible(node: TreeNode<T>): boolean;
379
- /**
380
- * Loads the children of a node from an asynchronous children selector.
381
- * Children are loaded once and cached; pass `reload` to request them again. A new load cancels a pending one.
382
- */
383
- loadNodeChildren(node: TreeNode<T>, reload?: boolean): void;
384
- /**
385
- * Moves a node relative to a target node. Moving a node onto itself or into its own subtree is ignored,
386
- * because it would detach the subtree and create a parent cycle, and so is moving it inside its own parent or
387
- * a disabled node, or `"outside"`.
388
- * @returns whether the node moved.
389
- */
390
- moveNode(sourceNode: TreeNode<T>, targetNode: TreeNode<T>, position: DropPosition): boolean;
391
- navigate(direction: "next" | "previous" | "first" | "last"): TreeNode<T> | null;
392
- notifySelectionChange(node: TreeNode<T>): void;
393
- /**
394
- * Whether selecting `node` the way the user does (a click, or Enter) changes the selection. It doesn't for the
395
- * selected node of a single selection that can't be toggled off.
396
- */
397
- selectionWouldChange(node: TreeNode<T>): boolean;
398
- setAnimationEnabled(enabled: boolean): void;
399
- setCheckBy(selector: NodeKeySelector<T>): void;
400
- setCheckableOptions(options: Partial<CheckableOptions>): void;
401
- setCheckedKeys(keys: Iterable<unknown>): void;
402
- setChildrenSelector(selector: string | Selector<T, Iterable<T> | Observable<Iterable<T>>>): void;
403
- setData(data: Iterable<T>): void;
404
- setDataStructure(structure: DataStructure): void;
405
- setDisableBy(selector: NodeKeySelector<T>): void;
406
- setDisableOptions(options: Partial<DisableOptions>): void;
407
- setDisabledKeys(keys: Iterable<unknown>): void;
408
- setDraggableOptions(options: Partial<DraggableOptions>): void;
409
- setExpandBy(selector: NodeKeySelector<T>): void;
410
- setExpandableOptions(options: Partial<ExpandableOptions>): void;
411
- setExpandedKeys(keys: Iterable<unknown>): void;
412
- setFilterableOptions(options: Partial<FilterableOptions>): void;
413
- setFlatIdField(field: string): void;
414
- setFlatParentIdField(field: string): void;
415
- setHasCheckboxPredicate(fn: ((data: T, uid: string) => boolean) | null): void;
416
- setHasChildrenPredicate(predicate: Predicate<T> | null): void;
417
- setNodeCheck(node: TreeNode<T>, checked: boolean): void;
418
- setNodeExpand(node: TreeNode<T>, expanded: boolean): void;
419
- /** @returns whether the selection changed. */
420
- setNodeSelect(node: TreeNode<T>, selected: boolean): boolean;
421
- setSelectBy(selector: NodeKeySelector<T>): void;
422
- setSelectableOptions(options: Partial<SelectableOptions>): void;
423
- setSelectedDataItems(dataItems: Iterable<T>): void;
424
- setSelectedKeys(keys: Iterable<unknown>): void;
425
- setTextField(selector: string | Selector<T, string>): void;
426
- /**
427
- * Expands or collapses a node the way user interaction does: disabled nodes are left alone, children of an
428
- * asynchronous children selector are loaded on first expand, and `nodeExpand$` is notified. Without expanding
429
- * (every node is then open), nothing changes.
430
- * @returns whether the expand state changed.
431
- */
432
- toggleNodeExpand(node: TreeNode<T>, expanded: boolean): boolean;
433
- private applyCheckedKeysToNodes;
434
- private computeVisibleUids;
435
- private createFlatNodes;
436
- /**
437
- * Builds tree nodes for hierarchical data, reusing the existing node of each data item so node state survives
438
- * a data refresh. A data object that appears more than once gets a node of its own for every extra occurrence.
439
- */
440
- private createHierarchicalNodes;
441
- private createNodeDictionary;
442
- private createNodes;
443
- /**
444
- * The derived check state of a parent: `true` when all of its check-state children are checked,
445
- * or `null` when it has none (its own state then stands).
446
- */
447
- private deriveParentChecked;
448
- /**
449
- * Children that determine a parent's derived check state: those with a checkbox and, unless
450
- * `checkDisabledChildren` is set, only enabled ones, because the user cannot change disabled children.
451
- */
452
- private getCheckStateChildren;
453
- private getChildNodes;
454
- private getDataItemSelectKey;
455
- private getExpandKey;
456
- private getParentNodes;
457
- private getSelectKey;
458
- private isAnyParentCollapsed;
459
- private isFiltered;
460
- /**
461
- * Keeps `aria-activedescendant` on a rendered node: when the active node is hidden by a collapse or a filter, the
462
- * nearest visible ancestor takes over (else the first visible node); a node re-created by new data with the same
463
- * uid is swapped in.
464
- */
465
- private keepNavigatedNodeVisible;
466
- private loadCheckedKeysForChildren;
467
- /** Loads the children of the expanded, shown nodes whose children come from an observable and aren't loaded. */
468
- private loadExpandedNodes;
469
- private moveNodeAfter;
470
- private moveNodeBefore;
471
- private moveNodeInside;
472
- private navigateToNextNode;
473
- private navigateToPreviousNode;
474
- private recalculateCheckedAncestors;
475
- private restoreExpandedChildren;
476
- private updateNodeIndices;
477
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeService<any>, never>;
478
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<TreeService<any>>;
232
+ export type ChildrenSelector<T> = string | Selector<T, Iterable<T> | Observable<Iterable<T>>>;
233
+ export type NodeKeySelector<T, K = unknown> = string | Selector<T, K> | null;
234
+ export declare class TreeService<T> {
235
+ #private;
236
+ readonly animationEnabled: import("@angular/core").WritableSignal<boolean>;
237
+ readonly animationTemporarilyDisabled: import("@angular/core").WritableSignal<boolean>;
238
+ readonly blur$: Subject<FocusEvent>;
239
+ readonly checkBy: import("@angular/core").WritableSignal<NodeKeySelector<T>>;
240
+ readonly checkableOptions: import("@angular/core").WritableSignal<CheckableOptions>;
241
+ /**
242
+ * The checked keys after the user checks or unchecks a node. Keys set from code, and keys the tree derives on its
243
+ * own (parents with `checkParents`, lazily loaded children of a checked node, ancestors after a move), aren't
244
+ * reported here.
245
+ */
246
+ readonly checkedKeysChange$: Subject<ImmutableSet<unknown>>;
247
+ readonly children: import("@angular/core").WritableSignal<ChildrenSelector<T>>;
248
+ /**
249
+ * A node's children failed to load from an asynchronous children selector. The node is collapsed again (not
250
+ * reported through `expandedKeysChange$`), and expanding it retries the load.
251
+ */
252
+ readonly childrenLoadError$: Subject<{
253
+ readonly error: unknown;
254
+ readonly node: TreeNode<T>;
255
+ }>;
256
+ /** A node started loading its children from an asynchronous children selector. */
257
+ readonly childrenLoadStart$: Subject<TreeNode<T>>;
258
+ readonly disableBy: import("@angular/core").WritableSignal<NodeKeySelector<T>>;
259
+ readonly disableOptions: import("@angular/core").WritableSignal<DisableOptions>;
260
+ readonly disabledKeys: import("@angular/core").WritableSignal<ImmutableSet<unknown>>;
261
+ readonly draggableOptions: import("@angular/core").WritableSignal<DraggableOptions>;
262
+ readonly dragging: import("@angular/core").WritableSignal<boolean>;
263
+ readonly dragging$: Observable<boolean>;
264
+ readonly dropAllowed: import("@angular/core").WritableSignal<boolean>;
265
+ readonly dropPositionChange$: BehaviorSubject<DropPositionChangeEvent<T> | null>;
266
+ readonly dropPositionSignal: import("@angular/core").Signal<DropPositionChangeEvent<T> | null>;
267
+ readonly expandBy: import("@angular/core").WritableSignal<NodeKeySelector<T>>;
268
+ readonly expandableOptions: import("@angular/core").WritableSignal<ExpandableOptions>;
269
+ readonly expandedKeys: import("@angular/core").Signal<ImmutableSet<unknown>>;
270
+ /**
271
+ * The expanded keys after the user expands or collapses a node outside filtering. The expansion a filter applies,
272
+ * and the user's changes to it while filtering, are view state and aren't reported.
273
+ */
274
+ readonly expandedKeysChange$: Subject<ImmutableSet<unknown>>;
275
+ readonly filter$: ReplaySubject<string>;
276
+ readonly filterChange$: Subject<FilterChangeEvent>;
277
+ readonly filterPlaceholder: import("@angular/core").WritableSignal<string>;
278
+ /** The applied filter. Typing is debounced by the filter input; a filter set from code applies at once. */
279
+ readonly filterText: import("@angular/core").Signal<string>;
280
+ readonly filterableOptions: import("@angular/core").Signal<FilterableOptions>;
281
+ readonly focus$: Subject<FocusEvent>;
282
+ /** The number of nodes whose text matches the filter (their ancestors, shown for context, aren't counted). */
283
+ readonly matchCount: import("@angular/core").Signal<number>;
284
+ readonly navigatedNode: import("@angular/core").WritableSignal<TreeNode<T> | null>;
285
+ readonly nodeCheck$: Subject<NodeCheckEvent<T>>;
286
+ readonly nodeCheckChange$: Subject<TreeNodeCheckEvent<T>>;
287
+ readonly nodeClick$: Subject<NodeClickEvent<T>>;
288
+ readonly nodeDrag$: Subject<InternalNodeDragEvent<T>>;
289
+ readonly nodeDragEnd$: Subject<NodeDragEndEvent<T>>;
290
+ readonly nodeDragStart$: Subject<NodeDragStartEvent<T>>;
291
+ readonly nodeDrop$: Subject<NodeDropEventSansTree<T>>;
292
+ readonly nodeExpand$: Subject<TreeNodeExpandEvent<T>>;
293
+ readonly nodeSelect$: Subject<NodeSelectEvent<T>>;
294
+ readonly nodeSelectChange$: Subject<TreeNodeSelectEvent<T>>;
295
+ readonly nodeSet: import("@angular/core").WritableSignal<ImmutableSet<TreeNode<T>>>;
296
+ readonly nodeTemplate: import("@angular/core").WritableSignal<TemplateRef<unknown> | null>;
297
+ readonly selectBy: import("@angular/core").WritableSignal<NodeKeySelector<T>>;
298
+ readonly selectableOptions: import("@angular/core").WritableSignal<SelectableOptions>;
299
+ readonly selectedKeys: import("@angular/core").WritableSignal<ImmutableSet<unknown>>;
300
+ /** The selected keys after the user selects or deselects a node. Keys set from code aren't reported. */
301
+ readonly selectedKeysChange$: Subject<ImmutableSet<unknown>>;
302
+ readonly selectedNodes: import("@angular/core").Signal<ImmutableSet<TreeNode<T>>>;
303
+ readonly selectionChange$: Subject<NodeItem<T>>;
304
+ readonly textField: import("@angular/core").WritableSignal<string | Selector<T, string>>;
305
+ readonly viewNodeSet: import("@angular/core").Signal<ImmutableSet<TreeNode<T>>>;
306
+ constructor();
307
+ /** Whether two key sets hold the same keys, in any order. */
308
+ /** Reads a field of a data item by name (for the string forms of the key, id and children selectors). */
309
+ private static readField;
310
+ private static sameKeys;
311
+ static flatten<T>(nodes: Iterable<TreeNode<T>>): List<TreeNode<T>>;
312
+ clearFilter(): void;
313
+ detachNode(node: TreeNode<T>): void;
314
+ /**
315
+ * Expands every expandable, enabled sibling of a node (the `*` key of the WAI-ARIA tree pattern).
316
+ */
317
+ expandSiblings(node: TreeNode<T>): void;
318
+ /**
319
+ * The node of the current nodes that stands for `node`: the node itself, or after a data refresh rebuilt the
320
+ * nodes, the node of the same data item (or, for flat data, of the same id).
321
+ */
322
+ findCounterpart(node: TreeNode<T>): TreeNode<T> | null;
323
+ /**
324
+ * Finds the next visible node whose text starts with `prefix` (case-insensitive), wrapping around. Used for
325
+ * typeahead: a first character searches after the navigated node, and each further character keeps the
326
+ * navigated node while it still matches.
327
+ */
328
+ findNodeByText(prefix: string): TreeNode<T> | null;
329
+ getCheckKey(node: TreeNode<T>): unknown;
330
+ getDisableKey(node: TreeNode<T>): unknown;
331
+ /**
332
+ * Where a keyboard move takes a node: before its previous or after its next visible sibling (`"up"`, `"down"`),
333
+ * inside its previous visible sibling as the last child (`"in"`), or after its parent (`"out"`). `null` when the
334
+ * node can't move that way or is disabled.
335
+ */
336
+ getKeyboardMove(node: TreeNode<T>, direction: TreeKeyboardMoveDirection): TreeKeyboardMove<T> | null;
337
+ getNodeByUid(uid: string): TreeNode<T> | null;
338
+ getNodeElementId(uid: string): string;
339
+ /** What identifies a node's data item across data refreshes: its id for flat data, else the item itself. */
340
+ getNodeIdentity(node: TreeNode<T>): unknown;
341
+ getNodeText(node: TreeNode<T>): string;
342
+ hasChildren(node: TreeNode<T> | null): boolean;
343
+ insertNodeAtIndex(node: TreeNode<T>, parentUid: string | null, index: number): void;
344
+ isCheckable(node: TreeNode<T>): boolean;
345
+ isChecked(node: TreeNode<T>): boolean;
346
+ isDisabled(node: TreeNode<T>): boolean;
347
+ isExpanded(node: TreeNode<T>): boolean;
348
+ isIndeterminate(node: TreeNode<T>): boolean;
349
+ isNavigated(node: TreeNode<T>): boolean;
350
+ isSelected(node: TreeNode<T>): boolean;
351
+ isTreeFiltered(): boolean;
352
+ isVisible(node: TreeNode<T>): boolean;
353
+ /**
354
+ * Loads the children of a node from an asynchronous children selector.
355
+ * Children are loaded once and cached; pass `reload` to request them again. A new load cancels a pending one.
356
+ */
357
+ loadNodeChildren(node: TreeNode<T>, reload?: boolean): void;
358
+ /**
359
+ * Moves a node relative to a target node. Moving a node onto itself or into its own subtree is ignored,
360
+ * because it would detach the subtree and create a parent cycle, and so is moving it inside its own parent or
361
+ * a disabled node, or `"outside"`.
362
+ * @returns whether the node moved.
363
+ */
364
+ moveNode(sourceNode: TreeNode<T>, targetNode: TreeNode<T>, position: DropPosition): boolean;
365
+ navigate(direction: "next" | "previous" | "first" | "last"): TreeNode<T> | null;
366
+ notifySelectionChange(node: TreeNode<T>): void;
367
+ /**
368
+ * Whether selecting `node` the way the user does (a click, or Enter) changes the selection. It doesn't for the
369
+ * selected node of a single selection that can't be toggled off.
370
+ */
371
+ selectionWouldChange(node: TreeNode<T>): boolean;
372
+ setAnimationEnabled(enabled: boolean): void;
373
+ setCheckBy(selector: NodeKeySelector<T>): void;
374
+ setCheckableOptions(options: Partial<CheckableOptions>): void;
375
+ setCheckedKeys(keys: Iterable<unknown>): void;
376
+ setChildrenSelector(selector: string | Selector<T, Iterable<T> | Observable<Iterable<T>>>): void;
377
+ setData(data: Iterable<T>): void;
378
+ setDataStructure(structure: DataStructure): void;
379
+ setDisableBy(selector: NodeKeySelector<T>): void;
380
+ setDisableOptions(options: Partial<DisableOptions>): void;
381
+ setDisabledKeys(keys: Iterable<unknown>): void;
382
+ setDraggableOptions(options: Partial<DraggableOptions>): void;
383
+ setExpandBy(selector: NodeKeySelector<T>): void;
384
+ setExpandableOptions(options: Partial<ExpandableOptions>): void;
385
+ setExpandedKeys(keys: Iterable<unknown>): void;
386
+ setFilterableOptions(options: Partial<FilterableOptions>): void;
387
+ setFlatIdField(field: string): void;
388
+ setFlatParentIdField(field: string): void;
389
+ setHasCheckboxPredicate(fn: ((data: T, uid: string) => boolean) | null): void;
390
+ setHasChildrenPredicate(predicate: Predicate<T> | null): void;
391
+ setNodeCheck(node: TreeNode<T>, checked: boolean): void;
392
+ setNodeExpand(node: TreeNode<T>, expanded: boolean): void;
393
+ /** @returns whether the selection changed. */
394
+ setNodeSelect(node: TreeNode<T>, selected: boolean): boolean;
395
+ setSelectBy(selector: NodeKeySelector<T>): void;
396
+ setSelectableOptions(options: Partial<SelectableOptions>): void;
397
+ setSelectedDataItems(dataItems: Iterable<T>): void;
398
+ setSelectedKeys(keys: Iterable<unknown>): void;
399
+ setTextField(selector: string | Selector<T, string>): void;
400
+ /**
401
+ * Expands or collapses a node the way user interaction does: disabled nodes are left alone, children of an
402
+ * asynchronous children selector are loaded on first expand, and `nodeExpand$` is notified. Without expanding
403
+ * (every node is then open), nothing changes.
404
+ * @returns whether the expand state changed.
405
+ */
406
+ toggleNodeExpand(node: TreeNode<T>, expanded: boolean): boolean;
407
+ private applyCheckedKeysToNodes;
408
+ private computeVisibleUids;
409
+ private createFlatNodes;
410
+ /**
411
+ * Builds tree nodes for hierarchical data, reusing the existing node of each data item so node state survives
412
+ * a data refresh. A data object that appears more than once gets a node of its own for every extra occurrence.
413
+ */
414
+ private createHierarchicalNodes;
415
+ private createNodeDictionary;
416
+ private createNodes;
417
+ /**
418
+ * The derived check state of a parent: `true` when all of its check-state children are checked,
419
+ * or `null` when it has none (its own state then stands).
420
+ */
421
+ private deriveParentChecked;
422
+ /**
423
+ * Children that determine a parent's derived check state: those with a checkbox and, unless
424
+ * `checkDisabledChildren` is set, only enabled ones, because the user cannot change disabled children.
425
+ */
426
+ private getCheckStateChildren;
427
+ private getChildNodes;
428
+ private getDataItemSelectKey;
429
+ private getExpandKey;
430
+ private getParentNodes;
431
+ private getSelectKey;
432
+ private isAnyParentCollapsed;
433
+ private isFiltered;
434
+ /**
435
+ * Keeps `aria-activedescendant` on a rendered node: when the active node is hidden by a collapse or a filter, the
436
+ * nearest visible ancestor takes over (else the first visible node); a node re-created by new data with the same
437
+ * uid is swapped in.
438
+ */
439
+ private keepNavigatedNodeVisible;
440
+ private loadCheckedKeysForChildren;
441
+ /** Loads the children of the expanded, shown nodes whose children come from an observable and aren't loaded. */
442
+ private loadExpandedNodes;
443
+ private moveNodeAfter;
444
+ private moveNodeBefore;
445
+ private moveNodeInside;
446
+ private navigateToNextNode;
447
+ private navigateToPreviousNode;
448
+ private recalculateCheckedAncestors;
449
+ private restoreExpandedChildren;
450
+ private updateNodeIndices;
451
+ static ɵfac: i0.ɵɵFactoryDeclaration<TreeService<any>, never>;
452
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
479
453
  }
480
-
481
- declare class TreeComponent<T> {
482
- #private;
483
- protected readonly activeDescendantId: _angular_core.Signal<string | null>;
484
- protected readonly baseClass: _angular_core.Signal<string>;
485
- protected readonly isRtl: _angular_core.Signal<boolean>;
486
- protected readonly keyShortcuts: _angular_core.Signal<"Control+Shift+ArrowUp Control+Shift+ArrowDown Control+Shift+ArrowLeft Control+Shift+ArrowRight" | null>;
487
- protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaTreeViewMessages>;
488
- /**
489
- * With checkboxes, nodes report `aria-checked` and not `aria-selected`, so the tree isn't multiselectable in the
490
- * `aria-selected` sense.
491
- */
492
- protected readonly multiselectable: _angular_core.Signal<true | null>;
493
- readonly ariaDescribedBy: _angular_core.InputSignal<string>;
494
- readonly ariaLabel: _angular_core.InputSignal<string>;
495
- readonly ariaLabelledBy: _angular_core.InputSignal<string>;
496
- readonly data: _angular_core.InputSignal<Iterable<T> | undefined>;
497
- readonly nodeTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
498
- readonly treeService: TreeService<T>;
499
- constructor();
500
- /**
501
- * Once the tree has rendered after a keyboard move, finds out whether the `nodeDrop` handler applied it (through
502
- * `data` or `moveNode`). A move that was applied keeps the node active, opens the node it went into, and is
503
- * announced.
504
- */
505
- private afterKeyboardMove;
506
- /** Ctrl+Shift+Arrow (Cmd+Shift+Arrow on macOS) moves the active node while dragging is on. */
507
- private handleMoveKey;
508
- private handlePointerMoveWhileDragging;
509
- private isPointerOutsideTree;
510
- /**
511
- * Whether a key event is meant for the tree: from the tree itself or one of its nodes. Keys pressed in controls
512
- * of a node template (or in a tree nested in one) are left to those controls.
513
- */
514
- private isTreeKeyTarget;
515
- private locationOf;
516
- private moveDirection;
517
- /**
518
- * Asks for a keyboard move the way a drop does: `nodeDrop` is emitted, and its handler applies the move. The
519
- * keyboard event is the drop event's original event.
520
- */
521
- private moveWithKeyboard;
522
- private notifyDropPositionChange;
523
- private setFocusSubscription;
524
- private setKeydownSubscription;
525
- private setNodeDragHandlerSubscription;
526
- private setSubscriptions;
527
- private setTypeaheadSubscription;
528
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeComponent<any>, never>;
529
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<TreeComponent<any>, "mona-tree", never, { "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; }, {}, ["nodeTemplate"], never, true, never>;
454
+ export declare class TreeComponent<T> {
455
+ #private;
456
+ protected readonly activeDescendantId: import("@angular/core").Signal<string | null>;
457
+ protected readonly baseClass: import("@angular/core").Signal<string>;
458
+ protected readonly isRtl: import("@angular/core").Signal<boolean>;
459
+ protected readonly keyShortcuts: import("@angular/core").Signal<"Control+Shift+ArrowUp Control+Shift+ArrowDown Control+Shift+ArrowLeft Control+Shift+ArrowRight" | null>;
460
+ protected readonly messages: import("@angular/core").Signal<import("@nanahoshi/mona-ui/i18n").MonaTreeViewMessages>;
461
+ /**
462
+ * With checkboxes, nodes report `aria-checked` and not `aria-selected`, so the tree isn't multiselectable in the
463
+ * `aria-selected` sense.
464
+ */
465
+ protected readonly multiselectable: import("@angular/core").Signal<true | null>;
466
+ readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
467
+ readonly ariaLabel: import("@angular/core").InputSignal<string>;
468
+ readonly ariaLabelledBy: import("@angular/core").InputSignal<string>;
469
+ readonly data: import("@angular/core").InputSignal<Iterable<T> | undefined>;
470
+ readonly nodeTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
471
+ readonly treeService: TreeService<T>;
472
+ constructor();
473
+ /**
474
+ * Once the tree has rendered after a keyboard move, finds out whether the `nodeDrop` handler applied it (through
475
+ * `data` or `moveNode`). A move that was applied keeps the node active, opens the node it went into, and is
476
+ * announced.
477
+ */
478
+ private afterKeyboardMove;
479
+ /** Ctrl+Shift+Arrow (Cmd+Shift+Arrow on macOS) moves the active node while dragging is on. */
480
+ private handleMoveKey;
481
+ private handlePointerMoveWhileDragging;
482
+ private isPointerOutsideTree;
483
+ /**
484
+ * Whether a key event is meant for the tree: from the tree itself or one of its nodes. Keys pressed in controls
485
+ * of a node template (or in a tree nested in one) are left to those controls.
486
+ */
487
+ private isTreeKeyTarget;
488
+ private locationOf;
489
+ private moveDirection;
490
+ /**
491
+ * Asks for a keyboard move the way a drop does: `nodeDrop` is emitted, and its handler applies the move. The
492
+ * keyboard event is the drop event's original event.
493
+ */
494
+ private moveWithKeyboard;
495
+ private notifyDropPositionChange;
496
+ private setFocusSubscription;
497
+ private setKeydownSubscription;
498
+ private setNodeDragHandlerSubscription;
499
+ private setSubscriptions;
500
+ private setTypeaheadSubscription;
501
+ static ɵfac: i0.ɵɵFactoryDeclaration<TreeComponent<any>, never>;
502
+ static ɵcmp: i0.ɵɵComponentDeclaration<TreeComponent<any>, "mona-tree", never, {
503
+ "ariaDescribedBy": {
504
+ "alias": "ariaDescribedBy";
505
+ "required": false;
506
+ "isSignal": true;
507
+ };
508
+ "ariaLabel": {
509
+ "alias": "ariaLabel";
510
+ "required": false;
511
+ "isSignal": true;
512
+ };
513
+ "ariaLabelledBy": {
514
+ "alias": "ariaLabelledBy";
515
+ "required": false;
516
+ "isSignal": true;
517
+ };
518
+ "data": {
519
+ "alias": "data";
520
+ "required": false;
521
+ "isSignal": true;
522
+ };
523
+ }, {}, ["nodeTemplate"], never, true, never>;
530
524
  }
531
-
532
- declare class TreeNodeTemplateDirective {
533
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeNodeTemplateDirective, never>;
534
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TreeNodeTemplateDirective, "ng-template[monaTreeNodeTemplate]", never, {}, {}, never, never, true, never>;
525
+ export declare class TreeNodeTemplateDirective {
526
+ static ɵfac: i0.ɵɵFactoryDeclaration<TreeNodeTemplateDirective, never>;
527
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TreeNodeTemplateDirective, "ng-template[monaTreeNodeTemplate]", never, {}, {}, never, never, true, never>;
535
528
  }
536
-
537
- declare const TREE_DEFAULT_MESSAGES: MonaTreeViewMessages;
538
-
529
+ export declare const TREE_DEFAULT_MESSAGES: MonaTreeViewMessages;
539
530
  /**
540
531
  * Reports that the children of a node couldn't be loaded from an asynchronous children selector. The node is
541
532
  * collapsed again, and expanding it retries the load.
542
533
  */
543
534
  interface ChildrenLoadErrorEvent<T> {
544
- /** What the children observable errored with. */
545
- readonly error: unknown;
546
- /** The node whose children failed to load. */
547
- readonly node: NodeItem<T>;
535
+ /** What the children observable errored with. */
536
+ readonly error: unknown;
537
+ /** The node whose children failed to load. */
538
+ readonly node: NodeItem<T>;
548
539
  }
549
-
550
540
  /**
551
541
  * Moves a node within a generic flat tree structure that uses parentId references.
552
542
  * @param treeData - The flat array of tree nodes.
@@ -557,8 +547,7 @@ interface ChildrenLoadErrorEvent<T> {
557
547
  * The array is returned unchanged when the position is "outside" or the target is the dragged node or one of its
558
548
  * descendants, which would otherwise create a parent cycle.
559
549
  */
560
- declare function moveFlatTreeNode<T extends object>(treeData: Iterable<T>, event: NodeDropEvent<T>, idKey: keyof T, parentIdKey: keyof T): T[];
561
-
550
+ export declare function moveFlatTreeNode<T extends object>(treeData: Iterable<T>, event: NodeDropEvent<T>, idKey: keyof T, parentIdKey: keyof T): T[];
562
551
  /**
563
552
  * Moves a node within a generic hierarchical tree structure.
564
553
  * @param treeData - The array of tree nodes.
@@ -570,7 +559,5 @@ declare function moveFlatTreeNode<T extends object>(treeData: Iterable<T>, event
570
559
  * The move is skipped, returning the tree unchanged, when the position is "outside", the target is missing,
571
560
  * or the target is the dragged node or one of its descendants, so a node is never lost or made its own ancestor.
572
561
  */
573
- declare function moveTreeNode<T extends object>(treeData: Iterable<T>, event: NodeDropEvent<T>, idKey: keyof T, childrenKey: keyof T): T[];
574
-
575
- export { InternalNodeDragEvent, NodeCheckEvent, NodeClickEvent, NodeDragEndEvent, NodeDragEvent, NodeDragStartEvent, NodeDropEvent, NodeDropEventSansTree, NodeEvent, NodeSelectEvent, TREE_DEFAULT_MESSAGES, TreeComponent, TreeNode, TreeNodeTemplateDirective, TreeService, moveFlatTreeNode, moveTreeNode };
576
- export type { CheckableOptions, ChildrenLoadErrorEvent, ChildrenSelector, DataStructure, DisableOptions, DraggableOptions, DropPosition, DropPositionChangeEvent, ExpandableOptions, ITreeView, MultipleSelectionConfig, NodeDropEventArgs, NodeDropEventArgsSansTree, NodeDropOriginalEvent, NodeItem, NodeKeySelector, NodeMoveSnapshot, SelectableOptions, SingleSelectionConfig, TreeKeyboardMove, TreeKeyboardMoveDirection, TreeNodeCheckEvent, TreeNodeExpandEvent, TreeNodeSelectEvent };
562
+ export declare function moveTreeNode<T extends object>(treeData: Iterable<T>, event: NodeDropEvent<T>, idKey: keyof T, childrenKey: keyof T): T[];
563
+ export type { ChildrenLoadErrorEvent, TreeKeyboardMove, TreeKeyboardMoveDirection };