mdbvue
Advanced tools
Comparing version 5.7.0 to 5.8.0
{ | ||
"name": "mdbvue", | ||
"version": "5.7.0", | ||
"version": "5.8.0", | ||
"description": "Vue Bootstrap with Material Design", | ||
@@ -16,2 +16,3 @@ "author": "MDBootstrap <support@mdbootstrap.com>", | ||
"lint": "eslint --ext .js,.vue src", | ||
"test:unit": "vue-cli-service test:unit", | ||
"remove-pro-dirs": "del-cli src/components/pro src/docs/pro build/scss build/css", | ||
@@ -40,3 +41,5 @@ "remove-pro-code": "gulp index-remove-pro router-remove-pro", | ||
"devDependencies": { | ||
"@vue/cli-plugin-unit-jest": "^3.9.0", | ||
"@vue/cli-service": "^3.4.0", | ||
"@vue/test-utils": "^1.0.0-beta.29", | ||
"autoprefixer": "^8.3.0", | ||
@@ -102,2 +105,2 @@ "babel-core": "^6.22.1", | ||
] | ||
} | ||
} |
@@ -61,3 +61,3 @@ | ||
- MDBVue 5.7.0 | ||
- MDBVue 5.8.0 | ||
- Vue 2.6.10 | ||
@@ -64,0 +64,0 @@ |
@@ -7,3 +7,5 @@ import { Bar } from 'vue-chartjs'; | ||
// Overwriting base render method with actual data. | ||
this.renderChart(this.data, this.options); | ||
if (this.data && this.options) { | ||
this.renderChart(this.data, this.options); | ||
} | ||
}, | ||
@@ -10,0 +12,0 @@ watch: { |
@@ -7,3 +7,5 @@ import { Bubble } from 'vue-chartjs'; | ||
// Overwriting base render method with actual data. | ||
this.renderChart(this.data, this.options); | ||
if (this.data && this.options) { | ||
this.renderChart(this.data, this.options); | ||
} | ||
}, | ||
@@ -10,0 +12,0 @@ watch: { |
@@ -7,3 +7,5 @@ import { Doughnut } from 'vue-chartjs'; | ||
// Overwriting base render method with actual data. | ||
this.renderChart(this.data, this.options); | ||
if (this.data && this.options) { | ||
this.renderChart(this.data, this.options); | ||
} | ||
}, | ||
@@ -10,0 +12,0 @@ watch: { |
@@ -7,3 +7,5 @@ import { HorizontalBar } from 'vue-chartjs'; | ||
// Overwriting base render method with actual data. | ||
this.renderChart(this.data, this.options); | ||
if (this.data && this.options) { | ||
this.renderChart(this.data, this.options); | ||
} | ||
}, | ||
@@ -10,0 +12,0 @@ watch: { |
@@ -7,3 +7,5 @@ import { Line } from 'vue-chartjs'; | ||
// Overwriting base render method with actual data. | ||
this.renderChart(this.data, this.options); | ||
if (this.data && this.options) { | ||
this.renderChart(this.data, this.options); | ||
} | ||
}, | ||
@@ -10,0 +12,0 @@ watch: { |
@@ -7,3 +7,5 @@ import { Pie } from 'vue-chartjs'; | ||
// Overwriting base render method with actual data. | ||
this.renderChart(this.data, this.options); | ||
if (this.data && this.options) { | ||
this.renderChart(this.data, this.options); | ||
} | ||
}, | ||
@@ -10,0 +12,0 @@ watch: { |
@@ -7,3 +7,5 @@ import { PolarArea } from 'vue-chartjs'; | ||
// Overwriting base render method with actual data. | ||
this.renderChart(this.data, this.options); | ||
if (this.data && this.options) { | ||
this.renderChart(this.data, this.options); | ||
} | ||
}, | ||
@@ -10,0 +12,0 @@ watch: { |
@@ -7,3 +7,5 @@ import { Radar } from 'vue-chartjs'; | ||
// Overwriting base render method with actual data. | ||
this.renderChart(this.data, this.options); | ||
if (this.data && this.options) { | ||
this.renderChart(this.data, this.options); | ||
} | ||
}, | ||
@@ -10,0 +12,0 @@ watch: { |
@@ -7,3 +7,5 @@ import { Scatter } from 'vue-chartjs'; | ||
// Overwriting base render method with actual data. | ||
this.renderChart(this.data, this.options); | ||
if (this.data && this.options) { | ||
this.renderChart(this.data, this.options); | ||
} | ||
}, | ||
@@ -10,0 +12,0 @@ watch: { |
@@ -69,3 +69,3 @@ import classNames from 'classnames'; | ||
value: { | ||
type: [String, Number, Boolean], | ||
type: [String, Number, Boolean, Array], | ||
default: '' | ||
@@ -179,2 +179,12 @@ }, | ||
type: String | ||
}, | ||
min: { | ||
type: Number | ||
}, | ||
max: { | ||
type: Number | ||
}, | ||
step: { | ||
type: Number, | ||
default: 1 | ||
} | ||
@@ -282,3 +292,4 @@ }, | ||
methods: { | ||
focus() { | ||
focus(e) { | ||
this.$emit('focus', e); | ||
this.isTouched = true; | ||
@@ -294,3 +305,15 @@ if (!this.disabled) { | ||
}, | ||
blur() { | ||
blur(e) { | ||
if (this.type === 'number') { | ||
if (typeof this.min === 'number' && this.innerValue < this.min){ | ||
this.innerValue = this.min; | ||
} | ||
else if (typeof this.max === 'number' && this.innerValue > this.max){ | ||
this.innerValue = this.max; | ||
} | ||
this.$refs.input.value = this.innerValue; | ||
this.$emit('change', this.innerValue); | ||
} | ||
this.$emit('blur', e); | ||
this.isTouched = false; | ||
@@ -322,2 +345,6 @@ // styles for navbar input | ||
} | ||
}, | ||
onClick(e) { | ||
this.wave(); | ||
this.$emit('click', e); | ||
} | ||
@@ -324,0 +351,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
17226456
105913
53