dtable-ui-component 6.0.110 → 6.0.111-amk.13

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 (184) hide show
  1. package/lib/ActionSheet/index.js +42 -35
  2. package/lib/ActivityIndicator/index.js +9 -9
  3. package/lib/AsyncUserSelect/index.js +3 -3
  4. package/lib/Badge/index.js +27 -31
  5. package/lib/CheckboxEditor/index.js +15 -14
  6. package/lib/CollaboratorEditor/index.js +16 -15
  7. package/lib/CollaboratorEditor/pc-editor/index.js +1 -1
  8. package/lib/CollapsibleSettingLayout/index.js +1 -1
  9. package/lib/Comment/body/comment.js +1 -1
  10. package/lib/Comment/body/index.js +7 -9
  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 +8 -6
  17. package/lib/DTableColorPicker/index.js +13 -12
  18. package/lib/DTableColorPicker/utils.js +1 -1
  19. package/lib/DTableCommonAddTool/index.js +2 -2
  20. package/lib/DTableFiltersPopover/index.js +1 -1
  21. package/lib/DTableFiltersPopover/utils/index.js +1 -1
  22. package/lib/DTableFiltersPopover/widgets/filter-group.js +2 -2
  23. package/lib/DTableFiltersPopover/widgets/filter-item.js +1 -1
  24. package/lib/DTableFiltersPopover/widgets/filter-list/index.js +1 -1
  25. package/lib/DTableFiltersPopover/widgets/rate-item.js +5 -5
  26. package/lib/DTableGroupSelect/select-option-group.js +1 -1
  27. package/lib/DTableIcon/index.js +4 -4
  28. package/lib/DTableIcon/svg-icon.js +4 -4
  29. package/lib/DTableModalHeader/index.js +6 -8
  30. package/lib/DTableRadioGroup/index.js +3 -3
  31. package/lib/DTableSelect/dtable-select-label.js +1 -1
  32. package/lib/DTableSelect/utils.js +55 -36
  33. package/lib/DateEditor/index.js +13 -10
  34. package/lib/DateEditor/pc-editor.js +1 -1
  35. package/lib/DatePicker/utils.js +4 -4
  36. package/lib/DepartmentMultipleSelectEditor/index.js +3 -3
  37. package/lib/DepartmentSelectFilter/index.js +5 -2
  38. package/lib/DepartmentSingleSelectEditor/index.js +15 -14
  39. package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +2 -2
  40. package/lib/DepartmentSingleSelectEditor/pc-editor/department-single-select.js +6 -6
  41. package/lib/DigitalSignEditor/index.js +15 -14
  42. package/lib/DigitalSignEditor/mb-editor/index.js +4 -4
  43. package/lib/DigitalSignEditor/pc-editor/index.js +7 -6
  44. package/lib/DigitalSignEditor/service.js +1 -1
  45. package/lib/DigitalSignEditor/signature-board/index.js +2 -2
  46. package/lib/DigitalSignFormatter/utils.js +1 -1
  47. package/lib/Drawer/index.js +3 -2
  48. package/lib/FieldDisplaySetting/field-item.js +1 -1
  49. package/lib/FieldDisplaySetting/index.js +11 -9
  50. package/lib/FileEditor/files-previewer/index.js +15 -14
  51. package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +2 -2
  52. package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/index.js +3 -3
  53. package/lib/FileEditor/index.js +15 -14
  54. package/lib/FileEditor/pc-editor/addition-previewer/index.js +1 -1
  55. package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.js +6 -6
  56. package/lib/FileEditor/pc-editor/index.js +3 -3
  57. package/lib/FileFormatter/index.js +5 -3
  58. package/lib/FileItemFormatter/index.js +1 -1
  59. package/lib/FileUploader/index.js +1 -1
  60. package/lib/FormulaFormatter/index.js +15 -9
  61. package/lib/GeolocationEditor/index.js +23 -19
  62. package/lib/GeolocationEditor/map-editor-utils.js +10 -6
  63. package/lib/GeolocationEditor/mb-editor/index.js +27 -23
  64. package/lib/GeolocationEditor/mb-editor/map-editor/index.js +9 -6
  65. package/lib/GeolocationEditor/pc-editor/country-editor.js +2 -2
  66. package/lib/GeolocationEditor/pc-editor/index.js +21 -15
  67. package/lib/GeolocationEditor/pc-editor/location-editor.js +2 -2
  68. package/lib/GeolocationEditor/pc-editor/map-editor/index.js +13 -9
  69. package/lib/GeolocationEditor/pc-editor/map-editor/large-editor/index.js +9 -6
  70. package/lib/GeolocationEditor/pc-editor/map-selection-editor/index.js +24 -7
  71. package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +20 -3
  72. package/lib/GeolocationEditor/pc-editor/province-city-editor.js +1 -1
  73. package/lib/GeolocationEditor/pc-editor/province-editor.js +2 -2
  74. package/lib/GeolocationEditor/pc-editor/selector-list.js +1 -1
  75. package/lib/HtmlLongTextFormatter/index.js +1 -1
  76. package/lib/Icon/index.js +13 -17
  77. package/lib/Icon/load-sprite.js +13 -2
  78. package/lib/IconButton/index.js +11 -14
  79. package/lib/ImageEditor/images-previewer/image-preview/index.js +1 -1
  80. package/lib/ImageEditor/index.js +15 -14
  81. package/lib/ImageEditor/pc-editor/addition-previewer/index.js +2 -2
  82. package/lib/ImageEditor/pc-editor/addition-previewer/local-image-addition/index.js +5 -5
  83. package/lib/ImageEditor/pc-editor/images-previewer/index.js +1 -1
  84. package/lib/ImageFormatter/index.js +1 -1
  85. package/lib/ImagePreviewerLightbox/index.js +20 -17
  86. package/lib/ImageThumbnail/index.js +2 -2
  87. package/lib/InputItem/custom-input.js +9 -9
  88. package/lib/InputItem/custom-keyboard.js +34 -37
  89. package/lib/InputItem/index.js +52 -49
  90. package/lib/InputItem/input.js +9 -13
  91. package/lib/LinkEditor/pc-popover/index.js +3 -2
  92. package/lib/List/index.js +17 -21
  93. package/lib/List/list-item.js +50 -52
  94. package/lib/MBEditorHeader/index.js +1 -1
  95. package/lib/MobileFullScreenPage/body/index.js +1 -1
  96. package/lib/MobileFullScreenPage/header/index.js +4 -4
  97. package/lib/MobileFullScreenPage/index.js +1 -1
  98. package/lib/MobileModal/index.js +7 -10
  99. package/lib/Modal/alert.js +2 -2
  100. package/lib/Modal/modal.js +28 -31
  101. package/lib/Modal/prompt.js +10 -10
  102. package/lib/MultipleSelectEditor/index.js +6 -8
  103. package/lib/MultipleSelectFormatter/index.js +1 -1
  104. package/lib/PhoneNumberLink/index.js +1 -1
  105. package/lib/Picker/AbstractPicker.js +26 -28
  106. package/lib/Popover/index.js +9 -12
  107. package/lib/Popover/item.js +22 -26
  108. package/lib/Progress/index.js +10 -8
  109. package/lib/Radio/Radio.js +13 -15
  110. package/lib/Radio/RadioItem.js +18 -18
  111. package/lib/RateFormatter/index.js +2 -2
  112. package/lib/RoleStatusEditor/index.js +1 -1
  113. package/lib/RowExpand/index.js +7 -6
  114. package/lib/RowExpandDialog/body/index.js +14 -14
  115. package/lib/RowExpandDialog/column-content/index.js +1 -1
  116. package/lib/RowExpandDialog/header/index.js +4 -3
  117. package/lib/RowExpandDialog/index.js +43 -32
  118. package/lib/RowExpandEditor/add-btn/index.js +7 -6
  119. package/lib/RowExpandEditor/checkbox-editor/index.js +7 -6
  120. package/lib/RowExpandEditor/collaborator-editor/index.js +7 -6
  121. package/lib/RowExpandEditor/date-editor/index.js +7 -6
  122. package/lib/RowExpandEditor/department-editor/index.js +7 -6
  123. package/lib/RowExpandEditor/digital-sign-editor/index.js +7 -6
  124. package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +4 -4
  125. package/lib/RowExpandEditor/digital-sign-editor/pc-editor/index.js +4 -4
  126. package/lib/RowExpandEditor/duration-editor/index.js +7 -6
  127. package/lib/RowExpandEditor/email-editor/index.js +7 -6
  128. package/lib/RowExpandEditor/email-editor/mb-editor/index.js +1 -1
  129. package/lib/RowExpandEditor/email-editor/pc-editor/index.js +1 -1
  130. package/lib/RowExpandEditor/file-editor/index.js +7 -6
  131. package/lib/RowExpandEditor/geolocation-editor/index.js +7 -6
  132. package/lib/RowExpandEditor/image-editor/index.js +7 -6
  133. package/lib/RowExpandEditor/image-editor/mb-editor/index.js +1 -1
  134. package/lib/RowExpandEditor/image-editor/pc-editor/index.js +1 -1
  135. package/lib/RowExpandEditor/index.js +11 -10
  136. package/lib/RowExpandEditor/long-text-editor/index.js +7 -6
  137. package/lib/RowExpandEditor/multiple-select-editor/index.js +7 -6
  138. package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +1 -1
  139. package/lib/RowExpandEditor/multiple-select-editor/pc-editor/index.js +5 -5
  140. package/lib/RowExpandEditor/number-editor/index.js +7 -6
  141. package/lib/RowExpandEditor/rate-editor/index.js +7 -6
  142. package/lib/RowExpandEditor/rate-editor/mb-editor.js +1 -1
  143. package/lib/RowExpandEditor/rate-editor/pc-editor.js +5 -5
  144. package/lib/RowExpandEditor/single-select-editor/index.js +7 -6
  145. package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +4 -4
  146. package/lib/RowExpandEditor/single-select-editor/pc-editor/index.js +3 -3
  147. package/lib/RowExpandEditor/text-editor/index.js +7 -6
  148. package/lib/RowExpandEditor/url-editor/index.js +7 -6
  149. package/lib/RowExpandEditor/url-editor/mb-editor/index.js +2 -2
  150. package/lib/RowExpandEditor/url-editor/pc-editor/index.js +2 -2
  151. package/lib/RowExpandFormatter/department-formatter/index.js +6 -3
  152. package/lib/RowExpandFormatter/email-formatter/index.js +1 -1
  153. package/lib/RowExpandFormatter/file-formatter/row-expand-file-item-formatter.js +2 -2
  154. package/lib/RowExpandFormatter/formula-formatter/index.js +17 -11
  155. package/lib/RowExpandFormatter/image-formatter/row-expand-image-item-formatter.js +2 -2
  156. package/lib/RowExpandFormatter/index.js +11 -7
  157. package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +1 -1
  158. package/lib/RowExpandFormatter/link-formatter/index.js +6 -6
  159. package/lib/RowExpandFormatter/rate-formatter/index.js +2 -2
  160. package/lib/RowExpandFormatter/url-formatter/index.js +2 -2
  161. package/lib/RowExpandView/body/index.js +13 -15
  162. package/lib/RowExpandView/index.js +39 -28
  163. package/lib/SelectOptionGroup/index.js +1 -1
  164. package/lib/SelectedDepartments/index.js +3 -3
  165. package/lib/SimpleLongTextFormatter/index.js +2 -2
  166. package/lib/SingleSelectEditor/index.js +6 -8
  167. package/lib/TabBar/Tab.js +10 -10
  168. package/lib/TabBar/index.js +7 -6
  169. package/lib/Tabs/index.js +10 -9
  170. package/lib/TextareaItem/index.js +43 -45
  171. package/lib/Toast/index.js +5 -5
  172. package/lib/formatterConfig/index.js +3 -3
  173. package/lib/select-editor/index.js +15 -14
  174. package/lib/select-editor/pc-editor/index.js +5 -5
  175. package/lib/toaster/alert.js +1 -1
  176. package/lib/toaster/toast.js +1 -1
  177. package/lib/toaster/toastManager.js +12 -14
  178. package/lib/toaster/toaster.js +12 -9
  179. package/lib/utils/class.js +3 -3
  180. package/lib/utils/departments.js +3 -4
  181. package/lib/utils/getLocale.js +11 -5
  182. package/lib/utils/object-utils.js +5 -4
  183. package/lib/utils/url.js +4 -4
  184. package/package.json +3 -3
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = void 0;
8
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
9
8
  var _react = _interopRequireDefault(require("react"));
