<template>
    <v-row dense>
        <v-col cols="12">
            <cs-text-box 
                v-if="!! activeRecord"
                ref="First"
                :control="controls.departament"
                :errors="errorsManager.ByField('departament')"
                @focus="errorsManager.ResetField('departament')"
                @blur="errorsManager.Validate('departament')"
                v-model="activeRecord.departament"
                
            />
        </v-col>
    </v-row>
</template>

<script>
    export default {
        props: {
            editable: {required: true},
        },

        computed: {
            form() {
                return this.editable.form;
            },
        },

        mounted() {
            setTimeout( () => {
                this.$refs.First.Focus();
            }, 250)
        },

        components: {
            CsTextBox: require('@CsVueComp/controls/texts/CsTextBox').default, 
        },
        
        mixins: [
            require('@CsVueMix/Forminput/Forminput')
        ],

        name: 'DepartamentNameInput',
    }
</script>