@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 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, onComponentInit) {
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 && onComponentInit) {
1770
- onComponentInit(component);
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
  };