import Ember from 'ember';
import $ from 'jquery';

export default Ember.Component.extend({

});

@@ -86,12 +86,492 @@
 tend(%7B%0A%0A
+  emMin (value) %7B%0A    if (this.get('validate')) %7B%0A      return this.get('validate').length %3C parseInt(value);%0A    %7D%0A  %7D,%0A%0A  emMax (value) %7B%0A    return this.get('validate').length %3E parseInt(value);%0A  %7D,%0A%0A  emPattern (value) %7B%0A    const reg = new RegExp(%60$%7Bvalue%7D%60);%0A    if (this.get('validate').length) %7B%0A      return !reg.test(this.get('validate'));%0A    %7D%0A  %7D,%0A%0A  emRequired () %7B%0A    if (this.$().hasClass('is-touched')) %7B%0A      return this.get('validate').length %3C 1;%0A    %7D%0A  %7D%0A
 %7D);%0A

Set validation function for min, max, pattern and required