@pisell/materials 2.2.2 → 2.2.3

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 (111) 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 +13 -13
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +12 -12
  11. package/es/components/Pagination/index.d.ts +1 -1
  12. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +7 -0
  13. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.js +143 -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 +7 -0
  16. package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.js +87 -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 +7 -0
  23. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.js +137 -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 +149 -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 +232 -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/BasicTable/index.js +11 -1
  40. package/es/components/table/Table/index.js +6 -0
  41. package/es/components/table/Table/utils.d.ts +1 -1
  42. package/es/components/table/hooks/useTableSetting.d.ts +2 -1
  43. package/es/components/table/hooks/useTableSetting.js +2 -1
  44. package/es/components/table/index.js +15 -13
  45. package/es/components/table/model.d.ts +2 -0
  46. package/es/components/table/model.js +15 -1
  47. package/es/components/table/serve.d.ts +11 -0
  48. package/es/components/table/serve.js +38 -0
  49. package/es/components/table/status.d.ts +19 -0
  50. package/es/components/table/status.js +26 -0
  51. package/es/components/table/types.d.ts +20 -0
  52. package/es/components/table/utils.d.ts +15 -0
  53. package/es/components/table/utils.js +26 -0
  54. package/es/locales/en-US.d.ts +46 -0
  55. package/es/locales/en-US.js +59 -1
  56. package/es/locales/zh-CN.d.ts +46 -0
  57. package/es/locales/zh-CN.js +59 -1
  58. package/es/locales/zh-TW.d.ts +46 -0
  59. package/es/locales/zh-TW.js +59 -1
  60. package/lib/components/Pagination/index.d.ts +1 -1
  61. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +7 -0
  62. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.js +150 -0
  63. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.less +29 -0
  64. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +7 -0
  65. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.js +78 -0
  66. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +8 -0
  67. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.js +60 -0
  68. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.less +5 -0
  69. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/Detail.d.ts +4 -0
  70. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/Detail.js +117 -0
  71. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +7 -0
  72. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.js +141 -0
  73. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.less +48 -0
  74. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +10 -0
  75. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.js +124 -0
  76. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.less +97 -0
  77. package/lib/components/table/Actions/component/ExportImport/index.d.ts +8 -0
  78. package/lib/components/table/Actions/component/ExportImport/index.js +210 -0
  79. package/lib/components/table/Actions/component/ExportImport/index.less +194 -0
  80. package/lib/components/table/Actions/component/ExportImport/utils/date.d.ts +8 -0
  81. package/lib/components/table/Actions/component/ExportImport/utils/date.js +49 -0
  82. package/lib/components/table/Actions/component/ExportImport/utils/download.d.ts +3 -0
  83. package/lib/components/table/Actions/component/ExportImport/utils/download.js +62 -0
  84. package/lib/components/table/Actions/component/ExportImport/utils/file.d.ts +7 -0
  85. package/lib/components/table/Actions/component/ExportImport/utils/file.js +55 -0
  86. package/lib/components/table/Actions/index.d.ts +3 -2
  87. package/lib/components/table/Actions/index.js +11 -7
  88. package/lib/components/table/BasicTable/index.js +9 -0
  89. package/lib/components/table/Table/index.js +6 -0
  90. package/lib/components/table/Table/utils.d.ts +1 -1
  91. package/lib/components/table/hooks/useTableSetting.d.ts +2 -1
  92. package/lib/components/table/hooks/useTableSetting.js +2 -1
  93. package/lib/components/table/index.js +14 -12
  94. package/lib/components/table/model.d.ts +2 -0
  95. package/lib/components/table/model.js +11 -1
  96. package/lib/components/table/serve.d.ts +11 -0
  97. package/lib/components/table/serve.js +41 -0
  98. package/lib/components/table/status.d.ts +19 -0
  99. package/lib/components/table/status.js +55 -0
  100. package/lib/components/table/types.d.ts +20 -0
  101. package/lib/components/table/utils.d.ts +15 -0
  102. package/lib/components/table/utils.js +40 -0
  103. package/lib/locales/en-US.d.ts +46 -0
  104. package/lib/locales/en-US.js +51 -1
  105. package/lib/locales/zh-CN.d.ts +46 -0
  106. package/lib/locales/zh-CN.js +51 -1
  107. package/lib/locales/zh-TW.d.ts +46 -0
  108. package/lib/locales/zh-TW.js +51 -1
  109. package/lowcode/table/meta.ts +84 -1
  110. package/lowcode/table/snippets.ts +8 -0
  111. package/package.json +3 -3
