@coolon/angular-ui-powerups 12.4.0-alpha.66 → 12.4.0-alpha.68

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.
@@ -2940,9 +2940,6 @@
2940
2940
  enumerable: false,
2941
2941
  configurable: true
2942
2942
  });
2943
- DefaultCellRendererComponent.prototype.matches = function (row, text) {
2944
- return row.toString().includes(text);
2945
- };
2946
2943
  return DefaultCellRendererComponent;
2947
2944
  }());
2948
2945
  DefaultCellRendererComponent.decorators = [
@@ -3237,8 +3234,11 @@
3237
3234
  function PropertyColumnModel(id, property, defaults) {
3238
3235
  var _this = _super.call(this, id, defaults) || this;
3239
3236
  _this.property = property;
3240
- _this._format = function (value) { return value; };
3237
+ _this._format = function (value) { return value === null || value === void 0 ? void 0 : value.toString(); };
3241
3238
  _this.cellRenderer(DefaultCellRendererComponent);
3239
+ _this.useTextSearchPredicate(function (row, regex) {
3240
+ return regex.test(_this._format(row[_this.property]));
3241
+ });
3242
3242
  return _this;
3243
3243
  }
3244
3244
  PropertyColumnModel.prototype.cellRenderer = function (componentType, onComponentInitOrOptions) {
@@ -3328,6 +3328,9 @@
3328
3328
  _this.property = property;
3329
3329
  _this._format = function (value) { return value.map(function (v) { return v === null || v === void 0 ? void 0 : v.toString(); }).join(', '); };
3330
3330
  _this.cellRenderer(DefaultCellRendererComponent);
3331
+ _this.useTextSearchPredicate(function (row, regex) {
3332
+ return regex.test(_this._format(row[_this.property]));
3333
+ });
3331
3334
  return _this;
3332
3335
  }
3333
3336
  ListPropertyColumnModel.prototype.cellRenderer = function (componentType) {
@@ -3926,8 +3929,11 @@
3926
3929
  _this.rowSelectionDisabledOnAllColumns = chain(_this._columnList).select(function (column) { return column.isRowSelectionEnabled(); }).count().equals(0);
3927
3930
  return _this;
3928
3931
  }
3929
- AbstractTableModel.prototype.findMatchingColumns = function (row, text) {
3930
- return this.columns.value.filter(function (c) { return c.isTextMatch(row, text); });
3932
+ AbstractTableModel.prototype.findMatchingColumns = function (row, regex) {
3933
+ return this.columns.value.filter(function (c) { return c.isTextMatch(row, regex); });
3934
+ };
3935
+ AbstractTableModel.prototype.hasMatchingColumn = function (row, regex) {
3936
+ return !!this.columns.value.find(function (c) { return c.isTextMatch(row, regex); });
3931
3937
  };
3932
3938
  AbstractTableModel.prototype.setDataSource = function (sourceOfTruth) {
3933
3939
  this._dataSource.setDelegate(sourceOfTruth);