dtable-ui-component 6.0.53 → 6.0.55-beta.1

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 (140) hide show
  1. package/lib/ActionSheet/index.js +21 -21
  2. package/lib/ActivityIndicator/index.js +9 -9
  3. package/lib/AsyncUserSelect/index.js +3 -3
  4. package/lib/Badge/index.js +10 -10
  5. package/lib/CheckboxEditor/mb-editor.js +2 -10
  6. package/lib/CheckboxEditor/pc-editor.js +2 -10
  7. package/lib/CheckboxFormatter/index.js +4 -13
  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/footer/index.js +1 -1
  12. package/lib/Comment/footer/input/index.js +5 -5
  13. package/lib/Comment/footer/input/participant/index.js +1 -1
  14. package/lib/Comment/footer/participants/participant-select/index.js +2 -2
  15. package/lib/Comment/utils/utilities.js +1 -1
  16. package/lib/DTableColorPicker/ColorPickerPortal/index.js +4 -4
  17. package/lib/DTableColorPicker/index.js +6 -6
  18. package/lib/DTableColorPicker/utils.js +1 -1
  19. package/lib/DTableColumnIcon/index.js +71 -0
  20. package/lib/DTableCommonAddTool/index.js +2 -2
  21. package/lib/DTableFiltersPopover/index.js +1 -1
  22. package/lib/DTableFiltersPopover/utils/filter-item-utils.js +7 -4
  23. package/lib/DTableFiltersPopover/utils/index.js +92 -27
  24. package/lib/DTableFiltersPopover/widgets/filter-group.js +2 -2
  25. package/lib/DTableFiltersPopover/widgets/filter-item.js +2 -2
  26. package/lib/DTableFiltersPopover/widgets/filter-list/index.js +1 -1
  27. package/lib/DTableFiltersPopover/widgets/rate-item.js +2 -2
  28. package/lib/DTableGroupSelect/select-option-group.js +1 -1
  29. package/lib/{SvgIcon → DTableIcon}/index.css +2 -2
  30. package/lib/DTableIcon/index.js +44 -0
  31. package/lib/DTableIcon/svg-icon.js +56 -0
  32. package/lib/DTableRadioGroup/index.js +3 -3
  33. package/lib/DTableSearchInput/index.js +1 -1
  34. package/lib/DTableSelect/dtable-select-label.js +1 -1
  35. package/lib/DTableSwitch/index.css +1 -1
  36. package/lib/DTableSwitch/index.js +4 -1
  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/DepartmentSingleSelectEditor/mb-editor/index.js +2 -2
  41. package/lib/DepartmentSingleSelectEditor/pc-editor/department-single-select.js +2 -2
  42. package/lib/DigitalSignEditor/service.js +1 -1
  43. package/lib/DigitalSignEditor/signature-board/index.js +2 -2
  44. package/lib/DigitalSignFormatter/utils.js +1 -1
  45. package/lib/FieldDisplaySetting/field-item.js +9 -4
  46. package/lib/FieldDisplaySetting/index.js +6 -6
  47. package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +2 -2
  48. package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/index.js +3 -3
  49. package/lib/FileEditor/pc-editor/addition-previewer/index.js +1 -1
  50. package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.js +6 -6
  51. package/lib/FileFormatter/index.js +1 -1
  52. package/lib/FileItemFormatter/index.js +1 -1
  53. package/lib/FileUploader/index.js +1 -1
  54. package/lib/FormulaFormatter/index.js +4 -4
  55. package/lib/GeolocationEditor/index.js +3 -3
  56. package/lib/GeolocationEditor/map-editor-utils.js +2 -2
  57. package/lib/GeolocationEditor/pc-editor/country-editor.js +2 -2
  58. package/lib/GeolocationEditor/pc-editor/location-editor.js +2 -2
  59. package/lib/GeolocationEditor/pc-editor/map-selection-editor/index.js +20 -3
  60. package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +20 -3
  61. package/lib/GeolocationEditor/pc-editor/province-city-editor.js +1 -1
  62. package/lib/GeolocationEditor/pc-editor/province-editor.js +3 -3
  63. package/lib/GeolocationEditor/pc-editor/selector-list.js +1 -1
  64. package/lib/HtmlLongTextFormatter/index.js +1 -1
  65. package/lib/Icon/index.js +2 -2
  66. package/lib/Icon/load-sprite.js +13 -2
  67. package/lib/IconButton/index.js +1 -1
  68. package/lib/ImageEditor/images-previewer/image-preview/index.js +1 -1
  69. package/lib/ImageEditor/pc-editor/addition-previewer/index.js +2 -2
  70. package/lib/ImageEditor/pc-editor/addition-previewer/local-image-addition/index.js +5 -5
  71. package/lib/ImageEditor/pc-editor/images-previewer/index.js +1 -1
  72. package/lib/ImageFormatter/index.js +1 -1
  73. package/lib/ImageThumbnail/index.js +2 -2
  74. package/lib/InputItem/custom-input.js +9 -9
  75. package/lib/InputItem/custom-keyboard.js +5 -5
  76. package/lib/InputItem/index.js +21 -21
  77. package/lib/List/index.js +3 -3
  78. package/lib/List/list-item.js +23 -23
  79. package/lib/MBEditorHeader/index.js +1 -1
  80. package/lib/MobileFullScreenPage/body/index.js +1 -1
  81. package/lib/MobileFullScreenPage/header/index.js +4 -4
  82. package/lib/MobileFullScreenPage/index.js +1 -1
  83. package/lib/Modal/alert.js +3 -3
  84. package/lib/Modal/modal.js +8 -8
  85. package/lib/Modal/operation.js +1 -1
  86. package/lib/Modal/prompt.js +11 -11
  87. package/lib/MultipleSelectFormatter/index.js +1 -1
  88. package/lib/Popover/index.js +1 -1
  89. package/lib/Popover/item.js +7 -7
  90. package/lib/Progress/index.js +6 -6
  91. package/lib/Radio/Radio.js +1 -1
  92. package/lib/Radio/RadioItem.js +2 -2
  93. package/lib/RateFormatter/index.js +3 -3
  94. package/lib/RoleStatusEditor/index.js +1 -1
  95. package/lib/RowExpandDialog/body/index.js +1 -1
  96. package/lib/RowExpandDialog/column-content/index.js +7 -4
  97. package/lib/RowExpandDialog/header/index.js +1 -1
  98. package/lib/RowExpandDialog/index.js +3 -3
  99. package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +1 -1
  100. package/lib/RowExpandEditor/digital-sign-editor/pc-editor/index.js +1 -1
  101. package/lib/RowExpandEditor/email-editor/mb-editor/index.js +1 -1
  102. package/lib/RowExpandEditor/email-editor/pc-editor/index.js +1 -1
  103. package/lib/RowExpandEditor/image-editor/mb-editor/index.js +1 -1
  104. package/lib/RowExpandEditor/image-editor/pc-editor/index.js +1 -1
  105. package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +1 -1
  106. package/lib/RowExpandEditor/multiple-select-editor/pc-editor/index.js +5 -5
  107. package/lib/RowExpandEditor/rate-editor/mb-editor.js +1 -1
  108. package/lib/RowExpandEditor/rate-editor/pc-editor.js +2 -2
  109. package/lib/RowExpandEditor/single-select-editor/pc-editor/index.js +3 -3
  110. package/lib/RowExpandEditor/url-editor/mb-editor/index.js +1 -1
  111. package/lib/RowExpandEditor/url-editor/pc-editor/index.js +1 -1
  112. package/lib/RowExpandFormatter/email-formatter/index.js +1 -1
  113. package/lib/RowExpandFormatter/file-formatter/row-expand-file-item-formatter.js +2 -2
  114. package/lib/RowExpandFormatter/formula-formatter/index.js +7 -7
  115. package/lib/RowExpandFormatter/image-formatter/row-expand-image-item-formatter.js +2 -2
  116. package/lib/RowExpandFormatter/index.js +1 -1
  117. package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +1 -1
  118. package/lib/RowExpandFormatter/link-formatter/index.js +6 -6
  119. package/lib/RowExpandFormatter/rate-formatter/index.js +3 -3
  120. package/lib/RowExpandFormatter/url-formatter/index.js +1 -1
  121. package/lib/RowExpandView/body/index.js +1 -1
  122. package/lib/SelectOptionGroup/index.js +1 -1
  123. package/lib/SelectedDepartments/index.js +3 -3
  124. package/lib/SimpleLongTextFormatter/index.js +2 -2
  125. package/lib/TabBar/Tab.js +6 -6
  126. package/lib/TabBar/index.js +3 -3
  127. package/lib/TextareaItem/index.js +19 -19
  128. package/lib/Toast/index.js +5 -5
  129. package/lib/assets/icons/telephone.svg +14 -0
  130. package/lib/index.js +14 -7
  131. package/lib/select-editor/pc-editor/index.js +2 -2
  132. package/lib/toaster/alert.js +1 -1
  133. package/lib/toaster/toast.js +1 -1
  134. package/lib/toaster/toastManager.js +1 -1
  135. package/lib/toaster/toaster.js +7 -4
  136. package/lib/utils/class.js +3 -3
  137. package/lib/utils/object-utils.js +1 -1
  138. package/lib/utils/url.js +4 -4
  139. package/package.json +14 -30
  140. package/lib/SvgIcon/index.js +0 -38