10
9
  var _reactstrap = require("reactstrap");
11
10
  var _dtableUtils = require("dtable-utils");
@@ -157,7 +156,9 @@ class LargeMapEditorDialog extends _react.default.Component {
157
156
  };
158
157
  this.geolocationCallback = (error, point) => {
159
158
  if (!error) {
160
- this.setValue((0, _objectSpread2.default)({}, point));
159
+ this.setValue({
160
+ ...point
161
+ });
161
162
  this.addMarkerByPosition(point.lng, point.lat);
162
163
  if (this.mapType === _mapEditorUtils.MAP_TYPES.G_MAP) {
163
164
  this.map.setCenter({
@@ -268,9 +269,10 @@ class LargeMapEditorDialog extends _react.default.Component {
268
269
  });
269
270
  };
270
271
  this.onChangeLatitude = event => {
271
- const newValue = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, this.state.value), {}, {
272
+ const newValue = {
273
+ ...this.state.value,
272
274
  lat: event.target.value
273
- });
275
+ };
274
276
  this.setState({
275
277
  value: newValue
276
278
  }, () => {
@@ -280,9 +282,10 @@ class LargeMapEditorDialog extends _react.default.Component {
280
282
  });
281
283
  };
282
284
  this.onChangeLongitude = event => {
283
- const newValue = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, this.state.value), {}, {
285
+ const newValue = {
286
+ ...this.state.value,
284
287
  lng: event.target.value
285
- });
288
+ };
286
289
  this.setState({
287
290
  value: newValue
288
291
  }, () => {
@@ -1,12 +1,11 @@
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
9
  var _react = _interopRequireWildcard(require("react"));
11
10
  var _dtableUtils = require("dtable-utils");
12
11
  var _toaster = _interopRequireDefault(require("../../../toaster"));
@@ -126,7 +125,7 @@ class MapSelectionEditor extends _react.Component {
126
125
  backgroundColor: '#ffffff',
127
126
  boxShadow: '1px 2px 1px rgba(0,0,0,.15)',
128
127
  padding: '3px 10px',
129
- transform: "translate(-50%, ".concat(translateY, ")"),
128
+ transform: `translate(-50%, ${translateY})`,
130
129
  borderRadius: '3px',
131
130
  fontWeight: '500',
132
131
  left: '7px'
@@ -168,9 +167,26 @@ class MapSelectionEditor extends _react.Component {
168
167
  } = value;
169
168
  const tagContent = Array.isArray(tag) && tag.length > 0 ? tag[0] : '';
170
169
  if (title) {
171
- return "\n <div class='dtable-ui-selection-label-content' id='dtable-ui-selection-label-content'>\n <i class='dtable-font dtable-icon-down3'></i>\n <span class='label-title text-truncate' title=".concat(title, ">").concat(title, "</span>\n ").concat(tagContent && "<span class='label-tag'>".concat(tagContent, "</span>"), "\n <span class='dtable-font dtable-icon-x' id='selection-label-close'></span>\n <span class='label-address-tip'>").concat((0, _lang.getLocale)('Address'), "</span>\n <span class='label-address text-truncate' title=").concat(address, ">").concat(address, "</span>\n <div class='label-submit btn btn-primary' id='selection-label-submit'>").concat((0, _lang.getLocale)('Fill_in'), "</div>\n </div>\n ");
170
+ return `
171
+ <div class='dtable-ui-selection-label-content' id='dtable-ui-selection-label-content'>
172
+ <i class='dtable-font dtable-icon-down3'></i>
173
+ <span class='label-title text-truncate' title=${title}>${title}</span>
174
+ ${tagContent && `<span class='label-tag'>${tagContent}</span>`}
175
+ <span class='dtable-font dtable-icon-x' id='selection-label-close'></span>
176
+ <span class='label-address-tip'>${(0, _lang.getLocale)('Address')}</span>
177
+ <span class='label-address text-truncate' title=${address}>${address}</span>
178
+ <div class='label-submit btn btn-primary' id='selection-label-submit'>${(0, _lang.getLocale)('Fill_in')}</div>
179
+ </div>
180
+ `;
172
181
  }
173
- return "\n <div class='dtable-ui-selection-label-content simple' id='dtable-ui-selection-label-content'>\n <i class='dtable-font dtable-icon-down3'></i>\n <span class='dtable-font dtable-icon-x' id='selection-label-close'></span>\n <span class='label-address text-truncate simple' title=".concat(address, ">").concat(address, "</span>\n <div class='label-submit btn btn-primary' id='selection-label-submit'>").concat((0, _lang.getLocale)('Fill_in'), "</div>\n </div>\n ");
182
+ return `
183
+ <div class='dtable-ui-selection-label-content simple' id='dtable-ui-selection-label-content'>
184
+ <i class='dtable-font dtable-icon-down3'></i>
185
+ <span class='dtable-font dtable-icon-x' id='selection-label-close'></span>
186
+ <span class='label-address text-truncate simple' title=${address}>${address}</span>
187
+ <div class='label-submit btn btn-primary' id='selection-label-submit'>${(0, _lang.getLocale)('Fill_in')}</div>
188
+ </div>
189
+ `;
174
190
  };
175
191
  this.getInitValue = () => {
176
192
  const {
@@ -382,9 +398,10 @@ class MapSelectionEditor extends _react.Component {
382
398
  isShowLargeEditor
383
399
  } = this.state;
384
400
  if (isShowLargeEditor) {
385
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_largeEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, this.props), {}, {
401
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_largeEditor.default, {
402
+ ...this.props,
386
403
  toggleFullScreen: this.toggleFullScreen
387
- }));
404
+ });
388
405
  }
389
406
  if (this.mapType === _mapEditorUtils.MAP_TYPES.G_MAP || this.mapType === _mapEditorUtils.MAP_TYPES.M_MAP) {
390
407
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
@@ -113,7 +113,7 @@ class LargeMapSelectionEditorDialog extends _react.default.Component {
113
113
  backgroundColor: '#ffffff',
114
114
  boxShadow: '1px 2px 1px rgba(0,0,0,.15)',
115
115
  padding: '3px 10px',
116
- transform: "translate(-50%, ".concat(translateY, ")"),
116
+ transform: `translate(-50%, ${translateY})`,
117
117
  borderRadius: '3px',
118
118
  fontWeight: '500',
119
119
  left: '7px'
@@ -155,9 +155,26 @@ class LargeMapSelectionEditorDialog extends _react.default.Component {
155
155
  } = value;
156
156
  const tagContent = Array.isArray(tag) && tag.length > 0 ? tag[0] : '';
157
157
  if (title) {
158
- return "\n <div class='dtable-ui-selection-label-content' id='dtable-ui-selection-label-content'>\n <i class='dtable-font dtable-icon-down3'></i>\n <span class='label-title text-truncate' title=".concat(title, ">").concat(title, "</span>\n ").concat(tagContent && "<span class='label-tag'>".concat(tagContent, "</span>"), "\n <span class='dtable-font dtable-icon-x' id='selection-label-close'></span>\n <span class='label-address-tip'>").concat((0, _lang.getLocale)('Address'), "</span>\n <span class='label-address text-truncate' title=").concat(address, ">").concat(address, "</span>\n <div class='label-submit btn btn-primary' id='selection-label-submit'>").concat((0, _lang.getLocale)('Fill_in'), "</div>\n </div>\n ");
158
+ return `
159
+ <div class='dtable-ui-selection-label-content' id='dtable-ui-selection-label-content'>
160
+ <i class='dtable-font dtable-icon-down3'></i>
161
+ <span class='label-title text-truncate' title=${title}>${title}</span>
162
+ ${tagContent && `<span class='label-tag'>${tagContent}</span>`}
163
+ <span class='dtable-font dtable-icon-x' id='selection-label-close'></span>
164
+ <span class='label-address-tip'>${(0, _lang.getLocale)('Address')}</span>
165
+ <span class='label-address text-truncate' title=${address}>${address}</span>
166
+ <div class='label-submit btn btn-primary' id='selection-label-submit'>${(0, _lang.getLocale)('Fill_in')}</div>
167
+ </div>
168
+ `;
159
169
  } else {
160
- return "\n <div class='dtable-ui-selection-label-content simple' id='dtable-ui-selection-label-content'>\n <i class='dtable-font dtable-icon-down3'></i>\n <span class='dtable-font dtable-icon-x' id='selection-label-close'></span>\n <span class='label-address text-truncate simple' title=".concat(address, ">").concat(address, "</span>\n <div class='label-submit btn btn-primary' id='selection-label-submit'>").concat((0, _lang.getLocale)('Fill_in'), "</div>\n </div>\n ");
170
+ return `
171
+ <div class='dtable-ui-selection-label-content simple' id='dtable-ui-selection-label-content'>
172
+ <i class='dtable-font dtable-icon-down3'></i>
173
+ <span class='dtable-font dtable-icon-x' id='selection-label-close'></span>
174
+ <span class='label-address text-truncate simple' title=${address}>${address}</span>
175
+ <div class='label-submit btn btn-primary' id='selection-label-submit'>${(0, _lang.getLocale)('Fill_in')}</div>
176
+ </div>
177
+ `;
161
178
  }
162
179
  };
163
180
  this.getInitValue = () => {
@@ -197,7 +197,7 @@ class ProvinceCityEditor extends _react.Component {
197
197
  className: "dtable-ui-geolocation-editor-item-right",
198
198
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
199
199
  onClick: this.onToggleSelector,
200
- className: "dtable-ui-geolocation-editor-selector text-truncate ".concat(isShowSelector ? 'focus' : ''),
200
+ className: `dtable-ui-geolocation-editor-selector text-truncate ${isShowSelector ? 'focus' : ''}`,
201
201
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
202
202
  className: "selected-option-show",
203
203
  children: location ? location : (0, _lang.getLocale)('Select_province_city')
@@ -130,7 +130,7 @@ class ProvinceEditor extends _react.Component {
130
130
  } = this.state;
131
131
  let provinceList = this.filteredProvince.map((item, index) => {
132
132
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
133
- className: "geolocation-region-editor-province ".concat(highlightIndex === index ? 'geolocation-region-editor-province-highlight' : ''),
133
+ className: `geolocation-region-editor-province ${highlightIndex === index ? 'geolocation-region-editor-province-highlight' : ''}`,
134
134
  title: item.name,
135
135
  "aria-label": item.name,
136
136
  onClick: () => this.onClick(item.name),
@@ -140,7 +140,7 @@ class ProvinceEditor extends _react.Component {
140
140
  className: "province-name",
141
141
  children: item.name
142
142
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
143
- className: "icon ".concat(value === item.name ? 'province-selected-icon dtable-font dtable-icon-check-mark' : '')
143
+ className: `icon ${value === item.name ? 'province-selected-icon dtable-font dtable-icon-check-mark' : ''}`
144
144
  })]
145
145
  }, item.alphabetic + index);
146
146
  });
