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.

18 lines 715 B
import { maxDateValidator, minDateValidator, requiredValidator, } from '../common/validators.js'; import { DateTimeUtil } from './date-util.js'; export const dateTimeInputValidators = [ requiredValidator, { ...minDateValidator, isValid: (host) => host.value && host.min ? !DateTimeUtil.lessThanMinValue(host.value || new Date(), host.min, host.hasTimeParts, host.hasDateParts) : true, }, { ...maxDateValidator, isValid: (host) => host.value && host.max ? !DateTimeUtil.greaterThanMaxValue(host.value || new Date(), host.max, host.hasTimeParts, host.hasDateParts) : true, }, ]; //# sourceMappingURL=validators.js.map