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
@@ -9,24 +9,29 @@ var _react = _interopRequireDefault(require("react"));
9
9
  var _propTypes = _interopRequireDefault(require("prop-types"));
10
10
  var _List = _interopRequireDefault(require("../../List"));
11
11
  require("./index.css");
12
+ var _jsxRuntime = require("react/jsx-runtime");
12
13
  const Option = _ref => {
13
14
  let {
14
15
  isSelected,
15
16
  children,
16
17
  onChange
17
18
  } = _ref;
18
- return /*#__PURE__*/_react.default.createElement(_List.default.Item, {
19
- onClick: onChange
20
- }, /*#__PURE__*/_react.default.createElement("div", {
21
- className: "dtable-ui-mobile-selector-option"
22
- }, /*#__PURE__*/_react.default.createElement("span", {
23
- className: "dtable-ui-mobile-selector-option-name"
24
- }, children), /*#__PURE__*/_react.default.createElement("span", {
25
- className: "dtable-ui-mobile-selector-option-check-btn"
26
- }, isSelected && /*#__PURE__*/_react.default.createElement("i", {
27
- "aria-hidden": "true",
28
- className: "dtable-font dtable-icon-check-mark"
29
- }))));
19
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_List.default.Item, {
20
+ onClick: onChange,
21
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
22
+ className: "dtable-ui-mobile-selector-option",
23
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
24
+ className: "dtable-ui-mobile-selector-option-name",
25
+ children: children
26
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
27
+ className: "dtable-ui-mobile-selector-option-check-btn",
28
+ children: isSelected && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
29
+ "aria-hidden": "true",
30
+ className: "dtable-font dtable-icon-check-mark"
31
+ })
32
+ })]
33
+ })
34
+ });
30
35
  };
31
36
  Option.propType = {
32
37
  isSelected: _propTypes.default.bool,
@@ -7,12 +7,14 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  require("./index.css");
10
+ var _jsxRuntime = require("react/jsx-runtime");
10
11
  const Options = _ref => {
11
12
  let {
12
13
  children
13
14
  } = _ref;
14
- return /*#__PURE__*/_react.default.createElement("div", {
15
- className: "dtable-ui-mobile-selector-options"
16
- }, children);
15
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
16
+ className: "dtable-ui-mobile-selector-options",
17
+ children: children
18
+ });
17
19
  };
18
20
  var _default = exports.default = Options;
@@ -8,19 +8,21 @@ exports.default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _DTableSearchInput = _interopRequireDefault(require("../../DTableSearchInput"));
10
10
  require("./index.css");
11
+ var _jsxRuntime = require("react/jsx-runtime");
11
12
  const Search = _ref => {
12
13
  let {
13
14
  value,
14
15
  placeholder,
15
16
  onChange
16
17
  } = _ref;
17
- return /*#__PURE__*/_react.default.createElement("div", {
18
- className: "dtable-ui-mobile-selector-search"
19
- }, /*#__PURE__*/_react.default.createElement(_DTableSearchInput.default, {
20
- autoFocus: true,
21
- value: value,
22
- placeholder: placeholder,
23
- onChange: onChange
24
- }));
18
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
19
+ className: "dtable-ui-mobile-selector-search",
20
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableSearchInput.default, {
21
+ autoFocus: true,
22
+ value: value,
23
+ placeholder: placeholder,
24
+ onChange: onChange
25
+ })
26
+ });
25
27
  };
26
28
  var _default = exports.default = Search;
@@ -10,6 +10,7 @@ var _react = _interopRequireWildcard(require("react"));
10
10
  var _ActionSheet = _interopRequireDefault(require("../ActionSheet"));
11
11
  var _lang = require("../lang");
12
12
  require("./index.css");