@@ -28,8 +28,8 @@ class RadioItem extends React.Component {
28
28
  className,
29
29
  children
30
30
  } = otherProps;
31
- const wrapCls = (0, _classnames.default)("".concat(prefixCls, "-item"), className, {
32
- ["".concat(prefixCls, "-item-disabled")]: disabled === true
31
+ const wrapCls = (0, _classnames.default)(`${prefixCls}-item`, className, {
32
+ [`${prefixCls}-item-disabled`]: disabled === true
33
33
  });
34
34
 
35
35
  // Note: if not omit `onChange`, it will trigger twice on check listitem
@@ -25,12 +25,12 @@ class RateFormatter extends _react.default.Component {
25
25
  const validValue = Math.min(rate_max_number, value);
26
26
  let rateList = [];
27
27
  for (let i = 0; i < validValue; i++) {
28
- rateList.push( /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
29
- className: "dtable-font ".concat(rate_style_type),
28
+ rateList.push(/*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
29
+ className: `dtable-font ${rate_style_type}`,
30
30
  style: {
31
31
  color: rate_style_color || '#e5e5e5'
32
32
  }
33
- }, "dtable-ui-component-rate-".concat(i)));
33
+ }, `dtable-ui-component-rate-${i}`));
34
34
  }
35
35
  return rateList;
36
36
  };
@@ -61,7 +61,7 @@ const RoleStatusEditor = _ref => {
61
61
  children: [label, value === currentOption.value && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
62
62
  className: "dtable-font dtable-icon-check-mark ml-2"
63
63
  })]
64
- }, "item-".concat(value));
64
+ }, `item-${value}`);
65
65
  })
66
66
  })]
67
67
  });
@@ -203,7 +203,7 @@ class Body extends _react.default.Component {
203
203
  row
204
204
  };
205
205
  const CustomChildren = children;
206
- if ( /*#__PURE__*/_react.default.isValidElement(CustomChildren)) return /*#__PURE__*/_react.default.cloneElement(CustomChildren, props);
206
+ if (/*#__PURE__*/_react.default.isValidElement(CustomChildren)) return /*#__PURE__*/_react.default.cloneElement(CustomChildren, props);
207
207
  if ((0, _utils.isFunction)(CustomChildren)) return /*#__PURE__*/(0, _jsxRuntime.jsx)(CustomChildren, {
208
208
  ...props
209
209
  });
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
3
4
  var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
@@ -7,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
7
8
  exports.default = void 0;
8
9
  var _react = _interopRequireWildcard(require("react"));
9
10
  var _reactstrap = require("reactstrap");
10
- var _dtableUtils = require("dtable-utils");
11
+ var _DTableColumnIcon = _interopRequireDefault(require("../../DTableColumnIcon"));
11
12
  require("./index.css");
12
13
  var _jsxRuntime = require("react/jsx-runtime");
13
14
  const ColumnContent = _ref => {
@@ -20,6 +21,7 @@ const ColumnContent = _ref => {
20
21
  name,
21
22
  type,
22
23
  key,
24
+ data,
23
25
  description
24
26
  } = column;
25
27
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactstrap.Row, {
@@ -29,9 +31,10 @@ const ColumnContent = _ref => {
29
31
  className: "dtable-ui-row-expand-column-content-info d-flex",
30
32
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
31
33
  className: "dtable-ui-header-icon",
32
- id: "header-icon-".concat(key),
33
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
34
- className: _dtableUtils.COLUMNS_ICON_CONFIG[type]
34
+ id: `header-icon-${key}`,
35
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableColumnIcon.default, {
36
+ columnType: type,
37
+ columnDisplayType: data === null || data === void 0 ? void 0 : data.display_type
35
38
  })
36
39
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
37
40
  className: "dtable-ui-row-expand-column-name",
@@ -28,7 +28,7 @@ const Header = _ref => {
28
28
  row
29
29
  };
30
30
  const CustomTitle = title;
31
- if ( /*#__PURE__*/_react.default.isValidElement(CustomTitle)) return /*#__PURE__*/_react.default.cloneElement(CustomTitle, props);
31
+ if (/*#__PURE__*/_react.default.isValidElement(CustomTitle)) return /*#__PURE__*/_react.default.cloneElement(CustomTitle, props);
32
32
  if ((0, _utils.isFunction)(CustomTitle)) return /*#__PURE__*/(0, _jsxRuntime.jsx)(CustomTitle, {
33
33
  ...props
34
34
  });
@@ -167,9 +167,9 @@ const RowExpandDialog = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
167
167
  marginLeft,
168
168
  height
169
169
  } = style;
170
- dom.style.width = "".concat(width, "px");
171
- dom.style.maxWidth = "".concat(maxWidth, "px");
172
- dom.style.marginLeft = "".concat(marginLeft, "px");
170
+ dom.style.width = `${width}px`;
171
+ dom.style.maxWidth = `${maxWidth}px`;
172
+ dom.style.marginLeft = `${marginLeft}px`;
173
173
  dom.style.height = height;
174
174
  dom.style.marginRight = 'unset';
175
175
  dom.style.marginTop = '28px';
@@ -81,7 +81,7 @@ class RowExpandMBDigitalSignEditor extends _react.default.Component {
81
81
  onClick: this.toggleEditor,
82
82
  deleteImage: this.deleteImage,
83
83
  disableImageTooltip: true
84
- }, "sing-image-".concat(key, "-").concat(index));
84
+ }, `sing-image-${key}-${index}`);
85
85
  });
86
86
  };
