@railtownai/railtracks-visualizer 0.0.70 → 0.0.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js
CHANGED
|
@@ -6,7 +6,6 @@ var ReactDOM = require('react-dom');
|
|
|
6
6
|
var CountUp = require('react-countup');
|
|
7
7
|
var render = require('@rc-component/util/es/React/render');
|
|
8
8
|
var cssinjs = require('@ant-design/cssinjs');
|
|
9
|
-
var IconContext = require('@ant-design/icons/es/components/Context');
|
|
10
9
|
var util = require('@rc-component/util');
|
|
11
10
|
var useMemo = require('@rc-component/util/es/hooks/useMemo');
|
|
12
11
|
var Pagination$1 = require('@rc-component/pagination/es/locale/en_US');
|
|
@@ -16,13 +15,12 @@ var Trigger$1 = require('@rc-component/trigger');
|
|
|
16
15
|
var CSSMotion = require('@rc-component/motion');
|
|
17
16
|
var isEqual = require('@rc-component/util/es/isEqual');
|
|
18
17
|
var cssinjsUtils = require('@ant-design/cssinjs-utils');
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
var
|
|
23
|
-
var
|
|
18
|
+
var CheckCircleFilledSvg = require('@ant-design/icons-svg/lib/asn/CheckCircleFilled');
|
|
19
|
+
var CloseCircleFilledSvg = require('@ant-design/icons-svg/lib/asn/CloseCircleFilled');
|
|
20
|
+
var ExclamationCircleFilledSvg = require('@ant-design/icons-svg/lib/asn/ExclamationCircleFilled');
|
|
21
|
+
var InfoCircleFilledSvg = require('@ant-design/icons-svg/lib/asn/InfoCircleFilled');
|
|
22
|
+
var LoadingOutlinedSvg = require('@ant-design/icons-svg/lib/asn/LoadingOutlined');
|
|
24
23
|
var notification = require('@rc-component/notification');
|
|
25
|
-
var CloseOutlined = require('@ant-design/icons/es/icons/CloseOutlined');
|
|
26
24
|
var pickAttrs = require('@rc-component/util/es/pickAttrs');
|
|
27
25
|
var RcTooltip = require('@rc-component/tooltip');
|
|
28
26
|
require('@rc-component/form');
|
|
@@ -31,53 +29,54 @@ var useLayoutEffect = require('@rc-component/util/es/hooks/useLayoutEffect');
|
|
|
31
29
|
var isVisible = require('@rc-component/util/es/Dom/isVisible');
|
|
32
30
|
var ref = require('@rc-component/util/es/ref');
|
|
33
31
|
var raf = require('@rc-component/util/es/raf');
|
|
34
|
-
var
|
|
32
|
+
var RightOutlinedSvg = require('@ant-design/icons-svg/lib/asn/RightOutlined');
|
|
35
33
|
var RcCollapse = require('@rc-component/collapse');
|
|
36
34
|
var RcTree = require('@rc-component/tree');
|
|
37
|
-
var
|
|
38
|
-
var
|
|
39
|
-
var
|
|
35
|
+
var FileOutlinedSvg = require('@ant-design/icons-svg/lib/asn/FileOutlined');
|
|
36
|
+
var FolderOpenOutlinedSvg = require('@ant-design/icons-svg/lib/asn/FolderOpenOutlined');
|
|
37
|
+
var FolderOutlinedSvg = require('@ant-design/icons-svg/lib/asn/FolderOutlined');
|
|
40
38
|
var util$1 = require('@rc-component/tree/es/util');
|
|
41
39
|
var treeUtil = require('@rc-component/tree/es/utils/treeUtil');
|
|
42
|
-
var
|
|
43
|
-
var
|
|
44
|
-
var
|
|
45
|
-
var
|
|
46
|
-
var
|
|
40
|
+
var HolderOutlinedSvg = require('@ant-design/icons-svg/lib/asn/HolderOutlined');
|
|
41
|
+
var CaretDownFilledSvg = require('@ant-design/icons-svg/lib/asn/CaretDownFilled');
|
|
42
|
+
var MinusSquareOutlinedSvg = require('@ant-design/icons-svg/lib/asn/MinusSquareOutlined');
|
|
43
|
+
var PlusSquareOutlinedSvg = require('@ant-design/icons-svg/lib/asn/PlusSquareOutlined');
|
|
44
|
+
var EditOutlinedSvg = require('@ant-design/icons-svg/lib/asn/EditOutlined');
|
|
47
45
|
var ResizeObserver$1 = require('@rc-component/resize-observer');
|
|
48
46
|
require('@rc-component/util/es/Dom/canUseDom');
|
|
49
47
|
var styleChecker = require('@rc-component/util/es/Dom/styleChecker');
|
|
50
|
-
var
|
|
48
|
+
var EnterOutlinedSvg = require('@ant-design/icons-svg/lib/asn/EnterOutlined');
|
|
51
49
|
var KeyCode = require('@rc-component/util/es/KeyCode');
|
|
52
50
|
var RcTextArea = require('@rc-component/textarea');
|
|
53
51
|
var RcInput = require('@rc-component/input');
|
|
54
52
|
var focus$1 = require('@rc-component/util/es/Dom/focus');
|
|
55
|
-
var
|
|
56
|
-
var
|
|
53
|
+
var CheckOutlinedSvg = require('@ant-design/icons-svg/lib/asn/CheckOutlined');
|
|
54
|
+
var CopyOutlinedSvg = require('@ant-design/icons-svg/lib/asn/CopyOutlined');
|
|
55
|
+
var CloseOutlinedSvg = require('@ant-design/icons-svg/lib/asn/CloseOutlined');
|
|
57
56
|
var RcDrawer = require('@rc-component/drawer');
|
|
58
57
|
var useId$1 = require('@rc-component/util/es/hooks/useId');
|
|
59
|
-
var
|
|
60
|
-
var
|
|
58
|
+
var EllipsisOutlinedSvg = require('@ant-design/icons-svg/lib/asn/EllipsisOutlined');
|
|
59
|
+
var PlusOutlinedSvg = require('@ant-design/icons-svg/lib/asn/PlusOutlined');
|
|
61
60
|
var RcTabs = require('@rc-component/tabs');
|
|
62
61
|
var RcSwitch = require('@rc-component/switch');
|
|
63
62
|
var RcSelect = require('@rc-component/select');
|
|
64
|
-
var
|
|
65
|
-
var
|
|
63
|
+
var DownOutlinedSvg = require('@ant-design/icons-svg/lib/asn/DownOutlined');
|
|
64
|
+
var SearchOutlinedSvg = require('@ant-design/icons-svg/lib/asn/SearchOutlined');
|
|
66
65
|
var table = require('@rc-component/table');
|
|
67
66
|
var conductUtil = require('@rc-component/tree/es/utils/conductUtil');
|
|
68
67
|
var useControlledState = require('@rc-component/util/es/hooks/useControlledState');
|
|
69
|
-
var
|
|
68
|
+
var LeftOutlinedSvg = require('@ant-design/icons-svg/lib/asn/LeftOutlined');
|
|
70
69
|
var RcDropdown = require('@rc-component/dropdown');
|
|
71
70
|
var RcMenu = require('@rc-component/menu');
|
|
72
|
-
var
|
|
71
|
+
var BarsOutlinedSvg = require('@ant-design/icons-svg/lib/asn/BarsOutlined');
|
|
73
72
|
require('@rc-component/util/es/Dom/findDOMNode');
|
|
74
73
|
var useColumns = require('@rc-component/table/es/hooks/useColumns');
|
|
75
|
-
var
|
|
76
|
-
var
|
|
74
|
+
var DoubleLeftOutlinedSvg = require('@ant-design/icons-svg/lib/asn/DoubleLeftOutlined');
|
|
75
|
+
var DoubleRightOutlinedSvg = require('@ant-design/icons-svg/lib/asn/DoubleRightOutlined');
|
|
77
76
|
var RcPagination = require('@rc-component/pagination');
|
|
78
|
-
var
|
|
79
|
-
var
|
|
80
|
-
var
|
|
77
|
+
var FilterFilledSvg = require('@ant-design/icons-svg/lib/asn/FilterFilled');
|
|
78
|
+
var CaretDownOutlinedSvg = require('@ant-design/icons-svg/lib/asn/CaretDownOutlined');
|
|
79
|
+
var CaretUpOutlinedSvg = require('@ant-design/icons-svg/lib/asn/CaretUpOutlined');
|
|
81
80
|
|
|
82
81
|
function _interopNamespaceDefault(e) {
|
|
83
82
|
var n = Object.create(null);
|
|
@@ -117,7 +116,7 @@ function cc(names) {
|
|
|
117
116
|
}
|
|
118
117
|
|
|
119
118
|
var noop$2 = {
|
|
120
|
-
value: ()
|
|
119
|
+
value: function() {}
|
|
121
120
|
};
|
|
122
121
|
function dispatch() {
|
|
123
122
|
for(var i = 0, n = arguments.length, _ = {}, t; i < n; ++i){
|
|
@@ -12905,7 +12904,7 @@ const toPascalCase = (string)=>{
|
|
|
12905
12904
|
const LucideContext = React.createContext({});
|
|
12906
12905
|
const useLucideContext = ()=>React.useContext(LucideContext);
|
|
12907
12906
|
|
|
12908
|
-
const Icon = React.forwardRef(({ color, size, strokeWidth, absoluteStrokeWidth, className = "", children, iconNode, ...rest }, ref)=>{
|
|
12907
|
+
const Icon$1 = React.forwardRef(({ color, size, strokeWidth, absoluteStrokeWidth, className = "", children, iconNode, ...rest }, ref)=>{
|
|
12909
12908
|
const { size: contextSize = 24, strokeWidth: contextStrokeWidth = 2, absoluteStrokeWidth: contextAbsoluteStrokeWidth = false, color: contextColor = "currentColor", className: contextClass = "" } = useLucideContext() ?? {};
|
|
12910
12909
|
const calculatedStrokeWidth = absoluteStrokeWidth ?? contextAbsoluteStrokeWidth ? Number(strokeWidth ?? contextStrokeWidth) * 24 / Number(size ?? contextSize) : strokeWidth ?? contextStrokeWidth;
|
|
12911
12910
|
return React.createElement("svg", {
|
|
@@ -12929,7 +12928,7 @@ const Icon = React.forwardRef(({ color, size, strokeWidth, absoluteStrokeWidth,
|
|
|
12929
12928
|
});
|
|
12930
12929
|
|
|
12931
12930
|
const createLucideIcon = (iconName, iconNode)=>{
|
|
12932
|
-
const Component = React.forwardRef(({ className, ...props }, ref)=>React.createElement(Icon, {
|
|
12931
|
+
const Component = React.forwardRef(({ className, ...props }, ref)=>React.createElement(Icon$1, {
|
|
12933
12932
|
ref,
|
|
12934
12933
|
iconNode,
|
|
12935
12934
|
className: mergeClasses(`lucide-${toKebabCase(toPascalCase(iconName))}`, `lucide-${iconName}`, className),
|
|
@@ -12939,7 +12938,7 @@ const createLucideIcon = (iconName, iconNode)=>{
|
|
|
12939
12938
|
return Component;
|
|
12940
12939
|
};
|
|
12941
12940
|
|
|
12942
|
-
const __iconNode$
|
|
12941
|
+
const __iconNode$D = [
|
|
12943
12942
|
[
|
|
12944
12943
|
"path",
|
|
12945
12944
|
{
|
|
@@ -12955,9 +12954,9 @@ const __iconNode$C = [
|
|
|
12955
12954
|
}
|
|
12956
12955
|
]
|
|
12957
12956
|
];
|
|
12958
|
-
const ArrowLeft = createLucideIcon("arrow-left", __iconNode$
|
|
12957
|
+
const ArrowLeft = createLucideIcon("arrow-left", __iconNode$D);
|
|
12959
12958
|
|
|
12960
|
-
const __iconNode$
|
|
12959
|
+
const __iconNode$C = [
|
|
12961
12960
|
[
|
|
12962
12961
|
"path",
|
|
12963
12962
|
{
|
|
@@ -12973,9 +12972,9 @@ const __iconNode$B = [
|
|
|
12973
12972
|
}
|
|
12974
12973
|
]
|
|
12975
12974
|
];
|
|
12976
|
-
const ArrowRight = createLucideIcon("arrow-right", __iconNode$
|
|
12975
|
+
const ArrowRight = createLucideIcon("arrow-right", __iconNode$C);
|
|
12977
12976
|
|
|
12978
|
-
const __iconNode$
|
|
12977
|
+
const __iconNode$B = [
|
|
12979
12978
|
[
|
|
12980
12979
|
"path",
|
|
12981
12980
|
{
|
|
@@ -13023,9 +13022,9 @@ const __iconNode$A = [
|
|
|
13023
13022
|
}
|
|
13024
13023
|
]
|
|
13025
13024
|
];
|
|
13026
|
-
const Bot = createLucideIcon("bot", __iconNode$
|
|
13025
|
+
const Bot = createLucideIcon("bot", __iconNode$B);
|
|
13027
13026
|
|
|
13028
|
-
const __iconNode$
|
|
13027
|
+
const __iconNode$A = [
|
|
13029
13028
|
[
|
|
13030
13029
|
"path",
|
|
13031
13030
|
{
|
|
@@ -13059,9 +13058,9 @@ const __iconNode$z = [
|
|
|
13059
13058
|
}
|
|
13060
13059
|
]
|
|
13061
13060
|
];
|
|
13062
|
-
const Calendar = createLucideIcon("calendar", __iconNode$
|
|
13061
|
+
const Calendar = createLucideIcon("calendar", __iconNode$A);
|
|
13063
13062
|
|
|
13064
|
-
const __iconNode$
|
|
13063
|
+
const __iconNode$z = [
|
|
13065
13064
|
[
|
|
13066
13065
|
"path",
|
|
13067
13066
|
{
|
|
@@ -13118,9 +13117,9 @@ const __iconNode$y = [
|
|
|
13118
13117
|
}
|
|
13119
13118
|
]
|
|
13120
13119
|
];
|
|
13121
|
-
const ChartNetwork = createLucideIcon("chart-network", __iconNode$
|
|
13120
|
+
const ChartNetwork = createLucideIcon("chart-network", __iconNode$z);
|
|
13122
13121
|
|
|
13123
|
-
const __iconNode$
|
|
13122
|
+
const __iconNode$y = [
|
|
13124
13123
|
[
|
|
13125
13124
|
"path",
|
|
13126
13125
|
{
|
|
@@ -13129,9 +13128,9 @@ const __iconNode$x = [
|
|
|
13129
13128
|
}
|
|
13130
13129
|
]
|
|
13131
13130
|
];
|
|
13132
|
-
const ChevronDown = createLucideIcon("chevron-down", __iconNode$
|
|
13131
|
+
const ChevronDown = createLucideIcon("chevron-down", __iconNode$y);
|
|
13133
13132
|
|
|
13134
|
-
const __iconNode$
|
|
13133
|
+
const __iconNode$x = [
|
|
13135
13134
|
[
|
|
13136
13135
|
"path",
|
|
13137
13136
|
{
|
|
@@ -13140,9 +13139,9 @@ const __iconNode$w = [
|
|
|
13140
13139
|
}
|
|
13141
13140
|
]
|
|
13142
13141
|
];
|
|
13143
|
-
const ChevronRight = createLucideIcon("chevron-right", __iconNode$
|
|
13142
|
+
const ChevronRight = createLucideIcon("chevron-right", __iconNode$x);
|
|
13144
13143
|
|
|
13145
|
-
const __iconNode$
|
|
13144
|
+
const __iconNode$w = [
|
|
13146
13145
|
[
|
|
13147
13146
|
"path",
|
|
13148
13147
|
{
|
|
@@ -13158,9 +13157,9 @@ const __iconNode$v = [
|
|
|
13158
13157
|
}
|
|
13159
13158
|
]
|
|
13160
13159
|
];
|
|
13161
|
-
const ChevronsDown = createLucideIcon("chevrons-down", __iconNode$
|
|
13160
|
+
const ChevronsDown = createLucideIcon("chevrons-down", __iconNode$w);
|
|
13162
13161
|
|
|
13163
|
-
const __iconNode$
|
|
13162
|
+
const __iconNode$v = [
|
|
13164
13163
|
[
|
|
13165
13164
|
"path",
|
|
13166
13165
|
{
|
|
@@ -13176,9 +13175,9 @@ const __iconNode$u = [
|
|
|
13176
13175
|
}
|
|
13177
13176
|
]
|
|
13178
13177
|
];
|
|
13179
|
-
const ChevronsUp = createLucideIcon("chevrons-up", __iconNode$
|
|
13178
|
+
const ChevronsUp = createLucideIcon("chevrons-up", __iconNode$v);
|
|
13180
13179
|
|
|
13181
|
-
const __iconNode$
|
|
13180
|
+
const __iconNode$u = [
|
|
13182
13181
|
[
|
|
13183
13182
|
"circle",
|
|
13184
13183
|
{
|
|
@@ -13209,9 +13208,9 @@ const __iconNode$t = [
|
|
|
13209
13208
|
}
|
|
13210
13209
|
]
|
|
13211
13210
|
];
|
|
13212
|
-
const CircleAlert = createLucideIcon("circle-alert", __iconNode$
|
|
13211
|
+
const CircleAlert = createLucideIcon("circle-alert", __iconNode$u);
|
|
13213
13212
|
|
|
13214
|
-
const __iconNode$
|
|
13213
|
+
const __iconNode$t = [
|
|
13215
13214
|
[
|
|
13216
13215
|
"path",
|
|
13217
13216
|
{
|
|
@@ -13227,9 +13226,9 @@ const __iconNode$s = [
|
|
|
13227
13226
|
}
|
|
13228
13227
|
]
|
|
13229
13228
|
];
|
|
13230
|
-
const CircleCheckBig = createLucideIcon("circle-check-big", __iconNode$
|
|
13229
|
+
const CircleCheckBig = createLucideIcon("circle-check-big", __iconNode$t);
|
|
13231
13230
|
|
|
13232
|
-
const __iconNode$
|
|
13231
|
+
const __iconNode$s = [
|
|
13233
13232
|
[
|
|
13234
13233
|
"circle",
|
|
13235
13234
|
{
|
|
@@ -13254,9 +13253,9 @@ const __iconNode$r = [
|
|
|
13254
13253
|
}
|
|
13255
13254
|
]
|
|
13256
13255
|
];
|
|
13257
|
-
const CircleDollarSign = createLucideIcon("circle-dollar-sign", __iconNode$
|
|
13256
|
+
const CircleDollarSign = createLucideIcon("circle-dollar-sign", __iconNode$s);
|
|
13258
13257
|
|
|
13259
|
-
const __iconNode$
|
|
13258
|
+
const __iconNode$r = [
|
|
13260
13259
|
[
|
|
13261
13260
|
"circle",
|
|
13262
13261
|
{
|
|
@@ -13274,9 +13273,9 @@ const __iconNode$q = [
|
|
|
13274
13273
|
}
|
|
13275
13274
|
]
|
|
13276
13275
|
];
|
|
13277
|
-
const Clock = createLucideIcon("clock", __iconNode$
|
|
13276
|
+
const Clock = createLucideIcon("clock", __iconNode$r);
|
|
13278
13277
|
|
|
13279
|
-
const __iconNode$
|
|
13278
|
+
const __iconNode$q = [
|
|
13280
13279
|
[
|
|
13281
13280
|
"rect",
|
|
13282
13281
|
{
|
|
@@ -13297,9 +13296,9 @@ const __iconNode$p = [
|
|
|
13297
13296
|
}
|
|
13298
13297
|
]
|
|
13299
13298
|
];
|
|
13300
|
-
const Copy = createLucideIcon("copy", __iconNode$
|
|
13299
|
+
const Copy = createLucideIcon("copy", __iconNode$q);
|
|
13301
13300
|
|
|
13302
|
-
const __iconNode$
|
|
13301
|
+
const __iconNode$p = [
|
|
13303
13302
|
[
|
|
13304
13303
|
"path",
|
|
13305
13304
|
{
|
|
@@ -13407,9 +13406,9 @@ const __iconNode$o = [
|
|
|
13407
13406
|
}
|
|
13408
13407
|
]
|
|
13409
13408
|
];
|
|
13410
|
-
const Cpu = createLucideIcon("cpu", __iconNode$
|
|
13409
|
+
const Cpu = createLucideIcon("cpu", __iconNode$p);
|
|
13411
13410
|
|
|
13412
|
-
const __iconNode$
|
|
13411
|
+
const __iconNode$o = [
|
|
13413
13412
|
[
|
|
13414
13413
|
"line",
|
|
13415
13414
|
{
|
|
@@ -13428,9 +13427,9 @@ const __iconNode$n = [
|
|
|
13428
13427
|
}
|
|
13429
13428
|
]
|
|
13430
13429
|
];
|
|
13431
|
-
const DollarSign = createLucideIcon("dollar-sign", __iconNode$
|
|
13430
|
+
const DollarSign = createLucideIcon("dollar-sign", __iconNode$o);
|
|
13432
13431
|
|
|
13433
|
-
const __iconNode$
|
|
13432
|
+
const __iconNode$n = [
|
|
13434
13433
|
[
|
|
13435
13434
|
"path",
|
|
13436
13435
|
{
|
|
@@ -13460,9 +13459,9 @@ const __iconNode$m = [
|
|
|
13460
13459
|
}
|
|
13461
13460
|
]
|
|
13462
13461
|
];
|
|
13463
|
-
const FileInput = createLucideIcon("file-input", __iconNode$
|
|
13462
|
+
const FileInput = createLucideIcon("file-input", __iconNode$n);
|
|
13464
13463
|
|
|
13465
|
-
const __iconNode$
|
|
13464
|
+
const __iconNode$m = [
|
|
13466
13465
|
[
|
|
13467
13466
|
"path",
|
|
13468
13467
|
{
|
|
@@ -13492,9 +13491,9 @@ const __iconNode$l = [
|
|
|
13492
13491
|
}
|
|
13493
13492
|
]
|
|
13494
13493
|
];
|
|
13495
|
-
const FileOutput = createLucideIcon("file-output", __iconNode$
|
|
13494
|
+
const FileOutput = createLucideIcon("file-output", __iconNode$m);
|
|
13496
13495
|
|
|
13497
|
-
const __iconNode$
|
|
13496
|
+
const __iconNode$l = [
|
|
13498
13497
|
[
|
|
13499
13498
|
"path",
|
|
13500
13499
|
{
|
|
@@ -13552,9 +13551,9 @@ const __iconNode$k = [
|
|
|
13552
13551
|
}
|
|
13553
13552
|
]
|
|
13554
13553
|
];
|
|
13555
|
-
const FoldVertical = createLucideIcon("fold-vertical", __iconNode$
|
|
13554
|
+
const FoldVertical = createLucideIcon("fold-vertical", __iconNode$l);
|
|
13556
13555
|
|
|
13557
|
-
const __iconNode$
|
|
13556
|
+
const __iconNode$k = [
|
|
13558
13557
|
[
|
|
13559
13558
|
"path",
|
|
13560
13559
|
{
|
|
@@ -13570,9 +13569,9 @@ const __iconNode$j = [
|
|
|
13570
13569
|
}
|
|
13571
13570
|
]
|
|
13572
13571
|
];
|
|
13573
|
-
const Gauge = createLucideIcon("gauge", __iconNode$
|
|
13572
|
+
const Gauge = createLucideIcon("gauge", __iconNode$k);
|
|
13574
13573
|
|
|
13575
|
-
const __iconNode$
|
|
13574
|
+
const __iconNode$j = [
|
|
13576
13575
|
[
|
|
13577
13576
|
"line",
|
|
13578
13577
|
{
|
|
@@ -13614,9 +13613,9 @@ const __iconNode$i = [
|
|
|
13614
13613
|
}
|
|
13615
13614
|
]
|
|
13616
13615
|
];
|
|
13617
|
-
const Hash = createLucideIcon("hash", __iconNode$
|
|
13616
|
+
const Hash = createLucideIcon("hash", __iconNode$j);
|
|
13618
13617
|
|
|
13619
|
-
const __iconNode$
|
|
13618
|
+
const __iconNode$i = [
|
|
13620
13619
|
[
|
|
13621
13620
|
"circle",
|
|
13622
13621
|
{
|
|
@@ -13641,9 +13640,9 @@ const __iconNode$h = [
|
|
|
13641
13640
|
}
|
|
13642
13641
|
]
|
|
13643
13642
|
];
|
|
13644
|
-
const Info = createLucideIcon("info", __iconNode$
|
|
13643
|
+
const Info = createLucideIcon("info", __iconNode$i);
|
|
13645
13644
|
|
|
13646
|
-
const __iconNode$
|
|
13645
|
+
const __iconNode$h = [
|
|
13647
13646
|
[
|
|
13648
13647
|
"path",
|
|
13649
13648
|
{
|
|
@@ -13680,9 +13679,9 @@ const __iconNode$g = [
|
|
|
13680
13679
|
}
|
|
13681
13680
|
]
|
|
13682
13681
|
];
|
|
13683
|
-
const ListChecks = createLucideIcon("list-checks", __iconNode$
|
|
13682
|
+
const ListChecks = createLucideIcon("list-checks", __iconNode$h);
|
|
13684
13683
|
|
|
13685
|
-
const __iconNode$
|
|
13684
|
+
const __iconNode$g = [
|
|
13686
13685
|
[
|
|
13687
13686
|
"path",
|
|
13688
13687
|
{
|
|
@@ -13712,9 +13711,9 @@ const __iconNode$f = [
|
|
|
13712
13711
|
}
|
|
13713
13712
|
]
|
|
13714
13713
|
];
|
|
13715
|
-
const MessageSquareText = createLucideIcon("message-square-text", __iconNode$
|
|
13714
|
+
const MessageSquareText = createLucideIcon("message-square-text", __iconNode$g);
|
|
13716
13715
|
|
|
13717
|
-
const __iconNode$
|
|
13716
|
+
const __iconNode$f = [
|
|
13718
13717
|
[
|
|
13719
13718
|
"path",
|
|
13720
13719
|
{
|
|
@@ -13730,9 +13729,9 @@ const __iconNode$e = [
|
|
|
13730
13729
|
}
|
|
13731
13730
|
]
|
|
13732
13731
|
];
|
|
13733
|
-
const MessagesSquare = createLucideIcon("messages-square", __iconNode$
|
|
13732
|
+
const MessagesSquare = createLucideIcon("messages-square", __iconNode$f);
|
|
13734
13733
|
|
|
13735
|
-
const __iconNode$
|
|
13734
|
+
const __iconNode$e = [
|
|
13736
13735
|
[
|
|
13737
13736
|
"rect",
|
|
13738
13737
|
{
|
|
@@ -13752,9 +13751,9 @@ const __iconNode$d = [
|
|
|
13752
13751
|
}
|
|
13753
13752
|
]
|
|
13754
13753
|
];
|
|
13755
|
-
const PanelLeft = createLucideIcon("panel-left", __iconNode$
|
|
13754
|
+
const PanelLeft = createLucideIcon("panel-left", __iconNode$e);
|
|
13756
13755
|
|
|
13757
|
-
const __iconNode$
|
|
13756
|
+
const __iconNode$d = [
|
|
13758
13757
|
[
|
|
13759
13758
|
"rect",
|
|
13760
13759
|
{
|
|
@@ -13781,9 +13780,9 @@ const __iconNode$c = [
|
|
|
13781
13780
|
}
|
|
13782
13781
|
]
|
|
13783
13782
|
];
|
|
13784
|
-
const PanelRightOpen = createLucideIcon("panel-right-open", __iconNode$
|
|
13783
|
+
const PanelRightOpen = createLucideIcon("panel-right-open", __iconNode$d);
|
|
13785
13784
|
|
|
13786
|
-
const __iconNode$
|
|
13785
|
+
const __iconNode$c = [
|
|
13787
13786
|
[
|
|
13788
13787
|
"path",
|
|
13789
13788
|
{
|
|
@@ -13813,9 +13812,9 @@ const __iconNode$b = [
|
|
|
13813
13812
|
}
|
|
13814
13813
|
]
|
|
13815
13814
|
];
|
|
13816
|
-
const RefreshCw = createLucideIcon("refresh-cw", __iconNode$
|
|
13815
|
+
const RefreshCw = createLucideIcon("refresh-cw", __iconNode$c);
|
|
13817
13816
|
|
|
13818
|
-
const __iconNode$
|
|
13817
|
+
const __iconNode$b = [
|
|
13819
13818
|
[
|
|
13820
13819
|
"path",
|
|
13821
13820
|
{
|
|
@@ -13852,9 +13851,9 @@ const __iconNode$a = [
|
|
|
13852
13851
|
}
|
|
13853
13852
|
]
|
|
13854
13853
|
];
|
|
13855
|
-
const Scale = createLucideIcon("scale", __iconNode$
|
|
13854
|
+
const Scale = createLucideIcon("scale", __iconNode$b);
|
|
13856
13855
|
|
|
13857
|
-
const __iconNode$
|
|
13856
|
+
const __iconNode$a = [
|
|
13858
13857
|
[
|
|
13859
13858
|
"path",
|
|
13860
13859
|
{
|
|
@@ -13888,9 +13887,9 @@ const __iconNode$9 = [
|
|
|
13888
13887
|
}
|
|
13889
13888
|
]
|
|
13890
13889
|
];
|
|
13891
|
-
const Settings2 = createLucideIcon("settings-2", __iconNode$
|
|
13890
|
+
const Settings2 = createLucideIcon("settings-2", __iconNode$a);
|
|
13892
13891
|
|
|
13893
|
-
const __iconNode$
|
|
13892
|
+
const __iconNode$9 = [
|
|
13894
13893
|
[
|
|
13895
13894
|
"path",
|
|
13896
13895
|
{
|
|
@@ -13913,9 +13912,9 @@ const __iconNode$8 = [
|
|
|
13913
13912
|
}
|
|
13914
13913
|
]
|
|
13915
13914
|
];
|
|
13916
|
-
const Share = createLucideIcon("share", __iconNode$
|
|
13915
|
+
const Share = createLucideIcon("share", __iconNode$9);
|
|
13917
13916
|
|
|
13918
|
-
const __iconNode$
|
|
13917
|
+
const __iconNode$8 = [
|
|
13919
13918
|
[
|
|
13920
13919
|
"path",
|
|
13921
13920
|
{
|
|
@@ -13924,9 +13923,9 @@ const __iconNode$7 = [
|
|
|
13924
13923
|
}
|
|
13925
13924
|
]
|
|
13926
13925
|
];
|
|
13927
|
-
const Shield = createLucideIcon("shield", __iconNode$
|
|
13926
|
+
const Shield = createLucideIcon("shield", __iconNode$8);
|
|
13928
13927
|
|
|
13929
|
-
const __iconNode$
|
|
13928
|
+
const __iconNode$7 = [
|
|
13930
13929
|
[
|
|
13931
13930
|
"path",
|
|
13932
13931
|
{
|
|
@@ -13952,9 +13951,9 @@ const __iconNode$6 = [
|
|
|
13952
13951
|
}
|
|
13953
13952
|
]
|
|
13954
13953
|
];
|
|
13955
|
-
const Tags = createLucideIcon("tags", __iconNode$
|
|
13954
|
+
const Tags = createLucideIcon("tags", __iconNode$7);
|
|
13956
13955
|
|
|
13957
|
-
const __iconNode$
|
|
13956
|
+
const __iconNode$6 = [
|
|
13958
13957
|
[
|
|
13959
13958
|
"circle",
|
|
13960
13959
|
{
|
|
@@ -13983,9 +13982,9 @@ const __iconNode$5 = [
|
|
|
13983
13982
|
}
|
|
13984
13983
|
]
|
|
13985
13984
|
];
|
|
13986
|
-
const Target = createLucideIcon("target", __iconNode$
|
|
13985
|
+
const Target = createLucideIcon("target", __iconNode$6);
|
|
13987
13986
|
|
|
13988
|
-
const __iconNode$
|
|
13987
|
+
const __iconNode$5 = [
|
|
13989
13988
|
[
|
|
13990
13989
|
"line",
|
|
13991
13990
|
{
|
|
@@ -14016,7 +14015,32 @@ const __iconNode$4 = [
|
|
|
14016
14015
|
}
|
|
14017
14016
|
]
|
|
14018
14017
|
];
|
|
14019
|
-
const Timer = createLucideIcon("timer", __iconNode$
|
|
14018
|
+
const Timer = createLucideIcon("timer", __iconNode$5);
|
|
14019
|
+
|
|
14020
|
+
const __iconNode$4 = [
|
|
14021
|
+
[
|
|
14022
|
+
"path",
|
|
14023
|
+
{
|
|
14024
|
+
d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
|
|
14025
|
+
key: "wmoenq"
|
|
14026
|
+
}
|
|
14027
|
+
],
|
|
14028
|
+
[
|
|
14029
|
+
"path",
|
|
14030
|
+
{
|
|
14031
|
+
d: "M12 9v4",
|
|
14032
|
+
key: "juzpu7"
|
|
14033
|
+
}
|
|
14034
|
+
],
|
|
14035
|
+
[
|
|
14036
|
+
"path",
|
|
14037
|
+
{
|
|
14038
|
+
d: "M12 17h.01",
|
|
14039
|
+
key: "p32p05"
|
|
14040
|
+
}
|
|
14041
|
+
]
|
|
14042
|
+
];
|
|
14043
|
+
const TriangleAlert = createLucideIcon("triangle-alert", __iconNode$4);
|
|
14020
14044
|
|
|
14021
14045
|
const __iconNode$3 = [
|
|
14022
14046
|
[
|
|
@@ -15156,14 +15180,14 @@ var createCache = function createCache(options) {
|
|
|
15156
15180
|
return cache;
|
|
15157
15181
|
};
|
|
15158
15182
|
|
|
15159
|
-
function _extends$
|
|
15160
|
-
return _extends$
|
|
15183
|
+
function _extends$v() {
|
|
15184
|
+
return _extends$v = Object.assign ? Object.assign.bind() : function(n) {
|
|
15161
15185
|
for(var e = 1; e < arguments.length; e++){
|
|
15162
15186
|
var t = arguments[e];
|
|
15163
15187
|
for(var r in t)({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
15164
15188
|
}
|
|
15165
15189
|
return n;
|
|
15166
|
-
}, _extends$
|
|
15190
|
+
}, _extends$v.apply(null, arguments);
|
|
15167
15191
|
}
|
|
15168
15192
|
|
|
15169
15193
|
var reactIs = {exports: {}};
|
|
@@ -15858,7 +15882,7 @@ var getTheme = function getTheme(outerTheme, theme) {
|
|
|
15858
15882
|
var mergedTheme = theme(outerTheme);
|
|
15859
15883
|
return mergedTheme;
|
|
15860
15884
|
}
|
|
15861
|
-
return _extends$
|
|
15885
|
+
return _extends$v({}, outerTheme, theme);
|
|
15862
15886
|
};
|
|
15863
15887
|
var createCacheWithTheme = /* #__PURE__ */ weakMemoize(function(outerTheme) {
|
|
15864
15888
|
return weakMemoize(function(theme) {
|
|
@@ -16634,7 +16658,7 @@ var createStyled = function createStyled(tag, options) {
|
|
|
16634
16658
|
}
|
|
16635
16659
|
});
|
|
16636
16660
|
Styled.withComponent = function(nextTag, nextOptions) {
|
|
16637
|
-
var newStyled = createStyled(nextTag, _extends$
|
|
16661
|
+
var newStyled = createStyled(nextTag, _extends$v({}, options, nextOptions, {
|
|
16638
16662
|
shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
|
|
16639
16663
|
}));
|
|
16640
16664
|
return newStyled.apply(void 0, styles);
|
|
@@ -21701,7 +21725,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
21701
21725
|
}
|
|
21702
21726
|
};
|
|
21703
21727
|
}
|
|
21704
|
-
const warning$
|
|
21728
|
+
const warning$2 = _warning;
|
|
21705
21729
|
const WarningContext = /*#__PURE__*/ React__namespace.createContext({});
|
|
21706
21730
|
/**
|
|
21707
21731
|
* This is a hook but we not named as `useWarning`
|
|
@@ -21725,7 +21749,7 @@ const WarningContext = /*#__PURE__*/ React__namespace.createContext({});
|
|
|
21725
21749
|
console.warn('[antd] There exists deprecated usage in your code:', deprecatedWarnList);
|
|
21726
21750
|
}
|
|
21727
21751
|
} else {
|
|
21728
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
21752
|
+
process.env.NODE_ENV !== "production" ? warning$2(valid, component, message) : void 0;
|
|
21729
21753
|
}
|
|
21730
21754
|
}
|
|
21731
21755
|
};
|
|
@@ -22785,6 +22809,377 @@ const useResetIconStyle = (iconPrefixCls, csp)=>{
|
|
|
22785
22809
|
}, ()=>genIconStyle(iconPrefixCls));
|
|
22786
22810
|
};
|
|
22787
22811
|
|
|
22812
|
+
const IconContext = /*#__PURE__*/ React.createContext({});
|
|
22813
|
+
|
|
22814
|
+
function camelCase(input) {
|
|
22815
|
+
return input.replace(/-(.)/g, (match, g)=>g.toUpperCase());
|
|
22816
|
+
}
|
|
22817
|
+
function warning$1(valid, message) {
|
|
22818
|
+
util.warning(valid, `[@ant-design/icons] ${message}`);
|
|
22819
|
+
}
|
|
22820
|
+
function isIconDefinition(target) {
|
|
22821
|
+
return typeof target === 'object' && typeof target.name === 'string' && typeof target.theme === 'string' && (typeof target.icon === 'object' || typeof target.icon === 'function');
|
|
22822
|
+
}
|
|
22823
|
+
function normalizeAttrs(attrs = {}) {
|
|
22824
|
+
return Object.keys(attrs).reduce((acc, key)=>{
|
|
22825
|
+
const val = attrs[key];
|
|
22826
|
+
switch(key){
|
|
22827
|
+
case 'class':
|
|
22828
|
+
acc.className = val;
|
|
22829
|
+
delete acc.class;
|
|
22830
|
+
break;
|
|
22831
|
+
default:
|
|
22832
|
+
delete acc[key];
|
|
22833
|
+
acc[camelCase(key)] = val;
|
|
22834
|
+
}
|
|
22835
|
+
return acc;
|
|
22836
|
+
}, {});
|
|
22837
|
+
}
|
|
22838
|
+
function generate(node, key, rootProps) {
|
|
22839
|
+
if (!rootProps) {
|
|
22840
|
+
return /*#__PURE__*/ React.createElement(node.tag, {
|
|
22841
|
+
key,
|
|
22842
|
+
...normalizeAttrs(node.attrs)
|
|
22843
|
+
}, (node.children || []).map((child, index)=>generate(child, `${key}-${node.tag}-${index}`)));
|
|
22844
|
+
}
|
|
22845
|
+
return /*#__PURE__*/ React.createElement(node.tag, {
|
|
22846
|
+
key,
|
|
22847
|
+
...normalizeAttrs(node.attrs),
|
|
22848
|
+
...rootProps
|
|
22849
|
+
}, (node.children || []).map((child, index)=>generate(child, `${key}-${node.tag}-${index}`)));
|
|
22850
|
+
}
|
|
22851
|
+
function getSecondaryColor(primaryColor) {
|
|
22852
|
+
// choose the second color
|
|
22853
|
+
return colors.generate(primaryColor)[0];
|
|
22854
|
+
}
|
|
22855
|
+
function normalizeTwoToneColors(twoToneColor) {
|
|
22856
|
+
if (!twoToneColor) {
|
|
22857
|
+
return [];
|
|
22858
|
+
}
|
|
22859
|
+
return Array.isArray(twoToneColor) ? twoToneColor : [
|
|
22860
|
+
twoToneColor
|
|
22861
|
+
];
|
|
22862
|
+
}
|
|
22863
|
+
const iconStyles = `
|
|
22864
|
+
.anticon {
|
|
22865
|
+
display: inline-flex;
|
|
22866
|
+
align-items: center;
|
|
22867
|
+
color: inherit;
|
|
22868
|
+
font-style: normal;
|
|
22869
|
+
line-height: 0;
|
|
22870
|
+
text-align: center;
|
|
22871
|
+
text-transform: none;
|
|
22872
|
+
vertical-align: -0.125em;
|
|
22873
|
+
text-rendering: optimizeLegibility;
|
|
22874
|
+
-webkit-font-smoothing: antialiased;
|
|
22875
|
+
-moz-osx-font-smoothing: grayscale;
|
|
22876
|
+
}
|
|
22877
|
+
|
|
22878
|
+
.anticon > * {
|
|
22879
|
+
line-height: 1;
|
|
22880
|
+
}
|
|
22881
|
+
|
|
22882
|
+
.anticon svg {
|
|
22883
|
+
display: inline-block;
|
|
22884
|
+
vertical-align: inherit;
|
|
22885
|
+
}
|
|
22886
|
+
|
|
22887
|
+
.anticon::before {
|
|
22888
|
+
display: none;
|
|
22889
|
+
}
|
|
22890
|
+
|
|
22891
|
+
.anticon .anticon-icon {
|
|
22892
|
+
display: block;
|
|
22893
|
+
}
|
|
22894
|
+
|
|
22895
|
+
.anticon[tabindex] {
|
|
22896
|
+
cursor: pointer;
|
|
22897
|
+
}
|
|
22898
|
+
|
|
22899
|
+
.anticon-spin {
|
|
22900
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
22901
|
+
animation: loadingCircle 1s infinite linear;
|
|
22902
|
+
}
|
|
22903
|
+
|
|
22904
|
+
@-webkit-keyframes loadingCircle {
|
|
22905
|
+
100% {
|
|
22906
|
+
-webkit-transform: rotate(360deg);
|
|
22907
|
+
transform: rotate(360deg);
|
|
22908
|
+
}
|
|
22909
|
+
}
|
|
22910
|
+
|
|
22911
|
+
@keyframes loadingCircle {
|
|
22912
|
+
100% {
|
|
22913
|
+
-webkit-transform: rotate(360deg);
|
|
22914
|
+
transform: rotate(360deg);
|
|
22915
|
+
}
|
|
22916
|
+
}
|
|
22917
|
+
`;
|
|
22918
|
+
const useInsertStyles = (eleRef)=>{
|
|
22919
|
+
const { csp, prefixCls, layer } = React.useContext(IconContext);
|
|
22920
|
+
let mergedStyleStr = iconStyles;
|
|
22921
|
+
if (prefixCls) {
|
|
22922
|
+
mergedStyleStr = mergedStyleStr.replace(/anticon/g, prefixCls);
|
|
22923
|
+
}
|
|
22924
|
+
if (layer) {
|
|
22925
|
+
mergedStyleStr = `@layer ${layer} {\n${mergedStyleStr}\n}`;
|
|
22926
|
+
}
|
|
22927
|
+
React.useEffect(()=>{
|
|
22928
|
+
const ele = eleRef.current;
|
|
22929
|
+
const shadowRoot = util.getShadowRoot(ele);
|
|
22930
|
+
util.updateCSS(mergedStyleStr, '@ant-design-icons', {
|
|
22931
|
+
prepend: !layer,
|
|
22932
|
+
csp,
|
|
22933
|
+
attachTo: shadowRoot
|
|
22934
|
+
});
|
|
22935
|
+
}, []);
|
|
22936
|
+
};
|
|
22937
|
+
|
|
22938
|
+
const twoToneColorPalette = {
|
|
22939
|
+
primaryColor: '#333',
|
|
22940
|
+
secondaryColor: '#E6E6E6',
|
|
22941
|
+
calculated: false
|
|
22942
|
+
};
|
|
22943
|
+
function setTwoToneColors({ primaryColor, secondaryColor }) {
|
|
22944
|
+
twoToneColorPalette.primaryColor = primaryColor;
|
|
22945
|
+
twoToneColorPalette.secondaryColor = secondaryColor || getSecondaryColor(primaryColor);
|
|
22946
|
+
twoToneColorPalette.calculated = !!secondaryColor;
|
|
22947
|
+
}
|
|
22948
|
+
function getTwoToneColors() {
|
|
22949
|
+
return {
|
|
22950
|
+
...twoToneColorPalette
|
|
22951
|
+
};
|
|
22952
|
+
}
|
|
22953
|
+
const IconBase = (props)=>{
|
|
22954
|
+
const { icon, className, onClick, style, primaryColor, secondaryColor, ...restProps } = props;
|
|
22955
|
+
const svgRef = React__namespace.useRef(null);
|
|
22956
|
+
let colors = twoToneColorPalette;
|
|
22957
|
+
if (primaryColor) {
|
|
22958
|
+
colors = {
|
|
22959
|
+
primaryColor,
|
|
22960
|
+
secondaryColor: secondaryColor || getSecondaryColor(primaryColor)
|
|
22961
|
+
};
|
|
22962
|
+
}
|
|
22963
|
+
useInsertStyles(svgRef);
|
|
22964
|
+
warning$1(isIconDefinition(icon), `icon should be icon definiton, but got ${icon}`);
|
|
22965
|
+
if (!isIconDefinition(icon)) {
|
|
22966
|
+
return null;
|
|
22967
|
+
}
|
|
22968
|
+
let target = icon;
|
|
22969
|
+
if (target && typeof target.icon === 'function') {
|
|
22970
|
+
target = {
|
|
22971
|
+
...target,
|
|
22972
|
+
icon: target.icon(colors.primaryColor, colors.secondaryColor)
|
|
22973
|
+
};
|
|
22974
|
+
}
|
|
22975
|
+
return generate(target.icon, `svg-${target.name}`, {
|
|
22976
|
+
className,
|
|
22977
|
+
onClick,
|
|
22978
|
+
style,
|
|
22979
|
+
'data-icon': target.name,
|
|
22980
|
+
width: '1em',
|
|
22981
|
+
height: '1em',
|
|
22982
|
+
fill: 'currentColor',
|
|
22983
|
+
'aria-hidden': 'true',
|
|
22984
|
+
...restProps,
|
|
22985
|
+
ref: svgRef
|
|
22986
|
+
});
|
|
22987
|
+
};
|
|
22988
|
+
IconBase.displayName = 'IconReact';
|
|
22989
|
+
IconBase.getTwoToneColors = getTwoToneColors;
|
|
22990
|
+
IconBase.setTwoToneColors = setTwoToneColors;
|
|
22991
|
+
|
|
22992
|
+
function setTwoToneColor(twoToneColor) {
|
|
22993
|
+
const [primaryColor, secondaryColor] = normalizeTwoToneColors(twoToneColor);
|
|
22994
|
+
return IconBase.setTwoToneColors({
|
|
22995
|
+
primaryColor,
|
|
22996
|
+
secondaryColor
|
|
22997
|
+
});
|
|
22998
|
+
}
|
|
22999
|
+
function getTwoToneColor() {
|
|
23000
|
+
const colors = IconBase.getTwoToneColors();
|
|
23001
|
+
if (!colors.calculated) {
|
|
23002
|
+
return colors.primaryColor;
|
|
23003
|
+
}
|
|
23004
|
+
return [
|
|
23005
|
+
colors.primaryColor,
|
|
23006
|
+
colors.secondaryColor
|
|
23007
|
+
];
|
|
23008
|
+
}
|
|
23009
|
+
|
|
23010
|
+
function _extends$u() {
|
|
23011
|
+
_extends$u = Object.assign ? Object.assign.bind() : function(target) {
|
|
23012
|
+
for(var i = 1; i < arguments.length; i++){
|
|
23013
|
+
var source = arguments[i];
|
|
23014
|
+
for(var key in source){
|
|
23015
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
23016
|
+
target[key] = source[key];
|
|
23017
|
+
}
|
|
23018
|
+
}
|
|
23019
|
+
}
|
|
23020
|
+
return target;
|
|
23021
|
+
};
|
|
23022
|
+
return _extends$u.apply(this, arguments);
|
|
23023
|
+
}
|
|
23024
|
+
// Initial setting
|
|
23025
|
+
// should move it to antd main repo?
|
|
23026
|
+
setTwoToneColor(colors.blue.primary);
|
|
23027
|
+
// https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34757#issuecomment-488848720
|
|
23028
|
+
const Icon = /*#__PURE__*/ React__namespace.forwardRef((props, ref)=>{
|
|
23029
|
+
const { // affect outter <i>...</i>
|
|
23030
|
+
className, // affect inner <svg>...</svg>
|
|
23031
|
+
icon, spin, rotate, tabIndex, onClick, // other
|
|
23032
|
+
twoToneColor, ...restProps } = props;
|
|
23033
|
+
const { prefixCls = 'anticon', rootClassName } = React__namespace.useContext(IconContext);
|
|
23034
|
+
const classString = clsx(rootClassName, prefixCls, {
|
|
23035
|
+
[`${prefixCls}-${icon.name}`]: !!icon.name,
|
|
23036
|
+
[`${prefixCls}-spin`]: !!spin || icon.name === 'loading'
|
|
23037
|
+
}, className);
|
|
23038
|
+
let iconTabIndex = tabIndex;
|
|
23039
|
+
if (iconTabIndex === undefined && onClick) {
|
|
23040
|
+
iconTabIndex = -1;
|
|
23041
|
+
}
|
|
23042
|
+
const svgStyle = rotate ? {
|
|
23043
|
+
msTransform: `rotate(${rotate}deg)`,
|
|
23044
|
+
transform: `rotate(${rotate}deg)`
|
|
23045
|
+
} : undefined;
|
|
23046
|
+
const [primaryColor, secondaryColor] = normalizeTwoToneColors(twoToneColor);
|
|
23047
|
+
return /*#__PURE__*/ React__namespace.createElement("span", _extends$u({
|
|
23048
|
+
role: "img",
|
|
23049
|
+
"aria-label": icon.name
|
|
23050
|
+
}, restProps, {
|
|
23051
|
+
ref: ref,
|
|
23052
|
+
tabIndex: iconTabIndex,
|
|
23053
|
+
onClick: onClick,
|
|
23054
|
+
className: classString
|
|
23055
|
+
}), /*#__PURE__*/ React__namespace.createElement(IconBase, {
|
|
23056
|
+
icon: icon,
|
|
23057
|
+
primaryColor: primaryColor,
|
|
23058
|
+
secondaryColor: secondaryColor,
|
|
23059
|
+
style: svgStyle
|
|
23060
|
+
}));
|
|
23061
|
+
});
|
|
23062
|
+
Icon.getTwoToneColor = getTwoToneColor;
|
|
23063
|
+
Icon.setTwoToneColor = setTwoToneColor;
|
|
23064
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
23065
|
+
Icon.displayName = 'AntdIcon';
|
|
23066
|
+
}
|
|
23067
|
+
|
|
23068
|
+
function _extends$t() {
|
|
23069
|
+
_extends$t = Object.assign ? Object.assign.bind() : function(target) {
|
|
23070
|
+
for(var i = 1; i < arguments.length; i++){
|
|
23071
|
+
var source = arguments[i];
|
|
23072
|
+
for(var key in source){
|
|
23073
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
23074
|
+
target[key] = source[key];
|
|
23075
|
+
}
|
|
23076
|
+
}
|
|
23077
|
+
}
|
|
23078
|
+
return target;
|
|
23079
|
+
};
|
|
23080
|
+
return _extends$t.apply(this, arguments);
|
|
23081
|
+
}
|
|
23082
|
+
const CheckCircleFilled = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$t({}, props, {
|
|
23083
|
+
ref: ref,
|
|
23084
|
+
icon: CheckCircleFilledSvg
|
|
23085
|
+
}));
|
|
23086
|
+
/** */ const RefIcon$s = /*#__PURE__*/ React__namespace.forwardRef(CheckCircleFilled);
|
|
23087
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
23088
|
+
RefIcon$s.displayName = 'CheckCircleFilled';
|
|
23089
|
+
}
|
|
23090
|
+
|
|
23091
|
+
function _extends$s() {
|
|
23092
|
+
_extends$s = Object.assign ? Object.assign.bind() : function(target) {
|
|
23093
|
+
for(var i = 1; i < arguments.length; i++){
|
|
23094
|
+
var source = arguments[i];
|
|
23095
|
+
for(var key in source){
|
|
23096
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
23097
|
+
target[key] = source[key];
|
|
23098
|
+
}
|
|
23099
|
+
}
|
|
23100
|
+
}
|
|
23101
|
+
return target;
|
|
23102
|
+
};
|
|
23103
|
+
return _extends$s.apply(this, arguments);
|
|
23104
|
+
}
|
|
23105
|
+
const CloseCircleFilled = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$s({}, props, {
|
|
23106
|
+
ref: ref,
|
|
23107
|
+
icon: CloseCircleFilledSvg
|
|
23108
|
+
}));
|
|
23109
|
+
/** */ const RefIcon$r = /*#__PURE__*/ React__namespace.forwardRef(CloseCircleFilled);
|
|
23110
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
23111
|
+
RefIcon$r.displayName = 'CloseCircleFilled';
|
|
23112
|
+
}
|
|
23113
|
+
|
|
23114
|
+
function _extends$r() {
|
|
23115
|
+
_extends$r = Object.assign ? Object.assign.bind() : function(target) {
|
|
23116
|
+
for(var i = 1; i < arguments.length; i++){
|
|
23117
|
+
var source = arguments[i];
|
|
23118
|
+
for(var key in source){
|
|
23119
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
23120
|
+
target[key] = source[key];
|
|
23121
|
+
}
|
|
23122
|
+
}
|
|
23123
|
+
}
|
|
23124
|
+
return target;
|
|
23125
|
+
};
|
|
23126
|
+
return _extends$r.apply(this, arguments);
|
|
23127
|
+
}
|
|
23128
|
+
const CloseOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$r({}, props, {
|
|
23129
|
+
ref: ref,
|
|
23130
|
+
icon: CloseOutlinedSvg
|
|
23131
|
+
}));
|
|
23132
|
+
/** */ const RefIcon$q = /*#__PURE__*/ React__namespace.forwardRef(CloseOutlined);
|
|
23133
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
23134
|
+
RefIcon$q.displayName = 'CloseOutlined';
|
|
23135
|
+
}
|
|
23136
|
+
|
|
23137
|
+
function _extends$q() {
|
|
23138
|
+
_extends$q = Object.assign ? Object.assign.bind() : function(target) {
|
|
23139
|
+
for(var i = 1; i < arguments.length; i++){
|
|
23140
|
+
var source = arguments[i];
|
|
23141
|
+
for(var key in source){
|
|
23142
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
23143
|
+
target[key] = source[key];
|
|
23144
|
+
}
|
|
23145
|
+
}
|
|
23146
|
+
}
|
|
23147
|
+
return target;
|
|
23148
|
+
};
|
|
23149
|
+
return _extends$q.apply(this, arguments);
|
|
23150
|
+
}
|
|
23151
|
+
const ExclamationCircleFilled = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$q({}, props, {
|
|
23152
|
+
ref: ref,
|
|
23153
|
+
icon: ExclamationCircleFilledSvg
|
|
23154
|
+
}));
|
|
23155
|
+
/** */ const RefIcon$p = /*#__PURE__*/ React__namespace.forwardRef(ExclamationCircleFilled);
|
|
23156
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
23157
|
+
RefIcon$p.displayName = 'ExclamationCircleFilled';
|
|
23158
|
+
}
|
|
23159
|
+
|
|
23160
|
+
function _extends$p() {
|
|
23161
|
+
_extends$p = Object.assign ? Object.assign.bind() : function(target) {
|
|
23162
|
+
for(var i = 1; i < arguments.length; i++){
|
|
23163
|
+
var source = arguments[i];
|
|
23164
|
+
for(var key in source){
|
|
23165
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
23166
|
+
target[key] = source[key];
|
|
23167
|
+
}
|
|
23168
|
+
}
|
|
23169
|
+
}
|
|
23170
|
+
return target;
|
|
23171
|
+
};
|
|
23172
|
+
return _extends$p.apply(this, arguments);
|
|
23173
|
+
}
|
|
23174
|
+
const InfoCircleFilled = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$p({}, props, {
|
|
23175
|
+
ref: ref,
|
|
23176
|
+
icon: InfoCircleFilledSvg
|
|
23177
|
+
}));
|
|
23178
|
+
/** */ const RefIcon$o = /*#__PURE__*/ React__namespace.forwardRef(InfoCircleFilled);
|
|
23179
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
23180
|
+
RefIcon$o.displayName = 'InfoCircleFilled';
|
|
23181
|
+
}
|
|
23182
|
+
|
|
22788
23183
|
var commonLocale = {
|
|
22789
23184
|
yearFormat: 'YYYY',
|
|
22790
23185
|
dayFormat: 'D',
|
|
@@ -23243,7 +23638,7 @@ const computeClosable = (propCloseCollection, contextCloseCollection, fallbackCl
|
|
|
23243
23638
|
const propConfig = computeClosableConfig(propCloseCollection?.closable, propCloseCollection?.closeIcon);
|
|
23244
23639
|
const contextConfig = computeClosableConfig(contextCloseCollection?.closable, contextCloseCollection?.closeIcon);
|
|
23245
23640
|
const mergedFallback = {
|
|
23246
|
-
closeIcon: /*#__PURE__*/ React.createElement(
|
|
23641
|
+
closeIcon: /*#__PURE__*/ React.createElement(RefIcon$q, null),
|
|
23247
23642
|
...fallbackCloseCollection
|
|
23248
23643
|
};
|
|
23249
23644
|
const mergedConfig = mergeClosableConfigs(propConfig, contextConfig, mergedFallback);
|
|
@@ -23268,7 +23663,7 @@ const useClosable = (propCloseCollection, contextCloseCollection, fallbackCloseC
|
|
|
23268
23663
|
const [contextLocale] = useLocale('global', localeValues.global);
|
|
23269
23664
|
return React.useMemo(()=>{
|
|
23270
23665
|
return computeClosable(propCloseCollection, contextCloseCollection, {
|
|
23271
|
-
closeIcon: /*#__PURE__*/ React.createElement(
|
|
23666
|
+
closeIcon: /*#__PURE__*/ React.createElement(RefIcon$q, null),
|
|
23272
23667
|
...fallbackCloseCollection
|
|
23273
23668
|
}, contextLocale.close);
|
|
23274
23669
|
}, [
|
|
@@ -23744,10 +24139,10 @@ var useStyle$u = genStyleHooks('Alert', (token)=>[
|
|
|
23744
24139
|
const IconNode = (props)=>{
|
|
23745
24140
|
const { icon, type, className, style, successIcon, infoIcon, warningIcon, errorIcon } = props;
|
|
23746
24141
|
const iconMapFilled = {
|
|
23747
|
-
success: successIcon ?? /*#__PURE__*/ React__namespace.createElement(
|
|
23748
|
-
info: infoIcon ?? /*#__PURE__*/ React__namespace.createElement(
|
|
23749
|
-
error: errorIcon ?? /*#__PURE__*/ React__namespace.createElement(
|
|
23750
|
-
warning: warningIcon ?? /*#__PURE__*/ React__namespace.createElement(
|
|
24142
|
+
success: successIcon ?? /*#__PURE__*/ React__namespace.createElement(RefIcon$s, null),
|
|
24143
|
+
info: infoIcon ?? /*#__PURE__*/ React__namespace.createElement(RefIcon$o, null),
|
|
24144
|
+
error: errorIcon ?? /*#__PURE__*/ React__namespace.createElement(RefIcon$r, null),
|
|
24145
|
+
warning: warningIcon ?? /*#__PURE__*/ React__namespace.createElement(RefIcon$p, null)
|
|
23751
24146
|
};
|
|
23752
24147
|
return /*#__PURE__*/ React__namespace.createElement("span", {
|
|
23753
24148
|
className: className,
|
|
@@ -23756,7 +24151,7 @@ const IconNode = (props)=>{
|
|
|
23756
24151
|
};
|
|
23757
24152
|
const CloseIconNode = (props)=>{
|
|
23758
24153
|
const { isClosable, prefixCls, closeIcon, handleClose, ariaProps, className, style } = props;
|
|
23759
|
-
const mergedCloseIcon = closeIcon === true || closeIcon === undefined ? /*#__PURE__*/ React__namespace.createElement(
|
|
24154
|
+
const mergedCloseIcon = closeIcon === true || closeIcon === undefined ? /*#__PURE__*/ React__namespace.createElement(RefIcon$q, null) : closeIcon;
|
|
23760
24155
|
return isClosable ? /*#__PURE__*/ React__namespace.createElement("button", {
|
|
23761
24156
|
type: "button",
|
|
23762
24157
|
onClick: handleClose,
|
|
@@ -24380,7 +24775,7 @@ var PropWarning = process.env.NODE_ENV !== 'production' ? PropWarning$1 : ()=>nu
|
|
|
24380
24775
|
* theme register info here to help developer get warning info.
|
|
24381
24776
|
*/ let existThemeConfig = false;
|
|
24382
24777
|
const warnContext = process.env.NODE_ENV !== 'production' ? (componentName)=>{
|
|
24383
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
24778
|
+
process.env.NODE_ENV !== "production" ? warning$2(!existThemeConfig, componentName, `Static function can not consume context like dynamic theme. Please use 'App' component instead.`) : void 0;
|
|
24384
24779
|
} : /* istanbul ignore next */ null;
|
|
24385
24780
|
// These props is used by `useContext` directly in sub component
|
|
24386
24781
|
const PASSED_PROPS = [
|
|
@@ -24696,7 +25091,7 @@ ConfigProvider.config = setGlobalConfig;
|
|
|
24696
25091
|
ConfigProvider.useConfig = useConfig;
|
|
24697
25092
|
Object.defineProperty(ConfigProvider, 'SizeContext', {
|
|
24698
25093
|
get: ()=>{
|
|
24699
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
25094
|
+
process.env.NODE_ENV !== "production" ? warning$2(false, 'ConfigProvider', 'ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead.') : void 0;
|
|
24700
25095
|
return SizeContext;
|
|
24701
25096
|
}
|
|
24702
25097
|
});
|
|
@@ -24704,6 +25099,29 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
24704
25099
|
ConfigProvider.displayName = 'ConfigProvider';
|
|
24705
25100
|
}
|
|
24706
25101
|
|
|
25102
|
+
function _extends$o() {
|
|
25103
|
+
_extends$o = Object.assign ? Object.assign.bind() : function(target) {
|
|
25104
|
+
for(var i = 1; i < arguments.length; i++){
|
|
25105
|
+
var source = arguments[i];
|
|
25106
|
+
for(var key in source){
|
|
25107
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
25108
|
+
target[key] = source[key];
|
|
25109
|
+
}
|
|
25110
|
+
}
|
|
25111
|
+
}
|
|
25112
|
+
return target;
|
|
25113
|
+
};
|
|
25114
|
+
return _extends$o.apply(this, arguments);
|
|
25115
|
+
}
|
|
25116
|
+
const LoadingOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$o({}, props, {
|
|
25117
|
+
ref: ref,
|
|
25118
|
+
icon: LoadingOutlinedSvg
|
|
25119
|
+
}));
|
|
25120
|
+
/** */ const RefIcon$n = /*#__PURE__*/ React__namespace.forwardRef(LoadingOutlined);
|
|
25121
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
25122
|
+
RefIcon$n.displayName = 'LoadingOutlined';
|
|
25123
|
+
}
|
|
25124
|
+
|
|
24707
25125
|
const genMessageStyle = (token)=>{
|
|
24708
25126
|
const { componentCls, iconCls, boxShadow, colorText, colorSuccess, colorError, colorWarning, colorInfo, fontSizeLG, motionEaseInOutCirc, motionDurationSlow, marginXS, paddingXS, borderRadiusLG, zIndexPopup, // Custom token
|
|
24709
25127
|
contentPadding, contentBg } = token;
|
|
@@ -24845,11 +25263,11 @@ var useStyle$t = genStyleHooks('Message', (token)=>{
|
|
|
24845
25263
|
}, prepareComponentToken$m);
|
|
24846
25264
|
|
|
24847
25265
|
const TypeIcon = {
|
|
24848
|
-
info: /*#__PURE__*/ React__namespace.createElement(
|
|
24849
|
-
success: /*#__PURE__*/ React__namespace.createElement(
|
|
24850
|
-
error: /*#__PURE__*/ React__namespace.createElement(
|
|
24851
|
-
warning: /*#__PURE__*/ React__namespace.createElement(
|
|
24852
|
-
loading: /*#__PURE__*/ React__namespace.createElement(
|
|
25266
|
+
info: /*#__PURE__*/ React__namespace.createElement(RefIcon$o, null),
|
|
25267
|
+
success: /*#__PURE__*/ React__namespace.createElement(RefIcon$s, null),
|
|
25268
|
+
error: /*#__PURE__*/ React__namespace.createElement(RefIcon$r, null),
|
|
25269
|
+
warning: /*#__PURE__*/ React__namespace.createElement(RefIcon$p, null),
|
|
25270
|
+
loading: /*#__PURE__*/ React__namespace.createElement(RefIcon$n, null)
|
|
24853
25271
|
};
|
|
24854
25272
|
const PureContent = (props)=>{
|
|
24855
25273
|
const { prefixCls, type, icon, children, classNames: pureContentClassNames, styles } = props;
|
|
@@ -25680,7 +26098,7 @@ const InnerLoadingIcon = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
|
25680
26098
|
className: mergedIconCls,
|
|
25681
26099
|
style: style,
|
|
25682
26100
|
ref: ref
|
|
25683
|
-
}, /*#__PURE__*/ React.createElement(
|
|
26101
|
+
}, /*#__PURE__*/ React.createElement(RefIcon$n, {
|
|
25684
26102
|
className: iconClassName
|
|
25685
26103
|
}));
|
|
25686
26104
|
});
|
|
@@ -26494,6 +26912,29 @@ let AggregationColor = /*#__PURE__*/ function() {
|
|
|
26494
26912
|
]);
|
|
26495
26913
|
}();
|
|
26496
26914
|
|
|
26915
|
+
function _extends$n() {
|
|
26916
|
+
_extends$n = Object.assign ? Object.assign.bind() : function(target) {
|
|
26917
|
+
for(var i = 1; i < arguments.length; i++){
|
|
26918
|
+
var source = arguments[i];
|
|
26919
|
+
for(var key in source){
|
|
26920
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
26921
|
+
target[key] = source[key];
|
|
26922
|
+
}
|
|
26923
|
+
}
|
|
26924
|
+
}
|
|
26925
|
+
return target;
|
|
26926
|
+
};
|
|
26927
|
+
return _extends$n.apply(this, arguments);
|
|
26928
|
+
}
|
|
26929
|
+
const RightOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$n({}, props, {
|
|
26930
|
+
ref: ref,
|
|
26931
|
+
icon: RightOutlinedSvg
|
|
26932
|
+
}));
|
|
26933
|
+
/** */ const RefIcon$m = /*#__PURE__*/ React__namespace.forwardRef(RightOutlined);
|
|
26934
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
26935
|
+
RefIcon$m.displayName = 'RightOutlined';
|
|
26936
|
+
}
|
|
26937
|
+
|
|
26497
26938
|
const CollapsePanel = /*#__PURE__*/ React__namespace.forwardRef((props, ref)=>{
|
|
26498
26939
|
if (process.env.NODE_ENV !== 'production') {
|
|
26499
26940
|
const warning = devUseWarning('Collapse.Panel');
|
|
@@ -26789,7 +27230,7 @@ const Collapse$1 = /*#__PURE__*/ React__namespace.forwardRef((props, ref)=>{
|
|
|
26789
27230
|
});
|
|
26790
27231
|
}
|
|
26791
27232
|
const renderExpandIcon = React__namespace.useCallback((panelProps = {})=>{
|
|
26792
|
-
const icon = typeof mergedExpandIcon === 'function' ? mergedExpandIcon(panelProps) : /*#__PURE__*/ React__namespace.createElement(
|
|
27233
|
+
const icon = typeof mergedExpandIcon === 'function' ? mergedExpandIcon(panelProps) : /*#__PURE__*/ React__namespace.createElement(RefIcon$m, {
|
|
26793
27234
|
rotate: panelProps.isActive ? direction === 'rtl' ? -90 : 90 : undefined,
|
|
26794
27235
|
"aria-label": panelProps.isActive ? 'expanded' : 'collapsed'
|
|
26795
27236
|
});
|
|
@@ -30019,13 +30460,82 @@ var useSelectStyle = genStyleHooks('Select', (token, { rootPrefixCls })=>{
|
|
|
30019
30460
|
}
|
|
30020
30461
|
});
|
|
30021
30462
|
|
|
30463
|
+
function _extends$m() {
|
|
30464
|
+
_extends$m = Object.assign ? Object.assign.bind() : function(target) {
|
|
30465
|
+
for(var i = 1; i < arguments.length; i++){
|
|
30466
|
+
var source = arguments[i];
|
|
30467
|
+
for(var key in source){
|
|
30468
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
30469
|
+
target[key] = source[key];
|
|
30470
|
+
}
|
|
30471
|
+
}
|
|
30472
|
+
}
|
|
30473
|
+
return target;
|
|
30474
|
+
};
|
|
30475
|
+
return _extends$m.apply(this, arguments);
|
|
30476
|
+
}
|
|
30477
|
+
const CheckOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$m({}, props, {
|
|
30478
|
+
ref: ref,
|
|
30479
|
+
icon: CheckOutlinedSvg
|
|
30480
|
+
}));
|
|
30481
|
+
/** */ const RefIcon$l = /*#__PURE__*/ React__namespace.forwardRef(CheckOutlined);
|
|
30482
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
30483
|
+
RefIcon$l.displayName = 'CheckOutlined';
|
|
30484
|
+
}
|
|
30485
|
+
|
|
30486
|
+
function _extends$l() {
|
|
30487
|
+
_extends$l = Object.assign ? Object.assign.bind() : function(target) {
|
|
30488
|
+
for(var i = 1; i < arguments.length; i++){
|
|
30489
|
+
var source = arguments[i];
|
|
30490
|
+
for(var key in source){
|
|
30491
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
30492
|
+
target[key] = source[key];
|
|
30493
|
+
}
|
|
30494
|
+
}
|
|
30495
|
+
}
|
|
30496
|
+
return target;
|
|
30497
|
+
};
|
|
30498
|
+
return _extends$l.apply(this, arguments);
|
|
30499
|
+
}
|
|
30500
|
+
const DownOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$l({}, props, {
|
|
30501
|
+
ref: ref,
|
|
30502
|
+
icon: DownOutlinedSvg
|
|
30503
|
+
}));
|
|
30504
|
+
/** */ const RefIcon$k = /*#__PURE__*/ React__namespace.forwardRef(DownOutlined);
|
|
30505
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
30506
|
+
RefIcon$k.displayName = 'DownOutlined';
|
|
30507
|
+
}
|
|
30508
|
+
|
|
30509
|
+
function _extends$k() {
|
|
30510
|
+
_extends$k = Object.assign ? Object.assign.bind() : function(target) {
|
|
30511
|
+
for(var i = 1; i < arguments.length; i++){
|
|
30512
|
+
var source = arguments[i];
|
|
30513
|
+
for(var key in source){
|
|
30514
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
30515
|
+
target[key] = source[key];
|
|
30516
|
+
}
|
|
30517
|
+
}
|
|
30518
|
+
}
|
|
30519
|
+
return target;
|
|
30520
|
+
};
|
|
30521
|
+
return _extends$k.apply(this, arguments);
|
|
30522
|
+
}
|
|
30523
|
+
const SearchOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$k({}, props, {
|
|
30524
|
+
ref: ref,
|
|
30525
|
+
icon: SearchOutlinedSvg
|
|
30526
|
+
}));
|
|
30527
|
+
/** */ const RefIcon$j = /*#__PURE__*/ React__namespace.forwardRef(SearchOutlined);
|
|
30528
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
30529
|
+
RefIcon$j.displayName = 'SearchOutlined';
|
|
30530
|
+
}
|
|
30531
|
+
|
|
30022
30532
|
function useIcons({ suffixIcon, clearIcon, menuItemSelectedIcon, removeIcon, loading, loadingIcon, multiple, hasFeedback, showSuffixIcon, feedbackIcon, showArrow, componentName }) {
|
|
30023
30533
|
if (process.env.NODE_ENV !== 'production') {
|
|
30024
30534
|
const warning = devUseWarning(componentName);
|
|
30025
30535
|
warning.deprecated(!clearIcon, 'clearIcon', 'allowClear={{ clearIcon: React.ReactNode }}');
|
|
30026
30536
|
}
|
|
30027
30537
|
// Clear Icon
|
|
30028
|
-
const mergedClearIcon = clearIcon ?? /*#__PURE__*/ React__namespace.createElement(
|
|
30538
|
+
const mergedClearIcon = clearIcon ?? /*#__PURE__*/ React__namespace.createElement(RefIcon$r, null);
|
|
30029
30539
|
// Validation Feedback Icon
|
|
30030
30540
|
const getSuffixIconNode = (arrowIcon)=>{
|
|
30031
30541
|
if (suffixIcon === null && !hasFeedback && !showArrow) {
|
|
@@ -30038,15 +30548,15 @@ function useIcons({ suffixIcon, clearIcon, menuItemSelectedIcon, removeIcon, loa
|
|
|
30038
30548
|
if (suffixIcon !== undefined) {
|
|
30039
30549
|
mergedSuffixIcon = getSuffixIconNode(suffixIcon);
|
|
30040
30550
|
} else if (loading) {
|
|
30041
|
-
mergedSuffixIcon = getSuffixIconNode(loadingIcon ?? /*#__PURE__*/ React__namespace.createElement(
|
|
30551
|
+
mergedSuffixIcon = getSuffixIconNode(loadingIcon ?? /*#__PURE__*/ React__namespace.createElement(RefIcon$n, {
|
|
30042
30552
|
spin: true
|
|
30043
30553
|
}));
|
|
30044
30554
|
} else {
|
|
30045
30555
|
mergedSuffixIcon = ({ open, showSearch })=>{
|
|
30046
30556
|
if (open && showSearch) {
|
|
30047
|
-
return getSuffixIconNode(/*#__PURE__*/ React__namespace.createElement(
|
|
30557
|
+
return getSuffixIconNode(/*#__PURE__*/ React__namespace.createElement(RefIcon$j, null));
|
|
30048
30558
|
}
|
|
30049
|
-
return getSuffixIconNode(/*#__PURE__*/ React__namespace.createElement(
|
|
30559
|
+
return getSuffixIconNode(/*#__PURE__*/ React__namespace.createElement(RefIcon$k, null));
|
|
30050
30560
|
};
|
|
30051
30561
|
}
|
|
30052
30562
|
// Checked item icon
|
|
@@ -30054,7 +30564,7 @@ function useIcons({ suffixIcon, clearIcon, menuItemSelectedIcon, removeIcon, loa
|
|
|
30054
30564
|
if (menuItemSelectedIcon !== undefined) {
|
|
30055
30565
|
mergedItemIcon = menuItemSelectedIcon;
|
|
30056
30566
|
} else if (multiple) {
|
|
30057
|
-
mergedItemIcon = /*#__PURE__*/ React__namespace.createElement(
|
|
30567
|
+
mergedItemIcon = /*#__PURE__*/ React__namespace.createElement(RefIcon$l, null);
|
|
30058
30568
|
} else {
|
|
30059
30569
|
mergedItemIcon = null;
|
|
30060
30570
|
}
|
|
@@ -30062,7 +30572,7 @@ function useIcons({ suffixIcon, clearIcon, menuItemSelectedIcon, removeIcon, loa
|
|
|
30062
30572
|
if (removeIcon !== undefined) {
|
|
30063
30573
|
mergedRemoveIcon = removeIcon;
|
|
30064
30574
|
} else {
|
|
30065
|
-
mergedRemoveIcon = /*#__PURE__*/ React__namespace.createElement(
|
|
30575
|
+
mergedRemoveIcon = /*#__PURE__*/ React__namespace.createElement(RefIcon$q, null);
|
|
30066
30576
|
}
|
|
30067
30577
|
return {
|
|
30068
30578
|
// TODO: remove as when all the deps bumped
|
|
@@ -31654,6 +32164,52 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
31654
32164
|
Popover.displayName = 'Popover';
|
|
31655
32165
|
}
|
|
31656
32166
|
|
|
32167
|
+
function _extends$j() {
|
|
32168
|
+
_extends$j = Object.assign ? Object.assign.bind() : function(target) {
|
|
32169
|
+
for(var i = 1; i < arguments.length; i++){
|
|
32170
|
+
var source = arguments[i];
|
|
32171
|
+
for(var key in source){
|
|
32172
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
32173
|
+
target[key] = source[key];
|
|
32174
|
+
}
|
|
32175
|
+
}
|
|
32176
|
+
}
|
|
32177
|
+
return target;
|
|
32178
|
+
};
|
|
32179
|
+
return _extends$j.apply(this, arguments);
|
|
32180
|
+
}
|
|
32181
|
+
const LeftOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$j({}, props, {
|
|
32182
|
+
ref: ref,
|
|
32183
|
+
icon: LeftOutlinedSvg
|
|
32184
|
+
}));
|
|
32185
|
+
/** */ const RefIcon$i = /*#__PURE__*/ React__namespace.forwardRef(LeftOutlined);
|
|
32186
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
32187
|
+
RefIcon$i.displayName = 'LeftOutlined';
|
|
32188
|
+
}
|
|
32189
|
+
|
|
32190
|
+
function _extends$i() {
|
|
32191
|
+
_extends$i = Object.assign ? Object.assign.bind() : function(target) {
|
|
32192
|
+
for(var i = 1; i < arguments.length; i++){
|
|
32193
|
+
var source = arguments[i];
|
|
32194
|
+
for(var key in source){
|
|
32195
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
32196
|
+
target[key] = source[key];
|
|
32197
|
+
}
|
|
32198
|
+
}
|
|
32199
|
+
}
|
|
32200
|
+
return target;
|
|
32201
|
+
};
|
|
32202
|
+
return _extends$i.apply(this, arguments);
|
|
32203
|
+
}
|
|
32204
|
+
const BarsOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$i({}, props, {
|
|
32205
|
+
ref: ref,
|
|
32206
|
+
icon: BarsOutlinedSvg
|
|
32207
|
+
}));
|
|
32208
|
+
/** */ const RefIcon$h = /*#__PURE__*/ React__namespace.forwardRef(BarsOutlined);
|
|
32209
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
32210
|
+
RefIcon$h.displayName = 'BarsOutlined';
|
|
32211
|
+
}
|
|
32212
|
+
|
|
31657
32213
|
const LayoutContext = /*#__PURE__*/ React__namespace.createContext({
|
|
31658
32214
|
siderHook: {
|
|
31659
32215
|
addSider: ()=>null,
|
|
@@ -31949,11 +32505,11 @@ const Sider = /*#__PURE__*/ React__namespace.forwardRef((props, ref)=>{
|
|
|
31949
32505
|
onClick: toggle,
|
|
31950
32506
|
className: clsx(`${prefixCls}-zero-width-trigger`, `${prefixCls}-zero-width-trigger-${reverseArrow ? 'right' : 'left'}`),
|
|
31951
32507
|
style: zeroWidthTriggerStyle
|
|
31952
|
-
}, trigger || /*#__PURE__*/ React__namespace.createElement(
|
|
32508
|
+
}, trigger || /*#__PURE__*/ React__namespace.createElement(RefIcon$h, null)) : null;
|
|
31953
32509
|
const reverseIcon = direction === 'rtl' === !reverseArrow;
|
|
31954
32510
|
const iconObj = {
|
|
31955
|
-
expanded: reverseIcon ? /*#__PURE__*/ React__namespace.createElement(
|
|
31956
|
-
collapsed: reverseIcon ? /*#__PURE__*/ React__namespace.createElement(
|
|
32511
|
+
expanded: reverseIcon ? /*#__PURE__*/ React__namespace.createElement(RefIcon$m, null) : /*#__PURE__*/ React__namespace.createElement(RefIcon$i, null),
|
|
32512
|
+
collapsed: reverseIcon ? /*#__PURE__*/ React__namespace.createElement(RefIcon$i, null) : /*#__PURE__*/ React__namespace.createElement(RefIcon$m, null)
|
|
31957
32513
|
};
|
|
31958
32514
|
const status = collapsed ? 'collapsed' : 'expanded';
|
|
31959
32515
|
const defaultTrigger = iconObj[status];
|
|
@@ -31999,6 +32555,29 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
31999
32555
|
Sider.displayName = 'Sider';
|
|
32000
32556
|
}
|
|
32001
32557
|
|
|
32558
|
+
function _extends$h() {
|
|
32559
|
+
_extends$h = Object.assign ? Object.assign.bind() : function(target) {
|
|
32560
|
+
for(var i = 1; i < arguments.length; i++){
|
|
32561
|
+
var source = arguments[i];
|
|
32562
|
+
for(var key in source){
|
|
32563
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
32564
|
+
target[key] = source[key];
|
|
32565
|
+
}
|
|
32566
|
+
}
|
|
32567
|
+
}
|
|
32568
|
+
return target;
|
|
32569
|
+
};
|
|
32570
|
+
return _extends$h.apply(this, arguments);
|
|
32571
|
+
}
|
|
32572
|
+
const EllipsisOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$h({}, props, {
|
|
32573
|
+
ref: ref,
|
|
32574
|
+
icon: EllipsisOutlinedSvg
|
|
32575
|
+
}));
|
|
32576
|
+
/** */ const RefIcon$g = /*#__PURE__*/ React__namespace.forwardRef(EllipsisOutlined);
|
|
32577
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
32578
|
+
RefIcon$g.displayName = 'EllipsisOutlined';
|
|
32579
|
+
}
|
|
32580
|
+
|
|
32002
32581
|
const MenuContext = /*#__PURE__*/ React.createContext({
|
|
32003
32582
|
prefixCls: '',
|
|
32004
32583
|
firstLevel: true,
|
|
@@ -33330,7 +33909,7 @@ const InternalMenu = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
|
33330
33909
|
value: contextValue
|
|
33331
33910
|
}, /*#__PURE__*/ React__namespace.createElement(RcMenu, {
|
|
33332
33911
|
getPopupContainer: getPopupContainer,
|
|
33333
|
-
overflowedIndicator: /*#__PURE__*/ React__namespace.createElement(
|
|
33912
|
+
overflowedIndicator: /*#__PURE__*/ React__namespace.createElement(RefIcon$g, null),
|
|
33334
33913
|
overflowedIndicatorPopupClassName: clsx(prefixCls, `${prefixCls}-${theme}`, overflowedIndicatorPopupClassName),
|
|
33335
33914
|
classNames: {
|
|
33336
33915
|
list: mergedClassNames.list,
|
|
@@ -33827,9 +34406,9 @@ const Dropdown$1 = (props)=>{
|
|
|
33827
34406
|
rootClassName: clsx(cssVarCls, rootCls),
|
|
33828
34407
|
expandIcon: /*#__PURE__*/ React__namespace.createElement("span", {
|
|
33829
34408
|
className: `${prefixCls}-menu-submenu-arrow`
|
|
33830
|
-
}, direction === 'rtl' ? /*#__PURE__*/ React__namespace.createElement(
|
|
34409
|
+
}, direction === 'rtl' ? /*#__PURE__*/ React__namespace.createElement(RefIcon$i, {
|
|
33831
34410
|
className: `${prefixCls}-menu-submenu-arrow-icon`
|
|
33832
|
-
}) : /*#__PURE__*/ React__namespace.createElement(
|
|
34411
|
+
}) : /*#__PURE__*/ React__namespace.createElement(RefIcon$m, {
|
|
33833
34412
|
className: `${prefixCls}-menu-submenu-arrow-icon`
|
|
33834
34413
|
})),
|
|
33835
34414
|
mode: "vertical",
|
|
@@ -33907,8 +34486,8 @@ const RadioGroupContextProvider = RadioGroupContext.Provider;
|
|
|
33907
34486
|
const RadioOptionTypeContext = /*#__PURE__*/ React__namespace.createContext(undefined);
|
|
33908
34487
|
const RadioOptionTypeContextProvider = RadioOptionTypeContext.Provider;
|
|
33909
34488
|
|
|
33910
|
-
function _extends() {
|
|
33911
|
-
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
34489
|
+
function _extends$g() {
|
|
34490
|
+
_extends$g = Object.assign ? Object.assign.bind() : function(target) {
|
|
33912
34491
|
for(var i = 1; i < arguments.length; i++){
|
|
33913
34492
|
var source = arguments[i];
|
|
33914
34493
|
for(var key in source){
|
|
@@ -33919,7 +34498,7 @@ function _extends() {
|
|
|
33919
34498
|
}
|
|
33920
34499
|
return target;
|
|
33921
34500
|
};
|
|
33922
|
-
return _extends.apply(this, arguments);
|
|
34501
|
+
return _extends$g.apply(this, arguments);
|
|
33923
34502
|
}
|
|
33924
34503
|
const Checkbox$2 = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
33925
34504
|
const { prefixCls = 'rc-checkbox', className, style, checked, disabled, defaultChecked = false, type = 'checkbox', title, onChange, ...inputProps } = props;
|
|
@@ -33967,7 +34546,7 @@ const Checkbox$2 = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
|
33967
34546
|
title: title,
|
|
33968
34547
|
style: style,
|
|
33969
34548
|
ref: holderRef
|
|
33970
|
-
}, /*#__PURE__*/ React__namespace.createElement("input", _extends({}, inputProps, {
|
|
34549
|
+
}, /*#__PURE__*/ React__namespace.createElement("input", _extends$g({}, inputProps, {
|
|
33971
34550
|
className: `${prefixCls}-input`,
|
|
33972
34551
|
ref: inputRef,
|
|
33973
34552
|
onChange: handleChange,
|
|
@@ -35468,6 +36047,29 @@ var useStyle$g = genStyleHooks([
|
|
|
35468
36047
|
resetFont: false
|
|
35469
36048
|
});
|
|
35470
36049
|
|
|
36050
|
+
function _extends$f() {
|
|
36051
|
+
_extends$f = Object.assign ? Object.assign.bind() : function(target) {
|
|
36052
|
+
for(var i = 1; i < arguments.length; i++){
|
|
36053
|
+
var source = arguments[i];
|
|
36054
|
+
for(var key in source){
|
|
36055
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
36056
|
+
target[key] = source[key];
|
|
36057
|
+
}
|
|
36058
|
+
}
|
|
36059
|
+
}
|
|
36060
|
+
return target;
|
|
36061
|
+
};
|
|
36062
|
+
return _extends$f.apply(this, arguments);
|
|
36063
|
+
}
|
|
36064
|
+
const PlusOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$f({}, props, {
|
|
36065
|
+
ref: ref,
|
|
36066
|
+
icon: PlusOutlinedSvg
|
|
36067
|
+
}));
|
|
36068
|
+
/** */ const RefIcon$f = /*#__PURE__*/ React__namespace.forwardRef(PlusOutlined);
|
|
36069
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
36070
|
+
RefIcon$f.displayName = 'PlusOutlined';
|
|
36071
|
+
}
|
|
36072
|
+
|
|
35471
36073
|
const motion = {
|
|
35472
36074
|
motionAppear: false,
|
|
35473
36075
|
motionEnter: true,
|
|
@@ -36419,8 +37021,8 @@ const InternalTabs = /*#__PURE__*/ React__namespace.forwardRef((props, ref)=>{
|
|
|
36419
37021
|
onEdit: (editType, { key, event })=>{
|
|
36420
37022
|
onEdit?.(editType === 'add' ? event : key, editType);
|
|
36421
37023
|
},
|
|
36422
|
-
removeIcon: removeIcon ?? tabs?.removeIcon ?? /*#__PURE__*/ React__namespace.createElement(
|
|
36423
|
-
addIcon: (addIcon ?? tabs?.addIcon) || /*#__PURE__*/ React__namespace.createElement(
|
|
37024
|
+
removeIcon: removeIcon ?? tabs?.removeIcon ?? /*#__PURE__*/ React__namespace.createElement(RefIcon$q, null),
|
|
37025
|
+
addIcon: (addIcon ?? tabs?.addIcon) || /*#__PURE__*/ React__namespace.createElement(RefIcon$f, null),
|
|
36424
37026
|
showAdd: hideAdd !== true
|
|
36425
37027
|
};
|
|
36426
37028
|
}
|
|
@@ -36515,7 +37117,7 @@ const InternalTabs = /*#__PURE__*/ React__namespace.forwardRef((props, ref)=>{
|
|
|
36515
37117
|
},
|
|
36516
37118
|
editable: editable,
|
|
36517
37119
|
more: {
|
|
36518
|
-
icon: tabs?.more?.icon ?? tabs?.moreIcon ?? moreIcon ?? /*#__PURE__*/ React__namespace.createElement(
|
|
37120
|
+
icon: tabs?.more?.icon ?? tabs?.moreIcon ?? moreIcon ?? /*#__PURE__*/ React__namespace.createElement(RefIcon$g, null),
|
|
36519
37121
|
transitionName: `${rootPrefixCls}-slide-up`,
|
|
36520
37122
|
...more
|
|
36521
37123
|
},
|
|
@@ -38188,7 +38790,7 @@ const getAllowClear = (allowClear)=>{
|
|
|
38188
38790
|
mergedAllowClear = allowClear;
|
|
38189
38791
|
} else if (allowClear) {
|
|
38190
38792
|
mergedAllowClear = {
|
|
38191
|
-
clearIcon: /*#__PURE__*/ React.createElement(
|
|
38793
|
+
clearIcon: /*#__PURE__*/ React.createElement(RefIcon$r, null)
|
|
38192
38794
|
};
|
|
38193
38795
|
}
|
|
38194
38796
|
return mergedAllowClear;
|
|
@@ -39240,7 +39842,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
39240
39842
|
|
|
39241
39843
|
/** @deprecated Please use Space.Compact + Dropdown + Button instead */ const DropdownButton = (props)=>{
|
|
39242
39844
|
const { getPopupContainer: getContextPopupContainer, getPrefixCls, direction } = React__namespace.useContext(ConfigContext);
|
|
39243
|
-
const { prefixCls: customizePrefixCls, type = 'default', danger, disabled, loading, onClick, htmlType, children, className, menu, arrow, autoFocus, trigger, align, open, onOpenChange, placement, getPopupContainer, href, icon = /*#__PURE__*/ React__namespace.createElement(
|
|
39845
|
+
const { prefixCls: customizePrefixCls, type = 'default', danger, disabled, loading, onClick, htmlType, children, className, menu, arrow, autoFocus, trigger, align, open, onOpenChange, placement, getPopupContainer, href, icon = /*#__PURE__*/ React__namespace.createElement(RefIcon$g, null), title, buttonsRender = (buttons)=>buttons, mouseEnterDelay, mouseLeaveDelay, overlayClassName, overlayStyle, destroyOnHidden, destroyPopupOnHide, dropdownRender, popupRender, ...restProps } = props;
|
|
39244
39846
|
const prefixCls = getPrefixCls('dropdown', customizePrefixCls);
|
|
39245
39847
|
const buttonPrefixCls = `${prefixCls}-button`;
|
|
39246
39848
|
const mergedPopupRender = popupRender || dropdownRender;
|
|
@@ -39531,6 +40133,52 @@ const TextArea = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
|
39531
40133
|
});
|
|
39532
40134
|
});
|
|
39533
40135
|
|
|
40136
|
+
function _extends$e() {
|
|
40137
|
+
_extends$e = Object.assign ? Object.assign.bind() : function(target) {
|
|
40138
|
+
for(var i = 1; i < arguments.length; i++){
|
|
40139
|
+
var source = arguments[i];
|
|
40140
|
+
for(var key in source){
|
|
40141
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
40142
|
+
target[key] = source[key];
|
|
40143
|
+
}
|
|
40144
|
+
}
|
|
40145
|
+
}
|
|
40146
|
+
return target;
|
|
40147
|
+
};
|
|
40148
|
+
return _extends$e.apply(this, arguments);
|
|
40149
|
+
}
|
|
40150
|
+
const DoubleLeftOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$e({}, props, {
|
|
40151
|
+
ref: ref,
|
|
40152
|
+
icon: DoubleLeftOutlinedSvg
|
|
40153
|
+
}));
|
|
40154
|
+
/** */ const RefIcon$e = /*#__PURE__*/ React__namespace.forwardRef(DoubleLeftOutlined);
|
|
40155
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
40156
|
+
RefIcon$e.displayName = 'DoubleLeftOutlined';
|
|
40157
|
+
}
|
|
40158
|
+
|
|
40159
|
+
function _extends$d() {
|
|
40160
|
+
_extends$d = Object.assign ? Object.assign.bind() : function(target) {
|
|
40161
|
+
for(var i = 1; i < arguments.length; i++){
|
|
40162
|
+
var source = arguments[i];
|
|
40163
|
+
for(var key in source){
|
|
40164
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
40165
|
+
target[key] = source[key];
|
|
40166
|
+
}
|
|
40167
|
+
}
|
|
40168
|
+
}
|
|
40169
|
+
return target;
|
|
40170
|
+
};
|
|
40171
|
+
return _extends$d.apply(this, arguments);
|
|
40172
|
+
}
|
|
40173
|
+
const DoubleRightOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$d({}, props, {
|
|
40174
|
+
ref: ref,
|
|
40175
|
+
icon: DoubleRightOutlinedSvg
|
|
40176
|
+
}));
|
|
40177
|
+
/** */ const RefIcon$d = /*#__PURE__*/ React__namespace.forwardRef(DoubleRightOutlined);
|
|
40178
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
40179
|
+
RefIcon$d.displayName = 'DoubleRightOutlined';
|
|
40180
|
+
}
|
|
40181
|
+
|
|
39534
40182
|
const genPaginationDisabledStyle = (token)=>{
|
|
39535
40183
|
const { componentCls } = token;
|
|
39536
40184
|
return {
|
|
@@ -40231,28 +40879,28 @@ const Pagination = (props)=>{
|
|
|
40231
40879
|
className: `${prefixCls}-item-link`,
|
|
40232
40880
|
type: "button",
|
|
40233
40881
|
tabIndex: -1
|
|
40234
|
-
}, direction === 'rtl' ? /*#__PURE__*/ React__namespace.createElement(
|
|
40882
|
+
}, direction === 'rtl' ? /*#__PURE__*/ React__namespace.createElement(RefIcon$m, null) : /*#__PURE__*/ React__namespace.createElement(RefIcon$i, null));
|
|
40235
40883
|
const nextIcon = /*#__PURE__*/ React__namespace.createElement("button", {
|
|
40236
40884
|
className: `${prefixCls}-item-link`,
|
|
40237
40885
|
type: "button",
|
|
40238
40886
|
tabIndex: -1
|
|
40239
|
-
}, direction === 'rtl' ? /*#__PURE__*/ React__namespace.createElement(
|
|
40887
|
+
}, direction === 'rtl' ? /*#__PURE__*/ React__namespace.createElement(RefIcon$i, null) : /*#__PURE__*/ React__namespace.createElement(RefIcon$m, null));
|
|
40240
40888
|
const jumpPrevIcon = /*#__PURE__*/ React__namespace.createElement("a", {
|
|
40241
40889
|
className: `${prefixCls}-item-link`
|
|
40242
40890
|
}, /*#__PURE__*/ React__namespace.createElement("div", {
|
|
40243
40891
|
className: `${prefixCls}-item-container`
|
|
40244
|
-
}, direction === 'rtl' ? /*#__PURE__*/ React__namespace.createElement(
|
|
40892
|
+
}, direction === 'rtl' ? /*#__PURE__*/ React__namespace.createElement(RefIcon$d, {
|
|
40245
40893
|
className: `${prefixCls}-item-link-icon`
|
|
40246
|
-
}) : /*#__PURE__*/ React__namespace.createElement(
|
|
40894
|
+
}) : /*#__PURE__*/ React__namespace.createElement(RefIcon$e, {
|
|
40247
40895
|
className: `${prefixCls}-item-link-icon`
|
|
40248
40896
|
}), ellipsis));
|
|
40249
40897
|
const jumpNextIcon = /*#__PURE__*/ React__namespace.createElement("a", {
|
|
40250
40898
|
className: `${prefixCls}-item-link`
|
|
40251
40899
|
}, /*#__PURE__*/ React__namespace.createElement("div", {
|
|
40252
40900
|
className: `${prefixCls}-item-container`
|
|
40253
|
-
}, direction === 'rtl' ? /*#__PURE__*/ React__namespace.createElement(
|
|
40901
|
+
}, direction === 'rtl' ? /*#__PURE__*/ React__namespace.createElement(RefIcon$e, {
|
|
40254
40902
|
className: `${prefixCls}-item-link-icon`
|
|
40255
|
-
}) : /*#__PURE__*/ React__namespace.createElement(
|
|
40903
|
+
}) : /*#__PURE__*/ React__namespace.createElement(RefIcon$d, {
|
|
40256
40904
|
className: `${prefixCls}-item-link-icon`
|
|
40257
40905
|
}), ellipsis));
|
|
40258
40906
|
return {
|
|
@@ -41838,7 +42486,7 @@ const InternalSwitch = /*#__PURE__*/ React__namespace.forwardRef((props, ref)=>{
|
|
|
41838
42486
|
const loadingIcon = /*#__PURE__*/ React__namespace.createElement("div", {
|
|
41839
42487
|
className: clsx(`${prefixCls}-handle`, mergedClassNames.indicator),
|
|
41840
42488
|
style: mergedStyles.indicator
|
|
41841
|
-
}, loading && /*#__PURE__*/ React__namespace.createElement(
|
|
42489
|
+
}, loading && /*#__PURE__*/ React__namespace.createElement(RefIcon$n, {
|
|
41842
42490
|
className: `${prefixCls}-loading-icon`
|
|
41843
42491
|
}));
|
|
41844
42492
|
const classes = clsx(contextClassName, {
|
|
@@ -42213,7 +42861,7 @@ const useSelection = (config, rowSelection)=>{
|
|
|
42213
42861
|
}, /*#__PURE__*/ React__namespace.createElement(Dropdown, {
|
|
42214
42862
|
menu: menu,
|
|
42215
42863
|
getPopupContainer: getPopupContainer
|
|
42216
|
-
}, /*#__PURE__*/ React__namespace.createElement("span", null, /*#__PURE__*/ React__namespace.createElement(
|
|
42864
|
+
}, /*#__PURE__*/ React__namespace.createElement("span", null, /*#__PURE__*/ React__namespace.createElement(RefIcon$k, null))));
|
|
42217
42865
|
}
|
|
42218
42866
|
const allDisabledData = flattedData.map((record, index)=>{
|
|
42219
42867
|
const key = getRowKey(record, index);
|
|
@@ -42498,6 +43146,121 @@ const renderColumnTitle = (title, props)=>{
|
|
|
42498
43146
|
return res;
|
|
42499
43147
|
};
|
|
42500
43148
|
|
|
43149
|
+
function _extends$c() {
|
|
43150
|
+
_extends$c = Object.assign ? Object.assign.bind() : function(target) {
|
|
43151
|
+
for(var i = 1; i < arguments.length; i++){
|
|
43152
|
+
var source = arguments[i];
|
|
43153
|
+
for(var key in source){
|
|
43154
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
43155
|
+
target[key] = source[key];
|
|
43156
|
+
}
|
|
43157
|
+
}
|
|
43158
|
+
}
|
|
43159
|
+
return target;
|
|
43160
|
+
};
|
|
43161
|
+
return _extends$c.apply(this, arguments);
|
|
43162
|
+
}
|
|
43163
|
+
const FilterFilled = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$c({}, props, {
|
|
43164
|
+
ref: ref,
|
|
43165
|
+
icon: FilterFilledSvg
|
|
43166
|
+
}));
|
|
43167
|
+
/** */ const RefIcon$c = /*#__PURE__*/ React__namespace.forwardRef(FilterFilled);
|
|
43168
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
43169
|
+
RefIcon$c.displayName = 'FilterFilled';
|
|
43170
|
+
}
|
|
43171
|
+
|
|
43172
|
+
function _extends$b() {
|
|
43173
|
+
_extends$b = Object.assign ? Object.assign.bind() : function(target) {
|
|
43174
|
+
for(var i = 1; i < arguments.length; i++){
|
|
43175
|
+
var source = arguments[i];
|
|
43176
|
+
for(var key in source){
|
|
43177
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
43178
|
+
target[key] = source[key];
|
|
43179
|
+
}
|
|
43180
|
+
}
|
|
43181
|
+
}
|
|
43182
|
+
return target;
|
|
43183
|
+
};
|
|
43184
|
+
return _extends$b.apply(this, arguments);
|
|
43185
|
+
}
|
|
43186
|
+
const FileOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$b({}, props, {
|
|
43187
|
+
ref: ref,
|
|
43188
|
+
icon: FileOutlinedSvg
|
|
43189
|
+
}));
|
|
43190
|
+
/** */ const RefIcon$b = /*#__PURE__*/ React__namespace.forwardRef(FileOutlined);
|
|
43191
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
43192
|
+
RefIcon$b.displayName = 'FileOutlined';
|
|
43193
|
+
}
|
|
43194
|
+
|
|
43195
|
+
function _extends$a() {
|
|
43196
|
+
_extends$a = Object.assign ? Object.assign.bind() : function(target) {
|
|
43197
|
+
for(var i = 1; i < arguments.length; i++){
|
|
43198
|
+
var source = arguments[i];
|
|
43199
|
+
for(var key in source){
|
|
43200
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
43201
|
+
target[key] = source[key];
|
|
43202
|
+
}
|
|
43203
|
+
}
|
|
43204
|
+
}
|
|
43205
|
+
return target;
|
|
43206
|
+
};
|
|
43207
|
+
return _extends$a.apply(this, arguments);
|
|
43208
|
+
}
|
|
43209
|
+
const FolderOpenOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$a({}, props, {
|
|
43210
|
+
ref: ref,
|
|
43211
|
+
icon: FolderOpenOutlinedSvg
|
|
43212
|
+
}));
|
|
43213
|
+
/** */ const RefIcon$a = /*#__PURE__*/ React__namespace.forwardRef(FolderOpenOutlined);
|
|
43214
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
43215
|
+
RefIcon$a.displayName = 'FolderOpenOutlined';
|
|
43216
|
+
}
|
|
43217
|
+
|
|
43218
|
+
function _extends$9() {
|
|
43219
|
+
_extends$9 = Object.assign ? Object.assign.bind() : function(target) {
|
|
43220
|
+
for(var i = 1; i < arguments.length; i++){
|
|
43221
|
+
var source = arguments[i];
|
|
43222
|
+
for(var key in source){
|
|
43223
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
43224
|
+
target[key] = source[key];
|
|
43225
|
+
}
|
|
43226
|
+
}
|
|
43227
|
+
}
|
|
43228
|
+
return target;
|
|
43229
|
+
};
|
|
43230
|
+
return _extends$9.apply(this, arguments);
|
|
43231
|
+
}
|
|
43232
|
+
const FolderOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$9({}, props, {
|
|
43233
|
+
ref: ref,
|
|
43234
|
+
icon: FolderOutlinedSvg
|
|
43235
|
+
}));
|
|
43236
|
+
/** */ const RefIcon$9 = /*#__PURE__*/ React__namespace.forwardRef(FolderOutlined);
|
|
43237
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
43238
|
+
RefIcon$9.displayName = 'FolderOutlined';
|
|
43239
|
+
}
|
|
43240
|
+
|
|
43241
|
+
function _extends$8() {
|
|
43242
|
+
_extends$8 = Object.assign ? Object.assign.bind() : function(target) {
|
|
43243
|
+
for(var i = 1; i < arguments.length; i++){
|
|
43244
|
+
var source = arguments[i];
|
|
43245
|
+
for(var key in source){
|
|
43246
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
43247
|
+
target[key] = source[key];
|
|
43248
|
+
}
|
|
43249
|
+
}
|
|
43250
|
+
}
|
|
43251
|
+
return target;
|
|
43252
|
+
};
|
|
43253
|
+
return _extends$8.apply(this, arguments);
|
|
43254
|
+
}
|
|
43255
|
+
const HolderOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$8({}, props, {
|
|
43256
|
+
ref: ref,
|
|
43257
|
+
icon: HolderOutlinedSvg
|
|
43258
|
+
}));
|
|
43259
|
+
/** */ const RefIcon$8 = /*#__PURE__*/ React__namespace.forwardRef(HolderOutlined);
|
|
43260
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
43261
|
+
RefIcon$8.displayName = 'HolderOutlined';
|
|
43262
|
+
}
|
|
43263
|
+
|
|
42501
43264
|
// ============================ Directory =============================
|
|
42502
43265
|
const genDirectoryStyle = ({ treeCls, treeNodeCls, directoryNodeSelectedBg, directoryNodeSelectedColor, motionDurationMid, borderRadius, controlItemBgHover })=>({
|
|
42503
43266
|
[`${treeCls}${treeCls}-directory ${treeNodeCls}`]: {
|
|
@@ -42955,6 +43718,75 @@ const dropIndicatorRender = (props)=>{
|
|
|
42955
43718
|
});
|
|
42956
43719
|
};
|
|
42957
43720
|
|
|
43721
|
+
function _extends$7() {
|
|
43722
|
+
_extends$7 = Object.assign ? Object.assign.bind() : function(target) {
|
|
43723
|
+
for(var i = 1; i < arguments.length; i++){
|
|
43724
|
+
var source = arguments[i];
|
|
43725
|
+
for(var key in source){
|
|
43726
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
43727
|
+
target[key] = source[key];
|
|
43728
|
+
}
|
|
43729
|
+
}
|
|
43730
|
+
}
|
|
43731
|
+
return target;
|
|
43732
|
+
};
|
|
43733
|
+
return _extends$7.apply(this, arguments);
|
|
43734
|
+
}
|
|
43735
|
+
const CaretDownFilled = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$7({}, props, {
|
|
43736
|
+
ref: ref,
|
|
43737
|
+
icon: CaretDownFilledSvg
|
|
43738
|
+
}));
|
|
43739
|
+
/** */ const RefIcon$7 = /*#__PURE__*/ React__namespace.forwardRef(CaretDownFilled);
|
|
43740
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
43741
|
+
RefIcon$7.displayName = 'CaretDownFilled';
|
|
43742
|
+
}
|
|
43743
|
+
|
|
43744
|
+
function _extends$6() {
|
|
43745
|
+
_extends$6 = Object.assign ? Object.assign.bind() : function(target) {
|
|
43746
|
+
for(var i = 1; i < arguments.length; i++){
|
|
43747
|
+
var source = arguments[i];
|
|
43748
|
+
for(var key in source){
|
|
43749
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
43750
|
+
target[key] = source[key];
|
|
43751
|
+
}
|
|
43752
|
+
}
|
|
43753
|
+
}
|
|
43754
|
+
return target;
|
|
43755
|
+
};
|
|
43756
|
+
return _extends$6.apply(this, arguments);
|
|
43757
|
+
}
|
|
43758
|
+
const MinusSquareOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$6({}, props, {
|
|
43759
|
+
ref: ref,
|
|
43760
|
+
icon: MinusSquareOutlinedSvg
|
|
43761
|
+
}));
|
|
43762
|
+
/** */ const RefIcon$6 = /*#__PURE__*/ React__namespace.forwardRef(MinusSquareOutlined);
|
|
43763
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
43764
|
+
RefIcon$6.displayName = 'MinusSquareOutlined';
|
|
43765
|
+
}
|
|
43766
|
+
|
|
43767
|
+
function _extends$5() {
|
|
43768
|
+
_extends$5 = Object.assign ? Object.assign.bind() : function(target) {
|
|
43769
|
+
for(var i = 1; i < arguments.length; i++){
|
|
43770
|
+
var source = arguments[i];
|
|
43771
|
+
for(var key in source){
|
|
43772
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
43773
|
+
target[key] = source[key];
|
|
43774
|
+
}
|
|
43775
|
+
}
|
|
43776
|
+
}
|
|
43777
|
+
return target;
|
|
43778
|
+
};
|
|
43779
|
+
return _extends$5.apply(this, arguments);
|
|
43780
|
+
}
|
|
43781
|
+
const PlusSquareOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$5({}, props, {
|
|
43782
|
+
ref: ref,
|
|
43783
|
+
icon: PlusSquareOutlinedSvg
|
|
43784
|
+
}));
|
|
43785
|
+
/** */ const RefIcon$5 = /*#__PURE__*/ React__namespace.forwardRef(PlusSquareOutlined);
|
|
43786
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
43787
|
+
RefIcon$5.displayName = 'PlusSquareOutlined';
|
|
43788
|
+
}
|
|
43789
|
+
|
|
42958
43790
|
const SwitcherIconCom = (props)=>{
|
|
42959
43791
|
const { prefixCls, switcherIcon, treeNodeProps, showLine, switcherLoadingIcon } = props;
|
|
42960
43792
|
const { isLeaf, expanded, loading } = treeNodeProps;
|
|
@@ -42962,7 +43794,7 @@ const SwitcherIconCom = (props)=>{
|
|
|
42962
43794
|
if (/*#__PURE__*/ React__namespace.isValidElement(switcherLoadingIcon)) {
|
|
42963
43795
|
return switcherLoadingIcon;
|
|
42964
43796
|
}
|
|
42965
|
-
return /*#__PURE__*/ React__namespace.createElement(
|
|
43797
|
+
return /*#__PURE__*/ React__namespace.createElement(RefIcon$n, {
|
|
42966
43798
|
className: `${prefixCls}-switcher-loading-icon`
|
|
42967
43799
|
});
|
|
42968
43800
|
}
|
|
@@ -42984,7 +43816,7 @@ const SwitcherIconCom = (props)=>{
|
|
|
42984
43816
|
}
|
|
42985
43817
|
return leafIcon;
|
|
42986
43818
|
}
|
|
42987
|
-
return showLeafIcon ? /*#__PURE__*/ React__namespace.createElement(
|
|
43819
|
+
return showLeafIcon ? /*#__PURE__*/ React__namespace.createElement(RefIcon$b, {
|
|
42988
43820
|
className: `${prefixCls}-switcher-line-icon`
|
|
42989
43821
|
}) : /*#__PURE__*/ React__namespace.createElement("span", {
|
|
42990
43822
|
className: `${prefixCls}-switcher-leaf-line`
|
|
@@ -43001,13 +43833,13 @@ const SwitcherIconCom = (props)=>{
|
|
|
43001
43833
|
return switcher;
|
|
43002
43834
|
}
|
|
43003
43835
|
if (showLine) {
|
|
43004
|
-
return expanded ? /*#__PURE__*/ React__namespace.createElement(
|
|
43836
|
+
return expanded ? /*#__PURE__*/ React__namespace.createElement(RefIcon$6, {
|
|
43005
43837
|
className: `${prefixCls}-switcher-line-icon`
|
|
43006
|
-
}) : /*#__PURE__*/ React__namespace.createElement(
|
|
43838
|
+
}) : /*#__PURE__*/ React__namespace.createElement(RefIcon$5, {
|
|
43007
43839
|
className: `${prefixCls}-switcher-line-icon`
|
|
43008
43840
|
});
|
|
43009
43841
|
}
|
|
43010
|
-
return /*#__PURE__*/ React__namespace.createElement(
|
|
43842
|
+
return /*#__PURE__*/ React__namespace.createElement(RefIcon$7, {
|
|
43011
43843
|
className: switcherCls
|
|
43012
43844
|
});
|
|
43013
43845
|
};
|
|
@@ -43068,7 +43900,7 @@ const Tree$1 = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
|
43068
43900
|
break;
|
|
43069
43901
|
}
|
|
43070
43902
|
if (mergedDraggable.icon !== false) {
|
|
43071
|
-
mergedDraggable.icon = mergedDraggable.icon || /*#__PURE__*/ React.createElement(
|
|
43903
|
+
mergedDraggable.icon = mergedDraggable.icon || /*#__PURE__*/ React.createElement(RefIcon$8, null);
|
|
43072
43904
|
}
|
|
43073
43905
|
return mergedDraggable;
|
|
43074
43906
|
}, [
|
|
@@ -43182,9 +44014,9 @@ function convertDirectoryKeysToNodes(treeData, keys, fieldNames) {
|
|
|
43182
44014
|
function getIcon(props) {
|
|
43183
44015
|
const { isLeaf, expanded } = props;
|
|
43184
44016
|
if (isLeaf) {
|
|
43185
|
-
return /*#__PURE__*/ React__namespace.createElement(
|
|
44017
|
+
return /*#__PURE__*/ React__namespace.createElement(RefIcon$b, null);
|
|
43186
44018
|
}
|
|
43187
|
-
return expanded ? /*#__PURE__*/ React__namespace.createElement(
|
|
44019
|
+
return expanded ? /*#__PURE__*/ React__namespace.createElement(RefIcon$a, null) : /*#__PURE__*/ React__namespace.createElement(RefIcon$9, null);
|
|
43188
44020
|
}
|
|
43189
44021
|
function getTreeData({ treeData, children }) {
|
|
43190
44022
|
return treeData || treeUtil.convertTreeToData(children);
|
|
@@ -43315,7 +44147,7 @@ const FilterSearch = (props)=>{
|
|
|
43315
44147
|
return /*#__PURE__*/ React__namespace.createElement("div", {
|
|
43316
44148
|
className: `${tablePrefixCls}-filter-dropdown-search`
|
|
43317
44149
|
}, /*#__PURE__*/ React__namespace.createElement(Input, {
|
|
43318
|
-
prefix: /*#__PURE__*/ React__namespace.createElement(
|
|
44150
|
+
prefix: /*#__PURE__*/ React__namespace.createElement(RefIcon$j, null),
|
|
43319
44151
|
placeholder: locale.filterSearchPlaceholder,
|
|
43320
44152
|
onChange: onChange,
|
|
43321
44153
|
value: value,
|
|
@@ -43711,7 +44543,7 @@ const FilterDropdown = (props)=>{
|
|
|
43711
44543
|
} else if (column.filterIcon) {
|
|
43712
44544
|
filterIcon = column.filterIcon;
|
|
43713
44545
|
} else {
|
|
43714
|
-
filterIcon = /*#__PURE__*/ React__namespace.createElement(
|
|
44546
|
+
filterIcon = /*#__PURE__*/ React__namespace.createElement(RefIcon$c, null);
|
|
43715
44547
|
}
|
|
43716
44548
|
return /*#__PURE__*/ React__namespace.createElement("span", {
|
|
43717
44549
|
role: "button",
|
|
@@ -44042,6 +44874,52 @@ function usePagination(total, onChange, pagination) {
|
|
|
44042
44874
|
];
|
|
44043
44875
|
}
|
|
44044
44876
|
|
|
44877
|
+
function _extends$4() {
|
|
44878
|
+
_extends$4 = Object.assign ? Object.assign.bind() : function(target) {
|
|
44879
|
+
for(var i = 1; i < arguments.length; i++){
|
|
44880
|
+
var source = arguments[i];
|
|
44881
|
+
for(var key in source){
|
|
44882
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
44883
|
+
target[key] = source[key];
|
|
44884
|
+
}
|
|
44885
|
+
}
|
|
44886
|
+
}
|
|
44887
|
+
return target;
|
|
44888
|
+
};
|
|
44889
|
+
return _extends$4.apply(this, arguments);
|
|
44890
|
+
}
|
|
44891
|
+
const CaretDownOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$4({}, props, {
|
|
44892
|
+
ref: ref,
|
|
44893
|
+
icon: CaretDownOutlinedSvg
|
|
44894
|
+
}));
|
|
44895
|
+
/** */ const RefIcon$4 = /*#__PURE__*/ React__namespace.forwardRef(CaretDownOutlined);
|
|
44896
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
44897
|
+
RefIcon$4.displayName = 'CaretDownOutlined';
|
|
44898
|
+
}
|
|
44899
|
+
|
|
44900
|
+
function _extends$3() {
|
|
44901
|
+
_extends$3 = Object.assign ? Object.assign.bind() : function(target) {
|
|
44902
|
+
for(var i = 1; i < arguments.length; i++){
|
|
44903
|
+
var source = arguments[i];
|
|
44904
|
+
for(var key in source){
|
|
44905
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
44906
|
+
target[key] = source[key];
|
|
44907
|
+
}
|
|
44908
|
+
}
|
|
44909
|
+
}
|
|
44910
|
+
return target;
|
|
44911
|
+
};
|
|
44912
|
+
return _extends$3.apply(this, arguments);
|
|
44913
|
+
}
|
|
44914
|
+
const CaretUpOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$3({}, props, {
|
|
44915
|
+
ref: ref,
|
|
44916
|
+
icon: CaretUpOutlinedSvg
|
|
44917
|
+
}));
|
|
44918
|
+
/** */ const RefIcon$3 = /*#__PURE__*/ React__namespace.forwardRef(CaretUpOutlined);
|
|
44919
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
44920
|
+
RefIcon$3.displayName = 'CaretUpOutlined';
|
|
44921
|
+
}
|
|
44922
|
+
|
|
44045
44923
|
const ASCEND = 'ascend';
|
|
44046
44924
|
const DESCEND = 'descend';
|
|
44047
44925
|
const getMultiplePriority = (column)=>{
|
|
@@ -44117,12 +44995,12 @@ const injectSorter = (prefixCls, columns, sorterStates, triggerSorter, defaultSo
|
|
|
44117
44995
|
sortOrder
|
|
44118
44996
|
});
|
|
44119
44997
|
} else {
|
|
44120
|
-
const upNode = sortDirections.includes(ASCEND) && /*#__PURE__*/ React__namespace.createElement(
|
|
44998
|
+
const upNode = sortDirections.includes(ASCEND) && /*#__PURE__*/ React__namespace.createElement(RefIcon$3, {
|
|
44121
44999
|
className: clsx(`${prefixCls}-column-sorter-up`, {
|
|
44122
45000
|
active: sortOrder === ASCEND
|
|
44123
45001
|
})
|
|
44124
45002
|
});
|
|
44125
|
-
const downNode = sortDirections.includes(DESCEND) && /*#__PURE__*/ React__namespace.createElement(
|
|
45003
|
+
const downNode = sortDirections.includes(DESCEND) && /*#__PURE__*/ React__namespace.createElement(RefIcon$4, {
|
|
44126
45004
|
className: clsx(`${prefixCls}-column-sorter-down`, {
|
|
44127
45005
|
active: sortOrder === DESCEND
|
|
44128
45006
|
})
|
|
@@ -46605,6 +47483,52 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
46605
47483
|
Tag.CheckableTag = CheckableTag;
|
|
46606
47484
|
Tag.CheckableTagGroup = CheckableTagGroup;
|
|
46607
47485
|
|
|
47486
|
+
function _extends$2() {
|
|
47487
|
+
_extends$2 = Object.assign ? Object.assign.bind() : function(target) {
|
|
47488
|
+
for(var i = 1; i < arguments.length; i++){
|
|
47489
|
+
var source = arguments[i];
|
|
47490
|
+
for(var key in source){
|
|
47491
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
47492
|
+
target[key] = source[key];
|
|
47493
|
+
}
|
|
47494
|
+
}
|
|
47495
|
+
}
|
|
47496
|
+
return target;
|
|
47497
|
+
};
|
|
47498
|
+
return _extends$2.apply(this, arguments);
|
|
47499
|
+
}
|
|
47500
|
+
const EditOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$2({}, props, {
|
|
47501
|
+
ref: ref,
|
|
47502
|
+
icon: EditOutlinedSvg
|
|
47503
|
+
}));
|
|
47504
|
+
/** */ const RefIcon$2 = /*#__PURE__*/ React__namespace.forwardRef(EditOutlined);
|
|
47505
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
47506
|
+
RefIcon$2.displayName = 'EditOutlined';
|
|
47507
|
+
}
|
|
47508
|
+
|
|
47509
|
+
function _extends$1() {
|
|
47510
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
47511
|
+
for(var i = 1; i < arguments.length; i++){
|
|
47512
|
+
var source = arguments[i];
|
|
47513
|
+
for(var key in source){
|
|
47514
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
47515
|
+
target[key] = source[key];
|
|
47516
|
+
}
|
|
47517
|
+
}
|
|
47518
|
+
}
|
|
47519
|
+
return target;
|
|
47520
|
+
};
|
|
47521
|
+
return _extends$1.apply(this, arguments);
|
|
47522
|
+
}
|
|
47523
|
+
const EnterOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$1({}, props, {
|
|
47524
|
+
ref: ref,
|
|
47525
|
+
icon: EnterOutlinedSvg
|
|
47526
|
+
}));
|
|
47527
|
+
/** */ const RefIcon$1 = /*#__PURE__*/ React__namespace.forwardRef(EnterOutlined);
|
|
47528
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
47529
|
+
RefIcon$1.displayName = 'EnterOutlined';
|
|
47530
|
+
}
|
|
47531
|
+
|
|
46608
47532
|
const getTitleStyle = (fontSize, lineHeight, color, token)=>{
|
|
46609
47533
|
const { titleMarginBottom, fontWeightStrong } = token;
|
|
46610
47534
|
return {
|
|
@@ -46889,7 +47813,7 @@ const prepareComponentToken = ()=>({
|
|
|
46889
47813
|
var useStyle = genStyleHooks('Typography', genTypographyStyle, prepareComponentToken);
|
|
46890
47814
|
|
|
46891
47815
|
const Editable = (props)=>{
|
|
46892
|
-
const { prefixCls, 'aria-label': ariaLabel, className, style, direction, maxLength, autoSize = true, value, onSave, onCancel, onEnd, component, enterIcon = /*#__PURE__*/ React__namespace.createElement(
|
|
47816
|
+
const { prefixCls, 'aria-label': ariaLabel, className, style, direction, maxLength, autoSize = true, value, onSave, onCancel, onEnd, component, enterIcon = /*#__PURE__*/ React__namespace.createElement(RefIcon$1, null) } = props;
|
|
46893
47817
|
const ref = React__namespace.useRef(null);
|
|
46894
47818
|
const inCompositionRef = React__namespace.useRef(false);
|
|
46895
47819
|
const lastKeyCodeRef = React__namespace.useRef(null);
|
|
@@ -47020,7 +47944,7 @@ const asyncCopy = async (text, isHtmlFormat)=>{
|
|
|
47020
47944
|
};
|
|
47021
47945
|
async function copy(text, config) {
|
|
47022
47946
|
if (typeof text !== 'string') {
|
|
47023
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
47947
|
+
process.env.NODE_ENV !== "production" ? warning$2(false, 'The clipboard content must be of string type', '') : void 0;
|
|
47024
47948
|
return false;
|
|
47025
47949
|
}
|
|
47026
47950
|
const isHtmlFormat = config?.format === 'text/html';
|
|
@@ -47151,6 +48075,29 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
47151
48075
|
Typography$1.displayName = 'Typography';
|
|
47152
48076
|
}
|
|
47153
48077
|
|
|
48078
|
+
function _extends() {
|
|
48079
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
48080
|
+
for(var i = 1; i < arguments.length; i++){
|
|
48081
|
+
var source = arguments[i];
|
|
48082
|
+
for(var key in source){
|
|
48083
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
48084
|
+
target[key] = source[key];
|
|
48085
|
+
}
|
|
48086
|
+
}
|
|
48087
|
+
}
|
|
48088
|
+
return target;
|
|
48089
|
+
};
|
|
48090
|
+
return _extends.apply(this, arguments);
|
|
48091
|
+
}
|
|
48092
|
+
const CopyOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends({}, props, {
|
|
48093
|
+
ref: ref,
|
|
48094
|
+
icon: CopyOutlinedSvg
|
|
48095
|
+
}));
|
|
48096
|
+
/** */ const RefIcon = /*#__PURE__*/ React__namespace.forwardRef(CopyOutlined);
|
|
48097
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
48098
|
+
RefIcon.displayName = 'CopyOutlined';
|
|
48099
|
+
}
|
|
48100
|
+
|
|
47154
48101
|
const toCopyConfigList = (val)=>{
|
|
47155
48102
|
if (val === false) {
|
|
47156
48103
|
return [
|
|
@@ -47212,7 +48159,7 @@ const CopyBtn = (props)=>{
|
|
|
47212
48159
|
onClick: onCopy,
|
|
47213
48160
|
"aria-label": ariaLabel,
|
|
47214
48161
|
tabIndex: tabIndex
|
|
47215
|
-
}, copied ? getNode(iconNodes[1], /*#__PURE__*/ React__namespace.createElement(
|
|
48162
|
+
}, copied ? getNode(iconNodes[1], /*#__PURE__*/ React__namespace.createElement(RefIcon$l, null), true) : getNode(iconNodes[0], btnLoading ? /*#__PURE__*/ React__namespace.createElement(RefIcon$n, null) : /*#__PURE__*/ React__namespace.createElement(RefIcon, null), true)));
|
|
47216
48163
|
};
|
|
47217
48164
|
|
|
47218
48165
|
const MeasureText = /*#__PURE__*/ React__namespace.forwardRef(({ style, children }, ref)=>{
|
|
@@ -47710,7 +48657,7 @@ const Base = /*#__PURE__*/ React__namespace.forwardRef((props, ref$1)=>{
|
|
|
47710
48657
|
onClick: onEditClick,
|
|
47711
48658
|
"aria-label": ariaLabel,
|
|
47712
48659
|
tabIndex: tabIndex
|
|
47713
|
-
}, icon || /*#__PURE__*/ React__namespace.createElement(
|
|
48660
|
+
}, icon || /*#__PURE__*/ React__namespace.createElement(RefIcon$2, {
|
|
47714
48661
|
role: "button"
|
|
47715
48662
|
}))) : null;
|
|
47716
48663
|
};
|
|
@@ -47838,7 +48785,7 @@ const Paragraph = /*#__PURE__*/ React__namespace.forwardRef((props, ref)=>{
|
|
|
47838
48785
|
}, children);
|
|
47839
48786
|
});
|
|
47840
48787
|
|
|
47841
|
-
const Text$
|
|
48788
|
+
const Text$3 = /*#__PURE__*/ React__namespace.forwardRef((props, ref)=>{
|
|
47842
48789
|
const { ellipsis, children, ...restProps } = props;
|
|
47843
48790
|
const mergedEllipsis = React__namespace.useMemo(()=>{
|
|
47844
48791
|
if (ellipsis && typeof ellipsis === 'object') {
|
|
@@ -47885,7 +48832,7 @@ const Title$1 = /*#__PURE__*/ React__namespace.forwardRef((props, ref)=>{
|
|
|
47885
48832
|
});
|
|
47886
48833
|
|
|
47887
48834
|
const Typography = Typography$1;
|
|
47888
|
-
Typography.Text = Text$
|
|
48835
|
+
Typography.Text = Text$3;
|
|
47889
48836
|
Typography.Link = Link$1;
|
|
47890
48837
|
Typography.Title = Title$1;
|
|
47891
48838
|
Typography.Paragraph = Paragraph;
|
|
@@ -48206,6 +49153,130 @@ function valueToTreeNodes(value, path) {
|
|
|
48206
49153
|
return valueToTreeNodes(data, "$root");
|
|
48207
49154
|
}
|
|
48208
49155
|
|
|
49156
|
+
const { Text: Text$2 } = Typography;
|
|
49157
|
+
/**
|
|
49158
|
+
* Detect whether a tool/node output is an error envelope rather than a regular
|
|
49159
|
+
* return value. Failed nodes serialize as `{ type, message, traceback }`; a
|
|
49160
|
+
* traceback alone, or a `type` + `message` pair, is enough to treat it as an
|
|
49161
|
+
* error. Returns the parsed error (with only string fields kept) or null.
|
|
49162
|
+
*/ function parseErrorOutput(output) {
|
|
49163
|
+
if (output === null || typeof output !== "object" || Array.isArray(output)) {
|
|
49164
|
+
return null;
|
|
49165
|
+
}
|
|
49166
|
+
const obj = output;
|
|
49167
|
+
const type = typeof obj.type === "string" ? obj.type : undefined;
|
|
49168
|
+
const message = typeof obj.message === "string" ? obj.message : undefined;
|
|
49169
|
+
const traceback = typeof obj.traceback === "string" ? obj.traceback : undefined;
|
|
49170
|
+
const looksLikeError = traceback !== undefined || type !== undefined && message !== undefined;
|
|
49171
|
+
return looksLikeError ? {
|
|
49172
|
+
type,
|
|
49173
|
+
message,
|
|
49174
|
+
traceback
|
|
49175
|
+
} : null;
|
|
49176
|
+
}
|
|
49177
|
+
/**
|
|
49178
|
+
* Renders a failed node/tool output distinctly from a regular returned object:
|
|
49179
|
+
* a destructive-tinted surface with the exception type, message, and a
|
|
49180
|
+
* collapsible traceback.
|
|
49181
|
+
*/ const ErrorOutput = ({ error })=>{
|
|
49182
|
+
const { theme } = useTheme$1();
|
|
49183
|
+
const [showTraceback, setShowTraceback] = React.useState(false);
|
|
49184
|
+
const destructive = theme?.colors?.destructive ?? "hsl(0 84.2% 60.2%)";
|
|
49185
|
+
const foreground = theme?.colors?.foreground ?? "inherit";
|
|
49186
|
+
const mutedForeground = theme?.colors?.mutedForeground ?? "inherit";
|
|
49187
|
+
const radius = theme?.borderRadius?.md ?? "0.375rem";
|
|
49188
|
+
const xs = theme?.spacing?.xs ?? "0.25rem";
|
|
49189
|
+
const sm = theme?.spacing?.sm ?? "0.5rem";
|
|
49190
|
+
const md = theme?.spacing?.md ?? "1rem";
|
|
49191
|
+
const fontXs = theme?.fontSize?.xs ?? "0.75rem";
|
|
49192
|
+
const fontSm = theme?.fontSize?.sm ?? "0.875rem";
|
|
49193
|
+
const { type, message, traceback } = error;
|
|
49194
|
+
return /*#__PURE__*/ React.createElement("div", {
|
|
49195
|
+
"data-testid": "error-output",
|
|
49196
|
+
style: {
|
|
49197
|
+
border: `1px solid color-mix(in srgb, ${destructive} 45%, transparent)`,
|
|
49198
|
+
background: `color-mix(in srgb, ${destructive} 8%, transparent)`,
|
|
49199
|
+
borderRadius: radius,
|
|
49200
|
+
padding: md,
|
|
49201
|
+
display: "flex",
|
|
49202
|
+
flexDirection: "column",
|
|
49203
|
+
gap: sm
|
|
49204
|
+
}
|
|
49205
|
+
}, /*#__PURE__*/ React.createElement("div", {
|
|
49206
|
+
style: {
|
|
49207
|
+
display: "flex",
|
|
49208
|
+
alignItems: "center",
|
|
49209
|
+
gap: sm,
|
|
49210
|
+
flexWrap: "wrap"
|
|
49211
|
+
}
|
|
49212
|
+
}, /*#__PURE__*/ React.createElement(TriangleAlert, {
|
|
49213
|
+
size: 16,
|
|
49214
|
+
color: destructive,
|
|
49215
|
+
strokeWidth: 2,
|
|
49216
|
+
"aria-hidden": true
|
|
49217
|
+
}), /*#__PURE__*/ React.createElement(Tag, {
|
|
49218
|
+
color: "red",
|
|
49219
|
+
style: {
|
|
49220
|
+
margin: 0
|
|
49221
|
+
}
|
|
49222
|
+
}, type || "Error")), message && /*#__PURE__*/ React.createElement(Text$2, {
|
|
49223
|
+
strong: true,
|
|
49224
|
+
style: {
|
|
49225
|
+
color: foreground,
|
|
49226
|
+
fontSize: fontSm,
|
|
49227
|
+
wordBreak: "break-word"
|
|
49228
|
+
}
|
|
49229
|
+
}, message), traceback && /*#__PURE__*/ React.createElement("div", {
|
|
49230
|
+
style: {
|
|
49231
|
+
display: "flex",
|
|
49232
|
+
flexDirection: "column",
|
|
49233
|
+
gap: xs
|
|
49234
|
+
}
|
|
49235
|
+
}, /*#__PURE__*/ React.createElement("button", {
|
|
49236
|
+
type: "button",
|
|
49237
|
+
onClick: ()=>setShowTraceback((prev)=>!prev),
|
|
49238
|
+
"aria-expanded": showTraceback,
|
|
49239
|
+
style: {
|
|
49240
|
+
display: "inline-flex",
|
|
49241
|
+
alignItems: "center",
|
|
49242
|
+
gap: xs,
|
|
49243
|
+
alignSelf: "flex-start",
|
|
49244
|
+
padding: 0,
|
|
49245
|
+
border: "none",
|
|
49246
|
+
background: "transparent",
|
|
49247
|
+
cursor: "pointer",
|
|
49248
|
+
color: destructive,
|
|
49249
|
+
fontSize: fontXs,
|
|
49250
|
+
fontWeight: 500
|
|
49251
|
+
}
|
|
49252
|
+
}, showTraceback ? /*#__PURE__*/ React.createElement(ChevronDown, {
|
|
49253
|
+
size: 14,
|
|
49254
|
+
strokeWidth: 2,
|
|
49255
|
+
"aria-hidden": true
|
|
49256
|
+
}) : /*#__PURE__*/ React.createElement(ChevronRight, {
|
|
49257
|
+
size: 14,
|
|
49258
|
+
strokeWidth: 2,
|
|
49259
|
+
"aria-hidden": true
|
|
49260
|
+
}), showTraceback ? "Hide traceback" : "Show traceback"), showTraceback && /*#__PURE__*/ React.createElement("pre", {
|
|
49261
|
+
"data-testid": "error-output-traceback",
|
|
49262
|
+
style: {
|
|
49263
|
+
margin: 0,
|
|
49264
|
+
padding: sm,
|
|
49265
|
+
borderRadius: radius,
|
|
49266
|
+
background: `color-mix(in srgb, ${destructive} 6%, transparent)`,
|
|
49267
|
+
border: `1px solid color-mix(in srgb, ${destructive} 25%, transparent)`,
|
|
49268
|
+
color: mutedForeground,
|
|
49269
|
+
fontFamily: "monospace",
|
|
49270
|
+
fontSize: fontXs,
|
|
49271
|
+
lineHeight: 1.5,
|
|
49272
|
+
whiteSpace: "pre-wrap",
|
|
49273
|
+
wordBreak: "break-word",
|
|
49274
|
+
maxHeight: "300px",
|
|
49275
|
+
overflow: "auto"
|
|
49276
|
+
}
|
|
49277
|
+
}, traceback)));
|
|
49278
|
+
};
|
|
49279
|
+
|
|
48209
49280
|
const { Text: Text$1 } = Typography;
|
|
48210
49281
|
function themedCodeSurface(theme) {
|
|
48211
49282
|
return {
|
|
@@ -48384,8 +49455,9 @@ const InputsOutputsCollapse = ({ inputs, output, toolOutput, modelProvider, mode
|
|
|
48384
49455
|
const { theme } = useTheme$1();
|
|
48385
49456
|
const hasInputs = hasInputsProp ?? inputs.length > 0;
|
|
48386
49457
|
const hasOutputs = output !== null || toolOutput !== null;
|
|
49458
|
+
const errorOutput = parseErrorOutput(toolOutput);
|
|
48387
49459
|
const outputsText = hasOutputs ? formatOutputAsText(output, toolOutput) : "";
|
|
48388
|
-
const isToolOutputTabular = toolOutput !== null && toolOutput !== undefined && isTabularData(toolOutput);
|
|
49460
|
+
const isToolOutputTabular = !errorOutput && toolOutput !== null && toolOutput !== undefined && isTabularData(toolOutput);
|
|
48389
49461
|
const toolInputText = getToolInputText(inputs);
|
|
48390
49462
|
const inputsLabel = largeInputsTitle ? /*#__PURE__*/ React.createElement("div", {
|
|
48391
49463
|
style: {
|
|
@@ -48470,13 +49542,26 @@ const InputsOutputsCollapse = ({ inputs, output, toolOutput, modelProvider, mode
|
|
|
48470
49542
|
},
|
|
48471
49543
|
{
|
|
48472
49544
|
key: "outputs",
|
|
48473
|
-
label: /*#__PURE__*/ React.createElement(
|
|
49545
|
+
label: /*#__PURE__*/ React.createElement("div", {
|
|
49546
|
+
style: {
|
|
49547
|
+
display: "flex",
|
|
49548
|
+
alignItems: "center",
|
|
49549
|
+
gap: theme.spacing.sm
|
|
49550
|
+
}
|
|
49551
|
+
}, /*#__PURE__*/ React.createElement(Text$1, {
|
|
48474
49552
|
strong: true,
|
|
48475
49553
|
style: {
|
|
48476
49554
|
color: theme.colors.foreground
|
|
48477
49555
|
}
|
|
48478
|
-
}, "Outputs"),
|
|
48479
|
-
|
|
49556
|
+
}, "Outputs"), errorOutput && /*#__PURE__*/ React.createElement(Tag, {
|
|
49557
|
+
color: "red",
|
|
49558
|
+
style: {
|
|
49559
|
+
margin: 0
|
|
49560
|
+
}
|
|
49561
|
+
}, "Failed")),
|
|
49562
|
+
children: hasOutputs ? errorOutput ? /*#__PURE__*/ React.createElement(ErrorOutput, {
|
|
49563
|
+
error: errorOutput
|
|
49564
|
+
}) : isToolOutputTabular ? /*#__PURE__*/ React.createElement(JsonValueTree, {
|
|
48480
49565
|
data: toolOutput
|
|
48481
49566
|
}) : /*#__PURE__*/ React.createElement("pre", {
|
|
48482
49567
|
style: outputPreStyle
|
|
@@ -51724,6 +52809,13 @@ function RemoveScrollSideCar(props) {
|
|
|
51724
52809
|
if ('touches' in event && moveDirection === 'h' && target.type === 'range') {
|
|
51725
52810
|
return false;
|
|
51726
52811
|
}
|
|
52812
|
+
// allow drag selection (iOS); check if selection's anchorNode is the same as target or contains target
|
|
52813
|
+
var selection = window.getSelection();
|
|
52814
|
+
var anchorNode = selection && selection.anchorNode;
|
|
52815
|
+
var isTouchingSelection = anchorNode ? anchorNode === target || anchorNode.contains(target) : false;
|
|
52816
|
+
if (isTouchingSelection) {
|
|
52817
|
+
return false;
|
|
52818
|
+
}
|
|
51727
52819
|
var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
|
|
51728
52820
|
if (!canBeScrolledInMainDirection) {
|
|
51729
52821
|
return true;
|
|
@@ -114358,7 +115450,7 @@ const EvaluationsErrorCard = ({ error, onRetry })=>/*#__PURE__*/ React.createEle
|
|
|
114358
115450
|
}
|
|
114359
115451
|
}, /*#__PURE__*/ React.createElement(Alert, {
|
|
114360
115452
|
type: "error",
|
|
114361
|
-
|
|
115453
|
+
message: "Error loading evaluations",
|
|
114362
115454
|
description: /*#__PURE__*/ React.createElement("div", {
|
|
114363
115455
|
style: {
|
|
114364
115456
|
display: "flex",
|
|
@@ -114394,7 +115486,7 @@ const EvaluationsErrorCard = ({ error, onRetry })=>/*#__PURE__*/ React.createEle
|
|
|
114394
115486
|
showIcon: true
|
|
114395
115487
|
}));
|
|
114396
115488
|
|
|
114397
|
-
const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefresh, onRowClick, onCompare, compareIdsFromUrl, onCompareUrlChange, showFilters = true, showCompare = true, emptyMessage, title, pagination: serverPagination, onFiltersChange, onFetchEvaluationsByIds, errorRender })=>{
|
|
115489
|
+
const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefresh, onRowClick, onCompare, compareIdsFromUrl, onCompareUrlChange, showFilters = true, showCompare = true, emptyMessage, title, pagination: serverPagination, onFiltersChange, onFetchEvaluationsByIds, errorRender, initialSessionIds, onSessionFilterChange, initialNameFilter, onNameFilterChange })=>{
|
|
114398
115490
|
const { theme } = useTheme$1();
|
|
114399
115491
|
const [selectedAgents, setSelectedAgents] = React.useState([]);
|
|
114400
115492
|
const [selectedRowKeys, setSelectedRowKeys] = React.useState([]);
|
|
@@ -114406,6 +115498,8 @@ const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefres
|
|
|
114406
115498
|
const [pageSize, setPageSize] = React.useState(50);
|
|
114407
115499
|
const [selectedMetricFilter, setSelectedMetricFilter] = React.useState(null);
|
|
114408
115500
|
const [drawerEvaluations, setDrawerEvaluations] = React.useState([]);
|
|
115501
|
+
const [selectedSessions, setSelectedSessions] = React.useState(initialSessionIds ?? []);
|
|
115502
|
+
const [selectedNames, setSelectedNames] = React.useState(initialNameFilter ?? []);
|
|
114409
115503
|
const isServerPagination = !!serverPagination;
|
|
114410
115504
|
const normalized = React.useMemo(()=>evaluations.map((e)=>isEvaluationDto(e) ? transformEvaluation(e) : e), [
|
|
114411
115505
|
evaluations
|
|
@@ -114440,6 +115534,27 @@ const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefres
|
|
|
114440
115534
|
}, [
|
|
114441
115535
|
normalized
|
|
114442
115536
|
]);
|
|
115537
|
+
const uniqueSessionIds = React.useMemo(()=>{
|
|
115538
|
+
const ids = new Set();
|
|
115539
|
+
for (const ev of normalized){
|
|
115540
|
+
for (const agent of ev.agents ?? []){
|
|
115541
|
+
for (const entry of agent.agent_node_ids ?? []){
|
|
115542
|
+
if (typeof entry === "object" && "session_id" in entry) {
|
|
115543
|
+
ids.add(entry.session_id);
|
|
115544
|
+
}
|
|
115545
|
+
}
|
|
115546
|
+
}
|
|
115547
|
+
}
|
|
115548
|
+
return Array.from(ids).sort();
|
|
115549
|
+
}, [
|
|
115550
|
+
normalized
|
|
115551
|
+
]);
|
|
115552
|
+
const uniqueEvaluationNames = React.useMemo(()=>{
|
|
115553
|
+
const names = new Set(normalized.map((e)=>e.name).filter(Boolean));
|
|
115554
|
+
return Array.from(names).sort();
|
|
115555
|
+
}, [
|
|
115556
|
+
normalized
|
|
115557
|
+
]);
|
|
114443
115558
|
const filteredEvaluations = React.useMemo(()=>{
|
|
114444
115559
|
let result = normalized;
|
|
114445
115560
|
if (selectedAgents.length > 0) {
|
|
@@ -114449,11 +115564,38 @@ const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefres
|
|
|
114449
115564
|
const [evaluatorName, metricName] = selectedMetricFilter.split("::");
|
|
114450
115565
|
result = result.filter((evaluation)=>evaluation.evaluators.some((ev)=>ev.name === evaluatorName && evaluation.results[ev.evaluator_id]?.[metricName] !== undefined));
|
|
114451
115566
|
}
|
|
115567
|
+
if (selectedNames.length > 0) {
|
|
115568
|
+
result = result.filter((ev)=>selectedNames.includes(ev.name));
|
|
115569
|
+
}
|
|
115570
|
+
if (selectedSessions.length > 0) {
|
|
115571
|
+
const lowerSessions = selectedSessions.map((s)=>s.toLowerCase());
|
|
115572
|
+
const getEvSessions = (ev)=>{
|
|
115573
|
+
const ids = new Set();
|
|
115574
|
+
for (const agent of ev.agents ?? []){
|
|
115575
|
+
for (const entry of agent.agent_node_ids ?? []){
|
|
115576
|
+
if (typeof entry === "object" && "session_id" in entry) {
|
|
115577
|
+
ids.add(entry.session_id.toLowerCase());
|
|
115578
|
+
}
|
|
115579
|
+
}
|
|
115580
|
+
}
|
|
115581
|
+
return ids;
|
|
115582
|
+
};
|
|
115583
|
+
result = result.filter((ev)=>{
|
|
115584
|
+
const ids = getEvSessions(ev);
|
|
115585
|
+
return lowerSessions.some((s)=>ids.has(s));
|
|
115586
|
+
}).sort((a, b)=>{
|
|
115587
|
+
const aIds = getEvSessions(a);
|
|
115588
|
+
const bIds = getEvSessions(b);
|
|
115589
|
+
return lowerSessions.filter((s)=>bIds.has(s)).length - lowerSessions.filter((s)=>aIds.has(s)).length;
|
|
115590
|
+
});
|
|
115591
|
+
}
|
|
114452
115592
|
return result;
|
|
114453
115593
|
}, [
|
|
114454
115594
|
normalized,
|
|
114455
115595
|
selectedAgents,
|
|
114456
|
-
selectedMetricFilter
|
|
115596
|
+
selectedMetricFilter,
|
|
115597
|
+
selectedNames,
|
|
115598
|
+
selectedSessions
|
|
114457
115599
|
]);
|
|
114458
115600
|
const tableDataSource = filteredEvaluations;
|
|
114459
115601
|
const compareDrawerEvaluations = React.useMemo(()=>{
|
|
@@ -114665,6 +115807,7 @@ const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefres
|
|
|
114665
115807
|
placeholder: "Filter by Agent",
|
|
114666
115808
|
allowClear: true,
|
|
114667
115809
|
value: selectedAgents,
|
|
115810
|
+
maxTagCount: "responsive",
|
|
114668
115811
|
onChange: (v)=>{
|
|
114669
115812
|
setSelectedAgents(v);
|
|
114670
115813
|
if (isServerPagination && onFiltersChange) {
|
|
@@ -114681,6 +115824,7 @@ const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefres
|
|
|
114681
115824
|
}), /*#__PURE__*/ React.createElement(Select, {
|
|
114682
115825
|
placeholder: "Filter by Evaluator / Metric",
|
|
114683
115826
|
allowClear: true,
|
|
115827
|
+
maxTagCount: "responsive",
|
|
114684
115828
|
value: selectedMetricFilter ?? undefined,
|
|
114685
115829
|
onChange: (v)=>{
|
|
114686
115830
|
const next = v ?? null;
|
|
@@ -114693,6 +115837,45 @@ const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefres
|
|
|
114693
115837
|
width: 240
|
|
114694
115838
|
},
|
|
114695
115839
|
options: groupedMetricOptions
|
|
115840
|
+
}), /*#__PURE__*/ React.createElement(Select, {
|
|
115841
|
+
mode: "tags",
|
|
115842
|
+
placeholder: "Filter by Session ID…",
|
|
115843
|
+
allowClear: true,
|
|
115844
|
+
value: selectedSessions,
|
|
115845
|
+
maxTagCount: "responsive",
|
|
115846
|
+
onChange: (v)=>{
|
|
115847
|
+
setSelectedSessions(v);
|
|
115848
|
+
onSessionFilterChange?.(v);
|
|
115849
|
+
},
|
|
115850
|
+
style: {
|
|
115851
|
+
width: 280
|
|
115852
|
+
},
|
|
115853
|
+
tokenSeparators: [
|
|
115854
|
+
","
|
|
115855
|
+
],
|
|
115856
|
+
options: uniqueSessionIds.map((id)=>({
|
|
115857
|
+
label: id,
|
|
115858
|
+
value: id
|
|
115859
|
+
}))
|
|
115860
|
+
}), /*#__PURE__*/ React.createElement(Select, {
|
|
115861
|
+
mode: "multiple",
|
|
115862
|
+
showSearch: true,
|
|
115863
|
+
placeholder: "Filter by Evaluation Name…",
|
|
115864
|
+
allowClear: true,
|
|
115865
|
+
value: selectedNames,
|
|
115866
|
+
maxTagCount: "responsive",
|
|
115867
|
+
onChange: (v)=>{
|
|
115868
|
+
setSelectedNames(v);
|
|
115869
|
+
onNameFilterChange?.(v);
|
|
115870
|
+
},
|
|
115871
|
+
style: {
|
|
115872
|
+
width: 240
|
|
115873
|
+
},
|
|
115874
|
+
options: uniqueEvaluationNames.map((n)=>({
|
|
115875
|
+
label: n,
|
|
115876
|
+
value: n
|
|
115877
|
+
})),
|
|
115878
|
+
filterOption: (input, option)=>(option?.label ?? "").toLowerCase().includes(input.toLowerCase())
|
|
114696
115879
|
})), onRefresh && /*#__PURE__*/ React.createElement(Button$1, {
|
|
114697
115880
|
icon: /*#__PURE__*/ React.createElement(RefreshCw, {
|
|
114698
115881
|
size: 14
|