13
+ var _jsxRuntime = require("react/jsx-runtime");
13
14
  const MobileUpload = _ref => {
14
15
  let {
15
16
  type = 'file',
@@ -25,42 +26,59 @@ const MobileUpload = _ref => {
25
26
  const iconStyle = {
26
27
  lineHeight: '56px'
27
28
  };
28
- if (type === 'image') return [/*#__PURE__*/_react.default.createElement("div", {
29
- className: "my-am-action d-flex justify-content-between"
30
- }, /*#__PURE__*/_react.default.createElement("span", null, (0, _lang.getLocale)('Take_a_photo')), /*#__PURE__*/_react.default.createElement("i", {
31
- "aria-hidden": "true",
32
- className: "dtable-font dtable-icon-camera",
33
- style: iconStyle
34
- })), /*#__PURE__*/_react.default.createElement("div", {
35
- className: "my-am-action d-flex justify-content-between"
36
- }, /*#__PURE__*/_react.default.createElement("span", null, (0, _lang.getLocale)('Browse_documents')), /*#__PURE__*/_react.default.createElement("i", {
37
- "aria-hidden": "true",
38
- className: "dtable-font dtable-icon-more-level",
39
- style: iconStyle
40
- })), /*#__PURE__*/_react.default.createElement("div", {
41
- className: "my-am-action d-flex justify-content-center"
42
- }, (0, _lang.getLocale)('Cancel'))];
43
- return [/*#__PURE__*/_react.default.createElement("div", {
44
- className: "my-am-action d-flex justify-content-between"
45
- }, /*#__PURE__*/_react.default.createElement("span", null, (0, _lang.getLocale)('Take_a_photo')), /*#__PURE__*/_react.default.createElement("i", {
46
- "aria-hidden": "true",
47
- className: "dtable-font dtable-icon-camera",
48
- style: iconStyle
49
- })), /*#__PURE__*/_react.default.createElement("div", {
50
- className: "my-am-action d-flex justify-content-between"
51
- }, /*#__PURE__*/_react.default.createElement("span", null, (0, _lang.getLocale)('Take_a_video')), /*#__PURE__*/_react.default.createElement("i", {
52
- "aria-hidden": "true",
53
- className: "dtable-font dtable-icon-camera",
54
- style: iconStyle
55
- })), /*#__PURE__*/_react.default.createElement("div", {
56
- className: "my-am-action d-flex justify-content-between"
57
- }, /*#__PURE__*/_react.default.createElement("span", null, (0, _lang.getLocale)('Browse_documents')), /*#__PURE__*/_react.default.createElement("i", {
58
- "aria-hidden": "true",
59
- className: "dtable-font dtable-icon-more-level",
60
- style: iconStyle
61
- })), /*#__PURE__*/_react.default.createElement("div", {
62
- className: "my-am-action d-flex justify-content-center"
63
- }, (0, _lang.getLocale)('Cancel'))];
29
+ if (type === 'image') return [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
30
+ className: "my-am-action d-flex justify-content-between",
31
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
32
+ children: (0, _lang.getLocale)('Take_a_photo')
33
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
34
+ "aria-hidden": "true",
35
+ className: "dtable-font dtable-icon-camera",
36
+ style: iconStyle
37
+ })]
38
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
39
+ className: "my-am-action d-flex justify-content-between",
40
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
41
+ children: (0, _lang.getLocale)('Browse_documents')
42
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
43
+ "aria-hidden": "true",
44
+ className: "dtable-font dtable-icon-more-level",
45
+ style: iconStyle
46
+ })]
47
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
48
+ className: "my-am-action d-flex justify-content-center",
49
+ children: (0, _lang.getLocale)('Cancel')
50
+ })];
51
+ return [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
52
+ className: "my-am-action d-flex justify-content-between",
53
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
54
+ children: (0, _lang.getLocale)('Take_a_photo')
55
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
56
+ "aria-hidden": "true",
57
+ className: "dtable-font dtable-icon-camera",
58
+ style: iconStyle
59
+ })]
60
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
61
+ className: "my-am-action d-flex justify-content-between",
62
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
63
+ children: (0, _lang.getLocale)('Take_a_video')
64
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
65
+ "aria-hidden": "true",
66
+ className: "dtable-font dtable-icon-camera",
67
+ style: iconStyle
68
+ })]
69
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
70
+ className: "my-am-action d-flex justify-content-between",
71
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
72
+ children: (0, _lang.getLocale)('Browse_documents')
73
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
74
+ "aria-hidden": "true",
75
+ className: "dtable-font dtable-icon-more-level",
76
+ style: iconStyle
77
+ })]
78
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
79
+ className: "my-am-action d-flex justify-content-center",
80
+ children: (0, _lang.getLocale)('Cancel')
81
+ })];
64
82
  }, [type]);
