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
@@ -15,6 +15,7 @@ var _Loading = _interopRequireDefault(require("../../Loading"));
15
15
  var _parseGeolocation = _interopRequireDefault(require("./parse-geolocation"));
16
16
  var _constants = require("../../constants");
17
17
  var _lang = require("../../lang");
18
+ var _jsxRuntime = require("react/jsx-runtime");
18
19
  class ProvinceCityEditor extends _react.Component {
19
20
  constructor(props) {
20
21
  super(props);
@@ -183,75 +184,94 @@ class ProvinceCityEditor extends _react.Component {
183
184
  isLoadingData,
184
185
  location
185
186
  } = this.state;
186
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !isLoadingData ? /*#__PURE__*/_react.default.createElement("div", {
187
- onClick: this.onClick,
188
- className: "dtable-ui-geolocation-editor-content"
189
- }, /*#__PURE__*/_react.default.createElement("div", {
190
- className: "dtable-ui-geolocation-editor-item dtable-ui-geolocation-editor-selector-container"
191
- }, /*#__PURE__*/_react.default.createElement("div", {
192
- className: "dtable-ui-geolocation-editor-item-left"
193
- }, (0, _lang.getLocale)('Address_information') + ':'), /*#__PURE__*/_react.default.createElement("div", {
194
- className: "dtable-ui-geolocation-editor-item-right"
195
- }, /*#__PURE__*/_react.default.createElement("div", {
196
- onClick: this.onToggleSelector,
197
- className: "dtable-ui-geolocation-editor-selector text-truncate ".concat(isShowSelector ? 'focus' : '')
198
- }, /*#__PURE__*/_react.default.createElement("span", {
199
- className: "selected-option-show"
200
- }, location ? location : (0, _lang.getLocale)('Select_province_city')), /*#__PURE__*/_react.default.createElement("span", {
201
- "aria-hidden": "true",
202
- className: "dtable-font dtable-icon-down3 dtable-ui-geolocation-editor-parameter-icon"
203
- }))), isShowSelector && /*#__PURE__*/_react.default.createElement("div", {
204
- className: "geolocation-selector-container"
205
- }, /*#__PURE__*/_react.default.createElement("div", {
206
- className: "geolocation-selector-header"
207
- }, /*#__PURE__*/_react.default.createElement(_selectorHeaderItem.default, {
208
- type: "province",
209
- clickHandler: this.selectSelectorType,
210
- selectedType: selectedItem,
211
- selectedItem: selectedProvince
212
- }), /*#__PURE__*/_react.default.createElement(_selectorHeaderItem.default, {
213
- type: "city",
214
- clickHandler: this.selectSelectorType,
215
- selectedType: selectedItem,
216
- selectedItem: selectedCity
217
- })), /*#__PURE__*/_react.default.createElement("div", {
218
- className: "geolocation-selector-body"
219
- }, selectedItem === 'province' && /*#__PURE__*/_react.default.createElement(_selectorList.default, {
220
- type: "province",
221
- parent: this.locations,
222
- selectedItem: selectedProvince,
223
- clickHandler: this.selectProvince
224
- }), selectedItem === 'city' && /*#__PURE__*/_react.default.createElement(_selectorList.default, {
225
- type: "city",
226
- parent: selectedProvince,
227
- selectedItem: selectedCity,
228
- clickHandler: this.selectCity
229
- })))), /*#__PURE__*/_react.default.createElement("div", {
230
- className: "dtable-ui-geolocation-editor-item dtable-ui-geolocation-editor-parse"
231
- }, /*#__PURE__*/_react.default.createElement("div", {
232
- className: "dtable-ui-geolocation-editor-item-left"
233
- }, (0, _lang.getLocale)('Auto_recognition') + ':'), /*#__PURE__*/_react.default.createElement("div", {
234
- className: "dtable-ui-geolocation-editor-item-right"
235
- }, /*#__PURE__*/_react.default.createElement("textarea", {
236
- ref: ref => this.parseRef = ref,
237
- placeholder: (0, _lang.getLocale)('Try_pasting_addresses_such_as_provinces/cities_information_to_quickly_identify_the_address_information'),
238
- className: "dtable-ui-geolocation-editor-detail-info dtable-ui-geolocation-editor-recognition",
239
- type: "text",
240
- onChange: this.onParseChange,
241
- onKeyDown: this.onKeyDown,
242
- onCompositionEnd: this.onCompositionEnd,
243
- onCompositionStart: this.onCompositionStart
244
- })))) : /*#__PURE__*/_react.default.createElement(_Loading.default, null), this.state.errMessage && /*#__PURE__*/_react.default.createElement(_reactstrap.Alert, {
245
- color: "danger",
246
- className: "mt-2"
247
- }, this.state.errMessage), /*#__PURE__*/_react.default.createElement(_DTableCustomFooter.default, null, /*#__PURE__*/_react.default.createElement(_reactstrap.Button, {
248
- onClick: this.props.onCancel,
249
- color: "secondary"
250
- }, (0, _lang.getLocale)('Cancel')), /*#__PURE__*/_react.default.createElement(_reactstrap.Button, {
251
- onClick: this.onSubmit,
252
- color: "primary",
253
- autoFocus: true
254
- }, (0, _lang.getLocale)('Submit'))));
187
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
188
+ children: [!isLoadingData ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
189
+ onClick: this.onClick,
190
+ className: "dtable-ui-geolocation-editor-content",
191
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
192
+ className: "dtable-ui-geolocation-editor-item dtable-ui-geolocation-editor-selector-container",
193
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
194
+ className: "dtable-ui-geolocation-editor-item-left",
195
+ children: (0, _lang.getLocale)('Address_information') + ':'
196
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
197
+ className: "dtable-ui-geolocation-editor-item-right",
198
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
199
+ onClick: this.onToggleSelector,
200
+ className: "dtable-ui-geolocation-editor-selector text-truncate ".concat(isShowSelector ? 'focus' : ''),
201
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
202
+ className: "selected-option-show",
203
+ children: location ? location : (0, _lang.getLocale)('Select_province_city')
204
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
205
+ "aria-hidden": "true",
206
+ className: "dtable-font dtable-icon-down3 dtable-ui-geolocation-editor-parameter-icon"
207
+ })]
208
+ })
209
+ }), isShowSelector && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
210
+ className: "geolocation-selector-container",
211
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
212
+ className: "geolocation-selector-header",
213
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_selectorHeaderItem.default, {
214
+ type: "province",
215
+ clickHandler: this.selectSelectorType,
216
+ selectedType: selectedItem,
217
+ selectedItem: selectedProvince
218
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_selectorHeaderItem.default, {
219
+ type: "city",
220
+ clickHandler: this.selectSelectorType,
221
+ selectedType: selectedItem,
222
+ selectedItem: selectedCity
223
+ })]
224
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
225
+ className: "geolocation-selector-body",
226
+ children: [selectedItem === 'province' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_selectorList.default, {
227
+ type: "province",
228
+ parent: this.locations,
229
+ selectedItem: selectedProvince,
230
+ clickHandler: this.selectProvince
231
+ }), selectedItem === 'city' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_selectorList.default, {
232
+ type: "city",
233
+ parent: selectedProvince,
234
+ selectedItem: selectedCity,
235
+ clickHandler: this.selectCity
236
+ })]
237
+ })]
238
+ })]
239
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
240
+ className: "dtable-ui-geolocation-editor-item dtable-ui-geolocation-editor-parse",
241
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
242
+ className: "dtable-ui-geolocation-editor-item-left",
243
+ children: (0, _lang.getLocale)('Auto_recognition') + ':'
244
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
245
+ className: "dtable-ui-geolocation-editor-item-right",
246
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("textarea", {
247
+ ref: ref => this.parseRef = ref,
248
+ placeholder: (0, _lang.getLocale)('Try_pasting_addresses_such_as_provinces/cities_information_to_quickly_identify_the_address_information'),
249
+ className: "dtable-ui-geolocation-editor-detail-info dtable-ui-geolocation-editor-recognition",
250
+ type: "text",
251
+ onChange: this.onParseChange,
252
+ onKeyDown: this.onKeyDown,
253
+ onCompositionEnd: this.onCompositionEnd,
254
+ onCompositionStart: this.onCompositionStart
255
+ })
256
+ })]
257
+ })]
258
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loading.default, {}), this.state.errMessage && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Alert, {
259
+ color: "danger",
260
+ className: "mt-2",
261
+ children: this.state.errMessage
262
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_DTableCustomFooter.default, {
263
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Button, {
264
+ onClick: this.props.onCancel,
265
+ color: "secondary",
266
+ children: (0, _lang.getLocale)('Cancel')
267
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Button, {
268
+ onClick: this.onSubmit,
269
+ color: "primary",
270
+ autoFocus: true,
271
+ children: (0, _lang.getLocale)('Submit')
272
+ })]
273
+ })]
274
+ });
255
275
  }
