@nanahoshi/mona-ui 0.39.1 → 0.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/docs/api/common.md +1 -1
  2. package/docs/api/grid.md +214 -17
  3. package/docs/api/i18n.md +36 -0
  4. package/docs/api/kanban.md +222 -0
  5. package/docs/api/locales.md +14 -14
  6. package/docs/api/sortable.md +189 -0
  7. package/docs/api/tabs.md +20 -0
  8. package/docs/grid-selection.md +134 -9
  9. package/docs/grid-state-export.md +56 -6
  10. package/docs/grid-tree.md +279 -0
  11. package/docs/kanban.md +293 -0
  12. package/docs/sortable.md +320 -0
  13. package/docs/tabs.md +59 -10
  14. package/fesm2022/{nanahoshi-mona-ui-grid-grid-colgroup.component-Lv3GunpV.mjs → nanahoshi-mona-ui-grid-grid-colgroup.component-DpszxgFY.mjs} +2 -2
  15. package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-BYH9XbCV.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-CpvzAcX8.mjs} +4 -3
  16. package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-BoSXXLKQ.mjs → nanahoshi-mona-ui-grid-grid-list.component-tRmEWiQR.mjs} +5 -5
  17. package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-Df2gfS0X.mjs → nanahoshi-mona-ui-grid-grid-row.component-eET6dh2Q.mjs} +52 -35
  18. package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-xjrcCXXF.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-8h2EMexB.mjs} +5 -5
  19. package/fesm2022/{nanahoshi-mona-ui-grid-grid.styles-aPD3c2A6.mjs → nanahoshi-mona-ui-grid-grid.styles-wAf6jsT9.mjs} +646 -20
  20. package/fesm2022/nanahoshi-mona-ui-grid.mjs +1663 -22
  21. package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +56 -0
  22. package/fesm2022/nanahoshi-mona-ui-kanban.mjs +660 -0
  23. package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +11 -0
  24. package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +17 -0
  25. package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +17 -0
  26. package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +17 -0
  27. package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +11 -0
  28. package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +17 -0
  29. package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +11 -0
  30. package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +11 -0
  31. package/fesm2022/nanahoshi-mona-ui-locales-pl-pl.mjs +21 -0
  32. package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +17 -0
  33. package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +21 -0
  34. package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +11 -0
  35. package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +11 -0
  36. package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +11 -0
  37. package/fesm2022/nanahoshi-mona-ui-sortable.mjs +733 -0
  38. package/fesm2022/nanahoshi-mona-ui-tabs.mjs +112 -5
  39. package/i18n/catalogs/en-US.messages.json +11 -0
  40. package/kanban/package.json +4 -0
  41. package/llms.txt +10 -5
  42. package/locales/ar-sa/ar-sa.messages.json +11 -0
  43. package/locales/de-de/de-de.messages.json +11 -0
  44. package/locales/es-es/es-es.messages.json +11 -0
  45. package/locales/fr-fr/fr-fr.messages.json +11 -0
  46. package/locales/id-id/id-id.messages.json +11 -0
  47. package/locales/it-it/it-it.messages.json +11 -0
  48. package/locales/ja-jp/ja-jp.messages.json +11 -0
  49. package/locales/ko-kr/ko-kr.messages.json +11 -0
  50. package/locales/pl-pl/pl-pl.messages.json +11 -0
  51. package/locales/pt-br/pt-br.messages.json +11 -0
  52. package/locales/ru-ru/ru-ru.messages.json +11 -0
  53. package/locales/tr-tr/tr-tr.messages.json +11 -0
  54. package/locales/zh-cn/zh-cn.messages.json +11 -0
  55. package/locales/zh-tw/zh-tw.messages.json +11 -0
  56. package/package.json +9 -1
  57. package/sortable/package.json +4 -0
  58. package/types/nanahoshi-mona-ui-grid.d.ts +305 -3
  59. package/types/nanahoshi-mona-ui-i18n.d.ts +23 -0
  60. package/types/nanahoshi-mona-ui-kanban.d.ts +270 -0
  61. package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +11 -0
  62. package/types/nanahoshi-mona-ui-locales-de-de.d.ts +11 -0
  63. package/types/nanahoshi-mona-ui-locales-es-es.d.ts +11 -0
  64. package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +11 -0
  65. package/types/nanahoshi-mona-ui-locales-id-id.d.ts +11 -0
  66. package/types/nanahoshi-mona-ui-locales-it-it.d.ts +11 -0
  67. package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +11 -0
  68. package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +11 -0
  69. package/types/nanahoshi-mona-ui-locales-pl-pl.d.ts +11 -0
  70. package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +11 -0
  71. package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +11 -0
  72. package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +11 -0
  73. package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +11 -0
  74. package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +11 -0
  75. package/types/nanahoshi-mona-ui-sortable.d.ts +245 -0
  76. package/types/nanahoshi-mona-ui-tabs.d.ts +46 -0
@@ -101,7 +101,7 @@ Class.
101
101
  | `isDefaultPrevented(): boolean` | Whether `preventDefault()` was called. |
102
102
  | `preventDefault(): void` | Cancels what the event announces, such as opening or closing a popup, or closing a dialog. |
103
103
 
