@cloudtower/eagle 0.27.51 → 0.27.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.css +1189 -1189
- package/dist/esm/index.js +634 -635
- package/dist/esm/stats1.html +1 -1
- package/dist/src/core/Cascader/index.d.ts +1 -2
- package/dist/src/index.d.ts +1 -0
- package/dist/src/spec/base.d.ts +0 -2
- package/dist/stories/docs/cascader/cascader.stories.d.ts +1 -1
- package/dist/style.css +1616 -1616
- package/dist/umd/index.js +633 -633
- package/dist/umd/stats1.html +1 -1
- package/package.json +5 -5
package/dist/esm/index.js
CHANGED
|
@@ -6,7 +6,7 @@ export * from '@cloudtower/parrot';
|
|
|
6
6
|
import { useTranslation, Trans, withTranslation } from 'react-i18next';
|
|
7
7
|
import { Tooltip as Tooltip$1, Menu, Dropdown, Button as Button$1, Checkbox as Checkbox$1, DatePicker, Select as Select$1, InputNumber as InputNumber$1, Input as Input$1, TimePicker as TimePicker$1, Switch as Switch$1, Popover, Calendar as Calendar$2, Tag as Tag$1, Alert as Alert$1, Badge as Badge$1, Card as Card$2, Collapse, Form as Form$1, Steps as Steps$1, Modal as Modal$1, Progress as Progress$1, Radio as Radio$1, Table as Table$2, Space, List, Row, Col, Tree, Divider, Skeleton, Layout, AutoComplete, Timeline, Typography, Upload, Tabs, message, Empty as Empty$1, TreeSelect, Drawer, ConfigProvider } from 'antd';
|
|
8
8
|
export { Col, Row } from 'antd';
|
|
9
|
-
import { XmarkRemove24SecondaryIcon, InfoICircleFill16SecondaryIcon, XmarkFailedSeriousWarningFill16RedIcon, NoticeAttention16YellowIcon, InfoICircleFill16BlueIcon, CheckmarkDoneSuccessCircleFill16GreenIcon, ArrowChevronDown16SecondaryIcon, MoreEllipsis316BoldBlueIcon, XmarkRemove16SecondaryIcon, XmarkRemove16BlueIcon, FocusIndicator16BlueIcon, ClockIcon, CloseIcon, ArrowChevronUp16BoldBlueIcon, ArrowChevronDown16BoldBlueIcon, ArrowChevronDown16BlueIcon, ArrowChevronDownSmall16BlueIcon, ArrowChevronDownSmall16BoldBlueIcon, CalendarClockDateTime24GradientGrayIcon, CalendarClockDateTime24GradientBlueIcon, CalendarTimeRecord16Icon, ArrowChevronLeft16BoldTertiaryIcon, ArrowChevronLeft16BoldBlueIcon, ArrowRightGrayIcon,
|
|
9
|
+
import { XmarkRemove24SecondaryIcon, InfoICircleFill16SecondaryIcon, XmarkFailedSeriousWarningFill16RedIcon, NoticeAttention16YellowIcon, InfoICircleFill16BlueIcon, CheckmarkDoneSuccessCircleFill16GreenIcon, ArrowChevronDown16SecondaryIcon, MoreEllipsis316BoldBlueIcon, XmarkRemove16SecondaryIcon, XmarkRemove16BlueIcon, FocusIndicator16BlueIcon, ClockIcon, CloseIcon, ArrowChevronUp16BoldBlueIcon, ArrowChevronDown16BoldBlueIcon, ArrowChevronDown16BlueIcon, ArrowChevronDownSmall16BlueIcon, ArrowChevronDownSmall16BoldBlueIcon, CalendarClockDateTime24GradientGrayIcon, CalendarClockDateTime24GradientBlueIcon, CalendarTimeRecord16Icon, ArrowChevronLeft16BoldTertiaryIcon, ArrowChevronLeft16BoldBlueIcon, ArrowRightGrayIcon, ArrowChevronUp16SecondaryIcon, CheckmarkDoneSuccessCorrect16SecondaryIcon, ArrowChevronLeftSmall16BoldBlueIcon, ArrowChevronDownSmall16SecondaryIcon, Loading8GradientBlueIcon, ArrowChevronUp16BoldSecondaryIcon, PlusAddCreateNew16SecondaryIcon, HandlePoint816SecondaryIcon, HandlePoint816BlueIcon, XmarkRemove16RegularRedIcon, CheckmarkDoneSuccessCorrect16BlueIcon, XmarkRemoveSmall16RegularInheritIcon, HierarchyTriangleRight16PrimaryIcon } from '@cloudtower/icons-react';
|
|
10
10
|
import { styled } from '@linaria/react';
|
|
11
11
|
import _, { debounce, isEqual, uniqBy, groupBy, sortBy, toPairs } from 'lodash';
|
|
12
12
|
import { SVGUniqueID } from 'react-svg-unique-id';
|
|
@@ -6926,307 +6926,6 @@ const Card = React__default.forwardRef(
|
|
|
6926
6926
|
}
|
|
6927
6927
|
);
|
|
6928
6928
|
|
|
6929
|
-
const DoubleRowOptionStyleWrapper = "drhfj7c";
|
|
6930
|
-
const CascaderDefaultOptionLabel = "ct9qoak";
|
|
6931
|
-
const CascaderNotData = "crhnxq5";
|
|
6932
|
-
const CascaderDefaultHeaderSearch = "c1iq43vd";
|
|
6933
|
-
const CascaderInputStyle = "c1h2v0a8";
|
|
6934
|
-
const CascaderDefaultHeaderContainer = "cgzzd7y";
|
|
6935
|
-
const CascaderDefaultHeader = "c1ec3mnt";
|
|
6936
|
-
const CascaderDropdown = "c1iye0zj";
|
|
6937
|
-
const CascaderSmallDropdown = "ckhyuyx";
|
|
6938
|
-
const CascaderLargeDropdown = "c1fmq9lv";
|
|
6939
|
-
|
|
6940
|
-
var __defProp$n = Object.defineProperty;
|
|
6941
|
-
var __defProps$j = Object.defineProperties;
|
|
6942
|
-
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
6943
|
-
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
6944
|
-
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
6945
|
-
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
6946
|
-
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, {
|
|
6947
|
-
enumerable: true,
|
|
6948
|
-
configurable: true,
|
|
6949
|
-
writable: true,
|
|
6950
|
-
value
|
|
6951
|
-
}) : obj[key] = value;
|
|
6952
|
-
var __spreadValues$n = (a, b) => {
|
|
6953
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$n.call(b, prop)) __defNormalProp$n(a, prop, b[prop]);
|
|
6954
|
-
if (__getOwnPropSymbols$n) for (var prop of __getOwnPropSymbols$n(b)) {
|
|
6955
|
-
if (__propIsEnum$n.call(b, prop)) __defNormalProp$n(a, prop, b[prop]);
|
|
6956
|
-
}
|
|
6957
|
-
return a;
|
|
6958
|
-
};
|
|
6959
|
-
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
6960
|
-
var __objRest$8 = (source, exclude) => {
|
|
6961
|
-
var target = {};
|
|
6962
|
-
for (var prop in source) if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
6963
|
-
if (source != null && __getOwnPropSymbols$n) for (var prop of __getOwnPropSymbols$n(source)) {
|
|
6964
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop)) target[prop] = source[prop];
|
|
6965
|
-
}
|
|
6966
|
-
return target;
|
|
6967
|
-
};
|
|
6968
|
-
const LinkStyle = "l48ei06";
|
|
6969
|
-
const Link = React__default.forwardRef((_a, ref) => {
|
|
6970
|
-
var _b = _a,
|
|
6971
|
-
{
|
|
6972
|
-
className,
|
|
6973
|
-
disabled,
|
|
6974
|
-
type
|
|
6975
|
-
} = _b,
|
|
6976
|
-
props = __objRest$8(_b, ["className", "disabled", "type"]);
|
|
6977
|
-
return /* @__PURE__ */React__default.createElement(Button, __spreadProps$j(__spreadValues$n({}, props), {
|
|
6978
|
-
ref,
|
|
6979
|
-
disabled,
|
|
6980
|
-
className: cs(LinkStyle, className, {
|
|
6981
|
-
"ui-kit-link-disabled": disabled,
|
|
6982
|
-
"ui-kit-link-subtle": type === "subtle"
|
|
6983
|
-
}),
|
|
6984
|
-
type: "link"
|
|
6985
|
-
}));
|
|
6986
|
-
});
|
|
6987
|
-
|
|
6988
|
-
const IconStyle = "i1g85yz3";
|
|
6989
|
-
|
|
6990
|
-
var __defProp$m = Object.defineProperty;
|
|
6991
|
-
var __defProps$i = Object.defineProperties;
|
|
6992
|
-
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
6993
|
-
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
6994
|
-
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
6995
|
-
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
6996
|
-
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, {
|
|
6997
|
-
enumerable: true,
|
|
6998
|
-
configurable: true,
|
|
6999
|
-
writable: true,
|
|
7000
|
-
value
|
|
7001
|
-
}) : obj[key] = value;
|
|
7002
|
-
var __spreadValues$m = (a, b) => {
|
|
7003
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$m.call(b, prop)) __defNormalProp$m(a, prop, b[prop]);
|
|
7004
|
-
if (__getOwnPropSymbols$m) for (var prop of __getOwnPropSymbols$m(b)) {
|
|
7005
|
-
if (__propIsEnum$m.call(b, prop)) __defNormalProp$m(a, prop, b[prop]);
|
|
7006
|
-
}
|
|
7007
|
-
return a;
|
|
7008
|
-
};
|
|
7009
|
-
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
7010
|
-
var __objRest$7 = (source, exclude) => {
|
|
7011
|
-
var target = {};
|
|
7012
|
-
for (var prop in source) if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
7013
|
-
if (source != null && __getOwnPropSymbols$m) for (var prop of __getOwnPropSymbols$m(source)) {
|
|
7014
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop)) target[prop] = source[prop];
|
|
7015
|
-
}
|
|
7016
|
-
return target;
|
|
7017
|
-
};
|
|
7018
|
-
const PresetColors$1 = ["blue", "red", "yellow", "green", "gray", "purple"];
|
|
7019
|
-
const Size = {
|
|
7020
|
-
small: "s1sck0th",
|
|
7021
|
-
medium: "m855nr1",
|
|
7022
|
-
large: "l1270xpg"
|
|
7023
|
-
};
|
|
7024
|
-
const TokenStyle = "t14rextb";
|
|
7025
|
-
const Token = React__default.forwardRef((_a, ref) => {
|
|
7026
|
-
var _b = _a,
|
|
7027
|
-
{
|
|
7028
|
-
size = "small",
|
|
7029
|
-
color = "gray",
|
|
7030
|
-
className,
|
|
7031
|
-
icon,
|
|
7032
|
-
checked,
|
|
7033
|
-
children,
|
|
7034
|
-
tooltipConfig
|
|
7035
|
-
} = _b,
|
|
7036
|
-
props = __objRest$7(_b, ["size", "color", "className", "icon", "checked", "children", "tooltipConfig"]);
|
|
7037
|
-
return /* @__PURE__ */React__default.createElement(Tag$1, __spreadProps$i(__spreadValues$m({}, props), {
|
|
7038
|
-
ref,
|
|
7039
|
-
className: cs(className, Size[size], TokenStyle, {
|
|
7040
|
-
[Typo.Label.l4_regular]: size === "small" || size === "medium",
|
|
7041
|
-
[Typo.Label.l3_regular]: size === "large",
|
|
7042
|
-
[`ant-tag-${color}`]: PresetColors$1.includes(color)
|
|
7043
|
-
}, "ui-kit-token", checked && "ui-kit-token-checked"),
|
|
7044
|
-
closeIcon: /* @__PURE__ */React__default.createElement(Tooltip, __spreadValues$m({
|
|
7045
|
-
title: tooltipConfig == null ? void 0 : tooltipConfig.title
|
|
7046
|
-
}, !(tooltipConfig == null ? void 0 : tooltipConfig.title) && {
|
|
7047
|
-
visible: false
|
|
7048
|
-
}), /* @__PURE__ */React__default.createElement(Icon, {
|
|
7049
|
-
className: "selected-icon",
|
|
7050
|
-
src: XmarkRemoveSmall16RegularInheritIcon,
|
|
7051
|
-
iconHeight: 16,
|
|
7052
|
-
iconWidth: 16
|
|
7053
|
-
})),
|
|
7054
|
-
color: color === "gray" ? void 0 : color
|
|
7055
|
-
}), icon && /* @__PURE__ */React__default.createElement("span", {
|
|
7056
|
-
className: cs("ui-kit-tag-icon", IconStyle)
|
|
7057
|
-
}, icon), children);
|
|
7058
|
-
});
|
|
7059
|
-
|
|
7060
|
-
var __defProp$l = Object.defineProperty;
|
|
7061
|
-
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
7062
|
-
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
7063
|
-
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
7064
|
-
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7065
|
-
var __spreadValues$l = (a, b) => {
|
|
7066
|
-
for (var prop in b || (b = {}))
|
|
7067
|
-
if (__hasOwnProp$l.call(b, prop))
|
|
7068
|
-
__defNormalProp$l(a, prop, b[prop]);
|
|
7069
|
-
if (__getOwnPropSymbols$l)
|
|
7070
|
-
for (var prop of __getOwnPropSymbols$l(b)) {
|
|
7071
|
-
if (__propIsEnum$l.call(b, prop))
|
|
7072
|
-
__defNormalProp$l(a, prop, b[prop]);
|
|
7073
|
-
}
|
|
7074
|
-
return a;
|
|
7075
|
-
};
|
|
7076
|
-
var __objRest$6 = (source, exclude) => {
|
|
7077
|
-
var target = {};
|
|
7078
|
-
for (var prop in source)
|
|
7079
|
-
if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
7080
|
-
target[prop] = source[prop];
|
|
7081
|
-
if (source != null && __getOwnPropSymbols$l)
|
|
7082
|
-
for (var prop of __getOwnPropSymbols$l(source)) {
|
|
7083
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
|
|
7084
|
-
target[prop] = source[prop];
|
|
7085
|
-
}
|
|
7086
|
-
return target;
|
|
7087
|
-
};
|
|
7088
|
-
const SearchInput = (props) => {
|
|
7089
|
-
const _a = props, { onChange, debounceWait = 300 } = _a, restProps = __objRest$6(_a, ["onChange", "debounceWait"]);
|
|
7090
|
-
const onSearch = _.debounce(onChange, debounceWait);
|
|
7091
|
-
return /* @__PURE__ */ React__default.createElement(
|
|
7092
|
-
Input,
|
|
7093
|
-
__spreadValues$l({
|
|
7094
|
-
style: { width: 276 },
|
|
7095
|
-
prefix: /* @__PURE__ */ React__default.createElement(SearchOutlined, null),
|
|
7096
|
-
onChange: (e) => onSearch(e.target.value)
|
|
7097
|
-
}, restProps)
|
|
7098
|
-
);
|
|
7099
|
-
};
|
|
7100
|
-
|
|
7101
|
-
var __defProp$k = Object.defineProperty;
|
|
7102
|
-
var __defProps$h = Object.defineProperties;
|
|
7103
|
-
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
7104
|
-
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
|
7105
|
-
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
|
7106
|
-
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
|
7107
|
-
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7108
|
-
var __spreadValues$k = (a, b) => {
|
|
7109
|
-
for (var prop in b || (b = {}))
|
|
7110
|
-
if (__hasOwnProp$k.call(b, prop))
|
|
7111
|
-
__defNormalProp$k(a, prop, b[prop]);
|
|
7112
|
-
if (__getOwnPropSymbols$k)
|
|
7113
|
-
for (var prop of __getOwnPropSymbols$k(b)) {
|
|
7114
|
-
if (__propIsEnum$k.call(b, prop))
|
|
7115
|
-
__defNormalProp$k(a, prop, b[prop]);
|
|
7116
|
-
}
|
|
7117
|
-
return a;
|
|
7118
|
-
};
|
|
7119
|
-
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
7120
|
-
const NotDataContent = ({ content }) => {
|
|
7121
|
-
return /* @__PURE__ */ React__default.createElement("div", { className: cs(CascaderNotData) }, content);
|
|
7122
|
-
};
|
|
7123
|
-
const PresetCascaderHeader = ({ defaultContent, searchProps }) => {
|
|
7124
|
-
const { t } = useParrotTranslation();
|
|
7125
|
-
const [selectedAll, setSelectedAll] = useState(false);
|
|
7126
|
-
const onClick = (e) => {
|
|
7127
|
-
var _a;
|
|
7128
|
-
setSelectedAll(!selectedAll);
|
|
7129
|
-
(_a = defaultContent == null ? void 0 : defaultContent.onClickAll) == null ? void 0 : _a.call(defaultContent, selectedAll);
|
|
7130
|
-
};
|
|
7131
|
-
return /* @__PURE__ */ React__default.createElement(Flex, { vertical: true, className: CascaderDefaultHeaderContainer }, searchProps ? /* @__PURE__ */ React__default.createElement(
|
|
7132
|
-
SearchInput,
|
|
7133
|
-
__spreadProps$h(__spreadValues$k({}, searchProps), {
|
|
7134
|
-
className: cs(searchProps.className, CascaderDefaultHeaderSearch),
|
|
7135
|
-
style: {
|
|
7136
|
-
width: "unset"
|
|
7137
|
-
}
|
|
7138
|
-
})
|
|
7139
|
-
) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null), (defaultContent == null ? void 0 : defaultContent.hide) ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null) : /* @__PURE__ */ React__default.createElement("div", { className: cs(CascaderDefaultHeader) }, defaultContent == null ? void 0 : defaultContent.label, /* @__PURE__ */ React__default.createElement(Link, { size: "small", onClick }, selectedAll ? t("components.unselect_all") : t("components.select_all"))));
|
|
7140
|
-
};
|
|
7141
|
-
const PresetCascaderRender = ({
|
|
7142
|
-
menus,
|
|
7143
|
-
header,
|
|
7144
|
-
footer,
|
|
7145
|
-
presetHeaderProps
|
|
7146
|
-
}) => {
|
|
7147
|
-
return /* @__PURE__ */ React__default.createElement("div", null, header ? header : /* @__PURE__ */ React__default.createElement(PresetCascaderHeader, __spreadValues$k({}, presetHeaderProps)), menus, footer);
|
|
7148
|
-
};
|
|
7149
|
-
const CascaderDoubleRowOption = ({ leftTop, leftBottom, rightTop, rightBottom, rootClassName }) => {
|
|
7150
|
-
return /* @__PURE__ */ React__default.createElement(
|
|
7151
|
-
Flex,
|
|
7152
|
-
{
|
|
7153
|
-
vertical: true,
|
|
7154
|
-
className: cx(DoubleRowOptionStyleWrapper, rootClassName),
|
|
7155
|
-
gap: 6
|
|
7156
|
-
},
|
|
7157
|
-
/* @__PURE__ */ React__default.createElement(Flex, { justify: "space-between" }, /* @__PURE__ */ React__default.createElement("div", { className: Typo.Label.l2_medium }, leftTop), /* @__PURE__ */ React__default.createElement("div", null, rightTop)),
|
|
7158
|
-
/* @__PURE__ */ React__default.createElement(Flex, { justify: "space-between", className: Typo.Label.l4_regular }, /* @__PURE__ */ React__default.createElement("div", { className: cs(Typo.Label.l4_regular, "bottom", "left") }, leftBottom), /* @__PURE__ */ React__default.createElement("div", { className: cs(Typo.Label.l4_regular, "bottom") }, rightBottom))
|
|
7159
|
-
);
|
|
7160
|
-
};
|
|
7161
|
-
const CascaderOptionWithCount = ({ label, count }) => {
|
|
7162
|
-
return /* @__PURE__ */ React__default.createElement("div", { className: CascaderDefaultOptionLabel }, label, count ? /* @__PURE__ */ React__default.createElement("span", { className: "label" }, count.selected, "/", count.total) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null));
|
|
7163
|
-
};
|
|
7164
|
-
const defaultTagRender = (props) => {
|
|
7165
|
-
return /* @__PURE__ */ React__default.createElement(Token, __spreadValues$k({ size: "medium", color: "blue", key: props.value }, props), props.label);
|
|
7166
|
-
};
|
|
7167
|
-
|
|
7168
|
-
var __defProp$j = Object.defineProperty;
|
|
7169
|
-
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
7170
|
-
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
7171
|
-
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
7172
|
-
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7173
|
-
var __spreadValues$j = (a, b) => {
|
|
7174
|
-
for (var prop in b || (b = {}))
|
|
7175
|
-
if (__hasOwnProp$j.call(b, prop))
|
|
7176
|
-
__defNormalProp$j(a, prop, b[prop]);
|
|
7177
|
-
if (__getOwnPropSymbols$j)
|
|
7178
|
-
for (var prop of __getOwnPropSymbols$j(b)) {
|
|
7179
|
-
if (__propIsEnum$j.call(b, prop))
|
|
7180
|
-
__defNormalProp$j(a, prop, b[prop]);
|
|
7181
|
-
}
|
|
7182
|
-
return a;
|
|
7183
|
-
};
|
|
7184
|
-
var __objRest$5 = (source, exclude) => {
|
|
7185
|
-
var target = {};
|
|
7186
|
-
for (var prop in source)
|
|
7187
|
-
if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
7188
|
-
target[prop] = source[prop];
|
|
7189
|
-
if (source != null && __getOwnPropSymbols$j)
|
|
7190
|
-
for (var prop of __getOwnPropSymbols$j(source)) {
|
|
7191
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
|
|
7192
|
-
target[prop] = source[prop];
|
|
7193
|
-
}
|
|
7194
|
-
return target;
|
|
7195
|
-
};
|
|
7196
|
-
const Cascader = (props) => {
|
|
7197
|
-
const _a = props, {
|
|
7198
|
-
size = "middle",
|
|
7199
|
-
NotData = "No Data",
|
|
7200
|
-
dropdownClassName,
|
|
7201
|
-
presetCascaderRenderProps
|
|
7202
|
-
} = _a, restProps = __objRest$5(_a, [
|
|
7203
|
-
"size",
|
|
7204
|
-
"NotData",
|
|
7205
|
-
"dropdownClassName",
|
|
7206
|
-
"presetCascaderRenderProps"
|
|
7207
|
-
]);
|
|
7208
|
-
return /* @__PURE__ */ React__default.createElement(
|
|
7209
|
-
Cascader$1,
|
|
7210
|
-
__spreadValues$j({
|
|
7211
|
-
size,
|
|
7212
|
-
prefixCls: Antd5PrefixCls,
|
|
7213
|
-
expandIcon: /* @__PURE__ */ React__default.createElement(Icon, { src: HierarchyTriangleRight16PrimaryIcon }),
|
|
7214
|
-
popupClassName: cs(
|
|
7215
|
-
{
|
|
7216
|
-
[CascaderLargeDropdown]: size === "large",
|
|
7217
|
-
[CascaderSmallDropdown]: size === "small"
|
|
7218
|
-
},
|
|
7219
|
-
dropdownClassName,
|
|
7220
|
-
CascaderDropdown
|
|
7221
|
-
),
|
|
7222
|
-
dropdownRender: (menus) => /* @__PURE__ */ React__default.createElement(PresetCascaderRender, __spreadValues$j({ menus }, presetCascaderRenderProps)),
|
|
7223
|
-
notFoundContent: /* @__PURE__ */ React__default.createElement(NotDataContent, { content: NotData }),
|
|
7224
|
-
tagRender: defaultTagRender,
|
|
7225
|
-
rootClassName: CascaderInputStyle
|
|
7226
|
-
}, restProps)
|
|
7227
|
-
);
|
|
7228
|
-
};
|
|
7229
|
-
|
|
7230
6929
|
const card = "c1yyuluq";
|
|
7231
6930
|
const ExpandableContainer = props => {
|
|
7232
6931
|
const {
|
|
@@ -7300,32 +6999,32 @@ const ExpandableItem = props => {
|
|
|
7300
6999
|
}, children));
|
|
7301
7000
|
};
|
|
7302
7001
|
|
|
7303
|
-
var __defProp$
|
|
7304
|
-
var __defProps$
|
|
7305
|
-
var __getOwnPropDescs$
|
|
7306
|
-
var __getOwnPropSymbols$
|
|
7307
|
-
var __hasOwnProp$
|
|
7308
|
-
var __propIsEnum$
|
|
7309
|
-
var __defNormalProp$
|
|
7002
|
+
var __defProp$n = Object.defineProperty;
|
|
7003
|
+
var __defProps$j = Object.defineProperties;
|
|
7004
|
+
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
7005
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
7006
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
7007
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
7008
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, {
|
|
7310
7009
|
enumerable: true,
|
|
7311
7010
|
configurable: true,
|
|
7312
7011
|
writable: true,
|
|
7313
7012
|
value
|
|
7314
7013
|
}) : obj[key] = value;
|
|
7315
|
-
var __spreadValues$
|
|
7316
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
7317
|
-
if (__getOwnPropSymbols$
|
|
7318
|
-
if (__propIsEnum$
|
|
7014
|
+
var __spreadValues$n = (a, b) => {
|
|
7015
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$n.call(b, prop)) __defNormalProp$n(a, prop, b[prop]);
|
|
7016
|
+
if (__getOwnPropSymbols$n) for (var prop of __getOwnPropSymbols$n(b)) {
|
|
7017
|
+
if (__propIsEnum$n.call(b, prop)) __defNormalProp$n(a, prop, b[prop]);
|
|
7319
7018
|
}
|
|
7320
7019
|
return a;
|
|
7321
7020
|
};
|
|
7322
|
-
var __spreadProps$
|
|
7021
|
+
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
7323
7022
|
const {
|
|
7324
7023
|
Item: AntdFormItem
|
|
7325
7024
|
} = Form$1;
|
|
7326
7025
|
const FormItemStyle$1 = "f7pxqmh";
|
|
7327
7026
|
const FormItem$1 = props => {
|
|
7328
|
-
return /* @__PURE__ */React__default.createElement(AntdFormItem, __spreadProps$
|
|
7027
|
+
return /* @__PURE__ */React__default.createElement(AntdFormItem, __spreadProps$j(__spreadValues$n({}, props), {
|
|
7329
7028
|
className: cs(FormItemStyle$1, props.className)
|
|
7330
7029
|
}));
|
|
7331
7030
|
};
|
|
@@ -7340,25 +7039,73 @@ const InputGroup = /*#__PURE__*/styled(_exp())({
|
|
|
7340
7039
|
propsAsIs: true
|
|
7341
7040
|
});
|
|
7342
7041
|
|
|
7343
|
-
var __defProp$
|
|
7344
|
-
var __defProps$
|
|
7345
|
-
var __getOwnPropDescs$
|
|
7346
|
-
var __getOwnPropSymbols$
|
|
7347
|
-
var __hasOwnProp$
|
|
7348
|
-
var __propIsEnum$
|
|
7349
|
-
var __defNormalProp$
|
|
7350
|
-
|
|
7042
|
+
var __defProp$m = Object.defineProperty;
|
|
7043
|
+
var __defProps$i = Object.defineProperties;
|
|
7044
|
+
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
7045
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
7046
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
7047
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
7048
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, {
|
|
7049
|
+
enumerable: true,
|
|
7050
|
+
configurable: true,
|
|
7051
|
+
writable: true,
|
|
7052
|
+
value
|
|
7053
|
+
}) : obj[key] = value;
|
|
7054
|
+
var __spreadValues$m = (a, b) => {
|
|
7055
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$m.call(b, prop)) __defNormalProp$m(a, prop, b[prop]);
|
|
7056
|
+
if (__getOwnPropSymbols$m) for (var prop of __getOwnPropSymbols$m(b)) {
|
|
7057
|
+
if (__propIsEnum$m.call(b, prop)) __defNormalProp$m(a, prop, b[prop]);
|
|
7058
|
+
}
|
|
7059
|
+
return a;
|
|
7060
|
+
};
|
|
7061
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
7062
|
+
var __objRest$8 = (source, exclude) => {
|
|
7063
|
+
var target = {};
|
|
7064
|
+
for (var prop in source) if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
7065
|
+
if (source != null && __getOwnPropSymbols$m) for (var prop of __getOwnPropSymbols$m(source)) {
|
|
7066
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop)) target[prop] = source[prop];
|
|
7067
|
+
}
|
|
7068
|
+
return target;
|
|
7069
|
+
};
|
|
7070
|
+
const LinkStyle = "l48ei06";
|
|
7071
|
+
const Link = React__default.forwardRef((_a, ref) => {
|
|
7072
|
+
var _b = _a,
|
|
7073
|
+
{
|
|
7074
|
+
className,
|
|
7075
|
+
disabled,
|
|
7076
|
+
type
|
|
7077
|
+
} = _b,
|
|
7078
|
+
props = __objRest$8(_b, ["className", "disabled", "type"]);
|
|
7079
|
+
return /* @__PURE__ */React__default.createElement(Button, __spreadProps$i(__spreadValues$m({}, props), {
|
|
7080
|
+
ref,
|
|
7081
|
+
disabled,
|
|
7082
|
+
className: cs(LinkStyle, className, {
|
|
7083
|
+
"ui-kit-link-disabled": disabled,
|
|
7084
|
+
"ui-kit-link-subtle": type === "subtle"
|
|
7085
|
+
}),
|
|
7086
|
+
type: "link"
|
|
7087
|
+
}));
|
|
7088
|
+
});
|
|
7089
|
+
|
|
7090
|
+
var __defProp$l = Object.defineProperty;
|
|
7091
|
+
var __defProps$h = Object.defineProperties;
|
|
7092
|
+
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
7093
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
7094
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
7095
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
7096
|
+
var __defNormalProp$l = (obj, key2, value) => key2 in obj ? __defProp$l(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value;
|
|
7097
|
+
var __spreadValues$l = (a, b) => {
|
|
7351
7098
|
for (var prop in b || (b = {}))
|
|
7352
|
-
if (__hasOwnProp$
|
|
7353
|
-
__defNormalProp$
|
|
7354
|
-
if (__getOwnPropSymbols$
|
|
7355
|
-
for (var prop of __getOwnPropSymbols$
|
|
7356
|
-
if (__propIsEnum$
|
|
7357
|
-
__defNormalProp$
|
|
7099
|
+
if (__hasOwnProp$l.call(b, prop))
|
|
7100
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
7101
|
+
if (__getOwnPropSymbols$l)
|
|
7102
|
+
for (var prop of __getOwnPropSymbols$l(b)) {
|
|
7103
|
+
if (__propIsEnum$l.call(b, prop))
|
|
7104
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
7358
7105
|
}
|
|
7359
7106
|
return a;
|
|
7360
7107
|
};
|
|
7361
|
-
var __spreadProps$
|
|
7108
|
+
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
7362
7109
|
let messageInstance;
|
|
7363
7110
|
let defaultDuration = 3;
|
|
7364
7111
|
let defaultTop;
|
|
@@ -7465,7 +7212,7 @@ function notice(args) {
|
|
|
7465
7212
|
}
|
|
7466
7213
|
getRCNotificationInstance(args, ({ prefixCls, instance }) => {
|
|
7467
7214
|
instance.notice(
|
|
7468
|
-
getRCNoticeProps(__spreadProps$
|
|
7215
|
+
getRCNoticeProps(__spreadProps$h(__spreadValues$l({}, args), { key: target, onClose: callback }), prefixCls)
|
|
7469
7216
|
);
|
|
7470
7217
|
});
|
|
7471
7218
|
});
|
|
@@ -7494,7 +7241,7 @@ const api = {
|
|
|
7494
7241
|
function attachTypeApi(originalApi, type) {
|
|
7495
7242
|
originalApi[type] = (content, duration, onClose) => {
|
|
7496
7243
|
if (isArgsProps(content)) {
|
|
7497
|
-
return originalApi.open(__spreadProps$
|
|
7244
|
+
return originalApi.open(__spreadProps$h(__spreadValues$l({}, content), { type }));
|
|
7498
7245
|
}
|
|
7499
7246
|
if (typeof duration === "function") {
|
|
7500
7247
|
onClose = duration;
|
|
@@ -7508,25 +7255,25 @@ function attachTypeApi(originalApi, type) {
|
|
|
7508
7255
|
);
|
|
7509
7256
|
api.warn = api.warning;
|
|
7510
7257
|
|
|
7511
|
-
var __defProp$
|
|
7512
|
-
var __defProps$
|
|
7513
|
-
var __getOwnPropDescs$
|
|
7514
|
-
var __getOwnPropSymbols$
|
|
7515
|
-
var __hasOwnProp$
|
|
7516
|
-
var __propIsEnum$
|
|
7517
|
-
var __defNormalProp$
|
|
7518
|
-
var __spreadValues$
|
|
7258
|
+
var __defProp$k = Object.defineProperty;
|
|
7259
|
+
var __defProps$g = Object.defineProperties;
|
|
7260
|
+
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
7261
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
|
7262
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
|
7263
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
|
7264
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7265
|
+
var __spreadValues$k = (a, b) => {
|
|
7519
7266
|
for (var prop in b || (b = {}))
|
|
7520
|
-
if (__hasOwnProp$
|
|
7521
|
-
__defNormalProp$
|
|
7522
|
-
if (__getOwnPropSymbols$
|
|
7523
|
-
for (var prop of __getOwnPropSymbols$
|
|
7524
|
-
if (__propIsEnum$
|
|
7525
|
-
__defNormalProp$
|
|
7267
|
+
if (__hasOwnProp$k.call(b, prop))
|
|
7268
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
7269
|
+
if (__getOwnPropSymbols$k)
|
|
7270
|
+
for (var prop of __getOwnPropSymbols$k(b)) {
|
|
7271
|
+
if (__propIsEnum$k.call(b, prop))
|
|
7272
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
7526
7273
|
}
|
|
7527
7274
|
return a;
|
|
7528
7275
|
};
|
|
7529
|
-
var __spreadProps$
|
|
7276
|
+
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
7530
7277
|
const initialChartState = {
|
|
7531
7278
|
pointers: {},
|
|
7532
7279
|
resourceData: {},
|
|
@@ -7536,8 +7283,8 @@ const chartReducer = (state = initialChartState, action) => {
|
|
|
7536
7283
|
switch (action.type) {
|
|
7537
7284
|
case "SET_POINTER" /* SET_POINTER */: {
|
|
7538
7285
|
const { uuid, left, text, visible, value } = action.payload;
|
|
7539
|
-
return __spreadProps$
|
|
7540
|
-
pointers: __spreadProps$
|
|
7286
|
+
return __spreadProps$g(__spreadValues$k({}, state), {
|
|
7287
|
+
pointers: __spreadProps$g(__spreadValues$k({}, state.pointers), {
|
|
7541
7288
|
[uuid]: {
|
|
7542
7289
|
left,
|
|
7543
7290
|
text,
|
|
@@ -7549,16 +7296,16 @@ const chartReducer = (state = initialChartState, action) => {
|
|
|
7549
7296
|
}
|
|
7550
7297
|
case "SET_RESOURCE_DATA" /* SET_RESOURCE_DATA */: {
|
|
7551
7298
|
const { uuid, data } = action.payload;
|
|
7552
|
-
return __spreadProps$
|
|
7553
|
-
resourceData: __spreadProps$
|
|
7299
|
+
return __spreadProps$g(__spreadValues$k({}, state), {
|
|
7300
|
+
resourceData: __spreadProps$g(__spreadValues$k({}, state.resourceData), {
|
|
7554
7301
|
[uuid]: data
|
|
7555
7302
|
})
|
|
7556
7303
|
});
|
|
7557
7304
|
}
|
|
7558
7305
|
case "SET_AVERAGE_DATA" /* SET_AVERAGE_DATA */: {
|
|
7559
7306
|
const { uuid, average } = action.payload;
|
|
7560
|
-
return __spreadProps$
|
|
7561
|
-
averageData: __spreadProps$
|
|
7307
|
+
return __spreadProps$g(__spreadValues$k({}, state), {
|
|
7308
|
+
averageData: __spreadProps$g(__spreadValues$k({}, state.averageData), {
|
|
7562
7309
|
[uuid]: average
|
|
7563
7310
|
})
|
|
7564
7311
|
});
|
|
@@ -7569,25 +7316,25 @@ const chartReducer = (state = initialChartState, action) => {
|
|
|
7569
7316
|
}
|
|
7570
7317
|
};
|
|
7571
7318
|
|
|
7572
|
-
var __defProp$
|
|
7573
|
-
var __defProps$
|
|
7574
|
-
var __getOwnPropDescs$
|
|
7575
|
-
var __getOwnPropSymbols$
|
|
7576
|
-
var __hasOwnProp$
|
|
7577
|
-
var __propIsEnum$
|
|
7578
|
-
var __defNormalProp$
|
|
7579
|
-
var __spreadValues$
|
|
7319
|
+
var __defProp$j = Object.defineProperty;
|
|
7320
|
+
var __defProps$f = Object.defineProperties;
|
|
7321
|
+
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
7322
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
7323
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
7324
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
7325
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7326
|
+
var __spreadValues$j = (a, b) => {
|
|
7580
7327
|
for (var prop in b || (b = {}))
|
|
7581
|
-
if (__hasOwnProp$
|
|
7582
|
-
__defNormalProp$
|
|
7583
|
-
if (__getOwnPropSymbols$
|
|
7584
|
-
for (var prop of __getOwnPropSymbols$
|
|
7585
|
-
if (__propIsEnum$
|
|
7586
|
-
__defNormalProp$
|
|
7328
|
+
if (__hasOwnProp$j.call(b, prop))
|
|
7329
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
7330
|
+
if (__getOwnPropSymbols$j)
|
|
7331
|
+
for (var prop of __getOwnPropSymbols$j(b)) {
|
|
7332
|
+
if (__propIsEnum$j.call(b, prop))
|
|
7333
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
7587
7334
|
}
|
|
7588
7335
|
return a;
|
|
7589
7336
|
};
|
|
7590
|
-
var __spreadProps$
|
|
7337
|
+
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
7591
7338
|
var ModalActions = /* @__PURE__ */ ((ModalActions2) => {
|
|
7592
7339
|
ModalActions2["PUSH_MODAL"] = "PUSH_MODAL";
|
|
7593
7340
|
ModalActions2["POP_MODAL"] = "POP_MODAL";
|
|
@@ -7608,22 +7355,22 @@ const modalReducer = (state = initialModalState, action) => {
|
|
|
7608
7355
|
)) {
|
|
7609
7356
|
return state;
|
|
7610
7357
|
}
|
|
7611
|
-
return __spreadProps$
|
|
7612
|
-
stack: state.stack.concat(__spreadProps$
|
|
7358
|
+
return __spreadProps$f(__spreadValues$j({}, state), {
|
|
7359
|
+
stack: state.stack.concat(__spreadProps$f(__spreadValues$j({}, action.payload), {
|
|
7613
7360
|
id: MODAL_ID++
|
|
7614
7361
|
}))
|
|
7615
7362
|
});
|
|
7616
7363
|
case "POP_MODAL" /* POP_MODAL */:
|
|
7617
|
-
return __spreadProps$
|
|
7364
|
+
return __spreadProps$f(__spreadValues$j({}, state), {
|
|
7618
7365
|
stack: state.stack.slice(0, -1)
|
|
7619
7366
|
});
|
|
7620
7367
|
case "REMOVE_MODAL" /* REMOVE_MODAL */:
|
|
7621
|
-
return __spreadProps$
|
|
7368
|
+
return __spreadProps$f(__spreadValues$j({}, state), {
|
|
7622
7369
|
closeId: 0,
|
|
7623
7370
|
stack: state.stack.filter((m) => m.id !== action.id)
|
|
7624
7371
|
});
|
|
7625
7372
|
case "CLOSE_MODAL" /* CLOSE_MODAL */:
|
|
7626
|
-
return __spreadProps$
|
|
7373
|
+
return __spreadProps$f(__spreadValues$j({}, state), {
|
|
7627
7374
|
closeId: action.id
|
|
7628
7375
|
});
|
|
7629
7376
|
default:
|
|
@@ -7680,33 +7427,33 @@ const VerticalStyle = "v4tv3mf";
|
|
|
7680
7427
|
const HorizontalStepContentStyle = "h6l1tj4";
|
|
7681
7428
|
const VerticalStepContentStyle = "v18frne8";
|
|
7682
7429
|
|
|
7683
|
-
var __defProp$
|
|
7684
|
-
var __defProps$
|
|
7685
|
-
var __getOwnPropDescs$
|
|
7686
|
-
var __getOwnPropSymbols$
|
|
7687
|
-
var __hasOwnProp$
|
|
7688
|
-
var __propIsEnum$
|
|
7689
|
-
var __defNormalProp$
|
|
7690
|
-
var __spreadValues$
|
|
7430
|
+
var __defProp$i = Object.defineProperty;
|
|
7431
|
+
var __defProps$e = Object.defineProperties;
|
|
7432
|
+
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
|
7433
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
7434
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
7435
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
7436
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7437
|
+
var __spreadValues$i = (a, b) => {
|
|
7691
7438
|
for (var prop in b || (b = {}))
|
|
7692
|
-
if (__hasOwnProp$
|
|
7693
|
-
__defNormalProp$
|
|
7694
|
-
if (__getOwnPropSymbols$
|
|
7695
|
-
for (var prop of __getOwnPropSymbols$
|
|
7696
|
-
if (__propIsEnum$
|
|
7697
|
-
__defNormalProp$
|
|
7439
|
+
if (__hasOwnProp$i.call(b, prop))
|
|
7440
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
7441
|
+
if (__getOwnPropSymbols$i)
|
|
7442
|
+
for (var prop of __getOwnPropSymbols$i(b)) {
|
|
7443
|
+
if (__propIsEnum$i.call(b, prop))
|
|
7444
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
7698
7445
|
}
|
|
7699
7446
|
return a;
|
|
7700
7447
|
};
|
|
7701
|
-
var __spreadProps$
|
|
7702
|
-
var __objRest$
|
|
7448
|
+
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
|
7449
|
+
var __objRest$7 = (source, exclude) => {
|
|
7703
7450
|
var target = {};
|
|
7704
7451
|
for (var prop in source)
|
|
7705
|
-
if (__hasOwnProp$
|
|
7452
|
+
if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
7706
7453
|
target[prop] = source[prop];
|
|
7707
|
-
if (source != null && __getOwnPropSymbols$
|
|
7708
|
-
for (var prop of __getOwnPropSymbols$
|
|
7709
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
7454
|
+
if (source != null && __getOwnPropSymbols$i)
|
|
7455
|
+
for (var prop of __getOwnPropSymbols$i(source)) {
|
|
7456
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
|
|
7710
7457
|
target[prop] = source[prop];
|
|
7711
7458
|
}
|
|
7712
7459
|
return target;
|
|
@@ -7723,7 +7470,7 @@ const StepTitle = (props) => {
|
|
|
7723
7470
|
setTooltipEnable({});
|
|
7724
7471
|
}
|
|
7725
7472
|
}, [textRef]);
|
|
7726
|
-
return /* @__PURE__ */ React__default.createElement(Tooltip, __spreadProps$
|
|
7473
|
+
return /* @__PURE__ */ React__default.createElement(Tooltip, __spreadProps$e(__spreadValues$i({}, tooltipEnable), { title: step.title }), /* @__PURE__ */ React__default.createElement(
|
|
7727
7474
|
"div",
|
|
7728
7475
|
{
|
|
7729
7476
|
className: isVerticalMode ? VerticalStepContentStyle : HorizontalStepContentStyle
|
|
@@ -7740,7 +7487,7 @@ const Steps = (props) => {
|
|
|
7740
7487
|
current = 0,
|
|
7741
7488
|
disabled,
|
|
7742
7489
|
preview = false
|
|
7743
|
-
} = _a, stepsProps = __objRest$
|
|
7490
|
+
} = _a, stepsProps = __objRest$7(_a, [
|
|
7744
7491
|
"stepsConfig",
|
|
7745
7492
|
"direction",
|
|
7746
7493
|
"containerClassname",
|
|
@@ -7761,7 +7508,7 @@ const Steps = (props) => {
|
|
|
7761
7508
|
},
|
|
7762
7509
|
/* @__PURE__ */ React__default.createElement(
|
|
7763
7510
|
Steps$1,
|
|
7764
|
-
__spreadProps$
|
|
7511
|
+
__spreadProps$e(__spreadValues$i({}, stepsProps), {
|
|
7765
7512
|
direction,
|
|
7766
7513
|
current,
|
|
7767
7514
|
type: "default"
|
|
@@ -7770,7 +7517,7 @@ const Steps = (props) => {
|
|
|
7770
7517
|
var _a2;
|
|
7771
7518
|
return /* @__PURE__ */ React__default.createElement(
|
|
7772
7519
|
Steps$1.Step,
|
|
7773
|
-
__spreadProps$
|
|
7520
|
+
__spreadProps$e(__spreadValues$i({
|
|
7774
7521
|
key: index
|
|
7775
7522
|
}, step), {
|
|
7776
7523
|
disabled: isPreviewMode ? false : (_a2 = disabled != null ? disabled : step == null ? void 0 : step.disabled) != null ? _a2 : index > current,
|
|
@@ -7795,33 +7542,33 @@ const Steps = (props) => {
|
|
|
7795
7542
|
);
|
|
7796
7543
|
};
|
|
7797
7544
|
|
|
7798
|
-
var __defProp$
|
|
7799
|
-
var __defProps$
|
|
7800
|
-
var __getOwnPropDescs$
|
|
7801
|
-
var __getOwnPropSymbols$
|
|
7802
|
-
var __hasOwnProp$
|
|
7803
|
-
var __propIsEnum$
|
|
7804
|
-
var __defNormalProp$
|
|
7805
|
-
var __spreadValues$
|
|
7545
|
+
var __defProp$h = Object.defineProperty;
|
|
7546
|
+
var __defProps$d = Object.defineProperties;
|
|
7547
|
+
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
7548
|
+
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
|
7549
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
7550
|
+
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
|
7551
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7552
|
+
var __spreadValues$h = (a, b) => {
|
|
7806
7553
|
for (var prop in b || (b = {}))
|
|
7807
|
-
if (__hasOwnProp$
|
|
7808
|
-
__defNormalProp$
|
|
7809
|
-
if (__getOwnPropSymbols$
|
|
7810
|
-
for (var prop of __getOwnPropSymbols$
|
|
7811
|
-
if (__propIsEnum$
|
|
7812
|
-
__defNormalProp$
|
|
7554
|
+
if (__hasOwnProp$h.call(b, prop))
|
|
7555
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
7556
|
+
if (__getOwnPropSymbols$h)
|
|
7557
|
+
for (var prop of __getOwnPropSymbols$h(b)) {
|
|
7558
|
+
if (__propIsEnum$h.call(b, prop))
|
|
7559
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
7813
7560
|
}
|
|
7814
7561
|
return a;
|
|
7815
7562
|
};
|
|
7816
|
-
var __spreadProps$
|
|
7817
|
-
var __objRest$
|
|
7563
|
+
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
|
7564
|
+
var __objRest$6 = (source, exclude) => {
|
|
7818
7565
|
var target = {};
|
|
7819
7566
|
for (var prop in source)
|
|
7820
|
-
if (__hasOwnProp$
|
|
7567
|
+
if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
7821
7568
|
target[prop] = source[prop];
|
|
7822
|
-
if (source != null && __getOwnPropSymbols$
|
|
7823
|
-
for (var prop of __getOwnPropSymbols$
|
|
7824
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
7569
|
+
if (source != null && __getOwnPropSymbols$h)
|
|
7570
|
+
for (var prop of __getOwnPropSymbols$h(source)) {
|
|
7571
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
|
|
7825
7572
|
target[prop] = source[prop];
|
|
7826
7573
|
}
|
|
7827
7574
|
return target;
|
|
@@ -7848,7 +7595,7 @@ const Modal = (props) => {
|
|
|
7848
7595
|
showCancel = true,
|
|
7849
7596
|
showOk = true,
|
|
7850
7597
|
afterClose
|
|
7851
|
-
} = _a, restProps = __objRest$
|
|
7598
|
+
} = _a, restProps = __objRest$6(_a, [
|
|
7852
7599
|
"error",
|
|
7853
7600
|
"okText",
|
|
7854
7601
|
"cancelText",
|
|
@@ -7903,7 +7650,7 @@ const Modal = (props) => {
|
|
|
7903
7650
|
}
|
|
7904
7651
|
return /* @__PURE__ */ React__default.createElement(
|
|
7905
7652
|
Modal$1,
|
|
7906
|
-
__spreadProps$
|
|
7653
|
+
__spreadProps$d(__spreadValues$h({
|
|
7907
7654
|
maskClosable,
|
|
7908
7655
|
className: cs(
|
|
7909
7656
|
className,
|
|
@@ -7938,7 +7685,7 @@ const Modal = (props) => {
|
|
|
7938
7685
|
prevText
|
|
7939
7686
|
), error && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("span", { className: "modal-error" }, error))), /* @__PURE__ */ React__default.createElement("div", { className: "modal-footer-btn-group" }, showCancel && /* @__PURE__ */ React__default.createElement(
|
|
7940
7687
|
Button,
|
|
7941
|
-
__spreadValues$
|
|
7688
|
+
__spreadValues$h({
|
|
7942
7689
|
type: "quiet",
|
|
7943
7690
|
onMouseDown: (e) => {
|
|
7944
7691
|
e.preventDefault();
|
|
@@ -7952,7 +7699,7 @@ const Modal = (props) => {
|
|
|
7952
7699
|
cancelText
|
|
7953
7700
|
), showOk && /* @__PURE__ */ React__default.createElement(
|
|
7954
7701
|
Button,
|
|
7955
|
-
__spreadValues$
|
|
7702
|
+
__spreadValues$h({
|
|
7956
7703
|
onClick: (e) => {
|
|
7957
7704
|
var _a2, _b2;
|
|
7958
7705
|
onOk == null ? void 0 : onOk(e);
|
|
@@ -8099,46 +7846,46 @@ const Pagination = props => {
|
|
|
8099
7846
|
}))));
|
|
8100
7847
|
};
|
|
8101
7848
|
|
|
8102
|
-
var __defProp$
|
|
8103
|
-
var __getOwnPropSymbols$
|
|
8104
|
-
var __hasOwnProp$
|
|
8105
|
-
var __propIsEnum$
|
|
8106
|
-
var __defNormalProp$
|
|
8107
|
-
var __spreadValues$
|
|
7849
|
+
var __defProp$g = Object.defineProperty;
|
|
7850
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
7851
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
7852
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
7853
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7854
|
+
var __spreadValues$g = (a, b) => {
|
|
8108
7855
|
for (var prop in b || (b = {}))
|
|
8109
|
-
if (__hasOwnProp$
|
|
8110
|
-
__defNormalProp$
|
|
8111
|
-
if (__getOwnPropSymbols$
|
|
8112
|
-
for (var prop of __getOwnPropSymbols$
|
|
8113
|
-
if (__propIsEnum$
|
|
8114
|
-
__defNormalProp$
|
|
7856
|
+
if (__hasOwnProp$g.call(b, prop))
|
|
7857
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
7858
|
+
if (__getOwnPropSymbols$g)
|
|
7859
|
+
for (var prop of __getOwnPropSymbols$g(b)) {
|
|
7860
|
+
if (__propIsEnum$g.call(b, prop))
|
|
7861
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
8115
7862
|
}
|
|
8116
7863
|
return a;
|
|
8117
7864
|
};
|
|
8118
|
-
const Progress = (props) => /* @__PURE__ */ React__default.createElement(Progress$1, __spreadValues$
|
|
7865
|
+
const Progress = (props) => /* @__PURE__ */ React__default.createElement(Progress$1, __spreadValues$g({}, props));
|
|
8119
7866
|
|
|
8120
|
-
var __defProp$
|
|
8121
|
-
var __getOwnPropSymbols$
|
|
8122
|
-
var __hasOwnProp$
|
|
8123
|
-
var __propIsEnum$
|
|
8124
|
-
var __defNormalProp$
|
|
7867
|
+
var __defProp$f = Object.defineProperty;
|
|
7868
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
7869
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
7870
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
7871
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, {
|
|
8125
7872
|
enumerable: true,
|
|
8126
7873
|
configurable: true,
|
|
8127
7874
|
writable: true,
|
|
8128
7875
|
value
|
|
8129
7876
|
}) : obj[key] = value;
|
|
8130
|
-
var __spreadValues$
|
|
8131
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
8132
|
-
if (__getOwnPropSymbols$
|
|
8133
|
-
if (__propIsEnum$
|
|
7877
|
+
var __spreadValues$f = (a, b) => {
|
|
7878
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$f.call(b, prop)) __defNormalProp$f(a, prop, b[prop]);
|
|
7879
|
+
if (__getOwnPropSymbols$f) for (var prop of __getOwnPropSymbols$f(b)) {
|
|
7880
|
+
if (__propIsEnum$f.call(b, prop)) __defNormalProp$f(a, prop, b[prop]);
|
|
8134
7881
|
}
|
|
8135
7882
|
return a;
|
|
8136
7883
|
};
|
|
8137
|
-
var __objRest$
|
|
7884
|
+
var __objRest$5 = (source, exclude) => {
|
|
8138
7885
|
var target = {};
|
|
8139
|
-
for (var prop in source) if (__hasOwnProp$
|
|
8140
|
-
if (source != null && __getOwnPropSymbols$
|
|
8141
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
7886
|
+
for (var prop in source) if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
7887
|
+
if (source != null && __getOwnPropSymbols$f) for (var prop of __getOwnPropSymbols$f(source)) {
|
|
7888
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop)) target[prop] = source[prop];
|
|
8142
7889
|
}
|
|
8143
7890
|
return target;
|
|
8144
7891
|
};
|
|
@@ -8154,7 +7901,7 @@ const Radio = _a => {
|
|
|
8154
7901
|
checked,
|
|
8155
7902
|
compact = false
|
|
8156
7903
|
} = _b,
|
|
8157
|
-
props = __objRest$
|
|
7904
|
+
props = __objRest$5(_b, ["children", "className", "checked", "compact"]);
|
|
8158
7905
|
const {
|
|
8159
7906
|
description
|
|
8160
7907
|
} = props;
|
|
@@ -8164,7 +7911,7 @@ const Radio = _a => {
|
|
|
8164
7911
|
className: cx("radio-description", Typo.Label.l4_regular)
|
|
8165
7912
|
}, description));
|
|
8166
7913
|
}
|
|
8167
|
-
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Radio$1, __spreadValues$
|
|
7914
|
+
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Radio$1, __spreadValues$f({
|
|
8168
7915
|
className: cx(className, RadioStyle, compact && "compact"),
|
|
8169
7916
|
checked: checked || false,
|
|
8170
7917
|
"data-test": context.name ? `${context.name}-${String(props.value)}` : String(props.value)
|
|
@@ -8176,13 +7923,13 @@ const RadioGroup = _c => {
|
|
|
8176
7923
|
children,
|
|
8177
7924
|
className
|
|
8178
7925
|
} = _d,
|
|
8179
|
-
props = __objRest$
|
|
7926
|
+
props = __objRest$5(_d, ["children", "className"]);
|
|
8180
7927
|
return /* @__PURE__ */React__default.createElement(KitRadioGroupContext.Provider, {
|
|
8181
7928
|
value: {
|
|
8182
7929
|
disabled: props.disabled,
|
|
8183
7930
|
name: props.name
|
|
8184
7931
|
}
|
|
8185
|
-
}, /* @__PURE__ */React__default.createElement(Radio$1.Group, __spreadValues$
|
|
7932
|
+
}, /* @__PURE__ */React__default.createElement(Radio$1.Group, __spreadValues$f({
|
|
8186
7933
|
className: cx(className, RadioGroupStyle)
|
|
8187
7934
|
}, props), children ? children : null));
|
|
8188
7935
|
};
|
|
@@ -8192,7 +7939,7 @@ const RadioButton = _e => {
|
|
|
8192
7939
|
children,
|
|
8193
7940
|
className
|
|
8194
7941
|
} = _f,
|
|
8195
|
-
props = __objRest$
|
|
7942
|
+
props = __objRest$5(_f, ["children", "className"]);
|
|
8196
7943
|
const {
|
|
8197
7944
|
type,
|
|
8198
7945
|
placeholder = "Label",
|
|
@@ -8238,12 +7985,53 @@ const RadioButton = _e => {
|
|
|
8238
7985
|
className: "ant-radio-button-input-label"
|
|
8239
7986
|
}, typeof children === "string" ? children : ""));
|
|
8240
7987
|
};
|
|
8241
|
-
return /* @__PURE__ */React__default.createElement(Radio$1.Button, __spreadValues$
|
|
7988
|
+
return /* @__PURE__ */React__default.createElement(Radio$1.Button, __spreadValues$f({
|
|
8242
7989
|
className: cx(className, RadioButtonStyle),
|
|
8243
7990
|
value: radioButtonValue
|
|
8244
7991
|
}, props), renderChildren());
|
|
8245
7992
|
};
|
|
8246
7993
|
|
|
7994
|
+
var __defProp$e = Object.defineProperty;
|
|
7995
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
7996
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
7997
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
7998
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7999
|
+
var __spreadValues$e = (a, b) => {
|
|
8000
|
+
for (var prop in b || (b = {}))
|
|
8001
|
+
if (__hasOwnProp$e.call(b, prop))
|
|
8002
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
8003
|
+
if (__getOwnPropSymbols$e)
|
|
8004
|
+
for (var prop of __getOwnPropSymbols$e(b)) {
|
|
8005
|
+
if (__propIsEnum$e.call(b, prop))
|
|
8006
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
8007
|
+
}
|
|
8008
|
+
return a;
|
|
8009
|
+
};
|
|
8010
|
+
var __objRest$4 = (source, exclude) => {
|
|
8011
|
+
var target = {};
|
|
8012
|
+
for (var prop in source)
|
|
8013
|
+
if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
8014
|
+
target[prop] = source[prop];
|
|
8015
|
+
if (source != null && __getOwnPropSymbols$e)
|
|
8016
|
+
for (var prop of __getOwnPropSymbols$e(source)) {
|
|
8017
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
|
|
8018
|
+
target[prop] = source[prop];
|
|
8019
|
+
}
|
|
8020
|
+
return target;
|
|
8021
|
+
};
|
|
8022
|
+
const SearchInput = (props) => {
|
|
8023
|
+
const _a = props, { onChange, debounceWait = 300 } = _a, restProps = __objRest$4(_a, ["onChange", "debounceWait"]);
|
|
8024
|
+
const onSearch = _.debounce(onChange, debounceWait);
|
|
8025
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
8026
|
+
Input,
|
|
8027
|
+
__spreadValues$e({
|
|
8028
|
+
style: { width: 276 },
|
|
8029
|
+
prefix: /* @__PURE__ */ React__default.createElement(SearchOutlined, null),
|
|
8030
|
+
onChange: (e) => onSearch(e.target.value)
|
|
8031
|
+
}, restProps)
|
|
8032
|
+
);
|
|
8033
|
+
};
|
|
8034
|
+
|
|
8247
8035
|
const inputStyle = "ivqqkzv";
|
|
8248
8036
|
const SimplePagination = props => {
|
|
8249
8037
|
const {
|
|
@@ -8320,35 +8108,35 @@ const SimplePagination = props => {
|
|
|
8320
8108
|
})));
|
|
8321
8109
|
};
|
|
8322
8110
|
|
|
8323
|
-
var __defProp$
|
|
8324
|
-
var __defProps$
|
|
8325
|
-
var __getOwnPropDescs$
|
|
8326
|
-
var __getOwnPropSymbols$
|
|
8327
|
-
var __hasOwnProp$
|
|
8328
|
-
var __propIsEnum$
|
|
8329
|
-
var __defNormalProp$
|
|
8111
|
+
var __defProp$d = Object.defineProperty;
|
|
8112
|
+
var __defProps$c = Object.defineProperties;
|
|
8113
|
+
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
8114
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
8115
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
8116
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
8117
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, {
|
|
8330
8118
|
enumerable: true,
|
|
8331
8119
|
configurable: true,
|
|
8332
8120
|
writable: true,
|
|
8333
8121
|
value
|
|
8334
8122
|
}) : obj[key] = value;
|
|
8335
|
-
var __spreadValues$
|
|
8336
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
8337
|
-
if (__getOwnPropSymbols$
|
|
8338
|
-
if (__propIsEnum$
|
|
8123
|
+
var __spreadValues$d = (a, b) => {
|
|
8124
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$d.call(b, prop)) __defNormalProp$d(a, prop, b[prop]);
|
|
8125
|
+
if (__getOwnPropSymbols$d) for (var prop of __getOwnPropSymbols$d(b)) {
|
|
8126
|
+
if (__propIsEnum$d.call(b, prop)) __defNormalProp$d(a, prop, b[prop]);
|
|
8339
8127
|
}
|
|
8340
8128
|
return a;
|
|
8341
8129
|
};
|
|
8342
|
-
var __spreadProps$
|
|
8343
|
-
var __objRest$
|
|
8130
|
+
var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
|
|
8131
|
+
var __objRest$3 = (source, exclude) => {
|
|
8344
8132
|
var target = {};
|
|
8345
|
-
for (var prop in source) if (__hasOwnProp$
|
|
8346
|
-
if (source != null && __getOwnPropSymbols$
|
|
8347
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
8133
|
+
for (var prop in source) if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
8134
|
+
if (source != null && __getOwnPropSymbols$d) for (var prop of __getOwnPropSymbols$d(source)) {
|
|
8135
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop)) target[prop] = source[prop];
|
|
8348
8136
|
}
|
|
8349
8137
|
return target;
|
|
8350
8138
|
};
|
|
8351
|
-
const PresetColors = ["blue", "red", "yellow", "green", "gray"];
|
|
8139
|
+
const PresetColors$1 = ["blue", "red", "yellow", "green", "gray"];
|
|
8352
8140
|
const StatusCapsuleStyle = "sddwhm6";
|
|
8353
8141
|
const StatusCode = /*#__PURE__*/styled('i')({
|
|
8354
8142
|
name: "StatusCode",
|
|
@@ -8387,11 +8175,11 @@ const StatusCapsule = _a => {
|
|
|
8387
8175
|
offWhiteMode,
|
|
8388
8176
|
number
|
|
8389
8177
|
} = _b,
|
|
8390
|
-
props = __objRest$
|
|
8178
|
+
props = __objRest$3(_b, ["color", "className", "loading", "hoverable", "children", "offWhiteMode", "number"]);
|
|
8391
8179
|
const computedColor = ColorMap[color] || color;
|
|
8392
|
-
return /* @__PURE__ */React__default.createElement(Tag$1, __spreadProps$
|
|
8180
|
+
return /* @__PURE__ */React__default.createElement(Tag$1, __spreadProps$c(__spreadValues$d({}, props), {
|
|
8393
8181
|
className: cs(className, StatusCapsuleStyle, Typo.Label.l4_regular, "ui-kit-status-capsule", {
|
|
8394
|
-
[`ant-tag-${computedColor}`]: PresetColors.includes(computedColor),
|
|
8182
|
+
[`ant-tag-${computedColor}`]: PresetColors$1.includes(computedColor),
|
|
8395
8183
|
"tag-hover": hoverable,
|
|
8396
8184
|
"off-white": offWhiteMode
|
|
8397
8185
|
}),
|
|
@@ -8482,26 +8270,26 @@ const ColumnTitle = props => {
|
|
|
8482
8270
|
}));
|
|
8483
8271
|
};
|
|
8484
8272
|
|
|
8485
|
-
var __defProp$
|
|
8486
|
-
var __defProps$
|
|
8487
|
-
var __getOwnPropDescs$
|
|
8488
|
-
var __getOwnPropSymbols$
|
|
8489
|
-
var __hasOwnProp$
|
|
8490
|
-
var __propIsEnum$
|
|
8491
|
-
var __defNormalProp$
|
|
8273
|
+
var __defProp$c = Object.defineProperty;
|
|
8274
|
+
var __defProps$b = Object.defineProperties;
|
|
8275
|
+
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
|
8276
|
+
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
8277
|
+
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
8278
|
+
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
8279
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, {
|
|
8492
8280
|
enumerable: true,
|
|
8493
8281
|
configurable: true,
|
|
8494
8282
|
writable: true,
|
|
8495
8283
|
value
|
|
8496
8284
|
}) : obj[key] = value;
|
|
8497
|
-
var __spreadValues$
|
|
8498
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
8499
|
-
if (__getOwnPropSymbols$
|
|
8500
|
-
if (__propIsEnum$
|
|
8285
|
+
var __spreadValues$c = (a, b) => {
|
|
8286
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$c.call(b, prop)) __defNormalProp$c(a, prop, b[prop]);
|
|
8287
|
+
if (__getOwnPropSymbols$c) for (var prop of __getOwnPropSymbols$c(b)) {
|
|
8288
|
+
if (__propIsEnum$c.call(b, prop)) __defNormalProp$c(a, prop, b[prop]);
|
|
8501
8289
|
}
|
|
8502
8290
|
return a;
|
|
8503
8291
|
};
|
|
8504
|
-
var __spreadProps$
|
|
8292
|
+
var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
|
|
8505
8293
|
const TableContainerStyle = "tc97u5y";
|
|
8506
8294
|
const tableStyleCover = "tfzf37v";
|
|
8507
8295
|
const Table = props => {
|
|
@@ -8528,7 +8316,7 @@ const Table = props => {
|
|
|
8528
8316
|
const orderRef = useRef(null);
|
|
8529
8317
|
const hasScrollBard = useTableBodyHasScrollBar(wrapper, dataSource);
|
|
8530
8318
|
const _columns = useMemo(() => columns.map(column => {
|
|
8531
|
-
const _column = __spreadValues$
|
|
8319
|
+
const _column = __spreadValues$c({}, column);
|
|
8532
8320
|
if (_column.sorter && typeof _column.title !== "function") {
|
|
8533
8321
|
_column.title = /* @__PURE__ */React__default.createElement(ColumnTitle, {
|
|
8534
8322
|
title: column.title,
|
|
@@ -8565,12 +8353,12 @@ const Table = props => {
|
|
|
8565
8353
|
onSorterChange == null ? void 0 : onSorterChange(orderRef.current, sorter.columnKey);
|
|
8566
8354
|
}
|
|
8567
8355
|
},
|
|
8568
|
-
onRow: (record, index) => __spreadValues$
|
|
8356
|
+
onRow: (record, index) => __spreadValues$c({
|
|
8569
8357
|
onClick: evt => onRowClick == null ? void 0 : onRowClick(record, index, evt)
|
|
8570
8358
|
}, onRow == null ? void 0 : onRow(record, index)),
|
|
8571
8359
|
rowClassName,
|
|
8572
8360
|
scroll,
|
|
8573
|
-
rowSelection: rowSelection && __spreadProps$
|
|
8361
|
+
rowSelection: rowSelection && __spreadProps$b(__spreadValues$c({}, rowSelection), {
|
|
8574
8362
|
columnWidth: 32
|
|
8575
8363
|
}),
|
|
8576
8364
|
showSorterTooltip: false
|
|
@@ -8632,33 +8420,33 @@ const moveItemInArray = (array, fromIndex, toIndex) => {
|
|
|
8632
8420
|
return sortArr;
|
|
8633
8421
|
};
|
|
8634
8422
|
|
|
8635
|
-
var __defProp$
|
|
8636
|
-
var __defProps$
|
|
8637
|
-
var __getOwnPropDescs$
|
|
8638
|
-
var __getOwnPropSymbols$
|
|
8639
|
-
var __hasOwnProp$
|
|
8640
|
-
var __propIsEnum$
|
|
8641
|
-
var __defNormalProp$
|
|
8642
|
-
var __spreadValues$
|
|
8423
|
+
var __defProp$b = Object.defineProperty;
|
|
8424
|
+
var __defProps$a = Object.defineProperties;
|
|
8425
|
+
var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
|
|
8426
|
+
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
8427
|
+
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
8428
|
+
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
8429
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8430
|
+
var __spreadValues$b = (a, b) => {
|
|
8643
8431
|
for (var prop in b || (b = {}))
|
|
8644
|
-
if (__hasOwnProp$
|
|
8645
|
-
__defNormalProp$
|
|
8646
|
-
if (__getOwnPropSymbols$
|
|
8647
|
-
for (var prop of __getOwnPropSymbols$
|
|
8648
|
-
if (__propIsEnum$
|
|
8649
|
-
__defNormalProp$
|
|
8432
|
+
if (__hasOwnProp$b.call(b, prop))
|
|
8433
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
8434
|
+
if (__getOwnPropSymbols$b)
|
|
8435
|
+
for (var prop of __getOwnPropSymbols$b(b)) {
|
|
8436
|
+
if (__propIsEnum$b.call(b, prop))
|
|
8437
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
8650
8438
|
}
|
|
8651
8439
|
return a;
|
|
8652
8440
|
};
|
|
8653
|
-
var __spreadProps$
|
|
8654
|
-
var __objRest = (source, exclude) => {
|
|
8441
|
+
var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
|
|
8442
|
+
var __objRest$2 = (source, exclude) => {
|
|
8655
8443
|
var target = {};
|
|
8656
8444
|
for (var prop in source)
|
|
8657
|
-
if (__hasOwnProp$
|
|
8445
|
+
if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
8658
8446
|
target[prop] = source[prop];
|
|
8659
|
-
if (source != null && __getOwnPropSymbols$
|
|
8660
|
-
for (var prop of __getOwnPropSymbols$
|
|
8661
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
8447
|
+
if (source != null && __getOwnPropSymbols$b)
|
|
8448
|
+
for (var prop of __getOwnPropSymbols$b(source)) {
|
|
8449
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
|
|
8662
8450
|
target[prop] = source[prop];
|
|
8663
8451
|
}
|
|
8664
8452
|
return target;
|
|
@@ -8674,7 +8462,7 @@ const AddRowButton = (props) => {
|
|
|
8674
8462
|
const _a = buttonProps || {}, {
|
|
8675
8463
|
disabled: disabledFromProp,
|
|
8676
8464
|
onClick
|
|
8677
|
-
} = _a, restButtonProps = __objRest(_a, [
|
|
8465
|
+
} = _a, restButtonProps = __objRest$2(_a, [
|
|
8678
8466
|
"disabled",
|
|
8679
8467
|
"onClick"
|
|
8680
8468
|
]);
|
|
@@ -8699,9 +8487,9 @@ const AddRowButton = (props) => {
|
|
|
8699
8487
|
if (!columns.length) {
|
|
8700
8488
|
return null;
|
|
8701
8489
|
}
|
|
8702
|
-
return CustomizedButton ? /* @__PURE__ */ React__default.createElement(CustomizedButton, __spreadValues$
|
|
8490
|
+
return CustomizedButton ? /* @__PURE__ */ React__default.createElement(CustomizedButton, __spreadValues$b({}, props)) : /* @__PURE__ */ React__default.createElement(AddRowButtonWrapper, { className }, /* @__PURE__ */ React__default.createElement(
|
|
8703
8491
|
Button,
|
|
8704
|
-
__spreadProps$
|
|
8492
|
+
__spreadProps$a(__spreadValues$b({}, restButtonProps), {
|
|
8705
8493
|
type: restButtonProps.type || "ordinary",
|
|
8706
8494
|
size: restButtonProps.size || "small",
|
|
8707
8495
|
prefixIcon: restButtonProps.prefixIcon || /* @__PURE__ */ React__default.createElement(PlusAddCreateNew16SecondaryIcon, null),
|
|
@@ -8796,25 +8584,25 @@ const CheckboxColumnBodyCell = ({ data, column, index, onChange }) => {
|
|
|
8796
8584
|
);
|
|
8797
8585
|
};
|
|
8798
8586
|
|
|
8799
|
-
var __defProp$
|
|
8800
|
-
var __defProps$
|
|
8801
|
-
var __getOwnPropDescs$
|
|
8802
|
-
var __getOwnPropSymbols$
|
|
8803
|
-
var __hasOwnProp$
|
|
8804
|
-
var __propIsEnum$
|
|
8805
|
-
var __defNormalProp$
|
|
8806
|
-
var __spreadValues$
|
|
8587
|
+
var __defProp$a = Object.defineProperty;
|
|
8588
|
+
var __defProps$9 = Object.defineProperties;
|
|
8589
|
+
var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
|
|
8590
|
+
var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
|
|
8591
|
+
var __hasOwnProp$a = Object.prototype.hasOwnProperty;
|
|
8592
|
+
var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
|
|
8593
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8594
|
+
var __spreadValues$a = (a, b) => {
|
|
8807
8595
|
for (var prop in b || (b = {}))
|
|
8808
|
-
if (__hasOwnProp$
|
|
8809
|
-
__defNormalProp$
|
|
8810
|
-
if (__getOwnPropSymbols$
|
|
8811
|
-
for (var prop of __getOwnPropSymbols$
|
|
8812
|
-
if (__propIsEnum$
|
|
8813
|
-
__defNormalProp$
|
|
8596
|
+
if (__hasOwnProp$a.call(b, prop))
|
|
8597
|
+
__defNormalProp$a(a, prop, b[prop]);
|
|
8598
|
+
if (__getOwnPropSymbols$a)
|
|
8599
|
+
for (var prop of __getOwnPropSymbols$a(b)) {
|
|
8600
|
+
if (__propIsEnum$a.call(b, prop))
|
|
8601
|
+
__defNormalProp$a(a, prop, b[prop]);
|
|
8814
8602
|
}
|
|
8815
8603
|
return a;
|
|
8816
8604
|
};
|
|
8817
|
-
var __spreadProps$
|
|
8605
|
+
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
|
|
8818
8606
|
const InputPassword = (props) => {
|
|
8819
8607
|
const [showPassword, setShowPassword] = useState(false);
|
|
8820
8608
|
useEffect(() => {
|
|
@@ -8830,7 +8618,7 @@ const InputPassword = (props) => {
|
|
|
8830
8618
|
const inputType = showPassword ? "text" : "password";
|
|
8831
8619
|
return /* @__PURE__ */ React__default.createElement(
|
|
8832
8620
|
Input,
|
|
8833
|
-
__spreadProps$
|
|
8621
|
+
__spreadProps$9(__spreadValues$a({}, props), {
|
|
8834
8622
|
type: inputType,
|
|
8835
8623
|
suffix: showPassword ? /* @__PURE__ */ React__default.createElement(
|
|
8836
8624
|
EyeOutlined,
|
|
@@ -8850,9 +8638,9 @@ const InputPassword = (props) => {
|
|
|
8850
8638
|
};
|
|
8851
8639
|
const CustomInput = (props) => {
|
|
8852
8640
|
if (props.type === "password") {
|
|
8853
|
-
return /* @__PURE__ */ React__default.createElement(InputPassword, __spreadValues$
|
|
8641
|
+
return /* @__PURE__ */ React__default.createElement(InputPassword, __spreadValues$a({}, props));
|
|
8854
8642
|
}
|
|
8855
|
-
return /* @__PURE__ */ React__default.createElement(Input, __spreadValues$
|
|
8643
|
+
return /* @__PURE__ */ React__default.createElement(Input, __spreadValues$a({}, props));
|
|
8856
8644
|
};
|
|
8857
8645
|
const InputColumnHeaderCell = ({ disabled, column, onChange, onBlur, onVisibleChange }) => {
|
|
8858
8646
|
const _onChange = (e) => {
|
|
@@ -8976,25 +8764,25 @@ var ValidateTriggerType = /* @__PURE__ */ ((ValidateTriggerType2) => {
|
|
|
8976
8764
|
return ValidateTriggerType2;
|
|
8977
8765
|
})(ValidateTriggerType || {});
|
|
8978
8766
|
|
|
8979
|
-
var __defProp$
|
|
8980
|
-
var __defProps$
|
|
8981
|
-
var __getOwnPropDescs$
|
|
8982
|
-
var __getOwnPropSymbols$
|
|
8983
|
-
var __hasOwnProp$
|
|
8984
|
-
var __propIsEnum$
|
|
8985
|
-
var __defNormalProp$
|
|
8986
|
-
var __spreadValues$
|
|
8767
|
+
var __defProp$9 = Object.defineProperty;
|
|
8768
|
+
var __defProps$8 = Object.defineProperties;
|
|
8769
|
+
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
|
8770
|
+
var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
|
|
8771
|
+
var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
|
|
8772
|
+
var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
|
|
8773
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8774
|
+
var __spreadValues$9 = (a, b) => {
|
|
8987
8775
|
for (var prop in b || (b = {}))
|
|
8988
|
-
if (__hasOwnProp$
|
|
8989
|
-
__defNormalProp$
|
|
8990
|
-
if (__getOwnPropSymbols$
|
|
8991
|
-
for (var prop of __getOwnPropSymbols$
|
|
8992
|
-
if (__propIsEnum$
|
|
8993
|
-
__defNormalProp$
|
|
8776
|
+
if (__hasOwnProp$9.call(b, prop))
|
|
8777
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
8778
|
+
if (__getOwnPropSymbols$9)
|
|
8779
|
+
for (var prop of __getOwnPropSymbols$9(b)) {
|
|
8780
|
+
if (__propIsEnum$9.call(b, prop))
|
|
8781
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
8994
8782
|
}
|
|
8995
8783
|
return a;
|
|
8996
8784
|
};
|
|
8997
|
-
var __spreadProps$
|
|
8785
|
+
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
8998
8786
|
const TableFormBodyCell = (props) => {
|
|
8999
8787
|
const {
|
|
9000
8788
|
column,
|
|
@@ -9027,7 +8815,7 @@ const TableFormBodyCell = (props) => {
|
|
|
9027
8815
|
(currentValue) => {
|
|
9028
8816
|
var _a;
|
|
9029
8817
|
const value = currentValue != null ? currentValue : data[rowIndex][column.key];
|
|
9030
|
-
const rowData = __spreadProps$
|
|
8818
|
+
const rowData = __spreadProps$8(__spreadValues$9({}, data[rowIndex]), { [column.key]: value });
|
|
9031
8819
|
const rowValidateRes = getRowValidateResult(rowData);
|
|
9032
8820
|
if (rowValidateRes) {
|
|
9033
8821
|
return;
|
|
@@ -9053,7 +8841,7 @@ const TableFormBodyCell = (props) => {
|
|
|
9053
8841
|
}, [validateAll, triggerValidate, setIsTouched]);
|
|
9054
8842
|
const _onChange = (value, data2) => {
|
|
9055
8843
|
const newData = data2.map(
|
|
9056
|
-
(row, i) => i === rowIndex ? __spreadProps$
|
|
8844
|
+
(row, i) => i === rowIndex ? __spreadProps$8(__spreadValues$9({}, row), { [column.key]: value }) : row
|
|
9057
8845
|
);
|
|
9058
8846
|
onChange == null ? void 0 : onChange(newData, rowIndex, column.key);
|
|
9059
8847
|
if (validateTriggerType === ValidateTriggerType.Normal && isTouched || validateTriggerType === ValidateTriggerType.Aggressive) {
|
|
@@ -9131,25 +8919,25 @@ const TableFormBodyCell = (props) => {
|
|
|
9131
8919
|
);
|
|
9132
8920
|
};
|
|
9133
8921
|
|
|
9134
|
-
var __defProp$
|
|
9135
|
-
var __defProps$
|
|
9136
|
-
var __getOwnPropDescs$
|
|
9137
|
-
var __getOwnPropSymbols$
|
|
9138
|
-
var __hasOwnProp$
|
|
9139
|
-
var __propIsEnum$
|
|
9140
|
-
var __defNormalProp$
|
|
9141
|
-
var __spreadValues$
|
|
8922
|
+
var __defProp$8 = Object.defineProperty;
|
|
8923
|
+
var __defProps$7 = Object.defineProperties;
|
|
8924
|
+
var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
|
|
8925
|
+
var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
|
|
8926
|
+
var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
|
|
8927
|
+
var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
|
|
8928
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8929
|
+
var __spreadValues$8 = (a, b) => {
|
|
9142
8930
|
for (var prop in b || (b = {}))
|
|
9143
|
-
if (__hasOwnProp$
|
|
9144
|
-
__defNormalProp$
|
|
9145
|
-
if (__getOwnPropSymbols$
|
|
9146
|
-
for (var prop of __getOwnPropSymbols$
|
|
9147
|
-
if (__propIsEnum$
|
|
9148
|
-
__defNormalProp$
|
|
8931
|
+
if (__hasOwnProp$8.call(b, prop))
|
|
8932
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
8933
|
+
if (__getOwnPropSymbols$8)
|
|
8934
|
+
for (var prop of __getOwnPropSymbols$8(b)) {
|
|
8935
|
+
if (__propIsEnum$8.call(b, prop))
|
|
8936
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
9149
8937
|
}
|
|
9150
8938
|
return a;
|
|
9151
8939
|
};
|
|
9152
|
-
var __spreadProps$
|
|
8940
|
+
var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
|
|
9153
8941
|
const TableFormRowDeleteAction = (props) => {
|
|
9154
8942
|
var _a, _b, _c, _d;
|
|
9155
8943
|
const { deleteConfig, row, updateData, rowIndex, data } = props;
|
|
@@ -9242,7 +9030,7 @@ const TableFormRow = (props) => {
|
|
|
9242
9030
|
);
|
|
9243
9031
|
});
|
|
9244
9032
|
const DraggableHandle = useMemo(
|
|
9245
|
-
() => draggable && provided ? /* @__PURE__ */ React__default.createElement(DraggableHandleWrapper, __spreadValues$
|
|
9033
|
+
() => draggable && provided ? /* @__PURE__ */ React__default.createElement(DraggableHandleWrapper, __spreadValues$8({}, provided.dragHandleProps), /* @__PURE__ */ React__default.createElement(
|
|
9246
9034
|
Icon,
|
|
9247
9035
|
{
|
|
9248
9036
|
src: HandlePoint816SecondaryIcon,
|
|
@@ -9304,7 +9092,7 @@ const TableFormBodyRows = memo((props) => {
|
|
|
9304
9092
|
);
|
|
9305
9093
|
return draggable ? /* @__PURE__ */ React__default.createElement(DragDropContext, { onDragEnd }, /* @__PURE__ */ React__default.createElement(Droppable, { droppableId: "droppable" }, (provided) => /* @__PURE__ */ React__default.createElement(
|
|
9306
9094
|
"div",
|
|
9307
|
-
__spreadValues$
|
|
9095
|
+
__spreadValues$8({
|
|
9308
9096
|
className: "draggable-container",
|
|
9309
9097
|
ref: provided.innerRef
|
|
9310
9098
|
}, provided.droppableProps),
|
|
@@ -9315,9 +9103,9 @@ const TableFormBodyRows = memo((props) => {
|
|
|
9315
9103
|
key: `draggable-id-${i}`,
|
|
9316
9104
|
index: i
|
|
9317
9105
|
},
|
|
9318
|
-
(provided2, snapshot) => /* @__PURE__ */ React__default.createElement("div", __spreadValues$
|
|
9106
|
+
(provided2, snapshot) => /* @__PURE__ */ React__default.createElement("div", __spreadValues$8({ ref: provided2.innerRef }, provided2.draggableProps), /* @__PURE__ */ React__default.createElement(
|
|
9319
9107
|
TableFormRow,
|
|
9320
|
-
__spreadProps$
|
|
9108
|
+
__spreadProps$7(__spreadValues$8({}, props), {
|
|
9321
9109
|
rowIndex: i,
|
|
9322
9110
|
provided: provided2,
|
|
9323
9111
|
snapshot
|
|
@@ -9325,28 +9113,28 @@ const TableFormBodyRows = memo((props) => {
|
|
|
9325
9113
|
))
|
|
9326
9114
|
)),
|
|
9327
9115
|
provided.placeholder
|
|
9328
|
-
))) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, data.map((_d, i) => /* @__PURE__ */ React__default.createElement(TableFormRow, __spreadProps$
|
|
9116
|
+
))) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, data.map((_d, i) => /* @__PURE__ */ React__default.createElement(TableFormRow, __spreadProps$7(__spreadValues$8({}, props), { rowIndex: i, key: `table-row-${i}` }))));
|
|
9329
9117
|
});
|
|
9330
9118
|
|
|
9331
|
-
var __defProp$
|
|
9332
|
-
var __defProps$
|
|
9333
|
-
var __getOwnPropDescs$
|
|
9334
|
-
var __getOwnPropSymbols$
|
|
9335
|
-
var __hasOwnProp$
|
|
9336
|
-
var __propIsEnum$
|
|
9337
|
-
var __defNormalProp$
|
|
9338
|
-
var __spreadValues$
|
|
9119
|
+
var __defProp$7 = Object.defineProperty;
|
|
9120
|
+
var __defProps$6 = Object.defineProperties;
|
|
9121
|
+
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
9122
|
+
var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
|
|
9123
|
+
var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
|
|
9124
|
+
var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
|
|
9125
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9126
|
+
var __spreadValues$7 = (a, b) => {
|
|
9339
9127
|
for (var prop in b || (b = {}))
|
|
9340
|
-
if (__hasOwnProp$
|
|
9341
|
-
__defNormalProp$
|
|
9342
|
-
if (__getOwnPropSymbols$
|
|
9343
|
-
for (var prop of __getOwnPropSymbols$
|
|
9344
|
-
if (__propIsEnum$
|
|
9345
|
-
__defNormalProp$
|
|
9128
|
+
if (__hasOwnProp$7.call(b, prop))
|
|
9129
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
9130
|
+
if (__getOwnPropSymbols$7)
|
|
9131
|
+
for (var prop of __getOwnPropSymbols$7(b)) {
|
|
9132
|
+
if (__propIsEnum$7.call(b, prop))
|
|
9133
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
9346
9134
|
}
|
|
9347
9135
|
return a;
|
|
9348
9136
|
};
|
|
9349
|
-
var __spreadProps$
|
|
9137
|
+
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
|
9350
9138
|
const BatchInputListHeaderCell = (props) => {
|
|
9351
9139
|
const { column, disabled, data, disableBatchFilling, onBlur, onChange } = props;
|
|
9352
9140
|
const [errMsg, setErrMsg] = useState();
|
|
@@ -9358,7 +9146,7 @@ const BatchInputListHeaderCell = (props) => {
|
|
|
9358
9146
|
setErrMsg(err || void 0);
|
|
9359
9147
|
const shouldAutoIncrease = column.type !== "password" && column.autoIncrease;
|
|
9360
9148
|
const newData = data.map((cell, rowIndex) => {
|
|
9361
|
-
return __spreadProps$
|
|
9149
|
+
return __spreadProps$6(__spreadValues$7({}, cell), {
|
|
9362
9150
|
[column.key]: shouldAutoIncrease && typeof value === "string" ? increaseLastNumber(value, rowIndex) : value
|
|
9363
9151
|
});
|
|
9364
9152
|
});
|
|
@@ -9375,7 +9163,7 @@ const BatchInputListHeaderCell = (props) => {
|
|
|
9375
9163
|
const CellComponent = ColumnHeaderImpls[column.type];
|
|
9376
9164
|
return /* @__PURE__ */ React__default.createElement(
|
|
9377
9165
|
CellComponent,
|
|
9378
|
-
__spreadProps$
|
|
9166
|
+
__spreadProps$6(__spreadValues$7({}, props), {
|
|
9379
9167
|
column,
|
|
9380
9168
|
onChange: headerOnChange,
|
|
9381
9169
|
onBlur: _onBlur
|
|
@@ -9410,25 +9198,25 @@ const BatchInputListHeaderCell = (props) => {
|
|
|
9410
9198
|
);
|
|
9411
9199
|
};
|
|
9412
9200
|
|
|
9413
|
-
var __defProp$
|
|
9414
|
-
var __defProps$
|
|
9415
|
-
var __getOwnPropDescs$
|
|
9416
|
-
var __getOwnPropSymbols$
|
|
9417
|
-
var __hasOwnProp$
|
|
9418
|
-
var __propIsEnum$
|
|
9419
|
-
var __defNormalProp$
|
|
9420
|
-
var __spreadValues$
|
|
9201
|
+
var __defProp$6 = Object.defineProperty;
|
|
9202
|
+
var __defProps$5 = Object.defineProperties;
|
|
9203
|
+
var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
|
|
9204
|
+
var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
|
|
9205
|
+
var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
|
|
9206
|
+
var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
|
|
9207
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9208
|
+
var __spreadValues$6 = (a, b) => {
|
|
9421
9209
|
for (var prop in b || (b = {}))
|
|
9422
|
-
if (__hasOwnProp$
|
|
9423
|
-
__defNormalProp$
|
|
9424
|
-
if (__getOwnPropSymbols$
|
|
9425
|
-
for (var prop of __getOwnPropSymbols$
|
|
9426
|
-
if (__propIsEnum$
|
|
9427
|
-
__defNormalProp$
|
|
9210
|
+
if (__hasOwnProp$6.call(b, prop))
|
|
9211
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
9212
|
+
if (__getOwnPropSymbols$6)
|
|
9213
|
+
for (var prop of __getOwnPropSymbols$6(b)) {
|
|
9214
|
+
if (__propIsEnum$6.call(b, prop))
|
|
9215
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
9428
9216
|
}
|
|
9429
9217
|
return a;
|
|
9430
9218
|
};
|
|
9431
|
-
var __spreadProps$
|
|
9219
|
+
var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
|
|
9432
9220
|
const DEFAULT_ROW_COUNT = 3;
|
|
9433
9221
|
const TableForm = React__default.forwardRef(
|
|
9434
9222
|
(props, ref) => {
|
|
@@ -9490,7 +9278,7 @@ const TableForm = React__default.forwardRef(
|
|
|
9490
9278
|
(key, error) => {
|
|
9491
9279
|
if (error) {
|
|
9492
9280
|
const newData = latestData.map((cell) => {
|
|
9493
|
-
return __spreadProps$
|
|
9281
|
+
return __spreadProps$5(__spreadValues$6({}, cell), {
|
|
9494
9282
|
[key]: ""
|
|
9495
9283
|
});
|
|
9496
9284
|
});
|
|
@@ -9758,6 +9546,78 @@ const TimeZoneOption = ({
|
|
|
9758
9546
|
})));
|
|
9759
9547
|
};
|
|
9760
9548
|
|
|
9549
|
+
const IconStyle = "i1g85yz3";
|
|
9550
|
+
|
|
9551
|
+
var __defProp$5 = Object.defineProperty;
|
|
9552
|
+
var __defProps$4 = Object.defineProperties;
|
|
9553
|
+
var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
|
|
9554
|
+
var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
|
|
9555
|
+
var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
|
|
9556
|
+
var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
|
|
9557
|
+
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, {
|
|
9558
|
+
enumerable: true,
|
|
9559
|
+
configurable: true,
|
|
9560
|
+
writable: true,
|
|
9561
|
+
value
|
|
9562
|
+
}) : obj[key] = value;
|
|
9563
|
+
var __spreadValues$5 = (a, b) => {
|
|
9564
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$5.call(b, prop)) __defNormalProp$5(a, prop, b[prop]);
|
|
9565
|
+
if (__getOwnPropSymbols$5) for (var prop of __getOwnPropSymbols$5(b)) {
|
|
9566
|
+
if (__propIsEnum$5.call(b, prop)) __defNormalProp$5(a, prop, b[prop]);
|
|
9567
|
+
}
|
|
9568
|
+
return a;
|
|
9569
|
+
};
|
|
9570
|
+
var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
|
|
9571
|
+
var __objRest$1 = (source, exclude) => {
|
|
9572
|
+
var target = {};
|
|
9573
|
+
for (var prop in source) if (__hasOwnProp$5.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
9574
|
+
if (source != null && __getOwnPropSymbols$5) for (var prop of __getOwnPropSymbols$5(source)) {
|
|
9575
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$5.call(source, prop)) target[prop] = source[prop];
|
|
9576
|
+
}
|
|
9577
|
+
return target;
|
|
9578
|
+
};
|
|
9579
|
+
const PresetColors = ["blue", "red", "yellow", "green", "gray", "purple"];
|
|
9580
|
+
const Size = {
|
|
9581
|
+
small: "s1sck0th",
|
|
9582
|
+
medium: "m855nr1",
|
|
9583
|
+
large: "l1270xpg"
|
|
9584
|
+
};
|
|
9585
|
+
const TokenStyle = "t14rextb";
|
|
9586
|
+
const Token = React__default.forwardRef((_a, ref) => {
|
|
9587
|
+
var _b = _a,
|
|
9588
|
+
{
|
|
9589
|
+
size = "small",
|
|
9590
|
+
color = "gray",
|
|
9591
|
+
className,
|
|
9592
|
+
icon,
|
|
9593
|
+
checked,
|
|
9594
|
+
children,
|
|
9595
|
+
tooltipConfig
|
|
9596
|
+
} = _b,
|
|
9597
|
+
props = __objRest$1(_b, ["size", "color", "className", "icon", "checked", "children", "tooltipConfig"]);
|
|
9598
|
+
return /* @__PURE__ */React__default.createElement(Tag$1, __spreadProps$4(__spreadValues$5({}, props), {
|
|
9599
|
+
ref,
|
|
9600
|
+
className: cs(className, Size[size], TokenStyle, {
|
|
9601
|
+
[Typo.Label.l4_regular]: size === "small" || size === "medium",
|
|
9602
|
+
[Typo.Label.l3_regular]: size === "large",
|
|
9603
|
+
[`ant-tag-${color}`]: PresetColors.includes(color)
|
|
9604
|
+
}, "ui-kit-token", checked && "ui-kit-token-checked"),
|
|
9605
|
+
closeIcon: /* @__PURE__ */React__default.createElement(Tooltip, __spreadValues$5({
|
|
9606
|
+
title: tooltipConfig == null ? void 0 : tooltipConfig.title
|
|
9607
|
+
}, !(tooltipConfig == null ? void 0 : tooltipConfig.title) && {
|
|
9608
|
+
visible: false
|
|
9609
|
+
}), /* @__PURE__ */React__default.createElement(Icon, {
|
|
9610
|
+
className: "selected-icon",
|
|
9611
|
+
src: XmarkRemoveSmall16RegularInheritIcon,
|
|
9612
|
+
iconHeight: 16,
|
|
9613
|
+
iconWidth: 16
|
|
9614
|
+
})),
|
|
9615
|
+
color: color === "gray" ? void 0 : color
|
|
9616
|
+
}), icon && /* @__PURE__ */React__default.createElement("span", {
|
|
9617
|
+
className: cs("ui-kit-tag-icon", IconStyle)
|
|
9618
|
+
}, icon), children);
|
|
9619
|
+
});
|
|
9620
|
+
|
|
9761
9621
|
const Inline = "iq1gosr";
|
|
9762
9622
|
const Truncate = props => {
|
|
9763
9623
|
const {
|
|
@@ -9863,7 +9723,6 @@ function getAntdKit() {
|
|
|
9863
9723
|
timelineItem: Timeline.Item,
|
|
9864
9724
|
checkboxGroup: Checkbox$1.Group,
|
|
9865
9725
|
typographyText: Typography.Text,
|
|
9866
|
-
cascader: Cascader,
|
|
9867
9726
|
upload: Upload,
|
|
9868
9727
|
datePickerRangePicker: DatePicker.RangePicker,
|
|
9869
9728
|
tableForm: TableForm,
|
|
@@ -9971,27 +9830,27 @@ const FailedLoad = props => {
|
|
|
9971
9830
|
}, refetchText || t("common.retry")));
|
|
9972
9831
|
};
|
|
9973
9832
|
|
|
9974
|
-
var __defProp$
|
|
9975
|
-
var __defProps$
|
|
9976
|
-
var __getOwnPropDescs$
|
|
9977
|
-
var __getOwnPropSymbols$
|
|
9978
|
-
var __hasOwnProp$
|
|
9979
|
-
var __propIsEnum$
|
|
9980
|
-
var __defNormalProp$
|
|
9981
|
-
var __spreadValues$
|
|
9833
|
+
var __defProp$4 = Object.defineProperty;
|
|
9834
|
+
var __defProps$3 = Object.defineProperties;
|
|
9835
|
+
var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
|
|
9836
|
+
var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
|
|
9837
|
+
var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
|
|
9838
|
+
var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
|
|
9839
|
+
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9840
|
+
var __spreadValues$4 = (a, b) => {
|
|
9982
9841
|
for (var prop in b || (b = {}))
|
|
9983
|
-
if (__hasOwnProp$
|
|
9984
|
-
__defNormalProp$
|
|
9985
|
-
if (__getOwnPropSymbols$
|
|
9986
|
-
for (var prop of __getOwnPropSymbols$
|
|
9987
|
-
if (__propIsEnum$
|
|
9988
|
-
__defNormalProp$
|
|
9842
|
+
if (__hasOwnProp$4.call(b, prop))
|
|
9843
|
+
__defNormalProp$4(a, prop, b[prop]);
|
|
9844
|
+
if (__getOwnPropSymbols$4)
|
|
9845
|
+
for (var prop of __getOwnPropSymbols$4(b)) {
|
|
9846
|
+
if (__propIsEnum$4.call(b, prop))
|
|
9847
|
+
__defNormalProp$4(a, prop, b[prop]);
|
|
9989
9848
|
}
|
|
9990
9849
|
return a;
|
|
9991
9850
|
};
|
|
9992
|
-
var __spreadProps$
|
|
9851
|
+
var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
|
|
9993
9852
|
var __publicField = (obj, key, value) => {
|
|
9994
|
-
__defNormalProp$
|
|
9853
|
+
__defNormalProp$4(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
9995
9854
|
return value;
|
|
9996
9855
|
};
|
|
9997
9856
|
function makeUUID(length = 25) {
|
|
@@ -10079,7 +9938,7 @@ class Batcher {
|
|
|
10079
9938
|
}
|
|
10080
9939
|
}
|
|
10081
9940
|
function createBatchMessageMethods(message, batchHelper) {
|
|
10082
|
-
let _message = __spreadValues$
|
|
9941
|
+
let _message = __spreadValues$4({}, message);
|
|
10083
9942
|
const methods = [
|
|
10084
9943
|
"success",
|
|
10085
9944
|
"error",
|
|
@@ -10094,7 +9953,7 @@ function createBatchMessageMethods(message, batchHelper) {
|
|
|
10094
9953
|
_message[method] = function(...args) {
|
|
10095
9954
|
const key = makeUUID();
|
|
10096
9955
|
const content = normalizeContent(args, method);
|
|
10097
|
-
batcher.addMessage(__spreadProps$
|
|
9956
|
+
batcher.addMessage(__spreadProps$3(__spreadValues$4({}, content), { key }));
|
|
10098
9957
|
return () => {
|
|
10099
9958
|
};
|
|
10100
9959
|
};
|
|
@@ -10128,32 +9987,32 @@ const tickFormatter = (tick, dateRange) => {
|
|
|
10128
9987
|
return dayjs(tick).format("MM/DD");
|
|
10129
9988
|
};
|
|
10130
9989
|
|
|
10131
|
-
var __defProp$
|
|
10132
|
-
var __defProps$
|
|
10133
|
-
var __getOwnPropDescs$
|
|
10134
|
-
var __getOwnPropSymbols$
|
|
10135
|
-
var __hasOwnProp$
|
|
10136
|
-
var __propIsEnum$
|
|
10137
|
-
var __defNormalProp$
|
|
10138
|
-
var __spreadValues$
|
|
9990
|
+
var __defProp$3 = Object.defineProperty;
|
|
9991
|
+
var __defProps$2 = Object.defineProperties;
|
|
9992
|
+
var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
|
|
9993
|
+
var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
|
|
9994
|
+
var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
|
|
9995
|
+
var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
|
|
9996
|
+
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9997
|
+
var __spreadValues$3 = (a, b) => {
|
|
10139
9998
|
for (var prop in b || (b = {}))
|
|
10140
|
-
if (__hasOwnProp$
|
|
10141
|
-
__defNormalProp$
|
|
10142
|
-
if (__getOwnPropSymbols$
|
|
10143
|
-
for (var prop of __getOwnPropSymbols$
|
|
10144
|
-
if (__propIsEnum$
|
|
10145
|
-
__defNormalProp$
|
|
9999
|
+
if (__hasOwnProp$3.call(b, prop))
|
|
10000
|
+
__defNormalProp$3(a, prop, b[prop]);
|
|
10001
|
+
if (__getOwnPropSymbols$3)
|
|
10002
|
+
for (var prop of __getOwnPropSymbols$3(b)) {
|
|
10003
|
+
if (__propIsEnum$3.call(b, prop))
|
|
10004
|
+
__defNormalProp$3(a, prop, b[prop]);
|
|
10146
10005
|
}
|
|
10147
10006
|
return a;
|
|
10148
10007
|
};
|
|
10149
|
-
var __spreadProps$
|
|
10008
|
+
var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
|
|
10150
10009
|
const ModalStack = () => {
|
|
10151
10010
|
const stack = useKitSelector(
|
|
10152
10011
|
(state) => state.modal.stack
|
|
10153
10012
|
);
|
|
10154
10013
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, stack.map((modal) => /* @__PURE__ */ React__default.createElement(
|
|
10155
10014
|
modal.component,
|
|
10156
|
-
__spreadProps$
|
|
10015
|
+
__spreadProps$2(__spreadValues$3({}, modal.props), {
|
|
10157
10016
|
modalId: modal.id,
|
|
10158
10017
|
onClose: () => {
|
|
10159
10018
|
var _a;
|
|
@@ -10167,6 +10026,146 @@ const ModalStack = () => {
|
|
|
10167
10026
|
)));
|
|
10168
10027
|
};
|
|
10169
10028
|
|
|
10029
|
+
const DoubleRowOptionStyleWrapper = "drhfj7c";
|
|
10030
|
+
const CascaderDefaultOptionLabel = "ct9qoak";
|
|
10031
|
+
const CascaderNotData = "crhnxq5";
|
|
10032
|
+
const CascaderDefaultHeaderSearch = "c1iq43vd";
|
|
10033
|
+
const CascaderInputStyle = "c1h2v0a8";
|
|
10034
|
+
const CascaderDefaultHeaderContainer = "cgzzd7y";
|
|
10035
|
+
const CascaderDefaultHeader = "c1ec3mnt";
|
|
10036
|
+
const CascaderDropdown = "c1iye0zj";
|
|
10037
|
+
const CascaderSmallDropdown = "ckhyuyx";
|
|
10038
|
+
const CascaderLargeDropdown = "c1fmq9lv";
|
|
10039
|
+
|
|
10040
|
+
var __defProp$2 = Object.defineProperty;
|
|
10041
|
+
var __defProps$1 = Object.defineProperties;
|
|
10042
|
+
var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
|
|
10043
|
+
var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
|
|
10044
|
+
var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
|
|
10045
|
+
var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
|
|
10046
|
+
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10047
|
+
var __spreadValues$2 = (a, b) => {
|
|
10048
|
+
for (var prop in b || (b = {}))
|
|
10049
|
+
if (__hasOwnProp$2.call(b, prop))
|
|
10050
|
+
__defNormalProp$2(a, prop, b[prop]);
|
|
10051
|
+
if (__getOwnPropSymbols$2)
|
|
10052
|
+
for (var prop of __getOwnPropSymbols$2(b)) {
|
|
10053
|
+
if (__propIsEnum$2.call(b, prop))
|
|
10054
|
+
__defNormalProp$2(a, prop, b[prop]);
|
|
10055
|
+
}
|
|
10056
|
+
return a;
|
|
10057
|
+
};
|
|
10058
|
+
var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
|
|
10059
|
+
const NotDataContent = ({ content }) => {
|
|
10060
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: cs(CascaderNotData) }, content);
|
|
10061
|
+
};
|
|
10062
|
+
const PresetCascaderHeader = ({ defaultContent, searchProps }) => {
|
|
10063
|
+
const { t } = useParrotTranslation();
|
|
10064
|
+
const [selectedAll, setSelectedAll] = useState(false);
|
|
10065
|
+
const onClick = (e) => {
|
|
10066
|
+
var _a;
|
|
10067
|
+
setSelectedAll(!selectedAll);
|
|
10068
|
+
(_a = defaultContent == null ? void 0 : defaultContent.onClickAll) == null ? void 0 : _a.call(defaultContent, selectedAll);
|
|
10069
|
+
};
|
|
10070
|
+
return /* @__PURE__ */ React__default.createElement(Flex, { vertical: true, className: CascaderDefaultHeaderContainer }, searchProps ? /* @__PURE__ */ React__default.createElement(
|
|
10071
|
+
SearchInput,
|
|
10072
|
+
__spreadProps$1(__spreadValues$2({}, searchProps), {
|
|
10073
|
+
className: cs(searchProps.className, CascaderDefaultHeaderSearch),
|
|
10074
|
+
style: {
|
|
10075
|
+
width: "unset"
|
|
10076
|
+
}
|
|
10077
|
+
})
|
|
10078
|
+
) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null), (defaultContent == null ? void 0 : defaultContent.hide) ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null) : /* @__PURE__ */ React__default.createElement("div", { className: cs(CascaderDefaultHeader) }, defaultContent == null ? void 0 : defaultContent.label, /* @__PURE__ */ React__default.createElement(Link, { size: "small", onClick }, selectedAll ? t("components.unselect_all") : t("components.select_all"))));
|
|
10079
|
+
};
|
|
10080
|
+
const PresetCascaderRender = ({
|
|
10081
|
+
menus,
|
|
10082
|
+
header,
|
|
10083
|
+
footer,
|
|
10084
|
+
presetHeaderProps
|
|
10085
|
+
}) => {
|
|
10086
|
+
return /* @__PURE__ */ React__default.createElement("div", null, header ? header : /* @__PURE__ */ React__default.createElement(PresetCascaderHeader, __spreadValues$2({}, presetHeaderProps)), menus, footer);
|
|
10087
|
+
};
|
|
10088
|
+
const CascaderDoubleRowOption = ({ leftTop, leftBottom, rightTop, rightBottom, rootClassName }) => {
|
|
10089
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
10090
|
+
Flex,
|
|
10091
|
+
{
|
|
10092
|
+
vertical: true,
|
|
10093
|
+
className: cx(DoubleRowOptionStyleWrapper, rootClassName),
|
|
10094
|
+
gap: 6
|
|
10095
|
+
},
|
|
10096
|
+
/* @__PURE__ */ React__default.createElement(Flex, { justify: "space-between" }, /* @__PURE__ */ React__default.createElement("div", { className: Typo.Label.l2_medium }, leftTop), /* @__PURE__ */ React__default.createElement("div", null, rightTop)),
|
|
10097
|
+
/* @__PURE__ */ React__default.createElement(Flex, { justify: "space-between", className: Typo.Label.l4_regular }, /* @__PURE__ */ React__default.createElement("div", { className: cs(Typo.Label.l4_regular, "bottom", "left") }, leftBottom), /* @__PURE__ */ React__default.createElement("div", { className: cs(Typo.Label.l4_regular, "bottom") }, rightBottom))
|
|
10098
|
+
);
|
|
10099
|
+
};
|
|
10100
|
+
const CascaderOptionWithCount = ({ label, count }) => {
|
|
10101
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: CascaderDefaultOptionLabel }, label, count ? /* @__PURE__ */ React__default.createElement("span", { className: "label" }, count.selected, "/", count.total) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null));
|
|
10102
|
+
};
|
|
10103
|
+
const defaultTagRender = (props) => {
|
|
10104
|
+
return /* @__PURE__ */ React__default.createElement(Token, __spreadValues$2({ size: "medium", color: "blue", key: props.value }, props), props.label);
|
|
10105
|
+
};
|
|
10106
|
+
|
|
10107
|
+
var __defProp$1 = Object.defineProperty;
|
|
10108
|
+
var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
|
|
10109
|
+
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
10110
|
+
var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
|
|
10111
|
+
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10112
|
+
var __spreadValues$1 = (a, b) => {
|
|
10113
|
+
for (var prop in b || (b = {}))
|
|
10114
|
+
if (__hasOwnProp$1.call(b, prop))
|
|
10115
|
+
__defNormalProp$1(a, prop, b[prop]);
|
|
10116
|
+
if (__getOwnPropSymbols$1)
|
|
10117
|
+
for (var prop of __getOwnPropSymbols$1(b)) {
|
|
10118
|
+
if (__propIsEnum$1.call(b, prop))
|
|
10119
|
+
__defNormalProp$1(a, prop, b[prop]);
|
|
10120
|
+
}
|
|
10121
|
+
return a;
|
|
10122
|
+
};
|
|
10123
|
+
var __objRest = (source, exclude) => {
|
|
10124
|
+
var target = {};
|
|
10125
|
+
for (var prop in source)
|
|
10126
|
+
if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10127
|
+
target[prop] = source[prop];
|
|
10128
|
+
if (source != null && __getOwnPropSymbols$1)
|
|
10129
|
+
for (var prop of __getOwnPropSymbols$1(source)) {
|
|
10130
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop))
|
|
10131
|
+
target[prop] = source[prop];
|
|
10132
|
+
}
|
|
10133
|
+
return target;
|
|
10134
|
+
};
|
|
10135
|
+
const Cascader = (props) => {
|
|
10136
|
+
const _a = props, {
|
|
10137
|
+
size = "middle",
|
|
10138
|
+
NotData = "No Data",
|
|
10139
|
+
dropdownClassName,
|
|
10140
|
+
presetCascaderRenderProps
|
|
10141
|
+
} = _a, restProps = __objRest(_a, [
|
|
10142
|
+
"size",
|
|
10143
|
+
"NotData",
|
|
10144
|
+
"dropdownClassName",
|
|
10145
|
+
"presetCascaderRenderProps"
|
|
10146
|
+
]);
|
|
10147
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
10148
|
+
Cascader$1,
|
|
10149
|
+
__spreadValues$1({
|
|
10150
|
+
size,
|
|
10151
|
+
prefixCls: Antd5PrefixCls,
|
|
10152
|
+
expandIcon: /* @__PURE__ */ React__default.createElement(Icon, { src: HierarchyTriangleRight16PrimaryIcon }),
|
|
10153
|
+
popupClassName: cs(
|
|
10154
|
+
{
|
|
10155
|
+
[CascaderLargeDropdown]: size === "large",
|
|
10156
|
+
[CascaderSmallDropdown]: size === "small"
|
|
10157
|
+
},
|
|
10158
|
+
dropdownClassName,
|
|
10159
|
+
CascaderDropdown
|
|
10160
|
+
),
|
|
10161
|
+
dropdownRender: (menus) => /* @__PURE__ */ React__default.createElement(PresetCascaderRender, __spreadValues$1({ menus }, presetCascaderRenderProps)),
|
|
10162
|
+
notFoundContent: /* @__PURE__ */ React__default.createElement(NotDataContent, { content: NotData }),
|
|
10163
|
+
tagRender: defaultTagRender,
|
|
10164
|
+
rootClassName: CascaderInputStyle
|
|
10165
|
+
}, restProps)
|
|
10166
|
+
);
|
|
10167
|
+
};
|
|
10168
|
+
|
|
10170
10169
|
var Architecture = /* @__PURE__ */ ((Architecture2) => {
|
|
10171
10170
|
Architecture2["Aarch64"] = "AARCH64";
|
|
10172
10171
|
Architecture2["X86_64"] = "X86_64";
|
|
@@ -10233,4 +10232,4 @@ const useUIKit = () => {
|
|
|
10233
10232
|
return useContext(kitContext);
|
|
10234
10233
|
};
|
|
10235
10234
|
|
|
10236
|
-
export { AbsoluteDate, Architecture, BarChart, BaseIcon, BatchOperation, Button, ButtonStyle, Calendar$1 as Calendar, CannotOperationInfo, CascaderDefaultHeader, CascaderDefaultHeaderContainer, CascaderDefaultHeaderSearch, CascaderDefaultOptionLabel, CascaderDoubleRowOption, CascaderDropdown, CascaderInputStyle, CascaderLargeDropdown, CascaderNotData, CascaderOptionWithCount, CascaderSmallDropdown, Color, ContentWrapper, DateRangePicker, Desc, DoubleRowOptionStyleWrapper, DropdownMenu, FailedLoad, FullView, Icon, InputTagItem, InputTime, KitStoreProvider, LightDesc, ModalActions, ModalStack, NotDataContent, PresetCascaderHeader, PresetCascaderRender, RadioDesc, RelativeTime, RenderMenuItem, Truncate, Typo, UIKitProvider, UIKitStore, ValidateTriggerType, WizardBody, antdKit, closeModal, createBatchMessageMethods, defaultTagRender, getWidth, kitContext, popModal, pushModal, radioStyle, renderBatchOperationMenuItem, stringifyPlan, tableStyleCover, tickFormatter, useElementsSize, useKitDispatch, useKitSelector, useUIKit };
|
|
10235
|
+
export { AbsoluteDate, Architecture, BarChart, BaseIcon, BatchOperation, Button, ButtonStyle, Calendar$1 as Calendar, CannotOperationInfo, Cascader, CascaderDefaultHeader, CascaderDefaultHeaderContainer, CascaderDefaultHeaderSearch, CascaderDefaultOptionLabel, CascaderDoubleRowOption, CascaderDropdown, CascaderInputStyle, CascaderLargeDropdown, CascaderNotData, CascaderOptionWithCount, CascaderSmallDropdown, Color, ContentWrapper, DateRangePicker, Desc, DoubleRowOptionStyleWrapper, DropdownMenu, FailedLoad, FullView, Icon, InputTagItem, InputTime, KitStoreProvider, LightDesc, ModalActions, ModalStack, NotDataContent, PresetCascaderHeader, PresetCascaderRender, RadioDesc, RelativeTime, RenderMenuItem, Truncate, Typo, UIKitProvider, UIKitStore, ValidateTriggerType, WizardBody, antdKit, closeModal, createBatchMessageMethods, defaultTagRender, getWidth, kitContext, popModal, pushModal, radioStyle, renderBatchOperationMenuItem, stringifyPlan, tableStyleCover, tickFormatter, useElementsSize, useKitDispatch, useKitSelector, useUIKit };
|