@coolon/angular-ui-powerups 14.18.0 → 14.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/esm2020/lib/components/exports.mjs +4 -4
  2. package/esm2020/lib/components/tables/abstract-table-model.mjs +63 -77
  3. package/esm2020/lib/components/tables/abstract-table.component.mjs +27 -4
  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 +5 -28
  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 +17 -9
  21. package/fesm2015/coolon-angular-ui-powerups.mjs +294 -194
  22. package/fesm2015/coolon-angular-ui-powerups.mjs.map +1 -1
  23. package/fesm2020/coolon-angular-ui-powerups.mjs +359 -259
  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 +21 -17
  27. package/lib/components/tables/abstract-table.component.d.ts +8 -2
  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 +7 -2
  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, __awaiter } from 'tslib';
44
44
  import escapeStringRegexp from 'escape-string-regexp';
45
45
  import { isEmpty, isString, isFunction, isNil, isInteger, isEqual, uniq, last, first, isObject, isNumber, isNaN as isNaN$1 } from 'lodash';
@@ -49,7 +49,7 @@ import { lang as lang$1, assert as assert$1, Stringy, Klass, Opts } from '@coolo
49
49
  import { Enum } from 'typescript-string-enums';
50
50
  import { Memoize } from '@typescript-plus/fast-memoize-decorator';
51
51
  import * as i5 from '@angular/material/core';
52
- import { isFunction as isFunction$1, isNil as isNil$1, isEmpty as isEmpty$1, findLast } from 'lodash-es';
52
+ import { isEmpty as isEmpty$1, isFunction as isFunction$1, isNil as isNil$1, findLast } from 'lodash-es';
53
53
  import produce from 'immer';
54
54
  import ResizeObserver from 'resize-observer-polyfill';
55
55
  import * as i5$1 from '@angular/cdk/a11y';
@@ -2893,14 +2893,37 @@ class AbstractTableComponent extends DisposableComponent {
2893
2893
  // TODO: support user defined header and row heights via css vars.
2894
2894
  this.headerHeight = new MutableValueModel(56);
2895
2895
  this.rowHeight = new MutableValueModel(48);
2896
+ this._visibleRows$ = this.registerDisposable(new DelegatingListModel());
2897
+ this.highlightText$ = this.registerDisposable(new DelegatingValueModel());
2898
+ this._dataSource$ = this.registerDisposable(new DelegatingListModel());
2896
2899
  this.baseCssClass = 'aup-table-component';
2900
+ this.trackBy = (index, item) => {
2901
+ return this.identityOf ? this.identityOf(item) : index;
2902
+ };
2897
2903
  const { chain, when } = Dsl.disposeWith(this);
2904
+ // this.rows$ = chain(this.dataSource$)
2905
+ // .
2906
+ this._visibleRows$.setDelegate(this._dataSource$);
2907
+ when(chain(this._dataSource$).first()).becomesTruthy(it => {
2908
+ if (it === this.identityOf(it)) {
2909
+ console.warn("Table model identity function is using reference equality. This can cause lots of table re-rendering", {
2910
+ row: it
2911
+ });
2912
+ }
2913
+ }, { once: true });
2914
+ }
2915
+ identityOf(row) {
2916
+ return this._dataSource$.identityOf(row);
2898
2917
  }
2899
2918
  ngOnInit() {
2900
- const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
2919
+ const { chain } = Dsl.disposeWith(this);
2901
2920
  const model = this.getModel();
2902
- model.initialise(this.injector);
2903
2921
  this.columnsById = chain(model.columns).indexBy('columnId');
2922
+ this._dataSource$.setDelegate(model.dataSource$);
2923
+ model.bindToTable(this.injector, (row) => this.identityOf(row));
2924
+ }
2925
+ get visibleRows$() {
2926
+ return this._visibleRows$.readonly;
2904
2927
  }
2905
2928
  getModel() {
2906
2929
  return lang$1.abstractMethod(this.constructor);
@@ -3280,6 +3303,59 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
3280
3303
  args: [MatMenuTrigger]
3281
3304
  }] } });
3282
3305
 
