@daoyi/nmtl-ui 2.0.1-beta.8 → 2.0.1-beta.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/lib/components/Autocomplete-cf913b25.js +423 -0
  2. package/lib/components/Autocomplete.js +19 -1
  3. package/lib/components/Avatar.js +53 -1
  4. package/lib/components/BackTop.js +109 -1
  5. package/lib/components/BarChart.js +762 -1
  6. package/lib/components/Breadcrumbs.js +122 -1
  7. package/lib/components/Button-611f1770.js +92 -0
  8. package/lib/components/Button.js +6 -1
  9. package/lib/components/Carousel.js +4654 -1
  10. package/lib/components/Checkbox.js +37 -1
  11. package/lib/components/CollapseContent.js +179 -1
  12. package/lib/components/ContactModal-0a4c67b8.js +12020 -0
  13. package/lib/components/ContactModal.js +22 -3
  14. package/lib/components/Drawer-55c0f66f.js +156 -0
  15. package/lib/components/Drawer.js +11 -1
  16. package/lib/components/Dropdown.js +134 -1
  17. package/lib/components/Empty-67b4d7d7.js +45 -0
  18. package/lib/components/Empty.js +5 -1
  19. package/lib/components/ExportButton.js +112 -1
  20. package/lib/components/ExtraTools-e4f085bc.js +3537 -0
  21. package/lib/components/ExtraTools.js +10 -22
  22. package/lib/components/Filter.js +782 -12
  23. package/lib/components/Footer.js +271 -1
  24. package/lib/components/ForwardLink-edab5061.js +106 -0
  25. package/lib/components/ForwardLink.js +8 -0
  26. package/lib/components/Header.js +194 -1
  27. package/lib/components/Image.js +61 -1
  28. package/lib/components/Input.js +82 -1
  29. package/lib/components/InputMethod.js +33949 -12
  30. package/lib/components/KeywordSearch-0b5681d9.js +144 -0
  31. package/lib/components/KeywordSearch.js +21 -1
  32. package/lib/components/KeywordTicker.js +190 -1
  33. package/lib/components/Keywords.js +317 -1
  34. package/lib/components/Loading.js +28 -1
  35. package/lib/components/MUITheme.js +2624 -1
  36. package/lib/components/Modal-c33b7a7f.js +108 -0
  37. package/lib/components/Modal.js +9 -1
  38. package/lib/components/MoreButton-b2306abb.js +110 -0
  39. package/lib/components/MoreButton.js +6 -1
  40. package/lib/components/Pagination.js +3637 -0
  41. package/lib/components/Radio.js +78 -1
  42. package/lib/components/SNA.js +1691 -22
  43. package/lib/components/Select-9a745e5c.js +115 -0
  44. package/lib/components/Select.js +8 -1
  45. package/lib/components/Spin-96bc2c76.js +75 -0
  46. package/lib/components/Spin.js +6 -1
  47. package/lib/components/Table.js +51 -1
  48. package/lib/components/Tooltip-123cc349.js +70 -0
  49. package/lib/components/Tooltip.js +7 -1
  50. package/lib/components/_commonjsHelpers-70de2c37.js +28 -0
  51. package/lib/components/_rollupPluginBabelHelpers-a52356f6.js +142 -0
  52. package/lib/components/createSvgIcon-ad1104bb.js +576 -0
  53. package/lib/components/dataExport-04b77185.js +93 -0
  54. package/lib/components/debounce-127da66c.js +355 -0
  55. package/lib/components/defaultTheme-ed7746fe.js +1661 -0
  56. package/lib/components/globalConfig.js +175 -0
  57. package/lib/components/hoist-non-react-statics.cjs-3f408ad2.js +105 -0
  58. package/lib/components/index-848f4409.js +61 -0
  59. package/lib/components/index-983dcd15.js +481 -0
  60. package/lib/components/isObjectLike-e111475d.js +190 -0
  61. package/lib/components/style-inject.es-1f59c1d0.js +28 -1
  62. package/lib/components/toConsumableArray-dbe8af76.js +19 -0
  63. package/lib/components/transform-3a04288b.js +5475 -0
  64. package/lib/components/withTheme-2d778133.js +6 -0
  65. package/lib/index.d.ts +2 -0
  66. package/lib/index.js +2 -0
  67. package/lib/utils/_rollupPluginBabelHelpers-8dd26e1a.js +121 -0
  68. package/lib/utils/arrayMerge.js +4953 -1
  69. package/lib/utils/chunkArray.js +15 -1
  70. package/lib/utils/convert2HtmlEntities.js +42 -1
  71. package/lib/utils/domToImage.js +802 -1
  72. package/lib/utils/downloadGephi.js +106 -1
  73. package/lib/utils/exportXlsx.js +219 -1
  74. package/lib/utils/historyAppendSearch.js +502 -1
  75. package/lib/utils/isDevelopMode.js +5 -1
  76. package/lib/utils/parseYMD.js +36 -1
  77. package/lib/utils/removeDuplicateItem.js +11 -1
  78. package/lib/utils/sendEmail.js +39 -1
  79. package/lib/utils/snaDefine-6a2bcd94.js +5 -0
  80. package/lib/utils/snaDefine.js +1 -1
  81. package/lib/utils/snaPreProcess.js +84 -1
  82. package/package.json +17 -21
  83. package/lib/components/Empty-54b79907.js +0 -1
  84. package/lib/components/KeywordSearch-5a393f12.js +0 -1
  85. package/lib/components/Select-f2441b83.js +0 -1
  86. package/lib/components/_rollupPluginBabelHelpers-1b8c042f.js +0 -1
  87. package/lib/components/_rollupPluginBabelHelpers-ec4e2a53.js +0 -1
  88. package/lib/components/createSvgIcon-62b64929.js +0 -1
  89. package/lib/components/createSvgIcon-e24792d4.js +0 -1
  90. package/lib/components/createTheme-7fffa109.js +0 -1
  91. package/lib/components/dataExport-9fccd4f0.js +0 -1
  92. package/lib/components/debounce-c993109b.js +0 -1
  93. package/lib/components/hoist-non-react-statics.cjs-d6a9befd.js +0 -1
  94. package/lib/components/index-11391ca3.js +0 -7
  95. package/lib/components/index-b2745105.js +0 -7
  96. package/lib/components/isObjectLike-2f1983fe.js +0 -1
  97. package/lib/components/style-inject.es-c875d022.js +0 -1
  98. package/lib/components/transform-0eb2d36e.js +0 -1
  99. package/lib/utils/_commonjsHelpers-e2cda605.js +0 -1
  100. package/lib/utils/_rollupPluginBabelHelpers-928a52ce.js +0 -1