256
276
  }
257
277
  var _default = exports.default = ProvinceCityEditor;
@@ -11,6 +11,7 @@ var _DTableSearchInput = _interopRequireDefault(require("../../DTableSearchInput
11
11
  var _constants = require("../../constants");
12
12
  var _Loading = _interopRequireDefault(require("../../Loading"));
13
13
  var _lang = require("../../lang");
14
+ var _jsxRuntime = require("react/jsx-runtime");
14
15
  class ProvinceEditor extends _react.Component {
15
16
  constructor(props) {
16
17
  super(props);
@@ -128,25 +129,26 @@ class ProvinceEditor extends _react.Component {
128
129
  highlightIndex
129
130
  } = this.state;
130
131
  let provinceList = this.filteredProvince.map((item, index) => {
131
- return /*#__PURE__*/_react.default.createElement("div", {
132
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
132
133
  className: "geolocation-region-editor-province ".concat(highlightIndex === index ? 'geolocation-region-editor-province-highlight' : ''),
133
- key: item.alphabetic + index,
134
134
  title: item.name,
135
135
  "aria-label": item.name,
136
136
  onClick: () => this.onClick(item.name),
137
137
  onMouseEnter: () => this.onMenuMouseEnter(index),
138
- onMouseLeave: () => this.onMenuMouseLeave(index)
139
- }, /*#__PURE__*/_react.default.createElement("span", {
140
- className: "province-name"
141
- }, item.name), /*#__PURE__*/_react.default.createElement("span", {
142
- className: "icon ".concat(value === item.name ? 'province-selected-icon dtable-font dtable-icon-check-mark' : '')
143
- }));
138
+ onMouseLeave: () => this.onMenuMouseLeave(index),
139
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
140
+ className: "province-name",
141
+ children: item.name
142
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
143
+ className: "icon ".concat(value === item.name ? 'province-selected-icon dtable-font dtable-icon-check-mark' : '')
144
+ })]
145
+ }, item.alphabetic + index);
144
146
  });
