@cloudtower/eagle 0.31.5 → 0.31.6
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.
- package/dist/cjs/antd.js +4 -4
- package/dist/cjs/core/Loading/index.js +23 -2
- package/dist/cjs/core/SearchInput/index.js +116 -28
- package/dist/cjs/core/Skeleton/Content.js +30 -0
- package/dist/cjs/core/Skeleton/index.js +13 -0
- package/dist/cjs/coreX/CircleLoading/index.js +66 -0
- package/dist/cjs/coreX/OverflowTooltip/index.js +21 -8
- package/dist/cjs/index.js +57 -50
- package/dist/cjs/stats1.html +1 -1
- package/dist/cjs/styles/token/animation.js +22 -1
- package/dist/components.css +2689 -2597
- package/dist/esm/antd.js +1 -1
- package/dist/esm/core/Loading/index.js +22 -2
- package/dist/esm/core/SearchInput/index.js +116 -28
- package/dist/esm/core/Skeleton/Content.js +23 -0
- package/dist/esm/core/Skeleton/index.js +7 -0
- package/dist/esm/coreX/CircleLoading/index.js +59 -0
- package/dist/esm/coreX/OverflowTooltip/index.js +21 -8
- package/dist/esm/index.js +5 -2
- package/dist/esm/stats1.html +1 -1
- package/dist/esm/styles/token/animation.js +22 -2
- package/dist/src/antd.d.ts +1 -1
- package/dist/src/core/Loading/loading.type.d.ts +2 -2
- package/dist/src/core/SearchInput/searchInput.type.d.ts +19 -1
- package/dist/src/core/Skeleton/Content.d.ts +8 -0
- package/dist/src/core/Skeleton/index.d.ts +8 -0
- package/dist/src/core/index.d.ts +1 -0
- package/dist/src/coreX/CircleLoading/index.d.ts +3 -0
- package/dist/src/coreX/OverflowTooltip/overflowTooltip.type.d.ts +2 -1
- package/dist/src/coreX/index.d.ts +2 -0
- package/dist/src/styles/token/animation.d.ts +6 -0
- package/dist/stories/docs/core/Loading.stories.d.ts +2 -2
- package/dist/stories/docs/core/SearchInput.stories.d.ts +8 -2
- package/dist/stories/docs/core/skeleton.stories.d.ts +13 -0
- package/dist/stories/docs/coreX/CircleLoading.stories.d.ts +20 -0
- package/dist/stories/docs/coreX/OverflowTooltip.stories.d.ts +5 -0
- package/dist/style.css +2540 -2453
- package/package.json +4 -4
package/dist/cjs/antd.js
CHANGED
|
@@ -54,6 +54,10 @@ Object.defineProperty(exports, 'AntdSelect', {
|
|
|
54
54
|
enumerable: true,
|
|
55
55
|
get: function () { return antd.Select; }
|
|
56
56
|
});
|
|
57
|
+
Object.defineProperty(exports, 'AntdSkeleton', {
|
|
58
|
+
enumerable: true,
|
|
59
|
+
get: function () { return antd.Skeleton; }
|
|
60
|
+
});
|
|
57
61
|
Object.defineProperty(exports, 'AntdSteps', {
|
|
58
62
|
enumerable: true,
|
|
59
63
|
get: function () { return antd.Steps; }
|
|
@@ -114,10 +118,6 @@ Object.defineProperty(exports, 'Row', {
|
|
|
114
118
|
enumerable: true,
|
|
115
119
|
get: function () { return antd.Row; }
|
|
116
120
|
});
|
|
117
|
-
Object.defineProperty(exports, 'Skeleton', {
|
|
118
|
-
enumerable: true,
|
|
119
|
-
get: function () { return antd.Skeleton; }
|
|
120
|
-
});
|
|
121
121
|
Object.defineProperty(exports, 'Tabs', {
|
|
122
122
|
enumerable: true,
|
|
123
123
|
get: function () { return antd.Tabs; }
|
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
var style = require('./style.js');
|
|
4
4
|
var index = require('../Styled/index.js');
|
|
5
5
|
var React = require('react');
|
|
6
|
+
var cs = require('classnames');
|
|
6
7
|
|
|
7
8
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
9
|
|
|
9
10
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
11
|
+
var cs__default = /*#__PURE__*/_interopDefault(cs);
|
|
10
12
|
|
|
11
13
|
var __defProp = Object.defineProperty;
|
|
12
14
|
var __defProps = Object.defineProperties;
|
|
@@ -27,10 +29,29 @@ var __spreadValues = (a, b) => {
|
|
|
27
29
|
return a;
|
|
28
30
|
};
|
|
29
31
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
30
|
-
|
|
32
|
+
var __objRest = (source, exclude) => {
|
|
33
|
+
var target = {};
|
|
34
|
+
for (var prop in source)
|
|
35
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36
|
+
target[prop] = source[prop];
|
|
37
|
+
if (source != null && __getOwnPropSymbols)
|
|
38
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
39
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
40
|
+
target[prop] = source[prop];
|
|
41
|
+
}
|
|
42
|
+
return target;
|
|
43
|
+
};
|
|
44
|
+
const Loading = (_a) => {
|
|
45
|
+
var _b = _a, {
|
|
46
|
+
fullView = true,
|
|
47
|
+
className
|
|
48
|
+
} = _b, restProps = __objRest(_b, [
|
|
49
|
+
"fullView",
|
|
50
|
+
"className"
|
|
51
|
+
]);
|
|
31
52
|
const Wrapper = fullView ? index.FullView : React.Fragment;
|
|
32
53
|
const props = fullView ? { className: "loading-full-view" } : {};
|
|
33
|
-
return /* @__PURE__ */ React__default.default.createElement(Wrapper, __spreadProps(__spreadValues({}, props), { "data-testid": "loading" }), /* @__PURE__ */ React__default.default.createElement("div", { className: style.LoadingWrapper }, /* @__PURE__ */ React__default.default.createElement("div", { className: style.LoadingLine1 }), /* @__PURE__ */ React__default.default.createElement("div", { className: style.LoadingLine2 }), /* @__PURE__ */ React__default.default.createElement("div", { className: style.LoadingLine3 })));
|
|
54
|
+
return /* @__PURE__ */ React__default.default.createElement(Wrapper, __spreadProps(__spreadValues({}, props), { "data-testid": "loading" }), /* @__PURE__ */ React__default.default.createElement("div", __spreadValues({ className: cs__default.default(style.LoadingWrapper, className) }, restProps), /* @__PURE__ */ React__default.default.createElement("div", { className: style.LoadingLine1 }), /* @__PURE__ */ React__default.default.createElement("div", { className: style.LoadingLine2 }), /* @__PURE__ */ React__default.default.createElement("div", { className: style.LoadingLine3 })));
|
|
34
55
|
};
|
|
35
56
|
var Loading$1 = Loading;
|
|
36
57
|
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var icons = require('@ant-design/icons');
|
|
4
|
-
var
|
|
4
|
+
var iconsReact = require('@cloudtower/icons-react');
|
|
5
|
+
var core = require('@linaria/core');
|
|
6
|
+
var index$1 = require('../Icon/index.js');
|
|
7
|
+
var index$3 = require('../Input/index.js');
|
|
8
|
+
var index$2 = require('../Tooltip/index.js');
|
|
9
|
+
var index = require('../Typo/index.js');
|
|
10
|
+
var useParrotTranslation = require('../../hooks/useParrotTranslation.js');
|
|
5
11
|
var _ = require('lodash');
|
|
6
12
|
var React = require('react');
|
|
7
13
|
|
|
@@ -11,44 +17,126 @@ var ___default = /*#__PURE__*/_interopDefault(_);
|
|
|
11
17
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
12
18
|
|
|
13
19
|
var __defProp = Object.defineProperty;
|
|
20
|
+
var __defProps = Object.defineProperties;
|
|
21
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
14
22
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
15
23
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
16
24
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
17
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
|
|
25
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
configurable: true,
|
|
28
|
+
writable: true,
|
|
29
|
+
value
|
|
30
|
+
}) : obj[key] = value;
|
|
18
31
|
var __spreadValues = (a, b) => {
|
|
19
|
-
for (var prop in b || (b = {}))
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
24
|
-
if (__propIsEnum.call(b, prop))
|
|
25
|
-
__defNormalProp(a, prop, b[prop]);
|
|
26
|
-
}
|
|
32
|
+
for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
33
|
+
if (__getOwnPropSymbols) for (var prop of __getOwnPropSymbols(b)) {
|
|
34
|
+
if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
35
|
+
}
|
|
27
36
|
return a;
|
|
28
37
|
};
|
|
38
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
29
39
|
var __objRest = (source, exclude) => {
|
|
30
40
|
var target = {};
|
|
31
|
-
for (var prop in source)
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
36
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
37
|
-
target[prop] = source[prop];
|
|
38
|
-
}
|
|
41
|
+
for (var prop in source) if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
42
|
+
if (source != null && __getOwnPropSymbols) for (var prop of __getOwnPropSymbols(source)) {
|
|
43
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) target[prop] = source[prop];
|
|
44
|
+
}
|
|
39
45
|
return target;
|
|
40
46
|
};
|
|
41
|
-
const
|
|
42
|
-
|
|
47
|
+
const InputStyle = "E_i11gg7mj";
|
|
48
|
+
const CountTextStyle = "E_cc368xp";
|
|
49
|
+
const IconContainerStyle = "E_i11o6xqj";
|
|
50
|
+
const DisabledIconStyle = "E_d19ruhdj";
|
|
51
|
+
const SearchInput = props => {
|
|
52
|
+
const _a = props,
|
|
53
|
+
{
|
|
54
|
+
onChange,
|
|
55
|
+
debounceWait = 300,
|
|
56
|
+
total = 0,
|
|
57
|
+
onSearchNext,
|
|
58
|
+
onSearchPrev
|
|
59
|
+
} = _a,
|
|
60
|
+
restProps = __objRest(_a, ["onChange", "debounceWait", "total", "onSearchNext", "onSearchPrev"]);
|
|
61
|
+
const [current, setCurrent] = React.useState(0);
|
|
62
|
+
const [value, setValue] = React.useState(props.value || "");
|
|
63
|
+
const {
|
|
64
|
+
t
|
|
65
|
+
} = useParrotTranslation();
|
|
43
66
|
const onSearch = ___default.default.debounce(onChange, debounceWait);
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
)
|
|
67
|
+
const isNoMatch = total === 0;
|
|
68
|
+
const next = React.useCallback(() => {
|
|
69
|
+
if (total) {
|
|
70
|
+
onSearchNext == null ? void 0 : onSearchNext(value, current);
|
|
71
|
+
setCurrent(current + 1 > total ? 1 : current + 1);
|
|
72
|
+
}
|
|
73
|
+
}, [onSearchNext, current, total, value]);
|
|
74
|
+
const prev = React.useCallback(() => {
|
|
75
|
+
if (total) {
|
|
76
|
+
onSearchPrev == null ? void 0 : onSearchPrev(value, current);
|
|
77
|
+
setCurrent(current - 1 < 1 ? total : current - 1);
|
|
78
|
+
}
|
|
79
|
+
}, [onSearchPrev, current, total, value]);
|
|
80
|
+
const suffix = onSearchNext && onSearchPrev && value ? /* @__PURE__ */React__default.default.createElement(React__default.default.Fragment, null, typeof total === "number" ? /* @__PURE__ */React__default.default.createElement("span", {
|
|
81
|
+
className: core.cx(index.Typo.Label.l4_regular, CountTextStyle)
|
|
82
|
+
}, current, "/", total) : null, /* @__PURE__ */React__default.default.createElement("span", {
|
|
83
|
+
className: IconContainerStyle
|
|
84
|
+
}, isNoMatch ? /* @__PURE__ */React__default.default.createElement(index$1, {
|
|
85
|
+
className: DisabledIconStyle,
|
|
86
|
+
src: iconsReact.ArrowChevronUp16SecondaryIcon,
|
|
87
|
+
style: {
|
|
88
|
+
opacity: 0.5
|
|
89
|
+
}
|
|
90
|
+
}) : /* @__PURE__ */React__default.default.createElement(index$2, {
|
|
91
|
+
title: t("components.prev")
|
|
92
|
+
}, /* @__PURE__ */React__default.default.createElement(index$1, {
|
|
93
|
+
src: iconsReact.ArrowChevronUp16SecondaryIcon,
|
|
94
|
+
hoverSrc: iconsReact.ArrowChevronUp16BlueIcon,
|
|
95
|
+
onClick: prev
|
|
96
|
+
})), isNoMatch ? /* @__PURE__ */React__default.default.createElement(index$1, {
|
|
97
|
+
className: DisabledIconStyle,
|
|
98
|
+
src: iconsReact.ArrowChevronDown16SecondaryIcon,
|
|
99
|
+
style: {
|
|
100
|
+
opacity: 0.5
|
|
101
|
+
}
|
|
102
|
+
}) : /* @__PURE__ */React__default.default.createElement(index$2, {
|
|
103
|
+
title: t("components.next")
|
|
104
|
+
}, /* @__PURE__ */React__default.default.createElement(index$1, {
|
|
105
|
+
src: iconsReact.ArrowChevronDown16SecondaryIcon,
|
|
106
|
+
hoverSrc: iconsReact.ArrowChevronDown16BlueIcon,
|
|
107
|
+
onClick: next
|
|
108
|
+
})), /* @__PURE__ */React__default.default.createElement(index$2, {
|
|
109
|
+
title: t("components.clear")
|
|
110
|
+
}, /* @__PURE__ */React__default.default.createElement(index$1, {
|
|
111
|
+
src: iconsReact.XmarkCloseCircleFill16TertiaryIcon,
|
|
112
|
+
hoverSrc: iconsReact.XmarkCloseCircleFill16SecondaryIcon,
|
|
113
|
+
onClick: () => {
|
|
114
|
+
onSearch("");
|
|
115
|
+
setValue("");
|
|
116
|
+
}
|
|
117
|
+
})))) : null;
|
|
118
|
+
React.useEffect(() => {
|
|
119
|
+
setValue(props.value || "");
|
|
120
|
+
}, [props.value]);
|
|
121
|
+
React.useEffect(() => {
|
|
122
|
+
setCurrent(total ? 1 : 0);
|
|
123
|
+
}, [value, total]);
|
|
124
|
+
return /* @__PURE__ */React__default.default.createElement(index$3, __spreadProps(__spreadValues({
|
|
125
|
+
style: {
|
|
126
|
+
width: 276
|
|
127
|
+
},
|
|
128
|
+
prefix: /* @__PURE__ */React__default.default.createElement(icons.SearchOutlined, null),
|
|
129
|
+
suffix,
|
|
130
|
+
onChange: e => {
|
|
131
|
+
const newValue = e.target.value;
|
|
132
|
+
onSearch(newValue);
|
|
133
|
+
setValue(newValue);
|
|
134
|
+
},
|
|
135
|
+
onPressEnter: next,
|
|
136
|
+
value
|
|
137
|
+
}, restProps), {
|
|
138
|
+
className: core.cx(InputStyle, restProps.className)
|
|
139
|
+
}));
|
|
52
140
|
};
|
|
53
141
|
var SearchInput$1 = SearchInput;
|
|
54
142
|
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var cs = require('classnames');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
|
|
6
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
7
|
+
|
|
8
|
+
var cs__default = /*#__PURE__*/_interopDefault(cs);
|
|
9
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
10
|
+
|
|
11
|
+
const SkeletonContentStyle = "E_s20iney";
|
|
12
|
+
const SkeletonContent = props => {
|
|
13
|
+
const {
|
|
14
|
+
width = "100%",
|
|
15
|
+
height = "100%",
|
|
16
|
+
className
|
|
17
|
+
} = props;
|
|
18
|
+
return /* @__PURE__ */React__default.default.createElement("div", {
|
|
19
|
+
className: cs__default.default("skeleton-box", SkeletonContentStyle, className),
|
|
20
|
+
style: {
|
|
21
|
+
width,
|
|
22
|
+
height
|
|
23
|
+
}
|
|
24
|
+
}, /* @__PURE__ */React__default.default.createElement("div", {
|
|
25
|
+
className: "skeleton-shimmer"
|
|
26
|
+
}));
|
|
27
|
+
};
|
|
28
|
+
var SkeletonContent$1 = SkeletonContent;
|
|
29
|
+
|
|
30
|
+
module.exports = SkeletonContent$1;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var Content = require('./Content.js');
|
|
6
|
+
|
|
7
|
+
const Skeleton = {
|
|
8
|
+
Content: Content
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
exports.SkeletonContent = Content;
|
|
12
|
+
exports.Skeleton = Skeleton;
|
|
13
|
+
exports.default = Skeleton;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index$1 = require('../../core/Styled/index.js');
|
|
4
|
+
var index = require('../../core/Icon/index.js');
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var cs = require('classnames');
|
|
7
|
+
var iconsReact = require('@cloudtower/icons-react');
|
|
8
|
+
|
|
9
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
|
|
11
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
12
|
+
var cs__default = /*#__PURE__*/_interopDefault(cs);
|
|
13
|
+
|
|
14
|
+
var __defProp = Object.defineProperty;
|
|
15
|
+
var __defProps = Object.defineProperties;
|
|
16
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
17
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
18
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
19
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
20
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
configurable: true,
|
|
23
|
+
writable: true,
|
|
24
|
+
value
|
|
25
|
+
}) : obj[key] = value;
|
|
26
|
+
var __spreadValues = (a, b) => {
|
|
27
|
+
for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
28
|
+
if (__getOwnPropSymbols) for (var prop of __getOwnPropSymbols(b)) {
|
|
29
|
+
if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
30
|
+
}
|
|
31
|
+
return a;
|
|
32
|
+
};
|
|
33
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
34
|
+
var __objRest = (source, exclude) => {
|
|
35
|
+
var target = {};
|
|
36
|
+
for (var prop in source) if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
37
|
+
if (source != null && __getOwnPropSymbols) for (var prop of __getOwnPropSymbols(source)) {
|
|
38
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) target[prop] = source[prop];
|
|
39
|
+
}
|
|
40
|
+
return target;
|
|
41
|
+
};
|
|
42
|
+
const LoadingWrapper = "E_l12xdkhl";
|
|
43
|
+
const CircleLoading = _a => {
|
|
44
|
+
var _b = _a,
|
|
45
|
+
{
|
|
46
|
+
fullView = true,
|
|
47
|
+
className
|
|
48
|
+
} = _b,
|
|
49
|
+
restProps = __objRest(_b, ["fullView", "className"]);
|
|
50
|
+
const Wrapper = fullView ? index$1.FullView : React.Fragment;
|
|
51
|
+
const props = fullView ? {
|
|
52
|
+
className: "loading-full-view"
|
|
53
|
+
} : {};
|
|
54
|
+
return /* @__PURE__ */React__default.default.createElement(Wrapper, __spreadProps(__spreadValues({}, props), {
|
|
55
|
+
"data-testid": "loading"
|
|
56
|
+
}), /* @__PURE__ */React__default.default.createElement("div", __spreadValues({
|
|
57
|
+
className: cs__default.default(LoadingWrapper, className)
|
|
58
|
+
}, restProps), /* @__PURE__ */React__default.default.createElement(index, {
|
|
59
|
+
src: iconsReact.Loading64GradientBlueIcon,
|
|
60
|
+
iconWidth: 64,
|
|
61
|
+
iconHeight: 64
|
|
62
|
+
})));
|
|
63
|
+
};
|
|
64
|
+
var CircleLoading$1 = CircleLoading;
|
|
65
|
+
|
|
66
|
+
module.exports = CircleLoading$1;
|
|
@@ -30,6 +30,14 @@ var __spreadValues = (a, b) => {
|
|
|
30
30
|
return a;
|
|
31
31
|
};
|
|
32
32
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
33
|
+
var __objRest = (source, exclude) => {
|
|
34
|
+
var target = {};
|
|
35
|
+
for (var prop in source) if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
36
|
+
if (source != null && __getOwnPropSymbols) for (var prop of __getOwnPropSymbols(source)) {
|
|
37
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) target[prop] = source[prop];
|
|
38
|
+
}
|
|
39
|
+
return target;
|
|
40
|
+
};
|
|
33
41
|
const OverflowText = "E_ou7iq30";
|
|
34
42
|
const SingleLineStyle = "E_s1tui002";
|
|
35
43
|
const _exp = /*#__PURE__*/() => ({
|
|
@@ -43,13 +51,17 @@ const MultipleLine = /*#__PURE__*/react.styled('div')({
|
|
|
43
51
|
"mxrc2zg-0": [_exp()]
|
|
44
52
|
}
|
|
45
53
|
});
|
|
54
|
+
const TooltipDefaultClass = "E_t1vv6d68";
|
|
46
55
|
const OverflowTooltip = props => {
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
56
|
+
const _a = props,
|
|
57
|
+
{
|
|
58
|
+
content,
|
|
59
|
+
className,
|
|
60
|
+
onClick,
|
|
61
|
+
multiLines,
|
|
62
|
+
overlayClassName
|
|
63
|
+
} = _a,
|
|
64
|
+
restProps = __objRest(_a, ["content", "className", "onClick", "multiLines", "overlayClassName"]);
|
|
53
65
|
const tooltip = props.tooltip || content;
|
|
54
66
|
const [ellipsis, setEllipsis] = React.useState(false);
|
|
55
67
|
const textRef = React.useRef(null);
|
|
@@ -72,10 +84,11 @@ const OverflowTooltip = props => {
|
|
|
72
84
|
observer == null ? void 0 : observer.disconnect();
|
|
73
85
|
};
|
|
74
86
|
});
|
|
75
|
-
return /* @__PURE__ */React__default.default.createElement(index, __spreadProps(__spreadValues({}, !ellipsis && {
|
|
87
|
+
return /* @__PURE__ */React__default.default.createElement(index, __spreadProps(__spreadValues(__spreadValues({}, restProps), !ellipsis && {
|
|
76
88
|
visible: false
|
|
77
89
|
}), {
|
|
78
|
-
title: tooltip
|
|
90
|
+
title: tooltip,
|
|
91
|
+
overlayClassName: core.cx(TooltipDefaultClass, overlayClassName)
|
|
79
92
|
}), isMultiLine ? /* @__PURE__ */React__default.default.createElement(MultipleLine, {
|
|
80
93
|
ref: textRef,
|
|
81
94
|
className: core.cx(OverflowText, className),
|
package/dist/cjs/index.js
CHANGED
|
@@ -105,26 +105,29 @@ var TableWidget = require('./core/Table/TableWidget.js');
|
|
|
105
105
|
var types = require('./core/TableForm/types.js');
|
|
106
106
|
var index$1c = require('./core/Typo/index.js');
|
|
107
107
|
var index$1d = require('./core/ConfigProvider/index.js');
|
|
108
|
-
var index$1e = require('./
|
|
109
|
-
var
|
|
110
|
-
var index$
|
|
111
|
-
var index$
|
|
112
|
-
var index$
|
|
113
|
-
var index$
|
|
114
|
-
var index$
|
|
115
|
-
var index$
|
|
116
|
-
var index$
|
|
117
|
-
var index$
|
|
118
|
-
var index$
|
|
119
|
-
var index$
|
|
120
|
-
var index$
|
|
121
|
-
var index$
|
|
122
|
-
var index$
|
|
123
|
-
var index$
|
|
124
|
-
var index$
|
|
125
|
-
var index$
|
|
126
|
-
var index$
|
|
127
|
-
var index$
|
|
108
|
+
var index$1e = require('./core/Skeleton/index.js');
|
|
109
|
+
var Content = require('./core/Skeleton/Content.js');
|
|
110
|
+
var index$1f = require('./coreX/BarChart/index.js');
|
|
111
|
+
var index$1g = require('./coreX/BatchOperation/index.js');
|
|
112
|
+
var index$1h = require('./coreX/ChartWithTooltip/index.js');
|
|
113
|
+
var index$1i = require('./coreX/Counting/index.js');
|
|
114
|
+
var index$1j = require('./coreX/CronCalendar/index.js');
|
|
115
|
+
var index$1k = require('./coreX/CronPlan/index.js');
|
|
116
|
+
var index$1l = require('./coreX/DateRangePicker/index.js');
|
|
117
|
+
var index$1m = require('./coreX/DeprecatedDonutChart/index.js');
|
|
118
|
+
var index$1n = require('./coreX/DropdownTransition/index.js');
|
|
119
|
+
var index$1o = require('./coreX/GoBackButton/index.js');
|
|
120
|
+
var index$1p = require('./coreX/I18nNameTag/index.js');
|
|
121
|
+
var index$1q = require('./coreX/NamesTooltip/index.js');
|
|
122
|
+
var index$1r = require('./coreX/OverflowTooltip/index.js');
|
|
123
|
+
var index$1s = require('./coreX/SidebarSubtitle/index.js');
|
|
124
|
+
var index$1t = require('./coreX/Sider/index.js');
|
|
125
|
+
var index$1u = require('./coreX/SortableList/index.js');
|
|
126
|
+
var index$1v = require('./coreX/SummaryTable/index.js');
|
|
127
|
+
var index$1w = require('./coreX/SwitchWithText/index.js');
|
|
128
|
+
var index$1x = require('./coreX/TabMenu/index.js');
|
|
129
|
+
var index$1y = require('./coreX/UnitWithChart/index.js');
|
|
130
|
+
var index$1z = require('./coreX/CircleLoading/index.js');
|
|
128
131
|
var getCalendarTitle = require('./coreX/common/getCalendarTitle.js');
|
|
129
132
|
var AbsoluteDate = require('./coreX/DateRangePicker/AbsoluteDate.js');
|
|
130
133
|
var Calendar = require('./coreX/DateRangePicker/Calendar.js');
|
|
@@ -275,6 +278,10 @@ Object.defineProperty(exports, 'AntdSelect', {
|
|
|
275
278
|
enumerable: true,
|
|
276
279
|
get: function () { return antd.Select; }
|
|
277
280
|
});
|
|
281
|
+
Object.defineProperty(exports, 'AntdSkeleton', {
|
|
282
|
+
enumerable: true,
|
|
283
|
+
get: function () { return antd.Skeleton; }
|
|
284
|
+
});
|
|
278
285
|
Object.defineProperty(exports, 'AntdSteps', {
|
|
279
286
|
enumerable: true,
|
|
280
287
|
get: function () { return antd.Steps; }
|
|
@@ -335,10 +342,6 @@ Object.defineProperty(exports, 'Row', {
|
|
|
335
342
|
enumerable: true,
|
|
336
343
|
get: function () { return antd.Row; }
|
|
337
344
|
});
|
|
338
|
-
Object.defineProperty(exports, 'Skeleton', {
|
|
339
|
-
enumerable: true,
|
|
340
|
-
get: function () { return antd.Skeleton; }
|
|
341
|
-
});
|
|
342
345
|
Object.defineProperty(exports, 'Space', {
|
|
343
346
|
enumerable: true,
|
|
344
347
|
get: function () { return antd.Space; }
|
|
@@ -484,38 +487,42 @@ exports.TableLoading = TableWidget.TableLoading;
|
|
|
484
487
|
exports.ValidateTriggerType = types.ValidateTriggerType;
|
|
485
488
|
exports.Typo = index$1c.Typo;
|
|
486
489
|
exports.ConfigProvider = index$1d.ConfigProvider;
|
|
487
|
-
exports.
|
|
488
|
-
exports.
|
|
489
|
-
exports.
|
|
490
|
-
exports.
|
|
491
|
-
exports.
|
|
492
|
-
exports.
|
|
493
|
-
exports.
|
|
494
|
-
exports.
|
|
495
|
-
exports.
|
|
496
|
-
exports.
|
|
497
|
-
exports.
|
|
498
|
-
exports.
|
|
499
|
-
exports.
|
|
500
|
-
exports.
|
|
501
|
-
exports.
|
|
502
|
-
exports.
|
|
503
|
-
exports.
|
|
504
|
-
exports.
|
|
505
|
-
exports.
|
|
506
|
-
exports.
|
|
507
|
-
exports.
|
|
508
|
-
exports.
|
|
509
|
-
exports.
|
|
510
|
-
exports.
|
|
511
|
-
exports.
|
|
512
|
-
exports.
|
|
490
|
+
exports.Skeleton = index$1e.default;
|
|
491
|
+
exports.SkeletonContent = Content;
|
|
492
|
+
exports.BarChart = index$1f.default;
|
|
493
|
+
exports.getWidth = index$1f.getWidth;
|
|
494
|
+
exports.BatchOperation = index$1g.default;
|
|
495
|
+
exports.renderBatchOperationMenuItem = index$1g.renderBatchOperationMenuItem;
|
|
496
|
+
exports.ChartWithTooltip = index$1h.default;
|
|
497
|
+
exports.ChartWithUnit = index$1h.ChartWithUnit;
|
|
498
|
+
exports.Counting = index$1i;
|
|
499
|
+
exports.CronCalendar = index$1j;
|
|
500
|
+
exports.CronPlan = index$1k.default;
|
|
501
|
+
exports.stringifyPlan = index$1k.stringifyPlan;
|
|
502
|
+
exports.DateRangePicker = index$1l.default;
|
|
503
|
+
exports.DeprecatedDonutChart = index$1m;
|
|
504
|
+
exports.DropdownTransition = index$1n;
|
|
505
|
+
exports.GoBackButton = index$1o;
|
|
506
|
+
exports.I18nNameTag = index$1p;
|
|
507
|
+
exports.NamesTooltip = index$1q;
|
|
508
|
+
exports.OverflowTooltip = index$1r;
|
|
509
|
+
exports.SidebarSubtitle = index$1s;
|
|
510
|
+
exports.Sider = index$1t;
|
|
511
|
+
exports.SortableList = index$1u;
|
|
512
|
+
exports.SummaryTable = index$1v.default;
|
|
513
|
+
exports.SummaryTableRow = index$1v.SummaryTableRow;
|
|
514
|
+
exports.SwitchWithText = index$1w;
|
|
515
|
+
exports.TabMenu = index$1x;
|
|
516
|
+
exports.UnitWithChart = index$1y.default;
|
|
517
|
+
exports.UnitWrapper = index$1y.UnitWrapper;
|
|
518
|
+
exports.CircleLoading = index$1z;
|
|
513
519
|
exports.getCalendarTitle = getCalendarTitle.getCalendarTitle;
|
|
514
520
|
exports.AbsoluteDate = AbsoluteDate;
|
|
515
521
|
exports.DateRangePickerCalendar = Calendar;
|
|
516
522
|
exports.InputTime = InputTime;
|
|
517
523
|
exports.RelativeTime = RelativeTime;
|
|
518
524
|
exports.Animation = animation.Animation;
|
|
525
|
+
exports.Keyframes = animation.Keyframes;
|
|
519
526
|
exports.Color = color.Color;
|
|
520
527
|
exports.zIndices = zIndices.zIndices;
|
|
521
528
|
Object.keys(parrot).forEach(function (k) {
|