@apipass/inputs 0.2.5-alpha.25 → 0.2.5-alpha.27

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.
@@ -1225,7 +1225,7 @@
1225
1225
  _this.loading = true;
1226
1226
  _this.lastSearchTerm = searchString;
1227
1227
  if (searchString && _this.data) {
1228
- _this.visibleItens = _this.data.filter(function (item) { var _a; return (_a = item[_this.bindValue]) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(searchString.toLowerCase()); }).slice(0, _this.limitItens);
1228
+ _this.visibleItens = _this.data.filter(function (item) { var _a; return (_a = item[_this.bindValue]) === null || _a === void 0 ? void 0 : _a.toString().toLowerCase().includes(searchString.toLowerCase()); }).slice(0, _this.limitItens);
1229
1229
  }
1230
1230
  else if (_this.data) {
1231
1231
  _this.visibleItens = _this.data.slice(0, _this.limitItens);
@@ -1240,7 +1240,7 @@
1240
1240
  SelectBoxComponent.prototype.onScroll = function (_c) {
1241
1241
  var _this = this;
1242
1242
  var end = _c.end;
1243
- var data = this.lastSearchTerm ? this.data.filter(function (item) { var _a; return (_a = item[_this.bindValue]) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(_this.lastSearchTerm.toLowerCase()); }) : this.data;
1243
+ var data = this.lastSearchTerm ? this.data.filter(function (item) { var _a; return (_a = item[_this.bindValue]) === null || _a === void 0 ? void 0 : _a.toString().toLowerCase().includes(_this.lastSearchTerm.toLowerCase()); }) : this.data;
1244
1244
  if (this.loading || data.length <= this.visibleItens.length) {
1245
1245
  return;
1246
1246
  }
@@ -1259,8 +1259,7 @@
1259
1259
  this.loading = true;
1260
1260
  var len = this.visibleItens.length;
1261
1261
  var more = this.lastSearchTerm ?
1262
- this.data.filter(function (item) { var _a; return (_a = item[_this.bindValue]) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(_this.lastSearchTerm.toLowerCase()); }).slice(len, this.limitItens + len) :
1263
- this.data.slice(len, this.limitItens + len);
1262
+ this.data.filter(function (item) { var _a; return (_a = item[_this.bindValue]) === null || _a === void 0 ? void 0 : _a.toString().toLowerCase().includes(_this.lastSearchTerm.toLowerCase()); }).slice(len, this.limitItens + len) : this.data.slice(len, this.limitItens + len);
1264
1263
  this.visibleItens = this.visibleItens.concat(more);
1265
1264
  this.loading = false;
1266
1265
  };