@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, __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,35 @@ 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());
2896
2898
  this.baseCssClass = 'aup-table-component';
2899
+ this.trackBy = (index, item) => {
2900
+ return this.identityOf ? this.identityOf(item) : index;
2901
+ };
2897
2902
  const { chain, when } = Dsl.disposeWith(this);
2903
+ // this.rows$ = chain(this.dataSource$)
2904
+ // .
2905
+ this._visibleRows$.setDelegate(this._sourceData$);
2906
+ when(chain(this._sourceData$).first()).becomesTruthy(it => {
2907
+ if (it === this.identityOf(it)) {
2908
+ console.warn("Table model identity function is using reference equality. This can cause lots of table re-rendering", {
2909
+ row: it
2910
+ });
2911
+ }
2912
+ }, { once: true });
2913
+ }
2914
+ identityOf(row) {
2915
+ return this._sourceData$.identityOf(row);
2898
2916
  }
2899
2917
  ngOnInit() {
2900
- const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
2918
+ const { chain } = Dsl.disposeWith(this);
2901
2919
  const model = this.getModel();
2902
- model.initialise(this.injector);
2903
2920
  this.columnsById = chain(model.columns).indexBy('columnId');
2921
+ model.bindToTable(this.injector, (row) => this.identityOf(row));
2922
+ }
2923
+ get visibleRows$() {
2924
+ return this._visibleRows$.readonly;
2904
2925
  }
2905
2926
  getModel() {
2906
2927
  return lang$1.abstractMethod(this.constructor);
@@ -2913,7 +2934,15 @@ class AbstractTableComponent extends DisposableComponent {
2913
2934
  }
2914
2935
  }
2915
2936
  AbstractTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AbstractTableComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
2916
- 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 });
2937
+ 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 });
2938
+ __decorate([
2939
+ TrackExternal(),
2940
+ __metadata("design:type", ListModel)
2941
+ ], AbstractTableComponent.prototype, "_sourceData$", void 0);
2942
+ __decorate([
2943
+ StoreInListModel("_sourceData$"),
2944
+ __metadata("design:type", Array)
2945
+ ], AbstractTableComponent.prototype, "data", void 0);
2917
2946
  __decorate([
2918
2947
  TrackExternal({ defaultValue: true }),
2919
2948
  __metadata("design:type", ValueModel)
@@ -2928,7 +2957,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
2928
2957
  selector: 'aup-abstract-table',
2929
2958
  template: ''
2930
2959
  }]
2931
- }], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { showHeader$: [{
2960
+ }], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { _sourceData$: [{
2961
+ type: Input,
2962
+ args: ["data$"]
2963
+ }], data: [{
2964
+ type: Input
2965
+ }], showHeader$: [{
2932
2966
  type: Input
2933
2967
  }], showHeader: [{
2934
2968
  type: Input
@@ -3280,6 +3314,59 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
3280
3314
  args: [MatMenuTrigger]
3281
3315
  }] } });
3282
3316
 
