@colijnit/corecomponents_v12 260.1.12 → 260.1.14

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.
@@ -11923,7 +11923,12 @@
11923
11923
  this.viewModels.length = 0;
11924
11924
  this.viewModels = this.viewModelsMain.filter(function (vm) {
11925
11925
  return Object.values(vm.model).some(function (value) {
11926
- return value.toString().toLowerCase().includes(_this.searchTerm ? _this.searchTerm.toLowerCase() : '');
11926
+ if (!_this.searchTerm || !value) {
11927
+ return false;
11928
+ }
11929
+ else {
11930
+ return value.toString().toLowerCase().includes(_this.searchTerm.toLowerCase());
11931
+ }
11927
11932
  });
11928
11933
  });
11929
11934
  };
@@ -12055,12 +12060,12 @@
12055
12060
  }
12056
12061
  this.selectedModel = model;
12057
12062
  };
12058
- ListOfValuesComponent.prototype.onModelChange = function (text) {
12063
+ ListOfValuesComponent.prototype.onModelChange = function (model) {
12059
12064
  var _this = this;
12060
12065
  this.isLoading = true;
12061
12066
  clearTimeout(this.debounceTimeout);
12062
12067
  this.debounceTimeout = setTimeout(function () {
12063
- _this.applyFilter(text);
12068
+ _this.applyFilter(model);
12064
12069
  }, 300);
12065
12070
  };
12066
12071
  ListOfValuesComponent.prototype.applyFilter = function (text) {
@@ -12103,6 +12108,9 @@
12103
12108
  (((_b = this.filteredCollection) === null || _b === void 0 ? void 0 : _b.length) > 0 && ((_c = this.filterText) === null || _c === void 0 ? void 0 : _c.length) > 2) ? this.openPopup() : this.closePopup();
12104
12109
  this.isLoading = false;
12105
12110
  this.changeDetector.detectChanges();
12111
+ if (this._lovPopupComponentRef) {
12112
+ this._lovPopupComponentRef.instance.searchTerm = text;
12113
+ }
12106
12114
  return [2 /*return*/];
12107
12115
  }
12108
12116
  });
@@ -15553,7 +15561,8 @@
15553
15561
  return split.join(':');
15554
15562
  };
15555
15563
  HourSchedulingExpandableComponent.prototype.convertTZ = function (date, tzString) {
15556
- return new Date((typeof date === "string" ? new Date(date) : date).toLocaleString("en-US", { timeZone: tzString }));
15564
+ var _a;
15565
+ return new Date((_a = (typeof date === "string" ? new Date(date) : date)) === null || _a === void 0 ? void 0 : _a.toLocaleString("en-US", { timeZone: tzString }));
15557
15566
  };
15558
15567
  HourSchedulingExpandableComponent.prototype.convertDateToEuropean = function (date) {
15559
15568
  return this.convertTZ(date, 'Europe/Amsterdam');