87
87
  this.state = {
@@ -120,7 +120,7 @@ class RowExpandPCDigitalSignEditor extends _react.default.Component {
120
120
  onClick: this.setLargeImageIndex,
121
121
  deleteImage: this.deleteImage,
122
122
  disableImageTooltip: true
123
- }, "sing-image-".concat(key, "-").concat(index));
123
+ }, `sing-image-${key}-${index}`);
124
124
  });
125
125
  };
126
126
  this.state = {
@@ -36,7 +36,7 @@ class RowExpandMBEmailEditor extends _react.default.Component {
36
36
  value
37
37
  } = this.state;
38
38
  let newValue = value.trim();
39
- window.location.href = "mailto:".concat(newValue);
39
+ window.location.href = `mailto:${newValue}`;
40
40
  };
41
41
  const {
42
42
  row,
@@ -66,7 +66,7 @@ class RowExpandPCEmailEditor extends _react.default.Component {
66
66
  value
67
67
  } = this.state;
68
68
  let newValue = value.trim();
69
- window.location.href = "mailto:".concat(newValue);
69
+ window.location.href = `mailto:${newValue}`;
70
70
  };
71
71
  const {
72
72
  row,
@@ -55,7 +55,7 @@ class RowExpandMBImageEditor extends _react.default.Component {
55
55
  config: config,
56
56
  onClick: this.toggleEditor,
57
57
  deleteImage: this.deleteImage
58
- }, "image-".concat(index));
58
+ }, `image-${index}`);
59
59
  });
