@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.
Files changed (103) 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 +14 -14
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +14 -14
  11. package/es/components/Pagination/index.d.ts +1 -1
  12. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +5 -0
  13. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.js +137 -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 +86 -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 +5 -0
  23. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.js +131 -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 +147 -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 +216 -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/hooks/useTableSetting.d.ts +2 -1
  40. package/es/components/table/hooks/useTableSetting.js +2 -1
  41. package/es/components/table/index.js +15 -13
  42. package/es/components/table/serve.d.ts +13 -0
  43. package/es/components/table/serve.js +55 -0
  44. package/es/components/table/status.d.ts +19 -0
  45. package/es/components/table/status.js +26 -0
  46. package/es/components/table/types.d.ts +20 -0
  47. package/es/components/table/utils.d.ts +15 -0
  48. package/es/components/table/utils.js +26 -0
  49. package/es/components/virtual-keyboard/Time/index.js +1 -1
  50. package/es/locales/en-US.d.ts +47 -0
  51. package/es/locales/en-US.js +60 -1
  52. package/es/locales/zh-CN.d.ts +47 -0
  53. package/es/locales/zh-CN.js +60 -1
  54. package/es/locales/zh-TW.d.ts +47 -0
  55. package/es/locales/zh-TW.js +60 -1
  56. package/lib/components/Pagination/index.d.ts +1 -1
  57. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +5 -0
  58. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.js +144 -0
  59. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.less +29 -0
  60. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +1 -0
  61. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.js +79 -0
  62. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +8 -0
  63. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.js +60 -0
  64. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.less +5 -0
  65. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/Detail.d.ts +4 -0
  66. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/Detail.js +117 -0
  67. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +5 -0
  68. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.js +135 -0
  69. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.less +48 -0
  70. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +10 -0
  71. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.js +119 -0
  72. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.less +97 -0
  73. package/lib/components/table/Actions/component/ExportImport/index.d.ts +8 -0
  74. package/lib/components/table/Actions/component/ExportImport/index.js +194 -0
  75. package/lib/components/table/Actions/component/ExportImport/index.less +194 -0
  76. package/lib/components/table/Actions/component/ExportImport/utils/date.d.ts +8 -0
  77. package/lib/components/table/Actions/component/ExportImport/utils/date.js +49 -0
  78. package/lib/components/table/Actions/component/ExportImport/utils/download.d.ts +3 -0
  79. package/lib/components/table/Actions/component/ExportImport/utils/download.js +62 -0
  80. package/lib/components/table/Actions/component/ExportImport/utils/file.d.ts +7 -0
  81. package/lib/components/table/Actions/component/ExportImport/utils/file.js +55 -0
  82. package/lib/components/table/Actions/index.d.ts +3 -2
  83. package/lib/components/table/Actions/index.js +11 -7
  84. package/lib/components/table/hooks/useTableSetting.d.ts +2 -1
  85. package/lib/components/table/hooks/useTableSetting.js +2 -1
  86. package/lib/components/table/index.js +14 -12
  87. package/lib/components/table/serve.d.ts +13 -0
  88. package/lib/components/table/serve.js +55 -0
  89. package/lib/components/table/status.d.ts +19 -0
  90. package/lib/components/table/status.js +55 -0
  91. package/lib/components/table/types.d.ts +20 -0
  92. package/lib/components/table/utils.d.ts +15 -0
  93. package/lib/components/table/utils.js +40 -0
  94. package/lib/components/virtual-keyboard/Time/index.js +1 -1
  95. package/lib/locales/en-US.d.ts +47 -0
  96. package/lib/locales/en-US.js +52 -1
  97. package/lib/locales/zh-CN.d.ts +47 -0
  98. package/lib/locales/zh-CN.js +52 -1
  99. package/lib/locales/zh-TW.d.ts +47 -0
  100. package/lib/locales/zh-TW.js +52 -1
  101. package/lowcode/table/meta.ts +84 -1
  102. package/lowcode/table/snippets.ts +8 -0
  103. package/package.json +4 -4
