dtable-ui-component 5.3.1-beta6 → 5.3.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.
Files changed (247) hide show
  1. package/lib/CheckboxEditor/index.css +20 -3
  2. package/lib/CheckboxEditor/index.js +35 -98
  3. package/lib/CheckboxFormatter/index.js +9 -6
  4. package/lib/CollaboratorEditor/index.css +35 -12
  5. package/lib/CollaboratorEditor/index.js +212 -18
  6. package/lib/CollaboratorEditor/{mb-collaborator-editor → mb-collaborator-editor-popover}/index.js +29 -26
  7. package/lib/CollaboratorEditor/pc-collaborator-editor-popover/index.js +97 -0
  8. package/lib/CollaboratorItem/index.css +1 -1
  9. package/lib/CollaboratorItem/index.js +2 -6
  10. package/lib/DTableFiltersPopover/utils/index.js +7 -1
  11. package/lib/DTableFiltersPopover/widgets/filter-calendar.js +2 -2
  12. package/lib/DTableGroupSelect/select-option-group.css +17 -17
  13. package/lib/DTableGroupSelect/select-option-group.js +1 -1
  14. package/lib/DTableSelect/index.js +1 -3
  15. package/lib/DateEditor/index.js +51 -14
  16. package/lib/DateEditor/pc-date-editor-popover.js +12 -145
  17. package/lib/Department-editor/department-single-select.js +1 -1
  18. package/lib/Department-editor/index.js +4 -3
  19. package/lib/DepartmentSingleSelectFormatter/index.js +1 -2
  20. package/lib/FileEditor/index.js +11 -258
  21. package/lib/FileEditor/pc-files-addition/index.js +1 -0
  22. package/lib/FileEditor/pc-files-addition/pc-file-uploaded-item.js +1 -0
  23. package/lib/FileEditor/pc-files-preview/index.js +1 -0
  24. package/lib/FileEditor/pc-files-preview/pc-file-item-preview.js +1 -0
  25. package/lib/FileItemFormatter/assets/file/192/excel.png +0 -0
  26. package/lib/FileItemFormatter/assets/file/192/file.png +0 -0
  27. package/lib/FileItemFormatter/assets/file/192/music.png +0 -0
  28. package/lib/FileItemFormatter/assets/file/192/pdf.png +0 -0
  29. package/lib/FileItemFormatter/assets/file/192/pic.png +0 -0
  30. package/lib/FileItemFormatter/assets/file/192/ppt.png +0 -0
  31. package/lib/FileItemFormatter/assets/file/192/txt.png +0 -0
  32. package/lib/FileItemFormatter/assets/file/192/video.png +0 -0
  33. package/lib/FileItemFormatter/assets/file/192/word.png +0 -0
  34. package/lib/FileItemFormatter/assets/file/24/excel.png +0 -0
  35. package/lib/FileItemFormatter/assets/file/24/file.png +0 -0
  36. package/lib/FileItemFormatter/assets/file/24/music.png +0 -0
  37. package/lib/FileItemFormatter/assets/file/24/pdf.png +0 -0
  38. package/lib/FileItemFormatter/assets/file/24/pic.png +0 -0
  39. package/lib/FileItemFormatter/assets/file/24/ppt.png +0 -0
  40. package/lib/FileItemFormatter/assets/file/24/txt.png +0 -0
  41. package/lib/FileItemFormatter/assets/file/24/video.png +0 -0
  42. package/lib/FileItemFormatter/assets/file/24/word.png +0 -0
  43. package/lib/FileItemFormatter/assets/folder/folder-192.png +0 -0
  44. package/lib/FileItemFormatter/assets/folder/folder-24.png +0 -0
  45. package/lib/FileItemFormatter/index.js +20 -19
  46. package/lib/FileItemFormatter/utils.js +99 -0
  47. package/lib/FileUploader/index.js +14 -268
  48. package/lib/FormulaFormatter/index.js +1 -2
  49. package/lib/FormulaFormatter/utils.js +31 -0
  50. package/lib/LinkEditor/pc-link-editor-popover/index.js +1 -1
  51. package/lib/MultipleSelectEditor/index.css +9 -0
  52. package/lib/MultipleSelectEditor/index.js +177 -16
  53. package/lib/NumberEditor/index.js +77 -64
  54. package/lib/{RowExpandFormatter/RowExpandEmailFormatter → RowExpandEmailFormatter}/index.css +1 -1
  55. package/lib/{RowExpandFormatter/RowExpandEmailFormatter → RowExpandEmailFormatter}/index.js +1 -1
  56. package/lib/{RowExpandFormatter/RowExpandFileFormatter → RowExpandFileFormatter}/index.css +6 -6
  57. package/lib/{RowExpandFormatter/RowExpandFileFormatter → RowExpandFileFormatter}/index.js +1 -3
  58. package/lib/{RowExpandFormatter/RowExpandFileFormatter → RowExpandFileFormatter}/row-expand-file-item-formatter.js +11 -10
  59. package/lib/RowExpandFormatter/index.css +1 -27
  60. package/lib/RowExpandFormatter/index.js +100 -83
  61. package/lib/{RowExpandFormatter/RowExpandFormulaFormatter → RowExpandFormulaFormatter}/index.js +10 -11
  62. package/lib/{RowExpandFormatter/RowExpandImageFormatter → RowExpandImageFormatter}/index.css +6 -6
  63. package/lib/{RowExpandFormatter/RowExpandImageFormatter → RowExpandImageFormatter}/index.js +1 -1
  64. package/lib/{RowExpandFormatter/RowExpandImageFormatter → RowExpandImageFormatter}/row-expand-image-item-formatter.js +3 -3
  65. package/lib/{RowExpandFormatter/RowExpandLinkFormatter → RowExpandLinkFormatter}/collaborator-item-formatter.js +1 -1
  66. package/lib/{RowExpandFormatter/RowExpandLinkFormatter → RowExpandLinkFormatter}/index.js +6 -6
  67. package/lib/RowExpandLinkFormatter/utils.js +71 -0
  68. package/lib/{RowExpandFormatter/RowExpandRateFormatter → RowExpandRateFormatter}/index.css +1 -1
  69. package/lib/RowExpandUrlFormatter/index.css +1 -0
  70. package/lib/{RowExpandFormatter/RowExpandUrlFormatter → RowExpandUrlFormatter}/index.js +3 -4
  71. package/lib/SingleSelectEditor/index.css +14 -0
  72. package/lib/SingleSelectEditor/index.js +156 -16
  73. package/lib/TextEditor/index.js +42 -113
  74. package/lib/constants/index.js +2 -34
  75. package/lib/css/cell-editor.css +2 -18
  76. package/lib/index.js +46 -74
  77. package/lib/lang/index.js +16 -19
  78. package/lib/locals/de.js +103 -0
  79. package/lib/locals/en.js +104 -0
  80. package/lib/locals/es.js +103 -0
  81. package/lib/locals/fr.js +103 -0
  82. package/lib/locals/pt.js +103 -0
  83. package/lib/locals/ru.js +103 -0
  84. package/lib/locals/zh-CN.js +104 -0
  85. package/lib/select-editor/index.js +6 -6
  86. package/lib/select-editor/{mb-select-editor → mb-select-editor-popover}/index.js +3 -3
  87. package/lib/select-editor/pc-select-editor-popover/index.css +71 -0
  88. package/lib/select-editor/pc-select-editor-popover/index.js +122 -0
  89. package/lib/utils/editor-utils.js +6 -1
  90. package/lib/utils/url.js +8 -121
  91. package/lib/utils/utils.js +2 -145
  92. package/package.json +2 -3
  93. package/lib/CollaboratorEditor/pc-collaborator-editor/index.js +0 -257
  94. package/lib/Comment/body/comment.js +0 -190
  95. package/lib/Comment/body/index.css +0 -95
  96. package/lib/Comment/body/index.js +0 -32
  97. package/lib/Comment/footer/btns/index.css +0 -40
  98. package/lib/Comment/footer/btns/index.js +0 -113
  99. package/lib/Comment/footer/index.css +0 -157
  100. package/lib/Comment/footer/index.js +0 -170
  101. package/lib/Comment/footer/input/index.css +0 -52
  102. package/lib/Comment/footer/input/index.js +0 -448
  103. package/lib/Comment/footer/input/participant/index.css +0 -0
  104. package/lib/Comment/footer/input/participant/index.js +0 -53
  105. package/lib/Comment/footer/participants/index.css +0 -22
  106. package/lib/Comment/footer/participants/index.js +0 -68
  107. package/lib/Comment/footer/participants/participant/index.css +0 -5
  108. package/lib/Comment/footer/participants/participant/index.js +0 -32
  109. package/lib/Comment/footer/participants/participant-select/index.css +0 -104
  110. package/lib/Comment/footer/participants/participant-select/index.js +0 -182
  111. package/lib/Comment/index.css +0 -19
  112. package/lib/Comment/index.js +0 -305
  113. package/lib/Comment/model.js +0 -25
  114. package/lib/Comment/utils/common.js +0 -62
  115. package/lib/Comment/utils/index.js +0 -27
  116. package/lib/Comment/utils/utilities.js +0 -176
  117. package/lib/DeleteTip/index.js +0 -50
  118. package/lib/DigitalSignEditor/constants.js +0 -7
  119. package/lib/DigitalSignEditor/index.css +0 -69
  120. package/lib/DigitalSignEditor/index.js +0 -182
  121. package/lib/DigitalSignEditor/service.js +0 -38
  122. package/lib/DigitalSignEditor/signature-board/index.css +0 -35
  123. package/lib/DigitalSignEditor/signature-board/index.js +0 -135
  124. package/lib/DigitalSignEditor/signature-board/signature-tool.js +0 -396
  125. package/lib/DigitalSignEditor/utils.js +0 -29
  126. package/lib/DurationEditor/index.js +0 -111
  127. package/lib/EmailEditor/index.js +0 -59
  128. package/lib/FileEditor/addition-previewer/index.css +0 -1
  129. package/lib/FileEditor/addition-previewer/index.js +0 -52
  130. package/lib/FileEditor/addition-previewer/local-file-addition/index.css +0 -1
  131. package/lib/FileEditor/addition-previewer/local-file-addition/index.js +0 -252
  132. package/lib/FileEditor/constants.js +0 -7
  133. package/lib/FileEditor/files-previewer/file-previewer/dropdown-menu.js +0 -74
  134. package/lib/FileEditor/files-previewer/file-previewer/file-name-editor/index.css +0 -5
  135. package/lib/FileEditor/files-previewer/file-previewer/file-name-editor/index.js +0 -77
  136. package/lib/FileEditor/files-previewer/file-previewer/index.css +0 -88
  137. package/lib/FileEditor/files-previewer/file-previewer/index.js +0 -167
  138. package/lib/FileEditor/files-previewer/index.css +0 -56
  139. package/lib/FileEditor/files-previewer/index.js +0 -277
  140. package/lib/FileEditor/index.css +0 -6
  141. package/lib/FileEditor/utils.js +0 -22
  142. package/lib/FileUploader/index.css +0 -9
  143. package/lib/GeolocationEditor/country-editor.js +0 -319
  144. package/lib/GeolocationEditor/index.css +0 -641
  145. package/lib/GeolocationEditor/index.js +0 -241
  146. package/lib/GeolocationEditor/location-editor.js +0 -368
  147. package/lib/GeolocationEditor/map-editor/index.js +0 -456
  148. package/lib/GeolocationEditor/map-editor/large-editor/index.css +0 -137
  149. package/lib/GeolocationEditor/map-editor/large-editor/index.js +0 -461
  150. package/lib/GeolocationEditor/map-editor-utils.js +0 -153
  151. package/lib/GeolocationEditor/map-selection-editor/index.js +0 -455
  152. package/lib/GeolocationEditor/map-selection-editor/large-editor/index.css +0 -1
  153. package/lib/GeolocationEditor/map-selection-editor/large-editor/index.js +0 -447
  154. package/lib/GeolocationEditor/parse-geolocation.js +0 -282
  155. package/lib/GeolocationEditor/province-city-editor.js +0 -292
  156. package/lib/GeolocationEditor/province-editor.js +0 -226
  157. package/lib/GeolocationEditor/selector-header-item.js +0 -28
  158. package/lib/GeolocationEditor/selector-list.js +0 -33
  159. package/lib/GeolocationEditor/with-ref.js +0 -27
  160. package/lib/ImageEditor/addition-previewer/image-link/index.css +0 -45
  161. package/lib/ImageEditor/addition-previewer/image-link/index.js +0 -73
  162. package/lib/ImageEditor/addition-previewer/index.css +0 -106
  163. package/lib/ImageEditor/addition-previewer/index.js +0 -63
  164. package/lib/ImageEditor/addition-previewer/local-image-addition/index.css +0 -125
  165. package/lib/ImageEditor/addition-previewer/local-image-addition/index.js +0 -254
  166. package/lib/ImageEditor/constants.js +0 -7
  167. package/lib/ImageEditor/images-previewer/image-preview/index.css +0 -59
  168. package/lib/ImageEditor/images-previewer/image-preview/index.js +0 -155
  169. package/lib/ImageEditor/images-previewer/index.css +0 -18
  170. package/lib/ImageEditor/images-previewer/index.js +0 -140
  171. package/lib/ImageEditor/index.css +0 -24
  172. package/lib/ImageEditor/index.js +0 -194
  173. package/lib/ImageThumbnail/index.css +0 -20
  174. package/lib/ImageThumbnail/index.js +0 -136
  175. package/lib/RowExpandDialog/body/index.css +0 -21
  176. package/lib/RowExpandDialog/body/index.js +0 -262
  177. package/lib/RowExpandDialog/column-content/index.css +0 -44
  178. package/lib/RowExpandDialog/column-content/index.js +0 -50
  179. package/lib/RowExpandDialog/header/index.css +0 -31
  180. package/lib/RowExpandDialog/header/index.js +0 -55
  181. package/lib/RowExpandDialog/index.css +0 -24
  182. package/lib/RowExpandDialog/index.js +0 -252
  183. package/lib/RowExpandEditor/RowExpandAddBtn/index.css +0 -22
  184. package/lib/RowExpandEditor/RowExpandAddBtn/index.js +0 -24
  185. package/lib/RowExpandEditor/RowExpandCheckboxEditor/index.css +0 -18
  186. package/lib/RowExpandEditor/RowExpandCheckboxEditor/index.js +0 -43
  187. package/lib/RowExpandEditor/RowExpandCollaboratorEditor/index.css +0 -5
  188. package/lib/RowExpandEditor/RowExpandCollaboratorEditor/index.js +0 -232
  189. package/lib/RowExpandEditor/RowExpandDateEditor/index.js +0 -130
  190. package/lib/RowExpandEditor/RowExpandDepartmentEditor/index.js +0 -129
  191. package/lib/RowExpandEditor/RowExpandDigitalSignEditor/index.css +0 -13
  192. package/lib/RowExpandEditor/RowExpandDigitalSignEditor/index.js +0 -208
  193. package/lib/RowExpandEditor/RowExpandDurationEditor/index.js +0 -105
  194. package/lib/RowExpandEditor/RowExpandEmailEditor/index.css +0 -2
  195. package/lib/RowExpandEditor/RowExpandEmailEditor/index.js +0 -125
  196. package/lib/RowExpandEditor/RowExpandFileEditor/index.css +0 -1
  197. package/lib/RowExpandEditor/RowExpandFileEditor/index.js +0 -146
  198. package/lib/RowExpandEditor/RowExpandGeolocationEditor/index.css +0 -17
  199. package/lib/RowExpandEditor/RowExpandGeolocationEditor/index.js +0 -165
  200. package/lib/RowExpandEditor/RowExpandImageEditor/index.css +0 -6
  201. package/lib/RowExpandEditor/RowExpandImageEditor/index.js +0 -170
  202. package/lib/RowExpandEditor/RowExpandLongTextEditor/index.css +0 -6
  203. package/lib/RowExpandEditor/RowExpandLongTextEditor/index.js +0 -123
  204. package/lib/RowExpandEditor/RowExpandMultipleSelectEditor/index.css +0 -44
  205. package/lib/RowExpandEditor/RowExpandMultipleSelectEditor/index.js +0 -224
  206. package/lib/RowExpandEditor/RowExpandNumberEditor/index.js +0 -105
  207. package/lib/RowExpandEditor/RowExpandRateEditor/index.css +0 -13
  208. package/lib/RowExpandEditor/RowExpandRateEditor/index.js +0 -152
  209. package/lib/RowExpandEditor/RowExpandSingleSelectorEditor/index.css +0 -58
  210. package/lib/RowExpandEditor/RowExpandSingleSelectorEditor/index.js +0 -192
  211. package/lib/RowExpandEditor/RowExpandTextEditor/index.css +0 -4
  212. package/lib/RowExpandEditor/RowExpandTextEditor/index.js +0 -127
  213. package/lib/RowExpandEditor/RowExpandUrlEditor/index.css +0 -31
  214. package/lib/RowExpandEditor/RowExpandUrlEditor/index.js +0 -130
  215. package/lib/RowExpandEditor/constants.js +0 -44
  216. package/lib/RowExpandEditor/index.css +0 -0
  217. package/lib/RowExpandEditor/index.js +0 -32
  218. package/lib/RowExpandFormatter/RowExpandDepartmentFormatter/index.js +0 -27
  219. package/lib/RowExpandFormatter/RowExpandUrlFormatter/index.css +0 -1
  220. package/lib/RowExpandFormatter/constants.js +0 -60
  221. package/lib/UploadProgress/index.js +0 -38
  222. package/lib/UrlEditor/index.js +0 -62
  223. package/lib/common/editor-base.js +0 -53
  224. package/lib/constants/file.js +0 -96
  225. package/lib/constants/key-codes.js +0 -109
  226. package/lib/hooks/index.js +0 -16
  227. package/lib/locales/de.json +0 -167
  228. package/lib/locales/en.json +0 -167
  229. package/lib/locales/es.json +0 -167
  230. package/lib/locales/fr.json +0 -167
  231. package/lib/locales/pt.json +0 -167
  232. package/lib/locales/ru.json +0 -167
  233. package/lib/locales/zh-CN.json +0 -167
  234. package/lib/select-editor/pc-select-editor/index.css +0 -85
  235. package/lib/select-editor/pc-select-editor/index.js +0 -290
  236. package/lib/utils/cell-comparer.js +0 -35
  237. package/lib/utils/cell.js +0 -55
  238. package/lib/utils/column-utils.js +0 -25
  239. package/lib/utils/get-event-transfer.js +0 -75
  240. package/lib/utils/hotkey.js +0 -37
  241. package/lib/utils/object-utils.js +0 -61
  242. /package/lib/CollaboratorEditor/{mb-collaborator-editor → mb-collaborator-editor-popover}/index.css +0 -0
  243. /package/lib/CollaboratorEditor/{pc-collaborator-editor → pc-collaborator-editor-popover}/index.css +0 -0
  244. /package/lib/{RowExpandFormatter/RowExpandLinkFormatter → RowExpandLinkFormatter}/index.css +0 -0
  245. /package/lib/{RowExpandFormatter/RowExpandLinkFormatter → RowExpandLinkFormatter}/value-display-utils.js +0 -0
  246. /package/lib/{RowExpandFormatter/RowExpandRateFormatter → RowExpandRateFormatter}/index.js +0 -0
  247. /package/lib/select-editor/{mb-select-editor → mb-select-editor-popover}/index.css +0 -0
