dtable-ui-component 6.0.89 → 6.0.92

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 (316) hide show
  1. package/lib/ActionSheet/index.js +96 -70
  2. package/lib/ActivityIndicator/index.js +41 -33
  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 +22 -18
  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 +8 -6
  12. package/lib/CheckboxEditor/pc-editor.js +8 -6
  13. package/lib/CheckboxFormatter/index.js +8 -6
  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 +51 -43
  17. package/lib/CollaboratorFormatter/index.js +8 -7
  18. package/lib/CollaboratorItem/index.js +21 -16
  19. package/lib/CollapsibleSettingLayout/index.css +0 -5
  20. package/lib/CollapsibleSettingLayout/index.js +17 -12
  21. package/lib/Comment/body/comment.js +79 -63
  22. package/lib/Comment/body/index.js +14 -11
  23. package/lib/Comment/footer/btns/index.js +68 -53
  24. package/lib/Comment/footer/index.js +30 -28
  25. package/lib/Comment/footer/input/index.js +49 -44
  26. package/lib/Comment/footer/input/participant/index.js +19 -14
  27. package/lib/Comment/footer/participants/index.js +31 -28
  28. package/lib/Comment/footer/participants/participant/index.js +18 -15
  29. package/lib/Comment/footer/participants/participant-select/index.js +68 -57
  30. package/lib/Comment/index.js +33 -28
  31. package/lib/Comment/utils/utilities.js +1 -1
  32. package/lib/CreatorFormatter/index.js +8 -7
  33. package/lib/DTableColorPicker/ColorPickerPortal/index.js +60 -35
  34. package/lib/DTableColorPicker/index.js +135 -99
  35. package/lib/DTableColorPicker/utils.js +1 -1
  36. package/lib/DTableCommonAddTool/index.js +11 -8
  37. package/lib/DTableCustomFooter/index.js +5 -3
  38. package/lib/DTableCustomizeCollaboratorSelect/index.css +1 -39
  39. package/lib/DTableCustomizeCollaboratorSelect/index.js +38 -32
  40. package/lib/DTableCustomizeSelect/index.js +51 -44
  41. package/lib/DTableEmptyTip/index.js +20 -16
  42. package/lib/DTableFiltersPopover/index.js +71 -61
  43. package/lib/DTableFiltersPopover/utils/filter-item-utils.js +74 -57
  44. package/lib/DTableFiltersPopover/utils/index.js +1 -1
  45. package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +64 -49
  46. package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +49 -41
  47. package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +57 -47
  48. package/lib/DTableFiltersPopover/widgets/filter-calendar.js +35 -31
  49. package/lib/DTableFiltersPopover/widgets/filter-group.js +38 -32
  50. package/lib/DTableFiltersPopover/widgets/filter-item.js +125 -106
  51. package/lib/DTableFiltersPopover/widgets/filter-list/index.css +1 -5
  52. package/lib/DTableFiltersPopover/widgets/filter-list/index.js +18 -17
  53. package/lib/DTableFiltersPopover/widgets/rate-item.js +12 -9
  54. package/lib/DTableGroupSelect/index.js +52 -44
  55. package/lib/DTableGroupSelect/option.js +5 -3
  56. package/lib/DTableGroupSelect/select-option-group.css +0 -37
  57. package/lib/DTableGroupSelect/select-option-group.js +31 -25
  58. package/lib/DTableModalHeader/index.js +13 -9
  59. package/lib/DTablePopover/index.js +9 -6
  60. package/lib/DTableRadio/index.js +20 -17
  61. package/lib/DTableRadioGroup/index.js +22 -19
  62. package/lib/DTableSearchInput/index.js +23 -19
  63. package/lib/DTableSelect/dtable-select-label.js +12 -7
  64. package/lib/DTableSelect/index.js +2 -1
  65. package/lib/DTableSelect/utils.js +34 -20
  66. package/lib/DTableSwitch/index.css +1 -2
  67. package/lib/DTableSwitch/index.js +30 -18
  68. package/lib/DateEditor/index.js +25 -16
  69. package/lib/DateEditor/mb-editor/index.js +90 -68
  70. package/lib/DateEditor/pc-editor.js +39 -35
  71. package/lib/DateFormatter/index.js +5 -3
  72. package/lib/DatePicker/utils.js +4 -4
  73. package/lib/DeleteTip/index.js +29 -20
  74. package/lib/DepartmentMultipleSelectEditor/index.js +57 -49
  75. package/lib/DepartmentSelectFilter/index.js +8 -1
  76. package/lib/DepartmentSingleSelectEditor/index.js +22 -13
  77. package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +75 -55
  78. package/lib/DepartmentSingleSelectEditor/pc-editor/department-single-select.js +78 -61
  79. package/lib/DepartmentSingleSelectEditor/pc-editor/index.js +14 -11
  80. package/lib/DepartmentSingleSelectFormatter/index.js +13 -10
  81. package/lib/DigitalSignEditor/index.js +22 -13
  82. package/lib/DigitalSignEditor/mb-editor/index.js +39 -24
  83. package/lib/DigitalSignEditor/pc-editor/index.js +44 -30
  84. package/lib/DigitalSignEditor/service.js +1 -1
  85. package/lib/DigitalSignEditor/signature-board/index.js +21 -17
  86. package/lib/DigitalSignFormatter/index.js +23 -19
  87. package/lib/DigitalSignFormatter/utils.js +1 -1
  88. package/lib/Drawer/index.js +4 -1
  89. package/lib/DurationEditor/index.js +2 -1
  90. package/lib/DurationFormatter/index.js +5 -3
  91. package/lib/EditEditorButton/index.js +5 -3
  92. package/lib/EmailEditor/index.js +2 -1
  93. package/lib/EmailFormatter/index.js +5 -3
  94. package/lib/FieldDisplaySetting/field-item.js +26 -20
  95. package/lib/FieldDisplaySetting/index.css +0 -6
  96. package/lib/FieldDisplaySetting/index.js +50 -41
  97. package/lib/FileEditor/files-previewer/index.js +22 -13
  98. package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +43 -28
  99. package/lib/FileEditor/files-previewer/mb-previewer/index.js +24 -21
  100. package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/dropdown-menu.js +30 -24
  101. package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/file-name-editor/index.js +13 -11
  102. package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/index.js +82 -64
  103. package/lib/FileEditor/files-previewer/pc-previewer/index.js +81 -65
  104. package/lib/FileEditor/index.js +22 -13
  105. package/lib/FileEditor/mb-editor/index.js +43 -31
  106. package/lib/FileEditor/pc-editor/addition-previewer/index.js +27 -20
  107. package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.js +108 -82
  108. package/lib/FileEditor/pc-editor/index.js +46 -36
  109. package/lib/FileFormatter/index.js +40 -36
  110. package/lib/FileItemFormatter/index.js +3 -2
  111. package/lib/FileUploader/index.js +23 -21
  112. package/lib/FormulaFormatter/index.js +24 -17
  113. package/lib/GeolocationEditor/index.js +31 -22
  114. package/lib/GeolocationEditor/map-editor-utils.js +2 -2
  115. package/lib/GeolocationEditor/mb-editor/country-editor.js +42 -27
  116. package/lib/GeolocationEditor/mb-editor/index.js +22 -14
  117. package/lib/GeolocationEditor/mb-editor/location-editor.js +54 -34
  118. package/lib/GeolocationEditor/mb-editor/map-editor/index.js +102 -74
  119. package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.js +144 -110
  120. package/lib/GeolocationEditor/mb-editor/province-city-editor.js +42 -27
  121. package/lib/GeolocationEditor/mb-editor/province-editor.js +42 -27
  122. package/lib/GeolocationEditor/pc-editor/country-editor.js +38 -31
  123. package/lib/GeolocationEditor/pc-editor/index.js +26 -17
  124. package/lib/GeolocationEditor/pc-editor/location-editor.js +122 -96
  125. package/lib/GeolocationEditor/pc-editor/map-editor/index.js +99 -74
  126. package/lib/GeolocationEditor/pc-editor/map-editor/large-editor/index.js +99 -76
  127. package/lib/GeolocationEditor/pc-editor/map-selection-editor/index.js +139 -94
  128. package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +122 -85
  129. package/lib/GeolocationEditor/pc-editor/province-city-editor.js +89 -69
  130. package/lib/GeolocationEditor/pc-editor/province-editor.js +31 -26
  131. package/lib/GeolocationEditor/pc-editor/selector-header-item.js +9 -5
  132. package/lib/GeolocationEditor/pc-editor/selector-list.js +15 -13
  133. package/lib/GeolocationFormatter/index.js +5 -3
  134. package/lib/HtmlLongTextFormatter/index.js +3 -2
  135. package/lib/Icon/index.js +9 -6
  136. package/lib/Icon/load-sprite.js +13 -2
  137. package/lib/IconButton/index.js +9 -6
  138. package/lib/ImageEditor/images-previewer/image-preview/index.js +53 -45
  139. package/lib/ImageEditor/images-previewer/index.js +35 -32
  140. package/lib/ImageEditor/index.js +22 -13
  141. package/lib/ImageEditor/mb-editor/index.js +43 -31
  142. package/lib/ImageEditor/pc-editor/addition-previewer/image-link/index.js +19 -15
  143. package/lib/ImageEditor/pc-editor/addition-previewer/index.js +32 -24
  144. package/lib/ImageEditor/pc-editor/addition-previewer/local-image-addition/index.js +102 -77
  145. package/lib/ImageEditor/pc-editor/images-previewer/index.js +33 -30
  146. package/lib/ImageEditor/pc-editor/index.js +44 -32
  147. package/lib/ImageFormatter/images-lazy-load.js +12 -10
  148. package/lib/ImageFormatter/index.js +40 -34
  149. package/lib/ImagePreviewerLightbox/index.js +12 -8
  150. package/lib/ImageThumbnail/index.js +47 -39
  151. package/lib/InputItem/custom-input.js +32 -27
  152. package/lib/InputItem/custom-keyboard.js +68 -47
  153. package/lib/InputItem/index.js +81 -71
  154. package/lib/InputItem/input.js +5 -3
  155. package/lib/LastModifierFormatter/index.js +8 -7
  156. package/lib/LinkEditor/index.js +38 -32
  157. package/lib/LinkEditor/link-editor-option.js +25 -20
  158. package/lib/LinkEditor/mb-popover/index.js +53 -41
  159. package/lib/LinkEditor/pc-popover/index.js +41 -33
  160. package/lib/LinkFormatter/index.js +13 -10
  161. package/lib/List/index.js +15 -9
  162. package/lib/List/list-item.js +51 -42
  163. package/lib/Loading/index.js +2 -1
  164. package/lib/LongTextFormatter/index.js +3 -2
  165. package/lib/MBEditorHeader/index.js +19 -14
  166. package/lib/MTimeFormatter/index.js +5 -3
  167. package/lib/MobileFullScreenPage/body/index.js +6 -4
  168. package/lib/MobileFullScreenPage/header/index.js +22 -17
  169. package/lib/MobileFullScreenPage/index.js +11 -8
  170. package/lib/MobileModal/index.js +6 -3
  171. package/lib/MobileOperationSheet/index.js +28 -18
  172. package/lib/MobileSelector/empty/index.js +5 -3
  173. package/lib/MobileSelector/index.js +18 -12
  174. package/lib/MobileSelector/option/index.js +17 -12
  175. package/lib/MobileSelector/options/index.js +5 -3
  176. package/lib/MobileSelector/search/index.js +10 -8
  177. package/lib/MobileUpload/index.js +87 -67
  178. package/lib/Modal/alert.js +9 -6
  179. package/lib/Modal/modal.js +26 -22
  180. package/lib/Modal/operation.js +2 -1
  181. package/lib/Modal/prompt.js +76 -56
  182. package/lib/MultipleSelectEditor/index.js +4 -2
  183. package/lib/MultipleSelectFormatter/index.js +8 -7
  184. package/lib/NotificationPopover/index.js +43 -32
  185. package/lib/NumberEditor/index.js +2 -1
  186. package/lib/NumberFormatter/index.js +5 -3
  187. package/lib/Picker/AbstractPicker.js +26 -22
  188. package/lib/Picker/index.js +2 -1
  189. package/lib/Popover/index.js +8 -5
  190. package/lib/Popover/item.js +26 -19
  191. package/lib/Progress/index.js +17 -15
  192. package/lib/Radio/Radio.js +12 -8
  193. package/lib/Radio/RadioItem.js +11 -5
  194. package/lib/RateFormatter/index.js +8 -7
  195. package/lib/RoleStatusEditor/index.js +36 -31
  196. package/lib/RowExpand/index.js +16 -9
  197. package/lib/RowExpandDialog/body/index.js +53 -42
  198. package/lib/RowExpandDialog/column-content/index.js +34 -25
  199. package/lib/RowExpandDialog/header/index.js +29 -22
  200. package/lib/RowExpandDialog/index.js +43 -30
  201. package/lib/RowExpandEditor/add-btn/index.js +16 -9
  202. package/lib/RowExpandEditor/add-btn/mb-add-btn/index.js +5 -3
  203. package/lib/RowExpandEditor/add-btn/pc-add-btn/index.js +8 -5
  204. package/lib/RowExpandEditor/checkbox-editor/index.js +16 -9
  205. package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.js +10 -8
  206. package/lib/RowExpandEditor/checkbox-editor/pc-editor.js +2 -1
  207. package/lib/RowExpandEditor/collaborator-editor/index.js +16 -9
  208. package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.js +19 -17
  209. package/lib/RowExpandEditor/collaborator-editor/pc-editor/index.js +52 -47
  210. package/lib/RowExpandEditor/date-editor/index.js +16 -9
  211. package/lib/RowExpandEditor/date-editor/mb-editor.js +20 -15
  212. package/lib/RowExpandEditor/date-editor/pc-editor.js +24 -21
  213. package/lib/RowExpandEditor/department-editor/index.js +16 -9
  214. package/lib/RowExpandEditor/department-editor/mb-editor.js +27 -22
  215. package/lib/RowExpandEditor/department-editor/pc-editor.js +35 -29
  216. package/lib/RowExpandEditor/digital-sign-editor/index.js +16 -9
  217. package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +19 -16
  218. package/lib/RowExpandEditor/digital-sign-editor/pc-editor/index.js +34 -32
  219. package/lib/RowExpandEditor/duration-editor/index.js +16 -9
  220. package/lib/RowExpandEditor/duration-editor/mb-editor.js +15 -12
  221. package/lib/RowExpandEditor/duration-editor/pc-editor.js +17 -13
  222. package/lib/RowExpandEditor/email-editor/index.js +16 -9
  223. package/lib/RowExpandEditor/email-editor/mb-editor/index.js +20 -18
  224. package/lib/RowExpandEditor/email-editor/pc-editor/index.js +21 -19
  225. package/lib/RowExpandEditor/file-editor/index.js +16 -9
  226. package/lib/RowExpandEditor/file-editor/mb-editor/index.js +21 -16
  227. package/lib/RowExpandEditor/file-editor/pc-editor/index.js +22 -20
  228. package/lib/RowExpandEditor/geolocation-editor/index.js +16 -9
  229. package/lib/RowExpandEditor/geolocation-editor/mb-editor/index.js +12 -9
  230. package/lib/RowExpandEditor/geolocation-editor/pc-editor/index.js +20 -17
  231. package/lib/RowExpandEditor/image-editor/index.js +16 -9
  232. package/lib/RowExpandEditor/image-editor/mb-editor/index.js +21 -16
  233. package/lib/RowExpandEditor/image-editor/pc-editor/index.js +29 -25
  234. package/lib/RowExpandEditor/index.js +4 -2
  235. package/lib/RowExpandEditor/long-text-editor/index.js +16 -9
  236. package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.js +27 -16
  237. package/lib/RowExpandEditor/long-text-editor/mb-editor/index.js +19 -16
  238. package/lib/RowExpandEditor/long-text-editor/pc-editor/index.js +22 -18
  239. package/lib/RowExpandEditor/multiple-select-editor/index.js +16 -9
  240. package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +26 -23
  241. package/lib/RowExpandEditor/multiple-select-editor/pc-editor/index.js +82 -68
  242. package/lib/RowExpandEditor/number-editor/index.js +16 -9
  243. package/lib/RowExpandEditor/number-editor/mb-editor/index.js +10 -7
  244. package/lib/RowExpandEditor/number-editor/pc-editor.js +6 -4
  245. package/lib/RowExpandEditor/rate-editor/index.js +16 -9
  246. package/lib/RowExpandEditor/rate-editor/mb-editor.js +10 -8
  247. package/lib/RowExpandEditor/rate-editor/pc-editor.js +12 -10
  248. package/lib/RowExpandEditor/right-angle/index.js +8 -6
  249. package/lib/RowExpandEditor/single-select-editor/index.js +16 -9
  250. package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +30 -23
  251. package/lib/RowExpandEditor/single-select-editor/pc-editor/index.js +43 -35
  252. package/lib/RowExpandEditor/text-editor/index.js +16 -9
  253. package/lib/RowExpandEditor/text-editor/mb-editor/index.js +11 -9
  254. package/lib/RowExpandEditor/text-editor/pc-editor/index.js +16 -12
  255. package/lib/RowExpandEditor/url-editor/index.js +16 -9
  256. package/lib/RowExpandEditor/url-editor/mb-editor/index.js +20 -18
  257. package/lib/RowExpandEditor/url-editor/pc-editor/index.js +21 -19
  258. package/lib/RowExpandFormatter/department-formatter/index.js +14 -5
  259. package/lib/RowExpandFormatter/department-formatter/mb-formatter.js +2 -1
  260. package/lib/RowExpandFormatter/department-formatter/pc-formatter.js +15 -11
  261. package/lib/RowExpandFormatter/email-formatter/index.js +12 -9
  262. package/lib/RowExpandFormatter/file-formatter/index.js +15 -14
  263. package/lib/RowExpandFormatter/file-formatter/row-expand-file-item-formatter.js +43 -36
  264. package/lib/RowExpandFormatter/formula-formatter/index.js +53 -42
  265. package/lib/RowExpandFormatter/image-formatter/index.js +30 -27
  266. package/lib/RowExpandFormatter/image-formatter/row-expand-image-item-formatter.js +47 -39
  267. package/lib/RowExpandFormatter/index.js +134 -116
  268. package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +3 -2
  269. package/lib/RowExpandFormatter/link-formatter/index.js +70 -67
  270. package/lib/RowExpandFormatter/rate-formatter/index.js +8 -7
  271. package/lib/RowExpandFormatter/url-formatter/index.js +12 -9
  272. package/lib/RowExpandView/body/index.js +39 -33
  273. package/lib/RowExpandView/column-content/index.js +10 -5
  274. package/lib/RowExpandView/index.js +27 -16
  275. package/lib/SelectItem/index.js +16 -12
  276. package/lib/SelectOptionGroup/index.css +4 -2
  277. package/lib/SelectOptionGroup/index.js +39 -32
  278. package/lib/SelectOptionGroup/option.js +5 -3
  279. package/lib/SelectedDepartments/index.js +54 -44
  280. package/lib/SimpleLongTextFormatter/index.js +39 -30
  281. package/lib/SimpleLongTextFormatter/widgets/LongTextPreview.js +11 -8
  282. package/lib/SimpleLongTextFormatter/widgets/dtable-markdown-viewer.js +3 -2
  283. package/lib/SingleSelectEditor/index.js +4 -2
  284. package/lib/SingleSelectFormatter/index.js +6 -4
  285. package/lib/SvgIcon/index.js +5 -2
  286. package/lib/TabBar/Tab.js +28 -21
  287. package/lib/TabBar/index.js +28 -24
  288. package/lib/Tabs/index.js +8 -5
  289. package/lib/TextEditor/index.js +21 -18
  290. package/lib/TextFormatter/index.js +5 -3
  291. package/lib/TextareaItem/index.js +49 -40
  292. package/lib/Toast/index.js +20 -14
  293. package/lib/UploadProgress/index.js +2 -1
  294. package/lib/UrlEditor/index.js +2 -1
  295. package/lib/UrlFormatter/index.js +5 -3
  296. package/lib/formatterConfig/base-formatter-config.js +24 -23
  297. package/lib/formatterConfig/index.js +3 -2
  298. package/lib/index.js +7 -0
  299. package/lib/locales/de.json +5 -1
  300. package/lib/locales/en.json +5 -1
  301. package/lib/locales/es.json +6 -2
  302. package/lib/locales/fr.json +5 -1
  303. package/lib/locales/pt.json +5 -1
  304. package/lib/locales/ru.json +5 -1
  305. package/lib/locales/zh-CN.json +5 -1
  306. package/lib/select-editor/index.js +22 -13
  307. package/lib/select-editor/mb-editor/index.js +22 -16
  308. package/lib/select-editor/pc-editor/index.js +75 -61
  309. package/lib/toaster/alert.js +25 -16
  310. package/lib/toaster/toast.js +27 -23
  311. package/lib/toaster/toastManager.js +17 -14
  312. package/lib/toaster/toaster.js +8 -4
  313. package/lib/utils/class.js +3 -3
  314. package/lib/utils/object-utils.js +1 -1
  315. package/lib/utils/url.js +4 -4
  316. package/package.json +13 -29
