@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.
- package/docs/api/auto-complete.md +67 -0
- package/docs/api/avatar.md +31 -0
- package/docs/api/breadcrumb.md +74 -0
- package/docs/api/button-group.md +71 -0
- package/docs/api/button.md +84 -0
- package/docs/api/calendar.md +123 -0
- package/docs/api/card.md +97 -0
- package/docs/api/chart.md +4380 -0
- package/docs/api/check-box.md +70 -0
- package/docs/api/chip.md +55 -0
- package/docs/api/circular-progress-bar.md +71 -0
- package/docs/api/collapsible.md +71 -0
- package/docs/api/color-gradient.md +54 -0
- package/docs/api/color-palette.md +52 -0
- package/docs/api/color-picker.md +89 -0
- package/docs/api/combo-box.md +69 -0
- package/docs/api/command.md +282 -0
- package/docs/api/common.md +599 -0
- package/docs/api/contextmenu.md +239 -0
- package/docs/api/date-input.md +119 -0
- package/docs/api/date-picker.md +67 -0
- package/docs/api/datetime-picker.md +72 -0
- package/docs/api/dialog.md +291 -0
- package/docs/api/dropdown-button.md +248 -0
- package/docs/api/dropdown-list.md +72 -0
- package/docs/api/dropdowns.md +172 -0
- package/docs/api/editor.md +117 -0
- package/docs/api/expansion-panel.md +85 -0
- package/docs/api/fieldset.md +33 -0
- package/docs/api/filter.md +116 -0
- package/docs/api/grid.md +1445 -0
- package/docs/api/i18n.md +1699 -0
- package/docs/api/label.md +58 -0
- package/docs/api/list-box.md +301 -0
- package/docs/api/list-view.md +294 -0
- package/docs/api/list.md +119 -0
- package/docs/api/locales.md +134 -0
- package/docs/api/menubar.md +275 -0
- package/docs/api/multi-select.md +92 -0
- package/docs/api/notification.md +164 -0
- package/docs/api/numeric-text-box.md +130 -0
- package/docs/api/otp-input.md +100 -0
- package/docs/api/pager.md +371 -0
- package/docs/api/placeholder.md +18 -0
- package/docs/api/popover.md +170 -0
- package/docs/api/popup-menu.md +328 -0
- package/docs/api/popup.md +299 -0
- package/docs/api/progress-bar.md +79 -0
- package/docs/api/query.md +367 -0
- package/docs/api/radio-button.md +113 -0
- package/docs/api/rating.md +187 -0
- package/docs/api/scroll-view.md +93 -0
- package/docs/api/segmented.md +114 -0
- package/docs/api/sheet.md +65 -0
- package/docs/api/sidebar.md +583 -0
- package/docs/api/skeleton.md +26 -0
- package/docs/api/slider.md +173 -0
- package/docs/api/spinner.md +132 -0
- package/docs/api/split-button.md +261 -0
- package/docs/api/splitter.md +57 -0
- package/docs/api/stepper.md +148 -0
- package/docs/api/switch.md +78 -0
- package/docs/api/tabs.md +139 -0
- package/docs/api/text-area.md +20 -0
- package/docs/api/text-box.md +106 -0
- package/docs/api/theme.md +627 -0
- package/docs/api/time-picker.md +69 -0
- package/docs/api/time-selector.md +54 -0
- package/docs/api/tooltip.md +112 -0
- package/docs/api/tree-view.md +631 -0
- package/docs/api/window.md +245 -0
- package/docs/auto-complete.md +28 -329
- package/docs/avatar.md +4 -24
- package/docs/breadcrumb.md +10 -65
- package/docs/button-group.md +7 -60
- package/docs/button.md +8 -67
- package/docs/calendar.md +16 -121
- package/docs/card.md +16 -79
- package/docs/chart-bar.md +16 -234
- package/docs/chart-financial.md +10 -121
- package/docs/chart-funnel.md +13 -176
- package/docs/chart-heatmap.md +15 -131
- package/docs/chart-line-area.md +12 -137
- package/docs/chart-pie.md +17 -221
- package/docs/chart-radar.md +13 -129
- package/docs/chart-radial.md +13 -211
- package/docs/chart-scatter.md +6 -74
- package/docs/chart-treemap.md +14 -196
- package/docs/chart.md +168 -1892
- package/docs/checkbox.md +5 -61
- package/docs/chip.md +7 -42
- package/docs/circular-progress-bar.md +9 -61
- package/docs/collapsible.md +5 -87
- package/docs/color-gradient.md +8 -81
- package/docs/color-palette.md +7 -69
- package/docs/color-picker.md +9 -105
- package/docs/combo-box.md +28 -331
- package/docs/command.md +25 -236
- package/docs/contextmenu.md +15 -140
- package/docs/date-picker.md +7 -110
- package/docs/datetime-picker.md +7 -129
- package/docs/decimal-textbox.md +6 -69
- package/docs/dialog.md +23 -263
- package/docs/dropdown-button.md +15 -146
- package/docs/dropdown-list.md +29 -332
- package/docs/editor.md +10 -164
- package/docs/expansion-panel.md +7 -69
- package/docs/fieldset.md +5 -24
- package/docs/grid-columns.md +12 -92
- package/docs/grid-editing.md +29 -291
- package/docs/grid-grouping.md +11 -50
- package/docs/grid-rows.md +10 -74
- package/docs/grid-selection.md +7 -36
- package/docs/grid-server.md +8 -293
- package/docs/grid-sorting-filtering.md +10 -333
- package/docs/grid-state-export.md +17 -228
- package/docs/grid.md +23 -216
- package/docs/input.md +7 -19
- package/docs/installation.md +147 -15
- package/docs/introduction.md +37 -15
- package/docs/label.md +8 -39
- package/docs/list-box.md +21 -253
- package/docs/list-view.md +25 -232
- package/docs/menubar.md +21 -167
- package/docs/multi-select.md +31 -350
- package/docs/notification.md +17 -116
- package/docs/numeric-textbox.md +9 -78
- package/docs/otp-input.md +9 -95
- package/docs/pager.md +19 -239
- package/docs/placeholder.md +5 -18
- package/docs/popover.md +13 -123
- package/docs/popup-menu.md +22 -243
- package/docs/popup.md +24 -248
- package/docs/progress-bar.md +10 -75
- package/docs/radio-button.md +8 -96
- package/docs/range-slider.md +9 -82
- package/docs/rating.md +15 -163
- package/docs/scroll-view.md +9 -86
- package/docs/segmented.md +8 -90
- package/docs/sheet.md +10 -74
- package/docs/sidebar-menus.md +20 -155
- package/docs/sidebar-state.md +16 -134
- package/docs/sidebar.md +18 -218
- package/docs/skeleton.md +5 -26
- package/docs/slider.md +9 -97
- package/docs/spinner.md +15 -95
- package/docs/split-button.md +21 -166
- package/docs/splitter.md +9 -56
- package/docs/stepper.md +13 -127
- package/docs/switch.md +8 -58
- package/docs/tabs.md +13 -111
- package/docs/textarea.md +4 -13
- package/docs/textbox.md +10 -77
- package/docs/theming-built-in-themes.md +67 -0
- package/docs/theming-custom-colors.md +274 -0
- package/docs/theming-custom-themes.md +168 -0
- package/docs/theming.md +164 -248
- package/docs/time-picker.md +7 -112
- package/docs/tooltip-directive.md +12 -96
- package/docs/tooltip.md +12 -96
- package/docs/tree-view.md +42 -495
- package/docs/window.md +19 -230
- package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +1089 -603
- package/fesm2022/nanahoshi-mona-ui-avatar.mjs +369 -184
- package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +658 -371
- package/fesm2022/nanahoshi-mona-ui-button-group.mjs +513 -359
- package/fesm2022/nanahoshi-mona-ui-button.mjs +622 -517
- package/fesm2022/nanahoshi-mona-ui-calendar.mjs +2070 -1573
- package/fesm2022/nanahoshi-mona-ui-card.mjs +620 -316
- package/fesm2022/nanahoshi-mona-ui-chart.mjs +61151 -64921
- package/fesm2022/nanahoshi-mona-ui-check-box.mjs +646 -317
- package/fesm2022/nanahoshi-mona-ui-chip.mjs +737 -516
- package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +441 -242
- package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +443 -389
- package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +1138 -814
- package/fesm2022/nanahoshi-mona-ui-color-palette.mjs +1114 -959
- package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +858 -504
- package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +1181 -742
- package/fesm2022/nanahoshi-mona-ui-command.mjs +1454 -853
- package/fesm2022/nanahoshi-mona-ui-common.mjs +569 -740
- package/fesm2022/nanahoshi-mona-ui-contextmenu.mjs +978 -532
- package/fesm2022/nanahoshi-mona-ui-date-input.mjs +283 -254
- package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +973 -451
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +1203 -658
- package/fesm2022/nanahoshi-mona-ui-dialog.mjs +1415 -936
- package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +1165 -568
- package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +1142 -677
- package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +1018 -729
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +3589 -2122
- package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +577 -359
- package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +311 -151
- package/fesm2022/nanahoshi-mona-ui-filter.mjs +1086 -718
- package/fesm2022/nanahoshi-mona-ui-grid-grid-colgroup.component-NhONCVIX.mjs +77 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-footer-row.component-Djv8ZnT5.mjs +480 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-list.component-WbXAzGCa.mjs +470 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-row.component-DkWTD3pN.mjs +2115 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-virtual-list.component-DAHqTwBJ.mjs +330 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid.styles-BmLU-3zP.mjs +3766 -0
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +5418 -2
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +1379 -1079
- package/fesm2022/nanahoshi-mona-ui-i18n.mjs +4451 -5068
- package/fesm2022/nanahoshi-mona-ui-internal-filter-input.mjs +344 -143
- package/fesm2022/nanahoshi-mona-ui-internal-indicator-icon.mjs +257 -127
- package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +2080 -1829
- package/fesm2022/nanahoshi-mona-ui-internal-popup-menu.mjs +103 -141
- package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +2498 -2706
- package/fesm2022/nanahoshi-mona-ui-internal.mjs +722 -1007
- package/fesm2022/nanahoshi-mona-ui-label.mjs +313 -202
- package/fesm2022/nanahoshi-mona-ui-list-box.mjs +1308 -1009
- package/fesm2022/nanahoshi-mona-ui-list-view.mjs +1411 -677
- package/fesm2022/nanahoshi-mona-ui-list.mjs +1 -6
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +556 -577
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +530 -573
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +530 -573
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +533 -576
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +530 -571
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +530 -571
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +576 -591
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +530 -565
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales.mjs +59 -77
- package/fesm2022/nanahoshi-mona-ui-menubar.mjs +1411 -829
- package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +1326 -702
- package/fesm2022/nanahoshi-mona-ui-notification.mjs +763 -675
- package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +1306 -826
- package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +1122 -897
- package/fesm2022/nanahoshi-mona-ui-pager.mjs +1110 -651
- package/fesm2022/nanahoshi-mona-ui-placeholder.mjs +95 -53
- package/fesm2022/nanahoshi-mona-ui-popover.mjs +559 -397
- package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +2323 -1694
- package/fesm2022/nanahoshi-mona-ui-popup.mjs +1657 -1455
- package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +441 -267
- package/fesm2022/nanahoshi-mona-ui-query.mjs +211 -340
- package/fesm2022/nanahoshi-mona-ui-radio-button.mjs +1017 -548
- package/fesm2022/nanahoshi-mona-ui-rating.mjs +874 -624
- package/fesm2022/nanahoshi-mona-ui-scroll-view.mjs +1130 -917
- package/fesm2022/nanahoshi-mona-ui-segmented.mjs +705 -455
- package/fesm2022/nanahoshi-mona-ui-sheet.mjs +461 -283
- package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +2791 -2449
- package/fesm2022/nanahoshi-mona-ui-skeleton.mjs +145 -90
- package/fesm2022/nanahoshi-mona-ui-slider.mjs +1563 -1103
- package/fesm2022/nanahoshi-mona-ui-spinner.mjs +738 -673
- package/fesm2022/nanahoshi-mona-ui-split-button.mjs +1287 -647
- package/fesm2022/nanahoshi-mona-ui-splitter.mjs +1313 -909
- package/fesm2022/nanahoshi-mona-ui-stepper.mjs +761 -540
- package/fesm2022/nanahoshi-mona-ui-switch.mjs +611 -280
- package/fesm2022/nanahoshi-mona-ui-tabs.mjs +1393 -841
- package/fesm2022/nanahoshi-mona-ui-text-area.mjs +142 -73
- package/fesm2022/nanahoshi-mona-ui-text-box.mjs +876 -374
- package/fesm2022/nanahoshi-mona-ui-theme.mjs +1465 -1449
- package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +897 -443
- package/fesm2022/nanahoshi-mona-ui-time-selector.mjs +1100 -703
- package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +789 -538
- package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +1361 -805
- package/fesm2022/nanahoshi-mona-ui-window.mjs +2145 -1531
- package/fesm2022/nanahoshi-mona-ui.mjs +1 -8
- package/llms.txt +80 -2
- package/package.json +62 -23
- package/types/nanahoshi-mona-ui-auto-complete.d.ts +367 -233
- package/types/nanahoshi-mona-ui-avatar.d.ts +722 -649
- package/types/nanahoshi-mona-ui-breadcrumb.d.ts +134 -103
- package/types/nanahoshi-mona-ui-button-group.d.ts +213 -152
- package/types/nanahoshi-mona-ui-button.d.ts +227 -166
- package/types/nanahoshi-mona-ui-calendar.d.ts +324 -259
- package/types/nanahoshi-mona-ui-card.d.ts +125 -111
- package/types/nanahoshi-mona-ui-chart.d.ts +10483 -7326
- package/types/nanahoshi-mona-ui-check-box.d.ts +293 -180
- package/types/nanahoshi-mona-ui-chip.d.ts +208 -141
- package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +194 -133
- package/types/nanahoshi-mona-ui-collapsible.d.ts +105 -87
- package/types/nanahoshi-mona-ui-color-gradient.d.ts +281 -213
- package/types/nanahoshi-mona-ui-color-palette.d.ts +201 -138
- package/types/nanahoshi-mona-ui-color-picker.d.ts +283 -194
- package/types/nanahoshi-mona-ui-combo-box.d.ts +401 -262
- package/types/nanahoshi-mona-ui-command.d.ts +279 -191
- package/types/nanahoshi-mona-ui-common.d.ts +360 -385
- package/types/nanahoshi-mona-ui-contextmenu.d.ts +142 -117
- package/types/nanahoshi-mona-ui-date-input.d.ts +97 -97
- package/types/nanahoshi-mona-ui-date-picker.d.ts +338 -208
- package/types/nanahoshi-mona-ui-datetime-picker.d.ts +413 -259
- package/types/nanahoshi-mona-ui-dialog.d.ts +470 -381
- package/types/nanahoshi-mona-ui-dropdown-button.d.ts +216 -168
- package/types/nanahoshi-mona-ui-dropdown-list.d.ts +369 -243
- package/types/nanahoshi-mona-ui-dropdowns.d.ts +255 -235
- package/types/nanahoshi-mona-ui-editor.d.ts +302 -235
- package/types/nanahoshi-mona-ui-expansion-panel.d.ts +140 -109
- package/types/nanahoshi-mona-ui-fieldset.d.ts +98 -68
- package/types/nanahoshi-mona-ui-filter.d.ts +150 -124
- package/types/nanahoshi-mona-ui-grid.d.ts +1956 -1678
- package/types/nanahoshi-mona-ui-i18n-icu.d.ts +25 -34
- package/types/nanahoshi-mona-ui-i18n.d.ts +999 -1052
- package/types/nanahoshi-mona-ui-internal-filter-input.d.ts +118 -71
- package/types/nanahoshi-mona-ui-internal-indicator-icon.d.ts +56 -27
- package/types/nanahoshi-mona-ui-internal-list.d.ts +474 -408
- package/types/nanahoshi-mona-ui-internal-popup-menu.d.ts +143 -150
- package/types/nanahoshi-mona-ui-internal-tree.d.ts +493 -506
- package/types/nanahoshi-mona-ui-internal.d.ts +195 -213
- package/types/nanahoshi-mona-ui-label.d.ts +108 -78
- package/types/nanahoshi-mona-ui-list-box.d.ts +392 -322
- package/types/nanahoshi-mona-ui-list-view.d.ts +423 -282
- package/types/nanahoshi-mona-ui-list.d.ts +2 -1
- package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales.d.ts +17 -19
- package/types/nanahoshi-mona-ui-menubar.d.ts +210 -181
- package/types/nanahoshi-mona-ui-multi-select.d.ts +416 -276
- package/types/nanahoshi-mona-ui-notification.d.ts +140 -151
- package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +407 -270
- package/types/nanahoshi-mona-ui-otp-input.d.ts +364 -241
- package/types/nanahoshi-mona-ui-pager.d.ts +379 -301
- package/types/nanahoshi-mona-ui-placeholder.d.ts +35 -28
- package/types/nanahoshi-mona-ui-popover.d.ts +176 -134
- package/types/nanahoshi-mona-ui-popup-menu.d.ts +488 -344
- package/types/nanahoshi-mona-ui-popup.d.ts +698 -560
- package/types/nanahoshi-mona-ui-progress-bar.d.ts +197 -137
- package/types/nanahoshi-mona-ui-query.d.ts +82 -88
- package/types/nanahoshi-mona-ui-radio-button.d.ts +434 -269
- package/types/nanahoshi-mona-ui-rating.d.ts +348 -254
- package/types/nanahoshi-mona-ui-scroll-view.d.ts +244 -172
- package/types/nanahoshi-mona-ui-segmented.d.ts +250 -175
- package/types/nanahoshi-mona-ui-sheet.d.ts +115 -63
- package/types/nanahoshi-mona-ui-sidebar.d.ts +653 -493
- package/types/nanahoshi-mona-ui-skeleton.d.ts +55 -39
- package/types/nanahoshi-mona-ui-slider.d.ts +503 -354
- package/types/nanahoshi-mona-ui-spinner.d.ts +125 -112
- package/types/nanahoshi-mona-ui-split-button.d.ts +241 -196
- package/types/nanahoshi-mona-ui-splitter.d.ts +124 -78
- package/types/nanahoshi-mona-ui-stepper.d.ts +206 -181
- package/types/nanahoshi-mona-ui-switch.d.ts +197 -131
- package/types/nanahoshi-mona-ui-tabs.d.ts +349 -248
- package/types/nanahoshi-mona-ui-text-area.d.ts +52 -36
- package/types/nanahoshi-mona-ui-text-box.d.ts +349 -218
- package/types/nanahoshi-mona-ui-theme.d.ts +415 -408
- package/types/nanahoshi-mona-ui-time-picker.d.ts +357 -217
- package/types/nanahoshi-mona-ui-time-selector.d.ts +255 -170
- package/types/nanahoshi-mona-ui-tooltip.d.ts +222 -144
- package/types/nanahoshi-mona-ui-tree-view.d.ts +466 -308
- package/types/nanahoshi-mona-ui-window.d.ts +494 -399
- package/types/nanahoshi-mona-ui.d.ts +1 -2
- package/fesm2022/nanahoshi-mona-ui-grid-grid-footer-row.component-DjNnVxHE.mjs +0 -181
- package/fesm2022/nanahoshi-mona-ui-grid-grid-list.component-ihQIKeP-.mjs +0 -208
- package/fesm2022/nanahoshi-mona-ui-grid-grid-row.component-BpnybNcs.mjs +0 -1082
- package/fesm2022/nanahoshi-mona-ui-grid-grid-virtual-list.component-CYlgfc7c.mjs +0 -186
- package/fesm2022/nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-LCzfCYd3.mjs +0 -7568
|
@@ -1,1177 +1,1391 @@
|
|
|
1
|
-
import { DataType, PreventableEvent, VirtualScrollOptions } from
|
|
2
|
-
import * as
|
|
3
|
-
import { TemplateRef, WritableSignal
|
|
4
|
-
import { FieldTree, SchemaOrSchemaFn, ValidationError } from
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
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
|
-
|
|
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
|
-
|
|
28
|
+
compare(left: unknown, right: unknown): number;
|
|
35
29
|
}["compare"];
|
|
36
30
|
interface ColumnConfig {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
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
|
-
|
|
129
|
-
|
|
130
|
-
|
|
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
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
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
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
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
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
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
|
-
|
|
185
|
-
|
|
186
|
-
|
|
172
|
+
originalRowData?: Record<PropertyKey, unknown> | null;
|
|
173
|
+
rowData: Record<PropertyKey, unknown>;
|
|
174
|
+
session: GridEditSession;
|
|
187
175
|
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
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
|
-
|
|
197
|
-
|
|
198
|
-
|
|
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
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
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
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
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
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
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
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
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
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
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
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
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
|
-
|
|
262
|
-
|
|
263
|
-
|
|
244
|
+
originalEvent?: Event;
|
|
245
|
+
rowData: Record<PropertyKey, unknown>;
|
|
246
|
+
session: GridEditSession;
|
|
264
247
|
}
|
|
265
|
-
|
|
266
248
|
interface GridEditTemplateContext {
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
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
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
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
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
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
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
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
|
-
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
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
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
declare class
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
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
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
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
|
-
|
|
650
|
-
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
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
|
-
|
|
671
|
-
|
|
672
|
-
|
|
690
|
+
column: Column;
|
|
691
|
+
newWidth: number;
|
|
692
|
+
oldWidth: number;
|
|
673
693
|
}
|
|
674
|
-
|
|
675
694
|
interface ResizableOptions {
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
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
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
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
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
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
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
}
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
}
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
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
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
}
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
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
|
-
|
|
942
|
-
}
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
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
|
-
|
|
1073
|
-
|
|
1293
|
+
filter?: CompositeFilterDescriptor;
|
|
1294
|
+
filterMenuValue?: FilterMenuValue;
|
|
1074
1295
|
}
|
|
1075
|
-
|
|
1076
1296
|
type ResizeMethod = "auto" | "fitView" | number;
|
|
1077
|
-
|
|
1078
1297
|
interface GridAggregateBucket {
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
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
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
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
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
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
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
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
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
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
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
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
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
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
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
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
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
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
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
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
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
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
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
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
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1433
|
+
readonly page: number;
|
|
1434
|
+
readonly skip: number;
|
|
1435
|
+
readonly take: number;
|
|
1223
1436
|
}
|
|
1224
|
-
|
|
1225
1437
|
interface RowEditDataItem extends Record<string, unknown> {
|
|
1226
|
-
|
|
1438
|
+
readonly $rowId: string;
|
|
1227
1439
|
}
|
|
1228
1440
|
declare class GridService {
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
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
|
-
|
|
1555
|
-
} &
|
|
1556
|
-
declare const gridHeaderThemeVariants: (props?:
|
|
1557
|
-
declare const gridHeaderTableThemeVariants: (props?:
|
|
1558
|
-
declare const gridHeaderTableRowThemeVariants: (props?:
|
|
1559
|
-
declare const gridHeaderTableCellThemeVariants: (props?:
|
|
1560
|
-
declare const gridHeaderTableColumnWrapThemeVariants: (props?:
|
|
1561
|
-
declare const gridHeaderTableColumnTitleThemeVariants: (props?:
|
|
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
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
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 };
|