@coolon/angular-ui-powerups 2.0.0-alpha.7 → 2.0.0-alpha.8
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 +13 -3
- 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/esm2015/lib/components/table/column-model.js +13 -3
- package/esm2015/lib/components/table/column-model.js.map +1 -1
- package/esm2015/lib/components/table/column-model.metadata.json +1 -1
- package/esm5/lib/components/table/column-model.js +13 -3
- package/esm5/lib/components/table/column-model.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +13 -3
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +13 -3
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/table/column-model.d.ts +9 -1
- 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
|
+
## [2.0.0-alpha.8](https://bitbucket.org/coolon/angular-ui-powerups/compare/v2.0.0-alpha.7...v2.0.0-alpha.8) (2020-07-24)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* added cell renderer row update hooks ([306291e](https://bitbucket.org/coolon/angular-ui-powerups/commit/306291e76755fb8581782b932c499812ac6446dd))
|
|
11
|
+
|
|
5
12
|
## [2.0.0-alpha.7](https://bitbucket.org/coolon/angular-ui-powerups/compare/v2.0.0-alpha.6...v2.0.0-alpha.7) (2020-07-24)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -1763,13 +1763,23 @@
|
|
|
1763
1763
|
_this.cellRenderer(DefaultCellRendererComponent);
|
|
1764
1764
|
return _this;
|
|
1765
1765
|
}
|
|
1766
|
-
PropertyColumnModel.prototype.cellRenderer = function (componentType,
|
|
1766
|
+
PropertyColumnModel.prototype.cellRenderer = function (componentType, onComponentInitOrOptions) {
|
|
1767
1767
|
var _this = this;
|
|
1768
1768
|
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData, firstTime) {
|
|
1769
|
-
if (firstTime
|
|
1770
|
-
|
|
1769
|
+
if (firstTime) {
|
|
1770
|
+
if (___default__default.isFunction(onComponentInitOrOptions)) {
|
|
1771
|
+
onComponentInitOrOptions(component);
|
|
1772
|
+
}
|
|
1773
|
+
else {
|
|
1774
|
+
if (___default__default.isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onComponentInit)) {
|
|
1775
|
+
onComponentInitOrOptions.onComponentInit(component);
|
|
1776
|
+
}
|
|
1777
|
+
}
|
|
1771
1778
|
}
|
|
1772
1779
|
component.value = _this._format(rowData.row[_this.property]);
|
|
1780
|
+
if (!___default__default.isFunction(onComponentInitOrOptions) && ___default__default.isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onRowUpdate)) {
|
|
1781
|
+
onComponentInitOrOptions.onRowUpdate(component, rowData.row);
|
|
1782
|
+
}
|
|
1773
1783
|
}));
|
|
1774
1784
|
return this;
|
|
1775
1785
|
};
|