@@ -14,6 +14,7 @@ var _rmcFeedback = _interopRequireDefault(require("rmc-feedback"));
14
14
  var _getDataAttr = _interopRequireDefault(require("../utils/getDataAttr"));
15
15
  var _Badge = _interopRequireDefault(require("../Badge"));
16
16
  require("./style/index.css");
17
+ var _jsxRuntime = require("react/jsx-runtime");
17
18
  /* tslint:disable:jsx-no-multiline-js */
18
19
 
19
20
  const NORMAL = 'NORMAL';
@@ -70,13 +71,13 @@ function createActionSheet(flag, config, callback) {
70
71
  cancelButtonText,
71
72
  badges = []
72
73
  } = props;
73
- const titleMsg = [title ? /*#__PURE__*/React.createElement("h3", {
74
- key: "0",
75
- className: "".concat(prefixCls, "-title")
76
- }, title) : null, message ? /*#__PURE__*/React.createElement("div", {
77
- key: "1",
78
- className: "".concat(prefixCls, "-message")
79
- }, message) : null];
74
+ const titleMsg = [title ? /*#__PURE__*/(0, _jsxRuntime.jsx)("h3", {
75
+ className: `${prefixCls}-title`,
76
+ children: title
77
+ }, "0") : null, message ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
78
+ className: `${prefixCls}-message`,
79
+ children: message
80
+ }, "1") : null];
80
81
  let children = null;
