@coolon/angular-ui-powerups 12.4.0-alpha.67 → 12.4.0-alpha.69

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, regex) {
2944
- return regex.test(row.toString());
2945
- };
2946
2943
  return DefaultCellRendererComponent;
2947
2944
  }());
2948
2945
  DefaultCellRendererComponent.decorators = [
@@ -3197,7 +3194,7 @@
3197
3194
  };
3198
3195
  ColumnModel.prototype.onRendererAttached = function (host, component) {
3199
3196
  this._cellRendererPortalRef.onPortalAttached(host, component);
3200
- if (___default["default"].isFunction(component.matches)) {
3197
+ if (___default["default"].isFunction(component === null || component === void 0 ? void 0 : component.matches)) {
3201
3198
  this._cellRendererTextSearchPredicate = function (row, text) { return component.matches(row, text); };
3202
3199
  }
3203
3200
  else {
@@ -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) {