@zambon-dev/ui 1.11.1 → 1.12.0

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 CHANGED
@@ -27,6 +27,35 @@ packages are listed under [Package history](#package-history) at the end.
27
27
 
28
28
  ### ⚠ Breaking Changes / Migration
29
29
 
30
+ ## [1.12.0] - 2026-12-06
31
+
32
+ ### Added
33
+
34
+ - **`removeKeys(keys, true)` on grid datasets.** Pass `true` when the API has already deleted the
35
+ rows. The next block then starts that many rows earlier, so scrolling on after a delete no longer
36
+ skips rows. Without it, the rows only leave the grid, as before.
37
+ - **`addNewRow(row, false)` on grid datasets.** Pass `false` for a row the API does not hold yet,
38
+ such as one still to be saved. The next block then starts where it did, so no row is skipped.
39
+ Without it, the row counts as one the API now holds, as before. The multi-editor's new rows use
40
+ `false`.
41
+
42
+ ### Fixed
43
+
44
+ - **The data grid stopped loading after a row was added or updated.** `addNewRow` and `updateRow`
45
+ marked the data as fully loaded, so scrolling down no longer fetched the next block. Only a block
46
+ from `getData` shorter than the block size now marks the end.
47
+ - **`removeKeys(dataset.selectedRowKeys)` removed nothing.** Removing the selection emptied the
48
+ same array the rows were then removed from. The rows now go, and `selectedRowsChanged` announces
49
+ that they are no longer selected, so no checkbox stays ticked.
50
+ - **A disabled data grid could not be scrolled from the keyboard.** Its rows leave the Tab order,
51
+ so nothing inside the scroll area took focus. While the grid is disabled and has rows, the scroll
52
+ area is now its Tab stop, named by `gridLabel`. To allow that, `role="rowgroup"` of the rows moved
53
+ from the `.body` element to the scroll area inside it.
54
+ - **A pinned first column stood out in a data grid with a toolbar.** With `showButtons`, the grid
55
+ has no surface of its own, so its rows showed the colour behind it while the pinned cells stayed
56
+ on the solid surface. A grid with `pinFirstColumn` and a toolbar now keeps the solid surface
57
+ under its header and rows.
58
+
30
59
  ## [1.11.1] - 2026-12-06
31
60
 
32
61
  ### Added
@@ -2892,7 +2921,8 @@ URL) in `AppConfig`, and implement a hub that pushes the notification list to cl
2892
2921
  available via [GitHub Releases](https://github.com/RicardoZambon/ZLibraries/releases) and the
2893
2922
  `shared-v*` tags.
2894
2923
 
2895
- [Unreleased]: https://github.com/RicardoZambon/ZLibraries/compare/ui-v1.11.1...HEAD
2924
+ [Unreleased]: https://github.com/RicardoZambon/ZLibraries/compare/ui-v1.12.0...HEAD
2925
+ [1.12.0]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.12.0
2896
2926
  [1.11.1]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.11.1
2897
2927
  [1.11.0]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.11.0
2898
2928
  [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",
@@ -1614,12 +1616,22 @@ var DataGridDataset = class DataGridDataset extends GridDataset {
1614
1616
  if (this.hasSelectedRows) this.clearSelection();
1615
1617
  super.refresh();
1616
1618
  }
1617
- removeKeys(keys) {
1619
+ removeKeys(keys, deletedFromSource = false) {
1618
1620
  if (!this.hasLoadedRows) return;
1619
- if (this.hasSelectedRows) keys.filter((key) => this.isKeySelected(key)).forEach((key) => {
1620
- this.removeSelectedRow(key);
1621
- });
1622
- super.removeKeys(keys);
1621
+ const keysToRemove = [...keys];
1622
+ const deselected = keysToRemove.filter((key) => this.isKeySelected(key));
1623
+ if (deselected.length > 0) {
1624
+ const changes = {};
1625
+ deselected.forEach((key) => {
1626
+ changes[key] = {
1627
+ rowData: this.getRowData(key),
1628
+ selected: false
1629
+ };
1630
+ this.removeSelectedRow(key);
1631
+ });
1632
+ this.selectedRowsChanged.emit(changes);
1633
+ }
1634
+ super.removeKeys(keysToRemove, deletedFromSource);
1623
1635
  }
1624
1636
  selectRow(key) {
1625
1637
  if (!this.hasLoadedRows) return;
@@ -6464,8 +6476,8 @@ var DataGridComponent = class DataGridComponent extends BaseComponent {
6464
6476
  ],
6465
6477
  usesInheritance: true,
6466
6478
  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"],
6479
+ 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",
6480
+ 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
6481
  dependencies: [
6470
6482
  {
6471
6483
  kind: "ngmodule",
@@ -6572,8 +6584,8 @@ i0.ɵɵngDeclareClassMetadata({
6572
6584
  TooltipDirective,
6573
6585
  TranslatePipe
6574
6586
  ],
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"]
6587
+ 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",
6588
+ 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
6589
  }]
6578
6590
  }],
6579
6591
  ctorParameters: () => [],
@@ -7318,7 +7330,7 @@ var MultiEditorComponent = class MultiEditorComponent extends ModalComponent {
7318
7330
  if (newModel) {
7319
7331
  const hasPrefilledValues = Object.keys(newModel).length > 0;
7320
7332
  this.multiEditorDataset.storeFakeIDGenerated(fakeNewID);
7321
- this.dataGridDataset.addNewRow(newModel);
7333
+ this.dataGridDataset.addNewRow(newModel, false);
7322
7334
  const newKey = this.dataGridDataset.loadedKeys[this.dataGridDataset.loadedKeys.length - 1];
7323
7335
  if (hasPrefilledValues) this.multiEditorDataset.updateValues(newKey, newModel);
7324
7336
  this.dataGridDataset.selectRow(newKey);