@@ -73,5 +73,55 @@ 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
+ "table-action-export-import-import-success": "导入成功!",
92
+ "table-action-export-import-import-phone": "手机相同的是否覆盖",
93
+ "table-action-export-import-table-success-download": "下载成功",
94
+ "table-action-export-import-table-textimport-product": "导入商品",
95
+ "table-action-export-import-table-text-product-template": "导入模板",
96
+ "table-action-export-import-table-text-click-download": "点击下载",
97
+ "table-action-export-import-table-text-edit-file": "替换文件",
98
+ "table-action-export-import-button-import": "导入",
99
+ "table-action-export-import-cancel": "取消",
100
+ "table-action-export-import-file-completed": "已完成",
101
+ "table-action-export-import-file-processing": "处理中",
102
+ "table-action-export-import-file-pending": "待处理",
103
+ "table-action-export-import-file-refresh": "刷新",
104
+ "table-action-export-import-export-title": "导出文件",
105
+ "table-action-export-import-file-hint": "仅显示最近的10次导出记录",
106
+ "table-action-export-import-file-name": "导出文件",
107
+ "table-action-export-import-file-content": "导出内容",
108
+ "table-action-export-import-file-content-all": "所有",
109
+ "table-action-export-import-file-content-part": "所选",
110
+ "table-action-export-import-file-status": "状态",
111
+ "table-action-export-import-file-account": "操作人",
112
+ "table-action-export-import-file-created": "操作时间",
113
+ "table-action-export-import-file-record": (length) => `${length} 条记录`,
114
+ // 导入日志
115
+ "table-action-export-import-import-title": "导入日志",
116
+ "table-action-export-import-log-hint": "仅显示最近的10次导入记录",
117
+ "table-action-export-import-log-name": "导入文件",
118
+ "table-action-export-import-log-result": "导入结果",
119
+ "table-action-export-import-log-ok": (num) => `成功 ${num} 条`,
120
+ "table-action-export-import-log-err": (num) => `, 失败 ${num} 条`,
121
+ "table-action-export-import-log-check": `查看原因`,
122
+ // 导入详情
123
+ "table-action-export-import-log-detail-title": "导入详情",
124
+ "table-action-export-import-log-err-log": "失败日志",
125
+ "table-action-export-import-log-copy": "复制",
126
+ "table-action-export-import-table-success-copy": "复制成功"
77
127
  };
@@ -50,5 +50,51 @@ 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
+ 'table-action-export-import-import-success': string;
66
+ 'table-action-export-import-import-phone': string;
67
+ 'table-action-export-import-table-success-download': string;
68
+ 'table-action-export-import-table-textimport-product': string;
69
+ 'table-action-export-import-table-text-product-template': string;
70
+ 'table-action-export-import-table-text-click-download': string;
71
+ 'table-action-export-import-table-text-edit-file': string;
72
+ 'table-action-export-import-button-import': string;
73
+ 'table-action-export-import-cancel': 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;
53
99
  };
54
100
  export default _default;
@@ -73,5 +73,55 @@ 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
+ "table-action-export-import-import-success": "導入成功!",
92
+ "table-action-export-import-import-phone": "手機相同的是否覆蓋",
93
+ "table-action-export-import-table-success-download": "下載成功",
94
+ "table-action-export-import-table-textimport-product": "導入商品",
95
+ "table-action-export-import-table-text-product-template": "導入模板",
96
+ "table-action-export-import-table-text-click-download": "點擊下載",
97
+ "table-action-export-import-table-text-edit-file": "替換文件",
98
+ "table-action-export-import-button-import": "導入",
99
+ "table-action-export-import-cancel": "取消",
100
+ "table-action-export-import-file-completed": "已完成",
101
+ "table-action-export-import-file-processing": "處理中",
102
+ "table-action-export-import-file-pending": "待處理",
103
+ "table-action-export-import-file-refresh": "刷新",
104
+ "table-action-export-import-export-title": "導出文件",
105
+ "table-action-export-import-file-hint": "僅顯示最近的10次導出記錄",
106
+ "table-action-export-import-file-name": "導出文件",
107
+ "table-action-export-import-file-content": "導出內容",
108
+ "table-action-export-import-file-content-all": "所有",
109
+ "table-action-export-import-file-content-part": "所選",
110
+ "table-action-export-import-file-status": "狀態",
111
+ "table-action-export-import-file-account": "操作人",
112
+ "table-action-export-import-file-created": "操作時間",
113
+ "table-action-export-import-file-record": (length) => `${length} 條記錄`,
114
+ // 导入日志
115
+ "table-action-export-import-import-title": "導入日誌",
116
+ "table-action-export-import-log-hint": "僅顯示最近的10次導入記錄",
117
+ "table-action-export-import-log-name": "導入文件",
118
+ "table-action-export-import-log-result": "導入結果",
119
+ "table-action-export-import-log-ok": (num) => `成功 ${num} 條`,
120
+ "table-action-export-import-log-err": (num) => `, 失败 ${num} 條`,
121
+ "table-action-export-import-log-check": `查看原因`,
122
+ // 导入详情
123
+ "table-action-export-import-log-detail-title": "導入詳情",
124
+ "table-action-export-import-log-err-log": "失敗日誌",
125
+ "table-action-export-import-log-copy": "復製",
126
+ "table-action-export-import-table-success-copy": "復製成功"
77
127
  };
@@ -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": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -62,8 +62,8 @@
62
62
  "react-virtualized-auto-sizer": "^1.0.20",
63
63
  "crypto-js": "^4.2.0",
64
64
  "@pisell/utils": "1.0.25",
65
- "@pisell/date-picker": "1.0.74",
66
- "@pisell/icon": "0.0.8"
65
+ "@pisell/icon": "0.0.8",
66
+ "@pisell/date-picker": "1.0.74"
67
67
  },
68
68
  "peerDependencies": {
69
69
  "react": "^18.0.0",