dtable-ui-component 5.3.0 → 5.3.1-beta

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 (239) hide show
  1. package/assets/dtable-font/dtable-font.eot +0 -0
  2. package/assets/dtable-font/dtable-font.svg +116 -0
  3. package/assets/dtable-font/dtable-font.ttf +0 -0
  4. package/assets/dtable-font/dtable-font.woff +0 -0
  5. package/assets/dtable-font/dtable-font.woff2 +0 -0
  6. package/assets/dtable-font.css +238 -6
  7. package/lib/CheckboxEditor/index.css +3 -20
  8. package/lib/CheckboxEditor/index.js +98 -35
  9. package/lib/CheckboxFormatter/index.js +6 -9
  10. package/lib/CollaboratorEditor/index.css +12 -35
  11. package/lib/CollaboratorEditor/index.js +18 -212
  12. package/lib/CollaboratorEditor/{mb-collaborator-editor-popover → mb-collaborator-editor}/index.js +26 -29
  13. package/lib/CollaboratorEditor/pc-collaborator-editor/index.js +257 -0
  14. package/lib/CollaboratorItem/index.css +1 -1
  15. package/lib/CollaboratorItem/index.js +6 -2
  16. package/lib/DTableCustomizeCollaboratorSelect/index.css +1 -1
  17. package/lib/DTableCustomizeCollaboratorSelect/index.js +1 -1
  18. package/lib/DTableCustomizeSelect/index.css +2 -2
  19. package/lib/DTableCustomizeSelect/index.js +1 -1
  20. package/lib/DTableFiltersPopover/utils/index.js +1 -7
  21. package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +1 -1
  22. package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +1 -1
  23. package/lib/DTableFiltersPopover/widgets/filter-calendar.js +2 -2
  24. package/lib/DTableFiltersPopover/widgets/filter-list/index.css +2 -2
  25. package/lib/DTableSelect/index.js +3 -1
  26. package/lib/DTableSelect/utils.js +1 -1
  27. package/lib/DateEditor/index.js +14 -51
  28. package/lib/DateEditor/pc-date-editor-popover.js +145 -12
  29. package/lib/DeleteTip/index.js +50 -0
  30. package/lib/Department-editor/department-single-select.js +1 -1
  31. package/lib/Department-editor/index.js +3 -4
  32. package/lib/DepartmentSingleSelectFormatter/index.js +2 -1
  33. package/lib/DigitalSignEditor/constants.js +7 -0
  34. package/lib/DigitalSignEditor/index.css +69 -0
  35. package/lib/DigitalSignEditor/index.js +182 -0
  36. package/lib/DigitalSignEditor/service.js +38 -0
  37. package/lib/DigitalSignEditor/signature-board/index.css +35 -0
  38. package/lib/DigitalSignEditor/signature-board/index.js +135 -0
  39. package/lib/DigitalSignEditor/signature-board/signature-tool.js +396 -0
  40. package/lib/DigitalSignEditor/utils.js +29 -0
  41. package/lib/DurationEditor/index.js +111 -0
  42. package/lib/EmailEditor/index.js +59 -0
  43. package/lib/FileEditor/addition-previewer/index.css +1 -0
  44. package/lib/FileEditor/addition-previewer/index.js +52 -0
  45. package/lib/FileEditor/addition-previewer/local-file-addition/index.css +1 -0
  46. package/lib/FileEditor/addition-previewer/local-file-addition/index.js +252 -0
  47. package/lib/FileEditor/constants.js +7 -0
  48. package/lib/FileEditor/files-previewer/file-previewer/dropdown-menu.js +74 -0
  49. package/lib/FileEditor/files-previewer/file-previewer/file-name-editor/index.css +5 -0
  50. package/lib/FileEditor/files-previewer/file-previewer/file-name-editor/index.js +77 -0
  51. package/lib/FileEditor/files-previewer/file-previewer/index.css +88 -0
  52. package/lib/FileEditor/files-previewer/file-previewer/index.js +167 -0
  53. package/lib/FileEditor/files-previewer/index.css +56 -0
  54. package/lib/FileEditor/files-previewer/index.js +277 -0
  55. package/lib/FileEditor/index.css +6 -0
  56. package/lib/FileEditor/index.js +244 -11
  57. package/lib/FileEditor/utils.js +22 -0
  58. package/lib/FileItemFormatter/index.js +19 -20
  59. package/lib/FileUploader/index.css +9 -0
  60. package/lib/FileUploader/index.js +268 -14
  61. package/lib/FormulaFormatter/index.js +2 -1
  62. package/lib/FormulaFormatter/utils.js +0 -31
  63. package/lib/GeolocationEditor/country-editor.js +319 -0
  64. package/lib/GeolocationEditor/index.css +641 -0
  65. package/lib/GeolocationEditor/index.js +241 -0
  66. package/lib/GeolocationEditor/location-editor.js +368 -0
  67. package/lib/GeolocationEditor/map-editor/index.js +456 -0
  68. package/lib/GeolocationEditor/map-editor/large-editor/index.css +137 -0
  69. package/lib/GeolocationEditor/map-editor/large-editor/index.js +461 -0
  70. package/lib/GeolocationEditor/map-editor-utils.js +153 -0
  71. package/lib/GeolocationEditor/map-selection-editor/index.js +455 -0
  72. package/lib/GeolocationEditor/map-selection-editor/large-editor/index.css +1 -0
  73. package/lib/GeolocationEditor/map-selection-editor/large-editor/index.js +447 -0
  74. package/lib/GeolocationEditor/parse-geolocation.js +282 -0
  75. package/lib/GeolocationEditor/province-city-editor.js +292 -0
  76. package/lib/GeolocationEditor/province-editor.js +226 -0
  77. package/lib/GeolocationEditor/selector-header-item.js +28 -0
  78. package/lib/GeolocationEditor/selector-list.js +33 -0
  79. package/lib/GeolocationEditor/with-ref.js +27 -0
  80. package/lib/ImageEditor/addition-previewer/image-link/index.css +45 -0
  81. package/lib/ImageEditor/addition-previewer/image-link/index.js +73 -0
  82. package/lib/ImageEditor/addition-previewer/index.css +106 -0
  83. package/lib/ImageEditor/addition-previewer/index.js +63 -0
  84. package/lib/ImageEditor/addition-previewer/local-image-addition/index.css +125 -0
  85. package/lib/ImageEditor/addition-previewer/local-image-addition/index.js +254 -0
  86. package/lib/ImageEditor/constants.js +7 -0
  87. package/lib/ImageEditor/images-previewer/image-preview/index.css +59 -0
  88. package/lib/ImageEditor/images-previewer/image-preview/index.js +155 -0
  89. package/lib/ImageEditor/images-previewer/index.css +18 -0
  90. package/lib/ImageEditor/images-previewer/index.js +140 -0
  91. package/lib/ImageEditor/index.css +24 -0
  92. package/lib/ImageEditor/index.js +194 -0
  93. package/lib/ImageThumbnail/index.css +20 -0
  94. package/lib/ImageThumbnail/index.js +136 -0
  95. package/lib/LinkEditor/pc-link-editor-popover/index.js +1 -1
  96. package/lib/MultipleSelectEditor/index.js +16 -177
  97. package/lib/NumberEditor/index.js +64 -77
  98. package/lib/RoleStatusEditor/index.css +3 -3
  99. package/lib/RoleStatusEditor/index.js +1 -1
  100. package/lib/RowExpandDialog/body/index.css +21 -0
  101. package/lib/RowExpandDialog/body/index.js +279 -0
  102. package/lib/RowExpandDialog/column-content/index.css +43 -0
  103. package/lib/RowExpandDialog/column-content/index.js +50 -0
  104. package/lib/RowExpandDialog/constants.js +114 -0
  105. package/lib/RowExpandDialog/header/index.css +31 -0
  106. package/lib/RowExpandDialog/header/index.js +33 -0
  107. package/lib/RowExpandDialog/index.css +24 -0
  108. package/lib/RowExpandDialog/index.js +268 -0
  109. package/lib/RowExpandDialog/utils.js +83 -0
  110. package/lib/RowExpandEditor/RowExpandAddBtn/index.css +22 -0
  111. package/lib/RowExpandEditor/RowExpandAddBtn/index.js +24 -0
  112. package/lib/RowExpandEditor/RowExpandCheckboxEditor/index.css +18 -0
  113. package/lib/RowExpandEditor/RowExpandCheckboxEditor/index.js +43 -0
  114. package/lib/RowExpandEditor/RowExpandCollaboratorEditor/index.css +5 -0
  115. package/lib/RowExpandEditor/RowExpandCollaboratorEditor/index.js +232 -0
  116. package/lib/RowExpandEditor/RowExpandDateEditor/index.js +130 -0
  117. package/lib/RowExpandEditor/RowExpandDepartmentEditor/index.js +129 -0
  118. package/lib/RowExpandEditor/RowExpandDigitalSignEditor/index.css +13 -0
  119. package/lib/RowExpandEditor/RowExpandDigitalSignEditor/index.js +208 -0
  120. package/lib/RowExpandEditor/RowExpandDurationEditor/index.js +105 -0
  121. package/lib/RowExpandEditor/RowExpandEmailEditor/index.css +2 -0
  122. package/lib/RowExpandEditor/RowExpandEmailEditor/index.js +125 -0
  123. package/lib/RowExpandEditor/RowExpandFileEditor/index.css +1 -0
  124. package/lib/RowExpandEditor/RowExpandFileEditor/index.js +146 -0
  125. package/lib/RowExpandEditor/RowExpandGeolocationEditor/index.css +17 -0
  126. package/lib/RowExpandEditor/RowExpandGeolocationEditor/index.js +165 -0
  127. package/lib/RowExpandEditor/RowExpandImageEditor/index.css +6 -0
  128. package/lib/RowExpandEditor/RowExpandImageEditor/index.js +170 -0
  129. package/lib/RowExpandEditor/RowExpandLongTextEditor/index.css +6 -0
  130. package/lib/RowExpandEditor/RowExpandLongTextEditor/index.js +124 -0
  131. package/lib/RowExpandEditor/RowExpandMultipleSelectEditor/index.css +44 -0
  132. package/lib/RowExpandEditor/RowExpandMultipleSelectEditor/index.js +224 -0
  133. package/lib/RowExpandEditor/RowExpandNumberEditor/index.js +105 -0
  134. package/lib/RowExpandEditor/RowExpandRateEditor/index.css +13 -0
  135. package/lib/RowExpandEditor/RowExpandRateEditor/index.js +152 -0
  136. package/lib/RowExpandEditor/RowExpandSingleSelectorEditor/index.css +58 -0
  137. package/lib/RowExpandEditor/RowExpandSingleSelectorEditor/index.js +192 -0
  138. package/lib/RowExpandEditor/RowExpandTextEditor/index.css +4 -0
  139. package/lib/RowExpandEditor/RowExpandTextEditor/index.js +127 -0
  140. package/lib/RowExpandEditor/RowExpandUrlEditor/index.css +31 -0
  141. package/lib/RowExpandEditor/RowExpandUrlEditor/index.js +130 -0
  142. package/lib/RowExpandEditor/constants.js +44 -0
  143. package/lib/RowExpandEditor/index.css +0 -0
  144. package/lib/RowExpandEditor/index.js +32 -0
  145. package/lib/RowExpandFormatter/RowExpandDepartmentFormatter/index.js +27 -0
  146. package/lib/{RowExpandEmailFormatter → RowExpandFormatter/RowExpandEmailFormatter}/index.css +1 -1
  147. package/lib/{RowExpandEmailFormatter → RowExpandFormatter/RowExpandEmailFormatter}/index.js +1 -1
  148. package/lib/{RowExpandFileFormatter → RowExpandFormatter/RowExpandFileFormatter}/index.css +6 -6
  149. package/lib/{RowExpandFileFormatter → RowExpandFormatter/RowExpandFileFormatter}/index.js +3 -1
  150. package/lib/{RowExpandFileFormatter → RowExpandFormatter/RowExpandFileFormatter}/row-expand-file-item-formatter.js +10 -11
  151. package/lib/{RowExpandFormulaFormatter → RowExpandFormatter/RowExpandFormulaFormatter}/index.js +11 -10
  152. package/lib/{RowExpandImageFormatter → RowExpandFormatter/RowExpandImageFormatter}/index.css +6 -6
  153. package/lib/{RowExpandImageFormatter → RowExpandFormatter/RowExpandImageFormatter}/index.js +1 -1
  154. package/lib/{RowExpandImageFormatter → RowExpandFormatter/RowExpandImageFormatter}/row-expand-image-item-formatter.js +3 -3
  155. package/lib/{RowExpandLinkFormatter → RowExpandFormatter/RowExpandLinkFormatter}/collaborator-item-formatter.js +1 -1
  156. package/lib/{RowExpandLinkFormatter → RowExpandFormatter/RowExpandLinkFormatter}/index.js +5 -5
  157. package/lib/{RowExpandLinkFormatter → RowExpandFormatter/RowExpandLinkFormatter}/utils.js +1 -1
  158. package/lib/{RowExpandRateFormatter → RowExpandFormatter/RowExpandRateFormatter}/index.css +1 -1
  159. package/lib/RowExpandFormatter/RowExpandUrlFormatter/index.css +1 -0
  160. package/lib/{RowExpandUrlFormatter → RowExpandFormatter/RowExpandUrlFormatter}/index.js +4 -3
  161. package/lib/RowExpandFormatter/constants.js +60 -0
  162. package/lib/RowExpandFormatter/index.css +26 -0
  163. package/lib/RowExpandFormatter/index.js +84 -100
  164. package/lib/SingleSelectEditor/index.js +16 -156
  165. package/lib/TextEditor/index.js +113 -42
  166. package/lib/UploadProgress/index.js +38 -0
  167. package/lib/UrlEditor/index.js +62 -0
  168. package/lib/common/editor-base.js +53 -0
  169. package/lib/constants/file.js +96 -0
  170. package/lib/constants/index.js +34 -2
  171. package/lib/constants/key-codes.js +109 -0
  172. package/lib/css/cell-editor.css +18 -2
  173. package/lib/hooks/index.js +16 -0
  174. package/lib/index.js +74 -46
  175. package/lib/lang/index.js +16 -14
  176. package/lib/locales/de.json +163 -0
  177. package/lib/locales/en.json +163 -0
  178. package/lib/locales/es.json +163 -0
  179. package/lib/locales/fr.json +163 -0
  180. package/lib/locales/pt.json +163 -0
  181. package/lib/locales/ru.json +163 -0
  182. package/lib/locales/zh-CN.json +163 -0
  183. package/lib/select-editor/index.js +6 -6
  184. package/lib/select-editor/{mb-select-editor-popover → mb-select-editor}/index.js +3 -3
  185. package/lib/select-editor/pc-select-editor/index.css +85 -0
  186. package/lib/select-editor/pc-select-editor/index.js +290 -0
  187. package/lib/utils/cell-comparer.js +35 -0
  188. package/lib/utils/cell.js +55 -0
  189. package/lib/utils/column-utils.js +25 -0
  190. package/lib/utils/editor-utils.js +1 -6
  191. package/lib/utils/get-event-transfer.js +75 -0
  192. package/lib/utils/object-utils.js +61 -0
  193. package/lib/utils/url.js +119 -8
  194. package/lib/utils/utils.js +89 -2
  195. package/package.json +3 -2
  196. package/lib/CollaboratorEditor/pc-collaborator-editor-popover/index.js +0 -97
  197. package/lib/FileEditor/pc-files-addition/index.js +0 -1
  198. package/lib/FileEditor/pc-files-addition/pc-file-uploaded-item.js +0 -1
  199. package/lib/FileEditor/pc-files-preview/index.js +0 -1
  200. package/lib/FileEditor/pc-files-preview/pc-file-item-preview.js +0 -1
  201. package/lib/FileItemFormatter/assets/file/192/excel.png +0 -0
  202. package/lib/FileItemFormatter/assets/file/192/file.png +0 -0
  203. package/lib/FileItemFormatter/assets/file/192/music.png +0 -0
  204. package/lib/FileItemFormatter/assets/file/192/pdf.png +0 -0
  205. package/lib/FileItemFormatter/assets/file/192/pic.png +0 -0
  206. package/lib/FileItemFormatter/assets/file/192/ppt.png +0 -0
  207. package/lib/FileItemFormatter/assets/file/192/txt.png +0 -0
  208. package/lib/FileItemFormatter/assets/file/192/video.png +0 -0
  209. package/lib/FileItemFormatter/assets/file/192/word.png +0 -0
  210. package/lib/FileItemFormatter/assets/file/24/excel.png +0 -0
  211. package/lib/FileItemFormatter/assets/file/24/file.png +0 -0
  212. package/lib/FileItemFormatter/assets/file/24/music.png +0 -0
  213. package/lib/FileItemFormatter/assets/file/24/pdf.png +0 -0
  214. package/lib/FileItemFormatter/assets/file/24/pic.png +0 -0
  215. package/lib/FileItemFormatter/assets/file/24/ppt.png +0 -0
  216. package/lib/FileItemFormatter/assets/file/24/txt.png +0 -0
  217. package/lib/FileItemFormatter/assets/file/24/video.png +0 -0
  218. package/lib/FileItemFormatter/assets/file/24/word.png +0 -0
  219. package/lib/FileItemFormatter/assets/folder/folder-192.png +0 -0
  220. package/lib/FileItemFormatter/assets/folder/folder-24.png +0 -0
  221. package/lib/FileItemFormatter/utils.js +0 -99
  222. package/lib/MultipleSelectEditor/index.css +0 -9
  223. package/lib/RowExpandUrlFormatter/index.css +0 -1
  224. package/lib/SingleSelectEditor/index.css +0 -14
  225. package/lib/locals/de.js +0 -103
  226. package/lib/locals/en.js +0 -104
  227. package/lib/locals/es.js +0 -103
  228. package/lib/locals/fr.js +0 -103
  229. package/lib/locals/pt.js +0 -103
  230. package/lib/locals/ru.js +0 -103
  231. package/lib/locals/zh-CN.js +0 -104
  232. package/lib/select-editor/pc-select-editor-popover/index.css +0 -71
  233. package/lib/select-editor/pc-select-editor-popover/index.js +0 -122
  234. /package/lib/CollaboratorEditor/{mb-collaborator-editor-popover → mb-collaborator-editor}/index.css +0 -0
  235. /package/lib/CollaboratorEditor/{pc-collaborator-editor-popover → pc-collaborator-editor}/index.css +0 -0
  236. /package/lib/{RowExpandLinkFormatter → RowExpandFormatter/RowExpandLinkFormatter}/index.css +0 -0
  237. /package/lib/{RowExpandLinkFormatter → RowExpandFormatter/RowExpandLinkFormatter}/value-display-utils.js +0 -0
  238. /package/lib/{RowExpandRateFormatter → RowExpandFormatter/RowExpandRateFormatter}/index.js +0 -0
  239. /package/lib/select-editor/{mb-select-editor-popover → mb-select-editor}/index.css +0 -0
