@masterteam/data-table 0.0.5 → 0.0.7

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.
@@ -1,10 +1,11 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, computed, ChangeDetectionStrategy, ViewEncapsulation, Component, inject, Injectable, output, untracked } from '@angular/core';
2
+ import { input, computed, ChangeDetectionStrategy, ViewEncapsulation, Component, inject, Injectable, output, viewChild, untracked } from '@angular/core';
3
3
  import { currencyUnitOf, EntityPreview, EntityText, EntityRuntimeContextStore } from '@masterteam/components/entities';
4
4
  import { TableValueResolver, TableExportService, TableActionsMenu } from '@masterteam/components/table';
5
- import { AUTO_GROUP_COLUMN_ID, applyGridViewState, captureGridViewState, MtDataGridComponent } from '@masterteam/data-grid';
5
+ import { AUTO_GROUP_COLUMN_ID, MtDataGridComponent, applyGridViewState, captureGridViewState } from '@masterteam/data-grid';
6
6
  import { toSignal } from '@angular/core/rxjs-interop';
7
7
  import { TranslocoService } from '@jsverse/transloco';
8
+ import { observeOn, asapScheduler } from 'rxjs';
8
9
  import { EmptyState } from '@masterteam/components/empty-state';
9
10
  import { Button } from '@masterteam/components/button';
10
11
  import { ConfirmationService } from '@masterteam/components/confirmation';
@@ -306,26 +307,26 @@ class MtDataTableEntityCell {
306
307
  : null;
307
308
  }
308
309
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MtDataTableEntityCell, deps: [], target: i0.ɵɵFactoryTarget.Component });
309
- 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) {
310
- @if (simpleText()) {
311
- <mt-entity-text [data]="value" />
312
- } @else {
313
- <mt-entity-preview [data]="value" attachmentShape="compact" />
314
- }
315
- } @else {
316
- {{ params().valueFormatted }}
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 }}
317
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 });
318
319
  }
319
320
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MtDataTableEntityCell, decorators: [{
320
321
  type: Component,
321
- 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) {
322
- @if (simpleText()) {
323
- <mt-entity-text [data]="value" />
324
- } @else {
325
- <mt-entity-preview [data]="value" attachmentShape="compact" />
326
- }
327
- } @else {
328
- {{ params().valueFormatted }}
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 }}
329
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"] }]
330
331
  }], propDecorators: { params: [{ type: i0.Input, args: [{ isSignal: true, alias: "params", required: true }] }] } });
331
332
  /** Optional native export callback: preserves typed numbers/dates and exports entity labels. */
@@ -872,7 +873,12 @@ class MtTableText {
872
873
  initialValue: this.transloco.getActiveLang(),
873
874
  equal: () => false,
874
875
  });
