@masterteam/data-table 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -9
- package/fesm2022/masterteam-data-table-config.mjs +21 -0
- package/fesm2022/masterteam-data-table-config.mjs.map +1 -0
- package/fesm2022/masterteam-data-table-icons.mjs +1 -1
- package/fesm2022/masterteam-data-table-icons.mjs.map +1 -1
- package/fesm2022/masterteam-data-table-legacy.mjs +160 -171
- package/fesm2022/masterteam-data-table-legacy.mjs.map +1 -1
- package/fesm2022/masterteam-data-table.mjs +9 -4
- package/fesm2022/masterteam-data-table.mjs.map +1 -1
- package/legacy/README.md +5 -0
- package/package.json +7 -3
- package/types/masterteam-data-table-config.d.ts +19 -0
- package/types/masterteam-data-table-icons.d.ts +1 -1
- package/types/masterteam-data-table-legacy.d.ts +5 -19
- package/types/masterteam-data-table.d.ts +3 -0
|
@@ -311,7 +311,7 @@ class MtDataTableEntityCell {
|
|
|
311
311
|
}
|
|
312
312
|
} @else {
|
|
313
313
|
{{ params().valueFormatted }}
|
|
314
|
-
}`, isInline: true, styles: [".mt-entity-grid-cell{display:block;width:100%;min-width:0;white-space:
|
|
314
|
+
}`, 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 });
|
|
315
315
|
}
|
|
316
316
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MtDataTableEntityCell, decorators: [{
|
|
317
317
|
type: Component,
|
|
@@ -323,7 +323,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
323
323
|
}
|
|
324
324
|
} @else {
|
|
325
325
|
{{ params().valueFormatted }}
|
|
326
|
-
}`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".mt-entity-grid-cell{display:block;width:100%;min-width:0;white-space:
|
|
326
|
+
}`, 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"] }]
|
|
327
327
|
}], propDecorators: { params: [{ type: i0.Input, args: [{ isSignal: true, alias: "params", required: true }] }] } });
|
|
328
328
|
/** Optional native export callback: preserves typed numbers/dates and exports entity labels. */
|
|
329
329
|
function mtEntityExportValue(params) {
|
|
@@ -967,6 +967,9 @@ function mtIsControlColumn(column) {
|
|
|
967
967
|
* replace the header: custom header renderers are dropped and floating filters stay off,
|
|
968
968
|
* because filtering lives in the header's filter button.
|
|
969
969
|
*
|
|
970
|
+
* Data columns also resize without an upper limit (a page's `maxWidth` is dropped), so a
|
|
971
|
+
* user can always widen a column to read it. Fit-to-width still sizes them on load.
|
|
972
|
+
*
|
|
970
973
|
* Backend limits are the only page choices kept: `sortable: false` marks a column the server
|
|
971
974
|
* cannot sort (its sort indicator is hidden), and with `server` set, `filter: false` marks a
|
|
972
975
|
* column the server cannot filter (its filter button is hidden). Control columns keep their
|
|
@@ -995,6 +998,8 @@ function standardColumn(column, options) {
|
|
|
995
998
|
suppressHeaderMenuButton: false,
|
|
996
999
|
suppressHeaderFilterButton: true,
|
|
997
1000
|
};
|
|
1001
|
+
// A user can always widen a data column to read its content: no page caps the drag.
|
|
1002
|
+
delete header.maxWidth;
|
|
998
1003
|
return {
|
|
999
1004
|
...header,
|
|
1000
1005
|
sortable: column.sortable !== false,
|
|
@@ -1227,11 +1232,11 @@ class MtStandardGridComponent {
|
|
|
1227
1232
|
return rowItems.length ? [...items, 'separator', ...rowItems] : items;
|
|
1228
1233
|
};
|
|
1229
1234
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MtStandardGridComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1230
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.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 }, selection: { classPropertyName: "selection", publicName: "selection", isSignal: true, isRequired: false, transformFunction: null }, exportable: { classPropertyName: "exportable", publicName: "exportable", 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 }, 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 </div>\n <mt-data-grid\n [rowData]=\"rows()\"\n [columnDefs]=\"standardColumns()\"\n [getRowId]=\"rowId()\"\n [dataProcessing]=\"server() ? 'external' : 'client'\"\n [height]=\"gridHeight()\"\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]=\"statusBar\"\n [rowSelection]=\"selectionOptions()\"\n [cellSelection]=\"true\"\n [enableCharts]=\"!server()\"\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]=\"serverGroups()\"\n [autoGroupColumnDef]=\"autoGroupColumnDef()\"\n [groupDefaultExpanded]=\"-1\"\n [pagination]=\"paged()\"\n paginationPanelShow=\"whenNeeded\"\n [paginationPageSize]=\"pageSize()\"\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)=\"paginationChanged.emit($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}\n"], dependencies: [{ kind: "component", type: MtDataGridComponent, selector: "mt-data-grid", inputs: ["rowData", "dataProcessing", "columnDefs", "getRowId", "height", "autoHeight", "autoHeightMaxRows", "autoHeightMinRows", "rowHeight", "animateRows", "headerHeight", "groupHeaderHeight", "direction", "localeText", "localeTextResolver", "ariaLabel", "loading", "noRowsText", "loadingText", "noRowsTemplate", "autoSizeStrategy", "columnMenu", "mainMenuItems", "autoSizePadding", "quickFilterText", "showQuickFilter", "includeHiddenColumnsInQuickFilter", "quickFilterParser", "quickFilterMatcher", "cacheQuickFilter", "applyQuickFilterBeforePivotOrAgg", "filtersToolPanelDef", "isExternalFilterPresent", "doesExternalFilterPass", "floatingFiltersHeight", "rowSelection", "selectionColumnDef", "rowNumbers", "rowDragManaged", "rowDragEntireRow", "rowDragMultiRow", "suppressMoveWhenRowDragging", "cellSelection", "statusBar", "suppressContextMenu", "allowContextMenuWithControlKey", "preventDefaultOnContextMenu", "getContextMenuItems", "suppressCsvExport", "suppressExcelExport", "suppressPdfExport", "defaultPdfExportParams", "excelStyles", "processCellForClipboard", "processHeaderForClipboard", "processGroupHeaderForClipboard", "copySelectedRows", "copyHeadersToClipboard", "copyGroupHeadersToClipboard", "clipboardDelimiter", "suppressCopyRowsToClipboard", "suppressCopySingleCellRanges", "suppressCutToClipboard", "defaultCsvExportParams", "defaultExcelExportParams", "groupDisplayType", "groupRowRenderer", "groupRowRendererParams", "suppressGroupRowsSticky", "groupHideOpenParents", "groupHideParentOfSingleChild", "groupRemoveSingleChildren", "groupRemoveLowestSingleChildren", "showOpenedGroup", "groupAggFiltering", "suppressAggFilteredOnly", "aggregateOnlyChangedColumns", "suppressColumnMoveAnimation", "pivotRowTotals", "pivotColumnGroupTotals", "pivotMaxGeneratedColumns", "pivotDefaultExpanded", "pivotSuppressAutoColumn", "suppressExpandablePivotGroups", "processPivotResultColDef", "processPivotResultColGroupDef", "processUnpinnedColumns", "rowGroupPanelShow", "pivotPanelShow", "pivotPanelHint", "groupDefaultExpanded", "autoGroupColumnDef", "groupTotalRow", "grandTotalRow", "aggFuncs", "suppressRowGroupHidesColumns", "suppressMakeColumnVisibleAfterUnGroup", "sideBar", "pivotMode", "suppressAggFuncInHeader", "enableCharts", "chartThemes", "customChartThemes", "chartToolPanelsDef", "chartThemeOverrides", "chartContext", "chartRecordsLabel", "getChartToolbarItems", "groupMaintainOrder", "treeData", "getDataPath", "masterDetail", "isRowMaster", "detailCellRenderer", "detailCellRendererParams", "detailRowHeight", "detailRowAutoHeight", "singleClickEdit", "suppressClickEdit", "stopEditingWhenCellsLoseFocus", "undoRedoCellEditing", "undoRedoCellEditingLimit", "pagination", "paginationPanelShow", "paginationPageSize", "paginationTotalRows", "paginationCurrentPage", "paginationPageSizeSelector", "rowGroupPanelSuppressSort"], outputs: ["displayedColumnsChanged", "columnEverythingChanged", "pivotMaxColumnsExceeded", "gridReady", "sortChanged", "cellFocused", "columnResized", "columnMoved", "columnPinned", "columnVisible", "columnGroupOpened", "filterChanged", "filterModified", "filterOpened", "rowSelected", "selectionChanged", "rowClicked", "rowDragEnter", "rowDragMove", "rowDragLeave", "rowDragEnd", "cellSelectionChanged", "contextMenuVisibleChanged", "rowGroupOpened", "columnRowGroupChanged", "expandOrCollapseAll", "cellEditingStarted", "cellEditingStopped", "cellValueChanged", "pasteStart", "pasteEnd", "fillStart", "fillEnd", "paginationChanged", "toolPanelVisibleChanged", "toolPanelSizeChanged", "columnValueChanged", "columnPivotChanged", "columnPivotModeChanged", "chartCreated", "chartDestroyed", "chartRangeSelectionChanged", "chartOptionsChanged"] }, { kind: "component", type: EmptyState, selector: "mt-empty-state", inputs: ["variant", "illustration", "title", "description", "actionLabel", "actionIcon"], outputs: ["actionClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1235
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.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 }, selection: { classPropertyName: "selection", publicName: "selection", isSignal: true, isRequired: false, transformFunction: null }, exportable: { classPropertyName: "exportable", publicName: "exportable", 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 }, 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 </div>\n <mt-data-grid\n [rowData]=\"rows()\"\n [columnDefs]=\"standardColumns()\"\n [getRowId]=\"rowId()\"\n [dataProcessing]=\"server() ? 'external' : 'client'\"\n [height]=\"gridHeight()\"\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]=\"statusBar\"\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]=\"serverGroups()\"\n [autoGroupColumnDef]=\"autoGroupColumnDef()\"\n [groupDefaultExpanded]=\"-1\"\n [pagination]=\"paged()\"\n paginationPanelShow=\"whenNeeded\"\n [paginationPageSize]=\"pageSize()\"\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)=\"paginationChanged.emit($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}\n"], dependencies: [{ kind: "component", type: MtDataGridComponent, selector: "mt-data-grid", inputs: ["rowData", "dataProcessing", "columnDefs", "getRowId", "height", "autoHeight", "autoHeightMaxRows", "autoHeightMinRows", "rowHeight", "animateRows", "headerHeight", "groupHeaderHeight", "direction", "localeText", "localeTextResolver", "ariaLabel", "loading", "noRowsText", "loadingText", "noRowsTemplate", "autoSizeStrategy", "columnMenu", "mainMenuItems", "autoSizePadding", "quickFilterText", "showQuickFilter", "includeHiddenColumnsInQuickFilter", "quickFilterParser", "quickFilterMatcher", "cacheQuickFilter", "applyQuickFilterBeforePivotOrAgg", "filtersToolPanelDef", "isExternalFilterPresent", "doesExternalFilterPass", "floatingFiltersHeight", "rowSelection", "selectionColumnDef", "rowNumbers", "rowDragManaged", "rowDragEntireRow", "rowDragMultiRow", "suppressMoveWhenRowDragging", "cellSelection", "statusBar", "suppressContextMenu", "allowContextMenuWithControlKey", "preventDefaultOnContextMenu", "getContextMenuItems", "suppressCsvExport", "suppressExcelExport", "suppressPdfExport", "defaultPdfExportParams", "excelStyles", "processCellForClipboard", "processHeaderForClipboard", "processGroupHeaderForClipboard", "copySelectedRows", "copyHeadersToClipboard", "copyGroupHeadersToClipboard", "clipboardDelimiter", "suppressCopyRowsToClipboard", "suppressCopySingleCellRanges", "suppressCutToClipboard", "defaultCsvExportParams", "defaultExcelExportParams", "groupDisplayType", "groupRowRenderer", "groupRowRendererParams", "suppressGroupRowsSticky", "groupHideOpenParents", "groupHideParentOfSingleChild", "groupRemoveSingleChildren", "groupRemoveLowestSingleChildren", "showOpenedGroup", "groupAggFiltering", "suppressAggFilteredOnly", "aggregateOnlyChangedColumns", "suppressColumnMoveAnimation", "pivotRowTotals", "pivotColumnGroupTotals", "pivotMaxGeneratedColumns", "pivotDefaultExpanded", "pivotSuppressAutoColumn", "suppressExpandablePivotGroups", "processPivotResultColDef", "processPivotResultColGroupDef", "processUnpinnedColumns", "rowGroupPanelShow", "pivotPanelShow", "pivotPanelHint", "groupDefaultExpanded", "autoGroupColumnDef", "groupTotalRow", "grandTotalRow", "aggFuncs", "suppressRowGroupHidesColumns", "suppressMakeColumnVisibleAfterUnGroup", "sideBar", "pivotMode", "suppressAggFuncInHeader", "enableCharts", "chartThemes", "customChartThemes", "chartToolPanelsDef", "chartThemeOverrides", "chartContext", "chartRecordsLabel", "getChartToolbarItems", "groupMaintainOrder", "treeData", "getDataPath", "masterDetail", "isRowMaster", "detailCellRenderer", "detailCellRendererParams", "detailRowHeight", "detailRowAutoHeight", "singleClickEdit", "suppressClickEdit", "stopEditingWhenCellsLoseFocus", "undoRedoCellEditing", "undoRedoCellEditingLimit", "pagination", "paginationPanelShow", "paginationPageSize", "paginationTotalRows", "paginationCurrentPage", "paginationPageSizeSelector", "rowGroupPanelSuppressSort"], outputs: ["displayedColumnsChanged", "columnEverythingChanged", "pivotMaxColumnsExceeded", "gridReady", "sortChanged", "cellFocused", "columnResized", "columnMoved", "columnPinned", "columnVisible", "columnGroupOpened", "filterChanged", "filterModified", "filterOpened", "rowSelected", "selectionChanged", "rowClicked", "rowDragEnter", "rowDragMove", "rowDragLeave", "rowDragEnd", "cellSelectionChanged", "contextMenuVisibleChanged", "rowGroupOpened", "columnRowGroupChanged", "expandOrCollapseAll", "cellEditingStarted", "cellEditingStopped", "cellValueChanged", "pasteStart", "pasteEnd", "fillStart", "fillEnd", "paginationChanged", "toolPanelVisibleChanged", "toolPanelSizeChanged", "columnValueChanged", "columnPivotChanged", "columnPivotModeChanged", "chartCreated", "chartDestroyed", "chartRangeSelectionChanged", "chartOptionsChanged"] }, { kind: "component", type: EmptyState, selector: "mt-empty-state", inputs: ["variant", "illustration", "title", "description", "actionLabel", "actionIcon"], outputs: ["actionClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1231
1236
|
}
|
|
1232
1237
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MtStandardGridComponent, decorators: [{
|
|
1233
1238
|
type: Component,
|
|
1234
|
-
args: [{ selector: 'mt-standard-grid', imports: [MtDataGridComponent, EmptyState], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"mt-standard-grid\">\n <div class=\"mt-standard-grid-toolbar\">\n <ng-content select=\"[mtGridToolbar]\" />\n </div>\n <mt-data-grid\n [rowData]=\"rows()\"\n [columnDefs]=\"standardColumns()\"\n [getRowId]=\"rowId()\"\n [dataProcessing]=\"server() ? 'external' : 'client'\"\n [height]=\"gridHeight()\"\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]=\"statusBar\"\n [rowSelection]=\"selectionOptions()\"\n [cellSelection]=\"true\"\n [enableCharts]=\"
|
|
1239
|
+
args: [{ selector: 'mt-standard-grid', imports: [MtDataGridComponent, EmptyState], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"mt-standard-grid\">\n <div class=\"mt-standard-grid-toolbar\">\n <ng-content select=\"[mtGridToolbar]\" />\n </div>\n <mt-data-grid\n [rowData]=\"rows()\"\n [columnDefs]=\"standardColumns()\"\n [getRowId]=\"rowId()\"\n [dataProcessing]=\"server() ? 'external' : 'client'\"\n [height]=\"gridHeight()\"\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]=\"statusBar\"\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]=\"serverGroups()\"\n [autoGroupColumnDef]=\"autoGroupColumnDef()\"\n [groupDefaultExpanded]=\"-1\"\n [pagination]=\"paged()\"\n paginationPanelShow=\"whenNeeded\"\n [paginationPageSize]=\"pageSize()\"\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)=\"paginationChanged.emit($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}\n"] }]
|
|
1235
1240
|
}], 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 }] }], selection: [{ type: i0.Input, args: [{ isSignal: true, alias: "selection", required: false }] }], exportable: [{ type: i0.Input, args: [{ isSignal: true, alias: "exportable", 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 }] }], 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"] }] } });
|
|
1236
1241
|
|
|
1237
1242
|
/** The standard row-actions column id. */
|