* @override
(amount: number, unit: string, preserveDate: boolean)
| 415 | * @override |
| 416 | */ |
| 417 | _modifyDateValue(amount: number, unit: string, preserveDate: boolean) { |
| 418 | if (!this.dateValue) { |
| 419 | return; |
| 420 | } |
| 421 | |
| 422 | const modifiedDate = modifyDateBy(CalendarDate.fromLocalJSDate(this.dateValue), amount, unit, preserveDate, this._minDate, this._maxDate); |
| 423 | const modifiedLocalDate = modifiedDate.toLocalJSDate(); |
| 424 | modifiedLocalDate.setHours(this.dateValue.getHours()); |
| 425 | modifiedLocalDate.setMinutes(this.dateValue.getMinutes()); |
| 426 | modifiedLocalDate.setSeconds(this.dateValue.getSeconds()); |
| 427 | |
| 428 | const newValue = this.formatValue(modifiedLocalDate); |
| 429 | this._updateValueAndFireEvents(newValue, true, ["change", "value-changed"]); |
| 430 | } |
| 431 | |
| 432 | /** |
| 433 | * @override |
nothing calls this directly
no test coverage detected