dtable-ui-component 6.0.95 → 6.0.97

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.
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = void 0;
8
+ var _classnames = _interopRequireDefault(require("classnames"));
8
9
  var _dtableUtils = require("dtable-utils");
9
10
  var _DTableIcon = _interopRequireDefault(require("../DTableIcon"));
10
11
  var _jsxRuntime = require("react/jsx-runtime");
@@ -51,8 +52,8 @@ const DTableColumnIcon = _ref => {
51
52
  ariaHidden = false,
52
53
  getSvg
53
54
  } = _ref;
54
- if (!column) return null;
55
- const columnType = (column === null || column === void 0 ? void 0 : column.type) || _dtableUtils.CellType.TEXT;
55
+ const columnType = column === null || column === void 0 ? void 0 : column.type;
56
+ if (!columnType) return null;
56
57
  const columnDisplayType = (0, _dtableUtils.getColumnDisplayType)(column);
57
58
  let symbol = null;
58
59
  let displayTypeIconConfig = COLUMN_DISPLAY_TYPE_ICON_CONFIG[columnType];
@@ -63,7 +64,7 @@ const DTableColumnIcon = _ref => {
63
64
  symbol = COLUMNS_ICON_CONFIG[columnType];
64
65
  }
65
66
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableIcon.default, {
66
- className: className,
67
+ className: (0, _classnames.default)('dtable-column-icon', className),
67
68
  symbol: symbol,
68
69
  color: color,
69
70
  ariaHidden: ariaHidden,
@@ -8,44 +8,6 @@
8
8
  transform: translateY(-1px);
9
9
  }
10
10
 
11
- .dtable-customize-collaborator-select .option-group {
12
- position: absolute;
13
- left: 0px;
14
- min-height: 60px;
15
- max-height: unset;
16
- min-width: 100%;
17
- max-width: 15rem;
18
- padding: 0.5rem 0;
19
- box-shadow: 0 1px 2px 0 rgb(0 0 0 / 5%);
20
- background: #fff;
21
- border: 1px solid rgba(0, 40, 100, 0.12);
22
- border-radius: 3px;
23
- z-index: 10001;
24
- }
25
-
26
- .dtable-customize-collaborator-select .option-group .option-group-search {
27
- width: 100%;
28
- padding: 0 10px;
29
- min-width: 170px;
30
- }
31
-
32
- .dtable-customize-collaborator-select .option-group-search .form-control {
33
- height: 31px;
34
- }
35
-
36
- .dtable-customize-collaborator-select .option-group .none-search-result {
37
- height: 100px;
38
- width: 100%;
39
- padding: 10px;
40
- opacity: .5;
41
- }
42
-
43
- .dtable-customize-collaborator-select .option-group .option-group-content {
44
- max-height: 252px;
45
- overflow-y: auto;
46
- padding: 10px;
47
- }
48
-
49
11
  .dtable-customize-collaborator-select .selected-option-show {
50
12
  width: calc(100% - 20px);
51
13
  height: 20px;
@@ -79,7 +41,7 @@
79
41
  text-align: center;
80
42
  }
81
43
 
