dtable-ui-component 6.0.49 → 6.0.50

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 (298) hide show
  1. package/lib/ActionSheet/index.js +94 -68
  2. package/lib/ActivityIndicator/index.js +36 -28
  3. package/lib/AsyncUserSelect/index.css +122 -0
  4. package/lib/AsyncUserSelect/index.js +260 -0
  5. package/lib/AsyncUserSelect/user-item.js +55 -0
  6. package/lib/AutoNumberFormatter/index.js +5 -3
  7. package/lib/Badge/index.js +12 -8
  8. package/lib/ButtonFormatter/index.js +15 -10
  9. package/lib/CTimeFormatter/index.js +5 -3
  10. package/lib/CheckboxEditor/index.js +22 -13
  11. package/lib/CheckboxEditor/mb-editor.js +7 -5
  12. package/lib/CheckboxEditor/pc-editor.js +7 -5
  13. package/lib/CheckboxFormatter/index.js +7 -5
  14. package/lib/CollaboratorEditor/index.js +24 -15
  15. package/lib/CollaboratorEditor/mb-editor/index.js +19 -13
  16. package/lib/CollaboratorEditor/pc-editor/index.js +50 -42
  17. package/lib/CollaboratorFormatter/index.js +8 -7
  18. package/lib/CollaboratorItem/index.js +21 -16
  19. package/lib/CollapsibleSettingLayout/index.js +17 -12
  20. package/lib/Comment/body/comment.js +78 -62
  21. package/lib/Comment/body/index.js +14 -11
  22. package/lib/Comment/footer/btns/index.js +68 -53
  23. package/lib/Comment/footer/index.js +29 -27
  24. package/lib/Comment/footer/input/index.js +44 -39
  25. package/lib/Comment/footer/input/participant/index.js +18 -13
  26. package/lib/Comment/footer/participants/index.js +31 -28
  27. package/lib/Comment/footer/participants/participant/index.js +18 -15
  28. package/lib/Comment/footer/participants/participant-select/index.js +66 -55
  29. package/lib/Comment/index.js +33 -28
  30. package/lib/CreatorFormatter/index.js +8 -7
  31. package/lib/DTableColorPicker/ColorPickerPortal/index.js +5 -3
  32. package/lib/DTableColorPicker/index.js +135 -99
  33. package/lib/DTableCommonAddTool/index.js +10 -7
  34. package/lib/DTableCustomFooter/index.js +5 -3
  35. package/lib/DTableCustomizeCollaboratorSelect/index.js +38 -32
  36. package/lib/DTableCustomizeSelect/index.js +51 -44
  37. package/lib/DTableEmptyTip/index.js +20 -16
  38. package/lib/DTableFiltersPopover/index.js +71 -61
  39. package/lib/DTableFiltersPopover/utils/filter-item-utils.js +74 -57
  40. package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +64 -49
  41. package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +49 -41
  42. package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +57 -47
  43. package/lib/DTableFiltersPopover/widgets/filter-calendar.js +35 -31
  44. package/lib/DTableFiltersPopover/widgets/filter-group.js +38 -32
  45. package/lib/DTableFiltersPopover/widgets/filter-item.js +125 -106
  46. package/lib/DTableFiltersPopover/widgets/filter-list/index.js +18 -17
  47. package/lib/DTableFiltersPopover/widgets/rate-item.js +12 -9
  48. package/lib/DTableGroupSelect/index.js +52 -44
  49. package/lib/DTableGroupSelect/option.js +5 -3
  50. package/lib/DTableGroupSelect/select-option-group.js +31 -25
  51. package/lib/DTableModalHeader/index.js +13 -9
  52. package/lib/DTablePopover/index.js +9 -6
  53. package/lib/DTableRadio/index.js +20 -17
  54. package/lib/DTableRadioGroup/index.js +21 -18
  55. package/lib/DTableSearchInput/index.js +22 -18
  56. package/lib/DTableSelect/dtable-select-label.js +12 -7
  57. package/lib/DTableSelect/index.js +2 -1
  58. package/lib/DTableSelect/utils.js +34 -20
  59. package/lib/DTableSwitch/index.js +25 -17
  60. package/lib/DateEditor/index.js +25 -16
  61. package/lib/DateEditor/mb-editor/index.js +90 -68
  62. package/lib/DateEditor/pc-editor.js +38 -34
  63. package/lib/DateFormatter/index.js +5 -3
  64. package/lib/DeleteTip/index.js +29 -20
  65. package/lib/DepartmentMultipleSelectEditor/index.js +57 -49
  66. package/lib/DepartmentSelectFilter/index.js +8 -1
  67. package/lib/DepartmentSingleSelectEditor/index.js +22 -13
  68. package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +75 -55
  69. package/lib/DepartmentSingleSelectEditor/pc-editor/department-single-select.js +78 -61
  70. package/lib/DepartmentSingleSelectEditor/pc-editor/index.js +14 -11
  71. package/lib/DepartmentSingleSelectFormatter/index.js +13 -9
  72. package/lib/DigitalSignEditor/index.js +22 -13
  73. package/lib/DigitalSignEditor/mb-editor/index.js +39 -24
  74. package/lib/DigitalSignEditor/pc-editor/index.js +44 -30
  75. package/lib/DigitalSignEditor/signature-board/index.js +19 -15
  76. package/lib/DigitalSignFormatter/index.js +23 -19
  77. package/lib/Drawer/index.js +4 -1
  78. package/lib/DurationEditor/index.js +2 -1
  79. package/lib/DurationFormatter/index.js +5 -3
  80. package/lib/EditEditorButton/index.js +5 -3
  81. package/lib/EmailEditor/index.js +2 -1
  82. package/lib/EmailFormatter/index.js +5 -3
  83. package/lib/FieldDisplaySetting/field-item.js +25 -19
  84. package/lib/FieldDisplaySetting/index.js +47 -38
  85. package/lib/FileEditor/files-previewer/index.js +22 -13
  86. package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +43 -28
  87. package/lib/FileEditor/files-previewer/mb-previewer/index.js +24 -21
  88. package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/dropdown-menu.js +30 -24
  89. package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/file-name-editor/index.js +13 -11
  90. package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/index.js +81 -63
  91. package/lib/FileEditor/files-previewer/pc-previewer/index.js +81 -65
  92. package/lib/FileEditor/index.js +22 -13
  93. package/lib/FileEditor/mb-editor/index.js +43 -31
  94. package/lib/FileEditor/pc-editor/addition-previewer/index.js +27 -20
  95. package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.js +107 -81
  96. package/lib/FileEditor/pc-editor/index.js +46 -36
  97. package/lib/FileFormatter/index.js +40 -36
  98. package/lib/FileItemFormatter/index.js +2 -1
  99. package/lib/FileUploader/index.js +22 -20
  100. package/lib/FormulaFormatter/index.js +21 -14
  101. package/lib/GeolocationEditor/index.js +28 -19
  102. package/lib/GeolocationEditor/mb-editor/country-editor.js +42 -27
  103. package/lib/GeolocationEditor/mb-editor/index.js +22 -14
  104. package/lib/GeolocationEditor/mb-editor/location-editor.js +54 -34
  105. package/lib/GeolocationEditor/mb-editor/map-editor/index.js +102 -74
  106. package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.js +144 -110
  107. package/lib/GeolocationEditor/mb-editor/province-city-editor.js +42 -27
  108. package/lib/GeolocationEditor/mb-editor/province-editor.js +42 -27
  109. package/lib/GeolocationEditor/pc-editor/country-editor.js +37 -30
  110. package/lib/GeolocationEditor/pc-editor/index.js +26 -17
  111. package/lib/GeolocationEditor/pc-editor/location-editor.js +121 -95
  112. package/lib/GeolocationEditor/pc-editor/map-editor/index.js +99 -74
  113. package/lib/GeolocationEditor/pc-editor/map-editor/large-editor/index.js +99 -76
  114. package/lib/GeolocationEditor/pc-editor/map-selection-editor/index.js +119 -91
  115. package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +102 -82
  116. package/lib/GeolocationEditor/pc-editor/province-city-editor.js +89 -69
  117. package/lib/GeolocationEditor/pc-editor/province-editor.js +30 -25
  118. package/lib/GeolocationEditor/pc-editor/selector-header-item.js +9 -5
  119. package/lib/GeolocationEditor/pc-editor/selector-list.js +15 -13
  120. package/lib/GeolocationFormatter/index.js +5 -3
  121. package/lib/HtmlLongTextFormatter/index.js +2 -1
  122. package/lib/Icon/index.js +8 -5
  123. package/lib/IconButton/index.js +9 -6
  124. package/lib/ImageEditor/images-previewer/image-preview/index.js +52 -44
  125. package/lib/ImageEditor/images-previewer/index.js +35 -32
  126. package/lib/ImageEditor/index.js +22 -13
  127. package/lib/ImageEditor/mb-editor/index.js +43 -31
  128. package/lib/ImageEditor/pc-editor/addition-previewer/image-link/index.js +19 -15
  129. package/lib/ImageEditor/pc-editor/addition-previewer/index.js +32 -24
  130. package/lib/ImageEditor/pc-editor/addition-previewer/local-image-addition/index.js +101 -76
  131. package/lib/ImageEditor/pc-editor/images-previewer/index.js +33 -30
  132. package/lib/ImageEditor/pc-editor/index.js +44 -32
  133. package/lib/ImageFormatter/images-lazy-load.js +12 -10
  134. package/lib/ImageFormatter/index.js +40 -34
  135. package/lib/ImagePreviewerLightbox/index.js +12 -8
  136. package/lib/ImageThumbnail/index.js +46 -38
  137. package/lib/InputItem/custom-input.js +23 -18
  138. package/lib/InputItem/custom-keyboard.js +65 -44
  139. package/lib/InputItem/index.js +66 -56
  140. package/lib/InputItem/input.js +5 -3
  141. package/lib/LastModifierFormatter/index.js +8 -7
  142. package/lib/LinkEditor/index.js +38 -32
  143. package/lib/LinkEditor/link-editor-option.js +25 -20
  144. package/lib/LinkEditor/mb-popover/index.js +53 -41
  145. package/lib/LinkEditor/pc-popover/index.js +41 -33
  146. package/lib/LinkFormatter/index.js +13 -10
  147. package/lib/List/index.js +15 -9
  148. package/lib/List/list-item.js +32 -23
  149. package/lib/Loading/index.js +2 -1
  150. package/lib/LongTextFormatter/index.js +3 -2
  151. package/lib/MBEditorHeader/index.js +19 -14
  152. package/lib/MTimeFormatter/index.js +5 -3
  153. package/lib/MobileFullScreenPage/body/index.js +5 -3
  154. package/lib/MobileFullScreenPage/header/index.js +21 -16
  155. package/lib/MobileFullScreenPage/index.js +11 -8
  156. package/lib/MobileModal/index.js +6 -3
  157. package/lib/MobileOperationSheet/index.js +28 -18
  158. package/lib/MobileSelector/empty/index.js +5 -3
  159. package/lib/MobileSelector/index.js +18 -12
  160. package/lib/MobileSelector/option/index.js +17 -12
  161. package/lib/MobileSelector/options/index.js +5 -3
  162. package/lib/MobileSelector/search/index.js +10 -8
  163. package/lib/MobileUpload/index.js +87 -67
  164. package/lib/Modal/alert.js +8 -5
  165. package/lib/Modal/modal.js +19 -15
  166. package/lib/Modal/operation.js +2 -1
  167. package/lib/Modal/prompt.js +74 -54
  168. package/lib/MultipleSelectEditor/index.js +4 -2
  169. package/lib/MultipleSelectFormatter/index.js +8 -7
  170. package/lib/NotificationPopover/index.js +43 -32
  171. package/lib/NumberEditor/index.js +2 -1
  172. package/lib/NumberFormatter/index.js +5 -3
  173. package/lib/Picker/AbstractPicker.js +26 -22
  174. package/lib/Picker/index.js +2 -1
  175. package/lib/Popover/index.js +8 -5
  176. package/lib/Popover/item.js +22 -15
  177. package/lib/Progress/index.js +12 -10
  178. package/lib/Radio/Radio.js +11 -7
  179. package/lib/Radio/RadioItem.js +9 -3
  180. package/lib/RateFormatter/index.js +7 -6
  181. package/lib/RoleStatusEditor/index.js +36 -31
  182. package/lib/RowExpand/index.js +16 -9
  183. package/lib/RowExpandDialog/body/index.js +52 -41
  184. package/lib/RowExpandDialog/column-content/index.js +34 -25
  185. package/lib/RowExpandDialog/header/index.js +28 -21
  186. package/lib/RowExpandDialog/index.js +40 -27
  187. package/lib/RowExpandEditor/add-btn/index.js +16 -9
  188. package/lib/RowExpandEditor/add-btn/mb-add-btn/index.js +5 -3
  189. package/lib/RowExpandEditor/add-btn/pc-add-btn/index.js +8 -5
  190. package/lib/RowExpandEditor/checkbox-editor/index.js +16 -9
  191. package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.js +10 -8
  192. package/lib/RowExpandEditor/checkbox-editor/pc-editor.js +2 -1
  193. package/lib/RowExpandEditor/collaborator-editor/index.js +16 -9
  194. package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.js +19 -17
  195. package/lib/RowExpandEditor/collaborator-editor/pc-editor/index.js +52 -47
  196. package/lib/RowExpandEditor/date-editor/index.js +16 -9
  197. package/lib/RowExpandEditor/date-editor/mb-editor.js +20 -15
  198. package/lib/RowExpandEditor/date-editor/pc-editor.js +24 -21
  199. package/lib/RowExpandEditor/department-editor/index.js +16 -9
  200. package/lib/RowExpandEditor/department-editor/mb-editor.js +27 -22
  201. package/lib/RowExpandEditor/department-editor/pc-editor.js +35 -29
  202. package/lib/RowExpandEditor/digital-sign-editor/index.js +16 -9
  203. package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +19 -16
  204. package/lib/RowExpandEditor/digital-sign-editor/pc-editor/index.js +34 -32
  205. package/lib/RowExpandEditor/duration-editor/index.js +16 -9
  206. package/lib/RowExpandEditor/duration-editor/mb-editor.js +15 -12
  207. package/lib/RowExpandEditor/duration-editor/pc-editor.js +17 -13
  208. package/lib/RowExpandEditor/email-editor/index.js +16 -9
  209. package/lib/RowExpandEditor/email-editor/mb-editor/index.js +19 -17
  210. package/lib/RowExpandEditor/email-editor/pc-editor/index.js +20 -18
  211. package/lib/RowExpandEditor/file-editor/index.js +16 -9
  212. package/lib/RowExpandEditor/file-editor/mb-editor/index.js +21 -16
  213. package/lib/RowExpandEditor/file-editor/pc-editor/index.js +22 -20
  214. package/lib/RowExpandEditor/geolocation-editor/index.js +16 -9
  215. package/lib/RowExpandEditor/geolocation-editor/mb-editor/index.js +12 -9
  216. package/lib/RowExpandEditor/geolocation-editor/pc-editor/index.js +20 -17
  217. package/lib/RowExpandEditor/image-editor/index.js +16 -9
  218. package/lib/RowExpandEditor/image-editor/mb-editor/index.js +21 -16
  219. package/lib/RowExpandEditor/image-editor/pc-editor/index.js +29 -25
  220. package/lib/RowExpandEditor/index.js +4 -2
  221. package/lib/RowExpandEditor/long-text-editor/index.js +16 -9
  222. package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.js +27 -16
  223. package/lib/RowExpandEditor/long-text-editor/mb-editor/index.js +19 -16
  224. package/lib/RowExpandEditor/long-text-editor/pc-editor/index.js +22 -18
  225. package/lib/RowExpandEditor/multiple-select-editor/index.js +16 -9
  226. package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +26 -23
  227. package/lib/RowExpandEditor/multiple-select-editor/pc-editor/index.js +81 -67
  228. package/lib/RowExpandEditor/number-editor/index.js +16 -9
  229. package/lib/RowExpandEditor/number-editor/mb-editor/index.js +10 -7
  230. package/lib/RowExpandEditor/number-editor/pc-editor.js +6 -4
  231. package/lib/RowExpandEditor/rate-editor/index.js +16 -9
  232. package/lib/RowExpandEditor/rate-editor/mb-editor.js +10 -8
  233. package/lib/RowExpandEditor/rate-editor/pc-editor.js +11 -9
  234. package/lib/RowExpandEditor/right-angle/index.js +8 -6
  235. package/lib/RowExpandEditor/single-select-editor/index.js +16 -9
  236. package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +30 -23
  237. package/lib/RowExpandEditor/single-select-editor/pc-editor/index.js +42 -34
  238. package/lib/RowExpandEditor/text-editor/index.js +16 -9
  239. package/lib/RowExpandEditor/text-editor/mb-editor/index.js +11 -9
  240. package/lib/RowExpandEditor/text-editor/pc-editor/index.js +16 -12
  241. package/lib/RowExpandEditor/url-editor/index.js +16 -9
  242. package/lib/RowExpandEditor/url-editor/mb-editor/index.js +19 -17
  243. package/lib/RowExpandEditor/url-editor/pc-editor/index.js +20 -18
  244. package/lib/RowExpandFormatter/department-formatter/index.js +14 -5
  245. package/lib/RowExpandFormatter/department-formatter/mb-formatter.js +2 -1
  246. package/lib/RowExpandFormatter/department-formatter/pc-formatter.js +15 -11
  247. package/lib/RowExpandFormatter/email-formatter/index.js +11 -8
  248. package/lib/RowExpandFormatter/file-formatter/index.js +15 -14
  249. package/lib/RowExpandFormatter/file-formatter/row-expand-file-item-formatter.js +43 -36
  250. package/lib/RowExpandFormatter/formula-formatter/index.js +37 -29
  251. package/lib/RowExpandFormatter/image-formatter/index.js +30 -27
  252. package/lib/RowExpandFormatter/image-formatter/row-expand-image-item-formatter.js +47 -39
  253. package/lib/RowExpandFormatter/index.js +131 -114
  254. package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +2 -1
  255. package/lib/RowExpandFormatter/link-formatter/index.js +70 -67
  256. package/lib/RowExpandFormatter/rate-formatter/index.js +7 -6
  257. package/lib/RowExpandFormatter/url-formatter/index.js +11 -8
  258. package/lib/RowExpandView/body/index.js +38 -32
  259. package/lib/RowExpandView/column-content/index.js +10 -5
  260. package/lib/RowExpandView/index.js +27 -16
  261. package/lib/SelectItem/index.js +16 -12
  262. package/lib/SelectOptionGroup/index.js +39 -32
  263. package/lib/SelectOptionGroup/option.js +5 -3
  264. package/lib/SelectedDepartments/index.js +54 -44
  265. package/lib/SimpleLongTextFormatter/index.js +39 -30
  266. package/lib/SimpleLongTextFormatter/widgets/LongTextPreview.js +11 -8
  267. package/lib/SimpleLongTextFormatter/widgets/dtable-markdown-viewer.js +3 -2
  268. package/lib/SingleSelectEditor/index.js +4 -2
  269. package/lib/SingleSelectFormatter/index.js +6 -4
  270. package/lib/SvgIcon/index.js +4 -1
  271. package/lib/TabBar/Tab.js +27 -20
  272. package/lib/TabBar/index.js +25 -21
  273. package/lib/Tabs/index.js +8 -5
  274. package/lib/TextEditor/index.js +21 -18
  275. package/lib/TextFormatter/index.js +5 -3
  276. package/lib/TextareaItem/index.js +35 -26
  277. package/lib/Toast/index.js +16 -10
  278. package/lib/UploadProgress/index.js +2 -1
  279. package/lib/UrlEditor/index.js +2 -1
  280. package/lib/UrlFormatter/index.js +5 -3
  281. package/lib/formatterConfig/base-formatter-config.js +24 -23
  282. package/lib/formatterConfig/index.js +3 -2
  283. package/lib/index.js +7 -0
  284. package/lib/locales/de.json +5 -1
  285. package/lib/locales/en.json +5 -1
  286. package/lib/locales/es.json +6 -2
  287. package/lib/locales/fr.json +5 -1
  288. package/lib/locales/pt.json +5 -1
  289. package/lib/locales/ru.json +5 -1
  290. package/lib/locales/zh-CN.json +5 -1
  291. package/lib/select-editor/index.js +22 -13
  292. package/lib/select-editor/mb-editor/index.js +22 -16
  293. package/lib/select-editor/pc-editor/index.js +74 -60
  294. package/lib/toaster/alert.js +25 -16
  295. package/lib/toaster/toast.js +27 -23
  296. package/lib/toaster/toastManager.js +16 -13
  297. package/lib/toaster/toaster.js +2 -1
  298. package/package.json +2 -2
