dtable-ui-component 0.1.85 → 0.1.86

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.
@@ -96,14 +96,15 @@ var DtableSelect = /*#__PURE__*/function (_React$Component) {
96
96
  menuPosition = _this$props.menuPosition,
97
97
  isClearable = _this$props.isClearable,
98
98
  noOptionsMessage = _this$props.noOptionsMessage,
99
- classNamePrefix = _this$props.classNamePrefix;
99
+ classNamePrefix = _this$props.classNamePrefix,
100
+ style = _this$props.style;
100
101
  return /*#__PURE__*/React.createElement(Select, {
101
102
  value: value,
102
103
  onChange: onChange,
103
104
  options: options,
104
105
  isMulti: isMulti,
105
106
  classNamePrefix: classNamePrefix,
106
- styles: MenuSelectStyle,
107
+ styles: style || MenuSelectStyle,
107
108
  components: {
108
109
  Option: Option,
109
110
  DropdownIndicator: DropdownIndicator,
@@ -59,19 +59,19 @@ var FormulaFormatter = /*#__PURE__*/function (_React$Component) {
59
59
 
60
60
  var formatterProps = _this.getFormatterProps(array_type, array_data, collaborators);
61
61
 
62
- var cellValue = value;
63
-
64
- if (!Array.isArray(value)) {
65
- cellValue = cellValueValidator(value, array_type) ? [value] : [];
66
- }
67
-
68
62
  if (isArrayFormalColumn(array_type)) {
69
- formatterProps.value = cellValue.filter(Boolean);
63
+ formatterProps.value = value;
70
64
  return _this.createColumnFormatter(Formatter, formatterProps);
71
65
  }
72
66
 
73
67
  var _isSimpleCellFormatterColumn = isSimpleCellFormatter(array_type);
74
68
 
69
+ var cellValue = value;
70
+
71
+ if (!Array.isArray(value)) {
72
+ cellValue = cellValueValidator(value, array_type) ? [value] : [];
73
+ }
74
+
75
75
  var contentItemClassName = "formula-formatter-content-item ".concat(_isSimpleCellFormatterColumn ? 'simple-cell-formatter' : '');
76
76
  return /*#__PURE__*/React.createElement("div", {
77
77
  className: "dtable-ui formula-formatter multiple"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "0.1.85",
3
+ "version": "0.1.86",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "0.0.9",