81
82
  let mode = 'normal';
82
83
  switch (flag) {
@@ -87,82 +88,106 @@ function createActionSheet(flag, config, callback) {
87
88
  if (badges && badges.length > 0) {
88
89
  badges.forEach(element => {
89
90
  if (element.index >= 0) {
90
- badgesMap[element.index] = /*#__PURE__*/React.createElement(_Badge.default, element);
91
+ badgesMap[element.index] = /*#__PURE__*/(0, _jsxRuntime.jsx)(_Badge.default, {
92
+ ...element
93
+ });
91
94
  }
92
95
  });
93
96
  }
94
- children = /*#__PURE__*/React.createElement("div", (0, _getDataAttr.default)(props), titleMsg, /*#__PURE__*/React.createElement("div", {
95
- className: "".concat(prefixCls, "-button-list"),
96
- role: "group"
97
- }, normalOptions.map((item, index) => {
98
- const itemProps = {
99
- className: (0, _classnames.default)("".concat(prefixCls, "-button-list-item"), {
100
- ["".concat(prefixCls, "-destructive-button")]: destructiveButtonIndex === index,
101
- ["".concat(prefixCls, "-cancel-button")]: cancelButtonIndex === index
102
- }),
103
- onClick: () => cb(index),
104
- role: 'button'
105
- };
106
- let bContent = /*#__PURE__*/React.createElement("div", itemProps, item);
107
- // 仅在设置徽标的情况下修改dom结构
108
- if (badgesMap[index]) {
109
- bContent = /*#__PURE__*/React.createElement("div", Object.assign({}, itemProps, {
110
- className: "".concat(itemProps.className, " ").concat(prefixCls, "-button-list-badge")
111
- }), /*#__PURE__*/React.createElement("span", {
112
- className: "".concat(prefixCls, "-button-list-item-content")
113
- }, item), badgesMap[index]);
114
- }
115
- let bItem = /*#__PURE__*/React.createElement(_rmcFeedback.default, {
116
- key: index,
117
- activeClassName: "".concat(prefixCls, "-button-list-item-active")
118
- }, bContent);
119
- if (cancelButtonIndex === index || destructiveButtonIndex === index) {
120
- bItem = /*#__PURE__*/React.createElement(_rmcFeedback.default, {
121
- key: index,
122
- activeClassName: "".concat(prefixCls, "-button-list-item-active")
123
- }, /*#__PURE__*/React.createElement("div", itemProps, item, cancelButtonIndex === index ? /*#__PURE__*/React.createElement("span", {
124
- className: "".concat(prefixCls, "-cancel-button-mask")
125
- }) : null));
126
- }
127
- return bItem;
128
- })));
97
+ children = /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
98
+ ...(0, _getDataAttr.default)(props),
99
+ children: [titleMsg, /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
100
+ className: `${prefixCls}-button-list`,
101
+ role: "group",
102
+ children: normalOptions.map((item, index) => {
103
+ const itemProps = {
104
+ className: (0, _classnames.default)(`${prefixCls}-button-list-item`, {
105
+ [`${prefixCls}-destructive-button`]: destructiveButtonIndex === index,
106
+ [`${prefixCls}-cancel-button`]: cancelButtonIndex === index
107
+ }),
108
+ onClick: () => cb(index),
109
+ role: 'button'
110
+ };
111
+ let bContent = /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
112
+ ...itemProps,
113
+ children: item
114
+ });
115
+ // 仅在设置徽标的情况下修改dom结构
116
+ if (badgesMap[index]) {
117
+ bContent = /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
118
+ ...itemProps,
119
+ className: `${itemProps.className} ${prefixCls}-button-list-badge`,
120
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
121
+ className: `${prefixCls}-button-list-item-content`,
122
+ children: item
123
+ }), badgesMap[index]]
124
+ });
125
+ }
126
+ let bItem = /*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcFeedback.default, {
127
+ activeClassName: `${prefixCls}-button-list-item-active`,
128
+ children: bContent
129
+ }, index);
130
+ if (cancelButtonIndex === index || destructiveButtonIndex === index) {
131
+ bItem = /*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcFeedback.default, {
132
+ activeClassName: `${prefixCls}-button-list-item-active`,
133
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
134
+ ...itemProps,
135
+ children: [item, cancelButtonIndex === index ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
136
+ className: `${prefixCls}-cancel-button-mask`
137
+ }) : null]
138
+ })
139
+ }, index);
140
+ }
141
+ return bItem;
142
+ })
143
+ })]
144
+ });
129
145
  break;
130
146
  case SHARE:
131
147
  mode = 'share';
132
148
  const multipleLine = options.length && Array.isArray(options[0]) || false;
133
149
  const createList = function (item, index) {
134
150
  let rowIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
135
- return /*#__PURE__*/React.createElement("div", {
136
- className: "".concat(prefixCls, "-share-list-item"),
151
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
152
+ className: `${prefixCls}-share-list-item`,
137
153
  role: "button",
138
- key: index,
139
- onClick: () => cb(index, rowIndex)
140
- }, /*#__PURE__*/React.createElement("div", {
141
- className: "".concat(prefixCls, "-share-list-item-icon")
142
- }, item.icon), /*#__PURE__*/React.createElement("div", {
143
- className: "".concat(prefixCls, "-share-list-item-title")
144
- }, item.title));
154
+ onClick: () => cb(index, rowIndex),
155
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
156
+ className: `${prefixCls}-share-list-item-icon`,
157
+ children: item.icon
158
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
159
+ className: `${prefixCls}-share-list-item-title`,
160
+ children: item.title
161
+ })]
162
+ }, index);
145
163
  };
