@coolon/angular-ui-powerups 2.0.0-alpha.6 → 2.0.0-alpha.7

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.7](https://bitbucket.org/coolon/angular-ui-powerups/compare/v2.0.0-alpha.6...v2.0.0-alpha.7) (2020-07-24)
6
+
7
+
8
+ ### Features
9
+
10
+ * added multi-column support for the same property ([c8b7498](https://bitbucket.org/coolon/angular-ui-powerups/commit/c8b74987cad8dad012c874e7fa6a4e0c9e11aa36))
11
+
5
12
  ## [2.0.0-alpha.6](https://bitbucket.org/coolon/angular-ui-powerups/compare/v2.0.0-alpha.5...v2.0.0-alpha.6) (2020-07-24)
6
13
 
7
14
 
@@ -1756,8 +1756,8 @@
1756
1756
  }());
1757
1757
  var PropertyColumnModel = /** @class */ (function (_super) {
1758
1758
  __extends(PropertyColumnModel, _super);
1759
- function PropertyColumnModel(property, defaults) {
1760
- var _this = _super.call(this, property.toString(), defaults) || this;
1759
+ function PropertyColumnModel(id, property, defaults) {
1760
+ var _this = _super.call(this, id, defaults) || this;
1761
1761
  _this.property = property;
1762
1762
  _this._format = function (value) { return value; };
1763
1763
  _this.cellRenderer(DefaultCellRendererComponent);
@@ -1801,8 +1801,8 @@
1801
1801
  }(ColumnModel));
1802
1802
  var ListPropertyColumnModel = /** @class */ (function (_super) {
1803
1803
  __extends(ListPropertyColumnModel, _super);
1804
- function ListPropertyColumnModel(property, defaults) {
1805
- var _this = _super.call(this, property.toString(), defaults) || this;
1804
+ function ListPropertyColumnModel(id, property, defaults) {
1805
+ var _this = _super.call(this, id, defaults) || this;
1806
1806
  _this.property = property;
1807
1807
  _this._format = function (value) { return value.map(function (v) { return v === null || v === void 0 ? void 0 : v.toString(); }).join(', '); };
1808
1808
  _this.cellRenderer(DefaultCellRendererComponent);
@@ -2036,7 +2036,7 @@
2036
2036
  this.dataSource = chain(this.sourceOfTruth).replaceAll(this.rowsBeingEdited);
2037
2037
  this.firstEditableColumn = chain(this.columns).select(function (c) { return c.hasEditorPortal(); }).first();
2038
2038
  this.hasColumnsWithRowSelectionExplicitlyEnabled = chain(this._columns).findIndex(function (column) { return column.isRowSelectionExplicitlyEnabled(); }).isGreaterThanOrEqualTo(0);
2039
- this.addRowClass("enable-hover", function () { return _this.isRowSelectionEnabled(); });
2039
+ this.addRowClass('enable-hover', function () { return _this.isRowSelectionEnabled(); });
2040
2040
  }
2041
2041
  TableModel_1 = TableModel;
2042
2042
  TableModel.fromList = function (sourceOfTruth, builder) {
@@ -2064,11 +2064,11 @@
2064
2064
  enumerable: true,
2065
2065
  configurable: true
2066
2066
  });
2067
- TableModel.prototype.pluck = function (property) {
2068
- return this.addColumn(new PropertyColumnModel(property, this));
2067
+ TableModel.prototype.pluck = function (property, options) {
2068
+ return this.addColumn(new PropertyColumnModel((options === null || options === void 0 ? void 0 : options.columnId) || property.toString(), property, this));
2069
2069
  };
2070
- TableModel.prototype.pluckList = function (property) {
2071
- return this.addColumn(new ListPropertyColumnModel(property, this));
2070
+ TableModel.prototype.pluckList = function (property, options) {
2071
+ return this.addColumn(new ListPropertyColumnModel((options === null || options === void 0 ? void 0 : options.columnId) || property.toString(), property, this));
2072
2072
  };
2073
2073
  TableModel.prototype.addSelectionColumn = function (selectionModel) {
2074
2074
  pectin.assert.isNil(this.selectionColumnModel);