@masterteam/data-table 0.0.8 → 0.0.10
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 +104 -5
- package/fesm2022/masterteam-data-table-config.mjs +7 -1
- package/fesm2022/masterteam-data-table-config.mjs.map +1 -1
- package/fesm2022/masterteam-data-table-icons.mjs +2 -0
- package/fesm2022/masterteam-data-table-icons.mjs.map +1 -1
- package/fesm2022/masterteam-data-table-legacy.mjs +4 -7
- package/fesm2022/masterteam-data-table-legacy.mjs.map +1 -1
- package/fesm2022/masterteam-data-table.mjs +877 -14
- package/fesm2022/masterteam-data-table.mjs.map +1 -1
- package/package.json +3 -3
- package/types/masterteam-data-table-config.d.ts +39 -2
- package/types/masterteam-data-table-legacy.d.ts +4 -10
- package/types/masterteam-data-table.d.ts +208 -8
package/README.md
CHANGED
|
@@ -25,13 +25,25 @@ Every product page that shows the new grid renders `mt-standard-grid`
|
|
|
25
25
|
upper limit; a page's `maxWidth` is dropped) and move; no custom header renderers; control columns (no `field`/`valueGetter`, e.g. actions)
|
|
26
26
|
keep the menu only. Backend limits are the only exceptions: `sortable: false`, and on a
|
|
27
27
|
server page `filter: false`.
|
|
28
|
+
- **Header click selects the column; sort from the icon** (Excel-style,
|
|
29
|
+
`cellSelection: { headerClick: 'select' }`): a header click ranges the whole column (Shift
|
|
30
|
+
extends, Ctrl/⌘ adds, a group header takes its leaves); sorting is the icon after the label
|
|
31
|
+
(Enter on a focused header); the checkbox header's corner button, Ctrl+A and the header menu
|
|
32
|
+
select every cell; the status bar sums a whole column without counting group rows twice.
|
|
28
33
|
- **One setup**: 44px rows and header, group panel and quick filter, pivot zone while pivoting,
|
|
29
|
-
Columns/Filters side bar at the logical end, the row count in the top strip, a status bar
|
|
34
|
+
Columns/Filters/Charts side bar at the logical end, the row count in the top strip, a status bar
|
|
30
35
|
only while there is a selection or a range to summarise, pager 5/10/20/50/100 when needed (mt-table's
|
|
31
36
|
choices, default 10; the chosen size is part of the saved view), context menu with
|
|
32
37
|
CSV/Excel/PDF export, charts (Chart Range on every page; a server page charts the rows it
|
|
33
38
|
holds), groups in data order unless the group column is sorted, the standard empty state
|
|
34
39
|
(`emptyTitle`).
|
|
40
|
+
- **Charts (2026-11-15)**: a **Chart** split button sits in the top strip after the quick
|
|
41
|
+
filter. Its main part charts the current cell ranges with the type the data recommends; its
|
|
42
|
+
menu picks Column, Bar, Line, Pie or Doughnut. It is disabled, with the tooltip "Select cells
|
|
43
|
+
to create a chart", until there is a cell range. Charts show live data, do not follow later
|
|
44
|
+
selections, and dock ("–", Alt+M, Escape) into the **Charts** side-bar panel, from which a
|
|
45
|
+
card opens, renames, removes or drags a chart back onto the page. Texts go through
|
|
46
|
+
`MtTableText` (`chartAction`, `chartTypes`, `chartColumn` … `chartNeedsCells`).
|
|
35
47
|
- **mt-table parity (2026-11-04)**: a click on a button, link, label, `role=button` or
|
|
36
48
|
`[data-row-click-ignore]` inside a cell never also opens the row; date ranges include both
|
|
37
49
|
ends; collection columns filter on their display text; the actions column widens to fit its
|
|
@@ -41,17 +53,20 @@ Every product page that shows the new grid renders `mt-standard-grid`
|
|
|
41
53
|
lines; 44px otherwise), `selection`, `exportable`, `exportName`,
|
|
42
54
|
`exportFormats` (a narrower export permission), `exporter` (an owner-run export, e.g. a
|
|
43
55
|
server export, behind the same menu), `exportButtons` (also mt-table's caption Export /
|
|
44
|
-
Print buttons, for pages that had them), `rowMenuItems
|
|
56
|
+
Print buttons, for pages that had them), `rowMenuItems` (row actions after the standard
|
|
57
|
+
menu), `rowMenuLeadItems` (a row's primary actions, e.g. Open record, first in the menu),
|
|
58
|
+
`server` (`{ total, page, pageSize }`
|
|
45
59
|
for a server page), `paged` (off for a grid that scrolls every row in its own viewport),
|
|
46
60
|
`pageSize` (a client pager's rows per page, default 10), `clickableRows` (pointer cursor),
|
|
47
61
|
`cellClickFilter` (mt-table's: a click on a pick-list cell filters by its value),
|
|
48
62
|
`rowClass` (classes per row, e.g. a status colour or stripes), `detail`
|
|
49
63
|
(`{ renderer, params, isRowMaster }` for master/detail rows), `chartContext` (chart titles;
|
|
50
|
-
defaults to `label
|
|
51
|
-
|
|
64
|
+
defaults to `label`; a server page appends " · this page"), `chartPersistence` (see
|
|
65
|
+
[Chart persistence](#chart-persistence)), `view`, `search`, `emptyTitle`/`emptyDescription`;
|
|
66
|
+
page buttons project into `[mtGridToolbar]`.
|
|
52
67
|
- **Outputs**: `gridReady`, `rowClicked`, `selectionChanged`, `sortChanged`, `filterChanged`,
|
|
53
68
|
`paginationChanged`, `rowGroupOpened`, `viewChanged` (the captured view, persist it per user),
|
|
54
|
-
`chartsChanged` (
|
|
69
|
+
`chartsChanged` (any chart action, including the grid's own `chartStateChanged`).
|
|
55
70
|
- **Helpers**: `mtActionsColumn` / `MtActionsCell` (the standard row-actions column),
|
|
56
71
|
`mtTableColumns` (maps mt-table `ColumnDef[]` with `customCellTpl` onto grid columns),
|
|
57
72
|
`MtTemplateCell`, `MtTableText` (grid locale texts), `mtTablePrintConfiguration`.
|
|
@@ -59,6 +74,90 @@ Every product page that shows the new grid renders `mt-standard-grid`
|
|
|
59
74
|
`mt-table` (`@masterteam/components/table`) is the old PrimeNG table and stays unchanged for
|
|
60
75
|
the control panel, document-library and form fields; it never renders this grid.
|
|
61
76
|
|
|
77
|
+
## Chart persistence
|
|
78
|
+
|
|
79
|
+
A page that has a stable view identity keeps its charts across visits (user decision
|
|
80
|
+
2026-11-15): after a refresh every saved chart comes back **docked** in the Charts panel and
|
|
81
|
+
stays until the user removes it.
|
|
82
|
+
|
|
83
|
+
```html
|
|
84
|
+
<mt-standard-grid
|
|
85
|
+
[rows]="rows()"
|
|
86
|
+
[columns]="columns()"
|
|
87
|
+
label="Tasks"
|
|
88
|
+
[chartPersistence]="{ view: { level: 12, module: 'risks', role: 'my-page' }, scope: tab() }"
|
|
89
|
+
/>
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
- **Input** `chartPersistence`: `{ view: MtTableViewIdentity; scope?: string }` or `null`
|
|
93
|
+
(the default: charts last for the visit). `view` is the identity the page already gives
|
|
94
|
+
`MtTablePreferences`; `scope` (default `'default'`) separates grids inside one view.
|
|
95
|
+
- **Restore**, once per key and signed-in identity: when the grid is ready, not `loading`,
|
|
96
|
+
and holds rows or has finished a load, the saved set goes through `api.restoreCharts`
|
|
97
|
+
(docked). A new key first saves what is pending under the old one and removes the old
|
|
98
|
+
key's charts. A new identity (`MT_DATA_TABLE_CONFIGURATION.identity()`: another user or
|
|
99
|
+
actor) also removes them unsaved, but drops a pending save instead of flushing it, since
|
|
100
|
+
the store would file it under the new identity. A later server answer replaces the
|
|
101
|
+
restored charts only while the user has changed none.
|
|
102
|
+
- **Save**: 600ms after the last `chartStateChanged` the grid writes `api.getChartStates()`,
|
|
103
|
+
or clears the key when no chart is left. A pending save is flushed on destroy and on
|
|
104
|
+
`pagehide`. Restores and key changes are never written. A chart made from the grid has no
|
|
105
|
+
context of its own (it shows the grid's current `chartTitle`), so its state carries none and
|
|
106
|
+
a restored chart shows the current, translated one. A key or identity change also dismisses
|
|
107
|
+
a pending "Chart removed" notice (`api.dismissChartNotice()`), so its Undo cannot put the
|
|
108
|
+
chart into the new key's set.
|
|
109
|
+
- **Store**: `MT_GRID_CHART_STORE` (`@masterteam/data-table/config`, grid-free), else
|
|
110
|
+
`MtLocalChartStore`. The contract is `read(key, onRemoteChange?)`, `write`, `clear` and an
|
|
111
|
+
optional `prefetch({ level })`. `read` answers with what it has at once; a store that also
|
|
112
|
+
asks a server calls `onRemoteChange(charts)` once if the server holds a different set.
|
|
113
|
+
- **`MtLocalChartStore`** (default): local storage under
|
|
114
|
+
`mt-table:v1:[application, tenant, user, actor, template, level, module, role]:charts:<scope>`,
|
|
115
|
+
the key Studio used for its version-1 charts, which migrate. No identity, no storage; every
|
|
116
|
+
storage call is guarded.
|
|
117
|
+
- **`MtServerChartStore`** via `provideMTGridServerCharts({ endpoint? })` (application or
|
|
118
|
+
component `providers`; default endpoint `grid-charts/me`, relative, so the host adds the API
|
|
119
|
+
base and lists `grid-charts` as a silent endpoint). It keeps the local copy and:
|
|
120
|
+
- `GET {endpoint}?gridKey=` after answering locally (the app envelope's `data` is
|
|
121
|
+
`{ gridKey, levelId, revision, updatedAt, charts }`); a different stored set, with no write
|
|
122
|
+
for the key since the read began, replaces the local copy and is reported. A key the server
|
|
123
|
+
never stored (`revision` 0, `updatedAt` null, no charts) is no opinion: the local set stays
|
|
124
|
+
and, when not empty, is PUT to seed the server (the version-1 Studio charts that migrate
|
|
125
|
+
locally, or a grid that used `MtLocalChartStore` before). A set stored empty still clears
|
|
126
|
+
the local copy;
|
|
127
|
+
- `PUT {endpoint}` with `{ gridKey, levelId, schemaVersion: 2, charts }` (`levelId` is the
|
|
128
|
+
view's level when it is a positive integer, else `null`), one request per key at a time;
|
|
129
|
+
- clear PUTs an empty `charts` array (not `DELETE`), so other browsers see a removal rather
|
|
130
|
+
than a key the server never stored;
|
|
131
|
+
- `prefetch({ level })`: `GET {endpoint}/level/{level}` once; reads at that level then use it
|
|
132
|
+
(a key the level does not list was never stored: the local set stays and seeds the server).
|
|
133
|
+
- Failures (network, 401, 404, 429 …) keep the local set. The key stays marked unsynced
|
|
134
|
+
(`…:charts:<scope>:unsynced`) and the next write, or the next read after a refresh, sends
|
|
135
|
+
the local set instead of adopting the older server copy.
|
|
136
|
+
- What it remembers in memory (prefetched levels, known sets, the request queue) is per
|
|
137
|
+
tenant, user and actor, because the server key leaves them out.
|
|
138
|
+
- **Server key** (`mtGridChartServerKey`): `JSON.stringify([application, template, level,
|
|
139
|
+
module, role, scope])`; over 400 characters it becomes `h:<64-bit FNV-1a hex>:<first 300
|
|
140
|
+
characters>`. User, actor and tenant come from the token, never the key.
|
|
141
|
+
- **Studio** (`mt-client-studio`) passes `chartPersistence` on every grid and provides the
|
|
142
|
+
server store itself (`options.chartStore: 'local'` for the browser only), prefetching the
|
|
143
|
+
schema's level once per visit: see the client-components README, *Charts*.
|
|
144
|
+
- **Document v2** (`parseMtGridCharts`, `serializeMtGridCharts`): `{ version: 2, charts:
|
|
145
|
+
MtChartState[] }`, definitions only (columns, stable row ids, options, placement), never
|
|
146
|
+
data. The parser also reads a bare chart array (the server body) and migrates version-1
|
|
147
|
+
`{ options, ranges }` arrays to docked charts that do not follow the selection. Each field
|
|
148
|
+
is validated; theme overrides lose prototype keys; invalid charts drop one by one; the
|
|
149
|
+
newest **20** are kept (older ones dropped, never all); a range of more than **1000** row ids
|
|
150
|
+
becomes `rowIds: null`; the synthetic measures (`__count__`, `__nonEmpty__:`,
|
|
151
|
+
`__distinct__:`) stay. A document over **131072** characters (server: UTF-8 bytes) drops its
|
|
152
|
+
oldest charts until it fits; when not even one fits the key is removed, never left stale.
|
|
153
|
+
- **Wired pages**: ClientList (`client-list-native` view, scope = the list's toolbar bucket),
|
|
154
|
+
Work Center (its preferences view), Delegations (`{ level: 'delegations', module: <tab> |
|
|
155
|
+
null, role: 'delegations-list' }`) and the dashboard table card (`{ level: 'dashboard',
|
|
156
|
+
module: null, role: 'dashboard-table:<item id>' }`; settings previews are not saved). Faris
|
|
157
|
+
sections, the Work Center process preview and comparison dialogs stay temporary. On the
|
|
158
|
+
server-paged pages (Work Center, Delegations) a chart covers the loaded page, and its card
|
|
159
|
+
says " · this page" (`MtTableText` `chartThisPage`).
|
|
160
|
+
|
|
62
161
|
## Usage
|
|
63
162
|
|
|
64
163
|
Import `MtDataGridComponent` / `MtColumnDef` from `@masterteam/data-grid` and
|
|
@@ -12,10 +12,16 @@ function provideMTDataTables(configuration) {
|
|
|
12
12
|
: { provide: MT_DATA_TABLE_CONFIGURATION, useValue: configuration },
|
|
13
13
|
]);
|
|
14
14
|
}
|
|
15
|
+
/** The browser-storage key of a view's preferences; charts append `:charts:<scope>`. */
|
|
16
|
+
function mtTablePreferenceKey(identity, view) {
|
|
17
|
+
return `mt-table:v1:${JSON.stringify([identity.application, identity.tenant, identity.user, identity.actor, identity.template ?? null, view.level, view.module ?? null, view.role])}`;
|
|
18
|
+
}
|
|
19
|
+
/** The chart store of every `mt-standard-grid` below it; `MtLocalChartStore` when absent. */
|
|
20
|
+
const MT_GRID_CHART_STORE = new InjectionToken('MT_GRID_CHART_STORE');
|
|
15
21
|
|
|
16
22
|
/**
|
|
17
23
|
* Generated bundle index. Do not edit.
|
|
18
24
|
*/
|
|
19
25
|
|
|
20
|
-
export { MT_DATA_TABLE_CONFIGURATION, provideMTDataTables };
|
|
26
|
+
export { MT_DATA_TABLE_CONFIGURATION, MT_GRID_CHART_STORE, mtTablePreferenceKey, provideMTDataTables };
|
|
21
27
|
//# sourceMappingURL=masterteam-data-table-config.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"masterteam-data-table-config.mjs","sources":["../../../../packages/masterteam/data-table/config/public-api.ts","../../../../packages/masterteam/data-table/config/masterteam-data-table-config.ts"],"sourcesContent":["import {\
|
|
1
|
+
{"version":3,"file":"masterteam-data-table-config.mjs","sources":["../../../../packages/masterteam/data-table/config/public-api.ts","../../../../packages/masterteam/data-table/config/masterteam-data-table-config.ts"],"sourcesContent":["import {\n InjectionToken,\n makeEnvironmentProviders,\n type EnvironmentProviders,\n} from '@angular/core';\nimport type { MtChartState } from '@masterteam/data-grid';\n\n/*\n * Root configuration only. An application installs this at startup, so the\n * entry must not import the grid: anything it imports lands in the initial\n * bundle (type-only imports are erased). `@masterteam/data-table/legacy`\n * re-exports all of it.\n */\n\nexport interface MtTableScopeIdentity {\n readonly application: string;\n readonly tenant: string;\n readonly user: string;\n readonly actor: string;\n readonly template?: string | number | null;\n}\nexport interface MtDataTableConfiguration {\n readonly identity: () => MtTableScopeIdentity | null;\n readonly direction?: () => 'ltr' | 'rtl';\n}\n\nexport const MT_DATA_TABLE_CONFIGURATION =\n new InjectionToken<MtDataTableConfiguration>('MT_DATA_TABLE_CONFIGURATION', {\n providedIn: 'root',\n factory: () => ({ identity: () => null }),\n });\n\n/** Root installation of the data-table configuration (portal and Studio). */\nexport function provideMTDataTables(\n configuration: MtDataTableConfiguration | (() => MtDataTableConfiguration),\n): EnvironmentProviders {\n return makeEnvironmentProviders([\n typeof configuration === 'function'\n ? { provide: MT_DATA_TABLE_CONFIGURATION, useFactory: configuration }\n : { provide: MT_DATA_TABLE_CONFIGURATION, useValue: configuration },\n ]);\n}\n\n/** One grid on a page: its level, optional module and role (e.g. `client-list-native`). */\nexport interface MtTableViewIdentity {\n readonly level: number | string;\n readonly module?: string | null;\n readonly role: string;\n}\n\n/** The browser-storage key of a view's preferences; charts append `:charts:<scope>`. */\nexport function mtTablePreferenceKey(\n identity: MtTableScopeIdentity,\n view: MtTableViewIdentity,\n): string {\n return `mt-table:v1:${JSON.stringify([identity.application, identity.tenant, identity.user, identity.actor, identity.template ?? null, view.level, view.module ?? null, view.role])}`;\n}\n\n/** The charts of one grid: its view identity and a scope within it (`'default'`). */\nexport interface MtGridChartStoreKey {\n readonly view: MtTableViewIdentity;\n readonly scope: string;\n}\n\n/**\n * Where `mt-standard-grid` keeps its charts (`chartPersistence`). The default is the\n * browser-only `MtLocalChartStore`; `provideMTGridServerCharts()` installs the backend one.\n */\nexport interface MtGridChartStore {\n /**\n * The saved charts, oldest first. A store that also asks a server answers with its local\n * copy, then calls `onRemoteChange` once if the server holds a different set and nothing\n * was written for the key in the meantime; the grid adopts it only when the user has not\n * changed a chart since the restore.\n */\n read(\n key: MtGridChartStoreKey,\n onRemoteChange?: (charts: readonly MtChartState[]) => void,\n ): Promise<readonly MtChartState[]>;\n /** Replaces the saved charts; fire-and-forget (the grid debounces its calls). */\n write(key: MtGridChartStoreKey, charts: readonly MtChartState[]): void;\n /** Removes the saved charts. */\n clear(key: MtGridChartStoreKey): void;\n /** Optional: warms a cache for many keys at once, e.g. every grid of a level. */\n prefetch?(hint: { readonly level: number | string }): Promise<void>;\n}\n\n/** The chart store of every `mt-standard-grid` below it; `MtLocalChartStore` when absent. */\nexport const MT_GRID_CHART_STORE = new InjectionToken<MtGridChartStore>(\n 'MT_GRID_CHART_STORE',\n);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;MA0Ba,2BAA2B,GACtC,IAAI,cAAc,CAA2B,6BAA6B,EAAE;AAC1E,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,IAAI,EAAE,CAAC;AAC1C,CAAA;AAEH;AACM,SAAU,mBAAmB,CACjC,aAA0E,EAAA;AAE1E,IAAA,OAAO,wBAAwB,CAAC;QAC9B,OAAO,aAAa,KAAK;cACrB,EAAE,OAAO,EAAE,2BAA2B,EAAE,UAAU,EAAE,aAAa;cACjE,EAAE,OAAO,EAAE,2BAA2B,EAAE,QAAQ,EAAE,aAAa,EAAE;AACtE,KAAA,CAAC;AACJ;AASA;AACM,SAAU,oBAAoB,CAClC,QAA8B,EAC9B,IAAyB,EAAA;IAEzB,OAAO,CAAA,YAAA,EAAe,IAAI,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,WAAW,EAAE,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,QAAQ,IAAI,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;AACvL;AA+BA;MACa,mBAAmB,GAAG,IAAI,cAAc,CACnD,qBAAqB;;ACzFvB;;AAEG;;;;"}
|
|
@@ -85,6 +85,8 @@ const glyphs = {
|
|
|
85
85
|
plus: 'general.plus',
|
|
86
86
|
eye: 'general.eye',
|
|
87
87
|
loading: 'general.loading-01',
|
|
88
|
+
'select-column': 'layout.columns-01',
|
|
89
|
+
'select-all': 'layout.grid-01',
|
|
88
90
|
};
|
|
89
91
|
/** Populated before bootstrap from the same packaged asset map used by mt-icon. */
|
|
90
92
|
const gridDsIcons = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"masterteam-data-table-icons.mjs","sources":["../../../../packages/masterteam/data-table/icons/public-api.ts","../../../../packages/masterteam/data-table/icons/masterteam-data-table-icons.ts"],"sourcesContent":["import {\r\n inject,\r\n makeEnvironmentProviders,\r\n provideAppInitializer,\r\n} from '@angular/core';\r\nimport { HttpBackend } from '@angular/common/http';\r\n// The tokens entry only: the main entry would put the whole grid in the initial bundle.\r\nimport { MT_GRID_ICONS, type GridIconName } from '@masterteam/data-grid/tokens';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport type { MTIcon } from '@masterteam/icons';\r\nimport { firstValueFrom } from 'rxjs';\r\n\r\n/** Closest @masterteam/icons glyph for every grid semantic and historical alias. */\r\nconst glyphs = {\r\n 'sort-asc': 'arrow.arrow-up',\r\n 'sort-desc': 'arrow.arrow-down',\r\n 'sort-none': 'arrow.chevron-selector-vertical',\r\n reset: 'arrow.refresh-ccw-01',\r\n expand: 'arrow.chevron-right',\r\n collapse: 'arrow.chevron-down',\r\n pdf: 'file.file-06',\r\n export: 'general.download-01',\r\n asc: 'arrow.arrow-up',\r\n desc: 'arrow.arrow-down',\r\n hide: 'general.eye-off',\r\n blocked: 'general.slash-circle-01',\r\n pin: 'general.pin-01',\r\n columns: 'layout.columns-03',\r\n chevron: 'arrow.chevron-right',\r\n 'chevron-start': 'arrow.chevron-left-double',\r\n check: 'general.check',\r\n menu: 'general.dots-vertical',\r\n move: 'editor.move',\r\n left: 'arrow.arrow-left',\r\n right: 'arrow.arrow-right',\r\n close: 'general.x-close',\r\n copy: 'general.copy-01',\r\n cut: 'editor.scissors-01',\r\n paste: 'file.clipboard',\r\n save: 'general.download-01',\r\n 'tree-open': 'arrow.chevron-down',\r\n 'tree-closed': 'arrow.chevron-right',\r\n group: 'layout.rows-03',\r\n csv: 'file.file-06',\r\n excel: 'layout.table',\r\n search: 'general.search-lg',\r\n filter: 'general.filter-lines',\r\n cancel: 'general.x-close',\r\n 'small-down': 'arrow.chevron-down',\r\n grip: 'general.dots-grid',\r\n arrows: 'custom.arrows',\r\n 'tree-indeterminate': 'general.minus',\r\n aggregation: 'editor.type-01',\r\n pivot: 'layout.grid-01',\r\n 'filter-add': 'general.plus',\r\n cross: 'general.x-close',\r\n 'chevron-up': 'arrow.chevron-up',\r\n 'chevron-down': 'arrow.chevron-down',\r\n first: 'arrow.chevron-left-double',\r\n previous: 'arrow.chevron-left',\r\n next: 'arrow.chevron-right',\r\n last: 'arrow.chevron-right-double',\r\n chart: 'chart.bar-chart-01',\r\n maximize: 'arrow.expand-01',\r\n minimize: 'layout.minimize-01',\r\n 'chart-link': 'general.link-01',\r\n 'chart-unlink': 'general.link-broken-01',\r\n 'chart-edit': 'general.settings-04',\r\n 'chevron-right': 'arrow.chevron-right',\r\n 'eye-off': 'general.eye-off',\r\n minus: 'general.minus',\r\n values: 'editor.type-01',\r\n download: 'general.download-01',\r\n link: 'general.link-01',\r\n unlink: 'general.link-broken-01',\r\n settings: 'general.settings-04',\r\n 'chevron-left': 'arrow.chevron-left',\r\n 'chevron-end': 'arrow.chevron-right-double',\r\n 'filter-active': 'general.filter-funnel-01',\r\n 'filters-panel': 'general.filter-lines',\r\n 'pin-left': 'general.pin-01',\r\n 'pin-right': 'general.pin-01',\r\n unpin: 'general.pin-02',\r\n autosize: 'custom.arrows',\r\n 'chart-bar': 'chart.horizontal-bar-chart-01',\r\n 'chart-line': 'chart.line-chart-up-01',\r\n 'chart-pie': 'chart.pie-chart-01',\r\n 'chart-area': 'chart.bar-line-chart',\r\n 'chart-scatter': 'chart.bar-chart-10',\r\n data: 'dev.database-01',\r\n format: 'editor.paint',\r\n plus: 'general.plus',\r\n eye: 'general.eye',\r\n loading: 'general.loading-01',\r\n} satisfies Record<GridIconName, MTIcon>;\r\n\r\n/** Populated before bootstrap from the same packaged asset map used by mt-icon. */\r\nexport const gridDsIcons: Partial<Record<GridIconName, string>> = {};\r\nexport async function loadGridDsIcons(http: HttpClient): Promise<void> {\r\n const icons = await firstValueFrom(\r\n http.get<Record<string, string>>('assets/icons-map.generated.json'),\r\n );\r\n for (const [name, glyph] of Object.entries(glyphs)) {\r\n const svg = icons[glyph];\r\n if (!svg) throw new Error(`Missing DS grid glyph: ${glyph}`);\r\n gridDsIcons[name as GridIconName] = svg.replace(\r\n '<svg ',\r\n '<svg width=\"100%\" height=\"100%\" ',\r\n );\r\n }\r\n}\r\n\r\n/** The same Masterteam icon bridge for showcase and products. No grid UI or feature policy. */\r\nexport function provideMTGridIcons() {\r\n return makeEnvironmentProviders([\r\n { provide: MT_GRID_ICONS, useValue: gridDsIcons },\r\n provideAppInitializer(() =>\r\n loadGridDsIcons(new HttpClient(inject(HttpBackend))),\r\n ),\r\n ]);\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"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
|
|
1
|
+
{"version":3,"file":"masterteam-data-table-icons.mjs","sources":["../../../../packages/masterteam/data-table/icons/public-api.ts","../../../../packages/masterteam/data-table/icons/masterteam-data-table-icons.ts"],"sourcesContent":["import {\r\n inject,\r\n makeEnvironmentProviders,\r\n provideAppInitializer,\r\n} from '@angular/core';\r\nimport { HttpBackend } from '@angular/common/http';\r\n// The tokens entry only: the main entry would put the whole grid in the initial bundle.\r\nimport { MT_GRID_ICONS, type GridIconName } from '@masterteam/data-grid/tokens';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport type { MTIcon } from '@masterteam/icons';\r\nimport { firstValueFrom } from 'rxjs';\r\n\r\n/** Closest @masterteam/icons glyph for every grid semantic and historical alias. */\r\nconst glyphs = {\r\n 'sort-asc': 'arrow.arrow-up',\r\n 'sort-desc': 'arrow.arrow-down',\r\n 'sort-none': 'arrow.chevron-selector-vertical',\r\n reset: 'arrow.refresh-ccw-01',\r\n expand: 'arrow.chevron-right',\r\n collapse: 'arrow.chevron-down',\r\n pdf: 'file.file-06',\r\n export: 'general.download-01',\r\n asc: 'arrow.arrow-up',\r\n desc: 'arrow.arrow-down',\r\n hide: 'general.eye-off',\r\n blocked: 'general.slash-circle-01',\r\n pin: 'general.pin-01',\r\n columns: 'layout.columns-03',\r\n chevron: 'arrow.chevron-right',\r\n 'chevron-start': 'arrow.chevron-left-double',\r\n check: 'general.check',\r\n menu: 'general.dots-vertical',\r\n move: 'editor.move',\r\n left: 'arrow.arrow-left',\r\n right: 'arrow.arrow-right',\r\n close: 'general.x-close',\r\n copy: 'general.copy-01',\r\n cut: 'editor.scissors-01',\r\n paste: 'file.clipboard',\r\n save: 'general.download-01',\r\n 'tree-open': 'arrow.chevron-down',\r\n 'tree-closed': 'arrow.chevron-right',\r\n group: 'layout.rows-03',\r\n csv: 'file.file-06',\r\n excel: 'layout.table',\r\n search: 'general.search-lg',\r\n filter: 'general.filter-lines',\r\n cancel: 'general.x-close',\r\n 'small-down': 'arrow.chevron-down',\r\n grip: 'general.dots-grid',\r\n arrows: 'custom.arrows',\r\n 'tree-indeterminate': 'general.minus',\r\n aggregation: 'editor.type-01',\r\n pivot: 'layout.grid-01',\r\n 'filter-add': 'general.plus',\r\n cross: 'general.x-close',\r\n 'chevron-up': 'arrow.chevron-up',\r\n 'chevron-down': 'arrow.chevron-down',\r\n first: 'arrow.chevron-left-double',\r\n previous: 'arrow.chevron-left',\r\n next: 'arrow.chevron-right',\r\n last: 'arrow.chevron-right-double',\r\n chart: 'chart.bar-chart-01',\r\n maximize: 'arrow.expand-01',\r\n minimize: 'layout.minimize-01',\r\n 'chart-link': 'general.link-01',\r\n 'chart-unlink': 'general.link-broken-01',\r\n 'chart-edit': 'general.settings-04',\r\n 'chevron-right': 'arrow.chevron-right',\r\n 'eye-off': 'general.eye-off',\r\n minus: 'general.minus',\r\n values: 'editor.type-01',\r\n download: 'general.download-01',\r\n link: 'general.link-01',\r\n unlink: 'general.link-broken-01',\r\n settings: 'general.settings-04',\r\n 'chevron-left': 'arrow.chevron-left',\r\n 'chevron-end': 'arrow.chevron-right-double',\r\n 'filter-active': 'general.filter-funnel-01',\r\n 'filters-panel': 'general.filter-lines',\r\n 'pin-left': 'general.pin-01',\r\n 'pin-right': 'general.pin-01',\r\n unpin: 'general.pin-02',\r\n autosize: 'custom.arrows',\r\n 'chart-bar': 'chart.horizontal-bar-chart-01',\r\n 'chart-line': 'chart.line-chart-up-01',\r\n 'chart-pie': 'chart.pie-chart-01',\r\n 'chart-area': 'chart.bar-line-chart',\r\n 'chart-scatter': 'chart.bar-chart-10',\r\n data: 'dev.database-01',\r\n format: 'editor.paint',\r\n plus: 'general.plus',\r\n eye: 'general.eye',\r\n loading: 'general.loading-01',\r\n 'select-column': 'layout.columns-01',\r\n 'select-all': 'layout.grid-01',\r\n} satisfies Record<GridIconName, MTIcon>;\r\n\r\n/** Populated before bootstrap from the same packaged asset map used by mt-icon. */\r\nexport const gridDsIcons: Partial<Record<GridIconName, string>> = {};\r\nexport async function loadGridDsIcons(http: HttpClient): Promise<void> {\r\n const icons = await firstValueFrom(\r\n http.get<Record<string, string>>('assets/icons-map.generated.json'),\r\n );\r\n for (const [name, glyph] of Object.entries(glyphs)) {\r\n const svg = icons[glyph];\r\n if (!svg) throw new Error(`Missing DS grid glyph: ${glyph}`);\r\n gridDsIcons[name as GridIconName] = svg.replace(\r\n '<svg ',\r\n '<svg width=\"100%\" height=\"100%\" ',\r\n );\r\n }\r\n}\r\n\r\n/** The same Masterteam icon bridge for showcase and products. No grid UI or feature policy. */\r\nexport function provideMTGridIcons() {\r\n return makeEnvironmentProviders([\r\n { provide: MT_GRID_ICONS, useValue: gridDsIcons },\r\n provideAppInitializer(() =>\r\n loadGridDsIcons(new HttpClient(inject(HttpBackend))),\r\n ),\r\n ]);\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MtTableText, mtTablePrintConfiguration } from '@masterteam/data-table';
|
|
2
2
|
export * from '@masterteam/data-table';
|
|
3
|
-
import { MT_DATA_TABLE_CONFIGURATION } from '@masterteam/data-table/config';
|
|
4
|
-
export { MT_DATA_TABLE_CONFIGURATION, provideMTDataTables } from '@masterteam/data-table/config';
|
|
3
|
+
import { MT_DATA_TABLE_CONFIGURATION, mtTablePreferenceKey } from '@masterteam/data-table/config';
|
|
4
|
+
export { MT_DATA_TABLE_CONFIGURATION, mtTablePreferenceKey, provideMTDataTables } from '@masterteam/data-table/config';
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
6
|
import { inject, Injectable, input, computed, ChangeDetectionStrategy, Component, output, Injector, ElementRef, DestroyRef, viewChild, signal, afterNextRender, effect, untracked } from '@angular/core';
|
|
7
7
|
import { CHART_TYPES, parseGridViewState, MtDataGridComponent, applyGridViewState, captureGridViewState } from '@masterteam/data-grid';
|
|
@@ -304,9 +304,6 @@ function parseMtTableCharts(value) {
|
|
|
304
304
|
});
|
|
305
305
|
}
|
|
306
306
|
|
|
307
|
-
function mtTablePreferenceKey(identity, view) {
|
|
308
|
-
return `mt-table:v1:${JSON.stringify([identity.application, identity.tenant, identity.user, identity.actor, identity.template ?? null, view.level, view.module ?? null, view.role])}`;
|
|
309
|
-
}
|
|
310
307
|
/** Local storage is optional (private browsing/quota/security errors must not break a table). */
|
|
311
308
|
class MtTablePreferences {
|
|
312
309
|
configuration = inject(MT_DATA_TABLE_CONFIGURATION);
|
|
@@ -1310,7 +1307,7 @@ class MtDataTableComponent {
|
|
|
1310
1307
|
}
|
|
1311
1308
|
}
|
|
1312
1309
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MtDataTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1313
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: MtDataTableComponent, isStandalone: true, selector: "mt-data-table", inputs: { rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: true, transformFunction: null }, getRowId: { classPropertyName: "getRowId", publicName: "getRowId", isSignal: true, isRequired: true, transformFunction: null }, source: { classPropertyName: "source", publicName: "source", isSignal: true, isRequired: false, transformFunction: null }, profile: { classPropertyName: "profile", publicName: "profile", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, showHeading: { classPropertyName: "showHeading", publicName: "showHeading", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, rowHeight: { classPropertyName: "rowHeight", publicName: "rowHeight", isSignal: true, isRequired: false, transformFunction: null }, fitColumns: { classPropertyName: "fitColumns", publicName: "fitColumns", isSignal: true, isRequired: false, transformFunction: null }, rowActions: { classPropertyName: "rowActions", publicName: "rowActions", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, masterDetail: { classPropertyName: "masterDetail", publicName: "masterDetail", isSignal: true, isRequired: false, transformFunction: null }, detailRenderer: { classPropertyName: "detailRenderer", publicName: "detailRenderer", isSignal: true, isRequired: false, transformFunction: null }, detailRendererParams: { classPropertyName: "detailRendererParams", publicName: "detailRendererParams", isSignal: true, isRequired: false, transformFunction: null }, isRowMaster: { classPropertyName: "isRowMaster", publicName: "isRowMaster", isSignal: true, isRequired: false, transformFunction: null }, detailAutoHeight: { classPropertyName: "detailAutoHeight", publicName: "detailAutoHeight", isSignal: true, isRequired: false, transformFunction: null }, detailHeight: { classPropertyName: "detailHeight", publicName: "detailHeight", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, groupable: { classPropertyName: "groupable", publicName: "groupable", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, viewIdentity: { classPropertyName: "viewIdentity", publicName: "viewIdentity", isSignal: true, isRequired: false, transformFunction: null }, exporter: { classPropertyName: "exporter", publicName: "exporter", isSignal: true, isRequired: false, transformFunction: null }, exportFormats: { classPropertyName: "exportFormats", publicName: "exportFormats", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { columnLoadRequested: "columnLoadRequested", rowClick: "rowClick", selectionChange: "selectionChange", focusChange: "focusChange", viewStateChange: "viewStateChange" }, host: { listeners: { "keydown.escape": "escape($event)" }, properties: { "attr.dir": "direction()", "class.mt-data-table-focused": "focused()", "style.min-height.px": "focused() ? normalHeight() : null" } }, viewQueries: [{ propertyName: "grid", first: true, predicate: (MtDataGridComponent), descendants: true, isSignal: true }, { propertyName: "chartDock", first: true, predicate: ["chartDock"], descendants: true, isSignal: true }], ngImport: i0, template: "<section\r\n class=\"mt-data-table-surface\"\r\n [attr.role]=\"focused() ? 'dialog' : null\"\r\n [attr.aria-modal]=\"focused() ? true : null\"\r\n [attr.aria-label]=\"title()\"\r\n [cdkTrapFocus]=\"focused()\"\r\n [cdkTrapFocusAutoCapture]=\"focused()\"\r\n>\r\n @if (profile() !== \"embedded\" || focused()) {\r\n <div class=\"mt-data-table-toolbar\">\r\n @if (showHeading() && title()) {\r\n <div class=\"mt-data-table-heading\">\r\n <strong>{{ title() }}</strong\r\n ><span>{{ count() }} {{ text.text(\"rows\") }}</span>\r\n </div>\r\n }\r\n <label class=\"mt-data-table-search\">\r\n <span class=\"mt-data-table-sr-only\">{{ text.text(\"search\") }}</span>\r\n <mt-text-field\r\n icon=\"general.search-md\"\r\n [placeholder]=\"text.text('search')\"\r\n [ngModel]=\"search()\"\r\n [readonly]=\"source()?.capabilities?.filter === false\"\r\n (ngModelChange)=\"setSearch($event)\"\r\n />\r\n </label>\r\n <div\r\n class=\"mt-data-table-tools\"\r\n role=\"group\"\r\n [attr.aria-label]=\"text.text('actions')\"\r\n >\r\n <mt-button\r\n [label]=\"text.text('columns')\"\r\n icon=\"layout.columns-03\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n (click)=\"columnsPopup.toggle($event)\"\r\n />\r\n <p-popover #columnsPopup appendTo=\"body\">\r\n <div\r\n class=\"mt-data-table-menu-content\"\r\n role=\"group\"\r\n [attr.aria-label]=\"text.text('columns')\"\r\n >\r\n @for (column of columnChoices(); track column.id) {\r\n <label\r\n ><input\r\n type=\"checkbox\"\r\n [checked]=\"column.visible\"\r\n [disabled]=\"column.locked\"\r\n (change)=\"\r\n changeColumn(column.id, $any($event.target).checked)\r\n \"\r\n />{{ column.label }}</label\r\n >\r\n }\r\n <mt-button\r\n [label]=\"text.text('reset')\"\r\n severity=\"secondary\"\r\n variant=\"text\"\r\n size=\"small\"\r\n (click)=\"resetView()\"\r\n />\r\n </div>\r\n </p-popover>\r\n @if (groupable() && complete()) {\r\n <mt-button\r\n [label]=\"text.text('groupBy')\"\r\n icon=\"layout.columns-03\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n (click)=\"groupMenu.toggle($event)\"\r\n />\r\n <mt-menu\r\n #groupMenu\r\n [model]=\"groupingItems()\"\r\n [ariaLabel]=\"text.text('groupBy')\"\r\n />\r\n }\r\n @if (analysisEnabled()) {\r\n <mt-button\r\n [label]=\"text.text('analysis')\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n (click)=\"openAnalysis()\"\r\n />\r\n <mt-button\r\n [label]=\"text.text('chart')\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n [disabled]=\"!chartsEnabled()\"\r\n (click)=\"chartTable()\"\r\n />\r\n }\r\n @if (exportFormats().length && exportAllowed()) {\r\n <mt-button\r\n [label]=\"text.text('export')\"\r\n icon=\"general.download-01\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n [loading]=\"exporting()\"\r\n (click)=\"exportMenu.toggle($event)\"\r\n />\r\n <mt-menu\r\n #exportMenu\r\n [model]=\"exportItems()\"\r\n [ariaLabel]=\"text.text('export')\"\r\n />\r\n }\r\n @if (profile() === \"studio\") {\r\n <mt-button\r\n [label]=\"text.text('closeFocus')\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n [hidden]=\"!focused()\"\r\n (click)=\"closeFocus()\"\r\n />\r\n <mt-button\r\n [label]=\"text.text('focus')\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n [hidden]=\"focused()\"\r\n (click)=\"focus($event)\"\r\n />\r\n }\r\n <ng-content select=\"[tableActions]\" />\r\n </div>\r\n </div>\r\n }\r\n @if (error() || exportFailed()) {\r\n <div class=\"mt-data-table-error\" role=\"alert\">\r\n {{ text.text(error() ? \"failed\" : \"exportFailed\") }}\r\n @if (error()) {\r\n <mt-button\r\n [label]=\"text.text('retry')\"\r\n severity=\"secondary\"\r\n variant=\"text\"\r\n size=\"small\"\r\n (click)=\"retry()\"\r\n />\r\n }\r\n </div>\r\n }\r\n @if (profile() === \"studio\" && !complete()) {\r\n <p class=\"mt-data-table-hint\">{{ text.text(\"incomplete\") }}</p>\r\n }\r\n <div class=\"mt-data-table-body\">\r\n <mt-data-grid\r\n [rowData]=\"displayedRows()\"\r\n [columnDefs]=\"resolvedColumns()\"\r\n [getRowId]=\"getRowId()\"\r\n [height]=\"focused() ? focusHeight() : height()\"\r\n [rowHeight]=\"rowHeight()\"\r\n [direction]=\"direction()\"\r\n [localeText]=\"text.gridLocale()\"\r\n [ariaLabel]=\"title()\"\r\n [loading]=\"busy()\"\r\n [loadingText]=\"text.text('loading')\"\r\n [noRowsText]=\"text.text('noRows')\"\r\n [dataProcessing]=\"complete() ? 'client' : 'external'\"\r\n [quickFilterText]=\"source()?.processing === 'server' ? '' : search()\"\r\n [rowSelection]=\"selection()\"\r\n [cellSelection]=\"profile() === 'studio'\"\r\n [suppressCutToClipboard]=\"true\"\r\n [getContextMenuItems]=\"contextMenu\"\r\n [sideBar]=\"sideBar()\"\r\n [rowGroupPanelShow]=\"analysisEnabled() ? 'onlyWhenGrouping' : 'never'\"\r\n [pivotPanelShow]=\"analysisEnabled() ? 'onlyWhenPivoting' : 'never'\"\r\n [enableCharts]=\"chartsEnabled()\"\r\n [masterDetail]=\"masterDetail()\"\r\n [detailCellRenderer]=\"detailRenderer()\"\r\n [detailCellRendererParams]=\"detailRendererParams()\"\r\n [isRowMaster]=\"isRowMaster()\"\r\n [detailRowAutoHeight]=\"detailAutoHeight()\"\r\n [detailRowHeight]=\"detailHeight()\"\r\n [pagination]=\"clientPaging()\"\r\n [paginationPageSize]=\"100\"\r\n [suppressPdfExport]=\"true\"\r\n [suppressCsvExport]=\"!complete() || !!exporter()\"\r\n [suppressExcelExport]=\"!complete() || !!exporter()\"\r\n (sortChanged)=\"sorted($event)\"\r\n (filterChanged)=\"filtered()\"\r\n (rowClicked)=\"$event.node.data && rowClick.emit($event.node.data)\"\r\n (selectionChanged)=\"selected()\"\r\n (columnVisible)=\"columnsVisible($event.columns)\"\r\n (columnRowGroupChanged)=\"analysisFieldsChanged()\"\r\n (columnValueChanged)=\"analysisFieldsChanged()\"\r\n (columnPivotChanged)=\"analysisFieldsChanged()\"\r\n />\r\n <div\r\n #chartDock\r\n class=\"mt-data-table-chart-dock\"\r\n [class.mt-data-table-chart-open]=\"chartOpen() && chartsEnabled()\"\r\n ></div>\r\n </div>\r\n @if (pagingInfo(); as paging) {\r\n <div class=\"mt-data-table-pagination\">\r\n @if (complete()) {\r\n <label\r\n >{{ text.text(\"pageSize\") }}\r\n <select\r\n [value]=\"paging.size\"\r\n (change)=\"pageSize(+$any($event.target).value)\"\r\n >\r\n @for (size of [20, 50, 100]; track size) {\r\n <option [value]=\"size\">{{ number(size) }}</option>\r\n }\r\n </select></label\r\n >\r\n }\r\n <mt-button\r\n [label]=\"text.text('previous')\"\r\n severity=\"secondary\"\r\n variant=\"text\"\r\n size=\"small\"\r\n [disabled]=\"busy() || paging.page === 0\"\r\n (click)=\"page(-1)\"\r\n />\r\n <bdi\r\n >{{ number(paging.first) }}\u2013{{ number(paging.last) }} /\r\n {{ number(paging.total) }}</bdi\r\n >\r\n <label\r\n >{{ text.text(\"page\") }}\r\n <input\r\n type=\"number\"\r\n min=\"1\"\r\n [max]=\"paging.pages\"\r\n [value]=\"paging.page + 1\"\r\n [disabled]=\"busy()\"\r\n (change)=\"pageNumber(+$any($event.target).value)\"\r\n /></label>\r\n <mt-button\r\n class=\"mt-data-table-next\"\r\n [label]=\"text.text('next')\"\r\n severity=\"secondary\"\r\n variant=\"text\"\r\n size=\"small\"\r\n [disabled]=\"busy() || paging.page + 1 >= paging.pages\"\r\n (click)=\"page(1)\"\r\n />\r\n </div>\r\n }\r\n</section>\r\n", styles: [":host{display:block;min-width:0;color:var(--p-text-color, #25354a);font:inherit}.mt-data-table-surface{min-width:0;background:var(--p-content-background, #fff);border:1px solid var(--p-content-border-color, #e4e7ec);border-radius:var(--p-content-border-radius, 10px);overflow:hidden}.mt-data-table-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:16px;min-height:68px;box-sizing:border-box;border-bottom:1px solid var(--p-content-border-color, #e4e7ec)}.mt-data-table-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-inline-start:auto}.mt-data-table-search{display:block;flex:1 1 200px;max-width:300px;min-width:160px}.mt-data-table-search mt-text-field{min-width:0}:host ::ng-deep mt-data-grid{padding:0;border:0;border-radius:0}.mt-data-table-heading{display:flex;align-items:baseline;gap:8px;margin-inline-end:auto}.mt-data-table-heading span,.mt-data-table-hint{color:var(--p-text-muted-color, #667085);font-size:12px}.mt-data-table-search input,button,summary{min-height:34px;border:1px solid var(--p-content-border-color, #e4e7ec);border-radius:6px;background:var(--p-content-background, #fff);color:inherit;font:inherit;padding:6px 10px}button,summary{cursor:pointer;list-style:none;font-size:13px}button:hover,summary:hover{background:var(--p-content-hover-background, #f3f6f8)}button:disabled{opacity:.5;cursor:default}input:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--p-primary-color, #2aaec0);outline-offset:2px}.mt-data-table-menu{position:relative}.mt-data-table-menu-content{display:flex;flex-direction:column;min-width:210px;max-height:320px;overflow:auto;padding:2px}.mt-data-table-menu-content label{display:flex;align-items:center;gap:8px;padding:6px;font-size:13px}.mt-data-table-menu-content button{border:0;text-align:start}.mt-data-table-hint,.mt-data-table-error{margin:0;padding:8px 12px}.mt-data-table-error{display:flex;align-items:center;justify-content:space-between;color:var(--p-red-600, #b42318)}.mt-data-table-body{min-width:0}.mt-data-table-chart-dock{display:none;min-height:300px}.mt-data-table-chart-open{display:block}.mt-data-table-pagination{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:16px;padding:10px 12px;font-size:13px;border-top:1px solid var(--p-content-border-color, #e4e7ec)}.mt-data-table-pagination label{display:flex;align-items:center;gap:6px}.mt-data-table-pagination input{width:4.5em}.mt-data-table-pagination input,.mt-data-table-pagination select{box-sizing:border-box;padding:6px;min-height:34px;border:1px solid var(--p-content-border-color, #ddd);border-radius:6px;background:var(--p-content-background, white);color:inherit;font:inherit}:host ::ng-deep mt-data-grid>.mt-grid-main>mt-grid-pager{display:none}.mt-data-table-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host.mt-data-table-focused>.mt-data-table-surface{position:fixed;inset:var(--mt-data-table-focus-inset, 16px);z-index:var(--mt-data-table-focus-z-index, 1000);overflow:auto;box-shadow:0 12px 60px #0005;border-radius:var(--p-content-border-radius, 6px);display:flex;flex-direction:column}:host.mt-data-table-focused .mt-data-table-body{display:flex;flex-direction:column;flex:1;min-height:120px;overflow:auto}:host.mt-data-table-focused .mt-data-table-chart-open{height:max(300px,45%);flex:0 0 max(300px,45%);overflow:auto}:host.mt-data-table-focused .mt-data-table-toolbar,:host.mt-data-table-focused .mt-data-table-pagination{flex-shrink:0}@media(max-width:640px){.mt-data-table-menu-content{min-width:0;max-width:calc(100vw - 64px);max-height:60dvh}.mt-data-table-search{width:100%;max-width:none;flex-basis:100%}.mt-data-table-search input{box-sizing:border-box;width:100%}:host.mt-data-table-focused>.mt-data-table-surface{inset:4px}}\n"], dependencies: [{ kind: "component", type: MtDataGridComponent, selector: "mt-data-grid", inputs: ["rowData", "dataProcessing", "columnDefs", "getRowId", "height", "autoHeight", "autoHeightMaxRows", "autoHeightMinRows", "rowHeight", "getRowClass", "animateRows", "headerHeight", "groupHeaderHeight", "direction", "localeText", "localeTextResolver", "ariaLabel", "loading", "noRowsText", "loadingText", "noRowsTemplate", "autoSizeStrategy", "columnMenu", "mainMenuItems", "autoSizePadding", "quickFilterText", "showQuickFilter", "showRowCount", "includeHiddenColumnsInQuickFilter", "quickFilterParser", "quickFilterMatcher", "cacheQuickFilter", "applyQuickFilterBeforePivotOrAgg", "filtersToolPanelDef", "isExternalFilterPresent", "doesExternalFilterPass", "floatingFiltersHeight", "rowSelection", "selectionColumnDef", "rowNumbers", "rowDragManaged", "rowDragEntireRow", "rowDragMultiRow", "suppressMoveWhenRowDragging", "cellSelection", "statusBar", "suppressContextMenu", "allowContextMenuWithControlKey", "preventDefaultOnContextMenu", "getContextMenuItems", "suppressCsvExport", "suppressExcelExport", "suppressPdfExport", "defaultPdfExportParams", "excelStyles", "processCellForClipboard", "processHeaderForClipboard", "processGroupHeaderForClipboard", "copySelectedRows", "copyHeadersToClipboard", "copyGroupHeadersToClipboard", "clipboardDelimiter", "suppressCopyRowsToClipboard", "suppressCopySingleCellRanges", "suppressCutToClipboard", "defaultCsvExportParams", "defaultExcelExportParams", "groupDisplayType", "groupRowRenderer", "groupRowRendererParams", "suppressGroupRowsSticky", "groupHideOpenParents", "groupHideParentOfSingleChild", "groupRemoveSingleChildren", "groupRemoveLowestSingleChildren", "showOpenedGroup", "groupAggFiltering", "suppressAggFilteredOnly", "aggregateOnlyChangedColumns", "suppressColumnMoveAnimation", "pivotRowTotals", "pivotColumnGroupTotals", "pivotMaxGeneratedColumns", "pivotDefaultExpanded", "pivotSuppressAutoColumn", "suppressExpandablePivotGroups", "processPivotResultColDef", "processPivotResultColGroupDef", "processUnpinnedColumns", "rowGroupPanelShow", "pivotPanelShow", "pivotPanelHint", "groupDefaultExpanded", "autoGroupColumnDef", "groupTotalRow", "grandTotalRow", "aggFuncs", "suppressRowGroupHidesColumns", "suppressMakeColumnVisibleAfterUnGroup", "sideBar", "pivotMode", "suppressAggFuncInHeader", "enableCharts", "chartThemes", "customChartThemes", "chartToolPanelsDef", "chartThemeOverrides", "chartContext", "chartRecordsLabel", "getChartToolbarItems", "groupMaintainOrder", "treeData", "getDataPath", "masterDetail", "isRowMaster", "detailCellRenderer", "detailCellRendererParams", "detailRowHeight", "detailRowAutoHeight", "singleClickEdit", "suppressClickEdit", "stopEditingWhenCellsLoseFocus", "undoRedoCellEditing", "undoRedoCellEditingLimit", "pagination", "paginationPanelShow", "paginationPageSize", "paginationTotalRows", "paginationCurrentPage", "paginationPageSizeSelector", "rowGroupPanelSuppressSort"], outputs: ["displayedColumnsChanged", "columnEverythingChanged", "pivotMaxColumnsExceeded", "gridReady", "sortChanged", "cellFocused", "columnResized", "columnMoved", "columnPinned", "columnVisible", "columnGroupOpened", "filterChanged", "filterModified", "filterOpened", "rowSelected", "selectionChanged", "rowClicked", "rowDragEnter", "rowDragMove", "rowDragLeave", "rowDragEnd", "cellSelectionChanged", "contextMenuVisibleChanged", "rowGroupOpened", "columnRowGroupChanged", "expandOrCollapseAll", "cellEditingStarted", "cellEditingStopped", "cellValueChanged", "pasteStart", "pasteEnd", "fillStart", "fillEnd", "paginationChanged", "toolPanelVisibleChanged", "toolPanelSizeChanged", "columnValueChanged", "columnPivotChanged", "columnPivotModeChanged", "chartCreated", "chartDestroyed", "chartRangeSelectionChanged", "chartOptionsChanged"] }, { kind: "directive", type: CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: Button, selector: "mt-button", inputs: ["icon", "label", "tooltip", "class", "type", "styleClass", "severity", "badge", "variant", "badgeSeverity", "size", "iconPos", "autofocus", "fluid", "raised", "rounded", "text", "plain", "outlined", "link", "disabled", "loading", "pInputs", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: TextField, selector: "mt-text-field", inputs: ["field", "hint", "label", "placeholder", "class", "type", "readonly", "pInputs", "required", "maxLength", "icon", "iconPosition"] }, { kind: "component", type: Menu, selector: "mt-menu", inputs: ["model", "popup", "appendTo", "style", "styleClass", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "ariaLabel", "ariaLabelledBy", "id", "tabindex", "activeItemId"], outputs: ["activeItemIdChange", "onShow", "onHide", "onBlur", "onFocus", "onItemSelect"] }, { kind: "component", type: Popover, selector: "p-popover", inputs: ["ariaLabel", "ariaLabelledBy", "dismissable", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions", "motionOptions"], outputs: ["onShow", "onHide"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1310
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: MtDataTableComponent, isStandalone: true, selector: "mt-data-table", inputs: { rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: true, transformFunction: null }, getRowId: { classPropertyName: "getRowId", publicName: "getRowId", isSignal: true, isRequired: true, transformFunction: null }, source: { classPropertyName: "source", publicName: "source", isSignal: true, isRequired: false, transformFunction: null }, profile: { classPropertyName: "profile", publicName: "profile", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, showHeading: { classPropertyName: "showHeading", publicName: "showHeading", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, rowHeight: { classPropertyName: "rowHeight", publicName: "rowHeight", isSignal: true, isRequired: false, transformFunction: null }, fitColumns: { classPropertyName: "fitColumns", publicName: "fitColumns", isSignal: true, isRequired: false, transformFunction: null }, rowActions: { classPropertyName: "rowActions", publicName: "rowActions", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, masterDetail: { classPropertyName: "masterDetail", publicName: "masterDetail", isSignal: true, isRequired: false, transformFunction: null }, detailRenderer: { classPropertyName: "detailRenderer", publicName: "detailRenderer", isSignal: true, isRequired: false, transformFunction: null }, detailRendererParams: { classPropertyName: "detailRendererParams", publicName: "detailRendererParams", isSignal: true, isRequired: false, transformFunction: null }, isRowMaster: { classPropertyName: "isRowMaster", publicName: "isRowMaster", isSignal: true, isRequired: false, transformFunction: null }, detailAutoHeight: { classPropertyName: "detailAutoHeight", publicName: "detailAutoHeight", isSignal: true, isRequired: false, transformFunction: null }, detailHeight: { classPropertyName: "detailHeight", publicName: "detailHeight", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, groupable: { classPropertyName: "groupable", publicName: "groupable", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, viewIdentity: { classPropertyName: "viewIdentity", publicName: "viewIdentity", isSignal: true, isRequired: false, transformFunction: null }, exporter: { classPropertyName: "exporter", publicName: "exporter", isSignal: true, isRequired: false, transformFunction: null }, exportFormats: { classPropertyName: "exportFormats", publicName: "exportFormats", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { columnLoadRequested: "columnLoadRequested", rowClick: "rowClick", selectionChange: "selectionChange", focusChange: "focusChange", viewStateChange: "viewStateChange" }, host: { listeners: { "keydown.escape": "escape($event)" }, properties: { "attr.dir": "direction()", "class.mt-data-table-focused": "focused()", "style.min-height.px": "focused() ? normalHeight() : null" } }, viewQueries: [{ propertyName: "grid", first: true, predicate: (MtDataGridComponent), descendants: true, isSignal: true }, { propertyName: "chartDock", first: true, predicate: ["chartDock"], descendants: true, isSignal: true }], ngImport: i0, template: "<section\r\n class=\"mt-data-table-surface\"\r\n [attr.role]=\"focused() ? 'dialog' : null\"\r\n [attr.aria-modal]=\"focused() ? true : null\"\r\n [attr.aria-label]=\"title()\"\r\n [cdkTrapFocus]=\"focused()\"\r\n [cdkTrapFocusAutoCapture]=\"focused()\"\r\n>\r\n @if (profile() !== \"embedded\" || focused()) {\r\n <div class=\"mt-data-table-toolbar\">\r\n @if (showHeading() && title()) {\r\n <div class=\"mt-data-table-heading\">\r\n <strong>{{ title() }}</strong\r\n ><span>{{ count() }} {{ text.text(\"rows\") }}</span>\r\n </div>\r\n }\r\n <label class=\"mt-data-table-search\">\r\n <span class=\"mt-data-table-sr-only\">{{ text.text(\"search\") }}</span>\r\n <mt-text-field\r\n icon=\"general.search-md\"\r\n [placeholder]=\"text.text('search')\"\r\n [ngModel]=\"search()\"\r\n [readonly]=\"source()?.capabilities?.filter === false\"\r\n (ngModelChange)=\"setSearch($event)\"\r\n />\r\n </label>\r\n <div\r\n class=\"mt-data-table-tools\"\r\n role=\"group\"\r\n [attr.aria-label]=\"text.text('actions')\"\r\n >\r\n <mt-button\r\n [label]=\"text.text('columns')\"\r\n icon=\"layout.columns-03\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n (click)=\"columnsPopup.toggle($event)\"\r\n />\r\n <p-popover #columnsPopup appendTo=\"body\">\r\n <div\r\n class=\"mt-data-table-menu-content\"\r\n role=\"group\"\r\n [attr.aria-label]=\"text.text('columns')\"\r\n >\r\n @for (column of columnChoices(); track column.id) {\r\n <label\r\n ><input\r\n type=\"checkbox\"\r\n [checked]=\"column.visible\"\r\n [disabled]=\"column.locked\"\r\n (change)=\"\r\n changeColumn(column.id, $any($event.target).checked)\r\n \"\r\n />{{ column.label }}</label\r\n >\r\n }\r\n <mt-button\r\n [label]=\"text.text('reset')\"\r\n severity=\"secondary\"\r\n variant=\"text\"\r\n size=\"small\"\r\n (click)=\"resetView()\"\r\n />\r\n </div>\r\n </p-popover>\r\n @if (groupable() && complete()) {\r\n <mt-button\r\n [label]=\"text.text('groupBy')\"\r\n icon=\"layout.columns-03\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n (click)=\"groupMenu.toggle($event)\"\r\n />\r\n <mt-menu\r\n #groupMenu\r\n [model]=\"groupingItems()\"\r\n [ariaLabel]=\"text.text('groupBy')\"\r\n />\r\n }\r\n @if (analysisEnabled()) {\r\n <mt-button\r\n [label]=\"text.text('analysis')\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n (click)=\"openAnalysis()\"\r\n />\r\n <mt-button\r\n [label]=\"text.text('chart')\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n [disabled]=\"!chartsEnabled()\"\r\n (click)=\"chartTable()\"\r\n />\r\n }\r\n @if (exportFormats().length && exportAllowed()) {\r\n <mt-button\r\n [label]=\"text.text('export')\"\r\n icon=\"general.download-01\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n [loading]=\"exporting()\"\r\n (click)=\"exportMenu.toggle($event)\"\r\n />\r\n <mt-menu\r\n #exportMenu\r\n [model]=\"exportItems()\"\r\n [ariaLabel]=\"text.text('export')\"\r\n />\r\n }\r\n @if (profile() === \"studio\") {\r\n <mt-button\r\n [label]=\"text.text('closeFocus')\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n [hidden]=\"!focused()\"\r\n (click)=\"closeFocus()\"\r\n />\r\n <mt-button\r\n [label]=\"text.text('focus')\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n [hidden]=\"focused()\"\r\n (click)=\"focus($event)\"\r\n />\r\n }\r\n <ng-content select=\"[tableActions]\" />\r\n </div>\r\n </div>\r\n }\r\n @if (error() || exportFailed()) {\r\n <div class=\"mt-data-table-error\" role=\"alert\">\r\n {{ text.text(error() ? \"failed\" : \"exportFailed\") }}\r\n @if (error()) {\r\n <mt-button\r\n [label]=\"text.text('retry')\"\r\n severity=\"secondary\"\r\n variant=\"text\"\r\n size=\"small\"\r\n (click)=\"retry()\"\r\n />\r\n }\r\n </div>\r\n }\r\n @if (profile() === \"studio\" && !complete()) {\r\n <p class=\"mt-data-table-hint\">{{ text.text(\"incomplete\") }}</p>\r\n }\r\n <div class=\"mt-data-table-body\">\r\n <mt-data-grid\r\n [rowData]=\"displayedRows()\"\r\n [columnDefs]=\"resolvedColumns()\"\r\n [getRowId]=\"getRowId()\"\r\n [height]=\"focused() ? focusHeight() : height()\"\r\n [rowHeight]=\"rowHeight()\"\r\n [direction]=\"direction()\"\r\n [localeText]=\"text.gridLocale()\"\r\n [ariaLabel]=\"title()\"\r\n [loading]=\"busy()\"\r\n [loadingText]=\"text.text('loading')\"\r\n [noRowsText]=\"text.text('noRows')\"\r\n [dataProcessing]=\"complete() ? 'client' : 'external'\"\r\n [quickFilterText]=\"source()?.processing === 'server' ? '' : search()\"\r\n [rowSelection]=\"selection()\"\r\n [cellSelection]=\"profile() === 'studio'\"\r\n [suppressCutToClipboard]=\"true\"\r\n [getContextMenuItems]=\"contextMenu\"\r\n [sideBar]=\"sideBar()\"\r\n [rowGroupPanelShow]=\"analysisEnabled() ? 'onlyWhenGrouping' : 'never'\"\r\n [pivotPanelShow]=\"analysisEnabled() ? 'onlyWhenPivoting' : 'never'\"\r\n [enableCharts]=\"chartsEnabled()\"\r\n [masterDetail]=\"masterDetail()\"\r\n [detailCellRenderer]=\"detailRenderer()\"\r\n [detailCellRendererParams]=\"detailRendererParams()\"\r\n [isRowMaster]=\"isRowMaster()\"\r\n [detailRowAutoHeight]=\"detailAutoHeight()\"\r\n [detailRowHeight]=\"detailHeight()\"\r\n [pagination]=\"clientPaging()\"\r\n [paginationPageSize]=\"100\"\r\n [suppressPdfExport]=\"true\"\r\n [suppressCsvExport]=\"!complete() || !!exporter()\"\r\n [suppressExcelExport]=\"!complete() || !!exporter()\"\r\n (sortChanged)=\"sorted($event)\"\r\n (filterChanged)=\"filtered()\"\r\n (rowClicked)=\"$event.node.data && rowClick.emit($event.node.data)\"\r\n (selectionChanged)=\"selected()\"\r\n (columnVisible)=\"columnsVisible($event.columns)\"\r\n (columnRowGroupChanged)=\"analysisFieldsChanged()\"\r\n (columnValueChanged)=\"analysisFieldsChanged()\"\r\n (columnPivotChanged)=\"analysisFieldsChanged()\"\r\n />\r\n <div\r\n #chartDock\r\n class=\"mt-data-table-chart-dock\"\r\n [class.mt-data-table-chart-open]=\"chartOpen() && chartsEnabled()\"\r\n ></div>\r\n </div>\r\n @if (pagingInfo(); as paging) {\r\n <div class=\"mt-data-table-pagination\">\r\n @if (complete()) {\r\n <label\r\n >{{ text.text(\"pageSize\") }}\r\n <select\r\n [value]=\"paging.size\"\r\n (change)=\"pageSize(+$any($event.target).value)\"\r\n >\r\n @for (size of [20, 50, 100]; track size) {\r\n <option [value]=\"size\">{{ number(size) }}</option>\r\n }\r\n </select></label\r\n >\r\n }\r\n <mt-button\r\n [label]=\"text.text('previous')\"\r\n severity=\"secondary\"\r\n variant=\"text\"\r\n size=\"small\"\r\n [disabled]=\"busy() || paging.page === 0\"\r\n (click)=\"page(-1)\"\r\n />\r\n <bdi\r\n >{{ number(paging.first) }}\u2013{{ number(paging.last) }} /\r\n {{ number(paging.total) }}</bdi\r\n >\r\n <label\r\n >{{ text.text(\"page\") }}\r\n <input\r\n type=\"number\"\r\n min=\"1\"\r\n [max]=\"paging.pages\"\r\n [value]=\"paging.page + 1\"\r\n [disabled]=\"busy()\"\r\n (change)=\"pageNumber(+$any($event.target).value)\"\r\n /></label>\r\n <mt-button\r\n class=\"mt-data-table-next\"\r\n [label]=\"text.text('next')\"\r\n severity=\"secondary\"\r\n variant=\"text\"\r\n size=\"small\"\r\n [disabled]=\"busy() || paging.page + 1 >= paging.pages\"\r\n (click)=\"page(1)\"\r\n />\r\n </div>\r\n }\r\n</section>\r\n", styles: [":host{display:block;min-width:0;color:var(--p-text-color, #25354a);font:inherit}.mt-data-table-surface{min-width:0;background:var(--p-content-background, #fff);border:1px solid var(--p-content-border-color, #e4e7ec);border-radius:var(--p-content-border-radius, 10px);overflow:hidden}.mt-data-table-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:16px;min-height:68px;box-sizing:border-box;border-bottom:1px solid var(--p-content-border-color, #e4e7ec)}.mt-data-table-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-inline-start:auto}.mt-data-table-search{display:block;flex:1 1 200px;max-width:300px;min-width:160px}.mt-data-table-search mt-text-field{min-width:0}:host ::ng-deep mt-data-grid{padding:0;border:0;border-radius:0}.mt-data-table-heading{display:flex;align-items:baseline;gap:8px;margin-inline-end:auto}.mt-data-table-heading span,.mt-data-table-hint{color:var(--p-text-muted-color, #667085);font-size:12px}.mt-data-table-search input,button,summary{min-height:34px;border:1px solid var(--p-content-border-color, #e4e7ec);border-radius:6px;background:var(--p-content-background, #fff);color:inherit;font:inherit;padding:6px 10px}button,summary{cursor:pointer;list-style:none;font-size:13px}button:hover,summary:hover{background:var(--p-content-hover-background, #f3f6f8)}button:disabled{opacity:.5;cursor:default}input:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--p-primary-color, #2aaec0);outline-offset:2px}.mt-data-table-menu{position:relative}.mt-data-table-menu-content{display:flex;flex-direction:column;min-width:210px;max-height:320px;overflow:auto;padding:2px}.mt-data-table-menu-content label{display:flex;align-items:center;gap:8px;padding:6px;font-size:13px}.mt-data-table-menu-content button{border:0;text-align:start}.mt-data-table-hint,.mt-data-table-error{margin:0;padding:8px 12px}.mt-data-table-error{display:flex;align-items:center;justify-content:space-between;color:var(--p-red-600, #b42318)}.mt-data-table-body{min-width:0}.mt-data-table-chart-dock{display:none;min-height:300px}.mt-data-table-chart-open{display:block}.mt-data-table-pagination{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:16px;padding:10px 12px;font-size:13px;border-top:1px solid var(--p-content-border-color, #e4e7ec)}.mt-data-table-pagination label{display:flex;align-items:center;gap:6px}.mt-data-table-pagination input{width:4.5em}.mt-data-table-pagination input,.mt-data-table-pagination select{box-sizing:border-box;padding:6px;min-height:34px;border:1px solid var(--p-content-border-color, #ddd);border-radius:6px;background:var(--p-content-background, white);color:inherit;font:inherit}:host ::ng-deep mt-data-grid>.mt-grid-main>mt-grid-pager{display:none}.mt-data-table-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host.mt-data-table-focused>.mt-data-table-surface{position:fixed;inset:var(--mt-data-table-focus-inset, 16px);z-index:var(--mt-data-table-focus-z-index, 1000);overflow:auto;box-shadow:0 12px 60px #0005;border-radius:var(--p-content-border-radius, 6px);display:flex;flex-direction:column}:host.mt-data-table-focused .mt-data-table-body{display:flex;flex-direction:column;flex:1;min-height:120px;overflow:auto}:host.mt-data-table-focused .mt-data-table-chart-open{height:max(300px,45%);flex:0 0 max(300px,45%);overflow:auto}:host.mt-data-table-focused .mt-data-table-toolbar,:host.mt-data-table-focused .mt-data-table-pagination{flex-shrink:0}@media(max-width:640px){.mt-data-table-menu-content{min-width:0;max-width:calc(100vw - 64px);max-height:60dvh}.mt-data-table-search{width:100%;max-width:none;flex-basis:100%}.mt-data-table-search input{box-sizing:border-box;width:100%}:host.mt-data-table-focused>.mt-data-table-surface{inset:4px}}\n"], dependencies: [{ kind: "component", type: MtDataGridComponent, selector: "mt-data-grid", inputs: ["rowData", "dataProcessing", "columnDefs", "getRowId", "height", "autoHeight", "autoHeightMaxRows", "autoHeightMinRows", "rowHeight", "getRowClass", "animateRows", "headerHeight", "groupHeaderHeight", "direction", "localeText", "localeTextResolver", "ariaLabel", "loading", "noRowsText", "loadingText", "noRowsTemplate", "autoSizeStrategy", "columnMenu", "mainMenuItems", "autoSizePadding", "quickFilterText", "showQuickFilter", "showRowCount", "includeHiddenColumnsInQuickFilter", "quickFilterParser", "quickFilterMatcher", "cacheQuickFilter", "applyQuickFilterBeforePivotOrAgg", "filtersToolPanelDef", "isExternalFilterPresent", "doesExternalFilterPass", "floatingFiltersHeight", "rowSelection", "selectionColumnDef", "rowNumbers", "rowDragManaged", "rowDragEntireRow", "rowDragMultiRow", "suppressMoveWhenRowDragging", "cellSelection", "statusBar", "suppressContextMenu", "allowContextMenuWithControlKey", "preventDefaultOnContextMenu", "getContextMenuItems", "suppressCsvExport", "suppressExcelExport", "suppressPdfExport", "defaultPdfExportParams", "excelStyles", "processCellForClipboard", "processHeaderForClipboard", "processGroupHeaderForClipboard", "copySelectedRows", "copyHeadersToClipboard", "copyGroupHeadersToClipboard", "clipboardDelimiter", "suppressCopyRowsToClipboard", "suppressCopySingleCellRanges", "suppressCutToClipboard", "defaultCsvExportParams", "defaultExcelExportParams", "groupDisplayType", "groupRowRenderer", "groupRowRendererParams", "suppressGroupRowsSticky", "groupHideOpenParents", "groupHideParentOfSingleChild", "groupRemoveSingleChildren", "groupRemoveLowestSingleChildren", "showOpenedGroup", "groupAggFiltering", "suppressAggFilteredOnly", "aggregateOnlyChangedColumns", "suppressColumnMoveAnimation", "pivotRowTotals", "pivotColumnGroupTotals", "pivotMaxGeneratedColumns", "pivotDefaultExpanded", "pivotSuppressAutoColumn", "suppressExpandablePivotGroups", "processPivotResultColDef", "processPivotResultColGroupDef", "processUnpinnedColumns", "rowGroupPanelShow", "pivotPanelShow", "pivotPanelHint", "groupDefaultExpanded", "autoGroupColumnDef", "groupTotalRow", "grandTotalRow", "aggFuncs", "suppressRowGroupHidesColumns", "suppressMakeColumnVisibleAfterUnGroup", "sideBar", "pivotMode", "suppressAggFuncInHeader", "enableCharts", "chartThemes", "customChartThemes", "chartToolPanelsDef", "chartThemeOverrides", "chartContext", "chartRecordsLabel", "getChartToolbarItems", "groupMaintainOrder", "treeData", "getDataPath", "masterDetail", "isRowMaster", "detailCellRenderer", "detailCellRendererParams", "detailRowHeight", "detailRowAutoHeight", "singleClickEdit", "suppressClickEdit", "stopEditingWhenCellsLoseFocus", "undoRedoCellEditing", "undoRedoCellEditingLimit", "pagination", "paginationPanelShow", "paginationPageSize", "paginationTotalRows", "paginationCurrentPage", "paginationPageSizeSelector", "rowGroupPanelSuppressSort"], outputs: ["displayedColumnsChanged", "columnEverythingChanged", "pivotMaxColumnsExceeded", "gridReady", "sortChanged", "cellFocused", "columnResized", "columnMoved", "columnPinned", "columnVisible", "columnGroupOpened", "filterChanged", "filterModified", "filterOpened", "rowSelected", "selectionChanged", "rowClicked", "rowDragEnter", "rowDragMove", "rowDragLeave", "rowDragEnd", "cellSelectionChanged", "contextMenuVisibleChanged", "rowGroupOpened", "columnRowGroupChanged", "expandOrCollapseAll", "cellEditingStarted", "cellEditingStopped", "cellValueChanged", "pasteStart", "pasteEnd", "fillStart", "fillEnd", "paginationChanged", "toolPanelVisibleChanged", "toolPanelSizeChanged", "columnValueChanged", "columnPivotChanged", "columnPivotModeChanged", "chartCreated", "chartDestroyed", "chartRangeSelectionChanged", "chartOptionsChanged", "chartStateChanged"] }, { kind: "directive", type: CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: Button, selector: "mt-button", inputs: ["icon", "label", "tooltip", "class", "type", "styleClass", "severity", "badge", "variant", "badgeSeverity", "size", "iconPos", "autofocus", "fluid", "raised", "rounded", "text", "plain", "outlined", "link", "disabled", "loading", "pInputs", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: TextField, selector: "mt-text-field", inputs: ["field", "hint", "label", "placeholder", "class", "type", "readonly", "pInputs", "required", "maxLength", "icon", "iconPosition"] }, { kind: "component", type: Menu, selector: "mt-menu", inputs: ["model", "popup", "appendTo", "style", "styleClass", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "ariaLabel", "ariaLabelledBy", "id", "tabindex", "activeItemId"], outputs: ["activeItemIdChange", "onShow", "onHide", "onBlur", "onFocus", "onItemSelect"] }, { kind: "component", type: Popover, selector: "p-popover", inputs: ["ariaLabel", "ariaLabelledBy", "dismissable", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions", "motionOptions"], outputs: ["onShow", "onHide"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1314
1311
|
}
|
|
1315
1312
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MtDataTableComponent, decorators: [{
|
|
1316
1313
|
type: Component,
|
|
@@ -1336,5 +1333,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
1336
1333
|
* Generated bundle index. Do not edit.
|
|
1337
1334
|
*/
|
|
1338
1335
|
|
|
1339
|
-
export { MtDataTableComponent, MtDatasetCache, MtDatasetScheduler, MtIncompleteTableError, MtTablePreferences, captureMtTableChart, loadMtTableResult, mtClientTableSource,
|
|
1336
|
+
export { MtDataTableComponent, MtDatasetCache, MtDatasetScheduler, MtIncompleteTableError, MtTablePreferences, captureMtTableChart, loadMtTableResult, mtClientTableSource, parseMtTableCharts, reconcileMtTableView, restoreMtTableChart };
|
|
1340
1337
|
//# sourceMappingURL=masterteam-data-table-legacy.mjs.map
|