146
- children = /*#__PURE__*/React.createElement("div", (0, _getDataAttr.default)(props), titleMsg, /*#__PURE__*/React.createElement("div", {
147
- className: "".concat(prefixCls, "-share")
148
- }, multipleLine ? options.map((item, index) => /*#__PURE__*/React.createElement("div", {
149
- key: index,
150
- className: "".concat(prefixCls, "-share-list")
151
- }, item.map((ii, ind) => createList(ii, ind, index)))) : /*#__PURE__*/React.createElement("div", {
152
- className: "".concat(prefixCls, "-share-list")
153
- }, options.map((item, index) => createList(item, index))), /*#__PURE__*/React.createElement(_rmcFeedback.default, {
154
- activeClassName: "".concat(prefixCls, "-share-cancel-button-active")
155
- }, /*#__PURE__*/React.createElement("div", {
156
- className: "".concat(prefixCls, "-share-cancel-button"),
157
- role: "button",
158
- onClick: () => cb(-1)
159
- }, cancelButtonText))));
164
+ children = /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
165
+ ...(0, _getDataAttr.default)(props),
166
+ children: [titleMsg, /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
167
+ className: `${prefixCls}-share`,
168
+ children: [multipleLine ? options.map((item, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
169
+ className: `${prefixCls}-share-list`,
170
+ children: item.map((ii, ind) => createList(ii, ind, index))
171
+ }, index)) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
172
+ className: `${prefixCls}-share-list`,
173
+ children: options.map((item, index) => createList(item, index))
174
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcFeedback.default, {
175
+ activeClassName: `${prefixCls}-share-cancel-button-active`,
176
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
177
+ className: `${prefixCls}-share-cancel-button`,
178
+ role: "button",
179
+ onClick: () => cb(-1),
180
+ children: cancelButtonText
181
+ })
182
+ })]
183
+ })]
184
+ });
160
185
  break;
