@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
22 lines (17 loc) • 936 B
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
import { e as watchBoolean, N as watchNumber, b as watchValidator } from './common-Cx_AGO_M.js';
const validateHasCounter = (component, value, options) => {
watchBoolean(component, '_hasCounter', value, options);
};
const validateMaxLength = (component, value, options = {}) => {
watchNumber(component, '_maxLength', value, Object.assign({ min: 0 }, options));
};
const maxLengthBehaviorPropTypeOptions = ['hard', 'soft'];
const validateMaxLengthBehavior = (component, value) => {
watchValidator(component, '_maxLengthBehavior', (value) => typeof value === 'string' && maxLengthBehaviorPropTypeOptions.includes(value), new Set(['String {hard, soft}']), value);
};
export { validateHasCounter as a, validateMaxLength as b, validateMaxLengthBehavior as v };
//# sourceMappingURL=max-length-behavior-CpaNmMus.js.map
//# sourceMappingURL=max-length-behavior-CpaNmMus.js.map