dtable-ui-component 6.0.110-zzr.1 → 6.0.111

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