145
147
  if (provinceList.length === 0) {
146
- provinceList.push( /*#__PURE__*/_react.default.createElement("div", {
147
- key: 'province-null',
148
- className: "country-list-empty"
149
- }, (0, _lang.getLocale)('No_options')));
148
+ provinceList.push( /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
149
+ className: "country-list-empty",
150
+ children: (0, _lang.getLocale)('No_options')
151
+ }, 'province-null'));
150
152
  }
151
153
  return provinceList;
152
154
  };
@@ -184,19 +186,22 @@ class ProvinceEditor extends _react.Component {
184
186
  const {
185
187
  isLoadingData
186
188
  } = this.state;
187
- return /*#__PURE__*/_react.default.createElement("div", {
188
- className: "dtable-ui-geolocation-province-editor"
189
- }, /*#__PURE__*/_react.default.createElement("div", {
190
- className: "geolocation-province-list-header"
191
- }, /*#__PURE__*/_react.default.createElement(_DTableSearchInput.default, {
192
- placeholder: (0, _lang.getLocale)('Search_province'),
193
- onKeyDown: this.onKeyDown,
194
- onChange: this.onChange,
195
- autoFocus: true
196
- })), /*#__PURE__*/_react.default.createElement("div", {
197
- className: "geolocation-province-list-container",
198
- ref: ref => this.selectContainer = ref
199
- }, isLoadingData ? /*#__PURE__*/_react.default.createElement(_Loading.default, null) : this.createProvinceList()));
189
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
190
+ className: "dtable-ui-geolocation-province-editor",
191
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
192
+ className: "geolocation-province-list-header",
193
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableSearchInput.default, {
194
+ placeholder: (0, _lang.getLocale)('Search_province'),
195
+ onKeyDown: this.onKeyDown,
196
+ onChange: this.onChange,
197
+ autoFocus: true
198
+ })
199
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
200
+ className: "geolocation-province-list-container",
201
+ ref: ref => this.selectContainer = ref,
202
+ children: isLoadingData ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loading.default, {}) : this.createProvinceList()
203
+ })]
204
+ });
200
205
  }
