dtable-ui-component 6.0.109 → 6.0.110-aik.2

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 (195) hide show
  1. package/lib/ActionSheet/index.js +42 -35
  2. package/lib/ActivityIndicator/index.js +9 -9
  3. package/lib/AsyncUserSelect/index.css +54 -12
  4. package/lib/AsyncUserSelect/index.js +27 -16
  5. package/lib/Badge/index.js +27 -31
  6. package/lib/CheckboxEditor/index.js +15 -14
  7. package/lib/CollaboratorEditor/index.js +16 -15
  8. package/lib/CollaboratorEditor/pc-editor/index.js +1 -1
  9. package/lib/CollapsibleSettingLayout/index.js +1 -1
  10. package/lib/Comment/body/comment.js +1 -1
  11. package/lib/Comment/body/index.js +7 -9
  12. package/lib/Comment/footer/index.js +1 -1
  13. package/lib/Comment/footer/input/index.js +5 -5
  14. package/lib/Comment/footer/input/participant/index.js +1 -1
  15. package/lib/Comment/footer/participants/participant-select/index.js +2 -2
  16. package/lib/Comment/utils/utilities.js +1 -1
  17. package/lib/DTableColorPicker/ColorPickerPortal/index.js +8 -6
  18. package/lib/DTableColorPicker/index.js +13 -12
  19. package/lib/DTableColorPicker/utils.js +1 -1
  20. package/lib/DTableCommonAddTool/index.js +2 -2
  21. package/lib/DTableFiltersPopover/index.js +1 -1
  22. package/lib/DTableFiltersPopover/utils/index.js +1 -1
  23. package/lib/DTableFiltersPopover/widgets/filter-group.js +2 -2
  24. package/lib/DTableFiltersPopover/widgets/filter-item.js +1 -1
  25. package/lib/DTableFiltersPopover/widgets/filter-list/index.js +1 -1
  26. package/lib/DTableFiltersPopover/widgets/rate-item.js +5 -5
  27. package/lib/DTableGroupSelect/index.css +42 -5
  28. package/lib/DTableGroupSelect/select-option-group.css +3 -3
  29. package/lib/DTableGroupSelect/select-option-group.js +23 -5
  30. package/lib/DTableIcon/index.js +4 -4
  31. package/lib/DTableIcon/svg-icon.js +4 -4
  32. package/lib/DTableModalHeader/index.js +6 -8
  33. package/lib/DTableRadioGroup/index.js +3 -3
  34. package/lib/DTableSelect/dtable-select-label.js +1 -1
  35. package/lib/DTableSelect/utils.js +55 -36
  36. package/lib/DateEditor/index.js +13 -10
  37. package/lib/DateEditor/pc-editor.js +1 -1
  38. package/lib/DatePicker/utils.js +4 -4
  39. package/lib/DepartmentMultipleSelectEditor/index.js +3 -3
  40. package/lib/DepartmentSelectFilter/index.js +5 -2
  41. package/lib/DepartmentSingleSelectEditor/index.js +15 -14
  42. package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +2 -2
  43. package/lib/DepartmentSingleSelectEditor/pc-editor/department-single-select.js +6 -6
  44. package/lib/DigitalSignEditor/index.js +15 -14
  45. package/lib/DigitalSignEditor/mb-editor/index.js +4 -4
  46. package/lib/DigitalSignEditor/pc-editor/index.js +7 -6
  47. package/lib/DigitalSignEditor/service.js +1 -1
  48. package/lib/DigitalSignEditor/signature-board/index.js +2 -2
  49. package/lib/DigitalSignFormatter/utils.js +1 -1
  50. package/lib/Drawer/index.js +3 -2
  51. package/lib/FieldDisplaySetting/field-item.js +1 -1
  52. package/lib/FieldDisplaySetting/index.js +11 -9
  53. package/lib/FileEditor/files-previewer/index.js +15 -14
  54. package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +2 -2
  55. package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/index.js +3 -3
  56. package/lib/FileEditor/index.js +15 -14
  57. package/lib/FileEditor/pc-editor/addition-previewer/index.js +1 -1
  58. package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.js +6 -6
  59. package/lib/FileEditor/pc-editor/index.js +3 -3
  60. package/lib/FileFormatter/index.js +1 -1
  61. package/lib/FileItemFormatter/index.js +1 -1
  62. package/lib/FileUploader/index.js +1 -1
  63. package/lib/FormulaFormatter/index.js +15 -9
  64. package/lib/GeolocationEditor/index.js +23 -19
  65. package/lib/GeolocationEditor/map-editor-utils.js +10 -6
  66. package/lib/GeolocationEditor/mb-editor/index.js +27 -23
  67. package/lib/GeolocationEditor/mb-editor/map-editor/index.js +9 -6
  68. package/lib/GeolocationEditor/pc-editor/country-editor.js +2 -2
  69. package/lib/GeolocationEditor/pc-editor/index.js +21 -15
  70. package/lib/GeolocationEditor/pc-editor/location-editor.js +2 -2
  71. package/lib/GeolocationEditor/pc-editor/map-editor/index.js +13 -9
  72. package/lib/GeolocationEditor/pc-editor/map-editor/large-editor/index.js +9 -6
  73. package/lib/GeolocationEditor/pc-editor/map-selection-editor/index.js +24 -7
  74. package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +20 -3
  75. package/lib/GeolocationEditor/pc-editor/province-city-editor.js +1 -1
  76. package/lib/GeolocationEditor/pc-editor/province-editor.js +2 -2
  77. package/lib/GeolocationEditor/pc-editor/selector-list.js +1 -1
  78. package/lib/HtmlLongTextFormatter/index.js +1 -1
  79. package/lib/Icon/index.js +13 -17
  80. package/lib/Icon/load-sprite.js +13 -2
  81. package/lib/IconButton/index.js +11 -14
  82. package/lib/ImageEditor/images-previewer/image-preview/index.js +1 -1
  83. package/lib/ImageEditor/index.js +15 -14
  84. package/lib/ImageEditor/pc-editor/addition-previewer/index.js +2 -2
  85. package/lib/ImageEditor/pc-editor/addition-previewer/local-image-addition/index.js +5 -5
  86. package/lib/ImageEditor/pc-editor/images-previewer/index.js +1 -1
  87. package/lib/ImageFormatter/index.js +1 -1
  88. package/lib/ImagePreviewerLightbox/index.css +49 -6
  89. package/lib/ImagePreviewerLightbox/index.js +46 -25
  90. package/lib/ImageThumbnail/index.js +2 -2
  91. package/lib/InputItem/custom-input.js +9 -9
  92. package/lib/InputItem/custom-keyboard.js +34 -37
  93. package/lib/InputItem/index.js +52 -49
  94. package/lib/InputItem/input.js +9 -13
  95. package/lib/LinkEditor/pc-popover/index.js +3 -2
  96. package/lib/List/index.js +17 -21
  97. package/lib/List/list-item.js +50 -52
  98. package/lib/MBEditorHeader/index.js +1 -1
  99. package/lib/MobileFullScreenPage/body/index.js +1 -1
  100. package/lib/MobileFullScreenPage/header/index.js +4 -4
  101. package/lib/MobileFullScreenPage/index.js +1 -1
  102. package/lib/MobileModal/index.js +7 -10
  103. package/lib/Modal/alert.js +2 -2
  104. package/lib/Modal/modal.js +28 -31
  105. package/lib/Modal/prompt.js +10 -10
  106. package/lib/MultipleSelectEditor/index.js +6 -8
  107. package/lib/MultipleSelectFormatter/index.js +1 -1
  108. package/lib/PhoneNumberLink/index.js +1 -1
  109. package/lib/Picker/AbstractPicker.js +26 -28
  110. package/lib/Popover/index.js +9 -12
  111. package/lib/Popover/item.js +22 -26
  112. package/lib/Progress/index.js +10 -8
  113. package/lib/Radio/Radio.js +13 -15
  114. package/lib/Radio/RadioItem.js +18 -18
  115. package/lib/RateFormatter/index.js +2 -2
  116. package/lib/RoleStatusEditor/index.js +1 -1
  117. package/lib/RowExpand/index.js +7 -6
  118. package/lib/RowExpandDialog/body/index.js +14 -14
  119. package/lib/RowExpandDialog/column-content/index.js +1 -1
  120. package/lib/RowExpandDialog/header/index.js +4 -3
  121. package/lib/RowExpandDialog/index.js +43 -32
  122. package/lib/RowExpandEditor/add-btn/index.js +7 -6
  123. package/lib/RowExpandEditor/checkbox-editor/index.js +7 -6
  124. package/lib/RowExpandEditor/collaborator-editor/index.js +7 -6
  125. package/lib/RowExpandEditor/date-editor/index.js +7 -6
  126. package/lib/RowExpandEditor/department-editor/index.js +7 -6
  127. package/lib/RowExpandEditor/digital-sign-editor/index.js +7 -6
  128. package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +4 -4
  129. package/lib/RowExpandEditor/digital-sign-editor/pc-editor/index.js +4 -4
  130. package/lib/RowExpandEditor/duration-editor/index.js +7 -6
  131. package/lib/RowExpandEditor/email-editor/index.js +7 -6
  132. package/lib/RowExpandEditor/email-editor/mb-editor/index.js +1 -1
  133. package/lib/RowExpandEditor/email-editor/pc-editor/index.js +1 -1
  134. package/lib/RowExpandEditor/file-editor/index.js +7 -6
  135. package/lib/RowExpandEditor/geolocation-editor/index.js +7 -6
  136. package/lib/RowExpandEditor/image-editor/index.js +7 -6
  137. package/lib/RowExpandEditor/image-editor/mb-editor/index.js +1 -1
  138. package/lib/RowExpandEditor/image-editor/pc-editor/index.js +1 -1
  139. package/lib/RowExpandEditor/index.js +11 -10
  140. package/lib/RowExpandEditor/long-text-editor/index.js +7 -6
  141. package/lib/RowExpandEditor/multiple-select-editor/index.js +7 -6
  142. package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +1 -1
  143. package/lib/RowExpandEditor/multiple-select-editor/pc-editor/index.js +5 -5
  144. package/lib/RowExpandEditor/number-editor/index.js +7 -6
  145. package/lib/RowExpandEditor/rate-editor/index.js +7 -6
  146. package/lib/RowExpandEditor/rate-editor/mb-editor.js +1 -1
  147. package/lib/RowExpandEditor/rate-editor/pc-editor.js +5 -5
  148. package/lib/RowExpandEditor/single-select-editor/index.js +7 -6
  149. package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +4 -4
  150. package/lib/RowExpandEditor/single-select-editor/pc-editor/index.js +3 -3
  151. package/lib/RowExpandEditor/text-editor/index.js +7 -6
  152. package/lib/RowExpandEditor/url-editor/index.js +7 -6
  153. package/lib/RowExpandEditor/url-editor/mb-editor/index.js +2 -2
  154. package/lib/RowExpandEditor/url-editor/pc-editor/index.js +2 -2
  155. package/lib/RowExpandFormatter/department-formatter/index.js +6 -3
  156. package/lib/RowExpandFormatter/email-formatter/index.js +1 -1
  157. package/lib/RowExpandFormatter/file-formatter/row-expand-file-item-formatter.js +2 -2
  158. package/lib/RowExpandFormatter/formula-formatter/index.js +17 -11
  159. package/lib/RowExpandFormatter/image-formatter/row-expand-image-item-formatter.js +2 -2
  160. package/lib/RowExpandFormatter/index.js +11 -7
  161. package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +1 -1
  162. package/lib/RowExpandFormatter/link-formatter/index.js +6 -6
  163. package/lib/RowExpandFormatter/rate-formatter/index.js +2 -2
  164. package/lib/RowExpandFormatter/url-formatter/index.js +2 -2
  165. package/lib/RowExpandView/body/index.js +13 -15
  166. package/lib/RowExpandView/index.js +39 -28
  167. package/lib/SelectOptionGroup/index.js +1 -1
  168. package/lib/SelectedDepartments/index.js +3 -3
  169. package/lib/SimpleLongTextFormatter/index.js +2 -2
  170. package/lib/SingleSelectEditor/index.js +6 -8
  171. package/lib/TabBar/Tab.js +10 -10
  172. package/lib/TabBar/index.js +7 -6
  173. package/lib/Tabs/index.js +10 -9
  174. package/lib/TextareaItem/index.js +43 -45
  175. package/lib/Toast/index.js +5 -5
  176. package/lib/formatterConfig/index.js +3 -3
  177. package/lib/locales/de.json +5 -0
  178. package/lib/locales/en.json +5 -0
  179. package/lib/locales/es.json +5 -0
  180. package/lib/locales/fr.json +5 -0
  181. package/lib/locales/pt.json +5 -0
  182. package/lib/locales/ru.json +5 -0
  183. package/lib/locales/zh-CN.json +5 -0
  184. package/lib/select-editor/index.js +15 -14
  185. package/lib/select-editor/pc-editor/index.js +5 -5
  186. package/lib/toaster/alert.js +1 -1
  187. package/lib/toaster/toast.js +1 -1
  188. package/lib/toaster/toastManager.js +12 -14
  189. package/lib/toaster/toaster.js +12 -9
  190. package/lib/utils/class.js +3 -3
  191. package/lib/utils/departments.js +3 -4
  192. package/lib/utils/getLocale.js +11 -5
  193. package/lib/utils/object-utils.js +5 -4
  194. package/lib/utils/url.js +4 -4
  195. package/package.json +14 -15
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.default = void 0;
9
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
10
9
  var _classnames = _interopRequireDefault(require("classnames"));
