This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
@@@@@@@@@@@@@@@ ROADMAP STAGE 6 - "REALITY" All in on porting over all the real objects from v7
|
@@@@@@@@@@@@@@@ ROADMAP STAGE 6 - "REALITY" All in on porting over all the real objects from v7
|
||||||
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
|
|||||||
@@ -6,7 +6,8 @@
|
|||||||
@change="updateValue"
|
@change="updateValue"
|
||||||
v-currency="{
|
v-currency="{
|
||||||
currency: null,
|
currency: null,
|
||||||
locale: languageName
|
locale: languageName,
|
||||||
|
precision: precision
|
||||||
}"
|
}"
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
@@ -42,7 +43,8 @@ export default {
|
|||||||
error: {
|
error: {
|
||||||
type: String,
|
type: String,
|
||||||
required: false
|
required: false
|
||||||
}
|
},
|
||||||
|
precision: { type: Number, default: undefined }
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
currencyValue() {
|
currencyValue() {
|
||||||
|
|||||||
@@ -105,6 +105,8 @@ import {
|
|||||||
faLink,
|
faLink,
|
||||||
faListOl,
|
faListOl,
|
||||||
faListUl,
|
faListUl,
|
||||||
|
faMapMarkerAlt,
|
||||||
|
faMapMarkedAlt,
|
||||||
faMinus,
|
faMinus,
|
||||||
faMinusSquare,
|
faMinusSquare,
|
||||||
faMoon,
|
faMoon,
|
||||||
@@ -253,6 +255,8 @@ library.add(
|
|||||||
faLink,
|
faLink,
|
||||||
faListOl,
|
faListOl,
|
||||||
faListUl,
|
faListUl,
|
||||||
|
faMapMarkerAlt,
|
||||||
|
faMapMarkedAlt,
|
||||||
faMinus,
|
faMinus,
|
||||||
faMinusSquare,
|
faMinusSquare,
|
||||||
faMoon,
|
faMoon,
|
||||||
@@ -788,6 +792,18 @@ const CUSTOM_ICONS = {
|
|||||||
icon: ["fas", "list-ul"]
|
icon: ["fas", "list-ul"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
ayiMapMarker: {
|
||||||
|
component: FontAwesomeIcon,
|
||||||
|
props: {
|
||||||
|
icon: ["fas", "map-marker-alt"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
ayiMapMarked: {
|
||||||
|
component: FontAwesomeIcon,
|
||||||
|
props: {
|
||||||
|
icon: ["fas", "map-marked-alt"]
|
||||||
|
}
|
||||||
|
},
|
||||||
ayiMinus: {
|
ayiMinus: {
|
||||||
component: FontAwesomeIcon,
|
component: FontAwesomeIcon,
|
||||||
props: {
|
props: {
|
||||||
|
|||||||
@@ -272,6 +272,7 @@
|
|||||||
:rules="[form().decimalValid(this, 'latitude')]"
|
:rules="[form().decimalValid(this, 'latitude')]"
|
||||||
:error-messages="form().serverErrors(this, 'latitude')"
|
:error-messages="form().serverErrors(this, 'latitude')"
|
||||||
@input="fieldValueChanged('latitude')"
|
@input="fieldValueChanged('latitude')"
|
||||||
|
:precision="6"
|
||||||
></gz-decimal>
|
></gz-decimal>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
@@ -292,6 +293,7 @@
|
|||||||
:rules="[form().decimalValid(this, 'longitude')]"
|
:rules="[form().decimalValid(this, 'longitude')]"
|
||||||
:error-messages="form().serverErrors(this, 'longitude')"
|
:error-messages="form().serverErrors(this, 'longitude')"
|
||||||
@input="fieldValueChanged('longitude')"
|
@input="fieldValueChanged('longitude')"
|
||||||
|
:precision="6"
|
||||||
></gz-decimal>
|
></gz-decimal>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
@@ -970,6 +972,23 @@ function generateMenu(vm) {
|
|||||||
key: FORM_KEY + ":duplicate",
|
key: FORM_KEY + ":duplicate",
|
||||||
vm: vm
|
vm: vm
|
||||||
});
|
});
|
||||||
|
|
||||||
|
menuOptions.menuItems.push({
|
||||||
|
title: "View on map",
|
||||||
|
icon: "$ayiMapMarked",
|
||||||
|
key: FORM_KEY + ":geoview",
|
||||||
|
vm: vm
|
||||||
|
});
|
||||||
|
|
||||||
|
if (navigator.geolocation) {
|
||||||
|
// geolocation is available
|
||||||
|
menuOptions.menuItems.push({
|
||||||
|
title: "Set to current location",
|
||||||
|
icon: "$ayiMapMarker",
|
||||||
|
key: FORM_KEY + ":geocapture",
|
||||||
|
vm: vm
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
window.$gz.eventBus.$emit("menu-change", menuOptions);
|
window.$gz.eventBus.$emit("menu-change", menuOptions);
|
||||||
|
|||||||
@@ -102,7 +102,6 @@
|
|||||||
:disabled="formState.readOnly"
|
:disabled="formState.readOnly"
|
||||||
:clearable="!formState.readOnly"
|
:clearable="!formState.readOnly"
|
||||||
@click:clear="fieldValueChanged('deliveryAddress')"
|
@click:clear="fieldValueChanged('deliveryAddress')"
|
||||||
|
|
||||||
:label="$ay.t('NotifyDeliveryAddress')"
|
:label="$ay.t('NotifyDeliveryAddress')"
|
||||||
:rules="[form().required(this, 'deliveryAddress')]"
|
:rules="[form().required(this, 'deliveryAddress')]"
|
||||||
:error-messages="form().serverErrors(this, 'deliveryAddress')"
|
:error-messages="form().serverErrors(this, 'deliveryAddress')"
|
||||||
|
|||||||
Reference in New Issue
Block a user