@coolon/angular-ui-powerups 2.0.0-alpha.0 → 2.0.0-alpha.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.
- package/CHANGELOG.md +7 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +10 -3
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +2 -2
- 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/forms/abstract-value-input.component.js +9 -3
- package/esm2015/lib/components/forms/abstract-value-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/abstract-value-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/number-input/number-input.component.js.map +1 -1
- package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/table/table.component.js +3 -2
- package/esm2015/lib/components/table/table.component.js.map +1 -1
- package/esm2015/lib/components/table/table.component.metadata.json +1 -1
- package/esm2015/lib/components/table/table.component.scss.ngstyle.js.map +1 -0
- package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/forms/abstract-value-input.component.js +9 -3
- package/esm5/lib/components/forms/abstract-value-input.component.js.map +1 -1
- package/esm5/lib/components/forms/number-input/number-input.component.js.map +1 -1
- package/esm5/lib/components/table/table-cell-renderer/table-cell-renderer.component.js.map +1 -1
- package/esm5/lib/components/table/table.component.js +3 -2
- package/esm5/lib/components/table/table.component.js.map +1 -1
- package/esm5/lib/components/table/table.component.scss.ngstyle.js.map +1 -0
- package/fesm2015/coolon-angular-ui-powerups.js +11 -4
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +11 -4
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/forms/abstract-value-input.component.d.ts +1 -0
- package/package.json +1 -1
- package/esm2015/lib/components/table/table.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/table/table.component.scss.shim.ngstyle.js.map +0 -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
|
+
## [2.0.0-alpha.1](https://bitbucket.org/coolon/angular-ui-powerups/compare/v2.0.0-alpha.0...v2.0.0-alpha.1) (2020-07-22)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* removed view encapsulation from aup-table and added column ids ([6fd47c0](https://bitbucket.org/coolon/angular-ui-powerups/commit/6fd47c042b1b32df595d1668c2ae68cd46319be6))
|
|
11
|
+
|
|
5
12
|
## [2.0.0-alpha.0](https://bitbucket.org/coolon/angular-ui-powerups/compare/v1.21.0...v2.0.0-alpha.0) (2020-07-02)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -879,7 +879,7 @@
|
|
|
879
879
|
var AbstractValueInputComponent = /** @class */ (function (_super) {
|
|
880
880
|
__extends(AbstractValueInputComponent, _super);
|
|
881
881
|
function AbstractValueInputComponent() {
|
|
882
|
-
var _this = _super
|
|
882
|
+
var _this = _super.call(this) || this;
|
|
883
883
|
/**
|
|
884
884
|
* A backing model for all our @Input() valueModel properties which should be defined as follows.
|
|
885
885
|
*
|
|
@@ -892,10 +892,16 @@
|
|
|
892
892
|
*/
|
|
893
893
|
// We have to register it as a disposable so it ditches any listeners when we're disposed.
|
|
894
894
|
_this.inputModel = _this.registerDisposable(new pectin.Form.DelegatingValueModel());
|
|
895
|
+
_this.inputModel.onTransactionStart(function (tx) {
|
|
896
|
+
tx.onRootTransactionFinalised(function () {
|
|
897
|
+
console.log({ changed: tx.hasChanged() });
|
|
898
|
+
});
|
|
899
|
+
});
|
|
895
900
|
return _this;
|
|
896
901
|
}
|
|
897
902
|
AbstractValueInputComponent = __decorate([
|
|
898
|
-
core.Component({ template: '' })
|
|
903
|
+
core.Component({ template: '' }),
|
|
904
|
+
__metadata("design:paramtypes", [])
|
|
899
905
|
], AbstractValueInputComponent);
|
|
900
906
|
return AbstractValueInputComponent;
|
|
901
907
|
}(AbstractInputComponent));
|
|
@@ -2145,7 +2151,8 @@
|
|
|
2145
2151
|
TableComponent = __decorate([
|
|
2146
2152
|
core.Component({
|
|
2147
2153
|
selector: 'aup-table',
|
|
2148
|
-
template: "<table mat-table [dataSource]=\"tableModel.dataSource.value\" [trackBy]=\"tableModel.getTrackByFunction()\">\n\n <ng-container *ngFor=\"let column of columns.value; index as index; first as first; last as last\" matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef>\n <aup-table-header-cell-renderer [column]=\"column\"\n [attr.column-index]=\"index\"\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)=\"onCellClicked(column, row)\" [class.enable-cursor]=\"tableModel.isRowSelectionEnabledFor(column)\">\n <aup-table-cell-renderer [column]=\"column\"\n [row]=\"row\"\n [tableModel]=\"tableModel\"\n [editSession]=\"tableModel.getEditSessionFor(row)\"\n [attr.column-index]=\"index\"\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;\"\n [ngClass]=\"tableModel.getRowClasses(row)\"\n ></tr>\n\n</table>\n",
|
|
2154
|
+
template: "<table mat-table [dataSource]=\"tableModel.dataSource.value\" [trackBy]=\"tableModel.getTrackByFunction()\">\n\n <ng-container *ngFor=\"let column of columns.value; index as index; first as first; last as last\" matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef>\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)=\"onCellClicked(column, row)\" [class.enable-cursor]=\"tableModel.isRowSelectionEnabledFor(column)\">\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;\"\n [ngClass]=\"tableModel.getRowClasses(row)\"\n ></tr>\n\n</table>\n",
|
|
2155
|
+
encapsulation: core.ViewEncapsulation.None,
|
|
2149
2156
|
styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host table{flex:1}"]
|
|
2150
2157
|
}),
|
|
2151
2158
|
__metadata("design:paramtypes", [])
|