201
206
  }
202
207
  var _default = exports.default = ProvinceEditor;
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _lang = require("../../lang");
10
+ var _jsxRuntime = require("react/jsx-runtime");
10
11
  class SelectorHeaderItem extends _react.default.Component {
11
12
  render() {
12
13
  const {
@@ -15,14 +16,17 @@ class SelectorHeaderItem extends _react.default.Component {
15
16
  selectedType,
16
17
  selectedItem
17
18
  } = this.props;
18
- return /*#__PURE__*/_react.default.createElement("div", {
19
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
19
20
  className: 'dtable-ui-geolocation-selector-header-item ' + (selectedType === type ? 'selected-dtable-ui-geolocation-selector-header-item' : ''),
20
21
  onClick: () => {
21
22
  clickHandler(type);
22
- }
23
- }, /*#__PURE__*/_react.default.createElement("span", null, selectedItem ? selectedItem.name ? selectedItem.name : selectedItem : (0, _lang.getLocale)('Select_location')), /*#__PURE__*/_react.default.createElement("i", {
24
- className: "dtable-font dtable-icon-down3"
25
- }));
23
+ },
24
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
25
+ children: selectedItem ? selectedItem.name ? selectedItem.name : selectedItem : (0, _lang.getLocale)('Select_location')
26
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
27
+ className: "dtable-font dtable-icon-down3"
28
+ })]
29
+ });
26
30
  }
27
31
  }
28
32
  var _default = exports.default = SelectorHeaderItem;
@@ -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 SelectorList extends _react.default.Component {
10
11
  render() {
11
12
  const {
@@ -15,19 +16,20 @@ class SelectorList extends _react.default.Component {
15
16
  parent,
16
17
  doubleClickHandler
17
18
  } = this.props;
18
- return /*#__PURE__*/_react.default.createElement("ul", {
19
- className: "dtable-ui-geolocation-selector-list"
20
- }, parent.children.map((item, index) => {
21
- const isSelected = selectedItem && item.name === selectedItem.name;
22
- return /*#__PURE__*/_react.default.createElement("li", {
23
- onClick: () => clickHandler(item),
24
- onDoubleClick: () => {
25
- doubleClickHandler && doubleClickHandler(item);
26
- },
27
- key: type + '-item-' + index,
28
- className: "dtable-ui-geolocation-selector-list-item ".concat(type === 'province' ? 'province-item' : '', " ").concat(isSelected ? 'selected-list-item' : '')
29
- }, item.name);
30
- }));
19
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("ul", {
20
+ className: "dtable-ui-geolocation-selector-list",
21
+ children: parent.children.map((item, index) => {
22
+ const isSelected = selectedItem && item.name === selectedItem.name;
23
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
24
+ onClick: () => clickHandler(item),
25
+ onDoubleClick: () => {
26
+ doubleClickHandler && doubleClickHandler(item);
27
+ },
28
+ className: "dtable-ui-geolocation-selector-list-item ".concat(type === 'province' ? 'province-item' : '', " ").concat(isSelected ? 'selected-list-item' : ''),
29
+ children: item.name
30
+ }, type + '-item-' + index);
31
+ })
32
+ });
31
33
  }
32
34
  }
33
35
  var _default = exports.default = SelectorList;
@@ -9,6 +9,7 @@ var _react = _interopRequireDefault(require("react"));
9
9
  var _classnames = _interopRequireDefault(require("classnames"));
10
10
  var _dtableUtils = require("dtable-utils");
11
11
  require("./index.css");
12
+ var _jsxRuntime = require("react/jsx-runtime");
12
13
  class GeolocationFormatter extends _react.default.Component {
13
14
  render() {
14
15
  let {
@@ -23,10 +24,11 @@ class GeolocationFormatter extends _react.default.Component {
23
24
  const geolocationDisplayString = (0, _dtableUtils.getGeolocationDisplayString)(value, data, {
24
25
  hyphen: ' '
25
26
  });
26
- return /*#__PURE__*/_react.default.createElement("div", {
27
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
27
28
  title: geolocationDisplayString,
28
- className: className
29
- }, geolocationDisplayString);
29
+ className: className,
30
+ children: geolocationDisplayString
31
+ });
30
32
  }
31
33
  }