@@ -29,29 +29,30 @@ var _DurationFormatter = _interopRequireDefault(require("../DurationFormatter"))
29
29
  var _RateFormatter = _interopRequireDefault(require("../RateFormatter"));
30
30
  var _ButtonFormatter = _interopRequireDefault(require("../ButtonFormatter"));
31
31
  var _DepartmentSingleSelectFormatter = _interopRequireDefault(require("../DepartmentSingleSelectFormatter"));
32
+ var _jsxRuntime = require("react/jsx-runtime");
32
33
  const BaseFormatterConfig = {
33
- [_dtableUtils.CellType.DEFAULT]: /*#__PURE__*/_react.default.createElement(_TextFormatter.default, null),
34
- [_dtableUtils.CellType.TEXT]: /*#__PURE__*/_react.default.createElement(_TextFormatter.default, null),
35
- [_dtableUtils.CellType.CHECKBOX]: /*#__PURE__*/_react.default.createElement(_CheckboxFormatter.default, null),
36
- [_dtableUtils.CellType.LONG_TEXT]: /*#__PURE__*/_react.default.createElement(_SimpleLongTextFormatter.default, null),
37
- [_dtableUtils.CellType.SINGLE_SELECT]: /*#__PURE__*/_react.default.createElement(_SingleSelectFormatter.default, null),
38
- [_dtableUtils.CellType.IMAGE]: /*#__PURE__*/_react.default.createElement(_ImageFormatter.default, null),
39
- [_dtableUtils.CellType.FILE]: /*#__PURE__*/_react.default.createElement(_FileFormatter.default, null),
40
- [_dtableUtils.CellType.MULTIPLE_SELECT]: /*#__PURE__*/_react.default.createElement(_MultipleSelectFormatter.default, null),
41
- [_dtableUtils.CellType.COLLABORATOR]: /*#__PURE__*/_react.default.createElement(_CollaboratorFormatter.default, null),
42
- [_dtableUtils.CellType.NUMBER]: /*#__PURE__*/_react.default.createElement(_NumberFormatter.default, null),
43
- [_dtableUtils.CellType.DATE]: /*#__PURE__*/_react.default.createElement(_DateFormatter.default, null),
44
- [_dtableUtils.CellType.CREATOR]: /*#__PURE__*/_react.default.createElement(_CreatorFormatter.default, null),
45
- [_dtableUtils.CellType.CTIME]: /*#__PURE__*/_react.default.createElement(_CTimeFormatter.default, null),
46
- [_dtableUtils.CellType.LAST_MODIFIER]: /*#__PURE__*/_react.default.createElement(_LastModifierFormatter.default, null),
47
- [_dtableUtils.CellType.MTIME]: /*#__PURE__*/_react.default.createElement(_MTimeFormatter.default, null),
48
- [_dtableUtils.CellType.GEOLOCATION]: /*#__PURE__*/_react.default.createElement(_GeolocationFormatter.default, null),
49
- [_dtableUtils.CellType.AUTO_NUMBER]: /*#__PURE__*/_react.default.createElement(_AutoNumberFormatter.default, null),
50
- [_dtableUtils.CellType.URL]: /*#__PURE__*/_react.default.createElement(_UrlFormatter.default, null),
51
- [_dtableUtils.CellType.EMAIL]: /*#__PURE__*/_react.default.createElement(_EmailFormatter.default, null),
52
- [_dtableUtils.CellType.DURATION]: /*#__PURE__*/_react.default.createElement(_DurationFormatter.default, null),
53
- [_dtableUtils.CellType.RATE]: /*#__PURE__*/_react.default.createElement(_RateFormatter.default, null),
54
- [_dtableUtils.CellType.BUTTON]: /*#__PURE__*/_react.default.createElement(_ButtonFormatter.default, null),
55
- [_dtableUtils.CellType.DEPARTMENT_SINGLE_SELECT]: /*#__PURE__*/_react.default.createElement(_DepartmentSingleSelectFormatter.default, null)
34
+ [_dtableUtils.CellType.DEFAULT]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextFormatter.default, {}),
35
+ [_dtableUtils.CellType.TEXT]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextFormatter.default, {}),
36
+ [_dtableUtils.CellType.CHECKBOX]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CheckboxFormatter.default, {}),
37
+ [_dtableUtils.CellType.LONG_TEXT]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SimpleLongTextFormatter.default, {}),
38
+ [_dtableUtils.CellType.SINGLE_SELECT]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SingleSelectFormatter.default, {}),
39
+ [_dtableUtils.CellType.IMAGE]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageFormatter.default, {}),
40
+ [_dtableUtils.CellType.FILE]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_FileFormatter.default, {}),
41
+ [_dtableUtils.CellType.MULTIPLE_SELECT]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_MultipleSelectFormatter.default, {}),
42
+ [_dtableUtils.CellType.COLLABORATOR]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CollaboratorFormatter.default, {}),
43
+ [_dtableUtils.CellType.NUMBER]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_NumberFormatter.default, {}),
44
+ [_dtableUtils.CellType.DATE]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DateFormatter.default, {}),
45
+ [_dtableUtils.CellType.CREATOR]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CreatorFormatter.default, {}),
46
+ [_dtableUtils.CellType.CTIME]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CTimeFormatter.default, {}),
47
+ [_dtableUtils.CellType.LAST_MODIFIER]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_LastModifierFormatter.default, {}),
48
+ [_dtableUtils.CellType.MTIME]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_MTimeFormatter.default, {}),
49
+ [_dtableUtils.CellType.GEOLOCATION]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeolocationFormatter.default, {}),
50
+ [_dtableUtils.CellType.AUTO_NUMBER]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_AutoNumberFormatter.default, {}),
51
+ [_dtableUtils.CellType.URL]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_UrlFormatter.default, {}),
52
+ [_dtableUtils.CellType.EMAIL]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_EmailFormatter.default, {}),
53
+ [_dtableUtils.CellType.DURATION]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DurationFormatter.default, {}),
54
+ [_dtableUtils.CellType.RATE]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_RateFormatter.default, {}),
55
+ [_dtableUtils.CellType.BUTTON]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonFormatter.default, {}),
56
+ [_dtableUtils.CellType.DEPARTMENT_SINGLE_SELECT]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DepartmentSingleSelectFormatter.default, {})
56
57
  };