104
- **Used by:** [`AutoCompleteComponent`](auto-complete.md#autocompletecomponent), [`CellEditEvent`](grid.md#celleditevent), [`ColumnReorderEvent`](grid.md#columnreorderevent), [`ColumnSortEvent`](grid.md#columnsortevent), [`ComboBoxComponent`](combo-box.md#comboboxcomponent), [`DatePickerComponent`](date-picker.md#datepickercomponent), [`DateRangePickerComponent`](date-range-picker.md#daterangepickercomponent), [`DateTimePickerComponent`](datetime-picker.md#datetimepickercomponent), [`DialogActionEvent`](dialog.md#dialogactionevent), [`DropdownListComponent`](dropdown-list.md#dropdownlistcomponent), [`DropdownTreeComponent`](dropdown-tree.md#dropdowntreecomponent), [`FilterChangeEvent`](common.md#filterchangeevent), [`GridAddEvent`](grid.md#gridaddevent), [`GridCancelEvent`](grid.md#gridcancelevent), [`GridEditEvent`](grid.md#grideditevent), [`GridRemoveEvent`](grid.md#gridremoveevent), [`GridSaveEvent`](grid.md#gridsaveevent), [`ListBoxClearEvent`](list-box.md#listboxclearevent), [`ListBoxMoveEvent`](list-box.md#listboxmoveevent), [`ListBoxRemoveEvent`](list-box.md#listboxremoveevent), [`ListBoxTransferEvent`](list-box.md#listboxtransferevent), [`MultiSelectComponent`](multi-select.md#multiselectcomponent), [`MultiSelectTreeComponent`](multi-select-tree.md#multiselecttreecomponent), [`NodeCheckEvent`](tree-view.md#nodecheckevent), [`NodeClickEvent`](tree-view.md#nodeclickevent), [`NodeSelectEvent`](tree-view.md#nodeselectevent), [`PageSizeChangeEvent`](pager.md#pagesizechangeevent), [`PopoverHideEvent`](popover.md#popoverhideevent), [`PopoverShowEvent`](popover.md#popovershowevent), [`PopupCloseEvent`](popup.md#popupcloseevent), [`PopupMenuCloseEvent`](popup-menu.md#popupmenucloseevent), [`PopupMenuItemClickEvent`](popup-menu.md#popupmenuitemclickevent), [`RowEditEvent`](grid.md#roweditevent), [`RowReorderEvent`](grid.md#rowreorderevent), [`StepSelectEvent`](stepper.md#stepselectevent), [`TabCloseEvent`](tabs.md#tabcloseevent), [`TabSelectEvent`](tabs.md#tabselectevent), [`TimePickerComponent`](time-picker.md#timepickercomponent), [`ToolbarItemDirective`](toolbar.md#toolbaritemdirective)
104
+ **Used by:** [`AutoCompleteComponent`](auto-complete.md#autocompletecomponent), [`CellEditEvent`](grid.md#celleditevent), [`ColumnReorderEvent`](grid.md#columnreorderevent), [`ColumnSortEvent`](grid.md#columnsortevent), [`ComboBoxComponent`](combo-box.md#comboboxcomponent), [`DatePickerComponent`](date-picker.md#datepickercomponent), [`DateRangePickerComponent`](date-range-picker.md#daterangepickercomponent), [`DateTimePickerComponent`](datetime-picker.md#datetimepickercomponent), [`DialogActionEvent`](dialog.md#dialogactionevent), [`DropdownListComponent`](dropdown-list.md#dropdownlistcomponent), [`DropdownTreeComponent`](dropdown-tree.md#dropdowntreecomponent), [`FilterChangeEvent`](common.md#filterchangeevent), [`GridAddEvent`](grid.md#gridaddevent), [`GridCancelEvent`](grid.md#gridcancelevent), [`GridEditEvent`](grid.md#grideditevent), [`GridRemoveEvent`](grid.md#gridremoveevent), [`GridSaveEvent`](grid.md#gridsaveevent), [`KanbanCardMoveEvent`](kanban.md#kanbancardmoveevent), [`ListBoxClearEvent`](list-box.md#listboxclearevent), [`ListBoxMoveEvent`](list-box.md#listboxmoveevent), [`ListBoxRemoveEvent`](list-box.md#listboxremoveevent), [`ListBoxTransferEvent`](list-box.md#listboxtransferevent), [`MultiSelectComponent`](multi-select.md#multiselectcomponent), [`MultiSelectTreeComponent`](multi-select-tree.md#multiselecttreecomponent), [`NodeCheckEvent`](tree-view.md#nodecheckevent), [`NodeClickEvent`](tree-view.md#nodeclickevent), [`NodeSelectEvent`](tree-view.md#nodeselectevent), [`PageSizeChangeEvent`](pager.md#pagesizechangeevent), [`PopoverHideEvent`](popover.md#popoverhideevent), [`PopoverShowEvent`](popover.md#popovershowevent), [`PopupCloseEvent`](popup.md#popupcloseevent), [`PopupMenuCloseEvent`](popup-menu.md#popupmenucloseevent), [`PopupMenuItemClickEvent`](popup-menu.md#popupmenuitemclickevent), [`RowEditEvent`](grid.md#roweditevent), [`RowReorderEvent`](grid.md#rowreorderevent), [`SortableMoveEvent`](sortable.md#sortablemoveevent), [`StepSelectEvent`](stepper.md#stepselectevent), [`TabCloseEvent`](tabs.md#tabcloseevent), [`TabSelectEvent`](tabs.md#tabselectevent), [`TimePickerComponent`](time-picker.md#timepickercomponent), [`ToolbarItemDirective`](toolbar.md#toolbaritemdirective)
105
105
 
106
106
  ## `FilterChangeEvent`
107
107
 
package/docs/api/grid.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Everything `@nanahoshi/mona-ui/grid` exports.
4
4
 
5
- **Guides:** [Grid Overview](../grid.md), [Sorting & Filtering](../grid-sorting-filtering.md), [Grouping & Aggregates](../grid-grouping.md), [Selection](../grid-selection.md), [Editing](../grid-editing.md), [Columns](../grid-columns.md), [Rows](../grid-rows.md), [Server Binding & Virtualization](../grid-server.md), [State & Export](../grid-state-export.md)
5
+ **Guides:** [Grid Overview](../grid.md), [Sorting & Filtering](../grid-sorting-filtering.md), [Grouping & Aggregates](../grid-grouping.md), [Tree List](../grid-tree.md), [Selection](../grid-selection.md), [Editing](../grid-editing.md), [Columns](../grid-columns.md), [Rows](../grid-rows.md), [Server Binding & Virtualization](../grid-server.md), [State & Export](../grid-state-export.md)
6
6
 
7
7
  ## `GridColumnComponent`
8
8
 
@@ -16,6 +16,7 @@ Component.
16
16
  | --- | --- | --- | --- |
17
17
  | `aggregate` | `AggregateFunction \| null` | `null` | The aggregate shown in the grid footer for this column. |
18
18
  | `editable` | `boolean \| null` | `null` | Whether this column is editable when the grid is in edit mode. Left unset, every column is editable except the one whose `field` is the grid's `rowKey`. |
19
+ | `expandable` | `boolean` | `false` | In a tree grid (`monaGridTree`), whether this column shows the expand toggles and indents its cells by each row's level. Without it on any column, the first visible data column does. |
19
20
  | `field` | `string` | `""` | The field name of the data property to display in this column. |
20
21
  | `filterable` | `boolean` | `true` | Whether this column can be filtered when grid filtering is enabled. Has no effect if filtering is disabled on the grid. |
21
22
  | `format` | `ColumnFormat \| null` | — | Formats the displayed cell value. String formats apply to date columns and their date filters; formatter functions replace the cell text. |
@@ -132,6 +133,72 @@ Directive.
132
133
  | --- | --- |
133
134
  | `endEdit(): void` | Closes the current edit without reporting it, such as after a `save` that was prevented to save on the server has finished. |
134
135
 
136
+ ## `GridTreeDirective`
137
+
138
+ Directive.
139
+
140
+ Shows the grid's rows as a tree: each row can have child rows, shown below it, indented, when it's expanded.
141
+ Give either `children`, for data items that hold their children, or `parentKey`, for flat data whose items
142
+ name their parent's `rowKey` value.
143
+
144
+ **Selector:** `mona-grid[monaGridTree]`
145
+ **Exported as:** `monaGridTree`
146
+ **Type parameters:** `T = Record<PropertyKey, unknown>`
147
+
148
+ ### Inputs
149
+
150
+ | Name | Type | Default | Description |
151
+ | --- | --- | --- | --- |
152
+ | `children` | `GridTreeChildren<T> \| ""` | `""` | The field holding a data item's child items, or a function returning them. Use it when the grid's `data` holds the root items and each item holds its children. |
153
+ | `parentKey` | `GridKeySelector<T>` | `""` | The parent key of each data item: the field holding the `rowKey` value of its parent, or a function returning it. Use it when the grid's `data` is flat; the grid needs a `rowKey`. An item whose parent isn't in the data is a root. |
154
+ | `treeExpandedKeys` | `Iterable<unknown>` | `[]` | The keys of the expanded tree rows: their `rowKey` values, or the data items when the grid has no `rowKey`. Rows start collapsed. It's apart from the grid's own `expandedKeys`, which opens detail rows. |
155
+
156
+ ### Outputs
157
+
158
+ | Name | Type | Description |
159
+ | --- | --- | --- |
160
+ | `treeExpandedKeysChange` | `unknown[]` | Emitted with every expanded tree row's key when the user expands or collapses a row, and when filtering expands the rows above its matches. Not emitted for a `treeExpandedKeys` value set from code. |
161
+
162
+ ### Methods
163
+
164
+ | Signature | Description |
165
+ | --- | --- |
166
+ | `collapseAll(): void` | Collapses every row, and emits `treeExpandedKeysChange`. |
167
+ | `expandAll(): void` | Expands every row that has children, so the whole tree shows, and emits `treeExpandedKeysChange`. |
168
+
169
+ ## `GridRangeSelectableDirective`
170
+
171
+ Directive.
172
+
173
+ Lets the user select a rectangle of cells: drag across them with the mouse, Shift+click the far corner, or extend
174
+ from the focused cell with Shift and the arrow keys. Ctrl+A selects every cell and Escape clears the range.
175
+ Ctrl+C copies the range as tab-separated text, which spreadsheets paste as cells. With `monaGridEditable`, Ctrl+V
176
+ pastes such text from the focused cell, or from the range's first cell, and `rangePaste` reports what changes.
177
+
178
+ **Selector:** `mona-grid[monaGridRangeSelectable]`
179
+ **Exported as:** `monaGridRangeSelectable`
180
+ **Type parameters:** `T = Record<PropertyKey, unknown>`
181
+
182
+ ### Inputs
183
+
184
+ | Name | Type | Default | Description |
185
+ | --- | --- | --- | --- |
186
+ | `monaGridRangeSelectable` | `boolean` | `true` | Turns range selection on; `false` turns it off. |
187
+
188
+ ### Outputs
189
+
190
+ | Name | Type | Description |
191
+ | --- | --- | --- |
192
+ | `rangeChange` | `GridCellRange<T> \| null` | Emitted when the user changes the selected range, with the data items of its rows and the fields of its columns, and with `null` when the range is cleared. |
193
+ | `rangePaste` | `GridRangePasteEvent<T>` | Emitted after a paste into the cells, with each changed row's data as it was and with the pasted values. The grid doesn't change its data: save `rowData` as you would an edit. Only editable columns take values, and only text that fits the column's type. |
194
+
195
+ ### Methods
196
+
197
+ | Signature | Description |
198
+ | --- | --- |
199
+ | `clearRange(): void` | Clears the selected range. |
200
+ | `selectAll(): void` | Selects every cell of the current page, or of the whole view in a virtual grid. |
201
+
135
202
  ## `GridSelectableDirective`
136
203
 
137
204
  Directive.
@@ -199,6 +266,21 @@ Directive.
199
266
  | `captureState(): GridState` | Captures the grid's current state (columns, sort, filter, group) without waiting for the next change cycle. |
200
267
  | `loadState(state: GridState \| null, options: GridStatePersistenceOptions = this.#resolveOptions()): GridStateLoadResult` | Applies a previously captured state to the grid. A state that isn't well formed (a missing array, a duplicate column id, an unknown filter operator, a page size or width that isn't a positive number) returns `rejected-invalid` and changes nothing. |
201
268
 
269
+ ## `GridExportDirective`
270
+
271
+ Directive.
272
+
273
+ **Selector:** `mona-grid[monaGridExport]`
274
+ **Exported as:** `monaGridExport`
275
+
276
+ ### Methods
277
+
278
+ | Signature | Description |
279
+ | --- | --- |
280
+ | `exportCsv(filename?: string): void` | Exports the visible columns of the current view as CSV (only the loaded page with server binding). |
281
+ | `exportExcel(filename?: string): Promise<void>` | Exports the same rows and columns as `exportCsv` as an Excel workbook (`.xlsx`), with column groups as merged header cells and values that keep their types. Resolves once the download has started. |
282
+ | `exportPdf(options?: GridPdfExportOptions \| string): Promise<void>` | Exports the same rows and columns as `exportCsv` as a PDF table, with the column groups and titles at the top of every page and cells as the grid shows them. Pass a file name, or options for the paper, a title and a TrueType font for scripts Helvetica can't show, such as Chinese, Japanese or Korean. Resolves once the download has started; rejects when the font can't be read. |
283
+
202
284
  ## `GridSortableDirective`
203
285
 
204
286
  Directive.
@@ -238,20 +320,6 @@ Directive.
238
320
  | --- | --- | --- |
239
321
  | `scrollEnd` | `void` | Emitted when the scroll position reaches the configured threshold from the bottom of the virtualized list. |
240
322
 
241
- ## `GridExportDirective`
242
-
243
- Directive.
244
-
245
- **Selector:** `mona-grid[monaGridExport]`
246
- **Exported as:** `monaGridExport`
247
-
248
- ### Methods
249
-
250
- | Signature | Description |
251
- | --- | --- |
252
- | `exportCsv(filename?: string): void` | Exports the visible columns of the current view as CSV (only the loaded page with server binding). |
253
- | `exportExcel(filename?: string): Promise<void>` | Exports the same rows and columns as `exportCsv` as an Excel workbook (`.xlsx`), with column groups as merged header cells and values that keep their types. Resolves once the download has started. |
254
-
255
323
  ## `GridFilterableDirective`
256
324
 
257
325
  Directive.
@@ -773,7 +841,7 @@ Class.
773
841
  Constant.
774
842
 
775
843
  ```typescript
776
- const GRID_DEFAULT_MESSAGES: { all: string; apply: string; cancel: string; cancelNewRow: string; cancelRowEdit: (rowNumber: number) => string; clearFilter: (column: string) => string; collapseDetail: (rowNumber: number) => string; columnGrouped: (column: string) => string; columnMoved: (column: string, position: number) => string; columns: string; columnsSelected: (count: number) => string; commandColumnTitle: string; delete: string; deleteRowConfirmation: (rowNumber: number) => string; deleteRowTitle: string; details: string; dragColumnHeaderToGroup: string; edit: string; editRow: (rowNumber: number) => string; expandDetail: (rowNumber: number) => string; fieldValidationError: string; filterByColumn: (column: string) => string; filterByColumnFiltered: (column: string) => string; filterOperator: (column: string, operator: string) => string; filterPlaceholder: string; group: string; groupOptions: (column: string) => string; loading: string; modified: string; moveAsNext: string; moveAsPrevious: string; moveRow: string; noData: string; remove: string; removeRow: (rowNumber: number) => string; reorderRow: (rowNumber: number) => string; resizeColumn: (column: string) => string; rowReorder: string; rowReorderDisabled: string; rowReorderDisabledEditing: string; rowReorderDisabledFiltered: string; rowReorderDisabledGrouped: string; rowReorderDisabledServerBinding: string; rowReorderDisabledSingleRow: string; rowReorderDisabledSorted: string; rowReorderDisabledVirtualScroll: string; rowReorderHandleAriaLabel: (rowLabel: string, keyboardHint: string, disabledReason?: string) => string; rowReorderKeyboardHint: string; rowReorderMoved: (fromRowNumber: number, toPosition: number) => string; rowValidationError: string; save: string; saveNewRow: string; saveRow: (rowNumber: number) => string; selectAllRows: string; selectRow: (rowNumber: number) => string; sortOrder: (position: number) => string; toolbar: string; };
844
+ const GRID_DEFAULT_MESSAGES: { all: string; apply: string; cancel: string; cancelNewRow: string; cancelRowEdit: (rowNumber: number) => string; cellsCopied: (count: number) => string; cellsPasted: (count: number) => string; clearFilter: (column: string) => string; collapseDetail: (rowNumber: number) => string; columnGrouped: (column: string) => string; columnMoved: (column: string, position: number) => string; columns: string; columnsSelected: (count: number) => string; commandColumnTitle: string; delete: string; deleteRowConfirmation: (rowNumber: number) => string; deleteRowTitle: string; details: string; dragColumnHeaderToGroup: string; edit: string; editRow: (rowNumber: number) => string; expandDetail: (rowNumber: number) => string; fieldValidationError: string; filterByColumn: (column: string) => string; filterByColumnFiltered: (column: string) => string; filterOperator: (column: string, operator: string) => string; filterPlaceholder: string; group: string; groupOptions: (column: string) => string; loading: string; modified: string; moveAsNext: string; moveAsPrevious: string; moveRow: string; noData: string; remove: string; removeRow: (rowNumber: number) => string; reorderRow: (rowNumber: number) => string; resizeColumn: (column: string) => string; rowReorder: string; rowReorderDisabled: string; rowReorderDisabledEditing: string; rowReorderDisabledFiltered: string; rowReorderDisabledGrouped: string; rowReorderDisabledServerBinding: string; rowReorderDisabledSingleRow: string; rowReorderDisabledSorted: string; rowReorderDisabledVirtualScroll: string; rowReorderHandleAriaLabel: (rowLabel: string, keyboardHint: string, disabledReason?: string) => string; rowReorderKeyboardHint: string; rowReorderMoved: (fromRowNumber: number, toPosition: number) => string; rowValidationError: string; save: string; saveNewRow: string; saveRow: (rowNumber: number) => string; selectAllRows: string; selectRow: (rowNumber: number) => string; sortOrder: (position: number) => string; toolbar: string; };
777
845
  ```
778
846
 
779
847
  ## `GridToolbarContext`
@@ -834,6 +902,7 @@ grid scrolls horizontally.
834
902
  | `dataType` (read-only) | `DataType` | The column's data type, which picks the editor and the filter. Command columns use `"string"`. |
835
903
  | `editable` (read-only) | `boolean` | Whether the column can be edited. The grid resolves it from `configuredEditable` when that is set. |
836
904
  | `editTemplate` (read-only) | `TemplateRef<unknown> \| null` | The column's `monaGridEditTemplate`, which renders the cell editor, or `null` for the editor of its data type. |
905
+ | `expandable?` (read-only) | `boolean` | Whether the column shows a tree's expand toggles, indented by each row's level, when the grid has `monaGridTree`. Left out on every column, the first visible data column shows them. |
837
906
  | `field` (read-only) | `string` | The data property the column shows. A command column uses its `stateKey`, or `"commands"`. |
838
907
  | `filterable` (read-only) | `boolean` | Whether the column can be filtered when the grid's filtering is enabled. |
839
908
  | `footerTemplate` (read-only) | `TemplateRef<unknown> \| null` | The column's `monaGridFooterTemplate`, which renders its footer cell, or `null`. |
@@ -873,6 +942,7 @@ Interface.
873
942
  | `dataType` (read-only) | `DataType` | The column's data type, which picks the editor and the filter. Command columns use `"string"`. |
874
943
  | `editable` (read-only) | `boolean` | Whether the column can be edited. The grid resolves it from `configuredEditable` when that is set. |
875
944
  | `editTemplate` (read-only) | `TemplateRef<unknown> \| null` | The column's `monaGridEditTemplate`, which renders the cell editor, or `null` for the editor of its data type. |
945
+ | `expandable?` (read-only) | `boolean` | Whether the column shows a tree's expand toggles, indented by each row's level, when the grid has `monaGridTree`. Left out on every column, the first visible data column shows them. |
876
946
  | `field` (read-only) | `string` | The data property the column shows. A command column uses its `stateKey`, or `"commands"`. |
877
947
  | `filterable` (read-only) | `boolean` | Whether the column can be filtered when the grid's filtering is enabled. |
878
948
  | `footerTemplate` (read-only) | `TemplateRef<unknown> \| null` | The column's `monaGridFooterTemplate`, which renders its footer cell, or `null`. |
@@ -958,6 +1028,24 @@ Interface.
958
1028
 
959
1029
  **Used by:** [`DropdownFilterableDirective`](dropdowns.md#dropdownfilterabledirective), [`GridFilterableDirective`](grid.md#gridfilterabledirective), [`TreeViewFilterableDirective`](tree-view.md#treeviewfilterabledirective)
960
1030
 
1031
+ ## `GridCellRange`
1032
+
1033
+ Interface.
1034
+
1035
+ The cells a range selection covers: the data items of its rows and the fields of its columns, each in the order
1036
+ the grid shows them.
1037
+
1038
+ **Type parameters:** `T = Record<PropertyKey, unknown>`
1039
+
1040
+ ### Properties
1041
+
1042
+ | Name | Type |
1043
+ | --- | --- |
1044
+ | `fields` (read-only) | `readonly string[]` |
1045
+ | `rows` (read-only) | `readonly T[]` |
1046
+
1047
+ **Used by:** [`GridRangeSelectableDirective`](grid.md#gridrangeselectabledirective)
1048
+
961
1049
  ## `GridColumnState`
962
1050
 
963
1051
  Interface.
@@ -1056,6 +1144,79 @@ Interface.
1056
1144
  | `touched` (read-only) | `boolean` | Whether this field has been touched. |
1057
1145
  | `value` (read-only) | `unknown` | This field's current value. |
1058
1146
 
1147
+ ## `GridPdfExportOptions`
1148
+
1149
+ Interface.
1150
+
1151
+ ### Properties
1152
+
1153
+ | Name | Type | Description |
1154
+ | --- | --- | --- |
1155
+ | `filename?` (read-only) | `string` | The file's name. Defaults to `export.pdf`. |
1156
+ | `font?` (read-only) | `GridPdfFont` | A TrueType font to embed. Without it, text is set in Helvetica, which shows Western European characters only; other characters print as `?`. Only the glyphs the document uses are embedded. |
1157
+ | `fontSize?` (read-only) | `number` | The text size in points before a wide table is scaled to fit the page. Defaults to 9. |
1158
+ | `margin?` (read-only) | `number` | The margin around the page, in points. Defaults to 36 (half an inch). |
1159
+ | `orientation?` (read-only) | `"landscape" \| "portrait"` | Defaults to `portrait`. |
1160
+ | `paperSize?` (read-only) | `GridPdfPaperSize` | Defaults to `A4`. |
1161
+ | `title?` (read-only) | `string` | A title printed above the table on the first page, and stored as the document's title. |
1162
+
1163
+ **Used by:** [`GridExportDirective`](grid.md#gridexportdirective)
1164
+
1165
+ ## `GridPdfFont`
1166
+
1167
+ Interface.
1168
+
1169
+ The font a PDF export embeds for the text Helvetica can't show, such as Chinese, Japanese or Korean. It must have
1170
+ TrueType outlines: most `.otf` files have CFF outlines, and web fonts (`.woff`, `.woff2`) are compressed, so the
1171
+ export rejects both. A variable font prints at its default instance, which is often its lightest weight, so prefer
1172
+ a static font of the weight you want.
1173
+
1174
+ ### Properties
1175
+
1176
+ | Name | Type | Description |
1177
+ | --- | --- | --- |
1178
+ | `bold?` (read-only) | `GridPdfFontSource` | The bold face, for the header and the title. Without it, the regular face is drawn thicker. |
1179
+ | `collectionIndex?` (read-only) | `number` | Which font of a TrueType collection (`.ttc`) to use, from 0. |
1180
+ | `regular` (read-only) | `GridPdfFontSource` | |
1181
+
1182
+ **Used by:** [`GridPdfExportOptions`](grid.md#gridpdfexportoptions)
1183
+
1184
+ ## `GridRangePasteChange`
1185
+
1186
+ Interface.
1187
+
1188
+ One row's pasted values: the row as it was, and as it is with the values in.
1189
+
1190
+ **Type parameters:** `T = Record<PropertyKey, unknown>`
1191
+
1192
+ ### Properties
1193
+
1194
+ | Name | Type | Description |
1195
+ | --- | --- | --- |
1196
+ | `fields` (read-only) | `readonly string[]` | The fields that took a pasted value. |
1197
+ | `originalRowData` (read-only) | `T` | |
1198
+ | `rowData` (read-only) | `T` | A copy of the row with the pasted values; save it to change the grid's data. |
1199
+
1200
+ **Used by:** [`GridRangePasteEvent`](grid.md#gridrangepasteevent)
1201
+
1202
+ ## `GridRangePasteEvent`
1203
+
1204
+ Interface.
1205
+
1206
+ What a paste into the grid's cells would change. The grid doesn't change its data itself.
1207
+
1208
+ **Type parameters:** `T = Record<PropertyKey, unknown>`
1209
+
1210
+ ### Properties
1211
+
1212
+ | Name | Type | Description |
1213
+ | --- | --- | --- |
1214
+ | `changes` (read-only) | `readonly GridRangePasteChange<T>[]` | The rows that take pasted values, in the order the grid shows them. |
1215
+ | `skippedCells` (read-only) | `number` | How many cells kept their value: their column can't be edited, or the text doesn't fit its type. |
1216
+ | `text` (read-only) | `string` | The pasted text, as it came from the clipboard. |
1217
+
1218
+ **Used by:** [`GridRangeSelectableDirective`](grid.md#gridrangeselectabledirective)
1219
+
1059
1220
  ## `GridState`
1060
1221
 
1061
1222
  Interface.
@@ -1385,7 +1546,31 @@ The field holding a row's key, or a function returning it.
1385
1546
  type GridKeySelector<TData, TKey = unknown> = string | Selector<TData, TKey> | null;
1386
1547
  ```
1387
1548
 
1388
- **Used by:** [`GridComponent`](grid.md#gridcomponent), [`GridSelectableDirective`](grid.md#gridselectabledirective)
1549
+ **Used by:** [`GridComponent`](grid.md#gridcomponent), [`GridSelectableDirective`](grid.md#gridselectabledirective), [`GridTreeDirective`](grid.md#gridtreedirective)
1550
+
1551
+ ## `GridPdfFontSource`
1552
+
1553
+ Type alias.
1554
+
1555
+ A TrueType font file (`.ttf` or `.ttc`): its bytes, or the URL to fetch it from.
1556
+
1557
+ ```typescript
1558
+ type GridPdfFontSource = ArrayBuffer | Uint8Array | string;
1559
+ ```
1560
+
1561
+ **Used by:** [`GridPdfFont`](grid.md#gridpdffont)
1562
+
1563
+ ## `GridPdfPaperSize`
1564
+
1565
+ Type alias.
1566
+
1567
+ A paper size by name, or a page's width and height in points (1/72 inch).
1568
+
1569
+ ```typescript
1570
+ type GridPdfPaperSize = "A3" | "A4" | "Legal" | "Letter" | readonly [number, number];
1571
+ ```
1572
+
1573
+ **Used by:** [`GridPdfExportOptions`](grid.md#gridpdfexportoptions)
1389
1574
 
1390
1575
  ## `GridRowClass`
1391
1576
 
@@ -1467,6 +1652,18 @@ type GridStateVersion = 1;
1467
1652
 
1468
1653
  **Used by:** [`GridState`](grid.md#gridstate)
1469
1654
 
1655
+ ## `GridTreeChildren`
1656
+
1657
+ Type alias.
1658
+
1659
+ The field holding a data item's children, or a function returning them.
1660
+
1661
+ ```typescript
1662
+ type GridTreeChildren<T = Record<PropertyKey, unknown>> = string | { children(dataItem: T): Iterable<T> | null | undefined }["children"];
1663
+ ```
1664
+
1665
+ **Used by:** [`GridTreeDirective`](grid.md#gridtreedirective)
1666
+
1470
1667
  ## `ResizeMethod`
1471
1668
 
1472
1669
  Type alias.
package/docs/api/i18n.md CHANGED
@@ -420,6 +420,8 @@ Interface.
420
420
  | Signature | Description |
421
421
  | --- | --- |
422
422
  | `cancelRowEdit(rowNumber: number): string` | |
423
+ | `cellsCopied(count: number): string` | Announced when a range of cells is copied, with how many cells it holds. |
424
+ | `cellsPasted(count: number): string` | Announced after a paste into the cells, with how many cells took a value. |
423
425
  | `clearFilter(column: string): string` | |
424
426
  | `collapseDetail(rowNumber: number): string` | The name of the button that closes a row's detail row. |
425
427
  | `columnGrouped(column: string): string` | Announced when the keyboard groups the grid by a column. |
@@ -646,6 +648,38 @@ validator's own `message` wins over these.
646
648
 
647
649
  **Used by:** [`MonaLocaleMessages`](i18n.md#monalocalemessages)
648
650
 
651
+ ## `MonaKanbanMessages`
652
+
653
+ Interface.
654
+
655
+ ### Properties
656
+
657
+ | Name | Type | Description |
658
+ | --- | --- | --- |
659
+ | `emptyColumn` (read-only) | `string` | Shown in a column with no cards. |
660
+
661
+ ### Methods
662
+
663
+ | Signature | Description |
664
+ | --- | --- |
665
+ | `cardCount(count: number): string` | How many cards a column holds, read after its title ("3 cards"). |
666
+ | `cardCountWithLimit(count: number, limit: number): string` | How many cards a column with a limit holds, read after its title ("3 of 5 cards"). |
667
+
668
+ **Used by:** [`KANBAN_DEFAULT_MESSAGES`](kanban.md#kanban-default-messages), [`MonaLocaleMessages`](i18n.md#monalocalemessages)
669
+
670
+ ## `MonaSortableMessages`
671
+
672
+ Interface.
673
+
674
+ ### Methods
675
+
676
+ | Signature | Description |
677
+ | --- | --- |
678
+ | `itemMoved(item: string, position: number, total: number): string` | Announced after an item moves within its list, with its name and new position ("Draft moved to position 2 of 5"). |
679
+ | `itemMovedToList(item: string, list: string, position: number, total: number): string` | Announced after an item moves to another list, with its name, the list's name and its position there ("Draft moved to Done, position 1 of 3"). |
680
+
681
+ **Used by:** [`MonaLocaleMessages`](i18n.md#monalocalemessages), [`SORTABLE_DEFAULT_MESSAGES`](sortable.md#sortable-default-messages)
682
+
649
683
  ## `MonaAlertMessages`
650
684
 
651
685
  Interface.
@@ -1345,6 +1379,7 @@ Interface.
1345
1379
  | `filter` | `MonaFilterMessages` |
1346
1380
  | `formField` | `MonaFormFieldMessages` |
1347
1381
  | `grid` | `MonaGridMessages` |
1382
+ | `kanban` | `MonaKanbanMessages` |
1348
1383
  | `label` | `MonaLabelMessages` |
1349
1384
  | `list` | `MonaListMessages` |
1350
1385
  | `listBox` | `MonaListBoxMessages` |
@@ -1362,6 +1397,7 @@ Interface.
1362
1397
  | `sheet` | `MonaSheetMessages` |
1363
1398
  | `sidebar` | `MonaSidebarMessages` |
1364
1399
  | `slider` | `MonaSliderMessages` |
1400
+ | `sortable` | `MonaSortableMessages` |
1365
1401
  | `spinner` | `MonaSpinnerMessages` |
1366
1402
  | `splitButton` | `MonaSplitButtonMessages` |
1367
1403
  | `splitter` | `MonaSplitterMessages` |
@@ -0,0 +1,222 @@
1
+ # `@nanahoshi/mona-ui/kanban`
2
+
3
+ Everything `@nanahoshi/mona-ui/kanban` exports.
4
+
5
+ **Guides:** [Kanban](../kanban.md)
6
+
7
+ ## `KanbanComponent`
8
+
9
+ Component.
10
+
11
+ A board of columns that cards move between, by dragging or with Control+Shift and the arrow keys (Command+Shift on
12
+ macOS). Each card goes in the column whose `status` its status field holds, in the order of `data`. A move emits
13
+ `cardMove`, then the new data through `dataChange`, so bind `[(data)]`. The arrow keys move focus between cards.
14
+
15
+ **Selector:** `mona-kanban`
16
+ **Type parameters:** `T extends object = Record<string, unknown>`
17
+
18
+ ### Inputs
19
+
20
+ | Name | Type | Default | Description |
21
+ | --- | --- | --- | --- |
22
+ | `class` | `string` | `""` | Additional CSS classes merged onto the host element via `tailwind-merge`. |
23
+ | `columns` (required) | `readonly KanbanColumn[]` | — | The board's columns, in order. A card whose status matches no column isn't shown. |
24
+ | `data` (required) | `readonly T[]` | — | The cards. Each goes in the column whose `status` its status field holds, in the order of this array. Bind it two-way, `[(data)]`, to take each move. |
25
+ | `disabled` | `boolean` | `false` | Stops cards from moving, by pointer or keyboard. Focus still moves between them, and what their template holds still works. |
26
+ | `statusField` | `string` | `"status"` | The field of each card that holds its column's `status`. |
27
+ | `textField` | `string` | `"title"` | The field of each card shown as its text when there's no card template, and used as its name in announcements of its moves. |
28
+
29
+ ### Outputs
30
+
31
+ | Name | Type | Description |
32
+ | --- | --- | --- |
33
+ | `cardMove` | `KanbanCardMoveEvent<T>` | Emitted with a `KanbanCardMoveEvent` when a card moves within its column or into another, before `dataChange`. This event is preventable. |
34
+ | `dataChange` | `T[]` | Emitted with the board's new cards after a move, unless the move was refused. A card that changes column is a copy with its status field set to the column's status. |
35
+
36
+ ## `KanbanCardTemplateDirective`
37
+
38
+ Directive.
39
+
40
+ Template for each card of a Kanban board. The card is the template's implicit value (`let-card`), with its column
41
+ (`let-column="column"`) and its index in the column (`let-index="index"`). Bind the board's data to
42
+ `monaKanbanCardTemplateOf` to type the card; without it, the card is `any` in templates.
43
+
44
+ **Selector:** `ng-template[monaKanbanCardTemplate]`
45
+ **Type parameters:** `T = any`
46
+
47
+ ### Inputs
48
+
49
+ | Name | Type | Default | Description |
50
+ | --- | --- | --- | --- |
51
+ | `monaKanbanCardTemplateOf` | `Iterable<T> \| null \| undefined` | `null` | The board's data, used only to type the template's card. Optional. |
52
+
53
+ ### Template context
54
+
55
+ | Name | Type | Description |
56
+ | --- | --- | --- |
57
+ | `$implicit` | `T` | The card (`let-card`). |
58
+ | `column` | `KanbanColumn` | The column the card is in (`let-column="column"`). |
59
+ | `index` | `number` | The card's index in its column (`let-index="index"`). |
60
+
61
+ ## `KanbanColumnFooterTemplateDirective`
62
+
63
+ Directive.
64
+
65
+ Template for the foot of each column of a Kanban board, below its cards, such as for an Add card button. The column
66
+ is the template's implicit value (`let-column`), with its cards (`let-cards="cards"`) and how many there are
67
+ (`let-count="count"`).
68
+
69
+ **Selector:** `ng-template[monaKanbanColumnFooterTemplate]`
70
+ **Type parameters:** `T = any`
71
+
72
+ ### Inputs
73
+
74
+ | Name | Type | Default | Description |
75
+ | --- | --- | --- | --- |
76
+ | `monaKanbanColumnFooterTemplateOf` | `Iterable<T> \| null \| undefined` | `null` | The board's data, used only to type the template's cards. Optional. |
77
+
78
+ ### Template context
79
+
80
+ | Name | Type | Description |
81
+ | --- | --- | --- |
82
+ | `$implicit` | `KanbanColumn` | The column (`let-column`). |
83
+ | `cards` | `readonly T[]` | The column's cards, in order (`let-cards="cards"`). |
84
+ | `count` | `number` | How many cards the column holds (`let-count="count"`). |
85
+
86
+ ## `KanbanColumnHeaderTemplateDirective`
87
+
88
+ Directive.
89
+
90
+ Template for the header of each column of a Kanban board, in place of its title and count. The column is the
91
+ template's implicit value (`let-column`), with its cards (`let-cards="cards"`) and how many there are
92
+ (`let-count="count"`). The header names the column's list, so keep the title in it.
93
+
94
+ **Selector:** `ng-template[monaKanbanColumnHeaderTemplate]`
95
+ **Type parameters:** `T = any`
96
+
97
+ ### Inputs
98
+
99
+ | Name | Type | Default | Description |
100
+ | --- | --- | --- | --- |
101
+ | `monaKanbanColumnHeaderTemplateOf` | `Iterable<T> \| null \| undefined` | `null` | The board's data, used only to type the template's cards. Optional. |
102
+
103
+ ### Template context
104
+
105
+ | Name | Type | Description |
106
+ | --- | --- | --- |
107
+ | `$implicit` | `KanbanColumn` | The column (`let-column`). |
108
+ | `cards` | `readonly T[]` | The column's cards, in order (`let-cards="cards"`). |
109
+ | `count` | `number` | How many cards the column holds (`let-count="count"`). |
110
+
111
+ ## `KanbanCardMoveEvent`
112
+
113
+ Class.
114
+
115
+ A card dragged, or moved with Control+Shift and the arrow keys, to a new place on a Kanban board: within its column
116
+ or into another. Call `preventDefault()` to refuse the move: the board then doesn't emit its new data, and the card
117
+ goes back where it was.
118
+
119
+ **Type parameters:** `T = unknown`
120
+ **Extends:** `PreventableEvent`
121
+
122
+ ### Properties
123
+
124
+ | Name | Type | Description |
125
+ | --- | --- | --- |
126
+ | `card` (read-only) | `T` | The card as it was before the move. |
127
+ | `currentIndex` (read-only) | `number` | The card's index in its column after the move. |
128
+ | `data` (read-only) | `readonly T[]` | The board's cards after the move: what `dataChange` emits unless the move is refused. |
129
+ | `movedCard` (read-only) | `T` | The card after the move. A card that changes column is a copy with its status field set to the new column's status; one that stays in its column is the same object as `card`. |
130
+ | `previousIndex` (read-only) | `number` | The card's index in its column before the move. |
131
+ | `previousStatus` (read-only) | `unknown` | The status of the column the card comes from. |
132
+ | `status` (read-only) | `unknown` | The status of the column the card moves to. |
133
+
134
+ ### Inherited from `PreventableEvent`
135
+
136
+ | Name | Type | Description |
137
+ | --- | --- | --- |
138
+ | `originalEvent` (read-only) | `E \| undefined` | The DOM event that caused this one, when there is one. |
139
+ | `type` (read-only) | `string \| undefined` | A name for the kind of event, when the component that emits it sets one. |
140
+
141
+ **Methods**
142
+
143
+ | Signature | Description |
144
+ | --- | --- |
145
+ | `isDefaultPrevented(): boolean` | Whether `preventDefault()` was called. |
146
+ | `preventDefault(): void` | Cancels what the event announces, such as opening or closing a popup, or closing a dialog. |
147
+
148
+ **Used by:** [`KanbanComponent`](kanban.md#kanbancomponent)
149
+
150
+ ## `KANBAN_DEFAULT_MESSAGES`
151
+
152
+ Constant.
153
+
154
+ ```typescript
155
+ const KANBAN_DEFAULT_MESSAGES: MonaKanbanMessages;
156
+ ```
157
+
158
+ ## `KanbanCardMoveEventOptions`
159
+
160
+ Interface.
161
+
162
+ **Type parameters:** `T`
163
+
164
+ ### Properties
165
+
166
+ | Name | Type |
167
+ | --- | --- |
168
+ | `card` (read-only) | `T` |
169
+ | `currentIndex` (read-only) | `number` |
170
+ | `data` (read-only) | `readonly T[]` |
171
+ | `movedCard` (read-only) | `T` |
172
+ | `previousIndex` (read-only) | `number` |
173
+ | `previousStatus` (read-only) | `unknown` |
174
+ | `status` (read-only) | `unknown` |
175
+
176
+ ## `KanbanCardTemplateContext`
177
+
178
+ Interface.
179
+
180
+ The context of a `monaKanbanCardTemplate`: the card, as `let-card`.
181
+
182
+ **Type parameters:** `T = unknown`
183
+
184
+ ### Properties
185
+
186
+ | Name | Type | Description |
187
+ | --- | --- | --- |
188
+ | `$implicit` (read-only) | `T` | The card (`let-card`). |
189
+ | `column` (read-only) | `KanbanColumn` | The column the card is in (`let-column="column"`). |
190
+ | `index` (read-only) | `number` | The card's index in its column (`let-index="index"`). |
191
+
192
+ ## `KanbanColumn`
193
+
194
+ Interface.
195
+
196
+ A column of a Kanban board: the cards whose status field holds its `status`.
197
+
198
+ ### Properties
199
+
200
+ | Name | Type | Description |
201
+ | --- | --- | --- |
202
+ | `limit?` (read-only) | `number` | The most cards the column takes. Once it holds that many, cards from other columns can't move into it, and its count is highlighted. Without it, the column takes any number. |
203
+ | `status` (read-only) | `unknown` | The value of a card's status field that puts the card in this column. |
204
+ | `title` (read-only) | `string` | The column's title, which also names it in announcements. |
205
+
206
+ **Used by:** [`KanbanCardTemplateContext`](kanban.md#kanbancardtemplatecontext), [`KanbanCardTemplateDirective`](kanban.md#kanbancardtemplatedirective), [`KanbanColumnFooterTemplateDirective`](kanban.md#kanbancolumnfootertemplatedirective), [`KanbanColumnHeaderTemplateDirective`](kanban.md#kanbancolumnheadertemplatedirective), [`KanbanColumnTemplateContext`](kanban.md#kanbancolumntemplatecontext), [`KanbanComponent`](kanban.md#kanbancomponent)
207
+
208
+ ## `KanbanColumnTemplateContext`
209
+
210
+ Interface.
211
+
212
+ The context of a `monaKanbanColumnHeaderTemplate` or `monaKanbanColumnFooterTemplate`: the column, as `let-column`.
213
+
214
+ **Type parameters:** `T = unknown`
215
+
216
+ ### Properties
217
+
218
+ | Name | Type | Description |
219
+ | --- | --- | --- |
220
+ | `$implicit` (read-only) | `KanbanColumn` | The column (`let-column`). |
221
+ | `cards` (read-only) | `readonly T[]` | The column's cards, in order (`let-cards="cards"`). |
222
+ | `count` (read-only) | `number` | How many cards the column holds (`let-count="count"`). |