875
- translationEvents = toSignal(this.transloco.events$);
876
+ /**
877
+ * Delivered on the microtask queue: a translation can load synchronously while a template
878
+ * renders (a `transloco` pipe asking for it, e.g. the standard grid's Export / Print
879
+ * buttons), and writing this signal during render throws NG0600.
880
+ */
881
+ translationEvents = toSignal(this.transloco.events$.pipe(observeOn(asapScheduler)));
876
882
  gridLocale = computed(() => {
877
883
  this.translationEvents();
878
884
  const language = this.language();
@@ -1027,14 +1033,11 @@ const EXPORT_FORMATS = [
1027
1033
  'excel',
1028
1034
  'pdf',
1029
1035
  ];
1030
- const STATUS_BAR = {
1031
- panels: ['totalAndFilteredRowCount', 'selectedRowCount', 'aggregation'],
1032
- };
1033
1036
  /**
1034
- * A server page holds one page of rows, so the grid's own row count would count that page
1035
- * only; the pager already shows the server total.
1037
+ * Only the panels that can hide, so the bar appears for a selection or a range and takes no
1038
+ * space otherwise. The row count lives in the top strip (`showRowCount`).
1036
1039
  */
1037
- const SERVER_STATUS_BAR = {
1040
+ const STATUS_BAR = {
1038
1041
  panels: ['selectedRowCount', 'aggregation'],
1039
1042
  };
1040
1043
  /** mt-table's rows-per-page choices and default, so every migrated page keeps them. */
@@ -1168,7 +1171,6 @@ class MtStandardGridComponent {
1168
1171
  }), ...(ngDevMode ? [{ debugName: "exportParams" }] : /* istanbul ignore next */ []));
1169
1172
  // Template `?.` yields null; the grid needs undefined for client-side paging.
1170
1173
  gridPageSize = computed(() => this.server()?.pageSize ?? this.pageSize(), ...(ngDevMode ? [{ debugName: "gridPageSize" }] : /* istanbul ignore next */ []));
1171
- gridStatusBar = computed(() => this.server() ? SERVER_STATUS_BAR : STATUS_BAR, ...(ngDevMode ? [{ debugName: "gridStatusBar" }] : /* istanbul ignore next */ []));
1172
1174
  excelButton = computed(() => this.exportButtons() && this.excelAllowed(), ...(ngDevMode ? [{ debugName: "excelButton" }] : /* istanbul ignore next */ []));
1173
1175
  printButton = computed(() => this.exportButtons() &&
1174
1176
  this.exportable() &&
@@ -1198,9 +1200,15 @@ class MtStandardGridComponent {
1198
1200
  chartTitle = computed(() => this.chartContext() ?? this.label(), ...(ngDevMode ? [{ debugName: "chartTitle" }] : /* istanbul ignore next */ []));
1199
1201
  csvAllowed = computed(() => this.exportable() && this.exportFormats().includes('csv'), ...(ngDevMode ? [{ debugName: "csvAllowed" }] : /* istanbul ignore next */ []));
1200
1202
  excelAllowed = computed(() => this.exportable() && this.exportFormats().includes('excel'), ...(ngDevMode ? [{ debugName: "excelAllowed" }] : /* istanbul ignore next */ []));
1203
+ statusBar = STATUS_BAR;
1201
1204
  pageSizes = PAGE_SIZES;
1202
1205
  fit = { type: 'fitGridWidth' };
1203
1206
  api = null;
1207
+ grid = viewChild(MtDataGridComponent, ...(ngDevMode ? [{ debugName: "grid" }] : /* istanbul ignore next */ []));
1208
+ /** The grid's api: from gridReady, else straight from the grid (a click can come first). */
1209
+ gridApi() {
1210
+ return this.api ?? this.grid()?.api ?? null;
1211
+ }
1204
1212
  identities = new WeakMap();
1205
1213
  nextIdentity = 0;
1206
1214
  identity(row) {
@@ -1237,7 +1245,7 @@ class MtStandardGridComponent {
1237
1245
  this.onViewChange();
1238
1246
  }
1239
1247
  /** The Export menu and the Export / Print buttons: the owner's exporter, else the grid's. */
1240
- exportAs(format, api = this.api) {
1248
+ exportAs(format, api = this.gridApi()) {
1241
1249
  if (!api)
1242
1250
  return;
1243
1251
  const exporter = this.exporter();
@@ -1274,7 +1282,7 @@ class MtStandardGridComponent {
1274
1282
  /** Toggles a one-value set filter from the clicked cell; false when the cell does not filter. */
1275
1283
  filterByCell(event) {
1276
1284
  const column = event.colDef;
1277
- const api = this.api;
1285
+ const api = this.gridApi();
1278
1286
  // A column's id is its colId, else its field (the grid's own rule).
1279
1287
  const colId = column?.colId ?? column?.field;
1280
1288
  if (!api || !column || !colId || column.filter !== 'set')
@@ -1338,12 +1346,12 @@ class MtStandardGridComponent {
1338
1346
  return rowItems.length ? [...items, 'separator', ...rowItems] : items;
1339
1347
  };
1340
1348
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MtStandardGridComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1341
- 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" }, 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 });
1349
+ 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 });
1342
1350
  }
1343
1351
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MtStandardGridComponent, decorators: [{
1344
1352
  type: Component,
1345
- 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"] }]
1346
- }], 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"] }] } });
1353
+ 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"] }]
1354
+ }], 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 }] }] } });
1347
1355
 
1348
1356
  /** The standard row-actions column id. */
1349
1357
  const MT_ACTIONS_COLUMN_ID = '$actions';
@@ -1433,14 +1441,14 @@ class MtActionsCell {
1433
1441
  this.confirmation.confirm(config);
1434
1442
  }
1435
1443
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MtActionsCell, deps: [], target: i0.ɵɵFactoryTarget.Component });
1436
- 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 });
1444
+ 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 });
1437
1445
  }
1438
1446
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MtActionsCell, decorators: [{
1439
1447
  type: Component,
1440
1448
  args: [{ selector: 'mt-actions-cell', imports: [Button, Popover, Skeleton], changeDetection: ChangeDetectionStrategy.OnPush, host: {
1441
1449
  '(click)': '$event.stopPropagation()',
1442
1450
  '(pointerdown)': '$event.stopPropagation()',
1443
- }, 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"] }]
1451
+ }, 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"] }]
1444
1452
  }], propDecorators: { params: [{ type: i0.Input, args: [{ isSignal: true, alias: "params", required: true }] }] } });
1445
1453
  /** The standard row-actions control column, pinned at the end edge (menu-only header). */
1446
1454
  function mtActionsColumn(options) {
@@ -1478,11 +1486,11 @@ class MtTemplateCell {
1478
1486
  params = input.required(...(ngDevMode ? [{ debugName: "params" }] : /* istanbul ignore next */ []));
1479
1487
  template = computed(() => this.params()['template'], ...(ngDevMode ? [{ debugName: "template" }] : /* istanbul ignore next */ []));
1480
1488
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MtTemplateCell, deps: [], target: i0.ɵɵFactoryTarget.Component });
1481
- 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 });
1489
+ 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 });
1482
1490
  }
1483
1491
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MtTemplateCell, decorators: [{
1484
1492
  type: Component,
1485
- 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" }]
1493
+ 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" }]
1486
1494
  }], propDecorators: { params: [{ type: i0.Input, args: [{ isSignal: true, alias: "params", required: true }] }] } });
1487
1495
 
1488
1496
  function isEntity(value) {