UNPKG

digivue

Version:

PrimeVue is an open source UI library for Vue featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBloc

1 lines 5.47 kB
{"version":3,"file":"index.mjs","sources":["../../src/inputtext/BaseInputText.vue","../../src/inputtext/InputText.vue","../../src/inputtext/InputText.vue?vue&type=template&id=414f83dc&lang.js"],"sourcesContent":["<script>\nimport BaseInput from '@digivue/core/baseinput';\nimport InputTextStyle from 'digivue/inputtext/style';\n\nexport default {\n name: 'BaseInputText',\n extends: BaseInput,\n style: InputTextStyle,\n props: {\n focusOnMount: {\n type: Boolean,\n default: false\n },\n themed: {\n type: Boolean,\n default: false\n },\n datatable: {\n type: Boolean,\n default: false\n }\n },\n provide() {\n return {\n $pcInputText: this,\n $parentInstance: this\n };\n }\n};\n</script>\n","<template>\n <input ref=\"input\" type=\"text\" :class=\"cx('root')\" :value=\"d_value\" :disabled=\"disabled\" :aria-invalid=\"$invalid || undefined\" @input=\"onInput\" v-bind=\"attrs\" />\n</template>\n\n<script>\nimport { mergeProps, nextTick } from 'vue';\nimport BaseInputText from './BaseInputText.vue';\n\nexport default {\n name: 'InputText',\n extends: BaseInputText,\n inheritAttrs: false,\n methods: {\n onInput(event) {\n this.writeValue(event.target.value, event);\n }\n },\n computed: {\n attrs() {\n return mergeProps(\n this.ptmi('root', {\n context: {\n filled: this.$filled,\n disabled: this.disabled,\n readonly: this.$attrs.readonly,\n invalid: this.$invalid\n }\n }),\n this.formField\n );\n }\n },\n mounted() {\n if (this.focusOnMount) {\n nextTick(() => {\n this.$refs.input.focus();\n });\n }\n }\n};\n</script>\n","<template>\n <input ref=\"input\" type=\"text\" :class=\"cx('root')\" :value=\"d_value\" :disabled=\"disabled\" :aria-invalid=\"$invalid || undefined\" @input=\"onInput\" v-bind=\"attrs\" />\n</template>\n\n<script>\nimport { mergeProps, nextTick } from 'vue';\nimport BaseInputText from './BaseInputText.vue';\n\nexport default {\n name: 'InputText',\n extends: BaseInputText,\n inheritAttrs: false,\n methods: {\n onInput(event) {\n this.writeValue(event.target.value, event);\n }\n },\n computed: {\n attrs() {\n return mergeProps(\n this.ptmi('root', {\n context: {\n filled: this.$filled,\n disabled: this.disabled,\n readonly: this.$attrs.readonly,\n invalid: this.$invalid\n }\n }),\n this.formField\n );\n }\n },\n mounted() {\n if (this.focusOnMount) {\n nextTick(() => {\n this.$refs.input.focus();\n });\n }\n }\n};\n</script>\n"],"names":["name","BaseInput","style","InputTextStyle","props","focusOnMount","type","Boolean","themed","datatable","provide","$pcInputText","$parentInstance","BaseInputText","inheritAttrs","methods","onInput","event","writeValue","target","value","computed","attrs","mergeProps","ptmi","context","filled","$filled","disabled","readonly","$attrs","invalid","$invalid","formField","mounted","_this","nextTick","$refs","input","focus","_openBlock","_createElementBlock","_mergeProps","ref","_ctx","cx","d_value","undefined","$options","apply","arguments","_hoisted_1"],"mappings":";;;;AAIA,eAAe;AACXA,EAAAA,IAAI,EAAE,eAAe;AACrB,EAAA,SAAA,EAASC,SAAS;AAClBC,EAAAA,KAAK,EAAEC,cAAc;AACrBC,EAAAA,KAAK,EAAE;AACHC,IAAAA,YAAY,EAAE;AACVC,MAAAA,IAAI,EAAEC,OAAO;MACb,SAAS,EAAA;KACZ;AACDC,IAAAA,MAAM,EAAE;AACJF,MAAAA,IAAI,EAAEC,OAAO;MACb,SAAS,EAAA;KACZ;AACDE,IAAAA,SAAS,EAAE;AACPH,MAAAA,IAAI,EAAEC,OAAO;MACb,SAAS,EAAA;AACb;GACH;EACDG,OAAO,EAAA,SAAPA,OAAOA,GAAG;IACN,OAAO;AACHC,MAAAA,YAAY,EAAE,IAAI;AAClBC,MAAAA,eAAe,EAAE;KACpB;AACL;AACJ,CAAC;;ACpBD,aAAe;AACXZ,EAAAA,IAAI,EAAE,WAAW;AACjB,EAAA,SAAA,EAASa,QAAa;AACtBC,EAAAA,YAAY,EAAE,KAAK;AACnBC,EAAAA,OAAO,EAAE;AACLC,IAAAA,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