@cloudtower/eagle 0.26.32 → 0.27.0
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/components.css +145 -103
- package/dist/core/AccordionCard/index.d.ts +16 -0
- package/dist/core/DetailCard/index.d.ts +4 -0
- package/dist/coreX/DropdownTransition/index.d.ts +6 -0
- package/dist/esm/index.js +908 -773
- package/dist/esm/stats1.html +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/spec/base.d.ts +7 -1
- package/dist/spec/type.d.ts +15 -0
- package/dist/style.css +510 -468
- package/dist/umd/index.js +906 -773
- package/dist/umd/stats1.html +1 -1
- package/package.json +7 -5
package/dist/esm/index.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { Alert as Alert$1, Badge as Badge$1, Button as Button$1, Tooltip as Tooltip$1, Checkbox as Checkbox$1, Card as Card$
|
|
1
|
+
import { Alert as Alert$1, Badge as Badge$1, Button as Button$1, Tooltip as Tooltip$1, Checkbox as Checkbox$1, Card as Card$2, Collapse, DatePicker, Select as Select$1, InputNumber as InputNumber$1, Input as Input$1, TimePicker as TimePicker$1, Form as Form$1, Steps as Steps$1, Modal as Modal$1, Dropdown, Menu, Progress as Progress$1, Radio as Radio$1, Tag as Tag$1, Switch as Switch$1, Table as Table$1, Space, List, Row, Col, Tree, Divider, Skeleton, Layout, AutoComplete, Popover, Timeline, Typography, Cascader, Upload, Calendar, Tabs, message, Empty as Empty$1, TreeSelect, Drawer, ConfigProvider } from 'antd';
|
|
2
2
|
export { Col, Row } from 'antd';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default, { useState, useMemo, useRef, useCallback, useEffect, forwardRef, Fragment, useLayoutEffect, createContext, memo, useImperativeHandle, useContext } from 'react';
|
|
5
|
+
import { XmarkRemove24SecondaryIcon, ArrowRightGrayIcon, ArrowChevronUp16SecondaryIcon, ArrowChevronDown16SecondaryIcon, CheckmarkDoneSuccessCorrect16SecondaryIcon, Loading8GradientBlueIcon, PlusAddCreateNew16SecondaryIcon, HandlePoint816SecondaryIcon, HandlePoint816BlueIcon, XmarkRemove16SecondaryIcon, XmarkRemove16RegularRedIcon, CheckmarkDoneSuccessCorrect16BlueIcon, XmarkRemoveSmall16RegularInheritIcon } from '@cloudtower/icons-react';
|
|
5
6
|
import cs from 'classnames';
|
|
6
|
-
import
|
|
7
|
+
import { styled } from 'linaria/react';
|
|
8
|
+
import _, { debounce, uniqBy, groupBy, sortBy, toPairs } from 'lodash';
|
|
7
9
|
import { SVGUniqueID } from 'react-svg-unique-id';
|
|
10
|
+
import { CSSTransition } from 'react-transition-group';
|
|
11
|
+
import { styled as styled$1 } from '@linaria/react';
|
|
8
12
|
import { parrotI18n } from '@cloudtower/parrot';
|
|
9
13
|
export * from '@cloudtower/parrot';
|
|
10
14
|
import { useTranslation, Trans, withTranslation } from 'react-i18next';
|
|
11
15
|
import { cx } from '@linaria/core';
|
|
12
|
-
import { styled } from '@linaria/react';
|
|
13
|
-
import { ArrowRightGrayIcon, ArrowChevronUp16SecondaryIcon, ArrowChevronDown16SecondaryIcon, CheckmarkDoneSuccessCorrect16SecondaryIcon, Loading8GradientBlueIcon, PlusAddCreateNew16SecondaryIcon, HandlePoint816SecondaryIcon, HandlePoint816BlueIcon, XmarkRemove16SecondaryIcon, XmarkRemove16RegularRedIcon, CheckmarkDoneSuccessCorrect16BlueIcon, XmarkRemoveSmall16RegularInheritIcon } from '@cloudtower/icons-react';
|
|
14
16
|
import moment from 'moment';
|
|
15
17
|
import { findDOMNode } from 'react-dom';
|
|
16
18
|
import { isElement } from 'react-is';
|
|
@@ -30,6 +32,312 @@ import 'recharts';
|
|
|
30
32
|
import enUS from 'antd/lib/locale/en_US';
|
|
31
33
|
import zhCN from 'antd/lib/locale/zh_CN';
|
|
32
34
|
|
|
35
|
+
var __defProp$X = Object.defineProperty;
|
|
36
|
+
var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
|
|
37
|
+
var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
|
|
38
|
+
var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
|
|
39
|
+
var __defNormalProp$X = (obj, key, value) => key in obj ? __defProp$X(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
40
|
+
var __spreadValues$X = (a, b) => {
|
|
41
|
+
for (var prop in b || (b = {}))
|
|
42
|
+
if (__hasOwnProp$Z.call(b, prop))
|
|
43
|
+
__defNormalProp$X(a, prop, b[prop]);
|
|
44
|
+
if (__getOwnPropSymbols$Z)
|
|
45
|
+
for (var prop of __getOwnPropSymbols$Z(b)) {
|
|
46
|
+
if (__propIsEnum$Z.call(b, prop))
|
|
47
|
+
__defNormalProp$X(a, prop, b[prop]);
|
|
48
|
+
}
|
|
49
|
+
return a;
|
|
50
|
+
};
|
|
51
|
+
var __objRest$A = (source, exclude) => {
|
|
52
|
+
var target = {};
|
|
53
|
+
for (var prop in source)
|
|
54
|
+
if (__hasOwnProp$Z.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
55
|
+
target[prop] = source[prop];
|
|
56
|
+
if (source != null && __getOwnPropSymbols$Z)
|
|
57
|
+
for (var prop of __getOwnPropSymbols$Z(source)) {
|
|
58
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$Z.call(source, prop))
|
|
59
|
+
target[prop] = source[prop];
|
|
60
|
+
}
|
|
61
|
+
return target;
|
|
62
|
+
};
|
|
63
|
+
const BaseIcon = React__default.forwardRef(
|
|
64
|
+
(props, ref) => {
|
|
65
|
+
const _a = props, {
|
|
66
|
+
alt,
|
|
67
|
+
className,
|
|
68
|
+
width,
|
|
69
|
+
height,
|
|
70
|
+
cursor,
|
|
71
|
+
style,
|
|
72
|
+
children,
|
|
73
|
+
prefixNode,
|
|
74
|
+
suffixIconSrc: SuffixSrc,
|
|
75
|
+
src: Src
|
|
76
|
+
} = _a, HTMLSpanElementProps = __objRest$A(_a, [
|
|
77
|
+
"alt",
|
|
78
|
+
"className",
|
|
79
|
+
"width",
|
|
80
|
+
"height",
|
|
81
|
+
"cursor",
|
|
82
|
+
"style",
|
|
83
|
+
"children",
|
|
84
|
+
"prefixNode",
|
|
85
|
+
"suffixIconSrc",
|
|
86
|
+
"src"
|
|
87
|
+
]);
|
|
88
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
89
|
+
"span",
|
|
90
|
+
__spreadValues$X({
|
|
91
|
+
ref,
|
|
92
|
+
className,
|
|
93
|
+
style: _.pickBy(__spreadValues$X({ cursor }, style))
|
|
94
|
+
}, HTMLSpanElementProps),
|
|
95
|
+
prefixNode,
|
|
96
|
+
/* @__PURE__ */ React__default.createElement("span", { className: "icon-inner" }, typeof Src === "string" ? /* @__PURE__ */ React__default.createElement("img", { alt, src: Src, width, height }) : /* @__PURE__ */ React__default.createElement(SVGUniqueID, null, Src({ width, height }))),
|
|
97
|
+
children && /* @__PURE__ */ React__default.createElement("span", { className: "icon-children" }, children),
|
|
98
|
+
SuffixSrc && /* @__PURE__ */ React__default.createElement("span", { className: "icon-inner suffix" }, typeof SuffixSrc === "string" ? /* @__PURE__ */ React__default.createElement("img", { alt, src: SuffixSrc, width, height }) : /* @__PURE__ */ React__default.createElement(SVGUniqueID, null, SuffixSrc({ width, height })))
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
);
|
|
102
|
+
|
|
103
|
+
var __defProp$W = Object.defineProperty;
|
|
104
|
+
var __defProps$D = Object.defineProperties;
|
|
105
|
+
var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
|
|
106
|
+
var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
|
|
107
|
+
var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
|
|
108
|
+
var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
|
|
109
|
+
var __defNormalProp$W = (obj, key, value) => key in obj ? __defProp$W(obj, key, {
|
|
110
|
+
enumerable: true,
|
|
111
|
+
configurable: true,
|
|
112
|
+
writable: true,
|
|
113
|
+
value
|
|
114
|
+
}) : obj[key] = value;
|
|
115
|
+
var __spreadValues$W = (a, b) => {
|
|
116
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$Y.call(b, prop)) __defNormalProp$W(a, prop, b[prop]);
|
|
117
|
+
if (__getOwnPropSymbols$Y) for (var prop of __getOwnPropSymbols$Y(b)) {
|
|
118
|
+
if (__propIsEnum$Y.call(b, prop)) __defNormalProp$W(a, prop, b[prop]);
|
|
119
|
+
}
|
|
120
|
+
return a;
|
|
121
|
+
};
|
|
122
|
+
var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
|
|
123
|
+
var __objRest$z = (source, exclude) => {
|
|
124
|
+
var target = {};
|
|
125
|
+
for (var prop in source) if (__hasOwnProp$Y.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
126
|
+
if (source != null && __getOwnPropSymbols$Y) for (var prop of __getOwnPropSymbols$Y(source)) {
|
|
127
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$Y.call(source, prop)) target[prop] = source[prop];
|
|
128
|
+
}
|
|
129
|
+
return target;
|
|
130
|
+
};
|
|
131
|
+
const IconWrapper = "i1mrf09m";
|
|
132
|
+
const Icon = React__default.forwardRef((props, ref) => {
|
|
133
|
+
const _a = props,
|
|
134
|
+
{
|
|
135
|
+
src,
|
|
136
|
+
hoverSrc,
|
|
137
|
+
active,
|
|
138
|
+
activeSrc,
|
|
139
|
+
onMouseEnter,
|
|
140
|
+
onMouseLeave,
|
|
141
|
+
onMouseMove,
|
|
142
|
+
className,
|
|
143
|
+
iconWidth = 16,
|
|
144
|
+
iconHeight = 16,
|
|
145
|
+
cursor,
|
|
146
|
+
style,
|
|
147
|
+
isRotate,
|
|
148
|
+
prefix,
|
|
149
|
+
suffix
|
|
150
|
+
} = _a,
|
|
151
|
+
restProps = __objRest$z(_a, ["src", "hoverSrc", "active", "activeSrc", "onMouseEnter", "onMouseLeave", "onMouseMove", "className", "iconWidth", "iconHeight", "cursor", "style", "isRotate", "prefix", "suffix"]);
|
|
152
|
+
const [hover, setHover] = useState(false);
|
|
153
|
+
const _src = useMemo(() => {
|
|
154
|
+
if (active && activeSrc) {
|
|
155
|
+
return activeSrc;
|
|
156
|
+
}
|
|
157
|
+
if (hover && hoverSrc) {
|
|
158
|
+
return hoverSrc;
|
|
159
|
+
}
|
|
160
|
+
return src;
|
|
161
|
+
}, [active, activeSrc, hover, hoverSrc, src]);
|
|
162
|
+
const suffixIconSrc = useMemo(() => {
|
|
163
|
+
if (!suffix) {
|
|
164
|
+
return void 0;
|
|
165
|
+
}
|
|
166
|
+
const {
|
|
167
|
+
activeSrc: activeSrc2,
|
|
168
|
+
hoverSrc: hoverSrc2,
|
|
169
|
+
src: src2
|
|
170
|
+
} = suffix;
|
|
171
|
+
if (active && activeSrc2) {
|
|
172
|
+
return activeSrc2;
|
|
173
|
+
}
|
|
174
|
+
if (hover && hoverSrc2) {
|
|
175
|
+
return hoverSrc2;
|
|
176
|
+
}
|
|
177
|
+
return src2;
|
|
178
|
+
}, [active, hover, suffix]);
|
|
179
|
+
return /* @__PURE__ */React__default.createElement(BaseIcon, __spreadProps$D(__spreadValues$W({
|
|
180
|
+
src: _src,
|
|
181
|
+
className: cs(IconWrapper, "icon-wrapper", className, isRotate && "is-rotate"),
|
|
182
|
+
suffixIconSrc,
|
|
183
|
+
height: iconHeight,
|
|
184
|
+
width: iconWidth,
|
|
185
|
+
prefixNode: prefix,
|
|
186
|
+
style: _.pickBy(__spreadValues$W({
|
|
187
|
+
cursor
|
|
188
|
+
}, style))
|
|
189
|
+
}, restProps), {
|
|
190
|
+
onMouseEnter: e => {
|
|
191
|
+
onMouseEnter == null ? void 0 : onMouseEnter(e);
|
|
192
|
+
if (hover) {
|
|
193
|
+
setHover(true);
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
onMouseMove: e => {
|
|
197
|
+
onMouseMove == null ? void 0 : onMouseMove(e);
|
|
198
|
+
if (hoverSrc) {
|
|
199
|
+
setHover(true);
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
onMouseLeave: e => {
|
|
203
|
+
onMouseLeave == null ? void 0 : onMouseLeave(e);
|
|
204
|
+
if (hoverSrc) {
|
|
205
|
+
setHover(false);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}));
|
|
209
|
+
});
|
|
210
|
+
|
|
211
|
+
var __defProp$V = Object.defineProperty;
|
|
212
|
+
var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
|
|
213
|
+
var __hasOwnProp$X = Object.prototype.hasOwnProperty;
|
|
214
|
+
var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
|
|
215
|
+
var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
216
|
+
var __spreadValues$V = (a, b) => {
|
|
217
|
+
for (var prop in b || (b = {}))
|
|
218
|
+
if (__hasOwnProp$X.call(b, prop))
|
|
219
|
+
__defNormalProp$V(a, prop, b[prop]);
|
|
220
|
+
if (__getOwnPropSymbols$X)
|
|
221
|
+
for (var prop of __getOwnPropSymbols$X(b)) {
|
|
222
|
+
if (__propIsEnum$X.call(b, prop))
|
|
223
|
+
__defNormalProp$V(a, prop, b[prop]);
|
|
224
|
+
}
|
|
225
|
+
return a;
|
|
226
|
+
};
|
|
227
|
+
var __objRest$y = (source, exclude) => {
|
|
228
|
+
var target = {};
|
|
229
|
+
for (var prop in source)
|
|
230
|
+
if (__hasOwnProp$X.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
231
|
+
target[prop] = source[prop];
|
|
232
|
+
if (source != null && __getOwnPropSymbols$X)
|
|
233
|
+
for (var prop of __getOwnPropSymbols$X(source)) {
|
|
234
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$X.call(source, prop))
|
|
235
|
+
target[prop] = source[prop];
|
|
236
|
+
}
|
|
237
|
+
return target;
|
|
238
|
+
};
|
|
239
|
+
const DropdownTransition = (props) => {
|
|
240
|
+
const _a = props, {
|
|
241
|
+
visible,
|
|
242
|
+
timeout,
|
|
243
|
+
children,
|
|
244
|
+
mountOnEnter = true,
|
|
245
|
+
unmountOnExit = true
|
|
246
|
+
} = _a, restProps = __objRest$y(_a, [
|
|
247
|
+
"visible",
|
|
248
|
+
"timeout",
|
|
249
|
+
"children",
|
|
250
|
+
"mountOnEnter",
|
|
251
|
+
"unmountOnExit"
|
|
252
|
+
]);
|
|
253
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
254
|
+
CSSTransition,
|
|
255
|
+
__spreadValues$V({
|
|
256
|
+
in: visible,
|
|
257
|
+
timeout: timeout || 200,
|
|
258
|
+
mountOnEnter,
|
|
259
|
+
unmountOnExit,
|
|
260
|
+
onEnter: (el) => {
|
|
261
|
+
el.style.height = `${el.scrollHeight}px`;
|
|
262
|
+
},
|
|
263
|
+
onEntered: (el) => {
|
|
264
|
+
el.removeAttribute("style");
|
|
265
|
+
},
|
|
266
|
+
onExit: (el) => {
|
|
267
|
+
el.style.height = `${el.offsetHeight}px`;
|
|
268
|
+
},
|
|
269
|
+
onExiting: (el) => {
|
|
270
|
+
el.style.height = "0px";
|
|
271
|
+
}
|
|
272
|
+
}, restProps),
|
|
273
|
+
children
|
|
274
|
+
);
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
const Card$1 = /*#__PURE__*/styled('div')({
|
|
278
|
+
name: "Card",
|
|
279
|
+
class: "c18gxmrl",
|
|
280
|
+
propsAsIs: false
|
|
281
|
+
});
|
|
282
|
+
const CloseButton = props => {
|
|
283
|
+
const {
|
|
284
|
+
className,
|
|
285
|
+
onClick
|
|
286
|
+
} = props;
|
|
287
|
+
return /* @__PURE__ */React__default.createElement(Icon, {
|
|
288
|
+
src: XmarkRemove24SecondaryIcon,
|
|
289
|
+
iconHeight: 24,
|
|
290
|
+
iconWidth: 24,
|
|
291
|
+
className,
|
|
292
|
+
onClick: e => {
|
|
293
|
+
e.stopPropagation();
|
|
294
|
+
onClick == null ? void 0 : onClick(e);
|
|
295
|
+
}
|
|
296
|
+
});
|
|
297
|
+
};
|
|
298
|
+
const AccordionCard = props => {
|
|
299
|
+
const {
|
|
300
|
+
header,
|
|
301
|
+
expand,
|
|
302
|
+
className,
|
|
303
|
+
defaultExpand = true,
|
|
304
|
+
mountOnEnter,
|
|
305
|
+
unmountOnExit
|
|
306
|
+
} = props;
|
|
307
|
+
const [active, setActive] = useState(defaultExpand);
|
|
308
|
+
return /* @__PURE__ */React__default.createElement(Card$1, {
|
|
309
|
+
className: cs(active && "active", className)
|
|
310
|
+
}, /* @__PURE__ */React__default.createElement("header", {
|
|
311
|
+
onClick: () => setActive(!active),
|
|
312
|
+
className: "show-close"
|
|
313
|
+
}, typeof header === "function" ? header(active) : header), /* @__PURE__ */React__default.createElement(DropdownTransition, {
|
|
314
|
+
visible: active,
|
|
315
|
+
timeout: 200,
|
|
316
|
+
classNames: "topo-dropdown",
|
|
317
|
+
mountOnEnter,
|
|
318
|
+
unmountOnExit
|
|
319
|
+
}, /* @__PURE__ */React__default.createElement("div", {
|
|
320
|
+
className: "expand"
|
|
321
|
+
}, expand)));
|
|
322
|
+
};
|
|
323
|
+
AccordionCard.CloseButton = CloseButton;
|
|
324
|
+
|
|
325
|
+
const CardWrapper$1 = /*#__PURE__*/styled$1('div')({
|
|
326
|
+
name: "CardWrapper",
|
|
327
|
+
class: "c1uzzomf",
|
|
328
|
+
propsAsIs: false
|
|
329
|
+
});
|
|
330
|
+
const DetailCard = props => {
|
|
331
|
+
const {
|
|
332
|
+
title
|
|
333
|
+
} = props;
|
|
334
|
+
return /* @__PURE__ */React__default.createElement(CardWrapper$1, null, title && /* @__PURE__ */React__default.createElement("div", {
|
|
335
|
+
className: "card-title"
|
|
336
|
+
}, title), /* @__PURE__ */React__default.createElement("div", {
|
|
337
|
+
className: "card-body"
|
|
338
|
+
}, props.children));
|
|
339
|
+
};
|
|
340
|
+
|
|
33
341
|
const EMPTY_FUNCTION = () => {
|
|
34
342
|
};
|
|
35
343
|
|
|
@@ -194,239 +502,63 @@ function formatPercent(input, decimals = 2, saturated = true) {
|
|
|
194
502
|
return {
|
|
195
503
|
value: "1",
|
|
196
504
|
unit: "%"
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
return {
|
|
200
|
-
value,
|
|
201
|
-
unit: "%"
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
function formatSpeed(input, decimals = 0) {
|
|
205
|
-
input /= 1e3;
|
|
206
|
-
if (input < 1)
|
|
207
|
-
return { value: "-", unit: "" };
|
|
208
|
-
const units = ["KbE", "MbE", "GbE", "TbE"];
|
|
209
|
-
const k = 1e3;
|
|
210
|
-
let i = Math.floor(Math.log(input) / Math.log(k));
|
|
211
|
-
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
212
|
-
return {
|
|
213
|
-
value: parseFloat((input / Math.pow(k, i)).toFixed(decimals)),
|
|
214
|
-
unit: units[i]
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
var img$9 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4.11092 7.0535C3.91566 6.85824 3.91566 6.54166 4.11092 6.3464C4.30619 6.15114 4.62277 6.15114 4.81803 6.3464L8.00001 9.52838L8.35226 9.17613L8.35356 9.17482L11.182 6.3464C11.3773 6.15114 11.6938 6.15114 11.8891 6.3464C12.0844 6.54166 12.0844 6.85824 11.8891 7.0535L10.4408 8.50184C10.4288 8.51384 10.4166 8.52604 10.4042 8.53843L9.13138 9.81122C9.11899 9.82361 9.1068 9.83581 9.09479 9.84781L9.06067 9.88193L9.057 9.88556C8.70964 10.2323 8.5226 10.41 8.30903 10.4794C8.10819 10.5447 7.89184 10.5447 7.691 10.4794C7.47748 10.4101 7.29048 10.2324 6.94327 9.88581L6.93935 9.88193L4.11092 7.0535Z' fill='%230080FF'/%3e%3c/svg%3e";
|
|
219
|
-
|
|
220
|
-
var img$8 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4.11092 7.0535C3.91566 6.85824 3.91566 6.54166 4.11092 6.3464C4.30619 6.15114 4.62277 6.15114 4.81803 6.3464L8.00001 9.52838L8.35226 9.17613L8.35356 9.17482L11.182 6.3464C11.3773 6.15114 11.6938 6.15114 11.8891 6.3464C12.0844 6.54166 12.0844 6.85824 11.8891 7.0535L10.4408 8.50184C10.4288 8.51384 10.4166 8.52604 10.4042 8.53843L9.13138 9.81122C9.11899 9.82361 9.1068 9.83581 9.09479 9.84781L9.06067 9.88193L9.057 9.88556C8.70964 10.2323 8.5226 10.41 8.30903 10.4794C8.10819 10.5447 7.89184 10.5447 7.691 10.4794C7.47748 10.4101 7.29048 10.2324 6.94327 9.88581L6.93935 9.88193L4.11092 7.0535Z' fill='%232C3852' fill-opacity='0.6'/%3e%3c/svg%3e";
|
|
221
|
-
|
|
222
|
-
var img$7 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.06067 3.75725C9.45119 3.36672 10.0844 3.36672 10.4749 3.75725C10.8654 4.14777 10.8654 4.78094 10.4749 5.17146L7.64645 7.99989L10.4749 10.8283C10.8654 11.2188 10.8654 11.852 10.4749 12.2425C10.0844 12.6331 9.45119 12.6331 9.06067 12.2425L5.9494 9.13126C5.55338 8.73524 5.35537 8.53723 5.28118 8.30891C5.21592 8.10806 5.21592 7.89172 5.28118 7.69087C5.35537 7.46254 5.55338 7.26454 5.9494 6.86852L9.06067 3.75725Z' fill='%230080FF'/%3e%3c/svg%3e";
|
|
223
|
-
|
|
224
|
-
var img$6 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.05028 9.4142L6.86865 5.59582C6.87513 5.58934 6.88156 5.58292 6.88793 5.57655C7.27116 5.19336 7.46641 5.00058 7.69101 4.92761C7.89185 4.86235 8.1082 4.86235 8.30904 4.92761C8.53737 5.00179 8.73538 5.1998 9.1314 5.59582L12.9498 9.4142C13.3403 9.80472 13.3403 10.4379 12.9498 10.8284C12.5592 11.2189 11.9261 11.2189 11.5356 10.8284L8.00003 7.29288L4.46449 10.8284C4.07397 11.2189 3.4408 11.2189 3.05028 10.8284C2.65975 10.4379 2.65975 9.80472 3.05028 9.4142Z' fill='%232C3852' fill-opacity='0.6'/%3e%3c/svg%3e";
|
|
225
|
-
|
|
226
|
-
var img$5 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 14.5C11.5899 14.5 14.5 11.5899 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 11.5899 4.41015 14.5 8 14.5ZM11.134 6.56615C11.3346 6.28527 11.2696 5.89493 10.9887 5.6943C10.7078 5.49367 10.3175 5.55872 10.1168 5.83961L7.26389 9.83372L5.81653 8.38635C5.57245 8.14227 5.17672 8.14227 4.93265 8.38635C4.68857 8.63043 4.68857 9.02616 4.93265 9.27023L6.90171 11.2393C7.03162 11.3692 7.2121 11.4354 7.3952 11.4202C7.57829 11.4051 7.74545 11.3101 7.85223 11.1606L11.134 6.56615Z' fill='%2300BA5D'/%3e%3c/svg%3e";
|
|
227
|
-
|
|
228
|
-
var img$4 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.81662 7.33209C10.1545 7.55506 10.3235 7.66655 10.3822 7.80742C10.4336 7.93055 10.4336 8.0691 10.3822 8.19224C10.3235 8.33311 10.1545 8.4446 9.81662 8.66757L6.81921 10.6454C6.4159 10.9115 6.21424 11.0445 6.04715 11.034C5.90158 11.0248 5.76727 10.9525 5.67943 10.8361C5.57861 10.7024 5.57861 10.4608 5.57861 9.97761L5.57861 6.02205C5.57861 5.53885 5.57861 5.29726 5.67943 5.16359C5.76727 5.04714 5.90158 4.97485 6.04715 4.96567C6.21424 4.95513 6.4159 5.08819 6.81921 5.35431L9.81662 7.33209Z' fill='%230080FF'/%3e%3c/svg%3e";
|
|
229
|
-
|
|
230
|
-
var img$3 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 14.5C11.5899 14.5 14.5 11.5899 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 11.5899 4.41015 14.5 8 14.5ZM8.75 11.5C8.75 11.9142 8.41421 12.25 8 12.25C7.58579 12.25 7.25 11.9142 7.25 11.5V7.99812C7.25 7.58391 7.58579 7.24812 8 7.24812C8.41421 7.24812 8.75 7.58391 8.75 7.99812V11.5ZM8.875 5.125C8.875 5.60825 8.48325 6 8 6C7.51675 6 7.125 5.60825 7.125 5.125C7.125 4.64175 7.51675 4.25 8 4.25C8.48325 4.25 8.875 4.64175 8.875 5.125Z' fill='%230080FF'/%3e%3c/svg%3e";
|
|
231
|
-
|
|
232
|
-
var img$2 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 14.5C11.5899 14.5 14.5 11.5899 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 11.5899 4.41015 14.5 8 14.5ZM8.75 11.5C8.75 11.9142 8.41421 12.25 8 12.25C7.58579 12.25 7.25 11.9142 7.25 11.5V7.99812C7.25 7.58391 7.58579 7.24812 8 7.24812C8.41421 7.24812 8.75 7.58391 8.75 7.99812V11.5ZM8.875 5.125C8.875 5.60825 8.48325 6 8 6C7.51675 6 7.125 5.60825 7.125 5.125C7.125 4.64175 7.51675 4.25 8 4.25C8.48325 4.25 8.875 4.64175 8.875 5.125Z' fill='%232C3852' fill-opacity='0.6'/%3e%3c/svg%3e";
|
|
233
|
-
|
|
234
|
-
var img$1 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.60245 1.88247C7.31193 2.00834 7.08625 2.37752 6.63487 3.11589L1.69402 11.1983C1.20753 11.9941 0.964285 12.392 0.992929 12.7198C1.0179 13.0056 1.16444 13.267 1.39527 13.4373C1.66005 13.6328 2.12641 13.6328 3.05915 13.6328H12.9408C13.8736 13.6328 14.34 13.6328 14.6047 13.4373C14.8356 13.267 14.9821 13.0056 15.0071 12.7198C15.0357 12.392 14.7925 11.9941 14.306 11.1983L9.36513 3.11589C8.91375 2.37752 8.68807 2.00834 8.39755 1.88247C8.14391 1.77258 7.85609 1.77258 7.60245 1.88247ZM7.25 5.38278C7.25 4.96856 7.58579 4.63278 8 4.63278C8.41421 4.63278 8.75 4.96856 8.75 5.38278V9.38278C8.75 9.79699 8.41421 10.1328 8 10.1328C7.58579 10.1328 7.25 9.79699 7.25 9.38278V5.38278ZM7.125 11.7578C7.125 11.2745 7.51675 10.8828 8 10.8828C8.48325 10.8828 8.875 11.2745 8.875 11.7578C8.875 12.241 8.48325 12.6328 8 12.6328C7.51675 12.6328 7.125 12.241 7.125 11.7578Z' fill='%23FEA008'/%3e%3c/svg%3e";
|
|
235
|
-
|
|
236
|
-
var img = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M4.47964 2.70117L2.70108 4.47973C2.35518 4.82563 2.18223 4.99859 2.05854 5.20042C1.94889 5.37936 1.86808 5.57445 1.81908 5.77853C1.76382 6.0087 1.76382 6.25329 1.76382 6.74247V9.25773C1.76382 9.74691 1.76382 9.9915 1.81908 10.2217C1.86808 10.4258 1.94889 10.6208 2.05854 10.7998C2.18223 11.0016 2.35518 11.1746 2.70108 11.5205L4.47964 13.299C4.82554 13.6449 4.9985 13.8179 5.20033 13.9416C5.37927 14.0512 5.57436 14.132 5.77843 14.181C6.00861 14.2363 6.2532 14.2363 6.74238 14.2363H9.25764C9.74682 14.2363 9.99141 14.2363 10.2216 14.181C10.4257 14.132 10.6207 14.0512 10.7997 13.9416C11.0015 13.8179 11.1745 13.6449 11.5204 13.299L13.2989 11.5205C13.6448 11.1746 13.8178 11.0016 13.9415 10.7998C14.0511 10.6208 14.1319 10.4258 14.1809 10.2217C14.2362 9.9915 14.2362 9.74691 14.2362 9.25773V6.74247C14.2362 6.25329 14.2362 6.0087 14.1809 5.77853C14.1319 5.57445 14.0511 5.37936 13.9415 5.20042C13.8178 4.99859 13.6448 4.82563 13.2989 4.47973L11.5204 2.70117C11.1745 2.35527 11.0015 2.18232 10.7997 2.05864C10.6207 1.94898 10.4257 1.86817 10.2216 1.81918C9.99141 1.76392 9.74682 1.76392 9.25764 1.76392H6.74238C6.2532 1.76392 6.00861 1.76392 5.77843 1.81918C5.57436 1.86817 5.37927 1.94898 5.20033 2.05864C4.99849 2.18232 4.82554 2.35527 4.47964 2.70117ZM9.94454 5.17157C10.1886 4.92749 10.5843 4.92749 10.8284 5.17157C11.0725 5.41564 11.0725 5.81137 10.8284 6.05545L8.88389 7.99998L10.8285 9.94457C11.0726 10.1886 11.0726 10.5844 10.8285 10.8284C10.5844 11.0725 10.1887 11.0725 9.9446 10.8284L8.00001 8.88386L6.05545 10.8284C5.81138 11.0725 5.41565 11.0725 5.17157 10.8284C4.92749 10.5843 4.92749 10.1886 5.17157 9.94454L7.11613 7.99998L5.17162 6.05548C4.92755 5.8114 4.92755 5.41567 5.17162 5.17159C5.4157 4.92752 5.81143 4.92752 6.05551 5.17159L8.00001 7.1161L9.94454 5.17157Z' fill='%23F0483E'/%3e%3c/svg%3e";
|
|
237
|
-
|
|
238
|
-
function getAlertIcon(type) {
|
|
239
|
-
switch (type) {
|
|
240
|
-
case "success":
|
|
241
|
-
return img$5;
|
|
242
|
-
case "info":
|
|
243
|
-
return img$3;
|
|
244
|
-
case "warning":
|
|
245
|
-
return img$1;
|
|
246
|
-
case "error":
|
|
247
|
-
return img;
|
|
248
|
-
case "normal":
|
|
249
|
-
return img$2;
|
|
250
|
-
default:
|
|
251
|
-
return img$2;
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
var __defProp$W = Object.defineProperty;
|
|
256
|
-
var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
|
|
257
|
-
var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
|
|
258
|
-
var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
|
|
259
|
-
var __defNormalProp$W = (obj, key, value) => key in obj ? __defProp$W(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
260
|
-
var __spreadValues$W = (a, b) => {
|
|
261
|
-
for (var prop in b || (b = {}))
|
|
262
|
-
if (__hasOwnProp$Y.call(b, prop))
|
|
263
|
-
__defNormalProp$W(a, prop, b[prop]);
|
|
264
|
-
if (__getOwnPropSymbols$Y)
|
|
265
|
-
for (var prop of __getOwnPropSymbols$Y(b)) {
|
|
266
|
-
if (__propIsEnum$Y.call(b, prop))
|
|
267
|
-
__defNormalProp$W(a, prop, b[prop]);
|
|
268
|
-
}
|
|
269
|
-
return a;
|
|
270
|
-
};
|
|
271
|
-
var __objRest$z = (source, exclude) => {
|
|
272
|
-
var target = {};
|
|
273
|
-
for (var prop in source)
|
|
274
|
-
if (__hasOwnProp$Y.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
275
|
-
target[prop] = source[prop];
|
|
276
|
-
if (source != null && __getOwnPropSymbols$Y)
|
|
277
|
-
for (var prop of __getOwnPropSymbols$Y(source)) {
|
|
278
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$Y.call(source, prop))
|
|
279
|
-
target[prop] = source[prop];
|
|
280
|
-
}
|
|
281
|
-
return target;
|
|
282
|
-
};
|
|
283
|
-
const BaseIcon = React__default.forwardRef(
|
|
284
|
-
(props, ref) => {
|
|
285
|
-
const _a = props, {
|
|
286
|
-
alt,
|
|
287
|
-
className,
|
|
288
|
-
width,
|
|
289
|
-
height,
|
|
290
|
-
cursor,
|
|
291
|
-
style,
|
|
292
|
-
children,
|
|
293
|
-
prefixNode,
|
|
294
|
-
suffixIconSrc: SuffixSrc,
|
|
295
|
-
src: Src
|
|
296
|
-
} = _a, HTMLSpanElementProps = __objRest$z(_a, [
|
|
297
|
-
"alt",
|
|
298
|
-
"className",
|
|
299
|
-
"width",
|
|
300
|
-
"height",
|
|
301
|
-
"cursor",
|
|
302
|
-
"style",
|
|
303
|
-
"children",
|
|
304
|
-
"prefixNode",
|
|
305
|
-
"suffixIconSrc",
|
|
306
|
-
"src"
|
|
307
|
-
]);
|
|
308
|
-
return /* @__PURE__ */ React__default.createElement(
|
|
309
|
-
"span",
|
|
310
|
-
__spreadValues$W({
|
|
311
|
-
ref,
|
|
312
|
-
className,
|
|
313
|
-
style: _.pickBy(__spreadValues$W({ cursor }, style))
|
|
314
|
-
}, HTMLSpanElementProps),
|
|
315
|
-
prefixNode,
|
|
316
|
-
/* @__PURE__ */ React__default.createElement("span", { className: "icon-inner" }, typeof Src === "string" ? /* @__PURE__ */ React__default.createElement("img", { alt, src: Src, width, height }) : /* @__PURE__ */ React__default.createElement(SVGUniqueID, null, Src({ width, height }))),
|
|
317
|
-
children && /* @__PURE__ */ React__default.createElement("span", { className: "icon-children" }, children),
|
|
318
|
-
SuffixSrc && /* @__PURE__ */ React__default.createElement("span", { className: "icon-inner suffix" }, typeof SuffixSrc === "string" ? /* @__PURE__ */ React__default.createElement("img", { alt, src: SuffixSrc, width, height }) : /* @__PURE__ */ React__default.createElement(SVGUniqueID, null, SuffixSrc({ width, height })))
|
|
319
|
-
);
|
|
320
|
-
}
|
|
321
|
-
);
|
|
322
|
-
|
|
323
|
-
var __defProp$V = Object.defineProperty;
|
|
324
|
-
var __defProps$D = Object.defineProperties;
|
|
325
|
-
var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
|
|
326
|
-
var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
|
|
327
|
-
var __hasOwnProp$X = Object.prototype.hasOwnProperty;
|
|
328
|
-
var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
|
|
329
|
-
var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, {
|
|
330
|
-
enumerable: true,
|
|
331
|
-
configurable: true,
|
|
332
|
-
writable: true,
|
|
333
|
-
value
|
|
334
|
-
}) : obj[key] = value;
|
|
335
|
-
var __spreadValues$V = (a, b) => {
|
|
336
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$X.call(b, prop)) __defNormalProp$V(a, prop, b[prop]);
|
|
337
|
-
if (__getOwnPropSymbols$X) for (var prop of __getOwnPropSymbols$X(b)) {
|
|
338
|
-
if (__propIsEnum$X.call(b, prop)) __defNormalProp$V(a, prop, b[prop]);
|
|
339
|
-
}
|
|
340
|
-
return a;
|
|
341
|
-
};
|
|
342
|
-
var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
|
|
343
|
-
var __objRest$y = (source, exclude) => {
|
|
344
|
-
var target = {};
|
|
345
|
-
for (var prop in source) if (__hasOwnProp$X.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
346
|
-
if (source != null && __getOwnPropSymbols$X) for (var prop of __getOwnPropSymbols$X(source)) {
|
|
347
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$X.call(source, prop)) target[prop] = source[prop];
|
|
348
|
-
}
|
|
349
|
-
return target;
|
|
350
|
-
};
|
|
351
|
-
const IconWrapper = "i1mrf09m";
|
|
352
|
-
const Icon = React__default.forwardRef((props, ref) => {
|
|
353
|
-
const _a = props,
|
|
354
|
-
{
|
|
355
|
-
src,
|
|
356
|
-
hoverSrc,
|
|
357
|
-
active,
|
|
358
|
-
activeSrc,
|
|
359
|
-
onMouseEnter,
|
|
360
|
-
onMouseLeave,
|
|
361
|
-
onMouseMove,
|
|
362
|
-
className,
|
|
363
|
-
iconWidth = 16,
|
|
364
|
-
iconHeight = 16,
|
|
365
|
-
cursor,
|
|
366
|
-
style,
|
|
367
|
-
isRotate,
|
|
368
|
-
prefix,
|
|
369
|
-
suffix
|
|
370
|
-
} = _a,
|
|
371
|
-
restProps = __objRest$y(_a, ["src", "hoverSrc", "active", "activeSrc", "onMouseEnter", "onMouseLeave", "onMouseMove", "className", "iconWidth", "iconHeight", "cursor", "style", "isRotate", "prefix", "suffix"]);
|
|
372
|
-
const [hover, setHover] = useState(false);
|
|
373
|
-
const _src = useMemo(() => {
|
|
374
|
-
if (active && activeSrc) {
|
|
375
|
-
return activeSrc;
|
|
376
|
-
}
|
|
377
|
-
if (hover && hoverSrc) {
|
|
378
|
-
return hoverSrc;
|
|
379
|
-
}
|
|
380
|
-
return src;
|
|
381
|
-
}, [active, activeSrc, hover, hoverSrc, src]);
|
|
382
|
-
const suffixIconSrc = useMemo(() => {
|
|
383
|
-
if (!suffix) {
|
|
384
|
-
return void 0;
|
|
385
|
-
}
|
|
386
|
-
const {
|
|
387
|
-
activeSrc: activeSrc2,
|
|
388
|
-
hoverSrc: hoverSrc2,
|
|
389
|
-
src: src2
|
|
390
|
-
} = suffix;
|
|
391
|
-
if (active && activeSrc2) {
|
|
392
|
-
return activeSrc2;
|
|
393
|
-
}
|
|
394
|
-
if (hover && hoverSrc2) {
|
|
395
|
-
return hoverSrc2;
|
|
396
|
-
}
|
|
397
|
-
return src2;
|
|
398
|
-
}, [active, hover, suffix]);
|
|
399
|
-
return /* @__PURE__ */React__default.createElement(BaseIcon, __spreadProps$D(__spreadValues$V({
|
|
400
|
-
src: _src,
|
|
401
|
-
className: cs(IconWrapper, "icon-wrapper", className, isRotate && "is-rotate"),
|
|
402
|
-
suffixIconSrc,
|
|
403
|
-
height: iconHeight,
|
|
404
|
-
width: iconWidth,
|
|
405
|
-
prefixNode: prefix,
|
|
406
|
-
style: _.pickBy(__spreadValues$V({
|
|
407
|
-
cursor
|
|
408
|
-
}, style))
|
|
409
|
-
}, restProps), {
|
|
410
|
-
onMouseEnter: e => {
|
|
411
|
-
onMouseEnter == null ? void 0 : onMouseEnter(e);
|
|
412
|
-
if (hover) {
|
|
413
|
-
setHover(true);
|
|
414
|
-
}
|
|
415
|
-
},
|
|
416
|
-
onMouseMove: e => {
|
|
417
|
-
onMouseMove == null ? void 0 : onMouseMove(e);
|
|
418
|
-
if (hoverSrc) {
|
|
419
|
-
setHover(true);
|
|
420
|
-
}
|
|
421
|
-
},
|
|
422
|
-
onMouseLeave: e => {
|
|
423
|
-
onMouseLeave == null ? void 0 : onMouseLeave(e);
|
|
424
|
-
if (hoverSrc) {
|
|
425
|
-
setHover(false);
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
}));
|
|
429
|
-
});
|
|
505
|
+
};
|
|
506
|
+
}
|
|
507
|
+
return {
|
|
508
|
+
value,
|
|
509
|
+
unit: "%"
|
|
510
|
+
};
|
|
511
|
+
}
|
|
512
|
+
function formatSpeed(input, decimals = 0) {
|
|
513
|
+
input /= 1e3;
|
|
514
|
+
if (input < 1)
|
|
515
|
+
return { value: "-", unit: "" };
|
|
516
|
+
const units = ["KbE", "MbE", "GbE", "TbE"];
|
|
517
|
+
const k = 1e3;
|
|
518
|
+
let i = Math.floor(Math.log(input) / Math.log(k));
|
|
519
|
+
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
520
|
+
return {
|
|
521
|
+
value: parseFloat((input / Math.pow(k, i)).toFixed(decimals)),
|
|
522
|
+
unit: units[i]
|
|
523
|
+
};
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
var img$9 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4.11092 7.0535C3.91566 6.85824 3.91566 6.54166 4.11092 6.3464C4.30619 6.15114 4.62277 6.15114 4.81803 6.3464L8.00001 9.52838L8.35226 9.17613L8.35356 9.17482L11.182 6.3464C11.3773 6.15114 11.6938 6.15114 11.8891 6.3464C12.0844 6.54166 12.0844 6.85824 11.8891 7.0535L10.4408 8.50184C10.4288 8.51384 10.4166 8.52604 10.4042 8.53843L9.13138 9.81122C9.11899 9.82361 9.1068 9.83581 9.09479 9.84781L9.06067 9.88193L9.057 9.88556C8.70964 10.2323 8.5226 10.41 8.30903 10.4794C8.10819 10.5447 7.89184 10.5447 7.691 10.4794C7.47748 10.4101 7.29048 10.2324 6.94327 9.88581L6.93935 9.88193L4.11092 7.0535Z' fill='%230080FF'/%3e%3c/svg%3e";
|
|
527
|
+
|
|
528
|
+
var img$8 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4.11092 7.0535C3.91566 6.85824 3.91566 6.54166 4.11092 6.3464C4.30619 6.15114 4.62277 6.15114 4.81803 6.3464L8.00001 9.52838L8.35226 9.17613L8.35356 9.17482L11.182 6.3464C11.3773 6.15114 11.6938 6.15114 11.8891 6.3464C12.0844 6.54166 12.0844 6.85824 11.8891 7.0535L10.4408 8.50184C10.4288 8.51384 10.4166 8.52604 10.4042 8.53843L9.13138 9.81122C9.11899 9.82361 9.1068 9.83581 9.09479 9.84781L9.06067 9.88193L9.057 9.88556C8.70964 10.2323 8.5226 10.41 8.30903 10.4794C8.10819 10.5447 7.89184 10.5447 7.691 10.4794C7.47748 10.4101 7.29048 10.2324 6.94327 9.88581L6.93935 9.88193L4.11092 7.0535Z' fill='%232C3852' fill-opacity='0.6'/%3e%3c/svg%3e";
|
|
529
|
+
|
|
530
|
+
var img$7 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.06067 3.75725C9.45119 3.36672 10.0844 3.36672 10.4749 3.75725C10.8654 4.14777 10.8654 4.78094 10.4749 5.17146L7.64645 7.99989L10.4749 10.8283C10.8654 11.2188 10.8654 11.852 10.4749 12.2425C10.0844 12.6331 9.45119 12.6331 9.06067 12.2425L5.9494 9.13126C5.55338 8.73524 5.35537 8.53723 5.28118 8.30891C5.21592 8.10806 5.21592 7.89172 5.28118 7.69087C5.35537 7.46254 5.55338 7.26454 5.9494 6.86852L9.06067 3.75725Z' fill='%230080FF'/%3e%3c/svg%3e";
|
|
531
|
+
|
|
532
|
+
var img$6 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.05028 9.4142L6.86865 5.59582C6.87513 5.58934 6.88156 5.58292 6.88793 5.57655C7.27116 5.19336 7.46641 5.00058 7.69101 4.92761C7.89185 4.86235 8.1082 4.86235 8.30904 4.92761C8.53737 5.00179 8.73538 5.1998 9.1314 5.59582L12.9498 9.4142C13.3403 9.80472 13.3403 10.4379 12.9498 10.8284C12.5592 11.2189 11.9261 11.2189 11.5356 10.8284L8.00003 7.29288L4.46449 10.8284C4.07397 11.2189 3.4408 11.2189 3.05028 10.8284C2.65975 10.4379 2.65975 9.80472 3.05028 9.4142Z' fill='%232C3852' fill-opacity='0.6'/%3e%3c/svg%3e";
|
|
533
|
+
|
|
534
|
+
var img$5 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 14.5C11.5899 14.5 14.5 11.5899 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 11.5899 4.41015 14.5 8 14.5ZM11.134 6.56615C11.3346 6.28527 11.2696 5.89493 10.9887 5.6943C10.7078 5.49367 10.3175 5.55872 10.1168 5.83961L7.26389 9.83372L5.81653 8.38635C5.57245 8.14227 5.17672 8.14227 4.93265 8.38635C4.68857 8.63043 4.68857 9.02616 4.93265 9.27023L6.90171 11.2393C7.03162 11.3692 7.2121 11.4354 7.3952 11.4202C7.57829 11.4051 7.74545 11.3101 7.85223 11.1606L11.134 6.56615Z' fill='%2300BA5D'/%3e%3c/svg%3e";
|
|
535
|
+
|
|
536
|
+
var img$4 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.81662 7.33209C10.1545 7.55506 10.3235 7.66655 10.3822 7.80742C10.4336 7.93055 10.4336 8.0691 10.3822 8.19224C10.3235 8.33311 10.1545 8.4446 9.81662 8.66757L6.81921 10.6454C6.4159 10.9115 6.21424 11.0445 6.04715 11.034C5.90158 11.0248 5.76727 10.9525 5.67943 10.8361C5.57861 10.7024 5.57861 10.4608 5.57861 9.97761L5.57861 6.02205C5.57861 5.53885 5.57861 5.29726 5.67943 5.16359C5.76727 5.04714 5.90158 4.97485 6.04715 4.96567C6.21424 4.95513 6.4159 5.08819 6.81921 5.35431L9.81662 7.33209Z' fill='%230080FF'/%3e%3c/svg%3e";
|
|
537
|
+
|
|
538
|
+
var img$3 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 14.5C11.5899 14.5 14.5 11.5899 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 11.5899 4.41015 14.5 8 14.5ZM8.75 11.5C8.75 11.9142 8.41421 12.25 8 12.25C7.58579 12.25 7.25 11.9142 7.25 11.5V7.99812C7.25 7.58391 7.58579 7.24812 8 7.24812C8.41421 7.24812 8.75 7.58391 8.75 7.99812V11.5ZM8.875 5.125C8.875 5.60825 8.48325 6 8 6C7.51675 6 7.125 5.60825 7.125 5.125C7.125 4.64175 7.51675 4.25 8 4.25C8.48325 4.25 8.875 4.64175 8.875 5.125Z' fill='%230080FF'/%3e%3c/svg%3e";
|
|
539
|
+
|
|
540
|
+
var img$2 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 14.5C11.5899 14.5 14.5 11.5899 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 11.5899 4.41015 14.5 8 14.5ZM8.75 11.5C8.75 11.9142 8.41421 12.25 8 12.25C7.58579 12.25 7.25 11.9142 7.25 11.5V7.99812C7.25 7.58391 7.58579 7.24812 8 7.24812C8.41421 7.24812 8.75 7.58391 8.75 7.99812V11.5ZM8.875 5.125C8.875 5.60825 8.48325 6 8 6C7.51675 6 7.125 5.60825 7.125 5.125C7.125 4.64175 7.51675 4.25 8 4.25C8.48325 4.25 8.875 4.64175 8.875 5.125Z' fill='%232C3852' fill-opacity='0.6'/%3e%3c/svg%3e";
|
|
541
|
+
|
|
542
|
+
var img$1 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.60245 1.88247C7.31193 2.00834 7.08625 2.37752 6.63487 3.11589L1.69402 11.1983C1.20753 11.9941 0.964285 12.392 0.992929 12.7198C1.0179 13.0056 1.16444 13.267 1.39527 13.4373C1.66005 13.6328 2.12641 13.6328 3.05915 13.6328H12.9408C13.8736 13.6328 14.34 13.6328 14.6047 13.4373C14.8356 13.267 14.9821 13.0056 15.0071 12.7198C15.0357 12.392 14.7925 11.9941 14.306 11.1983L9.36513 3.11589C8.91375 2.37752 8.68807 2.00834 8.39755 1.88247C8.14391 1.77258 7.85609 1.77258 7.60245 1.88247ZM7.25 5.38278C7.25 4.96856 7.58579 4.63278 8 4.63278C8.41421 4.63278 8.75 4.96856 8.75 5.38278V9.38278C8.75 9.79699 8.41421 10.1328 8 10.1328C7.58579 10.1328 7.25 9.79699 7.25 9.38278V5.38278ZM7.125 11.7578C7.125 11.2745 7.51675 10.8828 8 10.8828C8.48325 10.8828 8.875 11.2745 8.875 11.7578C8.875 12.241 8.48325 12.6328 8 12.6328C7.51675 12.6328 7.125 12.241 7.125 11.7578Z' fill='%23FEA008'/%3e%3c/svg%3e";
|
|
543
|
+
|
|
544
|
+
var img = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M4.47964 2.70117L2.70108 4.47973C2.35518 4.82563 2.18223 4.99859 2.05854 5.20042C1.94889 5.37936 1.86808 5.57445 1.81908 5.77853C1.76382 6.0087 1.76382 6.25329 1.76382 6.74247V9.25773C1.76382 9.74691 1.76382 9.9915 1.81908 10.2217C1.86808 10.4258 1.94889 10.6208 2.05854 10.7998C2.18223 11.0016 2.35518 11.1746 2.70108 11.5205L4.47964 13.299C4.82554 13.6449 4.9985 13.8179 5.20033 13.9416C5.37927 14.0512 5.57436 14.132 5.77843 14.181C6.00861 14.2363 6.2532 14.2363 6.74238 14.2363H9.25764C9.74682 14.2363 9.99141 14.2363 10.2216 14.181C10.4257 14.132 10.6207 14.0512 10.7997 13.9416C11.0015 13.8179 11.1745 13.6449 11.5204 13.299L13.2989 11.5205C13.6448 11.1746 13.8178 11.0016 13.9415 10.7998C14.0511 10.6208 14.1319 10.4258 14.1809 10.2217C14.2362 9.9915 14.2362 9.74691 14.2362 9.25773V6.74247C14.2362 6.25329 14.2362 6.0087 14.1809 5.77853C14.1319 5.57445 14.0511 5.37936 13.9415 5.20042C13.8178 4.99859 13.6448 4.82563 13.2989 4.47973L11.5204 2.70117C11.1745 2.35527 11.0015 2.18232 10.7997 2.05864C10.6207 1.94898 10.4257 1.86817 10.2216 1.81918C9.99141 1.76392 9.74682 1.76392 9.25764 1.76392H6.74238C6.2532 1.76392 6.00861 1.76392 5.77843 1.81918C5.57436 1.86817 5.37927 1.94898 5.20033 2.05864C4.99849 2.18232 4.82554 2.35527 4.47964 2.70117ZM9.94454 5.17157C10.1886 4.92749 10.5843 4.92749 10.8284 5.17157C11.0725 5.41564 11.0725 5.81137 10.8284 6.05545L8.88389 7.99998L10.8285 9.94457C11.0726 10.1886 11.0726 10.5844 10.8285 10.8284C10.5844 11.0725 10.1887 11.0725 9.9446 10.8284L8.00001 8.88386L6.05545 10.8284C5.81138 11.0725 5.41565 11.0725 5.17157 10.8284C4.92749 10.5843 4.92749 10.1886 5.17157 9.94454L7.11613 7.99998L5.17162 6.05548C4.92755 5.8114 4.92755 5.41567 5.17162 5.17159C5.4157 4.92752 5.81143 4.92752 6.05551 5.17159L8.00001 7.1161L9.94454 5.17157Z' fill='%23F0483E'/%3e%3c/svg%3e";
|
|
545
|
+
|
|
546
|
+
function getAlertIcon(type) {
|
|
547
|
+
switch (type) {
|
|
548
|
+
case "success":
|
|
549
|
+
return img$5;
|
|
550
|
+
case "info":
|
|
551
|
+
return img$3;
|
|
552
|
+
case "warning":
|
|
553
|
+
return img$1;
|
|
554
|
+
case "error":
|
|
555
|
+
return img;
|
|
556
|
+
case "normal":
|
|
557
|
+
return img$2;
|
|
558
|
+
default:
|
|
559
|
+
return img$2;
|
|
560
|
+
}
|
|
561
|
+
}
|
|
430
562
|
|
|
431
563
|
var __defProp$U = Object.defineProperty;
|
|
432
564
|
var __defProps$C = Object.defineProperties;
|
|
@@ -990,7 +1122,7 @@ var __objRest$t = (source, exclude) => {
|
|
|
990
1122
|
return target;
|
|
991
1123
|
};
|
|
992
1124
|
const ButtonStyle = "bpq0js6";
|
|
993
|
-
const ButtonGroupContainer = /*#__PURE__*/styled('div')({
|
|
1125
|
+
const ButtonGroupContainer = /*#__PURE__*/styled$1('div')({
|
|
994
1126
|
name: "ButtonGroupContainer",
|
|
995
1127
|
class: "b15sn34c",
|
|
996
1128
|
propsAsIs: false
|
|
@@ -1100,13 +1232,13 @@ const Byte = ({
|
|
|
1100
1232
|
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
1101
1233
|
};
|
|
1102
1234
|
|
|
1103
|
-
const CardBody = /*#__PURE__*/styled('div')({
|
|
1235
|
+
const CardBody = /*#__PURE__*/styled$1('div')({
|
|
1104
1236
|
name: "CardBody",
|
|
1105
1237
|
class: "c1k4vanq",
|
|
1106
1238
|
propsAsIs: false
|
|
1107
1239
|
});
|
|
1108
1240
|
|
|
1109
|
-
const CardTitle = /*#__PURE__*/styled('div')({
|
|
1241
|
+
const CardTitle = /*#__PURE__*/styled$1('div')({
|
|
1110
1242
|
name: "CardTitle",
|
|
1111
1243
|
class: "c1udgdh2",
|
|
1112
1244
|
propsAsIs: false
|
|
@@ -1153,7 +1285,7 @@ const Wrapper = forwardRef(props => {
|
|
|
1153
1285
|
}, otherProps), children);
|
|
1154
1286
|
});
|
|
1155
1287
|
const _exp$3 = () => Wrapper;
|
|
1156
|
-
const CardWrapper = /*#__PURE__*/styled(_exp$3())({
|
|
1288
|
+
const CardWrapper = /*#__PURE__*/styled$1(_exp$3())({
|
|
1157
1289
|
name: "CardWrapper",
|
|
1158
1290
|
class: "cav4gt6",
|
|
1159
1291
|
propsAsIs: true
|
|
@@ -1294,7 +1426,7 @@ const ExpandableContainer = props => {
|
|
|
1294
1426
|
const {
|
|
1295
1427
|
children
|
|
1296
1428
|
} = props;
|
|
1297
|
-
return /* @__PURE__ */React__default.createElement(Card$
|
|
1429
|
+
return /* @__PURE__ */React__default.createElement(Card$2, {
|
|
1298
1430
|
className: card
|
|
1299
1431
|
}, children);
|
|
1300
1432
|
};
|
|
@@ -1456,12 +1588,12 @@ const FieldsDateTimeRange = (_a) => {
|
|
|
1456
1588
|
));
|
|
1457
1589
|
};
|
|
1458
1590
|
|
|
1459
|
-
const WizardBody = /*#__PURE__*/styled('div')({
|
|
1591
|
+
const WizardBody = /*#__PURE__*/styled$1('div')({
|
|
1460
1592
|
name: "WizardBody",
|
|
1461
1593
|
class: "w1vvwdlp",
|
|
1462
1594
|
propsAsIs: false
|
|
1463
1595
|
});
|
|
1464
|
-
const FullView = /*#__PURE__*/styled('div')({
|
|
1596
|
+
const FullView = /*#__PURE__*/styled$1('div')({
|
|
1465
1597
|
name: "FullView",
|
|
1466
1598
|
class: "f1rest1f",
|
|
1467
1599
|
propsAsIs: false
|
|
@@ -1708,7 +1840,7 @@ const _exp5$1 = () => props => `"${props.prefix ? props.prefix : ""}"`;
|
|
|
1708
1840
|
const _exp6$1 = () => ({
|
|
1709
1841
|
prefix
|
|
1710
1842
|
}) => prefix ? "flex" : "none";
|
|
1711
|
-
const AntdInputNumberStyled = /*#__PURE__*/styled(_exp$2())({
|
|
1843
|
+
const AntdInputNumberStyled = /*#__PURE__*/styled$1(_exp$2())({
|
|
1712
1844
|
name: "AntdInputNumberStyled",
|
|
1713
1845
|
class: "a6dbbkm",
|
|
1714
1846
|
propsAsIs: true,
|
|
@@ -1975,7 +2107,7 @@ const _exp5 = () => props => `"${props.prefix ? props.prefix : ""}"`;
|
|
|
1975
2107
|
const _exp6 = () => ({
|
|
1976
2108
|
prefix
|
|
1977
2109
|
}) => prefix ? "flex" : "none";
|
|
1978
|
-
const AntdIntStyled = /*#__PURE__*/styled(_exp$1())({
|
|
2110
|
+
const AntdIntStyled = /*#__PURE__*/styled$1(_exp$1())({
|
|
1979
2111
|
name: "AntdIntStyled",
|
|
1980
2112
|
class: "at4ovwe",
|
|
1981
2113
|
propsAsIs: true,
|
|
@@ -2069,7 +2201,7 @@ const FieldsInteger = (_a) => {
|
|
|
2069
2201
|
));
|
|
2070
2202
|
};
|
|
2071
2203
|
|
|
2072
|
-
const InputTagItem = /*#__PURE__*/styled('span')({
|
|
2204
|
+
const InputTagItem = /*#__PURE__*/styled$1('span')({
|
|
2073
2205
|
name: "InputTagItem",
|
|
2074
2206
|
class: "iap75of",
|
|
2075
2207
|
propsAsIs: false
|
|
@@ -2627,20 +2759,11 @@ const Frequency = ({
|
|
|
2627
2759
|
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
2628
2760
|
};
|
|
2629
2761
|
|
|
2630
|
-
const _exp = () => Input$1.Group;
|
|
2631
|
-
const InputGroup = /*#__PURE__*/styled(_exp())({
|
|
2632
|
-
name: "InputGroup",
|
|
2633
|
-
class: "iiqau4c",
|
|
2634
|
-
propsAsIs: true
|
|
2635
|
-
});
|
|
2636
|
-
|
|
2637
2762
|
var __defProp$r = Object.defineProperty;
|
|
2638
|
-
var __defProps$k = Object.defineProperties;
|
|
2639
|
-
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
|
2640
2763
|
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
|
2641
2764
|
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
|
2642
2765
|
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
|
2643
|
-
var __defNormalProp$r = (obj,
|
|
2766
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2644
2767
|
var __spreadValues$r = (a, b) => {
|
|
2645
2768
|
for (var prop in b || (b = {}))
|
|
2646
2769
|
if (__hasOwnProp$s.call(b, prop))
|
|
@@ -2652,6 +2775,67 @@ var __spreadValues$r = (a, b) => {
|
|
|
2652
2775
|
}
|
|
2653
2776
|
return a;
|
|
2654
2777
|
};
|
|
2778
|
+
const ParrotTrans = (props) => {
|
|
2779
|
+
const { i18n } = useParrotTranslation();
|
|
2780
|
+
return /* @__PURE__ */ React__default.createElement(Trans, __spreadValues$r({ i18n }, props));
|
|
2781
|
+
};
|
|
2782
|
+
|
|
2783
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
|
2784
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
|
2785
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
|
2786
|
+
var __objRest$a = (source, exclude) => {
|
|
2787
|
+
var target = {};
|
|
2788
|
+
for (var prop in source) if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
2789
|
+
if (source != null && __getOwnPropSymbols$r) for (var prop of __getOwnPropSymbols$r(source)) {
|
|
2790
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop)) target[prop] = source[prop];
|
|
2791
|
+
}
|
|
2792
|
+
return target;
|
|
2793
|
+
};
|
|
2794
|
+
const NameTag = /*#__PURE__*/styled$1('span')({
|
|
2795
|
+
name: "NameTag",
|
|
2796
|
+
class: "n3qomhu",
|
|
2797
|
+
propsAsIs: false
|
|
2798
|
+
});
|
|
2799
|
+
const I18nNameTag = props => {
|
|
2800
|
+
const _a = props,
|
|
2801
|
+
{
|
|
2802
|
+
name,
|
|
2803
|
+
i18nKey
|
|
2804
|
+
} = _a,
|
|
2805
|
+
otherOption = __objRest$a(_a, ["name", "i18nKey"]);
|
|
2806
|
+
return /* @__PURE__ */React__default.createElement(ParrotTrans, {
|
|
2807
|
+
i18nKey,
|
|
2808
|
+
tOptions: otherOption
|
|
2809
|
+
}, "h", /* @__PURE__ */React__default.createElement(NameTag, null, {
|
|
2810
|
+
name
|
|
2811
|
+
}));
|
|
2812
|
+
};
|
|
2813
|
+
|
|
2814
|
+
const _exp = () => Input$1.Group;
|
|
2815
|
+
const InputGroup = /*#__PURE__*/styled$1(_exp())({
|
|
2816
|
+
name: "InputGroup",
|
|
2817
|
+
class: "iiqau4c",
|
|
2818
|
+
propsAsIs: true
|
|
2819
|
+
});
|
|
2820
|
+
|
|
2821
|
+
var __defProp$q = Object.defineProperty;
|
|
2822
|
+
var __defProps$k = Object.defineProperties;
|
|
2823
|
+
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
|
2824
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
2825
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
2826
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
2827
|
+
var __defNormalProp$q = (obj, key2, value) => key2 in obj ? __defProp$q(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value;
|
|
2828
|
+
var __spreadValues$q = (a, b) => {
|
|
2829
|
+
for (var prop in b || (b = {}))
|
|
2830
|
+
if (__hasOwnProp$q.call(b, prop))
|
|
2831
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
2832
|
+
if (__getOwnPropSymbols$q)
|
|
2833
|
+
for (var prop of __getOwnPropSymbols$q(b)) {
|
|
2834
|
+
if (__propIsEnum$q.call(b, prop))
|
|
2835
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
2836
|
+
}
|
|
2837
|
+
return a;
|
|
2838
|
+
};
|
|
2655
2839
|
var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
|
|
2656
2840
|
let messageInstance;
|
|
2657
2841
|
let defaultDuration = 3;
|
|
@@ -2759,7 +2943,7 @@ function notice(args) {
|
|
|
2759
2943
|
}
|
|
2760
2944
|
getRCNotificationInstance(args, ({ prefixCls, instance }) => {
|
|
2761
2945
|
instance.notice(
|
|
2762
|
-
getRCNoticeProps(__spreadProps$k(__spreadValues$
|
|
2946
|
+
getRCNoticeProps(__spreadProps$k(__spreadValues$q({}, args), { key: target, onClose: callback }), prefixCls)
|
|
2763
2947
|
);
|
|
2764
2948
|
});
|
|
2765
2949
|
});
|
|
@@ -2788,7 +2972,7 @@ const api = {
|
|
|
2788
2972
|
function attachTypeApi(originalApi, type) {
|
|
2789
2973
|
originalApi[type] = (content, duration, onClose) => {
|
|
2790
2974
|
if (isArgsProps(content)) {
|
|
2791
|
-
return originalApi.open(__spreadProps$k(__spreadValues$
|
|
2975
|
+
return originalApi.open(__spreadProps$k(__spreadValues$q({}, content), { type }));
|
|
2792
2976
|
}
|
|
2793
2977
|
if (typeof duration === "function") {
|
|
2794
2978
|
onClose = duration;
|
|
@@ -2802,21 +2986,21 @@ function attachTypeApi(originalApi, type) {
|
|
|
2802
2986
|
);
|
|
2803
2987
|
api.warn = api.warning;
|
|
2804
2988
|
|
|
2805
|
-
var __defProp$
|
|
2989
|
+
var __defProp$p = Object.defineProperty;
|
|
2806
2990
|
var __defProps$j = Object.defineProperties;
|
|
2807
2991
|
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
2808
|
-
var __getOwnPropSymbols$
|
|
2809
|
-
var __hasOwnProp$
|
|
2810
|
-
var __propIsEnum$
|
|
2811
|
-
var __defNormalProp$
|
|
2812
|
-
var __spreadValues$
|
|
2992
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
2993
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
2994
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
2995
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2996
|
+
var __spreadValues$p = (a, b) => {
|
|
2813
2997
|
for (var prop in b || (b = {}))
|
|
2814
|
-
if (__hasOwnProp$
|
|
2815
|
-
__defNormalProp$
|
|
2816
|
-
if (__getOwnPropSymbols$
|
|
2817
|
-
for (var prop of __getOwnPropSymbols$
|
|
2818
|
-
if (__propIsEnum$
|
|
2819
|
-
__defNormalProp$
|
|
2998
|
+
if (__hasOwnProp$p.call(b, prop))
|
|
2999
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
3000
|
+
if (__getOwnPropSymbols$p)
|
|
3001
|
+
for (var prop of __getOwnPropSymbols$p(b)) {
|
|
3002
|
+
if (__propIsEnum$p.call(b, prop))
|
|
3003
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
2820
3004
|
}
|
|
2821
3005
|
return a;
|
|
2822
3006
|
};
|
|
@@ -2830,8 +3014,8 @@ const chartReducer = (state = initialChartState, action) => {
|
|
|
2830
3014
|
switch (action.type) {
|
|
2831
3015
|
case "SET_POINTER" /* SET_POINTER */: {
|
|
2832
3016
|
const { uuid, left, text, visible, value } = action.payload;
|
|
2833
|
-
return __spreadProps$j(__spreadValues$
|
|
2834
|
-
pointers: __spreadProps$j(__spreadValues$
|
|
3017
|
+
return __spreadProps$j(__spreadValues$p({}, state), {
|
|
3018
|
+
pointers: __spreadProps$j(__spreadValues$p({}, state.pointers), {
|
|
2835
3019
|
[uuid]: {
|
|
2836
3020
|
left,
|
|
2837
3021
|
text,
|
|
@@ -2843,16 +3027,16 @@ const chartReducer = (state = initialChartState, action) => {
|
|
|
2843
3027
|
}
|
|
2844
3028
|
case "SET_RESOURCE_DATA" /* SET_RESOURCE_DATA */: {
|
|
2845
3029
|
const { uuid, data } = action.payload;
|
|
2846
|
-
return __spreadProps$j(__spreadValues$
|
|
2847
|
-
resourceData: __spreadProps$j(__spreadValues$
|
|
3030
|
+
return __spreadProps$j(__spreadValues$p({}, state), {
|
|
3031
|
+
resourceData: __spreadProps$j(__spreadValues$p({}, state.resourceData), {
|
|
2848
3032
|
[uuid]: data
|
|
2849
3033
|
})
|
|
2850
3034
|
});
|
|
2851
3035
|
}
|
|
2852
3036
|
case "SET_AVERAGE_DATA" /* SET_AVERAGE_DATA */: {
|
|
2853
3037
|
const { uuid, average } = action.payload;
|
|
2854
|
-
return __spreadProps$j(__spreadValues$
|
|
2855
|
-
averageData: __spreadProps$j(__spreadValues$
|
|
3038
|
+
return __spreadProps$j(__spreadValues$p({}, state), {
|
|
3039
|
+
averageData: __spreadProps$j(__spreadValues$p({}, state.averageData), {
|
|
2856
3040
|
[uuid]: average
|
|
2857
3041
|
})
|
|
2858
3042
|
});
|
|
@@ -2863,21 +3047,21 @@ const chartReducer = (state = initialChartState, action) => {
|
|
|
2863
3047
|
}
|
|
2864
3048
|
};
|
|
2865
3049
|
|
|
2866
|
-
var __defProp$
|
|
3050
|
+
var __defProp$o = Object.defineProperty;
|
|
2867
3051
|
var __defProps$i = Object.defineProperties;
|
|
2868
3052
|
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
2869
|
-
var __getOwnPropSymbols$
|
|
2870
|
-
var __hasOwnProp$
|
|
2871
|
-
var __propIsEnum$
|
|
2872
|
-
var __defNormalProp$
|
|
2873
|
-
var __spreadValues$
|
|
3053
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
3054
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
3055
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
3056
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3057
|
+
var __spreadValues$o = (a, b) => {
|
|
2874
3058
|
for (var prop in b || (b = {}))
|
|
2875
|
-
if (__hasOwnProp$
|
|
2876
|
-
__defNormalProp$
|
|
2877
|
-
if (__getOwnPropSymbols$
|
|
2878
|
-
for (var prop of __getOwnPropSymbols$
|
|
2879
|
-
if (__propIsEnum$
|
|
2880
|
-
__defNormalProp$
|
|
3059
|
+
if (__hasOwnProp$o.call(b, prop))
|
|
3060
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
3061
|
+
if (__getOwnPropSymbols$o)
|
|
3062
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
|
3063
|
+
if (__propIsEnum$o.call(b, prop))
|
|
3064
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
2881
3065
|
}
|
|
2882
3066
|
return a;
|
|
2883
3067
|
};
|
|
@@ -2902,22 +3086,22 @@ const modalReducer = (state = initialModalState, action) => {
|
|
|
2902
3086
|
)) {
|
|
2903
3087
|
return state;
|
|
2904
3088
|
}
|
|
2905
|
-
return __spreadProps$i(__spreadValues$
|
|
2906
|
-
stack: state.stack.concat(__spreadProps$i(__spreadValues$
|
|
3089
|
+
return __spreadProps$i(__spreadValues$o({}, state), {
|
|
3090
|
+
stack: state.stack.concat(__spreadProps$i(__spreadValues$o({}, action.payload), {
|
|
2907
3091
|
id: MODAL_ID++
|
|
2908
3092
|
}))
|
|
2909
3093
|
});
|
|
2910
3094
|
case "POP_MODAL" /* POP_MODAL */:
|
|
2911
|
-
return __spreadProps$i(__spreadValues$
|
|
3095
|
+
return __spreadProps$i(__spreadValues$o({}, state), {
|
|
2912
3096
|
stack: state.stack.slice(0, -1)
|
|
2913
3097
|
});
|
|
2914
3098
|
case "REMOVE_MODAL" /* REMOVE_MODAL */:
|
|
2915
|
-
return __spreadProps$i(__spreadValues$
|
|
3099
|
+
return __spreadProps$i(__spreadValues$o({}, state), {
|
|
2916
3100
|
closeId: 0,
|
|
2917
3101
|
stack: state.stack.filter((m) => m.id !== action.id)
|
|
2918
3102
|
});
|
|
2919
3103
|
case "CLOSE_MODAL" /* CLOSE_MODAL */:
|
|
2920
|
-
return __spreadProps$i(__spreadValues$
|
|
3104
|
+
return __spreadProps$i(__spreadValues$o({}, state), {
|
|
2921
3105
|
closeId: action.id
|
|
2922
3106
|
});
|
|
2923
3107
|
default:
|
|
@@ -2974,33 +3158,33 @@ const VerticalStyle = "v1p8siwu";
|
|
|
2974
3158
|
const HorizontalStepContentStyle = "h1xo7yjb";
|
|
2975
3159
|
const VerticalStepContentStyle = "v1f2f7cy";
|
|
2976
3160
|
|
|
2977
|
-
var __defProp$
|
|
3161
|
+
var __defProp$n = Object.defineProperty;
|
|
2978
3162
|
var __defProps$h = Object.defineProperties;
|
|
2979
3163
|
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
2980
|
-
var __getOwnPropSymbols$
|
|
2981
|
-
var __hasOwnProp$
|
|
2982
|
-
var __propIsEnum$
|
|
2983
|
-
var __defNormalProp$
|
|
2984
|
-
var __spreadValues$
|
|
3164
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
3165
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
3166
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
3167
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3168
|
+
var __spreadValues$n = (a, b) => {
|
|
2985
3169
|
for (var prop in b || (b = {}))
|
|
2986
|
-
if (__hasOwnProp$
|
|
2987
|
-
__defNormalProp$
|
|
2988
|
-
if (__getOwnPropSymbols$
|
|
2989
|
-
for (var prop of __getOwnPropSymbols$
|
|
2990
|
-
if (__propIsEnum$
|
|
2991
|
-
__defNormalProp$
|
|
3170
|
+
if (__hasOwnProp$n.call(b, prop))
|
|
3171
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
3172
|
+
if (__getOwnPropSymbols$n)
|
|
3173
|
+
for (var prop of __getOwnPropSymbols$n(b)) {
|
|
3174
|
+
if (__propIsEnum$n.call(b, prop))
|
|
3175
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
2992
3176
|
}
|
|
2993
3177
|
return a;
|
|
2994
3178
|
};
|
|
2995
3179
|
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
2996
|
-
var __objRest$
|
|
3180
|
+
var __objRest$9 = (source, exclude) => {
|
|
2997
3181
|
var target = {};
|
|
2998
3182
|
for (var prop in source)
|
|
2999
|
-
if (__hasOwnProp$
|
|
3183
|
+
if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3000
3184
|
target[prop] = source[prop];
|
|
3001
|
-
if (source != null && __getOwnPropSymbols$
|
|
3002
|
-
for (var prop of __getOwnPropSymbols$
|
|
3003
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3185
|
+
if (source != null && __getOwnPropSymbols$n)
|
|
3186
|
+
for (var prop of __getOwnPropSymbols$n(source)) {
|
|
3187
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop))
|
|
3004
3188
|
target[prop] = source[prop];
|
|
3005
3189
|
}
|
|
3006
3190
|
return target;
|
|
@@ -3016,7 +3200,7 @@ const StepTitle = (props) => {
|
|
|
3016
3200
|
setTooltipEnable({});
|
|
3017
3201
|
}
|
|
3018
3202
|
}, [textRef]);
|
|
3019
|
-
return /* @__PURE__ */ React__default.createElement(Tooltip, __spreadProps$h(__spreadValues$
|
|
3203
|
+
return /* @__PURE__ */ React__default.createElement(Tooltip, __spreadProps$h(__spreadValues$n({}, tooltipEnable), { title: step.title }), /* @__PURE__ */ React__default.createElement(
|
|
3020
3204
|
"div",
|
|
3021
3205
|
{
|
|
3022
3206
|
className: isVerticalMode ? VerticalStepContentStyle : HorizontalStepContentStyle
|
|
@@ -3032,7 +3216,7 @@ const Steps = (props) => {
|
|
|
3032
3216
|
containerClassname,
|
|
3033
3217
|
current = 0,
|
|
3034
3218
|
disabled
|
|
3035
|
-
} = _a, stepsProps = __objRest$
|
|
3219
|
+
} = _a, stepsProps = __objRest$9(_a, [
|
|
3036
3220
|
"stepsConfig",
|
|
3037
3221
|
"direction",
|
|
3038
3222
|
"containerClassname",
|
|
@@ -3051,14 +3235,14 @@ const Steps = (props) => {
|
|
|
3051
3235
|
},
|
|
3052
3236
|
/* @__PURE__ */ React__default.createElement(
|
|
3053
3237
|
Steps$1,
|
|
3054
|
-
__spreadProps$h(__spreadValues$
|
|
3238
|
+
__spreadProps$h(__spreadValues$n({}, stepsProps), {
|
|
3055
3239
|
direction,
|
|
3056
3240
|
current,
|
|
3057
3241
|
type: "default"
|
|
3058
3242
|
}),
|
|
3059
3243
|
(stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */ React__default.createElement(
|
|
3060
3244
|
Steps$1.Step,
|
|
3061
|
-
__spreadProps$h(__spreadValues$
|
|
3245
|
+
__spreadProps$h(__spreadValues$n({
|
|
3062
3246
|
key: index
|
|
3063
3247
|
}, step), {
|
|
3064
3248
|
disabled: disabled || index > current,
|
|
@@ -3077,33 +3261,33 @@ const Steps = (props) => {
|
|
|
3077
3261
|
);
|
|
3078
3262
|
};
|
|
3079
3263
|
|
|
3080
|
-
var __defProp$
|
|
3264
|
+
var __defProp$m = Object.defineProperty;
|
|
3081
3265
|
var __defProps$g = Object.defineProperties;
|
|
3082
3266
|
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
3083
|
-
var __getOwnPropSymbols$
|
|
3084
|
-
var __hasOwnProp$
|
|
3085
|
-
var __propIsEnum$
|
|
3086
|
-
var __defNormalProp$
|
|
3087
|
-
var __spreadValues$
|
|
3267
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
3268
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
3269
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
3270
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3271
|
+
var __spreadValues$m = (a, b) => {
|
|
3088
3272
|
for (var prop in b || (b = {}))
|
|
3089
|
-
if (__hasOwnProp$
|
|
3090
|
-
__defNormalProp$
|
|
3091
|
-
if (__getOwnPropSymbols$
|
|
3092
|
-
for (var prop of __getOwnPropSymbols$
|
|
3093
|
-
if (__propIsEnum$
|
|
3094
|
-
__defNormalProp$
|
|
3273
|
+
if (__hasOwnProp$m.call(b, prop))
|
|
3274
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
3275
|
+
if (__getOwnPropSymbols$m)
|
|
3276
|
+
for (var prop of __getOwnPropSymbols$m(b)) {
|
|
3277
|
+
if (__propIsEnum$m.call(b, prop))
|
|
3278
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
3095
3279
|
}
|
|
3096
3280
|
return a;
|
|
3097
3281
|
};
|
|
3098
3282
|
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
3099
|
-
var __objRest$
|
|
3283
|
+
var __objRest$8 = (source, exclude) => {
|
|
3100
3284
|
var target = {};
|
|
3101
3285
|
for (var prop in source)
|
|
3102
|
-
if (__hasOwnProp$
|
|
3286
|
+
if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3103
3287
|
target[prop] = source[prop];
|
|
3104
|
-
if (source != null && __getOwnPropSymbols$
|
|
3105
|
-
for (var prop of __getOwnPropSymbols$
|
|
3106
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3288
|
+
if (source != null && __getOwnPropSymbols$m)
|
|
3289
|
+
for (var prop of __getOwnPropSymbols$m(source)) {
|
|
3290
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
|
|
3107
3291
|
target[prop] = source[prop];
|
|
3108
3292
|
}
|
|
3109
3293
|
return target;
|
|
@@ -3130,7 +3314,7 @@ const Modal = (props) => {
|
|
|
3130
3314
|
showCancel = true,
|
|
3131
3315
|
showOk = true,
|
|
3132
3316
|
afterClose
|
|
3133
|
-
} = _a, restProps = __objRest$
|
|
3317
|
+
} = _a, restProps = __objRest$8(_a, [
|
|
3134
3318
|
"error",
|
|
3135
3319
|
"okText",
|
|
3136
3320
|
"cancelText",
|
|
@@ -3185,7 +3369,7 @@ const Modal = (props) => {
|
|
|
3185
3369
|
}
|
|
3186
3370
|
return /* @__PURE__ */ React__default.createElement(
|
|
3187
3371
|
Modal$1,
|
|
3188
|
-
__spreadProps$g(__spreadValues$
|
|
3372
|
+
__spreadProps$g(__spreadValues$m({
|
|
3189
3373
|
maskClosable,
|
|
3190
3374
|
className: cs(
|
|
3191
3375
|
className,
|
|
@@ -3220,7 +3404,7 @@ const Modal = (props) => {
|
|
|
3220
3404
|
prevText
|
|
3221
3405
|
), error && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("span", { className: "modal-error" }, error))), /* @__PURE__ */ React__default.createElement("div", { className: "modal-footer-btn-group" }, showCancel && /* @__PURE__ */ React__default.createElement(
|
|
3222
3406
|
Button,
|
|
3223
|
-
__spreadValues$
|
|
3407
|
+
__spreadValues$m({
|
|
3224
3408
|
type: "quiet",
|
|
3225
3409
|
onMouseDown: (e) => {
|
|
3226
3410
|
e.preventDefault();
|
|
@@ -3234,7 +3418,7 @@ const Modal = (props) => {
|
|
|
3234
3418
|
cancelText
|
|
3235
3419
|
), showOk && /* @__PURE__ */ React__default.createElement(
|
|
3236
3420
|
Button,
|
|
3237
|
-
__spreadValues$
|
|
3421
|
+
__spreadValues$m({
|
|
3238
3422
|
onClick: (e) => {
|
|
3239
3423
|
var _a2, _b2;
|
|
3240
3424
|
onOk == null ? void 0 : onOk(e);
|
|
@@ -3270,10 +3454,73 @@ const Modal = (props) => {
|
|
|
3270
3454
|
style: {
|
|
3271
3455
|
display: index === wizard.step ? "block" : "none"
|
|
3272
3456
|
}
|
|
3273
|
-
},
|
|
3274
|
-
step
|
|
3275
|
-
))), wizard.right && /* @__PURE__ */ React__default.createElement("div", { className: "right" }, wizard.right)) : restProps.children
|
|
3276
|
-
);
|
|
3457
|
+
},
|
|
3458
|
+
step
|
|
3459
|
+
))), wizard.right && /* @__PURE__ */ React__default.createElement("div", { className: "right" }, wizard.right)) : restProps.children
|
|
3460
|
+
);
|
|
3461
|
+
};
|
|
3462
|
+
|
|
3463
|
+
var __defProp$l = Object.defineProperty;
|
|
3464
|
+
var __defProps$f = Object.defineProperties;
|
|
3465
|
+
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
3466
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
3467
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
3468
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
3469
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, {
|
|
3470
|
+
enumerable: true,
|
|
3471
|
+
configurable: true,
|
|
3472
|
+
writable: true,
|
|
3473
|
+
value
|
|
3474
|
+
}) : obj[key] = value;
|
|
3475
|
+
var __spreadValues$l = (a, b) => {
|
|
3476
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$l.call(b, prop)) __defNormalProp$l(a, prop, b[prop]);
|
|
3477
|
+
if (__getOwnPropSymbols$l) for (var prop of __getOwnPropSymbols$l(b)) {
|
|
3478
|
+
if (__propIsEnum$l.call(b, prop)) __defNormalProp$l(a, prop, b[prop]);
|
|
3479
|
+
}
|
|
3480
|
+
return a;
|
|
3481
|
+
};
|
|
3482
|
+
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
3483
|
+
const OverflowText = "o8ocss1";
|
|
3484
|
+
const NoWrap = "n17syc35";
|
|
3485
|
+
const OverflowTooltip = props => {
|
|
3486
|
+
const {
|
|
3487
|
+
content,
|
|
3488
|
+
className,
|
|
3489
|
+
onClick,
|
|
3490
|
+
isMultiLine
|
|
3491
|
+
} = props;
|
|
3492
|
+
const tooltip = props.tooltip || content;
|
|
3493
|
+
const [ellipsis, setEllipsis] = useState(false);
|
|
3494
|
+
const textRef = useRef(null);
|
|
3495
|
+
useEffect(() => {
|
|
3496
|
+
const ele = textRef.current;
|
|
3497
|
+
let observer;
|
|
3498
|
+
if (ele) {
|
|
3499
|
+
const handleResize = debounce(() => {
|
|
3500
|
+
if (isMultiLine) {
|
|
3501
|
+
setEllipsis(ele.scrollHeight > ele.offsetHeight);
|
|
3502
|
+
} else {
|
|
3503
|
+
setEllipsis(ele.scrollWidth > ele.offsetWidth);
|
|
3504
|
+
}
|
|
3505
|
+
}, 200);
|
|
3506
|
+
observer = new ResizeObserver(handleResize);
|
|
3507
|
+
observer.observe(ele);
|
|
3508
|
+
}
|
|
3509
|
+
return () => {
|
|
3510
|
+
observer == null ? void 0 : observer.disconnect();
|
|
3511
|
+
};
|
|
3512
|
+
});
|
|
3513
|
+
return /* @__PURE__ */React__default.createElement(Tooltip, __spreadProps$f(__spreadValues$l({}, !ellipsis && {
|
|
3514
|
+
visible: false
|
|
3515
|
+
}), {
|
|
3516
|
+
title: tooltip
|
|
3517
|
+
}), /* @__PURE__ */React__default.createElement("div", {
|
|
3518
|
+
ref: textRef,
|
|
3519
|
+
className: cx(OverflowText, !isMultiLine && NoWrap, className),
|
|
3520
|
+
onClick: () => {
|
|
3521
|
+
onClick && onClick();
|
|
3522
|
+
}
|
|
3523
|
+
}, /* @__PURE__ */React__default.createElement("span", null, content)));
|
|
3277
3524
|
};
|
|
3278
3525
|
|
|
3279
3526
|
const PaginationStyle = "p12gwtiw";
|
|
@@ -3381,19 +3628,19 @@ const Pagination = props => {
|
|
|
3381
3628
|
}))));
|
|
3382
3629
|
};
|
|
3383
3630
|
|
|
3384
|
-
var __defProp$
|
|
3385
|
-
var __getOwnPropSymbols$
|
|
3386
|
-
var __hasOwnProp$
|
|
3387
|
-
var __propIsEnum$
|
|
3388
|
-
var __defNormalProp$
|
|
3389
|
-
var __spreadValues$
|
|
3631
|
+
var __defProp$k = Object.defineProperty;
|
|
3632
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
|
3633
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
|
3634
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
|
3635
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3636
|
+
var __spreadValues$k = (a, b) => {
|
|
3390
3637
|
for (var prop in b || (b = {}))
|
|
3391
|
-
if (__hasOwnProp$
|
|
3392
|
-
__defNormalProp$
|
|
3393
|
-
if (__getOwnPropSymbols$
|
|
3394
|
-
for (var prop of __getOwnPropSymbols$
|
|
3395
|
-
if (__propIsEnum$
|
|
3396
|
-
__defNormalProp$
|
|
3638
|
+
if (__hasOwnProp$k.call(b, prop))
|
|
3639
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
3640
|
+
if (__getOwnPropSymbols$k)
|
|
3641
|
+
for (var prop of __getOwnPropSymbols$k(b)) {
|
|
3642
|
+
if (__propIsEnum$k.call(b, prop))
|
|
3643
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
3397
3644
|
}
|
|
3398
3645
|
return a;
|
|
3399
3646
|
};
|
|
@@ -3406,52 +3653,52 @@ const Percent = ({
|
|
|
3406
3653
|
emptyProps
|
|
3407
3654
|
}) => {
|
|
3408
3655
|
if (isEmpty(rawValue)) {
|
|
3409
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$
|
|
3656
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$k({}, emptyProps));
|
|
3410
3657
|
}
|
|
3411
3658
|
const { value, unit } = formatPercent(rawValue, decimals, saturated);
|
|
3412
3659
|
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, unit));
|
|
3413
3660
|
};
|
|
3414
3661
|
|
|
3415
|
-
var __defProp$
|
|
3416
|
-
var __getOwnPropSymbols$
|
|
3417
|
-
var __hasOwnProp$
|
|
3418
|
-
var __propIsEnum$
|
|
3419
|
-
var __defNormalProp$
|
|
3420
|
-
var __spreadValues$
|
|
3662
|
+
var __defProp$j = Object.defineProperty;
|
|
3663
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
3664
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
3665
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
3666
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3667
|
+
var __spreadValues$j = (a, b) => {
|
|
3421
3668
|
for (var prop in b || (b = {}))
|
|
3422
|
-
if (__hasOwnProp$
|
|
3423
|
-
__defNormalProp$
|
|
3424
|
-
if (__getOwnPropSymbols$
|
|
3425
|
-
for (var prop of __getOwnPropSymbols$
|
|
3426
|
-
if (__propIsEnum$
|
|
3427
|
-
__defNormalProp$
|
|
3669
|
+
if (__hasOwnProp$j.call(b, prop))
|
|
3670
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
3671
|
+
if (__getOwnPropSymbols$j)
|
|
3672
|
+
for (var prop of __getOwnPropSymbols$j(b)) {
|
|
3673
|
+
if (__propIsEnum$j.call(b, prop))
|
|
3674
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
3428
3675
|
}
|
|
3429
3676
|
return a;
|
|
3430
3677
|
};
|
|
3431
|
-
const Progress = (props) => /* @__PURE__ */ React__default.createElement(Progress$1, __spreadValues$
|
|
3678
|
+
const Progress = (props) => /* @__PURE__ */ React__default.createElement(Progress$1, __spreadValues$j({}, props));
|
|
3432
3679
|
|
|
3433
|
-
var __defProp$
|
|
3434
|
-
var __getOwnPropSymbols$
|
|
3435
|
-
var __hasOwnProp$
|
|
3436
|
-
var __propIsEnum$
|
|
3437
|
-
var __defNormalProp$
|
|
3680
|
+
var __defProp$i = Object.defineProperty;
|
|
3681
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
3682
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
3683
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
3684
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, {
|
|
3438
3685
|
enumerable: true,
|
|
3439
3686
|
configurable: true,
|
|
3440
3687
|
writable: true,
|
|
3441
3688
|
value
|
|
3442
3689
|
}) : obj[key] = value;
|
|
3443
|
-
var __spreadValues$
|
|
3444
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3445
|
-
if (__getOwnPropSymbols$
|
|
3446
|
-
if (__propIsEnum$
|
|
3690
|
+
var __spreadValues$i = (a, b) => {
|
|
3691
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$i.call(b, prop)) __defNormalProp$i(a, prop, b[prop]);
|
|
3692
|
+
if (__getOwnPropSymbols$i) for (var prop of __getOwnPropSymbols$i(b)) {
|
|
3693
|
+
if (__propIsEnum$i.call(b, prop)) __defNormalProp$i(a, prop, b[prop]);
|
|
3447
3694
|
}
|
|
3448
3695
|
return a;
|
|
3449
3696
|
};
|
|
3450
|
-
var __objRest$
|
|
3697
|
+
var __objRest$7 = (source, exclude) => {
|
|
3451
3698
|
var target = {};
|
|
3452
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3453
|
-
if (source != null && __getOwnPropSymbols$
|
|
3454
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3699
|
+
for (var prop in source) if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3700
|
+
if (source != null && __getOwnPropSymbols$i) for (var prop of __getOwnPropSymbols$i(source)) {
|
|
3701
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop)) target[prop] = source[prop];
|
|
3455
3702
|
}
|
|
3456
3703
|
return target;
|
|
3457
3704
|
};
|
|
@@ -3467,7 +3714,7 @@ const Radio = _a => {
|
|
|
3467
3714
|
checked,
|
|
3468
3715
|
compact = false
|
|
3469
3716
|
} = _b,
|
|
3470
|
-
props = __objRest$
|
|
3717
|
+
props = __objRest$7(_b, ["children", "className", "checked", "compact"]);
|
|
3471
3718
|
const {
|
|
3472
3719
|
description
|
|
3473
3720
|
} = props;
|
|
@@ -3477,7 +3724,7 @@ const Radio = _a => {
|
|
|
3477
3724
|
className: cx("radio-description", Typo.Label.l4_regular)
|
|
3478
3725
|
}, description));
|
|
3479
3726
|
}
|
|
3480
|
-
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Radio$1, __spreadValues$
|
|
3727
|
+
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Radio$1, __spreadValues$i({
|
|
3481
3728
|
className: cx(className, RadioStyle, compact && "compact"),
|
|
3482
3729
|
checked: checked || false,
|
|
3483
3730
|
"data-test": context.name ? `${context.name}-${String(props.value)}` : String(props.value)
|
|
@@ -3489,13 +3736,13 @@ const RadioGroup = _c => {
|
|
|
3489
3736
|
children,
|
|
3490
3737
|
className
|
|
3491
3738
|
} = _d,
|
|
3492
|
-
props = __objRest$
|
|
3739
|
+
props = __objRest$7(_d, ["children", "className"]);
|
|
3493
3740
|
return /* @__PURE__ */React__default.createElement(KitRadioGroupContext.Provider, {
|
|
3494
3741
|
value: {
|
|
3495
3742
|
disabled: props.disabled,
|
|
3496
3743
|
name: props.name
|
|
3497
3744
|
}
|
|
3498
|
-
}, /* @__PURE__ */React__default.createElement(Radio$1.Group, __spreadValues$
|
|
3745
|
+
}, /* @__PURE__ */React__default.createElement(Radio$1.Group, __spreadValues$i({
|
|
3499
3746
|
className: cx(className, RadioGroupStyle)
|
|
3500
3747
|
}, props), children ? children : null));
|
|
3501
3748
|
};
|
|
@@ -3505,7 +3752,7 @@ const RadioButton = _e => {
|
|
|
3505
3752
|
children,
|
|
3506
3753
|
className
|
|
3507
3754
|
} = _f,
|
|
3508
|
-
props = __objRest$
|
|
3755
|
+
props = __objRest$7(_f, ["children", "className"]);
|
|
3509
3756
|
const {
|
|
3510
3757
|
type,
|
|
3511
3758
|
placeholder = "Label",
|
|
@@ -3551,46 +3798,46 @@ const RadioButton = _e => {
|
|
|
3551
3798
|
className: "ant-radio-button-input-label"
|
|
3552
3799
|
}, typeof children === "string" ? children : ""));
|
|
3553
3800
|
};
|
|
3554
|
-
return /* @__PURE__ */React__default.createElement(Radio$1.Button, __spreadValues$
|
|
3801
|
+
return /* @__PURE__ */React__default.createElement(Radio$1.Button, __spreadValues$i({
|
|
3555
3802
|
className: cx(className, RadioButtonStyle),
|
|
3556
3803
|
value: radioButtonValue
|
|
3557
3804
|
}, props), renderChildren());
|
|
3558
3805
|
};
|
|
3559
3806
|
|
|
3560
|
-
var __defProp$
|
|
3561
|
-
var __getOwnPropSymbols$
|
|
3562
|
-
var __hasOwnProp$
|
|
3563
|
-
var __propIsEnum$
|
|
3564
|
-
var __defNormalProp$
|
|
3565
|
-
var __spreadValues$
|
|
3807
|
+
var __defProp$h = Object.defineProperty;
|
|
3808
|
+
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
|
3809
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
3810
|
+
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
|
3811
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3812
|
+
var __spreadValues$h = (a, b) => {
|
|
3566
3813
|
for (var prop in b || (b = {}))
|
|
3567
|
-
if (__hasOwnProp$
|
|
3568
|
-
__defNormalProp$
|
|
3569
|
-
if (__getOwnPropSymbols$
|
|
3570
|
-
for (var prop of __getOwnPropSymbols$
|
|
3571
|
-
if (__propIsEnum$
|
|
3572
|
-
__defNormalProp$
|
|
3814
|
+
if (__hasOwnProp$h.call(b, prop))
|
|
3815
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
3816
|
+
if (__getOwnPropSymbols$h)
|
|
3817
|
+
for (var prop of __getOwnPropSymbols$h(b)) {
|
|
3818
|
+
if (__propIsEnum$h.call(b, prop))
|
|
3819
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
3573
3820
|
}
|
|
3574
3821
|
return a;
|
|
3575
3822
|
};
|
|
3576
|
-
var __objRest$
|
|
3823
|
+
var __objRest$6 = (source, exclude) => {
|
|
3577
3824
|
var target = {};
|
|
3578
3825
|
for (var prop in source)
|
|
3579
|
-
if (__hasOwnProp$
|
|
3826
|
+
if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3580
3827
|
target[prop] = source[prop];
|
|
3581
|
-
if (source != null && __getOwnPropSymbols$
|
|
3582
|
-
for (var prop of __getOwnPropSymbols$
|
|
3583
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3828
|
+
if (source != null && __getOwnPropSymbols$h)
|
|
3829
|
+
for (var prop of __getOwnPropSymbols$h(source)) {
|
|
3830
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
|
|
3584
3831
|
target[prop] = source[prop];
|
|
3585
3832
|
}
|
|
3586
3833
|
return target;
|
|
3587
3834
|
};
|
|
3588
3835
|
const SearchInput = (props) => {
|
|
3589
|
-
const _a = props, { onChange, debounceWait = 300 } = _a, restProps = __objRest$
|
|
3836
|
+
const _a = props, { onChange, debounceWait = 300 } = _a, restProps = __objRest$6(_a, ["onChange", "debounceWait"]);
|
|
3590
3837
|
const onSearch = _.debounce(onChange, debounceWait);
|
|
3591
3838
|
return /* @__PURE__ */ React__default.createElement(
|
|
3592
3839
|
Input,
|
|
3593
|
-
__spreadValues$
|
|
3840
|
+
__spreadValues$h({
|
|
3594
3841
|
style: { width: 276 },
|
|
3595
3842
|
prefix: /* @__PURE__ */ React__default.createElement(SearchOutlined, null),
|
|
3596
3843
|
onChange: (e) => onSearch(e.target.value)
|
|
@@ -3598,19 +3845,19 @@ const SearchInput = (props) => {
|
|
|
3598
3845
|
);
|
|
3599
3846
|
};
|
|
3600
3847
|
|
|
3601
|
-
var __defProp$
|
|
3602
|
-
var __getOwnPropSymbols$
|
|
3603
|
-
var __hasOwnProp$
|
|
3604
|
-
var __propIsEnum$
|
|
3605
|
-
var __defNormalProp$
|
|
3606
|
-
var __spreadValues$
|
|
3848
|
+
var __defProp$g = Object.defineProperty;
|
|
3849
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
3850
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
3851
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
3852
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3853
|
+
var __spreadValues$g = (a, b) => {
|
|
3607
3854
|
for (var prop in b || (b = {}))
|
|
3608
|
-
if (__hasOwnProp$
|
|
3609
|
-
__defNormalProp$
|
|
3610
|
-
if (__getOwnPropSymbols$
|
|
3611
|
-
for (var prop of __getOwnPropSymbols$
|
|
3612
|
-
if (__propIsEnum$
|
|
3613
|
-
__defNormalProp$
|
|
3855
|
+
if (__hasOwnProp$g.call(b, prop))
|
|
3856
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
3857
|
+
if (__getOwnPropSymbols$g)
|
|
3858
|
+
for (var prop of __getOwnPropSymbols$g(b)) {
|
|
3859
|
+
if (__propIsEnum$g.call(b, prop))
|
|
3860
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
3614
3861
|
}
|
|
3615
3862
|
return a;
|
|
3616
3863
|
};
|
|
@@ -3624,7 +3871,7 @@ const Second = ({
|
|
|
3624
3871
|
}) => {
|
|
3625
3872
|
const { t } = useParrotTranslation();
|
|
3626
3873
|
if (isEmpty(rawValue)) {
|
|
3627
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$
|
|
3874
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$g({}, emptyProps));
|
|
3628
3875
|
}
|
|
3629
3876
|
const { value, unit } = formatSeconds(rawValue, decimals);
|
|
3630
3877
|
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value, " "), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, t(`common.${abbreviate ? `${unit}_abbreviation` : unit}`)));
|
|
@@ -3706,19 +3953,19 @@ const SimplePagination = props => {
|
|
|
3706
3953
|
})));
|
|
3707
3954
|
};
|
|
3708
3955
|
|
|
3709
|
-
var __defProp$
|
|
3710
|
-
var __getOwnPropSymbols$
|
|
3711
|
-
var __hasOwnProp$
|
|
3712
|
-
var __propIsEnum$
|
|
3713
|
-
var __defNormalProp$
|
|
3714
|
-
var __spreadValues$
|
|
3956
|
+
var __defProp$f = Object.defineProperty;
|
|
3957
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
3958
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
3959
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
3960
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3961
|
+
var __spreadValues$f = (a, b) => {
|
|
3715
3962
|
for (var prop in b || (b = {}))
|
|
3716
|
-
if (__hasOwnProp$
|
|
3717
|
-
__defNormalProp$
|
|
3718
|
-
if (__getOwnPropSymbols$
|
|
3719
|
-
for (var prop of __getOwnPropSymbols$
|
|
3720
|
-
if (__propIsEnum$
|
|
3721
|
-
__defNormalProp$
|
|
3963
|
+
if (__hasOwnProp$f.call(b, prop))
|
|
3964
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
3965
|
+
if (__getOwnPropSymbols$f)
|
|
3966
|
+
for (var prop of __getOwnPropSymbols$f(b)) {
|
|
3967
|
+
if (__propIsEnum$f.call(b, prop))
|
|
3968
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
3722
3969
|
}
|
|
3723
3970
|
return a;
|
|
3724
3971
|
};
|
|
@@ -3730,43 +3977,43 @@ const Speed = ({
|
|
|
3730
3977
|
emptyProps
|
|
3731
3978
|
}) => {
|
|
3732
3979
|
if (isEmpty(rawValue)) {
|
|
3733
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$
|
|
3980
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$f({}, emptyProps));
|
|
3734
3981
|
}
|
|
3735
3982
|
const { value, unit } = formatSpeed(rawValue, decimals);
|
|
3736
3983
|
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
3737
3984
|
};
|
|
3738
3985
|
|
|
3739
|
-
var __defProp$
|
|
3740
|
-
var __defProps$
|
|
3741
|
-
var __getOwnPropDescs$
|
|
3742
|
-
var __getOwnPropSymbols$
|
|
3743
|
-
var __hasOwnProp$
|
|
3744
|
-
var __propIsEnum$
|
|
3745
|
-
var __defNormalProp$
|
|
3986
|
+
var __defProp$e = Object.defineProperty;
|
|
3987
|
+
var __defProps$e = Object.defineProperties;
|
|
3988
|
+
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
|
3989
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
3990
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
3991
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
3992
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, {
|
|
3746
3993
|
enumerable: true,
|
|
3747
3994
|
configurable: true,
|
|
3748
3995
|
writable: true,
|
|
3749
3996
|
value
|
|
3750
3997
|
}) : obj[key] = value;
|
|
3751
|
-
var __spreadValues$
|
|
3752
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3753
|
-
if (__getOwnPropSymbols$
|
|
3754
|
-
if (__propIsEnum$
|
|
3998
|
+
var __spreadValues$e = (a, b) => {
|
|
3999
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$e.call(b, prop)) __defNormalProp$e(a, prop, b[prop]);
|
|
4000
|
+
if (__getOwnPropSymbols$e) for (var prop of __getOwnPropSymbols$e(b)) {
|
|
4001
|
+
if (__propIsEnum$e.call(b, prop)) __defNormalProp$e(a, prop, b[prop]);
|
|
3755
4002
|
}
|
|
3756
4003
|
return a;
|
|
3757
4004
|
};
|
|
3758
|
-
var __spreadProps$
|
|
3759
|
-
var __objRest$
|
|
4005
|
+
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
|
4006
|
+
var __objRest$5 = (source, exclude) => {
|
|
3760
4007
|
var target = {};
|
|
3761
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3762
|
-
if (source != null && __getOwnPropSymbols$
|
|
3763
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4008
|
+
for (var prop in source) if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
4009
|
+
if (source != null && __getOwnPropSymbols$e) for (var prop of __getOwnPropSymbols$e(source)) {
|
|
4010
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop)) target[prop] = source[prop];
|
|
3764
4011
|
}
|
|
3765
4012
|
return target;
|
|
3766
4013
|
};
|
|
3767
4014
|
const PresetColors$3 = ["blue", "red", "yellow", "green", "gray"];
|
|
3768
4015
|
const StatusCapsuleStyle = "s14dk8r1";
|
|
3769
|
-
const StatusCode = /*#__PURE__*/styled('i')({
|
|
4016
|
+
const StatusCode = /*#__PURE__*/styled$1('i')({
|
|
3770
4017
|
name: "StatusCode",
|
|
3771
4018
|
class: "s1uupoto",
|
|
3772
4019
|
propsAsIs: false
|
|
@@ -3803,9 +4050,9 @@ const StatusCapsule = _a => {
|
|
|
3803
4050
|
offWhiteMode,
|
|
3804
4051
|
number
|
|
3805
4052
|
} = _b,
|
|
3806
|
-
props = __objRest$
|
|
4053
|
+
props = __objRest$5(_b, ["color", "className", "loading", "hoverable", "children", "offWhiteMode", "number"]);
|
|
3807
4054
|
const computedColor = ColorMap[color] || color;
|
|
3808
|
-
return /* @__PURE__ */React__default.createElement(Tag$1, __spreadProps$
|
|
4055
|
+
return /* @__PURE__ */React__default.createElement(Tag$1, __spreadProps$e(__spreadValues$e({}, props), {
|
|
3809
4056
|
className: cs(className, StatusCapsuleStyle, Typo.Label.l4_regular, "ui-kit-status-capsule", {
|
|
3810
4057
|
[`ant-tag-${computedColor}`]: PresetColors$3.includes(computedColor),
|
|
3811
4058
|
"tag-hover": hoverable,
|
|
@@ -3820,31 +4067,31 @@ const StatusCapsule = _a => {
|
|
|
3820
4067
|
}, number));
|
|
3821
4068
|
};
|
|
3822
4069
|
|
|
3823
|
-
var __defProp$
|
|
3824
|
-
var __defProps$
|
|
3825
|
-
var __getOwnPropDescs$
|
|
3826
|
-
var __getOwnPropSymbols$
|
|
3827
|
-
var __hasOwnProp$
|
|
3828
|
-
var __propIsEnum$
|
|
3829
|
-
var __defNormalProp$
|
|
4070
|
+
var __defProp$d = Object.defineProperty;
|
|
4071
|
+
var __defProps$d = Object.defineProperties;
|
|
4072
|
+
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
4073
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
4074
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
4075
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
4076
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, {
|
|
3830
4077
|
enumerable: true,
|
|
3831
4078
|
configurable: true,
|
|
3832
4079
|
writable: true,
|
|
3833
4080
|
value
|
|
3834
4081
|
}) : obj[key] = value;
|
|
3835
|
-
var __spreadValues$
|
|
3836
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3837
|
-
if (__getOwnPropSymbols$
|
|
3838
|
-
if (__propIsEnum$
|
|
4082
|
+
var __spreadValues$d = (a, b) => {
|
|
4083
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$d.call(b, prop)) __defNormalProp$d(a, prop, b[prop]);
|
|
4084
|
+
if (__getOwnPropSymbols$d) for (var prop of __getOwnPropSymbols$d(b)) {
|
|
4085
|
+
if (__propIsEnum$d.call(b, prop)) __defNormalProp$d(a, prop, b[prop]);
|
|
3839
4086
|
}
|
|
3840
4087
|
return a;
|
|
3841
4088
|
};
|
|
3842
|
-
var __spreadProps$
|
|
3843
|
-
var __objRest$
|
|
4089
|
+
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
|
4090
|
+
var __objRest$4 = (source, exclude) => {
|
|
3844
4091
|
var target = {};
|
|
3845
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3846
|
-
if (source != null && __getOwnPropSymbols$
|
|
3847
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4092
|
+
for (var prop in source) if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
4093
|
+
if (source != null && __getOwnPropSymbols$d) for (var prop of __getOwnPropSymbols$d(source)) {
|
|
4094
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop)) target[prop] = source[prop];
|
|
3848
4095
|
}
|
|
3849
4096
|
return target;
|
|
3850
4097
|
};
|
|
@@ -3856,15 +4103,15 @@ const Switch = _a => {
|
|
|
3856
4103
|
className,
|
|
3857
4104
|
checked
|
|
3858
4105
|
} = _b,
|
|
3859
|
-
props = __objRest$
|
|
3860
|
-
const Content = /*#__PURE__*/styled('span')({
|
|
4106
|
+
props = __objRest$4(_b, ["children", "className", "checked"]);
|
|
4107
|
+
const Content = /*#__PURE__*/styled$1('span')({
|
|
3861
4108
|
name: "Content",
|
|
3862
4109
|
class: "c1to9vb9",
|
|
3863
4110
|
propsAsIs: false
|
|
3864
4111
|
});
|
|
3865
4112
|
const classNames = [className, SwitchStyle, "switch"];
|
|
3866
4113
|
if (props.size === "large") classNames.push("ant-switch-large");
|
|
3867
|
-
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Switch$1, __spreadProps$
|
|
4114
|
+
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Switch$1, __spreadProps$d(__spreadValues$d({
|
|
3868
4115
|
className: cx(...classNames),
|
|
3869
4116
|
checked: checked || false
|
|
3870
4117
|
}, props), {
|
|
@@ -3950,26 +4197,26 @@ const ColumnTitle = props => {
|
|
|
3950
4197
|
}));
|
|
3951
4198
|
};
|
|
3952
4199
|
|
|
3953
|
-
var __defProp$
|
|
3954
|
-
var __defProps$
|
|
3955
|
-
var __getOwnPropDescs$
|
|
3956
|
-
var __getOwnPropSymbols$
|
|
3957
|
-
var __hasOwnProp$
|
|
3958
|
-
var __propIsEnum$
|
|
3959
|
-
var __defNormalProp$
|
|
4200
|
+
var __defProp$c = Object.defineProperty;
|
|
4201
|
+
var __defProps$c = Object.defineProperties;
|
|
4202
|
+
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
4203
|
+
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
4204
|
+
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
4205
|
+
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
4206
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, {
|
|
3960
4207
|
enumerable: true,
|
|
3961
4208
|
configurable: true,
|
|
3962
4209
|
writable: true,
|
|
3963
4210
|
value
|
|
3964
4211
|
}) : obj[key] = value;
|
|
3965
|
-
var __spreadValues$
|
|
3966
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3967
|
-
if (__getOwnPropSymbols$
|
|
3968
|
-
if (__propIsEnum$
|
|
4212
|
+
var __spreadValues$c = (a, b) => {
|
|
4213
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$c.call(b, prop)) __defNormalProp$c(a, prop, b[prop]);
|
|
4214
|
+
if (__getOwnPropSymbols$c) for (var prop of __getOwnPropSymbols$c(b)) {
|
|
4215
|
+
if (__propIsEnum$c.call(b, prop)) __defNormalProp$c(a, prop, b[prop]);
|
|
3969
4216
|
}
|
|
3970
4217
|
return a;
|
|
3971
4218
|
};
|
|
3972
|
-
var __spreadProps$
|
|
4219
|
+
var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
|
|
3973
4220
|
const TableContainerStyle = "t1upn1sz";
|
|
3974
4221
|
const tableStyleCover = "tta5kd2";
|
|
3975
4222
|
const Table = props => {
|
|
@@ -3996,7 +4243,7 @@ const Table = props => {
|
|
|
3996
4243
|
const orderRef = useRef(null);
|
|
3997
4244
|
const hasScrollBard = useTableBodyHasScrollBar(wrapper, dataSource);
|
|
3998
4245
|
const _columns = useMemo(() => columns.map(column => {
|
|
3999
|
-
const _column = __spreadValues$
|
|
4246
|
+
const _column = __spreadValues$c({}, column);
|
|
4000
4247
|
if (_column.sorter && typeof _column.title !== "function") {
|
|
4001
4248
|
_column.title = /* @__PURE__ */React__default.createElement(ColumnTitle, {
|
|
4002
4249
|
title: column.title,
|
|
@@ -4033,12 +4280,12 @@ const Table = props => {
|
|
|
4033
4280
|
onSorterChange == null ? void 0 : onSorterChange(orderRef.current, sorter.columnKey);
|
|
4034
4281
|
}
|
|
4035
4282
|
},
|
|
4036
|
-
onRow: (record, index) => __spreadValues$
|
|
4283
|
+
onRow: (record, index) => __spreadValues$c({
|
|
4037
4284
|
onClick: evt => onRowClick == null ? void 0 : onRowClick(record, index, evt)
|
|
4038
4285
|
}, onRow == null ? void 0 : onRow(record, index)),
|
|
4039
4286
|
rowClassName,
|
|
4040
4287
|
scroll,
|
|
4041
|
-
rowSelection: rowSelection && __spreadProps$
|
|
4288
|
+
rowSelection: rowSelection && __spreadProps$c(__spreadValues$c({}, rowSelection), {
|
|
4042
4289
|
columnWidth: 32
|
|
4043
4290
|
}),
|
|
4044
4291
|
showSorterTooltip: false
|
|
@@ -4048,22 +4295,22 @@ const Table = props => {
|
|
|
4048
4295
|
const TitleStyle = "tc40oxa";
|
|
4049
4296
|
const SubtitleStyle = "sa410aw";
|
|
4050
4297
|
const BodyCellTextStyle = "b1lc7yin";
|
|
4051
|
-
const BodyCellTextWrapper = /*#__PURE__*/styled('div')({
|
|
4298
|
+
const BodyCellTextWrapper = /*#__PURE__*/styled$1('div')({
|
|
4052
4299
|
name: "BodyCellTextWrapper",
|
|
4053
4300
|
class: "b1jhbz3e",
|
|
4054
4301
|
propsAsIs: false
|
|
4055
4302
|
});
|
|
4056
|
-
const TableFormWrapper = /*#__PURE__*/styled('div')({
|
|
4303
|
+
const TableFormWrapper = /*#__PURE__*/styled$1('div')({
|
|
4057
4304
|
name: "TableFormWrapper",
|
|
4058
4305
|
class: "tyua489",
|
|
4059
4306
|
propsAsIs: false
|
|
4060
4307
|
});
|
|
4061
|
-
const AddRowButtonWrapper = /*#__PURE__*/styled('div')({
|
|
4308
|
+
const AddRowButtonWrapper = /*#__PURE__*/styled$1('div')({
|
|
4062
4309
|
name: "AddRowButtonWrapper",
|
|
4063
4310
|
class: "a1ccrot9",
|
|
4064
4311
|
propsAsIs: false
|
|
4065
4312
|
});
|
|
4066
|
-
const DraggableHandleWrapper = /*#__PURE__*/styled('div')({
|
|
4313
|
+
const DraggableHandleWrapper = /*#__PURE__*/styled$1('div')({
|
|
4067
4314
|
name: "DraggableHandleWrapper",
|
|
4068
4315
|
class: "d8c9v9g",
|
|
4069
4316
|
propsAsIs: false
|
|
@@ -4100,33 +4347,33 @@ const moveItemInArray = (array, fromIndex, toIndex) => {
|
|
|
4100
4347
|
return sortArr;
|
|
4101
4348
|
};
|
|
4102
4349
|
|
|
4103
|
-
var __defProp$
|
|
4104
|
-
var __defProps$
|
|
4105
|
-
var __getOwnPropDescs$
|
|
4106
|
-
var __getOwnPropSymbols$
|
|
4107
|
-
var __hasOwnProp$
|
|
4108
|
-
var __propIsEnum$
|
|
4109
|
-
var __defNormalProp$
|
|
4110
|
-
var __spreadValues$
|
|
4350
|
+
var __defProp$b = Object.defineProperty;
|
|
4351
|
+
var __defProps$b = Object.defineProperties;
|
|
4352
|
+
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
|
4353
|
+
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
4354
|
+
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
4355
|
+
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
4356
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4357
|
+
var __spreadValues$b = (a, b) => {
|
|
4111
4358
|
for (var prop in b || (b = {}))
|
|
4112
|
-
if (__hasOwnProp$
|
|
4113
|
-
__defNormalProp$
|
|
4114
|
-
if (__getOwnPropSymbols$
|
|
4115
|
-
for (var prop of __getOwnPropSymbols$
|
|
4116
|
-
if (__propIsEnum$
|
|
4117
|
-
__defNormalProp$
|
|
4359
|
+
if (__hasOwnProp$b.call(b, prop))
|
|
4360
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
4361
|
+
if (__getOwnPropSymbols$b)
|
|
4362
|
+
for (var prop of __getOwnPropSymbols$b(b)) {
|
|
4363
|
+
if (__propIsEnum$b.call(b, prop))
|
|
4364
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
4118
4365
|
}
|
|
4119
4366
|
return a;
|
|
4120
4367
|
};
|
|
4121
|
-
var __spreadProps$
|
|
4122
|
-
var __objRest$
|
|
4368
|
+
var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
|
|
4369
|
+
var __objRest$3 = (source, exclude) => {
|
|
4123
4370
|
var target = {};
|
|
4124
4371
|
for (var prop in source)
|
|
4125
|
-
if (__hasOwnProp$
|
|
4372
|
+
if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
4126
4373
|
target[prop] = source[prop];
|
|
4127
|
-
if (source != null && __getOwnPropSymbols$
|
|
4128
|
-
for (var prop of __getOwnPropSymbols$
|
|
4129
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4374
|
+
if (source != null && __getOwnPropSymbols$b)
|
|
4375
|
+
for (var prop of __getOwnPropSymbols$b(source)) {
|
|
4376
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
|
|
4130
4377
|
target[prop] = source[prop];
|
|
4131
4378
|
}
|
|
4132
4379
|
return target;
|
|
@@ -4142,7 +4389,7 @@ const AddRowButton = (props) => {
|
|
|
4142
4389
|
const _a = buttonProps || {}, {
|
|
4143
4390
|
disabled: disabledFromProp,
|
|
4144
4391
|
onClick
|
|
4145
|
-
} = _a, restButtonProps = __objRest$
|
|
4392
|
+
} = _a, restButtonProps = __objRest$3(_a, [
|
|
4146
4393
|
"disabled",
|
|
4147
4394
|
"onClick"
|
|
4148
4395
|
]);
|
|
@@ -4167,9 +4414,9 @@ const AddRowButton = (props) => {
|
|
|
4167
4414
|
if (!columns.length) {
|
|
4168
4415
|
return null;
|
|
4169
4416
|
}
|
|
4170
|
-
return CustomizedButton ? /* @__PURE__ */ React__default.createElement(CustomizedButton, __spreadValues$
|
|
4417
|
+
return CustomizedButton ? /* @__PURE__ */ React__default.createElement(CustomizedButton, __spreadValues$b({}, props)) : /* @__PURE__ */ React__default.createElement(AddRowButtonWrapper, { className }, /* @__PURE__ */ React__default.createElement(
|
|
4171
4418
|
Button,
|
|
4172
|
-
__spreadProps$
|
|
4419
|
+
__spreadProps$b(__spreadValues$b({}, restButtonProps), {
|
|
4173
4420
|
type: restButtonProps.type || "ordinary",
|
|
4174
4421
|
size: restButtonProps.size || "small",
|
|
4175
4422
|
prefixIcon: restButtonProps.prefixIcon || /* @__PURE__ */ React__default.createElement(PlusAddCreateNew16SecondaryIcon, null),
|
|
@@ -4264,25 +4511,25 @@ const CheckboxColumnBodyCell = ({ data, column, index, onChange }) => {
|
|
|
4264
4511
|
);
|
|
4265
4512
|
};
|
|
4266
4513
|
|
|
4267
|
-
var __defProp$
|
|
4268
|
-
var __defProps$
|
|
4269
|
-
var __getOwnPropDescs$
|
|
4270
|
-
var __getOwnPropSymbols$
|
|
4271
|
-
var __hasOwnProp$
|
|
4272
|
-
var __propIsEnum$
|
|
4273
|
-
var __defNormalProp$
|
|
4274
|
-
var __spreadValues$
|
|
4514
|
+
var __defProp$a = Object.defineProperty;
|
|
4515
|
+
var __defProps$a = Object.defineProperties;
|
|
4516
|
+
var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
|
|
4517
|
+
var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
|
|
4518
|
+
var __hasOwnProp$a = Object.prototype.hasOwnProperty;
|
|
4519
|
+
var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
|
|
4520
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4521
|
+
var __spreadValues$a = (a, b) => {
|
|
4275
4522
|
for (var prop in b || (b = {}))
|
|
4276
|
-
if (__hasOwnProp$
|
|
4277
|
-
__defNormalProp$
|
|
4278
|
-
if (__getOwnPropSymbols$
|
|
4279
|
-
for (var prop of __getOwnPropSymbols$
|
|
4280
|
-
if (__propIsEnum$
|
|
4281
|
-
__defNormalProp$
|
|
4523
|
+
if (__hasOwnProp$a.call(b, prop))
|
|
4524
|
+
__defNormalProp$a(a, prop, b[prop]);
|
|
4525
|
+
if (__getOwnPropSymbols$a)
|
|
4526
|
+
for (var prop of __getOwnPropSymbols$a(b)) {
|
|
4527
|
+
if (__propIsEnum$a.call(b, prop))
|
|
4528
|
+
__defNormalProp$a(a, prop, b[prop]);
|
|
4282
4529
|
}
|
|
4283
4530
|
return a;
|
|
4284
4531
|
};
|
|
4285
|
-
var __spreadProps$
|
|
4532
|
+
var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
|
|
4286
4533
|
const InputPassword = (props) => {
|
|
4287
4534
|
const [showPassword, setShowPassword] = useState(false);
|
|
4288
4535
|
useEffect(() => {
|
|
@@ -4298,7 +4545,7 @@ const InputPassword = (props) => {
|
|
|
4298
4545
|
const inputType = showPassword ? "text" : "password";
|
|
4299
4546
|
return /* @__PURE__ */ React__default.createElement(
|
|
4300
4547
|
Input,
|
|
4301
|
-
__spreadProps$
|
|
4548
|
+
__spreadProps$a(__spreadValues$a({}, props), {
|
|
4302
4549
|
type: inputType,
|
|
4303
4550
|
suffix: showPassword ? /* @__PURE__ */ React__default.createElement(
|
|
4304
4551
|
EyeOutlined,
|
|
@@ -4318,9 +4565,9 @@ const InputPassword = (props) => {
|
|
|
4318
4565
|
};
|
|
4319
4566
|
const CustomInput = (props) => {
|
|
4320
4567
|
if (props.type === "password") {
|
|
4321
|
-
return /* @__PURE__ */ React__default.createElement(InputPassword, __spreadValues$
|
|
4568
|
+
return /* @__PURE__ */ React__default.createElement(InputPassword, __spreadValues$a({}, props));
|
|
4322
4569
|
}
|
|
4323
|
-
return /* @__PURE__ */ React__default.createElement(Input, __spreadValues$
|
|
4570
|
+
return /* @__PURE__ */ React__default.createElement(Input, __spreadValues$a({}, props));
|
|
4324
4571
|
};
|
|
4325
4572
|
const InputColumnHeaderCell = ({ disabled, column, onChange, onBlur, onVisibleChange }) => {
|
|
4326
4573
|
const _onChange = (e) => {
|
|
@@ -4444,25 +4691,25 @@ var ValidateTriggerType = /* @__PURE__ */ ((ValidateTriggerType2) => {
|
|
|
4444
4691
|
return ValidateTriggerType2;
|
|
4445
4692
|
})(ValidateTriggerType || {});
|
|
4446
4693
|
|
|
4447
|
-
var __defProp$
|
|
4448
|
-
var __defProps$
|
|
4449
|
-
var __getOwnPropDescs$
|
|
4450
|
-
var __getOwnPropSymbols$
|
|
4451
|
-
var __hasOwnProp$
|
|
4452
|
-
var __propIsEnum$
|
|
4453
|
-
var __defNormalProp$
|
|
4454
|
-
var __spreadValues$
|
|
4694
|
+
var __defProp$9 = Object.defineProperty;
|
|
4695
|
+
var __defProps$9 = Object.defineProperties;
|
|
4696
|
+
var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
|
|
4697
|
+
var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
|
|
4698
|
+
var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
|
|
4699
|
+
var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
|
|
4700
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4701
|
+
var __spreadValues$9 = (a, b) => {
|
|
4455
4702
|
for (var prop in b || (b = {}))
|
|
4456
|
-
if (__hasOwnProp$
|
|
4457
|
-
__defNormalProp$
|
|
4458
|
-
if (__getOwnPropSymbols$
|
|
4459
|
-
for (var prop of __getOwnPropSymbols$
|
|
4460
|
-
if (__propIsEnum$
|
|
4461
|
-
__defNormalProp$
|
|
4703
|
+
if (__hasOwnProp$9.call(b, prop))
|
|
4704
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
4705
|
+
if (__getOwnPropSymbols$9)
|
|
4706
|
+
for (var prop of __getOwnPropSymbols$9(b)) {
|
|
4707
|
+
if (__propIsEnum$9.call(b, prop))
|
|
4708
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
4462
4709
|
}
|
|
4463
4710
|
return a;
|
|
4464
4711
|
};
|
|
4465
|
-
var __spreadProps$
|
|
4712
|
+
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
|
|
4466
4713
|
const TableFormBodyCell = (props) => {
|
|
4467
4714
|
const {
|
|
4468
4715
|
column,
|
|
@@ -4494,7 +4741,7 @@ const TableFormBodyCell = (props) => {
|
|
|
4494
4741
|
(currentValue) => {
|
|
4495
4742
|
var _a;
|
|
4496
4743
|
const value = currentValue || data[rowIndex][column.key];
|
|
4497
|
-
const rowData = __spreadProps$
|
|
4744
|
+
const rowData = __spreadProps$9(__spreadValues$9({}, data[rowIndex]), { [column.key]: value });
|
|
4498
4745
|
const rowValidateRes = getRowValidateResult(rowData);
|
|
4499
4746
|
if (rowValidateRes) {
|
|
4500
4747
|
return;
|
|
@@ -4517,7 +4764,7 @@ const TableFormBodyCell = (props) => {
|
|
|
4517
4764
|
}, [validateAll, triggerValidate]);
|
|
4518
4765
|
const _onChange = (value, data2) => {
|
|
4519
4766
|
const newData = data2.map(
|
|
4520
|
-
(row, i) => i === rowIndex ? __spreadProps$
|
|
4767
|
+
(row, i) => i === rowIndex ? __spreadProps$9(__spreadValues$9({}, row), { [column.key]: value }) : row
|
|
4521
4768
|
);
|
|
4522
4769
|
onChange == null ? void 0 : onChange(newData, rowIndex, column.key);
|
|
4523
4770
|
if (validateTriggerType === ValidateTriggerType.Normal && isTouched.current || validateTriggerType === ValidateTriggerType.Aggressive) {
|
|
@@ -4595,25 +4842,25 @@ const TableFormBodyCell = (props) => {
|
|
|
4595
4842
|
);
|
|
4596
4843
|
};
|
|
4597
4844
|
|
|
4598
|
-
var __defProp$
|
|
4599
|
-
var __defProps$
|
|
4600
|
-
var __getOwnPropDescs$
|
|
4601
|
-
var __getOwnPropSymbols$
|
|
4602
|
-
var __hasOwnProp$
|
|
4603
|
-
var __propIsEnum$
|
|
4604
|
-
var __defNormalProp$
|
|
4605
|
-
var __spreadValues$
|
|
4845
|
+
var __defProp$8 = Object.defineProperty;
|
|
4846
|
+
var __defProps$8 = Object.defineProperties;
|
|
4847
|
+
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
|
4848
|
+
var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
|
|
4849
|
+
var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
|
|
4850
|
+
var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
|
|
4851
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4852
|
+
var __spreadValues$8 = (a, b) => {
|
|
4606
4853
|
for (var prop in b || (b = {}))
|
|
4607
|
-
if (__hasOwnProp$
|
|
4608
|
-
__defNormalProp$
|
|
4609
|
-
if (__getOwnPropSymbols$
|
|
4610
|
-
for (var prop of __getOwnPropSymbols$
|
|
4611
|
-
if (__propIsEnum$
|
|
4612
|
-
__defNormalProp$
|
|
4854
|
+
if (__hasOwnProp$8.call(b, prop))
|
|
4855
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
4856
|
+
if (__getOwnPropSymbols$8)
|
|
4857
|
+
for (var prop of __getOwnPropSymbols$8(b)) {
|
|
4858
|
+
if (__propIsEnum$8.call(b, prop))
|
|
4859
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
4613
4860
|
}
|
|
4614
4861
|
return a;
|
|
4615
4862
|
};
|
|
4616
|
-
var __spreadProps$
|
|
4863
|
+
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
4617
4864
|
const TableFormRowDeleteAction = (props) => {
|
|
4618
4865
|
var _a, _b, _c, _d;
|
|
4619
4866
|
const { deleteConfig, row, updateData, rowIndex, data } = props;
|
|
@@ -4706,7 +4953,7 @@ const TableFormRow = (props) => {
|
|
|
4706
4953
|
);
|
|
4707
4954
|
});
|
|
4708
4955
|
const DraggableHandle = useMemo(
|
|
4709
|
-
() => draggable && provided ? /* @__PURE__ */ React__default.createElement(DraggableHandleWrapper, __spreadValues$
|
|
4956
|
+
() => draggable && provided ? /* @__PURE__ */ React__default.createElement(DraggableHandleWrapper, __spreadValues$8({}, provided.dragHandleProps), /* @__PURE__ */ React__default.createElement(
|
|
4710
4957
|
Icon,
|
|
4711
4958
|
{
|
|
4712
4959
|
src: HandlePoint816SecondaryIcon,
|
|
@@ -4768,7 +5015,7 @@ const TableFormBodyRows = memo((props) => {
|
|
|
4768
5015
|
);
|
|
4769
5016
|
return draggable ? /* @__PURE__ */ React__default.createElement(DragDropContext, { onDragEnd }, /* @__PURE__ */ React__default.createElement(Droppable, { droppableId: "droppable" }, (provided) => /* @__PURE__ */ React__default.createElement(
|
|
4770
5017
|
"div",
|
|
4771
|
-
__spreadValues$
|
|
5018
|
+
__spreadValues$8({
|
|
4772
5019
|
className: "draggable-container",
|
|
4773
5020
|
ref: provided.innerRef
|
|
4774
5021
|
}, provided.droppableProps),
|
|
@@ -4779,9 +5026,9 @@ const TableFormBodyRows = memo((props) => {
|
|
|
4779
5026
|
key: `draggable-id-${i}`,
|
|
4780
5027
|
index: i
|
|
4781
5028
|
},
|
|
4782
|
-
(provided2, snapshot) => /* @__PURE__ */ React__default.createElement("div", __spreadValues$
|
|
5029
|
+
(provided2, snapshot) => /* @__PURE__ */ React__default.createElement("div", __spreadValues$8({ ref: provided2.innerRef }, provided2.draggableProps), /* @__PURE__ */ React__default.createElement(
|
|
4783
5030
|
TableFormRow,
|
|
4784
|
-
__spreadProps$
|
|
5031
|
+
__spreadProps$8(__spreadValues$8({}, props), {
|
|
4785
5032
|
rowIndex: i,
|
|
4786
5033
|
provided: provided2,
|
|
4787
5034
|
snapshot
|
|
@@ -4789,28 +5036,28 @@ const TableFormBodyRows = memo((props) => {
|
|
|
4789
5036
|
))
|
|
4790
5037
|
)),
|
|
4791
5038
|
provided.placeholder
|
|
4792
|
-
))) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, data.map((_d, i) => /* @__PURE__ */ React__default.createElement(TableFormRow, __spreadProps$
|
|
5039
|
+
))) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, data.map((_d, i) => /* @__PURE__ */ React__default.createElement(TableFormRow, __spreadProps$8(__spreadValues$8({}, props), { rowIndex: i, key: `table-row-${i}` }))));
|
|
4793
5040
|
});
|
|
4794
5041
|
|
|
4795
|
-
var __defProp$
|
|
4796
|
-
var __defProps$
|
|
4797
|
-
var __getOwnPropDescs$
|
|
4798
|
-
var __getOwnPropSymbols$
|
|
4799
|
-
var __hasOwnProp$
|
|
4800
|
-
var __propIsEnum$
|
|
4801
|
-
var __defNormalProp$
|
|
4802
|
-
var __spreadValues$
|
|
5042
|
+
var __defProp$7 = Object.defineProperty;
|
|
5043
|
+
var __defProps$7 = Object.defineProperties;
|
|
5044
|
+
var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
|
|
5045
|
+
var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
|
|
5046
|
+
var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
|
|
5047
|
+
var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
|
|
5048
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5049
|
+
var __spreadValues$7 = (a, b) => {
|
|
4803
5050
|
for (var prop in b || (b = {}))
|
|
4804
|
-
if (__hasOwnProp$
|
|
4805
|
-
__defNormalProp$
|
|
4806
|
-
if (__getOwnPropSymbols$
|
|
4807
|
-
for (var prop of __getOwnPropSymbols$
|
|
4808
|
-
if (__propIsEnum$
|
|
4809
|
-
__defNormalProp$
|
|
5051
|
+
if (__hasOwnProp$7.call(b, prop))
|
|
5052
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
5053
|
+
if (__getOwnPropSymbols$7)
|
|
5054
|
+
for (var prop of __getOwnPropSymbols$7(b)) {
|
|
5055
|
+
if (__propIsEnum$7.call(b, prop))
|
|
5056
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
4810
5057
|
}
|
|
4811
5058
|
return a;
|
|
4812
5059
|
};
|
|
4813
|
-
var __spreadProps$
|
|
5060
|
+
var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
|
|
4814
5061
|
const BatchInputListHeaderCell = (props) => {
|
|
4815
5062
|
const { column, disabled, data, disableBatchFilling, onBlur, onChange } = props;
|
|
4816
5063
|
const [errMsg, setErrMsg] = useState();
|
|
@@ -4822,7 +5069,7 @@ const BatchInputListHeaderCell = (props) => {
|
|
|
4822
5069
|
setErrMsg(err || void 0);
|
|
4823
5070
|
const shouldAutoIncrease = column.type !== "password" && column.autoIncrease;
|
|
4824
5071
|
const newData = data.map((cell, rowIndex) => {
|
|
4825
|
-
return __spreadProps$
|
|
5072
|
+
return __spreadProps$7(__spreadValues$7({}, cell), {
|
|
4826
5073
|
[column.key]: shouldAutoIncrease && typeof value === "string" ? increaseLastNumber(value, rowIndex) : value
|
|
4827
5074
|
});
|
|
4828
5075
|
});
|
|
@@ -4839,7 +5086,7 @@ const BatchInputListHeaderCell = (props) => {
|
|
|
4839
5086
|
const CellComponent = ColumnHeaderImpls[column.type];
|
|
4840
5087
|
return /* @__PURE__ */ React__default.createElement(
|
|
4841
5088
|
CellComponent,
|
|
4842
|
-
__spreadProps$
|
|
5089
|
+
__spreadProps$7(__spreadValues$7({}, props), {
|
|
4843
5090
|
column,
|
|
4844
5091
|
onChange: headerOnChange,
|
|
4845
5092
|
onBlur: _onBlur
|
|
@@ -4874,25 +5121,25 @@ const BatchInputListHeaderCell = (props) => {
|
|
|
4874
5121
|
);
|
|
4875
5122
|
};
|
|
4876
5123
|
|
|
4877
|
-
var __defProp$
|
|
4878
|
-
var __defProps$
|
|
4879
|
-
var __getOwnPropDescs$
|
|
4880
|
-
var __getOwnPropSymbols$
|
|
4881
|
-
var __hasOwnProp$
|
|
4882
|
-
var __propIsEnum$
|
|
4883
|
-
var __defNormalProp$
|
|
4884
|
-
var __spreadValues$
|
|
5124
|
+
var __defProp$6 = Object.defineProperty;
|
|
5125
|
+
var __defProps$6 = Object.defineProperties;
|
|
5126
|
+
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
5127
|
+
var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
|
|
5128
|
+
var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
|
|
5129
|
+
var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
|
|
5130
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5131
|
+
var __spreadValues$6 = (a, b) => {
|
|
4885
5132
|
for (var prop in b || (b = {}))
|
|
4886
|
-
if (__hasOwnProp$
|
|
4887
|
-
__defNormalProp$
|
|
4888
|
-
if (__getOwnPropSymbols$
|
|
4889
|
-
for (var prop of __getOwnPropSymbols$
|
|
4890
|
-
if (__propIsEnum$
|
|
4891
|
-
__defNormalProp$
|
|
5133
|
+
if (__hasOwnProp$6.call(b, prop))
|
|
5134
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
5135
|
+
if (__getOwnPropSymbols$6)
|
|
5136
|
+
for (var prop of __getOwnPropSymbols$6(b)) {
|
|
5137
|
+
if (__propIsEnum$6.call(b, prop))
|
|
5138
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
4892
5139
|
}
|
|
4893
5140
|
return a;
|
|
4894
5141
|
};
|
|
4895
|
-
var __spreadProps$
|
|
5142
|
+
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
|
4896
5143
|
const DEFAULT_ROW_COUNT = 3;
|
|
4897
5144
|
const TableForm = React__default.forwardRef(
|
|
4898
5145
|
(props, ref) => {
|
|
@@ -4954,7 +5201,7 @@ const TableForm = React__default.forwardRef(
|
|
|
4954
5201
|
(key, error) => {
|
|
4955
5202
|
if (error) {
|
|
4956
5203
|
const newData = latestData.map((cell) => {
|
|
4957
|
-
return __spreadProps$
|
|
5204
|
+
return __spreadProps$6(__spreadValues$6({}, cell), {
|
|
4958
5205
|
[key]: ""
|
|
4959
5206
|
});
|
|
4960
5207
|
});
|
|
@@ -5065,31 +5312,31 @@ const Size$1 = {
|
|
|
5065
5312
|
const TagStyle$1 = "tnd6h4m";
|
|
5066
5313
|
const IconStyle$1 = "i1qw4clm";
|
|
5067
5314
|
|
|
5068
|
-
var __defProp$
|
|
5069
|
-
var __defProps$
|
|
5070
|
-
var __getOwnPropDescs$
|
|
5071
|
-
var __getOwnPropSymbols$
|
|
5072
|
-
var __hasOwnProp$
|
|
5073
|
-
var __propIsEnum$
|
|
5074
|
-
var __defNormalProp$
|
|
5315
|
+
var __defProp$5 = Object.defineProperty;
|
|
5316
|
+
var __defProps$5 = Object.defineProperties;
|
|
5317
|
+
var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
|
|
5318
|
+
var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
|
|
5319
|
+
var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
|
|
5320
|
+
var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
|
|
5321
|
+
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, {
|
|
5075
5322
|
enumerable: true,
|
|
5076
5323
|
configurable: true,
|
|
5077
5324
|
writable: true,
|
|
5078
5325
|
value
|
|
5079
5326
|
}) : obj[key] = value;
|
|
5080
|
-
var __spreadValues$
|
|
5081
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
5082
|
-
if (__getOwnPropSymbols$
|
|
5083
|
-
if (__propIsEnum$
|
|
5327
|
+
var __spreadValues$5 = (a, b) => {
|
|
5328
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$5.call(b, prop)) __defNormalProp$5(a, prop, b[prop]);
|
|
5329
|
+
if (__getOwnPropSymbols$5) for (var prop of __getOwnPropSymbols$5(b)) {
|
|
5330
|
+
if (__propIsEnum$5.call(b, prop)) __defNormalProp$5(a, prop, b[prop]);
|
|
5084
5331
|
}
|
|
5085
5332
|
return a;
|
|
5086
5333
|
};
|
|
5087
|
-
var __spreadProps$
|
|
5088
|
-
var __objRest$
|
|
5334
|
+
var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
|
|
5335
|
+
var __objRest$2 = (source, exclude) => {
|
|
5089
5336
|
var target = {};
|
|
5090
|
-
for (var prop in source) if (__hasOwnProp$
|
|
5091
|
-
if (source != null && __getOwnPropSymbols$
|
|
5092
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
5337
|
+
for (var prop in source) if (__hasOwnProp$5.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
5338
|
+
if (source != null && __getOwnPropSymbols$5) for (var prop of __getOwnPropSymbols$5(source)) {
|
|
5339
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$5.call(source, prop)) target[prop] = source[prop];
|
|
5093
5340
|
}
|
|
5094
5341
|
return target;
|
|
5095
5342
|
};
|
|
@@ -5104,8 +5351,8 @@ const SplitTag = _a => {
|
|
|
5104
5351
|
secondaryContent,
|
|
5105
5352
|
icon
|
|
5106
5353
|
} = _b,
|
|
5107
|
-
props = __objRest$
|
|
5108
|
-
return /* @__PURE__ */React__default.createElement(Tag$1, __spreadProps$
|
|
5354
|
+
props = __objRest$2(_b, ["size", "color", "className", "primaryContent", "secondaryContent", "icon"]);
|
|
5355
|
+
return /* @__PURE__ */React__default.createElement(Tag$1, __spreadProps$5(__spreadValues$5({}, props), {
|
|
5109
5356
|
className: cs(className, TagStyle$1, Size$1[size], WrapperStyle, Typo.Label.l4_regular, {
|
|
5110
5357
|
[`ant-tag-${color}`]: PresetColors$2.includes(color)
|
|
5111
5358
|
}, "outside-tag")
|
|
@@ -5118,33 +5365,33 @@ const SplitTag = _a => {
|
|
|
5118
5365
|
}, icon), primaryContent), secondaryContent);
|
|
5119
5366
|
};
|
|
5120
5367
|
|
|
5121
|
-
var __defProp$
|
|
5122
|
-
var __defProps$
|
|
5123
|
-
var __getOwnPropDescs$
|
|
5124
|
-
var __getOwnPropSymbols$
|
|
5125
|
-
var __hasOwnProp$
|
|
5126
|
-
var __propIsEnum$
|
|
5127
|
-
var __defNormalProp$
|
|
5128
|
-
var __spreadValues$
|
|
5368
|
+
var __defProp$4 = Object.defineProperty;
|
|
5369
|
+
var __defProps$4 = Object.defineProperties;
|
|
5370
|
+
var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
|
|
5371
|
+
var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
|
|
5372
|
+
var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
|
|
5373
|
+
var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
|
|
5374
|
+
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5375
|
+
var __spreadValues$4 = (a, b) => {
|
|
5129
5376
|
for (var prop in b || (b = {}))
|
|
5130
|
-
if (__hasOwnProp$
|
|
5131
|
-
__defNormalProp$
|
|
5132
|
-
if (__getOwnPropSymbols$
|
|
5133
|
-
for (var prop of __getOwnPropSymbols$
|
|
5134
|
-
if (__propIsEnum$
|
|
5135
|
-
__defNormalProp$
|
|
5377
|
+
if (__hasOwnProp$4.call(b, prop))
|
|
5378
|
+
__defNormalProp$4(a, prop, b[prop]);
|
|
5379
|
+
if (__getOwnPropSymbols$4)
|
|
5380
|
+
for (var prop of __getOwnPropSymbols$4(b)) {
|
|
5381
|
+
if (__propIsEnum$4.call(b, prop))
|
|
5382
|
+
__defNormalProp$4(a, prop, b[prop]);
|
|
5136
5383
|
}
|
|
5137
5384
|
return a;
|
|
5138
5385
|
};
|
|
5139
|
-
var __spreadProps$
|
|
5140
|
-
var __objRest$
|
|
5386
|
+
var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
|
|
5387
|
+
var __objRest$1 = (source, exclude) => {
|
|
5141
5388
|
var target = {};
|
|
5142
5389
|
for (var prop in source)
|
|
5143
|
-
if (__hasOwnProp$
|
|
5390
|
+
if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
5144
5391
|
target[prop] = source[prop];
|
|
5145
|
-
if (source != null && __getOwnPropSymbols$
|
|
5146
|
-
for (var prop of __getOwnPropSymbols$
|
|
5147
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
5392
|
+
if (source != null && __getOwnPropSymbols$4)
|
|
5393
|
+
for (var prop of __getOwnPropSymbols$4(source)) {
|
|
5394
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$4.call(source, prop))
|
|
5148
5395
|
target[prop] = source[prop];
|
|
5149
5396
|
}
|
|
5150
5397
|
return target;
|
|
@@ -5169,7 +5416,7 @@ const Tag = (_a) => {
|
|
|
5169
5416
|
hoverable = false,
|
|
5170
5417
|
icon,
|
|
5171
5418
|
children
|
|
5172
|
-
} = _b, props = __objRest$
|
|
5419
|
+
} = _b, props = __objRest$1(_b, [
|
|
5173
5420
|
"size",
|
|
5174
5421
|
"color",
|
|
5175
5422
|
"className",
|
|
@@ -5180,7 +5427,7 @@ const Tag = (_a) => {
|
|
|
5180
5427
|
const computedColor = AntdColorMap[color] || color;
|
|
5181
5428
|
return /* @__PURE__ */ React__default.createElement(
|
|
5182
5429
|
Tag$1,
|
|
5183
|
-
__spreadProps$
|
|
5430
|
+
__spreadProps$4(__spreadValues$4({}, props), {
|
|
5184
5431
|
className: cs(className, Size$1[size], TagStyle$1, Typo.Label.l4_regular, {
|
|
5185
5432
|
[`ant-tag-${computedColor}`]: PresetColors$1.includes(computedColor),
|
|
5186
5433
|
"tag-hover": hoverable
|
|
@@ -5369,31 +5616,31 @@ const TimeZoneOption = ({
|
|
|
5369
5616
|
|
|
5370
5617
|
const IconStyle = "iwsze0q";
|
|
5371
5618
|
|
|
5372
|
-
var __defProp$
|
|
5373
|
-
var __defProps$
|
|
5374
|
-
var __getOwnPropDescs$
|
|
5375
|
-
var __getOwnPropSymbols$
|
|
5376
|
-
var __hasOwnProp$
|
|
5377
|
-
var __propIsEnum$
|
|
5378
|
-
var __defNormalProp$
|
|
5619
|
+
var __defProp$3 = Object.defineProperty;
|
|
5620
|
+
var __defProps$3 = Object.defineProperties;
|
|
5621
|
+
var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
|
|
5622
|
+
var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
|
|
5623
|
+
var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
|
|
5624
|
+
var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
|
|
5625
|
+
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, {
|
|
5379
5626
|
enumerable: true,
|
|
5380
5627
|
configurable: true,
|
|
5381
5628
|
writable: true,
|
|
5382
5629
|
value
|
|
5383
5630
|
}) : obj[key] = value;
|
|
5384
|
-
var __spreadValues$
|
|
5385
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
5386
|
-
if (__getOwnPropSymbols$
|
|
5387
|
-
if (__propIsEnum$
|
|
5631
|
+
var __spreadValues$3 = (a, b) => {
|
|
5632
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$3.call(b, prop)) __defNormalProp$3(a, prop, b[prop]);
|
|
5633
|
+
if (__getOwnPropSymbols$3) for (var prop of __getOwnPropSymbols$3(b)) {
|
|
5634
|
+
if (__propIsEnum$3.call(b, prop)) __defNormalProp$3(a, prop, b[prop]);
|
|
5388
5635
|
}
|
|
5389
5636
|
return a;
|
|
5390
5637
|
};
|
|
5391
|
-
var __spreadProps$
|
|
5392
|
-
var __objRest
|
|
5638
|
+
var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
|
|
5639
|
+
var __objRest = (source, exclude) => {
|
|
5393
5640
|
var target = {};
|
|
5394
|
-
for (var prop in source) if (__hasOwnProp$
|
|
5395
|
-
if (source != null && __getOwnPropSymbols$
|
|
5396
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
5641
|
+
for (var prop in source) if (__hasOwnProp$3.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
5642
|
+
if (source != null && __getOwnPropSymbols$3) for (var prop of __getOwnPropSymbols$3(source)) {
|
|
5643
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$3.call(source, prop)) target[prop] = source[prop];
|
|
5397
5644
|
}
|
|
5398
5645
|
return target;
|
|
5399
5646
|
};
|
|
@@ -5415,15 +5662,15 @@ const Token = React__default.forwardRef((_a, ref) => {
|
|
|
5415
5662
|
children,
|
|
5416
5663
|
tooltipConfig
|
|
5417
5664
|
} = _b,
|
|
5418
|
-
props = __objRest
|
|
5419
|
-
return /* @__PURE__ */React__default.createElement(Tag$1, __spreadProps$
|
|
5665
|
+
props = __objRest(_b, ["size", "color", "className", "icon", "checked", "children", "tooltipConfig"]);
|
|
5666
|
+
return /* @__PURE__ */React__default.createElement(Tag$1, __spreadProps$3(__spreadValues$3({}, props), {
|
|
5420
5667
|
ref,
|
|
5421
5668
|
className: cs(className, Size[size], TokenStyle, {
|
|
5422
5669
|
[Typo.Label.l4_regular]: size === "small" || size === "medium",
|
|
5423
5670
|
[Typo.Label.l3_regular]: size === "large",
|
|
5424
5671
|
[`ant-tag-${color}`]: PresetColors.includes(color)
|
|
5425
5672
|
}, "ui-kit-token", checked && "ui-kit-token-checked"),
|
|
5426
|
-
closeIcon: /* @__PURE__ */React__default.createElement(Tooltip, __spreadValues$
|
|
5673
|
+
closeIcon: /* @__PURE__ */React__default.createElement(Tooltip, __spreadValues$3({
|
|
5427
5674
|
title: tooltipConfig == null ? void 0 : tooltipConfig.title
|
|
5428
5675
|
}, !(tooltipConfig == null ? void 0 : tooltipConfig.title) && {
|
|
5429
5676
|
visible: false
|
|
@@ -5480,121 +5727,6 @@ const Truncate = props => {
|
|
|
5480
5727
|
}, Text);
|
|
5481
5728
|
};
|
|
5482
5729
|
|
|
5483
|
-
var __defProp$4 = Object.defineProperty;
|
|
5484
|
-
var __defProps$3 = Object.defineProperties;
|
|
5485
|
-
var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
|
|
5486
|
-
var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
|
|
5487
|
-
var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
|
|
5488
|
-
var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
|
|
5489
|
-
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, {
|
|
5490
|
-
enumerable: true,
|
|
5491
|
-
configurable: true,
|
|
5492
|
-
writable: true,
|
|
5493
|
-
value
|
|
5494
|
-
}) : obj[key] = value;
|
|
5495
|
-
var __spreadValues$4 = (a, b) => {
|
|
5496
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$5.call(b, prop)) __defNormalProp$4(a, prop, b[prop]);
|
|
5497
|
-
if (__getOwnPropSymbols$5) for (var prop of __getOwnPropSymbols$5(b)) {
|
|
5498
|
-
if (__propIsEnum$5.call(b, prop)) __defNormalProp$4(a, prop, b[prop]);
|
|
5499
|
-
}
|
|
5500
|
-
return a;
|
|
5501
|
-
};
|
|
5502
|
-
var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
|
|
5503
|
-
const OverflowText = "o8ocss1";
|
|
5504
|
-
const NoWrap = "n17syc35";
|
|
5505
|
-
const OverflowTooltip = props => {
|
|
5506
|
-
const {
|
|
5507
|
-
content,
|
|
5508
|
-
className,
|
|
5509
|
-
onClick,
|
|
5510
|
-
isMultiLine
|
|
5511
|
-
} = props;
|
|
5512
|
-
const tooltip = props.tooltip || content;
|
|
5513
|
-
const [ellipsis, setEllipsis] = useState(false);
|
|
5514
|
-
const textRef = useRef(null);
|
|
5515
|
-
useEffect(() => {
|
|
5516
|
-
const ele = textRef.current;
|
|
5517
|
-
let observer;
|
|
5518
|
-
if (ele) {
|
|
5519
|
-
const handleResize = debounce(() => {
|
|
5520
|
-
if (isMultiLine) {
|
|
5521
|
-
setEllipsis(ele.scrollHeight > ele.offsetHeight);
|
|
5522
|
-
} else {
|
|
5523
|
-
setEllipsis(ele.scrollWidth > ele.offsetWidth);
|
|
5524
|
-
}
|
|
5525
|
-
}, 200);
|
|
5526
|
-
observer = new ResizeObserver(handleResize);
|
|
5527
|
-
observer.observe(ele);
|
|
5528
|
-
}
|
|
5529
|
-
return () => {
|
|
5530
|
-
observer == null ? void 0 : observer.disconnect();
|
|
5531
|
-
};
|
|
5532
|
-
});
|
|
5533
|
-
return /* @__PURE__ */React__default.createElement(Tooltip, __spreadProps$3(__spreadValues$4({}, !ellipsis && {
|
|
5534
|
-
visible: false
|
|
5535
|
-
}), {
|
|
5536
|
-
title: tooltip
|
|
5537
|
-
}), /* @__PURE__ */React__default.createElement("div", {
|
|
5538
|
-
ref: textRef,
|
|
5539
|
-
className: cx(OverflowText, !isMultiLine && NoWrap, className),
|
|
5540
|
-
onClick: () => {
|
|
5541
|
-
onClick && onClick();
|
|
5542
|
-
}
|
|
5543
|
-
}, /* @__PURE__ */React__default.createElement("span", null, content)));
|
|
5544
|
-
};
|
|
5545
|
-
|
|
5546
|
-
var __defProp$3 = Object.defineProperty;
|
|
5547
|
-
var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
|
|
5548
|
-
var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
|
|
5549
|
-
var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
|
|
5550
|
-
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5551
|
-
var __spreadValues$3 = (a, b) => {
|
|
5552
|
-
for (var prop in b || (b = {}))
|
|
5553
|
-
if (__hasOwnProp$4.call(b, prop))
|
|
5554
|
-
__defNormalProp$3(a, prop, b[prop]);
|
|
5555
|
-
if (__getOwnPropSymbols$4)
|
|
5556
|
-
for (var prop of __getOwnPropSymbols$4(b)) {
|
|
5557
|
-
if (__propIsEnum$4.call(b, prop))
|
|
5558
|
-
__defNormalProp$3(a, prop, b[prop]);
|
|
5559
|
-
}
|
|
5560
|
-
return a;
|
|
5561
|
-
};
|
|
5562
|
-
const ParrotTrans = (props) => {
|
|
5563
|
-
const { i18n } = useParrotTranslation();
|
|
5564
|
-
return /* @__PURE__ */ React__default.createElement(Trans, __spreadValues$3({ i18n }, props));
|
|
5565
|
-
};
|
|
5566
|
-
|
|
5567
|
-
var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
|
|
5568
|
-
var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
|
|
5569
|
-
var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
|
|
5570
|
-
var __objRest = (source, exclude) => {
|
|
5571
|
-
var target = {};
|
|
5572
|
-
for (var prop in source) if (__hasOwnProp$3.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
5573
|
-
if (source != null && __getOwnPropSymbols$3) for (var prop of __getOwnPropSymbols$3(source)) {
|
|
5574
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$3.call(source, prop)) target[prop] = source[prop];
|
|
5575
|
-
}
|
|
5576
|
-
return target;
|
|
5577
|
-
};
|
|
5578
|
-
const NameTag = /*#__PURE__*/styled('span')({
|
|
5579
|
-
name: "NameTag",
|
|
5580
|
-
class: "n3qomhu",
|
|
5581
|
-
propsAsIs: false
|
|
5582
|
-
});
|
|
5583
|
-
const I18nNameTag = props => {
|
|
5584
|
-
const _a = props,
|
|
5585
|
-
{
|
|
5586
|
-
name,
|
|
5587
|
-
i18nKey
|
|
5588
|
-
} = _a,
|
|
5589
|
-
otherOption = __objRest(_a, ["name", "i18nKey"]);
|
|
5590
|
-
return /* @__PURE__ */React__default.createElement(ParrotTrans, {
|
|
5591
|
-
i18nKey,
|
|
5592
|
-
tOptions: otherOption
|
|
5593
|
-
}, "h", /* @__PURE__ */React__default.createElement(NameTag, null, {
|
|
5594
|
-
name
|
|
5595
|
-
}));
|
|
5596
|
-
};
|
|
5597
|
-
|
|
5598
5730
|
function getAntdKit() {
|
|
5599
5731
|
const kit = {
|
|
5600
5732
|
loading: Loading,
|
|
@@ -5694,7 +5826,10 @@ function getAntdKit() {
|
|
|
5694
5826
|
ExpandableContainer,
|
|
5695
5827
|
ExpandableItem
|
|
5696
5828
|
},
|
|
5697
|
-
time: Time
|
|
5829
|
+
time: Time,
|
|
5830
|
+
DropdownTransition,
|
|
5831
|
+
AccordionCard,
|
|
5832
|
+
DetailCard
|
|
5698
5833
|
};
|
|
5699
5834
|
kit.option.isSelectOption = true;
|
|
5700
5835
|
kit.button.__ANT_BUTTON = true;
|