@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,1177 +1,1391 @@
1
- import { DataType, PreventableEvent, VirtualScrollOptions } from '@nanahoshi/mona-ui/common';
2
- import * as _angular_core from '@angular/core';
3
- import { TemplateRef, WritableSignal, ElementRef } from '@angular/core';
4
- import { FieldTree, SchemaOrSchemaFn, ValidationError } from '@angular/forms/signals';
5
- import { SortDirection, CompositeFilterDescriptor, SortDescriptor, FilterOperators, FilterLogic } from '@nanahoshi/mona-ui/query';
6
- import { Selector, ImmutableDictionary, ImmutableList, ImmutableSet } from '@mirei/ts-collections';
7
- import * as _nanahoshi_mona_ui_i18n from '@nanahoshi/mona-ui/i18n';
8
- import { CdkDropList, CdkDragEnd, CdkDragEnter, CdkDragMove, CdkDragStart, CdkDragDrop } from '@angular/cdk/drag-drop';
9
- import { PageChangeEvent } from '@nanahoshi/mona-ui/pager';
10
- import { FilterMenuValue } from '@nanahoshi/mona-ui/filter';
11
- import * as rxjs from 'rxjs';
12
- import { Subject, BehaviorSubject } from 'rxjs';
13
- import { PopupMenuItem } from '@nanahoshi/mona-ui/popup-menu';
14
- import * as class_variance_authority_types from 'class-variance-authority/types';
15
- import { VariantInputs } from '@nanahoshi/mona-ui/internal';
16
- import { VariantProps } from 'class-variance-authority';
17
-
1
+ import { DataType, PreventableEvent, VirtualScrollOptions } from "@nanahoshi/mona-ui/common";
2
+ import * as i0 from "@angular/core";
3
+ import { ElementRef, TemplateRef, WritableSignal } from "@angular/core";
4
+ import { FieldTree, SchemaOrSchemaFn, ValidationError } from "@angular/forms/signals";
5
+ import { CompositeFilterDescriptor, FilterLogic, FilterOperators, SortDescriptor, SortDirection } from "@nanahoshi/mona-ui/query";
6
+ import { ImmutableDictionary, ImmutableList, ImmutableSet, Selector } from "@mirei/ts-collections";
7
+ import { CdkDragDrop, CdkDragEnd, CdkDragEnter, CdkDragMove, CdkDragStart, CdkDropList } from "@angular/cdk/drag-drop";
8
+ import { PageChangeEvent } from "@nanahoshi/mona-ui/pager";
9
+ import { FilterMenuValue } from "@nanahoshi/mona-ui/filter";
10
+ import { PopupMenuItem } from "@nanahoshi/mona-ui/popup-menu";
11
+ import { BehaviorSubject, Subject } from "rxjs";
12
+ import { VariantInputs } from "@nanahoshi/mona-ui/internal";
13
+ import { VariantProps } from "class-variance-authority";
18
14
  type AggregateFunction = "sum" | "avg" | "count" | "min" | "max" | "custom";
19
-
20
15
  type GridColumnLockedPosition = "left" | "right";
21
-
22
16
  type ColumnKind = "command" | "data";
23
17
  /**
24
18
  * Formats a cell's value for display. Written in method form so a formatter typed for the column's own
25
19
  * value (`(value: number) => string`) is accepted.
26
20
  */
27
21
  type ColumnFormatFunction = {
28
- format(value: unknown, row: Record<PropertyKey, unknown>, column: Column): string;
22
+ format(value: unknown, row: Record<PropertyKey, unknown>, column: Column): string;
29
23
  }["format"];
30
24
  /** A date format string, for `date` columns, or a formatter function, for any column. */
31
25
  type ColumnFormat = string | ColumnFormatFunction;
32
26
  /** Compares two cell values for sorting: negative, zero or positive, as for `Array.prototype.sort`. */
33
27
  type ColumnSortComparator = {
34
- compare(left: unknown, right: unknown): number;
28
+ compare(left: unknown, right: unknown): number;
35
29
  }["compare"];
36
30
  interface ColumnConfig {
37
- /** The aggregate shown in the grid footer for this column, or `null` for none. */
38
- readonly aggregate: AggregateFunction | null;
39
- /** The column's `monaGridCellTemplate`, which renders its body cells, or `null` for the default text. */
40
- readonly cellTemplate: TemplateRef<unknown> | null;
41
- /** A command column's `monaGridCellTemplate`, which replaces the built-in command buttons, or `null`. */
42
- readonly commandTemplate: TemplateRef<unknown> | null;
43
- /**
44
- * The `editable` input as the consumer set it; `null` leaves it to the default, which is every column but
45
- * the `rowKey` field. Left out, `editable` is used as given.
46
- */
47
- readonly configuredEditable?: boolean | null;
48
- /** The column's data type, which picks the editor and the filter. Command columns use `"string"`. */
49
- readonly dataType: DataType;
50
- /**
51
- * The column's `monaGridEditTemplate`, which renders the cell editor, or `null` for the editor of its data type.
52
- */
53
- readonly editTemplate: TemplateRef<unknown> | null;
54
- /** Whether the column can be edited. The grid resolves it from {@link configuredEditable} when that is set. */
55
- readonly editable: boolean;
56
- /** The data property the column shows. A command column uses its `stateKey`, or `"commands"`. */
57
- readonly field: string;
58
- /** Whether the column can be filtered when the grid's filtering is enabled. */
59
- readonly filterable: boolean;
60
- /** The column's `monaGridFooterTemplate`, which renders its footer cell, or `null`. */
61
- readonly footerTemplate: TemplateRef<unknown> | null;
62
- /** How cell values are formatted for display, or `null` to show them as they are. */
63
- readonly format: ColumnFormat | null;
64
- /** The column's `monaGridGroupFooterTemplate`, which renders its cell in group footer rows, or `null`. */
65
- readonly groupFooterTemplate: TemplateRef<unknown> | null;
66
- /**
67
- * The column's `monaGridHeaderTemplate`, which replaces the whole header content and receives the column, or
68
- * `null`.
69
- */
70
- readonly headerTemplate: TemplateRef<unknown> | null;
71
- /** The column's `hidden` input as set. */
72
- readonly hidden: boolean;
73
- /** A unique id generated for the column. */
74
- readonly id: string;
75
- /** `"data"` for a `mona-grid-column`, `"command"` for a `mona-grid-command-column`. */
76
- readonly kind: ColumnKind;
77
- /** Whether the column stays fixed while the grid scrolls horizontally. */
78
- readonly locked: boolean;
79
- /** The side of the grid a locked column is fixed to. */
80
- readonly lockedPosition: GridColumnLockedPosition;
81
- /** The column's maximum width in pixels, or `null` for no maximum. */
82
- readonly maxWidth: number | null;
83
- /** The column's minimum width in pixels, or `null` for no minimum. */
84
- readonly minWidth: number | null;
85
- /**
86
- * Whether the built-in remove command asks for confirmation before emitting `remove`. Only command columns set it.
87
- */
88
- readonly removeConfirmation: boolean;
89
- /** Compares values when the user sorts this column; without it values sort by type, strings by locale. */
90
- readonly sortComparator?: ColumnSortComparator | null;
91
- /** Whether the column can be sorted from its header when the grid's sorting is enabled. */
92
- readonly sortable: boolean;
93
- /** The key the column's saved state is stored under, or `null` to use `field`. */
94
- readonly stateKey: string | null;
95
- /** The text shown in the column header. */
96
- readonly title: string;
97
- /**
98
- * The column's `monaGridColumnTitleTemplate`, shown in the header in place of `title` when there is no header
99
- * template, or `null`.
100
- */
101
- readonly titleTemplate: TemplateRef<unknown> | null;
102
- /** The column's configured width in pixels, or `null` to size it automatically. */
103
- readonly width: number | null;
31
+ /** The aggregate shown in the grid footer for this column, or `null` for none. */
32
+ readonly aggregate: AggregateFunction | null;
33
+ /** The column's `monaGridCellTemplate`, which renders its body cells, or `null` for the default text. */
34
+ readonly cellTemplate: TemplateRef<unknown> | null;
35
+ /** A command column's `monaGridCellTemplate`, which replaces the built-in command buttons, or `null`. */
36
+ readonly commandTemplate: TemplateRef<unknown> | null;
37
+ /**
38
+ * The `editable` input as the consumer set it; `null` leaves it to the default, which is every column but
39
+ * the `rowKey` field. Left out, `editable` is used as given.
40
+ */
41
+ readonly configuredEditable?: boolean | null;
42
+ /** The column's data type, which picks the editor and the filter. Command columns use `"string"`. */
43
+ readonly dataType: DataType;
44
+ /**
45
+ * The column's `monaGridEditTemplate`, which renders the cell editor, or `null` for the editor of its data type.
46
+ */
47
+ readonly editTemplate: TemplateRef<unknown> | null;
48
+ /** Whether the column can be edited. The grid resolves it from {@link configuredEditable} when that is set. */
49
+ readonly editable: boolean;
50
+ /** The data property the column shows. A command column uses its `stateKey`, or `"commands"`. */
51
+ readonly field: string;
52
+ /** Whether the column can be filtered when the grid's filtering is enabled. */
53
+ readonly filterable: boolean;
54
+ /** The column's `monaGridFooterTemplate`, which renders its footer cell, or `null`. */
55
+ readonly footerTemplate: TemplateRef<unknown> | null;
56
+ /** How cell values are formatted for display, or `null` to show them as they are. */
57
+ readonly format: ColumnFormat | null;
58
+ /** The column's `monaGridGroupFooterTemplate`, which renders its cell in group footer rows, or `null`. */
59
+ readonly groupFooterTemplate: TemplateRef<unknown> | null;
60
+ /**
61
+ * The column's `monaGridHeaderTemplate`, which replaces the whole header content and receives the column, or
62
+ * `null`.
63
+ */
64
+ readonly headerTemplate: TemplateRef<unknown> | null;
65
+ /** The column's `hidden` input as set. */
66
+ readonly hidden: boolean;
67
+ /** A unique id generated for the column. */
68
+ readonly id: string;
69
+ /** `"data"` for a `mona-grid-column`, `"command"` for a `mona-grid-command-column`. */
70
+ readonly kind: ColumnKind;
71
+ /** Whether the column stays fixed while the grid scrolls horizontally. */
72
+ readonly locked: boolean;
73
+ /** The side of the grid a locked column is fixed to. */
74
+ readonly lockedPosition: GridColumnLockedPosition;
75
+ /** The column's maximum width in pixels, or `null` for no maximum. */
76
+ readonly maxWidth: number | null;
77
+ /** The column's minimum width in pixels, or `null` for no minimum. */
78
+ readonly minWidth: number | null;
79
+ /**
80
+ * Whether the built-in remove command asks for confirmation before emitting `remove`. Only command columns set it.
81
+ */
82
+ readonly removeConfirmation: boolean;
83
+ /** Compares values when the user sorts this column; without it values sort by type, strings by locale. */
84
+ readonly sortComparator?: ColumnSortComparator | null;
85
+ /** Whether the column can be sorted from its header when the grid's sorting is enabled. */
86
+ readonly sortable: boolean;
87
+ /** The key the column's saved state is stored under, or `null` to use `field`. */
88
+ readonly stateKey: string | null;
89
+ /** The text shown in the column header. */
90
+ readonly title: string;
91
+ /**
92
+ * The column's `monaGridColumnTitleTemplate`, shown in the header in place of `title` when there is no header
93
+ * template, or `null`.
94
+ */
95
+ readonly titleTemplate: TemplateRef<unknown> | null;
96
+ /** The column's configured width in pixels, or `null` to size it automatically. */
97
+ readonly width: number | null;
104
98
  }
105
99
  /**
106
100
  * Set `locked` and `lockedPosition` on a `mona-grid-column` (or `mona-grid-command-column`) to keep it fixed while the
107
101
  * grid scrolls horizontally.
108
102
  */
109
103
  interface Column extends ColumnConfig {
110
- /** The column's currently rendered width. */
111
- readonly calculatedWidth: number | null;
112
- /** The direction the grid is currently sorted by this column, or `null` when it isn't. */
113
- readonly columnSortDirection: SortDirection | null;
114
- /** Whether a filter is currently applied to this column. */
115
- readonly filtered: boolean;
116
- /** The sort direction of the grid's grouping by this column, or `null` when the grid isn't grouped by it. */
117
- readonly groupSortDirection: SortDirection | null;
118
- /** Whether the column is hidden. */
119
- readonly hidden: boolean;
120
- /** The column's one-based position among the grid's sorted columns, or `null` when it isn't sorted. */
121
- readonly sortIndex: number | null;
122
- }
123
-
104
+ /** The column's currently rendered width. */
105
+ readonly calculatedWidth: number | null;
106
+ /** The direction the grid is currently sorted by this column, or `null` when it isn't. */
107
+ readonly columnSortDirection: SortDirection | null;
108
+ /** Whether a filter is currently applied to this column. */
109
+ readonly filtered: boolean;
110
+ /** The sort direction of the grid's grouping by this column, or `null` when the grid isn't grouped by it. */
111
+ readonly groupSortDirection: SortDirection | null;
112
+ /** Whether the column is hidden. */
113
+ readonly hidden: boolean;
114
+ /** The column's one-based position among the grid's sorted columns, or `null` when it isn't sorted. */
115
+ readonly sortIndex: number | null;
116
+ }
124
117
  type GridEditOperation = "create" | "update";
125
-
126
118
  /** A row of the grid, wrapping its data item. */
127
119
  declare class Row {
128
- readonly data: Record<PropertyKey, unknown>;
129
- readonly uid: string;
130
- constructor(data: Record<PropertyKey, unknown>, uid?: string);
120
+ readonly data: Record<PropertyKey, unknown>;
121
+ readonly uid: string;
122
+ constructor(data: Record<PropertyKey, unknown>, uid?: string);
131
123
  }
132
-
133
124
  interface GridEditSession {
134
- /** The column currently being edited, in cell mode. */
135
- readonly column: Column | null;
136
- /** The field name currently being edited, in cell mode. */
137
- readonly field: string | null;
138
- /** The Signal Forms field tree backing the row being edited. */
139
- readonly form: FieldTree<Record<PropertyKey, unknown>>;
140
- /** Whether this session represents a new row being added. */
141
- readonly isNew: boolean;
142
- /** The active editing mode. */
143
- readonly mode: "cell" | "row";
144
- /** The signal holding the row's current edited values. */
145
- readonly model: WritableSignal<Record<PropertyKey, unknown>>;
146
- /** `"create"` or `"update"`. */
147
- readonly operation: GridEditOperation;
148
- /** The row's data before editing began. */
149
- readonly originalRowData: Record<PropertyKey, unknown> | null;
150
- /** The internal row wrapper being edited. */
151
- readonly row: Row | null;
152
- /** The stable identifier of the row being edited. */
153
- readonly rowUid: string | null;
154
- }
155
-
156
- declare class CellEditEvent extends PreventableEvent {
157
- #private;
158
- constructor(options: CellEditEventOptions);
159
- get field(): string;
160
- get newValue(): unknown;
161
- get oldValue(): unknown;
162
- get rowData(): Record<PropertyKey, unknown>;
163
- get session(): GridEditSession;
125
+ /** The column currently being edited, in cell mode. */
126
+ readonly column: Column | null;
127
+ /** The field name currently being edited, in cell mode. */
128
+ readonly field: string | null;
129
+ /** The Signal Forms field tree backing the row being edited. */
130
+ readonly form: FieldTree<Record<PropertyKey, unknown>>;
131
+ /** Whether this session represents a new row being added. */
132
+ readonly isNew: boolean;
133
+ /** The active editing mode. */
134
+ readonly mode: "cell" | "row";
135
+ /** The signal holding the row's current edited values. */
136
+ readonly model: WritableSignal<Record<PropertyKey, unknown>>;
137
+ /** `"create"` or `"update"`. */
138
+ readonly operation: GridEditOperation;
139
+ /** The row's data before editing began. */
140
+ readonly originalRowData: Record<PropertyKey, unknown> | null;
141
+ /** The internal row wrapper being edited. */
142
+ readonly row: Row | null;
143
+ /** The stable identifier of the row being edited. */
144
+ readonly rowUid: string | null;
145
+ }
146
+ export declare class CellEditEvent extends PreventableEvent {
147
+ #private;
148
+ constructor(options: CellEditEventOptions);
149
+ get field(): string;
150
+ get newValue(): unknown;
151
+ get oldValue(): unknown;
152
+ get rowData(): Record<PropertyKey, unknown>;
153
+ get session(): GridEditSession;
164
154
  }
165
155
  interface CellEditEventOptions {
166
- field: string;
167
- newValue: unknown;
168
- oldValue: unknown;
169
- rowData: Record<PropertyKey, unknown>;
170
- session: GridEditSession;
156
+ field: string;
157
+ newValue: unknown;
158
+ oldValue: unknown;
159
+ rowData: Record<PropertyKey, unknown>;
160
+ session: GridEditSession;
171
161
  }
172
-
173
162
  /** The field holding a row's key, or a function returning it. */
174
163
  type GridKeySelector<TData, TKey = unknown> = string | Selector<TData, TKey> | null;