57
58
  var _default = exports.default = BaseFormatterConfig;
@@ -10,9 +10,10 @@ var _dtableUtils = require("dtable-utils");
10
10
  var _baseFormatterConfig = _interopRequireDefault(require("./base-formatter-config"));
11
11
  var _LinkFormatter = _interopRequireDefault(require("../LinkFormatter"));
12
12
  var _FormulaFormatter = _interopRequireDefault(require("../FormulaFormatter"));
13
+ var _jsxRuntime = require("react/jsx-runtime");
13
14
  const FormatterConfig = {
14
15
  ..._baseFormatterConfig.default,
15
- [_dtableUtils.CellType.FORMULA]: /*#__PURE__*/_react.default.createElement(_FormulaFormatter.default, null),
16
- [_dtableUtils.CellType.LINK]: /*#__PURE__*/_react.default.createElement(_LinkFormatter.default, null)
16
+ [_dtableUtils.CellType.FORMULA]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_FormulaFormatter.default, {}),
17
+ [_dtableUtils.CellType.LINK]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_LinkFormatter.default, {})
17
18
  };
18
19
  var _default = exports.default = FormatterConfig;
package/lib/index.js CHANGED
@@ -16,6 +16,12 @@ Object.defineProperty(exports, "ActivityIndicator", {
16
16
  return _ActivityIndicator.default;
17
17
  }
18
18
  });
