@lemon-fe/components 1.4.22-alpha.1 → 1.4.22-alpha.2
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/es/data-grid/components/custom-panel/field-modal.js +32 -7
- package/es/data-grid/locale/en_US.js +3 -1
- package/es/data-grid/locale/locale.d.ts +2 -0
- package/es/data-grid/locale/vi.js +3 -1
- package/es/data-grid/locale/zh_CN.js +3 -1
- package/es/data-grid/locale/zh_Hant_HK.js +3 -1
- package/package.json +2 -2
|
@@ -173,17 +173,42 @@ export default function FieldModal(props) {
|
|
|
173
173
|
form: form
|
|
174
174
|
}, /*#__PURE__*/React.createElement(FormLayout, {
|
|
175
175
|
direction: "column",
|
|
176
|
-
layout: "flex"
|
|
176
|
+
layout: "flex",
|
|
177
|
+
labelWidth: 106
|
|
177
178
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
178
179
|
hidden: true,
|
|
179
180
|
name: "id"
|
|
180
181
|
}, /*#__PURE__*/React.createElement(Input, null)), /*#__PURE__*/React.createElement(Form.Item, {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
182
|
+
noStyle: true,
|
|
183
|
+
dependencies: ['groupId']
|
|
184
|
+
}, function (_ref2) {
|
|
185
|
+
var getFieldValue = _ref2.getFieldValue;
|
|
186
|
+
var groupId = getFieldValue('groupId');
|
|
187
|
+
return /*#__PURE__*/React.createElement(Form.Item, {
|
|
188
|
+
label: /*#__PURE__*/React.createElement("span", null, fieldModal.customColumnNameText, /*#__PURE__*/React.createElement(TipMark, {
|
|
189
|
+
infoContent: fieldModal.idTooltip
|
|
190
|
+
})),
|
|
191
|
+
name: "name",
|
|
192
|
+
rules: [{
|
|
193
|
+
required: true,
|
|
194
|
+
message: fieldModal.customColumnNameTextRequired
|
|
195
|
+
}, {
|
|
196
|
+
validator: function validator(_, val) {
|
|
197
|
+
var _groups$find;
|
|
198
|
+
if (groupId ? (_groups$find = groups.find(function (item) {
|
|
199
|
+
return item.groupId === groupId;
|
|
200
|
+
})) === null || _groups$find === void 0 || (_groups$find = _groups$find.children) === null || _groups$find === void 0 ? void 0 : _groups$find.some(function (item) {
|
|
201
|
+
return item.headerName === val;
|
|
202
|
+
}) : nodes.some(function (item) {
|
|
203
|
+
return item.title === val;
|
|
204
|
+
})) {
|
|
205
|
+
return Promise.reject(new Error(fieldModal.idTooltip));
|
|
206
|
+
}
|
|
207
|
+
return Promise.resolve();
|
|
208
|
+
}
|
|
209
|
+
}]
|
|
210
|
+
}, /*#__PURE__*/React.createElement(Input, null));
|
|
211
|
+
}), /*#__PURE__*/React.createElement(Form.Item, {
|
|
187
212
|
label: fieldModal.customColumnParentHeaderText,
|
|
188
213
|
name: "groupId"
|
|
189
214
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
@@ -38,7 +38,9 @@ var locale = {
|
|
|
38
38
|
summaryTypeContentText: "\n <div>\n <p>1. The sum of custom column data values to get the total value</p>\n <p>\n 2. The total value is calculated based on a formula from the data source (this total value is not available for export)\n <br />\n The total value of the field columns added to the formula is calculated based on the formula to derive the custom column total. This is typically used when the custom column represents a percentage, such as gross margin percentage\n </p>\n </div>\n ",
|
|
39
39
|
customSummaryDataText: 'Sum of custom column data values to get the total value',
|
|
40
40
|
dataSourceSummaryDataText: 'Total value calculated based on the formula from the data source',
|
|
41
|
-
addFieldText: 'Add Field'
|
|
41
|
+
addFieldText: 'Add Field',
|
|
42
|
+
idTooltip: 'Custom column name is not allowed to be the same as the existing field, if the history has been set with the same name field, it does not support export',
|
|
43
|
+
customColumnNameTextRequired: 'Please enter the custom column name'
|
|
42
44
|
},
|
|
43
45
|
maxWordText: '${headerName} can not exceed ${maxLength} words',
|
|
44
46
|
operationSuccessText: 'Success',
|
|
@@ -35,7 +35,9 @@ var locale = {
|
|
|
35
35
|
summaryTypeContentText: "\n <div>\n <p>1. T\xEDnh t\u1ED5ng gi\xE1 tr\u1ECB d\u1EEF li\u1EC7u c\u1EE7a c\u1ED9t t\xF9y ch\u1EC9nh \u0111\u1EC3 c\xF3 \u0111\u01B0\u1EE3c gi\xE1 tr\u1ECB t\u1ED5ng c\u1ED9ng.</p>\n <p>\n 2. Gi\xE1 tr\u1ECB t\u1ED5ng \u0111\u01B0\u1EE3c t\xEDnh to\xE1n t\u1EEB ngu\u1ED3n d\u1EEF li\u1EC7u d\u1EF1a tr\xEAn c\xF4ng th\u1EE9c t\xEDnh (gi\xE1 tr\u1ECB t\u1ED5ng n\xE0y kh\xF4ng h\u1ED7 tr\u1EE3 xu\u1EA5t).\n <br />\n Gi\xE1 tr\u1ECB t\u1ED5ng c\u1EE7a c\xE1c c\u1ED9t d\u1EEF li\u1EC7u \u0111\u01B0\u1EE3c th\xEAm v\xE0o c\xF4ng th\u1EE9c \u0111\u01B0\u1EE3c t\xEDnh to\xE1n theo c\xF4ng th\u1EE9c \u0111\u1EC3 ra gi\xE1 tr\u1ECB t\u1ED5ng c\u1EE7a c\u1ED9t t\xF9y ch\u1EC9nh, th\u01B0\u1EDDng \u0111\u01B0\u1EE3c \xE1p d\u1EE5ng khi c\u1ED9t t\xF9y ch\u1EC9nh l\xE0 t\u1EF7 l\u1EC7 ph\u1EA7n tr\u0103m, ch\u1EB3ng h\u1EA1n nh\u01B0 t\u1EF7 su\u1EA5t l\u1EE3i nhu\u1EADn g\u1ED9p.\n </p>\n </div>\n ",
|
|
36
36
|
customSummaryDataText: 'Tính tổng giá trị dữ liệu của cột tùy chỉnh để có được giá trị tổng cộng',
|
|
37
37
|
dataSourceSummaryDataText: 'Nguồn dữ liệu tính toán giá trị tổng cộng theo công thức tính toán',
|
|
38
|
-
addFieldText: 'Thêm trường'
|
|
38
|
+
addFieldText: 'Thêm trường',
|
|
39
|
+
idTooltip: 'Tên cột tùy chỉnh không được trùng với tên cột đã có, nếu cột đã có tên trùng đã được thiết lập thì không hỗ trợ xuất',
|
|
40
|
+
customColumnNameTextRequired: 'Vui lòng nhập tên cột tùy chỉnh'
|
|
39
41
|
},
|
|
40
42
|
validate: {
|
|
41
43
|
fieldErrorText: 'Nhập sai trường ${field}'
|
|
@@ -35,7 +35,9 @@ var locale = {
|
|
|
35
35
|
summaryTypeContentText: "\n <div>\n <p>1\u3001\u81EA\u5B9A\u4E49\u5217\u6570\u636E\u503C\u6C42\u548C\u5F97\u51FA\u5408\u8BA1\u503C</p>\n <p>\n 2\u3001\u6570\u636E\u6E90\u6839\u636E\u8BA1\u7B97\u516C\u5F0F\u5F97\u51FA\u5408\u8BA1\u503C(\u8BE5\u5408\u8BA1\u503C\u4E0D\u652F\u6301\u5BFC\u51FA)\n <br />\n \u516C\u5F0F\u4E2D\u6DFB\u52A0\u7684\u5B57\u6BB5\u5217\u6570\u636E\u5408\u8BA1\u503C\u6309\u8BA1\u7B97\u516C\u5F0F\u7B97\u51FA\u81EA\u5B9A\u4E49\u5217\u5408\u8BA1\u503C\uFF0C\u4E00\u822C\u7528\u4E8E\u81EA\u5B9A\u4E49\u5217\u662F\u767E\u5206\u6BD4\u7684\u60C5\u51B5\uFF0C\u6BD4\u5982\u6BDB\u5229\u7387\n </p>\n </div>\n ",
|
|
36
36
|
customSummaryDataText: '自定义列数据值求和得出合计值',
|
|
37
37
|
dataSourceSummaryDataText: '数据源根据计算公式得出合计值',
|
|
38
|
-
addFieldText: '添加字段'
|
|
38
|
+
addFieldText: '添加字段',
|
|
39
|
+
idTooltip: '自定义列名不允许和已有字段重复,如果历史已经设置的重名字段不支持导出',
|
|
40
|
+
customColumnNameTextRequired: '请输入自定义列名'
|
|
39
41
|
},
|
|
40
42
|
validate: {
|
|
41
43
|
fieldErrorText: '${field}输入错误'
|
|
@@ -35,7 +35,9 @@ var locale = {
|
|
|
35
35
|
summaryTypeContentText: "\n <div>\n <p>1\u3001\u81EA\u5B9A\u7FA9\u5217\u6578\u64DA\u503C\u6C42\u548C\u5F97\u51FA\u5408\u8A08\u503C</p>\n <p>\n 2\u3001\u6578\u64DA\u6E90\u6839\u64DA\u8A08\u7B97\u516C\u5F0F\u5F97\u51FA\u7E3D\u8A08\u503C(\u8A72\u7E3D\u8A08\u503C\u4E0D\u652F\u63F4\u5C0E\u51FA)\n <br />\n \u516C\u5F0F\u4E2D\u6DFB\u52A0\u7684\u5B57\u6BB5\u5217\u6578\u64DA\u7E3D\u8A08\u503C\u6703\u6309\u8A08\u7B97\u516C\u5F0F\u5F97\u51FA\u81EA\u5B9A\u7FA9\u5217\u7684\u7E3D\u8A08\u503C\uFF0C\u6B64\u65B9\u6CD5\u901A\u5E38\u7528\u65BC\u81EA\u5B9A\u7FA9\u5217\u70BA\u767E\u5206\u6BD4\u7684\u60C5\u6CC1\uFF0C\u4F8B\u5982\u6BDB\u5229\u7387\n </p>\n </div>\n ",
|
|
36
36
|
customSummaryDataText: '自定義列數據值求和得出合計值',
|
|
37
37
|
dataSourceSummaryDataText: '數據源根據計算公式得出合計值',
|
|
38
|
-
addFieldText: '添加字段'
|
|
38
|
+
addFieldText: '添加字段',
|
|
39
|
+
idTooltip: '自定義列名不允許與已有字段重複,如果歷史已經設置的重名字段不支持導出',
|
|
40
|
+
customColumnNameTextRequired: '請輸入自定義列名'
|
|
39
41
|
},
|
|
40
42
|
validate: {
|
|
41
43
|
fieldErrorText: '${field}輸入錯誤'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lemon-fe/components",
|
|
3
|
-
"version": "1.4.22-alpha.
|
|
3
|
+
"version": "1.4.22-alpha.2",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"registry": "https://registry.npmjs.org"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "b558090241f16b9e2be6079f6d8a8fad1e212cb7"
|
|
62
62
|
}
|