175
-
176
- declare class RowEditEvent extends PreventableEvent {
177
- #private;
178
- constructor(options: RowEditEventOptions);
179
- get rowData(): Record<PropertyKey, unknown>;
180
- get originalRowData(): Record<PropertyKey, unknown> | null;
181
- get session(): GridEditSession;
164
+ export declare class RowEditEvent extends PreventableEvent {
165
+ #private;
166
+ constructor(options: RowEditEventOptions);
167
+ get rowData(): Record<PropertyKey, unknown>;
168
+ get originalRowData(): Record<PropertyKey, unknown> | null;
169
+ get session(): GridEditSession;
182
170
  }
183
171
  interface RowEditEventOptions {
184
- originalRowData?: Record<PropertyKey, unknown> | null;
185
- rowData: Record<PropertyKey, unknown>;
186
- session: GridEditSession;
172
+ originalRowData?: Record<PropertyKey, unknown> | null;
173
+ rowData: Record<PropertyKey, unknown>;
174
+ session: GridEditSession;
187
175
  }
188
-
189
- declare class GridAddEvent extends PreventableEvent {
190
- #private;
191
- constructor(options: GridAddEventOptions);
192
- get rowData(): Record<PropertyKey, unknown>;
193
- get session(): GridEditSession;
176
+ export declare class GridAddEvent extends PreventableEvent {
177
+ #private;
178
+ constructor(options: GridAddEventOptions);
179
+ get rowData(): Record<PropertyKey, unknown>;
180
+ get session(): GridEditSession;
194
181
  }
195
182
  interface GridAddEventOptions {
196
- originalEvent?: Event;
197
- rowData: Record<PropertyKey, unknown>;
198
- session: GridEditSession;
183
+ originalEvent?: Event;
184
+ rowData: Record<PropertyKey, unknown>;
185
+ session: GridEditSession;
199
186
  }
200
-
201
187
  type GridSaveOperation = GridEditOperation;
202
188
  /** `T` is the row type, which a typed `schema` or `newRowFactory` on `monaGridEditable` sets. */
203
- declare class GridSaveEvent<T extends object = Record<PropertyKey, unknown>> extends PreventableEvent {
204
- #private;
205
- constructor(options: GridSaveEventOptions<T>);
206
- get operation(): GridSaveOperation;
207
- get originalRowData(): T | null;
208
- get rowData(): T;
209
- get session(): GridEditSession;
189
+ export declare class GridSaveEvent<T extends object = Record<PropertyKey, unknown>> extends PreventableEvent {
190
+ #private;
191
+ constructor(options: GridSaveEventOptions<T>);
192
+ get operation(): GridSaveOperation;
193
+ get originalRowData(): T | null;
194
+ get rowData(): T;
195
+ get session(): GridEditSession;
210
196
  }
211
197
  interface GridSaveEventOptions<T extends object = Record<PropertyKey, unknown>> {
212
- operation: GridSaveOperation;
213
- originalEvent?: Event;
214
- originalRowData?: T | null;
215
- rowData: T;
216
- session: GridEditSession;
198
+ operation: GridSaveOperation;
199
+ originalEvent?: Event;
200
+ originalRowData?: T | null;
201
+ rowData: T;
202
+ session: GridEditSession;
217
203
  }
218
-
219
204
  /**
220
205
  * Why an edit is being canceled: `"command"` for the Cancel button or `cancel()` in a template, `"escape"` for
221
206
  * the Escape key, `"switch"` when another edit or the add row starts, `"removed"` when the edited row left the
222
207
  * data or the view. A `"removed"` cancel can't be prevented: the row is gone.
223
208
  */
224
209
  type GridCancelReason = "command" | "escape" | "removed" | "switch";
225
- declare class GridCancelEvent extends PreventableEvent {
226
- #private;
227
- constructor(options: GridCancelEventOptions);
228
- get operation(): GridSaveOperation;
229
- get reason(): GridCancelReason;
230
- get rowData(): Record<PropertyKey, unknown>;
231
- get session(): GridEditSession;
210
+ export declare class GridCancelEvent extends PreventableEvent {
211
+ #private;
212
+ constructor(options: GridCancelEventOptions);
213
+ get operation(): GridSaveOperation;
214
+ get reason(): GridCancelReason;
215
+ get rowData(): Record<PropertyKey, unknown>;
216
+ get session(): GridEditSession;
232
217
  }
233
218
  interface GridCancelEventOptions {
234
- operation: GridSaveOperation;
235
- originalEvent?: Event;
236
- reason?: GridCancelReason;
237
- rowData: Record<PropertyKey, unknown>;
238
- session: GridEditSession;
219
+ operation: GridSaveOperation;
220
+ originalEvent?: Event;
221
+ reason?: GridCancelReason;
222
+ rowData: Record<PropertyKey, unknown>;
223
+ session: GridEditSession;
239
224
  }
240
-
241
225
  /** What a schema factory is told about the edit. `T` is the row type, untyped unless you give one. */
242
226
  interface GridEditFormContext<T extends object = Record<PropertyKey, unknown>> {
243
- readonly column: Column | null;
244
- readonly field: string | null;
245
- readonly isNew: boolean;
246
- readonly mode: "cell" | "row";
247
- readonly operation: GridEditOperation;
248
- readonly originalRowData: T | null;
249
- readonly rowData: T;
227
+ readonly column: Column | null;
228
+ readonly field: string | null;
229
+ readonly isNew: boolean;
230
+ readonly mode: "cell" | "row";
231
+ readonly operation: GridEditOperation;
232
+ readonly originalRowData: T | null;
233
+ readonly rowData: T;
250
234
  }
251
235
  /** Builds the Signal Forms schema for the row being edited. `T` is the row type, untyped unless you give one. */
252
236
  type GridEditSchemaFactory<T extends object = Record<PropertyKey, unknown>> = (context: GridEditFormContext<T>) => SchemaOrSchemaFn<T> | null | undefined;
253
-
254
- declare class GridEditEvent extends PreventableEvent {
255
- #private;
256
- constructor(options: GridEditEventOptions);
257
- get rowData(): Record<PropertyKey, unknown>;
258
- get session(): GridEditSession;
237
+ export declare class GridEditEvent extends PreventableEvent {
238
+ #private;
239
+ constructor(options: GridEditEventOptions);
240
+ get rowData(): Record<PropertyKey, unknown>;
241
+ get session(): GridEditSession;
259
242
  }
260
243
  interface GridEditEventOptions {
261
- originalEvent?: Event;
262
- rowData: Record<PropertyKey, unknown>;
263
- session: GridEditSession;
244
+ originalEvent?: Event;
245
+ rowData: Record<PropertyKey, unknown>;
246
+ session: GridEditSession;
264
247
  }
265
-
266
248
  interface GridEditTemplateContext {
267
- /** Cancels the current edit. */
268
- readonly cancel: () => void;
269
- /** The field name of the column being edited. */
270
- readonly column: string;
271
- /** Commits the current edit. */
272
- readonly commit: () => void;
273
- /** Same as `column`; the field name being edited. */
274
- readonly dataField: string;
275
- /** The row's current edited values. */
276
- readonly dataItem: Record<PropertyKey, unknown>;
277
- /** Validation errors for this field. */
278
- readonly errors: readonly ValidationError.WithFieldTree[];
279
- /** The Signal Forms field for this column. */
280
- readonly field: FieldTree<unknown>;
281
- /** The row's full Signal Forms field tree. */
282
- readonly form: GridEditSession["form"];
283
- /** Whether this field currently fails validation. */
284
- readonly invalid: boolean;
285
- /** Whether this is a new row being added. */
286
- readonly isNew: boolean;
287
- /** The full edit session for this row. */
288
- readonly session: GridEditSession;
289
- /** Sets this field's value. */
290
- readonly setValue: (value: unknown) => void;
291
- /** Whether this field has been touched. */
292
- readonly touched: boolean;
293
- /** This field's current value. */
294
- readonly value: unknown;
295
- }
296
-
297
- declare class GridRemoveEvent extends PreventableEvent {
298
- #private;
299
- constructor(options: GridRemoveEventOptions);
300
- /** The row's position in the grid's `data`, or -1 when it is no longer there. */
301
- get index(): number;
302
- /** The row's `rowKey` value, or the data item when the grid has no `rowKey`. */
303
- get key(): unknown;
304
- /** The data item of the row being removed. */
305
- get rowData(): Record<PropertyKey, unknown>;
249
+ /** Cancels the current edit. */
250
+ readonly cancel: () => void;
251
+ /** The field name of the column being edited. */
252
+ readonly column: string;
253
+ /** Commits the current edit. */
254
+ readonly commit: () => void;
255
+ /** Same as `column`; the field name being edited. */
256
+ readonly dataField: string;
257
+ /** The row's current edited values. */
258
+ readonly dataItem: Record<PropertyKey, unknown>;
259
+ /** Validation errors for this field. */
260
+ readonly errors: readonly ValidationError.WithFieldTree[];
261
+ /** The Signal Forms field for this column. */
262
+ readonly field: FieldTree<unknown>;
263
+ /** The row's full Signal Forms field tree. */
264
+ readonly form: GridEditSession["form"];
265
+ /** Whether this field currently fails validation. */
266
+ readonly invalid: boolean;
267
+ /** Whether this is a new row being added. */
268
+ readonly isNew: boolean;
269
+ /** The full edit session for this row. */
270
+ readonly session: GridEditSession;
271
+ /** Sets this field's value. */
272
+ readonly setValue: (value: unknown) => void;
273
+ /** Whether this field has been touched. */
274
+ readonly touched: boolean;
275
+ /** This field's current value. */
276
+ readonly value: unknown;
277
+ }
278
+ export declare class GridRemoveEvent extends PreventableEvent {
279
+ #private;
280
+ constructor(options: GridRemoveEventOptions);
281
+ /** The row's position in the grid's `data`, or -1 when it is no longer there. */
282
+ get index(): number;
283
+ /** The row's `rowKey` value, or the data item when the grid has no `rowKey`. */
284
+ get key(): unknown;
285
+ /** The data item of the row being removed. */
286
+ get rowData(): Record<PropertyKey, unknown>;
306
287
  }
307
288
  interface GridRemoveEventOptions {
308
- index?: number;
309
- key?: unknown;
310
- originalEvent?: Event;
311
- rowData: Record<PropertyKey, unknown>;
312
- }
313
-
314
- interface SelectableOptions {
315
- /**
316
- * Enables row selection.
317
- */
318
- enabled?: boolean;
319
- /**
320
- * Controls whether one or multiple rows can be selected.
321
- *
322
- * @default "single"
323
- */
324
- mode?: "single" | "multiple";
325
- /**
326
- * Derives the accessible label for a row's selection checkbox from its data.
327
- *
328
- * When omitted, the checkbox falls back to a positional label (e.g. "Select row 3").
329
- */
330
- rowAriaLabel?: (rowData: Record<PropertyKey, unknown>) => string;
331
- /**
332
- * Determines which rows are affected by the header checkbox.
333
- *
334
- * - "page": rows on the current paginated page
335
- * - "view": all rows in the current filtered and sorted view
336
- *
337
- * For virtual scrolling, "page" resolves to the complete current view
338
- * because virtual scrolling does not have logical pages.
339
- *
340
- * @default "page"
341
- */
342
- selectAllScope?: "page" | "view";
343
- /**
344
- * Whether clicking the row itself changes selection.
345
- *
346
- * Off by default so that clicking a row to interact with its content (a link, a button,
347
- * an editable cell) never silently discards the current selection. Set this to true to
348
- * also select rows via a plain click, in addition to checkboxes or application code.
349
- *
350
- * @default false
351
- */
352
- selectOnRowClick?: boolean;
353
- /**
354
- * Displays the built-in checkbox selection column.
355
- *
356
- * @default false
357
- */
358
- showCheckboxes?: boolean;
359
- /**
360
- * Displays a select-all checkbox in the selection-column header.
361
- *
362
- * Only applies to multiple-selection mode.
363
- *
364
- * @default true
365
- */
366
- showSelectAll?: boolean;
367
- }
368
-
369
- interface GroupDescriptor {
370
- dir?: SortDirection;
371
- field: string;
372
- }
373
-
374
- interface GroupableOptions {
375
- /** Whether grouping is active. */
376
- enabled: boolean;
377
- /** Whether a group's aggregate footer also shows while the group is collapsed; expanded groups always show it. */
378
- showFooter: boolean;
379
- }
380
-
381
- interface FilterableOptions {
382
- enabled: boolean;
383
- type: "menu" | "row" | "menu, row";
384
- }
385
-
289
+ index?: number;
290
+ key?: unknown;
291
+ originalEvent?: Event;
292
+ rowData: Record<PropertyKey, unknown>;
293
+ }
294
+ export interface SelectableOptions {
295
+ /**
296
+ * Enables row selection.
297
+ */
298
+ enabled?: boolean;
299
+ /**
300
+ * Controls whether one or multiple rows can be selected.
301
+ *
302
+ * @default "single"
303
+ */
304
+ mode?: "single" | "multiple";
305
+ /**
306
+ * Derives the accessible label for a row's selection checkbox from its data.
307
+ *
308
+ * When omitted, the checkbox falls back to a positional label (e.g. "Select row 3").
309
+ */
310
+ rowAriaLabel?: (rowData: Record<PropertyKey, unknown>) => string;
311
+ /**
312
+ * Determines which rows are affected by the header checkbox.
313
+ *
314
+ * - "page": rows on the current paginated page
315
+ * - "view": all rows in the current filtered and sorted view
316
+ *
317
+ * For virtual scrolling, "page" resolves to the complete current view
318
+ * because virtual scrolling does not have logical pages.
319
+ *
320
+ * @default "page"
321
+ */
322
+ selectAllScope?: "page" | "view";
323
+ /**
324
+ * Whether clicking the row itself changes selection.
325
+ *
326
+ * Off by default so that clicking a row to interact with its content (a link, a button,
327
+ * an editable cell) never silently discards the current selection. Set this to true to
328
+ * also select rows via a plain click, in addition to checkboxes or application code.
329
+ *
330
+ * @default false
331
+ */
332
+ selectOnRowClick?: boolean;
333
+ /**
334
+ * Displays the built-in checkbox selection column.
335
+ *
336
+ * @default false
337
+ */
338
+ showCheckboxes?: boolean;
339
+ /**
340
+ * Displays a select-all checkbox in the selection-column header.
341
+ *
342
+ * Only applies to multiple-selection mode.
343
+ *
344
+ * @default true
345
+ */
346
+ showSelectAll?: boolean;
347
+ }
348
+ export interface GroupDescriptor {
349
+ dir?: SortDirection;
350
+ field: string;
351
+ }
352
+ export interface GroupableOptions {
353
+ /** Whether grouping is active. */
354
+ enabled: boolean;
355
+ /** Whether a group's aggregate footer also shows while the group is collapsed; expanded groups always show it. */
356
+ showFooter: boolean;
357
+ }
358
+ export interface FilterableOptions {
359
+ enabled: boolean;
360
+ type: "menu" | "row" | "menu, row";
361
+ }
386
362
  /** The classes a {@link GridRowClass} function adds to a data row. Nullish values add nothing. */
387
363
  type GridRowClassValue = string | readonly string[] | null | undefined;
388
364
  /** Returns the classes to add to the data row that shows the given item. */
389
365
  type GridRowClass<TData> = (data: TData) => GridRowClassValue;
390
-
391
366
  /** The paging, sorting, and filtering requested by a server-bound Grid. */
392
367
  interface GridDataState {
393
- /** Applied composite filter descriptors. */
394
- readonly filter: readonly CompositeFilterDescriptor[];
395
- /** Requested zero-based offset. */
396
- readonly skip: number;
397
- /** Sort descriptors in priority order. */
398
- readonly sort: readonly SortDescriptor[];
399
- /** Requested page size. */
400
- readonly take: number;
401
- }
402
-
368
+ /** Applied composite filter descriptors. */
369
+ readonly filter: readonly CompositeFilterDescriptor[];
370
+ /** Requested zero-based offset. */
371
+ readonly skip: number;
372
+ /** Sort descriptors in priority order. */
373
+ readonly sort: readonly SortDescriptor[];
374
+ /** Requested page size. */
375
+ readonly take: number;
376
+ }
403
377
  /** The grid state and actions a toolbar template can use. */
404
378
  interface GridToolbarContext {
405
- /** The new row's values while a row is being added, otherwise `null`. */
406
- readonly addRowData: Record<PropertyKey, unknown> | null;
407
- /** Whether the add row is open. */
408
- readonly addRowVisible: boolean;
409
- /** Closes the add row without saving. Returns whether it closed. */
410
- cancelAdd(): boolean;
411
- /** Ends the current cell or row edit without saving. Returns whether an edit was cancelled. */
412
- cancelEdit(): boolean;
413
- /** The current paging, sorting and filtering. */
414
- readonly dataState: GridDataState;
415
- /** The current edit, or `null` when nothing is being edited. */
416
- readonly editSession: GridEditSession | null;
417
- /** Saves the add row. Returns whether it was saved. */
418
- saveAdd(): boolean;
419
- /** The selected row keys. */
420
- readonly selectedKeys: readonly unknown[];
421
- /** Opens the add row. Returns whether it opened. */
422
- startAdd(): boolean;
379
+ /** The new row's values while a row is being added, otherwise `null`. */
380
+ readonly addRowData: Record<PropertyKey, unknown> | null;
381
+ /** Whether the add row is open. */
382
+ readonly addRowVisible: boolean;
383
+ /** Closes the add row without saving. Returns whether it closed. */
384
+ cancelAdd(): boolean;
385
+ /** Ends the current cell or row edit without saving. Returns whether an edit was cancelled. */
386
+ cancelEdit(): boolean;
387
+ /** The current paging, sorting and filtering. */
388
+ readonly dataState: GridDataState;
389
+ /** The current edit, or `null` when nothing is being edited. */
390
+ readonly editSession: GridEditSession | null;
391
+ /** Saves the add row. Returns whether it was saved. */
392
+ saveAdd(): boolean;
393
+ /** The selected row keys. */
394
+ readonly selectedKeys: readonly unknown[];
395
+ /** Opens the add row. Returns whether it opened. */
396
+ startAdd(): boolean;
423
397
  }
424
398
  /** Context of `monaGridToolbarTemplate`: the toolbar state, also as `$implicit`. */
425
399
  interface GridToolbarTemplateContext extends GridToolbarContext {
426
- readonly $implicit: GridToolbarContext;
427
- }
428
-
429
- interface SortableOptions {
430
- /** Whether a third click on a sorted column clears its sort. */
431
- allowUnsort?: boolean;
432
- /** Whether sorting is active. On unless set to `false`; options replace earlier ones. */
433
- enabled?: boolean;
434
- /** Whether one or several columns can be sorted at once. */
435
- mode?: "single" | "multiple";
436
- /** Whether sort order indices are displayed on header cells. */
437
- showIndices?: boolean;
438
- }
439
-
440
- declare class GridCellTemplateDirective {
441
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridCellTemplateDirective, never>;
442
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridCellTemplateDirective, "ng-template[monaGridCellTemplate]", never, {}, {}, never, never, true, never>;
443
- }
444
-
445
- declare class GridAddCommandDirective {
446
- #private;
447
- protected onClick(event: Event): void;
448
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridAddCommandDirective, never>;
449
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridAddCommandDirective, "button[monaGridAddCommand]", never, {}, {}, never, never, true, never>;
450
- }
451
- declare class GridEditCommandDirective {
452
- #private;
453
- /**
454
- * @description The row the button puts into row edit mode when clicked, usually the command template's `row`.
455
- * Does nothing while `null` or when the grid isn't in row edit mode.
456
- */
457
- readonly row: _angular_core.InputSignal<Row | null>;
458
- protected onClick(event: Event): void;
459
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridEditCommandDirective, never>;
460
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridEditCommandDirective, "button[monaGridEditCommand]", never, { "row": { "alias": "monaGridEditCommand"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
461
- }
462
- declare class GridRemoveCommandDirective {
463
- #private;
464
- /**
465
- * @description The row the button removes when clicked, usually the command template's `row`. The click emits the
466
- * grid's `remove` event for that row. Inside a command column with `removeConfirmation`, it asks first, as the
467
- * built-in remove command does. Does nothing while `null`.
468
- */
469
- readonly row: _angular_core.InputSignal<Row | null>;
470
- protected onClick(event: Event): void;
471
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridRemoveCommandDirective, never>;
472
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridRemoveCommandDirective, "button[monaGridRemoveCommand]", never, { "row": { "alias": "monaGridRemoveCommand"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
473
- }
474
- declare class GridSaveCommandDirective {
475
- #private;
476
- protected onClick(event: Event): void;
477
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridSaveCommandDirective, never>;
478
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridSaveCommandDirective, "button[monaGridSaveCommand]", never, {}, {}, never, never, true, never>;
479
- }
480
- declare class GridCancelCommandDirective {
481
- #private;
482
- protected onClick(event: Event): void;
483
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridCancelCommandDirective, never>;
484
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridCancelCommandDirective, "button[monaGridCancelCommand]", never, {}, {}, never, never, true, never>;
485
- }
486
-
487
- declare class GridColumnTitleTemplateDirective {
488
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridColumnTitleTemplateDirective, never>;
489
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridColumnTitleTemplateDirective, "[monaGridColumnTitleTemplate]", never, {}, {}, never, never, true, never>;
490
- }
491
-
492
- declare class GridContextMenuDirective {
493
- #private;
494
- private readonly menuItemComponents;
495
- constructor();
496
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridContextMenuDirective, never>;
497
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridContextMenuDirective, "[monaGridContextMenu]", never, {}, {}, ["menuItemComponents"], never, true, never>;
498
- }
499
-
500
- declare class GridDetailTemplateDirective {
501
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridDetailTemplateDirective, never>;
502
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridDetailTemplateDirective, "ng-template[monaGridDetailTemplate]", never, {}, {}, never, never, true, never>;
503
- }
504
-
505
- declare class GridEditTemplateDirective {
506
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridEditTemplateDirective, never>;
507
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridEditTemplateDirective, "ng-template[monaGridEditTemplate]", never, {}, {}, never, never, true, never>;
508
- }
509
-
400
+ readonly $implicit: GridToolbarContext;
401
+ }
402
+ export interface SortableOptions {
403
+ /** Whether a third click on a sorted column clears its sort. */
404
+ allowUnsort?: boolean;
405
+ /** Whether sorting is active. On unless set to `false`; options replace earlier ones. */
406
+ enabled?: boolean;
407
+ /** Whether one or several columns can be sorted at once. */
408
+ mode?: "single" | "multiple";
409
+ /** Whether sort order indices are displayed on header cells. */
410
+ showIndices?: boolean;
411
+ }
412
+ export declare class GridCellTemplateDirective {
413
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridCellTemplateDirective, never>;
414
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GridCellTemplateDirective, "ng-template[monaGridCellTemplate]", never, {}, {}, never, never, true, never>;
415
+ }
416
+ export declare class GridAddCommandDirective {
417
+ #private;
418
+ protected onClick(event: Event): void;
419
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridAddCommandDirective, never>;
420
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GridAddCommandDirective, "button[monaGridAddCommand]", never, {}, {}, never, never, true, never>;
421
+ }
422
+ export declare class GridEditCommandDirective {
423
+ #private;
424
+ /**
425
+ * @description The row the button puts into row edit mode when clicked, usually the command template's `row`.
426
+ * Does nothing while `null` or when the grid isn't in row edit mode.
427
+ */
428
+ readonly row: import("@angular/core").InputSignal<Row | null>;
429
+ protected onClick(event: Event): void;
430
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridEditCommandDirective, never>;
431
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GridEditCommandDirective, "button[monaGridEditCommand]", never, {
432
+ "row": {
433
+ "alias": "monaGridEditCommand";
434
+ "required": false;
435
+ "isSignal": true;
436
+ };
437
+ }, {}, never, never, true, never>;
438
+ }
439
+ export declare class GridRemoveCommandDirective {
440
+ #private;
441
+ /**
442
+ * @description The row the button removes when clicked, usually the command template's `row`. The click emits the
443
+ * grid's `remove` event for that row. Inside a command column with `removeConfirmation`, it asks first, as the
444
+ * built-in remove command does. Does nothing while `null`.
445
+ */
446
+ readonly row: import("@angular/core").InputSignal<Row | null>;
447
+ protected onClick(event: Event): void;
448
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridRemoveCommandDirective, never>;
449
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GridRemoveCommandDirective, "button[monaGridRemoveCommand]", never, {
450
+ "row": {
451
+ "alias": "monaGridRemoveCommand";
452
+ "required": false;
453
+ "isSignal": true;
454
+ };
455
+ }, {}, never, never, true, never>;
456
+ }
457
+ export declare class GridSaveCommandDirective {
458
+ #private;
459
+ protected onClick(event: Event): void;
460
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridSaveCommandDirective, never>;
461
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GridSaveCommandDirective, "button[monaGridSaveCommand]", never, {}, {}, never, never, true, never>;
462
+ }
463
+ export declare class GridCancelCommandDirective {
464
+ #private;
465
+ protected onClick(event: Event): void;
466
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridCancelCommandDirective, never>;
467
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GridCancelCommandDirective, "button[monaGridCancelCommand]", never, {}, {}, never, never, true, never>;
468
+ }
469
+ export declare class GridColumnTitleTemplateDirective {
470
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridColumnTitleTemplateDirective, never>;
471
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GridColumnTitleTemplateDirective, "[monaGridColumnTitleTemplate]", never, {}, {}, never, never, true, never>;
472
+ }
473
+ export declare class GridContextMenuDirective {
474
+ #private;
475
+ private readonly menuItemComponents;
476
+ constructor();
477
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridContextMenuDirective, never>;
478
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GridContextMenuDirective, "[monaGridContextMenu]", never, {}, {}, ["menuItemComponents"], never, true, never>;
479
+ }
480
+ export declare class GridDetailTemplateDirective {
481
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridDetailTemplateDirective, never>;
482
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GridDetailTemplateDirective, "ng-template[monaGridDetailTemplate]", never, {}, {}, never, never, true, never>;
483
+ }
484
+ export declare class GridEditTemplateDirective {
485
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridEditTemplateDirective, never>;
486
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GridEditTemplateDirective, "ng-template[monaGridEditTemplate]", never, {}, {}, never, never, true, never>;
487
+ }
510
488
  /** A row command button: Edit, Remove, Save or Cancel. */
511
489
  type GridRowCommand = "cancel" | "edit" | "remove" | "save";
512
490
  /** `T` is the row type, which a typed `schema` sets. */
513
491
  interface EditableOptions<T extends object = Record<PropertyKey, unknown>> {
514
- /**
515
- * Returns the accessible name of a row's command button, such as "Edit order 10248". Without it the
516
- * buttons are named by position ("Edit row 3"). `absoluteIndex` is the row's 0-based position in the
517
- * filtered and sorted rows; the add row isn't passed here.
518
- */
519
- commandAriaLabel?: (command: GridRowCommand, rowData: Record<PropertyKey, unknown>, absoluteIndex: number) => string;
520
- /** Whether editing is active. On unless set to `false`; options replace earlier ones. */
521
- enabled?: boolean;
522
- /** Whether editing commits per cell or per row. */
523
- mode: "cell" | "row";
524
- /** Builds a Signal Forms validation schema for the row being edited. */
525
- schema?: GridEditSchemaFactory<T>;
526
- }
527
-
528
- declare class GridEditableDirective<T extends object = Record<PropertyKey, unknown>> {
529
- #private;
530
- /**
531
- * @description Emitted before the grid displays the new-row editor.
532
- */
533
- readonly add: _angular_core.OutputEmitterRef<GridAddEvent>;
534
- /**
535
- * @description Emitted before an edit operation is canceled; `reason` says why. Prevent it to keep editing,
536
- * except for `"removed"`, when the edited row left the data or the view.
537
- */
538
- readonly cancel: _angular_core.OutputEmitterRef<GridCancelEvent>;
539
- /**
540
- * @description Emitted before a changed cell is saved in cell mode; not when the value didn't change.
541
- * `rowData` is the row as it was; persist from `save`, whose `rowData` holds the edited values.
542
- */
543
- readonly cellEdit: _angular_core.OutputEmitterRef<CellEditEvent>;
544
- /**
545
- * @description Emitted before a row enters edit mode.
546
- */
547
- readonly edit: _angular_core.OutputEmitterRef<GridEditEvent>;
548
- /**
549
- * @description Creates the initial data object used by the add-row editor.
550
- */
551
- readonly newRowFactory: _angular_core.InputSignal<() => T>;
552
- /**
553
- * @description Enables inline editing. An empty string enables cell-mode editing with default settings; pass an
554
- * object to choose `"cell"` or `"row"` mode and an optional validation `schema`.
555
- */
556
- readonly options: _angular_core.InputSignal<"" | EditableOptions<T>>;
557
- /**
558
- * @description Emitted when a row remove command is triggered, with the row's `key` and `index`.
559
- */
560
- readonly remove: _angular_core.OutputEmitterRef<GridRemoveEvent>;
561
- /**
562
- * @description Emitted after a changed row is saved (row mode only).
563
- */
564
- readonly rowEdit: _angular_core.OutputEmitterRef<RowEditEvent>;
565
- /**
566
- * @description Emitted before an edited or new row is saved; not when an edit changed nothing. `rowData`
567
- * holds the edited values and `originalRowData` the row as it was. Prevent it to keep the editor open,
568
- * for example while saving on the server, then call `endEdit()`.
569
- */
570
- readonly save: _angular_core.OutputEmitterRef<GridSaveEvent<T>>;
571
- constructor();
572
- /**
573
- * Closes the current edit without reporting it, such as after a `save` that was prevented to save on the
574
- * server has finished.
575
- */
576
- endEdit(): void;
577
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridEditableDirective<any>, never>;
578
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridEditableDirective<any>, "mona-grid[monaGridEditable]", never, { "newRowFactory": { "alias": "newRowFactory"; "required": false; "isSignal": true; }; "options": { "alias": "monaGridEditable"; "required": false; "isSignal": true; }; }, { "add": "add"; "cancel": "cancel"; "cellEdit": "cellEdit"; "edit": "edit"; "remove": "remove"; "rowEdit": "rowEdit"; "save": "save"; }, never, never, true, never>;
579
- }
580
-
581
- declare class GridFilterableDirective {
582
- #private;
583
- /**
584
- * @description Current filter descriptors applied to the grid. Conditions on one field show in that column's
585
- * filter menu (repeated fields are combined with `and`); filters across fields, such as an `or` of two
586
- * columns, are still applied and reported. Conditions with an unknown operator are ignored. Supports
587
- * two-way binding.
588
- * @default []
589
- */
590
- readonly filter: _angular_core.ModelSignal<CompositeFilterDescriptor[]>;
591
- /**
592
- * @description Enables column filtering on the grid. Pass a `FilterableOptions` object to configure whether filters render in the header menu, a filter row, or both. Filtering is on unless the object sets `enabled: false`.
593
- * @default ""
594
- */
595
- readonly options: _angular_core.InputSignal<"" | Partial<FilterableOptions>>;
596
- constructor();
597
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridFilterableDirective, never>;
598
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridFilterableDirective, "mona-grid[monaGridFilterable]", never, { "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "options": { "alias": "monaGridFilterable"; "required": false; "isSignal": true; }; }, { "filter": "filterChange"; }, never, never, true, never>;
599
- }
600
-
601
- declare class GridFooterTemplateDirective {
602
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridFooterTemplateDirective, never>;
603
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridFooterTemplateDirective, "ng-template[monaGridFooterTemplate]", never, {}, {}, never, never, true, never>;
604
- }
605
-
606
- declare class GridGroupableDirective {
607
- #private;
608
- /**
609
- * @description Current group descriptors applied to the grid. A repeated field keeps its last descriptor;
610
- * a field without a column is grouped once its column appears. Supports two-way binding: `groupChange`
611
- * emits after the user groups, ungroups, reorders or re-sorts groups, and after a grid state is restored,
612
- * never for a value set here.
613
- * @default []
614
- */
615
- readonly group: _angular_core.ModelSignal<GroupDescriptor[]>;
616
- /**
617
- * @description Enables column grouping on the grid. Pass a `GroupableOptions` object to configure group footer display. Grouping is on unless the object sets `enabled: false`.
618
- */
619
- readonly options: _angular_core.InputSignal<"" | Partial<GroupableOptions> | undefined>;
620
- constructor();
621
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridGroupableDirective, never>;
622
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridGroupableDirective, "mona-grid[monaGridGroupable]", never, { "group": { "alias": "group"; "required": false; "isSignal": true; }; "options": { "alias": "monaGridGroupable"; "required": false; "isSignal": true; }; }, { "group": "groupChange"; }, never, never, true, never>;
623
- }
624
-
625
- declare class GridGroupFooterTemplateDirective {
626
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridGroupFooterTemplateDirective, never>;
627
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridGroupFooterTemplateDirective, "ng-template[monaGridGroupFooterTemplate]", never, {}, {}, never, never, true, never>;
628
- }
629
-
630
- declare class GridHeaderTemplateDirective {
631
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridHeaderTemplateDirective, never>;
632
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridHeaderTemplateDirective, "ng-template[monaGridHeaderTemplate]", never, {}, {}, never, never, true, never>;
633
- }
634
-
635
- declare class GridNoDataTemplateDirective {
636
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridNoDataTemplateDirective, never>;
637
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridNoDataTemplateDirective, "ng-template[monaGridNoDataTemplate]", never, {}, {}, never, never, true, never>;
638
- }
639
-
492
+ /**
493
+ * Returns the accessible name of a row's command button, such as "Edit order 10248". Without it the
494
+ * buttons are named by position ("Edit row 3"). `absoluteIndex` is the row's 0-based position in the
495
+ * filtered and sorted rows; the add row isn't passed here.
496
+ */
497
+ commandAriaLabel?: (command: GridRowCommand, rowData: Record<PropertyKey, unknown>, absoluteIndex: number) => string;
498
+ /** Whether editing is active. On unless set to `false`; options replace earlier ones. */
499
+ enabled?: boolean;
500
+ /** Whether editing commits per cell or per row. */
501
+ mode: "cell" | "row";
502
+ /** Builds a Signal Forms validation schema for the row being edited. */
503
+ schema?: GridEditSchemaFactory<T>;
504
+ }
505
+ export declare class GridEditableDirective<T extends object = Record<PropertyKey, unknown>> {
506
+ #private;
507
+ /**
508
+ * @description Emitted before the grid displays the new-row editor.
509
+ */
510
+ readonly add: import("@angular/core").OutputEmitterRef<GridAddEvent>;
511
+ /**
512
+ * @description Emitted before an edit operation is canceled; `reason` says why. Prevent it to keep editing,
513
+ * except for `"removed"`, when the edited row left the data or the view.
514
+ */
515
+ readonly cancel: import("@angular/core").OutputEmitterRef<GridCancelEvent>;
516
+ /**
517
+ * @description Emitted before a changed cell is saved in cell mode; not when the value didn't change.
518
+ * `rowData` is the row as it was; persist from `save`, whose `rowData` holds the edited values.
519
+ */
520
+ readonly cellEdit: import("@angular/core").OutputEmitterRef<CellEditEvent>;
521
+ /**
522
+ * @description Emitted before a row enters edit mode.
523
+ */
524
+ readonly edit: import("@angular/core").OutputEmitterRef<GridEditEvent>;
525
+ /**
526
+ * @description Creates the initial data object used by the add-row editor.
527
+ */
528
+ readonly newRowFactory: import("@angular/core").InputSignal<() => T>;
529
+ /**
530
+ * @description Enables inline editing. An empty string enables cell-mode editing with default settings; pass an
531
+ * object to choose `"cell"` or `"row"` mode and an optional validation `schema`.
532
+ */
533
+ readonly options: import("@angular/core").InputSignal<"" | EditableOptions<T>>;
534
+ /**
535
+ * @description Emitted when a row remove command is triggered, with the row's `key` and `index`.
536
+ */
537
+ readonly remove: import("@angular/core").OutputEmitterRef<GridRemoveEvent>;
538
+ /**
539
+ * @description Emitted after a changed row is saved (row mode only).
540
+ */
541
+ readonly rowEdit: import("@angular/core").OutputEmitterRef<RowEditEvent>;
542
+ /**
543
+ * @description Emitted before an edited or new row is saved; not when an edit changed nothing. `rowData`
544
+ * holds the edited values and `originalRowData` the row as it was. Prevent it to keep the editor open,
545
+ * for example while saving on the server, then call `endEdit()`.
546
+ */
547
+ readonly save: import("@angular/core").OutputEmitterRef<GridSaveEvent<T>>;
548
+ constructor();
549
+ /**
550
+ * Closes the current edit without reporting it, such as after a `save` that was prevented to save on the
551
+ * server has finished.
552
+ */
553
+ endEdit(): void;
554
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridEditableDirective<any>, never>;
555
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GridEditableDirective<any>, "mona-grid[monaGridEditable]", never, {
556
+ "newRowFactory": {
557
+ "alias": "newRowFactory";
558
+ "required": false;
559
+ "isSignal": true;
560
+ };
561
+ "options": {
562
+ "alias": "monaGridEditable";
563
+ "required": false;
564
+ "isSignal": true;
565
+ };
566
+ }, {
567
+ "add": "add";
568
+ "cancel": "cancel";
569
+ "cellEdit": "cellEdit";
570
+ "edit": "edit";
571
+ "remove": "remove";
572
+ "rowEdit": "rowEdit";
573
+ "save": "save";
574
+ }, never, never, true, never>;
575
+ }
576
+ export declare class GridFilterableDirective {
577
+ #private;
578
+ /**
579
+ * @description Current filter descriptors applied to the grid. Conditions on one field show in that column's
580
+ * filter menu (repeated fields are combined with `and`); filters across fields, such as an `or` of two
581
+ * columns, are still applied and reported. Conditions with an unknown operator are ignored. Supports
582
+ * two-way binding.
583
+ * @default []
584
+ */
585
+ readonly filter: import("@angular/core").ModelSignal<CompositeFilterDescriptor[]>;
586
+ /**
587
+ * @description Enables column filtering on the grid. Pass a `FilterableOptions` object to configure whether filters render in the header menu, a filter row, or both. Filtering is on unless the object sets `enabled: false`.
588
+ * @default ""
589
+ */
590
+ readonly options: import("@angular/core").InputSignal<"" | Partial<FilterableOptions>>;
591
+ constructor();
592
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridFilterableDirective, never>;
593
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GridFilterableDirective, "mona-grid[monaGridFilterable]", never, {
594
+ "filter": {
595
+ "alias": "filter";
596
+ "required": false;
597
+ "isSignal": true;
598
+ };
599
+ "options": {
600
+ "alias": "monaGridFilterable";
601
+ "required": false;
602
+ "isSignal": true;
603
+ };
604
+ }, {
605
+ "filter": "filterChange";
606
+ }, never, never, true, never>;
607
+ }
608
+ export declare class GridFooterTemplateDirective {
609
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridFooterTemplateDirective, never>;
610
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GridFooterTemplateDirective, "ng-template[monaGridFooterTemplate]", never, {}, {}, never, never, true, never>;
611
+ }
612
+ export declare class GridGroupableDirective {
613
+ #private;
614
+ /**
615
+ * @description Current group descriptors applied to the grid. A repeated field keeps its last descriptor;
616
+ * a field without a column is grouped once its column appears. Supports two-way binding: `groupChange`
617
+ * emits after the user groups, ungroups, reorders or re-sorts groups, and after a grid state is restored,
618
+ * never for a value set here.
619
+ * @default []
620
+ */
621
+ readonly group: import("@angular/core").ModelSignal<GroupDescriptor[]>;
622
+ /**
623
+ * @description Enables column grouping on the grid. Pass a `GroupableOptions` object to configure group footer display. Grouping is on unless the object sets `enabled: false`.
624
+ */
625
+ readonly options: import("@angular/core").InputSignal<"" | Partial<GroupableOptions> | undefined>;
626
+ constructor();
627
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridGroupableDirective, never>;
628
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GridGroupableDirective, "mona-grid[monaGridGroupable]", never, {
629
+ "group": {
630
+ "alias": "group";
631
+ "required": false;
632
+ "isSignal": true;
633
+ };
634
+ "options": {
635
+ "alias": "monaGridGroupable";
636
+ "required": false;
637
+ "isSignal": true;
638
+ };
639
+ }, {
640
+ "group": "groupChange";
641
+ }, never, never, true, never>;
642
+ }
643
+ export declare class GridGroupFooterTemplateDirective {
644
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridGroupFooterTemplateDirective, never>;
645
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GridGroupFooterTemplateDirective, "ng-template[monaGridGroupFooterTemplate]", never, {}, {}, never, never, true, never>;
646
+ }
647
+ export declare class GridHeaderTemplateDirective {
648
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridHeaderTemplateDirective, never>;
649
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GridHeaderTemplateDirective, "ng-template[monaGridHeaderTemplate]", never, {}, {}, never, never, true, never>;
650
+ }
651
+ export declare class GridNoDataTemplateDirective {
652
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridNoDataTemplateDirective, never>;
653
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GridNoDataTemplateDirective, "ng-template[monaGridNoDataTemplate]", never, {}, {}, never, never, true, never>;
654
+ }
640
655
  declare class ColumnReorderEvent extends PreventableEvent {
641
- #private;
642
- constructor(column: Column, oldIndex: number, newIndex: number);
643
- get column(): Column;
644
- get newIndex(): number;
645
- get oldIndex(): number;
656
+ #private;
657
+ constructor(column: Column, oldIndex: number, newIndex: number);
658
+ get column(): Column;
659
+ get newIndex(): number;
660
+ get oldIndex(): number;
646
661
  }
647
-
648
662
  interface ReorderableOptions {
649
- /** Whether column reordering is active. On unless set to `false`; options replace earlier ones. */
650
- enabled: boolean;
651
- }
652
-
653
- declare class GridReorderableDirective {
654
- #private;
655
- /**
656
- * @description Emitted when a column is dropped into a new position. Call `preventDefault()` on the event to cancel the reorder.
657
- */
658
- readonly columnReorder: _angular_core.OutputEmitterRef<ColumnReorderEvent>;
659
- /**
660
- * @description Enables column reordering via drag and drop. Pass a `ReorderableOptions` object to configure it explicitly.
661
- * @default ""
662
- */
663
- readonly options: _angular_core.InputSignal<"" | ReorderableOptions>;
664
- constructor();
665
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridReorderableDirective, never>;
666
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridReorderableDirective, "mona-grid[monaGridReorderable]", never, { "options": { "alias": "monaGridReorderable"; "required": false; "isSignal": true; }; }, { "columnReorder": "columnReorder"; }, never, never, true, never>;
667
- }
668
-
663
+ /** Whether column reordering is active. On unless set to `false`; options replace earlier ones. */
664
+ enabled: boolean;
665
+ }
666
+ export declare class GridReorderableDirective {
667
+ #private;
668
+ /**
669
+ * @description Emitted when a column is dropped into a new position. Call `preventDefault()` on the event to cancel the reorder.
670
+ */
671
+ readonly columnReorder: import("@angular/core").OutputEmitterRef<ColumnReorderEvent>;
672
+ /**
673
+ * @description Enables column reordering via drag and drop. Pass a `ReorderableOptions` object to configure it explicitly.
674
+ * @default ""
675
+ */
676
+ readonly options: import("@angular/core").InputSignal<"" | ReorderableOptions>;
677
+ constructor();
678
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridReorderableDirective, never>;
679
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GridReorderableDirective, "mona-grid[monaGridReorderable]", never, {
680
+ "options": {
681
+ "alias": "monaGridReorderable";
682
+ "required": false;
683
+ "isSignal": true;
684
+ };
685
+ }, {
686
+ "columnReorder": "columnReorder";
687
+ }, never, never, true, never>;
688
+ }
669
689
  interface ColumnResizeEvent {
670
- column: Column;
671
- newWidth: number;
672
- oldWidth: number;
690
+ column: Column;
691
+ newWidth: number;
692
+ oldWidth: number;
673
693
  }
674
-
675
694
  interface ResizableOptions {
676
- /** Whether column resizing is active. On unless set to `false`; options replace earlier ones. */
677
- enabled: boolean;
678
- }
679
-
680
- declare class GridResizableDirective {
681
- #private;
682
- /**
683
- * @description Emitted when a column resize completes, with the column and its old and new widths.
684
- */
685
- readonly columnResize: _angular_core.OutputEmitterRef<ColumnResizeEvent>;
686
- /**
687
- * @description Enables column resizing on the grid. Pass a `ResizableOptions` object to configure it explicitly.
688
- * @default ""
689
- */
690
- readonly options: _angular_core.InputSignal<"" | ResizableOptions>;
691
- constructor();
692
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridResizableDirective, never>;
693
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridResizableDirective, "mona-grid[monaGridResizable]", never, { "options": { "alias": "monaGridResizable"; "required": false; "isSignal": true; }; }, { "columnResize": "columnResize"; }, never, never, true, never>;
694
- }
695
-
695
+ /** Whether column resizing is active. On unless set to `false`; options replace earlier ones. */
696
+ enabled: boolean;
697
+ }
698
+ export declare class GridResizableDirective {
699
+ #private;
700
+ /**
701
+ * @description Emitted when a column resize completes, with the column and its old and new widths.
702
+ */
703
+ readonly columnResize: import("@angular/core").OutputEmitterRef<ColumnResizeEvent>;
704
+ /**
705
+ * @description Enables column resizing on the grid. Pass a `ResizableOptions` object to configure it explicitly.
706
+ * @default ""
707
+ */
708
+ readonly options: import("@angular/core").InputSignal<"" | ResizableOptions>;
709
+ constructor();
710
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridResizableDirective, never>;
711
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GridResizableDirective, "mona-grid[monaGridResizable]", never, {
712
+ "options": {
713
+ "alias": "monaGridResizable";
714
+ "required": false;
715
+ "isSignal": true;
716
+ };
717
+ }, {
718
+ "columnResize": "columnResize";
719
+ }, never, never, true, never>;
720
+ }
696
721
  interface RowReorderableOptions {
697
- /**
698
- * Determines whether an individual row may be reordered.
699
- *
700
- * Rows for which this returns false must show a disabled handle.
701
- */
702
- canReorder?: (rowData: Record<PropertyKey, unknown>) => boolean;
703
- /**
704
- * Enables row reordering.
705
- *
706
- * @default true when the directive is used without a value
707
- */
708
- enabled?: boolean;
709
- /**
710
- * Returns the accessible label fragment for a row's reorder handle.
711
- * Locale-aware composition supplies sentence punctuation, keyboard instructions,
712
- * and disabled reasons around this fragment.
713
- *
714
- * The default must be positional, such as:
715
- * "Reorder row 3"
716
- */
717
- rowAriaLabel?: (rowData: Record<PropertyKey, unknown>, absoluteIndex: number) => string;
718
- }
719
-
720
- declare class RowReorderEvent<TData extends Record<PropertyKey, unknown> = Record<PropertyKey, unknown>> extends PreventableEvent {
721
- #private;
722
- constructor(options: RowReorderEventOptions<TData>);
723
- get currentIndex(): number;
724
- get currentPageIndex(): number;
725
- get previousIndex(): number;
726
- get previousPageIndex(): number;
727
- get reorderedData(): readonly TData[];
728
- get rowData(): TData;
722
+ /**
723
+ * Determines whether an individual row may be reordered.
724
+ *
725
+ * Rows for which this returns false must show a disabled handle.
726
+ */
727
+ canReorder?: (rowData: Record<PropertyKey, unknown>) => boolean;
728
+ /**
729
+ * Enables row reordering.
730
+ *
731
+ * @default true when the directive is used without a value
732
+ */
733
+ enabled?: boolean;
734
+ /**
735
+ * Returns the accessible label fragment for a row's reorder handle.
736
+ * Locale-aware composition supplies sentence punctuation, keyboard instructions,
737
+ * and disabled reasons around this fragment.
738
+ *
739
+ * The default must be positional, such as:
740
+ * "Reorder row 3"
741
+ */
742
+ rowAriaLabel?: (rowData: Record<PropertyKey, unknown>, absoluteIndex: number) => string;
743
+ }
744
+ export declare class RowReorderEvent<TData extends Record<PropertyKey, unknown> = Record<PropertyKey, unknown>> extends PreventableEvent {
745
+ #private;
746
+ constructor(options: RowReorderEventOptions<TData>);
747
+ get currentIndex(): number;
748
+ get currentPageIndex(): number;
749
+ get previousIndex(): number;
750
+ get previousPageIndex(): number;
751
+ get reorderedData(): readonly TData[];
752
+ get rowData(): TData;
729
753
  }
730
754
  interface RowReorderEventOptions<TData extends Record<PropertyKey, unknown> = Record<PropertyKey, unknown>> {
731
- currentIndex: number;
732
- currentPageIndex: number;
733
- previousIndex: number;
734
- previousPageIndex: number;
735
- reorderedData: readonly TData[];
736
- rowData: TData;
737
- }
738
-
739
- declare class GridRowReorderableDirective {
740
- #private;
741
- /**
742
- * @description Enables row reordering via the reorder-handle column. Pass a `RowReorderableOptions`
743
- * object to configure it explicitly.
744
- * @default ""
745
- */
746
- readonly options: _angular_core.InputSignal<"" | RowReorderableOptions>;
747
- /**
748
- * @description Emitted when a row is moved to a new position. The event carries the moved row,
749
- * source- and page-relative indices, and the complete reordered application data.
750
- */
751
- readonly rowReorder: _angular_core.OutputEmitterRef<RowReorderEvent<Record<PropertyKey, unknown>>>;
752
- constructor();
753
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridRowReorderableDirective, never>;
754
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridRowReorderableDirective, "mona-grid[monaGridRowReorderable]", never, { "options": { "alias": "monaGridRowReorderable"; "required": false; "isSignal": true; }; }, { "rowReorder": "rowReorder"; }, never, never, true, never>;
755
- }
756
-
757
- declare class GridSelectableDirective {
758
- #private;
759
- /**
760
- * @description Enables row selection on the grid. Pass a `SelectableOptions` object to configure single or multiple selection mode. Selection is on unless the object sets `enabled: false`.
761
- * @default ""
762
- */
763
- readonly options: _angular_core.InputSignal<"" | SelectableOptions>;
764
- /**
765
- * @description Field name or function that gives a row's selection key. Without it, rows are selected by the
766
- * grid's `rowKey` value, or by the data item when there's no `rowKey`.
767
- * @default ""
768
- */
769
- readonly selectBy: _angular_core.InputSignal<GridKeySelector<unknown>>;
770
- /**
771
- * @description Currently selected row keys.
772
- * @default []
773
- */
774
- readonly selectedKeys: _angular_core.InputSignal<Iterable<unknown>>;
775
- /**
776
- * @description Emitted when the user changes the selection. Not emitted for a `selectedKeys` value set from code.
777
- */
778
- readonly selectedKeysChange: _angular_core.OutputEmitterRef<unknown[]>;
779
- constructor();
780
- private setSubscriptions;
781
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridSelectableDirective, never>;
782
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridSelectableDirective, "mona-grid[monaGridSelectable]", never, { "options": { "alias": "monaGridSelectable"; "required": false; "isSignal": true; }; "selectBy": { "alias": "selectBy"; "required": false; "isSignal": true; }; "selectedKeys": { "alias": "selectedKeys"; "required": false; "isSignal": true; }; }, { "selectedKeysChange": "selectedKeysChange"; }, never, never, true, never>;
783
- }
784
-
755
+ currentIndex: number;
756
+ currentPageIndex: number;
757
+ previousIndex: number;
758
+ previousPageIndex: number;
759
+ reorderedData: readonly TData[];
760
+ rowData: TData;
761
+ }
762
+ export declare class GridRowReorderableDirective {
763
+ #private;
764
+ /**
765
+ * @description Enables row reordering via the reorder-handle column. Pass a `RowReorderableOptions`
766
+ * object to configure it explicitly.
767
+ * @default ""
768
+ */
769
+ readonly options: import("@angular/core").InputSignal<"" | RowReorderableOptions>;
770
+ /**
771
+ * @description Emitted when a row is moved to a new position. The event carries the moved row,
772
+ * source- and page-relative indices, and the complete reordered application data.
773
+ */
774
+ readonly rowReorder: import("@angular/core").OutputEmitterRef<RowReorderEvent<Record<PropertyKey, unknown>>>;
775
+ constructor();
776
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridRowReorderableDirective, never>;
777
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GridRowReorderableDirective, "mona-grid[monaGridRowReorderable]", never, {
778
+ "options": {
779
+ "alias": "monaGridRowReorderable";
780
+ "required": false;
781
+ "isSignal": true;
782
+ };
783
+ }, {
784
+ "rowReorder": "rowReorder";
785
+ }, never, never, true, never>;
786
+ }
787
+ export declare class GridSelectableDirective {
788
+ #private;
789
+ /**
790
+ * @description Enables row selection on the grid. Pass a `SelectableOptions` object to configure single or multiple selection mode. Selection is on unless the object sets `enabled: false`.
791
+ * @default ""
792
+ */
793
+ readonly options: import("@angular/core").InputSignal<"" | SelectableOptions>;
794
+ /**
795
+ * @description Field name or function that gives a row's selection key. Without it, rows are selected by the
796
+ * grid's `rowKey` value, or by the data item when there's no `rowKey`.
797
+ * @default ""
798
+ */
799
+ readonly selectBy: import("@angular/core").InputSignal<GridKeySelector<unknown>>;
800
+ /**
801
+ * @description Currently selected row keys.
802
+ * @default []
803
+ */
804
+ readonly selectedKeys: import("@angular/core").InputSignal<Iterable<unknown>>;
805
+ /**
806
+ * @description Emitted when the user changes the selection. Not emitted for a `selectedKeys` value set from code.
807
+ */
808
+ readonly selectedKeysChange: import("@angular/core").OutputEmitterRef<unknown[]>;
809
+ constructor();
810
+ private setSubscriptions;
811
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridSelectableDirective, never>;
812
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GridSelectableDirective, "mona-grid[monaGridSelectable]", never, {
813
+ "options": {
814
+ "alias": "monaGridSelectable";
815
+ "required": false;
816
+ "isSignal": true;
817
+ };
818
+ "selectBy": {
819
+ "alias": "selectBy";
820
+ "required": false;
821
+ "isSignal": true;
822
+ };
823
+ "selectedKeys": {
824
+ "alias": "selectedKeys";
825
+ "required": false;
826
+ "isSignal": true;
827
+ };
828
+ }, {
829
+ "selectedKeysChange": "selectedKeysChange";
830
+ }, never, never, true, never>;
831
+ }
785
832
  declare class ColumnSortEvent extends PreventableEvent {
786
- #private;
787
- constructor(column: Column);
788
- get column(): Column;
789
- }
790
-
791
- declare class GridSortableDirective {
792
- #private;
793
- /**
794
- * @description Emitted when a column header is activated to change its sort direction. Call `preventDefault()` on the event to cancel the sort.
795
- */
796
- readonly columnSort: _angular_core.OutputEmitterRef<ColumnSortEvent>;
797
- /**
798
- * @description Enables column sorting on the grid. Pass a `SortableOptions` object to configure sort mode, unsort behavior, or sort-index display. Sorting is on unless the object sets `enabled: false`.
799
- * @default ""
800
- */
801
- readonly options: _angular_core.InputSignal<"" | SortableOptions>;
802
- /**
803
- * @description Current sort descriptors applied to the grid. Descriptors are kept even when no column shows
804
- * the field, and a repeated field keeps its last descriptor. Supports two-way binding; a restored grid
805
- * state updates it too.
806
- * @default []
807
- */
808
- readonly sort: _angular_core.ModelSignal<SortDescriptor<unknown>[]>;
809
- constructor();
810
- private applyColumnSort;
811
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridSortableDirective, never>;
812
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridSortableDirective, "mona-grid[monaGridSortable]", never, { "options": { "alias": "monaGridSortable"; "required": false; "isSignal": true; }; "sort": { "alias": "sort"; "required": false; "isSignal": true; }; }, { "columnSort": "columnSort"; "sort": "sortChange"; }, never, never, true, never>;
813
- }
814
-
815
- declare class GridServerBindingDirective {
816
- #private;
817
- /** @description Emitted once per user paging, sorting, or filtering action with the requested server state. */
818
- readonly dataStateChange: _angular_core.OutputEmitterRef<GridDataState>;
819
- /** @description Shows a loading overlay while the application requests server data. */
820
- readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
821
- /** @description Zero-based offset of the supplied server page. External changes do not request data. */
822
- readonly skip: _angular_core.InputSignal<number>;
823
- /** @description Total matching server records before paging. Must be a non-negative integer. */
824
- readonly total: _angular_core.InputSignal<number>;
825
- constructor();
826
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridServerBindingDirective, never>;
827
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridServerBindingDirective, "mona-grid[monaGridServerBinding]", never, { "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "skip": { "alias": "skip"; "required": false; "isSignal": true; }; "total": { "alias": "total"; "required": true; "isSignal": true; }; }, { "dataStateChange": "dataStateChange"; }, never, never, true, never>;
828
- }
829
-
830
- type GridStateVersion = 1;
831
- type GridStateFilterValue = boolean | number | string | null | readonly (boolean | number | string | null)[];
832
- interface GridStateFilterDescriptor {
833
- field: string;
834
- operator: Exclude<FilterOperators, "function">;
835
- value?: GridStateFilterValue;
836
- }
837
- interface GridStateCompositeFilterDescriptor {
838
- filters: readonly (GridStateFilterDescriptor | GridStateCompositeFilterDescriptor)[];
839
- logic: FilterLogic;
840
- }
841
- interface GridStateSortDescriptor {
842
- dir: SortDirection;
843
- field: string;
844
- }
845
- interface GridColumnState {
846
- hidden: boolean;
847
- id: string;
848
- order: number;
849
- width: number | null;
850
- }
851
- interface GridState {
852
- /** Persisted per-column hidden/order/width state. */
853
- columns: readonly GridColumnState[];
854
- /** Persisted filter descriptors. */
855
- filter: readonly GridStateCompositeFilterDescriptor[];
856
- /** Persisted group descriptors. */
857
- group: readonly GroupDescriptor[];
858
- /** Persisted page size, unless `persistPageSize` is `false`. */
859
- pageSize?: number;
860
- /** Consumer-defined version tag used to reject stale persisted state. */
861
- schemaVersion?: number | string;
862
- /** Persisted sort descriptors. */
863
- sort: readonly GridStateSortDescriptor[];
864
- /** The state schema version produced by this version of the library. */
865
- version: GridStateVersion;
866
- }
867
- interface GridStatePersistenceOptions {
868
- enabled?: boolean;
869
- persistPageSize?: boolean;
870
- schemaVersion?: number | string;
833
+ #private;
834
+ constructor(column: Column);
835
+ get column(): Column;
836
+ }
837
+ export declare class GridSortableDirective {
838
+ #private;
839
+ /**
840
+ * @description Emitted when a column header is activated to change its sort direction. Call `preventDefault()` on the event to cancel the sort.
841
+ */
842
+ readonly columnSort: import("@angular/core").OutputEmitterRef<ColumnSortEvent>;
843
+ /**
844
+ * @description Enables column sorting on the grid. Pass a `SortableOptions` object to configure sort mode, unsort behavior, or sort-index display. Sorting is on unless the object sets `enabled: false`.
845
+ * @default ""
846
+ */
847
+ readonly options: import("@angular/core").InputSignal<"" | SortableOptions>;
848
+ /**
849
+ * @description Current sort descriptors applied to the grid. Descriptors are kept even when no column shows
850
+ * the field, and a repeated field keeps its last descriptor. Supports two-way binding; a restored grid
851
+ * state updates it too.
852
+ * @default []
853
+ */
854
+ readonly sort: import("@angular/core").ModelSignal<SortDescriptor<unknown>[]>;
855
+ constructor();
856
+ private applyColumnSort;
857
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridSortableDirective, never>;
858
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GridSortableDirective, "mona-grid[monaGridSortable]", never, {
859
+ "options": {
860
+ "alias": "monaGridSortable";
861
+ "required": false;
862
+ "isSignal": true;
863
+ };
864
+ "sort": {
865
+ "alias": "sort";
866
+ "required": false;
867
+ "isSignal": true;
868
+ };
869
+ }, {
870
+ "columnSort": "columnSort";
871
+ "sort": "sortChange";
872
+ }, never, never, true, never>;
873
+ }
874
+ export declare class GridServerBindingDirective {
875
+ #private;
876
+ /** @description Emitted once per user paging, sorting, or filtering action with the requested server state. */
877
+ readonly dataStateChange: import("@angular/core").OutputEmitterRef<GridDataState>;
878
+ /** @description Shows a loading overlay while the application requests server data. */
879
+ readonly loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
880
+ /** @description Zero-based offset of the supplied server page. External changes do not request data. */
881
+ readonly skip: import("@angular/core").InputSignal<number>;
882
+ /** @description Total matching server records before paging. Must be a non-negative integer. */
883
+ readonly total: import("@angular/core").InputSignal<number>;
884
+ constructor();
885
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridServerBindingDirective, never>;
886
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GridServerBindingDirective, "mona-grid[monaGridServerBinding]", never, {
887
+ "loading": {
888
+ "alias": "loading";
889
+ "required": false;
890
+ "isSignal": true;
891
+ };
892
+ "skip": {
893
+ "alias": "skip";
894
+ "required": false;
895
+ "isSignal": true;
896
+ };
897
+ "total": {
898
+ "alias": "total";
899
+ "required": true;
900
+ "isSignal": true;
901
+ };
902
+ }, {
903
+ "dataStateChange": "dataStateChange";
904
+ }, never, never, true, never>;
905
+ }
906
+ export type GridStateVersion = 1;
907
+ export type GridStateFilterValue = boolean | number | string | null | readonly (boolean | number | string | null)[];
908
+ export interface GridStateFilterDescriptor {
909
+ field: string;
910
+ operator: Exclude<FilterOperators, "function">;
911
+ value?: GridStateFilterValue;
912
+ }
913
+ export interface GridStateCompositeFilterDescriptor {
914
+ filters: readonly (GridStateFilterDescriptor | GridStateCompositeFilterDescriptor)[];
915
+ logic: FilterLogic;
916
+ }
917
+ export interface GridStateSortDescriptor {
918
+ dir: SortDirection;
919
+ field: string;
920
+ }
921
+ export interface GridColumnState {
922
+ hidden: boolean;
923
+ id: string;
924
+ order: number;
925
+ width: number | null;
926
+ }
927
+ export interface GridState {
928
+ /** Persisted per-column hidden/order/width state. */
929
+ columns: readonly GridColumnState[];
930
+ /** Persisted filter descriptors. */
931
+ filter: readonly GridStateCompositeFilterDescriptor[];
932
+ /** Persisted group descriptors. */
933
+ group: readonly GroupDescriptor[];
934
+ /** Persisted page size, unless `persistPageSize` is `false`. */
935
+ pageSize?: number;
936
+ /** Consumer-defined version tag used to reject stale persisted state. */
937
+ schemaVersion?: number | string;
938
+ /** Persisted sort descriptors. */
939
+ sort: readonly GridStateSortDescriptor[];
940
+ /** The state schema version produced by this version of the library. */
941
+ version: GridStateVersion;
942
+ }
943
+ export interface GridStatePersistenceOptions {
944
+ enabled?: boolean;
945
+ persistPageSize?: boolean;
946
+ schemaVersion?: number | string;
871
947
  }
872
948
  /**
873
949
  * The outcome of loading a state. `rejected-invalid`: the state isn't a well-formed `GridState` (a missing
874
950
  * array, a duplicate column id, an unknown filter operator, a page size or width that isn't a positive
875
951
  * number), and nothing was changed.
876
952
  */
877
- type GridStateLoadStatus = "applied" | "empty" | "rejected-invalid" | "rejected-schema" | "rejected-version";
878
- interface GridStateLoadResult {
879
- ignoredColumns: readonly string[];
880
- missingColumns: readonly string[];
881
- status: GridStateLoadStatus;
882
- }
883
-
884
- declare class GridStatePersistenceDirective {
885
- #private;
886
- /**
887
- * @description State persistence options such as schema version and page size persistence.
888
- */
889
- readonly options: _angular_core.InputSignal<"" | GridStatePersistenceOptions>;
890
- /**
891
- * @description The persisted grid state to apply and update when the grid state changes.
892
- */
893
- readonly state: _angular_core.ModelSignal<GridState | null>;
894
- constructor();
895
- /** Captures the grid's current state (columns, sort, filter, group) without waiting for the next change cycle. */
896
- captureState(): GridState;
897
- /**
898
- * Applies a previously captured state to the grid. A state that isn't well formed (a missing array, a duplicate
899
- * column id, an unknown filter operator, a page size or width that isn't a positive number) returns
900
- * `rejected-invalid` and changes nothing.
901
- */
902
- loadState(state: GridState | null, options?: GridStatePersistenceOptions): GridStateLoadResult;
903
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridStatePersistenceDirective, never>;
904
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridStatePersistenceDirective, "mona-grid[monaGridStatePersistence]", ["monaGridStatePersistence"], { "options": { "alias": "monaGridStatePersistence"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; }, { "state": "stateChange"; }, never, never, true, never>;
905
- }
906
-
907
- declare class GridToolbarTemplateDirective {
908
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridToolbarTemplateDirective, never>;
909
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridToolbarTemplateDirective, "ng-template[monaGridToolbarTemplate]", never, {}, {}, never, never, true, never>;
910
- }
911
-
912
- declare class GridExportDirective {
913
- #private;
914
- /** Exports the visible columns of the current view as CSV (only the loaded page with server binding). */
915
- exportCsv(filename?: string): void;
916
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridExportDirective, never>;
917
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridExportDirective, "mona-grid[monaGridExport]", ["monaGridExport"], {}, {}, never, never, true, never>;
918
- }
919
-
920
- declare class GridVirtualScrollDirective {
921
- #private;
922
- /**
923
- * @description Enables row virtualization on the grid. Pass a `VirtualScrollOptions` object to configure the fixed row height.
924
- */
925
- readonly options: _angular_core.InputSignal<"" | Partial<VirtualScrollOptions> | undefined>;
926
- /**
927
- * @description Emitted when the scroll position reaches the configured threshold from the bottom of the virtualized list.
928
- */
929
- readonly scrollEnd: _angular_core.OutputEmitterRef<void>;
930
- /**
931
- * @description Distance, in rows, from the bottom of the virtualized list at which `scrollEnd` is emitted.
932
- * @default 5
933
- */
934
- readonly scrollEndThreshold: _angular_core.InputSignal<number>;
935
- constructor();
936
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridVirtualScrollDirective, never>;
937
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridVirtualScrollDirective, "mona-grid[monaGridVirtualScroll]", never, { "options": { "alias": "monaGridVirtualScroll"; "required": false; "isSignal": true; }; "scrollEndThreshold": { "alias": "scrollEndThreshold"; "required": false; "isSignal": true; }; }, { "scrollEnd": "scrollEnd"; }, never, never, true, never>;
938
- }
939
-
953
+ export type GridStateLoadStatus = "applied" | "empty" | "rejected-invalid" | "rejected-schema" | "rejected-version";
954
+ export interface GridStateLoadResult {
955
+ ignoredColumns: readonly string[];
956
+ missingColumns: readonly string[];
957
+ status: GridStateLoadStatus;
958
+ }
959
+ export declare class GridStatePersistenceDirective {
960
+ #private;
961
+ /**
962
+ * @description State persistence options such as schema version and page size persistence.
963
+ */
964
+ readonly options: import("@angular/core").InputSignal<"" | GridStatePersistenceOptions>;
965
+ /**
966
+ * @description The persisted grid state to apply and update when the grid state changes.
967
+ */
968
+ readonly state: import("@angular/core").ModelSignal<GridState | null>;
969
+ constructor();
970
+ /** Captures the grid's current state (columns, sort, filter, group) without waiting for the next change cycle. */
971
+ captureState(): GridState;
972
+ /**
973
+ * Applies a previously captured state to the grid. A state that isn't well formed (a missing array, a duplicate
974
+ * column id, an unknown filter operator, a page size or width that isn't a positive number) returns
975
+ * `rejected-invalid` and changes nothing.
976
+ */
977
+ loadState(state: GridState | null, options?: GridStatePersistenceOptions): GridStateLoadResult;
978
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridStatePersistenceDirective, never>;
979
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GridStatePersistenceDirective, "mona-grid[monaGridStatePersistence]", ["monaGridStatePersistence"], {
980
+ "options": {
981
+ "alias": "monaGridStatePersistence";
982
+ "required": false;
983
+ "isSignal": true;
984
+ };
985
+ "state": {
986
+ "alias": "state";
987
+ "required": false;
988
+ "isSignal": true;
989
+ };
990
+ }, {
991
+ "state": "stateChange";
992
+ }, never, never, true, never>;
993
+ }
994
+ export declare class GridToolbarTemplateDirective {
995
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridToolbarTemplateDirective, never>;
996
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GridToolbarTemplateDirective, "ng-template[monaGridToolbarTemplate]", never, {}, {}, never, never, true, never>;
997
+ }
998
+ export declare class GridExportDirective {
999
+ #private;
1000
+ /** Exports the visible columns of the current view as CSV (only the loaded page with server binding). */
1001
+ exportCsv(filename?: string): void;
1002
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridExportDirective, never>;
1003
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GridExportDirective, "mona-grid[monaGridExport]", ["monaGridExport"], {}, {}, never, never, true, never>;
1004
+ }
1005
+ export declare class GridVirtualScrollDirective {
1006
+ #private;
1007
+ /**
1008
+ * @description Enables row virtualization on the grid. Pass a `VirtualScrollOptions` object to configure the fixed row height.
1009
+ */
1010
+ readonly options: import("@angular/core").InputSignal<"" | Partial<VirtualScrollOptions> | undefined>;
1011
+ /**
1012
+ * @description Emitted when the scroll position reaches the configured threshold from the bottom of the virtualized list.
1013
+ */
1014
+ readonly scrollEnd: import("@angular/core").OutputEmitterRef<void>;
1015
+ /**
1016
+ * @description Distance, in rows, from the bottom of the virtualized list at which `scrollEnd` is emitted.
1017
+ * @default 5
1018
+ */
1019
+ readonly scrollEndThreshold: import("@angular/core").InputSignal<number>;
1020
+ constructor();
1021
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridVirtualScrollDirective, never>;
1022
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GridVirtualScrollDirective, "mona-grid[monaGridVirtualScroll]", never, {
1023
+ "options": {
1024
+ "alias": "monaGridVirtualScroll";
1025
+ "required": false;
1026
+ "isSignal": true;
1027
+ };
1028
+ "scrollEndThreshold": {
1029
+ "alias": "scrollEndThreshold";
1030
+ "required": false;
1031
+ "isSignal": true;
1032
+ };
1033
+ }, {
1034
+ "scrollEnd": "scrollEnd";
1035
+ }, never, never, true, never>;
1036
+ }
940
1037
  interface GridColumnDefinition {
941
- getColumn(): Column;
942
- }
943
-
944
- declare class GridCommandColumnComponent implements GridColumnDefinition {
945
- #private;
946
- private readonly commandTemplate;
947
- /**
948
- * @description Whether this command column is hidden from the rendered grid.
949
- */
950
- readonly hidden: _angular_core.InputSignalWithTransform<boolean, unknown>;
951
- /**
952
- * @description Whether this command column remains fixed while the grid scrolls horizontally.
953
- */
954
- readonly locked: _angular_core.InputSignalWithTransform<boolean, unknown>;
955
- /**
956
- * @description The side of the grid where this locked command column is fixed.
957
- */
958
- readonly lockedPosition: _angular_core.InputSignal<GridColumnLockedPosition>;
959
- /**
960
- * @description The maximum width of this command column in pixels.
961
- */
962
- readonly maxWidth: _angular_core.InputSignal<number | null>;
963
- /**
964
- * @description The minimum width of this command column in pixels.
965
- */
966
- readonly minWidth: _angular_core.InputSignal<number | null>;
967
- /**
968
- * @description Whether removing a row asks for confirmation before emitting `remove`: from the built-in Remove button, or from a
969
- * `monaGridRemoveCommand` button in this column's template.
970
- */
971
- readonly removeConfirmation: _angular_core.InputSignalWithTransform<boolean, unknown>;
972
- /**
973
- * @description A stable key used to persist state for this command column.
974
- */
975
- readonly stateKey: _angular_core.InputSignal<string | null>;
976
- /**
977
- * @description The title displayed in the command column header. Without one, the localized
978
- * `commandColumnTitle` message ("Commands").
979
- * @default null
980
- */
981
- readonly title: _angular_core.InputSignal<string | null>;
982
- /**
983
- * @description The fixed width of this command column in pixels.
984
- */
985
- readonly width: _angular_core.InputSignal<number | null>;
986
- getColumn(): Column;
987
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridCommandColumnComponent, never>;
988
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<GridCommandColumnComponent, "mona-grid-command-column", never, { "hidden": { "alias": "hidden"; "required": false; "isSignal": true; }; "locked": { "alias": "locked"; "required": false; "isSignal": true; }; "lockedPosition": { "alias": "lockedPosition"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; "minWidth": { "alias": "minWidth"; "required": false; "isSignal": true; }; "removeConfirmation": { "alias": "removeConfirmation"; "required": false; "isSignal": true; }; "stateKey": { "alias": "stateKey"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; }, {}, ["commandTemplate"], never, true, never>;
989
- }
990
-
991
- declare class GridColumnComponent implements GridColumnDefinition {
992
- #private;
993
- private readonly cellTemplate;
994
- private readonly editTemplate;
995
- private readonly footerTemplate;
996
- private readonly groupFooterTemplate;
997
- private readonly headerTemplate;
998
- private readonly titleTemplate;
999
- /**
1000
- * @description The aggregate shown in the grid footer for this column.
1001
- */
1002
- readonly aggregate: _angular_core.InputSignal<AggregateFunction | null>;
1003
- /**
1004
- * @description Whether this column is editable when the grid is in edit mode. Left unset, every column is
1005
- * editable except the one whose `field` is the grid's `rowKey`.
1006
- * @default null
1007
- */
1008
- readonly editable: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
1009
- /**
1010
- * @description The field name of the data property to display in this column.
1011
- */
1012
- readonly field: _angular_core.InputSignal<string>;
1013
- /**
1014
- * @description Whether this column can be filtered when grid filtering is enabled. Has no effect if filtering is disabled on the grid.
1015
- */
1016
- readonly filterable: _angular_core.InputSignalWithTransform<boolean, unknown>;
1017
- /**
1018
- * @description Formats the displayed cell value. String formats apply to date columns and their date filters; formatter functions replace the cell text.
1019
- */
1020
- readonly format: _angular_core.InputSignal<ColumnFormat | null | undefined>;
1021
- /**
1022
- * @description Whether this column is hidden from the rendered grid.
1023
- */
1024
- readonly hidden: _angular_core.InputSignalWithTransform<boolean, unknown>;
1025
- /**
1026
- * @description Whether this column remains fixed while the grid scrolls horizontally.
1027
- */
1028
- readonly locked: _angular_core.InputSignalWithTransform<boolean, unknown>;
1029
- /**
1030
- * @description The side of the grid where this locked column is fixed.
1031
- */
1032
- readonly lockedPosition: _angular_core.InputSignal<GridColumnLockedPosition>;
1033
- /**
1034
- * @description The maximum width of this column in pixels.
1035
- */
1036
- readonly maxWidth: _angular_core.InputSignal<number | null>;
1037
- /**
1038
- * @description The minimum width of this column in pixels.
1039
- */
1040
- readonly minWidth: _angular_core.InputSignal<number>;
1041
- /**
1042
- * @description Compares two values of this column when the user sorts it, returning a negative number, zero
1043
- * or a positive number. Without it, values sort by type (empty values first) and strings by the locale.
1044
- */
1045
- readonly sortComparator: _angular_core.InputSignal<((left: unknown, right: unknown) => number) | null>;
1046
- /**
1047
- * @description Whether this column can be sorted through its header when grid sorting is enabled. Has no effect if sorting is disabled on the grid.
1048
- */
1049
- readonly sortable: _angular_core.InputSignalWithTransform<boolean, unknown>;
1050
- /**
1051
- * @description A stable key used to persist state for columns whose field is empty or unstable.
1052
- */
1053
- readonly stateKey: _angular_core.InputSignal<string | null>;
1054
- /**
1055
- * @description The title displayed in the column header.
1056
- */
1057
- readonly title: _angular_core.InputSignal<string>;
1058
- /**
1059
- * @description The data type of the column. Determines the edit component and filter behavior.
1060
- */
1061
- readonly type: _angular_core.InputSignal<DataType>;
1062
- /**
1063
- * @description The fixed width of this column in pixels. If not set, the column width is calculated automatically.
1064
- */
1065
- readonly width: _angular_core.InputSignal<number | null | undefined>;
1066
- getColumn(): Column;
1067
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridColumnComponent, never>;
1068
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<GridColumnComponent, "mona-grid-column", never, { "aggregate": { "alias": "aggregate"; "required": false; "isSignal": true; }; "editable": { "alias": "editable"; "required": false; "isSignal": true; }; "field": { "alias": "field"; "required": false; "isSignal": true; }; "filterable": { "alias": "filterable"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "hidden": { "alias": "hidden"; "required": false; "isSignal": true; }; "locked": { "alias": "locked"; "required": false; "isSignal": true; }; "lockedPosition": { "alias": "lockedPosition"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; "minWidth": { "alias": "minWidth"; "required": false; "isSignal": true; }; "sortComparator": { "alias": "sortComparator"; "required": false; "isSignal": true; }; "sortable": { "alias": "sortable"; "required": false; "isSignal": true; }; "stateKey": { "alias": "stateKey"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; }, {}, ["cellTemplate", "editTemplate", "footerTemplate", "groupFooterTemplate", "headerTemplate", "titleTemplate"], never, true, never>;
1069
- }
1070
-
1038
+ getColumn(): Column;
1039
+ }
1040
+ export declare class GridCommandColumnComponent implements GridColumnDefinition {
1041
+ #private;
1042
+ private readonly commandTemplate;
1043
+ /**
1044
+ * @description Whether this command column is hidden from the rendered grid.
1045
+ */
1046
+ readonly hidden: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
1047
+ /**
1048
+ * @description Whether this command column remains fixed while the grid scrolls horizontally.
1049
+ */
1050
+ readonly locked: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
1051
+ /**
1052
+ * @description The side of the grid where this locked command column is fixed.
1053
+ */
1054
+ readonly lockedPosition: import("@angular/core").InputSignal<GridColumnLockedPosition>;
1055
+ /**
1056
+ * @description The maximum width of this command column in pixels.
1057
+ */
1058
+ readonly maxWidth: import("@angular/core").InputSignal<number | null>;
1059
+ /**
1060
+ * @description The minimum width of this command column in pixels.
1061
+ */
1062
+ readonly minWidth: import("@angular/core").InputSignal<number | null>;
1063
+ /**
1064
+ * @description Whether removing a row asks for confirmation before emitting `remove`: from the built-in Remove button, or from a
1065
+ * `monaGridRemoveCommand` button in this column's template.
1066
+ */
1067
+ readonly removeConfirmation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
1068
+ /**
1069
+ * @description A stable key used to persist state for this command column.
1070
+ */
1071
+ readonly stateKey: import("@angular/core").InputSignal<string | null>;
1072
+ /**
1073
+ * @description The title displayed in the command column header. Without one, the localized
1074
+ * `commandColumnTitle` message ("Commands").
1075
+ * @default null
1076
+ */
1077
+ readonly title: import("@angular/core").InputSignal<string | null>;
1078
+ /**
1079
+ * @description The fixed width of this command column in pixels.
1080
+ */
1081
+ readonly width: import("@angular/core").InputSignal<number | null>;
1082
+ getColumn(): Column;
1083
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridCommandColumnComponent, never>;
1084
+ static ɵcmp: i0.ɵɵComponentDeclaration<GridCommandColumnComponent, "mona-grid-command-column", never, {
1085
+ "hidden": {
1086
+ "alias": "hidden";
1087
+ "required": false;
1088
+ "isSignal": true;
1089
+ };
1090
+ "locked": {
1091
+ "alias": "locked";
1092
+ "required": false;
1093
+ "isSignal": true;
1094
+ };
1095
+ "lockedPosition": {
1096
+ "alias": "lockedPosition";
1097
+ "required": false;
1098
+ "isSignal": true;
1099
+ };
1100
+ "maxWidth": {
1101
+ "alias": "maxWidth";
1102
+ "required": false;
1103
+ "isSignal": true;
1104
+ };
1105
+ "minWidth": {
1106
+ "alias": "minWidth";
1107
+ "required": false;
1108
+ "isSignal": true;
1109
+ };
1110
+ "removeConfirmation": {
1111
+ "alias": "removeConfirmation";
1112
+ "required": false;
1113
+ "isSignal": true;
1114
+ };
1115
+ "stateKey": {
1116
+ "alias": "stateKey";
1117
+ "required": false;
1118
+ "isSignal": true;
1119
+ };
1120
+ "title": {
1121
+ "alias": "title";
1122
+ "required": false;
1123
+ "isSignal": true;
1124
+ };
1125
+ "width": {
1126
+ "alias": "width";
1127
+ "required": false;
1128
+ "isSignal": true;
1129
+ };
1130
+ }, {}, ["commandTemplate"], never, true, never>;
1131
+ }
1132
+ export declare class GridColumnComponent implements GridColumnDefinition {
1133
+ #private;
1134
+ private readonly cellTemplate;
1135
+ private readonly editTemplate;
1136
+ private readonly footerTemplate;
1137
+ private readonly groupFooterTemplate;
1138
+ private readonly headerTemplate;
1139
+ private readonly titleTemplate;
1140
+ /**
1141
+ * @description The aggregate shown in the grid footer for this column.
1142
+ */
1143
+ readonly aggregate: import("@angular/core").InputSignal<AggregateFunction | null>;
1144
+ /**
1145
+ * @description Whether this column is editable when the grid is in edit mode. Left unset, every column is
1146
+ * editable except the one whose `field` is the grid's `rowKey`.
1147
+ * @default null
1148
+ */
1149
+ readonly editable: import("@angular/core").InputSignalWithTransform<boolean | null, unknown>;
1150
+ /**
1151
+ * @description The field name of the data property to display in this column.
1152
+ */
1153
+ readonly field: import("@angular/core").InputSignal<string>;
1154
+ /**
1155
+ * @description Whether this column can be filtered when grid filtering is enabled. Has no effect if filtering is disabled on the grid.
1156
+ */
1157
+ readonly filterable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
1158
+ /**
1159
+ * @description Formats the displayed cell value. String formats apply to date columns and their date filters; formatter functions replace the cell text.
1160
+ */
1161
+ readonly format: import("@angular/core").InputSignal<ColumnFormat | null | undefined>;
1162
+ /**
1163
+ * @description Whether this column is hidden from the rendered grid.
1164
+ */
1165
+ readonly hidden: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
1166
+ /**
1167
+ * @description Whether this column remains fixed while the grid scrolls horizontally.
1168
+ */
1169
+ readonly locked: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
1170
+ /**
1171
+ * @description The side of the grid where this locked column is fixed.
1172
+ */
1173
+ readonly lockedPosition: import("@angular/core").InputSignal<GridColumnLockedPosition>;
1174
+ /**
1175
+ * @description The maximum width of this column in pixels.
1176
+ */
1177
+ readonly maxWidth: import("@angular/core").InputSignal<number | null>;
1178
+ /**
1179
+ * @description The minimum width of this column in pixels.
1180
+ */
1181
+ readonly minWidth: import("@angular/core").InputSignal<number>;
1182
+ /**
1183
+ * @description Compares two values of this column when the user sorts it, returning a negative number, zero
1184
+ * or a positive number. Without it, values sort by type (empty values first) and strings by the locale.
1185
+ */
1186
+ readonly sortComparator: import("@angular/core").InputSignal<((left: unknown, right: unknown) => number) | null>;
1187
+ /**
1188
+ * @description Whether this column can be sorted through its header when grid sorting is enabled. Has no effect if sorting is disabled on the grid.
1189
+ */
1190
+ readonly sortable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
1191
+ /**
1192
+ * @description A stable key used to persist state for columns whose field is empty or unstable.
1193
+ */
1194
+ readonly stateKey: import("@angular/core").InputSignal<string | null>;
1195
+ /**
1196
+ * @description The title displayed in the column header.
1197
+ */
1198
+ readonly title: import("@angular/core").InputSignal<string>;
1199
+ /**
1200
+ * @description The data type of the column. Determines the edit component and filter behavior.
1201
+ */
1202
+ readonly type: import("@angular/core").InputSignal<DataType>;
1203
+ /**
1204
+ * @description The fixed width of this column in pixels. If not set, the column width is calculated automatically.
1205
+ */
1206
+ readonly width: import("@angular/core").InputSignal<number | null | undefined>;
1207
+ getColumn(): Column;
1208
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridColumnComponent, never>;
1209
+ static ɵcmp: i0.ɵɵComponentDeclaration<GridColumnComponent, "mona-grid-column", never, {
1210
+ "aggregate": {
1211
+ "alias": "aggregate";
1212
+ "required": false;
1213
+ "isSignal": true;
1214
+ };
1215
+ "editable": {
1216
+ "alias": "editable";
1217
+ "required": false;
1218
+ "isSignal": true;
1219
+ };
1220
+ "field": {
1221
+ "alias": "field";
1222
+ "required": false;
1223
+ "isSignal": true;
1224
+ };
1225
+ "filterable": {
1226
+ "alias": "filterable";
1227
+ "required": false;
1228
+ "isSignal": true;
1229
+ };
1230
+ "format": {
1231
+ "alias": "format";
1232
+ "required": false;
1233
+ "isSignal": true;
1234
+ };
1235
+ "hidden": {
1236
+ "alias": "hidden";
1237
+ "required": false;
1238
+ "isSignal": true;
1239
+ };
1240
+ "locked": {
1241
+ "alias": "locked";
1242
+ "required": false;
1243
+ "isSignal": true;
1244
+ };
1245
+ "lockedPosition": {
1246
+ "alias": "lockedPosition";
1247
+ "required": false;
1248
+ "isSignal": true;
1249
+ };
1250
+ "maxWidth": {
1251
+ "alias": "maxWidth";
1252
+ "required": false;
1253
+ "isSignal": true;
1254
+ };
1255
+ "minWidth": {
1256
+ "alias": "minWidth";
1257
+ "required": false;
1258
+ "isSignal": true;
1259
+ };
1260
+ "sortComparator": {
1261
+ "alias": "sortComparator";
1262
+ "required": false;
1263
+ "isSignal": true;
1264
+ };
1265
+ "sortable": {
1266
+ "alias": "sortable";
1267
+ "required": false;
1268
+ "isSignal": true;
1269
+ };
1270
+ "stateKey": {
1271
+ "alias": "stateKey";
1272
+ "required": false;
1273
+ "isSignal": true;
1274
+ };
1275
+ "title": {
1276
+ "alias": "title";
1277
+ "required": false;
1278
+ "isSignal": true;
1279
+ };
1280
+ "type": {
1281
+ "alias": "type";
1282
+ "required": false;
1283
+ "isSignal": true;
1284
+ };
1285
+ "width": {
1286
+ "alias": "width";
1287
+ "required": false;
1288
+ "isSignal": true;
1289
+ };
1290
+ }, {}, ["cellTemplate", "editTemplate", "footerTemplate", "groupFooterTemplate", "headerTemplate", "titleTemplate"], never, true, never>;
1291
+ }
1071
1292
  interface ColumnFilterState {
1072
- filter?: CompositeFilterDescriptor;
1073
- filterMenuValue?: FilterMenuValue;
1293
+ filter?: CompositeFilterDescriptor;
1294
+ filterMenuValue?: FilterMenuValue;
1074
1295
  }
1075
-
1076
1296
  type ResizeMethod = "auto" | "fitView" | number;
1077
-
1078
1297
  interface GridAggregateBucket {
1079
- readonly avg?: number;
1080
- readonly count?: number;
1081
- readonly field: string;
1082
- readonly max?: unknown;
1083
- readonly min?: unknown;
1084
- readonly sum?: number;
1298
+ readonly avg?: number;
1299
+ readonly count?: number;
1300
+ readonly field: string;
1301
+ readonly max?: unknown;
1302
+ readonly min?: unknown;
1303
+ readonly sum?: number;
1085
1304
  }
1086
1305
  interface GridGroupAggregate {
1087
- readonly aggregates: ImmutableDictionary<string, GridAggregateBucket>;
1088
- readonly count: number;
1089
- readonly depth: number;
1090
- readonly groupKey: string;
1091
- readonly groupValue: unknown;
1092
- readonly rows: readonly Record<PropertyKey, unknown>[];
1093
- }
1094
-
1306
+ readonly aggregates: ImmutableDictionary<string, GridAggregateBucket>;
1307
+ readonly count: number;
1308
+ readonly depth: number;
1309
+ readonly groupKey: string;
1310
+ readonly groupValue: unknown;
1311
+ readonly rows: readonly Record<PropertyKey, unknown>[];
1312
+ }
1095
1313
  interface CellEditContext {
1096
- readonly cellUid: string;
1097
- readonly columnId: string;
1098
- readonly mode: "cell";
1099
- readonly row: Row;
1100
- readonly rowUid: string;
1101
- readonly session: GridEditSession;
1314
+ readonly cellUid: string;
1315
+ readonly columnId: string;
1316
+ readonly mode: "cell";
1317
+ readonly row: Row;
1318
+ readonly rowUid: string;
1319
+ readonly session: GridEditSession;
1102
1320
  }
1103
1321
  interface RowEditContext {
1104
- /** The column whose editor takes focus; the first editable column when null. */
1105
- readonly focusColumnId: string | null;
1106
- readonly mode: "row";
1107
- readonly row: Row;
1108
- readonly rowUid: string;
1109
- readonly session: GridEditSession;
1322
+ /** The column whose editor takes focus; the first editable column when null. */
1323
+ readonly focusColumnId: string | null;
1324
+ readonly mode: "row";
1325
+ readonly row: Row;
1326
+ readonly rowUid: string;
1327
+ readonly session: GridEditSession;
1110
1328
  }
1111
1329
  type GridEditContext = CellEditContext | RowEditContext;
1112
-
1113
1330
  /** A single row of the grid body — either a group header, a group footer, or a data row. */
1114
1331
  type GridViewRow = GridViewGroupRow | GridViewGroupFooterRow | GridViewDataRow;
1115
1332
  /** A group header row in the flattened grid view. */
1116
1333
  interface GridViewGroupRow {
1117
- /** The number of data rows (leaf rows) contained in this group. */
1118
- readonly count: number;
1119
- /** The nesting depth (0 = top-level group). */
1120
- readonly depth: number;
1121
- /** The field this group is grouped by. */
1122
- readonly field: string;
1123
- /** A unique identifier for this group (used for collapse tracking). */
1124
- readonly groupKey: string;
1125
- /** The display value for this group header. */
1126
- readonly groupValue: unknown;
1127
- /** A key that identifies this row among all body rows, for view tracking. */
1128
- readonly key: string;
1129
- /** The display title for this group header. */
1130
- readonly title: string;
1131
- readonly type: "group";
1334
+ /** The number of data rows (leaf rows) contained in this group. */
1335
+ readonly count: number;
1336
+ /** The nesting depth (0 = top-level group). */
1337
+ readonly depth: number;
1338
+ /** The field this group is grouped by. */
1339
+ readonly field: string;
1340
+ /** A unique identifier for this group (used for collapse tracking). */
1341
+ readonly groupKey: string;
1342
+ /** The display value for this group header. */
1343
+ readonly groupValue: unknown;
1344
+ /** A key that identifies this row among all body rows, for view tracking. */
1345
+ readonly key: string;
1346
+ /** The display title for this group header. */
1347
+ readonly title: string;
1348
+ readonly type: "group";
1132
1349
  }
1133
1350
  /** A footer row for a grouped section in the flattened grid view. */
1134
1351
  interface GridViewGroupFooterRow {
1135
- /** The nesting depth (0 = top-level group). */
1136
- readonly depth: number;
1137
- /** The aggregate metadata for this grouped footer. */
1138
- readonly groupAggregate: GridGroupAggregate;
1139
- /** A key that identifies this row among all body rows, for view tracking. */
1140
- readonly key: string;
1141
- readonly type: "groupFooter";
1352
+ /** The nesting depth (0 = top-level group). */
1353
+ readonly depth: number;
1354
+ /** The aggregate metadata for this grouped footer. */
1355
+ readonly groupAggregate: GridGroupAggregate;
1356
+ /** A key that identifies this row among all body rows, for view tracking. */
1357
+ readonly key: string;
1358
+ readonly type: "groupFooter";
1142
1359
  }
1143
1360
  /** A data row in the flattened grid view. */
1144
1361
  interface GridViewDataRow {
1145
- /** The depth of the innermost group this row belongs to, or 0 when the grid is not grouped. */
1146
- readonly depth: number;
1147
- /** The groupKey of the innermost group this row belongs to, or null when the grid is not grouped. */
1148
- readonly groupKey: string | null;
1149
- /** A key that identifies this row among all body rows, for view tracking. */
1150
- readonly key: string;
1151
- /** The actual Row model. */
1152
- readonly row: Row;
1153
- readonly type: "data";
1154
- }
1155
-
1362
+ /** The depth of the innermost group this row belongs to, or 0 when the grid is not grouped. */
1363
+ readonly depth: number;
1364
+ /** The groupKey of the innermost group this row belongs to, or null when the grid is not grouped. */
1365
+ readonly groupKey: string | null;
1366
+ /** A key that identifies this row among all body rows, for view tracking. */
1367
+ readonly key: string;
1368
+ /** The actual Row model. */
1369
+ readonly row: Row;
1370
+ readonly type: "data";
1371
+ }
1156
1372
  /**
1157
1373
  * How a layout column stays pinned while the grid scrolls horizontally.
1158
1374
  * Sides are logical, so `start` is the left edge in LTR and the right edge in RTL.
1159
1375
  */
1160
1376
  interface GridStickyState {
1161
- /** Whether this is the innermost pinned column on its side, which draws the separator border. */
1162
- readonly edge: boolean;
1163
- /** The distance from the pinned side, in pixels. */
1164
- readonly offset: number;
1165
- readonly side: "end" | "start";
1377
+ /** Whether this is the innermost pinned column on its side, which draws the separator border. */
1378
+ readonly edge: boolean;
1379
+ /** The distance from the pinned side, in pixels. */
1380
+ readonly offset: number;
1381
+ readonly side: "end" | "start";
1166
1382
  }
1167
-
1168
1383
  type StructuralColumnKind = "detail" | "reorder" | "selection";
1169
1384
  interface StructuralColumnDescriptor {
1170
- readonly kind: StructuralColumnKind;
1171
- readonly visible: boolean;
1172
- readonly width: number;
1385
+ readonly kind: StructuralColumnKind;
1386
+ readonly visible: boolean;
1387
+ readonly width: number;
1173
1388
  }
1174
-
1175
1389
  /**
1176
1390
  * A single physical column of the grid tables, in inline-start to inline-end order.
1177
1391
  * Every table section (header, body, add row, footer) renders the same sequence of layout columns.
@@ -1179,386 +1393,383 @@ interface StructuralColumnDescriptor {
1179
1393
  type GridLayoutColumn = GridLayoutDataColumn | GridLayoutGroupColumn | GridLayoutStructuralColumn;
1180
1394
  /** A user-defined data or command column. */
1181
1395
  interface GridLayoutDataColumn {
1182
- readonly column: Column;
1183
- /** The index among the visible user columns. */
1184
- readonly columnIndex: number;
1185
- /** Whether ArrowLeft (inline-start) stops at this cell. */
1186
- readonly firstInRow: boolean;
1187
- readonly key: string;
1188
- readonly kind: "column";
1189
- /** Whether ArrowRight (inline-end) stops at this cell. */
1190
- readonly lastInRow: boolean;
1191
- /** The keyboard-navigation column index. */
1192
- readonly logicalIndex: number;
1193
- readonly sticky: GridStickyState | null;
1194
- readonly width: number | null;
1396
+ readonly column: Column;
1397
+ /** The index among the visible user columns. */
1398
+ readonly columnIndex: number;
1399
+ /** Whether ArrowLeft (inline-start) stops at this cell. */
1400
+ readonly firstInRow: boolean;
1401
+ readonly key: string;
1402
+ readonly kind: "column";
1403
+ /** Whether ArrowRight (inline-end) stops at this cell. */
1404
+ readonly lastInRow: boolean;
1405
+ /** The keyboard-navigation column index. */
1406
+ readonly logicalIndex: number;
1407
+ readonly sticky: GridStickyState | null;
1408
+ readonly width: number | null;
1195
1409
  }
1196
1410
  /** An indent column rendered for each active group level. It does not participate in keyboard navigation. */
1197
1411
  interface GridLayoutGroupColumn {
1198
- readonly depth: number;
1199
- readonly key: string;
1200
- readonly kind: "group";
1201
- readonly logicalIndex: null;
1202
- readonly sticky: GridStickyState | null;
1203
- readonly width: number;
1412
+ readonly depth: number;
1413
+ readonly key: string;
1414
+ readonly kind: "group";
1415
+ readonly logicalIndex: null;
1416
+ readonly sticky: GridStickyState | null;
1417
+ readonly width: number;
1204
1418
  }
1205
1419
  /** A built-in column such as the row reorder handle, the detail toggle or the selection checkbox. */
1206
1420
  interface GridLayoutStructuralColumn {
1207
- /** Whether ArrowLeft (inline-start) stops at this cell. */
1208
- readonly firstInRow: boolean;
1209
- readonly key: string;
1210
- readonly kind: StructuralColumnKind;
1211
- /** Whether ArrowRight (inline-end) stops at this cell. */
1212
- readonly lastInRow: boolean;
1213
- /** The keyboard-navigation column index. */
1214
- readonly logicalIndex: number;
1215
- readonly sticky: GridStickyState | null;
1216
- readonly width: number;
1217
- }
1218
-
1421
+ /** Whether ArrowLeft (inline-start) stops at this cell. */
1422
+ readonly firstInRow: boolean;
1423
+ readonly key: string;
1424
+ readonly kind: StructuralColumnKind;
1425
+ /** Whether ArrowRight (inline-end) stops at this cell. */
1426
+ readonly lastInRow: boolean;
1427
+ /** The keyboard-navigation column index. */
1428
+ readonly logicalIndex: number;
1429
+ readonly sticky: GridStickyState | null;
1430
+ readonly width: number;
1431
+ }
1219
1432
  interface PaginationState {
1220
- readonly page: number;
1221
- readonly skip: number;
1222
- readonly take: number;
1433
+ readonly page: number;
1434
+ readonly skip: number;
1435
+ readonly take: number;
1223
1436
  }
1224
-
1225
1437
  interface RowEditDataItem extends Record<string, unknown> {
1226
- readonly $rowId: string;
1438
+ readonly $rowId: string;
1227
1439
  }
1228
1440
  declare class GridService {
1229
- #private;
1230
- readonly add$: Subject<GridAddEvent>;
1231
- readonly addRowData: _angular_core.Signal<Record<PropertyKey, unknown> | null>;
1232
- readonly addRowVisible: _angular_core.Signal<boolean>;
1233
- readonly aggregateColumns: _angular_core.Signal<ImmutableList<Column>>;
1234
- readonly aggregateMap: _angular_core.Signal<ImmutableDictionary<string, GridAggregateBucket>>;
1235
- readonly aggregateRows: _angular_core.Signal<Record<PropertyKey, unknown>[]>;
1236
- readonly allBulkSelectionRowsSelected: _angular_core.Signal<boolean>;
1237
- readonly appliedFilters: _angular_core.WritableSignal<ImmutableDictionary<string, ColumnFilterState>>;
1238
- /**
1239
- * The `aria-rowindex` before the first body row: the header rows, the add row and, when paged, the rows of
1240
- * the earlier pages (counted as data rows).
1241
- */
1242
- readonly bodyAriaRowStart: _angular_core.Signal<number>;
1243
- readonly bodyScrollElement: _angular_core.WritableSignal<HTMLElement | null>;
1244
- readonly bodyTableElement: _angular_core.WritableSignal<HTMLTableElement | null>;
1245
- readonly bulkSelectionRows: _angular_core.Signal<ImmutableList<Row>>;
1246
- readonly cancel$: Subject<GridCancelEvent>;
1247
- readonly cellEdit$: Subject<CellEditEvent>;
1248
- /** Set of currently collapsed group keys (global, shared by both paginated and virtual list). */
1249
- readonly collapsedGroupKeys: _angular_core.WritableSignal<ImmutableSet<string>>;
1250
- readonly columnReorder$: Subject<ColumnReorderEvent>;
1251
- readonly columnResize$: Subject<ColumnResizeEvent>;
1252
- /** True while the user drags a column edge; state persistence waits for the drag to end. */
1253
- readonly columnResizeActive: _angular_core.WritableSignal<boolean>;
1254
- readonly columnSort$: Subject<ColumnSortEvent>;
1255
- readonly columns: _angular_core.WritableSignal<ImmutableList<Column>>;
1256
- readonly contextMenuItems: _angular_core.WritableSignal<ImmutableSet<PopupMenuItem>>;
1257
- readonly dataStateChange$: Subject<GridDataState>;
1258
- readonly detailColumnWidth = 36;
1259
- readonly draggingRowUid: _angular_core.WritableSignal<string | null>;
1260
- readonly edit$: Subject<GridEditEvent>;
1261
- readonly editContext: _angular_core.Signal<GridEditContext | null>;
1262
- readonly editSession: _angular_core.Signal<GridEditSession | null>;
1263
- readonly editViewDict: _angular_core.Signal<ImmutableDictionary<string, RowEditDataItem>>;
1264
- readonly editableOptions: _angular_core.WritableSignal<EditableOptions<Record<PropertyKey, unknown>>>;
1265
- readonly editingRowUid: _angular_core.Signal<string | null>;
1266
- /** Keys of the rows whose detail row is open: the `rowKey` value, or the data item without one. */
1267
- readonly expandedKeys: _angular_core.WritableSignal<ImmutableSet<unknown>>;
1268
- /** Emits the expanded keys after the user opens or closes a detail row. */
1269
- readonly expandedKeysChange$: Subject<unknown[]>;
1270
- readonly filterChange$: Subject<CompositeFilterDescriptor[]>;
1271
- readonly filterRowEnabled: _angular_core.Signal<boolean>;
1272
- readonly filterableOptions: _angular_core.Signal<FilterableOptions>;
1273
- readonly footerScrollElement: _angular_core.WritableSignal<HTMLElement | null>;
1274
- readonly gridHeaderElement: _angular_core.WritableSignal<HTMLDivElement | null>;
1275
- readonly groupAggregateMap: _angular_core.Signal<ImmutableDictionary<string, GridGroupAggregate>>;
1276
- /** Emits the group descriptors after the user changes grouping, and after a state is applied. */
1277
- readonly groupChange$: Subject<GroupDescriptor[]>;
1278
- readonly groupColumnWidth = 36;
1279
- /** The grouped columns; a width or visibility change elsewhere doesn't produce a new list. */
1280
- readonly groupColumns: _angular_core.Signal<ImmutableList<Column>>;
1281
- readonly groupStructuralWidth: _angular_core.Signal<number>;
1282
- readonly groupableOptions: _angular_core.WritableSignal<GroupableOptions>;
1283
- readonly hasFooter: _angular_core.Signal<boolean>;
1284
- readonly hasLeftLockedColumns: _angular_core.Signal<boolean>;
1285
- readonly hasLiveScrollbarGutterWidth: _angular_core.Signal<boolean>;
1286
- /** The header rows: the column headers and, when shown, the filter row. */
1287
- readonly headerRowCount: _angular_core.Signal<1 | 2>;
1288
- readonly headerTableElement: _angular_core.WritableSignal<HTMLTableElement | null>;
1289
- readonly horizontalScrollLeft: _angular_core.Signal<number>;
1290
- readonly isInEditMode: _angular_core.Signal<boolean>;
1291
- readonly layout: _angular_core.Signal<readonly GridLayoutColumn[]>;
1292
- readonly layoutColumnByKey: _angular_core.Signal<ReadonlyMap<string, GridLayoutColumn>>;
1293
- readonly leadingStructuralWidth: _angular_core.Signal<number>;
1294
- readonly masterDetailRowWidth: _angular_core.Signal<number>;
1295
- readonly masterDetailTemplate: _angular_core.WritableSignal<TemplateRef<unknown> | null>;
1296
- readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaGridMessages>;
1297
- readonly newRowFactory: _angular_core.WritableSignal<() => Record<PropertyKey, unknown>>;
1298
- /** Emits when a user's sort or filter moves a client-side grid back to the first page. */
1299
- readonly pageReset$: Subject<void>;
1300
- readonly pagerTotal: _angular_core.Signal<number>;
1301
- readonly paginationState: _angular_core.WritableSignal<PaginationState>;
1302
- readonly remove$: Subject<GridRemoveEvent>;
1303
- /** How many rows the body draws, detail and group rows included; the body list keeps it current. */
1304
- readonly renderedBodyRowCount: _angular_core.WritableSignal<number>;
1305
- readonly reorderableOptions: _angular_core.Signal<ReorderableOptions>;
1306
- readonly resizableOptions: _angular_core.Signal<ResizableOptions>;
1307
- readonly rowClass: _angular_core.WritableSignal<GridRowClass<unknown> | null>;
1308
- readonly rowDragInProgress: _angular_core.Signal<boolean>;
1309
- readonly rowEdit$: Subject<RowEditEvent>;
1310
- readonly rowKey: _angular_core.WritableSignal<GridKeySelector<unknown>>;
1311
- readonly rowReorder$: Subject<RowReorderEvent<Record<PropertyKey, unknown>>>;
1312
- readonly rowReorderColumnVisible: _angular_core.Signal<boolean>;
1313
- readonly rowReorderColumnWidth = 36;
1314
- readonly rowReorderDisabledReason: _angular_core.Signal<RowReorderDisabledReason>;
1315
- readonly rowReorderInteractionEnabled: _angular_core.Signal<boolean>;
1316
- readonly rowReorderableOptions: _angular_core.Signal<RowReorderableOptions>;
1317
- readonly rows: _angular_core.WritableSignal<ImmutableList<Row>>;
1318
- readonly save$: Subject<GridSaveEvent<Record<PropertyKey, unknown>>>;
1319
- readonly scrollEnd$: Subject<void>;
1320
- readonly scrollEndThreshold: _angular_core.WritableSignal<number>;
1321
- readonly scrollbarGutterWidth: _angular_core.Signal<number>;
1322
- readonly selectBy: _angular_core.WritableSignal<GridKeySelector<unknown>>;
1323
- readonly selectableOptions: _angular_core.WritableSignal<SelectableOptions>;
1324
- readonly selectedKeys: _angular_core.WritableSignal<ImmutableSet<unknown>>;
1325
- readonly selectedKeysChange$: rxjs.Observable<ImmutableSet<unknown>>;
1326
- readonly selectedKeysLoad$: BehaviorSubject<ImmutableSet<unknown>>;
1327
- readonly selectionColumnVisible: _angular_core.Signal<boolean>;
1328
- readonly selectionColumnWidth = 40;
1329
- readonly serverBindingEnabled: _angular_core.Signal<boolean>;
1330
- readonly serverLoading: _angular_core.Signal<boolean>;
1331
- readonly serverTotal: _angular_core.Signal<number>;
1332
- readonly someBulkSelectionRowsSelected: _angular_core.Signal<boolean>;
1333
- /** Emits the sort descriptors after a state is applied, for the `sort` model. */
1334
- readonly sortChange$: Subject<SortDescriptor<unknown>[]>;
1335
- readonly sortableOptions: _angular_core.WritableSignal<SortableOptions>;
1336
- /** The widths of the columns pinned to the start and to the end, which cover part of the body. */
1337
- readonly stickyInset: _angular_core.Signal<{
1338
- end: number;
1339
- start: number;
1340
- }>;
1341
- readonly structuralColumns: _angular_core.Signal<readonly StructuralColumnDescriptor[]>;
1342
- readonly tableWidth: _angular_core.Signal<number | null>;
1343
- readonly viewPageRows: _angular_core.Signal<ImmutableList<Row>>;
1344
- readonly viewRowCount: _angular_core.Signal<number>;
1345
- readonly viewRows: _angular_core.Signal<ImmutableList<Row>>;
1346
- readonly virtualGridMaxBuffer: _angular_core.Signal<number>;
1347
- readonly virtualGridMinBuffer: _angular_core.WritableSignal<number>;
1348
- readonly virtualScrollOptions: _angular_core.WritableSignal<VirtualScrollOptions>;
1349
- readonly visibleColumns: _angular_core.Signal<ImmutableList<Column>>;
1350
- readonly visibleStructuralColumns: _angular_core.Signal<StructuralColumnDescriptor[]>;
1351
- constructor();
1352
- addGroupColumn(column: Column): void;
1353
- applyState(state: GridState | null, options?: GridStatePersistenceOptions): GridStateLoadResult;
1354
- canReorderRow(row: Row): boolean;
1355
- cancelAddRow(originalEvent?: Event, reason?: GridCancelReason): boolean;
1356
- cancelEdit(originalEvent?: Event, reason?: GridCancelReason): boolean;
1357
- captureState(options?: GridStatePersistenceOptions): GridState;
1358
- clearCollapsedGroups(predicate?: (key: string) => boolean): void;
1359
- clearColumnGrouping(column: Column): void;
1360
- commitRowEdit(originalEvent?: Event): boolean;
1361
- /**
1362
- * Builds the body rows for the given data rows: plain data rows when ungrouped, otherwise the flattened
1363
- * group headers, data rows and group footers. Reads grouping state, so call it inside a computed.
1364
- */
1365
- createBodyRows(rows: Iterable<Row>): GridViewRow[];
1366
- deselectAllRows(): void;
1367
- deselectRow(row: Row): void;
1368
- /**
1369
- * Ends the current edit without reporting it: after the consumer prevented `save` to save asynchronously,
1370
- * or to drop an edit from code. Does nothing when no edit is open.
1371
- */
1372
- endEdit(): void;
1373
- findTextWidthOfColumn(column: Column, element: HTMLTableCellElement): number;
1374
- /**
1375
- * The `aria-rowindex` of each body row, after the rows before the body and the detail rows opened above
1376
- * it, and how many rows the body draws. A row's detail row takes the next index.
1377
- */
1378
- getBodyAriaRowIndices(bodyRows: readonly GridViewRow[]): {
1379
- count: number;
1380
- indices: readonly number[];
1381
- };
1382
- getColumnStateId(column: Column): string | null;
1383
- getColumnWidth(column: Column): number;
1384
- getDataState(): GridDataState;
1385
- /** Every applied filter: the column filters, then the filters across columns. */
1386
- getFilterDescriptors(): CompositeFilterDescriptor[];
1387
- getGroupDescriptors(columns: Iterable<Column>): GroupDescriptor[];
1388
- /** The accessible name of a row command button; `row` is null for the add row. */
1389
- getRowCommandAriaLabel(command: GridRowCommand, row: Row | null): string;
1390
- /** The row's 1-based position in the filtered and sorted rows, counting earlier server pages. */
1391
- getRowNumber(row: Row): number;
1392
- getRowReorderAriaLabel(row: Row, absoluteIndex: number): string;
1393
- /** Sort order shared by models, persistence, and server requests. */
1394
- getSortDescriptors(): SortDescriptor[];
1395
- handleMultipleSelection(event: GridSelectionModifiers, row: Row): void;
1396
- handleRowClick(event: GridSelectionModifiers, row: Row): void;
1397
- handleSingleSelection(event: GridSelectionModifiers, row: Row): void;
1398
- isGroupCollapsed(groupKey: string): boolean;
1399
- /** Whether a selection value came from the `selectedKeys` input rather than from the user. */
1400
- isLoadedSelection(keys: ImmutableSet<unknown>): boolean;
1401
- isRowExpanded(row: Row): boolean;
1402
- isRowSelected(row: Row): boolean;
1403
- /** Sets the expanded detail rows from the `expandedKeys` input. */
1404
- loadExpandedKeys(keys: Iterable<unknown> | null | undefined): void;
1405
- /**
1406
- * Applies filters from code. Conditions on one field become that column's filter (repeated fields are
1407
- * combined with `and`); filters across fields stay whole and are still applied and reported. Filters on
1408
- * a field with no column are kept for when the column appears. Conditions with an unknown operator are
1409
- * dropped.
1410
- */
1411
- loadFilters(filters: Iterable<CompositeFilterDescriptor> | null | undefined): void;
1412
- /**
1413
- * Applies group descriptors from code. A repeated field keeps its last descriptor; fields without a
1414
- * column are remembered and grouped once their column appears.
1415
- */
1416
- loadGroupColumns(descriptors: Iterable<GroupDescriptor> | null | undefined): void;
1417
- loadSelectedKeys(selectedKeys: Iterable<unknown>): void;
1418
- /**
1419
- * Applies sort descriptors. They are kept whether or not a column shows the field, so a column added
1420
- * later shows its sort; a repeated field keeps its last descriptor.
1421
- */
1422
- loadSorts(sorts: Iterable<SortDescriptor> | null | undefined): void;
1423
- moveGroupColumn(column: Column, moveAs: "prev" | "next"): void;
1424
- normalizeRenderedWidth(width: number): number;
1425
- /** Ends an update whose row left the data or the view; the cancel can't be prevented. */
1426
- reconcileEditSession(): void;
1427
- removeRow(row: Row, originalEvent?: Event): boolean;
1428
- /**
1429
- * Moves a column in front of the column at `beforeIndex` in `columns()`, or to the end with
1430
- * `columns().length`. Reports `columnReorder$`, which can cancel the move. Returns whether it moved.
1431
- */
1432
- reorderColumn(column: Column, beforeIndex: number): boolean;
1433
- /**
1434
- * Reports the data state to a server-bound grid. With `resetPage`, which a user's sort or filter sets, it first goes
1435
- * back to the first page, on a client-side grid too: the rows the user was looking at may have moved anywhere.
1436
- */
1437
- requestDataStateChange(options?: {
1438
- readonly resetPage?: boolean;
1439
- }): void;
1440
- requestRowReorder(row: Row, previousPageIndex: number, currentPageIndex: number): boolean;
1441
- resolveAggregateValue(bucket: GridAggregateBucket | null, aggregateFunction: AggregateFunction | null): unknown;
1442
- saveAddRow(originalEvent?: Event): boolean;
1443
- /** Ctrl+A or Cmd+A in the body: selects every row in the select-all scope. */
1444
- selectAllRowsFromKeyboard(): boolean;
1445
- selectRow(row: Row): void;
1446
- /**
1447
- * Space on a row toggles its selection; with Shift (Shift+Space, Shift+ArrowUp/Down) it selects the rows
1448
- * from the anchor row to this one. Returns false when rows can't be selected.
1449
- */
1450
- selectRowFromKeyboard(rowUid: string, extend: boolean): boolean;
1451
- setBulkSelection(selected: boolean): void;
1452
- setCalculatedWidth(columnId: string, value: number | null): void;
1453
- setCalculatedWidths(widthByColumnId: ReadonlyMap<string, number | null>): void;
1454
- setColumnDefinitions(configs: readonly ColumnConfig[]): void;
1455
- setColumnFiltered(columnId: string, value: boolean): void;
1456
- setColumnGroupSortDirection(columnId: string, value: SortDirection | null): void;
1457
- setColumnHidden(columnId: string, value: boolean): void;
1458
- setColumnOrder(columnIds: readonly string[]): void;
1459
- setColumnSortDirection(columnId: string, value: SortDirection | null): void;
1460
- setColumnSortIndex(columnId: string, value: number | null): void;
1461
- setColumnVisibilityByFields(visibleFields: ImmutableSet<string>): void;
1462
- /** Replaces the editing options; the feature is on unless `enabled` is `false`. */
1463
- setEditableOptions(options: Partial<EditableOptions>): void;
1464
- /** Replaces the filtering options; the feature is on unless `enabled` is `false`. */
1465
- setFilterableOptions(options: Partial<FilterableOptions>): void;
1466
- /** Changes a group's direction from the group panel and reports it. */
1467
- setGroupSortDirection(column: Column, dir: SortDirection): void;
1468
- /** Replaces the grouping options; the feature is on unless `enabled` is `false`. */
1469
- setGroupableOptions(options: Partial<GroupableOptions>): void;
1470
- setNewRowFactory(factory: () => Record<PropertyKey, unknown>): void;
1471
- setPageState(state: Partial<PaginationState>): void;
1472
- /** Replaces the column reorder options; the feature is on unless `enabled` is `false`. */
1473
- setReorderableOptions(options: Partial<ReorderableOptions>): void;
1474
- /** Replaces the column resize options; the feature is on unless `enabled` is `false`. */
1475
- setResizableOptions(options: Partial<ResizableOptions>): void;
1476
- setRowExpanded(row: Row, expanded: boolean): void;
1477
- /** Sets the row key; columns left to the default become read-only when they hold the key. */
1478
- setRowKey(rowKey: GridKeySelector<unknown> | null): void;
1479
- setRowReorderableOptions(options: RowReorderableOptions): void;
1480
- setRowSelected(row: Row, selected: boolean): void;
1481
- setRows(value: Iterable<Record<PropertyKey, unknown>>, rowKey?: GridKeySelector<unknown> | null): void;
1482
- setScrollEndThreshold(threshold: number): void;
1483
- /** Replaces the selection options; the feature is on unless `enabled` is `false`. */
1484
- setSelectableOptions(options: Partial<SelectableOptions>): void;
1485
- setServerBindingEnabled(enabled: boolean): void;
1486
- setServerLoading(loading: boolean): void;
1487
- setServerSkip(skip: number): void;
1488
- setServerTotal(total: number): void;
1489
- /** Replaces the sorting options; the feature is on unless `enabled` is `false`. */
1490
- setSortableOptions(options: Partial<SortableOptions>): void;
1491
- setVirtualScrollOptions(options: VirtualScrollOptions): void;
1492
- startAddRow(originalEvent?: Event): boolean;
1493
- startCellEdit(uid: string, row: Row, column: Column, originalEvent?: Event): boolean;
1494
- startRowEdit(row: Row, originalEvent?: Event, focusColumnId?: string | null): boolean;
1495
- stopCellEdit(originalEvent?: Event): boolean;
1496
- toggleGroupCollapse(groupKey: string): void;
1497
- updateColumn(columnId: string, patch: Partial<Omit<Column, "id">>): void;
1498
- /** Tells assistive technology why a commit didn't go through. */
1499
- private announceInvalid;
1500
- private applyColumnIndexes;
1501
- private buildGroupAggregates;
1502
- private clearEditSession;
1503
- private cloneFilter;
1504
- private cloneFilterValue;
1505
- private createAggregateBucket;
1506
- private createAggregateMap;
1507
- private createEditSession;
1508
- private deserializeCompositeFilter;
1509
- private deserializeFilterDescriptor;
1510
- private deserializeFilterValue;
1511
- private deserializeFilters;
1512
- private emitGroupChange;
1513
- private findLongestCellContentOfColumn;
1514
- private getColumnById;
1515
- private getColumnLockBucket;
1516
- private getRowDataItemSelectionKey;
1517
- /** The key a row is tracked by across data refreshes: its `rowKey` value, or the data item. */
1518
- private getRowIdentityKey;
1519
- private getRowSelectionKey;
1520
- private getRowUid;
1521
- private getRowUidKey;
1522
- private measureElementScrollbarGutter;
1523
- private measureFallbackScrollbarGutter;
1524
- private orderColumnsByLockBucket;
1525
- private reconcileColumn;
1526
- /** The column's `editable`, with the default (every column but the `rowKey` field) resolved. */
1527
- private resolveEditable;
1528
- private resolveEditedRowData;
1529
- private resolveSessionRowData;
1530
- private selectRowRange;
1531
- private serializeFilter;
1532
- private serializeFilterDescriptor;
1533
- private serializeFilterValue;
1534
- /** The session's values, with the fields it filled in for the editors put back as the row had them. */
1535
- private sessionRowData;
1536
- private setElementScrollLeft;
1537
- private setHorizontalScrollLeft;
1538
- private setHorizontalScrollSyncEffects;
1539
- private setScrollbarGutterEffects;
1540
- private syncColumnFilterState;
1541
- private syncColumnSortState;
1542
- private updateColumns;
1543
- private validateServerInteger;
1544
- private validateSessionForSave;
1545
- private withColumnIndices;
1546
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridService, never>;
1547
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<GridService>;
1441
+ #private;
1442
+ readonly add$: Subject<GridAddEvent>;
1443
+ readonly addRowData: import("@angular/core").Signal<Record<PropertyKey, unknown> | null>;
1444
+ readonly addRowVisible: import("@angular/core").Signal<boolean>;
1445
+ readonly aggregateColumns: import("@angular/core").Signal<ImmutableList<Column>>;
1446
+ readonly aggregateMap: import("@angular/core").Signal<ImmutableDictionary<string, GridAggregateBucket>>;
1447
+ readonly aggregateRows: import("@angular/core").Signal<Record<PropertyKey, unknown>[]>;
1448
+ readonly allBulkSelectionRowsSelected: import("@angular/core").Signal<boolean>;
1449
+ readonly appliedFilters: import("@angular/core").WritableSignal<ImmutableDictionary<string, ColumnFilterState>>;
1450
+ /**
1451
+ * The `aria-rowindex` before the first body row: the header rows, the add row and, when paged, the rows of
1452
+ * the earlier pages (counted as data rows).
1453
+ */
1454
+ readonly bodyAriaRowStart: import("@angular/core").Signal<number>;
1455
+ readonly bodyScrollElement: import("@angular/core").WritableSignal<HTMLElement | null>;
1456
+ readonly bodyTableElement: import("@angular/core").WritableSignal<HTMLTableElement | null>;
1457
+ readonly bulkSelectionRows: import("@angular/core").Signal<ImmutableList<Row>>;
1458
+ readonly cancel$: Subject<GridCancelEvent>;
1459
+ readonly cellEdit$: Subject<CellEditEvent>;
1460
+ /** Set of currently collapsed group keys (global, shared by both paginated and virtual list). */
1461
+ readonly collapsedGroupKeys: import("@angular/core").WritableSignal<ImmutableSet<string>>;
1462
+ readonly columnReorder$: Subject<ColumnReorderEvent>;
1463
+ readonly columnResize$: Subject<ColumnResizeEvent>;
1464
+ /** True while the user drags a column edge; state persistence waits for the drag to end. */
1465
+ readonly columnResizeActive: import("@angular/core").WritableSignal<boolean>;
1466
+ readonly columnSort$: Subject<ColumnSortEvent>;
1467
+ readonly columns: import("@angular/core").WritableSignal<ImmutableList<Column>>;
1468
+ readonly contextMenuItems: import("@angular/core").WritableSignal<ImmutableSet<PopupMenuItem>>;
1469
+ readonly dataStateChange$: Subject<GridDataState>;
1470
+ readonly detailColumnWidth = 36;
1471
+ readonly draggingRowUid: import("@angular/core").WritableSignal<string | null>;
1472
+ readonly edit$: Subject<GridEditEvent>;
1473
+ readonly editContext: import("@angular/core").Signal<GridEditContext | null>;
1474
+ readonly editSession: import("@angular/core").Signal<GridEditSession | null>;
1475
+ readonly editViewDict: import("@angular/core").Signal<ImmutableDictionary<string, RowEditDataItem>>;
1476
+ readonly editableOptions: import("@angular/core").WritableSignal<EditableOptions<Record<PropertyKey, unknown>>>;
1477
+ readonly editingRowUid: import("@angular/core").Signal<string | null>;
1478
+ /** Keys of the rows whose detail row is open: the `rowKey` value, or the data item without one. */
1479
+ readonly expandedKeys: import("@angular/core").WritableSignal<ImmutableSet<unknown>>;
1480
+ /** Emits the expanded keys after the user opens or closes a detail row. */
1481
+ readonly expandedKeysChange$: Subject<unknown[]>;
1482
+ readonly filterChange$: Subject<CompositeFilterDescriptor[]>;
1483
+ readonly filterRowEnabled: import("@angular/core").Signal<boolean>;
1484
+ readonly filterableOptions: import("@angular/core").Signal<FilterableOptions>;
1485
+ readonly footerScrollElement: import("@angular/core").WritableSignal<HTMLElement | null>;
1486
+ readonly gridHeaderElement: import("@angular/core").WritableSignal<HTMLDivElement | null>;
1487
+ readonly groupAggregateMap: import("@angular/core").Signal<ImmutableDictionary<string, GridGroupAggregate>>;
1488
+ /** Emits the group descriptors after the user changes grouping, and after a state is applied. */
1489
+ readonly groupChange$: Subject<GroupDescriptor[]>;
1490
+ readonly groupColumnWidth = 36;
1491
+ /** The grouped columns; a width or visibility change elsewhere doesn't produce a new list. */
1492
+ readonly groupColumns: import("@angular/core").Signal<ImmutableList<Column>>;
1493
+ readonly groupStructuralWidth: import("@angular/core").Signal<number>;
1494
+ readonly groupableOptions: import("@angular/core").WritableSignal<GroupableOptions>;
1495
+ readonly hasFooter: import("@angular/core").Signal<boolean>;
1496
+ readonly hasLeftLockedColumns: import("@angular/core").Signal<boolean>;
1497
+ readonly hasLiveScrollbarGutterWidth: import("@angular/core").Signal<boolean>;
1498
+ /** The header rows: the column headers and, when shown, the filter row. */
1499
+ readonly headerRowCount: import("@angular/core").Signal<1 | 2>;
1500
+ readonly headerTableElement: import("@angular/core").WritableSignal<HTMLTableElement | null>;
1501
+ readonly horizontalScrollLeft: import("@angular/core").Signal<number>;
1502
+ readonly isInEditMode: import("@angular/core").Signal<boolean>;
1503
+ readonly layout: import("@angular/core").Signal<readonly GridLayoutColumn[]>;
1504
+ readonly layoutColumnByKey: import("@angular/core").Signal<ReadonlyMap<string, GridLayoutColumn>>;
1505
+ readonly leadingStructuralWidth: import("@angular/core").Signal<number>;
1506
+ readonly masterDetailRowWidth: import("@angular/core").Signal<number>;
1507
+ readonly masterDetailTemplate: import("@angular/core").WritableSignal<TemplateRef<unknown> | null>;
1508
+ readonly messages: import("@angular/core").Signal<import("@nanahoshi/mona-ui/i18n").MonaGridMessages>;
1509
+ readonly newRowFactory: import("@angular/core").WritableSignal<() => Record<PropertyKey, unknown>>;
1510
+ /** Emits when a user's sort or filter moves a client-side grid back to the first page. */
1511
+ readonly pageReset$: Subject<void>;
1512
+ readonly pagerTotal: import("@angular/core").Signal<number>;
1513
+ readonly paginationState: import("@angular/core").WritableSignal<PaginationState>;
1514
+ readonly remove$: Subject<GridRemoveEvent>;
1515
+ /** How many rows the body draws, detail and group rows included; the body list keeps it current. */
1516
+ readonly renderedBodyRowCount: import("@angular/core").WritableSignal<number>;
1517
+ readonly reorderableOptions: import("@angular/core").Signal<ReorderableOptions>;
1518
+ readonly resizableOptions: import("@angular/core").Signal<ResizableOptions>;
1519
+ readonly rowClass: import("@angular/core").WritableSignal<GridRowClass<unknown> | null>;
1520
+ readonly rowDragInProgress: import("@angular/core").Signal<boolean>;
1521
+ readonly rowEdit$: Subject<RowEditEvent>;
1522
+ readonly rowKey: import("@angular/core").WritableSignal<GridKeySelector<unknown>>;
1523
+ readonly rowReorder$: Subject<RowReorderEvent<Record<PropertyKey, unknown>>>;
1524
+ readonly rowReorderColumnVisible: import("@angular/core").Signal<boolean>;
1525
+ readonly rowReorderColumnWidth = 36;
1526
+ readonly rowReorderDisabledReason: import("@angular/core").Signal<RowReorderDisabledReason>;
1527
+ readonly rowReorderInteractionEnabled: import("@angular/core").Signal<boolean>;
1528
+ readonly rowReorderableOptions: import("@angular/core").Signal<RowReorderableOptions>;
1529
+ readonly rows: import("@angular/core").WritableSignal<ImmutableList<Row>>;
1530
+ readonly save$: Subject<GridSaveEvent<Record<PropertyKey, unknown>>>;
1531
+ readonly scrollEnd$: Subject<void>;
1532
+ readonly scrollEndThreshold: import("@angular/core").WritableSignal<number>;
1533
+ readonly scrollbarGutterWidth: import("@angular/core").Signal<number>;
1534
+ readonly selectBy: import("@angular/core").WritableSignal<GridKeySelector<unknown>>;
1535
+ readonly selectableOptions: import("@angular/core").WritableSignal<SelectableOptions>;
1536
+ readonly selectedKeys: import("@angular/core").WritableSignal<ImmutableSet<unknown>>;
1537
+ readonly selectedKeysChange$: import("rxjs").Observable<ImmutableSet<unknown>>;
1538
+ readonly selectedKeysLoad$: BehaviorSubject<ImmutableSet<unknown>>;
1539
+ readonly selectionColumnVisible: import("@angular/core").Signal<boolean>;
1540
+ readonly selectionColumnWidth = 40;
1541
+ readonly serverBindingEnabled: import("@angular/core").Signal<boolean>;
1542
+ readonly serverLoading: import("@angular/core").Signal<boolean>;
1543
+ readonly serverTotal: import("@angular/core").Signal<number>;
1544
+ readonly someBulkSelectionRowsSelected: import("@angular/core").Signal<boolean>;
1545
+ /** Emits the sort descriptors after a state is applied, for the `sort` model. */
1546
+ readonly sortChange$: Subject<SortDescriptor<unknown>[]>;
1547
+ readonly sortableOptions: import("@angular/core").WritableSignal<SortableOptions>;
1548
+ /** The widths of the columns pinned to the start and to the end, which cover part of the body. */
1549
+ readonly stickyInset: import("@angular/core").Signal<{
1550
+ end: number;
1551
+ start: number;
1552
+ }>;
1553
+ readonly structuralColumns: import("@angular/core").Signal<readonly StructuralColumnDescriptor[]>;
1554
+ readonly tableWidth: import("@angular/core").Signal<number | null>;
1555
+ readonly viewPageRows: import("@angular/core").Signal<ImmutableList<Row>>;
1556
+ readonly viewRowCount: import("@angular/core").Signal<number>;
1557
+ readonly viewRows: import("@angular/core").Signal<ImmutableList<Row>>;
1558
+ readonly virtualGridMaxBuffer: import("@angular/core").Signal<number>;
1559
+ readonly virtualGridMinBuffer: import("@angular/core").WritableSignal<number>;
1560
+ readonly virtualScrollOptions: import("@angular/core").WritableSignal<VirtualScrollOptions>;
1561
+ readonly visibleColumns: import("@angular/core").Signal<ImmutableList<Column>>;
1562
+ readonly visibleStructuralColumns: import("@angular/core").Signal<StructuralColumnDescriptor[]>;
1563
+ constructor();
1564
+ addGroupColumn(column: Column): void;
1565
+ applyState(state: GridState | null, options?: GridStatePersistenceOptions): GridStateLoadResult;
1566
+ canReorderRow(row: Row): boolean;
1567
+ cancelAddRow(originalEvent?: Event, reason?: GridCancelReason): boolean;
1568
+ cancelEdit(originalEvent?: Event, reason?: GridCancelReason): boolean;
1569
+ captureState(options?: GridStatePersistenceOptions): GridState;
1570
+ clearCollapsedGroups(predicate?: (key: string) => boolean): void;
1571
+ clearColumnGrouping(column: Column): void;
1572
+ commitRowEdit(originalEvent?: Event): boolean;
1573
+ /**
1574
+ * Builds the body rows for the given data rows: plain data rows when ungrouped, otherwise the flattened
1575
+ * group headers, data rows and group footers. Reads grouping state, so call it inside a computed.
1576
+ */
1577
+ createBodyRows(rows: Iterable<Row>): GridViewRow[];
1578
+ deselectAllRows(): void;
1579
+ deselectRow(row: Row): void;
1580
+ /**
1581
+ * Ends the current edit without reporting it: after the consumer prevented `save` to save asynchronously,
1582
+ * or to drop an edit from code. Does nothing when no edit is open.
1583
+ */
1584
+ endEdit(): void;
1585
+ findTextWidthOfColumn(column: Column, element: HTMLTableCellElement): number;
1586
+ /**
1587
+ * The `aria-rowindex` of each body row, after the rows before the body and the detail rows opened above
1588
+ * it, and how many rows the body draws. A row's detail row takes the next index.
1589
+ */
1590
+ getBodyAriaRowIndices(bodyRows: readonly GridViewRow[]): {
1591
+ count: number;
1592
+ indices: readonly number[];
1593
+ };
1594
+ getColumnStateId(column: Column): string | null;
1595
+ getColumnWidth(column: Column): number;
1596
+ getDataState(): GridDataState;
1597
+ /** Every applied filter: the column filters, then the filters across columns. */
1598
+ getFilterDescriptors(): CompositeFilterDescriptor[];
1599
+ getGroupDescriptors(columns: Iterable<Column>): GroupDescriptor[];
1600
+ /** The accessible name of a row command button; `row` is null for the add row. */
1601
+ getRowCommandAriaLabel(command: GridRowCommand, row: Row | null): string;
1602
+ /** The row's 1-based position in the filtered and sorted rows, counting earlier server pages. */
1603
+ getRowNumber(row: Row): number;
1604
+ getRowReorderAriaLabel(row: Row, absoluteIndex: number): string;
1605
+ /** Sort order shared by models, persistence, and server requests. */
1606
+ getSortDescriptors(): SortDescriptor[];
1607
+ handleMultipleSelection(event: GridSelectionModifiers, row: Row): void;
1608
+ handleRowClick(event: GridSelectionModifiers, row: Row): void;
1609
+ handleSingleSelection(event: GridSelectionModifiers, row: Row): void;
1610
+ isGroupCollapsed(groupKey: string): boolean;
1611
+ /** Whether a selection value came from the `selectedKeys` input rather than from the user. */
1612
+ isLoadedSelection(keys: ImmutableSet<unknown>): boolean;
1613
+ isRowExpanded(row: Row): boolean;
1614
+ isRowSelected(row: Row): boolean;
1615
+ /** Sets the expanded detail rows from the `expandedKeys` input. */
1616
+ loadExpandedKeys(keys: Iterable<unknown> | null | undefined): void;
1617
+ /**
1618
+ * Applies filters from code. Conditions on one field become that column's filter (repeated fields are
1619
+ * combined with `and`); filters across fields stay whole and are still applied and reported. Filters on
1620
+ * a field with no column are kept for when the column appears. Conditions with an unknown operator are
1621
+ * dropped.
1622
+ */
1623
+ loadFilters(filters: Iterable<CompositeFilterDescriptor> | null | undefined): void;
1624
+ /**
1625
+ * Applies group descriptors from code. A repeated field keeps its last descriptor; fields without a
1626
+ * column are remembered and grouped once their column appears.
1627
+ */
1628
+ loadGroupColumns(descriptors: Iterable<GroupDescriptor> | null | undefined): void;
1629
+ loadSelectedKeys(selectedKeys: Iterable<unknown>): void;
1630
+ /**
1631
+ * Applies sort descriptors. They are kept whether or not a column shows the field, so a column added
1632
+ * later shows its sort; a repeated field keeps its last descriptor.
1633
+ */
1634
+ loadSorts(sorts: Iterable<SortDescriptor> | null | undefined): void;
1635
+ moveGroupColumn(column: Column, moveAs: "prev" | "next"): void;
1636
+ normalizeRenderedWidth(width: number): number;
1637
+ /** Ends an update whose row left the data or the view; the cancel can't be prevented. */
1638
+ reconcileEditSession(): void;
1639
+ removeRow(row: Row, originalEvent?: Event): boolean;
1640
+ /**
1641
+ * Moves a column in front of the column at `beforeIndex` in `columns()`, or to the end with
1642
+ * `columns().length`. Reports `columnReorder$`, which can cancel the move. Returns whether it moved.
1643
+ */
1644
+ reorderColumn(column: Column, beforeIndex: number): boolean;
1645
+ /**
1646
+ * Reports the data state to a server-bound grid. With `resetPage`, which a user's sort or filter sets, it first goes
1647
+ * back to the first page, on a client-side grid too: the rows the user was looking at may have moved anywhere.
1648
+ */
1649
+ requestDataStateChange(options?: {
1650
+ readonly resetPage?: boolean;
1651
+ }): void;
1652
+ requestRowReorder(row: Row, previousPageIndex: number, currentPageIndex: number): boolean;
1653
+ resolveAggregateValue(bucket: GridAggregateBucket | null, aggregateFunction: AggregateFunction | null): unknown;
1654
+ saveAddRow(originalEvent?: Event): boolean;
1655
+ /** Ctrl+A or Cmd+A in the body: selects every row in the select-all scope. */
1656
+ selectAllRowsFromKeyboard(): boolean;
1657
+ selectRow(row: Row): void;
1658
+ /**
1659
+ * Space on a row toggles its selection; with Shift (Shift+Space, Shift+ArrowUp/Down) it selects the rows
1660
+ * from the anchor row to this one. Returns false when rows can't be selected.
1661
+ */
1662
+ selectRowFromKeyboard(rowUid: string, extend: boolean): boolean;
1663
+ setBulkSelection(selected: boolean): void;
1664
+ setCalculatedWidth(columnId: string, value: number | null): void;
1665
+ setCalculatedWidths(widthByColumnId: ReadonlyMap<string, number | null>): void;
1666
+ setColumnDefinitions(configs: readonly ColumnConfig[]): void;
1667
+ setColumnFiltered(columnId: string, value: boolean): void;
1668
+ setColumnGroupSortDirection(columnId: string, value: SortDirection | null): void;
1669
+ setColumnHidden(columnId: string, value: boolean): void;
1670
+ setColumnOrder(columnIds: readonly string[]): void;
1671
+ setColumnSortDirection(columnId: string, value: SortDirection | null): void;
1672
+ setColumnSortIndex(columnId: string, value: number | null): void;
1673
+ setColumnVisibilityByFields(visibleFields: ImmutableSet<string>): void;
1674
+ /** Replaces the editing options; the feature is on unless `enabled` is `false`. */
1675
+ setEditableOptions(options: Partial<EditableOptions>): void;
1676
+ /** Replaces the filtering options; the feature is on unless `enabled` is `false`. */
1677
+ setFilterableOptions(options: Partial<FilterableOptions>): void;
1678
+ /** Changes a group's direction from the group panel and reports it. */
1679
+ setGroupSortDirection(column: Column, dir: SortDirection): void;
1680
+ /** Replaces the grouping options; the feature is on unless `enabled` is `false`. */
1681
+ setGroupableOptions(options: Partial<GroupableOptions>): void;
1682
+ setNewRowFactory(factory: () => Record<PropertyKey, unknown>): void;
1683
+ setPageState(state: Partial<PaginationState>): void;
1684
+ /** Replaces the column reorder options; the feature is on unless `enabled` is `false`. */
1685
+ setReorderableOptions(options: Partial<ReorderableOptions>): void;
1686
+ /** Replaces the column resize options; the feature is on unless `enabled` is `false`. */
1687
+ setResizableOptions(options: Partial<ResizableOptions>): void;
1688
+ setRowExpanded(row: Row, expanded: boolean): void;
1689
+ /** Sets the row key; columns left to the default become read-only when they hold the key. */
1690
+ setRowKey(rowKey: GridKeySelector<unknown> | null): void;
1691
+ setRowReorderableOptions(options: RowReorderableOptions): void;
1692
+ setRowSelected(row: Row, selected: boolean): void;
1693
+ setRows(value: Iterable<Record<PropertyKey, unknown>>, rowKey?: GridKeySelector<unknown> | null): void;
1694
+ setScrollEndThreshold(threshold: number): void;
1695
+ /** Replaces the selection options; the feature is on unless `enabled` is `false`. */
1696
+ setSelectableOptions(options: Partial<SelectableOptions>): void;
1697
+ setServerBindingEnabled(enabled: boolean): void;
1698
+ setServerLoading(loading: boolean): void;
1699
+ setServerSkip(skip: number): void;
1700
+ setServerTotal(total: number): void;
1701
+ /** Replaces the sorting options; the feature is on unless `enabled` is `false`. */
1702
+ setSortableOptions(options: Partial<SortableOptions>): void;
1703
+ setVirtualScrollOptions(options: VirtualScrollOptions): void;
1704
+ startAddRow(originalEvent?: Event): boolean;
1705
+ startCellEdit(uid: string, row: Row, column: Column, originalEvent?: Event): boolean;
1706
+ startRowEdit(row: Row, originalEvent?: Event, focusColumnId?: string | null): boolean;
1707
+ stopCellEdit(originalEvent?: Event): boolean;
1708
+ toggleGroupCollapse(groupKey: string): void;
1709
+ updateColumn(columnId: string, patch: Partial<Omit<Column, "id">>): void;
1710
+ /** Tells assistive technology why a commit didn't go through. */
1711
+ private announceInvalid;
1712
+ private applyColumnIndexes;
1713
+ private buildGroupAggregates;
1714
+ private clearEditSession;
1715
+ private cloneFilter;
1716
+ private cloneFilterValue;
1717
+ private createAggregateBucket;
1718
+ private createAggregateMap;
1719
+ private createEditSession;
1720
+ private deserializeCompositeFilter;
1721
+ private deserializeFilterDescriptor;
1722
+ private deserializeFilterValue;
1723
+ private deserializeFilters;
1724
+ private emitGroupChange;
1725
+ private findLongestCellContentOfColumn;
1726
+ private getColumnById;
1727
+ private getColumnLockBucket;
1728
+ private getRowDataItemSelectionKey;
1729
+ /** The key a row is tracked by across data refreshes: its `rowKey` value, or the data item. */
1730
+ private getRowIdentityKey;
1731
+ private getRowSelectionKey;
1732
+ private getRowUid;
1733
+ private getRowUidKey;
1734
+ private measureElementScrollbarGutter;
1735
+ private measureFallbackScrollbarGutter;
1736
+ private orderColumnsByLockBucket;
1737
+ private reconcileColumn;
1738
+ /** The column's `editable`, with the default (every column but the `rowKey` field) resolved. */
1739
+ private resolveEditable;
1740
+ private resolveEditedRowData;
1741
+ private resolveSessionRowData;
1742
+ private selectRowRange;
1743
+ private serializeFilter;
1744
+ private serializeFilterDescriptor;
1745
+ private serializeFilterValue;
1746
+ /** The session's values, with the fields it filled in for the editors put back as the row had them. */
1747
+ private sessionRowData;
1748
+ private setElementScrollLeft;
1749
+ private setHorizontalScrollLeft;
1750
+ private setHorizontalScrollSyncEffects;
1751
+ private setScrollbarGutterEffects;
1752
+ private syncColumnFilterState;
1753
+ private syncColumnSortState;
1754
+ private updateColumns;
1755
+ private validateServerInteger;
1756
+ private validateSessionForSave;
1757
+ private withColumnIndices;
1758
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridService, never>;
1759
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
1548
1760
  }
1549
1761
  /** The modifier keys of a click or key press that selects rows. */
1550
1762
  type GridSelectionModifiers = Pick<MouseEvent, "ctrlKey" | "metaKey" | "shiftKey">;
1551
1763
  type RowReorderDisabledReason = "disabled" | "editing" | "filtered" | "grouped" | "server-binding" | "single-row" | "sorted" | "virtual-scroll" | null;
1552
-
1553
1764
  declare const gridBaseThemeVariants: (props?: ({
1554
- rounded?: "small" | "none" | "medium" | "large" | null | undefined;
1555
- } & class_variance_authority_types.ClassProp) | undefined) => string;
1556
- declare const gridHeaderThemeVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
1557
- declare const gridHeaderTableThemeVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
1558
- declare const gridHeaderTableRowThemeVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
1559
- declare const gridHeaderTableCellThemeVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
1560
- declare const gridHeaderTableColumnWrapThemeVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
1561
- declare const gridHeaderTableColumnTitleThemeVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
1765
+ rounded?: "small" | "none" | "medium" | "large" | null | undefined;
1766
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
1767
+ declare const gridHeaderThemeVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
1768
+ declare const gridHeaderTableThemeVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
1769
+ declare const gridHeaderTableRowThemeVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
1770
+ declare const gridHeaderTableCellThemeVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
1771
+ declare const gridHeaderTableColumnWrapThemeVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
1772
+ declare const gridHeaderTableColumnTitleThemeVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
1562
1773
  type GridBaseVariantProps = VariantProps<typeof gridBaseThemeVariants>;
1563
1774
  type GridBaseVariantInput = VariantInputs<GridBaseVariantProps>;
1564
1775
  type GridHeaderTableCellVariantProps = VariantProps<typeof gridHeaderTableCellThemeVariants>;
@@ -1574,268 +1785,335 @@ type GridHeaderTableVariantInput = VariantInputs<GridHeaderTableVariantProps>;
1574
1785
  type GridHeaderVariantProps = VariantProps<typeof gridHeaderThemeVariants>;
1575
1786
  type GridHeaderVariantInput = VariantInputs<GridHeaderVariantProps>;
1576
1787
  type GridVariantInput = GridBaseVariantInput & GridHeaderTableCellVariantInput & GridHeaderTableColumnTitleVariantInput & GridHeaderTableColumnWrapVariantInput & Omit<GridHeaderTableRowVariantInput, "isFilterRow"> & GridHeaderTableVariantInput & GridHeaderVariantInput;
1577
-
1578
- declare class GridComponent<T> implements GridVariantInput {
1579
- #private;
1580
- private readonly columnDefinitions;
1581
- private readonly filterMenus;
1582
- private readonly footerScrollElement;
1583
- /**
1584
- * Every row of the grid: header rows, add row, body rows (group, detail and group footer rows included) and
1585
- * footer. Exact when every row is drawn or rows are plain; -1 (unknown) for paged groups or detail rows.
1586
- */
1587
- protected readonly ariaRowCount: _angular_core.Signal<number>;
1588
- protected readonly baseClass: _angular_core.Signal<string>;
1589
- protected readonly columnActionsClass: _angular_core.Signal<string>;
1590
- protected readonly columnDragPreviewClass: _angular_core.Signal<string>;
1591
- protected readonly columnDragging: _angular_core.WritableSignal<boolean>;
1592
- protected readonly columnDropHintClass: _angular_core.Signal<string>;
1593
- protected readonly columnResizerClass: _angular_core.Signal<string>;
1594
- protected readonly dragColumn: _angular_core.WritableSignal<Column | null>;
1595
- /** Whether a dragged column goes after the hovered column rather than before it. */
1596
- protected readonly dropAfter: _angular_core.WritableSignal<boolean>;
1597
- protected readonly dropColumn: _angular_core.WritableSignal<Column | null>;
1598
- protected readonly filterMenuEnabled: _angular_core.Signal<boolean>;
1599
- protected readonly filterRowCellClass: _angular_core.Signal<string>;
1600
- protected readonly filterRowEnabled: _angular_core.Signal<boolean>;
1601
- protected readonly footerClass: _angular_core.Signal<string>;
1602
- protected readonly footerTableClass: _angular_core.Signal<string>;
1603
- protected readonly footerVisible: _angular_core.Signal<boolean>;
1604
- protected readonly gridDetailTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
1605
- /** A treegrid while rows are grouped, a grid otherwise. */
1606
- protected readonly gridHeaderElement: _angular_core.Signal<ElementRef<HTMLDivElement>>;
1607
- protected readonly gridHeaderTableElement: _angular_core.Signal<ElementRef<HTMLTableElement>>;
1608
- protected readonly gridRole: _angular_core.Signal<"grid" | "treegrid">;
1609
- protected readonly gridService: GridService;
1610
- protected readonly gridWidthSet: _angular_core.WritableSignal<boolean>;
1611
- protected readonly groupColumnList: _angular_core.Signal<CdkDropList<any> | undefined>;
1612
- protected readonly groupPanelClass: _angular_core.Signal<string>;
1613
- protected readonly groupPanelPlaceholderClass: _angular_core.Signal<string>;
1614
- protected readonly groupPanelPlaceholderVisible: _angular_core.WritableSignal<boolean>;
1615
- protected readonly groupable: _angular_core.Signal<boolean>;
1616
- protected readonly groupingInProgress: _angular_core.WritableSignal<boolean>;
1617
- protected readonly headerClass: _angular_core.Signal<string>;
1618
- /** Each header's keyboard shortcuts, for `aria-keyshortcuts`. */
1619
- protected readonly headerKeyShortcuts: _angular_core.Signal<Map<string, string>>;
1620
- protected readonly headerMarginInlineEnd: _angular_core.Signal<number>;
1621
- protected readonly headerTableCellClass: _angular_core.Signal<string>;
1622
- protected readonly headerTableClass: _angular_core.Signal<string>;
1623
- protected readonly headerTableColumnTitleClass: _angular_core.Signal<string>;
1624
- protected readonly headerTableColumnWrapClass: _angular_core.Signal<string>;
1625
- protected readonly headerTableRowClass: _angular_core.Signal<string>;
1626
- protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaGridMessages>;
1627
- protected readonly multiselectable: _angular_core.Signal<boolean | undefined>;
1628
- protected readonly noDataClass: _angular_core.Signal<string>;
1629
- protected readonly noDataTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
1630
- /** The column whose group chip has its menu open. */
1631
- protected readonly openGroupMenuColumnId: _angular_core.WritableSignal<string | null>;
1632
- protected readonly resizing: _angular_core.WritableSignal<boolean>;
1633
- protected readonly toolbarContext: _angular_core.Signal<GridToolbarTemplateContext>;
1634
- protected readonly toolbarElement: _angular_core.Signal<ElementRef<HTMLDivElement> | undefined>;
1635
- protected readonly toolbarTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
1636
- protected readonly uid: string;
1637
- /**
1638
- * @description The grid's accessible name, such as "Orders". Use it, or `aria-labelledby`. The grid moves
1639
- * the name to its `role="grid"` element, so the host keeps no `aria-label` attribute.
1640
- * @default null
1641
- */
1642
- readonly ariaLabel: _angular_core.InputSignal<string | null>;
1643
- /**
1644
- * @description The id of the element that names the grid, such as a heading above it.
1645
- * @default null
1646
- */
1647
- readonly ariaLabelledBy: _angular_core.InputSignal<string | null>;
1648
- /**
1649
- * @description The row data to be displayed in the grid.
1650
- */
1651
- readonly data: _angular_core.InputSignal<Iterable<T>>;
1652
- /**
1653
- * @description Keys of the rows whose detail row is open: `rowKey` values, or the data items when the grid
1654
- * has no `rowKey`. Supports two-way binding; `expandedKeysChange` emits when the user opens or closes one.
1655
- * @default []
1656
- */
1657
- readonly expandedKeys: _angular_core.ModelSignal<unknown[]>;
1658
- /**
1659
- * @description Emitted when the user changes the page or the page size, when the user's sort or filter moves a
1660
- * client-side grid back to the first page, and when the grid moves back to the last page because the data shrank.
1661
- * Not emitted for `skip` or `pageSize` values set from code.
1662
- */
1663
- readonly pageChange: _angular_core.OutputEmitterRef<PageChangeEvent>;
1664
- /**
1665
- * @description The number of items to be displayed on a page. Values that aren't positive integers are
1666
- * ignored. A new size keeps the first row of the current page in view. Supports two-way binding.
1667
- */
1668
- readonly pageSize: _angular_core.ModelSignal<number | undefined>;
1669
- /**
1670
- * @description The page sizes that the user can select from.
1671
- * These values will be displayed in the page size dropdown.
1672
- * @default []
1673
- */
1674
- readonly pageSizeValues: _angular_core.InputSignal<number[]>;
1675
- /**
1676
- * @description The method to be used to set initial column widths.
1677
- * It can be the following values:
1678
- * - `fitView`: The columns will be resized to fit the available width.
1679
- * - `auto`: The columns will be resized based on the content.
1680
- * - A number representing the width of the columns. All columns except the columns with a specified width
1681
- * will have the same width.
1682
- * @default "fitView"
1683
- */
1684
- readonly resizeMethod: _angular_core.InputSignal<ResizeMethod>;
1685
- /**
1686
- * @description Whether the pager is responsive.
1687
- * If set to `true`, the pager will be displayed as a dropdown when the grid width gets smaller.
1688
- * @default true
1689
- */
1690
- readonly responsivePager: _angular_core.InputSignalWithTransform<boolean, unknown>;
1691
- /**
1692
- * @description The border radius of the grid.
1693
- * @default "medium"
1694
- */
1695
- readonly rounded: _angular_core.InputSignal<"small" | "none" | "medium" | "large" | null | undefined>;
1696
- /**
1697
- * @description Returns extra CSS classes for the data row that shows an item, merged onto the row's own
1698
- * classes via `tailwind-merge`. It runs again whenever the item's row is rebound.
1699
- * Group, group footer and detail rows are not affected.
1700
- *
1701
- * To dim a row, prefer a text style such as `text-muted-foreground` over `opacity`: locked cells stay
1702
- * opaque so scrolled cells pass beneath them, and opacity on the row or its cells would let those show through.
1703
- * @default null
1704
- */
1705
- readonly rowClass: _angular_core.InputSignal<GridRowClass<T> | null>;
1706
- /**
1707
- * @description Field name or selector used to derive a stable identity for each row.
1708
- * The resolved value must be unique within the grid data.
1709
- * @default null
1710
- */
1711
- readonly rowKey: _angular_core.InputSignal<GridKeySelector<unknown>>;
1712
- /**
1713
- * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
1714
- * @default ""
1715
- */
1716
- /**
1717
- * @description The number of rows before the current page, in client paging. Supports two-way binding. With
1718
- * `monaGridServerBinding`, the directive's `skip` sets the page and this model reports user changes.
1719
- * @default 0
1720
- */
1721
- readonly skip: _angular_core.ModelSignal<number>;
1722
- /** @description Additional CSS classes merged onto the host element via `tailwind-merge`. */
1723
- readonly userClass: _angular_core.InputSignal<string>;
1724
- constructor();
1725
- protected isColumnDragDisabled(column: Column): boolean;
1726
- /** A dragged header leaves the page during the drag; give focus back to it once it's dropped. */
1727
- protected onColumnDragEnd(event: CdkDragEnd<Column>): void;
1728
- protected onColumnDragEnter(event: CdkDragEnter<void, Column>): void;
1729
- protected onColumnDragEnterForGrouping(): void;
1730
- protected onColumnDragExitForGrouping(): void;
1731
- /** Puts the drop hint before or after the header under the pointer, which works for touch too. */
1732
- protected onColumnDragMove(event: CdkDragMove<Column>): void;
1733
- protected onColumnDragStart(event: CdkDragStart<Column>): void;
1734
- protected onColumnDrop(): void;
1735
- protected onColumnDropForGrouping(event: CdkDragDrop<Column, void, Column>): void;
1736
- protected onColumnFilter(column: Column, state: ColumnFilterState): void;
1737
- protected onColumnResizeEnd(event: ColumnResizeEvent): void;
1738
- protected onColumnResizeStart(): void;
1739
- protected onColumnSort(column: Column): void;
1740
- protected onGroupColumnReorder(column: Column, moveAs: "prev" | "next"): void;
1741
- /** Delete or Backspace on a group chip, or on its remove button, removes the group. */
1742
- protected onGroupingColumnRemove(event: Event, column: Column): void;
1743
- protected onGroupingColumnSort(column: Column): void;
1744
- /**
1745
- * Ctrl+Shift+ArrowLeft/Right (Cmd on macOS) moves the focused header's column, and Ctrl+Shift+G groups the
1746
- * grid by it: the keyboard way to drag a header.
1747
- */
1748
- protected onHeaderKeydown(event: KeyboardEvent, column: Column): void;
1749
- protected onPageChange(event: PageChangeEvent): void;
1750
- /** The toolbar's roving Tab stop follows focus, also when a control is clicked. */
1751
- protected onToolbarFocusIn(event: FocusEvent): void;
1752
- /** ArrowLeft/Right move between the toolbar's controls (mirrored in RTL), Home and End to its ends. */
1753
- protected onToolbarKeydown(event: KeyboardEvent): void;
1754
- /** Alt+ArrowDown on a header: opens the column's filter menu. */
1755
- protected openColumnFilterMenu(column: Column): void;
1756
- private clampCalculatedWidth;
1757
- private clearDragState;
1758
- private createFitViewWidthMap;
1759
- private getColumnLockBucket;
1760
- private getTableColumnHeaderCellList;
1761
- private getToolbarFocusTargets;
1762
- private isElementDisabled;
1763
- private isElementHidden;
1764
- private reportPage;
1765
- private setDataEffect;
1766
- /** An edit whose row was replaced follows the new data; one whose row left the data or the view ends. */
1767
- private setEditSessionEffect;
1768
- private setFitViewScrollbarSyncEffect;
1769
- private setFooterScrollElementEffect;
1770
- private setGridDetailEffect;
1771
- private setInitialCalculatedWidthOfColumns;
1772
- private setPageSizeEffect;
1773
- private setPagingEffects;
1774
- private setResizeObserver;
1775
- private syncToolbarFocusTargets;
1776
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridComponent<any>, never>;
1777
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<GridComponent<any>, "mona-grid", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "expandedKeys": { "alias": "expandedKeys"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "pageSizeValues": { "alias": "pageSizeValues"; "required": false; "isSignal": true; }; "resizeMethod": { "alias": "resizeMethod"; "required": false; "isSignal": true; }; "responsivePager": { "alias": "responsivePager"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "rowClass": { "alias": "rowClass"; "required": false; "isSignal": true; }; "rowKey": { "alias": "rowKey"; "required": false; "isSignal": true; }; "skip": { "alias": "skip"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, { "expandedKeys": "expandedKeysChange"; "pageChange": "pageChange"; "pageSize": "pageSizeChange"; "skip": "skipChange"; }, ["columnDefinitions", "gridDetailTemplate", "noDataTemplate", "toolbarTemplate"], never, true, never>;
1778
- }
1779
-
1780
- declare const GRID_DEFAULT_MESSAGES: {
1781
- all: string;
1782
- apply: string;
1783
- cancel: string;
1784
- cancelNewRow: string;
1785
- cancelRowEdit: (rowNumber: number) => string;
1786
- clearFilter: (column: string) => string;
1787
- collapseDetail: (rowNumber: number) => string;
1788
- columnGrouped: (column: string) => string;
1789
- columnMoved: (column: string, position: number) => string;
1790
- columns: string;
1791
- columnsSelected: (count: number) => string;
1792
- commandColumnTitle: string;
1793
- delete: string;
1794
- deleteRowConfirmation: (rowNumber: number) => string;
1795
- deleteRowTitle: string;
1796
- details: string;
1797
- dragColumnHeaderToGroup: string;
1798
- edit: string;
1799
- editRow: (rowNumber: number) => string;
1800
- expandDetail: (rowNumber: number) => string;
1801
- fieldValidationError: string;
1802
- filterByColumn: (column: string) => string;
1803
- filterByColumnFiltered: (column: string) => string;
1804
- filterOperator: (column: string, operator: string) => string;
1805
- filterPlaceholder: string;
1806
- group: string;
1807
- groupOptions: (column: string) => string;
1808
- loading: string;
1809
- modified: string;
1810
- moveAsNext: string;
1811
- moveAsPrevious: string;
1812
- moveRow: string;
1813
- noData: string;
1814
- remove: string;
1815
- removeRow: (rowNumber: number) => string;
1816
- reorderRow: (rowNumber: number) => string;
1817
- resizeColumn: (column: string) => string;
1818
- rowReorder: string;
1819
- rowReorderDisabled: string;
1820
- rowReorderDisabledEditing: string;
1821
- rowReorderDisabledFiltered: string;
1822
- rowReorderDisabledGrouped: string;
1823
- rowReorderDisabledServerBinding: string;
1824
- rowReorderDisabledSingleRow: string;
1825
- rowReorderDisabledSorted: string;
1826
- rowReorderDisabledVirtualScroll: string;
1827
- rowReorderHandleAriaLabel: (rowLabel: string, keyboardHint: string, disabledReason?: string) => string;
1828
- rowReorderKeyboardHint: string;
1829
- rowReorderMoved: (fromRowNumber: number, toPosition: number) => string;
1830
- rowValidationError: string;
1831
- save: string;
1832
- saveNewRow: string;
1833
- saveRow: (rowNumber: number) => string;
1834
- selectAllRows: string;
1835
- selectRow: (rowNumber: number) => string;
1836
- sortOrder: (position: number) => string;
1837
- toolbar: string;
1788
+ export declare class GridComponent<T> implements GridVariantInput {
1789
+ #private;
1790
+ private readonly columnDefinitions;
1791
+ private readonly filterMenus;
1792
+ private readonly footerScrollElement;
1793
+ /**
1794
+ * Every row of the grid: header rows, add row, body rows (group, detail and group footer rows included) and
1795
+ * footer. Exact when every row is drawn or rows are plain; -1 (unknown) for paged groups or detail rows.
1796
+ */
1797
+ protected readonly ariaRowCount: import("@angular/core").Signal<number>;
1798
+ protected readonly baseClass: import("@angular/core").Signal<string>;
1799
+ protected readonly columnActionsClass: import("@angular/core").Signal<string>;
1800
+ protected readonly columnDragPreviewClass: import("@angular/core").Signal<string>;
1801
+ protected readonly columnDragging: import("@angular/core").WritableSignal<boolean>;
1802
+ protected readonly columnDropHintClass: import("@angular/core").Signal<string>;
1803
+ protected readonly columnResizerClass: import("@angular/core").Signal<string>;
1804
+ protected readonly dragColumn: import("@angular/core").WritableSignal<Column | null>;
1805
+ /** Whether a dragged column goes after the hovered column rather than before it. */
1806
+ protected readonly dropAfter: import("@angular/core").WritableSignal<boolean>;
1807
+ protected readonly dropColumn: import("@angular/core").WritableSignal<Column | null>;
1808
+ protected readonly filterMenuEnabled: import("@angular/core").Signal<boolean>;
1809
+ protected readonly filterRowCellClass: import("@angular/core").Signal<string>;
1810
+ protected readonly filterRowEnabled: import("@angular/core").Signal<boolean>;
1811
+ protected readonly footerClass: import("@angular/core").Signal<string>;
1812
+ protected readonly footerTableClass: import("@angular/core").Signal<string>;
1813
+ protected readonly footerVisible: import("@angular/core").Signal<boolean>;
1814
+ protected readonly gridDetailTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
1815
+ /** A treegrid while rows are grouped, a grid otherwise. */
1816
+ protected readonly gridHeaderElement: import("@angular/core").Signal<ElementRef<HTMLDivElement>>;
1817
+ protected readonly gridHeaderTableElement: import("@angular/core").Signal<ElementRef<HTMLTableElement>>;
1818
+ protected readonly gridRole: import("@angular/core").Signal<"grid" | "treegrid">;
1819
+ protected readonly gridService: GridService;
1820
+ protected readonly gridWidthSet: import("@angular/core").WritableSignal<boolean>;
1821
+ protected readonly groupColumnList: import("@angular/core").Signal<CdkDropList<any> | undefined>;
1822
+ protected readonly groupPanelClass: import("@angular/core").Signal<string>;
1823
+ protected readonly groupPanelPlaceholderClass: import("@angular/core").Signal<string>;
1824
+ protected readonly groupPanelPlaceholderVisible: import("@angular/core").WritableSignal<boolean>;
1825
+ protected readonly groupable: import("@angular/core").Signal<boolean>;
1826
+ protected readonly groupingInProgress: import("@angular/core").WritableSignal<boolean>;
1827
+ protected readonly headerClass: import("@angular/core").Signal<string>;
1828
+ /** Each header's keyboard shortcuts, for `aria-keyshortcuts`. */
1829
+ protected readonly headerKeyShortcuts: import("@angular/core").Signal<Map<string, string>>;
1830
+ protected readonly headerMarginInlineEnd: import("@angular/core").Signal<number>;
1831
+ protected readonly headerTableCellClass: import("@angular/core").Signal<string>;
1832
+ protected readonly headerTableClass: import("@angular/core").Signal<string>;
1833
+ protected readonly headerTableColumnTitleClass: import("@angular/core").Signal<string>;
1834
+ protected readonly headerTableColumnWrapClass: import("@angular/core").Signal<string>;
1835
+ protected readonly headerTableRowClass: import("@angular/core").Signal<string>;
1836
+ protected readonly messages: import("@angular/core").Signal<import("@nanahoshi/mona-ui/i18n").MonaGridMessages>;
1837
+ protected readonly multiselectable: import("@angular/core").Signal<boolean | undefined>;
1838
+ protected readonly noDataClass: import("@angular/core").Signal<string>;
1839
+ protected readonly noDataTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
1840
+ /** The column whose group chip has its menu open. */
1841
+ protected readonly openGroupMenuColumnId: import("@angular/core").WritableSignal<string | null>;
1842
+ protected readonly resizing: import("@angular/core").WritableSignal<boolean>;
1843
+ protected readonly toolbarContext: import("@angular/core").Signal<GridToolbarTemplateContext>;
1844
+ protected readonly toolbarElement: import("@angular/core").Signal<ElementRef<HTMLDivElement> | undefined>;
1845
+ protected readonly toolbarTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
1846
+ protected readonly uid: string;
1847
+ /**
1848
+ * @description The grid's accessible name, such as "Orders". Use it, or `aria-labelledby`. The grid moves
1849
+ * the name to its `role="grid"` element, so the host keeps no `aria-label` attribute.
1850
+ * @default null
1851
+ */
1852
+ readonly ariaLabel: import("@angular/core").InputSignal<string | null>;
1853
+ /**
1854
+ * @description The id of the element that names the grid, such as a heading above it.
1855
+ * @default null
1856
+ */
1857
+ readonly ariaLabelledBy: import("@angular/core").InputSignal<string | null>;
1858
+ /**
1859
+ * @description The row data to be displayed in the grid.
1860
+ */
1861
+ readonly data: import("@angular/core").InputSignal<Iterable<T>>;
1862
+ /**
1863
+ * @description Keys of the rows whose detail row is open: `rowKey` values, or the data items when the grid
1864
+ * has no `rowKey`. Supports two-way binding; `expandedKeysChange` emits when the user opens or closes one.
1865
+ * @default []
1866
+ */
1867
+ readonly expandedKeys: import("@angular/core").ModelSignal<unknown[]>;
1868
+ /**
1869
+ * @description Emitted when the user changes the page or the page size, when the user's sort or filter moves a
1870
+ * client-side grid back to the first page, and when the grid moves back to the last page because the data shrank.
1871
+ * Not emitted for `skip` or `pageSize` values set from code.
1872
+ */
1873
+ readonly pageChange: import("@angular/core").OutputEmitterRef<PageChangeEvent>;
1874
+ /**
1875
+ * @description The number of items to be displayed on a page. Values that aren't positive integers are
1876
+ * ignored. A new size keeps the first row of the current page in view. Supports two-way binding.
1877
+ */
1878
+ readonly pageSize: import("@angular/core").ModelSignal<number | undefined>;
1879
+ /**
1880
+ * @description The page sizes that the user can select from.
1881
+ * These values will be displayed in the page size dropdown.
1882
+ * @default []
1883
+ */
1884
+ readonly pageSizeValues: import("@angular/core").InputSignal<number[]>;
1885
+ /**
1886
+ * @description The method to be used to set initial column widths.
1887
+ * It can be the following values:
1888
+ * - `fitView`: The columns will be resized to fit the available width.
1889
+ * - `auto`: The columns will be resized based on the content.
1890
+ * - A number representing the width of the columns. All columns except the columns with a specified width
1891
+ * will have the same width.
1892
+ * @default "fitView"
1893
+ */
1894
+ readonly resizeMethod: import("@angular/core").InputSignal<ResizeMethod>;
1895
+ /**
1896
+ * @description Whether the pager is responsive.
1897
+ * If set to `true`, the pager will be displayed as a dropdown when the grid width gets smaller.
1898
+ * @default true
1899
+ */
1900
+ readonly responsivePager: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
1901
+ /**
1902
+ * @description The border radius of the grid.
1903
+ * @default "medium"
1904
+ */
1905
+ readonly rounded: import("@angular/core").InputSignal<"small" | "none" | "medium" | "large" | null | undefined>;
1906
+ /**
1907
+ * @description Returns extra CSS classes for the data row that shows an item, merged onto the row's own
1908
+ * classes via `tailwind-merge`. It runs again whenever the item's row is rebound.
1909
+ * Group, group footer and detail rows are not affected.
1910
+ *
1911
+ * To dim a row, prefer a text style such as `text-muted-foreground` over `opacity`: locked cells stay
1912
+ * opaque so scrolled cells pass beneath them, and opacity on the row or its cells would let those show through.
1913
+ * @default null
1914
+ */
1915
+ readonly rowClass: import("@angular/core").InputSignal<GridRowClass<T> | null>;
1916
+ /**
1917
+ * @description Field name or selector used to derive a stable identity for each row.
1918
+ * The resolved value must be unique within the grid data.
1919
+ * @default null
1920
+ */
1921
+ readonly rowKey: import("@angular/core").InputSignal<GridKeySelector<unknown>>;
1922
+ /**
1923
+ * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
1924
+ * @default ""
1925
+ */
1926
+ /**
1927
+ * @description The number of rows before the current page, in client paging. Supports two-way binding. With
1928
+ * `monaGridServerBinding`, the directive's `skip` sets the page and this model reports user changes.
1929
+ * @default 0
1930
+ */
1931
+ readonly skip: import("@angular/core").ModelSignal<number>;
1932
+ /** @description Additional CSS classes merged onto the host element via `tailwind-merge`. */
1933
+ readonly userClass: import("@angular/core").InputSignal<string>;
1934
+ constructor();
1935
+ protected isColumnDragDisabled(column: Column): boolean;
1936
+ /** A dragged header leaves the page during the drag; give focus back to it once it's dropped. */
1937
+ protected onColumnDragEnd(event: CdkDragEnd<Column>): void;
1938
+ protected onColumnDragEnter(event: CdkDragEnter<void, Column>): void;
1939
+ protected onColumnDragEnterForGrouping(): void;
1940
+ protected onColumnDragExitForGrouping(): void;
1941
+ /** Puts the drop hint before or after the header under the pointer, which works for touch too. */
1942
+ protected onColumnDragMove(event: CdkDragMove<Column>): void;
1943
+ protected onColumnDragStart(event: CdkDragStart<Column>): void;
1944
+ protected onColumnDrop(): void;
1945
+ protected onColumnDropForGrouping(event: CdkDragDrop<Column, void, Column>): void;
1946
+ protected onColumnFilter(column: Column, state: ColumnFilterState): void;
1947
+ protected onColumnResizeEnd(event: ColumnResizeEvent): void;
1948
+ protected onColumnResizeStart(): void;
1949
+ protected onColumnSort(column: Column): void;
1950
+ protected onGroupColumnReorder(column: Column, moveAs: "prev" | "next"): void;
1951
+ /** Delete or Backspace on a group chip, or on its remove button, removes the group. */
1952
+ protected onGroupingColumnRemove(event: Event, column: Column): void;
1953
+ protected onGroupingColumnSort(column: Column): void;
1954
+ /**
1955
+ * Ctrl+Shift+ArrowLeft/Right (Cmd on macOS) moves the focused header's column, and Ctrl+Shift+G groups the
1956
+ * grid by it: the keyboard way to drag a header.
1957
+ */
1958
+ protected onHeaderKeydown(event: KeyboardEvent, column: Column): void;
1959
+ protected onPageChange(event: PageChangeEvent): void;
1960
+ /** The toolbar's roving Tab stop follows focus, also when a control is clicked. */
1961
+ protected onToolbarFocusIn(event: FocusEvent): void;
1962
+ /** ArrowLeft/Right move between the toolbar's controls (mirrored in RTL), Home and End to its ends. */
1963
+ protected onToolbarKeydown(event: KeyboardEvent): void;
1964
+ /** Alt+ArrowDown on a header: opens the column's filter menu. */
1965
+ protected openColumnFilterMenu(column: Column): void;
1966
+ private clampCalculatedWidth;
1967
+ private clearDragState;
1968
+ private createFitViewWidthMap;
1969
+ private getColumnLockBucket;
1970
+ private getTableColumnHeaderCellList;
1971
+ private getToolbarFocusTargets;
1972
+ private isElementDisabled;
1973
+ private isElementHidden;
1974
+ private reportPage;
1975
+ private setDataEffect;
1976
+ /** An edit whose row was replaced follows the new data; one whose row left the data or the view ends. */
1977
+ private setEditSessionEffect;
1978
+ private setFitViewScrollbarSyncEffect;
1979
+ private setFooterScrollElementEffect;
1980
+ private setGridDetailEffect;
1981
+ private setInitialCalculatedWidthOfColumns;
1982
+ private setPageSizeEffect;
1983
+ private setPagingEffects;
1984
+ private setResizeObserver;
1985
+ private syncToolbarFocusTargets;
1986
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridComponent<any>, never>;
1987
+ static ɵcmp: i0.ɵɵComponentDeclaration<GridComponent<any>, "mona-grid", never, {
1988
+ "ariaLabel": {
1989
+ "alias": "aria-label";
1990
+ "required": false;
1991
+ "isSignal": true;
1992
+ };
1993
+ "ariaLabelledBy": {
1994
+ "alias": "aria-labelledby";
1995
+ "required": false;
1996
+ "isSignal": true;
1997
+ };
1998
+ "data": {
1999
+ "alias": "data";
2000
+ "required": false;
2001
+ "isSignal": true;
2002
+ };
2003
+ "expandedKeys": {
2004
+ "alias": "expandedKeys";
2005
+ "required": false;
2006
+ "isSignal": true;
2007
+ };
2008
+ "pageSize": {
2009
+ "alias": "pageSize";
2010
+ "required": false;
2011
+ "isSignal": true;
2012
+ };
2013
+ "pageSizeValues": {
2014
+ "alias": "pageSizeValues";
2015
+ "required": false;
2016
+ "isSignal": true;
2017
+ };
2018
+ "resizeMethod": {
2019
+ "alias": "resizeMethod";
2020
+ "required": false;
2021
+ "isSignal": true;
2022
+ };
2023
+ "responsivePager": {
2024
+ "alias": "responsivePager";
2025
+ "required": false;
2026
+ "isSignal": true;
2027
+ };
2028
+ "rounded": {
2029
+ "alias": "rounded";
2030
+ "required": false;
2031
+ "isSignal": true;
2032
+ };
2033
+ "rowClass": {
2034
+ "alias": "rowClass";
2035
+ "required": false;
2036
+ "isSignal": true;
2037
+ };
2038
+ "rowKey": {
2039
+ "alias": "rowKey";
2040
+ "required": false;
2041
+ "isSignal": true;
2042
+ };
2043
+ "skip": {
2044
+ "alias": "skip";
2045
+ "required": false;
2046
+ "isSignal": true;
2047
+ };
2048
+ "userClass": {
2049
+ "alias": "class";
2050
+ "required": false;
2051
+ "isSignal": true;
2052
+ };
2053
+ }, {
2054
+ "expandedKeys": "expandedKeysChange";
2055
+ "pageChange": "pageChange";
2056
+ "pageSize": "pageSizeChange";
2057
+ "skip": "skipChange";
2058
+ }, ["columnDefinitions", "gridDetailTemplate", "noDataTemplate", "toolbarTemplate"], never, true, never>;
2059
+ }
2060
+ export declare const GRID_DEFAULT_MESSAGES: {
2061
+ all: string;
2062
+ apply: string;
2063
+ cancel: string;
2064
+ cancelNewRow: string;
2065
+ cancelRowEdit: (rowNumber: number) => string;
2066
+ clearFilter: (column: string) => string;
2067
+ collapseDetail: (rowNumber: number) => string;
2068
+ columnGrouped: (column: string) => string;
2069
+ columnMoved: (column: string, position: number) => string;
2070
+ columns: string;
2071
+ columnsSelected: (count: number) => string;
2072
+ commandColumnTitle: string;
2073
+ delete: string;
2074
+ deleteRowConfirmation: (rowNumber: number) => string;
2075
+ deleteRowTitle: string;
2076
+ details: string;
2077
+ dragColumnHeaderToGroup: string;
2078
+ edit: string;
2079
+ editRow: (rowNumber: number) => string;
2080
+ expandDetail: (rowNumber: number) => string;
2081
+ fieldValidationError: string;
2082
+ filterByColumn: (column: string) => string;
2083
+ filterByColumnFiltered: (column: string) => string;
2084
+ filterOperator: (column: string, operator: string) => string;
2085
+ filterPlaceholder: string;
2086
+ group: string;
2087
+ groupOptions: (column: string) => string;
2088
+ loading: string;
2089
+ modified: string;
2090
+ moveAsNext: string;
2091
+ moveAsPrevious: string;
2092
+ moveRow: string;
2093
+ noData: string;
2094
+ remove: string;
2095
+ removeRow: (rowNumber: number) => string;
2096
+ reorderRow: (rowNumber: number) => string;
2097
+ resizeColumn: (column: string) => string;
2098
+ rowReorder: string;
2099
+ rowReorderDisabled: string;
2100
+ rowReorderDisabledEditing: string;
2101
+ rowReorderDisabledFiltered: string;
2102
+ rowReorderDisabledGrouped: string;
2103
+ rowReorderDisabledServerBinding: string;
2104
+ rowReorderDisabledSingleRow: string;
2105
+ rowReorderDisabledSorted: string;
2106
+ rowReorderDisabledVirtualScroll: string;
2107
+ rowReorderHandleAriaLabel: (rowLabel: string, keyboardHint: string, disabledReason?: string) => string;
2108
+ rowReorderKeyboardHint: string;
2109
+ rowReorderMoved: (fromRowNumber: number, toPosition: number) => string;
2110
+ rowValidationError: string;
2111
+ save: string;
2112
+ saveNewRow: string;
2113
+ saveRow: (rowNumber: number) => string;
2114
+ selectAllRows: string;
2115
+ selectRow: (rowNumber: number) => string;
2116
+ sortOrder: (position: number) => string;
2117
+ toolbar: string;
1838
2118
  };
1839
-
1840
- export { CellEditEvent, ColumnReorderEvent, ColumnSortEvent, GRID_DEFAULT_MESSAGES, GridAddCommandDirective, GridAddEvent, GridCancelCommandDirective, GridCancelEvent, GridCellTemplateDirective, GridColumnComponent, GridColumnTitleTemplateDirective, GridCommandColumnComponent, GridComponent, GridContextMenuDirective, GridDetailTemplateDirective, GridEditCommandDirective, GridEditEvent, GridEditTemplateDirective, GridEditableDirective, GridExportDirective, GridFilterableDirective, GridFooterTemplateDirective, GridGroupFooterTemplateDirective, GridGroupableDirective, GridHeaderTemplateDirective, GridNoDataTemplateDirective, GridRemoveCommandDirective, GridRemoveEvent, GridReorderableDirective, GridResizableDirective, GridRowReorderableDirective, GridSaveCommandDirective, GridSaveEvent, GridSelectableDirective, GridServerBindingDirective, GridSortableDirective, GridStatePersistenceDirective, GridToolbarTemplateDirective, GridVirtualScrollDirective, Row, RowEditEvent, RowReorderEvent };
1841
- export type { AggregateFunction, Column, ColumnConfig, ColumnFormat, ColumnFormatFunction, ColumnKind, ColumnResizeEvent, ColumnSortComparator, EditableOptions, FilterableOptions, GridCancelReason, GridColumnLockedPosition, GridColumnState, GridDataState, GridEditFormContext, GridEditOperation, GridEditSchemaFactory, GridEditSession, GridEditTemplateContext, GridKeySelector, GridRowClass, GridRowClassValue, GridRowCommand, GridSaveOperation, GridState, GridStateCompositeFilterDescriptor, GridStateFilterDescriptor, GridStateFilterValue, GridStateLoadResult, GridStateLoadStatus, GridStatePersistenceOptions, GridStateSortDescriptor, GridStateVersion, GridToolbarContext, GridToolbarTemplateContext, GroupDescriptor, GroupableOptions, ReorderableOptions, ResizableOptions, ResizeMethod, RowReorderableOptions, SelectableOptions, SortableOptions };
2119
+ export type { AggregateFunction, Column, ColumnConfig, ColumnFormat, ColumnFormatFunction, ColumnKind, ColumnReorderEvent, ColumnResizeEvent, ColumnSortComparator, ColumnSortEvent, EditableOptions, GridCancelReason, GridColumnLockedPosition, GridDataState, GridEditFormContext, GridEditOperation, GridEditSchemaFactory, GridEditSession, GridEditTemplateContext, GridKeySelector, GridRowClass, GridRowClassValue, GridRowCommand, GridSaveOperation, GridToolbarContext, GridToolbarTemplateContext, ReorderableOptions, ResizableOptions, ResizeMethod, Row, RowReorderableOptions };