3306
+ class TableFilterModel extends GarbageCollector {
3307
+ constructor(options) {
3308
+ super();
3309
+ this._source$ = this.registerDisposable(new DelegatingListModel());
3310
+ this._rowPredicate$ = this.registerDisposable(new DelegatingValueModel());
3311
+ this._searchText$ = this.registerDisposable(new DelegatingValueModel());
3312
+ this._textSearchPredicate$ = this.registerDisposable(new DelegatingValueModel());
3313
+ this.inUpdate = new Guard();
3314
+ options.disposedWith.registerDisposable(this);
3315
+ this.useSearchText(options.searchText$);
3316
+ this.useRowPredicate(options.predicate$);
3317
+ const { chain } = Dsl.disposeWith(this);
3318
+ const textSearchRegex$ = chain(this._searchText$).map(text => {
3319
+ return isEmpty$1(text) ? undefined : new RegExp(escapeStringRegexp(text), "i");
3320
+ }, { allowNil: true });
3321
+ this._rowPredicate = chain(this._rowPredicate$)
3322
+ .map(predicate => {
3323
+ const regex = textSearchRegex$.value;
3324
+ const textSearchPredicate = this._textSearchPredicate$.value;
3325
+ return (row) => (!predicate || predicate(row)) && (!regex || !textSearchPredicate || textSearchPredicate(row, regex));
3326
+ }, {
3327
+ allowNil: true,
3328
+ dependsOn: [textSearchRegex$, this._textSearchPredicate$],
3329
+ postponeWhile: this.inUpdate
3330
+ });
3331
+ this.filteredRows$ = chain(this._source$).select(row => {
3332
+ return this._rowPredicate.value(row);
3333
+ }, { dependsOn: this._rowPredicate });
3334
+ }
3335
+ get highlightText$() {
3336
+ return this._searchText$.readonly;
3337
+ }
3338
+ useSearchText(searchText$) {
3339
+ this._searchText$.setDelegate(searchText$);
3340
+ }
3341
+ useRowPredicate(rowPredicate$) {
3342
+ this._rowPredicate$.setDelegate(rowPredicate$);
3343
+ }
3344
+ bindToTable(source$, textSearchPredicate$) {
3345
+ this.inUpdate.whileTrue(() => {
3346
+ this._source$.setDelegate(source$);
3347
+ this._textSearchPredicate$.setDelegate(textSearchPredicate$);
3348
+ });
3349
+ return Disposable.disposableThatRuns(() => {
3350
+ this.inUpdate.whileTrue(() => {
3351
+ this._source$.setDelegate(undefined);
3352
+ this._textSearchPredicate$.setDelegate(undefined);
3353
+ });
3354
+ });
3355
+ }
3356
+ }
3357
+ TrackExternal.oneTimeBinding(TableFilterModel);
3358
+
3283
3359
  class ColumnListModel extends AbstractComputedListModel {
3284
3360
  constructor() {
3285
3361
  super();
@@ -3601,16 +3677,6 @@ class EditSession extends GarbageCollector {
3601
3677
  }
3602
3678
  }
3603
3679
 
3604
- // TODO: Merge MarsUi FilterRegistry into this.
3605
- class TableFilterModel extends GarbageCollector {
3606
- }
3607
- TrackExternal.useDelegate(TableFilterModel, options => {
3608
- return DelegateProxyHandler.create("AbstractTableFilterModel", b => {
3609
- b.forProperty("rowFilter$", () => new DelegatingValueModel());
3610
- b.forProperty("highlightText$", () => new DelegatingValueModel());
3611
- });
3612
- });
3613
-
3614
3680
  var DefaultArrayFormatter = ColumnTextSearchFormatter.DefaultArrayFormatter;
3615
3681
  var DefaultValueFormatter = ColumnTextSearchFormatter.DefaultValueFormatter;
3616
3682
  // export type StringPropertiesOf<T> = { [K in keyof T]: T[K] extends string ? K : never }[keyof T];
@@ -3622,47 +3688,40 @@ class RowClass {
3622
3688
  }
3623
3689
  }
