@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.
- package/CHANGELOG.md +7 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +15 -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/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/esm2015/lib/components/table/table-model.js +2 -2
- package/esm2015/lib/components/table/table-model.js.map +1 -1
- package/esm2015/lib/components/table/table-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/esm5/lib/components/table/table-model.js +2 -2
- package/esm5/lib/components/table/table-model.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +15 -5
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +15 -5
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/table/column-model.d.ts +1 -1
- package/lib/components/table/table-model.d.ts +5 -2
- package/package.json +1 -1
|
@@ -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,
|
|
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
|
|
1852
|
-
|
|
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,
|
|
2085
|
-
return this.addColumn(new CustomValueColumnModel(columnId, this, function (row) { return row; })).cellRenderer(component,
|
|
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));
|