@teamias/rex-pro 0.0.2 → 0.0.4

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.
@@ -89,7 +89,7 @@ export var ActionButtons = function ActionButtons(_ref) {
89
89
  status = _checkSelected.status;
90
90
  if (!status) {
91
91
  message.warning(formatMessage({
92
- id: 'bit.data-display.rex-pro-table.action-buttons.please-check-data',
92
+ id: 'pro.components.rex-pro-table.action-buttons.please-check-data',
93
93
  defaultMessage: '请勾选数据'
94
94
  }));
95
95
  return;
@@ -101,7 +101,7 @@ export var ActionButtons = function ActionButtons(_ref) {
101
101
  whiteSpace: 'pre-wrap'
102
102
  },
103
103
  children: (_item$confirmTitle = item.confirmTitle) !== null && _item$confirmTitle !== void 0 ? _item$confirmTitle : formatMessage({
104
- id: 'bit.data-display.rex-pro-table.action-buttons.confirm-operation',
104
+ id: 'pro.components.rex-pro-table.action-buttons.confirm-operation',
105
105
  defaultMessage: '确认操作{label}'
106
106
  }, {
107
107
  label: item.label
@@ -112,7 +112,7 @@ export var ActionButtons = function ActionButtons(_ref) {
112
112
  whiteSpace: 'pre-wrap'
113
113
  },
114
114
  children: (_item$confirmContent = item.confirmContent) !== null && _item$confirmContent !== void 0 ? _item$confirmContent : formatMessage({
115
- id: 'bit.data-display.rex-pro-table.action-buttons.confirm-execute-operation-is-it',
115
+ id: 'pro.components.rex-pro-table.action-buttons.confirm-execute',
116
116
  defaultMessage: '确认要执行此操作吗?'
117
117
  })
118
118
  }),
@@ -272,8 +272,8 @@ export var ActionButtons = function ActionButtons(_ref) {
272
272
  key: "".concat(index, "-").concat(item.key),
273
273
  onClick: item.onClick
274
274
  }), (_item$label = item.label) !== null && _item$label !== void 0 ? _item$label : formatMessage({
275
- id: 'bit.data-display.rex-pro-table.action-buttons.item-label',
276
- defaultMessage: '未配置 button label'
275
+ id: 'pro.components.rex-pro-table.action-buttons.item-label-missing',
276
+ defaultMessage: '未配置按钮标签'
277
277
  }));
278
278
  })
279
279
  });
@@ -294,8 +294,8 @@ export var ActionButtons = function ActionButtons(_ref) {
294
294
  size: size
295
295
  }, groupItem.buttonProps), {}, {
296
296
  children: (_groupItem$label = groupItem.label) !== null && _groupItem$label !== void 0 ? _groupItem$label : formatMessage({
297
- id: 'bit.data-display.rex-pro-table.action-buttons.group-label',
298
- defaultMessage: '未配置 group label'
297
+ id: 'pro.components.rex-pro-table.action-buttons.group-label-missing',
298
+ defaultMessage: '未配置分组标签'
299
299
  })
300
300
  }))
301
301
  }), index);
@@ -83,7 +83,7 @@ var InlineForm = function InlineForm(_ref) {
83
83
  return actionRef.onCancel();
84
84
  },
85
85
  children: formatMessage({
86
- id: 'bit.data-display.rex-pro-table.form.cancel',
86
+ id: 'pro.components.rex-pro-table.form.cancel',
87
87
  defaultMessage: '取消'
88
88
  })
89
89
  }), /*#__PURE__*/_jsx(Button, {
@@ -91,8 +91,8 @@ var InlineForm = function InlineForm(_ref) {
91
91
  type: "primary",
92
92
  loading: isSubmitting,
93
93
  children: formatMessage({
94
- id: 'bit.data-display.rex-pro-table.form.determine',
95
- defaultMessage: '确定'
94
+ id: 'pro.components.rex-pro-table.form.confirm',
95
+ defaultMessage: '确认'
96
96
  })
97
97
  })]
98
98
  });
@@ -67,8 +67,8 @@ var InlineRexProTable = function InlineRexProTable(_ref) {
67
67
  actionButtonItemsPromise: undefined,
68
68
  hasBatchAction: true,
69
69
  customEmptyText: formatMessage({
70
- id: 'bit.data-display.rex-pro-table.empty-text',
71
- defaultMessage: '请选择相关筛选条件进行搜索.'
70
+ id: 'pro.components.rex-pro-table.empty-text',
71
+ defaultMessage: '请选择相关筛选条件进行搜索'
72
72
  })
73
73
  };
74
74
  }),
@@ -177,7 +177,7 @@ var InlineRexProTable = function InlineRexProTable(_ref) {
177
177
  };