3317
+ class TableFilterModel extends GarbageCollector {
3318
+ constructor(options) {
3319
+ super();
3320
+ this._source$ = this.registerDisposable(new DelegatingListModel());
3321
+ this._rowPredicate$ = this.registerDisposable(new DelegatingValueModel());
3322
+ this._searchText$ = this.registerDisposable(new DelegatingValueModel());
3323
+ this._textSearchPredicate$ = this.registerDisposable(new DelegatingValueModel());
3324
+ this.inUpdate = new Guard();
3325
+ options.disposedWith.registerDisposable(this);
3326
+ this.useSearchText(options.searchText$);
3327
+ this.useRowPredicate(options.predicate$);
3328
+ const { chain } = Dsl.disposeWith(this);
3329
+ const textSearchRegex$ = chain(this._searchText$).map(text => {
3330
+ return isEmpty$1(text) ? undefined : new RegExp(escapeStringRegexp(text), "i");
3331
+ }, { allowNil: true });
3332
+ this._rowPredicate = chain(this._rowPredicate$)
3333
+ .map(predicate => {
3334
+ const regex = textSearchRegex$.value;
3335
+ const textSearchPredicate = this._textSearchPredicate$.value;
3336
+ return (row) => (!predicate || predicate(row)) && (!regex || !textSearchPredicate || textSearchPredicate(row, regex));
3337
+ }, {
3338
+ allowNil: true,
3339
+ dependsOn: [textSearchRegex$, this._textSearchPredicate$],
3340
+ postponeWhile: this.inUpdate
3341
+ });
3342
+ this.filteredRows$ = chain(this._source$).select(row => {
3343
+ return this._rowPredicate.value(row);
3344
+ }, { dependsOn: this._rowPredicate });
3345
+ }
3346
+ get highlightText$() {
3347
+ return this._searchText$.readonly;
3348
+ }
3349
+ useSearchText(searchText$) {
3350
+ this._searchText$.setDelegate(searchText$);
3351
+ }
3352
+ useRowPredicate(rowPredicate$) {
3353
+ this._rowPredicate$.setDelegate(rowPredicate$);
3354
+ }
3355
+ bindToTable(source$, textSearchPredicate$) {
3356
+ this.inUpdate.whileTrue(() => {
3357
+ this._source$.setDelegate(source$);
3358
+ this._textSearchPredicate$.setDelegate(textSearchPredicate$);
3359
+ });
3360
+ return Disposable.disposableThatRuns(() => {
3361
+ this.inUpdate.whileTrue(() => {
3362
+ this._source$.setDelegate(undefined);
3363
+ this._textSearchPredicate$.setDelegate(undefined);
3364
+ });
3365
+ });
3366
+ }
3367
+ }
3368
+ TrackExternal.oneTimeBinding(TableFilterModel);
3369
+
3283
3370
  class ColumnListModel extends AbstractComputedListModel {
3284
3371
  constructor() {
3285
3372
  super();
@@ -3601,16 +3688,6 @@ class EditSession extends GarbageCollector {
3601
3688
  }
3602
3689
  }
3603
3690
 
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
3691
  var DefaultArrayFormatter = ColumnTextSearchFormatter.DefaultArrayFormatter;
3615
3692
  var DefaultValueFormatter = ColumnTextSearchFormatter.DefaultValueFormatter;
3616
3693
  // export type StringPropertiesOf<T> = { [K in keyof T]: T[K] extends string ? K : never }[keyof T];
@@ -3624,45 +3701,36 @@ class RowClass {
3624
3701
  class AbstractTableModel extends GarbageCollector {
3625
3702
  constructor() {
3626
3703
  super();
3627
- this._rawDataSource = this.registerDisposable(new DelegatingListModel());
3704
+ this._dataSource$ = this.registerDisposable(new DelegatingListModel());
3628
3705
  this._visibleRows$ = this.registerDisposable(new DelegatingListModel());
3629
3706
  this._columnList = this.registerDisposable(new ColumnListModel());
3630
3707
  this._editorSessions = new MutableListModel();
3631
3708
  this.rowClassNamePredicates = [];
3632
3709
  this.rowClickListeners = new EventListenerList();
3633
3710
  this._createForm = (row) => new DirtyTrackingForm();
3634
- this.trackBy = (index, item) => {
3635
- return this.identityOf ? this.identityOf(item) : index;
3636
- };
3637
3711
  const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
3638
3712
  this._rowsBeingEdited$ = new MutableListModel([], {
3639
3713
  identifiedWith: row => this.identityOf(row)
3640
3714
  });
3641
3715
  this._editorSessionByRowId = chain(this._editorSessions).indexBy("rowId");
3642
3716
  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$);
3717
+ this.textSearchPredicate$ = chain(this.visibleColumns).reduce(columns => {
3718
+ return (row, regex) => {
3719
+ return (!regex || !!columns.find(c => regex.test(c.getSearchTextFor(row))));
3720
+ };
3721
+ });
3653
3722
  this.firstEditableColumn$ = chain(this.columns).select(c => c.hasEditorPortal()).first();
3654
3723
  this.firstVisibleColumn$ = chain(this._columnList).first();
3655
3724
  this.lastVisibleColumn$ = chain(this._columnList).last();
3656
3725
  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 });
3664
3726
  }
