This commit is contained in:
2020-09-18 19:35:37 +00:00
parent 63c8e5ab68
commit ee58811d05
5 changed files with 21 additions and 9 deletions

View File

@@ -5,6 +5,16 @@
todo: update dependencies front and back todo: update dependencies front and back
getting a little out of date getting a little out of date
todo: downgrade vue currency input back to compatible version, was "vue-currency-input": "^1.19.0",
find version before he broke it
todo: Fix currency and decimal input controls since after update get error ".$ci is undefined" when open a form with them on it
proposal: remove all need for vue-currency-input, see if can roll my own using intl code
or: fix the stupid error that has now crept in due to unneeded changes they made
## I'm downgrading to the last working version for now and will look into rewriting this to remove the dependency since it just uses Intl.NumberFormat behind the scenes
just like I'm doing with date and time inputs
todo: make our logo smaller or move it when a biz logo is displaying on the login form todo: make our logo smaller or move it when a biz logo is displaying on the login form
todo: hide swagger logo and branding in api explorer todo: hide swagger logo and branding in api explorer

View File

@@ -20861,9 +20861,9 @@
} }
}, },
"vue-currency-input": { "vue-currency-input": {
"version": "1.22.3", "version": "1.20.3",
"resolved": "https://registry.npmjs.org/vue-currency-input/-/vue-currency-input-1.22.3.tgz", "resolved": "https://registry.npmjs.org/vue-currency-input/-/vue-currency-input-1.20.3.tgz",
"integrity": "sha512-vrOaaiCSG8Hh7Fw7CYROIymFvVprWKaze3h67sihqJ4QAI9F+YElTQYv0fJwFK1NkKUS8H/MvAL0mwg9qrUfgg==" "integrity": "sha512-VPMpaqsYIpw6CWbXwx6YrqOxVSu/3M4H3K9qLnPpkJluyLf/fI2R6quYN+dYitsSRstTAl2u80uyIgLJSAZGoQ=="
}, },
"vue-eslint-parser": { "vue-eslint-parser": {
"version": "7.0.0", "version": "7.0.0",

View File

@@ -27,7 +27,7 @@
"typeface-roboto": "0.0.75", "typeface-roboto": "0.0.75",
"vue": "^2.6.12", "vue": "^2.6.12",
"vue-chartjs": "^3.5.1", "vue-chartjs": "^3.5.1",
"vue-currency-input": "^1.22.3", "vue-currency-input": "1.20.3",
"vue-router": "^3.4.3", "vue-router": "^3.4.3",
"vuetify": "^2.3.10", "vuetify": "^2.3.10",
"vuex": "^3.5.1", "vuex": "^3.5.1",

View File

@@ -23,7 +23,8 @@
//https://dm4t2.github.io/vue-currency-input/guide/#introduction :value="formattedValue" //https://dm4t2.github.io/vue-currency-input/guide/#introduction :value="formattedValue"
//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
import { setValue, getValue } from "vue-currency-input"; //https://github.com/dm4t2/vue-currency-input/releases
import { setValue, parseCurrency } from "vue-currency-input";
export default { export default {
data() { data() {
return { return {
@@ -50,7 +51,7 @@ export default {
methods: { methods: {
updateValue() { updateValue() {
let val = this.$refs.textField.$refs.input.value; let val = this.$refs.textField.$refs.input.value;
let parsedValue = getValue(val, { let parsedValue = parseCurrency(val, {
currency: this.currencyName, currency: this.currencyName,
locale: this.languageName locale: this.languageName
}); });

View File

@@ -22,8 +22,9 @@
//https://dm4t2.github.io/vue-currency-input/guide/#introduction //https://dm4t2.github.io/vue-currency-input/guide/#introduction
//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
//NON CURRENCY MODE: https://dm4t2.github.io/vue-currency-input/config/#component //NON CURRENCY MODE: https://dm4t2.github.io/vue-currency-input/config/#component
import { setValue, getValue } from "vue-currency-input"; import { setValue, parseCurrency } from "vue-currency-input";
export default { export default {
data() { data() {
return { return {
@@ -51,7 +52,7 @@ export default {
}, },
methods: { methods: {
handleInput(value) { handleInput(value) {
let parsedValue = getValue(value, { let parsedValue = parseCurrency(value, {
currency: null, currency: null,
locale: this.languageName locale: this.languageName
}); });