60
60
  };
61
61
  const {
@@ -95,7 +95,7 @@ class RowExpandPCImageEditor extends _react.default.Component {
95
95
  onClick: this.setLargeImageIndex,
96
96
  deleteImage: this.deleteImage,
97
97
  config: config
98
- }, "image-".concat(index));
98
+ }, `image-${index}`);
99
99
  });
100
100
  };
101
101
  this.state = {
@@ -90,7 +90,7 @@ class RowExpandMBMultipleSelectEditor extends _react.default.Component {
90
90
  onRemove: this.removeOption.bind(this, {
91
91
  [this.key]: optionId
92
92
  })
93
- }, "deleted-".concat(index));
93
+ }, `deleted-${index}`);
94
94
  }));
95
95
  }
96
96
  if (displayOptions.length === 0) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_addBtn.default, {
@@ -146,7 +146,7 @@ class RowExpandPCMultipleSelectEditor extends _react.default.Component {
146
146
  })
147
147
  })
148
148
  })]
149
- }, "deleted-multiple-select-".concat(index));
149
+ }, `deleted-multiple-select-${index}`);
150
150
  }));
151
151
  };
152
152
  this.renderOptions = () => {
@@ -163,19 +163,19 @@ class RowExpandPCMultipleSelectEditor extends _react.default.Component {
163
163
  ref: ref => this.multipleSelectOptionsRef = ref,
164
164
  className: (0, _classnames.default)('dtable-ui dtable-ui-row-expand-select-editor custom-select', {
165
165
  'focus': isEditorFocus,
166
- ["".concat(classNamePrefix, "-select-editor")]: classNamePrefix
166
+ [`${classNamePrefix}-select-editor`]: classNamePrefix
167
167
  }),
168
168
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
169
169
  className: (0, _classnames.default)('dtable-ui-row-expand-select-editor-inner', {
170
- ["".concat(classNamePrefix, "-select-editor-inner")]: classNamePrefix
170
+ [`${classNamePrefix}-select-editor-inner`]: classNamePrefix
171
171
  }),
172
172
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
173
173
  className: (0, _classnames.default)('', {
174
- ["".concat(classNamePrefix, "-select-editor-inner-container")]: classNamePrefix
174
+ [`${classNamePrefix}-select-editor-inner-container`]: classNamePrefix
175
175
  }),
176
176
  children: [options.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
177
177
  className: (0, _classnames.default)('dtable-ui-row-expand-select-options', {
178
- ["".concat(classNamePrefix, "-select-editor-options")]: classNamePrefix
178
+ [`${classNamePrefix}-select-editor-options`]: classNamePrefix
179
179
  }),
180
180
  children: options
181
181
  }), options.length === 0 && placeholder && /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
@@ -49,7 +49,7 @@ class RowExpandMBRateEditor extends _react.default.Component {
49
49
  'rate-item-active': value >= rateItemIndex
50
50
  }),