65
83
  const showActionSheet = (0, _react.useCallback)(() => {
66
84
  if (type === 'image') {
@@ -115,46 +133,48 @@ const MobileUpload = _ref => {
115
133
  // eslint-disable-next-line react-hooks/exhaustive-deps
116
134
  }, []);
117
135
  if (type === 'image') {
118
- return /*#__PURE__*/_react.default.createElement("div", {
119
- className: "h-0 o-hidden"
120
- }, /*#__PURE__*/_react.default.createElement("input", {
136
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
137
+ className: "h-0 o-hidden",
138
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
139
+ type: "file",
140
+ accept: "image/*",
141
+ ref: imageRef,
142
+ multiple: true,
143
+ onClick: onInputClick,
144
+ onChange: handleChange
145
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
146
+ type: "file",
147
+ capture: "camera",
148
+ accept: "image/*",
149
+ ref: cameraRef,
150
+ onClick: onInputClick,
151
+ onChange: handleChange
152
+ })]
153
+ });
154
+ }
155
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
156
+ className: "h-0 o-hidden",
157
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
121
158
  type: "file",
122
- accept: "image/*",
123
- ref: imageRef,
159
+ ref: fileRef,
124
160
  multiple: true,
125
161
  onClick: onInputClick,
126
162
  onChange: handleChange
127
- }), /*#__PURE__*/_react.default.createElement("input", {
163
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
128
164
  type: "file",
129
165
  capture: "camera",
130
166
  accept: "image/*",
131
167
  ref: cameraRef,
132
168
  onClick: onInputClick,
133
169
  onChange: handleChange
134
- }));
135
- }
136
- return /*#__PURE__*/_react.default.createElement("div", {
137
- className: "h-0 o-hidden"
138
- }, /*#__PURE__*/_react.default.createElement("input", {
139
- type: "file",
140
- ref: fileRef,
141
- multiple: true,
142
- onClick: onInputClick,
143
- onChange: handleChange
144
- }), /*#__PURE__*/_react.default.createElement("input", {
145
- type: "file",
146
- capture: "camera",
147
- accept: "image/*",
148
- ref: cameraRef,
149
- onClick: onInputClick,
150
- onChange: handleChange
151
- }), /*#__PURE__*/_react.default.createElement("input", {
152
- type: "file",
153
- capture: "camcorder",
154
- accept: "video/*",
155
- ref: camcorderRef,
156
- onClick: onInputClick,
157
- onChange: handleChange
158
- }));
170
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
171
+ type: "file",
172
+ capture: "camcorder",
173
+ accept: "video/*",
174
+ ref: camcorderRef,
175
+ onClick: onInputClick,
176
+ onChange: handleChange
177
+ })]
178
+ });
159
179
  };
160
180
  var _default = exports.default = MobileUpload;
@@ -10,6 +10,7 @@ var React = _interopRequireWildcard(require("react"));
10
10
  var _client = require("react-dom/client");
11
11
  var _closest = _interopRequireDefault(require("../utils/closest"));
12
12
  var _modal = _interopRequireDefault(require("./modal"));
13
+ var _jsxRuntime = require("react/jsx-runtime");
13
14
  function alert(title, message) {
14
15
  let actions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [{
15
16
  text: '确定'
@@ -63,7 +64,7 @@ function alert(title, message) {
63
64
  e.preventDefault();
64
65
  }
65
66
  }
66
- root.render( /*#__PURE__*/React.createElement(_modal.default, {
67
+ root.render( /*#__PURE__*/(0, _jsxRuntime.jsx)(_modal.default, {
67
68
  visible: true,
68
69
  transparent: true,
69
70
  title: title,
@@ -75,10 +76,12 @@ function alert(title, message) {
75
76
  platform: platform,
76
77
  wrapProps: {
77
78
  onTouchStart: onWrapTouchStart
78
- }
79
- }, /*#__PURE__*/React.createElement("div", {
80
- className: "".concat(prefixCls, "-alert-content")
81
- }, message)));
79
+ },
80
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
81
+ className: "".concat(prefixCls, "-alert-content"),
82
+ children: message
83
+ })
84
+ }));
82
85
  return {
83
86
  close
84
87
  };
@@ -10,6 +10,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
10
10
  var React = _interopRequireWildcard(require("react"));
11
11
  var _rmcDialog = _interopRequireDefault(require("rmc-dialog"));
