igniteui-angular 15.1.26 → 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.
- package/esm2020/lib/slider/slider.component.mjs +19 -19
- package/fesm2015/igniteui-angular.mjs +18 -18
- package/fesm2015/igniteui-angular.mjs.map +1 -1
- package/fesm2020/igniteui-angular.mjs +18 -18
- package/fesm2020/igniteui-angular.mjs.map +1 -1
- package/lib/slider/slider.component.d.ts +0 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
86627
|
-
|
|
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
|
-
|
|
86634
|
-
|
|
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.
|
|
86641
|
-
upper: this.
|
|
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
|
-
|
|
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
|
-
|
|
86726
|
-
|
|
86727
|
-
|
|
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
|
}
|