11
10
  var React = _interopRequireWildcard(require("react"));
12
11
  var _client = require("react-dom/client");
@@ -24,10 +23,11 @@ const SHARE = 'SHARE';
24
23
  function noop() {}
25
24
  const queue = [];
26
25
  function createActionSheet(flag, config, callback) {
27
- const props = (0, _objectSpread2.default)({
26
+ const props = {
28
27
  prefixCls: 'am-action-sheet',
29
- cancelButtonText: '取消'
30
- }, config);
28
+ cancelButtonText: '取消',
29
+ ...config
30
+ };
31
31
  const {
32
32
  prefixCls,
33
33
  className,
@@ -72,10 +72,10 @@ function createActionSheet(flag, config, callback) {
72
72
  badges = []
73
73
  } = props;
74
74
  const titleMsg = [title ? /*#__PURE__*/(0, _jsxRuntime.jsx)("h3", {
75
- className: "".concat(prefixCls, "-title"),
75
+ className: `${prefixCls}-title`,
76
76
  children: title
77
77
  }, "0") : null, message ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
78
- className: "".concat(prefixCls, "-message"),
78
+ className: `${prefixCls}-message`,
79
79
  children: message
80
80
  }, "1") : null];
81
81
  let children = null;
@@ -88,54 +88,60 @@ function createActionSheet(flag, config, callback) {
88
88
  if (badges && badges.length > 0) {
89
89
  badges.forEach(element => {
90
90
  if (element.index >= 0) {
91
- badgesMap[element.index] = /*#__PURE__*/(0, _jsxRuntime.jsx)(_Badge.default, (0, _objectSpread2.default)({}, element));
91
+ badgesMap[element.index] = /*#__PURE__*/(0, _jsxRuntime.jsx)(_Badge.default, {
92
+ ...element
93
+ });
92
94
  }
93
95
  });
94
96
  }
95
- children = /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", (0, _objectSpread2.default)((0, _objectSpread2.default)({}, (0, _getDataAttr.default)(props)), {}, {
97
+ children = /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
98
+ ...(0, _getDataAttr.default)(props),
96
99
  children: [titleMsg, /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
97
- className: "".concat(prefixCls, "-button-list"),
100
+ className: `${prefixCls}-button-list`,
98
101
  role: "group",
99
102
  children: normalOptions.map((item, index) => {
100
103
  const itemProps = {
101
- className: (0, _classnames.default)("".concat(prefixCls, "-button-list-item"), {
102
- ["".concat(prefixCls, "-destructive-button")]: destructiveButtonIndex === index,
103
- ["".concat(prefixCls, "-cancel-button")]: cancelButtonIndex === index
104
+ className: (0, _classnames.default)(`${prefixCls}-button-list-item`, {
105
+ [`${prefixCls}-destructive-button`]: destructiveButtonIndex === index,
106
+ [`${prefixCls}-cancel-button`]: cancelButtonIndex === index
104
107
  }),
105
108
  onClick: () => cb(index),
106
109
  role: 'button'
107
110
  };
108
- let bContent = /*#__PURE__*/(0, _jsxRuntime.jsx)("div", (0, _objectSpread2.default)((0, _objectSpread2.default)({}, itemProps), {}, {
111
+ let bContent = /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
112
+ ...itemProps,
109
113
  children: item
110
- }));
114
+ });
111
115
  // 仅在设置徽标的情况下修改dom结构
112
116
  if (badgesMap[index]) {
113
- bContent = /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", (0, _objectSpread2.default)((0, _objectSpread2.default)({}, itemProps), {}, {
114
- className: "".concat(itemProps.className, " ").concat(prefixCls, "-button-list-badge"),
117
+ bContent = /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
118
+ ...itemProps,
119
+ className: `${itemProps.className} ${prefixCls}-button-list-badge`,
115
120
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
116
- className: "".concat(prefixCls, "-button-list-item-content"),
121
+ className: `${prefixCls}-button-list-item-content`,
117
122
  children: item
118
123
  }), badgesMap[index]]
119
- }));
124
+ });
120
125
  }