19
+ Object.defineProperty(exports, "AsyncUserSelect", {
20
+ enumerable: true,
21
+ get: function () {
22
+ return _AsyncUserSelect.default;
23
+ }
24
+ });
19
25
  Object.defineProperty(exports, "AutoNumberFormatter", {
20
26
  enumerable: true,
21
27
  get: function () {
@@ -690,6 +696,7 @@ var _DTableEmptyTip = _interopRequireDefault(require("./DTableEmptyTip"));
690
696
  var _IconButton = _interopRequireDefault(require("./IconButton"));
691
697
  var _UploadProgress = _interopRequireDefault(require("./UploadProgress"));
692
698
  var _SvgIcon = _interopRequireDefault(require("./SvgIcon"));
699
+ var _AsyncUserSelect = _interopRequireDefault(require("./AsyncUserSelect"));
693
700
  var _ActionSheet = _interopRequireDefault(require("./ActionSheet"));
694
701
  var _ActivityIndicator = _interopRequireDefault(require("./ActivityIndicator"));
695
702
  var _DatePicker = _interopRequireDefault(require("./DatePicker"));
@@ -172,5 +172,9 @@
172
172
  "Latitude_abbr": "Breite",
173
173
  "Longitude_abbr": "Länge",
174
174
  "Latitude": "Breitengrad",
175
- "Longitude": "Längengrad"
175
+ "Longitude": "Längengrad",
176
+ "Search_users": "Benutzer suchen",
177
+ "User_not_found": "Der Benutzer wurde nicht gefunden.",
178
+ "Enter_characters_to_start_searching": "Geben Sie Zeichen ein, um die Suche zu starten.",
179
+ "Remove": "Entfernen"
176
180
  }
@@ -172,5 +172,9 @@
172
172
  "Latitude_abbr": "Lat",
173
173
  "Longitude_abbr": "Lng",
174
174
  "Latitude": "Latitude",
175
- "Longitude": "Longitude"
175
+ "Longitude": "Longitude",
176
+ "Search_users": "Search users",
177
+ "User_not_found": "User not found",
178
+ "Enter_characters_to_start_searching": "Enter characters to start searching",
179
+ "Remove": "Remove"
176
180
  }
@@ -26,7 +26,7 @@
26
26
  "Add_filter": "Añadir filtro",
27
27
  "And": "Y",
28
28
  "Or": "O",
29
- "Add_filter_group": "Añadir grupo de filtros",
29
+ "Add_filter_group": "Añadir grupo de filtros",
30
30
  "Click_to_add_filter": "Haz clic para añadir filtro",
31
31
  "Click_to_input_value": "Haz clic para introducir valor",
32
32
  "Submit": "Enviar",
@@ -172,5 +172,9 @@
172
172
  "Latitude_abbr": "Lat",
173
173
  "Longitude_abbr": "Lng",
174
174
  "Latitude": "Latitude",
175
- "Longitude": "Longitude"
175
+ "Longitude": "Longitude",
176
+ "Search_users": "Buscar usuarios",
177
+ "User_not_found": "Usuario no encontrado",
178
+ "Enter_characters_to_start_searching": "Escribe algunos caracteres para empezar la búsqueda",
179
+ "Remove": "Eliminar"
176
180
  }
