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",
|
||||
"vue": "^2.6.14",
|
||||
"vue-chartjs": "^3.5.1",
|
||||
"vue-currency-input": "1.20.3",
|
||||
"vue-currency-input": "1.22.3",
|
||||
"vue-router": "^3.5.3",
|
||||
"vue-signature": "^2.5.4",
|
||||
"vuetify": "^2.6.1",
|
||||
@@ -15112,9 +15112,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/vue-currency-input": {
|
||||
"version": "1.20.3",
|
||||
"resolved": "https://registry.npmjs.org/vue-currency-input/-/vue-currency-input-1.20.3.tgz",
|
||||
"integrity": "sha512-VPMpaqsYIpw6CWbXwx6YrqOxVSu/3M4H3K9qLnPpkJluyLf/fI2R6quYN+dYitsSRstTAl2u80uyIgLJSAZGoQ==",
|
||||
"version": "1.22.3",
|
||||
"resolved": "https://registry.npmjs.org/vue-currency-input/-/vue-currency-input-1.22.3.tgz",
|
||||
"integrity": "sha512-vrOaaiCSG8Hh7Fw7CYROIymFvVprWKaze3h67sihqJ4QAI9F+YElTQYv0fJwFK1NkKUS8H/MvAL0mwg9qrUfgg==",
|
||||
"peerDependencies": {
|
||||
"vue": "^2.5"
|
||||
}
|
||||
@@ -28819,9 +28819,9 @@
|
||||
}
|
||||
},
|
||||
"vue-currency-input": {
|
||||
"version": "1.20.3",
|
||||
"resolved": "https://registry.npmjs.org/vue-currency-input/-/vue-currency-input-1.20.3.tgz",
|
||||
"integrity": "sha512-VPMpaqsYIpw6CWbXwx6YrqOxVSu/3M4H3K9qLnPpkJluyLf/fI2R6quYN+dYitsSRstTAl2u80uyIgLJSAZGoQ==",
|
||||
"version": "1.22.3",
|
||||
"resolved": "https://registry.npmjs.org/vue-currency-input/-/vue-currency-input-1.22.3.tgz",
|
||||
"integrity": "sha512-vrOaaiCSG8Hh7Fw7CYROIymFvVprWKaze3h67sihqJ4QAI9F+YElTQYv0fJwFK1NkKUS8H/MvAL0mwg9qrUfgg==",
|
||||
"requires": {}
|
||||
},
|
||||
"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??
|
||||
//or look at the source for ideas?
|
||||
|
||||
import { parseCurrency } from "vue-currency-input";
|
||||
import { parse } from "vue-currency-input";
|
||||
export default {
|
||||
props: {
|
||||
label: { type: String, default: null },
|
||||
@@ -64,7 +64,7 @@ export default {
|
||||
}
|
||||
const val = this.$refs.textField.$refs.input.value;
|
||||
|
||||
const parsedValue = parseCurrency(val, {
|
||||
const parsedValue = parse(val, {
|
||||
currency: this.currencyName,
|
||||
locale: this.languageName
|
||||
});
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
//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/releases
|
||||
import { parseCurrency } from "vue-currency-input";
|
||||
import { parse } from "vue-currency-input";
|
||||
export default {
|
||||
props: {
|
||||
label: { type: String, default: null },
|
||||
@@ -48,7 +48,7 @@ export default {
|
||||
methods: {
|
||||
updateValue() {
|
||||
const val = this.$refs.textField.$refs.input.value;
|
||||
const parsedValue = parseCurrency(val, {
|
||||
const parsedValue = parse(val, {
|
||||
currency: null,
|
||||
locale: this.languageName
|
||||
});
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
//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/releases
|
||||
import { parseCurrency } from "vue-currency-input";
|
||||
import { parse } from "vue-currency-input";
|
||||
export default {
|
||||
props: {
|
||||
label: { type: String, default: null },
|
||||
@@ -48,7 +48,7 @@ export default {
|
||||
methods: {
|
||||
updateValue() {
|
||||
const val = this.$refs.textField.$refs.input.value;
|
||||
const parsedValue = parseCurrency(val, {
|
||||
const parsedValue = parse(val, {
|
||||
currency: null,
|
||||
locale: this.languageName
|
||||
});
|
||||
|
||||
@@ -66,7 +66,7 @@ import chartBarHorizontalControl from "./components/chart-bar-horizontal-control
|
||||
//DEVELOPMENT MODE
|
||||
//THIS SHOULD BE FALSE IN RELEASE
|
||||
//************************************************************
|
||||
const DEV_MODE = false;
|
||||
const DEV_MODE = true;
|
||||
//************************************************************
|
||||
//**************************************************************
|
||||
//**************************************************************
|
||||
|
||||
Reference in New Issue
Block a user