@coolon/angular-ui-powerups 2.0.0-alpha.11 → 2.0.0-alpha.12

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.
@@ -1845,13 +1845,23 @@ var CustomValueColumnModel = /** @class */ (function (_super) {
1845
1845
  _this.cellRenderer(DefaultCellRendererComponent);
1846
1846
  return _this;
1847
1847
  }
1848
- CustomValueColumnModel.prototype.cellRenderer = function (componentType, onComponentInit) {
1848
+ CustomValueColumnModel.prototype.cellRenderer = function (componentType, onComponentInitOrOptions) {
1849
1849
  var _this = this;
1850
1850
  this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData, firstTime) {
1851
- if (firstTime && ___default.isFunction(onComponentInit)) {
1852
- onComponentInit(component);
1851
+ if (firstTime) {
1852
+ if (___default.isFunction(onComponentInitOrOptions)) {
1853
+ onComponentInitOrOptions(component);
1854
+ }
1855
+ else {
1856
+ if (___default.isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onComponentInit)) {
1857
+ onComponentInitOrOptions.onComponentInit(component);
1858
+ }
1859
+ }
1853
1860
  }
1854
1861
  component.value = _this.getValue(rowData.row);
1862
+ if (!___default.isFunction(onComponentInitOrOptions) && ___default.isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onRowUpdate)) {
1863
+ onComponentInitOrOptions.onRowUpdate(component, rowData.row);
1864
+ }
1855
1865
  }));
1856
1866
  return this;
1857
1867
  };
@@ -2081,8 +2091,8 @@ var TableModel = /** @class */ (function () {
2081
2091
  TableModel.prototype.addCustomColumn = function (columnId, dataAccessor) {
2082
2092
  return this.addColumn(new CustomValueColumnModel(columnId, this, dataAccessor));
2083
2093
  };
2084
- TableModel.prototype.addComponentColumn = function (columnId, component, onInit) {
2085
- return this.addColumn(new CustomValueColumnModel(columnId, this, function (row) { return row; })).cellRenderer(component, onInit);
2094
+ TableModel.prototype.addComponentColumn = function (columnId, component, onComponentInitOrOptions) {
2095
+ return this.addColumn(new CustomValueColumnModel(columnId, this, function (row) { return row; })).cellRenderer(component, onComponentInitOrOptions);
2086
2096
  };
2087
2097
  TableModel.prototype.addTemplateColumn = function (columnId) {
2088
2098
  return this.addColumn(new CustomTemplateColumnModel(columnId, this));