@coolon/angular-ui-powerups 16.1.0-aplpha.91 → 16.1.0-aplpha.92
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/esm2022/lib/components/tables/abstract-table.component.mjs +2 -25
- package/esm2022/lib/components/tables/renderer/table-body/table-body.component.mjs +1 -1
- package/esm2022/lib/components/tables/table/table.component.mjs +28 -7
- package/esm2022/lib/components/tables/tree-table/tree-table-component.mjs +26 -3
- package/fesm2022/coolon-angular-ui-powerups.mjs +51 -30
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/components/tables/abstract-table.component.d.ts +1 -8
- package/lib/components/tables/table/table.component.d.ts +12 -3
- package/lib/components/tables/tree-table/tree-table-component.d.ts +8 -1
- package/package.json +1 -1
|
@@ -3209,17 +3209,6 @@ class AbstractTableComponent extends DisposableComponent {
|
|
|
3209
3209
|
#showHeader_accessor_storage = true;
|
|
3210
3210
|
get showHeader() { return this.#showHeader_accessor_storage; }
|
|
3211
3211
|
set showHeader(value) { this.#showHeader_accessor_storage = value; }
|
|
3212
|
-
#enableScrolling$_accessor_storage = proxify((ValueModel));
|
|
3213
|
-
/**
|
|
3214
|
-
* Set to true to enable scrolling. Once enabled the table will have 0 implicit height. You will either
|
|
3215
|
-
* need to set it explicitly e.g. height: 400px; or by using flex or grid layout to make it fill it's
|
|
3216
|
-
* containment area.
|
|
3217
|
-
*/
|
|
3218
|
-
get enableScrolling$() { return this.#enableScrolling$_accessor_storage; }
|
|
3219
|
-
set enableScrolling$(value) { this.#enableScrolling$_accessor_storage = value; }
|
|
3220
|
-
#enableScrolling_accessor_storage = false;
|
|
3221
|
-
get enableScrolling() { return this.#enableScrolling_accessor_storage; }
|
|
3222
|
-
set enableScrolling(value) { this.#enableScrolling_accessor_storage = value; }
|
|
3223
3212
|
columns;
|
|
3224
3213
|
columnIds;
|
|
3225
3214
|
columnsById;
|
|
@@ -3273,7 +3262,7 @@ class AbstractTableComponent extends DisposableComponent {
|
|
|
3273
3262
|
}
|
|
3274
3263
|
}
|
|
3275
3264
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AbstractTableComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
3276
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AbstractTableComponent, selector: "aup-abstract-table", inputs: { showHeader$: "showHeader$", showHeader: "showHeader"
|
|
3265
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AbstractTableComponent, selector: "aup-abstract-table", inputs: { showHeader$: "showHeader$", showHeader: "showHeader" }, host: { properties: { "class": "this.baseCssClass" } }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
3277
3266
|
}
|
|
3278
3267
|
__decorate([
|
|
3279
3268
|
Proxify(),
|
|
@@ -3283,14 +3272,6 @@ __decorate([
|
|
|
3283
3272
|
StoreInValueModel(),
|
|
3284
3273
|
__metadata("design:type", Object)
|
|
3285
3274
|
], AbstractTableComponent.prototype, "showHeader", null);
|
|
3286
|
-
__decorate([
|
|
3287
|
-
Proxify(),
|
|
3288
|
-
__metadata("design:type", ValueModel)
|
|
3289
|
-
], AbstractTableComponent.prototype, "enableScrolling$", null);
|
|
3290
|
-
__decorate([
|
|
3291
|
-
StoreInValueModel(),
|
|
3292
|
-
__metadata("design:type", Boolean)
|
|
3293
|
-
], AbstractTableComponent.prototype, "enableScrolling", null);
|
|
3294
3275
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AbstractTableComponent, decorators: [{
|
|
3295
3276
|
type: Component,
|
|
3296
3277
|
args: [{
|
|
@@ -3301,10 +3282,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
3301
3282
|
type: Input
|
|
3302
3283
|
}], showHeader: [{
|
|
3303
3284
|
type: Input
|
|
3304
|
-
}], enableScrolling$: [{
|
|
3305
|
-
type: Input
|
|
3306
|
-
}], enableScrolling: [{
|
|
3307
|
-
type: Input
|
|
3308
3285
|
}], baseCssClass: [{
|
|
3309
3286
|
type: HostBinding,
|
|
3310
3287
|
args: ['class']
|
|
@@ -5030,13 +5007,22 @@ class TableComponent extends AbstractTableComponent {
|
|
|
5030
5007
|
get filterModel() { return this.#filterModel_accessor_storage; }
|
|
5031
5008
|
set filterModel(value) { this.#filterModel_accessor_storage = value; }
|
|
5032
5009
|
tableBody;
|
|
5010
|
+
#scrolling$_accessor_storage = proxify((ValueModel));
|
|
5011
|
+
/**
|
|
5012
|
+
* Set to true to enable scrolling. Once enabled the table will have 0 implicit height. You will either
|
|
5013
|
+
* need to set it explicitly e.g. height: 400px; or by using flex or grid layout to make it fill it's
|
|
5014
|
+
* containment area.
|
|
5015
|
+
*/
|
|
5016
|
+
get scrolling$() { return this.#scrolling$_accessor_storage; }
|
|
5017
|
+
set scrolling$(value) { this.#scrolling$_accessor_storage = value; }
|
|
5018
|
+
#scrolling_accessor_storage = "none";
|
|
5019
|
+
get scrolling() { return this.#scrolling_accessor_storage; }
|
|
5020
|
+
set scrolling(value) { this.#scrolling_accessor_storage = value; }
|
|
5033
5021
|
_footerContentAdded = false;
|
|
5034
5022
|
_filteredRows$ = this.registerDisposable(new DelegatingListModel());
|
|
5035
|
-
scrollMode$;
|
|
5036
5023
|
constructor(injector) {
|
|
5037
5024
|
super(injector);
|
|
5038
5025
|
const { chain, when } = Dsl.disposeWith(this);
|
|
5039
|
-
this.scrollMode$ = chain(this.enableScrolling$).map(enabled => enabled ? "virtual" : "none");
|
|
5040
5026
|
}
|
|
5041
5027
|
ngOnInit() {
|
|
5042
5028
|
super.ngOnInit();
|
|
@@ -5060,9 +5046,9 @@ class TableComponent extends AbstractTableComponent {
|
|
|
5060
5046
|
this._footerContentAdded = true;
|
|
5061
5047
|
}
|
|
5062
5048
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
5063
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableComponent, selector: "aup-table", inputs: { tableModel: "tableModel", filterModel: "filterModel" }, providers: [
|
|
5049
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableComponent, selector: "aup-table", inputs: { tableModel: "tableModel", filterModel: "filterModel", scrolling$: "scrolling$", scrolling: "scrolling" }, providers: [
|
|
5064
5050
|
{ provide: AbstractTableComponent, useExisting: TableComponent }
|
|
5065
|
-
], viewQueries: [{ propertyName: "tableBody", first: true, predicate: TableBodyComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<aup-table-body [data$]=\"visibleRows$\"\n [tableModel]=\"tableModel\"\n [showHeader$]=\"showHeader$\"\n [scrollMode$]=\"
|
|
5051
|
+
], viewQueries: [{ propertyName: "tableBody", first: true, predicate: TableBodyComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<aup-table-body [data$]=\"visibleRows$\"\n [tableModel]=\"tableModel\"\n [showHeader$]=\"showHeader$\"\n [scrollMode$]=\"scrolling$\"\n [trackBy]=\"trackBy\"\n [aupHighlightTextModel]=\"highlightText$\"\n></aup-table-body>\n<section class=\"table-footer\">\n <div class=\"footer-content\"><ng-content select=\"[footer], [slot=footer]\"></ng-content></div>\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: HighlightTextModelDirective, selector: "[aupHighlightTextModel]", inputs: ["aupHighlightTextModel"] }, { kind: "component", type: TableBodyComponent, selector: "aup-table-body", inputs: ["data$", "tableModel", "showHeader$", "showHeader", "trackBy", "scrollMode$", "scrollMode"] }] });
|
|
5066
5052
|
}
|
|
5067
5053
|
__decorate([
|
|
5068
5054
|
Proxify(),
|
|
@@ -5072,11 +5058,19 @@ __decorate([
|
|
|
5072
5058
|
Proxify(),
|
|
5073
5059
|
__metadata("design:type", Object)
|
|
5074
5060
|
], TableComponent.prototype, "filterModel", null);
|
|
5061
|
+
__decorate([
|
|
5062
|
+
Proxify(),
|
|
5063
|
+
__metadata("design:type", ValueModel)
|
|
5064
|
+
], TableComponent.prototype, "scrolling$", null);
|
|
5065
|
+
__decorate([
|
|
5066
|
+
StoreInValueModel(),
|
|
5067
|
+
__metadata("design:type", String)
|
|
5068
|
+
], TableComponent.prototype, "scrolling", null);
|
|
5075
5069
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableComponent, decorators: [{
|
|
5076
5070
|
type: Component,
|
|
5077
5071
|
args: [{ selector: 'aup-table', providers: [
|
|
5078
5072
|
{ provide: AbstractTableComponent, useExisting: TableComponent }
|
|
5079
|
-
], template: "<aup-table-body [data$]=\"visibleRows$\"\n [tableModel]=\"tableModel\"\n [showHeader$]=\"showHeader$\"\n [scrollMode$]=\"
|
|
5073
|
+
], template: "<aup-table-body [data$]=\"visibleRows$\"\n [tableModel]=\"tableModel\"\n [showHeader$]=\"showHeader$\"\n [scrollMode$]=\"scrolling$\"\n [trackBy]=\"trackBy\"\n [aupHighlightTextModel]=\"highlightText$\"\n></aup-table-body>\n<section class=\"table-footer\">\n <div class=\"footer-content\"><ng-content select=\"[footer], [slot=footer]\"></ng-content></div>\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"] }]
|
|
5080
5074
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { tableModel: [{
|
|
5081
5075
|
type: Input
|
|
5082
5076
|
}], filterModel: [{
|
|
@@ -5084,6 +5078,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
5084
5078
|
}], tableBody: [{
|
|
5085
5079
|
type: ViewChild,
|
|
5086
5080
|
args: [TableBodyComponent]
|
|
5081
|
+
}], scrolling$: [{
|
|
5082
|
+
type: Input
|
|
5083
|
+
}], scrolling: [{
|
|
5084
|
+
type: Input
|
|
5087
5085
|
}] } });
|
|
5088
5086
|
|
|
5089
5087
|
const SVG_HEIGHT = 60;
|
|
@@ -5723,6 +5721,17 @@ class TreeTableComponent extends AbstractTableComponent {
|
|
|
5723
5721
|
#expansionModel_accessor_storage = proxify((TreeExpansionModel));
|
|
5724
5722
|
get expansionModel() { return this.#expansionModel_accessor_storage; }
|
|
5725
5723
|
set expansionModel(value) { this.#expansionModel_accessor_storage = value; }
|
|
5724
|
+
#enableScrolling$_accessor_storage = proxify((ValueModel));
|
|
5725
|
+
/**
|
|
5726
|
+
* Set to true to enable scrolling. Once enabled the table will have 0 implicit height. You will either
|
|
5727
|
+
* need to set it explicitly e.g. height: 400px; or by using flex or grid layout to make it fill it's
|
|
5728
|
+
* containment area.
|
|
5729
|
+
*/
|
|
5730
|
+
get enableScrolling$() { return this.#enableScrolling$_accessor_storage; }
|
|
5731
|
+
set enableScrolling$(value) { this.#enableScrolling$_accessor_storage = value; }
|
|
5732
|
+
#enableScrolling_accessor_storage = false;
|
|
5733
|
+
get enableScrolling() { return this.#enableScrolling_accessor_storage; }
|
|
5734
|
+
set enableScrolling(value) { this.#enableScrolling_accessor_storage = value; }
|
|
5726
5735
|
scrollMode$;
|
|
5727
5736
|
constructor(injector) {
|
|
5728
5737
|
super(injector);
|
|
@@ -5745,7 +5754,7 @@ class TreeTableComponent extends AbstractTableComponent {
|
|
|
5745
5754
|
return this.treeTableModel;
|
|
5746
5755
|
}
|
|
5747
5756
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TreeTableComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
5748
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TreeTableComponent, selector: "aup-tree-table", inputs: { treeTableModel: "treeTableModel", expansionModel: "expansionModel" }, providers: [
|
|
5757
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TreeTableComponent, selector: "aup-tree-table", inputs: { treeTableModel: "treeTableModel", expansionModel: "expansionModel", enableScrolling$: "enableScrolling$", enableScrolling: "enableScrolling" }, providers: [
|
|
5749
5758
|
{ provide: AbstractTableComponent, useExisting: TreeTableComponent }
|
|
5750
5759
|
], usesInheritance: true, ngImport: i0, template: "<aup-table-body [data$]=\"visibleRows$\"\n [tableModel]=\"treeTableModel\"\n [showHeader$]=\"showHeader$\"\n [scrollMode$]=\"scrollMode$\"\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-mdc-cell{border-top-width:0!important;border-bottom-width:0!important}: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", "scrollMode$", "scrollMode"] }] });
|
|
5751
5760
|
}
|
|
@@ -5757,6 +5766,14 @@ __decorate([
|
|
|
5757
5766
|
Proxify(),
|
|
5758
5767
|
__metadata("design:type", Object)
|
|
5759
5768
|
], TreeTableComponent.prototype, "expansionModel", null);
|
|
5769
|
+
__decorate([
|
|
5770
|
+
Proxify(),
|
|
5771
|
+
__metadata("design:type", ValueModel)
|
|
5772
|
+
], TreeTableComponent.prototype, "enableScrolling$", null);
|
|
5773
|
+
__decorate([
|
|
5774
|
+
StoreInValueModel(),
|
|
5775
|
+
__metadata("design:type", Boolean)
|
|
5776
|
+
], TreeTableComponent.prototype, "enableScrolling", null);
|
|
5760
5777
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TreeTableComponent, decorators: [{
|
|
5761
5778
|
type: Component,
|
|
5762
5779
|
args: [{ selector: 'aup-tree-table', providers: [
|
|
@@ -5766,6 +5783,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
5766
5783
|
type: Input
|
|
5767
5784
|
}], expansionModel: [{
|
|
5768
5785
|
type: Input
|
|
5786
|
+
}], enableScrolling$: [{
|
|
5787
|
+
type: Input
|
|
5788
|
+
}], enableScrolling: [{
|
|
5789
|
+
type: Input
|
|
5769
5790
|
}] } });
|
|
5770
5791
|
|
|
5771
5792
|
// TODO: Look at using unified parser: https://javascript.plainenglish.io/markdown-to-angular-rendering-using-unified-and-remark-96835bb877
|