@pisell/materials 1.0.309 → 1.0.313
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +14 -14
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +14 -14
- package/es/components/Pagination/index.d.ts +1 -1
- package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +5 -0
- package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.js +137 -0
- package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.less +29 -0
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.js +86 -0
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +8 -0
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.js +41 -0
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.less +5 -0
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/Detail.d.ts +4 -0
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/Detail.js +97 -0
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +5 -0
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.js +131 -0
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.less +48 -0
- package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +10 -0
- package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.js +147 -0
- package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.less +97 -0
- package/es/components/table/Actions/component/ExportImport/index.d.ts +8 -0
- package/es/components/table/Actions/component/ExportImport/index.js +216 -0
- package/es/components/table/Actions/component/ExportImport/index.less +194 -0
- package/es/components/table/Actions/component/ExportImport/utils/date.d.ts +8 -0
- package/es/components/table/Actions/component/ExportImport/utils/date.js +19 -0
- package/es/components/table/Actions/component/ExportImport/utils/download.d.ts +3 -0
- package/es/components/table/Actions/component/ExportImport/utils/download.js +39 -0
- package/es/components/table/Actions/component/ExportImport/utils/file.d.ts +7 -0
- package/es/components/table/Actions/component/ExportImport/utils/file.js +21 -0
- package/es/components/table/Actions/index.d.ts +3 -2
- package/es/components/table/Actions/index.js +12 -8
- package/es/components/table/hooks/useTableSetting.d.ts +2 -1
- package/es/components/table/hooks/useTableSetting.js +2 -1
- package/es/components/table/index.js +15 -13
- package/es/components/table/serve.d.ts +13 -0
- package/es/components/table/serve.js +55 -0
- package/es/components/table/status.d.ts +19 -0
- package/es/components/table/status.js +26 -0
- package/es/components/table/types.d.ts +20 -0
- package/es/components/table/utils.d.ts +15 -0
- package/es/components/table/utils.js +26 -0
- package/es/components/virtual-keyboard/Time/index.js +1 -1
- package/es/locales/en-US.d.ts +47 -0
- package/es/locales/en-US.js +60 -1
- package/es/locales/zh-CN.d.ts +47 -0
- package/es/locales/zh-CN.js +60 -1
- package/es/locales/zh-TW.d.ts +47 -0
- package/es/locales/zh-TW.js +60 -1
- package/lib/components/Pagination/index.d.ts +1 -1
- package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +5 -0
- package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.js +144 -0
- package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.less +29 -0
- package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.js +79 -0
- package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +8 -0
- package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.js +60 -0
- package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.less +5 -0
- package/lib/components/table/Actions/component/ExportImport/components/ImportLog/Detail.d.ts +4 -0
- package/lib/components/table/Actions/component/ExportImport/components/ImportLog/Detail.js +117 -0
- package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +5 -0
- package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.js +135 -0
- package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.less +48 -0
- package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +10 -0
- package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.js +119 -0
- package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.less +97 -0
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +8 -0
- package/lib/components/table/Actions/component/ExportImport/index.js +194 -0
- package/lib/components/table/Actions/component/ExportImport/index.less +194 -0
- package/lib/components/table/Actions/component/ExportImport/utils/date.d.ts +8 -0
- package/lib/components/table/Actions/component/ExportImport/utils/date.js +49 -0
- package/lib/components/table/Actions/component/ExportImport/utils/download.d.ts +3 -0
- package/lib/components/table/Actions/component/ExportImport/utils/download.js +62 -0
- package/lib/components/table/Actions/component/ExportImport/utils/file.d.ts +7 -0
- package/lib/components/table/Actions/component/ExportImport/utils/file.js +55 -0
- package/lib/components/table/Actions/index.d.ts +3 -2
- package/lib/components/table/Actions/index.js +11 -7
- package/lib/components/table/hooks/useTableSetting.d.ts +2 -1
- package/lib/components/table/hooks/useTableSetting.js +2 -1
- package/lib/components/table/index.js +14 -12
- package/lib/components/table/serve.d.ts +13 -0
- package/lib/components/table/serve.js +55 -0
- package/lib/components/table/status.d.ts +19 -0
- package/lib/components/table/status.js +55 -0
- package/lib/components/table/types.d.ts +20 -0
- package/lib/components/table/utils.d.ts +15 -0
- package/lib/components/table/utils.js +40 -0
- package/lib/components/virtual-keyboard/Time/index.js +1 -1
- package/lib/locales/en-US.d.ts +47 -0
- package/lib/locales/en-US.js +52 -1
- package/lib/locales/zh-CN.d.ts +47 -0
- package/lib/locales/zh-CN.js +52 -1
- package/lib/locales/zh-TW.d.ts +47 -0
- package/lib/locales/zh-TW.js +52 -1
- package/lowcode/table/meta.ts +84 -1
- package/lowcode/table/snippets.ts +8 -0
- package/package.json +4 -4
|
@@ -32,17 +32,18 @@ __export(Actions_exports, {
|
|
|
32
32
|
default: () => Actions_default
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(Actions_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
35
|
var import_antd = require("antd");
|
|
36
|
+
var import_react = __toESM(require("react"));
|
|
37
37
|
var import_filter = __toESM(require("../../filter"));
|
|
38
38
|
var import_sort = __toESM(require("../../sort"));
|
|
39
|
+
var import_Buttons = __toESM(require("../Header/Buttons"));
|
|
39
40
|
var import_ColumnsSetting = __toESM(require("./component/ColumnsSetting"));
|
|
41
|
+
var import_ExportImport = __toESM(require("./component/ExportImport"));
|
|
42
|
+
var import_GallerySetting = __toESM(require("./component/GallerySetting"));
|
|
40
43
|
var import_Group = __toESM(require("./component/Group"));
|
|
41
|
-
var import_Buttons = __toESM(require("../Header/Buttons"));
|
|
42
44
|
var import_ViewMode = __toESM(require("./component/ViewMode"));
|
|
43
|
-
var import_GallerySetting = __toESM(require("./component/GallerySetting"));
|
|
44
|
-
var import_index = require("./index.less");
|
|
45
45
|
var import_useIsMobileTable = __toESM(require("../hooks/useIsMobileTable"));
|
|
46
|
+
var import_index = require("./index.less");
|
|
46
47
|
var Actions = ({
|
|
47
48
|
filter,
|
|
48
49
|
sort,
|
|
@@ -52,7 +53,8 @@ var Actions = ({
|
|
|
52
53
|
localPagination,
|
|
53
54
|
buttons,
|
|
54
55
|
view,
|
|
55
|
-
gallery
|
|
56
|
+
gallery,
|
|
57
|
+
exportImport
|
|
56
58
|
}) => {
|
|
57
59
|
const form = import_antd.Form.useFormInstance();
|
|
58
60
|
const isMobileBool = (0, import_useIsMobileTable.default)();
|
|
@@ -61,13 +63,14 @@ var Actions = ({
|
|
|
61
63
|
preserve: true
|
|
62
64
|
});
|
|
63
65
|
const showActions = (0, import_react.useMemo)(() => {
|
|
64
|
-
return (filter == null ? void 0 : filter.show) || (sort == null ? void 0 : sort.show) || (columnSetting == null ? void 0 : columnSetting.show) || (dataSourceGroup == null ? void 0 : dataSourceGroup.show) || view.multiple;
|
|
66
|
+
return (filter == null ? void 0 : filter.show) || (sort == null ? void 0 : sort.show) || (columnSetting == null ? void 0 : columnSetting.show) || (dataSourceGroup == null ? void 0 : dataSourceGroup.show) || view.multiple || (exportImport == null ? void 0 : exportImport.show);
|
|
65
67
|
}, [
|
|
66
68
|
filter == null ? void 0 : filter.show,
|
|
67
69
|
sort == null ? void 0 : sort.show,
|
|
68
70
|
columnSetting == null ? void 0 : columnSetting.show,
|
|
69
71
|
dataSourceGroup == null ? void 0 : dataSourceGroup.show,
|
|
70
|
-
view.multiple
|
|
72
|
+
view.multiple,
|
|
73
|
+
exportImport == null ? void 0 : exportImport.show
|
|
71
74
|
]);
|
|
72
75
|
return showActions ? /* @__PURE__ */ import_react.default.createElement("div", { className: "materials-grid-actions" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "left-wrap" }, /* @__PURE__ */ import_react.default.createElement(
|
|
73
76
|
import_filter.default,
|
|
@@ -87,6 +90,7 @@ var Actions = ({
|
|
|
87
90
|
}
|
|
88
91
|
},
|
|
89
92
|
view.multiple && /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "view_mode", noStyle: true }, /* @__PURE__ */ import_react.default.createElement(import_ViewMode.default, { view })),
|
|
93
|
+
(exportImport == null ? void 0 : exportImport.show) ? /* @__PURE__ */ import_react.default.createElement(import_ExportImport.default, { exportImport }) : null,
|
|
90
94
|
(dataSourceGroup == null ? void 0 : dataSourceGroup.show) && viewMode === "grid" && /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "group_by", noStyle: true }, /* @__PURE__ */ import_react.default.createElement(import_Group.default, { setting: dataSourceGroup })),
|
|
91
95
|
(columnSetting == null ? void 0 : columnSetting.show) && viewMode === "grid" && /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: ["column_setting"], noStyle: true }, /* @__PURE__ */ import_react.default.createElement(import_ColumnsSetting.default, null)),
|
|
92
96
|
(columnSetting == null ? void 0 : columnSetting.show) && viewMode === "gallery" && /* @__PURE__ */ import_react.default.createElement(import_GallerySetting.default, { setting: gallery, currentViewMode: viewMode }),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FilterType } from "../../filter/types";
|
|
2
|
-
import { ColumnSettingType, DataSourceGroupType, GallerySettingType, GridViewType, ModeType, SortType } from "../types";
|
|
2
|
+
import { ColumnSettingType, DataSourceGroupType, GallerySettingType, GridViewType, ModeType, SortType, ExportImportModeType } from "../types";
|
|
3
3
|
declare type UseTableSettingProps = {
|
|
4
4
|
tableId?: string;
|
|
5
5
|
filter: FilterType;
|
|
@@ -11,6 +11,7 @@ declare type UseTableSettingProps = {
|
|
|
11
11
|
currentViewMode: ModeType;
|
|
12
12
|
gallery?: GallerySettingType;
|
|
13
13
|
currentSettingHash: string;
|
|
14
|
+
exportImport?: ExportImportModeType;
|
|
14
15
|
};
|
|
15
16
|
declare const useTableSetting: (params: UseTableSettingProps) => {
|
|
16
17
|
setTableSetting: (values: Record<string, any>) => void;
|
|
@@ -47,7 +47,8 @@ var useTableSetting = (params) => {
|
|
|
47
47
|
currentViewMode,
|
|
48
48
|
columns: propsColumns,
|
|
49
49
|
gallery,
|
|
50
|
-
currentSettingHash
|
|
50
|
+
currentSettingHash,
|
|
51
|
+
exportImport
|
|
51
52
|
} = params;
|
|
52
53
|
const context = (0, import_useEngineContext.default)();
|
|
53
54
|
const { isTerminal, interaction } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
|
|
@@ -32,22 +32,22 @@ __export(table_exports, {
|
|
|
32
32
|
default: () => table_default
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(table_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_antd = require("antd");
|
|
37
35
|
var import_ahooks = require("ahooks");
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
var import_Actions = __toESM(require("./Actions"));
|
|
41
|
-
var import_Summary = __toESM(require("./Summary"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_react = __toESM(require("react"));
|
|
42
38
|
var import_hooks = require("../../hooks");
|
|
43
|
-
var import_model = require("./model");
|
|
44
39
|
var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
|
|
45
|
-
var
|
|
46
|
-
var
|
|
40
|
+
var import_Actions = __toESM(require("./Actions"));
|
|
41
|
+
var import_Header = __toESM(require("./Header"));
|
|
42
|
+
var import_Summary = __toESM(require("./Summary"));
|
|
47
43
|
var import_utils = require("./Table/utils");
|
|
48
|
-
var
|
|
49
|
-
var
|
|
44
|
+
var import_View = __toESM(require("./View"));
|
|
45
|
+
var import_useTableSetting = __toESM(require("./hooks/useTableSetting"));
|
|
50
46
|
var import_useTransDataSourceGroupSetting = __toESM(require("./hooks/useTransDataSourceGroupSetting"));
|
|
47
|
+
var import_useTransFilterSetting = __toESM(require("./hooks/useTransFilterSetting"));
|
|
48
|
+
var import_useTransSortSetting = __toESM(require("./hooks/useTransSortSetting"));
|
|
49
|
+
var import_useTriggerValuesChange = __toESM(require("./hooks/useTriggerValuesChange"));
|
|
50
|
+
var import_model = require("./model");
|
|
51
51
|
var import_index = require("./index.less");
|
|
52
52
|
var defaultView = {
|
|
53
53
|
defaultViewMode: "grid",
|
|
@@ -75,6 +75,7 @@ var GridView = (0, import_model.Provider)(
|
|
|
75
75
|
gallery,
|
|
76
76
|
currentSettingKey,
|
|
77
77
|
// pagination,
|
|
78
|
+
exportImport,
|
|
78
79
|
...other
|
|
79
80
|
} = props;
|
|
80
81
|
const modal = (0, import_hooks.useSharedState)(import_model.Context);
|
|
@@ -307,7 +308,8 @@ var GridView = (0, import_model.Provider)(
|
|
|
307
308
|
sort,
|
|
308
309
|
tableId,
|
|
309
310
|
localPagination: (_e = other == null ? void 0 : other.pagination) == null ? void 0 : _e.localPagination,
|
|
310
|
-
gallery
|
|
311
|
+
gallery,
|
|
312
|
+
exportImport
|
|
311
313
|
}
|
|
312
314
|
), /* @__PURE__ */ import_react.default.createElement(import_Summary.default, { summary }), /* @__PURE__ */ import_react.default.createElement(
|
|
313
315
|
import_View.default,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare type exportParams = {
|
|
2
|
+
ids?: Array<string | number>;
|
|
3
|
+
file_name?: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const exportData: (params: exportParams) => Promise<any>;
|
|
6
|
+
export declare const batchExport: (params: any) => Promise<any>;
|
|
7
|
+
export declare const formIdExport: (form_id: string | number, params: exportParams) => Promise<any>;
|
|
8
|
+
export declare const formCodeExport: (code: string, params: exportParams) => Promise<any>;
|
|
9
|
+
export declare const batchImport: (params: any) => Promise<any>;
|
|
10
|
+
export declare const importCodeTemplate: (code: string) => Promise<any>;
|
|
11
|
+
export declare const importFormIdTemplate: (form_id: string | number) => Promise<any>;
|
|
12
|
+
export declare const historyData: (params: any) => Promise<any>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/table/serve.ts
|
|
20
|
+
var serve_exports = {};
|
|
21
|
+
__export(serve_exports, {
|
|
22
|
+
batchExport: () => batchExport,
|
|
23
|
+
batchImport: () => batchImport,
|
|
24
|
+
exportData: () => exportData,
|
|
25
|
+
formCodeExport: () => formCodeExport,
|
|
26
|
+
formIdExport: () => formIdExport,
|
|
27
|
+
historyData: () => historyData,
|
|
28
|
+
importCodeTemplate: () => importCodeTemplate,
|
|
29
|
+
importFormIdTemplate: () => importFormIdTemplate
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(serve_exports);
|
|
32
|
+
var import_utils = require("./utils");
|
|
33
|
+
var exportData = (params) => {
|
|
34
|
+
return import_utils.request.getRequest().get(`/shop/form/data/export`, params);
|
|
35
|
+
};
|
|
36
|
+
var batchExport = (params) => {
|
|
37
|
+
return import_utils.request.getRequest().get(`/shop/form/data/export`, params);
|
|
38
|
+
};
|
|
39
|
+
var formIdExport = (form_id, params) => import_utils.request.getRequest().post(`/shop/form/data/export/${form_id}`, params);
|
|
40
|
+
var formCodeExport = (code, params) => import_utils.request.getRequest().get(`/shop/form/data/export/code/${code}`, params);
|
|
41
|
+
var batchImport = (params) => import_utils.request.getRequest().post("/shop/form/data/import", params);
|
|
42
|
+
var importCodeTemplate = (code) => import_utils.request.getRequest().get(`/shop/form/data/download-template/code/${code}`);
|
|
43
|
+
var importFormIdTemplate = (form_id) => import_utils.request.getRequest().get(`/shop/form/data/download-template/id/${form_id}`);
|
|
44
|
+
var historyData = async (params) => await import_utils.request.getRequest().get("/shop/form/data/task", params);
|
|
45
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
46
|
+
0 && (module.exports = {
|
|
47
|
+
batchExport,
|
|
48
|
+
batchImport,
|
|
49
|
+
exportData,
|
|
50
|
+
formCodeExport,
|
|
51
|
+
formIdExport,
|
|
52
|
+
historyData,
|
|
53
|
+
importCodeTemplate,
|
|
54
|
+
importFormIdTemplate
|
|
55
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
interface defaultOptions {
|
|
2
|
+
exportType: string;
|
|
3
|
+
footerHintTypes: string[];
|
|
4
|
+
okShowButtonTypes: string[];
|
|
5
|
+
exportValue: string;
|
|
6
|
+
importValue: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const defaultOptions: defaultOptions;
|
|
9
|
+
interface SomeArray {
|
|
10
|
+
[index: string]: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const suffixOptions: SomeArray;
|
|
13
|
+
export declare const exportImportOptions: {
|
|
14
|
+
import: any;
|
|
15
|
+
export: any;
|
|
16
|
+
export_file: any;
|
|
17
|
+
import_log: any;
|
|
18
|
+
};
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/table/status.ts
|
|
20
|
+
var status_exports = {};
|
|
21
|
+
__export(status_exports, {
|
|
22
|
+
defaultOptions: () => defaultOptions,
|
|
23
|
+
exportImportOptions: () => exportImportOptions,
|
|
24
|
+
suffixOptions: () => suffixOptions
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(status_exports);
|
|
27
|
+
var import_locales = require("../../locales/index");
|
|
28
|
+
var defaultOptions = {
|
|
29
|
+
exportType: "current-page",
|
|
30
|
+
footerHintTypes: ["export_file", "import_log"],
|
|
31
|
+
okShowButtonTypes: ["export", "import"],
|
|
32
|
+
exportValue: "export",
|
|
33
|
+
importValue: "import"
|
|
34
|
+
};
|
|
35
|
+
var suffixOptions = {
|
|
36
|
+
"1": `${(0, import_locales.getText)("page.customer.list.table.num")}`,
|
|
37
|
+
"2": `${(0, import_locales.getText)("page.customer.suffix")}`,
|
|
38
|
+
product: `${(0, import_locales.getText)("page.product.suffix")}`,
|
|
39
|
+
"4": `${(0, import_locales.getText)("page.voucher.suffix")}`,
|
|
40
|
+
"5": `${(0, import_locales.getText)("page.recharge.suffix")}`,
|
|
41
|
+
"6": `${(0, import_locales.getText)("page.ticket.suffix")}`,
|
|
42
|
+
"7": `${(0, import_locales.getText)("page.package.ticket.suffix")}`
|
|
43
|
+
};
|
|
44
|
+
var exportImportOptions = {
|
|
45
|
+
import: (0, import_locales.getText)("table-action-export-import-button-import"),
|
|
46
|
+
export: (0, import_locales.getText)("table-action-export-import-button"),
|
|
47
|
+
export_file: (0, import_locales.getText)("table-action-export-import-export-title"),
|
|
48
|
+
import_log: (0, import_locales.getText)("table-action-export-import-import-title")
|
|
49
|
+
};
|
|
50
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
51
|
+
0 && (module.exports = {
|
|
52
|
+
defaultOptions,
|
|
53
|
+
exportImportOptions,
|
|
54
|
+
suffixOptions
|
|
55
|
+
});
|
|
@@ -158,6 +158,25 @@ declare type SortDetail = {
|
|
|
158
158
|
fromItem: Record<string, any>;
|
|
159
159
|
toItem: Record<string, any>;
|
|
160
160
|
};
|
|
161
|
+
/** 导入导出模式 */
|
|
162
|
+
export declare type ExportImportModeType = "import" | "export" | "export_file" | "import_log";
|
|
163
|
+
/**
|
|
164
|
+
* 导入导出配置
|
|
165
|
+
*/
|
|
166
|
+
export declare type ExportImportType = {
|
|
167
|
+
/** 是否展示 */
|
|
168
|
+
show: boolean;
|
|
169
|
+
/** 表id */
|
|
170
|
+
formId?: string;
|
|
171
|
+
/** 表key */
|
|
172
|
+
formCode?: string;
|
|
173
|
+
/** 当前所选项 */
|
|
174
|
+
selectLists: string[];
|
|
175
|
+
/** 导入模版链接 */
|
|
176
|
+
templateFileUrl: string;
|
|
177
|
+
/** 标题 */
|
|
178
|
+
title: string;
|
|
179
|
+
};
|
|
161
180
|
export declare type GridViewProps = {
|
|
162
181
|
columns: any;
|
|
163
182
|
dataSource: any[];
|
|
@@ -177,6 +196,7 @@ export declare type GridViewProps = {
|
|
|
177
196
|
actionButtons: any;
|
|
178
197
|
sort: SortType;
|
|
179
198
|
title: any;
|
|
199
|
+
exportImport: ExportImportType;
|
|
180
200
|
onValuesChange: (changedValues: any, values: any) => void;
|
|
181
201
|
summary: any;
|
|
182
202
|
utils: any;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare type RType = (url: string, data?: {} | undefined, config?: {} | undefined) => Promise<any>;
|
|
2
|
+
declare class Request {
|
|
3
|
+
private request;
|
|
4
|
+
constructor();
|
|
5
|
+
setRequest(val: any): void;
|
|
6
|
+
getRequest(): {
|
|
7
|
+
get: RType;
|
|
8
|
+
post: RType;
|
|
9
|
+
put: RType;
|
|
10
|
+
remove: RType;
|
|
11
|
+
custom: RType;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export declare const request: Request;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/table/utils.ts
|
|
20
|
+
var utils_exports = {};
|
|
21
|
+
__export(utils_exports, {
|
|
22
|
+
request: () => request
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(utils_exports);
|
|
25
|
+
var Request = class {
|
|
26
|
+
constructor() {
|
|
27
|
+
this.request = {};
|
|
28
|
+
}
|
|
29
|
+
setRequest(val) {
|
|
30
|
+
this.request = val;
|
|
31
|
+
}
|
|
32
|
+
getRequest() {
|
|
33
|
+
return this.request;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
var request = new Request();
|
|
37
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
+
0 && (module.exports = {
|
|
39
|
+
request
|
|
40
|
+
});
|
|
@@ -35,7 +35,7 @@ module.exports = __toCommonJS(Time_exports);
|
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
36
|
var import__ = __toESM(require("../index"));
|
|
37
37
|
var import_index = require("./index.less");
|
|
38
|
-
var import_utils = require("./utils
|
|
38
|
+
var import_utils = require("./utils");
|
|
39
39
|
var import_locales = require("../../../locales");
|
|
40
40
|
var import_dayjs = __toESM(require("dayjs"));
|
|
41
41
|
var items = [
|
package/lib/locales/en-US.d.ts
CHANGED
|
@@ -50,5 +50,52 @@ declare const _default: {
|
|
|
50
50
|
'batch-editor-what-price': string;
|
|
51
51
|
'batch-editor-quick-edit-title': (product: string, num: string) => string;
|
|
52
52
|
'batch-editor-quick-edit-title-2': (product: string) => string;
|
|
53
|
+
'table-action-export-import-export-success': string;
|
|
54
|
+
'table-action-export-import-button': string;
|
|
55
|
+
'table-action-export-import-export-range': string;
|
|
56
|
+
'table-action-export-import-current-page': string;
|
|
57
|
+
'table-action-export-import-all-records': string;
|
|
58
|
+
'table-action-export-import-selected-records': string;
|
|
59
|
+
'table-action-export-import-selected': string;
|
|
60
|
+
'table-action-export-import-item': (length: number) => string;
|
|
61
|
+
'table-action-export-import-product': string;
|
|
62
|
+
'table-action-export-import-table-text-input-title': string;
|
|
63
|
+
'table-action-export-import-table-text-input-describe': string;
|
|
64
|
+
'table-action-export-import-table-error-file': string;
|
|
65
|
+
'components.BulkExportTool.export-success': string;
|
|
66
|
+
'table-action-export-import-import-success': string;
|
|
67
|
+
'table-action-export-import-import-phone': string;
|
|
68
|
+
'table-action-export-import-table-success-download': string;
|
|
69
|
+
'table-action-export-import-table-textimport-product': string;
|
|
70
|
+
'table-action-export-import-table-text-product-template': string;
|
|
71
|
+
'table-action-export-import-table-text-click-download': string;
|
|
72
|
+
'table-action-export-import-table-text-edit-file': string;
|
|
73
|
+
'table-action-export-import-button-import': string;
|
|
74
|
+
'table-action-export-import-cancel': string;
|
|
75
|
+
'table-action-export-import-file-completed': string;
|
|
76
|
+
'table-action-export-import-file-processing': string;
|
|
77
|
+
'table-action-export-import-file-pending': string;
|
|
78
|
+
'table-action-export-import-file-refresh': string;
|
|
79
|
+
'table-action-export-import-export-title': string;
|
|
80
|
+
'table-action-export-import-file-hint': string;
|
|
81
|
+
'table-action-export-import-file-name': string;
|
|
82
|
+
'table-action-export-import-file-content': string;
|
|
83
|
+
'table-action-export-import-file-content-all': string;
|
|
84
|
+
'table-action-export-import-file-content-part': string;
|
|
85
|
+
'table-action-export-import-file-status': string;
|
|
86
|
+
'table-action-export-import-file-account': string;
|
|
87
|
+
'table-action-export-import-file-created': string;
|
|
88
|
+
'table-action-export-import-file-record': (length: number) => string;
|
|
89
|
+
'table-action-export-import-import-title': string;
|
|
90
|
+
'table-action-export-import-log-hint': string;
|
|
91
|
+
'table-action-export-import-log-name': string;
|
|
92
|
+
'table-action-export-import-log-result': string;
|
|
93
|
+
'table-action-export-import-log-ok': (num: number) => string;
|
|
94
|
+
'table-action-export-import-log-err': (num: number) => string;
|
|
95
|
+
'table-action-export-import-log-check': string;
|
|
96
|
+
'table-action-export-import-log-detail-title': string;
|
|
97
|
+
'table-action-export-import-log-err-log': string;
|
|
98
|
+
'table-action-export-import-log-copy': string;
|
|
99
|
+
'table-action-export-import-table-success-copy': string;
|
|
53
100
|
};
|
|
54
101
|
export default _default;
|
package/lib/locales/en-US.js
CHANGED
|
@@ -73,5 +73,56 @@ var en_US_default = {
|
|
|
73
73
|
"batch-editor-quick-edit": "Quick edit",
|
|
74
74
|
"batch-editor-what-price": "What price",
|
|
75
75
|
"batch-editor-quick-edit-title": (product, num) => `You have selected ${num} products including ${product}`,
|
|
76
|
-
"batch-editor-quick-edit-title-2": (product) => `You have selected ${product}
|
|
76
|
+
"batch-editor-quick-edit-title-2": (product) => `You have selected ${product}`,
|
|
77
|
+
// 导出
|
|
78
|
+
"table-action-export-import-export-success": "Export successful! Please check at the Notification Center.",
|
|
79
|
+
"table-action-export-import-button": "Export",
|
|
80
|
+
"table-action-export-import-export-range": "Export Range",
|
|
81
|
+
"table-action-export-import-current-page": "Current Page",
|
|
82
|
+
"table-action-export-import-all-records": "All Records",
|
|
83
|
+
"table-action-export-import-selected-records": "Selected Records",
|
|
84
|
+
"table-action-export-import-selected": "Selected",
|
|
85
|
+
"table-action-export-import-item": (length) => `${length} ${length > 1 ? "items" : "item"}`,
|
|
86
|
+
"table-action-export-import-product": "Export Products",
|
|
87
|
+
// 导入
|
|
88
|
+
"table-action-export-import-table-text-input-title": "Click or drag file to this area to upload",
|
|
89
|
+
"table-action-export-import-table-text-input-describe": "Support both single and bulk uploads. Do not upload data file other than supported template.",
|
|
90
|
+
"table-action-export-import-table-error-file": "Only supports uploading files in.csv,.xls,.xlsx format.",
|
|
91
|
+
"components.BulkExportTool.export-success": "Export successful! Please check at the Notification Center.",
|
|
92
|
+
"table-action-export-import-import-success": "Import successful! Please check at the Notification Center.",
|
|
93
|
+
"table-action-export-import-import-phone": "Whether to replace data with the same mobile number?",
|
|
94
|
+
"table-action-export-import-table-success-download": "Download Success",
|
|
95
|
+
"table-action-export-import-table-textimport-product": "Import Products",
|
|
96
|
+
"table-action-export-import-table-text-product-template": "Import Template",
|
|
97
|
+
"table-action-export-import-table-text-click-download": "Click to download",
|
|
98
|
+
"table-action-export-import-table-text-edit-file": "Replace file",
|
|
99
|
+
"table-action-export-import-button-import": "Import",
|
|
100
|
+
"table-action-export-import-cancel": "Cancel",
|
|
101
|
+
"table-action-export-import-file-completed": "completed",
|
|
102
|
+
"table-action-export-import-file-processing": "processing",
|
|
103
|
+
"table-action-export-import-file-pending": "pending",
|
|
104
|
+
"table-action-export-import-file-refresh": "Refresh",
|
|
105
|
+
"table-action-export-import-export-title": "Export File",
|
|
106
|
+
"table-action-export-import-file-hint": "Display only the last 10 export histories",
|
|
107
|
+
"table-action-export-import-file-name": "Export File",
|
|
108
|
+
"table-action-export-import-file-content": "Content",
|
|
109
|
+
"table-action-export-import-file-content-all": "All",
|
|
110
|
+
"table-action-export-import-file-content-part": "Selected",
|
|
111
|
+
"table-action-export-import-file-status": "Status",
|
|
112
|
+
"table-action-export-import-file-account": "Operator",
|
|
113
|
+
"table-action-export-import-file-created": "Operation Time",
|
|
114
|
+
"table-action-export-import-file-record": (length) => `${length} ${length > 1 ? "records" : "record"}`,
|
|
115
|
+
// 导入日志
|
|
116
|
+
"table-action-export-import-import-title": "Import Log",
|
|
117
|
+
"table-action-export-import-log-hint": "Display only the last 10 import histories",
|
|
118
|
+
"table-action-export-import-log-name": "Import File",
|
|
119
|
+
"table-action-export-import-log-result": "Import Results",
|
|
120
|
+
"table-action-export-import-log-ok": (num) => `${num} successful`,
|
|
121
|
+
"table-action-export-import-log-err": (num) => `, ${num} failures`,
|
|
122
|
+
"table-action-export-import-log-check": `View more`,
|
|
123
|
+
// 导入详情
|
|
124
|
+
"table-action-export-import-log-detail-title": "Import Details",
|
|
125
|
+
"table-action-export-import-log-err-log": "Failure Log",
|
|
126
|
+
"table-action-export-import-log-copy": "Copy",
|
|
127
|
+
"table-action-export-import-table-success-copy": "Copy Success"
|
|
77
128
|
};
|
package/lib/locales/zh-CN.d.ts
CHANGED
|
@@ -50,5 +50,52 @@ declare const _default: {
|
|
|
50
50
|
'batch-editor-what-price': string;
|
|
51
51
|
'batch-editor-quick-edit-title': (product: string, num: string) => string;
|
|
52
52
|
'batch-editor-quick-edit-title-2': (product: string) => string;
|
|
53
|
+
'table-action-export-import-export-success': string;
|
|
54
|
+
'table-action-export-import-button': string;
|
|
55
|
+
'table-action-export-import-export-range': string;
|
|
56
|
+
'table-action-export-import-current-page': string;
|
|
57
|
+
'table-action-export-import-all-records': string;
|
|
58
|
+
'table-action-export-import-selected-records': string;
|
|
59
|
+
'table-action-export-import-selected': string;
|
|
60
|
+
'table-action-export-import-item': (length: number) => string;
|
|
61
|
+
'table-action-export-import-product': string;
|
|
62
|
+
'table-action-export-import-table-text-input-title': string;
|
|
63
|
+
'table-action-export-import-table-text-input-describe': string;
|
|
64
|
+
'table-action-export-import-table-error-file': string;
|
|
65
|
+
'components.BulkExportTool.export-success': string;
|
|
66
|
+
'table-action-export-import-import-success': string;
|
|
67
|
+
'table-action-export-import-import-phone': string;
|
|
68
|
+
'table-action-export-import-table-success-download': string;
|
|
69
|
+
'table-action-export-import-table-textimport-product': string;
|
|
70
|
+
'table-action-export-import-table-text-product-template': string;
|
|
71
|
+
'table-action-export-import-table-text-click-download': string;
|
|
72
|
+
'table-action-export-import-table-text-edit-file': string;
|
|
73
|
+
'table-action-export-import-button-import': string;
|
|
74
|
+
'table-action-export-import-cancel': string;
|
|
75
|
+
'table-action-export-import-file-completed': string;
|
|
76
|
+
'table-action-export-import-file-processing': string;
|
|
77
|
+
'table-action-export-import-file-pending': string;
|
|
78
|
+
'table-action-export-import-file-refresh': string;
|
|
79
|
+
'table-action-export-import-export-title': string;
|
|
80
|
+
'table-action-export-import-file-hint': string;
|
|
81
|
+
'table-action-export-import-file-name': string;
|
|
82
|
+
'table-action-export-import-file-content': string;
|
|
83
|
+
'table-action-export-import-file-content-all': string;
|
|
84
|
+
'table-action-export-import-file-content-part': string;
|
|
85
|
+
'table-action-export-import-file-status': string;
|
|
86
|
+
'table-action-export-import-file-account': string;
|
|
87
|
+
'table-action-export-import-file-created': string;
|
|
88
|
+
'table-action-export-import-file-record': (length: number) => string;
|
|
89
|
+
'table-action-export-import-import-title': string;
|
|
90
|
+
'table-action-export-import-log-hint': string;
|
|
91
|
+
'table-action-export-import-log-name': string;
|
|
92
|
+
'table-action-export-import-log-result': string;
|
|
93
|
+
'table-action-export-import-log-ok': (num: number) => string;
|
|
94
|
+
'table-action-export-import-log-err': (num: number) => string;
|
|
95
|
+
'table-action-export-import-log-check': string;
|
|
96
|
+
'table-action-export-import-log-detail-title': string;
|
|
97
|
+
'table-action-export-import-log-err-log': string;
|
|
98
|
+
'table-action-export-import-log-copy': string;
|
|
99
|
+
'table-action-export-import-table-success-copy': string;
|
|
53
100
|
};
|
|
54
101
|
export default _default;
|
package/lib/locales/zh-CN.js
CHANGED
|
@@ -73,5 +73,56 @@ var zh_CN_default = {
|
|
|
73
73
|
"batch-editor-quick-edit": "快速编辑",
|
|
74
74
|
"batch-editor-what-price": "什么价格",
|
|
75
75
|
"batch-editor-quick-edit-title": (product, num) => `您已选择 ${product} 等${num}件商品`,
|
|
76
|
-
"batch-editor-quick-edit-title-2": (product) => `您已选择 ${product}
|
|
76
|
+
"batch-editor-quick-edit-title-2": (product) => `您已选择 ${product}`,
|
|
77
|
+
// 导出
|
|
78
|
+
"table-action-export-import-export-success": "导出成功!请在通知中心查看。",
|
|
79
|
+
"table-action-export-import-button": "导出",
|
|
80
|
+
"table-action-export-import-export-range": "导出范围",
|
|
81
|
+
"table-action-export-import-current-page": "当前页面",
|
|
82
|
+
"table-action-export-import-all-records": "所有记录",
|
|
83
|
+
"table-action-export-import-selected-records": "所选记录",
|
|
84
|
+
"table-action-export-import-selected": "已选",
|
|
85
|
+
"table-action-export-import-item": (length) => `${length} 条`,
|
|
86
|
+
"table-action-export-import-product": "导出商品",
|
|
87
|
+
// 导入
|
|
88
|
+
"table-action-export-import-table-text-input-title": "单击或拖动文件到该区域进行上传",
|
|
89
|
+
"table-action-export-import-table-text-input-describe": "支持单个上传。严禁上传公司数据或其他band文件。",
|
|
90
|
+
"table-action-export-import-table-error-file": "仅支持上传.csv,.xls,.xlsx格式的文件!",
|
|
91
|
+
"components.BulkExportTool.export-success": "导出成功!请在通知中心查看。",
|
|
92
|
+
"table-action-export-import-import-success": "导入成功!请在通知中心查看。",
|
|
93
|
+
"table-action-export-import-import-phone": "手机相同的是否覆盖",
|
|
94
|
+
"table-action-export-import-table-success-download": "下载成功",
|
|
95
|
+
"table-action-export-import-table-textimport-product": "导入商品",
|
|
96
|
+
"table-action-export-import-table-text-product-template": "导入模板",
|
|
97
|
+
"table-action-export-import-table-text-click-download": "点击下载",
|
|
98
|
+
"table-action-export-import-table-text-edit-file": "替换文件",
|
|
99
|
+
"table-action-export-import-button-import": "导入",
|
|
100
|
+
"table-action-export-import-cancel": "取消",
|
|
101
|
+
"table-action-export-import-file-completed": "已完成",
|
|
102
|
+
"table-action-export-import-file-processing": "处理中",
|
|
103
|
+
"table-action-export-import-file-pending": "待处理",
|
|
104
|
+
"table-action-export-import-file-refresh": "刷新",
|
|
105
|
+
"table-action-export-import-export-title": "导出文件",
|
|
106
|
+
"table-action-export-import-file-hint": "仅显示最近的10次导出记录",
|
|
107
|
+
"table-action-export-import-file-name": "导出文件",
|
|
108
|
+
"table-action-export-import-file-content": "导出内容",
|
|
109
|
+
"table-action-export-import-file-content-all": "所有",
|
|
110
|
+
"table-action-export-import-file-content-part": "所选",
|
|
111
|
+
"table-action-export-import-file-status": "状态",
|
|
112
|
+
"table-action-export-import-file-account": "操作人",
|
|
113
|
+
"table-action-export-import-file-created": "操作时间",
|
|
114
|
+
"table-action-export-import-file-record": (length) => `${length} 条记录`,
|
|
115
|
+
// 导入日志
|
|
116
|
+
"table-action-export-import-import-title": "导入日志",
|
|
117
|
+
"table-action-export-import-log-hint": "仅显示最近的10次导入记录",
|
|
118
|
+
"table-action-export-import-log-name": "导入文件",
|
|
119
|
+
"table-action-export-import-log-result": "导入结果",
|
|
120
|
+
"table-action-export-import-log-ok": (num) => `成功 ${num} 条`,
|
|
121
|
+
"table-action-export-import-log-err": (num) => `, 失败 ${num} 条`,
|
|
122
|
+
"table-action-export-import-log-check": `查看原因`,
|
|
123
|
+
// 导入详情
|
|
124
|
+
"table-action-export-import-log-detail-title": "导入详情",
|
|
125
|
+
"table-action-export-import-log-err-log": "失败日志",
|
|
126
|
+
"table-action-export-import-log-copy": "复制",
|
|
127
|
+
"table-action-export-import-table-success-copy": "复制成功"
|
|
77
128
|
};
|