@kdcloudjs/kdesign 1.7.68-stable.6 → 1.7.68-stable.8
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/CHANGELOG.md +162 -0
- package/LICENSE +4 -7
- package/dist/kdesign-complete.less +2 -1
- package/dist/kdesign.css +2 -2
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +9432 -8763
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +2 -2
- package/dist/kdesign.min.js +11 -11
- package/dist/kdesign.min.js.map +1 -1
- package/es/locale/en-US.d.ts +123 -0
- package/es/locale/en-US.js +123 -0
- package/es/locale/locale.d.ts +4 -1
- package/es/locale/zh-CN.d.ts +1 -0
- package/es/locale/zh-CN.js +1 -0
- package/es/pagination/pagination.js +1 -1
- package/es/pagination/style/index.css +1 -1
- package/es/pagination/style/index.less +1 -1
- package/es/pagination/style/token.less +1 -0
- package/es/table/api.js +6 -1
- package/es/table/feature/useRowDrag.d.ts +1 -1
- package/es/table/feature/useRowDrag.js +2 -4
- package/es/table/interface.d.ts +1 -0
- package/es/table/table.js +1 -1
- package/lib/locale/en-US.d.ts +123 -0
- package/lib/locale/en-US.js +130 -0
- package/lib/locale/locale.d.ts +4 -1
- package/lib/locale/zh-CN.d.ts +1 -0
- package/lib/locale/zh-CN.js +1 -0
- package/lib/pagination/pagination.js +1 -1
- package/lib/pagination/style/index.css +1 -1
- package/lib/pagination/style/index.less +1 -1
- package/lib/pagination/style/token.less +1 -0
- package/lib/table/api.js +6 -1
- package/lib/table/feature/useRowDrag.d.ts +1 -1
- package/lib/table/feature/useRowDrag.js +2 -4
- package/lib/table/interface.d.ts +1 -0
- package/lib/table/table.js +1 -1
- package/package.json +2 -3
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
declare const locale: {
|
|
2
|
+
locale: string;
|
|
3
|
+
'DatePicker.placeholder': string;
|
|
4
|
+
'DatePicker.yearPlaceholder': string;
|
|
5
|
+
'DatePicker.quarterPlaceholder': string;
|
|
6
|
+
'DatePicker.monthPlaceholder': string;
|
|
7
|
+
'DatePicker.weekPlaceholder': string;
|
|
8
|
+
'DatePicker.timePlaceholder': string;
|
|
9
|
+
'DatePicker.now': string;
|
|
10
|
+
'DatePicker.confrim': string;
|
|
11
|
+
'DatePicker.today': string;
|
|
12
|
+
'DatePicker.month': string;
|
|
13
|
+
'DatePicker.year': string;
|
|
14
|
+
'DatePicker.weekTitle': string[];
|
|
15
|
+
'DatePicker.monthTitle': string[];
|
|
16
|
+
'DatePicker.rangePlaceholder': string[];
|
|
17
|
+
'DatePicker.rangeYearPlaceholder': string[];
|
|
18
|
+
'DatePicker.rangeMonthPlaceholder': string[];
|
|
19
|
+
'DatePicker.rangeWeekPlaceholder': string[];
|
|
20
|
+
'DatePicker.rangeQuarterPlaceholder': string[];
|
|
21
|
+
'DatePicker.rangeTimePlaceholder': string[];
|
|
22
|
+
'global.selectholder': string;
|
|
23
|
+
'global.placeholder': string;
|
|
24
|
+
'global.cancel': string;
|
|
25
|
+
'global.confirm': string;
|
|
26
|
+
'global.emptyText': string;
|
|
27
|
+
'Button.text': string;
|
|
28
|
+
'Progress.circleLoadingDesc': string;
|
|
29
|
+
'Progress.loading': string;
|
|
30
|
+
'Progress.fail': string;
|
|
31
|
+
'Progress.success': string;
|
|
32
|
+
'Pagination.prevPage': string;
|
|
33
|
+
'Pagination.nextPage': string;
|
|
34
|
+
'Pagination.total': string;
|
|
35
|
+
'Pagination.page': string;
|
|
36
|
+
'Pagination.row': string;
|
|
37
|
+
'Pagination.first': string;
|
|
38
|
+
'Pagination.last': string;
|
|
39
|
+
'Pagination.perPage': string;
|
|
40
|
+
'Pagination.order': string;
|
|
41
|
+
'Pagination.forward': string;
|
|
42
|
+
'Pagination.backward': string;
|
|
43
|
+
'Pagination.confirm': string;
|
|
44
|
+
'Transfer.selectAll': string;
|
|
45
|
+
'Transfer.searchPlaceholder': string[];
|
|
46
|
+
'Transfer.leftTitle': string;
|
|
47
|
+
'Transfer.rightTitle': string;
|
|
48
|
+
'Transfer.emptyTip': string;
|
|
49
|
+
'Modal.okText': string;
|
|
50
|
+
'Modal.cancelText': string;
|
|
51
|
+
'Modal.iknowText': string;
|
|
52
|
+
'Empty.emptyText': string;
|
|
53
|
+
'Empty.searchEmptyText': string;
|
|
54
|
+
'QuickSearch.placeholder': string;
|
|
55
|
+
'QuickSearch.desc': string[];
|
|
56
|
+
'QuickSearch.nplDesc': string;
|
|
57
|
+
'QuickSearch.emptyTip': string;
|
|
58
|
+
'QuickSearch.or': string;
|
|
59
|
+
'CityPicker.domestic': string;
|
|
60
|
+
'CityPicker.common': string;
|
|
61
|
+
'CityPicker.emptyText': string;
|
|
62
|
+
'CityPicker.commonEmptyText': string;
|
|
63
|
+
'CityPicker.tabsDomestic': string;
|
|
64
|
+
'CityPicker.tabsInternation': string;
|
|
65
|
+
'CityPicker.title': string;
|
|
66
|
+
'ColorPicker.followFunctionalColor': string;
|
|
67
|
+
'Search.placeholder': string;
|
|
68
|
+
'Search.desc': string[];
|
|
69
|
+
'Search.nplDesc': string;
|
|
70
|
+
'Search.emptyTip': string;
|
|
71
|
+
'Search.viewMoreResult': string;
|
|
72
|
+
'Search.range': string;
|
|
73
|
+
'Search.or': string;
|
|
74
|
+
'Filter.filterCondition': string;
|
|
75
|
+
'Filter.commonCondition': string;
|
|
76
|
+
'Filter.schemeQuery': string;
|
|
77
|
+
'Filter.spread': string;
|
|
78
|
+
'Filter.packup': string;
|
|
79
|
+
'Filter.filter': string;
|
|
80
|
+
'Filter.scheme': string;
|
|
81
|
+
'Filter.unlimited': string;
|
|
82
|
+
'Filter.commonScheme': string;
|
|
83
|
+
'Filter.advancedQuery': string;
|
|
84
|
+
'Filter.schemeName': string;
|
|
85
|
+
'Filter.addCondition': string;
|
|
86
|
+
'Filter.saveScheme': string;
|
|
87
|
+
'Filter.query': string;
|
|
88
|
+
'Filter.and': string;
|
|
89
|
+
'Filter.settings': string;
|
|
90
|
+
'Filter.schemeNamePlaceholder': string;
|
|
91
|
+
'Form.requiredMessage': string;
|
|
92
|
+
'Table.contain': string;
|
|
93
|
+
'Table.notContain': string;
|
|
94
|
+
'Table.equal': string;
|
|
95
|
+
'Table.notEqual': string;
|
|
96
|
+
'Table.isNull': string;
|
|
97
|
+
'Table.notIsNull': string;
|
|
98
|
+
'Table.resetFilter': string;
|
|
99
|
+
'Table.confirmFilter': string;
|
|
100
|
+
'Select.selectAll': string;
|
|
101
|
+
'Select.seleted': string;
|
|
102
|
+
'Select.total': string;
|
|
103
|
+
'Signature.clickToSign': string;
|
|
104
|
+
'Signature.pleaseWriteHere': string;
|
|
105
|
+
'Signature.okText': string;
|
|
106
|
+
'Signature.cancelText': string;
|
|
107
|
+
'Signature.handwrittenSignature': string;
|
|
108
|
+
'QRCode.qrCodeExpired': string;
|
|
109
|
+
'QRCode.clickRefresh': string;
|
|
110
|
+
'Cascader.total': string;
|
|
111
|
+
'BaseData.total': string;
|
|
112
|
+
'BaseData.history': string;
|
|
113
|
+
'BaseData.favorites': string;
|
|
114
|
+
'Image.close': string;
|
|
115
|
+
'Upload.reUpload': string;
|
|
116
|
+
'Upload.uploading': string;
|
|
117
|
+
'Upload.fail': string;
|
|
118
|
+
'Upload.delete': string;
|
|
119
|
+
'Notification.title': string;
|
|
120
|
+
'TreeSelect.total': string;
|
|
121
|
+
'ImageCropper.okText': string;
|
|
122
|
+
};
|
|
123
|
+
export default locale;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
var locale = {
|
|
2
|
+
locale: 'en-US',
|
|
3
|
+
'DatePicker.placeholder': 'select date',
|
|
4
|
+
'DatePicker.yearPlaceholder': 'select year',
|
|
5
|
+
'DatePicker.quarterPlaceholder': 'select quarter',
|
|
6
|
+
'DatePicker.monthPlaceholder': 'select month',
|
|
7
|
+
'DatePicker.weekPlaceholder': 'select week',
|
|
8
|
+
'DatePicker.timePlaceholder': 'select time',
|
|
9
|
+
'DatePicker.now': 'Now',
|
|
10
|
+
'DatePicker.confrim': 'Ok',
|
|
11
|
+
'DatePicker.today': 'Today',
|
|
12
|
+
'DatePicker.month': 'Month',
|
|
13
|
+
'DatePicker.year': '',
|
|
14
|
+
'DatePicker.weekTitle': ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
|
|
15
|
+
'DatePicker.monthTitle': ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
|
16
|
+
'DatePicker.rangePlaceholder': ['Start date', 'End date'],
|
|
17
|
+
'DatePicker.rangeYearPlaceholder': ['Start year', 'End year'],
|
|
18
|
+
'DatePicker.rangeMonthPlaceholder': ['Start month', 'End month'],
|
|
19
|
+
'DatePicker.rangeWeekPlaceholder': ['Start week', 'End week'],
|
|
20
|
+
'DatePicker.rangeQuarterPlaceholder': ['Start quarter', 'End quarter'],
|
|
21
|
+
'DatePicker.rangeTimePlaceholder': ['Start time', 'End time'],
|
|
22
|
+
'global.selectholder': 'Please select',
|
|
23
|
+
'global.placeholder': 'Please enter search content',
|
|
24
|
+
'global.cancel': 'Cancel',
|
|
25
|
+
'global.confirm': 'Ok',
|
|
26
|
+
'global.emptyText': 'No data',
|
|
27
|
+
'Button.text': 'Button',
|
|
28
|
+
'Progress.circleLoadingDesc': 'Loading...',
|
|
29
|
+
'Progress.loading': 'Loading...',
|
|
30
|
+
'Progress.fail': 'Load failed',
|
|
31
|
+
'Progress.success': 'Load successful',
|
|
32
|
+
'Pagination.prevPage': 'Previous',
|
|
33
|
+
'Pagination.nextPage': 'Next',
|
|
34
|
+
'Pagination.total': 'Total {page} pages {row} items',
|
|
35
|
+
'Pagination.page': 'Total {page} pages',
|
|
36
|
+
'Pagination.row': 'Total {row} items',
|
|
37
|
+
'Pagination.first': 'First page',
|
|
38
|
+
'Pagination.last': 'Last page',
|
|
39
|
+
'Pagination.perPage': '{size} /page',
|
|
40
|
+
'Pagination.order': 'Page {order}',
|
|
41
|
+
'Pagination.forward': 'Forward 5 pages',
|
|
42
|
+
'Pagination.backward': 'Backward 5 pages',
|
|
43
|
+
'Pagination.confirm': 'GO',
|
|
44
|
+
'Transfer.selectAll': 'Select all',
|
|
45
|
+
'Transfer.searchPlaceholder': ['Please enter search content', 'Please enter search content'],
|
|
46
|
+
'Transfer.leftTitle': 'Available list',
|
|
47
|
+
'Transfer.rightTitle': 'Selected list',
|
|
48
|
+
'Transfer.emptyTip': 'No data',
|
|
49
|
+
'Modal.okText': 'Ok',
|
|
50
|
+
'Modal.cancelText': 'Cancel',
|
|
51
|
+
'Modal.iknowText': 'I know',
|
|
52
|
+
'Empty.emptyText': 'No data',
|
|
53
|
+
'Empty.searchEmptyText': 'No results found',
|
|
54
|
+
'QuickSearch.placeholder': 'Please enter search content',
|
|
55
|
+
'QuickSearch.desc': ["Space means 'or', Enter means 'and'"],
|
|
56
|
+
'QuickSearch.nplDesc': 'Smart search',
|
|
57
|
+
'QuickSearch.emptyTip': 'No data',
|
|
58
|
+
'QuickSearch.or': 'Or',
|
|
59
|
+
'CityPicker.domestic': 'Domestic',
|
|
60
|
+
'CityPicker.common': 'Common',
|
|
61
|
+
'CityPicker.emptyText': 'No data',
|
|
62
|
+
'CityPicker.commonEmptyText': 'No common cities',
|
|
63
|
+
'CityPicker.tabsDomestic': 'Domestic',
|
|
64
|
+
'CityPicker.tabsInternation': 'International/China HK-MO-TW',
|
|
65
|
+
'CityPicker.title': 'City',
|
|
66
|
+
'ColorPicker.followFunctionalColor': 'Follow theme color',
|
|
67
|
+
'Search.placeholder': 'Please enter search content',
|
|
68
|
+
'Search.desc': ["Space means 'or', Enter means 'and'"],
|
|
69
|
+
'Search.nplDesc': 'Smart search',
|
|
70
|
+
'Search.emptyTip': 'No data',
|
|
71
|
+
'Search.viewMoreResult': "See more results for '{inputValue}'",
|
|
72
|
+
'Search.range': 'scope',
|
|
73
|
+
'Search.or': 'Or',
|
|
74
|
+
'Filter.filterCondition': 'Filter condition',
|
|
75
|
+
'Filter.commonCondition': 'Common conditions',
|
|
76
|
+
'Filter.schemeQuery': 'Scheme query',
|
|
77
|
+
'Filter.spread': 'Expand',
|
|
78
|
+
'Filter.packup': 'Collapse',
|
|
79
|
+
'Filter.filter': '',
|
|
80
|
+
'Filter.scheme': 'Scheme',
|
|
81
|
+
'Filter.unlimited': 'Unlimited',
|
|
82
|
+
'Filter.commonScheme': 'Common schemes',
|
|
83
|
+
'Filter.advancedQuery': 'Advanced query',
|
|
84
|
+
'Filter.schemeName': 'Scheme name',
|
|
85
|
+
'Filter.addCondition': 'Add condition',
|
|
86
|
+
'Filter.saveScheme': 'Save scheme',
|
|
87
|
+
'Filter.query': 'Query',
|
|
88
|
+
'Filter.and': 'And',
|
|
89
|
+
'Filter.settings': 'Settings',
|
|
90
|
+
'Filter.schemeNamePlaceholder': 'Please enter scheme name',
|
|
91
|
+
'Form.requiredMessage': 'Please enter your ',
|
|
92
|
+
'Table.contain': 'Contain',
|
|
93
|
+
'Table.notContain': 'Do not contain',
|
|
94
|
+
'Table.equal': 'Equal',
|
|
95
|
+
'Table.notEqual': 'Not equal',
|
|
96
|
+
'Table.isNull': 'Is null',
|
|
97
|
+
'Table.notIsNull': 'Is not null',
|
|
98
|
+
'Table.resetFilter': 'Reset',
|
|
99
|
+
'Table.confirmFilter': 'Ok',
|
|
100
|
+
'Select.selectAll': 'Select all',
|
|
101
|
+
'Select.seleted': 'Selected {size} items',
|
|
102
|
+
'Select.total': 'Total {total} items',
|
|
103
|
+
'Signature.clickToSign': 'Click to sign',
|
|
104
|
+
'Signature.pleaseWriteHere': 'Please write your signature horizontally here',
|
|
105
|
+
'Signature.okText': 'Ok',
|
|
106
|
+
'Signature.cancelText': 'Cancel',
|
|
107
|
+
'Signature.handwrittenSignature': 'Handwritten Signature',
|
|
108
|
+
'QRCode.qrCodeExpired': 'QR code expired',
|
|
109
|
+
'QRCode.clickRefresh': 'Refresh',
|
|
110
|
+
'Cascader.total': 'Total {total} items',
|
|
111
|
+
'BaseData.total': 'Total {total} items',
|
|
112
|
+
'BaseData.history': 'History',
|
|
113
|
+
'BaseData.favorites': 'Favorites',
|
|
114
|
+
'Image.close': 'Close',
|
|
115
|
+
'Upload.reUpload': 'Re-upload',
|
|
116
|
+
'Upload.uploading': 'Uploading',
|
|
117
|
+
'Upload.fail': 'Upload failed',
|
|
118
|
+
'Upload.delete': 'Delete',
|
|
119
|
+
'Notification.title': 'System Notification',
|
|
120
|
+
'TreeSelect.total': 'Total {total} items',
|
|
121
|
+
'ImageCropper.okText': 'Confirm Crop'
|
|
122
|
+
};
|
|
123
|
+
export default locale;
|
package/es/locale/locale.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ declare class LocaleCache {
|
|
|
45
45
|
'Pagination.order': string;
|
|
46
46
|
'Pagination.forward': string;
|
|
47
47
|
'Pagination.backward': string;
|
|
48
|
+
'Pagination.confirm': string;
|
|
48
49
|
'Transfer.selectAll': string;
|
|
49
50
|
'Transfer.searchPlaceholder': string[];
|
|
50
51
|
'Transfer.leftTitle': string;
|
|
@@ -62,7 +63,9 @@ declare class LocaleCache {
|
|
|
62
63
|
'QuickSearch.or': string;
|
|
63
64
|
'CityPicker.domestic': string;
|
|
64
65
|
'CityPicker.common': string;
|
|
65
|
-
'CityPicker.emptyText': string;
|
|
66
|
+
'CityPicker.emptyText': string; /**
|
|
67
|
+
* 获取所有语言包数据
|
|
68
|
+
*/
|
|
66
69
|
'CityPicker.commonEmptyText': string;
|
|
67
70
|
'CityPicker.tabsDomestic': string;
|
|
68
71
|
'CityPicker.tabsInternation': string;
|
package/es/locale/zh-CN.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ declare const locale: {
|
|
|
19
19
|
'Pagination.order': string;
|
|
20
20
|
'Pagination.forward': string;
|
|
21
21
|
'Pagination.backward': string;
|
|
22
|
+
'Pagination.confirm': string;
|
|
22
23
|
'Transfer.selectAll': string;
|
|
23
24
|
'Transfer.searchPlaceholder': string[];
|
|
24
25
|
'Transfer.leftTitle': string;
|
package/es/locale/zh-CN.js
CHANGED
|
@@ -23,6 +23,7 @@ var locale = _extends(_extends({
|
|
|
23
23
|
'Pagination.order': '第 {order} 页',
|
|
24
24
|
'Pagination.forward': '向前 5 页',
|
|
25
25
|
'Pagination.backward': '向后 5 页',
|
|
26
|
+
'Pagination.confirm': '确定',
|
|
26
27
|
'Transfer.selectAll': '全选',
|
|
27
28
|
'Transfer.searchPlaceholder': ['请输入需要搜索的内容', '请输入需要搜索的内容'],
|
|
28
29
|
'Transfer.leftTitle': '可选列表',
|
|
@@ -378,7 +378,7 @@ var Pagination = function Pagination(props) {
|
|
|
378
378
|
className: "".concat(prefixCls, "-jumper-button"),
|
|
379
379
|
disabled: disabled,
|
|
380
380
|
onClick: handleConfirmCurrentPage
|
|
381
|
-
},
|
|
381
|
+
}, paginationLangMsg.confirm)), showSizeSelector && /*#__PURE__*/React.createElement("div", {
|
|
382
382
|
className: "".concat(prefixCls, "-options")
|
|
383
383
|
}, locale.getLangMsg('Pagination', 'perPage', {
|
|
384
384
|
size: /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
@@ -696,7 +696,7 @@
|
|
|
696
696
|
list-style: none;
|
|
697
697
|
-webkit-font-feature-settings: 'tnum';
|
|
698
698
|
font-feature-settings: 'tnum';
|
|
699
|
-
|
|
699
|
+
padding: 0 var(--kd-c-pagination-jumper-spacing-padding-horizontal, 4px);
|
|
700
700
|
height: var(--kd-c-pagination-sizing-square, 24px);
|
|
701
701
|
margin-left: var(--kd-c-pagination-button-spacing, 4px);
|
|
702
702
|
display: -webkit-inline-box;
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
// spacing
|
|
25
25
|
@pagination-button-spacing: var(~'@{pagination-custom-prefix}-button-spacing', 4px);
|
|
26
26
|
@pagination-dropdown-item-spacing-horizontal: var(~'@{pagination-custom-prefix}-dropdown-item-spacing-padding-horizontal', 24px);
|
|
27
|
+
@pagination-jumper-spacing: var(~'@{pagination-custom-prefix}-jumper-spacing-padding-horizontal', 4px);
|
|
27
28
|
|
|
28
29
|
|
|
29
30
|
|
package/es/table/api.js
CHANGED
|
@@ -132,6 +132,10 @@ export default function getApi(pipelineRef) {
|
|
|
132
132
|
var pipeline = pipelineRef.current;
|
|
133
133
|
return (_a = pipeline.ref) === null || _a === void 0 ? void 0 : _a.current.rowHeightManager.cache;
|
|
134
134
|
}
|
|
135
|
+
function getFeatureApi(featureName) {
|
|
136
|
+
var pipeline = pipelineRef.current;
|
|
137
|
+
return pipeline.getFeatureApi(featureName);
|
|
138
|
+
}
|
|
135
139
|
return {
|
|
136
140
|
getColumns: getColumns,
|
|
137
141
|
getDataSource: getDataSource,
|
|
@@ -139,6 +143,7 @@ export default function getApi(pipelineRef) {
|
|
|
139
143
|
clearRangeSelection: clearRangeSelection,
|
|
140
144
|
ensureRowIndexVisible: ensureRowIndexVisible,
|
|
141
145
|
ensureColumnVisible: ensureColumnVisible,
|
|
142
|
-
getHeightCache: getHeightCache
|
|
146
|
+
getHeightCache: getHeightCache,
|
|
147
|
+
getFeatureApi: getFeatureApi
|
|
143
148
|
};
|
|
144
149
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TableRowDrag, TablePipeline } from '../interface';
|
|
2
|
-
declare function useRowDrag(pipeline: TablePipeline, rowDrag?: TableRowDrag
|
|
2
|
+
declare function useRowDrag(pipeline: TablePipeline, rowDrag?: TableRowDrag): void;
|
|
3
3
|
export default useRowDrag;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime-corejs3/helpers/extends";
|
|
2
2
|
import { features } from '@kdcloudjs/table';
|
|
3
|
-
function useRowDrag(pipeline, rowDrag
|
|
3
|
+
function useRowDrag(pipeline, rowDrag) {
|
|
4
4
|
if (rowDrag) {
|
|
5
|
-
pipeline.use(features.rowDrag(_extends({
|
|
6
|
-
rowHeight: estimatedRowHeight
|
|
7
|
-
}, rowDrag)));
|
|
5
|
+
pipeline.use(features.rowDrag(_extends({}, rowDrag)));
|
|
8
6
|
}
|
|
9
7
|
}
|
|
10
8
|
export default useRowDrag;
|
package/es/table/interface.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export declare type TableApi = {
|
|
|
18
18
|
getHeightCache: () => number[];
|
|
19
19
|
ensureRowIndexVisible: (rowIndex: number, position?: string | undefined) => void;
|
|
20
20
|
ensureColumnVisible: (code: string) => void;
|
|
21
|
+
getFeatureApi: (featureName: string) => any;
|
|
21
22
|
};
|
|
22
23
|
export declare type TableInstance = {
|
|
23
24
|
api: TableApi;
|
package/es/table/table.js
CHANGED
|
@@ -106,7 +106,7 @@ var Table = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
106
106
|
useRangeSelection(pipeline, rangeSelection);
|
|
107
107
|
useMergeCellHover(pipeline);
|
|
108
108
|
useFooterDataSource(pipeline, footerDataSource);
|
|
109
|
-
useRowDrag(pipeline, rowDrag
|
|
109
|
+
useRowDrag(pipeline, rowDrag);
|
|
110
110
|
/* -------------------------------------------------------------------------- */
|
|
111
111
|
/* after useTablePipeline, merge pipeline.getProps result */
|
|
112
112
|
/* -------------------------------------------------------------------------- */
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
declare const locale: {
|
|
2
|
+
locale: string;
|
|
3
|
+
'DatePicker.placeholder': string;
|
|
4
|
+
'DatePicker.yearPlaceholder': string;
|
|
5
|
+
'DatePicker.quarterPlaceholder': string;
|
|
6
|
+
'DatePicker.monthPlaceholder': string;
|
|
7
|
+
'DatePicker.weekPlaceholder': string;
|
|
8
|
+
'DatePicker.timePlaceholder': string;
|
|
9
|
+
'DatePicker.now': string;
|
|
10
|
+
'DatePicker.confrim': string;
|
|
11
|
+
'DatePicker.today': string;
|
|
12
|
+
'DatePicker.month': string;
|
|
13
|
+
'DatePicker.year': string;
|
|
14
|
+
'DatePicker.weekTitle': string[];
|
|
15
|
+
'DatePicker.monthTitle': string[];
|
|
16
|
+
'DatePicker.rangePlaceholder': string[];
|
|
17
|
+
'DatePicker.rangeYearPlaceholder': string[];
|
|
18
|
+
'DatePicker.rangeMonthPlaceholder': string[];
|
|
19
|
+
'DatePicker.rangeWeekPlaceholder': string[];
|
|
20
|
+
'DatePicker.rangeQuarterPlaceholder': string[];
|
|
21
|
+
'DatePicker.rangeTimePlaceholder': string[];
|
|
22
|
+
'global.selectholder': string;
|
|
23
|
+
'global.placeholder': string;
|
|
24
|
+
'global.cancel': string;
|
|
25
|
+
'global.confirm': string;
|
|
26
|
+
'global.emptyText': string;
|
|
27
|
+
'Button.text': string;
|
|
28
|
+
'Progress.circleLoadingDesc': string;
|
|
29
|
+
'Progress.loading': string;
|
|
30
|
+
'Progress.fail': string;
|
|
31
|
+
'Progress.success': string;
|
|
32
|
+
'Pagination.prevPage': string;
|
|
33
|
+
'Pagination.nextPage': string;
|
|
34
|
+
'Pagination.total': string;
|
|
35
|
+
'Pagination.page': string;
|
|
36
|
+
'Pagination.row': string;
|
|
37
|
+
'Pagination.first': string;
|
|
38
|
+
'Pagination.last': string;
|
|
39
|
+
'Pagination.perPage': string;
|
|
40
|
+
'Pagination.order': string;
|
|
41
|
+
'Pagination.forward': string;
|
|
42
|
+
'Pagination.backward': string;
|
|
43
|
+
'Pagination.confirm': string;
|
|
44
|
+
'Transfer.selectAll': string;
|
|
45
|
+
'Transfer.searchPlaceholder': string[];
|
|
46
|
+
'Transfer.leftTitle': string;
|
|
47
|
+
'Transfer.rightTitle': string;
|
|
48
|
+
'Transfer.emptyTip': string;
|
|
49
|
+
'Modal.okText': string;
|
|
50
|
+
'Modal.cancelText': string;
|
|
51
|
+
'Modal.iknowText': string;
|
|
52
|
+
'Empty.emptyText': string;
|
|
53
|
+
'Empty.searchEmptyText': string;
|
|
54
|
+
'QuickSearch.placeholder': string;
|
|
55
|
+
'QuickSearch.desc': string[];
|
|
56
|
+
'QuickSearch.nplDesc': string;
|
|
57
|
+
'QuickSearch.emptyTip': string;
|
|
58
|
+
'QuickSearch.or': string;
|
|
59
|
+
'CityPicker.domestic': string;
|
|
60
|
+
'CityPicker.common': string;
|
|
61
|
+
'CityPicker.emptyText': string;
|
|
62
|
+
'CityPicker.commonEmptyText': string;
|
|
63
|
+
'CityPicker.tabsDomestic': string;
|
|
64
|
+
'CityPicker.tabsInternation': string;
|
|
65
|
+
'CityPicker.title': string;
|
|
66
|
+
'ColorPicker.followFunctionalColor': string;
|
|
67
|
+
'Search.placeholder': string;
|
|
68
|
+
'Search.desc': string[];
|
|
69
|
+
'Search.nplDesc': string;
|
|
70
|
+
'Search.emptyTip': string;
|
|
71
|
+
'Search.viewMoreResult': string;
|
|
72
|
+
'Search.range': string;
|
|
73
|
+
'Search.or': string;
|
|
74
|
+
'Filter.filterCondition': string;
|
|
75
|
+
'Filter.commonCondition': string;
|
|
76
|
+
'Filter.schemeQuery': string;
|
|
77
|
+
'Filter.spread': string;
|
|
78
|
+
'Filter.packup': string;
|
|
79
|
+
'Filter.filter': string;
|
|
80
|
+
'Filter.scheme': string;
|
|
81
|
+
'Filter.unlimited': string;
|
|
82
|
+
'Filter.commonScheme': string;
|
|
83
|
+
'Filter.advancedQuery': string;
|
|
84
|
+
'Filter.schemeName': string;
|
|
85
|
+
'Filter.addCondition': string;
|
|
86
|
+
'Filter.saveScheme': string;
|
|
87
|
+
'Filter.query': string;
|
|
88
|
+
'Filter.and': string;
|
|
89
|
+
'Filter.settings': string;
|
|
90
|
+
'Filter.schemeNamePlaceholder': string;
|
|
91
|
+
'Form.requiredMessage': string;
|
|
92
|
+
'Table.contain': string;
|
|
93
|
+
'Table.notContain': string;
|
|
94
|
+
'Table.equal': string;
|
|
95
|
+
'Table.notEqual': string;
|
|
96
|
+
'Table.isNull': string;
|
|
97
|
+
'Table.notIsNull': string;
|
|
98
|
+
'Table.resetFilter': string;
|
|
99
|
+
'Table.confirmFilter': string;
|
|
100
|
+
'Select.selectAll': string;
|
|
101
|
+
'Select.seleted': string;
|
|
102
|
+
'Select.total': string;
|
|
103
|
+
'Signature.clickToSign': string;
|
|
104
|
+
'Signature.pleaseWriteHere': string;
|
|
105
|
+
'Signature.okText': string;
|
|
106
|
+
'Signature.cancelText': string;
|
|
107
|
+
'Signature.handwrittenSignature': string;
|
|
108
|
+
'QRCode.qrCodeExpired': string;
|
|
109
|
+
'QRCode.clickRefresh': string;
|
|
110
|
+
'Cascader.total': string;
|
|
111
|
+
'BaseData.total': string;
|
|
112
|
+
'BaseData.history': string;
|
|
113
|
+
'BaseData.favorites': string;
|
|
114
|
+
'Image.close': string;
|
|
115
|
+
'Upload.reUpload': string;
|
|
116
|
+
'Upload.uploading': string;
|
|
117
|
+
'Upload.fail': string;
|
|
118
|
+
'Upload.delete': string;
|
|
119
|
+
'Notification.title': string;
|
|
120
|
+
'TreeSelect.total': string;
|
|
121
|
+
'ImageCropper.okText': string;
|
|
122
|
+
};
|
|
123
|
+
export default locale;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var locale = {
|
|
8
|
+
locale: 'en-US',
|
|
9
|
+
'DatePicker.placeholder': 'select date',
|
|
10
|
+
'DatePicker.yearPlaceholder': 'select year',
|
|
11
|
+
'DatePicker.quarterPlaceholder': 'select quarter',
|
|
12
|
+
'DatePicker.monthPlaceholder': 'select month',
|
|
13
|
+
'DatePicker.weekPlaceholder': 'select week',
|
|
14
|
+
'DatePicker.timePlaceholder': 'select time',
|
|
15
|
+
'DatePicker.now': 'Now',
|
|
16
|
+
'DatePicker.confrim': 'Ok',
|
|
17
|
+
'DatePicker.today': 'Today',
|
|
18
|
+
'DatePicker.month': 'Month',
|
|
19
|
+
'DatePicker.year': '',
|
|
20
|
+
'DatePicker.weekTitle': ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
|
|
21
|
+
'DatePicker.monthTitle': ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
|
22
|
+
'DatePicker.rangePlaceholder': ['Start date', 'End date'],
|
|
23
|
+
'DatePicker.rangeYearPlaceholder': ['Start year', 'End year'],
|
|
24
|
+
'DatePicker.rangeMonthPlaceholder': ['Start month', 'End month'],
|
|
25
|
+
'DatePicker.rangeWeekPlaceholder': ['Start week', 'End week'],
|
|
26
|
+
'DatePicker.rangeQuarterPlaceholder': ['Start quarter', 'End quarter'],
|
|
27
|
+
'DatePicker.rangeTimePlaceholder': ['Start time', 'End time'],
|
|
28
|
+
'global.selectholder': 'Please select',
|
|
29
|
+
'global.placeholder': 'Please enter search content',
|
|
30
|
+
'global.cancel': 'Cancel',
|
|
31
|
+
'global.confirm': 'Ok',
|
|
32
|
+
'global.emptyText': 'No data',
|
|
33
|
+
'Button.text': 'Button',
|
|
34
|
+
'Progress.circleLoadingDesc': 'Loading...',
|
|
35
|
+
'Progress.loading': 'Loading...',
|
|
36
|
+
'Progress.fail': 'Load failed',
|
|
37
|
+
'Progress.success': 'Load successful',
|
|
38
|
+
'Pagination.prevPage': 'Previous',
|
|
39
|
+
'Pagination.nextPage': 'Next',
|
|
40
|
+
'Pagination.total': 'Total {page} pages {row} items',
|
|
41
|
+
'Pagination.page': 'Total {page} pages',
|
|
42
|
+
'Pagination.row': 'Total {row} items',
|
|
43
|
+
'Pagination.first': 'First page',
|
|
44
|
+
'Pagination.last': 'Last page',
|
|
45
|
+
'Pagination.perPage': '{size} /page',
|
|
46
|
+
'Pagination.order': 'Page {order}',
|
|
47
|
+
'Pagination.forward': 'Forward 5 pages',
|
|
48
|
+
'Pagination.backward': 'Backward 5 pages',
|
|
49
|
+
'Pagination.confirm': 'GO',
|
|
50
|
+
'Transfer.selectAll': 'Select all',
|
|
51
|
+
'Transfer.searchPlaceholder': ['Please enter search content', 'Please enter search content'],
|
|
52
|
+
'Transfer.leftTitle': 'Available list',
|
|
53
|
+
'Transfer.rightTitle': 'Selected list',
|
|
54
|
+
'Transfer.emptyTip': 'No data',
|
|
55
|
+
'Modal.okText': 'Ok',
|
|
56
|
+
'Modal.cancelText': 'Cancel',
|
|
57
|
+
'Modal.iknowText': 'I know',
|
|
58
|
+
'Empty.emptyText': 'No data',
|
|
59
|
+
'Empty.searchEmptyText': 'No results found',
|
|
60
|
+
'QuickSearch.placeholder': 'Please enter search content',
|
|
61
|
+
'QuickSearch.desc': ["Space means 'or', Enter means 'and'"],
|
|
62
|
+
'QuickSearch.nplDesc': 'Smart search',
|
|
63
|
+
'QuickSearch.emptyTip': 'No data',
|
|
64
|
+
'QuickSearch.or': 'Or',
|
|
65
|
+
'CityPicker.domestic': 'Domestic',
|
|
66
|
+
'CityPicker.common': 'Common',
|
|
67
|
+
'CityPicker.emptyText': 'No data',
|
|
68
|
+
'CityPicker.commonEmptyText': 'No common cities',
|
|
69
|
+
'CityPicker.tabsDomestic': 'Domestic',
|
|
70
|
+
'CityPicker.tabsInternation': 'International/China HK-MO-TW',
|
|
71
|
+
'CityPicker.title': 'City',
|
|
72
|
+
'ColorPicker.followFunctionalColor': 'Follow theme color',
|
|
73
|
+
'Search.placeholder': 'Please enter search content',
|
|
74
|
+
'Search.desc': ["Space means 'or', Enter means 'and'"],
|
|
75
|
+
'Search.nplDesc': 'Smart search',
|
|
76
|
+
'Search.emptyTip': 'No data',
|
|
77
|
+
'Search.viewMoreResult': "See more results for '{inputValue}'",
|
|
78
|
+
'Search.range': 'scope',
|
|
79
|
+
'Search.or': 'Or',
|
|
80
|
+
'Filter.filterCondition': 'Filter condition',
|
|
81
|
+
'Filter.commonCondition': 'Common conditions',
|
|
82
|
+
'Filter.schemeQuery': 'Scheme query',
|
|
83
|
+
'Filter.spread': 'Expand',
|
|
84
|
+
'Filter.packup': 'Collapse',
|
|
85
|
+
'Filter.filter': '',
|
|
86
|
+
'Filter.scheme': 'Scheme',
|
|
87
|
+
'Filter.unlimited': 'Unlimited',
|
|
88
|
+
'Filter.commonScheme': 'Common schemes',
|
|
89
|
+
'Filter.advancedQuery': 'Advanced query',
|
|
90
|
+
'Filter.schemeName': 'Scheme name',
|
|
91
|
+
'Filter.addCondition': 'Add condition',
|
|
92
|
+
'Filter.saveScheme': 'Save scheme',
|
|
93
|
+
'Filter.query': 'Query',
|
|
94
|
+
'Filter.and': 'And',
|
|
95
|
+
'Filter.settings': 'Settings',
|
|
96
|
+
'Filter.schemeNamePlaceholder': 'Please enter scheme name',
|
|
97
|
+
'Form.requiredMessage': 'Please enter your ',
|
|
98
|
+
'Table.contain': 'Contain',
|
|
99
|
+
'Table.notContain': 'Do not contain',
|
|
100
|
+
'Table.equal': 'Equal',
|
|
101
|
+
'Table.notEqual': 'Not equal',
|
|
102
|
+
'Table.isNull': 'Is null',
|
|
103
|
+
'Table.notIsNull': 'Is not null',
|
|
104
|
+
'Table.resetFilter': 'Reset',
|
|
105
|
+
'Table.confirmFilter': 'Ok',
|
|
106
|
+
'Select.selectAll': 'Select all',
|
|
107
|
+
'Select.seleted': 'Selected {size} items',
|
|
108
|
+
'Select.total': 'Total {total} items',
|
|
109
|
+
'Signature.clickToSign': 'Click to sign',
|
|
110
|
+
'Signature.pleaseWriteHere': 'Please write your signature horizontally here',
|
|
111
|
+
'Signature.okText': 'Ok',
|
|
112
|
+
'Signature.cancelText': 'Cancel',
|
|
113
|
+
'Signature.handwrittenSignature': 'Handwritten Signature',
|
|
114
|
+
'QRCode.qrCodeExpired': 'QR code expired',
|
|
115
|
+
'QRCode.clickRefresh': 'Refresh',
|
|
116
|
+
'Cascader.total': 'Total {total} items',
|
|
117
|
+
'BaseData.total': 'Total {total} items',
|
|
118
|
+
'BaseData.history': 'History',
|
|
119
|
+
'BaseData.favorites': 'Favorites',
|
|
120
|
+
'Image.close': 'Close',
|
|
121
|
+
'Upload.reUpload': 'Re-upload',
|
|
122
|
+
'Upload.uploading': 'Uploading',
|
|
123
|
+
'Upload.fail': 'Upload failed',
|
|
124
|
+
'Upload.delete': 'Delete',
|
|
125
|
+
'Notification.title': 'System Notification',
|
|
126
|
+
'TreeSelect.total': 'Total {total} items',
|
|
127
|
+
'ImageCropper.okText': 'Confirm Crop'
|
|
128
|
+
};
|
|
129
|
+
var _default = locale;
|
|
130
|
+
exports.default = _default;
|
package/lib/locale/locale.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ declare class LocaleCache {
|
|
|
45
45
|
'Pagination.order': string;
|
|
46
46
|
'Pagination.forward': string;
|
|
47
47
|
'Pagination.backward': string;
|
|
48
|
+
'Pagination.confirm': string;
|
|
48
49
|
'Transfer.selectAll': string;
|
|
49
50
|
'Transfer.searchPlaceholder': string[];
|
|
50
51
|
'Transfer.leftTitle': string;
|
|
@@ -62,7 +63,9 @@ declare class LocaleCache {
|
|
|
62
63
|
'QuickSearch.or': string;
|
|
63
64
|
'CityPicker.domestic': string;
|
|
64
65
|
'CityPicker.common': string;
|
|
65
|
-
'CityPicker.emptyText': string;
|
|
66
|
+
'CityPicker.emptyText': string; /**
|
|
67
|
+
* 获取所有语言包数据
|
|
68
|
+
*/
|
|
66
69
|
'CityPicker.commonEmptyText': string;
|
|
67
70
|
'CityPicker.tabsDomestic': string;
|
|
68
71
|
'CityPicker.tabsInternation': string;
|