@@ -172,5 +172,9 @@
172
172
  "Latitude_abbr": "Lat",
173
173
  "Longitude_abbr": "Lng",
174
174
  "Latitude": "Latitude",
175
- "Longitude": "Longitude"
175
+ "Longitude": "Longitude",
176
+ "Search_users": "Rechercher les utilisateurs",
177
+ "User_not_found": "L'utilisateur n'a pas pu être trouvé.",
178
+ "Enter_characters_to_start_searching": "Entrez pour lancer la recherche.",
179
+ "Remove": "Supprimer"
176
180
  }
@@ -172,5 +172,9 @@
172
172
  "Latitude_abbr": "Lat",
173
173
  "Longitude_abbr": "Lng",
174
174
  "Latitude": "Latitude",
175
- "Longitude": "Longitude"
175
+ "Longitude": "Longitude",
176
+ "Search_users": "Pesquise usuários",
177
+ "User_not_found": "Usuário não encontrado",
178
+ "Enter_characters_to_start_searching": "Insira os caracteres para começar a pesquisar",
179
+ "Remove": "Remover"
176
180
  }
@@ -172,5 +172,9 @@
172
172
  "Latitude_abbr": "Lat",
173
173
  "Longitude_abbr": "Lng",
174
174
  "Latitude": "Latitude",