121
126
  let bItem = /*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcFeedback.default, {
122
- activeClassName: "".concat(prefixCls, "-button-list-item-active"),
127
+ activeClassName: `${prefixCls}-button-list-item-active`,
123
128
  children: bContent
124
129
  }, index);
125
130
  if (cancelButtonIndex === index || destructiveButtonIndex === index) {
126
131
  bItem = /*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcFeedback.default, {
127
- activeClassName: "".concat(prefixCls, "-button-list-item-active"),
128
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", (0, _objectSpread2.default)((0, _objectSpread2.default)({}, itemProps), {}, {
132
+ activeClassName: `${prefixCls}-button-list-item-active`,
133
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
134
+ ...itemProps,
129
135
  children: [item, cancelButtonIndex === index ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
130
- className: "".concat(prefixCls, "-cancel-button-mask")
136
+ className: `${prefixCls}-cancel-button-mask`
131
137
  }) : null]
132
- }))
138
+ })
133
139
  }, index);
134
140
  }
135
141
  return bItem;
136
142
  })
137
143
  })]
138
- }));
144
+ });
139
145
  break;
140
146
  case SHARE:
141
147
  mode = 'share';
@@ -143,43 +149,44 @@ function createActionSheet(flag, config, callback) {
143
149
  const createList = function (item, index) {
144
150
  let rowIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
145
151
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
146
- className: "".concat(prefixCls, "-share-list-item"),
152
+ className: `${prefixCls}-share-list-item`,
147
153
  role: "button",
148
154
  onClick: () => cb(index, rowIndex),
149
155
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
150
- className: "".concat(prefixCls, "-share-list-item-icon"),
156
+ className: `${prefixCls}-share-list-item-icon`,
151
157
  children: item.icon
152
158
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
153
- className: "".concat(prefixCls, "-share-list-item-title"),
159
+ className: `${prefixCls}-share-list-item-title`,
154
160
  children: item.title
155
161
  })]
156
162
  }, index);
157
163
  };
158
- children = /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", (0, _objectSpread2.default)((0, _objectSpread2.default)({}, (0, _getDataAttr.default)(props)), {}, {
164
+ children = /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
165
+ ...(0, _getDataAttr.default)(props),
159
166
  children: [titleMsg, /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
160
- className: "".concat(prefixCls, "-share"),
167
+ className: `${prefixCls}-share`,
161
168
  children: [multipleLine ? options.map((item, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
162
- className: "".concat(prefixCls, "-share-list"),
169
+ className: `${prefixCls}-share-list`,
163
170
  children: item.map((ii, ind) => createList(ii, ind, index))
164
171
  }, index)) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
165
- className: "".concat(prefixCls, "-share-list"),
172
+ className: `${prefixCls}-share-list`,
166
173
  children: options.map((item, index) => createList(item, index))
167
174
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcFeedback.default, {
168
- activeClassName: "".concat(prefixCls, "-share-cancel-button-active"),
175
+ activeClassName: `${prefixCls}-share-cancel-button-active`,
169
176
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
170
- className: "".concat(prefixCls, "-share-cancel-button"),
177
+ className: `${prefixCls}-share-cancel-button`,
171
178
  role: "button",
172
179
  onClick: () => cb(-1),
173
180
  children: cancelButtonText
174
181
  })
175
182
  })]
176
183
  })]
177
- }));
184
+ });
178
185
  break;
179
186
  default:
180
187
  break;
181
188
  }
182
- const rootCls = (0, _classnames.default)("".concat(prefixCls, "-").concat(mode), className);
189
+ const rootCls = (0, _classnames.default)(`${prefixCls}-${mode}`, className);
183
190
  root.render(/*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcDialog.default, {
184
191
  visible: true,
185
192
  title: "",
@@ -23,28 +23,28 @@ class ActivityIndicator extends React.Component {
23
23
  text
24
24
  } = this.props;
25
25
  const wrapClass = (0, _classnames.default)(prefixCls, className, {
26
- ["".concat(prefixCls, "-lg")]: size === 'large',
27
- ["".concat(prefixCls, "-sm")]: size === 'small',
28
- ["".concat(prefixCls, "-toast")]: !!toast
26
+ [`${prefixCls}-lg`]: size === 'large',
27
+ [`${prefixCls}-sm`]: size === 'small',
28
+ [`${prefixCls}-toast`]: !!toast
29
29
  });
30
- const spinnerClass = (0, _classnames.default)("".concat(prefixCls, "-spinner"), {
31
- ["".concat(prefixCls, "-spinner-lg")]: !!toast || size === 'large'
30
+ const spinnerClass = (0, _classnames.default)(`${prefixCls}-spinner`, {
31
+ [`${prefixCls}-spinner-lg`]: !!toast || size === 'large'
32
32
  });
33
33
  if (animating) {
34
34
  if (toast) {
35
35
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
36
36
  className: wrapClass,
37
37
  children: text ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
38
- className: "".concat(prefixCls, "-content"),
38
+ className: `${prefixCls}-content`,
39
39
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
40
40
  className: spinnerClass,
41
41
  "aria-hidden": "true"
42
42
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
43
- className: "".concat(prefixCls, "-toast"),
43
+ className: `${prefixCls}-toast`,
44
44
  children: text
45
45
  })]
46
46
  }) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
47
- className: "".concat(prefixCls, "-content"),
47
+ className: `${prefixCls}-content`,
48
48
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
49
49
  className: spinnerClass,
50
50
  "aria-label": "Loading"
@@ -58,7 +58,7 @@ class ActivityIndicator extends React.Component {
58
58
  className: spinnerClass,
59
59
  "aria-hidden": "true"
60
60
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
61
- className: "".concat(prefixCls, "-tip"),
61
+ className: `${prefixCls}-tip`,
62
62
  children: text
63
63
  })]
64
64
  }) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
@@ -3,6 +3,7 @@
3
3
  height: auto !important;
4
4
  min-height: 38px;
5
5
  max-width: calc(100% - 10px);
6
+ padding: 0.4375rem 1rem 0.4375rem 0.5rem;
6
7
  }
7
8
 
8
9
  .dtable-ui-selected-users-container .dtable-ui-user-select-placeholder {
@@ -12,40 +13,56 @@
12
13
  .dtable-ui-user-select-popover .popover {
13
14
  width: 385px;
14
15
  max-width: 385px;
16
+ border-radius: 4px;
17
+ fill: #FFFFFF 100%;
18
+ background-color: #FFFFFF;
19
+ border: 1px solid #EEEEEE;
20
+ border-radius: 4px;
21
+ box-shadow: 0px 6px 14px rgba(0, 0, 0, 0.1);
15
22
  }
16
23
 
17
24
  .dtable-ui-user-select-container {
18
25
  position: relative;
19
26
  }
20
27
 
21
- .dtable-ui-user-select-container .dtable-ui-user-search-container {
22
- padding: 10px 10px 0 10px;
23
- }
24
-
25
28
  .dtable-ui-user-select-container .dtable-ui-user-search-container input {
26
- height: 28px;
29
+ height: 32px;
27
30
  }
28
31
 
29
32
  .dtable-ui-user-select-container .dtable-ui-user-list-container {
30
33
  min-height: 160px;
31
34
  max-height: 200px;
32
- margin: 10px 0;
35
+ padding: 8px;
33
36
  overflow: auto;
34
37
  }
35
38
 
39
+ .dtable-ui-user-select-container .form-control {
40
+ border: none;
41
+ border-bottom: 1px solid rgb(0 40 100 / 12%) !important;
42
+ border-radius: 4px 4px 0 0;
43
+ padding: .375rem .5rem !important;
44
+ }
45
+
46
+ .dtable-ui-user-select-container .form-control:focus {
47
+ border-color: transparent !important;
48
+ border-bottom: 1px solid rgb(0 40 100 / 12%) !important;
49
+ box-shadow: none !important;
50
+ }
51
+
36
52
  .dtable-ui-user-select-container .dtable-ui-user-list-container .dtable-ui-user-item-container {
37
53
  display: flex;
38
54
  align-items: center;
39
55
  justify-content: space-between;
40
- height: 30px;
41
- padding: 0 10px;
56
+ height: 32px;
57
+ padding: 0 8px;
42
58
  font-size: 14px;
43
59
  cursor: pointer;
60
+ border-radius: 4px;
44
61
  }
45
62
 
46
63
  .dtable-ui-user-select-container .dtable-ui-user-list-container .dtable-ui-user-item-container:hover,
47
64
  .dtable-ui-user-select-container .dtable-ui-user-list-container .dtable-ui-user-item-container-highlight {
48
- background: #f5f5f5;
65
+ background-color: rgba(0, 0, 0, 0.04);
49
66
  cursor: pointer;
50
67
  }
51
68
 
@@ -61,16 +78,37 @@
61
78
  background: transparent;
62
79
  }
63
80
 
64
- .dtable-ui-user-list-container .dtable-ui-collaborator-check-icon .dtable-icon-check-mark {
65
- color: #798d99;
81
+ .dtable-ui-user-list-container .dtable-ui-collaborator-check-icon .dtable-icon-check {
82
+ color: #666666;
83
+ font-size: 14px;
84
+ }
85
+
86
+ .dtable-ui-user-select-container .dtable-ui-user-search-container {
87
+ position: relative;
88
+ }
89
+
90
+ .dtable-ui-user-select-container .dtable-ui-user-search-container .search-clear-btn {
91
+ position: absolute;
92
+ top: 5px;
93
+ right: 10px;
94
+ height: 22px;
95
+ line-height: 22px;
96
+ width: 28px;
97
+ text-align: center;
98
+ color: #999;
99
+ cursor: pointer;
100
+ }
101
+
102
+ .dtable-ui-user-select-container .dtable-ui-user-search-container .search-clear-btn .dtable-icon-x {
66
103
  font-size: 12px;
104
+ color: #999999;
67
105
  }
68
106
 
69
107
  /* user-item */
