@zambon-dev/ui 1.11.1 → 1.12.2
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/CHANGELOG.md +52 -1
- package/fesm2022/zambon-dev-ui-library.mjs +33 -19
- package/fesm2022/zambon-dev-ui-library.mjs.map +1 -1
- package/fesm2022/zambon-dev-ui-shared.mjs +3 -1
- package/fesm2022/zambon-dev-ui-shared.mjs.map +1 -1
- package/package.json +1 -1
- package/schematics/ng-add/index.js +2 -1
- package/types/zambon-dev-ui-library.d.ts +22 -3
- package/types/zambon-dev-ui-shared.d.ts +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -27,6 +27,55 @@ packages are listed under [Package history](#package-history) at the end.
|
|
|
27
27
|
|
|
28
28
|
### ⚠ Breaking Changes / Migration
|
|
29
29
|
|
|
30
|
+
## [1.12.2] - 2026-12-06
|
|
31
|
+
|
|
32
|
+
### Changed
|
|
33
|
+
|
|
34
|
+
- **`selectedRowKeys` on a data grid dataset gives a copy.** Before, it gave the dataset's own
|
|
35
|
+
list, so a list you kept changed with the next selection, and removing the selected rows emptied
|
|
36
|
+
it. Keep the copy as long as you need. Setting `selectedRowKeys` keeps a copy of your list too.
|
|
37
|
+
Code that kept the list to see the selection change, or changed the list to change the selection,
|
|
38
|
+
must change. Read `selectedRowKeys` again when you need it, or listen to `selectedRowsChanged`.
|
|
39
|
+
Change the selection with `selectRow`, `deselectRow`, `selectRows` or `clearSelection`.
|
|
40
|
+
|
|
41
|
+
### Fixed
|
|
42
|
+
|
|
43
|
+
- **`utcDate` showed a date with no time as the day before.** A value such as `2026-12-05` is a
|
|
44
|
+
calendar day, but the pipe shifted it by the time zone, so west of Greenwich, as in Brazil, it
|
|
45
|
+
showed 4 December. It now comes back as the start of the same day in local time. A day the
|
|
46
|
+
calendar does not have, such as `2026-02-30`, gives `null`.
|
|
47
|
+
- **`ng add` said components render before the packages were installed.** Its closing message
|
|
48
|
+
now says they render once its packages are installed.
|
|
49
|
+
|
|
50
|
+
## [1.12.0] - 2026-12-06
|
|
51
|
+
|
|
52
|
+
### Added
|
|
53
|
+
|
|
54
|
+
- **`removeKeys(keys, true)` on grid datasets.** Pass `true` when the API has already deleted the
|
|
55
|
+
rows. The next block then starts that many rows earlier, so scrolling on after a delete no longer
|
|
56
|
+
skips rows. Without it, the rows only leave the grid, as before.
|
|
57
|
+
- **`addNewRow(row, false)` on grid datasets.** Pass `false` for a row the API does not hold yet,
|
|
58
|
+
such as one still to be saved. The next block then starts where it did, so no row is skipped.
|
|
59
|
+
Without it, the row counts as one the API now holds, as before. The multi-editor's new rows use
|
|
60
|
+
`false`.
|
|
61
|
+
|
|
62
|
+
### Fixed
|
|
63
|
+
|
|
64
|
+
- **The data grid stopped loading after a row was added or updated.** `addNewRow` and `updateRow`
|
|
65
|
+
marked the data as fully loaded, so scrolling down no longer fetched the next block. Only a block
|
|
66
|
+
from `getData` shorter than the block size now marks the end.
|
|
67
|
+
- **`removeKeys(dataset.selectedRowKeys)` removed nothing.** Removing the selection emptied the
|
|
68
|
+
same array the rows were then removed from. The rows now go, and `selectedRowsChanged` announces
|
|
69
|
+
that they are no longer selected, so no checkbox stays ticked.
|
|
70
|
+
- **A disabled data grid could not be scrolled from the keyboard.** Its rows leave the Tab order,
|
|
71
|
+
so nothing inside the scroll area took focus. While the grid is disabled and has rows, the scroll
|
|
72
|
+
area is now its Tab stop, named by `gridLabel`. To allow that, `role="rowgroup"` of the rows moved
|
|
73
|
+
from the `.body` element to the scroll area inside it.
|
|
74
|
+
- **A pinned first column stood out in a data grid with a toolbar.** With `showButtons`, the grid
|
|
75
|
+
has no surface of its own, so its rows showed the colour behind it while the pinned cells stayed
|
|
76
|
+
on the solid surface. A grid with `pinFirstColumn` and a toolbar now keeps the solid surface
|
|
77
|
+
under its header and rows.
|
|
78
|
+
|
|
30
79
|
## [1.11.1] - 2026-12-06
|
|
31
80
|
|
|
32
81
|
### Added
|
|
@@ -2892,7 +2941,9 @@ URL) in `AppConfig`, and implement a hub that pushes the notification list to cl
|
|
|
2892
2941
|
available via [GitHub Releases](https://github.com/RicardoZambon/ZLibraries/releases) and the
|
|
2893
2942
|
`shared-v*` tags.
|
|
2894
2943
|
|
|
2895
|
-
[Unreleased]: https://github.com/RicardoZambon/ZLibraries/compare/ui-v1.
|
|
2944
|
+
[Unreleased]: https://github.com/RicardoZambon/ZLibraries/compare/ui-v1.12.2...HEAD
|
|
2945
|
+
[1.12.2]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.12.2
|
|
2946
|
+
[1.12.0]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.12.0
|
|
2896
2947
|
[1.11.1]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.11.1
|
|
2897
2948
|
[1.11.0]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.11.0
|
|
2898
2949
|
[1.10.0]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.10.0
|
|
@@ -1303,8 +1303,9 @@ var GridDataset = class GridDataset extends BaseDataset {
|
|
|
1303
1303
|
this.configsProvider = inject(GridConfigsProvider);
|
|
1304
1304
|
this.configs = JSON.parse(JSON.stringify(this.configsProvider.configs));
|
|
1305
1305
|
}
|
|
1306
|
-
addNewRow(row) {
|
|
1306
|
+
addNewRow(row, addedToSource = true) {
|
|
1307
1307
|
this.updateLoadedRows([row]);
|
|
1308
|
+
if (!addedToSource) this.recordBlock = Math.max(0, this.recordBlock - 1);
|
|
1308
1309
|
}
|
|
1309
1310
|
get focusedRowKey() {
|
|
1310
1311
|
this.tracked();
|
|
@@ -1353,6 +1354,7 @@ var GridDataset = class GridDataset extends BaseDataset {
|
|
|
1353
1354
|
this.totalRows = response?.totalRows;
|
|
1354
1355
|
}
|
|
1355
1356
|
this.updateLoadedRows(rows ?? []);
|
|
1357
|
+
if ((rows ?? []).length < this.configsProvider.configs.recordBlockSize) this.loadedLastRow = true;
|
|
1356
1358
|
this.isLoading = false;
|
|
1357
1359
|
this._hasBeenLoaded = true;
|
|
1358
1360
|
this.touched();
|
|
@@ -1369,7 +1371,7 @@ var GridDataset = class GridDataset extends BaseDataset {
|
|
|
1369
1371
|
this.clearLoadedRows();
|
|
1370
1372
|
this.loadRows();
|
|
1371
1373
|
}
|
|
1372
|
-
removeKeys(keys) {
|
|
1374
|
+
removeKeys(keys, deletedFromSource = false) {
|
|
1373
1375
|
if (!this.hasLoadedRows) return;
|
|
1374
1376
|
keys.forEach((key) => {
|
|
1375
1377
|
if (this.focusedRow === key) this.clearFocusedRow();
|
|
@@ -1379,6 +1381,7 @@ var GridDataset = class GridDataset extends BaseDataset {
|
|
|
1379
1381
|
this.touched();
|
|
1380
1382
|
this._loadedRows = this._loadedRows.filter((_, index) => index !== indexToRemove);
|
|
1381
1383
|
this.touched();
|
|
1384
|
+
if (deletedFromSource) this.recordBlock = Math.max(0, this.recordBlock - 1);
|
|
1382
1385
|
}
|
|
1383
1386
|
});
|
|
1384
1387
|
}
|
|
@@ -1420,7 +1423,6 @@ var GridDataset = class GridDataset extends BaseDataset {
|
|
|
1420
1423
|
this._loadedKeys = [...this._loadedKeys ?? [], ...rows.map((row) => row[KEY_FIELD])];
|
|
1421
1424
|
this.touched();
|
|
1422
1425
|
this.recordBlock += rows.length;
|
|
1423
|
-
if (rows.length < this.configsProvider.configs.recordBlockSize) this.loadedLastRow = true;
|
|
1424
1426
|
}
|
|
1425
1427
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1426
1428
|
minVersion: "12.0.0",
|
|
@@ -1464,10 +1466,10 @@ var DataGridDataset = class DataGridDataset extends GridDataset {
|
|
|
1464
1466
|
columnWidths = signal({}, ...ngDevMode ? [{ debugName: "columnWidths" }] : /* istanbul ignore next */ []);
|
|
1465
1467
|
get selectedRowKeys() {
|
|
1466
1468
|
this.tracked();
|
|
1467
|
-
return this._selectedRowKeys;
|
|
1469
|
+
return [...this._selectedRowKeys];
|
|
1468
1470
|
}
|
|
1469
1471
|
set selectedRowKeys(value) {
|
|
1470
|
-
this._selectedRowKeys = value;
|
|
1472
|
+
this._selectedRowKeys = [...value];
|
|
1471
1473
|
this.touched();
|
|
1472
1474
|
}
|
|
1473
1475
|
get columnsSize() {
|
|
@@ -1489,7 +1491,8 @@ var DataGridDataset = class DataGridDataset extends GridDataset {
|
|
|
1489
1491
|
return rowHeight;
|
|
1490
1492
|
}
|
|
1491
1493
|
get hasSelectedRows() {
|
|
1492
|
-
|
|
1494
|
+
this.tracked();
|
|
1495
|
+
return this._selectedRowKeys.length > 0;
|
|
1493
1496
|
}
|
|
1494
1497
|
constructor() {
|
|
1495
1498
|
super();
|
|
@@ -1608,24 +1611,35 @@ var DataGridDataset = class DataGridDataset extends GridDataset {
|
|
|
1608
1611
|
return this.selectedRowKeys.map((key) => this.loadedKeys.indexOf(key)).filter((index) => index >= 0).map((index) => this.loadedRows[index]);
|
|
1609
1612
|
}
|
|
1610
1613
|
isKeySelected(key) {
|
|
1611
|
-
|
|
1614
|
+
this.tracked();
|
|
1615
|
+
return this._selectedRowKeys.indexOf(key) >= 0;
|
|
1612
1616
|
}
|
|
1613
1617
|
refresh() {
|
|
1614
1618
|
if (this.hasSelectedRows) this.clearSelection();
|
|
1615
1619
|
super.refresh();
|
|
1616
1620
|
}
|
|
1617
|
-
removeKeys(keys) {
|
|
1621
|
+
removeKeys(keys, deletedFromSource = false) {
|
|
1618
1622
|
if (!this.hasLoadedRows) return;
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
+
const keysToRemove = [...keys];
|
|
1624
|
+
const deselected = keysToRemove.filter((key) => this.isKeySelected(key));
|
|
1625
|
+
if (deselected.length > 0) {
|
|
1626
|
+
const changes = {};
|
|
1627
|
+
deselected.forEach((key) => {
|
|
1628
|
+
changes[key] = {
|
|
1629
|
+
rowData: this.getRowData(key),
|
|
1630
|
+
selected: false
|
|
1631
|
+
};
|
|
1632
|
+
this.removeSelectedRow(key);
|
|
1633
|
+
});
|
|
1634
|
+
this.selectedRowsChanged.emit(changes);
|
|
1635
|
+
}
|
|
1636
|
+
super.removeKeys(keysToRemove, deletedFromSource);
|
|
1623
1637
|
}
|
|
1624
1638
|
selectRow(key) {
|
|
1625
1639
|
if (!this.hasLoadedRows) return;
|
|
1626
1640
|
if (!this.configs.multiSelect) {
|
|
1627
1641
|
if (this.isKeySelected(key)) return;
|
|
1628
|
-
this.removeSelectedRow(this.
|
|
1642
|
+
this.removeSelectedRow(this._selectedRowKeys[0]);
|
|
1629
1643
|
}
|
|
1630
1644
|
if (!this.isKeySelected(key)) {
|
|
1631
1645
|
this._selectedRowKeys.push(key);
|
|
@@ -1680,7 +1694,7 @@ var DataGridDataset = class DataGridDataset extends GridDataset {
|
|
|
1680
1694
|
return (this.columns ?? []).filter((column) => this.isColumnHidden(column)).map((column) => column.field).filter((field, index, fields) => fields.indexOf(field) === index);
|
|
1681
1695
|
}
|
|
1682
1696
|
removeSelectedRow(key) {
|
|
1683
|
-
const index = this.
|
|
1697
|
+
const index = this._selectedRowKeys.indexOf(key);
|
|
1684
1698
|
if (index >= 0) {
|
|
1685
1699
|
this._selectedRowKeys.splice(index, 1);
|
|
1686
1700
|
this.touched();
|
|
@@ -6464,8 +6478,8 @@ var DataGridComponent = class DataGridComponent extends BaseComponent {
|
|
|
6464
6478
|
],
|
|
6465
6479
|
usesInheritance: true,
|
|
6466
6480
|
ngImport: i0,
|
|
6467
|
-
template: "@if (showButtons()) {\n <div class=\"buttons\">\n <ng-content select=\"[buttons]\"></ng-content>\n </div>\n}\n\n<!-- The WAI-ARIA grid pattern at row level: the header and the rows are the grid. The toolbar\nabove and the footer below are not rows, so they stay outside it. The keys are handled here, for\nthe row that has the focus; see onKeydown. The grid element itself takes no focus: its rows do,\nand their keydown bubbles up to it. -->\n<div class=\"grid-frame\">\n <!-- The column chooser button sits over the end of the header. It is not part of the grid: a\n row may hold only cells, so a control between them would break the grid's role tree. It comes\n before the grid in the Tab order, a Tab stop of its own as the select-all checkbox is. -->\n @if (showColumnChooser && !isHideColumns) {\n <div class=\"column-chooser-slot\">\n <button\n #columnChooserButton\n class=\"column-chooser-button\"\n aria-haspopup=\"dialog\"\n type=\"button\"\n [attr.aria-controls]=\"columnChooserOpen() ? columnChooserId : null\"\n [attr.aria-expanded]=\"columnChooserOpen()\"\n [attr.aria-label]=\"columnChooserText | translate\"\n [libTooltip]=\"columnChooserOpen() ? null : columnChooserText\"\n (click)=\"onToggleColumnChooser()\"\n >\n <i class=\"fa-solid fa-table-columns\" aria-hidden=\"true\"></i>\n </button>\n </div>\n }\n\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"grid\"\n role=\"grid\"\n [attr.aria-disabled]=\"disabled() ? true : null\"\n [attr.aria-label]=\"gridLabel ? (gridLabel | translate) : null\"\n [attr.aria-multiselectable]=\"isShowMultiSelect ? true : null\"\n [attr.aria-rowcount]=\"ariaRowCount\"\n (keydown)=\"onKeydown($event)\"\n >\n <div class=\"header\" role=\"rowgroup\" [class.hide]=\"isHideColumns\" [style.padding-right.px]=\"headerRightMargin()\">\n <!-- Translated by however far the body is scrolled sideways. The rows scroll inside the CDK\n viewport and the header sits outside it, so without this the headings simply stay put\n while the cells move away from them. -->\n <div\n class=\"header-row\"\n aria-rowindex=\"1\"\n role=\"row\"\n [style.transform]=\"headerScrollLeft() ? 'translateX(-' + headerScrollLeft() + 'px)' : null\"\n >\n @if (isShowMultiSelect) {\n <div\n class=\"header-cell selection\"\n role=\"columnheader\"\n [class.pinned]=\"pinFirstColumn\"\n [style.transform]=\"pinnedHeaderTransform()\"\n [ngStyle]=\"{\n width: selectionColWidth ? selectionColWidth : null,\n }\"\n >\n <!-- Selects or clears every loaded row. Rows a paged grid has not loaded yet are not part\n of it. A native checkbox, so it is focusable and toggles with Space. -->\n <input\n class=\"form-input\"\n type=\"checkbox\"\n [attr.aria-label]=\"selectAllText | translate\"\n [attr.disabled]=\"disabled() || !hasLoadedRows ? true : null\"\n [checked]=\"allRowsSelected\"\n [indeterminate]=\"someRowsSelected\"\n (change)=\"onToggleSelectAll()\"\n />\n </div>\n }\n\n <!-- A measured zero is a width, not the absence of one: it is a 1fr column that collapsed,\n and its heading has to collapse too.\n\n Such a heading is removed rather than merely made zero wide, because a flex item still\n takes a gap on each side while the body grid allows the collapsed track only one, and\n that spare gap pushed every heading to its right out by 16px. -->\n <!-- With pinFirstColumn, the first heading, and the select-all heading before it, move back by\n as much as the header row moves, so they stay in place over their pinned cells. -->\n @for (column of columns; track column; let first = $first) {\n @let width = headerWidth(column);\n <div\n class=\"header-cell\"\n role=\"columnheader\"\n [class.pinned]=\"pinFirstColumn && first\"\n [style.transform]=\"first ? pinnedHeaderTransform() : null\"\n [class.align-center]=\"alignOf(column) === 'center'\"\n [class.align-end]=\"alignOf(column) === 'end'\"\n [ngStyle]=\"{\n display: width === 0 ? 'none' : null,\n 'width.px': width,\n }\"\n >\n @if (column.type === 'actions' && !column.headerName) {\n <!-- An empty column header leaves the column unnamed for screen readers. -->\n <span class=\"visually-hidden\">{{ actionsColumnText | translate }}</span>\n } @else {\n <span class=\"header-text\">{{ column.headerName | translate }}</span>\n }\n <!-- The width sets the column's track in the rows' template. The header then copies the\n cell measured in the first row, as for any column. ArrowLeft and ArrowRight change the\n width; a double click gives the column its declared size back. -->\n @if (isResizable(column)) {\n @let columnName = column.headerName | translate;\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events -->\n <div\n class=\"resize-handle\"\n aria-orientation=\"vertical\"\n role=\"separator\"\n tabindex=\"0\"\n [attr.aria-label]=\"fillColumn(resizeColumnText | translate: { column: columnName }, columnName)\"\n [attr.aria-valuemin]=\"minColumnWidth\"\n [attr.aria-valuenow]=\"resizeValue(column)\"\n (click)=\"$event.stopPropagation()\"\n (dblclick)=\"onResizeReset($event, column)\"\n (keydown)=\"onResizeKeydown($event, column)\"\n (pointerdown)=\"onResizeStart($event, column)\"\n ></div>\n }\n </div>\n }\n </div>\n </div>\n\n <div #body class=\"body\" role=\"rowgroup\" [style.min-height.px]=\"bodyMinHeight\">\n <cdk-virtual-scroll-viewport\n [itemSize]=\"rowHeight\"\n [style.--grid-pin-offset]=\"pinOffset\"\n [style.grid-template-columns]=\"gridColumns\"\n >\n @let tabbableKey = tabbableRowKey;\n <lib-data-grid-row\n #row\n *cdkVirtualFor=\"let row of dataGridDataset.loadedRows; index as i; trackBy: trackByFn\"\n [disabled]=\"disabled()\"\n [isFirstRow]=\"isFirstVisibleRow(i)\"\n [rowData]=\"row\"\n [rowIndex]=\"i\"\n [style.height.px]=\"rowHeight\"\n [tabbable]=\"dataGridDataset.getRowInternalKey(row) === tabbableKey\"\n (selectionResized)=\"onSelectionResized($event)\"\n >\n </lib-data-grid-row>\n\n <!-- The messages below are not rows, so assistive technology does not see them here: the\n status region after the grid announces the same text. -->\n @if (loading()) {\n <div class=\"loading\" aria-hidden=\"true\" [style.height.px]=\"rowHeight\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\">\n <circle class=\"opacity-25\" cx=\"12\" cy=\"12\" r=\"10\" stroke=\"currentColor\" stroke-width=\"4\"></circle>\n <path\n class=\"opacity-75\"\n fill=\"currentColor\"\n d=\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"\n ></path>\n </svg>\n <span>\n {{ dataGridDataset.configs.loadingDisplayText ?? '' | translate }}\n </span>\n </div>\n }\n @if (!loading() && !hasBeenLoaded && !hasFailed() && lazyLoadRows()) {\n <div class=\"message\" aria-hidden=\"true\" [style.height.px]=\"rowHeight\">\n <span>\n {{ messageToDisplayWhenLazyLoad | translate }}\n </span>\n </div>\n }\n <!-- A failed load shows its message even when no load has succeeded yet: the first one failing\n used to leave the grid blank. -->\n @if (!loading() && (hasFailed() || (hasBeenLoaded && !hasLoadedRows))) {\n @if (!hasFailed() && !hasLoadedRows && hasMessageToDisplayWhenEmpty && shouldDisplayMessageWhenEmpty) {\n <div class=\"message\" aria-hidden=\"true\" [style.height.px]=\"rowHeight\">\n <span>\n {{ messageToDisplayWhenEmpty | translate }}\n </span>\n </div>\n }\n @if (hasFailed()) {\n <div class=\"message\" aria-hidden=\"true\" [style.height.px]=\"rowHeight\">\n <span>\n <i class=\"fas fa-exclamation-triangle mr-2 text-yellow-600\"></i\n >{{ messageToDisplayWhenFailed | translate }}\n </span>\n </div>\n }\n }\n </cdk-virtual-scroll-viewport>\n </div>\n </div>\n</div>\n\n<!-- Polite: screen readers hear the loading, lazy-load, empty and failure messages, and how many rows\na copy took, without losing their place. Always in the page, so a change of text is announced. -->\n<div class=\"status\" role=\"status\">\n {{ fillCopiedCount(statusText | translate: { count: formattedCopiedCount }) }}\n</div>\n\n@if (shouldShowTotalRows) {\n <div class=\"footer\">\n {{ fillCount(totalRowsText | translate: { count: formattedTotalRows }) }}\n </div>\n}\n\n<!-- The column chooser, opened in a CDK overlay under its button. The focus is trapped inside;\nEscape and a click outside close it and give the focus back to the button. -->\n<ng-template #columnChooserTemplate>\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"column-chooser\"\n cdkTrapFocus\n role=\"dialog\"\n [attr.aria-label]=\"columnChooserText | translate\"\n [attr.id]=\"columnChooserId\"\n (keydown)=\"onColumnChooserKeydown($event)\"\n >\n <ul class=\"column-chooser-list\">\n @for (column of hideableColumns; track column) {\n <li>\n <label class=\"column-chooser-option\">\n <input\n class=\"form-input\"\n type=\"checkbox\"\n [checked]=\"!dataGridDataset.isColumnHidden(column)\"\n [disabled]=\"!dataGridDataset.isColumnHidden(column) && !dataGridDataset.canHideColumn(column)\"\n (change)=\"onToggleColumn(column, $event)\"\n />\n <span>{{ column.headerName || column.field | translate }}</span>\n </label>\n </li>\n }\n </ul>\n <button class=\"column-chooser-reset\" type=\"button\" (click)=\"onResetColumns()\">\n {{ resetColumnsText | translate }}\n </button>\n </div>\n</ng-template>\n",
|
|
6468
|
-
styles: ["@charset \"UTF-8\";@layer properties;:host{display:flex;flex-direction:column;overflow:hidden}:host:not(.no-borders){background-color:var(--color-surface-solid)}:host:not(.no-borders):not(.hide-borders){border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-line);border-radius:var(--surface-radius, .5rem)}:host.compact .header .header-row,:host.compact .column-chooser-slot{padding-block:calc(var(--spacing, .25rem) * 1.5)}:host.compact .body lib-data-grid-row{padding-block:var(--spacing, .25rem)}:host.no-borders .header .header-row{padding-block:calc(var(--spacing, .25rem) * 1.5)}:host.no-borders .column-chooser-slot{padding-block:calc(var(--spacing, .25rem) * 1.5)}:host.no-borders .body lib-data-grid-row{padding-block:var(--spacing, .25rem)}.grid-frame{position:relative;display:flex;min-height:0px;flex-grow:1;flex-direction:column}.grid{display:flex;min-height:0px;flex-grow:1;flex-direction:column;overflow:hidden}.column-chooser-slot{position:absolute;inset-inline-end:calc(var(--spacing, .25rem) * 0);top:0;z-index:2;display:flex;align-items:center;padding-block:calc(var(--spacing, .25rem) * 3);padding-inline-start:var(--spacing, .25rem);padding-inline-end:calc(var(--spacing, .25rem) * 2);-webkit-user-select:none;user-select:none;background:linear-gradient(color-mix(in srgb,oklch(21% .034 264.665) 14%,transparent),color-mix(in srgb,oklch(21% .034 264.665) 14%,transparent)),var(--color-surface-solid)}@supports (color: color-mix(in lab,red,red)){.column-chooser-slot{background:linear-gradient(color-mix(in srgb,var(--color-content-primary) 14%,transparent),color-mix(in srgb,var(--color-content-primary) 14%,transparent)),var(--color-surface-solid)}}.column-chooser-button{display:inline-flex;height:calc(var(--spacing, .25rem) * 6);width:calc(var(--spacing, .25rem) * 6);cursor:pointer;align-items:center;justify-content:center;border-style:var(--tw-border-style);border-width:1px;border-color:transparent;border-radius:var(--radius-control);color:var(--color-content-secondary)}.column-chooser-button:hover{background-color:var(--state-hover);color:var(--color-content-primary)}.column-chooser-button:focus-visible{outline:var(--focus-ring-width) solid var(--color-focus-ring);outline-offset:0}:host.has-column-chooser .header-row,:host.has-column-chooser .body lib-data-grid-row{padding-inline-end:2.5rem}.status,.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border-width:0}.header-row,lib-data-grid-row,.loading,.message{gap:calc(var(--spacing, .25rem) * 4);padding-inline:calc(var(--spacing, .25rem) * 4)}.header{overflow:hidden;border-bottom-style:var(--tw-border-style);border-bottom-width:1px;--tw-font-weight: var(--font-weight-bold, 700);font-weight:var(--font-weight-bold, 700);-webkit-user-select:none;user-select:none;background-color:color-mix(in srgb,oklch(21% .034 264.665) 14%,transparent);border-color:var(--color-line)}@supports (color: color-mix(in lab,red,red)){.header{background-color:color-mix(in srgb,var(--color-content-primary) 14%,transparent)}}.header.hide{display:none}.header .header-row{display:flex;flex-direction:row;padding-block:calc(var(--spacing, .25rem) * 3)}.header .header-cell{position:relative;display:flex;align-items:center;white-space:nowrap}.header .header-cell .header-text{min-width:0px;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.header .header-cell:not(.selection){flex:none}.header .header-cell.selection{display:flex;align-items:center}.header .header-cell.align-center{text-align:center}.header .header-cell.align-end{text-align:end}.header .header-cell.pinned{z-index:2;margin-inline-start:-1rem;padding-inline-start:1rem;background:linear-gradient(color-mix(in srgb,oklch(21% .034 264.665) 14%,transparent),color-mix(in srgb,oklch(21% .034 264.665) 14%,transparent)),var(--color-surface-solid)}@supports (color: color-mix(in lab,red,red)){.header .header-cell.pinned{background:linear-gradient(color-mix(in srgb,var(--color-content-primary) 14%,transparent),color-mix(in srgb,var(--color-content-primary) 14%,transparent)),var(--color-surface-solid)}}.header .header-cell.pinned:not(.selection){box-shadow:1px 0 0 var(--color-line-strong)}.header .header-cell.pinned:not(.selection):dir(rtl){box-shadow:-1px 0 0 var(--color-line-strong)}.header .resize-handle{position:absolute;top:0;bottom:0;z-index:1;cursor:col-resize;touch-action:none;inset-inline-end:-.875rem;width:.75rem}.header .resize-handle:after{position:absolute;top:0;bottom:0;opacity:0%;content:\"\";inset-inline-start:calc(50% - 1px);width:2px;background-color:var(--color-line-strong);transition:opacity var(--duration-short) var(--ease-standard)}.header .resize-handle:hover:after,.header .resize-handle:active:after,.header .resize-handle:focus-visible:after{opacity:100%}.header .resize-handle:focus-visible{outline:var(--focus-ring-width) solid var(--color-focus-ring);outline-offset:calc(-1 * var(--focus-ring-width))}.column-chooser{display:flex;flex-direction:column;gap:calc(var(--spacing, .25rem) * 2);border-style:var(--tw-border-style);border-width:1px;padding:calc(var(--spacing, .25rem) * 2);min-width:12rem;max-height:20rem;border-color:var(--color-line);border-radius:var(--radius-control);background-color:var(--color-surface-solid);color:var(--color-content-primary);box-shadow:var(--shadow-overlay);font-size:var(--text-body)}.column-chooser-list{display:flex;flex-direction:column;overflow-y:auto}.column-chooser-option{display:flex;cursor:pointer;align-items:center;gap:calc(var(--spacing, .25rem) * 2);padding-inline:calc(var(--spacing, .25rem) * 2);padding-block:var(--spacing, .25rem);white-space:nowrap;border-radius:var(--radius-control)}.column-chooser-option:hover{background-color:var(--state-hover)}.column-chooser-option:has(input:disabled){cursor:default;opacity:var(--opacity-disabled)}.column-chooser-reset{cursor:pointer;border-style:var(--tw-border-style);border-width:1px;padding-inline:calc(var(--spacing, .25rem) * 2);padding-block:var(--spacing, .25rem);text-align:start;border-color:var(--color-line);border-radius:var(--radius-control)}.column-chooser-reset:hover{background-color:var(--state-hover)}.column-chooser-reset:focus-visible{outline:var(--focus-ring-width) solid var(--color-focus-ring);outline-offset:0}.footer{overflow:hidden;border-top-style:var(--tw-border-style);border-top-width:1px;padding-inline:calc(var(--spacing, .25rem) * 4);padding-block:calc(var(--spacing, .25rem) * 1.5);text-overflow:ellipsis;white-space:nowrap;border-color:var(--color-line);color:var(--color-content-secondary);font-size:var(--text-caption);font-variant-numeric:tabular-nums}.body{position:relative;flex-grow:1}.body cdk-virtual-scroll-viewport{position:absolute;inset:0}.body cdk-virtual-scroll-viewport ::ng-deep .cdk-virtual-scroll-content-wrapper{display:grid;grid-template-columns:inherit}.body lib-data-grid-row{margin-top:-1px;cursor:pointer;border-block-style:var(--tw-border-style);border-block-width:1px;padding-block:calc(var(--spacing, .25rem) * 2);border-color:var(--color-line)}.body lib-data-grid-row.striped{background-color:var(--state-hover)}.body lib-data-grid-row:hover{background-color:var(--state-selected)}.body lib-data-grid-row.focused{z-index:1;border-color:var(--color-line-strong)}.body lib-data-grid-row:focus-visible{position:relative;z-index:20;outline:var(--focus-ring-width) solid var(--color-focus-ring);outline-offset:calc(-1 * var(--focus-ring-width))}.body lib-data-grid-row.selected{position:relative;z-index:10;background-color:var(--state-selected);border-color:var(--color-line-selected)}.body lib-data-grid-row.selected:hover{background-color:var(--state-selected)}.body .loading,.body .message{display:flex;align-items:center;gap:calc(var(--spacing, .25rem) * 2);white-space:nowrap;-webkit-user-select:none;user-select:none;height:calc(var(--spacing, .25rem) * 10);border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:var(--color-line);grid-column:1 / -1}.body .loading span,.body .message span{overflow:hidden;text-overflow:ellipsis}.body .loading svg{height:calc(var(--spacing, .25rem) * 6);min-height:calc(var(--spacing, .25rem) * 6);width:calc(var(--spacing, .25rem) * 6);min-width:calc(var(--spacing, .25rem) * 6);animation:var(--animate-spin, spin 1s linear infinite);transition-property:opacity;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration, var(--default-transition-duration, .15s));transition-duration:var(--duration-short);transition-timing-function:var(--ease-standard)}.buttons{display:flex;border-top-style:var(--tw-border-style);border-top-width:1px;border-bottom-style:var(--tw-border-style);border-bottom-width:1px;padding:var(--spacing, .25rem);border-color:var(--color-line)}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@keyframes spin{to{transform:rotate(360deg)}}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-font-weight: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
|
|
6481
|
+
template: "@if (showButtons()) {\n <div class=\"buttons\">\n <ng-content select=\"[buttons]\"></ng-content>\n </div>\n}\n\n<!-- The WAI-ARIA grid pattern at row level: the header and the rows are the grid. The toolbar\nabove and the footer below are not rows, so they stay outside it. The keys are handled here, for\nthe row that has the focus; see onKeydown. The grid element itself takes no focus: its rows do,\nand their keydown bubbles up to it. -->\n<div class=\"grid-frame\">\n <!-- The column chooser button sits over the end of the header. It is not part of the grid: a\n row may hold only cells, so a control between them would break the grid's role tree. It comes\n before the grid in the Tab order, a Tab stop of its own as the select-all checkbox is. -->\n @if (showColumnChooser && !isHideColumns) {\n <div class=\"column-chooser-slot\">\n <button\n #columnChooserButton\n class=\"column-chooser-button\"\n aria-haspopup=\"dialog\"\n type=\"button\"\n [attr.aria-controls]=\"columnChooserOpen() ? columnChooserId : null\"\n [attr.aria-expanded]=\"columnChooserOpen()\"\n [attr.aria-label]=\"columnChooserText | translate\"\n [libTooltip]=\"columnChooserOpen() ? null : columnChooserText\"\n (click)=\"onToggleColumnChooser()\"\n >\n <i class=\"fa-solid fa-table-columns\" aria-hidden=\"true\"></i>\n </button>\n </div>\n }\n\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"grid\"\n role=\"grid\"\n [attr.aria-disabled]=\"disabled() ? true : null\"\n [attr.aria-label]=\"gridLabel ? (gridLabel | translate) : null\"\n [attr.aria-multiselectable]=\"isShowMultiSelect ? true : null\"\n [attr.aria-rowcount]=\"ariaRowCount\"\n (keydown)=\"onKeydown($event)\"\n >\n <div class=\"header\" role=\"rowgroup\" [class.hide]=\"isHideColumns\" [style.padding-right.px]=\"headerRightMargin()\">\n <!-- Translated by however far the body is scrolled sideways. The rows scroll inside the CDK\n viewport and the header sits outside it, so without this the headings simply stay put\n while the cells move away from them. -->\n <div\n class=\"header-row\"\n aria-rowindex=\"1\"\n role=\"row\"\n [style.transform]=\"headerScrollLeft() ? 'translateX(-' + headerScrollLeft() + 'px)' : null\"\n >\n @if (isShowMultiSelect) {\n <div\n class=\"header-cell selection\"\n role=\"columnheader\"\n [class.pinned]=\"pinFirstColumn\"\n [style.transform]=\"pinnedHeaderTransform()\"\n [ngStyle]=\"{\n width: selectionColWidth ? selectionColWidth : null,\n }\"\n >\n <!-- Selects or clears every loaded row. Rows a paged grid has not loaded yet are not part\n of it. A native checkbox, so it is focusable and toggles with Space. -->\n <input\n class=\"form-input\"\n type=\"checkbox\"\n [attr.aria-label]=\"selectAllText | translate\"\n [attr.disabled]=\"disabled() || !hasLoadedRows ? true : null\"\n [checked]=\"allRowsSelected\"\n [indeterminate]=\"someRowsSelected\"\n (change)=\"onToggleSelectAll()\"\n />\n </div>\n }\n\n <!-- A measured zero is a width, not the absence of one: it is a 1fr column that collapsed,\n and its heading has to collapse too.\n\n Such a heading is removed rather than merely made zero wide, because a flex item still\n takes a gap on each side while the body grid allows the collapsed track only one, and\n that spare gap pushed every heading to its right out by 16px. -->\n <!-- With pinFirstColumn, the first heading, and the select-all heading before it, move back by\n as much as the header row moves, so they stay in place over their pinned cells. -->\n @for (column of columns; track column; let first = $first) {\n @let width = headerWidth(column);\n <div\n class=\"header-cell\"\n role=\"columnheader\"\n [class.pinned]=\"pinFirstColumn && first\"\n [style.transform]=\"first ? pinnedHeaderTransform() : null\"\n [class.align-center]=\"alignOf(column) === 'center'\"\n [class.align-end]=\"alignOf(column) === 'end'\"\n [ngStyle]=\"{\n display: width === 0 ? 'none' : null,\n 'width.px': width,\n }\"\n >\n @if (column.type === 'actions' && !column.headerName) {\n <!-- An empty column header leaves the column unnamed for screen readers. -->\n <span class=\"visually-hidden\">{{ actionsColumnText | translate }}</span>\n } @else {\n <span class=\"header-text\">{{ column.headerName | translate }}</span>\n }\n <!-- The width sets the column's track in the rows' template. The header then copies the\n cell measured in the first row, as for any column. ArrowLeft and ArrowRight change the\n width; a double click gives the column its declared size back. -->\n @if (isResizable(column)) {\n @let columnName = column.headerName | translate;\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events -->\n <div\n class=\"resize-handle\"\n aria-orientation=\"vertical\"\n role=\"separator\"\n tabindex=\"0\"\n [attr.aria-label]=\"fillColumn(resizeColumnText | translate: { column: columnName }, columnName)\"\n [attr.aria-valuemin]=\"minColumnWidth\"\n [attr.aria-valuenow]=\"resizeValue(column)\"\n (click)=\"$event.stopPropagation()\"\n (dblclick)=\"onResizeReset($event, column)\"\n (keydown)=\"onResizeKeydown($event, column)\"\n (pointerdown)=\"onResizeStart($event, column)\"\n ></div>\n }\n </div>\n }\n </div>\n </div>\n\n <div #body class=\"body\" [style.min-height.px]=\"bodyMinHeight\">\n <!-- The viewport is the rowgroup. A disabled grid with rows takes them out of the Tab order, and\n the viewport then takes the Tab stop, named like the grid, so a keyboard user can still scroll\n the rows with the arrow keys. A focusable element inside a grid needs a grid role, which is why\n the role sits here. -->\n <cdk-virtual-scroll-viewport\n role=\"rowgroup\"\n [attr.tabindex]=\"disabled() && hasLoadedRows ? 0 : null\"\n [attr.aria-label]=\"disabled() && hasLoadedRows && gridLabel ? (gridLabel | translate) : null\"\n [itemSize]=\"rowHeight\"\n [style.--grid-pin-offset]=\"pinOffset\"\n [style.grid-template-columns]=\"gridColumns\"\n >\n @let tabbableKey = tabbableRowKey;\n <lib-data-grid-row\n #row\n *cdkVirtualFor=\"let row of dataGridDataset.loadedRows; index as i; trackBy: trackByFn\"\n [disabled]=\"disabled()\"\n [isFirstRow]=\"isFirstVisibleRow(i)\"\n [rowData]=\"row\"\n [rowIndex]=\"i\"\n [style.height.px]=\"rowHeight\"\n [tabbable]=\"dataGridDataset.getRowInternalKey(row) === tabbableKey\"\n (selectionResized)=\"onSelectionResized($event)\"\n >\n </lib-data-grid-row>\n\n <!-- The messages below are not rows, so assistive technology does not see them here: the\n status region after the grid announces the same text. -->\n @if (loading()) {\n <div class=\"loading\" aria-hidden=\"true\" [style.height.px]=\"rowHeight\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\">\n <circle class=\"opacity-25\" cx=\"12\" cy=\"12\" r=\"10\" stroke=\"currentColor\" stroke-width=\"4\"></circle>\n <path\n class=\"opacity-75\"\n fill=\"currentColor\"\n d=\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"\n ></path>\n </svg>\n <span>\n {{ dataGridDataset.configs.loadingDisplayText ?? '' | translate }}\n </span>\n </div>\n }\n @if (!loading() && !hasBeenLoaded && !hasFailed() && lazyLoadRows()) {\n <div class=\"message\" aria-hidden=\"true\" [style.height.px]=\"rowHeight\">\n <span>\n {{ messageToDisplayWhenLazyLoad | translate }}\n </span>\n </div>\n }\n <!-- A failed load shows its message even when no load has succeeded yet: the first one failing\n used to leave the grid blank. -->\n @if (!loading() && (hasFailed() || (hasBeenLoaded && !hasLoadedRows))) {\n @if (!hasFailed() && !hasLoadedRows && hasMessageToDisplayWhenEmpty && shouldDisplayMessageWhenEmpty) {\n <div class=\"message\" aria-hidden=\"true\" [style.height.px]=\"rowHeight\">\n <span>\n {{ messageToDisplayWhenEmpty | translate }}\n </span>\n </div>\n }\n @if (hasFailed()) {\n <div class=\"message\" aria-hidden=\"true\" [style.height.px]=\"rowHeight\">\n <span>\n <i class=\"fas fa-exclamation-triangle mr-2 text-yellow-600\"></i\n >{{ messageToDisplayWhenFailed | translate }}\n </span>\n </div>\n }\n }\n </cdk-virtual-scroll-viewport>\n </div>\n </div>\n</div>\n\n<!-- Polite: screen readers hear the loading, lazy-load, empty and failure messages, and how many rows\na copy took, without losing their place. Always in the page, so a change of text is announced. -->\n<div class=\"status\" role=\"status\">\n {{ fillCopiedCount(statusText | translate: { count: formattedCopiedCount }) }}\n</div>\n\n@if (shouldShowTotalRows) {\n <div class=\"footer\">\n {{ fillCount(totalRowsText | translate: { count: formattedTotalRows }) }}\n </div>\n}\n\n<!-- The column chooser, opened in a CDK overlay under its button. The focus is trapped inside;\nEscape and a click outside close it and give the focus back to the button. -->\n<ng-template #columnChooserTemplate>\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"column-chooser\"\n cdkTrapFocus\n role=\"dialog\"\n [attr.aria-label]=\"columnChooserText | translate\"\n [attr.id]=\"columnChooserId\"\n (keydown)=\"onColumnChooserKeydown($event)\"\n >\n <ul class=\"column-chooser-list\">\n @for (column of hideableColumns; track column) {\n <li>\n <label class=\"column-chooser-option\">\n <input\n class=\"form-input\"\n type=\"checkbox\"\n [checked]=\"!dataGridDataset.isColumnHidden(column)\"\n [disabled]=\"!dataGridDataset.isColumnHidden(column) && !dataGridDataset.canHideColumn(column)\"\n (change)=\"onToggleColumn(column, $event)\"\n />\n <span>{{ column.headerName || column.field | translate }}</span>\n </label>\n </li>\n }\n </ul>\n <button class=\"column-chooser-reset\" type=\"button\" (click)=\"onResetColumns()\">\n {{ resetColumnsText | translate }}\n </button>\n </div>\n</ng-template>\n",
|
|
6482
|
+
styles: ["@charset \"UTF-8\";@layer properties;:host{display:flex;flex-direction:column;overflow:hidden}:host:not(.no-borders){background-color:var(--color-surface-solid)}:host:not(.no-borders):not(.hide-borders){border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-line);border-radius:var(--surface-radius, .5rem)}:host.compact .header .header-row,:host.compact .column-chooser-slot{padding-block:calc(var(--spacing, .25rem) * 1.5)}:host.compact .body lib-data-grid-row{padding-block:var(--spacing, .25rem)}:host.no-borders.pin-first-column .grid{background-color:var(--color-surface-solid)}:host.no-borders .header .header-row{padding-block:calc(var(--spacing, .25rem) * 1.5)}:host.no-borders .column-chooser-slot{padding-block:calc(var(--spacing, .25rem) * 1.5)}:host.no-borders .body lib-data-grid-row{padding-block:var(--spacing, .25rem)}.grid-frame{position:relative;display:flex;min-height:0px;flex-grow:1;flex-direction:column}.grid{display:flex;min-height:0px;flex-grow:1;flex-direction:column;overflow:hidden}.column-chooser-slot{position:absolute;inset-inline-end:calc(var(--spacing, .25rem) * 0);top:0;z-index:2;display:flex;align-items:center;padding-block:calc(var(--spacing, .25rem) * 3);padding-inline-start:var(--spacing, .25rem);padding-inline-end:calc(var(--spacing, .25rem) * 2);-webkit-user-select:none;user-select:none;background:linear-gradient(color-mix(in srgb,oklch(21% .034 264.665) 14%,transparent),color-mix(in srgb,oklch(21% .034 264.665) 14%,transparent)),var(--color-surface-solid)}@supports (color: color-mix(in lab,red,red)){.column-chooser-slot{background:linear-gradient(color-mix(in srgb,var(--color-content-primary) 14%,transparent),color-mix(in srgb,var(--color-content-primary) 14%,transparent)),var(--color-surface-solid)}}.column-chooser-button{display:inline-flex;height:calc(var(--spacing, .25rem) * 6);width:calc(var(--spacing, .25rem) * 6);cursor:pointer;align-items:center;justify-content:center;border-style:var(--tw-border-style);border-width:1px;border-color:transparent;border-radius:var(--radius-control);color:var(--color-content-secondary)}.column-chooser-button:hover{background-color:var(--state-hover);color:var(--color-content-primary)}.column-chooser-button:focus-visible{outline:var(--focus-ring-width) solid var(--color-focus-ring);outline-offset:0}:host.has-column-chooser .header-row,:host.has-column-chooser .body lib-data-grid-row{padding-inline-end:2.5rem}.status,.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border-width:0}.header-row,lib-data-grid-row,.loading,.message{gap:calc(var(--spacing, .25rem) * 4);padding-inline:calc(var(--spacing, .25rem) * 4)}.header{overflow:hidden;border-bottom-style:var(--tw-border-style);border-bottom-width:1px;--tw-font-weight: var(--font-weight-bold, 700);font-weight:var(--font-weight-bold, 700);-webkit-user-select:none;user-select:none;background-color:color-mix(in srgb,oklch(21% .034 264.665) 14%,transparent);border-color:var(--color-line)}@supports (color: color-mix(in lab,red,red)){.header{background-color:color-mix(in srgb,var(--color-content-primary) 14%,transparent)}}.header.hide{display:none}.header .header-row{display:flex;flex-direction:row;padding-block:calc(var(--spacing, .25rem) * 3)}.header .header-cell{position:relative;display:flex;align-items:center;white-space:nowrap}.header .header-cell .header-text{min-width:0px;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.header .header-cell:not(.selection){flex:none}.header .header-cell.selection{display:flex;align-items:center}.header .header-cell.align-center{text-align:center}.header .header-cell.align-end{text-align:end}.header .header-cell.pinned{z-index:2;margin-inline-start:-1rem;padding-inline-start:1rem;background:linear-gradient(color-mix(in srgb,oklch(21% .034 264.665) 14%,transparent),color-mix(in srgb,oklch(21% .034 264.665) 14%,transparent)),var(--color-surface-solid)}@supports (color: color-mix(in lab,red,red)){.header .header-cell.pinned{background:linear-gradient(color-mix(in srgb,var(--color-content-primary) 14%,transparent),color-mix(in srgb,var(--color-content-primary) 14%,transparent)),var(--color-surface-solid)}}.header .header-cell.pinned:not(.selection){box-shadow:1px 0 0 var(--color-line-strong)}.header .header-cell.pinned:not(.selection):dir(rtl){box-shadow:-1px 0 0 var(--color-line-strong)}.header .resize-handle{position:absolute;top:0;bottom:0;z-index:1;cursor:col-resize;touch-action:none;inset-inline-end:-.875rem;width:.75rem}.header .resize-handle:after{position:absolute;top:0;bottom:0;opacity:0%;content:\"\";inset-inline-start:calc(50% - 1px);width:2px;background-color:var(--color-line-strong);transition:opacity var(--duration-short) var(--ease-standard)}.header .resize-handle:hover:after,.header .resize-handle:active:after,.header .resize-handle:focus-visible:after{opacity:100%}.header .resize-handle:focus-visible{outline:var(--focus-ring-width) solid var(--color-focus-ring);outline-offset:calc(-1 * var(--focus-ring-width))}.column-chooser{display:flex;flex-direction:column;gap:calc(var(--spacing, .25rem) * 2);border-style:var(--tw-border-style);border-width:1px;padding:calc(var(--spacing, .25rem) * 2);min-width:12rem;max-height:20rem;border-color:var(--color-line);border-radius:var(--radius-control);background-color:var(--color-surface-solid);color:var(--color-content-primary);box-shadow:var(--shadow-overlay);font-size:var(--text-body)}.column-chooser-list{display:flex;flex-direction:column;overflow-y:auto}.column-chooser-option{display:flex;cursor:pointer;align-items:center;gap:calc(var(--spacing, .25rem) * 2);padding-inline:calc(var(--spacing, .25rem) * 2);padding-block:var(--spacing, .25rem);white-space:nowrap;border-radius:var(--radius-control)}.column-chooser-option:hover{background-color:var(--state-hover)}.column-chooser-option:has(input:disabled){cursor:default;opacity:var(--opacity-disabled)}.column-chooser-reset{cursor:pointer;border-style:var(--tw-border-style);border-width:1px;padding-inline:calc(var(--spacing, .25rem) * 2);padding-block:var(--spacing, .25rem);text-align:start;border-color:var(--color-line);border-radius:var(--radius-control)}.column-chooser-reset:hover{background-color:var(--state-hover)}.column-chooser-reset:focus-visible{outline:var(--focus-ring-width) solid var(--color-focus-ring);outline-offset:0}.footer{overflow:hidden;border-top-style:var(--tw-border-style);border-top-width:1px;padding-inline:calc(var(--spacing, .25rem) * 4);padding-block:calc(var(--spacing, .25rem) * 1.5);text-overflow:ellipsis;white-space:nowrap;border-color:var(--color-line);color:var(--color-content-secondary);font-size:var(--text-caption);font-variant-numeric:tabular-nums}.body{position:relative;flex-grow:1}.body cdk-virtual-scroll-viewport{position:absolute;inset:0}.body cdk-virtual-scroll-viewport:focus-visible{outline:none;box-shadow:inset 0 0 0 var(--focus-ring-width) var(--color-focus-ring)}.body cdk-virtual-scroll-viewport ::ng-deep .cdk-virtual-scroll-content-wrapper{display:grid;grid-template-columns:inherit}.body lib-data-grid-row{margin-top:-1px;cursor:pointer;border-block-style:var(--tw-border-style);border-block-width:1px;padding-block:calc(var(--spacing, .25rem) * 2);border-color:var(--color-line)}.body lib-data-grid-row.striped{background-color:var(--state-hover)}.body lib-data-grid-row:hover{background-color:var(--state-selected)}.body lib-data-grid-row.focused{z-index:1;border-color:var(--color-line-strong)}.body lib-data-grid-row:focus-visible{position:relative;z-index:20;outline:var(--focus-ring-width) solid var(--color-focus-ring);outline-offset:calc(-1 * var(--focus-ring-width))}.body lib-data-grid-row.selected{position:relative;z-index:10;background-color:var(--state-selected);border-color:var(--color-line-selected)}.body lib-data-grid-row.selected:hover{background-color:var(--state-selected)}.body .loading,.body .message{display:flex;align-items:center;gap:calc(var(--spacing, .25rem) * 2);white-space:nowrap;-webkit-user-select:none;user-select:none;height:calc(var(--spacing, .25rem) * 10);border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:var(--color-line);grid-column:1 / -1}.body .loading span,.body .message span{overflow:hidden;text-overflow:ellipsis}.body .loading svg{height:calc(var(--spacing, .25rem) * 6);min-height:calc(var(--spacing, .25rem) * 6);width:calc(var(--spacing, .25rem) * 6);min-width:calc(var(--spacing, .25rem) * 6);animation:var(--animate-spin, spin 1s linear infinite);transition-property:opacity;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration, var(--default-transition-duration, .15s));transition-duration:var(--duration-short);transition-timing-function:var(--ease-standard)}.buttons{display:flex;border-top-style:var(--tw-border-style);border-top-width:1px;border-bottom-style:var(--tw-border-style);border-bottom-width:1px;padding:var(--spacing, .25rem);border-color:var(--color-line)}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@keyframes spin{to{transform:rotate(360deg)}}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-font-weight: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
|
|
6469
6483
|
dependencies: [
|
|
6470
6484
|
{
|
|
6471
6485
|
kind: "ngmodule",
|
|
@@ -6572,8 +6586,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6572
6586
|
TooltipDirective,
|
|
6573
6587
|
TranslatePipe
|
|
6574
6588
|
],
|
|
6575
|
-
template: "@if (showButtons()) {\n <div class=\"buttons\">\n <ng-content select=\"[buttons]\"></ng-content>\n </div>\n}\n\n<!-- The WAI-ARIA grid pattern at row level: the header and the rows are the grid. The toolbar\nabove and the footer below are not rows, so they stay outside it. The keys are handled here, for\nthe row that has the focus; see onKeydown. The grid element itself takes no focus: its rows do,\nand their keydown bubbles up to it. -->\n<div class=\"grid-frame\">\n <!-- The column chooser button sits over the end of the header. It is not part of the grid: a\n row may hold only cells, so a control between them would break the grid's role tree. It comes\n before the grid in the Tab order, a Tab stop of its own as the select-all checkbox is. -->\n @if (showColumnChooser && !isHideColumns) {\n <div class=\"column-chooser-slot\">\n <button\n #columnChooserButton\n class=\"column-chooser-button\"\n aria-haspopup=\"dialog\"\n type=\"button\"\n [attr.aria-controls]=\"columnChooserOpen() ? columnChooserId : null\"\n [attr.aria-expanded]=\"columnChooserOpen()\"\n [attr.aria-label]=\"columnChooserText | translate\"\n [libTooltip]=\"columnChooserOpen() ? null : columnChooserText\"\n (click)=\"onToggleColumnChooser()\"\n >\n <i class=\"fa-solid fa-table-columns\" aria-hidden=\"true\"></i>\n </button>\n </div>\n }\n\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"grid\"\n role=\"grid\"\n [attr.aria-disabled]=\"disabled() ? true : null\"\n [attr.aria-label]=\"gridLabel ? (gridLabel | translate) : null\"\n [attr.aria-multiselectable]=\"isShowMultiSelect ? true : null\"\n [attr.aria-rowcount]=\"ariaRowCount\"\n (keydown)=\"onKeydown($event)\"\n >\n <div class=\"header\" role=\"rowgroup\" [class.hide]=\"isHideColumns\" [style.padding-right.px]=\"headerRightMargin()\">\n <!-- Translated by however far the body is scrolled sideways. The rows scroll inside the CDK\n viewport and the header sits outside it, so without this the headings simply stay put\n while the cells move away from them. -->\n <div\n class=\"header-row\"\n aria-rowindex=\"1\"\n role=\"row\"\n [style.transform]=\"headerScrollLeft() ? 'translateX(-' + headerScrollLeft() + 'px)' : null\"\n >\n @if (isShowMultiSelect) {\n <div\n class=\"header-cell selection\"\n role=\"columnheader\"\n [class.pinned]=\"pinFirstColumn\"\n [style.transform]=\"pinnedHeaderTransform()\"\n [ngStyle]=\"{\n width: selectionColWidth ? selectionColWidth : null,\n }\"\n >\n <!-- Selects or clears every loaded row. Rows a paged grid has not loaded yet are not part\n of it. A native checkbox, so it is focusable and toggles with Space. -->\n <input\n class=\"form-input\"\n type=\"checkbox\"\n [attr.aria-label]=\"selectAllText | translate\"\n [attr.disabled]=\"disabled() || !hasLoadedRows ? true : null\"\n [checked]=\"allRowsSelected\"\n [indeterminate]=\"someRowsSelected\"\n (change)=\"onToggleSelectAll()\"\n />\n </div>\n }\n\n <!-- A measured zero is a width, not the absence of one: it is a 1fr column that collapsed,\n and its heading has to collapse too.\n\n Such a heading is removed rather than merely made zero wide, because a flex item still\n takes a gap on each side while the body grid allows the collapsed track only one, and\n that spare gap pushed every heading to its right out by 16px. -->\n <!-- With pinFirstColumn, the first heading, and the select-all heading before it, move back by\n as much as the header row moves, so they stay in place over their pinned cells. -->\n @for (column of columns; track column; let first = $first) {\n @let width = headerWidth(column);\n <div\n class=\"header-cell\"\n role=\"columnheader\"\n [class.pinned]=\"pinFirstColumn && first\"\n [style.transform]=\"first ? pinnedHeaderTransform() : null\"\n [class.align-center]=\"alignOf(column) === 'center'\"\n [class.align-end]=\"alignOf(column) === 'end'\"\n [ngStyle]=\"{\n display: width === 0 ? 'none' : null,\n 'width.px': width,\n }\"\n >\n @if (column.type === 'actions' && !column.headerName) {\n <!-- An empty column header leaves the column unnamed for screen readers. -->\n <span class=\"visually-hidden\">{{ actionsColumnText | translate }}</span>\n } @else {\n <span class=\"header-text\">{{ column.headerName | translate }}</span>\n }\n <!-- The width sets the column's track in the rows' template. The header then copies the\n cell measured in the first row, as for any column. ArrowLeft and ArrowRight change the\n width; a double click gives the column its declared size back. -->\n @if (isResizable(column)) {\n @let columnName = column.headerName | translate;\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events -->\n <div\n class=\"resize-handle\"\n aria-orientation=\"vertical\"\n role=\"separator\"\n tabindex=\"0\"\n [attr.aria-label]=\"fillColumn(resizeColumnText | translate: { column: columnName }, columnName)\"\n [attr.aria-valuemin]=\"minColumnWidth\"\n [attr.aria-valuenow]=\"resizeValue(column)\"\n (click)=\"$event.stopPropagation()\"\n (dblclick)=\"onResizeReset($event, column)\"\n (keydown)=\"onResizeKeydown($event, column)\"\n (pointerdown)=\"onResizeStart($event, column)\"\n ></div>\n }\n </div>\n }\n </div>\n </div>\n\n <div #body class=\"body\" role=\"rowgroup\" [style.min-height.px]=\"bodyMinHeight\">\n <cdk-virtual-scroll-viewport\n [itemSize]=\"rowHeight\"\n [style.--grid-pin-offset]=\"pinOffset\"\n [style.grid-template-columns]=\"gridColumns\"\n >\n @let tabbableKey = tabbableRowKey;\n <lib-data-grid-row\n #row\n *cdkVirtualFor=\"let row of dataGridDataset.loadedRows; index as i; trackBy: trackByFn\"\n [disabled]=\"disabled()\"\n [isFirstRow]=\"isFirstVisibleRow(i)\"\n [rowData]=\"row\"\n [rowIndex]=\"i\"\n [style.height.px]=\"rowHeight\"\n [tabbable]=\"dataGridDataset.getRowInternalKey(row) === tabbableKey\"\n (selectionResized)=\"onSelectionResized($event)\"\n >\n </lib-data-grid-row>\n\n <!-- The messages below are not rows, so assistive technology does not see them here: the\n status region after the grid announces the same text. -->\n @if (loading()) {\n <div class=\"loading\" aria-hidden=\"true\" [style.height.px]=\"rowHeight\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\">\n <circle class=\"opacity-25\" cx=\"12\" cy=\"12\" r=\"10\" stroke=\"currentColor\" stroke-width=\"4\"></circle>\n <path\n class=\"opacity-75\"\n fill=\"currentColor\"\n d=\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"\n ></path>\n </svg>\n <span>\n {{ dataGridDataset.configs.loadingDisplayText ?? '' | translate }}\n </span>\n </div>\n }\n @if (!loading() && !hasBeenLoaded && !hasFailed() && lazyLoadRows()) {\n <div class=\"message\" aria-hidden=\"true\" [style.height.px]=\"rowHeight\">\n <span>\n {{ messageToDisplayWhenLazyLoad | translate }}\n </span>\n </div>\n }\n <!-- A failed load shows its message even when no load has succeeded yet: the first one failing\n used to leave the grid blank. -->\n @if (!loading() && (hasFailed() || (hasBeenLoaded && !hasLoadedRows))) {\n @if (!hasFailed() && !hasLoadedRows && hasMessageToDisplayWhenEmpty && shouldDisplayMessageWhenEmpty) {\n <div class=\"message\" aria-hidden=\"true\" [style.height.px]=\"rowHeight\">\n <span>\n {{ messageToDisplayWhenEmpty | translate }}\n </span>\n </div>\n }\n @if (hasFailed()) {\n <div class=\"message\" aria-hidden=\"true\" [style.height.px]=\"rowHeight\">\n <span>\n <i class=\"fas fa-exclamation-triangle mr-2 text-yellow-600\"></i\n >{{ messageToDisplayWhenFailed | translate }}\n </span>\n </div>\n }\n }\n </cdk-virtual-scroll-viewport>\n </div>\n </div>\n</div>\n\n<!-- Polite: screen readers hear the loading, lazy-load, empty and failure messages, and how many rows\na copy took, without losing their place. Always in the page, so a change of text is announced. -->\n<div class=\"status\" role=\"status\">\n {{ fillCopiedCount(statusText | translate: { count: formattedCopiedCount }) }}\n</div>\n\n@if (shouldShowTotalRows) {\n <div class=\"footer\">\n {{ fillCount(totalRowsText | translate: { count: formattedTotalRows }) }}\n </div>\n}\n\n<!-- The column chooser, opened in a CDK overlay under its button. The focus is trapped inside;\nEscape and a click outside close it and give the focus back to the button. -->\n<ng-template #columnChooserTemplate>\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"column-chooser\"\n cdkTrapFocus\n role=\"dialog\"\n [attr.aria-label]=\"columnChooserText | translate\"\n [attr.id]=\"columnChooserId\"\n (keydown)=\"onColumnChooserKeydown($event)\"\n >\n <ul class=\"column-chooser-list\">\n @for (column of hideableColumns; track column) {\n <li>\n <label class=\"column-chooser-option\">\n <input\n class=\"form-input\"\n type=\"checkbox\"\n [checked]=\"!dataGridDataset.isColumnHidden(column)\"\n [disabled]=\"!dataGridDataset.isColumnHidden(column) && !dataGridDataset.canHideColumn(column)\"\n (change)=\"onToggleColumn(column, $event)\"\n />\n <span>{{ column.headerName || column.field | translate }}</span>\n </label>\n </li>\n }\n </ul>\n <button class=\"column-chooser-reset\" type=\"button\" (click)=\"onResetColumns()\">\n {{ resetColumnsText | translate }}\n </button>\n </div>\n</ng-template>\n",
|
|
6576
|
-
styles: ["@charset \"UTF-8\";@layer properties;:host{display:flex;flex-direction:column;overflow:hidden}:host:not(.no-borders){background-color:var(--color-surface-solid)}:host:not(.no-borders):not(.hide-borders){border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-line);border-radius:var(--surface-radius, .5rem)}:host.compact .header .header-row,:host.compact .column-chooser-slot{padding-block:calc(var(--spacing, .25rem) * 1.5)}:host.compact .body lib-data-grid-row{padding-block:var(--spacing, .25rem)}:host.no-borders .header .header-row{padding-block:calc(var(--spacing, .25rem) * 1.5)}:host.no-borders .column-chooser-slot{padding-block:calc(var(--spacing, .25rem) * 1.5)}:host.no-borders .body lib-data-grid-row{padding-block:var(--spacing, .25rem)}.grid-frame{position:relative;display:flex;min-height:0px;flex-grow:1;flex-direction:column}.grid{display:flex;min-height:0px;flex-grow:1;flex-direction:column;overflow:hidden}.column-chooser-slot{position:absolute;inset-inline-end:calc(var(--spacing, .25rem) * 0);top:0;z-index:2;display:flex;align-items:center;padding-block:calc(var(--spacing, .25rem) * 3);padding-inline-start:var(--spacing, .25rem);padding-inline-end:calc(var(--spacing, .25rem) * 2);-webkit-user-select:none;user-select:none;background:linear-gradient(color-mix(in srgb,oklch(21% .034 264.665) 14%,transparent),color-mix(in srgb,oklch(21% .034 264.665) 14%,transparent)),var(--color-surface-solid)}@supports (color: color-mix(in lab,red,red)){.column-chooser-slot{background:linear-gradient(color-mix(in srgb,var(--color-content-primary) 14%,transparent),color-mix(in srgb,var(--color-content-primary) 14%,transparent)),var(--color-surface-solid)}}.column-chooser-button{display:inline-flex;height:calc(var(--spacing, .25rem) * 6);width:calc(var(--spacing, .25rem) * 6);cursor:pointer;align-items:center;justify-content:center;border-style:var(--tw-border-style);border-width:1px;border-color:transparent;border-radius:var(--radius-control);color:var(--color-content-secondary)}.column-chooser-button:hover{background-color:var(--state-hover);color:var(--color-content-primary)}.column-chooser-button:focus-visible{outline:var(--focus-ring-width) solid var(--color-focus-ring);outline-offset:0}:host.has-column-chooser .header-row,:host.has-column-chooser .body lib-data-grid-row{padding-inline-end:2.5rem}.status,.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border-width:0}.header-row,lib-data-grid-row,.loading,.message{gap:calc(var(--spacing, .25rem) * 4);padding-inline:calc(var(--spacing, .25rem) * 4)}.header{overflow:hidden;border-bottom-style:var(--tw-border-style);border-bottom-width:1px;--tw-font-weight: var(--font-weight-bold, 700);font-weight:var(--font-weight-bold, 700);-webkit-user-select:none;user-select:none;background-color:color-mix(in srgb,oklch(21% .034 264.665) 14%,transparent);border-color:var(--color-line)}@supports (color: color-mix(in lab,red,red)){.header{background-color:color-mix(in srgb,var(--color-content-primary) 14%,transparent)}}.header.hide{display:none}.header .header-row{display:flex;flex-direction:row;padding-block:calc(var(--spacing, .25rem) * 3)}.header .header-cell{position:relative;display:flex;align-items:center;white-space:nowrap}.header .header-cell .header-text{min-width:0px;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.header .header-cell:not(.selection){flex:none}.header .header-cell.selection{display:flex;align-items:center}.header .header-cell.align-center{text-align:center}.header .header-cell.align-end{text-align:end}.header .header-cell.pinned{z-index:2;margin-inline-start:-1rem;padding-inline-start:1rem;background:linear-gradient(color-mix(in srgb,oklch(21% .034 264.665) 14%,transparent),color-mix(in srgb,oklch(21% .034 264.665) 14%,transparent)),var(--color-surface-solid)}@supports (color: color-mix(in lab,red,red)){.header .header-cell.pinned{background:linear-gradient(color-mix(in srgb,var(--color-content-primary) 14%,transparent),color-mix(in srgb,var(--color-content-primary) 14%,transparent)),var(--color-surface-solid)}}.header .header-cell.pinned:not(.selection){box-shadow:1px 0 0 var(--color-line-strong)}.header .header-cell.pinned:not(.selection):dir(rtl){box-shadow:-1px 0 0 var(--color-line-strong)}.header .resize-handle{position:absolute;top:0;bottom:0;z-index:1;cursor:col-resize;touch-action:none;inset-inline-end:-.875rem;width:.75rem}.header .resize-handle:after{position:absolute;top:0;bottom:0;opacity:0%;content:\"\";inset-inline-start:calc(50% - 1px);width:2px;background-color:var(--color-line-strong);transition:opacity var(--duration-short) var(--ease-standard)}.header .resize-handle:hover:after,.header .resize-handle:active:after,.header .resize-handle:focus-visible:after{opacity:100%}.header .resize-handle:focus-visible{outline:var(--focus-ring-width) solid var(--color-focus-ring);outline-offset:calc(-1 * var(--focus-ring-width))}.column-chooser{display:flex;flex-direction:column;gap:calc(var(--spacing, .25rem) * 2);border-style:var(--tw-border-style);border-width:1px;padding:calc(var(--spacing, .25rem) * 2);min-width:12rem;max-height:20rem;border-color:var(--color-line);border-radius:var(--radius-control);background-color:var(--color-surface-solid);color:var(--color-content-primary);box-shadow:var(--shadow-overlay);font-size:var(--text-body)}.column-chooser-list{display:flex;flex-direction:column;overflow-y:auto}.column-chooser-option{display:flex;cursor:pointer;align-items:center;gap:calc(var(--spacing, .25rem) * 2);padding-inline:calc(var(--spacing, .25rem) * 2);padding-block:var(--spacing, .25rem);white-space:nowrap;border-radius:var(--radius-control)}.column-chooser-option:hover{background-color:var(--state-hover)}.column-chooser-option:has(input:disabled){cursor:default;opacity:var(--opacity-disabled)}.column-chooser-reset{cursor:pointer;border-style:var(--tw-border-style);border-width:1px;padding-inline:calc(var(--spacing, .25rem) * 2);padding-block:var(--spacing, .25rem);text-align:start;border-color:var(--color-line);border-radius:var(--radius-control)}.column-chooser-reset:hover{background-color:var(--state-hover)}.column-chooser-reset:focus-visible{outline:var(--focus-ring-width) solid var(--color-focus-ring);outline-offset:0}.footer{overflow:hidden;border-top-style:var(--tw-border-style);border-top-width:1px;padding-inline:calc(var(--spacing, .25rem) * 4);padding-block:calc(var(--spacing, .25rem) * 1.5);text-overflow:ellipsis;white-space:nowrap;border-color:var(--color-line);color:var(--color-content-secondary);font-size:var(--text-caption);font-variant-numeric:tabular-nums}.body{position:relative;flex-grow:1}.body cdk-virtual-scroll-viewport{position:absolute;inset:0}.body cdk-virtual-scroll-viewport ::ng-deep .cdk-virtual-scroll-content-wrapper{display:grid;grid-template-columns:inherit}.body lib-data-grid-row{margin-top:-1px;cursor:pointer;border-block-style:var(--tw-border-style);border-block-width:1px;padding-block:calc(var(--spacing, .25rem) * 2);border-color:var(--color-line)}.body lib-data-grid-row.striped{background-color:var(--state-hover)}.body lib-data-grid-row:hover{background-color:var(--state-selected)}.body lib-data-grid-row.focused{z-index:1;border-color:var(--color-line-strong)}.body lib-data-grid-row:focus-visible{position:relative;z-index:20;outline:var(--focus-ring-width) solid var(--color-focus-ring);outline-offset:calc(-1 * var(--focus-ring-width))}.body lib-data-grid-row.selected{position:relative;z-index:10;background-color:var(--state-selected);border-color:var(--color-line-selected)}.body lib-data-grid-row.selected:hover{background-color:var(--state-selected)}.body .loading,.body .message{display:flex;align-items:center;gap:calc(var(--spacing, .25rem) * 2);white-space:nowrap;-webkit-user-select:none;user-select:none;height:calc(var(--spacing, .25rem) * 10);border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:var(--color-line);grid-column:1 / -1}.body .loading span,.body .message span{overflow:hidden;text-overflow:ellipsis}.body .loading svg{height:calc(var(--spacing, .25rem) * 6);min-height:calc(var(--spacing, .25rem) * 6);width:calc(var(--spacing, .25rem) * 6);min-width:calc(var(--spacing, .25rem) * 6);animation:var(--animate-spin, spin 1s linear infinite);transition-property:opacity;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration, var(--default-transition-duration, .15s));transition-duration:var(--duration-short);transition-timing-function:var(--ease-standard)}.buttons{display:flex;border-top-style:var(--tw-border-style);border-top-width:1px;border-bottom-style:var(--tw-border-style);border-bottom-width:1px;padding:var(--spacing, .25rem);border-color:var(--color-line)}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@keyframes spin{to{transform:rotate(360deg)}}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-font-weight: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
6589
|
+
template: "@if (showButtons()) {\n <div class=\"buttons\">\n <ng-content select=\"[buttons]\"></ng-content>\n </div>\n}\n\n<!-- The WAI-ARIA grid pattern at row level: the header and the rows are the grid. The toolbar\nabove and the footer below are not rows, so they stay outside it. The keys are handled here, for\nthe row that has the focus; see onKeydown. The grid element itself takes no focus: its rows do,\nand their keydown bubbles up to it. -->\n<div class=\"grid-frame\">\n <!-- The column chooser button sits over the end of the header. It is not part of the grid: a\n row may hold only cells, so a control between them would break the grid's role tree. It comes\n before the grid in the Tab order, a Tab stop of its own as the select-all checkbox is. -->\n @if (showColumnChooser && !isHideColumns) {\n <div class=\"column-chooser-slot\">\n <button\n #columnChooserButton\n class=\"column-chooser-button\"\n aria-haspopup=\"dialog\"\n type=\"button\"\n [attr.aria-controls]=\"columnChooserOpen() ? columnChooserId : null\"\n [attr.aria-expanded]=\"columnChooserOpen()\"\n [attr.aria-label]=\"columnChooserText | translate\"\n [libTooltip]=\"columnChooserOpen() ? null : columnChooserText\"\n (click)=\"onToggleColumnChooser()\"\n >\n <i class=\"fa-solid fa-table-columns\" aria-hidden=\"true\"></i>\n </button>\n </div>\n }\n\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"grid\"\n role=\"grid\"\n [attr.aria-disabled]=\"disabled() ? true : null\"\n [attr.aria-label]=\"gridLabel ? (gridLabel | translate) : null\"\n [attr.aria-multiselectable]=\"isShowMultiSelect ? true : null\"\n [attr.aria-rowcount]=\"ariaRowCount\"\n (keydown)=\"onKeydown($event)\"\n >\n <div class=\"header\" role=\"rowgroup\" [class.hide]=\"isHideColumns\" [style.padding-right.px]=\"headerRightMargin()\">\n <!-- Translated by however far the body is scrolled sideways. The rows scroll inside the CDK\n viewport and the header sits outside it, so without this the headings simply stay put\n while the cells move away from them. -->\n <div\n class=\"header-row\"\n aria-rowindex=\"1\"\n role=\"row\"\n [style.transform]=\"headerScrollLeft() ? 'translateX(-' + headerScrollLeft() + 'px)' : null\"\n >\n @if (isShowMultiSelect) {\n <div\n class=\"header-cell selection\"\n role=\"columnheader\"\n [class.pinned]=\"pinFirstColumn\"\n [style.transform]=\"pinnedHeaderTransform()\"\n [ngStyle]=\"{\n width: selectionColWidth ? selectionColWidth : null,\n }\"\n >\n <!-- Selects or clears every loaded row. Rows a paged grid has not loaded yet are not part\n of it. A native checkbox, so it is focusable and toggles with Space. -->\n <input\n class=\"form-input\"\n type=\"checkbox\"\n [attr.aria-label]=\"selectAllText | translate\"\n [attr.disabled]=\"disabled() || !hasLoadedRows ? true : null\"\n [checked]=\"allRowsSelected\"\n [indeterminate]=\"someRowsSelected\"\n (change)=\"onToggleSelectAll()\"\n />\n </div>\n }\n\n <!-- A measured zero is a width, not the absence of one: it is a 1fr column that collapsed,\n and its heading has to collapse too.\n\n Such a heading is removed rather than merely made zero wide, because a flex item still\n takes a gap on each side while the body grid allows the collapsed track only one, and\n that spare gap pushed every heading to its right out by 16px. -->\n <!-- With pinFirstColumn, the first heading, and the select-all heading before it, move back by\n as much as the header row moves, so they stay in place over their pinned cells. -->\n @for (column of columns; track column; let first = $first) {\n @let width = headerWidth(column);\n <div\n class=\"header-cell\"\n role=\"columnheader\"\n [class.pinned]=\"pinFirstColumn && first\"\n [style.transform]=\"first ? pinnedHeaderTransform() : null\"\n [class.align-center]=\"alignOf(column) === 'center'\"\n [class.align-end]=\"alignOf(column) === 'end'\"\n [ngStyle]=\"{\n display: width === 0 ? 'none' : null,\n 'width.px': width,\n }\"\n >\n @if (column.type === 'actions' && !column.headerName) {\n <!-- An empty column header leaves the column unnamed for screen readers. -->\n <span class=\"visually-hidden\">{{ actionsColumnText | translate }}</span>\n } @else {\n <span class=\"header-text\">{{ column.headerName | translate }}</span>\n }\n <!-- The width sets the column's track in the rows' template. The header then copies the\n cell measured in the first row, as for any column. ArrowLeft and ArrowRight change the\n width; a double click gives the column its declared size back. -->\n @if (isResizable(column)) {\n @let columnName = column.headerName | translate;\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events -->\n <div\n class=\"resize-handle\"\n aria-orientation=\"vertical\"\n role=\"separator\"\n tabindex=\"0\"\n [attr.aria-label]=\"fillColumn(resizeColumnText | translate: { column: columnName }, columnName)\"\n [attr.aria-valuemin]=\"minColumnWidth\"\n [attr.aria-valuenow]=\"resizeValue(column)\"\n (click)=\"$event.stopPropagation()\"\n (dblclick)=\"onResizeReset($event, column)\"\n (keydown)=\"onResizeKeydown($event, column)\"\n (pointerdown)=\"onResizeStart($event, column)\"\n ></div>\n }\n </div>\n }\n </div>\n </div>\n\n <div #body class=\"body\" [style.min-height.px]=\"bodyMinHeight\">\n <!-- The viewport is the rowgroup. A disabled grid with rows takes them out of the Tab order, and\n the viewport then takes the Tab stop, named like the grid, so a keyboard user can still scroll\n the rows with the arrow keys. A focusable element inside a grid needs a grid role, which is why\n the role sits here. -->\n <cdk-virtual-scroll-viewport\n role=\"rowgroup\"\n [attr.tabindex]=\"disabled() && hasLoadedRows ? 0 : null\"\n [attr.aria-label]=\"disabled() && hasLoadedRows && gridLabel ? (gridLabel | translate) : null\"\n [itemSize]=\"rowHeight\"\n [style.--grid-pin-offset]=\"pinOffset\"\n [style.grid-template-columns]=\"gridColumns\"\n >\n @let tabbableKey = tabbableRowKey;\n <lib-data-grid-row\n #row\n *cdkVirtualFor=\"let row of dataGridDataset.loadedRows; index as i; trackBy: trackByFn\"\n [disabled]=\"disabled()\"\n [isFirstRow]=\"isFirstVisibleRow(i)\"\n [rowData]=\"row\"\n [rowIndex]=\"i\"\n [style.height.px]=\"rowHeight\"\n [tabbable]=\"dataGridDataset.getRowInternalKey(row) === tabbableKey\"\n (selectionResized)=\"onSelectionResized($event)\"\n >\n </lib-data-grid-row>\n\n <!-- The messages below are not rows, so assistive technology does not see them here: the\n status region after the grid announces the same text. -->\n @if (loading()) {\n <div class=\"loading\" aria-hidden=\"true\" [style.height.px]=\"rowHeight\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\">\n <circle class=\"opacity-25\" cx=\"12\" cy=\"12\" r=\"10\" stroke=\"currentColor\" stroke-width=\"4\"></circle>\n <path\n class=\"opacity-75\"\n fill=\"currentColor\"\n d=\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"\n ></path>\n </svg>\n <span>\n {{ dataGridDataset.configs.loadingDisplayText ?? '' | translate }}\n </span>\n </div>\n }\n @if (!loading() && !hasBeenLoaded && !hasFailed() && lazyLoadRows()) {\n <div class=\"message\" aria-hidden=\"true\" [style.height.px]=\"rowHeight\">\n <span>\n {{ messageToDisplayWhenLazyLoad | translate }}\n </span>\n </div>\n }\n <!-- A failed load shows its message even when no load has succeeded yet: the first one failing\n used to leave the grid blank. -->\n @if (!loading() && (hasFailed() || (hasBeenLoaded && !hasLoadedRows))) {\n @if (!hasFailed() && !hasLoadedRows && hasMessageToDisplayWhenEmpty && shouldDisplayMessageWhenEmpty) {\n <div class=\"message\" aria-hidden=\"true\" [style.height.px]=\"rowHeight\">\n <span>\n {{ messageToDisplayWhenEmpty | translate }}\n </span>\n </div>\n }\n @if (hasFailed()) {\n <div class=\"message\" aria-hidden=\"true\" [style.height.px]=\"rowHeight\">\n <span>\n <i class=\"fas fa-exclamation-triangle mr-2 text-yellow-600\"></i\n >{{ messageToDisplayWhenFailed | translate }}\n </span>\n </div>\n }\n }\n </cdk-virtual-scroll-viewport>\n </div>\n </div>\n</div>\n\n<!-- Polite: screen readers hear the loading, lazy-load, empty and failure messages, and how many rows\na copy took, without losing their place. Always in the page, so a change of text is announced. -->\n<div class=\"status\" role=\"status\">\n {{ fillCopiedCount(statusText | translate: { count: formattedCopiedCount }) }}\n</div>\n\n@if (shouldShowTotalRows) {\n <div class=\"footer\">\n {{ fillCount(totalRowsText | translate: { count: formattedTotalRows }) }}\n </div>\n}\n\n<!-- The column chooser, opened in a CDK overlay under its button. The focus is trapped inside;\nEscape and a click outside close it and give the focus back to the button. -->\n<ng-template #columnChooserTemplate>\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"column-chooser\"\n cdkTrapFocus\n role=\"dialog\"\n [attr.aria-label]=\"columnChooserText | translate\"\n [attr.id]=\"columnChooserId\"\n (keydown)=\"onColumnChooserKeydown($event)\"\n >\n <ul class=\"column-chooser-list\">\n @for (column of hideableColumns; track column) {\n <li>\n <label class=\"column-chooser-option\">\n <input\n class=\"form-input\"\n type=\"checkbox\"\n [checked]=\"!dataGridDataset.isColumnHidden(column)\"\n [disabled]=\"!dataGridDataset.isColumnHidden(column) && !dataGridDataset.canHideColumn(column)\"\n (change)=\"onToggleColumn(column, $event)\"\n />\n <span>{{ column.headerName || column.field | translate }}</span>\n </label>\n </li>\n }\n </ul>\n <button class=\"column-chooser-reset\" type=\"button\" (click)=\"onResetColumns()\">\n {{ resetColumnsText | translate }}\n </button>\n </div>\n</ng-template>\n",
|
|
6590
|
+
styles: ["@charset \"UTF-8\";@layer properties;:host{display:flex;flex-direction:column;overflow:hidden}:host:not(.no-borders){background-color:var(--color-surface-solid)}:host:not(.no-borders):not(.hide-borders){border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-line);border-radius:var(--surface-radius, .5rem)}:host.compact .header .header-row,:host.compact .column-chooser-slot{padding-block:calc(var(--spacing, .25rem) * 1.5)}:host.compact .body lib-data-grid-row{padding-block:var(--spacing, .25rem)}:host.no-borders.pin-first-column .grid{background-color:var(--color-surface-solid)}:host.no-borders .header .header-row{padding-block:calc(var(--spacing, .25rem) * 1.5)}:host.no-borders .column-chooser-slot{padding-block:calc(var(--spacing, .25rem) * 1.5)}:host.no-borders .body lib-data-grid-row{padding-block:var(--spacing, .25rem)}.grid-frame{position:relative;display:flex;min-height:0px;flex-grow:1;flex-direction:column}.grid{display:flex;min-height:0px;flex-grow:1;flex-direction:column;overflow:hidden}.column-chooser-slot{position:absolute;inset-inline-end:calc(var(--spacing, .25rem) * 0);top:0;z-index:2;display:flex;align-items:center;padding-block:calc(var(--spacing, .25rem) * 3);padding-inline-start:var(--spacing, .25rem);padding-inline-end:calc(var(--spacing, .25rem) * 2);-webkit-user-select:none;user-select:none;background:linear-gradient(color-mix(in srgb,oklch(21% .034 264.665) 14%,transparent),color-mix(in srgb,oklch(21% .034 264.665) 14%,transparent)),var(--color-surface-solid)}@supports (color: color-mix(in lab,red,red)){.column-chooser-slot{background:linear-gradient(color-mix(in srgb,var(--color-content-primary) 14%,transparent),color-mix(in srgb,var(--color-content-primary) 14%,transparent)),var(--color-surface-solid)}}.column-chooser-button{display:inline-flex;height:calc(var(--spacing, .25rem) * 6);width:calc(var(--spacing, .25rem) * 6);cursor:pointer;align-items:center;justify-content:center;border-style:var(--tw-border-style);border-width:1px;border-color:transparent;border-radius:var(--radius-control);color:var(--color-content-secondary)}.column-chooser-button:hover{background-color:var(--state-hover);color:var(--color-content-primary)}.column-chooser-button:focus-visible{outline:var(--focus-ring-width) solid var(--color-focus-ring);outline-offset:0}:host.has-column-chooser .header-row,:host.has-column-chooser .body lib-data-grid-row{padding-inline-end:2.5rem}.status,.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border-width:0}.header-row,lib-data-grid-row,.loading,.message{gap:calc(var(--spacing, .25rem) * 4);padding-inline:calc(var(--spacing, .25rem) * 4)}.header{overflow:hidden;border-bottom-style:var(--tw-border-style);border-bottom-width:1px;--tw-font-weight: var(--font-weight-bold, 700);font-weight:var(--font-weight-bold, 700);-webkit-user-select:none;user-select:none;background-color:color-mix(in srgb,oklch(21% .034 264.665) 14%,transparent);border-color:var(--color-line)}@supports (color: color-mix(in lab,red,red)){.header{background-color:color-mix(in srgb,var(--color-content-primary) 14%,transparent)}}.header.hide{display:none}.header .header-row{display:flex;flex-direction:row;padding-block:calc(var(--spacing, .25rem) * 3)}.header .header-cell{position:relative;display:flex;align-items:center;white-space:nowrap}.header .header-cell .header-text{min-width:0px;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.header .header-cell:not(.selection){flex:none}.header .header-cell.selection{display:flex;align-items:center}.header .header-cell.align-center{text-align:center}.header .header-cell.align-end{text-align:end}.header .header-cell.pinned{z-index:2;margin-inline-start:-1rem;padding-inline-start:1rem;background:linear-gradient(color-mix(in srgb,oklch(21% .034 264.665) 14%,transparent),color-mix(in srgb,oklch(21% .034 264.665) 14%,transparent)),var(--color-surface-solid)}@supports (color: color-mix(in lab,red,red)){.header .header-cell.pinned{background:linear-gradient(color-mix(in srgb,var(--color-content-primary) 14%,transparent),color-mix(in srgb,var(--color-content-primary) 14%,transparent)),var(--color-surface-solid)}}.header .header-cell.pinned:not(.selection){box-shadow:1px 0 0 var(--color-line-strong)}.header .header-cell.pinned:not(.selection):dir(rtl){box-shadow:-1px 0 0 var(--color-line-strong)}.header .resize-handle{position:absolute;top:0;bottom:0;z-index:1;cursor:col-resize;touch-action:none;inset-inline-end:-.875rem;width:.75rem}.header .resize-handle:after{position:absolute;top:0;bottom:0;opacity:0%;content:\"\";inset-inline-start:calc(50% - 1px);width:2px;background-color:var(--color-line-strong);transition:opacity var(--duration-short) var(--ease-standard)}.header .resize-handle:hover:after,.header .resize-handle:active:after,.header .resize-handle:focus-visible:after{opacity:100%}.header .resize-handle:focus-visible{outline:var(--focus-ring-width) solid var(--color-focus-ring);outline-offset:calc(-1 * var(--focus-ring-width))}.column-chooser{display:flex;flex-direction:column;gap:calc(var(--spacing, .25rem) * 2);border-style:var(--tw-border-style);border-width:1px;padding:calc(var(--spacing, .25rem) * 2);min-width:12rem;max-height:20rem;border-color:var(--color-line);border-radius:var(--radius-control);background-color:var(--color-surface-solid);color:var(--color-content-primary);box-shadow:var(--shadow-overlay);font-size:var(--text-body)}.column-chooser-list{display:flex;flex-direction:column;overflow-y:auto}.column-chooser-option{display:flex;cursor:pointer;align-items:center;gap:calc(var(--spacing, .25rem) * 2);padding-inline:calc(var(--spacing, .25rem) * 2);padding-block:var(--spacing, .25rem);white-space:nowrap;border-radius:var(--radius-control)}.column-chooser-option:hover{background-color:var(--state-hover)}.column-chooser-option:has(input:disabled){cursor:default;opacity:var(--opacity-disabled)}.column-chooser-reset{cursor:pointer;border-style:var(--tw-border-style);border-width:1px;padding-inline:calc(var(--spacing, .25rem) * 2);padding-block:var(--spacing, .25rem);text-align:start;border-color:var(--color-line);border-radius:var(--radius-control)}.column-chooser-reset:hover{background-color:var(--state-hover)}.column-chooser-reset:focus-visible{outline:var(--focus-ring-width) solid var(--color-focus-ring);outline-offset:0}.footer{overflow:hidden;border-top-style:var(--tw-border-style);border-top-width:1px;padding-inline:calc(var(--spacing, .25rem) * 4);padding-block:calc(var(--spacing, .25rem) * 1.5);text-overflow:ellipsis;white-space:nowrap;border-color:var(--color-line);color:var(--color-content-secondary);font-size:var(--text-caption);font-variant-numeric:tabular-nums}.body{position:relative;flex-grow:1}.body cdk-virtual-scroll-viewport{position:absolute;inset:0}.body cdk-virtual-scroll-viewport:focus-visible{outline:none;box-shadow:inset 0 0 0 var(--focus-ring-width) var(--color-focus-ring)}.body cdk-virtual-scroll-viewport ::ng-deep .cdk-virtual-scroll-content-wrapper{display:grid;grid-template-columns:inherit}.body lib-data-grid-row{margin-top:-1px;cursor:pointer;border-block-style:var(--tw-border-style);border-block-width:1px;padding-block:calc(var(--spacing, .25rem) * 2);border-color:var(--color-line)}.body lib-data-grid-row.striped{background-color:var(--state-hover)}.body lib-data-grid-row:hover{background-color:var(--state-selected)}.body lib-data-grid-row.focused{z-index:1;border-color:var(--color-line-strong)}.body lib-data-grid-row:focus-visible{position:relative;z-index:20;outline:var(--focus-ring-width) solid var(--color-focus-ring);outline-offset:calc(-1 * var(--focus-ring-width))}.body lib-data-grid-row.selected{position:relative;z-index:10;background-color:var(--state-selected);border-color:var(--color-line-selected)}.body lib-data-grid-row.selected:hover{background-color:var(--state-selected)}.body .loading,.body .message{display:flex;align-items:center;gap:calc(var(--spacing, .25rem) * 2);white-space:nowrap;-webkit-user-select:none;user-select:none;height:calc(var(--spacing, .25rem) * 10);border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:var(--color-line);grid-column:1 / -1}.body .loading span,.body .message span{overflow:hidden;text-overflow:ellipsis}.body .loading svg{height:calc(var(--spacing, .25rem) * 6);min-height:calc(var(--spacing, .25rem) * 6);width:calc(var(--spacing, .25rem) * 6);min-width:calc(var(--spacing, .25rem) * 6);animation:var(--animate-spin, spin 1s linear infinite);transition-property:opacity;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration, var(--default-transition-duration, .15s));transition-duration:var(--duration-short);transition-timing-function:var(--ease-standard)}.buttons{display:flex;border-top-style:var(--tw-border-style);border-top-width:1px;border-bottom-style:var(--tw-border-style);border-bottom-width:1px;padding:var(--spacing, .25rem);border-color:var(--color-line)}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@keyframes spin{to{transform:rotate(360deg)}}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-font-weight: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
6577
6591
|
}]
|
|
6578
6592
|
}],
|
|
6579
6593
|
ctorParameters: () => [],
|
|
@@ -7318,7 +7332,7 @@ var MultiEditorComponent = class MultiEditorComponent extends ModalComponent {
|
|
|
7318
7332
|
if (newModel) {
|
|
7319
7333
|
const hasPrefilledValues = Object.keys(newModel).length > 0;
|
|
7320
7334
|
this.multiEditorDataset.storeFakeIDGenerated(fakeNewID);
|
|
7321
|
-
this.dataGridDataset.addNewRow(newModel);
|
|
7335
|
+
this.dataGridDataset.addNewRow(newModel, false);
|
|
7322
7336
|
const newKey = this.dataGridDataset.loadedKeys[this.dataGridDataset.loadedKeys.length - 1];
|
|
7323
7337
|
if (hasPrefilledValues) this.multiEditorDataset.updateValues(newKey, newModel);
|
|
7324
7338
|
this.dataGridDataset.selectRow(newKey);
|