@@ -25,7 +25,7 @@ class SelectorList extends _react.default.Component {
25
25
  onDoubleClick: () => {
26
26
  doubleClickHandler && doubleClickHandler(item);
27
27
  },
28
- className: "dtable-ui-geolocation-selector-list-item ".concat(type === 'province' ? 'province-item' : '', " ").concat(isSelected ? 'selected-list-item' : ''),
28
+ className: `dtable-ui-geolocation-selector-list-item ${type === 'province' ? 'province-item' : ''} ${isSelected ? 'selected-list-item' : ''}`,
29
29
  children: item.name
30
30
  }, type + '-item-' + index);
31
31
  })
@@ -68,7 +68,7 @@ class HtmlLongTextFormatter extends _react.Component {
68
68
  const className = (0, _classnames.default)('dtable-ui cell-formatter-container long-text-formatter', containerClassName);
69
69
  if (!innerHtml) return null;
70
70
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
71
- className: "".concat(className, " article"),
71
+ className: `${className} article`,
72
72
  dangerouslySetInnerHTML: {
73
73
  __html: innerHtml
74
74
  }
package/lib/Icon/index.js CHANGED
@@ -1,39 +1,35 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
3
  var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.default = void 0;
9
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
10
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
11
9
  var _classnames = _interopRequireDefault(require("classnames"));
12
10
  var React = _interopRequireWildcard(require("react"));
13
11
  var _loadSprite = _interopRequireDefault(require("./load-sprite"));
14
12
  require("./index.css");
15
13
  var _jsxRuntime = require("react/jsx-runtime");
16
- const _excluded = ["type", "className", "size"];
17
14
  class Icon extends React.Component {
18
15
  componentDidMount() {
19
16
  (0, _loadSprite.default)();
20
17
  }
21
18
  render() {
22
- const _this$props = this.props,
23
- {
24
- type,
25
- className,
26
- size
27
- } = _this$props,
28
- restProps = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
29
- const cls = (0, _classnames.default)(className, 'am-icon', "am-icon-".concat(type), "am-icon-".concat(size));
30
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", (0, _objectSpread2.default)((0, _objectSpread2.default)({
31
- className: cls
32
- }, restProps), {}, {
19
+ const {
20
+ type,
21
+ className,
22
+ size,
23
+ ...restProps
24
+ } = this.props;
25
+ const cls = (0, _classnames.default)(className, 'am-icon', `am-icon-${type}`, `am-icon-${size}`);
26
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
27
+ className: cls,
28
+ ...restProps,
33
29
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("use", {
34
- xlinkHref: "#".concat(type)
30
+ xlinkHref: `#${type}`
35
31
  })
36
- }));
32
+ });
37
33
  }