@@ -50,5 +50,52 @@ declare const _default: {
50
50
  'batch-editor-quick-edit': 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;
@@ -73,5 +73,56 @@ var zh_TW_default = {
73
73
  "batch-editor-what-price": "什麼價格",
74
74
  "batch-editor-quick-edit": "快速編輯",
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
  };
@@ -1690,7 +1690,7 @@ export default {
1690
1690
  componentName: "SelectSetter",
1691
1691
  mode: "single",
1692
1692
  props: (target) => {
1693
- console.log(target.parent.parent.parent,this,'target.parent.parent.parent\n' +
1693
+ console.log(target.parent.parent.parent, this, 'target.parent.parent.parent\n' +
1694
1694
  ' .getPropValue("columns")')
1695
1695
  const fieldsKey = target.parent.parent.parent
1696
1696
  .getPropValue("filter.list")
@@ -2028,6 +2028,69 @@ export default {
2028
2028
  },
2029
2029
  ],
2030
2030
  },
2031
+ {
2032
+ title: { label: "导入导出", tip: "表单的导入导出" },
2033
+ display: "block",
2034
+ type: "group",
2035
+ items: [
2036
+ {
2037
+ name: "exportImport.show",
2038
+ title: { label: "开启导入导出", tip: "开启表单的导入导出" },
2039
+ propType: "bool",
2040
+ setter: "BoolSetter",
2041
+ defaultValue: false,
2042
+ },
2043
+ {
2044
+ name: "exportImport.formId",
2045
+ title: { label: "表单ID", tip: "表单ID" },
2046
+ propType: "string",
2047
+ setter: "StringSetter",
2048
+ condition: {
2049
+ type: "JSFunction",
2050
+ value: 'target => !!target.getProps().getPropValue("exportImport.show")',
2051
+ },
2052
+ },
2053
+ {
2054
+ name: "exportImport.formCode",
2055
+ title: { label: "表单Code", tip: "表单Code|表单的唯一标识" },
2056
+ propType: "string",
2057
+ setter: "StringSetter",
2058
+ condition: {
2059
+ type: "JSFunction",
2060
+ value: 'target => !!target.getProps().getPropValue("exportImport.show")',
2061
+ },
2062
+ },
2063
+ {
2064
+ name: "exportImport.title",
2065
+ title: { label: "标题", tip: "打开弹窗的标题" },
2066
+ propType: "string",
2067
+ setter: "PisellI18nSetter",
2068
+ condition: {
2069
+ type: "JSFunction",
2070
+ value: 'target => !!target.getProps().getPropValue("exportImport.show")',
2071
+ },
2072
+ },
2073
+ {
2074
+ name: "exportImport.templateFileUrl",
2075
+ title: { label: "导入模版链接", tip: "导入模版链接" },
2076
+ propType: "string",
2077
+ setter: "StringSetter",
2078
+ condition: {
2079
+ type: "JSFunction",
2080
+ value: 'target => !!target.getProps().getPropValue("exportImport.show")',
2081
+ },
2082
+ },
2083
+ {
2084
+ name: "exportImport.selectLists",
2085
+ title: { label: "当前所选项", tip: "当前所选择的需要导出的哪些数据" },
2086
+ setter: "ObjectSetter",
2087
+ condition: {
2088
+ type: "JSFunction",
2089
+ value: 'target => !!target.getProps().getPropValue("exportImport.show")',
2090
+ },
2091
+ },
2092
+ ],
2093
+ },
2031
2094
  {
2032
2095
  name: "buttons",
2033
2096
  title: { label: "标题按钮组", tip: "标题右侧按钮项" },
@@ -2193,6 +2256,26 @@ export default {
2193
2256
  template:
2194
2257
  "onExpandableExpand(expanded,record){\n// 点击展开图标时触发\nconsole.log('onRowSelectionChange', expanded, record);}",
2195
2258
  },
2259
+ {
2260
+ name: "onExportChange",
2261
+ template:
2262
+ "onExportChange(expanded,record){\n// 点击展开图标时触发\nconsole.log('onExport', expanded, record);}",
2263
+ },
2264
+ {
2265
+ name: "onImportChange",
2266
+ template:
2267
+ "onImportChange(expanded,record){\n// 点击展开图标时触发\nconsole.log('onExport', expanded, record);}",
2268
+ },
2269
+ {
2270
+ name: "onExportFileChange",
2271
+ template:
2272
+ "onExportFileChange(expanded,record){\n// 点击展开图标时触发\nconsole.log('onExport', expanded, record);}",
2273
+ },
2274
+ {
2275
+ name: "onImportLogChange",
2276
+ template:
2277
+ "onImportLogChange(expanded,record){\n// 点击展开图标时触发\nconsole.log('onExport', expanded, record);}",
2278
+ },
2196
2279
  ],
2197
2280
  },
2198
2281
  },
@@ -82,6 +82,14 @@ export default [
82
82
  content: {},
83
83
  footer: {},
84
84
  },
85
+ exportImport: {
86
+ show: false,
87
+ formId: "",
88
+ formCode: "",
89
+ selectLists: [],
90
+ templateFileUrl: "",
91
+ title: "",
92
+ },
85
93
  },
86
94
  },
87
95
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.0.309",
3
+ "version": "1.0.313",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -62,9 +62,9 @@
62
62
  "react-window": "^1.8.10",
63
63
  "react-virtualized-auto-sizer": "^1.0.20",
64
64
  "crypto-js": "^4.2.0",
65
- "@pisell/icon": "0.0.8",
66
- "@pisell/date-picker": "1.0.75",
67
- "@pisell/utils": "1.0.27"
65
+ "@pisell/utils": "1.0.27",
66
+ "@pisell/icon": "0.0.10",
67
+ "@pisell/date-picker": "1.0.75"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "react": "^18.0.0",