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.
@@ -66730,7 +66730,6 @@ class IgxGridBaseDirective extends DisplayDensityBase {
66730
66730
  computedWidth = this.calcWidth ||
66731
66731
  parseInt(this.document.defaultView.getComputedStyle(this.nativeElement).getPropertyValue('width'), 10);
66732
66732
  }
66733
- computedWidth -= this.featureColumnsWidth();
66734
66733
  const visibleChildColumns = this.visibleColumns.filter(c => !c.columnGroup);
66735
66734
  // Column layouts related
66736
66735
  let visibleCols = [];
@@ -66761,6 +66760,7 @@ class IgxGridBaseDirective extends DisplayDensityBase {
66761
66760
  if (!sumExistingWidths && !columnsToSize) {
66762
66761
  return '0px';
66763
66762
  }
66763
+ computedWidth -= this.featureColumnsWidth();
66764
66764
  const columnWidth = Math.floor(!Number.isFinite(sumExistingWidths) ?
66765
66765
  Math.max(computedWidth / columnsToSize, this.minColumnWidth) :
66766
66766
  Math.max((computedWidth - sumExistingWidths) / columnsToSize, this.minColumnWidth));
@@ -68003,8 +68003,8 @@ class IgxGridBaseDirective extends DisplayDensityBase {
68003
68003
  sizing process which of course, uses values from the caches, thus resulting
68004
68004
  in a broken layout.
68005
68005
  */
68006
- this.resetCaches(recalcFeatureWidth);
68007
68006
  this.cdr.detectChanges();
68007
+ this.resetCaches(recalcFeatureWidth);
68008
68008
  const hasScroll = this.hasVerticalScroll();
68009
68009
  this.calculateGridWidth();
68010
68010
  this.resetCaches(recalcFeatureWidth);
@@ -86481,6 +86481,7 @@ class IgxSliderComponent {
86481
86481
  const adjustedValue = this.valueInRange(value, this.lowerBound, this.upperBound);
86482
86482
  if (this._lowerValue !== adjustedValue) {
86483
86483
  this._lowerValue = adjustedValue;
86484
+ this.lowerValueChange.emit(this._lowerValue);
86484
86485
  this.value = { lower: this._lowerValue, upper: this._upperValue };
86485
86486
  }
86486
86487
  }
@@ -86515,6 +86516,7 @@ class IgxSliderComponent {
86515
86516
  const adjustedValue = this.valueInRange(value, this.lowerBound, this.upperBound);
86516
86517
  if (this._upperValue !== adjustedValue) {
86517
86518
  this._upperValue = adjustedValue;
86519
+ this.upperValueChange.emit(this._upperValue);
86518
86520
  this.value = { lower: this._lowerValue, upper: this._upperValue };
86519
86521
  }
86520
86522
  }
@@ -86681,27 +86683,25 @@ class IgxSliderComponent {
86681
86683
  const oldValue = this.value;
86682
86684
  if (this.isRange) {
86683
86685
  if (thumbType === SliderHandle.FROM) {
86684
- const newLower = this.lowerValue + value;
86685
- if (newLower >= this.lowerBound && newLower <= this.upperValue) {
86686
- this._lowerValue = newLower;
86687
- this.lowerValueChange.emit(this._lowerValue);
86686
+ if (this.lowerValue + value > this.upperValue) {
86687
+ this.upperValue = this.lowerValue + value;
86688
86688
  }
86689
+ this.lowerValue += value;
86689
86690
  }
86690
86691
  else {
86691
- const newUpper = this.upperValue + value;
86692
- if (newUpper <= this.upperBound && newUpper >= this.lowerValue) {
86693
- this._upperValue = newUpper;
86694
- this.upperValueChange.emit(this._upperValue);
86692
+ if (this.upperValue + value < this.lowerValue) {
86693
+ this.lowerValue = this.upperValue + value;
86695
86694
  }
86695
+ this.upperValue += value;
86696
86696
  }
86697
86697
  const newVal = {
86698
- lower: this._lowerValue,
86699
- upper: this._upperValue
86698
+ lower: this.lowerValue,
86699
+ upper: this.upperValue
86700
86700
  };
86701
86701
  // Swap the thumbs if a collision appears.
86702
- if (newVal.lower == newVal.upper) {
86703
- this.toggleThumb();
86704
- }
86702
+ // if (newVal.lower == newVal.upper) {
86703
+ // this.toggleThumb();
86704
+ // }
86705
86705
  this.value = newVal;
86706
86706
  }
86707
86707
  else {
@@ -86779,11 +86779,11 @@ class IgxSliderComponent {
86779
86779
  calculateStepDistance() {
86780
86780
  return this._el.nativeElement.getBoundingClientRect().width / (this.maxValue - this.minValue) * this.step;
86781
86781
  }
86782
- toggleThumb() {
86783
- return this.thumbFrom.isActive ?
86784
- this.thumbTo.nativeElement.focus() :
86785
- this.thumbFrom.nativeElement.focus();
86786
- }
86782
+ // private toggleThumb() {
86783
+ // return this.thumbFrom.isActive ?
86784
+ // this.thumbTo.nativeElement.focus() :
86785
+ // this.thumbFrom.nativeElement.focus();
86786
+ // }
86787
86787
  valueInRange(value, min = 0, max = 100) {
86788
86788
  return Math.max(Math.min(value, max), min);
86789
86789
  }