82
- .dtable-customize-collaborator-select .collaborator-check-icon .dtable-icon-check-mark,
44
+ .dtable-customize-collaborator-select .collaborator-check-icon .dtable-icon-check-mark,
83
45
  .dtable-customize-collaborator-select .multiple-check-icon .dtable-icon-check-mark {
84
46
  font-size: 12px;
85
47
  color: #798d99;
@@ -216,6 +216,7 @@
216
216
  .dtable-ui-filters-list .selected-option .multiple-select-option,
217
217
  .dtable-ui-filters-list .selected-option .single-select-option {
218
218
  display: inline-block;
219
+ margin: 0;
219
220
  }
220
221
 
221
222
  .dtable-ui-filters-list .filter-term input {
@@ -386,11 +387,6 @@
386
387
  margin-right: 14px;
387
388
  }
388
389
 
389
- .dtable-ui-filters-list .option-group {
390
- max-height: 360px;
391
- overflow: auto;
392
- }
393
-
394
390
  .dtable-ui-filters-list .filter-item .dtable-icon-fork-number:hover {
395
391
  color: #555555;
396
392
  }
@@ -1,40 +1,3 @@
1
- .group-selector.option-group {
2
- position: absolute;
3
- left: 0;
4
- min-height: 60px;
5
- max-height: 300px;
6
- min-width: 100%;
7
- max-width: 15rem;
8
- padding: 0.5rem 0;
9
- box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
10
- background: #fff;
11
- border: 1px solid rgba(0, 40, 100, 0.12);
12
- border-radius: 3px;
13
- z-index: 10001;
14
- }
15
-
16
- .group-selector.option-group .option-group-search {
17
- width: 100%;
18
- padding: 6px 10px;
19
- min-width: 170px;
20
- }
21
-
22
- .group-selector .option-group-search .form-control {
23
- height: 31px;
24
- }
25
-
26
- .group-selector.option-group .none-search-result {
27
- height: 100px;
28
- width: 100%;
29
- padding: 10px;
30
- color: #666666;
31
- }
32
-
33
- .group-selector.option-group .option-group-content {
34
- max-height: 252px;
35
- overflow-y: auto;
36
- }
37
-
38
1
  .group-selector .option {
39
2
  display: block;
40
3
  width: 100%;
@@ -33,7 +33,6 @@
33
33
  display: inline-block;
34
34
  line-height: 24px;
35
35
  margin-right: 8px;
36
- color: #666;
37
36
  }
38
37
 
39
38
  .dtable-switch.sm .custom-switch .dtable-font.dtable-icon-use-help {
@@ -31,9 +31,11 @@ class TextFormatter extends _react.default.Component {
31
31
  value,
32
32
  column
33
33
  } = this.props;
34
- const classname = (0, _classnames.default)('dtable-ui cell-formatter-container row-expand-jump-link-container text-formatter', containerClassName);
35
- const formattedValue = this.getFormattedValue(value);
36
34
  const isDisplayAsAsPhoneNumber = column ? (0, _dtableUtils.checkIsDisplayAsPhoneNumberColumn)(column) : false;
35
+ const classname = (0, _classnames.default)('dtable-ui cell-formatter-container text-formatter', containerClassName, {
36
+ 'row-expand-jump-link-container': isDisplayAsAsPhoneNumber
37
+ });
38
+ const formattedValue = this.getFormattedValue(value);
37
39
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
38
40
  className: classname,
39
41
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
@@ -1,8 +1,9 @@
1
1
  .option-group {
2
+ display: flex;
3
+ flex-direction: column;
2
4
  position: absolute;
3
5
  left: 0;
4
6
  min-height: 60px;
5
- max-height: 300px;
6
7
  min-width: 100%;
7
8
  max-width: 15rem;
8
9
  padding: 0.5rem 0;
@@ -15,8 +16,8 @@
15
16
 
16
17
  .option-group .option-group-search {
17
18
  width: 100%;
18
- padding: 0 10px 6px 10px;
19
19
  min-width: 170px;
20
+ padding: 0 10px 6px;
20
21
  }
21
22
 
22
23
  .option-group-search .form-control {
@@ -31,6 +32,7 @@
31
32
  }
32
33
 
33
34
  .option-group .option-group-content {
35
+ flex: 1;
34
36
  max-height: 252px;
35
37
  overflow-y: auto;
36
38
  }
@@ -63,12 +63,9 @@ class Toaster {
63
63
  });
64
64
  };
65
65
  if (!isBrowser) return;
66
- let container = document.querySelector('[data-evergreen-toaster-container]');
67
- if (!container) {
68
- container = document.createElement('div');
69
- container.setAttribute('data-evergreen-toaster-container', '');
70
- document.body.appendChild(container);
71
- }
66
+ const container = document.createElement('div');
67
+ container.setAttribute('data-evergreen-toaster-container', '');
68
+ document.body.appendChild(container);
72
69
  const root = (0, _client.createRoot)(container);
73
70
  root.render(/*#__PURE__*/(0, _jsxRuntime.jsx)(_toastManager.default, {
74
71
  bindNotify: this._bindNotify,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "6.0.95",
3
+ "version": "6.0.97",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "4.0.2",