70
108
  .dtable-ui-user-item {
71
109
  display: inline-flex;
72
110
  align-items: center;
73
- margin: 2px 10px 2px 0;
111
+ margin: 2px 4px 2px 0;
74
112
  padding: 0 8px 0 2px;
75
113
  height: 20px;
76
114
  font-size: 13px;
@@ -120,3 +158,7 @@
120
158
  color: #666666;
121
159
  cursor: pointer;
122
160
  }
161
+
162
+ .dtable-ui-selected-users-container .dtable-ui-users-input {
163
+ padding-right: 37px;
164
+ }
@@ -169,7 +169,7 @@ const AsyncUserSelect = _ref => {
169
169
  bottom
170
170
  } = userSelectContainerRef.current.getBoundingClientRect();
171
171
  if (bottom > window.innerHeight) {
172
- userSelectContainerRef.current.style.top = "".concat(window.innerHeight - bottom, "px");
172
+ userSelectContainerRef.current.style.top = `${window.innerHeight - bottom}px`;
173
173
  }
174
174
  }
175
175
  if (userListContainerRef.current && userItemContainerRef.current) {
@@ -190,21 +190,24 @@ const AsyncUserSelect = _ref => {
190
190
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ClickOutside.default, {
191
191
  onClickOutside: onClickOutside,
192
192
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
193
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
193
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
194
194
  className: (0, _classnames.default)('dtable-ui-selected-users-container form-control d-flex align-items-center', className, {
195
195
  'focus': isPopoverOpen
196
196
  }),
197
197
  onClick: onTogglePopover,
198
198
  ref: selectorRef,
199
- children: [selectedUsers.map((user, index) => {
200
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_userItem.default, {
201
- user: user,
202
- deleteUser: deselectUser
203
- }, "dtable-ui-user-selector-selected-user-".concat(index));
204
- }), selectedUsers.length === 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
205
- className: "dtable-ui-user-select-placeholder",
206
- children: emptyPlaceholder || (0, _lang.getLocale)('Search_users')
207
- })]
199
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
200
+ className: "dtable-ui-users-input",
201
+ children: [selectedUsers.map((user, index) => {
202
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_userItem.default, {
203
+ user: user,
204
+ deleteUser: deselectUser
205
+ }, `dtable-ui-user-selector-selected-user-${index}`);
206
+ }), selectedUsers.length === 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
207
+ className: "dtable-ui-user-select-placeholder",
208
+ children: emptyPlaceholder || (0, _lang.getLocale)('Search_users')
209
+ })]
210
+ })
208
211
  }), selectorRef.current && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Popover, {
209
212
  placement: "bottom-start",
210
213
  isOpen: isPopoverOpen,
@@ -216,16 +219,24 @@ const AsyncUserSelect = _ref => {
216
219
  className: "dtable-ui-user-select-container",
217
220
  ref: userSelectContainerRef,
218
221
  onMouseDown: e => e.stopPropagation(),
219
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
222
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
220
223
  className: "dtable-ui-user-search-container",
221
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableSearchInput.default, {
224
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableSearchInput.default, {
222
225
  autoFocus: true,
223
226
  placeholder: searchPlaceholder || (0, _lang.getLocale)('Search_users'),
224
227
  value: searchValue,
225
228
  wait: 200,
226
229
  onChange: onSearchValueChanged,
227
230
  onKeyDown: onKeyDown
228
- })
231
+ }), searchValue && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
232
+ className: "search-clear-btn position-absolute",
233
+ onClick: () => onSearchValueChanged(''),
234
+ title: (0, _lang.getLocale)('Clear_search_text'),
235
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
236
+ "aria-hidden": "true",
237
+ className: "dtable-font dtable-icon-x"
238
+ })
239
+ })]
229
240
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
230
241
  className: "dtable-ui-user-list-container",
