@coolon/angular-ui-powerups 14.17.0 → 14.19.1

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 (42) hide show
  1. package/esm2020/lib/components/exports.mjs +4 -4
  2. package/esm2020/lib/components/tables/abstract-table-model.mjs +56 -75
  3. package/esm2020/lib/components/tables/abstract-table.component.mjs +40 -6
  4. package/esm2020/lib/components/tables/column/column-model.mjs +2 -2
  5. package/esm2020/lib/components/tables/column/custom-value-column-model.mjs +3 -3
  6. package/esm2020/lib/components/tables/column/list-propery-column-model.mjs +3 -3
  7. package/esm2020/lib/components/tables/column/property-column-model.mjs +3 -3
  8. package/esm2020/lib/components/tables/{search → filter}/column-text-search-formatter.mjs +1 -1
  9. package/esm2020/lib/components/tables/{search → filter}/enable-cell-text-search.decorator.mjs +1 -1
  10. package/esm2020/lib/components/tables/filter/table-filter-model.mjs +54 -9
  11. package/esm2020/lib/components/tables/filter/text-search-predicate.mjs +2 -0
  12. package/esm2020/lib/components/tables/renderer/default-cell-renderer/default-cell-renderer.component.mjs +1 -1
  13. package/esm2020/lib/components/tables/renderer/table-body/table-body.component.mjs +13 -5
  14. package/esm2020/lib/components/tables/table/table-model.mjs +4 -27
  15. package/esm2020/lib/components/tables/table/table.component.mjs +76 -11
  16. package/esm2020/lib/components/tables/tree-table/flattened-tree-list-model.mjs +2 -2
  17. package/esm2020/lib/components/tables/tree-table/tree-expansion-model.mjs +30 -9
  18. package/esm2020/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.mjs +5 -5
  19. package/esm2020/lib/components/tables/tree-table/tree-table-component.mjs +24 -4
  20. package/esm2020/lib/components/tables/tree-table/tree-table-model.mjs +16 -8
  21. package/fesm2015/coolon-angular-ui-powerups.mjs +299 -193
  22. package/fesm2015/coolon-angular-ui-powerups.mjs.map +1 -1
  23. package/fesm2020/coolon-angular-ui-powerups.mjs +364 -258
  24. package/fesm2020/coolon-angular-ui-powerups.mjs.map +1 -1
  25. package/lib/components/exports.d.ts +3 -3
  26. package/lib/components/tables/abstract-table-model.d.ts +18 -16
  27. package/lib/components/tables/abstract-table.component.d.ts +10 -3
  28. package/lib/components/tables/column/column-model.d.ts +1 -1
  29. package/lib/components/tables/filter/table-filter-model.d.ts +18 -7
  30. package/lib/components/tables/filter/text-search-predicate.d.ts +1 -0
  31. package/lib/components/tables/renderer/table-body/table-body.component.d.ts +4 -2
  32. package/lib/components/tables/table/table-model.d.ts +2 -7
  33. package/lib/components/tables/table/table.component.d.ts +15 -1
  34. package/lib/components/tables/tree-table/flattened-tree-list-model.d.ts +2 -2
  35. package/lib/components/tables/tree-table/tree-expansion-model.d.ts +10 -7
  36. package/lib/components/tables/tree-table/tree-table-component.d.ts +4 -1
  37. package/lib/components/tables/tree-table/tree-table-model.d.ts +8 -3
  38. package/package.json +2 -2
  39. package/esm2020/lib/components/tables/filter/default-table-filter-model.mjs +0 -55
  40. package/lib/components/tables/filter/default-table-filter-model.d.ts +0 -19
  41. /package/lib/components/tables/{search → filter}/column-text-search-formatter.d.ts +0 -0
  42. /package/lib/components/tables/{search → filter}/enable-cell-text-search.decorator.d.ts +0 -0
@@ -39,7 +39,7 @@ import { MatTableModule } from '@angular/material/table';
39
39
  import * as i4 from '@angular/material/tooltip';
40
40
  import { MatTooltipModule } from '@angular/material/tooltip';
41
41
  import * as i1$3 from '@coolon/pectin';
42
- import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, Logger, TrackExternal, ValueModel, StoreInValueModel, Command, MutableListModel, StoreInListModel, Disposable, DelegatingListModel, MutableValueModel, FocusManager, EventListenerList, Form, Guard, Binding, DebugContext, ListModel, Functions, HasDelegate, MultipleSelectionModel, SelectionModel, AbstractComputedListModel, DelegatingSelectionModel, DelegateProxyHandler, DirtyTrackingForm, PagedListModel, PageController, ComputedListModel, Deferred } from '@coolon/pectin';
42
+ import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, Logger, TrackExternal, ValueModel, StoreInValueModel, Command, MutableListModel, StoreInListModel, Disposable, DelegatingListModel, MutableValueModel, FocusManager, EventListenerList, Form, Guard, Binding, DebugContext, ListModel, Functions, HasDelegate, MultipleSelectionModel, SelectionModel, AbstractComputedListModel, DelegatingSelectionModel, DirtyTrackingForm, PageController, PagedListModel, ComputedListModel, Deferred } from '@coolon/pectin';
43
43
  import { __decorate, __param, __metadata } from 'tslib';
44
44
  import * as i1 from '@angular/platform-browser';
45
45
  import escapeStringRegexp from 'escape-string-regexp';
@@ -2866,14 +2866,35 @@ class AbstractTableComponent extends DisposableComponent {
2866
2866
  // TODO: support user defined header and row heights via css vars.
2867
2867
  this.headerHeight = new MutableValueModel(56);
2868
2868
  this.rowHeight = new MutableValueModel(48);
2869
+ this._visibleRows$ = this.registerDisposable(new DelegatingListModel());
2870
+ this.highlightText$ = this.registerDisposable(new DelegatingValueModel());
2869
2871
  this.baseCssClass = 'aup-table-component';
2872
+ this.trackBy = (index, item) => {
2873
+ return this.identityOf ? this.identityOf(item) : index;
2874
+ };
2870
2875
  const { chain, when } = Dsl.disposeWith(this);
2876
+ // this.rows$ = chain(this.dataSource$)
2877
+ // .
2878
+ this._visibleRows$.setDelegate(this._sourceData$);
2879
+ when(chain(this._sourceData$).first()).becomesTruthy(it => {
2880
+ if (it === this.identityOf(it)) {
2881
+ console.warn("Table model identity function is using reference equality. This can cause lots of table re-rendering", {
2882
+ row: it
2883
+ });
2884
+ }
2885
+ }, { once: true });
2886
+ }
2887
+ identityOf(row) {
2888
+ return this._sourceData$.identityOf(row);
2871
2889
  }
2872
2890
  ngOnInit() {
2873
- const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
2891
+ const { chain } = Dsl.disposeWith(this);
2874
2892
  const model = this.getModel();
2875
- model.initialise(this.injector);
2876
2893
  this.columnsById = chain(model.columns).indexBy('columnId');
2894
+ model.bindToTable(this.injector, (row) => this.identityOf(row));
2895
+ }
2896
+ get visibleRows$() {
2897
+ return this._visibleRows$.readonly;
2877
2898
  }
2878
2899
  getModel() {
2879
2900
  return lang$1.abstractMethod(this.constructor);
@@ -2886,7 +2907,15 @@ class AbstractTableComponent extends DisposableComponent {
2886
2907
  }
2887
2908
  }
2888
2909
  AbstractTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AbstractTableComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
2889
- AbstractTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: AbstractTableComponent, selector: "aup-abstract-table", inputs: { showHeader$: "showHeader$", showHeader: "showHeader", enableScrolling: "enableScrolling" }, host: { properties: { "class": "this.baseCssClass" } }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
2910
+ AbstractTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: AbstractTableComponent, selector: "aup-abstract-table", inputs: { _sourceData$: ["data$", "_sourceData$"], data: "data", showHeader$: "showHeader$", showHeader: "showHeader", enableScrolling: "enableScrolling" }, host: { properties: { "class": "this.baseCssClass" } }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
2911
+ __decorate([
2912
+ TrackExternal(),
2913
+ __metadata("design:type", ListModel)
2914
+ ], AbstractTableComponent.prototype, "_sourceData$", void 0);
2915
+ __decorate([
2916
+ StoreInListModel("_sourceData$"),
2917
+ __metadata("design:type", Array)
2918
+ ], AbstractTableComponent.prototype, "data", void 0);
2890
2919
  __decorate([
2891
2920
  TrackExternal({ defaultValue: true }),
2892
2921
  __metadata("design:type", ValueModel)
@@ -2901,7 +2930,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
2901
2930
  selector: 'aup-abstract-table',
2902
2931
  template: ''
2903
2932
  }]