3624
3690
  class AbstractTableModel extends GarbageCollector {
3625
- constructor() {
3691
+ constructor(source$) {
3626
3692
  super();
3627
- this._rawDataSource = this.registerDisposable(new DelegatingListModel());
3693
+ this._dataSource$ = this.registerDisposable(new DelegatingListModel());
3628
3694
  this._visibleRows$ = this.registerDisposable(new DelegatingListModel());
3629
3695
  this._columnList = this.registerDisposable(new ColumnListModel());
3630
3696
  this._editorSessions = new MutableListModel();
3631
3697
  this.rowClassNamePredicates = [];
3632
3698
  this.rowClickListeners = new EventListenerList();
3633
3699
  this._createForm = (row) => new DirtyTrackingForm();
3634
- this.trackBy = (index, item) => {
3635
- return this.identityOf ? this.identityOf(item) : index;
3636
- };
3637
3700
  const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
3701
+ this._dataSource$.setDelegate(source$);
3638
3702
  this._rowsBeingEdited$ = new MutableListModel([], {
3639
3703
  identifiedWith: row => this.identityOf(row)
3640
3704
  });
3641
3705
  this._editorSessionByRowId = chain(this._editorSessions).indexBy("rowId");
3642
3706
  this.editing$ = chain(this._editorSessions).count().isGreaterThan(0);
3643
- this._filteredRows$ = chain(this._rawDataSource)
3644
- .reduceToList(items => {
3645
- const filter = this.filterModel.rowFilter$.value; // filter can be null
3646
- return !filter ? items : items.filter(item => filter.matches(item, this.columns.value));
3647
- }, {
3648
- dependsOn: [this.filterModel.rowFilter$, this.columns]
3649
- })
3650
- .replaceAll(this.rowsBeingEdited$)
3651
- .identifiedWith(this._rawDataSource.identityOf);
3652
- this._visibleRows$.setDelegate(this._filteredRows$);
3707
+ this.textSearchPredicate$ = chain(this.visibleColumns).reduce(columns => {
3708
+ return (row, regex) => {
3709
+ return (!regex || !!columns.find(c => regex.test(c.getSearchTextFor(row))));
3710
+ };
3711
+ });
3653
3712
  this.firstEditableColumn$ = chain(this.columns).select(c => c.hasEditorPortal()).first();
3654
3713
  this.firstVisibleColumn$ = chain(this._columnList).first();
3655
3714
  this.lastVisibleColumn$ = chain(this._columnList).last();
3656
3715
  this.rowSelectionDisabledOnAllColumns$ = chain(this._columnList).select(column => column.isRowSelectionEnabled()).count().equals(0);
3657
- when(chain(this._rawDataSource).first()).becomesTruthy(it => {
3658
- if (it === this.identityOf(it)) {
3659
- console.warn("Table model identity function is using reference equality. This can cause lots of table re-rendering", {
3660
- row: it
3661
- });
3662
- }
3663
- }, { once: true });
3716
+ this.dataSourceEmpty$ = chain(this.dataSource$).isEmpty();
3664
3717
  }
3665
- initialise(injector) {
3718
+ /**
3719
+ * Todo: make this force one table at a time
3720
+ * @param injector
3721
+ * @param identityOf
3722
+ * @param rest
3723
+ */
3724
+ bindToTable(injector, identityOf) {
3666
3725
  // not sure if I should define these at the module level or not...
3667
3726
  const customInjector = Injector.create({
3668
3727
  providers: [
@@ -3672,19 +3731,47 @@ class AbstractTableModel extends GarbageCollector {
3672
3731
  parent: injector
3673
3732
  });
3674
3733
  this.columns.value.forEach(c => c.initialise(customInjector));
3734
+ this.identityOf = identityOf;
3735
+ }
3736
+ get dataSource$() {
3737
+ return this._dataSource$.readonly;
3675
3738
  }
3676
3739
  get visibleRows$() {
3677
3740
  return this._visibleRows$.readonly;
3678
3741
  }
3679
- setDataSource(sourceOfTruth) {
3680
- this._rawDataSource.setDelegate(sourceOfTruth);
3681
- }
3682
- identityOf(row) {
3683
- return this._rawDataSource.identityOf(row);
3684
- }
3685
3742
  get rowsBeingEdited$() {
3686
3743
  return this._rowsBeingEdited$.readonly;
3687
3744
  }
3745
+ startEditSession(row) {
3746
+ const rowId = this.identityOf(row);
3747
+ if (this._rowsBeingEdited$.query().indexOf(row) > -1) {
3748
+ return lang$1.illegalState(`Row with id=${rowId} already being edited`);
3749
+ }
3750
+ // todo: pass the factories to the edit session so we can make the whole lot pluggable?
3751
+ const form = this._createForm(row);
3752
+ const saveCommand = this.saveCommandFactory.create(form, { disposedWith: this });
3753
+ const editSession = new EditSession(rowId, row, form, saveCommand);
3754
+ const { when } = Dsl.disposeWith(editSession);
3755
+ when(editSession.liveRowValue$).changes((editedValue) => {
3756
+ this._rowsBeingEdited$.replaceOrPush(editedValue);
3757
+ }, { initialValue: "triggerChangeUnlessNil" });
3758
+ this._editorSessions.push(editSession);
3759
+ editSession.onDispose(() => {
3760
+ this._rowsBeingEdited$.remove(editSession.liveRowValue$.value);
3761
+ this._editorSessions.remove(editSession);
3762
+ });
3763
+ return editSession;
3764
+ }
3765
+ getEditSessionFor(row) {
3766
+ return this._editorSessionByRowId.get(this.identityOf(row));
3767
+ }
3768
+ cancelAllEditorSessions() {
3769
+ this._editorSessions.runInTransaction((draft) => {
3770
+ this._rowsBeingEdited$.runInTransaction(() => {
3771
+ draft.value.forEach(session => session.dispose());
3772
+ });
3773
+ });
3774
+ }
3688
3775
  get columns() {
3689
3776
  return this._columnList.allColumns$;
3690
3777
  }
@@ -3739,52 +3826,15 @@ class AbstractTableModel extends GarbageCollector {
3739
3826
  });
3740
3827
  return classNames;
3741
3828
  }
3742
- useFormFactory(factory) {
3743
- this._createForm = factory;
3744
- return this;
3745
- }
3746
3829
  addColumn(column, index) {
3747
3830
  return this._columnList.addColumn(column, index);
3748
3831
  }
3749
- // removeColumn(column: ColumnModel<Row>) {
3750
- //
3751
- // }
3752
3832
  columnTextProperties(columnTextProperties) {
3753
3833
  this._columnTextPropertiesLookup = columnTextProperties;
3754
3834
  }
3755
3835
  getColumnTextProperties(columnId) {
3756
3836
  return this._columnTextPropertiesLookup ? this._columnTextPropertiesLookup[columnId] : undefined;
3757
3837
  }
3758
- startEditSession(row) {
3759
- const rowId = this.identityOf(row);
3760
- if (this._rowsBeingEdited$.query().indexOf(row) > -1) {
3761
- return lang.illegalState(`Row with id=${rowId} already being edited`);
3762
- }
3763
- // todo: pass the factories to the edit session so we can make the whole lot pluggable?
3764
- const form = this._createForm(row);
3765
- const saveCommand = this.saveCommandFactory.create(form, { disposedWith: this });
3766
- const editSession = new EditSession(rowId, row, form, saveCommand);
3767
- const { when } = Dsl.disposeWith(editSession);
3768
- when(editSession.liveRowValue$).changes((editedValue) => {
3769
- this._rowsBeingEdited$.replaceOrPush(editedValue);
3770
- }, { initialValue: "triggerChangeUnlessNil" });
3771
- this._editorSessions.push(editSession);
3772
- editSession.onDispose(() => {
3773
- this._rowsBeingEdited$.remove(editSession.liveRowValue$.value);
3774
- this._editorSessions.remove(editSession);
3775
- });
3776
- return editSession;
3777
- }
3778
- getEditSessionFor(row) {
3779
- return this._editorSessionByRowId.get(this.identityOf(row));
3780
- }
3781
- cancelAllEditorSessions() {
3782
- this._editorSessions.runInTransaction((draft) => {
3783
- this._rowsBeingEdited$.runInTransaction(() => {
3784
- draft.value.forEach(session => session.dispose());
3785
- });
3786
- });
3787
- }
3788
3838
  isRowSelectionEnabledFor(column) {
3789
3839
  return this.isRowSelectionEnabled() && column.isRowSelectionEnabled();
3790
3840
  }
@@ -3817,14 +3867,17 @@ class AbstractTableModel extends GarbageCollector {
3817
3867
  if (this.isRowSelectionEnabledFor(columnModel)) {
3818
3868
  this.selectRow(row);
3819
3869
  }
3870
+ else {
3871
+ // console.log({
3872
+ // hasEnabledUserSelectionModel: this.hasUserSelectionModelThatIsEnabled(),
3873
+ // allSelectionDisabled: this.rowSelectionDisabledOnAllColumns$.value,
3874
+ // rowSelectionEnabled: this.isRowSelectionEnabled(),
3875
+ // rowSelectionEnabledForColumn: columnModel.isRowSelectionEnabled()
3876
+ // })
3877
+ }
3820
3878
  this.rowClickListeners.fire(l => l(row));
3821
3879
  }
3822
3880
  }
3823
- __decorate([
3824
- TrackExternal() // hack instead of creating a delegating one from scratch.
3825
- ,
3826
- __metadata("design:type", TableFilterModel)
3827
- ], AbstractTableModel.prototype, "filterModel", void 0);
3828
3881
  TrackExternal.oneTimeBinding(AbstractTableModel);
3829
3882
 
3830
3883
  /**
@@ -3907,37 +3960,15 @@ TrackExternal.oneTimeBinding(AbstractTableModel);
3907
3960
  * });
3908
3961
  */
3909
3962
  class TableModel extends AbstractTableModel {
3910
- constructor(sourceOfTruth, builder) {
3911
- super();
3912
- this._pageSize = new MutableValueModel();
3913
- if (builder) {
3963
+ constructor(source$, builder) {
3964
+ super(source$);
3965
+ if (isFunction$1(builder)) {
3914
3966
  builder(this);
3915
3967
  }
3916
- if (sourceOfTruth) {
3917
- this.setDataSource(sourceOfTruth);
3918
- }
3919
- }
3920
- get pageController() {
3921
- return this._pageController;
3922
- }
3923
- enablePaging() {
3924
- if (isNil$1(this.pageController)) {
3925
- const pagedListModel = this.registerDisposable(PagedListModel.create(this._visibleRows$.getDelegate(), this._pageSize));
3926
- this._visibleRows$.setDelegate(pagedListModel);
3927
- this._pageController = pagedListModel.pageController;
3928
- }
3929
3968
  }
3930
- // TODO: the selection model needs the option to limit selecction to the filtered items. Currently the selection remains
3931
- // when the item is no longer in the visible list of items.
3932
- // addSingleSelectionColumn<Id>(options: SingleSelectionModel.Options<Row, Id>, showSelectionColumn?: ValueModel<boolean> | boolean): SingleSelectionModel<Row> {
3933
- // return null;
3934
- // }
3935
3969
  addSelectionColumn(selectionModel, showSelectionColumn) {
3936
3970
  return this._addSelectionColumn(selectionModel, showSelectionColumn);
3937
3971
  }
3938
- updatePageSize(count) {
3939
- this._pageSize.value = count;
3940
- }
3941
3972
  }
3942
3973
 
3943
3974
  class PaginatorComponent extends DisposableComponent {
@@ -4123,7 +4154,11 @@ class TableBodyComponent extends ResizeAwareComponent {
4123
4154
  }
4124
4155
  }
4125
4156
  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 });
4126
- 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"] }] });
4157
+ 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"] }] });
4158
+ __decorate([
4159
+ TrackExternal(),
4160
+ __metadata("design:type", ListModel)
4161
+ ], TableBodyComponent.prototype, "data$", void 0);
4127
4162
  __decorate([
4128
4163
  TrackExternal(),
4129
4164
  __metadata("design:type", AbstractTableModel)
@@ -4138,8 +4173,10 @@ __decorate([
4138
4173
  ], TableBodyComponent.prototype, "showHeader", void 0);
4139
4174
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: TableBodyComponent, decorators: [{
4140
4175
  type: Component,
4141
- 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"] }]
4142
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { tableModel: [{
4176
+ 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"] }]
4177
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { data$: [{
4178
+ type: Input
4179
+ }], tableModel: [{
4143
4180
  type: Input
4144
4181
  }], showHeader$: [{
4145
4182
  type: Input
@@ -4147,6 +4184,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
4147
4184
  type: Input
4148
4185
  }], visibleRowCount: [{
4149
4186
  type: Output
4187
+ }], trackBy: [{
4188
+ type: Input
4150
4189
  }], enableScrolling: [{
4151
4190
  type: Input
4152
4191
  }, {
@@ -4221,36 +4260,100 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
4221
4260
  * }
4222
4261
  */
4223
4262
  class TableComponent extends AbstractTableComponent {
4224
- constructor() {
4225
- super(...arguments);
4263
+ constructor(injector) {
4264
+ super(injector);
4265
+ // enablePaging() {
4266
+ // if (isNil(this.pageController)) {
4267
+ // const pagedListModel = this.registerDisposable(PagedListModel.create(this._visibleRows$.getDelegate(), this._pageSize));
4268
+ // this._visibleRows$.setDelegate(pagedListModel);
4269
+ // this._pageController = pagedListModel.pageController;
4270
+ // }
4271
+ // }
4226
4272
  this._footerContentAdded = false;
4273
+ this._filteredRows$ = this.registerDisposable(new DelegatingListModel());
4274
+ this._pageSize = new MutableValueModel();
4275
+ const { when } = Dsl.disposeWith(this);
4276
+ this.onDispose(() => this.disposeOfPagedListModel());
4277
+ when(this.enablePaging$).changes(enabled => this.configurePaging(enabled));
4278
+ }
4279
+ ngOnInit() {
4280
+ super.ngOnInit();
4281
+ if (this.filterModel) {
4282
+ this.registerDisposable(this.filterModel.bindToTable(this._dataSource$, this.getModel().textSearchPredicate$));
4283
+ this.highlightText$.setDelegate(this.filterModel.highlightText$);
4284
+ this._filteredRows$.setDelegate(this.filterModel.filteredRows$);
4285
+ }
4286
+ else {
4287
+ this._filteredRows$.setDelegate(this._dataSource$);
4288
+ }
4289
+ this.configurePaging(this.enablePaging$.value);
4227
4290
  }
4228
4291
  getModel() {
4229
4292
  return this.tableModel;
4230
4293
  }
4294
+ get pageController() {
4295
+ // TODO: need to support external page controllers if the paging occurs to our primary data source.
4296
+ return this.pagedListModel.pageController;
4297
+ }
4298
+ configurePaging(enable) {
4299
+ if (enable) {
4300
+ if (!this.pagedListModel) {
4301
+ this.pagedListModel = PagedListModel.create(this._filteredRows$, this._pageSize);
4302
+ }
4303
+ this._visibleRows$.setDelegate(this.pagedListModel);
4304
+ }
4305
+ else {
4306
+ this.disposeOfPagedListModel();
4307
+ this._visibleRows$.setDelegate(this._filteredRows$);
4308
+ }
4309
+ }
4310
+ disposeOfPagedListModel() {
4311
+ if (this.pagedListModel) {
4312
+ this.pagedListModel.dispose();
4313
+ this.pagedListModel = null;
4314
+ }
4315
+ }
4231
4316
  footerContentChanged($event) {
4232
4317
  // console.log($event);
4233
4318
  this._footerContentAdded = true;
4234
4319
  }
4235
4320
  //@Trace()
4236
4321
  updatePageSize(count) {
4237
- this.tableModel.updatePageSize(count);
4322
+ this._pageSize.value = count;
4238
4323
  }
4239
4324
  }
4240
- TableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: TableComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
4241
- TableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: TableComponent, selector: "aup-table", inputs: { tableModel: "tableModel" }, providers: [
4325
+ TableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: TableComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
4326
+ 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: [
4242
4327
  { provide: AbstractTableComponent, useExisting: TableComponent }
4243
- ], 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"] }] });
4328
+ ], 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"] }] });
4244
4329
  __decorate([
4245
4330
  TrackExternal(),
4246
4331
  __metadata("design:type", TableModel)
4247
4332
  ], TableComponent.prototype, "tableModel", void 0);
4333
+ __decorate([
4334
+ TrackExternal(),
4335
+ __metadata("design:type", TableFilterModel)
4336
+ ], TableComponent.prototype, "filterModel", void 0);
4337
+ __decorate([
4338
+ TrackExternal(),
4339
+ __metadata("design:type", ValueModel)
4340
+ ], TableComponent.prototype, "enablePaging$", void 0);
4341
+ __decorate([
4342
+ StoreInValueModel("enablePaging$"),
4343
+ __metadata("design:type", Boolean)
4344
+ ], TableComponent.prototype, "enablePaging", void 0);
4248
4345
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: TableComponent, decorators: [{
4249
4346
  type: Component,
4250
4347
  args: [{ selector: 'aup-table', providers: [
4251
4348
  { provide: AbstractTableComponent, useExisting: TableComponent }
4252
- ], 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"] }]
4253
- }], propDecorators: { tableModel: [{
4349
+ ], 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"] }]
4350
+ }], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { tableModel: [{
4351
+ type: Input
4352
+ }], filterModel: [{
4353
+ type: Input
4354
+ }], enablePaging$: [{
4355
+ type: Input
4356
+ }], enablePaging: [{
4254
4357
  type: Input
4255
4358
  }] } });
4256
4359
 
@@ -4509,16 +4612,16 @@ class TreeLabelCellRendererComponent extends DisposableComponent {
4509
4612
  const { chain } = Dsl.disposeWith(this);
4510
4613
  this.canExpand = chain(this.nodeModel).map(node => {
4511
4614
  return DecoratedTreeNode.getDecorator(node).hasChildren() && this.treeTableModel.isCollapsed(node);
4512
- }, { dependsOn: this.treeTableModel.treeExpansionModel.isExpandedPredicate });
4615
+ }, { dependsOn: this.treeTableModel.isExpandedPredicate$ });
4513
4616
  this.canCollapse = chain(this.nodeModel).map(node => {
4514
4617
  return DecoratedTreeNode.getDecorator(node).hasChildren() && !this.treeTableModel.isCollapsed(node);
4515
- }, { dependsOn: this.treeTableModel.treeExpansionModel.isExpandedPredicate });
4618
+ }, { dependsOn: this.treeTableModel.isExpandedPredicate$ });
4516
4619
  this.iconModel = chain(this.nodeModel).map(node => {
4517
4620
  var _a;
4518
- const expanded = this.treeTableModel.treeExpansionModel.isExpanded(this.node);
4621
+ const expanded = this.treeTableModel.isExpanded(this.node);
4519
4622
  const iconFactory = (_a = this.iconFactory) !== null && _a !== void 0 ? _a : TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY;
4520
4623
  return iconFactory(node, expanded, TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY(node, expanded, undefined));
4521
- }, { dependsOn: this.treeTableModel.treeExpansionModel.isExpandedPredicate });
4624
+ }, { dependsOn: this.treeTableModel.isExpandedPredicate$ });
4522
4625
  }
4523
4626
  get isRoot() {
4524
4627
  return DecoratedTreeNode.getDecorator(this.node).isRoot();
@@ -4580,7 +4683,7 @@ class FlattenedTreeListModel extends ComputedListModel {
4580
4683
  this.source = source;
4581
4684
  this.childRef = childRef;
4582
4685
  this.expansionModel = expansionModel;
4583
- this.trackSource(expansionModel.isExpandedPredicate);
4686
+ this.trackSource(expansionModel.isExpandedPredicate$);
4584
4687
  }
4585
4688
  compute(values) {
4586
4689
  const result = [];
@@ -4598,15 +4701,35 @@ class FlattenedTreeListModel extends ComputedListModel {
4598
4701
  }
4599
4702
  }
4600
4703
 
4601
- class TreeExpansionModel {
4602
- constructor(identityOf) {
4603
- this.identityOf = identityOf;
4704
+ // TODO: Merge the tree expansion model and flattened tree model together to work like TableFilterModels. I.e.
4705
+ // the client model code can use this classes filteredRows$ to limit selection.
4706
+ class TreeExpansionModel extends GarbageCollector {
4707
+ constructor(options) {
4708
+ super();
4709
+ this._source$ = this.registerDisposable(new DelegatingListModel());
4604
4710
  this.collapsedIds = new Set();
4605
- this._isExpandedPredicate = new MutableValueModel(() => true);
4711
+ this._isExpandedPredicate$ = new MutableValueModel(() => true);
4712
+ this._visibleRows$ = this.registerDisposable(new DelegatingListModel());
4713
+ options.disposedWith.registerDisposable(this);
4714
+ const { chain } = Dsl.disposeWith(this);
4606
4715
  this.updatePredicate();
4607
4716
  }
4608
- get isExpandedPredicate() {
4609
- return this._isExpandedPredicate.readonly;
4717
+ bindToTable(source$, visibleRows$) {
4718
+ this._source$.setDelegate(source$);
4719
+ this._visibleRows$.setDelegate(visibleRows$);
4720
+ return Disposable.disposableThatRuns(() => {
4721
+ this._source$.setDelegate(undefined);
4722
+ this._visibleRows$.setDelegate(undefined);
4723
+ });
4724
+ }
4725
+ get visibleRows$() {
4726
+ return this._visibleRows$.readonly;
4727
+ }
4728
+ identityOf(row) {
4729
+ return this._source$.identityOf(row);
4730
+ }
4731
+ get isExpandedPredicate$() {
4732
+ return this._isExpandedPredicate$.readonly;
4610
4733
  }
4611
4734
  // @Trace()
4612
4735
  expand(node) {
@@ -4641,9 +4764,10 @@ class TreeExpansionModel {
4641
4764
  this.updatePredicate();
4642
4765
  }
4643
4766
  updatePredicate() {
4644
- this._isExpandedPredicate.value = (node) => !this.collapsedIds.has(this.identityOf(node));
4767
+ this._isExpandedPredicate$.value = (node) => !this.collapsedIds.has(this.identityOf(node));
4645
4768
  }
4646
4769
  }
4770
+ TrackExternal.oneTimeBinding(TreeExpansionModel);
4647
4771
 
4648
4772
  class TreeLabelColumnModel extends ColumnModel {
4649
4773
  constructor(columnId, textPropertiesProvider, expansionModel) {
@@ -4695,16 +4819,22 @@ class TreeLabelColumnModel extends ColumnModel {
4695
4819
  // - Add a predicate to check default expansion (i.e. has children of a certain type)
4696
4820
  //
4697
4821
  class TreeTableModel extends AbstractTableModel {
4698
- constructor(source, childAccessor, builder) {
4699
- super();
4700
- this.treeExpansionModel = new TreeExpansionModel(row => this.identityOf(row));
4822
+ constructor(source$, childAccessor, builder) {
4823
+ super(source$);
4824
+ this._isExpandedPredicate$ = this.registerDisposable(new DelegatingValueModel());
4701
4825
  if (builder)
4702
4826
  builder(this);
4703
- const childExtractor = isFunction(childAccessor) ? childAccessor : row => row[childAccessor];
4704
- this.flattenedDataSource = this.registerDisposable(new FlattenedTreeListModel(source, childExtractor, this.treeExpansionModel));
4705
- this.setDataSource(this.flattenedDataSource);
4827
+ this.childExtractor = isFunction(childAccessor) ? childAccessor : row => row[childAccessor];
4706
4828
  this.addRowClass('aup-node-collapsed', row => this.isCollapsed(row));
4707
4829
  }
4830
+ get isExpandedPredicate$() {
4831
+ return this._isExpandedPredicate$.readonly;
4832
+ }
4833
+ useExpansionModel(expansionModel) {
4834
+ this.treeExpansionModel = expansionModel;
4835
+ // TODO: Move all the expansion model stuff out of here and have things use the expansion model directly
4836
+ this._isExpandedPredicate$.setDelegate(this.treeExpansionModel.isExpandedPredicate$);
4837
+ }
4708
4838
  treeControlColumn(builder) {
4709
4839
  const columnId = 'tree-label';
4710
4840
  const column = new TreeLabelColumnModel(columnId, () => this.getColumnTextProperties(columnId), this);
@@ -4723,6 +4853,9 @@ class TreeTableModel extends AbstractTableModel {
4723
4853
  ensureAncestorsAndSelfVisible(node) {
4724
4854
  this.treeExpansionModel.ensureAncestorsAndSelfVisible(node);
4725
4855
  }
4856
+ isExpanded(row) {
4857
+ return this.treeExpansionModel.isExpanded(row);
4858
+ }
4726
4859
  addSelectionColumn(selectionModel, showSelectionColumn) {
4727
4860
  return this._addSelectionColumn(selectionModel, showSelectionColumn);
4728
4861
  }
@@ -4837,25 +4970,43 @@ class TreeTableComponent extends AbstractTableComponent {
4837
4970
  constructor(injector) {
4838
4971
  super(injector);
4839
4972
  }
4973
+ ngOnInit() {
4974
+ super.ngOnInit();
4975
+ // TODO: clean up all this tightly coupled shit, should the expansion model really be separate from the tree model?
4976
+ if (!this.expansionModel) {
4977
+ this.expansionModel = new TreeExpansionModel({ disposedWith: this });
4978
+ }
4979
+ // Todo, turn this into a plain chain model
4980
+ const visibleRows$ = new FlattenedTreeListModel(this._dataSource$, row => this.treeTableModel.childExtractor(row), this.expansionModel);
4981
+ this.expansionModel.bindToTable(this._dataSource$, visibleRows$);
4982
+ this.treeTableModel.useExpansionModel(this.expansionModel);
4983
+ this._visibleRows$.setDelegate(visibleRows$);
4984
+ }
4840
4985
  getModel() {
4841
4986
  return this.treeTableModel;
4842
4987
  }
4843
4988
  }
4844
4989
  TreeTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: TreeTableComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
4845
- TreeTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: TreeTableComponent, selector: "aup-tree-table", inputs: { treeTableModel: "treeTableModel" }, providers: [
4990
+ TreeTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: TreeTableComponent, selector: "aup-tree-table", inputs: { treeTableModel: "treeTableModel", expansionModel: "expansionModel" }, providers: [
4846
4991
  { provide: AbstractTableComponent, useExisting: TreeTableComponent }
4847
- ], 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"] }] });
4992
+ ], 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"] }] });
4848
4993
  __decorate([
4849
4994
  TrackExternal(),
4850
4995
  __metadata("design:type", TreeTableModel)
4851
4996
  ], TreeTableComponent.prototype, "treeTableModel", void 0);
4997
+ __decorate([
4998
+ TrackExternal(),
4999
+ __metadata("design:type", TreeExpansionModel)
5000
+ ], TreeTableComponent.prototype, "expansionModel", void 0);
4852
5001
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: TreeTableComponent, decorators: [{
4853
5002
  type: Component,
4854
5003
  args: [{ selector: 'aup-tree-table', providers: [
4855
5004
  { provide: AbstractTableComponent, useExisting: TreeTableComponent }
4856
- ], 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"] }]
5005
+ ], 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"] }]
4857
5006
  }], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { treeTableModel: [{
4858
5007
  type: Input
5008
+ }], expansionModel: [{
5009
+ type: Input
4859
5010
  }] } });
4860
5011
 
4861
5012
  class VerticalFocusContainerComponent extends FocusContainerComponent {
@@ -8546,57 +8697,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
8546
8697
  }]
8547
8698
  }] });
8548
8699
 
8549
- class DefaultTableFilterModel extends TableFilterModel {
8550
- constructor(configuration) {
8551
- super();
8552
- this._rowPredicate$ = this.registerDisposable(new DelegatingValueModel());
8553
- this._searchText$ = this.registerDisposable(new DelegatingValueModel());
8554
- this.inUpdate = new Guard();
8555
- const { chain } = Dsl.disposeWith(this);
8556
- if (configuration) {
8557
- this.configure(Object.assign(Object.assign({}, configuration), { disposedWith: this }));
8558
- }
8559
- const textSearchRegex$ = chain(this._searchText$).map(text => {
8560
- return isEmpty$1(text) ? undefined : new RegExp(escapeStringRegexp(text), "i");
8561
- }, { allowNil: true });
8562
- this._rowFilter$ = chain(this._rowPredicate$)
8563
- .map(predicate => {
8564
- const regex = textSearchRegex$.value;
8565
- return {
8566
- matches(row, columns) {
8567
- return (!predicate || predicate(row)) && (!regex || !!columns.find(c => regex.test(c.getSearchTextFor(row))));
8568
- }
8569
- };
8570
- }, {
8571
- allowNil: true,
8572
- dependsOn: textSearchRegex$,
8573
- postponeWhile: this.inUpdate
8574
- });
8575
- }
8576
- get rowFilter$() {
8577
- return this._rowFilter$.readonly;
8578
- }
8579
- get highlightText$() {
8580
- return this._searchText$.readonly;
8581
- }
8582
- configure(configuration) {
8583
- this.inUpdate.whileTrue(() => {
8584
- this._rowPredicate$.setDelegate(configuration.predicate$);
8585
- this._searchText$.setDelegate(configuration.searchText$);
8586
- });
8587
- const self = this;
8588
- configuration.disposedWith.registerDisposable({
8589
- dispose: () => self.clear()
8590
- });
8591
- }
8592
- clear() {
8593
- this.inUpdate.whileTrue(() => {
8594
- this._rowPredicate$.setDelegate(undefined);
8595
- this._searchText$.setDelegate(undefined);
8596
- });
8597
- }
8598
- }
8599
-
8600
8700
  /**
8601
8701
  * @file Automatically generated by barrelsby.
8602
8702
  */
@@ -10563,5 +10663,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
10563
10663
  * Generated bundle index. Do not edit.
10564
10664
  */
10565
10665
 
10566
- 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 };
10666
+ 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 };
10567
10667
  //# sourceMappingURL=coolon-angular-ui-powerups.mjs.map