38
34
  }
39
35
  exports.default = Icon;
@@ -7,7 +7,18 @@ exports.default = void 0;
7
7
  /* tslint:disable:max-line-length */
8
8
  // inspried by https://github.com/kisenka/svg-sprite-loader/blob/master/runtime/browser-sprite.js
9
9
  // Much simplified, do make sure run this after document ready
10
- const svgSprite = contents => "\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n id=\"__ANTD_MOBILE_SVG_SPRITE_NODE__\"\n style=\"display:none;overflow:hidden;width:0;height:0\"\n >\n <defs>\n ".concat(contents, "\n </defs>\n </svg>\n");
10
+ const svgSprite = contents => `
11
+ <svg
12
+ xmlns="http://www.w3.org/2000/svg"
13
+ xmlns:xlink="http://www.w3.org/1999/xlink"
14
+ id="__ANTD_MOBILE_SVG_SPRITE_NODE__"
15
+ style="display:none;overflow:hidden;width:0;height:0"
16
+ >
17
+ <defs>
18
+ ${contents}
19
+ </defs>
20
+ </svg>
21
+ `;
11
22
 
12
23
  // both minified by https://github.com/svg/svgo
13
24
  const icons = {
@@ -39,7 +50,7 @@ const icons = {
39
50
  const renderSvgSprite = () => {
40
51
  const symbols = Object.keys(icons).map(iconName => {
41
52
  const svgContent = icons[iconName].split('svg')[1];
42
- return "<symbol id=".concat(iconName).concat(svgContent, "symbol>");
53
+ return `<symbol id=${iconName}${svgContent}symbol>`;
43
54
  }).join('');
44
55
  return svgSprite(symbols);
45
56
  };
@@ -5,29 +5,26 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = void 0;
8
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
9
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
10
8
  var _react = _interopRequireDefault(require("react"));
11
9
  var _classnames = _interopRequireDefault(require("classnames"));
12
10
  var _jsxRuntime = require("react/jsx-runtime");
13
- const _excluded = ["disabled", "className", "icon", "children"];
14
11
  const IconButton = _ref => {
15
12
  let {
16
- disabled,
17
- className,
18
- icon,
19
- children
20
- } = _ref,
21
- otherProperties = (0, _objectWithoutProperties2.default)(_ref, _excluded);
22
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", (0, _objectSpread2.default)((0, _objectSpread2.default)({
13
+ disabled,
14
+ className,
15
+ icon,
16
+ children,
17
+ ...otherProperties
18
+ } = _ref;
19
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
23
20
  className: (0, _classnames.default)('seatable-icon-btn', className, {
24
21
  'disabled': disabled
25
- })
26
- }, otherProperties), {}, {
22
+ }),
23
+ ...otherProperties,
27
24
  children: [icon && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
28
- className: (0, _classnames.default)('seatable-icon dtable-font', "dtable-icon-".concat(icon)),
25
+ className: (0, _classnames.default)('seatable-icon dtable-font', `dtable-icon-${icon}`),
29
26
  "aria-hidden": "true"
30
27
  }), children]