32
34
  GeolocationFormatter.defaultProps = {
@@ -10,6 +10,7 @@ var _react = _interopRequireWildcard(require("react"));
10
10
  var _classnames = _interopRequireDefault(require("classnames"));
11
11
  var _seafileEditor = require("@seafile/seafile-editor");
12
12
  require("./index.css");
13
+ var _jsxRuntime = require("react/jsx-runtime");
13
14
  class HtmlLongTextFormatter extends _react.Component {
14
15
  constructor(_props) {
15
16
  super(_props);
@@ -66,7 +67,7 @@ class HtmlLongTextFormatter extends _react.Component {
66
67
  } = this.props;
67
68
  const className = (0, _classnames.default)('dtable-ui cell-formatter-container long-text-formatter', containerClassName);
68
69
  if (!innerHtml) return null;
69
- return /*#__PURE__*/_react.default.createElement("div", {
70
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
70
71
  className: "".concat(className, " article"),
71
72
  dangerouslySetInnerHTML: {
72
73
  __html: innerHtml
package/lib/Icon/index.js CHANGED
@@ -10,6 +10,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
10
10
  var React = _interopRequireWildcard(require("react"));
11
11
  var _loadSprite = _interopRequireDefault(require("./load-sprite"));
12
12
  require("./index.css");
13
+ var _jsxRuntime = require("react/jsx-runtime");
13
14
  class Icon extends React.Component {
14
15
  componentDidMount() {
15
16
  (0, _loadSprite.default)();
@@ -22,11 +23,13 @@ class Icon extends React.Component {
22
23
  ...restProps
23
24
  } = this.props;
24
25
  const cls = (0, _classnames.default)(className, 'am-icon', "am-icon-".concat(type), "am-icon-".concat(size));
25
- return /*#__PURE__*/React.createElement("svg", Object.assign({
26
- className: cls
27
- }, restProps), /*#__PURE__*/React.createElement("use", {
28
- xlinkHref: "#".concat(type)
29
- }));
26
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
27
+ className: cls,
28
+ ...restProps,
29
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("use", {
30
+ xlinkHref: "#".concat(type)
31
+ })
32
+ });
30
33
  }
31
34
  }
32
35
  exports.default = Icon;
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _classnames = _interopRequireDefault(require("classnames"));
10
+ var _jsxRuntime = require("react/jsx-runtime");
10
11
  const IconButton = _ref => {
11
12
  let {
12
13
  disabled,
@@ -15,13 +16,15 @@ const IconButton = _ref => {
15
16
  children,
16
17
  ...otherProperties
17
18
  } = _ref;
18
- return /*#__PURE__*/_react.default.createElement("div", Object.assign({
19
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
19
20
  className: (0, _classnames.default)('seatable-icon-btn', className, {
20
21
  'disabled': disabled
21
- })
22
- }, otherProperties), icon && /*#__PURE__*/_react.default.createElement("i", {
23
- className: (0, _classnames.default)('seatable-icon dtable-font', "dtable-icon-".concat(icon)),
24
- "aria-hidden": "true"
25
- }), children);
22
+ }),
23
+ ...otherProperties,
24
+ children: [icon && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
25
+ className: (0, _classnames.default)('seatable-icon dtable-font', "dtable-icon-".concat(icon)),
26
+ "aria-hidden": "true"
27
+ }), children]
28
+ });
26
29
  };
27
30
  var _default = exports.default = IconButton;
@@ -13,6 +13,7 @@ var _url = require("../../../utils/url");
13
13
  var _constants = require("../../../constants");
14
14
  var _lang = require("../../../lang");
15
15
  require("./index.css");
16
+ var _jsxRuntime = require("react/jsx-runtime");
16
17
  class ImagePreviewer extends _react.default.Component {
17
18
  constructor(props) {
18
19
  super(props);
@@ -63,21 +64,24 @@ class ImagePreviewer extends _react.default.Component {
63
64
  });
64
65
  };
