dtable-ui-component 5.2.3-alpha.1 → 5.2.3-alpha.3

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.
@@ -17,29 +17,29 @@ class CheckboxFormatter extends _react.default.PureComponent {
17
17
  let {
18
18
  value,
19
19
  containerClassName,
20
- checkbox_style
20
+ checkboxStyle
21
21
  } = this.props;
22
- if (!checkbox_style || !('type' in checkbox_style && 'color' in checkbox_style)) {
23
- checkbox_style = DAFAULT_CHECKBOX_MARK_STYLE;
22
+ if (!checkboxStyle || !('type' in checkboxStyle && 'color' in checkboxStyle)) {
23
+ checkboxStyle = DAFAULT_CHECKBOX_MARK_STYLE;
24
24
  }
25
25
  const currentValue = !!value;
26
26
  let classname = (0, _classnames.default)('dtable-ui cell-formatter-container checkbox-formatter d-flex align-items-center justify-content-center', containerClassName);
27
27
  if (!currentValue) return null;
28
28
  return /*#__PURE__*/_react.default.createElement("div", {
29
29
  className: classname
30
- }, checkbox_style.type.startsWith('dtable-icon') ? /*#__PURE__*/_react.default.createElement("span", {
31
- className: "dtable-font ".concat(checkbox_style.type, " checkbox-checked-mark"),
30
+ }, checkboxStyle.type.startsWith('dtable-icon') ? /*#__PURE__*/_react.default.createElement("span", {
31
+ className: "dtable-font ".concat(checkboxStyle.type, " checkbox-checked-mark"),
32
32
  style: {
33
- color: checkbox_style.color
33
+ color: checkboxStyle.color
34
34
  }
35
35
  }) : /*#__PURE__*/_react.default.createElement("svg", {
36
36
  style: {
37
37
  width: '16px',
38
38
  height: '16px',
39
- color: checkbox_style.color
39
+ color: checkboxStyle.color
40
40
  }
41
41
  }, /*#__PURE__*/_react.default.createElement("use", {
42
- xlinkHref: "#".concat(checkbox_style.type)
42
+ xlinkHref: "#".concat(checkboxStyle.type)
43
43
  })));
44
44
  }
45
45
  }
@@ -163,6 +163,9 @@ class RowExpandFormulaFormatter extends _react.default.Component {
163
163
  }
164
164
  default:
165
165
  {
166
+ if (array_type === _dtableUtils.CellType.CHECKBOX) {
167
+ array_data.checkboxStyle = array_data.checkbox_style;
168
+ }
166
169
  return {
167
170
  ...array_data,
168
171
  collaborators
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "5.2.3-alpha.1",
3
+ "version": "5.2.3-alpha.3",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "3.0.1",