@cloudtower/eagle 0.26.22 → 0.26.24
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/Card/CardWrapper.d.ts +1 -1
- package/dist/components/Modal/AsideModal.d.ts +5 -0
- package/dist/components/StatusCapsule/__test__/h5_css.test.d.ts +1 -0
- package/dist/components/StatusCapsule/index.d.ts +8 -0
- package/dist/components.css +498 -420
- package/dist/esm/index.js +843 -736
- package/dist/esm/stats1.html +1 -1
- package/dist/spec/base.d.ts +9 -0
- package/dist/style.css +882 -804
- package/dist/umd/index.js +840 -733
- package/dist/umd/stats1.html +1 -1
- package/dist/variables.scss +26 -1
- package/package.json +5 -5
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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, Collapse, DatePicker, Select as Select$1, InputNumber as InputNumber$1, Input as Input$1, TimePicker as TimePicker$1, Form as Form$1,
|
|
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, 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';
|
|
@@ -10,11 +10,11 @@ export * from '@cloudtower/parrot';
|
|
|
10
10
|
import { useTranslation, withTranslation } from 'react-i18next';
|
|
11
11
|
import { cx } from '@linaria/core';
|
|
12
12
|
import { styled } from '@linaria/react';
|
|
13
|
-
import { ArrowRightGrayIcon, ArrowChevronUp16SecondaryIcon, ArrowChevronDown16SecondaryIcon, CheckmarkDoneSuccessCorrect16SecondaryIcon, PlusAddCreateNew16SecondaryIcon, HandlePoint816SecondaryIcon, HandlePoint816BlueIcon, XmarkRemove16SecondaryIcon, XmarkRemove16RegularRedIcon, CheckmarkDoneSuccessCorrect16BlueIcon, XmarkRemoveSmall16RegularInheritIcon } from '@cloudtower/icons-react';
|
|
13
|
+
import { ArrowRightGrayIcon, ArrowChevronUp16SecondaryIcon, ArrowChevronDown16SecondaryIcon, CheckmarkDoneSuccessCorrect16SecondaryIcon, Loading8GradientBlueIcon, PlusAddCreateNew16SecondaryIcon, HandlePoint816SecondaryIcon, HandlePoint816BlueIcon, XmarkRemove16SecondaryIcon, XmarkRemove16RegularRedIcon, CheckmarkDoneSuccessCorrect16BlueIcon, XmarkRemoveSmall16RegularInheritIcon } from '@cloudtower/icons-react';
|
|
14
14
|
import moment from 'moment';
|
|
15
15
|
import { findDOMNode } from 'react-dom';
|
|
16
16
|
import { isElement } from 'react-is';
|
|
17
|
-
import { CloseCircleFilled,
|
|
17
|
+
import { CloseCircleFilled, SearchOutlined, EyeOutlined, EyeInvisibleOutlined } from '@ant-design/icons';
|
|
18
18
|
import CheckCircleFilled from '@ant-design/icons/CheckCircleFilled';
|
|
19
19
|
import CloseCircleFilled$1 from '@ant-design/icons/CloseCircleFilled';
|
|
20
20
|
import ExclamationCircleFilled from '@ant-design/icons/ExclamationCircleFilled';
|
|
@@ -252,30 +252,30 @@ function getAlertIcon(type) {
|
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
|
|
255
|
-
var __defProp$
|
|
256
|
-
var __getOwnPropSymbols$
|
|
257
|
-
var __hasOwnProp$
|
|
258
|
-
var __propIsEnum$
|
|
259
|
-
var __defNormalProp$
|
|
260
|
-
var __spreadValues$
|
|
255
|
+
var __defProp$U = Object.defineProperty;
|
|
256
|
+
var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
|
|
257
|
+
var __hasOwnProp$V = Object.prototype.hasOwnProperty;
|
|
258
|
+
var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
|
|
259
|
+
var __defNormalProp$U = (obj, key, value) => key in obj ? __defProp$U(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
260
|
+
var __spreadValues$U = (a, b) => {
|
|
261
261
|
for (var prop in b || (b = {}))
|
|
262
|
-
if (__hasOwnProp$
|
|
263
|
-
__defNormalProp$
|
|
264
|
-
if (__getOwnPropSymbols$
|
|
265
|
-
for (var prop of __getOwnPropSymbols$
|
|
266
|
-
if (__propIsEnum$
|
|
267
|
-
__defNormalProp$
|
|
262
|
+
if (__hasOwnProp$V.call(b, prop))
|
|
263
|
+
__defNormalProp$U(a, prop, b[prop]);
|
|
264
|
+
if (__getOwnPropSymbols$V)
|
|
265
|
+
for (var prop of __getOwnPropSymbols$V(b)) {
|
|
266
|
+
if (__propIsEnum$V.call(b, prop))
|
|
267
|
+
__defNormalProp$U(a, prop, b[prop]);
|
|
268
268
|
}
|
|
269
269
|
return a;
|
|
270
270
|
};
|
|
271
|
-
var __objRest$
|
|
271
|
+
var __objRest$y = (source, exclude) => {
|
|
272
272
|
var target = {};
|
|
273
273
|
for (var prop in source)
|
|
274
|
-
if (__hasOwnProp$
|
|
274
|
+
if (__hasOwnProp$V.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
275
275
|
target[prop] = source[prop];
|
|
276
|
-
if (source != null && __getOwnPropSymbols$
|
|
277
|
-
for (var prop of __getOwnPropSymbols$
|
|
278
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
276
|
+
if (source != null && __getOwnPropSymbols$V)
|
|
277
|
+
for (var prop of __getOwnPropSymbols$V(source)) {
|
|
278
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$V.call(source, prop))
|
|
279
279
|
target[prop] = source[prop];
|
|
280
280
|
}
|
|
281
281
|
return target;
|
|
@@ -293,7 +293,7 @@ const BaseIcon = React__default.forwardRef(
|
|
|
293
293
|
prefixNode,
|
|
294
294
|
suffixIconSrc: SuffixSrc,
|
|
295
295
|
src: Src
|
|
296
|
-
} = _a, HTMLSpanElementProps = __objRest$
|
|
296
|
+
} = _a, HTMLSpanElementProps = __objRest$y(_a, [
|
|
297
297
|
"alt",
|
|
298
298
|
"className",
|
|
299
299
|
"width",
|
|
@@ -307,10 +307,10 @@ const BaseIcon = React__default.forwardRef(
|
|
|
307
307
|
]);
|
|
308
308
|
return /* @__PURE__ */ React__default.createElement(
|
|
309
309
|
"span",
|
|
310
|
-
__spreadValues$
|
|
310
|
+
__spreadValues$U({
|
|
311
311
|
ref,
|
|
312
312
|
className,
|
|
313
|
-
style: _.pickBy(__spreadValues$
|
|
313
|
+
style: _.pickBy(__spreadValues$U({ cursor }, style))
|
|
314
314
|
}, HTMLSpanElementProps),
|
|
315
315
|
prefixNode,
|
|
316
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 }))),
|
|
@@ -320,31 +320,31 @@ const BaseIcon = React__default.forwardRef(
|
|
|
320
320
|
}
|
|
321
321
|
);
|
|
322
322
|
|
|
323
|
-
var __defProp$
|
|
324
|
-
var __defProps$
|
|
325
|
-
var __getOwnPropDescs$
|
|
326
|
-
var __getOwnPropSymbols$
|
|
327
|
-
var __hasOwnProp$
|
|
328
|
-
var __propIsEnum$
|
|
329
|
-
var __defNormalProp$
|
|
323
|
+
var __defProp$T = Object.defineProperty;
|
|
324
|
+
var __defProps$C = Object.defineProperties;
|
|
325
|
+
var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
|
|
326
|
+
var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
|
|
327
|
+
var __hasOwnProp$U = Object.prototype.hasOwnProperty;
|
|
328
|
+
var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
|
|
329
|
+
var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, {
|
|
330
330
|
enumerable: true,
|
|
331
331
|
configurable: true,
|
|
332
332
|
writable: true,
|
|
333
333
|
value
|
|
334
334
|
}) : obj[key] = value;
|
|
335
|
-
var __spreadValues$
|
|
336
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
337
|
-
if (__getOwnPropSymbols$
|
|
338
|
-
if (__propIsEnum$
|
|
335
|
+
var __spreadValues$T = (a, b) => {
|
|
336
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$U.call(b, prop)) __defNormalProp$T(a, prop, b[prop]);
|
|
337
|
+
if (__getOwnPropSymbols$U) for (var prop of __getOwnPropSymbols$U(b)) {
|
|
338
|
+
if (__propIsEnum$U.call(b, prop)) __defNormalProp$T(a, prop, b[prop]);
|
|
339
339
|
}
|
|
340
340
|
return a;
|
|
341
341
|
};
|
|
342
|
-
var __spreadProps$
|
|
343
|
-
var __objRest$
|
|
342
|
+
var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
|
|
343
|
+
var __objRest$x = (source, exclude) => {
|
|
344
344
|
var target = {};
|
|
345
|
-
for (var prop in source) if (__hasOwnProp$
|
|
346
|
-
if (source != null && __getOwnPropSymbols$
|
|
347
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
345
|
+
for (var prop in source) if (__hasOwnProp$U.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
346
|
+
if (source != null && __getOwnPropSymbols$U) for (var prop of __getOwnPropSymbols$U(source)) {
|
|
347
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$U.call(source, prop)) target[prop] = source[prop];
|
|
348
348
|
}
|
|
349
349
|
return target;
|
|
350
350
|
};
|
|
@@ -368,7 +368,7 @@ const Icon = React__default.forwardRef((props, ref) => {
|
|
|
368
368
|
prefix,
|
|
369
369
|
suffix
|
|
370
370
|
} = _a,
|
|
371
|
-
restProps = __objRest$
|
|
371
|
+
restProps = __objRest$x(_a, ["src", "hoverSrc", "active", "activeSrc", "onMouseEnter", "onMouseLeave", "onMouseMove", "className", "iconWidth", "iconHeight", "cursor", "style", "isRotate", "prefix", "suffix"]);
|
|
372
372
|
const [hover, setHover] = useState(false);
|
|
373
373
|
const _src = useMemo(() => {
|
|
374
374
|
if (active && activeSrc) {
|
|
@@ -396,14 +396,14 @@ const Icon = React__default.forwardRef((props, ref) => {
|
|
|
396
396
|
}
|
|
397
397
|
return src2;
|
|
398
398
|
}, [active, hover, suffix]);
|
|
399
|
-
return /* @__PURE__ */React__default.createElement(BaseIcon, __spreadProps$
|
|
399
|
+
return /* @__PURE__ */React__default.createElement(BaseIcon, __spreadProps$C(__spreadValues$T({
|
|
400
400
|
src: _src,
|
|
401
401
|
className: cs(IconWrapper, "icon-wrapper", className, isRotate && "is-rotate"),
|
|
402
402
|
suffixIconSrc,
|
|
403
403
|
height: iconHeight,
|
|
404
404
|
width: iconWidth,
|
|
405
405
|
prefixNode: prefix,
|
|
406
|
-
style: _.pickBy(__spreadValues$
|
|
406
|
+
style: _.pickBy(__spreadValues$T({
|
|
407
407
|
cursor
|
|
408
408
|
}, style))
|
|
409
409
|
}, restProps), {
|
|
@@ -428,31 +428,31 @@ const Icon = React__default.forwardRef((props, ref) => {
|
|
|
428
428
|
}));
|
|
429
429
|
});
|
|
430
430
|
|
|
431
|
-
var __defProp$
|
|
432
|
-
var __defProps$
|
|
433
|
-
var __getOwnPropDescs$
|
|
434
|
-
var __getOwnPropSymbols$
|
|
435
|
-
var __hasOwnProp$
|
|
436
|
-
var __propIsEnum$
|
|
437
|
-
var __defNormalProp$
|
|
431
|
+
var __defProp$S = Object.defineProperty;
|
|
432
|
+
var __defProps$B = Object.defineProperties;
|
|
433
|
+
var __getOwnPropDescs$B = Object.getOwnPropertyDescriptors;
|
|
434
|
+
var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
|
|
435
|
+
var __hasOwnProp$T = Object.prototype.hasOwnProperty;
|
|
436
|
+
var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
|
|
437
|
+
var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, {
|
|
438
438
|
enumerable: true,
|
|
439
439
|
configurable: true,
|
|
440
440
|
writable: true,
|
|
441
441
|
value
|
|
442
442
|
}) : obj[key] = value;
|
|
443
|
-
var __spreadValues$
|
|
444
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
445
|
-
if (__getOwnPropSymbols$
|
|
446
|
-
if (__propIsEnum$
|
|
443
|
+
var __spreadValues$S = (a, b) => {
|
|
444
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$T.call(b, prop)) __defNormalProp$S(a, prop, b[prop]);
|
|
445
|
+
if (__getOwnPropSymbols$T) for (var prop of __getOwnPropSymbols$T(b)) {
|
|
446
|
+
if (__propIsEnum$T.call(b, prop)) __defNormalProp$S(a, prop, b[prop]);
|
|
447
447
|
}
|
|
448
448
|
return a;
|
|
449
449
|
};
|
|
450
|
-
var __spreadProps$
|
|
451
|
-
var __objRest$
|
|
450
|
+
var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
|
|
451
|
+
var __objRest$w = (source, exclude) => {
|
|
452
452
|
var target = {};
|
|
453
|
-
for (var prop in source) if (__hasOwnProp$
|
|
454
|
-
if (source != null && __getOwnPropSymbols$
|
|
455
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
453
|
+
for (var prop in source) if (__hasOwnProp$T.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
454
|
+
if (source != null && __getOwnPropSymbols$T) for (var prop of __getOwnPropSymbols$T(source)) {
|
|
455
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$T.call(source, prop)) target[prop] = source[prop];
|
|
456
456
|
}
|
|
457
457
|
return target;
|
|
458
458
|
};
|
|
@@ -470,13 +470,13 @@ const Alert = _a => {
|
|
|
470
470
|
action,
|
|
471
471
|
message
|
|
472
472
|
} = _b,
|
|
473
|
-
props = __objRest$
|
|
473
|
+
props = __objRest$w(_b, ["type", "icon", "showIcon", "className", "onClose", "closeText", "action", "message"]);
|
|
474
474
|
const _icon = /* @__PURE__ */React__default.createElement(Icon, {
|
|
475
475
|
alt: type,
|
|
476
476
|
src: getAlertIcon(type)
|
|
477
477
|
});
|
|
478
478
|
const _type = type === "normal" ? "info" : type;
|
|
479
|
-
return /* @__PURE__ */React__default.createElement(Alert$1, __spreadProps$
|
|
479
|
+
return /* @__PURE__ */React__default.createElement(Alert$1, __spreadProps$B(__spreadValues$S({}, props), {
|
|
480
480
|
className: cs(AlertStyle, type ? `alert-${type}` : "", className, {
|
|
481
481
|
action
|
|
482
482
|
}),
|
|
@@ -514,42 +514,42 @@ const Arch = (props) => {
|
|
|
514
514
|
return /* @__PURE__ */ React__default.createElement("span", null, text);
|
|
515
515
|
};
|
|
516
516
|
|
|
517
|
-
var __defProp$
|
|
518
|
-
var __defProps$
|
|
519
|
-
var __getOwnPropDescs$
|
|
520
|
-
var __getOwnPropSymbols$
|
|
521
|
-
var __hasOwnProp$
|
|
522
|
-
var __propIsEnum$
|
|
523
|
-
var __defNormalProp$
|
|
524
|
-
var __spreadValues$
|
|
517
|
+
var __defProp$R = Object.defineProperty;
|
|
518
|
+
var __defProps$A = Object.defineProperties;
|
|
519
|
+
var __getOwnPropDescs$A = Object.getOwnPropertyDescriptors;
|
|
520
|
+
var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
|
|
521
|
+
var __hasOwnProp$S = Object.prototype.hasOwnProperty;
|
|
522
|
+
var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
|
|
523
|
+
var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
524
|
+
var __spreadValues$R = (a, b) => {
|
|
525
525
|
for (var prop in b || (b = {}))
|
|
526
|
-
if (__hasOwnProp$
|
|
527
|
-
__defNormalProp$
|
|
528
|
-
if (__getOwnPropSymbols$
|
|
529
|
-
for (var prop of __getOwnPropSymbols$
|
|
530
|
-
if (__propIsEnum$
|
|
531
|
-
__defNormalProp$
|
|
526
|
+
if (__hasOwnProp$S.call(b, prop))
|
|
527
|
+
__defNormalProp$R(a, prop, b[prop]);
|
|
528
|
+
if (__getOwnPropSymbols$S)
|
|
529
|
+
for (var prop of __getOwnPropSymbols$S(b)) {
|
|
530
|
+
if (__propIsEnum$S.call(b, prop))
|
|
531
|
+
__defNormalProp$R(a, prop, b[prop]);
|
|
532
532
|
}
|
|
533
533
|
return a;
|
|
534
534
|
};
|
|
535
|
-
var __spreadProps$
|
|
536
|
-
var __objRest$
|
|
535
|
+
var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
|
|
536
|
+
var __objRest$v = (source, exclude) => {
|
|
537
537
|
var target = {};
|
|
538
538
|
for (var prop in source)
|
|
539
|
-
if (__hasOwnProp$
|
|
539
|
+
if (__hasOwnProp$S.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
540
540
|
target[prop] = source[prop];
|
|
541
|
-
if (source != null && __getOwnPropSymbols$
|
|
542
|
-
for (var prop of __getOwnPropSymbols$
|
|
543
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
541
|
+
if (source != null && __getOwnPropSymbols$S)
|
|
542
|
+
for (var prop of __getOwnPropSymbols$S(source)) {
|
|
543
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$S.call(source, prop))
|
|
544
544
|
target[prop] = source[prop];
|
|
545
545
|
}
|
|
546
546
|
return target;
|
|
547
547
|
};
|
|
548
548
|
const Badge = (_a) => {
|
|
549
|
-
var _b = _a, { type = "error", className } = _b, props = __objRest$
|
|
549
|
+
var _b = _a, { type = "error", className } = _b, props = __objRest$v(_b, ["type", "className"]);
|
|
550
550
|
return /* @__PURE__ */ React__default.createElement(
|
|
551
551
|
Badge$1,
|
|
552
|
-
__spreadProps$
|
|
552
|
+
__spreadProps$A(__spreadValues$R({
|
|
553
553
|
className: cx(`badge-${type}`, className)
|
|
554
554
|
}, props), {
|
|
555
555
|
showZero: false
|
|
@@ -569,19 +569,19 @@ const Empty = (props) => {
|
|
|
569
569
|
return /* @__PURE__ */ React__default.createElement("span", { className, style }, "-");
|
|
570
570
|
};
|
|
571
571
|
|
|
572
|
-
var __defProp$
|
|
573
|
-
var __getOwnPropSymbols$
|
|
574
|
-
var __hasOwnProp$
|
|
575
|
-
var __propIsEnum$
|
|
576
|
-
var __defNormalProp$
|
|
577
|
-
var __spreadValues$
|
|
572
|
+
var __defProp$Q = Object.defineProperty;
|
|
573
|
+
var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
|
|
574
|
+
var __hasOwnProp$R = Object.prototype.hasOwnProperty;
|
|
575
|
+
var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
|
|
576
|
+
var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
577
|
+
var __spreadValues$Q = (a, b) => {
|
|
578
578
|
for (var prop in b || (b = {}))
|
|
579
|
-
if (__hasOwnProp$
|
|
580
|
-
__defNormalProp$
|
|
581
|
-
if (__getOwnPropSymbols$
|
|
582
|
-
for (var prop of __getOwnPropSymbols$
|
|
583
|
-
if (__propIsEnum$
|
|
584
|
-
__defNormalProp$
|
|
579
|
+
if (__hasOwnProp$R.call(b, prop))
|
|
580
|
+
__defNormalProp$Q(a, prop, b[prop]);
|
|
581
|
+
if (__getOwnPropSymbols$R)
|
|
582
|
+
for (var prop of __getOwnPropSymbols$R(b)) {
|
|
583
|
+
if (__propIsEnum$R.call(b, prop))
|
|
584
|
+
__defNormalProp$Q(a, prop, b[prop]);
|
|
585
585
|
}
|
|
586
586
|
return a;
|
|
587
587
|
};
|
|
@@ -593,25 +593,25 @@ const Bit = ({
|
|
|
593
593
|
emptyProps
|
|
594
594
|
}) => {
|
|
595
595
|
if (isEmpty(rawValue)) {
|
|
596
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$
|
|
596
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$Q({}, emptyProps));
|
|
597
597
|
}
|
|
598
598
|
const { value, unit } = formatBits(rawValue, decimals);
|
|
599
599
|
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}`));
|
|
600
600
|
};
|
|
601
601
|
|
|
602
|
-
var __defProp$
|
|
603
|
-
var __getOwnPropSymbols$
|
|
604
|
-
var __hasOwnProp$
|
|
605
|
-
var __propIsEnum$
|
|
606
|
-
var __defNormalProp$
|
|
607
|
-
var __spreadValues$
|
|
602
|
+
var __defProp$P = Object.defineProperty;
|
|
603
|
+
var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
|
|
604
|
+
var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
|
|
605
|
+
var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
|
|
606
|
+
var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
607
|
+
var __spreadValues$P = (a, b) => {
|
|
608
608
|
for (var prop in b || (b = {}))
|
|
609
|
-
if (__hasOwnProp$
|
|
610
|
-
__defNormalProp$
|
|
611
|
-
if (__getOwnPropSymbols$
|
|
612
|
-
for (var prop of __getOwnPropSymbols$
|
|
613
|
-
if (__propIsEnum$
|
|
614
|
-
__defNormalProp$
|
|
609
|
+
if (__hasOwnProp$Q.call(b, prop))
|
|
610
|
+
__defNormalProp$P(a, prop, b[prop]);
|
|
611
|
+
if (__getOwnPropSymbols$Q)
|
|
612
|
+
for (var prop of __getOwnPropSymbols$Q(b)) {
|
|
613
|
+
if (__propIsEnum$Q.call(b, prop))
|
|
614
|
+
__defNormalProp$P(a, prop, b[prop]);
|
|
615
615
|
}
|
|
616
616
|
return a;
|
|
617
617
|
};
|
|
@@ -623,25 +623,25 @@ const BitPerSeconds = ({
|
|
|
623
623
|
emptyProps
|
|
624
624
|
}) => {
|
|
625
625
|
if (isEmpty(rawValue)) {
|
|
626
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$
|
|
626
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$P({}, emptyProps));
|
|
627
627
|
}
|
|
628
628
|
const { value, unit } = formatBitPerSecond(rawValue, decimals);
|
|
629
629
|
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}`));
|
|
630
630
|
};
|
|
631
631
|
|
|
632
|
-
var __defProp$
|
|
633
|
-
var __getOwnPropSymbols$
|
|
634
|
-
var __hasOwnProp$
|
|
635
|
-
var __propIsEnum$
|
|
636
|
-
var __defNormalProp$
|
|
637
|
-
var __spreadValues$
|
|
632
|
+
var __defProp$O = Object.defineProperty;
|
|
633
|
+
var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
|
|
634
|
+
var __hasOwnProp$P = Object.prototype.hasOwnProperty;
|
|
635
|
+
var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
|
|
636
|
+
var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
637
|
+
var __spreadValues$O = (a, b) => {
|
|
638
638
|
for (var prop in b || (b = {}))
|
|
639
|
-
if (__hasOwnProp$
|
|
640
|
-
__defNormalProp$
|
|
641
|
-
if (__getOwnPropSymbols$
|
|
642
|
-
for (var prop of __getOwnPropSymbols$
|
|
643
|
-
if (__propIsEnum$
|
|
644
|
-
__defNormalProp$
|
|
639
|
+
if (__hasOwnProp$P.call(b, prop))
|
|
640
|
+
__defNormalProp$O(a, prop, b[prop]);
|
|
641
|
+
if (__getOwnPropSymbols$P)
|
|
642
|
+
for (var prop of __getOwnPropSymbols$P(b)) {
|
|
643
|
+
if (__propIsEnum$P.call(b, prop))
|
|
644
|
+
__defNormalProp$O(a, prop, b[prop]);
|
|
645
645
|
}
|
|
646
646
|
return a;
|
|
647
647
|
};
|
|
@@ -653,7 +653,7 @@ const Bps = ({
|
|
|
653
653
|
emptyProps
|
|
654
654
|
}) => {
|
|
655
655
|
if (isEmpty(rawValue)) {
|
|
656
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$
|
|
656
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$O({}, emptyProps));
|
|
657
657
|
}
|
|
658
658
|
const { value, unit } = formatBps(rawValue, decimals);
|
|
659
659
|
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}`));
|
|
@@ -794,28 +794,28 @@ const HoverableElement = (props) => {
|
|
|
794
794
|
return icon != null ? React__default.cloneElement(icon, { className }) : null;
|
|
795
795
|
};
|
|
796
796
|
|
|
797
|
-
var __defProp$
|
|
798
|
-
var __getOwnPropSymbols$
|
|
799
|
-
var __hasOwnProp$
|
|
800
|
-
var __propIsEnum$
|
|
801
|
-
var __defNormalProp$
|
|
797
|
+
var __defProp$N = Object.defineProperty;
|
|
798
|
+
var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
|
|
799
|
+
var __hasOwnProp$O = Object.prototype.hasOwnProperty;
|
|
800
|
+
var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
|
|
801
|
+
var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, {
|
|
802
802
|
enumerable: true,
|
|
803
803
|
configurable: true,
|
|
804
804
|
writable: true,
|
|
805
805
|
value
|
|
806
806
|
}) : obj[key] = value;
|
|
807
|
-
var __spreadValues$
|
|
808
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
809
|
-
if (__getOwnPropSymbols$
|
|
810
|
-
if (__propIsEnum$
|
|
807
|
+
var __spreadValues$N = (a, b) => {
|
|
808
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$O.call(b, prop)) __defNormalProp$N(a, prop, b[prop]);
|
|
809
|
+
if (__getOwnPropSymbols$O) for (var prop of __getOwnPropSymbols$O(b)) {
|
|
810
|
+
if (__propIsEnum$O.call(b, prop)) __defNormalProp$N(a, prop, b[prop]);
|
|
811
811
|
}
|
|
812
812
|
return a;
|
|
813
813
|
};
|
|
814
|
-
var __objRest$
|
|
814
|
+
var __objRest$u = (source, exclude) => {
|
|
815
815
|
var target = {};
|
|
816
|
-
for (var prop in source) if (__hasOwnProp$
|
|
817
|
-
if (source != null && __getOwnPropSymbols$
|
|
818
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
816
|
+
for (var prop in source) if (__hasOwnProp$O.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
817
|
+
if (source != null && __getOwnPropSymbols$O) for (var prop of __getOwnPropSymbols$O(source)) {
|
|
818
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$O.call(source, prop)) target[prop] = source[prop];
|
|
819
819
|
}
|
|
820
820
|
return target;
|
|
821
821
|
};
|
|
@@ -838,12 +838,12 @@ const Button = React__default.forwardRef((props, ref) => {
|
|
|
838
838
|
onMouseLeave,
|
|
839
839
|
size = "middle"
|
|
840
840
|
} = _a,
|
|
841
|
-
restProps = __objRest$
|
|
841
|
+
restProps = __objRest$u(_a, ["type", "className", "children", "prefixIcon", "hoverPrefixIcon", "suffixIcon", "hoverSuffixIcon", "onMouseEnter", "onMouseLeave", "size"]);
|
|
842
842
|
const [status, setStatus] = useState("normal");
|
|
843
843
|
const hasIcon = prefixIcon || suffixIcon;
|
|
844
844
|
const hasHoverIcon = hoverPrefixIcon || hoverSuffixIcon;
|
|
845
845
|
const onlyIcon = !children && (prefixIcon || suffixIcon);
|
|
846
|
-
return /* @__PURE__ */React__default.createElement(Button$1, __spreadValues$
|
|
846
|
+
return /* @__PURE__ */React__default.createElement(Button$1, __spreadValues$N({
|
|
847
847
|
ref,
|
|
848
848
|
className: cs(className, ButtonStyle$1, type === "link" && NoPadding, (prefixIcon || suffixIcon) && "has-icon", size === "large" && Typo.Label.l1_regular_title, size === "middle" && Typo.Label.l2_regular_title, size === "small" && Typo.Label.l3_regular_title, type && `ant-btn-${type}`, onlyIcon && "ant-btn-icon-only"),
|
|
849
849
|
type: isAntdButtonTypes(type) ? type : void 0,
|
|
@@ -873,33 +873,33 @@ const Button = React__default.forwardRef((props, ref) => {
|
|
|
873
873
|
}));
|
|
874
874
|
});
|
|
875
875
|
|
|
876
|
-
var __defProp$
|
|
877
|
-
var __defProps$
|
|
878
|
-
var __getOwnPropDescs$
|
|
879
|
-
var __getOwnPropSymbols$
|
|
880
|
-
var __hasOwnProp$
|
|
881
|
-
var __propIsEnum$
|
|
882
|
-
var __defNormalProp$
|
|
883
|
-
var __spreadValues$
|
|
876
|
+
var __defProp$M = Object.defineProperty;
|
|
877
|
+
var __defProps$z = Object.defineProperties;
|
|
878
|
+
var __getOwnPropDescs$z = Object.getOwnPropertyDescriptors;
|
|
879
|
+
var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
|
|
880
|
+
var __hasOwnProp$N = Object.prototype.hasOwnProperty;
|
|
881
|
+
var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
|
|
882
|
+
var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
883
|
+
var __spreadValues$M = (a, b) => {
|
|
884
884
|
for (var prop in b || (b = {}))
|
|
885
|
-
if (__hasOwnProp$
|
|
886
|
-
__defNormalProp$
|
|
887
|
-
if (__getOwnPropSymbols$
|
|
888
|
-
for (var prop of __getOwnPropSymbols$
|
|
889
|
-
if (__propIsEnum$
|
|
890
|
-
__defNormalProp$
|
|
885
|
+
if (__hasOwnProp$N.call(b, prop))
|
|
886
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
887
|
+
if (__getOwnPropSymbols$N)
|
|
888
|
+
for (var prop of __getOwnPropSymbols$N(b)) {
|
|
889
|
+
if (__propIsEnum$N.call(b, prop))
|
|
890
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
891
891
|
}
|
|
892
892
|
return a;
|
|
893
893
|
};
|
|
894
|
-
var __spreadProps$
|
|
895
|
-
var __objRest$
|
|
894
|
+
var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
|
|
895
|
+
var __objRest$t = (source, exclude) => {
|
|
896
896
|
var target = {};
|
|
897
897
|
for (var prop in source)
|
|
898
|
-
if (__hasOwnProp$
|
|
898
|
+
if (__hasOwnProp$N.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
899
899
|
target[prop] = source[prop];
|
|
900
|
-
if (source != null && __getOwnPropSymbols$
|
|
901
|
-
for (var prop of __getOwnPropSymbols$
|
|
902
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
900
|
+
if (source != null && __getOwnPropSymbols$N)
|
|
901
|
+
for (var prop of __getOwnPropSymbols$N(source)) {
|
|
902
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$N.call(source, prop))
|
|
903
903
|
target[prop] = source[prop];
|
|
904
904
|
}
|
|
905
905
|
return target;
|
|
@@ -911,7 +911,7 @@ const Tooltip = (props) => {
|
|
|
911
911
|
overlayClassName,
|
|
912
912
|
overlayStyle,
|
|
913
913
|
children
|
|
914
|
-
} = _a, restProps = __objRest$
|
|
914
|
+
} = _a, restProps = __objRest$t(_a, [
|
|
915
915
|
"followMouse",
|
|
916
916
|
"overlayClassName",
|
|
917
917
|
"overlayStyle",
|
|
@@ -953,10 +953,10 @@ const Tooltip = (props) => {
|
|
|
953
953
|
}, [followMouse, onmousemove, uniqueContainerClass]);
|
|
954
954
|
return /* @__PURE__ */ React__default.createElement(
|
|
955
955
|
Tooltip$1,
|
|
956
|
-
__spreadProps$
|
|
956
|
+
__spreadProps$z(__spreadValues$M({}, restProps), {
|
|
957
957
|
overlayClassName: followMouse ? cs(overlayClassName, uniquePopupClass) : overlayClassName,
|
|
958
958
|
children: _children,
|
|
959
|
-
overlayStyle: followMouse ? __spreadValues$
|
|
959
|
+
overlayStyle: followMouse ? __spreadValues$M({
|
|
960
960
|
transform: "translate(-50%, -100%)",
|
|
961
961
|
pointerEvents: "none"
|
|
962
962
|
}, overlayStyle) : overlayStyle
|
|
@@ -964,28 +964,28 @@ const Tooltip = (props) => {
|
|
|
964
964
|
);
|
|
965
965
|
};
|
|
966
966
|
|
|
967
|
-
var __defProp$
|
|
968
|
-
var __getOwnPropSymbols$
|
|
969
|
-
var __hasOwnProp$
|
|
970
|
-
var __propIsEnum$
|
|
971
|
-
var __defNormalProp$
|
|
967
|
+
var __defProp$L = Object.defineProperty;
|
|
968
|
+
var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
|
|
969
|
+
var __hasOwnProp$M = Object.prototype.hasOwnProperty;
|
|
970
|
+
var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
|
|
971
|
+
var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, {
|
|
972
972
|
enumerable: true,
|
|
973
973
|
configurable: true,
|
|
974
974
|
writable: true,
|
|
975
975
|
value
|
|
976
976
|
}) : obj[key] = value;
|
|
977
|
-
var __spreadValues$
|
|
978
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
979
|
-
if (__getOwnPropSymbols$
|
|
980
|
-
if (__propIsEnum$
|
|
977
|
+
var __spreadValues$L = (a, b) => {
|
|
978
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$M.call(b, prop)) __defNormalProp$L(a, prop, b[prop]);
|
|
979
|
+
if (__getOwnPropSymbols$M) for (var prop of __getOwnPropSymbols$M(b)) {
|
|
980
|
+
if (__propIsEnum$M.call(b, prop)) __defNormalProp$L(a, prop, b[prop]);
|
|
981
981
|
}
|
|
982
982
|
return a;
|
|
983
983
|
};
|
|
984
|
-
var __objRest$
|
|
984
|
+
var __objRest$s = (source, exclude) => {
|
|
985
985
|
var target = {};
|
|
986
|
-
for (var prop in source) if (__hasOwnProp$
|
|
987
|
-
if (source != null && __getOwnPropSymbols$
|
|
988
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
986
|
+
for (var prop in source) if (__hasOwnProp$M.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
987
|
+
if (source != null && __getOwnPropSymbols$M) for (var prop of __getOwnPropSymbols$M(source)) {
|
|
988
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$M.call(source, prop)) target[prop] = source[prop];
|
|
989
989
|
}
|
|
990
990
|
return target;
|
|
991
991
|
};
|
|
@@ -1020,7 +1020,7 @@ const ButtonGroup = React__default.forwardRef((props, ref) => {
|
|
|
1020
1020
|
hideTitle,
|
|
1021
1021
|
title
|
|
1022
1022
|
} = _a,
|
|
1023
|
-
buttonPropArgs = __objRest$
|
|
1023
|
+
buttonPropArgs = __objRest$s(_a, ["key", "icon", "type", "children", "danger", "ghost", "className", "hideTitle", "title"]);
|
|
1024
1024
|
if (hideTitle) {
|
|
1025
1025
|
return /* @__PURE__ */React__default.createElement(Tooltip, {
|
|
1026
1026
|
key: key || index,
|
|
@@ -1029,7 +1029,7 @@ const ButtonGroup = React__default.forwardRef((props, ref) => {
|
|
|
1029
1029
|
style: {
|
|
1030
1030
|
cursor: "not-allowed"
|
|
1031
1031
|
}
|
|
1032
|
-
}, /* @__PURE__ */React__default.createElement(Button, __spreadValues$
|
|
1032
|
+
}, /* @__PURE__ */React__default.createElement(Button, __spreadValues$L({
|
|
1033
1033
|
style: {
|
|
1034
1034
|
pointerEvents: "none"
|
|
1035
1035
|
},
|
|
@@ -1039,7 +1039,7 @@ const ButtonGroup = React__default.forwardRef((props, ref) => {
|
|
|
1039
1039
|
ghost,
|
|
1040
1040
|
className: cx(ButtonStyle, className2),
|
|
1041
1041
|
prefixIcon: icon
|
|
1042
|
-
}, buttonPropArgs))) : /* @__PURE__ */React__default.createElement(Button, __spreadValues$
|
|
1042
|
+
}, buttonPropArgs))) : /* @__PURE__ */React__default.createElement(Button, __spreadValues$L({
|
|
1043
1043
|
type,
|
|
1044
1044
|
size,
|
|
1045
1045
|
danger,
|
|
@@ -1048,7 +1048,7 @@ const ButtonGroup = React__default.forwardRef((props, ref) => {
|
|
|
1048
1048
|
prefixIcon: icon
|
|
1049
1049
|
}, buttonPropArgs)));
|
|
1050
1050
|
}
|
|
1051
|
-
return /* @__PURE__ */React__default.createElement(Button, __spreadValues$
|
|
1051
|
+
return /* @__PURE__ */React__default.createElement(Button, __spreadValues$L({
|
|
1052
1052
|
key: key || index,
|
|
1053
1053
|
type,
|
|
1054
1054
|
size,
|
|
@@ -1062,19 +1062,19 @@ const ButtonGroup = React__default.forwardRef((props, ref) => {
|
|
|
1062
1062
|
}));
|
|
1063
1063
|
});
|
|
1064
1064
|
|
|
1065
|
-
var __defProp$
|
|
1066
|
-
var __getOwnPropSymbols$
|
|
1067
|
-
var __hasOwnProp$
|
|
1068
|
-
var __propIsEnum$
|
|
1069
|
-
var __defNormalProp$
|
|
1070
|
-
var __spreadValues$
|
|
1065
|
+
var __defProp$K = Object.defineProperty;
|
|
1066
|
+
var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
|
|
1067
|
+
var __hasOwnProp$L = Object.prototype.hasOwnProperty;
|
|
1068
|
+
var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
|
|
1069
|
+
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1070
|
+
var __spreadValues$K = (a, b) => {
|
|
1071
1071
|
for (var prop in b || (b = {}))
|
|
1072
|
-
if (__hasOwnProp$
|
|
1073
|
-
__defNormalProp$
|
|
1074
|
-
if (__getOwnPropSymbols$
|
|
1075
|
-
for (var prop of __getOwnPropSymbols$
|
|
1076
|
-
if (__propIsEnum$
|
|
1077
|
-
__defNormalProp$
|
|
1072
|
+
if (__hasOwnProp$L.call(b, prop))
|
|
1073
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
1074
|
+
if (__getOwnPropSymbols$L)
|
|
1075
|
+
for (var prop of __getOwnPropSymbols$L(b)) {
|
|
1076
|
+
if (__propIsEnum$L.call(b, prop))
|
|
1077
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
1078
1078
|
}
|
|
1079
1079
|
return a;
|
|
1080
1080
|
};
|
|
@@ -1088,7 +1088,7 @@ const Byte = ({
|
|
|
1088
1088
|
}) => {
|
|
1089
1089
|
const { t } = useParrotTranslation();
|
|
1090
1090
|
if (isEmpty(rawValue)) {
|
|
1091
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$
|
|
1091
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$K({}, emptyProps));
|
|
1092
1092
|
}
|
|
1093
1093
|
if (rawValue === -1) {
|
|
1094
1094
|
return /* @__PURE__ */ React__default.createElement("span", null, t("common.calculation"));
|
|
@@ -1112,18 +1112,45 @@ const CardTitle = /*#__PURE__*/styled('div')({
|
|
|
1112
1112
|
propsAsIs: false
|
|
1113
1113
|
});
|
|
1114
1114
|
|
|
1115
|
+
var __defProp$J = Object.defineProperty;
|
|
1116
|
+
var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
|
|
1117
|
+
var __hasOwnProp$K = Object.prototype.hasOwnProperty;
|
|
1118
|
+
var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
|
|
1119
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, {
|
|
1120
|
+
enumerable: true,
|
|
1121
|
+
configurable: true,
|
|
1122
|
+
writable: true,
|
|
1123
|
+
value
|
|
1124
|
+
}) : obj[key] = value;
|
|
1125
|
+
var __spreadValues$J = (a, b) => {
|
|
1126
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$K.call(b, prop)) __defNormalProp$J(a, prop, b[prop]);
|
|
1127
|
+
if (__getOwnPropSymbols$K) for (var prop of __getOwnPropSymbols$K(b)) {
|
|
1128
|
+
if (__propIsEnum$K.call(b, prop)) __defNormalProp$J(a, prop, b[prop]);
|
|
1129
|
+
}
|
|
1130
|
+
return a;
|
|
1131
|
+
};
|
|
1132
|
+
var __objRest$r = (source, exclude) => {
|
|
1133
|
+
var target = {};
|
|
1134
|
+
for (var prop in source) if (__hasOwnProp$K.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1135
|
+
if (source != null && __getOwnPropSymbols$K) for (var prop of __getOwnPropSymbols$K(source)) {
|
|
1136
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$K.call(source, prop)) target[prop] = source[prop];
|
|
1137
|
+
}
|
|
1138
|
+
return target;
|
|
1139
|
+
};
|
|
1115
1140
|
const boxShadow = "bab9xum";
|
|
1116
1141
|
const Wrapper = forwardRef(props => {
|
|
1117
|
-
const
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1142
|
+
const _a = props,
|
|
1143
|
+
{
|
|
1144
|
+
children,
|
|
1145
|
+
className,
|
|
1146
|
+
shadow
|
|
1147
|
+
} = _a,
|
|
1148
|
+
otherProps = __objRest$r(_a, ["children", "className", "shadow"]);
|
|
1149
|
+
return /* @__PURE__ */React__default.createElement("div", __spreadValues$J({
|
|
1123
1150
|
className: cs({
|
|
1124
1151
|
[boxShadow]: shadow
|
|
1125
1152
|
}, className)
|
|
1126
|
-
}, children);
|
|
1153
|
+
}, otherProps), children);
|
|
1127
1154
|
});
|
|
1128
1155
|
const _exp$3 = () => Wrapper;
|
|
1129
1156
|
const CardWrapper = /*#__PURE__*/styled(_exp$3())({
|
|
@@ -1132,33 +1159,33 @@ const CardWrapper = /*#__PURE__*/styled(_exp$3())({
|
|
|
1132
1159
|
propsAsIs: true
|
|
1133
1160
|
});
|
|
1134
1161
|
|
|
1135
|
-
var __defProp$
|
|
1136
|
-
var __defProps$
|
|
1137
|
-
var __getOwnPropDescs$
|
|
1138
|
-
var __getOwnPropSymbols$
|
|
1139
|
-
var __hasOwnProp$
|
|
1140
|
-
var __propIsEnum$
|
|
1141
|
-
var __defNormalProp$
|
|
1142
|
-
var __spreadValues$
|
|
1162
|
+
var __defProp$I = Object.defineProperty;
|
|
1163
|
+
var __defProps$y = Object.defineProperties;
|
|
1164
|
+
var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
|
|
1165
|
+
var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
|
|
1166
|
+
var __hasOwnProp$J = Object.prototype.hasOwnProperty;
|
|
1167
|
+
var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
|
|
1168
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1169
|
+
var __spreadValues$I = (a, b) => {
|
|
1143
1170
|
for (var prop in b || (b = {}))
|
|
1144
|
-
if (__hasOwnProp$
|
|
1145
|
-
__defNormalProp$
|
|
1146
|
-
if (__getOwnPropSymbols$
|
|
1147
|
-
for (var prop of __getOwnPropSymbols$
|
|
1148
|
-
if (__propIsEnum$
|
|
1149
|
-
__defNormalProp$
|
|
1171
|
+
if (__hasOwnProp$J.call(b, prop))
|
|
1172
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
1173
|
+
if (__getOwnPropSymbols$J)
|
|
1174
|
+
for (var prop of __getOwnPropSymbols$J(b)) {
|
|
1175
|
+
if (__propIsEnum$J.call(b, prop))
|
|
1176
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
1150
1177
|
}
|
|
1151
1178
|
return a;
|
|
1152
1179
|
};
|
|
1153
|
-
var __spreadProps$
|
|
1154
|
-
var __objRest$
|
|
1180
|
+
var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
|
|
1181
|
+
var __objRest$q = (source, exclude) => {
|
|
1155
1182
|
var target = {};
|
|
1156
1183
|
for (var prop in source)
|
|
1157
|
-
if (__hasOwnProp$
|
|
1184
|
+
if (__hasOwnProp$J.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1158
1185
|
target[prop] = source[prop];
|
|
1159
|
-
if (source != null && __getOwnPropSymbols$
|
|
1160
|
-
for (var prop of __getOwnPropSymbols$
|
|
1161
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1186
|
+
if (source != null && __getOwnPropSymbols$J)
|
|
1187
|
+
for (var prop of __getOwnPropSymbols$J(source)) {
|
|
1188
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$J.call(source, prop))
|
|
1162
1189
|
target[prop] = source[prop];
|
|
1163
1190
|
}
|
|
1164
1191
|
return target;
|
|
@@ -1173,7 +1200,7 @@ const Card = React__default.forwardRef(
|
|
|
1173
1200
|
defaultOpen = false,
|
|
1174
1201
|
hoverable,
|
|
1175
1202
|
shadow = true
|
|
1176
|
-
} = _a, domProps = __objRest$
|
|
1203
|
+
} = _a, domProps = __objRest$q(_a, [
|
|
1177
1204
|
"collapsible",
|
|
1178
1205
|
"title",
|
|
1179
1206
|
"subInfo",
|
|
@@ -1185,7 +1212,7 @@ const Card = React__default.forwardRef(
|
|
|
1185
1212
|
const [open, setOpen] = useState(defaultOpen);
|
|
1186
1213
|
return /* @__PURE__ */ React__default.createElement(
|
|
1187
1214
|
CardWrapper,
|
|
1188
|
-
__spreadProps$
|
|
1215
|
+
__spreadProps$y(__spreadValues$I({
|
|
1189
1216
|
ref,
|
|
1190
1217
|
className: cs(["card-wrapper", className, hoverable && "hoverable"])
|
|
1191
1218
|
}, domProps), {
|
|
@@ -1214,31 +1241,31 @@ const Card = React__default.forwardRef(
|
|
|
1214
1241
|
}
|
|
1215
1242
|
);
|
|
1216
1243
|
|
|
1217
|
-
var __defProp$
|
|
1218
|
-
var __defProps$
|
|
1219
|
-
var __getOwnPropDescs$
|
|
1220
|
-
var __getOwnPropSymbols$
|
|
1221
|
-
var __hasOwnProp$
|
|
1222
|
-
var __propIsEnum$
|
|
1223
|
-
var __defNormalProp$
|
|
1244
|
+
var __defProp$H = Object.defineProperty;
|
|
1245
|
+
var __defProps$x = Object.defineProperties;
|
|
1246
|
+
var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
|
|
1247
|
+
var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
|
|
1248
|
+
var __hasOwnProp$I = Object.prototype.hasOwnProperty;
|
|
1249
|
+
var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
|
|
1250
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, {
|
|
1224
1251
|
enumerable: true,
|
|
1225
1252
|
configurable: true,
|
|
1226
1253
|
writable: true,
|
|
1227
1254
|
value
|
|
1228
1255
|
}) : obj[key] = value;
|
|
1229
|
-
var __spreadValues$
|
|
1230
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1231
|
-
if (__getOwnPropSymbols$
|
|
1232
|
-
if (__propIsEnum$
|
|
1256
|
+
var __spreadValues$H = (a, b) => {
|
|
1257
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$I.call(b, prop)) __defNormalProp$H(a, prop, b[prop]);
|
|
1258
|
+
if (__getOwnPropSymbols$I) for (var prop of __getOwnPropSymbols$I(b)) {
|
|
1259
|
+
if (__propIsEnum$I.call(b, prop)) __defNormalProp$H(a, prop, b[prop]);
|
|
1233
1260
|
}
|
|
1234
1261
|
return a;
|
|
1235
1262
|
};
|
|
1236
|
-
var __spreadProps$
|
|
1237
|
-
var __objRest$
|
|
1263
|
+
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
|
1264
|
+
var __objRest$p = (source, exclude) => {
|
|
1238
1265
|
var target = {};
|
|
1239
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1240
|
-
if (source != null && __getOwnPropSymbols$
|
|
1241
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1266
|
+
for (var prop in source) if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1267
|
+
if (source != null && __getOwnPropSymbols$I) for (var prop of __getOwnPropSymbols$I(source)) {
|
|
1268
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$I.call(source, prop)) target[prop] = source[prop];
|
|
1242
1269
|
}
|
|
1243
1270
|
return target;
|
|
1244
1271
|
};
|
|
@@ -1251,8 +1278,8 @@ const Checkbox = _a => {
|
|
|
1251
1278
|
description,
|
|
1252
1279
|
compact
|
|
1253
1280
|
} = _b,
|
|
1254
|
-
props = __objRest$
|
|
1255
|
-
return /* @__PURE__ */React__default.createElement(Checkbox$1, __spreadProps$
|
|
1281
|
+
props = __objRest$p(_b, ["className", "children", "description", "compact"]);
|
|
1282
|
+
return /* @__PURE__ */React__default.createElement(Checkbox$1, __spreadProps$x(__spreadValues$H({}, props), {
|
|
1256
1283
|
"data-test": props["data-test"] || props.value,
|
|
1257
1284
|
className: cs(className, CheckboxStyle, compact && "compact")
|
|
1258
1285
|
}), children ? /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement("div", {
|
|
@@ -1330,39 +1357,39 @@ const ExpandableItem = props => {
|
|
|
1330
1357
|
}, children));
|
|
1331
1358
|
};
|
|
1332
1359
|
|
|
1333
|
-
var __defProp$
|
|
1334
|
-
var __getOwnPropSymbols$
|
|
1335
|
-
var __hasOwnProp$
|
|
1336
|
-
var __propIsEnum$
|
|
1337
|
-
var __defNormalProp$
|
|
1338
|
-
var __spreadValues$
|
|
1360
|
+
var __defProp$G = Object.defineProperty;
|
|
1361
|
+
var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
|
|
1362
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
|
1363
|
+
var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
|
|
1364
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1365
|
+
var __spreadValues$G = (a, b) => {
|
|
1339
1366
|
for (var prop in b || (b = {}))
|
|
1340
|
-
if (__hasOwnProp$
|
|
1341
|
-
__defNormalProp$
|
|
1342
|
-
if (__getOwnPropSymbols$
|
|
1343
|
-
for (var prop of __getOwnPropSymbols$
|
|
1344
|
-
if (__propIsEnum$
|
|
1345
|
-
__defNormalProp$
|
|
1367
|
+
if (__hasOwnProp$H.call(b, prop))
|
|
1368
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
1369
|
+
if (__getOwnPropSymbols$H)
|
|
1370
|
+
for (var prop of __getOwnPropSymbols$H(b)) {
|
|
1371
|
+
if (__propIsEnum$H.call(b, prop))
|
|
1372
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
1346
1373
|
}
|
|
1347
1374
|
return a;
|
|
1348
1375
|
};
|
|
1349
|
-
var __objRest$
|
|
1376
|
+
var __objRest$o = (source, exclude) => {
|
|
1350
1377
|
var target = {};
|
|
1351
1378
|
for (var prop in source)
|
|
1352
|
-
if (__hasOwnProp$
|
|
1379
|
+
if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1353
1380
|
target[prop] = source[prop];
|
|
1354
|
-
if (source != null && __getOwnPropSymbols$
|
|
1355
|
-
for (var prop of __getOwnPropSymbols$
|
|
1356
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1381
|
+
if (source != null && __getOwnPropSymbols$H)
|
|
1382
|
+
for (var prop of __getOwnPropSymbols$H(source)) {
|
|
1383
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
|
|
1357
1384
|
target[prop] = source[prop];
|
|
1358
1385
|
}
|
|
1359
1386
|
return target;
|
|
1360
1387
|
};
|
|
1361
1388
|
const FieldsBoolean = (_a) => {
|
|
1362
|
-
var _b = _a, { input, children } = _b, props = __objRest$
|
|
1389
|
+
var _b = _a, { input, children } = _b, props = __objRest$o(_b, ["input", "children"]);
|
|
1363
1390
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
1364
1391
|
Checkbox,
|
|
1365
|
-
__spreadValues$
|
|
1392
|
+
__spreadValues$G({
|
|
1366
1393
|
checked: Boolean(input.value),
|
|
1367
1394
|
onChange: (e) => input.onChange(e.target.checked)
|
|
1368
1395
|
}, props),
|
|
@@ -1387,17 +1414,17 @@ const FieldsDateTime = ({ input }) => /* @__PURE__ */ React__default.createEleme
|
|
|
1387
1414
|
}
|
|
1388
1415
|
));
|
|
1389
1416
|
|
|
1390
|
-
var __getOwnPropSymbols$
|
|
1391
|
-
var __hasOwnProp$
|
|
1392
|
-
var __propIsEnum$
|
|
1393
|
-
var __objRest$
|
|
1417
|
+
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
|
1418
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
|
1419
|
+
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
|
1420
|
+
var __objRest$n = (source, exclude) => {
|
|
1394
1421
|
var target = {};
|
|
1395
1422
|
for (var prop in source)
|
|
1396
|
-
if (__hasOwnProp$
|
|
1423
|
+
if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1397
1424
|
target[prop] = source[prop];
|
|
1398
|
-
if (source != null && __getOwnPropSymbols$
|
|
1399
|
-
for (var prop of __getOwnPropSymbols$
|
|
1400
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1425
|
+
if (source != null && __getOwnPropSymbols$G)
|
|
1426
|
+
for (var prop of __getOwnPropSymbols$G(source)) {
|
|
1427
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop))
|
|
1401
1428
|
target[prop] = source[prop];
|
|
1402
1429
|
}
|
|
1403
1430
|
return target;
|
|
@@ -1405,7 +1432,7 @@ var __objRest$m = (source, exclude) => {
|
|
|
1405
1432
|
const FieldsDateTimeRange = (_a) => {
|
|
1406
1433
|
var _b = _a, {
|
|
1407
1434
|
input
|
|
1408
|
-
} = _b, props = __objRest$
|
|
1435
|
+
} = _b, props = __objRest$n(_b, [
|
|
1409
1436
|
"input"
|
|
1410
1437
|
]);
|
|
1411
1438
|
var _a2, _b2;
|
|
@@ -1442,53 +1469,53 @@ const FullView = /*#__PURE__*/styled('div')({
|
|
|
1442
1469
|
const InputStyle = "ipd9bk";
|
|
1443
1470
|
const KitInputStyle = "kypn5o5";
|
|
1444
1471
|
|
|
1445
|
-
var __defProp$
|
|
1446
|
-
var __getOwnPropSymbols$
|
|
1447
|
-
var __hasOwnProp$
|
|
1448
|
-
var __propIsEnum$
|
|
1449
|
-
var __defNormalProp$
|
|
1450
|
-
var __spreadValues$
|
|
1472
|
+
var __defProp$F = Object.defineProperty;
|
|
1473
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
|
1474
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
|
1475
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
|
1476
|
+
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1477
|
+
var __spreadValues$F = (a, b) => {
|
|
1451
1478
|
for (var prop in b || (b = {}))
|
|
1452
|
-
if (__hasOwnProp$
|
|
1453
|
-
__defNormalProp$
|
|
1454
|
-
if (__getOwnPropSymbols$
|
|
1455
|
-
for (var prop of __getOwnPropSymbols$
|
|
1456
|
-
if (__propIsEnum$
|
|
1457
|
-
__defNormalProp$
|
|
1479
|
+
if (__hasOwnProp$F.call(b, prop))
|
|
1480
|
+
__defNormalProp$F(a, prop, b[prop]);
|
|
1481
|
+
if (__getOwnPropSymbols$F)
|
|
1482
|
+
for (var prop of __getOwnPropSymbols$F(b)) {
|
|
1483
|
+
if (__propIsEnum$F.call(b, prop))
|
|
1484
|
+
__defNormalProp$F(a, prop, b[prop]);
|
|
1458
1485
|
}
|
|
1459
1486
|
return a;
|
|
1460
1487
|
};
|
|
1461
1488
|
const Loading = ({ fullView = true }) => {
|
|
1462
1489
|
const Wrapper = fullView ? FullView : Fragment;
|
|
1463
1490
|
const props = fullView ? { className: "loading-full-view" } : {};
|
|
1464
|
-
return /* @__PURE__ */ React__default.createElement(Wrapper, __spreadValues$
|
|
1491
|
+
return /* @__PURE__ */ React__default.createElement(Wrapper, __spreadValues$F({}, props), /* @__PURE__ */ React__default.createElement("div", { className: "loading" }, /* @__PURE__ */ React__default.createElement("div", { className: "loading-indicator__line1" }), /* @__PURE__ */ React__default.createElement("div", { className: "loading-indicator__line2" }), /* @__PURE__ */ React__default.createElement("div", { className: "loading-indicator__line3" })));
|
|
1465
1492
|
};
|
|
1466
1493
|
|
|
1467
|
-
var __defProp$
|
|
1468
|
-
var __defProps$
|
|
1469
|
-
var __getOwnPropDescs$
|
|
1470
|
-
var __getOwnPropSymbols$
|
|
1471
|
-
var __hasOwnProp$
|
|
1472
|
-
var __propIsEnum$
|
|
1473
|
-
var __defNormalProp$
|
|
1494
|
+
var __defProp$E = Object.defineProperty;
|
|
1495
|
+
var __defProps$w = Object.defineProperties;
|
|
1496
|
+
var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
|
|
1497
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
|
1498
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
|
1499
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
|
1500
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, {
|
|
1474
1501
|
enumerable: true,
|
|
1475
1502
|
configurable: true,
|
|
1476
1503
|
writable: true,
|
|
1477
1504
|
value
|
|
1478
1505
|
}) : obj[key] = value;
|
|
1479
|
-
var __spreadValues$
|
|
1480
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1481
|
-
if (__getOwnPropSymbols$
|
|
1482
|
-
if (__propIsEnum$
|
|
1506
|
+
var __spreadValues$E = (a, b) => {
|
|
1507
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$E.call(b, prop)) __defNormalProp$E(a, prop, b[prop]);
|
|
1508
|
+
if (__getOwnPropSymbols$E) for (var prop of __getOwnPropSymbols$E(b)) {
|
|
1509
|
+
if (__propIsEnum$E.call(b, prop)) __defNormalProp$E(a, prop, b[prop]);
|
|
1483
1510
|
}
|
|
1484
1511
|
return a;
|
|
1485
1512
|
};
|
|
1486
|
-
var __spreadProps$
|
|
1487
|
-
var __objRest$
|
|
1513
|
+
var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
|
|
1514
|
+
var __objRest$m = (source, exclude) => {
|
|
1488
1515
|
var target = {};
|
|
1489
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1490
|
-
if (source != null && __getOwnPropSymbols$
|
|
1491
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1516
|
+
for (var prop in source) if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1517
|
+
if (source != null && __getOwnPropSymbols$E) for (var prop of __getOwnPropSymbols$E(source)) {
|
|
1518
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop)) target[prop] = source[prop];
|
|
1492
1519
|
}
|
|
1493
1520
|
return target;
|
|
1494
1521
|
};
|
|
@@ -1516,7 +1543,7 @@ const Select = _a => {
|
|
|
1516
1543
|
meta,
|
|
1517
1544
|
placeholder
|
|
1518
1545
|
} = _b,
|
|
1519
|
-
restProps = __objRest$
|
|
1546
|
+
restProps = __objRest$m(_b, ["input", "multiple", "className", "scrollBottomBuffer", "onScrollBottom", "onPopupScroll", "onSearch", "showSearch", "filterOption", "loading", "notFoundContent", "children", "error", "selectLimit", "dropdownClassName", "danger", "size", "meta", "placeholder"]);
|
|
1520
1547
|
var _a2;
|
|
1521
1548
|
const limitExceeded = multiple && selectLimit && selectLimit <= (((_a2 = input.value) == null ? void 0 : _a2.length) || 0);
|
|
1522
1549
|
const typo = {
|
|
@@ -1542,7 +1569,7 @@ const Select = _a => {
|
|
|
1542
1569
|
inputDom && (placeholder || item) && inputDom.setAttribute("data-test", String(placeholder || item.textContent));
|
|
1543
1570
|
}
|
|
1544
1571
|
}, [selectRef, placeholder]);
|
|
1545
|
-
return /* @__PURE__ */React__default.createElement(Select$1, __spreadValues$
|
|
1572
|
+
return /* @__PURE__ */React__default.createElement(Select$1, __spreadValues$E(__spreadProps$w(__spreadValues$E({}, input), {
|
|
1546
1573
|
ref: selectRef,
|
|
1547
1574
|
size,
|
|
1548
1575
|
value: multiple ? input.value || [] : input.value || void 0,
|
|
@@ -1583,38 +1610,38 @@ const Select = _a => {
|
|
|
1583
1610
|
loading,
|
|
1584
1611
|
placeholder
|
|
1585
1612
|
}), restProps), React__default.Children.map(children, child => {
|
|
1586
|
-
return isElement(child) ? __spreadProps$
|
|
1587
|
-
props: __spreadProps$
|
|
1613
|
+
return isElement(child) ? __spreadProps$w(__spreadValues$E({}, child), {
|
|
1614
|
+
props: __spreadProps$w(__spreadValues$E({}, child.props), {
|
|
1588
1615
|
"data-test": child.props.value
|
|
1589
1616
|
})
|
|
1590
1617
|
}) : child;
|
|
1591
1618
|
}));
|
|
1592
1619
|
};
|
|
1593
1620
|
|
|
1594
|
-
var __defProp$
|
|
1595
|
-
var __getOwnPropSymbols$
|
|
1596
|
-
var __hasOwnProp$
|
|
1597
|
-
var __propIsEnum$
|
|
1598
|
-
var __defNormalProp$
|
|
1599
|
-
var __spreadValues$
|
|
1621
|
+
var __defProp$D = Object.defineProperty;
|
|
1622
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
|
1623
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
|
1624
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
|
1625
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1626
|
+
var __spreadValues$D = (a, b) => {
|
|
1600
1627
|
for (var prop in b || (b = {}))
|
|
1601
|
-
if (__hasOwnProp$
|
|
1602
|
-
__defNormalProp$
|
|
1603
|
-
if (__getOwnPropSymbols$
|
|
1604
|
-
for (var prop of __getOwnPropSymbols$
|
|
1605
|
-
if (__propIsEnum$
|
|
1606
|
-
__defNormalProp$
|
|
1628
|
+
if (__hasOwnProp$D.call(b, prop))
|
|
1629
|
+
__defNormalProp$D(a, prop, b[prop]);
|
|
1630
|
+
if (__getOwnPropSymbols$D)
|
|
1631
|
+
for (var prop of __getOwnPropSymbols$D(b)) {
|
|
1632
|
+
if (__propIsEnum$D.call(b, prop))
|
|
1633
|
+
__defNormalProp$D(a, prop, b[prop]);
|
|
1607
1634
|
}
|
|
1608
1635
|
return a;
|
|
1609
1636
|
};
|
|
1610
|
-
var __objRest$
|
|
1637
|
+
var __objRest$l = (source, exclude) => {
|
|
1611
1638
|
var target = {};
|
|
1612
1639
|
for (var prop in source)
|
|
1613
|
-
if (__hasOwnProp$
|
|
1640
|
+
if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1614
1641
|
target[prop] = source[prop];
|
|
1615
|
-
if (source != null && __getOwnPropSymbols$
|
|
1616
|
-
for (var prop of __getOwnPropSymbols$
|
|
1617
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1642
|
+
if (source != null && __getOwnPropSymbols$D)
|
|
1643
|
+
for (var prop of __getOwnPropSymbols$D(source)) {
|
|
1644
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
|
|
1618
1645
|
target[prop] = source[prop];
|
|
1619
1646
|
}
|
|
1620
1647
|
return target;
|
|
@@ -1624,12 +1651,12 @@ const FieldsEnum = (_a) => {
|
|
|
1624
1651
|
meta: __,
|
|
1625
1652
|
enumValues,
|
|
1626
1653
|
emptyLabel
|
|
1627
|
-
} = _b, restProps = __objRest$
|
|
1654
|
+
} = _b, restProps = __objRest$l(_b, [
|
|
1628
1655
|
"meta",
|
|
1629
1656
|
"enumValues",
|
|
1630
1657
|
"emptyLabel"
|
|
1631
1658
|
]);
|
|
1632
|
-
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Select, __spreadValues$
|
|
1659
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Select, __spreadValues$D({}, restProps), emptyLabel && /* @__PURE__ */ React__default.createElement(Select$1.Option, { value: "" }, emptyLabel), enumValues.map((v) => {
|
|
1633
1660
|
const item = typeof v === "string" ? { value: v, text: v } : v;
|
|
1634
1661
|
return /* @__PURE__ */ React__default.createElement(
|
|
1635
1662
|
Select$1.Option,
|
|
@@ -1643,31 +1670,31 @@ const FieldsEnum = (_a) => {
|
|
|
1643
1670
|
})));
|
|
1644
1671
|
};
|
|
1645
1672
|
|
|
1646
|
-
var __defProp$
|
|
1647
|
-
var __defProps$
|
|
1648
|
-
var __getOwnPropDescs$
|
|
1649
|
-
var __getOwnPropSymbols$
|
|
1650
|
-
var __hasOwnProp$
|
|
1651
|
-
var __propIsEnum$
|
|
1652
|
-
var __defNormalProp$
|
|
1673
|
+
var __defProp$C = Object.defineProperty;
|
|
1674
|
+
var __defProps$v = Object.defineProperties;
|
|
1675
|
+
var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
|
|
1676
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
|
1677
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
|
1678
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
|
1679
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, {
|
|
1653
1680
|
enumerable: true,
|
|
1654
1681
|
configurable: true,
|
|
1655
1682
|
writable: true,
|
|
1656
1683
|
value
|
|
1657
1684
|
}) : obj[key] = value;
|
|
1658
|
-
var __spreadValues$
|
|
1659
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1660
|
-
if (__getOwnPropSymbols$
|
|
1661
|
-
if (__propIsEnum$
|
|
1685
|
+
var __spreadValues$C = (a, b) => {
|
|
1686
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$C.call(b, prop)) __defNormalProp$C(a, prop, b[prop]);
|
|
1687
|
+
if (__getOwnPropSymbols$C) for (var prop of __getOwnPropSymbols$C(b)) {
|
|
1688
|
+
if (__propIsEnum$C.call(b, prop)) __defNormalProp$C(a, prop, b[prop]);
|
|
1662
1689
|
}
|
|
1663
1690
|
return a;
|
|
1664
1691
|
};
|
|
1665
|
-
var __spreadProps$
|
|
1666
|
-
var __objRest$
|
|
1692
|
+
var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
|
|
1693
|
+
var __objRest$k = (source, exclude) => {
|
|
1667
1694
|
var target = {};
|
|
1668
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1669
|
-
if (source != null && __getOwnPropSymbols$
|
|
1670
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1695
|
+
for (var prop in source) if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1696
|
+
if (source != null && __getOwnPropSymbols$C) for (var prop of __getOwnPropSymbols$C(source)) {
|
|
1697
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop)) target[prop] = source[prop];
|
|
1671
1698
|
}
|
|
1672
1699
|
return target;
|
|
1673
1700
|
};
|
|
@@ -1703,13 +1730,13 @@ const InputNumber = _a => {
|
|
|
1703
1730
|
prefix,
|
|
1704
1731
|
controls = true
|
|
1705
1732
|
} = _b,
|
|
1706
|
-
props = __objRest$
|
|
1733
|
+
props = __objRest$k(_b, ["className", "error", "size", "suffix", "prefix", "controls"]);
|
|
1707
1734
|
const typo = {
|
|
1708
1735
|
large: Typo.Label.l2_regular,
|
|
1709
1736
|
middle: Typo.Label.l3_regular,
|
|
1710
1737
|
small: Typo.Label.l4_regular
|
|
1711
1738
|
}[size];
|
|
1712
|
-
return /* @__PURE__ */React__default.createElement(AntdInputNumberStyled, __spreadProps$
|
|
1739
|
+
return /* @__PURE__ */React__default.createElement(AntdInputNumberStyled, __spreadProps$v(__spreadValues$C({}, props), {
|
|
1713
1740
|
size,
|
|
1714
1741
|
controls,
|
|
1715
1742
|
"data-test": props.name,
|
|
@@ -1719,33 +1746,33 @@ const InputNumber = _a => {
|
|
|
1719
1746
|
}));
|
|
1720
1747
|
};
|
|
1721
1748
|
|
|
1722
|
-
var __defProp$
|
|
1723
|
-
var __defProps$
|
|
1724
|
-
var __getOwnPropDescs$
|
|
1725
|
-
var __getOwnPropSymbols$
|
|
1726
|
-
var __hasOwnProp$
|
|
1727
|
-
var __propIsEnum$
|
|
1728
|
-
var __defNormalProp$
|
|
1729
|
-
var __spreadValues$
|
|
1749
|
+
var __defProp$B = Object.defineProperty;
|
|
1750
|
+
var __defProps$u = Object.defineProperties;
|
|
1751
|
+
var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
|
|
1752
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
|
1753
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
|
1754
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
|
1755
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1756
|
+
var __spreadValues$B = (a, b) => {
|
|
1730
1757
|
for (var prop in b || (b = {}))
|
|
1731
|
-
if (__hasOwnProp$
|
|
1732
|
-
__defNormalProp$
|
|
1733
|
-
if (__getOwnPropSymbols$
|
|
1734
|
-
for (var prop of __getOwnPropSymbols$
|
|
1735
|
-
if (__propIsEnum$
|
|
1736
|
-
__defNormalProp$
|
|
1758
|
+
if (__hasOwnProp$B.call(b, prop))
|
|
1759
|
+
__defNormalProp$B(a, prop, b[prop]);
|
|
1760
|
+
if (__getOwnPropSymbols$B)
|
|
1761
|
+
for (var prop of __getOwnPropSymbols$B(b)) {
|
|
1762
|
+
if (__propIsEnum$B.call(b, prop))
|
|
1763
|
+
__defNormalProp$B(a, prop, b[prop]);
|
|
1737
1764
|
}
|
|
1738
1765
|
return a;
|
|
1739
1766
|
};
|
|
1740
|
-
var __spreadProps$
|
|
1741
|
-
var __objRest$
|
|
1767
|
+
var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
|
|
1768
|
+
var __objRest$j = (source, exclude) => {
|
|
1742
1769
|
var target = {};
|
|
1743
1770
|
for (var prop in source)
|
|
1744
|
-
if (__hasOwnProp$
|
|
1771
|
+
if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1745
1772
|
target[prop] = source[prop];
|
|
1746
|
-
if (source != null && __getOwnPropSymbols$
|
|
1747
|
-
for (var prop of __getOwnPropSymbols$
|
|
1748
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1773
|
+
if (source != null && __getOwnPropSymbols$B)
|
|
1774
|
+
for (var prop of __getOwnPropSymbols$B(source)) {
|
|
1775
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop))
|
|
1749
1776
|
target[prop] = source[prop];
|
|
1750
1777
|
}
|
|
1751
1778
|
return target;
|
|
@@ -1756,7 +1783,7 @@ const FieldsFloat = (_a) => {
|
|
|
1756
1783
|
meta,
|
|
1757
1784
|
onBlur,
|
|
1758
1785
|
autoComplete = "off"
|
|
1759
|
-
} = _b, props = __objRest$
|
|
1786
|
+
} = _b, props = __objRest$j(_b, [
|
|
1760
1787
|
"input",
|
|
1761
1788
|
"meta",
|
|
1762
1789
|
"onBlur",
|
|
@@ -1764,7 +1791,7 @@ const FieldsFloat = (_a) => {
|
|
|
1764
1791
|
]);
|
|
1765
1792
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
1766
1793
|
InputNumber,
|
|
1767
|
-
__spreadValues$
|
|
1794
|
+
__spreadValues$B(__spreadProps$u(__spreadValues$B({}, input), {
|
|
1768
1795
|
onBlur: (e) => onBlur ? onBlur(input, e) : input.onBlur(e),
|
|
1769
1796
|
autoComplete,
|
|
1770
1797
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
@@ -1772,33 +1799,33 @@ const FieldsFloat = (_a) => {
|
|
|
1772
1799
|
));
|
|
1773
1800
|
};
|
|
1774
1801
|
|
|
1775
|
-
var __defProp$
|
|
1776
|
-
var __defProps$
|
|
1777
|
-
var __getOwnPropDescs$
|
|
1778
|
-
var __getOwnPropSymbols$
|
|
1779
|
-
var __hasOwnProp$
|
|
1780
|
-
var __propIsEnum$
|
|
1781
|
-
var __defNormalProp$
|
|
1782
|
-
var __spreadValues$
|
|
1802
|
+
var __defProp$A = Object.defineProperty;
|
|
1803
|
+
var __defProps$t = Object.defineProperties;
|
|
1804
|
+
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
|
1805
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
|
1806
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
|
1807
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
|
1808
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1809
|
+
var __spreadValues$A = (a, b) => {
|
|
1783
1810
|
for (var prop in b || (b = {}))
|
|
1784
|
-
if (__hasOwnProp$
|
|
1785
|
-
__defNormalProp$
|
|
1786
|
-
if (__getOwnPropSymbols$
|
|
1787
|
-
for (var prop of __getOwnPropSymbols$
|
|
1788
|
-
if (__propIsEnum$
|
|
1789
|
-
__defNormalProp$
|
|
1811
|
+
if (__hasOwnProp$A.call(b, prop))
|
|
1812
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
1813
|
+
if (__getOwnPropSymbols$A)
|
|
1814
|
+
for (var prop of __getOwnPropSymbols$A(b)) {
|
|
1815
|
+
if (__propIsEnum$A.call(b, prop))
|
|
1816
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
1790
1817
|
}
|
|
1791
1818
|
return a;
|
|
1792
1819
|
};
|
|
1793
|
-
var __spreadProps$
|
|
1794
|
-
var __objRest$
|
|
1820
|
+
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
|
1821
|
+
var __objRest$i = (source, exclude) => {
|
|
1795
1822
|
var target = {};
|
|
1796
1823
|
for (var prop in source)
|
|
1797
|
-
if (__hasOwnProp$
|
|
1824
|
+
if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1798
1825
|
target[prop] = source[prop];
|
|
1799
|
-
if (source != null && __getOwnPropSymbols$
|
|
1800
|
-
for (var prop of __getOwnPropSymbols$
|
|
1801
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1826
|
+
if (source != null && __getOwnPropSymbols$A)
|
|
1827
|
+
for (var prop of __getOwnPropSymbols$A(source)) {
|
|
1828
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
|
|
1802
1829
|
target[prop] = source[prop];
|
|
1803
1830
|
}
|
|
1804
1831
|
return target;
|
|
@@ -1808,7 +1835,7 @@ const Input = (_a) => {
|
|
|
1808
1835
|
className,
|
|
1809
1836
|
error,
|
|
1810
1837
|
size = "middle"
|
|
1811
|
-
} = _b, props = __objRest$
|
|
1838
|
+
} = _b, props = __objRest$i(_b, [
|
|
1812
1839
|
"className",
|
|
1813
1840
|
"error",
|
|
1814
1841
|
"size"
|
|
@@ -1820,7 +1847,7 @@ const Input = (_a) => {
|
|
|
1820
1847
|
}[size];
|
|
1821
1848
|
return /* @__PURE__ */ React__default.createElement(
|
|
1822
1849
|
Input$1,
|
|
1823
|
-
__spreadProps$
|
|
1850
|
+
__spreadProps$t(__spreadValues$A({}, props), {
|
|
1824
1851
|
size,
|
|
1825
1852
|
"data-test": props.name,
|
|
1826
1853
|
className: cs(className, InputStyle, typo, error ? "error" : "")
|
|
@@ -1828,33 +1855,33 @@ const Input = (_a) => {
|
|
|
1828
1855
|
);
|
|
1829
1856
|
};
|
|
1830
1857
|
|
|
1831
|
-
var __defProp$
|
|
1832
|
-
var __defProps$
|
|
1833
|
-
var __getOwnPropDescs$
|
|
1834
|
-
var __getOwnPropSymbols$
|
|
1835
|
-
var __hasOwnProp$
|
|
1836
|
-
var __propIsEnum$
|
|
1837
|
-
var __defNormalProp$
|
|
1838
|
-
var __spreadValues$
|
|
1858
|
+
var __defProp$z = Object.defineProperty;
|
|
1859
|
+
var __defProps$s = Object.defineProperties;
|
|
1860
|
+
var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
|
|
1861
|
+
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
|
1862
|
+
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
|
1863
|
+
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
|
1864
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1865
|
+
var __spreadValues$z = (a, b) => {
|
|
1839
1866
|
for (var prop in b || (b = {}))
|
|
1840
|
-
if (__hasOwnProp$
|
|
1841
|
-
__defNormalProp$
|
|
1842
|
-
if (__getOwnPropSymbols$
|
|
1843
|
-
for (var prop of __getOwnPropSymbols$
|
|
1844
|
-
if (__propIsEnum$
|
|
1845
|
-
__defNormalProp$
|
|
1867
|
+
if (__hasOwnProp$z.call(b, prop))
|
|
1868
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
1869
|
+
if (__getOwnPropSymbols$z)
|
|
1870
|
+
for (var prop of __getOwnPropSymbols$z(b)) {
|
|
1871
|
+
if (__propIsEnum$z.call(b, prop))
|
|
1872
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
1846
1873
|
}
|
|
1847
1874
|
return a;
|
|
1848
1875
|
};
|
|
1849
|
-
var __spreadProps$
|
|
1850
|
-
var __objRest$
|
|
1876
|
+
var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
|
|
1877
|
+
var __objRest$h = (source, exclude) => {
|
|
1851
1878
|
var target = {};
|
|
1852
1879
|
for (var prop in source)
|
|
1853
|
-
if (__hasOwnProp$
|
|
1880
|
+
if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1854
1881
|
target[prop] = source[prop];
|
|
1855
|
-
if (source != null && __getOwnPropSymbols$
|
|
1856
|
-
for (var prop of __getOwnPropSymbols$
|
|
1857
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1882
|
+
if (source != null && __getOwnPropSymbols$z)
|
|
1883
|
+
for (var prop of __getOwnPropSymbols$z(source)) {
|
|
1884
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
|
|
1858
1885
|
target[prop] = source[prop];
|
|
1859
1886
|
}
|
|
1860
1887
|
return target;
|
|
@@ -1866,7 +1893,7 @@ const FieldsInt = (_a) => {
|
|
|
1866
1893
|
onBlur,
|
|
1867
1894
|
autoComplete = "off",
|
|
1868
1895
|
supportNegativeValue = false
|
|
1869
|
-
} = _b, props = __objRest$
|
|
1896
|
+
} = _b, props = __objRest$h(_b, [
|
|
1870
1897
|
"input",
|
|
1871
1898
|
"meta",
|
|
1872
1899
|
"onBlur",
|
|
@@ -1875,7 +1902,7 @@ const FieldsInt = (_a) => {
|
|
|
1875
1902
|
]);
|
|
1876
1903
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
1877
1904
|
Input,
|
|
1878
|
-
__spreadValues$
|
|
1905
|
+
__spreadValues$z(__spreadProps$s(__spreadValues$z({}, input), {
|
|
1879
1906
|
onChange: (e) => {
|
|
1880
1907
|
const value = e.currentTarget.value;
|
|
1881
1908
|
if (supportNegativeValue) {
|
|
@@ -1910,31 +1937,31 @@ const formatterInteger = (value) => {
|
|
|
1910
1937
|
}
|
|
1911
1938
|
};
|
|
1912
1939
|
|
|
1913
|
-
var __defProp$
|
|
1914
|
-
var __defProps$
|
|
1915
|
-
var __getOwnPropDescs$
|
|
1916
|
-
var __getOwnPropSymbols$
|
|
1917
|
-
var __hasOwnProp$
|
|
1918
|
-
var __propIsEnum$
|
|
1919
|
-
var __defNormalProp$
|
|
1940
|
+
var __defProp$y = Object.defineProperty;
|
|
1941
|
+
var __defProps$r = Object.defineProperties;
|
|
1942
|
+
var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
|
|
1943
|
+
var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
|
|
1944
|
+
var __hasOwnProp$y = Object.prototype.hasOwnProperty;
|
|
1945
|
+
var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
|
|
1946
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, {
|
|
1920
1947
|
enumerable: true,
|
|
1921
1948
|
configurable: true,
|
|
1922
1949
|
writable: true,
|
|
1923
1950
|
value
|
|
1924
1951
|
}) : obj[key] = value;
|
|
1925
|
-
var __spreadValues$
|
|
1926
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1927
|
-
if (__getOwnPropSymbols$
|
|
1928
|
-
if (__propIsEnum$
|
|
1952
|
+
var __spreadValues$y = (a, b) => {
|
|
1953
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$y.call(b, prop)) __defNormalProp$y(a, prop, b[prop]);
|
|
1954
|
+
if (__getOwnPropSymbols$y) for (var prop of __getOwnPropSymbols$y(b)) {
|
|
1955
|
+
if (__propIsEnum$y.call(b, prop)) __defNormalProp$y(a, prop, b[prop]);
|
|
1929
1956
|
}
|
|
1930
1957
|
return a;
|
|
1931
1958
|
};
|
|
1932
|
-
var __spreadProps$
|
|
1933
|
-
var __objRest$
|
|
1959
|
+
var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
|
|
1960
|
+
var __objRest$g = (source, exclude) => {
|
|
1934
1961
|
var target = {};
|
|
1935
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1936
|
-
if (source != null && __getOwnPropSymbols$
|
|
1937
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1962
|
+
for (var prop in source) if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1963
|
+
if (source != null && __getOwnPropSymbols$y) for (var prop of __getOwnPropSymbols$y(source)) {
|
|
1964
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop)) target[prop] = source[prop];
|
|
1938
1965
|
}
|
|
1939
1966
|
return target;
|
|
1940
1967
|
};
|
|
@@ -1972,13 +1999,13 @@ const InputInteger = _a => {
|
|
|
1972
1999
|
min,
|
|
1973
2000
|
controls = false
|
|
1974
2001
|
} = _b,
|
|
1975
|
-
props = __objRest$
|
|
2002
|
+
props = __objRest$g(_b, ["className", "error", "size", "suffix", "prefix", "max", "min", "controls"]);
|
|
1976
2003
|
const typo = {
|
|
1977
2004
|
large: Typo.Label.l2_regular,
|
|
1978
2005
|
middle: Typo.Label.l3_regular,
|
|
1979
2006
|
small: Typo.Label.l4_regular
|
|
1980
2007
|
}[size];
|
|
1981
|
-
return /* @__PURE__ */React__default.createElement(AntdIntStyled, __spreadProps$
|
|
2008
|
+
return /* @__PURE__ */React__default.createElement(AntdIntStyled, __spreadProps$r(__spreadValues$y({}, props), {
|
|
1982
2009
|
size,
|
|
1983
2010
|
formatter: formatterInteger,
|
|
1984
2011
|
parser: formatterInteger,
|
|
@@ -1992,33 +2019,33 @@ const InputInteger = _a => {
|
|
|
1992
2019
|
}));
|
|
1993
2020
|
};
|
|
1994
2021
|
|
|
1995
|
-
var __defProp$
|
|
1996
|
-
var __defProps$
|
|
1997
|
-
var __getOwnPropDescs$
|
|
1998
|
-
var __getOwnPropSymbols$
|
|
1999
|
-
var __hasOwnProp$
|
|
2000
|
-
var __propIsEnum$
|
|
2001
|
-
var __defNormalProp$
|
|
2002
|
-
var __spreadValues$
|
|
2022
|
+
var __defProp$x = Object.defineProperty;
|
|
2023
|
+
var __defProps$q = Object.defineProperties;
|
|
2024
|
+
var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
|
|
2025
|
+
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
|
2026
|
+
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
|
2027
|
+
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
|
2028
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2029
|
+
var __spreadValues$x = (a, b) => {
|
|
2003
2030
|
for (var prop in b || (b = {}))
|
|
2004
|
-
if (__hasOwnProp$
|
|
2005
|
-
__defNormalProp$
|
|
2006
|
-
if (__getOwnPropSymbols$
|
|
2007
|
-
for (var prop of __getOwnPropSymbols$
|
|
2008
|
-
if (__propIsEnum$
|
|
2009
|
-
__defNormalProp$
|
|
2031
|
+
if (__hasOwnProp$x.call(b, prop))
|
|
2032
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
2033
|
+
if (__getOwnPropSymbols$x)
|
|
2034
|
+
for (var prop of __getOwnPropSymbols$x(b)) {
|
|
2035
|
+
if (__propIsEnum$x.call(b, prop))
|
|
2036
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
2010
2037
|
}
|
|
2011
2038
|
return a;
|
|
2012
2039
|
};
|
|
2013
|
-
var __spreadProps$
|
|
2014
|
-
var __objRest$
|
|
2040
|
+
var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
|
|
2041
|
+
var __objRest$f = (source, exclude) => {
|
|
2015
2042
|
var target = {};
|
|
2016
2043
|
for (var prop in source)
|
|
2017
|
-
if (__hasOwnProp$
|
|
2044
|
+
if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2018
2045
|
target[prop] = source[prop];
|
|
2019
|
-
if (source != null && __getOwnPropSymbols$
|
|
2020
|
-
for (var prop of __getOwnPropSymbols$
|
|
2021
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2046
|
+
if (source != null && __getOwnPropSymbols$x)
|
|
2047
|
+
for (var prop of __getOwnPropSymbols$x(source)) {
|
|
2048
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
|
|
2022
2049
|
target[prop] = source[prop];
|
|
2023
2050
|
}
|
|
2024
2051
|
return target;
|
|
@@ -2028,14 +2055,14 @@ const FieldsInteger = (_a) => {
|
|
|
2028
2055
|
meta,
|
|
2029
2056
|
input,
|
|
2030
2057
|
onBlur
|
|
2031
|
-
} = _b, props = __objRest$
|
|
2058
|
+
} = _b, props = __objRest$f(_b, [
|
|
2032
2059
|
"meta",
|
|
2033
2060
|
"input",
|
|
2034
2061
|
"onBlur"
|
|
2035
2062
|
]);
|
|
2036
2063
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
2037
2064
|
InputInteger,
|
|
2038
|
-
__spreadProps$
|
|
2065
|
+
__spreadProps$q(__spreadValues$x(__spreadValues$x({}, props), input), {
|
|
2039
2066
|
onBlur: (e) => onBlur ? onBlur(input, e) : input.onBlur(e),
|
|
2040
2067
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
2041
2068
|
})
|
|
@@ -2200,33 +2227,33 @@ const Overflow = props => {
|
|
|
2200
2227
|
}, children), showOverflow && /* @__PURE__ */React__default.createElement("span", null, overflow));
|
|
2201
2228
|
};
|
|
2202
2229
|
|
|
2203
|
-
var __defProp$
|
|
2204
|
-
var __defProps$
|
|
2205
|
-
var __getOwnPropDescs$
|
|
2206
|
-
var __getOwnPropSymbols$
|
|
2207
|
-
var __hasOwnProp$
|
|
2208
|
-
var __propIsEnum$
|
|
2209
|
-
var __defNormalProp$
|
|
2210
|
-
var __spreadValues$
|
|
2230
|
+
var __defProp$w = Object.defineProperty;
|
|
2231
|
+
var __defProps$p = Object.defineProperties;
|
|
2232
|
+
var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
|
|
2233
|
+
var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
|
|
2234
|
+
var __hasOwnProp$w = Object.prototype.hasOwnProperty;
|
|
2235
|
+
var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
|
|
2236
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2237
|
+
var __spreadValues$w = (a, b) => {
|
|
2211
2238
|
for (var prop in b || (b = {}))
|
|
2212
|
-
if (__hasOwnProp$
|
|
2213
|
-
__defNormalProp$
|
|
2214
|
-
if (__getOwnPropSymbols$
|
|
2215
|
-
for (var prop of __getOwnPropSymbols$
|
|
2216
|
-
if (__propIsEnum$
|
|
2217
|
-
__defNormalProp$
|
|
2239
|
+
if (__hasOwnProp$w.call(b, prop))
|
|
2240
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
2241
|
+
if (__getOwnPropSymbols$w)
|
|
2242
|
+
for (var prop of __getOwnPropSymbols$w(b)) {
|
|
2243
|
+
if (__propIsEnum$w.call(b, prop))
|
|
2244
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
2218
2245
|
}
|
|
2219
2246
|
return a;
|
|
2220
2247
|
};
|
|
2221
|
-
var __spreadProps$
|
|
2222
|
-
var __objRest$
|
|
2248
|
+
var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
|
|
2249
|
+
var __objRest$e = (source, exclude) => {
|
|
2223
2250
|
var target = {};
|
|
2224
2251
|
for (var prop in source)
|
|
2225
|
-
if (__hasOwnProp$
|
|
2252
|
+
if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2226
2253
|
target[prop] = source[prop];
|
|
2227
|
-
if (source != null && __getOwnPropSymbols$
|
|
2228
|
-
for (var prop of __getOwnPropSymbols$
|
|
2229
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2254
|
+
if (source != null && __getOwnPropSymbols$w)
|
|
2255
|
+
for (var prop of __getOwnPropSymbols$w(source)) {
|
|
2256
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$w.call(source, prop))
|
|
2230
2257
|
target[prop] = source[prop];
|
|
2231
2258
|
}
|
|
2232
2259
|
return target;
|
|
@@ -2245,7 +2272,7 @@ const FieldsString = (_a) => {
|
|
|
2245
2272
|
onClick,
|
|
2246
2273
|
maxLength,
|
|
2247
2274
|
focusIndicator
|
|
2248
|
-
} = _b, props = __objRest$
|
|
2275
|
+
} = _b, props = __objRest$e(_b, [
|
|
2249
2276
|
"input",
|
|
2250
2277
|
"meta",
|
|
2251
2278
|
"autoComplete",
|
|
@@ -2277,7 +2304,7 @@ const FieldsString = (_a) => {
|
|
|
2277
2304
|
}
|
|
2278
2305
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
2279
2306
|
Input,
|
|
2280
|
-
__spreadProps$
|
|
2307
|
+
__spreadProps$p(__spreadValues$w(__spreadProps$p(__spreadValues$w({
|
|
2281
2308
|
className: cs(
|
|
2282
2309
|
className,
|
|
2283
2310
|
KitInputStyle,
|
|
@@ -2302,33 +2329,33 @@ const FieldsString = (_a) => {
|
|
|
2302
2329
|
));
|
|
2303
2330
|
};
|
|
2304
2331
|
|
|
2305
|
-
var __defProp$
|
|
2306
|
-
var __defProps$
|
|
2307
|
-
var __getOwnPropDescs$
|
|
2308
|
-
var __getOwnPropSymbols$
|
|
2309
|
-
var __hasOwnProp$
|
|
2310
|
-
var __propIsEnum$
|
|
2311
|
-
var __defNormalProp$
|
|
2312
|
-
var __spreadValues$
|
|
2332
|
+
var __defProp$v = Object.defineProperty;
|
|
2333
|
+
var __defProps$o = Object.defineProperties;
|
|
2334
|
+
var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
|
|
2335
|
+
var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
|
|
2336
|
+
var __hasOwnProp$v = Object.prototype.hasOwnProperty;
|
|
2337
|
+
var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
|
|
2338
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2339
|
+
var __spreadValues$v = (a, b) => {
|
|
2313
2340
|
for (var prop in b || (b = {}))
|
|
2314
|
-
if (__hasOwnProp$
|
|
2315
|
-
__defNormalProp$
|
|
2316
|
-
if (__getOwnPropSymbols$
|
|
2317
|
-
for (var prop of __getOwnPropSymbols$
|
|
2318
|
-
if (__propIsEnum$
|
|
2319
|
-
__defNormalProp$
|
|
2341
|
+
if (__hasOwnProp$v.call(b, prop))
|
|
2342
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
2343
|
+
if (__getOwnPropSymbols$v)
|
|
2344
|
+
for (var prop of __getOwnPropSymbols$v(b)) {
|
|
2345
|
+
if (__propIsEnum$v.call(b, prop))
|
|
2346
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
2320
2347
|
}
|
|
2321
2348
|
return a;
|
|
2322
2349
|
};
|
|
2323
|
-
var __spreadProps$
|
|
2324
|
-
var __objRest$
|
|
2350
|
+
var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
|
|
2351
|
+
var __objRest$d = (source, exclude) => {
|
|
2325
2352
|
var target = {};
|
|
2326
2353
|
for (var prop in source)
|
|
2327
|
-
if (__hasOwnProp$
|
|
2354
|
+
if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2328
2355
|
target[prop] = source[prop];
|
|
2329
|
-
if (source != null && __getOwnPropSymbols$
|
|
2330
|
-
for (var prop of __getOwnPropSymbols$
|
|
2331
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2356
|
+
if (source != null && __getOwnPropSymbols$v)
|
|
2357
|
+
for (var prop of __getOwnPropSymbols$v(source)) {
|
|
2358
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$v.call(source, prop))
|
|
2332
2359
|
target[prop] = source[prop];
|
|
2333
2360
|
}
|
|
2334
2361
|
return target;
|
|
@@ -2338,7 +2365,7 @@ const TextArea = (_a) => {
|
|
|
2338
2365
|
className,
|
|
2339
2366
|
error,
|
|
2340
2367
|
size = "middle"
|
|
2341
|
-
} = _b, props = __objRest$
|
|
2368
|
+
} = _b, props = __objRest$d(_b, [
|
|
2342
2369
|
"className",
|
|
2343
2370
|
"error",
|
|
2344
2371
|
"size"
|
|
@@ -2350,7 +2377,7 @@ const TextArea = (_a) => {
|
|
|
2350
2377
|
}[size];
|
|
2351
2378
|
return /* @__PURE__ */ React__default.createElement(
|
|
2352
2379
|
Input$1.TextArea,
|
|
2353
|
-
__spreadProps$
|
|
2380
|
+
__spreadProps$o(__spreadValues$v({}, props), {
|
|
2354
2381
|
className: cs(
|
|
2355
2382
|
className,
|
|
2356
2383
|
InputStyle,
|
|
@@ -2364,33 +2391,33 @@ const TextArea = (_a) => {
|
|
|
2364
2391
|
);
|
|
2365
2392
|
};
|
|
2366
2393
|
|
|
2367
|
-
var __defProp$
|
|
2368
|
-
var __defProps$
|
|
2369
|
-
var __getOwnPropDescs$
|
|
2370
|
-
var __getOwnPropSymbols$
|
|
2371
|
-
var __hasOwnProp$
|
|
2372
|
-
var __propIsEnum$
|
|
2373
|
-
var __defNormalProp$
|
|
2374
|
-
var __spreadValues$
|
|
2394
|
+
var __defProp$u = Object.defineProperty;
|
|
2395
|
+
var __defProps$n = Object.defineProperties;
|
|
2396
|
+
var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
|
|
2397
|
+
var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
|
|
2398
|
+
var __hasOwnProp$u = Object.prototype.hasOwnProperty;
|
|
2399
|
+
var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
|
|
2400
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2401
|
+
var __spreadValues$u = (a, b) => {
|
|
2375
2402
|
for (var prop in b || (b = {}))
|
|
2376
|
-
if (__hasOwnProp$
|
|
2377
|
-
__defNormalProp$
|
|
2378
|
-
if (__getOwnPropSymbols$
|
|
2379
|
-
for (var prop of __getOwnPropSymbols$
|
|
2380
|
-
if (__propIsEnum$
|
|
2381
|
-
__defNormalProp$
|
|
2403
|
+
if (__hasOwnProp$u.call(b, prop))
|
|
2404
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
2405
|
+
if (__getOwnPropSymbols$u)
|
|
2406
|
+
for (var prop of __getOwnPropSymbols$u(b)) {
|
|
2407
|
+
if (__propIsEnum$u.call(b, prop))
|
|
2408
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
2382
2409
|
}
|
|
2383
2410
|
return a;
|
|
2384
2411
|
};
|
|
2385
|
-
var __spreadProps$
|
|
2386
|
-
var __objRest$
|
|
2412
|
+
var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
|
|
2413
|
+
var __objRest$c = (source, exclude) => {
|
|
2387
2414
|
var target = {};
|
|
2388
2415
|
for (var prop in source)
|
|
2389
|
-
if (__hasOwnProp$
|
|
2416
|
+
if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2390
2417
|
target[prop] = source[prop];
|
|
2391
|
-
if (source != null && __getOwnPropSymbols$
|
|
2392
|
-
for (var prop of __getOwnPropSymbols$
|
|
2393
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2418
|
+
if (source != null && __getOwnPropSymbols$u)
|
|
2419
|
+
for (var prop of __getOwnPropSymbols$u(source)) {
|
|
2420
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
|
|
2394
2421
|
target[prop] = source[prop];
|
|
2395
2422
|
}
|
|
2396
2423
|
return target;
|
|
@@ -2400,14 +2427,14 @@ const FieldsTextArea = (_a) => {
|
|
|
2400
2427
|
input,
|
|
2401
2428
|
meta,
|
|
2402
2429
|
onFocusChangeHeight
|
|
2403
|
-
} = _b, props = __objRest$
|
|
2430
|
+
} = _b, props = __objRest$c(_b, [
|
|
2404
2431
|
"input",
|
|
2405
2432
|
"meta",
|
|
2406
2433
|
"onFocusChangeHeight"
|
|
2407
2434
|
]);
|
|
2408
2435
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
2409
2436
|
TextArea,
|
|
2410
|
-
__spreadProps$
|
|
2437
|
+
__spreadProps$n(__spreadValues$u(__spreadValues$u({}, input), props), {
|
|
2411
2438
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError),
|
|
2412
2439
|
onFocus: (e) => {
|
|
2413
2440
|
input.onFocus(e);
|
|
@@ -2421,33 +2448,33 @@ const FieldsTextArea = (_a) => {
|
|
|
2421
2448
|
));
|
|
2422
2449
|
};
|
|
2423
2450
|
|
|
2424
|
-
var __defProp$
|
|
2425
|
-
var __defProps$
|
|
2426
|
-
var __getOwnPropDescs$
|
|
2427
|
-
var __getOwnPropSymbols$
|
|
2428
|
-
var __hasOwnProp$
|
|
2429
|
-
var __propIsEnum$
|
|
2430
|
-
var __defNormalProp$
|
|
2431
|
-
var __spreadValues$
|
|
2451
|
+
var __defProp$t = Object.defineProperty;
|
|
2452
|
+
var __defProps$m = Object.defineProperties;
|
|
2453
|
+
var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
|
|
2454
|
+
var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
|
|
2455
|
+
var __hasOwnProp$t = Object.prototype.hasOwnProperty;
|
|
2456
|
+
var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
|
|
2457
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2458
|
+
var __spreadValues$t = (a, b) => {
|
|
2432
2459
|
for (var prop in b || (b = {}))
|
|
2433
|
-
if (__hasOwnProp$
|
|
2434
|
-
__defNormalProp$
|
|
2435
|
-
if (__getOwnPropSymbols$
|
|
2436
|
-
for (var prop of __getOwnPropSymbols$
|
|
2437
|
-
if (__propIsEnum$
|
|
2438
|
-
__defNormalProp$
|
|
2460
|
+
if (__hasOwnProp$t.call(b, prop))
|
|
2461
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
2462
|
+
if (__getOwnPropSymbols$t)
|
|
2463
|
+
for (var prop of __getOwnPropSymbols$t(b)) {
|
|
2464
|
+
if (__propIsEnum$t.call(b, prop))
|
|
2465
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
2439
2466
|
}
|
|
2440
2467
|
return a;
|
|
2441
2468
|
};
|
|
2442
|
-
var __spreadProps$
|
|
2443
|
-
var __objRest$
|
|
2469
|
+
var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
|
|
2470
|
+
var __objRest$b = (source, exclude) => {
|
|
2444
2471
|
var target = {};
|
|
2445
2472
|
for (var prop in source)
|
|
2446
|
-
if (__hasOwnProp$
|
|
2473
|
+
if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2447
2474
|
target[prop] = source[prop];
|
|
2448
|
-
if (source != null && __getOwnPropSymbols$
|
|
2449
|
-
for (var prop of __getOwnPropSymbols$
|
|
2450
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2475
|
+
if (source != null && __getOwnPropSymbols$t)
|
|
2476
|
+
for (var prop of __getOwnPropSymbols$t(source)) {
|
|
2477
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$t.call(source, prop))
|
|
2451
2478
|
target[prop] = source[prop];
|
|
2452
2479
|
}
|
|
2453
2480
|
return target;
|
|
@@ -2457,7 +2484,7 @@ const TimePicker = (_a) => {
|
|
|
2457
2484
|
className,
|
|
2458
2485
|
error,
|
|
2459
2486
|
size = "middle"
|
|
2460
|
-
} = _b, props = __objRest$
|
|
2487
|
+
} = _b, props = __objRest$b(_b, [
|
|
2461
2488
|
"className",
|
|
2462
2489
|
"error",
|
|
2463
2490
|
"size"
|
|
@@ -2469,7 +2496,7 @@ const TimePicker = (_a) => {
|
|
|
2469
2496
|
}[size];
|
|
2470
2497
|
return /* @__PURE__ */ React__default.createElement(
|
|
2471
2498
|
TimePicker$1,
|
|
2472
|
-
__spreadProps$
|
|
2499
|
+
__spreadProps$m(__spreadValues$t({}, props), {
|
|
2473
2500
|
size,
|
|
2474
2501
|
"data-test": props.name,
|
|
2475
2502
|
className: cs(className, InputStyle, typo, error ? "error" : "")
|
|
@@ -2477,33 +2504,33 @@ const TimePicker = (_a) => {
|
|
|
2477
2504
|
);
|
|
2478
2505
|
};
|
|
2479
2506
|
|
|
2480
|
-
var __defProp$
|
|
2481
|
-
var __defProps$
|
|
2482
|
-
var __getOwnPropDescs$
|
|
2483
|
-
var __getOwnPropSymbols$
|
|
2484
|
-
var __hasOwnProp$
|
|
2485
|
-
var __propIsEnum$
|
|
2486
|
-
var __defNormalProp$
|
|
2487
|
-
var __spreadValues$
|
|
2507
|
+
var __defProp$s = Object.defineProperty;
|
|
2508
|
+
var __defProps$l = Object.defineProperties;
|
|
2509
|
+
var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
|
|
2510
|
+
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
|
2511
|
+
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
|
2512
|
+
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
|
2513
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2514
|
+
var __spreadValues$s = (a, b) => {
|
|
2488
2515
|
for (var prop in b || (b = {}))
|
|
2489
|
-
if (__hasOwnProp$
|
|
2490
|
-
__defNormalProp$
|
|
2491
|
-
if (__getOwnPropSymbols$
|
|
2492
|
-
for (var prop of __getOwnPropSymbols$
|
|
2493
|
-
if (__propIsEnum$
|
|
2494
|
-
__defNormalProp$
|
|
2516
|
+
if (__hasOwnProp$s.call(b, prop))
|
|
2517
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
2518
|
+
if (__getOwnPropSymbols$s)
|
|
2519
|
+
for (var prop of __getOwnPropSymbols$s(b)) {
|
|
2520
|
+
if (__propIsEnum$s.call(b, prop))
|
|
2521
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
2495
2522
|
}
|
|
2496
2523
|
return a;
|
|
2497
2524
|
};
|
|
2498
|
-
var __spreadProps$
|
|
2499
|
-
var __objRest$
|
|
2525
|
+
var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
|
|
2526
|
+
var __objRest$a = (source, exclude) => {
|
|
2500
2527
|
var target = {};
|
|
2501
2528
|
for (var prop in source)
|
|
2502
|
-
if (__hasOwnProp$
|
|
2529
|
+
if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2503
2530
|
target[prop] = source[prop];
|
|
2504
|
-
if (source != null && __getOwnPropSymbols$
|
|
2505
|
-
for (var prop of __getOwnPropSymbols$
|
|
2506
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2531
|
+
if (source != null && __getOwnPropSymbols$s)
|
|
2532
|
+
for (var prop of __getOwnPropSymbols$s(source)) {
|
|
2533
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop))
|
|
2507
2534
|
target[prop] = source[prop];
|
|
2508
2535
|
}
|
|
2509
2536
|
return target;
|
|
@@ -2512,13 +2539,13 @@ const FieldsTimePicker = (_a) => {
|
|
|
2512
2539
|
var _b = _a, {
|
|
2513
2540
|
input,
|
|
2514
2541
|
meta
|
|
2515
|
-
} = _b, props = __objRest$
|
|
2542
|
+
} = _b, props = __objRest$a(_b, [
|
|
2516
2543
|
"input",
|
|
2517
2544
|
"meta"
|
|
2518
2545
|
]);
|
|
2519
2546
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
2520
2547
|
TimePicker,
|
|
2521
|
-
__spreadValues$
|
|
2548
|
+
__spreadValues$s(__spreadProps$l(__spreadValues$s({}, input), {
|
|
2522
2549
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
2523
2550
|
}), props)
|
|
2524
2551
|
));
|
|
@@ -2537,32 +2564,32 @@ const fields = {
|
|
|
2537
2564
|
DateTimeRange: FieldsDateTimeRange
|
|
2538
2565
|
};
|
|
2539
2566
|
|
|
2540
|
-
var __defProp$
|
|
2541
|
-
var __defProps$
|
|
2542
|
-
var __getOwnPropDescs$
|
|
2543
|
-
var __getOwnPropSymbols$
|
|
2544
|
-
var __hasOwnProp$
|
|
2545
|
-
var __propIsEnum$
|
|
2546
|
-
var __defNormalProp$
|
|
2567
|
+
var __defProp$r = Object.defineProperty;
|
|
2568
|
+
var __defProps$k = Object.defineProperties;
|
|
2569
|
+
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
|
2570
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
|
2571
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
|
2572
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
|
2573
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, {
|
|
2547
2574
|
enumerable: true,
|
|
2548
2575
|
configurable: true,
|
|
2549
2576
|
writable: true,
|
|
2550
2577
|
value
|
|
2551
2578
|
}) : obj[key] = value;
|
|
2552
|
-
var __spreadValues$
|
|
2553
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
2554
|
-
if (__getOwnPropSymbols$
|
|
2555
|
-
if (__propIsEnum$
|
|
2579
|
+
var __spreadValues$r = (a, b) => {
|
|
2580
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$r.call(b, prop)) __defNormalProp$r(a, prop, b[prop]);
|
|
2581
|
+
if (__getOwnPropSymbols$r) for (var prop of __getOwnPropSymbols$r(b)) {
|
|
2582
|
+
if (__propIsEnum$r.call(b, prop)) __defNormalProp$r(a, prop, b[prop]);
|
|
2556
2583
|
}
|
|
2557
2584
|
return a;
|
|
2558
2585
|
};
|
|
2559
|
-
var __spreadProps$
|
|
2586
|
+
var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
|
|
2560
2587
|
const {
|
|
2561
2588
|
Item: AntdFormItem
|
|
2562
2589
|
} = Form$1;
|
|
2563
2590
|
const FormItemStyle$1 = "f1p9ti6d";
|
|
2564
2591
|
const FormItem$1 = props => {
|
|
2565
|
-
return /* @__PURE__ */React__default.createElement(AntdFormItem, __spreadProps$
|
|
2592
|
+
return /* @__PURE__ */React__default.createElement(AntdFormItem, __spreadProps$k(__spreadValues$r({}, props), {
|
|
2566
2593
|
className: cs(FormItemStyle$1, props.className)
|
|
2567
2594
|
}));
|
|
2568
2595
|
};
|
|
@@ -2570,19 +2597,19 @@ const FormItem$1 = props => {
|
|
|
2570
2597
|
const Form = Form$1;
|
|
2571
2598
|
Form.Item = FormItem$1;
|
|
2572
2599
|
|
|
2573
|
-
var __defProp$
|
|
2574
|
-
var __getOwnPropSymbols$
|
|
2575
|
-
var __hasOwnProp$
|
|
2576
|
-
var __propIsEnum$
|
|
2577
|
-
var __defNormalProp$
|
|
2578
|
-
var __spreadValues$
|
|
2600
|
+
var __defProp$q = Object.defineProperty;
|
|
2601
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
2602
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
2603
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
2604
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2605
|
+
var __spreadValues$q = (a, b) => {
|
|
2579
2606
|
for (var prop in b || (b = {}))
|
|
2580
|
-
if (__hasOwnProp$
|
|
2581
|
-
__defNormalProp$
|
|
2582
|
-
if (__getOwnPropSymbols$
|
|
2583
|
-
for (var prop of __getOwnPropSymbols$
|
|
2584
|
-
if (__propIsEnum$
|
|
2585
|
-
__defNormalProp$
|
|
2607
|
+
if (__hasOwnProp$q.call(b, prop))
|
|
2608
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
2609
|
+
if (__getOwnPropSymbols$q)
|
|
2610
|
+
for (var prop of __getOwnPropSymbols$q(b)) {
|
|
2611
|
+
if (__propIsEnum$q.call(b, prop))
|
|
2612
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
2586
2613
|
}
|
|
2587
2614
|
return a;
|
|
2588
2615
|
};
|
|
@@ -2594,7 +2621,7 @@ const Frequency = ({
|
|
|
2594
2621
|
emptyProps
|
|
2595
2622
|
}) => {
|
|
2596
2623
|
if (isEmpty(rawValue)) {
|
|
2597
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$
|
|
2624
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$q({}, emptyProps));
|
|
2598
2625
|
}
|
|
2599
2626
|
const { value, unit } = formatFrequency(rawValue, decimals);
|
|
2600
2627
|
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}`));
|
|
@@ -2607,25 +2634,25 @@ const InputGroup = /*#__PURE__*/styled(_exp())({
|
|
|
2607
2634
|
propsAsIs: true
|
|
2608
2635
|
});
|
|
2609
2636
|
|
|
2610
|
-
var __defProp$
|
|
2611
|
-
var __defProps$
|
|
2612
|
-
var __getOwnPropDescs$
|
|
2613
|
-
var __getOwnPropSymbols$
|
|
2614
|
-
var __hasOwnProp$
|
|
2615
|
-
var __propIsEnum$
|
|
2616
|
-
var __defNormalProp$
|
|
2617
|
-
var __spreadValues$
|
|
2637
|
+
var __defProp$p = Object.defineProperty;
|
|
2638
|
+
var __defProps$j = Object.defineProperties;
|
|
2639
|
+
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
2640
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
2641
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
2642
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
2643
|
+
var __defNormalProp$p = (obj, key2, value) => key2 in obj ? __defProp$p(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value;
|
|
2644
|
+
var __spreadValues$p = (a, b) => {
|
|
2618
2645
|
for (var prop in b || (b = {}))
|
|
2619
|
-
if (__hasOwnProp$
|
|
2620
|
-
__defNormalProp$
|
|
2621
|
-
if (__getOwnPropSymbols$
|
|
2622
|
-
for (var prop of __getOwnPropSymbols$
|
|
2623
|
-
if (__propIsEnum$
|
|
2624
|
-
__defNormalProp$
|
|
2646
|
+
if (__hasOwnProp$p.call(b, prop))
|
|
2647
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
2648
|
+
if (__getOwnPropSymbols$p)
|
|
2649
|
+
for (var prop of __getOwnPropSymbols$p(b)) {
|
|
2650
|
+
if (__propIsEnum$p.call(b, prop))
|
|
2651
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
2625
2652
|
}
|
|
2626
2653
|
return a;
|
|
2627
2654
|
};
|
|
2628
|
-
var __spreadProps$
|
|
2655
|
+
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
2629
2656
|
let messageInstance;
|
|
2630
2657
|
let defaultDuration = 3;
|
|
2631
2658
|
let defaultTop;
|
|
@@ -2732,7 +2759,7 @@ function notice(args) {
|
|
|
2732
2759
|
}
|
|
2733
2760
|
getRCNotificationInstance(args, ({ prefixCls, instance }) => {
|
|
2734
2761
|
instance.notice(
|
|
2735
|
-
getRCNoticeProps(__spreadProps$
|
|
2762
|
+
getRCNoticeProps(__spreadProps$j(__spreadValues$p({}, args), { key: target, onClose: callback }), prefixCls)
|
|
2736
2763
|
);
|
|
2737
2764
|
});
|
|
2738
2765
|
});
|
|
@@ -2761,7 +2788,7 @@ const api = {
|
|
|
2761
2788
|
function attachTypeApi(originalApi, type) {
|
|
2762
2789
|
originalApi[type] = (content, duration, onClose) => {
|
|
2763
2790
|
if (isArgsProps(content)) {
|
|
2764
|
-
return originalApi.open(__spreadProps$
|
|
2791
|
+
return originalApi.open(__spreadProps$j(__spreadValues$p({}, content), { type }));
|
|
2765
2792
|
}
|
|
2766
2793
|
if (typeof duration === "function") {
|
|
2767
2794
|
onClose = duration;
|
|
@@ -2775,25 +2802,25 @@ function attachTypeApi(originalApi, type) {
|
|
|
2775
2802
|
);
|
|
2776
2803
|
api.warn = api.warning;
|
|
2777
2804
|
|
|
2778
|
-
var __defProp$
|
|
2779
|
-
var __defProps$
|
|
2780
|
-
var __getOwnPropDescs$
|
|
2781
|
-
var __getOwnPropSymbols$
|
|
2782
|
-
var __hasOwnProp$
|
|
2783
|
-
var __propIsEnum$
|
|
2784
|
-
var __defNormalProp$
|
|
2785
|
-
var __spreadValues$
|
|
2805
|
+
var __defProp$o = Object.defineProperty;
|
|
2806
|
+
var __defProps$i = Object.defineProperties;
|
|
2807
|
+
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
2808
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
2809
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
2810
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
2811
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2812
|
+
var __spreadValues$o = (a, b) => {
|
|
2786
2813
|
for (var prop in b || (b = {}))
|
|
2787
|
-
if (__hasOwnProp$
|
|
2788
|
-
__defNormalProp$
|
|
2789
|
-
if (__getOwnPropSymbols$
|
|
2790
|
-
for (var prop of __getOwnPropSymbols$
|
|
2791
|
-
if (__propIsEnum$
|
|
2792
|
-
__defNormalProp$
|
|
2814
|
+
if (__hasOwnProp$o.call(b, prop))
|
|
2815
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
2816
|
+
if (__getOwnPropSymbols$o)
|
|
2817
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
|
2818
|
+
if (__propIsEnum$o.call(b, prop))
|
|
2819
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
2793
2820
|
}
|
|
2794
2821
|
return a;
|
|
2795
2822
|
};
|
|
2796
|
-
var __spreadProps$
|
|
2823
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
2797
2824
|
const initialChartState = {
|
|
2798
2825
|
pointers: {},
|
|
2799
2826
|
resourceData: {},
|
|
@@ -2803,8 +2830,8 @@ const chartReducer = (state = initialChartState, action) => {
|
|
|
2803
2830
|
switch (action.type) {
|
|
2804
2831
|
case "SET_POINTER" /* SET_POINTER */: {
|
|
2805
2832
|
const { uuid, left, text, visible, value } = action.payload;
|
|
2806
|
-
return __spreadProps$
|
|
2807
|
-
pointers: __spreadProps$
|
|
2833
|
+
return __spreadProps$i(__spreadValues$o({}, state), {
|
|
2834
|
+
pointers: __spreadProps$i(__spreadValues$o({}, state.pointers), {
|
|
2808
2835
|
[uuid]: {
|
|
2809
2836
|
left,
|
|
2810
2837
|
text,
|
|
@@ -2816,16 +2843,16 @@ const chartReducer = (state = initialChartState, action) => {
|
|
|
2816
2843
|
}
|
|
2817
2844
|
case "SET_RESOURCE_DATA" /* SET_RESOURCE_DATA */: {
|
|
2818
2845
|
const { uuid, data } = action.payload;
|
|
2819
|
-
return __spreadProps$
|
|
2820
|
-
resourceData: __spreadProps$
|
|
2846
|
+
return __spreadProps$i(__spreadValues$o({}, state), {
|
|
2847
|
+
resourceData: __spreadProps$i(__spreadValues$o({}, state.resourceData), {
|
|
2821
2848
|
[uuid]: data
|
|
2822
2849
|
})
|
|
2823
2850
|
});
|
|
2824
2851
|
}
|
|
2825
2852
|
case "SET_AVERAGE_DATA" /* SET_AVERAGE_DATA */: {
|
|
2826
2853
|
const { uuid, average } = action.payload;
|
|
2827
|
-
return __spreadProps$
|
|
2828
|
-
averageData: __spreadProps$
|
|
2854
|
+
return __spreadProps$i(__spreadValues$o({}, state), {
|
|
2855
|
+
averageData: __spreadProps$i(__spreadValues$o({}, state.averageData), {
|
|
2829
2856
|
[uuid]: average
|
|
2830
2857
|
})
|
|
2831
2858
|
});
|
|
@@ -2836,25 +2863,25 @@ const chartReducer = (state = initialChartState, action) => {
|
|
|
2836
2863
|
}
|
|
2837
2864
|
};
|
|
2838
2865
|
|
|
2839
|
-
var __defProp$
|
|
2840
|
-
var __defProps$
|
|
2841
|
-
var __getOwnPropDescs$
|
|
2842
|
-
var __getOwnPropSymbols$
|
|
2843
|
-
var __hasOwnProp$
|
|
2844
|
-
var __propIsEnum$
|
|
2845
|
-
var __defNormalProp$
|
|
2846
|
-
var __spreadValues$
|
|
2866
|
+
var __defProp$n = Object.defineProperty;
|
|
2867
|
+
var __defProps$h = Object.defineProperties;
|
|
2868
|
+
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
2869
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
2870
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
2871
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
2872
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2873
|
+
var __spreadValues$n = (a, b) => {
|
|
2847
2874
|
for (var prop in b || (b = {}))
|
|
2848
|
-
if (__hasOwnProp$
|
|
2849
|
-
__defNormalProp$
|
|
2850
|
-
if (__getOwnPropSymbols$
|
|
2851
|
-
for (var prop of __getOwnPropSymbols$
|
|
2852
|
-
if (__propIsEnum$
|
|
2853
|
-
__defNormalProp$
|
|
2875
|
+
if (__hasOwnProp$n.call(b, prop))
|
|
2876
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
2877
|
+
if (__getOwnPropSymbols$n)
|
|
2878
|
+
for (var prop of __getOwnPropSymbols$n(b)) {
|
|
2879
|
+
if (__propIsEnum$n.call(b, prop))
|
|
2880
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
2854
2881
|
}
|
|
2855
2882
|
return a;
|
|
2856
2883
|
};
|
|
2857
|
-
var __spreadProps$
|
|
2884
|
+
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
2858
2885
|
var ModalActions = /* @__PURE__ */ ((ModalActions2) => {
|
|
2859
2886
|
ModalActions2["PUSH_MODAL"] = "PUSH_MODAL";
|
|
2860
2887
|
ModalActions2["POP_MODAL"] = "POP_MODAL";
|
|
@@ -2875,22 +2902,22 @@ const modalReducer = (state = initialModalState, action) => {
|
|
|
2875
2902
|
)) {
|
|
2876
2903
|
return state;
|
|
2877
2904
|
}
|
|
2878
|
-
return __spreadProps$
|
|
2879
|
-
stack: state.stack.concat(__spreadProps$
|
|
2905
|
+
return __spreadProps$h(__spreadValues$n({}, state), {
|
|
2906
|
+
stack: state.stack.concat(__spreadProps$h(__spreadValues$n({}, action.payload), {
|
|
2880
2907
|
id: MODAL_ID++
|
|
2881
2908
|
}))
|
|
2882
2909
|
});
|
|
2883
2910
|
case "POP_MODAL" /* POP_MODAL */:
|
|
2884
|
-
return __spreadProps$
|
|
2911
|
+
return __spreadProps$h(__spreadValues$n({}, state), {
|
|
2885
2912
|
stack: state.stack.slice(0, -1)
|
|
2886
2913
|
});
|
|
2887
2914
|
case "REMOVE_MODAL" /* REMOVE_MODAL */:
|
|
2888
|
-
return __spreadProps$
|
|
2915
|
+
return __spreadProps$h(__spreadValues$n({}, state), {
|
|
2889
2916
|
closeId: 0,
|
|
2890
2917
|
stack: state.stack.filter((m) => m.id !== action.id)
|
|
2891
2918
|
});
|
|
2892
2919
|
case "CLOSE_MODAL" /* CLOSE_MODAL */:
|
|
2893
|
-
return __spreadProps$
|
|
2920
|
+
return __spreadProps$h(__spreadValues$n({}, state), {
|
|
2894
2921
|
closeId: action.id
|
|
2895
2922
|
});
|
|
2896
2923
|
default:
|
|
@@ -2941,6 +2968,115 @@ const KitStoreProvider = (props) => {
|
|
|
2941
2968
|
const useKitDispatch = createDispatchHook(ctx);
|
|
2942
2969
|
const useKitSelector = createSelectorHook(ctx);
|
|
2943
2970
|
|
|
2971
|
+
const StepsStyle = "sq6vos1";
|
|
2972
|
+
const HorizontalStyle = "hjtnwxg";
|
|
2973
|
+
const VerticalStyle = "v1p8siwu";
|
|
2974
|
+
const HorizontalStepContentStyle = "h1xo7yjb";
|
|
2975
|
+
const VerticalStepContentStyle = "v1f2f7cy";
|
|
2976
|
+
|
|
2977
|
+
var __defProp$m = Object.defineProperty;
|
|
2978
|
+
var __defProps$g = Object.defineProperties;
|
|
2979
|
+
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
2980
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
2981
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
2982
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
2983
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2984
|
+
var __spreadValues$m = (a, b) => {
|
|
2985
|
+
for (var prop in b || (b = {}))
|
|
2986
|
+
if (__hasOwnProp$m.call(b, prop))
|
|
2987
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
2988
|
+
if (__getOwnPropSymbols$m)
|
|
2989
|
+
for (var prop of __getOwnPropSymbols$m(b)) {
|
|
2990
|
+
if (__propIsEnum$m.call(b, prop))
|
|
2991
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
2992
|
+
}
|
|
2993
|
+
return a;
|
|
2994
|
+
};
|
|
2995
|
+
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
2996
|
+
var __objRest$9 = (source, exclude) => {
|
|
2997
|
+
var target = {};
|
|
2998
|
+
for (var prop in source)
|
|
2999
|
+
if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3000
|
+
target[prop] = source[prop];
|
|
3001
|
+
if (source != null && __getOwnPropSymbols$m)
|
|
3002
|
+
for (var prop of __getOwnPropSymbols$m(source)) {
|
|
3003
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
|
|
3004
|
+
target[prop] = source[prop];
|
|
3005
|
+
}
|
|
3006
|
+
return target;
|
|
3007
|
+
};
|
|
3008
|
+
const StepTitle = (props) => {
|
|
3009
|
+
const { current, step, index, isVerticalMode } = props;
|
|
3010
|
+
const textRef = useRef(null);
|
|
3011
|
+
const [tooltipEnable, setTooltipEnable] = useState({
|
|
3012
|
+
visible: false
|
|
3013
|
+
});
|
|
3014
|
+
useLayoutEffect(() => {
|
|
3015
|
+
if (textRef.current && textRef.current.offsetWidth < textRef.current.scrollWidth) {
|
|
3016
|
+
setTooltipEnable({});
|
|
3017
|
+
}
|
|
3018
|
+
}, [textRef]);
|
|
3019
|
+
return /* @__PURE__ */ React__default.createElement(Tooltip, __spreadProps$g(__spreadValues$m({}, tooltipEnable), { title: step.title }), /* @__PURE__ */ React__default.createElement(
|
|
3020
|
+
"div",
|
|
3021
|
+
{
|
|
3022
|
+
className: isVerticalMode ? VerticalStepContentStyle : HorizontalStepContentStyle
|
|
3023
|
+
},
|
|
3024
|
+
/* @__PURE__ */ React__default.createElement("span", { className: "step-item-prefix-container" }, index < current ? /* @__PURE__ */ React__default.createElement(CheckmarkDoneSuccessCorrect16SecondaryIcon, null) : index + 1),
|
|
3025
|
+
/* @__PURE__ */ React__default.createElement("span", { ref: textRef, className: "step-item-title" }, /* @__PURE__ */ React__default.createElement("span", { className: "step-item-title" }, step.title))
|
|
3026
|
+
));
|
|
3027
|
+
};
|
|
3028
|
+
const Steps = (props) => {
|
|
3029
|
+
const _a = props, {
|
|
3030
|
+
stepsConfig,
|
|
3031
|
+
direction,
|
|
3032
|
+
containerClassname,
|
|
3033
|
+
current = 0,
|
|
3034
|
+
disabled
|
|
3035
|
+
} = _a, stepsProps = __objRest$9(_a, [
|
|
3036
|
+
"stepsConfig",
|
|
3037
|
+
"direction",
|
|
3038
|
+
"containerClassname",
|
|
3039
|
+
"current",
|
|
3040
|
+
"disabled"
|
|
3041
|
+
]);
|
|
3042
|
+
const isVerticalMode = direction === "vertical";
|
|
3043
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
3044
|
+
"div",
|
|
3045
|
+
{
|
|
3046
|
+
className: cs(
|
|
3047
|
+
containerClassname,
|
|
3048
|
+
StepsStyle,
|
|
3049
|
+
isVerticalMode ? VerticalStyle : HorizontalStyle
|
|
3050
|
+
)
|
|
3051
|
+
},
|
|
3052
|
+
/* @__PURE__ */ React__default.createElement(
|
|
3053
|
+
Steps$1,
|
|
3054
|
+
__spreadProps$g(__spreadValues$m({}, stepsProps), {
|
|
3055
|
+
direction,
|
|
3056
|
+
current,
|
|
3057
|
+
type: "default"
|
|
3058
|
+
}),
|
|
3059
|
+
(stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */ React__default.createElement(
|
|
3060
|
+
Steps$1.Step,
|
|
3061
|
+
__spreadProps$g(__spreadValues$m({
|
|
3062
|
+
key: index
|
|
3063
|
+
}, step), {
|
|
3064
|
+
disabled: disabled || index > current,
|
|
3065
|
+
title: /* @__PURE__ */ React__default.createElement(
|
|
3066
|
+
StepTitle,
|
|
3067
|
+
{
|
|
3068
|
+
index,
|
|
3069
|
+
step,
|
|
3070
|
+
current,
|
|
3071
|
+
isVerticalMode
|
|
3072
|
+
}
|
|
3073
|
+
)
|
|
3074
|
+
})
|
|
3075
|
+
)) : props.children
|
|
3076
|
+
)
|
|
3077
|
+
);
|
|
3078
|
+
};
|
|
3079
|
+
|
|
2944
3080
|
var __defProp$l = Object.defineProperty;
|
|
2945
3081
|
var __defProps$f = Object.defineProperties;
|
|
2946
3082
|
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
@@ -3114,24 +3250,19 @@ const Modal = (props) => {
|
|
|
3114
3250
|
))) : footer)
|
|
3115
3251
|
}),
|
|
3116
3252
|
wizard && typeof wizard === "object" ? /* @__PURE__ */ React__default.createElement(WizardBody, null, /* @__PURE__ */ React__default.createElement("div", { className: "left" }, /* @__PURE__ */ React__default.createElement(
|
|
3117
|
-
Steps
|
|
3253
|
+
Steps,
|
|
3118
3254
|
{
|
|
3119
|
-
style: { minWidth: 192 },
|
|
3120
3255
|
current: wizard.step,
|
|
3121
3256
|
onChange: (value) => {
|
|
3122
3257
|
var _a2;
|
|
3123
3258
|
return (_a2 = wizard.onStepChange) == null ? void 0 : _a2.call(wizard, value);
|
|
3124
3259
|
},
|
|
3125
|
-
direction: "vertical"
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
title: /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, idx >= wizard.step ? /* @__PURE__ */ React__default.createElement("span", { className: "step-index" }, idx + 1) : /* @__PURE__ */ React__default.createElement(CheckOutlined, { className: "step-index" }), s.title),
|
|
3132
|
-
disabled: s.disabled || idx > wizard.step || wizard.disablePrevStep && idx !== wizard.step
|
|
3133
|
-
}
|
|
3134
|
-
))
|
|
3260
|
+
direction: "vertical",
|
|
3261
|
+
stepsConfig: wizard.steps.map((s) => ({
|
|
3262
|
+
title: s.title,
|
|
3263
|
+
disabled: s.disabled
|
|
3264
|
+
}))
|
|
3265
|
+
}
|
|
3135
3266
|
)), /* @__PURE__ */ React__default.createElement("div", { className: "middle" }, restProps.children, wizard.destroyOtherStep ? wizard.steps[wizard.step].render : stepsRef.current.map((step, index) => /* @__PURE__ */ React__default.createElement(
|
|
3136
3267
|
"div",
|
|
3137
3268
|
{
|
|
@@ -3605,113 +3736,88 @@ const Speed = ({
|
|
|
3605
3736
|
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}`));
|
|
3606
3737
|
};
|
|
3607
3738
|
|
|
3608
|
-
const StepsStyle = "sq6vos1";
|
|
3609
|
-
const HorizontalStyle = "hjtnwxg";
|
|
3610
|
-
const VerticalStyle = "v1p8siwu";
|
|
3611
|
-
const HorizontalStepContentStyle = "h1xo7yjb";
|
|
3612
|
-
const VerticalStepContentStyle = "v1f2f7cy";
|
|
3613
|
-
|
|
3614
3739
|
var __defProp$e = Object.defineProperty;
|
|
3615
3740
|
var __defProps$e = Object.defineProperties;
|
|
3616
3741
|
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
|
3617
3742
|
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
3618
3743
|
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
3619
3744
|
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
3620
|
-
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, {
|
|
3745
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, {
|
|
3746
|
+
enumerable: true,
|
|
3747
|
+
configurable: true,
|
|
3748
|
+
writable: true,
|
|
3749
|
+
value
|
|
3750
|
+
}) : obj[key] = value;
|
|
3621
3751
|
var __spreadValues$e = (a, b) => {
|
|
3622
|
-
for (var prop in b || (b = {}))
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
for (var prop of __getOwnPropSymbols$e(b)) {
|
|
3627
|
-
if (__propIsEnum$e.call(b, prop))
|
|
3628
|
-
__defNormalProp$e(a, prop, b[prop]);
|
|
3629
|
-
}
|
|
3752
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$e.call(b, prop)) __defNormalProp$e(a, prop, b[prop]);
|
|
3753
|
+
if (__getOwnPropSymbols$e) for (var prop of __getOwnPropSymbols$e(b)) {
|
|
3754
|
+
if (__propIsEnum$e.call(b, prop)) __defNormalProp$e(a, prop, b[prop]);
|
|
3755
|
+
}
|
|
3630
3756
|
return a;
|
|
3631
3757
|
};
|
|
3632
3758
|
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
|
3633
3759
|
var __objRest$5 = (source, exclude) => {
|
|
3634
3760
|
var target = {};
|
|
3635
|
-
for (var prop in source)
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
for (var prop of __getOwnPropSymbols$e(source)) {
|
|
3640
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
|
|
3641
|
-
target[prop] = source[prop];
|
|
3642
|
-
}
|
|
3761
|
+
for (var prop in source) if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3762
|
+
if (source != null && __getOwnPropSymbols$e) for (var prop of __getOwnPropSymbols$e(source)) {
|
|
3763
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop)) target[prop] = source[prop];
|
|
3764
|
+
}
|
|
3643
3765
|
return target;
|
|
3644
3766
|
};
|
|
3645
|
-
const
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3767
|
+
const PresetColors$3 = ["blue", "red", "yellow", "green", "gray"];
|
|
3768
|
+
const StatusCapsuleStyle = "s14dk8r1";
|
|
3769
|
+
const StatusCode = /*#__PURE__*/styled('i')({
|
|
3770
|
+
name: "StatusCode",
|
|
3771
|
+
class: "s1uupoto",
|
|
3772
|
+
propsAsIs: false
|
|
3773
|
+
});
|
|
3774
|
+
const StatusIcon = ({
|
|
3775
|
+
loading
|
|
3776
|
+
}) => {
|
|
3777
|
+
if (loading) {
|
|
3778
|
+
return /* @__PURE__ */React__default.createElement(Icon, {
|
|
3779
|
+
className: "ui-kit-status-capsule-icon ui-kit-status-capsule-icon-loading",
|
|
3780
|
+
iconWidth: 8,
|
|
3781
|
+
iconHeight: 8,
|
|
3782
|
+
isRotate: true,
|
|
3783
|
+
src: Loading8GradientBlueIcon
|
|
3784
|
+
});
|
|
3785
|
+
}
|
|
3786
|
+
return /* @__PURE__ */React__default.createElement(StatusCode, {
|
|
3787
|
+
className: "ui-kit-status-capsule-icon"
|
|
3650
3788
|
});
|
|
3651
|
-
useLayoutEffect(() => {
|
|
3652
|
-
if (textRef.current && textRef.current.offsetWidth < textRef.current.scrollWidth) {
|
|
3653
|
-
setTooltipEnable({});
|
|
3654
|
-
}
|
|
3655
|
-
}, [textRef]);
|
|
3656
|
-
return /* @__PURE__ */ React__default.createElement(Tooltip, __spreadProps$e(__spreadValues$e({}, tooltipEnable), { title: step.title }), /* @__PURE__ */ React__default.createElement(
|
|
3657
|
-
"div",
|
|
3658
|
-
{
|
|
3659
|
-
className: isVerticalMode ? VerticalStepContentStyle : HorizontalStepContentStyle
|
|
3660
|
-
},
|
|
3661
|
-
/* @__PURE__ */ React__default.createElement("span", { className: "step-item-prefix-container" }, index < current ? /* @__PURE__ */ React__default.createElement(CheckmarkDoneSuccessCorrect16SecondaryIcon, null) : index + 1),
|
|
3662
|
-
/* @__PURE__ */ React__default.createElement("span", { ref: textRef, className: "step-item-title" }, /* @__PURE__ */ React__default.createElement("span", { className: "step-item-title" }, step.title))
|
|
3663
|
-
));
|
|
3664
3789
|
};
|
|
3665
|
-
const
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
} = _a, stepsProps = __objRest$5(_a, [
|
|
3673
|
-
"stepsConfig",
|
|
3674
|
-
"direction",
|
|
3675
|
-
"containerClassname",
|
|
3676
|
-
"current",
|
|
3677
|
-
"disabled"
|
|
3678
|
-
]);
|
|
3679
|
-
const isVerticalMode = direction === "vertical";
|
|
3680
|
-
return /* @__PURE__ */ React__default.createElement(
|
|
3681
|
-
"div",
|
|
3790
|
+
const ColorMap = {
|
|
3791
|
+
success: "green",
|
|
3792
|
+
danger: "red",
|
|
3793
|
+
warning: "yellow"
|
|
3794
|
+
};
|
|
3795
|
+
const StatusCapsule = _a => {
|
|
3796
|
+
var _b = _a,
|
|
3682
3797
|
{
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
}),
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
step,
|
|
3707
|
-
current,
|
|
3708
|
-
isVerticalMode
|
|
3709
|
-
}
|
|
3710
|
-
)
|
|
3711
|
-
})
|
|
3712
|
-
)) : props.children
|
|
3713
|
-
)
|
|
3714
|
-
);
|
|
3798
|
+
color = "gray",
|
|
3799
|
+
className,
|
|
3800
|
+
loading,
|
|
3801
|
+
hoverable = false,
|
|
3802
|
+
children,
|
|
3803
|
+
offWhiteMode,
|
|
3804
|
+
number
|
|
3805
|
+
} = _b,
|
|
3806
|
+
props = __objRest$5(_b, ["color", "className", "loading", "hoverable", "children", "offWhiteMode", "number"]);
|
|
3807
|
+
const computedColor = ColorMap[color] || color;
|
|
3808
|
+
return /* @__PURE__ */React__default.createElement(Tag$1, __spreadProps$e(__spreadValues$e({}, props), {
|
|
3809
|
+
className: cs(className, StatusCapsuleStyle, Typo.Label.l4_regular, "ui-kit-status-capsule", {
|
|
3810
|
+
[`ant-tag-${computedColor}`]: PresetColors$3.includes(computedColor),
|
|
3811
|
+
"tag-hover": hoverable,
|
|
3812
|
+
"off-white": offWhiteMode
|
|
3813
|
+
}),
|
|
3814
|
+
closable: false,
|
|
3815
|
+
color: computedColor === "gray" ? void 0 : computedColor
|
|
3816
|
+
}), /* @__PURE__ */React__default.createElement(StatusIcon, {
|
|
3817
|
+
loading
|
|
3818
|
+
}), children, !!number && /* @__PURE__ */React__default.createElement("span", {
|
|
3819
|
+
className: "ui-kit-status-capsule-number"
|
|
3820
|
+
}, number));
|
|
3715
3821
|
};
|
|
3716
3822
|
|
|
3717
3823
|
var __defProp$d = Object.defineProperty;
|
|
@@ -5437,6 +5543,7 @@ function getAntdKit() {
|
|
|
5437
5543
|
datePickerRangePicker: DatePicker.RangePicker,
|
|
5438
5544
|
tableForm: TableForm,
|
|
5439
5545
|
token: Token,
|
|
5546
|
+
statusCapsule: StatusCapsule,
|
|
5440
5547
|
uploadDragger: Upload.Dragger,
|
|
5441
5548
|
calendar: Calendar,
|
|
5442
5549
|
timePicker: TimePicker$1,
|