@nocobase/plugin-action-import 2.1.0-beta.9 → 2.1.1
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/client-v2.d.ts +2 -0
- package/client-v2.js +1 -0
- package/dist/client/ImportActionInitializer.d.ts +2 -6
- package/dist/client/buildImportFieldOptions.d.ts +9 -0
- package/dist/client/constants.d.ts +1 -1
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.js +1 -1
- package/dist/client/locale/index.d.ts +2 -1
- package/dist/client/useFields.d.ts +1 -1
- package/dist/{client/models → client-v2}/ImportActionModel.d.ts +2 -2
- package/dist/client-v2/buildImportFieldOptions.d.ts +9 -0
- package/dist/{client/models → client-v2}/getOptionFields.d.ts +1 -1
- package/dist/client-v2/importSupport.d.ts +15 -0
- package/dist/client-v2/index.d.ts +15 -0
- package/dist/client-v2/index.js +10 -0
- package/dist/client-v2/locale.d.ts +9 -0
- package/dist/externalVersion.js +11 -11
- package/dist/node_modules/exceljs/excel.js +15 -15
- package/dist/node_modules/exceljs/package.json +1 -1
- package/dist/node_modules/xlsx/dist/xlsx.core.min.js +17 -16
- package/dist/node_modules/xlsx/dist/xlsx.extendscript.js +378 -80
- package/dist/node_modules/xlsx/dist/xlsx.full.min.js +17 -17
- package/dist/node_modules/xlsx/dist/xlsx.mini.min.js +9 -9
- package/dist/node_modules/xlsx/package.json +1 -1
- package/dist/node_modules/xlsx/types/index.d.ts +40 -8
- package/dist/node_modules/xlsx/xlsx.js +4 -4
- package/dist/server/actions/import-xlsx.d.ts +3 -0
- package/dist/server/actions/import-xlsx.js +16 -8
- package/dist/server/services/xlsx-importer.d.ts +12 -4
- package/dist/server/services/xlsx-importer.js +82 -45
- package/package.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"xlsx","version":"0.20.
|
|
1
|
+
{"name":"xlsx","version":"0.20.3","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":"2026-06-11T01:16:56.172Z"}
|
|
@@ -24,12 +24,12 @@ export function readFile(filename: string, opts?: ParsingOptions): WorkBook;
|
|
|
24
24
|
/** Attempts to parse data */
|
|
25
25
|
export function read(data: any, opts?: ParsingOptions): WorkBook;
|
|
26
26
|
/** Attempts to write or download workbook data to file */
|
|
27
|
-
export function writeFile(data: WorkBook, filename: string, opts?: WritingOptions):
|
|
27
|
+
export function writeFile(data: WorkBook, filename: string, opts?: WritingOptions): void;
|
|
28
28
|
/** Attempts to write or download workbook data to XLSX file */
|
|
29
|
-
export function writeFileXLSX(data: WorkBook, filename: string, opts?: WritingOptions):
|
|
29
|
+
export function writeFileXLSX(data: WorkBook, filename: string, opts?: WritingOptions): void;
|
|
30
30
|
/** Attempts to write or download workbook data to file asynchronously */
|
|
31
31
|
type CBFunc = () => void;
|
|
32
|
-
export function writeFileAsync(filename: string, data: WorkBook, opts: WritingOptions | CBFunc, cb?: CBFunc):
|
|
32
|
+
export function writeFileAsync(filename: string, data: WorkBook, opts: WritingOptions | CBFunc, cb?: CBFunc): void;
|
|
33
33
|
/** Attempts to write the workbook data */
|
|
34
34
|
export function write(data: WorkBook, opts: WritingOptions): any;
|
|
35
35
|
/** Attempts to write the workbook data as XLSX */
|
|
@@ -277,7 +277,7 @@ export interface WritingOptions extends CommonOptions {
|
|
|
277
277
|
*/
|
|
278
278
|
compression?: boolean;
|
|
279
279
|
|
|
280
|
-
/**
|
|
280
|
+
/** Override theme XML when exporting to XLSX/XLSM/XLSB */
|
|
281
281
|
themeXLSX?: string;
|
|
282
282
|
|
|
283
283
|
/**
|
|
@@ -836,6 +836,14 @@ export interface Sheet2JSONOpts extends DateNFOption {
|
|
|
836
836
|
UTC?: boolean;
|
|
837
837
|
}
|
|
838
838
|
|
|
839
|
+
export interface Sheet2FormulaOpts {
|
|
840
|
+
/**
|
|
841
|
+
* If false, only export cells with formulae.
|
|
842
|
+
* By default, synthetic formulae are generated for each cell.
|
|
843
|
+
*/
|
|
844
|
+
values?: boolean;
|
|
845
|
+
}
|
|
846
|
+
|
|
839
847
|
export interface UTCDateOption {
|
|
840
848
|
/**
|
|
841
849
|
* If true, dates are interpreted using the UTC methods
|
|
@@ -934,7 +942,7 @@ export interface XLSX$Utils {
|
|
|
934
942
|
sheet_to_html(worksheet: WorkSheet, options?: Sheet2HTMLOpts): string;
|
|
935
943
|
|
|
936
944
|
/** Generates a list of the formulae (with value fallbacks) */
|
|
937
|
-
sheet_to_formulae(worksheet: WorkSheet): string[];
|
|
945
|
+
sheet_to_formulae(worksheet: WorkSheet, options?: Sheet2FormulaOpts): string[];
|
|
938
946
|
|
|
939
947
|
/* --- Cell Address Utilities --- */
|
|
940
948
|
|
|
@@ -1020,14 +1028,38 @@ export interface XLSX$Consts {
|
|
|
1020
1028
|
SHEET_VERYHIDDEN: 2;
|
|
1021
1029
|
}
|
|
1022
1030
|
|
|
1023
|
-
|
|
1031
|
+
export interface StrideOption {
|
|
1032
|
+
/** Number of rows to write per step */
|
|
1033
|
+
stride?: number;
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
export interface XLMLStreamOpts extends WritingOptions, StrideOption {}
|
|
1037
|
+
|
|
1038
|
+
/**
|
|
1039
|
+
* Streaming write methods
|
|
1040
|
+
*
|
|
1041
|
+
* These methods are directly compatible with NodeJS `stream.Readable` API
|
|
1042
|
+
*
|
|
1043
|
+
* Web Streams (modern browsers) can play nice with NodeJS streams. See the Web
|
|
1044
|
+
* Demo at https://docs.sheetjs.com/docs/demos/bigdata/worker#streaming-write
|
|
1045
|
+
*
|
|
1046
|
+
* NOTE: These methods are not included in the `xlsx.mini.min.js` build!
|
|
1047
|
+
*/
|
|
1024
1048
|
export interface StreamUtils {
|
|
1049
|
+
/** Set `Readable` (for environments that do not support NodeJS Streams) */
|
|
1050
|
+
set_readable(Readable: any): void;
|
|
1051
|
+
|
|
1052
|
+
/* --- Worksheet writers --- */
|
|
1053
|
+
|
|
1025
1054
|
/** CSV output stream, generate one line at a time */
|
|
1026
1055
|
to_csv(sheet: WorkSheet, opts?: Sheet2CSVOpts): any;
|
|
1027
1056
|
/** HTML output stream, generate one line at a time */
|
|
1028
1057
|
to_html(sheet: WorkSheet, opts?: Sheet2HTMLOpts): any;
|
|
1029
1058
|
/** JSON object stream, generate one row at a time */
|
|
1030
1059
|
to_json(sheet: WorkSheet, opts?: Sheet2JSONOpts): any;
|
|
1031
|
-
|
|
1032
|
-
|
|
1060
|
+
|
|
1061
|
+
/* --- Workbook writers --- */
|
|
1062
|
+
|
|
1063
|
+
/** XLML output string stream (bookType `xlml`) */
|
|
1064
|
+
to_xlml(data: WorkBook, opts?: XLMLStreamOpts): any;
|
|
1033
1065
|
}
|