plain-design 1.0.0-beta.55 → 1.0.0-beta.57

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plain-design",
3
- "version": "1.0.0-beta.55",
3
+ "version": "1.0.0-beta.57",
4
4
  "description": "",
5
5
  "main": "dist/plain-design.min.js",
6
6
  "module": "dist/plain-design.commonjs.min.js",
@@ -28,6 +28,10 @@
28
28
  margin-top: $margin;
29
29
  }
30
30
  }
31
+
32
+ & + .#{componentName(auto-table)} {
33
+ margin-top: $margin;
34
+ }
31
35
  }
32
36
 
33
37
  .virtual-table-head-table {
@@ -158,7 +158,17 @@ export const i18n = (() => {
158
158
  * @date 2023/10/11 9:30
159
159
  */
160
160
  const setLangs = (langs: any) => {
161
- state.langs = deepmerge(state.langs, langs);
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 Failed',
12
+ loadFailed: 'Load failed',
13
13
  clear: 'Clear',
14
14
  close: 'Close',
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: 'query',
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',
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: ' 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: 'like',
86
- equal: 'equal',
87
- notInclude: 'not include',
88
- include: 'include',
89
- range: 'range',
85
+ like: 'Like',
86
+ equal: 'Equal',
87
+ notInclude: 'Not include',
88
+ include: 'Include',
89
+ range: 'Range',
90
90
  },
91
91
  select: {
92
- all: 'all',
93
- reverse: 'reverse',
94
- none: 'clear',
95
- selectOptionsAtMost: 'select {val} options at most',
96
- selectOptionsAtLeast: 'select {val} options at least',
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: 'zoom in',
99
- zoomOut: 'zoom out',
100
- address: 'address',
98
+ zoomIn: 'Zoom in',
99
+ zoomOut: 'Zoom out',
100
+ address: 'Address',
101
101
  edit: {
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',
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: 'year gggg,week ww',
119
- quarter: 'year YYYY, quarter Q',
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: 'upload',
146
- selectFile: 'select file',
147
- toBeUpload: 'to be upload',
148
- uploadFailed: 'upload failed',
149
- dropFilesOr: 'drop file here, or',
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: 'not upload',
152
+ notUpload: 'Not upload',
153
153
  areYouSureToDeleteFile: 'Are you sure to delete {name} ?',
154
- uploadFileSucceed: 'file {name} upload success',
154
+ uploadFileSucceed: 'File {name} upload success',
155
155
  },
156
156
  image: {
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',
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: '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',
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: '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',
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: 'export all data by sort and filter condition(maybe failed with latge data)',
196
+ exportAllDataWithFilterSortMaybeFailedWithLargeData: 'Export all data by sort and filter condition(maybe failed with latge data)',
197
197
  selectDataToExport: 'Select data to export',
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',
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: 'clear distinct filter',
224
- continueCreate: 'continue create',
225
- pleaseSelectOneRecord: 'please select one record',
226
- selectRowToDelete: 'select row to delete',
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: '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',
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: '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',
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: 'flat',
251
- inputModelStroke: 'stroke',
250
+ inputModeFlat: 'Flat',
251
+ inputModelStroke: 'Stroke',
252
252
  buttonMode: 'BUTTON MODE',
253
- buttonModeFlat: 'flat',
254
- buttonModeFill: 'fill',
255
- buttonModeOutline: 'outline',
256
- buttonModeStroke: 'stroke',
257
- buttonModeText: 'text',
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: 'large',
261
- sizeNormal: 'normal',
262
- sizeSmall: 'small',
263
- sizeMini: 'mini',
260
+ sizeLarge: 'Large',
261
+ sizeNormal: 'Normal',
262
+ sizeSmall: 'Small',
263
+ sizeMini: 'Mini',
264
264
  darkMode: 'DARK MODE',
265
- darkModeOn: 'dark',
266
- darkModeOff: 'light',
265
+ darkModeOn: 'Dark',
266
+ darkModeOff: 'Light',
267
267
  radiusMode: 'RADIUS MODE',
268
- radiusModeRound: 'round',
269
- radiusModeNormal: 'filet',
270
- radiusModeNone: 'none',
268
+ radiusModeRound: 'Round',
269
+ radiusModeNormal: 'Filet',
270
+ radiusModeNone: 'None',
271
271
  scale: 'SCALE',
272
272
  reset: 'RESET',
273
273
  },