2904
- }], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { showHeader$: [{
2933
+ }], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { _sourceData$: [{
2934
+ type: Input,
2935
+ args: ["data$"]
2936
+ }], data: [{
2937
+ type: Input
2938
+ }], showHeader$: [{
2905
2939
  type: Input
2906
2940
  }], showHeader: [{
2907
2941
  type: Input
@@ -3387,16 +3421,6 @@ class SelectionColumnModel extends ColumnModel {
3387
3421
  }
3388
3422
  }
3389
3423
 
3390
- // TODO: Merge MarsUi FilterRegistry into this.
3391
- class TableFilterModel extends GarbageCollector {
3392
- }
3393
- TrackExternal.useDelegate(TableFilterModel, options => {
3394
- return DelegateProxyHandler.create("AbstractTableFilterModel", b => {
3395
- b.forProperty("rowFilter$", () => new DelegatingValueModel());
3396
- b.forProperty("highlightText$", () => new DelegatingValueModel());
3397
- });
3398
- });
3399
-
3400
3424
  var DefaultArrayFormatter = ColumnTextSearchFormatter.DefaultArrayFormatter;
3401
3425
  var DefaultValueFormatter = ColumnTextSearchFormatter.DefaultValueFormatter;
3402
3426
  // export type StringPropertiesOf<T> = { [K in keyof T]: T[K] extends string ? K : never }[keyof T];
@@ -3410,45 +3434,36 @@ class RowClass {
3410
3434
  class AbstractTableModel extends GarbageCollector {
3411
3435
  constructor() {
3412
3436
  super();
3413
- this._rawDataSource = this.registerDisposable(new DelegatingListModel());
3437
+ this._dataSource$ = this.registerDisposable(new DelegatingListModel());
3414
3438
  this._visibleRows$ = this.registerDisposable(new DelegatingListModel());
3415
3439
  this._columnList = this.registerDisposable(new ColumnListModel());
3416
3440
  this._editorSessions = new MutableListModel();
3417
3441
  this.rowClassNamePredicates = [];
3418
3442
  this.rowClickListeners = new EventListenerList();
3419
3443
  this._createForm = (row) => new DirtyTrackingForm();
3420
- this.trackBy = (index, item) => {
3421
- return this.identityOf ? this.identityOf(item) : index;
3422
- };
3423
3444
  const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
3424
3445
  this._rowsBeingEdited$ = new MutableListModel([], {
3425
3446
  identifiedWith: row => this.identityOf(row)
3426
3447
  });
3427
3448
  this._editorSessionByRowId = chain(this._editorSessions).indexBy("rowId");
3428
3449
  this.editing$ = chain(this._editorSessions).count().isGreaterThan(0);
3429
- this._filteredRows$ = chain(this._rawDataSource)
3430
- .reduceToList(items => {
3431
- const filter = this.filterModel.rowFilter$.value; // filter can be null
3432
- return !filter ? items : items.filter(item => filter.matches(item, this.columns.value));
3433
- }, {
3434
- dependsOn: [this.filterModel.rowFilter$, this.columns]
3435
- })
3436
- .replaceAll(this.rowsBeingEdited$)
3437
- .identifiedWith(this._rawDataSource.identityOf);
3438
- this._visibleRows$.setDelegate(this._filteredRows$);
3450
+ this.textSearchPredicate$ = chain(this.visibleColumns).reduce(columns => {
3451
+ return (row, regex) => {
3452
+ return (!regex || !!columns.find(c => regex.test(c.getSearchTextFor(row))));
3453
+ };
3454
+ });
3439
3455
  this.firstEditableColumn$ = chain(this.columns).select(c => c.hasEditorPortal()).first();
3440
3456
  this.firstVisibleColumn$ = chain(this._columnList).first();
3441
3457
  this.lastVisibleColumn$ = chain(this._columnList).last();
3442
3458
  this.rowSelectionDisabledOnAllColumns$ = chain(this._columnList).select(column => column.isRowSelectionEnabled()).count().equals(0);
3443
- when(chain(this._rawDataSource).first()).becomesTruthy(it => {
3444
- if (it === this.identityOf(it)) {
3445
- console.warn("Table model identity function is using reference equality. This can cause lots of table re-rendering", {
3446
- row: it
3447
- });
3448
- }
3449
- }, { once: true });
3450
3459
  }
3451
- initialise(injector) {
3460
+ /**
3461
+ * Todo: make this force one table at a time
3462
+ * @param injector
3463
+ * @param identityOf
3464
+ * @param rest
3465
+ */
3466
+ bindToTable(injector, identityOf) {
3452
3467
  // not sure if I should define these at the module level or not...
3453
3468
  const customInjector = Injector.create({
3454
3469
  providers: [
@@ -3458,19 +3473,44 @@ class AbstractTableModel extends GarbageCollector {
3458
3473
  parent: injector
3459
3474
  });
3460
3475
  this.columns.value.forEach(c => c.initialise(customInjector));
3476
+ this.identityOf = identityOf;
3461
3477
  }
3462
3478
  get visibleRows$() {
3463
3479
  return this._visibleRows$.readonly;
3464
3480
  }
3465
- setDataSource(sourceOfTruth) {
3466
- this._rawDataSource.setDelegate(sourceOfTruth);
3467
- }
3468
- identityOf(row) {
3469
- return this._rawDataSource.identityOf(row);
3470
- }
3471
3481
  get rowsBeingEdited$() {
3472
3482
  return this._rowsBeingEdited$.readonly;
3473
3483
  }
3484
+ startEditSession(row) {
3485
+ const rowId = this.identityOf(row);
3486
+ if (this._rowsBeingEdited$.query().indexOf(row) > -1) {
3487
+ return lang$1.illegalState(`Row with id=${rowId} already being edited`);
3488
+ }
3489
+ // todo: pass the factories to the edit session so we can make the whole lot pluggable?
3490
+ const form = this._createForm(row);
3491
+ const saveCommand = this.saveCommandFactory.create(form, { disposedWith: this });
3492
+ const editSession = new EditSession(rowId, row, form, saveCommand);
3493
+ const { when } = Dsl.disposeWith(editSession);
3494
+ when(editSession.liveRowValue$).changes((editedValue) => {
3495
+ this._rowsBeingEdited$.replaceOrPush(editedValue);
3496
+ }, { initialValue: "triggerChangeUnlessNil" });
3497
+ this._editorSessions.push(editSession);
3498
+ editSession.onDispose(() => {
3499
+ this._rowsBeingEdited$.remove(editSession.liveRowValue$.value);
3500
+ this._editorSessions.remove(editSession);
3501
+ });
3502
+ return editSession;
3503
+ }
3504
+ getEditSessionFor(row) {
3505
+ return this._editorSessionByRowId.get(this.identityOf(row));
3506
+ }
3507
+ cancelAllEditorSessions() {
3508
+ this._editorSessions.runInTransaction((draft) => {
3509
+ this._rowsBeingEdited$.runInTransaction(() => {
3510
+ draft.value.forEach(session => session.dispose());
3511
+ });
3512
+ });
3513
+ }
3474
3514
  get columns() {
3475
3515
  return this._columnList.allColumns$;
3476
3516
  }
@@ -3525,52 +3565,15 @@ class AbstractTableModel extends GarbageCollector {
3525
3565
  });
3526
3566
  return classNames;
3527
3567
  }
3528
- useFormFactory(factory) {
3529
- this._createForm = factory;
3530
- return this;
3531
- }
3532
3568
  addColumn(column, index) {
3533
3569
  return this._columnList.addColumn(column, index);
3534
3570
  }
3535
- // removeColumn(column: ColumnModel<Row>) {
3536
- //
3537
- // }
3538
3571
  columnTextProperties(columnTextProperties) {
3539
3572
  this._columnTextPropertiesLookup = columnTextProperties;
3540
3573
  }
3541
3574
  getColumnTextProperties(columnId) {
3542
3575
  return this._columnTextPropertiesLookup ? this._columnTextPropertiesLookup[columnId] : undefined;
3543
3576
  }
3544
- startEditSession(row) {
3545
- const rowId = this.identityOf(row);
3546
- if (this._rowsBeingEdited$.query().indexOf(row) > -1) {
3547
- return lang.illegalState(`Row with id=${rowId} already being edited`);
3548
- }
3549
- // todo: pass the factories to the edit session so we can make the whole lot pluggable?
3550
- const form = this._createForm(row);
3551
- const saveCommand = this.saveCommandFactory.create(form, { disposedWith: this });
3552
- const editSession = new EditSession(rowId, row, form, saveCommand);
3553
- const { when } = Dsl.disposeWith(editSession);
3554
- when(editSession.liveRowValue$).changes((editedValue) => {
3555
- this._rowsBeingEdited$.replaceOrPush(editedValue);
3556
- }, { initialValue: "triggerChangeUnlessNil" });
3557
- this._editorSessions.push(editSession);
3558
- editSession.onDispose(() => {
3559
- this._rowsBeingEdited$.remove(editSession.liveRowValue$.value);
3560
- this._editorSessions.remove(editSession);
3561
- });
3562
- return editSession;
3563
- }
3564
- getEditSessionFor(row) {
3565
- return this._editorSessionByRowId.get(this.identityOf(row));
3566
- }
3567
- cancelAllEditorSessions() {
3568
- this._editorSessions.runInTransaction((draft) => {
3569
- this._rowsBeingEdited$.runInTransaction(() => {
3570
- draft.value.forEach(session => session.dispose());
3571
- });
3572
- });
3573
- }
3574
3577
  isRowSelectionEnabledFor(column) {
3575
3578
  return this.isRowSelectionEnabled() && column.isRowSelectionEnabled();
3576
3579
  }
@@ -3600,14 +3603,17 @@ class AbstractTableModel extends GarbageCollector {
3600
3603
  if (this.isRowSelectionEnabledFor(columnModel)) {
3601
3604
  this.selectRow(row);
3602
3605
  }
3606
+ else {
3607
+ // console.log({
3608
+ // hasEnabledUserSelectionModel: this.hasUserSelectionModelThatIsEnabled(),
3609
+ // allSelectionDisabled: this.rowSelectionDisabledOnAllColumns$.value,
3610
+ // rowSelectionEnabled: this.isRowSelectionEnabled(),
3611
+ // rowSelectionEnabledForColumn: columnModel.isRowSelectionEnabled()
3612
+ // })
3613
+ }
3603
3614
  this.rowClickListeners.fire(l => l(row));
3604
3615
  }
3605
3616
  }
3606
- __decorate([
3607
- TrackExternal() // hack instead of creating a delegating one from scratch.
3608
- ,
3609
- __metadata("design:type", TableFilterModel)
3610
- ], AbstractTableModel.prototype, "filterModel", void 0);
3611
3617
  TrackExternal.oneTimeBinding(AbstractTableModel);
3612
3618
 
3613
3619
  class TableCellComponent extends DisposableComponent {
@@ -3791,6 +3797,59 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
3791
3797
  args: [MatMenuTrigger]
3792
3798
  }] } });
3793
3799
 
3800
+ class TableFilterModel extends GarbageCollector {
3801
+ constructor(options) {
3802
+ super();
3803
+ this._source$ = this.registerDisposable(new DelegatingListModel());
3804
+ this._rowPredicate$ = this.registerDisposable(new DelegatingValueModel());
3805
+ this._searchText$ = this.registerDisposable(new DelegatingValueModel());
3806
+ this._textSearchPredicate$ = this.registerDisposable(new DelegatingValueModel());
3807
+ this.inUpdate = new Guard();
3808
+ options.disposedWith.registerDisposable(this);
3809
+ this.useSearchText(options.searchText$);
3810
+ this.useRowPredicate(options.predicate$);
3811
+ const { chain } = Dsl.disposeWith(this);
3812
+ const textSearchRegex$ = chain(this._searchText$).map(text => {
3813
+ return isEmpty$1(text) ? undefined : new RegExp(escapeStringRegexp(text), "i");
3814
+ }, { allowNil: true });
3815
+ this._rowPredicate = chain(this._rowPredicate$)
3816
+ .map(predicate => {
3817
+ const regex = textSearchRegex$.value;
3818
+ const textSearchPredicate = this._textSearchPredicate$.value;
3819
+ return (row) => (!predicate || predicate(row)) && (!regex || !textSearchPredicate || textSearchPredicate(row, regex));
3820
+ }, {
3821
+ allowNil: true,
3822
+ dependsOn: [textSearchRegex$, this._textSearchPredicate$],
3823
+ postponeWhile: this.inUpdate
3824
+ });
3825
+ this.filteredRows$ = chain(this._source$).select(row => {
3826
+ return this._rowPredicate.value(row);
3827
+ }, { dependsOn: this._rowPredicate });
3828
+ }
3829
+ get highlightText$() {
3830
+ return this._searchText$.readonly;
3831
+ }
3832
+ useSearchText(searchText$) {
3833
+ this._searchText$.setDelegate(searchText$);
3834
+ }
3835
+ useRowPredicate(rowPredicate$) {
3836
+ this._rowPredicate$.setDelegate(rowPredicate$);
3837
+ }
3838
+ bindToTable(source$, textSearchPredicate$) {
3839
+ this.inUpdate.whileTrue(() => {
3840
+ this._source$.setDelegate(source$);
3841
+ this._textSearchPredicate$.setDelegate(textSearchPredicate$);
3842
+ });
3843
+ return Disposable.disposableThatRuns(() => {
3844
+ this.inUpdate.whileTrue(() => {
3845
+ this._source$.setDelegate(undefined);
3846
+ this._textSearchPredicate$.setDelegate(undefined);
3847
+ });
3848
+ });
3849
+ }
3850
+ }
3851
+ TrackExternal.oneTimeBinding(TableFilterModel);
3852
+
3794
3853
  /**
3795
3854
  * Example:
3796
3855
  * @example
@@ -3871,37 +3930,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
3871
3930
  * });
3872
3931
  */
3873
3932
  class TableModel extends AbstractTableModel {
3874
- constructor(sourceOfTruth, builder) {
3933
+ constructor(builder) {
3875
3934
  super();
3876
- this._pageSize = new MutableValueModel();
3877
- if (builder) {
3935
+ if (isFunction$1(builder)) {
3878
3936
  builder(this);
3879
3937
  }
3880
- if (sourceOfTruth) {
3881
- this.setDataSource(sourceOfTruth);
3882
- }
3883
- }
3884
- get pageController() {
3885
- return this._pageController;
3886
- }
3887
- enablePaging() {
3888
- if (isNil$1(this.pageController)) {
3889
- const pagedListModel = this.registerDisposable(PagedListModel.create(this._visibleRows$.getDelegate(), this._pageSize));
3890
- this._visibleRows$.setDelegate(pagedListModel);
3891
- this._pageController = pagedListModel.pageController;
3892
- }
3893
3938
  }
3894
- // TODO: the selection model needs the option to limit selecction to the filtered items. Currently the selection remains
3895
- // when the item is no longer in the visible list of items.
3896
- // addSingleSelectionColumn<Id>(options: SingleSelectionModel.Options<Row, Id>, showSelectionColumn?: ValueModel<boolean> | boolean): SingleSelectionModel<Row> {
3897
- // return null;
3898
- // }
3899
3939
  addSelectionColumn(selectionModel, showSelectionColumn) {
3900
3940
  return this._addSelectionColumn(selectionModel, showSelectionColumn);
3901
3941
  }
3902
- updatePageSize(count) {
3903
- this._pageSize.value = count;
3904
- }
3905
3942
  }
3906
3943
 
3907
3944
  class PaginatorComponent extends DisposableComponent {
@@ -4085,7 +4122,11 @@ class TableBodyComponent extends ResizeAwareComponent {
4085
4122
  }
4086
4123
  }
4087
4124
  TableBodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: TableBodyComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
4088
- TableBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: TableBodyComponent, selector: "aup-table-body", inputs: { tableModel: "tableModel", showHeader$: "showHeader$", showHeader: "showHeader", enableScrolling: "enableScrolling" }, outputs: { visibleRowCount: "visibleRowCount" }, host: { properties: { "class.enable-scrolling": "this.enableScrolling", "class": "this.baseCssClass", "class.hide-header": "this.hideHeader" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"scroll-container\">\n <table mat-table [dataSource]=\"tableModel.visibleRows$.value\" [trackBy]=\"tableModel.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.isCursorEnabled(column)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n >\n <aup-table-cell [column]=\"column\"\n [row]=\"row\"\n [tableModel]=\"tableModel\"\n [editSession]=\"tableModel.getEditSessionFor(row)\"\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.isHoverEnabled()\"\n [attr.aup-row-id]=\"tableModel.trackBy(i, row)\"\n ></tr>\n\n </table>\n</div>\n\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host table{width:100%}:host.enable-scrolling{min-height:0}:host.enable-scrolling .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: "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.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i2$8.MatCell, selector: "mat-cell, td[mat-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: TableCellComponent, selector: "aup-table-cell", inputs: ["row", "column", "editSession", "tableModel"] }, { kind: "component", type: TableHeaderCellComponent, selector: "aup-table-header-cell", inputs: ["column"] }] });
4125
+ TableBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: TableBodyComponent, selector: "aup-table-body", inputs: { data$: "data$", tableModel: "tableModel", showHeader$: "showHeader$", showHeader: "showHeader", trackBy: "trackBy", enableScrolling: "enableScrolling" }, outputs: { visibleRowCount: "visibleRowCount" }, host: { properties: { "class.enable-scrolling": "this.enableScrolling", "class": "this.baseCssClass", "class.hide-header": "this.hideHeader" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"scroll-container\">\n <table mat-table [dataSource]=\"data$.value\" [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.isCursorEnabled(column)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n >\n <aup-table-cell [column]=\"column\"\n [row]=\"row\"\n [tableModel]=\"tableModel\"\n [editSession]=\"tableModel.getEditSessionFor(row)\"\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.isHoverEnabled()\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n </table>\n</div>\n\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host table{width:100%}:host.enable-scrolling{min-height:0}:host.enable-scrolling .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: "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.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i2$8.MatCell, selector: "mat-cell, td[mat-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: TableCellComponent, selector: "aup-table-cell", inputs: ["row", "column", "editSession", "tableModel"] }, { kind: "component", type: TableHeaderCellComponent, selector: "aup-table-header-cell", inputs: ["column"] }] });
4126
+ __decorate([
4127
+ TrackExternal(),
4128
+ __metadata("design:type", ListModel)
4129
+ ], TableBodyComponent.prototype, "data$", void 0);
4089
4130
  __decorate([
4090
4131
  TrackExternal(),
4091
4132
  __metadata("design:type", AbstractTableModel)
@@ -4100,8 +4141,10 @@ __decorate([
4100
4141
  ], TableBodyComponent.prototype, "showHeader", void 0);
4101
4142
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: TableBodyComponent, decorators: [{
4102
4143
  type: Component,
4103
- args: [{ selector: "aup-table-body", template: "<div class=\"scroll-container\">\n <table mat-table [dataSource]=\"tableModel.visibleRows$.value\" [trackBy]=\"tableModel.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.isCursorEnabled(column)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n >\n <aup-table-cell [column]=\"column\"\n [row]=\"row\"\n [tableModel]=\"tableModel\"\n [editSession]=\"tableModel.getEditSessionFor(row)\"\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.isHoverEnabled()\"\n [attr.aup-row-id]=\"tableModel.trackBy(i, row)\"\n ></tr>\n\n </table>\n</div>\n\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host table{width:100%}:host.enable-scrolling{min-height:0}:host.enable-scrolling .scroll-container{flex:1;flex-basis:0;overflow-y:auto;display:flex;flex-direction:column;align-items:stretch}\n"] }]
4104
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { tableModel: [{
4144
+ args: [{ selector: "aup-table-body", template: "<div class=\"scroll-container\">\n <table mat-table [dataSource]=\"data$.value\" [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.isCursorEnabled(column)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n >\n <aup-table-cell [column]=\"column\"\n [row]=\"row\"\n [tableModel]=\"tableModel\"\n [editSession]=\"tableModel.getEditSessionFor(row)\"\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.isHoverEnabled()\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n </table>\n</div>\n\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host table{width:100%}:host.enable-scrolling{min-height:0}:host.enable-scrolling .scroll-container{flex:1;flex-basis:0;overflow-y:auto;display:flex;flex-direction:column;align-items:stretch}\n"] }]
4145
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { data$: [{
4146
+ type: Input
4147
+ }], tableModel: [{
4105
4148
  type: Input
4106
4149
  }], showHeader$: [{
4107
4150
  type: Input
@@ -4109,6 +4152,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
4109
4152
  type: Input
4110
4153
  }], visibleRowCount: [{
4111
4154
  type: Output
4155
+ }], trackBy: [{
4156
+ type: Input
4112
4157
  }], enableScrolling: [{
4113
4158
  type: Input
4114
4159
  }, {
@@ -4183,36 +4228,100 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
4183
4228
  * }
4184
4229
  */
4185
4230
  class TableComponent extends AbstractTableComponent {
4186
- constructor() {
4187
- super(...arguments);
4231
+ constructor(injector) {
4232
+ super(injector);
4233
+ // enablePaging() {
4234
+ // if (isNil(this.pageController)) {
4235
+ // const pagedListModel = this.registerDisposable(PagedListModel.create(this._visibleRows$.getDelegate(), this._pageSize));
4236
+ // this._visibleRows$.setDelegate(pagedListModel);
4237
+ // this._pageController = pagedListModel.pageController;
4238
+ // }
4239
+ // }
4188
4240
  this._footerContentAdded = false;
4241
+ this._filteredRows$ = this.registerDisposable(new DelegatingListModel());
4242
+ this._pageSize = new MutableValueModel();
4243
+ const { when } = Dsl.disposeWith(this);
4244
+ this.onDispose(() => this.disposeOfPagedListModel());
4245
+ when(this.enablePaging$).changes(enabled => this.configurePaging(enabled));
4246
+ }
4247
+ ngOnInit() {
4248
+ super.ngOnInit();
4249
+ if (this.filterModel) {
4250
+ this.registerDisposable(this.filterModel.bindToTable(this._sourceData$, this.getModel().textSearchPredicate$));
4251
+ this.highlightText$.setDelegate(this.filterModel.highlightText$);
4252
+ this._filteredRows$.setDelegate(this.filterModel.filteredRows$);
4253
+ }
4254
+ else {
4255
+ this._filteredRows$.setDelegate(this._sourceData$);
4256
+ }
4257
+ this.configurePaging(this.enablePaging$.value);
4189
4258
  }
4190
4259
  getModel() {
4191
4260
  return this.tableModel;
4192
4261
  }
4262
+ get pageController() {
4263
+ // TODO: need to support external page controllers if the paging occurs to our primary data source.
4264
+ return this.pagedListModel.pageController;
4265
+ }
4266
+ configurePaging(enable) {
4267
+ if (enable) {
4268
+ if (!this.pagedListModel) {
4269
+ this.pagedListModel = PagedListModel.create(this._filteredRows$, this._pageSize);
4270
+ }
4271
+ this._visibleRows$.setDelegate(this.pagedListModel);
4272
+ }
4273
+ else {
4274
+ this.disposeOfPagedListModel();
4275
+ this._visibleRows$.setDelegate(this._filteredRows$);
4276
+ }
4277
+ }
4278
+ disposeOfPagedListModel() {
4279
+ if (this.pagedListModel) {
4280
+ this.pagedListModel.dispose();
4281
+ this.pagedListModel = null;
4282
+ }
4283
+ }
4193
4284
  footerContentChanged($event) {
4194
4285
  // console.log($event);
4195
4286
  this._footerContentAdded = true;
4196
4287
  }
4197
4288
  //@Trace()
4198
4289
  updatePageSize(count) {
4199
- this.tableModel.updatePageSize(count);
4290
+ this._pageSize.value = count;
4200
4291
  }
4201
4292
  }
4202
- TableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: TableComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
4203
- TableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: TableComponent, selector: "aup-table", inputs: { tableModel: "tableModel" }, providers: [
4293
+ TableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: TableComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
4294
+ TableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: TableComponent, selector: "aup-table", inputs: { tableModel: "tableModel", filterModel: "filterModel", enablePaging$: "enablePaging$", enablePaging: "enablePaging" }, providers: [
4204
4295
  { provide: AbstractTableComponent, useExisting: TableComponent }
4205
- ], usesInheritance: true, ngImport: i0, template: "<aup-table-body [tableModel]=\"tableModel\"\n [showHeader$]=\"showHeader$\"\n [enableScrolling]=\"enableScrolling\"\n (visibleRowCount)=\"updatePageSize($event)\"\n [aupHighlightTextModel]=\"tableModel.filterModel.highlightText$\"\n></aup-table-body>\n<section class=\"table-footer\">\n <div class=\"footer-content\"><ng-content select=\"[footer]\"></ng-content></div>\n <aup-paginator *ngIf=\"tableModel.pageController\" [pageController]=\"tableModel.pageController\"></aup-paginator>\n</section>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}aup-table-body{flex:1}.table-footer{display:flex;flex-direction:row;align-items:center}.table-footer .footer-content{flex:1}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: HighlightTextModelDirective, selector: "[aupHighlightTextModel]", inputs: ["aupHighlightTextModel"] }, { kind: "component", type: PaginatorComponent, selector: "aup-paginator", inputs: ["pageController"] }, { kind: "component", type: TableBodyComponent, selector: "aup-table-body", inputs: ["tableModel", "showHeader$", "showHeader", "enableScrolling"], outputs: ["visibleRowCount"] }] });
4296
+ ], usesInheritance: true, ngImport: i0, template: "<aup-table-body [data$]=\"visibleRows$\"\n [tableModel]=\"tableModel\"\n [showHeader$]=\"showHeader$\"\n [enableScrolling]=\"enableScrolling\"\n [trackBy]=\"trackBy\"\n (visibleRowCount)=\"updatePageSize($event)\"\n [aupHighlightTextModel]=\"highlightText$\"\n></aup-table-body>\n<section class=\"table-footer\">\n <div class=\"footer-content\"><ng-content select=\"[footer]\"></ng-content></div>\n <aup-paginator *ngIf=\"enablePaging$.value\" [pageController]=\"pageController\"></aup-paginator>\n</section>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}aup-table-body{flex:1}.table-footer{display:flex;flex-direction:row;align-items:center}.table-footer .footer-content{flex:1}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: HighlightTextModelDirective, selector: "[aupHighlightTextModel]", inputs: ["aupHighlightTextModel"] }, { kind: "component", type: PaginatorComponent, selector: "aup-paginator", inputs: ["pageController"] }, { kind: "component", type: TableBodyComponent, selector: "aup-table-body", inputs: ["data$", "tableModel", "showHeader$", "showHeader", "trackBy", "enableScrolling"], outputs: ["visibleRowCount"] }] });
4206
4297
  __decorate([
4207
4298
  TrackExternal(),
4208
4299
  __metadata("design:type", TableModel)
4209
4300
  ], TableComponent.prototype, "tableModel", void 0);
4301
+ __decorate([
4302
+ TrackExternal(),
4303
+ __metadata("design:type", TableFilterModel)
4304
+ ], TableComponent.prototype, "filterModel", void 0);
4305
+ __decorate([
4306
+ TrackExternal(),
4307
+ __metadata("design:type", ValueModel)
4308
+ ], TableComponent.prototype, "enablePaging$", void 0);
4309
+ __decorate([
4310
+ StoreInValueModel("enablePaging$"),
4311
+ __metadata("design:type", Boolean)
4312
+ ], TableComponent.prototype, "enablePaging", void 0);
4210
4313
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: TableComponent, decorators: [{
4211
4314
  type: Component,
4212
4315
  args: [{ selector: 'aup-table', providers: [
4213
4316
  { provide: AbstractTableComponent, useExisting: TableComponent }
4214
- ], template: "<aup-table-body [tableModel]=\"tableModel\"\n [showHeader$]=\"showHeader$\"\n [enableScrolling]=\"enableScrolling\"\n (visibleRowCount)=\"updatePageSize($event)\"\n [aupHighlightTextModel]=\"tableModel.filterModel.highlightText$\"\n></aup-table-body>\n<section class=\"table-footer\">\n <div class=\"footer-content\"><ng-content select=\"[footer]\"></ng-content></div>\n <aup-paginator *ngIf=\"tableModel.pageController\" [pageController]=\"tableModel.pageController\"></aup-paginator>\n</section>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}aup-table-body{flex:1}.table-footer{display:flex;flex-direction:row;align-items:center}.table-footer .footer-content{flex:1}\n"] }]
4215
- }], propDecorators: { tableModel: [{
4317
+ ], template: "<aup-table-body [data$]=\"visibleRows$\"\n [tableModel]=\"tableModel\"\n [showHeader$]=\"showHeader$\"\n [enableScrolling]=\"enableScrolling\"\n [trackBy]=\"trackBy\"\n (visibleRowCount)=\"updatePageSize($event)\"\n [aupHighlightTextModel]=\"highlightText$\"\n></aup-table-body>\n<section class=\"table-footer\">\n <div class=\"footer-content\"><ng-content select=\"[footer]\"></ng-content></div>\n <aup-paginator *ngIf=\"enablePaging$.value\" [pageController]=\"pageController\"></aup-paginator>\n</section>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}aup-table-body{flex:1}.table-footer{display:flex;flex-direction:row;align-items:center}.table-footer .footer-content{flex:1}\n"] }]
4318
+ }], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { tableModel: [{
4319
+ type: Input
4320
+ }], filterModel: [{
4321
+ type: Input
4322
+ }], enablePaging$: [{
4323
+ type: Input
4324
+ }], enablePaging: [{
4216
4325
  type: Input
4217
4326
  }] } });
4218
4327
 
@@ -4452,80 +4561,6 @@ var DecoratedTreeNode;
4452
4561
  DecoratedTreeNode.Decorator = Decorator;
4453
4562
  })(DecoratedTreeNode || (DecoratedTreeNode = {}));
4454
4563
 
4455
- class FlattenedTreeListModel extends ComputedListModel {
4456
- constructor(source, childRef, expansionModel) {
4457
- super(source, {
4458
- initialValue: [],
4459
- identifiedWith: row => source.identityOf(row)
4460
- });
4461
- this.source = source;
4462
- this.childRef = childRef;
4463
- this.expansionModel = expansionModel;
4464
- this.trackSource(expansionModel.isExpandedPredicate);
4465
- }
4466
- compute(values) {
4467
- const result = [];
4468
- values.forEach(rootNode => {
4469
- return this.addNodeAndVisibleChildren(DecoratedTreeNode.decorateRoot(rootNode, this.childRef), result);
4470
- });
4471
- return result;
4472
- }
4473
- addNodeAndVisibleChildren(node, result) {
4474
- result.push(node);
4475
- const decorator = node[treeNodeDecorator];
4476
- if (decorator.hasChildren() && !this.expansionModel.isCollapsed(node)) {
4477
- decorator.children.forEach(child => this.addNodeAndVisibleChildren(child, result));
4478
- }
4479
- }
4480
- }
4481
-
4482
- class TreeExpansionModel {
4483
- constructor(identityOf) {
4484
- this.identityOf = identityOf;
4485
- this.collapsedIds = new Set();
4486
- this._isExpandedPredicate = new MutableValueModel(() => true);
4487
- this.updatePredicate();
4488
- }
4489
- get isExpandedPredicate() {
4490
- return this._isExpandedPredicate.readonly;
4491
- }
4492
- // @Trace()
4493
- expand(node) {
4494
- if (this.isCollapsed(node)) {
4495
- this.collapsedIds.delete(this.identityOf(node));
4496
- this.updatePredicate();
4497
- }
4498
- }
4499
- // @Trace()
4500
- collapse(node) {
4501
- if (!this.isCollapsed(node)) {
4502
- this.collapsedIds.add(this.identityOf(node));
4503
- this.updatePredicate();
4504
- }
4505
- }
4506
- canExpand(node) {
4507
- return DecoratedTreeNode.getDecorator(node).hasChildren() && this.isCollapsed(node);
4508
- }
4509
- canCollapse(node) {
4510
- return DecoratedTreeNode.getDecorator(node).hasChildren() && !this.isCollapsed(node);
4511
- }
4512
- isCollapsed(node) {
4513
- return this.collapsedIds.has(this.identityOf(node));
4514
- }
4515
- isExpanded(node) {
4516
- return !this.isCollapsed(node);
4517
- }
4518
- ensureAncestorsAndSelfVisible(node) {
4519
- DecoratedTreeNode.getDecorator(node).ancestors()
4520
- .map(a => this.identityOf(node))
4521
- .forEach(id => this.collapsedIds.delete(id));
4522
- this.updatePredicate();
4523
- }
4524
- updatePredicate() {
4525
- this._isExpandedPredicate.value = (node) => !this.collapsedIds.has(this.identityOf(node));
4526
- }
4527
- }
4528
-
4529
4564
  class TreeLabelColumnModel extends ColumnModel {
4530
4565
  constructor(columnId, textPropertiesProvider, expansionModel) {
4531
4566
  super(columnId, textPropertiesProvider);
@@ -4576,16 +4611,22 @@ class TreeLabelColumnModel extends ColumnModel {
4576
4611
  // - Add a predicate to check default expansion (i.e. has children of a certain type)
4577
4612
  //
4578
4613
  class TreeTableModel extends AbstractTableModel {
4579
- constructor(source, childAccessor, builder) {
4614
+ constructor(childAccessor, builder) {
4580
4615
  super();
4581
- this.treeExpansionModel = new TreeExpansionModel(row => this.identityOf(row));
4616
+ this._isExpandedPredicate$ = this.registerDisposable(new DelegatingValueModel());
4582
4617
  if (builder)
4583
4618
  builder(this);
4584
- const childExtractor = isFunction(childAccessor) ? childAccessor : row => row[childAccessor];
4585
- this.flattenedDataSource = this.registerDisposable(new FlattenedTreeListModel(source, childExtractor, this.treeExpansionModel));
4586
- this.setDataSource(this.flattenedDataSource);
4619
+ this.childExtractor = isFunction(childAccessor) ? childAccessor : row => row[childAccessor];
4587
4620
  this.addRowClass('aup-node-collapsed', row => this.isCollapsed(row));
4588
4621
  }
4622
+ get isExpandedPredicate$() {
4623
+ return this._isExpandedPredicate$.readonly;
4624
+ }
4625
+ useExpansionModel(expansionModel) {
4626
+ this.treeExpansionModel = expansionModel;
4627
+ // TODO: Move all the expansion model stuff out of here and have things use the expansion model directly
4628
+ this._isExpandedPredicate$.setDelegate(this.treeExpansionModel.isExpandedPredicate$);
4629
+ }
4589
4630
  treeControlColumn(builder) {
4590
4631
  const columnId = 'tree-label';
4591
4632
  const column = new TreeLabelColumnModel(columnId, () => this.getColumnTextProperties(columnId), this);
@@ -4604,6 +4645,9 @@ class TreeTableModel extends AbstractTableModel {
4604
4645
  ensureAncestorsAndSelfVisible(node) {
4605
4646
  this.treeExpansionModel.ensureAncestorsAndSelfVisible(node);
4606
4647
  }
4648
+ isExpanded(row) {
4649
+ return this.treeExpansionModel.isExpanded(row);
4650
+ }
4607
4651
  addSelectionColumn(selectionModel, showSelectionColumn) {
4608
4652
  return this._addSelectionColumn(selectionModel, showSelectionColumn);
4609
4653
  }
@@ -4673,15 +4717,15 @@ class TreeLabelCellRendererComponent extends DisposableComponent {
4673
4717
  const { chain } = Dsl.disposeWith(this);
4674
4718
  this.canExpand = chain(this.nodeModel).map(node => {
4675
4719
  return DecoratedTreeNode.getDecorator(node).hasChildren() && this.treeTableModel.isCollapsed(node);
4676
- }, { dependsOn: this.treeTableModel.treeExpansionModel.isExpandedPredicate });
4720
+ }, { dependsOn: this.treeTableModel.isExpandedPredicate$ });
4677
4721
  this.canCollapse = chain(this.nodeModel).map(node => {
4678
4722
  return DecoratedTreeNode.getDecorator(node).hasChildren() && !this.treeTableModel.isCollapsed(node);
4679
- }, { dependsOn: this.treeTableModel.treeExpansionModel.isExpandedPredicate });
4723
+ }, { dependsOn: this.treeTableModel.isExpandedPredicate$ });
4680
4724
  this.iconModel = chain(this.nodeModel).map(node => {
4681
- const expanded = this.treeTableModel.treeExpansionModel.isExpanded(this.node);
4725
+ const expanded = this.treeTableModel.isExpanded(this.node);
4682
4726
  const iconFactory = this.iconFactory ?? TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY;
4683
4727
  return iconFactory(node, expanded, TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY(node, expanded, undefined));
4684
- }, { dependsOn: this.treeTableModel.treeExpansionModel.isExpandedPredicate });
4728
+ }, { dependsOn: this.treeTableModel.isExpandedPredicate$ });
4685
4729
  }
4686
4730
  get isRoot() {
4687
4731
  return DecoratedTreeNode.getDecorator(this.node).isRoot();
@@ -4734,6 +4778,101 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
4734
4778
  };
4735
4779
  })(TreeLabelCellRendererComponent || (TreeLabelCellRendererComponent = {}));
4736
4780
 
4781
+ class FlattenedTreeListModel extends ComputedListModel {
4782
+ constructor(source, childRef, expansionModel) {
4783
+ super(source, {
4784
+ initialValue: [],
4785
+ identifiedWith: row => source.identityOf(row)
4786
+ });
4787
+ this.source = source;
4788
+ this.childRef = childRef;
4789
+ this.expansionModel = expansionModel;
4790
+ this.trackSource(expansionModel.isExpandedPredicate$);
4791
+ }
4792
+ compute(values) {
4793
+ const result = [];
4794
+ values.forEach(rootNode => {
4795
+ return this.addNodeAndVisibleChildren(DecoratedTreeNode.decorateRoot(rootNode, this.childRef), result);
4796
+ });
4797
+ return result;
4798
+ }
4799
+ addNodeAndVisibleChildren(node, result) {
4800
+ result.push(node);
4801
+ const decorator = node[treeNodeDecorator];
4802
+ if (decorator.hasChildren() && !this.expansionModel.isCollapsed(node)) {
4803
+ decorator.children.forEach(child => this.addNodeAndVisibleChildren(child, result));
4804
+ }
4805
+ }
4806
+ }
4807
+
4808
+ // TODO: Merge the tree expansion model and flattened tree model together to work like TableFilterModels. I.e.
4809
+ // the client model code can use this classes filteredRows$ to limit selection.
4810
+ class TreeExpansionModel extends GarbageCollector {
4811
+ constructor(options) {
4812
+ super();
4813
+ this._source$ = this.registerDisposable(new DelegatingListModel());
4814
+ this.collapsedIds = new Set();
4815
+ this._isExpandedPredicate$ = new MutableValueModel(() => true);
4816
+ this._visibleRows$ = this.registerDisposable(new DelegatingListModel());
4817
+ options.disposedWith.registerDisposable(this);
4818
+ const { chain } = Dsl.disposeWith(this);
4819
+ this.updatePredicate();
4820
+ }
4821
+ bindToTable(source$, visibleRows$) {
4822
+ this._source$.setDelegate(source$);
4823
+ this._visibleRows$.setDelegate(visibleRows$);
4824
+ return Disposable.disposableThatRuns(() => {
4825
+ this._source$.setDelegate(undefined);
4826
+ this._visibleRows$.setDelegate(undefined);
4827
+ });
4828
+ }
4829
+ get visibleRows$() {
4830
+ return this._visibleRows$.readonly;
4831
+ }
4832
+ identityOf(row) {
4833
+ return this._source$.identityOf(row);
4834
+ }
4835
+ get isExpandedPredicate$() {
4836
+ return this._isExpandedPredicate$.readonly;
4837
+ }
4838
+ // @Trace()
4839
+ expand(node) {
4840
+ if (this.isCollapsed(node)) {
4841
+ this.collapsedIds.delete(this.identityOf(node));
4842
+ this.updatePredicate();
4843
+ }
4844
+ }
4845
+ // @Trace()
4846
+ collapse(node) {
4847
+ if (!this.isCollapsed(node)) {
4848
+ this.collapsedIds.add(this.identityOf(node));
4849
+ this.updatePredicate();
4850
+ }
4851
+ }
4852
+ canExpand(node) {
4853
+ return DecoratedTreeNode.getDecorator(node).hasChildren() && this.isCollapsed(node);
4854
+ }
4855
+ canCollapse(node) {
4856
+ return DecoratedTreeNode.getDecorator(node).hasChildren() && !this.isCollapsed(node);
4857
+ }
4858
+ isCollapsed(node) {
4859
+ return this.collapsedIds.has(this.identityOf(node));
4860
+ }
4861
+ isExpanded(node) {
4862
+ return !this.isCollapsed(node);
4863
+ }
4864
+ ensureAncestorsAndSelfVisible(node) {
4865
+ DecoratedTreeNode.getDecorator(node).ancestors()
4866
+ .map(a => this.identityOf(node))
4867
+ .forEach(id => this.collapsedIds.delete(id));
4868
+ this.updatePredicate();
4869
+ }
4870
+ updatePredicate() {
4871
+ this._isExpandedPredicate$.value = (node) => !this.collapsedIds.has(this.identityOf(node));
4872
+ }
4873
+ }
4874
+ TrackExternal.oneTimeBinding(TreeExpansionModel);
4875
+
4737
4876
  /**
4738
4877
  * Create your model:
4739
4878
  * @example
@@ -4798,25 +4937,43 @@ class TreeTableComponent extends AbstractTableComponent {
4798
4937
  constructor(injector) {
4799
4938
  super(injector);
4800
4939
  }
4940
+ ngOnInit() {
4941
+ super.ngOnInit();
4942
+ // TODO: clean up all this tightly coupled shit, should the expansion model really be separate from the tree model?
4943
+ if (!this.expansionModel) {
4944
+ this.expansionModel = new TreeExpansionModel({ disposedWith: this });
4945
+ }
4946
+ // Todo, turn this into a plain chain model
4947
+ const visibleRows$ = new FlattenedTreeListModel(this._sourceData$, row => this.treeTableModel.childExtractor(row), this.expansionModel);
4948
+ this.expansionModel.bindToTable(this._sourceData$, visibleRows$);
4949
+ this.treeTableModel.useExpansionModel(this.expansionModel);
4950
+ this._visibleRows$.setDelegate(visibleRows$);
4951
+ }
4801
4952
  getModel() {
4802
4953
  return this.treeTableModel;
4803
4954
  }
4804
4955
  }
4805
4956
  TreeTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: TreeTableComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
4806
- TreeTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: TreeTableComponent, selector: "aup-tree-table", inputs: { treeTableModel: "treeTableModel" }, providers: [
4957
+ TreeTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: TreeTableComponent, selector: "aup-tree-table", inputs: { treeTableModel: "treeTableModel", expansionModel: "expansionModel" }, providers: [
4807
4958
  { provide: AbstractTableComponent, useExisting: TreeTableComponent }
4808
- ], usesInheritance: true, ngImport: i0, template: "<aup-table-body [tableModel]=\"treeTableModel\"\n [showHeader$]=\"showHeader$\"\n [enableScrolling]=\"enableScrolling\"\n [aupHighlightTextModel]=\"treeTableModel.filterModel.highlightText$\"\n></aup-table-body>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host::ng-deep td.mat-cell{border-top-width:0!important;border-bottom-width:0!important}:host::ng-deep td.mat-column-tree-label,:host::ng-deep td.mat-column-tree-label{width:1px}:host::ng-deep aup-table-cell-renderer[column-id=tree-label]{padding-left:8px!important}:host::ng-deep aup-tree-label-cell-renderer{flex:1}aup-table-body{flex:1}\n"], dependencies: [{ kind: "directive", type: HighlightTextModelDirective, selector: "[aupHighlightTextModel]", inputs: ["aupHighlightTextModel"] }, { kind: "component", type: TableBodyComponent, selector: "aup-table-body", inputs: ["tableModel", "showHeader$", "showHeader", "enableScrolling"], outputs: ["visibleRowCount"] }] });
4959
+ ], usesInheritance: true, ngImport: i0, template: "<aup-table-body [data$]=\"visibleRows$\"\n [tableModel]=\"treeTableModel\"\n [showHeader$]=\"showHeader$\"\n [enableScrolling]=\"enableScrolling\"\n [aupHighlightTextModel]=\"highlightText$\"\n [trackBy]=\"trackBy\"\n></aup-table-body>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host::ng-deep td.mat-cell{border-top-width:0!important;border-bottom-width:0!important}:host::ng-deep td.mat-column-tree-label,:host::ng-deep td.mat-column-tree-label{width:1px}:host::ng-deep aup-table-cell-renderer[column-id=tree-label]{padding-left:8px!important}:host::ng-deep aup-tree-label-cell-renderer{flex:1}aup-table-body{flex:1}\n"], dependencies: [{ kind: "directive", type: HighlightTextModelDirective, selector: "[aupHighlightTextModel]", inputs: ["aupHighlightTextModel"] }, { kind: "component", type: TableBodyComponent, selector: "aup-table-body", inputs: ["data$", "tableModel", "showHeader$", "showHeader", "trackBy", "enableScrolling"], outputs: ["visibleRowCount"] }] });
4809
4960
  __decorate([
4810
4961
  TrackExternal(),
4811
4962
  __metadata("design:type", TreeTableModel)
4812
4963
  ], TreeTableComponent.prototype, "treeTableModel", void 0);
4964
+ __decorate([
4965
+ TrackExternal(),
4966
+ __metadata("design:type", TreeExpansionModel)
4967
+ ], TreeTableComponent.prototype, "expansionModel", void 0);
4813
4968
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: TreeTableComponent, decorators: [{
4814
4969
  type: Component,
4815
4970
  args: [{ selector: 'aup-tree-table', providers: [
4816
4971
  { provide: AbstractTableComponent, useExisting: TreeTableComponent }
4817
- ], template: "<aup-table-body [tableModel]=\"treeTableModel\"\n [showHeader$]=\"showHeader$\"\n [enableScrolling]=\"enableScrolling\"\n [aupHighlightTextModel]=\"treeTableModel.filterModel.highlightText$\"\n></aup-table-body>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host::ng-deep td.mat-cell{border-top-width:0!important;border-bottom-width:0!important}:host::ng-deep td.mat-column-tree-label,:host::ng-deep td.mat-column-tree-label{width:1px}:host::ng-deep aup-table-cell-renderer[column-id=tree-label]{padding-left:8px!important}:host::ng-deep aup-tree-label-cell-renderer{flex:1}aup-table-body{flex:1}\n"] }]
4972
+ ], template: "<aup-table-body [data$]=\"visibleRows$\"\n [tableModel]=\"treeTableModel\"\n [showHeader$]=\"showHeader$\"\n [enableScrolling]=\"enableScrolling\"\n [aupHighlightTextModel]=\"highlightText$\"\n [trackBy]=\"trackBy\"\n></aup-table-body>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host::ng-deep td.mat-cell{border-top-width:0!important;border-bottom-width:0!important}:host::ng-deep td.mat-column-tree-label,:host::ng-deep td.mat-column-tree-label{width:1px}:host::ng-deep aup-table-cell-renderer[column-id=tree-label]{padding-left:8px!important}:host::ng-deep aup-tree-label-cell-renderer{flex:1}aup-table-body{flex:1}\n"] }]
4818
4973
  }], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { treeTableModel: [{
4819
4974
  type: Input
4975
+ }], expansionModel: [{
4976
+ type: Input
4820
4977
  }] } });
4821
4978
 
4822
4979
  class VerticalFocusContainerComponent extends FocusContainerComponent {
@@ -8446,57 +8603,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
8446
8603
  }]
8447
8604
  }] });
8448
8605
 
8449
- class DefaultTableFilterModel extends TableFilterModel {
8450
- constructor(configuration) {
8451
- super();
8452
- this._rowPredicate$ = this.registerDisposable(new DelegatingValueModel());
8453
- this._searchText$ = this.registerDisposable(new DelegatingValueModel());
8454
- this.inUpdate = new Guard();
8455
- const { chain } = Dsl.disposeWith(this);
8456
- if (configuration) {
8457
- this.configure({ ...configuration, disposedWith: this });
8458
- }
8459
- const textSearchRegex$ = chain(this._searchText$).map(text => {
8460
- return isEmpty$1(text) ? undefined : new RegExp(escapeStringRegexp(text), "i");
8461
- }, { allowNil: true });
8462
- this._rowFilter$ = chain(this._rowPredicate$)
8463
- .map(predicate => {
8464
- const regex = textSearchRegex$.value;
8465
- return {
8466
- matches(row, columns) {
8467
- return (!predicate || predicate(row)) && (!regex || !!columns.find(c => regex.test(c.getSearchTextFor(row))));
8468
- }
8469
- };
8470
- }, {
8471
- allowNil: true,
8472
- dependsOn: textSearchRegex$,
8473
- postponeWhile: this.inUpdate
8474
- });
8475
- }
8476
- get rowFilter$() {
8477
- return this._rowFilter$.readonly;
8478
- }
8479
- get highlightText$() {
8480
- return this._searchText$.readonly;
8481
- }
8482
- configure(configuration) {
8483
- this.inUpdate.whileTrue(() => {
8484
- this._rowPredicate$.setDelegate(configuration.predicate$);
8485
- this._searchText$.setDelegate(configuration.searchText$);
8486
- });
8487
- const self = this;
8488
- configuration.disposedWith.registerDisposable({
8489
- dispose: () => self.clear()
8490
- });
8491
- }
8492
- clear() {
8493
- this.inUpdate.whileTrue(() => {
8494
- this._rowPredicate$.setDelegate(undefined);
8495
- this._searchText$.setDelegate(undefined);
8496
- });
8497
- }
8498
- }
8499
-
8500
8606
  /**
8501
8607
  * @file Automatically generated by barrelsby.
8502
8608
  */
@@ -10444,5 +10550,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
10444
10550
  * Generated bundle index. Do not edit.
10445
10551
  */
10446
10552
 
10447
- export { ACTIVITY_DATA, ALERT_CONFIG, AUP_PLACE_CONFIG, AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, AbstractActivityTriggerComponent, AbstractCardContainerComponent, AbstractConfirmDialogComponent, AbstractDialogComponent, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractPopupMenuComponent, AbstractTableComponent, AbstractTableModel, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityBodyComponent, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, ActivityTitleComponent, AddCardActivityComponent, AddItemInteractionContextComponent, Alert, AlertDialogComponent, AngularUiPowerupsModule, AutocompleteInputComponent, Bounds, BusyOverlayComponent, CELL_EDITOR_PORTAL, CELL_RENDERER_PORTAL, CardContainerComponent, CardStackComponent, CellEditorPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnListModel, ColumnModel, ColumnTemplateDirective, ColumnTextSearchFormatter, CommandComponent, CommandContainer, CommandDirective, CommandFace, CommandFaceComponent, ComponentCellRendererPortalRef, ComponentsModule, ConfirmThenDialogComponent, ConfirmThenExecuteDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DecoratedTreeNode, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DefaultTableFilterModel, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EditRowControls, EditSession, EditorControlColumnModel, EmptyStateComponent, EnableCellTextSearch, EventCleanUpSession, FlattenedTreeListModel, FlexComponent, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, Formatter, GarbageCollectorDirective, HEADER_CELL_RENDERER_PORTAL, HighlightPipe, HighlightTextModelDirective, HorizontalAlignment, IconComponent, InPlaceInteractionContextComponent, InlineActivityTriggerComponent, InlineEditorModel, InlineStringEditorComponent, InputActivity, InteractionContextTriggerFor, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, Keys, LEFT_RIGHT_PLACE_ANIMATION, LabelledValueComponent, ListPlaceNavComponent, ListPropertyColumnModel, LoadingContainerComponent, MarkdownComponent, MarkdownService, ModalActivityTriggerComponent, ModalInteractionContextFactory, MoreMenuComponent, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NotAuthorisedNoticeComponent, NumberInputComponent, POPUP_CONTAINER, PORTAL_EDITOR_COMPONENT, PORTAL_RENDERER_COMPONENT, PaginatorComponent, ParameterDefinition, PasswordInputComponent, Place, PlaceAccessGuard, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupActivityTriggerComponent, PopupAwareComponent, PopupInteractionContextComponent, PopupMenuComponent, PopupMenuRendererComponent, PropertyColumnModel, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, RouteId, ScrollContainerComponent, SectionHeaderComponent, SelectInputActivity, SelectInputComponent, SelectionCellComponent, SelectionColumnModel, SelectionHeaderCellComponent, SeparatorComponent, SidePlaceNavigationComponent, StringInputActivity, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TableBodyComponent, TableCellComponent, TableComponent, TableFilterModel, TableHeaderCellComponent, TableModel, TableRowMenuComponent, TemplateCellRendererPortalRef, TextInputComponent, ToolBarComponent, TrackBy, TreeExpansionModel, TreeInheritanceIconComponent, TreeLabelCellRendererComponent, TreeLabelColumnModel, TreeTableComponent, TreeTableModel, UrlService, UrlSnapshot, VerticalFocusContainerComponent, VisibilityService, Visit, VisitParameter, VisitParameterList, VisitSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, markdownPillExtension, slideDownOnEnterAnimation, slideRightOnEnterAnimation, treeNodeDecorator };
10553
+ export { ACTIVITY_DATA, ALERT_CONFIG, AUP_PLACE_CONFIG, AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, AbstractActivityTriggerComponent, AbstractCardContainerComponent, AbstractConfirmDialogComponent, AbstractDialogComponent, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractPopupMenuComponent, AbstractTableComponent, AbstractTableModel, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityBodyComponent, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, ActivityTitleComponent, AddCardActivityComponent, AddItemInteractionContextComponent, Alert, AlertDialogComponent, AngularUiPowerupsModule, AutocompleteInputComponent, Bounds, BusyOverlayComponent, CELL_EDITOR_PORTAL, CELL_RENDERER_PORTAL, CardContainerComponent, CardStackComponent, CellEditorPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnListModel, ColumnModel, ColumnTemplateDirective, ColumnTextSearchFormatter, CommandComponent, CommandContainer, CommandDirective, CommandFace, CommandFaceComponent, ComponentCellRendererPortalRef, ComponentsModule, ConfirmThenDialogComponent, ConfirmThenExecuteDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DecoratedTreeNode, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EditRowControls, EditSession, EditorControlColumnModel, EmptyStateComponent, EnableCellTextSearch, EventCleanUpSession, FlattenedTreeListModel, FlexComponent, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, Formatter, GarbageCollectorDirective, HEADER_CELL_RENDERER_PORTAL, HighlightPipe, HighlightTextModelDirective, HorizontalAlignment, IconComponent, InPlaceInteractionContextComponent, InlineActivityTriggerComponent, InlineEditorModel, InlineStringEditorComponent, InputActivity, InteractionContextTriggerFor, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, Keys, LEFT_RIGHT_PLACE_ANIMATION, LabelledValueComponent, ListPlaceNavComponent, ListPropertyColumnModel, LoadingContainerComponent, MarkdownComponent, MarkdownService, ModalActivityTriggerComponent, ModalInteractionContextFactory, MoreMenuComponent, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NotAuthorisedNoticeComponent, NumberInputComponent, POPUP_CONTAINER, PORTAL_EDITOR_COMPONENT, PORTAL_RENDERER_COMPONENT, PaginatorComponent, ParameterDefinition, PasswordInputComponent, Place, PlaceAccessGuard, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupActivityTriggerComponent, PopupAwareComponent, PopupInteractionContextComponent, PopupMenuComponent, PopupMenuRendererComponent, PropertyColumnModel, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, RouteId, ScrollContainerComponent, SectionHeaderComponent, SelectInputActivity, SelectInputComponent, SelectionCellComponent, SelectionColumnModel, SelectionHeaderCellComponent, SeparatorComponent, SidePlaceNavigationComponent, StringInputActivity, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TableBodyComponent, TableCellComponent, TableComponent, TableFilterModel, TableHeaderCellComponent, TableModel, TableRowMenuComponent, TemplateCellRendererPortalRef, TextInputComponent, ToolBarComponent, TrackBy, TreeExpansionModel, TreeInheritanceIconComponent, TreeLabelCellRendererComponent, TreeLabelColumnModel, TreeTableComponent, TreeTableModel, UrlService, UrlSnapshot, VerticalFocusContainerComponent, VisibilityService, Visit, VisitParameter, VisitParameterList, VisitSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, markdownPillExtension, slideDownOnEnterAnimation, slideRightOnEnterAnimation, treeNodeDecorator };
10448
10554
  //# sourceMappingURL=coolon-angular-ui-powerups.mjs.map