@masterteam/data-table 0.0.1 → 0.0.3
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 +51 -14
- package/fesm2022/masterteam-data-table-legacy.mjs +6 -1235
- package/fesm2022/masterteam-data-table-legacy.mjs.map +1 -1
- package/fesm2022/masterteam-data-table.mjs +995 -6
- package/fesm2022/masterteam-data-table.mjs.map +1 -1
- package/legacy/README.md +11 -40
- package/package.json +3 -3
- package/types/masterteam-data-table-legacy.d.ts +7 -122
- package/types/masterteam-data-table.d.ts +269 -3
package/README.md
CHANGED
|
@@ -1,13 +1,51 @@
|
|
|
1
1
|
# @masterteam/data-table
|
|
2
2
|
|
|
3
|
-
Entity Info integration for the independent
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
The one standard grid for product pages, plus Entity Info integration for the independent
|
|
4
|
+
Angular 21 `@masterteam/data-grid`.
|
|
5
|
+
|
|
6
|
+
## The standard grid
|
|
7
|
+
|
|
8
|
+
Every product page that shows the new grid renders `mt-standard-grid`
|
|
9
|
+
(`MtStandardGridComponent`), so every grid has the same header and setup (user decision
|
|
10
|
+
2026-11-03):
|
|
11
|
+
|
|
12
|
+
```html
|
|
13
|
+
<mt-standard-grid
|
|
14
|
+
[rows]="rows()"
|
|
15
|
+
[columns]="columns()"
|
|
16
|
+
[rowId]="rowId"
|
|
17
|
+
label="Tasks"
|
|
18
|
+
height="auto"
|
|
19
|
+
(rowClicked)="open($event)"
|
|
20
|
+
(viewChanged)="saveView($event)"
|
|
21
|
+
/>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
- **One header** (`mtStandardColumns`): sort, menu and filter on every data column, resize and
|
|
25
|
+
move; no custom header renderers; control columns (no `field`/`valueGetter`, e.g. actions)
|
|
26
|
+
keep the menu only. Backend limits are the only exceptions: `sortable: false`, and on a
|
|
27
|
+
server page `filter: false`.
|
|
28
|
+
- **One setup**: 44px rows and header, group panel and quick filter, pivot zone while pivoting,
|
|
29
|
+
Columns/Filters side bar at the logical end, status bar, pager 10/20/50/100 when needed,
|
|
30
|
+
context menu with CSV/Excel/PDF export, charts (Chart Range on every page; a server page
|
|
31
|
+
charts the rows it holds), the standard empty state (`emptyTitle`).
|
|
32
|
+
- **Inputs** (data and behaviour only): `rows`, `columns`, `rowId` (optional for local tables),
|
|
33
|
+
`label`, `loading`, `height` (px or `'auto'`), `selection`, `exportable`, `exportName`,
|
|
34
|
+
`exportFormats` (a narrower export permission), `exporter` (an owner-run export, e.g. a
|
|
35
|
+
server export, behind the same menu), `rowMenuItems`, `server` (`{ total, page, pageSize }`
|
|
36
|
+
for a server page), `paged` (off for a grid that scrolls every row in its own viewport),
|
|
37
|
+
`detail` (`{ renderer, params, isRowMaster }` for master/detail rows), `chartContext`
|
|
38
|
+
(chart titles; defaults to `label`), `view`, `search`, `emptyTitle`/`emptyDescription`;
|
|
39
|
+
page buttons project into `[mtGridToolbar]`.
|
|
40
|
+
- **Outputs**: `gridReady`, `rowClicked`, `selectionChanged`, `sortChanged`, `filterChanged`,
|
|
41
|
+
`paginationChanged`, `rowGroupOpened`, `viewChanged` (the captured view, persist it per user),
|
|
42
|
+
`chartsChanged` (persist a chart session).
|
|
43
|
+
- **Helpers**: `mtActionsColumn` / `MtActionsCell` (the standard row-actions column),
|
|
44
|
+
`mtTableColumns` (maps mt-table `ColumnDef[]` with `customCellTpl` onto grid columns),
|
|
45
|
+
`MtTemplateCell`, `MtTableText` (grid locale texts), `mtTablePrintConfiguration`.
|
|
46
|
+
|
|
47
|
+
`mt-table` (`@masterteam/components/table`) is the old PrimeNG table and stays unchanged for
|
|
48
|
+
the control panel, document-library and form fields; it never renders this grid.
|
|
11
49
|
|
|
12
50
|
## Usage
|
|
13
51
|
|
|
@@ -55,12 +93,11 @@ and entity columns; `/data-grid/demo` remains the full grid reference.
|
|
|
55
93
|
|
|
56
94
|
## Existing consumers
|
|
57
95
|
|
|
58
|
-
|
|
59
|
-
`@masterteam/data-table/legacy` entry point
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
in [integration notes](../../../.github/instructions/data-table/README.md).
|
|
96
|
+
Portal/Studio configuration, preferences, data sources and the dataset cache live in the
|
|
97
|
+
explicit `@masterteam/data-table/legacy` entry point (`provideMTDataTables`); see
|
|
98
|
+
[legacy documentation](legacy/README.md). The compatibility renderer that turned `mt-table`
|
|
99
|
+
into a grid was removed on 2026-11-03. Which surfaces use the standard grid is listed in the
|
|
100
|
+
[integration notes](../../../.github/instructions/data-table/README.md).
|
|
64
101
|
|
|
65
102
|
## Verification
|
|
66
103
|
|