igniteui-angular 12.3.0-alpha.1 → 12.3.0

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.
@@ -2121,8 +2121,17 @@
2121
2121
  finally { if (e_1) throw e_1.error; }
2122
2122
  }
2123
2123
  if (expanded) {
2124
- metadata.push.apply(metadata, __spreadArray([], __read(fullResult.metadata.slice(fullResult.metadata.length - group.length))));
2125
- result.push.apply(result, __spreadArray([], __read(fullResult.data.slice(fullResult.data.length - group.length))));
2124
+ // Replaced object destructing as in a single big group scenario
2125
+ // it hits the max number of arguments for a function the underlying JS engine
2126
+ // supports.
2127
+ var j = fullResult.metadata.length - group.length;
2128
+ for (; j < fullResult.metadata.length; j++) {
2129
+ metadata.push(fullResult.metadata[j]);
2130
+ }
2131
+ j = fullResult.data.length - group.length;
2132
+ for (; j < fullResult.data.length; j++) {
2133
+ result.push(fullResult.data[j]);
2134
+ }
2126
2135
  }
2127
2136
  }
2128
2137
  i += group.length;
@@ -41109,9 +41118,6 @@
41109
41118
  // explicitly update selection and trigger text selection so that we don't have to force CD
41110
41119
  this.textSelection.selected = true;
41111
41120
  this.textSelection.trigger();
41112
- var selection = this.selectionService.first_item(this.id);
41113
- this._value = selection !== undefined && selection !== null ? selection : '';
41114
- this._onChangeCallback(selection);
41115
41121
  };
41116
41122
  /** @hidden @internal */
41117
41123
  IgxSimpleComboComponent.prototype.focusSearchInput = function (opening) {
@@ -41151,7 +41157,7 @@
41151
41157
  if (this._updateInput) {
41152
41158
  this.comboInput.value = this._value = displayText !== args.displayText
41153
41159
  ? args.displayText
41154
- : this.createDisplayText([args.newSelection], [args.oldSelection]);
41160
+ : this.createDisplayText(argsSelection, [args.oldSelection]);
41155
41161
  }
41156
41162
  this._onChangeCallback(args.newSelection);
41157
41163
  this._updateInput = true;
@@ -41162,9 +41168,11 @@
41162
41168
  if (this.isRemote) {
41163
41169
  return this.getRemoteSelection(newSelection, oldSelection);
41164
41170
  }
41165
- return this.displayKey !== null && this.displayKey !== undefined
41166
- ? this.convertKeysToItems(newSelection).map(function (e) { return e[_this.displayKey]; })[0]
41167
- : newSelection[0];
41171
+ if (this.displayKey !== null && this.displayKey !== undefined
41172
+ && newSelection.length > 0) {
41173
+ return this.convertKeysToItems(newSelection).map(function (e) { return e[_this.displayKey]; })[0];
41174
+ }
41175
+ return newSelection[0] || '';
41168
41176
  };
41169
41177
  IgxSimpleComboComponent.prototype.clearSelection = function (ignoreFilter) {
41170
41178
  var newSelection = this.selectionService.get_empty();
@@ -52639,15 +52647,23 @@
52639
52647
  var _this = this;
52640
52648
  if (!val && val !== 0) {
52641
52649
  this.expression.searchVal = null;
52642
- this.showHideArrowButtons();
52650
+ var index = this.expressionsList.findIndex(function (item) { return item.expression === _this.expression; });
52651
+ if (index === 0 && this.expressionsList.length === 1) {
52652
+ this.clearFiltering();
52653
+ return;
52654
+ }
52643
52655
  }
52644
52656
  else {
52657
+ var oldValue = this.expression.searchVal;
52658
+ if (isEqual(oldValue, val)) {
52659
+ return;
52660
+ }
52645
52661
  this.expression.searchVal = DataUtil.parseValue(this.column.dataType, val);
52646
52662
  if (this.expressionsList.find(function (item) { return item.expression === _this.expression; }) === undefined) {
52647
52663
  this.addExpression(true);
52648
52664
  }
52665
+ this.filter();
52649
52666
  }
52650
- this.filter();
52651
52667
  },
52652
52668
  enumerable: false,
52653
52669
  configurable: true
@@ -57664,7 +57680,7 @@
57664
57680
  this.rendered$.pipe(operators.takeUntil(this.destroy$)).subscribe(function () {
57665
57681
  if (_this.paginator) {
57666
57682
  _this.paginator.perPage = _this._perPage !== DEFAULT_ITEMS_PER_PAGE ? _this._perPage : _this.paginator.perPage;
57667
- _this.paginator.totalRecords = _this.totalRecords;
57683
+ _this.paginator.totalRecords = _this.totalRecords ? _this.totalRecords : _this.paginator.totalRecords;
57668
57684
  _this.paginator.overlaySettings = { outlet: _this.outlet };
57669
57685
  }
57670
57686
  _this._rendered = true;