@masterteam/data-table 0.0.10 → 0.0.11

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 +1 @@
1
- {"version":3,"file":"masterteam-data-table-config.mjs","sources":["../../../../packages/masterteam/data-table/config/public-api.ts","../../../../packages/masterteam/data-table/config/masterteam-data-table-config.ts"],"sourcesContent":["import {\n InjectionToken,\n makeEnvironmentProviders,\n type EnvironmentProviders,\n} from '@angular/core';\nimport type { MtChartState } from '@masterteam/data-grid';\n\n/*\n * Root configuration only. An application installs this at startup, so the\n * entry must not import the grid: anything it imports lands in the initial\n * bundle (type-only imports are erased). `@masterteam/data-table/legacy`\n * re-exports all of it.\n */\n\nexport interface MtTableScopeIdentity {\n readonly application: string;\n readonly tenant: string;\n readonly user: string;\n readonly actor: string;\n readonly template?: string | number | null;\n}\nexport interface MtDataTableConfiguration {\n readonly identity: () => MtTableScopeIdentity | null;\n readonly direction?: () => 'ltr' | 'rtl';\n}\n\nexport const MT_DATA_TABLE_CONFIGURATION =\n new InjectionToken<MtDataTableConfiguration>('MT_DATA_TABLE_CONFIGURATION', {\n providedIn: 'root',\n factory: () => ({ identity: () => null }),\n });\n\n/** Root installation of the data-table configuration (portal and Studio). */\nexport function provideMTDataTables(\n configuration: MtDataTableConfiguration | (() => MtDataTableConfiguration),\n): EnvironmentProviders {\n return makeEnvironmentProviders([\n typeof configuration === 'function'\n ? { provide: MT_DATA_TABLE_CONFIGURATION, useFactory: configuration }\n : { provide: MT_DATA_TABLE_CONFIGURATION, useValue: configuration },\n ]);\n}\n\n/** One grid on a page: its level, optional module and role (e.g. `client-list-native`). */\nexport interface MtTableViewIdentity {\n readonly level: number | string;\n readonly module?: string | null;\n readonly role: string;\n}\n\n/** The browser-storage key of a view's preferences; charts append `:charts:<scope>`. */\nexport function mtTablePreferenceKey(\n identity: MtTableScopeIdentity,\n view: MtTableViewIdentity,\n): string {\n return `mt-table:v1:${JSON.stringify([identity.application, identity.tenant, identity.user, identity.actor, identity.template ?? null, view.level, view.module ?? null, view.role])}`;\n}\n\n/** The charts of one grid: its view identity and a scope within it (`'default'`). */\nexport interface MtGridChartStoreKey {\n readonly view: MtTableViewIdentity;\n readonly scope: string;\n}\n\n/**\n * Where `mt-standard-grid` keeps its charts (`chartPersistence`). The default is the\n * browser-only `MtLocalChartStore`; `provideMTGridServerCharts()` installs the backend one.\n */\nexport interface MtGridChartStore {\n /**\n * The saved charts, oldest first. A store that also asks a server answers with its local\n * copy, then calls `onRemoteChange` once if the server holds a different set and nothing\n * was written for the key in the meantime; the grid adopts it only when the user has not\n * changed a chart since the restore.\n */\n read(\n key: MtGridChartStoreKey,\n onRemoteChange?: (charts: readonly MtChartState[]) => void,\n ): Promise<readonly MtChartState[]>;\n /** Replaces the saved charts; fire-and-forget (the grid debounces its calls). */\n write(key: MtGridChartStoreKey, charts: readonly MtChartState[]): void;\n /** Removes the saved charts. */\n clear(key: MtGridChartStoreKey): void;\n /** Optional: warms a cache for many keys at once, e.g. every grid of a level. */\n prefetch?(hint: { readonly level: number | string }): Promise<void>;\n}\n\n/** The chart store of every `mt-standard-grid` below it; `MtLocalChartStore` when absent. */\nexport const MT_GRID_CHART_STORE = new InjectionToken<MtGridChartStore>(\n 'MT_GRID_CHART_STORE',\n);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;MA0Ba,2BAA2B,GACtC,IAAI,cAAc,CAA2B,6BAA6B,EAAE;AAC1E,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,IAAI,EAAE,CAAC;AAC1C,CAAA;AAEH;AACM,SAAU,mBAAmB,CACjC,aAA0E,EAAA;AAE1E,IAAA,OAAO,wBAAwB,CAAC;QAC9B,OAAO,aAAa,KAAK;cACrB,EAAE,OAAO,EAAE,2BAA2B,EAAE,UAAU,EAAE,aAAa;cACjE,EAAE,OAAO,EAAE,2BAA2B,EAAE,QAAQ,EAAE,aAAa,EAAE;AACtE,KAAA,CAAC;AACJ;AASA;AACM,SAAU,oBAAoB,CAClC,QAA8B,EAC9B,IAAyB,EAAA;IAEzB,OAAO,CAAA,YAAA,EAAe,IAAI,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,WAAW,EAAE,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,QAAQ,IAAI,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;AACvL;AA+BA;MACa,mBAAmB,GAAG,IAAI,cAAc,CACnD,qBAAqB;;ACzFvB;;AAEG;;;;"}
1
+ {"version":3,"file":"masterteam-data-table-config.mjs","sources":["../../../../packages/masterteam/data-table/config/public-api.ts","../../../../packages/masterteam/data-table/config/masterteam-data-table-config.ts"],"sourcesContent":["import {\r\n InjectionToken,\r\n makeEnvironmentProviders,\r\n type EnvironmentProviders,\r\n} from '@angular/core';\r\nimport type { MtChartState } from '@masterteam/data-grid';\r\n\r\n/*\r\n * Root configuration only. An application installs this at startup, so the\r\n * entry must not import the grid: anything it imports lands in the initial\r\n * bundle (type-only imports are erased). `@masterteam/data-table/legacy`\r\n * re-exports all of it.\r\n */\r\n\r\nexport interface MtTableScopeIdentity {\r\n readonly application: string;\r\n readonly tenant: string;\r\n readonly user: string;\r\n readonly actor: string;\r\n readonly template?: string | number | null;\r\n}\r\nexport interface MtDataTableConfiguration {\r\n readonly identity: () => MtTableScopeIdentity | null;\r\n readonly direction?: () => 'ltr' | 'rtl';\r\n}\r\n\r\nexport const MT_DATA_TABLE_CONFIGURATION =\r\n new InjectionToken<MtDataTableConfiguration>('MT_DATA_TABLE_CONFIGURATION', {\r\n providedIn: 'root',\r\n factory: () => ({ identity: () => null }),\r\n });\r\n\r\n/** Root installation of the data-table configuration (portal and Studio). */\r\nexport function provideMTDataTables(\r\n configuration: MtDataTableConfiguration | (() => MtDataTableConfiguration),\r\n): EnvironmentProviders {\r\n return makeEnvironmentProviders([\r\n typeof configuration === 'function'\r\n ? { provide: MT_DATA_TABLE_CONFIGURATION, useFactory: configuration }\r\n : { provide: MT_DATA_TABLE_CONFIGURATION, useValue: configuration },\r\n ]);\r\n}\r\n\r\n/** One grid on a page: its level, optional module and role (e.g. `client-list-native`). */\r\nexport interface MtTableViewIdentity {\r\n readonly level: number | string;\r\n readonly module?: string | null;\r\n readonly role: string;\r\n}\r\n\r\n/** The browser-storage key of a view's preferences; charts append `:charts:<scope>`. */\r\nexport function mtTablePreferenceKey(\r\n identity: MtTableScopeIdentity,\r\n view: MtTableViewIdentity,\r\n): string {\r\n return `mt-table:v1:${JSON.stringify([identity.application, identity.tenant, identity.user, identity.actor, identity.template ?? null, view.level, view.module ?? null, view.role])}`;\r\n}\r\n\r\n/** The charts of one grid: its view identity and a scope within it (`'default'`). */\r\nexport interface MtGridChartStoreKey {\r\n readonly view: MtTableViewIdentity;\r\n readonly scope: string;\r\n}\r\n\r\n/**\r\n * Where `mt-standard-grid` keeps its charts (`chartPersistence`). The default is the\r\n * browser-only `MtLocalChartStore`; `provideMTGridServerCharts()` installs the backend one.\r\n */\r\nexport interface MtGridChartStore {\r\n /**\r\n * The saved charts, oldest first. A store that also asks a server answers with its local\r\n * copy, then calls `onRemoteChange` once if the server holds a different set and nothing\r\n * was written for the key in the meantime; the grid adopts it only when the user has not\r\n * changed a chart since the restore.\r\n */\r\n read(\r\n key: MtGridChartStoreKey,\r\n onRemoteChange?: (charts: readonly MtChartState[]) => void,\r\n ): Promise<readonly MtChartState[]>;\r\n /** Replaces the saved charts; fire-and-forget (the grid debounces its calls). */\r\n write(key: MtGridChartStoreKey, charts: readonly MtChartState[]): void;\r\n /** Removes the saved charts. */\r\n clear(key: MtGridChartStoreKey): void;\r\n /** Optional: warms a cache for many keys at once, e.g. every grid of a level. */\r\n prefetch?(hint: { readonly level: number | string }): Promise<void>;\r\n}\r\n\r\n/** The chart store of every `mt-standard-grid` below it; `MtLocalChartStore` when absent. */\r\nexport const MT_GRID_CHART_STORE = new InjectionToken<MtGridChartStore>(\r\n 'MT_GRID_CHART_STORE',\r\n);\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;MA0Ba,2BAA2B,GACtC,IAAI,cAAc,CAA2B,6BAA6B,EAAE;AAC1E,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,IAAI,EAAE,CAAC;AAC1C,CAAA;AAEH;AACM,SAAU,mBAAmB,CACjC,aAA0E,EAAA;AAE1E,IAAA,OAAO,wBAAwB,CAAC;QAC9B,OAAO,aAAa,KAAK;cACrB,EAAE,OAAO,EAAE,2BAA2B,EAAE,UAAU,EAAE,aAAa;cACjE,EAAE,OAAO,EAAE,2BAA2B,EAAE,QAAQ,EAAE,aAAa,EAAE;AACtE,KAAA,CAAC;AACJ;AASA;AACM,SAAU,oBAAoB,CAClC,QAA8B,EAC9B,IAAyB,EAAA;IAEzB,OAAO,CAAA,YAAA,EAAe,IAAI,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,WAAW,EAAE,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,QAAQ,IAAI,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;AACvL;AA+BA;MACa,mBAAmB,GAAG,IAAI,cAAc,CACnD,qBAAqB;;ACzFvB;;AAEG;;;;"}
@@ -1307,7 +1307,7 @@ class MtDataTableComponent {
1307
1307
  }
1308
1308
  }
1309
1309
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MtDataTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1310
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: MtDataTableComponent, isStandalone: true, selector: "mt-data-table", inputs: { rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: true, transformFunction: null }, getRowId: { classPropertyName: "getRowId", publicName: "getRowId", isSignal: true, isRequired: true, transformFunction: null }, source: { classPropertyName: "source", publicName: "source", isSignal: true, isRequired: false, transformFunction: null }, profile: { classPropertyName: "profile", publicName: "profile", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, showHeading: { classPropertyName: "showHeading", publicName: "showHeading", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, rowHeight: { classPropertyName: "rowHeight", publicName: "rowHeight", isSignal: true, isRequired: false, transformFunction: null }, fitColumns: { classPropertyName: "fitColumns", publicName: "fitColumns", isSignal: true, isRequired: false, transformFunction: null }, rowActions: { classPropertyName: "rowActions", publicName: "rowActions", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, masterDetail: { classPropertyName: "masterDetail", publicName: "masterDetail", isSignal: true, isRequired: false, transformFunction: null }, detailRenderer: { classPropertyName: "detailRenderer", publicName: "detailRenderer", isSignal: true, isRequired: false, transformFunction: null }, detailRendererParams: { classPropertyName: "detailRendererParams", publicName: "detailRendererParams", isSignal: true, isRequired: false, transformFunction: null }, isRowMaster: { classPropertyName: "isRowMaster", publicName: "isRowMaster", isSignal: true, isRequired: false, transformFunction: null }, detailAutoHeight: { classPropertyName: "detailAutoHeight", publicName: "detailAutoHeight", isSignal: true, isRequired: false, transformFunction: null }, detailHeight: { classPropertyName: "detailHeight", publicName: "detailHeight", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, groupable: { classPropertyName: "groupable", publicName: "groupable", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, viewIdentity: { classPropertyName: "viewIdentity", publicName: "viewIdentity", isSignal: true, isRequired: false, transformFunction: null }, exporter: { classPropertyName: "exporter", publicName: "exporter", isSignal: true, isRequired: false, transformFunction: null }, exportFormats: { classPropertyName: "exportFormats", publicName: "exportFormats", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { columnLoadRequested: "columnLoadRequested", rowClick: "rowClick", selectionChange: "selectionChange", focusChange: "focusChange", viewStateChange: "viewStateChange" }, host: { listeners: { "keydown.escape": "escape($event)" }, properties: { "attr.dir": "direction()", "class.mt-data-table-focused": "focused()", "style.min-height.px": "focused() ? normalHeight() : null" } }, viewQueries: [{ propertyName: "grid", first: true, predicate: (MtDataGridComponent), descendants: true, isSignal: true }, { propertyName: "chartDock", first: true, predicate: ["chartDock"], descendants: true, isSignal: true }], ngImport: i0, template: "<section\r\n class=\"mt-data-table-surface\"\r\n [attr.role]=\"focused() ? 'dialog' : null\"\r\n [attr.aria-modal]=\"focused() ? true : null\"\r\n [attr.aria-label]=\"title()\"\r\n [cdkTrapFocus]=\"focused()\"\r\n [cdkTrapFocusAutoCapture]=\"focused()\"\r\n>\r\n @if (profile() !== \"embedded\" || focused()) {\r\n <div class=\"mt-data-table-toolbar\">\r\n @if (showHeading() && title()) {\r\n <div class=\"mt-data-table-heading\">\r\n <strong>{{ title() }}</strong\r\n ><span>{{ count() }} {{ text.text(\"rows\") }}</span>\r\n </div>\r\n }\r\n <label class=\"mt-data-table-search\">\r\n <span class=\"mt-data-table-sr-only\">{{ text.text(\"search\") }}</span>\r\n <mt-text-field\r\n icon=\"general.search-md\"\r\n [placeholder]=\"text.text('search')\"\r\n [ngModel]=\"search()\"\r\n [readonly]=\"source()?.capabilities?.filter === false\"\r\n (ngModelChange)=\"setSearch($event)\"\r\n />\r\n </label>\r\n <div\r\n class=\"mt-data-table-tools\"\r\n role=\"group\"\r\n [attr.aria-label]=\"text.text('actions')\"\r\n >\r\n <mt-button\r\n [label]=\"text.text('columns')\"\r\n icon=\"layout.columns-03\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n (click)=\"columnsPopup.toggle($event)\"\r\n />\r\n <p-popover #columnsPopup appendTo=\"body\">\r\n <div\r\n class=\"mt-data-table-menu-content\"\r\n role=\"group\"\r\n [attr.aria-label]=\"text.text('columns')\"\r\n >\r\n @for (column of columnChoices(); track column.id) {\r\n <label\r\n ><input\r\n type=\"checkbox\"\r\n [checked]=\"column.visible\"\r\n [disabled]=\"column.locked\"\r\n (change)=\"\r\n changeColumn(column.id, $any($event.target).checked)\r\n \"\r\n />{{ column.label }}</label\r\n >\r\n }\r\n <mt-button\r\n [label]=\"text.text('reset')\"\r\n severity=\"secondary\"\r\n variant=\"text\"\r\n size=\"small\"\r\n (click)=\"resetView()\"\r\n />\r\n </div>\r\n </p-popover>\r\n @if (groupable() && complete()) {\r\n <mt-button\r\n [label]=\"text.text('groupBy')\"\r\n icon=\"layout.columns-03\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n (click)=\"groupMenu.toggle($event)\"\r\n />\r\n <mt-menu\r\n #groupMenu\r\n [model]=\"groupingItems()\"\r\n [ariaLabel]=\"text.text('groupBy')\"\r\n />\r\n }\r\n @if (analysisEnabled()) {\r\n <mt-button\r\n [label]=\"text.text('analysis')\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n (click)=\"openAnalysis()\"\r\n />\r\n <mt-button\r\n [label]=\"text.text('chart')\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n [disabled]=\"!chartsEnabled()\"\r\n (click)=\"chartTable()\"\r\n />\r\n }\r\n @if (exportFormats().length && exportAllowed()) {\r\n <mt-button\r\n [label]=\"text.text('export')\"\r\n icon=\"general.download-01\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n [loading]=\"exporting()\"\r\n (click)=\"exportMenu.toggle($event)\"\r\n />\r\n <mt-menu\r\n #exportMenu\r\n [model]=\"exportItems()\"\r\n [ariaLabel]=\"text.text('export')\"\r\n />\r\n }\r\n @if (profile() === \"studio\") {\r\n <mt-button\r\n [label]=\"text.text('closeFocus')\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n [hidden]=\"!focused()\"\r\n (click)=\"closeFocus()\"\r\n />\r\n <mt-button\r\n [label]=\"text.text('focus')\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n [hidden]=\"focused()\"\r\n (click)=\"focus($event)\"\r\n />\r\n }\r\n <ng-content select=\"[tableActions]\" />\r\n </div>\r\n </div>\r\n }\r\n @if (error() || exportFailed()) {\r\n <div class=\"mt-data-table-error\" role=\"alert\">\r\n {{ text.text(error() ? \"failed\" : \"exportFailed\") }}\r\n @if (error()) {\r\n <mt-button\r\n [label]=\"text.text('retry')\"\r\n severity=\"secondary\"\r\n variant=\"text\"\r\n size=\"small\"\r\n (click)=\"retry()\"\r\n />\r\n }\r\n </div>\r\n }\r\n @if (profile() === \"studio\" && !complete()) {\r\n <p class=\"mt-data-table-hint\">{{ text.text(\"incomplete\") }}</p>\r\n }\r\n <div class=\"mt-data-table-body\">\r\n <mt-data-grid\r\n [rowData]=\"displayedRows()\"\r\n [columnDefs]=\"resolvedColumns()\"\r\n [getRowId]=\"getRowId()\"\r\n [height]=\"focused() ? focusHeight() : height()\"\r\n [rowHeight]=\"rowHeight()\"\r\n [direction]=\"direction()\"\r\n [localeText]=\"text.gridLocale()\"\r\n [ariaLabel]=\"title()\"\r\n [loading]=\"busy()\"\r\n [loadingText]=\"text.text('loading')\"\r\n [noRowsText]=\"text.text('noRows')\"\r\n [dataProcessing]=\"complete() ? 'client' : 'external'\"\r\n [quickFilterText]=\"source()?.processing === 'server' ? '' : search()\"\r\n [rowSelection]=\"selection()\"\r\n [cellSelection]=\"profile() === 'studio'\"\r\n [suppressCutToClipboard]=\"true\"\r\n [getContextMenuItems]=\"contextMenu\"\r\n [sideBar]=\"sideBar()\"\r\n [rowGroupPanelShow]=\"analysisEnabled() ? 'onlyWhenGrouping' : 'never'\"\r\n [pivotPanelShow]=\"analysisEnabled() ? 'onlyWhenPivoting' : 'never'\"\r\n [enableCharts]=\"chartsEnabled()\"\r\n [masterDetail]=\"masterDetail()\"\r\n [detailCellRenderer]=\"detailRenderer()\"\r\n [detailCellRendererParams]=\"detailRendererParams()\"\r\n [isRowMaster]=\"isRowMaster()\"\r\n [detailRowAutoHeight]=\"detailAutoHeight()\"\r\n [detailRowHeight]=\"detailHeight()\"\r\n [pagination]=\"clientPaging()\"\r\n [paginationPageSize]=\"100\"\r\n [suppressPdfExport]=\"true\"\r\n [suppressCsvExport]=\"!complete() || !!exporter()\"\r\n [suppressExcelExport]=\"!complete() || !!exporter()\"\r\n (sortChanged)=\"sorted($event)\"\r\n (filterChanged)=\"filtered()\"\r\n (rowClicked)=\"$event.node.data && rowClick.emit($event.node.data)\"\r\n (selectionChanged)=\"selected()\"\r\n (columnVisible)=\"columnsVisible($event.columns)\"\r\n (columnRowGroupChanged)=\"analysisFieldsChanged()\"\r\n (columnValueChanged)=\"analysisFieldsChanged()\"\r\n (columnPivotChanged)=\"analysisFieldsChanged()\"\r\n />\r\n <div\r\n #chartDock\r\n class=\"mt-data-table-chart-dock\"\r\n [class.mt-data-table-chart-open]=\"chartOpen() && chartsEnabled()\"\r\n ></div>\r\n </div>\r\n @if (pagingInfo(); as paging) {\r\n <div class=\"mt-data-table-pagination\">\r\n @if (complete()) {\r\n <label\r\n >{{ text.text(\"pageSize\") }}\r\n <select\r\n [value]=\"paging.size\"\r\n (change)=\"pageSize(+$any($event.target).value)\"\r\n >\r\n @for (size of [20, 50, 100]; track size) {\r\n <option [value]=\"size\">{{ number(size) }}</option>\r\n }\r\n </select></label\r\n >\r\n }\r\n <mt-button\r\n [label]=\"text.text('previous')\"\r\n severity=\"secondary\"\r\n variant=\"text\"\r\n size=\"small\"\r\n [disabled]=\"busy() || paging.page === 0\"\r\n (click)=\"page(-1)\"\r\n />\r\n <bdi\r\n >{{ number(paging.first) }}\u2013{{ number(paging.last) }} /\r\n {{ number(paging.total) }}</bdi\r\n >\r\n <label\r\n >{{ text.text(\"page\") }}\r\n <input\r\n type=\"number\"\r\n min=\"1\"\r\n [max]=\"paging.pages\"\r\n [value]=\"paging.page + 1\"\r\n [disabled]=\"busy()\"\r\n (change)=\"pageNumber(+$any($event.target).value)\"\r\n /></label>\r\n <mt-button\r\n class=\"mt-data-table-next\"\r\n [label]=\"text.text('next')\"\r\n severity=\"secondary\"\r\n variant=\"text\"\r\n size=\"small\"\r\n [disabled]=\"busy() || paging.page + 1 >= paging.pages\"\r\n (click)=\"page(1)\"\r\n />\r\n </div>\r\n }\r\n</section>\r\n", styles: [":host{display:block;min-width:0;color:var(--p-text-color, #25354a);font:inherit}.mt-data-table-surface{min-width:0;background:var(--p-content-background, #fff);border:1px solid var(--p-content-border-color, #e4e7ec);border-radius:var(--p-content-border-radius, 10px);overflow:hidden}.mt-data-table-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:16px;min-height:68px;box-sizing:border-box;border-bottom:1px solid var(--p-content-border-color, #e4e7ec)}.mt-data-table-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-inline-start:auto}.mt-data-table-search{display:block;flex:1 1 200px;max-width:300px;min-width:160px}.mt-data-table-search mt-text-field{min-width:0}:host ::ng-deep mt-data-grid{padding:0;border:0;border-radius:0}.mt-data-table-heading{display:flex;align-items:baseline;gap:8px;margin-inline-end:auto}.mt-data-table-heading span,.mt-data-table-hint{color:var(--p-text-muted-color, #667085);font-size:12px}.mt-data-table-search input,button,summary{min-height:34px;border:1px solid var(--p-content-border-color, #e4e7ec);border-radius:6px;background:var(--p-content-background, #fff);color:inherit;font:inherit;padding:6px 10px}button,summary{cursor:pointer;list-style:none;font-size:13px}button:hover,summary:hover{background:var(--p-content-hover-background, #f3f6f8)}button:disabled{opacity:.5;cursor:default}input:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--p-primary-color, #2aaec0);outline-offset:2px}.mt-data-table-menu{position:relative}.mt-data-table-menu-content{display:flex;flex-direction:column;min-width:210px;max-height:320px;overflow:auto;padding:2px}.mt-data-table-menu-content label{display:flex;align-items:center;gap:8px;padding:6px;font-size:13px}.mt-data-table-menu-content button{border:0;text-align:start}.mt-data-table-hint,.mt-data-table-error{margin:0;padding:8px 12px}.mt-data-table-error{display:flex;align-items:center;justify-content:space-between;color:var(--p-red-600, #b42318)}.mt-data-table-body{min-width:0}.mt-data-table-chart-dock{display:none;min-height:300px}.mt-data-table-chart-open{display:block}.mt-data-table-pagination{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:16px;padding:10px 12px;font-size:13px;border-top:1px solid var(--p-content-border-color, #e4e7ec)}.mt-data-table-pagination label{display:flex;align-items:center;gap:6px}.mt-data-table-pagination input{width:4.5em}.mt-data-table-pagination input,.mt-data-table-pagination select{box-sizing:border-box;padding:6px;min-height:34px;border:1px solid var(--p-content-border-color, #ddd);border-radius:6px;background:var(--p-content-background, white);color:inherit;font:inherit}:host ::ng-deep mt-data-grid>.mt-grid-main>mt-grid-pager{display:none}.mt-data-table-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host.mt-data-table-focused>.mt-data-table-surface{position:fixed;inset:var(--mt-data-table-focus-inset, 16px);z-index:var(--mt-data-table-focus-z-index, 1000);overflow:auto;box-shadow:0 12px 60px #0005;border-radius:var(--p-content-border-radius, 6px);display:flex;flex-direction:column}:host.mt-data-table-focused .mt-data-table-body{display:flex;flex-direction:column;flex:1;min-height:120px;overflow:auto}:host.mt-data-table-focused .mt-data-table-chart-open{height:max(300px,45%);flex:0 0 max(300px,45%);overflow:auto}:host.mt-data-table-focused .mt-data-table-toolbar,:host.mt-data-table-focused .mt-data-table-pagination{flex-shrink:0}@media(max-width:640px){.mt-data-table-menu-content{min-width:0;max-width:calc(100vw - 64px);max-height:60dvh}.mt-data-table-search{width:100%;max-width:none;flex-basis:100%}.mt-data-table-search input{box-sizing:border-box;width:100%}:host.mt-data-table-focused>.mt-data-table-surface{inset:4px}}\n"], dependencies: [{ kind: "component", type: MtDataGridComponent, selector: "mt-data-grid", inputs: ["rowData", "dataProcessing", "columnDefs", "getRowId", "height", "autoHeight", "autoHeightMaxRows", "autoHeightMinRows", "rowHeight", "getRowClass", "animateRows", "headerHeight", "groupHeaderHeight", "direction", "localeText", "localeTextResolver", "ariaLabel", "loading", "noRowsText", "loadingText", "noRowsTemplate", "autoSizeStrategy", "columnMenu", "mainMenuItems", "autoSizePadding", "quickFilterText", "showQuickFilter", "showRowCount", "includeHiddenColumnsInQuickFilter", "quickFilterParser", "quickFilterMatcher", "cacheQuickFilter", "applyQuickFilterBeforePivotOrAgg", "filtersToolPanelDef", "isExternalFilterPresent", "doesExternalFilterPass", "floatingFiltersHeight", "rowSelection", "selectionColumnDef", "rowNumbers", "rowDragManaged", "rowDragEntireRow", "rowDragMultiRow", "suppressMoveWhenRowDragging", "cellSelection", "statusBar", "suppressContextMenu", "allowContextMenuWithControlKey", "preventDefaultOnContextMenu", "getContextMenuItems", "suppressCsvExport", "suppressExcelExport", "suppressPdfExport", "defaultPdfExportParams", "excelStyles", "processCellForClipboard", "processHeaderForClipboard", "processGroupHeaderForClipboard", "copySelectedRows", "copyHeadersToClipboard", "copyGroupHeadersToClipboard", "clipboardDelimiter", "suppressCopyRowsToClipboard", "suppressCopySingleCellRanges", "suppressCutToClipboard", "defaultCsvExportParams", "defaultExcelExportParams", "groupDisplayType", "groupRowRenderer", "groupRowRendererParams", "suppressGroupRowsSticky", "groupHideOpenParents", "groupHideParentOfSingleChild", "groupRemoveSingleChildren", "groupRemoveLowestSingleChildren", "showOpenedGroup", "groupAggFiltering", "suppressAggFilteredOnly", "aggregateOnlyChangedColumns", "suppressColumnMoveAnimation", "pivotRowTotals", "pivotColumnGroupTotals", "pivotMaxGeneratedColumns", "pivotDefaultExpanded", "pivotSuppressAutoColumn", "suppressExpandablePivotGroups", "processPivotResultColDef", "processPivotResultColGroupDef", "processUnpinnedColumns", "rowGroupPanelShow", "pivotPanelShow", "pivotPanelHint", "groupDefaultExpanded", "autoGroupColumnDef", "groupTotalRow", "grandTotalRow", "aggFuncs", "suppressRowGroupHidesColumns", "suppressMakeColumnVisibleAfterUnGroup", "sideBar", "pivotMode", "suppressAggFuncInHeader", "enableCharts", "chartThemes", "customChartThemes", "chartToolPanelsDef", "chartThemeOverrides", "chartContext", "chartRecordsLabel", "getChartToolbarItems", "groupMaintainOrder", "treeData", "getDataPath", "masterDetail", "isRowMaster", "detailCellRenderer", "detailCellRendererParams", "detailRowHeight", "detailRowAutoHeight", "singleClickEdit", "suppressClickEdit", "stopEditingWhenCellsLoseFocus", "undoRedoCellEditing", "undoRedoCellEditingLimit", "pagination", "paginationPanelShow", "paginationPageSize", "paginationTotalRows", "paginationCurrentPage", "paginationPageSizeSelector", "rowGroupPanelSuppressSort"], outputs: ["displayedColumnsChanged", "columnEverythingChanged", "pivotMaxColumnsExceeded", "gridReady", "sortChanged", "cellFocused", "columnResized", "columnMoved", "columnPinned", "columnVisible", "columnGroupOpened", "filterChanged", "filterModified", "filterOpened", "rowSelected", "selectionChanged", "rowClicked", "rowDragEnter", "rowDragMove", "rowDragLeave", "rowDragEnd", "cellSelectionChanged", "contextMenuVisibleChanged", "rowGroupOpened", "columnRowGroupChanged", "expandOrCollapseAll", "cellEditingStarted", "cellEditingStopped", "cellValueChanged", "pasteStart", "pasteEnd", "fillStart", "fillEnd", "paginationChanged", "toolPanelVisibleChanged", "toolPanelSizeChanged", "columnValueChanged", "columnPivotChanged", "columnPivotModeChanged", "chartCreated", "chartDestroyed", "chartRangeSelectionChanged", "chartOptionsChanged", "chartStateChanged"] }, { kind: "directive", type: CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: Button, selector: "mt-button", inputs: ["icon", "label", "tooltip", "class", "type", "styleClass", "severity", "badge", "variant", "badgeSeverity", "size", "iconPos", "autofocus", "fluid", "raised", "rounded", "text", "plain", "outlined", "link", "disabled", "loading", "pInputs", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: TextField, selector: "mt-text-field", inputs: ["field", "hint", "label", "placeholder", "class", "type", "readonly", "pInputs", "required", "maxLength", "icon", "iconPosition"] }, { kind: "component", type: Menu, selector: "mt-menu", inputs: ["model", "popup", "appendTo", "style", "styleClass", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "ariaLabel", "ariaLabelledBy", "id", "tabindex", "activeItemId"], outputs: ["activeItemIdChange", "onShow", "onHide", "onBlur", "onFocus", "onItemSelect"] }, { kind: "component", type: Popover, selector: "p-popover", inputs: ["ariaLabel", "ariaLabelledBy", "dismissable", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions", "motionOptions"], outputs: ["onShow", "onHide"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1310
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: MtDataTableComponent, isStandalone: true, selector: "mt-data-table", inputs: { rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: true, transformFunction: null }, getRowId: { classPropertyName: "getRowId", publicName: "getRowId", isSignal: true, isRequired: true, transformFunction: null }, source: { classPropertyName: "source", publicName: "source", isSignal: true, isRequired: false, transformFunction: null }, profile: { classPropertyName: "profile", publicName: "profile", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, showHeading: { classPropertyName: "showHeading", publicName: "showHeading", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, rowHeight: { classPropertyName: "rowHeight", publicName: "rowHeight", isSignal: true, isRequired: false, transformFunction: null }, fitColumns: { classPropertyName: "fitColumns", publicName: "fitColumns", isSignal: true, isRequired: false, transformFunction: null }, rowActions: { classPropertyName: "rowActions", publicName: "rowActions", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, masterDetail: { classPropertyName: "masterDetail", publicName: "masterDetail", isSignal: true, isRequired: false, transformFunction: null }, detailRenderer: { classPropertyName: "detailRenderer", publicName: "detailRenderer", isSignal: true, isRequired: false, transformFunction: null }, detailRendererParams: { classPropertyName: "detailRendererParams", publicName: "detailRendererParams", isSignal: true, isRequired: false, transformFunction: null }, isRowMaster: { classPropertyName: "isRowMaster", publicName: "isRowMaster", isSignal: true, isRequired: false, transformFunction: null }, detailAutoHeight: { classPropertyName: "detailAutoHeight", publicName: "detailAutoHeight", isSignal: true, isRequired: false, transformFunction: null }, detailHeight: { classPropertyName: "detailHeight", publicName: "detailHeight", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, groupable: { classPropertyName: "groupable", publicName: "groupable", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, viewIdentity: { classPropertyName: "viewIdentity", publicName: "viewIdentity", isSignal: true, isRequired: false, transformFunction: null }, exporter: { classPropertyName: "exporter", publicName: "exporter", isSignal: true, isRequired: false, transformFunction: null }, exportFormats: { classPropertyName: "exportFormats", publicName: "exportFormats", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { columnLoadRequested: "columnLoadRequested", rowClick: "rowClick", selectionChange: "selectionChange", focusChange: "focusChange", viewStateChange: "viewStateChange" }, host: { listeners: { "keydown.escape": "escape($event)" }, properties: { "attr.dir": "direction()", "class.mt-data-table-focused": "focused()", "style.min-height.px": "focused() ? normalHeight() : null" } }, viewQueries: [{ propertyName: "grid", first: true, predicate: (MtDataGridComponent), descendants: true, isSignal: true }, { propertyName: "chartDock", first: true, predicate: ["chartDock"], descendants: true, isSignal: true }], ngImport: i0, template: "<section\r\n class=\"mt-data-table-surface\"\r\n [attr.role]=\"focused() ? 'dialog' : null\"\r\n [attr.aria-modal]=\"focused() ? true : null\"\r\n [attr.aria-label]=\"title()\"\r\n [cdkTrapFocus]=\"focused()\"\r\n [cdkTrapFocusAutoCapture]=\"focused()\"\r\n>\r\n @if (profile() !== \"embedded\" || focused()) {\r\n <div class=\"mt-data-table-toolbar\">\r\n @if (showHeading() && title()) {\r\n <div class=\"mt-data-table-heading\">\r\n <strong>{{ title() }}</strong\r\n ><span>{{ count() }} {{ text.text(\"rows\") }}</span>\r\n </div>\r\n }\r\n <label class=\"mt-data-table-search\">\r\n <span class=\"mt-data-table-sr-only\">{{ text.text(\"search\") }}</span>\r\n <mt-text-field\r\n icon=\"general.search-md\"\r\n [placeholder]=\"text.text('search')\"\r\n [ngModel]=\"search()\"\r\n [readonly]=\"source()?.capabilities?.filter === false\"\r\n (ngModelChange)=\"setSearch($event)\"\r\n />\r\n </label>\r\n <div\r\n class=\"mt-data-table-tools\"\r\n role=\"group\"\r\n [attr.aria-label]=\"text.text('actions')\"\r\n >\r\n <mt-button\r\n [label]=\"text.text('columns')\"\r\n icon=\"layout.columns-03\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n (click)=\"columnsPopup.toggle($event)\"\r\n />\r\n <p-popover #columnsPopup appendTo=\"body\">\r\n <div\r\n class=\"mt-data-table-menu-content\"\r\n role=\"group\"\r\n [attr.aria-label]=\"text.text('columns')\"\r\n >\r\n @for (column of columnChoices(); track column.id) {\r\n <label\r\n ><input\r\n type=\"checkbox\"\r\n [checked]=\"column.visible\"\r\n [disabled]=\"column.locked\"\r\n (change)=\"\r\n changeColumn(column.id, $any($event.target).checked)\r\n \"\r\n />{{ column.label }}</label\r\n >\r\n }\r\n <mt-button\r\n [label]=\"text.text('reset')\"\r\n severity=\"secondary\"\r\n variant=\"text\"\r\n size=\"small\"\r\n (click)=\"resetView()\"\r\n />\r\n </div>\r\n </p-popover>\r\n @if (groupable() && complete()) {\r\n <mt-button\r\n [label]=\"text.text('groupBy')\"\r\n icon=\"layout.columns-03\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n (click)=\"groupMenu.toggle($event)\"\r\n />\r\n <mt-menu\r\n #groupMenu\r\n [model]=\"groupingItems()\"\r\n [ariaLabel]=\"text.text('groupBy')\"\r\n />\r\n }\r\n @if (analysisEnabled()) {\r\n <mt-button\r\n [label]=\"text.text('analysis')\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n (click)=\"openAnalysis()\"\r\n />\r\n <mt-button\r\n [label]=\"text.text('chart')\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n [disabled]=\"!chartsEnabled()\"\r\n (click)=\"chartTable()\"\r\n />\r\n }\r\n @if (exportFormats().length && exportAllowed()) {\r\n <mt-button\r\n [label]=\"text.text('export')\"\r\n icon=\"general.download-01\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n [loading]=\"exporting()\"\r\n (click)=\"exportMenu.toggle($event)\"\r\n />\r\n <mt-menu\r\n #exportMenu\r\n [model]=\"exportItems()\"\r\n [ariaLabel]=\"text.text('export')\"\r\n />\r\n }\r\n @if (profile() === \"studio\") {\r\n <mt-button\r\n [label]=\"text.text('closeFocus')\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n [hidden]=\"!focused()\"\r\n (click)=\"closeFocus()\"\r\n />\r\n <mt-button\r\n [label]=\"text.text('focus')\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n size=\"small\"\r\n [hidden]=\"focused()\"\r\n (click)=\"focus($event)\"\r\n />\r\n }\r\n <ng-content select=\"[tableActions]\" />\r\n </div>\r\n </div>\r\n }\r\n @if (error() || exportFailed()) {\r\n <div class=\"mt-data-table-error\" role=\"alert\">\r\n {{ text.text(error() ? \"failed\" : \"exportFailed\") }}\r\n @if (error()) {\r\n <mt-button\r\n [label]=\"text.text('retry')\"\r\n severity=\"secondary\"\r\n variant=\"text\"\r\n size=\"small\"\r\n (click)=\"retry()\"\r\n />\r\n }\r\n </div>\r\n }\r\n @if (profile() === \"studio\" && !complete()) {\r\n <p class=\"mt-data-table-hint\">{{ text.text(\"incomplete\") }}</p>\r\n }\r\n <div class=\"mt-data-table-body\">\r\n <mt-data-grid\r\n [rowData]=\"displayedRows()\"\r\n [columnDefs]=\"resolvedColumns()\"\r\n [getRowId]=\"getRowId()\"\r\n [height]=\"focused() ? focusHeight() : height()\"\r\n [rowHeight]=\"rowHeight()\"\r\n [direction]=\"direction()\"\r\n [localeText]=\"text.gridLocale()\"\r\n [ariaLabel]=\"title()\"\r\n [loading]=\"busy()\"\r\n [loadingText]=\"text.text('loading')\"\r\n [noRowsText]=\"text.text('noRows')\"\r\n [dataProcessing]=\"complete() ? 'client' : 'external'\"\r\n [quickFilterText]=\"source()?.processing === 'server' ? '' : search()\"\r\n [rowSelection]=\"selection()\"\r\n [cellSelection]=\"profile() === 'studio'\"\r\n [suppressCutToClipboard]=\"true\"\r\n [getContextMenuItems]=\"contextMenu\"\r\n [sideBar]=\"sideBar()\"\r\n [rowGroupPanelShow]=\"analysisEnabled() ? 'onlyWhenGrouping' : 'never'\"\r\n [pivotPanelShow]=\"analysisEnabled() ? 'onlyWhenPivoting' : 'never'\"\r\n [enableCharts]=\"chartsEnabled()\"\r\n [masterDetail]=\"masterDetail()\"\r\n [detailCellRenderer]=\"detailRenderer()\"\r\n [detailCellRendererParams]=\"detailRendererParams()\"\r\n [isRowMaster]=\"isRowMaster()\"\r\n [detailRowAutoHeight]=\"detailAutoHeight()\"\r\n [detailRowHeight]=\"detailHeight()\"\r\n [pagination]=\"clientPaging()\"\r\n [paginationPageSize]=\"100\"\r\n [suppressPdfExport]=\"true\"\r\n [suppressCsvExport]=\"!complete() || !!exporter()\"\r\n [suppressExcelExport]=\"!complete() || !!exporter()\"\r\n (sortChanged)=\"sorted($event)\"\r\n (filterChanged)=\"filtered()\"\r\n (rowClicked)=\"$event.node.data && rowClick.emit($event.node.data)\"\r\n (selectionChanged)=\"selected()\"\r\n (columnVisible)=\"columnsVisible($event.columns)\"\r\n (columnRowGroupChanged)=\"analysisFieldsChanged()\"\r\n (columnValueChanged)=\"analysisFieldsChanged()\"\r\n (columnPivotChanged)=\"analysisFieldsChanged()\"\r\n />\r\n <div\r\n #chartDock\r\n class=\"mt-data-table-chart-dock\"\r\n [class.mt-data-table-chart-open]=\"chartOpen() && chartsEnabled()\"\r\n ></div>\r\n </div>\r\n @if (pagingInfo(); as paging) {\r\n <div class=\"mt-data-table-pagination\">\r\n @if (complete()) {\r\n <label\r\n >{{ text.text(\"pageSize\") }}\r\n <select\r\n [value]=\"paging.size\"\r\n (change)=\"pageSize(+$any($event.target).value)\"\r\n >\r\n @for (size of [20, 50, 100]; track size) {\r\n <option [value]=\"size\">{{ number(size) }}</option>\r\n }\r\n </select></label\r\n >\r\n }\r\n <mt-button\r\n [label]=\"text.text('previous')\"\r\n severity=\"secondary\"\r\n variant=\"text\"\r\n size=\"small\"\r\n [disabled]=\"busy() || paging.page === 0\"\r\n (click)=\"page(-1)\"\r\n />\r\n <bdi\r\n >{{ number(paging.first) }}\u2013{{ number(paging.last) }} /\r\n {{ number(paging.total) }}</bdi\r\n >\r\n <label\r\n >{{ text.text(\"page\") }}\r\n <input\r\n type=\"number\"\r\n min=\"1\"\r\n [max]=\"paging.pages\"\r\n [value]=\"paging.page + 1\"\r\n [disabled]=\"busy()\"\r\n (change)=\"pageNumber(+$any($event.target).value)\"\r\n /></label>\r\n <mt-button\r\n class=\"mt-data-table-next\"\r\n [label]=\"text.text('next')\"\r\n severity=\"secondary\"\r\n variant=\"text\"\r\n size=\"small\"\r\n [disabled]=\"busy() || paging.page + 1 >= paging.pages\"\r\n (click)=\"page(1)\"\r\n />\r\n </div>\r\n }\r\n</section>\r\n", styles: [":host{display:block;min-width:0;color:var(--p-text-color, #25354a);font:inherit}.mt-data-table-surface{min-width:0;background:var(--p-content-background, #fff);border:1px solid var(--p-content-border-color, #e4e7ec);border-radius:var(--p-content-border-radius, 10px);overflow:hidden}.mt-data-table-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:16px;min-height:68px;box-sizing:border-box;border-bottom:1px solid var(--p-content-border-color, #e4e7ec)}.mt-data-table-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-inline-start:auto}.mt-data-table-search{display:block;flex:1 1 200px;max-width:300px;min-width:160px}.mt-data-table-search mt-text-field{min-width:0}:host ::ng-deep mt-data-grid{padding:0;border:0;border-radius:0}.mt-data-table-heading{display:flex;align-items:baseline;gap:8px;margin-inline-end:auto}.mt-data-table-heading span,.mt-data-table-hint{color:var(--p-text-muted-color, #667085);font-size:12px}.mt-data-table-search input,button,summary{min-height:34px;border:1px solid var(--p-content-border-color, #e4e7ec);border-radius:6px;background:var(--p-content-background, #fff);color:inherit;font:inherit;padding:6px 10px}button,summary{cursor:pointer;list-style:none;font-size:13px}button:hover,summary:hover{background:var(--p-content-hover-background, #f3f6f8)}button:disabled{opacity:.5;cursor:default}input:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--p-primary-color, #2aaec0);outline-offset:2px}.mt-data-table-menu{position:relative}.mt-data-table-menu-content{display:flex;flex-direction:column;min-width:210px;max-height:320px;overflow:auto;padding:2px}.mt-data-table-menu-content label{display:flex;align-items:center;gap:8px;padding:6px;font-size:13px}.mt-data-table-menu-content button{border:0;text-align:start}.mt-data-table-hint,.mt-data-table-error{margin:0;padding:8px 12px}.mt-data-table-error{display:flex;align-items:center;justify-content:space-between;color:var(--p-red-600, #b42318)}.mt-data-table-body{min-width:0}.mt-data-table-chart-dock{display:none;min-height:300px}.mt-data-table-chart-open{display:block}.mt-data-table-pagination{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:16px;padding:10px 12px;font-size:13px;border-top:1px solid var(--p-content-border-color, #e4e7ec)}.mt-data-table-pagination label{display:flex;align-items:center;gap:6px}.mt-data-table-pagination input{width:4.5em}.mt-data-table-pagination input,.mt-data-table-pagination select{box-sizing:border-box;padding:6px;min-height:34px;border:1px solid var(--p-content-border-color, #ddd);border-radius:6px;background:var(--p-content-background, white);color:inherit;font:inherit}:host ::ng-deep mt-data-grid>.mt-grid-main>mt-grid-pager{display:none}.mt-data-table-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host.mt-data-table-focused>.mt-data-table-surface{position:fixed;inset:var(--mt-data-table-focus-inset, 16px);z-index:var(--mt-data-table-focus-z-index, 1000);overflow:auto;box-shadow:0 12px 60px #0005;border-radius:var(--p-content-border-radius, 6px);display:flex;flex-direction:column}:host.mt-data-table-focused .mt-data-table-body{display:flex;flex-direction:column;flex:1;min-height:120px;overflow:auto}:host.mt-data-table-focused .mt-data-table-chart-open{height:max(300px,45%);flex:0 0 max(300px,45%);overflow:auto}:host.mt-data-table-focused .mt-data-table-toolbar,:host.mt-data-table-focused .mt-data-table-pagination{flex-shrink:0}@media(max-width:640px){.mt-data-table-menu-content{min-width:0;max-width:calc(100vw - 64px);max-height:60dvh}.mt-data-table-search{width:100%;max-width:none;flex-basis:100%}.mt-data-table-search input{box-sizing:border-box;width:100%}:host.mt-data-table-focused>.mt-data-table-surface{inset:4px}}\n"], dependencies: [{ kind: "component", type: MtDataGridComponent, selector: "mt-data-grid", inputs: ["rowData", "dataProcessing", "columnDefs", "getRowId", "height", "autoHeight", "autoHeightMaxRows", "autoHeightMinRows", "rowHeight", "getRowClass", "animateRows", "headerHeight", "groupHeaderHeight", "direction", "localeText", "localeTextResolver", "ariaLabel", "loading", "noRowsText", "loadingText", "noRowsTemplate", "autoSizeStrategy", "columnMenu", "mainMenuItems", "autoSizePadding", "quickFilterText", "showQuickFilter", "showRowCount", "includeHiddenColumnsInQuickFilter", "quickFilterParser", "quickFilterMatcher", "cacheQuickFilter", "applyQuickFilterBeforePivotOrAgg", "filtersToolPanelDef", "isExternalFilterPresent", "doesExternalFilterPass", "floatingFiltersHeight", "rowSelection", "selectionColumnDef", "rowNumbers", "rowDragManaged", "rowDragEntireRow", "rowDragMultiRow", "suppressMoveWhenRowDragging", "cellSelection", "statusBar", "suppressContextMenu", "allowContextMenuWithControlKey", "preventDefaultOnContextMenu", "getContextMenuItems", "suppressCsvExport", "suppressExcelExport", "suppressPdfExport", "defaultPdfExportParams", "excelStyles", "processCellForClipboard", "processHeaderForClipboard", "processGroupHeaderForClipboard", "copySelectedRows", "copyHeadersToClipboard", "copyGroupHeadersToClipboard", "clipboardDelimiter", "suppressCopyRowsToClipboard", "suppressCopySingleCellRanges", "suppressCutToClipboard", "defaultCsvExportParams", "defaultExcelExportParams", "groupDisplayType", "groupRowRenderer", "groupRowRendererParams", "suppressGroupRowsSticky", "groupHideOpenParents", "groupHideParentOfSingleChild", "groupRemoveSingleChildren", "groupRemoveLowestSingleChildren", "showOpenedGroup", "groupAggFiltering", "suppressAggFilteredOnly", "aggregateOnlyChangedColumns", "suppressColumnMoveAnimation", "pivotRowTotals", "pivotColumnGroupTotals", "pivotMaxGeneratedColumns", "pivotDefaultExpanded", "pivotSuppressAutoColumn", "suppressExpandablePivotGroups", "processPivotResultColDef", "processPivotResultColGroupDef", "processUnpinnedColumns", "rowGroupPanelShow", "pivotPanelShow", "pivotPanelHint", "groupDefaultExpanded", "autoGroupColumnDef", "groupTotalRow", "grandTotalRow", "aggFuncs", "suppressRowGroupHidesColumns", "suppressMakeColumnVisibleAfterUnGroup", "keepOneColumnVisible", "sideBar", "pivotMode", "suppressAggFuncInHeader", "enableCharts", "chartThemes", "customChartThemes", "chartToolPanelsDef", "chartThemeOverrides", "chartContext", "chartRecordsLabel", "getChartToolbarItems", "groupMaintainOrder", "treeData", "getDataPath", "masterDetail", "isRowMaster", "detailCellRenderer", "detailCellRendererParams", "detailRowHeight", "detailRowAutoHeight", "singleClickEdit", "suppressClickEdit", "stopEditingWhenCellsLoseFocus", "undoRedoCellEditing", "undoRedoCellEditingLimit", "pagination", "paginationPanelShow", "paginationPageSize", "paginationTotalRows", "paginationCurrentPage", "paginationPageSizeSelector", "rowGroupPanelSuppressSort"], outputs: ["displayedColumnsChanged", "columnEverythingChanged", "pivotMaxColumnsExceeded", "gridReady", "sortChanged", "cellFocused", "columnResized", "columnMoved", "columnPinned", "columnVisible", "columnGroupOpened", "filterChanged", "filterModified", "filterOpened", "rowSelected", "selectionChanged", "rowClicked", "rowDragEnter", "rowDragMove", "rowDragLeave", "rowDragEnd", "cellSelectionChanged", "contextMenuVisibleChanged", "rowGroupOpened", "columnRowGroupChanged", "expandOrCollapseAll", "cellEditingStarted", "cellEditingStopped", "cellValueChanged", "pasteStart", "pasteEnd", "fillStart", "fillEnd", "paginationChanged", "toolPanelVisibleChanged", "toolPanelSizeChanged", "columnValueChanged", "columnPivotChanged", "columnPivotModeChanged", "chartCreated", "chartDestroyed", "chartRangeSelectionChanged", "chartOptionsChanged", "chartStateChanged"] }, { kind: "directive", type: CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: Button, selector: "mt-button", inputs: ["icon", "label", "tooltip", "class", "type", "styleClass", "severity", "badge", "variant", "badgeSeverity", "size", "iconPos", "autofocus", "fluid", "raised", "rounded", "text", "plain", "outlined", "link", "disabled", "loading", "pInputs", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: TextField, selector: "mt-text-field", inputs: ["field", "hint", "label", "placeholder", "class", "type", "readonly", "pInputs", "required", "maxLength", "icon", "iconPosition"] }, { kind: "component", type: Menu, selector: "mt-menu", inputs: ["model", "popup", "appendTo", "style", "styleClass", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "ariaLabel", "ariaLabelledBy", "id", "tabindex", "activeItemId"], outputs: ["activeItemIdChange", "onShow", "onHide", "onBlur", "onFocus", "onItemSelect"] }, { kind: "component", type: Popover, selector: "p-popover", inputs: ["ariaLabel", "ariaLabelledBy", "dismissable", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions", "motionOptions"], outputs: ["onShow", "onHide"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1311
1311
  }
1312
1312
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MtDataTableComponent, decorators: [{
1313
1313
  type: Component,