@masterteam/data-table 0.0.6 → 0.0.8

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.
@@ -285,7 +285,9 @@ class MtDataTableEntityCell {
285
285
  return (!!entity &&
286
286
  (entity.viewType === 'Text' || entity.viewType === 'Number') &&
287
287
  !entity.comparison &&
288
- !entity.configuration?.['info']);
288
+ !entity.configuration?.['info'] &&
289
+ // The wrapper is what shows how a calculated value just changed.
290
+ !entity.calculationChange?.recent);
289
291
  }, ...(ngDevMode ? [{ debugName: "simpleText" }] : /* istanbul ignore next */ []));
290
292
  cellEntity() {
291
293
  const { node, data } = this.params();
@@ -307,27 +309,27 @@ class MtDataTableEntityCell {
307
309
  : null;
308
310
  }
309
311
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MtDataTableEntityCell, deps: [], target: i0.ɵɵFactoryTarget.Component });
310
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: MtDataTableEntityCell, isStandalone: true, selector: "mt-data-table-entity-cell", inputs: { params: { classPropertyName: "params", publicName: "params", isSignal: true, isRequired: true, transformFunction: null } }, host: { classAttribute: "mt-entity-grid-cell" }, providers: [EntityRuntimeContextStore], ngImport: i0, template: `@if (entity(); as value) {
311
- @if (simpleText()) {
312
- <mt-entity-text [data]="value" />
313
- } @else {
314
- <mt-entity-preview [data]="value" attachmentShape="compact" />
315
- }
316
- } @else {
317
- {{ params().valueFormatted }}
318
- }`, isInline: true, styles: [".mt-entity-grid-cell{display:block;width:100%;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n", ".mt-entity-grid-cell *{white-space:nowrap}\n", ".mt-entity-grid-cell .inline-flex{max-width:100%;overflow:hidden}\n", ".mt-entity-grid-cell mt-entity-text .font-semibold{font-weight:400}\n"], dependencies: [{ kind: "component", type: EntityPreview, selector: "mt-entity-preview", inputs: ["data", "attachmentShape"] }, { kind: "component", type: EntityText, selector: "mt-entity-text", inputs: ["data", "name", "value"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
312
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: MtDataTableEntityCell, isStandalone: true, selector: "mt-data-table-entity-cell", inputs: { params: { classPropertyName: "params", publicName: "params", isSignal: true, isRequired: true, transformFunction: null } }, host: { classAttribute: "mt-entity-grid-cell" }, providers: [EntityRuntimeContextStore], ngImport: i0, template: `@if (entity(); as value) {
313
+ @if (simpleText()) {
314
+ <mt-entity-text [data]="value" />
315
+ } @else {
316
+ <mt-entity-preview [data]="value" attachmentShape="compact" />
317
+ }
318
+ } @else {
319
+ {{ params().valueFormatted }}
320
+ }`, isInline: true, styles: [".mt-entity-grid-cell{display:block;width:100%;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n", ".mt-entity-grid-cell *{white-space:nowrap}\n", ".mt-entity-grid-cell .inline-flex{max-width:100%;overflow:hidden}\n", ".mt-entity-grid-cell mt-entity-text .font-semibold{font-weight:400}\n", ".mt-entity-grid-cell .flex-wrap{flex-wrap:nowrap}\n"], dependencies: [{ kind: "component", type: EntityPreview, selector: "mt-entity-preview", inputs: ["data", "attachmentShape"] }, { kind: "component", type: EntityText, selector: "mt-entity-text", inputs: ["data", "name", "value"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
319
321
  }
320
322
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MtDataTableEntityCell, decorators: [{
321
323
  type: Component,
322
- args: [{ selector: 'mt-data-table-entity-cell', encapsulation: ViewEncapsulation.None, host: { class: 'mt-entity-grid-cell' }, imports: [EntityPreview, EntityText], providers: [EntityRuntimeContextStore], template: `@if (entity(); as value) {
323
- @if (simpleText()) {
324
- <mt-entity-text [data]="value" />
325
- } @else {
326
- <mt-entity-preview [data]="value" attachmentShape="compact" />
327
- }
328
- } @else {
329
- {{ params().valueFormatted }}
330
- }`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".mt-entity-grid-cell{display:block;width:100%;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n", ".mt-entity-grid-cell *{white-space:nowrap}\n", ".mt-entity-grid-cell .inline-flex{max-width:100%;overflow:hidden}\n", ".mt-entity-grid-cell mt-entity-text .font-semibold{font-weight:400}\n"] }]
324
+ args: [{ selector: 'mt-data-table-entity-cell', encapsulation: ViewEncapsulation.None, host: { class: 'mt-entity-grid-cell' }, imports: [EntityPreview, EntityText], providers: [EntityRuntimeContextStore], template: `@if (entity(); as value) {
325
+ @if (simpleText()) {
326
+ <mt-entity-text [data]="value" />
327
+ } @else {
328
+ <mt-entity-preview [data]="value" attachmentShape="compact" />
329
+ }
330
+ } @else {
331
+ {{ params().valueFormatted }}
332
+ }`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".mt-entity-grid-cell{display:block;width:100%;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n", ".mt-entity-grid-cell *{white-space:nowrap}\n", ".mt-entity-grid-cell .inline-flex{max-width:100%;overflow:hidden}\n", ".mt-entity-grid-cell mt-entity-text .font-semibold{font-weight:400}\n", ".mt-entity-grid-cell .flex-wrap{flex-wrap:nowrap}\n"] }]
331
333
  }], propDecorators: { params: [{ type: i0.Input, args: [{ isSignal: true, alias: "params", required: true }] }] } });
332
334
  /** Optional native export callback: preserves typed numbers/dates and exports entity labels. */
333
335
  function mtEntityExportValue(params) {
@@ -1033,14 +1035,11 @@ const EXPORT_FORMATS = [
1033
1035
  'excel',
1034
1036
  'pdf',
1035
1037
  ];
1036
- const STATUS_BAR = {
1037
- panels: ['totalAndFilteredRowCount', 'selectedRowCount', 'aggregation'],
1038
- };
1039
1038
  /**
1040
- * A server page holds one page of rows, so the grid's own row count would count that page
1041
- * only; the pager already shows the server total.
1039
+ * Only the panels that can hide, so the bar appears for a selection or a range and takes no
1040
+ * space otherwise. The row count lives in the top strip (`showRowCount`).
1042
1041
  */
1043
- const SERVER_STATUS_BAR = {
1042
+ const STATUS_BAR = {
1044
1043
  panels: ['selectedRowCount', 'aggregation'],
1045
1044
  };
1046
1045
  /** mt-table's rows-per-page choices and default, so every migrated page keeps them. */
@@ -1174,7 +1173,6 @@ class MtStandardGridComponent {
1174
1173
  }), ...(ngDevMode ? [{ debugName: "exportParams" }] : /* istanbul ignore next */ []));
1175
1174
  // Template `?.` yields null; the grid needs undefined for client-side paging.
1176
1175
  gridPageSize = computed(() => this.server()?.pageSize ?? this.pageSize(), ...(ngDevMode ? [{ debugName: "gridPageSize" }] : /* istanbul ignore next */ []));
1177
- gridStatusBar = computed(() => this.server() ? SERVER_STATUS_BAR : STATUS_BAR, ...(ngDevMode ? [{ debugName: "gridStatusBar" }] : /* istanbul ignore next */ []));
1178
1176
  excelButton = computed(() => this.exportButtons() && this.excelAllowed(), ...(ngDevMode ? [{ debugName: "excelButton" }] : /* istanbul ignore next */ []));
1179
1177
  printButton = computed(() => this.exportButtons() &&
1180
1178
  this.exportable() &&
@@ -1204,6 +1202,7 @@ class MtStandardGridComponent {
1204
1202
  chartTitle = computed(() => this.chartContext() ?? this.label(), ...(ngDevMode ? [{ debugName: "chartTitle" }] : /* istanbul ignore next */ []));
1205
1203
  csvAllowed = computed(() => this.exportable() && this.exportFormats().includes('csv'), ...(ngDevMode ? [{ debugName: "csvAllowed" }] : /* istanbul ignore next */ []));
1206
1204
  excelAllowed = computed(() => this.exportable() && this.exportFormats().includes('excel'), ...(ngDevMode ? [{ debugName: "excelAllowed" }] : /* istanbul ignore next */ []));
1205
+ statusBar = STATUS_BAR;
1207
1206
  pageSizes = PAGE_SIZES;
1208
1207
  fit = { type: 'fitGridWidth' };
1209
1208
  api = null;
@@ -1349,11 +1348,11 @@ class MtStandardGridComponent {
1349
1348
  return rowItems.length ? [...items, 'separator', ...rowItems] : items;
1350
1349
  };
1351
1350
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MtStandardGridComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1352
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: MtStandardGridComponent, isStandalone: true, selector: "mt-standard-grid", inputs: { rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: true, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: true, transformFunction: null }, rowId: { classPropertyName: "rowId", publicName: "rowId", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", 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 }, selection: { classPropertyName: "selection", publicName: "selection", isSignal: true, isRequired: false, transformFunction: null }, exportable: { classPropertyName: "exportable", publicName: "exportable", isSignal: true, isRequired: false, transformFunction: null }, exportButtons: { classPropertyName: "exportButtons", publicName: "exportButtons", isSignal: true, isRequired: false, transformFunction: null }, exportName: { classPropertyName: "exportName", publicName: "exportName", isSignal: true, isRequired: false, transformFunction: null }, exportFormats: { classPropertyName: "exportFormats", publicName: "exportFormats", isSignal: true, isRequired: false, transformFunction: null }, exporter: { classPropertyName: "exporter", publicName: "exporter", isSignal: true, isRequired: false, transformFunction: null }, rowMenuItems: { classPropertyName: "rowMenuItems", publicName: "rowMenuItems", isSignal: true, isRequired: false, transformFunction: null }, server: { classPropertyName: "server", publicName: "server", isSignal: true, isRequired: false, transformFunction: null }, paged: { classPropertyName: "paged", publicName: "paged", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, clickableRows: { classPropertyName: "clickableRows", publicName: "clickableRows", isSignal: true, isRequired: false, transformFunction: null }, cellClickFilter: { classPropertyName: "cellClickFilter", publicName: "cellClickFilter", isSignal: true, isRequired: false, transformFunction: null }, rowClass: { classPropertyName: "rowClass", publicName: "rowClass", isSignal: true, isRequired: false, transformFunction: null }, detail: { classPropertyName: "detail", publicName: "detail", isSignal: true, isRequired: false, transformFunction: null }, chartContext: { classPropertyName: "chartContext", publicName: "chartContext", isSignal: true, isRequired: false, transformFunction: null }, search: { classPropertyName: "search", publicName: "search", isSignal: true, isRequired: false, transformFunction: null }, emptyTitle: { classPropertyName: "emptyTitle", publicName: "emptyTitle", isSignal: true, isRequired: false, transformFunction: null }, emptyDescription: { classPropertyName: "emptyDescription", publicName: "emptyDescription", isSignal: true, isRequired: false, transformFunction: null }, view: { classPropertyName: "view", publicName: "view", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { gridReady: "gridReady", rowClicked: "rowClicked", selectionChanged: "selectionChanged", sortChanged: "sortChanged", filterChanged: "filterChanged", paginationChanged: "paginationChanged", rowGroupOpened: "rowGroupOpened", viewChanged: "viewChanged", chartsChanged: "chartsChanged" }, viewQueries: [{ propertyName: "grid", first: true, predicate: MtDataGridComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"mt-standard-grid\">\n <div class=\"mt-standard-grid-toolbar\">\n <ng-content select=\"[mtGridToolbar]\" />\n @if (excelButton() || printButton()) {\n <mt-table-actions-menu\n class=\"mt-standard-grid-export\"\n [exportable]=\"excelButton()\"\n [printable]=\"printButton()\"\n (exportRequested)=\"exportAs('excel')\"\n (printRequested)=\"exportAs('pdf')\"\n />\n }\n </div>\n <mt-data-grid\n [rowData]=\"rows()\"\n [columnDefs]=\"standardColumns()\"\n [getRowId]=\"rowId()\"\n [dataProcessing]=\"server() ? 'external' : 'client'\"\n [height]=\"gridHeight()\"\n [rowHeight]=\"rowHeight()\"\n [autoHeight]=\"height() === 'auto'\"\n [autoSizeStrategy]=\"fit\"\n [ariaLabel]=\"label()\"\n [loading]=\"loading()\"\n [direction]=\"direction()\"\n [localeText]=\"text.gridLocale()\"\n [showQuickFilter]=\"true\"\n [quickFilterText]=\"search()\"\n rowGroupPanelShow=\"always\"\n pivotPanelShow=\"onlyWhenPivoting\"\n [sideBar]=\"sideBar()\"\n [statusBar]=\"gridStatusBar()\"\n [getRowClass]=\"gridRowClass()\"\n [rowSelection]=\"selectionOptions()\"\n [cellSelection]=\"true\"\n [enableCharts]=\"true\"\n [chartContext]=\"chartTitle()\"\n [chartRecordsLabel]=\"label()\"\n [animateRows]=\"true\"\n [suppressCutToClipboard]=\"true\"\n [suppressCsvExport]=\"!csvAllowed()\"\n [suppressExcelExport]=\"!excelAllowed()\"\n [suppressPdfExport]=\"true\"\n [defaultCsvExportParams]=\"exportParams()\"\n [defaultExcelExportParams]=\"exportParams()\"\n [getContextMenuItems]=\"contextMenu\"\n groupDisplayType=\"groupRows\"\n [groupMaintainOrder]=\"true\"\n [autoGroupColumnDef]=\"autoGroupColumnDef()\"\n [groupDefaultExpanded]=\"-1\"\n [pagination]=\"paged()\"\n paginationPanelShow=\"whenNeeded\"\n [paginationPageSize]=\"gridPageSize()\"\n [paginationPageSizeSelector]=\"pageSizes\"\n [paginationTotalRows]=\"pagedTotal()\"\n [paginationCurrentPage]=\"pagedPage()\"\n [masterDetail]=\"detail() !== null\"\n [detailCellRenderer]=\"detailRenderer()\"\n [detailCellRendererParams]=\"detailParams()\"\n [detailRowAutoHeight]=\"true\"\n [isRowMaster]=\"isRowMaster()\"\n [noRowsTemplate]=\"emptyTitle() ? emptyState : undefined\"\n (gridReady)=\"onReady($event)\"\n (rowClicked)=\"onRowClicked($event)\"\n (selectionChanged)=\"onSelectionChanged($event)\"\n (sortChanged)=\"sortChanged.emit($event); onViewChange()\"\n (filterChanged)=\"filterChanged.emit($event); onViewChange()\"\n (paginationChanged)=\"onPaginationChanged($event)\"\n (rowGroupOpened)=\"rowGroupOpened.emit($event)\"\n (chartCreated)=\"chartsChanged.emit()\"\n (chartDestroyed)=\"chartsChanged.emit()\"\n (chartOptionsChanged)=\"chartsChanged.emit()\"\n (columnRowGroupChanged)=\"onViewChange()\"\n (columnValueChanged)=\"onViewChange()\"\n (columnPivotChanged)=\"onViewChange()\"\n (columnPivotModeChanged)=\"onViewChange()\"\n (columnMoved)=\"onViewChange()\"\n (columnPinned)=\"onViewChange()\"\n (columnVisible)=\"onViewChange()\"\n (columnResized)=\"$event.finished && onViewChange()\"\n />\n</div>\n<ng-template #emptyState>\n <mt-empty-state\n [title]=\"emptyTitle() ?? ''\"\n [description]=\"emptyDescription() ?? ''\"\n />\n</ng-template>\n", styles: [":host{display:block}.mt-standard-grid{display:flex;flex-direction:column;gap:12px}.mt-standard-grid-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.mt-standard-grid-toolbar:empty{display:none}.mt-standard-grid-export{margin-inline-start:auto}:host ::ng-deep .mt-standard-grid-row-clickable{cursor:pointer}\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: "component", type: EmptyState, selector: "mt-empty-state", inputs: ["variant", "illustration", "title", "description", "actionLabel", "actionIcon"], outputs: ["actionClick"] }, { kind: "component", type: TableActionsMenu, selector: "mt-table-actions-menu", inputs: ["exportable", "printable", "groupable", "groupColumns", "activeGroup"], outputs: ["exportRequested", "printRequested", "groupChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1351
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: MtStandardGridComponent, isStandalone: true, selector: "mt-standard-grid", inputs: { rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: true, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: true, transformFunction: null }, rowId: { classPropertyName: "rowId", publicName: "rowId", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", 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 }, selection: { classPropertyName: "selection", publicName: "selection", isSignal: true, isRequired: false, transformFunction: null }, exportable: { classPropertyName: "exportable", publicName: "exportable", isSignal: true, isRequired: false, transformFunction: null }, exportButtons: { classPropertyName: "exportButtons", publicName: "exportButtons", isSignal: true, isRequired: false, transformFunction: null }, exportName: { classPropertyName: "exportName", publicName: "exportName", isSignal: true, isRequired: false, transformFunction: null }, exportFormats: { classPropertyName: "exportFormats", publicName: "exportFormats", isSignal: true, isRequired: false, transformFunction: null }, exporter: { classPropertyName: "exporter", publicName: "exporter", isSignal: true, isRequired: false, transformFunction: null }, rowMenuItems: { classPropertyName: "rowMenuItems", publicName: "rowMenuItems", isSignal: true, isRequired: false, transformFunction: null }, server: { classPropertyName: "server", publicName: "server", isSignal: true, isRequired: false, transformFunction: null }, paged: { classPropertyName: "paged", publicName: "paged", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, clickableRows: { classPropertyName: "clickableRows", publicName: "clickableRows", isSignal: true, isRequired: false, transformFunction: null }, cellClickFilter: { classPropertyName: "cellClickFilter", publicName: "cellClickFilter", isSignal: true, isRequired: false, transformFunction: null }, rowClass: { classPropertyName: "rowClass", publicName: "rowClass", isSignal: true, isRequired: false, transformFunction: null }, detail: { classPropertyName: "detail", publicName: "detail", isSignal: true, isRequired: false, transformFunction: null }, chartContext: { classPropertyName: "chartContext", publicName: "chartContext", isSignal: true, isRequired: false, transformFunction: null }, search: { classPropertyName: "search", publicName: "search", isSignal: true, isRequired: false, transformFunction: null }, emptyTitle: { classPropertyName: "emptyTitle", publicName: "emptyTitle", isSignal: true, isRequired: false, transformFunction: null }, emptyDescription: { classPropertyName: "emptyDescription", publicName: "emptyDescription", isSignal: true, isRequired: false, transformFunction: null }, view: { classPropertyName: "view", publicName: "view", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { gridReady: "gridReady", rowClicked: "rowClicked", selectionChanged: "selectionChanged", sortChanged: "sortChanged", filterChanged: "filterChanged", paginationChanged: "paginationChanged", rowGroupOpened: "rowGroupOpened", viewChanged: "viewChanged", chartsChanged: "chartsChanged" }, viewQueries: [{ propertyName: "grid", first: true, predicate: MtDataGridComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"mt-standard-grid\">\r\n <div class=\"mt-standard-grid-toolbar\">\r\n <ng-content select=\"[mtGridToolbar]\" />\r\n @if (excelButton() || printButton()) {\r\n <mt-table-actions-menu\r\n class=\"mt-standard-grid-export\"\r\n [exportable]=\"excelButton()\"\r\n [printable]=\"printButton()\"\r\n (exportRequested)=\"exportAs('excel')\"\r\n (printRequested)=\"exportAs('pdf')\"\r\n />\r\n }\r\n </div>\r\n <mt-data-grid\r\n [rowData]=\"rows()\"\r\n [columnDefs]=\"standardColumns()\"\r\n [getRowId]=\"rowId()\"\r\n [dataProcessing]=\"server() ? 'external' : 'client'\"\r\n [height]=\"gridHeight()\"\r\n [rowHeight]=\"rowHeight()\"\r\n [autoHeight]=\"height() === 'auto'\"\r\n [autoSizeStrategy]=\"fit\"\r\n [ariaLabel]=\"label()\"\r\n [loading]=\"loading()\"\r\n [direction]=\"direction()\"\r\n [localeText]=\"text.gridLocale()\"\r\n [showQuickFilter]=\"true\"\r\n [showRowCount]=\"true\"\r\n [quickFilterText]=\"search()\"\r\n rowGroupPanelShow=\"always\"\r\n pivotPanelShow=\"onlyWhenPivoting\"\r\n [sideBar]=\"sideBar()\"\r\n [statusBar]=\"statusBar\"\r\n [getRowClass]=\"gridRowClass()\"\r\n [rowSelection]=\"selectionOptions()\"\r\n [cellSelection]=\"true\"\r\n [enableCharts]=\"true\"\r\n [chartContext]=\"chartTitle()\"\r\n [chartRecordsLabel]=\"label()\"\r\n [animateRows]=\"true\"\r\n [suppressCutToClipboard]=\"true\"\r\n [suppressCsvExport]=\"!csvAllowed()\"\r\n [suppressExcelExport]=\"!excelAllowed()\"\r\n [suppressPdfExport]=\"true\"\r\n [defaultCsvExportParams]=\"exportParams()\"\r\n [defaultExcelExportParams]=\"exportParams()\"\r\n [getContextMenuItems]=\"contextMenu\"\r\n groupDisplayType=\"groupRows\"\r\n [groupMaintainOrder]=\"true\"\r\n [autoGroupColumnDef]=\"autoGroupColumnDef()\"\r\n [groupDefaultExpanded]=\"-1\"\r\n [pagination]=\"paged()\"\r\n paginationPanelShow=\"whenNeeded\"\r\n [paginationPageSize]=\"gridPageSize()\"\r\n [paginationPageSizeSelector]=\"pageSizes\"\r\n [paginationTotalRows]=\"pagedTotal()\"\r\n [paginationCurrentPage]=\"pagedPage()\"\r\n [masterDetail]=\"detail() !== null\"\r\n [detailCellRenderer]=\"detailRenderer()\"\r\n [detailCellRendererParams]=\"detailParams()\"\r\n [detailRowAutoHeight]=\"true\"\r\n [isRowMaster]=\"isRowMaster()\"\r\n [noRowsTemplate]=\"emptyTitle() ? emptyState : undefined\"\r\n (gridReady)=\"onReady($event)\"\r\n (rowClicked)=\"onRowClicked($event)\"\r\n (selectionChanged)=\"onSelectionChanged($event)\"\r\n (sortChanged)=\"sortChanged.emit($event); onViewChange()\"\r\n (filterChanged)=\"filterChanged.emit($event); onViewChange()\"\r\n (paginationChanged)=\"onPaginationChanged($event)\"\r\n (rowGroupOpened)=\"rowGroupOpened.emit($event)\"\r\n (chartCreated)=\"chartsChanged.emit()\"\r\n (chartDestroyed)=\"chartsChanged.emit()\"\r\n (chartOptionsChanged)=\"chartsChanged.emit()\"\r\n (columnRowGroupChanged)=\"onViewChange()\"\r\n (columnValueChanged)=\"onViewChange()\"\r\n (columnPivotChanged)=\"onViewChange()\"\r\n (columnPivotModeChanged)=\"onViewChange()\"\r\n (columnMoved)=\"onViewChange()\"\r\n (columnPinned)=\"onViewChange()\"\r\n (columnVisible)=\"onViewChange()\"\r\n (columnResized)=\"$event.finished && onViewChange()\"\r\n />\r\n</div>\r\n<ng-template #emptyState>\r\n <mt-empty-state\r\n [title]=\"emptyTitle() ?? ''\"\r\n [description]=\"emptyDescription() ?? ''\"\r\n />\r\n</ng-template>\r\n", styles: [":host{display:block}.mt-standard-grid{display:flex;flex-direction:column;gap:12px}.mt-standard-grid-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.mt-standard-grid-toolbar:empty{display:none}.mt-standard-grid-export{margin-inline-start:auto}:host ::ng-deep .mt-standard-grid-row-clickable{cursor:pointer}\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: "component", type: EmptyState, selector: "mt-empty-state", inputs: ["variant", "illustration", "title", "description", "actionLabel", "actionIcon"], outputs: ["actionClick"] }, { kind: "component", type: TableActionsMenu, selector: "mt-table-actions-menu", inputs: ["exportable", "printable", "groupable", "groupColumns", "activeGroup"], outputs: ["exportRequested", "printRequested", "groupChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1353
1352
  }
1354
1353
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MtStandardGridComponent, decorators: [{
1355
1354
  type: Component,
1356
- args: [{ selector: 'mt-standard-grid', imports: [MtDataGridComponent, EmptyState, TableActionsMenu], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"mt-standard-grid\">\n <div class=\"mt-standard-grid-toolbar\">\n <ng-content select=\"[mtGridToolbar]\" />\n @if (excelButton() || printButton()) {\n <mt-table-actions-menu\n class=\"mt-standard-grid-export\"\n [exportable]=\"excelButton()\"\n [printable]=\"printButton()\"\n (exportRequested)=\"exportAs('excel')\"\n (printRequested)=\"exportAs('pdf')\"\n />\n }\n </div>\n <mt-data-grid\n [rowData]=\"rows()\"\n [columnDefs]=\"standardColumns()\"\n [getRowId]=\"rowId()\"\n [dataProcessing]=\"server() ? 'external' : 'client'\"\n [height]=\"gridHeight()\"\n [rowHeight]=\"rowHeight()\"\n [autoHeight]=\"height() === 'auto'\"\n [autoSizeStrategy]=\"fit\"\n [ariaLabel]=\"label()\"\n [loading]=\"loading()\"\n [direction]=\"direction()\"\n [localeText]=\"text.gridLocale()\"\n [showQuickFilter]=\"true\"\n [quickFilterText]=\"search()\"\n rowGroupPanelShow=\"always\"\n pivotPanelShow=\"onlyWhenPivoting\"\n [sideBar]=\"sideBar()\"\n [statusBar]=\"gridStatusBar()\"\n [getRowClass]=\"gridRowClass()\"\n [rowSelection]=\"selectionOptions()\"\n [cellSelection]=\"true\"\n [enableCharts]=\"true\"\n [chartContext]=\"chartTitle()\"\n [chartRecordsLabel]=\"label()\"\n [animateRows]=\"true\"\n [suppressCutToClipboard]=\"true\"\n [suppressCsvExport]=\"!csvAllowed()\"\n [suppressExcelExport]=\"!excelAllowed()\"\n [suppressPdfExport]=\"true\"\n [defaultCsvExportParams]=\"exportParams()\"\n [defaultExcelExportParams]=\"exportParams()\"\n [getContextMenuItems]=\"contextMenu\"\n groupDisplayType=\"groupRows\"\n [groupMaintainOrder]=\"true\"\n [autoGroupColumnDef]=\"autoGroupColumnDef()\"\n [groupDefaultExpanded]=\"-1\"\n [pagination]=\"paged()\"\n paginationPanelShow=\"whenNeeded\"\n [paginationPageSize]=\"gridPageSize()\"\n [paginationPageSizeSelector]=\"pageSizes\"\n [paginationTotalRows]=\"pagedTotal()\"\n [paginationCurrentPage]=\"pagedPage()\"\n [masterDetail]=\"detail() !== null\"\n [detailCellRenderer]=\"detailRenderer()\"\n [detailCellRendererParams]=\"detailParams()\"\n [detailRowAutoHeight]=\"true\"\n [isRowMaster]=\"isRowMaster()\"\n [noRowsTemplate]=\"emptyTitle() ? emptyState : undefined\"\n (gridReady)=\"onReady($event)\"\n (rowClicked)=\"onRowClicked($event)\"\n (selectionChanged)=\"onSelectionChanged($event)\"\n (sortChanged)=\"sortChanged.emit($event); onViewChange()\"\n (filterChanged)=\"filterChanged.emit($event); onViewChange()\"\n (paginationChanged)=\"onPaginationChanged($event)\"\n (rowGroupOpened)=\"rowGroupOpened.emit($event)\"\n (chartCreated)=\"chartsChanged.emit()\"\n (chartDestroyed)=\"chartsChanged.emit()\"\n (chartOptionsChanged)=\"chartsChanged.emit()\"\n (columnRowGroupChanged)=\"onViewChange()\"\n (columnValueChanged)=\"onViewChange()\"\n (columnPivotChanged)=\"onViewChange()\"\n (columnPivotModeChanged)=\"onViewChange()\"\n (columnMoved)=\"onViewChange()\"\n (columnPinned)=\"onViewChange()\"\n (columnVisible)=\"onViewChange()\"\n (columnResized)=\"$event.finished && onViewChange()\"\n />\n</div>\n<ng-template #emptyState>\n <mt-empty-state\n [title]=\"emptyTitle() ?? ''\"\n [description]=\"emptyDescription() ?? ''\"\n />\n</ng-template>\n", styles: [":host{display:block}.mt-standard-grid{display:flex;flex-direction:column;gap:12px}.mt-standard-grid-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.mt-standard-grid-toolbar:empty{display:none}.mt-standard-grid-export{margin-inline-start:auto}:host ::ng-deep .mt-standard-grid-row-clickable{cursor:pointer}\n"] }]
1355
+ args: [{ selector: 'mt-standard-grid', imports: [MtDataGridComponent, EmptyState, TableActionsMenu], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"mt-standard-grid\">\r\n <div class=\"mt-standard-grid-toolbar\">\r\n <ng-content select=\"[mtGridToolbar]\" />\r\n @if (excelButton() || printButton()) {\r\n <mt-table-actions-menu\r\n class=\"mt-standard-grid-export\"\r\n [exportable]=\"excelButton()\"\r\n [printable]=\"printButton()\"\r\n (exportRequested)=\"exportAs('excel')\"\r\n (printRequested)=\"exportAs('pdf')\"\r\n />\r\n }\r\n </div>\r\n <mt-data-grid\r\n [rowData]=\"rows()\"\r\n [columnDefs]=\"standardColumns()\"\r\n [getRowId]=\"rowId()\"\r\n [dataProcessing]=\"server() ? 'external' : 'client'\"\r\n [height]=\"gridHeight()\"\r\n [rowHeight]=\"rowHeight()\"\r\n [autoHeight]=\"height() === 'auto'\"\r\n [autoSizeStrategy]=\"fit\"\r\n [ariaLabel]=\"label()\"\r\n [loading]=\"loading()\"\r\n [direction]=\"direction()\"\r\n [localeText]=\"text.gridLocale()\"\r\n [showQuickFilter]=\"true\"\r\n [showRowCount]=\"true\"\r\n [quickFilterText]=\"search()\"\r\n rowGroupPanelShow=\"always\"\r\n pivotPanelShow=\"onlyWhenPivoting\"\r\n [sideBar]=\"sideBar()\"\r\n [statusBar]=\"statusBar\"\r\n [getRowClass]=\"gridRowClass()\"\r\n [rowSelection]=\"selectionOptions()\"\r\n [cellSelection]=\"true\"\r\n [enableCharts]=\"true\"\r\n [chartContext]=\"chartTitle()\"\r\n [chartRecordsLabel]=\"label()\"\r\n [animateRows]=\"true\"\r\n [suppressCutToClipboard]=\"true\"\r\n [suppressCsvExport]=\"!csvAllowed()\"\r\n [suppressExcelExport]=\"!excelAllowed()\"\r\n [suppressPdfExport]=\"true\"\r\n [defaultCsvExportParams]=\"exportParams()\"\r\n [defaultExcelExportParams]=\"exportParams()\"\r\n [getContextMenuItems]=\"contextMenu\"\r\n groupDisplayType=\"groupRows\"\r\n [groupMaintainOrder]=\"true\"\r\n [autoGroupColumnDef]=\"autoGroupColumnDef()\"\r\n [groupDefaultExpanded]=\"-1\"\r\n [pagination]=\"paged()\"\r\n paginationPanelShow=\"whenNeeded\"\r\n [paginationPageSize]=\"gridPageSize()\"\r\n [paginationPageSizeSelector]=\"pageSizes\"\r\n [paginationTotalRows]=\"pagedTotal()\"\r\n [paginationCurrentPage]=\"pagedPage()\"\r\n [masterDetail]=\"detail() !== null\"\r\n [detailCellRenderer]=\"detailRenderer()\"\r\n [detailCellRendererParams]=\"detailParams()\"\r\n [detailRowAutoHeight]=\"true\"\r\n [isRowMaster]=\"isRowMaster()\"\r\n [noRowsTemplate]=\"emptyTitle() ? emptyState : undefined\"\r\n (gridReady)=\"onReady($event)\"\r\n (rowClicked)=\"onRowClicked($event)\"\r\n (selectionChanged)=\"onSelectionChanged($event)\"\r\n (sortChanged)=\"sortChanged.emit($event); onViewChange()\"\r\n (filterChanged)=\"filterChanged.emit($event); onViewChange()\"\r\n (paginationChanged)=\"onPaginationChanged($event)\"\r\n (rowGroupOpened)=\"rowGroupOpened.emit($event)\"\r\n (chartCreated)=\"chartsChanged.emit()\"\r\n (chartDestroyed)=\"chartsChanged.emit()\"\r\n (chartOptionsChanged)=\"chartsChanged.emit()\"\r\n (columnRowGroupChanged)=\"onViewChange()\"\r\n (columnValueChanged)=\"onViewChange()\"\r\n (columnPivotChanged)=\"onViewChange()\"\r\n (columnPivotModeChanged)=\"onViewChange()\"\r\n (columnMoved)=\"onViewChange()\"\r\n (columnPinned)=\"onViewChange()\"\r\n (columnVisible)=\"onViewChange()\"\r\n (columnResized)=\"$event.finished && onViewChange()\"\r\n />\r\n</div>\r\n<ng-template #emptyState>\r\n <mt-empty-state\r\n [title]=\"emptyTitle() ?? ''\"\r\n [description]=\"emptyDescription() ?? ''\"\r\n />\r\n</ng-template>\r\n", styles: [":host{display:block}.mt-standard-grid{display:flex;flex-direction:column;gap:12px}.mt-standard-grid-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.mt-standard-grid-toolbar:empty{display:none}.mt-standard-grid-export{margin-inline-start:auto}:host ::ng-deep .mt-standard-grid-row-clickable{cursor:pointer}\n"] }]
1357
1356
  }], propDecorators: { rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: true }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: true }] }], rowId: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowId", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], rowHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowHeight", required: false }] }], selection: [{ type: i0.Input, args: [{ isSignal: true, alias: "selection", required: false }] }], exportable: [{ type: i0.Input, args: [{ isSignal: true, alias: "exportable", required: false }] }], exportButtons: [{ type: i0.Input, args: [{ isSignal: true, alias: "exportButtons", required: false }] }], exportName: [{ type: i0.Input, args: [{ isSignal: true, alias: "exportName", required: false }] }], exportFormats: [{ type: i0.Input, args: [{ isSignal: true, alias: "exportFormats", required: false }] }], exporter: [{ type: i0.Input, args: [{ isSignal: true, alias: "exporter", required: false }] }], rowMenuItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowMenuItems", required: false }] }], server: [{ type: i0.Input, args: [{ isSignal: true, alias: "server", required: false }] }], paged: [{ type: i0.Input, args: [{ isSignal: true, alias: "paged", required: false }] }], pageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageSize", required: false }] }], clickableRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "clickableRows", required: false }] }], cellClickFilter: [{ type: i0.Input, args: [{ isSignal: true, alias: "cellClickFilter", required: false }] }], rowClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowClass", required: false }] }], detail: [{ type: i0.Input, args: [{ isSignal: true, alias: "detail", required: false }] }], chartContext: [{ type: i0.Input, args: [{ isSignal: true, alias: "chartContext", required: false }] }], search: [{ type: i0.Input, args: [{ isSignal: true, alias: "search", required: false }] }], emptyTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyTitle", required: false }] }], emptyDescription: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyDescription", required: false }] }], view: [{ type: i0.Input, args: [{ isSignal: true, alias: "view", required: false }] }], gridReady: [{ type: i0.Output, args: ["gridReady"] }], rowClicked: [{ type: i0.Output, args: ["rowClicked"] }], selectionChanged: [{ type: i0.Output, args: ["selectionChanged"] }], sortChanged: [{ type: i0.Output, args: ["sortChanged"] }], filterChanged: [{ type: i0.Output, args: ["filterChanged"] }], paginationChanged: [{ type: i0.Output, args: ["paginationChanged"] }], rowGroupOpened: [{ type: i0.Output, args: ["rowGroupOpened"] }], viewChanged: [{ type: i0.Output, args: ["viewChanged"] }], chartsChanged: [{ type: i0.Output, args: ["chartsChanged"] }], grid: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MtDataGridComponent), { isSignal: true }] }] } });