31
- }));
28
+ });
32
29
  };
33
30
  var _default = exports.default = IconButton;
@@ -94,7 +94,7 @@ class ImagePreviewer extends _react.default.Component {
94
94
  const {
95
95
  mediaUrl
96
96
  } = props.config || {};
97
- this.imageLoadingFailedUrl = "".concat(mediaUrl, "img/image-loading-failed.png");
97
+ this.imageLoadingFailedUrl = `${mediaUrl}img/image-loading-failed.png`;
98
98
  this.ref = null;
99
99
  }
100
100
  componentDidMount() {
@@ -6,37 +6,38 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.default = void 0;
9
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
10
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
11
9
  var _react = _interopRequireWildcard(require("react"));
12
10
  var _reactResponsive = _interopRequireDefault(require("react-responsive"));
13
11
  var _pcEditor = _interopRequireDefault(require("./pc-editor"));
14
12
  var _mbEditor = _interopRequireDefault(require("./mb-editor"));
15
13
  require("./index.css");
16
14
  var _jsxRuntime = require("react/jsx-runtime");
17
- const _excluded = ["isMobile"];
18
15
  const ImageEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
19
16
  let {
20
- isMobile
21
- } = _ref,
22
- props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
23
- if (isMobile === false) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
17
+ isMobile,
18
+ ...props
19
+ } = _ref;
20
+ if (isMobile === false) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
21
+ ...props,
24
22
  ref: ref