175
- "Longitude": "Longitude"
175
+ "Longitude": "Longitude",
176
+ "Search_users": "Поиск пользователей",
177
+ "User_not_found": "Пользователь не найден",
178
+ "Enter_characters_to_start_searching": "Введите символы для начала поиска",
179
+ "Remove": "Удалять"
176
180
  }
@@ -172,5 +172,9 @@
172
172
  "Latitude_abbr": "纬度",
173
173
  "Longitude_abbr": "经度",
174
174
  "Latitude": "纬度",
175
- "Longitude": "经度"
175
+ "Longitude": "经度",
176
+ "Search_users": "搜索用户",
177
+ "User_not_found": "未找到用户",
178
+ "Enter_characters_to_start_searching": "输入字符以开始搜索",
179
+ "Remove": "删除"
176
180
  }
@@ -10,25 +10,34 @@ var _react = _interopRequireWildcard(require("react"));
10
10
  var _reactResponsive = _interopRequireDefault(require("react-responsive"));
11
11
  var _pcEditor = _interopRequireDefault(require("./pc-editor"));
12
12
  var _mbEditor = _interopRequireDefault(require("./mb-editor"));
13
+ var _jsxRuntime = require("react/jsx-runtime");
13
14
  const SelectEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
14
15
  let {
15
16
  isMobile,
16
17
  ...props
17
18
  } = _ref;
18
- if (isMobile === false) return /*#__PURE__*/_react.default.createElement(_pcEditor.default, Object.assign({}, props, {
19
+ if (isMobile === false) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
20
+ ...props,
19
21
  ref: ref
20
- }));
21
- if (isMobile === true) return /*#__PURE__*/_react.default.createElement(_mbEditor.default, Object.assign({}, props, {
22
+ });
23
+ if (isMobile === true) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
24
+ ...props,
22
25
  ref: ref
23
- }));
24
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
25
- query: "(min-width: 768px)"
26
- }, /*#__PURE__*/_react.default.createElement(_pcEditor.default, Object.assign({}, props, {
27
- ref: ref
28
- }))), /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
29
- query: "(max-width: 768px)"
30
- }, /*#__PURE__*/_react.default.createElement(_mbEditor.default, Object.assign({}, props, {
31
- ref: ref
32
- }))));
26
+ });
27
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
28
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
29
+ query: "(min-width: 768px)",
30
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
31
+ ...props,
32
+ ref: ref
33
+ })
34
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
35
+ query: "(max-width: 768px)",
36
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
37
+ ...props,
38
+ ref: ref
39
+ })
40
+ })]
41
+ });
33
42
  });
34
43
  var _default = exports.default = SelectEditor;
@@ -11,6 +11,7 @@ var _SelectItem = _interopRequireDefault(require("../../SelectItem"));
11
11
  var _MobileSelector = _interopRequireDefault(require("../../MobileSelector"));
12
12
  var _DTableCommonAddTool = _interopRequireDefault(require("../../DTableCommonAddTool"));
13
13
  require("./index.css");
14
+ var _jsxRuntime = require("react/jsx-runtime");
14
15
  const {
15
16
  Search,
16
17
  Option,
@@ -57,13 +58,13 @@ class MBSelectEditor extends _react.default.Component {
57
58
  } = this.props;
58
59
  return options.map(option => {
59
60
  const isSelected = value.includes(option[valueKey]);
60
- return /*#__PURE__*/_react.default.createElement(Option, {
61
- key: option[valueKey],
61
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(Option, {
62
62
  isSelected: isSelected,
63
- onChange: this.onChange.bind(this, option)
64
- }, /*#__PURE__*/_react.default.createElement(_SelectItem.default, {
65
- option: option
66
- }));
63
+ onChange: this.onChange.bind(this, option),
64
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectItem.default, {
65
+ option: option
66
+ })
67
+ }, option[valueKey]);
67
68
  });
68
69
  };
69
70
  this.state = {
@@ -82,18 +83,23 @@ class MBSelectEditor extends _react.default.Component {
82
83
  } = this.state;
83
84
  const displayOptions = this.getDisplayOptions();
84
85
  const isShowCreateBtn = isSupportNewOption && onAddNewOption && !!searchVal && !options.find(item => item.name !== searchVal);
85
- return /*#__PURE__*/_react.default.createElement(_MobileSelector.default, {
86
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_MobileSelector.default, {
86
87
  onClose: this.props.onClose,
87
88
  title: column.name,
88
- className: "dtable-ui-mobile-select-editor"
89
- }, options.length > 10 && /*#__PURE__*/_react.default.createElement(Search, {
90
- value: searchVal,
91
- placeholder: (0, _lang.getLocale)('Search_option'),
92
- onChange: this.onChangeSearch
93
- }), /*#__PURE__*/_react.default.createElement(Options, null, displayOptions.length === 0 && /*#__PURE__*/_react.default.createElement(Empty, null, (0, _lang.getLocale)('No_options_available')), displayOptions.length > 0 && this.renderOptions(displayOptions), isShowCreateBtn && /*#__PURE__*/_react.default.createElement(_DTableCommonAddTool.default, {
94
- footerName: (0, _lang.getLocale)('Add_option'),
95
- callBack: this.onAddNewOption
96
- })));
89
+ className: "dtable-ui-mobile-select-editor",
90
+ children: [options.length > 10 && /*#__PURE__*/(0, _jsxRuntime.jsx)(Search, {
91
+ value: searchVal,
92
+ placeholder: (0, _lang.getLocale)('Search_option'),
93
+ onChange: this.onChangeSearch
94
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(Options, {
95
+ children: [displayOptions.length === 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(Empty, {
96
+ children: (0, _lang.getLocale)('No_options_available')
97
+ }), displayOptions.length > 0 && this.renderOptions(displayOptions), isShowCreateBtn && /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableCommonAddTool.default, {
98
+ footerName: (0, _lang.getLocale)('Add_option'),
99
+ callBack: this.onAddNewOption
100
+ })]
101
+ })]
102
+ });
97
103
  }
98
104
  }