161
186
  default:
162
187
  break;
163
188
  }
164
- const rootCls = (0, _classnames.default)("".concat(prefixCls, "-").concat(mode), className);
165
- root.render( /*#__PURE__*/React.createElement(_rmcDialog.default, {
189
+ const rootCls = (0, _classnames.default)(`${prefixCls}-${mode}`, className);
190
+ root.render(/*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcDialog.default, {
166
191
  visible: true,
167
192
  title: "",
168
193
  footer: "",
@@ -172,8 +197,9 @@ function createActionSheet(flag, config, callback) {
172
197
  maskTransitionName: maskTransitionName || 'am-fade',
173
198
  onClose: () => cb(cancelButtonIndex || -1),
174
199
  maskClosable: maskClosable,
175
- wrapProps: props.wrapProps || {}
176
- }, children));
200
+ wrapProps: props.wrapProps || {},
201
+ children: children
202
+ }));
177
203
  return {
178
204
  close
179
205
  };
@@ -9,6 +9,7 @@ exports.default = void 0;
9
9
  var _classnames = _interopRequireDefault(require("classnames"));
10
10
  var React = _interopRequireWildcard(require("react"));
11
11
  require("./index.css");
12
+ var _jsxRuntime = require("react/jsx-runtime");
12
13
  /* tslint:disable:jsx-no-multiline-js */
13
14
 
14
15
  class ActivityIndicator extends React.Component {
@@ -22,44 +23,51 @@ class ActivityIndicator extends React.Component {
22
23
  text
23
24
  } = this.props;
24
25
  const wrapClass = (0, _classnames.default)(prefixCls, className, {
25
- ["".concat(prefixCls, "-lg")]: size === 'large',
26
- ["".concat(prefixCls, "-sm")]: size === 'small',
27
- ["".concat(prefixCls, "-toast")]: !!toast
26
+ [`${prefixCls}-lg`]: size === 'large',
27
+ [`${prefixCls}-sm`]: size === 'small',
28
+ [`${prefixCls}-toast`]: !!toast
28
29
  });
29
- const spinnerClass = (0, _classnames.default)("".concat(prefixCls, "-spinner"), {
30
- ["".concat(prefixCls, "-spinner-lg")]: !!toast || size === 'large'
30
+ const spinnerClass = (0, _classnames.default)(`${prefixCls}-spinner`, {
31
+ [`${prefixCls}-spinner-lg`]: !!toast || size === 'large'
31
32
  });
32
33
  if (animating) {
33
34
  if (toast) {
34
- return /*#__PURE__*/React.createElement("div", {
35
- className: wrapClass
36
- }, text ? /*#__PURE__*/React.createElement("div", {
37
- className: "".concat(prefixCls, "-content")
38
- }, /*#__PURE__*/React.createElement("span", {
39
- className: spinnerClass,
40
- "aria-hidden": "true"
41
- }), /*#__PURE__*/React.createElement("span", {
42
- className: "".concat(prefixCls, "-toast")
43
- }, text)) : /*#__PURE__*/React.createElement("div", {
44
- className: "".concat(prefixCls, "-content")
45
- }, /*#__PURE__*/React.createElement("span", {
46
- className: spinnerClass,
47
- "aria-label": "Loading"
48
- })));
35
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
36
+ className: wrapClass,
37
+ children: text ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
38
+ className: `${prefixCls}-content`,
39
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
40
+ className: spinnerClass,
41
+ "aria-hidden": "true"
42
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
43
+ className: `${prefixCls}-toast`,
44
+ children: text
45
+ })]
46
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
47
+ className: `${prefixCls}-content`,
48
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
49
+ className: spinnerClass,
50
+ "aria-label": "Loading"
51
+ })
52
+ })
53
+ });
49
54
  } else {
50
- return text ? /*#__PURE__*/React.createElement("div", {
51
- className: wrapClass
52
- }, /*#__PURE__*/React.createElement("span", {
53
- className: spinnerClass,
54
- "aria-hidden": "true"
55
- }), /*#__PURE__*/React.createElement("span", {
56
- className: "".concat(prefixCls, "-tip")
57
- }, text)) : /*#__PURE__*/React.createElement("div", {
58
- className: wrapClass
59
- }, /*#__PURE__*/React.createElement("span", {
60
- className: spinnerClass,
61
- "aria-label": "loading"
62
- }));
55
+ return text ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
56
+ className: wrapClass,
57
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
58
+ className: spinnerClass,
59
+ "aria-hidden": "true"
60
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
61
+ className: `${prefixCls}-tip`,
62
+ children: text
63
+ })]
64
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
65
+ className: wrapClass,
66
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
67
+ className: spinnerClass,
68
+ "aria-label": "loading"
69
+ })
70
+ });
63
71
  }