25
- }));
26
- if (isMobile === true) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
23
+ });
24
+ if (isMobile === true) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
25
+ ...props,
27
26
  ref: ref
28
- }));
27
+ });
29
28
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
30
29
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
31
30
  query: "(min-width: 768px)",
32
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
31
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
32
+ ...props,
33
33
  ref: ref
34
- }))
34
+ })
35
35
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
36
36
  query: "(max-width: 768px)",
37
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
37
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
38
+ ...props,
38
39
  ref: ref
39
- }))
40
+ })
40
41
  })]
41
42
  });
42
43
  });
@@ -42,11 +42,11 @@ class AdditionPreviewer extends _react.default.Component {
42
42
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
43
43
  className: "dtable-ui-image-addition-nav",
44
44
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
45
- className: "dtable-ui-addition-item ".concat(activeTab === 'localPicture' ? 'dtable-ui-addition-item-selected' : ''),
45
+ className: `dtable-ui-addition-item ${activeTab === 'localPicture' ? 'dtable-ui-addition-item-selected' : ''}`,
46
46
  onClick: this.toggle.bind(this, 'localPicture'),
47
47
  children: (0, _lang.getLocale)('Local_Images')
48
48
  }), this.props.saveImageLink && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
49
- className: "dtable-ui-addition-item ".concat(activeTab === 'imageLink' ? 'dtable-ui-addition-item-selected' : ''),
49
+ className: `dtable-ui-addition-item ${activeTab === 'imageLink' ? 'dtable-ui-addition-item-selected' : ''}`,
50
50
  onClick: this.toggle.bind(this, 'imageLink'),
51
51
  children: (0, _lang.getLocale)('Image_Link')
52
52
  })]
@@ -133,7 +133,7 @@ class LocalImageAddition extends _react.default.Component {
133
133
  src: fileThumbnailItem.fileIconUrl,
134
134
  style: {
135
135
  position: 'absolute',
136
- zIndex: "".concat(fileThumbnailItem.percent === 100 ? 3 : 1),
136
+ zIndex: `${fileThumbnailItem.percent === 100 ? 3 : 1}`,
137
137
  maxHeight: '100%'
138
138
  },
139
139
  alt: ""
@@ -162,7 +162,7 @@ class LocalImageAddition extends _react.default.Component {
162
162
  })]
163
163
  })
164
164
  })
165
- }, "dtable-ui-image-wrapper-circle".concat(index));
165
+ }, `dtable-ui-image-wrapper-circle${index}`);
166
166
  });
167
167
  imageArr.push(...thumbnailList);
168
168
  }
@@ -206,11 +206,11 @@ class LocalImageAddition extends _react.default.Component {
206
206
  isImageTipShow
207
207
  } = this.state;
208
208
  let editorContent;
