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
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

View File

@@ -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",

View File

@@ -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",

View File

@@ -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
});

View File

@@ -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
});