dtable-ui-component 0.3.2-alpha2 → 0.3.2-alpha4

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.
@@ -1,3 +1,5 @@
1
+ @import url('../css/cell-formatter.css');
2
+
1
3
  .dtable-ui.row-expand-file-formatter {
2
4
  display: flex;
3
5
  flex-wrap: wrap;
@@ -18,6 +20,10 @@
18
20
  position: relative;
19
21
  }
20
22
 
23
+ .dtable-ui.row-expand-file-formatter .row-expand-item-file:nth-child(5n + 1) {
24
+ margin-left: 0;
25
+ }
26
+
21
27
  .dtable-ui.row-expand-file-formatter .row-expand-item-file:hover {
22
28
  border-color: #c9c9c9;
23
29
  }
@@ -58,3 +64,9 @@
58
64
  font-size: 12px;
59
65
  transform: scale(.7);
60
66
  }
67
+
68
+ .tooltip-inner {
69
+ font-weight: lighter;
70
+ text-align: justify;
71
+ background-color: #303133;
72
+ }
@@ -4,9 +4,8 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
4
4
  import _createSuper from "@babel/runtime/helpers/esm/createSuper";
5
5
  import React from 'react';
6
6
  import classname from 'classnames';
7
- import RowExpandFileItemFormatter from '../FileItemFormatter/row-expand-file-item-formatter';
7
+ import RowExpandFileItemFormatter from './row-expand-file-item-formatter';
8
8
  import './index.css';
9
- import './row-expand-file-formatter.css';
10
9
 
11
10
  var RowExpandFileFormatter = /*#__PURE__*/function (_React$PureComponent) {
12
11
  _inherits(RowExpandFileFormatter, _React$PureComponent);
@@ -5,7 +5,7 @@ import _createSuper from "@babel/runtime/helpers/esm/createSuper";
5
5
  import React, { Component } from 'react';
6
6
  import { Tooltip } from 'reactstrap';
7
7
  import { getLocale } from '../lang';
8
- import { getFileIconUrl } from './utils';
8
+ import { getFileIconUrl } from '../FileItemFormatter/utils';
9
9
  import DeleteTip from '../common/delete-tip';
10
10
 
11
11
  var RowExpandFileItemFormatter = /*#__PURE__*/function (_Component) {
@@ -54,7 +54,7 @@ var RowExpandFileItemFormatter = /*#__PURE__*/function (_Component) {
54
54
 
55
55
  _this.getFileIconData = function (item) {
56
56
  var fileIconUrl = getFileIconUrl(item.name, item.type);
57
- return require('./' + fileIconUrl);
57
+ return require('../FileItemFormatter/' + fileIconUrl);
58
58
  };
59
59
 
60
60
  _this.state = {
package/lib/index.js CHANGED
@@ -36,7 +36,7 @@ export { default as FileItemFormatter } from './FileItemFormatter';
36
36
  export { default as DigitalSignFormatter } from './DigitalSignFormatter';
37
37
  export { default as SimpleLongTextFormatter } from './SimpleLongTextFormatter'; // row expand formatter
38
38
 
39
- export { default as RowExpandFileFormatter } from './FileFormatter/row-expand-file-formatter.js'; // editor
39
+ export { default as RowExpandFileFormatter } from './RowExpandFileFormatter'; // editor
40
40
 
41
41
  export { default as TextEditor } from './TextEditor';
42
42
  export { default as NumberEditor } from './NumberEditor';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "0.3.2-alpha2",
3
+ "version": "0.3.2-alpha4",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "0.0.9",
@@ -40,6 +40,7 @@
40
40
  "xtend": "^4.0.1"
41
41
  },
42
42
  "scripts": {
43
+ "move": "npm run prepublishOnly && cp -r /Users/seafile/Desktop/codes/dtable-ui-component/lib /Users/seafile/Desktop/codes/seatable-app-map-cn/node_modules/dtable-ui-component/",
43
44
  "lint": "./node_modules/.bin/eslint ./src/ --fix",
44
45
  "clean:esm": "rm -rf es && mkdir es",
45
46
  "clean:lib": "rm -rf lib && mkdir lib",