3665
- initialise(injector) {
3727
+ /**
3728
+ * Todo: make this force one table at a time
3729
+ * @param injector
3730
+ * @param identityOf
3731
+ * @param rest
3732
+ */
3733
+ bindToTable(injector, identityOf) {
3666
3734
  // not sure if I should define these at the module level or not...
3667
3735
  const customInjector = Injector.create({
3668
3736
  providers: [
@@ -3672,19 +3740,44 @@ class AbstractTableModel extends GarbageCollector {
3672
3740
  parent: injector
3673
3741
  });
3674
3742
  this.columns.value.forEach(c => c.initialise(customInjector));
3743
+ this.identityOf = identityOf;
3675
3744
  }
3676
3745
  get visibleRows$() {
3677
3746
  return this._visibleRows$.readonly;
3678
3747
  }
3679
- setDataSource(sourceOfTruth) {
3680
- this._rawDataSource.setDelegate(sourceOfTruth);
3681
- }
3682
- identityOf(row) {
3683
- return this._rawDataSource.identityOf(row);
3684
- }
3685
3748
  get rowsBeingEdited$() {
3686
3749
  return this._rowsBeingEdited$.readonly;
3687
3750
  }
3751
+ startEditSession(row) {
3752
+ const rowId = this.identityOf(row);
3753
+ if (this._rowsBeingEdited$.query().indexOf(row) > -1) {
3754
+ return lang$1.illegalState(`Row with id=${rowId} already being edited`);
3755
+ }
3756
+ // todo: pass the factories to the edit session so we can make the whole lot pluggable?
3757
+ const form = this._createForm(row);
3758
+ const saveCommand = this.saveCommandFactory.create(form, { disposedWith: this });
3759
+ const editSession = new EditSession(rowId, row, form, saveCommand);
3760
+ const { when } = Dsl.disposeWith(editSession);
3761
+ when(editSession.liveRowValue$).changes((editedValue) => {
3762
+ this._rowsBeingEdited$.replaceOrPush(editedValue);
3763
+ }, { initialValue: "triggerChangeUnlessNil" });
3764
+ this._editorSessions.push(editSession);
3765
+ editSession.onDispose(() => {
3766
+ this._rowsBeingEdited$.remove(editSession.liveRowValue$.value);
3767
+ this._editorSessions.remove(editSession);
3768
+ });
3769
+ return editSession;
3770
+ }
3771
+ getEditSessionFor(row) {
3772
+ return this._editorSessionByRowId.get(this.identityOf(row));
3773
+ }
3774
+ cancelAllEditorSessions() {
3775
+ this._editorSessions.runInTransaction((draft) => {
3776
+ this._rowsBeingEdited$.runInTransaction(() => {
3777
+ draft.value.forEach(session => session.dispose());
3778
+ });
3779
+ });
3780
+ }
3688
3781
  get columns() {
3689
3782
  return this._columnList.allColumns$;
3690
3783
  }
@@ -3739,52 +3832,15 @@ class AbstractTableModel extends GarbageCollector {
3739
3832
  });
3740
3833
  return classNames;
3741
3834
  }
3742
- useFormFactory(factory) {
3743
- this._createForm = factory;
3744
- return this;
3745
- }
3746
3835
  addColumn(column, index) {
3747
3836
  return this._columnList.addColumn(column, index);
3748
3837
  }
3749
- // removeColumn(column: ColumnModel<Row>) {
3750
- //
3751
- // }
3752
3838
  columnTextProperties(columnTextProperties) {
3753
3839
  this._columnTextPropertiesLookup = columnTextProperties;
3754
3840
  }
3755
3841
  getColumnTextProperties(columnId) {
3756
3842
  return this._columnTextPropertiesLookup ? this._columnTextPropertiesLookup[columnId] : undefined;
3757
3843
  }
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
3844
  isRowSelectionEnabledFor(column) {
3789
3845
  return this.isRowSelectionEnabled() && column.isRowSelectionEnabled();
3790
3846
  }
@@ -3817,14 +3873,17 @@ class AbstractTableModel extends GarbageCollector {
3817
3873
  if (this.isRowSelectionEnabledFor(columnModel)) {
3818
3874
  this.selectRow(row);
3819
3875
  }
3876
+ else {
3877
+ // console.log({
3878
+ // hasEnabledUserSelectionModel: this.hasUserSelectionModelThatIsEnabled(),
3879
+ // allSelectionDisabled: this.rowSelectionDisabledOnAllColumns$.value,
3880
+ // rowSelectionEnabled: this.isRowSelectionEnabled(),
3881
+ // rowSelectionEnabledForColumn: columnModel.isRowSelectionEnabled()
3882
+ // })
3883
+ }
3820
3884
  this.rowClickListeners.fire(l => l(row));
3821
3885
  }
3822
3886
  }
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
3887
  TrackExternal.oneTimeBinding(AbstractTableModel);
