@coolon/angular-ui-powerups 3.10.3 → 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 +15 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +17 -5
- 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/busy-overlay/busy-overlay.component.js +3 -2
- package/esm2015/lib/components/busy-overlay/busy-overlay.component.js.map +1 -1
- package/esm2015/lib/components/busy-overlay/busy-overlay.component.metadata.json +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/switch-case/switch-case.component.js +3 -1
- package/esm2015/lib/components/switch-case/switch-case.component.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 +96 -86
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/busy-overlay/busy-overlay.component.d.ts +2 -2
- 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,21 @@
|
|
|
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
|
+
|
|
12
|
+
### [3.10.4](https://bitbucket.org/coolon/angular-ui-powerups/compare/v3.10.3...v3.10.4) (2021-02-09)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* fixed issue with incorrect default case handling ([83fd25c](https://bitbucket.org/coolon/angular-ui-powerups/commit/83fd25c19c2acd4301a790a23e81e17604f2d2b5))
|
|
18
|
+
* updated to extend disposable component ([ca5475a](https://bitbucket.org/coolon/angular-ui-powerups/commit/ca5475aab6f3252fc346b8f0c540a72ea97aaf9b))
|
|
19
|
+
|
|
5
20
|
### [3.10.3](https://bitbucket.org/coolon/angular-ui-powerups/compare/v3.10.2...v3.10.3) (2021-02-08)
|
|
6
21
|
|
|
7
22
|
|
|
@@ -632,13 +632,15 @@
|
|
|
632
632
|
},] }
|
|
633
633
|
];
|
|
634
634
|
|
|
635
|
-
var BusyOverlayComponent = /** @class */ (function () {
|
|
635
|
+
var BusyOverlayComponent = /** @class */ (function (_super) {
|
|
636
|
+
__extends(BusyOverlayComponent, _super);
|
|
636
637
|
function BusyOverlayComponent() {
|
|
638
|
+
return _super.call(this) || this;
|
|
637
639
|
}
|
|
638
640
|
BusyOverlayComponent.prototype.ngOnInit = function () {
|
|
639
641
|
};
|
|
640
642
|
return BusyOverlayComponent;
|
|
641
|
-
}());
|
|
643
|
+
}(pectin.GarbageCollector));
|
|
642
644
|
BusyOverlayComponent.decorators = [
|
|
643
645
|
{ type: i0.Component, args: [{
|
|
644
646
|
selector: 'aup-busy-overlay',
|
|
@@ -2284,7 +2286,9 @@
|
|
|
2284
2286
|
}
|
|
2285
2287
|
if (matchingIndicies.length === 0) {
|
|
2286
2288
|
this.switchCaseOptions.forEach(function (option, index) {
|
|
2287
|
-
|
|
2289
|
+
if (option.isDefault) {
|
|
2290
|
+
matchingIndicies.push(index);
|
|
2291
|
+
}
|
|
2288
2292
|
});
|
|
2289
2293
|
if (matchingIndicies.length > 1) {
|
|
2290
2294
|
console.warn("found " + matchingIndicies.length + " default case values, displaying the first.");
|
|
@@ -2586,6 +2590,7 @@
|
|
|
2586
2590
|
this.columnId = columnId;
|
|
2587
2591
|
this.textPropertiesProvider = textPropertiesProvider;
|
|
2588
2592
|
this._selectRowOnClick = undefined;
|
|
2593
|
+
this._flex = false;
|
|
2589
2594
|
this.installHeaderRenderer();
|
|
2590
2595
|
}
|
|
2591
2596
|
ColumnModel.prototype.installHeaderRenderer = function () {
|
|
@@ -2620,6 +2625,13 @@
|
|
|
2620
2625
|
this.configureHeaderRenderer(new CellHeaderPortalRef(componentType, initialiser));
|
|
2621
2626
|
return this;
|
|
2622
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
|
+
};
|
|
2623
2635
|
ColumnModel.prototype.hasEditorPortal = function () {
|
|
2624
2636
|
return !!this._cellEditorPortalRef;
|
|
2625
2637
|
};
|
|
@@ -3187,8 +3199,8 @@
|
|
|
3187
3199
|
TableComponent.decorators = [
|
|
3188
3200
|
{ type: i0.Component, args: [{
|
|
3189
3201
|
selector: 'aup-table',
|
|
3190
|
-
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\"
|
|
3191
|
-
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}"]
|
|
3192
3204
|
},] }
|
|
3193
3205
|
];
|
|
3194
3206
|
TableComponent.ctorParameters = function () { return []; };
|