@cloudtower/eagle 0.27.35 → 0.27.37-dry-1
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 +1216 -1209
- package/dist/esm/index.js +598 -582
- package/dist/esm/stats1.html +1 -1
- package/dist/src/components/OverflowTooltip/OverflowTooltip.stories.d.ts +13 -15
- package/dist/src/spec/base.d.ts +1 -1
- package/dist/style.css +3026 -3019
- package/dist/umd/index.js +601 -584
- package/dist/umd/stats1.html +1 -1
- package/package.json +7 -5
package/dist/umd/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('@linaria/core'), require('@cloudtower/parrot'), require('react-i18next'), require('antd'), require('@cloudtower/icons-react'), require('@linaria/react'), require('classnames'), require('lodash'), require('react-svg-unique-id'), require('react-transition-group'), require('antd5'), require('dayjs'), require('dayjs/plugin/utc'), require('dayjs/plugin/customParseFormat'), require('moment'), require('react-dom'), require('react-is'), require('@ant-design/icons'), require('react-highlight-words'), require('recharts'), require('react-beautiful-dnd'), require('@
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'react', '@linaria/core', '@cloudtower/parrot', 'react-i18next', 'antd', '@cloudtower/icons-react', '@linaria/react', 'classnames', 'lodash', 'react-svg-unique-id', 'react-transition-group', 'antd5', 'dayjs', 'dayjs/plugin/utc', 'dayjs/plugin/customParseFormat', 'moment', 'react-dom', 'react-is', '@ant-design/icons', 'react-highlight-words', 'recharts', 'react-beautiful-dnd', '@
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.index = {}, global.React, global.core, global.parrot, global.reactI18next, global.antd, global.iconsReact, global.react, global.cs, global._, global.reactSvgUniqueId, global.reactTransitionGroup, global.antd5, global.dayjs, global.UTC, global.customParseFormat, global.moment, global.reactDom, global.reactIs, global.icons, global.Highlighter, global.recharts, global.reactBeautifulDnd, global.
|
|
5
|
-
})(this, (function (exports, React, core, parrot, reactI18next, antd, iconsReact, react, cs, _, reactSvgUniqueId, reactTransitionGroup, antd5, dayjs, UTC, customParseFormat, moment, reactDom, reactIs, icons, Highlighter, recharts, reactBeautifulDnd,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('@linaria/core'), require('@cloudtower/parrot'), require('react-i18next'), require('antd'), require('@cloudtower/icons-react'), require('@linaria/react'), require('classnames'), require('lodash'), require('react-svg-unique-id'), require('react-transition-group'), require('antd5'), require('dayjs'), require('dayjs/plugin/utc'), require('dayjs/plugin/customParseFormat'), require('moment'), require('react-dom'), require('react-is'), require('@ant-design/icons'), require('react-highlight-words'), require('recharts'), require('react-beautiful-dnd'), require('@ant-design/icons/CheckCircleFilled'), require('@ant-design/icons/CloseCircleFilled'), require('@ant-design/icons/ExclamationCircleFilled'), require('@ant-design/icons/InfoCircleFilled'), require('@ant-design/icons/LoadingOutlined'), require('@cloudtower/rc-notification'), require('redux'), require('react-redux'), require('timezones.json'), require('antd/lib/locale/en_US'), require('antd/lib/locale/zh_CN')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'react', '@linaria/core', '@cloudtower/parrot', 'react-i18next', 'antd', '@cloudtower/icons-react', '@linaria/react', 'classnames', 'lodash', 'react-svg-unique-id', 'react-transition-group', 'antd5', 'dayjs', 'dayjs/plugin/utc', 'dayjs/plugin/customParseFormat', 'moment', 'react-dom', 'react-is', '@ant-design/icons', 'react-highlight-words', 'recharts', 'react-beautiful-dnd', '@ant-design/icons/CheckCircleFilled', '@ant-design/icons/CloseCircleFilled', '@ant-design/icons/ExclamationCircleFilled', '@ant-design/icons/InfoCircleFilled', '@ant-design/icons/LoadingOutlined', '@cloudtower/rc-notification', 'redux', 'react-redux', 'timezones.json', 'antd/lib/locale/en_US', 'antd/lib/locale/zh_CN'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.index = {}, global.React, global.core, global.parrot, global.reactI18next, global.antd, global.iconsReact, global.react, global.cs, global._, global.reactSvgUniqueId, global.reactTransitionGroup, global.antd5, global.dayjs, global.UTC, global.customParseFormat, global.moment, global.reactDom, global.reactIs, global.icons, global.Highlighter, global.recharts, global.reactBeautifulDnd, global.CheckCircleFilled, global.CloseCircleFilled, global.ExclamationCircleFilled, global.InfoCircleFilled, global.LoadingOutlined, global.RCNotification, global.redux, global.reactRedux, global.TimeZones, global.enUS, global.zhCN));
|
|
5
|
+
})(this, (function (exports, React, core, parrot, reactI18next, antd, iconsReact, react, cs, _, reactSvgUniqueId, reactTransitionGroup, antd5, dayjs, UTC, customParseFormat, moment, reactDom, reactIs, icons, Highlighter, recharts, reactBeautifulDnd, CheckCircleFilled, CloseCircleFilled, ExclamationCircleFilled, InfoCircleFilled, LoadingOutlined, RCNotification, redux, reactRedux, TimeZones, enUS, zhCN) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
8
|
|
|
@@ -32,9 +32,6 @@
|
|
|
32
32
|
var customParseFormat__default = /*#__PURE__*/_interopDefault(customParseFormat);
|
|
33
33
|
var moment__default = /*#__PURE__*/_interopDefault(moment);
|
|
34
34
|
var Highlighter__default = /*#__PURE__*/_interopDefault(Highlighter);
|
|
35
|
-
var Link__default = /*#__PURE__*/_interopDefault(Link$1);
|
|
36
|
-
var useParrotTranslation__default = /*#__PURE__*/_interopDefault(useParrotTranslation$1);
|
|
37
|
-
var Token__default = /*#__PURE__*/_interopDefault(Token$1);
|
|
38
35
|
var CheckCircleFilled__default = /*#__PURE__*/_interopDefault(CheckCircleFilled);
|
|
39
36
|
var CloseCircleFilled__default = /*#__PURE__*/_interopDefault(CloseCircleFilled);
|
|
40
37
|
var ExclamationCircleFilled__default = /*#__PURE__*/_interopDefault(ExclamationCircleFilled);
|
|
@@ -1335,6 +1332,7 @@
|
|
|
1335
1332
|
|
|
1336
1333
|
const EMPTY_FUNCTION = () => {
|
|
1337
1334
|
};
|
|
1335
|
+
const Antd5PrefixCls = "antd5";
|
|
1338
1336
|
|
|
1339
1337
|
var __defProp$W = Object.defineProperty;
|
|
1340
1338
|
var __defNormalProp$W = (obj, key, value) => key in obj ? __defProp$W(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -2592,7 +2590,7 @@
|
|
|
2592
2590
|
}
|
|
2593
2591
|
return target;
|
|
2594
2592
|
};
|
|
2595
|
-
const _exp$
|
|
2593
|
+
const _exp$6 = () => antd.InputNumber;
|
|
2596
2594
|
const _exp2$2 = () => props => props.controls ? "initial" : "none";
|
|
2597
2595
|
const _exp3$1 = () => props => `"${props.suffix ? props.suffix : ""}"`;
|
|
2598
2596
|
const _exp4$1 = () => ({
|
|
@@ -2602,7 +2600,7 @@
|
|
|
2602
2600
|
const _exp6$1 = () => ({
|
|
2603
2601
|
prefix
|
|
2604
2602
|
}) => prefix ? "flex" : "none";
|
|
2605
|
-
const AntdInputNumberStyled = /*#__PURE__*/react.styled(_exp$
|
|
2603
|
+
const AntdInputNumberStyled = /*#__PURE__*/react.styled(_exp$6())({
|
|
2606
2604
|
name: "AntdInputNumberStyled",
|
|
2607
2605
|
class: "a6dbbkm",
|
|
2608
2606
|
propsAsIs: true,
|
|
@@ -2859,7 +2857,7 @@
|
|
|
2859
2857
|
}
|
|
2860
2858
|
return target;
|
|
2861
2859
|
};
|
|
2862
|
-
const _exp$
|
|
2860
|
+
const _exp$5 = () => antd.InputNumber;
|
|
2863
2861
|
const _exp2$1 = () => props => props.controls ? "initial" : "none";
|
|
2864
2862
|
const _exp3 = () => props => `"${props.suffix ? props.suffix : ""}"`;
|
|
2865
2863
|
const _exp4 = () => ({
|
|
@@ -2869,7 +2867,7 @@
|
|
|
2869
2867
|
const _exp6 = () => ({
|
|
2870
2868
|
prefix
|
|
2871
2869
|
}) => prefix ? "flex" : "none";
|
|
2872
|
-
const AntdIntStyled = /*#__PURE__*/react.styled(_exp$
|
|
2870
|
+
const AntdIntStyled = /*#__PURE__*/react.styled(_exp$5())({
|
|
2873
2871
|
name: "AntdIntStyled",
|
|
2874
2872
|
class: "at4ovwe",
|
|
2875
2873
|
propsAsIs: true,
|
|
@@ -5329,8 +5327,8 @@
|
|
|
5329
5327
|
class: "c14wcxf0",
|
|
5330
5328
|
propsAsIs: false
|
|
5331
5329
|
});
|
|
5332
|
-
const _exp$
|
|
5333
|
-
const ChartTooltipTitle = /*#__PURE__*/react.styled(_exp$
|
|
5330
|
+
const _exp$4 = () => ChartTooltipRow;
|
|
5331
|
+
const ChartTooltipTitle = /*#__PURE__*/react.styled(_exp$4())({
|
|
5334
5332
|
name: "ChartTooltipTitle",
|
|
5335
5333
|
class: "coy29mj",
|
|
5336
5334
|
propsAsIs: true
|
|
@@ -5691,13 +5689,13 @@
|
|
|
5691
5689
|
class: "t93e4cf",
|
|
5692
5690
|
propsAsIs: false
|
|
5693
5691
|
});
|
|
5694
|
-
const _exp$
|
|
5692
|
+
const _exp$3 = () => props => props.width;
|
|
5695
5693
|
const RowLabel = /*#__PURE__*/react.styled('label')({
|
|
5696
5694
|
name: "RowLabel",
|
|
5697
5695
|
class: "rhz2uv5",
|
|
5698
5696
|
propsAsIs: false,
|
|
5699
5697
|
vars: {
|
|
5700
|
-
"rhz2uv5-0": [_exp$
|
|
5698
|
+
"rhz2uv5-0": [_exp$3()]
|
|
5701
5699
|
}
|
|
5702
5700
|
});
|
|
5703
5701
|
const SummaryTableRow = props => {
|
|
@@ -6154,8 +6152,8 @@
|
|
|
6154
6152
|
}, className)
|
|
6155
6153
|
}, otherProps), children);
|
|
6156
6154
|
});
|
|
6157
|
-
const _exp$
|
|
6158
|
-
const CardWrapper = /*#__PURE__*/react.styled(_exp$
|
|
6155
|
+
const _exp$2 = () => Wrapper;
|
|
6156
|
+
const CardWrapper = /*#__PURE__*/react.styled(_exp$2())({
|
|
6159
6157
|
name: "CardWrapper",
|
|
6160
6158
|
class: "cav4gt6",
|
|
6161
6159
|
propsAsIs: true
|
|
@@ -6253,39 +6251,159 @@
|
|
|
6253
6251
|
const CascaderLargeDropdown = "c1i4zk1";
|
|
6254
6252
|
|
|
6255
6253
|
var __defProp$r = Object.defineProperty;
|
|
6254
|
+
var __defProps$m = Object.defineProperties;
|
|
6255
|
+
var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
|
|
6256
6256
|
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
|
6257
6257
|
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
|
6258
6258
|
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
|
6259
|
-
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, {
|
|
6259
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, {
|
|
6260
|
+
enumerable: true,
|
|
6261
|
+
configurable: true,
|
|
6262
|
+
writable: true,
|
|
6263
|
+
value
|
|
6264
|
+
}) : obj[key] = value;
|
|
6260
6265
|
var __spreadValues$r = (a, b) => {
|
|
6266
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$s.call(b, prop)) __defNormalProp$r(a, prop, b[prop]);
|
|
6267
|
+
if (__getOwnPropSymbols$s) for (var prop of __getOwnPropSymbols$s(b)) {
|
|
6268
|
+
if (__propIsEnum$s.call(b, prop)) __defNormalProp$r(a, prop, b[prop]);
|
|
6269
|
+
}
|
|
6270
|
+
return a;
|
|
6271
|
+
};
|
|
6272
|
+
var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
|
|
6273
|
+
var __objRest$b = (source, exclude) => {
|
|
6274
|
+
var target = {};
|
|
6275
|
+
for (var prop in source) if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
6276
|
+
if (source != null && __getOwnPropSymbols$s) for (var prop of __getOwnPropSymbols$s(source)) {
|
|
6277
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop)) target[prop] = source[prop];
|
|
6278
|
+
}
|
|
6279
|
+
return target;
|
|
6280
|
+
};
|
|
6281
|
+
const LinkStyle = "lujuy3j";
|
|
6282
|
+
const Link = React__namespace.default.forwardRef((_a, ref) => {
|
|
6283
|
+
var _b = _a,
|
|
6284
|
+
{
|
|
6285
|
+
className,
|
|
6286
|
+
disabled,
|
|
6287
|
+
type
|
|
6288
|
+
} = _b,
|
|
6289
|
+
props = __objRest$b(_b, ["className", "disabled", "type"]);
|
|
6290
|
+
return /* @__PURE__ */React__namespace.default.createElement(Button, __spreadProps$m(__spreadValues$r({}, props), {
|
|
6291
|
+
ref,
|
|
6292
|
+
disabled,
|
|
6293
|
+
className: cs__default.default(LinkStyle, className, {
|
|
6294
|
+
"ui-kit-link-disabled": disabled,
|
|
6295
|
+
"ui-kit-link-subtle": type === "subtle"
|
|
6296
|
+
}),
|
|
6297
|
+
type: "link"
|
|
6298
|
+
}));
|
|
6299
|
+
});
|
|
6300
|
+
|
|
6301
|
+
const IconStyle$1 = "iwsze0q";
|
|
6302
|
+
|
|
6303
|
+
var __defProp$q = Object.defineProperty;
|
|
6304
|
+
var __defProps$l = Object.defineProperties;
|
|
6305
|
+
var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
|
|
6306
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
|
6307
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
|
6308
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
|
6309
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, {
|
|
6310
|
+
enumerable: true,
|
|
6311
|
+
configurable: true,
|
|
6312
|
+
writable: true,
|
|
6313
|
+
value
|
|
6314
|
+
}) : obj[key] = value;
|
|
6315
|
+
var __spreadValues$q = (a, b) => {
|
|
6316
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$r.call(b, prop)) __defNormalProp$q(a, prop, b[prop]);
|
|
6317
|
+
if (__getOwnPropSymbols$r) for (var prop of __getOwnPropSymbols$r(b)) {
|
|
6318
|
+
if (__propIsEnum$r.call(b, prop)) __defNormalProp$q(a, prop, b[prop]);
|
|
6319
|
+
}
|
|
6320
|
+
return a;
|
|
6321
|
+
};
|
|
6322
|
+
var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
|
|
6323
|
+
var __objRest$a = (source, exclude) => {
|
|
6324
|
+
var target = {};
|
|
6325
|
+
for (var prop in source) if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
6326
|
+
if (source != null && __getOwnPropSymbols$r) for (var prop of __getOwnPropSymbols$r(source)) {
|
|
6327
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop)) target[prop] = source[prop];
|
|
6328
|
+
}
|
|
6329
|
+
return target;
|
|
6330
|
+
};
|
|
6331
|
+
const PresetColors$3 = ["blue", "red", "yellow", "green", "gray", "purple"];
|
|
6332
|
+
const Size$1 = {
|
|
6333
|
+
small: "s1uupxds",
|
|
6334
|
+
medium: "m10sqwut",
|
|
6335
|
+
large: "l1d492wb"
|
|
6336
|
+
};
|
|
6337
|
+
const TokenStyle = "t1lzavmu";
|
|
6338
|
+
const Token = React__namespace.default.forwardRef((_a, ref) => {
|
|
6339
|
+
var _b = _a,
|
|
6340
|
+
{
|
|
6341
|
+
size = "small",
|
|
6342
|
+
color = "gray",
|
|
6343
|
+
className,
|
|
6344
|
+
icon,
|
|
6345
|
+
checked,
|
|
6346
|
+
children,
|
|
6347
|
+
tooltipConfig
|
|
6348
|
+
} = _b,
|
|
6349
|
+
props = __objRest$a(_b, ["size", "color", "className", "icon", "checked", "children", "tooltipConfig"]);
|
|
6350
|
+
return /* @__PURE__ */React__namespace.default.createElement(antd.Tag, __spreadProps$l(__spreadValues$q({}, props), {
|
|
6351
|
+
ref,
|
|
6352
|
+
className: cs__default.default(className, Size$1[size], TokenStyle, {
|
|
6353
|
+
[Typo.Label.l4_regular]: size === "small" || size === "medium",
|
|
6354
|
+
[Typo.Label.l3_regular]: size === "large",
|
|
6355
|
+
[`ant-tag-${color}`]: PresetColors$3.includes(color)
|
|
6356
|
+
}, "ui-kit-token", checked && "ui-kit-token-checked"),
|
|
6357
|
+
closeIcon: /* @__PURE__ */React__namespace.default.createElement(Tooltip, __spreadValues$q({
|
|
6358
|
+
title: tooltipConfig == null ? void 0 : tooltipConfig.title
|
|
6359
|
+
}, !(tooltipConfig == null ? void 0 : tooltipConfig.title) && {
|
|
6360
|
+
visible: false
|
|
6361
|
+
}), /* @__PURE__ */React__namespace.default.createElement(Icon, {
|
|
6362
|
+
className: "selected-icon",
|
|
6363
|
+
src: iconsReact.XmarkRemoveSmall16RegularInheritIcon,
|
|
6364
|
+
iconHeight: 16,
|
|
6365
|
+
iconWidth: 16
|
|
6366
|
+
})),
|
|
6367
|
+
color: color === "gray" ? void 0 : color
|
|
6368
|
+
}), icon && /* @__PURE__ */React__namespace.default.createElement("span", {
|
|
6369
|
+
className: cs__default.default("ui-kit-tag-icon", IconStyle$1)
|
|
6370
|
+
}, icon), children);
|
|
6371
|
+
});
|
|
6372
|
+
|
|
6373
|
+
var __defProp$p = Object.defineProperty;
|
|
6374
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
6375
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
6376
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
6377
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6378
|
+
var __spreadValues$p = (a, b) => {
|
|
6261
6379
|
for (var prop in b || (b = {}))
|
|
6262
|
-
if (__hasOwnProp$
|
|
6263
|
-
__defNormalProp$
|
|
6264
|
-
if (__getOwnPropSymbols$
|
|
6265
|
-
for (var prop of __getOwnPropSymbols$
|
|
6266
|
-
if (__propIsEnum$
|
|
6267
|
-
__defNormalProp$
|
|
6380
|
+
if (__hasOwnProp$q.call(b, prop))
|
|
6381
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
6382
|
+
if (__getOwnPropSymbols$q)
|
|
6383
|
+
for (var prop of __getOwnPropSymbols$q(b)) {
|
|
6384
|
+
if (__propIsEnum$q.call(b, prop))
|
|
6385
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
6268
6386
|
}
|
|
6269
6387
|
return a;
|
|
6270
6388
|
};
|
|
6271
|
-
var __objRest$
|
|
6389
|
+
var __objRest$9 = (source, exclude) => {
|
|
6272
6390
|
var target = {};
|
|
6273
6391
|
for (var prop in source)
|
|
6274
|
-
if (__hasOwnProp$
|
|
6392
|
+
if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
6275
6393
|
target[prop] = source[prop];
|
|
6276
|
-
if (source != null && __getOwnPropSymbols$
|
|
6277
|
-
for (var prop of __getOwnPropSymbols$
|
|
6278
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
6394
|
+
if (source != null && __getOwnPropSymbols$q)
|
|
6395
|
+
for (var prop of __getOwnPropSymbols$q(source)) {
|
|
6396
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
|
|
6279
6397
|
target[prop] = source[prop];
|
|
6280
6398
|
}
|
|
6281
6399
|
return target;
|
|
6282
6400
|
};
|
|
6283
6401
|
const SearchInput = (props) => {
|
|
6284
|
-
const _a = props, { onChange, debounceWait = 300 } = _a, restProps = __objRest$
|
|
6402
|
+
const _a = props, { onChange, debounceWait = 300 } = _a, restProps = __objRest$9(_a, ["onChange", "debounceWait"]);
|
|
6285
6403
|
const onSearch = ___default.default.debounce(onChange, debounceWait);
|
|
6286
6404
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
6287
6405
|
Input,
|
|
6288
|
-
__spreadValues$
|
|
6406
|
+
__spreadValues$p({
|
|
6289
6407
|
style: { width: 276 },
|
|
6290
6408
|
prefix: /* @__PURE__ */ React__namespace.default.createElement(icons.SearchOutlined, null),
|
|
6291
6409
|
onChange: (e) => onSearch(e.target.value)
|
|
@@ -6293,30 +6411,30 @@
|
|
|
6293
6411
|
);
|
|
6294
6412
|
};
|
|
6295
6413
|
|
|
6296
|
-
var __defProp$
|
|
6297
|
-
var __defProps$
|
|
6298
|
-
var __getOwnPropDescs$
|
|
6299
|
-
var __getOwnPropSymbols$
|
|
6300
|
-
var __hasOwnProp$
|
|
6301
|
-
var __propIsEnum$
|
|
6302
|
-
var __defNormalProp$
|
|
6303
|
-
var __spreadValues$
|
|
6414
|
+
var __defProp$o = Object.defineProperty;
|
|
6415
|
+
var __defProps$k = Object.defineProperties;
|
|
6416
|
+
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
|
6417
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
6418
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
6419
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
6420
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6421
|
+
var __spreadValues$o = (a, b) => {
|
|
6304
6422
|
for (var prop in b || (b = {}))
|
|
6305
|
-
if (__hasOwnProp$
|
|
6306
|
-
__defNormalProp$
|
|
6307
|
-
if (__getOwnPropSymbols$
|
|
6308
|
-
for (var prop of __getOwnPropSymbols$
|
|
6309
|
-
if (__propIsEnum$
|
|
6310
|
-
__defNormalProp$
|
|
6423
|
+
if (__hasOwnProp$p.call(b, prop))
|
|
6424
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
6425
|
+
if (__getOwnPropSymbols$p)
|
|
6426
|
+
for (var prop of __getOwnPropSymbols$p(b)) {
|
|
6427
|
+
if (__propIsEnum$p.call(b, prop))
|
|
6428
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
6311
6429
|
}
|
|
6312
6430
|
return a;
|
|
6313
6431
|
};
|
|
6314
|
-
var __spreadProps$
|
|
6432
|
+
var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
|
|
6315
6433
|
const NotDataContent = ({ content }) => {
|
|
6316
6434
|
return /* @__PURE__ */ React__namespace.default.createElement("div", { className: cs__default.default(CascaderNotData) }, content);
|
|
6317
6435
|
};
|
|
6318
6436
|
const PresetCascaderHeader = ({ defaultContent, searchProps }) => {
|
|
6319
|
-
const { t } =
|
|
6437
|
+
const { t } = useParrotTranslation();
|
|
6320
6438
|
const [selectedAll, setSelectedAll] = React.useState(false);
|
|
6321
6439
|
const onClick = (e) => {
|
|
6322
6440
|
var _a;
|
|
@@ -6325,13 +6443,13 @@
|
|
|
6325
6443
|
};
|
|
6326
6444
|
return /* @__PURE__ */ React__namespace.default.createElement(antd5.Flex, { vertical: true, className: CascaderDefaultHeaderContainer }, searchProps ? /* @__PURE__ */ React__namespace.default.createElement(
|
|
6327
6445
|
SearchInput,
|
|
6328
|
-
__spreadProps$
|
|
6446
|
+
__spreadProps$k(__spreadValues$o({}, searchProps), {
|
|
6329
6447
|
className: cs__default.default(searchProps.className, CascaderDefaultHeaderSearch),
|
|
6330
6448
|
style: {
|
|
6331
6449
|
width: "unset"
|
|
6332
6450
|
}
|
|
6333
6451
|
})
|
|
6334
|
-
) : /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null), (defaultContent == null ? void 0 : defaultContent.hide) ? /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null) : /* @__PURE__ */ React__namespace.default.createElement("div", { className: cs__default.default(CascaderDefaultHeader) }, defaultContent == null ? void 0 : defaultContent.label, /* @__PURE__ */ React__namespace.default.createElement(
|
|
6452
|
+
) : /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null), (defaultContent == null ? void 0 : defaultContent.hide) ? /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null) : /* @__PURE__ */ React__namespace.default.createElement("div", { className: cs__default.default(CascaderDefaultHeader) }, defaultContent == null ? void 0 : defaultContent.label, /* @__PURE__ */ React__namespace.default.createElement(Link, { size: "small", onClick }, selectedAll ? t("components.unselect_all") : t("components.select_all"))));
|
|
6335
6453
|
};
|
|
6336
6454
|
const PresetCascaderRender = ({
|
|
6337
6455
|
menus,
|
|
@@ -6339,36 +6457,36 @@
|
|
|
6339
6457
|
footer,
|
|
6340
6458
|
presetHeaderProps
|
|
6341
6459
|
}) => {
|
|
6342
|
-
return /* @__PURE__ */ React__namespace.default.createElement("div", null, header ? header : /* @__PURE__ */ React__namespace.default.createElement(PresetCascaderHeader, __spreadValues$
|
|
6460
|
+
return /* @__PURE__ */ React__namespace.default.createElement("div", null, header ? header : /* @__PURE__ */ React__namespace.default.createElement(PresetCascaderHeader, __spreadValues$o({}, presetHeaderProps)), menus, footer);
|
|
6343
6461
|
};
|
|
6344
6462
|
const defaultTagRender = (props) => {
|
|
6345
|
-
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
6463
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Token, __spreadValues$o({ size: "medium", color: "blue", key: props.value }, props), props.label);
|
|
6346
6464
|
};
|
|
6347
6465
|
|
|
6348
|
-
var __defProp$
|
|
6349
|
-
var __getOwnPropSymbols$
|
|
6350
|
-
var __hasOwnProp$
|
|
6351
|
-
var __propIsEnum$
|
|
6352
|
-
var __defNormalProp$
|
|
6353
|
-
var __spreadValues$
|
|
6466
|
+
var __defProp$n = Object.defineProperty;
|
|
6467
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
6468
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
6469
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
6470
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6471
|
+
var __spreadValues$n = (a, b) => {
|
|
6354
6472
|
for (var prop in b || (b = {}))
|
|
6355
|
-
if (__hasOwnProp$
|
|
6356
|
-
__defNormalProp$
|
|
6357
|
-
if (__getOwnPropSymbols$
|
|
6358
|
-
for (var prop of __getOwnPropSymbols$
|
|
6359
|
-
if (__propIsEnum$
|
|
6360
|
-
__defNormalProp$
|
|
6473
|
+
if (__hasOwnProp$o.call(b, prop))
|
|
6474
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
6475
|
+
if (__getOwnPropSymbols$o)
|
|
6476
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
|
6477
|
+
if (__propIsEnum$o.call(b, prop))
|
|
6478
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
6361
6479
|
}
|
|
6362
6480
|
return a;
|
|
6363
6481
|
};
|
|
6364
|
-
var __objRest$
|
|
6482
|
+
var __objRest$8 = (source, exclude) => {
|
|
6365
6483
|
var target = {};
|
|
6366
6484
|
for (var prop in source)
|
|
6367
|
-
if (__hasOwnProp$
|
|
6485
|
+
if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
6368
6486
|
target[prop] = source[prop];
|
|
6369
|
-
if (source != null && __getOwnPropSymbols$
|
|
6370
|
-
for (var prop of __getOwnPropSymbols$
|
|
6371
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
6487
|
+
if (source != null && __getOwnPropSymbols$o)
|
|
6488
|
+
for (var prop of __getOwnPropSymbols$o(source)) {
|
|
6489
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
|
|
6372
6490
|
target[prop] = source[prop];
|
|
6373
6491
|
}
|
|
6374
6492
|
return target;
|
|
@@ -6379,7 +6497,7 @@
|
|
|
6379
6497
|
NotData = "No Data",
|
|
6380
6498
|
dropdownClassName,
|
|
6381
6499
|
presetCascaderRenderProps
|
|
6382
|
-
} = _a, restProps = __objRest$
|
|
6500
|
+
} = _a, restProps = __objRest$8(_a, [
|
|
6383
6501
|
"size",
|
|
6384
6502
|
"NotData",
|
|
6385
6503
|
"dropdownClassName",
|
|
@@ -6387,9 +6505,9 @@
|
|
|
6387
6505
|
]);
|
|
6388
6506
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
6389
6507
|
antd5.Cascader,
|
|
6390
|
-
__spreadValues$
|
|
6508
|
+
__spreadValues$n({
|
|
6391
6509
|
size,
|
|
6392
|
-
prefixCls:
|
|
6510
|
+
prefixCls: Antd5PrefixCls,
|
|
6393
6511
|
expandIcon: /* @__PURE__ */ React__namespace.default.createElement(Icon, { src: iconsReact.HierarchyTriangleRight16PrimaryIcon }),
|
|
6394
6512
|
popupClassName: cs__default.default(
|
|
6395
6513
|
{
|
|
@@ -6399,7 +6517,7 @@
|
|
|
6399
6517
|
dropdownClassName,
|
|
6400
6518
|
CascaderDropdown
|
|
6401
6519
|
),
|
|
6402
|
-
dropdownRender: (menus) => /* @__PURE__ */ React__namespace.default.createElement(PresetCascaderRender, __spreadValues$
|
|
6520
|
+
dropdownRender: (menus) => /* @__PURE__ */ React__namespace.default.createElement(PresetCascaderRender, __spreadValues$n({ menus }, presetCascaderRenderProps)),
|
|
6403
6521
|
notFoundContent: /* @__PURE__ */ React__namespace.default.createElement(NotDataContent, { content: NotData }),
|
|
6404
6522
|
tagRender: defaultTagRender,
|
|
6405
6523
|
rootClassName: CascaderInputStyle
|
|
@@ -6480,32 +6598,32 @@
|
|
|
6480
6598
|
}, children));
|
|
6481
6599
|
};
|
|
6482
6600
|
|
|
6483
|
-
var __defProp$
|
|
6484
|
-
var __defProps$
|
|
6485
|
-
var __getOwnPropDescs$
|
|
6486
|
-
var __getOwnPropSymbols$
|
|
6487
|
-
var __hasOwnProp$
|
|
6488
|
-
var __propIsEnum$
|
|
6489
|
-
var __defNormalProp$
|
|
6601
|
+
var __defProp$m = Object.defineProperty;
|
|
6602
|
+
var __defProps$j = Object.defineProperties;
|
|
6603
|
+
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
6604
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
6605
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
6606
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
6607
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, {
|
|
6490
6608
|
enumerable: true,
|
|
6491
6609
|
configurable: true,
|
|
6492
6610
|
writable: true,
|
|
6493
6611
|
value
|
|
6494
6612
|
}) : obj[key] = value;
|
|
6495
|
-
var __spreadValues$
|
|
6496
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
6497
|
-
if (__getOwnPropSymbols$
|
|
6498
|
-
if (__propIsEnum$
|
|
6613
|
+
var __spreadValues$m = (a, b) => {
|
|
6614
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$n.call(b, prop)) __defNormalProp$m(a, prop, b[prop]);
|
|
6615
|
+
if (__getOwnPropSymbols$n) for (var prop of __getOwnPropSymbols$n(b)) {
|
|
6616
|
+
if (__propIsEnum$n.call(b, prop)) __defNormalProp$m(a, prop, b[prop]);
|
|
6499
6617
|
}
|
|
6500
6618
|
return a;
|
|
6501
6619
|
};
|
|
6502
|
-
var __spreadProps$
|
|
6620
|
+
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
6503
6621
|
const {
|
|
6504
6622
|
Item: AntdFormItem
|
|
6505
6623
|
} = antd.Form;
|
|
6506
6624
|
const FormItemStyle$1 = "f1p9ti6d";
|
|
6507
6625
|
const FormItem$1 = props => {
|
|
6508
|
-
return /* @__PURE__ */React__namespace.default.createElement(AntdFormItem, __spreadProps$
|
|
6626
|
+
return /* @__PURE__ */React__namespace.default.createElement(AntdFormItem, __spreadProps$j(__spreadValues$m({}, props), {
|
|
6509
6627
|
className: cs__default.default(FormItemStyle$1, props.className)
|
|
6510
6628
|
}));
|
|
6511
6629
|
};
|
|
@@ -6513,28 +6631,28 @@
|
|
|
6513
6631
|
const Form = antd.Form;
|
|
6514
6632
|
Form.Item = FormItem$1;
|
|
6515
6633
|
|
|
6516
|
-
var __defProp$
|
|
6517
|
-
var __getOwnPropSymbols$
|
|
6518
|
-
var __hasOwnProp$
|
|
6519
|
-
var __propIsEnum$
|
|
6520
|
-
var __defNormalProp$
|
|
6521
|
-
var __spreadValues$
|
|
6634
|
+
var __defProp$l = Object.defineProperty;
|
|
6635
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
6636
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
6637
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
6638
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6639
|
+
var __spreadValues$l = (a, b) => {
|
|
6522
6640
|
for (var prop in b || (b = {}))
|
|
6523
|
-
if (__hasOwnProp$
|
|
6524
|
-
__defNormalProp$
|
|
6525
|
-
if (__getOwnPropSymbols$
|
|
6526
|
-
for (var prop of __getOwnPropSymbols$
|
|
6527
|
-
if (__propIsEnum$
|
|
6528
|
-
__defNormalProp$
|
|
6641
|
+
if (__hasOwnProp$m.call(b, prop))
|
|
6642
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
6643
|
+
if (__getOwnPropSymbols$m)
|
|
6644
|
+
for (var prop of __getOwnPropSymbols$m(b)) {
|
|
6645
|
+
if (__propIsEnum$m.call(b, prop))
|
|
6646
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
6529
6647
|
}
|
|
6530
6648
|
return a;
|
|
6531
6649
|
};
|
|
6532
6650
|
const ParrotTrans = (props) => {
|
|
6533
6651
|
const { i18n } = useParrotTranslation();
|
|
6534
|
-
return /* @__PURE__ */ React__namespace.default.createElement(reactI18next.Trans, __spreadValues$
|
|
6652
|
+
return /* @__PURE__ */ React__namespace.default.createElement(reactI18next.Trans, __spreadValues$l({ i18n }, props));
|
|
6535
6653
|
};
|
|
6536
6654
|
|
|
6537
|
-
const PresetColors$
|
|
6655
|
+
const PresetColors$2 = [
|
|
6538
6656
|
"blue",
|
|
6539
6657
|
"red",
|
|
6540
6658
|
"yellow",
|
|
@@ -6543,39 +6661,39 @@
|
|
|
6543
6661
|
"purple"
|
|
6544
6662
|
];
|
|
6545
6663
|
|
|
6546
|
-
const Size
|
|
6664
|
+
const Size = {
|
|
6547
6665
|
small: "sut42l0",
|
|
6548
6666
|
medium: "mfsz1jz"
|
|
6549
6667
|
};
|
|
6550
6668
|
const TagStyle$1 = "tnd6h4m";
|
|
6551
|
-
const IconStyle
|
|
6669
|
+
const IconStyle = "i1qw4clm";
|
|
6552
6670
|
const NameTagStyle = "n1r5ku5l";
|
|
6553
6671
|
|
|
6554
|
-
var __defProp$
|
|
6555
|
-
var __defProps$
|
|
6556
|
-
var __getOwnPropDescs$
|
|
6557
|
-
var __getOwnPropSymbols$
|
|
6558
|
-
var __hasOwnProp$
|
|
6559
|
-
var __propIsEnum$
|
|
6560
|
-
var __defNormalProp$
|
|
6672
|
+
var __defProp$k = Object.defineProperty;
|
|
6673
|
+
var __defProps$i = Object.defineProperties;
|
|
6674
|
+
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
6675
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
6676
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
6677
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
6678
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, {
|
|
6561
6679
|
enumerable: true,
|
|
6562
6680
|
configurable: true,
|
|
6563
6681
|
writable: true,
|
|
6564
6682
|
value
|
|
6565
6683
|
}) : obj[key] = value;
|
|
6566
|
-
var __spreadValues$
|
|
6567
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
6568
|
-
if (__getOwnPropSymbols$
|
|
6569
|
-
if (__propIsEnum$
|
|
6684
|
+
var __spreadValues$k = (a, b) => {
|
|
6685
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$l.call(b, prop)) __defNormalProp$k(a, prop, b[prop]);
|
|
6686
|
+
if (__getOwnPropSymbols$l) for (var prop of __getOwnPropSymbols$l(b)) {
|
|
6687
|
+
if (__propIsEnum$l.call(b, prop)) __defNormalProp$k(a, prop, b[prop]);
|
|
6570
6688
|
}
|
|
6571
6689
|
return a;
|
|
6572
6690
|
};
|
|
6573
|
-
var __spreadProps$
|
|
6574
|
-
var __objRest$
|
|
6691
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
6692
|
+
var __objRest$7 = (source, exclude) => {
|
|
6575
6693
|
var target = {};
|
|
6576
|
-
for (var prop in source) if (__hasOwnProp$
|
|
6577
|
-
if (source != null && __getOwnPropSymbols$
|
|
6578
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
6694
|
+
for (var prop in source) if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
6695
|
+
if (source != null && __getOwnPropSymbols$l) for (var prop of __getOwnPropSymbols$l(source)) {
|
|
6696
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop)) target[prop] = source[prop];
|
|
6579
6697
|
}
|
|
6580
6698
|
return target;
|
|
6581
6699
|
};
|
|
@@ -6590,53 +6708,53 @@
|
|
|
6590
6708
|
secondaryContent,
|
|
6591
6709
|
icon
|
|
6592
6710
|
} = _b,
|
|
6593
|
-
props = __objRest$
|
|
6594
|
-
return /* @__PURE__ */React__namespace.default.createElement(antd.Tag, __spreadProps$
|
|
6595
|
-
className: cs__default.default(className, TagStyle$1, Size
|
|
6596
|
-
[`ant-tag-${color}`]: PresetColors$
|
|
6711
|
+
props = __objRest$7(_b, ["size", "color", "className", "primaryContent", "secondaryContent", "icon"]);
|
|
6712
|
+
return /* @__PURE__ */React__namespace.default.createElement(antd.Tag, __spreadProps$i(__spreadValues$k({}, props), {
|
|
6713
|
+
className: cs__default.default(className, TagStyle$1, Size[size], WrapperStyle, Typo.Label.l4_regular, {
|
|
6714
|
+
[`ant-tag-${color}`]: PresetColors$2.includes(color)
|
|
6597
6715
|
}, "outside-tag")
|
|
6598
6716
|
}), /* @__PURE__ */React__namespace.default.createElement(antd.Tag, {
|
|
6599
|
-
className: cs__default.default(Size
|
|
6600
|
-
[`ant-tag-${color}`]: PresetColors$
|
|
6717
|
+
className: cs__default.default(Size[size], TagStyle$1, Typo.Label.l4_regular, {
|
|
6718
|
+
[`ant-tag-${color}`]: PresetColors$2.includes(color)
|
|
6601
6719
|
}, "inside-tag")
|
|
6602
6720
|
}, icon && /* @__PURE__ */React__namespace.default.createElement("span", {
|
|
6603
|
-
className: cs__default.default("ui-kit-tag-icon", IconStyle
|
|
6721
|
+
className: cs__default.default("ui-kit-tag-icon", IconStyle)
|
|
6604
6722
|
}, icon), primaryContent), secondaryContent);
|
|
6605
6723
|
};
|
|
6606
6724
|
|
|
6607
|
-
var __defProp$
|
|
6608
|
-
var __defProps$
|
|
6609
|
-
var __getOwnPropDescs$
|
|
6610
|
-
var __getOwnPropSymbols$
|
|
6611
|
-
var __hasOwnProp$
|
|
6612
|
-
var __propIsEnum$
|
|
6613
|
-
var __defNormalProp$
|
|
6614
|
-
var __spreadValues$
|
|
6725
|
+
var __defProp$j = Object.defineProperty;
|
|
6726
|
+
var __defProps$h = Object.defineProperties;
|
|
6727
|
+
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
6728
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
|
6729
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
|
6730
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
|
6731
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6732
|
+
var __spreadValues$j = (a, b) => {
|
|
6615
6733
|
for (var prop in b || (b = {}))
|
|
6616
|
-
if (__hasOwnProp$
|
|
6617
|
-
__defNormalProp$
|
|
6618
|
-
if (__getOwnPropSymbols$
|
|
6619
|
-
for (var prop of __getOwnPropSymbols$
|
|
6620
|
-
if (__propIsEnum$
|
|
6621
|
-
__defNormalProp$
|
|
6734
|
+
if (__hasOwnProp$k.call(b, prop))
|
|
6735
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
6736
|
+
if (__getOwnPropSymbols$k)
|
|
6737
|
+
for (var prop of __getOwnPropSymbols$k(b)) {
|
|
6738
|
+
if (__propIsEnum$k.call(b, prop))
|
|
6739
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
6622
6740
|
}
|
|
6623
6741
|
return a;
|
|
6624
6742
|
};
|
|
6625
|
-
var __spreadProps$
|
|
6626
|
-
var __objRest$
|
|
6743
|
+
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
6744
|
+
var __objRest$6 = (source, exclude) => {
|
|
6627
6745
|
var target = {};
|
|
6628
6746
|
for (var prop in source)
|
|
6629
|
-
if (__hasOwnProp$
|
|
6747
|
+
if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
6630
6748
|
target[prop] = source[prop];
|
|
6631
|
-
if (source != null && __getOwnPropSymbols$
|
|
6632
|
-
for (var prop of __getOwnPropSymbols$
|
|
6633
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
6749
|
+
if (source != null && __getOwnPropSymbols$k)
|
|
6750
|
+
for (var prop of __getOwnPropSymbols$k(source)) {
|
|
6751
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
|
|
6634
6752
|
target[prop] = source[prop];
|
|
6635
6753
|
}
|
|
6636
6754
|
return target;
|
|
6637
6755
|
};
|
|
6638
|
-
const PresetColors$
|
|
6639
|
-
...PresetColors$
|
|
6756
|
+
const PresetColors$1 = [
|
|
6757
|
+
...PresetColors$2,
|
|
6640
6758
|
"red-ontint",
|
|
6641
6759
|
"green-ontint"
|
|
6642
6760
|
];
|
|
@@ -6655,7 +6773,7 @@
|
|
|
6655
6773
|
hoverable = false,
|
|
6656
6774
|
icon,
|
|
6657
6775
|
children
|
|
6658
|
-
} = _b, props = __objRest$
|
|
6776
|
+
} = _b, props = __objRest$6(_b, [
|
|
6659
6777
|
"size",
|
|
6660
6778
|
"color",
|
|
6661
6779
|
"className",
|
|
@@ -6666,33 +6784,33 @@
|
|
|
6666
6784
|
const computedColor = AntdColorMap[color] || color;
|
|
6667
6785
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
6668
6786
|
antd.Tag,
|
|
6669
|
-
__spreadProps$
|
|
6670
|
-
className: cs__default.default(className, Size
|
|
6671
|
-
[`ant-tag-${computedColor}`]: PresetColors$
|
|
6787
|
+
__spreadProps$h(__spreadValues$j({}, props), {
|
|
6788
|
+
className: cs__default.default(className, Size[size], TagStyle$1, Typo.Label.l4_regular, {
|
|
6789
|
+
[`ant-tag-${computedColor}`]: PresetColors$1.includes(computedColor),
|
|
6672
6790
|
"tag-hover": hoverable
|
|
6673
6791
|
}),
|
|
6674
6792
|
closable: false,
|
|
6675
6793
|
color: computedColor === "gray" ? void 0 : computedColor
|
|
6676
6794
|
}),
|
|
6677
|
-
icon && /* @__PURE__ */ React__namespace.default.createElement("span", { className: IconStyle
|
|
6795
|
+
icon && /* @__PURE__ */ React__namespace.default.createElement("span", { className: IconStyle }, icon),
|
|
6678
6796
|
children
|
|
6679
6797
|
);
|
|
6680
6798
|
};
|
|
6681
6799
|
const NameTag = (_c) => {
|
|
6682
|
-
var _d = _c, { className } = _d, props = __objRest$
|
|
6683
|
-
return /* @__PURE__ */ React__namespace.default.createElement(Tag, __spreadValues$
|
|
6800
|
+
var _d = _c, { className } = _d, props = __objRest$6(_d, ["className"]);
|
|
6801
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Tag, __spreadValues$j({ className: cs__default.default(NameTagStyle, className) }, props));
|
|
6684
6802
|
};
|
|
6685
6803
|
Tag.SplitTag = SplitTag;
|
|
6686
6804
|
Tag.NameTag = NameTag;
|
|
6687
6805
|
|
|
6688
|
-
var __getOwnPropSymbols$
|
|
6689
|
-
var __hasOwnProp$
|
|
6690
|
-
var __propIsEnum$
|
|
6691
|
-
var __objRest$
|
|
6806
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
6807
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
6808
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
6809
|
+
var __objRest$5 = (source, exclude) => {
|
|
6692
6810
|
var target = {};
|
|
6693
|
-
for (var prop in source) if (__hasOwnProp$
|
|
6694
|
-
if (source != null && __getOwnPropSymbols$
|
|
6695
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
6811
|
+
for (var prop in source) if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
6812
|
+
if (source != null && __getOwnPropSymbols$j) for (var prop of __getOwnPropSymbols$j(source)) {
|
|
6813
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop)) target[prop] = source[prop];
|
|
6696
6814
|
}
|
|
6697
6815
|
return target;
|
|
6698
6816
|
};
|
|
@@ -6703,7 +6821,7 @@
|
|
|
6703
6821
|
name,
|
|
6704
6822
|
i18nKey
|
|
6705
6823
|
} = _a,
|
|
6706
|
-
otherOption = __objRest$
|
|
6824
|
+
otherOption = __objRest$5(_a, ["name", "i18nKey"]);
|
|
6707
6825
|
return /* @__PURE__ */React__namespace.default.createElement(ParrotTrans, {
|
|
6708
6826
|
i18nKey,
|
|
6709
6827
|
tOptions: otherOption
|
|
@@ -6714,80 +6832,32 @@
|
|
|
6714
6832
|
}));
|
|
6715
6833
|
};
|
|
6716
6834
|
|
|
6717
|
-
const _exp = () => antd.Input.Group;
|
|
6718
|
-
const InputGroup = /*#__PURE__*/react.styled(_exp())({
|
|
6835
|
+
const _exp$1 = () => antd.Input.Group;
|
|
6836
|
+
const InputGroup = /*#__PURE__*/react.styled(_exp$1())({
|
|
6719
6837
|
name: "InputGroup",
|
|
6720
6838
|
class: "iiqau4c",
|
|
6721
6839
|
propsAsIs: true
|
|
6722
6840
|
});
|
|
6723
6841
|
|
|
6724
|
-
var __defProp$
|
|
6725
|
-
var __defProps$
|
|
6726
|
-
var __getOwnPropDescs$
|
|
6727
|
-
var __getOwnPropSymbols$
|
|
6728
|
-
var __hasOwnProp$
|
|
6729
|
-
var __propIsEnum$
|
|
6730
|
-
var __defNormalProp$
|
|
6731
|
-
|
|
6732
|
-
configurable: true,
|
|
6733
|
-
writable: true,
|
|
6734
|
-
value
|
|
6735
|
-
}) : obj[key] = value;
|
|
6736
|
-
var __spreadValues$k = (a, b) => {
|
|
6737
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$k.call(b, prop)) __defNormalProp$k(a, prop, b[prop]);
|
|
6738
|
-
if (__getOwnPropSymbols$k) for (var prop of __getOwnPropSymbols$k(b)) {
|
|
6739
|
-
if (__propIsEnum$k.call(b, prop)) __defNormalProp$k(a, prop, b[prop]);
|
|
6740
|
-
}
|
|
6741
|
-
return a;
|
|
6742
|
-
};
|
|
6743
|
-
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
6744
|
-
var __objRest$6 = (source, exclude) => {
|
|
6745
|
-
var target = {};
|
|
6746
|
-
for (var prop in source) if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
6747
|
-
if (source != null && __getOwnPropSymbols$k) for (var prop of __getOwnPropSymbols$k(source)) {
|
|
6748
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop)) target[prop] = source[prop];
|
|
6749
|
-
}
|
|
6750
|
-
return target;
|
|
6751
|
-
};
|
|
6752
|
-
const LinkStyle = "lujuy3j";
|
|
6753
|
-
const Link = React__namespace.default.forwardRef((_a, ref) => {
|
|
6754
|
-
var _b = _a,
|
|
6755
|
-
{
|
|
6756
|
-
className,
|
|
6757
|
-
disabled,
|
|
6758
|
-
type
|
|
6759
|
-
} = _b,
|
|
6760
|
-
props = __objRest$6(_b, ["className", "disabled", "type"]);
|
|
6761
|
-
return /* @__PURE__ */React__namespace.default.createElement(Button, __spreadProps$i(__spreadValues$k({}, props), {
|
|
6762
|
-
ref,
|
|
6763
|
-
disabled,
|
|
6764
|
-
className: cs__default.default(LinkStyle, className, {
|
|
6765
|
-
"ui-kit-link-disabled": disabled,
|
|
6766
|
-
"ui-kit-link-subtle": type === "subtle"
|
|
6767
|
-
}),
|
|
6768
|
-
type: "link"
|
|
6769
|
-
}));
|
|
6770
|
-
});
|
|
6771
|
-
|
|
6772
|
-
var __defProp$j = Object.defineProperty;
|
|
6773
|
-
var __defProps$h = Object.defineProperties;
|
|
6774
|
-
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
6775
|
-
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
6776
|
-
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
6777
|
-
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
6778
|
-
var __defNormalProp$j = (obj, key2, value) => key2 in obj ? __defProp$j(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value;
|
|
6779
|
-
var __spreadValues$j = (a, b) => {
|
|
6842
|
+
var __defProp$i = Object.defineProperty;
|
|
6843
|
+
var __defProps$g = Object.defineProperties;
|
|
6844
|
+
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
6845
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
6846
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
6847
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
6848
|
+
var __defNormalProp$i = (obj, key2, value) => key2 in obj ? __defProp$i(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value;
|
|
6849
|
+
var __spreadValues$i = (a, b) => {
|
|
6780
6850
|
for (var prop in b || (b = {}))
|
|
6781
|
-
if (__hasOwnProp$
|
|
6782
|
-
__defNormalProp$
|
|
6783
|
-
if (__getOwnPropSymbols$
|
|
6784
|
-
for (var prop of __getOwnPropSymbols$
|
|
6785
|
-
if (__propIsEnum$
|
|
6786
|
-
__defNormalProp$
|
|
6851
|
+
if (__hasOwnProp$i.call(b, prop))
|
|
6852
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
6853
|
+
if (__getOwnPropSymbols$i)
|
|
6854
|
+
for (var prop of __getOwnPropSymbols$i(b)) {
|
|
6855
|
+
if (__propIsEnum$i.call(b, prop))
|
|
6856
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
6787
6857
|
}
|
|
6788
6858
|
return a;
|
|
6789
6859
|
};
|
|
6790
|
-
var __spreadProps$
|
|
6860
|
+
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
6791
6861
|
let messageInstance;
|
|
6792
6862
|
let defaultDuration = 3;
|
|
6793
6863
|
let defaultTop;
|
|
@@ -6894,7 +6964,7 @@
|
|
|
6894
6964
|
}
|
|
6895
6965
|
getRCNotificationInstance(args, ({ prefixCls, instance }) => {
|
|
6896
6966
|
instance.notice(
|
|
6897
|
-
getRCNoticeProps(__spreadProps$
|
|
6967
|
+
getRCNoticeProps(__spreadProps$g(__spreadValues$i({}, args), { key: target, onClose: callback }), prefixCls)
|
|
6898
6968
|
);
|
|
6899
6969
|
});
|
|
6900
6970
|
});
|
|
@@ -6923,7 +6993,7 @@
|
|
|
6923
6993
|
function attachTypeApi(originalApi, type) {
|
|
6924
6994
|
originalApi[type] = (content, duration, onClose) => {
|
|
6925
6995
|
if (isArgsProps(content)) {
|
|
6926
|
-
return originalApi.open(__spreadProps$
|
|
6996
|
+
return originalApi.open(__spreadProps$g(__spreadValues$i({}, content), { type }));
|
|
6927
6997
|
}
|
|
6928
6998
|
if (typeof duration === "function") {
|
|
6929
6999
|
onClose = duration;
|
|
@@ -6937,25 +7007,25 @@
|
|
|
6937
7007
|
);
|
|
6938
7008
|
api.warn = api.warning;
|
|
6939
7009
|
|
|
6940
|
-
var __defProp$
|
|
6941
|
-
var __defProps$
|
|
6942
|
-
var __getOwnPropDescs$
|
|
6943
|
-
var __getOwnPropSymbols$
|
|
6944
|
-
var __hasOwnProp$
|
|
6945
|
-
var __propIsEnum$
|
|
6946
|
-
var __defNormalProp$
|
|
6947
|
-
var __spreadValues$
|
|
7010
|
+
var __defProp$h = Object.defineProperty;
|
|
7011
|
+
var __defProps$f = Object.defineProperties;
|
|
7012
|
+
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
7013
|
+
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
|
7014
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
7015
|
+
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
|
7016
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7017
|
+
var __spreadValues$h = (a, b) => {
|
|
6948
7018
|
for (var prop in b || (b = {}))
|
|
6949
|
-
if (__hasOwnProp$
|
|
6950
|
-
__defNormalProp$
|
|
6951
|
-
if (__getOwnPropSymbols$
|
|
6952
|
-
for (var prop of __getOwnPropSymbols$
|
|
6953
|
-
if (__propIsEnum$
|
|
6954
|
-
__defNormalProp$
|
|
7019
|
+
if (__hasOwnProp$h.call(b, prop))
|
|
7020
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
7021
|
+
if (__getOwnPropSymbols$h)
|
|
7022
|
+
for (var prop of __getOwnPropSymbols$h(b)) {
|
|
7023
|
+
if (__propIsEnum$h.call(b, prop))
|
|
7024
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
6955
7025
|
}
|
|
6956
7026
|
return a;
|
|
6957
7027
|
};
|
|
6958
|
-
var __spreadProps$
|
|
7028
|
+
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
6959
7029
|
const initialChartState = {
|
|
6960
7030
|
pointers: {},
|
|
6961
7031
|
resourceData: {},
|
|
@@ -6965,8 +7035,8 @@
|
|
|
6965
7035
|
switch (action.type) {
|
|
6966
7036
|
case "SET_POINTER" /* SET_POINTER */: {
|
|
6967
7037
|
const { uuid, left, text, visible, value } = action.payload;
|
|
6968
|
-
return __spreadProps$
|
|
6969
|
-
pointers: __spreadProps$
|
|
7038
|
+
return __spreadProps$f(__spreadValues$h({}, state), {
|
|
7039
|
+
pointers: __spreadProps$f(__spreadValues$h({}, state.pointers), {
|
|
6970
7040
|
[uuid]: {
|
|
6971
7041
|
left,
|
|
6972
7042
|
text,
|
|
@@ -6978,16 +7048,16 @@
|
|
|
6978
7048
|
}
|
|
6979
7049
|
case "SET_RESOURCE_DATA" /* SET_RESOURCE_DATA */: {
|
|
6980
7050
|
const { uuid, data } = action.payload;
|
|
6981
|
-
return __spreadProps$
|
|
6982
|
-
resourceData: __spreadProps$
|
|
7051
|
+
return __spreadProps$f(__spreadValues$h({}, state), {
|
|
7052
|
+
resourceData: __spreadProps$f(__spreadValues$h({}, state.resourceData), {
|
|
6983
7053
|
[uuid]: data
|
|
6984
7054
|
})
|
|
6985
7055
|
});
|
|
6986
7056
|
}
|
|
6987
7057
|
case "SET_AVERAGE_DATA" /* SET_AVERAGE_DATA */: {
|
|
6988
7058
|
const { uuid, average } = action.payload;
|
|
6989
|
-
return __spreadProps$
|
|
6990
|
-
averageData: __spreadProps$
|
|
7059
|
+
return __spreadProps$f(__spreadValues$h({}, state), {
|
|
7060
|
+
averageData: __spreadProps$f(__spreadValues$h({}, state.averageData), {
|
|
6991
7061
|
[uuid]: average
|
|
6992
7062
|
})
|
|
6993
7063
|
});
|
|
@@ -6998,25 +7068,25 @@
|
|
|
6998
7068
|
}
|
|
6999
7069
|
};
|
|
7000
7070
|
|
|
7001
|
-
var __defProp$
|
|
7002
|
-
var __defProps$
|
|
7003
|
-
var __getOwnPropDescs$
|
|
7004
|
-
var __getOwnPropSymbols$
|
|
7005
|
-
var __hasOwnProp$
|
|
7006
|
-
var __propIsEnum$
|
|
7007
|
-
var __defNormalProp$
|
|
7008
|
-
var __spreadValues$
|
|
7071
|
+
var __defProp$g = Object.defineProperty;
|
|
7072
|
+
var __defProps$e = Object.defineProperties;
|
|
7073
|
+
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
|
7074
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
7075
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
7076
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
7077
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7078
|
+
var __spreadValues$g = (a, b) => {
|
|
7009
7079
|
for (var prop in b || (b = {}))
|
|
7010
|
-
if (__hasOwnProp$
|
|
7011
|
-
__defNormalProp$
|
|
7012
|
-
if (__getOwnPropSymbols$
|
|
7013
|
-
for (var prop of __getOwnPropSymbols$
|
|
7014
|
-
if (__propIsEnum$
|
|
7015
|
-
__defNormalProp$
|
|
7080
|
+
if (__hasOwnProp$g.call(b, prop))
|
|
7081
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
7082
|
+
if (__getOwnPropSymbols$g)
|
|
7083
|
+
for (var prop of __getOwnPropSymbols$g(b)) {
|
|
7084
|
+
if (__propIsEnum$g.call(b, prop))
|
|
7085
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
7016
7086
|
}
|
|
7017
7087
|
return a;
|
|
7018
7088
|
};
|
|
7019
|
-
var __spreadProps$
|
|
7089
|
+
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
|
7020
7090
|
var ModalActions = /* @__PURE__ */ ((ModalActions2) => {
|
|
7021
7091
|
ModalActions2["PUSH_MODAL"] = "PUSH_MODAL";
|
|
7022
7092
|
ModalActions2["POP_MODAL"] = "POP_MODAL";
|
|
@@ -7037,22 +7107,22 @@
|
|
|
7037
7107
|
)) {
|
|
7038
7108
|
return state;
|
|
7039
7109
|
}
|
|
7040
|
-
return __spreadProps$
|
|
7041
|
-
stack: state.stack.concat(__spreadProps$
|
|
7110
|
+
return __spreadProps$e(__spreadValues$g({}, state), {
|
|
7111
|
+
stack: state.stack.concat(__spreadProps$e(__spreadValues$g({}, action.payload), {
|
|
7042
7112
|
id: MODAL_ID++
|
|
7043
7113
|
}))
|
|
7044
7114
|
});
|
|
7045
7115
|
case "POP_MODAL" /* POP_MODAL */:
|
|
7046
|
-
return __spreadProps$
|
|
7116
|
+
return __spreadProps$e(__spreadValues$g({}, state), {
|
|
7047
7117
|
stack: state.stack.slice(0, -1)
|
|
7048
7118
|
});
|
|
7049
7119
|
case "REMOVE_MODAL" /* REMOVE_MODAL */:
|
|
7050
|
-
return __spreadProps$
|
|
7120
|
+
return __spreadProps$e(__spreadValues$g({}, state), {
|
|
7051
7121
|
closeId: 0,
|
|
7052
7122
|
stack: state.stack.filter((m) => m.id !== action.id)
|
|
7053
7123
|
});
|
|
7054
7124
|
case "CLOSE_MODAL" /* CLOSE_MODAL */:
|
|
7055
|
-
return __spreadProps$
|
|
7125
|
+
return __spreadProps$e(__spreadValues$g({}, state), {
|
|
7056
7126
|
closeId: action.id
|
|
7057
7127
|
});
|
|
7058
7128
|
default:
|
|
@@ -7109,33 +7179,33 @@
|
|
|
7109
7179
|
const HorizontalStepContentStyle = "h1xo7yjb";
|
|
7110
7180
|
const VerticalStepContentStyle = "v1f2f7cy";
|
|
7111
7181
|
|
|
7112
|
-
var __defProp$
|
|
7113
|
-
var __defProps$
|
|
7114
|
-
var __getOwnPropDescs$
|
|
7115
|
-
var __getOwnPropSymbols$
|
|
7116
|
-
var __hasOwnProp$
|
|
7117
|
-
var __propIsEnum$
|
|
7118
|
-
var __defNormalProp$
|
|
7119
|
-
var __spreadValues$
|
|
7182
|
+
var __defProp$f = Object.defineProperty;
|
|
7183
|
+
var __defProps$d = Object.defineProperties;
|
|
7184
|
+
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
7185
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
7186
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
7187
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
7188
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7189
|
+
var __spreadValues$f = (a, b) => {
|
|
7120
7190
|
for (var prop in b || (b = {}))
|
|
7121
|
-
if (__hasOwnProp$
|
|
7122
|
-
__defNormalProp$
|
|
7123
|
-
if (__getOwnPropSymbols$
|
|
7124
|
-
for (var prop of __getOwnPropSymbols$
|
|
7125
|
-
if (__propIsEnum$
|
|
7126
|
-
__defNormalProp$
|
|
7191
|
+
if (__hasOwnProp$f.call(b, prop))
|
|
7192
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
7193
|
+
if (__getOwnPropSymbols$f)
|
|
7194
|
+
for (var prop of __getOwnPropSymbols$f(b)) {
|
|
7195
|
+
if (__propIsEnum$f.call(b, prop))
|
|
7196
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
7127
7197
|
}
|
|
7128
7198
|
return a;
|
|
7129
7199
|
};
|
|
7130
|
-
var __spreadProps$
|
|
7131
|
-
var __objRest$
|
|
7200
|
+
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
|
7201
|
+
var __objRest$4 = (source, exclude) => {
|
|
7132
7202
|
var target = {};
|
|
7133
7203
|
for (var prop in source)
|
|
7134
|
-
if (__hasOwnProp$
|
|
7204
|
+
if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
7135
7205
|
target[prop] = source[prop];
|
|
7136
|
-
if (source != null && __getOwnPropSymbols$
|
|
7137
|
-
for (var prop of __getOwnPropSymbols$
|
|
7138
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
7206
|
+
if (source != null && __getOwnPropSymbols$f)
|
|
7207
|
+
for (var prop of __getOwnPropSymbols$f(source)) {
|
|
7208
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
|
|
7139
7209
|
target[prop] = source[prop];
|
|
7140
7210
|
}
|
|
7141
7211
|
return target;
|
|
@@ -7152,7 +7222,7 @@
|
|
|
7152
7222
|
setTooltipEnable({});
|
|
7153
7223
|
}
|
|
7154
7224
|
}, [textRef]);
|
|
7155
|
-
return /* @__PURE__ */ React__namespace.default.createElement(Tooltip, __spreadProps$
|
|
7225
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Tooltip, __spreadProps$d(__spreadValues$f({}, tooltipEnable), { title: step.title }), /* @__PURE__ */ React__namespace.default.createElement(
|
|
7156
7226
|
"div",
|
|
7157
7227
|
{
|
|
7158
7228
|
className: isVerticalMode ? VerticalStepContentStyle : HorizontalStepContentStyle
|
|
@@ -7169,7 +7239,7 @@
|
|
|
7169
7239
|
current = 0,
|
|
7170
7240
|
disabled,
|
|
7171
7241
|
preview = false
|
|
7172
|
-
} = _a, stepsProps = __objRest$
|
|
7242
|
+
} = _a, stepsProps = __objRest$4(_a, [
|
|
7173
7243
|
"stepsConfig",
|
|
7174
7244
|
"direction",
|
|
7175
7245
|
"containerClassname",
|
|
@@ -7190,7 +7260,7 @@
|
|
|
7190
7260
|
},
|
|
7191
7261
|
/* @__PURE__ */ React__namespace.default.createElement(
|
|
7192
7262
|
antd.Steps,
|
|
7193
|
-
__spreadProps$
|
|
7263
|
+
__spreadProps$d(__spreadValues$f({}, stepsProps), {
|
|
7194
7264
|
direction,
|
|
7195
7265
|
current,
|
|
7196
7266
|
type: "default"
|
|
@@ -7199,7 +7269,7 @@
|
|
|
7199
7269
|
var _a2;
|
|
7200
7270
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
7201
7271
|
antd.Steps.Step,
|
|
7202
|
-
__spreadProps$
|
|
7272
|
+
__spreadProps$d(__spreadValues$f({
|
|
7203
7273
|
key: index
|
|
7204
7274
|
}, step), {
|
|
7205
7275
|
disabled: isPreviewMode ? false : (_a2 = disabled != null ? disabled : step == null ? void 0 : step.disabled) != null ? _a2 : index > current,
|
|
@@ -7224,33 +7294,33 @@
|
|
|
7224
7294
|
);
|
|
7225
7295
|
};
|
|
7226
7296
|
|
|
7227
|
-
var __defProp$
|
|
7228
|
-
var __defProps$
|
|
7229
|
-
var __getOwnPropDescs$
|
|
7230
|
-
var __getOwnPropSymbols$
|
|
7231
|
-
var __hasOwnProp$
|
|
7232
|
-
var __propIsEnum$
|
|
7233
|
-
var __defNormalProp$
|
|
7234
|
-
var __spreadValues$
|
|
7297
|
+
var __defProp$e = Object.defineProperty;
|
|
7298
|
+
var __defProps$c = Object.defineProperties;
|
|
7299
|
+
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
7300
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
7301
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
7302
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
7303
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7304
|
+
var __spreadValues$e = (a, b) => {
|
|
7235
7305
|
for (var prop in b || (b = {}))
|
|
7236
|
-
if (__hasOwnProp$
|
|
7237
|
-
__defNormalProp$
|
|
7238
|
-
if (__getOwnPropSymbols$
|
|
7239
|
-
for (var prop of __getOwnPropSymbols$
|
|
7240
|
-
if (__propIsEnum$
|
|
7241
|
-
__defNormalProp$
|
|
7306
|
+
if (__hasOwnProp$e.call(b, prop))
|
|
7307
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
7308
|
+
if (__getOwnPropSymbols$e)
|
|
7309
|
+
for (var prop of __getOwnPropSymbols$e(b)) {
|
|
7310
|
+
if (__propIsEnum$e.call(b, prop))
|
|
7311
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
7242
7312
|
}
|
|
7243
7313
|
return a;
|
|
7244
7314
|
};
|
|
7245
|
-
var __spreadProps$
|
|
7246
|
-
var __objRest$
|
|
7315
|
+
var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
|
|
7316
|
+
var __objRest$3 = (source, exclude) => {
|
|
7247
7317
|
var target = {};
|
|
7248
7318
|
for (var prop in source)
|
|
7249
|
-
if (__hasOwnProp$
|
|
7319
|
+
if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
7250
7320
|
target[prop] = source[prop];
|
|
7251
|
-
if (source != null && __getOwnPropSymbols$
|
|
7252
|
-
for (var prop of __getOwnPropSymbols$
|
|
7253
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
7321
|
+
if (source != null && __getOwnPropSymbols$e)
|
|
7322
|
+
for (var prop of __getOwnPropSymbols$e(source)) {
|
|
7323
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
|
|
7254
7324
|
target[prop] = source[prop];
|
|
7255
7325
|
}
|
|
7256
7326
|
return target;
|
|
@@ -7277,7 +7347,7 @@
|
|
|
7277
7347
|
showCancel = true,
|
|
7278
7348
|
showOk = true,
|
|
7279
7349
|
afterClose
|
|
7280
|
-
} = _a, restProps = __objRest$
|
|
7350
|
+
} = _a, restProps = __objRest$3(_a, [
|
|
7281
7351
|
"error",
|
|
7282
7352
|
"okText",
|
|
7283
7353
|
"cancelText",
|
|
@@ -7332,7 +7402,7 @@
|
|
|
7332
7402
|
}
|
|
7333
7403
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
7334
7404
|
antd.Modal,
|
|
7335
|
-
__spreadProps$
|
|
7405
|
+
__spreadProps$c(__spreadValues$e({
|
|
7336
7406
|
maskClosable,
|
|
7337
7407
|
className: cs__default.default(
|
|
7338
7408
|
className,
|
|
@@ -7367,7 +7437,7 @@
|
|
|
7367
7437
|
prevText
|
|
7368
7438
|
), error && /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: "modal-error" }, error))), /* @__PURE__ */ React__namespace.default.createElement("div", { className: "modal-footer-btn-group" }, showCancel && /* @__PURE__ */ React__namespace.default.createElement(
|
|
7369
7439
|
Button,
|
|
7370
|
-
__spreadValues$
|
|
7440
|
+
__spreadValues$e({
|
|
7371
7441
|
type: "quiet",
|
|
7372
7442
|
onMouseDown: (e) => {
|
|
7373
7443
|
e.preventDefault();
|
|
@@ -7381,7 +7451,7 @@
|
|
|
7381
7451
|
cancelText
|
|
7382
7452
|
), showOk && /* @__PURE__ */ React__namespace.default.createElement(
|
|
7383
7453
|
Button,
|
|
7384
|
-
__spreadValues$
|
|
7454
|
+
__spreadValues$e({
|
|
7385
7455
|
onClick: (e) => {
|
|
7386
7456
|
var _a2, _b2;
|
|
7387
7457
|
onOk == null ? void 0 : onOk(e);
|
|
@@ -7423,38 +7493,50 @@
|
|
|
7423
7493
|
);
|
|
7424
7494
|
};
|
|
7425
7495
|
|
|
7426
|
-
var __defProp$
|
|
7427
|
-
var __defProps$
|
|
7428
|
-
var __getOwnPropDescs$
|
|
7429
|
-
var __getOwnPropSymbols$
|
|
7430
|
-
var __hasOwnProp$
|
|
7431
|
-
var __propIsEnum$
|
|
7432
|
-
var __defNormalProp$
|
|
7496
|
+
var __defProp$d = Object.defineProperty;
|
|
7497
|
+
var __defProps$b = Object.defineProperties;
|
|
7498
|
+
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
|
7499
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
7500
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
7501
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
7502
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, {
|
|
7433
7503
|
enumerable: true,
|
|
7434
7504
|
configurable: true,
|
|
7435
7505
|
writable: true,
|
|
7436
7506
|
value
|
|
7437
7507
|
}) : obj[key] = value;
|
|
7438
|
-
var __spreadValues$
|
|
7439
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
7440
|
-
if (__getOwnPropSymbols$
|
|
7441
|
-
if (__propIsEnum$
|
|
7508
|
+
var __spreadValues$d = (a, b) => {
|
|
7509
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$d.call(b, prop)) __defNormalProp$d(a, prop, b[prop]);
|
|
7510
|
+
if (__getOwnPropSymbols$d) for (var prop of __getOwnPropSymbols$d(b)) {
|
|
7511
|
+
if (__propIsEnum$d.call(b, prop)) __defNormalProp$d(a, prop, b[prop]);
|
|
7442
7512
|
}
|
|
7443
7513
|
return a;
|
|
7444
7514
|
};
|
|
7445
|
-
var __spreadProps$
|
|
7515
|
+
var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
|
|
7446
7516
|
const OverflowText = "o8ocss1";
|
|
7447
|
-
const
|
|
7517
|
+
const SingleLineStyle = "s17syc35";
|
|
7518
|
+
const _exp = () => ({
|
|
7519
|
+
lineClamp = 2
|
|
7520
|
+
}) => lineClamp;
|
|
7521
|
+
const MultipleLine = /*#__PURE__*/react.styled('div')({
|
|
7522
|
+
name: "MultipleLine",
|
|
7523
|
+
class: "m1rk4s1l",
|
|
7524
|
+
propsAsIs: false,
|
|
7525
|
+
vars: {
|
|
7526
|
+
"m1rk4s1l-0": [_exp()]
|
|
7527
|
+
}
|
|
7528
|
+
});
|
|
7448
7529
|
const OverflowTooltip = props => {
|
|
7449
7530
|
const {
|
|
7450
7531
|
content,
|
|
7451
7532
|
className,
|
|
7452
7533
|
onClick,
|
|
7453
|
-
|
|
7534
|
+
multiLines
|
|
7454
7535
|
} = props;
|
|
7455
7536
|
const tooltip = props.tooltip || content;
|
|
7456
7537
|
const [ellipsis, setEllipsis] = React.useState(false);
|
|
7457
7538
|
const textRef = React.useRef(null);
|
|
7539
|
+
const isMultiLine = multiLines && multiLines > 1;
|
|
7458
7540
|
React.useEffect(() => {
|
|
7459
7541
|
const ele = textRef.current;
|
|
7460
7542
|
let observer;
|
|
@@ -7473,13 +7555,20 @@
|
|
|
7473
7555
|
observer == null ? void 0 : observer.disconnect();
|
|
7474
7556
|
};
|
|
7475
7557
|
});
|
|
7476
|
-
return /* @__PURE__ */React__namespace.default.createElement(Tooltip, __spreadProps$
|
|
7558
|
+
return /* @__PURE__ */React__namespace.default.createElement(Tooltip, __spreadProps$b(__spreadValues$d({}, !ellipsis && {
|
|
7477
7559
|
visible: false
|
|
7478
7560
|
}), {
|
|
7479
7561
|
title: tooltip
|
|
7480
|
-
}), /* @__PURE__ */React__namespace.default.createElement(
|
|
7562
|
+
}), isMultiLine ? /* @__PURE__ */React__namespace.default.createElement(MultipleLine, {
|
|
7481
7563
|
ref: textRef,
|
|
7482
|
-
className: core.cx(OverflowText,
|
|
7564
|
+
className: core.cx(OverflowText, className),
|
|
7565
|
+
lineClamp: multiLines,
|
|
7566
|
+
onClick: () => {
|
|
7567
|
+
onClick && onClick();
|
|
7568
|
+
}
|
|
7569
|
+
}, /* @__PURE__ */React__namespace.default.createElement("span", null, content)) : /* @__PURE__ */React__namespace.default.createElement("div", {
|
|
7570
|
+
ref: textRef,
|
|
7571
|
+
className: core.cx(OverflowText, SingleLineStyle, className),
|
|
7483
7572
|
onClick: () => {
|
|
7484
7573
|
onClick && onClick();
|
|
7485
7574
|
}
|
|
@@ -7591,46 +7680,46 @@
|
|
|
7591
7680
|
}))));
|
|
7592
7681
|
};
|
|
7593
7682
|
|
|
7594
|
-
var __defProp$
|
|
7595
|
-
var __getOwnPropSymbols$
|
|
7596
|
-
var __hasOwnProp$
|
|
7597
|
-
var __propIsEnum$
|
|
7598
|
-
var __defNormalProp$
|
|
7599
|
-
var __spreadValues$
|
|
7683
|
+
var __defProp$c = Object.defineProperty;
|
|
7684
|
+
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
7685
|
+
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
7686
|
+
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
7687
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7688
|
+
var __spreadValues$c = (a, b) => {
|
|
7600
7689
|
for (var prop in b || (b = {}))
|
|
7601
|
-
if (__hasOwnProp$
|
|
7602
|
-
__defNormalProp$
|
|
7603
|
-
if (__getOwnPropSymbols$
|
|
7604
|
-
for (var prop of __getOwnPropSymbols$
|
|
7605
|
-
if (__propIsEnum$
|
|
7606
|
-
__defNormalProp$
|
|
7690
|
+
if (__hasOwnProp$c.call(b, prop))
|
|
7691
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
7692
|
+
if (__getOwnPropSymbols$c)
|
|
7693
|
+
for (var prop of __getOwnPropSymbols$c(b)) {
|
|
7694
|
+
if (__propIsEnum$c.call(b, prop))
|
|
7695
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
7607
7696
|
}
|
|
7608
7697
|
return a;
|
|
7609
7698
|
};
|
|
7610
|
-
const Progress = (props) => /* @__PURE__ */ React__namespace.default.createElement(antd.Progress, __spreadValues$
|
|
7699
|
+
const Progress = (props) => /* @__PURE__ */ React__namespace.default.createElement(antd.Progress, __spreadValues$c({}, props));
|
|
7611
7700
|
|
|
7612
|
-
var __defProp$
|
|
7613
|
-
var __getOwnPropSymbols$
|
|
7614
|
-
var __hasOwnProp$
|
|
7615
|
-
var __propIsEnum$
|
|
7616
|
-
var __defNormalProp$
|
|
7701
|
+
var __defProp$b = Object.defineProperty;
|
|
7702
|
+
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
7703
|
+
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
7704
|
+
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
7705
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, {
|
|
7617
7706
|
enumerable: true,
|
|
7618
7707
|
configurable: true,
|
|
7619
7708
|
writable: true,
|
|
7620
7709
|
value
|
|
7621
7710
|
}) : obj[key] = value;
|
|
7622
|
-
var __spreadValues$
|
|
7623
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
7624
|
-
if (__getOwnPropSymbols$
|
|
7625
|
-
if (__propIsEnum$
|
|
7711
|
+
var __spreadValues$b = (a, b) => {
|
|
7712
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$b.call(b, prop)) __defNormalProp$b(a, prop, b[prop]);
|
|
7713
|
+
if (__getOwnPropSymbols$b) for (var prop of __getOwnPropSymbols$b(b)) {
|
|
7714
|
+
if (__propIsEnum$b.call(b, prop)) __defNormalProp$b(a, prop, b[prop]);
|
|
7626
7715
|
}
|
|
7627
7716
|
return a;
|
|
7628
7717
|
};
|
|
7629
|
-
var __objRest$
|
|
7718
|
+
var __objRest$2 = (source, exclude) => {
|
|
7630
7719
|
var target = {};
|
|
7631
|
-
for (var prop in source) if (__hasOwnProp$
|
|
7632
|
-
if (source != null && __getOwnPropSymbols$
|
|
7633
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
7720
|
+
for (var prop in source) if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
7721
|
+
if (source != null && __getOwnPropSymbols$b) for (var prop of __getOwnPropSymbols$b(source)) {
|
|
7722
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop)) target[prop] = source[prop];
|
|
7634
7723
|
}
|
|
7635
7724
|
return target;
|
|
7636
7725
|
};
|
|
@@ -7646,7 +7735,7 @@
|
|
|
7646
7735
|
checked,
|
|
7647
7736
|
compact = false
|
|
7648
7737
|
} = _b,
|
|
7649
|
-
props = __objRest$
|
|
7738
|
+
props = __objRest$2(_b, ["children", "className", "checked", "compact"]);
|
|
7650
7739
|
const {
|
|
7651
7740
|
description
|
|
7652
7741
|
} = props;
|
|
@@ -7656,7 +7745,7 @@
|
|
|
7656
7745
|
className: core.cx("radio-description", Typo.Label.l4_regular)
|
|
7657
7746
|
}, description));
|
|
7658
7747
|
}
|
|
7659
|
-
return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement(antd.Radio, __spreadValues$
|
|
7748
|
+
return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement(antd.Radio, __spreadValues$b({
|
|
7660
7749
|
className: core.cx(className, RadioStyle, compact && "compact"),
|
|
7661
7750
|
checked: checked || false,
|
|
7662
7751
|
"data-test": context.name ? `${context.name}-${String(props.value)}` : String(props.value)
|
|
@@ -7668,13 +7757,13 @@
|
|
|
7668
7757
|
children,
|
|
7669
7758
|
className
|
|
7670
7759
|
} = _d,
|
|
7671
|
-
props = __objRest$
|
|
7760
|
+
props = __objRest$2(_d, ["children", "className"]);
|
|
7672
7761
|
return /* @__PURE__ */React__namespace.default.createElement(KitRadioGroupContext.Provider, {
|
|
7673
7762
|
value: {
|
|
7674
7763
|
disabled: props.disabled,
|
|
7675
7764
|
name: props.name
|
|
7676
7765
|
}
|
|
7677
|
-
}, /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Group, __spreadValues$
|
|
7766
|
+
}, /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Group, __spreadValues$b({
|
|
7678
7767
|
className: core.cx(className, RadioGroupStyle)
|
|
7679
7768
|
}, props), children ? children : null));
|
|
7680
7769
|
};
|
|
@@ -7684,7 +7773,7 @@
|
|
|
7684
7773
|
children,
|
|
7685
7774
|
className
|
|
7686
7775
|
} = _f,
|
|
7687
|
-
props = __objRest$
|
|
7776
|
+
props = __objRest$2(_f, ["children", "className"]);
|
|
7688
7777
|
const {
|
|
7689
7778
|
type,
|
|
7690
7779
|
placeholder = "Label",
|
|
@@ -7730,7 +7819,7 @@
|
|
|
7730
7819
|
className: "ant-radio-button-input-label"
|
|
7731
7820
|
}, typeof children === "string" ? children : ""));
|
|
7732
7821
|
};
|
|
7733
|
-
return /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Button, __spreadValues$
|
|
7822
|
+
return /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Button, __spreadValues$b({
|
|
7734
7823
|
className: core.cx(className, RadioButtonStyle),
|
|
7735
7824
|
value: radioButtonValue
|
|
7736
7825
|
}, props), renderChildren());
|
|
@@ -7812,35 +7901,35 @@
|
|
|
7812
7901
|
})));
|
|
7813
7902
|
};
|
|
7814
7903
|
|
|
7815
|
-
var __defProp$
|
|
7816
|
-
var __defProps$
|
|
7817
|
-
var __getOwnPropDescs$
|
|
7818
|
-
var __getOwnPropSymbols$
|
|
7819
|
-
var __hasOwnProp$
|
|
7820
|
-
var __propIsEnum$
|
|
7821
|
-
var __defNormalProp$
|
|
7904
|
+
var __defProp$a = Object.defineProperty;
|
|
7905
|
+
var __defProps$a = Object.defineProperties;
|
|
7906
|
+
var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
|
|
7907
|
+
var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
|
|
7908
|
+
var __hasOwnProp$a = Object.prototype.hasOwnProperty;
|
|
7909
|
+
var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
|
|
7910
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, {
|
|
7822
7911
|
enumerable: true,
|
|
7823
7912
|
configurable: true,
|
|
7824
7913
|
writable: true,
|
|
7825
7914
|
value
|
|
7826
7915
|
}) : obj[key] = value;
|
|
7827
|
-
var __spreadValues$
|
|
7828
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
7829
|
-
if (__getOwnPropSymbols$
|
|
7830
|
-
if (__propIsEnum$
|
|
7916
|
+
var __spreadValues$a = (a, b) => {
|
|
7917
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$a.call(b, prop)) __defNormalProp$a(a, prop, b[prop]);
|
|
7918
|
+
if (__getOwnPropSymbols$a) for (var prop of __getOwnPropSymbols$a(b)) {
|
|
7919
|
+
if (__propIsEnum$a.call(b, prop)) __defNormalProp$a(a, prop, b[prop]);
|
|
7831
7920
|
}
|
|
7832
7921
|
return a;
|
|
7833
7922
|
};
|
|
7834
|
-
var __spreadProps$
|
|
7835
|
-
var __objRest$
|
|
7923
|
+
var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
|
|
7924
|
+
var __objRest$1 = (source, exclude) => {
|
|
7836
7925
|
var target = {};
|
|
7837
|
-
for (var prop in source) if (__hasOwnProp$
|
|
7838
|
-
if (source != null && __getOwnPropSymbols$
|
|
7839
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
7926
|
+
for (var prop in source) if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
7927
|
+
if (source != null && __getOwnPropSymbols$a) for (var prop of __getOwnPropSymbols$a(source)) {
|
|
7928
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$a.call(source, prop)) target[prop] = source[prop];
|
|
7840
7929
|
}
|
|
7841
7930
|
return target;
|
|
7842
7931
|
};
|
|
7843
|
-
const PresetColors
|
|
7932
|
+
const PresetColors = ["blue", "red", "yellow", "green", "gray"];
|
|
7844
7933
|
const StatusCapsuleStyle = "s14dk8r1";
|
|
7845
7934
|
const StatusCode = /*#__PURE__*/react.styled('i')({
|
|
7846
7935
|
name: "StatusCode",
|
|
@@ -7879,11 +7968,11 @@
|
|
|
7879
7968
|
offWhiteMode,
|
|
7880
7969
|
number
|
|
7881
7970
|
} = _b,
|
|
7882
|
-
props = __objRest$
|
|
7971
|
+
props = __objRest$1(_b, ["color", "className", "loading", "hoverable", "children", "offWhiteMode", "number"]);
|
|
7883
7972
|
const computedColor = ColorMap[color] || color;
|
|
7884
|
-
return /* @__PURE__ */React__namespace.default.createElement(antd.Tag, __spreadProps$
|
|
7973
|
+
return /* @__PURE__ */React__namespace.default.createElement(antd.Tag, __spreadProps$a(__spreadValues$a({}, props), {
|
|
7885
7974
|
className: cs__default.default(className, StatusCapsuleStyle, Typo.Label.l4_regular, "ui-kit-status-capsule", {
|
|
7886
|
-
[`ant-tag-${computedColor}`]: PresetColors
|
|
7975
|
+
[`ant-tag-${computedColor}`]: PresetColors.includes(computedColor),
|
|
7887
7976
|
"tag-hover": hoverable,
|
|
7888
7977
|
"off-white": offWhiteMode
|
|
7889
7978
|
}),
|
|
@@ -7974,26 +8063,26 @@
|
|
|
7974
8063
|
}));
|
|
7975
8064
|
};
|
|
7976
8065
|
|
|
7977
|
-
var __defProp$
|
|
7978
|
-
var __defProps$
|
|
7979
|
-
var __getOwnPropDescs$
|
|
7980
|
-
var __getOwnPropSymbols$
|
|
7981
|
-
var __hasOwnProp$
|
|
7982
|
-
var __propIsEnum$
|
|
7983
|
-
var __defNormalProp$
|
|
8066
|
+
var __defProp$9 = Object.defineProperty;
|
|
8067
|
+
var __defProps$9 = Object.defineProperties;
|
|
8068
|
+
var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
|
|
8069
|
+
var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
|
|
8070
|
+
var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
|
|
8071
|
+
var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
|
|
8072
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, {
|
|
7984
8073
|
enumerable: true,
|
|
7985
8074
|
configurable: true,
|
|
7986
8075
|
writable: true,
|
|
7987
8076
|
value
|
|
7988
8077
|
}) : obj[key] = value;
|
|
7989
|
-
var __spreadValues$
|
|
7990
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
7991
|
-
if (__getOwnPropSymbols$
|
|
7992
|
-
if (__propIsEnum$
|
|
8078
|
+
var __spreadValues$9 = (a, b) => {
|
|
8079
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$9.call(b, prop)) __defNormalProp$9(a, prop, b[prop]);
|
|
8080
|
+
if (__getOwnPropSymbols$9) for (var prop of __getOwnPropSymbols$9(b)) {
|
|
8081
|
+
if (__propIsEnum$9.call(b, prop)) __defNormalProp$9(a, prop, b[prop]);
|
|
7993
8082
|
}
|
|
7994
8083
|
return a;
|
|
7995
8084
|
};
|
|
7996
|
-
var __spreadProps$
|
|
8085
|
+
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
|
|
7997
8086
|
const TableContainerStyle = "t1upn1sz";
|
|
7998
8087
|
const tableStyleCover = "tta5kd2";
|
|
7999
8088
|
const Table = props => {
|
|
@@ -8020,7 +8109,7 @@
|
|
|
8020
8109
|
const orderRef = React.useRef(null);
|
|
8021
8110
|
const hasScrollBard = useTableBodyHasScrollBar(wrapper, dataSource);
|
|
8022
8111
|
const _columns = React.useMemo(() => columns.map(column => {
|
|
8023
|
-
const _column = __spreadValues$
|
|
8112
|
+
const _column = __spreadValues$9({}, column);
|
|
8024
8113
|
if (_column.sorter && typeof _column.title !== "function") {
|
|
8025
8114
|
_column.title = /* @__PURE__ */React__namespace.default.createElement(ColumnTitle, {
|
|
8026
8115
|
title: column.title,
|
|
@@ -8057,12 +8146,12 @@
|
|
|
8057
8146
|
onSorterChange == null ? void 0 : onSorterChange(orderRef.current, sorter.columnKey);
|
|
8058
8147
|
}
|
|
8059
8148
|
},
|
|
8060
|
-
onRow: (record, index) => __spreadValues$
|
|
8149
|
+
onRow: (record, index) => __spreadValues$9({
|
|
8061
8150
|
onClick: evt => onRowClick == null ? void 0 : onRowClick(record, index, evt)
|
|
8062
8151
|
}, onRow == null ? void 0 : onRow(record, index)),
|
|
8063
8152
|
rowClassName,
|
|
8064
8153
|
scroll,
|
|
8065
|
-
rowSelection: rowSelection && __spreadProps$
|
|
8154
|
+
rowSelection: rowSelection && __spreadProps$9(__spreadValues$9({}, rowSelection), {
|
|
8066
8155
|
columnWidth: 32
|
|
8067
8156
|
}),
|
|
8068
8157
|
showSorterTooltip: false
|
|
@@ -8124,33 +8213,33 @@
|
|
|
8124
8213
|
return sortArr;
|
|
8125
8214
|
};
|
|
8126
8215
|
|
|
8127
|
-
var __defProp$
|
|
8128
|
-
var __defProps$
|
|
8129
|
-
var __getOwnPropDescs$
|
|
8130
|
-
var __getOwnPropSymbols$
|
|
8131
|
-
var __hasOwnProp$
|
|
8132
|
-
var __propIsEnum$
|
|
8133
|
-
var __defNormalProp$
|
|
8134
|
-
var __spreadValues$
|
|
8216
|
+
var __defProp$8 = Object.defineProperty;
|
|
8217
|
+
var __defProps$8 = Object.defineProperties;
|
|
8218
|
+
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
|
8219
|
+
var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
|
|
8220
|
+
var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
|
|
8221
|
+
var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
|
|
8222
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8223
|
+
var __spreadValues$8 = (a, b) => {
|
|
8135
8224
|
for (var prop in b || (b = {}))
|
|
8136
|
-
if (__hasOwnProp$
|
|
8137
|
-
__defNormalProp$
|
|
8138
|
-
if (__getOwnPropSymbols$
|
|
8139
|
-
for (var prop of __getOwnPropSymbols$
|
|
8140
|
-
if (__propIsEnum$
|
|
8141
|
-
__defNormalProp$
|
|
8225
|
+
if (__hasOwnProp$8.call(b, prop))
|
|
8226
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
8227
|
+
if (__getOwnPropSymbols$8)
|
|
8228
|
+
for (var prop of __getOwnPropSymbols$8(b)) {
|
|
8229
|
+
if (__propIsEnum$8.call(b, prop))
|
|
8230
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
8142
8231
|
}
|
|
8143
8232
|
return a;
|
|
8144
8233
|
};
|
|
8145
|
-
var __spreadProps$
|
|
8146
|
-
var __objRest
|
|
8234
|
+
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
8235
|
+
var __objRest = (source, exclude) => {
|
|
8147
8236
|
var target = {};
|
|
8148
8237
|
for (var prop in source)
|
|
8149
|
-
if (__hasOwnProp$
|
|
8238
|
+
if (__hasOwnProp$8.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
8150
8239
|
target[prop] = source[prop];
|
|
8151
|
-
if (source != null && __getOwnPropSymbols$
|
|
8152
|
-
for (var prop of __getOwnPropSymbols$
|
|
8153
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
8240
|
+
if (source != null && __getOwnPropSymbols$8)
|
|
8241
|
+
for (var prop of __getOwnPropSymbols$8(source)) {
|
|
8242
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$8.call(source, prop))
|
|
8154
8243
|
target[prop] = source[prop];
|
|
8155
8244
|
}
|
|
8156
8245
|
return target;
|
|
@@ -8166,7 +8255,7 @@
|
|
|
8166
8255
|
const _a = buttonProps || {}, {
|
|
8167
8256
|
disabled: disabledFromProp,
|
|
8168
8257
|
onClick
|
|
8169
|
-
} = _a, restButtonProps = __objRest
|
|
8258
|
+
} = _a, restButtonProps = __objRest(_a, [
|
|
8170
8259
|
"disabled",
|
|
8171
8260
|
"onClick"
|
|
8172
8261
|
]);
|
|
@@ -8191,9 +8280,9 @@
|
|
|
8191
8280
|
if (!columns.length) {
|
|
8192
8281
|
return null;
|
|
8193
8282
|
}
|
|
8194
|
-
return CustomizedButton ? /* @__PURE__ */ React__namespace.default.createElement(CustomizedButton, __spreadValues$
|
|
8283
|
+
return CustomizedButton ? /* @__PURE__ */ React__namespace.default.createElement(CustomizedButton, __spreadValues$8({}, props)) : /* @__PURE__ */ React__namespace.default.createElement(AddRowButtonWrapper, { className }, /* @__PURE__ */ React__namespace.default.createElement(
|
|
8195
8284
|
Button,
|
|
8196
|
-
__spreadProps$
|
|
8285
|
+
__spreadProps$8(__spreadValues$8({}, restButtonProps), {
|
|
8197
8286
|
type: restButtonProps.type || "ordinary",
|
|
8198
8287
|
size: restButtonProps.size || "small",
|
|
8199
8288
|
prefixIcon: restButtonProps.prefixIcon || /* @__PURE__ */ React__namespace.default.createElement(iconsReact.PlusAddCreateNew16SecondaryIcon, null),
|
|
@@ -8288,25 +8377,25 @@
|
|
|
8288
8377
|
);
|
|
8289
8378
|
};
|
|
8290
8379
|
|
|
8291
|
-
var __defProp$
|
|
8292
|
-
var __defProps$
|
|
8293
|
-
var __getOwnPropDescs$
|
|
8294
|
-
var __getOwnPropSymbols$
|
|
8295
|
-
var __hasOwnProp$
|
|
8296
|
-
var __propIsEnum$
|
|
8297
|
-
var __defNormalProp$
|
|
8298
|
-
var __spreadValues$
|
|
8380
|
+
var __defProp$7 = Object.defineProperty;
|
|
8381
|
+
var __defProps$7 = Object.defineProperties;
|
|
8382
|
+
var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
|
|
8383
|
+
var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
|
|
8384
|
+
var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
|
|
8385
|
+
var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
|
|
8386
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8387
|
+
var __spreadValues$7 = (a, b) => {
|
|
8299
8388
|
for (var prop in b || (b = {}))
|
|
8300
|
-
if (__hasOwnProp$
|
|
8301
|
-
__defNormalProp$
|
|
8302
|
-
if (__getOwnPropSymbols$
|
|
8303
|
-
for (var prop of __getOwnPropSymbols$
|
|
8304
|
-
if (__propIsEnum$
|
|
8305
|
-
__defNormalProp$
|
|
8389
|
+
if (__hasOwnProp$7.call(b, prop))
|
|
8390
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
8391
|
+
if (__getOwnPropSymbols$7)
|
|
8392
|
+
for (var prop of __getOwnPropSymbols$7(b)) {
|
|
8393
|
+
if (__propIsEnum$7.call(b, prop))
|
|
8394
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
8306
8395
|
}
|
|
8307
8396
|
return a;
|
|
8308
8397
|
};
|
|
8309
|
-
var __spreadProps$
|
|
8398
|
+
var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
|
|
8310
8399
|
const InputPassword = (props) => {
|
|
8311
8400
|
const [showPassword, setShowPassword] = React.useState(false);
|
|
8312
8401
|
React.useEffect(() => {
|
|
@@ -8322,7 +8411,7 @@
|
|
|
8322
8411
|
const inputType = showPassword ? "text" : "password";
|
|
8323
8412
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
8324
8413
|
Input,
|
|
8325
|
-
__spreadProps$
|
|
8414
|
+
__spreadProps$7(__spreadValues$7({}, props), {
|
|
8326
8415
|
type: inputType,
|
|
8327
8416
|
suffix: showPassword ? /* @__PURE__ */ React__namespace.default.createElement(
|
|
8328
8417
|
icons.EyeOutlined,
|
|
@@ -8342,9 +8431,9 @@
|
|
|
8342
8431
|
};
|
|
8343
8432
|
const CustomInput = (props) => {
|
|
8344
8433
|
if (props.type === "password") {
|
|
8345
|
-
return /* @__PURE__ */ React__namespace.default.createElement(InputPassword, __spreadValues$
|
|
8434
|
+
return /* @__PURE__ */ React__namespace.default.createElement(InputPassword, __spreadValues$7({}, props));
|
|
8346
8435
|
}
|
|
8347
|
-
return /* @__PURE__ */ React__namespace.default.createElement(Input, __spreadValues$
|
|
8436
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Input, __spreadValues$7({}, props));
|
|
8348
8437
|
};
|
|
8349
8438
|
const InputColumnHeaderCell = ({ disabled, column, onChange, onBlur, onVisibleChange }) => {
|
|
8350
8439
|
const _onChange = (e) => {
|
|
@@ -8468,25 +8557,25 @@
|
|
|
8468
8557
|
return ValidateTriggerType2;
|
|
8469
8558
|
})(ValidateTriggerType || {});
|
|
8470
8559
|
|
|
8471
|
-
var __defProp$
|
|
8472
|
-
var __defProps$
|
|
8473
|
-
var __getOwnPropDescs$
|
|
8474
|
-
var __getOwnPropSymbols$
|
|
8475
|
-
var __hasOwnProp$
|
|
8476
|
-
var __propIsEnum$
|
|
8477
|
-
var __defNormalProp$
|
|
8478
|
-
var __spreadValues$
|
|
8560
|
+
var __defProp$6 = Object.defineProperty;
|
|
8561
|
+
var __defProps$6 = Object.defineProperties;
|
|
8562
|
+
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
8563
|
+
var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
|
|
8564
|
+
var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
|
|
8565
|
+
var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
|
|
8566
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8567
|
+
var __spreadValues$6 = (a, b) => {
|
|
8479
8568
|
for (var prop in b || (b = {}))
|
|
8480
|
-
if (__hasOwnProp$
|
|
8481
|
-
__defNormalProp$
|
|
8482
|
-
if (__getOwnPropSymbols$
|
|
8483
|
-
for (var prop of __getOwnPropSymbols$
|
|
8484
|
-
if (__propIsEnum$
|
|
8485
|
-
__defNormalProp$
|
|
8569
|
+
if (__hasOwnProp$6.call(b, prop))
|
|
8570
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
8571
|
+
if (__getOwnPropSymbols$6)
|
|
8572
|
+
for (var prop of __getOwnPropSymbols$6(b)) {
|
|
8573
|
+
if (__propIsEnum$6.call(b, prop))
|
|
8574
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
8486
8575
|
}
|
|
8487
8576
|
return a;
|
|
8488
8577
|
};
|
|
8489
|
-
var __spreadProps$
|
|
8578
|
+
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
|
8490
8579
|
const TableFormBodyCell = (props) => {
|
|
8491
8580
|
const {
|
|
8492
8581
|
column,
|
|
@@ -8519,7 +8608,7 @@
|
|
|
8519
8608
|
(currentValue) => {
|
|
8520
8609
|
var _a;
|
|
8521
8610
|
const value = currentValue != null ? currentValue : data[rowIndex][column.key];
|
|
8522
|
-
const rowData = __spreadProps$
|
|
8611
|
+
const rowData = __spreadProps$6(__spreadValues$6({}, data[rowIndex]), { [column.key]: value });
|
|
8523
8612
|
const rowValidateRes = getRowValidateResult(rowData);
|
|
8524
8613
|
if (rowValidateRes) {
|
|
8525
8614
|
return;
|
|
@@ -8545,7 +8634,7 @@
|
|
|
8545
8634
|
}, [validateAll, triggerValidate, setIsTouched]);
|
|
8546
8635
|
const _onChange = (value, data2) => {
|
|
8547
8636
|
const newData = data2.map(
|
|
8548
|
-
(row, i) => i === rowIndex ? __spreadProps$
|
|
8637
|
+
(row, i) => i === rowIndex ? __spreadProps$6(__spreadValues$6({}, row), { [column.key]: value }) : row
|
|
8549
8638
|
);
|
|
8550
8639
|
onChange == null ? void 0 : onChange(newData, rowIndex, column.key);
|
|
8551
8640
|
if (validateTriggerType === ValidateTriggerType.Normal && isTouched || validateTriggerType === ValidateTriggerType.Aggressive) {
|
|
@@ -8623,25 +8712,25 @@
|
|
|
8623
8712
|
);
|
|
8624
8713
|
};
|
|
8625
8714
|
|
|
8626
|
-
var __defProp$
|
|
8627
|
-
var __defProps$
|
|
8628
|
-
var __getOwnPropDescs$
|
|
8629
|
-
var __getOwnPropSymbols$
|
|
8630
|
-
var __hasOwnProp$
|
|
8631
|
-
var __propIsEnum$
|
|
8632
|
-
var __defNormalProp$
|
|
8633
|
-
var __spreadValues$
|
|
8715
|
+
var __defProp$5 = Object.defineProperty;
|
|
8716
|
+
var __defProps$5 = Object.defineProperties;
|
|
8717
|
+
var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
|
|
8718
|
+
var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
|
|
8719
|
+
var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
|
|
8720
|
+
var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
|
|
8721
|
+
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8722
|
+
var __spreadValues$5 = (a, b) => {
|
|
8634
8723
|
for (var prop in b || (b = {}))
|
|
8635
|
-
if (__hasOwnProp$
|
|
8636
|
-
__defNormalProp$
|
|
8637
|
-
if (__getOwnPropSymbols$
|
|
8638
|
-
for (var prop of __getOwnPropSymbols$
|
|
8639
|
-
if (__propIsEnum$
|
|
8640
|
-
__defNormalProp$
|
|
8724
|
+
if (__hasOwnProp$5.call(b, prop))
|
|
8725
|
+
__defNormalProp$5(a, prop, b[prop]);
|
|
8726
|
+
if (__getOwnPropSymbols$5)
|
|
8727
|
+
for (var prop of __getOwnPropSymbols$5(b)) {
|
|
8728
|
+
if (__propIsEnum$5.call(b, prop))
|
|
8729
|
+
__defNormalProp$5(a, prop, b[prop]);
|
|
8641
8730
|
}
|
|
8642
8731
|
return a;
|
|
8643
8732
|
};
|
|
8644
|
-
var __spreadProps$
|
|
8733
|
+
var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
|
|
8645
8734
|
const TableFormRowDeleteAction = (props) => {
|
|
8646
8735
|
var _a, _b, _c, _d;
|
|
8647
8736
|
const { deleteConfig, row, updateData, rowIndex, data } = props;
|
|
@@ -8734,7 +8823,7 @@
|
|
|
8734
8823
|
);
|
|
8735
8824
|
});
|
|
8736
8825
|
const DraggableHandle = React.useMemo(
|
|
8737
|
-
() => draggable && provided ? /* @__PURE__ */ React__namespace.default.createElement(DraggableHandleWrapper, __spreadValues$
|
|
8826
|
+
() => draggable && provided ? /* @__PURE__ */ React__namespace.default.createElement(DraggableHandleWrapper, __spreadValues$5({}, provided.dragHandleProps), /* @__PURE__ */ React__namespace.default.createElement(
|
|
8738
8827
|
Icon,
|
|
8739
8828
|
{
|
|
8740
8829
|
src: iconsReact.HandlePoint816SecondaryIcon,
|
|
@@ -8796,7 +8885,7 @@
|
|
|
8796
8885
|
);
|
|
8797
8886
|
return draggable ? /* @__PURE__ */ React__namespace.default.createElement(reactBeautifulDnd.DragDropContext, { onDragEnd }, /* @__PURE__ */ React__namespace.default.createElement(reactBeautifulDnd.Droppable, { droppableId: "droppable" }, (provided) => /* @__PURE__ */ React__namespace.default.createElement(
|
|
8798
8887
|
"div",
|
|
8799
|
-
__spreadValues$
|
|
8888
|
+
__spreadValues$5({
|
|
8800
8889
|
className: "draggable-container",
|
|
8801
8890
|
ref: provided.innerRef
|
|
8802
8891
|
}, provided.droppableProps),
|
|
@@ -8807,9 +8896,9 @@
|
|
|
8807
8896
|
key: `draggable-id-${i}`,
|
|
8808
8897
|
index: i
|
|
8809
8898
|
},
|
|
8810
|
-
(provided2, snapshot) => /* @__PURE__ */ React__namespace.default.createElement("div", __spreadValues$
|
|
8899
|
+
(provided2, snapshot) => /* @__PURE__ */ React__namespace.default.createElement("div", __spreadValues$5({ ref: provided2.innerRef }, provided2.draggableProps), /* @__PURE__ */ React__namespace.default.createElement(
|
|
8811
8900
|
TableFormRow,
|
|
8812
|
-
__spreadProps$
|
|
8901
|
+
__spreadProps$5(__spreadValues$5({}, props), {
|
|
8813
8902
|
rowIndex: i,
|
|
8814
8903
|
provided: provided2,
|
|
8815
8904
|
snapshot
|
|
@@ -8817,28 +8906,28 @@
|
|
|
8817
8906
|
))
|
|
8818
8907
|
)),
|
|
8819
8908
|
provided.placeholder
|
|
8820
|
-
))) : /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, data.map((_d, i) => /* @__PURE__ */ React__namespace.default.createElement(TableFormRow, __spreadProps$
|
|
8909
|
+
))) : /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, data.map((_d, i) => /* @__PURE__ */ React__namespace.default.createElement(TableFormRow, __spreadProps$5(__spreadValues$5({}, props), { rowIndex: i, key: `table-row-${i}` }))));
|
|
8821
8910
|
});
|
|
8822
8911
|
|
|
8823
|
-
var __defProp$
|
|
8824
|
-
var __defProps$
|
|
8825
|
-
var __getOwnPropDescs$
|
|
8826
|
-
var __getOwnPropSymbols$
|
|
8827
|
-
var __hasOwnProp$
|
|
8828
|
-
var __propIsEnum$
|
|
8829
|
-
var __defNormalProp$
|
|
8830
|
-
var __spreadValues$
|
|
8912
|
+
var __defProp$4 = Object.defineProperty;
|
|
8913
|
+
var __defProps$4 = Object.defineProperties;
|
|
8914
|
+
var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
|
|
8915
|
+
var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
|
|
8916
|
+
var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
|
|
8917
|
+
var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
|
|
8918
|
+
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8919
|
+
var __spreadValues$4 = (a, b) => {
|
|
8831
8920
|
for (var prop in b || (b = {}))
|
|
8832
|
-
if (__hasOwnProp$
|
|
8833
|
-
__defNormalProp$
|
|
8834
|
-
if (__getOwnPropSymbols$
|
|
8835
|
-
for (var prop of __getOwnPropSymbols$
|
|
8836
|
-
if (__propIsEnum$
|
|
8837
|
-
__defNormalProp$
|
|
8921
|
+
if (__hasOwnProp$4.call(b, prop))
|
|
8922
|
+
__defNormalProp$4(a, prop, b[prop]);
|
|
8923
|
+
if (__getOwnPropSymbols$4)
|
|
8924
|
+
for (var prop of __getOwnPropSymbols$4(b)) {
|
|
8925
|
+
if (__propIsEnum$4.call(b, prop))
|
|
8926
|
+
__defNormalProp$4(a, prop, b[prop]);
|
|
8838
8927
|
}
|
|
8839
8928
|
return a;
|
|
8840
8929
|
};
|
|
8841
|
-
var __spreadProps$
|
|
8930
|
+
var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
|
|
8842
8931
|
const BatchInputListHeaderCell = (props) => {
|
|
8843
8932
|
const { column, disabled, data, disableBatchFilling, onBlur, onChange } = props;
|
|
8844
8933
|
const [errMsg, setErrMsg] = React.useState();
|
|
@@ -8850,7 +8939,7 @@
|
|
|
8850
8939
|
setErrMsg(err || void 0);
|
|
8851
8940
|
const shouldAutoIncrease = column.type !== "password" && column.autoIncrease;
|
|
8852
8941
|
const newData = data.map((cell, rowIndex) => {
|
|
8853
|
-
return __spreadProps$
|
|
8942
|
+
return __spreadProps$4(__spreadValues$4({}, cell), {
|
|
8854
8943
|
[column.key]: shouldAutoIncrease && typeof value === "string" ? increaseLastNumber(value, rowIndex) : value
|
|
8855
8944
|
});
|
|
8856
8945
|
});
|
|
@@ -8867,7 +8956,7 @@
|
|
|
8867
8956
|
const CellComponent = ColumnHeaderImpls[column.type];
|
|
8868
8957
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
8869
8958
|
CellComponent,
|
|
8870
|
-
__spreadProps$
|
|
8959
|
+
__spreadProps$4(__spreadValues$4({}, props), {
|
|
8871
8960
|
column,
|
|
8872
8961
|
onChange: headerOnChange,
|
|
8873
8962
|
onBlur: _onBlur
|
|
@@ -8902,25 +8991,25 @@
|
|
|
8902
8991
|
);
|
|
8903
8992
|
};
|
|
8904
8993
|
|
|
8905
|
-
var __defProp$
|
|
8906
|
-
var __defProps$
|
|
8907
|
-
var __getOwnPropDescs$
|
|
8908
|
-
var __getOwnPropSymbols$
|
|
8909
|
-
var __hasOwnProp$
|
|
8910
|
-
var __propIsEnum$
|
|
8911
|
-
var __defNormalProp$
|
|
8912
|
-
var __spreadValues$
|
|
8994
|
+
var __defProp$3 = Object.defineProperty;
|
|
8995
|
+
var __defProps$3 = Object.defineProperties;
|
|
8996
|
+
var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
|
|
8997
|
+
var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
|
|
8998
|
+
var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
|
|
8999
|
+
var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
|
|
9000
|
+
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9001
|
+
var __spreadValues$3 = (a, b) => {
|
|
8913
9002
|
for (var prop in b || (b = {}))
|
|
8914
|
-
if (__hasOwnProp$
|
|
8915
|
-
__defNormalProp$
|
|
8916
|
-
if (__getOwnPropSymbols$
|
|
8917
|
-
for (var prop of __getOwnPropSymbols$
|
|
8918
|
-
if (__propIsEnum$
|
|
8919
|
-
__defNormalProp$
|
|
9003
|
+
if (__hasOwnProp$3.call(b, prop))
|
|
9004
|
+
__defNormalProp$3(a, prop, b[prop]);
|
|
9005
|
+
if (__getOwnPropSymbols$3)
|
|
9006
|
+
for (var prop of __getOwnPropSymbols$3(b)) {
|
|
9007
|
+
if (__propIsEnum$3.call(b, prop))
|
|
9008
|
+
__defNormalProp$3(a, prop, b[prop]);
|
|
8920
9009
|
}
|
|
8921
9010
|
return a;
|
|
8922
9011
|
};
|
|
8923
|
-
var __spreadProps$
|
|
9012
|
+
var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
|
|
8924
9013
|
const DEFAULT_ROW_COUNT = 3;
|
|
8925
9014
|
const TableForm = React__namespace.default.forwardRef(
|
|
8926
9015
|
(props, ref) => {
|
|
@@ -8982,7 +9071,7 @@
|
|
|
8982
9071
|
(key, error) => {
|
|
8983
9072
|
if (error) {
|
|
8984
9073
|
const newData = latestData.map((cell) => {
|
|
8985
|
-
return __spreadProps$
|
|
9074
|
+
return __spreadProps$3(__spreadValues$3({}, cell), {
|
|
8986
9075
|
[key]: ""
|
|
8987
9076
|
});
|
|
8988
9077
|
});
|
|
@@ -9250,78 +9339,6 @@
|
|
|
9250
9339
|
})));
|
|
9251
9340
|
};
|
|
9252
9341
|
|
|
9253
|
-
const IconStyle = "iwsze0q";
|
|
9254
|
-
|
|
9255
|
-
var __defProp$3 = Object.defineProperty;
|
|
9256
|
-
var __defProps$3 = Object.defineProperties;
|
|
9257
|
-
var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
|
|
9258
|
-
var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
|
|
9259
|
-
var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
|
|
9260
|
-
var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
|
|
9261
|
-
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, {
|
|
9262
|
-
enumerable: true,
|
|
9263
|
-
configurable: true,
|
|
9264
|
-
writable: true,
|
|
9265
|
-
value
|
|
9266
|
-
}) : obj[key] = value;
|
|
9267
|
-
var __spreadValues$3 = (a, b) => {
|
|
9268
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$3.call(b, prop)) __defNormalProp$3(a, prop, b[prop]);
|
|
9269
|
-
if (__getOwnPropSymbols$3) for (var prop of __getOwnPropSymbols$3(b)) {
|
|
9270
|
-
if (__propIsEnum$3.call(b, prop)) __defNormalProp$3(a, prop, b[prop]);
|
|
9271
|
-
}
|
|
9272
|
-
return a;
|
|
9273
|
-
};
|
|
9274
|
-
var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
|
|
9275
|
-
var __objRest = (source, exclude) => {
|
|
9276
|
-
var target = {};
|
|
9277
|
-
for (var prop in source) if (__hasOwnProp$3.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
9278
|
-
if (source != null && __getOwnPropSymbols$3) for (var prop of __getOwnPropSymbols$3(source)) {
|
|
9279
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$3.call(source, prop)) target[prop] = source[prop];
|
|
9280
|
-
}
|
|
9281
|
-
return target;
|
|
9282
|
-
};
|
|
9283
|
-
const PresetColors = ["blue", "red", "yellow", "green", "gray", "purple"];
|
|
9284
|
-
const Size = {
|
|
9285
|
-
small: "s1uupxds",
|
|
9286
|
-
medium: "m10sqwut",
|
|
9287
|
-
large: "l1d492wb"
|
|
9288
|
-
};
|
|
9289
|
-
const TokenStyle = "t1lzavmu";
|
|
9290
|
-
const Token = React__namespace.default.forwardRef((_a, ref) => {
|
|
9291
|
-
var _b = _a,
|
|
9292
|
-
{
|
|
9293
|
-
size = "small",
|
|
9294
|
-
color = "gray",
|
|
9295
|
-
className,
|
|
9296
|
-
icon,
|
|
9297
|
-
checked,
|
|
9298
|
-
children,
|
|
9299
|
-
tooltipConfig
|
|
9300
|
-
} = _b,
|
|
9301
|
-
props = __objRest(_b, ["size", "color", "className", "icon", "checked", "children", "tooltipConfig"]);
|
|
9302
|
-
return /* @__PURE__ */React__namespace.default.createElement(antd.Tag, __spreadProps$3(__spreadValues$3({}, props), {
|
|
9303
|
-
ref,
|
|
9304
|
-
className: cs__default.default(className, Size[size], TokenStyle, {
|
|
9305
|
-
[Typo.Label.l4_regular]: size === "small" || size === "medium",
|
|
9306
|
-
[Typo.Label.l3_regular]: size === "large",
|
|
9307
|
-
[`ant-tag-${color}`]: PresetColors.includes(color)
|
|
9308
|
-
}, "ui-kit-token", checked && "ui-kit-token-checked"),
|
|
9309
|
-
closeIcon: /* @__PURE__ */React__namespace.default.createElement(Tooltip, __spreadValues$3({
|
|
9310
|
-
title: tooltipConfig == null ? void 0 : tooltipConfig.title
|
|
9311
|
-
}, !(tooltipConfig == null ? void 0 : tooltipConfig.title) && {
|
|
9312
|
-
visible: false
|
|
9313
|
-
}), /* @__PURE__ */React__namespace.default.createElement(Icon, {
|
|
9314
|
-
className: "selected-icon",
|
|
9315
|
-
src: iconsReact.XmarkRemoveSmall16RegularInheritIcon,
|
|
9316
|
-
iconHeight: 16,
|
|
9317
|
-
iconWidth: 16
|
|
9318
|
-
})),
|
|
9319
|
-
color: color === "gray" ? void 0 : color
|
|
9320
|
-
}), icon && /* @__PURE__ */React__namespace.default.createElement("span", {
|
|
9321
|
-
className: cs__default.default("ui-kit-tag-icon", IconStyle)
|
|
9322
|
-
}, icon), children);
|
|
9323
|
-
});
|
|
9324
|
-
|
|
9325
9342
|
const Inline = "i1e4sgug";
|
|
9326
9343
|
const Truncate = props => {
|
|
9327
9344
|
const {
|