@nocobase/plugin-action-import 2.0.0-alpha.49 → 2.0.0-alpha.50
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.
- package/dist/externalVersion.js +8 -8
- package/dist/locale/de-DE.json +41 -39
- package/dist/locale/en-US.json +42 -31
- package/dist/locale/es-ES.json +43 -17
- package/dist/locale/fr-FR.json +53 -0
- package/dist/locale/hu-HU.json +53 -0
- package/dist/locale/id-ID.json +53 -0
- package/dist/locale/it-IT.json +40 -38
- package/dist/locale/ja-JP.json +42 -19
- package/dist/locale/ko-KR.json +47 -22
- package/dist/locale/nl-NL.json +51 -48
- package/dist/locale/pt-BR.json +44 -17
- package/dist/locale/ru-RU.json +9 -6
- package/dist/locale/tr-TR.json +53 -0
- package/dist/locale/uk-UA.json +53 -0
- package/dist/locale/vi-VN.json +53 -0
- package/dist/locale/zh-CN.json +41 -41
- package/dist/locale/zh-TW.json +53 -0
- package/dist/node_modules/exceljs/package.json +1 -1
- package/dist/node_modules/xlsx/package.json +1 -1
- package/dist/server/locale/zh-CN.json +3 -2
- package/dist/server/services/xlsx-importer.js +10 -1
- package/package.json +2 -2
package/dist/locale/zh-CN.json
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"Import": "导入",
|
|
7
|
-
"Start import": "开始导入",
|
|
8
|
-
"Import explain": "说明",
|
|
2
|
+
"Add importable field": "添加可导入字段",
|
|
3
|
+
"Columns configuration is empty": "列配置为空",
|
|
4
|
+
"Custom column title": "自定义列标题",
|
|
5
|
+
"Done": "完成",
|
|
9
6
|
"Download template": "下载模板",
|
|
10
|
-
"Step 1: Download template": "1.下载模板",
|
|
11
|
-
"Step 2: Upload Excel": "2.上传完善后的表格",
|
|
12
|
-
"Step 3: Import options": "3.导入选项",
|
|
13
7
|
"Download tips": "- 下载模板后,按格式填写数据\r\n - 只导入第一张工作表\r\n - 请勿改模板表头,防止导入失败",
|
|
14
|
-
"Import warnings": "每次最多导入 {{limit}} 行数据,超出的将被忽略。",
|
|
15
|
-
"Upload placeholder": "将文件拖曳到此处或点击上传。",
|
|
16
8
|
"Excel data importing": "数据导入中,请勿关闭窗口",
|
|
17
|
-
"{{
|
|
18
|
-
"To download the failure data": "下载导入失败的数据",
|
|
19
|
-
"Add importable field": "添加可导入字段",
|
|
20
|
-
"Done": "完成",
|
|
21
|
-
"Yes": "是",
|
|
22
|
-
"No": "否",
|
|
23
|
-
"Please select": "请选择",
|
|
24
|
-
"Field {{fieldName}} does not exist": "字段 {{fieldName}} 不存在",
|
|
25
|
-
"can not find value": "找不到对应值",
|
|
26
|
-
"password is empty": "密码为空",
|
|
27
|
-
"Incorrect time format": "时间格式不正确",
|
|
28
|
-
"Incorrect date format": "日期格式不正确",
|
|
29
|
-
"Incorrect email format": "邮箱格式不正确",
|
|
30
|
-
"Illegal percentage format": "百分比格式有误",
|
|
31
|
-
"Imported template does not match, please download again.": "导入模板不匹配,请检查导入文件标题行或重新下载导入模板",
|
|
32
|
-
"another import action is running, please try again later.": "另一导入任务正在运行,请稍后重试。",
|
|
33
|
-
"Custom column title": "自定义列标题",
|
|
9
|
+
"Failed to import row {{row}}, {{message}}, row data: {{data}}": "导入第 {{row}} 行失败,{{message}},行数据:{{data}}",
|
|
34
10
|
"Field description": "字段说明",
|
|
35
11
|
"Field description placeholder": "请输入字段说明",
|
|
36
|
-
"Columns configuration is empty": "列配置为空",
|
|
37
12
|
"Field not found: {{field}}": "字段未找到:{{field}}",
|
|
38
|
-
"
|
|
13
|
+
"Field {{fieldName}} does not exist": "字段 {{fieldName}} 不存在",
|
|
14
|
+
"File size cannot exceed 10M": "文件大小不能超过10M",
|
|
39
15
|
"Header mismatch at column {{column}}: expected \"{{expected}}\", but got \"{{actual}}\"": "第 {{column}} 列的表头不匹配:预期 \"{{expected}}\",实际是 \"{{actual}}\"",
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
16
|
+
"Headers not found. Expected headers: {{headers}}": "未找到表头。预期的表头:{{headers}}",
|
|
17
|
+
"Illegal percentage format": "百分比格式有误",
|
|
18
|
+
"Import": "导入",
|
|
19
|
+
"Import Data": "导入数据",
|
|
20
|
+
"Import action settings": "导入设置",
|
|
44
21
|
"Import completed": "导入完成:{{success}} 条记录已导入,{{updated}} 条记录已更新,{{skipped}} 条记录已跳过,共 {{total}} 条记录",
|
|
45
|
-
"
|
|
46
|
-
"
|
|
22
|
+
"Import explain": "说明",
|
|
23
|
+
"Import warnings": "每次最多导入 {{limit}} 行数据,超出的将被忽略。",
|
|
24
|
+
"ImportResult": "已导入 {{success}} 条,更新 {{updated}} 条,跳过 {{skipped}} 条,共 {{total}} 条",
|
|
25
|
+
"Imported template does not match, please download again.": "导入模板不匹配,请检查导入文件标题行或重新下载导入模板",
|
|
26
|
+
"Incorrect date format": "日期格式不正确",
|
|
27
|
+
"Incorrect email format": "邮箱格式不正确",
|
|
28
|
+
"Incorrect time format": "时间格式不正确",
|
|
29
|
+
"No": "否",
|
|
30
|
+
"No data to import": "没有数据可导入",
|
|
31
|
+
"Only one file is allowed to be uploaded": "只允许上传一个文件",
|
|
32
|
+
"Please select": "请选择",
|
|
33
|
+
"Please upload the file of Excel": "请上传Excel的文件",
|
|
47
34
|
"Skipped records": "已跳过记录",
|
|
35
|
+
"Start import": "开始导入",
|
|
36
|
+
"Step 1: Download template": "1.下载模板",
|
|
37
|
+
"Step 2: Upload Excel": "2.上传完善后的表格",
|
|
38
|
+
"Step 3: Import options": "3.导入选项",
|
|
39
|
+
"Successfully imported": "成功导入",
|
|
40
|
+
"Task result": "任务结果",
|
|
41
|
+
"To download the failure data": "下载导入失败的数据",
|
|
48
42
|
"Total records": "总记录数",
|
|
43
|
+
"Unique constraint error, fields:": "唯一性约束错误,字段:",
|
|
44
|
+
"Updated records": "已更新记录",
|
|
45
|
+
"Upload placeholder": "将文件拖曳到此处或点击上传,文件大小不超过 80M",
|
|
49
46
|
"View result": "查看结果",
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
}
|
|
47
|
+
"Yes": "是",
|
|
48
|
+
"another import action is running, please try again later.": "另一导入任务正在运行,请稍后重试。",
|
|
49
|
+
"can not find value": "找不到对应值",
|
|
50
|
+
"import-error": "导入第 {{rowIndex}} 行失败,行数据:{{rowData}}, 原因:{{causeMessage}}",
|
|
51
|
+
"password is empty": "密码为空",
|
|
52
|
+
"{{successCount}} records have been successfully imported": "已成功导入 {{successCount}} 条数据"
|
|
53
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Add importable field": "Add importable field",
|
|
3
|
+
"Columns configuration is empty": "Columns configuration is empty",
|
|
4
|
+
"Custom column title": "Custom column title",
|
|
5
|
+
"Done": "Done",
|
|
6
|
+
"Download template": "Download template",
|
|
7
|
+
"Download tips": "- Download the template and fill in the data according to the format \r\n - Import only the first worksheet \r\n - Do not change the header of the template to prevent import failure",
|
|
8
|
+
"Excel data importing": "Excel data importing",
|
|
9
|
+
"Failed to import row {{row}}, {{message}}, row data: {{data}}": "Failed to import row {{row}}, {{message}}, row data: {{data}}",
|
|
10
|
+
"Field description": "Field description",
|
|
11
|
+
"Field description placeholder": "Enter field description",
|
|
12
|
+
"Field not found: {{field}}": "Field not found: {{field}}",
|
|
13
|
+
"Field {{fieldName}} does not exist": "Field {{fieldName}} does not exist",
|
|
14
|
+
"File size cannot exceed 10M": "File size cannot exceed 10M",
|
|
15
|
+
"Header mismatch at column {{column}}: expected \"{{expected}}\", but got \"{{actual}}\"": "Header mismatch at column {{column}}: expected \"{{expected}}\", but got \"{{actual}}\"",
|
|
16
|
+
"Headers not found. Expected headers: {{headers}}": "Headers not found. Expected headers: {{headers}}",
|
|
17
|
+
"Illegal percentage format": "Illegal percentage format",
|
|
18
|
+
"Import": "Import",
|
|
19
|
+
"Import Data": "Import Data",
|
|
20
|
+
"Import action settings": "Import action settings",
|
|
21
|
+
"Import completed": "Import completed",
|
|
22
|
+
"Import explain": "Guide",
|
|
23
|
+
"Import warnings": "You can import up to {{limit}} rows of data at a time, any excess will be ignored.",
|
|
24
|
+
"ImportResult": "ImportResult",
|
|
25
|
+
"Imported template does not match, please download again.": "Imported template does not match, please download again.",
|
|
26
|
+
"Incorrect date format": "Incorrect date format",
|
|
27
|
+
"Incorrect email format": "Incorrect email format",
|
|
28
|
+
"Incorrect time format": "Incorrect time format",
|
|
29
|
+
"No": "No",
|
|
30
|
+
"No data to import": "No data to import",
|
|
31
|
+
"Only one file is allowed to be uploaded": "Only one file is allowed to be uploaded",
|
|
32
|
+
"Please select": "Please select",
|
|
33
|
+
"Please upload the file of Excel": "Please upload the file of Excel",
|
|
34
|
+
"Skipped records": "Skipped records",
|
|
35
|
+
"Start import": "Start import",
|
|
36
|
+
"Step 1: Download template": "Step 1: Download template",
|
|
37
|
+
"Step 2: Upload Excel": "Step 2: Upload Excel",
|
|
38
|
+
"Step 3: Import options": "Step 3: Import options",
|
|
39
|
+
"Successfully imported": "Successfully imported",
|
|
40
|
+
"Task result": "Task result",
|
|
41
|
+
"To download the failure data": "To download the failure data",
|
|
42
|
+
"Total records": "Total records",
|
|
43
|
+
"Unique constraint error, fields:": "Unique constraint error, fields:",
|
|
44
|
+
"Updated records": "Updated records",
|
|
45
|
+
"Upload placeholder": "Drag and drop the file here or click to upload, file size should not exceed 80M",
|
|
46
|
+
"View result": "View result",
|
|
47
|
+
"Yes": "Yes",
|
|
48
|
+
"another import action is running, please try again later.": "another import action is running, please try again later.",
|
|
49
|
+
"can not find value": "can not find value",
|
|
50
|
+
"import-error": "Failed to import row {{rowIndex}}, row data: {{rowData}}, cause: {{causeMessage}}",
|
|
51
|
+
"password is empty": "password is empty",
|
|
52
|
+
"{{successCount}} records have been successfully imported": "{{successCount}} records have been successfully imported"
|
|
53
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"exceljs","version":"4.4.0","description":"Excel Workbook Manager - Read and Write xlsx and csv Files.","private":false,"license":"MIT","author":{"name":"Guyon Roche","email":"guyon@live.com"},"repository":{"type":"git","url":"https://github.com/exceljs/exceljs.git"},"engines":{"node":">=8.3.0"},"main":"./excel.js","browser":"./dist/exceljs.min.js","types":"./index.d.ts","files":["dist","lib","excel.js","LICENSE","README.md","README_zh.md","index.ts","index.d.ts"],"scripts":{"test":"npm run test:full","test:es5":"export EXCEL_BUILD=es5 && npm run test:full","test:full":"npm run build && npm run test:unit && npm run test:integration && npm run test:end-to-end && npm run test:jasmine","test:version":"npm run build && npm run test:unit && npm run test:integration && npm run test:end-to-end && npm run test:browser && npm run test:dist","test:all":"npm run test:native && npm run test:es5","test:native":"npm run test:full","test:unit":"mocha --require spec/config/setup --require spec/config/setup-unit spec/unit --recursive","test:integration":"mocha --require spec/config/setup spec/integration --recursive","test:end-to-end":"mocha --require spec/config/setup spec/end-to-end --recursive","test:browser":"if [ ! -f .disable-test-browser ]; then npm run build && npm run test:jasmine; fi","test:jasmine":"grunt jasmine","test:unit:es5":"export EXCEL_BUILD=es5 && npm run test:unit","test:integration:es5":"export EXCEL_BUILD=es5 && npm run test:integration","test:end-to-end:es5":"export EXCEL_BUILD=es5 && npm run test:end-to-end","test:dist":"mocha --require spec/config/setup spec/dist --recursive","test:manual":"node spec/manual/app.js","test:typescript":"mocha -r ts-node/register spec/typescript/**/*.spec.ts","clean-build":"npm run clean && npm run build","lint":"eslint --format node_modules/eslint-friendly-formatter .","lint:fix":"prettier-eslint --write $(pwd)'/**/*.js'","lint:staged":"lint-staged","clean":"rm -rf build/ && rm -rf dist","benchmark":"node --expose-gc benchmark","benchmark:debug":"node --expose-gc --inspect-brk --trace-deopt benchmark","build":"grunt build","install-build":"npm install && grunt build","preversion":"npm run clean && npm run build && npm run test:version","postversion":"git push --no-verify && git push --tags --no-verify"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["prettier-eslint --write","eslint --format node_modules/eslint-friendly-formatter","git add"]},"keywords":["xlsx","json","csv","excel","font","border","fill","number","format","number format","alignment","office","spreadsheet","workbook","defined names","data validations","rich text","in-cell format","outlineLevel","views","frozen","split","pageSetup"],"dependencies":{"archiver":"^5.0.0","dayjs":"^1.8.34","fast-csv":"^4.3.1","jszip":"^3.10.1","readable-stream":"^3.6.0","saxes":"^5.0.1","tmp":"^0.2.0","unzipper":"^0.10.11","uuid":"^8.3.0"},"devDependencies":{"@babel/cli":"^7.10.5","@babel/core":"^7.11.4","@babel/preset-env":"^7.11.0","@types/chai":"^4.2.12","@types/mocha":"^8.0.3","@types/node":"^14.11.2","babelify":"^10.0.0","browserify":"^16.5.2","chai":"^4.2.0","chai-datetime":"^1.7.0","chai-xml":"^0.3.2","core-js":"^3.6.5","dirty-chai":"^2.0.1","eslint":"^6.5.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.12.0","eslint-friendly-formatter":"^4.0.1","eslint-plugin-import":"^2.22.0","eslint-plugin-node":"^11.1.0","express":"^4.16.4","got":"^9.0.0","grunt":"^1.3.0","grunt-babel":"^8.0.0","grunt-browserify":"^5.3.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-jasmine":"^2.2.0","grunt-contrib-watch":"^1.1.0","grunt-exorcise":"^2.1.1","grunt-terser":"^1.0.0","husky":"^4.3.0","lint-staged":"^10.2.13","mocha":"^7.2.0","prettier-eslint":"^11.0.0","prettier-eslint-cli":"^5.0.0","regenerator-runtime":"^0.13.7","sax":"^1.2.4","ts-node":"^8.10.2","typescript":"^3.9.7"},"_lastModified":"2025-
|
|
1
|
+
{"name":"exceljs","version":"4.4.0","description":"Excel Workbook Manager - Read and Write xlsx and csv Files.","private":false,"license":"MIT","author":{"name":"Guyon Roche","email":"guyon@live.com"},"repository":{"type":"git","url":"https://github.com/exceljs/exceljs.git"},"engines":{"node":">=8.3.0"},"main":"./excel.js","browser":"./dist/exceljs.min.js","types":"./index.d.ts","files":["dist","lib","excel.js","LICENSE","README.md","README_zh.md","index.ts","index.d.ts"],"scripts":{"test":"npm run test:full","test:es5":"export EXCEL_BUILD=es5 && npm run test:full","test:full":"npm run build && npm run test:unit && npm run test:integration && npm run test:end-to-end && npm run test:jasmine","test:version":"npm run build && npm run test:unit && npm run test:integration && npm run test:end-to-end && npm run test:browser && npm run test:dist","test:all":"npm run test:native && npm run test:es5","test:native":"npm run test:full","test:unit":"mocha --require spec/config/setup --require spec/config/setup-unit spec/unit --recursive","test:integration":"mocha --require spec/config/setup spec/integration --recursive","test:end-to-end":"mocha --require spec/config/setup spec/end-to-end --recursive","test:browser":"if [ ! -f .disable-test-browser ]; then npm run build && npm run test:jasmine; fi","test:jasmine":"grunt jasmine","test:unit:es5":"export EXCEL_BUILD=es5 && npm run test:unit","test:integration:es5":"export EXCEL_BUILD=es5 && npm run test:integration","test:end-to-end:es5":"export EXCEL_BUILD=es5 && npm run test:end-to-end","test:dist":"mocha --require spec/config/setup spec/dist --recursive","test:manual":"node spec/manual/app.js","test:typescript":"mocha -r ts-node/register spec/typescript/**/*.spec.ts","clean-build":"npm run clean && npm run build","lint":"eslint --format node_modules/eslint-friendly-formatter .","lint:fix":"prettier-eslint --write $(pwd)'/**/*.js'","lint:staged":"lint-staged","clean":"rm -rf build/ && rm -rf dist","benchmark":"node --expose-gc benchmark","benchmark:debug":"node --expose-gc --inspect-brk --trace-deopt benchmark","build":"grunt build","install-build":"npm install && grunt build","preversion":"npm run clean && npm run build && npm run test:version","postversion":"git push --no-verify && git push --tags --no-verify"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["prettier-eslint --write","eslint --format node_modules/eslint-friendly-formatter","git add"]},"keywords":["xlsx","json","csv","excel","font","border","fill","number","format","number format","alignment","office","spreadsheet","workbook","defined names","data validations","rich text","in-cell format","outlineLevel","views","frozen","split","pageSetup"],"dependencies":{"archiver":"^5.0.0","dayjs":"^1.8.34","fast-csv":"^4.3.1","jszip":"^3.10.1","readable-stream":"^3.6.0","saxes":"^5.0.1","tmp":"^0.2.0","unzipper":"^0.10.11","uuid":"^8.3.0"},"devDependencies":{"@babel/cli":"^7.10.5","@babel/core":"^7.11.4","@babel/preset-env":"^7.11.0","@types/chai":"^4.2.12","@types/mocha":"^8.0.3","@types/node":"^14.11.2","babelify":"^10.0.0","browserify":"^16.5.2","chai":"^4.2.0","chai-datetime":"^1.7.0","chai-xml":"^0.3.2","core-js":"^3.6.5","dirty-chai":"^2.0.1","eslint":"^6.5.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.12.0","eslint-friendly-formatter":"^4.0.1","eslint-plugin-import":"^2.22.0","eslint-plugin-node":"^11.1.0","express":"^4.16.4","got":"^9.0.0","grunt":"^1.3.0","grunt-babel":"^8.0.0","grunt-browserify":"^5.3.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-jasmine":"^2.2.0","grunt-contrib-watch":"^1.1.0","grunt-exorcise":"^2.1.1","grunt-terser":"^1.0.0","husky":"^4.3.0","lint-staged":"^10.2.13","mocha":"^7.2.0","prettier-eslint":"^11.0.0","prettier-eslint-cli":"^5.0.0","regenerator-runtime":"^0.13.7","sax":"^1.2.4","ts-node":"^8.10.2","typescript":"^3.9.7"},"_lastModified":"2025-12-02T12:45:53.462Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"xlsx","version":"0.20.2","author":"sheetjs","description":"SheetJS Spreadsheet data parser and writer","keywords":["excel","xls","xlsx","xlsb","xlsm","ods","csv","dbf","dif","sylk","office","spreadsheet"],"bin":{"xlsx":"./bin/xlsx.njs"},"main":"xlsx.js","module":"xlsx.mjs","unpkg":"dist/xlsx.full.min.js","jsdelivr":"dist/xlsx.full.min.js","types":"types/index.d.ts","exports":{".":{"import":"./xlsx.mjs","require":"./xlsx.js","types":"./types/index.d.ts"},"./xlsx.mjs":{"import":"./xlsx.mjs","types":"./types/index.d.ts"},"./xlsx.js":{"require":"./xlsx.js","types":"./types/index.d.ts"},"./dist/xlsx.core.min":{"import":"./dist/xlsx.core.min.js","require":"./dist/xlsx.core.min.js","types":"./types/index.d.ts"},"./dist/xlsx.core.min.js":{"import":"./dist/xlsx.core.min.js","require":"./dist/xlsx.core.min.js","types":"./types/index.d.ts"},"./dist/xlsx.full.min":{"import":"./dist/xlsx.full.min.js","require":"./dist/xlsx.full.min.js","types":"./types/index.d.ts"},"./dist/xlsx.full.min.js":{"import":"./dist/xlsx.full.min.js","require":"./dist/xlsx.full.min.js","types":"./types/index.d.ts"},"./dist/xlsx.mini.min":{"import":"./dist/xlsx.mini.min.js","require":"./dist/xlsx.mini.min.js","types":"./types/index.d.ts"},"./dist/xlsx.mini.min.js":{"import":"./dist/xlsx.mini.min.js","require":"./dist/xlsx.mini.min.js","types":"./types/index.d.ts"},"./dist/xlsx.zahl":{"import":"./dist/xlsx.zahl.mjs","require":"./dist/xlsx.zahl.js","types":"./dist/zahl.d.ts"},"./dist/xlsx.zahl.mjs":{"import":"./dist/xlsx.zahl.mjs","types":"./dist/zahl.d.ts"},"./dist/xlsx.zahl.js":{"require":"./dist/xlsx.zahl.js","types":"./dist/zahl.d.ts"},"./dist/cpexcel":{"import":"./dist/cpexcel.full.mjs","require":"./dist/cpexcel.js","types":"./dist/cpexcel.d.ts"},"./dist/cpexcel.js":{"require":"./dist/cpexcel.js","types":"./dist/cpexcel.d.ts"},"./dist/cpexcel.full":{"import":"./dist/cpexcel.full.mjs","require":"./dist/cpexcel.js","types":"./dist/cpexcel.d.ts"},"./dist/cpexcel.full.mjs":{"import":"./dist/cpexcel.full.mjs","types":"./dist/cpexcel.d.ts"}},"browser":{"buffer":false,"crypto":false,"stream":false,"process":false,"fs":false},"sideEffects":false,"dependencies":{},"devDependencies":{"@sheetjs/uglify-js":"~2.7.3","@types/node":"^8.5.9","acorn":"7.4.1","adler-32":"~1.3.1","alex":"8.1.1","blanket":"~1.2.3","cfb":"~1.2.2","codepage":"~1.15.0","commander":"~2.17.1","crc-32":"~1.2.2","dtslint":"^0.1.2","eslint":"7.23.0","eslint-plugin-html":"^6.1.2","eslint-plugin-json":"^2.1.2","exit-on-epipe":"~1.0.1","fflate":"^0.7.1","jsdom":"~11.1.0","markdown-spellcheck":"^1.3.1","mocha":"~2.5.3","sinon":"^1.17.7","ssf":"~0.11.2","typescript":"2.2.0","wmf":"~1.0.1","word":"~0.3.0"},"repository":{"type":"git","url":"https://git.sheetjs.com/SheetJS/sheetjs"},"scripts":{"pretest":"npm run lint","test":"npm run tests-only","pretest-only":"git submodule init && git submodule update","tests-only":"make travis","build":"make","lint":"make fullint","dtslint":"dtslint types"},"config":{"blanket":{"pattern":"xlsx.js"}},"alex":{"allow":["chinese","special","simple","just","crash","wtf","holes"]},"homepage":"https://sheetjs.com/","files":["CHANGELOG.md","LICENSE","README.md","bower.json","package.json","xlsx.js","xlsx.mjs","xlsxworker.js","bin/xlsx.njs","dist/LICENSE","dist/*.mjs","dist/*.js","dist/*.map","dist/*.d.ts","types/index.d.ts","types/tsconfig.json"],"bugs":{"url":"https://git.sheetjs.com/SheetJS/sheetjs/issues"},"license":"Apache-2.0","engines":{"node":">=0.8"},"_lastModified":"2025-
|
|
1
|
+
{"name":"xlsx","version":"0.20.2","author":"sheetjs","description":"SheetJS Spreadsheet data parser and writer","keywords":["excel","xls","xlsx","xlsb","xlsm","ods","csv","dbf","dif","sylk","office","spreadsheet"],"bin":{"xlsx":"./bin/xlsx.njs"},"main":"xlsx.js","module":"xlsx.mjs","unpkg":"dist/xlsx.full.min.js","jsdelivr":"dist/xlsx.full.min.js","types":"types/index.d.ts","exports":{".":{"import":"./xlsx.mjs","require":"./xlsx.js","types":"./types/index.d.ts"},"./xlsx.mjs":{"import":"./xlsx.mjs","types":"./types/index.d.ts"},"./xlsx.js":{"require":"./xlsx.js","types":"./types/index.d.ts"},"./dist/xlsx.core.min":{"import":"./dist/xlsx.core.min.js","require":"./dist/xlsx.core.min.js","types":"./types/index.d.ts"},"./dist/xlsx.core.min.js":{"import":"./dist/xlsx.core.min.js","require":"./dist/xlsx.core.min.js","types":"./types/index.d.ts"},"./dist/xlsx.full.min":{"import":"./dist/xlsx.full.min.js","require":"./dist/xlsx.full.min.js","types":"./types/index.d.ts"},"./dist/xlsx.full.min.js":{"import":"./dist/xlsx.full.min.js","require":"./dist/xlsx.full.min.js","types":"./types/index.d.ts"},"./dist/xlsx.mini.min":{"import":"./dist/xlsx.mini.min.js","require":"./dist/xlsx.mini.min.js","types":"./types/index.d.ts"},"./dist/xlsx.mini.min.js":{"import":"./dist/xlsx.mini.min.js","require":"./dist/xlsx.mini.min.js","types":"./types/index.d.ts"},"./dist/xlsx.zahl":{"import":"./dist/xlsx.zahl.mjs","require":"./dist/xlsx.zahl.js","types":"./dist/zahl.d.ts"},"./dist/xlsx.zahl.mjs":{"import":"./dist/xlsx.zahl.mjs","types":"./dist/zahl.d.ts"},"./dist/xlsx.zahl.js":{"require":"./dist/xlsx.zahl.js","types":"./dist/zahl.d.ts"},"./dist/cpexcel":{"import":"./dist/cpexcel.full.mjs","require":"./dist/cpexcel.js","types":"./dist/cpexcel.d.ts"},"./dist/cpexcel.js":{"require":"./dist/cpexcel.js","types":"./dist/cpexcel.d.ts"},"./dist/cpexcel.full":{"import":"./dist/cpexcel.full.mjs","require":"./dist/cpexcel.js","types":"./dist/cpexcel.d.ts"},"./dist/cpexcel.full.mjs":{"import":"./dist/cpexcel.full.mjs","types":"./dist/cpexcel.d.ts"}},"browser":{"buffer":false,"crypto":false,"stream":false,"process":false,"fs":false},"sideEffects":false,"dependencies":{},"devDependencies":{"@sheetjs/uglify-js":"~2.7.3","@types/node":"^8.5.9","acorn":"7.4.1","adler-32":"~1.3.1","alex":"8.1.1","blanket":"~1.2.3","cfb":"~1.2.2","codepage":"~1.15.0","commander":"~2.17.1","crc-32":"~1.2.2","dtslint":"^0.1.2","eslint":"7.23.0","eslint-plugin-html":"^6.1.2","eslint-plugin-json":"^2.1.2","exit-on-epipe":"~1.0.1","fflate":"^0.7.1","jsdom":"~11.1.0","markdown-spellcheck":"^1.3.1","mocha":"~2.5.3","sinon":"^1.17.7","ssf":"~0.11.2","typescript":"2.2.0","wmf":"~1.0.1","word":"~0.3.0"},"repository":{"type":"git","url":"https://git.sheetjs.com/SheetJS/sheetjs"},"scripts":{"pretest":"npm run lint","test":"npm run tests-only","pretest-only":"git submodule init && git submodule update","tests-only":"make travis","build":"make","lint":"make fullint","dtslint":"dtslint types"},"config":{"blanket":{"pattern":"xlsx.js"}},"alex":{"allow":["chinese","special","simple","just","crash","wtf","holes"]},"homepage":"https://sheetjs.com/","files":["CHANGELOG.md","LICENSE","README.md","bower.json","package.json","xlsx.js","xlsx.mjs","xlsxworker.js","bin/xlsx.njs","dist/LICENSE","dist/*.mjs","dist/*.js","dist/*.map","dist/*.d.ts","types/index.d.ts","types/tsconfig.json"],"bugs":{"url":"https://git.sheetjs.com/SheetJS/sheetjs/issues"},"license":"Apache-2.0","engines":{"node":">=0.8"},"_lastModified":"2025-12-02T12:45:56.278Z"}
|
|
@@ -7,5 +7,6 @@
|
|
|
7
7
|
"Incorrect date format": "日期格式不正确",
|
|
8
8
|
"Incorrect email format": "邮箱格式不正确",
|
|
9
9
|
"Illegal percentage format": "百分比格式有误",
|
|
10
|
-
"Imported template does not match, please download again.": "导入模板不匹配,请检查导入文件标题行或重新下载导入模板"
|
|
11
|
-
}
|
|
10
|
+
"Imported template does not match, please download again.": "导入模板不匹配,请检查导入文件标题行或重新下载导入模板",
|
|
11
|
+
"Failed to parse field {{field}} in row {{rowIndex}}": "第 {{rowIndex}} 行的字段 {{field}} 解析失败:{{message}}"
|
|
12
|
+
}
|
|
@@ -188,6 +188,7 @@ class XlsxImporter extends import_events.default {
|
|
|
188
188
|
return this.repository instanceof import_database.RelationRepository ? this.repository.targetModel : this.repository.model;
|
|
189
189
|
}
|
|
190
190
|
async handleRowValuesWithColumns(row, rowValues, options) {
|
|
191
|
+
var _a;
|
|
191
192
|
for (let index = 0; index < this.options.columns.length; index++) {
|
|
192
193
|
const column = this.options.columns[index];
|
|
193
194
|
const field = this.options.collection.getField(column.dataIndex[0]);
|
|
@@ -215,7 +216,15 @@ class XlsxImporter extends import_events.default {
|
|
|
215
216
|
ctx.targetCollection = field.targetCollection();
|
|
216
217
|
ctx.filterKey = column.dataIndex[1];
|
|
217
218
|
}
|
|
218
|
-
|
|
219
|
+
try {
|
|
220
|
+
rowValues[dataKey] = str == null ? null : await interfaceInstance.toValue(this.trimString(str), ctx);
|
|
221
|
+
} catch (error) {
|
|
222
|
+
throw new import_errors.ImportValidationError("Failed to parse field {{field}} in row {{rowIndex}}: {{message}}", {
|
|
223
|
+
rowIndex: ((_a = options == null ? void 0 : options.context) == null ? void 0 : _a.handingRowIndex) || 1,
|
|
224
|
+
field: dataKey,
|
|
225
|
+
message: error.message
|
|
226
|
+
});
|
|
227
|
+
}
|
|
219
228
|
}
|
|
220
229
|
const model = this.getModel();
|
|
221
230
|
const guard = import_database.UpdateGuard.fromOptions(model, {
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"description": "Import records using excel templates. You can configure which fields to import and templates will be generated automatically.",
|
|
7
7
|
"description.ru-RU": "Импорт записей с помощью шаблонов Excel: можно настроить, какие поля импортировать, шаблоны будут генерироваться автоматически.",
|
|
8
8
|
"description.zh-CN": "使用 Excel 模板导入数据,可以配置导入哪些字段,自动生成模板。",
|
|
9
|
-
"version": "2.0.0-alpha.
|
|
9
|
+
"version": "2.0.0-alpha.50",
|
|
10
10
|
"license": "AGPL-3.0",
|
|
11
11
|
"main": "./dist/server/index.js",
|
|
12
12
|
"homepage": "https://docs.nocobase.com/handbook/action-import",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@nocobase/test": "2.x",
|
|
40
40
|
"@nocobase/utils": "2.x"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "a6eb64abf3632e116ad0b295a7f410270a1059d1",
|
|
43
43
|
"keywords": [
|
|
44
44
|
"Actions"
|
|
45
45
|
]
|