99
105
  MBSelectEditor.defaultProps = {
@@ -12,6 +12,7 @@ var _lang = require("../../lang");
12
12
  var _DTableSearchInput = _interopRequireDefault(require("../../DTableSearchInput"));
13
13
  var _constants = require("../../constants");
14
14
  require("./index.css");
15
+ var _jsxRuntime = require("react/jsx-runtime");
15
16
  class PCSelectEditor extends _react.default.Component {
16
17
  constructor(props) {
17
18
  super(props);
@@ -218,71 +219,84 @@ class PCSelectEditor extends _react.default.Component {
218
219
  // maxWidth = column.width > 200 ? column.width - 20 - 12 - 20 - 10 : 200 - 20 - 12 - 20 - 10
219
220
  // maxWidth = column.width > 200 ? column.width - 62 : 200 - 62
220
221
  let maxWidth = isInModal ? 250 : (column === null || column === void 0 ? void 0 : column.width) > 200 ? column.width - 62 : 138;
221
- const dom = /*#__PURE__*/_react.default.createElement("div", {
222
+ const dom = /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
222
223
  className: (0, _classnames.default)('dtable-ui-editor-container dtable-ui-select-editor-container', className, {
223
224
  ["".concat(classNamePrefix, "-select-editor-container")]: classNamePrefix
224
225
  }),
225
- ref: ref => this.ref = ref
226
- }, /*#__PURE__*/_react.default.createElement("div", {
227
- className: "select-options-search"
228
- }, /*#__PURE__*/_react.default.createElement(_DTableSearchInput.default, {
229
- placeholder: (0, _lang.getLocale)('Search_option'),
230
- onKeyDown: this.onKeyDown,
231
- onChange: this.onValueChanged,
232
- autoFocus: true
233
- })), /*#__PURE__*/_react.default.createElement("div", {
234
- className: "select-dtable-ui-mobile-selector-options-container",
235
- ref: ref => this.container = ref
236
- }, this.filteredOptions.length > 0 && this.filteredOptions.map((option, index) => {
237
- let optionStyle = this.getOptionStyle(option);
238
- optionStyle = {
239
- ...optionStyle,
240
- maxWidth
241
- };
242
- let isSelected = value.includes(option[valueKey]);
243
- return /*#__PURE__*/_react.default.createElement("div", {
244
- key: option.id,
245
- className: "select-option-item",
246
- ref: ref => this.selectItem = ref
247
- }, /*#__PURE__*/_react.default.createElement("div", {
248
- className: (0, _classnames.default)('select-option-item-container', {
249
- 'select-option-item-container-highlight': index === highlightIndex
250
- }),
251
- onMouseDown: this.onChange.bind(this, option),
252
- onMouseEnter: this.onMenuMouseEnter.bind(this, index),
253
- onMouseLeave: this.onMenuMouseLeave.bind(this, index)
254
- }, /*#__PURE__*/_react.default.createElement("div", {
255
- className: "option-info"
256
- }, /*#__PURE__*/_react.default.createElement("div", {
257
- className: "option-name",
258
- style: optionStyle,
259
- title: option.name
260
- }, option.name)), /*#__PURE__*/_react.default.createElement("div", {
261
- className: "option-checked"
262
- }, isSelected && /*#__PURE__*/_react.default.createElement("i", {
263
- className: "dtable-font dtable-icon-check-mark"
264
- }))));
265
- }), this.filteredOptions.length === 0 && /*#__PURE__*/_react.default.createElement("div", {
266
- className: "dtable-ui-editor-no-search-result"
267
- }, (0, _lang.getLocale)('No_options_available'))), isSupportNewOption && !!searchValue && /*#__PURE__*/_react.default.createElement("div", {
268
- className: "select-options-add",
269
- onClick: this.onAddNewOption
270
- }, /*#__PURE__*/_react.default.createElement("i", {
271
- className: "dtable-font dtable-icon-add-table"
272
- }), /*#__PURE__*/_react.default.createElement("span", null, (0, _lang.getLocale)('Add_an_option'), ' ', searchValue)));
226
+ ref: ref => this.ref = ref,
227
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
228
+ className: "select-options-search",
229
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableSearchInput.default, {
230
+ placeholder: (0, _lang.getLocale)('Search_option'),
231
+ onKeyDown: this.onKeyDown,
232
+ onChange: this.onValueChanged,
233
+ autoFocus: true
234
+ })
235
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
236
+ className: "select-dtable-ui-mobile-selector-options-container",
237
+ ref: ref => this.container = ref,
238
+ children: [this.filteredOptions.length > 0 && this.filteredOptions.map((option, index) => {
239
+ let optionStyle = this.getOptionStyle(option);
240
+ optionStyle = {
241
+ ...optionStyle,
242
+ maxWidth
243
+ };
244
+ let isSelected = value.includes(option[valueKey]);
245
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
246
+ className: "select-option-item",
247
+ ref: ref => this.selectItem = ref,
248
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
249
+ className: (0, _classnames.default)('select-option-item-container', {
250
+ 'select-option-item-container-highlight': index === highlightIndex
251
+ }),
252
+ onMouseDown: this.onChange.bind(this, option),
253
+ onMouseEnter: this.onMenuMouseEnter.bind(this, index),
254
+ onMouseLeave: this.onMenuMouseLeave.bind(this, index),
255
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
256
+ className: "option-info",
257
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
258
+ className: "option-name",
259
+ style: optionStyle,
260
+ title: option.name,
261
+ children: option.name
262
+ })
263
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
264
+ className: "option-checked",
265
+ children: isSelected && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
266
+ className: "dtable-font dtable-icon-check-mark"
267
+ })
268
+ })]
269
+ })
270
+ }, option.id);
271
+ }), this.filteredOptions.length === 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
272
+ className: "dtable-ui-editor-no-search-result",
273
+ children: (0, _lang.getLocale)('No_options_available')
274
+ })]
275
+ }), isSupportNewOption && !!searchValue && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
276
+ className: "select-options-add",
277
+ onClick: this.onAddNewOption,
278
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
279
+ className: "dtable-font dtable-icon-add-table"
280
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
281
+ children: [(0, _lang.getLocale)('Add_an_option'), ' ', searchValue]
282
+ })]
283
+ })]
284
+ });
273
285
  if (isInModal) {
274
- return /*#__PURE__*/_react.default.createElement("div", {
275
- ref: ref => this.parent = ref
276
- }, /*#__PURE__*/_react.default.createElement(_reactstrap.Popover, {
277
- placement: "bottom-start",
278
- isOpen: true,
279
- target: target,
280
- hideArrow: true,
281
- fade: false,
282
- className: (0, _classnames.default)('dtable-ui dtable-ui-row-expand-select-editor-popover', {
283
- ["".concat(classNamePrefix, "-select-editor-popover")]: classNamePrefix
286
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
287
+ ref: ref => this.parent = ref,
288
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Popover, {
289
+ placement: "bottom-start",
290
+ isOpen: true,
291
+ target: target,
292
+ hideArrow: true,
293
+ fade: false,
294
+ className: (0, _classnames.default)('dtable-ui dtable-ui-row-expand-select-editor-popover', {
295
+ ["".concat(classNamePrefix, "-select-editor-popover")]: classNamePrefix
296
+ }),
297
+ children: dom
284
298
  })
285
- }, dom));
299
+ });
286
300
  }