package/lib/index.js CHANGED
@@ -172,12 +172,6 @@ Object.defineProperty(exports, "DateFormatter", {
172
172
  return _DateFormatter.default;
173
173
  }
174
174
  });
175
- Object.defineProperty(exports, "DepartmentEditor", {
176
- enumerable: true,
177
- get: function () {
178
- return _DepartmentEditor.default;
179
- }
180
- });
181
175
  Object.defineProperty(exports, "DepartmentSelectFilter", {
182
176
  enumerable: true,
183
177
  get: function () {
@@ -190,36 +184,18 @@ Object.defineProperty(exports, "DepartmentSingleSelectFormatter", {
190
184
  return _DepartmentSingleSelectFormatter.default;
191
185
  }
192
186
  });
193
- Object.defineProperty(exports, "DigitalSignEditor", {
194
- enumerable: true,
195
- get: function () {
196
- return _DigitalSignEditor.default;
197
- }
198
- });
199
187
  Object.defineProperty(exports, "DigitalSignFormatter", {
200
188
  enumerable: true,
201
189
  get: function () {
202
190
  return _DigitalSignFormatter.default;
203
191
  }
204
192
  });
205
- Object.defineProperty(exports, "DurationEditor", {
206
- enumerable: true,
207
- get: function () {
208
- return _DurationEditor.default;
209
- }
210
- });
211
193
  Object.defineProperty(exports, "DurationFormatter", {
212
194
  enumerable: true,
213
195
  get: function () {
214
196
  return _DurationFormatter.default;
215
197
  }
216
198
  });
217
- Object.defineProperty(exports, "EmailEditor", {
218
- enumerable: true,
219
- get: function () {
220
- return _EmailEditor.default;
221
- }
222
- });
223
199
  Object.defineProperty(exports, "EmailFormatter", {
224
200
  enumerable: true,
225
201
  get: function () {
@@ -232,12 +208,6 @@ Object.defineProperty(exports, "FieldDisplaySetting", {
232
208
  return _FieldDisplaySetting.default;
233
209
  }
234
210
  });
235
- Object.defineProperty(exports, "FileEditor", {
236
- enumerable: true,
237
- get: function () {
238
- return _FileEditor.default;
239
- }
240
- });
241
211
  Object.defineProperty(exports, "FileFormatter", {
242
212
  enumerable: true,
243
213
  get: function () {
@@ -256,12 +226,6 @@ Object.defineProperty(exports, "FormulaFormatter", {
256
226
  return _FormulaFormatter.default;
257
227
  }
258
228
  });
259
- Object.defineProperty(exports, "GeolocationEditor", {
260
- enumerable: true,
261
- get: function () {
262
- return _GeolocationEditor.default;
263
- }
264
- });
265
229
  Object.defineProperty(exports, "GeolocationFormatter", {
266
230
  enumerable: true,
267
231
  get: function () {
@@ -274,12 +238,6 @@ Object.defineProperty(exports, "IconButton", {
274
238
  return _IconButton.default;
275
239
  }
276
240
  });
277
- Object.defineProperty(exports, "ImageEditor", {
278
- enumerable: true,
279
- get: function () {
280
- return _ImageEditor.default;
281
- }
282
- });
283
241
  Object.defineProperty(exports, "ImageFormatter", {
284
242
  enumerable: true,
285
243
  get: function () {
@@ -376,16 +334,16 @@ Object.defineProperty(exports, "RoleStatusEditor", {
376
334
  return _RoleStatusEditor.default;
377
335
  }
378
336
  });
379
- Object.defineProperty(exports, "RowExpandDialog", {
337
+ Object.defineProperty(exports, "RowExpandEmailFormatter", {
380
338
  enumerable: true,
381
339
  get: function () {
382
- return _RowExpandDialog.default;
340
+ return _RowExpandEmailFormatter.default;
383
341
  }
384
342
  });
385
- Object.defineProperty(exports, "RowExpandEditor", {
343
+ Object.defineProperty(exports, "RowExpandFileFormatter", {
386
344
  enumerable: true,
387
345
  get: function () {
388
- return _RowExpandEditor.default;
346
+ return _RowExpandFileFormatter.default;
389
347
  }
390
348
  });
391
349
  Object.defineProperty(exports, "RowExpandFormatter", {
@@ -394,6 +352,36 @@ Object.defineProperty(exports, "RowExpandFormatter", {
394
352
  return _RowExpandFormatter.default;
395
353
  }
396
354
  });
355
+ Object.defineProperty(exports, "RowExpandFormulaFormatter", {
356
+ enumerable: true,
357
+ get: function () {
358
+ return _RowExpandFormulaFormatter.default;
359
+ }
360
+ });
361
+ Object.defineProperty(exports, "RowExpandImageFormatter", {
362
+ enumerable: true,
363
+ get: function () {
364
+ return _RowExpandImageFormatter.default;
365
+ }
366
+ });
367
+ Object.defineProperty(exports, "RowExpandLinkFormatter", {
368
+ enumerable: true,
369
+ get: function () {
370
+ return _RowExpandLinkFormatter.default;
371
+ }
372
+ });
373
+ Object.defineProperty(exports, "RowExpandRateFormatter", {
374
+ enumerable: true,
375
+ get: function () {
376
+ return _RowExpandRateFormatter.default;
377
+ }
378
+ });
379
+ Object.defineProperty(exports, "RowExpandUrlFormatter", {
380
+ enumerable: true,
381
+ get: function () {
382
+ return _RowExpandUrlFormatter.default;
383
+ }
384
+ });
397
385
  Object.defineProperty(exports, "SelectItem", {
398
386
  enumerable: true,
399
387
  get: function () {
@@ -430,18 +418,6 @@ Object.defineProperty(exports, "TextFormatter", {
430
418
  return _TextFormatter.default;
431
419
  }
432
420
  });
433
- Object.defineProperty(exports, "UploadProgress", {
434
- enumerable: true,
435
- get: function () {
436
- return _UploadProgress.default;
437
- }
438
- });
439
- Object.defineProperty(exports, "UrlEditor", {
440
- enumerable: true,
441
- get: function () {
442
- return _UrlEditor.default;
443
- }
444
- });
445
421
  Object.defineProperty(exports, "UrlFormatter", {
446
422
  enumerable: true,
447
423
  get: function () {
@@ -493,25 +469,22 @@ var _FileItemFormatter = _interopRequireDefault(require("./FileItemFormatter"));
493
469
  var _DigitalSignFormatter = _interopRequireDefault(require("./DigitalSignFormatter"));
494
470
  var _DepartmentSingleSelectFormatter = _interopRequireDefault(require("./DepartmentSingleSelectFormatter"));
495
471
  var _SimpleLongTextFormatter = _interopRequireDefault(require("./SimpleLongTextFormatter"));
472
+ var _RowExpandFileFormatter = _interopRequireDefault(require("./RowExpandFileFormatter"));
473
+ var _RowExpandImageFormatter = _interopRequireDefault(require("./RowExpandImageFormatter"));
474
+ var _RowExpandLinkFormatter = _interopRequireDefault(require("./RowExpandLinkFormatter"));
475
+ var _RowExpandRateFormatter = _interopRequireDefault(require("./RowExpandRateFormatter"));
476
+ var _RowExpandEmailFormatter = _interopRequireDefault(require("./RowExpandEmailFormatter"));
477
+ var _RowExpandUrlFormatter = _interopRequireDefault(require("./RowExpandUrlFormatter"));
478
+ var _RowExpandFormulaFormatter = _interopRequireDefault(require("./RowExpandFormulaFormatter"));
496
479
  var _RowExpandFormatter = _interopRequireDefault(require("./RowExpandFormatter"));
497
- var _RowExpandEditor = _interopRequireDefault(require("./RowExpandEditor"));
498
- var _RowExpandDialog = _interopRequireDefault(require("./RowExpandDialog"));
480
+ var _TextEditor = _interopRequireDefault(require("./TextEditor"));
481
+ var _NumberEditor = _interopRequireDefault(require("./NumberEditor"));
499
482
  var _CheckboxEditor = _interopRequireDefault(require("./CheckboxEditor"));
483
+ var _SingleSelectEditor = _interopRequireDefault(require("./SingleSelectEditor"));
484
+ var _MultipleSelectEditor = _interopRequireDefault(require("./MultipleSelectEditor"));
500
485
  var _CollaboratorEditor = _interopRequireDefault(require("./CollaboratorEditor"));
501
486
  var _DateEditor = _interopRequireDefault(require("./DateEditor"));
502
- var _DepartmentEditor = _interopRequireDefault(require("./Department-editor"));
503
- var _DigitalSignEditor = _interopRequireDefault(require("./DigitalSignEditor"));
504
- var _DurationEditor = _interopRequireDefault(require("./DurationEditor"));
505
- var _EmailEditor = _interopRequireDefault(require("./EmailEditor"));
506
- var _FileEditor = _interopRequireDefault(require("./FileEditor"));
507
- var _GeolocationEditor = _interopRequireDefault(require("./GeolocationEditor"));
508
- var _ImageEditor = _interopRequireDefault(require("./ImageEditor"));
509
487
  var _LinkEditor = _interopRequireDefault(require("./LinkEditor"));
510
- var _MultipleSelectEditor = _interopRequireDefault(require("./MultipleSelectEditor"));
511
- var _NumberEditor = _interopRequireDefault(require("./NumberEditor"));
512
- var _SingleSelectEditor = _interopRequireDefault(require("./SingleSelectEditor"));
513
- var _TextEditor = _interopRequireDefault(require("./TextEditor"));
514
- var _UrlEditor = _interopRequireDefault(require("./UrlEditor"));
515
488
  var _DTablePopover = _interopRequireDefault(require("./DTablePopover"));
516
489
  var _DTableRadio = _interopRequireDefault(require("./DTableRadio"));
517
490
  var _DTableCommonAddTool = _interopRequireDefault(require("./DTableCommonAddTool"));
@@ -534,5 +507,4 @@ var _ClickOutside = _interopRequireDefault(require("./ClickOutside"));
534
507
  var _CollapsibleSettingLayout = _interopRequireDefault(require("./CollapsibleSettingLayout"));
535
508
  var _DTableRadioGroup = _interopRequireDefault(require("./DTableRadioGroup"));
536
509
  var _DTableEmptyTip = _interopRequireDefault(require("./DTableEmptyTip"));
537
- var _IconButton = _interopRequireDefault(require("./IconButton"));
538
- var _UploadProgress = _interopRequireDefault(require("./UploadProgress"));
510
+ var _IconButton = _interopRequireDefault(require("./IconButton"));
package/lib/lang/index.js CHANGED
@@ -4,19 +4,18 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.LANGUAGE = void 0;
8
7
  exports.getLocale = getLocale;
9
8
  exports.getMobileDatePickerLocale = getMobileDatePickerLocale;
10
9
  exports.setLocale = setLocale;
11
10
  exports.substitute = substitute;
12
11
  exports.translateCalendar = translateCalendar;
13
- var _de = _interopRequireDefault(require("../locales/de.json"));
14
- var _en = _interopRequireDefault(require("../locales/en.json"));
15
- var _fr = _interopRequireDefault(require("../locales/fr.json"));
16
- var _pt = _interopRequireDefault(require("../locales/pt.json"));
17
- var _ru = _interopRequireDefault(require("../locales/ru.json"));
18
- var _es = _interopRequireDefault(require("../locales/es.json"));
19
- var _zhCN = _interopRequireDefault(require("../locales/zh-CN.json"));
12
+ var _de = _interopRequireDefault(require("../locals/de"));
13
+ var _en = _interopRequireDefault(require("../locals/en"));
14
+ var _fr = _interopRequireDefault(require("../locals/fr"));
15
+ var _pt = _interopRequireDefault(require("../locals/pt"));
16
+ var _ru = _interopRequireDefault(require("../locals/ru"));
17
+ var _es = _interopRequireDefault(require("../locals/es"));
18
+ var _zhCN = _interopRequireDefault(require("../locals/zh-CN"));
20
19
  const zhCN = require('@seafile/seafile-calendar/lib/locale/zh_CN');
21
20
  const zhTW = require('@seafile/seafile-calendar/lib/locale/zh_TW');
22
21
  const enUS = require('@seafile/seafile-calendar/lib/locale/en_US');
@@ -35,12 +34,19 @@ let langData = {
35
34
  'es': _es.default,
36
35
  'zh-cn': _zhCN.default
37
36
  };
38
- let LANGUAGE = exports.LANGUAGE = 'en';
37
+ let LANGUAGE = 'en';
39
38
  let LANGUAGE_MAP = langData[LANGUAGE];
40
39
  function setLocale(args) {
41
- exports.LANGUAGE = LANGUAGE = typeof args === 'string' ? args : LANGUAGE;
40
+ LANGUAGE = typeof args === 'string' ? args : LANGUAGE;
42
41
  LANGUAGE_MAP = langData[LANGUAGE];
43
42
  }
43
+ function getLocale(key, def) {
44
+ if (!key) return def;
45
+ if (!LANGUAGE_MAP[key]) {
46
+ return def || key;
47
+ }
48
+ return LANGUAGE_MAP[key];
49
+ }
44
50
  function substitute(str, obj) {
45
51
  if (typeof str === 'string') {
46
52
  if (str.indexOf('{') < 0) {
@@ -61,15 +67,6 @@ function substitute(str, obj) {
61
67
  }
62
68
  return '';
63
69
  }
64
- function getLocale(key) {
65
- let obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
66
- if (!key) return '';
67
- let str = LANGUAGE_MAP[key];
68
- if (!str) return key;
69
- const paramKeys = Object.keys(obj);
70
- if (paramKeys.length === 0) return str;
71
- return substitute(str, obj);
72
- }
73
70
  function translateCalendar() {
74
71
  const locale = LANGUAGE ? LANGUAGE : 'en';
75
72
  let language;
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ /* eslint-disable quotes */
8
+ const de = {
9
+ "Add_an_option": "Fügen Sie eine Option hinzu",
10
+ "Search_option": "Finden Sie eine Option",
11
+ "No_options_available": "Es sind keine Optionen verfügbar.",
12
+ "Current_option": "Aktuelle Option",
13
+ "No_option": "Keine Option",
14
+ "Choose_an_option": "Wähle eine Option",
15
+ "Add_a_collaborator": "Fügen Sie einen Mitarbeiter hinzu",
16
+ "Search_collaborator": "Mitarbeiter suchen",
17
+ "No_collaborators_available": "Es sind keine Mitarbeiter verfügbar.",
18
+ "Done": "Erledigt",
19
+ "Choose_a_collaborator": "Wählen Sie einen Mitarbeiter",
20
+ "Please_input": "Bitte eingeben",
21
+ "Please_select": "Auswählen",
22
+ "Clear": "Leeren",
23
+ "Are_you_sure_you_want_to_delete_this_file": "Möchten Sie diese Datei wirklich löschen?",
24
+ "Are_you_sure_you_want_to_delete_this_image": "Möchten Sie das Bild wirklich löschen?",
25
+ "Cancel": "Abbrechen",
26
+ "Delete": "Löschen",
27
+ "Search_department": "Bereich suchen",
28
+ "No_departments_available": "Es sind keine Departments verfügbar.",
29
+ "Current_user_department": "Department des aktuellen Benutzers",
30
+ "Current_user_department_and_sub": "Bereich und Unterbereiche des aktuellen Benutzers",
31
+ "Specific_departments": "Bestimmte Bereiche",
32
+ "Deleted_department": "Der Bereich wurde gelöscht.",
33
+ "Add_filter": "Filter hinzufügen",
34
+ "No_filters": "Keine Filter",
35
+ "Submit": "Abschicken",
36
+ "Select_an_option": "Option auswählen",
37
+ "Add_collaborator": "Mitarbeiter hinzufügen",
38
+ "Add_a_creator": "Mitarbeiter hinzufügen",
39
+ "Add_a_last_modifier": "Letzten Bearbeiter hinzufügen",
40
+ "Invalid_filter": "Ungültiger Filter",
41
+ "Search_column": "Spalte suchen",
42
+ "No_results": "Keine Ergebnisse",
43
+ "Select_option(s)": "Option(en) auswählen",
44
+ "contains": "enthält",
45
+ "does_not_contain": "enthält nicht",
46
+ "is": "ist gleich",
47
+ "is_not": "ist ungleich",
48
+ "equal": "=",
49
+ "not_equal": "≠",
50
+ "less": "<",
51
+ "greater": ">",
52
+ "less_or_equal": "≤",
53
+ "greater_or_equal": "≥",
54
+ "is_empty": "ist leer",
55
+ "is_not_empty": "ist nicht leer",
56
+ "is_within": "ist innerhalb",
57
+ "is_before": "ist vor",
58
+ "is_after": "ist nach",
59
+ "is_on_or_before": "ist am oder vor",
60
+ "is_on_or_after": "ist am oder nach",
61
+ "has_any_of": "enthält einen von",
62
+ "has_all_of": "enthält alle",
63
+ "has_none_of": "enthält nicht",
64
+ "is_exactly": "ist genau",
65
+ "is_current_user_ID": "Ist ID des angemeldeten Benutzers",
66
+ "Current_date": "Aktuelles Datum",
67
+ "Specific_date": "Bestimmtes Datum",
68
+ "x_days_before_current_date": "Tage vor dem aktuellen Datum",
69
+ "x_days_after_current_date": "Tage nach dem aktuellen Datum",
70
+ "is_any_of": "ist eine von",
71
+ "is_none_of": "ist nicht",
72
+ "include_me": "Aktuellen Benutzer inkludieren",
73
+ "today": "Heute",
74
+ "tomorrow": "Morgen",
75
+ "yesterday": "Gestern",
76
+ "one_week_ago": "Vor einer Woche",
77
+ "one_week_from_now": "In einer Woche",
78
+ "one_month_ago": "Vor einem Monat",
79
+ "one_month_from_now": "In einem Monat",
80
+ "number_of_days_ago": "Tage vor Heute",
81
+ "number_of_days_from_now": "Tage von Heute",
82
+ "exact_date": "Exaktes Datum",
83
+ "the_past_week": "letzte Woche",
84
+ "the_past_month": "letzten Monat",
85
+ "the_past_year": "letztes Jahr",
86
+ "the_next_week": "In nächster Woche",
87
+ "the_next_month": "Im nächsten Monat",
88
+ "the_next_year": "Im nächsten Jahr",
89
+ "the_next_numbers_of_days": "Innerhalb der nächsten x Tage",
90
+ "the_past_numbers_of_days": "Innerhalb der letzten x Tage",
91
+ "this_week": "Diese Woche",
92
+ "this_month": "Diesen Monat",
93
+ "this_year": "Dieses Jahr",
94
+ "last_week": "letzte Woche",
95
+ "last_month": "letzten Monat",
96
+ "last_year": "letztes Jahr",
97
+ "URL_is_invalid": "Die URL ist ungültig.",
98
+ "Select_department": "Bereich auswählen",
99
+ "Default": "Standard",
100
+ "Custom": "Benutzerdefiniert",
101
+ "Recently_used": "Kürzlich benutzt"
102
+ };
103
+ var _default = exports.default = de;
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ /* eslint-disable quotes */
8
+ const en = {
9
+ "Add_an_option": "Add an option",
10
+ "Search_option": "Search option",
11
+ "No_options_available": "No options available",
12
+ "Current_option": "Current option",
13
+ "No_option": "No option",
14
+ "Choose_an_option": "Choose an option",
15
+ "Add_a_collaborator": "Add a collaborator",
16
+ "Search_collaborator": "Search collaborator",
17
+ "No_collaborators_available": "No collaborators available",
18
+ "Done": "Done",
19
+ "Choose_a_collaborator": "Choose a collaborator",
20
+ "Please_input": "Please input",
21
+ "Please_select": "Please select",
22
+ "Clear": "Clear",
23
+ "Are_you_sure_you_want_to_delete_this_file": "Are you sure you want to delete this file?",
24
+ "Are_you_sure_you_want_to_delete_this_image": "Are you sure you want to delete this image?",
25
+ "Cancel": "Cancel",
26
+ "Delete": "Delete",
27
+ "Search_department": "Search department",
28
+ "No_departments_available": "No departments available",
29
+ "Current_user_department": "Current user\"s department",
30
+ "Current_user_department_and_sub": "Current user\"s department and sub-departments",
31
+ "Specific_departments": "Specific departments",
32
+ "Deleted_department": "Deleted department",
33
+ "View_original_image": "View original image",
34
+ "Add_filter": "Add filter",
35
+ "Submit": "Submit",
36
+ "No_filters": "No filters",
37
+ "Select_an_option": "Select an option",
38
+ "Add_collaborator": "Add collaborator",
39
+ "Add_a_creator": "Add a creator",
40
+ "Add_a_last_modifier": "Add a last modifier",
41
+ "Invalid_filter": "Invalid filter",
42
+ "Search_column": "Search column",
43
+ "No_results": "No results",
44
+ "Select_option(s)": "Select option(s)",
45
+ "contains": "contains",
46
+ "does_not_contain": "does not contain",
47
+ "is": "is",
48
+ "is_not": "is not",
49
+ "equal": "\u003d",
50
+ "not_equal": "\u2260",
51
+ "less": "\u003C",
52
+ "greater": "\u003E",
53
+ "less_or_equal": "\u2264",
54
+ "greater_or_equal": "\u2265",
55
+ "is_empty": "is empty",
56
+ "is_not_empty": "is not empty",
57
+ "is_within": "is within",
58
+ "is_before": "is before",
59
+ "is_after": "is after",
60
+ "is_on_or_before": "is on or before",
61
+ "is_on_or_after": "is on or after",
62
+ "has_any_of": "has any of",
63
+ "has_all_of": "has all of",
64
+ "has_none_of": "has none of",
65
+ "is_exactly": "is exactly",
66
+ "is_current_user_ID": "is current user's ID",
67
+ "Current_date": "Current date",
68
+ "Specific_date": "Specific date",
69
+ "x_days_before_current_date": "x days before current date",
70
+ "x_days_after_current_date": "x days after current date",
71
+ "is_any_of": "is any of",
72
+ "is_none_of": "is none of",
73
+ "include_me": "include the current user",
74
+ "today": "today",
75
+ "tomorrow": "tomorrow",
76
+ "yesterday": "yesterday",
77
+ "one_week_ago": "one week ago",
78
+ "one_week_from_now": "one week from now",
79
+ "one_month_ago": "one month ago",
80
+ "one_month_from_now": "one month from now",
81
+ "number_of_days_ago": "number of days ago",
82
+ "number_of_days_from_now": "number of days from now",
83
+ "exact_date": "exact date",
84
+ "the_past_week": "last week",
85
+ "the_past_month": "last month",
86
+ "the_past_year": "last year",
87
+ "the_next_week": "the next week",
88
+ "the_next_month": "the next month",
89
+ "the_next_year": "the next year",
90
+ "the_next_numbers_of_days": "the next numbers of days",
91
+ "the_past_numbers_of_days": "the past numbers of days",
92
+ "this_week": "this week",
93
+ "this_month": "this month",
94
+ "this_year": "this year",
95
+ "last_week": "last week",
96
+ "last_month": "last month",
97
+ "last_year": "last year",
98
+ "URL_is_invalid": "URL is invalid",
99
+ "Select_department": "Select department",
100
+ "Default": "Default",
101
+ "Custom": "Custom",
102
+ "Recently_used": "Recently used"
103
+ };
104
+ var _default = exports.default = en;
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ /* eslint-disable quotes */
8
+ const es = {
9
+ "Add_an_option": "Add an option",
10
+ "Search_option": "Search option",
11
+ "No_options_available": " No hay opciones disponibles",
12
+ "Current_option": "Opción actual",
13
+ "No_option": "Sin opciones",
14
+ "Choose_an_option": "Choose an option",
15
+ "Add_a_collaborator": "Añadir a colaborador",
16
+ "Search_collaborator": "Encuentra un colaborador",
17
+ "No_collaborators_available": "No hay colaboradores disponibles.",
18
+ "Done": "Hecho",
19
+ "Choose_a_collaborator": "Choose a collaborator",
20
+ "Please_input": "Please input",
21
+ "Please_select": "Please select",
22
+ "Clear": "Limpiar",
23
+ "Are_you_sure_you_want_to_delete_this_image": "¿Seguro que deseas borrar esta imagen?",
24
+ "Are_you_sure_you_want_to_delete_this_file": "¿Está seguro de querer eliminar este archivo?",
25
+ "Cancel": "Cancelar",
26
+ "Delete": "Borrar",
27
+ "Search_department": "Search department",
28
+ "No_departments_available": "No departments available",
29
+ "Current_user_department": "Current user's department",
30
+ "Current_user_department_and_sub": "Current user's department and sub-departments",
31
+ "Specific_departments": "Specific departments",
32
+ "Deleted_department": "Deleted department",
33
+ "Add_filter": "Añadir filtro",
34
+ "Submit": "Enviar",
35
+ "No_filters": "Sin filtros",
36
+ "Select_an_option": "Elige una opción",
37
+ "Add_collaborator": "Añadir colaborador",
38
+ "Add_a_creator": "Añadir un creador",
39
+ "Add_a_last_modifier": "Añadir un último en modificar",
40
+ "Invalid_filter": "Filtro inválido",
41
+ "Search_column": "Search column",
42
+ "No_results": "Sin resultados.",
43
+ "Select_option(s)": "Elegir opción(es)",
44
+ "contains": "contiene",
45
+ "does_not_contain": "no contiene",
46
+ "is": "es",
47
+ "is_not": "no es",
48
+ "equal": "=",
49
+ "not_equal": "≠",
50
+ "less": "<",
51
+ "greater": ">",
52
+ "less_or_equal": "≤",
53
+ "greater_or_equal": "≥",
54
+ "is_empty": "está en blanco",
55
+ "is_not_empty": "no está en blanco",
56
+ "is_within": "es entre",
57
+ "is_before": "es previo a",
58
+ "is_after": "es posterior a",
59
+ "is_on_or_before": "es en o antes de",
60
+ "is_on_or_after": "es en o después de",
61
+ "has_any_of": "tiene al menos uno de",
62
+ "has_all_of": "tiene todos de",
63
+ "has_none_of": "no tiene ninguno de",
64
+ "is_exactly": "es exactamente",
65
+ "is_current_user_ID": "es el ID del usuario actual",
66
+ "Current_date": "Fecha actual",
67
+ "Specific_date": "Fecha específica",
68
+ "x_days_before_current_date": "x días antes de hoy",
69
+ "x_days_after_current_date": "x días después de hoy",
70
+ "is_any_of": "es al menos uno de",
71
+ "is_none_of": "no es ninguno de",
72
+ "include_me": "incluir el usuario actual",
73
+ "today": "hoy",
74
+ "tomorrow": "mañana",
75
+ "yesterday": "ayer",
76
+ "one_week_ago": "hace una semana",
77
+ "one_week_from_now": "una semana desde ahora",
78
+ "one_month_ago": "hace un mes",
79
+ "one_month_from_now": "un mes desde ahora",
80
+ "number_of_days_ago": "hace tantos días",
81
+ "number_of_days_from_now": "tantos días desde ahora",
82
+ "exact_date": "fecha exacta",
83
+ "the_past_week": "la semana pasada",
84
+ "the_past_month": "el mes pasado",
85
+ "the_past_year": "el año pasado",
86
+ "the_next_week": "la próxima semana",
87
+ "the_next_month": "el próximo mes",
88
+ "the_next_year": "el próximo año",
89
+ "the_next_numbers_of_days": "pasados estos días",
90
+ "the_past_numbers_of_days": "en los últimos días",
91
+ "this_week": "esta semana",
92
+ "this_month": "este mes",
93
+ "this_year": "este año",
94
+ "last_week": "la semana pasada",
95
+ "last_month": "el mes pasado",
96
+ "last_year": "el año pasado",
97
+ "URL_is_invalid": "URL no válida",
98
+ "Select_department": "Select department",
99
+ "Default": "Incumplimiento de contrato",
100
+ "Custom": "Costumbres",
101
+ "Recently_used": "Recientemente usado"
102
+ };
103
+ var _default = exports.default = es;