65
66
  this.renderImageIcons = () => {
66
- return /*#__PURE__*/_react.default.createElement("div", {
67
- className: "dtable-ui-image-icons-choice"
68
- }, this.props.downloadImage && this.canDownLoad && /*#__PURE__*/_react.default.createElement("span", {
69
- className: "image-icon",
70
- onClick: this.downloadImage
71
- }, /*#__PURE__*/_react.default.createElement("i", {
72
- "aria-hidden": "true",
73
- className: "dtable-font dtable-icon-download"
74
- })), this.props.deleteImage && /*#__PURE__*/_react.default.createElement("span", {
75
- className: "image-icon",
76
- onClick: this.onClickDelete
77
- }, /*#__PURE__*/_react.default.createElement("i", {
78
- "aria-hidden": "true",
79
- className: "dtable-font dtable-icon-fork-number"
80
- })));
67
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
68
+ className: "dtable-ui-image-icons-choice",
69
+ children: [this.props.downloadImage && this.canDownLoad && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
70
+ className: "image-icon",
71
+ onClick: this.downloadImage,
72
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
73
+ "aria-hidden": "true",
74
+ className: "dtable-font dtable-icon-download"
75
+ })
76
+ }), this.props.deleteImage && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
77
+ className: "image-icon",
78
+ onClick: this.onClickDelete,
79
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
80
+ "aria-hidden": "true",
81
+ className: "dtable-font dtable-icon-fork-number"
82
+ })
83
+ })]
84
+ });
81
85
  };
82
86
  this.state = {
83
87
  isTooltipOpen: false,
@@ -121,35 +125,39 @@ class ImagePreviewer extends _react.default.Component {
121
125
  itemIndex,
122
126
  imageItemUrl
123
127
  } = this.props;
124
- return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
125
- style: _constants.isMobile ? {
126
- width: this.containerSize,
127
- height: this.containerSize
128
- } : {},
129
- onClick: this.showLargeImage,
130
- className: "dtable-ui-image-previewer-box",
131
- onMouseEnter: this.showImageToolbar,
132
- onMouseLeave: this.hideImageToolbar,
133
- ref: ref => this.ref = ref
134
- }, /*#__PURE__*/_react.default.createElement("img", {
135
- src: this.state.imageThumbnailUrl,
136
- alt: ""
137
- }), enterImageItemIndex === itemIndex && this.renderImageIcons()), !_constants.isMobile && enterImageItemIndex === itemIndex && /*#__PURE__*/_react.default.createElement(_reactstrap.Tooltip, {
138
- placement: "bottom",
139
- isOpen: this.state.isTooltipOpen,
140
- toggle: this.toggle,
141
- target: this.ref,
142
- delay: {
143
- show: 0,
144
- hide: 0
145
- },
146
- fade: false
147
- }, (0, _url.getFileName)(imageItemUrl)), this.state.showTip && /*#__PURE__*/_react.default.createElement(_DeleteTip.default, {
148
- position: this.position,
149
- toggle: this.closeTip,
150
- handleDelete: this.deleteImage,
151
- deleteTip: (0, _lang.getLocale)('Are_you_sure_you_want_to_delete_this_image')
152
- }));
128
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
129
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
130
+ style: _constants.isMobile ? {
131
+ width: this.containerSize,
132
+ height: this.containerSize
133
+ } : {},
134
+ onClick: this.showLargeImage,
135
+ className: "dtable-ui-image-previewer-box",
136
+ onMouseEnter: this.showImageToolbar,
137
+ onMouseLeave: this.hideImageToolbar,
138
+ ref: ref => this.ref = ref,
139
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
140
+ src: this.state.imageThumbnailUrl,
141
+ alt: ""
142
+ }), enterImageItemIndex === itemIndex && this.renderImageIcons()]
143
+ }), !_constants.isMobile && enterImageItemIndex === itemIndex && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Tooltip, {
144
+ placement: "bottom",
145
+ isOpen: this.state.isTooltipOpen,
146
+ toggle: this.toggle,
147
+ target: this.ref,
148
+ delay: {
149
+ show: 0,
150
+ hide: 0
151
+ },
152
+ fade: false,
153
+ children: (0, _url.getFileName)(imageItemUrl)
154
+ }), this.state.showTip && /*#__PURE__*/(0, _jsxRuntime.jsx)(_DeleteTip.default, {
155
+ position: this.position,
156
+ toggle: this.closeTip,
157
+ handleDelete: this.deleteImage,
158
+ deleteTip: (0, _lang.getLocale)('Are_you_sure_you_want_to_delete_this_image')
159
+ })]
160
+ });
153
161
  }
154
162
  }
155
163
  var _default = exports.default = ImagePreviewer;