UNPKG

igniteui-webcomponents

Version:

Ignite UI for Web Components is a complete library of UI components, giving you the ability to build modern web applications using encapsulation and the concept of reusable components in a dependency-free approach.

15 lines 647 B
import { isDateInRanges } from '../calendar/helpers.js'; import messages from '../common/localization/validation-en.js'; import { formatString } from '../common/util.js'; import { maxDateValidator, minDateValidator, requiredValidator, } from '../common/validators.js'; export const datePickerValidators = [ requiredValidator, minDateValidator, maxDateValidator, { key: 'badInput', message: ({ value }) => formatString(messages.disabledDate, value), isValid: ({ value, disabledDates }) => value && disabledDates ? !isDateInRanges(value, disabledDates) : true, }, ]; //# sourceMappingURL=validators.js.map