UNPKG

graphdb-workbench

Version:
2 lines 576 B
export const __webpack_id__=30222;export const __webpack_ids__=[30222];export const __webpack_modules__={30222:()=>{angular.module("graphdb.framework.core.directives.length-validator",[]).directive("lengthValidator",function(){return{restrict:"A",require:"ngModel",link:function(e,t,n,r){function a(e){const t=n.minLength?parseInt(n.minLength,10):0,a=n.maxLength?parseInt(n.maxLength,10):1/0,i=e&&e.length>=t&&e.length<=a;return r.$setValidity("lengthValidator",i),e}r.$parsers.push(a),r.$formatters.push(a)}}})}}; //# sourceMappingURL=30222.dcf84a99c9824570a31d.bundle.js.map