dtable-ui-component 6.0.48-apl0.4 → 6.0.49

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.
@@ -10,11 +10,6 @@
10
10
 
11
11
  .collapsible-setting-layout-header .dtable-font {
12
12
  font-size: 10px;
13
- color: #999;
14
- }
15
-
16
- .collapsible-setting-layout-header .dtable-font:hover {
17
- color: #555;
18
13
  }
19
14
 
20
15
  .collapsible-setting-layout-header .dtable-font.dtable-icon-spin {
@@ -19,7 +19,7 @@ const CollapsibleSettingLayout = props => {
19
19
  return /*#__PURE__*/_react.default.createElement("div", {
20
20
  className: (0, _classnames.default)('collapsible-setting-layout', className)
21
21
  }, /*#__PURE__*/_react.default.createElement("div", {
22
- className: "collapsible-setting-layout-header w-100 d-flex align-items-center",
22
+ className: "collapsible-setting-layout-header seatable-collapse-header w-100 d-flex align-items-center",
23
23
  onClick: () => setIsShowSettings(!isShowSettings)
24
24
  }, /*#__PURE__*/_react.default.createElement("span", {
25
25
  className: "collapsible-setting-layout-title"
@@ -4,7 +4,6 @@
4
4
  }
5
5
 
6
6
  .field-setting .field-setting-header .expand-button {
7
- color: #999;
8
7
  font-size: 10px;
9
8
  cursor: pointer;
10
9
  transition: transform .3s cubic-bezier(.645,.045,.355,1);
@@ -14,11 +13,6 @@
14
13
  transform: rotate(90deg);
15
14
  }
16
15
 
17
- .field-setting .field-setting-header .expand-button:hover {
18
- color: #555;
19
- cursor: pointer;
20
- }
21
-
22
16
  .field-setting .field-setting-banner .show-all-button {
23
17
  color: #ed7109;
24
18
  cursor: pointer;
@@ -53,7 +53,7 @@ function FieldDisplaySetting(_ref) {
53
53
  return /*#__PURE__*/_react.default.createElement("div", {
54
54
  className: "field-setting"
55
55
  }, /*#__PURE__*/_react.default.createElement("div", {
56
- className: "field-setting-header d-flex align-items-center justify-content-between",
56
+ className: "field-setting-header seatable-collapse-header d-flex align-items-center justify-content-between",
57
57
  onClick: expandAllFields
58
58
  }, /*#__PURE__*/_react.default.createElement(_reactstrap.Label, {
59
59
  className: "mb-0"
@@ -91,7 +91,8 @@ class RowExpandFormulaFormatter extends _react.default.Component {
91
91
  const {
92
92
  value,
93
93
  column,
94
- collaborators
94
+ collaborators,
95
+ departments
95
96
  } = this.props;
96
97
  const {
97
98
  array_type,
@@ -101,7 +102,7 @@ class RowExpandFormulaFormatter extends _react.default.Component {
101
102
  return null;
102
103
  }
103
104
  const Formatter = _baseFormatterConfig.default[array_type];
104
- let formatterProps = this.getFormatterProps(array_type, array_data, collaborators);
105
+ let formatterProps = this.getFormatterProps(array_type, array_data, collaborators, departments);
105
106
  if ((0, _utils.isArrayFormatColumn)(array_type)) {
106
107
  formatterProps.value = value;
107
108
  return this.renderBorder(this.createColumnFormatter(Formatter, formatterProps));
@@ -121,8 +122,6 @@ class RowExpandFormulaFormatter extends _react.default.Component {
121
122
  formulaEmail = cellValue[0];
122
123
  formulaEmail = formulaEmail ? formulaEmail.trim() : '';
123
124
  }
124
- console.log('Formatter', Formatter);
125
- console.log('formatterProps', formatterProps);
126
125
  return this.renderBorder( /*#__PURE__*/_react.default.createElement("div", {
127
126
  className: "dtable-ui formula-formatter multiple"
128
127
  }, cellValue.map((v, index) => {
@@ -145,7 +144,7 @@ class RowExpandFormulaFormatter extends _react.default.Component {
145
144
  }), this.createColumnFormatter(Formatter, formatterProps));
146
145
  })));
147
146
  };
148
- this.getFormatterProps = (array_type, array_data, collaborators) => {
147
+ this.getFormatterProps = (array_type, array_data, collaborators, departments) => {
149
148
  switch (array_type) {
150
149
  case _dtableUtils.CellType.DURATION:
151
150
  {
@@ -158,6 +157,16 @@ class RowExpandFormulaFormatter extends _react.default.Component {
158
157
  }
159
158
  case _dtableUtils.CellType.NUMBER:
160
159
  case _dtableUtils.CellType.RATE:
160
+ case _dtableUtils.CellType.DEPARTMENT_SINGLE_SELECT:
161
+ {
162
+ return {
163
+ column: {
164
+ data: array_data
165
+ },
166
+ readOnly: true,
167
+ departments
168
+ };
169
+ }
161
170
  case _dtableUtils.CellType.GEOLOCATION:
162
171
  {
163
172
  return {
@@ -235,7 +235,8 @@ class RowExpandFormatter extends _react.default.Component {
235
235
  value: cellValue,
236
236
  column: column,
237
237
  collaborators: collaborators,
238
- containerClassName: containerClassName
238
+ containerClassName: containerClassName,
239
+ departments: this.props.departments
239
240
  });
240
241
  }
241
242
  case _dtableUtils.CellType.LINK:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "6.0.48apl0.4",
3
+ "version": "6.0.49",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "4.0.2",