@coolon/angular-ui-powerups 3.10.4 → 3.11.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/CHANGELOG.md +7 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +10 -2
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/table/column-model.js +7 -0
- package/esm2015/lib/components/table/column-model.js.map +1 -1
- package/esm2015/lib/components/table/column-model.metadata.json +1 -1
- package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.js +1 -1
- package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.metadata.json +1 -1
- package/esm2015/lib/components/table/table.component.js +2 -2
- package/esm2015/lib/components/table/table.component.js.map +1 -1
- package/esm2015/lib/components/table/table.component.metadata.json +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +91 -84
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/table/column-model.d.ts +3 -0
- package/lib/components/table/table-cell-renderer/table-cell-renderer.component.d.ts +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [3.11.0](https://bitbucket.org/coolon/angular-ui-powerups/compare/v3.10.4...v3.11.0) (2021-02-10)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* added tableColumn.flex() with the default value of false ([284dbd3](https://bitbucket.org/coolon/angular-ui-powerups/commit/284dbd38e584df742491da2d7bbe8115151734d4))
|
|
11
|
+
|
|
5
12
|
### [3.10.4](https://bitbucket.org/coolon/angular-ui-powerups/compare/v3.10.3...v3.10.4) (2021-02-09)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -2590,6 +2590,7 @@
|
|
|
2590
2590
|
this.columnId = columnId;
|
|
2591
2591
|
this.textPropertiesProvider = textPropertiesProvider;
|
|
2592
2592
|
this._selectRowOnClick = undefined;
|
|
2593
|
+
this._flex = false;
|
|
2593
2594
|
this.installHeaderRenderer();
|
|
2594
2595
|
}
|
|
2595
2596
|
ColumnModel.prototype.installHeaderRenderer = function () {
|
|
@@ -2624,6 +2625,13 @@
|
|
|
2624
2625
|
this.configureHeaderRenderer(new CellHeaderPortalRef(componentType, initialiser));
|
|
2625
2626
|
return this;
|
|
2626
2627
|
};
|
|
2628
|
+
ColumnModel.prototype.flex = function (flex) {
|
|
2629
|
+
if (flex === void 0) { flex = true; }
|
|
2630
|
+
this._flex = flex;
|
|
2631
|
+
};
|
|
2632
|
+
ColumnModel.prototype.isFlex = function () {
|
|
2633
|
+
return this._flex;
|
|
2634
|
+
};
|
|
2627
2635
|
ColumnModel.prototype.hasEditorPortal = function () {
|
|
2628
2636
|
return !!this._cellEditorPortalRef;
|
|
2629
2637
|
};
|
|
@@ -3191,8 +3199,8 @@
|
|
|
3191
3199
|
TableComponent.decorators = [
|
|
3192
3200
|
{ type: i0.Component, args: [{
|
|
3193
3201
|
selector: 'aup-table',
|
|
3194
|
-
template: "<table mat-table [dataSource]=\"tableModel.dataSource.value\" [trackBy]=\"tableModel.trackBy\">\n\n <ng-container *ngFor=\"let column of columns.value; index as index; first as first; last as last\"
|
|
3195
|
-
styles: [":host{align-items:stretch;display:flex;flex-direction:column}:host table{flex:1;width:100%}.mat-column-selection-column{width:1px!important}"]
|
|
3202
|
+
template: "<table mat-table [dataSource]=\"tableModel.dataSource.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()\">\n <aup-table-header-cell-renderer [column]=\"column\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class.first-column]=\"first\"\n [class.last-column]=\"last\"\n ></aup-table-header-cell-renderer>\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 >\n <aup-table-cell-renderer [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.first-column]=\"first\"\n [class.last-column]=\"last\"\n ></aup-table-cell-renderer>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds.value\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds.value; let i = index\"\n [ngClass]=\"tableModel.getRowClasses(row)\" [class.enable-hover]=\"tableModel.isHoverEnabled()\"\n [attr.trackBy]=\"tableModel.trackBy(i, row)\"\n ></tr>\n\n</table>\n",
|
|
3203
|
+
styles: [":host{align-items:stretch;display:flex;flex-direction:column}:host table{flex:1;width:100%}.mat-column-selection-column{width:1px!important}.mat-cell:not(.flex){white-space:nowrap;width:1px}"]
|
|
3196
3204
|
},] }
|
|
3197
3205
|
];
|
|
3198
3206
|
TableComponent.ctorParameters = function () { return []; };
|