12
12
  var _rmcFeedback = _interopRequireDefault(require("rmc-feedback"));
13
+ var _jsxRuntime = require("react/jsx-runtime");
13
14
  class ModalComponent extends React.Component {}
14
15
  exports.ModalComponent = ModalComponent;
15
16
  class Modal extends ModalComponent {
@@ -34,15 +35,16 @@ class Modal extends ModalComponent {
34
35
  button.onPress();
35
36
  }
36
37
  };
37
- return /*#__PURE__*/React.createElement(_rmcFeedback.default, {
38
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcFeedback.default, {
38
39
  activeClassName: "".concat(prefixCls, "-button-active"),
39
- key: i
40
- }, /*#__PURE__*/React.createElement("span", {
41
- className: "".concat(prefixCls, "-button"),
42
- role: "button",
43
- style: buttonStyle,
44
- onClick: onClickFn
45
- }, button.text || 'Button'));
40
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
41
+ className: "".concat(prefixCls, "-button"),
42
+ role: "button",
43
+ style: buttonStyle,
44
+ onClick: onClickFn,
45
+ children: button.text || 'Button'
46
+ })
47
+ }, i);
46
48
  }
47
49
  render() {
48
50
  const {
@@ -62,12 +64,13 @@ class Modal extends ModalComponent {
62
64
  ...restProps
63
65
  } = this.props;
64
66
  const btnGroupClass = (0, _classnames.default)("".concat(prefixCls, "-button-group-").concat(footer.length === 2 && !operation ? 'h' : 'v'), "".concat(prefixCls, "-button-group-").concat(operation ? 'operation' : 'normal'));
65
- const footerDom = footer.length ? /*#__PURE__*/React.createElement("div", {
67
+ const footerDom = footer.length ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
66
68
  className: btnGroupClass,
67
- role: "group"
68
- }, footer.map((button, i) =>
69
- // tslint:disable-next-line:jsx-no-multiline-js
70
- this.renderFooterButton(button, prefixCls, i))) : null;
69
+ role: "group",
70
+ children: footer.map((button, i) =>
71
+ // tslint:disable-next-line:jsx-no-multiline-js
72
+ this.renderFooterButton(button, prefixCls, i))
73
+ }) : null;
71
74
  let transName;
72
75
  let maskTransName;
73
76
  if (animated) {
@@ -91,7 +94,8 @@ class Modal extends ModalComponent {
91
94
  ["".concat(prefixCls, "-popup-").concat(animationType)]: popup && animationType,
92
95
  ["".concat(prefixCls, "-android")]: platform === 'android'
93
96
  });
94
- return /*#__PURE__*/React.createElement(_rmcDialog.default, Object.assign({}, restProps, {
97
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcDialog.default, {
98
+ ...restProps,
95
99
  prefixCls: prefixCls,
96
100
  className: cls,
97
101
  wrapClassName: wrapCls,
@@ -99,7 +103,7 @@ class Modal extends ModalComponent {
99
103
  maskTransitionName: maskTransitionName || maskTransName,
100
104
  style: style,
101
105
  footer: footerDom
102
- }));
106
+ });
103
107
  }
104
108
  }
105
109
  exports.default = Modal;
@@ -10,6 +10,7 @@ var React = _interopRequireWildcard(require("react"));
10
10
  var _client = require("react-dom/client");
11
11
  var _closest = _interopRequireDefault(require("../utils/closest"));
12
12
  var _modal = _interopRequireDefault(require("./modal"));
