@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/cjs/index.js
CHANGED
|
@@ -6,7 +6,6 @@ var ReactDOM = require('react-dom');
|
|
|
6
6
|
var CountUp = require('react-countup');
|
|
7
7
|
var render = require('@rc-component/util/es/React/render');
|
|
8
8
|
var cssinjs = require('@ant-design/cssinjs');
|
|
9
|
-
var IconContext = require('@ant-design/icons/es/components/Context');
|
|
10
9
|
var util = require('@rc-component/util');
|
|
11
10
|
var useMemo = require('@rc-component/util/es/hooks/useMemo');
|
|
12
11
|
var Pagination$1 = require('@rc-component/pagination/es/locale/en_US');
|
|
@@ -16,13 +15,12 @@ var Trigger$1 = require('@rc-component/trigger');
|
|
|
16
15
|
var CSSMotion = require('@rc-component/motion');
|
|
17
16
|
var isEqual = require('@rc-component/util/es/isEqual');
|
|
18
17
|
var cssinjsUtils = require('@ant-design/cssinjs-utils');
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
var
|
|
23
|
-
var
|
|
18
|
+
var CheckCircleFilledSvg = require('@ant-design/icons-svg/lib/asn/CheckCircleFilled');
|
|
19
|
+
var CloseCircleFilledSvg = require('@ant-design/icons-svg/lib/asn/CloseCircleFilled');
|
|
20
|
+
var ExclamationCircleFilledSvg = require('@ant-design/icons-svg/lib/asn/ExclamationCircleFilled');
|
|
21
|
+
var InfoCircleFilledSvg = require('@ant-design/icons-svg/lib/asn/InfoCircleFilled');
|
|
22
|
+
var LoadingOutlinedSvg = require('@ant-design/icons-svg/lib/asn/LoadingOutlined');
|
|
24
23
|
var notification = require('@rc-component/notification');
|
|
25
|
-
var CloseOutlined = require('@ant-design/icons/es/icons/CloseOutlined');
|
|
26
24
|
var pickAttrs = require('@rc-component/util/es/pickAttrs');
|
|
27
25
|
var RcTooltip = require('@rc-component/tooltip');
|
|
28
26
|
require('@rc-component/form');
|
|
@@ -31,53 +29,54 @@ var useLayoutEffect = require('@rc-component/util/es/hooks/useLayoutEffect');
|
|
|
31
29
|
var isVisible = require('@rc-component/util/es/Dom/isVisible');
|
|
32
30
|
var ref = require('@rc-component/util/es/ref');
|
|
33
31
|
var raf = require('@rc-component/util/es/raf');
|
|
34
|
-
var
|
|
32
|
+
var RightOutlinedSvg = require('@ant-design/icons-svg/lib/asn/RightOutlined');
|
|
35
33
|
var RcCollapse = require('@rc-component/collapse');
|
|
36
34
|
var RcTree = require('@rc-component/tree');
|
|
37
|
-
var
|
|
38
|
-
var
|
|
39
|
-
var
|
|
35
|
+
var FileOutlinedSvg = require('@ant-design/icons-svg/lib/asn/FileOutlined');
|
|
36
|
+
var FolderOpenOutlinedSvg = require('@ant-design/icons-svg/lib/asn/FolderOpenOutlined');
|
|
37
|
+
var FolderOutlinedSvg = require('@ant-design/icons-svg/lib/asn/FolderOutlined');
|
|
40
38
|
var util$1 = require('@rc-component/tree/es/util');
|
|
41
39
|
var treeUtil = require('@rc-component/tree/es/utils/treeUtil');
|
|
42
|
-
var
|
|
43
|
-
var
|
|
44
|
-
var
|
|
45
|
-
var
|
|
46
|
-
var
|
|
40
|
+
var HolderOutlinedSvg = require('@ant-design/icons-svg/lib/asn/HolderOutlined');
|
|
41
|
+
var CaretDownFilledSvg = require('@ant-design/icons-svg/lib/asn/CaretDownFilled');
|
|
42
|
+
var MinusSquareOutlinedSvg = require('@ant-design/icons-svg/lib/asn/MinusSquareOutlined');
|
|
43
|
+
var PlusSquareOutlinedSvg = require('@ant-design/icons-svg/lib/asn/PlusSquareOutlined');
|
|
44
|
+
var EditOutlinedSvg = require('@ant-design/icons-svg/lib/asn/EditOutlined');
|
|
47
45
|
var ResizeObserver$1 = require('@rc-component/resize-observer');
|
|
48
46
|
require('@rc-component/util/es/Dom/canUseDom');
|
|
49
47
|
var styleChecker = require('@rc-component/util/es/Dom/styleChecker');
|
|
50
|
-
var
|
|
48
|
+
var EnterOutlinedSvg = require('@ant-design/icons-svg/lib/asn/EnterOutlined');
|
|
51
49
|
var KeyCode = require('@rc-component/util/es/KeyCode');
|
|
52
50
|
var RcTextArea = require('@rc-component/textarea');
|
|
53
51
|
var RcInput = require('@rc-component/input');
|
|
54
52
|
var focus$1 = require('@rc-component/util/es/Dom/focus');
|
|
55
|
-
var
|
|
56
|
-
var
|
|
53
|
+
var CheckOutlinedSvg = require('@ant-design/icons-svg/lib/asn/CheckOutlined');
|
|
54
|
+
var CopyOutlinedSvg = require('@ant-design/icons-svg/lib/asn/CopyOutlined');
|
|
55
|
+
var CloseOutlinedSvg = require('@ant-design/icons-svg/lib/asn/CloseOutlined');
|
|
57
56
|
var RcDrawer = require('@rc-component/drawer');
|
|
58
57
|
var useId$1 = require('@rc-component/util/es/hooks/useId');
|
|
59
|
-
var
|
|
60
|
-
var
|
|
58
|
+
var EllipsisOutlinedSvg = require('@ant-design/icons-svg/lib/asn/EllipsisOutlined');
|
|
59
|
+
var PlusOutlinedSvg = require('@ant-design/icons-svg/lib/asn/PlusOutlined');
|
|
61
60
|
var RcTabs = require('@rc-component/tabs');
|
|
62
61
|
var RcSwitch = require('@rc-component/switch');
|
|
63
62
|
var RcSelect = require('@rc-component/select');
|
|
64
|
-
var
|
|
65
|
-
var
|
|
63
|
+
var DownOutlinedSvg = require('@ant-design/icons-svg/lib/asn/DownOutlined');
|
|
64
|
+
var SearchOutlinedSvg = require('@ant-design/icons-svg/lib/asn/SearchOutlined');
|
|
66
65
|
var table = require('@rc-component/table');
|
|
67
66
|
var conductUtil = require('@rc-component/tree/es/utils/conductUtil');
|
|
68
67
|
var useControlledState = require('@rc-component/util/es/hooks/useControlledState');
|
|
69
|
-
var
|
|
68
|
+
var LeftOutlinedSvg = require('@ant-design/icons-svg/lib/asn/LeftOutlined');
|
|
70
69
|
var RcDropdown = require('@rc-component/dropdown');
|
|
71
70
|
var RcMenu = require('@rc-component/menu');
|
|
72
|
-
var
|
|
71
|
+
var BarsOutlinedSvg = require('@ant-design/icons-svg/lib/asn/BarsOutlined');
|
|
73
72
|
require('@rc-component/util/es/Dom/findDOMNode');
|
|
74
73
|
var useColumns = require('@rc-component/table/es/hooks/useColumns');
|
|
75
|
-
var
|
|
76
|
-
var
|
|
74
|
+
var DoubleLeftOutlinedSvg = require('@ant-design/icons-svg/lib/asn/DoubleLeftOutlined');
|
|
75
|
+
var DoubleRightOutlinedSvg = require('@ant-design/icons-svg/lib/asn/DoubleRightOutlined');
|
|
77
76
|
var RcPagination = require('@rc-component/pagination');
|
|
78
|
-
var
|
|
79
|
-
var
|
|
80
|
-
var
|
|
77
|
+
var FilterFilledSvg = require('@ant-design/icons-svg/lib/asn/FilterFilled');
|
|
78
|
+
var CaretDownOutlinedSvg = require('@ant-design/icons-svg/lib/asn/CaretDownOutlined');
|
|
79
|
+
var CaretUpOutlinedSvg = require('@ant-design/icons-svg/lib/asn/CaretUpOutlined');
|
|
81
80
|
|
|
82
81
|
function _interopNamespaceDefault(e) {
|
|
83
82
|
var n = Object.create(null);
|
|
@@ -117,7 +116,7 @@ function cc(names) {
|
|
|
117
116
|
}
|
|
118
117
|
|
|
119
118
|
var noop$2 = {
|
|
120
|
-
value: ()
|
|
119
|
+
value: function() {}
|
|
121
120
|
};
|
|
122
121
|
function dispatch() {
|
|
123
122
|
for(var i = 0, n = arguments.length, _ = {}, t; i < n; ++i){
|
|
@@ -12905,7 +12904,7 @@ const toPascalCase = (string)=>{
|
|
|
12905
12904
|
const LucideContext = React.createContext({});
|
|
12906
12905
|
const useLucideContext = ()=>React.useContext(LucideContext);
|
|
12907
12906
|
|
|
12908
|
-
const Icon = React.forwardRef(({ color, size, strokeWidth, absoluteStrokeWidth, className = "", children, iconNode, ...rest }, ref)=>{
|
|
12907
|
+
const Icon$1 = React.forwardRef(({ color, size, strokeWidth, absoluteStrokeWidth, className = "", children, iconNode, ...rest }, ref)=>{
|
|
12909
12908
|
const { size: contextSize = 24, strokeWidth: contextStrokeWidth = 2, absoluteStrokeWidth: contextAbsoluteStrokeWidth = false, color: contextColor = "currentColor", className: contextClass = "" } = useLucideContext() ?? {};
|
|
12910
12909
|
const calculatedStrokeWidth = absoluteStrokeWidth ?? contextAbsoluteStrokeWidth ? Number(strokeWidth ?? contextStrokeWidth) * 24 / Number(size ?? contextSize) : strokeWidth ?? contextStrokeWidth;
|
|
12911
12910
|
return React.createElement("svg", {
|
|
@@ -12929,7 +12928,7 @@ const Icon = React.forwardRef(({ color, size, strokeWidth, absoluteStrokeWidth,
|
|
|
12929
12928
|
});
|
|
12930
12929
|
|
|
12931
12930
|
const createLucideIcon = (iconName, iconNode)=>{
|
|
12932
|
-
const Component = React.forwardRef(({ className, ...props }, ref)=>React.createElement(Icon, {
|
|
12931
|
+
const Component = React.forwardRef(({ className, ...props }, ref)=>React.createElement(Icon$1, {
|
|
12933
12932
|
ref,
|
|
12934
12933
|
iconNode,
|
|
12935
12934
|
className: mergeClasses(`lucide-${toKebabCase(toPascalCase(iconName))}`, `lucide-${iconName}`, className),
|
|
@@ -15181,14 +15180,14 @@ var createCache = function createCache(options) {
|
|
|
15181
15180
|
return cache;
|
|
15182
15181
|
};
|
|
15183
15182
|
|
|
15184
|
-
function _extends$
|
|
15185
|
-
return _extends$
|
|
15183
|
+
function _extends$v() {
|
|
15184
|
+
return _extends$v = Object.assign ? Object.assign.bind() : function(n) {
|
|
15186
15185
|
for(var e = 1; e < arguments.length; e++){
|
|
15187
15186
|
var t = arguments[e];
|
|
15188
15187
|
for(var r in t)({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
15189
15188
|
}
|
|
15190
15189
|
return n;
|
|
15191
|
-
}, _extends$
|
|
15190
|
+
}, _extends$v.apply(null, arguments);
|
|
15192
15191
|
}
|
|
15193
15192
|
|
|
15194
15193
|
var reactIs = {exports: {}};
|
|
@@ -15883,7 +15882,7 @@ var getTheme = function getTheme(outerTheme, theme) {
|
|
|
15883
15882
|
var mergedTheme = theme(outerTheme);
|
|
15884
15883
|
return mergedTheme;
|
|
15885
15884
|
}
|
|
15886
|
-
return _extends$
|
|
15885
|
+
return _extends$v({}, outerTheme, theme);
|
|
15887
15886
|
};
|
|
15888
15887
|
var createCacheWithTheme = /* #__PURE__ */ weakMemoize(function(outerTheme) {
|
|
15889
15888
|
return weakMemoize(function(theme) {
|
|
@@ -16659,7 +16658,7 @@ var createStyled = function createStyled(tag, options) {
|
|
|
16659
16658
|
}
|
|
16660
16659
|
});
|
|
16661
16660
|
Styled.withComponent = function(nextTag, nextOptions) {
|
|
16662
|
-
var newStyled = createStyled(nextTag, _extends$
|
|
16661
|
+
var newStyled = createStyled(nextTag, _extends$v({}, options, nextOptions, {
|
|
16663
16662
|
shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
|
|
16664
16663
|
}));
|
|
16665
16664
|
return newStyled.apply(void 0, styles);
|
|
@@ -21726,7 +21725,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
21726
21725
|
}
|
|
21727
21726
|
};
|
|
21728
21727
|
}
|
|
21729
|
-
const warning$
|
|
21728
|
+
const warning$2 = _warning;
|
|
21730
21729
|
const WarningContext = /*#__PURE__*/ React__namespace.createContext({});
|
|
21731
21730
|
/**
|
|
21732
21731
|
* This is a hook but we not named as `useWarning`
|
|
@@ -21750,7 +21749,7 @@ const WarningContext = /*#__PURE__*/ React__namespace.createContext({});
|
|
|
21750
21749
|
console.warn('[antd] There exists deprecated usage in your code:', deprecatedWarnList);
|
|
21751
21750
|
}
|
|
21752
21751
|
} else {
|
|
21753
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
21752
|
+
process.env.NODE_ENV !== "production" ? warning$2(valid, component, message) : void 0;
|
|
21754
21753
|
}
|
|
21755
21754
|
}
|
|
21756
21755
|
};
|
|
@@ -22810,6 +22809,377 @@ const useResetIconStyle = (iconPrefixCls, csp)=>{
|
|
|
22810
22809
|
}, ()=>genIconStyle(iconPrefixCls));
|
|
22811
22810
|
};
|
|
22812
22811
|
|
|
22812
|
+
const IconContext = /*#__PURE__*/ React.createContext({});
|
|
22813
|
+
|
|
22814
|
+
function camelCase(input) {
|
|
22815
|
+
return input.replace(/-(.)/g, (match, g)=>g.toUpperCase());
|
|
22816
|
+
}
|
|
22817
|
+
function warning$1(valid, message) {
|
|
22818
|
+
util.warning(valid, `[@ant-design/icons] ${message}`);
|
|
22819
|
+
}
|
|
22820
|
+
function isIconDefinition(target) {
|
|
22821
|
+
return typeof target === 'object' && typeof target.name === 'string' && typeof target.theme === 'string' && (typeof target.icon === 'object' || typeof target.icon === 'function');
|
|
22822
|
+
}
|
|
22823
|
+
function normalizeAttrs(attrs = {}) {
|
|
22824
|
+
return Object.keys(attrs).reduce((acc, key)=>{
|
|
22825
|
+
const val = attrs[key];
|
|
22826
|
+
switch(key){
|
|
22827
|
+
case 'class':
|
|
22828
|
+
acc.className = val;
|
|
22829
|
+
delete acc.class;
|
|
22830
|
+
break;
|
|
22831
|
+
default:
|
|
22832
|
+
delete acc[key];
|
|
22833
|
+
acc[camelCase(key)] = val;
|
|
22834
|
+
}
|
|
22835
|
+
return acc;
|
|
22836
|
+
}, {});
|
|
22837
|
+
}
|
|
22838
|
+
function generate(node, key, rootProps) {
|
|
22839
|
+
if (!rootProps) {
|
|
22840
|
+
return /*#__PURE__*/ React.createElement(node.tag, {
|
|
22841
|
+
key,
|
|
22842
|
+
...normalizeAttrs(node.attrs)
|
|
22843
|
+
}, (node.children || []).map((child, index)=>generate(child, `${key}-${node.tag}-${index}`)));
|
|
22844
|
+
}
|
|
22845
|
+
return /*#__PURE__*/ React.createElement(node.tag, {
|
|
22846
|
+
key,
|
|
22847
|
+
...normalizeAttrs(node.attrs),
|
|
22848
|
+
...rootProps
|
|
22849
|
+
}, (node.children || []).map((child, index)=>generate(child, `${key}-${node.tag}-${index}`)));
|
|
22850
|
+
}
|
|
22851
|
+
function getSecondaryColor(primaryColor) {
|
|
22852
|
+
// choose the second color
|
|
22853
|
+
return colors.generate(primaryColor)[0];
|
|
22854
|
+
}
|
|
22855
|
+
function normalizeTwoToneColors(twoToneColor) {
|
|
22856
|
+
if (!twoToneColor) {
|
|
22857
|
+
return [];
|
|
22858
|
+
}
|
|
22859
|
+
return Array.isArray(twoToneColor) ? twoToneColor : [
|
|
22860
|
+
twoToneColor
|
|
22861
|
+
];
|
|
22862
|
+
}
|
|
22863
|
+
const iconStyles = `
|
|
22864
|
+
.anticon {
|
|
22865
|
+
display: inline-flex;
|
|
22866
|
+
align-items: center;
|
|
22867
|
+
color: inherit;
|
|
22868
|
+
font-style: normal;
|
|
22869
|
+
line-height: 0;
|
|
22870
|
+
text-align: center;
|
|
22871
|
+
text-transform: none;
|
|
22872
|
+
vertical-align: -0.125em;
|
|
22873
|
+
text-rendering: optimizeLegibility;
|
|
22874
|
+
-webkit-font-smoothing: antialiased;
|
|
22875
|
+
-moz-osx-font-smoothing: grayscale;
|
|
22876
|
+
}
|
|
22877
|
+
|
|
22878
|
+
.anticon > * {
|
|
22879
|
+
line-height: 1;
|
|
22880
|
+
}
|
|
22881
|
+
|
|
22882
|
+
.anticon svg {
|
|
22883
|
+
display: inline-block;
|
|
22884
|
+
vertical-align: inherit;
|
|
22885
|
+
}
|
|
22886
|
+
|
|
22887
|
+
.anticon::before {
|
|
22888
|
+
display: none;
|
|
22889
|
+
}
|
|
22890
|
+
|
|
22891
|
+
.anticon .anticon-icon {
|
|
22892
|
+
display: block;
|
|
22893
|
+
}
|
|
22894
|
+
|
|
22895
|
+
.anticon[tabindex] {
|
|
22896
|
+
cursor: pointer;
|
|
22897
|
+
}
|
|
22898
|
+
|
|
22899
|
+
.anticon-spin {
|
|
22900
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
22901
|
+
animation: loadingCircle 1s infinite linear;
|
|
22902
|
+
}
|
|
22903
|
+
|
|
22904
|
+
@-webkit-keyframes loadingCircle {
|
|
22905
|
+
100% {
|
|
22906
|
+
-webkit-transform: rotate(360deg);
|
|
22907
|
+
transform: rotate(360deg);
|
|
22908
|
+
}
|
|
22909
|
+
}
|
|
22910
|
+
|
|
22911
|
+
@keyframes loadingCircle {
|
|
22912
|
+
100% {
|
|
22913
|
+
-webkit-transform: rotate(360deg);
|
|
22914
|
+
transform: rotate(360deg);
|
|
22915
|
+
}
|
|
22916
|
+
}
|
|
22917
|
+
`;
|
|
22918
|
+
const useInsertStyles = (eleRef)=>{
|
|
22919
|
+
const { csp, prefixCls, layer } = React.useContext(IconContext);
|
|
22920
|
+
let mergedStyleStr = iconStyles;
|
|
22921
|
+
if (prefixCls) {
|
|
22922
|
+
mergedStyleStr = mergedStyleStr.replace(/anticon/g, prefixCls);
|
|
22923
|
+
}
|
|
22924
|
+
if (layer) {
|
|
22925
|
+
mergedStyleStr = `@layer ${layer} {\n${mergedStyleStr}\n}`;
|
|
22926
|
+
}
|
|
22927
|
+
React.useEffect(()=>{
|
|
22928
|
+
const ele = eleRef.current;
|
|
22929
|
+
const shadowRoot = util.getShadowRoot(ele);
|
|
22930
|
+
util.updateCSS(mergedStyleStr, '@ant-design-icons', {
|
|
22931
|
+
prepend: !layer,
|
|
22932
|
+
csp,
|
|
22933
|
+
attachTo: shadowRoot
|
|
22934
|
+
});
|
|
22935
|
+
}, []);
|
|
22936
|
+
};
|
|
22937
|
+
|
|
22938
|
+
const twoToneColorPalette = {
|
|
22939
|
+
primaryColor: '#333',
|
|
22940
|
+
secondaryColor: '#E6E6E6',
|
|
22941
|
+
calculated: false
|
|
22942
|
+
};
|
|
22943
|
+
function setTwoToneColors({ primaryColor, secondaryColor }) {
|
|
22944
|
+
twoToneColorPalette.primaryColor = primaryColor;
|
|
22945
|
+
twoToneColorPalette.secondaryColor = secondaryColor || getSecondaryColor(primaryColor);
|
|
22946
|
+
twoToneColorPalette.calculated = !!secondaryColor;
|
|
22947
|
+
}
|
|
22948
|
+
function getTwoToneColors() {
|
|
22949
|
+
return {
|
|
22950
|
+
...twoToneColorPalette
|
|
22951
|
+
};
|
|
22952
|
+
}
|
|
22953
|
+
const IconBase = (props)=>{
|
|
22954
|
+
const { icon, className, onClick, style, primaryColor, secondaryColor, ...restProps } = props;
|
|
22955
|
+
const svgRef = React__namespace.useRef(null);
|
|
22956
|
+
let colors = twoToneColorPalette;
|
|
22957
|
+
if (primaryColor) {
|
|
22958
|
+
colors = {
|
|
22959
|
+
primaryColor,
|
|
22960
|
+
secondaryColor: secondaryColor || getSecondaryColor(primaryColor)
|
|
22961
|
+
};
|
|
22962
|
+
}
|
|
22963
|
+
useInsertStyles(svgRef);
|
|
22964
|
+
warning$1(isIconDefinition(icon), `icon should be icon definiton, but got ${icon}`);
|
|
22965
|
+
if (!isIconDefinition(icon)) {
|
|
22966
|
+
return null;
|
|
22967
|
+
}
|
|
22968
|
+
let target = icon;
|
|
22969
|
+
if (target && typeof target.icon === 'function') {
|
|
22970
|
+
target = {
|
|
22971
|
+
...target,
|
|
22972
|
+
icon: target.icon(colors.primaryColor, colors.secondaryColor)
|
|
22973
|
+
};
|
|
22974
|
+
}
|
|
22975
|
+
return generate(target.icon, `svg-${target.name}`, {
|
|
22976
|
+
className,
|
|
22977
|
+
onClick,
|
|
22978
|
+
style,
|
|
22979
|
+
'data-icon': target.name,
|
|
22980
|
+
width: '1em',
|
|
22981
|
+
height: '1em',
|
|
22982
|
+
fill: 'currentColor',
|
|
22983
|
+
'aria-hidden': 'true',
|
|
22984
|
+
...restProps,
|
|
22985
|
+
ref: svgRef
|
|
22986
|
+
});
|
|
22987
|
+
};
|
|
22988
|
+
IconBase.displayName = 'IconReact';
|
|
22989
|
+
IconBase.getTwoToneColors = getTwoToneColors;
|
|
22990
|
+
IconBase.setTwoToneColors = setTwoToneColors;
|
|
22991
|
+
|
|
22992
|
+
function setTwoToneColor(twoToneColor) {
|
|
22993
|
+
const [primaryColor, secondaryColor] = normalizeTwoToneColors(twoToneColor);
|
|
22994
|
+
return IconBase.setTwoToneColors({
|
|
22995
|
+
primaryColor,
|
|
22996
|
+
secondaryColor
|
|
22997
|
+
});
|
|
22998
|
+
}
|
|
22999
|
+
function getTwoToneColor() {
|
|
23000
|
+
const colors = IconBase.getTwoToneColors();
|
|
23001
|
+
if (!colors.calculated) {
|
|
23002
|
+
return colors.primaryColor;
|
|
23003
|
+
}
|
|
23004
|
+
return [
|
|
23005
|
+
colors.primaryColor,
|
|
23006
|
+
colors.secondaryColor
|
|
23007
|
+
];
|
|
23008
|
+
}
|
|
23009
|
+
|
|
23010
|
+
function _extends$u() {
|
|
23011
|
+
_extends$u = Object.assign ? Object.assign.bind() : function(target) {
|
|
23012
|
+
for(var i = 1; i < arguments.length; i++){
|
|
23013
|
+
var source = arguments[i];
|
|
23014
|
+
for(var key in source){
|
|
23015
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
23016
|
+
target[key] = source[key];
|
|
23017
|
+
}
|
|
23018
|
+
}
|
|
23019
|
+
}
|
|
23020
|
+
return target;
|
|
23021
|
+
};
|
|
23022
|
+
return _extends$u.apply(this, arguments);
|
|
23023
|
+
}
|
|
23024
|
+
// Initial setting
|
|
23025
|
+
// should move it to antd main repo?
|
|
23026
|
+
setTwoToneColor(colors.blue.primary);
|
|
23027
|
+
// https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34757#issuecomment-488848720
|
|
23028
|
+
const Icon = /*#__PURE__*/ React__namespace.forwardRef((props, ref)=>{
|
|
23029
|
+
const { // affect outter <i>...</i>
|
|
23030
|
+
className, // affect inner <svg>...</svg>
|
|
23031
|
+
icon, spin, rotate, tabIndex, onClick, // other
|
|
23032
|
+
twoToneColor, ...restProps } = props;
|
|
23033
|
+
const { prefixCls = 'anticon', rootClassName } = React__namespace.useContext(IconContext);
|
|
23034
|
+
const classString = clsx(rootClassName, prefixCls, {
|
|
23035
|
+
[`${prefixCls}-${icon.name}`]: !!icon.name,
|
|
23036
|
+
[`${prefixCls}-spin`]: !!spin || icon.name === 'loading'
|
|
23037
|
+
}, className);
|
|
23038
|
+
let iconTabIndex = tabIndex;
|
|
23039
|
+
if (iconTabIndex === undefined && onClick) {
|
|
23040
|
+
iconTabIndex = -1;
|
|
23041
|
+
}
|
|
23042
|
+
const svgStyle = rotate ? {
|
|
23043
|
+
msTransform: `rotate(${rotate}deg)`,
|
|
23044
|
+
transform: `rotate(${rotate}deg)`
|
|
23045
|
+
} : undefined;
|
|
23046
|
+
const [primaryColor, secondaryColor] = normalizeTwoToneColors(twoToneColor);
|
|
23047
|
+
return /*#__PURE__*/ React__namespace.createElement("span", _extends$u({
|
|
23048
|
+
role: "img",
|
|
23049
|
+
"aria-label": icon.name
|
|
23050
|
+
}, restProps, {
|
|
23051
|
+
ref: ref,
|
|
23052
|
+
tabIndex: iconTabIndex,
|
|
23053
|
+
onClick: onClick,
|
|
23054
|
+
className: classString
|
|
23055
|
+
}), /*#__PURE__*/ React__namespace.createElement(IconBase, {
|
|
23056
|
+
icon: icon,
|
|
23057
|
+
primaryColor: primaryColor,
|
|
23058
|
+
secondaryColor: secondaryColor,
|
|
23059
|
+
style: svgStyle
|
|
23060
|
+
}));
|
|
23061
|
+
});
|
|
23062
|
+
Icon.getTwoToneColor = getTwoToneColor;
|
|
23063
|
+
Icon.setTwoToneColor = setTwoToneColor;
|
|
23064
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
23065
|
+
Icon.displayName = 'AntdIcon';
|
|
23066
|
+
}
|
|
23067
|
+
|
|
23068
|
+
function _extends$t() {
|
|
23069
|
+
_extends$t = Object.assign ? Object.assign.bind() : function(target) {
|
|
23070
|
+
for(var i = 1; i < arguments.length; i++){
|
|
23071
|
+
var source = arguments[i];
|
|
23072
|
+
for(var key in source){
|
|
23073
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
23074
|
+
target[key] = source[key];
|
|
23075
|
+
}
|
|
23076
|
+
}
|
|
23077
|
+
}
|
|
23078
|
+
return target;
|
|
23079
|
+
};
|
|
23080
|
+
return _extends$t.apply(this, arguments);
|
|
23081
|
+
}
|
|
23082
|
+
const CheckCircleFilled = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$t({}, props, {
|
|
23083
|
+
ref: ref,
|
|
23084
|
+
icon: CheckCircleFilledSvg
|
|
23085
|
+
}));
|
|
23086
|
+
/** */ const RefIcon$s = /*#__PURE__*/ React__namespace.forwardRef(CheckCircleFilled);
|
|
23087
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
23088
|
+
RefIcon$s.displayName = 'CheckCircleFilled';
|
|
23089
|
+
}
|
|
23090
|
+
|
|
23091
|
+
function _extends$s() {
|
|
23092
|
+
_extends$s = Object.assign ? Object.assign.bind() : function(target) {
|
|
23093
|
+
for(var i = 1; i < arguments.length; i++){
|
|
23094
|
+
var source = arguments[i];
|
|
23095
|
+
for(var key in source){
|
|
23096
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
23097
|
+
target[key] = source[key];
|
|
23098
|
+
}
|
|
23099
|
+
}
|
|
23100
|
+
}
|
|
23101
|
+
return target;
|
|
23102
|
+
};
|
|
23103
|
+
return _extends$s.apply(this, arguments);
|
|
23104
|
+
}
|
|
23105
|
+
const CloseCircleFilled = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$s({}, props, {
|
|
23106
|
+
ref: ref,
|
|
23107
|
+
icon: CloseCircleFilledSvg
|
|
23108
|
+
}));
|
|
23109
|
+
/** */ const RefIcon$r = /*#__PURE__*/ React__namespace.forwardRef(CloseCircleFilled);
|
|
23110
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
23111
|
+
RefIcon$r.displayName = 'CloseCircleFilled';
|
|
23112
|
+
}
|
|
23113
|
+
|
|
23114
|
+
function _extends$r() {
|
|
23115
|
+
_extends$r = Object.assign ? Object.assign.bind() : function(target) {
|
|
23116
|
+
for(var i = 1; i < arguments.length; i++){
|
|
23117
|
+
var source = arguments[i];
|
|
23118
|
+
for(var key in source){
|
|
23119
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
23120
|
+
target[key] = source[key];
|
|
23121
|
+
}
|
|
23122
|
+
}
|
|
23123
|
+
}
|
|
23124
|
+
return target;
|
|
23125
|
+
};
|
|
23126
|
+
return _extends$r.apply(this, arguments);
|
|
23127
|
+
}
|
|
23128
|
+
const CloseOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$r({}, props, {
|
|
23129
|
+
ref: ref,
|
|
23130
|
+
icon: CloseOutlinedSvg
|
|
23131
|
+
}));
|
|
23132
|
+
/** */ const RefIcon$q = /*#__PURE__*/ React__namespace.forwardRef(CloseOutlined);
|
|
23133
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
23134
|
+
RefIcon$q.displayName = 'CloseOutlined';
|
|
23135
|
+
}
|
|
23136
|
+
|
|
23137
|
+
function _extends$q() {
|
|
23138
|
+
_extends$q = Object.assign ? Object.assign.bind() : function(target) {
|
|
23139
|
+
for(var i = 1; i < arguments.length; i++){
|
|
23140
|
+
var source = arguments[i];
|
|
23141
|
+
for(var key in source){
|
|
23142
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
23143
|
+
target[key] = source[key];
|
|
23144
|
+
}
|
|
23145
|
+
}
|
|
23146
|
+
}
|
|
23147
|
+
return target;
|
|
23148
|
+
};
|
|
23149
|
+
return _extends$q.apply(this, arguments);
|
|
23150
|
+
}
|
|
23151
|
+
const ExclamationCircleFilled = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$q({}, props, {
|
|
23152
|
+
ref: ref,
|
|
23153
|
+
icon: ExclamationCircleFilledSvg
|
|
23154
|
+
}));
|
|
23155
|
+
/** */ const RefIcon$p = /*#__PURE__*/ React__namespace.forwardRef(ExclamationCircleFilled);
|
|
23156
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
23157
|
+
RefIcon$p.displayName = 'ExclamationCircleFilled';
|
|
23158
|
+
}
|
|
23159
|
+
|
|
23160
|
+
function _extends$p() {
|
|
23161
|
+
_extends$p = Object.assign ? Object.assign.bind() : function(target) {
|
|
23162
|
+
for(var i = 1; i < arguments.length; i++){
|
|
23163
|
+
var source = arguments[i];
|
|
23164
|
+
for(var key in source){
|
|
23165
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
23166
|
+
target[key] = source[key];
|
|
23167
|
+
}
|
|
23168
|
+
}
|
|
23169
|
+
}
|
|
23170
|
+
return target;
|
|
23171
|
+
};
|
|
23172
|
+
return _extends$p.apply(this, arguments);
|
|
23173
|
+
}
|
|
23174
|
+
const InfoCircleFilled = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$p({}, props, {
|
|
23175
|
+
ref: ref,
|
|
23176
|
+
icon: InfoCircleFilledSvg
|
|
23177
|
+
}));
|
|
23178
|
+
/** */ const RefIcon$o = /*#__PURE__*/ React__namespace.forwardRef(InfoCircleFilled);
|
|
23179
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
23180
|
+
RefIcon$o.displayName = 'InfoCircleFilled';
|
|
23181
|
+
}
|
|
23182
|
+
|
|
22813
23183
|
var commonLocale = {
|
|
22814
23184
|
yearFormat: 'YYYY',
|
|
22815
23185
|
dayFormat: 'D',
|
|
@@ -23268,7 +23638,7 @@ const computeClosable = (propCloseCollection, contextCloseCollection, fallbackCl
|
|
|
23268
23638
|
const propConfig = computeClosableConfig(propCloseCollection?.closable, propCloseCollection?.closeIcon);
|
|
23269
23639
|
const contextConfig = computeClosableConfig(contextCloseCollection?.closable, contextCloseCollection?.closeIcon);
|
|
23270
23640
|
const mergedFallback = {
|
|
23271
|
-
closeIcon: /*#__PURE__*/ React.createElement(
|
|
23641
|
+
closeIcon: /*#__PURE__*/ React.createElement(RefIcon$q, null),
|
|
23272
23642
|
...fallbackCloseCollection
|
|
23273
23643
|
};
|
|
23274
23644
|
const mergedConfig = mergeClosableConfigs(propConfig, contextConfig, mergedFallback);
|
|
@@ -23293,7 +23663,7 @@ const useClosable = (propCloseCollection, contextCloseCollection, fallbackCloseC
|
|
|
23293
23663
|
const [contextLocale] = useLocale('global', localeValues.global);
|
|
23294
23664
|
return React.useMemo(()=>{
|
|
23295
23665
|
return computeClosable(propCloseCollection, contextCloseCollection, {
|
|
23296
|
-
closeIcon: /*#__PURE__*/ React.createElement(
|
|
23666
|
+
closeIcon: /*#__PURE__*/ React.createElement(RefIcon$q, null),
|
|
23297
23667
|
...fallbackCloseCollection
|
|
23298
23668
|
}, contextLocale.close);
|
|
23299
23669
|
}, [
|
|
@@ -23769,10 +24139,10 @@ var useStyle$u = genStyleHooks('Alert', (token)=>[
|
|
|
23769
24139
|
const IconNode = (props)=>{
|
|
23770
24140
|
const { icon, type, className, style, successIcon, infoIcon, warningIcon, errorIcon } = props;
|
|
23771
24141
|
const iconMapFilled = {
|
|
23772
|
-
success: successIcon ?? /*#__PURE__*/ React__namespace.createElement(
|
|
23773
|
-
info: infoIcon ?? /*#__PURE__*/ React__namespace.createElement(
|
|
23774
|
-
error: errorIcon ?? /*#__PURE__*/ React__namespace.createElement(
|
|
23775
|
-
warning: warningIcon ?? /*#__PURE__*/ React__namespace.createElement(
|
|
24142
|
+
success: successIcon ?? /*#__PURE__*/ React__namespace.createElement(RefIcon$s, null),
|
|
24143
|
+
info: infoIcon ?? /*#__PURE__*/ React__namespace.createElement(RefIcon$o, null),
|
|
24144
|
+
error: errorIcon ?? /*#__PURE__*/ React__namespace.createElement(RefIcon$r, null),
|
|
24145
|
+
warning: warningIcon ?? /*#__PURE__*/ React__namespace.createElement(RefIcon$p, null)
|
|
23776
24146
|
};
|
|
23777
24147
|
return /*#__PURE__*/ React__namespace.createElement("span", {
|
|
23778
24148
|
className: className,
|
|
@@ -23781,7 +24151,7 @@ const IconNode = (props)=>{
|
|
|
23781
24151
|
};
|
|
23782
24152
|
const CloseIconNode = (props)=>{
|
|
23783
24153
|
const { isClosable, prefixCls, closeIcon, handleClose, ariaProps, className, style } = props;
|
|
23784
|
-
const mergedCloseIcon = closeIcon === true || closeIcon === undefined ? /*#__PURE__*/ React__namespace.createElement(
|
|
24154
|
+
const mergedCloseIcon = closeIcon === true || closeIcon === undefined ? /*#__PURE__*/ React__namespace.createElement(RefIcon$q, null) : closeIcon;
|
|
23785
24155
|
return isClosable ? /*#__PURE__*/ React__namespace.createElement("button", {
|
|
23786
24156
|
type: "button",
|
|
23787
24157
|
onClick: handleClose,
|
|
@@ -24405,7 +24775,7 @@ var PropWarning = process.env.NODE_ENV !== 'production' ? PropWarning$1 : ()=>nu
|
|
|
24405
24775
|
* theme register info here to help developer get warning info.
|
|
24406
24776
|
*/ let existThemeConfig = false;
|
|
24407
24777
|
const warnContext = process.env.NODE_ENV !== 'production' ? (componentName)=>{
|
|
24408
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
24778
|
+
process.env.NODE_ENV !== "production" ? warning$2(!existThemeConfig, componentName, `Static function can not consume context like dynamic theme. Please use 'App' component instead.`) : void 0;
|
|
24409
24779
|
} : /* istanbul ignore next */ null;
|
|
24410
24780
|
// These props is used by `useContext` directly in sub component
|
|
24411
24781
|
const PASSED_PROPS = [
|
|
@@ -24721,7 +25091,7 @@ ConfigProvider.config = setGlobalConfig;
|
|
|
24721
25091
|
ConfigProvider.useConfig = useConfig;
|
|
24722
25092
|
Object.defineProperty(ConfigProvider, 'SizeContext', {
|
|
24723
25093
|
get: ()=>{
|
|
24724
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
25094
|
+
process.env.NODE_ENV !== "production" ? warning$2(false, 'ConfigProvider', 'ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead.') : void 0;
|
|
24725
25095
|
return SizeContext;
|
|
24726
25096
|
}
|
|
24727
25097
|
});
|
|
@@ -24729,6 +25099,29 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
24729
25099
|
ConfigProvider.displayName = 'ConfigProvider';
|
|
24730
25100
|
}
|
|
24731
25101
|
|
|
25102
|
+
function _extends$o() {
|
|
25103
|
+
_extends$o = Object.assign ? Object.assign.bind() : function(target) {
|
|
25104
|
+
for(var i = 1; i < arguments.length; i++){
|
|
25105
|
+
var source = arguments[i];
|
|
25106
|
+
for(var key in source){
|
|
25107
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
25108
|
+
target[key] = source[key];
|
|
25109
|
+
}
|
|
25110
|
+
}
|
|
25111
|
+
}
|
|
25112
|
+
return target;
|
|
25113
|
+
};
|
|
25114
|
+
return _extends$o.apply(this, arguments);
|
|
25115
|
+
}
|
|
25116
|
+
const LoadingOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$o({}, props, {
|
|
25117
|
+
ref: ref,
|
|
25118
|
+
icon: LoadingOutlinedSvg
|
|
25119
|
+
}));
|
|
25120
|
+
/** */ const RefIcon$n = /*#__PURE__*/ React__namespace.forwardRef(LoadingOutlined);
|
|
25121
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
25122
|
+
RefIcon$n.displayName = 'LoadingOutlined';
|
|
25123
|
+
}
|
|
25124
|
+
|
|
24732
25125
|
const genMessageStyle = (token)=>{
|
|
24733
25126
|
const { componentCls, iconCls, boxShadow, colorText, colorSuccess, colorError, colorWarning, colorInfo, fontSizeLG, motionEaseInOutCirc, motionDurationSlow, marginXS, paddingXS, borderRadiusLG, zIndexPopup, // Custom token
|
|
24734
25127
|
contentPadding, contentBg } = token;
|
|
@@ -24870,11 +25263,11 @@ var useStyle$t = genStyleHooks('Message', (token)=>{
|
|
|
24870
25263
|
}, prepareComponentToken$m);
|
|
24871
25264
|
|
|
24872
25265
|
const TypeIcon = {
|
|
24873
|
-
info: /*#__PURE__*/ React__namespace.createElement(
|
|
24874
|
-
success: /*#__PURE__*/ React__namespace.createElement(
|
|
24875
|
-
error: /*#__PURE__*/ React__namespace.createElement(
|
|
24876
|
-
warning: /*#__PURE__*/ React__namespace.createElement(
|
|
24877
|
-
loading: /*#__PURE__*/ React__namespace.createElement(
|
|
25266
|
+
info: /*#__PURE__*/ React__namespace.createElement(RefIcon$o, null),
|
|
25267
|
+
success: /*#__PURE__*/ React__namespace.createElement(RefIcon$s, null),
|
|
25268
|
+
error: /*#__PURE__*/ React__namespace.createElement(RefIcon$r, null),
|
|
25269
|
+
warning: /*#__PURE__*/ React__namespace.createElement(RefIcon$p, null),
|
|
25270
|
+
loading: /*#__PURE__*/ React__namespace.createElement(RefIcon$n, null)
|
|
24878
25271
|
};
|
|
24879
25272
|
const PureContent = (props)=>{
|
|
24880
25273
|
const { prefixCls, type, icon, children, classNames: pureContentClassNames, styles } = props;
|
|
@@ -25705,7 +26098,7 @@ const InnerLoadingIcon = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
|
25705
26098
|
className: mergedIconCls,
|
|
25706
26099
|
style: style,
|
|
25707
26100
|
ref: ref
|
|
25708
|
-
}, /*#__PURE__*/ React.createElement(
|
|
26101
|
+
}, /*#__PURE__*/ React.createElement(RefIcon$n, {
|
|
25709
26102
|
className: iconClassName
|
|
25710
26103
|
}));
|
|
25711
26104
|
});
|
|
@@ -26519,6 +26912,29 @@ let AggregationColor = /*#__PURE__*/ function() {
|
|
|
26519
26912
|
]);
|
|
26520
26913
|
}();
|
|
26521
26914
|
|
|
26915
|
+
function _extends$n() {
|
|
26916
|
+
_extends$n = Object.assign ? Object.assign.bind() : function(target) {
|
|
26917
|
+
for(var i = 1; i < arguments.length; i++){
|
|
26918
|
+
var source = arguments[i];
|
|
26919
|
+
for(var key in source){
|
|
26920
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
26921
|
+
target[key] = source[key];
|
|
26922
|
+
}
|
|
26923
|
+
}
|
|
26924
|
+
}
|
|
26925
|
+
return target;
|
|
26926
|
+
};
|
|
26927
|
+
return _extends$n.apply(this, arguments);
|
|
26928
|
+
}
|
|
26929
|
+
const RightOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$n({}, props, {
|
|
26930
|
+
ref: ref,
|
|
26931
|
+
icon: RightOutlinedSvg
|
|
26932
|
+
}));
|
|
26933
|
+
/** */ const RefIcon$m = /*#__PURE__*/ React__namespace.forwardRef(RightOutlined);
|
|
26934
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
26935
|
+
RefIcon$m.displayName = 'RightOutlined';
|
|
26936
|
+
}
|
|
26937
|
+
|
|
26522
26938
|
const CollapsePanel = /*#__PURE__*/ React__namespace.forwardRef((props, ref)=>{
|
|
26523
26939
|
if (process.env.NODE_ENV !== 'production') {
|
|
26524
26940
|
const warning = devUseWarning('Collapse.Panel');
|
|
@@ -26814,7 +27230,7 @@ const Collapse$1 = /*#__PURE__*/ React__namespace.forwardRef((props, ref)=>{
|
|
|
26814
27230
|
});
|
|
26815
27231
|
}
|
|
26816
27232
|
const renderExpandIcon = React__namespace.useCallback((panelProps = {})=>{
|
|
26817
|
-
const icon = typeof mergedExpandIcon === 'function' ? mergedExpandIcon(panelProps) : /*#__PURE__*/ React__namespace.createElement(
|
|
27233
|
+
const icon = typeof mergedExpandIcon === 'function' ? mergedExpandIcon(panelProps) : /*#__PURE__*/ React__namespace.createElement(RefIcon$m, {
|
|
26818
27234
|
rotate: panelProps.isActive ? direction === 'rtl' ? -90 : 90 : undefined,
|
|
26819
27235
|
"aria-label": panelProps.isActive ? 'expanded' : 'collapsed'
|
|
26820
27236
|
});
|
|
@@ -30044,13 +30460,82 @@ var useSelectStyle = genStyleHooks('Select', (token, { rootPrefixCls })=>{
|
|
|
30044
30460
|
}
|
|
30045
30461
|
});
|
|
30046
30462
|
|
|
30463
|
+
function _extends$m() {
|
|
30464
|
+
_extends$m = Object.assign ? Object.assign.bind() : function(target) {
|
|
30465
|
+
for(var i = 1; i < arguments.length; i++){
|
|
30466
|
+
var source = arguments[i];
|
|
30467
|
+
for(var key in source){
|
|
30468
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
30469
|
+
target[key] = source[key];
|
|
30470
|
+
}
|
|
30471
|
+
}
|
|
30472
|
+
}
|
|
30473
|
+
return target;
|
|
30474
|
+
};
|
|
30475
|
+
return _extends$m.apply(this, arguments);
|
|
30476
|
+
}
|
|
30477
|
+
const CheckOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$m({}, props, {
|
|
30478
|
+
ref: ref,
|
|
30479
|
+
icon: CheckOutlinedSvg
|
|
30480
|
+
}));
|
|
30481
|
+
/** */ const RefIcon$l = /*#__PURE__*/ React__namespace.forwardRef(CheckOutlined);
|
|
30482
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
30483
|
+
RefIcon$l.displayName = 'CheckOutlined';
|
|
30484
|
+
}
|
|
30485
|
+
|
|
30486
|
+
function _extends$l() {
|
|
30487
|
+
_extends$l = Object.assign ? Object.assign.bind() : function(target) {
|
|
30488
|
+
for(var i = 1; i < arguments.length; i++){
|
|
30489
|
+
var source = arguments[i];
|
|
30490
|
+
for(var key in source){
|
|
30491
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
30492
|
+
target[key] = source[key];
|
|
30493
|
+
}
|
|
30494
|
+
}
|
|
30495
|
+
}
|
|
30496
|
+
return target;
|
|
30497
|
+
};
|
|
30498
|
+
return _extends$l.apply(this, arguments);
|
|
30499
|
+
}
|
|
30500
|
+
const DownOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$l({}, props, {
|
|
30501
|
+
ref: ref,
|
|
30502
|
+
icon: DownOutlinedSvg
|
|
30503
|
+
}));
|
|
30504
|
+
/** */ const RefIcon$k = /*#__PURE__*/ React__namespace.forwardRef(DownOutlined);
|
|
30505
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
30506
|
+
RefIcon$k.displayName = 'DownOutlined';
|
|
30507
|
+
}
|
|
30508
|
+
|
|
30509
|
+
function _extends$k() {
|
|
30510
|
+
_extends$k = Object.assign ? Object.assign.bind() : function(target) {
|
|
30511
|
+
for(var i = 1; i < arguments.length; i++){
|
|
30512
|
+
var source = arguments[i];
|
|
30513
|
+
for(var key in source){
|
|
30514
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
30515
|
+
target[key] = source[key];
|
|
30516
|
+
}
|
|
30517
|
+
}
|
|
30518
|
+
}
|
|
30519
|
+
return target;
|
|
30520
|
+
};
|
|
30521
|
+
return _extends$k.apply(this, arguments);
|
|
30522
|
+
}
|
|
30523
|
+
const SearchOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$k({}, props, {
|
|
30524
|
+
ref: ref,
|
|
30525
|
+
icon: SearchOutlinedSvg
|
|
30526
|
+
}));
|
|
30527
|
+
/** */ const RefIcon$j = /*#__PURE__*/ React__namespace.forwardRef(SearchOutlined);
|
|
30528
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
30529
|
+
RefIcon$j.displayName = 'SearchOutlined';
|
|
30530
|
+
}
|
|
30531
|
+
|
|
30047
30532
|
function useIcons({ suffixIcon, clearIcon, menuItemSelectedIcon, removeIcon, loading, loadingIcon, multiple, hasFeedback, showSuffixIcon, feedbackIcon, showArrow, componentName }) {
|
|
30048
30533
|
if (process.env.NODE_ENV !== 'production') {
|
|
30049
30534
|
const warning = devUseWarning(componentName);
|
|
30050
30535
|
warning.deprecated(!clearIcon, 'clearIcon', 'allowClear={{ clearIcon: React.ReactNode }}');
|
|
30051
30536
|
}
|
|
30052
30537
|
// Clear Icon
|
|
30053
|
-
const mergedClearIcon = clearIcon ?? /*#__PURE__*/ React__namespace.createElement(
|
|
30538
|
+
const mergedClearIcon = clearIcon ?? /*#__PURE__*/ React__namespace.createElement(RefIcon$r, null);
|
|
30054
30539
|
// Validation Feedback Icon
|
|
30055
30540
|
const getSuffixIconNode = (arrowIcon)=>{
|
|
30056
30541
|
if (suffixIcon === null && !hasFeedback && !showArrow) {
|
|
@@ -30063,15 +30548,15 @@ function useIcons({ suffixIcon, clearIcon, menuItemSelectedIcon, removeIcon, loa
|
|
|
30063
30548
|
if (suffixIcon !== undefined) {
|
|
30064
30549
|
mergedSuffixIcon = getSuffixIconNode(suffixIcon);
|
|
30065
30550
|
} else if (loading) {
|
|
30066
|
-
mergedSuffixIcon = getSuffixIconNode(loadingIcon ?? /*#__PURE__*/ React__namespace.createElement(
|
|
30551
|
+
mergedSuffixIcon = getSuffixIconNode(loadingIcon ?? /*#__PURE__*/ React__namespace.createElement(RefIcon$n, {
|
|
30067
30552
|
spin: true
|
|
30068
30553
|
}));
|
|
30069
30554
|
} else {
|
|
30070
30555
|
mergedSuffixIcon = ({ open, showSearch })=>{
|
|
30071
30556
|
if (open && showSearch) {
|
|
30072
|
-
return getSuffixIconNode(/*#__PURE__*/ React__namespace.createElement(
|
|
30557
|
+
return getSuffixIconNode(/*#__PURE__*/ React__namespace.createElement(RefIcon$j, null));
|
|
30073
30558
|
}
|
|
30074
|
-
return getSuffixIconNode(/*#__PURE__*/ React__namespace.createElement(
|
|
30559
|
+
return getSuffixIconNode(/*#__PURE__*/ React__namespace.createElement(RefIcon$k, null));
|
|
30075
30560
|
};
|
|
30076
30561
|
}
|
|
30077
30562
|
// Checked item icon
|
|
@@ -30079,7 +30564,7 @@ function useIcons({ suffixIcon, clearIcon, menuItemSelectedIcon, removeIcon, loa
|
|
|
30079
30564
|
if (menuItemSelectedIcon !== undefined) {
|
|
30080
30565
|
mergedItemIcon = menuItemSelectedIcon;
|
|
30081
30566
|
} else if (multiple) {
|
|
30082
|
-
mergedItemIcon = /*#__PURE__*/ React__namespace.createElement(
|
|
30567
|
+
mergedItemIcon = /*#__PURE__*/ React__namespace.createElement(RefIcon$l, null);
|
|
30083
30568
|
} else {
|
|
30084
30569
|
mergedItemIcon = null;
|
|
30085
30570
|
}
|
|
@@ -30087,7 +30572,7 @@ function useIcons({ suffixIcon, clearIcon, menuItemSelectedIcon, removeIcon, loa
|
|
|
30087
30572
|
if (removeIcon !== undefined) {
|
|
30088
30573
|
mergedRemoveIcon = removeIcon;
|
|
30089
30574
|
} else {
|
|
30090
|
-
mergedRemoveIcon = /*#__PURE__*/ React__namespace.createElement(
|
|
30575
|
+
mergedRemoveIcon = /*#__PURE__*/ React__namespace.createElement(RefIcon$q, null);
|
|
30091
30576
|
}
|
|
30092
30577
|
return {
|
|
30093
30578
|
// TODO: remove as when all the deps bumped
|
|
@@ -31679,6 +32164,52 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
31679
32164
|
Popover.displayName = 'Popover';
|
|
31680
32165
|
}
|
|
31681
32166
|
|
|
32167
|
+
function _extends$j() {
|
|
32168
|
+
_extends$j = Object.assign ? Object.assign.bind() : function(target) {
|
|
32169
|
+
for(var i = 1; i < arguments.length; i++){
|
|
32170
|
+
var source = arguments[i];
|
|
32171
|
+
for(var key in source){
|
|
32172
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
32173
|
+
target[key] = source[key];
|
|
32174
|
+
}
|
|
32175
|
+
}
|
|
32176
|
+
}
|
|
32177
|
+
return target;
|
|
32178
|
+
};
|
|
32179
|
+
return _extends$j.apply(this, arguments);
|
|
32180
|
+
}
|
|
32181
|
+
const LeftOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$j({}, props, {
|
|
32182
|
+
ref: ref,
|
|
32183
|
+
icon: LeftOutlinedSvg
|
|
32184
|
+
}));
|
|
32185
|
+
/** */ const RefIcon$i = /*#__PURE__*/ React__namespace.forwardRef(LeftOutlined);
|
|
32186
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
32187
|
+
RefIcon$i.displayName = 'LeftOutlined';
|
|
32188
|
+
}
|
|
32189
|
+
|
|
32190
|
+
function _extends$i() {
|
|
32191
|
+
_extends$i = Object.assign ? Object.assign.bind() : function(target) {
|
|
32192
|
+
for(var i = 1; i < arguments.length; i++){
|
|
32193
|
+
var source = arguments[i];
|
|
32194
|
+
for(var key in source){
|
|
32195
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
32196
|
+
target[key] = source[key];
|
|
32197
|
+
}
|
|
32198
|
+
}
|
|
32199
|
+
}
|
|
32200
|
+
return target;
|
|
32201
|
+
};
|
|
32202
|
+
return _extends$i.apply(this, arguments);
|
|
32203
|
+
}
|
|
32204
|
+
const BarsOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$i({}, props, {
|
|
32205
|
+
ref: ref,
|
|
32206
|
+
icon: BarsOutlinedSvg
|
|
32207
|
+
}));
|
|
32208
|
+
/** */ const RefIcon$h = /*#__PURE__*/ React__namespace.forwardRef(BarsOutlined);
|
|
32209
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
32210
|
+
RefIcon$h.displayName = 'BarsOutlined';
|
|
32211
|
+
}
|
|
32212
|
+
|
|
31682
32213
|
const LayoutContext = /*#__PURE__*/ React__namespace.createContext({
|
|
31683
32214
|
siderHook: {
|
|
31684
32215
|
addSider: ()=>null,
|
|
@@ -31974,11 +32505,11 @@ const Sider = /*#__PURE__*/ React__namespace.forwardRef((props, ref)=>{
|
|
|
31974
32505
|
onClick: toggle,
|
|
31975
32506
|
className: clsx(`${prefixCls}-zero-width-trigger`, `${prefixCls}-zero-width-trigger-${reverseArrow ? 'right' : 'left'}`),
|
|
31976
32507
|
style: zeroWidthTriggerStyle
|
|
31977
|
-
}, trigger || /*#__PURE__*/ React__namespace.createElement(
|
|
32508
|
+
}, trigger || /*#__PURE__*/ React__namespace.createElement(RefIcon$h, null)) : null;
|
|
31978
32509
|
const reverseIcon = direction === 'rtl' === !reverseArrow;
|
|
31979
32510
|
const iconObj = {
|
|
31980
|
-
expanded: reverseIcon ? /*#__PURE__*/ React__namespace.createElement(
|
|
31981
|
-
collapsed: reverseIcon ? /*#__PURE__*/ React__namespace.createElement(
|
|
32511
|
+
expanded: reverseIcon ? /*#__PURE__*/ React__namespace.createElement(RefIcon$m, null) : /*#__PURE__*/ React__namespace.createElement(RefIcon$i, null),
|
|
32512
|
+
collapsed: reverseIcon ? /*#__PURE__*/ React__namespace.createElement(RefIcon$i, null) : /*#__PURE__*/ React__namespace.createElement(RefIcon$m, null)
|
|
31982
32513
|
};
|
|
31983
32514
|
const status = collapsed ? 'collapsed' : 'expanded';
|
|
31984
32515
|
const defaultTrigger = iconObj[status];
|
|
@@ -32024,6 +32555,29 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
32024
32555
|
Sider.displayName = 'Sider';
|
|
32025
32556
|
}
|
|
32026
32557
|
|
|
32558
|
+
function _extends$h() {
|
|
32559
|
+
_extends$h = Object.assign ? Object.assign.bind() : function(target) {
|
|
32560
|
+
for(var i = 1; i < arguments.length; i++){
|
|
32561
|
+
var source = arguments[i];
|
|
32562
|
+
for(var key in source){
|
|
32563
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
32564
|
+
target[key] = source[key];
|
|
32565
|
+
}
|
|
32566
|
+
}
|
|
32567
|
+
}
|
|
32568
|
+
return target;
|
|
32569
|
+
};
|
|
32570
|
+
return _extends$h.apply(this, arguments);
|
|
32571
|
+
}
|
|
32572
|
+
const EllipsisOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$h({}, props, {
|
|
32573
|
+
ref: ref,
|
|
32574
|
+
icon: EllipsisOutlinedSvg
|
|
32575
|
+
}));
|
|
32576
|
+
/** */ const RefIcon$g = /*#__PURE__*/ React__namespace.forwardRef(EllipsisOutlined);
|
|
32577
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
32578
|
+
RefIcon$g.displayName = 'EllipsisOutlined';
|
|
32579
|
+
}
|
|
32580
|
+
|
|
32027
32581
|
const MenuContext = /*#__PURE__*/ React.createContext({
|
|
32028
32582
|
prefixCls: '',
|
|
32029
32583
|
firstLevel: true,
|
|
@@ -33355,7 +33909,7 @@ const InternalMenu = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
|
33355
33909
|
value: contextValue
|
|
33356
33910
|
}, /*#__PURE__*/ React__namespace.createElement(RcMenu, {
|
|
33357
33911
|
getPopupContainer: getPopupContainer,
|
|
33358
|
-
overflowedIndicator: /*#__PURE__*/ React__namespace.createElement(
|
|
33912
|
+
overflowedIndicator: /*#__PURE__*/ React__namespace.createElement(RefIcon$g, null),
|
|
33359
33913
|
overflowedIndicatorPopupClassName: clsx(prefixCls, `${prefixCls}-${theme}`, overflowedIndicatorPopupClassName),
|
|
33360
33914
|
classNames: {
|
|
33361
33915
|
list: mergedClassNames.list,
|
|
@@ -33852,9 +34406,9 @@ const Dropdown$1 = (props)=>{
|
|
|
33852
34406
|
rootClassName: clsx(cssVarCls, rootCls),
|
|
33853
34407
|
expandIcon: /*#__PURE__*/ React__namespace.createElement("span", {
|
|
33854
34408
|
className: `${prefixCls}-menu-submenu-arrow`
|
|
33855
|
-
}, direction === 'rtl' ? /*#__PURE__*/ React__namespace.createElement(
|
|
34409
|
+
}, direction === 'rtl' ? /*#__PURE__*/ React__namespace.createElement(RefIcon$i, {
|
|
33856
34410
|
className: `${prefixCls}-menu-submenu-arrow-icon`
|
|
33857
|
-
}) : /*#__PURE__*/ React__namespace.createElement(
|
|
34411
|
+
}) : /*#__PURE__*/ React__namespace.createElement(RefIcon$m, {
|
|
33858
34412
|
className: `${prefixCls}-menu-submenu-arrow-icon`
|
|
33859
34413
|
})),
|
|
33860
34414
|
mode: "vertical",
|
|
@@ -33932,8 +34486,8 @@ const RadioGroupContextProvider = RadioGroupContext.Provider;
|
|
|
33932
34486
|
const RadioOptionTypeContext = /*#__PURE__*/ React__namespace.createContext(undefined);
|
|
33933
34487
|
const RadioOptionTypeContextProvider = RadioOptionTypeContext.Provider;
|
|
33934
34488
|
|
|
33935
|
-
function _extends() {
|
|
33936
|
-
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
34489
|
+
function _extends$g() {
|
|
34490
|
+
_extends$g = Object.assign ? Object.assign.bind() : function(target) {
|
|
33937
34491
|
for(var i = 1; i < arguments.length; i++){
|
|
33938
34492
|
var source = arguments[i];
|
|
33939
34493
|
for(var key in source){
|
|
@@ -33944,7 +34498,7 @@ function _extends() {
|
|
|
33944
34498
|
}
|
|
33945
34499
|
return target;
|
|
33946
34500
|
};
|
|
33947
|
-
return _extends.apply(this, arguments);
|
|
34501
|
+
return _extends$g.apply(this, arguments);
|
|
33948
34502
|
}
|
|
33949
34503
|
const Checkbox$2 = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
33950
34504
|
const { prefixCls = 'rc-checkbox', className, style, checked, disabled, defaultChecked = false, type = 'checkbox', title, onChange, ...inputProps } = props;
|
|
@@ -33992,7 +34546,7 @@ const Checkbox$2 = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
|
33992
34546
|
title: title,
|
|
33993
34547
|
style: style,
|
|
33994
34548
|
ref: holderRef
|
|
33995
|
-
}, /*#__PURE__*/ React__namespace.createElement("input", _extends({}, inputProps, {
|
|
34549
|
+
}, /*#__PURE__*/ React__namespace.createElement("input", _extends$g({}, inputProps, {
|
|
33996
34550
|
className: `${prefixCls}-input`,
|
|
33997
34551
|
ref: inputRef,
|
|
33998
34552
|
onChange: handleChange,
|
|
@@ -35493,6 +36047,29 @@ var useStyle$g = genStyleHooks([
|
|
|
35493
36047
|
resetFont: false
|
|
35494
36048
|
});
|
|
35495
36049
|
|
|
36050
|
+
function _extends$f() {
|
|
36051
|
+
_extends$f = Object.assign ? Object.assign.bind() : function(target) {
|
|
36052
|
+
for(var i = 1; i < arguments.length; i++){
|
|
36053
|
+
var source = arguments[i];
|
|
36054
|
+
for(var key in source){
|
|
36055
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
36056
|
+
target[key] = source[key];
|
|
36057
|
+
}
|
|
36058
|
+
}
|
|
36059
|
+
}
|
|
36060
|
+
return target;
|
|
36061
|
+
};
|
|
36062
|
+
return _extends$f.apply(this, arguments);
|
|
36063
|
+
}
|
|
36064
|
+
const PlusOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$f({}, props, {
|
|
36065
|
+
ref: ref,
|
|
36066
|
+
icon: PlusOutlinedSvg
|
|
36067
|
+
}));
|
|
36068
|
+
/** */ const RefIcon$f = /*#__PURE__*/ React__namespace.forwardRef(PlusOutlined);
|
|
36069
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
36070
|
+
RefIcon$f.displayName = 'PlusOutlined';
|
|
36071
|
+
}
|
|
36072
|
+
|
|
35496
36073
|
const motion = {
|
|
35497
36074
|
motionAppear: false,
|
|
35498
36075
|
motionEnter: true,
|
|
@@ -36444,8 +37021,8 @@ const InternalTabs = /*#__PURE__*/ React__namespace.forwardRef((props, ref)=>{
|
|
|
36444
37021
|
onEdit: (editType, { key, event })=>{
|
|
36445
37022
|
onEdit?.(editType === 'add' ? event : key, editType);
|
|
36446
37023
|
},
|
|
36447
|
-
removeIcon: removeIcon ?? tabs?.removeIcon ?? /*#__PURE__*/ React__namespace.createElement(
|
|
36448
|
-
addIcon: (addIcon ?? tabs?.addIcon) || /*#__PURE__*/ React__namespace.createElement(
|
|
37024
|
+
removeIcon: removeIcon ?? tabs?.removeIcon ?? /*#__PURE__*/ React__namespace.createElement(RefIcon$q, null),
|
|
37025
|
+
addIcon: (addIcon ?? tabs?.addIcon) || /*#__PURE__*/ React__namespace.createElement(RefIcon$f, null),
|
|
36449
37026
|
showAdd: hideAdd !== true
|
|
36450
37027
|
};
|
|
36451
37028
|
}
|
|
@@ -36540,7 +37117,7 @@ const InternalTabs = /*#__PURE__*/ React__namespace.forwardRef((props, ref)=>{
|
|
|
36540
37117
|
},
|
|
36541
37118
|
editable: editable,
|
|
36542
37119
|
more: {
|
|
36543
|
-
icon: tabs?.more?.icon ?? tabs?.moreIcon ?? moreIcon ?? /*#__PURE__*/ React__namespace.createElement(
|
|
37120
|
+
icon: tabs?.more?.icon ?? tabs?.moreIcon ?? moreIcon ?? /*#__PURE__*/ React__namespace.createElement(RefIcon$g, null),
|
|
36544
37121
|
transitionName: `${rootPrefixCls}-slide-up`,
|
|
36545
37122
|
...more
|
|
36546
37123
|
},
|
|
@@ -38213,7 +38790,7 @@ const getAllowClear = (allowClear)=>{
|
|
|
38213
38790
|
mergedAllowClear = allowClear;
|
|
38214
38791
|
} else if (allowClear) {
|
|
38215
38792
|
mergedAllowClear = {
|
|
38216
|
-
clearIcon: /*#__PURE__*/ React.createElement(
|
|
38793
|
+
clearIcon: /*#__PURE__*/ React.createElement(RefIcon$r, null)
|
|
38217
38794
|
};
|
|
38218
38795
|
}
|
|
38219
38796
|
return mergedAllowClear;
|
|
@@ -39265,7 +39842,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
39265
39842
|
|
|
39266
39843
|
/** @deprecated Please use Space.Compact + Dropdown + Button instead */ const DropdownButton = (props)=>{
|
|
39267
39844
|
const { getPopupContainer: getContextPopupContainer, getPrefixCls, direction } = React__namespace.useContext(ConfigContext);
|
|
39268
|
-
const { prefixCls: customizePrefixCls, type = 'default', danger, disabled, loading, onClick, htmlType, children, className, menu, arrow, autoFocus, trigger, align, open, onOpenChange, placement, getPopupContainer, href, icon = /*#__PURE__*/ React__namespace.createElement(
|
|
39845
|
+
const { prefixCls: customizePrefixCls, type = 'default', danger, disabled, loading, onClick, htmlType, children, className, menu, arrow, autoFocus, trigger, align, open, onOpenChange, placement, getPopupContainer, href, icon = /*#__PURE__*/ React__namespace.createElement(RefIcon$g, null), title, buttonsRender = (buttons)=>buttons, mouseEnterDelay, mouseLeaveDelay, overlayClassName, overlayStyle, destroyOnHidden, destroyPopupOnHide, dropdownRender, popupRender, ...restProps } = props;
|
|
39269
39846
|
const prefixCls = getPrefixCls('dropdown', customizePrefixCls);
|
|
39270
39847
|
const buttonPrefixCls = `${prefixCls}-button`;
|
|
39271
39848
|
const mergedPopupRender = popupRender || dropdownRender;
|
|
@@ -39556,6 +40133,52 @@ const TextArea = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
|
39556
40133
|
});
|
|
39557
40134
|
});
|
|
39558
40135
|
|
|
40136
|
+
function _extends$e() {
|
|
40137
|
+
_extends$e = Object.assign ? Object.assign.bind() : function(target) {
|
|
40138
|
+
for(var i = 1; i < arguments.length; i++){
|
|
40139
|
+
var source = arguments[i];
|
|
40140
|
+
for(var key in source){
|
|
40141
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
40142
|
+
target[key] = source[key];
|
|
40143
|
+
}
|
|
40144
|
+
}
|
|
40145
|
+
}
|
|
40146
|
+
return target;
|
|
40147
|
+
};
|
|
40148
|
+
return _extends$e.apply(this, arguments);
|
|
40149
|
+
}
|
|
40150
|
+
const DoubleLeftOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$e({}, props, {
|
|
40151
|
+
ref: ref,
|
|
40152
|
+
icon: DoubleLeftOutlinedSvg
|
|
40153
|
+
}));
|
|
40154
|
+
/** */ const RefIcon$e = /*#__PURE__*/ React__namespace.forwardRef(DoubleLeftOutlined);
|
|
40155
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
40156
|
+
RefIcon$e.displayName = 'DoubleLeftOutlined';
|
|
40157
|
+
}
|
|
40158
|
+
|
|
40159
|
+
function _extends$d() {
|
|
40160
|
+
_extends$d = Object.assign ? Object.assign.bind() : function(target) {
|
|
40161
|
+
for(var i = 1; i < arguments.length; i++){
|
|
40162
|
+
var source = arguments[i];
|
|
40163
|
+
for(var key in source){
|
|
40164
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
40165
|
+
target[key] = source[key];
|
|
40166
|
+
}
|
|
40167
|
+
}
|
|
40168
|
+
}
|
|
40169
|
+
return target;
|
|
40170
|
+
};
|
|
40171
|
+
return _extends$d.apply(this, arguments);
|
|
40172
|
+
}
|
|
40173
|
+
const DoubleRightOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$d({}, props, {
|
|
40174
|
+
ref: ref,
|
|
40175
|
+
icon: DoubleRightOutlinedSvg
|
|
40176
|
+
}));
|
|
40177
|
+
/** */ const RefIcon$d = /*#__PURE__*/ React__namespace.forwardRef(DoubleRightOutlined);
|
|
40178
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
40179
|
+
RefIcon$d.displayName = 'DoubleRightOutlined';
|
|
40180
|
+
}
|
|
40181
|
+
|
|
39559
40182
|
const genPaginationDisabledStyle = (token)=>{
|
|
39560
40183
|
const { componentCls } = token;
|
|
39561
40184
|
return {
|
|
@@ -40256,28 +40879,28 @@ const Pagination = (props)=>{
|
|
|
40256
40879
|
className: `${prefixCls}-item-link`,
|
|
40257
40880
|
type: "button",
|
|
40258
40881
|
tabIndex: -1
|
|
40259
|
-
}, direction === 'rtl' ? /*#__PURE__*/ React__namespace.createElement(
|
|
40882
|
+
}, direction === 'rtl' ? /*#__PURE__*/ React__namespace.createElement(RefIcon$m, null) : /*#__PURE__*/ React__namespace.createElement(RefIcon$i, null));
|
|
40260
40883
|
const nextIcon = /*#__PURE__*/ React__namespace.createElement("button", {
|
|
40261
40884
|
className: `${prefixCls}-item-link`,
|
|
40262
40885
|
type: "button",
|
|
40263
40886
|
tabIndex: -1
|
|
40264
|
-
}, direction === 'rtl' ? /*#__PURE__*/ React__namespace.createElement(
|
|
40887
|
+
}, direction === 'rtl' ? /*#__PURE__*/ React__namespace.createElement(RefIcon$i, null) : /*#__PURE__*/ React__namespace.createElement(RefIcon$m, null));
|
|
40265
40888
|
const jumpPrevIcon = /*#__PURE__*/ React__namespace.createElement("a", {
|
|
40266
40889
|
className: `${prefixCls}-item-link`
|
|
40267
40890
|
}, /*#__PURE__*/ React__namespace.createElement("div", {
|
|
40268
40891
|
className: `${prefixCls}-item-container`
|
|
40269
|
-
}, direction === 'rtl' ? /*#__PURE__*/ React__namespace.createElement(
|
|
40892
|
+
}, direction === 'rtl' ? /*#__PURE__*/ React__namespace.createElement(RefIcon$d, {
|
|
40270
40893
|
className: `${prefixCls}-item-link-icon`
|
|
40271
|
-
}) : /*#__PURE__*/ React__namespace.createElement(
|
|
40894
|
+
}) : /*#__PURE__*/ React__namespace.createElement(RefIcon$e, {
|
|
40272
40895
|
className: `${prefixCls}-item-link-icon`
|
|
40273
40896
|
}), ellipsis));
|
|
40274
40897
|
const jumpNextIcon = /*#__PURE__*/ React__namespace.createElement("a", {
|
|
40275
40898
|
className: `${prefixCls}-item-link`
|
|
40276
40899
|
}, /*#__PURE__*/ React__namespace.createElement("div", {
|
|
40277
40900
|
className: `${prefixCls}-item-container`
|
|
40278
|
-
}, direction === 'rtl' ? /*#__PURE__*/ React__namespace.createElement(
|
|
40901
|
+
}, direction === 'rtl' ? /*#__PURE__*/ React__namespace.createElement(RefIcon$e, {
|
|
40279
40902
|
className: `${prefixCls}-item-link-icon`
|
|
40280
|
-
}) : /*#__PURE__*/ React__namespace.createElement(
|
|
40903
|
+
}) : /*#__PURE__*/ React__namespace.createElement(RefIcon$d, {
|
|
40281
40904
|
className: `${prefixCls}-item-link-icon`
|
|
40282
40905
|
}), ellipsis));
|
|
40283
40906
|
return {
|
|
@@ -41863,7 +42486,7 @@ const InternalSwitch = /*#__PURE__*/ React__namespace.forwardRef((props, ref)=>{
|
|
|
41863
42486
|
const loadingIcon = /*#__PURE__*/ React__namespace.createElement("div", {
|
|
41864
42487
|
className: clsx(`${prefixCls}-handle`, mergedClassNames.indicator),
|
|
41865
42488
|
style: mergedStyles.indicator
|
|
41866
|
-
}, loading && /*#__PURE__*/ React__namespace.createElement(
|
|
42489
|
+
}, loading && /*#__PURE__*/ React__namespace.createElement(RefIcon$n, {
|
|
41867
42490
|
className: `${prefixCls}-loading-icon`
|
|
41868
42491
|
}));
|
|
41869
42492
|
const classes = clsx(contextClassName, {
|
|
@@ -42238,7 +42861,7 @@ const useSelection = (config, rowSelection)=>{
|
|
|
42238
42861
|
}, /*#__PURE__*/ React__namespace.createElement(Dropdown, {
|
|
42239
42862
|
menu: menu,
|
|
42240
42863
|
getPopupContainer: getPopupContainer
|
|
42241
|
-
}, /*#__PURE__*/ React__namespace.createElement("span", null, /*#__PURE__*/ React__namespace.createElement(
|
|
42864
|
+
}, /*#__PURE__*/ React__namespace.createElement("span", null, /*#__PURE__*/ React__namespace.createElement(RefIcon$k, null))));
|
|
42242
42865
|
}
|
|
42243
42866
|
const allDisabledData = flattedData.map((record, index)=>{
|
|
42244
42867
|
const key = getRowKey(record, index);
|
|
@@ -42523,6 +43146,121 @@ const renderColumnTitle = (title, props)=>{
|
|
|
42523
43146
|
return res;
|
|
42524
43147
|
};
|
|
42525
43148
|
|
|
43149
|
+
function _extends$c() {
|
|
43150
|
+
_extends$c = Object.assign ? Object.assign.bind() : function(target) {
|
|
43151
|
+
for(var i = 1; i < arguments.length; i++){
|
|
43152
|
+
var source = arguments[i];
|
|
43153
|
+
for(var key in source){
|
|
43154
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
43155
|
+
target[key] = source[key];
|
|
43156
|
+
}
|
|
43157
|
+
}
|
|
43158
|
+
}
|
|
43159
|
+
return target;
|
|
43160
|
+
};
|
|
43161
|
+
return _extends$c.apply(this, arguments);
|
|
43162
|
+
}
|
|
43163
|
+
const FilterFilled = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$c({}, props, {
|
|
43164
|
+
ref: ref,
|
|
43165
|
+
icon: FilterFilledSvg
|
|
43166
|
+
}));
|
|
43167
|
+
/** */ const RefIcon$c = /*#__PURE__*/ React__namespace.forwardRef(FilterFilled);
|
|
43168
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
43169
|
+
RefIcon$c.displayName = 'FilterFilled';
|
|
43170
|
+
}
|
|
43171
|
+
|
|
43172
|
+
function _extends$b() {
|
|
43173
|
+
_extends$b = Object.assign ? Object.assign.bind() : function(target) {
|
|
43174
|
+
for(var i = 1; i < arguments.length; i++){
|
|
43175
|
+
var source = arguments[i];
|
|
43176
|
+
for(var key in source){
|
|
43177
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
43178
|
+
target[key] = source[key];
|
|
43179
|
+
}
|
|
43180
|
+
}
|
|
43181
|
+
}
|
|
43182
|
+
return target;
|
|
43183
|
+
};
|
|
43184
|
+
return _extends$b.apply(this, arguments);
|
|
43185
|
+
}
|
|
43186
|
+
const FileOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$b({}, props, {
|
|
43187
|
+
ref: ref,
|
|
43188
|
+
icon: FileOutlinedSvg
|
|
43189
|
+
}));
|
|
43190
|
+
/** */ const RefIcon$b = /*#__PURE__*/ React__namespace.forwardRef(FileOutlined);
|
|
43191
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
43192
|
+
RefIcon$b.displayName = 'FileOutlined';
|
|
43193
|
+
}
|
|
43194
|
+
|
|
43195
|
+
function _extends$a() {
|
|
43196
|
+
_extends$a = Object.assign ? Object.assign.bind() : function(target) {
|
|
43197
|
+
for(var i = 1; i < arguments.length; i++){
|
|
43198
|
+
var source = arguments[i];
|
|
43199
|
+
for(var key in source){
|
|
43200
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
43201
|
+
target[key] = source[key];
|
|
43202
|
+
}
|
|
43203
|
+
}
|
|
43204
|
+
}
|
|
43205
|
+
return target;
|
|
43206
|
+
};
|
|
43207
|
+
return _extends$a.apply(this, arguments);
|
|
43208
|
+
}
|
|
43209
|
+
const FolderOpenOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$a({}, props, {
|
|
43210
|
+
ref: ref,
|
|
43211
|
+
icon: FolderOpenOutlinedSvg
|
|
43212
|
+
}));
|
|
43213
|
+
/** */ const RefIcon$a = /*#__PURE__*/ React__namespace.forwardRef(FolderOpenOutlined);
|
|
43214
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
43215
|
+
RefIcon$a.displayName = 'FolderOpenOutlined';
|
|
43216
|
+
}
|
|
43217
|
+
|
|
43218
|
+
function _extends$9() {
|
|
43219
|
+
_extends$9 = Object.assign ? Object.assign.bind() : function(target) {
|
|
43220
|
+
for(var i = 1; i < arguments.length; i++){
|
|
43221
|
+
var source = arguments[i];
|
|
43222
|
+
for(var key in source){
|
|
43223
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
43224
|
+
target[key] = source[key];
|
|
43225
|
+
}
|
|
43226
|
+
}
|
|
43227
|
+
}
|
|
43228
|
+
return target;
|
|
43229
|
+
};
|
|
43230
|
+
return _extends$9.apply(this, arguments);
|
|
43231
|
+
}
|
|
43232
|
+
const FolderOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$9({}, props, {
|
|
43233
|
+
ref: ref,
|
|
43234
|
+
icon: FolderOutlinedSvg
|
|
43235
|
+
}));
|
|
43236
|
+
/** */ const RefIcon$9 = /*#__PURE__*/ React__namespace.forwardRef(FolderOutlined);
|
|
43237
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
43238
|
+
RefIcon$9.displayName = 'FolderOutlined';
|
|
43239
|
+
}
|
|
43240
|
+
|
|
43241
|
+
function _extends$8() {
|
|
43242
|
+
_extends$8 = Object.assign ? Object.assign.bind() : function(target) {
|
|
43243
|
+
for(var i = 1; i < arguments.length; i++){
|
|
43244
|
+
var source = arguments[i];
|
|
43245
|
+
for(var key in source){
|
|
43246
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
43247
|
+
target[key] = source[key];
|
|
43248
|
+
}
|
|
43249
|
+
}
|
|
43250
|
+
}
|
|
43251
|
+
return target;
|
|
43252
|
+
};
|
|
43253
|
+
return _extends$8.apply(this, arguments);
|
|
43254
|
+
}
|
|
43255
|
+
const HolderOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$8({}, props, {
|
|
43256
|
+
ref: ref,
|
|
43257
|
+
icon: HolderOutlinedSvg
|
|
43258
|
+
}));
|
|
43259
|
+
/** */ const RefIcon$8 = /*#__PURE__*/ React__namespace.forwardRef(HolderOutlined);
|
|
43260
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
43261
|
+
RefIcon$8.displayName = 'HolderOutlined';
|
|
43262
|
+
}
|
|
43263
|
+
|
|
42526
43264
|
// ============================ Directory =============================
|
|
42527
43265
|
const genDirectoryStyle = ({ treeCls, treeNodeCls, directoryNodeSelectedBg, directoryNodeSelectedColor, motionDurationMid, borderRadius, controlItemBgHover })=>({
|
|
42528
43266
|
[`${treeCls}${treeCls}-directory ${treeNodeCls}`]: {
|
|
@@ -42980,6 +43718,75 @@ const dropIndicatorRender = (props)=>{
|
|
|
42980
43718
|
});
|
|
42981
43719
|
};
|
|
42982
43720
|
|
|
43721
|
+
function _extends$7() {
|
|
43722
|
+
_extends$7 = Object.assign ? Object.assign.bind() : function(target) {
|
|
43723
|
+
for(var i = 1; i < arguments.length; i++){
|
|
43724
|
+
var source = arguments[i];
|
|
43725
|
+
for(var key in source){
|
|
43726
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
43727
|
+
target[key] = source[key];
|
|
43728
|
+
}
|
|
43729
|
+
}
|
|
43730
|
+
}
|
|
43731
|
+
return target;
|
|
43732
|
+
};
|
|
43733
|
+
return _extends$7.apply(this, arguments);
|
|
43734
|
+
}
|
|
43735
|
+
const CaretDownFilled = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$7({}, props, {
|
|
43736
|
+
ref: ref,
|
|
43737
|
+
icon: CaretDownFilledSvg
|
|
43738
|
+
}));
|
|
43739
|
+
/** */ const RefIcon$7 = /*#__PURE__*/ React__namespace.forwardRef(CaretDownFilled);
|
|
43740
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
43741
|
+
RefIcon$7.displayName = 'CaretDownFilled';
|
|
43742
|
+
}
|
|
43743
|
+
|
|
43744
|
+
function _extends$6() {
|
|
43745
|
+
_extends$6 = Object.assign ? Object.assign.bind() : function(target) {
|
|
43746
|
+
for(var i = 1; i < arguments.length; i++){
|
|
43747
|
+
var source = arguments[i];
|
|
43748
|
+
for(var key in source){
|
|
43749
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
43750
|
+
target[key] = source[key];
|
|
43751
|
+
}
|
|
43752
|
+
}
|
|
43753
|
+
}
|
|
43754
|
+
return target;
|
|
43755
|
+
};
|
|
43756
|
+
return _extends$6.apply(this, arguments);
|
|
43757
|
+
}
|
|
43758
|
+
const MinusSquareOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$6({}, props, {
|
|
43759
|
+
ref: ref,
|
|
43760
|
+
icon: MinusSquareOutlinedSvg
|
|
43761
|
+
}));
|
|
43762
|
+
/** */ const RefIcon$6 = /*#__PURE__*/ React__namespace.forwardRef(MinusSquareOutlined);
|
|
43763
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
43764
|
+
RefIcon$6.displayName = 'MinusSquareOutlined';
|
|
43765
|
+
}
|
|
43766
|
+
|
|
43767
|
+
function _extends$5() {
|
|
43768
|
+
_extends$5 = Object.assign ? Object.assign.bind() : function(target) {
|
|
43769
|
+
for(var i = 1; i < arguments.length; i++){
|
|
43770
|
+
var source = arguments[i];
|
|
43771
|
+
for(var key in source){
|
|
43772
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
43773
|
+
target[key] = source[key];
|
|
43774
|
+
}
|
|
43775
|
+
}
|
|
43776
|
+
}
|
|
43777
|
+
return target;
|
|
43778
|
+
};
|
|
43779
|
+
return _extends$5.apply(this, arguments);
|
|
43780
|
+
}
|
|
43781
|
+
const PlusSquareOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$5({}, props, {
|
|
43782
|
+
ref: ref,
|
|
43783
|
+
icon: PlusSquareOutlinedSvg
|
|
43784
|
+
}));
|
|
43785
|
+
/** */ const RefIcon$5 = /*#__PURE__*/ React__namespace.forwardRef(PlusSquareOutlined);
|
|
43786
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
43787
|
+
RefIcon$5.displayName = 'PlusSquareOutlined';
|
|
43788
|
+
}
|
|
43789
|
+
|
|
42983
43790
|
const SwitcherIconCom = (props)=>{
|
|
42984
43791
|
const { prefixCls, switcherIcon, treeNodeProps, showLine, switcherLoadingIcon } = props;
|
|
42985
43792
|
const { isLeaf, expanded, loading } = treeNodeProps;
|
|
@@ -42987,7 +43794,7 @@ const SwitcherIconCom = (props)=>{
|
|
|
42987
43794
|
if (/*#__PURE__*/ React__namespace.isValidElement(switcherLoadingIcon)) {
|
|
42988
43795
|
return switcherLoadingIcon;
|
|
42989
43796
|
}
|
|
42990
|
-
return /*#__PURE__*/ React__namespace.createElement(
|
|
43797
|
+
return /*#__PURE__*/ React__namespace.createElement(RefIcon$n, {
|
|
42991
43798
|
className: `${prefixCls}-switcher-loading-icon`
|
|
42992
43799
|
});
|
|
42993
43800
|
}
|
|
@@ -43009,7 +43816,7 @@ const SwitcherIconCom = (props)=>{
|
|
|
43009
43816
|
}
|
|
43010
43817
|
return leafIcon;
|
|
43011
43818
|
}
|
|
43012
|
-
return showLeafIcon ? /*#__PURE__*/ React__namespace.createElement(
|
|
43819
|
+
return showLeafIcon ? /*#__PURE__*/ React__namespace.createElement(RefIcon$b, {
|
|
43013
43820
|
className: `${prefixCls}-switcher-line-icon`
|
|
43014
43821
|
}) : /*#__PURE__*/ React__namespace.createElement("span", {
|
|
43015
43822
|
className: `${prefixCls}-switcher-leaf-line`
|
|
@@ -43026,13 +43833,13 @@ const SwitcherIconCom = (props)=>{
|
|
|
43026
43833
|
return switcher;
|
|
43027
43834
|
}
|
|
43028
43835
|
if (showLine) {
|
|
43029
|
-
return expanded ? /*#__PURE__*/ React__namespace.createElement(
|
|
43836
|
+
return expanded ? /*#__PURE__*/ React__namespace.createElement(RefIcon$6, {
|
|
43030
43837
|
className: `${prefixCls}-switcher-line-icon`
|
|
43031
|
-
}) : /*#__PURE__*/ React__namespace.createElement(
|
|
43838
|
+
}) : /*#__PURE__*/ React__namespace.createElement(RefIcon$5, {
|
|
43032
43839
|
className: `${prefixCls}-switcher-line-icon`
|
|
43033
43840
|
});
|
|
43034
43841
|
}
|
|
43035
|
-
return /*#__PURE__*/ React__namespace.createElement(
|
|
43842
|
+
return /*#__PURE__*/ React__namespace.createElement(RefIcon$7, {
|
|
43036
43843
|
className: switcherCls
|
|
43037
43844
|
});
|
|
43038
43845
|
};
|
|
@@ -43093,7 +43900,7 @@ const Tree$1 = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
|
43093
43900
|
break;
|
|
43094
43901
|
}
|
|
43095
43902
|
if (mergedDraggable.icon !== false) {
|
|
43096
|
-
mergedDraggable.icon = mergedDraggable.icon || /*#__PURE__*/ React.createElement(
|
|
43903
|
+
mergedDraggable.icon = mergedDraggable.icon || /*#__PURE__*/ React.createElement(RefIcon$8, null);
|
|
43097
43904
|
}
|
|
43098
43905
|
return mergedDraggable;
|
|
43099
43906
|
}, [
|
|
@@ -43207,9 +44014,9 @@ function convertDirectoryKeysToNodes(treeData, keys, fieldNames) {
|
|
|
43207
44014
|
function getIcon(props) {
|
|
43208
44015
|
const { isLeaf, expanded } = props;
|
|
43209
44016
|
if (isLeaf) {
|
|
43210
|
-
return /*#__PURE__*/ React__namespace.createElement(
|
|
44017
|
+
return /*#__PURE__*/ React__namespace.createElement(RefIcon$b, null);
|
|
43211
44018
|
}
|
|
43212
|
-
return expanded ? /*#__PURE__*/ React__namespace.createElement(
|
|
44019
|
+
return expanded ? /*#__PURE__*/ React__namespace.createElement(RefIcon$a, null) : /*#__PURE__*/ React__namespace.createElement(RefIcon$9, null);
|
|
43213
44020
|
}
|
|
43214
44021
|
function getTreeData({ treeData, children }) {
|
|
43215
44022
|
return treeData || treeUtil.convertTreeToData(children);
|
|
@@ -43340,7 +44147,7 @@ const FilterSearch = (props)=>{
|
|
|
43340
44147
|
return /*#__PURE__*/ React__namespace.createElement("div", {
|
|
43341
44148
|
className: `${tablePrefixCls}-filter-dropdown-search`
|
|
43342
44149
|
}, /*#__PURE__*/ React__namespace.createElement(Input, {
|
|
43343
|
-
prefix: /*#__PURE__*/ React__namespace.createElement(
|
|
44150
|
+
prefix: /*#__PURE__*/ React__namespace.createElement(RefIcon$j, null),
|
|
43344
44151
|
placeholder: locale.filterSearchPlaceholder,
|
|
43345
44152
|
onChange: onChange,
|
|
43346
44153
|
value: value,
|
|
@@ -43736,7 +44543,7 @@ const FilterDropdown = (props)=>{
|
|
|
43736
44543
|
} else if (column.filterIcon) {
|
|
43737
44544
|
filterIcon = column.filterIcon;
|
|
43738
44545
|
} else {
|
|
43739
|
-
filterIcon = /*#__PURE__*/ React__namespace.createElement(
|
|
44546
|
+
filterIcon = /*#__PURE__*/ React__namespace.createElement(RefIcon$c, null);
|
|
43740
44547
|
}
|
|
43741
44548
|
return /*#__PURE__*/ React__namespace.createElement("span", {
|
|
43742
44549
|
role: "button",
|
|
@@ -44067,6 +44874,52 @@ function usePagination(total, onChange, pagination) {
|
|
|
44067
44874
|
];
|
|
44068
44875
|
}
|
|
44069
44876
|
|
|
44877
|
+
function _extends$4() {
|
|
44878
|
+
_extends$4 = Object.assign ? Object.assign.bind() : function(target) {
|
|
44879
|
+
for(var i = 1; i < arguments.length; i++){
|
|
44880
|
+
var source = arguments[i];
|
|
44881
|
+
for(var key in source){
|
|
44882
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
44883
|
+
target[key] = source[key];
|
|
44884
|
+
}
|
|
44885
|
+
}
|
|
44886
|
+
}
|
|
44887
|
+
return target;
|
|
44888
|
+
};
|
|
44889
|
+
return _extends$4.apply(this, arguments);
|
|
44890
|
+
}
|
|
44891
|
+
const CaretDownOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$4({}, props, {
|
|
44892
|
+
ref: ref,
|
|
44893
|
+
icon: CaretDownOutlinedSvg
|
|
44894
|
+
}));
|
|
44895
|
+
/** */ const RefIcon$4 = /*#__PURE__*/ React__namespace.forwardRef(CaretDownOutlined);
|
|
44896
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
44897
|
+
RefIcon$4.displayName = 'CaretDownOutlined';
|
|
44898
|
+
}
|
|
44899
|
+
|
|
44900
|
+
function _extends$3() {
|
|
44901
|
+
_extends$3 = Object.assign ? Object.assign.bind() : function(target) {
|
|
44902
|
+
for(var i = 1; i < arguments.length; i++){
|
|
44903
|
+
var source = arguments[i];
|
|
44904
|
+
for(var key in source){
|
|
44905
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
44906
|
+
target[key] = source[key];
|
|
44907
|
+
}
|
|
44908
|
+
}
|
|
44909
|
+
}
|
|
44910
|
+
return target;
|
|
44911
|
+
};
|
|
44912
|
+
return _extends$3.apply(this, arguments);
|
|
44913
|
+
}
|
|
44914
|
+
const CaretUpOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$3({}, props, {
|
|
44915
|
+
ref: ref,
|
|
44916
|
+
icon: CaretUpOutlinedSvg
|
|
44917
|
+
}));
|
|
44918
|
+
/** */ const RefIcon$3 = /*#__PURE__*/ React__namespace.forwardRef(CaretUpOutlined);
|
|
44919
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
44920
|
+
RefIcon$3.displayName = 'CaretUpOutlined';
|
|
44921
|
+
}
|
|
44922
|
+
|
|
44070
44923
|
const ASCEND = 'ascend';
|
|
44071
44924
|
const DESCEND = 'descend';
|
|
44072
44925
|
const getMultiplePriority = (column)=>{
|
|
@@ -44142,12 +44995,12 @@ const injectSorter = (prefixCls, columns, sorterStates, triggerSorter, defaultSo
|
|
|
44142
44995
|
sortOrder
|
|
44143
44996
|
});
|
|
44144
44997
|
} else {
|
|
44145
|
-
const upNode = sortDirections.includes(ASCEND) && /*#__PURE__*/ React__namespace.createElement(
|
|
44998
|
+
const upNode = sortDirections.includes(ASCEND) && /*#__PURE__*/ React__namespace.createElement(RefIcon$3, {
|
|
44146
44999
|
className: clsx(`${prefixCls}-column-sorter-up`, {
|
|
44147
45000
|
active: sortOrder === ASCEND
|
|
44148
45001
|
})
|
|
44149
45002
|
});
|
|
44150
|
-
const downNode = sortDirections.includes(DESCEND) && /*#__PURE__*/ React__namespace.createElement(
|
|
45003
|
+
const downNode = sortDirections.includes(DESCEND) && /*#__PURE__*/ React__namespace.createElement(RefIcon$4, {
|
|
44151
45004
|
className: clsx(`${prefixCls}-column-sorter-down`, {
|
|
44152
45005
|
active: sortOrder === DESCEND
|
|
44153
45006
|
})
|
|
@@ -46630,6 +47483,52 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
46630
47483
|
Tag.CheckableTag = CheckableTag;
|
|
46631
47484
|
Tag.CheckableTagGroup = CheckableTagGroup;
|
|
46632
47485
|
|
|
47486
|
+
function _extends$2() {
|
|
47487
|
+
_extends$2 = Object.assign ? Object.assign.bind() : function(target) {
|
|
47488
|
+
for(var i = 1; i < arguments.length; i++){
|
|
47489
|
+
var source = arguments[i];
|
|
47490
|
+
for(var key in source){
|
|
47491
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
47492
|
+
target[key] = source[key];
|
|
47493
|
+
}
|
|
47494
|
+
}
|
|
47495
|
+
}
|
|
47496
|
+
return target;
|
|
47497
|
+
};
|
|
47498
|
+
return _extends$2.apply(this, arguments);
|
|
47499
|
+
}
|
|
47500
|
+
const EditOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$2({}, props, {
|
|
47501
|
+
ref: ref,
|
|
47502
|
+
icon: EditOutlinedSvg
|
|
47503
|
+
}));
|
|
47504
|
+
/** */ const RefIcon$2 = /*#__PURE__*/ React__namespace.forwardRef(EditOutlined);
|
|
47505
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
47506
|
+
RefIcon$2.displayName = 'EditOutlined';
|
|
47507
|
+
}
|
|
47508
|
+
|
|
47509
|
+
function _extends$1() {
|
|
47510
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
47511
|
+
for(var i = 1; i < arguments.length; i++){
|
|
47512
|
+
var source = arguments[i];
|
|
47513
|
+
for(var key in source){
|
|
47514
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
47515
|
+
target[key] = source[key];
|
|
47516
|
+
}
|
|
47517
|
+
}
|
|
47518
|
+
}
|
|
47519
|
+
return target;
|
|
47520
|
+
};
|
|
47521
|
+
return _extends$1.apply(this, arguments);
|
|
47522
|
+
}
|
|
47523
|
+
const EnterOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends$1({}, props, {
|
|
47524
|
+
ref: ref,
|
|
47525
|
+
icon: EnterOutlinedSvg
|
|
47526
|
+
}));
|
|
47527
|
+
/** */ const RefIcon$1 = /*#__PURE__*/ React__namespace.forwardRef(EnterOutlined);
|
|
47528
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
47529
|
+
RefIcon$1.displayName = 'EnterOutlined';
|
|
47530
|
+
}
|
|
47531
|
+
|
|
46633
47532
|
const getTitleStyle = (fontSize, lineHeight, color, token)=>{
|
|
46634
47533
|
const { titleMarginBottom, fontWeightStrong } = token;
|
|
46635
47534
|
return {
|
|
@@ -46914,7 +47813,7 @@ const prepareComponentToken = ()=>({
|
|
|
46914
47813
|
var useStyle = genStyleHooks('Typography', genTypographyStyle, prepareComponentToken);
|
|
46915
47814
|
|
|
46916
47815
|
const Editable = (props)=>{
|
|
46917
|
-
const { prefixCls, 'aria-label': ariaLabel, className, style, direction, maxLength, autoSize = true, value, onSave, onCancel, onEnd, component, enterIcon = /*#__PURE__*/ React__namespace.createElement(
|
|
47816
|
+
const { prefixCls, 'aria-label': ariaLabel, className, style, direction, maxLength, autoSize = true, value, onSave, onCancel, onEnd, component, enterIcon = /*#__PURE__*/ React__namespace.createElement(RefIcon$1, null) } = props;
|
|
46918
47817
|
const ref = React__namespace.useRef(null);
|
|
46919
47818
|
const inCompositionRef = React__namespace.useRef(false);
|
|
46920
47819
|
const lastKeyCodeRef = React__namespace.useRef(null);
|
|
@@ -47045,7 +47944,7 @@ const asyncCopy = async (text, isHtmlFormat)=>{
|
|
|
47045
47944
|
};
|
|
47046
47945
|
async function copy(text, config) {
|
|
47047
47946
|
if (typeof text !== 'string') {
|
|
47048
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
47947
|
+
process.env.NODE_ENV !== "production" ? warning$2(false, 'The clipboard content must be of string type', '') : void 0;
|
|
47049
47948
|
return false;
|
|
47050
47949
|
}
|
|
47051
47950
|
const isHtmlFormat = config?.format === 'text/html';
|
|
@@ -47176,6 +48075,29 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
47176
48075
|
Typography$1.displayName = 'Typography';
|
|
47177
48076
|
}
|
|
47178
48077
|
|
|
48078
|
+
function _extends() {
|
|
48079
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
48080
|
+
for(var i = 1; i < arguments.length; i++){
|
|
48081
|
+
var source = arguments[i];
|
|
48082
|
+
for(var key in source){
|
|
48083
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
48084
|
+
target[key] = source[key];
|
|
48085
|
+
}
|
|
48086
|
+
}
|
|
48087
|
+
}
|
|
48088
|
+
return target;
|
|
48089
|
+
};
|
|
48090
|
+
return _extends.apply(this, arguments);
|
|
48091
|
+
}
|
|
48092
|
+
const CopyOutlined = (props, ref)=>/*#__PURE__*/ React__namespace.createElement(Icon, _extends({}, props, {
|
|
48093
|
+
ref: ref,
|
|
48094
|
+
icon: CopyOutlinedSvg
|
|
48095
|
+
}));
|
|
48096
|
+
/** */ const RefIcon = /*#__PURE__*/ React__namespace.forwardRef(CopyOutlined);
|
|
48097
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
48098
|
+
RefIcon.displayName = 'CopyOutlined';
|
|
48099
|
+
}
|
|
48100
|
+
|
|
47179
48101
|
const toCopyConfigList = (val)=>{
|
|
47180
48102
|
if (val === false) {
|
|
47181
48103
|
return [
|
|
@@ -47237,7 +48159,7 @@ const CopyBtn = (props)=>{
|
|
|
47237
48159
|
onClick: onCopy,
|
|
47238
48160
|
"aria-label": ariaLabel,
|
|
47239
48161
|
tabIndex: tabIndex
|
|
47240
|
-
}, copied ? getNode(iconNodes[1], /*#__PURE__*/ React__namespace.createElement(
|
|
48162
|
+
}, copied ? getNode(iconNodes[1], /*#__PURE__*/ React__namespace.createElement(RefIcon$l, null), true) : getNode(iconNodes[0], btnLoading ? /*#__PURE__*/ React__namespace.createElement(RefIcon$n, null) : /*#__PURE__*/ React__namespace.createElement(RefIcon, null), true)));
|
|
47241
48163
|
};
|
|
47242
48164
|
|
|
47243
48165
|
const MeasureText = /*#__PURE__*/ React__namespace.forwardRef(({ style, children }, ref)=>{
|
|
@@ -47735,7 +48657,7 @@ const Base = /*#__PURE__*/ React__namespace.forwardRef((props, ref$1)=>{
|
|
|
47735
48657
|
onClick: onEditClick,
|
|
47736
48658
|
"aria-label": ariaLabel,
|
|
47737
48659
|
tabIndex: tabIndex
|
|
47738
|
-
}, icon || /*#__PURE__*/ React__namespace.createElement(
|
|
48660
|
+
}, icon || /*#__PURE__*/ React__namespace.createElement(RefIcon$2, {
|
|
47739
48661
|
role: "button"
|
|
47740
48662
|
}))) : null;
|
|
47741
48663
|
};
|
|
@@ -51887,6 +52809,13 @@ function RemoveScrollSideCar(props) {
|
|
|
51887
52809
|
if ('touches' in event && moveDirection === 'h' && target.type === 'range') {
|
|
51888
52810
|
return false;
|
|
51889
52811
|
}
|
|
52812
|
+
// allow drag selection (iOS); check if selection's anchorNode is the same as target or contains target
|
|
52813
|
+
var selection = window.getSelection();
|
|
52814
|
+
var anchorNode = selection && selection.anchorNode;
|
|
52815
|
+
var isTouchingSelection = anchorNode ? anchorNode === target || anchorNode.contains(target) : false;
|
|
52816
|
+
if (isTouchingSelection) {
|
|
52817
|
+
return false;
|
|
52818
|
+
}
|
|
51890
52819
|
var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
|
|
51891
52820
|
if (!canBeScrolledInMainDirection) {
|
|
51892
52821
|
return true;
|
|
@@ -114521,7 +115450,7 @@ const EvaluationsErrorCard = ({ error, onRetry })=>/*#__PURE__*/ React.createEle
|
|
|
114521
115450
|
}
|
|
114522
115451
|
}, /*#__PURE__*/ React.createElement(Alert, {
|
|
114523
115452
|
type: "error",
|
|
114524
|
-
|
|
115453
|
+
message: "Error loading evaluations",
|
|
114525
115454
|
description: /*#__PURE__*/ React.createElement("div", {
|
|
114526
115455
|
style: {
|
|
114527
115456
|
display: "flex",
|
|
@@ -114557,7 +115486,7 @@ const EvaluationsErrorCard = ({ error, onRetry })=>/*#__PURE__*/ React.createEle
|
|
|
114557
115486
|
showIcon: true
|
|
114558
115487
|
}));
|
|
114559
115488
|
|
|
114560
|
-
const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefresh, onRowClick, onCompare, compareIdsFromUrl, onCompareUrlChange, showFilters = true, showCompare = true, emptyMessage, title, pagination: serverPagination, onFiltersChange, onFetchEvaluationsByIds, errorRender })=>{
|
|
115489
|
+
const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefresh, onRowClick, onCompare, compareIdsFromUrl, onCompareUrlChange, showFilters = true, showCompare = true, emptyMessage, title, pagination: serverPagination, onFiltersChange, onFetchEvaluationsByIds, errorRender, initialSessionIds, onSessionFilterChange, initialNameFilter, onNameFilterChange })=>{
|
|
114561
115490
|
const { theme } = useTheme$1();
|
|
114562
115491
|
const [selectedAgents, setSelectedAgents] = React.useState([]);
|
|
114563
115492
|
const [selectedRowKeys, setSelectedRowKeys] = React.useState([]);
|
|
@@ -114569,6 +115498,8 @@ const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefres
|
|
|
114569
115498
|
const [pageSize, setPageSize] = React.useState(50);
|
|
114570
115499
|
const [selectedMetricFilter, setSelectedMetricFilter] = React.useState(null);
|
|
114571
115500
|
const [drawerEvaluations, setDrawerEvaluations] = React.useState([]);
|
|
115501
|
+
const [selectedSessions, setSelectedSessions] = React.useState(initialSessionIds ?? []);
|
|
115502
|
+
const [selectedNames, setSelectedNames] = React.useState(initialNameFilter ?? []);
|
|
114572
115503
|
const isServerPagination = !!serverPagination;
|
|
114573
115504
|
const normalized = React.useMemo(()=>evaluations.map((e)=>isEvaluationDto(e) ? transformEvaluation(e) : e), [
|
|
114574
115505
|
evaluations
|
|
@@ -114603,6 +115534,27 @@ const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefres
|
|
|
114603
115534
|
}, [
|
|
114604
115535
|
normalized
|
|
114605
115536
|
]);
|
|
115537
|
+
const uniqueSessionIds = React.useMemo(()=>{
|
|
115538
|
+
const ids = new Set();
|
|
115539
|
+
for (const ev of normalized){
|
|
115540
|
+
for (const agent of ev.agents ?? []){
|
|
115541
|
+
for (const entry of agent.agent_node_ids ?? []){
|
|
115542
|
+
if (typeof entry === "object" && "session_id" in entry) {
|
|
115543
|
+
ids.add(entry.session_id);
|
|
115544
|
+
}
|
|
115545
|
+
}
|
|
115546
|
+
}
|
|
115547
|
+
}
|
|
115548
|
+
return Array.from(ids).sort();
|
|
115549
|
+
}, [
|
|
115550
|
+
normalized
|
|
115551
|
+
]);
|
|
115552
|
+
const uniqueEvaluationNames = React.useMemo(()=>{
|
|
115553
|
+
const names = new Set(normalized.map((e)=>e.name).filter(Boolean));
|
|
115554
|
+
return Array.from(names).sort();
|
|
115555
|
+
}, [
|
|
115556
|
+
normalized
|
|
115557
|
+
]);
|
|
114606
115558
|
const filteredEvaluations = React.useMemo(()=>{
|
|
114607
115559
|
let result = normalized;
|
|
114608
115560
|
if (selectedAgents.length > 0) {
|
|
@@ -114612,11 +115564,38 @@ const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefres
|
|
|
114612
115564
|
const [evaluatorName, metricName] = selectedMetricFilter.split("::");
|
|
114613
115565
|
result = result.filter((evaluation)=>evaluation.evaluators.some((ev)=>ev.name === evaluatorName && evaluation.results[ev.evaluator_id]?.[metricName] !== undefined));
|
|
114614
115566
|
}
|
|
115567
|
+
if (selectedNames.length > 0) {
|
|
115568
|
+
result = result.filter((ev)=>selectedNames.includes(ev.name));
|
|
115569
|
+
}
|
|
115570
|
+
if (selectedSessions.length > 0) {
|
|
115571
|
+
const lowerSessions = selectedSessions.map((s)=>s.toLowerCase());
|
|
115572
|
+
const getEvSessions = (ev)=>{
|
|
115573
|
+
const ids = new Set();
|
|
115574
|
+
for (const agent of ev.agents ?? []){
|
|
115575
|
+
for (const entry of agent.agent_node_ids ?? []){
|
|
115576
|
+
if (typeof entry === "object" && "session_id" in entry) {
|
|
115577
|
+
ids.add(entry.session_id.toLowerCase());
|
|
115578
|
+
}
|
|
115579
|
+
}
|
|
115580
|
+
}
|
|
115581
|
+
return ids;
|
|
115582
|
+
};
|
|
115583
|
+
result = result.filter((ev)=>{
|
|
115584
|
+
const ids = getEvSessions(ev);
|
|
115585
|
+
return lowerSessions.some((s)=>ids.has(s));
|
|
115586
|
+
}).sort((a, b)=>{
|
|
115587
|
+
const aIds = getEvSessions(a);
|
|
115588
|
+
const bIds = getEvSessions(b);
|
|
115589
|
+
return lowerSessions.filter((s)=>bIds.has(s)).length - lowerSessions.filter((s)=>aIds.has(s)).length;
|
|
115590
|
+
});
|
|
115591
|
+
}
|
|
114615
115592
|
return result;
|
|
114616
115593
|
}, [
|
|
114617
115594
|
normalized,
|
|
114618
115595
|
selectedAgents,
|
|
114619
|
-
selectedMetricFilter
|
|
115596
|
+
selectedMetricFilter,
|
|
115597
|
+
selectedNames,
|
|
115598
|
+
selectedSessions
|
|
114620
115599
|
]);
|
|
114621
115600
|
const tableDataSource = filteredEvaluations;
|
|
114622
115601
|
const compareDrawerEvaluations = React.useMemo(()=>{
|
|
@@ -114828,6 +115807,7 @@ const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefres
|
|
|
114828
115807
|
placeholder: "Filter by Agent",
|
|
114829
115808
|
allowClear: true,
|
|
114830
115809
|
value: selectedAgents,
|
|
115810
|
+
maxTagCount: "responsive",
|
|
114831
115811
|
onChange: (v)=>{
|
|
114832
115812
|
setSelectedAgents(v);
|
|
114833
115813
|
if (isServerPagination && onFiltersChange) {
|
|
@@ -114844,6 +115824,7 @@ const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefres
|
|
|
114844
115824
|
}), /*#__PURE__*/ React.createElement(Select, {
|
|
114845
115825
|
placeholder: "Filter by Evaluator / Metric",
|
|
114846
115826
|
allowClear: true,
|
|
115827
|
+
maxTagCount: "responsive",
|
|
114847
115828
|
value: selectedMetricFilter ?? undefined,
|
|
114848
115829
|
onChange: (v)=>{
|
|
114849
115830
|
const next = v ?? null;
|
|
@@ -114856,6 +115837,45 @@ const EvaluationsTable = ({ evaluations, loading = false, error = null, onRefres
|
|
|
114856
115837
|
width: 240
|
|
114857
115838
|
},
|
|
114858
115839
|
options: groupedMetricOptions
|
|
115840
|
+
}), /*#__PURE__*/ React.createElement(Select, {
|
|
115841
|
+
mode: "tags",
|
|
115842
|
+
placeholder: "Filter by Session ID…",
|
|
115843
|
+
allowClear: true,
|
|
115844
|
+
value: selectedSessions,
|
|
115845
|
+
maxTagCount: "responsive",
|
|
115846
|
+
onChange: (v)=>{
|
|
115847
|
+
setSelectedSessions(v);
|
|
115848
|
+
onSessionFilterChange?.(v);
|
|
115849
|
+
},
|
|
115850
|
+
style: {
|
|
115851
|
+
width: 280
|
|
115852
|
+
},
|
|
115853
|
+
tokenSeparators: [
|
|
115854
|
+
","
|
|
115855
|
+
],
|
|
115856
|
+
options: uniqueSessionIds.map((id)=>({
|
|
115857
|
+
label: id,
|
|
115858
|
+
value: id
|
|
115859
|
+
}))
|
|
115860
|
+
}), /*#__PURE__*/ React.createElement(Select, {
|
|
115861
|
+
mode: "multiple",
|
|
115862
|
+
showSearch: true,
|
|
115863
|
+
placeholder: "Filter by Evaluation Name…",
|
|
115864
|
+
allowClear: true,
|
|
115865
|
+
value: selectedNames,
|
|
115866
|
+
maxTagCount: "responsive",
|
|
115867
|
+
onChange: (v)=>{
|
|
115868
|
+
setSelectedNames(v);
|
|
115869
|
+
onNameFilterChange?.(v);
|
|
115870
|
+
},
|
|
115871
|
+
style: {
|
|
115872
|
+
width: 240
|
|
115873
|
+
},
|
|
115874
|
+
options: uniqueEvaluationNames.map((n)=>({
|
|
115875
|
+
label: n,
|
|
115876
|
+
value: n
|
|
115877
|
+
})),
|
|
115878
|
+
filterOption: (input, option)=>(option?.label ?? "").toLowerCase().includes(input.toLowerCase())
|
|
114859
115879
|
})), onRefresh && /*#__PURE__*/ React.createElement(Button$1, {
|
|
114860
115880
|
icon: /*#__PURE__*/ React.createElement(RefreshCw, {
|
|
114861
115881
|
size: 14
|