From ee58811d056994f60793e7242ca15b9018ec098d Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 18 Sep 2020 19:35:37 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 12 +++++++++++- ayanova/package-lock.json | 6 +++--- ayanova/package.json | 2 +- ayanova/src/components/currency-control.vue | 5 +++-- ayanova/src/components/decimal-control.vue | 5 +++-- 5 files changed, 21 insertions(+), 9 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 079bc9c3..8e19fbcf 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -5,6 +5,16 @@ todo: update dependencies front and back 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: hide swagger logo and branding in api explorer @@ -33,7 +43,7 @@ todo: attachment control drag and drop should work on both file list and also at todo: wiki drag and drop image should automatically attach the image and do the linkup etc todo: notification subscription form tags control looks like ordinary tags control might confuse people that they are tagging that subscription Maybe change the text to "Automatic filter tags" or "Only if tagged with" - + todo: export from grid to xls, csv etc. I'm thinking perhaps also a secondary ability to make report templates that are actually intended for export to xls or whatever as an additional feature but the easiest thing for people would be a straight export of grid data from grid, perhaps using the reportdata system since it pulls in all the bits needed for full data rather than just id links diff --git a/ayanova/package-lock.json b/ayanova/package-lock.json index 15f7deec..ed10f516 100644 --- a/ayanova/package-lock.json +++ b/ayanova/package-lock.json @@ -20861,9 +20861,9 @@ } }, "vue-currency-input": { - "version": "1.22.3", - "resolved": "https://registry.npmjs.org/vue-currency-input/-/vue-currency-input-1.22.3.tgz", - "integrity": "sha512-vrOaaiCSG8Hh7Fw7CYROIymFvVprWKaze3h67sihqJ4QAI9F+YElTQYv0fJwFK1NkKUS8H/MvAL0mwg9qrUfgg==" + "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==" }, "vue-eslint-parser": { "version": "7.0.0", diff --git a/ayanova/package.json b/ayanova/package.json index 7b3be3bd..82f39c60 100644 --- a/ayanova/package.json +++ b/ayanova/package.json @@ -27,7 +27,7 @@ "typeface-roboto": "0.0.75", "vue": "^2.6.12", "vue-chartjs": "^3.5.1", - "vue-currency-input": "^1.22.3", + "vue-currency-input": "1.20.3", "vue-router": "^3.4.3", "vuetify": "^2.3.10", "vuex": "^3.5.1", diff --git a/ayanova/src/components/currency-control.vue b/ayanova/src/components/currency-control.vue index 2903239e..81e4c70b 100644 --- a/ayanova/src/components/currency-control.vue +++ b/ayanova/src/components/currency-control.vue @@ -23,7 +23,8 @@ //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://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 { data() { return { @@ -50,7 +51,7 @@ export default { methods: { updateValue() { let val = this.$refs.textField.$refs.input.value; - let parsedValue = getValue(val, { + let parsedValue = parseCurrency(val, { currency: this.currencyName, locale: this.languageName }); diff --git a/ayanova/src/components/decimal-control.vue b/ayanova/src/components/decimal-control.vue index d0ce1305..8e544901 100644 --- a/ayanova/src/components/decimal-control.vue +++ b/ayanova/src/components/decimal-control.vue @@ -22,8 +22,9 @@ //https://dm4t2.github.io/vue-currency-input/guide/#introduction //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 //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 { data() { return { @@ -51,7 +52,7 @@ export default { }, methods: { handleInput(value) { - let parsedValue = getValue(value, { + let parsedValue = parseCurrency(value, { currency: null, locale: this.languageName });