@nanahoshi/mona-ui 0.25.1 → 0.26.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/README.md +2 -0
- package/command/package.json +4 -0
- package/docs/auto-complete.md +733 -0
- package/docs/avatar.md +220 -0
- package/docs/breadcrumb.md +320 -0
- package/docs/button-group.md +392 -0
- package/docs/button.md +256 -0
- package/docs/calendar.md +515 -0
- package/docs/card.md +292 -0
- package/docs/chart.md +4058 -0
- package/docs/checkbox.md +374 -0
- package/docs/chip.md +339 -0
- package/docs/circular-progress-bar.md +287 -0
- package/docs/collapsible.md +308 -0
- package/docs/color-gradient.md +336 -0
- package/docs/color-palette.md +317 -0
- package/docs/color-picker.md +387 -0
- package/docs/combo-box.md +764 -0
- package/docs/command.md +582 -0
- package/docs/contextmenu.md +530 -0
- package/docs/date-picker.md +251 -0
- package/docs/datetime-picker.md +284 -0
- package/docs/decimal-textbox.md +260 -0
- package/docs/dialog.md +822 -0
- package/docs/dropdown-button.md +507 -0
- package/docs/dropdown-list.md +779 -0
- package/docs/editor.md +374 -0
- package/docs/expansion-panel.md +348 -0
- package/docs/fieldset.md +217 -0
- package/docs/forms.md +162 -0
- package/docs/grid.md +2053 -0
- package/docs/input.md +197 -0
- package/docs/installation.md +54 -0
- package/docs/introduction.md +46 -0
- package/docs/label.md +340 -0
- package/docs/list-box.md +637 -0
- package/docs/list-view.md +584 -0
- package/docs/menubar.md +559 -0
- package/docs/multi-select.md +765 -0
- package/docs/notification.md +460 -0
- package/docs/numeric-textbox.md +301 -0
- package/docs/otp-input.md +539 -0
- package/docs/pager.md +513 -0
- package/docs/placeholder.md +176 -0
- package/docs/popover.md +423 -0
- package/docs/popup-menu.md +658 -0
- package/docs/popup.md +617 -0
- package/docs/progress-bar.md +368 -0
- package/docs/radio-button.md +451 -0
- package/docs/range-slider.md +367 -0
- package/docs/rating.md +518 -0
- package/docs/scroll-view.md +375 -0
- package/docs/segmented.md +434 -0
- package/docs/sheet.md +348 -0
- package/docs/sidebar.md +1126 -0
- package/docs/skeleton.md +181 -0
- package/docs/slider.md +423 -0
- package/docs/spinner.md +370 -0
- package/docs/split-button.md +522 -0
- package/docs/splitter.md +342 -0
- package/docs/stepper.md +539 -0
- package/docs/switch.md +340 -0
- package/docs/tabs.md +542 -0
- package/docs/textarea.md +196 -0
- package/docs/textbox.md +332 -0
- package/docs/theming.md +403 -0
- package/docs/time-picker.md +254 -0
- package/docs/tooltip-directive.md +340 -0
- package/docs/tooltip.md +321 -0
- package/docs/tree-view.md +1018 -0
- package/docs/window.md +663 -0
- package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +8 -0
- package/fesm2022/nanahoshi-mona-ui-button.mjs +12 -0
- package/fesm2022/nanahoshi-mona-ui-calendar.mjs +5 -2
- package/fesm2022/nanahoshi-mona-ui-chart.mjs +86 -0
- package/fesm2022/nanahoshi-mona-ui-check-box.mjs +4 -0
- package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +4 -0
- package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +16 -2
- package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-command.mjs +924 -0
- package/fesm2022/nanahoshi-mona-ui-common.mjs +4 -0
- package/fesm2022/nanahoshi-mona-ui-contextmenu.mjs +10 -6
- package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +2 -1
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +2 -1
- package/fesm2022/nanahoshi-mona-ui-dialog.mjs +9 -5
- package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +9 -5
- package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +55 -1
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +3 -2
- package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +13 -0
- package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +5 -0
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-2tVhD2hK.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-DjNnVxHE.mjs} +2 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-BAN70Wcn.mjs → nanahoshi-mona-ui-grid-grid-list.component-ihQIKeP-.mjs} +5 -5
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-C_kCaA5b.mjs → nanahoshi-mona-ui-grid-grid-row.component-BpnybNcs.mjs} +18 -35
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-BsNfrAHz.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-CYlgfc7c.mjs} +5 -5
- package/fesm2022/{nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-CEfVa7eo.mjs → nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-LCzfCYd3.mjs} +4653 -4529
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +1 -0
- package/fesm2022/nanahoshi-mona-ui-internal-popup-menu.mjs +168 -0
- package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +19 -1
- package/fesm2022/nanahoshi-mona-ui-list-box.mjs +14 -0
- package/fesm2022/nanahoshi-mona-ui-list-view.mjs +32 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-menubar.mjs +15 -8
- package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +8 -5
- package/fesm2022/nanahoshi-mona-ui-notification.mjs +9 -0
- package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +5 -0
- package/fesm2022/nanahoshi-mona-ui-pager.mjs +2 -1
- package/fesm2022/nanahoshi-mona-ui-popover.mjs +14 -6
- package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +48 -183
- package/fesm2022/nanahoshi-mona-ui-popup.mjs +16 -0
- package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +4 -0
- package/fesm2022/nanahoshi-mona-ui-rating.mjs +2 -0
- package/fesm2022/nanahoshi-mona-ui-segmented.mjs +1 -0
- package/fesm2022/nanahoshi-mona-ui-sheet.mjs +5 -5
- package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-slider.mjs +7 -2
- package/fesm2022/nanahoshi-mona-ui-split-button.mjs +9 -6
- package/fesm2022/nanahoshi-mona-ui-stepper.mjs +18 -21
- package/fesm2022/nanahoshi-mona-ui-tabs.mjs +11 -8
- package/fesm2022/nanahoshi-mona-ui-text-box.mjs +9 -1
- package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +2 -1
- package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +16 -5
- package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +13 -11
- package/fesm2022/nanahoshi-mona-ui-window.mjs +12 -5
- package/i18n/catalogs/en-US.messages.json +10 -0
- package/internal/popup-menu/package.json +4 -0
- package/llms.txt +123 -0
- package/locales/ar-sa/ar-sa.messages.json +10 -0
- package/locales/de-de/de-de.messages.json +10 -0
- package/locales/es-es/es-es.messages.json +10 -0
- package/locales/fr-fr/fr-fr.messages.json +10 -0
- package/locales/id-id/id-id.messages.json +10 -0
- package/locales/it-it/it-it.messages.json +10 -0
- package/locales/ja-jp/ja-jp.messages.json +10 -0
- package/locales/ko-kr/ko-kr.messages.json +10 -0
- package/locales/pt-br/pt-br.messages.json +10 -0
- package/locales/ru-ru/ru-ru.messages.json +10 -0
- package/locales/tr-tr/tr-tr.messages.json +10 -0
- package/locales/zh-cn/zh-cn.messages.json +10 -0
- package/locales/zh-tw/zh-tw.messages.json +10 -0
- package/package.json +9 -1
- package/types/nanahoshi-mona-ui-auto-complete.d.ts +1 -1
- package/types/nanahoshi-mona-ui-breadcrumb.d.ts +8 -0
- package/types/nanahoshi-mona-ui-button.d.ts +12 -0
- package/types/nanahoshi-mona-ui-calendar.d.ts +3 -0
- package/types/nanahoshi-mona-ui-chart.d.ts +200 -0
- package/types/nanahoshi-mona-ui-check-box.d.ts +4 -0
- package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +4 -0
- package/types/nanahoshi-mona-ui-collapsible.d.ts +10 -0
- package/types/nanahoshi-mona-ui-combo-box.d.ts +1 -1
- package/types/nanahoshi-mona-ui-command.d.ts +253 -0
- package/types/nanahoshi-mona-ui-common.d.ts +17 -1
- package/types/nanahoshi-mona-ui-contextmenu.d.ts +5 -2
- package/types/nanahoshi-mona-ui-date-picker.d.ts +2 -1
- package/types/nanahoshi-mona-ui-datetime-picker.d.ts +2 -1
- package/types/nanahoshi-mona-ui-dialog.d.ts +58 -1
- package/types/nanahoshi-mona-ui-dropdown-button.d.ts +7 -3
- package/types/nanahoshi-mona-ui-dropdowns.d.ts +55 -1
- package/types/nanahoshi-mona-ui-editor.d.ts +31 -0
- package/types/nanahoshi-mona-ui-expansion-panel.d.ts +13 -0
- package/types/nanahoshi-mona-ui-fieldset.d.ts +5 -0
- package/types/nanahoshi-mona-ui-grid.d.ts +162 -35
- package/types/nanahoshi-mona-ui-i18n.d.ts +144 -1
- package/types/nanahoshi-mona-ui-internal-list.d.ts +16 -1
- package/types/nanahoshi-mona-ui-internal-popup-menu.d.ts +165 -0
- package/types/nanahoshi-mona-ui-internal-tree.d.ts +21 -2
- package/types/nanahoshi-mona-ui-internal.d.ts +4 -5
- package/types/nanahoshi-mona-ui-label.d.ts +1 -0
- package/types/nanahoshi-mona-ui-list-box.d.ts +27 -4
- package/types/nanahoshi-mona-ui-list-view.d.ts +34 -1
- package/types/nanahoshi-mona-ui-list.d.ts +1 -1
- package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +10 -0
- package/types/nanahoshi-mona-ui-menubar.d.ts +10 -3
- package/types/nanahoshi-mona-ui-multi-select.d.ts +3 -3
- package/types/nanahoshi-mona-ui-notification.d.ts +9 -0
- package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +1 -1
- package/types/nanahoshi-mona-ui-otp-input.d.ts +1 -0
- package/types/nanahoshi-mona-ui-pager.d.ts +5 -1
- package/types/nanahoshi-mona-ui-popover.d.ts +9 -1
- package/types/nanahoshi-mona-ui-popup-menu.d.ts +48 -161
- package/types/nanahoshi-mona-ui-popup.d.ts +16 -0
- package/types/nanahoshi-mona-ui-progress-bar.d.ts +4 -0
- package/types/nanahoshi-mona-ui-rating.d.ts +2 -0
- package/types/nanahoshi-mona-ui-segmented.d.ts +1 -0
- package/types/nanahoshi-mona-ui-sheet.d.ts +1 -1
- package/types/nanahoshi-mona-ui-slider.d.ts +2 -0
- package/types/nanahoshi-mona-ui-spinner.d.ts +7 -0
- package/types/nanahoshi-mona-ui-split-button.d.ts +7 -4
- package/types/nanahoshi-mona-ui-stepper.d.ts +11 -2
- package/types/nanahoshi-mona-ui-tabs.d.ts +4 -1
- package/types/nanahoshi-mona-ui-text-box.d.ts +9 -1
- package/types/nanahoshi-mona-ui-time-picker.d.ts +2 -1
- package/types/nanahoshi-mona-ui-tooltip.d.ts +10 -2
- package/types/nanahoshi-mona-ui-tree-view.d.ts +6 -5
- package/types/nanahoshi-mona-ui-window.d.ts +66 -1
|
@@ -27,60 +27,103 @@ type ColumnKind = "command" | "data";
|
|
|
27
27
|
type ColumnFormatFunction = {
|
|
28
28
|
format(value: unknown, row: Record<PropertyKey, unknown>, column: Column): string;
|
|
29
29
|
}["format"];
|
|
30
|
-
/** A date format string
|
|
30
|
+
/** A date format string, for `date` columns, or a formatter function, for any column. */
|
|
31
31
|
type ColumnFormat = string | ColumnFormatFunction;
|
|
32
32
|
/** Compares two cell values for sorting: negative, zero or positive, as for `Array.prototype.sort`. */
|
|
33
33
|
type ColumnSortComparator = {
|
|
34
34
|
compare(left: unknown, right: unknown): number;
|
|
35
35
|
}["compare"];
|
|
36
36
|
interface ColumnConfig {
|
|
37
|
+
/** The aggregate shown in the grid footer for this column, or `null` for none. */
|
|
37
38
|
readonly aggregate: AggregateFunction | null;
|
|
39
|
+
/** The column's `monaGridCellTemplate`, which renders its body cells, or `null` for the default text. */
|
|
38
40
|
readonly cellTemplate: TemplateRef<unknown> | null;
|
|
41
|
+
/** A command column's `monaGridCellTemplate`, which replaces the built-in command buttons, or `null`. */
|
|
39
42
|
readonly commandTemplate: TemplateRef<unknown> | null;
|
|
40
43
|
/**
|
|
41
44
|
* The `editable` input as the consumer set it; `null` leaves it to the default, which is every column but
|
|
42
45
|
* the `rowKey` field. Left out, `editable` is used as given.
|
|
43
46
|
*/
|
|
44
47
|
readonly configuredEditable?: boolean | null;
|
|
48
|
+
/** The column's data type, which picks the editor and the filter. Command columns use `"string"`. */
|
|
45
49
|
readonly dataType: DataType;
|
|
50
|
+
/**
|
|
51
|
+
* The column's `monaGridEditTemplate`, which renders the cell editor, or `null` for the editor of its data type.
|
|
52
|
+
*/
|
|
46
53
|
readonly editTemplate: TemplateRef<unknown> | null;
|
|
47
54
|
/** Whether the column can be edited. The grid resolves it from {@link configuredEditable} when that is set. */
|
|
48
55
|
readonly editable: boolean;
|
|
56
|
+
/** The data property the column shows. A command column uses its `stateKey`, or `"commands"`. */
|
|
49
57
|
readonly field: string;
|
|
58
|
+
/** Whether the column can be filtered when the grid's filtering is enabled. */
|
|
50
59
|
readonly filterable: boolean;
|
|
60
|
+
/** The column's `monaGridFooterTemplate`, which renders its footer cell, or `null`. */
|
|
51
61
|
readonly footerTemplate: TemplateRef<unknown> | null;
|
|
62
|
+
/** How cell values are formatted for display, or `null` to show them as they are. */
|
|
52
63
|
readonly format: ColumnFormat | null;
|
|
64
|
+
/** The column's `monaGridGroupFooterTemplate`, which renders its cell in group footer rows, or `null`. */
|
|
53
65
|
readonly groupFooterTemplate: TemplateRef<unknown> | null;
|
|
66
|
+
/**
|
|
67
|
+
* The column's `monaGridHeaderTemplate`, which replaces the whole header content and receives the column, or
|
|
68
|
+
* `null`.
|
|
69
|
+
*/
|
|
54
70
|
readonly headerTemplate: TemplateRef<unknown> | null;
|
|
71
|
+
/** The column's `hidden` input as set. */
|
|
55
72
|
readonly hidden: boolean;
|
|
73
|
+
/** A unique id generated for the column. */
|
|
56
74
|
readonly id: string;
|
|
75
|
+
/** `"data"` for a `mona-grid-column`, `"command"` for a `mona-grid-command-column`. */
|
|
57
76
|
readonly kind: ColumnKind;
|
|
77
|
+
/** Whether the column stays fixed while the grid scrolls horizontally. */
|
|
58
78
|
readonly locked: boolean;
|
|
79
|
+
/** The side of the grid a locked column is fixed to. */
|
|
59
80
|
readonly lockedPosition: GridColumnLockedPosition;
|
|
81
|
+
/** The column's maximum width in pixels, or `null` for no maximum. */
|
|
60
82
|
readonly maxWidth: number | null;
|
|
83
|
+
/** The column's minimum width in pixels, or `null` for no minimum. */
|
|
61
84
|
readonly minWidth: number | null;
|
|
85
|
+
/**
|
|
86
|
+
* Whether the built-in remove command asks for confirmation before emitting `remove`. Only command columns set it.
|
|
87
|
+
*/
|
|
62
88
|
readonly removeConfirmation: boolean;
|
|
63
89
|
/** Compares values when the user sorts this column; without it values sort by type, strings by locale. */
|
|
64
90
|
readonly sortComparator?: ColumnSortComparator | null;
|
|
91
|
+
/** Whether the column can be sorted from its header when the grid's sorting is enabled. */
|
|
65
92
|
readonly sortable: boolean;
|
|
93
|
+
/** The key the column's saved state is stored under, or `null` to use `field`. */
|
|
66
94
|
readonly stateKey: string | null;
|
|
95
|
+
/** The text shown in the column header. */
|
|
67
96
|
readonly title: string;
|
|
97
|
+
/**
|
|
98
|
+
* The column's `monaGridColumnTitleTemplate`, shown in the header in place of `title` when there is no header
|
|
99
|
+
* template, or `null`.
|
|
100
|
+
*/
|
|
68
101
|
readonly titleTemplate: TemplateRef<unknown> | null;
|
|
102
|
+
/** The column's configured width in pixels, or `null` to size it automatically. */
|
|
69
103
|
readonly width: number | null;
|
|
70
104
|
}
|
|
105
|
+
/**
|
|
106
|
+
* Set `locked` and `lockedPosition` on a `mona-grid-column` (or `mona-grid-command-column`) to keep it fixed while the
|
|
107
|
+
* grid scrolls horizontally.
|
|
108
|
+
*/
|
|
71
109
|
interface Column extends ColumnConfig {
|
|
110
|
+
/** The column's currently rendered width. */
|
|
72
111
|
readonly calculatedWidth: number | null;
|
|
112
|
+
/** The direction the grid is currently sorted by this column, or `null` when it isn't. */
|
|
73
113
|
readonly columnSortDirection: SortDirection | null;
|
|
74
|
-
|
|
114
|
+
/** Whether a filter is currently applied to this column. */
|
|
75
115
|
readonly filtered: boolean;
|
|
116
|
+
/** The sort direction of the grid's grouping by this column, or `null` when the grid isn't grouped by it. */
|
|
76
117
|
readonly groupSortDirection: SortDirection | null;
|
|
118
|
+
/** Whether the column is hidden. */
|
|
77
119
|
readonly hidden: boolean;
|
|
78
|
-
|
|
120
|
+
/** The column's one-based position among the grid's sorted columns, or `null` when it isn't sorted. */
|
|
79
121
|
readonly sortIndex: number | null;
|
|
80
122
|
}
|
|
81
123
|
|
|
82
124
|
type GridEditOperation = "create" | "update";
|
|
83
125
|
|
|
126
|
+
/** A row of the grid, wrapping its data item. */
|
|
84
127
|
declare class Row {
|
|
85
128
|
readonly data: Record<PropertyKey, unknown>;
|
|
86
129
|
readonly uid: string;
|
|
@@ -88,15 +131,25 @@ declare class Row {
|
|
|
88
131
|
}
|
|
89
132
|
|
|
90
133
|
interface GridEditSession {
|
|
134
|
+
/** The column currently being edited, in cell mode. */
|
|
91
135
|
readonly column: Column | null;
|
|
136
|
+
/** The field name currently being edited, in cell mode. */
|
|
92
137
|
readonly field: string | null;
|
|
138
|
+
/** The Signal Forms field tree backing the row being edited. */
|
|
93
139
|
readonly form: FieldTree<Record<PropertyKey, unknown>>;
|
|
140
|
+
/** Whether this session represents a new row being added. */
|
|
94
141
|
readonly isNew: boolean;
|
|
142
|
+
/** The active editing mode. */
|
|
95
143
|
readonly mode: "cell" | "row";
|
|
144
|
+
/** The signal holding the row's current edited values. */
|
|
96
145
|
readonly model: WritableSignal<Record<PropertyKey, unknown>>;
|
|
146
|
+
/** `"create"` or `"update"`. */
|
|
97
147
|
readonly operation: GridEditOperation;
|
|
148
|
+
/** The row's data before editing began. */
|
|
98
149
|
readonly originalRowData: Record<PropertyKey, unknown> | null;
|
|
150
|
+
/** The internal row wrapper being edited. */
|
|
99
151
|
readonly row: Row | null;
|
|
152
|
+
/** The stable identifier of the row being edited. */
|
|
100
153
|
readonly rowUid: string | null;
|
|
101
154
|
}
|
|
102
155
|
|
|
@@ -117,6 +170,9 @@ interface CellEditEventOptions {
|
|
|
117
170
|
session: GridEditSession;
|
|
118
171
|
}
|
|
119
172
|
|
|
173
|
+
/** The field holding a row's key, or a function returning it. */
|
|
174
|
+
type GridKeySelector<TData, TKey = unknown> = string | Selector<TData, TKey> | null;
|
|
175
|
+
|
|
120
176
|
declare class RowEditEvent extends PreventableEvent {
|
|
121
177
|
#private;
|
|
122
178
|
constructor(options: RowEditEventOptions);
|
|
@@ -143,19 +199,20 @@ interface GridAddEventOptions {
|
|
|
143
199
|
}
|
|
144
200
|
|
|
145
201
|
type GridSaveOperation = GridEditOperation;
|
|
146
|
-
|
|
202
|
+
/** `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 {
|
|
147
204
|
#private;
|
|
148
|
-
constructor(options: GridSaveEventOptions);
|
|
205
|
+
constructor(options: GridSaveEventOptions<T>);
|
|
149
206
|
get operation(): GridSaveOperation;
|
|
150
|
-
get originalRowData():
|
|
151
|
-
get rowData():
|
|
207
|
+
get originalRowData(): T | null;
|
|
208
|
+
get rowData(): T;
|
|
152
209
|
get session(): GridEditSession;
|
|
153
210
|
}
|
|
154
|
-
interface GridSaveEventOptions {
|
|
211
|
+
interface GridSaveEventOptions<T extends object = Record<PropertyKey, unknown>> {
|
|
155
212
|
operation: GridSaveOperation;
|
|
156
213
|
originalEvent?: Event;
|
|
157
|
-
originalRowData?:
|
|
158
|
-
rowData:
|
|
214
|
+
originalRowData?: T | null;
|
|
215
|
+
rowData: T;
|
|
159
216
|
session: GridEditSession;
|
|
160
217
|
}
|
|
161
218
|
|
|
@@ -181,16 +238,18 @@ interface GridCancelEventOptions {
|
|
|
181
238
|
session: GridEditSession;
|
|
182
239
|
}
|
|
183
240
|
|
|
184
|
-
|
|
241
|
+
/** What a schema factory is told about the edit. `T` is the row type, untyped unless you give one. */
|
|
242
|
+
interface GridEditFormContext<T extends object = Record<PropertyKey, unknown>> {
|
|
185
243
|
readonly column: Column | null;
|
|
186
244
|
readonly field: string | null;
|
|
187
245
|
readonly isNew: boolean;
|
|
188
246
|
readonly mode: "cell" | "row";
|
|
189
247
|
readonly operation: GridEditOperation;
|
|
190
|
-
readonly originalRowData:
|
|
191
|
-
readonly rowData:
|
|
248
|
+
readonly originalRowData: T | null;
|
|
249
|
+
readonly rowData: T;
|
|
192
250
|
}
|
|
193
|
-
|
|
251
|
+
/** Builds the Signal Forms schema for the row being edited. `T` is the row type, untyped unless you give one. */
|
|
252
|
+
type GridEditSchemaFactory<T extends object = Record<PropertyKey, unknown>> = (context: GridEditFormContext<T>) => SchemaOrSchemaFn<T> | null | undefined;
|
|
194
253
|
|
|
195
254
|
declare class GridEditEvent extends PreventableEvent {
|
|
196
255
|
#private;
|
|
@@ -205,19 +264,33 @@ interface GridEditEventOptions {
|
|
|
205
264
|
}
|
|
206
265
|
|
|
207
266
|
interface GridEditTemplateContext {
|
|
267
|
+
/** Cancels the current edit. */
|
|
208
268
|
readonly cancel: () => void;
|
|
269
|
+
/** The field name of the column being edited. */
|
|
209
270
|
readonly column: string;
|
|
271
|
+
/** Commits the current edit. */
|
|
210
272
|
readonly commit: () => void;
|
|
273
|
+
/** Same as `column`; the field name being edited. */
|
|
211
274
|
readonly dataField: string;
|
|
275
|
+
/** The row's current edited values. */
|
|
212
276
|
readonly dataItem: Record<PropertyKey, unknown>;
|
|
277
|
+
/** Validation errors for this field. */
|
|
213
278
|
readonly errors: readonly ValidationError.WithFieldTree[];
|
|
279
|
+
/** The Signal Forms field for this column. */
|
|
214
280
|
readonly field: FieldTree<unknown>;
|
|
281
|
+
/** The row's full Signal Forms field tree. */
|
|
215
282
|
readonly form: GridEditSession["form"];
|
|
283
|
+
/** Whether this field currently fails validation. */
|
|
216
284
|
readonly invalid: boolean;
|
|
285
|
+
/** Whether this is a new row being added. */
|
|
217
286
|
readonly isNew: boolean;
|
|
287
|
+
/** The full edit session for this row. */
|
|
218
288
|
readonly session: GridEditSession;
|
|
289
|
+
/** Sets this field's value. */
|
|
219
290
|
readonly setValue: (value: unknown) => void;
|
|
291
|
+
/** Whether this field has been touched. */
|
|
220
292
|
readonly touched: boolean;
|
|
293
|
+
/** This field's current value. */
|
|
221
294
|
readonly value: unknown;
|
|
222
295
|
}
|
|
223
296
|
|
|
@@ -228,6 +301,7 @@ declare class GridRemoveEvent extends PreventableEvent {
|
|
|
228
301
|
get index(): number;
|
|
229
302
|
/** The row's `rowKey` value, or the data item when the grid has no `rowKey`. */
|
|
230
303
|
get key(): unknown;
|
|
304
|
+
/** The data item of the row being removed. */
|
|
231
305
|
get rowData(): Record<PropertyKey, unknown>;
|
|
232
306
|
}
|
|
233
307
|
interface GridRemoveEventOptions {
|
|
@@ -298,7 +372,9 @@ interface GroupDescriptor {
|
|
|
298
372
|
}
|
|
299
373
|
|
|
300
374
|
interface GroupableOptions {
|
|
375
|
+
/** Whether grouping is active. */
|
|
301
376
|
enabled: boolean;
|
|
377
|
+
/** Whether a group's aggregate footer also shows while the group is collapsed; expanded groups always show it. */
|
|
302
378
|
showFooter: boolean;
|
|
303
379
|
}
|
|
304
380
|
|
|
@@ -314,9 +390,13 @@ type GridRowClass<TData> = (data: TData) => GridRowClassValue;
|
|
|
314
390
|
|
|
315
391
|
/** The paging, sorting, and filtering requested by a server-bound Grid. */
|
|
316
392
|
interface GridDataState {
|
|
393
|
+
/** Applied composite filter descriptors. */
|
|
317
394
|
readonly filter: readonly CompositeFilterDescriptor[];
|
|
395
|
+
/** Requested zero-based offset. */
|
|
318
396
|
readonly skip: number;
|
|
397
|
+
/** Sort descriptors in priority order. */
|
|
319
398
|
readonly sort: readonly SortDescriptor[];
|
|
399
|
+
/** Requested page size. */
|
|
320
400
|
readonly take: number;
|
|
321
401
|
}
|
|
322
402
|
|
|
@@ -347,9 +427,13 @@ interface GridToolbarTemplateContext extends GridToolbarContext {
|
|
|
347
427
|
}
|
|
348
428
|
|
|
349
429
|
interface SortableOptions {
|
|
430
|
+
/** Whether a third click on a sorted column clears its sort. */
|
|
350
431
|
allowUnsort?: boolean;
|
|
432
|
+
/** Whether sorting is active. On unless set to `false`; options replace earlier ones. */
|
|
351
433
|
enabled?: boolean;
|
|
434
|
+
/** Whether one or several columns can be sorted at once. */
|
|
352
435
|
mode?: "single" | "multiple";
|
|
436
|
+
/** Whether sort order indices are displayed on header cells. */
|
|
353
437
|
showIndices?: boolean;
|
|
354
438
|
}
|
|
355
439
|
|
|
@@ -366,6 +450,10 @@ declare class GridAddCommandDirective {
|
|
|
366
450
|
}
|
|
367
451
|
declare class GridEditCommandDirective {
|
|
368
452
|
#private;
|
|
453
|
+
/**
|
|
454
|
+
* @description The row the button puts into row edit mode when clicked, usually the command template's `row`.
|
|
455
|
+
* Does nothing while `null` or when the grid isn't in row edit mode.
|
|
456
|
+
*/
|
|
369
457
|
readonly row: _angular_core.InputSignal<Row | null>;
|
|
370
458
|
protected onClick(event: Event): void;
|
|
371
459
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridEditCommandDirective, never>;
|
|
@@ -373,6 +461,11 @@ declare class GridEditCommandDirective {
|
|
|
373
461
|
}
|
|
374
462
|
declare class GridRemoveCommandDirective {
|
|
375
463
|
#private;
|
|
464
|
+
/**
|
|
465
|
+
* @description The row the button removes when clicked, usually the command template's `row`. The click emits the
|
|
466
|
+
* grid's `remove` event for that row. Inside a command column with `removeConfirmation`, it asks first, as the
|
|
467
|
+
* built-in remove command does. Does nothing while `null`.
|
|
468
|
+
*/
|
|
376
469
|
readonly row: _angular_core.InputSignal<Row | null>;
|
|
377
470
|
protected onClick(event: Event): void;
|
|
378
471
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridRemoveCommandDirective, never>;
|
|
@@ -416,19 +509,23 @@ declare class GridEditTemplateDirective {
|
|
|
416
509
|
|
|
417
510
|
/** A row command button: Edit, Remove, Save or Cancel. */
|
|
418
511
|
type GridRowCommand = "cancel" | "edit" | "remove" | "save";
|
|
419
|
-
|
|
512
|
+
/** `T` is the row type, which a typed `schema` sets. */
|
|
513
|
+
interface EditableOptions<T extends object = Record<PropertyKey, unknown>> {
|
|
420
514
|
/**
|
|
421
515
|
* Returns the accessible name of a row's command button, such as "Edit order 10248". Without it the
|
|
422
516
|
* buttons are named by position ("Edit row 3"). `absoluteIndex` is the row's 0-based position in the
|
|
423
517
|
* filtered and sorted rows; the add row isn't passed here.
|
|
424
518
|
*/
|
|
425
519
|
commandAriaLabel?: (command: GridRowCommand, rowData: Record<PropertyKey, unknown>, absoluteIndex: number) => string;
|
|
520
|
+
/** Whether editing is active. On unless set to `false`; options replace earlier ones. */
|
|
426
521
|
enabled?: boolean;
|
|
522
|
+
/** Whether editing commits per cell or per row. */
|
|
427
523
|
mode: "cell" | "row";
|
|
428
|
-
schema
|
|
524
|
+
/** Builds a Signal Forms validation schema for the row being edited. */
|
|
525
|
+
schema?: GridEditSchemaFactory<T>;
|
|
429
526
|
}
|
|
430
527
|
|
|
431
|
-
declare class GridEditableDirective {
|
|
528
|
+
declare class GridEditableDirective<T extends object = Record<PropertyKey, unknown>> {
|
|
432
529
|
#private;
|
|
433
530
|
/**
|
|
434
531
|
* @description Emitted before the grid displays the new-row editor.
|
|
@@ -451,8 +548,12 @@ declare class GridEditableDirective {
|
|
|
451
548
|
/**
|
|
452
549
|
* @description Creates the initial data object used by the add-row editor.
|
|
453
550
|
*/
|
|
454
|
-
readonly newRowFactory: _angular_core.InputSignal<() =>
|
|
455
|
-
|
|
551
|
+
readonly newRowFactory: _angular_core.InputSignal<() => T>;
|
|
552
|
+
/**
|
|
553
|
+
* @description Enables inline editing. An empty string enables cell-mode editing with default settings; pass an
|
|
554
|
+
* object to choose `"cell"` or `"row"` mode and an optional validation `schema`.
|
|
555
|
+
*/
|
|
556
|
+
readonly options: _angular_core.InputSignal<"" | EditableOptions<T>>;
|
|
456
557
|
/**
|
|
457
558
|
* @description Emitted when a row remove command is triggered, with the row's `key` and `index`.
|
|
458
559
|
*/
|
|
@@ -466,15 +567,15 @@ declare class GridEditableDirective {
|
|
|
466
567
|
* holds the edited values and `originalRowData` the row as it was. Prevent it to keep the editor open,
|
|
467
568
|
* for example while saving on the server, then call `endEdit()`.
|
|
468
569
|
*/
|
|
469
|
-
readonly save: _angular_core.OutputEmitterRef<GridSaveEvent
|
|
570
|
+
readonly save: _angular_core.OutputEmitterRef<GridSaveEvent<T>>;
|
|
470
571
|
constructor();
|
|
471
572
|
/**
|
|
472
573
|
* Closes the current edit without reporting it, such as after a `save` that was prevented to save on the
|
|
473
574
|
* server has finished.
|
|
474
575
|
*/
|
|
475
576
|
endEdit(): void;
|
|
476
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridEditableDirective
|
|
477
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridEditableDirective
|
|
577
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridEditableDirective<any>, never>;
|
|
578
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridEditableDirective<any>, "mona-grid[monaGridEditable]", never, { "newRowFactory": { "alias": "newRowFactory"; "required": false; "isSignal": true; }; "options": { "alias": "monaGridEditable"; "required": false; "isSignal": true; }; }, { "add": "add"; "cancel": "cancel"; "cellEdit": "cellEdit"; "edit": "edit"; "remove": "remove"; "rowEdit": "rowEdit"; "save": "save"; }, never, never, true, never>;
|
|
478
579
|
}
|
|
479
580
|
|
|
480
581
|
declare class GridFilterableDirective {
|
|
@@ -545,6 +646,7 @@ declare class ColumnReorderEvent extends PreventableEvent {
|
|
|
545
646
|
}
|
|
546
647
|
|
|
547
648
|
interface ReorderableOptions {
|
|
649
|
+
/** Whether column reordering is active. On unless set to `false`; options replace earlier ones. */
|
|
548
650
|
enabled: boolean;
|
|
549
651
|
}
|
|
550
652
|
|
|
@@ -571,6 +673,7 @@ interface ColumnResizeEvent {
|
|
|
571
673
|
}
|
|
572
674
|
|
|
573
675
|
interface ResizableOptions {
|
|
676
|
+
/** Whether column resizing is active. On unless set to `false`; options replace earlier ones. */
|
|
574
677
|
enabled: boolean;
|
|
575
678
|
}
|
|
576
679
|
|
|
@@ -651,8 +754,6 @@ declare class GridRowReorderableDirective {
|
|
|
651
754
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridRowReorderableDirective, "mona-grid[monaGridRowReorderable]", never, { "options": { "alias": "monaGridRowReorderable"; "required": false; "isSignal": true; }; }, { "rowReorder": "rowReorder"; }, never, never, true, never>;
|
|
652
755
|
}
|
|
653
756
|
|
|
654
|
-
type GridKeySelector<TData, TKey = unknown> = string | Selector<TData, TKey> | null;
|
|
655
|
-
|
|
656
757
|
declare class GridSelectableDirective {
|
|
657
758
|
#private;
|
|
658
759
|
/**
|
|
@@ -748,12 +849,19 @@ interface GridColumnState {
|
|
|
748
849
|
width: number | null;
|
|
749
850
|
}
|
|
750
851
|
interface GridState {
|
|
852
|
+
/** Persisted per-column hidden/order/width state. */
|
|
751
853
|
columns: readonly GridColumnState[];
|
|
854
|
+
/** Persisted filter descriptors. */
|
|
752
855
|
filter: readonly GridStateCompositeFilterDescriptor[];
|
|
856
|
+
/** Persisted group descriptors. */
|
|
753
857
|
group: readonly GroupDescriptor[];
|
|
858
|
+
/** Persisted page size, unless `persistPageSize` is `false`. */
|
|
754
859
|
pageSize?: number;
|
|
860
|
+
/** Consumer-defined version tag used to reject stale persisted state. */
|
|
755
861
|
schemaVersion?: number | string;
|
|
862
|
+
/** Persisted sort descriptors. */
|
|
756
863
|
sort: readonly GridStateSortDescriptor[];
|
|
864
|
+
/** The state schema version produced by this version of the library. */
|
|
757
865
|
version: GridStateVersion;
|
|
758
866
|
}
|
|
759
867
|
interface GridStatePersistenceOptions {
|
|
@@ -784,7 +892,13 @@ declare class GridStatePersistenceDirective {
|
|
|
784
892
|
*/
|
|
785
893
|
readonly state: _angular_core.ModelSignal<GridState | null>;
|
|
786
894
|
constructor();
|
|
895
|
+
/** Captures the grid's current state (columns, sort, filter, group) without waiting for the next change cycle. */
|
|
787
896
|
captureState(): GridState;
|
|
897
|
+
/**
|
|
898
|
+
* Applies a previously captured state to the grid. A state that isn't well formed (a missing array, a duplicate
|
|
899
|
+
* column id, an unknown filter operator, a page size or width that isn't a positive number) returns
|
|
900
|
+
* `rejected-invalid` and changes nothing.
|
|
901
|
+
*/
|
|
788
902
|
loadState(state: GridState | null, options?: GridStatePersistenceOptions): GridStateLoadResult;
|
|
789
903
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridStatePersistenceDirective, never>;
|
|
790
904
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridStatePersistenceDirective, "mona-grid[monaGridStatePersistence]", ["monaGridStatePersistence"], { "options": { "alias": "monaGridStatePersistence"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; }, { "state": "stateChange"; }, never, never, true, never>;
|
|
@@ -797,6 +911,7 @@ declare class GridToolbarTemplateDirective {
|
|
|
797
911
|
|
|
798
912
|
declare class GridExportDirective {
|
|
799
913
|
#private;
|
|
914
|
+
/** Exports the visible columns of the current view as CSV (only the loaded page with server binding). */
|
|
800
915
|
exportCsv(filename?: string): void;
|
|
801
916
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridExportDirective, never>;
|
|
802
917
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridExportDirective, "mona-grid[monaGridExport]", ["monaGridExport"], {}, {}, never, never, true, never>;
|
|
@@ -850,7 +965,8 @@ declare class GridCommandColumnComponent implements GridColumnDefinition {
|
|
|
850
965
|
*/
|
|
851
966
|
readonly minWidth: _angular_core.InputSignal<number | null>;
|
|
852
967
|
/**
|
|
853
|
-
* @description Whether
|
|
968
|
+
* @description Whether removing a row asks for confirmation before emitting `remove`: from the built-in Remove button, or from a
|
|
969
|
+
* `monaGridRemoveCommand` button in this column's template.
|
|
854
970
|
*/
|
|
855
971
|
readonly removeConfirmation: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
856
972
|
/**
|
|
@@ -1145,7 +1261,7 @@ declare class GridService {
|
|
|
1145
1261
|
readonly editContext: _angular_core.Signal<GridEditContext | null>;
|
|
1146
1262
|
readonly editSession: _angular_core.Signal<GridEditSession | null>;
|
|
1147
1263
|
readonly editViewDict: _angular_core.Signal<ImmutableDictionary<string, RowEditDataItem>>;
|
|
1148
|
-
readonly editableOptions: _angular_core.WritableSignal<EditableOptions
|
|
1264
|
+
readonly editableOptions: _angular_core.WritableSignal<EditableOptions<Record<PropertyKey, unknown>>>;
|
|
1149
1265
|
readonly editingRowUid: _angular_core.Signal<string | null>;
|
|
1150
1266
|
/** Keys of the rows whose detail row is open: the `rowKey` value, or the data item without one. */
|
|
1151
1267
|
readonly expandedKeys: _angular_core.WritableSignal<ImmutableSet<unknown>>;
|
|
@@ -1179,6 +1295,8 @@ declare class GridService {
|
|
|
1179
1295
|
readonly masterDetailTemplate: _angular_core.WritableSignal<TemplateRef<unknown> | null>;
|
|
1180
1296
|
readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaGridMessages>;
|
|
1181
1297
|
readonly newRowFactory: _angular_core.WritableSignal<() => Record<PropertyKey, unknown>>;
|
|
1298
|
+
/** Emits when a user's sort or filter moves a client-side grid back to the first page. */
|
|
1299
|
+
readonly pageReset$: Subject<void>;
|
|
1182
1300
|
readonly pagerTotal: _angular_core.Signal<number>;
|
|
1183
1301
|
readonly paginationState: _angular_core.WritableSignal<PaginationState>;
|
|
1184
1302
|
readonly remove$: Subject<GridRemoveEvent>;
|
|
@@ -1197,7 +1315,7 @@ declare class GridService {
|
|
|
1197
1315
|
readonly rowReorderInteractionEnabled: _angular_core.Signal<boolean>;
|
|
1198
1316
|
readonly rowReorderableOptions: _angular_core.Signal<RowReorderableOptions>;
|
|
1199
1317
|
readonly rows: _angular_core.WritableSignal<ImmutableList<Row>>;
|
|
1200
|
-
readonly save$: Subject<GridSaveEvent
|
|
1318
|
+
readonly save$: Subject<GridSaveEvent<Record<PropertyKey, unknown>>>;
|
|
1201
1319
|
readonly scrollEnd$: Subject<void>;
|
|
1202
1320
|
readonly scrollEndThreshold: _angular_core.WritableSignal<number>;
|
|
1203
1321
|
readonly scrollbarGutterWidth: _angular_core.Signal<number>;
|
|
@@ -1312,6 +1430,10 @@ declare class GridService {
|
|
|
1312
1430
|
* `columns().length`. Reports `columnReorder$`, which can cancel the move. Returns whether it moved.
|
|
1313
1431
|
*/
|
|
1314
1432
|
reorderColumn(column: Column, beforeIndex: number): boolean;
|
|
1433
|
+
/**
|
|
1434
|
+
* Reports the data state to a server-bound grid. With `resetPage`, which a user's sort or filter sets, it first goes
|
|
1435
|
+
* back to the first page, on a client-side grid too: the rows the user was looking at may have moved anywhere.
|
|
1436
|
+
*/
|
|
1315
1437
|
requestDataStateChange(options?: {
|
|
1316
1438
|
readonly resetPage?: boolean;
|
|
1317
1439
|
}): void;
|
|
@@ -1505,14 +1627,16 @@ declare class GridComponent<T> implements GridVariantInput {
|
|
|
1505
1627
|
protected readonly multiselectable: _angular_core.Signal<boolean | undefined>;
|
|
1506
1628
|
protected readonly noDataClass: _angular_core.Signal<string>;
|
|
1507
1629
|
protected readonly noDataTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
1630
|
+
/** The column whose group chip has its menu open. */
|
|
1631
|
+
protected readonly openGroupMenuColumnId: _angular_core.WritableSignal<string | null>;
|
|
1508
1632
|
protected readonly resizing: _angular_core.WritableSignal<boolean>;
|
|
1509
1633
|
protected readonly toolbarContext: _angular_core.Signal<GridToolbarTemplateContext>;
|
|
1510
1634
|
protected readonly toolbarElement: _angular_core.Signal<ElementRef<HTMLDivElement> | undefined>;
|
|
1511
1635
|
protected readonly toolbarTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
1512
1636
|
protected readonly uid: string;
|
|
1513
1637
|
/**
|
|
1514
|
-
* @description The grid's accessible name, such as "Orders". Use it, or `
|
|
1515
|
-
*
|
|
1638
|
+
* @description The grid's accessible name, such as "Orders". Use it, or `aria-labelledby`. The grid moves
|
|
1639
|
+
* the name to its `role="grid"` element, so the host keeps no `aria-label` attribute.
|
|
1516
1640
|
* @default null
|
|
1517
1641
|
*/
|
|
1518
1642
|
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
@@ -1532,8 +1656,9 @@ declare class GridComponent<T> implements GridVariantInput {
|
|
|
1532
1656
|
*/
|
|
1533
1657
|
readonly expandedKeys: _angular_core.ModelSignal<unknown[]>;
|
|
1534
1658
|
/**
|
|
1535
|
-
* @description Emitted when the user changes the page or the page size,
|
|
1536
|
-
*
|
|
1659
|
+
* @description Emitted when the user changes the page or the page size, when the user's sort or filter moves a
|
|
1660
|
+
* client-side grid back to the first page, and when the grid moves back to the last page because the data shrank.
|
|
1661
|
+
* Not emitted for `skip` or `pageSize` values set from code.
|
|
1537
1662
|
*/
|
|
1538
1663
|
readonly pageChange: _angular_core.OutputEmitterRef<PageChangeEvent>;
|
|
1539
1664
|
/**
|
|
@@ -1594,6 +1719,7 @@ declare class GridComponent<T> implements GridVariantInput {
|
|
|
1594
1719
|
* @default 0
|
|
1595
1720
|
*/
|
|
1596
1721
|
readonly skip: _angular_core.ModelSignal<number>;
|
|
1722
|
+
/** @description Additional CSS classes merged onto the host element via `tailwind-merge`. */
|
|
1597
1723
|
readonly userClass: _angular_core.InputSignal<string>;
|
|
1598
1724
|
constructor();
|
|
1599
1725
|
protected isColumnDragDisabled(column: Column): boolean;
|
|
@@ -1611,8 +1737,8 @@ declare class GridComponent<T> implements GridVariantInput {
|
|
|
1611
1737
|
protected onColumnResizeEnd(event: ColumnResizeEvent): void;
|
|
1612
1738
|
protected onColumnResizeStart(): void;
|
|
1613
1739
|
protected onColumnSort(column: Column): void;
|
|
1614
|
-
/** Delete or Backspace on a group chip, or on its remove button, removes the group. */
|
|
1615
1740
|
protected onGroupColumnReorder(column: Column, moveAs: "prev" | "next"): void;
|
|
1741
|
+
/** Delete or Backspace on a group chip, or on its remove button, removes the group. */
|
|
1616
1742
|
protected onGroupingColumnRemove(event: Event, column: Column): void;
|
|
1617
1743
|
protected onGroupingColumnSort(column: Column): void;
|
|
1618
1744
|
/**
|
|
@@ -1648,7 +1774,7 @@ declare class GridComponent<T> implements GridVariantInput {
|
|
|
1648
1774
|
private setResizeObserver;
|
|
1649
1775
|
private syncToolbarFocusTargets;
|
|
1650
1776
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridComponent<any>, never>;
|
|
1651
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<GridComponent<any>, "mona-grid", never, { "ariaLabel": { "alias": "
|
|
1777
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<GridComponent<any>, "mona-grid", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "expandedKeys": { "alias": "expandedKeys"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "pageSizeValues": { "alias": "pageSizeValues"; "required": false; "isSignal": true; }; "resizeMethod": { "alias": "resizeMethod"; "required": false; "isSignal": true; }; "responsivePager": { "alias": "responsivePager"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "rowClass": { "alias": "rowClass"; "required": false; "isSignal": true; }; "rowKey": { "alias": "rowKey"; "required": false; "isSignal": true; }; "skip": { "alias": "skip"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, { "expandedKeys": "expandedKeysChange"; "pageChange": "pageChange"; "pageSize": "pageSizeChange"; "skip": "skipChange"; }, ["columnDefinitions", "gridDetailTemplate", "noDataTemplate", "toolbarTemplate"], never, true, never>;
|
|
1652
1778
|
}
|
|
1653
1779
|
|
|
1654
1780
|
declare const GRID_DEFAULT_MESSAGES: {
|
|
@@ -1678,6 +1804,7 @@ declare const GRID_DEFAULT_MESSAGES: {
|
|
|
1678
1804
|
filterOperator: (column: string, operator: string) => string;
|
|
1679
1805
|
filterPlaceholder: string;
|
|
1680
1806
|
group: string;
|
|
1807
|
+
groupOptions: (column: string) => string;
|
|
1681
1808
|
loading: string;
|
|
1682
1809
|
modified: string;
|
|
1683
1810
|
moveAsNext: string;
|
|
@@ -1710,5 +1837,5 @@ declare const GRID_DEFAULT_MESSAGES: {
|
|
|
1710
1837
|
toolbar: string;
|
|
1711
1838
|
};
|
|
1712
1839
|
|
|
1713
|
-
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, RowEditEvent, RowReorderEvent };
|
|
1714
|
-
export type { AggregateFunction, Column, ColumnConfig, ColumnFormat, ColumnFormatFunction, ColumnKind, ColumnResizeEvent, ColumnSortComparator, EditableOptions, FilterableOptions, GridCancelReason, GridColumnLockedPosition, GridColumnState, GridDataState, GridEditFormContext, GridEditOperation, GridEditSchemaFactory, GridEditSession, GridEditTemplateContext, GridRowClass, GridRowClassValue, GridRowCommand, GridSaveOperation, GridState, GridStateCompositeFilterDescriptor, GridStateFilterDescriptor, GridStateFilterValue, GridStateLoadResult, GridStateLoadStatus, GridStatePersistenceOptions, GridStateSortDescriptor, GridStateVersion, GridToolbarContext, GridToolbarTemplateContext, GroupDescriptor, GroupableOptions, ReorderableOptions, ResizableOptions, ResizeMethod, RowReorderableOptions, SelectableOptions, SortableOptions };
|
|
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 };
|