diff --git a/package-lock.json b/package-lock.json
index acc61e7a..ec31d871 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "vue-data-ui",
- "version": "1.9.51",
+ "version": "1.9.52",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "vue-data-ui",
- "version": "1.9.51",
+ "version": "1.9.52",
"license": "MIT",
"devDependencies": {
"@vitejs/plugin-vue": "^4.2.3",
@@ -18,8 +18,7 @@
"vite": "^4.4.5",
"vitest": "^0.34.1",
"vue": "^3.3.4",
- "vue-data-ui": "file:../vue-data-ui",
- "xlsx": "^0.18.5"
+ "vue-data-ui": "file:../vue-data-ui"
}
},
"node_modules/@babel/parser": {
@@ -744,15 +743,6 @@
"node": ">=0.4.0"
}
},
- "node_modules/adler-32": {
- "version": "1.3.1",
- "resolved": "https://registry.npmjs.org/adler-32/-/adler-32-1.3.1.tgz",
- "integrity": "sha512-ynZ4w/nUUv5rrsR8UUGoe1VC9hZj6V5hU9Qw1HlMDJGEJw5S7TfTErWTjMys6M7vr0YWcPqs3qAr4ss0nDfP+A==",
- "dev": true,
- "engines": {
- "node": ">=0.8"
- }
- },
"node_modules/aggregate-error": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz",
@@ -1118,19 +1108,6 @@
"integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==",
"dev": true
},
- "node_modules/cfb": {
- "version": "1.2.2",
- "resolved": "https://registry.npmjs.org/cfb/-/cfb-1.2.2.tgz",
- "integrity": "sha512-KfdUZsSOw19/ObEWasvBP/Ac4reZvAGauZhs6S/gqNhXhI7cKwvlH7ulj+dOEYnca4bm4SGo8C1bTAQvnTjgQA==",
- "dev": true,
- "dependencies": {
- "adler-32": "~1.3.0",
- "crc-32": "~1.2.0"
- },
- "engines": {
- "node": ">=0.8"
- }
- },
"node_modules/chai": {
"version": "4.3.7",
"resolved": "https://registry.npmjs.org/chai/-/chai-4.3.7.tgz",
@@ -1304,15 +1281,6 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
- "node_modules/codepage": {
- "version": "1.15.0",
- "resolved": "https://registry.npmjs.org/codepage/-/codepage-1.15.0.tgz",
- "integrity": "sha512-3g6NUTPd/YtuuGrhMnOMRjFc+LJw/bnMp3+0r/Wcz3IXUuCosKRJvMphm5+Q+bvTVGcJJuRvVLuYba+WojaFaA==",
- "dev": true,
- "engines": {
- "node": ">=0.8"
- }
- },
"node_modules/color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
@@ -1391,18 +1359,6 @@
"integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==",
"dev": true
},
- "node_modules/crc-32": {
- "version": "1.2.2",
- "resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz",
- "integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==",
- "dev": true,
- "bin": {
- "crc32": "bin/crc32.njs"
- },
- "engines": {
- "node": ">=0.8"
- }
- },
"node_modules/cross-spawn": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
@@ -1816,15 +1772,6 @@
"node": ">= 0.12"
}
},
- "node_modules/frac": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/frac/-/frac-1.1.2.tgz",
- "integrity": "sha512-w/XBfkibaTl3YDqASwfDUqkna4Z2p9cFSr1aHDt0WoMTECnRfBOv2WArlZILlqgWlmdIlALXGpM2AOhEk5W3IA==",
- "dev": true,
- "engines": {
- "node": ">=0.8"
- }
- },
"node_modules/fs-extra": {
"version": "9.1.0",
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz",
@@ -3179,18 +3126,6 @@
"node": ">=0.10.0"
}
},
- "node_modules/ssf": {
- "version": "0.11.2",
- "resolved": "https://registry.npmjs.org/ssf/-/ssf-0.11.2.tgz",
- "integrity": "sha512-+idbmIXoYET47hH+d7dfm2epdOMUDjqcB4648sTZ+t2JwoyBFL/insLfB/racrDmsKB3diwsDA696pZMieAC5g==",
- "dev": true,
- "dependencies": {
- "frac": "~1.1.2"
- },
- "engines": {
- "node": ">=0.8"
- }
- },
"node_modules/sshpk": {
"version": "1.18.0",
"resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.18.0.tgz",
@@ -3689,17 +3624,10 @@
}
},
"node_modules/vue-data-ui": {
- "version": "1.7.5",
+ "version": "1.9.51",
"resolved": "file:",
"dev": true,
- "license": "MIT",
- "dependencies": {
- "html2canvas": "^1.4.1",
- "jspdf": "^2.5.1",
- "vue": "^3.3.4",
- "vue-data-ui": "file:../vue-data-ui",
- "xlsx": "^0.18.5"
- }
+ "license": "MIT"
},
"node_modules/which": {
"version": "2.0.2",
@@ -3732,24 +3660,6 @@
"node": ">=8"
}
},
- "node_modules/wmf": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/wmf/-/wmf-1.0.2.tgz",
- "integrity": "sha512-/p9K7bEh0Dj6WbXg4JG0xvLQmIadrner1bi45VMJTfnbVHsc7yIajZyoSoK60/dtVBs12Fm6WkUI5/3WAVsNMw==",
- "dev": true,
- "engines": {
- "node": ">=0.8"
- }
- },
- "node_modules/word": {
- "version": "0.3.0",
- "resolved": "https://registry.npmjs.org/word/-/word-0.3.0.tgz",
- "integrity": "sha512-OELeY0Q61OXpdUfTp+oweA/vtLVg5VDOXh+3he3PNzLGG/y0oylSOC1xRVj0+l4vQ3tj/bB1HVHv1ocXkQceFA==",
- "dev": true,
- "engines": {
- "node": ">=0.8"
- }
- },
"node_modules/wrap-ansi": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
@@ -3788,27 +3698,6 @@
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
"dev": true
},
- "node_modules/xlsx": {
- "version": "0.18.5",
- "resolved": "https://registry.npmjs.org/xlsx/-/xlsx-0.18.5.tgz",
- "integrity": "sha512-dmg3LCjBPHZnQp5/F/+nnTa+miPJxUXB6vtk42YjBBKayDNagxGEeIdWApkYPOf3Z3pm3k62Knjzp7lMeTEtFQ==",
- "dev": true,
- "dependencies": {
- "adler-32": "~1.3.0",
- "cfb": "~1.2.1",
- "codepage": "~1.15.0",
- "crc-32": "~1.2.1",
- "ssf": "~0.11.2",
- "wmf": "~1.0.1",
- "word": "~0.3.0"
- },
- "bin": {
- "xlsx": "bin/xlsx.njs"
- },
- "engines": {
- "node": ">=0.8"
- }
- },
"node_modules/yallist": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
diff --git a/package.json b/package.json
index a4092786..d678f4e7 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "vue-data-ui",
"private": false,
- "version": "1.9.51",
+ "version": "1.9.52",
"type": "module",
"description": "A user-empowering data visualization Vue components library",
"keywords": [
@@ -77,7 +77,6 @@
"vite": "^4.4.5",
"vitest": "^0.34.1",
"vue": "^3.3.4",
- "vue-data-ui": "file:../vue-data-ui",
- "xlsx": "^0.18.5"
+ "vue-data-ui": "file:../vue-data-ui"
}
}
diff --git a/src/App.vue b/src/App.vue
index fc920855..973a1262 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -3130,31 +3130,31 @@ function printXy() {
xytest.value.generatePdf();
}
function xlsXy() {
- xytest.value.generateXls();
+ xytest.value.generateCsv();
}
function printDonut(){
donuttest.value.generatePdf();
}
function xlsDonut() {
- donuttest.value.generateXls();
+ donuttest.value.generateCsv();
}
function printWaffle(){
waffletest.value.generatePdf();
}
function xlsWaffle() {
- waffletest.value.generateXls();
+ waffletest.value.generateCsv();
}
function printRadar(){
radartest.value.generatePdf();
}
function xlsRadar() {
- radartest.value.generateXls();
+ radartest.value.generateCsv();
}
function printQuadrant(){
quadranttest.value.generatePdf();
}
function xlsQuadrant() {
- quadranttest.value.generateXls();
+ quadranttest.value.generateCsv();
}
const gaugetest = ref(null);
function printGauge(){
@@ -3166,7 +3166,7 @@ function printChestnut(){
chestnuttest.value.generatePdf();
}
function xlsChestnut() {
- chestnuttest.value.generateXls();
+ chestnuttest.value.generateCsv();
}
const oniontest = ref(null);
@@ -3174,7 +3174,7 @@ function printOnion(){
oniontest.value.generatePdf();
}
function xlsOnion() {
- oniontest.value.generateXls();
+ oniontest.value.generateCsv();
}
const verticaltest = ref(null);
@@ -3182,7 +3182,7 @@ function printVB(){
verticaltest.value.generatePdf();
}
function xlsVB() {
- verticaltest.value.generateXls();
+ verticaltest.value.generateCsv();
}
const heatmaptest = ref(null);
@@ -3190,14 +3190,14 @@ function printHeatmap(){
heatmaptest.value.generatePdf();
}
function xlsHeatmap() {
- heatmaptest.value.generateXls();
+ heatmaptest.value.generateCsv();
}
function printScatter(){
scatter.value.generatePdf();
}
function xlsScatter() {
- scatter.value.generateXls();
+ scatter.value.generateCsv();
}
const candlestick = ref(null);
@@ -3205,7 +3205,7 @@ function printCandle(){
candlestick.value.generatePdf();
}
function xlsCandle() {
- candlestick.value.generateXls();
+ candlestick.value.generateCsv();
}
const pyramid = ref(null);
@@ -3213,7 +3213,7 @@ function printPyramid(){
pyramid.value.generatePdf();
}
function xlsPyramid() {
- pyramid.value.generateXls();
+ pyramid.value.generateCsv();
}
const relation = ref(null);
diff --git a/src/atoms/UserOptions.vue b/src/atoms/UserOptions.vue
index 546b798f..1d9ff5f6 100644
--- a/src/atoms/UserOptions.vue
+++ b/src/atoms/UserOptions.vue
@@ -54,14 +54,14 @@ const props = defineProps({
}
});
-const emit = defineEmits(['generatePdf', 'generateXls', 'generateImage', 'toggleTable', 'toggleLabels', 'toggleSort']);
+const emit = defineEmits(['generatePdf', 'generateCsv', 'generateImage', 'toggleTable', 'toggleLabels', 'toggleSort']);
function generatePdf() {
emit('generatePdf');
}
-function generateXls() {
- emit('generateXls');
+function generateCsv() {
+ emit('generateCsv');
}
function generateImage() {
@@ -120,7 +120,7 @@ function toggleSort() {
-