231
242
  ref: userListContainerRef,
@@ -239,10 +250,10 @@ const AsyncUserSelect = _ref => {
239
250
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_userItem.default, {
240
251
  user: user,
241
252
  enableShowIDInOrgWhenSearchUser: enableShowIDInOrgWhenSearchUser
242
- }, "dtable-ui-user-selector-searched-user-".concat(index)), selectedUsers.find(u => u.email === user.email) && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
253
+ }, `dtable-ui-user-selector-searched-user-${index}`), selectedUsers.find(u => u.email === user.email) && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
243
254
  className: "dtable-ui-collaborator-check-icon",
244
255
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
245
- className: "dtable-font dtable-icon-check-mark",
256
+ className: "dtable-font dtable-icon-check",
246
257
  "aria-hidden": "true"
247
258
  })
248
259
  })]
@@ -1,65 +1,61 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
3
  var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.default = void 0;
9
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
10
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
11
9
  var _classnames = _interopRequireDefault(require("classnames"));
12
10
  var React = _interopRequireWildcard(require("react"));
13
11
  require("./index.css");
14
12
  var _jsxRuntime = require("react/jsx-runtime");
15
- const _excluded = ["className", "prefixCls", "children", "text", "size", "overflowCount", "dot", "corner", "hot"];
16
13
  class Badge extends React.Component {
17
14
  render() {
18
15
  // tslint:disable:prefer-const
19
- let _this$props = this.props,
20
- {
21
- className,
22
- prefixCls,
23
- children,
24
- text,
25
- size,
26
- overflowCount,
27
- dot,
28
- corner,
29
- hot
30
- } = _this$props,
31
- restProps = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
16
+ let {
17
+ className,
18
+ prefixCls,
19
+ children,
20
+ text,
21
+ size,
22
+ overflowCount,
23
+ dot,
24
+ corner,
25
+ hot,
26
+ ...restProps
27
+ } = this.props;
32
28
  // eslint-disable-next-line no-self-assign
33
29
  overflowCount = overflowCount;
34
- text = typeof text === 'number' && text > overflowCount ? "".concat(overflowCount, "+") : text;
30
+ text = typeof text === 'number' && text > overflowCount ? `${overflowCount}+` : text;
35
31
 
36
32
  // dot mode don't need text
37
33
  if (dot) {
38
34
  text = '';
39
35
  }
40
36
  const scrollNumberCls = (0, _classnames.default)({
41
- ["".concat(prefixCls, "-dot")]: dot,
42
- ["".concat(prefixCls, "-dot-large")]: dot && size === 'large',
43
- ["".concat(prefixCls, "-text")]: !dot && !corner,
44
- ["".concat(prefixCls, "-corner")]: corner,
45
- ["".concat(prefixCls, "-corner-large")]: corner && size === 'large'
37
+ [`${prefixCls}-dot`]: dot,
38
+ [`${prefixCls}-dot-large`]: dot && size === 'large',
39
+ [`${prefixCls}-text`]: !dot && !corner,
40
+ [`${prefixCls}-corner`]: corner,
41
+ [`${prefixCls}-corner-large`]: corner && size === 'large'
46
42
  });
47
43
  const badgeCls = (0, _classnames.default)(prefixCls, className, {
48
- ["".concat(prefixCls, "-not-a-wrapper")]: !children,
49
- ["".concat(prefixCls, "-corner-wrapper")]: corner,
50
- ["".concat(prefixCls, "-hot")]: !!hot,
51
- ["".concat(prefixCls, "-corner-wrapper-large")]: corner && size === 'large'
44
+ [`${prefixCls}-not-a-wrapper`]: !children,
45
+ [`${prefixCls}-corner-wrapper`]: corner,
46
+ [`${prefixCls}-hot`]: !!hot,
47
+ [`${prefixCls}-corner-wrapper-large`]: corner && size === 'large'
52
48
  });
53
49
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
54
50
  className: badgeCls,
55
51
  children: [children, (text || dot) &&
56
52
  /*#__PURE__*/
57
53
  // tslint:disable-next-line:jsx-no-multiline-js
58
- (0, _jsxRuntime.jsx)("sup", (0, _objectSpread2.default)((0, _objectSpread2.default)({
59
- className: scrollNumberCls
60
- }, restProps), {}, {
54
+ (0, _jsxRuntime.jsx)("sup", {
55
+ className: scrollNumberCls,
56
+ ...restProps,
61
57
  children: text
62
- }))]
58
+ })]
63
59
  });
