@coolon/angular-ui-powerups 16.1.0-alpha.325 → 16.1.0-alpha.327

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.
Files changed (33) hide show
  1. package/esm2022/lib/components/exports.mjs +6 -1
  2. package/esm2022/lib/components/tables/abstract-table-model.mjs +94 -2
  3. package/esm2022/lib/components/tables/column/column-model.mjs +51 -1
  4. package/esm2022/lib/components/tables/column/custom-value-column-model.mjs +3 -1
  5. package/esm2022/lib/components/tables/column/list-propery-column-model.mjs +3 -1
  6. package/esm2022/lib/components/tables/column/property-column-model.mjs +3 -1
  7. package/esm2022/lib/components/tables/filter/cell-search.mjs +2 -0
  8. package/esm2022/lib/components/tables/filter/search-criteria.decorator.mjs +33 -0
  9. package/esm2022/lib/components/tables/filter/server-search-model.mjs +41 -0
  10. package/esm2022/lib/components/tables/filter/table-filter-model.mjs +11 -23
  11. package/esm2022/lib/components/tables/filter/table-search-model.mjs +44 -0
  12. package/esm2022/lib/components/tables/filter/table-search.mjs +2 -0
  13. package/esm2022/lib/components/tables/renderer/table-body/table-body.component.mjs +22 -9
  14. package/esm2022/lib/components/tables/table/table.component.mjs +4 -3
  15. package/esm2022/lib/interaction/services/interaction.service.mjs +19 -12
  16. package/esm2022/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.mjs +5 -3
  17. package/esm2022/lib/place/place-router.mjs +50 -27
  18. package/fesm2022/coolon-angular-ui-powerups.mjs +392 -104
  19. package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
  20. package/lib/components/exports.d.ts +5 -0
  21. package/lib/components/tables/abstract-table-model.d.ts +48 -1
  22. package/lib/components/tables/column/column-model.d.ts +31 -1
  23. package/lib/components/tables/filter/cell-search.d.ts +52 -0
  24. package/lib/components/tables/filter/search-criteria.decorator.d.ts +21 -0
  25. package/lib/components/tables/filter/server-search-model.d.ts +29 -0
  26. package/lib/components/tables/filter/table-filter-model.d.ts +9 -9
  27. package/lib/components/tables/filter/table-search-model.d.ts +39 -0
  28. package/lib/components/tables/filter/table-search.d.ts +10 -0
  29. package/lib/components/tables/renderer/table-body/table-body.component.d.ts +9 -0
  30. package/lib/components/tables/table/table.component.d.ts +2 -2
  31. package/lib/interaction/services/interaction.service.d.ts +12 -0
  32. package/lib/place/place-router.d.ts +19 -1
  33. package/package.json +2 -2
@@ -36,18 +36,18 @@ import * as i2$7 from '@angular/material/progress-bar';
36
36
  import { MatProgressBarModule } from '@angular/material/progress-bar';
37
37
  import * as i2$1 from '@angular/material/progress-spinner';
38
38
  import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
39
- import * as i2$8 from '@angular/material/table';
39
+ import * as i3$3 from '@angular/material/table';
40
40
  import { MatTableModule } from '@angular/material/table';
41
41
  import * as i3 from '@angular/material/tooltip';
42
42
  import { MatTooltip, MatTooltipModule } from '@angular/material/tooltip';
43
- import * as i4$2 from 'ng-table-virtual-scroll';
43
+ import * as i5$2 from 'ng-table-virtual-scroll';
44
44
  import { TableVirtualScrollDataSource, TableVirtualScrollModule } from 'ng-table-virtual-scroll';
45
45
  import * as i1$3 from '@coolon/pectin';
46
46
  import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, proxify, ValueModel, Proxify, Logger, StoreInValueModel, Command, MutableListModel, StoreInListModel, ListModel, Disposable, Trace, DelegatingListModel, MutableValueModel, DelegateToValueModel, FocusManager, EventListenerList, Guard, DelegatingFormListModel, Binding, DebugContext, DelegateToListModel, DelegatingFormValueModel, Rejection, Functions, PageController, SelectionModel, CanProxy, MultipleSelectionModel, WatchList, ProxyRegistry, DependsOnOptions, LoadingStateTracker, Loadable, HasValue, DelegatingCommand, ComputedListModel, Deferred, ReducingValueModel, AndValueModel, SingleSelectionModel, DirtyTrackingForm } from '@coolon/pectin';
47
47
  import { __decorate, __metadata, __param } from 'tslib';
48
48
  import * as i1 from '@angular/platform-browser';
49
49
  import escapeStringRegexp from 'escape-string-regexp';
50
- import { escape, isEmpty, isString, isFunction, isNil, isInteger, isObject, isEqual, join, last, first, uniq, findLast, isArray as isArray$1, isNumber, isNaN as isNaN$1 } from 'lodash-es';
50
+ import { escape, isEmpty, isString, isFunction, isNil, isInteger, isEqual, isObject, join, last, first, uniq, findLast, isArray as isArray$1, isNumber, isNaN as isNaN$1 } from 'lodash-es';
51
51
  import { marked } from 'marked';
52
52
  import { MemoizeGet, lang as lang$1, assert as assert$1, Stringy, Klass, Opts } from '@coolon/typescript-utilities';
53
53
  import { Enum } from 'typescript-string-enums';
@@ -56,7 +56,7 @@ import { MatOption, MatOptionModule } from '@angular/material/core';
56
56
  import { Memoize } from 'fast-typescript-memoize';
57
57
  import ResizeObserver from 'resize-observer-polyfill';
58
58
  import { generateKeyBetween } from 'fractional-indexing';
59
- import * as i5$2 from '@angular/cdk/a11y';
59
+ import * as i5$3 from '@angular/cdk/a11y';
60
60
  import { ActiveDescendantKeyManager, A11yModule } from '@angular/cdk/a11y';
61
61
  import * as i1$7 from '@angular/material/bottom-sheet';
62
62
  import { MatBottomSheetModule } from '@angular/material/bottom-sheet';
@@ -69,7 +69,7 @@ import * as i1$6 from '@angular/cdk/overlay';
69
69
  import { Overlay } from '@angular/cdk/overlay';
70
70
  import { style, trigger, transition, animate, group, query } from '@angular/animations';
71
71
  import { MatCardModule } from '@angular/material/card';
72
- import * as i3$3 from '@angular/material/list';
72
+ import * as i3$4 from '@angular/material/list';
73
73
  import { MatListModule } from '@angular/material/list';
74
74
  import { Subject } from 'rxjs';
75
75
 