51
51
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
52
- className: "dtable-font ".concat(rateShowType)
52
+ className: `dtable-font ${rateShowType}`
53
53
  })
54
54
  }, i);
55
55
  rateList.push(rateItem);
@@ -93,7 +93,7 @@ class RowExpandPCRateEditor extends _react.default.Component {
93
93
  style: style,
94
94
  className: value >= rateItemIndex ? 'rate-item-active' : '',
95
95
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
96
- className: "dtable-font ".concat(rateShowType)
96
+ className: `dtable-font ${rateShowType}`
97
97
  })
98
98
  }, i);
99
99
  rateList.push(rateItem);
@@ -142,7 +142,7 @@ class RowExpandPCRateEditor extends _react.default.Component {
142
142
  style: style,
143
143
  onKeyDown: this.onKeyDown,
144
144
  onFocus: this.props.updateTabIndex.bind(this, this.props.columnIndex),
145
- "aria-label": "".concat(this.state.value, ", ").concat((0, _lang.getLocale)('Press_the_number_keys_to_enter_the_corresponding_value')),
145
+ "aria-label": `${this.state.value}, ${(0, _lang.getLocale)('Press_the_number_keys_to_enter_the_corresponding_value')}`,
146
146
  className: (0, _classnames.default)('form-control dtable-ui dtable-ui-row-expand-rate-editor', {
147
147
  'disabled': !this.canEdit
148
148
  }),
@@ -114,15 +114,15 @@ class RowExpandPCSingleSelectEditor extends _react.default.Component {
114
114
  ref: ref => this.selectRef = ref,
115
115
  className: (0, _classnames.default)('dtable-ui dtable-ui-row-expand-select-editor custom-select', {
116
116
  'focus': isEditorFocus,
117
- ["".concat(classNamePrefix, "-select-editor")]: classNamePrefix
117
+ [`${classNamePrefix}-select-editor`]: classNamePrefix
118
118
  }),
119
119
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
120
120
  className: (0, _classnames.default)('dtable-ui-row-expand-select-editor-inner', {
121
- ["".concat(classNamePrefix, "-select-editor-inner")]: classNamePrefix
121
+ [`${classNamePrefix}-select-editor-inner`]: classNamePrefix
122
122
  }),
123
123
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
124
124
  className: (0, _classnames.default)('', {
125
- ["".concat(classNamePrefix, "-select-editor-inner-container")]: classNamePrefix
125
+ [`${classNamePrefix}-select-editor-inner-container`]: classNamePrefix
126
126
  }),
127
127
  children: [value && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
128
128
  className: "dtable-ui-select-option",
@@ -39,7 +39,7 @@ class RowExpandMBUrlEditor extends _react.default.Component {
39
39
  } = this.state;
40
40
  let newValue = value.trim();
41
41
  if (!(0, _utils.isValidUrl)(newValue)) {
42
- newValue = "http://".concat(newValue);
42
+ newValue = `http://${newValue}`;
43
43
  }
44
44
  try {
45
45
  (0, _utils.openUrlLink)(newValue);
@@ -69,7 +69,7 @@ class RowExpandPCUrlEditor extends _react.default.Component {
69
69
  } = this.state;
70
70
  let newValue = value.trim();
71
71
  if (!(0, _utils.isValidUrl)(newValue)) {
72
- newValue = "http://".concat(newValue);
72
+ newValue = `http://${newValue}`;
73
73
  }
74
74
  try {
75
75
  (0, _utils.openUrlLink)(newValue);
@@ -18,7 +18,7 @@ class RowExpandEmailFormatter extends _react.default.Component {
18
18
  value
19
19
  } = this.props;
20
20
  let newValue = value.trim();
21
- window.location.href = "mailto:".concat(newValue);
21
+ window.location.href = `mailto:${newValue}`;
22
22
  };
23
23
  }
24
24
  render() {
@@ -65,7 +65,7 @@ class RowExpandFileItemFormatter extends _react.Component {
65
65
  id: id,
66
66
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
67
67
  src: fileIconUrl,
68
- id: "item-file-".concat(index),
68
+ id: `item-file-${index}`,
69
69
  alt: file.name
70
70
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
71
71
  className: "dtable-ui-file-icons-choice",
@@ -83,7 +83,7 @@ class RowExpandFileItemFormatter extends _react.Component {
83
83
  })
84
84
  })]
85
85
  })]
86
- }, "file-".concat(index)), this.state.isDeleteTipOpen && /*#__PURE__*/(0, _jsxRuntime.jsx)(_DeleteTip.default, {
86
+ }, `file-${index}`), this.state.isDeleteTipOpen && /*#__PURE__*/(0, _jsxRuntime.jsx)(_DeleteTip.default, {
87
87
  position: this.position,
88
88
  toggle: this.closeDeleteTip,
89
89
  handleDelete: this.onDelete,
@@ -35,7 +35,7 @@ class RowExpandFormulaFormatter extends _react.default.Component {
35
35
  };
36
36
  this.onOpenUrlLink = url => {
37
37
  if (!(0, _utils2.isValidUrl)(url)) {
38
- url = "http://".concat(url);
38
+ url = `http://${url}`;
39
39
  }
40
40
  try {
41
41
  (0, _utils2.openUrlLink)(url);
@@ -44,7 +44,7 @@ class RowExpandFormulaFormatter extends _react.default.Component {
44
44
  }
45
45
  };
46
46
  this.onOpenEmailLink = email => {
47
- window.location.href = "mailto:".concat(email.trim());
47
+ window.location.href = `mailto:${email.trim()}`;
48
48
  };
49
49
  this.renderBorder = dom => {
50
50
  const {
@@ -79,8 +79,8 @@ class RowExpandFormulaFormatter extends _react.default.Component {
79
79
  containerClassName
80
80
  } = this.props;
81
81
  const customClassName = this.getGridCellClassName(resultType);
82
- const className = "dtable-ui cell-formatter-container formula-formatter ".concat(containerClassName, " ").concat(customClassName);
83
- return this.renderBorder( /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
82
+ const className = `dtable-ui cell-formatter-container formula-formatter ${containerClassName} ${customClassName}`;
83
+ return this.renderBorder(/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
84
84
  className: className,
85
85
  title: cellValue,
86
86
  "aria-label": cellValue,
@@ -125,7 +125,7 @@ class RowExpandFormulaFormatter extends _react.default.Component {
125
125
  formulaEmail = cellValue[0];
126
126
  formulaEmail = formulaEmail ? formulaEmail.trim() : '';
127
127
  }
128
- return this.renderBorder( /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
128
+ return this.renderBorder(/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
129
129
  className: "dtable-ui formula-formatter multiple",
130
130
  children: cellValue.map((v, index) => {
131
131
  formatterProps.value = v;
@@ -144,7 +144,7 @@ class RowExpandFormulaFormatter extends _react.default.Component {
144
144
  className: "dtable-font dtable-icon-email formula-email-link",
145
145
  onClick: this.onOpenEmailLink.bind(this, formulaEmail)
146
146
  }), this.createColumnFormatter(Formatter, formatterProps)]
147
- }, "formula-formatter-content-item-".concat(index));
147
+ }, `formula-formatter-content-item-${index}`);
148
148
  })
149
149
  }));
150
150
  };
@@ -191,7 +191,7 @@ class RowExpandFormulaFormatter extends _react.default.Component {
191
191
  };
192
192
  }
193
193
  createColumnFormatter(Formatter, formatterProps) {
194
- if ( /*#__PURE__*/_react.default.isValidElement(Formatter)) {
194
+ if (/*#__PURE__*/_react.default.isValidElement(Formatter)) {
195
195
  return /*#__PURE__*/_react.default.cloneElement(Formatter, {
196
196
  ...formatterProps
197
197
  });
@@ -72,7 +72,7 @@ class RowExpandImageItemFormatter extends _react.Component {
72
72
  onClick: this.onClickImage,
73
73
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
74
74
  src: url,
75
- id: "item-image-".concat(index),
75
+ id: `item-image-${index}`,
76
76
  alt: name
77
77
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
78
78
  className: "dtable-ui-image-icons-choice",
@@ -90,7 +90,7 @@ class RowExpandImageItemFormatter extends _react.Component {
90
90
  })
91
91
  })]
92
92
  })]
93
- }, "image-".concat(index)), this.state.isDeleteTipOpen && /*#__PURE__*/(0, _jsxRuntime.jsx)(_DeleteTip.default, {
93
+ }, `image-${index}`), this.state.isDeleteTipOpen && /*#__PURE__*/(0, _jsxRuntime.jsx)(_DeleteTip.default, {
94
94
  position: this.position,
95
95
  toggle: this.closeDeleteTip,
96
96
  handleDelete: this.onDelete,
@@ -66,7 +66,7 @@ class RowExpandFormatter extends _react.default.Component {
66
66
  const {
67
67
  collaborators
68
68
  } = this.state;
69
- const containerClassName = "dtable-ui-row-expand-".concat(columnType, "-formatter");
69
+ const containerClassName = `dtable-ui-row-expand-${columnType}-formatter`;
70
70
  let cellValue = row[column[valueKey]];
71
71
  const Formatter = this.component[columnType];
72
72
  if (!Formatter) return null;
@@ -42,7 +42,7 @@ class CollaboratorItemFormatter extends _react.Component {
42
42
  }
43
43
  if (!context) return;
44
44
  const mediaUrl = context.getSetting('mediaUrl');
45
- const defaultAvatarUrl = "".concat(mediaUrl, "/avatars/default.png");
45
+ const defaultAvatarUrl = `${mediaUrl}/avatars/default.png`;
46
46
  if (cellValue === 'anonymous') {
47
47
  collaborator = {
48
48
  name: 'anonymous',
@@ -64,7 +64,7 @@ class RowExpandLinkFormatter extends _react.Component {
64
64
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
65
65
  className: "row-expand-link-item",
66
66
  children: value
67
- }, "link-".concat(displayColumnType, "-").concat(index));
67
+ }, `link-${displayColumnType}-${index}`);
68
68
  })
69
69
  });
70
70
  }
@@ -81,7 +81,7 @@ class RowExpandLinkFormatter extends _react.Component {
81
81
  value: value,
82
82
  format: format,
83
83
  containerClassName: "row-expand-link-item"
84
- }, "link-".concat(displayColumnType, "-").concat(index));
84
+ }, `link-${displayColumnType}-${index}`);
85
85
  })
86
86
  });
87
87
  }
@@ -94,7 +94,7 @@ class RowExpandLinkFormatter extends _react.Component {
94
94
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_CTimeFormatter.default, {
95
95
  value: value,
96
96
  containerClassName: "row-expand-link-item"
97
- }, "link-".concat(displayColumnType, "-").concat(index));
97
+ }, `link-${displayColumnType}-${index}`);
98
98
  })
99
99
  });
100
100
  }
@@ -107,7 +107,7 @@ class RowExpandLinkFormatter extends _react.Component {
107
107
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_MTimeFormatter.default, {
108
108
  value: value,
109
109
  containerClassName: "row-expand-link-item"
110
- }, "link-".concat(displayColumnType, "-").concat(index));
110
+ }, `link-${displayColumnType}-${index}`);
111
111
  })
112
112
  });
113
113
  }
@@ -123,7 +123,7 @@ class RowExpandLinkFormatter extends _react.Component {
123
123
  collaborators: collaborators,
124
124
  context: props.context,
125
125
  renderEmpty: props.renderEmpty
126
- }, "link-".concat(displayColumnType, "-").concat(index));
126
+ }, `link-${displayColumnType}-${index}`);
127
127
  })
128
128
  });
129
129
  }
@@ -146,7 +146,7 @@ class RowExpandLinkFormatter extends _react.Component {
146
146
  children: (0, _valueDisplayUtils.getCellDisplayValue)({
147
147
  [displayColumn.key]: value
148
148
  }, displayColumn, collaborators)
149
- }, "link-".concat(displayColumnType, "-").concat(index));
149
+ }, `link-${displayColumnType}-${index}`);
150
150
  })
151
151
  });
152
152
  }