178
178
  var extraColumns = actionConfig || responseConfig.tableActionButtonUrl || responseConfig.tableActionButtonConfig ? [_objectSpread(_objectSpread({
179
179
  title: formatMessage({
180
- id: 'bit.data-display.rex-pro-table.column-action-title',
180
+ id: 'pro.components.rex-pro-table.column-action-title',
181
181
  defaultMessage: '操作'
182
182
  }),
183
183
  fixed: 'right',
@@ -334,7 +334,7 @@ var InlineRexProTable = function InlineRexProTable(_ref) {
334
334
  showLessItems: true,
335
335
  showTotal: function showTotal(total) {
336
336
  return formatMessage({
337
- id: 'bit.data-display.rex-pro-table.pagination-total',
337
+ id: 'pro.components.rex-pro-table.pagination-total',
338
338
  defaultMessage: '共 {total} 条'
339
339
  }, {
340
340
  total: total
package/dist/index.d.ts CHANGED
@@ -1 +1,55 @@
1
1
  export * from './components';
2
+ export declare const proLocales: {
3
+ zhCN: {
4
+ pro: {
5
+ components: {
6
+ "rex-pro-table": {
7
+ "empty-text": string;
8
+ "column-action-title": string;
9
+ "pagination-total": string;
10
+ "action-buttons": {
11
+ "please-check-data": string;
12
+ "confirm-operation": string;
13
+ "confirm-execute": string;
14
+ "item-label-missing": string;
15
+ "group-label-missing": string;
16
+ };
17
+ form: {
18
+ cancel: string;
19
+ confirm: string;
20
+ };
21
+ };
22
+ "filter-form": {
23
+ reset: string;
24
+ search: string;
25
+ };
26
+ };
27
+ };
28
+ };
29
+ enUS: {
30
+ pro: {
31
+ components: {
32
+ "rex-pro-table": {
33
+ "empty-text": string;
34
+ "column-action-title": string;
35
+ "pagination-total": string;
36
+ "action-buttons": {
37
+ "please-check-data": string;
38
+ "confirm-operation": string;
39
+ "confirm-execute": string;
40
+ "item-label-missing": string;
41
+ "group-label-missing": string;
42
+ };
43
+ form: {
44
+ cancel: string;
45
+ confirm: string;
46
+ };
47
+ };
48
+ "filter-form": {
49
+ reset: string;
50
+ search: string;
51
+ };
52
+ };
53
+ };
54
+ };
55
+ };
package/dist/index.js CHANGED
@@ -1 +1,7 @@
1
- export * from "./components";
1
+ import enUS from "./locales/en-US.json";
2
+ import zhCN from "./locales/zh-CN.json";
3
+ export * from "./components";
4
+ export var proLocales = {
5
+ zhCN: zhCN,
6
+ enUS: enUS
7
+ };
@@ -2,26 +2,24 @@
2
2
  "pro": {
3
3
  "components": {
4
4
  "rex-pro-table": {
5
+ "empty-text": "Please select relevant filter criteria to search",
6
+ "column-action-title": "Actions",
7
+ "pagination-total": "{total} entries in total",
5
8
  "action-buttons": {
6
- "confirm-execute-operation-is-it": "Are you sure you want to do this?",
9
+ "please-check-data": "Please select data",
7
10
  "confirm-operation": "Confirm operation {label}",
8
- "group-label": "Group label not configured",
9
- "item-label": "Not configured button label",
10
- "please-check-data": "Please check the data"
11
+ "confirm-execute": "Are you sure you want to proceed?",
12
+ "item-label-missing": "Button label not configured",
13
+ "group-label-missing": "Group label not configured"
11
14
  },
12
- "column-action-title": "operate",
13
- "empty-text": "Please select relevant filter criteria to search.",
14
15
  "form": {
15
16
  "cancel": "Cancel",
16
- "determine": "Sure"
17
- },
18
- "pagination-total": "{total} entries in total"
17
+ "confirm": "Confirm"
18
+ }
19
19
  },
20
20
  "filter-form": {
21
21
  "reset": "Reset",
22
- "search": "Search",
23
- "expand": "Expand",
24
- "collapse": "Collapse"
22
+ "search": "Search"
25
23
  }
26
24
  }
27
25
  }
@@ -2,26 +2,24 @@
2
2
  "pro": {
3
3
  "components": {
4
4
  "rex-pro-table": {
5
- "empty-text": "请选择相关筛选条件进行搜索.",
5
+ "empty-text": "请选择相关筛选条件进行搜索",
6
6
  "column-action-title": "操作",
7
7
  "pagination-total": "共 {total} 条",
8
8
  "action-buttons": {
9
9
  "please-check-data": "请勾选数据",
10
10
  "confirm-operation": "确认操作{label}",
11
- "confirm-execute-operation-is-it": "确认要执行此操作吗?",
12
- "item-label": "未配置 button label",
13
- "group-label": "未配置 group label"
11
+ "confirm-execute": "确认要执行此操作吗?",
12
+ "item-label-missing": "未配置按钮标签",
13
+ "group-label-missing": "未配置分组标签"
14
14
  },
15
15
  "form": {
16
16
  "cancel": "取消",
17
- "determine": "确定"
17
+ "confirm": "确认"
18
18
  }
19
19
  },
20
20
  "filter-form": {
21
21
  "reset": "重置",
22
- "search": "查询",
23
- "expand": "展开",
24
- "collapse": "收起"
22
+ "search": "查询"
25
23
  }
26
24
  }
27
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamias/rex-pro",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",
@@ -79,7 +79,8 @@
79
79
  "prettier-plugin-packagejson": "^2.2.18",
80
80
  "react": "^18.0.0",
81
81
  "react-dom": "^18.0.0",
82
- "stylelint": "^14.9.1"
82
+ "stylelint": "^14.9.1",
83
+ "umi-plugin-upload-build": "^1.1.0"
83
84
  },
84
85
  "peerDependencies": {
85
86
  "@ant-design/icons": ">=5.0.0",