@coolon/angular-ui-powerups 16.1.0-alpha.328 → 16.1.0-alpha.330

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __metadata } from "tslib";
2
- import { Component, ElementRef, Injector, Input, ViewChild } from "@angular/core";
2
+ import { Component, ElementRef, Injector, Input, isDevMode, ViewChild } from "@angular/core";
3
3
  import { CanProxy, DelegatingListModel, Dsl, Proxify, proxify, StoreInValueModel, ValueModel } from "@coolon/pectin";
4
4
  import { AbstractTableComponent } from '../abstract-table.component';
5
5
  import { TableSearchModel } from "../filter/table-search-model";
@@ -95,6 +95,17 @@ export class TableComponent extends AbstractTableComponent {
95
95
  #scrollMode_accessor_storage;
96
96
  get scrollMode() { return this.#scrollMode_accessor_storage; }
97
97
  set scrollMode(value) { this.#scrollMode_accessor_storage = value; }
98
+ /**
99
+ * Set to true to keep the rows in view where they are when rows are inserted, removed or resized above
100
+ * them, so a reader scrolled down the table is not moved. At the top of the table nothing is held, so a
101
+ * row inserted there comes into view. Applies with `scrollMode="classic"` only, and only to rows with an
102
+ * identity of their own (a list `identifiedBy` an id), because a row is found again by its id. In
103
+ * development, a table set to hold without either warns in the console.
104
+ *
105
+ * The element that scrolls the rows, in either scroll mode, carries the attribute `aup-scroll-container`,
106
+ * and each row its id as `aup-row-id`, so a test can scroll the table and find a row where it is drawn.
107
+ */
108
+ holdScrollPosition = false;
98
109
  _footerContentAdded = false;
99
110
  _filteredRows$ = this.registerDisposable(new DelegatingListModel());
100
111
  tableBodyScrollMode$;
@@ -122,6 +133,28 @@ export class TableComponent extends AbstractTableComponent {
122
133
  this.tableModel.bindToTable(this._filteredRows$, this._visibleRows$);
123
134
  when.anyOf(...this.tableModel.viewStateDependencies).changes(() => this.cdr.markForCheck());
124
135
  this.viewStateDependsOn(this._filteredRows$, this.tableModel.visibleColumns$, this.tableModel.selectedItems$);
136
+ if (isDevMode() && this.holdScrollPosition) {
137
+ this.warnWhereHoldingCannotWork();
138
+ }
139
+ }
140
+ /**
141
+ * Warns of a table set to hold its scroll position where it cannot. Nothing fails otherwise: the
142
+ * table moves the rows the reader is on, or holds the wrong one.
143
+ */
144
+ warnWhereHoldingCannotWork() {
145
+ if (this.tableBodyScrollMode$.value !== 'classic') {
146
+ console.warn('aup-table: holdScrollPosition applies with scrollMode="classic" only, so this table holds nothing.');
147
+ }
148
+ // The list may hold its rows already, or receive them later, so the first row is checked either way.
149
+ const { chain, when } = Dsl.disposeWith(this);
150
+ let warned = false;
151
+ when(chain(this._dataSource$).first()).changes(row => {
152
+ if (!warned && row === this.identityOf(row)) {
153
+ warned = true;
154
+ console.warn('aup-table: holdScrollPosition finds the rows in view again by their ids, and these rows have none, '
155
+ + 'so it can hold the wrong row. Identify the list by an id, with identifiedBy.');
156
+ }
157
+ }, { initialValue: 'triggerChangeUnlessNil' });
125
158
  }
126
159
  getModel() {
127
160
  return this.tableModel;
@@ -139,9 +172,9 @@ export class TableComponent extends AbstractTableComponent {
139
172
  this._footerContentAdded = true;
140
173
  }
141
174
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
142
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableComponent, selector: "aup-table", inputs: { tableModel: "tableModel", filterModel: "filterModel", scrollMode$: "scrollMode$", scrollMode: "scrollMode" }, providers: [
175
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableComponent, selector: "aup-table", inputs: { tableModel: "tableModel", filterModel: "filterModel", scrollMode$: "scrollMode$", scrollMode: "scrollMode", holdScrollPosition: "holdScrollPosition" }, providers: [
143
176
  { provide: AbstractTableComponent, useExisting: TableComponent }
144
- ], viewQueries: [{ propertyName: "tableBody", first: true, predicate: TableBodyComponent, descendants: true }, { propertyName: "emptyContent", first: true, predicate: ["emptyContent"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<aup-table-body [hidden]=\"showsEmptyContent\"\n [data$]=\"visibleRows$\"\n [tableModel]=\"$any(tableModel)\"\n [footerRows]=\"tableModel.footerRowModels\"\n [showHeader$]=\"$any(showHeader$)\"\n [scrollMode$]=\"tableBodyScrollMode$\"\n [trackBy]=\"trackBy\"\n [aupHighlightTextModel]=\"highlightText$\"\n></aup-table-body>\n<div #emptyContent class=\"empty-content\" [hidden]=\"!showsEmptyContent\"><ng-content select=\"[empty], [slot=empty]\"></ng-content></div>\n<section class=\"table-footer\">\n <div class=\"footer-content\"><ng-content select=\"[footer], [slot=footer]\"></ng-content></div>\n</section>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}aup-table-body{flex:1}aup-table-body[hidden],.empty-content[hidden]{display:none}.empty-content{flex:1;min-height:0;display:flex;flex-direction:column;align-items:stretch}.table-footer{display:flex;flex-direction:row;align-items:center}.table-footer .footer-content{flex:1}\n"], dependencies: [{ kind: "directive", type: i1.HighlightTextModelDirective, selector: "[aupHighlightTextModel]", inputs: ["aupHighlightTextModel"] }, { kind: "component", type: i2.TableBodyComponent, selector: "aup-table-body", inputs: ["data$", "tableModel", "footerRows", "showHeader$", "showHeader", "trackBy", "scrollMode$", "scrollMode"] }] });
177
+ ], viewQueries: [{ propertyName: "tableBody", first: true, predicate: TableBodyComponent, descendants: true }, { propertyName: "emptyContent", first: true, predicate: ["emptyContent"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<aup-table-body [hidden]=\"showsEmptyContent\"\n [data$]=\"visibleRows$\"\n [tableModel]=\"$any(tableModel)\"\n [footerRows]=\"tableModel.footerRowModels\"\n [showHeader$]=\"$any(showHeader$)\"\n [scrollMode$]=\"tableBodyScrollMode$\"\n [holdScrollPosition]=\"holdScrollPosition\"\n [trackBy]=\"trackBy\"\n [aupHighlightTextModel]=\"highlightText$\"\n></aup-table-body>\n<div #emptyContent class=\"empty-content\" [hidden]=\"!showsEmptyContent\"><ng-content select=\"[empty], [slot=empty]\"></ng-content></div>\n<section class=\"table-footer\">\n <div class=\"footer-content\"><ng-content select=\"[footer], [slot=footer]\"></ng-content></div>\n</section>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}aup-table-body{flex:1}aup-table-body[hidden],.empty-content[hidden]{display:none}.empty-content{flex:1;min-height:0;display:flex;flex-direction:column;align-items:stretch}.table-footer{display:flex;flex-direction:row;align-items:center}.table-footer .footer-content{flex:1}\n"], dependencies: [{ kind: "directive", type: i1.HighlightTextModelDirective, selector: "[aupHighlightTextModel]", inputs: ["aupHighlightTextModel"] }, { kind: "component", type: i2.TableBodyComponent, selector: "aup-table-body", inputs: ["data$", "tableModel", "footerRows", "showHeader$", "showHeader", "trackBy", "scrollMode$", "scrollMode", "holdScrollPosition"] }] });
145
178
  }
146
179
  __decorate([
147
180
  Proxify(),
@@ -163,7 +196,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
163
196
  type: Component,
164
197
  args: [{ selector: 'aup-table', providers: [
165
198
  { provide: AbstractTableComponent, useExisting: TableComponent }
166
- ], template: "<aup-table-body [hidden]=\"showsEmptyContent\"\n [data$]=\"visibleRows$\"\n [tableModel]=\"$any(tableModel)\"\n [footerRows]=\"tableModel.footerRowModels\"\n [showHeader$]=\"$any(showHeader$)\"\n [scrollMode$]=\"tableBodyScrollMode$\"\n [trackBy]=\"trackBy\"\n [aupHighlightTextModel]=\"highlightText$\"\n></aup-table-body>\n<div #emptyContent class=\"empty-content\" [hidden]=\"!showsEmptyContent\"><ng-content select=\"[empty], [slot=empty]\"></ng-content></div>\n<section class=\"table-footer\">\n <div class=\"footer-content\"><ng-content select=\"[footer], [slot=footer]\"></ng-content></div>\n</section>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}aup-table-body{flex:1}aup-table-body[hidden],.empty-content[hidden]{display:none}.empty-content{flex:1;min-height:0;display:flex;flex-direction:column;align-items:stretch}.table-footer{display:flex;flex-direction:row;align-items:center}.table-footer .footer-content{flex:1}\n"] }]
199
+ ], template: "<aup-table-body [hidden]=\"showsEmptyContent\"\n [data$]=\"visibleRows$\"\n [tableModel]=\"$any(tableModel)\"\n [footerRows]=\"tableModel.footerRowModels\"\n [showHeader$]=\"$any(showHeader$)\"\n [scrollMode$]=\"tableBodyScrollMode$\"\n [holdScrollPosition]=\"holdScrollPosition\"\n [trackBy]=\"trackBy\"\n [aupHighlightTextModel]=\"highlightText$\"\n></aup-table-body>\n<div #emptyContent class=\"empty-content\" [hidden]=\"!showsEmptyContent\"><ng-content select=\"[empty], [slot=empty]\"></ng-content></div>\n<section class=\"table-footer\">\n <div class=\"footer-content\"><ng-content select=\"[footer], [slot=footer]\"></ng-content></div>\n</section>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}aup-table-body{flex:1}aup-table-body[hidden],.empty-content[hidden]{display:none}.empty-content{flex:1;min-height:0;display:flex;flex-direction:column;align-items:stretch}.table-footer{display:flex;flex-direction:row;align-items:center}.table-footer .footer-content{flex:1}\n"] }]
167
200
  }], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { tableModel: [{
168
201
  type: Input
169
202
  }], filterModel: [{
@@ -178,5 +211,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
178
211
  type: Input
179
212
  }], scrollMode: [{
180
213
  type: Input
214
+ }], holdScrollPosition: [{
215
+ type: Input
181
216
  }] } });