64
72
  } else {
65
73
  return null;
@@ -0,0 +1,122 @@
1
+ .dtable-ui-selected-users-container {
2
+ flex-wrap: wrap;
3
+ height: auto !important;
4
+ min-height: 38px;
5
+ max-width: calc(100% - 10px);
6
+ }
7
+
8
+ .dtable-ui-selected-users-container .dtable-ui-user-select-placeholder {
9
+ color: #808080;
10
+ }
11
+
12
+ .dtable-ui-user-select-popover .popover {
13
+ width: 385px;
14
+ max-width: 385px;
15
+ }
16
+
17
+ .dtable-ui-user-select-container {
18
+ position: relative;
19
+ }
20
+
21
+ .dtable-ui-user-select-container .dtable-ui-user-search-container {
22
+ padding: 10px 10px 0 10px;
23
+ }
24
+
25
+ .dtable-ui-user-select-container .dtable-ui-user-search-container input {
26
+ height: 28px;
27
+ }
28
+
29
+ .dtable-ui-user-select-container .dtable-ui-user-list-container {
30
+ min-height: 160px;
31
+ max-height: 200px;
32
+ margin: 10px 0;
33
+ overflow: auto;
34
+ }
35
+
36
+ .dtable-ui-user-select-container .dtable-ui-user-list-container .dtable-ui-user-item-container {
37
+ display: flex;
38
+ align-items: center;
39
+ justify-content: space-between;
40
+ height: 30px;
41
+ padding: 0 10px;
42
+ font-size: 14px;
43
+ cursor: pointer;
44
+ }
45
+
46
+ .dtable-ui-user-select-container .dtable-ui-user-list-container .dtable-ui-user-item-container:hover,
47
+ .dtable-ui-user-select-container .dtable-ui-user-list-container .dtable-ui-user-item-container-highlight {
48
+ background: #f5f5f5;
49
+ cursor: pointer;
50
+ }
51
+
52
+ .no-user-search-result {
53
+ color: #666666;
54
+ font-size: 14px;
55
+ padding-left: 10px;
56
+ padding: 10px;
57
+ overflow: auto;
58
+ }
59
+
60
+ .dtable-ui-user-select-popover .popover .dtable-ui-user-item {
61
+ background: transparent;
62
+ }
63
+
64
+ .dtable-ui-user-list-container .dtable-ui-collaborator-check-icon .dtable-icon-check-mark {
65
+ color: #798d99;
66
+ font-size: 12px;
67
+ }
68
+
69
+ /* user-item */
70
+ .dtable-ui-user-item {
71
+ display: inline-flex;
72
+ align-items: center;
73
+ margin: 2px 10px 2px 0;
74
+ padding: 0 8px 0 2px;
75
+ height: 20px;
76
+ font-size: 13px;
77
+ border-radius: 10px;
78
+ background: #eaeaea;
79
+ overflow: hidden;
80
+ }
81
+
82
+ .dtable-ui-user-item .user-item .user-avatar img {
83
+ width: 16px;
84
+ height: 16px;
85
+ }
86
+
87
+ .dtable-ui-user-item .user-avatar {
88
+ display: flex;
89
+ align-items: center;
90
+ justify-content: center;
91
+ transform: translateY(0);
92
+ flex-shrink: 0;
93
+ }
94
+
95
+ .dtable-ui-user-item .user-name {
96
+ margin-left: 5px;
97
+ }
98
+
99
+ .dtable-ui-user-item .user-avatar img {
100
+ width: 16px;
101
+ height: 16px;
102
+ border-radius: 50%;
103
+ }
104
+
105
+ .dtable-ui-user-item .user-remove {
106
+ display: inline-block;
107
+ width: 14px;
108
+ margin: 0 -2px 0 2px;
109
+ }
110
+
111
+ .dtable-ui-user-item .user-remove .dtable-font {
112
+ display: inline-block;
113
+ font-size: 16px;
114
+ color: #909090;
115
+ transform: scale(.8);
116
+ cursor: pointer;
117
+ }
118
+
119
+ .dtable-ui-user-item .user-remove .dtable-font:hover {
120
+ color: #666666;
121
+ cursor: pointer;
122
+ }