This commit is contained in:
21
ayanova/src/components/phone-control.vue
Normal file
21
ayanova/src/components/phone-control.vue
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
<template>
|
||||||
|
<v-text-field
|
||||||
|
v-bind="$attrs"
|
||||||
|
v-on="$listeners"
|
||||||
|
type="tel"
|
||||||
|
prepend-icon="$ayiPhoneAlt"
|
||||||
|
@click:prepend="dial"
|
||||||
|
></v-text-field>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
/* Xeslint-disable */
|
||||||
|
|
||||||
|
export default {
|
||||||
|
methods: {
|
||||||
|
dial() {
|
||||||
|
console.log(this.$el.attributes.value);
|
||||||
|
//alert("DIAL");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
@@ -42,6 +42,7 @@ import dataTable from "./components/gz-data-table.vue";
|
|||||||
import customFieldsControl from "./components/custom-fields-control.vue";
|
import customFieldsControl from "./components/custom-fields-control.vue";
|
||||||
import currencyControl from "./components/currency-control.vue";
|
import currencyControl from "./components/currency-control.vue";
|
||||||
import decimalControl from "./components/decimal-control.vue";
|
import decimalControl from "./components/decimal-control.vue";
|
||||||
|
import phoneControl from "./components/phone-control.vue";
|
||||||
import roleControl from "./components/role-control.vue";
|
import roleControl from "./components/role-control.vue";
|
||||||
import durationControl from "./components/duration-control.vue";
|
import durationControl from "./components/duration-control.vue";
|
||||||
import errorControl from "./components/error-control.vue";
|
import errorControl from "./components/error-control.vue";
|
||||||
@@ -186,6 +187,7 @@ Vue.component("gz-data-table", dataTable);
|
|||||||
Vue.component("gz-custom-fields", customFieldsControl);
|
Vue.component("gz-custom-fields", customFieldsControl);
|
||||||
Vue.component("gz-currency", currencyControl);
|
Vue.component("gz-currency", currencyControl);
|
||||||
Vue.component("gz-decimal", decimalControl);
|
Vue.component("gz-decimal", decimalControl);
|
||||||
|
Vue.component("gz-phone", phoneControl);
|
||||||
Vue.component("gz-role-picker", roleControl);
|
Vue.component("gz-role-picker", roleControl);
|
||||||
Vue.component("gz-duration-picker", durationControl);
|
Vue.component("gz-duration-picker", durationControl);
|
||||||
Vue.component("gz-error", errorControl);
|
Vue.component("gz-error", errorControl);
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ import {
|
|||||||
faAddressCard,
|
faAddressCard,
|
||||||
faArrowsAltH,
|
faArrowsAltH,
|
||||||
faArrowsAltV,
|
faArrowsAltV,
|
||||||
|
faAt,
|
||||||
faBackward,
|
faBackward,
|
||||||
faBars,
|
faBars,
|
||||||
faBell,
|
faBell,
|
||||||
@@ -122,6 +123,7 @@ import {
|
|||||||
faPencilAlt,
|
faPencilAlt,
|
||||||
faPencilRuler,
|
faPencilRuler,
|
||||||
faPeopleCarry,
|
faPeopleCarry,
|
||||||
|
faPhoneAlt,
|
||||||
faPlug,
|
faPlug,
|
||||||
faPlus,
|
faPlus,
|
||||||
faPlusCircle,
|
faPlusCircle,
|
||||||
@@ -184,6 +186,7 @@ library.add(
|
|||||||
faAddressCard,
|
faAddressCard,
|
||||||
faArrowsAltH,
|
faArrowsAltH,
|
||||||
faArrowsAltV,
|
faArrowsAltV,
|
||||||
|
faAt,
|
||||||
faBackward,
|
faBackward,
|
||||||
faBars,
|
faBars,
|
||||||
faBell,
|
faBell,
|
||||||
@@ -283,6 +286,7 @@ library.add(
|
|||||||
faPencilAlt,
|
faPencilAlt,
|
||||||
faPencilRuler,
|
faPencilRuler,
|
||||||
faPeopleCarry,
|
faPeopleCarry,
|
||||||
|
faPhoneAlt,
|
||||||
faPlug,
|
faPlug,
|
||||||
faPlus,
|
faPlus,
|
||||||
faPlusCircle,
|
faPlusCircle,
|
||||||
@@ -364,6 +368,12 @@ const CUSTOM_ICONS = {
|
|||||||
icon: ["fas", "arrows-alt-v"]
|
icon: ["fas", "arrows-alt-v"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
ayiAt: {
|
||||||
|
component: FontAwesomeIcon,
|
||||||
|
props: {
|
||||||
|
icon: ["fas", "at"]
|
||||||
|
}
|
||||||
|
},
|
||||||
ayiBackward: {
|
ayiBackward: {
|
||||||
component: FontAwesomeIcon,
|
component: FontAwesomeIcon,
|
||||||
props: {
|
props: {
|
||||||
@@ -911,6 +921,12 @@ const CUSTOM_ICONS = {
|
|||||||
icon: ["fas", "people-carry"]
|
icon: ["fas", "people-carry"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
ayiPhoneAlt: {
|
||||||
|
component: FontAwesomeIcon,
|
||||||
|
props: {
|
||||||
|
icon: ["fas", "phone-alt"]
|
||||||
|
}
|
||||||
|
},
|
||||||
ayiPlug: {
|
ayiPlug: {
|
||||||
component: FontAwesomeIcon,
|
component: FontAwesomeIcon,
|
||||||
props: {
|
props: {
|
||||||
|
|||||||
@@ -94,7 +94,7 @@
|
|||||||
lg="4"
|
lg="4"
|
||||||
xl="3"
|
xl="3"
|
||||||
>
|
>
|
||||||
<v-text-field
|
<!-- <v-text-field
|
||||||
v-model="obj.phone1"
|
v-model="obj.phone1"
|
||||||
:readonly="formState.readOnly"
|
:readonly="formState.readOnly"
|
||||||
:disabled="formState.readOnly"
|
:disabled="formState.readOnly"
|
||||||
@@ -104,7 +104,19 @@
|
|||||||
type="tel"
|
type="tel"
|
||||||
:error-messages="form().serverErrors(this, 'phone1')"
|
:error-messages="form().serverErrors(this, 'phone1')"
|
||||||
@input="fieldValueChanged('phone1')"
|
@input="fieldValueChanged('phone1')"
|
||||||
></v-text-field>
|
prepend-icon="$ayiPhoneAlt"
|
||||||
|
@click:prepend="console.log('CLICK')"
|
||||||
|
></v-text-field> -->
|
||||||
|
<gz-phone
|
||||||
|
v-model="obj.phone1"
|
||||||
|
:readonly="formState.readOnly"
|
||||||
|
:disabled="formState.readOnly"
|
||||||
|
:label="$ay.t('CustomerPhone1')"
|
||||||
|
ref="phone1"
|
||||||
|
data-cy="phone1"
|
||||||
|
:error-messages="form().serverErrors(this, 'phone1')"
|
||||||
|
@input="fieldValueChanged('phone1')"
|
||||||
|
></gz-phone>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
<v-col
|
<v-col
|
||||||
|
|||||||
Reference in New Issue
Block a user