@pisell/materials 1.0.308 → 1.0.312

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 (113) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +18 -18
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +17 -17
  11. package/es/components/table/Actions/component/ColumnsSetting/PopoverContent.js +1 -1
  12. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +4 -0
  13. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.js +117 -0
  14. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.less +29 -0
  15. package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +1 -0
  16. package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.js +72 -0
  17. package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +8 -0
  18. package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.js +41 -0
  19. package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.less +5 -0
  20. package/es/components/table/Actions/component/ExportImport/components/ImportLog/Detail.d.ts +4 -0
  21. package/es/components/table/Actions/component/ExportImport/components/ImportLog/Detail.js +97 -0
  22. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +4 -0
  23. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.js +111 -0
  24. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.less +48 -0
  25. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +10 -0
  26. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.js +128 -0
  27. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.less +97 -0
  28. package/es/components/table/Actions/component/ExportImport/index.d.ts +8 -0
  29. package/es/components/table/Actions/component/ExportImport/index.js +215 -0
  30. package/es/components/table/Actions/component/ExportImport/index.less +194 -0
  31. package/es/components/table/Actions/component/ExportImport/utils/date.d.ts +8 -0
  32. package/es/components/table/Actions/component/ExportImport/utils/date.js +19 -0
  33. package/es/components/table/Actions/component/ExportImport/utils/download.d.ts +3 -0
  34. package/es/components/table/Actions/component/ExportImport/utils/download.js +39 -0
  35. package/es/components/table/Actions/component/ExportImport/utils/file.d.ts +7 -0
  36. package/es/components/table/Actions/component/ExportImport/utils/file.js +21 -0
  37. package/es/components/table/Actions/index.d.ts +3 -2
  38. package/es/components/table/Actions/index.js +12 -8
  39. package/es/components/table/Table/utils.d.ts +1 -1
  40. package/es/components/table/hooks/useTableSetting.d.ts +2 -1
  41. package/es/components/table/hooks/useTableSetting.js +2 -1
  42. package/es/components/table/index.js +15 -13
  43. package/es/components/table/serve.d.ts +13 -0
  44. package/es/components/table/serve.js +71 -0
  45. package/es/components/table/status.d.ts +19 -0
  46. package/es/components/table/status.js +26 -0
  47. package/es/components/table/types.d.ts +20 -0
  48. package/es/components/table/utils.d.ts +15 -0
  49. package/es/components/table/utils.js +26 -0
  50. package/es/components/virtual-keyboard/Time/index.js +1 -1
  51. package/es/locales/en-US.d.ts +47 -0
  52. package/es/locales/en-US.js +58 -1
  53. package/es/locales/zh-CN.d.ts +47 -0
  54. package/es/locales/zh-CN.js +58 -1
  55. package/es/locales/zh-TW.d.ts +47 -0
  56. package/es/locales/zh-TW.js +58 -1
  57. package/lib/components/table/Actions/component/ColumnsSetting/PopoverContent.js +1 -1
  58. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +4 -0
  59. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.js +131 -0
  60. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.less +29 -0
  61. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +1 -0
  62. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.js +71 -0
  63. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +8 -0
  64. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.js +56 -0
  65. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.less +5 -0
  66. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/Detail.d.ts +4 -0
  67. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/Detail.js +117 -0
  68. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +4 -0
  69. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.js +122 -0
  70. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.less +48 -0
  71. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +10 -0
  72. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.js +112 -0
  73. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.less +97 -0
  74. package/lib/components/table/Actions/component/ExportImport/index.d.ts +8 -0
  75. package/lib/components/table/Actions/component/ExportImport/index.js +194 -0
  76. package/lib/components/table/Actions/component/ExportImport/index.less +194 -0
  77. package/lib/components/table/Actions/component/ExportImport/utils/date.d.ts +8 -0
  78. package/lib/components/table/Actions/component/ExportImport/utils/date.js +49 -0
  79. package/lib/components/table/Actions/component/ExportImport/utils/download.d.ts +3 -0
  80. package/lib/components/table/Actions/component/ExportImport/utils/download.js +62 -0
  81. package/lib/components/table/Actions/component/ExportImport/utils/file.d.ts +7 -0
  82. package/lib/components/table/Actions/component/ExportImport/utils/file.js +55 -0
  83. package/lib/components/table/Actions/index.d.ts +3 -2
  84. package/lib/components/table/Actions/index.js +11 -7
  85. package/lib/components/table/Table/utils.d.ts +1 -1
  86. package/lib/components/table/hooks/useTableSetting.d.ts +2 -1
  87. package/lib/components/table/hooks/useTableSetting.js +2 -1
  88. package/lib/components/table/index.js +14 -12
  89. package/lib/components/table/serve.d.ts +13 -0
  90. package/lib/components/table/serve.js +55 -0
  91. package/lib/components/table/status.d.ts +19 -0
  92. package/lib/components/table/status.js +55 -0
  93. package/lib/components/table/types.d.ts +20 -0
  94. package/lib/components/table/utils.d.ts +15 -0
  95. package/lib/components/table/utils.js +40 -0
  96. package/lib/components/virtual-keyboard/Time/index.js +1 -1
  97. package/lib/locales/en-US.d.ts +47 -0
  98. package/lib/locales/en-US.js +52 -1
  99. package/lib/locales/zh-CN.d.ts +47 -0
  100. package/lib/locales/zh-CN.js +52 -1
  101. package/lib/locales/zh-TW.d.ts +47 -0
  102. package/lib/locales/zh-TW.js +52 -1
  103. package/lowcode/table/meta.ts +84 -1
  104. package/lowcode/table/snippets.ts +8 -0
  105. package/package.json +2 -2
  106. package/dist/umd/materials.min.css +0 -1
  107. package/dist/umd/materials.min.js +0 -1
  108. package/dist/umd/static/DotsSix.57d66266.svg +0 -1
  109. package/dist/umd/static/arrow-left.e542294f.svg +0 -1
  110. package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
  111. package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
  112. package/dist/umd/static/help-circle.31c9be40.svg +0 -1
  113. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