209
- let className = imageArr.length === 0 ? "dtable-ui-image-upload-container ".concat(isImageTipShow ? 'dtable-ui-image-upload-container-active' : '') : 'dtable-ui-image-wrapper';
209
+ let className = imageArr.length === 0 ? `dtable-ui-image-upload-container ${isImageTipShow ? 'dtable-ui-image-upload-container-active' : ''}` : 'dtable-ui-image-wrapper';
210
210
  if (imageArr.length === 0) {
211
211
  editorContent = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
212
212
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
213
- className: "dtable-ui-image-tip-addition ".concat(isImageTipShow ? 'dtable-ui-image-drop-active' : ''),
213
+ className: `dtable-ui-image-tip-addition ${isImageTipShow ? 'dtable-ui-image-drop-active' : ''}`,
214
214
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
215
215
  className: "dtable-ui-dtable-ui-image-add-icon",
216
216
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
@@ -233,7 +233,7 @@ class LocalImageAddition extends _react.default.Component {
233
233
  editorContent = /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
234
234
  className: "dtable-ui-image-add-box",
235
235
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
236
- className: "dtable-ui-image-add-button ".concat(isImageTipShow ? 'dtable-ui-image-wrapper-drop-active' : ''),
236
+ className: `dtable-ui-image-add-button ${isImageTipShow ? 'dtable-ui-image-wrapper-drop-active' : ''}`,
237
237
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
238
238
  "aria-hidden": "true",
239
239
  className: "dtable-font dtable-icon-add-table"
@@ -108,7 +108,7 @@ class ImagesPreviewer extends _react.default.Component {
108
108
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
109
109
  className: "dtable-ui-image-previewer-container",
110
110
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
111
- className: "dtable-ui-image-previewer-wrapper ".concat(value.length === 0 && _constants.isMobile ? 'd-none' : ''),
111
+ className: `dtable-ui-image-previewer-wrapper ${value.length === 0 && _constants.isMobile ? 'd-none' : ''}`,
112
112
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
113
113
  className: "dtable-ui-image-previewer-content",
114
114
  children: value.length > 0 && value.map((imageItemUrl, index) => {
@@ -91,7 +91,7 @@ class ImageFormatter extends _react.default.Component {
91
91
  alt: ""
92
92
  }), value.length !== 1 && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
93
93
  className: "image-item-count",
94
- children: "+".concat(value.length)
94
+ children: `+${value.length}`
95
95
  })]
96
96
  });
97
97
  }
@@ -57,24 +57,27 @@ function ImagePreviewerLightbox(props) {
57
57
  thumbnail: src
58
58
  };
59
59
  });
60
- const imagesLength = imageSrcList.length;
61
- const [currentImageIndex, setCurrentImageIndex] = _react.default.useState(imageIndex || 0);
60
+ console.log('imageSrcList111', imageSrcList);
61
+ const imageItemsLength = imageItems.length;
62
+ const [currentImageIndex, setCurrentImageIndex] = _react.default.useState(imageItemsLength > 0 ? Math.min(imageIndex || 0, imageItemsLength - 1) : 0);
63
+ _react.default.useEffect(() => {
64
+ if (imageItemsLength > 0) {
65
+ setCurrentImageIndex(Math.min(imageIndex || 0, imageItemsLength - 1));
66
+ }
67
+ }, [imageIndex, imageItemsLength]);
68
+ if (imageItemsLength === 0) return null;
62
69
  const imageItem = imageSrcList[currentImageIndex];
63
70
  const URL = imageItem ? imageItem.thumbnail : '';
64
71
  const imageName = imageItem ? imageItem.name : '';
65
- _react.default.useEffect(() => {
66
- setCurrentImageIndex(imageIndex);
67
- }, [imageIndex]);
72
+ const mainImg = imageItems[imageIndex];
73
+ const nextImg = imageItems[(imageIndex + 1) % imageItemsLength];
74
+ const prevImg = imageItems[(imageIndex + imageItemsLength - 1) % imageItemsLength];
75
+ const mainSrc = mainImg ? mainImg.thumbnail || mainImg.src : '';
76
+ const nextSrc = nextImg ? nextImg.thumbnail || nextImg.src : '';
77
+ const prevSrc = prevImg ? prevImg.thumbnail || prevImg.src : '';
78
+ console.log('imageSrcList222', imageSrcList);
79
+ console.log('mainSrc', mainSrc);
68
80
  const canRotateImage = onRotateImage && !readOnly && !['gif', 'heic', 'heif'].includes((0, _url.getFileSuffix)(URL)) && (0, _url.isInternalImg)(URL, server);
69
- let mainSrc = URL;
70
- if ((0, _url.needUseThumbnailImage)(URL)) {
71
- mainSrc = (0, _url.getImageThumbnailUrl)(URL, {
72
- server,
73
- dtableUuid,
74
- workspaceID,
75
- size: 512
76
- });
77
- }
78
81
  const imageTitleDOM = props.imageTitle || /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
79
82
  className: "d-flex",
80
83
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
@@ -82,7 +85,7 @@ function ImagePreviewerLightbox(props) {
82
85
  children: imageName || ''
83
86
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
84
87
  className: "flex-shrink-0 pl-1",
85
- children: ["(", currentImageIndex + 1, "/", imagesLength, ")"]
88
+ children: ["(", currentImageIndex + 1, "/", imageItemsLength, ")"]
86
89
  })]
87
90
  });
