@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/esm/index.js
CHANGED
|
@@ -6,23 +6,21 @@ import ReactDOM__default from 'react-dom';
|
|
|
6
6
|
import CountUp from 'react-countup';
|
|
7
7
|
import { render, unmount } from '@rc-component/util/es/React/render';
|
|
8
8
|
import { createTheme, useCacheToken, unit, useStyleRegister, StyleContext, Keyframes } from '@ant-design/cssinjs';
|
|
9
|
-
import
|
|
10
|
-
import { warning as warning$2, merge, useEvent, toArray as toArray$1, omit, useComposeRef, useControlledState } from '@rc-component/util';
|
|
9
|
+
import { warning as warning$3, getShadowRoot, updateCSS, merge, useEvent, toArray as toArray$1, omit, useComposeRef, useControlledState } from '@rc-component/util';
|
|
11
10
|
import useMemo$1 from '@rc-component/util/es/hooks/useMemo';
|
|
12
11
|
import Pagination$1 from '@rc-component/pagination/es/locale/en_US';
|
|
13
|
-
import { generate, presetPrimaryColors, presetPalettes, gold } from '@ant-design/colors';
|
|
12
|
+
import { generate as generate$1, presetPrimaryColors, presetPalettes, blue, gold } from '@ant-design/colors';
|
|
14
13
|
import { FastColor } from '@ant-design/fast-color';
|
|
15
14
|
import { UniqueProvider as UniqueProvider$1 } from '@rc-component/trigger';
|
|
16
15
|
import CSSMotion, { Provider as Provider$2 } from '@rc-component/motion';
|
|
17
16
|
import isEqual from '@rc-component/util/es/isEqual';
|
|
18
17
|
import { genStyleUtils, mergeToken } from '@ant-design/cssinjs-utils';
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
18
|
+
import CheckCircleFilledSvg from '@ant-design/icons-svg/lib/asn/CheckCircleFilled';
|
|
19
|
+
import CloseCircleFilledSvg from '@ant-design/icons-svg/lib/asn/CloseCircleFilled';
|
|
20
|
+
import ExclamationCircleFilledSvg from '@ant-design/icons-svg/lib/asn/ExclamationCircleFilled';
|
|
21
|
+
import InfoCircleFilledSvg from '@ant-design/icons-svg/lib/asn/InfoCircleFilled';
|
|
22
|
+
import LoadingOutlinedSvg from '@ant-design/icons-svg/lib/asn/LoadingOutlined';
|
|
24
23
|
import { Notice, useNotification, NotificationProvider } from '@rc-component/notification';
|
|
25
|
-
import CloseOutlined from '@ant-design/icons/es/icons/CloseOutlined';
|
|
26
24
|
import pickAttrs from '@rc-component/util/es/pickAttrs';
|
|
27
25
|
import RcTooltip, { Popup } from '@rc-component/tooltip';
|
|
28
26
|
import '@rc-component/form';
|
|
@@ -31,53 +29,54 @@ import useLayoutEffect$1 from '@rc-component/util/es/hooks/useLayoutEffect';
|
|
|
31
29
|
import isVisible from '@rc-component/util/es/Dom/isVisible';
|
|
32
30
|
import { composeRef, supportRef, getNodeRef, supportNodeRef, useComposeRef as useComposeRef$1 } from '@rc-component/util/es/ref';
|
|
33
31
|
import raf from '@rc-component/util/es/raf';
|
|
34
|
-
import
|
|
32
|
+
import RightOutlinedSvg from '@ant-design/icons-svg/lib/asn/RightOutlined';
|
|
35
33
|
import RcCollapse from '@rc-component/collapse';
|
|
36
34
|
import RcTree, { TreeNode as TreeNode$1 } from '@rc-component/tree';
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
35
|
+
import FileOutlinedSvg from '@ant-design/icons-svg/lib/asn/FileOutlined';
|
|
36
|
+
import FolderOpenOutlinedSvg from '@ant-design/icons-svg/lib/asn/FolderOpenOutlined';
|
|
37
|
+
import FolderOutlinedSvg from '@ant-design/icons-svg/lib/asn/FolderOutlined';
|
|
40
38
|
import { arrDel, arrAdd, conductExpandParent } from '@rc-component/tree/es/util';
|
|
41
39
|
import { convertDataToEntities, fillFieldNames, convertTreeToData } from '@rc-component/tree/es/utils/treeUtil';
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
40
|
+
import HolderOutlinedSvg from '@ant-design/icons-svg/lib/asn/HolderOutlined';
|
|
41
|
+
import CaretDownFilledSvg from '@ant-design/icons-svg/lib/asn/CaretDownFilled';
|
|
42
|
+
import MinusSquareOutlinedSvg from '@ant-design/icons-svg/lib/asn/MinusSquareOutlined';
|
|
43
|
+
import PlusSquareOutlinedSvg from '@ant-design/icons-svg/lib/asn/PlusSquareOutlined';
|
|
44
|
+
import EditOutlinedSvg from '@ant-design/icons-svg/lib/asn/EditOutlined';
|
|
47
45
|
import ResizeObserver$1 from '@rc-component/resize-observer';
|
|
48
46
|
import '@rc-component/util/es/Dom/canUseDom';
|
|
49
47
|
import { isStyleSupport } from '@rc-component/util/es/Dom/styleChecker';
|
|
50
|
-
import
|
|
48
|
+
import EnterOutlinedSvg from '@ant-design/icons-svg/lib/asn/EnterOutlined';
|
|
51
49
|
import KeyCode from '@rc-component/util/es/KeyCode';
|
|
52
50
|
import RcTextArea from '@rc-component/textarea';
|
|
53
51
|
import RcInput from '@rc-component/input';
|
|
54
52
|
import { triggerFocus } from '@rc-component/util/es/Dom/focus';
|
|
55
|
-
import
|
|
56
|
-
import
|
|
53
|
+
import CheckOutlinedSvg from '@ant-design/icons-svg/lib/asn/CheckOutlined';
|
|
54
|
+
import CopyOutlinedSvg from '@ant-design/icons-svg/lib/asn/CopyOutlined';
|
|
55
|
+
import CloseOutlinedSvg from '@ant-design/icons-svg/lib/asn/CloseOutlined';
|
|
57
56
|
import RcDrawer from '@rc-component/drawer';
|
|
58
57
|
import useId$2 from '@rc-component/util/es/hooks/useId';
|
|
59
|
-
import
|
|
60
|
-
import
|
|
58
|
+
import EllipsisOutlinedSvg from '@ant-design/icons-svg/lib/asn/EllipsisOutlined';
|
|
59
|
+
import PlusOutlinedSvg from '@ant-design/icons-svg/lib/asn/PlusOutlined';
|
|
61
60
|
import RcTabs from '@rc-component/tabs';
|
|
62
61
|
import RcSwitch from '@rc-component/switch';
|
|
63
62
|
import RcSelect, { Option, OptGroup } from '@rc-component/select';
|
|
64
|
-
import
|
|
65
|
-
import
|
|
63
|
+
import DownOutlinedSvg from '@ant-design/icons-svg/lib/asn/DownOutlined';
|
|
64
|
+
import SearchOutlinedSvg from '@ant-design/icons-svg/lib/asn/SearchOutlined';
|
|
66
65
|
import { INTERNAL_COL_DEFINE, genTable, genVirtualTable, INTERNAL_HOOKS, EXPAND_COLUMN, Summary } from '@rc-component/table';
|
|
67
66
|
import { conductCheck } from '@rc-component/tree/es/utils/conductUtil';
|
|
68
67
|
import useControlledState$1 from '@rc-component/util/es/hooks/useControlledState';
|
|
69
|
-
import
|
|
68
|
+
import LeftOutlinedSvg from '@ant-design/icons-svg/lib/asn/LeftOutlined';
|
|
70
69
|
import RcDropdown from '@rc-component/dropdown';
|
|
71
70
|
import RcMenu, { Divider as Divider$1, Item as Item$1, useFullPath, SubMenu as SubMenu$1, ItemGroup } from '@rc-component/menu';
|
|
72
|
-
import
|
|
71
|
+
import BarsOutlinedSvg from '@ant-design/icons-svg/lib/asn/BarsOutlined';
|
|
73
72
|
import '@rc-component/util/es/Dom/findDOMNode';
|
|
74
73
|
import { convertChildrenToColumns } from '@rc-component/table/es/hooks/useColumns';
|
|
75
|
-
import
|
|
76
|
-
import
|
|
74
|
+
import DoubleLeftOutlinedSvg from '@ant-design/icons-svg/lib/asn/DoubleLeftOutlined';
|
|
75
|
+
import DoubleRightOutlinedSvg from '@ant-design/icons-svg/lib/asn/DoubleRightOutlined';
|
|
77
76
|
import RcPagination from '@rc-component/pagination';
|
|
78
|
-
import
|
|
79
|
-
import
|
|
80
|
-
import
|
|
77
|
+
import FilterFilledSvg from '@ant-design/icons-svg/lib/asn/FilterFilled';
|
|
78
|
+
import CaretDownOutlinedSvg from '@ant-design/icons-svg/lib/asn/CaretDownOutlined';
|
|
79
|
+
import CaretUpOutlinedSvg from '@ant-design/icons-svg/lib/asn/CaretUpOutlined';
|
|
81
80
|
|
|
82
81
|
function cc(names) {
|
|
83
82
|
if (typeof names === "string" || typeof names === "number") return "" + names;
|
|
@@ -97,7 +96,7 @@ function cc(names) {
|
|
|
97
96
|
}
|
|
98
97
|
|
|
99
98
|
var noop$2 = {
|
|
100
|
-
value: ()
|
|
99
|
+
value: function() {}
|
|
101
100
|
};
|
|
102
101
|
function dispatch() {
|
|
103
102
|
for(var i = 0, n = arguments.length, _ = {}, t; i < n; ++i){
|
|
@@ -12885,7 +12884,7 @@ const toPascalCase = (string)=>{
|
|
|
12885
12884
|
const LucideContext = createContext({});
|
|
12886
12885
|
const useLucideContext = ()=>useContext(LucideContext);
|
|
12887
12886
|
|
|
12888
|
-
const Icon = forwardRef(({ color, size, strokeWidth, absoluteStrokeWidth, className = "", children, iconNode, ...rest }, ref)=>{
|
|
12887
|
+
const Icon$1 = forwardRef(({ color, size, strokeWidth, absoluteStrokeWidth, className = "", children, iconNode, ...rest }, ref)=>{
|
|
12889
12888
|
const { size: contextSize = 24, strokeWidth: contextStrokeWidth = 2, absoluteStrokeWidth: contextAbsoluteStrokeWidth = false, color: contextColor = "currentColor", className: contextClass = "" } = useLucideContext() ?? {};
|
|
12890
12889
|
const calculatedStrokeWidth = absoluteStrokeWidth ?? contextAbsoluteStrokeWidth ? Number(strokeWidth ?? contextStrokeWidth) * 24 / Number(size ?? contextSize) : strokeWidth ?? contextStrokeWidth;
|
|
12891
12890
|
return createElement("svg", {
|
|
@@ -12909,7 +12908,7 @@ const Icon = forwardRef(({ color, size, strokeWidth, absoluteStrokeWidth, classN
|
|
|
12909
12908
|
});
|
|
12910
12909
|
|
|
12911
12910
|
const createLucideIcon = (iconName, iconNode)=>{
|
|
12912
|
-
const Component = forwardRef(({ className, ...props }, ref)=>createElement(Icon, {
|
|
12911
|
+
const Component = forwardRef(({ className, ...props }, ref)=>createElement(Icon$1, {
|
|
12913
12912
|
ref,
|
|
12914
12913
|
iconNode,
|
|
12915
12914
|
className: mergeClasses(`lucide-${toKebabCase(toPascalCase(iconName))}`, `lucide-${iconName}`, className),
|
|
@@ -12919,7 +12918,7 @@ const createLucideIcon = (iconName, iconNode)=>{
|
|
|
12919
12918
|
return Component;
|
|
12920
12919
|
};
|
|
12921
12920
|
|
|
12922
|
-
const __iconNode$
|
|
12921
|
+
const __iconNode$D = [
|
|
12923
12922
|
[
|
|
12924
12923
|
"path",
|
|
12925
12924
|
{
|
|
@@ -12935,9 +12934,9 @@ const __iconNode$C = [
|
|
|
12935
12934
|
}
|
|
12936
12935
|
]
|
|
12937
12936
|
];
|
|
12938
|
-
const ArrowLeft = createLucideIcon("arrow-left", __iconNode$
|
|
12937
|
+
const ArrowLeft = createLucideIcon("arrow-left", __iconNode$D);
|
|
12939
12938
|
|
|
12940
|
-
const __iconNode$
|
|
12939
|
+
const __iconNode$C = [
|
|
12941
12940
|
[
|
|
12942
12941
|
"path",
|
|
12943
12942
|
{
|
|
@@ -12953,9 +12952,9 @@ const __iconNode$B = [
|
|
|
12953
12952
|
}
|
|
12954
12953
|
]
|
|
12955
12954
|
];
|
|
12956
|
-
const ArrowRight = createLucideIcon("arrow-right", __iconNode$
|
|
12955
|
+
const ArrowRight = createLucideIcon("arrow-right", __iconNode$C);
|
|
12957
12956
|
|
|
12958
|
-
const __iconNode$
|
|
12957
|
+
const __iconNode$B = [
|
|
12959
12958
|
[
|
|
12960
12959
|
"path",
|
|
12961
12960
|
{
|
|
@@ -13003,9 +13002,9 @@ const __iconNode$A = [
|
|
|
13003
13002
|
}
|
|
13004
13003
|
]
|
|
13005
13004
|
];
|
|
13006
|
-
const Bot = createLucideIcon("bot", __iconNode$
|
|
13005
|
+
const Bot = createLucideIcon("bot", __iconNode$B);
|
|
13007
13006
|
|
|
13008
|
-
const __iconNode$
|
|
13007
|
+
const __iconNode$A = [
|
|
13009
13008
|
[
|
|
13010
13009
|
"path",
|
|
13011
13010
|
{
|
|
@@ -13039,9 +13038,9 @@ const __iconNode$z = [
|
|
|
13039
13038
|
}
|
|
13040
13039
|
]
|
|
13041
13040
|
];
|
|
13042
|
-
const Calendar = createLucideIcon("calendar", __iconNode$
|
|
13041
|
+
const Calendar = createLucideIcon("calendar", __iconNode$A);
|
|
13043
13042
|
|
|
13044
|
-
const __iconNode$
|
|
13043
|
+
const __iconNode$z = [
|
|
13045
13044
|
[
|
|
13046
13045
|
"path",
|
|
13047
13046
|
{
|
|
@@ -13098,9 +13097,9 @@ const __iconNode$y = [
|
|
|
13098
13097
|
}
|
|
13099
13098
|
]
|
|
13100
13099
|
];
|
|
13101
|
-
const ChartNetwork = createLucideIcon("chart-network", __iconNode$
|
|
13100
|
+
const ChartNetwork = createLucideIcon("chart-network", __iconNode$z);
|
|
13102
13101
|
|
|
13103
|
-
const __iconNode$
|
|
13102
|
+
const __iconNode$y = [
|
|
13104
13103
|
[
|
|
13105
13104
|
"path",
|
|
13106
13105
|
{
|
|
@@ -13109,9 +13108,9 @@ const __iconNode$x = [
|
|
|
13109
13108
|
}
|
|
13110
13109
|
]
|
|
13111
13110
|
];
|
|
13112
|
-
const ChevronDown = createLucideIcon("chevron-down", __iconNode$
|
|
13111
|
+
const ChevronDown = createLucideIcon("chevron-down", __iconNode$y);
|
|
13113
13112
|
|
|
13114
|
-
const __iconNode$
|
|
13113
|
+
const __iconNode$x = [
|
|
13115
13114
|
[
|
|
13116
13115
|
"path",
|
|
13117
13116
|
{
|
|
@@ -13120,9 +13119,9 @@ const __iconNode$w = [
|
|
|
13120
13119
|
}
|
|
13121
13120
|
]
|
|
13122
13121
|
];
|
|
13123
|
-
const ChevronRight = createLucideIcon("chevron-right", __iconNode$
|
|
13122
|
+
const ChevronRight = createLucideIcon("chevron-right", __iconNode$x);
|
|
13124
13123
|
|
|
13125
|
-
const __iconNode$
|
|
13124
|
+
const __iconNode$w = [
|
|
13126
13125
|
[
|
|
13127
13126
|
"path",
|
|
13128
13127
|
{
|
|
@@ -13138,9 +13137,9 @@ const __iconNode$v = [
|
|
|
13138
13137
|
}
|
|
13139
13138
|
]
|
|
13140
13139
|
];
|
|
13141
|
-
const ChevronsDown = createLucideIcon("chevrons-down", __iconNode$
|
|
13140
|
+
const ChevronsDown = createLucideIcon("chevrons-down", __iconNode$w);
|
|
13142
13141
|
|
|
13143
|
-
const __iconNode$
|
|
13142
|
+
const __iconNode$v = [
|
|
13144
13143
|
[
|
|
13145
13144
|
"path",
|
|
13146
13145
|
{
|
|
@@ -13156,9 +13155,9 @@ const __iconNode$u = [
|
|
|
13156
13155
|
}
|
|
13157
13156
|
]
|
|
13158
13157
|
];
|
|
13159
|
-
const ChevronsUp = createLucideIcon("chevrons-up", __iconNode$
|
|
13158
|
+
const ChevronsUp = createLucideIcon("chevrons-up", __iconNode$v);
|
|
13160
13159
|
|
|
13161
|
-
const __iconNode$
|
|
13160
|
+
const __iconNode$u = [
|
|
13162
13161
|
[
|
|
13163
13162
|
"circle",
|
|
13164
13163
|
{
|
|
@@ -13189,9 +13188,9 @@ const __iconNode$t = [
|
|
|
13189
13188
|
}
|
|
13190
13189
|
]
|
|
13191
13190
|
];
|
|
13192
|
-
const CircleAlert = createLucideIcon("circle-alert", __iconNode$
|
|
13191
|
+
const CircleAlert = createLucideIcon("circle-alert", __iconNode$u);
|
|
13193
13192
|
|
|
13194
|
-
const __iconNode$
|
|
13193
|
+
const __iconNode$t = [
|
|
13195
13194
|
[
|
|
13196
13195
|
"path",
|
|
13197
13196
|
{
|
|
@@ -13207,9 +13206,9 @@ const __iconNode$s = [
|
|
|
13207
13206
|
}
|
|
13208
13207
|
]
|
|
13209
13208
|
];
|
|
13210
|
-
const CircleCheckBig = createLucideIcon("circle-check-big", __iconNode$
|
|
13209
|
+
const CircleCheckBig = createLucideIcon("circle-check-big", __iconNode$t);
|
|
13211
13210
|
|
|
13212
|
-
const __iconNode$
|
|
13211
|
+
const __iconNode$s = [
|
|
13213
13212
|
[
|
|
13214
13213
|
"circle",
|
|
13215
13214
|
{
|
|
@@ -13234,9 +13233,9 @@ const __iconNode$r = [
|
|
|
13234
13233
|
}
|
|
13235
13234
|
]
|
|
13236
13235
|
];
|
|
13237
|
-
const CircleDollarSign = createLucideIcon("circle-dollar-sign", __iconNode$
|
|
13236
|
+
const CircleDollarSign = createLucideIcon("circle-dollar-sign", __iconNode$s);
|
|
13238
13237
|
|
|
13239
|
-
const __iconNode$
|
|
13238
|
+
const __iconNode$r = [
|
|
13240
13239
|
[
|
|
13241
13240
|
"circle",
|
|
13242
13241
|
{
|
|
@@ -13254,9 +13253,9 @@ const __iconNode$q = [
|
|
|
13254
13253
|
}
|
|
13255
13254
|
]
|
|
13256
13255
|
];
|
|
13257
|
-
const Clock = createLucideIcon("clock", __iconNode$
|
|
13256
|
+
const Clock = createLucideIcon("clock", __iconNode$r);
|
|
13258
13257
|
|
|
13259
|
-
const __iconNode$
|
|
13258
|
+
const __iconNode$q = [
|
|
13260
13259
|
[
|
|
13261
13260
|
"rect",
|
|
13262
13261
|
{
|
|
@@ -13277,9 +13276,9 @@ const __iconNode$p = [
|
|
|
13277
13276
|
}
|
|
13278
13277
|
]
|
|
13279
13278
|
];
|
|
13280
|
-
const Copy = createLucideIcon("copy", __iconNode$
|
|
13279
|
+
const Copy = createLucideIcon("copy", __iconNode$q);
|
|
13281
13280
|
|
|
13282
|
-
const __iconNode$
|
|
13281
|
+
const __iconNode$p = [
|
|
13283
13282
|
[
|
|
13284
13283
|
"path",
|
|
13285
13284
|
{
|
|
@@ -13387,9 +13386,9 @@ const __iconNode$o = [
|
|
|
13387
13386
|
}
|
|
13388
13387
|
]
|
|
13389
13388
|
];
|
|
13390
|
-
const Cpu = createLucideIcon("cpu", __iconNode$
|
|
13389
|
+
const Cpu = createLucideIcon("cpu", __iconNode$p);
|
|
13391
13390
|
|
|
13392
|
-
const __iconNode$
|
|
13391
|
+
const __iconNode$o = [
|
|
13393
13392
|
[
|
|
13394
13393
|
"line",
|
|
13395
13394
|
{
|
|
@@ -13408,9 +13407,9 @@ const __iconNode$n = [
|
|
|
13408
13407
|
}
|
|
13409
13408
|
]
|
|
13410
13409
|
];
|
|
13411
|
-
const DollarSign = createLucideIcon("dollar-sign", __iconNode$
|
|
13410
|
+
const DollarSign = createLucideIcon("dollar-sign", __iconNode$o);
|
|
13412
13411
|
|
|
13413
|
-
const __iconNode$
|
|
13412
|
+
const __iconNode$n = [
|
|
13414
13413
|
[
|
|
13415
13414
|
"path",
|
|
13416
13415
|
{
|
|
@@ -13440,9 +13439,9 @@ const __iconNode$m = [
|
|
|
13440
13439
|
}
|
|
13441
13440
|
]
|
|
13442
13441
|
];
|
|
13443
|
-
const FileInput = createLucideIcon("file-input", __iconNode$
|
|
13442
|
+
const FileInput = createLucideIcon("file-input", __iconNode$n);
|
|
13444
13443
|
|
|
13445
|
-
const __iconNode$
|
|
13444
|
+
const __iconNode$m = [
|
|
13446
13445
|
[
|
|
13447
13446
|
"path",
|
|
13448
13447
|
{
|
|
@@ -13472,9 +13471,9 @@ const __iconNode$l = [
|
|
|
13472
13471
|
}
|
|
13473
13472
|
]
|
|
13474
13473
|
];
|
|
13475
|
-
const FileOutput = createLucideIcon("file-output", __iconNode$
|
|
13474
|
+
const FileOutput = createLucideIcon("file-output", __iconNode$m);
|
|
13476
13475
|
|
|
13477
|
-
const __iconNode$
|
|
13476
|
+
const __iconNode$l = [
|
|
13478
13477
|
[
|
|
13479
13478
|
"path",
|
|
13480
13479
|
{
|
|
@@ -13532,9 +13531,9 @@ const __iconNode$k = [
|
|
|
13532
13531
|
}
|
|
13533
13532
|
]
|
|
13534
13533
|
];
|
|
13535
|
-
const FoldVertical = createLucideIcon("fold-vertical", __iconNode$
|
|
13534
|
+
const FoldVertical = createLucideIcon("fold-vertical", __iconNode$l);
|
|
13536
13535
|
|
|
13537
|
-
const __iconNode$
|
|
13536
|
+
const __iconNode$k = [
|
|
13538
13537
|
[
|
|
13539
13538
|
"path",
|
|
13540
13539
|
{
|
|
@@ -13550,9 +13549,9 @@ const __iconNode$j = [
|
|
|
13550
13549
|
}
|
|
13551
13550
|
]
|
|
13552
13551
|
];
|
|
13553
|
-
const Gauge = createLucideIcon("gauge", __iconNode$
|
|
13552
|
+
const Gauge = createLucideIcon("gauge", __iconNode$k);
|
|
13554
13553
|
|
|
13555
|
-
const __iconNode$
|
|
13554
|
+
const __iconNode$j = [
|
|
13556
13555
|
[
|
|
13557
13556
|
"line",
|
|
13558
13557
|
{
|
|
@@ -13594,9 +13593,9 @@ const __iconNode$i = [
|
|
|
13594
13593
|
}
|
|
13595
13594
|
]
|
|
13596
13595
|
];
|
|
13597
|
-
const Hash = createLucideIcon("hash", __iconNode$
|
|
13596
|
+
const Hash = createLucideIcon("hash", __iconNode$j);
|
|
13598
13597
|
|
|
13599
|
-
const __iconNode$
|
|
13598
|
+
const __iconNode$i = [
|
|
13600
13599
|
[
|
|
13601
13600
|
"circle",
|
|
13602
13601
|
{
|
|
@@ -13621,9 +13620,9 @@ const __iconNode$h = [
|
|
|
13621
13620
|
}
|
|
13622
13621
|
]
|
|
13623
13622
|
];
|
|
13624
|
-
const Info = createLucideIcon("info", __iconNode$
|
|
13623
|
+
const Info = createLucideIcon("info", __iconNode$i);
|
|
13625
13624
|
|
|
13626
|
-
const __iconNode$
|
|
13625
|
+
const __iconNode$h = [
|
|
13627
13626
|
[
|
|
13628
13627
|
"path",
|
|
13629
13628
|
{
|
|
@@ -13660,9 +13659,9 @@ const __iconNode$g = [
|
|
|
13660
13659
|
}
|
|
13661
13660
|
]
|
|
13662
13661
|
];
|
|
13663
|
-
const ListChecks = createLucideIcon("list-checks", __iconNode$
|
|
13662
|
+
const ListChecks = createLucideIcon("list-checks", __iconNode$h);
|
|
13664
13663
|
|
|
13665
|
-
const __iconNode$
|
|
13664
|
+
const __iconNode$g = [
|
|
13666
13665
|
[
|
|
13667
13666
|
"path",
|
|
13668
13667
|
{
|
|
@@ -13692,9 +13691,9 @@ const __iconNode$f = [
|
|
|
13692
13691
|
}
|
|
13693
13692
|
]
|
|
13694
13693
|
];
|
|
13695
|
-
const MessageSquareText = createLucideIcon("message-square-text", __iconNode$
|
|
13694
|
+
const MessageSquareText = createLucideIcon("message-square-text", __iconNode$g);
|
|
13696
13695
|
|
|
13697
|
-
const __iconNode$
|
|
13696
|
+
const __iconNode$f = [
|
|
13698
13697
|
[
|
|
13699
13698
|
"path",
|
|
13700
13699
|
{
|
|
@@ -13710,9 +13709,9 @@ const __iconNode$e = [
|
|
|
13710
13709
|
}
|
|
13711
13710
|
]
|
|
13712
13711
|
];
|
|
13713
|
-
const MessagesSquare = createLucideIcon("messages-square", __iconNode$
|
|
13712
|
+
const MessagesSquare = createLucideIcon("messages-square", __iconNode$f);
|
|
13714
13713
|
|
|
13715
|
-
const __iconNode$
|
|
13714
|
+
const __iconNode$e = [
|
|
13716
13715
|
[
|
|
13717
13716
|
"rect",
|
|
13718
13717
|
{
|
|
@@ -13732,9 +13731,9 @@ const __iconNode$d = [
|
|
|
13732
13731
|
}
|
|
13733
13732
|
]
|
|
13734
13733
|
];
|
|
13735
|
-
const PanelLeft = createLucideIcon("panel-left", __iconNode$
|
|
13734
|
+
const PanelLeft = createLucideIcon("panel-left", __iconNode$e);
|
|
13736
13735
|
|
|
13737
|
-
const __iconNode$
|
|
13736
|
+
const __iconNode$d = [
|
|
13738
13737
|
[
|
|
13739
13738
|
"rect",
|
|
13740
13739
|
{
|
|
@@ -13761,9 +13760,9 @@ const __iconNode$c = [
|
|
|
13761
13760
|
}
|
|
13762
13761
|
]
|
|
13763
13762
|
];
|
|
13764
|
-
const PanelRightOpen = createLucideIcon("panel-right-open", __iconNode$
|
|
13763
|
+
const PanelRightOpen = createLucideIcon("panel-right-open", __iconNode$d);
|
|
13765
13764
|
|
|
13766
|
-
const __iconNode$
|
|
13765
|
+
const __iconNode$c = [
|
|
13767
13766
|
[
|
|
13768
13767
|
"path",
|
|
13769
13768
|
{
|
|
@@ -13793,9 +13792,9 @@ const __iconNode$b = [
|
|
|
13793
13792
|
}
|
|
13794
13793
|
]
|
|
13795
13794
|
];
|
|
13796
|
-
const RefreshCw = createLucideIcon("refresh-cw", __iconNode$
|
|
13795
|
+
const RefreshCw = createLucideIcon("refresh-cw", __iconNode$c);
|
|
13797
13796
|
|
|
13798
|
-
const __iconNode$
|
|
13797
|
+
const __iconNode$b = [
|
|
13799
13798
|
[
|
|
13800
13799
|
"path",
|
|
13801
13800
|
{
|
|
@@ -13832,9 +13831,9 @@ const __iconNode$a = [
|
|
|
13832
13831
|
}
|
|
13833
13832
|
]
|
|
13834
13833
|
];
|
|
13835
|
-
const Scale = createLucideIcon("scale", __iconNode$
|
|
13834
|
+
const Scale = createLucideIcon("scale", __iconNode$b);
|
|
13836
13835
|
|
|
13837
|
-
const __iconNode$
|
|
13836
|
+
const __iconNode$a = [
|
|
13838
13837
|
[
|
|
13839
13838
|
"path",
|
|
13840
13839
|
{
|
|
@@ -13868,9 +13867,9 @@ const __iconNode$9 = [
|
|
|
13868
13867
|
}
|
|
13869
13868
|
]
|
|
13870
13869
|
];
|
|
13871
|
-
const Settings2 = createLucideIcon("settings-2", __iconNode$
|
|
13870
|
+
const Settings2 = createLucideIcon("settings-2", __iconNode$a);
|
|
13872
13871
|
|
|
13873
|
-
const __iconNode$
|
|
13872
|
+
const __iconNode$9 = [
|
|
13874
13873
|
[
|
|
13875
13874
|
"path",
|
|
13876
13875
|
{
|
|
@@ -13893,9 +13892,9 @@ const __iconNode$8 = [
|
|
|
13893
13892
|
}
|
|
13894
13893
|
]
|
|
13895
13894
|
];
|
|
13896
|
-
const Share = createLucideIcon("share", __iconNode$
|
|
13895
|
+
const Share = createLucideIcon("share", __iconNode$9);
|
|
13897
13896
|
|
|
13898
|
-
const __iconNode$
|
|
13897
|
+
const __iconNode$8 = [
|
|
13899
13898
|
[
|
|
13900
13899
|
"path",
|
|
13901
13900
|
{
|
|
@@ -13904,9 +13903,9 @@ const __iconNode$7 = [
|
|
|
13904
13903
|
}
|
|
13905
13904
|
]
|
|
13906
13905
|
];
|
|
13907
|
-
const Shield = createLucideIcon("shield", __iconNode$
|
|
13906
|
+
const Shield = createLucideIcon("shield", __iconNode$8);
|
|
13908
13907
|
|
|
13909
|
-
const __iconNode$
|
|
13908
|
+
const __iconNode$7 = [
|
|
13910
13909
|
[
|
|
13911
13910
|
"path",
|
|
13912
13911
|
{
|
|
@@ -13932,9 +13931,9 @@ const __iconNode$6 = [
|
|
|
13932
13931
|
}
|
|
13933
13932
|
]
|
|
13934
13933
|
];
|
|
13935
|
-
const Tags = createLucideIcon("tags", __iconNode$
|
|
13934
|
+
const Tags = createLucideIcon("tags", __iconNode$7);
|
|
13936
13935
|
|
|
13937
|
-
const __iconNode$
|
|
13936
|
+
const __iconNode$6 = [
|
|
13938
13937
|
[
|
|
13939
13938
|
"circle",
|
|
13940
13939
|
{
|
|
@@ -13963,9 +13962,9 @@ const __iconNode$5 = [
|
|
|
13963
13962
|
}
|
|
13964
13963
|
]
|
|
13965
13964
|
];
|
|
13966
|
-
const Target = createLucideIcon("target", __iconNode$
|
|
13965
|
+
const Target = createLucideIcon("target", __iconNode$6);
|
|
13967
13966
|
|
|
13968
|
-
const __iconNode$
|
|
13967
|
+
const __iconNode$5 = [
|
|
13969
13968
|
[
|
|
13970
13969
|
"line",
|
|
13971
13970
|
{
|
|
@@ -13996,7 +13995,32 @@ const __iconNode$4 = [
|
|
|
13996
13995
|
}
|
|
13997
13996
|
]
|
|
13998
13997
|
];
|
|
13999
|
-
const Timer = createLucideIcon("timer", __iconNode$
|
|
13998
|
+
const Timer = createLucideIcon("timer", __iconNode$5);
|
|
13999
|
+
|
|
14000
|
+
const __iconNode$4 = [
|
|
14001
|
+
[
|
|
14002
|
+
"path",
|
|
14003
|
+
{
|
|
14004
|
+
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",
|
|
14005
|
+
key: "wmoenq"
|
|
14006
|
+
}
|
|
14007
|
+
],
|
|
14008
|
+
[
|
|
14009
|
+
"path",
|
|
14010
|
+
{
|
|
14011
|
+
d: "M12 9v4",
|
|
14012
|
+
key: "juzpu7"
|
|
14013
|
+
}
|
|
14014
|
+
],
|
|
14015
|
+
[
|
|
14016
|
+
"path",
|
|
14017
|
+
{
|
|
14018
|
+
d: "M12 17h.01",
|
|
14019
|
+
key: "p32p05"
|
|
14020
|
+
}
|
|
14021
|
+
]
|
|
14022
|
+
];
|
|
14023
|
+
const TriangleAlert = createLucideIcon("triangle-alert", __iconNode$4);
|
|
14000
14024
|
|
|
14001
14025
|
const __iconNode$3 = [
|
|
14002
14026
|
[
|
|
@@ -15136,14 +15160,14 @@ var createCache = function createCache(options) {
|
|
|
15136
15160
|
return cache;
|
|
15137
15161
|
};
|
|
15138
15162
|
|
|
15139
|
-
function _extends$
|
|
15140
|
-
return _extends$
|
|
15163
|
+
function _extends$v() {
|
|
15164
|
+
return _extends$v = Object.assign ? Object.assign.bind() : function(n) {
|
|
15141
15165
|
for(var e = 1; e < arguments.length; e++){
|
|
15142
15166
|
var t = arguments[e];
|
|
15143
15167
|
for(var r in t)({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
15144
15168
|
}
|
|
15145
15169
|
return n;
|
|
15146
|
-
}, _extends$
|
|
15170
|
+
}, _extends$v.apply(null, arguments);
|
|
15147
15171
|
}
|
|
15148
15172
|
|
|
15149
15173
|
var reactIs = {exports: {}};
|
|
@@ -15838,7 +15862,7 @@ var getTheme = function getTheme(outerTheme, theme) {
|
|
|
15838
15862
|
var mergedTheme = theme(outerTheme);
|
|
15839
15863
|
return mergedTheme;
|
|
15840
15864
|
}
|
|
15841
|
-
return _extends$
|
|
15865
|
+
return _extends$v({}, outerTheme, theme);
|
|
15842
15866
|
};
|
|
15843
15867
|
var createCacheWithTheme = /* #__PURE__ */ weakMemoize(function(outerTheme) {
|
|
15844
15868
|
return weakMemoize(function(theme) {
|
|
@@ -16614,7 +16638,7 @@ var createStyled = function createStyled(tag, options) {
|
|
|
16614
16638
|
}
|
|
16615
16639
|
});
|
|
16616
16640
|
Styled.withComponent = function(nextTag, nextOptions) {
|
|
16617
|
-
var newStyled = createStyled(nextTag, _extends$
|
|
16641
|
+
var newStyled = createStyled(nextTag, _extends$v({}, options, nextOptions, {
|
|
16618
16642
|
shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
|
|
16619
16643
|
}));
|
|
16620
16644
|
return newStyled.apply(void 0, styles);
|
|
@@ -21665,7 +21689,7 @@ const AppleIcon = ({ width = "1.5rem", height = "1.5rem" })=>/*#__PURE__*/ React
|
|
|
21665
21689
|
})));
|
|
21666
21690
|
|
|
21667
21691
|
function noop$1() {}
|
|
21668
|
-
const { resetWarned: rcResetWarned } = warning$
|
|
21692
|
+
const { resetWarned: rcResetWarned } = warning$3;
|
|
21669
21693
|
let deprecatedWarnList = null;
|
|
21670
21694
|
function resetWarned() {
|
|
21671
21695
|
deprecatedWarnList = null;
|
|
@@ -21674,14 +21698,14 @@ function resetWarned() {
|
|
|
21674
21698
|
let _warning = noop$1;
|
|
21675
21699
|
if (process.env.NODE_ENV !== 'production') {
|
|
21676
21700
|
_warning = (valid, component, message)=>{
|
|
21677
|
-
warning$
|
|
21701
|
+
warning$3(valid, `[antd: ${component}] ${message}`);
|
|
21678
21702
|
// StrictMode will inject console which will not throw warning in React 17.
|
|
21679
21703
|
if (process.env.NODE_ENV === 'test') {
|
|
21680
21704
|
resetWarned();
|
|
21681
21705
|
}
|
|
21682
21706
|
};
|
|
21683
21707
|
}
|
|
21684
|
-
const warning$
|
|
21708
|
+
const warning$2 = _warning;
|
|
21685
21709
|
const WarningContext = /*#__PURE__*/ React.createContext({});
|
|
21686
21710
|
/**
|
|
21687
21711
|
* This is a hook but we not named as `useWarning`
|
|
@@ -21705,7 +21729,7 @@ const WarningContext = /*#__PURE__*/ React.createContext({});
|
|
|
21705
21729
|
console.warn('[antd] There exists deprecated usage in your code:', deprecatedWarnList);
|
|
21706
21730
|
}
|
|
21707
21731
|
} else {
|
|
21708
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
21732
|
+
process.env.NODE_ENV !== "production" ? warning$2(valid, component, message) : void 0;
|
|
21709
21733
|
}
|
|
21710
21734
|
}
|
|
21711
21735
|
};
|
|
@@ -22118,7 +22142,7 @@ const getSolidColor = (baseColor, brightness)=>{
|
|
|
22118
22142
|
};
|
|
22119
22143
|
|
|
22120
22144
|
const generateColorPalettes = (baseColor)=>{
|
|
22121
|
-
const colors = generate(baseColor);
|
|
22145
|
+
const colors = generate$1(baseColor);
|
|
22122
22146
|
return {
|
|
22123
22147
|
1: colors[0],
|
|
22124
22148
|
2: colors[1],
|
|
@@ -22167,7 +22191,7 @@ function derivative(token) {
|
|
|
22167
22191
|
presetPrimaryColors.pink = presetPrimaryColors.magenta;
|
|
22168
22192
|
presetPalettes.pink = presetPalettes.magenta;
|
|
22169
22193
|
const colorPalettes = Object.keys(defaultPresetColors).map((colorKey)=>{
|
|
22170
|
-
const colors = token[colorKey] === presetPrimaryColors[colorKey] ? presetPalettes[colorKey] : generate(token[colorKey]);
|
|
22194
|
+
const colors = token[colorKey] === presetPrimaryColors[colorKey] ? presetPalettes[colorKey] : generate$1(token[colorKey]);
|
|
22171
22195
|
return Array.from({
|
|
22172
22196
|
length: 10
|
|
22173
22197
|
}, ()=>1).reduce((prev, _, i)=>{
|
|
@@ -22765,6 +22789,377 @@ const useResetIconStyle = (iconPrefixCls, csp)=>{
|
|
|
22765
22789
|
}, ()=>genIconStyle(iconPrefixCls));
|
|
22766
22790
|
};
|
|
22767
22791
|
|
|
22792
|
+
const IconContext = /*#__PURE__*/ createContext({});
|
|
22793
|
+
|
|
22794
|
+
function camelCase(input) {
|
|
22795
|
+
return input.replace(/-(.)/g, (match, g)=>g.toUpperCase());
|
|
22796
|
+
}
|
|
22797
|
+
function warning$1(valid, message) {
|
|
22798
|
+
warning$3(valid, `[@ant-design/icons] ${message}`);
|
|
22799
|
+
}
|
|
22800
|
+
function isIconDefinition(target) {
|
|
22801
|
+
return typeof target === 'object' && typeof target.name === 'string' && typeof target.theme === 'string' && (typeof target.icon === 'object' || typeof target.icon === 'function');
|
|
22802
|
+
}
|
|
22803
|
+
function normalizeAttrs(attrs = {}) {
|
|
22804
|
+
return Object.keys(attrs).reduce((acc, key)=>{
|
|
22805
|
+
const val = attrs[key];
|
|
22806
|
+
switch(key){
|
|
22807
|
+
case 'class':
|
|
22808
|
+
acc.className = val;
|
|
22809
|
+
delete acc.class;
|
|
22810
|
+
break;
|
|
22811
|
+
default:
|
|
22812
|
+
delete acc[key];
|
|
22813
|
+
acc[camelCase(key)] = val;
|
|
22814
|
+
}
|
|
22815
|
+
return acc;
|
|
22816
|
+
}, {});
|
|
22817
|
+
}
|
|
22818
|
+
function generate(node, key, rootProps) {
|
|
22819
|
+
if (!rootProps) {
|
|
22820
|
+
return /*#__PURE__*/ React__default.createElement(node.tag, {
|
|
22821
|
+
key,
|
|
22822
|
+
...normalizeAttrs(node.attrs)
|
|
22823
|
+
}, (node.children || []).map((child, index)=>generate(child, `${key}-${node.tag}-${index}`)));
|
|
22824
|
+
}
|
|
22825
|
+
return /*#__PURE__*/ React__default.createElement(node.tag, {
|
|
22826
|
+
key,
|
|
22827
|
+
...normalizeAttrs(node.attrs),
|
|
22828
|
+
...rootProps
|
|
22829
|
+
}, (node.children || []).map((child, index)=>generate(child, `${key}-${node.tag}-${index}`)));
|
|
22830
|
+
}
|
|
22831
|
+
function getSecondaryColor(primaryColor) {
|
|
22832
|
+
// choose the second color
|
|
22833
|
+
return generate$1(primaryColor)[0];
|
|
22834
|
+
}
|
|
22835
|
+
function normalizeTwoToneColors(twoToneColor) {
|
|
22836
|
+
if (!twoToneColor) {
|
|
22837
|
+
return [];
|
|
22838
|
+
}
|
|
22839
|
+
return Array.isArray(twoToneColor) ? twoToneColor : [
|
|
22840
|
+
twoToneColor
|
|
22841
|
+
];
|
|
22842
|
+
}
|
|
22843
|
+
const iconStyles = `
|
|
22844
|
+
.anticon {
|
|
22845
|
+
display: inline-flex;
|
|
22846
|
+
align-items: center;
|
|
22847
|
+
color: inherit;
|
|
22848
|
+
font-style: normal;
|
|
22849
|
+
line-height: 0;
|
|
22850
|
+
text-align: center;
|
|
22851
|
+
text-transform: none;
|
|
22852
|
+
vertical-align: -0.125em;
|
|
22853
|
+
text-rendering: optimizeLegibility;
|
|
22854
|
+
-webkit-font-smoothing: antialiased;
|
|
22855
|
+
-moz-osx-font-smoothing: grayscale;
|
|
22856
|
+
}
|
|
22857
|
+
|
|
22858
|
+
.anticon > * {
|
|
22859
|
+
line-height: 1;
|
|
22860
|
+
}
|
|
22861
|
+
|
|
22862
|
+
.anticon svg {
|
|
22863
|
+
display: inline-block;
|
|
22864
|
+
vertical-align: inherit;
|
|
22865
|
+
}
|
|
22866
|
+
|
|
22867
|
+
.anticon::before {
|
|
22868
|
+
display: none;
|
|
22869
|
+
}
|
|
22870
|
+
|
|
22871
|
+
.anticon .anticon-icon {
|
|
22872
|
+
display: block;
|
|
22873
|
+
}
|
|
22874
|
+
|
|
22875
|
+
.anticon[tabindex] {
|
|
22876
|
+
cursor: pointer;
|
|
22877
|
+
}
|
|
22878
|
+
|
|
22879
|
+
.anticon-spin {
|
|
22880
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
22881
|
+
animation: loadingCircle 1s infinite linear;
|
|
22882
|
+
}
|
|
22883
|
+
|
|
22884
|
+
@-webkit-keyframes loadingCircle {
|
|
22885
|
+
100% {
|
|
22886
|
+
-webkit-transform: rotate(360deg);
|
|
22887
|
+
transform: rotate(360deg);
|
|
22888
|
+
}
|
|
22889
|
+
}
|
|
22890
|
+
|
|
22891
|
+
@keyframes loadingCircle {
|
|
22892
|
+
100% {
|
|
22893
|
+
-webkit-transform: rotate(360deg);
|
|
22894
|
+
transform: rotate(360deg);
|
|
22895
|
+
}
|
|
22896
|
+
}
|
|
22897
|
+
`;
|
|
22898
|
+
const useInsertStyles = (eleRef)=>{
|
|
22899
|
+
const { csp, prefixCls, layer } = useContext(IconContext);
|
|
22900
|
+
let mergedStyleStr = iconStyles;
|
|
22901
|
+
if (prefixCls) {
|
|
22902
|
+
mergedStyleStr = mergedStyleStr.replace(/anticon/g, prefixCls);
|
|
22903
|
+
}
|
|
22904
|
+
if (layer) {
|
|
22905
|
+
mergedStyleStr = `@layer ${layer} {\n${mergedStyleStr}\n}`;
|
|
22906
|
+
}
|
|
22907
|
+
useEffect(()=>{
|
|
22908
|
+
const ele = eleRef.current;
|
|
22909
|
+
const shadowRoot = getShadowRoot(ele);
|
|
22910
|
+
updateCSS(mergedStyleStr, '@ant-design-icons', {
|
|
22911
|
+
prepend: !layer,
|
|
22912
|
+
csp,
|
|
22913
|
+
attachTo: shadowRoot
|
|
22914
|
+
});
|
|
22915
|
+
}, []);
|
|
22916
|
+
};
|
|
22917
|
+
|
|
22918
|
+
const twoToneColorPalette = {
|
|
22919
|
+
primaryColor: '#333',
|
|
22920
|
+
secondaryColor: '#E6E6E6',
|
|
22921
|
+
calculated: false
|
|
22922
|
+
};
|
|
22923
|
+
function setTwoToneColors({ primaryColor, secondaryColor }) {
|
|
22924
|
+
twoToneColorPalette.primaryColor = primaryColor;
|
|
22925
|
+
twoToneColorPalette.secondaryColor = secondaryColor || getSecondaryColor(primaryColor);
|
|
22926
|
+
twoToneColorPalette.calculated = !!secondaryColor;
|
|
22927
|
+
}
|
|
22928
|
+
function getTwoToneColors() {
|
|
22929
|
+
return {
|
|
22930
|
+
...twoToneColorPalette
|
|
22931
|
+
};
|
|
22932
|
+
}
|
|
22933
|
+
const IconBase = (props)=>{
|
|
22934
|
+
const { icon, className, onClick, style, primaryColor, secondaryColor, ...restProps } = props;
|
|
22935
|
+
const svgRef = React.useRef(null);
|
|
22936
|
+
let colors = twoToneColorPalette;
|
|
22937
|
+
if (primaryColor) {
|
|
22938
|
+
colors = {
|
|
22939
|
+
primaryColor,
|
|
22940
|
+
secondaryColor: secondaryColor || getSecondaryColor(primaryColor)
|
|
22941
|
+
};
|
|
22942
|
+
}
|
|
22943
|
+
useInsertStyles(svgRef);
|
|
22944
|
+
warning$1(isIconDefinition(icon), `icon should be icon definiton, but got ${icon}`);
|
|
22945
|
+
if (!isIconDefinition(icon)) {
|
|
22946
|
+
return null;
|
|
22947
|
+
}
|
|
22948
|
+
let target = icon;
|
|
22949
|
+
if (target && typeof target.icon === 'function') {
|
|
22950
|
+
target = {
|
|
22951
|
+
...target,
|
|
22952
|
+
icon: target.icon(colors.primaryColor, colors.secondaryColor)
|
|
22953
|
+
};
|
|
22954
|
+
}
|
|
22955
|
+
return generate(target.icon, `svg-${target.name}`, {
|
|
22956
|
+
className,
|
|
22957
|
+
onClick,
|
|
22958
|
+
style,
|
|
22959
|
+
'data-icon': target.name,
|
|
22960
|
+
width: '1em',
|
|
22961
|
+
height: '1em',
|
|
22962
|
+
fill: 'currentColor',
|
|
22963
|
+
'aria-hidden': 'true',
|
|
22964
|
+
...restProps,
|
|
22965
|
+
ref: svgRef
|
|
22966
|
+
});
|
|
22967
|
+
};
|
|
22968
|
+
IconBase.displayName = 'IconReact';
|
|
22969
|
+
IconBase.getTwoToneColors = getTwoToneColors;
|
|
22970
|
+
IconBase.setTwoToneColors = setTwoToneColors;
|
|
22971
|
+
|
|
22972
|
+
function setTwoToneColor(twoToneColor) {
|
|
22973
|
+
const [primaryColor, secondaryColor] = normalizeTwoToneColors(twoToneColor);
|
|
22974
|
+
return IconBase.setTwoToneColors({
|
|
22975
|
+
primaryColor,
|
|
22976
|
+
secondaryColor
|
|
22977
|
+
});
|
|
22978
|
+
}
|
|
22979
|
+
function getTwoToneColor() {
|
|
22980
|
+
const colors = IconBase.getTwoToneColors();
|
|
22981
|
+
if (!colors.calculated) {
|
|
22982
|
+
return colors.primaryColor;
|
|
22983
|
+
}
|
|
22984
|
+
return [
|
|
22985
|
+
colors.primaryColor,
|
|
22986
|
+
colors.secondaryColor
|
|
22987
|
+
];
|
|
22988
|
+
}
|
|
22989
|
+
|
|
22990
|
+
function _extends$u() {
|
|
22991
|
+
_extends$u = Object.assign ? Object.assign.bind() : function(target) {
|
|
22992
|
+
for(var i = 1; i < arguments.length; i++){
|
|
22993
|
+
var source = arguments[i];
|
|
22994
|
+
for(var key in source){
|
|
22995
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
22996
|
+
target[key] = source[key];
|
|
22997
|
+
}
|
|
22998
|
+
}
|
|
22999
|
+
}
|
|
23000
|
+
return target;
|
|
23001
|
+
};
|
|
23002
|
+
return _extends$u.apply(this, arguments);
|
|
23003
|
+
}
|
|
23004
|
+
// Initial setting
|
|
23005
|
+
// should move it to antd main repo?
|
|
23006
|
+
setTwoToneColor(blue.primary);
|
|
23007
|
+
// https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34757#issuecomment-488848720
|
|
23008
|
+
const Icon = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
23009
|
+
const { // affect outter <i>...</i>
|
|
23010
|
+
className, // affect inner <svg>...</svg>
|
|
23011
|
+
icon, spin, rotate, tabIndex, onClick, // other
|
|
23012
|
+
twoToneColor, ...restProps } = props;
|
|
23013
|
+
const { prefixCls = 'anticon', rootClassName } = React.useContext(IconContext);
|
|
23014
|
+
const classString = clsx(rootClassName, prefixCls, {
|
|
23015
|
+
[`${prefixCls}-${icon.name}`]: !!icon.name,
|
|
23016
|
+
[`${prefixCls}-spin`]: !!spin || icon.name === 'loading'
|
|
23017
|
+
}, className);
|
|
23018
|
+
let iconTabIndex = tabIndex;
|
|
23019
|
+
if (iconTabIndex === undefined && onClick) {
|
|
23020
|
+
iconTabIndex = -1;
|
|
23021
|
+
}
|
|
23022
|
+
const svgStyle = rotate ? {
|
|
23023
|
+
msTransform: `rotate(${rotate}deg)`,
|
|
23024
|
+
transform: `rotate(${rotate}deg)`
|
|
23025
|
+
} : undefined;
|
|
23026
|
+
const [primaryColor, secondaryColor] = normalizeTwoToneColors(twoToneColor);
|
|
23027
|
+
return /*#__PURE__*/ React.createElement("span", _extends$u({
|
|
23028
|
+
role: "img",
|
|
23029
|
+
"aria-label": icon.name
|
|
23030
|
+
}, restProps, {
|
|
23031
|
+
ref: ref,
|
|
23032
|
+
tabIndex: iconTabIndex,
|
|
23033
|
+
onClick: onClick,
|
|
23034
|
+
className: classString
|
|
23035
|
+
}), /*#__PURE__*/ React.createElement(IconBase, {
|
|
23036
|
+
icon: icon,
|
|
23037
|
+
primaryColor: primaryColor,
|
|
23038
|
+
secondaryColor: secondaryColor,
|
|
23039
|
+
style: svgStyle
|
|
23040
|
+
}));
|
|
23041
|
+
});
|
|
23042
|
+
Icon.getTwoToneColor = getTwoToneColor;
|
|
23043
|
+
Icon.setTwoToneColor = setTwoToneColor;
|
|
23044
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
23045
|
+
Icon.displayName = 'AntdIcon';
|
|
23046
|
+
}
|
|
23047
|
+
|
|
23048
|
+
function _extends$t() {
|
|
23049
|
+
_extends$t = Object.assign ? Object.assign.bind() : function(target) {
|
|
23050
|
+
for(var i = 1; i < arguments.length; i++){
|
|
23051
|
+
var source = arguments[i];
|
|
23052
|
+
for(var key in source){
|
|
23053
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
23054
|
+
target[key] = source[key];
|
|
23055
|
+
}
|
|
23056
|
+
}
|
|
23057
|
+
}
|
|
23058
|
+
return target;
|
|
23059
|
+
};
|
|
23060
|
+
return _extends$t.apply(this, arguments);
|
|
23061
|
+
}
|
|
23062
|
+
const CheckCircleFilled = (props, ref)=>/*#__PURE__*/ React.createElement(Icon, _extends$t({}, props, {
|
|
23063
|
+
ref: ref,
|
|
23064
|
+
icon: CheckCircleFilledSvg
|
|
23065
|
+
}));
|
|
23066
|
+
/** */ const RefIcon$s = /*#__PURE__*/ React.forwardRef(CheckCircleFilled);
|
|
23067
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
23068
|
+
RefIcon$s.displayName = 'CheckCircleFilled';
|
|
23069
|
+
}
|
|
23070
|
+
|
|
23071
|
+
function _extends$s() {
|
|
23072
|
+
_extends$s = Object.assign ? Object.assign.bind() : function(target) {
|
|
23073
|
+
for(var i = 1; i < arguments.length; i++){
|
|
23074
|
+
var source = arguments[i];
|
|
23075
|
+
for(var key in source){
|
|
23076
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
23077
|
+
target[key] = source[key];
|
|
23078
|
+
}
|
|
23079
|
+
}
|
|
23080
|
+
}
|
|
23081
|
+
return target;
|
|
23082
|
+
};
|
|
23083
|
+
return _extends$s.apply(this, arguments);
|
|
23084
|
+
}
|
|
23085
|
+
const CloseCircleFilled = (props, ref)=>/*#__PURE__*/ React.createElement(Icon, _extends$s({}, props, {
|
|
23086
|
+
ref: ref,
|
|
23087
|
+
icon: CloseCircleFilledSvg
|
|
23088
|
+
}));
|
|
23089
|
+
/** */ const RefIcon$r = /*#__PURE__*/ React.forwardRef(CloseCircleFilled);
|
|
23090
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
23091
|
+
RefIcon$r.displayName = 'CloseCircleFilled';
|
|
23092
|
+
}
|
|
23093
|
+
|
|
23094
|
+
function _extends$r() {
|
|
23095
|
+
_extends$r = Object.assign ? Object.assign.bind() : function(target) {
|
|
23096
|
+
for(var i = 1; i < arguments.length; i++){
|
|
23097
|
+
var source = arguments[i];
|
|
23098
|
+
for(var key in source){
|
|
23099
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
23100
|
+
target[key] = source[key];
|
|
23101
|
+
}
|
|
23102
|
+
}
|
|
23103
|
+
}
|
|
23104
|
+
return target;
|
|
23105
|
+
};
|
|
23106
|
+
return _extends$r.apply(this, arguments);
|
|
23107
|
+
}
|
|
23108
|
+
const CloseOutlined = (props, ref)=>/*#__PURE__*/ React.createElement(Icon, _extends$r({}, props, {
|
|
23109
|
+
ref: ref,
|
|
23110
|
+
icon: CloseOutlinedSvg
|
|
23111
|
+
}));
|
|
23112
|
+
/** */ const RefIcon$q = /*#__PURE__*/ React.forwardRef(CloseOutlined);
|
|
23113
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
23114
|
+
RefIcon$q.displayName = 'CloseOutlined';
|
|
23115
|
+
}
|
|
23116
|
+
|
|
23117
|
+
function _extends$q() {
|
|
23118
|
+
_extends$q = Object.assign ? Object.assign.bind() : function(target) {
|
|
23119
|
+
for(var i = 1; i < arguments.length; i++){
|
|
23120
|
+
var source = arguments[i];
|
|
23121
|
+
for(var key in source){
|
|
23122
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
23123
|
+
target[key] = source[key];
|
|
23124
|
+
}
|
|
23125
|
+
}
|
|
23126
|
+
}
|
|
23127
|
+
return target;
|
|
23128
|
+
};
|
|
23129
|
+
return _extends$q.apply(this, arguments);
|
|
23130
|
+
}
|
|
23131
|
+
const ExclamationCircleFilled = (props, ref)=>/*#__PURE__*/ React.createElement(Icon, _extends$q({}, props, {
|
|
23132
|
+
ref: ref,
|
|
23133
|
+
icon: ExclamationCircleFilledSvg
|
|
23134
|
+
}));
|
|
23135
|
+
/** */ const RefIcon$p = /*#__PURE__*/ React.forwardRef(ExclamationCircleFilled);
|
|
23136
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
23137
|
+
RefIcon$p.displayName = 'ExclamationCircleFilled';
|
|
23138
|
+
}
|
|
23139
|
+
|
|
23140
|
+
function _extends$p() {
|
|
23141
|
+
_extends$p = Object.assign ? Object.assign.bind() : function(target) {
|
|
23142
|
+
for(var i = 1; i < arguments.length; i++){
|
|
23143
|
+
var source = arguments[i];
|
|
23144
|
+
for(var key in source){
|
|
23145
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
23146
|
+
target[key] = source[key];
|
|
23147
|
+
}
|
|
23148
|
+
}
|
|
23149
|
+
}
|
|
23150
|
+
return target;
|
|
23151
|
+
};
|
|
23152
|
+
return _extends$p.apply(this, arguments);
|
|
23153
|
+
}
|
|
23154
|
+
const InfoCircleFilled = (props, ref)=>/*#__PURE__*/ React.createElement(Icon, _extends$p({}, props, {
|
|
23155
|
+
ref: ref,
|
|
23156
|
+
icon: InfoCircleFilledSvg
|
|
23157
|
+
}));
|
|
23158
|
+
/** */ const RefIcon$o = /*#__PURE__*/ React.forwardRef(InfoCircleFilled);
|
|
23159
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
23160
|
+
RefIcon$o.displayName = 'InfoCircleFilled';
|
|
23161
|
+
}
|
|
23162
|
+
|
|
22768
23163
|
var commonLocale = {
|
|
22769
23164
|
yearFormat: 'YYYY',
|
|
22770
23165
|
dayFormat: 'D',
|
|
@@ -23223,7 +23618,7 @@ const computeClosable = (propCloseCollection, contextCloseCollection, fallbackCl
|
|
|
23223
23618
|
const propConfig = computeClosableConfig(propCloseCollection?.closable, propCloseCollection?.closeIcon);
|
|
23224
23619
|
const contextConfig = computeClosableConfig(contextCloseCollection?.closable, contextCloseCollection?.closeIcon);
|
|
23225
23620
|
const mergedFallback = {
|
|
23226
|
-
closeIcon: /*#__PURE__*/ React__default.createElement(
|
|
23621
|
+
closeIcon: /*#__PURE__*/ React__default.createElement(RefIcon$q, null),
|
|
23227
23622
|
...fallbackCloseCollection
|
|
23228
23623
|
};
|
|
23229
23624
|
const mergedConfig = mergeClosableConfigs(propConfig, contextConfig, mergedFallback);
|
|
@@ -23248,7 +23643,7 @@ const useClosable = (propCloseCollection, contextCloseCollection, fallbackCloseC
|
|
|
23248
23643
|
const [contextLocale] = useLocale('global', localeValues.global);
|
|
23249
23644
|
return React__default.useMemo(()=>{
|
|
23250
23645
|
return computeClosable(propCloseCollection, contextCloseCollection, {
|
|
23251
|
-
closeIcon: /*#__PURE__*/ React__default.createElement(
|
|
23646
|
+
closeIcon: /*#__PURE__*/ React__default.createElement(RefIcon$q, null),
|
|
23252
23647
|
...fallbackCloseCollection
|
|
23253
23648
|
}, contextLocale.close);
|
|
23254
23649
|
}, [
|
|
@@ -23724,10 +24119,10 @@ var useStyle$u = genStyleHooks('Alert', (token)=>[
|
|
|
23724
24119
|
const IconNode = (props)=>{
|
|
23725
24120
|
const { icon, type, className, style, successIcon, infoIcon, warningIcon, errorIcon } = props;
|
|
23726
24121
|
const iconMapFilled = {
|
|
23727
|
-
success: successIcon ?? /*#__PURE__*/ React.createElement(
|
|
23728
|
-
info: infoIcon ?? /*#__PURE__*/ React.createElement(
|
|
23729
|
-
error: errorIcon ?? /*#__PURE__*/ React.createElement(
|
|
23730
|
-
warning: warningIcon ?? /*#__PURE__*/ React.createElement(
|
|
24122
|
+
success: successIcon ?? /*#__PURE__*/ React.createElement(RefIcon$s, null),
|
|
24123
|
+
info: infoIcon ?? /*#__PURE__*/ React.createElement(RefIcon$o, null),
|
|
24124
|
+
error: errorIcon ?? /*#__PURE__*/ React.createElement(RefIcon$r, null),
|
|
24125
|
+
warning: warningIcon ?? /*#__PURE__*/ React.createElement(RefIcon$p, null)
|
|
23731
24126
|
};
|
|
23732
24127
|
return /*#__PURE__*/ React.createElement("span", {
|
|
23733
24128
|
className: className,
|
|
@@ -23736,7 +24131,7 @@ const IconNode = (props)=>{
|
|
|
23736
24131
|
};
|
|
23737
24132
|
const CloseIconNode = (props)=>{
|
|
23738
24133
|
const { isClosable, prefixCls, closeIcon, handleClose, ariaProps, className, style } = props;
|
|
23739
|
-
const mergedCloseIcon = closeIcon === true || closeIcon === undefined ? /*#__PURE__*/ React.createElement(
|
|
24134
|
+
const mergedCloseIcon = closeIcon === true || closeIcon === undefined ? /*#__PURE__*/ React.createElement(RefIcon$q, null) : closeIcon;
|
|
23740
24135
|
return isClosable ? /*#__PURE__*/ React.createElement("button", {
|
|
23741
24136
|
type: "button",
|
|
23742
24137
|
onClick: handleClose,
|
|
@@ -24360,7 +24755,7 @@ var PropWarning$1 = process.env.NODE_ENV !== 'production' ? PropWarning : ()=>nu
|
|
|
24360
24755
|
* theme register info here to help developer get warning info.
|
|
24361
24756
|
*/ let existThemeConfig = false;
|
|
24362
24757
|
const warnContext = process.env.NODE_ENV !== 'production' ? (componentName)=>{
|
|
24363
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
24758
|
+
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;
|
|
24364
24759
|
} : /* istanbul ignore next */ null;
|
|
24365
24760
|
// These props is used by `useContext` directly in sub component
|
|
24366
24761
|
const PASSED_PROPS = [
|
|
@@ -24676,7 +25071,7 @@ ConfigProvider.config = setGlobalConfig;
|
|
|
24676
25071
|
ConfigProvider.useConfig = useConfig;
|
|
24677
25072
|
Object.defineProperty(ConfigProvider, 'SizeContext', {
|
|
24678
25073
|
get: ()=>{
|
|
24679
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
25074
|
+
process.env.NODE_ENV !== "production" ? warning$2(false, 'ConfigProvider', 'ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead.') : void 0;
|
|
24680
25075
|
return SizeContext;
|
|
24681
25076
|
}
|
|
24682
25077
|
});
|
|
@@ -24684,6 +25079,29 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
24684
25079
|
ConfigProvider.displayName = 'ConfigProvider';
|
|
24685
25080
|
}
|
|
24686
25081
|
|
|
25082
|
+
function _extends$o() {
|
|
25083
|
+
_extends$o = Object.assign ? Object.assign.bind() : function(target) {
|
|
25084
|
+
for(var i = 1; i < arguments.length; i++){
|
|
25085
|
+
var source = arguments[i];
|
|
25086
|
+
for(var key in source){
|
|
25087
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
25088
|
+
target[key] = source[key];
|
|
25089
|
+
}
|
|
25090
|
+
}
|
|
25091
|
+
}
|
|
25092
|
+
return target;
|
|
25093
|
+
};
|
|
25094
|
+
return _extends$o.apply(this, arguments);
|
|
25095
|
+
}
|
|
25096
|
+
const LoadingOutlined = (props, ref)=>/*#__PURE__*/ React.createElement(Icon, _extends$o({}, props, {
|
|
25097
|
+
ref: ref,
|
|
25098
|
+
icon: LoadingOutlinedSvg
|
|
25099
|
+
}));
|
|
25100
|
+
/** */ const RefIcon$n = /*#__PURE__*/ React.forwardRef(LoadingOutlined);
|
|
25101
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
25102
|
+
RefIcon$n.displayName = 'LoadingOutlined';
|
|
25103
|
+
}
|
|
25104
|
+
|
|
24687
25105
|
const genMessageStyle = (token)=>{
|
|
24688
25106
|
const { componentCls, iconCls, boxShadow, colorText, colorSuccess, colorError, colorWarning, colorInfo, fontSizeLG, motionEaseInOutCirc, motionDurationSlow, marginXS, paddingXS, borderRadiusLG, zIndexPopup, // Custom token
|
|
24689
25107
|
contentPadding, contentBg } = token;
|
|
@@ -24825,11 +25243,11 @@ var useStyle$t = genStyleHooks('Message', (token)=>{
|
|
|
24825
25243
|
}, prepareComponentToken$m);
|
|
24826
25244
|
|
|
24827
25245
|
const TypeIcon = {
|
|
24828
|
-
info: /*#__PURE__*/ React.createElement(
|
|
24829
|
-
success: /*#__PURE__*/ React.createElement(
|
|
24830
|
-
error: /*#__PURE__*/ React.createElement(
|
|
24831
|
-
warning: /*#__PURE__*/ React.createElement(
|
|
24832
|
-
loading: /*#__PURE__*/ React.createElement(
|
|
25246
|
+
info: /*#__PURE__*/ React.createElement(RefIcon$o, null),
|
|
25247
|
+
success: /*#__PURE__*/ React.createElement(RefIcon$s, null),
|
|
25248
|
+
error: /*#__PURE__*/ React.createElement(RefIcon$r, null),
|
|
25249
|
+
warning: /*#__PURE__*/ React.createElement(RefIcon$p, null),
|
|
25250
|
+
loading: /*#__PURE__*/ React.createElement(RefIcon$n, null)
|
|
24833
25251
|
};
|
|
24834
25252
|
const PureContent = (props)=>{
|
|
24835
25253
|
const { prefixCls, type, icon, children, classNames: pureContentClassNames, styles } = props;
|
|
@@ -25660,7 +26078,7 @@ const InnerLoadingIcon = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
25660
26078
|
className: mergedIconCls,
|
|
25661
26079
|
style: style,
|
|
25662
26080
|
ref: ref
|
|
25663
|
-
}, /*#__PURE__*/ React__default.createElement(
|
|
26081
|
+
}, /*#__PURE__*/ React__default.createElement(RefIcon$n, {
|
|
25664
26082
|
className: iconClassName
|
|
25665
26083
|
}));
|
|
25666
26084
|
});
|
|
@@ -26474,6 +26892,29 @@ let AggregationColor = /*#__PURE__*/ function() {
|
|
|
26474
26892
|
]);
|
|
26475
26893
|
}();
|
|
26476
26894
|
|
|
26895
|
+
function _extends$n() {
|
|
26896
|
+
_extends$n = Object.assign ? Object.assign.bind() : function(target) {
|
|
26897
|
+
for(var i = 1; i < arguments.length; i++){
|
|
26898
|
+
var source = arguments[i];
|
|
26899
|
+
for(var key in source){
|
|
26900
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
26901
|
+
target[key] = source[key];
|
|
26902
|
+
}
|
|
26903
|
+
}
|
|
26904
|
+
}
|
|
26905
|
+
return target;
|
|
26906
|
+
};
|
|
26907
|
+
return _extends$n.apply(this, arguments);
|
|
26908
|
+
}
|
|
26909
|
+
const RightOutlined = (props, ref)=>/*#__PURE__*/ React.createElement(Icon, _extends$n({}, props, {
|
|
26910
|
+
ref: ref,
|
|
26911
|
+
icon: RightOutlinedSvg
|
|
26912
|
+
}));
|
|
26913
|
+
/** */ const RefIcon$m = /*#__PURE__*/ React.forwardRef(RightOutlined);
|
|
26914
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
26915
|
+
RefIcon$m.displayName = 'RightOutlined';
|
|
26916
|
+
}
|
|
26917
|
+
|
|
26477
26918
|
const CollapsePanel = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
26478
26919
|
if (process.env.NODE_ENV !== 'production') {
|
|
26479
26920
|
const warning = devUseWarning('Collapse.Panel');
|
|
@@ -26769,7 +27210,7 @@ const Collapse = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
|
26769
27210
|
});
|
|
26770
27211
|
}
|
|
26771
27212
|
const renderExpandIcon = React.useCallback((panelProps = {})=>{
|
|
26772
|
-
const icon = typeof mergedExpandIcon === 'function' ? mergedExpandIcon(panelProps) : /*#__PURE__*/ React.createElement(
|
|
27213
|
+
const icon = typeof mergedExpandIcon === 'function' ? mergedExpandIcon(panelProps) : /*#__PURE__*/ React.createElement(RefIcon$m, {
|
|
26773
27214
|
rotate: panelProps.isActive ? direction === 'rtl' ? -90 : 90 : undefined,
|
|
26774
27215
|
"aria-label": panelProps.isActive ? 'expanded' : 'collapsed'
|
|
26775
27216
|
});
|
|
@@ -29999,13 +30440,82 @@ var useSelectStyle = genStyleHooks('Select', (token, { rootPrefixCls })=>{
|
|
|
29999
30440
|
}
|
|
30000
30441
|
});
|
|
30001
30442
|
|
|
30443
|
+
function _extends$m() {
|
|
30444
|
+
_extends$m = Object.assign ? Object.assign.bind() : function(target) {
|
|
30445
|
+
for(var i = 1; i < arguments.length; i++){
|
|
30446
|
+
var source = arguments[i];
|
|
30447
|
+
for(var key in source){
|
|
30448
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
30449
|
+
target[key] = source[key];
|
|
30450
|
+
}
|
|
30451
|
+
}
|
|
30452
|
+
}
|
|
30453
|
+
return target;
|
|
30454
|
+
};
|
|
30455
|
+
return _extends$m.apply(this, arguments);
|
|
30456
|
+
}
|
|
30457
|
+
const CheckOutlined = (props, ref)=>/*#__PURE__*/ React.createElement(Icon, _extends$m({}, props, {
|
|
30458
|
+
ref: ref,
|
|
30459
|
+
icon: CheckOutlinedSvg
|
|
30460
|
+
}));
|
|
30461
|
+
/** */ const RefIcon$l = /*#__PURE__*/ React.forwardRef(CheckOutlined);
|
|
30462
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
30463
|
+
RefIcon$l.displayName = 'CheckOutlined';
|
|
30464
|
+
}
|
|
30465
|
+
|
|
30466
|
+
function _extends$l() {
|
|
30467
|
+
_extends$l = Object.assign ? Object.assign.bind() : function(target) {
|
|
30468
|
+
for(var i = 1; i < arguments.length; i++){
|
|
30469
|
+
var source = arguments[i];
|
|
30470
|
+
for(var key in source){
|
|
30471
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
30472
|
+
target[key] = source[key];
|
|
30473
|
+
}
|
|
30474
|
+
}
|
|
30475
|
+
}
|
|
30476
|
+
return target;
|
|
30477
|
+
};
|
|
30478
|
+
return _extends$l.apply(this, arguments);
|
|
30479
|
+
}
|
|
30480
|
+
const DownOutlined = (props, ref)=>/*#__PURE__*/ React.createElement(Icon, _extends$l({}, props, {
|
|
30481
|
+
ref: ref,
|
|
30482
|
+
icon: DownOutlinedSvg
|
|
30483
|
+
}));
|
|
30484
|
+
/** */ const RefIcon$k = /*#__PURE__*/ React.forwardRef(DownOutlined);
|
|
30485
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
30486
|
+
RefIcon$k.displayName = 'DownOutlined';
|
|
30487
|
+
}
|
|
30488
|
+
|
|
30489
|
+
function _extends$k() {
|
|
30490
|
+
_extends$k = Object.assign ? Object.assign.bind() : function(target) {
|
|
30491
|
+
for(var i = 1; i < arguments.length; i++){
|
|
30492
|
+
var source = arguments[i];
|
|
30493
|
+
for(var key in source){
|
|
30494
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
30495
|
+
target[key] = source[key];
|
|
30496
|
+
}
|
|
30497
|
+
}
|
|
30498
|
+
}
|
|
30499
|
+
return target;
|
|
30500
|
+
};
|
|
30501
|
+
return _extends$k.apply(this, arguments);
|
|
30502
|
+
}
|
|
30503
|
+
const SearchOutlined = (props, ref)=>/*#__PURE__*/ React.createElement(Icon, _extends$k({}, props, {
|
|
30504
|
+
ref: ref,
|
|
30505
|
+
icon: SearchOutlinedSvg
|
|
30506
|
+
}));
|
|
30507
|
+
/** */ const RefIcon$j = /*#__PURE__*/ React.forwardRef(SearchOutlined);
|
|
30508
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
30509
|
+
RefIcon$j.displayName = 'SearchOutlined';
|
|
30510
|
+
}
|
|
30511
|
+
|
|
30002
30512
|
function useIcons({ suffixIcon, clearIcon, menuItemSelectedIcon, removeIcon, loading, loadingIcon, multiple, hasFeedback, showSuffixIcon, feedbackIcon, showArrow, componentName }) {
|
|
30003
30513
|
if (process.env.NODE_ENV !== 'production') {
|
|
30004
30514
|
const warning = devUseWarning(componentName);
|
|
30005
30515
|
warning.deprecated(!clearIcon, 'clearIcon', 'allowClear={{ clearIcon: React.ReactNode }}');
|
|
30006
30516
|
}
|
|
30007
30517
|
// Clear Icon
|
|
30008
|
-
const mergedClearIcon = clearIcon ?? /*#__PURE__*/ React.createElement(
|
|
30518
|
+
const mergedClearIcon = clearIcon ?? /*#__PURE__*/ React.createElement(RefIcon$r, null);
|
|
30009
30519
|
// Validation Feedback Icon
|
|
30010
30520
|
const getSuffixIconNode = (arrowIcon)=>{
|
|
30011
30521
|
if (suffixIcon === null && !hasFeedback && !showArrow) {
|
|
@@ -30018,15 +30528,15 @@ function useIcons({ suffixIcon, clearIcon, menuItemSelectedIcon, removeIcon, loa
|
|
|
30018
30528
|
if (suffixIcon !== undefined) {
|
|
30019
30529
|
mergedSuffixIcon = getSuffixIconNode(suffixIcon);
|
|
30020
30530
|
} else if (loading) {
|
|
30021
|
-
mergedSuffixIcon = getSuffixIconNode(loadingIcon ?? /*#__PURE__*/ React.createElement(
|
|
30531
|
+
mergedSuffixIcon = getSuffixIconNode(loadingIcon ?? /*#__PURE__*/ React.createElement(RefIcon$n, {
|
|
30022
30532
|
spin: true
|
|
30023
30533
|
}));
|
|
30024
30534
|
} else {
|
|
30025
30535
|
mergedSuffixIcon = ({ open, showSearch })=>{
|
|
30026
30536
|
if (open && showSearch) {
|
|
30027
|
-
return getSuffixIconNode(/*#__PURE__*/ React.createElement(
|
|
30537
|
+
return getSuffixIconNode(/*#__PURE__*/ React.createElement(RefIcon$j, null));
|
|
30028
30538
|
}
|
|
30029
|
-
return getSuffixIconNode(/*#__PURE__*/ React.createElement(
|
|
30539
|
+
return getSuffixIconNode(/*#__PURE__*/ React.createElement(RefIcon$k, null));
|
|
30030
30540
|
};
|
|
30031
30541
|
}
|
|
30032
30542
|
// Checked item icon
|
|
@@ -30034,7 +30544,7 @@ function useIcons({ suffixIcon, clearIcon, menuItemSelectedIcon, removeIcon, loa
|
|
|
30034
30544
|
if (menuItemSelectedIcon !== undefined) {
|
|
30035
30545
|
mergedItemIcon = menuItemSelectedIcon;
|
|
30036
30546
|
} else if (multiple) {
|
|
30037
|
-
mergedItemIcon = /*#__PURE__*/ React.createElement(
|
|
30547
|
+
mergedItemIcon = /*#__PURE__*/ React.createElement(RefIcon$l, null);
|
|
30038
30548
|
} else {
|
|
30039
30549
|
mergedItemIcon = null;
|
|
30040
30550
|
}
|
|
@@ -30042,7 +30552,7 @@ function useIcons({ suffixIcon, clearIcon, menuItemSelectedIcon, removeIcon, loa
|
|
|
30042
30552
|
if (removeIcon !== undefined) {
|
|
30043
30553
|
mergedRemoveIcon = removeIcon;
|
|
30044
30554
|
} else {
|
|
30045
|
-
mergedRemoveIcon = /*#__PURE__*/ React.createElement(
|
|
30555
|
+
mergedRemoveIcon = /*#__PURE__*/ React.createElement(RefIcon$q, null);
|
|
30046
30556
|
}
|
|
30047
30557
|
return {
|
|
30048
30558
|
// TODO: remove as when all the deps bumped
|
|
@@ -31634,6 +32144,52 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
31634
32144
|
Popover.displayName = 'Popover';
|
|
31635
32145
|
}
|
|
31636
32146
|
|
|
32147
|
+
function _extends$j() {
|
|
32148
|
+
_extends$j = Object.assign ? Object.assign.bind() : function(target) {
|
|
32149
|
+
for(var i = 1; i < arguments.length; i++){
|
|
32150
|
+
var source = arguments[i];
|
|
32151
|
+
for(var key in source){
|
|
32152
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
32153
|
+
target[key] = source[key];
|
|
32154
|
+
}
|
|
32155
|
+
}
|
|
32156
|
+
}
|
|
32157
|
+
return target;
|
|
32158
|
+
};
|
|
32159
|
+
return _extends$j.apply(this, arguments);
|
|
32160
|
+
}
|
|
32161
|
+
const LeftOutlined = (props, ref)=>/*#__PURE__*/ React.createElement(Icon, _extends$j({}, props, {
|
|
32162
|
+
ref: ref,
|
|
32163
|
+
icon: LeftOutlinedSvg
|
|
32164
|
+
}));
|
|
32165
|
+
/** */ const RefIcon$i = /*#__PURE__*/ React.forwardRef(LeftOutlined);
|
|
32166
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
32167
|
+
RefIcon$i.displayName = 'LeftOutlined';
|
|
32168
|
+
}
|
|
32169
|
+
|
|
32170
|
+
function _extends$i() {
|
|
32171
|
+
_extends$i = Object.assign ? Object.assign.bind() : function(target) {
|
|
32172
|
+
for(var i = 1; i < arguments.length; i++){
|
|
32173
|
+
var source = arguments[i];
|
|
32174
|
+
for(var key in source){
|
|
32175
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
32176
|
+
target[key] = source[key];
|
|
32177
|
+
}
|
|
32178
|
+
}
|
|
32179
|
+
}
|
|
32180
|
+
return target;
|
|
32181
|
+
};
|
|
32182
|
+
return _extends$i.apply(this, arguments);
|
|
32183
|
+
}
|
|
32184
|
+
const BarsOutlined = (props, ref)=>/*#__PURE__*/ React.createElement(Icon, _extends$i({}, props, {
|
|
32185
|
+
ref: ref,
|
|
32186
|
+
icon: BarsOutlinedSvg
|
|
32187
|
+
}));
|
|
32188
|
+
/** */ const RefIcon$h = /*#__PURE__*/ React.forwardRef(BarsOutlined);
|
|
32189
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
32190
|
+
RefIcon$h.displayName = 'BarsOutlined';
|
|
32191
|
+
}
|
|
32192
|
+
|
|
31637
32193
|
const LayoutContext = /*#__PURE__*/ React.createContext({
|
|
31638
32194
|
siderHook: {
|
|
31639
32195
|
addSider: ()=>null,
|
|
@@ -31929,11 +32485,11 @@ const Sider = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
|
31929
32485
|
onClick: toggle,
|
|
31930
32486
|
className: clsx(`${prefixCls}-zero-width-trigger`, `${prefixCls}-zero-width-trigger-${reverseArrow ? 'right' : 'left'}`),
|
|
31931
32487
|
style: zeroWidthTriggerStyle
|
|
31932
|
-
}, trigger || /*#__PURE__*/ React.createElement(
|
|
32488
|
+
}, trigger || /*#__PURE__*/ React.createElement(RefIcon$h, null)) : null;
|
|
31933
32489
|
const reverseIcon = direction === 'rtl' === !reverseArrow;
|
|
31934
32490
|
const iconObj = {
|
|
31935
|
-
expanded: reverseIcon ? /*#__PURE__*/ React.createElement(
|
|
31936
|
-
collapsed: reverseIcon ? /*#__PURE__*/ React.createElement(
|
|
32491
|
+
expanded: reverseIcon ? /*#__PURE__*/ React.createElement(RefIcon$m, null) : /*#__PURE__*/ React.createElement(RefIcon$i, null),
|
|
32492
|
+
collapsed: reverseIcon ? /*#__PURE__*/ React.createElement(RefIcon$i, null) : /*#__PURE__*/ React.createElement(RefIcon$m, null)
|
|
31937
32493
|
};
|
|
31938
32494
|
const status = collapsed ? 'collapsed' : 'expanded';
|
|
31939
32495
|
const defaultTrigger = iconObj[status];
|
|
@@ -31979,6 +32535,29 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
31979
32535
|
Sider.displayName = 'Sider';
|
|
31980
32536
|
}
|
|
31981
32537
|
|
|
32538
|
+
function _extends$h() {
|
|
32539
|
+
_extends$h = Object.assign ? Object.assign.bind() : function(target) {
|
|
32540
|
+
for(var i = 1; i < arguments.length; i++){
|
|
32541
|
+
var source = arguments[i];
|
|
32542
|
+
for(var key in source){
|
|
32543
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
32544
|
+
target[key] = source[key];
|
|
32545
|
+
}
|
|
32546
|
+
}
|
|
32547
|
+
}
|
|
32548
|
+
return target;
|
|
32549
|
+
};
|
|
32550
|
+
return _extends$h.apply(this, arguments);
|
|
32551
|
+
}
|
|
32552
|
+
const EllipsisOutlined = (props, ref)=>/*#__PURE__*/ React.createElement(Icon, _extends$h({}, props, {
|
|
32553
|
+
ref: ref,
|
|
32554
|
+
icon: EllipsisOutlinedSvg
|
|
32555
|
+
}));
|
|
32556
|
+
/** */ const RefIcon$g = /*#__PURE__*/ React.forwardRef(EllipsisOutlined);
|
|
32557
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
32558
|
+
RefIcon$g.displayName = 'EllipsisOutlined';
|
|
32559
|
+
}
|
|
32560
|
+
|
|
31982
32561
|
const MenuContext = /*#__PURE__*/ createContext({
|
|
31983
32562
|
prefixCls: '',
|
|
31984
32563
|
firstLevel: true,
|
|
@@ -33310,7 +33889,7 @@ const InternalMenu = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
33310
33889
|
value: contextValue
|
|
33311
33890
|
}, /*#__PURE__*/ React.createElement(RcMenu, {
|
|
33312
33891
|
getPopupContainer: getPopupContainer,
|
|
33313
|
-
overflowedIndicator: /*#__PURE__*/ React.createElement(
|
|
33892
|
+
overflowedIndicator: /*#__PURE__*/ React.createElement(RefIcon$g, null),
|
|
33314
33893
|
overflowedIndicatorPopupClassName: clsx(prefixCls, `${prefixCls}-${theme}`, overflowedIndicatorPopupClassName),
|
|
33315
33894
|
classNames: {
|
|
33316
33895
|
list: mergedClassNames.list,
|
|
@@ -33807,9 +34386,9 @@ const Dropdown$1 = (props)=>{
|
|
|
33807
34386
|
rootClassName: clsx(cssVarCls, rootCls),
|
|
33808
34387
|
expandIcon: /*#__PURE__*/ React.createElement("span", {
|
|
33809
34388
|
className: `${prefixCls}-menu-submenu-arrow`
|
|
33810
|
-
}, direction === 'rtl' ? /*#__PURE__*/ React.createElement(
|
|
34389
|
+
}, direction === 'rtl' ? /*#__PURE__*/ React.createElement(RefIcon$i, {
|
|
33811
34390
|
className: `${prefixCls}-menu-submenu-arrow-icon`
|
|
33812
|
-
}) : /*#__PURE__*/ React.createElement(
|
|
34391
|
+
}) : /*#__PURE__*/ React.createElement(RefIcon$m, {
|
|
33813
34392
|
className: `${prefixCls}-menu-submenu-arrow-icon`
|
|
33814
34393
|
})),
|
|
33815
34394
|
mode: "vertical",
|
|
@@ -33887,8 +34466,8 @@ const RadioGroupContextProvider = RadioGroupContext.Provider;
|
|
|
33887
34466
|
const RadioOptionTypeContext = /*#__PURE__*/ React.createContext(undefined);
|
|
33888
34467
|
const RadioOptionTypeContextProvider = RadioOptionTypeContext.Provider;
|
|
33889
34468
|
|
|
33890
|
-
function _extends() {
|
|
33891
|
-
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
34469
|
+
function _extends$g() {
|
|
34470
|
+
_extends$g = Object.assign ? Object.assign.bind() : function(target) {
|
|
33892
34471
|
for(var i = 1; i < arguments.length; i++){
|
|
33893
34472
|
var source = arguments[i];
|
|
33894
34473
|
for(var key in source){
|
|
@@ -33899,7 +34478,7 @@ function _extends() {
|
|
|
33899
34478
|
}
|
|
33900
34479
|
return target;
|
|
33901
34480
|
};
|
|
33902
|
-
return _extends.apply(this, arguments);
|
|
34481
|
+
return _extends$g.apply(this, arguments);
|
|
33903
34482
|
}
|
|
33904
34483
|
const Checkbox$2 = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
33905
34484
|
const { prefixCls = 'rc-checkbox', className, style, checked, disabled, defaultChecked = false, type = 'checkbox', title, onChange, ...inputProps } = props;
|
|
@@ -33947,7 +34526,7 @@ const Checkbox$2 = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
33947
34526
|
title: title,
|
|
33948
34527
|
style: style,
|
|
33949
34528
|
ref: holderRef
|
|
33950
|
-
}, /*#__PURE__*/ React.createElement("input", _extends({}, inputProps, {
|
|
34529
|
+
}, /*#__PURE__*/ React.createElement("input", _extends$g({}, inputProps, {
|
|
33951
34530
|
className: `${prefixCls}-input`,
|
|
33952
34531
|
ref: inputRef,
|
|
33953
34532
|
onChange: handleChange,
|
|
@@ -35448,6 +36027,29 @@ var useStyle$g = genStyleHooks([
|
|
|
35448
36027
|
resetFont: false
|
|
35449
36028
|
});
|
|
35450
36029
|
|
|
36030
|
+
function _extends$f() {
|
|
36031
|
+
_extends$f = Object.assign ? Object.assign.bind() : function(target) {
|
|
36032
|
+
for(var i = 1; i < arguments.length; i++){
|
|
36033
|
+
var source = arguments[i];
|
|
36034
|
+
for(var key in source){
|
|
36035
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
36036
|
+
target[key] = source[key];
|
|
36037
|
+
}
|
|
36038
|
+
}
|
|
36039
|
+
}
|
|
36040
|
+
return target;
|
|
36041
|
+
};
|
|
36042
|
+
return _extends$f.apply(this, arguments);
|
|
36043
|
+
}
|
|
36044
|
+
const PlusOutlined = (props, ref)=>/*#__PURE__*/ React.createElement(Icon, _extends$f({}, props, {
|
|
36045
|
+
ref: ref,
|
|
36046
|
+
icon: PlusOutlinedSvg
|
|
36047
|
+
}));
|
|
36048
|
+
/** */ const RefIcon$f = /*#__PURE__*/ React.forwardRef(PlusOutlined);
|
|
36049
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
36050
|
+
RefIcon$f.displayName = 'PlusOutlined';
|
|
36051
|
+
}
|
|
36052
|
+
|
|
35451
36053
|
const motion = {
|
|
35452
36054
|
motionAppear: false,
|
|
35453
36055
|
motionEnter: true,
|
|
@@ -36399,8 +37001,8 @@ const InternalTabs = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
|
36399
37001
|
onEdit: (editType, { key, event })=>{
|
|
36400
37002
|
onEdit?.(editType === 'add' ? event : key, editType);
|
|
36401
37003
|
},
|
|
36402
|
-
removeIcon: removeIcon ?? tabs?.removeIcon ?? /*#__PURE__*/ React.createElement(
|
|
36403
|
-
addIcon: (addIcon ?? tabs?.addIcon) || /*#__PURE__*/ React.createElement(
|
|
37004
|
+
removeIcon: removeIcon ?? tabs?.removeIcon ?? /*#__PURE__*/ React.createElement(RefIcon$q, null),
|
|
37005
|
+
addIcon: (addIcon ?? tabs?.addIcon) || /*#__PURE__*/ React.createElement(RefIcon$f, null),
|
|
36404
37006
|
showAdd: hideAdd !== true
|
|
36405
37007
|
};
|
|
36406
37008
|
}
|
|
@@ -36495,7 +37097,7 @@ const InternalTabs = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
|
36495
37097
|
},
|
|
36496
37098
|
editable: editable,
|
|
36497
37099
|
more: {
|
|
36498
|
-
icon: tabs?.more?.icon ?? tabs?.moreIcon ?? moreIcon ?? /*#__PURE__*/ React.createElement(
|
|
37100
|
+
icon: tabs?.more?.icon ?? tabs?.moreIcon ?? moreIcon ?? /*#__PURE__*/ React.createElement(RefIcon$g, null),
|
|
36499
37101
|
transitionName: `${rootPrefixCls}-slide-up`,
|
|
36500
37102
|
...more
|
|
36501
37103
|
},
|
|
@@ -38168,7 +38770,7 @@ const getAllowClear = (allowClear)=>{
|
|
|
38168
38770
|
mergedAllowClear = allowClear;
|
|
38169
38771
|
} else if (allowClear) {
|
|
38170
38772
|
mergedAllowClear = {
|
|
38171
|
-
clearIcon: /*#__PURE__*/ React__default.createElement(
|
|
38773
|
+
clearIcon: /*#__PURE__*/ React__default.createElement(RefIcon$r, null)
|
|
38172
38774
|
};
|
|
38173
38775
|
}
|
|
38174
38776
|
return mergedAllowClear;
|
|
@@ -39220,7 +39822,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
39220
39822
|
|
|
39221
39823
|
/** @deprecated Please use Space.Compact + Dropdown + Button instead */ const DropdownButton = (props)=>{
|
|
39222
39824
|
const { getPopupContainer: getContextPopupContainer, getPrefixCls, direction } = React.useContext(ConfigContext);
|
|
39223
|
-
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.createElement(
|
|
39825
|
+
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.createElement(RefIcon$g, null), title, buttonsRender = (buttons)=>buttons, mouseEnterDelay, mouseLeaveDelay, overlayClassName, overlayStyle, destroyOnHidden, destroyPopupOnHide, dropdownRender, popupRender, ...restProps } = props;
|
|
39224
39826
|
const prefixCls = getPrefixCls('dropdown', customizePrefixCls);
|
|
39225
39827
|
const buttonPrefixCls = `${prefixCls}-button`;
|
|
39226
39828
|
const mergedPopupRender = popupRender || dropdownRender;
|
|
@@ -39511,6 +40113,52 @@ const TextArea = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
39511
40113
|
});
|
|
39512
40114
|
});
|
|
39513
40115
|
|
|
40116
|
+
function _extends$e() {
|
|
40117
|
+
_extends$e = Object.assign ? Object.assign.bind() : function(target) {
|
|
40118
|
+
for(var i = 1; i < arguments.length; i++){
|
|
40119
|
+
var source = arguments[i];
|
|
40120
|
+
for(var key in source){
|
|
40121
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
40122
|
+
target[key] = source[key];
|
|
40123
|
+
}
|
|
40124
|
+
}
|
|
40125
|
+
}
|
|
40126
|
+
return target;
|
|
40127
|
+
};
|
|
40128
|
+
return _extends$e.apply(this, arguments);
|
|
40129
|
+
}
|
|
40130
|
+
const DoubleLeftOutlined = (props, ref)=>/*#__PURE__*/ React.createElement(Icon, _extends$e({}, props, {
|
|
40131
|
+
ref: ref,
|
|
40132
|
+
icon: DoubleLeftOutlinedSvg
|
|
40133
|
+
}));
|
|
40134
|
+
/** */ const RefIcon$e = /*#__PURE__*/ React.forwardRef(DoubleLeftOutlined);
|
|
40135
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
40136
|
+
RefIcon$e.displayName = 'DoubleLeftOutlined';
|
|
40137
|
+
}
|
|
40138
|
+
|
|
40139
|
+
function _extends$d() {
|
|
40140
|
+
_extends$d = Object.assign ? Object.assign.bind() : function(target) {
|
|
40141
|
+
for(var i = 1; i < arguments.length; i++){
|
|
40142
|
+
var source = arguments[i];
|
|
40143
|
+
for(var key in source){
|
|
40144
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
40145
|
+
target[key] = source[key];
|
|
40146
|
+
}
|
|
40147
|
+
}
|
|
40148
|
+
}
|
|
40149
|
+
return target;
|
|
40150
|
+
};
|
|
40151
|
+
return _extends$d.apply(this, arguments);
|
|
40152
|
+
}
|
|
40153
|
+
const DoubleRightOutlined = (props, ref)=>/*#__PURE__*/ React.createElement(Icon, _extends$d({}, props, {
|
|
40154
|
+
ref: ref,
|
|
40155
|
+
icon: DoubleRightOutlinedSvg
|
|
40156
|
+
}));
|
|
40157
|
+
/** */ const RefIcon$d = /*#__PURE__*/ React.forwardRef(DoubleRightOutlined);
|
|
40158
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
40159
|
+
RefIcon$d.displayName = 'DoubleRightOutlined';
|
|
40160
|
+
}
|
|
40161
|
+
|
|
39514
40162
|
const genPaginationDisabledStyle = (token)=>{
|
|
39515
40163
|
const { componentCls } = token;
|
|
39516
40164
|
return {
|
|
@@ -40211,28 +40859,28 @@ const Pagination = (props)=>{
|
|
|
40211
40859
|
className: `${prefixCls}-item-link`,
|
|
40212
40860
|
type: "button",
|
|
40213
40861
|
tabIndex: -1
|
|
40214
|
-
}, direction === 'rtl' ? /*#__PURE__*/ React.createElement(
|
|
40862
|
+
}, direction === 'rtl' ? /*#__PURE__*/ React.createElement(RefIcon$m, null) : /*#__PURE__*/ React.createElement(RefIcon$i, null));
|
|
40215
40863
|
const nextIcon = /*#__PURE__*/ React.createElement("button", {
|
|
40216
40864
|
className: `${prefixCls}-item-link`,
|
|
40217
40865
|
type: "button",
|
|
40218
40866
|
tabIndex: -1
|
|
40219
|
-
}, direction === 'rtl' ? /*#__PURE__*/ React.createElement(
|
|
40867
|
+
}, direction === 'rtl' ? /*#__PURE__*/ React.createElement(RefIcon$i, null) : /*#__PURE__*/ React.createElement(RefIcon$m, null));
|
|
40220
40868
|
const jumpPrevIcon = /*#__PURE__*/ React.createElement("a", {
|
|
40221
40869
|
className: `${prefixCls}-item-link`
|
|
40222
40870
|
}, /*#__PURE__*/ React.createElement("div", {
|
|
40223
40871
|
className: `${prefixCls}-item-container`
|
|
40224
|
-
}, direction === 'rtl' ? /*#__PURE__*/ React.createElement(
|
|
40872
|
+
}, direction === 'rtl' ? /*#__PURE__*/ React.createElement(RefIcon$d, {
|
|
40225
40873
|
className: `${prefixCls}-item-link-icon`
|
|
40226
|
-
}) : /*#__PURE__*/ React.createElement(
|
|
40874
|
+
}) : /*#__PURE__*/ React.createElement(RefIcon$e, {
|
|
40227
40875
|
className: `${prefixCls}-item-link-icon`
|
|
40228
40876
|
}), ellipsis));
|
|
40229
40877
|
const jumpNextIcon = /*#__PURE__*/ React.createElement("a", {
|
|
40230
40878
|
className: `${prefixCls}-item-link`
|
|
40231
40879
|
}, /*#__PURE__*/ React.createElement("div", {
|
|
40232
40880
|
className: `${prefixCls}-item-container`
|
|
40233
|
-
}, direction === 'rtl' ? /*#__PURE__*/ React.createElement(
|
|
40881
|
+
}, direction === 'rtl' ? /*#__PURE__*/ React.createElement(RefIcon$e, {
|
|
40234
40882
|
className: `${prefixCls}-item-link-icon`
|
|
40235
|
-
}) : /*#__PURE__*/ React.createElement(
|
|
40883
|
+
}) : /*#__PURE__*/ React.createElement(RefIcon$d, {
|
|
40236
40884
|
className: `${prefixCls}-item-link-icon`
|
|
40237
40885
|
}), ellipsis));
|
|
40238
40886
|
return {
|
|
@@ -41818,7 +42466,7 @@ const InternalSwitch = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
|
41818
42466
|
const loadingIcon = /*#__PURE__*/ React.createElement("div", {
|
|
41819
42467
|
className: clsx(`${prefixCls}-handle`, mergedClassNames.indicator),
|
|
41820
42468
|
style: mergedStyles.indicator
|
|
41821
|
-
}, loading && /*#__PURE__*/ React.createElement(
|
|
42469
|
+
}, loading && /*#__PURE__*/ React.createElement(RefIcon$n, {
|
|
41822
42470
|
className: `${prefixCls}-loading-icon`
|
|
41823
42471
|
}));
|
|
41824
42472
|
const classes = clsx(contextClassName, {
|
|
@@ -42193,7 +42841,7 @@ const useSelection = (config, rowSelection)=>{
|
|
|
42193
42841
|
}, /*#__PURE__*/ React.createElement(Dropdown, {
|
|
42194
42842
|
menu: menu,
|
|
42195
42843
|
getPopupContainer: getPopupContainer
|
|
42196
|
-
}, /*#__PURE__*/ React.createElement("span", null, /*#__PURE__*/ React.createElement(
|
|
42844
|
+
}, /*#__PURE__*/ React.createElement("span", null, /*#__PURE__*/ React.createElement(RefIcon$k, null))));
|
|
42197
42845
|
}
|
|
42198
42846
|
const allDisabledData = flattedData.map((record, index)=>{
|
|
42199
42847
|
const key = getRowKey(record, index);
|
|
@@ -42478,6 +43126,121 @@ const renderColumnTitle = (title, props)=>{
|
|
|
42478
43126
|
return res;
|
|
42479
43127
|
};
|
|
42480
43128
|
|
|
43129
|
+
function _extends$c() {
|
|
43130
|
+
_extends$c = Object.assign ? Object.assign.bind() : function(target) {
|
|
43131
|
+
for(var i = 1; i < arguments.length; i++){
|
|
43132
|
+
var source = arguments[i];
|
|
43133
|
+
for(var key in source){
|
|
43134
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
43135
|
+
target[key] = source[key];
|
|
43136
|
+
}
|
|
43137
|
+
}
|
|
43138
|
+
}
|
|
43139
|
+
return target;
|
|
43140
|
+
};
|
|
43141
|
+
return _extends$c.apply(this, arguments);
|
|
43142
|
+
}
|
|
43143
|
+
const FilterFilled = (props, ref)=>/*#__PURE__*/ React.createElement(Icon, _extends$c({}, props, {
|
|
43144
|
+
ref: ref,
|
|
43145
|
+
icon: FilterFilledSvg
|
|
43146
|
+
}));
|
|
43147
|
+
/** */ const RefIcon$c = /*#__PURE__*/ React.forwardRef(FilterFilled);
|
|
43148
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
43149
|
+
RefIcon$c.displayName = 'FilterFilled';
|
|
43150
|
+
}
|
|
43151
|
+
|
|
43152
|
+
function _extends$b() {
|
|
43153
|
+
_extends$b = Object.assign ? Object.assign.bind() : function(target) {
|
|
43154
|
+
for(var i = 1; i < arguments.length; i++){
|
|
43155
|
+
var source = arguments[i];
|
|
43156
|
+
for(var key in source){
|
|
43157
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
43158
|
+
target[key] = source[key];
|
|
43159
|
+
}
|
|
43160
|
+
}
|
|
43161
|
+
}
|
|
43162
|
+
return target;
|
|
43163
|
+
};
|
|
43164
|
+
return _extends$b.apply(this, arguments);
|
|
43165
|
+
}
|
|
43166
|
+
const FileOutlined = (props, ref)=>/*#__PURE__*/ React.createElement(Icon, _extends$b({}, props, {
|
|
43167
|
+
ref: ref,
|
|
43168
|
+
icon: FileOutlinedSvg
|
|
43169
|
+
}));
|
|
43170
|
+
/** */ const RefIcon$b = /*#__PURE__*/ React.forwardRef(FileOutlined);
|
|
43171
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
43172
|
+
RefIcon$b.displayName = 'FileOutlined';
|
|
43173
|
+
}
|
|
43174
|
+
|
|
43175
|
+
function _extends$a() {
|
|
43176
|
+
_extends$a = Object.assign ? Object.assign.bind() : function(target) {
|
|
43177
|
+
for(var i = 1; i < arguments.length; i++){
|
|
43178
|
+
var source = arguments[i];
|
|
43179
|
+
for(var key in source){
|
|
43180
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
43181
|
+
target[key] = source[key];
|
|
43182
|
+
}
|
|
43183
|
+
}
|
|
43184
|
+
}
|
|
43185
|
+
return target;
|
|
43186
|
+
};
|
|
43187
|
+
return _extends$a.apply(this, arguments);
|
|
43188
|
+
}
|
|
43189
|
+
const FolderOpenOutlined = (props, ref)=>/*#__PURE__*/ React.createElement(Icon, _extends$a({}, props, {
|
|
43190
|
+
ref: ref,
|
|
43191
|
+
icon: FolderOpenOutlinedSvg
|
|
43192
|
+
}));
|
|
43193
|
+
/** */ const RefIcon$a = /*#__PURE__*/ React.forwardRef(FolderOpenOutlined);
|
|
43194
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
43195
|
+
RefIcon$a.displayName = 'FolderOpenOutlined';
|
|
43196
|
+
}
|
|
43197
|
+
|
|
43198
|
+
function _extends$9() {
|
|
43199
|
+
_extends$9 = Object.assign ? Object.assign.bind() : function(target) {
|
|
43200
|
+
for(var i = 1; i < arguments.length; i++){
|
|
43201
|
+
var source = arguments[i];
|
|
43202
|
+
for(var key in source){
|
|
43203
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
43204
|
+
target[key] = source[key];
|
|
43205
|
+
}
|
|
43206
|
+
}
|
|
43207
|
+
}
|
|
43208
|
+
return target;
|
|
43209
|
+
};
|
|
43210
|
+
return _extends$9.apply(this, arguments);
|
|
43211
|
+
}
|
|
43212
|
+
const FolderOutlined = (props, ref)=>/*#__PURE__*/ React.createElement(Icon, _extends$9({}, props, {
|
|
43213
|
+
ref: ref,
|
|
43214
|
+
icon: FolderOutlinedSvg
|
|
43215
|
+
}));
|
|
43216
|
+
/** */ const RefIcon$9 = /*#__PURE__*/ React.forwardRef(FolderOutlined);
|
|
43217
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
43218
|
+
RefIcon$9.displayName = 'FolderOutlined';
|
|
43219
|
+
}
|
|
43220
|
+
|
|
43221
|
+
function _extends$8() {
|
|
43222
|
+
_extends$8 = Object.assign ? Object.assign.bind() : function(target) {
|
|
43223
|
+
for(var i = 1; i < arguments.length; i++){
|
|
43224
|
+
var source = arguments[i];
|
|
43225
|
+
for(var key in source){
|
|
43226
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
43227
|
+
target[key] = source[key];
|
|
43228
|
+
}
|
|
43229
|
+
}
|
|
43230
|
+
}
|
|
43231
|
+
return target;
|
|
43232
|
+
};
|
|
43233
|
+
return _extends$8.apply(this, arguments);
|
|
43234
|
+
}
|
|
43235
|
+
const HolderOutlined = (props, ref)=>/*#__PURE__*/ React.createElement(Icon, _extends$8({}, props, {
|
|
43236
|
+
ref: ref,
|
|
43237
|
+
icon: HolderOutlinedSvg
|
|
43238
|
+
}));
|
|
43239
|
+
/** */ const RefIcon$8 = /*#__PURE__*/ React.forwardRef(HolderOutlined);
|
|
43240
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
43241
|
+
RefIcon$8.displayName = 'HolderOutlined';
|
|
43242
|
+
}
|
|
43243
|
+
|
|
42481
43244
|
// ============================ Directory =============================
|
|
42482
43245
|
const genDirectoryStyle = ({ treeCls, treeNodeCls, directoryNodeSelectedBg, directoryNodeSelectedColor, motionDurationMid, borderRadius, controlItemBgHover })=>({
|
|
42483
43246
|
[`${treeCls}${treeCls}-directory ${treeNodeCls}`]: {
|
|
@@ -42935,6 +43698,75 @@ const dropIndicatorRender = (props)=>{
|
|
|
42935
43698
|
});
|
|
42936
43699
|
};
|
|
42937
43700
|
|
|
43701
|
+
function _extends$7() {
|
|
43702
|
+
_extends$7 = Object.assign ? Object.assign.bind() : function(target) {
|
|
43703
|
+
for(var i = 1; i < arguments.length; i++){
|
|
43704
|
+
var source = arguments[i];
|
|
43705
|
+
for(var key in source){
|
|
43706
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
43707
|
+
target[key] = source[key];
|
|
43708
|
+
}
|
|
43709
|
+
}
|
|
43710
|
+
}
|
|
43711
|
+
return target;
|
|
43712
|
+
};
|
|
43713
|
+
return _extends$7.apply(this, arguments);
|
|
43714
|
+
}
|
|
43715
|
+
const CaretDownFilled = (props, ref)=>/*#__PURE__*/ React.createElement(Icon, _extends$7({}, props, {
|
|
43716
|
+
ref: ref,
|
|
43717
|
+
icon: CaretDownFilledSvg
|
|
43718
|
+
}));
|
|
43719
|
+
/** */ const RefIcon$7 = /*#__PURE__*/ React.forwardRef(CaretDownFilled);
|
|
43720
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
43721
|
+
RefIcon$7.displayName = 'CaretDownFilled';
|
|
43722
|
+
}
|
|
43723
|
+
|
|
43724
|
+
function _extends$6() {
|
|
43725
|
+
_extends$6 = Object.assign ? Object.assign.bind() : function(target) {
|
|
43726
|
+
for(var i = 1; i < arguments.length; i++){
|
|
43727
|
+
var source = arguments[i];
|
|
43728
|
+
for(var key in source){
|
|
43729
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
43730
|
+
target[key] = source[key];
|
|
43731
|
+
}
|
|
43732
|
+
}
|
|
43733
|
+
}
|
|
43734
|
+
return target;
|
|
43735
|
+
};
|
|
43736
|
+
return _extends$6.apply(this, arguments);
|
|
43737
|
+
}
|
|
43738
|
+
const MinusSquareOutlined = (props, ref)=>/*#__PURE__*/ React.createElement(Icon, _extends$6({}, props, {
|
|
43739
|
+
ref: ref,
|
|
43740
|
+
icon: MinusSquareOutlinedSvg
|
|
43741
|
+
}));
|
|
43742
|
+
/** */ const RefIcon$6 = /*#__PURE__*/ React.forwardRef(MinusSquareOutlined);
|
|
43743
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
43744
|
+
RefIcon$6.displayName = 'MinusSquareOutlined';
|
|
43745
|
+
}
|
|
43746
|
+
|
|
43747
|
+
function _extends$5() {
|
|
43748
|
+
_extends$5 = Object.assign ? Object.assign.bind() : function(target) {
|
|
43749
|
+
for(var i = 1; i < arguments.length; i++){
|
|
43750
|
+
var source = arguments[i];
|
|
43751
|
+
for(var key in source){
|
|
43752
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
43753
|
+
target[key] = source[key];
|
|
43754
|
+
}
|
|
43755
|
+
}
|
|
43756
|
+
}
|
|
43757
|
+
return target;
|
|
43758
|
+
};
|
|
43759
|
+
return _extends$5.apply(this, arguments);
|
|
43760
|
+
}
|
|
43761
|
+
const PlusSquareOutlined = (props, ref)=>/*#__PURE__*/ React.createElement(Icon, _extends$5({}, props, {
|
|
43762
|
+
ref: ref,
|
|
43763
|
+
icon: PlusSquareOutlinedSvg
|
|
43764
|
+
}));
|
|
43765
|
+
/** */ const RefIcon$5 = /*#__PURE__*/ React.forwardRef(PlusSquareOutlined);
|
|
43766
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
43767
|
+
RefIcon$5.displayName = 'PlusSquareOutlined';
|
|
43768
|
+
}
|
|
43769
|
+
|
|
42938
43770
|
const SwitcherIconCom = (props)=>{
|
|
42939
43771
|
const { prefixCls, switcherIcon, treeNodeProps, showLine, switcherLoadingIcon } = props;
|
|
42940
43772
|
const { isLeaf, expanded, loading } = treeNodeProps;
|
|
@@ -42942,7 +43774,7 @@ const SwitcherIconCom = (props)=>{
|
|
|
42942
43774
|
if (/*#__PURE__*/ React.isValidElement(switcherLoadingIcon)) {
|
|
42943
43775
|
return switcherLoadingIcon;
|
|
42944
43776
|
}
|
|
42945
|
-
return /*#__PURE__*/ React.createElement(
|
|
43777
|
+
return /*#__PURE__*/ React.createElement(RefIcon$n, {
|
|
42946
43778
|
className: `${prefixCls}-switcher-loading-icon`
|
|
42947
43779
|
});
|
|
42948
43780
|
}
|
|
@@ -42964,7 +43796,7 @@ const SwitcherIconCom = (props)=>{
|
|
|
42964
43796
|
}
|
|
42965
43797
|
return leafIcon;
|
|
42966
43798
|
}
|
|
42967
|
-
return showLeafIcon ? /*#__PURE__*/ React.createElement(
|
|
43799
|
+
return showLeafIcon ? /*#__PURE__*/ React.createElement(RefIcon$b, {
|
|
42968
43800
|
className: `${prefixCls}-switcher-line-icon`
|
|
42969
43801
|
}) : /*#__PURE__*/ React.createElement("span", {
|
|
42970
43802
|
className: `${prefixCls}-switcher-leaf-line`
|
|
@@ -42981,13 +43813,13 @@ const SwitcherIconCom = (props)=>{
|
|
|
42981
43813
|
return switcher;
|
|
42982
43814
|
}
|
|
42983
43815
|
if (showLine) {
|
|
42984
|
-
return expanded ? /*#__PURE__*/ React.createElement(
|
|
43816
|
+
return expanded ? /*#__PURE__*/ React.createElement(RefIcon$6, {
|
|
42985
43817
|
className: `${prefixCls}-switcher-line-icon`
|
|
42986
|
-
}) : /*#__PURE__*/ React.createElement(
|
|
43818
|
+
}) : /*#__PURE__*/ React.createElement(RefIcon$5, {
|
|
42987
43819
|
className: `${prefixCls}-switcher-line-icon`
|
|
42988
43820
|
});
|
|
42989
43821
|
}
|
|
42990
|
-
return /*#__PURE__*/ React.createElement(
|
|
43822
|
+
return /*#__PURE__*/ React.createElement(RefIcon$7, {
|
|
42991
43823
|
className: switcherCls
|
|
42992
43824
|
});
|
|
42993
43825
|
};
|
|
@@ -43048,7 +43880,7 @@ const Tree$1 = /*#__PURE__*/ React__default.forwardRef((props, ref)=>{
|
|
|
43048
43880
|
break;
|
|
43049
43881
|
}
|
|
43050
43882
|
if (mergedDraggable.icon !== false) {
|
|
43051
|
-
mergedDraggable.icon = mergedDraggable.icon || /*#__PURE__*/ React__default.createElement(
|
|
43883
|
+
mergedDraggable.icon = mergedDraggable.icon || /*#__PURE__*/ React__default.createElement(RefIcon$8, null);
|
|
43052
43884
|
}
|
|
43053
43885
|
return mergedDraggable;
|
|
43054
43886
|
}, [
|
|
@@ -43162,9 +43994,9 @@ function convertDirectoryKeysToNodes(treeData, keys, fieldNames) {
|
|
|
43162
43994
|
function getIcon(props) {
|
|
43163
43995
|
const { isLeaf, expanded } = props;
|
|
43164
43996
|
if (isLeaf) {
|
|
43165
|
-
return /*#__PURE__*/ React.createElement(
|
|
43997
|
+
return /*#__PURE__*/ React.createElement(RefIcon$b, null);
|
|
43166
43998
|
}
|
|
43167
|
-
return expanded ? /*#__PURE__*/ React.createElement(
|
|
43999
|
+
return expanded ? /*#__PURE__*/ React.createElement(RefIcon$a, null) : /*#__PURE__*/ React.createElement(RefIcon$9, null);
|
|
43168
44000
|
}
|
|
43169
44001
|
function getTreeData({ treeData, children }) {
|
|
43170
44002
|
return treeData || convertTreeToData(children);
|
|
@@ -43295,7 +44127,7 @@ const FilterSearch = (props)=>{
|
|
|
43295
44127
|
return /*#__PURE__*/ React.createElement("div", {
|
|
43296
44128
|
className: `${tablePrefixCls}-filter-dropdown-search`
|
|
43297
44129
|
}, /*#__PURE__*/ React.createElement(Input, {
|
|
43298
|
-
prefix: /*#__PURE__*/ React.createElement(
|
|
44130
|
+
prefix: /*#__PURE__*/ React.createElement(RefIcon$j, null),
|
|
43299
44131
|
placeholder: locale.filterSearchPlaceholder,
|
|
43300
44132
|
onChange: onChange,
|
|
43301
44133
|
value: value,
|
|
@@ -43691,7 +44523,7 @@ const FilterDropdown = (props)=>{
|
|
|
43691
44523
|
} else if (column.filterIcon) {
|
|
43692
44524
|
filterIcon = column.filterIcon;
|
|
43693
44525
|
} else {
|
|
43694
|
-
filterIcon = /*#__PURE__*/ React.createElement(
|
|
44526
|
+
filterIcon = /*#__PURE__*/ React.createElement(RefIcon$c, null);
|
|
43695
44527
|
}
|
|
43696
44528
|
return /*#__PURE__*/ React.createElement("span", {
|
|
43697
44529
|
role: "button",
|
|
@@ -44022,6 +44854,52 @@ function usePagination(total, onChange, pagination) {
|
|
|
44022
44854
|
];
|
|
44023
44855
|
}
|
|
44024
44856
|
|
|
44857
|
+
function _extends$4() {
|
|
44858
|
+
_extends$4 = Object.assign ? Object.assign.bind() : function(target) {
|
|
44859
|
+
for(var i = 1; i < arguments.length; i++){
|
|
44860
|
+
var source = arguments[i];
|
|
44861
|
+
for(var key in source){
|
|
44862
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
44863
|
+
target[key] = source[key];
|
|
44864
|
+
}
|
|
44865
|
+
}
|
|
44866
|
+
}
|
|
44867
|
+
return target;
|
|
44868
|
+
};
|
|
44869
|
+
return _extends$4.apply(this, arguments);
|
|
44870
|
+
}
|
|
44871
|
+
const CaretDownOutlined = (props, ref)=>/*#__PURE__*/ React.createElement(Icon, _extends$4({}, props, {
|
|
44872
|
+
ref: ref,
|
|
44873
|
+
icon: CaretDownOutlinedSvg
|
|
44874
|
+
}));
|
|
44875
|
+
/** */ const RefIcon$4 = /*#__PURE__*/ React.forwardRef(CaretDownOutlined);
|
|
44876
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
44877
|
+
RefIcon$4.displayName = 'CaretDownOutlined';
|
|
44878
|
+
}
|
|
44879
|
+
|
|
44880
|
+
function _extends$3() {
|
|
44881
|
+
_extends$3 = Object.assign ? Object.assign.bind() : function(target) {
|
|
44882
|
+
for(var i = 1; i < arguments.length; i++){
|
|
44883
|
+
var source = arguments[i];
|
|
44884
|
+
for(var key in source){
|
|
44885
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
44886
|
+
target[key] = source[key];
|
|
44887
|
+
}
|
|
44888
|
+
}
|
|
44889
|
+
}
|
|
44890
|
+
return target;
|
|
44891
|
+
};
|
|
44892
|
+
return _extends$3.apply(this, arguments);
|
|
44893
|
+
}
|
|
44894
|
+
const CaretUpOutlined = (props, ref)=>/*#__PURE__*/ React.createElement(Icon, _extends$3({}, props, {
|
|
44895
|
+
ref: ref,
|
|
44896
|
+
icon: CaretUpOutlinedSvg
|
|
44897
|
+
}));
|
|
44898
|
+
/** */ const RefIcon$3 = /*#__PURE__*/ React.forwardRef(CaretUpOutlined);
|
|
44899
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
44900
|
+
RefIcon$3.displayName = 'CaretUpOutlined';
|
|
44901
|
+
}
|
|
44902
|
+
|
|
44025
44903
|
const ASCEND = 'ascend';
|
|
44026
44904
|
const DESCEND = 'descend';
|
|
44027
44905
|
const getMultiplePriority = (column)=>{
|
|
@@ -44097,12 +44975,12 @@ const injectSorter = (prefixCls, columns, sorterStates, triggerSorter, defaultSo
|
|
|
44097
44975
|
sortOrder
|
|
44098
44976
|
});
|
|
44099
44977
|
} else {
|
|
44100
|
-
const upNode = sortDirections.includes(ASCEND) && /*#__PURE__*/ React.createElement(
|
|
44978
|
+
const upNode = sortDirections.includes(ASCEND) && /*#__PURE__*/ React.createElement(RefIcon$3, {
|
|
44101
44979
|
className: clsx(`${prefixCls}-column-sorter-up`, {
|
|
44102
44980
|
active: sortOrder === ASCEND
|
|
44103
44981
|
})
|
|
44104
44982
|
});
|
|
44105
|
-
const downNode = sortDirections.includes(DESCEND) && /*#__PURE__*/ React.createElement(
|
|
44983
|
+
const downNode = sortDirections.includes(DESCEND) && /*#__PURE__*/ React.createElement(RefIcon$4, {
|
|
44106
44984
|
className: clsx(`${prefixCls}-column-sorter-down`, {
|
|
44107
44985
|
active: sortOrder === DESCEND
|
|
44108
44986
|
})
|
|
@@ -46585,6 +47463,52 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
46585
47463
|
Tag.CheckableTag = CheckableTag;
|
|
46586
47464
|
Tag.CheckableTagGroup = CheckableTagGroup;
|
|
46587
47465
|
|
|
47466
|
+
function _extends$2() {
|
|
47467
|
+
_extends$2 = Object.assign ? Object.assign.bind() : function(target) {
|
|
47468
|
+
for(var i = 1; i < arguments.length; i++){
|
|
47469
|
+
var source = arguments[i];
|
|
47470
|
+
for(var key in source){
|
|
47471
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
47472
|
+
target[key] = source[key];
|
|
47473
|
+
}
|
|
47474
|
+
}
|
|
47475
|
+
}
|
|
47476
|
+
return target;
|
|
47477
|
+
};
|
|
47478
|
+
return _extends$2.apply(this, arguments);
|
|
47479
|
+
}
|
|
47480
|
+
const EditOutlined = (props, ref)=>/*#__PURE__*/ React.createElement(Icon, _extends$2({}, props, {
|
|
47481
|
+
ref: ref,
|
|
47482
|
+
icon: EditOutlinedSvg
|
|
47483
|
+
}));
|
|
47484
|
+
/** */ const RefIcon$2 = /*#__PURE__*/ React.forwardRef(EditOutlined);
|
|
47485
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
47486
|
+
RefIcon$2.displayName = 'EditOutlined';
|
|
47487
|
+
}
|
|
47488
|
+
|
|
47489
|
+
function _extends$1() {
|
|
47490
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
47491
|
+
for(var i = 1; i < arguments.length; i++){
|
|
47492
|
+
var source = arguments[i];
|
|
47493
|
+
for(var key in source){
|
|
47494
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
47495
|
+
target[key] = source[key];
|
|
47496
|
+
}
|
|
47497
|
+
}
|
|
47498
|
+
}
|
|
47499
|
+
return target;
|
|
47500
|
+
};
|
|
47501
|
+
return _extends$1.apply(this, arguments);
|
|
47502
|
+
}
|
|
47503
|
+
const EnterOutlined = (props, ref)=>/*#__PURE__*/ React.createElement(Icon, _extends$1({}, props, {
|
|
47504
|
+
ref: ref,
|
|
47505
|
+
icon: EnterOutlinedSvg
|
|
47506
|
+
}));
|
|
47507
|
+
/** */ const RefIcon$1 = /*#__PURE__*/ React.forwardRef(EnterOutlined);
|
|
47508
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
47509
|
+
RefIcon$1.displayName = 'EnterOutlined';
|
|
47510
|
+
}
|
|
47511
|
+
|
|
46588
47512
|
const getTitleStyle = (fontSize, lineHeight, color, token)=>{
|
|
46589
47513
|
const { titleMarginBottom, fontWeightStrong } = token;
|
|
46590
47514
|
return {
|
|
@@ -46869,7 +47793,7 @@ const prepareComponentToken = ()=>({
|
|
|
46869
47793
|
var useStyle = genStyleHooks('Typography', genTypographyStyle, prepareComponentToken);
|
|
46870
47794
|
|
|
46871
47795
|
const Editable = (props)=>{
|
|
46872
|
-
const { prefixCls, 'aria-label': ariaLabel, className, style, direction, maxLength, autoSize = true, value, onSave, onCancel, onEnd, component, enterIcon = /*#__PURE__*/ React.createElement(
|
|
47796
|
+
const { prefixCls, 'aria-label': ariaLabel, className, style, direction, maxLength, autoSize = true, value, onSave, onCancel, onEnd, component, enterIcon = /*#__PURE__*/ React.createElement(RefIcon$1, null) } = props;
|
|
46873
47797
|
const ref = React.useRef(null);
|
|
46874
47798
|
const inCompositionRef = React.useRef(false);
|
|
46875
47799
|
const lastKeyCodeRef = React.useRef(null);
|
|
@@ -47000,7 +47924,7 @@ const asyncCopy = async (text, isHtmlFormat)=>{
|
|
|
47000
47924
|
};
|
|
47001
47925
|
async function copy(text, config) {
|
|
47002
47926
|
if (typeof text !== 'string') {
|
|
47003
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
47927
|
+
process.env.NODE_ENV !== "production" ? warning$2(false, 'The clipboard content must be of string type', '') : void 0;
|
|
47004
47928
|
return false;
|
|
47005
47929
|
}
|
|
47006
47930
|
const isHtmlFormat = config?.format === 'text/html';
|
|
@@ -47131,6 +48055,29 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
47131
48055
|
Typography$1.displayName = 'Typography';
|
|
47132
48056
|
}
|
|
47133
48057
|
|
|
48058
|
+
function _extends() {
|
|
48059
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
48060
|
+
for(var i = 1; i < arguments.length; i++){
|
|
48061
|
+
var source = arguments[i];
|
|
48062
|
+
for(var key in source){
|
|
48063
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
48064
|
+
target[key] = source[key];
|
|
48065
|
+
}
|
|
48066
|
+
}
|
|
48067
|
+
}
|
|
48068
|
+
return target;
|
|
48069
|
+
};
|
|
48070
|
+
return _extends.apply(this, arguments);
|
|
48071
|
+
}
|
|
48072
|
+
const CopyOutlined = (props, ref)=>/*#__PURE__*/ React.createElement(Icon, _extends({}, props, {
|
|
48073
|
+
ref: ref,
|
|
48074
|
+
icon: CopyOutlinedSvg
|
|
48075
|
+
}));
|
|
48076
|
+
/** */ const RefIcon = /*#__PURE__*/ React.forwardRef(CopyOutlined);
|
|
48077
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
48078
|
+
RefIcon.displayName = 'CopyOutlined';
|
|
48079
|
+
}
|
|
48080
|
+
|
|
47134
48081
|
const toCopyConfigList = (val)=>{
|
|
47135
48082
|
if (val === false) {
|
|
47136
48083
|
return [
|
|
@@ -47192,7 +48139,7 @@ const CopyBtn = (props)=>{
|
|
|
47192
48139
|
onClick: onCopy,
|
|
47193
48140
|
"aria-label": ariaLabel,
|
|
47194
48141
|
tabIndex: tabIndex
|
|
47195
|
-
}, copied ? getNode(iconNodes[1], /*#__PURE__*/ React.createElement(
|
|
48142
|
+
}, copied ? getNode(iconNodes[1], /*#__PURE__*/ React.createElement(RefIcon$l, null), true) : getNode(iconNodes[0], btnLoading ? /*#__PURE__*/ React.createElement(RefIcon$n, null) : /*#__PURE__*/ React.createElement(RefIcon, null), true)));
|
|
47196
48143
|
};
|
|
47197
48144
|
|
|
47198
48145
|
const MeasureText = /*#__PURE__*/ React.forwardRef(({ style, children }, ref)=>{
|
|
@@ -47690,7 +48637,7 @@ const Base = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
|
47690
48637
|
onClick: onEditClick,
|
|
47691
48638
|
"aria-label": ariaLabel,
|
|
47692
48639
|
tabIndex: tabIndex
|
|
47693
|
-
}, icon || /*#__PURE__*/ React.createElement(
|
|
48640
|
+
}, icon || /*#__PURE__*/ React.createElement(RefIcon$2, {
|
|
47694
48641
|
role: "button"
|
|
47695
48642
|
}))) : null;
|
|
47696
48643
|
};
|
|
@@ -47818,7 +48765,7 @@ const Paragraph = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
|
47818
48765
|
}, children);
|
|
47819
48766
|
});
|
|
47820
48767
|
|
|
47821
|
-
const Text$
|
|
48768
|
+
const Text$3 = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
47822
48769
|
const { ellipsis, children, ...restProps } = props;
|
|
47823
48770
|
const mergedEllipsis = React.useMemo(()=>{
|
|
47824
48771
|
if (ellipsis && typeof ellipsis === 'object') {
|
|
@@ -47865,7 +48812,7 @@ const Title$1 = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
|
47865
48812
|
});
|
|
47866
48813
|
|
|
47867
48814
|
const Typography = Typography$1;
|
|
47868
|
-
Typography.Text = Text$
|
|
48815
|
+
Typography.Text = Text$3;
|
|
47869
48816
|
Typography.Link = Link$1;
|
|
47870
48817
|
Typography.Title = Title$1;
|
|
47871
48818
|
Typography.Paragraph = Paragraph;
|
|
@@ -48186,6 +49133,130 @@ function valueToTreeNodes(value, path) {
|
|
|
48186
49133
|
return valueToTreeNodes(data, "$root");
|
|
48187
49134
|
}
|
|
48188
49135
|
|
|
49136
|
+
const { Text: Text$2 } = Typography;
|
|
49137
|
+
/**
|
|
49138
|
+
* Detect whether a tool/node output is an error envelope rather than a regular
|
|
49139
|
+
* return value. Failed nodes serialize as `{ type, message, traceback }`; a
|
|
49140
|
+
* traceback alone, or a `type` + `message` pair, is enough to treat it as an
|
|
49141
|
+
* error. Returns the parsed error (with only string fields kept) or null.
|
|
49142
|
+
*/ function parseErrorOutput(output) {
|
|
49143
|
+
if (output === null || typeof output !== "object" || Array.isArray(output)) {
|
|
49144
|
+
return null;
|
|
49145
|
+
}
|
|
49146
|
+
const obj = output;
|
|
49147
|
+
const type = typeof obj.type === "string" ? obj.type : undefined;
|
|
49148
|
+
const message = typeof obj.message === "string" ? obj.message : undefined;
|
|
49149
|
+
const traceback = typeof obj.traceback === "string" ? obj.traceback : undefined;
|
|
49150
|
+
const looksLikeError = traceback !== undefined || type !== undefined && message !== undefined;
|
|
49151
|
+
return looksLikeError ? {
|
|
49152
|
+
type,
|
|
49153
|
+
message,
|
|
49154
|
+
traceback
|
|
49155
|
+
} : null;
|
|
49156
|
+
}
|
|
49157
|
+
/**
|
|
49158
|
+
* Renders a failed node/tool output distinctly from a regular returned object:
|
|
49159
|
+
* a destructive-tinted surface with the exception type, message, and a
|
|
49160
|
+
* collapsible traceback.
|
|
49161
|
+
*/ const ErrorOutput = ({ error })=>{
|
|
49162
|
+
const { theme } = useTheme$1();
|
|
49163
|
+
const [showTraceback, setShowTraceback] = useState(false);
|
|
49164
|
+
const destructive = theme?.colors?.destructive ?? "hsl(0 84.2% 60.2%)";
|
|
49165
|
+
const foreground = theme?.colors?.foreground ?? "inherit";
|
|
49166
|
+
const mutedForeground = theme?.colors?.mutedForeground ?? "inherit";
|
|
49167
|
+
const radius = theme?.borderRadius?.md ?? "0.375rem";
|
|
49168
|
+
const xs = theme?.spacing?.xs ?? "0.25rem";
|
|
49169
|
+
const sm = theme?.spacing?.sm ?? "0.5rem";
|
|
49170
|
+
const md = theme?.spacing?.md ?? "1rem";
|
|
49171
|
+
const fontXs = theme?.fontSize?.xs ?? "0.75rem";
|
|
49172
|
+
const fontSm = theme?.fontSize?.sm ?? "0.875rem";
|
|
49173
|
+
const { type, message, traceback } = error;
|
|
49174
|
+
return /*#__PURE__*/ React__default.createElement("div", {
|
|
49175
|
+
"data-testid": "error-output",
|
|
49176
|
+
style: {
|
|
49177
|
+
border: `1px solid color-mix(in srgb, ${destructive} 45%, transparent)`,
|
|
49178
|
+
background: `color-mix(in srgb, ${destructive} 8%, transparent)`,
|
|
49179
|
+
borderRadius: radius,
|
|
49180
|
+
padding: md,
|
|
49181
|
+
display: "flex",
|
|
49182
|
+
flexDirection: "column",
|
|
49183
|
+
gap: sm
|
|
49184
|
+
}
|
|
49185
|
+
}, /*#__PURE__*/ React__default.createElement("div", {
|
|
49186
|
+
style: {
|
|
49187
|
+
display: "flex",
|
|
49188
|
+
alignItems: "center",
|
|
49189
|
+
gap: sm,
|
|
49190
|
+
flexWrap: "wrap"
|
|
49191
|
+
}
|
|
49192
|
+
}, /*#__PURE__*/ React__default.createElement(TriangleAlert, {
|
|
49193
|
+
size: 16,
|
|
49194
|
+
color: destructive,
|
|
49195
|
+
strokeWidth: 2,
|
|
49196
|
+
"aria-hidden": true
|
|
49197
|
+
}), /*#__PURE__*/ React__default.createElement(Tag, {
|
|
49198
|
+
color: "red",
|
|
49199
|
+
style: {
|
|
49200
|
+
margin: 0
|
|
49201
|
+
}
|
|
49202
|
+
}, type || "Error")), message && /*#__PURE__*/ React__default.createElement(Text$2, {
|
|
49203
|
+
strong: true,
|
|
49204
|
+
style: {
|
|
49205
|
+
color: foreground,
|
|
49206
|
+
fontSize: fontSm,
|
|
49207
|
+
wordBreak: "break-word"
|
|
49208
|
+
}
|
|
49209
|
+
}, message), traceback && /*#__PURE__*/ React__default.createElement("div", {
|
|
49210
|
+
style: {
|
|
49211
|
+
display: "flex",
|
|
49212
|
+
flexDirection: "column",
|
|
49213
|
+
gap: xs
|
|
49214
|
+
}
|
|
49215
|
+
}, /*#__PURE__*/ React__default.createElement("button", {
|
|
49216
|
+
type: "button",
|
|
49217
|
+
onClick: ()=>setShowTraceback((prev)=>!prev),
|
|
49218
|
+
"aria-expanded": showTraceback,
|
|
49219
|
+
style: {
|
|
49220
|
+
display: "inline-flex",
|
|
49221
|
+
alignItems: "center",
|
|
49222
|
+
gap: xs,
|
|
49223
|
+
alignSelf: "flex-start",
|
|
49224
|
+
padding: 0,
|
|
49225
|
+
border: "none",
|
|
49226
|
+
background: "transparent",
|
|
49227
|
+
cursor: "pointer",
|
|
49228
|
+
color: destructive,
|
|
49229
|
+
fontSize: fontXs,
|
|
49230
|
+
fontWeight: 500
|
|
49231
|
+
}
|
|
49232
|
+
}, showTraceback ? /*#__PURE__*/ React__default.createElement(ChevronDown, {
|
|
49233
|
+
size: 14,
|
|
49234
|
+
strokeWidth: 2,
|
|
49235
|
+
"aria-hidden": true
|
|
49236
|
+
}) : /*#__PURE__*/ React__default.createElement(ChevronRight, {
|
|
49237
|
+
size: 14,
|
|
49238
|
+
strokeWidth: 2,
|
|
49239
|
+
"aria-hidden": true
|
|
49240
|
+
}), showTraceback ? "Hide traceback" : "Show traceback"), showTraceback && /*#__PURE__*/ React__default.createElement("pre", {
|
|
49241
|
+
"data-testid": "error-output-traceback",
|
|
49242
|
+
style: {
|
|
49243
|
+
margin: 0,
|
|
49244
|
+
padding: sm,
|
|
49245
|
+
borderRadius: radius,
|
|
49246
|
+
background: `color-mix(in srgb, ${destructive} 6%, transparent)`,
|
|
49247
|
+
border: `1px solid color-mix(in srgb, ${destructive} 25%, transparent)`,
|
|
49248
|
+
color: mutedForeground,
|
|
49249
|
+
fontFamily: "monospace",
|
|
49250
|
+
fontSize: fontXs,
|
|
49251
|
+
lineHeight: 1.5,
|
|
49252
|
+
whiteSpace: "pre-wrap",
|
|
49253
|
+
wordBreak: "break-word",
|
|
49254
|
+
maxHeight: "300px",
|
|
49255
|
+
overflow: "auto"
|
|
49256
|
+
}
|
|
49257
|
+
}, traceback)));
|
|
49258
|
+
};
|
|
49259
|
+
|
|
48189
49260
|
const { Text: Text$1 } = Typography;
|
|
48190
49261
|
function themedCodeSurface(theme) {
|
|
48191
49262
|
return {
|
|
@@ -48364,8 +49435,9 @@ const InputsOutputsCollapse = ({ inputs, output, toolOutput, modelProvider, mode
|
|
|
48364
49435
|
const { theme } = useTheme$1();
|
|
48365
49436
|
const hasInputs = hasInputsProp ?? inputs.length > 0;
|
|
48366
49437
|
const hasOutputs = output !== null || toolOutput !== null;
|
|
49438
|
+
const errorOutput = parseErrorOutput(toolOutput);
|
|
48367
49439
|
const outputsText = hasOutputs ? formatOutputAsText(output, toolOutput) : "";
|
|
48368
|
-
const isToolOutputTabular = toolOutput !== null && toolOutput !== undefined && isTabularData(toolOutput);
|
|
49440
|
+
const isToolOutputTabular = !errorOutput && toolOutput !== null && toolOutput !== undefined && isTabularData(toolOutput);
|
|
48369
49441
|
const toolInputText = getToolInputText(inputs);
|
|
48370
49442
|
const inputsLabel = largeInputsTitle ? /*#__PURE__*/ React__default.createElement("div", {
|
|
48371
49443
|
style: {
|
|
@@ -48450,13 +49522,26 @@ const InputsOutputsCollapse = ({ inputs, output, toolOutput, modelProvider, mode
|
|
|
48450
49522
|
},
|
|
48451
49523
|
{
|
|
48452
49524
|
key: "outputs",
|
|
48453
|
-
label: /*#__PURE__*/ React__default.createElement(
|
|
49525
|
+
label: /*#__PURE__*/ React__default.createElement("div", {
|
|
49526
|
+
style: {
|
|
49527
|
+
display: "flex",
|
|
49528
|
+
alignItems: "center",
|
|
49529
|
+
gap: theme.spacing.sm
|
|
49530
|
+
}
|
|
49531
|
+
}, /*#__PURE__*/ React__default.createElement(Text$1, {
|
|
48454
49532
|
strong: true,
|
|
48455
49533
|
style: {
|
|
48456
49534
|
color: theme.colors.foreground
|
|
48457
49535
|
}
|
|
48458
|
-
}, "Outputs"),
|
|
48459
|
-
|
|
49536
|
+
}, "Outputs"), errorOutput && /*#__PURE__*/ React__default.createElement(Tag, {
|
|
49537
|
+
color: "red",
|
|
49538
|
+
style: {
|
|
49539
|
+
margin: 0
|
|
49540
|
+
}
|
|
49541
|
+
}, "Failed")),
|
|
49542
|
+
children: hasOutputs ? errorOutput ? /*#__PURE__*/ React__default.createElement(ErrorOutput, {
|
|
49543
|
+
error: errorOutput
|
|
49544
|
+
}) : isToolOutputTabular ? /*#__PURE__*/ React__default.createElement(JsonValueTree, {
|
|
48460
49545
|
data: toolOutput
|
|
48461
49546
|
}) : /*#__PURE__*/ React__default.createElement("pre", {
|
|
48462
49547
|
style: outputPreStyle
|
|
@@ -51704,6 +52789,13 @@ function RemoveScrollSideCar(props) {
|
|
|
51704
52789
|
if ('touches' in event && moveDirection === 'h' && target.type === 'range') {
|
|
51705
52790
|
return false;
|
|
51706
52791
|
}
|
|
52792
|
+
// allow drag selection (iOS); check if selection's anchorNode is the same as target or contains target
|
|
52793
|
+
var selection = window.getSelection();
|
|
52794
|
+
var anchorNode = selection && selection.anchorNode;
|
|
52795
|
+
var isTouchingSelection = anchorNode ? anchorNode === target || anchorNode.contains(target) : false;
|
|
52796
|
+
if (isTouchingSelection) {
|
|
52797
|
+
return false;
|
|
52798
|
+
}
|
|
51707
52799
|
var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
|
|
51708
52800
|
if (!canBeScrolledInMainDirection) {
|
|
51709
52801
|
return true;
|
|
@@ -114338,7 +115430,7 @@ const EvaluationsErrorCard = ({ error, onRetry })=>/*#__PURE__*/ React__default.
|
|
|
114338
115430
|
}
|
|
114339
115431
|
}, /*#__PURE__*/ React__default.createElement(Alert, {
|
|
114340
115432
|
type: "error",
|
|
114341
|
-
|
|
115433
|
+
message: "Error loading evaluations",
|
|
114342
115434
|
description: /*#__PURE__*/ React__default.createElement("div", {
|
|
114343
115435
|
style: {
|
|
114344
115436
|
display: "flex",
|
|
@@ -114374,7 +115466,7 @@ const EvaluationsErrorCard = ({ error, onRetry })=>/*#__PURE__*/ React__default.
|
|
|
114374
115466
|
showIcon: true
|
|
114375
115467
|
}));
|
|
114376
115468
|
|
|
114377
|
-
const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefresh, onRowClick, onCompare, compareIdsFromUrl, onCompareUrlChange, showFilters = true, showCompare = true, emptyMessage, title, pagination: serverPagination, onFiltersChange, onFetchEvaluationsByIds, errorRender })=>{
|
|
115469
|
+
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 })=>{
|
|
114378
115470
|
const { theme } = useTheme$1();
|
|
114379
115471
|
const [selectedAgents, setSelectedAgents] = useState([]);
|
|
114380
115472
|
const [selectedRowKeys, setSelectedRowKeys] = useState([]);
|
|
@@ -114386,6 +115478,8 @@ const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefres
|
|
|
114386
115478
|
const [pageSize, setPageSize] = useState(50);
|
|
114387
115479
|
const [selectedMetricFilter, setSelectedMetricFilter] = useState(null);
|
|
114388
115480
|
const [drawerEvaluations, setDrawerEvaluations] = useState([]);
|
|
115481
|
+
const [selectedSessions, setSelectedSessions] = useState(initialSessionIds ?? []);
|
|
115482
|
+
const [selectedNames, setSelectedNames] = useState(initialNameFilter ?? []);
|
|
114389
115483
|
const isServerPagination = !!serverPagination;
|
|
114390
115484
|
const normalized = useMemo(()=>evaluations.map((e)=>isEvaluationDto(e) ? transformEvaluation(e) : e), [
|
|
114391
115485
|
evaluations
|
|
@@ -114420,6 +115514,27 @@ const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefres
|
|
|
114420
115514
|
}, [
|
|
114421
115515
|
normalized
|
|
114422
115516
|
]);
|
|
115517
|
+
const uniqueSessionIds = useMemo(()=>{
|
|
115518
|
+
const ids = new Set();
|
|
115519
|
+
for (const ev of normalized){
|
|
115520
|
+
for (const agent of ev.agents ?? []){
|
|
115521
|
+
for (const entry of agent.agent_node_ids ?? []){
|
|
115522
|
+
if (typeof entry === "object" && "session_id" in entry) {
|
|
115523
|
+
ids.add(entry.session_id);
|
|
115524
|
+
}
|
|
115525
|
+
}
|
|
115526
|
+
}
|
|
115527
|
+
}
|
|
115528
|
+
return Array.from(ids).sort();
|
|
115529
|
+
}, [
|
|
115530
|
+
normalized
|
|
115531
|
+
]);
|
|
115532
|
+
const uniqueEvaluationNames = useMemo(()=>{
|
|
115533
|
+
const names = new Set(normalized.map((e)=>e.name).filter(Boolean));
|
|
115534
|
+
return Array.from(names).sort();
|
|
115535
|
+
}, [
|
|
115536
|
+
normalized
|
|
115537
|
+
]);
|
|
114423
115538
|
const filteredEvaluations = useMemo(()=>{
|
|
114424
115539
|
let result = normalized;
|
|
114425
115540
|
if (selectedAgents.length > 0) {
|
|
@@ -114429,11 +115544,38 @@ const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefres
|
|
|
114429
115544
|
const [evaluatorName, metricName] = selectedMetricFilter.split("::");
|
|
114430
115545
|
result = result.filter((evaluation)=>evaluation.evaluators.some((ev)=>ev.name === evaluatorName && evaluation.results[ev.evaluator_id]?.[metricName] !== undefined));
|
|
114431
115546
|
}
|
|
115547
|
+
if (selectedNames.length > 0) {
|
|
115548
|
+
result = result.filter((ev)=>selectedNames.includes(ev.name));
|
|
115549
|
+
}
|
|
115550
|
+
if (selectedSessions.length > 0) {
|
|
115551
|
+
const lowerSessions = selectedSessions.map((s)=>s.toLowerCase());
|
|
115552
|
+
const getEvSessions = (ev)=>{
|
|
115553
|
+
const ids = new Set();
|
|
115554
|
+
for (const agent of ev.agents ?? []){
|
|
115555
|
+
for (const entry of agent.agent_node_ids ?? []){
|
|
115556
|
+
if (typeof entry === "object" && "session_id" in entry) {
|
|
115557
|
+
ids.add(entry.session_id.toLowerCase());
|
|
115558
|
+
}
|
|
115559
|
+
}
|
|
115560
|
+
}
|
|
115561
|
+
return ids;
|
|
115562
|
+
};
|
|
115563
|
+
result = result.filter((ev)=>{
|
|
115564
|
+
const ids = getEvSessions(ev);
|
|
115565
|
+
return lowerSessions.some((s)=>ids.has(s));
|
|
115566
|
+
}).sort((a, b)=>{
|
|
115567
|
+
const aIds = getEvSessions(a);
|
|
115568
|
+
const bIds = getEvSessions(b);
|
|
115569
|
+
return lowerSessions.filter((s)=>bIds.has(s)).length - lowerSessions.filter((s)=>aIds.has(s)).length;
|
|
115570
|
+
});
|
|
115571
|
+
}
|
|
114432
115572
|
return result;
|
|
114433
115573
|
}, [
|
|
114434
115574
|
normalized,
|
|
114435
115575
|
selectedAgents,
|
|
114436
|
-
selectedMetricFilter
|
|
115576
|
+
selectedMetricFilter,
|
|
115577
|
+
selectedNames,
|
|
115578
|
+
selectedSessions
|
|
114437
115579
|
]);
|
|
114438
115580
|
const tableDataSource = filteredEvaluations;
|
|
114439
115581
|
const compareDrawerEvaluations = useMemo(()=>{
|
|
@@ -114645,6 +115787,7 @@ const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefres
|
|
|
114645
115787
|
placeholder: "Filter by Agent",
|
|
114646
115788
|
allowClear: true,
|
|
114647
115789
|
value: selectedAgents,
|
|
115790
|
+
maxTagCount: "responsive",
|
|
114648
115791
|
onChange: (v)=>{
|
|
114649
115792
|
setSelectedAgents(v);
|
|
114650
115793
|
if (isServerPagination && onFiltersChange) {
|
|
@@ -114661,6 +115804,7 @@ const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefres
|
|
|
114661
115804
|
}), /*#__PURE__*/ React__default.createElement(Select, {
|
|
114662
115805
|
placeholder: "Filter by Evaluator / Metric",
|
|
114663
115806
|
allowClear: true,
|
|
115807
|
+
maxTagCount: "responsive",
|
|
114664
115808
|
value: selectedMetricFilter ?? undefined,
|
|
114665
115809
|
onChange: (v)=>{
|
|
114666
115810
|
const next = v ?? null;
|
|
@@ -114673,6 +115817,45 @@ const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefres
|
|
|
114673
115817
|
width: 240
|
|
114674
115818
|
},
|
|
114675
115819
|
options: groupedMetricOptions
|
|
115820
|
+
}), /*#__PURE__*/ React__default.createElement(Select, {
|
|
115821
|
+
mode: "tags",
|
|
115822
|
+
placeholder: "Filter by Session ID…",
|
|
115823
|
+
allowClear: true,
|
|
115824
|
+
value: selectedSessions,
|
|
115825
|
+
maxTagCount: "responsive",
|
|
115826
|
+
onChange: (v)=>{
|
|
115827
|
+
setSelectedSessions(v);
|
|
115828
|
+
onSessionFilterChange?.(v);
|
|
115829
|
+
},
|
|
115830
|
+
style: {
|
|
115831
|
+
width: 280
|
|
115832
|
+
},
|
|
115833
|
+
tokenSeparators: [
|
|
115834
|
+
","
|
|
115835
|
+
],
|
|
115836
|
+
options: uniqueSessionIds.map((id)=>({
|
|
115837
|
+
label: id,
|
|
115838
|
+
value: id
|
|
115839
|
+
}))
|
|
115840
|
+
}), /*#__PURE__*/ React__default.createElement(Select, {
|
|
115841
|
+
mode: "multiple",
|
|
115842
|
+
showSearch: true,
|
|
115843
|
+
placeholder: "Filter by Evaluation Name…",
|
|
115844
|
+
allowClear: true,
|
|
115845
|
+
value: selectedNames,
|
|
115846
|
+
maxTagCount: "responsive",
|
|
115847
|
+
onChange: (v)=>{
|
|
115848
|
+
setSelectedNames(v);
|
|
115849
|
+
onNameFilterChange?.(v);
|
|
115850
|
+
},
|
|
115851
|
+
style: {
|
|
115852
|
+
width: 240
|
|
115853
|
+
},
|
|
115854
|
+
options: uniqueEvaluationNames.map((n)=>({
|
|
115855
|
+
label: n,
|
|
115856
|
+
value: n
|
|
115857
|
+
})),
|
|
115858
|
+
filterOption: (input, option)=>(option?.label ?? "").toLowerCase().includes(input.toLowerCase())
|
|
114676
115859
|
})), onRefresh && /*#__PURE__*/ React__default.createElement(Button$1, {
|
|
114677
115860
|
icon: /*#__PURE__*/ React__default.createElement(RefreshCw, {
|
|
114678
115861
|
size: 14
|