13
+ var _jsxRuntime = require("react/jsx-runtime");
13
14
  function operation() {
14
15
  let actions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [{
15
16
  text: '确定'
@@ -57,7 +58,7 @@ function operation() {
57
58
  e.preventDefault();
58
59
  }
59
60
  }
60
- root.render( /*#__PURE__*/React.createElement(_modal.default, {
61
+ root.render( /*#__PURE__*/(0, _jsxRuntime.jsx)(_modal.default, {
61
62
  visible: true,
62
63
  operation: true,
63
64
  transparent: true,
@@ -10,6 +10,7 @@ var React = _interopRequireWildcard(require("react"));
10
10
  var _client = require("react-dom/client");
11
11
  var _closest = _interopRequireDefault(require("../utils/closest"));
12
12
  var _modal = _interopRequireDefault(require("./modal"));
13
+ var _jsxRuntime = require("react/jsx-runtime");
13
14
  function prompt(title, message, callbackOrActions) {
14
15
  let type = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'default';
15
16
  let defaultValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : '';
@@ -59,61 +60,78 @@ function prompt(title, message, callbackOrActions) {
59
60
  };
60
61
  switch (type) {
61
62
  case 'login-password':
62
- inputDom = /*#__PURE__*/React.createElement("div", {
63
- className: "".concat(prefixCls, "-input-container")
64
- }, /*#__PURE__*/React.createElement("div", {
65
- className: "".concat(prefixCls, "-input")
66
- }, /*#__PURE__*/React.createElement("label", null, /*#__PURE__*/React.createElement("input", {
67
- type: "text",
68
- defaultValue: data.text,
69
- ref: input => focusFn(input),
70
- onClick: onClick,
71
- onChange: onChange,
72
- placeholder: placeholders[0],
73
- onBlur: onBlurFixWechat
74
- }))), /*#__PURE__*/React.createElement("div", {
75
- className: "".concat(prefixCls, "-input")
76
- }, /*#__PURE__*/React.createElement("label", null, /*#__PURE__*/React.createElement("input", {
77
- type: "password",
78
- defaultValue: data.password,
79
- onClick: onClick,
80
- onChange: onChange,
81
- placeholder: placeholders[1],
82
- onBlur: onBlurFixWechat
83
- }))));
63
+ inputDom = /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
64
+ className: "".concat(prefixCls, "-input-container"),
65
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
66
+ className: "".concat(prefixCls, "-input"),
67
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
68
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
69
+ type: "text",
70
+ defaultValue: data.text,
71
+ ref: input => focusFn(input),
72
+ onClick: onClick,
73
+ onChange: onChange,
74
+ placeholder: placeholders[0],
75
+ onBlur: onBlurFixWechat
76
+ })
77
+ })
78
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
79
+ className: "".concat(prefixCls, "-input"),
80
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
81
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
82
+ type: "password",
83
+ defaultValue: data.password,
84
+ onClick: onClick,
85
+ onChange: onChange,
86
+ placeholder: placeholders[1],
87
+ onBlur: onBlurFixWechat
88
+ })
89
+ })
90
+ })]
91
+ });
84
92
  break;
85
93
  case 'secure-text':
86
- inputDom = /*#__PURE__*/React.createElement("div", {
87
- className: "".concat(prefixCls, "-input-container")
88
- }, /*#__PURE__*/React.createElement("div", {
89
- className: "".concat(prefixCls, "-input")
90
- }, /*#__PURE__*/React.createElement("label", null, /*#__PURE__*/React.createElement("input", {
91
- type: "password",
92
- defaultValue: data.password,
93
- ref: input => focusFn(input),
94
- onClick: onClick,
95
- onChange: onChange,
96
- placeholder: placeholders[0],
97
- onBlur: onBlurFixWechat
98
- }))));
94
+ inputDom = /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
95
+ className: "".concat(prefixCls, "-input-container"),
96
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
97
+ className: "".concat(prefixCls, "-input"),
98
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
99
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
100
+ type: "password",
101
+ defaultValue: data.password,
102
+ ref: input => focusFn(input),
103
+ onClick: onClick,
104
+ onChange: onChange,
105
+ placeholder: placeholders[0],
106
+ onBlur: onBlurFixWechat
107
+ })
108
+ })
109
+ })
110
+ });
99
111
  break;
100
112
  case 'default':
101
113
  default:
102
- inputDom = /*#__PURE__*/React.createElement("div", {
103
- className: "".concat(prefixCls, "-input-container")
104
- }, /*#__PURE__*/React.createElement("div", {
105
- className: "".concat(prefixCls, "-input")
106
- }, /*#__PURE__*/React.createElement("label", null, /*#__PURE__*/React.createElement("input", {
107
- type: "text",
108
- defaultValue: data.text,
109
- ref: input => focusFn(input),
110
- onClick: onClick,
111
- onChange: onChange,
112
- placeholder: placeholders[0],
113
- onBlur: onBlurFixWechat
114
- }))));
114
+ inputDom = /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
115
+ className: "".concat(prefixCls, "-input-container"),
116
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
117
+ className: "".concat(prefixCls, "-input"),
118
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
119
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
120
+ type: "text",
121
+ defaultValue: data.text,
122
+ ref: input => focusFn(input),
123
+ onClick: onClick,
124
+ onChange: onChange,
125
+ placeholder: placeholders[0],
126
+ onBlur: onBlurFixWechat
127
+ })
128
+ })
129
+ })
130
+ });
115
131
  }