1358
1357
 
1359
1358
  /** The standard row-actions column id. */
@@ -1444,14 +1443,14 @@ class MtActionsCell {
1444
1443
  this.confirmation.confirm(config);
1445
1444
  }
1446
1445
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MtActionsCell, deps: [], target: i0.ɵɵFactoryTarget.Component });
1447
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: MtActionsCell, isStandalone: true, selector: "mt-actions-cell", inputs: { params: { classPropertyName: "params", publicName: "params", isSignal: true, isRequired: true, transformFunction: null } }, host: { listeners: { "click": "$event.stopPropagation()", "pointerdown": "$event.stopPropagation()" } }, ngImport: i0, template: "@for (action of inline(); track $index) {\n <mt-button\n [icon]=\"action.icon\"\n [label]=\"action.label\"\n [ariaLabel]=\"action.tooltip || action.label || label()\"\n [tooltip]=\"action.tooltip\"\n [severity]=\"action.color || 'secondary'\"\n [variant]=\"action.variant || 'text'\"\n size=\"small\"\n [loading]=\"busy(action)\"\n (click)=\"run(action, $event)\"\n />\n}\n@if (hasMenu()) {\n <mt-button\n icon=\"general.dots-vertical\"\n severity=\"secondary\"\n variant=\"text\"\n size=\"small\"\n [ariaLabel]=\"label()\"\n (click)=\"open($event, popover)\"\n />\n <p-popover #popover appendTo=\"body\">\n <div class=\"flex min-w-40 flex-col gap-1\" [attr.aria-label]=\"label()\">\n @if (loading()) {\n <div\n role=\"status\"\n class=\"flex flex-col gap-2 p-2\"\n [attr.aria-label]=\"params()['loadingLabel']\"\n >\n <p-skeleton height=\"1.5rem\" />\n <p-skeleton height=\"1.5rem\" />\n <p-skeleton height=\"1.5rem\" />\n </div>\n } @else {\n @for (action of menu(); track $index) {\n @if (firstDestructive($index)) {\n <hr\n class=\"my-1 border-0 border-t border-surface-200 dark:border-surface-700\"\n />\n }\n <mt-button\n [icon]=\"action.icon\"\n [label]=\"action.label || action.tooltip\"\n [severity]=\"action.color || 'secondary'\"\n variant=\"text\"\n size=\"small\"\n [loading]=\"busy(action)\"\n (click)=\"run(action, $event); popover.hide()\"\n />\n }\n }\n </div>\n </p-popover>\n}\n", styles: [":host{display:flex;align-items:center;justify-content:center;gap:4px;height:100%}\n"], dependencies: [{ 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: Popover, selector: "p-popover", inputs: ["ariaLabel", "ariaLabelledBy", "dismissable", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions", "motionOptions"], outputs: ["onShow", "onHide"] }, { kind: "component", type: Skeleton, selector: "p-skeleton", inputs: ["styleClass", "shape", "animation", "borderRadius", "size", "width", "height"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1446
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: MtActionsCell, isStandalone: true, selector: "mt-actions-cell", inputs: { params: { classPropertyName: "params", publicName: "params", isSignal: true, isRequired: true, transformFunction: null } }, host: { listeners: { "click": "$event.stopPropagation()", "pointerdown": "$event.stopPropagation()" } }, ngImport: i0, template: "@for (action of inline(); track $index) {\r\n <mt-button\r\n [icon]=\"action.icon\"\r\n [label]=\"action.label\"\r\n [ariaLabel]=\"action.tooltip || action.label || label()\"\r\n [tooltip]=\"action.tooltip\"\r\n [severity]=\"action.color || 'secondary'\"\r\n [variant]=\"action.variant || 'text'\"\r\n size=\"small\"\r\n [loading]=\"busy(action)\"\r\n (click)=\"run(action, $event)\"\r\n />\r\n}\r\n@if (hasMenu()) {\r\n <mt-button\r\n icon=\"general.dots-vertical\"\r\n severity=\"secondary\"\r\n variant=\"text\"\r\n size=\"small\"\r\n [ariaLabel]=\"label()\"\r\n (click)=\"open($event, popover)\"\r\n />\r\n <p-popover #popover appendTo=\"body\">\r\n <div class=\"flex min-w-40 flex-col gap-1\" [attr.aria-label]=\"label()\">\r\n @if (loading()) {\r\n <div\r\n role=\"status\"\r\n class=\"flex flex-col gap-2 p-2\"\r\n [attr.aria-label]=\"params()['loadingLabel']\"\r\n >\r\n <p-skeleton height=\"1.5rem\" />\r\n <p-skeleton height=\"1.5rem\" />\r\n <p-skeleton height=\"1.5rem\" />\r\n </div>\r\n } @else {\r\n @for (action of menu(); track $index) {\r\n @if (firstDestructive($index)) {\r\n <hr\r\n class=\"my-1 border-0 border-t border-surface-200 dark:border-surface-700\"\r\n />\r\n }\r\n <mt-button\r\n [icon]=\"action.icon\"\r\n [label]=\"action.label || action.tooltip\"\r\n [severity]=\"action.color || 'secondary'\"\r\n variant=\"text\"\r\n size=\"small\"\r\n [loading]=\"busy(action)\"\r\n (click)=\"run(action, $event); popover.hide()\"\r\n />\r\n }\r\n }\r\n </div>\r\n </p-popover>\r\n}\r\n", styles: [":host{display:flex;align-items:center;justify-content:center;gap:4px;height:100%}\n"], dependencies: [{ 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: Popover, selector: "p-popover", inputs: ["ariaLabel", "ariaLabelledBy", "dismissable", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions", "motionOptions"], outputs: ["onShow", "onHide"] }, { kind: "component", type: Skeleton, selector: "p-skeleton", inputs: ["styleClass", "shape", "animation", "borderRadius", "size", "width", "height"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1448
1447
  }
1449
1448
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MtActionsCell, decorators: [{
1450
1449
  type: Component,
1451
1450
  args: [{ selector: 'mt-actions-cell', imports: [Button, Popover, Skeleton], changeDetection: ChangeDetectionStrategy.OnPush, host: {
1452
1451
  '(click)': '$event.stopPropagation()',
1453
1452
  '(pointerdown)': '$event.stopPropagation()',
1454
- }, template: "@for (action of inline(); track $index) {\n <mt-button\n [icon]=\"action.icon\"\n [label]=\"action.label\"\n [ariaLabel]=\"action.tooltip || action.label || label()\"\n [tooltip]=\"action.tooltip\"\n [severity]=\"action.color || 'secondary'\"\n [variant]=\"action.variant || 'text'\"\n size=\"small\"\n [loading]=\"busy(action)\"\n (click)=\"run(action, $event)\"\n />\n}\n@if (hasMenu()) {\n <mt-button\n icon=\"general.dots-vertical\"\n severity=\"secondary\"\n variant=\"text\"\n size=\"small\"\n [ariaLabel]=\"label()\"\n (click)=\"open($event, popover)\"\n />\n <p-popover #popover appendTo=\"body\">\n <div class=\"flex min-w-40 flex-col gap-1\" [attr.aria-label]=\"label()\">\n @if (loading()) {\n <div\n role=\"status\"\n class=\"flex flex-col gap-2 p-2\"\n [attr.aria-label]=\"params()['loadingLabel']\"\n >\n <p-skeleton height=\"1.5rem\" />\n <p-skeleton height=\"1.5rem\" />\n <p-skeleton height=\"1.5rem\" />\n </div>\n } @else {\n @for (action of menu(); track $index) {\n @if (firstDestructive($index)) {\n <hr\n class=\"my-1 border-0 border-t border-surface-200 dark:border-surface-700\"\n />\n }\n <mt-button\n [icon]=\"action.icon\"\n [label]=\"action.label || action.tooltip\"\n [severity]=\"action.color || 'secondary'\"\n variant=\"text\"\n size=\"small\"\n [loading]=\"busy(action)\"\n (click)=\"run(action, $event); popover.hide()\"\n />\n }\n }\n </div>\n </p-popover>\n}\n", styles: [":host{display:flex;align-items:center;justify-content:center;gap:4px;height:100%}\n"] }]
1453
+ }, template: "@for (action of inline(); track $index) {\r\n <mt-button\r\n [icon]=\"action.icon\"\r\n [label]=\"action.label\"\r\n [ariaLabel]=\"action.tooltip || action.label || label()\"\r\n [tooltip]=\"action.tooltip\"\r\n [severity]=\"action.color || 'secondary'\"\r\n [variant]=\"action.variant || 'text'\"\r\n size=\"small\"\r\n [loading]=\"busy(action)\"\r\n (click)=\"run(action, $event)\"\r\n />\r\n}\r\n@if (hasMenu()) {\r\n <mt-button\r\n icon=\"general.dots-vertical\"\r\n severity=\"secondary\"\r\n variant=\"text\"\r\n size=\"small\"\r\n [ariaLabel]=\"label()\"\r\n (click)=\"open($event, popover)\"\r\n />\r\n <p-popover #popover appendTo=\"body\">\r\n <div class=\"flex min-w-40 flex-col gap-1\" [attr.aria-label]=\"label()\">\r\n @if (loading()) {\r\n <div\r\n role=\"status\"\r\n class=\"flex flex-col gap-2 p-2\"\r\n [attr.aria-label]=\"params()['loadingLabel']\"\r\n >\r\n <p-skeleton height=\"1.5rem\" />\r\n <p-skeleton height=\"1.5rem\" />\r\n <p-skeleton height=\"1.5rem\" />\r\n </div>\r\n } @else {\r\n @for (action of menu(); track $index) {\r\n @if (firstDestructive($index)) {\r\n <hr\r\n class=\"my-1 border-0 border-t border-surface-200 dark:border-surface-700\"\r\n />\r\n }\r\n <mt-button\r\n [icon]=\"action.icon\"\r\n [label]=\"action.label || action.tooltip\"\r\n [severity]=\"action.color || 'secondary'\"\r\n variant=\"text\"\r\n size=\"small\"\r\n [loading]=\"busy(action)\"\r\n (click)=\"run(action, $event); popover.hide()\"\r\n />\r\n }\r\n }\r\n </div>\r\n </p-popover>\r\n}\r\n", styles: [":host{display:flex;align-items:center;justify-content:center;gap:4px;height:100%}\n"] }]
1455
1454
  }], propDecorators: { params: [{ type: i0.Input, args: [{ isSignal: true, alias: "params", required: true }] }] } });
