@lemon-fe/components 1.6.4 → 1.6.5
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.d.ts +1 -0
- package/es/data-grid/components/custom-panel/field-modal.js +9 -3
- package/es/data-grid/components/custom-panel/index.d.ts +1 -0
- package/es/data-grid/components/custom-panel/index.js +4 -2
- package/es/data-grid/components/custom-panel/typings.d.ts +1 -0
- package/es/data-grid/index.js +2 -1
- package/es/data-grid/locale/en_US.js +2 -1
- package/es/data-grid/locale/id.js +2 -1
- package/es/data-grid/locale/locale.d.ts +1 -0
- package/es/data-grid/locale/vi.js +2 -1
- package/es/data-grid/locale/zh_CN.js +2 -1
- package/es/data-grid/locale/zh_Hant_HK.js +2 -1
- package/es/data-grid/typings.d.ts +4 -0
- package/package.json +2 -2
|
@@ -29,7 +29,8 @@ export default function FieldModal(props) {
|
|
|
29
29
|
enableSummary = props.enableSummary,
|
|
30
30
|
groups = props.groups,
|
|
31
31
|
locale = props.locale,
|
|
32
|
-
supportSelectDataFormat = props.supportSelectDataFormat
|
|
32
|
+
supportSelectDataFormat = props.supportSelectDataFormat,
|
|
33
|
+
enableCustomColumnSync = props.enableCustomColumnSync;
|
|
33
34
|
var _useState = useState(false),
|
|
34
35
|
_useState2 = _slicedToArray(_useState, 2),
|
|
35
36
|
open = _useState2[0],
|
|
@@ -118,7 +119,8 @@ export default function FieldModal(props) {
|
|
|
118
119
|
summaryType: 1,
|
|
119
120
|
decimalPlaces: 2,
|
|
120
121
|
groupId: undefined,
|
|
121
|
-
dataFormatType: supportSelectDataFormat ? 'number' : undefined
|
|
122
|
+
dataFormatType: supportSelectDataFormat ? 'number' : undefined,
|
|
123
|
+
syncColumn: false
|
|
122
124
|
});
|
|
123
125
|
}
|
|
124
126
|
} else {
|
|
@@ -282,7 +284,11 @@ export default function FieldModal(props) {
|
|
|
282
284
|
label: fieldModal.dataSourceSummaryDataText,
|
|
283
285
|
value: 2
|
|
284
286
|
}]
|
|
285
|
-
}))) : null
|
|
287
|
+
}))) : null, enableCustomColumnSync ? /*#__PURE__*/React.createElement(Form.Item, {
|
|
288
|
+
name: "syncColumn",
|
|
289
|
+
label: " ",
|
|
290
|
+
valuePropName: "checked"
|
|
291
|
+
}, /*#__PURE__*/React.createElement(Checkbox, null, fieldModal.syncColumnText)) : null))), /*#__PURE__*/React.createElement("div", {
|
|
286
292
|
className: prefix('column-panel-modal-gutter')
|
|
287
293
|
}), /*#__PURE__*/React.createElement("div", {
|
|
288
294
|
className: prefix('column-panel-modal-right')
|
|
@@ -31,7 +31,8 @@ export default function CustomColumnPanel(params) {
|
|
|
31
31
|
enableSave = params.enableSave,
|
|
32
32
|
enableSummary = params.enableSummary,
|
|
33
33
|
locale = params.locale,
|
|
34
|
-
customColumnPanelExtra = params.customColumnPanelExtra
|
|
34
|
+
customColumnPanelExtra = params.customColumnPanelExtra,
|
|
35
|
+
enableCustomColumnSync = params.enableCustomColumnSync;
|
|
35
36
|
var _useState = useState(false),
|
|
36
37
|
_useState2 = _slicedToArray(_useState, 2),
|
|
37
38
|
searching = _useState2[0],
|
|
@@ -428,6 +429,7 @@ export default function CustomColumnPanel(params) {
|
|
|
428
429
|
grid.setField(value);
|
|
429
430
|
},
|
|
430
431
|
locale: locale,
|
|
431
|
-
supportSelectDataFormat: customColumnPanelExtra === null || customColumnPanelExtra === void 0 ? void 0 : customColumnPanelExtra.supportSelectDataFormat
|
|
432
|
+
supportSelectDataFormat: customColumnPanelExtra === null || customColumnPanelExtra === void 0 ? void 0 : customColumnPanelExtra.supportSelectDataFormat,
|
|
433
|
+
enableCustomColumnSync: enableCustomColumnSync
|
|
432
434
|
}));
|
|
433
435
|
}
|
package/es/data-grid/index.js
CHANGED
|
@@ -205,7 +205,8 @@ var InternalDataGrid = /*#__PURE__*/function (_Component) {
|
|
|
205
205
|
enableSave: !!_this.props.customColumnPanelStorage,
|
|
206
206
|
enableSummary: _this.isClientMode() || _this.props.enableCustomColumnSummary,
|
|
207
207
|
locale: _this.props.locale,
|
|
208
|
-
customColumnPanelExtra: _this.props.customColumnPanelExtra
|
|
208
|
+
customColumnPanelExtra: _this.props.customColumnPanelExtra,
|
|
209
|
+
enableCustomColumnSync: _this.props.enableCustomColumnSync
|
|
209
210
|
}
|
|
210
211
|
}]
|
|
211
212
|
});
|
|
@@ -47,7 +47,8 @@ var locale = {
|
|
|
47
47
|
customColumnNameTextRequired: 'Please enter the custom column name',
|
|
48
48
|
customColumnDataFormatTypeText: 'Data Format',
|
|
49
49
|
customColumnDataFormatTypeOptionsNumberText: 'Number',
|
|
50
|
-
customColumnDataFormatTypeOptionsPercentageText: 'Percentage'
|
|
50
|
+
customColumnDataFormatTypeOptionsPercentageText: 'Percentage',
|
|
51
|
+
syncColumnText: 'Sync this custom column with all other users'
|
|
51
52
|
},
|
|
52
53
|
maxWordText: '${headerName} can not exceed ${maxLength} words',
|
|
53
54
|
operationSuccessText: 'Success',
|
|
@@ -44,7 +44,8 @@ var locale = {
|
|
|
44
44
|
customColumnNameTextRequired: 'Silakan masukkan nama kolom kustom',
|
|
45
45
|
customColumnDataFormatTypeText: 'Format data',
|
|
46
46
|
customColumnDataFormatTypeOptionsNumberText: 'Angka',
|
|
47
|
-
customColumnDataFormatTypeOptionsPercentageText: 'Persentase'
|
|
47
|
+
customColumnDataFormatTypeOptionsPercentageText: 'Persentase',
|
|
48
|
+
syncColumnText: 'Sinkronkan kolom kustom ini dengan semua pengguna lain'
|
|
48
49
|
},
|
|
49
50
|
validate: {
|
|
50
51
|
fieldErrorText: 'Bidang ${field} salah dimasukkan'
|
|
@@ -27,6 +27,7 @@ export interface DataGridLocale {
|
|
|
27
27
|
customColumnDataFormatTypeText: string;
|
|
28
28
|
customColumnDataFormatTypeOptionsNumberText: string;
|
|
29
29
|
customColumnDataFormatTypeOptionsPercentageText: string;
|
|
30
|
+
syncColumnText: string;
|
|
30
31
|
};
|
|
31
32
|
maxWordText: string;
|
|
32
33
|
operationSuccessText: string;
|
|
@@ -44,7 +44,8 @@ var locale = {
|
|
|
44
44
|
customColumnNameTextRequired: 'Vui lòng nhập tên cột tùy chỉnh',
|
|
45
45
|
customColumnDataFormatTypeText: 'Định dạng dữ liệu',
|
|
46
46
|
customColumnDataFormatTypeOptionsNumberText: 'Số',
|
|
47
|
-
customColumnDataFormatTypeOptionsPercentageText: 'Phần trăm'
|
|
47
|
+
customColumnDataFormatTypeOptionsPercentageText: 'Phần trăm',
|
|
48
|
+
syncColumnText: 'Đồng bộ cột tùy chỉnh này cho tất cả người dùng khác'
|
|
48
49
|
},
|
|
49
50
|
validate: {
|
|
50
51
|
fieldErrorText: 'Nhập sai trường ${field}'
|
|
@@ -44,7 +44,8 @@ var locale = {
|
|
|
44
44
|
customColumnNameTextRequired: '请输入自定义列名',
|
|
45
45
|
customColumnDataFormatTypeText: '数据格式',
|
|
46
46
|
customColumnDataFormatTypeOptionsNumberText: '数值',
|
|
47
|
-
customColumnDataFormatTypeOptionsPercentageText: '百分比'
|
|
47
|
+
customColumnDataFormatTypeOptionsPercentageText: '百分比',
|
|
48
|
+
syncColumnText: '同步该自定义列给所有其他用户'
|
|
48
49
|
},
|
|
49
50
|
validate: {
|
|
50
51
|
fieldErrorText: '${field}输入错误'
|
|
@@ -44,7 +44,8 @@ var locale = {
|
|
|
44
44
|
customColumnNameTextRequired: '請輸入自定義列名',
|
|
45
45
|
customColumnDataFormatTypeText: '數據格式',
|
|
46
46
|
customColumnDataFormatTypeOptionsNumberText: '數值',
|
|
47
|
-
customColumnDataFormatTypeOptionsPercentageText: '百分比'
|
|
47
|
+
customColumnDataFormatTypeOptionsPercentageText: '百分比',
|
|
48
|
+
syncColumnText: '同步該自定義列給所有其他用戶'
|
|
48
49
|
},
|
|
49
50
|
validate: {
|
|
50
51
|
fieldErrorText: '${field}輸入錯誤'
|
|
@@ -299,4 +299,8 @@ export interface DataGridProps<TData> extends Omit<AgGridReactProps<TData>, 'row
|
|
|
299
299
|
* @depscription 启用预估初始列宽 启用后根据字符长度计算宽度,如果列传入了initialWidth,取两者较大值
|
|
300
300
|
*/
|
|
301
301
|
enableEstimateInitialColumnWidth?: boolean;
|
|
302
|
+
/**
|
|
303
|
+
* @depscription 启用定制列同步给其他用户
|
|
304
|
+
*/
|
|
305
|
+
enableCustomColumnSync?: boolean;
|
|
302
306
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lemon-fe/components",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.5",
|
|
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": "6d2b15ab78f95a365fee40890d14ec1f37f0b3e0"
|
|
62
62
|
}
|