igniteui-angular 15.1.25 → 15.1.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.
@@ -66533,7 +66533,6 @@ class IgxGridBaseDirective extends DisplayDensityBase {
66533
66533
  computedWidth = this.calcWidth ||
66534
66534
  parseInt(this.document.defaultView.getComputedStyle(this.nativeElement).getPropertyValue('width'), 10);
66535
66535
  }
66536
- computedWidth -= this.featureColumnsWidth();
66537
66536
  const visibleChildColumns = this.visibleColumns.filter(c => !c.columnGroup);
66538
66537
  // Column layouts related
66539
66538
  let visibleCols = [];
@@ -66564,6 +66563,7 @@ class IgxGridBaseDirective extends DisplayDensityBase {
66564
66563
  if (!sumExistingWidths && !columnsToSize) {
66565
66564
  return '0px';
66566
66565
  }
66566
+ computedWidth -= this.featureColumnsWidth();
66567
66567
  const columnWidth = Math.floor(!Number.isFinite(sumExistingWidths) ?
66568
66568
  Math.max(computedWidth / columnsToSize, this.minColumnWidth) :
66569
66569
  Math.max((computedWidth - sumExistingWidths) / columnsToSize, this.minColumnWidth));
@@ -67808,8 +67808,8 @@ class IgxGridBaseDirective extends DisplayDensityBase {
67808
67808
  sizing process which of course, uses values from the caches, thus resulting
67809
67809
  in a broken layout.
67810
67810
  */
67811
- this.resetCaches(recalcFeatureWidth);
67812
67811
  this.cdr.detectChanges();
67812
+ this.resetCaches(recalcFeatureWidth);
67813
67813
  const hasScroll = this.hasVerticalScroll();
67814
67814
  this.calculateGridWidth();
67815
67815
  this.resetCaches(recalcFeatureWidth);
@@ -86423,6 +86423,7 @@ class IgxSliderComponent {
86423
86423
  const adjustedValue = this.valueInRange(value, this.lowerBound, this.upperBound);
86424
86424
  if (this._lowerValue !== adjustedValue) {
86425
86425
  this._lowerValue = adjustedValue;
86426
+ this.lowerValueChange.emit(this._lowerValue);
86426
86427
  this.value = { lower: this._lowerValue, upper: this._upperValue };
86427
86428
  }
86428
86429
  }
@@ -86457,6 +86458,7 @@ class IgxSliderComponent {
86457
86458
  const adjustedValue = this.valueInRange(value, this.lowerBound, this.upperBound);
86458
86459
  if (this._upperValue !== adjustedValue) {
86459
86460
  this._upperValue = adjustedValue;
86461
+ this.upperValueChange.emit(this._upperValue);
86460
86462
  this.value = { lower: this._lowerValue, upper: this._upperValue };
86461
86463
  }
86462
86464
  }
@@ -86623,27 +86625,25 @@ class IgxSliderComponent {
86623
86625
  const oldValue = this.value;
86624
86626
  if (this.isRange) {
86625
86627
  if (thumbType === SliderHandle.FROM) {
86626
- const newLower = this.lowerValue + value;
86627
- if (newLower >= this.lowerBound && newLower <= this.upperValue) {
86628
- this._lowerValue = newLower;
86629
- this.lowerValueChange.emit(this._lowerValue);
86628
+ if (this.lowerValue + value > this.upperValue) {
86629
+ this.upperValue = this.lowerValue + value;
86630
86630
  }
86631
+ this.lowerValue += value;
86631
86632
  }
86632
86633
  else {
86633
- const newUpper = this.upperValue + value;
86634
- if (newUpper <= this.upperBound && newUpper >= this.lowerValue) {
86635
- this._upperValue = newUpper;
86636
- this.upperValueChange.emit(this._upperValue);
86634
+ if (this.upperValue + value < this.lowerValue) {
86635
+ this.lowerValue = this.upperValue + value;
86637
86636
  }
86637
+ this.upperValue += value;
86638
86638
  }
86639
86639
  const newVal = {
86640
- lower: this._lowerValue,
86641
- upper: this._upperValue
86640
+ lower: this.lowerValue,
86641
+ upper: this.upperValue
86642
86642
  };
86643
86643
  // Swap the thumbs if a collision appears.
86644
- if (newVal.lower == newVal.upper) {
86645
- this.toggleThumb();
86646
- }
86644
+ // if (newVal.lower == newVal.upper) {
86645
+ // this.toggleThumb();
86646
+ // }
86647
86647
  this.value = newVal;
86648
86648
  }
86649
86649
  else {
@@ -86721,11 +86721,11 @@ class IgxSliderComponent {
86721
86721
  calculateStepDistance() {
86722
86722
  return this._el.nativeElement.getBoundingClientRect().width / (this.maxValue - this.minValue) * this.step;
86723
86723
  }
86724
- toggleThumb() {
86725
- return this.thumbFrom.isActive ?
86726
- this.thumbTo.nativeElement.focus() :
86727
- this.thumbFrom.nativeElement.focus();
86728
- }
86724
+ // private toggleThumb() {
86725
+ // return this.thumbFrom.isActive ?
86726
+ // this.thumbTo.nativeElement.focus() :
86727
+ // this.thumbFrom.nativeElement.focus();
86728
+ // }
86729
86729
  valueInRange(value, min = 0, max = 100) {
86730
86730
  return Math.max(Math.min(value, max), min);
86731
86731
  }