plain-design 1.0.0-beta.54 → 1.0.0-beta.56
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
package/src/packages/entry.tsx
CHANGED
@@ -211,6 +211,7 @@ export type {tEditComputed, tEditControl, EditProvideData} from './uses/useEdit'
|
|
211
211
|
export {useStyle, StyleProps, ThemeShape, ThemeSize, ThemeStatus} from './uses/useStyle';
|
212
212
|
export type {tStyleComputed, UseStyleProvideData} from './uses/useStyle';
|
213
213
|
export {AutoLoadingObserver} from './components/AutoLoadingObserver';
|
214
|
+
export {lighter, darken} from './utils/color.utils';
|
214
215
|
|
215
216
|
// @ts-ignore
|
216
217
|
setComponentPrefix(globalComponentPrefix);
|
@@ -158,7 +158,17 @@ export const i18n = (() => {
|
|
158
158
|
* @date 2023/10/11 9:30
|
159
159
|
*/
|
160
160
|
const setLangs = (langs: any) => {
|
161
|
-
|
161
|
+
|
162
|
+
let mergeLangs = {} as any;
|
163
|
+
Object.keys({ ...state.langs, ...langs }).forEach(localeName => {
|
164
|
+
mergeLangs[localeName] = {
|
165
|
+
...state.langs[localeName],
|
166
|
+
...langs[localeName]
|
167
|
+
};
|
168
|
+
});
|
169
|
+
|
170
|
+
state.langs = mergeLangs;
|
171
|
+
|
162
172
|
hooks.onUpdateLangs.exec(undefined);
|
163
173
|
};
|
164
174
|
|
@@ -9,52 +9,52 @@ export const EnUsLocale: tZhCnLocale = {
|
|
9
9
|
reset: 'Reset',
|
10
10
|
loading: 'Loading',
|
11
11
|
loaded: 'Loaded',
|
12
|
-
loadFailed: 'Load
|
12
|
+
loadFailed: 'Load failed',
|
13
13
|
clear: 'Clear',
|
14
14
|
close: 'Close',
|
15
|
-
width: '
|
16
|
-
empty: '
|
17
|
-
more: '
|
18
|
-
selectData: '
|
19
|
-
selectPieceOfData: '
|
20
|
-
selectAtLeastOnePieceOfData: '
|
21
|
-
prevStep: '
|
22
|
-
nextStep: '
|
23
|
-
total: '
|
24
|
-
data: '
|
25
|
-
go: '
|
26
|
-
page: '
|
27
|
-
totalPage: '
|
28
|
-
collapse: '
|
29
|
-
main: '
|
30
|
-
fixed: '
|
31
|
-
hide: '
|
32
|
-
exportData: '
|
33
|
-
custom: '
|
34
|
-
setting: '
|
35
|
-
asc: '
|
36
|
-
desc: '
|
37
|
-
sort: '
|
38
|
-
name: '
|
39
|
-
pleaseSelect: '
|
40
|
-
noData: '
|
41
|
-
noMatch: '
|
42
|
-
query: '
|
43
|
-
id: '
|
44
|
-
isEmpty: '
|
45
|
-
isNotEmpty: '
|
46
|
-
largerThan: '
|
47
|
-
lessThan: '
|
48
|
-
and: '
|
49
|
-
invalidAmount: '
|
50
|
-
province: '
|
51
|
-
city: '
|
52
|
-
district: '
|
53
|
-
lookUp: '
|
54
|
-
operation: '
|
55
|
-
noFilter: '
|
15
|
+
width: 'Width',
|
16
|
+
empty: 'No data',
|
17
|
+
more: 'More',
|
18
|
+
selectData: 'Select Data',
|
19
|
+
selectPieceOfData: 'Select piece of data',
|
20
|
+
selectAtLeastOnePieceOfData: 'Select at lease on piece of data',
|
21
|
+
prevStep: 'Previous step',
|
22
|
+
nextStep: 'Next step',
|
23
|
+
total: 'Total',
|
24
|
+
data: 'Rows',
|
25
|
+
go: 'Go',
|
26
|
+
page: 'Page',
|
27
|
+
totalPage: 'Total {total} rows',
|
28
|
+
collapse: 'Collapse',
|
29
|
+
main: 'Main',
|
30
|
+
fixed: 'Fixed',
|
31
|
+
hide: 'Hidden',
|
32
|
+
exportData: 'Export data',
|
33
|
+
custom: 'Custom',
|
34
|
+
setting: 'Setting',
|
35
|
+
asc: 'Asc',
|
36
|
+
desc: 'Desc',
|
37
|
+
sort: 'Sort',
|
38
|
+
name: 'Name',
|
39
|
+
pleaseSelect: 'Please select',
|
40
|
+
noData: 'No data',
|
41
|
+
noMatch: 'No match',
|
42
|
+
query: 'Search',
|
43
|
+
id: 'ID',
|
44
|
+
isEmpty: 'Is empty',
|
45
|
+
isNotEmpty: 'Is not empty',
|
46
|
+
largerThan: 'Larger than',
|
47
|
+
lessThan: 'Less than',
|
48
|
+
and: 'And',
|
49
|
+
invalidAmount: 'Invalid amount',
|
50
|
+
province: 'Province',
|
51
|
+
city: 'City',
|
52
|
+
district: 'District',
|
53
|
+
lookUp: 'Look up',
|
54
|
+
operation: 'Operation',
|
55
|
+
noFilter: 'No filter',
|
56
56
|
validate: {
|
57
|
-
require: '
|
57
|
+
require: ' Require',
|
58
58
|
notMatchPattern: ' not match patter',
|
59
59
|
canNotUseMinInAnyType: ' any type cannot use min validation',
|
60
60
|
canNotUseMaxInAnyType: ' any type cannot use max validation',
|
@@ -82,41 +82,41 @@ export const EnUsLocale: tZhCnLocale = {
|
|
82
82
|
|
83
83
|
},
|
84
84
|
filter: {
|
85
|
-
like: '
|
86
|
-
equal: '
|
87
|
-
notInclude: '
|
88
|
-
include: '
|
89
|
-
range: '
|
85
|
+
like: 'Like',
|
86
|
+
equal: 'Equal',
|
87
|
+
notInclude: 'Not include',
|
88
|
+
include: 'Include',
|
89
|
+
range: 'Range',
|
90
90
|
},
|
91
91
|
select: {
|
92
|
-
all: '
|
93
|
-
reverse: '
|
94
|
-
none: '
|
95
|
-
selectOptionsAtMost: '
|
96
|
-
selectOptionsAtLeast: '
|
92
|
+
all: 'All',
|
93
|
+
reverse: 'Reverse',
|
94
|
+
none: 'Clear',
|
95
|
+
selectOptionsAtMost: 'Select {val} options at most',
|
96
|
+
selectOptionsAtLeast: 'Select {val} options at least',
|
97
97
|
},
|
98
|
-
zoomIn: '
|
99
|
-
zoomOut: '
|
100
|
-
address: '
|
98
|
+
zoomIn: 'Zoom in',
|
99
|
+
zoomOut: 'Zoom out',
|
100
|
+
address: 'Address',
|
101
101
|
edit: {
|
102
|
-
create: '
|
103
|
-
edit: '
|
104
|
-
remove: '
|
105
|
-
apply: '
|
106
|
-
override: '
|
107
|
-
copy: '
|
108
|
-
rename: '
|
109
|
-
add: '
|
110
|
-
expandAll: '
|
111
|
-
collapseAll: '
|
112
|
-
summary: '
|
113
|
-
save: '
|
114
|
-
done: '
|
102
|
+
create: 'Create',
|
103
|
+
edit: 'Edit',
|
104
|
+
remove: 'Delete',
|
105
|
+
apply: 'Apply',
|
106
|
+
override: 'Override',
|
107
|
+
copy: 'Copy',
|
108
|
+
rename: 'Rename',
|
109
|
+
add: 'Add',
|
110
|
+
expandAll: 'Expand all',
|
111
|
+
collapseAll: 'Collapse all',
|
112
|
+
summary: 'Sum',
|
113
|
+
save: 'Save',
|
114
|
+
done: 'Done',
|
115
115
|
},
|
116
116
|
},
|
117
117
|
formatter: {
|
118
|
-
week: '
|
119
|
-
quarter: '
|
118
|
+
week: 'Year gggg,week ww',
|
119
|
+
quarter: 'Year YYYY, quarter Q',
|
120
120
|
},
|
121
121
|
week: {
|
122
122
|
sunday: 'SUN',
|
@@ -142,132 +142,132 @@ export const EnUsLocale: tZhCnLocale = {
|
|
142
142
|
december: 'DEV',
|
143
143
|
},
|
144
144
|
file: {
|
145
|
-
upload: '
|
146
|
-
selectFile: '
|
147
|
-
toBeUpload: '
|
148
|
-
uploadFailed: '
|
149
|
-
dropFilesOr: '
|
145
|
+
upload: 'Upload',
|
146
|
+
selectFile: 'Select file',
|
147
|
+
toBeUpload: 'To be upload',
|
148
|
+
uploadFailed: 'Upload failed',
|
149
|
+
dropFilesOr: 'Drop file here, or',
|
150
150
|
clickToUpload: 'click to upload',
|
151
151
|
oversize: '[{filename}]file size is {filesize}MB,the maximunize is {max}MB',
|
152
|
-
notUpload: '
|
152
|
+
notUpload: 'Not upload',
|
153
153
|
areYouSureToDeleteFile: 'Are you sure to delete {name} ?',
|
154
|
-
uploadFileSucceed: '
|
154
|
+
uploadFileSucceed: 'File {name} upload success',
|
155
155
|
},
|
156
156
|
image: {
|
157
|
-
compressByImageMeasure: '
|
158
|
-
compressByImageCapacity: '
|
159
|
-
noPicture: '
|
160
|
-
rotation90: '
|
161
|
-
rotation_90: '
|
162
|
-
prevPicture: '
|
163
|
-
nextPicture: '
|
157
|
+
compressByImageMeasure: 'Compress by image measure',
|
158
|
+
compressByImageCapacity: 'Compress by image capacity',
|
159
|
+
noPicture: 'No picture',
|
160
|
+
rotation90: 'Rotate 90 degree',
|
161
|
+
rotation_90: 'Rotate -90 degree',
|
162
|
+
prevPicture: 'Previous pickture',
|
163
|
+
nextPicture: 'Next picture',
|
164
164
|
},
|
165
165
|
table: {
|
166
|
-
exportingData: '
|
167
|
-
exportCompleted: '
|
168
|
-
exportFailed: '
|
169
|
-
expression: '
|
170
|
-
configSeniorFilter: '
|
171
|
-
formFilter: '
|
172
|
-
formQuery: '
|
173
|
-
searchBar: '
|
174
|
-
pleaseEditSearchParam: '
|
175
|
-
allFilter: '
|
176
|
-
noFilter: '
|
177
|
-
clearAll: '
|
178
|
-
pleaseInputThConfigurationName: '
|
179
|
-
bak: '
|
166
|
+
exportingData: 'Exporting data',
|
167
|
+
exportCompleted: 'Export completed',
|
168
|
+
exportFailed: 'Export failed',
|
169
|
+
expression: 'Expresison',
|
170
|
+
configSeniorFilter: 'Senior filter',
|
171
|
+
formFilter: 'Form filter',
|
172
|
+
formQuery: 'Form query',
|
173
|
+
searchBar: 'Search bar',
|
174
|
+
pleaseEditSearchParam: 'Please input search param directly',
|
175
|
+
allFilter: 'All filter',
|
176
|
+
noFilter: 'No filter',
|
177
|
+
clearAll: 'Clear all',
|
178
|
+
pleaseInputThConfigurationName: 'Please input configuration name',
|
179
|
+
bak: 'Backup',
|
180
180
|
areYouSureToOverrideTheConfiguration: 'Are you sure to override "{title}" to be the latest configuration',
|
181
|
-
cacheSetting: '
|
182
|
-
clearFilterSortAndConfiguration: '
|
183
|
-
withoutAnyConfiguration: '
|
184
|
-
saveToNewConfiguration: '
|
185
|
-
cacheName: '
|
186
|
-
createTime: '
|
187
|
-
customSetting: '
|
188
|
-
title: '
|
189
|
-
alignType: '
|
190
|
-
alignLeft: '
|
191
|
-
alignCenter: '
|
192
|
-
alignRight: '
|
181
|
+
cacheSetting: 'Cache setting',
|
182
|
+
clearFilterSortAndConfiguration: 'Clear filter, sort and configuration',
|
183
|
+
withoutAnyConfiguration: 'Use none configuration',
|
184
|
+
saveToNewConfiguration: 'Save current to be new configuration',
|
185
|
+
cacheName: 'Cache name',
|
186
|
+
createTime: 'Create time',
|
187
|
+
customSetting: 'Custom setting',
|
188
|
+
title: 'Title',
|
189
|
+
alignType: 'Align type',
|
190
|
+
alignLeft: 'Left',
|
191
|
+
alignCenter: 'Center',
|
192
|
+
alignRight: 'Right',
|
193
193
|
exportCurrentPageData: 'Export current page data',
|
194
194
|
exportDataInTable: 'Export data showed in table',
|
195
195
|
exportCurrentAllData: 'Export current all data',
|
196
|
-
exportAllDataWithFilterSortMaybeFailedWithLargeData: '
|
196
|
+
exportAllDataWithFilterSortMaybeFailedWithLargeData: 'Export all data by sort and filter condition(maybe failed with latge data)',
|
197
197
|
selectDataToExport: 'Select data to export',
|
198
|
-
customSelectDataToExport: '
|
199
|
-
selectExportType: '
|
200
|
-
selectExportFields: '
|
201
|
-
exportType: '
|
202
|
-
exportFields: '
|
203
|
-
exportData: '
|
204
|
-
exportShowData: '
|
205
|
-
fieldName: '
|
206
|
-
exportAgain: '
|
207
|
-
importData: '
|
208
|
-
pleaseEnterCompleteParamsForCondition: '
|
209
|
-
seniorFilter: '
|
210
|
-
pleaseAddFilterCondition: '
|
211
|
-
seniorQuery: '
|
212
|
-
ascOrDesc: '
|
213
|
-
formEdit: '
|
214
|
-
batchCreate: '
|
215
|
-
batchDelete: '
|
216
|
-
batchEdit: '
|
217
|
-
batchModify: '
|
218
|
-
seniorSort: '
|
219
|
-
canNotDeleteUsingCache: '
|
220
|
-
columnFilter: '
|
221
|
-
distinctFilter: '
|
198
|
+
customSelectDataToExport: 'Custom select data to export',
|
199
|
+
selectExportType: 'Select export type',
|
200
|
+
selectExportFields: 'Select export fields',
|
201
|
+
exportType: 'Export type',
|
202
|
+
exportFields: 'Export fields',
|
203
|
+
exportData: 'Export data',
|
204
|
+
exportShowData: 'Export show data',
|
205
|
+
fieldName: 'Field name',
|
206
|
+
exportAgain: 'Export again',
|
207
|
+
importData: 'Import data',
|
208
|
+
pleaseEnterCompleteParamsForCondition: 'Please input complete param for the {invalidIndex} condition ',
|
209
|
+
seniorFilter: 'Senior filter',
|
210
|
+
pleaseAddFilterCondition: 'Please add filter condition',
|
211
|
+
seniorQuery: 'Senior query',
|
212
|
+
ascOrDesc: 'Asc Or Desc',
|
213
|
+
formEdit: 'Form edit',
|
214
|
+
batchCreate: 'Batch create',
|
215
|
+
batchDelete: 'Batch delete',
|
216
|
+
batchEdit: 'Batch edit',
|
217
|
+
batchModify: 'Batch modify',
|
218
|
+
seniorSort: 'Senior sort',
|
219
|
+
canNotDeleteUsingCache: 'Can not delete cache which is using',
|
220
|
+
columnFilter: 'Column filter',
|
221
|
+
distinctFilter: 'Distinct filter',
|
222
222
|
filterTipInclude: '{field} includes {val}',
|
223
|
-
clearDistinctFilter: '
|
224
|
-
continueCreate: '
|
225
|
-
pleaseSelectOneRecord: '
|
226
|
-
selectRowToDelete: '
|
223
|
+
clearDistinctFilter: 'Clear distinct filter',
|
224
|
+
continueCreate: 'Continue create',
|
225
|
+
pleaseSelectOneRecord: 'Please select one record',
|
226
|
+
selectRowToDelete: 'Select row to delete',
|
227
227
|
areYouSureYouWantToDeleteTheData: 'Are you sure to delete the {index} record?',
|
228
|
-
deleteFailed: '
|
229
|
-
savingData: '
|
230
|
-
articleDataVerificationFailed: '
|
231
|
-
pleaseEnterTheNumberOfRowsToCreate: '
|
232
|
-
deleting: '
|
233
|
-
deleteSucceed: '
|
234
|
-
queryTotalFailed: '
|
235
|
-
sortInTypeOrderOfField: '
|
236
|
-
pleaseEnterSearchKey: '
|
228
|
+
deleteFailed: 'Delete failed',
|
229
|
+
savingData: 'Saving',
|
230
|
+
articleDataVerificationFailed: 'The {index} record is invalid',
|
231
|
+
pleaseEnterTheNumberOfRowsToCreate: 'Please input the number of rows to create',
|
232
|
+
deleting: 'Deleting',
|
233
|
+
deleteSucceed: 'Delete succeed',
|
234
|
+
queryTotalFailed: 'Query total failed',
|
235
|
+
sortInTypeOrderOfField: 'Sort by {description}',
|
236
|
+
pleaseEnterSearchKey: 'Please input search key',
|
237
237
|
rowPerPage: '{num} per page',
|
238
|
-
checkAll: '
|
239
|
-
checkClear: '
|
240
|
-
fixedLeft: '
|
241
|
-
fixedRight: '
|
242
|
-
pleaseClickNext: '
|
243
|
-
tableScrollTips: '
|
244
|
-
pleaseEnterNewConfigName: '
|
245
|
-
queryTotal: '
|
246
|
-
columnTitle: '
|
238
|
+
checkAll: 'Check all',
|
239
|
+
checkClear: 'Check clear',
|
240
|
+
fixedLeft: 'Fixed left',
|
241
|
+
fixedRight: 'Fixed right',
|
242
|
+
pleaseClickNext: 'Please click next step',
|
243
|
+
tableScrollTips: 'Scroll by wheeling on table head or scroll with wheeling and press alt to scroll horizontal',
|
244
|
+
pleaseEnterNewConfigName: 'Please input new config name',
|
245
|
+
queryTotal: 'Query total',
|
246
|
+
columnTitle: 'Column title',
|
247
247
|
},
|
248
248
|
theme: {
|
249
249
|
inputMode: 'INPUT MODE',
|
250
|
-
inputModeFlat: '
|
251
|
-
inputModelStroke: '
|
250
|
+
inputModeFlat: 'Flat',
|
251
|
+
inputModelStroke: 'Stroke',
|
252
252
|
buttonMode: 'BUTTON MODE',
|
253
|
-
buttonModeFlat: '
|
254
|
-
buttonModeFill: '
|
255
|
-
buttonModeOutline: '
|
256
|
-
buttonModeStroke: '
|
257
|
-
buttonModeText: '
|
253
|
+
buttonModeFlat: 'Flat',
|
254
|
+
buttonModeFill: 'Fill',
|
255
|
+
buttonModeOutline: 'Outline',
|
256
|
+
buttonModeStroke: 'Stroke',
|
257
|
+
buttonModeText: 'Text',
|
258
258
|
primaryColor: 'PRIMARY COLOR',
|
259
259
|
size: 'SIZE',
|
260
|
-
sizeLarge: '
|
261
|
-
sizeNormal: '
|
262
|
-
sizeSmall: '
|
263
|
-
sizeMini: '
|
260
|
+
sizeLarge: 'Large',
|
261
|
+
sizeNormal: 'Normal',
|
262
|
+
sizeSmall: 'Small',
|
263
|
+
sizeMini: 'Mini',
|
264
264
|
darkMode: 'DARK MODE',
|
265
|
-
darkModeOn: '
|
266
|
-
darkModeOff: '
|
265
|
+
darkModeOn: 'Dark',
|
266
|
+
darkModeOff: 'Light',
|
267
267
|
radiusMode: 'RADIUS MODE',
|
268
|
-
radiusModeRound: '
|
269
|
-
radiusModeNormal: '
|
270
|
-
radiusModeNone: '
|
268
|
+
radiusModeRound: 'Round',
|
269
|
+
radiusModeNormal: 'Filet',
|
270
|
+
radiusModeNone: 'None',
|
271
271
|
scale: 'SCALE',
|
272
272
|
reset: 'RESET',
|
273
273
|
},
|