116
- const content = /*#__PURE__*/React.createElement("div", null, message, inputDom);
132
+ const content = /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
133
+ children: [message, inputDom]
134
+ });
117
135
  const div = document.createElement('div');
118
136
  document.body.appendChild(div);
119
137
  const root = (0, _client.createRoot)(div);
@@ -187,7 +205,7 @@ function prompt(title, message, callbackOrActions) {
187
205
  e.preventDefault();
188
206
  }
189
207
  }
190
- root.render( /*#__PURE__*/React.createElement(_modal.default, {
208
+ root.render( /*#__PURE__*/(0, _jsxRuntime.jsx)(_modal.default, {
191
209
  visible: true,
192
210
  transparent: true,
193
211
  prefixCls: prefixCls,
@@ -200,10 +218,12 @@ function prompt(title, message, callbackOrActions) {
200
218
  platform: platform,
201
219
  wrapProps: {
202
220
  onTouchStart: onWrapTouchStart
203
- }
204
- }, /*#__PURE__*/React.createElement("div", {
205
- className: "".concat(prefixCls, "-propmt-content")
206
- }, content)));
221
+ },
222
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
223
+ className: "".concat(prefixCls, "-propmt-content"),
224
+ children: content
225
+ })
226
+ }));
207
227
  return {
208
228
  close
209
229
  };
@@ -8,15 +8,17 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.default = void 0;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
10
  var _selectEditor = _interopRequireDefault(require("../select-editor"));
11
+ var _jsxRuntime = require("react/jsx-runtime");
11
12
  const MultipleSelectEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
12
13
  let {
13
14
  value: oldValue,
14
15
  ...props
15
16
  } = _ref;
16
17
  const value = oldValue ? Array.isArray(oldValue) ? oldValue : [oldValue] : [];
17
- return /*#__PURE__*/_react.default.createElement(_selectEditor.default, Object.assign({}, props, {
18
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_selectEditor.default, {
19
+ ...props,
18
20
  value: value,
19
21
  ref: ref
20
- }));
22
+ });
21
23
  });
22
24
  var _default = exports.default = MultipleSelectEditor;
@@ -9,6 +9,7 @@ var _react = _interopRequireDefault(require("react"));
9
9
  var _classnames = _interopRequireDefault(require("classnames"));
10
10
  var _SelectItem = _interopRequireDefault(require("../SelectItem"));
11
11
  require("./index.css");
12
+ var _jsxRuntime = require("react/jsx-runtime");
12
13
  class MultipleSelectFormatter extends _react.default.PureComponent {
13
14
  constructor() {
14
15
  super(...arguments);
@@ -21,10 +22,9 @@ class MultipleSelectFormatter extends _react.default.PureComponent {
21
22
  let selectedOptions = options.filter(option => value.includes(option.id) || value.includes(option.name));
22
23
  if (selectedOptions.length === 0) return [];
23
24
  return selectedOptions.map(option => {
24
- return /*#__PURE__*/_react.default.createElement(_SelectItem.default, {
25
- key: "multiple-".concat(option.id),
25
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectItem.default, {
26
26
  option: option
27
- });
27
+ }, "multiple-".concat(option.id));
28
28
  });
29
29
  };
30
30
  }
@@ -35,14 +35,15 @@ class MultipleSelectFormatter extends _react.default.PureComponent {
35
35
  } = this.props;
36
36
  let classname = (0, _classnames.default)('dtable-ui cell-formatter-container multiple-select-formatter', containerClassName);
37
37
  if (!value || Array.isArray(value) && value.length === 0) {
38
- return /*#__PURE__*/_react.default.createElement("div", {
38
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
39
39
  className: classname
40
40
  });
41
41
  }
42
42
  let options = this.getOptions();
43
- return /*#__PURE__*/_react.default.createElement("div", {
44
- className: classname
45
- }, options);
43
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
44
+ className: classname,
45
+ children: options
46
+ });
46
47
  }
47
48
  }
48
49
  MultipleSelectFormatter.defaultProps = {