{"version":3,"sources":["webpack:///src/components/UI/Form/BaseInputFieldController.vue","webpack:///./src/components/UI/Form/BaseInputFieldController.vue","webpack:///./src/components/UI/Form/BaseInputFieldController.vue?a380"],"names":["props","placeholder","type","String","default","label","error","Array","name","fieldType","labelForInput","Boolean","maxLength","Number","disabledStatus","inputCssClass","note","value","Object","Date","$t","disabled","required","onKeyUp","Function","onKeyUpEnter","data","hasPassedValidation","computed","labelId","id","uniqueId","inputId","$refs","for","hasError","isArray","length","methods","uuid","uuidv4","onFocus","e","focus","onBlur","blur","onChange","change","onInput","input","$emit","target","matches","checked","trim"],"mappings":";;;;;;;;;;;;;;;;;;AACA;AAEe;EACfA,KAAA;IACAC,WAAA;MACAC,IAAA,EAAAC,MAAA;MACAC,OAAA;IACA;IACAC,KAAA;MACAH,IAAA,EAAAC,MAAA;MACAC,OAAA;IACA;IACAE,KAAA;MACAJ,IAAA,GAAAC,MAAA,EAAAI,KAAA;MACAH,OAAA;IACA;IACAI,IAAA;MACAN,IAAA,EAAAC,MAAA;MACAC,OAAA;IACA;IACAK,SAAA;MACAP,IAAA,EAAAC,MAAA;MACAC,OAAA;IACA;IACAM,aAAA;MACAR,IAAA,EAAAS,OAAA;MACAP,OAAA;IACA;IACAQ,SAAA;MACAV,IAAA,EAAAW,MAAA;MACAT,OAAA;IACA;IACAU,cAAA;MACAZ,IAAA,EAAAS,OAAA;MACAP,OAAA;IACA;IACAW,aAAA;MACAb,IAAA,EAAAC,MAAA;MACAC,OAAA;MACAY,IAAA;IACA;IACAC,KAAA;MACAf,IAAA,GAAAgB,MAAA,EAAAf,MAAA,EAAAU,MAAA,EAAAM,IAAA,EAAAR,OAAA;MACAP,OAAA;MACAY,IAAA,WAAAA,KAAA;QAAA,YAAAI,EAAA;MAAA;IACA;IACAC,QAAA;MACAnB,IAAA,EAAAS,OAAA;MACAP,OAAA;MACAY,IAAA,WAAAA,KAAA;QAAA,YAAAI,EAAA;MAAA;IACA;IACAE,QAAA;MACApB,IAAA,EAAA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,KAAA,SAAAR,CAAA;IACA;IACAK,MAAA,WAAAA,OAAAL,CAAA;MACA,IAAAzB,KAAA,GAAAyB,CAAA,CAAAS,MAAA,CAAAC,OAAA,wBACAV,CAAA,CAAAS,MAAA,CAAAE,OAAA,GACAX,CAAA,CAAAS,MAAA,CAAAlC,KAAA,CAAAqC,IAAA;MAEA,KAAAJ,KAAA,WAAAjC,KAAA;IACA;IACAgC,KAAA,WAAAA,MAAAP,CAAA;MACA,IAAAzB,KAAA,GAAAyB,CAAA,CAAAS,MAAA,CAAAC,OAAA,wBACAV,CAAA,CAAAS,MAAA,CAAAE,OAAA,GACAX,CAAA,CAAAS,MAAA,CAAAlC,KAAA,CAAAqC,IAAA;MAEA,KAAAJ,KAAA,UAAAjC,KAAA;IACA,EAEA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;EACA;AACA,CAAC,E;;;;;;;;;;;;;ACvJD;AAAA;AAAA;AAC2E;AACL;;;AAGtE;AACgG;AAChG,gBAAgB,mHAAU;AAC1B,EAAE,qGAAM;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,IAAI,KAAU,EAAE,YAYf;AACD;AACe,0E;;;;;;;;;;;;;ACjCf;AAA4T,CAAgB,0VAAG,EAAC,C","file":"js/465.js?id=0ae6edb0205b760acda3","sourcesContent":["<script>\nimport { v4 as uuidv4 } from 'uuid'\n\nexport default {\n  props: {\n    placeholder: {\n      type: String,\n      default: ''\n    },\n    label: {\n      type: String,\n      default: ''\n    },\n    error: {\n      type: [String, Array],\n      default: ''\n    },\n    name: {\n      type: String,\n      default: ''\n    },\n    fieldType: {\n      type: String,\n      default: 'text'\n    },\n    labelForInput: {\n      type: Boolean,\n      default: true\n    },\n    maxLength: {\n      type: Number,\n      default: 10000\n    },\n    disabledStatus: {\n      type: Boolean,\n      default: false\n    },\n    inputCssClass: {\n      type: String,\n      default: '',\n      note: 'Bulma class name size. is-small, is-medium, is-large. By leaving this empty the size will be set to normal.'\n    },\n    value: {\n      type: [Object, String, Number, Date, Boolean],\n      default: '',\n      note: function() { return this.$t('Components.UI.Form.BaseInputFieldController.Value_Note') }\n    },\n    disabled: {\n      type: Boolean,\n      default: false,\n      note: function() { return this.$t('Components.UI.Form.BaseInputFieldController.Disabled_Note') }\n    },\n    required: {\n      type: Boolean,\n      default: false,\n      // note: 'This field is required'\n      note: function() { return this.$t('Components.UI.Form.BaseInputFieldController.Required_Note') }\n    },\n    onKeyUp: {\n      type: Function,\n      default: function() { },\n    },\n    onKeyUpEnter: {\n      type: Function,\n      default: function() { },\n    }\n  },\n\n  data() {\n    return {\n      hasPassedValidation: false\n    }\n  },\n\n  computed: {\n    /**\n     * Either use the supplied id, or generate a unique one.\n     */\n    labelId() {\n      return this.id === '' ? this.uniqueId() : this.id\n    },\n    /**\n     * It is recommended to bind the <label> element through $ref, to ensure\n     * the label and input id are identical.\n     */\n    inputId() {\n      return this.$refs.label ? this.$refs.label.for : this.labelId\n    },\n\n    hasError() {\n      if ((!Array.isArray(this.error) && this.error) || (Array.isArray(this.error) && this.error.length)) {\n        return true\n      } else {\n        return false\n      }\n    }\n  },\n\n  methods: {\n    /**\n     * Generate a unique id used to couple the input and label tags\n     *  This method is only used an id was not explicitly provided as a prop\n     */\n    uniqueId() {\n      // CHeck whether the uuid is null, to avoid double generation of uuid,\n      // causing a possible mismatch between input an label.\n      return (this.uuid = this.uuid !== null ? this.uuid : uuidv4())\n    },\n\n    onFocus(e) {\n      this.focus(e)\n    },\n    onBlur(e) {\n      this.blur(e)\n    },\n    onChange(e) {\n      this.change(e)\n    },\n    onInput(e) {\n      this.input(e)\n    },\n    focus(e) {\n      this.$emit('focus', e)\n    },\n    blur(e) {\n      this.$emit('blur', e)\n    },\n    change(e) {\n      let value = e.target.matches('[type=\"checkbox\"]')\n        ? e.target.checked\n        : e.target.value.trim()\n\n      this.$emit('change', value)\n    },\n    input(e) {\n      let value = e.target.matches('[type=\"checkbox\"]')\n        ? e.target.checked\n        : e.target.value.trim()\n\n      this.$emit('input', value)\n    },\n\n    // onBlur() { },\n    // onChange() {\n    //   this.onKeyUp()\n    // },\n    // onFocus() { },\n    // onInput() {\n    //   this.$emit('input', event.target.value)\n    // }\n  }\n}\n</script>\n","var render, staticRenderFns\nimport script from \"./BaseInputFieldController.vue?vue&type=script&lang=js\"\nexport * from \"./BaseInputFieldController.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  null,\n  null\n  \n)\n\n/* hot reload */\nif (module.hot) {\n  var api = require(\"/github/workspace/node_modules/vue-hot-reload-api/dist/index.js\")\n  api.install(require('vue'))\n  if (api.compatible) {\n    module.hot.accept()\n    if (!api.isRecorded('772651bd')) {\n      api.createRecord('772651bd', component.options)\n    } else {\n      api.reload('772651bd', component.options)\n    }\n    \n  }\n}\ncomponent.options.__file = \"src/components/UI/Form/BaseInputFieldController.vue\"\nexport default component.exports","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BaseInputFieldController.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BaseInputFieldController.vue?vue&type=script&lang=js\""],"sourceRoot":""}