@@ -5254,6 +5254,10 @@ class ColumnModel extends GarbageCollector {
5254
5254
  textSearchDelegate = new ColumnTextSearchWrapper();
5255
5255
  _textMatcher;
5256
5256
  _textMatcherMap = Functions.identity;
5257
+ _rendererSearchClasses = [];
5258
+ _searchOverride;
5259
+ _searches = [];
5260
+ _highlightsSearch = true;
5257
5261
  visible$;
5258
5262
  constructor(columnId, order, textPropertiesProvider) {
5259
5263
  super();
@@ -5357,6 +5361,51 @@ class ColumnModel extends GarbageCollector {
5357
5361
  this._textMatcherMap = mapper ?? Functions.identity;
5358
5362
  return this;
5359
5363
  }
5364
+ /** Takes the search classes the column's renderer names with `@SearchCriteria`. */
5365
+ configureSearchClasses(searchClasses) {
5366
+ this._rendererSearchClasses = searchClasses;
5367
+ }
5368
+ /**
5369
+ * Gives the column a search class other than its renderer's, or, with `false`, leaves it out of a
5370
+ * server search. Either takes precedence over the renderer's `@SearchCriteria`.
5371
+ */
5372
+ searchCriteria(searchClass) {
5373
+ this._searchOverride = searchClass;
5374
+ return this;
5375
+ }
5376
+ /** Whether the column names a search class, its own or its renderer's. A column left out of the search names none. */
5377
+ get namesSearchClasses() {
5378
+ return this.searchClasses.length > 0;
5379
+ }
5380
+ get searchClasses() {
5381
+ if (this._searchOverride === false) {
5382
+ return [];
5383
+ }
5384
+ return this._searchOverride ? [this._searchOverride] : this._rendererSearchClasses;
5385
+ }
5386
+ /**
5387
+ * The column's search class for a kind of search criteria, or undefined when it has none. Search
5388
+ * classes are resolved when the table initialises the column, so before then there is none.
5389
+ */
5390
+ searchFor(searchCriteriaClass) {
5391
+ return this._searches.find(search => search.searchCriteriaClass === searchCriteriaClass);
5392
+ }
5393
+ /** The models the column's search classes depend on beyond the search text. */
5394
+ get searchDependencies() {
5395
+ return [].concat(...this._searches.map(search => search.dependsOn ?? []));
5396
+ }
5397
+ /**
5398
+ * Whether the column's cells highlight the search. A table whose search becomes server criteria
5399
+ * highlights only the columns the server is asked about (`AbstractTableModel.useCriteria`), so it
5400
+ * never highlights a match the server was not asked for.
5401
+ */
5402
+ get highlightsSearch() {
5403
+ return this._highlightsSearch;
5404
+ }
5405
+ /** Set by the table model; see {@link highlightsSearch}. */
5406
+ useSearchHighlight(highlights) {
5407
+ this._highlightsSearch = highlights;
5408
+ }
5360
5409
  configureHeaderRenderer(config) {
5361
5410
  this._columnHeaderPortalRef = config;
5362
5411
  }
@@ -5420,6 +5469,7 @@ class ColumnModel extends GarbageCollector {
5420
5469
  }
5421
5470
  initialise(injector) {
5422
5471
  this.textSearchDelegate.initialise(injector);
5472
+ this._searches = this.searchClasses.map(searchClass => injector.get(searchClass));
5423
5473
  }
5424
5474
  }
5425
5475
  __decorate([
@@ -6127,6 +6177,38 @@ function EnableCellTextSearch(options) {
6127
6177
  EnableCellTextSearch.getMatcher = getMatcher;
6128
6178
  })(EnableCellTextSearch || (EnableCellTextSearch = {}));
6129
6179
 
6180
+ const SEARCH_CRITERIA_KEY = `aup:table:searchCriteria`;
6181
+ /**
6182
+ * Names the search classes of a cell renderer: what a search means for the column it draws, as criteria
6183
+ * for a server request (see {@link CellSearch}). A renderer shown in tables of different kinds of
6184
+ * resource names one search class per kind of search criteria, and the table uses the one whose search
6185
+ * criteria are the page's.
6186
+ *
6187
+ * It sits beside `@EnableCellTextSearch`, which describes the text a column offers client search, under
6188
+ * its own metadata key, so a renderer may carry both.
6189
+ *
6190
+ * @example
6191
+ * @SearchCriteria(AlarmSourceSearch, DeviceNameSearch)
6192
+ * @Component({selector: 'frontend-alarm-source-cell-renderer', ...})
6193
+ * export class AlarmSourceCellRendererComponent { ... }
6194
+ */
6195
+ function SearchCriteria(...searchClasses) {
6196
+ assert$1.isTruthy(searchClasses.length > 0, "@SearchCriteria needs at least one search class");
6197
+ // eslint-disable-next-line @typescript-eslint/ban-types -- the ClassDecorator signature
6198
+ return (constructor) => {
6199
+ const klass = Klass.get(constructor);
6200
+ assert$1.isFalsey(klass.hasOwnMetadata(SEARCH_CRITERIA_KEY), "class already decorated with @SearchCriteria");
6201
+ klass.defineMetadata(SEARCH_CRITERIA_KEY, searchClasses);
6202
+ };
6203
+ }
6204
+ (function (SearchCriteria) {
6205
+ /** The search classes a renderer names, or none. */
6206
+ function getSearchClasses(renderer) {
6207
+ return Klass.get(renderer).getMetadata(SEARCH_CRITERIA_KEY) ?? [];
6208
+ }
6209
+ SearchCriteria.getSearchClasses = getSearchClasses;
6210
+ })(SearchCriteria || (SearchCriteria = {}));
6211
+
6130
6212
  class CustomValueColumnModel extends ColumnModel {
6131
6213
  getValue;
6132
6214
  constructor(columnId, order, defaults, getValue) {
@@ -6136,6 +6218,7 @@ class CustomValueColumnModel extends ColumnModel {
6136
6218
  }
6137
6219
  cellRenderer(componentType, onComponentInitOrOptions) {
6138
6220
  this.configureColumnTextSearch(EnableCellTextSearch.getFormatter(componentType, () => new ColumnTextSearchFormatter.Null()), row => this.getValue(row));
6221
+ this.configureSearchClasses(SearchCriteria.getSearchClasses(componentType));
6139
6222
  const matcher = EnableCellTextSearch.getMatcher(componentType);
6140
6223
  if (matcher) {
6141
6224
  this.configureColumnTextMatch(matcher, row => this.getValue(row));
@@ -6180,6 +6263,7 @@ class ListPropertyColumnModel extends ColumnModel {
6180
6263
  }
6181
6264
  cellRenderer(componentType) {
6182
6265
  this.configureColumnTextSearch(EnableCellTextSearch.getFormatter(componentType, () => ColumnTextSearchFormatter.forFormatter(this._defaultSearchTextFormat)), row => row[this.property]);
6266
+ this.configureSearchClasses(SearchCriteria.getSearchClasses(componentType));
6183
6267
  const matcher = EnableCellTextSearch.getMatcher(componentType);
6184
6268
  if (matcher) {
6185
6269
  this.configureColumnTextMatch(matcher, row => row[this.property]);
@@ -6217,6 +6301,7 @@ class PropertyColumnModel extends ColumnModel {
6217
6301
  }
6218
6302
  cellRenderer(componentType, onComponentInitOrOptions) {
6219
6303
  this.configureColumnTextSearch(EnableCellTextSearch.getFormatter(componentType, () => ColumnTextSearchFormatter.forFormatter(this._defaultSearchTextFormatter)), row => row[this.property]);
6304
+ this.configureSearchClasses(SearchCriteria.getSearchClasses(componentType));
6220
6305
  const matcher = EnableCellTextSearch.getMatcher(componentType);
6221
6306
  if (matcher) {
6222
6307
  this.configureColumnTextMatch(matcher, row => row[this.property]);
@@ -6743,6 +6828,13 @@ class AbstractTableModel extends GarbageCollector {
6743
6828
  hasSelection$;
6744
6829
  footerRowModels = [];
6745
6830
  _viewDependencies = new Set();
6831
+ /** The table's settled search, once a table with a filter model binds (`useSearch`). */
6832
+ _search$ = this.registerDisposable(new DelegatingValueModel());
6833
+ /** True once the table has initialised its columns, and with them their search classes. */
6834
+ _searchClassesResolved$ = new MutableValueModel(false);
6835
+ /** Counts changes to the models the search classes depend on, so the criteria can depend on one model. */
6836
+ _searchDependencyChanges$ = new MutableValueModel(0);
6837
+ _criteriaPlacement;
6746
6838
  constructor() {
6747
6839
  super();
6748
6840
  const { chain } = Dsl.disposeWith(this);
@@ -6808,6 +6900,89 @@ class AbstractTableModel extends GarbageCollector {
6808
6900
  });
6809
6901
  this.columns$.value.forEach(c => c.initialise(customInjector));
6810
6902
  this.identityOf = identityOf;
6903
+ this.initialiseSearchCriteria();
6904
+ }
6905
+ /**
6906
+ * Takes the table's settled search, which `useCriteria` turns into criteria. The table component calls
6907
+ * it with its filter model's search when it binds.
6908
+ */
6909
+ useSearch(search$) {
6910
+ this._search$.setDelegate(search$);
6911
+ }
6912
+ /**
6913
+ * Turns the table's search into server criteria: the page's base criteria, holding search criteria
6914
+ * that each visible column's search class has written into (see `CellSearch`). Send the result with
6915
+ * the page's request, and give the table a `ServerSearchModel` as its filter model, so it shows the
6916
+ * rows the server found rather than filtering them again.
6917
+ *
6918
+ * Four rules govern it:
6919
+ *
6920
+ * 1. Without a search, the criteria are the base criteria. With one, each search starts from empty
6921
+ * search criteria, `new placement.searchCriteriaClass({})`, so a search nothing matches still sends
6922
+ * search criteria, and search criteria carrying no fields match no rows.
6923
+ * 2. A column takes part through its search class for the page's search criteria. A hidden column
6924
+ * takes no part, and a column with no search class for them is not searched and does not highlight.
6925
+ * 3. A column that names search classes, none of them for the page's search criteria, fails when the
6926
+ * table initialises, naming the column and the search criteria class. The check runs then, so a
6927
+ * page calls this before the table initialises, and a later call throws.
6928
+ * 4. New criteria are offered only when they differ in value from the last. Generated DTOs compare by
6929
+ * identity, so a search class's dependency can change, or a column be shown, without changing what
6930
+ * the search writes, and a page that starts its list again on every new criteria would restart it
6931
+ * for nothing.
6932
+ *
6933
+ * The criteria are worked out again when the base criteria, the search, the visible columns or any
6934
+ * search class's `dependsOn` change.
6935
+ *
6936
+ * @example
6937
+ * const criteria$ = this.table.useCriteria(base$, {
6938
+ * searchCriteriaClass: AlarmSearchCriteriaDto,
6939
+ * withSearchCriteria: (criteria, searchCriteria) => criteria.copy({searchCriteria}),
6940
+ * });
6941
+ * this.history.useCriteria(criteria$);
6942
+ */
6943
+ useCriteria(base$, placement) {
6944
+ assert$1.isFalsey(this._criteriaPlacement, 'useCriteria may be called once per table');
6945
+ assert$1.isFalsey(this._searchClassesResolved$.value, 'useCriteria must be called before the table initialises, which checks the columns against the search criteria');
6946
+ this._criteriaPlacement = placement;
6947
+ const { chain } = Dsl.disposeWith(this);
6948
+ return chain(base$).map(base => {
6949
+ const search = this._search$.value;
6950
+ // Search classes are resolved when the table initialises, so a search that arrives sooner waits for them.
6951
+ if (!search || !this._searchClassesResolved$.value) {
6952
+ return base;
6953
+ }
6954
+ const searchCriteria = this.visibleColumns$.value.reduce((searchCriteria, column) => {
6955
+ const columnSearch = column.searchFor(placement.searchCriteriaClass);
6956
+ return columnSearch ? columnSearch.criteriaFor(searchCriteria, search) : searchCriteria;
6957
+ }, new placement.searchCriteriaClass({}));
6958
+ return placement.withSearchCriteria(base, searchCriteria);
6959
+ }, {
6960
+ dependsOn: [this._search$, this.visibleColumns$, this._searchClassesResolved$, this._searchDependencyChanges$],
6961
+ equal: isEqual,
6962
+ });
6963
+ }
6964
+ initialiseSearchCriteria() {
6965
+ if (this._searchClassesResolved$.value) {
6966
+ return;
6967
+ }
6968
+ const columns = this.columns$.value;
6969
+ const placement = this._criteriaPlacement;
6970
+ if (placement) {
6971
+ const unmatched = columns.filter(column => column.namesSearchClasses && !column.searchFor(placement.searchCriteriaClass));
6972
+ if (unmatched.length > 0) {
6973
+ const ids = unmatched.map(column => `\`${column.columnId}\``).join(', ');
6974
+ lang$1.illegalState(unmatched.length === 1
6975
+ ? `column ${ids} has no search class for \`${placement.searchCriteriaClass.name}\``
6976
+ : `columns ${ids} have no search class for \`${placement.searchCriteriaClass.name}\``);
6977
+ }
6978
+ columns.forEach(column => column.useSearchHighlight(!!column.searchFor(placement.searchCriteriaClass)));
6979
+ }
6980
+ const dependencies = [].concat(...columns.map(column => column.searchDependencies));
6981
+ if (dependencies.length > 0) {
6982
+ const { when } = Dsl.disposeWith(this);
6983
+ when.anyOf(...dependencies).changes(() => this._searchDependencyChanges$.value++);
6984
+ }
6985
+ this._searchClassesResolved$.value = true;
6811
6986
  }
6812
6987
  /**
6813
6988
  * Adds additional models that will trigger a table repaint. This is required if the table
@@ -7199,6 +7374,10 @@ class TableBodyComponent extends ResizeAwareComponent {
7199
7374
  rowHeight$ = new MutableValueModel(44);
7200
7375
  baseCssClass = "aup-table-component";
7201
7376
  get animationsDisabledClass() { return this.animationsDisabled$.value; }
7377
+ /** The search text the table highlights, from the directive the table puts on this body. */
7378
+ highlightText = inject(HighlightTextModelDirective, { self: true, optional: true });
7379
+ /** What a column that does not highlight the search highlights: nothing. */
7380
+ noHighlightText$ = new MutableValueModel('');
7202
7381
  virtualScrollDataSource = new TableVirtualScrollDataSource();
7203
7382
  virtualScrollActive$ = new MutableValueModel(false);
7204
7383
  animationsDisabled$ = new MutableValueModel(false);
@@ -7314,6 +7493,13 @@ class TableBodyComponent extends ResizeAwareComponent {
7314
7493
  get rowHeightCssVar() {
7315
7494
  return `${this.rowHeight$.value}px`;
7316
7495
  }
7496
+ /**
7497
+ * The search text a column's cells highlight. A table whose search becomes server criteria highlights
7498
+ * only the columns the server is asked about (`ColumnModel.highlightsSearch`).
7499
+ */
7500
+ highlightTextFor(column) {
7501
+ return column.highlightsSearch && this.highlightText ? this.highlightText.aupHighlightTextModel : this.noHighlightText$;
7502
+ }
7317
7503
  notifyCellClicked(columnModel, row) {
7318
7504
  this.tableModel._notifyCellClicked(columnModel, row);
7319
7505
  }
@@ -7419,7 +7605,7 @@ class TableBodyComponent extends ResizeAwareComponent {
7419
7605
  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 });
7420
7606
  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: [
7421
7607
  { provide: AUP_DETACHED_PARENT_CDR, useFactory: () => inject(AUP_TABLE_OPTIMIZED_CHANGE_DETECTION, { optional: true }) ? inject(ChangeDetectorRef) : null }
7422
- ], 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 ></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 ></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: "component", type: i2$8.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i2$8.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i2$8.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i2$8.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i2$8.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i2$8.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i2$8.MatFooterCellDef, selector: "[matFooterCellDef]" }, { kind: "directive", type: i2$8.MatFooterRowDef, selector: "[matFooterRowDef]", inputs: ["matFooterRowDef", "matFooterRowDefSticky"] }, { kind: "directive", type: i2$8.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i2$8.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "directive", type: i2$8.MatFooterCell, selector: "mat-footer-cell, td[mat-footer-cell]" }, { kind: "component", type: i2$8.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i2$8.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i2$8.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: i4$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"] }] });
7608
+ ], 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"] }] });
7423
7609
  }
7424
7610
  __decorate([
7425
7611
  Proxify(),
@@ -7449,7 +7635,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
7449
7635
  type: Component,
7450
7636
  args: [{ selector: "aup-table-body", providers: [
7451
7637
  { provide: AUP_DETACHED_PARENT_CDR, useFactory: () => inject(AUP_TABLE_OPTIMIZED_CHANGE_DETECTION, { optional: true }) ? inject(ChangeDetectorRef) : null }
7452
- ], 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 ></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 ></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"] }]
7638
+ ], 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"] }]
7453
7639
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
7454
7640
  type: Inject,
7455
7641
  args: [AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER]
@@ -7695,79 +7881,46 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
7695
7881
  ] }]
7696
7882
  }], ctorParameters: function () { return []; } });
7697
7883
 
7698
- class TableFilterModel extends GarbageCollector {
7699
- _source$ = this.registerDisposable(new DelegatingListModel());
7700
- _rowPredicate$ = this.registerDisposable(new DelegatingValueModel());
7884
+ /**
7885
+ * A table's search box, as a table reads it, whichever side does the searching. It debounces the search
7886
+ * text, offers the settled search ({@link search$}) and the text to highlight ({@link highlightText$}),
7887
+ * and gives the table the rows to show ({@link filteredRows$}).
7888
+ *
7889
+ * Two kinds exist, and a page picks one by what holds its rows:
7890
+ *
7891
+ * - `TableFilterModel` searches and filters the rows a table holds, in the browser.
7892
+ * - `ServerSearchModel` leaves both to the server: the rows a table holds are what the server found,
7893
+ * so it shows them all, and its search becomes criteria (`AbstractTableModel.useCriteria`). It has no
7894
+ * row predicate, so a page's filters can reach the rows only as criteria too.
7895
+ */
7896
+ class TableSearchModel extends GarbageCollector {
7701
7897
  _searchText$ = this.registerDisposable(new DelegatingValueModel());
7702
- _textSearchPredicate$ = this.registerDisposable(new DelegatingValueModel());
7703
- _rowPredicate;
7704
- inUpdate = new Guard();
7705
- filteredRows$;
7706
7898
  /**
7707
- * The rows the search alone leaves in, before the row predicate. A filter bar counts its choices against these, so
7708
- * that a count agrees with what the table would show once the choice is made.
7899
+ * The search once the debounce has passed: the text and its escaped, case-insensitive regular
7900
+ * expression, or undefined while there is none. The text and the regular expression travel together,
7901
+ * so nothing can see the regular expression of one search with the text of another.
7709
7902
  */
7710
- searchedRows$;
7903
+ search$;
7711
7904
  constructor(options) {
7712
7905
  super();
7713
7906
  options.disposedWith.registerDisposable(this);
7714
7907
  this.useSearchText(options.searchText$);
7715
- this.useRowPredicate(options.predicate$);
7716
7908
  const { chain } = Dsl.disposeWith(this);
7717
- // Raw text and its escaped regex travel together, so a predicate can never see the regex of
7718
- // one search with the text of another.
7719
- const textSearch$ = chain(this._searchText$)
7909
+ this.search$ = chain(this._searchText$)
7720
7910
  .debounce(250)
7721
- .mapWithNil(text => {
7911
+ .mapWithNil((text) => {
7722
7912
  return isEmpty(text) ? undefined : { text, regex: new RegExp(escapeStringRegexp(text), "i") };
7723
7913
  });
7724
- const searchPredicate$ = chain(textSearch$)
7725
- .mapWithNil(search => {
7726
- const textSearchPredicate = this._textSearchPredicate$.value;
7727
- return (row) => !search || !textSearchPredicate || textSearchPredicate(row, search.regex, search.text);
7728
- }, {
7729
- dependsOn: this._textSearchPredicate$,
7730
- postponeWhile: this.inUpdate
7731
- });
7732
- this._rowPredicate = chain(this._rowPredicate$)
7733
- .mapWithNil(predicate => {
7734
- const matchesSearch = searchPredicate$.value;
7735
- return (row) => (!predicate || predicate(row)) && matchesSearch(row);
7736
- }, {
7737
- dependsOn: searchPredicate$,
7738
- postponeWhile: this.inUpdate
7739
- });
7740
- this.filteredRows$ = chain(this._source$).select(row => {
7741
- return this._rowPredicate.value(row);
7742
- }, { dependsOn: this._rowPredicate });
7743
- this.searchedRows$ = chain(this._source$).select(row => searchPredicate$.value(row), { dependsOn: searchPredicate$ });
7744
7914
  }
7915
+ /** The search text as typed, before the debounce, which the cells highlight. */
7745
7916
  get highlightText$() {
7746
7917
  return this._searchText$.readonly$;
7747
7918
  }
7748
7919
  useSearchText(searchText$) {
7749
7920
  this._searchText$.setDelegate(searchText$);
7750
7921
  }
7751
- useRowPredicate(rowPredicate$) {
7752
- this._rowPredicate$.setDelegate(rowPredicate$);
7753
- }
7754
- bindToTable(source$, textSearchPredicate$) {
7755
- this.inUpdate.whileTrue(() => {
7756
- this._source$.setDelegate(source$);
7757
- this._textSearchPredicate$.setDelegate(textSearchPredicate$);
7758
- });
7759
- const dispose = () => {
7760
- if (!this.isDisposed()) {
7761
- this.inUpdate.whileTrue(() => {
7762
- this._source$.setDelegate(undefined);
7763
- this._textSearchPredicate$.setDelegate(undefined);
7764
- });
7765
- }
7766
- };
7767
- return { dispose };
7768
- }
7769
7922
  }
7770
- ProxyRegistry.registerOneTimeBinding(TableFilterModel);
7923
+ ProxyRegistry.registerOneTimeBinding(TableSearchModel);
7771
7924
 
7772
7925
  /**
7773
7926
  * @example
@@ -7921,7 +8074,7 @@ class TableComponent extends AbstractTableComponent {
7921
8074
  #tableModel_accessor_storage = proxify((TableModel));
7922
8075
  get tableModel() { return this.#tableModel_accessor_storage; }
7923
8076
  set tableModel(value) { this.#tableModel_accessor_storage = value; }
7924
- #filterModel_accessor_storage = proxify((TableFilterModel));
8077
+ #filterModel_accessor_storage = proxify((TableSearchModel));
7925
8078
  get filterModel() { return this.#filterModel_accessor_storage; }
7926
8079
  set filterModel(value) { this.#filterModel_accessor_storage = value; }
7927
8080
  tableBody;
@@ -7952,6 +8105,7 @@ class TableComponent extends AbstractTableComponent {
7952
8105
  if (CanProxy.hasTarget(this.filterModel)) {
7953
8106
  this.registerDisposable(this.filterModel.bindToTable(this._dataSource$, this.getModel().textSearchPredicate$));
7954
8107
  this.highlightText$.setDelegate(this.filterModel.highlightText$);
8108
+ this.tableModel.useSearch(this.filterModel.search$);
7955
8109
  this._filteredRows$.setDelegate(this.filterModel.filteredRows$);
7956
8110
  }
7957
8111
  else {
@@ -9748,7 +9902,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
9748
9902
  notifyActive(context) {
9749
9903
  assert$1.isTruthy(context.identifier);
9750
9904
  this.contextRegistry.start(context);
9751
- return this.isNavigationInProgress() ? Promise.resolve() : this.placeRouter.syncInteractionContextIdsWithRouter();
9905
+ return this.syncIdsWithRouter();
9752
9906
  }
9753
9907
  // @Trace()
9754
9908
  isNavigationInProgress() {
@@ -9757,16 +9911,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
9757
9911
  // @Trace()
9758
9912
  notifyFinished(context) {
9759
9913
  this.contextRegistry.finish(context);
9760
- // :: Important ::
9761
- // This method will be traversed by both the place router (during can canDeactivate guards) and user land code
9762
- // (both when routing is idle and while it is active in PlaceComponent.canDeactivate()).
9763
- // The result of pushInteractionIdsToRoute will not start until after the current route finishes, and the
9764
- // current route won't finish until after this promise returns... Deadlock.
9765
- // So in order to keep this logic out of the activities we perform the check here and ensure that
9766
- // any interactions with the context while routing is active returns immediately.
9767
- return this.isNavigationInProgress() ?
9768
- Promise.resolve() :
9769
- this.placeRouter.syncInteractionContextIdsWithRouter();
9914
+ return this.syncIdsWithRouter();
9915
+ }
9916
+ /**
9917
+ * Brings the url's interaction ids up to date. During a navigation the router runs the sync once
9918
+ * that navigation lands; skipping it instead left the url with the old ids, so Back left the place
9919
+ * rather than closing a dialog opened then, or kept the id of one closed then.
9920
+ *
9921
+ * :: Important ::
9922
+ * Only an idle router's sync is waited for. This is traversed by both the place router (during
9923
+ * canDeactivate guards) and user land code (both when routing is idle and while it is active in
9924
+ * PlaceComponent.canDeactivate()). A sync asked for during a navigation won't start until that
9925
+ * navigation finishes, and the navigation won't finish until this promise settles: deadlock.
9926
+ */
9927
+ syncIdsWithRouter() {
9928
+ const navigating = this.isNavigationInProgress();
9929
+ const synced = this.placeRouter.syncInteractionContextIdsWithRouter();
9930
+ return navigating ? Promise.resolve() : synced;
9770
9931
  }
9771
9932
  }
9772
9933
  InteractionService.ApiAdapter = ApiAdapter;
@@ -10940,8 +11101,10 @@ class PopStateDuringInteractionNavigation extends AbstractPopStateNavigation {
10940
11101
  }
10941
11102
  // @Trace()
10942
11103
  onRouterEnd(event) {
10943
- // this.context.transitionTo(new SynchroniseInteractionContextIdsWithRoute(this.context, this.poppedHistoryUrl, false));
10944
- this.context.finishRoutingSession();
11104
+ // Usually a pop during an interaction is refused (onRouterCancelled), but one that lands has to
11105
+ // record where it landed, as every other session does: finishing without the visit left
11106
+ // activeVisit$, and with it the places, on parameters the url no longer showed.
11107
+ this.context.finishRoutingSession(this.createUpdatedVisit(event.urlAfterRedirects));
10945
11108
  }
10946
11109
  handleCanDeactivateCancelledEventScenario(newUrl) {
10947
11110
  this.illegalTransition('Leaving interaction after pop-state should\'t block so should never see a back button click');
@@ -11801,6 +11964,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
11801
11964
  }]
11802
11965
  }], ctorParameters: function () { return [{ type: i1$5.Router }, { type: i1$1.Location }, { type: i1$5.UrlSerializer }]; } });
11803
11966
 
11967
+ function resolveTarget(target) {
11968
+ return typeof target === 'function' ? target() : target;
11969
+ }
11804
11970
  // function asArray<T>(item: T | T[]): T[] {
11805
11971
  // return Array.isArray(item) ? item : [item];
11806
11972
  // }
@@ -11823,8 +11989,9 @@ class PlaceRouter extends GarbageCollector {
11823
11989
  // agnostic about what the metadata means - producers (e.g. SingleSelectionModel corrections) tag
11824
11990
  // the transaction and register a predicate here. See skipHistoryIf / notifyVisitSegmentChanged.
11825
11991
  skipHistoryPredicates = [];
11826
- // A navigation triggered while an interruptible session is in flight is parked here and run when
11827
- // that session finishes. Only the most recent pending navigation is retained (coalescing).
11992
+ // A navigation triggered while a session is in flight is parked here and run when that session
11993
+ // finishes. Only the most recent target is kept (coalescing), but every caller it replaced waits
11994
+ // with it: see queueNavigation.
11828
11995
  pendingNavigation;
11829
11996
  queuedNavigationDepth = 0;
11830
11997
  static MAX_QUEUED_NAVIGATION_DEPTH = 5;
@@ -12009,21 +12176,30 @@ class PlaceRouter extends GarbageCollector {
12009
12176
  this.currentSession.onRouterEnd(event);
12010
12177
  }
12011
12178
  async navigate(visitOrPlaceComponent, params) {
12012
- const visit = this.toVisit(visitOrPlaceComponent, params).copyWithDefaultsFrom(this.activeVisit$.value);
12013
- return this.doNavigation(visit, async () => {
12014
- await this.angularRouter.navigate(visit.getRouterCommands());
12179
+ const target = this.toVisit(visitOrPlaceComponent, params);
12180
+ // The defaults are filled in when the navigation runs. One that queues behind a navigation in
12181
+ // flight would otherwise take the ancestors that navigation replaces.
12182
+ return this.doNavigation(() => target.copyWithDefaultsFrom(this.activeVisit$.value), async (router, visit) => {
12183
+ await router.navigate(visit.getRouterCommands());
12015
12184
  });
12016
12185
  }
12186
+ /**
12187
+ * Runs a navigation, or queues it behind the one in flight. The returned promise settles once the
12188
+ * navigation has landed (or been refused): a caller may treat it as the route being current, as
12189
+ * the place outlet does. A {@link PlaceRouter.NavigationTarget} given as a function is resolved
12190
+ * when the navigation runs, so a queued one is built from the visit it runs after.
12191
+ */
12017
12192
  // @Trace()
12018
- async doNavigation(visit, runNavigationCommands) {
12193
+ async doNavigation(target, runNavigationCommands) {
12019
12194
  if (this.navigationInProgress$.value) {
12020
- return this.handleOverlappingNavigation(visit, runNavigationCommands);
12195
+ return this.handleOverlappingNavigation(target, runNavigationCommands);
12021
12196
  }
12197
+ const visit = resolveTarget(target);
12022
12198
  const navigation = this.createNavigationSession(this.urlService.getCurrentRouterUrl());
12023
12199
  navigation.initialiseVisitSegments(visit);
12024
12200
  this.transitionTo(navigation);
12025
12201
  try {
12026
- await runNavigationCommands(this.angularRouter);
12202
+ await runNavigationCommands(this.angularRouter, visit);
12027
12203
  }
12028
12204
  finally {
12029
12205
  // Check if the router has finished (in the case where no router change required) and we're still in a
@@ -12047,7 +12223,8 @@ class PlaceRouter extends GarbageCollector {
12047
12223
  * events -> onPopState), so queueing programmatic navigations behind an in-flight session
12048
12224
  * preserves user-intent ordering.
12049
12225
  */
12050
- handleOverlappingNavigation(visit, runNavigationCommands) {
12226
+ handleOverlappingNavigation(target, runNavigationCommands) {
12227
+ const visit = resolveTarget(target);
12051
12228
  const current = this.navigationSession;
12052
12229
  const debug = {
12053
12230
  inProgress: {
@@ -12063,17 +12240,25 @@ class PlaceRouter extends GarbageCollector {
12063
12240
  };
12064
12241
  Logger.get(this).warn(`Navigation triggered while session '${current?.name}' is in progress; ` +
12065
12242
  `queueing the incoming navigation to run once it finishes.`, debug);
12066
- return this.queueNavigation(visit, runNavigationCommands);
12243
+ return this.queueNavigation(target, runNavigationCommands);
12067
12244
  }
12068
- queueNavigation(visit, runNavigationCommands) {
12069
- const flushAlreadyScheduled = !!this.pendingNavigation;
12070
- if (this.pendingNavigation) {
12071
- // Coalesce: supersede the previously queued navigation so only the most recent target runs.
12072
- this.pendingNavigation.resolve();
12073
- }
12245
+ /**
12246
+ * Coalesces to the latest target, but a superseded caller is NOT settled here: it waits for the
12247
+ * navigation that replaced it. Settling it at once told the caller its navigation had landed while
12248
+ * the route was unchanged. The place outlet then wrote that route back to its place; a selection
12249
+ * that couldn't hold it selected again and navigated again, superseding the next one, and that
12250
+ * cycle ran on microtasks alone, so the session in flight never finished (mars-v2's groups pages
12251
+ * hung after a create).
12252
+ */
12253
+ queueNavigation(target, runNavigationCommands) {
12254
+ const superseded = this.pendingNavigation;
12074
12255
  return new Promise((resolve, reject) => {
12075
- this.pendingNavigation = { visit, runNavigationCommands, resolve, reject };
12076
- if (!flushAlreadyScheduled) {
12256
+ this.pendingNavigation = {
12257
+ target,
12258
+ runNavigationCommands,
12259
+ callers: [...(superseded?.callers ?? []), { resolve, reject }],
12260
+ };
12261
+ if (!superseded) {
12077
12262
  this.runAfterRoutingSessionFinishes(() => this.flushPendingNavigation());
12078
12263
  }
12079
12264
  });
@@ -12086,18 +12271,19 @@ class PlaceRouter extends GarbageCollector {
12086
12271
  this.pendingNavigation = undefined;
12087
12272
  if (this.queuedNavigationDepth >= PlaceRouter.MAX_QUEUED_NAVIGATION_DEPTH) {
12088
12273
  Logger.get(this).warn(`Dropping queued navigation after ${this.queuedNavigationDepth} consecutive deferrals to ` +
12089
- `avoid a navigation loop.`, { visit: pending.visit?.toDebugString() });
12274
+ `avoid a navigation loop.`, { visit: resolveTarget(pending.target)?.toDebugString() });
12090
12275
  this.queuedNavigationDepth = 0;
12091
- pending.resolve();
12276
+ // Nothing navigated, so the route its callers read back is still the current one.
12277
+ pending.callers.forEach(caller => caller.resolve());
12092
12278
  return;
12093
12279
  }
12094
12280
  this.queuedNavigationDepth++;
12095
- this.doNavigation(pending.visit, pending.runNavigationCommands).then(() => {
12281
+ this.doNavigation(pending.target, pending.runNavigationCommands).then(() => {
12096
12282
  this.queuedNavigationDepth = 0;
12097
- pending.resolve();
12283
+ pending.callers.forEach(caller => caller.resolve());
12098
12284
  }, (error) => {
12099
12285
  this.queuedNavigationDepth = 0;
12100
- pending.reject(error);
12286
+ pending.callers.forEach(caller => caller.reject(error));
12101
12287
  });
12102
12288
  }
12103
12289
  navigateByUrl(urlSnapshot, navigationExtras) {
@@ -12114,8 +12300,6 @@ class PlaceRouter extends GarbageCollector {
12114
12300
  async notifyVisitSegmentChanged(is, was, metadata) {
12115
12301
  // console.log("PlaceRouter.notifyVisitSegmentChanged", is.toDebugString(), was.toDebugString());
12116
12302
  this.placeHistory.updateVisitSegment(is);
12117
- // FIXME: no route id -> route id duplicates route parameters
12118
- const visit = this.activeVisit$.value.copyAndReplaceSegment(is);
12119
12303
  if (is.hasRoutingChangedFrom(was)) {
12120
12304
  // An in-place parameter change (model -> route) pushes a history entry by default so a
12121
12305
  // deliberate selection is reachable via the back button. Automatic refinements
@@ -12125,7 +12309,9 @@ class PlaceRouter extends GarbageCollector {
12125
12309
  // that entry, and a pushed one would leave the pop on an entry that still holds the interaction. The closing
12126
12310
  // session then pushes the change after the entry it pops to (RemoveLastInteractionFromUrlNavigationSession).
12127
12311
  const replaceUrl = this.interactionService.isActive() || this.shouldReplaceHistory(metadata);
12128
- await this.doNavigation(visit, () => {
12312
+ // Both the visit and the url are built when the navigation runs, from what is current then.
12313
+ // FIXME: no route id -> route id duplicates route parameters
12314
+ await this.doNavigation(() => this.activeVisit$.value.copyAndReplaceSegment(is), () => {
12129
12315
  const urlSnapshot = this.urlService
12130
12316
  .parseUrl(this.angularRouter.routerState.snapshot.url)
12131
12317
  .updateVisitSegment(is);
@@ -13014,7 +13200,7 @@ class ActivityContainerComponent extends AbstractInteractionContext {
13014
13200
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ActivityContainerComponent, deps: [{ token: PlaceRouter }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
13015
13201
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ActivityContainerComponent, selector: "aup-activity-container", inputs: { dynamicHeight: "dynamicHeight", animationDuration: "animationDuration" }, providers: [
13016
13202
  { provide: INTERACTION_CONTEXT, useClass: ActivityContainerComponent },
13017
- ], viewQueries: [{ propertyName: "tabs", first: true, predicate: ["tabs"], descendants: true, static: true }, { propertyName: "activityOutlets", predicate: ActivityOutletComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-tab-group #tabs no-tab-header\n [dynamicHeight]=\"dynamicHeight\"\n [class.full-height-tabs]=\"!dynamicHeight\"\n [animationDuration]=\"getTabAnimationDuration()\"\n (animationDone)=\"onAnimationDone()\"\n>\n <mat-tab *ngFor=\"let activityRef of activityRefs; let i = index; trackBy: activityIndex\">\n <aup-busy-overlay [busy$]=\"busy\" cdkTrapFocus cdkTrapFocusAutoCapture>\n <!--\n We have issues where angular is triggering a leave animation when an\n new activity is started, but is not running the enter animation\n when it is scrolled back into view. So we track the tab changes and\n disable all animations inside the tab while we're animating.\n -->\n <div class=\"activity-outlet-wrapper\" [@.disabled]=\"!activityRef.focused\">\n <aup-activity-outlet [nestedInteractionContext]=\"this\" [activityRef]=\"activityRef\"></aup-activity-outlet>\n </div>\n </aup-busy-overlay>\n </mat-tab>\n</mat-tab-group>\n", styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}aup-busy-overlay{flex:1}.activity-outlet-wrapper{flex:1}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i3$2.MatTab, selector: "mat-tab", inputs: ["disabled"], exportAs: ["matTab"] }, { kind: "component", type: i3$2.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple", "fitInkBarToContent", "mat-stretch-tabs"], exportAs: ["matTabGroup"] }, { kind: "component", type: BusyOverlayComponent, selector: "aup-busy-overlay", inputs: ["busy$", "busy"] }, { kind: "directive", type: i5$2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: ActivityOutletComponent, selector: "aup-activity-outlet", inputs: ["nestedInteractionContext", "activityRef"] }] });
13203
+ ], viewQueries: [{ propertyName: "tabs", first: true, predicate: ["tabs"], descendants: true, static: true }, { propertyName: "activityOutlets", predicate: ActivityOutletComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-tab-group #tabs no-tab-header\n [dynamicHeight]=\"dynamicHeight\"\n [class.full-height-tabs]=\"!dynamicHeight\"\n [animationDuration]=\"getTabAnimationDuration()\"\n (animationDone)=\"onAnimationDone()\"\n>\n <mat-tab *ngFor=\"let activityRef of activityRefs; let i = index; trackBy: activityIndex\">\n <aup-busy-overlay [busy$]=\"busy\" cdkTrapFocus cdkTrapFocusAutoCapture>\n <!--\n We have issues where angular is triggering a leave animation when an\n new activity is started, but is not running the enter animation\n when it is scrolled back into view. So we track the tab changes and\n disable all animations inside the tab while we're animating.\n -->\n <div class=\"activity-outlet-wrapper\" [@.disabled]=\"!activityRef.focused\">\n <aup-activity-outlet [nestedInteractionContext]=\"this\" [activityRef]=\"activityRef\"></aup-activity-outlet>\n </div>\n </aup-busy-overlay>\n </mat-tab>\n</mat-tab-group>\n", styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}aup-busy-overlay{flex:1}.activity-outlet-wrapper{flex:1}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i3$2.MatTab, selector: "mat-tab", inputs: ["disabled"], exportAs: ["matTab"] }, { kind: "component", type: i3$2.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple", "fitInkBarToContent", "mat-stretch-tabs"], exportAs: ["matTabGroup"] }, { kind: "component", type: BusyOverlayComponent, selector: "aup-busy-overlay", inputs: ["busy$", "busy"] }, { kind: "directive", type: i5$3.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: ActivityOutletComponent, selector: "aup-activity-outlet", inputs: ["nestedInteractionContext", "activityRef"] }] });
13018
13204
  }
13019
13205
  __decorate([
13020
13206
  Trace(),
@@ -15611,7 +15797,7 @@ class ListPlaceNavComponent extends AbstractPlaceNavigationComponent {
15611
15797
  super(router);
15612
15798
  }
15613
15799
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ListPlaceNavComponent, deps: [{ token: PlaceRouter }], target: i0.ɵɵFactoryTarget.Component });
15614
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ListPlaceNavComponent, selector: "aup-list-place-nav", usesInheritance: true, ngImport: i0, template: "<mat-nav-list fxFlex>\n <a mat-list-item *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n aup-gc #gc=\"aup-gc\"\n [pectinCommand]=\"commandFactory.create(item.place, {disposedWith: gc})\"\n [class.active]=\"item.active\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\"\n [attr.data-cy]=\"item.place.path\"\n >\n <aup-command-face [faces]=\"[getNavigationFace(item.place)]\"></aup-command-face>\n </a>\n</mat-nav-list>\n", styles: [":host{display:flex;flex-direction:column;--selected-border-color: #838383;--selected-color: inherit;--selected-background: #f1f1f1}mat-nav-list{padding-top:0}a{border-right:2px solid transparent}a.active{border-right:2px solid var(--selected-border-color);background:var(--selected-background);color:var(--selected-color)}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i3$3.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "component", type: i3$3.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault"] }, { kind: "directive", type: GarbageCollectorDirective, selector: "[aup-gc]", exportAs: ["aup-gc"] }, { kind: "component", type: CommandFaceComponent, selector: "aup-command-face", inputs: ["faces", "face", "ignoreIcon", "ignoreText", "includeMissingIconInLayout"] }] });
15800
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ListPlaceNavComponent, selector: "aup-list-place-nav", usesInheritance: true, ngImport: i0, template: "<mat-nav-list fxFlex>\n <a mat-list-item *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n aup-gc #gc=\"aup-gc\"\n [pectinCommand]=\"commandFactory.create(item.place, {disposedWith: gc})\"\n [class.active]=\"item.active\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\"\n [attr.data-cy]=\"item.place.path\"\n >\n <aup-command-face [faces]=\"[getNavigationFace(item.place)]\"></aup-command-face>\n </a>\n</mat-nav-list>\n", styles: [":host{display:flex;flex-direction:column;--selected-border-color: #838383;--selected-color: inherit;--selected-background: #f1f1f1}mat-nav-list{padding-top:0}a{border-right:2px solid transparent}a.active{border-right:2px solid var(--selected-border-color);background:var(--selected-background);color:var(--selected-color)}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i3$4.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "component", type: i3$4.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault"] }, { kind: "directive", type: GarbageCollectorDirective, selector: "[aup-gc]", exportAs: ["aup-gc"] }, { kind: "component", type: CommandFaceComponent, selector: "aup-command-face", inputs: ["faces", "face", "ignoreIcon", "ignoreText", "includeMissingIconInLayout"] }] });
15615
15801
  }
15616
15802
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ListPlaceNavComponent, decorators: [{
15617
15803
  type: Component,
@@ -16279,6 +16465,108 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
16279
16465
  * @file Automatically generated by barrelsby.
16280
16466
  */
16281
16467
 
16468
+ /**
16469
+ * The search model of a table whose rows the server finds, such as one that loads them a step at a
16470
+ * time. The rows a table holds are what the server found for the search and the filters, so it shows
16471
+ * them all. Its settled search
16472
+ * ({@link search$}) becomes the server request's criteria through `AbstractTableModel.useCriteria`, and
16473
+ * the cells highlight the search text as usual.
16474
+ *
16475
+ * It has no row predicate, so a page's filters cannot filter the rows held: they reach the server as
16476
+ * criteria, as the search does.
16477
+ *
16478
+ * @example
16479
+ * this.search = new ServerSearchModel<DecoratedAlarm>({disposedWith: this, searchText$: this.searchText$});
16480
+ * const criteria$ = this.table.useCriteria(base$, {
16481
+ * searchCriteriaClass: AlarmSearchCriteriaDto,
16482
+ * withSearchCriteria: (criteria, searchCriteria) => criteria.copy({searchCriteria}),
16483
+ * });
16484
+ *
16485
+ * <aup-table [tableModel]="table" [filterModel]="search"></aup-table>
16486
+ */
16487
+ class ServerSearchModel extends TableSearchModel {
16488
+ _source$ = this.registerDisposable(new DelegatingListModel());
16489
+ filteredRows$ = this._source$.readonly$;
16490
+ constructor(options) {
16491
+ super(options);
16492
+ }
16493
+ /** The table's columns' text search is for searching in the browser, so it goes unused. */
16494
+ bindToTable(source$, _textSearchPredicate$) {
16495
+ this._source$.setDelegate(source$);
16496
+ return {
16497
+ dispose: () => {
16498
+ if (!this.isDisposed()) {
16499
+ this._source$.setDelegate(undefined);
16500
+ }
16501
+ }
16502
+ };
16503
+ }
16504
+ }
16505
+ ProxyRegistry.registerOneTimeBinding(ServerSearchModel);
16506
+
16507
+ /**
16508
+ * The search model of a table that holds all its rows: it searches and filters them in the browser. A row
16509
+ * is shown when it matches the search, through the columns' text search, and the row predicate, which a
16510
+ * page's filters supply. A table whose rows the server finds uses `ServerSearchModel` instead.
16511
+ */
16512
+ class TableFilterModel extends TableSearchModel {
16513
+ _source$ = this.registerDisposable(new DelegatingListModel());
16514
+ _rowPredicate$ = this.registerDisposable(new DelegatingValueModel());
16515
+ _textSearchPredicate$ = this.registerDisposable(new DelegatingValueModel());
16516
+ _rowPredicate;
16517
+ inUpdate = new Guard();
16518
+ filteredRows$;
16519
+ /**
16520
+ * The rows the search alone leaves in, before the row predicate. A filter bar counts its choices against these, so
16521
+ * that a count agrees with what the table would show once the choice is made.
16522
+ */
16523
+ searchedRows$;
16524
+ constructor(options) {
16525
+ super(options);
16526
+ this.useRowPredicate(options.predicate$);
16527
+ const { chain } = Dsl.disposeWith(this);
16528
+ const searchPredicate$ = chain(this.search$)
16529
+ .mapWithNil(search => {
16530
+ const textSearchPredicate = this._textSearchPredicate$.value;
16531
+ return (row) => !search || !textSearchPredicate || textSearchPredicate(row, search.regex, search.text);
16532
+ }, {
16533
+ dependsOn: this._textSearchPredicate$,
16534
+ postponeWhile: this.inUpdate
16535
+ });
16536
+ this._rowPredicate = chain(this._rowPredicate$)
16537
+ .mapWithNil(predicate => {
16538
+ const matchesSearch = searchPredicate$.value;
16539
+ return (row) => (!predicate || predicate(row)) && matchesSearch(row);
16540
+ }, {
16541
+ dependsOn: searchPredicate$,
16542
+ postponeWhile: this.inUpdate
16543
+ });
16544
+ this.filteredRows$ = chain(this._source$).select(row => {
16545
+ return this._rowPredicate.value(row);
16546
+ }, { dependsOn: this._rowPredicate });
16547
+ this.searchedRows$ = chain(this._source$).select(row => searchPredicate$.value(row), { dependsOn: searchPredicate$ });
16548
+ }
16549
+ useRowPredicate(rowPredicate$) {
16550
+ this._rowPredicate$.setDelegate(rowPredicate$);
16551
+ }
16552
+ bindToTable(source$, textSearchPredicate$) {
16553
+ this.inUpdate.whileTrue(() => {
16554
+ this._source$.setDelegate(source$);
16555
+ this._textSearchPredicate$.setDelegate(textSearchPredicate$);
16556
+ });
16557
+ const dispose = () => {
16558
+ if (!this.isDisposed()) {
16559
+ this.inUpdate.whileTrue(() => {
16560
+ this._source$.setDelegate(undefined);
16561
+ this._textSearchPredicate$.setDelegate(undefined);
16562
+ });
16563
+ }
16564
+ };
16565
+ return { dispose };
16566
+ }
16567
+ }
16568
+ ProxyRegistry.registerOneTimeBinding(TableFilterModel);
16569
+
16282
16570
  class AbstractCellRenderer extends LoadableComponent {
16283
16571
  constructor() {
16284
16572
  super();
@@ -17407,5 +17695,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
17407
17695
  * Generated bundle index. Do not edit.
17408
17696
  */
17409
17697
 
17410
- export { ACTIVITY_DATA, ALERT_CONFIG, AUP_DETACHED_PARENT_CDR, AUP_OUT_OF_SCOPE_PLACE_NOTICE_COMPONENT, AUP_PLACE_CONFIG, AUP_TABLE_OPTIMIZED_CHANGE_DETECTION, AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER, AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, AbstractActivityTriggerComponent, AbstractCardContainerComponent, AbstractCellRenderer, AbstractConfirmDialogComponent, AbstractDialogComponent, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractPopupMenuComponent, AbstractTableComponent, AbstractTableModel, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityBodyComponent, ActivityCancellation, ActivityContainerComponent, ActivityContext, ActivityOutletComponent, ActivityRef, ActivitySelectOptionList, ActivityTitleComponent, AddCardActivityComponent, AddItemInteractionContextComponent, Alert, AlertDialogComponent, AlertRendererComponent, AngularUiPowerupsModule, AupTooltipDirective, AutocompleteInputComponent, BottomSheetInteractionContext, BottomSheetInteractionContextFactory, Bounds, BusyOverlayComponent, ButtonRendererComponent, CELL_RENDERER_PORTAL, CardContainerComponent, CellFooterPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnManager, ColumnModel, ColumnOrderManager, ColumnTemplateDirective, ColumnTextSearchFormatter, CommandComponent, CommandContainer, CommandDirective, CommandFace, CommandFaceComponent, ComponentCellRendererPortalRef, ComponentsModule, Confirm, ConfirmRendererComponent, ConfirmThenDialogComponent, ConfirmThenExecuteDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DecoratedTreeNode, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DelegatingInteractionContext, DensityDirective, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EmptyStateComponent, EnableCellTextSearch, EventCleanUpSession, FOOTER_CELL_RENDERER_PORTAL, FileDownloadComponent, FlattenedTreeListModel, FlexComponent, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, FooterRowCellsBuilder, FooterRowModel, Formatter, GarbageCollectorDirective, HEADER_CELL_RENDERER_PORTAL, HighlightPipe, HighlightTextModelDirective, HorizontalAlignment, HostedInteractionContext, INTERACTION_CONTEXT, IconComponent, InPlaceInteractionContextComponent, InlineActivityTriggerComponent, InlineEditorModel, InlineStringEditorComponent, InputActivity, InteractionContextProvider, InteractionContextTriggerForDirective, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, Keys, LEFT_RIGHT_PLACE_ANIMATION, LabelledValueComponent, ListPlaceNavComponent, ListPropertyColumnModel, LoadableComponent, LoadingContainerComponent, MarkdownComponent, MarkdownService, ModalActivityTriggerComponent, ModalInteractionContextFactory, MoreMenuComponent, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NotAuthorisedNoticeComponent, NumberInputComponent, OPTION_LIST_DEFAULTS, OptionListActivity, OutOfScopeNoticeComponent, POPUP_CONTAINER, PORTAL_RENDERER_COMPONENT, PaginatorComponent, ParameterDefinition, ParameterSanitiser, PasswordInputComponent, Place, PlaceAccessGuard, PlaceAuthService, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, PlaceScope, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupActivityTriggerComponent, PopupAwareComponent, PopupInteractionContextComponent, PopupMenuComponent, PopupMenuRendererComponent, PropertyColumnModel, QuietRejections, QuietRejectionsErrorHandler, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, ResizeObserverDirective, RouteId, ScrollContainerComponent, SearchInputComponent, SectionHeaderComponent, SelectInputActivity, SelectInputComponent, SelectOptionList, SelectOverlayOriginDirective, SelectionCellComponent, SelectionColumnModel, SelectionHeaderCellComponent, SeparatorComponent, SheetSwipe, SidePlaceNavigationComponent, SlideDownInteractionContextComponent, StringInputActivity, StringInputComponent, SubFormListColumn, SubFormListColumns, SubFormListComponent, SubFormListEmptyDirective, SubFormListFooterDirective, SubFormListHeaderDirective, SubFormRowActionsDirective, SubFormRowDirective, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TableActionColumnComponent, TableBodyComponent, TableCellComponent, TableComponent, TableCustomMoreMenuComponent, TableCustomMoreMenuPopupComponent, TableFilterModel, TableFooterRow, TableHeaderCellComponent, TableModel, TableRowAttributesDirective, TemplateCellRendererPortalRef, TextInputComponent, ToolBarComponent, Track, TreeExpansionModel, TreeInheritanceIconComponent, TreeLabelCellRendererComponent, TreeLabelColumnModel, TreeTableComponent, TreeTableModel, UrlService, UrlSnapshot, VerticalFocusContainerComponent, VisibilityService, Visit, VisitParameter, VisitParameterList, VisitSegment, VisitSegmentSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, collapseOrphanSeparators, getPlaceDefinition, leftRightPlaceAnimation, markdownPillExtension, provideQuietRejections, registerValidators, setPlaceDefinition, slideDownAndRightOnEnterAnimation, slideDownOnEnterAnimation, slideDownWhenOpenAnimation, slideRightOnEnterAnimation, startActivityInPopup, treeNodeDecorator };
17698
+ export { ACTIVITY_DATA, ALERT_CONFIG, AUP_DETACHED_PARENT_CDR, AUP_OUT_OF_SCOPE_PLACE_NOTICE_COMPONENT, AUP_PLACE_CONFIG, AUP_TABLE_OPTIMIZED_CHANGE_DETECTION, AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER, AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, AbstractActivityTriggerComponent, AbstractCardContainerComponent, AbstractCellRenderer, AbstractConfirmDialogComponent, AbstractDialogComponent, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractPopupMenuComponent, AbstractTableComponent, AbstractTableModel, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityBodyComponent, ActivityCancellation, ActivityContainerComponent, ActivityContext, ActivityOutletComponent, ActivityRef, ActivitySelectOptionList, ActivityTitleComponent, AddCardActivityComponent, AddItemInteractionContextComponent, Alert, AlertDialogComponent, AlertRendererComponent, AngularUiPowerupsModule, AupTooltipDirective, AutocompleteInputComponent, BottomSheetInteractionContext, BottomSheetInteractionContextFactory, Bounds, BusyOverlayComponent, ButtonRendererComponent, CELL_RENDERER_PORTAL, CardContainerComponent, CellFooterPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnManager, ColumnModel, ColumnOrderManager, ColumnTemplateDirective, ColumnTextSearchFormatter, CommandComponent, CommandContainer, CommandDirective, CommandFace, CommandFaceComponent, ComponentCellRendererPortalRef, ComponentsModule, Confirm, ConfirmRendererComponent, ConfirmThenDialogComponent, ConfirmThenExecuteDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DecoratedTreeNode, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DelegatingInteractionContext, DensityDirective, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EmptyStateComponent, EnableCellTextSearch, EventCleanUpSession, FOOTER_CELL_RENDERER_PORTAL, FileDownloadComponent, FlattenedTreeListModel, FlexComponent, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, FooterRowCellsBuilder, FooterRowModel, Formatter, GarbageCollectorDirective, HEADER_CELL_RENDERER_PORTAL, HighlightPipe, HighlightTextModelDirective, HorizontalAlignment, HostedInteractionContext, INTERACTION_CONTEXT, IconComponent, InPlaceInteractionContextComponent, InlineActivityTriggerComponent, InlineEditorModel, InlineStringEditorComponent, InputActivity, InteractionContextProvider, InteractionContextTriggerForDirective, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, Keys, LEFT_RIGHT_PLACE_ANIMATION, LabelledValueComponent, ListPlaceNavComponent, ListPropertyColumnModel, LoadableComponent, LoadingContainerComponent, MarkdownComponent, MarkdownService, ModalActivityTriggerComponent, ModalInteractionContextFactory, MoreMenuComponent, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NotAuthorisedNoticeComponent, NumberInputComponent, OPTION_LIST_DEFAULTS, OptionListActivity, OutOfScopeNoticeComponent, POPUP_CONTAINER, PORTAL_RENDERER_COMPONENT, PaginatorComponent, ParameterDefinition, ParameterSanitiser, PasswordInputComponent, Place, PlaceAccessGuard, PlaceAuthService, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, PlaceScope, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupActivityTriggerComponent, PopupAwareComponent, PopupInteractionContextComponent, PopupMenuComponent, PopupMenuRendererComponent, PropertyColumnModel, QuietRejections, QuietRejectionsErrorHandler, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, ResizeObserverDirective, RouteId, ScrollContainerComponent, SearchCriteria, SearchInputComponent, SectionHeaderComponent, SelectInputActivity, SelectInputComponent, SelectOptionList, SelectOverlayOriginDirective, SelectionCellComponent, SelectionColumnModel, SelectionHeaderCellComponent, SeparatorComponent, ServerSearchModel, SheetSwipe, SidePlaceNavigationComponent, SlideDownInteractionContextComponent, StringInputActivity, StringInputComponent, SubFormListColumn, SubFormListColumns, SubFormListComponent, SubFormListEmptyDirective, SubFormListFooterDirective, SubFormListHeaderDirective, SubFormRowActionsDirective, SubFormRowDirective, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TableActionColumnComponent, TableBodyComponent, TableCellComponent, TableComponent, TableCustomMoreMenuComponent, TableCustomMoreMenuPopupComponent, TableFilterModel, TableFooterRow, TableHeaderCellComponent, TableModel, TableRowAttributesDirective, TableSearchModel, TemplateCellRendererPortalRef, TextInputComponent, ToolBarComponent, Track, TreeExpansionModel, TreeInheritanceIconComponent, TreeLabelCellRendererComponent, TreeLabelColumnModel, TreeTableComponent, TreeTableModel, UrlService, UrlSnapshot, VerticalFocusContainerComponent, VisibilityService, Visit, VisitParameter, VisitParameterList, VisitSegment, VisitSegmentSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, collapseOrphanSeparators, getPlaceDefinition, leftRightPlaceAnimation, markdownPillExtension, provideQuietRejections, registerValidators, setPlaceDefinition, slideDownAndRightOnEnterAnimation, slideDownOnEnterAnimation, slideDownWhenOpenAnimation, slideRightOnEnterAnimation, startActivityInPopup, treeNodeDecorator };
17411
17699
  //# sourceMappingURL=coolon-angular-ui-powerups.mjs.map