182
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9hbmd1bGFyLXVpLXBvd2VydXBzL3NyYy9saWIvY29tcG9uZW50cy90YWJsZXMvdGFibGUvdGFibGUuY29tcG9uZW50LnRzIiwiLi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W9kZWxdPVwiJGFueSh0YWJsZU1vZGVsKVwiXG4gICAgICAgICAgICAgICAgW2Zvb3RlclJvd3NdPVwidGFibGVNb2RlbC5mb290ZXJSb3dNb2RlbHNcIlxuICAgICAgICAgICAgICAgIFtzaG93SGVhZGVyJF09XCIkYW55KHNob3dIZWFkZXIkKVwiXG4gICAgICAgICAgICAgICAgW3Njcm9sbE1vZGUkXT1cInRhYmxlQm9keVNjcm9sbE1vZGUkXCJcbiAgICAgICAgICAgICAgICBbaG9sZFNjcm9sbFBvc2l0aW9uXT1cImhvbGRTY3JvbGxQb3NpdGlvblwiXG4gICAgICAgICAgICAgICAgW3RyYWNrQnldPVwidHJhY2tCeVwiXG4gICAgICAgICAgICAgICAgW2F1cEhpZ2hsaWdodFRleHRNb2RlbF09XCJoaWdobGlnaHRUZXh0JFwiXG4+PC9hdXAtdGFibGUtYm9keT5cbjxkaXYgI2VtcHR5Q29udGVudCBjbGFzcz1cImVtcHR5LWNvbnRlbnRcIiBbaGlkZGVuXT1cIiFzaG93c0VtcHR5Q29udGVudFwiPjxuZy1jb250ZW50IHNlbGVjdD1cIltlbXB0eV0sIFtzbG90PWVtcHR5XVwiPjwvbmctY29udGVudD48L2Rpdj5cbjxzZWN0aW9uIGNsYXNzPVwidGFibGUtZm9vdGVyXCI+XG4gIDxkaXYgY2xhc3M9XCJmb290ZXItY29udGVudFwiPjxuZy1jb250ZW50IHNlbGVjdD1cIltmb290ZXJdLCBbc2xvdD1mb290ZXJdXCI+PC9uZy1jb250ZW50PjwvZGl2PlxuPC9zZWN0aW9uPlxuIl19
@@ -103,7 +103,7 @@ export class TreeTableComponent extends AbstractTableComponent {
103
103
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TreeTableComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
104
104
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TreeTableComponent, selector: "aup-tree-table", inputs: { treeTableModel: "treeTableModel", expansionModel: "expansionModel" }, providers: [
105
105
  { provide: AbstractTableComponent, useExisting: TreeTableComponent }
106
- ], usesInheritance: true, ngImport: i0, template: "<aup-table-body [data$]=\"visibleRows$\"\n [tableModel]=\"treeTableModel\"\n [showHeader$]=\"showHeader$\"\n [scrollMode$]=\"scrollMode$\"\n [aupHighlightTextModel]=\"highlightText$\"\n [trackBy]=\"trackBy\"\n></aup-table-body>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host::ng-deep td.mat-mdc-cell{border-top-width:0!important;border-bottom-width:0!important}:host::ng-deep td.mat-column-tree-label{width:1px}:host::ng-deep aup-table-cell-renderer[column-id=tree-label]{padding-left:8px!important}:host::ng-deep aup-tree-label-cell-renderer{flex:1}aup-table-body{flex:1}\n"], dependencies: [{ kind: "directive", type: i1.HighlightTextModelDirective, selector: "[aupHighlightTextModel]", inputs: ["aupHighlightTextModel"] }, { kind: "component", type: i2.TableBodyComponent, selector: "aup-table-body", inputs: ["data$", "tableModel", "footerRows", "showHeader$", "showHeader", "trackBy", "scrollMode$", "scrollMode"] }] });
106
+ ], usesInheritance: true, ngImport: i0, template: "<aup-table-body [data$]=\"visibleRows$\"\n [tableModel]=\"treeTableModel\"\n [showHeader$]=\"showHeader$\"\n [scrollMode$]=\"scrollMode$\"\n [aupHighlightTextModel]=\"highlightText$\"\n [trackBy]=\"trackBy\"\n></aup-table-body>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host::ng-deep td.mat-mdc-cell{border-top-width:0!important;border-bottom-width:0!important}:host::ng-deep td.mat-column-tree-label{width:1px}:host::ng-deep aup-table-cell-renderer[column-id=tree-label]{padding-left:8px!important}:host::ng-deep aup-tree-label-cell-renderer{flex:1}aup-table-body{flex:1}\n"], dependencies: [{ kind: "directive", type: i1.HighlightTextModelDirective, selector: "[aupHighlightTextModel]", inputs: ["aupHighlightTextModel"] }, { kind: "component", type: i2.TableBodyComponent, selector: "aup-table-body", inputs: ["data$", "tableModel", "footerRows", "showHeader$", "showHeader", "trackBy", "scrollMode$", "scrollMode", "holdScrollPosition"] }] });
107
107
  }
108
108
  __decorate([
109
109
  Proxify(),
@@ -6188,9 +6188,10 @@ const SEARCH_CRITERIA_KEY = `aup:table:searchCriteria`;
6188
6188
  * its own metadata key, so a renderer may carry both.
6189
6189
  *
6190
6190
  * @example
6191
- * @SearchCriteria(AlarmSourceSearch, DeviceNameSearch)
6192
- * @Component({selector: 'frontend-alarm-source-cell-renderer', ...})
6193
- * export class AlarmSourceCellRendererComponent { ... }
6191
+ * // Shown in tables of heroes and of villains, so it names a search class for each one's search criteria.
6192
+ * @SearchCriteria(HeroPowerSearch, VillainPowerSearch)
6193
+ * @Component({selector: 'app-power-cell', ...})
6194
+ * export class PowerCellComponent { ... }
6194
6195
  */
6195
6196
  function SearchCriteria(...searchClasses) {
6196
6197
  assert$1.isTruthy(searchClasses.length > 0, "@SearchCriteria needs at least one search class");
@@ -6934,11 +6935,11 @@ class AbstractTableModel extends GarbageCollector {
6934
6935
  * search class's `dependsOn` change.
6935
6936
  *
6936
6937
  * @example
6937
- * const criteria$ = this.table.useCriteria(base$, {
6938
- * searchCriteriaClass: AlarmSearchCriteriaDto,
6939
- * withSearchCriteria: (criteria, searchCriteria) => criteria.copy({searchCriteria}),
6938
+ * const query$ = this.table.useCriteria(base$, {
6939
+ * searchCriteriaClass: HeroSearchCriteria,
6940
+ * withSearchCriteria: (query, searchCriteria) => query.with({searchCriteria}),
6940
6941
  * });
6941
- * this.history.useCriteria(criteria$);
6942
+ * chain(query$).subscribe(query => this.send(query));
6942
6943
  */
6943
6944
  useCriteria(base$, placement) {
6944
6945
  assert$1.isFalsey(this._criteriaPlacement, 'useCriteria may be called once per table');
@@ -7366,7 +7367,10 @@ class TableBodyComponent extends ResizeAwareComponent {
7366
7367
  #scrollMode_accessor_storage = "none";
7367
7368
  get scrollMode() { return this.#scrollMode_accessor_storage; }
7368
7369
  set scrollMode(value) { this.#scrollMode_accessor_storage = value; }
7370
+ /** Keeps the rows in view where they are when rows change above them: see `TableComponent.holdScrollPosition`. */
7371
+ holdScrollPosition = false;
7369
7372
  scrollViewport;
7373
+ classicScrollContainer;
7370
7374
  columns$;
7371
7375
  columnIds$;
7372
7376
  footerRowDefs$;
@@ -7432,6 +7436,8 @@ class TableBodyComponent extends ResizeAwareComponent {
7432
7436
  });
7433
7437
  const delayedData$ = chain(this.data$).postponeWhile(this.virtualScrollActive$);
7434
7438
  when(delayedData$).changes(delatedData => {
7439
+ // Read before the rows change: the DOM still shows the old rows until the view is next checked.
7440
+ const rowsInView = this.rowsInViewToHold();
7435
7441
  this.animationsDisabled$.value = true;
7436
7442
  // Update the CDK data source before detectChanges so that both the explicit detectChanges
7437
7443
  // and any subsequent SWEEP-triggered detectChanges see the same data. If we update after,
@@ -7445,6 +7451,9 @@ class TableBodyComponent extends ResizeAwareComponent {
7445
7451
  if (this.optimisedChangeDetectionEnabled && this.viewInitialized) {
7446
7452
  this.cdr.detectChanges();
7447
7453
  }
7454
+ if (rowsInView) {
7455
+ this.holdInView(rowsInView);
7456
+ }
7448
7457
  this.scheduleTableHeightCheck();
7449
7458
  this.resetAnimationsAfterFrame();
7450
7459
  }, { initialValue: "evaluate" });
@@ -7549,6 +7558,48 @@ class TableBodyComponent extends ResizeAwareComponent {
7549
7558
  const pixels = parseFloat(getComputedStyle(element).getPropertyValue(property));
7550
7559
  return Number.isFinite(pixels) && pixels > 0 ? pixels : undefined;
7551
7560
  }
7561
+ /**
7562
+ * Where each row in view sits, by its id, when [holdScrollPosition] applies and the table is scrolled down;
7563
+ * otherwise undefined. A row behind the sticky header is not in view.
7564
+ */
7565
+ rowsInViewToHold() {
7566
+ const container = this.classicScrollContainer?.nativeElement;
7567
+ if (!this.holdScrollPosition || !this.viewInitialized || this.scrollMode$.value !== 'classic' || !container || container.scrollTop <= 0) {
7568
+ return undefined;
7569
+ }
7570
+ const bounds = container.getBoundingClientRect();
7571
+ // The header's cells are what stick, not the thead: the thead scrolls away with the rows. A hidden header
7572
+ // has no box, so its bottom is above the table and the rows are in view from the table's top.
7573
+ const headerBottom = container.querySelector('thead th')?.getBoundingClientRect().bottom ?? 0;
7574
+ const visibleTop = Math.max(headerBottom, bounds.top);
7575
+ return Array.from(container.querySelectorAll('tr[aup-row-id]'))
7576
+ .map(row => ({ id: row.getAttribute('aup-row-id') ?? '', bounds: row.getBoundingClientRect() }))
7577
+ .filter(row => row.bounds.bottom > visibleTop && row.bounds.top < bounds.bottom)
7578
+ .map(row => ({ id: row.id, top: row.bounds.top }));
7579
+ }
7580
+ /**
7581
+ * Renders the new rows now, then scrolls by however far the first of [rowsInView] still in the table has
7582
+ * moved, so it is drawn where it was. Both happen before the browser paints, so the reader never sees the
7583
+ * rows move.
7584
+ */
7585
+ holdInView(rowsInView) {
7586
+ // The optimised path has already rendered the rows; otherwise they render on the next check, after the
7587
+ // browser could paint them in their moved place.
7588
+ if (!this.optimisedChangeDetectionEnabled) {
7589
+ this.cdr.detectChanges();
7590
+ }
7591
+ const container = this.classicScrollContainer?.nativeElement;
7592
+ if (!container) {
7593
+ return;
7594
+ }
7595
+ for (const { id, top } of rowsInView) {
7596
+ const row = container.querySelector(`tr[aup-row-id="${CSS.escape(id)}"]`);
7597
+ if (row) {
7598
+ container.scrollTop += row.getBoundingClientRect().top - top;
7599
+ return;
7600
+ }
7601
+ }
7602
+ }
7552
7603
  scheduleTableHeightCheck(waitMillis = 50) {
7553
7604
  setTimeout(() => {
7554
7605
  // Use CDK's internal rendered range to detect a broken virtual scroll state —
@@ -7614,9 +7665,9 @@ class TableBodyComponent extends ResizeAwareComponent {
7614
7665
  }
7615
7666
  }
7616
7667
  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 });
7617
- 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" }, host: { properties: { "attr.scrollMode": "this.scrollMode", "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: [
7668
+ 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: [
7618
7669
  { provide: AUP_DETACHED_PARENT_CDR, useFactory: () => inject(AUP_TABLE_OPTIMIZED_CHANGE_DETECTION, { optional: true }) ? inject(ChangeDetectorRef) : null }
7619
- ], viewQueries: [{ propertyName: "scrollViewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true }], usesInheritance: true, ngImport: i0, template: "\n<div class=\"classic-scroll-container\" *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 <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</div>\n\n<cdk-virtual-scroll-viewport *ngIf=\"scrollMode$.value === 'virtual'\"\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 <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}\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: i1$2.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "directive", type: i5$2.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"] }] });
7670
+ ], viewQueries: [{ propertyName: "scrollViewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true }, { propertyName: "classicScrollContainer", first: true, predicate: ["classicScrollContainer"], descendants: true }], usesInheritance: true, ngImport: i0, template: "\n<div #classicScrollContainer class=\"classic-scroll-container\" aup-scroll-container *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 <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</div>\n\n<cdk-virtual-scroll-viewport *ngIf=\"scrollMode$.value === 'virtual'\" aup-scroll-container\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 <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}\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: i1$2.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "directive", type: i5$2.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"] }] });
7620
7671
  }
7621
7672
  __decorate([
7622
7673
  Proxify(),
@@ -7646,7 +7697,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
7646
7697
  type: Component,
7647
7698
  args: [{ selector: "aup-table-body", providers: [
7648
7699
  { provide: AUP_DETACHED_PARENT_CDR, useFactory: () => inject(AUP_TABLE_OPTIMIZED_CHANGE_DETECTION, { optional: true }) ? inject(ChangeDetectorRef) : null }
7649
- ], template: "\n<div class=\"classic-scroll-container\" *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 <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</div>\n\n<cdk-virtual-scroll-viewport *ngIf=\"scrollMode$.value === 'virtual'\"\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 <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}\n"] }]
7700
+ ], template: "\n<div #classicScrollContainer class=\"classic-scroll-container\" aup-scroll-container *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 <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</div>\n\n<cdk-virtual-scroll-viewport *ngIf=\"scrollMode$.value === 'virtual'\" aup-scroll-container\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 <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}\n"] }]
7650
7701
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
7651
7702
  type: Inject,
7652
7703
  args: [AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER]
@@ -7671,9 +7722,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
7671
7722
  }, {
7672
7723
  type: HostBinding,
7673
7724
  args: ["attr.scrollMode"]
7725
+ }], holdScrollPosition: [{
7726
+ type: Input
7727
+ }, {
7728
+ type: HostBinding,
7729
+ args: ["class.hold-scroll-position"]
7674
7730
  }], scrollViewport: [{
7675
7731
  type: ViewChild,
7676
7732
  args: [CdkVirtualScrollViewport]
7733
+ }], classicScrollContainer: [{
7734
+ type: ViewChild,
7735
+ args: ['classicScrollContainer']
7677
7736
  }], baseCssClass: [{
7678
7737
  type: HostBinding,
7679
7738
  args: ["class"]
@@ -8100,6 +8159,17 @@ class TableComponent extends AbstractTableComponent {
8100
8159
  #scrollMode_accessor_storage;
8101
8160
  get scrollMode() { return this.#scrollMode_accessor_storage; }
8102
8161
  set scrollMode(value) { this.#scrollMode_accessor_storage = value; }
8162
+ /**
8163
+ * Set to true to keep the rows in view where they are when rows are inserted, removed or resized above
8164
+ * them, so a reader scrolled down the table is not moved. At the top of the table nothing is held, so a
8165
+ * row inserted there comes into view. Applies with `scrollMode="classic"` only, and only to rows with an
8166
+ * identity of their own (a list `identifiedBy` an id), because a row is found again by its id. In
8167
+ * development, a table set to hold without either warns in the console.
8168
+ *
8169
+ * The element that scrolls the rows, in either scroll mode, carries the attribute `aup-scroll-container`,
8170
+ * and each row its id as `aup-row-id`, so a test can scroll the table and find a row where it is drawn.
8171
+ */
8172
+ holdScrollPosition = false;
8103
8173
  _footerContentAdded = false;
8104
8174
  _filteredRows$ = this.registerDisposable(new DelegatingListModel());
8105
8175
  tableBodyScrollMode$;
@@ -8127,6 +8197,28 @@ class TableComponent extends AbstractTableComponent {
8127
8197
  this.tableModel.bindToTable(this._filteredRows$, this._visibleRows$);
8128
8198
  when.anyOf(...this.tableModel.viewStateDependencies).changes(() => this.cdr.markForCheck());
8129
8199
  this.viewStateDependsOn(this._filteredRows$, this.tableModel.visibleColumns$, this.tableModel.selectedItems$);
8200
+ if (isDevMode() && this.holdScrollPosition) {
8201
+ this.warnWhereHoldingCannotWork();
8202
+ }
8203
+ }
8204
+ /**
8205
+ * Warns of a table set to hold its scroll position where it cannot. Nothing fails otherwise: the
8206
+ * table moves the rows the reader is on, or holds the wrong one.
8207
+ */
8208
+ warnWhereHoldingCannotWork() {
8209
+ if (this.tableBodyScrollMode$.value !== 'classic') {
8210
+ console.warn('aup-table: holdScrollPosition applies with scrollMode="classic" only, so this table holds nothing.');
8211
+ }
8212
+ // The list may hold its rows already, or receive them later, so the first row is checked either way.
8213
+ const { chain, when } = Dsl.disposeWith(this);
8214
+ let warned = false;
8215
+ when(chain(this._dataSource$).first()).changes(row => {
8216
+ if (!warned && row === this.identityOf(row)) {
8217
+ warned = true;
8218
+ console.warn('aup-table: holdScrollPosition finds the rows in view again by their ids, and these rows have none, '
8219
+ + 'so it can hold the wrong row. Identify the list by an id, with identifiedBy.');
8220
+ }
8221
+ }, { initialValue: 'triggerChangeUnlessNil' });
8130
8222
  }
8131
8223
  getModel() {
8132
8224
  return this.tableModel;
@@ -8144,9 +8236,9 @@ class TableComponent extends AbstractTableComponent {
8144
8236
  this._footerContentAdded = true;
8145
8237
  }
8146
8238
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
8147
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableComponent, selector: "aup-table", inputs: { tableModel: "tableModel", filterModel: "filterModel", scrollMode$: "scrollMode$", scrollMode: "scrollMode" }, providers: [
8239
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableComponent, selector: "aup-table", inputs: { tableModel: "tableModel", filterModel: "filterModel", scrollMode$: "scrollMode$", scrollMode: "scrollMode", holdScrollPosition: "holdScrollPosition" }, providers: [
8148
8240
  { provide: AbstractTableComponent, useExisting: TableComponent }
8149
- ], viewQueries: [{ propertyName: "tableBody", first: true, predicate: TableBodyComponent, descendants: true }, { propertyName: "emptyContent", first: true, predicate: ["emptyContent"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<aup-table-body [hidden]=\"showsEmptyContent\"\n [data$]=\"visibleRows$\"\n [tableModel]=\"$any(tableModel)\"\n [footerRows]=\"tableModel.footerRowModels\"\n [showHeader$]=\"$any(showHeader$)\"\n [scrollMode$]=\"tableBodyScrollMode$\"\n [trackBy]=\"trackBy\"\n [aupHighlightTextModel]=\"highlightText$\"\n></aup-table-body>\n<div #emptyContent class=\"empty-content\" [hidden]=\"!showsEmptyContent\"><ng-content select=\"[empty], [slot=empty]\"></ng-content></div>\n<section class=\"table-footer\">\n <div class=\"footer-content\"><ng-content select=\"[footer], [slot=footer]\"></ng-content></div>\n</section>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}aup-table-body{flex:1}aup-table-body[hidden],.empty-content[hidden]{display:none}.empty-content{flex:1;min-height:0;display:flex;flex-direction:column;align-items:stretch}.table-footer{display:flex;flex-direction:row;align-items:center}.table-footer .footer-content{flex:1}\n"], dependencies: [{ kind: "directive", type: HighlightTextModelDirective, selector: "[aupHighlightTextModel]", inputs: ["aupHighlightTextModel"] }, { kind: "component", type: TableBodyComponent, selector: "aup-table-body", inputs: ["data$", "tableModel", "footerRows", "showHeader$", "showHeader", "trackBy", "scrollMode$", "scrollMode"] }] });
8241
+ ], viewQueries: [{ propertyName: "tableBody", first: true, predicate: TableBodyComponent, descendants: true }, { propertyName: "emptyContent", first: true, predicate: ["emptyContent"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<aup-table-body [hidden]=\"showsEmptyContent\"\n [data$]=\"visibleRows$\"\n [tableModel]=\"$any(tableModel)\"\n [footerRows]=\"tableModel.footerRowModels\"\n [showHeader$]=\"$any(showHeader$)\"\n [scrollMode$]=\"tableBodyScrollMode$\"\n [holdScrollPosition]=\"holdScrollPosition\"\n [trackBy]=\"trackBy\"\n [aupHighlightTextModel]=\"highlightText$\"\n></aup-table-body>\n<div #emptyContent class=\"empty-content\" [hidden]=\"!showsEmptyContent\"><ng-content select=\"[empty], [slot=empty]\"></ng-content></div>\n<section class=\"table-footer\">\n <div class=\"footer-content\"><ng-content select=\"[footer], [slot=footer]\"></ng-content></div>\n</section>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}aup-table-body{flex:1}aup-table-body[hidden],.empty-content[hidden]{display:none}.empty-content{flex:1;min-height:0;display:flex;flex-direction:column;align-items:stretch}.table-footer{display:flex;flex-direction:row;align-items:center}.table-footer .footer-content{flex:1}\n"], dependencies: [{ kind: "directive", type: HighlightTextModelDirective, selector: "[aupHighlightTextModel]", inputs: ["aupHighlightTextModel"] }, { kind: "component", type: TableBodyComponent, selector: "aup-table-body", inputs: ["data$", "tableModel", "footerRows", "showHeader$", "showHeader", "trackBy", "scrollMode$", "scrollMode", "holdScrollPosition"] }] });
8150
8242
  }
8151
8243
  __decorate([
8152
8244
  Proxify(),
@@ -8168,7 +8260,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
8168
8260
  type: Component,
8169
8261
  args: [{ selector: 'aup-table', providers: [
8170
8262
  { provide: AbstractTableComponent, useExisting: TableComponent }
8171
- ], template: "<aup-table-body [hidden]=\"showsEmptyContent\"\n [data$]=\"visibleRows$\"\n [tableModel]=\"$any(tableModel)\"\n [footerRows]=\"tableModel.footerRowModels\"\n [showHeader$]=\"$any(showHeader$)\"\n [scrollMode$]=\"tableBodyScrollMode$\"\n [trackBy]=\"trackBy\"\n [aupHighlightTextModel]=\"highlightText$\"\n></aup-table-body>\n<div #emptyContent class=\"empty-content\" [hidden]=\"!showsEmptyContent\"><ng-content select=\"[empty], [slot=empty]\"></ng-content></div>\n<section class=\"table-footer\">\n <div class=\"footer-content\"><ng-content select=\"[footer], [slot=footer]\"></ng-content></div>\n</section>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}aup-table-body{flex:1}aup-table-body[hidden],.empty-content[hidden]{display:none}.empty-content{flex:1;min-height:0;display:flex;flex-direction:column;align-items:stretch}.table-footer{display:flex;flex-direction:row;align-items:center}.table-footer .footer-content{flex:1}\n"] }]
8263
+ ], template: "<aup-table-body [hidden]=\"showsEmptyContent\"\n [data$]=\"visibleRows$\"\n [tableModel]=\"$any(tableModel)\"\n [footerRows]=\"tableModel.footerRowModels\"\n [showHeader$]=\"$any(showHeader$)\"\n [scrollMode$]=\"tableBodyScrollMode$\"\n [holdScrollPosition]=\"holdScrollPosition\"\n [trackBy]=\"trackBy\"\n [aupHighlightTextModel]=\"highlightText$\"\n></aup-table-body>\n<div #emptyContent class=\"empty-content\" [hidden]=\"!showsEmptyContent\"><ng-content select=\"[empty], [slot=empty]\"></ng-content></div>\n<section class=\"table-footer\">\n <div class=\"footer-content\"><ng-content select=\"[footer], [slot=footer]\"></ng-content></div>\n</section>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}aup-table-body{flex:1}aup-table-body[hidden],.empty-content[hidden]{display:none}.empty-content{flex:1;min-height:0;display:flex;flex-direction:column;align-items:stretch}.table-footer{display:flex;flex-direction:row;align-items:center}.table-footer .footer-content{flex:1}\n"] }]
8172
8264
  }], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { tableModel: [{
8173
8265
  type: Input
8174
8266
  }], filterModel: [{
@@ -8183,6 +8275,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
8183
8275
  type: Input
8184
8276
  }], scrollMode: [{
8185
8277
  type: Input
8278
+ }], holdScrollPosition: [{
8279
+ type: Input
8186
8280
  }] } });
8187
8281
 
8188
8282
  const SVG_HEIGHT = 60;
@@ -8847,7 +8941,7 @@ class TreeTableComponent extends AbstractTableComponent {
8847
8941
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TreeTableComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
8848
8942
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TreeTableComponent, selector: "aup-tree-table", inputs: { treeTableModel: "treeTableModel", expansionModel: "expansionModel" }, providers: [
8849
8943
  { provide: AbstractTableComponent, useExisting: TreeTableComponent }
8850
- ], usesInheritance: true, ngImport: i0, template: "<aup-table-body [data$]=\"visibleRows$\"\n [tableModel]=\"treeTableModel\"\n [showHeader$]=\"showHeader$\"\n [scrollMode$]=\"scrollMode$\"\n [aupHighlightTextModel]=\"highlightText$\"\n [trackBy]=\"trackBy\"\n></aup-table-body>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host::ng-deep td.mat-mdc-cell{border-top-width:0!important;border-bottom-width:0!important}:host::ng-deep td.mat-column-tree-label{width:1px}:host::ng-deep aup-table-cell-renderer[column-id=tree-label]{padding-left:8px!important}:host::ng-deep aup-tree-label-cell-renderer{flex:1}aup-table-body{flex:1}\n"], dependencies: [{ kind: "directive", type: HighlightTextModelDirective, selector: "[aupHighlightTextModel]", inputs: ["aupHighlightTextModel"] }, { kind: "component", type: TableBodyComponent, selector: "aup-table-body", inputs: ["data$", "tableModel", "footerRows", "showHeader$", "showHeader", "trackBy", "scrollMode$", "scrollMode"] }] });
8944
+ ], usesInheritance: true, ngImport: i0, template: "<aup-table-body [data$]=\"visibleRows$\"\n [tableModel]=\"treeTableModel\"\n [showHeader$]=\"showHeader$\"\n [scrollMode$]=\"scrollMode$\"\n [aupHighlightTextModel]=\"highlightText$\"\n [trackBy]=\"trackBy\"\n></aup-table-body>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host::ng-deep td.mat-mdc-cell{border-top-width:0!important;border-bottom-width:0!important}:host::ng-deep td.mat-column-tree-label{width:1px}:host::ng-deep aup-table-cell-renderer[column-id=tree-label]{padding-left:8px!important}:host::ng-deep aup-tree-label-cell-renderer{flex:1}aup-table-body{flex:1}\n"], dependencies: [{ kind: "directive", type: HighlightTextModelDirective, selector: "[aupHighlightTextModel]", inputs: ["aupHighlightTextModel"] }, { kind: "component", type: TableBodyComponent, selector: "aup-table-body", inputs: ["data$", "tableModel", "footerRows", "showHeader$", "showHeader", "trackBy", "scrollMode$", "scrollMode", "holdScrollPosition"] }] });
8851
8945
  }
8852
8946
  __decorate([
8853
8947
  Proxify(),
@@ -16479,18 +16573,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
16479
16573
  /**
16480
16574
  * The search model of a table whose rows the server finds, such as one that loads them a step at a
16481
16575
  * time. The rows a table holds are what the server found for the search and the filters, so it shows
16482
- * them all. Its settled search
16483
- * ({@link search$}) becomes the server request's criteria through `AbstractTableModel.useCriteria`, and
16484
- * the cells highlight the search text as usual.
16576
+ * them all. Its settled search ({@link search$}) becomes the server request's criteria through
16577
+ * `AbstractTableModel.useCriteria`, and the cells highlight the search text as usual.
16485
16578
  *
16486
16579
  * It has no row predicate, so a page's filters cannot filter the rows held: they reach the server as
16487
16580
  * criteria, as the search does.
16488
16581
  *
16489
16582
  * @example
16490
- * this.search = new ServerSearchModel<DecoratedAlarm>({disposedWith: this, searchText$: this.searchText$});
16491
- * const criteria$ = this.table.useCriteria(base$, {
16492
- * searchCriteriaClass: AlarmSearchCriteriaDto,
16493
- * withSearchCriteria: (criteria, searchCriteria) => criteria.copy({searchCriteria}),
16583
+ * this.search = new ServerSearchModel<Hero>({disposedWith: this, searchText$: this.searchText$});
16584
+ * const query$ = this.table.useCriteria(base$, {
16585
+ * searchCriteriaClass: HeroSearchCriteria,
16586
+ * withSearchCriteria: (query, searchCriteria) => query.with({searchCriteria}),
16494
16587
  * });
16495
16588
  *
16496
16589
  * <aup-table [tableModel]="table" [filterModel]="search"></aup-table>