64
60
  }
65
61
  }
@@ -6,37 +6,38 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.default = void 0;
9
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
10
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
11
9
  var _react = _interopRequireWildcard(require("react"));
12
10
  var _reactResponsive = _interopRequireDefault(require("react-responsive"));
13
11
  var _pcEditor = _interopRequireDefault(require("./pc-editor"));
14
12
  var _mbEditor = _interopRequireDefault(require("./mb-editor"));
15
13
  require("./index.css");
16
14
  var _jsxRuntime = require("react/jsx-runtime");
17
- const _excluded = ["isMobile"];
18
15
  const CheckboxEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
19
16
  let {
20
- isMobile
21
- } = _ref,
22
- props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
23
- if (isMobile === false) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
17
+ isMobile,
18
+ ...props
19
+ } = _ref;
20
+ if (isMobile === false) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
21
+ ...props,
24
22
  ref: ref
25
- }));
26
- if (isMobile === true) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
23
+ });
24
+ if (isMobile === true) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
25
+ ...props,
27
26
  ref: ref
28
- }));
27
+ });
29
28
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
30
29
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
31
30
  query: "(min-width: 768px)",
32
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
31
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
32
+ ...props,
33
33
  ref: ref
34
- }))
34
+ })
35
35
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
36
36
  query: "(max-width: 768px)",
