@coolon/angular-ui-powerups 16.1.0-alpha.337 → 16.1.0-alpha.338

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.
@@ -5246,6 +5246,7 @@ class ColumnModel extends GarbageCollector {
5246
5246
  _cellRendererPortalRef;
5247
5247
  _enableRowSelection = true;
5248
5248
  _flex$ = this.registerDisposable(new DelegatingValueModel().withDefault(false));
5249
+ _keepInView$ = this.registerDisposable(new DelegatingValueModel().withDefault(false));
5249
5250
  _displayScopes$ = new MutableValueModel(ColumnModel.DisplayScopes.DEFAULT_ONLY);
5250
5251
  _defaultVisibility$ = this.registerDisposable(new DelegatingValueModel().withDefault(true));
5251
5252
  _masterVisibility$ = this.registerDisposable(new DelegatingValueModel().withDefault(true));
@@ -5426,6 +5427,21 @@ class ColumnModel extends GarbageCollector {
5426
5427
  isFlex() {
5427
5428
  return this._flex$.value;
5428
5429
  }
5430
+ /**
5431
+ * Keeps the column in view while the table scrolls sideways. Its cells stay in their place until they would
5432
+ * leave the table, then hold at its left or right edge while the other columns scroll under them. A model makes
5433
+ * it follow a condition, such as a layout.
5434
+ */
5435
+ keepInView(keep = true) {
5436
+ this._keepInView$.setDelegate(typeof keep === "boolean" ? new MutableValueModel(keep) : keep);
5437
+ return this;
5438
+ }
5439
+ get keepInView$() {
5440
+ return this._keepInView$.readonly$;
5441
+ }
5442
+ isKeptInView() {
5443
+ return this._keepInView$.value;
5444
+ }
5429
5445
  attachHeaderCell(host) {
5430
5446
  this._columnHeaderPortalRef.initialiseHost(host);
5431
5447
  }
@@ -6069,6 +6085,7 @@ class ColumnManager extends GarbageCollector {
6069
6085
  columnVisibilities$ = new WatchList();
6070
6086
  columnDisplayScopes$ = new WatchList();
6071
6087
  columnFlexes$ = new WatchList();
6088
+ columnsKeptInView$ = new WatchList();
6072
6089
  _displayScope$ = this.registerDisposable(new DelegatingValueModel());
6073
6090
  /**
6074
6091
  * The columns shown: those visible in their own right and shown in the table's display scope. A search covers these
@@ -6116,6 +6133,7 @@ class ColumnManager extends GarbageCollector {
6116
6133
  this.columnVisibilities$.add(column.visible$);
6117
6134
  this.columnDisplayScopes$.add(column.displayScopes$);
6118
6135
  this.columnFlexes$.add(column.flex$);
6136
+ this.columnsKeptInView$.add(column.keepInView$);
6119
6137
  return column;
6120
6138
  }
6121
6139
  computePosition(position) {
@@ -7116,6 +7134,10 @@ class AbstractTableModel extends GarbageCollector {
7116
7134
  get columnFlexes$() {
7117
7135
  return this.columnManager.columnFlexes$;
7118
7136
  }
7137
+ /** Whether each column is kept in view, so a view can redraw when one starts or stops. */
7138
+ get columnsKeptInView$() {
7139
+ return this.columnManager.columnsKeptInView$;
7140
+ }
7119
7141
  /**
7120
7142
  * Shows the columns of a display scope in place of the default ones, such as a phone layout's, and searches those
7121
7143
  * columns only. Undefined is the default scope. A column shows in the default scope only, until it is given scopes with
@@ -7880,7 +7902,7 @@ class TableBodyComponent extends ResizeAwareComponent {
7880
7902
  const footerVisibility$ = (this.footerRows ?? [])
7881
7903
  .map(row => row.visible$)
7882
7904
  .filter((m) => m != null);
7883
- this.viewStateDependsOn(this.headerHeight$, this.tableModel.filteredRows$, this.tableModel.visibleColumns$, this.tableModel.columnFlexes$, this.virtualScrollActive$, this.animationsDisabled$, this.tableModel.selectedItems$, this.tableModel.selectableRows$, this.footerRowDefs$, ...footerVisibility$, this.loadingRowShown$);
7905
+ this.viewStateDependsOn(this.headerHeight$, this.tableModel.filteredRows$, this.tableModel.visibleColumns$, this.tableModel.columnFlexes$, this.tableModel.columnsKeptInView$, this.virtualScrollActive$, this.animationsDisabled$, this.tableModel.selectedItems$, this.tableModel.selectableRows$, this.footerRowDefs$, ...footerVisibility$, this.loadingRowShown$);
7884
7906
  });
7885
7907
  }
7886
7908
  ngAfterViewInit() {
@@ -8151,7 +8173,7 @@ class TableBodyComponent extends ResizeAwareComponent {
8151
8173
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableBodyComponent, deps: [{ token: AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER, optional: true }], target: i0.ɵɵFactoryTarget.Component });
8152
8174
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableBodyComponent, selector: "aup-table-body", inputs: { data$: "data$", tableModel: "tableModel", footerRows: "footerRows", showHeader$: "showHeader$", showHeader: "showHeader", trackBy: "trackBy", scrollMode$: "scrollMode$", scrollMode: "scrollMode", holdScrollPosition: "holdScrollPosition" }, host: { properties: { "attr.scrollMode": "this.scrollMode", "class.hold-scroll-position": "this.holdScrollPosition", "class": "this.baseCssClass", "class.aup-animations-disabled": "this.animationsDisabledClass", "class.hide-header": "this.hideHeader", "style.--aup-table-header-height": "this.headerHeightCssVar", "style.--aup-table-row-height": "this.rowHeightCssVar" } }, providers: [
8153
8175
  { provide: AUP_DETACHED_PARENT_CDR, useFactory: () => inject(AUP_TABLE_OPTIMIZED_CHANGE_DETECTION, { optional: true }) ? inject(ChangeDetectorRef) : null }
8154
- ], viewQueries: [{ propertyName: "scrollViewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true }, { propertyName: "classicScrollContainerRef", first: true, predicate: ["classicScrollContainer"], descendants: true }, { propertyName: "endOfRowsMarker", first: true, predicate: ["endOfRowsMarker"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<!-- Reads the loading row's message to screen readers. It is in the page before the message appears in it, as a\n screen reader announces only a change to a status region it already knows, and the loading row is hidden while\n no chunk is on its way. -->\n<div *ngIf=\"tableModel._loadingRow as loadingRow\" role=\"status\" class=\"loading-status\">{{ loadingRowShown$.value ? loadingRow.message() : '' }}</div>\n\n<div #classicScrollContainer class=\"classic-scroll-container\" aup-table-scroller *ngIf=\"scrollMode$.value !== 'virtual'\">\n <table mat-table [dataSource]=\"data$.value\" [trackBy]=\"trackBy\" [multiTemplateDataRows]>\n\n <ng-container *ngFor=\"let column of columns$.value; index as index; first as first; last as last\"\n matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef [class.flex]=\"column.isFlex()\" [class.hide]=\"!column.isVisible()\">\n <aup-table-header-cell [column]=\"$any(column)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-header-cell>\n </th>\n <td mat-cell *matCellDef=\"let row\" (click)=\"notifyCellClicked(column, row)\"\n [class.enable-cursor]=\"tableModel.isCursorEnabledForRow(column, row)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n >\n <aup-table-cell [column]=\"$any(column)\"\n [row]=\"row\"\n [tableModel]=\"$any(tableModel)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n [aupHighlightTextModel]=\"highlightTextFor($any(column))\"\n ></aup-table-cell>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds$.value; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds$.value; let i = index\"\n [ngClass]=\"tableModel.getRowClasses(row)\"\n [class.enable-hover]=\"tableModel.isHoverEnabledForRow(row)\"\n [aupTableRowAttributes]=\"tableModel.getRowAttributes(row)\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n <!-- The loading row, pinned to the bottom of the table above any other footer row. The status region outside the\n table reads its message to screen readers, so the row itself is hidden from them. -->\n <ng-container *ngIf=\"tableModel._loadingRow as loadingRow\" matColumnDef=\"aup-loading-row\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"columnIds$.value.length\" class=\"footer-cell loading-row-cell\">\n <div *ngIf=\"loadingRowShown$.value\" class=\"loading-row\" aup-loading-row aria-hidden=\"true\">\n <mat-progress-spinner mode=\"indeterminate\" [diameter]=\"20\"></mat-progress-spinner>\n <span>{{ loadingRow.message() }}</span>\n </div>\n </td>\n <tr mat-footer-row *matFooterRowDef=\"['aup-loading-row']; sticky: true\" class=\"loading-footer-row\"\n [class.aup-footer-row-hidden]=\"!loadingRowShown$.value\"></tr>\n </ng-container>\n\n <ng-container *ngFor=\"let footer of footerRowDefs$.value\">\n <ng-container *ngFor=\"let cell of footer.cells\" [matColumnDef]=\"cell.defId\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"cell.colspan\"\n [attr.column-id]=\"cell.columnId\" class=\"footer-cell\">\n <aup-table-footer-row *ngIf=\"!cell.filler\" [cell]=\"cell\"></aup-table-footer-row>\n </td>\n </ng-container>\n <tr mat-footer-row *matFooterRowDef=\"footer.defIds; sticky: true\" [ngClass]=\"footer.rowClasses\"\n [class.aup-footer-row-hidden]=\"footer.visible$ && !footer.visible$.value\"></tr>\n </ng-container>\n\n </table>\n <!-- The marker after the last row, watched to tell when the end of the rows is in view. -->\n <div #endOfRowsMarker *ngIf=\"tableModel._endOfRows && scrollMode$.value === 'classic'\" class=\"end-of-rows\" aria-hidden=\"true\"></div>\n</div>\n\n<cdk-virtual-scroll-viewport *ngIf=\"scrollMode$.value === 'virtual'\" aup-table-scroller\n [@.disabled]=\"animationsDisabled$.value\"\n [tvsItemSize]=\"rowHeight$.value\"\n [headerHeight]=\"headerHeight$.value\"\n [footerEnabled]=\"(footerRowDefs$?.value?.length ?? 0) > 0\"\n [footerHeight]=\"48 * (footerRowDefs$?.value?.length ?? 0)\"\n [bufferMultiplier]=\"bufferMultiplier\"\n>\n <table mat-table [dataSource]=\"virtualScrollDataSource\" [trackBy]=\"trackBy\">\n\n <ng-container *ngFor=\"let column of columns$.value; index as index; first as first; last as last\"\n matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef [class.flex]=\"column.isFlex()\" [class.hide]=\"!column.isVisible()\">\n <aup-table-header-cell [column]=\"column\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-header-cell>\n </th>\n <td mat-cell *matCellDef=\"let row\" (click)=\"notifyCellClicked(column, row)\"\n [class.enable-cursor]=\"tableModel.isCursorEnabledForRow(column, row)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n >\n <aup-table-cell [column]=\"$any(column)\"\n [row]=\"row\"\n [tableModel]=\"$any(tableModel)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n [aupHighlightTextModel]=\"highlightTextFor($any(column))\"\n ></aup-table-cell>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds$.value; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds$.value; let i = index\"\n [ngClass]=\"tableModel.getRowClasses(row)\"\n [class.enable-hover]=\"tableModel.isHoverEnabledForRow(row)\"\n [aupTableRowAttributes]=\"tableModel.getRowAttributes(row)\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n <!-- The loading row, pinned to the bottom of the table above any other footer row. The status region outside the\n table reads its message to screen readers, so the row itself is hidden from them. -->\n <ng-container *ngIf=\"tableModel._loadingRow as loadingRow\" matColumnDef=\"aup-loading-row\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"columnIds$.value.length\" class=\"footer-cell loading-row-cell\">\n <div *ngIf=\"loadingRowShown$.value\" class=\"loading-row\" aup-loading-row aria-hidden=\"true\">\n <mat-progress-spinner mode=\"indeterminate\" [diameter]=\"20\"></mat-progress-spinner>\n <span>{{ loadingRow.message() }}</span>\n </div>\n </td>\n <tr mat-footer-row *matFooterRowDef=\"['aup-loading-row']; sticky: true\" class=\"loading-footer-row\"\n [class.aup-footer-row-hidden]=\"!loadingRowShown$.value\"></tr>\n </ng-container>\n\n <ng-container *ngFor=\"let footer of footerRowDefs$.value\">\n <ng-container *ngFor=\"let cell of footer.cells\" [matColumnDef]=\"cell.defId\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"cell.colspan\"\n [attr.column-id]=\"cell.columnId\" class=\"footer-cell\">\n <aup-table-footer-row *ngIf=\"!cell.filler\" [cell]=\"cell\"></aup-table-footer-row>\n </td>\n </ng-container>\n <tr mat-footer-row *matFooterRowDef=\"footer.defIds; sticky: true\" [ngClass]=\"footer.rowClasses\"\n [class.aup-footer-row-hidden]=\"footer.visible$ && !footer.visible$.value\"></tr>\n </ng-container>\n\n\n </table>\n</cdk-virtual-scroll-viewport>\n\n", styles: [":host{--enter-animation-duration: .1s;display:flex;flex-direction:column;align-items:stretch}:host.aup-animations-disabled{--enter-animation-duration: 0ms}:host table{width:100%}:host tr.aup-footer-row-hidden{display:none}:host td.footer-cell{border-top:0!important;box-shadow:0 -1px 0 0 var(--mat-table-row-item-outline-color, rgba(0, 0, 0, .12))}:host[scrollMode=virtual] cdk-virtual-scroll-viewport{flex:1}:host[scrollMode=virtual] table th{height:var(--aup-table-header-height);max-height:var(--aup-table-header-height);min-height:var(--aup-table-header-height)}:host[scrollMode=virtual] table td{height:var(--aup-table-row-height);max-height:var(--aup-table-row-height);min-height:var(--aup-table-row-height)}:host[scrollMode=classic]{min-height:0}:host[scrollMode=classic] .classic-scroll-container{flex:1;flex-basis:0;overflow-y:auto;display:flex;flex-direction:column;align-items:stretch}:host.hold-scroll-position .classic-scroll-container{overflow-anchor:none}td.loading-row-cell{padding:0}.loading-row{display:flex;align-items:center;justify-content:center;gap:12px;height:var(--aup-table-row-height);color:var(--aup-table-loading-row-color, inherit)}.loading-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.end-of-rows{height:1px;flex-shrink:0;pointer-events:none}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: HighlightTextModelDirective, selector: "[aupHighlightTextModel]", inputs: ["aupHighlightTextModel"] }, { kind: "component", type: i3$3.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i3$3.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i3$3.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i3$3.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i3$3.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i3$3.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i3$3.MatFooterCellDef, selector: "[matFooterCellDef]" }, { kind: "directive", type: i3$3.MatFooterRowDef, selector: "[matFooterRowDef]", inputs: ["matFooterRowDef", "matFooterRowDefSticky"] }, { kind: "directive", type: i3$3.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i3$3.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "directive", type: i3$3.MatFooterCell, selector: "mat-footer-cell, td[mat-footer-cell]" }, { kind: "component", type: i3$3.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i3$3.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i3$3.MatFooterRow, selector: "mat-footer-row, tr[mat-footer-row]", exportAs: ["matFooterRow"] }, { kind: "component", type: i2$1.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: i5.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "directive", type: i6.TableItemSizeDirective, selector: "cdk-virtual-scroll-viewport[tvsItemSize]", inputs: ["tvsItemSize", "headerEnabled", "headerHeight", "footerEnabled", "footerHeight", "bufferMultiplier"] }, { kind: "directive", type: TableRowAttributesDirective, selector: "[aupTableRowAttributes]", inputs: ["aupTableRowAttributes"] }, { kind: "component", type: TableCellComponent, selector: "aup-table-cell", inputs: ["row", "column", "tableModel"] }, { kind: "component", type: TableHeaderCellComponent, selector: "aup-table-header-cell", inputs: ["column"] }, { kind: "component", type: TableFooterRow, selector: "aup-table-footer-row", inputs: ["cell"] }] });
8176
+ ], viewQueries: [{ propertyName: "scrollViewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true }, { propertyName: "classicScrollContainerRef", first: true, predicate: ["classicScrollContainer"], descendants: true }, { propertyName: "endOfRowsMarker", first: true, predicate: ["endOfRowsMarker"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<!-- Reads the loading row's message to screen readers. It is in the page before the message appears in it, as a\n screen reader announces only a change to a status region it already knows, and the loading row is hidden while\n no chunk is on its way. -->\n<div *ngIf=\"tableModel._loadingRow as loadingRow\" role=\"status\" class=\"loading-status\">{{ loadingRowShown$.value ? loadingRow.message() : '' }}</div>\n\n<div #classicScrollContainer class=\"classic-scroll-container\" aup-table-scroller *ngIf=\"scrollMode$.value !== 'virtual'\">\n <table mat-table [dataSource]=\"data$.value\" [trackBy]=\"trackBy\" [multiTemplateDataRows]>\n\n <ng-container *ngFor=\"let column of columns$.value; index as index; first as first; last as last\"\n matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef [class.flex]=\"column.isFlex()\" [class.hide]=\"!column.isVisible()\"\n [class.keep-in-view]=\"column.isKeptInView()\">\n <aup-table-header-cell [column]=\"$any(column)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-header-cell>\n </th>\n <td mat-cell *matCellDef=\"let row\" (click)=\"notifyCellClicked(column, row)\"\n [class.enable-cursor]=\"tableModel.isCursorEnabledForRow(column, row)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n [class.keep-in-view]=\"column.isKeptInView()\"\n >\n <aup-table-cell [column]=\"$any(column)\"\n [row]=\"row\"\n [tableModel]=\"$any(tableModel)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n [aupHighlightTextModel]=\"highlightTextFor($any(column))\"\n ></aup-table-cell>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds$.value; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds$.value; let i = index\"\n [ngClass]=\"tableModel.getRowClasses(row)\"\n [class.enable-hover]=\"tableModel.isHoverEnabledForRow(row)\"\n [aupTableRowAttributes]=\"tableModel.getRowAttributes(row)\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n <!-- The loading row, pinned to the bottom of the table above any other footer row. The status region outside the\n table reads its message to screen readers, so the row itself is hidden from them. -->\n <ng-container *ngIf=\"tableModel._loadingRow as loadingRow\" matColumnDef=\"aup-loading-row\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"columnIds$.value.length\" class=\"footer-cell loading-row-cell\">\n <div *ngIf=\"loadingRowShown$.value\" class=\"loading-row\" aup-loading-row aria-hidden=\"true\">\n <mat-progress-spinner mode=\"indeterminate\" [diameter]=\"20\"></mat-progress-spinner>\n <span>{{ loadingRow.message() }}</span>\n </div>\n </td>\n <tr mat-footer-row *matFooterRowDef=\"['aup-loading-row']; sticky: true\" class=\"loading-footer-row\"\n [class.aup-footer-row-hidden]=\"!loadingRowShown$.value\"></tr>\n </ng-container>\n\n <ng-container *ngFor=\"let footer of footerRowDefs$.value\">\n <ng-container *ngFor=\"let cell of footer.cells\" [matColumnDef]=\"cell.defId\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"cell.colspan\"\n [attr.column-id]=\"cell.columnId\" class=\"footer-cell\">\n <aup-table-footer-row *ngIf=\"!cell.filler\" [cell]=\"cell\"></aup-table-footer-row>\n </td>\n </ng-container>\n <tr mat-footer-row *matFooterRowDef=\"footer.defIds; sticky: true\" [ngClass]=\"footer.rowClasses\"\n [class.aup-footer-row-hidden]=\"footer.visible$ && !footer.visible$.value\"></tr>\n </ng-container>\n\n </table>\n <!-- The marker after the last row, watched to tell when the end of the rows is in view. -->\n <div #endOfRowsMarker *ngIf=\"tableModel._endOfRows && scrollMode$.value === 'classic'\" class=\"end-of-rows\" aria-hidden=\"true\"></div>\n</div>\n\n<cdk-virtual-scroll-viewport *ngIf=\"scrollMode$.value === 'virtual'\" aup-table-scroller\n [@.disabled]=\"animationsDisabled$.value\"\n [tvsItemSize]=\"rowHeight$.value\"\n [headerHeight]=\"headerHeight$.value\"\n [footerEnabled]=\"(footerRowDefs$?.value?.length ?? 0) > 0\"\n [footerHeight]=\"48 * (footerRowDefs$?.value?.length ?? 0)\"\n [bufferMultiplier]=\"bufferMultiplier\"\n>\n <table mat-table [dataSource]=\"virtualScrollDataSource\" [trackBy]=\"trackBy\">\n\n <ng-container *ngFor=\"let column of columns$.value; index as index; first as first; last as last\"\n matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef [class.flex]=\"column.isFlex()\" [class.hide]=\"!column.isVisible()\"\n [class.keep-in-view]=\"column.isKeptInView()\">\n <aup-table-header-cell [column]=\"column\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-header-cell>\n </th>\n <td mat-cell *matCellDef=\"let row\" (click)=\"notifyCellClicked(column, row)\"\n [class.enable-cursor]=\"tableModel.isCursorEnabledForRow(column, row)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n [class.keep-in-view]=\"column.isKeptInView()\"\n >\n <aup-table-cell [column]=\"$any(column)\"\n [row]=\"row\"\n [tableModel]=\"$any(tableModel)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n [aupHighlightTextModel]=\"highlightTextFor($any(column))\"\n ></aup-table-cell>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds$.value; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds$.value; let i = index\"\n [ngClass]=\"tableModel.getRowClasses(row)\"\n [class.enable-hover]=\"tableModel.isHoverEnabledForRow(row)\"\n [aupTableRowAttributes]=\"tableModel.getRowAttributes(row)\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n <!-- The loading row, pinned to the bottom of the table above any other footer row. The status region outside the\n table reads its message to screen readers, so the row itself is hidden from them. -->\n <ng-container *ngIf=\"tableModel._loadingRow as loadingRow\" matColumnDef=\"aup-loading-row\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"columnIds$.value.length\" class=\"footer-cell loading-row-cell\">\n <div *ngIf=\"loadingRowShown$.value\" class=\"loading-row\" aup-loading-row aria-hidden=\"true\">\n <mat-progress-spinner mode=\"indeterminate\" [diameter]=\"20\"></mat-progress-spinner>\n <span>{{ loadingRow.message() }}</span>\n </div>\n </td>\n <tr mat-footer-row *matFooterRowDef=\"['aup-loading-row']; sticky: true\" class=\"loading-footer-row\"\n [class.aup-footer-row-hidden]=\"!loadingRowShown$.value\"></tr>\n </ng-container>\n\n <ng-container *ngFor=\"let footer of footerRowDefs$.value\">\n <ng-container *ngFor=\"let cell of footer.cells\" [matColumnDef]=\"cell.defId\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"cell.colspan\"\n [attr.column-id]=\"cell.columnId\" class=\"footer-cell\">\n <aup-table-footer-row *ngIf=\"!cell.filler\" [cell]=\"cell\"></aup-table-footer-row>\n </td>\n </ng-container>\n <tr mat-footer-row *matFooterRowDef=\"footer.defIds; sticky: true\" [ngClass]=\"footer.rowClasses\"\n [class.aup-footer-row-hidden]=\"footer.visible$ && !footer.visible$.value\"></tr>\n </ng-container>\n\n\n </table>\n</cdk-virtual-scroll-viewport>\n\n", styles: [":host{--enter-animation-duration: .1s;display:flex;flex-direction:column;align-items:stretch}:host.aup-animations-disabled{--enter-animation-duration: 0ms}:host table{width:100%}:host tr.aup-footer-row-hidden{display:none}:host td.footer-cell{border-top:0!important;box-shadow:0 -1px 0 0 var(--mat-table-row-item-outline-color, rgba(0, 0, 0, .12))}:host[scrollMode=virtual] cdk-virtual-scroll-viewport{flex:1}:host[scrollMode=virtual] table th{height:var(--aup-table-header-height);max-height:var(--aup-table-header-height);min-height:var(--aup-table-header-height)}:host[scrollMode=virtual] table td{height:var(--aup-table-row-height);max-height:var(--aup-table-row-height);min-height:var(--aup-table-row-height)}:host[scrollMode=classic]{min-height:0}:host[scrollMode=classic] .classic-scroll-container{flex:1;flex-basis:0;overflow-y:auto;display:flex;flex-direction:column;align-items:stretch}:host.hold-scroll-position .classic-scroll-container{overflow-anchor:none}td.loading-row-cell{padding:0}.loading-row{display:flex;align-items:center;justify-content:center;gap:12px;height:var(--aup-table-row-height);color:var(--aup-table-loading-row-color, inherit)}.loading-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.end-of-rows{height:1px;flex-shrink:0;pointer-events:none}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: HighlightTextModelDirective, selector: "[aupHighlightTextModel]", inputs: ["aupHighlightTextModel"] }, { kind: "component", type: i3$3.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i3$3.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i3$3.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i3$3.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i3$3.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i3$3.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i3$3.MatFooterCellDef, selector: "[matFooterCellDef]" }, { kind: "directive", type: i3$3.MatFooterRowDef, selector: "[matFooterRowDef]", inputs: ["matFooterRowDef", "matFooterRowDefSticky"] }, { kind: "directive", type: i3$3.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i3$3.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "directive", type: i3$3.MatFooterCell, selector: "mat-footer-cell, td[mat-footer-cell]" }, { kind: "component", type: i3$3.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i3$3.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i3$3.MatFooterRow, selector: "mat-footer-row, tr[mat-footer-row]", exportAs: ["matFooterRow"] }, { kind: "component", type: i2$1.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: i5.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "directive", type: i6.TableItemSizeDirective, selector: "cdk-virtual-scroll-viewport[tvsItemSize]", inputs: ["tvsItemSize", "headerEnabled", "headerHeight", "footerEnabled", "footerHeight", "bufferMultiplier"] }, { kind: "directive", type: TableRowAttributesDirective, selector: "[aupTableRowAttributes]", inputs: ["aupTableRowAttributes"] }, { kind: "component", type: TableCellComponent, selector: "aup-table-cell", inputs: ["row", "column", "tableModel"] }, { kind: "component", type: TableHeaderCellComponent, selector: "aup-table-header-cell", inputs: ["column"] }, { kind: "component", type: TableFooterRow, selector: "aup-table-footer-row", inputs: ["cell"] }] });
8155
8177
  }
8156
8178
  __decorate([
8157
8179
  Proxify(),
@@ -8181,7 +8203,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
8181
8203
  type: Component,
8182
8204
  args: [{ selector: "aup-table-body", providers: [
8183
8205
  { provide: AUP_DETACHED_PARENT_CDR, useFactory: () => inject(AUP_TABLE_OPTIMIZED_CHANGE_DETECTION, { optional: true }) ? inject(ChangeDetectorRef) : null }
8184
- ], template: "<!-- Reads the loading row's message to screen readers. It is in the page before the message appears in it, as a\n screen reader announces only a change to a status region it already knows, and the loading row is hidden while\n no chunk is on its way. -->\n<div *ngIf=\"tableModel._loadingRow as loadingRow\" role=\"status\" class=\"loading-status\">{{ loadingRowShown$.value ? loadingRow.message() : '' }}</div>\n\n<div #classicScrollContainer class=\"classic-scroll-container\" aup-table-scroller *ngIf=\"scrollMode$.value !== 'virtual'\">\n <table mat-table [dataSource]=\"data$.value\" [trackBy]=\"trackBy\" [multiTemplateDataRows]>\n\n <ng-container *ngFor=\"let column of columns$.value; index as index; first as first; last as last\"\n matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef [class.flex]=\"column.isFlex()\" [class.hide]=\"!column.isVisible()\">\n <aup-table-header-cell [column]=\"$any(column)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-header-cell>\n </th>\n <td mat-cell *matCellDef=\"let row\" (click)=\"notifyCellClicked(column, row)\"\n [class.enable-cursor]=\"tableModel.isCursorEnabledForRow(column, row)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n >\n <aup-table-cell [column]=\"$any(column)\"\n [row]=\"row\"\n [tableModel]=\"$any(tableModel)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n [aupHighlightTextModel]=\"highlightTextFor($any(column))\"\n ></aup-table-cell>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds$.value; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds$.value; let i = index\"\n [ngClass]=\"tableModel.getRowClasses(row)\"\n [class.enable-hover]=\"tableModel.isHoverEnabledForRow(row)\"\n [aupTableRowAttributes]=\"tableModel.getRowAttributes(row)\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n <!-- The loading row, pinned to the bottom of the table above any other footer row. The status region outside the\n table reads its message to screen readers, so the row itself is hidden from them. -->\n <ng-container *ngIf=\"tableModel._loadingRow as loadingRow\" matColumnDef=\"aup-loading-row\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"columnIds$.value.length\" class=\"footer-cell loading-row-cell\">\n <div *ngIf=\"loadingRowShown$.value\" class=\"loading-row\" aup-loading-row aria-hidden=\"true\">\n <mat-progress-spinner mode=\"indeterminate\" [diameter]=\"20\"></mat-progress-spinner>\n <span>{{ loadingRow.message() }}</span>\n </div>\n </td>\n <tr mat-footer-row *matFooterRowDef=\"['aup-loading-row']; sticky: true\" class=\"loading-footer-row\"\n [class.aup-footer-row-hidden]=\"!loadingRowShown$.value\"></tr>\n </ng-container>\n\n <ng-container *ngFor=\"let footer of footerRowDefs$.value\">\n <ng-container *ngFor=\"let cell of footer.cells\" [matColumnDef]=\"cell.defId\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"cell.colspan\"\n [attr.column-id]=\"cell.columnId\" class=\"footer-cell\">\n <aup-table-footer-row *ngIf=\"!cell.filler\" [cell]=\"cell\"></aup-table-footer-row>\n </td>\n </ng-container>\n <tr mat-footer-row *matFooterRowDef=\"footer.defIds; sticky: true\" [ngClass]=\"footer.rowClasses\"\n [class.aup-footer-row-hidden]=\"footer.visible$ && !footer.visible$.value\"></tr>\n </ng-container>\n\n </table>\n <!-- The marker after the last row, watched to tell when the end of the rows is in view. -->\n <div #endOfRowsMarker *ngIf=\"tableModel._endOfRows && scrollMode$.value === 'classic'\" class=\"end-of-rows\" aria-hidden=\"true\"></div>\n</div>\n\n<cdk-virtual-scroll-viewport *ngIf=\"scrollMode$.value === 'virtual'\" aup-table-scroller\n [@.disabled]=\"animationsDisabled$.value\"\n [tvsItemSize]=\"rowHeight$.value\"\n [headerHeight]=\"headerHeight$.value\"\n [footerEnabled]=\"(footerRowDefs$?.value?.length ?? 0) > 0\"\n [footerHeight]=\"48 * (footerRowDefs$?.value?.length ?? 0)\"\n [bufferMultiplier]=\"bufferMultiplier\"\n>\n <table mat-table [dataSource]=\"virtualScrollDataSource\" [trackBy]=\"trackBy\">\n\n <ng-container *ngFor=\"let column of columns$.value; index as index; first as first; last as last\"\n matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef [class.flex]=\"column.isFlex()\" [class.hide]=\"!column.isVisible()\">\n <aup-table-header-cell [column]=\"column\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-header-cell>\n </th>\n <td mat-cell *matCellDef=\"let row\" (click)=\"notifyCellClicked(column, row)\"\n [class.enable-cursor]=\"tableModel.isCursorEnabledForRow(column, row)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n >\n <aup-table-cell [column]=\"$any(column)\"\n [row]=\"row\"\n [tableModel]=\"$any(tableModel)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n [aupHighlightTextModel]=\"highlightTextFor($any(column))\"\n ></aup-table-cell>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds$.value; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds$.value; let i = index\"\n [ngClass]=\"tableModel.getRowClasses(row)\"\n [class.enable-hover]=\"tableModel.isHoverEnabledForRow(row)\"\n [aupTableRowAttributes]=\"tableModel.getRowAttributes(row)\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n <!-- The loading row, pinned to the bottom of the table above any other footer row. The status region outside the\n table reads its message to screen readers, so the row itself is hidden from them. -->\n <ng-container *ngIf=\"tableModel._loadingRow as loadingRow\" matColumnDef=\"aup-loading-row\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"columnIds$.value.length\" class=\"footer-cell loading-row-cell\">\n <div *ngIf=\"loadingRowShown$.value\" class=\"loading-row\" aup-loading-row aria-hidden=\"true\">\n <mat-progress-spinner mode=\"indeterminate\" [diameter]=\"20\"></mat-progress-spinner>\n <span>{{ loadingRow.message() }}</span>\n </div>\n </td>\n <tr mat-footer-row *matFooterRowDef=\"['aup-loading-row']; sticky: true\" class=\"loading-footer-row\"\n [class.aup-footer-row-hidden]=\"!loadingRowShown$.value\"></tr>\n </ng-container>\n\n <ng-container *ngFor=\"let footer of footerRowDefs$.value\">\n <ng-container *ngFor=\"let cell of footer.cells\" [matColumnDef]=\"cell.defId\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"cell.colspan\"\n [attr.column-id]=\"cell.columnId\" class=\"footer-cell\">\n <aup-table-footer-row *ngIf=\"!cell.filler\" [cell]=\"cell\"></aup-table-footer-row>\n </td>\n </ng-container>\n <tr mat-footer-row *matFooterRowDef=\"footer.defIds; sticky: true\" [ngClass]=\"footer.rowClasses\"\n [class.aup-footer-row-hidden]=\"footer.visible$ && !footer.visible$.value\"></tr>\n </ng-container>\n\n\n </table>\n</cdk-virtual-scroll-viewport>\n\n", styles: [":host{--enter-animation-duration: .1s;display:flex;flex-direction:column;align-items:stretch}:host.aup-animations-disabled{--enter-animation-duration: 0ms}:host table{width:100%}:host tr.aup-footer-row-hidden{display:none}:host td.footer-cell{border-top:0!important;box-shadow:0 -1px 0 0 var(--mat-table-row-item-outline-color, rgba(0, 0, 0, .12))}:host[scrollMode=virtual] cdk-virtual-scroll-viewport{flex:1}:host[scrollMode=virtual] table th{height:var(--aup-table-header-height);max-height:var(--aup-table-header-height);min-height:var(--aup-table-header-height)}:host[scrollMode=virtual] table td{height:var(--aup-table-row-height);max-height:var(--aup-table-row-height);min-height:var(--aup-table-row-height)}:host[scrollMode=classic]{min-height:0}:host[scrollMode=classic] .classic-scroll-container{flex:1;flex-basis:0;overflow-y:auto;display:flex;flex-direction:column;align-items:stretch}:host.hold-scroll-position .classic-scroll-container{overflow-anchor:none}td.loading-row-cell{padding:0}.loading-row{display:flex;align-items:center;justify-content:center;gap:12px;height:var(--aup-table-row-height);color:var(--aup-table-loading-row-color, inherit)}.loading-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.end-of-rows{height:1px;flex-shrink:0;pointer-events:none}\n"] }]
8206
+ ], template: "<!-- Reads the loading row's message to screen readers. It is in the page before the message appears in it, as a\n screen reader announces only a change to a status region it already knows, and the loading row is hidden while\n no chunk is on its way. -->\n<div *ngIf=\"tableModel._loadingRow as loadingRow\" role=\"status\" class=\"loading-status\">{{ loadingRowShown$.value ? loadingRow.message() : '' }}</div>\n\n<div #classicScrollContainer class=\"classic-scroll-container\" aup-table-scroller *ngIf=\"scrollMode$.value !== 'virtual'\">\n <table mat-table [dataSource]=\"data$.value\" [trackBy]=\"trackBy\" [multiTemplateDataRows]>\n\n <ng-container *ngFor=\"let column of columns$.value; index as index; first as first; last as last\"\n matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef [class.flex]=\"column.isFlex()\" [class.hide]=\"!column.isVisible()\"\n [class.keep-in-view]=\"column.isKeptInView()\">\n <aup-table-header-cell [column]=\"$any(column)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-header-cell>\n </th>\n <td mat-cell *matCellDef=\"let row\" (click)=\"notifyCellClicked(column, row)\"\n [class.enable-cursor]=\"tableModel.isCursorEnabledForRow(column, row)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n [class.keep-in-view]=\"column.isKeptInView()\"\n >\n <aup-table-cell [column]=\"$any(column)\"\n [row]=\"row\"\n [tableModel]=\"$any(tableModel)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n [aupHighlightTextModel]=\"highlightTextFor($any(column))\"\n ></aup-table-cell>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds$.value; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds$.value; let i = index\"\n [ngClass]=\"tableModel.getRowClasses(row)\"\n [class.enable-hover]=\"tableModel.isHoverEnabledForRow(row)\"\n [aupTableRowAttributes]=\"tableModel.getRowAttributes(row)\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n <!-- The loading row, pinned to the bottom of the table above any other footer row. The status region outside the\n table reads its message to screen readers, so the row itself is hidden from them. -->\n <ng-container *ngIf=\"tableModel._loadingRow as loadingRow\" matColumnDef=\"aup-loading-row\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"columnIds$.value.length\" class=\"footer-cell loading-row-cell\">\n <div *ngIf=\"loadingRowShown$.value\" class=\"loading-row\" aup-loading-row aria-hidden=\"true\">\n <mat-progress-spinner mode=\"indeterminate\" [diameter]=\"20\"></mat-progress-spinner>\n <span>{{ loadingRow.message() }}</span>\n </div>\n </td>\n <tr mat-footer-row *matFooterRowDef=\"['aup-loading-row']; sticky: true\" class=\"loading-footer-row\"\n [class.aup-footer-row-hidden]=\"!loadingRowShown$.value\"></tr>\n </ng-container>\n\n <ng-container *ngFor=\"let footer of footerRowDefs$.value\">\n <ng-container *ngFor=\"let cell of footer.cells\" [matColumnDef]=\"cell.defId\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"cell.colspan\"\n [attr.column-id]=\"cell.columnId\" class=\"footer-cell\">\n <aup-table-footer-row *ngIf=\"!cell.filler\" [cell]=\"cell\"></aup-table-footer-row>\n </td>\n </ng-container>\n <tr mat-footer-row *matFooterRowDef=\"footer.defIds; sticky: true\" [ngClass]=\"footer.rowClasses\"\n [class.aup-footer-row-hidden]=\"footer.visible$ && !footer.visible$.value\"></tr>\n </ng-container>\n\n </table>\n <!-- The marker after the last row, watched to tell when the end of the rows is in view. -->\n <div #endOfRowsMarker *ngIf=\"tableModel._endOfRows && scrollMode$.value === 'classic'\" class=\"end-of-rows\" aria-hidden=\"true\"></div>\n</div>\n\n<cdk-virtual-scroll-viewport *ngIf=\"scrollMode$.value === 'virtual'\" aup-table-scroller\n [@.disabled]=\"animationsDisabled$.value\"\n [tvsItemSize]=\"rowHeight$.value\"\n [headerHeight]=\"headerHeight$.value\"\n [footerEnabled]=\"(footerRowDefs$?.value?.length ?? 0) > 0\"\n [footerHeight]=\"48 * (footerRowDefs$?.value?.length ?? 0)\"\n [bufferMultiplier]=\"bufferMultiplier\"\n>\n <table mat-table [dataSource]=\"virtualScrollDataSource\" [trackBy]=\"trackBy\">\n\n <ng-container *ngFor=\"let column of columns$.value; index as index; first as first; last as last\"\n matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef [class.flex]=\"column.isFlex()\" [class.hide]=\"!column.isVisible()\"\n [class.keep-in-view]=\"column.isKeptInView()\">\n <aup-table-header-cell [column]=\"column\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-header-cell>\n </th>\n <td mat-cell *matCellDef=\"let row\" (click)=\"notifyCellClicked(column, row)\"\n [class.enable-cursor]=\"tableModel.isCursorEnabledForRow(column, row)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n [class.keep-in-view]=\"column.isKeptInView()\"\n >\n <aup-table-cell [column]=\"$any(column)\"\n [row]=\"row\"\n [tableModel]=\"$any(tableModel)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n [aupHighlightTextModel]=\"highlightTextFor($any(column))\"\n ></aup-table-cell>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds$.value; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds$.value; let i = index\"\n [ngClass]=\"tableModel.getRowClasses(row)\"\n [class.enable-hover]=\"tableModel.isHoverEnabledForRow(row)\"\n [aupTableRowAttributes]=\"tableModel.getRowAttributes(row)\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n <!-- The loading row, pinned to the bottom of the table above any other footer row. The status region outside the\n table reads its message to screen readers, so the row itself is hidden from them. -->\n <ng-container *ngIf=\"tableModel._loadingRow as loadingRow\" matColumnDef=\"aup-loading-row\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"columnIds$.value.length\" class=\"footer-cell loading-row-cell\">\n <div *ngIf=\"loadingRowShown$.value\" class=\"loading-row\" aup-loading-row aria-hidden=\"true\">\n <mat-progress-spinner mode=\"indeterminate\" [diameter]=\"20\"></mat-progress-spinner>\n <span>{{ loadingRow.message() }}</span>\n </div>\n </td>\n <tr mat-footer-row *matFooterRowDef=\"['aup-loading-row']; sticky: true\" class=\"loading-footer-row\"\n [class.aup-footer-row-hidden]=\"!loadingRowShown$.value\"></tr>\n </ng-container>\n\n <ng-container *ngFor=\"let footer of footerRowDefs$.value\">\n <ng-container *ngFor=\"let cell of footer.cells\" [matColumnDef]=\"cell.defId\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"cell.colspan\"\n [attr.column-id]=\"cell.columnId\" class=\"footer-cell\">\n <aup-table-footer-row *ngIf=\"!cell.filler\" [cell]=\"cell\"></aup-table-footer-row>\n </td>\n </ng-container>\n <tr mat-footer-row *matFooterRowDef=\"footer.defIds; sticky: true\" [ngClass]=\"footer.rowClasses\"\n [class.aup-footer-row-hidden]=\"footer.visible$ && !footer.visible$.value\"></tr>\n </ng-container>\n\n\n </table>\n</cdk-virtual-scroll-viewport>\n\n", styles: [":host{--enter-animation-duration: .1s;display:flex;flex-direction:column;align-items:stretch}:host.aup-animations-disabled{--enter-animation-duration: 0ms}:host table{width:100%}:host tr.aup-footer-row-hidden{display:none}:host td.footer-cell{border-top:0!important;box-shadow:0 -1px 0 0 var(--mat-table-row-item-outline-color, rgba(0, 0, 0, .12))}:host[scrollMode=virtual] cdk-virtual-scroll-viewport{flex:1}:host[scrollMode=virtual] table th{height:var(--aup-table-header-height);max-height:var(--aup-table-header-height);min-height:var(--aup-table-header-height)}:host[scrollMode=virtual] table td{height:var(--aup-table-row-height);max-height:var(--aup-table-row-height);min-height:var(--aup-table-row-height)}:host[scrollMode=classic]{min-height:0}:host[scrollMode=classic] .classic-scroll-container{flex:1;flex-basis:0;overflow-y:auto;display:flex;flex-direction:column;align-items:stretch}:host.hold-scroll-position .classic-scroll-container{overflow-anchor:none}td.loading-row-cell{padding:0}.loading-row{display:flex;align-items:center;justify-content:center;gap:12px;height:var(--aup-table-row-height);color:var(--aup-table-loading-row-color, inherit)}.loading-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.end-of-rows{height:1px;flex-shrink:0;pointer-events:none}\n"] }]
8185
8207
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
8186
8208
  type: Inject,
8187
8209
  args: [AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER]