dtable-ui-component 6.0.54 → 6.0.55-beta.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 (153) 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.css +4 -2
  27. package/lib/DTableFiltersPopover/widgets/filter-list/index.js +1 -1
  28. package/lib/DTableFiltersPopover/widgets/rate-item.js +2 -2
  29. package/lib/DTableGroupSelect/select-option-group.js +1 -1
  30. package/lib/{SvgIcon → DTableIcon}/index.css +2 -2
  31. package/lib/DTableIcon/index.js +44 -0
  32. package/lib/DTableIcon/svg-icon.js +56 -0
  33. package/lib/DTableRadioGroup/index.js +3 -3
  34. package/lib/DTableSearchInput/index.js +1 -1
  35. package/lib/DTableSelect/dtable-select-label.js +1 -1
  36. package/lib/DTableSelect/utils.js +3 -0
  37. package/lib/DTableSwitch/index.css +2 -1
  38. package/lib/DateEditor/pc-editor.js +1 -1
  39. package/lib/DatePicker/utils.js +4 -4
  40. package/lib/DepartmentMultipleSelectEditor/index.js +3 -3
  41. package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +2 -2
  42. package/lib/DepartmentSingleSelectEditor/pc-editor/department-single-select.js +2 -2
  43. package/lib/DigitalSignEditor/service.js +1 -1
  44. package/lib/DigitalSignEditor/signature-board/index.js +2 -2
  45. package/lib/DigitalSignFormatter/utils.js +1 -1
  46. package/lib/FieldDisplaySetting/field-item.js +9 -4
  47. package/lib/FieldDisplaySetting/index.js +6 -6
  48. package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +2 -2
  49. package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/index.js +3 -3
  50. package/lib/FileEditor/pc-editor/addition-previewer/index.js +1 -1
  51. package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.js +6 -6
  52. package/lib/FileFormatter/index.js +1 -1
  53. package/lib/FileItemFormatter/index.js +1 -1
  54. package/lib/FileUploader/index.js +1 -1
  55. package/lib/FormulaFormatter/index.js +4 -4
  56. package/lib/GeolocationEditor/index.js +3 -3
  57. package/lib/GeolocationEditor/map-editor-utils.js +2 -2
  58. package/lib/GeolocationEditor/pc-editor/country-editor.js +2 -2
  59. package/lib/GeolocationEditor/pc-editor/location-editor.js +2 -2
  60. package/lib/GeolocationEditor/pc-editor/map-selection-editor/index.js +20 -3
  61. package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +20 -3
  62. package/lib/GeolocationEditor/pc-editor/province-city-editor.js +1 -1
  63. package/lib/GeolocationEditor/pc-editor/province-editor.js +3 -3
  64. package/lib/GeolocationEditor/pc-editor/selector-list.js +1 -1
  65. package/lib/HtmlLongTextFormatter/index.js +1 -1
  66. package/lib/Icon/index.js +2 -2
  67. package/lib/Icon/load-sprite.js +13 -2
  68. package/lib/IconButton/index.js +1 -1
  69. package/lib/ImageEditor/images-previewer/image-preview/index.js +1 -1
  70. package/lib/ImageEditor/pc-editor/addition-previewer/index.js +2 -2
  71. package/lib/ImageEditor/pc-editor/addition-previewer/local-image-addition/index.js +5 -5
  72. package/lib/ImageEditor/pc-editor/images-previewer/index.js +1 -1
  73. package/lib/ImageFormatter/index.js +1 -1
  74. package/lib/ImageThumbnail/index.js +2 -2
  75. package/lib/InputItem/custom-input.js +9 -9
  76. package/lib/InputItem/custom-keyboard.js +5 -5
  77. package/lib/InputItem/index.js +21 -21
  78. package/lib/List/index.js +3 -3
  79. package/lib/List/list-item.js +23 -23
  80. package/lib/MBEditorHeader/index.js +1 -1
  81. package/lib/MobileFullScreenPage/body/index.js +1 -1
  82. package/lib/MobileFullScreenPage/header/index.js +4 -4
  83. package/lib/MobileFullScreenPage/index.js +1 -1
  84. package/lib/Modal/alert.js +3 -3
  85. package/lib/Modal/modal.js +8 -8
  86. package/lib/Modal/operation.js +1 -1
  87. package/lib/Modal/prompt.js +11 -11
  88. package/lib/MultipleSelectFormatter/index.js +1 -1
  89. package/lib/PhoneNumberLink/index.js +29 -0
  90. package/lib/Popover/index.js +1 -1
  91. package/lib/Popover/item.js +7 -7
  92. package/lib/Progress/index.js +6 -6
  93. package/lib/Radio/Radio.js +1 -1
  94. package/lib/Radio/RadioItem.js +2 -2
  95. package/lib/RateFormatter/index.js +3 -3
  96. package/lib/RoleStatusEditor/index.js +1 -1
  97. package/lib/RowExpandDialog/body/index.js +1 -1
  98. package/lib/RowExpandDialog/column-content/index.css +4 -2
  99. package/lib/RowExpandDialog/column-content/index.js +7 -4
  100. package/lib/RowExpandDialog/header/index.js +1 -1
  101. package/lib/RowExpandDialog/index.js +3 -3
  102. package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +1 -1
  103. package/lib/RowExpandEditor/digital-sign-editor/pc-editor/index.js +1 -1
  104. package/lib/RowExpandEditor/email-editor/mb-editor/index.js +1 -1
  105. package/lib/RowExpandEditor/email-editor/pc-editor/index.js +1 -1
  106. package/lib/RowExpandEditor/image-editor/mb-editor/index.js +1 -1
  107. package/lib/RowExpandEditor/image-editor/pc-editor/index.js +1 -1
  108. package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +1 -1
  109. package/lib/RowExpandEditor/multiple-select-editor/pc-editor/index.js +5 -5
  110. package/lib/RowExpandEditor/rate-editor/mb-editor.js +1 -1
  111. package/lib/RowExpandEditor/rate-editor/pc-editor.js +2 -2
  112. package/lib/RowExpandEditor/single-select-editor/pc-editor/index.js +3 -3
  113. package/lib/RowExpandEditor/url-editor/mb-editor/index.js +1 -1
  114. package/lib/RowExpandEditor/url-editor/pc-editor/index.js +1 -1
  115. package/lib/RowExpandFormatter/constants.js +2 -2
  116. package/lib/RowExpandFormatter/email-formatter/index.css +1 -29
  117. package/lib/RowExpandFormatter/email-formatter/index.js +4 -4
  118. package/lib/RowExpandFormatter/file-formatter/row-expand-file-item-formatter.js +2 -2
  119. package/lib/RowExpandFormatter/formula-formatter/index.css +2 -0
  120. package/lib/RowExpandFormatter/formula-formatter/index.js +22 -19
  121. package/lib/RowExpandFormatter/image-formatter/row-expand-image-item-formatter.js +2 -2
  122. package/lib/RowExpandFormatter/index.css +2 -0
  123. package/lib/RowExpandFormatter/index.js +2 -1
  124. package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +1 -1
  125. package/lib/RowExpandFormatter/link-formatter/index.js +6 -6
  126. package/lib/RowExpandFormatter/rate-formatter/index.js +3 -3
  127. package/lib/RowExpandFormatter/text/index.css +2 -0
  128. package/lib/RowExpandFormatter/text/index.js +49 -0
  129. package/lib/RowExpandFormatter/url-formatter/index.css +1 -0
  130. package/lib/RowExpandFormatter/url-formatter/index.js +4 -4
  131. package/lib/RowExpandView/body/index.css +4 -0
  132. package/lib/RowExpandView/body/index.js +1 -1
  133. package/lib/SelectOptionGroup/index.css +5 -2
  134. package/lib/SelectOptionGroup/index.js +1 -1
  135. package/lib/SelectedDepartments/index.js +3 -3
  136. package/lib/SimpleLongTextFormatter/index.js +2 -2
  137. package/lib/TabBar/Tab.js +6 -6
  138. package/lib/TabBar/index.js +3 -3
  139. package/lib/TextareaItem/index.js +19 -19
  140. package/lib/Toast/index.js +5 -5
  141. package/lib/assets/icons/telephone.svg +14 -0
  142. package/lib/css/row-expand.css +27 -0
  143. package/lib/index.js +21 -7
  144. package/lib/select-editor/pc-editor/index.js +2 -2
  145. package/lib/toaster/alert.js +1 -1
  146. package/lib/toaster/toast.js +1 -1
  147. package/lib/toaster/toastManager.js +1 -1
  148. package/lib/toaster/toaster.js +1 -1
  149. package/lib/utils/class.js +3 -3
  150. package/lib/utils/object-utils.js +1 -1
  151. package/lib/utils/url.js +4 -4
  152. package/package.json +14 -30
  153. package/lib/SvgIcon/index.js +0 -38
@@ -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
  };
@@ -0,0 +1,2 @@
1
+ @import url('../../css/cell-formatter.css');
2
+ @import url('../../css/row-expand.css');
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var _classnames = _interopRequireDefault(require("classnames"));
10
+ var _dtableUtils = require("dtable-utils");
11
+ var _PhoneNumberLink = _interopRequireDefault(require("../../PhoneNumberLink"));
12
+ var _editorUtils = require("../../utils/editor-utils");
13
+ require("./index.css");
14
+ var _jsxRuntime = require("react/jsx-runtime");
15
+ class TextFormatter extends _react.default.Component {
16
+ constructor() {
17
+ super(...arguments);
18
+ this.getFormattedValue = val => {
19
+ if (typeof val === 'object') {
20
+ return null;
21
+ }
22
+ if (Object.prototype.toString.call(val) === '[object Boolean]') {
23
+ return val + '';
24
+ }
25
+ return val;
26
+ };
27
+ }
28
+ render() {
29
+ const {
30
+ containerClassName,
31
+ value,
32
+ column
33
+ } = this.props;
34
+ const classname = (0, _classnames.default)('dtable-ui cell-formatter-container row-expand-jump-link-container text-formatter', containerClassName);
35
+ const formattedValue = this.getFormattedValue(value);
36
+ const isDisplayAsAsPhoneNumber = column ? (0, _dtableUtils.checkIsDisplayAsPhoneNumberColumn)(column) : false;
37
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
38
+ className: classname,
39
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
40
+ className: "text-formatter-value row-expand-jump-link-value text-truncate",
41
+ children: formattedValue
42
+ }), isDisplayAsAsPhoneNumber && !!(0, _editorUtils.getTrimmedString)(value) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_PhoneNumberLink.default, {
43
+ phoneNumber: value,
44
+ className: "row-expand-jump-link-btn"
45
+ })]
46
+ });
47
+ }
48
+ }
49
+ var _default = exports.default = TextFormatter;
@@ -1 +1,2 @@
1
1
  @import url('../../css/cell-formatter.css');
2
+ @import url('../../css/row-expand.css');
@@ -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);
@@ -39,14 +39,14 @@ class UrlFormatter extends _react.default.Component {
39
39
  containerClassName,
40
40
  value
41
41
  } = this.props;
42
- let classname = (0, _classnames.default)('dtable-ui cell-formatter-container url-formatter', containerClassName);
42
+ const classname = (0, _classnames.default)('dtable-ui cell-formatter-container url-formatter row-expand-jump-link-container', containerClassName);
43
43
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
44
44
  className: classname,
45
45
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
46
- className: "url-formatter-value text-truncate",
46
+ className: "url-formatter-value row-expand-jump-link-value text-truncate",
47
47
  children: value
48
48
  }), (0, _editorUtils.getTrimmedString)(value) && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
49
- className: "dtable-font dtable-icon-url row-expand-jump-link",
49
+ className: "dtable-font dtable-icon-url row-expand-jump-link-btn",
50
50
  onClick: this.onOpenUrlLink
51
51
  })]
52
52
  });
@@ -151,6 +151,10 @@
151
151
  right: 0;
152
152
  }
153
153
 
154
+ .dtable-ui-row-expand-formatter .dtable-ui .row-expand-jump-link .jump-link-icon {
155
+ color: #999;
156
+ }
157
+
154
158
  .dtable-ui-mobile-row-expand-body .dtable-ui-row-expand-formatter .dtable-ui.url-formatter .url-formatter-value,
155
159
  .dtable-ui-mobile-row-expand-body .dtable-ui-row-expand-formatter .dtable-ui.email-formatter .email-formatter-value {
156
160
  width: calc(100% - 40px);
@@ -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,
@@ -57,15 +57,18 @@
57
57
  }
58
58
 
59
59
  .option:hover .header-icon .dtable-font,
60
+ .option:hover .header-icon .multicolor-icon,
60
61
  .option.option-active .select-option-name {
61
62
  color: #fff;
62
63
  }
63
64
 
64
- .option.option-active .header-icon .dtable-font {
65
+ .option.option-active .header-icon .dtable-font,
66
+ .option.option-active .header-icon .multicolor-icon {
65
67
  color: #fff;
66
68
  }
67
69
 
68
- .option:not(.option-active):hover .header-icon .dtable-font {
70
+ .option:not(.option-active):hover .header-icon .dtable-font,
71
+ .option:not(.option-active):hover .header-icon .multicolor-icon {
69
72
  color: #aaa;
70
73
  }
71
74
 
@@ -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,
@@ -35,7 +35,7 @@ class TextareaItem extends React.Component {
35
35
  this.reAlignHeight = () => {
36
36
  const textareaDom = this.textareaRef;
37
37
  textareaDom.style.height = ''; // 字数减少时能自动减小高度
38
- textareaDom.style.height = "".concat(textareaDom.scrollHeight, "px");
38
+ textareaDom.style.height = `${textareaDom.scrollHeight}px`;
39
39
  };
40
40
  this.onChange = e => {
41
41
  const value = e.target.value;
@@ -158,20 +158,20 @@ class TextareaItem extends React.Component {
158
158
  focus
159
159
  } = this.state;
160
160
  const hasCount = count > 0 && this.props.rows > 1;
161
- const wrapCls = (0, _classnames.default)(className, "".concat(prefixListCls, "-item"), "".concat(prefixCls, "-item"), {
162
- ["".concat(prefixCls, "-disabled")]: disabled,
163
- ["".concat(prefixCls, "-item-single-line")]: this.props.rows === 1 && !autoHeight,
164
- ["".concat(prefixCls, "-error")]: error,
165
- ["".concat(prefixCls, "-focus")]: focus,
166
- ["".concat(prefixCls, "-has-count")]: hasCount
161
+ const wrapCls = (0, _classnames.default)(className, `${prefixListCls}-item`, `${prefixCls}-item`, {
162
+ [`${prefixCls}-disabled`]: disabled,
163
+ [`${prefixCls}-item-single-line`]: this.props.rows === 1 && !autoHeight,
164
+ [`${prefixCls}-error`]: error,
165
+ [`${prefixCls}-focus`]: focus,
166
+ [`${prefixCls}-has-count`]: hasCount
167
167
  });
168
- const labelCls = (0, _classnames.default)("".concat(prefixCls, "-label"), {
169
- ["".concat(prefixCls, "-label-2")]: labelNumber === 2,
170
- ["".concat(prefixCls, "-label-3")]: labelNumber === 3,
171
- ["".concat(prefixCls, "-label-4")]: labelNumber === 4,
172
- ["".concat(prefixCls, "-label-5")]: labelNumber === 5,
173
- ["".concat(prefixCls, "-label-6")]: labelNumber === 6,
174
- ["".concat(prefixCls, "-label-7")]: labelNumber === 7
168
+ const labelCls = (0, _classnames.default)(`${prefixCls}-label`, {
169
+ [`${prefixCls}-label-2`]: labelNumber === 2,
170
+ [`${prefixCls}-label-3`]: labelNumber === 3,
171
+ [`${prefixCls}-label-4`]: labelNumber === 4,
172
+ [`${prefixCls}-label-5`]: labelNumber === 5,
173
+ [`${prefixCls}-label-6`]: labelNumber === 6,
174
+ [`${prefixCls}-label-7`]: labelNumber === 7
175
175
  });
176
176
  const characterLength = countSymbols(value);
177
177
  const lengthCtrlProps = {};
@@ -191,7 +191,7 @@ class TextareaItem extends React.Component {
191
191
  className: labelCls,
192
192
  children: title
193
193
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
194
- className: "".concat(prefixCls, "-control"),
194
+ className: `${prefixCls}-control`,
195
195
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("textarea", {
196
196
  ref: el => this.textareaRef = el,
197
197
  ...lengthCtrlProps,
@@ -204,16 +204,16 @@ class TextareaItem extends React.Component {
204
204
  style: style
205
205
  })
206
206
  }), clear && editable && value && characterLength > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcFeedback.default, {
207
- activeClassName: "".concat(prefixCls, "-clear-active"),
207
+ activeClassName: `${prefixCls}-clear-active`,
208
208
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
209
- className: "".concat(prefixCls, "-clear"),
209
+ className: `${prefixCls}-clear`,
210
210
  onClick: this.clearInput
211
211
  })
212
212
  }), error && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
213
- className: "".concat(prefixCls, "-error-extra"),
213
+ className: `${prefixCls}-error-extra`,
214
214
  onClick: this.onErrorClick
215
215
  }), hasCount && /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
216
- className: "".concat(prefixCls, "-count"),
216
+ className: `${prefixCls}-count`,
217
217
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
218
218
  children: value ? characterLength : 0
219
219
  }), "/", count]
@@ -27,8 +27,8 @@ function getMessageInstance(mask, callback) {
27
27
  // clear rmc-notification default style
28
28
  transitionName: 'am-fade',
29
29
  className: (0, _classnames.default)({
30
- ["".concat(prefixCls, "-mask")]: mask,
31
- ["".concat(prefixCls, "-nomask")]: !mask
30
+ [`${prefixCls}-mask`]: mask,
31
+ [`${prefixCls}-nomask`]: !mask
32
32
  })
33
33
  }, notification => callback && callback(notification));
34
34
  }
@@ -63,18 +63,18 @@ function notice(content, type) {
63
63
  duration,
64
64
  style: {},
65
65
  content: iconType ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
66
- className: "".concat(prefixCls, "-text ").concat(prefixCls, "-text-icon"),
66
+ className: `${prefixCls}-text ${prefixCls}-text-icon`,
67
67
  role: "alert",
68
68
  "aria-live": "assertive",
69
69
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
70
70
  type: iconType,
71
71
  size: "lg"
72
72
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
73
- className: "".concat(prefixCls, "-text-info"),
73
+ className: `${prefixCls}-text-info`,
74
74
  children: content
75
75
  })]
76
76
  }) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
77
- className: "".concat(prefixCls, "-text"),
77
+ className: `${prefixCls}-text`,
78
78
  role: "alert",
79
79
  "aria-live": "assertive",
80
80
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 21.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 32 32" style="enable-background:new 0 0 32 32;" xml:space="preserve">
5
+ <style type="text/css">
6
+ .st0{fill:#999999;}
7
+ </style>
8
+ <title>telephone</title>
9
+ <g id="telephone">
10
+ <path id="路径" class="st0" d="M24.2,31C11.4,31,1.1,20.7,1.1,7.9C1.1,4.1,4.2,1,7.9,1c0.7,0,1.7,0.1,2.2,0.4
11
+ c0.4,0.2,0.9,0.6,1,1.1l2.1,9c0.1,0.5,0,1.1-0.3,1.4c-0.2,0.2-0.5,0.3-2.2,1.2c1.5,3.2,4,5.8,7.3,7.3c0.9-1.9,1-1.9,1.2-2.1
12
+ c0.4-0.4,0.8-0.5,1.4-0.4c5.7,1.3,8.7,2,9,2.1c0.5,0.1,0.8,0.5,1,0.9c0.2,0.5,0.4,1.5,0.4,2.2C31,28,27.9,31,24.2,31z"/>
13
+ </g>
14
+ </svg>
@@ -0,0 +1,27 @@
1
+ .dtable-ui-row-expand-formatter .dtable-ui .row-expand-jump-link-value {
2
+ text-decoration: underline;
3
+ width: 95%;
4
+ display: inline-flex;
5
+ }
6
+
7
+ .dtable-ui-row-expand-formatter .dtable-ui .row-expand-jump-link-btn {
8
+ display: inline-flex;
9
+ align-items: center;
10
+ font-size: 14px;
11
+ height: 22px;
12
+ position: absolute;
13
+ top: 8px;
14
+ right: 9px;
15
+ border: 1px solid #eee;
16
+ padding: 0 4px;
17
+ color: #999;
18
+ border-radius: 2px;
19
+ background: #fff;
20
+ cursor: pointer;
21
+ box-shadow: 0 0 1px;
22
+ }
23
+
24
+ .dtable-ui-row-expand-formatter .dtable-ui .row-expand-jump-link:hover {
25
+ background: #eee;
26
+ border: 1px solid #c9c9c9;
27
+ }
package/lib/index.js CHANGED
@@ -100,6 +100,12 @@ Object.defineProperty(exports, "DTableColorPicker", {
100
100
  return _DTableColorPicker.default;
101
101
  }
102
102
  });
103
+ Object.defineProperty(exports, "DTableColumnIcon", {
104
+ enumerable: true,
105
+ get: function () {
106
+ return _DTableColumnIcon.default;
107
+ }
108
+ });
103
109
  Object.defineProperty(exports, "DTableCommonAddTool", {
104
110
  enumerable: true,
105
111
  get: function () {
@@ -142,6 +148,12 @@ Object.defineProperty(exports, "DTableGroupSelect", {
142
148
  return _index.default;
143
149
  }
144
150
  });
151
+ Object.defineProperty(exports, "DTableIcon", {
152
+ enumerable: true,
153
+ get: function () {
154
+ return _DTableIcon.default;
155
+ }
156
+ });
145
157
  Object.defineProperty(exports, "DTableModalHeader", {
146
158
  enumerable: true,
147
159
  get: function () {
@@ -460,6 +472,12 @@ Object.defineProperty(exports, "NumberFormatter", {
460
472
  return _NumberFormatter.default;
461
473
  }
462
474
  });
475
+ Object.defineProperty(exports, "PhoneNumberLink", {
476
+ enumerable: true,
477
+ get: function () {
478
+ return _PhoneNumberLink.default;
479
+ }
480
+ });
463
481
  Object.defineProperty(exports, "Picker", {
464
482
  enumerable: true,
465
483
  get: function () {
@@ -550,12 +568,6 @@ Object.defineProperty(exports, "SingleSelectFormatter", {
550
568
  return _SingleSelectFormatter.default;
551
569
  }
552
570
  });
553
- Object.defineProperty(exports, "SvgIcon", {
554
- enumerable: true,
555
- get: function () {
556
- return _SvgIcon.default;
557
- }
558
- });
559
571
  Object.defineProperty(exports, "TabBar", {
560
572
  enumerable: true,
561
573
  get: function () {
@@ -695,7 +707,8 @@ var _DTableRadioGroup = _interopRequireDefault(require("./DTableRadioGroup"));
695
707
  var _DTableEmptyTip = _interopRequireDefault(require("./DTableEmptyTip"));
696
708
  var _IconButton = _interopRequireDefault(require("./IconButton"));
697
709
  var _UploadProgress = _interopRequireDefault(require("./UploadProgress"));
698
- var _SvgIcon = _interopRequireDefault(require("./SvgIcon"));
710
+ var _DTableIcon = _interopRequireDefault(require("./DTableIcon"));
711
+ var _DTableColumnIcon = _interopRequireDefault(require("./DTableColumnIcon"));
699
712
  var _AsyncUserSelect = _interopRequireDefault(require("./AsyncUserSelect"));
700
713
  var _ActionSheet = _interopRequireDefault(require("./ActionSheet"));
701
714
  var _ActivityIndicator = _interopRequireDefault(require("./ActivityIndicator"));
@@ -713,6 +726,7 @@ var _TabBar = _interopRequireDefault(require("./TabBar"));
713
726
  var _TextareaItem = _interopRequireDefault(require("./TextareaItem"));
714
727
  var _Toast = _interopRequireDefault(require("./Toast"));
715
728
  var _BodyPortal = _interopRequireDefault(require("./BodyPortal"));
729
+ var _PhoneNumberLink = _interopRequireDefault(require("./PhoneNumberLink"));
716
730
  var _MobileModal = _interopRequireDefault(require("./MobileModal"));
717
731
  var _MobileOperationSheet = _interopRequireDefault(require("./MobileOperationSheet"));
718
732
  var _MobileUpload = _interopRequireDefault(require("./MobileUpload"));
@@ -221,7 +221,7 @@ class PCSelectEditor extends _react.default.Component {
221
221
  let maxWidth = isInModal ? 250 : (column === null || column === void 0 ? void 0 : column.width) > 200 ? column.width - 62 : 138;
222
222
  const dom = /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
223
223
  className: (0, _classnames.default)('dtable-ui-editor-container dtable-ui-select-editor-container', className, {
224
- ["".concat(classNamePrefix, "-select-editor-container")]: classNamePrefix
224
+ [`${classNamePrefix}-select-editor-container`]: classNamePrefix
225
225
  }),
226
226
  ref: ref => this.ref = ref,
227
227
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
@@ -292,7 +292,7 @@ class PCSelectEditor extends _react.default.Component {
292
292
  hideArrow: true,
293
293
  fade: false,
294
294
  className: (0, _classnames.default)('dtable-ui dtable-ui-row-expand-select-editor-popover', {
295
- ["".concat(classNamePrefix, "-select-editor-popover")]: classNamePrefix
295
+ [`${classNamePrefix}-select-editor-popover`]: classNamePrefix
296
296
  }),
297
297
  children: dom
298
298
  })
@@ -32,7 +32,7 @@ class Alert extends _react.default.PureComponent {
32
32
  } = this.props;
33
33
  const iconClass = this.getIconClass(intent);
34
34
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
35
- className: "dtable-toast-alert-container ".concat(intent || 'success'),
35
+ className: `dtable-toast-alert-container ${intent || 'success'}`,
36
36
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
37
37
  className: "toast-alert-icon",
38
38
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
@@ -84,7 +84,7 @@ class Toast extends _react.default.PureComponent {
84
84
  onExited: this.props.onRemove,
85
85
  children: state => /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
86
86
  "data-state": state,
87
- className: "dtable-toast-container ".concat(state),
87
+ className: `dtable-toast-container ${state}`,
88
88
  onMouseEnter: this.handleMouseEnter,
89
89
  onMouseLeave: this.handleMouseLeave,
90
90
  style: {
@@ -38,7 +38,7 @@ class ToastManager extends _react.default.PureComponent {
38
38
  };
39
39
  this.createToastInstance = (title, settings) => {
40
40
  const uniqueId = ++ToastManager.idCounter;
41
- const id = hasCustomId(settings) ? "".concat(settings.id, "-").concat(uniqueId) : uniqueId;
41
+ const id = hasCustomId(settings) ? `${settings.id}-${uniqueId}` : uniqueId;
42
42
  let hasCloseButton = settings.hasCloseButton || true;
43
43
  let duration = settings.duration || 2;
44
44
  if (settings.hasCloseButton !== undefined) {
@@ -70,7 +70,7 @@ class Toaster {
70
70
  document.body.appendChild(container);
71
71
  }
72
72
  const root = (0, _client.createRoot)(container);
73
- root.render( /*#__PURE__*/(0, _jsxRuntime.jsx)(_toastManager.default, {
73
+ root.render(/*#__PURE__*/(0, _jsxRuntime.jsx)(_toastManager.default, {
74
74
  bindNotify: this._bindNotify,
75
75
  bindGetToasts: this._bindGetToasts,
76
76
  bindCloseAll: this._bindCloseAll
@@ -11,14 +11,14 @@ function hasClass(node, className) {
11
11
  return node.classList.contains(className);
12
12
  }
13
13
  const originClass = node.className;
14
- return " ".concat(originClass, " ").indexOf(" ".concat(className, " ")) > -1;
14
+ return ` ${originClass} `.indexOf(` ${className} `) > -1;
15
15
  }
16
16
  function addClass(node, className) {
17
17
  if (node.classList) {
18
18
  node.classList.add(className);
19
19
  } else {
20
20
  if (!hasClass(node, className)) {
21
- node.className = "".concat(node.className, " ").concat(className);
21
+ node.className = `${node.className} ${className}`;
22
22
  }
23
23
  }
24
24
  }
@@ -28,7 +28,7 @@ function removeClass(node, className) {
28
28
  } else {
29
29
  if (hasClass(node, className)) {
30
30
  const originClass = node.className;
31
- node.className = " ".concat(originClass, " ").replace(" ".concat(className, " "), '');
31
+ node.className = ` ${originClass} `.replace(` ${className} `, '');
32
32
  }
33
33
  }
34
34
  }
@@ -17,7 +17,7 @@ class ObjectUtils {
17
17
  }
18
18
  static isObjectChanged(source, comparison) {
19
19
  if (!this.iterable(source)) {
20
- throw new Error("source should be a Object or Array , but got ".concat(this.getDataType(source)));
20
+ throw new Error(`source should be a Object or Array , but got ${this.getDataType(source)}`);
21
21
  }
22
22
  if (this.getDataType(source) !== this.getDataType(comparison)) {
23
23
  return true;