37
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
37
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
38
+ ...props,
38
39
  ref: ref
39
- }))
40
+ })
40
41
  })]
41
42
  });
42
43
  });
@@ -6,43 +6,44 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.default = void 0;
9
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
10
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
11
9
  var _react = _interopRequireWildcard(require("react"));
12
10
  var _reactResponsive = _interopRequireDefault(require("react-responsive"));
13
11
  var _pcEditor = _interopRequireDefault(require("./pc-editor"));
14
12
  var _mbEditor = _interopRequireDefault(require("./mb-editor"));
15
13
  require("./index.css");
16
14
  var _jsxRuntime = require("react/jsx-runtime");
17
- const _excluded = ["isMobile", "value"];
18
15
  const CollaboratorEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
19
16
  let {
20
- isMobile,
21
- value: oldValue
22
- } = _ref,
23
- props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
17
+ isMobile,
18
+ value: oldValue,
19
+ ...props
20
+ } = _ref;
24
21
  const value = Array.isArray(oldValue) ? oldValue : [];
25
- if (isMobile === false) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
22
+ if (isMobile === false) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
23
+ ...props,
26
24
  value: value,
27
25
  ref: ref
28
- }));
29
- if (isMobile === true) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
26
+ });
27
+ if (isMobile === true) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
28
+ ...props,
30
29
  value: value,