@@ -0,0 +1,109 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ const keyCodes = {
8
+ Backspace: 8,
9
+ Tab: 9,
10
+ Enter: 13,
11
+ Shift: 16,
12
+ Ctrl: 17,
13
+ Alt: 18,
14
+ PauseBreak: 19,
15
+ CapsLock: 20,
16
+ Escape: 27,
17
+ Esc: 27,
18
+ Space: 32,
19
+ PageUp: 33,
20
+ PageDown: 34,
21
+ End: 35,
22
+ Home: 36,
23
+ LeftArrow: 37,
24
+ UpArrow: 38,
25
+ RightArrow: 39,
26
+ DownArrow: 40,
27
+ Insert: 45,
28
+ Delete: 46,
29
+ 0: 48,
30
+ 1: 49,
31
+ 2: 50,
32
+ 3: 51,
33
+ 4: 52,
34
+ 5: 53,
35
+ 6: 54,
36
+ 7: 55,
37
+ 8: 56,
38
+ 9: 57,
39
+ a: 65,
40
+ b: 66,
41
+ c: 67,
42
+ d: 68,
43
+ e: 69,
44
+ f: 70,
45
+ g: 71,
46
+ h: 72,
47
+ i: 73,
48
+ j: 74,
49
+ k: 75,
50
+ l: 76,
51
+ m: 77,
52
+ n: 78,
53
+ o: 79,
54
+ p: 80,
55
+ q: 81,
56
+ r: 82,
57
+ s: 83,
58
+ t: 84,
59
+ u: 85,
60
+ v: 86,
61
+ w: 87,
62
+ x: 88,
63
+ y: 89,
64
+ z: 90,
65
+ LeftWindowKey: 91,
66
+ RightWindowKey: 92,
67
+ SelectKey: 93,
68
+ NumPad0: 96,
69
+ NumPad1: 97,
70
+ NumPad2: 98,
71
+ NumPad3: 99,
72
+ NumPad4: 100,
73
+ NumPad5: 101,
74
+ NumPad6: 102,
75
+ NumPad7: 103,
76
+ NumPad8: 104,
77
+ NumPad9: 105,
78
+ Multiply: 106,
79
+ Add: 107,
80
+ Subtract: 109,
81
+ DecimalPoint: 110,
82
+ Divide: 111,
83
+ F1: 112,
84
+ F2: 113,
85
+ F3: 114,
86
+ F4: 115,
87
+ F5: 116,
88
+ F6: 117,
89
+ F7: 118,
90
+ F8: 119,
91
+ F9: 120,
92
+ F10: 121,
93
+ F12: 123,
94
+ NumLock: 144,
95
+ ScrollLock: 145,
96
+ SemiColon: 186,
97
+ EqualSign: 187,
98
+ Comma: 188,
99
+ Dash: 189,
100
+ Period: 190,
101
+ ForwardSlash: 191,
102
+ GraveAccent: 192,
103
+ OpenBracket: 219,
104
+ BackSlash: 220,
105
+ CloseBracket: 221,
106
+ SingleQuote: 222,
107
+ ChineseInputMethod: 229
108
+ };
109
+ var _default = exports.default = keyCodes;
@@ -1,7 +1,23 @@
1
- .dtable-ui-editor-popover {
1
+ .dtable-ui-editor-container {
2
2
  width: 300px;
3
- max-width: 100%;
4
3
  box-shadow: 0 0 5px #ccc;
5
4
  background-color: #fff;
6
5
  z-index: 10;
7
6
  }
7
+
8
+ .dtable-ui.collaborator-item.dtable-ui-unknown-collaborator .collaborator-avatar {
9
+ display: none;
10
+ }
11
+
12
+ .dtable-ui.collaborator-item.dtable-ui-unknown-collaborator {
13
+ padding-left: 8px;
14
+ }
15
+
16
+
17
+ .dtable-ui-editor-container .dtable-ui-editor-no-search-result {
18
+ color: #666666;
19
+ font-size: 14px;
20
+ padding-left: 10px;
21
+ padding: 10px;
22
+ overflow: auto;
23
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _commonHooks = require("./common-hooks");
7
+ Object.keys(_commonHooks).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _commonHooks[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _commonHooks[key];
14
+ }
15
+ });
16
+ });
package/lib/index.js CHANGED
@@ -172,6 +172,12 @@ 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
+ });
175
181
  Object.defineProperty(exports, "DepartmentSelectFilter", {
176
182
  enumerable: true,
177
183
  get: function () {
@@ -184,18 +190,36 @@ Object.defineProperty(exports, "DepartmentSingleSelectFormatter", {
184
190
  return _DepartmentSingleSelectFormatter.default;
185
191
  }
186
192
  });
193
+ Object.defineProperty(exports, "DigitalSignEditor", {
194
+ enumerable: true,
195
+ get: function () {
196
+ return _DigitalSignEditor.default;
197
+ }
198
+ });
187
199
  Object.defineProperty(exports, "DigitalSignFormatter", {
188
200
  enumerable: true,
189
201
  get: function () {
190
202
  return _DigitalSignFormatter.default;
191
203
  }
192
204
  });
205
+ Object.defineProperty(exports, "DurationEditor", {
206
+ enumerable: true,
207
+ get: function () {
208
+ return _DurationEditor.default;
209
+ }
210
+ });
193
211
  Object.defineProperty(exports, "DurationFormatter", {
194
212
  enumerable: true,
195
213
  get: function () {
196
214
  return _DurationFormatter.default;
197
215
  }
198
216
  });
217
+ Object.defineProperty(exports, "EmailEditor", {
218
+ enumerable: true,
219
+ get: function () {
220
+ return _EmailEditor.default;
221
+ }
222
+ });
199
223
  Object.defineProperty(exports, "EmailFormatter", {
200
224
  enumerable: true,
201
225
  get: function () {
@@ -208,6 +232,12 @@ Object.defineProperty(exports, "FieldDisplaySetting", {
208
232
  return _FieldDisplaySetting.default;
209
233
  }
210
234
  });
235
+ Object.defineProperty(exports, "FileEditor", {
236
+ enumerable: true,
237
+ get: function () {
238
+ return _FileEditor.default;
239
+ }
240
+ });
211
241
  Object.defineProperty(exports, "FileFormatter", {
212
242
  enumerable: true,
213
243
  get: function () {
@@ -226,6 +256,12 @@ Object.defineProperty(exports, "FormulaFormatter", {
226
256
  return _FormulaFormatter.default;
227
257
  }
228
258
  });
259
+ Object.defineProperty(exports, "GeolocationEditor", {
260
+ enumerable: true,
261
+ get: function () {
262
+ return _GeolocationEditor.default;
263
+ }
264
+ });
229
265
  Object.defineProperty(exports, "GeolocationFormatter", {
230
266
  enumerable: true,
231
267
  get: function () {
@@ -238,6 +274,12 @@ Object.defineProperty(exports, "IconButton", {
238
274
  return _IconButton.default;
239
275
  }
240
276
  });
277
+ Object.defineProperty(exports, "ImageEditor", {
278
+ enumerable: true,
279
+ get: function () {
280
+ return _ImageEditor.default;
281
+ }
282
+ });
241
283
  Object.defineProperty(exports, "ImageFormatter", {
242
284
  enumerable: true,
243
285
  get: function () {
@@ -334,16 +376,16 @@ Object.defineProperty(exports, "RoleStatusEditor", {
334
376
  return _RoleStatusEditor.default;
335
377
  }
336
378
  });
337
- Object.defineProperty(exports, "RowExpandEmailFormatter", {
379
+ Object.defineProperty(exports, "RowExpandDialog", {
338
380
  enumerable: true,
339
381
  get: function () {
340
- return _RowExpandEmailFormatter.default;
382
+ return _RowExpandDialog.default;
341
383
  }
342
384
  });
343
- Object.defineProperty(exports, "RowExpandFileFormatter", {
385
+ Object.defineProperty(exports, "RowExpandEditor", {
344
386
  enumerable: true,
345
387
  get: function () {
346
- return _RowExpandFileFormatter.default;
388
+ return _RowExpandEditor.default;
347
389
  }
348
390
  });
349
391
  Object.defineProperty(exports, "RowExpandFormatter", {
@@ -352,36 +394,6 @@ Object.defineProperty(exports, "RowExpandFormatter", {
352
394
  return _RowExpandFormatter.default;
353
395
  }
354
396
  });
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
- });
385
397
  Object.defineProperty(exports, "SelectItem", {
386
398
  enumerable: true,
387
399
  get: function () {
@@ -418,6 +430,18 @@ Object.defineProperty(exports, "TextFormatter", {
418
430
  return _TextFormatter.default;
419
431
  }
420
432
  });
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
+ });
421
445
  Object.defineProperty(exports, "UrlFormatter", {
422
446
  enumerable: true,
423
447
  get: function () {
@@ -469,22 +493,25 @@ var _FileItemFormatter = _interopRequireDefault(require("./FileItemFormatter"));
469
493
  var _DigitalSignFormatter = _interopRequireDefault(require("./DigitalSignFormatter"));
470
494
  var _DepartmentSingleSelectFormatter = _interopRequireDefault(require("./DepartmentSingleSelectFormatter"));
471
495
  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"));
479
496
  var _RowExpandFormatter = _interopRequireDefault(require("./RowExpandFormatter"));
480
- var _TextEditor = _interopRequireDefault(require("./TextEditor"));
481
- var _NumberEditor = _interopRequireDefault(require("./NumberEditor"));
497
+ var _RowExpandEditor = _interopRequireDefault(require("./RowExpandEditor"));
498
+ var _RowExpandDialog = _interopRequireDefault(require("./RowExpandDialog"));
482
499
  var _CheckboxEditor = _interopRequireDefault(require("./CheckboxEditor"));
483
- var _SingleSelectEditor = _interopRequireDefault(require("./SingleSelectEditor"));
484
- var _MultipleSelectEditor = _interopRequireDefault(require("./MultipleSelectEditor"));
485
500
  var _CollaboratorEditor = _interopRequireDefault(require("./CollaboratorEditor"));
486
501
  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"));
487
509
  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"));
488
515
  var _DTablePopover = _interopRequireDefault(require("./DTablePopover"));
489
516
  var _DTableRadio = _interopRequireDefault(require("./DTableRadio"));
490
517
  var _DTableCommonAddTool = _interopRequireDefault(require("./DTableCommonAddTool"));
@@ -507,4 +534,5 @@ var _ClickOutside = _interopRequireDefault(require("./ClickOutside"));
507
534
  var _CollapsibleSettingLayout = _interopRequireDefault(require("./CollapsibleSettingLayout"));
508
535
  var _DTableRadioGroup = _interopRequireDefault(require("./DTableRadioGroup"));
509
536
  var _DTableEmptyTip = _interopRequireDefault(require("./DTableEmptyTip"));
510
- var _IconButton = _interopRequireDefault(require("./IconButton"));
537
+ var _IconButton = _interopRequireDefault(require("./IconButton"));
538
+ var _UploadProgress = _interopRequireDefault(require("./UploadProgress"));
package/lib/lang/index.js CHANGED
@@ -9,13 +9,13 @@ exports.getMobileDatePickerLocale = getMobileDatePickerLocale;
9
9
  exports.setLocale = setLocale;
10
10
  exports.substitute = substitute;
11
11
  exports.translateCalendar = translateCalendar;
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"));
12
+ var _de = _interopRequireDefault(require("../locales/de.json"));
13
+ var _en = _interopRequireDefault(require("../locales/en.json"));
14
+ var _fr = _interopRequireDefault(require("../locales/fr.json"));
15
+ var _pt = _interopRequireDefault(require("../locales/pt.json"));
16
+ var _ru = _interopRequireDefault(require("../locales/ru.json"));
17
+ var _es = _interopRequireDefault(require("../locales/es.json"));
18
+ var _zhCN = _interopRequireDefault(require("../locales/zh-CN.json"));
19
19
  const zhCN = require('@seafile/seafile-calendar/lib/locale/zh_CN');
20
20
  const zhTW = require('@seafile/seafile-calendar/lib/locale/zh_TW');
21
21
  const enUS = require('@seafile/seafile-calendar/lib/locale/en_US');
@@ -40,13 +40,6 @@ function setLocale(args) {
40
40
  LANGUAGE = typeof args === 'string' ? args : LANGUAGE;
41
41
  LANGUAGE_MAP = langData[LANGUAGE];
42
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
- }
50
43
  function substitute(str, obj) {
51
44
  if (typeof str === 'string') {
52
45
  if (str.indexOf('{') < 0) {
@@ -67,6 +60,15 @@ function substitute(str, obj) {
67
60
  }
68
61
  return '';
69
62
  }
63
+ function getLocale(key) {
64
+ let obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
65
+ if (!key) return '';
66
+ let str = LANGUAGE_MAP[key];
67
+ if (!str) return key;
68
+ const paramKeys = Object.keys(obj);
69
+ if (paramKeys.length === 0) return str;
70
+ return substitute(str, obj);
71
+ }
70
72
  function translateCalendar() {
71
73
  const locale = LANGUAGE ? LANGUAGE : 'en';
72
74
  let language;
@@ -0,0 +1,163 @@
1
+ {
2
+ "Add_an_option": "Add an option",
3
+ "Search_option": "Option suchen",
4
+ "No_options_available": "Es sind keine Optionen verfügbar.",
5
+ "Current_option": "Aktuelle Option",
6
+ "No_option": "Keine Option",
7
+ "Choose_an_option": "Choose an option",
8
+ "Add_a_collaborator": "Add a collaborator",
9
+ "Search_collaborator": "Mitarbeiter suchen",
10
+ "No_collaborators_available": "Es sind keine Mitarbeiter verfügbar.",
11
+ "Done": "Erledigt",
12
+ "Choose_a_collaborator": "Choose a collaborator",
13
+ "Please_input": "Bitte eingeben",
14
+ "Please_select": "Auswählen",
15
+ "Clear": "Leeren",
16
+ "Are_you_sure_you_want_to_delete_this_file": "Möchten Sie diese Datei wirklich löschen?",
17
+ "Are_you_sure_you_want_to_delete_this_image": "Möchten Sie diese Bild wirklich löschen?",
18
+ "Cancel": "Abbrechen",
19
+ "Delete": "Löschen",
20
+ "Search_department": "Bereich suchen",
21
+ "No_departments_available": "Es sind keine Bereiche verfügbar.",
22
+ "Current_user_department": "Bereich des angemeldeten Benutzers",
23
+ "Current_user_department_and_sub": "Bereich und Unterbereiche des angemeldeten Benutzers",
24
+ "Specific_departments": "Bestimmte Bereiche",
25
+ "Deleted_department": "Gelöschter Bereich",
26
+ "View_original_image": "View original image",
27
+ "Add_filter": "Filter hinzufügen",
28
+ "Submit": "Abschicken",
29
+ "No_filters": "Es sind keine Filter definiert.",
30
+ "Select_an_option": "Option wählen",
31
+ "Add_collaborator": "Mitarbeiter hinzufügen",
32
+ "Add_a_creator": "Ersteller hinzufügen",
33
+ "Add_a_last_modifier": "Letzten Bearbeiter hinzufügen",
34
+ "Invalid_filter": "Ungültiger Filter",
35
+ "Search_column": "Spalte suchen",
36
+ "No_results": "Keine Ergebnisse",
37
+ "Select_option(s)": "Option(en) wählen",
38
+ "contains": "enthält",
39
+ "does_not_contain": "enthält nicht",
40
+ "is": "ist gleich",
41
+ "is_not": "ist ungleich",
42
+ "equal": "=",
43
+ "not_equal": "≠",
44
+ "less": "<",
45
+ "greater": ">",
46
+ "less_or_equal": "≤",
47
+ "greater_or_equal": "≥",
48
+ "is_empty": "ist leer",
49
+ "is_not_empty": "ist nicht leer",
50
+ "is_within": "ist innerhalb",
51
+ "is_before": "ist vor",
52
+ "is_after": "ist nach",
53
+ "is_on_or_before": "ist am oder vor",
54
+ "is_on_or_after": "ist am oder nach",
55
+ "has_any_of": "enthält einen von",
56
+ "has_all_of": "enthält alle",
57
+ "has_none_of": "enthält nicht",
58
+ "is_exactly": "ist genau",
59
+ "is_current_user_ID": "ist ID des angemeldeten Benutzers",
60
+ "Current_date": "Aktuelles Datum",
61
+ "Specific_date": "Bestimmtes Datum",
62
+ "x_days_before_current_date": "Tage vor dem aktuellen Datum",
63
+ "x_days_after_current_date": "Tage nach dem aktuellen Datum",
64
+ "is_any_of": "ist eine von",
65
+ "is_none_of": "ist nicht",
66
+ "include_me": "ist der aktuelle Benutzer",
67
+ "today": "Heute",
68
+ "tomorrow": "Morgen",
69
+ "yesterday": "Gestern",
70
+ "one_week_ago": "Vor einer Woche",
71
+ "one_week_from_now": "In einer Woche",
72
+ "one_month_ago": "Vor einem Monat",
73
+ "one_month_from_now": "In einem Monat",
74
+ "number_of_days_ago": "Tage vor Heute",
75
+ "number_of_days_from_now": "Tage von Heute",
76
+ "exact_date": "Exaktes Datum",
77
+ "the_past_week": "letzte Woche",
78
+ "the_past_month": "letzten Monat",
79
+ "the_past_year": "letztes Jahr",
80
+ "the_next_week": "In nächster Woche",
81
+ "the_next_month": "Im nächsten Monat",
82
+ "the_next_year": "Im nächsten Jahr",
83
+ "the_next_numbers_of_days": "Innerhalb der nächsten x Tage",
84
+ "the_past_numbers_of_days": "Innerhalb der letzten x Tage",
85
+ "this_week": "Diese Woche",
86
+ "this_month": "Diesen Monat",
87
+ "this_year": "Dieses Jahr",
88
+ "last_week": "letzte Woche",
89
+ "last_month": "letzten Monat",
90
+ "last_year": "letztes Jahr",
91
+ "URL_is_invalid": "Die URL ist ungültig.",
92
+ "Select_department": "Bereich auswählen",
93
+ "Default": "Einfach",
94
+ "Custom": "Benutzerdefiniert",
95
+ "Recently_used": "Recently used",
96
+ "Digital_signature": "Digitale Signatur",
97
+ "Please_sign_on_this_panel": "Auf dieser Fläche unterschreiben",
98
+ "Re-sign": "Erneut unterschreiben",
99
+ "Saving": "Speicherung ist im Gange ...",
100
+ "Save": "Speichern",
101
+ "All_files": "Alle Dateien",
102
+ "Add_files": "Dateien hinzufügen",
103
+ "Local_Files": "Lokale Dateien",
104
+ "Indexing": "Die Indexierung ist im Gang.",
105
+ "Network_Error": "Netzwerkfehler",
106
+ "Re_upload": "Erneuter Upload",
107
+ "Drag_and_drop_to_add_a_file": "Datei mit Drag & Drop einfügen",
108
+ "Drag_and_drop_files_or_click_here_to_add": "Dateien mit Drag & Drop einfügen oder hier klicken",
109
+ "Upload": "Hochladen",
110
+ "Select": "Auswählen",
111
+ "Download": "Download",
112
+ "Select_all": "Alle auswählen",
113
+ "1_file_selected": "1 ausgewählte Datei",
114
+ "Selected_xxx_files": "{{ count }} ausgewählte Dateien",
115
+ "xxx_existing_file": "{{ count }} Datei",
116
+ "xxx_existing_files": "{{ count }} Dateien",
117
+ "More_operations": "Weitere Aktionen",
118
+ "Rename": "Umbenennen",
119
+ "No_options": "Keine Optionen",
120
+ "Search_country": "Land suchen",
121
+ "Province/City/District_must_be_filled_in": "Bundesland/Stadt/Bezirk muss ausgefüllt werden.",
122
+ "Address_information": "Adresse",
123
+ "Select_province_city_district": "Bundesland, Stadt und Bezirk auswählen ",
124
+ "Detailed_address": "Adressdetails",
125
+ "Detailed_address_placeholder": "Geben Sie Ihre Adressdetails wie Straße, Hausnummer und Stadt ein.",
126
+ "Auto_recognition": "Autoerkennung",
127
+ "Try_pasting_addresses_such_as_provinces/cities/districts_roads_neighborhoods_etc_to_quickly_identify_the_address_information": "Fügen Sie Adressen wie Bundesländer/Städte/Bezirke, Straßen, Stadtteile, usw. ein, um die Adressinformationen schnell zu identifizieren ",
128
+ "Loading_geolocation_data": "Die Positionsdaten werden geladen.",
129
+ "Province/City_must_be_filled_in": "Bundesland/Stadt muss ausgefüllt werden.",
130
+ "Select_province_city": "Bundesland/Stadt auswählen ",
131
+ "Try_pasting_addresses_such_as_provinces/cities_information_to_quickly_identify_the_address_information": "Fügen Sie Adressen wie Bundesländer/Städte ein, um die Adressinformationen schnell zu identifizieren ",
132
+ "Search_province": "Provinz suchen",
133
+ "Select_location": "Auswählen",
134
+ "Positioning_failed": "Die Positionierung ist gescheitert.",
135
+ "Address": "Adresse",
136
+ "Enter_longitude_and_latitude": "Längengrad und Breitengrad eingeben",
137
+ "Enter_latitude_and_longitude": "Längen- und Breitengrad eingeben",
138
+ "The_map_plugin_is_not_properly_configured_contact_the_administrator": "Das Karten-Plugin ist nicht richtig konfiguriert. Kontaktieren Sie den Administrator.",
139
+ "Fill_in": "Ausfüllen",
140
+ "Search_failed_please_enter_detailed_address": "Die Suche ist fehlgeschlagen. Geben Sie die Adresse mit mehr Details ein.",
141
+ "This_map_type_currently_does_not_support_map_point_selection": "Dieser Kartentyp unterstützt derzeit nicht die Auswahl von Kartenpunkten.",
142
+ "Please_enter_the_address": "Adresse eingeben",
143
+ "Add_images": "Bilder hinzufügen",
144
+ "All_images": "Alle Bilder",
145
+ "Local_Images": "Lokale Bilder",
146
+ "Image_Link": "Bild-Link",
147
+ "Enter_a_URL": "URL eingeben",
148
+ "Please_enter_the_correct_image_address": "Geben Sie die korrekte Adresse des Bildes ein.",
149
+ "Drag_and_drop_to_add_an_image": "Bild mit Drag & Drop einfügen",
150
+ "Drag_and_drop_images_or_click_or_paste_here_to_add": "Bilder mit Drag & Drop einfügen oder hier klicken",
151
+ "Save_failed": "Die Speicherung ist fehlgeschlagen.",
152
+ "Permission_denied": "Sie haben keine ausreichende Berechtigung.",
153
+ "Error": "Fehler.",
154
+ "Please_check_the_network": "Überprüfen Sie die Netzwerkverbindung.",
155
+ "Close_expanded_record": "Erweiterten Eintrag schliessen",
156
+ "Unknown": "Unbekannt",
157
+ "Edit_signature": "Signatur bearbeiten",
158
+ "Edit_Location": "Ort bearbeiten",
159
+ "Long_text_exceed_limit_message": "Das Dokument hat eine Länge von mehr als 100.000 Zeichen und kann daher nicht gespeichert werden.",
160
+ "Long_text_exceed_limit_suggest": "Die Länge dieses Dokuments überschreitet das Maximum von 100.000 Zeichen. Nur 100.000 Zeichen werden gespeichert.",
161
+ "Deleted_option": "Die Option wurde gelöscht.",
162
+ "Input_does_not_meet_specifications": "Die Eingabe entspricht nicht der Vorgabe."
163
+ }