@cloudtower/eagle 0.25.11 → 0.25.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.css +855 -855
- package/dist/esm/stats1.html +1 -1
- package/dist/style.css +448 -448
- package/dist/umd/index.js +275 -258
- package/dist/umd/stats1.html +1 -1
- package/package.json +5 -5
package/dist/umd/index.js
CHANGED
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.index = {}, global.antd, global.React, global.cs, global._, global.reactSvgUniqueId, global.parrot, global.reactI18next, global.core, global.react, global.moment, global.reactDom, global.reactIs, global.icons, global.AntdFormItem, global.CheckCircleFilled, global.CloseCircleFilled, global.ExclamationCircleFilled, global.InfoCircleFilled, global.LoadingOutlined, global.RCNotification, global.redux, global.reactRedux, global.iconsReact, global.reactBeautifulDnd, global.TimeZones, global.dayjs, null, global.enUS, global.zhCN));
|
|
5
5
|
})(this, (function (exports, antd, React, cs, _, reactSvgUniqueId, parrot, reactI18next, core, react, moment, reactDom, reactIs, icons, AntdFormItem, CheckCircleFilled, CloseCircleFilled, ExclamationCircleFilled, InfoCircleFilled, LoadingOutlined, RCNotification, redux, reactRedux, iconsReact, reactBeautifulDnd, TimeZones, dayjs, recharts, enUS, zhCN) { 'use strict';
|
|
6
6
|
|
|
7
|
-
function
|
|
7
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
|
+
|
|
9
|
+
function _interopNamespace(e) {
|
|
10
|
+
if (e && e.__esModule) return e;
|
|
8
11
|
var n = Object.create(null);
|
|
9
12
|
if (e) {
|
|
10
13
|
Object.keys(e).forEach(function (k) {
|
|
@@ -21,7 +24,21 @@
|
|
|
21
24
|
return Object.freeze(n);
|
|
22
25
|
}
|
|
23
26
|
|
|
24
|
-
var React__namespace = /*#__PURE__*/
|
|
27
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
28
|
+
var cs__default = /*#__PURE__*/_interopDefault(cs);
|
|
29
|
+
var ___default = /*#__PURE__*/_interopDefault(_);
|
|
30
|
+
var moment__default = /*#__PURE__*/_interopDefault(moment);
|
|
31
|
+
var AntdFormItem__default = /*#__PURE__*/_interopDefault(AntdFormItem);
|
|
32
|
+
var CheckCircleFilled__default = /*#__PURE__*/_interopDefault(CheckCircleFilled);
|
|
33
|
+
var CloseCircleFilled__default = /*#__PURE__*/_interopDefault(CloseCircleFilled);
|
|
34
|
+
var ExclamationCircleFilled__default = /*#__PURE__*/_interopDefault(ExclamationCircleFilled);
|
|
35
|
+
var InfoCircleFilled__default = /*#__PURE__*/_interopDefault(InfoCircleFilled);
|
|
36
|
+
var LoadingOutlined__default = /*#__PURE__*/_interopDefault(LoadingOutlined);
|
|
37
|
+
var RCNotification__default = /*#__PURE__*/_interopDefault(RCNotification);
|
|
38
|
+
var TimeZones__default = /*#__PURE__*/_interopDefault(TimeZones);
|
|
39
|
+
var dayjs__default = /*#__PURE__*/_interopDefault(dayjs);
|
|
40
|
+
var enUS__default = /*#__PURE__*/_interopDefault(enUS);
|
|
41
|
+
var zhCN__default = /*#__PURE__*/_interopDefault(zhCN);
|
|
25
42
|
|
|
26
43
|
const EMPTY_FUNCTION = () => {
|
|
27
44
|
};
|
|
@@ -268,7 +285,7 @@
|
|
|
268
285
|
}
|
|
269
286
|
return target;
|
|
270
287
|
};
|
|
271
|
-
const BaseIcon =
|
|
288
|
+
const BaseIcon = React__namespace.default.forwardRef(
|
|
272
289
|
(props, ref) => {
|
|
273
290
|
const _a = props, {
|
|
274
291
|
alt,
|
|
@@ -293,17 +310,17 @@
|
|
|
293
310
|
"suffixIconSrc",
|
|
294
311
|
"src"
|
|
295
312
|
]);
|
|
296
|
-
return /* @__PURE__ */
|
|
313
|
+
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
297
314
|
"span",
|
|
298
315
|
__spreadValues$G({
|
|
299
316
|
ref,
|
|
300
317
|
className,
|
|
301
|
-
style:
|
|
318
|
+
style: ___default.default.pickBy(__spreadValues$G({ cursor }, style))
|
|
302
319
|
}, HTMLSpanElementProps),
|
|
303
320
|
prefixNode,
|
|
304
|
-
/* @__PURE__ */
|
|
305
|
-
children && /* @__PURE__ */
|
|
306
|
-
SuffixSrc && /* @__PURE__ */
|
|
321
|
+
/* @__PURE__ */ React__namespace.default.createElement("span", { className: "icon-inner" }, typeof Src === "string" ? /* @__PURE__ */ React__namespace.default.createElement("img", { alt, src: Src, width, height }) : /* @__PURE__ */ React__namespace.default.createElement(reactSvgUniqueId.SVGUniqueID, null, Src({ width, height }))),
|
|
322
|
+
children && /* @__PURE__ */ React__namespace.default.createElement("span", { className: "icon-children" }, children),
|
|
323
|
+
SuffixSrc && /* @__PURE__ */ React__namespace.default.createElement("span", { className: "icon-inner suffix" }, typeof SuffixSrc === "string" ? /* @__PURE__ */ React__namespace.default.createElement("img", { alt, src: SuffixSrc, width, height }) : /* @__PURE__ */ React__namespace.default.createElement(reactSvgUniqueId.SVGUniqueID, null, SuffixSrc({ width, height })))
|
|
307
324
|
);
|
|
308
325
|
}
|
|
309
326
|
);
|
|
@@ -337,7 +354,7 @@
|
|
|
337
354
|
return target;
|
|
338
355
|
};
|
|
339
356
|
const IconWrapper = "i1mrf09m";
|
|
340
|
-
const Icon =
|
|
357
|
+
const Icon = React__namespace.default.forwardRef((props, ref) => {
|
|
341
358
|
const _a = props,
|
|
342
359
|
{
|
|
343
360
|
src,
|
|
@@ -384,14 +401,14 @@
|
|
|
384
401
|
}
|
|
385
402
|
return src2;
|
|
386
403
|
}, [active, hover, suffix]);
|
|
387
|
-
return /* @__PURE__ */
|
|
404
|
+
return /* @__PURE__ */React__namespace.default.createElement(BaseIcon, __spreadProps$x(__spreadValues$F({
|
|
388
405
|
src: _src,
|
|
389
|
-
className:
|
|
406
|
+
className: cs__default.default(IconWrapper, "icon-wrapper", className, isRotate && "is-rotate"),
|
|
390
407
|
suffixIconSrc,
|
|
391
408
|
height: iconHeight,
|
|
392
409
|
width: iconWidth,
|
|
393
410
|
prefixNode: prefix,
|
|
394
|
-
style:
|
|
411
|
+
style: ___default.default.pickBy(__spreadValues$F({
|
|
395
412
|
cursor
|
|
396
413
|
}, style))
|
|
397
414
|
}, restProps), {
|
|
@@ -463,12 +480,12 @@
|
|
|
463
480
|
"onClose",
|
|
464
481
|
"closeText"
|
|
465
482
|
]);
|
|
466
|
-
const _icon = /* @__PURE__ */
|
|
483
|
+
const _icon = /* @__PURE__ */ React__namespace.default.createElement(Icon, { alt: type, src: getAlertIcon(type) });
|
|
467
484
|
const _type = type === "normal" ? "info" : type;
|
|
468
|
-
return /* @__PURE__ */
|
|
485
|
+
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
469
486
|
antd.Alert,
|
|
470
487
|
__spreadProps$w(__spreadValues$E({}, props), {
|
|
471
|
-
className:
|
|
488
|
+
className: cs__default.default(type ? `alert-${type}` : "", className),
|
|
472
489
|
type: _type,
|
|
473
490
|
icon: icon || _icon,
|
|
474
491
|
showIcon,
|
|
@@ -492,7 +509,7 @@
|
|
|
492
509
|
if (architecture) {
|
|
493
510
|
text = t(`components.Architecture_${architecture}`);
|
|
494
511
|
}
|
|
495
|
-
return /* @__PURE__ */
|
|
512
|
+
return /* @__PURE__ */ React__namespace.default.createElement("span", null, text);
|
|
496
513
|
};
|
|
497
514
|
|
|
498
515
|
var __defProp$D = Object.defineProperty;
|
|
@@ -528,7 +545,7 @@
|
|
|
528
545
|
};
|
|
529
546
|
const Badge = (_a) => {
|
|
530
547
|
var _b = _a, { type = "error", className } = _b, props = __objRest$p(_b, ["type", "className"]);
|
|
531
|
-
return /* @__PURE__ */
|
|
548
|
+
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
532
549
|
antd.Badge,
|
|
533
550
|
__spreadProps$v(__spreadValues$D({
|
|
534
551
|
className: core.cx(`badge-${type}`, className)
|
|
@@ -545,14 +562,14 @@
|
|
|
545
562
|
return false;
|
|
546
563
|
}
|
|
547
564
|
|
|
548
|
-
const Empty = /* @__PURE__ */
|
|
565
|
+
const Empty = /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, "-");
|
|
549
566
|
|
|
550
567
|
const Bit = ({ rawValue, decimals, unitClassName, valueClassName }) => {
|
|
551
568
|
if (isEmpty(rawValue)) {
|
|
552
569
|
return Empty;
|
|
553
570
|
}
|
|
554
571
|
const { value, unit } = formatBits(rawValue, decimals);
|
|
555
|
-
return /* @__PURE__ */
|
|
572
|
+
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
|
|
556
573
|
};
|
|
557
574
|
|
|
558
575
|
const BitPerSeconds = ({
|
|
@@ -565,7 +582,7 @@
|
|
|
565
582
|
return Empty;
|
|
566
583
|
}
|
|
567
584
|
const { value, unit } = formatBitPerSecond(rawValue, decimals);
|
|
568
|
-
return /* @__PURE__ */
|
|
585
|
+
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
|
|
569
586
|
};
|
|
570
587
|
|
|
571
588
|
const Bps = ({ rawValue, decimals, valueClassName, unitClassName }) => {
|
|
@@ -573,7 +590,7 @@
|
|
|
573
590
|
return Empty;
|
|
574
591
|
}
|
|
575
592
|
const { value, unit } = formatBps(rawValue, decimals);
|
|
576
|
-
return /* @__PURE__ */
|
|
593
|
+
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
|
|
577
594
|
};
|
|
578
595
|
|
|
579
596
|
const d1_bold_title = "d6j0lbj";
|
|
@@ -706,9 +723,9 @@
|
|
|
706
723
|
const HoverableElement = (props) => {
|
|
707
724
|
const { className, hover = false, icon, hoverEle } = props;
|
|
708
725
|
if (hover) {
|
|
709
|
-
return hoverEle != null ?
|
|
726
|
+
return hoverEle != null ? React__namespace.default.cloneElement(hoverEle, { className }) : null;
|
|
710
727
|
}
|
|
711
|
-
return icon != null ?
|
|
728
|
+
return icon != null ? React__namespace.default.cloneElement(icon, { className }) : null;
|
|
712
729
|
};
|
|
713
730
|
|
|
714
731
|
var __defProp$C = Object.defineProperty;
|
|
@@ -741,7 +758,7 @@
|
|
|
741
758
|
const isAntdButtonTypes = type => {
|
|
742
759
|
return Boolean(type && ["default", "primary", "ghost", "dashed", "link", "text"].includes(type));
|
|
743
760
|
};
|
|
744
|
-
const Button =
|
|
761
|
+
const Button = React__namespace.default.forwardRef((props, ref) => {
|
|
745
762
|
const _a = props,
|
|
746
763
|
{
|
|
747
764
|
type,
|
|
@@ -759,9 +776,9 @@
|
|
|
759
776
|
const [status, setStatus] = React.useState("normal");
|
|
760
777
|
const hasIcon = prefixIcon || suffixIcon;
|
|
761
778
|
const hasHoverIcon = hoverPrefixIcon || hoverSuffixIcon;
|
|
762
|
-
return /* @__PURE__ */
|
|
779
|
+
return /* @__PURE__ */React__namespace.default.createElement(antd.Button, __spreadValues$C({
|
|
763
780
|
ref,
|
|
764
|
-
className:
|
|
781
|
+
className: cs__default.default(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}`, !children && children !== 0 && restProps.icon && "ant-btn-icon-only"),
|
|
765
782
|
type: isAntdButtonTypes(type) ? type : void 0,
|
|
766
783
|
onMouseEnter: e => {
|
|
767
784
|
onMouseEnter == null ? void 0 : onMouseEnter(e);
|
|
@@ -776,12 +793,12 @@
|
|
|
776
793
|
}
|
|
777
794
|
},
|
|
778
795
|
size
|
|
779
|
-
}, restProps), prefixIcon && /* @__PURE__ */
|
|
796
|
+
}, restProps), prefixIcon && /* @__PURE__ */React__namespace.default.createElement(HoverableElement, {
|
|
780
797
|
icon: prefixIcon,
|
|
781
798
|
hoverEle: hoverPrefixIcon,
|
|
782
799
|
hover: status === "hover",
|
|
783
800
|
className: "button-prefix-icon"
|
|
784
|
-
}), children, suffixIcon && /* @__PURE__ */
|
|
801
|
+
}), children, suffixIcon && /* @__PURE__ */React__namespace.default.createElement(HoverableElement, {
|
|
785
802
|
icon: suffixIcon,
|
|
786
803
|
hoverEle: hoverSuffixIcon,
|
|
787
804
|
hover: status === "hover",
|
|
@@ -838,9 +855,9 @@
|
|
|
838
855
|
const uniqueContainerClass = `kit-tooltip-${id.current}`;
|
|
839
856
|
const _children = React.useMemo(() => {
|
|
840
857
|
if (followMouse) {
|
|
841
|
-
const child =
|
|
842
|
-
return
|
|
843
|
-
className:
|
|
858
|
+
const child = React__namespace.default.isValidElement(children) ? children : /* @__PURE__ */ React__namespace.default.createElement("span", null, children);
|
|
859
|
+
return React__namespace.default.cloneElement(child, {
|
|
860
|
+
className: cs__default.default(child.props.className, uniqueContainerClass)
|
|
844
861
|
});
|
|
845
862
|
} else {
|
|
846
863
|
return children;
|
|
@@ -867,10 +884,10 @@
|
|
|
867
884
|
};
|
|
868
885
|
}
|
|
869
886
|
}, [followMouse, onmousemove, uniqueContainerClass]);
|
|
870
|
-
return /* @__PURE__ */
|
|
887
|
+
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
871
888
|
antd.Tooltip,
|
|
872
889
|
__spreadProps$u(__spreadValues$B({}, restProps), {
|
|
873
|
-
overlayClassName: followMouse ?
|
|
890
|
+
overlayClassName: followMouse ? cs__default.default(overlayClassName, uniquePopupClass) : overlayClassName,
|
|
874
891
|
children: _children,
|
|
875
892
|
overlayStyle: followMouse ? __spreadValues$B({
|
|
876
893
|
transform: "translate(-50%, -100%)",
|
|
@@ -911,7 +928,7 @@
|
|
|
911
928
|
class: "b15sn34c",
|
|
912
929
|
propsAsIs: false
|
|
913
930
|
});
|
|
914
|
-
const ButtonGroup =
|
|
931
|
+
const ButtonGroup = React__namespace.default.forwardRef((props, ref) => {
|
|
915
932
|
const {
|
|
916
933
|
className,
|
|
917
934
|
options,
|
|
@@ -920,7 +937,7 @@
|
|
|
920
937
|
if (!options.length) {
|
|
921
938
|
return null;
|
|
922
939
|
}
|
|
923
|
-
return /* @__PURE__ */
|
|
940
|
+
return /* @__PURE__ */React__namespace.default.createElement(ButtonGroupContainer, {
|
|
924
941
|
className,
|
|
925
942
|
ref
|
|
926
943
|
}, options.map((button, index) => {
|
|
@@ -938,14 +955,14 @@
|
|
|
938
955
|
} = _a,
|
|
939
956
|
buttonPropArgs = __objRest$m(_a, ["key", "icon", "type", "children", "danger", "ghost", "className", "hideTitle", "title"]);
|
|
940
957
|
if (hideTitle) {
|
|
941
|
-
return /* @__PURE__ */
|
|
958
|
+
return /* @__PURE__ */React__namespace.default.createElement(Tooltip, {
|
|
942
959
|
key: key || index,
|
|
943
960
|
overlay: title || children
|
|
944
|
-
}, buttonPropArgs.disabled ? /* @__PURE__ */
|
|
961
|
+
}, buttonPropArgs.disabled ? /* @__PURE__ */React__namespace.default.createElement("span", {
|
|
945
962
|
style: {
|
|
946
963
|
cursor: "not-allowed"
|
|
947
964
|
}
|
|
948
|
-
}, /* @__PURE__ */
|
|
965
|
+
}, /* @__PURE__ */React__namespace.default.createElement(Button, __spreadValues$A({
|
|
949
966
|
style: {
|
|
950
967
|
pointerEvents: "none"
|
|
951
968
|
},
|
|
@@ -955,7 +972,7 @@
|
|
|
955
972
|
ghost,
|
|
956
973
|
className: core.cx(ButtonStyle, className2),
|
|
957
974
|
prefixIcon: icon
|
|
958
|
-
}, buttonPropArgs))) : /* @__PURE__ */
|
|
975
|
+
}, buttonPropArgs))) : /* @__PURE__ */React__namespace.default.createElement(Button, __spreadValues$A({
|
|
959
976
|
type,
|
|
960
977
|
size,
|
|
961
978
|
danger,
|
|
@@ -964,7 +981,7 @@
|
|
|
964
981
|
prefixIcon: icon
|
|
965
982
|
}, buttonPropArgs)));
|
|
966
983
|
}
|
|
967
|
-
return /* @__PURE__ */
|
|
984
|
+
return /* @__PURE__ */React__namespace.default.createElement(Button, __spreadValues$A({
|
|
968
985
|
key: key || index,
|
|
969
986
|
type,
|
|
970
987
|
size,
|
|
@@ -972,7 +989,7 @@
|
|
|
972
989
|
ghost,
|
|
973
990
|
className: core.cx(ButtonStyle, className2),
|
|
974
991
|
prefixIcon: icon
|
|
975
|
-
}, buttonPropArgs), (title || children) && /* @__PURE__ */
|
|
992
|
+
}, buttonPropArgs), (title || children) && /* @__PURE__ */React__namespace.default.createElement("span", {
|
|
976
993
|
className: "button-group-item"
|
|
977
994
|
}, title || children));
|
|
978
995
|
}));
|
|
@@ -990,13 +1007,13 @@
|
|
|
990
1007
|
return Empty;
|
|
991
1008
|
}
|
|
992
1009
|
if (rawValue === -1) {
|
|
993
|
-
return /* @__PURE__ */
|
|
1010
|
+
return /* @__PURE__ */ React__namespace.default.createElement("span", null, t("common.calculation"));
|
|
994
1011
|
}
|
|
995
1012
|
const { value, unit } = formatBytes(rawValue, decimals);
|
|
996
1013
|
if (noUnitOnZero && value === 0) {
|
|
997
|
-
return /* @__PURE__ */
|
|
1014
|
+
return /* @__PURE__ */ React__namespace.default.createElement("span", { className: "value" }, value);
|
|
998
1015
|
}
|
|
999
|
-
return /* @__PURE__ */
|
|
1016
|
+
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
|
|
1000
1017
|
};
|
|
1001
1018
|
|
|
1002
1019
|
var __defProp$z = Object.defineProperty;
|
|
@@ -1037,13 +1054,13 @@
|
|
|
1037
1054
|
compact
|
|
1038
1055
|
} = _b,
|
|
1039
1056
|
props = __objRest$l(_b, ["className", "children", "description", "compact"]);
|
|
1040
|
-
return /* @__PURE__ */
|
|
1057
|
+
return /* @__PURE__ */React__namespace.default.createElement(antd.Checkbox, __spreadProps$t(__spreadValues$z({}, props), {
|
|
1041
1058
|
"data-test": props["data-test"] || props.value,
|
|
1042
|
-
className:
|
|
1043
|
-
}), children ? /* @__PURE__ */
|
|
1044
|
-
className:
|
|
1045
|
-
}, children), description ? /* @__PURE__ */
|
|
1046
|
-
className:
|
|
1059
|
+
className: cs__default.default(className, CheckboxStyle, compact && "compact")
|
|
1060
|
+
}), children ? /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement("div", {
|
|
1061
|
+
className: cs__default.default("main", Typo.Label.l2_regular)
|
|
1062
|
+
}, children), description ? /* @__PURE__ */React__namespace.default.createElement("div", {
|
|
1063
|
+
className: cs__default.default("sub", Typo.Label.l4_regular)
|
|
1047
1064
|
}, description) : null) : null);
|
|
1048
1065
|
};
|
|
1049
1066
|
|
|
@@ -1077,7 +1094,7 @@
|
|
|
1077
1094
|
};
|
|
1078
1095
|
const FieldsBoolean = (_a) => {
|
|
1079
1096
|
var _b = _a, { input, children } = _b, props = __objRest$k(_b, ["input", "children"]);
|
|
1080
|
-
return /* @__PURE__ */
|
|
1097
|
+
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(
|
|
1081
1098
|
Checkbox,
|
|
1082
1099
|
__spreadValues$y({
|
|
1083
1100
|
checked: Boolean(input.value),
|
|
@@ -1087,7 +1104,7 @@
|
|
|
1087
1104
|
));
|
|
1088
1105
|
};
|
|
1089
1106
|
|
|
1090
|
-
const FieldsDateTime = ({ input }) => /* @__PURE__ */
|
|
1107
|
+
const FieldsDateTime = ({ input }) => /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(
|
|
1091
1108
|
antd.DatePicker,
|
|
1092
1109
|
{
|
|
1093
1110
|
onFocus: () => {
|
|
@@ -1126,7 +1143,7 @@
|
|
|
1126
1143
|
"input"
|
|
1127
1144
|
]);
|
|
1128
1145
|
var _a2, _b2;
|
|
1129
|
-
return /* @__PURE__ */
|
|
1146
|
+
return /* @__PURE__ */ React__namespace.default.createElement("div", { className: "datatime-range" }, /* @__PURE__ */ React__namespace.default.createElement(
|
|
1130
1147
|
antd.DatePicker.RangePicker,
|
|
1131
1148
|
{
|
|
1132
1149
|
onFocus: () => {
|
|
@@ -1138,9 +1155,9 @@
|
|
|
1138
1155
|
return (_a3 = input.onBlur) == null ? void 0 : _a3.call(input);
|
|
1139
1156
|
},
|
|
1140
1157
|
showTime: true,
|
|
1141
|
-
defaultValue: (_a2 = input.value) == null ? void 0 : _a2.map((v) => v &&
|
|
1158
|
+
defaultValue: (_a2 = input.value) == null ? void 0 : _a2.map((v) => v && moment__default.default(v)),
|
|
1142
1159
|
onChange: input.onChange,
|
|
1143
|
-
value: (_b2 = input.value) == null ? void 0 : _b2.map((v) => v &&
|
|
1160
|
+
value: (_b2 = input.value) == null ? void 0 : _b2.map((v) => v && moment__default.default(v)),
|
|
1144
1161
|
format: props.format
|
|
1145
1162
|
}
|
|
1146
1163
|
));
|
|
@@ -1178,7 +1195,7 @@
|
|
|
1178
1195
|
const Loading = ({ fullView = true }) => {
|
|
1179
1196
|
const Wrapper = fullView ? FullView : React.Fragment;
|
|
1180
1197
|
const props = fullView ? { className: "loading-full-view" } : {};
|
|
1181
|
-
return /* @__PURE__ */
|
|
1198
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Wrapper, __spreadValues$x({}, props), /* @__PURE__ */ React__namespace.default.createElement("div", { className: "loading" }, /* @__PURE__ */ React__namespace.default.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React__namespace.default.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React__namespace.default.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React__namespace.default.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React__namespace.default.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React__namespace.default.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React__namespace.default.createElement("div", { className: "loading__sugar" })));
|
|
1182
1199
|
};
|
|
1183
1200
|
|
|
1184
1201
|
var __defProp$w = Object.defineProperty;
|
|
@@ -1259,7 +1276,7 @@
|
|
|
1259
1276
|
inputDom && (placeholder || item) && inputDom.setAttribute("data-test", String(placeholder || item.textContent));
|
|
1260
1277
|
}
|
|
1261
1278
|
}, [selectRef, placeholder]);
|
|
1262
|
-
return /* @__PURE__ */
|
|
1279
|
+
return /* @__PURE__ */React__namespace.default.createElement(antd.Select, __spreadValues$w(__spreadProps$s(__spreadValues$w({}, input), {
|
|
1263
1280
|
ref: selectRef,
|
|
1264
1281
|
size,
|
|
1265
1282
|
value: multiple ? input.value || [] : input.value || void 0,
|
|
@@ -1276,8 +1293,8 @@
|
|
|
1276
1293
|
return (_a3 = input.onBlur) == null ? void 0 : _a3.call(input);
|
|
1277
1294
|
},
|
|
1278
1295
|
mode: multiple ? "multiple" : void 0,
|
|
1279
|
-
className:
|
|
1280
|
-
dropdownClassName:
|
|
1296
|
+
className: cs__default.default(SelectStyle$1, "select", className, limitExceeded && "select-event-none", _danger ? "select-error" : "", typo),
|
|
1297
|
+
dropdownClassName: cs__default.default(dropdownClassName, limitExceeded && "display-none"),
|
|
1281
1298
|
showSearch: multiple ? void 0 : typeof showSearch === "undefined" ? Boolean(onSearch) : showSearch,
|
|
1282
1299
|
filterOption: onSearch === void 0 ? filterOption === void 0 ? (input2, option) => {
|
|
1283
1300
|
const label = option == null ? void 0 : option.label;
|
|
@@ -1286,7 +1303,7 @@
|
|
|
1286
1303
|
}
|
|
1287
1304
|
return label.toLowerCase().includes(input2.toLowerCase());
|
|
1288
1305
|
} : filterOption : false,
|
|
1289
|
-
onSearch: onSearch &&
|
|
1306
|
+
onSearch: onSearch && ___default.default.debounce(onSearch, 100),
|
|
1290
1307
|
onPopupScroll: e => {
|
|
1291
1308
|
onPopupScroll == null ? void 0 : onPopupScroll(e);
|
|
1292
1309
|
const el = e.currentTarget;
|
|
@@ -1294,11 +1311,11 @@
|
|
|
1294
1311
|
onScrollBottom == null ? void 0 : onScrollBottom();
|
|
1295
1312
|
}
|
|
1296
1313
|
},
|
|
1297
|
-
notFoundContent: loading ? /* @__PURE__ */
|
|
1298
|
-
dropdownRender: menu => /* @__PURE__ */
|
|
1314
|
+
notFoundContent: loading ? /* @__PURE__ */React__namespace.default.createElement(Loading, null) : notFoundContent,
|
|
1315
|
+
dropdownRender: menu => /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, error || menu),
|
|
1299
1316
|
loading,
|
|
1300
1317
|
placeholder
|
|
1301
|
-
}), restProps),
|
|
1318
|
+
}), restProps), React__namespace.default.Children.map(children, child => {
|
|
1302
1319
|
return reactIs.isElement(child) ? __spreadProps$s(__spreadValues$w({}, child), {
|
|
1303
1320
|
props: __spreadProps$s(__spreadValues$w({}, child.props), {
|
|
1304
1321
|
"data-test": child.props.value
|
|
@@ -1345,9 +1362,9 @@
|
|
|
1345
1362
|
"enumValues",
|
|
1346
1363
|
"emptyLabel"
|
|
1347
1364
|
]);
|
|
1348
|
-
return /* @__PURE__ */
|
|
1365
|
+
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(Select, __spreadValues$v({}, restProps), emptyLabel && /* @__PURE__ */ React__namespace.default.createElement(antd.Select.Option, { value: "" }, emptyLabel), enumValues.map((v) => {
|
|
1349
1366
|
const item = typeof v === "string" ? { value: v, text: v } : v;
|
|
1350
|
-
return /* @__PURE__ */
|
|
1367
|
+
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
1351
1368
|
antd.Select.Option,
|
|
1352
1369
|
{
|
|
1353
1370
|
key: item.value,
|
|
@@ -1425,13 +1442,13 @@
|
|
|
1425
1442
|
middle: Typo.Label.l3_regular,
|
|
1426
1443
|
small: Typo.Label.l4_regular
|
|
1427
1444
|
}[size];
|
|
1428
|
-
return /* @__PURE__ */
|
|
1445
|
+
return /* @__PURE__ */React__namespace.default.createElement(AntdInputNumberStyled, __spreadProps$r(__spreadValues$u({}, props), {
|
|
1429
1446
|
size,
|
|
1430
1447
|
controls,
|
|
1431
1448
|
"data-test": props.name,
|
|
1432
1449
|
suffix: controls ? "" : suffix,
|
|
1433
1450
|
prefix,
|
|
1434
|
-
className:
|
|
1451
|
+
className: cs__default.default(className, InputStyle, typo, error ? "error" : "")
|
|
1435
1452
|
}));
|
|
1436
1453
|
};
|
|
1437
1454
|
|
|
@@ -1478,7 +1495,7 @@
|
|
|
1478
1495
|
"onBlur",
|
|
1479
1496
|
"autoComplete"
|
|
1480
1497
|
]);
|
|
1481
|
-
return /* @__PURE__ */
|
|
1498
|
+
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(
|
|
1482
1499
|
InputNumber,
|
|
1483
1500
|
__spreadValues$t(__spreadProps$q(__spreadValues$t({}, input), {
|
|
1484
1501
|
onBlur: (e) => onBlur ? onBlur(input, e) : input.onBlur(e),
|
|
@@ -1534,12 +1551,12 @@
|
|
|
1534
1551
|
middle: Typo.Label.l3_regular,
|
|
1535
1552
|
small: Typo.Label.l4_regular
|
|
1536
1553
|
}[size];
|
|
1537
|
-
return /* @__PURE__ */
|
|
1554
|
+
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
1538
1555
|
antd.Input,
|
|
1539
1556
|
__spreadProps$p(__spreadValues$s({}, props), {
|
|
1540
1557
|
size,
|
|
1541
1558
|
"data-test": props.name,
|
|
1542
|
-
className:
|
|
1559
|
+
className: cs__default.default(className, InputStyle, typo, error ? "error" : "")
|
|
1543
1560
|
})
|
|
1544
1561
|
);
|
|
1545
1562
|
};
|
|
@@ -1589,7 +1606,7 @@
|
|
|
1589
1606
|
"autoComplete",
|
|
1590
1607
|
"supportNegativeValue"
|
|
1591
1608
|
]);
|
|
1592
|
-
return /* @__PURE__ */
|
|
1609
|
+
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(
|
|
1593
1610
|
Input,
|
|
1594
1611
|
__spreadValues$r(__spreadProps$o(__spreadValues$r({}, input), {
|
|
1595
1612
|
onChange: (e) => {
|
|
@@ -1694,7 +1711,7 @@
|
|
|
1694
1711
|
middle: Typo.Label.l3_regular,
|
|
1695
1712
|
small: Typo.Label.l4_regular
|
|
1696
1713
|
}[size];
|
|
1697
|
-
return /* @__PURE__ */
|
|
1714
|
+
return /* @__PURE__ */React__namespace.default.createElement(AntdIntStyled, __spreadProps$n(__spreadValues$q({}, props), {
|
|
1698
1715
|
size,
|
|
1699
1716
|
formatter: formatterInteger,
|
|
1700
1717
|
parser: formatterInteger,
|
|
@@ -1704,7 +1721,7 @@
|
|
|
1704
1721
|
"data-test": props.name,
|
|
1705
1722
|
suffix: controls ? "" : suffix,
|
|
1706
1723
|
prefix,
|
|
1707
|
-
className:
|
|
1724
|
+
className: cs__default.default(className, InputStyle, typo, error ? "error" : "")
|
|
1708
1725
|
}));
|
|
1709
1726
|
};
|
|
1710
1727
|
|
|
@@ -1749,7 +1766,7 @@
|
|
|
1749
1766
|
"input",
|
|
1750
1767
|
"onBlur"
|
|
1751
1768
|
]);
|
|
1752
|
-
return /* @__PURE__ */
|
|
1769
|
+
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(
|
|
1753
1770
|
InputInteger,
|
|
1754
1771
|
__spreadProps$m(__spreadValues$p(__spreadValues$p({}, props), input), {
|
|
1755
1772
|
onBlur: (e) => onBlur ? onBlur(input, e) : input.onBlur(e),
|
|
@@ -1778,7 +1795,7 @@
|
|
|
1778
1795
|
const checkForChanges = () => {
|
|
1779
1796
|
const nextOffsetWidth = data.els.map((el) => el.offsetWidth);
|
|
1780
1797
|
const nextOffsetHeight = data.els.map((el) => el.offsetWidth);
|
|
1781
|
-
if (!
|
|
1798
|
+
if (!___default.default.isEqual(nextOffsetWidth, data.offsetWidth) || ___default.default.isEqual(nextOffsetHeight, data.offsetHeight)) {
|
|
1782
1799
|
data.offsetWidth = nextOffsetWidth;
|
|
1783
1800
|
data.offsetHeight = nextOffsetHeight;
|
|
1784
1801
|
data.callback();
|
|
@@ -1856,14 +1873,14 @@
|
|
|
1856
1873
|
return;
|
|
1857
1874
|
const nextSizes = getAllSize(classMapRef.current);
|
|
1858
1875
|
if (key) {
|
|
1859
|
-
if (!elementsSizes[key] || !
|
|
1860
|
-
|
|
1861
|
-
|
|
1876
|
+
if (!elementsSizes[key] || !___default.default.isEqual(
|
|
1877
|
+
___default.default.omit(elementsSizes[key], "thead"),
|
|
1878
|
+
___default.default.omit(nextSizes, "thead")
|
|
1862
1879
|
)) {
|
|
1863
1880
|
elementsSizes[key] = nextSizes;
|
|
1864
1881
|
setSizes(nextSizes);
|
|
1865
1882
|
}
|
|
1866
|
-
} else if (!
|
|
1883
|
+
} else if (!___default.default.isEqual(preSizes.current, nextSizes)) {
|
|
1867
1884
|
preSizes.current = nextSizes;
|
|
1868
1885
|
setSizes(nextSizes);
|
|
1869
1886
|
}
|
|
@@ -1909,10 +1926,10 @@
|
|
|
1909
1926
|
}
|
|
1910
1927
|
}, [handleOverflow, init]);
|
|
1911
1928
|
const showOverflow = !init && isOverflow;
|
|
1912
|
-
return /* @__PURE__ */
|
|
1913
|
-
className:
|
|
1929
|
+
return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement("span", {
|
|
1930
|
+
className: cs__default.default(showOverflow && HiddenStyle, OverflowWrapper),
|
|
1914
1931
|
ref: wrapperRef
|
|
1915
|
-
}, children), showOverflow && /* @__PURE__ */
|
|
1932
|
+
}, children), showOverflow && /* @__PURE__ */React__namespace.default.createElement("span", null, overflow));
|
|
1916
1933
|
};
|
|
1917
1934
|
|
|
1918
1935
|
var __defProp$o = Object.defineProperty;
|
|
@@ -1975,10 +1992,10 @@
|
|
|
1975
1992
|
"focusIndicator"
|
|
1976
1993
|
]);
|
|
1977
1994
|
if (tags == null ? void 0 : tags.length) {
|
|
1978
|
-
return /* @__PURE__ */
|
|
1995
|
+
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
1979
1996
|
"div",
|
|
1980
1997
|
{
|
|
1981
|
-
className:
|
|
1998
|
+
className: cs__default.default(
|
|
1982
1999
|
className,
|
|
1983
2000
|
KitInputStyle,
|
|
1984
2001
|
"input-tags",
|
|
@@ -1986,14 +2003,14 @@
|
|
|
1986
2003
|
),
|
|
1987
2004
|
onClick
|
|
1988
2005
|
},
|
|
1989
|
-
/* @__PURE__ */
|
|
1990
|
-
/* @__PURE__ */
|
|
2006
|
+
/* @__PURE__ */ React__namespace.default.createElement("div", { className: "input-tags-inner" }, /* @__PURE__ */ React__namespace.default.createElement(Overflow, { overflow: tagsOverflow }, /* @__PURE__ */ React__namespace.default.createElement("span", { className: "tags-overflow-auto" }, tags.map((tag) => /* @__PURE__ */ React__namespace.default.createElement(InputTagItem, { key: tag }, tag))))),
|
|
2007
|
+
/* @__PURE__ */ React__namespace.default.createElement("span", { className: "input-tag-suffix" }, allowClear && /* @__PURE__ */ React__namespace.default.createElement(icons.CloseCircleFilled, { onClick: onTagsAllowClearClick }))
|
|
1991
2008
|
);
|
|
1992
2009
|
}
|
|
1993
|
-
return /* @__PURE__ */
|
|
2010
|
+
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(
|
|
1994
2011
|
Input,
|
|
1995
2012
|
__spreadProps$l(__spreadValues$o(__spreadProps$l(__spreadValues$o({
|
|
1996
|
-
className:
|
|
2013
|
+
className: cs__default.default(
|
|
1997
2014
|
className,
|
|
1998
2015
|
KitInputStyle,
|
|
1999
2016
|
focusIndicator && "has-focus-indicator"
|
|
@@ -2003,7 +2020,7 @@
|
|
|
2003
2020
|
size,
|
|
2004
2021
|
allowClear,
|
|
2005
2022
|
onClick,
|
|
2006
|
-
prefix: focusIndicator ? /* @__PURE__ */
|
|
2023
|
+
prefix: focusIndicator ? /* @__PURE__ */ React__namespace.default.createElement(Icon, { alt: "focusIndicator16Blue", src: img$4 }) : void 0,
|
|
2007
2024
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
2008
2025
|
}), props), {
|
|
2009
2026
|
onChange: (e) => {
|
|
@@ -2063,10 +2080,10 @@
|
|
|
2063
2080
|
middle: Typo.Label.l3_regular,
|
|
2064
2081
|
small: Typo.Label.l4_regular
|
|
2065
2082
|
}[size];
|
|
2066
|
-
return /* @__PURE__ */
|
|
2083
|
+
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
2067
2084
|
antd.Input.TextArea,
|
|
2068
2085
|
__spreadProps$k(__spreadValues$n({}, props), {
|
|
2069
|
-
className:
|
|
2086
|
+
className: cs__default.default(
|
|
2070
2087
|
className,
|
|
2071
2088
|
InputStyle,
|
|
2072
2089
|
typo,
|
|
@@ -2120,7 +2137,7 @@
|
|
|
2120
2137
|
"meta",
|
|
2121
2138
|
"onFocusChangeHeight"
|
|
2122
2139
|
]);
|
|
2123
|
-
return /* @__PURE__ */
|
|
2140
|
+
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(
|
|
2124
2141
|
TextArea,
|
|
2125
2142
|
__spreadProps$j(__spreadValues$m(__spreadValues$m({}, input), props), {
|
|
2126
2143
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError),
|
|
@@ -2182,12 +2199,12 @@
|
|
|
2182
2199
|
middle: Typo.Label.l3_regular,
|
|
2183
2200
|
small: Typo.Label.l4_regular
|
|
2184
2201
|
}[size];
|
|
2185
|
-
return /* @__PURE__ */
|
|
2202
|
+
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
2186
2203
|
antd.TimePicker,
|
|
2187
2204
|
__spreadProps$i(__spreadValues$l({}, props), {
|
|
2188
2205
|
size,
|
|
2189
2206
|
"data-test": props.name,
|
|
2190
|
-
className:
|
|
2207
|
+
className: cs__default.default(className, InputStyle, typo, error ? "error" : "")
|
|
2191
2208
|
})
|
|
2192
2209
|
);
|
|
2193
2210
|
};
|
|
@@ -2231,7 +2248,7 @@
|
|
|
2231
2248
|
"input",
|
|
2232
2249
|
"meta"
|
|
2233
2250
|
]);
|
|
2234
|
-
return /* @__PURE__ */
|
|
2251
|
+
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(
|
|
2235
2252
|
TimePicker,
|
|
2236
2253
|
__spreadValues$k(__spreadProps$h(__spreadValues$k({}, input), {
|
|
2237
2254
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
@@ -2274,8 +2291,8 @@
|
|
|
2274
2291
|
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
2275
2292
|
const FormItemStyle$1 = "f1p9ti6d";
|
|
2276
2293
|
const FormItem$1 = props => {
|
|
2277
|
-
return /* @__PURE__ */
|
|
2278
|
-
className:
|
|
2294
|
+
return /* @__PURE__ */React__namespace.default.createElement(AntdFormItem__default.default, __spreadProps$g(__spreadValues$j({}, props), {
|
|
2295
|
+
className: cs__default.default(FormItemStyle$1, props.className)
|
|
2279
2296
|
}));
|
|
2280
2297
|
};
|
|
2281
2298
|
|
|
@@ -2292,7 +2309,7 @@
|
|
|
2292
2309
|
return Empty;
|
|
2293
2310
|
}
|
|
2294
2311
|
const { value, unit } = formatFrequency(rawValue, decimals);
|
|
2295
|
-
return /* @__PURE__ */
|
|
2312
|
+
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
|
|
2296
2313
|
};
|
|
2297
2314
|
|
|
2298
2315
|
const _exp = () => antd.Input.Group;
|
|
@@ -2365,7 +2382,7 @@
|
|
|
2365
2382
|
});
|
|
2366
2383
|
return;
|
|
2367
2384
|
}
|
|
2368
|
-
|
|
2385
|
+
RCNotification__default.default.newInstance(
|
|
2369
2386
|
{
|
|
2370
2387
|
prefixCls,
|
|
2371
2388
|
transitionName,
|
|
@@ -2390,16 +2407,16 @@
|
|
|
2390
2407
|
);
|
|
2391
2408
|
}
|
|
2392
2409
|
const typeToIcon = {
|
|
2393
|
-
info:
|
|
2394
|
-
success:
|
|
2395
|
-
error:
|
|
2396
|
-
warning:
|
|
2397
|
-
loading:
|
|
2410
|
+
info: InfoCircleFilled__default.default,
|
|
2411
|
+
success: CheckCircleFilled__default.default,
|
|
2412
|
+
error: CloseCircleFilled__default.default,
|
|
2413
|
+
warning: ExclamationCircleFilled__default.default,
|
|
2414
|
+
loading: LoadingOutlined__default.default
|
|
2398
2415
|
};
|
|
2399
2416
|
function getRCNoticeProps(args, prefixCls) {
|
|
2400
2417
|
const duration = args.duration !== void 0 ? args.duration : defaultDuration;
|
|
2401
2418
|
const IconComponent = args.type != null ? typeToIcon[args.type] : void 0;
|
|
2402
|
-
const messageClass =
|
|
2419
|
+
const messageClass = cs__default.default(`${prefixCls}-custom-content`, {
|
|
2403
2420
|
[`${prefixCls}-${args.type}`]: args.type,
|
|
2404
2421
|
[`${prefixCls}-rtl`]: rtl === true
|
|
2405
2422
|
});
|
|
@@ -2627,7 +2644,7 @@
|
|
|
2627
2644
|
});
|
|
2628
2645
|
const KitStoreProvider = (props) => {
|
|
2629
2646
|
const { children } = props;
|
|
2630
|
-
return /* @__PURE__ */
|
|
2647
|
+
return /* @__PURE__ */ React__namespace.default.createElement(reactRedux.Provider, { context: ctx, store: UIKitStore }, children);
|
|
2631
2648
|
};
|
|
2632
2649
|
const useKitDispatch = reactRedux.createDispatchHook(ctx);
|
|
2633
2650
|
const useKitSelector = reactRedux.createSelectorHook(ctx);
|
|
@@ -2723,11 +2740,11 @@
|
|
|
2723
2740
|
return text;
|
|
2724
2741
|
}, [okButtonProps == null ? void 0 : okButtonProps.children, okText, t, wizard]);
|
|
2725
2742
|
const prevText = React.useMemo(() => {
|
|
2726
|
-
let text = /* @__PURE__ */
|
|
2743
|
+
let text = /* @__PURE__ */ React__namespace.default.createElement("span", null, "< ", t("common.prev_step"));
|
|
2727
2744
|
if (wizard && typeof wizard === "object" && wizard.steps[wizard.step]) {
|
|
2728
2745
|
const { step, steps } = wizard;
|
|
2729
2746
|
if (typeof steps[step].prevText === "string") {
|
|
2730
|
-
text = /* @__PURE__ */
|
|
2747
|
+
text = /* @__PURE__ */ React__namespace.default.createElement("span", null, "< ", steps[step].prevText);
|
|
2731
2748
|
} else if (steps[step].prevText !== void 0) {
|
|
2732
2749
|
text = steps[step].prevText;
|
|
2733
2750
|
}
|
|
@@ -2738,11 +2755,11 @@
|
|
|
2738
2755
|
if (wizard && typeof wizard === "object" && !wizard.destroyOtherStep && wizard.steps[wizard.step]) {
|
|
2739
2756
|
stepsRef.current[wizard.step] = wizard.steps[wizard.step].render;
|
|
2740
2757
|
}
|
|
2741
|
-
return /* @__PURE__ */
|
|
2758
|
+
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
2742
2759
|
antd.Modal,
|
|
2743
2760
|
__spreadProps$c(__spreadValues$f({
|
|
2744
2761
|
maskClosable,
|
|
2745
|
-
className:
|
|
2762
|
+
className: cs__default.default(
|
|
2746
2763
|
className,
|
|
2747
2764
|
fullscreen && "fullscreen",
|
|
2748
2765
|
fullscreen && wizard && "wizard",
|
|
@@ -2753,7 +2770,7 @@
|
|
|
2753
2770
|
onCancel == null ? void 0 : onCancel(e);
|
|
2754
2771
|
transitionClass.current = fullscreen ? "" : "modal-zoom";
|
|
2755
2772
|
},
|
|
2756
|
-
closeIcon: /* @__PURE__ */
|
|
2773
|
+
closeIcon: /* @__PURE__ */ React__namespace.default.createElement(icons.CloseCircleFilled, null),
|
|
2757
2774
|
destroyOnClose: true,
|
|
2758
2775
|
focusTriggerAfterClose: false,
|
|
2759
2776
|
transitionName: transitionClass.current
|
|
@@ -2763,7 +2780,7 @@
|
|
|
2763
2780
|
dispatch({ type: ModalActions.REMOVE_MODAL, id: idRef.current });
|
|
2764
2781
|
},
|
|
2765
2782
|
visible: idRef.current !== id,
|
|
2766
|
-
footer: /* @__PURE__ */
|
|
2783
|
+
footer: /* @__PURE__ */ React__namespace.default.createElement("div", { className: "footer-content" }, footer === void 0 ? /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement("div", { className: "modal-footer-left" }, wizard && typeof wizard === "object" && !wizard.disablePrevStep && wizard.step !== 0 && /* @__PURE__ */ React__namespace.default.createElement(
|
|
2767
2784
|
"span",
|
|
2768
2785
|
{
|
|
2769
2786
|
className: "prev-step",
|
|
@@ -2773,7 +2790,7 @@
|
|
|
2773
2790
|
}
|
|
2774
2791
|
},
|
|
2775
2792
|
prevText
|
|
2776
|
-
), error && /* @__PURE__ */
|
|
2793
|
+
), error && /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: "modal-error" }, error))), /* @__PURE__ */ React__namespace.default.createElement("div", { className: "modal-footer-btn-group" }, showCancel && /* @__PURE__ */ React__namespace.default.createElement(
|
|
2777
2794
|
Button,
|
|
2778
2795
|
__spreadValues$f({
|
|
2779
2796
|
type: "quiet",
|
|
@@ -2784,10 +2801,10 @@
|
|
|
2784
2801
|
onCancel == null ? void 0 : onCancel(e);
|
|
2785
2802
|
transitionClass.current = fullscreen ? "" : "modal-zoom";
|
|
2786
2803
|
},
|
|
2787
|
-
className:
|
|
2804
|
+
className: cs__default.default(cancelButtonProps == null ? void 0 : cancelButtonProps.className)
|
|
2788
2805
|
}, cancelButtonProps),
|
|
2789
2806
|
cancelText
|
|
2790
|
-
), showOk && /* @__PURE__ */
|
|
2807
|
+
), showOk && /* @__PURE__ */ React__namespace.default.createElement(
|
|
2791
2808
|
Button,
|
|
2792
2809
|
__spreadValues$f({
|
|
2793
2810
|
onClick: (e) => {
|
|
@@ -2804,7 +2821,7 @@
|
|
|
2804
2821
|
confirmText
|
|
2805
2822
|
))) : footer)
|
|
2806
2823
|
}),
|
|
2807
|
-
wizard && typeof wizard === "object" ? /* @__PURE__ */
|
|
2824
|
+
wizard && typeof wizard === "object" ? /* @__PURE__ */ React__namespace.default.createElement(WizardBody, null, /* @__PURE__ */ React__namespace.default.createElement("div", { className: "left" }, /* @__PURE__ */ React__namespace.default.createElement(
|
|
2808
2825
|
antd.Steps,
|
|
2809
2826
|
{
|
|
2810
2827
|
style: { minWidth: 192 },
|
|
@@ -2815,15 +2832,15 @@
|
|
|
2815
2832
|
},
|
|
2816
2833
|
direction: "vertical"
|
|
2817
2834
|
},
|
|
2818
|
-
wizard.steps.map((s, idx) => /* @__PURE__ */
|
|
2835
|
+
wizard.steps.map((s, idx) => /* @__PURE__ */ React__namespace.default.createElement(
|
|
2819
2836
|
antd.Steps.Step,
|
|
2820
2837
|
{
|
|
2821
2838
|
key: idx,
|
|
2822
|
-
title: /* @__PURE__ */
|
|
2839
|
+
title: /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, idx >= wizard.step ? /* @__PURE__ */ React__namespace.default.createElement("span", { className: "step-index" }, idx + 1) : /* @__PURE__ */ React__namespace.default.createElement(icons.CheckOutlined, { className: "step-index" }), s.title),
|
|
2823
2840
|
disabled: s.disabled || idx > wizard.step || wizard.disablePrevStep && idx !== wizard.step
|
|
2824
2841
|
}
|
|
2825
2842
|
))
|
|
2826
|
-
)), /* @__PURE__ */
|
|
2843
|
+
)), /* @__PURE__ */ React__namespace.default.createElement("div", { className: "middle" }, restProps.children, wizard.destroyOtherStep ? wizard.steps[wizard.step].render : stepsRef.current.map((step, index) => /* @__PURE__ */ React__namespace.default.createElement(
|
|
2827
2844
|
"div",
|
|
2828
2845
|
{
|
|
2829
2846
|
key: index,
|
|
@@ -2832,7 +2849,7 @@
|
|
|
2832
2849
|
}
|
|
2833
2850
|
},
|
|
2834
2851
|
step
|
|
2835
|
-
))), wizard.right && /* @__PURE__ */
|
|
2852
|
+
))), wizard.right && /* @__PURE__ */ React__namespace.default.createElement("div", { className: "right" }, wizard.right)) : restProps.children
|
|
2836
2853
|
);
|
|
2837
2854
|
};
|
|
2838
2855
|
|
|
@@ -2884,16 +2901,16 @@
|
|
|
2884
2901
|
total: count
|
|
2885
2902
|
});
|
|
2886
2903
|
if (selectorVisible) {
|
|
2887
|
-
return /* @__PURE__ */
|
|
2904
|
+
return /* @__PURE__ */React__namespace.default.createElement(antd.Dropdown, {
|
|
2888
2905
|
placement: "topLeft",
|
|
2889
2906
|
overlayClassName: DropdownOverlayStyle,
|
|
2890
|
-
overlay: /* @__PURE__ */
|
|
2907
|
+
overlay: /* @__PURE__ */React__namespace.default.createElement(antd.Menu, null, /* @__PURE__ */React__namespace.default.createElement(antd.Menu.ItemGroup, {
|
|
2891
2908
|
title: t("components.push_to")
|
|
2892
|
-
}, selectOptions.map(option => /* @__PURE__ */
|
|
2909
|
+
}, selectOptions.map(option => /* @__PURE__ */React__namespace.default.createElement(antd.Menu.Item, {
|
|
2893
2910
|
key: option.value,
|
|
2894
2911
|
onClick: () => onChange(option.value)
|
|
2895
2912
|
}, option.text))))
|
|
2896
|
-
}, /* @__PURE__ */
|
|
2913
|
+
}, /* @__PURE__ */React__namespace.default.createElement(Icon, {
|
|
2897
2914
|
alt: "arrowChevronDownSmall16Secondary",
|
|
2898
2915
|
className: "pagination-left dropdown-trigger",
|
|
2899
2916
|
src: img$8,
|
|
@@ -2901,22 +2918,22 @@
|
|
|
2901
2918
|
prefix: content
|
|
2902
2919
|
}));
|
|
2903
2920
|
}
|
|
2904
|
-
return /* @__PURE__ */
|
|
2921
|
+
return /* @__PURE__ */React__namespace.default.createElement("span", {
|
|
2905
2922
|
className: "pagination-left"
|
|
2906
2923
|
}, content);
|
|
2907
2924
|
};
|
|
2908
2925
|
if (count === 0) {
|
|
2909
2926
|
return null;
|
|
2910
2927
|
}
|
|
2911
|
-
return /* @__PURE__ */
|
|
2912
|
-
className:
|
|
2913
|
-
}, renderLeft(), /* @__PURE__ */
|
|
2928
|
+
return /* @__PURE__ */React__namespace.default.createElement("div", {
|
|
2929
|
+
className: cs__default.default(PaginationStyle, "pagination-wrapper", className, selectorVisible && "has-selector")
|
|
2930
|
+
}, renderLeft(), /* @__PURE__ */React__namespace.default.createElement("span", {
|
|
2914
2931
|
className: "pagination-right"
|
|
2915
|
-
}, current > 1 && /* @__PURE__ */
|
|
2932
|
+
}, current > 1 && /* @__PURE__ */React__namespace.default.createElement(Button, {
|
|
2916
2933
|
className: "prev-btn",
|
|
2917
2934
|
type: "quiet",
|
|
2918
2935
|
size: "small",
|
|
2919
|
-
prefixIcon: /* @__PURE__ */
|
|
2936
|
+
prefixIcon: /* @__PURE__ */React__namespace.default.createElement(Icon, {
|
|
2920
2937
|
alt: "arrowChevronLeftSmall16BoldBlue",
|
|
2921
2938
|
src: img$7
|
|
2922
2939
|
}),
|
|
@@ -2925,11 +2942,11 @@
|
|
|
2925
2942
|
}
|
|
2926
2943
|
}, t("components.previous_items", {
|
|
2927
2944
|
size
|
|
2928
|
-
})), current * size < count && /* @__PURE__ */
|
|
2945
|
+
})), current * size < count && /* @__PURE__ */React__namespace.default.createElement(Button, {
|
|
2929
2946
|
className: "next-btn",
|
|
2930
2947
|
type: "quiet",
|
|
2931
2948
|
size: "small",
|
|
2932
|
-
prefixIcon: /* @__PURE__ */
|
|
2949
|
+
prefixIcon: /* @__PURE__ */React__namespace.default.createElement(Icon, {
|
|
2933
2950
|
alt: "arrowChevronLeftSmall16BoldBlue",
|
|
2934
2951
|
src: img$7
|
|
2935
2952
|
}),
|
|
@@ -2951,7 +2968,7 @@
|
|
|
2951
2968
|
return Empty;
|
|
2952
2969
|
}
|
|
2953
2970
|
const { value, unit } = formatPercent(rawValue, decimals);
|
|
2954
|
-
return /* @__PURE__ */
|
|
2971
|
+
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, unit));
|
|
2955
2972
|
};
|
|
2956
2973
|
|
|
2957
2974
|
var __defProp$e = Object.defineProperty;
|
|
@@ -2970,7 +2987,7 @@
|
|
|
2970
2987
|
}
|
|
2971
2988
|
return a;
|
|
2972
2989
|
};
|
|
2973
|
-
const Progress = (props) => /* @__PURE__ */
|
|
2990
|
+
const Progress = (props) => /* @__PURE__ */ React__namespace.default.createElement(antd.Progress, __spreadValues$e({}, props));
|
|
2974
2991
|
|
|
2975
2992
|
var __defProp$d = Object.defineProperty;
|
|
2976
2993
|
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
@@ -3000,7 +3017,7 @@
|
|
|
3000
3017
|
const RadioStyle = "rxbeqvl";
|
|
3001
3018
|
const RadioGroupStyle = "r5ie79y";
|
|
3002
3019
|
const RadioButtonStyle = "r1f0aqcc";
|
|
3003
|
-
const KitRadioGroupContext =
|
|
3020
|
+
const KitRadioGroupContext = React__namespace.default.createContext({});
|
|
3004
3021
|
const Radio = _a => {
|
|
3005
3022
|
var _b = _a,
|
|
3006
3023
|
{
|
|
@@ -3013,13 +3030,13 @@
|
|
|
3013
3030
|
const {
|
|
3014
3031
|
description
|
|
3015
3032
|
} = props;
|
|
3016
|
-
const context =
|
|
3033
|
+
const context = React__namespace.default.useContext(KitRadioGroupContext);
|
|
3017
3034
|
if (description) {
|
|
3018
|
-
children = /* @__PURE__ */
|
|
3035
|
+
children = /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, children, /* @__PURE__ */React__namespace.default.createElement("div", {
|
|
3019
3036
|
className: core.cx("radio-description", Typo.Label.l4_regular)
|
|
3020
3037
|
}, description));
|
|
3021
3038
|
}
|
|
3022
|
-
return /* @__PURE__ */
|
|
3039
|
+
return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement(antd.Radio, __spreadValues$d({
|
|
3023
3040
|
className: core.cx(className, RadioStyle, compact && "compact"),
|
|
3024
3041
|
checked: checked || false,
|
|
3025
3042
|
"data-test": context.name ? `${context.name}-${String(props.value)}` : String(props.value)
|
|
@@ -3032,12 +3049,12 @@
|
|
|
3032
3049
|
className
|
|
3033
3050
|
} = _d,
|
|
3034
3051
|
props = __objRest$4(_d, ["children", "className"]);
|
|
3035
|
-
return /* @__PURE__ */
|
|
3052
|
+
return /* @__PURE__ */React__namespace.default.createElement(KitRadioGroupContext.Provider, {
|
|
3036
3053
|
value: {
|
|
3037
3054
|
disabled: props.disabled,
|
|
3038
3055
|
name: props.name
|
|
3039
3056
|
}
|
|
3040
|
-
}, /* @__PURE__ */
|
|
3057
|
+
}, /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Group, __spreadValues$d({
|
|
3041
3058
|
className: core.cx(className, RadioGroupStyle)
|
|
3042
3059
|
}, props), children ? children : null));
|
|
3043
3060
|
};
|
|
@@ -3059,14 +3076,14 @@
|
|
|
3059
3076
|
} = props;
|
|
3060
3077
|
const [inputValue, setInputValue] = React.useState(initialValue);
|
|
3061
3078
|
const radioButtonValue = type === "input" || type === "input-number" ? inputValue : props.value;
|
|
3062
|
-
const radioGroupContext =
|
|
3079
|
+
const radioGroupContext = React__namespace.default.useContext(KitRadioGroupContext);
|
|
3063
3080
|
const renderInput = () => {
|
|
3064
3081
|
const inputDisabled = props.disabled || (radioGroupContext == null ? void 0 : radioGroupContext.disabled);
|
|
3065
|
-
if (type === "input-number") return /* @__PURE__ */
|
|
3082
|
+
if (type === "input-number") return /* @__PURE__ */React__namespace.default.createElement(antd.InputNumber, {
|
|
3066
3083
|
className: "ant-radio-button-input",
|
|
3067
3084
|
placeholder,
|
|
3068
3085
|
disabled: inputDisabled,
|
|
3069
|
-
value: !
|
|
3086
|
+
value: !___default.default.isNil(inputValue) ? Number(inputValue) : void 0,
|
|
3070
3087
|
min,
|
|
3071
3088
|
max,
|
|
3072
3089
|
precision,
|
|
@@ -3076,7 +3093,7 @@
|
|
|
3076
3093
|
onInputChange(val);
|
|
3077
3094
|
}
|
|
3078
3095
|
});
|
|
3079
|
-
return /* @__PURE__ */
|
|
3096
|
+
return /* @__PURE__ */React__namespace.default.createElement(antd.Input, {
|
|
3080
3097
|
className: "ant-radio-button-input",
|
|
3081
3098
|
placeholder,
|
|
3082
3099
|
disabled: inputDisabled,
|
|
@@ -3089,11 +3106,11 @@
|
|
|
3089
3106
|
};
|
|
3090
3107
|
const renderChildren = () => {
|
|
3091
3108
|
if (type !== "input" && type !== "input-number") return children ? children : null;
|
|
3092
|
-
return /* @__PURE__ */
|
|
3109
|
+
return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, renderInput(), /* @__PURE__ */React__namespace.default.createElement("span", {
|
|
3093
3110
|
className: "ant-radio-button-input-label"
|
|
3094
3111
|
}, typeof children === "string" ? children : ""));
|
|
3095
3112
|
};
|
|
3096
|
-
return /* @__PURE__ */
|
|
3113
|
+
return /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Button, __spreadValues$d({
|
|
3097
3114
|
className: core.cx(className, RadioButtonStyle),
|
|
3098
3115
|
value: radioButtonValue
|
|
3099
3116
|
}, props), renderChildren());
|
|
@@ -3129,12 +3146,12 @@
|
|
|
3129
3146
|
};
|
|
3130
3147
|
const SearchInput = (props) => {
|
|
3131
3148
|
const _a = props, { onChange, debounceWait = 300 } = _a, restProps = __objRest$3(_a, ["onChange", "debounceWait"]);
|
|
3132
|
-
const onSearch =
|
|
3133
|
-
return /* @__PURE__ */
|
|
3149
|
+
const onSearch = ___default.default.debounce(onChange, debounceWait);
|
|
3150
|
+
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
3134
3151
|
Input,
|
|
3135
3152
|
__spreadValues$c({
|
|
3136
3153
|
style: { width: 276 },
|
|
3137
|
-
prefix: /* @__PURE__ */
|
|
3154
|
+
prefix: /* @__PURE__ */ React__namespace.default.createElement(icons.SearchOutlined, null),
|
|
3138
3155
|
onChange: (e) => onSearch(e.target.value)
|
|
3139
3156
|
}, restProps)
|
|
3140
3157
|
);
|
|
@@ -3152,7 +3169,7 @@
|
|
|
3152
3169
|
return Empty;
|
|
3153
3170
|
}
|
|
3154
3171
|
const { value, unit } = formatSeconds(rawValue, decimals);
|
|
3155
|
-
return /* @__PURE__ */
|
|
3172
|
+
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value, " "), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, t(`common.${abbreviate ? `${unit}_abbreviation` : unit}`)));
|
|
3156
3173
|
};
|
|
3157
3174
|
|
|
3158
3175
|
const inputStyle = "igz4le8";
|
|
@@ -3178,30 +3195,30 @@
|
|
|
3178
3195
|
onPageChange == null ? void 0 : onPageChange(1);
|
|
3179
3196
|
}
|
|
3180
3197
|
}, [onPageChange, pageLength]);
|
|
3181
|
-
return /* @__PURE__ */
|
|
3182
|
-
className:
|
|
3183
|
-
}, /* @__PURE__ */
|
|
3198
|
+
return /* @__PURE__ */React__namespace.default.createElement("div", {
|
|
3199
|
+
className: cs__default.default(PaginationStyle, "pagination-wrapper", className)
|
|
3200
|
+
}, /* @__PURE__ */React__namespace.default.createElement("span", {
|
|
3184
3201
|
className: Typo.Label.l3_regular_title
|
|
3185
3202
|
}, t("components.pagination_lots_total", {
|
|
3186
3203
|
total: count
|
|
3187
|
-
})), /* @__PURE__ */
|
|
3204
|
+
})), /* @__PURE__ */React__namespace.default.createElement("span", {
|
|
3188
3205
|
className: "pagination-right"
|
|
3189
|
-
}, showPrev && /* @__PURE__ */
|
|
3206
|
+
}, showPrev && /* @__PURE__ */React__namespace.default.createElement(Button, {
|
|
3190
3207
|
className: "prev-btn",
|
|
3191
3208
|
type: "quiet",
|
|
3192
3209
|
size: "small",
|
|
3193
3210
|
style: {
|
|
3194
3211
|
marginRight: "8px"
|
|
3195
3212
|
},
|
|
3196
|
-
prefixIcon: /* @__PURE__ */
|
|
3213
|
+
prefixIcon: /* @__PURE__ */React__namespace.default.createElement(Icon, {
|
|
3197
3214
|
alt: "arrowChevronLeftSmall16BoldBlue",
|
|
3198
3215
|
src: img$7
|
|
3199
3216
|
}),
|
|
3200
3217
|
onClick: () => {
|
|
3201
3218
|
onPageChange == null ? void 0 : onPageChange(current - 1);
|
|
3202
3219
|
}
|
|
3203
|
-
}), /* @__PURE__ */
|
|
3204
|
-
className:
|
|
3220
|
+
}), /* @__PURE__ */React__namespace.default.createElement(InputInteger, {
|
|
3221
|
+
className: cs__default.default(Typo.Label.l3_regular, inputStyle),
|
|
3205
3222
|
value: current,
|
|
3206
3223
|
size: "small",
|
|
3207
3224
|
onKeyDown: event => {
|
|
@@ -3212,16 +3229,16 @@
|
|
|
3212
3229
|
onBlur: event => {
|
|
3213
3230
|
changeValue(event.target.value);
|
|
3214
3231
|
}
|
|
3215
|
-
}), /* @__PURE__ */
|
|
3216
|
-
className:
|
|
3217
|
-
}, `/ ${pageLength}`), showNext && /* @__PURE__ */
|
|
3232
|
+
}), /* @__PURE__ */React__namespace.default.createElement("span", {
|
|
3233
|
+
className: cs__default.default("c1riexje", Typo.Label.l3_regular_upper)
|
|
3234
|
+
}, `/ ${pageLength}`), showNext && /* @__PURE__ */React__namespace.default.createElement(Button, {
|
|
3218
3235
|
className: "next-btn",
|
|
3219
3236
|
type: "quiet",
|
|
3220
3237
|
size: "small",
|
|
3221
3238
|
style: {
|
|
3222
3239
|
marginLeft: "8px"
|
|
3223
3240
|
},
|
|
3224
|
-
prefixIcon: /* @__PURE__ */
|
|
3241
|
+
prefixIcon: /* @__PURE__ */React__namespace.default.createElement(Icon, {
|
|
3225
3242
|
alt: "arrowChevronLeftSmall16BoldBlue",
|
|
3226
3243
|
src: img$7
|
|
3227
3244
|
}),
|
|
@@ -3241,7 +3258,7 @@
|
|
|
3241
3258
|
return Empty;
|
|
3242
3259
|
}
|
|
3243
3260
|
const { value, unit } = formatSpeed(rawValue, decimals);
|
|
3244
|
-
return /* @__PURE__ */
|
|
3261
|
+
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
|
|
3245
3262
|
};
|
|
3246
3263
|
|
|
3247
3264
|
var __defProp$b = Object.defineProperty;
|
|
@@ -3285,14 +3302,14 @@
|
|
|
3285
3302
|
showStepCount
|
|
3286
3303
|
} = _a,
|
|
3287
3304
|
stepsProps = __objRest$2(_a, ["stepsConfig", "containerClassname", "showStepCount"]);
|
|
3288
|
-
const titleWithCount = (_step, count) => /* @__PURE__ */
|
|
3305
|
+
const titleWithCount = (_step, count) => /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, showStepCount ? /* @__PURE__ */React__namespace.default.createElement("span", {
|
|
3289
3306
|
className: "step-count"
|
|
3290
3307
|
}, count) : null, _step.title);
|
|
3291
|
-
return /* @__PURE__ */
|
|
3308
|
+
return /* @__PURE__ */React__namespace.default.createElement(StepsContainer, {
|
|
3292
3309
|
className: containerClassname
|
|
3293
|
-
}, /* @__PURE__ */
|
|
3310
|
+
}, /* @__PURE__ */React__namespace.default.createElement(antd.Steps, __spreadProps$b(__spreadValues$b({}, stepsProps), {
|
|
3294
3311
|
type: "default"
|
|
3295
|
-
}), (stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */
|
|
3312
|
+
}), (stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */React__namespace.default.createElement(antd.Steps.Step, __spreadProps$b(__spreadValues$b({
|
|
3296
3313
|
key: index
|
|
3297
3314
|
}, step), {
|
|
3298
3315
|
title: titleWithCount(step, index + 1)
|
|
@@ -3343,12 +3360,12 @@
|
|
|
3343
3360
|
});
|
|
3344
3361
|
const classNames = [className, SwitchStyle, "switch"];
|
|
3345
3362
|
if (props.size === "large") classNames.push("ant-switch-large");
|
|
3346
|
-
return /* @__PURE__ */
|
|
3363
|
+
return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement(antd.Switch, __spreadProps$a(__spreadValues$a({
|
|
3347
3364
|
className: core.cx(...classNames),
|
|
3348
3365
|
checked: checked || false
|
|
3349
3366
|
}, props), {
|
|
3350
3367
|
size: props.size
|
|
3351
|
-
})), children ? /* @__PURE__ */
|
|
3368
|
+
})), children ? /* @__PURE__ */React__namespace.default.createElement(Content, null, children) : null);
|
|
3352
3369
|
};
|
|
3353
3370
|
|
|
3354
3371
|
function canScroll(el, direction = "vertical") {
|
|
@@ -3401,18 +3418,18 @@
|
|
|
3401
3418
|
const rows = Array.from({
|
|
3402
3419
|
length: rowLength
|
|
3403
3420
|
}, (r, i) => i);
|
|
3404
|
-
return /* @__PURE__ */
|
|
3421
|
+
return /* @__PURE__ */React__namespace.default.createElement("div", {
|
|
3405
3422
|
className: `${TableLoadingStyle} table-loading`
|
|
3406
|
-
}, rows.map(i => /* @__PURE__ */
|
|
3423
|
+
}, rows.map(i => /* @__PURE__ */React__namespace.default.createElement("div", {
|
|
3407
3424
|
key: i,
|
|
3408
3425
|
className: "table-loading-item"
|
|
3409
|
-
}, /* @__PURE__ */
|
|
3426
|
+
}, /* @__PURE__ */React__namespace.default.createElement("div", {
|
|
3410
3427
|
className: "checkbox-loading"
|
|
3411
|
-
}), /* @__PURE__ */
|
|
3428
|
+
}), /* @__PURE__ */React__namespace.default.createElement("div", {
|
|
3412
3429
|
className: "td-loading"
|
|
3413
|
-
}), /* @__PURE__ */
|
|
3430
|
+
}), /* @__PURE__ */React__namespace.default.createElement("div", {
|
|
3414
3431
|
className: "td-loading"
|
|
3415
|
-
}), /* @__PURE__ */
|
|
3432
|
+
}), /* @__PURE__ */React__namespace.default.createElement("div", {
|
|
3416
3433
|
className: "td-loading"
|
|
3417
3434
|
}))));
|
|
3418
3435
|
};
|
|
@@ -3422,9 +3439,9 @@
|
|
|
3422
3439
|
title,
|
|
3423
3440
|
sortOrder
|
|
3424
3441
|
} = props;
|
|
3425
|
-
return /* @__PURE__ */
|
|
3442
|
+
return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, title, /* @__PURE__ */React__namespace.default.createElement(Icon, {
|
|
3426
3443
|
alt: "arrowChevronUp16BoldSecondary",
|
|
3427
|
-
className:
|
|
3444
|
+
className: cs__default.default("order-icon", sortOrder),
|
|
3428
3445
|
src: img$6
|
|
3429
3446
|
}));
|
|
3430
3447
|
};
|
|
@@ -3476,7 +3493,7 @@
|
|
|
3476
3493
|
const _columns = React.useMemo(() => columns.map(column => {
|
|
3477
3494
|
const _column = __spreadValues$9({}, column);
|
|
3478
3495
|
if (_column.sorter) {
|
|
3479
|
-
_column.title = /* @__PURE__ */
|
|
3496
|
+
_column.title = /* @__PURE__ */React__namespace.default.createElement(ColumnTitle, {
|
|
3480
3497
|
title: column.title,
|
|
3481
3498
|
sortOrder: column.sortOrder
|
|
3482
3499
|
});
|
|
@@ -3486,17 +3503,17 @@
|
|
|
3486
3503
|
}
|
|
3487
3504
|
return _column;
|
|
3488
3505
|
}), [columns]);
|
|
3489
|
-
return /* @__PURE__ */
|
|
3506
|
+
return /* @__PURE__ */React__namespace.default.createElement("div", {
|
|
3490
3507
|
className: core.cx(TableContainerStyle, "table-container", !hasScrollBard && "no-scroll-bar")
|
|
3491
|
-
}, /* @__PURE__ */
|
|
3492
|
-
className:
|
|
3508
|
+
}, /* @__PURE__ */React__namespace.default.createElement(antd.Table, {
|
|
3509
|
+
className: cs__default.default(tableStyleCover, !(dataSource == null ? void 0 : dataSource.length) && "empty-table", initLoading && "table-init-loading", rowSelection && "has-selection"),
|
|
3493
3510
|
bordered,
|
|
3494
3511
|
loading: {
|
|
3495
3512
|
spinning: loading,
|
|
3496
|
-
indicator: initLoading ? /* @__PURE__ */
|
|
3513
|
+
indicator: initLoading ? /* @__PURE__ */React__namespace.default.createElement(TableLoading, null) : /* @__PURE__ */React__namespace.default.createElement(Loading, null)
|
|
3497
3514
|
},
|
|
3498
3515
|
locale: {
|
|
3499
|
-
emptyText: error || /* @__PURE__ */
|
|
3516
|
+
emptyText: error || /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, loading ? "" : empty)
|
|
3500
3517
|
},
|
|
3501
3518
|
dataSource: dataSource || [],
|
|
3502
3519
|
pagination: pagination || false,
|
|
@@ -3645,12 +3662,12 @@
|
|
|
3645
3662
|
if (!columns.length) {
|
|
3646
3663
|
return null;
|
|
3647
3664
|
}
|
|
3648
|
-
return CustomizedButton ? /* @__PURE__ */
|
|
3665
|
+
return CustomizedButton ? /* @__PURE__ */ React__namespace.default.createElement(CustomizedButton, __spreadValues$8({}, props)) : /* @__PURE__ */ React__namespace.default.createElement(AddRowButtonWrapper, { className }, /* @__PURE__ */ React__namespace.default.createElement(
|
|
3649
3666
|
Button,
|
|
3650
3667
|
__spreadProps$8(__spreadValues$8({}, restButtonProps), {
|
|
3651
3668
|
type: restButtonProps.type || "ordinary",
|
|
3652
3669
|
size: restButtonProps.size || "small",
|
|
3653
|
-
icon: restButtonProps.icon || /* @__PURE__ */
|
|
3670
|
+
icon: restButtonProps.icon || /* @__PURE__ */ React__namespace.default.createElement(icons.PlusOutlined, null),
|
|
3654
3671
|
className: core.cx(Typo.Label.l3_regular, restButtonProps.className),
|
|
3655
3672
|
onClick: (e) => {
|
|
3656
3673
|
onAdd(e, data);
|
|
@@ -3658,7 +3675,7 @@
|
|
|
3658
3675
|
disabled
|
|
3659
3676
|
}),
|
|
3660
3677
|
CustomizedButtonText || t("components.add")
|
|
3661
|
-
), typeof maximum === "number" ? /* @__PURE__ */
|
|
3678
|
+
), typeof maximum === "number" ? /* @__PURE__ */ React__namespace.default.createElement(
|
|
3662
3679
|
"span",
|
|
3663
3680
|
{
|
|
3664
3681
|
className: core.cx(
|
|
@@ -3693,7 +3710,7 @@
|
|
|
3693
3710
|
},
|
|
3694
3711
|
[prefix, onChange]
|
|
3695
3712
|
);
|
|
3696
|
-
return /* @__PURE__ */
|
|
3713
|
+
return /* @__PURE__ */ React__namespace.default.createElement(antd.Space, null, !column.disablePrefix ? /* @__PURE__ */ React__namespace.default.createElement(
|
|
3697
3714
|
antd.Input,
|
|
3698
3715
|
{
|
|
3699
3716
|
value: prefix,
|
|
@@ -3702,7 +3719,7 @@
|
|
|
3702
3719
|
onChange: onPrefixChange,
|
|
3703
3720
|
onBlur
|
|
3704
3721
|
}
|
|
3705
|
-
) : void 0, !column.disableSuffix ? /* @__PURE__ */
|
|
3722
|
+
) : void 0, !column.disableSuffix ? /* @__PURE__ */ React__namespace.default.createElement(
|
|
3706
3723
|
antd.Input,
|
|
3707
3724
|
{
|
|
3708
3725
|
value: suffix,
|
|
@@ -3721,7 +3738,7 @@
|
|
|
3721
3738
|
},
|
|
3722
3739
|
[onChange]
|
|
3723
3740
|
);
|
|
3724
|
-
return /* @__PURE__ */
|
|
3741
|
+
return /* @__PURE__ */ React__namespace.default.createElement(antd.Checkbox, { onChange: _onChange });
|
|
3725
3742
|
};
|
|
3726
3743
|
const CheckboxColumnBodyCell = ({ data, column, index, onChange }) => {
|
|
3727
3744
|
const value = data[index][column.key] === void 0 ? column.defaultValue : data[index][column.key];
|
|
@@ -3732,7 +3749,7 @@
|
|
|
3732
3749
|
[onChange]
|
|
3733
3750
|
);
|
|
3734
3751
|
const defaultChecked = column.defaultValue;
|
|
3735
|
-
return /* @__PURE__ */
|
|
3752
|
+
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
3736
3753
|
antd.Checkbox,
|
|
3737
3754
|
{
|
|
3738
3755
|
checked: value,
|
|
@@ -3774,17 +3791,17 @@
|
|
|
3774
3791
|
(_a = props == null ? void 0 : props.onVisibleChange) == null ? void 0 : _a.call(props, !showPassword);
|
|
3775
3792
|
};
|
|
3776
3793
|
const inputType = showPassword ? "text" : "password";
|
|
3777
|
-
return /* @__PURE__ */
|
|
3794
|
+
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
3778
3795
|
antd.Input,
|
|
3779
3796
|
__spreadProps$7(__spreadValues$7({}, props), {
|
|
3780
3797
|
type: inputType,
|
|
3781
|
-
suffix: showPassword ? /* @__PURE__ */
|
|
3798
|
+
suffix: showPassword ? /* @__PURE__ */ React__namespace.default.createElement(
|
|
3782
3799
|
icons.EyeOutlined,
|
|
3783
3800
|
{
|
|
3784
3801
|
className: "ant-input-password-icon",
|
|
3785
3802
|
onClick: toggleShowPassword
|
|
3786
3803
|
}
|
|
3787
|
-
) : /* @__PURE__ */
|
|
3804
|
+
) : /* @__PURE__ */ React__namespace.default.createElement(
|
|
3788
3805
|
icons.EyeInvisibleOutlined,
|
|
3789
3806
|
{
|
|
3790
3807
|
className: "ant-input-password-icon",
|
|
@@ -3796,16 +3813,16 @@
|
|
|
3796
3813
|
};
|
|
3797
3814
|
const CustomInput = (props) => {
|
|
3798
3815
|
if (props.type === "password") {
|
|
3799
|
-
return /* @__PURE__ */
|
|
3816
|
+
return /* @__PURE__ */ React__namespace.default.createElement(InputPassword, __spreadValues$7({}, props));
|
|
3800
3817
|
}
|
|
3801
|
-
return /* @__PURE__ */
|
|
3818
|
+
return /* @__PURE__ */ React__namespace.default.createElement(antd.Input, __spreadValues$7({}, props));
|
|
3802
3819
|
};
|
|
3803
3820
|
const InputColumnHeaderCell = ({ disabled, column, onChange, onBlur, onVisibleChange }) => {
|
|
3804
3821
|
const _onChange = (e) => {
|
|
3805
3822
|
const newValue = e.target.value;
|
|
3806
3823
|
onChange(newValue);
|
|
3807
3824
|
};
|
|
3808
|
-
return /* @__PURE__ */
|
|
3825
|
+
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
3809
3826
|
CustomInput,
|
|
3810
3827
|
{
|
|
3811
3828
|
type: column.type,
|
|
@@ -3833,7 +3850,7 @@
|
|
|
3833
3850
|
const newValue = e.target.value;
|
|
3834
3851
|
onChange(newValue);
|
|
3835
3852
|
};
|
|
3836
|
-
return /* @__PURE__ */
|
|
3853
|
+
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
3837
3854
|
CustomInput,
|
|
3838
3855
|
{
|
|
3839
3856
|
size: "small",
|
|
@@ -3852,7 +3869,7 @@
|
|
|
3852
3869
|
const TextColumnHeaderCell = ({
|
|
3853
3870
|
column
|
|
3854
3871
|
}) => {
|
|
3855
|
-
return /* @__PURE__ */
|
|
3872
|
+
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
3856
3873
|
"p",
|
|
3857
3874
|
{
|
|
3858
3875
|
className: core.cx(Typo.Label.l4_regular, SubtitleStyle, column.subTitleColor)
|
|
@@ -3868,13 +3885,13 @@
|
|
|
3868
3885
|
rowIndex: index,
|
|
3869
3886
|
rowData: data[index]
|
|
3870
3887
|
})) != null ? _b : null;
|
|
3871
|
-
return typeof Result === "string" ? /* @__PURE__ */
|
|
3888
|
+
return typeof Result === "string" ? /* @__PURE__ */ React__namespace.default.createElement("p", { className: core.cx(Typo.Label.l4_regular, "cell-description") }, Result) : Result;
|
|
3872
3889
|
}, [index, data, column]);
|
|
3873
3890
|
const Text = React.useMemo(
|
|
3874
|
-
() => /* @__PURE__ */
|
|
3891
|
+
() => /* @__PURE__ */ React__namespace.default.createElement("p", { className: core.cx(Typo.Label.l3_regular, BodyCellTextStyle) }, text),
|
|
3875
3892
|
[text]
|
|
3876
3893
|
);
|
|
3877
|
-
return /* @__PURE__ */
|
|
3894
|
+
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
3878
3895
|
BodyCellTextWrapper,
|
|
3879
3896
|
{
|
|
3880
3897
|
className: !!CellDescription ? "with-description" : void 0
|
|
@@ -3906,7 +3923,7 @@
|
|
|
3906
3923
|
message,
|
|
3907
3924
|
children
|
|
3908
3925
|
} = props;
|
|
3909
|
-
return /* @__PURE__ */
|
|
3926
|
+
return /* @__PURE__ */React__namespace.default.createElement(antd.Form.Item, {
|
|
3910
3927
|
className: FormItemStyle,
|
|
3911
3928
|
validateStatus,
|
|
3912
3929
|
help: validateStatus && message ? message : void 0
|
|
@@ -3999,7 +4016,7 @@
|
|
|
3999
4016
|
if (!column.type)
|
|
4000
4017
|
return null;
|
|
4001
4018
|
const CellComponent = ColumnBodyImpls[column.type];
|
|
4002
|
-
return /* @__PURE__ */
|
|
4019
|
+
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
4003
4020
|
CellComponent,
|
|
4004
4021
|
{
|
|
4005
4022
|
disabled,
|
|
@@ -4036,9 +4053,9 @@
|
|
|
4036
4053
|
rowData: data[rowIndex],
|
|
4037
4054
|
latestData
|
|
4038
4055
|
})) || null;
|
|
4039
|
-
return typeof Result === "string" ? /* @__PURE__ */
|
|
4056
|
+
return typeof Result === "string" ? /* @__PURE__ */ React__namespace.default.createElement("p", { className: core.cx(Typo.Label.l4_regular, "cell-description") }, Result) : Result;
|
|
4040
4057
|
}, [rowIndex, data, latestData, column]);
|
|
4041
|
-
return /* @__PURE__ */
|
|
4058
|
+
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
4042
4059
|
"div",
|
|
4043
4060
|
{
|
|
4044
4061
|
className: core.cx("eagle-table-form-cell", `align-${column.align || "left"}`),
|
|
@@ -4048,7 +4065,7 @@
|
|
|
4048
4065
|
visibility: column.hidden ? "hidden" : "visible"
|
|
4049
4066
|
}
|
|
4050
4067
|
},
|
|
4051
|
-
/* @__PURE__ */
|
|
4068
|
+
/* @__PURE__ */ React__namespace.default.createElement(
|
|
4052
4069
|
FormItem,
|
|
4053
4070
|
{
|
|
4054
4071
|
validateStatus: isRowError || (validateResult == null ? void 0 : validateResult.isError) ? "error" : "",
|
|
@@ -4116,7 +4133,7 @@
|
|
|
4116
4133
|
rowIndex,
|
|
4117
4134
|
data
|
|
4118
4135
|
);
|
|
4119
|
-
const DeleteIcon = /* @__PURE__ */
|
|
4136
|
+
const DeleteIcon = /* @__PURE__ */ React__namespace.default.createElement(
|
|
4120
4137
|
Icon,
|
|
4121
4138
|
{
|
|
4122
4139
|
className: core.cx("delete-row-icon", isRowDeleteDisabled && "disabled"),
|
|
@@ -4129,7 +4146,7 @@
|
|
|
4129
4146
|
}
|
|
4130
4147
|
}
|
|
4131
4148
|
);
|
|
4132
|
-
const FinalRenderIcon = isRowDeleteDisabled ? DeleteIcon : /* @__PURE__ */
|
|
4149
|
+
const FinalRenderIcon = isRowDeleteDisabled ? DeleteIcon : /* @__PURE__ */ React__namespace.default.createElement(Tooltip, { title: t("components.remove") }, DeleteIcon);
|
|
4133
4150
|
return (deleteConfig == null ? void 0 : deleteConfig.deletable) ? [FinalRenderIcon] : void 0;
|
|
4134
4151
|
}, [deleteConfig, rowIndex, data, t, deleteRow]);
|
|
4135
4152
|
const getRowValidateResult = React.useCallback(
|
|
@@ -4141,7 +4158,7 @@
|
|
|
4141
4158
|
[rowValidator, rowIndex]
|
|
4142
4159
|
);
|
|
4143
4160
|
const Cells = columns.map((col) => {
|
|
4144
|
-
return /* @__PURE__ */
|
|
4161
|
+
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
4145
4162
|
TableFormBodyCell,
|
|
4146
4163
|
{
|
|
4147
4164
|
key: col.key,
|
|
@@ -4161,7 +4178,7 @@
|
|
|
4161
4178
|
);
|
|
4162
4179
|
});
|
|
4163
4180
|
const DraggableHandle = React.useMemo(
|
|
4164
|
-
() => draggable && provided ? /* @__PURE__ */
|
|
4181
|
+
() => draggable && provided ? /* @__PURE__ */ React__namespace.default.createElement(DraggableHandleWrapper, __spreadValues$5({}, provided.dragHandleProps), /* @__PURE__ */ React__namespace.default.createElement(
|
|
4165
4182
|
Icon,
|
|
4166
4183
|
{
|
|
4167
4184
|
src: iconsReact.HandlePoint816SecondaryIcon,
|
|
@@ -4176,9 +4193,9 @@
|
|
|
4176
4193
|
rowData,
|
|
4177
4194
|
latestData
|
|
4178
4195
|
})) || null;
|
|
4179
|
-
return typeof RenderResult === "string" ? /* @__PURE__ */
|
|
4196
|
+
return typeof RenderResult === "string" ? /* @__PURE__ */ React__namespace.default.createElement("p", { className: core.cx(Typo.Label.l4_regular, "row-description") }, RenderResult) : RenderResult;
|
|
4180
4197
|
}, [rowIndex, rowData, latestData, renderRowDescription]);
|
|
4181
|
-
return /* @__PURE__ */
|
|
4198
|
+
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
4182
4199
|
antd.List.Item,
|
|
4183
4200
|
{
|
|
4184
4201
|
key: rowIndex,
|
|
@@ -4190,7 +4207,7 @@
|
|
|
4190
4207
|
},
|
|
4191
4208
|
DraggableHandle,
|
|
4192
4209
|
Cells,
|
|
4193
|
-
rowError ? /* @__PURE__ */
|
|
4210
|
+
rowError ? /* @__PURE__ */ React__namespace.default.createElement("p", { className: core.cx(Typo.Label.l4_regular, "row-error-message") }, rowError) : null,
|
|
4194
4211
|
RowDescription
|
|
4195
4212
|
);
|
|
4196
4213
|
};
|
|
@@ -4208,20 +4225,20 @@
|
|
|
4208
4225
|
},
|
|
4209
4226
|
[data, updateData]
|
|
4210
4227
|
);
|
|
4211
|
-
return draggable ? /* @__PURE__ */
|
|
4228
|
+
return draggable ? /* @__PURE__ */ React__namespace.default.createElement(reactBeautifulDnd.DragDropContext, { onDragEnd }, /* @__PURE__ */ React__namespace.default.createElement(reactBeautifulDnd.Droppable, { droppableId: "droppable" }, (provided) => /* @__PURE__ */ React__namespace.default.createElement(
|
|
4212
4229
|
"div",
|
|
4213
4230
|
__spreadValues$5({
|
|
4214
4231
|
className: "draggable-container",
|
|
4215
4232
|
ref: provided.innerRef
|
|
4216
4233
|
}, provided.droppableProps),
|
|
4217
|
-
data.map((_d, i) => /* @__PURE__ */
|
|
4234
|
+
data.map((_d, i) => /* @__PURE__ */ React__namespace.default.createElement(
|
|
4218
4235
|
reactBeautifulDnd.Draggable,
|
|
4219
4236
|
{
|
|
4220
4237
|
draggableId: `draggable-id-${i}`,
|
|
4221
4238
|
key: `draggable-id-${i}`,
|
|
4222
4239
|
index: i
|
|
4223
4240
|
},
|
|
4224
|
-
(provided2, snapshot) => /* @__PURE__ */
|
|
4241
|
+
(provided2, snapshot) => /* @__PURE__ */ React__namespace.default.createElement("div", __spreadValues$5({ ref: provided2.innerRef }, provided2.draggableProps), /* @__PURE__ */ React__namespace.default.createElement(
|
|
4225
4242
|
TableFormRow,
|
|
4226
4243
|
__spreadProps$5(__spreadValues$5({}, props), {
|
|
4227
4244
|
rowIndex: i,
|
|
@@ -4231,7 +4248,7 @@
|
|
|
4231
4248
|
))
|
|
4232
4249
|
)),
|
|
4233
4250
|
provided.placeholder
|
|
4234
|
-
))) : /* @__PURE__ */
|
|
4251
|
+
))) : /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, data.map((_d, i) => /* @__PURE__ */ React__namespace.default.createElement(TableFormRow, __spreadProps$5(__spreadValues$5({}, props), { rowIndex: i, key: `table-row-${i}` }))));
|
|
4235
4252
|
});
|
|
4236
4253
|
|
|
4237
4254
|
var __defProp$4 = Object.defineProperty;
|
|
@@ -4279,7 +4296,7 @@
|
|
|
4279
4296
|
if (!column.type)
|
|
4280
4297
|
return null;
|
|
4281
4298
|
const CellComponent = ColumnHeaderImpls[column.type];
|
|
4282
|
-
return /* @__PURE__ */
|
|
4299
|
+
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
4283
4300
|
CellComponent,
|
|
4284
4301
|
__spreadProps$4(__spreadValues$4({}, props), {
|
|
4285
4302
|
column,
|
|
@@ -4294,7 +4311,7 @@
|
|
|
4294
4311
|
onChange: headerOnChange,
|
|
4295
4312
|
onBlur: _onBlur
|
|
4296
4313
|
}) : renderDefaultComponent();
|
|
4297
|
-
return /* @__PURE__ */
|
|
4314
|
+
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
4298
4315
|
"div",
|
|
4299
4316
|
{
|
|
4300
4317
|
className: core.cx("eagle-table-form-cell", `align-${column.align || "left"}`),
|
|
@@ -4304,8 +4321,8 @@
|
|
|
4304
4321
|
visibility: column.hidden ? "hidden" : "visible"
|
|
4305
4322
|
}
|
|
4306
4323
|
},
|
|
4307
|
-
/* @__PURE__ */
|
|
4308
|
-
disableBatchFilling ? null : /* @__PURE__ */
|
|
4324
|
+
/* @__PURE__ */ React__namespace.default.createElement("p", { className: core.cx(Typo.Label.l3_bold_title, TitleStyle) }, column.title),
|
|
4325
|
+
disableBatchFilling ? null : /* @__PURE__ */ React__namespace.default.createElement(
|
|
4309
4326
|
FormItem,
|
|
4310
4327
|
{
|
|
4311
4328
|
validateStatus: typeof errMsg === "string" && errMsg ? "error" : "",
|
|
@@ -4336,7 +4353,7 @@
|
|
|
4336
4353
|
};
|
|
4337
4354
|
var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
|
|
4338
4355
|
const DEFAULT_ROW_COUNT = 3;
|
|
4339
|
-
const TableForm =
|
|
4356
|
+
const TableForm = React__namespace.default.forwardRef(
|
|
4340
4357
|
({
|
|
4341
4358
|
defaultData = [],
|
|
4342
4359
|
columns,
|
|
@@ -4418,7 +4435,7 @@
|
|
|
4418
4435
|
[updateData]
|
|
4419
4436
|
);
|
|
4420
4437
|
const headerCells = columns.map((col) => {
|
|
4421
|
-
return /* @__PURE__ */
|
|
4438
|
+
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
4422
4439
|
BatchInputListHeaderCell,
|
|
4423
4440
|
{
|
|
4424
4441
|
key: col.key,
|
|
@@ -4439,21 +4456,21 @@
|
|
|
4439
4456
|
} : void 0,
|
|
4440
4457
|
[]
|
|
4441
4458
|
);
|
|
4442
|
-
return /* @__PURE__ */
|
|
4459
|
+
return /* @__PURE__ */ React__namespace.default.createElement("div", { className }, /* @__PURE__ */ React__namespace.default.createElement(
|
|
4443
4460
|
TableFormWrapper,
|
|
4444
4461
|
{
|
|
4445
4462
|
className: `table-form row-split-by-${rowSplitType}`,
|
|
4446
4463
|
style: tableFormWrapperStyle
|
|
4447
4464
|
},
|
|
4448
|
-
/* @__PURE__ */
|
|
4465
|
+
/* @__PURE__ */ React__namespace.default.createElement(antd.List, { size, className: `size-${size}` }, /* @__PURE__ */ React__namespace.default.createElement(
|
|
4449
4466
|
antd.List.Item,
|
|
4450
4467
|
{
|
|
4451
4468
|
className: "eagle-table-form-header",
|
|
4452
|
-
actions: (deleteConfig == null ? void 0 : deleteConfig.deletable) ? [/* @__PURE__ */
|
|
4469
|
+
actions: (deleteConfig == null ? void 0 : deleteConfig.deletable) ? [/* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null)] : void 0
|
|
4453
4470
|
},
|
|
4454
|
-
draggable ? /* @__PURE__ */
|
|
4471
|
+
draggable ? /* @__PURE__ */ React__namespace.default.createElement(DraggableHandleWrapper, null) : null,
|
|
4455
4472
|
headerCells
|
|
4456
|
-
), /* @__PURE__ */
|
|
4473
|
+
), /* @__PURE__ */ React__namespace.default.createElement(
|
|
4457
4474
|
TableFormBodyRows,
|
|
4458
4475
|
{
|
|
4459
4476
|
data,
|
|
@@ -4472,7 +4489,7 @@
|
|
|
4472
4489
|
validateAll
|
|
4473
4490
|
}
|
|
4474
4491
|
))
|
|
4475
|
-
), (rowAddConfig == null ? void 0 : rowAddConfig.addible) ? /* @__PURE__ */
|
|
4492
|
+
), (rowAddConfig == null ? void 0 : rowAddConfig.addible) ? /* @__PURE__ */ React__namespace.default.createElement(
|
|
4476
4493
|
AddRowButton,
|
|
4477
4494
|
{
|
|
4478
4495
|
config: rowAddConfig,
|
|
@@ -4484,7 +4501,7 @@
|
|
|
4484
4501
|
}
|
|
4485
4502
|
);
|
|
4486
4503
|
|
|
4487
|
-
const allTimeZones = _.uniqBy(
|
|
4504
|
+
const allTimeZones = _.uniqBy(TimeZones__default.default.reduce((sum, zone) => {
|
|
4488
4505
|
const utcZones = zone.utc.map(utc => {
|
|
4489
4506
|
return {
|
|
4490
4507
|
abbr: zone.abbr,
|
|
@@ -4548,23 +4565,23 @@
|
|
|
4548
4565
|
setInnerValue(value);
|
|
4549
4566
|
}, [innerValue, value]);
|
|
4550
4567
|
const timeZoneOptionGroups = timeZoneGroups.map(([key, timezones]) => {
|
|
4551
|
-
return /* @__PURE__ */
|
|
4568
|
+
return /* @__PURE__ */React__namespace.default.createElement(antd.Select.OptGroup, {
|
|
4552
4569
|
label: key.toUpperCase()
|
|
4553
4570
|
}, timezones.map(zone => {
|
|
4554
|
-
return /* @__PURE__ */
|
|
4571
|
+
return /* @__PURE__ */React__namespace.default.createElement(antd.Select.Option, {
|
|
4555
4572
|
label: `${zone.value} (${getUTCOffsetText(zone.offset)})`,
|
|
4556
4573
|
value: zone.value,
|
|
4557
4574
|
className: OptionWrapperStyle
|
|
4558
|
-
}, /* @__PURE__ */
|
|
4575
|
+
}, /* @__PURE__ */React__namespace.default.createElement(TimeZoneOption, {
|
|
4559
4576
|
key: zone.value,
|
|
4560
4577
|
timeZone: zone
|
|
4561
4578
|
}));
|
|
4562
4579
|
}));
|
|
4563
4580
|
});
|
|
4564
|
-
return /* @__PURE__ */
|
|
4581
|
+
return /* @__PURE__ */React__namespace.default.createElement(Select, {
|
|
4565
4582
|
className: core.cx(SelectStyle, className),
|
|
4566
4583
|
dropdownClassName: DropdownStyle,
|
|
4567
|
-
placeholder: /* @__PURE__ */
|
|
4584
|
+
placeholder: /* @__PURE__ */React__namespace.default.createElement("span", null, placeholder || t("components.time_zone_select_placeholder")),
|
|
4568
4585
|
value: innerValue,
|
|
4569
4586
|
onChange: _onChange,
|
|
4570
4587
|
showSearch: true,
|
|
@@ -4579,18 +4596,18 @@
|
|
|
4579
4596
|
},
|
|
4580
4597
|
optionLabelProp: "label",
|
|
4581
4598
|
input: {}
|
|
4582
|
-
}, /* @__PURE__ */
|
|
4599
|
+
}, /* @__PURE__ */React__namespace.default.createElement(antd.Select.Option, {
|
|
4583
4600
|
value: BrowserTimeValue,
|
|
4584
4601
|
label: `${t("components.browser_time_zone")} (${getUTCOffsetText(browserTz.offset)})`,
|
|
4585
4602
|
className: OptionWrapperStyle
|
|
4586
|
-
}, /* @__PURE__ */
|
|
4603
|
+
}, /* @__PURE__ */React__namespace.default.createElement(TimeZoneOption, {
|
|
4587
4604
|
key: BrowserTimeValue,
|
|
4588
4605
|
customLabel: t("components.browser_time_zone"),
|
|
4589
4606
|
timeZone: browserTz
|
|
4590
|
-
})), /* @__PURE__ */
|
|
4607
|
+
})), /* @__PURE__ */React__namespace.default.createElement(antd.Select.Option, {
|
|
4591
4608
|
value: "UTC",
|
|
4592
4609
|
className: OptionWrapperStyle
|
|
4593
|
-
}, /* @__PURE__ */
|
|
4610
|
+
}, /* @__PURE__ */React__namespace.default.createElement(TimeZoneOption, {
|
|
4594
4611
|
key: "utc",
|
|
4595
4612
|
customLabel: t("components.coorddinated_universal_time"),
|
|
4596
4613
|
timeZone: {
|
|
@@ -4599,7 +4616,7 @@
|
|
|
4599
4616
|
offset: 0,
|
|
4600
4617
|
abbr: "GMT"
|
|
4601
4618
|
}
|
|
4602
|
-
})), timeZoneOptionGroups, /* @__PURE__ */
|
|
4619
|
+
})), timeZoneOptionGroups, /* @__PURE__ */React__namespace.default.createElement(antd.Select.Option, {
|
|
4603
4620
|
value: "_placeholder_",
|
|
4604
4621
|
className: OptionPlaceholder
|
|
4605
4622
|
}, "_placeholder_"));
|
|
@@ -4618,15 +4635,15 @@
|
|
|
4618
4635
|
customLabel
|
|
4619
4636
|
}) => {
|
|
4620
4637
|
let tagText = getUTCOffsetText(timeZone.offset);
|
|
4621
|
-
return /* @__PURE__ */
|
|
4638
|
+
return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement("div", {
|
|
4622
4639
|
className: OptionFirstLineStyle
|
|
4623
|
-
}, /* @__PURE__ */
|
|
4640
|
+
}, /* @__PURE__ */React__namespace.default.createElement("span", {
|
|
4624
4641
|
className: "timezone-title"
|
|
4625
|
-
}, customLabel || timeZone.value), /* @__PURE__ */
|
|
4642
|
+
}, customLabel || timeZone.value), /* @__PURE__ */React__namespace.default.createElement(antd.Tag, {
|
|
4626
4643
|
className: core.cx("timezone-tag", TagStyle)
|
|
4627
|
-
}, tagText)), /* @__PURE__ */
|
|
4644
|
+
}, tagText)), /* @__PURE__ */React__namespace.default.createElement("div", {
|
|
4628
4645
|
className: OptionSecondLineStyle
|
|
4629
|
-
}, /* @__PURE__ */
|
|
4646
|
+
}, /* @__PURE__ */React__namespace.default.createElement("span", null, timeZone.text, ", ", timeZone.abbr), /* @__PURE__ */React__namespace.default.createElement(Icon, {
|
|
4630
4647
|
className: "selected-icon",
|
|
4631
4648
|
src: iconsReact.CheckmarkDoneSuccessCorrect16BlueIcon,
|
|
4632
4649
|
iconHeight: 16,
|
|
@@ -4637,7 +4654,7 @@
|
|
|
4637
4654
|
function getAntdKit() {
|
|
4638
4655
|
const kit = {
|
|
4639
4656
|
loading: Loading,
|
|
4640
|
-
error: ({ error }) => /* @__PURE__ */
|
|
4657
|
+
error: ({ error }) => /* @__PURE__ */ React__namespace.default.createElement("div", { className: "error" }, String(error)),
|
|
4641
4658
|
pagination: Pagination,
|
|
4642
4659
|
select: Select,
|
|
4643
4660
|
option: antd.Select.Option,
|
|
@@ -4729,7 +4746,7 @@
|
|
|
4729
4746
|
}
|
|
4730
4747
|
const antdKit = getAntdKit();
|
|
4731
4748
|
|
|
4732
|
-
class ErrorBoundary extends
|
|
4749
|
+
class ErrorBoundary extends React__namespace.default.Component {
|
|
4733
4750
|
constructor(props) {
|
|
4734
4751
|
super(props);
|
|
4735
4752
|
this.state = { error: null };
|
|
@@ -4739,7 +4756,7 @@
|
|
|
4739
4756
|
}
|
|
4740
4757
|
render() {
|
|
4741
4758
|
if (this.state.error) {
|
|
4742
|
-
return /* @__PURE__ */
|
|
4759
|
+
return /* @__PURE__ */ React__namespace.default.createElement("div", { title: String(this.state.error) }, this.props.t("components.unknow_error"));
|
|
4743
4760
|
}
|
|
4744
4761
|
return this.props.children;
|
|
4745
4762
|
}
|
|
@@ -4758,12 +4775,12 @@
|
|
|
4758
4775
|
const {
|
|
4759
4776
|
t
|
|
4760
4777
|
} = useParrotTranslation();
|
|
4761
|
-
return /* @__PURE__ */
|
|
4762
|
-
className:
|
|
4778
|
+
return /* @__PURE__ */React__namespace.default.createElement("div", {
|
|
4779
|
+
className: cs__default.default(FailedLoadStyle, className),
|
|
4763
4780
|
title
|
|
4764
|
-
}, /* @__PURE__ */
|
|
4781
|
+
}, /* @__PURE__ */React__namespace.default.createElement("div", {
|
|
4765
4782
|
className: "error-text"
|
|
4766
|
-
}, String(error)), /* @__PURE__ */
|
|
4783
|
+
}, String(error)), /* @__PURE__ */React__namespace.default.createElement(Button, {
|
|
4767
4784
|
type: "ordinary",
|
|
4768
4785
|
onClick: () => refetch()
|
|
4769
4786
|
}, refetchText || t("common.retry")));
|
|
@@ -4910,12 +4927,12 @@
|
|
|
4910
4927
|
const tickFormatter = (tick, dateRange) => {
|
|
4911
4928
|
const rangeTime = getRangeTimestamp(dateRange);
|
|
4912
4929
|
if (rangeTime <= 2 * HOUR * 1e3) {
|
|
4913
|
-
return
|
|
4930
|
+
return dayjs__default.default(tick).format("HH:mm:ss");
|
|
4914
4931
|
}
|
|
4915
4932
|
if (rangeTime <= 4 * DAY * 1e3) {
|
|
4916
|
-
return
|
|
4933
|
+
return dayjs__default.default(tick).format("MM/DD HH:mm:ss");
|
|
4917
4934
|
}
|
|
4918
|
-
return
|
|
4935
|
+
return dayjs__default.default(tick).format("MM/DD");
|
|
4919
4936
|
};
|
|
4920
4937
|
|
|
4921
4938
|
var __defProp$1 = Object.defineProperty;
|
|
@@ -4941,7 +4958,7 @@
|
|
|
4941
4958
|
const stack = useKitSelector(
|
|
4942
4959
|
(state) => state.modal.stack
|
|
4943
4960
|
);
|
|
4944
|
-
return /* @__PURE__ */
|
|
4961
|
+
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, stack.map((modal) => /* @__PURE__ */ React__namespace.default.createElement(
|
|
4945
4962
|
modal.component,
|
|
4946
4963
|
__spreadProps$1(__spreadValues$1({}, modal.props), {
|
|
4947
4964
|
modalId: modal.id,
|
|
@@ -5009,11 +5026,11 @@
|
|
|
5009
5026
|
parrot.parrotI18n.changeLanguage(lng);
|
|
5010
5027
|
}
|
|
5011
5028
|
}, [lng]);
|
|
5012
|
-
return /* @__PURE__ */
|
|
5029
|
+
return /* @__PURE__ */ React__namespace.default.createElement(kitContext.Provider, { value: _kit }, /* @__PURE__ */ React__namespace.default.createElement(
|
|
5013
5030
|
antd.ConfigProvider,
|
|
5014
5031
|
{
|
|
5015
5032
|
autoInsertSpaceInButton: false,
|
|
5016
|
-
locale: lng === "zh-CN" ?
|
|
5033
|
+
locale: lng === "zh-CN" ? zhCN__default.default : enUS__default.default,
|
|
5017
5034
|
getPopupContainer
|
|
5018
5035
|
},
|
|
5019
5036
|
children
|