(max: {old: number; new: number})
| 241 | } |
| 242 | |
| 243 | private _updateMaxRange(max: {old: number; new: number}): void { |
| 244 | const endInput = this._getInput(_MatThumb.END) as _MatSliderRangeThumb; |
| 245 | const startInput = this._getInput(_MatThumb.START) as _MatSliderRangeThumb; |
| 246 | |
| 247 | const oldEndValue = endInput.value; |
| 248 | const oldStartValue = startInput.value; |
| 249 | |
| 250 | endInput.max = max.new; |
| 251 | startInput.max = Math.min(max.new, endInput.value); |
| 252 | endInput.min = startInput.value; |
| 253 | |
| 254 | endInput._updateWidthInactive(); |
| 255 | startInput._updateWidthInactive(); |
| 256 | |
| 257 | max.new > max.old |
| 258 | ? this._onTranslateXChangeBySideEffect(startInput, endInput) |
| 259 | : this._onTranslateXChangeBySideEffect(endInput, startInput); |
| 260 | |
| 261 | if (oldEndValue !== endInput.value) { |
| 262 | this._onValueChange(endInput); |
| 263 | } |
| 264 | |
| 265 | if (oldStartValue !== startInput.value) { |
| 266 | this._onValueChange(startInput); |
| 267 | } |
| 268 | } |
| 269 | |
| 270 | private _updateMaxNonRange(max: number): void { |
| 271 | const input = this._getInput(_MatThumb.END); |
no test coverage detected