3829
3888
 
3830
3889
  /**
@@ -3907,37 +3966,15 @@ TrackExternal.oneTimeBinding(AbstractTableModel);
3907
3966
  * });
3908
3967
  */
3909
3968
  class TableModel extends AbstractTableModel {
3910
- constructor(sourceOfTruth, builder) {
3969
+ constructor(builder) {
3911
3970
  super();
3912
- this._pageSize = new MutableValueModel();
3913
- if (builder) {
3971
+ if (isFunction$1(builder)) {
3914
3972
  builder(this);
3915
3973
  }
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
3974
  }
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
3975
  addSelectionColumn(selectionModel, showSelectionColumn) {
3936
3976
  return this._addSelectionColumn(selectionModel, showSelectionColumn);
3937
3977
  }
3938
- updatePageSize(count) {
3939
- this._pageSize.value = count;
3940
- }
3941
3978
  }
3942
3979
 
3943
3980
  class PaginatorComponent extends DisposableComponent {
@@ -4123,7 +4160,11 @@ class TableBodyComponent extends ResizeAwareComponent {
4123
4160
  }
4124
4161
  }
4125
4162
  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"] }] });
4163
+ 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"] }] });
4164
+ __decorate([
4165
+ TrackExternal(),
4166
+ __metadata("design:type", ListModel)
4167
+ ], TableBodyComponent.prototype, "data$", void 0);
4127
4168
  __decorate([
4128
4169
  TrackExternal(),
4129
4170
  __metadata("design:type", AbstractTableModel)
@@ -4138,8 +4179,10 @@ __decorate([
4138
4179
  ], TableBodyComponent.prototype, "showHeader", void 0);
4139
4180
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: TableBodyComponent, decorators: [{
4140
4181
  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: [{
4182
+ 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"] }]
4183
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { data$: [{
4184
+ type: Input
4185
+ }], tableModel: [{
4143
4186
  type: Input
4144
4187
  }], showHeader$: [{
4145
4188
  type: Input
@@ -4147,6 +4190,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
4147
4190
  type: Input
4148
4191
  }], visibleRowCount: [{
4149
4192
  type: Output
4193
+ }], trackBy: [{
4194
+ type: Input
4150
4195
  }], enableScrolling: [{
4151
4196
  type: Input
4152
4197
  }, {
@@ -4221,36 +4266,100 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
4221
4266
  * }
4222
4267
  */
4223
4268
  class TableComponent extends AbstractTableComponent {
4224
- constructor() {
4225
- super(...arguments);
4269
+ constructor(injector) {
4270
+ super(injector);
4271
+ // enablePaging() {
4272
+ // if (isNil(this.pageController)) {
4273
+ // const pagedListModel = this.registerDisposable(PagedListModel.create(this._visibleRows$.getDelegate(), this._pageSize));
4274
+ // this._visibleRows$.setDelegate(pagedListModel);
4275
+ // this._pageController = pagedListModel.pageController;
4276
+ // }
4277
+ // }
4226
4278
  this._footerContentAdded = false;
4279
+ this._filteredRows$ = this.registerDisposable(new DelegatingListModel());
4280
+ this._pageSize = new MutableValueModel();
4281
+ const { when } = Dsl.disposeWith(this);
4282
+ this.onDispose(() => this.disposeOfPagedListModel());
4283
+ when(this.enablePaging$).changes(enabled => this.configurePaging(enabled));
4284
+ }
4285
+ ngOnInit() {
4286
+ super.ngOnInit();
4287
+ if (this.filterModel) {
4288
+ this.registerDisposable(this.filterModel.bindToTable(this._sourceData$, this.getModel().textSearchPredicate$));
4289
+ this.highlightText$.setDelegate(this.filterModel.highlightText$);
4290
+ this._filteredRows$.setDelegate(this.filterModel.filteredRows$);
4291
+ }
4292
+ else {
4293
+ this._filteredRows$.setDelegate(this._sourceData$);
4294
+ }
4295
+ this.configurePaging(this.enablePaging$.value);
4227
4296
  }
4228
4297
  getModel() {
4229
4298
  return this.tableModel;
4230
4299
  }
4300
+ get pageController() {
4301
+ // TODO: need to support external page controllers if the paging occurs to our primary data source.
4302
+ return this.pagedListModel.pageController;
4303
+ }
4304
+ configurePaging(enable) {
4305
+ if (enable) {
4306
+ if (!this.pagedListModel) {
4307
+ this.pagedListModel = PagedListModel.create(this._filteredRows$, this._pageSize);
4308
+ }
4309
+ this._visibleRows$.setDelegate(this.pagedListModel);
4310
+ }
4311
+ else {
4312
+ this.disposeOfPagedListModel();
4313
+ this._visibleRows$.setDelegate(this._filteredRows$);
4314
+ }
4315
+ }
4316
+ disposeOfPagedListModel() {
4317
+ if (this.pagedListModel) {
4318
+ this.pagedListModel.dispose();
4319
+ this.pagedListModel = null;
4320
+ }
4321
+ }
4231
4322
  footerContentChanged($event) {
4232
4323
  // console.log($event);
4233
4324
  this._footerContentAdded = true;
4234
4325
  }
4235
4326
  //@Trace()
4236
4327
  updatePageSize(count) {
4237
- this.tableModel.updatePageSize(count);
4328
+ this._pageSize.value = count;
4238
4329
  }
4239
4330
  }
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: [
4331
+ TableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: TableComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
4332
+ 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
4333
  { 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"] }] });
4334
+ ], 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
4335
  __decorate([
4245
4336
  TrackExternal(),
4246
4337
  __metadata("design:type", TableModel)
4247
4338
  ], TableComponent.prototype, "tableModel", void 0);
4339
+ __decorate([
4340
+ TrackExternal(),
4341
+ __metadata("design:type", TableFilterModel)
4342
+ ], TableComponent.prototype, "filterModel", void 0);
4343
+ __decorate([
4344
+ TrackExternal(),
4345
+ __metadata("design:type", ValueModel)
4346
+ ], TableComponent.prototype, "enablePaging$", void 0);
4347
+ __decorate([
4348
+ StoreInValueModel("enablePaging$"),
4349
+ __metadata("design:type", Boolean)
4350
+ ], TableComponent.prototype, "enablePaging", void 0);
4248
4351
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: TableComponent, decorators: [{
4249
4352
  type: Component,
4250
4353
  args: [{ selector: 'aup-table', providers: [
4251
4354
  { 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: [{
4355
+ ], 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"] }]
4356
+ }], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { tableModel: [{
4357
+ type: Input
4358
+ }], filterModel: [{
4359
+ type: Input
4360
+ }], enablePaging$: [{
4361
+ type: Input
4362
+ }], enablePaging: [{
4254
4363
  type: Input
4255
4364
  }] } });
4256
4365
 
@@ -4509,16 +4618,16 @@ class TreeLabelCellRendererComponent extends DisposableComponent {
4509
4618
  const { chain } = Dsl.disposeWith(this);
4510
4619
  this.canExpand = chain(this.nodeModel).map(node => {
4511
4620
  return DecoratedTreeNode.getDecorator(node).hasChildren() && this.treeTableModel.isCollapsed(node);
4512
- }, { dependsOn: this.treeTableModel.treeExpansionModel.isExpandedPredicate });
4621
+ }, { dependsOn: this.treeTableModel.isExpandedPredicate$ });
4513
4622
  this.canCollapse = chain(this.nodeModel).map(node => {
4514
4623
  return DecoratedTreeNode.getDecorator(node).hasChildren() && !this.treeTableModel.isCollapsed(node);
4515
- }, { dependsOn: this.treeTableModel.treeExpansionModel.isExpandedPredicate });
4624
+ }, { dependsOn: this.treeTableModel.isExpandedPredicate$ });
4516
4625
  this.iconModel = chain(this.nodeModel).map(node => {
4517
4626
  var _a;
4518
- const expanded = this.treeTableModel.treeExpansionModel.isExpanded(this.node);
4627
+ const expanded = this.treeTableModel.isExpanded(this.node);
4519
4628
  const iconFactory = (_a = this.iconFactory) !== null && _a !== void 0 ? _a : TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY;
4520
4629
  return iconFactory(node, expanded, TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY(node, expanded, undefined));
4521
- }, { dependsOn: this.treeTableModel.treeExpansionModel.isExpandedPredicate });
4630
+ }, { dependsOn: this.treeTableModel.isExpandedPredicate$ });
4522
4631
  }
4523
4632
  get isRoot() {
4524
4633
  return DecoratedTreeNode.getDecorator(this.node).isRoot();
@@ -4580,7 +4689,7 @@ class FlattenedTreeListModel extends ComputedListModel {
4580
4689
  this.source = source;
4581
4690
  this.childRef = childRef;
4582
4691
  this.expansionModel = expansionModel;
4583
- this.trackSource(expansionModel.isExpandedPredicate);
4692
+ this.trackSource(expansionModel.isExpandedPredicate$);
4584
4693
  }
4585
4694
  compute(values) {
4586
4695
  const result = [];
@@ -4598,15 +4707,35 @@ class FlattenedTreeListModel extends ComputedListModel {
4598
4707
  }
4599
4708
  }
4600
4709
 
4601
- class TreeExpansionModel {
4602
- constructor(identityOf) {
4603
- this.identityOf = identityOf;
4710
+ // TODO: Merge the tree expansion model and flattened tree model together to work like TableFilterModels. I.e.
4711
+ // the client model code can use this classes filteredRows$ to limit selection.
4712
+ class TreeExpansionModel extends GarbageCollector {
4713
+ constructor(options) {
4714
+ super();
4715
+ this._source$ = this.registerDisposable(new DelegatingListModel());
4604
4716
  this.collapsedIds = new Set();
4605
- this._isExpandedPredicate = new MutableValueModel(() => true);
4717
+ this._isExpandedPredicate$ = new MutableValueModel(() => true);
4718
+ this._visibleRows$ = this.registerDisposable(new DelegatingListModel());
4719
+ options.disposedWith.registerDisposable(this);
4720
+ const { chain } = Dsl.disposeWith(this);
4606
4721
  this.updatePredicate();
4607
4722
  }
4608
- get isExpandedPredicate() {
4609
- return this._isExpandedPredicate.readonly;
4723
+ bindToTable(source$, visibleRows$) {
4724
+ this._source$.setDelegate(source$);
4725
+ this._visibleRows$.setDelegate(visibleRows$);
4726
+ return Disposable.disposableThatRuns(() => {
4727
+ this._source$.setDelegate(undefined);
4728
+ this._visibleRows$.setDelegate(undefined);
4729
+ });
4730
+ }
4731
+ get visibleRows$() {
4732
+ return this._visibleRows$.readonly;
4733
+ }
4734
+ identityOf(row) {
4735
+ return this._source$.identityOf(row);
4736
+ }
4737
+ get isExpandedPredicate$() {
4738
+ return this._isExpandedPredicate$.readonly;
4610
4739
  }
4611
4740
  // @Trace()
4612
4741
  expand(node) {
@@ -4641,9 +4770,10 @@ class TreeExpansionModel {
4641
4770
  this.updatePredicate();
4642
4771
  }
4643
4772
  updatePredicate() {
4644
- this._isExpandedPredicate.value = (node) => !this.collapsedIds.has(this.identityOf(node));
4773
+ this._isExpandedPredicate$.value = (node) => !this.collapsedIds.has(this.identityOf(node));
4645
4774
  }
4646
4775
  }
4776
+ TrackExternal.oneTimeBinding(TreeExpansionModel);
4647
4777
 
4648
4778
  class TreeLabelColumnModel extends ColumnModel {
4649
4779
  constructor(columnId, textPropertiesProvider, expansionModel) {
@@ -4695,16 +4825,22 @@ class TreeLabelColumnModel extends ColumnModel {
4695
4825
  // - Add a predicate to check default expansion (i.e. has children of a certain type)
4696
4826
  //
4697
4827
  class TreeTableModel extends AbstractTableModel {
4698
- constructor(source, childAccessor, builder) {
4828
+ constructor(childAccessor, builder) {
4699
4829
  super();
4700
- this.treeExpansionModel = new TreeExpansionModel(row => this.identityOf(row));
4830
+ this._isExpandedPredicate$ = this.registerDisposable(new DelegatingValueModel());
4701
4831
  if (builder)
4702
4832
  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);
4833
+ this.childExtractor = isFunction(childAccessor) ? childAccessor : row => row[childAccessor];
4706
4834
  this.addRowClass('aup-node-collapsed', row => this.isCollapsed(row));
4707
4835
  }
4836
+ get isExpandedPredicate$() {
4837
+ return this._isExpandedPredicate$.readonly;
4838
+ }
4839
+ useExpansionModel(expansionModel) {
4840
+ this.treeExpansionModel = expansionModel;
4841
+ // TODO: Move all the expansion model stuff out of here and have things use the expansion model directly
4842
+ this._isExpandedPredicate$.setDelegate(this.treeExpansionModel.isExpandedPredicate$);
4843
+ }
4708
4844
  treeControlColumn(builder) {
4709
4845
  const columnId = 'tree-label';
4710
4846
  const column = new TreeLabelColumnModel(columnId, () => this.getColumnTextProperties(columnId), this);
@@ -4723,6 +4859,9 @@ class TreeTableModel extends AbstractTableModel {
4723
4859
  ensureAncestorsAndSelfVisible(node) {
4724
4860
  this.treeExpansionModel.ensureAncestorsAndSelfVisible(node);
4725
4861
  }
4862
+ isExpanded(row) {
4863
+ return this.treeExpansionModel.isExpanded(row);
4864
+ }
4726
4865
  addSelectionColumn(selectionModel, showSelectionColumn) {
4727
4866
  return this._addSelectionColumn(selectionModel, showSelectionColumn);
4728
4867
  }
@@ -4837,25 +4976,43 @@ class TreeTableComponent extends AbstractTableComponent {
4837
4976
  constructor(injector) {
4838
4977
  super(injector);
4839
4978
  }
4979
+ ngOnInit() {
4980
+ super.ngOnInit();
4981
+ // TODO: clean up all this tightly coupled shit, should the expansion model really be separate from the tree model?
4982
+ if (!this.expansionModel) {
4983
+ this.expansionModel = new TreeExpansionModel({ disposedWith: this });
4984
+ }
4985
+ // Todo, turn this into a plain chain model
4986
+ const visibleRows$ = new FlattenedTreeListModel(this._sourceData$, row => this.treeTableModel.childExtractor(row), this.expansionModel);
4987
+ this.expansionModel.bindToTable(this._sourceData$, visibleRows$);
4988
+ this.treeTableModel.useExpansionModel(this.expansionModel);
4989
+ this._visibleRows$.setDelegate(visibleRows$);
4990
+ }
4840
4991
  getModel() {
4841
4992
  return this.treeTableModel;
4842
4993
  }
4843
4994
  }
4844
4995
  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: [
4996
+ 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
4997
  { 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"] }] });
4998
+ ], 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
4999
  __decorate([
4849
5000
  TrackExternal(),
4850
5001
  __metadata("design:type", TreeTableModel)
4851
5002
  ], TreeTableComponent.prototype, "treeTableModel", void 0);
5003
+ __decorate([
5004
+ TrackExternal(),
5005
+ __metadata("design:type", TreeExpansionModel)
5006
+ ], TreeTableComponent.prototype, "expansionModel", void 0);
4852
5007
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: TreeTableComponent, decorators: [{
4853
5008
  type: Component,
4854
5009
  args: [{ selector: 'aup-tree-table', providers: [
4855
5010
  { 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"] }]
5011
+ ], 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
5012
  }], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { treeTableModel: [{
4858
5013
  type: Input
5014
+ }], expansionModel: [{
5015
+ type: Input
4859
5016
  }] } });
4860
5017
 
4861
5018
  class VerticalFocusContainerComponent extends FocusContainerComponent {
@@ -8546,57 +8703,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
8546
8703
  }]
8547
8704
  }] });
8548
8705
 
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
8706
  /**
8601
8707
  * @file Automatically generated by barrelsby.
8602
8708
  */
@@ -10563,5 +10669,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
10563
10669
  * Generated bundle index. Do not edit.
10564
10670
  */
10565
10671
 
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 };
10672
+ 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
10673
  //# sourceMappingURL=coolon-angular-ui-powerups.mjs.map