31
30
  ref: ref
32
- }));
31
+ });
33
32
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
34
33
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
35
34
  query: "(min-width: 768px)",
36
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
35
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
36
+ ...props,
37
37
  value: value,
38
38
  ref: ref
39
- }))
39
+ })
40
40
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
41
41
  query: "(max-width: 768px)",
42
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
42
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
43
+ ...props,
43
44
  value: value,
44
45
  ref: ref
45
- }))
46
+ })
46
47
  })]
47
48
  });
48
49
  });
@@ -176,7 +176,7 @@ class PCCollaboratorEditor extends _react.default.Component {
176
176
  bottom
177
177
  } = this.ref.getBoundingClientRect();
178
178
  if (bottom > window.innerHeight) {
179
- this.ref.style.top = "".concat(window.innerHeight - bottom, "px");
179
+ this.ref.style.top = `${window.innerHeight - bottom}px`;
180
180
  }
181
181
  }
182
182
  if (this.container && this.collaboratorItem) {
@@ -26,7 +26,7 @@ const CollapsibleSettingLayout = props => {
26
26
  className: "collapsible-setting-layout-title",
27
27
  children: title
28
28
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
29
- className: "dtable-font dtable-icon-right".concat(isShowSettings ? ' dtable-icon-spin' : '')
29
+ className: `dtable-font dtable-icon-right${isShowSettings ? ' dtable-icon-spin' : ''}`
30
30
  })]
31
31
  }), isShowSettings && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
32
32
  className: "collapsible-setting-layout-body mt-3 pl-2",