dtable-ui-component 6.0.102-alpha.2 → 6.0.102

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.
@@ -39,6 +39,11 @@ const COLUMNS_ICON_CONFIG = {
39
39
  [_dtableUtils.CellType.DIGITAL_SIGN]: 'dtable-font dtable-icon-handwritten-signature',
40
40
  [_dtableUtils.CellType.DEPARTMENT_SINGLE_SELECT]: 'dtable-font dtable-icon-department-single-selection'
41
41
  };
42
+ const COLUMN_DISPLAY_TYPE_ICON_CONFIG = {
43
+ [_dtableUtils.CellType.TEXT]: {
44
+ [_dtableUtils.TEXT_DISPLAY_TYPE_MAP.PHONE]: 'telephone'
45
+ }
46
+ };
42
47
  const DTableColumnIcon = _ref => {
43
48
  let {
44
49
  column,
@@ -49,11 +54,6 @@ const DTableColumnIcon = _ref => {
49
54
  } = _ref;
50
55
  const columnType = column === null || column === void 0 ? void 0 : column.type;
51
56
  if (!columnType) return null;
52
- const COLUMN_DISPLAY_TYPE_ICON_CONFIG = {
53
- [_dtableUtils.CellType.TEXT]: {
54
- [_dtableUtils.TEXT_DISPLAY_TYPE_MAP.PHONE]: 'telephone'
55
- }
56
- };
57
57
  const columnDisplayType = (0, _dtableUtils.getColumnDisplayType)(column);
58
58
  let symbol = null;
59
59
  let displayTypeIconConfig = COLUMN_DISPLAY_TYPE_ICON_CONFIG[columnType];
@@ -267,7 +267,7 @@ class FilterItem extends _react.default.Component {
267
267
  ref: ref => this.numberEditor = ref,
268
268
  column: filterColumn,
269
269
  value: filterTerm,
270
- onCommit: this.onFilterTermNumberChanged,
270
+ onBlur: this.onFilterTermNumberChanged,
271
271
  readOnly: readOnly
272
272
  });
273
273
  } else if (type === _constants.INPUT_CMP_TYPE_MAP.DURATION) {
@@ -63,11 +63,7 @@ class NumberEditor extends _react.default.Component {
63
63
  return this.input.querySelector('input:not([type=hidden])');
64
64
  };
65
65
  this.onBlur = () => {
66
- if (this.props.onCommit) {
67
- this.props.onCommit(this.getValue());
68
- } else if (this.props.onBlur) {
69
- this.props.onBlur();
70
- }
66
+ this.props.isInModal ? this.props.onCommit(this.getValue()) : this.props.onBlur();
71
67
  };
72
68
  this.setInputRef = input => {
73
69
  this.input = input;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "6.0.102-alpha.2",
3
+ "version": "6.0.102",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "4.0.2",