dtable-ui-component 0.3.2 → 0.3.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.
Files changed (39) hide show
  1. package/assets/dtable-font/dtable-font.eot +0 -0
  2. package/assets/dtable-font/dtable-font.svg +319 -11
  3. package/assets/dtable-font/dtable-font.ttf +0 -0
  4. package/assets/dtable-font/dtable-font.woff +0 -0
  5. package/assets/dtable-font/dtable-font.woff2 +0 -0
  6. package/assets/dtable-font.css +630 -14
  7. package/lib/ButtonFormatter/index.js +2 -6
  8. package/lib/DTableCustomizeCollaboratorSelect/index.css +1 -1
  9. package/lib/FileFormatter/index.js +3 -2
  10. package/lib/FileItemFormatter/index.js +1 -1
  11. package/lib/ImageFormatter/images-lazy-load.js +11 -15
  12. package/lib/RowExpandFileFormatter/index.css +72 -0
  13. package/lib/RowExpandFileFormatter/index.js +59 -0
  14. package/lib/RowExpandFileFormatter/row-expand-file-item-formatter.js +125 -0
  15. package/lib/RowExpandFormatter/index.css +73 -0
  16. package/lib/RowExpandFormatter/index.js +439 -0
  17. package/lib/RowExpandImageFormatter/index.css +79 -0
  18. package/lib/RowExpandImageFormatter/index.js +127 -0
  19. package/lib/RowExpandImageFormatter/row-expand-image-item-formatter.js +128 -0
  20. package/lib/RowExpandImageFormatter/utils.js +7 -0
  21. package/lib/RowExpandLinkFormatter/collaborator-item-formatter.js +164 -0
  22. package/lib/RowExpandLinkFormatter/column-data-constants.js +20 -0
  23. package/lib/RowExpandLinkFormatter/date-utils.js +127 -0
  24. package/lib/RowExpandLinkFormatter/formula-constants.js +9 -0
  25. package/lib/RowExpandLinkFormatter/index.css +25 -0
  26. package/lib/RowExpandLinkFormatter/index.js +170 -0
  27. package/lib/RowExpandLinkFormatter/number-precision.js +116 -0
  28. package/lib/RowExpandLinkFormatter/utils.js +58 -0
  29. package/lib/RowExpandLinkFormatter/value-display-utils.js +401 -0
  30. package/lib/common/delete-tip.css +16 -0
  31. package/lib/common/delete-tip.js +84 -0
  32. package/lib/common/modal-portal.js +44 -0
  33. package/lib/constants/cell-types.js +5 -1
  34. package/lib/data/dtable-value.js +2731 -0
  35. package/lib/index.js +7 -1
  36. package/lib/lang/index.js +1 -1
  37. package/lib/locals/en.js +17 -13
  38. package/lib/locals/zh-CN.js +16 -12
  39. package/package.json +3 -1
@@ -0,0 +1,44 @@
1
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
3
+ import _inherits from "@babel/runtime/helpers/esm/inherits";
4
+ import _createSuper from "@babel/runtime/helpers/esm/createSuper";
5
+ import React from 'react';
6
+ import ReactDOM from 'react-dom';
7
+ var modalRoot = document.getElementById('modal-wrapper');
8
+
9
+ var ModalPortal = /*#__PURE__*/function (_React$Component) {
10
+ _inherits(ModalPortal, _React$Component);
11
+
12
+ var _super = _createSuper(ModalPortal);
13
+
14
+ function ModalPortal(props) {
15
+ var _this;
16
+
17
+ _classCallCheck(this, ModalPortal);
18
+
19
+ _this = _super.call(this, props);
20
+ _this.el = document.createElement('div');
21
+ return _this;
22
+ }
23
+
24
+ _createClass(ModalPortal, [{
25
+ key: "componentDidMount",
26
+ value: function componentDidMount() {
27
+ modalRoot.appendChild(this.el);
28
+ }
29
+ }, {
30
+ key: "componentWillUnmount",
31
+ value: function componentWillUnmount() {
32
+ modalRoot.removeChild(this.el);
33
+ }
34
+ }, {
35
+ key: "render",
36
+ value: function render() {
37
+ return ReactDOM.createPortal(this.props.children, this.el);
38
+ }
39
+ }]);
40
+
41
+ return ModalPortal;
42
+ }(React.Component);
43
+
44
+ export { ModalPortal as default };
@@ -22,4 +22,8 @@ export var URL = 'url';
22
22
  export var EMAIL = 'email';
23
23
  export var DURATION = 'duration';
24
24
  export var RATE = 'rate';
25
- export var BUTTON = 'button';
25
+ export var BUTTON = 'button';
26
+ export var DIGITAL_SIGN = 'digital-sign'; // formula | link-formula column calculate result type
27
+
28
+ export var BOOL = 'bool';
29
+ export var STRING = 'string';