UNPKG

@public-ui/components

Version:

Contains all web components that belong to KoliBri - The accessible HTML-Standard.

26 lines (20 loc) 988 B
/*! * KoliBri - The accessible HTML-Standard */ 'use strict'; var common = require('./common-DPb6NWR4.js'); const validateHasCounter = (component, value, options) => { common.watchBoolean(component, '_hasCounter', value, options); }; const validateMaxLength = (component, value, options = {}) => { common.watchNumber(component, '_maxLength', value, Object.assign({ min: 0 }, options)); }; const maxLengthBehaviorPropTypeOptions = ['hard', 'soft']; const validateMaxLengthBehavior = (component, value) => { common.watchValidator(component, '_maxLengthBehavior', (value) => typeof value === 'string' && maxLengthBehaviorPropTypeOptions.includes(value), new Set(['String {hard, soft}']), value); }; exports.validateHasCounter = validateHasCounter; exports.validateMaxLength = validateMaxLength; exports.validateMaxLengthBehavior = validateMaxLengthBehavior; //# sourceMappingURL=max-length-behavior-CqAwfrV8.js.map //# sourceMappingURL=max-length-behavior-CqAwfrV8.js.map