@@ -27,10 +27,10 @@ class RateExpendRateFormatter extends _react.default.Component {
27
27
  let style = {
28
28
  color: value >= i + 1 ? rate_style_color : '#e5e5e5'
29
29
  };
30
- rateList.push( /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
31
- className: "dtable-font ".concat(rate_style_type),
30
+ rateList.push(/*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
31
+ className: `dtable-font ${rate_style_type}`,
32
32
  style: style
33
- }, "dtable-ui-component-rate-".concat(i)));
33
+ }, `dtable-ui-component-rate-${i}`));
34
34
  }
35
35
  return rateList;
36
36
  };
@@ -20,7 +20,7 @@ class UrlFormatter extends _react.default.Component {
20
20
  value
21
21
  } = this.props;
22
22
  const url = (0, _editorUtils.getTrimmedString)(value);
23
- const validUrl = (0, _utils.isValidUrl)(url) ? url : "http://".concat(url);
23
+ const validUrl = (0, _utils.isValidUrl)(url) ? url : `http://${url}`;
24
24
  try {
25
25
  let a = document.createElement('a');
26
26
  document.body.appendChild(a);
@@ -66,7 +66,7 @@ class Body extends _react.default.Component {
66
66
  }
67
67
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_RowExpandFormatter.default, {
68
68
  ...props,
69
- className: (0, _classnames.default)('dtable-ui-mobile-row-expand-formatter', "mobile-dtable-row-expand-".concat(column.type, "-formatter"), className),
69
+ className: (0, _classnames.default)('dtable-ui-mobile-row-expand-formatter', `mobile-dtable-row-expand-${column.type}-formatter`, className),
70
70
  column: column,
71
71
  row: row,
72
72
  component: formatter,
@@ -148,7 +148,7 @@ class SelectOptionGroup extends _react.Component {
148
148
  supportMultipleSelect: this.props.supportMultipleSelect,
149
149
  disableHover: this.state.disableHover,
150
150
  children: opt.label
151
- }, "".concat(key, "-").concat(i));
151
+ }, `${key}-${i}`);
152
152
  });
153
153
  };
154
154
  this.state = {
@@ -36,7 +36,7 @@ function SelectedDepartments(_ref) {
36
36
  "aria-label": name,
37
37
  children: name
38
38
  })
39
- }, "department-".concat(index));
39
+ }, `department-${index}`);
40
40
  }
41
41
  const department = idDepartmentMap[content];
42
42
  if (department) {
@@ -65,7 +65,7 @@ function SelectedDepartments(_ref) {
65
65
  })
66
66
  })
67
67
  })]
68
- }, "department-".concat(index));
68
+ }, `department-${index}`);
69
69
  }
70
70
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
71
71
  className: "department empty-department mr-1",
@@ -87,7 +87,7 @@ function SelectedDepartments(_ref) {
87
87
  })
88
88
  })
89
89
  })]
90
- }, "department-".concat(index));
90
+ }, `department-${index}`);
91
91
  }) : null;
92
92
  return dom;
93
93
  }
@@ -31,8 +31,8 @@ class SimpleLongTextFormatter extends _react.default.Component {
31
31
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
32
32
  className: "long-text-check-list",
33
33
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
34
- className: "dtable-font dtable-icon-check-square-solid ".concat(checkList.completed === checkList.total ? 'long-text-check-list-completed' : '')
35
- }), "".concat(checkList.completed, "/").concat(checkList.total)]
34
+ className: `dtable-font dtable-icon-check-square-solid ${checkList.completed === checkList.total ? 'long-text-check-list-completed' : ''}`
35
+ }), `${checkList.completed}/${checkList.total}`]
36
36
  });
37
37
  };
38
38
  this.renderImages = value => {
package/lib/TabBar/Tab.js CHANGED
@@ -24,21 +24,21 @@ class Tab extends React.PureComponent {
24
24
  } = this.props;
25
25
  const iconRes = selected ? selectedIcon : icon;
26
26
  const iconDom = /*#__PURE__*/React.isValidElement(iconRes) ? iconRes : /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
27
- className: "".concat(prefixCls, "-image"),
27
+ className: `${prefixCls}-image`,
28
28
  src: iconRes ? iconRes.uri : iconRes,
29
29
  alt: title
30
30
  });
31
31
  if (badge) {
32
32
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Badge.default, {
33
33
  text: badge,
34
- className: "".concat(prefixCls, "-badge tab-badge"),
34
+ className: `${prefixCls}-badge tab-badge`,
35
35
  children: [' ', iconDom, ' ']
36
36
  });
37
37
  }
38
38
  if (dot) {
39
39
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Badge.default, {
40
40
  dot: true,
41
- className: "".concat(prefixCls, "-badge tab-dot"),
41
+ className: `${prefixCls}-badge tab-dot`,
42
42
  children: iconDom
43
43
  });
44
44
  }
@@ -63,15 +63,15 @@ class Tab extends React.PureComponent {
63
63
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
64
64
  ...this.props.dataAttrs,
65
65
  onClick: this.onClick,
66
- className: "".concat(prefixCls),
66
+ className: `${prefixCls}`,
67
67
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
68
- className: "".concat(prefixCls, "-icon"),
68
+ className: `${prefixCls}-icon`,
69
69
  style: {
70
70
  color: iconColor
71
71
  },
72
72
  children: this.renderIcon()
73
73
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
74
- className: "".concat(prefixCls, "-title"),
74
+ className: `${prefixCls}-title`,
75
75
  style: {
76
76
  color: selected ? tintColor : unselectedTintColor
77
77
  },
@@ -56,7 +56,7 @@ class AntTabBar extends React.Component {
56
56
  const tabsData = this.getTabs();
57
57
  const content = Array.isArray(tabsData) ? tabsData.map((cProps, index) => {
58
58
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tab.default, {
59
- prefixCls: "".concat(this.props.prefixCls, "-tab"),
59
+ prefixCls: `${this.props.prefixCls}-tab`,
60
60
  badge: cProps.badge,
61
61
  dot: cProps.dot,
62
62
  selected: cProps.selected,
@@ -69,9 +69,9 @@ class AntTabBar extends React.Component {
69
69
  onClick: () => cProps.onPress && cProps.onPress()
70
70
  }, index);
71
71
  }) : null;
72
- let cls = "".concat(prefixCls, "-bar");
72
+ let cls = `${prefixCls}-bar`;
73
73
  if (hidden) {
74
- cls += " ".concat(prefixCls, "-bar-hidden-").concat(tabBarPosition);
74
+ cls += ` ${prefixCls}-bar-hidden-${tabBarPosition}`;
75
75
  }
76
76
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
77
77
  className: cls,