@railtownai/railtracks-visualizer 0.0.71 → 0.0.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +1124 -104
- package/dist/esm/index.js +1130 -110
- package/dist/types/agenthub/components/EvaluationsTable.d.ts +8 -0
- package/package.json +1 -1
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),
|
|
@@ -15161,14 +15160,14 @@ var createCache = function createCache(options) {
|
|
|
15161
15160
|
return cache;
|
|
15162
15161
|
};
|
|
15163
15162
|
|
|
15164
|
-
function _extends$
|
|
15165
|
-
return _extends$
|
|
15163
|
+
function _extends$v() {
|
|
15164
|
+
return _extends$v = Object.assign ? Object.assign.bind() : function(n) {
|
|
15166
15165
|
for(var e = 1; e < arguments.length; e++){
|
|
15167
15166
|
var t = arguments[e];
|
|
15168
15167
|
for(var r in t)({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
15169
15168
|
}
|
|
15170
15169
|
return n;
|
|
15171
|
-
}, _extends$
|
|
15170
|
+
}, _extends$v.apply(null, arguments);
|
|
15172
15171
|
}
|
|
15173
15172
|
|
|
15174
15173
|
var reactIs = {exports: {}};
|
|
@@ -15863,7 +15862,7 @@ var getTheme = function getTheme(outerTheme, theme) {
|
|
|
15863
15862
|
var mergedTheme = theme(outerTheme);
|
|
15864
15863
|
return mergedTheme;
|
|
15865
15864
|
}
|
|
15866
|
-
return _extends$
|
|
15865
|
+
return _extends$v({}, outerTheme, theme);
|
|
15867
15866
|
};
|
|
15868
15867
|
var createCacheWithTheme = /* #__PURE__ */ weakMemoize(function(outerTheme) {
|
|
15869
15868
|
return weakMemoize(function(theme) {
|
|
@@ -16639,7 +16638,7 @@ var createStyled = function createStyled(tag, options) {
|
|
|
16639
16638
|
}
|
|
16640
16639
|
});
|
|
16641
16640
|
Styled.withComponent = function(nextTag, nextOptions) {
|
|
16642
|
-
var newStyled = createStyled(nextTag, _extends$
|
|
16641
|
+
var newStyled = createStyled(nextTag, _extends$v({}, options, nextOptions, {
|
|
16643
16642
|
shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
|
|
16644
16643
|
}));
|
|
16645
16644
|
return newStyled.apply(void 0, styles);
|
|
@@ -21690,7 +21689,7 @@ const AppleIcon = ({ width = "1.5rem", height = "1.5rem" })=>/*#__PURE__*/ React
|
|
|
21690
21689
|
})));
|
|
21691
21690
|
|
|
21692
21691
|
function noop$1() {}
|
|
21693
|
-
const { resetWarned: rcResetWarned } = warning$
|
|
21692
|
+
const { resetWarned: rcResetWarned } = warning$3;
|
|
21694
21693
|
let deprecatedWarnList = null;
|
|
21695
21694
|
function resetWarned() {
|
|
21696
21695
|
deprecatedWarnList = null;
|
|
@@ -21699,14 +21698,14 @@ function resetWarned() {
|
|
|
21699
21698
|
let _warning = noop$1;
|
|
21700
21699
|
if (process.env.NODE_ENV !== 'production') {
|
|
21701
21700
|
_warning = (valid, component, message)=>{
|
|
21702
|
-
warning$
|
|
21701
|
+
warning$3(valid, `[antd: ${component}] ${message}`);
|
|
21703
21702
|
// StrictMode will inject console which will not throw warning in React 17.
|
|
21704
21703
|
if (process.env.NODE_ENV === 'test') {
|
|
21705
21704
|
resetWarned();
|
|
21706
21705
|
}
|
|
21707
21706
|
};
|
|
21708
21707
|
}
|
|
21709
|
-
const warning$
|
|
21708
|
+
const warning$2 = _warning;
|
|
21710
21709
|
const WarningContext = /*#__PURE__*/ React.createContext({});
|
|
21711
21710
|
/**
|
|
21712
21711
|
* This is a hook but we not named as `useWarning`
|
|
@@ -21730,7 +21729,7 @@ const WarningContext = /*#__PURE__*/ React.createContext({});
|
|
|
21730
21729
|
console.warn('[antd] There exists deprecated usage in your code:', deprecatedWarnList);
|
|
21731
21730
|
}
|
|
21732
21731
|
} else {
|
|
21733
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
21732
|
+
process.env.NODE_ENV !== "production" ? warning$2(valid, component, message) : void 0;
|
|
21734
21733
|
}
|
|
21735
21734
|
}
|
|
21736
21735
|
};
|
|
@@ -22143,7 +22142,7 @@ const getSolidColor = (baseColor, brightness)=>{
|
|
|
22143
22142
|
};
|
|
22144
22143
|
|
|
22145
22144
|
const generateColorPalettes = (baseColor)=>{
|
|
22146
|
-
const colors = generate(baseColor);
|
|
22145
|
+
const colors = generate$1(baseColor);
|
|
22147
22146
|
return {
|
|
22148
22147
|
1: colors[0],
|
|
22149
22148
|
2: colors[1],
|
|
@@ -22192,7 +22191,7 @@ function derivative(token) {
|
|
|
22192
22191
|
presetPrimaryColors.pink = presetPrimaryColors.magenta;
|
|
22193
22192
|
presetPalettes.pink = presetPalettes.magenta;
|
|
22194
22193
|
const colorPalettes = Object.keys(defaultPresetColors).map((colorKey)=>{
|
|
22195
|
-
const colors = token[colorKey] === presetPrimaryColors[colorKey] ? presetPalettes[colorKey] : generate(token[colorKey]);
|
|
22194
|
+
const colors = token[colorKey] === presetPrimaryColors[colorKey] ? presetPalettes[colorKey] : generate$1(token[colorKey]);
|
|
22196
22195
|
return Array.from({
|
|
22197
22196
|
length: 10
|
|
22198
22197
|
}, ()=>1).reduce((prev, _, i)=>{
|
|
@@ -22790,6 +22789,377 @@ const useResetIconStyle = (iconPrefixCls, csp)=>{
|
|
|
22790
22789
|
}, ()=>genIconStyle(iconPrefixCls));
|
|
22791
22790
|
};
|
|
22792
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
|
+
|
|
22793
23163
|
var commonLocale = {
|
|
22794
23164
|
yearFormat: 'YYYY',
|
|
22795
23165
|
dayFormat: 'D',
|
|
@@ -23248,7 +23618,7 @@ const computeClosable = (propCloseCollection, contextCloseCollection, fallbackCl
|
|
|
23248
23618
|
const propConfig = computeClosableConfig(propCloseCollection?.closable, propCloseCollection?.closeIcon);
|
|
23249
23619
|
const contextConfig = computeClosableConfig(contextCloseCollection?.closable, contextCloseCollection?.closeIcon);
|
|
23250
23620
|
const mergedFallback = {
|
|
23251
|
-
closeIcon: /*#__PURE__*/ React__default.createElement(
|
|
23621
|
+
closeIcon: /*#__PURE__*/ React__default.createElement(RefIcon$q, null),
|
|
23252
23622
|
...fallbackCloseCollection
|
|
23253
23623
|
};
|
|
23254
23624
|
const mergedConfig = mergeClosableConfigs(propConfig, contextConfig, mergedFallback);
|
|
@@ -23273,7 +23643,7 @@ const useClosable = (propCloseCollection, contextCloseCollection, fallbackCloseC
|
|
|
23273
23643
|
const [contextLocale] = useLocale('global', localeValues.global);
|
|
23274
23644
|
return React__default.useMemo(()=>{
|
|
23275
23645
|
return computeClosable(propCloseCollection, contextCloseCollection, {
|
|
23276
|
-
closeIcon: /*#__PURE__*/ React__default.createElement(
|
|
23646
|
+
closeIcon: /*#__PURE__*/ React__default.createElement(RefIcon$q, null),
|
|
23277
23647
|
...fallbackCloseCollection
|
|
23278
23648
|
}, contextLocale.close);
|
|
23279
23649
|
}, [
|
|
@@ -23749,10 +24119,10 @@ var useStyle$u = genStyleHooks('Alert', (token)=>[
|
|
|
23749
24119
|
const IconNode = (props)=>{
|
|
23750
24120
|
const { icon, type, className, style, successIcon, infoIcon, warningIcon, errorIcon } = props;
|
|
23751
24121
|
const iconMapFilled = {
|
|
23752
|
-
success: successIcon ?? /*#__PURE__*/ React.createElement(
|
|
23753
|
-
info: infoIcon ?? /*#__PURE__*/ React.createElement(
|
|
23754
|
-
error: errorIcon ?? /*#__PURE__*/ React.createElement(
|
|
23755
|
-
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)
|
|
23756
24126
|
};
|
|
23757
24127
|
return /*#__PURE__*/ React.createElement("span", {
|
|
23758
24128
|
className: className,
|
|
@@ -23761,7 +24131,7 @@ const IconNode = (props)=>{
|
|
|
23761
24131
|
};
|
|
23762
24132
|
const CloseIconNode = (props)=>{
|
|
23763
24133
|
const { isClosable, prefixCls, closeIcon, handleClose, ariaProps, className, style } = props;
|
|
23764
|
-
const mergedCloseIcon = closeIcon === true || closeIcon === undefined ? /*#__PURE__*/ React.createElement(
|
|
24134
|
+
const mergedCloseIcon = closeIcon === true || closeIcon === undefined ? /*#__PURE__*/ React.createElement(RefIcon$q, null) : closeIcon;
|
|
23765
24135
|
return isClosable ? /*#__PURE__*/ React.createElement("button", {
|
|
23766
24136
|
type: "button",
|
|
23767
24137
|
onClick: handleClose,
|
|
@@ -24385,7 +24755,7 @@ var PropWarning$1 = process.env.NODE_ENV !== 'production' ? PropWarning : ()=>nu
|
|
|
24385
24755
|
* theme register info here to help developer get warning info.
|
|
24386
24756
|
*/ let existThemeConfig = false;
|
|
24387
24757
|
const warnContext = process.env.NODE_ENV !== 'production' ? (componentName)=>{
|
|
24388
|
-
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;
|
|
24389
24759
|
} : /* istanbul ignore next */ null;
|
|
24390
24760
|
// These props is used by `useContext` directly in sub component
|
|
24391
24761
|
const PASSED_PROPS = [
|
|
@@ -24701,7 +25071,7 @@ ConfigProvider.config = setGlobalConfig;
|
|
|
24701
25071
|
ConfigProvider.useConfig = useConfig;
|
|
24702
25072
|
Object.defineProperty(ConfigProvider, 'SizeContext', {
|
|
24703
25073
|
get: ()=>{
|
|
24704
|
-
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;
|
|
24705
25075
|
return SizeContext;
|
|
24706
25076
|
}
|
|
24707
25077
|
});
|
|
@@ -24709,6 +25079,29 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
24709
25079
|
ConfigProvider.displayName = 'ConfigProvider';
|
|
24710
25080
|
}
|
|
24711
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
|
+
|
|
24712
25105
|
const genMessageStyle = (token)=>{
|
|
24713
25106
|
const { componentCls, iconCls, boxShadow, colorText, colorSuccess, colorError, colorWarning, colorInfo, fontSizeLG, motionEaseInOutCirc, motionDurationSlow, marginXS, paddingXS, borderRadiusLG, zIndexPopup, // Custom token
|
|
24714
25107
|
contentPadding, contentBg } = token;
|
|
@@ -24850,11 +25243,11 @@ var useStyle$t = genStyleHooks('Message', (token)=>{
|
|
|
24850
25243
|
}, prepareComponentToken$m);
|
|
24851
25244
|
|
|
24852
25245
|
const TypeIcon = {
|
|
24853
|
-
info: /*#__PURE__*/ React.createElement(
|
|
24854
|
-
success: /*#__PURE__*/ React.createElement(
|
|
24855
|
-
error: /*#__PURE__*/ React.createElement(
|
|
24856
|
-
warning: /*#__PURE__*/ React.createElement(
|
|
24857
|
-
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)
|
|
24858
25251
|
};
|
|
24859
25252
|
const PureContent = (props)=>{
|
|
24860
25253
|
const { prefixCls, type, icon, children, classNames: pureContentClassNames, styles } = props;
|
|
@@ -25685,7 +26078,7 @@ const InnerLoadingIcon = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
25685
26078
|
className: mergedIconCls,
|
|
25686
26079
|
style: style,
|
|
25687
26080
|
ref: ref
|
|
25688
|
-
}, /*#__PURE__*/ React__default.createElement(
|
|
26081
|
+
}, /*#__PURE__*/ React__default.createElement(RefIcon$n, {
|
|
25689
26082
|
className: iconClassName
|
|
25690
26083
|
}));
|
|
25691
26084
|
});
|
|
@@ -26499,6 +26892,29 @@ let AggregationColor = /*#__PURE__*/ function() {
|
|
|
26499
26892
|
]);
|
|
26500
26893
|
}();
|
|
26501
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
|
+
|
|
26502
26918
|
const CollapsePanel = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
26503
26919
|
if (process.env.NODE_ENV !== 'production') {
|
|
26504
26920
|
const warning = devUseWarning('Collapse.Panel');
|
|
@@ -26794,7 +27210,7 @@ const Collapse = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
|
26794
27210
|
});
|
|
26795
27211
|
}
|
|
26796
27212
|
const renderExpandIcon = React.useCallback((panelProps = {})=>{
|
|
26797
|
-
const icon = typeof mergedExpandIcon === 'function' ? mergedExpandIcon(panelProps) : /*#__PURE__*/ React.createElement(
|
|
27213
|
+
const icon = typeof mergedExpandIcon === 'function' ? mergedExpandIcon(panelProps) : /*#__PURE__*/ React.createElement(RefIcon$m, {
|
|
26798
27214
|
rotate: panelProps.isActive ? direction === 'rtl' ? -90 : 90 : undefined,
|
|
26799
27215
|
"aria-label": panelProps.isActive ? 'expanded' : 'collapsed'
|
|
26800
27216
|
});
|
|
@@ -30024,13 +30440,82 @@ var useSelectStyle = genStyleHooks('Select', (token, { rootPrefixCls })=>{
|
|
|
30024
30440
|
}
|
|
30025
30441
|
});
|
|
30026
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
|
+
|
|
30027
30512
|
function useIcons({ suffixIcon, clearIcon, menuItemSelectedIcon, removeIcon, loading, loadingIcon, multiple, hasFeedback, showSuffixIcon, feedbackIcon, showArrow, componentName }) {
|
|
30028
30513
|
if (process.env.NODE_ENV !== 'production') {
|
|
30029
30514
|
const warning = devUseWarning(componentName);
|
|
30030
30515
|
warning.deprecated(!clearIcon, 'clearIcon', 'allowClear={{ clearIcon: React.ReactNode }}');
|
|
30031
30516
|
}
|
|
30032
30517
|
// Clear Icon
|
|
30033
|
-
const mergedClearIcon = clearIcon ?? /*#__PURE__*/ React.createElement(
|
|
30518
|
+
const mergedClearIcon = clearIcon ?? /*#__PURE__*/ React.createElement(RefIcon$r, null);
|
|
30034
30519
|
// Validation Feedback Icon
|
|
30035
30520
|
const getSuffixIconNode = (arrowIcon)=>{
|
|
30036
30521
|
if (suffixIcon === null && !hasFeedback && !showArrow) {
|
|
@@ -30043,15 +30528,15 @@ function useIcons({ suffixIcon, clearIcon, menuItemSelectedIcon, removeIcon, loa
|
|
|
30043
30528
|
if (suffixIcon !== undefined) {
|
|
30044
30529
|
mergedSuffixIcon = getSuffixIconNode(suffixIcon);
|
|
30045
30530
|
} else if (loading) {
|
|
30046
|
-
mergedSuffixIcon = getSuffixIconNode(loadingIcon ?? /*#__PURE__*/ React.createElement(
|
|
30531
|
+
mergedSuffixIcon = getSuffixIconNode(loadingIcon ?? /*#__PURE__*/ React.createElement(RefIcon$n, {
|
|
30047
30532
|
spin: true
|
|
30048
30533
|
}));
|
|
30049
30534
|
} else {
|
|
30050
30535
|
mergedSuffixIcon = ({ open, showSearch })=>{
|
|
30051
30536
|
if (open && showSearch) {
|
|
30052
|
-
return getSuffixIconNode(/*#__PURE__*/ React.createElement(
|
|
30537
|
+
return getSuffixIconNode(/*#__PURE__*/ React.createElement(RefIcon$j, null));
|
|
30053
30538
|
}
|
|
30054
|
-
return getSuffixIconNode(/*#__PURE__*/ React.createElement(
|
|
30539
|
+
return getSuffixIconNode(/*#__PURE__*/ React.createElement(RefIcon$k, null));
|
|
30055
30540
|
};
|
|
30056
30541
|
}
|
|
30057
30542
|
// Checked item icon
|
|
@@ -30059,7 +30544,7 @@ function useIcons({ suffixIcon, clearIcon, menuItemSelectedIcon, removeIcon, loa
|
|
|
30059
30544
|
if (menuItemSelectedIcon !== undefined) {
|
|
30060
30545
|
mergedItemIcon = menuItemSelectedIcon;
|
|
30061
30546
|
} else if (multiple) {
|
|
30062
|
-
mergedItemIcon = /*#__PURE__*/ React.createElement(
|
|
30547
|
+
mergedItemIcon = /*#__PURE__*/ React.createElement(RefIcon$l, null);
|
|
30063
30548
|
} else {
|
|
30064
30549
|
mergedItemIcon = null;
|
|
30065
30550
|
}
|
|
@@ -30067,7 +30552,7 @@ function useIcons({ suffixIcon, clearIcon, menuItemSelectedIcon, removeIcon, loa
|
|
|
30067
30552
|
if (removeIcon !== undefined) {
|
|
30068
30553
|
mergedRemoveIcon = removeIcon;
|
|
30069
30554
|
} else {
|
|
30070
|
-
mergedRemoveIcon = /*#__PURE__*/ React.createElement(
|
|
30555
|
+
mergedRemoveIcon = /*#__PURE__*/ React.createElement(RefIcon$q, null);
|
|
30071
30556
|
}
|
|
30072
30557
|
return {
|
|
30073
30558
|
// TODO: remove as when all the deps bumped
|
|
@@ -31659,6 +32144,52 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
31659
32144
|
Popover.displayName = 'Popover';
|
|
31660
32145
|
}
|
|
31661
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
|
+
|
|
31662
32193
|
const LayoutContext = /*#__PURE__*/ React.createContext({
|
|
31663
32194
|
siderHook: {
|
|
31664
32195
|
addSider: ()=>null,
|
|
@@ -31954,11 +32485,11 @@ const Sider = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
|
31954
32485
|
onClick: toggle,
|
|
31955
32486
|
className: clsx(`${prefixCls}-zero-width-trigger`, `${prefixCls}-zero-width-trigger-${reverseArrow ? 'right' : 'left'}`),
|
|
31956
32487
|
style: zeroWidthTriggerStyle
|
|
31957
|
-
}, trigger || /*#__PURE__*/ React.createElement(
|
|
32488
|
+
}, trigger || /*#__PURE__*/ React.createElement(RefIcon$h, null)) : null;
|
|
31958
32489
|
const reverseIcon = direction === 'rtl' === !reverseArrow;
|
|
31959
32490
|
const iconObj = {
|
|
31960
|
-
expanded: reverseIcon ? /*#__PURE__*/ React.createElement(
|
|
31961
|
-
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)
|
|
31962
32493
|
};
|
|
31963
32494
|
const status = collapsed ? 'collapsed' : 'expanded';
|
|
31964
32495
|
const defaultTrigger = iconObj[status];
|
|
@@ -32004,6 +32535,29 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
32004
32535
|
Sider.displayName = 'Sider';
|
|
32005
32536
|
}
|
|
32006
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
|
+
|
|
32007
32561
|
const MenuContext = /*#__PURE__*/ createContext({
|
|
32008
32562
|
prefixCls: '',
|
|
32009
32563
|
firstLevel: true,
|
|
@@ -33335,7 +33889,7 @@ const InternalMenu = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
33335
33889
|
value: contextValue
|
|
33336
33890
|
}, /*#__PURE__*/ React.createElement(RcMenu, {
|
|
33337
33891
|
getPopupContainer: getPopupContainer,
|
|
33338
|
-
overflowedIndicator: /*#__PURE__*/ React.createElement(
|
|
33892
|
+
overflowedIndicator: /*#__PURE__*/ React.createElement(RefIcon$g, null),
|
|
33339
33893
|
overflowedIndicatorPopupClassName: clsx(prefixCls, `${prefixCls}-${theme}`, overflowedIndicatorPopupClassName),
|
|
33340
33894
|
classNames: {
|
|
33341
33895
|
list: mergedClassNames.list,
|
|
@@ -33832,9 +34386,9 @@ const Dropdown$1 = (props)=>{
|
|
|
33832
34386
|
rootClassName: clsx(cssVarCls, rootCls),
|
|
33833
34387
|
expandIcon: /*#__PURE__*/ React.createElement("span", {
|
|
33834
34388
|
className: `${prefixCls}-menu-submenu-arrow`
|
|
33835
|
-
}, direction === 'rtl' ? /*#__PURE__*/ React.createElement(
|
|
34389
|
+
}, direction === 'rtl' ? /*#__PURE__*/ React.createElement(RefIcon$i, {
|
|
33836
34390
|
className: `${prefixCls}-menu-submenu-arrow-icon`
|
|
33837
|
-
}) : /*#__PURE__*/ React.createElement(
|
|
34391
|
+
}) : /*#__PURE__*/ React.createElement(RefIcon$m, {
|
|
33838
34392
|
className: `${prefixCls}-menu-submenu-arrow-icon`
|
|
33839
34393
|
})),
|
|
33840
34394
|
mode: "vertical",
|
|
@@ -33912,8 +34466,8 @@ const RadioGroupContextProvider = RadioGroupContext.Provider;
|
|
|
33912
34466
|
const RadioOptionTypeContext = /*#__PURE__*/ React.createContext(undefined);
|
|
33913
34467
|
const RadioOptionTypeContextProvider = RadioOptionTypeContext.Provider;
|
|
33914
34468
|
|
|
33915
|
-
function _extends() {
|
|
33916
|
-
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
34469
|
+
function _extends$g() {
|
|
34470
|
+
_extends$g = Object.assign ? Object.assign.bind() : function(target) {
|
|
33917
34471
|
for(var i = 1; i < arguments.length; i++){
|
|
33918
34472
|
var source = arguments[i];
|
|
33919
34473
|
for(var key in source){
|
|
@@ -33924,7 +34478,7 @@ function _extends() {
|
|
|
33924
34478
|
}
|
|
33925
34479
|
return target;
|
|
33926
34480
|
};
|
|
33927
|
-
return _extends.apply(this, arguments);
|
|
34481
|
+
return _extends$g.apply(this, arguments);
|
|
33928
34482
|
}
|
|
33929
34483
|
const Checkbox$2 = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
33930
34484
|
const { prefixCls = 'rc-checkbox', className, style, checked, disabled, defaultChecked = false, type = 'checkbox', title, onChange, ...inputProps } = props;
|
|
@@ -33972,7 +34526,7 @@ const Checkbox$2 = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
33972
34526
|
title: title,
|
|
33973
34527
|
style: style,
|
|
33974
34528
|
ref: holderRef
|
|
33975
|
-
}, /*#__PURE__*/ React.createElement("input", _extends({}, inputProps, {
|
|
34529
|
+
}, /*#__PURE__*/ React.createElement("input", _extends$g({}, inputProps, {
|
|
33976
34530
|
className: `${prefixCls}-input`,
|
|
33977
34531
|
ref: inputRef,
|
|
33978
34532
|
onChange: handleChange,
|
|
@@ -35473,6 +36027,29 @@ var useStyle$g = genStyleHooks([
|
|
|
35473
36027
|
resetFont: false
|
|
35474
36028
|
});
|
|
35475
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
|
+
|
|
35476
36053
|
const motion = {
|
|
35477
36054
|
motionAppear: false,
|
|
35478
36055
|
motionEnter: true,
|
|
@@ -36424,8 +37001,8 @@ const InternalTabs = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
|
36424
37001
|
onEdit: (editType, { key, event })=>{
|
|
36425
37002
|
onEdit?.(editType === 'add' ? event : key, editType);
|
|
36426
37003
|
},
|
|
36427
|
-
removeIcon: removeIcon ?? tabs?.removeIcon ?? /*#__PURE__*/ React.createElement(
|
|
36428
|
-
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),
|
|
36429
37006
|
showAdd: hideAdd !== true
|
|
36430
37007
|
};
|
|
36431
37008
|
}
|
|
@@ -36520,7 +37097,7 @@ const InternalTabs = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
|
36520
37097
|
},
|
|
36521
37098
|
editable: editable,
|
|
36522
37099
|
more: {
|
|
36523
|
-
icon: tabs?.more?.icon ?? tabs?.moreIcon ?? moreIcon ?? /*#__PURE__*/ React.createElement(
|
|
37100
|
+
icon: tabs?.more?.icon ?? tabs?.moreIcon ?? moreIcon ?? /*#__PURE__*/ React.createElement(RefIcon$g, null),
|
|
36524
37101
|
transitionName: `${rootPrefixCls}-slide-up`,
|
|
36525
37102
|
...more
|
|
36526
37103
|
},
|
|
@@ -38193,7 +38770,7 @@ const getAllowClear = (allowClear)=>{
|
|
|
38193
38770
|
mergedAllowClear = allowClear;
|
|
38194
38771
|
} else if (allowClear) {
|
|
38195
38772
|
mergedAllowClear = {
|
|
38196
|
-
clearIcon: /*#__PURE__*/ React__default.createElement(
|
|
38773
|
+
clearIcon: /*#__PURE__*/ React__default.createElement(RefIcon$r, null)
|
|
38197
38774
|
};
|
|
38198
38775
|
}
|
|
38199
38776
|
return mergedAllowClear;
|
|
@@ -39245,7 +39822,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
39245
39822
|
|
|
39246
39823
|
/** @deprecated Please use Space.Compact + Dropdown + Button instead */ const DropdownButton = (props)=>{
|
|
39247
39824
|
const { getPopupContainer: getContextPopupContainer, getPrefixCls, direction } = React.useContext(ConfigContext);
|
|
39248
|
-
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;
|
|
39249
39826
|
const prefixCls = getPrefixCls('dropdown', customizePrefixCls);
|
|
39250
39827
|
const buttonPrefixCls = `${prefixCls}-button`;
|
|
39251
39828
|
const mergedPopupRender = popupRender || dropdownRender;
|
|
@@ -39536,6 +40113,52 @@ const TextArea = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
39536
40113
|
});
|
|
39537
40114
|
});
|
|
39538
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
|
+
|
|
39539
40162
|
const genPaginationDisabledStyle = (token)=>{
|
|
39540
40163
|
const { componentCls } = token;
|
|
39541
40164
|
return {
|
|
@@ -40236,28 +40859,28 @@ const Pagination = (props)=>{
|
|
|
40236
40859
|
className: `${prefixCls}-item-link`,
|
|
40237
40860
|
type: "button",
|
|
40238
40861
|
tabIndex: -1
|
|
40239
|
-
}, direction === 'rtl' ? /*#__PURE__*/ React.createElement(
|
|
40862
|
+
}, direction === 'rtl' ? /*#__PURE__*/ React.createElement(RefIcon$m, null) : /*#__PURE__*/ React.createElement(RefIcon$i, null));
|
|
40240
40863
|
const nextIcon = /*#__PURE__*/ React.createElement("button", {
|
|
40241
40864
|
className: `${prefixCls}-item-link`,
|
|
40242
40865
|
type: "button",
|
|
40243
40866
|
tabIndex: -1
|
|
40244
|
-
}, direction === 'rtl' ? /*#__PURE__*/ React.createElement(
|
|
40867
|
+
}, direction === 'rtl' ? /*#__PURE__*/ React.createElement(RefIcon$i, null) : /*#__PURE__*/ React.createElement(RefIcon$m, null));
|
|
40245
40868
|
const jumpPrevIcon = /*#__PURE__*/ React.createElement("a", {
|
|
40246
40869
|
className: `${prefixCls}-item-link`
|
|
40247
40870
|
}, /*#__PURE__*/ React.createElement("div", {
|
|
40248
40871
|
className: `${prefixCls}-item-container`
|
|
40249
|
-
}, direction === 'rtl' ? /*#__PURE__*/ React.createElement(
|
|
40872
|
+
}, direction === 'rtl' ? /*#__PURE__*/ React.createElement(RefIcon$d, {
|
|
40250
40873
|
className: `${prefixCls}-item-link-icon`
|
|
40251
|
-
}) : /*#__PURE__*/ React.createElement(
|
|
40874
|
+
}) : /*#__PURE__*/ React.createElement(RefIcon$e, {
|
|
40252
40875
|
className: `${prefixCls}-item-link-icon`
|
|
40253
40876
|
}), ellipsis));
|
|
40254
40877
|
const jumpNextIcon = /*#__PURE__*/ React.createElement("a", {
|
|
40255
40878
|
className: `${prefixCls}-item-link`
|
|
40256
40879
|
}, /*#__PURE__*/ React.createElement("div", {
|
|
40257
40880
|
className: `${prefixCls}-item-container`
|
|
40258
|
-
}, direction === 'rtl' ? /*#__PURE__*/ React.createElement(
|
|
40881
|
+
}, direction === 'rtl' ? /*#__PURE__*/ React.createElement(RefIcon$e, {
|
|
40259
40882
|
className: `${prefixCls}-item-link-icon`
|
|
40260
|
-
}) : /*#__PURE__*/ React.createElement(
|
|
40883
|
+
}) : /*#__PURE__*/ React.createElement(RefIcon$d, {
|
|
40261
40884
|
className: `${prefixCls}-item-link-icon`
|
|
40262
40885
|
}), ellipsis));
|
|
40263
40886
|
return {
|
|
@@ -41843,7 +42466,7 @@ const InternalSwitch = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
|
41843
42466
|
const loadingIcon = /*#__PURE__*/ React.createElement("div", {
|
|
41844
42467
|
className: clsx(`${prefixCls}-handle`, mergedClassNames.indicator),
|
|
41845
42468
|
style: mergedStyles.indicator
|
|
41846
|
-
}, loading && /*#__PURE__*/ React.createElement(
|
|
42469
|
+
}, loading && /*#__PURE__*/ React.createElement(RefIcon$n, {
|
|
41847
42470
|
className: `${prefixCls}-loading-icon`
|
|
41848
42471
|
}));
|
|
41849
42472
|
const classes = clsx(contextClassName, {
|
|
@@ -42218,7 +42841,7 @@ const useSelection = (config, rowSelection)=>{
|
|
|
42218
42841
|
}, /*#__PURE__*/ React.createElement(Dropdown, {
|
|
42219
42842
|
menu: menu,
|
|
42220
42843
|
getPopupContainer: getPopupContainer
|
|
42221
|
-
}, /*#__PURE__*/ React.createElement("span", null, /*#__PURE__*/ React.createElement(
|
|
42844
|
+
}, /*#__PURE__*/ React.createElement("span", null, /*#__PURE__*/ React.createElement(RefIcon$k, null))));
|
|
42222
42845
|
}
|
|
42223
42846
|
const allDisabledData = flattedData.map((record, index)=>{
|
|
42224
42847
|
const key = getRowKey(record, index);
|
|
@@ -42503,6 +43126,121 @@ const renderColumnTitle = (title, props)=>{
|
|
|
42503
43126
|
return res;
|
|
42504
43127
|
};
|
|
42505
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
|
+
|
|
42506
43244
|
// ============================ Directory =============================
|
|
42507
43245
|
const genDirectoryStyle = ({ treeCls, treeNodeCls, directoryNodeSelectedBg, directoryNodeSelectedColor, motionDurationMid, borderRadius, controlItemBgHover })=>({
|
|
42508
43246
|
[`${treeCls}${treeCls}-directory ${treeNodeCls}`]: {
|
|
@@ -42960,6 +43698,75 @@ const dropIndicatorRender = (props)=>{
|
|
|
42960
43698
|
});
|
|
42961
43699
|
};
|
|
42962
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
|
+
|
|
42963
43770
|
const SwitcherIconCom = (props)=>{
|
|
42964
43771
|
const { prefixCls, switcherIcon, treeNodeProps, showLine, switcherLoadingIcon } = props;
|
|
42965
43772
|
const { isLeaf, expanded, loading } = treeNodeProps;
|
|
@@ -42967,7 +43774,7 @@ const SwitcherIconCom = (props)=>{
|
|
|
42967
43774
|
if (/*#__PURE__*/ React.isValidElement(switcherLoadingIcon)) {
|
|
42968
43775
|
return switcherLoadingIcon;
|
|
42969
43776
|
}
|
|
42970
|
-
return /*#__PURE__*/ React.createElement(
|
|
43777
|
+
return /*#__PURE__*/ React.createElement(RefIcon$n, {
|
|
42971
43778
|
className: `${prefixCls}-switcher-loading-icon`
|
|
42972
43779
|
});
|
|
42973
43780
|
}
|
|
@@ -42989,7 +43796,7 @@ const SwitcherIconCom = (props)=>{
|
|
|
42989
43796
|
}
|
|
42990
43797
|
return leafIcon;
|
|
42991
43798
|
}
|
|
42992
|
-
return showLeafIcon ? /*#__PURE__*/ React.createElement(
|
|
43799
|
+
return showLeafIcon ? /*#__PURE__*/ React.createElement(RefIcon$b, {
|
|
42993
43800
|
className: `${prefixCls}-switcher-line-icon`
|
|
42994
43801
|
}) : /*#__PURE__*/ React.createElement("span", {
|
|
42995
43802
|
className: `${prefixCls}-switcher-leaf-line`
|
|
@@ -43006,13 +43813,13 @@ const SwitcherIconCom = (props)=>{
|
|
|
43006
43813
|
return switcher;
|
|
43007
43814
|
}
|
|
43008
43815
|
if (showLine) {
|
|
43009
|
-
return expanded ? /*#__PURE__*/ React.createElement(
|
|
43816
|
+
return expanded ? /*#__PURE__*/ React.createElement(RefIcon$6, {
|
|
43010
43817
|
className: `${prefixCls}-switcher-line-icon`
|
|
43011
|
-
}) : /*#__PURE__*/ React.createElement(
|
|
43818
|
+
}) : /*#__PURE__*/ React.createElement(RefIcon$5, {
|
|
43012
43819
|
className: `${prefixCls}-switcher-line-icon`
|
|
43013
43820
|
});
|
|
43014
43821
|
}
|
|
43015
|
-
return /*#__PURE__*/ React.createElement(
|
|
43822
|
+
return /*#__PURE__*/ React.createElement(RefIcon$7, {
|
|
43016
43823
|
className: switcherCls
|
|
43017
43824
|
});
|
|
43018
43825
|
};
|
|
@@ -43073,7 +43880,7 @@ const Tree$1 = /*#__PURE__*/ React__default.forwardRef((props, ref)=>{
|
|
|
43073
43880
|
break;
|
|
43074
43881
|
}
|
|
43075
43882
|
if (mergedDraggable.icon !== false) {
|
|
43076
|
-
mergedDraggable.icon = mergedDraggable.icon || /*#__PURE__*/ React__default.createElement(
|
|
43883
|
+
mergedDraggable.icon = mergedDraggable.icon || /*#__PURE__*/ React__default.createElement(RefIcon$8, null);
|
|
43077
43884
|
}
|
|
43078
43885
|
return mergedDraggable;
|
|
43079
43886
|
}, [
|
|
@@ -43187,9 +43994,9 @@ function convertDirectoryKeysToNodes(treeData, keys, fieldNames) {
|
|
|
43187
43994
|
function getIcon(props) {
|
|
43188
43995
|
const { isLeaf, expanded } = props;
|
|
43189
43996
|
if (isLeaf) {
|
|
43190
|
-
return /*#__PURE__*/ React.createElement(
|
|
43997
|
+
return /*#__PURE__*/ React.createElement(RefIcon$b, null);
|
|
43191
43998
|
}
|
|
43192
|
-
return expanded ? /*#__PURE__*/ React.createElement(
|
|
43999
|
+
return expanded ? /*#__PURE__*/ React.createElement(RefIcon$a, null) : /*#__PURE__*/ React.createElement(RefIcon$9, null);
|
|
43193
44000
|
}
|
|
43194
44001
|
function getTreeData({ treeData, children }) {
|
|
43195
44002
|
return treeData || convertTreeToData(children);
|
|
@@ -43320,7 +44127,7 @@ const FilterSearch = (props)=>{
|
|
|
43320
44127
|
return /*#__PURE__*/ React.createElement("div", {
|
|
43321
44128
|
className: `${tablePrefixCls}-filter-dropdown-search`
|
|
43322
44129
|
}, /*#__PURE__*/ React.createElement(Input, {
|
|
43323
|
-
prefix: /*#__PURE__*/ React.createElement(
|
|
44130
|
+
prefix: /*#__PURE__*/ React.createElement(RefIcon$j, null),
|
|
43324
44131
|
placeholder: locale.filterSearchPlaceholder,
|
|
43325
44132
|
onChange: onChange,
|
|
43326
44133
|
value: value,
|
|
@@ -43716,7 +44523,7 @@ const FilterDropdown = (props)=>{
|
|
|
43716
44523
|
} else if (column.filterIcon) {
|
|
43717
44524
|
filterIcon = column.filterIcon;
|
|
43718
44525
|
} else {
|
|
43719
|
-
filterIcon = /*#__PURE__*/ React.createElement(
|
|
44526
|
+
filterIcon = /*#__PURE__*/ React.createElement(RefIcon$c, null);
|
|
43720
44527
|
}
|
|
43721
44528
|
return /*#__PURE__*/ React.createElement("span", {
|
|
43722
44529
|
role: "button",
|
|
@@ -44047,6 +44854,52 @@ function usePagination(total, onChange, pagination) {
|
|
|
44047
44854
|
];
|
|
44048
44855
|
}
|
|
44049
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
|
+
|
|
44050
44903
|
const ASCEND = 'ascend';
|
|
44051
44904
|
const DESCEND = 'descend';
|
|
44052
44905
|
const getMultiplePriority = (column)=>{
|
|
@@ -44122,12 +44975,12 @@ const injectSorter = (prefixCls, columns, sorterStates, triggerSorter, defaultSo
|
|
|
44122
44975
|
sortOrder
|
|
44123
44976
|
});
|
|
44124
44977
|
} else {
|
|
44125
|
-
const upNode = sortDirections.includes(ASCEND) && /*#__PURE__*/ React.createElement(
|
|
44978
|
+
const upNode = sortDirections.includes(ASCEND) && /*#__PURE__*/ React.createElement(RefIcon$3, {
|
|
44126
44979
|
className: clsx(`${prefixCls}-column-sorter-up`, {
|
|
44127
44980
|
active: sortOrder === ASCEND
|
|
44128
44981
|
})
|
|
44129
44982
|
});
|
|
44130
|
-
const downNode = sortDirections.includes(DESCEND) && /*#__PURE__*/ React.createElement(
|
|
44983
|
+
const downNode = sortDirections.includes(DESCEND) && /*#__PURE__*/ React.createElement(RefIcon$4, {
|
|
44131
44984
|
className: clsx(`${prefixCls}-column-sorter-down`, {
|
|
44132
44985
|
active: sortOrder === DESCEND
|
|
44133
44986
|
})
|
|
@@ -46610,6 +47463,52 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
46610
47463
|
Tag.CheckableTag = CheckableTag;
|
|
46611
47464
|
Tag.CheckableTagGroup = CheckableTagGroup;
|
|
46612
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
|
+
|
|
46613
47512
|
const getTitleStyle = (fontSize, lineHeight, color, token)=>{
|
|
46614
47513
|
const { titleMarginBottom, fontWeightStrong } = token;
|
|
46615
47514
|
return {
|
|
@@ -46894,7 +47793,7 @@ const prepareComponentToken = ()=>({
|
|
|
46894
47793
|
var useStyle = genStyleHooks('Typography', genTypographyStyle, prepareComponentToken);
|
|
46895
47794
|
|
|
46896
47795
|
const Editable = (props)=>{
|
|
46897
|
-
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;
|
|
46898
47797
|
const ref = React.useRef(null);
|
|
46899
47798
|
const inCompositionRef = React.useRef(false);
|
|
46900
47799
|
const lastKeyCodeRef = React.useRef(null);
|
|
@@ -47025,7 +47924,7 @@ const asyncCopy = async (text, isHtmlFormat)=>{
|
|
|
47025
47924
|
};
|
|
47026
47925
|
async function copy(text, config) {
|
|
47027
47926
|
if (typeof text !== 'string') {
|
|
47028
|
-
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;
|
|
47029
47928
|
return false;
|
|
47030
47929
|
}
|
|
47031
47930
|
const isHtmlFormat = config?.format === 'text/html';
|
|
@@ -47156,6 +48055,29 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
47156
48055
|
Typography$1.displayName = 'Typography';
|
|
47157
48056
|
}
|
|
47158
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
|
+
|
|
47159
48081
|
const toCopyConfigList = (val)=>{
|
|
47160
48082
|
if (val === false) {
|
|
47161
48083
|
return [
|
|
@@ -47217,7 +48139,7 @@ const CopyBtn = (props)=>{
|
|
|
47217
48139
|
onClick: onCopy,
|
|
47218
48140
|
"aria-label": ariaLabel,
|
|
47219
48141
|
tabIndex: tabIndex
|
|
47220
|
-
}, 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)));
|
|
47221
48143
|
};
|
|
47222
48144
|
|
|
47223
48145
|
const MeasureText = /*#__PURE__*/ React.forwardRef(({ style, children }, ref)=>{
|
|
@@ -47715,7 +48637,7 @@ const Base = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
|
47715
48637
|
onClick: onEditClick,
|
|
47716
48638
|
"aria-label": ariaLabel,
|
|
47717
48639
|
tabIndex: tabIndex
|
|
47718
|
-
}, icon || /*#__PURE__*/ React.createElement(
|
|
48640
|
+
}, icon || /*#__PURE__*/ React.createElement(RefIcon$2, {
|
|
47719
48641
|
role: "button"
|
|
47720
48642
|
}))) : null;
|
|
47721
48643
|
};
|
|
@@ -51867,6 +52789,13 @@ function RemoveScrollSideCar(props) {
|
|
|
51867
52789
|
if ('touches' in event && moveDirection === 'h' && target.type === 'range') {
|
|
51868
52790
|
return false;
|
|
51869
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
|
+
}
|
|
51870
52799
|
var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
|
|
51871
52800
|
if (!canBeScrolledInMainDirection) {
|
|
51872
52801
|
return true;
|
|
@@ -114501,7 +115430,7 @@ const EvaluationsErrorCard = ({ error, onRetry })=>/*#__PURE__*/ React__default.
|
|
|
114501
115430
|
}
|
|
114502
115431
|
}, /*#__PURE__*/ React__default.createElement(Alert, {
|
|
114503
115432
|
type: "error",
|
|
114504
|
-
|
|
115433
|
+
message: "Error loading evaluations",
|
|
114505
115434
|
description: /*#__PURE__*/ React__default.createElement("div", {
|
|
114506
115435
|
style: {
|
|
114507
115436
|
display: "flex",
|
|
@@ -114537,7 +115466,7 @@ const EvaluationsErrorCard = ({ error, onRetry })=>/*#__PURE__*/ React__default.
|
|
|
114537
115466
|
showIcon: true
|
|
114538
115467
|
}));
|
|
114539
115468
|
|
|
114540
|
-
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 })=>{
|
|
114541
115470
|
const { theme } = useTheme$1();
|
|
114542
115471
|
const [selectedAgents, setSelectedAgents] = useState([]);
|
|
114543
115472
|
const [selectedRowKeys, setSelectedRowKeys] = useState([]);
|
|
@@ -114549,6 +115478,8 @@ const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefres
|
|
|
114549
115478
|
const [pageSize, setPageSize] = useState(50);
|
|
114550
115479
|
const [selectedMetricFilter, setSelectedMetricFilter] = useState(null);
|
|
114551
115480
|
const [drawerEvaluations, setDrawerEvaluations] = useState([]);
|
|
115481
|
+
const [selectedSessions, setSelectedSessions] = useState(initialSessionIds ?? []);
|
|
115482
|
+
const [selectedNames, setSelectedNames] = useState(initialNameFilter ?? []);
|
|
114552
115483
|
const isServerPagination = !!serverPagination;
|
|
114553
115484
|
const normalized = useMemo(()=>evaluations.map((e)=>isEvaluationDto(e) ? transformEvaluation(e) : e), [
|
|
114554
115485
|
evaluations
|
|
@@ -114583,6 +115514,27 @@ const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefres
|
|
|
114583
115514
|
}, [
|
|
114584
115515
|
normalized
|
|
114585
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
|
+
]);
|
|
114586
115538
|
const filteredEvaluations = useMemo(()=>{
|
|
114587
115539
|
let result = normalized;
|
|
114588
115540
|
if (selectedAgents.length > 0) {
|
|
@@ -114592,11 +115544,38 @@ const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefres
|
|
|
114592
115544
|
const [evaluatorName, metricName] = selectedMetricFilter.split("::");
|
|
114593
115545
|
result = result.filter((evaluation)=>evaluation.evaluators.some((ev)=>ev.name === evaluatorName && evaluation.results[ev.evaluator_id]?.[metricName] !== undefined));
|
|
114594
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
|
+
}
|
|
114595
115572
|
return result;
|
|
114596
115573
|
}, [
|
|
114597
115574
|
normalized,
|
|
114598
115575
|
selectedAgents,
|
|
114599
|
-
selectedMetricFilter
|
|
115576
|
+
selectedMetricFilter,
|
|
115577
|
+
selectedNames,
|
|
115578
|
+
selectedSessions
|
|
114600
115579
|
]);
|
|
114601
115580
|
const tableDataSource = filteredEvaluations;
|
|
114602
115581
|
const compareDrawerEvaluations = useMemo(()=>{
|
|
@@ -114808,6 +115787,7 @@ const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefres
|
|
|
114808
115787
|
placeholder: "Filter by Agent",
|
|
114809
115788
|
allowClear: true,
|
|
114810
115789
|
value: selectedAgents,
|
|
115790
|
+
maxTagCount: "responsive",
|
|
114811
115791
|
onChange: (v)=>{
|
|
114812
115792
|
setSelectedAgents(v);
|
|
114813
115793
|
if (isServerPagination && onFiltersChange) {
|
|
@@ -114824,6 +115804,7 @@ const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefres
|
|
|
114824
115804
|
}), /*#__PURE__*/ React__default.createElement(Select, {
|
|
114825
115805
|
placeholder: "Filter by Evaluator / Metric",
|
|
114826
115806
|
allowClear: true,
|
|
115807
|
+
maxTagCount: "responsive",
|
|
114827
115808
|
value: selectedMetricFilter ?? undefined,
|
|
114828
115809
|
onChange: (v)=>{
|
|
114829
115810
|
const next = v ?? null;
|
|
@@ -114836,6 +115817,45 @@ const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefres
|
|
|
114836
115817
|
width: 240
|
|
114837
115818
|
},
|
|
114838
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())
|
|
114839
115859
|
})), onRefresh && /*#__PURE__*/ React__default.createElement(Button$1, {
|
|
114840
115860
|
icon: /*#__PURE__*/ React__default.createElement(RefreshCw, {
|
|
114841
115861
|
size: 14
|