@@ -1 +1,106 @@
1
- var e=require("jszip"),t=require("react-file-download"),n=function(n){var r=n.nodes,a=(n.links||[]).map((function(e){var t=e.source,n=e.target;return{source:r[t].name,target:r[n].name,sourceType:r[t].type,targetType:r[n].type}})),c=function(e){var t=1e7,n={},r=!1;e.forEach((function(e){var a=e.source,c=e.target,o=e.sourceType,E=e.targetType;""!==c&&""!==a&&(Object.keys(n).indexOf(a)<0?(""!==o?(r=!0,n[a]={ID:t,WEIGHT:1,NODE_TYPE:o}):n[a]={ID:t,WEIGHT:1},t+=1):n[a].WEIGHT+=1,Object.keys(n).indexOf(c)<0?(""!==E?(r=!0,n[c]={ID:t,WEIGHT:1,NODE_TYPE:E}):n[c]={ID:t,WEIGHT:1},t+=1):n[c].WEIGHT+=1)}));var a=r?"ID\tLABEL\tWEIGHT\tNODE_TYPE\r\n":"ID\tLABEL\tWEIGHT\r\n";return Object.keys(n).forEach((function(e){var t=n[e].ID,c=n[e].WEIGHT,o=r?n[e].NODE_TYPE:"";a+=r?"".concat(t,"\t").concat(e,"\t").concat(c,"\t").concat(o,"\r\n"):"".concat(t,"\t").concat(e,"\t").concat(c,"\r\n")})),{nodeMap:n,nodesTsv:a}}(a),o=c.nodeMap,E=c.nodesTsv,T=function(e,t){var n="SOURCE\tTARGET\tWEIGHT\tTYPE\r\n";return e.forEach((function(e){var r=e.source,a=e.target;if(""!==a&&""!==r){var c=t[r].ID,o=t[a].ID;n+="".concat(c,"\t").concat(o,"\t1\tUndirected\r\n")}})),n}(a,o),i=new e;i.file("Node_Table.tsv",E),i.file("Edge_Table.tsv",T),i.generateAsync({type:"blob"}).then((function(e){t(e,"Gephi_generated_by_NMTL.zip")}))};export{n as default};
1
+ var JSZip = require('jszip');
2
+ var fileDownload = require('react-file-download');
3
+ var DownloadGephiFileName = 'Gephi_generated_by_NMTL.zip';
4
+ var generateNode = function generateNode(result) {
5
+ var IdCount = 10000000;
6
+ var nodeMap = {};
7
+ var foundType = false;
8
+ result.forEach(function (_ref) {
9
+ var source = _ref.source,
10
+ target = _ref.target,
11
+ sourceType = _ref.sourceType,
12
+ targetType = _ref.targetType;
13
+ if (target === '' || source === '') {
14
+ return;
15
+ }
16
+ if (Object.keys(nodeMap).indexOf(source) < 0) {
17
+ if (sourceType !== '') {
18
+ foundType = true;
19
+ nodeMap[source] = {
20
+ ID: IdCount,
21
+ WEIGHT: 1,
22
+ NODE_TYPE: sourceType
23
+ };
24
+ } else {
25
+ nodeMap[source] = {
26
+ ID: IdCount,
27
+ WEIGHT: 1
28
+ };
29
+ }
30
+ IdCount += 1;
31
+ } else {
32
+ nodeMap[source].WEIGHT += 1;
33
+ }
34
+ if (Object.keys(nodeMap).indexOf(target) < 0) {
35
+ if (targetType !== '') {
36
+ foundType = true;
37
+ nodeMap[target] = {
38
+ ID: IdCount,
39
+ WEIGHT: 1,
40
+ NODE_TYPE: targetType
41
+ };
42
+ } else {
43
+ nodeMap[target] = {
44
+ ID: IdCount,
45
+ WEIGHT: 1
46
+ };
47
+ }
48
+ IdCount += 1;
49
+ } else {
50
+ nodeMap[target].WEIGHT += 1;
51
+ }
52
+ });
53
+ var tsvStr = foundType ? 'ID\tLABEL\tWEIGHT\tNODE_TYPE\r\n' : 'ID\tLABEL\tWEIGHT\r\n';
54
+ Object.keys(nodeMap).forEach(function (key) {
55
+ var idval = nodeMap[key].ID;
56
+ var wval = nodeMap[key].WEIGHT;
57
+ var type = foundType ? nodeMap[key].NODE_TYPE : '';
58
+ tsvStr += foundType ? "".concat(idval, "\t").concat(key, "\t").concat(wval, "\t").concat(type, "\r\n") : "".concat(idval, "\t").concat(key, "\t").concat(wval, "\r\n");
59
+ });
60
+ return {
61
+ nodeMap: nodeMap,
62
+ nodesTsv: tsvStr
63
+ };
64
+ };
65
+ var generateEdge = function generateEdge(result, nodeMap) {
66
+ var edgeStr = 'SOURCE\tTARGET\tWEIGHT\tTYPE\r\n';
67
+ result.forEach(function (_ref2) {
68
+ var source = _ref2.source,
69
+ target = _ref2.target;
70
+ if (target === '' || source === '') {
71
+ return;
72
+ }
73
+ var sourceId = nodeMap[source].ID;
74
+ var targetId = nodeMap[target].ID;
75
+ edgeStr += "".concat(sourceId, "\t").concat(targetId, "\t1\tUndirected\r\n");
76
+ });
77
+ return edgeStr;
78
+ };
79
+ var downloadGephi = function downloadGephi(snaData) {
80
+ var nodes = snaData.nodes,
81
+ links = snaData.links;
82
+ var result = (links || []).map(function (_ref3) {
83
+ var source = _ref3.source,
84
+ target = _ref3.target;
85
+ return {
86
+ source: nodes[source].name,
87
+ target: nodes[target].name,
88
+ sourceType: nodes[source].type,
89
+ targetType: nodes[target].type
90
+ };
91
+ });
92
+ var _generateNode = generateNode(result),
93
+ nodeMap = _generateNode.nodeMap,
94
+ nodesTsv = _generateNode.nodesTsv;
95
+ var edgesTsv = generateEdge(result, nodeMap);
96
+ var zip = new JSZip();
97
+ zip.file('Node_Table.tsv', nodesTsv);
98
+ zip.file('Edge_Table.tsv', edgesTsv);
99
+ zip.generateAsync({
100
+ type: 'blob'
101
+ }).then(function (content) {
102
+ fileDownload(content, DownloadGephiFileName);
103
+ });
104
+ };
105
+
106
+ export { downloadGephi as default };
@@ -1 +1,219 @@
1
- import{a as t}from"./_rollupPluginBabelHelpers-928a52ce.js";var e=function(t){var e,n=t.data,a=t.dataType,o=t.extType,r=void 0===o?"xlsx":o;if("sna"===a)e=function(t){var e=t||{},n=e.links,a=e.nodes;return n&&n.length>0?n.map((function(t){return{From:a[t.source].name,To:a[t.target].name}})):[]}(n);else e=n;!function(t,e,n,a){var o=new Blob(void 0!==a?[a,t]:[t],{type:n||"application/octet-stream"});if(void 0!==window.navigator.msSaveBlob)window.navigator.msSaveBlob(o,e);else{var r=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(o):window.webkitURL.createObjectURL(o),c=document.createElement("a");c.style.display="none",c.href=r,c.setAttribute("download",e),void 0===c.download&&c.setAttribute("target","_blank"),document.body.appendChild(c),c.click(),setTimeout((function(){document.body.removeChild(c),window.URL.revokeObjectURL(r)}),200)}}("\ufeff".concat(function(t){var e="";if(Array.isArray(t)&&t.length>0){var n=Object.keys(t[0]);e+="".concat(n.toString(),"\n"),t.forEach((function(t){n.forEach((function(n){e+="".concat(t[n],",")})),e+="\n"}))}else{var a=Object.keys(t);e+="".concat(a.toString(),"\n"),a.forEach((function(n){e+="".concat(t[n],",")})),e+="\n"}return e}(e)),"output.".concat(r))};e.chronologyConvert=function(e){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=e.split('<span class="tooltip">'),a=t(n,2),o=a[0],r=a[1];return{before:o,after:r}};return(e||[]).map((function(t){var e=t.start_date,a=e.day,o=e.month,r=e.year,c=t.display_date,i=t.text,l=i.headline,u=i.text;return{"日期":"".concat(r||"","/").concat(o||"","/").concat(a||""),"名稱":(c||"").replace("<span>","").replace("</span>",""),"描述":(l||"").replaceAll(/(<([^>]+)>)/gi,""),"類型":n(u).before,"註(資料集名稱)":n(u).after.replaceAll("\n","").replaceAll("\t","").replace("註","").replace("資料來源:","").replaceAll(/(<([^>]+)>)/gi,"")}}))},e.mapConvert=function(t){return(t||[]).map((function(t){return{"名稱(書名/文章名)":t.title||"","作者":t.author||"","出版者":t.publisher||"","地點(作品描述區域)":t.locations||"","經度":t.posX||"","緯度":t.posY||""}}))},e.mapLgConvert=function(t){return(t||[]).map((function(t){var e=t.title,n=t.locationOfFormation,a=t.workLocations;return{"組織名稱":e||"","創立地點":n,"創立地點經度":t.createPosX||"","創立地點緯度":t.createPosY||"","活動地點":a||"","活動地點經度":t.activePosX||"","活動地點緯度":t.activePosY||""}}))},e.worksBarChart=function(t){return(t||[]).map((function(t){var e=t.date,n=t.year,a=t.title,o=t.keywords,r=t.authors,c=t.genreName;return{"出版年/發表年":e||n||"","名稱(書名/文章名)":a||"","作者":(r||[]).map((function(t){return t.author})).join(","),"關鍵字":(o||"").replaceAll("\n",""),"文學分類":c||""}}))},e.worksSlider=function(t){return(t||[]).map((function(t){return{"名稱(書名/文章名)":t.title||"","作者":t.author||"","出版日期/發表日期":t.date||""}}))};export{e as default};
1
+ import { a as _slicedToArray } from './_rollupPluginBabelHelpers-8dd26e1a.js';
2
+
3
+ var fileDownload = function(data, filename, mime, bom) {
4
+ var blobData = (typeof bom !== 'undefined') ? [bom, data] : [data];
5
+ var blob = new Blob(blobData, {type: mime || 'application/octet-stream'});
6
+ if (typeof window.navigator.msSaveBlob !== 'undefined') {
7
+ // IE workaround for "HTML7007: One or more blob URLs were
8
+ // revoked by closing the blob for which they were created.
9
+ // These URLs will no longer resolve as the data backing
10
+ // the URL has been freed."
11
+ window.navigator.msSaveBlob(blob, filename);
12
+ }
13
+ else {
14
+ var blobURL = (window.URL && window.URL.createObjectURL) ? window.URL.createObjectURL(blob) : window.webkitURL.createObjectURL(blob);
15
+ var tempLink = document.createElement('a');
16
+ tempLink.style.display = 'none';
17
+ tempLink.href = blobURL;
18
+ tempLink.setAttribute('download', filename);
19
+
20
+ // Safari thinks _blank anchor are pop ups. We only want to set _blank
21
+ // target if the browser does not support the HTML5 download attribute.
22
+ // This allows you to download files in desktop safari if pop up blocking
23
+ // is enabled.
24
+ if (typeof tempLink.download === 'undefined') {
25
+ tempLink.setAttribute('target', '_blank');
26
+ }
27
+
28
+ document.body.appendChild(tempLink);
29
+ tempLink.click();
30
+
31
+ // Fixes "webkit blob resource error 1"
32
+ setTimeout(function() {
33
+ document.body.removeChild(tempLink);
34
+ window.URL.revokeObjectURL(blobURL);
35
+ }, 200);
36
+ }
37
+ };
38
+
39
+ var jsonExcel = function jsonExcel(json) {
40
+ var output = '';
41
+ if (Array.isArray(json) && json.length > 0) {
42
+ var keys = Object.keys(json[0]);
43
+ output += "".concat(keys.toString(), "\n");
44
+ json.forEach(function (item) {
45
+ keys.forEach(function (key) {
46
+ output += "".concat(item[key], ",");
47
+ });
48
+ output += '\n';
49
+ });
50
+ } else {
51
+ var _keys = Object.keys(json);
52
+ output += "".concat(_keys.toString(), "\n");
53
+ _keys.forEach(function (key) {
54
+ output += "".concat(json[key], ",");
55
+ });
56
+ output += '\n';
57
+ }
58
+ return output;
59
+ };
60
+ var snaToExcel = function snaToExcel(data) {
61
+ var _ref = data || {},
62
+ links = _ref.links,
63
+ nodes = _ref.nodes;
64
+ if (links && links.length > 0) {
65
+ var result = links.map(function (link) {
66
+ return {
67
+ From: nodes[link.source].name,
68
+ To: nodes[link.target].name
69
+ };
70
+ });
71
+ return result;
72
+ }
73
+ return [];
74
+ };
75
+
76
+ /* 轉檔工具, 提供API轉下載tsv/xlsx */
77
+
78
+ /* 大事年表 */
79
+ var chronologyConvert = function chronologyConvert(data) {
80
+ var getText = function getText() {
81
+ var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
82
+ var _text$split = text.split('<span class="tooltip">'),
83
+ _text$split2 = _slicedToArray(_text$split, 2),
84
+ before = _text$split2[0],
85
+ after = _text$split2[1];
86
+ return {
87
+ before: before,
88
+ after: after
89
+ };
90
+ };
91
+
92
+ /* 做資料過濾 */
93
+ var newData = (data || []).map(function (_ref) {
94
+ var _ref$start_date = _ref.start_date,
95
+ day = _ref$start_date.day,
96
+ month = _ref$start_date.month,
97
+ year = _ref$start_date.year,
98
+ displayDate = _ref.display_date,
99
+ _ref$text = _ref.text,
100
+ headline = _ref$text.headline,
101
+ text = _ref$text.text;
102
+ return {
103
+ 日期: "".concat(year || '', "/").concat(month || '', "/").concat(day || ''),
104
+ 名稱: (displayDate || '').replace('<span>', '').replace('</span>', ''),
105
+ 描述: (headline || '').replaceAll(/(<([^>]+)>)/gi, ''),
106
+ 類型: getText(text).before,
107
+ '註(資料集名稱)': getText(text).after.replaceAll('\n', '').replaceAll('\t', '').replace('註', '').replace('資料來源:', '').replaceAll(/(<([^>]+)>)/gi, '')
108
+ };
109
+ });
110
+ return newData;
111
+ };
112
+
113
+ /* 文學數據 - 地圖 */
114
+ var mapConvert = function mapConvert(data) {
115
+ return (data || []).map(function (_ref2) {
116
+ var title = _ref2.title,
117
+ author = _ref2.author,
118
+ publisher = _ref2.publisher,
119
+ locations = _ref2.locations,
120
+ posX = _ref2.posX,
121
+ posY = _ref2.posY;
122
+ return {
123
+ '名稱(書名/文章名)': title || '',
124
+ 作者: author || '',
125
+ 出版者: publisher || '',
126
+ '地點(作品描述區域)': locations || '',
127
+ 經度: posX || '',
128
+ 緯度: posY || ''
129
+ };
130
+ });
131
+ };
132
+
133
+ /* 文學數據 - 地圖(文學聚落) */
134
+ var mapLgConvert = function mapLgConvert(data) {
135
+ return (data || []).map(function (_ref3) {
136
+ var title = _ref3.title,
137
+ locationOfFormation = _ref3.locationOfFormation,
138
+ workLocations = _ref3.workLocations,
139
+ createPosX = _ref3.createPosX,
140
+ createPosY = _ref3.createPosY,
141
+ activePosX = _ref3.activePosX,
142
+ activePosY = _ref3.activePosY;
143
+ return {
144
+ 組織名稱: title || '',
145
+ 創立地點: locationOfFormation,
146
+ 創立地點經度: createPosX || '',
147
+ 創立地點緯度: createPosY || '',
148
+ 活動地點: workLocations || '',
149
+ 活動地點經度: activePosX || '',
150
+ 活動地點緯度: activePosY || ''
151
+ };
152
+ });
153
+ };
154
+
155
+ /* 文學數據 - 年度聲量 */
156
+ var worksBarChart = function worksBarChart(data) {
157
+ return (data || []).map(function (_ref4) {
158
+ var date = _ref4.date,
159
+ year = _ref4.year,
160
+ title = _ref4.title,
161
+ keywords = _ref4.keywords,
162
+ authors = _ref4.authors,
163
+ genreName = _ref4.genreName;
164
+ return {
165
+ '出版年/發表年': date || year || '',
166
+ '名稱(書名/文章名)': title || '',
167
+ 作者: (authors || []).map(function (_ref5) {
168
+ var author = _ref5.author;
169
+ return author;
170
+ }).join(','),
171
+ 關鍵字: (keywords || '').replaceAll('\n', ''),
172
+ 文學分類: genreName || ''
173
+ };
174
+ });
175
+ };
176
+
177
+ /* 文學數據 - 文學自由搭配 */
178
+ var worksSlider = function worksSlider(data) {
179
+ return (data || []).map(function (_ref6) {
180
+ var title = _ref6.title,
181
+ author = _ref6.author,
182
+ date = _ref6.date;
183
+ return {
184
+ '名稱(書名/文章名)': title || '',
185
+ 作者: author || '',
186
+ '出版日期/發表日期': date || ''
187
+ // 文學分類: genreName || '',
188
+ // 作品描述地: workDesc || '',
189
+ // 作家出生地: locations,
190
+ // 獲獎獎項: awards || '',
191
+ };
192
+ });
193
+ };
194
+
195
+ var exportXlsx = function exportXlsx(_ref) {
196
+ var data = _ref.data,
197
+ dataType = _ref.dataType,
198
+ _ref$extType = _ref.extType,
199
+ extType = _ref$extType === void 0 ? 'xlsx' : _ref$extType;
200
+ var metadata;
201
+ switch (dataType) {
202
+ case 'sna':
203
+ metadata = snaToExcel(data);
204
+ break;
205
+ default:
206
+ metadata = data;
207
+ break;
208
+ }
209
+ fileDownload("\uFEFF".concat(jsonExcel(metadata)), "output.".concat(extType));
210
+ };
211
+
212
+ // 供外部使用dataConvert
213
+ exportXlsx.chronologyConvert = chronologyConvert;
214
+ exportXlsx.mapConvert = mapConvert;
215
+ exportXlsx.mapLgConvert = mapLgConvert;
216
+ exportXlsx.worksBarChart = worksBarChart;
217
+ exportXlsx.worksSlider = worksSlider;
218
+
219
+ export { exportXlsx as default };