@masterteam/data-table 0.0.4 → 0.0.6

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 CHANGED
@@ -26,17 +26,29 @@ Every product page that shows the new grid renders `mt-standard-grid`
26
26
  keep the menu only. Backend limits are the only exceptions: `sortable: false`, and on a
27
27
  server page `filter: false`.
28
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`).
29
+ Columns/Filters side bar at the logical end, status bar (a server page drops the loaded-row
30
+ count; the pager shows the server total), pager 5/10/20/50/100 when needed (mt-table's
31
+ choices, default 10; the chosen size is part of the saved view), context menu with
32
+ CSV/Excel/PDF export, charts (Chart Range on every page; a server page charts the rows it
33
+ holds), groups in data order unless the group column is sorted, the standard empty state
34
+ (`emptyTitle`).
35
+ - **mt-table parity (2026-11-04)**: a click on a button, link, label, `role=button` or
36
+ `[data-row-click-ignore]` inside a cell never also opens the row; date ranges include both
37
+ ends; collection columns filter on their display text; the actions column widens to fit its
38
+ inline buttons and its ⋮ menu puts destructive actions last behind a divider.
32
39
  - **Inputs** (data and behaviour only): `rows`, `columns`, `rowId` (optional for local tables),
33
- `label`, `loading`, `height` (px or `'auto'`), `selection`, `exportable`, `exportName`,
40
+ `label`, `loading`, `height` (px or `'auto'`), `rowHeight` (only for cells that stack two
41
+ lines; 44px otherwise), `selection`, `exportable`, `exportName`,
34
42
  `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 }`
43
+ server export, behind the same menu), `exportButtons` (also mt-table's caption Export /
44
+ Print buttons, for pages that had them), `rowMenuItems`, `server` (`{ total, page, pageSize }`
36
45
  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]`.
46
+ `pageSize` (a client pager's rows per page, default 10), `clickableRows` (pointer cursor),
47
+ `cellClickFilter` (mt-table's: a click on a pick-list cell filters by its value),
48
+ `rowClass` (classes per row, e.g. a status colour or stripes), `detail`
49
+ (`{ renderer, params, isRowMaster }` for master/detail rows), `chartContext` (chart titles;
50
+ defaults to `label`), `view`, `search`, `emptyTitle`/`emptyDescription`; page buttons
51
+ project into `[mtGridToolbar]`.
40
52
  - **Outputs**: `gridReady`, `rowClicked`, `selectionChanged`, `sortChanged`, `filterChanged`,
41
53
  `paginationChanged`, `rowGroupOpened`, `viewChanged` (the captured view, persist it per user),
42
54
  `chartsChanged` (persist a chart session).
@@ -341,6 +341,8 @@ class MtTablePreferences {
341
341
  rowGroups: state.rowGroups,
342
342
  values: state.values,
343
343
  pivot: state.pivot,
344
+ // mt-table remembered the rows per page; the parser keeps only a valid size.
345
+ ...(state.pageSize ? { pageSize: state.pageSize } : {}),
344
346
  };
345
347
  try {
346
348
  localStorage.setItem(key, JSON.stringify(document));
@@ -1308,7 +1310,7 @@ class MtDataTableComponent {
1308
1310
  }
1309
1311
  }
1310
1312
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MtDataTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1311
- 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", "animateRows", "headerHeight", "groupHeaderHeight", "direction", "localeText", "localeTextResolver", "ariaLabel", "loading", "noRowsText", "loadingText", "noRowsTemplate", "autoSizeStrategy", "columnMenu", "mainMenuItems", "autoSizePadding", "quickFilterText", "showQuickFilter", "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 });
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", "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 });
1312
1314
  }
1313
1315
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MtDataTableComponent, decorators: [{
1314
1316
  type: Component,