1456
1455
  /** The standard row-actions control column, pinned at the end edge (menu-only header). */
1457
1456
  function mtActionsColumn(options) {
@@ -1489,11 +1488,11 @@ class MtTemplateCell {
1489
1488
  params = input.required(...(ngDevMode ? [{ debugName: "params" }] : /* istanbul ignore next */ []));
1490
1489
  template = computed(() => this.params()['template'], ...(ngDevMode ? [{ debugName: "template" }] : /* istanbul ignore next */ []));
1491
1490
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MtTemplateCell, deps: [], target: i0.ɵɵFactoryTarget.Component });
1492
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: MtTemplateCell, isStandalone: true, selector: "mt-template-cell", inputs: { params: { classPropertyName: "params", publicName: "params", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "@if (!params().node.group && !params().node.footer && template()) {\n <ng-container\n [ngTemplateOutlet]=\"template()!\"\n [ngTemplateOutletContext]=\"{ $implicit: params().data }\"\n />\n} @else {\n {{ params().valueFormatted }}\n}\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1491
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: MtTemplateCell, isStandalone: true, selector: "mt-template-cell", inputs: { params: { classPropertyName: "params", publicName: "params", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "@if (!params().node.group && !params().node.footer && template()) {\r\n <ng-container\r\n [ngTemplateOutlet]=\"template()!\"\r\n [ngTemplateOutletContext]=\"{ $implicit: params().data }\"\r\n />\r\n} @else {\r\n {{ params().valueFormatted }}\r\n}\r\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1493
1492
  }
1494
1493
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MtTemplateCell, decorators: [{
1495
1494
  type: Component,
1496
- args: [{ selector: 'mt-template-cell', imports: [NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (!params().node.group && !params().node.footer && template()) {\n <ng-container\n [ngTemplateOutlet]=\"template()!\"\n [ngTemplateOutletContext]=\"{ $implicit: params().data }\"\n />\n} @else {\n {{ params().valueFormatted }}\n}\n" }]
1495
+ args: [{ selector: 'mt-template-cell', imports: [NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (!params().node.group && !params().node.footer && template()) {\r\n <ng-container\r\n [ngTemplateOutlet]=\"template()!\"\r\n [ngTemplateOutletContext]=\"{ $implicit: params().data }\"\r\n />\r\n} @else {\r\n {{ params().valueFormatted }}\r\n}\r\n" }]
1497
1496
  }], propDecorators: { params: [{ type: i0.Input, args: [{ isSignal: true, alias: "params", required: true }] }] } });
1498
1497
 
1499
1498
  function isEntity(value) {