88
91
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactImageLightbox.default, {
@@ -92,8 +95,8 @@ function ImagePreviewerLightbox(props) {
92
95
  wrapperClassName: (0, _classnames.default)('dtable-ui-component', className),
93
96
  imageTitle: imageTitleDOM,
94
97
  mainSrc: mainSrc,
95
- nextSrc: imageSrcList[(currentImageIndex + 1) % imagesLength] ? imageSrcList[(currentImageIndex + 1) % imagesLength].thumbnail : '',
96
- prevSrc: imageSrcList[(currentImageIndex + imagesLength - 1) % imagesLength] ? imageSrcList[(currentImageIndex + imagesLength - 1) % imagesLength].thumbnail : '',
98
+ nextSrc: nextSrc,
99
+ prevSrc: prevSrc,
97
100
  imagePadding: 70,
98
101
  viewOriginalImageLabel: (0, _lang.getLocale)('View_original_image'),
99
102
  enableRotate: canRotateImage,
@@ -75,7 +75,7 @@ class ImageThumbnail extends _react.default.Component {
75
75
  const {
76
76
  mediaUrl = ''
77
77
  } = props.config || {};
78
- this.imageLoadingFailedUrl = "".concat(mediaUrl, "img/image-loading-failed.png");
78
+ this.imageLoadingFailedUrl = `${mediaUrl}img/image-loading-failed.png`;
79
79
  }
80
80
  componentDidMount() {
81
81
  this.getUrl(this.props.src);
@@ -103,7 +103,7 @@ class ImageThumbnail extends _react.default.Component {
103
103
  ref: ref => this.ref = ref,
104
104
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
105
105
  src: imageThumbnailUrl,
106
- id: "item-image-".concat(index),
106
+ id: `item-image-${index}`,
107
107
  alt: ""
108
108
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
109
109
  className: "dtable-ui-image-icons-choice",
@@ -63,7 +63,7 @@ class NumberInput extends React.Component {
63
63
  if (this.props.autoAdjustHeight) {
64
64
  this.getContainer().style.height = '0';
65
65
  }
66
- (0, _class.addClass)(customNumberKeyboard.antmKeyboard, "".concat(this.props.keyboardPrefixCls, "-wrapper-hide"));
66
+ (0, _class.addClass)(customNumberKeyboard.antmKeyboard, `${this.props.keyboardPrefixCls}-wrapper-hide`);
67
67
  }
68
68
  // for unmount
69
69
  this.removeBlurListener();
@@ -98,7 +98,7 @@ class NumberInput extends React.Component {
98
98
  if (customNumberKeyboard.antmKeyboard) {
99
99
  if (this.props.autoAdjustHeight) {
100
100
  const keyBoardHeight = customNumberKeyboard.antmKeyboard.offsetHeight;
101
- this.getContainer().style.height = "".concat(keyBoardHeight, "px");
101
+ this.getContainer().style.height = `${keyBoardHeight}px`;
102
102
  if (this.inputRef) {
103
103
  const {
104
104
  bottom
@@ -111,14 +111,14 @@ class NumberInput extends React.Component {
111
111
  }
112
112
  }
113
113
  }
114
- (0, _class.removeClass)(customNumberKeyboard.antmKeyboard, "".concat(this.props.keyboardPrefixCls, "-wrapper-hide"));
114
+ (0, _class.removeClass)(customNumberKeyboard.antmKeyboard, `${this.props.keyboardPrefixCls}-wrapper-hide`);
115
115
  }
116
116
  customNumberKeyboard.confirmDisabled = value === '';
117
117
  if (customNumberKeyboard.confirmKeyboardItem) {
118
118
  if (value === '') {
119
- (0, _class.addClass)(customNumberKeyboard.confirmKeyboardItem, "".concat(this.props.keyboardPrefixCls, "-item-disabled"));
119
+ (0, _class.addClass)(customNumberKeyboard.confirmKeyboardItem, `${this.props.keyboardPrefixCls}-item-disabled`);
120
120
  } else {
121
- (0, _class.removeClass)(customNumberKeyboard.confirmKeyboardItem, "".concat(this.props.keyboardPrefixCls, "-item-disabled"));
121
+ (0, _class.removeClass)(customNumberKeyboard.confirmKeyboardItem, `${this.props.keyboardPrefixCls}-item-disabled`);
122
122
  }
123
123
  }
124
124
  }
@@ -179,9 +179,9 @@ class NumberInput extends React.Component {
179
179
  customNumberKeyboard.confirmDisabled = valueAfterChange === '';
180
180
  if (customNumberKeyboard.confirmKeyboardItem) {
181
181
  if (valueAfterChange === '') {
182
- (0, _class.addClass)(customNumberKeyboard.confirmKeyboardItem, "".concat(this.props.keyboardPrefixCls, "-item-disabled"));
182
+ (0, _class.addClass)(customNumberKeyboard.confirmKeyboardItem, `${this.props.keyboardPrefixCls}-item-disabled`);
183
183
  } else {
184
- (0, _class.removeClass)(customNumberKeyboard.confirmKeyboardItem, "".concat(this.props.keyboardPrefixCls, "-item-disabled"));
184
+ (0, _class.removeClass)(customNumberKeyboard.confirmKeyboardItem, `${this.props.keyboardPrefixCls}-item-disabled`);
185
185
  }
186
186
  }
187
187
  }
@@ -248,10 +248,10 @@ class NumberInput extends React.Component {
248
248
  const {
249
249
  keyboardPrefixCls
250
250
  } = this.props;
251
- let container = document.querySelector("#".concat(keyboardPrefixCls, "-container"));
251
+ let container = document.querySelector(`#${keyboardPrefixCls}-container`);
252
252
  if (!container) {
253
253
  container = document.createElement('div');
254
- container.setAttribute('id', "".concat(keyboardPrefixCls, "-container"));
254
+ container.setAttribute('id', `${keyboardPrefixCls}-container`);
255
255
  document.body.appendChild(container);
256
256
  }
257
257
  this.container = container;