* Checks if a date is between the minimum and maximum date. * @public * @param value A value to be checked
(value: string)
| 747 | * @param value A value to be checked |
| 748 | */ |
| 749 | isInValidRange(value: string): boolean { |
| 750 | if (value === "" || value === undefined) { |
| 751 | return true; |
| 752 | } |
| 753 | |
| 754 | const calendarDate = this._getCalendarDateFromString(value); |
| 755 | |
| 756 | if (!calendarDate || !this._minDate || !this._maxDate) { |
| 757 | return false; |
| 758 | } |
| 759 | |
| 760 | return calendarDate.valueOf() >= this._minDate.valueOf() && calendarDate.valueOf() <= this._maxDate.valueOf(); |
| 761 | } |
| 762 | |
| 763 | isValidMin(value: string): boolean { |
| 764 | if (value === "" || value === undefined) { |
no test coverage detected