@tachybase/plugin-action-export 0.23.41 → 0.23.48
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.
|
@@ -25,7 +25,7 @@ export declare const useShared: () => {
|
|
|
25
25
|
dataIndex: {
|
|
26
26
|
type: string;
|
|
27
27
|
'x-decorator': string;
|
|
28
|
-
'x-component': import("react").ForwardRefExoticComponent<Omit<
|
|
28
|
+
'x-component': import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<unknown>>;
|
|
29
29
|
required: boolean;
|
|
30
30
|
enum: any[];
|
|
31
31
|
'x-component-props': {
|
package/dist/externalVersion.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
"react": "18.3.1",
|
|
3
|
-
"@tachybase/client": "0.23.
|
|
4
|
-
"@tachybase/schema": "0.23.
|
|
5
|
-
"@tachybase/components": "0.23.
|
|
3
|
+
"@tachybase/client": "0.23.48",
|
|
4
|
+
"@tachybase/schema": "0.23.48",
|
|
5
|
+
"@tachybase/components": "0.23.48",
|
|
6
6
|
"react-i18next": "15.2.0",
|
|
7
7
|
"antd": "5.22.5",
|
|
8
8
|
"lodash": "4.17.21",
|
|
9
|
-
"@tachybase/database": "0.23.
|
|
10
|
-
"@tachybase/server": "0.23.
|
|
11
|
-
"@tachybase/utils": "0.23.
|
|
12
|
-
"@tachybase/actions": "0.23.
|
|
9
|
+
"@tachybase/database": "0.23.48",
|
|
10
|
+
"@tachybase/server": "0.23.48",
|
|
11
|
+
"@tachybase/utils": "0.23.48",
|
|
12
|
+
"@tachybase/actions": "0.23.48"
|
|
13
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"node-xlsx","author":"Olivier Louvignes <olivier@mg-crea.com>","version":"0.24.0","description":"NodeJS Excel files parser & builder","type":"module","main":"./dist/index.cjs","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.js","types":"./dist/index.d.ts"}},"bin":{"node-xlsx":"./dist/bin/cli.js"},"files":["dist"],"scripts":{"start":"npm run spec -- --watch","build":"tsup --entry src/index.ts --format cjs,esm --sourcemap --dts --clean --entry src/bin/cli.ts","lint":"eslint src/ test/","prettycheck":"prettier --check src/ test/","prettify":"prettier --write src/ test/","typecheck":"tsc --noEmit","spec":"DEBUG=node-xlsx* vitest --run","watch":"DEBUG=node-xlsx* vitest --watch","test":"npm run lint && npm run prettycheck && npm run typecheck && npm run spec","prepublishOnly":"npm run build"},"repository":"github:mgcrea/node-xlsx","license":"Apache-2.0","dependencies":{"xlsx":"https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz"},"devDependencies":{"@mgcrea/eslint-config-node":"^0.10.0","@tsconfig/node-lts":"^20.1.1","@types/node":"^20.12.7","eslint":"^8.57.0","prettier":"^3.2.5","prettier-plugin-organize-imports":"^3.2.4","tsup":"^8.0.2","typescript":"^5.4.5","vite-tsconfig-paths":"^4.3.2","vitest":"^1.5.0"},"engines":{"node":">=10.0.0"},"keywords":["excel","parser","builder","xlsx","xls"],"_lastModified":"2025-02-
|
|
1
|
+
{"name":"node-xlsx","author":"Olivier Louvignes <olivier@mg-crea.com>","version":"0.24.0","description":"NodeJS Excel files parser & builder","type":"module","main":"./dist/index.cjs","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.js","types":"./dist/index.d.ts"}},"bin":{"node-xlsx":"./dist/bin/cli.js"},"files":["dist"],"scripts":{"start":"npm run spec -- --watch","build":"tsup --entry src/index.ts --format cjs,esm --sourcemap --dts --clean --entry src/bin/cli.ts","lint":"eslint src/ test/","prettycheck":"prettier --check src/ test/","prettify":"prettier --write src/ test/","typecheck":"tsc --noEmit","spec":"DEBUG=node-xlsx* vitest --run","watch":"DEBUG=node-xlsx* vitest --watch","test":"npm run lint && npm run prettycheck && npm run typecheck && npm run spec","prepublishOnly":"npm run build"},"repository":"github:mgcrea/node-xlsx","license":"Apache-2.0","dependencies":{"xlsx":"https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz"},"devDependencies":{"@mgcrea/eslint-config-node":"^0.10.0","@tsconfig/node-lts":"^20.1.1","@types/node":"^20.12.7","eslint":"^8.57.0","prettier":"^3.2.5","prettier-plugin-organize-imports":"^3.2.4","tsup":"^8.0.2","typescript":"^5.4.5","vite-tsconfig-paths":"^4.3.2","vitest":"^1.5.0"},"engines":{"node":">=10.0.0"},"keywords":["excel","parser","builder","xlsx","xls"],"_lastModified":"2025-02-21T11:02:19.465Z"}
|
package/dist/server/index.js
CHANGED
|
@@ -39,7 +39,7 @@ var import_node_xlsx = __toESM(require("node-xlsx"));
|
|
|
39
39
|
var import_actions = require("./actions");
|
|
40
40
|
var import_constants = require("./constants");
|
|
41
41
|
var import_renders = __toESM(require("./renders"));
|
|
42
|
-
class
|
|
42
|
+
const _ExportPlugin = class _ExportPlugin extends import_server.Plugin {
|
|
43
43
|
beforeLoad() {
|
|
44
44
|
}
|
|
45
45
|
async load() {
|
|
@@ -51,9 +51,8 @@ class ExportPlugin extends import_server.Plugin {
|
|
|
51
51
|
}
|
|
52
52
|
async install(options) {
|
|
53
53
|
}
|
|
54
|
-
static defaultSavePath = "storage/uploads";
|
|
55
54
|
xlsxStorageDir() {
|
|
56
|
-
return import_path.default.resolve(process.cwd(),
|
|
55
|
+
return import_path.default.resolve(process.cwd(), _ExportPlugin.defaultSavePath);
|
|
57
56
|
}
|
|
58
57
|
async workerExportXlsx(params) {
|
|
59
58
|
const { title, filter, sort, fields, except, appends, resourceName, resourceOf, timezone } = params;
|
|
@@ -112,9 +111,11 @@ class ExportPlugin extends import_server.Plugin {
|
|
|
112
111
|
const fileName = `${resourceName}_${(0, import_utils.dayjs)().format("YYYYMMDDHHmm")}.xlsx`;
|
|
113
112
|
const rawFile = `${savePath}/${fileName}`;
|
|
114
113
|
(0, import_fs.writeFileSync)(rawFile, Buffer.from(stream));
|
|
115
|
-
return `${
|
|
114
|
+
return `${_ExportPlugin.defaultSavePath}/${fileName}`;
|
|
116
115
|
}
|
|
117
|
-
}
|
|
116
|
+
};
|
|
117
|
+
_ExportPlugin.defaultSavePath = "storage/uploads";
|
|
118
|
+
let ExportPlugin = _ExportPlugin;
|
|
118
119
|
var server_default = ExportPlugin;
|
|
119
120
|
// Annotate the CommonJS export names for ESM import in node:
|
|
120
121
|
0 && (module.exports = {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tachybase/plugin-action-export",
|
|
3
3
|
"displayName": "Action: Export records",
|
|
4
|
-
"version": "0.23.
|
|
4
|
+
"version": "0.23.48",
|
|
5
5
|
"description": "Export filtered records to excel, you can configure which fields to export.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"Actions"
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
"node-xlsx": "^0.24.0",
|
|
18
18
|
"react": "^18.3.1",
|
|
19
19
|
"react-i18next": "^15.2.0",
|
|
20
|
-
"@tachybase/components": "0.23.
|
|
21
|
-
"@tachybase/schema": "0.23.
|
|
20
|
+
"@tachybase/components": "0.23.48",
|
|
21
|
+
"@tachybase/schema": "0.23.48"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@tachybase/actions": "0.23.
|
|
25
|
-
"@tachybase/
|
|
26
|
-
"@tachybase/
|
|
27
|
-
"@tachybase/test": "0.23.
|
|
28
|
-
"@tachybase/
|
|
29
|
-
"@tachybase/utils": "0.23.
|
|
24
|
+
"@tachybase/actions": "0.23.48",
|
|
25
|
+
"@tachybase/client": "0.23.48",
|
|
26
|
+
"@tachybase/database": "0.23.48",
|
|
27
|
+
"@tachybase/test": "0.23.48",
|
|
28
|
+
"@tachybase/server": "0.23.48",
|
|
29
|
+
"@tachybase/utils": "0.23.48"
|
|
30
30
|
},
|
|
31
31
|
"description.zh-CN": "导出筛选后的记录到 Excel 中,可以配置导出哪些字段。",
|
|
32
32
|
"displayName.zh-CN": "操作:导出记录",
|