Upgraded v-currency input from version 1.20.3 to the final compatible with my code release of version 1.22.3 and made appropriate modifications to controls that use it
This commit is contained in:
14
ayanova/package-lock.json
generated
14
ayanova/package-lock.json
generated
@@ -27,7 +27,7 @@
|
|||||||
"register-service-worker": "^1.7.2",
|
"register-service-worker": "^1.7.2",
|
||||||
"vue": "^2.6.14",
|
"vue": "^2.6.14",
|
||||||
"vue-chartjs": "^3.5.1",
|
"vue-chartjs": "^3.5.1",
|
||||||
"vue-currency-input": "1.20.3",
|
"vue-currency-input": "1.22.3",
|
||||||
"vue-router": "^3.5.3",
|
"vue-router": "^3.5.3",
|
||||||
"vue-signature": "^2.5.4",
|
"vue-signature": "^2.5.4",
|
||||||
"vuetify": "^2.6.1",
|
"vuetify": "^2.6.1",
|
||||||
@@ -15112,9 +15112,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/vue-currency-input": {
|
"node_modules/vue-currency-input": {
|
||||||
"version": "1.20.3",
|
"version": "1.22.3",
|
||||||
"resolved": "https://registry.npmjs.org/vue-currency-input/-/vue-currency-input-1.20.3.tgz",
|
"resolved": "https://registry.npmjs.org/vue-currency-input/-/vue-currency-input-1.22.3.tgz",
|
||||||
"integrity": "sha512-VPMpaqsYIpw6CWbXwx6YrqOxVSu/3M4H3K9qLnPpkJluyLf/fI2R6quYN+dYitsSRstTAl2u80uyIgLJSAZGoQ==",
|
"integrity": "sha512-vrOaaiCSG8Hh7Fw7CYROIymFvVprWKaze3h67sihqJ4QAI9F+YElTQYv0fJwFK1NkKUS8H/MvAL0mwg9qrUfgg==",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"vue": "^2.5"
|
"vue": "^2.5"
|
||||||
}
|
}
|
||||||
@@ -28819,9 +28819,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"vue-currency-input": {
|
"vue-currency-input": {
|
||||||
"version": "1.20.3",
|
"version": "1.22.3",
|
||||||
"resolved": "https://registry.npmjs.org/vue-currency-input/-/vue-currency-input-1.20.3.tgz",
|
"resolved": "https://registry.npmjs.org/vue-currency-input/-/vue-currency-input-1.22.3.tgz",
|
||||||
"integrity": "sha512-VPMpaqsYIpw6CWbXwx6YrqOxVSu/3M4H3K9qLnPpkJluyLf/fI2R6quYN+dYitsSRstTAl2u80uyIgLJSAZGoQ==",
|
"integrity": "sha512-vrOaaiCSG8Hh7Fw7CYROIymFvVprWKaze3h67sihqJ4QAI9F+YElTQYv0fJwFK1NkKUS8H/MvAL0mwg9qrUfgg==",
|
||||||
"requires": {}
|
"requires": {}
|
||||||
},
|
},
|
||||||
"vue-eslint-parser": {
|
"vue-eslint-parser": {
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
//which is purported to be exactly what I'm trying to do here with a v-text-field but better I guess??
|
//which is purported to be exactly what I'm trying to do here with a v-text-field but better I guess??
|
||||||
//or look at the source for ideas?
|
//or look at the source for ideas?
|
||||||
|
|
||||||
import { parseCurrency } from "vue-currency-input";
|
import { parse } from "vue-currency-input";
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
label: { type: String, default: null },
|
label: { type: String, default: null },
|
||||||
@@ -64,7 +64,7 @@ export default {
|
|||||||
}
|
}
|
||||||
const val = this.$refs.textField.$refs.input.value;
|
const val = this.$refs.textField.$refs.input.value;
|
||||||
|
|
||||||
const parsedValue = parseCurrency(val, {
|
const parsedValue = parse(val, {
|
||||||
currency: this.currencyName,
|
currency: this.currencyName,
|
||||||
locale: this.languageName
|
locale: this.languageName
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
//https://codesandbox.io/s/vue-template-kd7d1?fontsize=14&module=%2Fsrc%2FApp.vue
|
//https://codesandbox.io/s/vue-template-kd7d1?fontsize=14&module=%2Fsrc%2FApp.vue
|
||||||
//https://github.com/dm4t2/vue-currency-input
|
//https://github.com/dm4t2/vue-currency-input
|
||||||
//https://github.com/dm4t2/vue-currency-input/releases
|
//https://github.com/dm4t2/vue-currency-input/releases
|
||||||
import { parseCurrency } from "vue-currency-input";
|
import { parse } from "vue-currency-input";
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
label: { type: String, default: null },
|
label: { type: String, default: null },
|
||||||
@@ -48,7 +48,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
updateValue() {
|
updateValue() {
|
||||||
const val = this.$refs.textField.$refs.input.value;
|
const val = this.$refs.textField.$refs.input.value;
|
||||||
const parsedValue = parseCurrency(val, {
|
const parsedValue = parse(val, {
|
||||||
currency: null,
|
currency: null,
|
||||||
locale: this.languageName
|
locale: this.languageName
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
//https://codesandbox.io/s/vue-template-kd7d1?fontsize=14&module=%2Fsrc%2FApp.vue
|
//https://codesandbox.io/s/vue-template-kd7d1?fontsize=14&module=%2Fsrc%2FApp.vue
|
||||||
//https://github.com/dm4t2/vue-currency-input
|
//https://github.com/dm4t2/vue-currency-input
|
||||||
//https://github.com/dm4t2/vue-currency-input/releases
|
//https://github.com/dm4t2/vue-currency-input/releases
|
||||||
import { parseCurrency } from "vue-currency-input";
|
import { parse } from "vue-currency-input";
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
label: { type: String, default: null },
|
label: { type: String, default: null },
|
||||||
@@ -48,7 +48,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
updateValue() {
|
updateValue() {
|
||||||
const val = this.$refs.textField.$refs.input.value;
|
const val = this.$refs.textField.$refs.input.value;
|
||||||
const parsedValue = parseCurrency(val, {
|
const parsedValue = parse(val, {
|
||||||
currency: null,
|
currency: null,
|
||||||
locale: this.languageName
|
locale: this.languageName
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ import chartBarHorizontalControl from "./components/chart-bar-horizontal-control
|
|||||||
//DEVELOPMENT MODE
|
//DEVELOPMENT MODE
|
||||||
//THIS SHOULD BE FALSE IN RELEASE
|
//THIS SHOULD BE FALSE IN RELEASE
|
||||||
//************************************************************
|
//************************************************************
|
||||||
const DEV_MODE = false;
|
const DEV_MODE = true;
|
||||||
//************************************************************
|
//************************************************************
|
||||||
//**************************************************************
|
//**************************************************************
|
||||||
//**************************************************************
|
//**************************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user