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