287
301
  return dom;
288
302
  }
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
+ var _jsxRuntime = require("react/jsx-runtime");
9
10
  class Alert extends _react.default.PureComponent {
10
11
  getIconClass(intent) {
11
12
  switch (intent) {
@@ -30,22 +31,30 @@ class Alert extends _react.default.PureComponent {
30
31
  onRemove
31
32
  } = this.props;
32
33
  const iconClass = this.getIconClass(intent);
33
- return /*#__PURE__*/_react.default.createElement("div", {
34
- className: "dtable-toast-alert-container ".concat(intent || 'success')
35
- }, /*#__PURE__*/_react.default.createElement("div", {
36
- className: "toast-alert-icon"
37
- }, /*#__PURE__*/_react.default.createElement("i", {
38
- className: iconClass
39
- })), /*#__PURE__*/_react.default.createElement("div", {
40
- className: "toast-text-container"
41
- }, /*#__PURE__*/_react.default.createElement("p", {
42
- className: "toast-text-title"
43
- }, title), children ? /*#__PURE__*/_react.default.createElement("p", {
44
- className: "toast-text-child"
45
- }, children) : null), isRemovable && /*#__PURE__*/_react.default.createElement("div", {
46
- onClick: onRemove,
47
- className: "toast-close"
48
- }, /*#__PURE__*/_react.default.createElement("span", null, "\xD7")));
34
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
35
+ className: "dtable-toast-alert-container ".concat(intent || 'success'),
36
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
37
+ className: "toast-alert-icon",
38
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
39
+ className: iconClass
40
+ })
41
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
42
+ className: "toast-text-container",
43
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
44
+ className: "toast-text-title",
45
+ children: title
46
+ }), children ? /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
47
+ className: "toast-text-child",
48
+ children: children
49
+ }) : null]
50
+ }), isRemovable && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
51
+ onClick: onRemove,
52
+ className: "toast-close",
53
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
54
+ children: "\xD7"
55
+ })
56
+ })]
57
+ });
49
58
  }
50
59
  }
51
60
  var _default = exports.default = Alert;
@@ -8,6 +8,7 @@ exports.default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _Transition = _interopRequireDefault(require("react-transition-group/Transition"));
10
10
  var _alert = _interopRequireDefault(require("./alert"));
11
+ var _jsxRuntime = require("react/jsx-runtime");
11
12
  const ANIMATION_DURATION = 240;
12
13
  class Toast extends _react.default.PureComponent {
13
14
  constructor() {
@@ -75,33 +76,36 @@ class Toast extends _react.default.PureComponent {
75
76
  this.clearCloseTimer();
76
77
  }
77
78
  render() {
78
- return /*#__PURE__*/_react.default.createElement(_Transition.default, {
79
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Transition.default, {
79
80
  appear: true,
80
81
  unmountOnExit: true,
81
82
  timeout: ANIMATION_DURATION,
82
83
  in: this.state.isShown,
83
- onExited: this.props.onRemove
84
- }, state => /*#__PURE__*/_react.default.createElement("div", {
85
- "data-state": state,
86
- className: "dtable-toast-container ".concat(state),
87
- onMouseEnter: this.handleMouseEnter,
88
- onMouseLeave: this.handleMouseLeave,
89
- style: {
90
- zIndex: this.props.zIndex
91
- },
92
- ref: this.containerRef
93
- }, /*#__PURE__*/_react.default.createElement("div", {
94
- ref: this.onRef,
95
- style: {
96
- padding: 8
97
- }
98
- }, /*#__PURE__*/_react.default.createElement(_alert.default, {
99
- intent: this.props.intent,
100
- title: this.props.title,
101
- children: this.props.children || '',
102
- isRemovable: this.props.hasCloseButton,
103
- onRemove: event => this.close(event)
104
- }))));
84
+ onExited: this.props.onRemove,
85
+ children: state => /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
86
+ "data-state": state,
87
+ className: "dtable-toast-container ".concat(state),
88
+ onMouseEnter: this.handleMouseEnter,
89
+ onMouseLeave: this.handleMouseLeave,
90
+ style: {
91
+ zIndex: this.props.zIndex
92
+ },
93
+ ref: this.containerRef,
94
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
95
+ ref: this.onRef,
96
+ style: {
97
+ padding: 8
98
+ },
99
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_alert.default, {
100
+ intent: this.props.intent,
101
+ title: this.props.title,
102
+ children: this.props.children || '',
103
+ isRemovable: this.props.hasCloseButton,
104
+ onRemove: event => this.close(event)
105
+ })
106
+ })
107
+ })
108
+ });
105
109
  }
106
110
  }
107
111
  exports.default = Toast;
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _toast = _interopRequireDefault(require("./toast"));
10
+ var _jsxRuntime = require("react/jsx-runtime");
10
11
  const hasCustomId = settings => Object.hasOwnProperty.call(settings, 'id');
11
12
  class ToastManager extends _react.default.PureComponent {
12
13
  constructor(props, context) {
@@ -90,19 +91,21 @@ class ToastManager extends _react.default.PureComponent {
90
91
  };
91
92
  }
92
93
  render() {
93
- return /*#__PURE__*/_react.default.createElement("div", {
94
- className: "dtable-toast-manager"
95
- }, this.state.toasts.map(_ref => {
96
- let {
97
- id,
98
- description,
99
- ...props
100
- } = _ref;
101
- return /*#__PURE__*/_react.default.createElement(_toast.default, Object.assign({
102
- key: id,
103
- onRemove: () => this.removeToast(id)
104
- }, props), description);
105
- }));
94
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
95
+ className: "dtable-toast-manager",
96
+ children: this.state.toasts.map(_ref => {
97
+ let {
98
+ id,
99
+ description,
100
+ ...props
101
+ } = _ref;
102
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_toast.default, {
103
+ onRemove: () => this.removeToast(id),
104
+ ...props,
105
+ children: description
106
+ }, id);
107
+ })
108
+ });
106
109
  }
107
110
  }
108
111
  exports.default = ToastManager;