@@ -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,26 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
4
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
+ var Request = /*#__PURE__*/function () {
9
+ function Request() {
10
+ _classCallCheck(this, Request);
11
+ _defineProperty(this, "request", {});
12
+ }
13
+ _createClass(Request, [{
14
+ key: "setRequest",
15
+ value: function setRequest(val) {
16
+ this.request = val;
17
+ }
18
+ }, {
19
+ key: "getRequest",
20
+ value: function getRequest() {
21
+ return this.request;
22
+ }
23
+ }]);
24
+ return Request;
25
+ }();
26
+ export var request = new Request();
@@ -1,7 +1,7 @@
1
1
  import React, { useMemo, useEffect } from "react";
2
2
  import VirtualKeyboard from "../index";
3
3
  import "./index.less";
4
- import { formatStringToTime } from "./utils.tsx";
4
+ import { formatStringToTime } from "./utils";
5
5
  import { getText } from "../../../locales";
6
6
  import dayjs from "dayjs";
7
7
  var items = [{
@@ -26,6 +26,7 @@ declare const _default: {
26
26
  "table-action-group-by-title-tip": string;
27
27
  "table-action-column-title": string;
28
28
  "table-column-group-records": string;
29
+ "table-column-group-lock-tip": string;
29
30
  "table-column-drag-sort-disabled-tip": string;
30
31
  "table-action-filter-no-filter": string;
31
32
  "table-action-range-picker-presets-today": string;
@@ -49,5 +50,51 @@ declare const _default: {
49
50
  'batch-editor-what-price': string;
50
51
  'batch-editor-quick-edit-title': (product: string, num: string) => string;
51
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': 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-file-completed': string;
75
+ 'table-action-export-import-file-processing': string;
76
+ 'table-action-export-import-file-pending': string;
77
+ 'table-action-export-import-file-refresh': string;
78
+ 'table-action-export-import-export-title': string;
79
+ 'table-action-export-import-file-hint': string;
80
+ 'table-action-export-import-file-name': string;
81
+ 'table-action-export-import-file-content': string;
82
+ 'table-action-export-import-file-content-all': string;
83
+ 'table-action-export-import-file-content-part': string;
84
+ 'table-action-export-import-file-status': string;
85
+ 'table-action-export-import-file-account': string;
86
+ 'table-action-export-import-file-created': string;
87
+ 'table-action-export-import-file-record': (length: number) => string;
88
+ 'table-action-export-import-import-title': string;
89
+ 'table-action-export-import-log-hint': string;
90
+ 'table-action-export-import-log-name': string;
91
+ 'table-action-export-import-log-result': string;
92
+ 'table-action-export-import-log-ok': (num: number) => string;
93
+ 'table-action-export-import-log-err': (num: number) => string;
94
+ 'table-action-export-import-log-check': string;
95
+ 'table-action-export-import-log-detail-title': string;
96
+ 'table-action-export-import-log-err-log': string;
97
+ 'table-action-export-import-log-copy': string;
98
+ 'table-action-export-import-table-success-copy': string;
52
99
  };
53
100
  export default _default;
@@ -32,6 +32,7 @@ export default {
32
32
  "table-action-group-by-title-tip": "Please select the field from the dropdown menu to group the data for better organization and browsing.",
33
33
  "table-action-column-title": "Header settings",
34
34
  "table-column-group-records": "records",
35
+ "table-column-group-lock-tip": "Fixed column immutable order",
35
36
  "table-column-drag-sort-disabled-tip": "Automatic sorting is enabled, manual dragging is disabled.",
36
37
  "table-action-filter-no-filter": "No filter options available.",
37
38
  "table-action-range-picker-presets-today": "Today",
@@ -58,5 +59,61 @@ export default {
58
59
  },
59
60
  'batch-editor-quick-edit-title-2': function batchEditorQuickEditTitle2(product) {
60
61
  return "You have selected ".concat(product);
61
- }
62
+ },
63
+ // 导出
64
+ 'table-action-export-import-export-success': 'Export successful! Please check at the Notification Center.',
65
+ 'table-action-export-import-button': 'Export',
66
+ 'table-action-export-import-export-range': 'Export Range',
67
+ 'table-action-export-import-current-page': 'Current Page',
68
+ 'table-action-export-import-all-records': 'All records',
69
+ 'table-action-export-import-selected-records': 'Selected Records',
70
+ 'table-action-export-import-selected': 'Selected',
71
+ 'table-action-export-import-item': 'Items',
72
+ 'table-action-export-import-product': 'Export Products',
73
+ // 导入
74
+ 'table-action-export-import-table-text-input-title': 'Click or drag file to this area to upload',
75
+ 'table-action-export-import-table-text-input-describe': 'Support both single and bulk uploads. Do not upload data file other than supported template.',
76
+ 'table-action-export-import-table-error-file': 'Only supports uploading files in.csv,.xls,.xlsx format.',
77
+ 'components.BulkExportTool.export-success': 'Export successful! Please check at the Notification Center.',
78
+ 'table-action-export-import-import-success': 'Import successful! Please check at the Notification Center.',
79
+ 'table-action-export-import-import-phone': 'Whether to replace data with the same mobile number?',
80
+ 'table-action-export-import-table-success-download': 'Download Success',
81
+ 'table-action-export-import-table-textimport-product': 'Import Products',
82
+ 'table-action-export-import-table-text-product-template': 'Import Template',
83
+ 'table-action-export-import-table-text-click-download': 'Click to download',
84
+ 'table-action-export-import-table-text-edit-file': 'Replace file',
85
+ 'table-action-export-import-button-import': 'Import',
86
+ 'table-action-export-import-file-completed': 'completed',
87
+ 'table-action-export-import-file-processing': 'processing',
88
+ 'table-action-export-import-file-pending': 'pending',
89
+ 'table-action-export-import-file-refresh': 'Refresh',
90
+ 'table-action-export-import-export-title': 'Export File',
91
+ 'table-action-export-import-file-hint': 'Display only the last 10 export histories',
92
+ 'table-action-export-import-file-name': 'Export File',
93
+ 'table-action-export-import-file-content': 'Content',
94
+ 'table-action-export-import-file-content-all': 'All',
95
+ 'table-action-export-import-file-content-part': 'Selected',
96
+ 'table-action-export-import-file-status': 'Status',
97
+ 'table-action-export-import-file-account': 'Operator',
98
+ 'table-action-export-import-file-created': 'Operation Time',
99
+ 'table-action-export-import-file-record': function tableActionExportImportFileRecord(length) {
100
+ return "".concat(length, " ").concat(length > 1 ? 'records' : 'record');
101
+ },
102
+ // 导入日志
103
+ 'table-action-export-import-import-title': 'Import Log',
104
+ 'table-action-export-import-log-hint': 'Display only the last 10 import histories',
105
+ 'table-action-export-import-log-name': 'Import File',
106
+ 'table-action-export-import-log-result': 'Import Results',
107
+ 'table-action-export-import-log-ok': function tableActionExportImportLogOk(num) {
108
+ return "".concat(num, " successful");
109
+ },
110
+ 'table-action-export-import-log-err': function tableActionExportImportLogErr(num) {
111
+ return ", ".concat(num, " failures");
112
+ },
113
+ 'table-action-export-import-log-check': "View more",
114
+ // 导入详情
115
+ 'table-action-export-import-log-detail-title': 'Import Details',
116
+ 'table-action-export-import-log-err-log': 'Failure Log',
117
+ 'table-action-export-import-log-copy': 'Copy',
118
+ 'table-action-export-import-table-success-copy': 'Copy Success'
62
119
  };
@@ -26,6 +26,7 @@ declare const _default: {
26
26
  "table-action-group-by-title-tip": string;
27
27
  "table-action-column-title": string;
28
28
  "table-column-group-records": string;
29
+ "table-column-group-lock-tip": string;
29
30
  "table-column-drag-sort-disabled-tip": string;
30
31
  "table-action-filter-no-filter": string;
31
32
  "table-action-range-picker-presets-today": string;
@@ -49,5 +50,51 @@ declare const _default: {
49
50
  'batch-editor-what-price': string;
50
51
  'batch-editor-quick-edit-title': (product: string, num: string) => string;
51
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': 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-file-completed': string;
75
+ 'table-action-export-import-file-processing': string;
76
+ 'table-action-export-import-file-pending': string;
77
+ 'table-action-export-import-file-refresh': string;
78
+ 'table-action-export-import-export-title': string;
79
+ 'table-action-export-import-file-hint': string;
80
+ 'table-action-export-import-file-name': string;
81
+ 'table-action-export-import-file-content': string;
82
+ 'table-action-export-import-file-content-all': string;
83
+ 'table-action-export-import-file-content-part': string;
84
+ 'table-action-export-import-file-status': string;
85
+ 'table-action-export-import-file-account': string;
86
+ 'table-action-export-import-file-created': string;
87
+ 'table-action-export-import-file-record': (length: number) => string;
88
+ 'table-action-export-import-import-title': string;
89
+ 'table-action-export-import-log-hint': string;
90
+ 'table-action-export-import-log-name': string;
91
+ 'table-action-export-import-log-result': string;
92
+ 'table-action-export-import-log-ok': (num: number) => string;
93
+ 'table-action-export-import-log-err': (num: number) => string;
94
+ 'table-action-export-import-log-check': string;
95
+ 'table-action-export-import-log-detail-title': string;
96
+ 'table-action-export-import-log-err-log': string;
97
+ 'table-action-export-import-log-copy': string;
98
+ 'table-action-export-import-table-success-copy': string;
52
99
  };
53
100
  export default _default;
@@ -32,6 +32,7 @@ export default {
32
32
  "table-action-group-by-title-tip": "请从下拉菜单中选择要分组的字段,以便更好地组织和浏览数据。",
33
33
  "table-action-column-title": "表头设置",
34
34
  "table-column-group-records": "条记录",
35
+ "table-column-group-lock-tip": "固定列不可移动顺序",
35
36
  "table-column-drag-sort-disabled-tip": "已开启自动排序,无法手动拖拽",
36
37
  "table-action-filter-no-filter": "没有可用的筛选器。",
37
38
  "table-action-range-picker-presets-today": "今天",
@@ -58,5 +59,61 @@ export default {
58
59
  },
59
60
  'batch-editor-quick-edit-title-2': function batchEditorQuickEditTitle2(product) {
60
61
  return "\u60A8\u5DF2\u9009\u62E9 ".concat(product);
61
- }
62
+ },
63
+ // 导出
64
+ 'table-action-export-import-export-success': '导出成功!请在通知中心查看。',
65
+ 'table-action-export-import-button': '导出',
66
+ 'table-action-export-import-export-range': '导出范围',
67
+ 'table-action-export-import-current-page': '当前页面',
68
+ 'table-action-export-import-all-records': '所有记录',
69
+ 'table-action-export-import-selected-records': '所选记录',
70
+ 'table-action-export-import-selected': '已选',
71
+ 'table-action-export-import-item': '条',
72
+ 'table-action-export-import-product': '导出商品',
73
+ // 导入
74
+ 'table-action-export-import-table-text-input-title': '单击或拖动文件到该区域进行上传',
75
+ 'table-action-export-import-table-text-input-describe': '支持单个上传。严禁上传公司数据或其他band文件。',
76
+ 'table-action-export-import-table-error-file': '仅支持上传.csv,.xls,.xlsx格式的文件!',
77
+ 'components.BulkExportTool.export-success': '导出成功!请在通知中心查看。',
78
+ 'table-action-export-import-import-success': '导入成功!请在通知中心查看。',
79
+ 'table-action-export-import-import-phone': '手机相同的是否覆盖',
80
+ 'table-action-export-import-table-success-download': '下载成功',
81
+ 'table-action-export-import-table-textimport-product': '导入商品',
82
+ 'table-action-export-import-table-text-product-template': '导入模板',
83
+ 'table-action-export-import-table-text-click-download': '点击下载',
84
+ 'table-action-export-import-table-text-edit-file': '替换文件',
85
+ 'table-action-export-import-button-import': '导入',
86
+ 'table-action-export-import-file-completed': '已完成',
87
+ 'table-action-export-import-file-processing': '处理中',
88
+ 'table-action-export-import-file-pending': '待处理',
89
+ 'table-action-export-import-file-refresh': '刷新',
90
+ 'table-action-export-import-export-title': '导出文件',
91
+ 'table-action-export-import-file-hint': '仅显示最近的10次导出记录',
92
+ 'table-action-export-import-file-name': '导出文件',
93
+ 'table-action-export-import-file-content': '导出内容',
94
+ 'table-action-export-import-file-content-all': '所有',
95
+ 'table-action-export-import-file-content-part': '所选',
96
+ 'table-action-export-import-file-status': '状态',
97
+ 'table-action-export-import-file-account': '操作人',
98
+ 'table-action-export-import-file-created': '操作时间',
99
+ 'table-action-export-import-file-record': function tableActionExportImportFileRecord(length) {
100
+ return "".concat(length, " \u6761\u8BB0\u5F55");
101
+ },
102
+ // 导入日志
103
+ 'table-action-export-import-import-title': '导入日志',
104
+ 'table-action-export-import-log-hint': '仅显示最近的10次导入记录',
105
+ 'table-action-export-import-log-name': '导入文件',
106
+ 'table-action-export-import-log-result': '导入结果',
107
+ 'table-action-export-import-log-ok': function tableActionExportImportLogOk(num) {
108
+ return "\u6210\u529F ".concat(num, " \u6761");
109
+ },
110
+ 'table-action-export-import-log-err': function tableActionExportImportLogErr(num) {
111
+ return ", \u5931\u8D25 ".concat(num, " \u6761");
112
+ },
113
+ 'table-action-export-import-log-check': "\u67E5\u770B\u539F\u56E0",
114
+ // 导入详情
115
+ 'table-action-export-import-log-detail-title': '导入详情',
116
+ 'table-action-export-import-log-err-log': '失败日志',
117
+ 'table-action-export-import-log-copy': '复制',
118
+ 'table-action-export-import-table-success-copy': '复制成功'
62
119
  };
@@ -26,6 +26,7 @@ declare const _default: {
26
26
  "table-action-group-by-title-tip": string;
27
27
  "table-action-column-title": string;
28
28
  "table-column-group-records": string;
29
+ "table-column-group-lock-tip": string;
29
30
  "table-column-drag-sort-disabled-tip": string;
30
31
  "table-action-filter-no-filter": string;
31
32
  "table-action-range-picker-presets-today": string;
@@ -49,5 +50,51 @@ declare const _default: {
49
50
  'batch-editor-quick-edit': string;
50
51
  'batch-editor-quick-edit-title': (product: string, num: string) => string;
51
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': 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-file-completed': string;
75
+ 'table-action-export-import-file-processing': string;
76
+ 'table-action-export-import-file-pending': string;
77
+ 'table-action-export-import-file-refresh': string;
78
+ 'table-action-export-import-export-title': string;
79
+ 'table-action-export-import-file-hint': string;
80
+ 'table-action-export-import-file-name': string;
81
+ 'table-action-export-import-file-content': string;
82
+ 'table-action-export-import-file-content-all': string;
83
+ 'table-action-export-import-file-content-part': string;
84
+ 'table-action-export-import-file-status': string;
85
+ 'table-action-export-import-file-account': string;
86
+ 'table-action-export-import-file-created': string;
87
+ 'table-action-export-import-file-record': (length: number) => string;
88
+ 'table-action-export-import-import-title': string;
89
+ 'table-action-export-import-log-hint': string;
90
+ 'table-action-export-import-log-name': string;
91
+ 'table-action-export-import-log-result': string;
92
+ 'table-action-export-import-log-ok': (num: number) => string;
93
+ 'table-action-export-import-log-err': (num: number) => string;
94
+ 'table-action-export-import-log-check': string;
95
+ 'table-action-export-import-log-detail-title': string;
96
+ 'table-action-export-import-log-err-log': string;
97
+ 'table-action-export-import-log-copy': string;
98
+ 'table-action-export-import-table-success-copy': string;
52
99
  };
53
100
  export default _default;
@@ -32,6 +32,7 @@ export default {
32
32
  "table-action-group-by-title-tip": "請從下拉式選單中選擇要分組的字段,以便更好地組織和瀏覽數據。",
33
33
  "table-action-column-title": "表頭設置",
34
34
  "table-column-group-records": "條記錄",
35
+ "table-column-group-lock-tip": "固定列不可移動順序",
35
36
  "table-column-drag-sort-disabled-tip": "已開啟自動排序,無法手動拖曳",
36
37
  "table-action-filter-no-filter": "沒有可用的篩選器。",
37
38
  "table-action-range-picker-presets-today": "今天",
@@ -58,5 +59,61 @@ export default {
58
59
  },
59
60
  'batch-editor-quick-edit-title-2': function batchEditorQuickEditTitle2(product) {
60
61
  return "\u60A8\u5DF2\u9078\u64C7 ".concat(product);
61
- }
62
+ },
63
+ // 导出
64
+ 'table-action-export-import-export-success': '導出成功!請在通知中心查看。',
65
+ 'table-action-export-import-button': '匯出',
66
+ 'table-action-export-import-export-range': '導出範圍',
67
+ 'table-action-export-import-current-page': '當前頁面',
68
+ 'table-action-export-import-all-records': '所有記錄',
69
+ 'table-action-export-import-selected-records': '所選記錄',
70
+ 'table-action-export-import-selected': '已選',
71
+ 'table-action-export-import-item': '條',
72
+ 'table-action-export-import-product': '導出商品',
73
+ // 导入
74
+ 'table-action-export-import-table-text-input-title': '單擊或拖動文件到該區域進行上傳',
75
+ 'table-action-export-import-table-text-input-describe': '支持單個上傳。嚴禁上傳公司數據或其他band文件。',
76
+ 'table-action-export-import-table-error-file': '僅支持上傳.csv,.xls,.xlsx格式的文件!',
77
+ 'components.BulkExportTool.export-success': '導出成功!請在通知中心查看。',
78
+ 'table-action-export-import-import-success': '導入成功!請在通知中心查看。',
79
+ 'table-action-export-import-import-phone': '手機相同的是否覆蓋',
80
+ 'table-action-export-import-table-success-download': '下載成功',
81
+ 'table-action-export-import-table-textimport-product': '導入商品',
82
+ 'table-action-export-import-table-text-product-template': '導入模板',
83
+ 'table-action-export-import-table-text-click-download': '點擊下載',
84
+ 'table-action-export-import-table-text-edit-file': '替換文件',
85
+ 'table-action-export-import-button-import': '導入',
86
+ 'table-action-export-import-file-completed': '已完成',
87
+ 'table-action-export-import-file-processing': '處理中',
88
+ 'table-action-export-import-file-pending': '待處理',
89
+ 'table-action-export-import-file-refresh': '刷新',
90
+ 'table-action-export-import-export-title': '導出文件',
91
+ 'table-action-export-import-file-hint': '僅顯示最近的10次導出記錄',
92
+ 'table-action-export-import-file-name': '導出文件',
93
+ 'table-action-export-import-file-content': '導出內容',
94
+ 'table-action-export-import-file-content-all': '所有',
95
+ 'table-action-export-import-file-content-part': '所選',
96
+ 'table-action-export-import-file-status': '狀態',
97
+ 'table-action-export-import-file-account': '操作人',
98
+ 'table-action-export-import-file-created': '操作時間',
99
+ 'table-action-export-import-file-record': function tableActionExportImportFileRecord(length) {
100
+ return "".concat(length, " \u689D\u8A18\u9304");
101
+ },
102
+ // 导入日志
103
+ 'table-action-export-import-import-title': '導入日誌',
104
+ 'table-action-export-import-log-hint': '僅顯示最近的10次導入記錄',
105
+ 'table-action-export-import-log-name': '導入文件',
106
+ 'table-action-export-import-log-result': '導入結果',
107
+ 'table-action-export-import-log-ok': function tableActionExportImportLogOk(num) {
108
+ return "\u6210\u529F ".concat(num, " \u689D");
109
+ },
110
+ 'table-action-export-import-log-err': function tableActionExportImportLogErr(num) {
111
+ return ", \u5931\u8D25 ".concat(num, " \u689D");
112
+ },
113
+ 'table-action-export-import-log-check': "\u67E5\u770B\u539F\u56E0",
114
+ // 导入详情
115
+ 'table-action-export-import-log-detail-title': '導入詳情',
116
+ 'table-action-export-import-log-err-log': '失敗日誌',
117
+ 'table-action-export-import-log-copy': '復製',
118
+ 'table-action-export-import-table-success-copy': '復製成功'
62
119
  };
@@ -53,7 +53,7 @@ var DragItem = import_react.default.forwardRef((props, ref) => {
53
53
  style,
54
54
  className: `${prefix}table-action-column-drag-item`
55
55
  },
56
- isLock ? /* @__PURE__ */ import_react.default.createElement(import_antd.Tooltip, { title: "固定列不可移动顺序" }, /* @__PURE__ */ import_react.default.createElement(import_Lock01.default, { className: `${prefix}table-action-column-drag-bar` })) : /* @__PURE__ */ import_react.default.createElement(
56
+ isLock ? /* @__PURE__ */ import_react.default.createElement(import_antd.Tooltip, { title: (0, import_locales.getText)("table-column-group-lock-tip") }, /* @__PURE__ */ import_react.default.createElement(import_Lock01.default, { className: `${prefix}table-action-column-drag-bar` })) : /* @__PURE__ */ import_react.default.createElement(
57
57
  import_DotsSix.default,
58
58
  {
59
59
  ref: setActivatorNodeRef,
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import "./index.less";
3
+ declare const ExportFile: () => React.JSX.Element;
4
+ export default ExportFile;
@@ -0,0 +1,131 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/table/Actions/component/ExportImport/components/ExportFile/index.tsx
30
+ var ExportFile_exports = {};
31
+ __export(ExportFile_exports, {
32
+ default: () => ExportFile_default
33
+ });
34
+ module.exports = __toCommonJS(ExportFile_exports);
35
+ var import_ahooks = require("ahooks");
36
+ var import_antd = require("antd");
37
+ var import_react = __toESM(require("react"));
38
+ var import_useEngineContext = __toESM(require("../../../../../../../hooks/useEngineContext"));
39
+ var import_locales = require("../../../../../../../locales/index");
40
+ var import_serve = require("../../../../../serve");
41
+ var import_status = require("../../../../../status");
42
+ var import_utils = require("../../../../../utils");
43
+ var import_date = require("../../utils/date");
44
+ var import_download = __toESM(require("../../utils/download"));
45
+ var import_index = require("./index.less");
46
+ var defaultParams = {
47
+ type: import_status.defaultOptions.exportValue,
48
+ skip: 1,
49
+ num: 10,
50
+ // code: "company",
51
+ form_id: 720
52
+ };
53
+ var exportstatusoptions = {
54
+ pending: (0, import_locales.getText)("table-action-export-import-file-pending"),
55
+ processing: (0, import_locales.getText)("table-action-export-import-file-processing"),
56
+ completed: (0, import_locales.getText)("table-action-export-import-file-completed"),
57
+ complete: (0, import_locales.getText)("table-action-export-import-file-completed")
58
+ };
59
+ var ExportFile = () => {
60
+ const [list, setList] = (0, import_react.useState)([]);
61
+ const context = (0, import_useEngineContext.default)();
62
+ import_utils.request.setRequest(context.appHelper.utils.request);
63
+ const _historyList = (0, import_ahooks.useRequest)(import_serve.historyData, {
64
+ manual: true,
65
+ onSuccess: (res) => {
66
+ var _a;
67
+ if (res.code == 200) {
68
+ setList(((_a = res.data) == null ? void 0 : _a.list) || []);
69
+ }
70
+ }
71
+ });
72
+ (0, import_react.useEffect)(() => {
73
+ _historyList.run(defaultParams);
74
+ }, []);
75
+ const columns = [
76
+ {
77
+ title: (0, import_locales.getText)("table-action-export-import-file-name"),
78
+ dataIndex: "file_name",
79
+ render: (text, record) => {
80
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, record.status == "completed" || record.status == "complete" ? /* @__PURE__ */ import_react.default.createElement(
81
+ "a",
82
+ {
83
+ onClick: () => {
84
+ (0, import_download.default)(record.url, text);
85
+ }
86
+ },
87
+ text
88
+ ) : /* @__PURE__ */ import_react.default.createElement("span", null, text));
89
+ }
90
+ },
91
+ {
92
+ title: (0, import_locales.getText)("table-action-export-import-file-content"),
93
+ dataIndex: "setting",
94
+ render: (text, record) => {
95
+ var _a, _b, _c;
96
+ return /* @__PURE__ */ import_react.default.createElement("div", null, ((_b = (_a = text == null ? void 0 : text.params) == null ? void 0 : _a.ids) == null ? void 0 : _b.length) ? (0, import_locales.getText)("table-action-export-import-file-content-part") : (0, import_locales.getText)("table-action-export-import-file-content-all"), " ", (0, import_locales.getText)("table-action-export-import-file-record")(
97
+ `${((_c = record == null ? void 0 : record.result) == null ? void 0 : _c.total) || 0}`
98
+ ));
99
+ }
100
+ },
101
+ {
102
+ title: (0, import_locales.getText)("table-action-export-import-file-status"),
103
+ dataIndex: "status",
104
+ render: (text) => exportstatusoptions[text]
105
+ },
106
+ {
107
+ title: (0, import_locales.getText)("table-action-export-import-file-account"),
108
+ dataIndex: "account",
109
+ render: (text) => {
110
+ return text ? /* @__PURE__ */ import_react.default.createElement("div", null, `${(text == null ? void 0 : text.first_name) || ""} ${(text == null ? void 0 : text.last_name) || ""}`) : null;
111
+ }
112
+ },
113
+ {
114
+ title: (0, import_locales.getText)("table-action-export-import-file-created"),
115
+ dataIndex: "created_at",
116
+ render: (text) => (0, import_date.formatDate)(text)
117
+ }
118
+ ];
119
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "export-history-content" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Spin, { spinning: _historyList == null ? void 0 : _historyList.loading }, /* @__PURE__ */ import_react.default.createElement("div", { className: "content-hint" }, (0, import_locales.getText)("table-action-export-import-file-hint"), /* @__PURE__ */ import_react.default.createElement("a", { onClick: () => _historyList.run(defaultParams) }, (0, import_locales.getText)("table-action-export-import-file-refresh"))), /* @__PURE__ */ import_react.default.createElement(
120
+ import_antd.Table,
121
+ {
122
+ rowClassName: "antd-table-row",
123
+ columns,
124
+ dataSource: list,
125
+ pagination: false,
126
+ rowKey: (record) => record.id,
127
+ scroll: { x: true }
128
+ }
129
+ ))));
130
+ };
131
+ var ExportFile_default = ExportFile;
@@ -0,0 +1,29 @@
1
+ .export-history {
2
+ font-size: 14px;
3
+ font-weight: 650;
4
+ color: #252a2d;
5
+ cursor: pointer;
6
+ }
7
+
8
+ .export-history-modal {
9
+ :global {
10
+ .ant-modal-body {
11
+ padding: 0;
12
+ }
13
+ }
14
+ }
15
+
16
+ .export-history-content {
17
+ max-height: calc(100vh * 0.7 - 120px);
18
+ min-height: 200px;
19
+ overflow-y: auto;
20
+ overflow-x: hidden;
21
+
22
+ .content-hint {
23
+ margin-bottom: 10px;
24
+ display: flex;
25
+ align-items: center;
26
+ justify-content: space-between;
27
+ color: #8c8c8c;
28
+ }
29
+ }
@@ -0,0 +1 @@
1
+ export declare const batchExport: (type: string, selectLists: Array<string | number>) => Promise<true | undefined> | undefined;