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 • 631 B
JavaScript
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: (host) => formatString(messages.disabledDate, host.value),
isValid: (host) => host.value ? !isDateInRanges(host.value, host.disabledDates ?? []) : true,
},
];
//# sourceMappingURL=validators.js.map