@cloudtower/eagle 0.26.8 → 0.26.10
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/Button/index.d.ts +3 -3
- package/dist/components/Card/CardBody.d.ts +5 -0
- package/dist/components/Card/CardTitle.d.ts +5 -0
- package/dist/components/Card/CardWrapper.d.ts +10 -0
- package/dist/components/Card/__test__/Card.spec.d.ts +1 -0
- package/dist/components/Card/index.d.ts +13 -0
- package/dist/components/Stack/index.d.ts +12 -0
- package/dist/components/TableForm/Columns/InputColumn.d.ts +1 -0
- package/dist/components/TableForm/Columns/index.d.ts +6 -3
- package/dist/components/TableForm/__test__/tableForm.test.d.ts +1 -0
- package/dist/components/TableForm/types.d.ts +36 -2
- package/dist/components/Tag/SplitTag.d.ts +3 -0
- package/dist/components/Tag/const.d.ts +1 -0
- package/dist/components/Tag/index.d.ts +6 -0
- package/dist/components/Tag/style.d.ts +4 -0
- package/dist/components.css +726 -615
- package/dist/esm/index.js +1300 -1001
- package/dist/esm/stats1.html +1 -1
- package/dist/spec/base.d.ts +17 -4
- package/dist/style.css +1127 -1016
- package/dist/umd/index.js +1300 -1001
- package/dist/umd/stats1.html +1 -1
- package/dist/utils/testSuit.d.ts +2 -0
- package/dist/variables.scss +3 -2
- package/package.json +5 -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('antd'), require('react'), require('classnames'), require('lodash'), require('react-svg-unique-id'), require('@cloudtower/parrot'), require('react-i18next'), require('@linaria/core'), require('@linaria/react'), require('moment'), require('react-dom'), require('react-is'), require('@ant-design/icons'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'antd', 'react', 'classnames', 'lodash', 'react-svg-unique-id', '@cloudtower/parrot', 'react-i18next', '@linaria/core', '@linaria/react', 'moment', 'react-dom', 'react-is', '@ant-design/icons', '
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.index = {}, global.antd, global.React, global.cs, global._, global.reactSvgUniqueId, global.parrot, global.reactI18next, global.core, global.react, global.moment, global.reactDom, global.reactIs, global.icons, global.
|
|
5
|
-
})(this, (function (exports, antd, React, cs, _, reactSvgUniqueId, parrot, reactI18next, core, react, moment, reactDom, reactIs, icons,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('antd'), require('react'), require('classnames'), require('lodash'), require('react-svg-unique-id'), require('@cloudtower/parrot'), require('react-i18next'), require('@linaria/core'), require('@linaria/react'), require('@cloudtower/icons-react'), require('moment'), require('react-dom'), require('react-is'), require('@ant-design/icons'), 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('react-beautiful-dnd'), require('timezones.json'), require('dayjs'), require('recharts'), require('antd/lib/locale/en_US'), require('antd/lib/locale/zh_CN')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'antd', 'react', 'classnames', 'lodash', 'react-svg-unique-id', '@cloudtower/parrot', 'react-i18next', '@linaria/core', '@linaria/react', '@cloudtower/icons-react', 'moment', 'react-dom', 'react-is', '@ant-design/icons', '@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', 'react-beautiful-dnd', 'timezones.json', 'dayjs', 'recharts', 'antd/lib/locale/en_US', 'antd/lib/locale/zh_CN'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.index = {}, global.antd, global.React, global.cs, global._, global.reactSvgUniqueId, global.parrot, global.reactI18next, global.core, global.react, global.iconsReact, global.moment, global.reactDom, global.reactIs, global.icons, global.CheckCircleFilled, global.CloseCircleFilled, global.ExclamationCircleFilled, global.InfoCircleFilled, global.LoadingOutlined, global.RCNotification, global.redux, global.reactRedux, global.reactBeautifulDnd, global.TimeZones, global.dayjs, null, global.enUS, global.zhCN));
|
|
5
|
+
})(this, (function (exports, antd, React, cs, _, reactSvgUniqueId, parrot, reactI18next, core, react, iconsReact, moment, reactDom, reactIs, icons, CheckCircleFilled, CloseCircleFilled, ExclamationCircleFilled, InfoCircleFilled, LoadingOutlined, RCNotification, redux, reactRedux, reactBeautifulDnd, TimeZones, dayjs, recharts, enUS, zhCN) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
8
|
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
var cs__default = /*#__PURE__*/_interopDefault(cs);
|
|
29
29
|
var ___default = /*#__PURE__*/_interopDefault(_);
|
|
30
30
|
var moment__default = /*#__PURE__*/_interopDefault(moment);
|
|
31
|
-
var AntdFormItem__default = /*#__PURE__*/_interopDefault(AntdFormItem);
|
|
32
31
|
var CheckCircleFilled__default = /*#__PURE__*/_interopDefault(CheckCircleFilled);
|
|
33
32
|
var CloseCircleFilled__default = /*#__PURE__*/_interopDefault(CloseCircleFilled);
|
|
34
33
|
var ExclamationCircleFilled__default = /*#__PURE__*/_interopDefault(ExclamationCircleFilled);
|
|
@@ -262,30 +261,30 @@
|
|
|
262
261
|
}
|
|
263
262
|
}
|
|
264
263
|
|
|
265
|
-
var __defProp$
|
|
266
|
-
var __getOwnPropSymbols$
|
|
267
|
-
var __hasOwnProp$
|
|
268
|
-
var __propIsEnum$
|
|
269
|
-
var __defNormalProp$
|
|
270
|
-
var __spreadValues$
|
|
264
|
+
var __defProp$S = Object.defineProperty;
|
|
265
|
+
var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
|
|
266
|
+
var __hasOwnProp$T = Object.prototype.hasOwnProperty;
|
|
267
|
+
var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
|
|
268
|
+
var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
269
|
+
var __spreadValues$S = (a, b) => {
|
|
271
270
|
for (var prop in b || (b = {}))
|
|
272
|
-
if (__hasOwnProp$
|
|
273
|
-
__defNormalProp$
|
|
274
|
-
if (__getOwnPropSymbols$
|
|
275
|
-
for (var prop of __getOwnPropSymbols$
|
|
276
|
-
if (__propIsEnum$
|
|
277
|
-
__defNormalProp$
|
|
271
|
+
if (__hasOwnProp$T.call(b, prop))
|
|
272
|
+
__defNormalProp$S(a, prop, b[prop]);
|
|
273
|
+
if (__getOwnPropSymbols$T)
|
|
274
|
+
for (var prop of __getOwnPropSymbols$T(b)) {
|
|
275
|
+
if (__propIsEnum$T.call(b, prop))
|
|
276
|
+
__defNormalProp$S(a, prop, b[prop]);
|
|
278
277
|
}
|
|
279
278
|
return a;
|
|
280
279
|
};
|
|
281
|
-
var __objRest$
|
|
280
|
+
var __objRest$w = (source, exclude) => {
|
|
282
281
|
var target = {};
|
|
283
282
|
for (var prop in source)
|
|
284
|
-
if (__hasOwnProp$
|
|
283
|
+
if (__hasOwnProp$T.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
285
284
|
target[prop] = source[prop];
|
|
286
|
-
if (source != null && __getOwnPropSymbols$
|
|
287
|
-
for (var prop of __getOwnPropSymbols$
|
|
288
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
285
|
+
if (source != null && __getOwnPropSymbols$T)
|
|
286
|
+
for (var prop of __getOwnPropSymbols$T(source)) {
|
|
287
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$T.call(source, prop))
|
|
289
288
|
target[prop] = source[prop];
|
|
290
289
|
}
|
|
291
290
|
return target;
|
|
@@ -303,7 +302,7 @@
|
|
|
303
302
|
prefixNode,
|
|
304
303
|
suffixIconSrc: SuffixSrc,
|
|
305
304
|
src: Src
|
|
306
|
-
} = _a, HTMLSpanElementProps = __objRest$
|
|
305
|
+
} = _a, HTMLSpanElementProps = __objRest$w(_a, [
|
|
307
306
|
"alt",
|
|
308
307
|
"className",
|
|
309
308
|
"width",
|
|
@@ -317,10 +316,10 @@
|
|
|
317
316
|
]);
|
|
318
317
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
319
318
|
"span",
|
|
320
|
-
__spreadValues$
|
|
319
|
+
__spreadValues$S({
|
|
321
320
|
ref,
|
|
322
321
|
className,
|
|
323
|
-
style: ___default.default.pickBy(__spreadValues$
|
|
322
|
+
style: ___default.default.pickBy(__spreadValues$S({ cursor }, style))
|
|
324
323
|
}, HTMLSpanElementProps),
|
|
325
324
|
prefixNode,
|
|
326
325
|
/* @__PURE__ */ React__namespace.default.createElement("span", { className: "icon-inner" }, typeof Src === "string" ? /* @__PURE__ */ React__namespace.default.createElement("img", { alt, src: Src, width, height }) : /* @__PURE__ */ React__namespace.default.createElement(reactSvgUniqueId.SVGUniqueID, null, Src({ width, height }))),
|
|
@@ -330,31 +329,31 @@
|
|
|
330
329
|
}
|
|
331
330
|
);
|
|
332
331
|
|
|
333
|
-
var __defProp$
|
|
334
|
-
var __defProps$
|
|
335
|
-
var __getOwnPropDescs$
|
|
336
|
-
var __getOwnPropSymbols$
|
|
337
|
-
var __hasOwnProp$
|
|
338
|
-
var __propIsEnum$
|
|
339
|
-
var __defNormalProp$
|
|
332
|
+
var __defProp$R = Object.defineProperty;
|
|
333
|
+
var __defProps$B = Object.defineProperties;
|
|
334
|
+
var __getOwnPropDescs$B = Object.getOwnPropertyDescriptors;
|
|
335
|
+
var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
|
|
336
|
+
var __hasOwnProp$S = Object.prototype.hasOwnProperty;
|
|
337
|
+
var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
|
|
338
|
+
var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, {
|
|
340
339
|
enumerable: true,
|
|
341
340
|
configurable: true,
|
|
342
341
|
writable: true,
|
|
343
342
|
value
|
|
344
343
|
}) : obj[key] = value;
|
|
345
|
-
var __spreadValues$
|
|
346
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
347
|
-
if (__getOwnPropSymbols$
|
|
348
|
-
if (__propIsEnum$
|
|
344
|
+
var __spreadValues$R = (a, b) => {
|
|
345
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$S.call(b, prop)) __defNormalProp$R(a, prop, b[prop]);
|
|
346
|
+
if (__getOwnPropSymbols$S) for (var prop of __getOwnPropSymbols$S(b)) {
|
|
347
|
+
if (__propIsEnum$S.call(b, prop)) __defNormalProp$R(a, prop, b[prop]);
|
|
349
348
|
}
|
|
350
349
|
return a;
|
|
351
350
|
};
|
|
352
|
-
var __spreadProps$
|
|
353
|
-
var __objRest$
|
|
351
|
+
var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
|
|
352
|
+
var __objRest$v = (source, exclude) => {
|
|
354
353
|
var target = {};
|
|
355
|
-
for (var prop in source) if (__hasOwnProp$
|
|
356
|
-
if (source != null && __getOwnPropSymbols$
|
|
357
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
354
|
+
for (var prop in source) if (__hasOwnProp$S.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
355
|
+
if (source != null && __getOwnPropSymbols$S) for (var prop of __getOwnPropSymbols$S(source)) {
|
|
356
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$S.call(source, prop)) target[prop] = source[prop];
|
|
358
357
|
}
|
|
359
358
|
return target;
|
|
360
359
|
};
|
|
@@ -378,7 +377,7 @@
|
|
|
378
377
|
prefix,
|
|
379
378
|
suffix
|
|
380
379
|
} = _a,
|
|
381
|
-
restProps = __objRest$
|
|
380
|
+
restProps = __objRest$v(_a, ["src", "hoverSrc", "active", "activeSrc", "onMouseEnter", "onMouseLeave", "onMouseMove", "className", "iconWidth", "iconHeight", "cursor", "style", "isRotate", "prefix", "suffix"]);
|
|
382
381
|
const [hover, setHover] = React.useState(false);
|
|
383
382
|
const _src = React.useMemo(() => {
|
|
384
383
|
if (active && activeSrc) {
|
|
@@ -406,14 +405,14 @@
|
|
|
406
405
|
}
|
|
407
406
|
return src2;
|
|
408
407
|
}, [active, hover, suffix]);
|
|
409
|
-
return /* @__PURE__ */React__namespace.default.createElement(BaseIcon, __spreadProps$
|
|
408
|
+
return /* @__PURE__ */React__namespace.default.createElement(BaseIcon, __spreadProps$B(__spreadValues$R({
|
|
410
409
|
src: _src,
|
|
411
410
|
className: cs__default.default(IconWrapper, "icon-wrapper", className, isRotate && "is-rotate"),
|
|
412
411
|
suffixIconSrc,
|
|
413
412
|
height: iconHeight,
|
|
414
413
|
width: iconWidth,
|
|
415
414
|
prefixNode: prefix,
|
|
416
|
-
style: ___default.default.pickBy(__spreadValues$
|
|
415
|
+
style: ___default.default.pickBy(__spreadValues$R({
|
|
417
416
|
cursor
|
|
418
417
|
}, style))
|
|
419
418
|
}, restProps), {
|
|
@@ -438,67 +437,74 @@
|
|
|
438
437
|
}));
|
|
439
438
|
});
|
|
440
439
|
|
|
441
|
-
var __defProp$
|
|
442
|
-
var __defProps$
|
|
443
|
-
var __getOwnPropDescs$
|
|
444
|
-
var __getOwnPropSymbols$
|
|
445
|
-
var __hasOwnProp$
|
|
446
|
-
var __propIsEnum$
|
|
447
|
-
var __defNormalProp$
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
440
|
+
var __defProp$Q = Object.defineProperty;
|
|
441
|
+
var __defProps$A = Object.defineProperties;
|
|
442
|
+
var __getOwnPropDescs$A = Object.getOwnPropertyDescriptors;
|
|
443
|
+
var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
|
|
444
|
+
var __hasOwnProp$R = Object.prototype.hasOwnProperty;
|
|
445
|
+
var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
|
|
446
|
+
var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, {
|
|
447
|
+
enumerable: true,
|
|
448
|
+
configurable: true,
|
|
449
|
+
writable: true,
|
|
450
|
+
value
|
|
451
|
+
}) : obj[key] = value;
|
|
452
|
+
var __spreadValues$Q = (a, b) => {
|
|
453
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$R.call(b, prop)) __defNormalProp$Q(a, prop, b[prop]);
|
|
454
|
+
if (__getOwnPropSymbols$R) for (var prop of __getOwnPropSymbols$R(b)) {
|
|
455
|
+
if (__propIsEnum$R.call(b, prop)) __defNormalProp$Q(a, prop, b[prop]);
|
|
456
|
+
}
|
|
457
457
|
return a;
|
|
458
458
|
};
|
|
459
|
-
var __spreadProps$
|
|
460
|
-
var __objRest$
|
|
459
|
+
var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
|
|
460
|
+
var __objRest$u = (source, exclude) => {
|
|
461
461
|
var target = {};
|
|
462
|
-
for (var prop in source)
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
for (var prop of __getOwnPropSymbols$O(source)) {
|
|
467
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$O.call(source, prop))
|
|
468
|
-
target[prop] = source[prop];
|
|
469
|
-
}
|
|
462
|
+
for (var prop in source) if (__hasOwnProp$R.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
463
|
+
if (source != null && __getOwnPropSymbols$R) for (var prop of __getOwnPropSymbols$R(source)) {
|
|
464
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$R.call(source, prop)) target[prop] = source[prop];
|
|
465
|
+
}
|
|
470
466
|
return target;
|
|
471
467
|
};
|
|
472
|
-
const
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
"type",
|
|
482
|
-
"icon",
|
|
483
|
-
"showIcon",
|
|
484
|
-
"className",
|
|
485
|
-
"onClose",
|
|
486
|
-
"closeText"
|
|
487
|
-
]);
|
|
488
|
-
const _icon = /* @__PURE__ */ React__namespace.default.createElement(Icon, { alt: type, src: getAlertIcon(type) });
|
|
489
|
-
const _type = type === "normal" ? "info" : type;
|
|
490
|
-
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
491
|
-
antd.Alert,
|
|
492
|
-
__spreadProps$x(__spreadValues$N({}, props), {
|
|
493
|
-
className: cs__default.default(type ? `alert-${type}` : "", className),
|
|
494
|
-
type: _type,
|
|
495
|
-
icon: icon || _icon,
|
|
496
|
-
showIcon,
|
|
468
|
+
const MessageWrapperStyle = "m15dvk92";
|
|
469
|
+
const AlertStyle = "aql8iqz";
|
|
470
|
+
const Alert = _a => {
|
|
471
|
+
var _b = _a,
|
|
472
|
+
{
|
|
473
|
+
type,
|
|
474
|
+
icon,
|
|
475
|
+
showIcon = true,
|
|
476
|
+
className,
|
|
497
477
|
onClose,
|
|
498
478
|
closeText,
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
479
|
+
action,
|
|
480
|
+
message
|
|
481
|
+
} = _b,
|
|
482
|
+
props = __objRest$u(_b, ["type", "icon", "showIcon", "className", "onClose", "closeText", "action", "message"]);
|
|
483
|
+
const _icon = /* @__PURE__ */React__namespace.default.createElement(Icon, {
|
|
484
|
+
alt: type,
|
|
485
|
+
src: getAlertIcon(type)
|
|
486
|
+
});
|
|
487
|
+
const _type = type === "normal" ? "info" : type;
|
|
488
|
+
return /* @__PURE__ */React__namespace.default.createElement(antd.Alert, __spreadProps$A(__spreadValues$Q({}, props), {
|
|
489
|
+
className: cs__default.default(AlertStyle, type ? `alert-${type}` : "", className, {
|
|
490
|
+
action
|
|
491
|
+
}),
|
|
492
|
+
type: _type,
|
|
493
|
+
message: /* @__PURE__ */React__namespace.default.createElement("div", {
|
|
494
|
+
className: MessageWrapperStyle
|
|
495
|
+
}, /* @__PURE__ */React__namespace.default.createElement("span", {
|
|
496
|
+
style: {
|
|
497
|
+
flex: 1
|
|
498
|
+
}
|
|
499
|
+
}, message), action ? /* @__PURE__ */React__namespace.default.createElement("span", {
|
|
500
|
+
className: cs__default.default("action")
|
|
501
|
+
}, action) : null),
|
|
502
|
+
icon: icon || _icon,
|
|
503
|
+
showIcon,
|
|
504
|
+
onClose,
|
|
505
|
+
closeText,
|
|
506
|
+
closable: !!onClose
|
|
507
|
+
}));
|
|
502
508
|
};
|
|
503
509
|
|
|
504
510
|
const useParrotTranslation = () => {
|
|
@@ -517,42 +523,42 @@
|
|
|
517
523
|
return /* @__PURE__ */ React__namespace.default.createElement("span", null, text);
|
|
518
524
|
};
|
|
519
525
|
|
|
520
|
-
var __defProp$
|
|
521
|
-
var __defProps$
|
|
522
|
-
var __getOwnPropDescs$
|
|
523
|
-
var __getOwnPropSymbols$
|
|
524
|
-
var __hasOwnProp$
|
|
525
|
-
var __propIsEnum$
|
|
526
|
-
var __defNormalProp$
|
|
527
|
-
var __spreadValues$
|
|
526
|
+
var __defProp$P = Object.defineProperty;
|
|
527
|
+
var __defProps$z = Object.defineProperties;
|
|
528
|
+
var __getOwnPropDescs$z = Object.getOwnPropertyDescriptors;
|
|
529
|
+
var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
|
|
530
|
+
var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
|
|
531
|
+
var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
|
|
532
|
+
var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
533
|
+
var __spreadValues$P = (a, b) => {
|
|
528
534
|
for (var prop in b || (b = {}))
|
|
529
|
-
if (__hasOwnProp$
|
|
530
|
-
__defNormalProp$
|
|
531
|
-
if (__getOwnPropSymbols$
|
|
532
|
-
for (var prop of __getOwnPropSymbols$
|
|
533
|
-
if (__propIsEnum$
|
|
534
|
-
__defNormalProp$
|
|
535
|
+
if (__hasOwnProp$Q.call(b, prop))
|
|
536
|
+
__defNormalProp$P(a, prop, b[prop]);
|
|
537
|
+
if (__getOwnPropSymbols$Q)
|
|
538
|
+
for (var prop of __getOwnPropSymbols$Q(b)) {
|
|
539
|
+
if (__propIsEnum$Q.call(b, prop))
|
|
540
|
+
__defNormalProp$P(a, prop, b[prop]);
|
|
535
541
|
}
|
|
536
542
|
return a;
|
|
537
543
|
};
|
|
538
|
-
var __spreadProps$
|
|
539
|
-
var __objRest$
|
|
544
|
+
var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
|
|
545
|
+
var __objRest$t = (source, exclude) => {
|
|
540
546
|
var target = {};
|
|
541
547
|
for (var prop in source)
|
|
542
|
-
if (__hasOwnProp$
|
|
548
|
+
if (__hasOwnProp$Q.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
543
549
|
target[prop] = source[prop];
|
|
544
|
-
if (source != null && __getOwnPropSymbols$
|
|
545
|
-
for (var prop of __getOwnPropSymbols$
|
|
546
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
550
|
+
if (source != null && __getOwnPropSymbols$Q)
|
|
551
|
+
for (var prop of __getOwnPropSymbols$Q(source)) {
|
|
552
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$Q.call(source, prop))
|
|
547
553
|
target[prop] = source[prop];
|
|
548
554
|
}
|
|
549
555
|
return target;
|
|
550
556
|
};
|
|
551
557
|
const Badge = (_a) => {
|
|
552
|
-
var _b = _a, { type = "error", className } = _b, props = __objRest$
|
|
558
|
+
var _b = _a, { type = "error", className } = _b, props = __objRest$t(_b, ["type", "className"]);
|
|
553
559
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
554
560
|
antd.Badge,
|
|
555
|
-
__spreadProps$
|
|
561
|
+
__spreadProps$z(__spreadValues$P({
|
|
556
562
|
className: core.cx(`badge-${type}`, className)
|
|
557
563
|
}, props), {
|
|
558
564
|
showZero: false
|
|
@@ -572,19 +578,19 @@
|
|
|
572
578
|
return /* @__PURE__ */ React__namespace.default.createElement("span", { className, style }, "-");
|
|
573
579
|
};
|
|
574
580
|
|
|
575
|
-
var __defProp$
|
|
576
|
-
var __getOwnPropSymbols$
|
|
577
|
-
var __hasOwnProp$
|
|
578
|
-
var __propIsEnum$
|
|
579
|
-
var __defNormalProp$
|
|
580
|
-
var __spreadValues$
|
|
581
|
+
var __defProp$O = Object.defineProperty;
|
|
582
|
+
var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
|
|
583
|
+
var __hasOwnProp$P = Object.prototype.hasOwnProperty;
|
|
584
|
+
var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
|
|
585
|
+
var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
586
|
+
var __spreadValues$O = (a, b) => {
|
|
581
587
|
for (var prop in b || (b = {}))
|
|
582
|
-
if (__hasOwnProp$
|
|
583
|
-
__defNormalProp$
|
|
584
|
-
if (__getOwnPropSymbols$
|
|
585
|
-
for (var prop of __getOwnPropSymbols$
|
|
586
|
-
if (__propIsEnum$
|
|
587
|
-
__defNormalProp$
|
|
588
|
+
if (__hasOwnProp$P.call(b, prop))
|
|
589
|
+
__defNormalProp$O(a, prop, b[prop]);
|
|
590
|
+
if (__getOwnPropSymbols$P)
|
|
591
|
+
for (var prop of __getOwnPropSymbols$P(b)) {
|
|
592
|
+
if (__propIsEnum$P.call(b, prop))
|
|
593
|
+
__defNormalProp$O(a, prop, b[prop]);
|
|
588
594
|
}
|
|
589
595
|
return a;
|
|
590
596
|
};
|
|
@@ -596,25 +602,25 @@
|
|
|
596
602
|
emptyProps
|
|
597
603
|
}) => {
|
|
598
604
|
if (isEmpty(rawValue)) {
|
|
599
|
-
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$
|
|
605
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$O({}, emptyProps));
|
|
600
606
|
}
|
|
601
607
|
const { value, unit } = formatBits(rawValue, decimals);
|
|
602
608
|
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
|
|
603
609
|
};
|
|
604
610
|
|
|
605
|
-
var __defProp$
|
|
606
|
-
var __getOwnPropSymbols$
|
|
607
|
-
var __hasOwnProp$
|
|
608
|
-
var __propIsEnum$
|
|
609
|
-
var __defNormalProp$
|
|
610
|
-
var __spreadValues$
|
|
611
|
+
var __defProp$N = Object.defineProperty;
|
|
612
|
+
var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
|
|
613
|
+
var __hasOwnProp$O = Object.prototype.hasOwnProperty;
|
|
614
|
+
var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
|
|
615
|
+
var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
616
|
+
var __spreadValues$N = (a, b) => {
|
|
611
617
|
for (var prop in b || (b = {}))
|
|
612
|
-
if (__hasOwnProp$
|
|
613
|
-
__defNormalProp$
|
|
614
|
-
if (__getOwnPropSymbols$
|
|
615
|
-
for (var prop of __getOwnPropSymbols$
|
|
616
|
-
if (__propIsEnum$
|
|
617
|
-
__defNormalProp$
|
|
618
|
+
if (__hasOwnProp$O.call(b, prop))
|
|
619
|
+
__defNormalProp$N(a, prop, b[prop]);
|
|
620
|
+
if (__getOwnPropSymbols$O)
|
|
621
|
+
for (var prop of __getOwnPropSymbols$O(b)) {
|
|
622
|
+
if (__propIsEnum$O.call(b, prop))
|
|
623
|
+
__defNormalProp$N(a, prop, b[prop]);
|
|
618
624
|
}
|
|
619
625
|
return a;
|
|
620
626
|
};
|
|
@@ -626,25 +632,25 @@
|
|
|
626
632
|
emptyProps
|
|
627
633
|
}) => {
|
|
628
634
|
if (isEmpty(rawValue)) {
|
|
629
|
-
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$
|
|
635
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$N({}, emptyProps));
|
|
630
636
|
}
|
|
631
637
|
const { value, unit } = formatBitPerSecond(rawValue, decimals);
|
|
632
638
|
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
|
|
633
639
|
};
|
|
634
640
|
|
|
635
|
-
var __defProp$
|
|
636
|
-
var __getOwnPropSymbols$
|
|
637
|
-
var __hasOwnProp$
|
|
638
|
-
var __propIsEnum$
|
|
639
|
-
var __defNormalProp$
|
|
640
|
-
var __spreadValues$
|
|
641
|
+
var __defProp$M = Object.defineProperty;
|
|
642
|
+
var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
|
|
643
|
+
var __hasOwnProp$N = Object.prototype.hasOwnProperty;
|
|
644
|
+
var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
|
|
645
|
+
var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
646
|
+
var __spreadValues$M = (a, b) => {
|
|
641
647
|
for (var prop in b || (b = {}))
|
|
642
|
-
if (__hasOwnProp$
|
|
643
|
-
__defNormalProp$
|
|
644
|
-
if (__getOwnPropSymbols$
|
|
645
|
-
for (var prop of __getOwnPropSymbols$
|
|
646
|
-
if (__propIsEnum$
|
|
647
|
-
__defNormalProp$
|
|
648
|
+
if (__hasOwnProp$N.call(b, prop))
|
|
649
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
650
|
+
if (__getOwnPropSymbols$N)
|
|
651
|
+
for (var prop of __getOwnPropSymbols$N(b)) {
|
|
652
|
+
if (__propIsEnum$N.call(b, prop))
|
|
653
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
648
654
|
}
|
|
649
655
|
return a;
|
|
650
656
|
};
|
|
@@ -656,7 +662,7 @@
|
|
|
656
662
|
emptyProps
|
|
657
663
|
}) => {
|
|
658
664
|
if (isEmpty(rawValue)) {
|
|
659
|
-
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$
|
|
665
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$M({}, emptyProps));
|
|
660
666
|
}
|
|
661
667
|
const { value, unit } = formatBps(rawValue, decimals);
|
|
662
668
|
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
|
|
@@ -797,28 +803,28 @@
|
|
|
797
803
|
return icon != null ? React__namespace.default.cloneElement(icon, { className }) : null;
|
|
798
804
|
};
|
|
799
805
|
|
|
800
|
-
var __defProp$
|
|
801
|
-
var __getOwnPropSymbols$
|
|
802
|
-
var __hasOwnProp$
|
|
803
|
-
var __propIsEnum$
|
|
804
|
-
var __defNormalProp$
|
|
806
|
+
var __defProp$L = Object.defineProperty;
|
|
807
|
+
var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
|
|
808
|
+
var __hasOwnProp$M = Object.prototype.hasOwnProperty;
|
|
809
|
+
var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
|
|
810
|
+
var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, {
|
|
805
811
|
enumerable: true,
|
|
806
812
|
configurable: true,
|
|
807
813
|
writable: true,
|
|
808
814
|
value
|
|
809
815
|
}) : obj[key] = value;
|
|
810
|
-
var __spreadValues$
|
|
811
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
812
|
-
if (__getOwnPropSymbols$
|
|
813
|
-
if (__propIsEnum$
|
|
816
|
+
var __spreadValues$L = (a, b) => {
|
|
817
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$M.call(b, prop)) __defNormalProp$L(a, prop, b[prop]);
|
|
818
|
+
if (__getOwnPropSymbols$M) for (var prop of __getOwnPropSymbols$M(b)) {
|
|
819
|
+
if (__propIsEnum$M.call(b, prop)) __defNormalProp$L(a, prop, b[prop]);
|
|
814
820
|
}
|
|
815
821
|
return a;
|
|
816
822
|
};
|
|
817
|
-
var __objRest$
|
|
823
|
+
var __objRest$s = (source, exclude) => {
|
|
818
824
|
var target = {};
|
|
819
|
-
for (var prop in source) if (__hasOwnProp$
|
|
820
|
-
if (source != null && __getOwnPropSymbols$
|
|
821
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
825
|
+
for (var prop in source) if (__hasOwnProp$M.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
826
|
+
if (source != null && __getOwnPropSymbols$M) for (var prop of __getOwnPropSymbols$M(source)) {
|
|
827
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$M.call(source, prop)) target[prop] = source[prop];
|
|
822
828
|
}
|
|
823
829
|
return target;
|
|
824
830
|
};
|
|
@@ -841,11 +847,11 @@
|
|
|
841
847
|
onMouseLeave,
|
|
842
848
|
size = "middle"
|
|
843
849
|
} = _a,
|
|
844
|
-
restProps = __objRest$
|
|
850
|
+
restProps = __objRest$s(_a, ["type", "className", "children", "prefixIcon", "hoverPrefixIcon", "suffixIcon", "hoverSuffixIcon", "onMouseEnter", "onMouseLeave", "size"]);
|
|
845
851
|
const [status, setStatus] = React.useState("normal");
|
|
846
852
|
const hasIcon = prefixIcon || suffixIcon;
|
|
847
853
|
const hasHoverIcon = hoverPrefixIcon || hoverSuffixIcon;
|
|
848
|
-
return /* @__PURE__ */React__namespace.default.createElement(antd.Button, __spreadValues$
|
|
854
|
+
return /* @__PURE__ */React__namespace.default.createElement(antd.Button, __spreadValues$L({
|
|
849
855
|
ref,
|
|
850
856
|
className: cs__default.default(className, ButtonStyle$1, type === "link" && NoPadding, (prefixIcon || suffixIcon) && "has-icon", size === "large" && Typo.Label.l1_regular_title, size === "middle" && Typo.Label.l2_regular_title, size === "small" && Typo.Label.l3_regular_title, type && `ant-btn-${type}`, !children && children !== 0 && restProps.icon && "ant-btn-icon-only"),
|
|
851
857
|
type: isAntdButtonTypes(type) ? type : void 0,
|
|
@@ -875,33 +881,33 @@
|
|
|
875
881
|
}));
|
|
876
882
|
});
|
|
877
883
|
|
|
878
|
-
var __defProp$
|
|
879
|
-
var __defProps$
|
|
880
|
-
var __getOwnPropDescs$
|
|
881
|
-
var __getOwnPropSymbols$
|
|
882
|
-
var __hasOwnProp$
|
|
883
|
-
var __propIsEnum$
|
|
884
|
-
var __defNormalProp$
|
|
885
|
-
var __spreadValues$
|
|
884
|
+
var __defProp$K = Object.defineProperty;
|
|
885
|
+
var __defProps$y = Object.defineProperties;
|
|
886
|
+
var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
|
|
887
|
+
var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
|
|
888
|
+
var __hasOwnProp$L = Object.prototype.hasOwnProperty;
|
|
889
|
+
var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
|
|
890
|
+
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
891
|
+
var __spreadValues$K = (a, b) => {
|
|
886
892
|
for (var prop in b || (b = {}))
|
|
887
|
-
if (__hasOwnProp$
|
|
888
|
-
__defNormalProp$
|
|
889
|
-
if (__getOwnPropSymbols$
|
|
890
|
-
for (var prop of __getOwnPropSymbols$
|
|
891
|
-
if (__propIsEnum$
|
|
892
|
-
__defNormalProp$
|
|
893
|
+
if (__hasOwnProp$L.call(b, prop))
|
|
894
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
895
|
+
if (__getOwnPropSymbols$L)
|
|
896
|
+
for (var prop of __getOwnPropSymbols$L(b)) {
|
|
897
|
+
if (__propIsEnum$L.call(b, prop))
|
|
898
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
893
899
|
}
|
|
894
900
|
return a;
|
|
895
901
|
};
|
|
896
|
-
var __spreadProps$
|
|
897
|
-
var __objRest$
|
|
902
|
+
var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
|
|
903
|
+
var __objRest$r = (source, exclude) => {
|
|
898
904
|
var target = {};
|
|
899
905
|
for (var prop in source)
|
|
900
|
-
if (__hasOwnProp$
|
|
906
|
+
if (__hasOwnProp$L.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
901
907
|
target[prop] = source[prop];
|
|
902
|
-
if (source != null && __getOwnPropSymbols$
|
|
903
|
-
for (var prop of __getOwnPropSymbols$
|
|
904
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
908
|
+
if (source != null && __getOwnPropSymbols$L)
|
|
909
|
+
for (var prop of __getOwnPropSymbols$L(source)) {
|
|
910
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$L.call(source, prop))
|
|
905
911
|
target[prop] = source[prop];
|
|
906
912
|
}
|
|
907
913
|
return target;
|
|
@@ -913,7 +919,7 @@
|
|
|
913
919
|
overlayClassName,
|
|
914
920
|
overlayStyle,
|
|
915
921
|
children
|
|
916
|
-
} = _a, restProps = __objRest$
|
|
922
|
+
} = _a, restProps = __objRest$r(_a, [
|
|
917
923
|
"followMouse",
|
|
918
924
|
"overlayClassName",
|
|
919
925
|
"overlayStyle",
|
|
@@ -955,10 +961,10 @@
|
|
|
955
961
|
}, [followMouse, onmousemove, uniqueContainerClass]);
|
|
956
962
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
957
963
|
antd.Tooltip,
|
|
958
|
-
__spreadProps$
|
|
964
|
+
__spreadProps$y(__spreadValues$K({}, restProps), {
|
|
959
965
|
overlayClassName: followMouse ? cs__default.default(overlayClassName, uniquePopupClass) : overlayClassName,
|
|
960
966
|
children: _children,
|
|
961
|
-
overlayStyle: followMouse ? __spreadValues$
|
|
967
|
+
overlayStyle: followMouse ? __spreadValues$K({
|
|
962
968
|
transform: "translate(-50%, -100%)",
|
|
963
969
|
pointerEvents: "none"
|
|
964
970
|
}, overlayStyle) : overlayStyle
|
|
@@ -966,28 +972,28 @@
|
|
|
966
972
|
);
|
|
967
973
|
};
|
|
968
974
|
|
|
969
|
-
var __defProp$
|
|
970
|
-
var __getOwnPropSymbols$
|
|
971
|
-
var __hasOwnProp$
|
|
972
|
-
var __propIsEnum$
|
|
973
|
-
var __defNormalProp$
|
|
975
|
+
var __defProp$J = Object.defineProperty;
|
|
976
|
+
var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
|
|
977
|
+
var __hasOwnProp$K = Object.prototype.hasOwnProperty;
|
|
978
|
+
var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
|
|
979
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, {
|
|
974
980
|
enumerable: true,
|
|
975
981
|
configurable: true,
|
|
976
982
|
writable: true,
|
|
977
983
|
value
|
|
978
984
|
}) : obj[key] = value;
|
|
979
|
-
var __spreadValues$
|
|
980
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
981
|
-
if (__getOwnPropSymbols$
|
|
982
|
-
if (__propIsEnum$
|
|
985
|
+
var __spreadValues$J = (a, b) => {
|
|
986
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$K.call(b, prop)) __defNormalProp$J(a, prop, b[prop]);
|
|
987
|
+
if (__getOwnPropSymbols$K) for (var prop of __getOwnPropSymbols$K(b)) {
|
|
988
|
+
if (__propIsEnum$K.call(b, prop)) __defNormalProp$J(a, prop, b[prop]);
|
|
983
989
|
}
|
|
984
990
|
return a;
|
|
985
991
|
};
|
|
986
|
-
var __objRest$
|
|
992
|
+
var __objRest$q = (source, exclude) => {
|
|
987
993
|
var target = {};
|
|
988
|
-
for (var prop in source) if (__hasOwnProp$
|
|
989
|
-
if (source != null && __getOwnPropSymbols$
|
|
990
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
994
|
+
for (var prop in source) if (__hasOwnProp$K.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
995
|
+
if (source != null && __getOwnPropSymbols$K) for (var prop of __getOwnPropSymbols$K(source)) {
|
|
996
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$K.call(source, prop)) target[prop] = source[prop];
|
|
991
997
|
}
|
|
992
998
|
return target;
|
|
993
999
|
};
|
|
@@ -1022,7 +1028,7 @@
|
|
|
1022
1028
|
hideTitle,
|
|
1023
1029
|
title
|
|
1024
1030
|
} = _a,
|
|
1025
|
-
buttonPropArgs = __objRest$
|
|
1031
|
+
buttonPropArgs = __objRest$q(_a, ["key", "icon", "type", "children", "danger", "ghost", "className", "hideTitle", "title"]);
|
|
1026
1032
|
if (hideTitle) {
|
|
1027
1033
|
return /* @__PURE__ */React__namespace.default.createElement(Tooltip, {
|
|
1028
1034
|
key: key || index,
|
|
@@ -1031,7 +1037,7 @@
|
|
|
1031
1037
|
style: {
|
|
1032
1038
|
cursor: "not-allowed"
|
|
1033
1039
|
}
|
|
1034
|
-
}, /* @__PURE__ */React__namespace.default.createElement(Button, __spreadValues$
|
|
1040
|
+
}, /* @__PURE__ */React__namespace.default.createElement(Button, __spreadValues$J({
|
|
1035
1041
|
style: {
|
|
1036
1042
|
pointerEvents: "none"
|
|
1037
1043
|
},
|
|
@@ -1041,7 +1047,7 @@
|
|
|
1041
1047
|
ghost,
|
|
1042
1048
|
className: core.cx(ButtonStyle, className2),
|
|
1043
1049
|
prefixIcon: icon
|
|
1044
|
-
}, buttonPropArgs))) : /* @__PURE__ */React__namespace.default.createElement(Button, __spreadValues$
|
|
1050
|
+
}, buttonPropArgs))) : /* @__PURE__ */React__namespace.default.createElement(Button, __spreadValues$J({
|
|
1045
1051
|
type,
|
|
1046
1052
|
size,
|
|
1047
1053
|
danger,
|
|
@@ -1050,7 +1056,7 @@
|
|
|
1050
1056
|
prefixIcon: icon
|
|
1051
1057
|
}, buttonPropArgs)));
|
|
1052
1058
|
}
|
|
1053
|
-
return /* @__PURE__ */React__namespace.default.createElement(Button, __spreadValues$
|
|
1059
|
+
return /* @__PURE__ */React__namespace.default.createElement(Button, __spreadValues$J({
|
|
1054
1060
|
key: key || index,
|
|
1055
1061
|
type,
|
|
1056
1062
|
size,
|
|
@@ -1064,19 +1070,19 @@
|
|
|
1064
1070
|
}));
|
|
1065
1071
|
});
|
|
1066
1072
|
|
|
1067
|
-
var __defProp$
|
|
1068
|
-
var __getOwnPropSymbols$
|
|
1069
|
-
var __hasOwnProp$
|
|
1070
|
-
var __propIsEnum$
|
|
1071
|
-
var __defNormalProp$
|
|
1072
|
-
var __spreadValues$
|
|
1073
|
+
var __defProp$I = Object.defineProperty;
|
|
1074
|
+
var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
|
|
1075
|
+
var __hasOwnProp$J = Object.prototype.hasOwnProperty;
|
|
1076
|
+
var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
|
|
1077
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1078
|
+
var __spreadValues$I = (a, b) => {
|
|
1073
1079
|
for (var prop in b || (b = {}))
|
|
1074
|
-
if (__hasOwnProp$
|
|
1075
|
-
__defNormalProp$
|
|
1076
|
-
if (__getOwnPropSymbols$
|
|
1077
|
-
for (var prop of __getOwnPropSymbols$
|
|
1078
|
-
if (__propIsEnum$
|
|
1079
|
-
__defNormalProp$
|
|
1080
|
+
if (__hasOwnProp$J.call(b, prop))
|
|
1081
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
1082
|
+
if (__getOwnPropSymbols$J)
|
|
1083
|
+
for (var prop of __getOwnPropSymbols$J(b)) {
|
|
1084
|
+
if (__propIsEnum$J.call(b, prop))
|
|
1085
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
1080
1086
|
}
|
|
1081
1087
|
return a;
|
|
1082
1088
|
};
|
|
@@ -1090,7 +1096,7 @@
|
|
|
1090
1096
|
}) => {
|
|
1091
1097
|
const { t } = useParrotTranslation();
|
|
1092
1098
|
if (isEmpty(rawValue)) {
|
|
1093
|
-
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$
|
|
1099
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$I({}, emptyProps));
|
|
1094
1100
|
}
|
|
1095
1101
|
if (rawValue === -1) {
|
|
1096
1102
|
return /* @__PURE__ */ React__namespace.default.createElement("span", null, t("common.calculation"));
|
|
@@ -1102,31 +1108,143 @@
|
|
|
1102
1108
|
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
|
|
1103
1109
|
};
|
|
1104
1110
|
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1111
|
+
const CardBody = /*#__PURE__*/react.styled('div')({
|
|
1112
|
+
name: "CardBody",
|
|
1113
|
+
class: "c1k4vanq",
|
|
1114
|
+
propsAsIs: false
|
|
1115
|
+
});
|
|
1116
|
+
|
|
1117
|
+
const CardTitle = /*#__PURE__*/react.styled('div')({
|
|
1118
|
+
name: "CardTitle",
|
|
1119
|
+
class: "c1udgdh2",
|
|
1120
|
+
propsAsIs: false
|
|
1121
|
+
});
|
|
1122
|
+
|
|
1123
|
+
const boxShadow = "bab9xum";
|
|
1124
|
+
const Wrapper = React.forwardRef(props => {
|
|
1125
|
+
const {
|
|
1126
|
+
children,
|
|
1127
|
+
className,
|
|
1128
|
+
shadow
|
|
1129
|
+
} = props;
|
|
1130
|
+
return /* @__PURE__ */React__namespace.default.createElement("div", {
|
|
1131
|
+
className: cs__default.default({
|
|
1132
|
+
[boxShadow]: shadow
|
|
1133
|
+
}, className)
|
|
1134
|
+
}, children);
|
|
1135
|
+
});
|
|
1136
|
+
const _exp$3 = () => Wrapper;
|
|
1137
|
+
const CardWrapper = /*#__PURE__*/react.styled(_exp$3())({
|
|
1138
|
+
name: "CardWrapper",
|
|
1139
|
+
class: "cav4gt6",
|
|
1140
|
+
propsAsIs: true
|
|
1141
|
+
});
|
|
1142
|
+
|
|
1143
|
+
var __defProp$H = Object.defineProperty;
|
|
1144
|
+
var __defProps$x = Object.defineProperties;
|
|
1145
|
+
var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
|
|
1146
|
+
var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
|
|
1147
|
+
var __hasOwnProp$I = Object.prototype.hasOwnProperty;
|
|
1148
|
+
var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
|
|
1149
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1150
|
+
var __spreadValues$H = (a, b) => {
|
|
1151
|
+
for (var prop in b || (b = {}))
|
|
1152
|
+
if (__hasOwnProp$I.call(b, prop))
|
|
1153
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
1154
|
+
if (__getOwnPropSymbols$I)
|
|
1155
|
+
for (var prop of __getOwnPropSymbols$I(b)) {
|
|
1156
|
+
if (__propIsEnum$I.call(b, prop))
|
|
1157
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
1158
|
+
}
|
|
1159
|
+
return a;
|
|
1160
|
+
};
|
|
1161
|
+
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
|
1162
|
+
var __objRest$p = (source, exclude) => {
|
|
1163
|
+
var target = {};
|
|
1164
|
+
for (var prop in source)
|
|
1165
|
+
if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1166
|
+
target[prop] = source[prop];
|
|
1167
|
+
if (source != null && __getOwnPropSymbols$I)
|
|
1168
|
+
for (var prop of __getOwnPropSymbols$I(source)) {
|
|
1169
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$I.call(source, prop))
|
|
1170
|
+
target[prop] = source[prop];
|
|
1171
|
+
}
|
|
1172
|
+
return target;
|
|
1173
|
+
};
|
|
1174
|
+
const Card = React__namespace.default.forwardRef(
|
|
1175
|
+
(props, ref) => {
|
|
1176
|
+
const _a = props, {
|
|
1177
|
+
collapsible = false,
|
|
1178
|
+
title,
|
|
1179
|
+
subInfo,
|
|
1180
|
+
className,
|
|
1181
|
+
defaultOpen = false,
|
|
1182
|
+
shadow = true
|
|
1183
|
+
} = _a, domProps = __objRest$p(_a, [
|
|
1184
|
+
"collapsible",
|
|
1185
|
+
"title",
|
|
1186
|
+
"subInfo",
|
|
1187
|
+
"className",
|
|
1188
|
+
"defaultOpen",
|
|
1189
|
+
"shadow"
|
|
1190
|
+
]);
|
|
1191
|
+
const [open, setOpen] = React.useState(defaultOpen);
|
|
1192
|
+
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
1193
|
+
CardWrapper,
|
|
1194
|
+
__spreadProps$x(__spreadValues$H({
|
|
1195
|
+
ref,
|
|
1196
|
+
className: cs__default.default(["card-wrapper", className])
|
|
1197
|
+
}, domProps), {
|
|
1198
|
+
shadow
|
|
1199
|
+
}),
|
|
1200
|
+
title && /* @__PURE__ */ React__namespace.default.createElement(
|
|
1201
|
+
CardTitle,
|
|
1202
|
+
{
|
|
1203
|
+
className: cs__default.default(["card-title", collapsible ? "has-arrow" : ""])
|
|
1204
|
+
},
|
|
1205
|
+
/* @__PURE__ */ React__namespace.default.createElement(
|
|
1206
|
+
"div",
|
|
1207
|
+
{
|
|
1208
|
+
className: cs__default.default(["title-wrapper", open ? "is-open" : ""]),
|
|
1209
|
+
onClick: () => {
|
|
1210
|
+
collapsible && setOpen(!open);
|
|
1211
|
+
}
|
|
1212
|
+
},
|
|
1213
|
+
collapsible && /* @__PURE__ */ React__namespace.default.createElement(Icon, { className: "collapse-arrow", src: iconsReact.ArrowRightGrayIcon }),
|
|
1214
|
+
title
|
|
1215
|
+
),
|
|
1216
|
+
subInfo && /* @__PURE__ */ React__namespace.default.createElement("div", { className: "sub-info" }, subInfo)
|
|
1217
|
+
),
|
|
1218
|
+
(!collapsible || open) && /* @__PURE__ */ React__namespace.default.createElement(CardBody, { className: "card-body" }, props.children)
|
|
1219
|
+
);
|
|
1220
|
+
}
|
|
1221
|
+
);
|
|
1222
|
+
|
|
1223
|
+
var __defProp$G = Object.defineProperty;
|
|
1224
|
+
var __defProps$w = Object.defineProperties;
|
|
1225
|
+
var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
|
|
1226
|
+
var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
|
|
1227
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
|
1228
|
+
var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
|
|
1229
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, {
|
|
1230
|
+
enumerable: true,
|
|
1231
|
+
configurable: true,
|
|
1232
|
+
writable: true,
|
|
1115
1233
|
value
|
|
1116
1234
|
}) : obj[key] = value;
|
|
1117
|
-
var __spreadValues$
|
|
1118
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1119
|
-
if (__getOwnPropSymbols$
|
|
1120
|
-
if (__propIsEnum$
|
|
1235
|
+
var __spreadValues$G = (a, b) => {
|
|
1236
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$H.call(b, prop)) __defNormalProp$G(a, prop, b[prop]);
|
|
1237
|
+
if (__getOwnPropSymbols$H) for (var prop of __getOwnPropSymbols$H(b)) {
|
|
1238
|
+
if (__propIsEnum$H.call(b, prop)) __defNormalProp$G(a, prop, b[prop]);
|
|
1121
1239
|
}
|
|
1122
1240
|
return a;
|
|
1123
1241
|
};
|
|
1124
|
-
var __spreadProps$
|
|
1125
|
-
var __objRest$
|
|
1242
|
+
var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
|
|
1243
|
+
var __objRest$o = (source, exclude) => {
|
|
1126
1244
|
var target = {};
|
|
1127
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1128
|
-
if (source != null && __getOwnPropSymbols$
|
|
1129
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1245
|
+
for (var prop in source) if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1246
|
+
if (source != null && __getOwnPropSymbols$H) for (var prop of __getOwnPropSymbols$H(source)) {
|
|
1247
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop)) target[prop] = source[prop];
|
|
1130
1248
|
}
|
|
1131
1249
|
return target;
|
|
1132
1250
|
};
|
|
@@ -1139,8 +1257,8 @@
|
|
|
1139
1257
|
description,
|
|
1140
1258
|
compact
|
|
1141
1259
|
} = _b,
|
|
1142
|
-
props = __objRest$
|
|
1143
|
-
return /* @__PURE__ */React__namespace.default.createElement(antd.Checkbox, __spreadProps$
|
|
1260
|
+
props = __objRest$o(_b, ["className", "children", "description", "compact"]);
|
|
1261
|
+
return /* @__PURE__ */React__namespace.default.createElement(antd.Checkbox, __spreadProps$w(__spreadValues$G({}, props), {
|
|
1144
1262
|
"data-test": props["data-test"] || props.value,
|
|
1145
1263
|
className: cs__default.default(className, CheckboxStyle, compact && "compact")
|
|
1146
1264
|
}), children ? /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement("div", {
|
|
@@ -1150,39 +1268,39 @@
|
|
|
1150
1268
|
}, description) : null) : null);
|
|
1151
1269
|
};
|
|
1152
1270
|
|
|
1153
|
-
var __defProp$
|
|
1154
|
-
var __getOwnPropSymbols$
|
|
1155
|
-
var __hasOwnProp$
|
|
1156
|
-
var __propIsEnum$
|
|
1157
|
-
var __defNormalProp$
|
|
1158
|
-
var __spreadValues$
|
|
1271
|
+
var __defProp$F = Object.defineProperty;
|
|
1272
|
+
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
|
1273
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
|
1274
|
+
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
|
1275
|
+
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1276
|
+
var __spreadValues$F = (a, b) => {
|
|
1159
1277
|
for (var prop in b || (b = {}))
|
|
1160
|
-
if (__hasOwnProp$
|
|
1161
|
-
__defNormalProp$
|
|
1162
|
-
if (__getOwnPropSymbols$
|
|
1163
|
-
for (var prop of __getOwnPropSymbols$
|
|
1164
|
-
if (__propIsEnum$
|
|
1165
|
-
__defNormalProp$
|
|
1278
|
+
if (__hasOwnProp$G.call(b, prop))
|
|
1279
|
+
__defNormalProp$F(a, prop, b[prop]);
|
|
1280
|
+
if (__getOwnPropSymbols$G)
|
|
1281
|
+
for (var prop of __getOwnPropSymbols$G(b)) {
|
|
1282
|
+
if (__propIsEnum$G.call(b, prop))
|
|
1283
|
+
__defNormalProp$F(a, prop, b[prop]);
|
|
1166
1284
|
}
|
|
1167
1285
|
return a;
|
|
1168
1286
|
};
|
|
1169
|
-
var __objRest$
|
|
1287
|
+
var __objRest$n = (source, exclude) => {
|
|
1170
1288
|
var target = {};
|
|
1171
1289
|
for (var prop in source)
|
|
1172
|
-
if (__hasOwnProp$
|
|
1290
|
+
if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1173
1291
|
target[prop] = source[prop];
|
|
1174
|
-
if (source != null && __getOwnPropSymbols$
|
|
1175
|
-
for (var prop of __getOwnPropSymbols$
|
|
1176
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1292
|
+
if (source != null && __getOwnPropSymbols$G)
|
|
1293
|
+
for (var prop of __getOwnPropSymbols$G(source)) {
|
|
1294
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop))
|
|
1177
1295
|
target[prop] = source[prop];
|
|
1178
1296
|
}
|
|
1179
1297
|
return target;
|
|
1180
1298
|
};
|
|
1181
1299
|
const FieldsBoolean = (_a) => {
|
|
1182
|
-
var _b = _a, { input, children } = _b, props = __objRest$
|
|
1300
|
+
var _b = _a, { input, children } = _b, props = __objRest$n(_b, ["input", "children"]);
|
|
1183
1301
|
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(
|
|
1184
1302
|
Checkbox,
|
|
1185
|
-
__spreadValues$
|
|
1303
|
+
__spreadValues$F({
|
|
1186
1304
|
checked: Boolean(input.value),
|
|
1187
1305
|
onChange: (e) => input.onChange(e.target.checked)
|
|
1188
1306
|
}, props),
|
|
@@ -1207,17 +1325,17 @@
|
|
|
1207
1325
|
}
|
|
1208
1326
|
));
|
|
1209
1327
|
|
|
1210
|
-
var __getOwnPropSymbols$
|
|
1211
|
-
var __hasOwnProp$
|
|
1212
|
-
var __propIsEnum$
|
|
1213
|
-
var __objRest$
|
|
1328
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
|
1329
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
|
1330
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
|
1331
|
+
var __objRest$m = (source, exclude) => {
|
|
1214
1332
|
var target = {};
|
|
1215
1333
|
for (var prop in source)
|
|
1216
|
-
if (__hasOwnProp$
|
|
1334
|
+
if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1217
1335
|
target[prop] = source[prop];
|
|
1218
|
-
if (source != null && __getOwnPropSymbols$
|
|
1219
|
-
for (var prop of __getOwnPropSymbols$
|
|
1220
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1336
|
+
if (source != null && __getOwnPropSymbols$F)
|
|
1337
|
+
for (var prop of __getOwnPropSymbols$F(source)) {
|
|
1338
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
|
|
1221
1339
|
target[prop] = source[prop];
|
|
1222
1340
|
}
|
|
1223
1341
|
return target;
|
|
@@ -1225,7 +1343,7 @@
|
|
|
1225
1343
|
const FieldsDateTimeRange = (_a) => {
|
|
1226
1344
|
var _b = _a, {
|
|
1227
1345
|
input
|
|
1228
|
-
} = _b, props = __objRest$
|
|
1346
|
+
} = _b, props = __objRest$m(_b, [
|
|
1229
1347
|
"input"
|
|
1230
1348
|
]);
|
|
1231
1349
|
var _a2, _b2;
|
|
@@ -1262,53 +1380,53 @@
|
|
|
1262
1380
|
const InputStyle = "ipd9bk";
|
|
1263
1381
|
const KitInputStyle = "kypn5o5";
|
|
1264
1382
|
|
|
1265
|
-
var __defProp$
|
|
1266
|
-
var __getOwnPropSymbols$
|
|
1267
|
-
var __hasOwnProp$
|
|
1268
|
-
var __propIsEnum$
|
|
1269
|
-
var __defNormalProp$
|
|
1270
|
-
var __spreadValues$
|
|
1383
|
+
var __defProp$E = Object.defineProperty;
|
|
1384
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
|
1385
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
|
1386
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
|
1387
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1388
|
+
var __spreadValues$E = (a, b) => {
|
|
1271
1389
|
for (var prop in b || (b = {}))
|
|
1272
|
-
if (__hasOwnProp$
|
|
1273
|
-
__defNormalProp$
|
|
1274
|
-
if (__getOwnPropSymbols$
|
|
1275
|
-
for (var prop of __getOwnPropSymbols$
|
|
1276
|
-
if (__propIsEnum$
|
|
1277
|
-
__defNormalProp$
|
|
1390
|
+
if (__hasOwnProp$E.call(b, prop))
|
|
1391
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
1392
|
+
if (__getOwnPropSymbols$E)
|
|
1393
|
+
for (var prop of __getOwnPropSymbols$E(b)) {
|
|
1394
|
+
if (__propIsEnum$E.call(b, prop))
|
|
1395
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
1278
1396
|
}
|
|
1279
1397
|
return a;
|
|
1280
1398
|
};
|
|
1281
1399
|
const Loading = ({ fullView = true }) => {
|
|
1282
1400
|
const Wrapper = fullView ? FullView : React.Fragment;
|
|
1283
1401
|
const props = fullView ? { className: "loading-full-view" } : {};
|
|
1284
|
-
return /* @__PURE__ */ React__namespace.default.createElement(Wrapper, __spreadValues$
|
|
1402
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Wrapper, __spreadValues$E({}, props), /* @__PURE__ */ React__namespace.default.createElement("div", { className: "loading" }, /* @__PURE__ */ React__namespace.default.createElement("div", { className: "loading-indicator__line1" }), /* @__PURE__ */ React__namespace.default.createElement("div", { className: "loading-indicator__line2" }), /* @__PURE__ */ React__namespace.default.createElement("div", { className: "loading-indicator__line3" })));
|
|
1285
1403
|
};
|
|
1286
1404
|
|
|
1287
|
-
var __defProp$
|
|
1288
|
-
var __defProps$
|
|
1289
|
-
var __getOwnPropDescs$
|
|
1290
|
-
var __getOwnPropSymbols$
|
|
1291
|
-
var __hasOwnProp$
|
|
1292
|
-
var __propIsEnum$
|
|
1293
|
-
var __defNormalProp$
|
|
1405
|
+
var __defProp$D = Object.defineProperty;
|
|
1406
|
+
var __defProps$v = Object.defineProperties;
|
|
1407
|
+
var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
|
|
1408
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
|
1409
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
|
1410
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
|
1411
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, {
|
|
1294
1412
|
enumerable: true,
|
|
1295
1413
|
configurable: true,
|
|
1296
1414
|
writable: true,
|
|
1297
1415
|
value
|
|
1298
1416
|
}) : obj[key] = value;
|
|
1299
|
-
var __spreadValues$
|
|
1300
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1301
|
-
if (__getOwnPropSymbols$
|
|
1302
|
-
if (__propIsEnum$
|
|
1417
|
+
var __spreadValues$D = (a, b) => {
|
|
1418
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$D.call(b, prop)) __defNormalProp$D(a, prop, b[prop]);
|
|
1419
|
+
if (__getOwnPropSymbols$D) for (var prop of __getOwnPropSymbols$D(b)) {
|
|
1420
|
+
if (__propIsEnum$D.call(b, prop)) __defNormalProp$D(a, prop, b[prop]);
|
|
1303
1421
|
}
|
|
1304
1422
|
return a;
|
|
1305
1423
|
};
|
|
1306
|
-
var __spreadProps$
|
|
1307
|
-
var __objRest$
|
|
1424
|
+
var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
|
|
1425
|
+
var __objRest$l = (source, exclude) => {
|
|
1308
1426
|
var target = {};
|
|
1309
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1310
|
-
if (source != null && __getOwnPropSymbols$
|
|
1311
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1427
|
+
for (var prop in source) if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1428
|
+
if (source != null && __getOwnPropSymbols$D) for (var prop of __getOwnPropSymbols$D(source)) {
|
|
1429
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop)) target[prop] = source[prop];
|
|
1312
1430
|
}
|
|
1313
1431
|
return target;
|
|
1314
1432
|
};
|
|
@@ -1336,7 +1454,7 @@
|
|
|
1336
1454
|
meta,
|
|
1337
1455
|
placeholder
|
|
1338
1456
|
} = _b,
|
|
1339
|
-
restProps = __objRest$
|
|
1457
|
+
restProps = __objRest$l(_b, ["input", "multiple", "className", "scrollBottomBuffer", "onScrollBottom", "onPopupScroll", "onSearch", "showSearch", "filterOption", "loading", "notFoundContent", "children", "error", "selectLimit", "dropdownClassName", "danger", "size", "meta", "placeholder"]);
|
|
1340
1458
|
var _a2;
|
|
1341
1459
|
const limitExceeded = multiple && selectLimit && selectLimit <= (((_a2 = input.value) == null ? void 0 : _a2.length) || 0);
|
|
1342
1460
|
const typo = {
|
|
@@ -1362,7 +1480,7 @@
|
|
|
1362
1480
|
inputDom && (placeholder || item) && inputDom.setAttribute("data-test", String(placeholder || item.textContent));
|
|
1363
1481
|
}
|
|
1364
1482
|
}, [selectRef, placeholder]);
|
|
1365
|
-
return /* @__PURE__ */React__namespace.default.createElement(antd.Select, __spreadValues$
|
|
1483
|
+
return /* @__PURE__ */React__namespace.default.createElement(antd.Select, __spreadValues$D(__spreadProps$v(__spreadValues$D({}, input), {
|
|
1366
1484
|
ref: selectRef,
|
|
1367
1485
|
size,
|
|
1368
1486
|
value: multiple ? input.value || [] : input.value || void 0,
|
|
@@ -1380,6 +1498,7 @@
|
|
|
1380
1498
|
},
|
|
1381
1499
|
mode: multiple ? "multiple" : void 0,
|
|
1382
1500
|
className: cs__default.default(SelectStyle$1, "select", className, limitExceeded && "select-event-none", _danger ? "select-error" : "", typo),
|
|
1501
|
+
"data-size": size,
|
|
1383
1502
|
dropdownClassName: cs__default.default(dropdownClassName, limitExceeded && "display-none"),
|
|
1384
1503
|
showSearch: multiple ? void 0 : typeof showSearch === "undefined" ? Boolean(onSearch) : showSearch,
|
|
1385
1504
|
filterOption: onSearch === void 0 ? filterOption === void 0 ? (input2, option) => {
|
|
@@ -1402,38 +1521,38 @@
|
|
|
1402
1521
|
loading,
|
|
1403
1522
|
placeholder
|
|
1404
1523
|
}), restProps), React__namespace.default.Children.map(children, child => {
|
|
1405
|
-
return reactIs.isElement(child) ? __spreadProps$
|
|
1406
|
-
props: __spreadProps$
|
|
1524
|
+
return reactIs.isElement(child) ? __spreadProps$v(__spreadValues$D({}, child), {
|
|
1525
|
+
props: __spreadProps$v(__spreadValues$D({}, child.props), {
|
|
1407
1526
|
"data-test": child.props.value
|
|
1408
1527
|
})
|
|
1409
1528
|
}) : child;
|
|
1410
1529
|
}));
|
|
1411
1530
|
};
|
|
1412
1531
|
|
|
1413
|
-
var __defProp$
|
|
1414
|
-
var __getOwnPropSymbols$
|
|
1415
|
-
var __hasOwnProp$
|
|
1416
|
-
var __propIsEnum$
|
|
1417
|
-
var __defNormalProp$
|
|
1418
|
-
var __spreadValues$
|
|
1532
|
+
var __defProp$C = Object.defineProperty;
|
|
1533
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
|
1534
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
|
1535
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
|
1536
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1537
|
+
var __spreadValues$C = (a, b) => {
|
|
1419
1538
|
for (var prop in b || (b = {}))
|
|
1420
|
-
if (__hasOwnProp$
|
|
1421
|
-
__defNormalProp$
|
|
1422
|
-
if (__getOwnPropSymbols$
|
|
1423
|
-
for (var prop of __getOwnPropSymbols$
|
|
1424
|
-
if (__propIsEnum$
|
|
1425
|
-
__defNormalProp$
|
|
1539
|
+
if (__hasOwnProp$C.call(b, prop))
|
|
1540
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
1541
|
+
if (__getOwnPropSymbols$C)
|
|
1542
|
+
for (var prop of __getOwnPropSymbols$C(b)) {
|
|
1543
|
+
if (__propIsEnum$C.call(b, prop))
|
|
1544
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
1426
1545
|
}
|
|
1427
1546
|
return a;
|
|
1428
1547
|
};
|
|
1429
|
-
var __objRest$
|
|
1548
|
+
var __objRest$k = (source, exclude) => {
|
|
1430
1549
|
var target = {};
|
|
1431
1550
|
for (var prop in source)
|
|
1432
|
-
if (__hasOwnProp$
|
|
1551
|
+
if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1433
1552
|
target[prop] = source[prop];
|
|
1434
|
-
if (source != null && __getOwnPropSymbols$
|
|
1435
|
-
for (var prop of __getOwnPropSymbols$
|
|
1436
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1553
|
+
if (source != null && __getOwnPropSymbols$C)
|
|
1554
|
+
for (var prop of __getOwnPropSymbols$C(source)) {
|
|
1555
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
|
|
1437
1556
|
target[prop] = source[prop];
|
|
1438
1557
|
}
|
|
1439
1558
|
return target;
|
|
@@ -1443,12 +1562,12 @@
|
|
|
1443
1562
|
meta: __,
|
|
1444
1563
|
enumValues,
|
|
1445
1564
|
emptyLabel
|
|
1446
|
-
} = _b, restProps = __objRest$
|
|
1565
|
+
} = _b, restProps = __objRest$k(_b, [
|
|
1447
1566
|
"meta",
|
|
1448
1567
|
"enumValues",
|
|
1449
1568
|
"emptyLabel"
|
|
1450
1569
|
]);
|
|
1451
|
-
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(Select, __spreadValues$
|
|
1570
|
+
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(Select, __spreadValues$C({}, restProps), emptyLabel && /* @__PURE__ */ React__namespace.default.createElement(antd.Select.Option, { value: "" }, emptyLabel), enumValues.map((v) => {
|
|
1452
1571
|
const item = typeof v === "string" ? { value: v, text: v } : v;
|
|
1453
1572
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
1454
1573
|
antd.Select.Option,
|
|
@@ -1462,31 +1581,31 @@
|
|
|
1462
1581
|
})));
|
|
1463
1582
|
};
|
|
1464
1583
|
|
|
1465
|
-
var __defProp$
|
|
1466
|
-
var __defProps$
|
|
1467
|
-
var __getOwnPropDescs$
|
|
1468
|
-
var __getOwnPropSymbols$
|
|
1469
|
-
var __hasOwnProp$
|
|
1470
|
-
var __propIsEnum$
|
|
1471
|
-
var __defNormalProp$
|
|
1584
|
+
var __defProp$B = Object.defineProperty;
|
|
1585
|
+
var __defProps$u = Object.defineProperties;
|
|
1586
|
+
var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
|
|
1587
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
|
1588
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
|
1589
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
|
1590
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, {
|
|
1472
1591
|
enumerable: true,
|
|
1473
1592
|
configurable: true,
|
|
1474
1593
|
writable: true,
|
|
1475
1594
|
value
|
|
1476
1595
|
}) : obj[key] = value;
|
|
1477
|
-
var __spreadValues$
|
|
1478
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1479
|
-
if (__getOwnPropSymbols$
|
|
1480
|
-
if (__propIsEnum$
|
|
1596
|
+
var __spreadValues$B = (a, b) => {
|
|
1597
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$B.call(b, prop)) __defNormalProp$B(a, prop, b[prop]);
|
|
1598
|
+
if (__getOwnPropSymbols$B) for (var prop of __getOwnPropSymbols$B(b)) {
|
|
1599
|
+
if (__propIsEnum$B.call(b, prop)) __defNormalProp$B(a, prop, b[prop]);
|
|
1481
1600
|
}
|
|
1482
1601
|
return a;
|
|
1483
1602
|
};
|
|
1484
|
-
var __spreadProps$
|
|
1485
|
-
var __objRest$
|
|
1603
|
+
var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
|
|
1604
|
+
var __objRest$j = (source, exclude) => {
|
|
1486
1605
|
var target = {};
|
|
1487
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1488
|
-
if (source != null && __getOwnPropSymbols$
|
|
1489
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1606
|
+
for (var prop in source) if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1607
|
+
if (source != null && __getOwnPropSymbols$B) for (var prop of __getOwnPropSymbols$B(source)) {
|
|
1608
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop)) target[prop] = source[prop];
|
|
1490
1609
|
}
|
|
1491
1610
|
return target;
|
|
1492
1611
|
};
|
|
@@ -1522,13 +1641,13 @@
|
|
|
1522
1641
|
prefix,
|
|
1523
1642
|
controls = true
|
|
1524
1643
|
} = _b,
|
|
1525
|
-
props = __objRest$
|
|
1644
|
+
props = __objRest$j(_b, ["className", "error", "size", "suffix", "prefix", "controls"]);
|
|
1526
1645
|
const typo = {
|
|
1527
1646
|
large: Typo.Label.l2_regular,
|
|
1528
1647
|
middle: Typo.Label.l3_regular,
|
|
1529
1648
|
small: Typo.Label.l4_regular
|
|
1530
1649
|
}[size];
|
|
1531
|
-
return /* @__PURE__ */React__namespace.default.createElement(AntdInputNumberStyled, __spreadProps$
|
|
1650
|
+
return /* @__PURE__ */React__namespace.default.createElement(AntdInputNumberStyled, __spreadProps$u(__spreadValues$B({}, props), {
|
|
1532
1651
|
size,
|
|
1533
1652
|
controls,
|
|
1534
1653
|
"data-test": props.name,
|
|
@@ -1538,33 +1657,33 @@
|
|
|
1538
1657
|
}));
|
|
1539
1658
|
};
|
|
1540
1659
|
|
|
1541
|
-
var __defProp$
|
|
1542
|
-
var __defProps$
|
|
1543
|
-
var __getOwnPropDescs$
|
|
1544
|
-
var __getOwnPropSymbols$
|
|
1545
|
-
var __hasOwnProp$
|
|
1546
|
-
var __propIsEnum$
|
|
1547
|
-
var __defNormalProp$
|
|
1548
|
-
var __spreadValues$
|
|
1660
|
+
var __defProp$A = Object.defineProperty;
|
|
1661
|
+
var __defProps$t = Object.defineProperties;
|
|
1662
|
+
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
|
1663
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
|
1664
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
|
1665
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
|
1666
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1667
|
+
var __spreadValues$A = (a, b) => {
|
|
1549
1668
|
for (var prop in b || (b = {}))
|
|
1550
|
-
if (__hasOwnProp$
|
|
1551
|
-
__defNormalProp$
|
|
1552
|
-
if (__getOwnPropSymbols$
|
|
1553
|
-
for (var prop of __getOwnPropSymbols$
|
|
1554
|
-
if (__propIsEnum$
|
|
1555
|
-
__defNormalProp$
|
|
1669
|
+
if (__hasOwnProp$A.call(b, prop))
|
|
1670
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
1671
|
+
if (__getOwnPropSymbols$A)
|
|
1672
|
+
for (var prop of __getOwnPropSymbols$A(b)) {
|
|
1673
|
+
if (__propIsEnum$A.call(b, prop))
|
|
1674
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
1556
1675
|
}
|
|
1557
1676
|
return a;
|
|
1558
1677
|
};
|
|
1559
|
-
var __spreadProps$
|
|
1560
|
-
var __objRest$
|
|
1678
|
+
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
|
1679
|
+
var __objRest$i = (source, exclude) => {
|
|
1561
1680
|
var target = {};
|
|
1562
1681
|
for (var prop in source)
|
|
1563
|
-
if (__hasOwnProp$
|
|
1682
|
+
if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1564
1683
|
target[prop] = source[prop];
|
|
1565
|
-
if (source != null && __getOwnPropSymbols$
|
|
1566
|
-
for (var prop of __getOwnPropSymbols$
|
|
1567
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1684
|
+
if (source != null && __getOwnPropSymbols$A)
|
|
1685
|
+
for (var prop of __getOwnPropSymbols$A(source)) {
|
|
1686
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
|
|
1568
1687
|
target[prop] = source[prop];
|
|
1569
1688
|
}
|
|
1570
1689
|
return target;
|
|
@@ -1575,7 +1694,7 @@
|
|
|
1575
1694
|
meta,
|
|
1576
1695
|
onBlur,
|
|
1577
1696
|
autoComplete = "off"
|
|
1578
|
-
} = _b, props = __objRest$
|
|
1697
|
+
} = _b, props = __objRest$i(_b, [
|
|
1579
1698
|
"input",
|
|
1580
1699
|
"meta",
|
|
1581
1700
|
"onBlur",
|
|
@@ -1583,7 +1702,7 @@
|
|
|
1583
1702
|
]);
|
|
1584
1703
|
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(
|
|
1585
1704
|
InputNumber,
|
|
1586
|
-
__spreadValues$
|
|
1705
|
+
__spreadValues$A(__spreadProps$t(__spreadValues$A({}, input), {
|
|
1587
1706
|
onBlur: (e) => onBlur ? onBlur(input, e) : input.onBlur(e),
|
|
1588
1707
|
autoComplete,
|
|
1589
1708
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
@@ -1591,33 +1710,33 @@
|
|
|
1591
1710
|
));
|
|
1592
1711
|
};
|
|
1593
1712
|
|
|
1594
|
-
var __defProp$
|
|
1595
|
-
var __defProps$
|
|
1596
|
-
var __getOwnPropDescs$
|
|
1597
|
-
var __getOwnPropSymbols$
|
|
1598
|
-
var __hasOwnProp$
|
|
1599
|
-
var __propIsEnum$
|
|
1600
|
-
var __defNormalProp$
|
|
1601
|
-
var __spreadValues$
|
|
1713
|
+
var __defProp$z = Object.defineProperty;
|
|
1714
|
+
var __defProps$s = Object.defineProperties;
|
|
1715
|
+
var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
|
|
1716
|
+
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
|
1717
|
+
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
|
1718
|
+
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
|
1719
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1720
|
+
var __spreadValues$z = (a, b) => {
|
|
1602
1721
|
for (var prop in b || (b = {}))
|
|
1603
|
-
if (__hasOwnProp$
|
|
1604
|
-
__defNormalProp$
|
|
1605
|
-
if (__getOwnPropSymbols$
|
|
1606
|
-
for (var prop of __getOwnPropSymbols$
|
|
1607
|
-
if (__propIsEnum$
|
|
1608
|
-
__defNormalProp$
|
|
1722
|
+
if (__hasOwnProp$z.call(b, prop))
|
|
1723
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
1724
|
+
if (__getOwnPropSymbols$z)
|
|
1725
|
+
for (var prop of __getOwnPropSymbols$z(b)) {
|
|
1726
|
+
if (__propIsEnum$z.call(b, prop))
|
|
1727
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
1609
1728
|
}
|
|
1610
1729
|
return a;
|
|
1611
1730
|
};
|
|
1612
|
-
var __spreadProps$
|
|
1613
|
-
var __objRest$
|
|
1731
|
+
var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
|
|
1732
|
+
var __objRest$h = (source, exclude) => {
|
|
1614
1733
|
var target = {};
|
|
1615
1734
|
for (var prop in source)
|
|
1616
|
-
if (__hasOwnProp$
|
|
1735
|
+
if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1617
1736
|
target[prop] = source[prop];
|
|
1618
|
-
if (source != null && __getOwnPropSymbols$
|
|
1619
|
-
for (var prop of __getOwnPropSymbols$
|
|
1620
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1737
|
+
if (source != null && __getOwnPropSymbols$z)
|
|
1738
|
+
for (var prop of __getOwnPropSymbols$z(source)) {
|
|
1739
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
|
|
1621
1740
|
target[prop] = source[prop];
|
|
1622
1741
|
}
|
|
1623
1742
|
return target;
|
|
@@ -1627,7 +1746,7 @@
|
|
|
1627
1746
|
className,
|
|
1628
1747
|
error,
|
|
1629
1748
|
size = "middle"
|
|
1630
|
-
} = _b, props = __objRest$
|
|
1749
|
+
} = _b, props = __objRest$h(_b, [
|
|
1631
1750
|
"className",
|
|
1632
1751
|
"error",
|
|
1633
1752
|
"size"
|
|
@@ -1639,7 +1758,7 @@
|
|
|
1639
1758
|
}[size];
|
|
1640
1759
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
1641
1760
|
antd.Input,
|
|
1642
|
-
__spreadProps$
|
|
1761
|
+
__spreadProps$s(__spreadValues$z({}, props), {
|
|
1643
1762
|
size,
|
|
1644
1763
|
"data-test": props.name,
|
|
1645
1764
|
className: cs__default.default(className, InputStyle, typo, error ? "error" : "")
|
|
@@ -1647,33 +1766,33 @@
|
|
|
1647
1766
|
);
|
|
1648
1767
|
};
|
|
1649
1768
|
|
|
1650
|
-
var __defProp$
|
|
1651
|
-
var __defProps$
|
|
1652
|
-
var __getOwnPropDescs$
|
|
1653
|
-
var __getOwnPropSymbols$
|
|
1654
|
-
var __hasOwnProp$
|
|
1655
|
-
var __propIsEnum$
|
|
1656
|
-
var __defNormalProp$
|
|
1657
|
-
var __spreadValues$
|
|
1769
|
+
var __defProp$y = Object.defineProperty;
|
|
1770
|
+
var __defProps$r = Object.defineProperties;
|
|
1771
|
+
var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
|
|
1772
|
+
var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
|
|
1773
|
+
var __hasOwnProp$y = Object.prototype.hasOwnProperty;
|
|
1774
|
+
var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
|
|
1775
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1776
|
+
var __spreadValues$y = (a, b) => {
|
|
1658
1777
|
for (var prop in b || (b = {}))
|
|
1659
|
-
if (__hasOwnProp$
|
|
1660
|
-
__defNormalProp$
|
|
1661
|
-
if (__getOwnPropSymbols$
|
|
1662
|
-
for (var prop of __getOwnPropSymbols$
|
|
1663
|
-
if (__propIsEnum$
|
|
1664
|
-
__defNormalProp$
|
|
1778
|
+
if (__hasOwnProp$y.call(b, prop))
|
|
1779
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
1780
|
+
if (__getOwnPropSymbols$y)
|
|
1781
|
+
for (var prop of __getOwnPropSymbols$y(b)) {
|
|
1782
|
+
if (__propIsEnum$y.call(b, prop))
|
|
1783
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
1665
1784
|
}
|
|
1666
1785
|
return a;
|
|
1667
1786
|
};
|
|
1668
|
-
var __spreadProps$
|
|
1669
|
-
var __objRest$
|
|
1787
|
+
var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
|
|
1788
|
+
var __objRest$g = (source, exclude) => {
|
|
1670
1789
|
var target = {};
|
|
1671
1790
|
for (var prop in source)
|
|
1672
|
-
if (__hasOwnProp$
|
|
1791
|
+
if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1673
1792
|
target[prop] = source[prop];
|
|
1674
|
-
if (source != null && __getOwnPropSymbols$
|
|
1675
|
-
for (var prop of __getOwnPropSymbols$
|
|
1676
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1793
|
+
if (source != null && __getOwnPropSymbols$y)
|
|
1794
|
+
for (var prop of __getOwnPropSymbols$y(source)) {
|
|
1795
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
|
|
1677
1796
|
target[prop] = source[prop];
|
|
1678
1797
|
}
|
|
1679
1798
|
return target;
|
|
@@ -1685,7 +1804,7 @@
|
|
|
1685
1804
|
onBlur,
|
|
1686
1805
|
autoComplete = "off",
|
|
1687
1806
|
supportNegativeValue = false
|
|
1688
|
-
} = _b, props = __objRest$
|
|
1807
|
+
} = _b, props = __objRest$g(_b, [
|
|
1689
1808
|
"input",
|
|
1690
1809
|
"meta",
|
|
1691
1810
|
"onBlur",
|
|
@@ -1694,7 +1813,7 @@
|
|
|
1694
1813
|
]);
|
|
1695
1814
|
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(
|
|
1696
1815
|
Input,
|
|
1697
|
-
__spreadValues$
|
|
1816
|
+
__spreadValues$y(__spreadProps$r(__spreadValues$y({}, input), {
|
|
1698
1817
|
onChange: (e) => {
|
|
1699
1818
|
const value = e.currentTarget.value;
|
|
1700
1819
|
if (supportNegativeValue) {
|
|
@@ -1729,31 +1848,31 @@
|
|
|
1729
1848
|
}
|
|
1730
1849
|
};
|
|
1731
1850
|
|
|
1732
|
-
var __defProp$
|
|
1733
|
-
var __defProps$
|
|
1734
|
-
var __getOwnPropDescs$
|
|
1735
|
-
var __getOwnPropSymbols$
|
|
1736
|
-
var __hasOwnProp$
|
|
1737
|
-
var __propIsEnum$
|
|
1738
|
-
var __defNormalProp$
|
|
1851
|
+
var __defProp$x = Object.defineProperty;
|
|
1852
|
+
var __defProps$q = Object.defineProperties;
|
|
1853
|
+
var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
|
|
1854
|
+
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
|
1855
|
+
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
|
1856
|
+
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
|
1857
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, {
|
|
1739
1858
|
enumerable: true,
|
|
1740
1859
|
configurable: true,
|
|
1741
1860
|
writable: true,
|
|
1742
1861
|
value
|
|
1743
1862
|
}) : obj[key] = value;
|
|
1744
|
-
var __spreadValues$
|
|
1745
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1746
|
-
if (__getOwnPropSymbols$
|
|
1747
|
-
if (__propIsEnum$
|
|
1863
|
+
var __spreadValues$x = (a, b) => {
|
|
1864
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$x.call(b, prop)) __defNormalProp$x(a, prop, b[prop]);
|
|
1865
|
+
if (__getOwnPropSymbols$x) for (var prop of __getOwnPropSymbols$x(b)) {
|
|
1866
|
+
if (__propIsEnum$x.call(b, prop)) __defNormalProp$x(a, prop, b[prop]);
|
|
1748
1867
|
}
|
|
1749
1868
|
return a;
|
|
1750
1869
|
};
|
|
1751
|
-
var __spreadProps$
|
|
1752
|
-
var __objRest$
|
|
1870
|
+
var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
|
|
1871
|
+
var __objRest$f = (source, exclude) => {
|
|
1753
1872
|
var target = {};
|
|
1754
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1755
|
-
if (source != null && __getOwnPropSymbols$
|
|
1756
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1873
|
+
for (var prop in source) if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1874
|
+
if (source != null && __getOwnPropSymbols$x) for (var prop of __getOwnPropSymbols$x(source)) {
|
|
1875
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop)) target[prop] = source[prop];
|
|
1757
1876
|
}
|
|
1758
1877
|
return target;
|
|
1759
1878
|
};
|
|
@@ -1791,13 +1910,13 @@
|
|
|
1791
1910
|
min,
|
|
1792
1911
|
controls = false
|
|
1793
1912
|
} = _b,
|
|
1794
|
-
props = __objRest$
|
|
1913
|
+
props = __objRest$f(_b, ["className", "error", "size", "suffix", "prefix", "max", "min", "controls"]);
|
|
1795
1914
|
const typo = {
|
|
1796
1915
|
large: Typo.Label.l2_regular,
|
|
1797
1916
|
middle: Typo.Label.l3_regular,
|
|
1798
1917
|
small: Typo.Label.l4_regular
|
|
1799
1918
|
}[size];
|
|
1800
|
-
return /* @__PURE__ */React__namespace.default.createElement(AntdIntStyled, __spreadProps$
|
|
1919
|
+
return /* @__PURE__ */React__namespace.default.createElement(AntdIntStyled, __spreadProps$q(__spreadValues$x({}, props), {
|
|
1801
1920
|
size,
|
|
1802
1921
|
formatter: formatterInteger,
|
|
1803
1922
|
parser: formatterInteger,
|
|
@@ -1811,33 +1930,33 @@
|
|
|
1811
1930
|
}));
|
|
1812
1931
|
};
|
|
1813
1932
|
|
|
1814
|
-
var __defProp$
|
|
1815
|
-
var __defProps$
|
|
1816
|
-
var __getOwnPropDescs$
|
|
1817
|
-
var __getOwnPropSymbols$
|
|
1818
|
-
var __hasOwnProp$
|
|
1819
|
-
var __propIsEnum$
|
|
1820
|
-
var __defNormalProp$
|
|
1821
|
-
var __spreadValues$
|
|
1933
|
+
var __defProp$w = Object.defineProperty;
|
|
1934
|
+
var __defProps$p = Object.defineProperties;
|
|
1935
|
+
var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
|
|
1936
|
+
var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
|
|
1937
|
+
var __hasOwnProp$w = Object.prototype.hasOwnProperty;
|
|
1938
|
+
var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
|
|
1939
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1940
|
+
var __spreadValues$w = (a, b) => {
|
|
1822
1941
|
for (var prop in b || (b = {}))
|
|
1823
|
-
if (__hasOwnProp$
|
|
1824
|
-
__defNormalProp$
|
|
1825
|
-
if (__getOwnPropSymbols$
|
|
1826
|
-
for (var prop of __getOwnPropSymbols$
|
|
1827
|
-
if (__propIsEnum$
|
|
1828
|
-
__defNormalProp$
|
|
1942
|
+
if (__hasOwnProp$w.call(b, prop))
|
|
1943
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
1944
|
+
if (__getOwnPropSymbols$w)
|
|
1945
|
+
for (var prop of __getOwnPropSymbols$w(b)) {
|
|
1946
|
+
if (__propIsEnum$w.call(b, prop))
|
|
1947
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
1829
1948
|
}
|
|
1830
1949
|
return a;
|
|
1831
1950
|
};
|
|
1832
|
-
var __spreadProps$
|
|
1833
|
-
var __objRest$
|
|
1951
|
+
var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
|
|
1952
|
+
var __objRest$e = (source, exclude) => {
|
|
1834
1953
|
var target = {};
|
|
1835
1954
|
for (var prop in source)
|
|
1836
|
-
if (__hasOwnProp$
|
|
1955
|
+
if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1837
1956
|
target[prop] = source[prop];
|
|
1838
|
-
if (source != null && __getOwnPropSymbols$
|
|
1839
|
-
for (var prop of __getOwnPropSymbols$
|
|
1840
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1957
|
+
if (source != null && __getOwnPropSymbols$w)
|
|
1958
|
+
for (var prop of __getOwnPropSymbols$w(source)) {
|
|
1959
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$w.call(source, prop))
|
|
1841
1960
|
target[prop] = source[prop];
|
|
1842
1961
|
}
|
|
1843
1962
|
return target;
|
|
@@ -1847,14 +1966,14 @@
|
|
|
1847
1966
|
meta,
|
|
1848
1967
|
input,
|
|
1849
1968
|
onBlur
|
|
1850
|
-
} = _b, props = __objRest$
|
|
1969
|
+
} = _b, props = __objRest$e(_b, [
|
|
1851
1970
|
"meta",
|
|
1852
1971
|
"input",
|
|
1853
1972
|
"onBlur"
|
|
1854
1973
|
]);
|
|
1855
1974
|
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(
|
|
1856
1975
|
InputInteger,
|
|
1857
|
-
__spreadProps$
|
|
1976
|
+
__spreadProps$p(__spreadValues$w(__spreadValues$w({}, props), input), {
|
|
1858
1977
|
onBlur: (e) => onBlur ? onBlur(input, e) : input.onBlur(e),
|
|
1859
1978
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
1860
1979
|
})
|
|
@@ -2019,33 +2138,33 @@
|
|
|
2019
2138
|
}, children), showOverflow && /* @__PURE__ */React__namespace.default.createElement("span", null, overflow));
|
|
2020
2139
|
};
|
|
2021
2140
|
|
|
2022
|
-
var __defProp$
|
|
2023
|
-
var __defProps$
|
|
2024
|
-
var __getOwnPropDescs$
|
|
2025
|
-
var __getOwnPropSymbols$
|
|
2026
|
-
var __hasOwnProp$
|
|
2027
|
-
var __propIsEnum$
|
|
2028
|
-
var __defNormalProp$
|
|
2029
|
-
var __spreadValues$
|
|
2141
|
+
var __defProp$v = Object.defineProperty;
|
|
2142
|
+
var __defProps$o = Object.defineProperties;
|
|
2143
|
+
var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
|
|
2144
|
+
var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
|
|
2145
|
+
var __hasOwnProp$v = Object.prototype.hasOwnProperty;
|
|
2146
|
+
var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
|
|
2147
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2148
|
+
var __spreadValues$v = (a, b) => {
|
|
2030
2149
|
for (var prop in b || (b = {}))
|
|
2031
|
-
if (__hasOwnProp$
|
|
2032
|
-
__defNormalProp$
|
|
2033
|
-
if (__getOwnPropSymbols$
|
|
2034
|
-
for (var prop of __getOwnPropSymbols$
|
|
2035
|
-
if (__propIsEnum$
|
|
2036
|
-
__defNormalProp$
|
|
2150
|
+
if (__hasOwnProp$v.call(b, prop))
|
|
2151
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
2152
|
+
if (__getOwnPropSymbols$v)
|
|
2153
|
+
for (var prop of __getOwnPropSymbols$v(b)) {
|
|
2154
|
+
if (__propIsEnum$v.call(b, prop))
|
|
2155
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
2037
2156
|
}
|
|
2038
2157
|
return a;
|
|
2039
2158
|
};
|
|
2040
|
-
var __spreadProps$
|
|
2041
|
-
var __objRest$
|
|
2159
|
+
var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
|
|
2160
|
+
var __objRest$d = (source, exclude) => {
|
|
2042
2161
|
var target = {};
|
|
2043
2162
|
for (var prop in source)
|
|
2044
|
-
if (__hasOwnProp$
|
|
2163
|
+
if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2045
2164
|
target[prop] = source[prop];
|
|
2046
|
-
if (source != null && __getOwnPropSymbols$
|
|
2047
|
-
for (var prop of __getOwnPropSymbols$
|
|
2048
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2165
|
+
if (source != null && __getOwnPropSymbols$v)
|
|
2166
|
+
for (var prop of __getOwnPropSymbols$v(source)) {
|
|
2167
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$v.call(source, prop))
|
|
2049
2168
|
target[prop] = source[prop];
|
|
2050
2169
|
}
|
|
2051
2170
|
return target;
|
|
@@ -2064,7 +2183,7 @@
|
|
|
2064
2183
|
onClick,
|
|
2065
2184
|
maxLength,
|
|
2066
2185
|
focusIndicator
|
|
2067
|
-
} = _b, props = __objRest$
|
|
2186
|
+
} = _b, props = __objRest$d(_b, [
|
|
2068
2187
|
"input",
|
|
2069
2188
|
"meta",
|
|
2070
2189
|
"autoComplete",
|
|
@@ -2096,7 +2215,7 @@
|
|
|
2096
2215
|
}
|
|
2097
2216
|
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(
|
|
2098
2217
|
Input,
|
|
2099
|
-
__spreadProps$
|
|
2218
|
+
__spreadProps$o(__spreadValues$v(__spreadProps$o(__spreadValues$v({
|
|
2100
2219
|
className: cs__default.default(
|
|
2101
2220
|
className,
|
|
2102
2221
|
KitInputStyle,
|
|
@@ -2121,33 +2240,33 @@
|
|
|
2121
2240
|
));
|
|
2122
2241
|
};
|
|
2123
2242
|
|
|
2124
|
-
var __defProp$
|
|
2125
|
-
var __defProps$
|
|
2126
|
-
var __getOwnPropDescs$
|
|
2127
|
-
var __getOwnPropSymbols$
|
|
2128
|
-
var __hasOwnProp$
|
|
2129
|
-
var __propIsEnum$
|
|
2130
|
-
var __defNormalProp$
|
|
2131
|
-
var __spreadValues$
|
|
2243
|
+
var __defProp$u = Object.defineProperty;
|
|
2244
|
+
var __defProps$n = Object.defineProperties;
|
|
2245
|
+
var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
|
|
2246
|
+
var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
|
|
2247
|
+
var __hasOwnProp$u = Object.prototype.hasOwnProperty;
|
|
2248
|
+
var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
|
|
2249
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2250
|
+
var __spreadValues$u = (a, b) => {
|
|
2132
2251
|
for (var prop in b || (b = {}))
|
|
2133
|
-
if (__hasOwnProp$
|
|
2134
|
-
__defNormalProp$
|
|
2135
|
-
if (__getOwnPropSymbols$
|
|
2136
|
-
for (var prop of __getOwnPropSymbols$
|
|
2137
|
-
if (__propIsEnum$
|
|
2138
|
-
__defNormalProp$
|
|
2252
|
+
if (__hasOwnProp$u.call(b, prop))
|
|
2253
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
2254
|
+
if (__getOwnPropSymbols$u)
|
|
2255
|
+
for (var prop of __getOwnPropSymbols$u(b)) {
|
|
2256
|
+
if (__propIsEnum$u.call(b, prop))
|
|
2257
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
2139
2258
|
}
|
|
2140
2259
|
return a;
|
|
2141
2260
|
};
|
|
2142
|
-
var __spreadProps$
|
|
2143
|
-
var __objRest$
|
|
2261
|
+
var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
|
|
2262
|
+
var __objRest$c = (source, exclude) => {
|
|
2144
2263
|
var target = {};
|
|
2145
2264
|
for (var prop in source)
|
|
2146
|
-
if (__hasOwnProp$
|
|
2265
|
+
if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2147
2266
|
target[prop] = source[prop];
|
|
2148
|
-
if (source != null && __getOwnPropSymbols$
|
|
2149
|
-
for (var prop of __getOwnPropSymbols$
|
|
2150
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2267
|
+
if (source != null && __getOwnPropSymbols$u)
|
|
2268
|
+
for (var prop of __getOwnPropSymbols$u(source)) {
|
|
2269
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
|
|
2151
2270
|
target[prop] = source[prop];
|
|
2152
2271
|
}
|
|
2153
2272
|
return target;
|
|
@@ -2157,7 +2276,7 @@
|
|
|
2157
2276
|
className,
|
|
2158
2277
|
error,
|
|
2159
2278
|
size = "middle"
|
|
2160
|
-
} = _b, props = __objRest$
|
|
2279
|
+
} = _b, props = __objRest$c(_b, [
|
|
2161
2280
|
"className",
|
|
2162
2281
|
"error",
|
|
2163
2282
|
"size"
|
|
@@ -2169,7 +2288,7 @@
|
|
|
2169
2288
|
}[size];
|
|
2170
2289
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
2171
2290
|
antd.Input.TextArea,
|
|
2172
|
-
__spreadProps$
|
|
2291
|
+
__spreadProps$n(__spreadValues$u({}, props), {
|
|
2173
2292
|
className: cs__default.default(
|
|
2174
2293
|
className,
|
|
2175
2294
|
InputStyle,
|
|
@@ -2183,33 +2302,33 @@
|
|
|
2183
2302
|
);
|
|
2184
2303
|
};
|
|
2185
2304
|
|
|
2186
|
-
var __defProp$
|
|
2187
|
-
var __defProps$
|
|
2188
|
-
var __getOwnPropDescs$
|
|
2189
|
-
var __getOwnPropSymbols$
|
|
2190
|
-
var __hasOwnProp$
|
|
2191
|
-
var __propIsEnum$
|
|
2192
|
-
var __defNormalProp$
|
|
2193
|
-
var __spreadValues$
|
|
2305
|
+
var __defProp$t = Object.defineProperty;
|
|
2306
|
+
var __defProps$m = Object.defineProperties;
|
|
2307
|
+
var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
|
|
2308
|
+
var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
|
|
2309
|
+
var __hasOwnProp$t = Object.prototype.hasOwnProperty;
|
|
2310
|
+
var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
|
|
2311
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2312
|
+
var __spreadValues$t = (a, b) => {
|
|
2194
2313
|
for (var prop in b || (b = {}))
|
|
2195
|
-
if (__hasOwnProp$
|
|
2196
|
-
__defNormalProp$
|
|
2197
|
-
if (__getOwnPropSymbols$
|
|
2198
|
-
for (var prop of __getOwnPropSymbols$
|
|
2199
|
-
if (__propIsEnum$
|
|
2200
|
-
__defNormalProp$
|
|
2314
|
+
if (__hasOwnProp$t.call(b, prop))
|
|
2315
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
2316
|
+
if (__getOwnPropSymbols$t)
|
|
2317
|
+
for (var prop of __getOwnPropSymbols$t(b)) {
|
|
2318
|
+
if (__propIsEnum$t.call(b, prop))
|
|
2319
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
2201
2320
|
}
|
|
2202
2321
|
return a;
|
|
2203
2322
|
};
|
|
2204
|
-
var __spreadProps$
|
|
2205
|
-
var __objRest$
|
|
2323
|
+
var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
|
|
2324
|
+
var __objRest$b = (source, exclude) => {
|
|
2206
2325
|
var target = {};
|
|
2207
2326
|
for (var prop in source)
|
|
2208
|
-
if (__hasOwnProp$
|
|
2327
|
+
if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2209
2328
|
target[prop] = source[prop];
|
|
2210
|
-
if (source != null && __getOwnPropSymbols$
|
|
2211
|
-
for (var prop of __getOwnPropSymbols$
|
|
2212
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2329
|
+
if (source != null && __getOwnPropSymbols$t)
|
|
2330
|
+
for (var prop of __getOwnPropSymbols$t(source)) {
|
|
2331
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$t.call(source, prop))
|
|
2213
2332
|
target[prop] = source[prop];
|
|
2214
2333
|
}
|
|
2215
2334
|
return target;
|
|
@@ -2219,14 +2338,14 @@
|
|
|
2219
2338
|
input,
|
|
2220
2339
|
meta,
|
|
2221
2340
|
onFocusChangeHeight
|
|
2222
|
-
} = _b, props = __objRest$
|
|
2341
|
+
} = _b, props = __objRest$b(_b, [
|
|
2223
2342
|
"input",
|
|
2224
2343
|
"meta",
|
|
2225
2344
|
"onFocusChangeHeight"
|
|
2226
2345
|
]);
|
|
2227
2346
|
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(
|
|
2228
2347
|
TextArea,
|
|
2229
|
-
__spreadProps$
|
|
2348
|
+
__spreadProps$m(__spreadValues$t(__spreadValues$t({}, input), props), {
|
|
2230
2349
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError),
|
|
2231
2350
|
onFocus: (e) => {
|
|
2232
2351
|
input.onFocus(e);
|
|
@@ -2240,33 +2359,33 @@
|
|
|
2240
2359
|
));
|
|
2241
2360
|
};
|
|
2242
2361
|
|
|
2243
|
-
var __defProp$
|
|
2244
|
-
var __defProps$
|
|
2245
|
-
var __getOwnPropDescs$
|
|
2246
|
-
var __getOwnPropSymbols$
|
|
2247
|
-
var __hasOwnProp$
|
|
2248
|
-
var __propIsEnum$
|
|
2249
|
-
var __defNormalProp$
|
|
2250
|
-
var __spreadValues$
|
|
2362
|
+
var __defProp$s = Object.defineProperty;
|
|
2363
|
+
var __defProps$l = Object.defineProperties;
|
|
2364
|
+
var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
|
|
2365
|
+
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
|
2366
|
+
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
|
2367
|
+
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
|
2368
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2369
|
+
var __spreadValues$s = (a, b) => {
|
|
2251
2370
|
for (var prop in b || (b = {}))
|
|
2252
|
-
if (__hasOwnProp$
|
|
2253
|
-
__defNormalProp$
|
|
2254
|
-
if (__getOwnPropSymbols$
|
|
2255
|
-
for (var prop of __getOwnPropSymbols$
|
|
2256
|
-
if (__propIsEnum$
|
|
2257
|
-
__defNormalProp$
|
|
2371
|
+
if (__hasOwnProp$s.call(b, prop))
|
|
2372
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
2373
|
+
if (__getOwnPropSymbols$s)
|
|
2374
|
+
for (var prop of __getOwnPropSymbols$s(b)) {
|
|
2375
|
+
if (__propIsEnum$s.call(b, prop))
|
|
2376
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
2258
2377
|
}
|
|
2259
2378
|
return a;
|
|
2260
2379
|
};
|
|
2261
|
-
var __spreadProps$
|
|
2262
|
-
var __objRest$
|
|
2380
|
+
var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
|
|
2381
|
+
var __objRest$a = (source, exclude) => {
|
|
2263
2382
|
var target = {};
|
|
2264
2383
|
for (var prop in source)
|
|
2265
|
-
if (__hasOwnProp$
|
|
2384
|
+
if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2266
2385
|
target[prop] = source[prop];
|
|
2267
|
-
if (source != null && __getOwnPropSymbols$
|
|
2268
|
-
for (var prop of __getOwnPropSymbols$
|
|
2269
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2386
|
+
if (source != null && __getOwnPropSymbols$s)
|
|
2387
|
+
for (var prop of __getOwnPropSymbols$s(source)) {
|
|
2388
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop))
|
|
2270
2389
|
target[prop] = source[prop];
|
|
2271
2390
|
}
|
|
2272
2391
|
return target;
|
|
@@ -2276,7 +2395,7 @@
|
|
|
2276
2395
|
className,
|
|
2277
2396
|
error,
|
|
2278
2397
|
size = "middle"
|
|
2279
|
-
} = _b, props = __objRest$
|
|
2398
|
+
} = _b, props = __objRest$a(_b, [
|
|
2280
2399
|
"className",
|
|
2281
2400
|
"error",
|
|
2282
2401
|
"size"
|
|
@@ -2288,7 +2407,7 @@
|
|
|
2288
2407
|
}[size];
|
|
2289
2408
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
2290
2409
|
antd.TimePicker,
|
|
2291
|
-
__spreadProps$
|
|
2410
|
+
__spreadProps$l(__spreadValues$s({}, props), {
|
|
2292
2411
|
size,
|
|
2293
2412
|
"data-test": props.name,
|
|
2294
2413
|
className: cs__default.default(className, InputStyle, typo, error ? "error" : "")
|
|
@@ -2296,33 +2415,33 @@
|
|
|
2296
2415
|
);
|
|
2297
2416
|
};
|
|
2298
2417
|
|
|
2299
|
-
var __defProp$
|
|
2300
|
-
var __defProps$
|
|
2301
|
-
var __getOwnPropDescs$
|
|
2302
|
-
var __getOwnPropSymbols$
|
|
2303
|
-
var __hasOwnProp$
|
|
2304
|
-
var __propIsEnum$
|
|
2305
|
-
var __defNormalProp$
|
|
2306
|
-
var __spreadValues$
|
|
2418
|
+
var __defProp$r = Object.defineProperty;
|
|
2419
|
+
var __defProps$k = Object.defineProperties;
|
|
2420
|
+
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
|
2421
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
|
2422
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
|
2423
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
|
2424
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2425
|
+
var __spreadValues$r = (a, b) => {
|
|
2307
2426
|
for (var prop in b || (b = {}))
|
|
2308
|
-
if (__hasOwnProp$
|
|
2309
|
-
__defNormalProp$
|
|
2310
|
-
if (__getOwnPropSymbols$
|
|
2311
|
-
for (var prop of __getOwnPropSymbols$
|
|
2312
|
-
if (__propIsEnum$
|
|
2313
|
-
__defNormalProp$
|
|
2427
|
+
if (__hasOwnProp$r.call(b, prop))
|
|
2428
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
2429
|
+
if (__getOwnPropSymbols$r)
|
|
2430
|
+
for (var prop of __getOwnPropSymbols$r(b)) {
|
|
2431
|
+
if (__propIsEnum$r.call(b, prop))
|
|
2432
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
2314
2433
|
}
|
|
2315
2434
|
return a;
|
|
2316
2435
|
};
|
|
2317
|
-
var __spreadProps$
|
|
2318
|
-
var __objRest$
|
|
2436
|
+
var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
|
|
2437
|
+
var __objRest$9 = (source, exclude) => {
|
|
2319
2438
|
var target = {};
|
|
2320
2439
|
for (var prop in source)
|
|
2321
|
-
if (__hasOwnProp$
|
|
2440
|
+
if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2322
2441
|
target[prop] = source[prop];
|
|
2323
|
-
if (source != null && __getOwnPropSymbols$
|
|
2324
|
-
for (var prop of __getOwnPropSymbols$
|
|
2325
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2442
|
+
if (source != null && __getOwnPropSymbols$r)
|
|
2443
|
+
for (var prop of __getOwnPropSymbols$r(source)) {
|
|
2444
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
|
|
2326
2445
|
target[prop] = source[prop];
|
|
2327
2446
|
}
|
|
2328
2447
|
return target;
|
|
@@ -2331,13 +2450,13 @@
|
|
|
2331
2450
|
var _b = _a, {
|
|
2332
2451
|
input,
|
|
2333
2452
|
meta
|
|
2334
|
-
} = _b, props = __objRest$
|
|
2453
|
+
} = _b, props = __objRest$9(_b, [
|
|
2335
2454
|
"input",
|
|
2336
2455
|
"meta"
|
|
2337
2456
|
]);
|
|
2338
2457
|
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(
|
|
2339
2458
|
TimePicker,
|
|
2340
|
-
__spreadValues$
|
|
2459
|
+
__spreadValues$r(__spreadProps$k(__spreadValues$r({}, input), {
|
|
2341
2460
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
2342
2461
|
}), props)
|
|
2343
2462
|
));
|
|
@@ -2356,29 +2475,32 @@
|
|
|
2356
2475
|
DateTimeRange: FieldsDateTimeRange
|
|
2357
2476
|
};
|
|
2358
2477
|
|
|
2359
|
-
var __defProp$
|
|
2360
|
-
var __defProps$
|
|
2361
|
-
var __getOwnPropDescs$
|
|
2362
|
-
var __getOwnPropSymbols$
|
|
2363
|
-
var __hasOwnProp$
|
|
2364
|
-
var __propIsEnum$
|
|
2365
|
-
var __defNormalProp$
|
|
2478
|
+
var __defProp$q = Object.defineProperty;
|
|
2479
|
+
var __defProps$j = Object.defineProperties;
|
|
2480
|
+
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
2481
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
2482
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
2483
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
2484
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, {
|
|
2366
2485
|
enumerable: true,
|
|
2367
2486
|
configurable: true,
|
|
2368
2487
|
writable: true,
|
|
2369
2488
|
value
|
|
2370
2489
|
}) : obj[key] = value;
|
|
2371
|
-
var __spreadValues$
|
|
2372
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
2373
|
-
if (__getOwnPropSymbols$
|
|
2374
|
-
if (__propIsEnum$
|
|
2490
|
+
var __spreadValues$q = (a, b) => {
|
|
2491
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$q.call(b, prop)) __defNormalProp$q(a, prop, b[prop]);
|
|
2492
|
+
if (__getOwnPropSymbols$q) for (var prop of __getOwnPropSymbols$q(b)) {
|
|
2493
|
+
if (__propIsEnum$q.call(b, prop)) __defNormalProp$q(a, prop, b[prop]);
|
|
2375
2494
|
}
|
|
2376
2495
|
return a;
|
|
2377
2496
|
};
|
|
2378
|
-
var __spreadProps$
|
|
2497
|
+
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
2498
|
+
const {
|
|
2499
|
+
Item: AntdFormItem
|
|
2500
|
+
} = antd.Form;
|
|
2379
2501
|
const FormItemStyle$1 = "f1p9ti6d";
|
|
2380
2502
|
const FormItem$1 = props => {
|
|
2381
|
-
return /* @__PURE__ */React__namespace.default.createElement(
|
|
2503
|
+
return /* @__PURE__ */React__namespace.default.createElement(AntdFormItem, __spreadProps$j(__spreadValues$q({}, props), {
|
|
2382
2504
|
className: cs__default.default(FormItemStyle$1, props.className)
|
|
2383
2505
|
}));
|
|
2384
2506
|
};
|
|
@@ -2386,19 +2508,19 @@
|
|
|
2386
2508
|
const Form = antd.Form;
|
|
2387
2509
|
Form.Item = FormItem$1;
|
|
2388
2510
|
|
|
2389
|
-
var __defProp$
|
|
2390
|
-
var __getOwnPropSymbols$
|
|
2391
|
-
var __hasOwnProp$
|
|
2392
|
-
var __propIsEnum$
|
|
2393
|
-
var __defNormalProp$
|
|
2394
|
-
var __spreadValues$
|
|
2511
|
+
var __defProp$p = Object.defineProperty;
|
|
2512
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
2513
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
2514
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
2515
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2516
|
+
var __spreadValues$p = (a, b) => {
|
|
2395
2517
|
for (var prop in b || (b = {}))
|
|
2396
|
-
if (__hasOwnProp$
|
|
2397
|
-
__defNormalProp$
|
|
2398
|
-
if (__getOwnPropSymbols$
|
|
2399
|
-
for (var prop of __getOwnPropSymbols$
|
|
2400
|
-
if (__propIsEnum$
|
|
2401
|
-
__defNormalProp$
|
|
2518
|
+
if (__hasOwnProp$p.call(b, prop))
|
|
2519
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
2520
|
+
if (__getOwnPropSymbols$p)
|
|
2521
|
+
for (var prop of __getOwnPropSymbols$p(b)) {
|
|
2522
|
+
if (__propIsEnum$p.call(b, prop))
|
|
2523
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
2402
2524
|
}
|
|
2403
2525
|
return a;
|
|
2404
2526
|
};
|
|
@@ -2410,7 +2532,7 @@
|
|
|
2410
2532
|
emptyProps
|
|
2411
2533
|
}) => {
|
|
2412
2534
|
if (isEmpty(rawValue)) {
|
|
2413
|
-
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$
|
|
2535
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$p({}, emptyProps));
|
|
2414
2536
|
}
|
|
2415
2537
|
const { value, unit } = formatFrequency(rawValue, decimals);
|
|
2416
2538
|
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
|
|
@@ -2423,25 +2545,25 @@
|
|
|
2423
2545
|
propsAsIs: true
|
|
2424
2546
|
});
|
|
2425
2547
|
|
|
2426
|
-
var __defProp$
|
|
2427
|
-
var __defProps$
|
|
2428
|
-
var __getOwnPropDescs$
|
|
2429
|
-
var __getOwnPropSymbols$
|
|
2430
|
-
var __hasOwnProp$
|
|
2431
|
-
var __propIsEnum$
|
|
2432
|
-
var __defNormalProp$
|
|
2433
|
-
var __spreadValues$
|
|
2548
|
+
var __defProp$o = Object.defineProperty;
|
|
2549
|
+
var __defProps$i = Object.defineProperties;
|
|
2550
|
+
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
2551
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
2552
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
2553
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
2554
|
+
var __defNormalProp$o = (obj, key2, value) => key2 in obj ? __defProp$o(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value;
|
|
2555
|
+
var __spreadValues$o = (a, b) => {
|
|
2434
2556
|
for (var prop in b || (b = {}))
|
|
2435
|
-
if (__hasOwnProp$
|
|
2436
|
-
__defNormalProp$
|
|
2437
|
-
if (__getOwnPropSymbols$
|
|
2438
|
-
for (var prop of __getOwnPropSymbols$
|
|
2439
|
-
if (__propIsEnum$
|
|
2440
|
-
__defNormalProp$
|
|
2557
|
+
if (__hasOwnProp$o.call(b, prop))
|
|
2558
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
2559
|
+
if (__getOwnPropSymbols$o)
|
|
2560
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
|
2561
|
+
if (__propIsEnum$o.call(b, prop))
|
|
2562
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
2441
2563
|
}
|
|
2442
2564
|
return a;
|
|
2443
2565
|
};
|
|
2444
|
-
var __spreadProps$
|
|
2566
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
2445
2567
|
let messageInstance;
|
|
2446
2568
|
let defaultDuration = 3;
|
|
2447
2569
|
let defaultTop;
|
|
@@ -2548,7 +2670,7 @@
|
|
|
2548
2670
|
}
|
|
2549
2671
|
getRCNotificationInstance(args, ({ prefixCls, instance }) => {
|
|
2550
2672
|
instance.notice(
|
|
2551
|
-
getRCNoticeProps(__spreadProps$
|
|
2673
|
+
getRCNoticeProps(__spreadProps$i(__spreadValues$o({}, args), { key: target, onClose: callback }), prefixCls)
|
|
2552
2674
|
);
|
|
2553
2675
|
});
|
|
2554
2676
|
});
|
|
@@ -2577,7 +2699,7 @@
|
|
|
2577
2699
|
function attachTypeApi(originalApi, type) {
|
|
2578
2700
|
originalApi[type] = (content, duration, onClose) => {
|
|
2579
2701
|
if (isArgsProps(content)) {
|
|
2580
|
-
return originalApi.open(__spreadProps$
|
|
2702
|
+
return originalApi.open(__spreadProps$i(__spreadValues$o({}, content), { type }));
|
|
2581
2703
|
}
|
|
2582
2704
|
if (typeof duration === "function") {
|
|
2583
2705
|
onClose = duration;
|
|
@@ -2591,25 +2713,25 @@
|
|
|
2591
2713
|
);
|
|
2592
2714
|
api.warn = api.warning;
|
|
2593
2715
|
|
|
2594
|
-
var __defProp$
|
|
2595
|
-
var __defProps$
|
|
2596
|
-
var __getOwnPropDescs$
|
|
2597
|
-
var __getOwnPropSymbols$
|
|
2598
|
-
var __hasOwnProp$
|
|
2599
|
-
var __propIsEnum$
|
|
2600
|
-
var __defNormalProp$
|
|
2601
|
-
var __spreadValues$
|
|
2716
|
+
var __defProp$n = Object.defineProperty;
|
|
2717
|
+
var __defProps$h = Object.defineProperties;
|
|
2718
|
+
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
2719
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
2720
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
2721
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
2722
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2723
|
+
var __spreadValues$n = (a, b) => {
|
|
2602
2724
|
for (var prop in b || (b = {}))
|
|
2603
|
-
if (__hasOwnProp$
|
|
2604
|
-
__defNormalProp$
|
|
2605
|
-
if (__getOwnPropSymbols$
|
|
2606
|
-
for (var prop of __getOwnPropSymbols$
|
|
2607
|
-
if (__propIsEnum$
|
|
2608
|
-
__defNormalProp$
|
|
2725
|
+
if (__hasOwnProp$n.call(b, prop))
|
|
2726
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
2727
|
+
if (__getOwnPropSymbols$n)
|
|
2728
|
+
for (var prop of __getOwnPropSymbols$n(b)) {
|
|
2729
|
+
if (__propIsEnum$n.call(b, prop))
|
|
2730
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
2609
2731
|
}
|
|
2610
2732
|
return a;
|
|
2611
2733
|
};
|
|
2612
|
-
var __spreadProps$
|
|
2734
|
+
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
2613
2735
|
const initialChartState = {
|
|
2614
2736
|
pointers: {},
|
|
2615
2737
|
resourceData: {},
|
|
@@ -2619,8 +2741,8 @@
|
|
|
2619
2741
|
switch (action.type) {
|
|
2620
2742
|
case "SET_POINTER" /* SET_POINTER */: {
|
|
2621
2743
|
const { uuid, left, text, visible, value } = action.payload;
|
|
2622
|
-
return __spreadProps$
|
|
2623
|
-
pointers: __spreadProps$
|
|
2744
|
+
return __spreadProps$h(__spreadValues$n({}, state), {
|
|
2745
|
+
pointers: __spreadProps$h(__spreadValues$n({}, state.pointers), {
|
|
2624
2746
|
[uuid]: {
|
|
2625
2747
|
left,
|
|
2626
2748
|
text,
|
|
@@ -2632,16 +2754,16 @@
|
|
|
2632
2754
|
}
|
|
2633
2755
|
case "SET_RESOURCE_DATA" /* SET_RESOURCE_DATA */: {
|
|
2634
2756
|
const { uuid, data } = action.payload;
|
|
2635
|
-
return __spreadProps$
|
|
2636
|
-
resourceData: __spreadProps$
|
|
2757
|
+
return __spreadProps$h(__spreadValues$n({}, state), {
|
|
2758
|
+
resourceData: __spreadProps$h(__spreadValues$n({}, state.resourceData), {
|
|
2637
2759
|
[uuid]: data
|
|
2638
2760
|
})
|
|
2639
2761
|
});
|
|
2640
2762
|
}
|
|
2641
2763
|
case "SET_AVERAGE_DATA" /* SET_AVERAGE_DATA */: {
|
|
2642
2764
|
const { uuid, average } = action.payload;
|
|
2643
|
-
return __spreadProps$
|
|
2644
|
-
averageData: __spreadProps$
|
|
2765
|
+
return __spreadProps$h(__spreadValues$n({}, state), {
|
|
2766
|
+
averageData: __spreadProps$h(__spreadValues$n({}, state.averageData), {
|
|
2645
2767
|
[uuid]: average
|
|
2646
2768
|
})
|
|
2647
2769
|
});
|
|
@@ -2652,25 +2774,25 @@
|
|
|
2652
2774
|
}
|
|
2653
2775
|
};
|
|
2654
2776
|
|
|
2655
|
-
var __defProp$
|
|
2656
|
-
var __defProps$
|
|
2657
|
-
var __getOwnPropDescs$
|
|
2658
|
-
var __getOwnPropSymbols$
|
|
2659
|
-
var __hasOwnProp$
|
|
2660
|
-
var __propIsEnum$
|
|
2661
|
-
var __defNormalProp$
|
|
2662
|
-
var __spreadValues$
|
|
2777
|
+
var __defProp$m = Object.defineProperty;
|
|
2778
|
+
var __defProps$g = Object.defineProperties;
|
|
2779
|
+
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
2780
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
2781
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
2782
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
2783
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2784
|
+
var __spreadValues$m = (a, b) => {
|
|
2663
2785
|
for (var prop in b || (b = {}))
|
|
2664
|
-
if (__hasOwnProp$
|
|
2665
|
-
__defNormalProp$
|
|
2666
|
-
if (__getOwnPropSymbols$
|
|
2667
|
-
for (var prop of __getOwnPropSymbols$
|
|
2668
|
-
if (__propIsEnum$
|
|
2669
|
-
__defNormalProp$
|
|
2786
|
+
if (__hasOwnProp$m.call(b, prop))
|
|
2787
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
2788
|
+
if (__getOwnPropSymbols$m)
|
|
2789
|
+
for (var prop of __getOwnPropSymbols$m(b)) {
|
|
2790
|
+
if (__propIsEnum$m.call(b, prop))
|
|
2791
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
2670
2792
|
}
|
|
2671
2793
|
return a;
|
|
2672
2794
|
};
|
|
2673
|
-
var __spreadProps$
|
|
2795
|
+
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
2674
2796
|
var ModalActions = /* @__PURE__ */ ((ModalActions2) => {
|
|
2675
2797
|
ModalActions2["PUSH_MODAL"] = "PUSH_MODAL";
|
|
2676
2798
|
ModalActions2["POP_MODAL"] = "POP_MODAL";
|
|
@@ -2691,22 +2813,22 @@
|
|
|
2691
2813
|
)) {
|
|
2692
2814
|
return state;
|
|
2693
2815
|
}
|
|
2694
|
-
return __spreadProps$
|
|
2695
|
-
stack: state.stack.concat(__spreadProps$
|
|
2816
|
+
return __spreadProps$g(__spreadValues$m({}, state), {
|
|
2817
|
+
stack: state.stack.concat(__spreadProps$g(__spreadValues$m({}, action.payload), {
|
|
2696
2818
|
id: MODAL_ID++
|
|
2697
2819
|
}))
|
|
2698
2820
|
});
|
|
2699
2821
|
case "POP_MODAL" /* POP_MODAL */:
|
|
2700
|
-
return __spreadProps$
|
|
2822
|
+
return __spreadProps$g(__spreadValues$m({}, state), {
|
|
2701
2823
|
stack: state.stack.slice(0, -1)
|
|
2702
2824
|
});
|
|
2703
2825
|
case "REMOVE_MODAL" /* REMOVE_MODAL */:
|
|
2704
|
-
return __spreadProps$
|
|
2826
|
+
return __spreadProps$g(__spreadValues$m({}, state), {
|
|
2705
2827
|
closeId: 0,
|
|
2706
2828
|
stack: state.stack.filter((m) => m.id !== action.id)
|
|
2707
2829
|
});
|
|
2708
2830
|
case "CLOSE_MODAL" /* CLOSE_MODAL */:
|
|
2709
|
-
return __spreadProps$
|
|
2831
|
+
return __spreadProps$g(__spreadValues$m({}, state), {
|
|
2710
2832
|
closeId: action.id
|
|
2711
2833
|
});
|
|
2712
2834
|
default:
|
|
@@ -2757,33 +2879,33 @@
|
|
|
2757
2879
|
const useKitDispatch = reactRedux.createDispatchHook(ctx);
|
|
2758
2880
|
const useKitSelector = reactRedux.createSelectorHook(ctx);
|
|
2759
2881
|
|
|
2760
|
-
var __defProp$
|
|
2761
|
-
var __defProps$
|
|
2762
|
-
var __getOwnPropDescs$
|
|
2763
|
-
var __getOwnPropSymbols$
|
|
2764
|
-
var __hasOwnProp$
|
|
2765
|
-
var __propIsEnum$
|
|
2766
|
-
var __defNormalProp$
|
|
2767
|
-
var __spreadValues$
|
|
2882
|
+
var __defProp$l = Object.defineProperty;
|
|
2883
|
+
var __defProps$f = Object.defineProperties;
|
|
2884
|
+
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
2885
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
2886
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
2887
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
2888
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2889
|
+
var __spreadValues$l = (a, b) => {
|
|
2768
2890
|
for (var prop in b || (b = {}))
|
|
2769
|
-
if (__hasOwnProp$
|
|
2770
|
-
__defNormalProp$
|
|
2771
|
-
if (__getOwnPropSymbols$
|
|
2772
|
-
for (var prop of __getOwnPropSymbols$
|
|
2773
|
-
if (__propIsEnum$
|
|
2774
|
-
__defNormalProp$
|
|
2891
|
+
if (__hasOwnProp$l.call(b, prop))
|
|
2892
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
2893
|
+
if (__getOwnPropSymbols$l)
|
|
2894
|
+
for (var prop of __getOwnPropSymbols$l(b)) {
|
|
2895
|
+
if (__propIsEnum$l.call(b, prop))
|
|
2896
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
2775
2897
|
}
|
|
2776
2898
|
return a;
|
|
2777
2899
|
};
|
|
2778
|
-
var __spreadProps$
|
|
2779
|
-
var __objRest$
|
|
2900
|
+
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
2901
|
+
var __objRest$8 = (source, exclude) => {
|
|
2780
2902
|
var target = {};
|
|
2781
2903
|
for (var prop in source)
|
|
2782
|
-
if (__hasOwnProp$
|
|
2904
|
+
if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2783
2905
|
target[prop] = source[prop];
|
|
2784
|
-
if (source != null && __getOwnPropSymbols$
|
|
2785
|
-
for (var prop of __getOwnPropSymbols$
|
|
2786
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2906
|
+
if (source != null && __getOwnPropSymbols$l)
|
|
2907
|
+
for (var prop of __getOwnPropSymbols$l(source)) {
|
|
2908
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
|
|
2787
2909
|
target[prop] = source[prop];
|
|
2788
2910
|
}
|
|
2789
2911
|
return target;
|
|
@@ -2810,7 +2932,7 @@
|
|
|
2810
2932
|
showCancel = true,
|
|
2811
2933
|
showOk = true,
|
|
2812
2934
|
afterClose
|
|
2813
|
-
} = _a, restProps = __objRest$
|
|
2935
|
+
} = _a, restProps = __objRest$8(_a, [
|
|
2814
2936
|
"error",
|
|
2815
2937
|
"okText",
|
|
2816
2938
|
"cancelText",
|
|
@@ -2865,7 +2987,7 @@
|
|
|
2865
2987
|
}
|
|
2866
2988
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
2867
2989
|
antd.Modal,
|
|
2868
|
-
__spreadProps$
|
|
2990
|
+
__spreadProps$f(__spreadValues$l({
|
|
2869
2991
|
maskClosable,
|
|
2870
2992
|
className: cs__default.default(
|
|
2871
2993
|
className,
|
|
@@ -2900,7 +3022,7 @@
|
|
|
2900
3022
|
prevText
|
|
2901
3023
|
), 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(
|
|
2902
3024
|
Button,
|
|
2903
|
-
__spreadValues$
|
|
3025
|
+
__spreadValues$l({
|
|
2904
3026
|
type: "quiet",
|
|
2905
3027
|
onMouseDown: (e) => {
|
|
2906
3028
|
e.preventDefault();
|
|
@@ -2914,7 +3036,7 @@
|
|
|
2914
3036
|
cancelText
|
|
2915
3037
|
), showOk && /* @__PURE__ */ React__namespace.default.createElement(
|
|
2916
3038
|
Button,
|
|
2917
|
-
__spreadValues$
|
|
3039
|
+
__spreadValues$l({
|
|
2918
3040
|
onClick: (e) => {
|
|
2919
3041
|
var _a2, _b2;
|
|
2920
3042
|
onOk == null ? void 0 : onOk(e);
|
|
@@ -3066,19 +3188,19 @@
|
|
|
3066
3188
|
}))));
|
|
3067
3189
|
};
|
|
3068
3190
|
|
|
3069
|
-
var __defProp$
|
|
3070
|
-
var __getOwnPropSymbols$
|
|
3071
|
-
var __hasOwnProp$
|
|
3072
|
-
var __propIsEnum$
|
|
3073
|
-
var __defNormalProp$
|
|
3074
|
-
var __spreadValues$
|
|
3191
|
+
var __defProp$k = Object.defineProperty;
|
|
3192
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
|
3193
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
|
3194
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
|
3195
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3196
|
+
var __spreadValues$k = (a, b) => {
|
|
3075
3197
|
for (var prop in b || (b = {}))
|
|
3076
|
-
if (__hasOwnProp$
|
|
3077
|
-
__defNormalProp$
|
|
3078
|
-
if (__getOwnPropSymbols$
|
|
3079
|
-
for (var prop of __getOwnPropSymbols$
|
|
3080
|
-
if (__propIsEnum$
|
|
3081
|
-
__defNormalProp$
|
|
3198
|
+
if (__hasOwnProp$k.call(b, prop))
|
|
3199
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
3200
|
+
if (__getOwnPropSymbols$k)
|
|
3201
|
+
for (var prop of __getOwnPropSymbols$k(b)) {
|
|
3202
|
+
if (__propIsEnum$k.call(b, prop))
|
|
3203
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
3082
3204
|
}
|
|
3083
3205
|
return a;
|
|
3084
3206
|
};
|
|
@@ -3091,52 +3213,52 @@
|
|
|
3091
3213
|
emptyProps
|
|
3092
3214
|
}) => {
|
|
3093
3215
|
if (isEmpty(rawValue)) {
|
|
3094
|
-
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$
|
|
3216
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$k({}, emptyProps));
|
|
3095
3217
|
}
|
|
3096
3218
|
const { value, unit } = formatPercent(rawValue, decimals, saturated);
|
|
3097
3219
|
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, unit));
|
|
3098
3220
|
};
|
|
3099
3221
|
|
|
3100
|
-
var __defProp$
|
|
3101
|
-
var __getOwnPropSymbols$
|
|
3102
|
-
var __hasOwnProp$
|
|
3103
|
-
var __propIsEnum$
|
|
3104
|
-
var __defNormalProp$
|
|
3105
|
-
var __spreadValues$
|
|
3222
|
+
var __defProp$j = Object.defineProperty;
|
|
3223
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
3224
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
3225
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
3226
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3227
|
+
var __spreadValues$j = (a, b) => {
|
|
3106
3228
|
for (var prop in b || (b = {}))
|
|
3107
|
-
if (__hasOwnProp$
|
|
3108
|
-
__defNormalProp$
|
|
3109
|
-
if (__getOwnPropSymbols$
|
|
3110
|
-
for (var prop of __getOwnPropSymbols$
|
|
3111
|
-
if (__propIsEnum$
|
|
3112
|
-
__defNormalProp$
|
|
3229
|
+
if (__hasOwnProp$j.call(b, prop))
|
|
3230
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
3231
|
+
if (__getOwnPropSymbols$j)
|
|
3232
|
+
for (var prop of __getOwnPropSymbols$j(b)) {
|
|
3233
|
+
if (__propIsEnum$j.call(b, prop))
|
|
3234
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
3113
3235
|
}
|
|
3114
3236
|
return a;
|
|
3115
3237
|
};
|
|
3116
|
-
const Progress = (props) => /* @__PURE__ */ React__namespace.default.createElement(antd.Progress, __spreadValues$
|
|
3238
|
+
const Progress = (props) => /* @__PURE__ */ React__namespace.default.createElement(antd.Progress, __spreadValues$j({}, props));
|
|
3117
3239
|
|
|
3118
|
-
var __defProp$
|
|
3119
|
-
var __getOwnPropSymbols$
|
|
3120
|
-
var __hasOwnProp$
|
|
3121
|
-
var __propIsEnum$
|
|
3122
|
-
var __defNormalProp$
|
|
3240
|
+
var __defProp$i = Object.defineProperty;
|
|
3241
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
3242
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
3243
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
3244
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, {
|
|
3123
3245
|
enumerable: true,
|
|
3124
3246
|
configurable: true,
|
|
3125
3247
|
writable: true,
|
|
3126
3248
|
value
|
|
3127
3249
|
}) : obj[key] = value;
|
|
3128
|
-
var __spreadValues$
|
|
3129
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3130
|
-
if (__getOwnPropSymbols$
|
|
3131
|
-
if (__propIsEnum$
|
|
3250
|
+
var __spreadValues$i = (a, b) => {
|
|
3251
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$i.call(b, prop)) __defNormalProp$i(a, prop, b[prop]);
|
|
3252
|
+
if (__getOwnPropSymbols$i) for (var prop of __getOwnPropSymbols$i(b)) {
|
|
3253
|
+
if (__propIsEnum$i.call(b, prop)) __defNormalProp$i(a, prop, b[prop]);
|
|
3132
3254
|
}
|
|
3133
3255
|
return a;
|
|
3134
3256
|
};
|
|
3135
|
-
var __objRest$
|
|
3257
|
+
var __objRest$7 = (source, exclude) => {
|
|
3136
3258
|
var target = {};
|
|
3137
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3138
|
-
if (source != null && __getOwnPropSymbols$
|
|
3139
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3259
|
+
for (var prop in source) if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3260
|
+
if (source != null && __getOwnPropSymbols$i) for (var prop of __getOwnPropSymbols$i(source)) {
|
|
3261
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop)) target[prop] = source[prop];
|
|
3140
3262
|
}
|
|
3141
3263
|
return target;
|
|
3142
3264
|
};
|
|
@@ -3152,7 +3274,7 @@
|
|
|
3152
3274
|
checked,
|
|
3153
3275
|
compact = false
|
|
3154
3276
|
} = _b,
|
|
3155
|
-
props = __objRest$
|
|
3277
|
+
props = __objRest$7(_b, ["children", "className", "checked", "compact"]);
|
|
3156
3278
|
const {
|
|
3157
3279
|
description
|
|
3158
3280
|
} = props;
|
|
@@ -3162,7 +3284,7 @@
|
|
|
3162
3284
|
className: core.cx("radio-description", Typo.Label.l4_regular)
|
|
3163
3285
|
}, description));
|
|
3164
3286
|
}
|
|
3165
|
-
return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement(antd.Radio, __spreadValues$
|
|
3287
|
+
return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement(antd.Radio, __spreadValues$i({
|
|
3166
3288
|
className: core.cx(className, RadioStyle, compact && "compact"),
|
|
3167
3289
|
checked: checked || false,
|
|
3168
3290
|
"data-test": context.name ? `${context.name}-${String(props.value)}` : String(props.value)
|
|
@@ -3174,13 +3296,13 @@
|
|
|
3174
3296
|
children,
|
|
3175
3297
|
className
|
|
3176
3298
|
} = _d,
|
|
3177
|
-
props = __objRest$
|
|
3299
|
+
props = __objRest$7(_d, ["children", "className"]);
|
|
3178
3300
|
return /* @__PURE__ */React__namespace.default.createElement(KitRadioGroupContext.Provider, {
|
|
3179
3301
|
value: {
|
|
3180
3302
|
disabled: props.disabled,
|
|
3181
3303
|
name: props.name
|
|
3182
3304
|
}
|
|
3183
|
-
}, /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Group, __spreadValues$
|
|
3305
|
+
}, /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Group, __spreadValues$i({
|
|
3184
3306
|
className: core.cx(className, RadioGroupStyle)
|
|
3185
3307
|
}, props), children ? children : null));
|
|
3186
3308
|
};
|
|
@@ -3190,7 +3312,7 @@
|
|
|
3190
3312
|
children,
|
|
3191
3313
|
className
|
|
3192
3314
|
} = _f,
|
|
3193
|
-
props = __objRest$
|
|
3315
|
+
props = __objRest$7(_f, ["children", "className"]);
|
|
3194
3316
|
const {
|
|
3195
3317
|
type,
|
|
3196
3318
|
placeholder = "Label",
|
|
@@ -3236,46 +3358,46 @@
|
|
|
3236
3358
|
className: "ant-radio-button-input-label"
|
|
3237
3359
|
}, typeof children === "string" ? children : ""));
|
|
3238
3360
|
};
|
|
3239
|
-
return /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Button, __spreadValues$
|
|
3361
|
+
return /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Button, __spreadValues$i({
|
|
3240
3362
|
className: core.cx(className, RadioButtonStyle),
|
|
3241
3363
|
value: radioButtonValue
|
|
3242
3364
|
}, props), renderChildren());
|
|
3243
3365
|
};
|
|
3244
3366
|
|
|
3245
|
-
var __defProp$
|
|
3246
|
-
var __getOwnPropSymbols$
|
|
3247
|
-
var __hasOwnProp$
|
|
3248
|
-
var __propIsEnum$
|
|
3249
|
-
var __defNormalProp$
|
|
3250
|
-
var __spreadValues$
|
|
3367
|
+
var __defProp$h = Object.defineProperty;
|
|
3368
|
+
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
|
3369
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
3370
|
+
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
|
3371
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3372
|
+
var __spreadValues$h = (a, b) => {
|
|
3251
3373
|
for (var prop in b || (b = {}))
|
|
3252
|
-
if (__hasOwnProp$
|
|
3253
|
-
__defNormalProp$
|
|
3254
|
-
if (__getOwnPropSymbols$
|
|
3255
|
-
for (var prop of __getOwnPropSymbols$
|
|
3256
|
-
if (__propIsEnum$
|
|
3257
|
-
__defNormalProp$
|
|
3374
|
+
if (__hasOwnProp$h.call(b, prop))
|
|
3375
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
3376
|
+
if (__getOwnPropSymbols$h)
|
|
3377
|
+
for (var prop of __getOwnPropSymbols$h(b)) {
|
|
3378
|
+
if (__propIsEnum$h.call(b, prop))
|
|
3379
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
3258
3380
|
}
|
|
3259
3381
|
return a;
|
|
3260
3382
|
};
|
|
3261
|
-
var __objRest$
|
|
3383
|
+
var __objRest$6 = (source, exclude) => {
|
|
3262
3384
|
var target = {};
|
|
3263
3385
|
for (var prop in source)
|
|
3264
|
-
if (__hasOwnProp$
|
|
3386
|
+
if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3265
3387
|
target[prop] = source[prop];
|
|
3266
|
-
if (source != null && __getOwnPropSymbols$
|
|
3267
|
-
for (var prop of __getOwnPropSymbols$
|
|
3268
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3388
|
+
if (source != null && __getOwnPropSymbols$h)
|
|
3389
|
+
for (var prop of __getOwnPropSymbols$h(source)) {
|
|
3390
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
|
|
3269
3391
|
target[prop] = source[prop];
|
|
3270
3392
|
}
|
|
3271
3393
|
return target;
|
|
3272
3394
|
};
|
|
3273
3395
|
const SearchInput = (props) => {
|
|
3274
|
-
const _a = props, { onChange, debounceWait = 300 } = _a, restProps = __objRest$
|
|
3396
|
+
const _a = props, { onChange, debounceWait = 300 } = _a, restProps = __objRest$6(_a, ["onChange", "debounceWait"]);
|
|
3275
3397
|
const onSearch = ___default.default.debounce(onChange, debounceWait);
|
|
3276
3398
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
3277
3399
|
Input,
|
|
3278
|
-
__spreadValues$
|
|
3400
|
+
__spreadValues$h({
|
|
3279
3401
|
style: { width: 276 },
|
|
3280
3402
|
prefix: /* @__PURE__ */ React__namespace.default.createElement(icons.SearchOutlined, null),
|
|
3281
3403
|
onChange: (e) => onSearch(e.target.value)
|
|
@@ -3283,19 +3405,19 @@
|
|
|
3283
3405
|
);
|
|
3284
3406
|
};
|
|
3285
3407
|
|
|
3286
|
-
var __defProp$
|
|
3287
|
-
var __getOwnPropSymbols$
|
|
3288
|
-
var __hasOwnProp$
|
|
3289
|
-
var __propIsEnum$
|
|
3290
|
-
var __defNormalProp$
|
|
3291
|
-
var __spreadValues$
|
|
3408
|
+
var __defProp$g = Object.defineProperty;
|
|
3409
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
3410
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
3411
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
3412
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3413
|
+
var __spreadValues$g = (a, b) => {
|
|
3292
3414
|
for (var prop in b || (b = {}))
|
|
3293
|
-
if (__hasOwnProp$
|
|
3294
|
-
__defNormalProp$
|
|
3295
|
-
if (__getOwnPropSymbols$
|
|
3296
|
-
for (var prop of __getOwnPropSymbols$
|
|
3297
|
-
if (__propIsEnum$
|
|
3298
|
-
__defNormalProp$
|
|
3415
|
+
if (__hasOwnProp$g.call(b, prop))
|
|
3416
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
3417
|
+
if (__getOwnPropSymbols$g)
|
|
3418
|
+
for (var prop of __getOwnPropSymbols$g(b)) {
|
|
3419
|
+
if (__propIsEnum$g.call(b, prop))
|
|
3420
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
3299
3421
|
}
|
|
3300
3422
|
return a;
|
|
3301
3423
|
};
|
|
@@ -3309,7 +3431,7 @@
|
|
|
3309
3431
|
}) => {
|
|
3310
3432
|
const { t } = useParrotTranslation();
|
|
3311
3433
|
if (isEmpty(rawValue)) {
|
|
3312
|
-
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$
|
|
3434
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$g({}, emptyProps));
|
|
3313
3435
|
}
|
|
3314
3436
|
const { value, unit } = formatSeconds(rawValue, decimals);
|
|
3315
3437
|
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value, " "), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, t(`common.${abbreviate ? `${unit}_abbreviation` : unit}`)));
|
|
@@ -3327,7 +3449,7 @@
|
|
|
3327
3449
|
const {
|
|
3328
3450
|
t
|
|
3329
3451
|
} = useParrotTranslation();
|
|
3330
|
-
const pageLength = Math.ceil(count / size);
|
|
3452
|
+
const pageLength = count === 0 ? 1 : Math.ceil(count / size);
|
|
3331
3453
|
const showPrev = current > 1;
|
|
3332
3454
|
const showNext = current * size < count;
|
|
3333
3455
|
const changeValue = React.useCallback(value => {
|
|
@@ -3391,19 +3513,19 @@
|
|
|
3391
3513
|
})));
|
|
3392
3514
|
};
|
|
3393
3515
|
|
|
3394
|
-
var __defProp$
|
|
3395
|
-
var __getOwnPropSymbols$
|
|
3396
|
-
var __hasOwnProp$
|
|
3397
|
-
var __propIsEnum$
|
|
3398
|
-
var __defNormalProp$
|
|
3399
|
-
var __spreadValues$
|
|
3516
|
+
var __defProp$f = Object.defineProperty;
|
|
3517
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
3518
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
3519
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
3520
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3521
|
+
var __spreadValues$f = (a, b) => {
|
|
3400
3522
|
for (var prop in b || (b = {}))
|
|
3401
|
-
if (__hasOwnProp$
|
|
3402
|
-
__defNormalProp$
|
|
3403
|
-
if (__getOwnPropSymbols$
|
|
3404
|
-
for (var prop of __getOwnPropSymbols$
|
|
3405
|
-
if (__propIsEnum$
|
|
3406
|
-
__defNormalProp$
|
|
3523
|
+
if (__hasOwnProp$f.call(b, prop))
|
|
3524
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
3525
|
+
if (__getOwnPropSymbols$f)
|
|
3526
|
+
for (var prop of __getOwnPropSymbols$f(b)) {
|
|
3527
|
+
if (__propIsEnum$f.call(b, prop))
|
|
3528
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
3407
3529
|
}
|
|
3408
3530
|
return a;
|
|
3409
3531
|
};
|
|
@@ -3415,37 +3537,37 @@
|
|
|
3415
3537
|
emptyProps
|
|
3416
3538
|
}) => {
|
|
3417
3539
|
if (isEmpty(rawValue)) {
|
|
3418
|
-
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$
|
|
3540
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$f({}, emptyProps));
|
|
3419
3541
|
}
|
|
3420
3542
|
const { value, unit } = formatSpeed(rawValue, decimals);
|
|
3421
3543
|
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
|
|
3422
3544
|
};
|
|
3423
3545
|
|
|
3424
|
-
var __defProp$
|
|
3425
|
-
var __defProps$
|
|
3426
|
-
var __getOwnPropDescs$
|
|
3427
|
-
var __getOwnPropSymbols$
|
|
3428
|
-
var __hasOwnProp$
|
|
3429
|
-
var __propIsEnum$
|
|
3430
|
-
var __defNormalProp$
|
|
3546
|
+
var __defProp$e = Object.defineProperty;
|
|
3547
|
+
var __defProps$e = Object.defineProperties;
|
|
3548
|
+
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
|
3549
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
3550
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
3551
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
3552
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, {
|
|
3431
3553
|
enumerable: true,
|
|
3432
3554
|
configurable: true,
|
|
3433
3555
|
writable: true,
|
|
3434
3556
|
value
|
|
3435
3557
|
}) : obj[key] = value;
|
|
3436
|
-
var __spreadValues$
|
|
3437
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3438
|
-
if (__getOwnPropSymbols$
|
|
3439
|
-
if (__propIsEnum$
|
|
3558
|
+
var __spreadValues$e = (a, b) => {
|
|
3559
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$e.call(b, prop)) __defNormalProp$e(a, prop, b[prop]);
|
|
3560
|
+
if (__getOwnPropSymbols$e) for (var prop of __getOwnPropSymbols$e(b)) {
|
|
3561
|
+
if (__propIsEnum$e.call(b, prop)) __defNormalProp$e(a, prop, b[prop]);
|
|
3440
3562
|
}
|
|
3441
3563
|
return a;
|
|
3442
3564
|
};
|
|
3443
|
-
var __spreadProps$
|
|
3444
|
-
var __objRest$
|
|
3565
|
+
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
|
3566
|
+
var __objRest$5 = (source, exclude) => {
|
|
3445
3567
|
var target = {};
|
|
3446
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3447
|
-
if (source != null && __getOwnPropSymbols$
|
|
3448
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3568
|
+
for (var prop in source) if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3569
|
+
if (source != null && __getOwnPropSymbols$e) for (var prop of __getOwnPropSymbols$e(source)) {
|
|
3570
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop)) target[prop] = source[prop];
|
|
3449
3571
|
}
|
|
3450
3572
|
return target;
|
|
3451
3573
|
};
|
|
@@ -3461,46 +3583,46 @@
|
|
|
3461
3583
|
containerClassname,
|
|
3462
3584
|
showStepCount
|
|
3463
3585
|
} = _a,
|
|
3464
|
-
stepsProps = __objRest$
|
|
3586
|
+
stepsProps = __objRest$5(_a, ["stepsConfig", "containerClassname", "showStepCount"]);
|
|
3465
3587
|
const titleWithCount = (_step, count) => /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, showStepCount ? /* @__PURE__ */React__namespace.default.createElement("span", {
|
|
3466
3588
|
className: "step-count"
|
|
3467
3589
|
}, count) : null, _step.title);
|
|
3468
3590
|
return /* @__PURE__ */React__namespace.default.createElement(StepsContainer, {
|
|
3469
3591
|
className: containerClassname
|
|
3470
|
-
}, /* @__PURE__ */React__namespace.default.createElement(antd.Steps, __spreadProps$
|
|
3592
|
+
}, /* @__PURE__ */React__namespace.default.createElement(antd.Steps, __spreadProps$e(__spreadValues$e({}, stepsProps), {
|
|
3471
3593
|
type: "default"
|
|
3472
|
-
}), (stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */React__namespace.default.createElement(antd.Steps.Step, __spreadProps$
|
|
3594
|
+
}), (stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */React__namespace.default.createElement(antd.Steps.Step, __spreadProps$e(__spreadValues$e({
|
|
3473
3595
|
key: index
|
|
3474
3596
|
}, step), {
|
|
3475
3597
|
title: titleWithCount(step, index + 1)
|
|
3476
3598
|
}))) : props.children));
|
|
3477
3599
|
};
|
|
3478
3600
|
|
|
3479
|
-
var __defProp$
|
|
3480
|
-
var __defProps$
|
|
3481
|
-
var __getOwnPropDescs$
|
|
3482
|
-
var __getOwnPropSymbols$
|
|
3483
|
-
var __hasOwnProp$
|
|
3484
|
-
var __propIsEnum$
|
|
3485
|
-
var __defNormalProp$
|
|
3601
|
+
var __defProp$d = Object.defineProperty;
|
|
3602
|
+
var __defProps$d = Object.defineProperties;
|
|
3603
|
+
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
3604
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
3605
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
3606
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
3607
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, {
|
|
3486
3608
|
enumerable: true,
|
|
3487
3609
|
configurable: true,
|
|
3488
3610
|
writable: true,
|
|
3489
3611
|
value
|
|
3490
3612
|
}) : obj[key] = value;
|
|
3491
|
-
var __spreadValues$
|
|
3492
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3493
|
-
if (__getOwnPropSymbols$
|
|
3494
|
-
if (__propIsEnum$
|
|
3613
|
+
var __spreadValues$d = (a, b) => {
|
|
3614
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$d.call(b, prop)) __defNormalProp$d(a, prop, b[prop]);
|
|
3615
|
+
if (__getOwnPropSymbols$d) for (var prop of __getOwnPropSymbols$d(b)) {
|
|
3616
|
+
if (__propIsEnum$d.call(b, prop)) __defNormalProp$d(a, prop, b[prop]);
|
|
3495
3617
|
}
|
|
3496
3618
|
return a;
|
|
3497
3619
|
};
|
|
3498
|
-
var __spreadProps$
|
|
3499
|
-
var __objRest$
|
|
3620
|
+
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
|
3621
|
+
var __objRest$4 = (source, exclude) => {
|
|
3500
3622
|
var target = {};
|
|
3501
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3502
|
-
if (source != null && __getOwnPropSymbols$
|
|
3503
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3623
|
+
for (var prop in source) if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3624
|
+
if (source != null && __getOwnPropSymbols$d) for (var prop of __getOwnPropSymbols$d(source)) {
|
|
3625
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop)) target[prop] = source[prop];
|
|
3504
3626
|
}
|
|
3505
3627
|
return target;
|
|
3506
3628
|
};
|
|
@@ -3512,7 +3634,7 @@
|
|
|
3512
3634
|
className,
|
|
3513
3635
|
checked
|
|
3514
3636
|
} = _b,
|
|
3515
|
-
props = __objRest$
|
|
3637
|
+
props = __objRest$4(_b, ["children", "className", "checked"]);
|
|
3516
3638
|
const Content = /*#__PURE__*/react.styled('span')({
|
|
3517
3639
|
name: "Content",
|
|
3518
3640
|
class: "c1to9vb9",
|
|
@@ -3520,7 +3642,7 @@
|
|
|
3520
3642
|
});
|
|
3521
3643
|
const classNames = [className, SwitchStyle, "switch"];
|
|
3522
3644
|
if (props.size === "large") classNames.push("ant-switch-large");
|
|
3523
|
-
return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement(antd.Switch, __spreadProps$
|
|
3645
|
+
return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement(antd.Switch, __spreadProps$d(__spreadValues$d({
|
|
3524
3646
|
className: core.cx(...classNames),
|
|
3525
3647
|
checked: checked || false
|
|
3526
3648
|
}, props), {
|
|
@@ -3606,26 +3728,26 @@
|
|
|
3606
3728
|
}));
|
|
3607
3729
|
};
|
|
3608
3730
|
|
|
3609
|
-
var __defProp$
|
|
3610
|
-
var __defProps$
|
|
3611
|
-
var __getOwnPropDescs$
|
|
3612
|
-
var __getOwnPropSymbols$
|
|
3613
|
-
var __hasOwnProp$
|
|
3614
|
-
var __propIsEnum$
|
|
3615
|
-
var __defNormalProp$
|
|
3731
|
+
var __defProp$c = Object.defineProperty;
|
|
3732
|
+
var __defProps$c = Object.defineProperties;
|
|
3733
|
+
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
3734
|
+
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
3735
|
+
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
3736
|
+
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
3737
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, {
|
|
3616
3738
|
enumerable: true,
|
|
3617
3739
|
configurable: true,
|
|
3618
3740
|
writable: true,
|
|
3619
3741
|
value
|
|
3620
3742
|
}) : obj[key] = value;
|
|
3621
|
-
var __spreadValues$
|
|
3622
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3623
|
-
if (__getOwnPropSymbols$
|
|
3624
|
-
if (__propIsEnum$
|
|
3743
|
+
var __spreadValues$c = (a, b) => {
|
|
3744
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$c.call(b, prop)) __defNormalProp$c(a, prop, b[prop]);
|
|
3745
|
+
if (__getOwnPropSymbols$c) for (var prop of __getOwnPropSymbols$c(b)) {
|
|
3746
|
+
if (__propIsEnum$c.call(b, prop)) __defNormalProp$c(a, prop, b[prop]);
|
|
3625
3747
|
}
|
|
3626
3748
|
return a;
|
|
3627
3749
|
};
|
|
3628
|
-
var __spreadProps$
|
|
3750
|
+
var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
|
|
3629
3751
|
const TableContainerStyle = "t1upn1sz";
|
|
3630
3752
|
const tableStyleCover = "tta5kd2";
|
|
3631
3753
|
const Table = props => {
|
|
@@ -3652,7 +3774,7 @@
|
|
|
3652
3774
|
const orderRef = React.useRef(null);
|
|
3653
3775
|
const hasScrollBard = useTableBodyHasScrollBar(wrapper, dataSource);
|
|
3654
3776
|
const _columns = React.useMemo(() => columns.map(column => {
|
|
3655
|
-
const _column = __spreadValues$
|
|
3777
|
+
const _column = __spreadValues$c({}, column);
|
|
3656
3778
|
if (_column.sorter && typeof _column.title !== "function") {
|
|
3657
3779
|
_column.title = /* @__PURE__ */React__namespace.default.createElement(ColumnTitle, {
|
|
3658
3780
|
title: column.title,
|
|
@@ -3689,12 +3811,12 @@
|
|
|
3689
3811
|
onSorterChange == null ? void 0 : onSorterChange(orderRef.current, sorter.columnKey);
|
|
3690
3812
|
}
|
|
3691
3813
|
},
|
|
3692
|
-
onRow: (record, index) => __spreadValues$
|
|
3814
|
+
onRow: (record, index) => __spreadValues$c({
|
|
3693
3815
|
onClick: evt => onRowClick == null ? void 0 : onRowClick(record, index, evt)
|
|
3694
3816
|
}, onRow == null ? void 0 : onRow(record, index)),
|
|
3695
3817
|
rowClassName,
|
|
3696
3818
|
scroll,
|
|
3697
|
-
rowSelection: rowSelection && __spreadProps$
|
|
3819
|
+
rowSelection: rowSelection && __spreadProps$c(__spreadValues$c({}, rowSelection), {
|
|
3698
3820
|
columnWidth: 32
|
|
3699
3821
|
}),
|
|
3700
3822
|
showSorterTooltip: false
|
|
@@ -3756,33 +3878,33 @@
|
|
|
3756
3878
|
return sortArr;
|
|
3757
3879
|
};
|
|
3758
3880
|
|
|
3759
|
-
var __defProp$
|
|
3760
|
-
var __defProps$
|
|
3761
|
-
var __getOwnPropDescs$
|
|
3762
|
-
var __getOwnPropSymbols$
|
|
3763
|
-
var __hasOwnProp$
|
|
3764
|
-
var __propIsEnum$
|
|
3765
|
-
var __defNormalProp$
|
|
3766
|
-
var __spreadValues$
|
|
3881
|
+
var __defProp$b = Object.defineProperty;
|
|
3882
|
+
var __defProps$b = Object.defineProperties;
|
|
3883
|
+
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
|
3884
|
+
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
3885
|
+
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
3886
|
+
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
3887
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3888
|
+
var __spreadValues$b = (a, b) => {
|
|
3767
3889
|
for (var prop in b || (b = {}))
|
|
3768
|
-
if (__hasOwnProp$
|
|
3769
|
-
__defNormalProp$
|
|
3770
|
-
if (__getOwnPropSymbols$
|
|
3771
|
-
for (var prop of __getOwnPropSymbols$
|
|
3772
|
-
if (__propIsEnum$
|
|
3773
|
-
__defNormalProp$
|
|
3890
|
+
if (__hasOwnProp$b.call(b, prop))
|
|
3891
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
3892
|
+
if (__getOwnPropSymbols$b)
|
|
3893
|
+
for (var prop of __getOwnPropSymbols$b(b)) {
|
|
3894
|
+
if (__propIsEnum$b.call(b, prop))
|
|
3895
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
3774
3896
|
}
|
|
3775
3897
|
return a;
|
|
3776
3898
|
};
|
|
3777
|
-
var __spreadProps$
|
|
3778
|
-
var __objRest$
|
|
3899
|
+
var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
|
|
3900
|
+
var __objRest$3 = (source, exclude) => {
|
|
3779
3901
|
var target = {};
|
|
3780
3902
|
for (var prop in source)
|
|
3781
|
-
if (__hasOwnProp$
|
|
3903
|
+
if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3782
3904
|
target[prop] = source[prop];
|
|
3783
|
-
if (source != null && __getOwnPropSymbols$
|
|
3784
|
-
for (var prop of __getOwnPropSymbols$
|
|
3785
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3905
|
+
if (source != null && __getOwnPropSymbols$b)
|
|
3906
|
+
for (var prop of __getOwnPropSymbols$b(source)) {
|
|
3907
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
|
|
3786
3908
|
target[prop] = source[prop];
|
|
3787
3909
|
}
|
|
3788
3910
|
return target;
|
|
@@ -3798,7 +3920,7 @@
|
|
|
3798
3920
|
const _a = buttonProps || {}, {
|
|
3799
3921
|
disabled: disabledFromProp,
|
|
3800
3922
|
onClick
|
|
3801
|
-
} = _a, restButtonProps = __objRest$
|
|
3923
|
+
} = _a, restButtonProps = __objRest$3(_a, [
|
|
3802
3924
|
"disabled",
|
|
3803
3925
|
"onClick"
|
|
3804
3926
|
]);
|
|
@@ -3823,9 +3945,9 @@
|
|
|
3823
3945
|
if (!columns.length) {
|
|
3824
3946
|
return null;
|
|
3825
3947
|
}
|
|
3826
|
-
return CustomizedButton ? /* @__PURE__ */ React__namespace.default.createElement(CustomizedButton, __spreadValues$
|
|
3948
|
+
return CustomizedButton ? /* @__PURE__ */ React__namespace.default.createElement(CustomizedButton, __spreadValues$b({}, props)) : /* @__PURE__ */ React__namespace.default.createElement(AddRowButtonWrapper, { className }, /* @__PURE__ */ React__namespace.default.createElement(
|
|
3827
3949
|
Button,
|
|
3828
|
-
__spreadProps$
|
|
3950
|
+
__spreadProps$b(__spreadValues$b({}, restButtonProps), {
|
|
3829
3951
|
type: restButtonProps.type || "ordinary",
|
|
3830
3952
|
size: restButtonProps.size || "small",
|
|
3831
3953
|
icon: restButtonProps.icon || /* @__PURE__ */ React__namespace.default.createElement(icons.PlusOutlined, null),
|
|
@@ -3899,7 +4021,7 @@
|
|
|
3899
4021
|
},
|
|
3900
4022
|
[onChange]
|
|
3901
4023
|
);
|
|
3902
|
-
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
4024
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Checkbox, { onChange: _onChange });
|
|
3903
4025
|
};
|
|
3904
4026
|
const CheckboxColumnBodyCell = ({ data, column, index, onChange }) => {
|
|
3905
4027
|
const value = data[index][column.key] === void 0 ? column.defaultValue : data[index][column.key];
|
|
@@ -3911,7 +4033,7 @@
|
|
|
3911
4033
|
);
|
|
3912
4034
|
const defaultChecked = column.defaultValue;
|
|
3913
4035
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
3914
|
-
|
|
4036
|
+
Checkbox,
|
|
3915
4037
|
{
|
|
3916
4038
|
checked: value,
|
|
3917
4039
|
onChange: _onChange,
|
|
@@ -3920,25 +4042,25 @@
|
|
|
3920
4042
|
);
|
|
3921
4043
|
};
|
|
3922
4044
|
|
|
3923
|
-
var __defProp$
|
|
3924
|
-
var __defProps$
|
|
3925
|
-
var __getOwnPropDescs$
|
|
3926
|
-
var __getOwnPropSymbols$
|
|
3927
|
-
var __hasOwnProp$
|
|
3928
|
-
var __propIsEnum$
|
|
3929
|
-
var __defNormalProp$
|
|
3930
|
-
var __spreadValues$
|
|
4045
|
+
var __defProp$a = Object.defineProperty;
|
|
4046
|
+
var __defProps$a = Object.defineProperties;
|
|
4047
|
+
var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
|
|
4048
|
+
var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
|
|
4049
|
+
var __hasOwnProp$a = Object.prototype.hasOwnProperty;
|
|
4050
|
+
var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
|
|
4051
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4052
|
+
var __spreadValues$a = (a, b) => {
|
|
3931
4053
|
for (var prop in b || (b = {}))
|
|
3932
|
-
if (__hasOwnProp$
|
|
3933
|
-
__defNormalProp$
|
|
3934
|
-
if (__getOwnPropSymbols$
|
|
3935
|
-
for (var prop of __getOwnPropSymbols$
|
|
3936
|
-
if (__propIsEnum$
|
|
3937
|
-
__defNormalProp$
|
|
4054
|
+
if (__hasOwnProp$a.call(b, prop))
|
|
4055
|
+
__defNormalProp$a(a, prop, b[prop]);
|
|
4056
|
+
if (__getOwnPropSymbols$a)
|
|
4057
|
+
for (var prop of __getOwnPropSymbols$a(b)) {
|
|
4058
|
+
if (__propIsEnum$a.call(b, prop))
|
|
4059
|
+
__defNormalProp$a(a, prop, b[prop]);
|
|
3938
4060
|
}
|
|
3939
4061
|
return a;
|
|
3940
4062
|
};
|
|
3941
|
-
var __spreadProps$
|
|
4063
|
+
var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
|
|
3942
4064
|
const InputPassword = (props) => {
|
|
3943
4065
|
const [showPassword, setShowPassword] = React.useState(false);
|
|
3944
4066
|
React.useEffect(() => {
|
|
@@ -3953,8 +4075,8 @@
|
|
|
3953
4075
|
};
|
|
3954
4076
|
const inputType = showPassword ? "text" : "password";
|
|
3955
4077
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
3956
|
-
|
|
3957
|
-
__spreadProps$
|
|
4078
|
+
Input,
|
|
4079
|
+
__spreadProps$a(__spreadValues$a({}, props), {
|
|
3958
4080
|
type: inputType,
|
|
3959
4081
|
suffix: showPassword ? /* @__PURE__ */ React__namespace.default.createElement(
|
|
3960
4082
|
icons.EyeOutlined,
|
|
@@ -3974,9 +4096,9 @@
|
|
|
3974
4096
|
};
|
|
3975
4097
|
const CustomInput = (props) => {
|
|
3976
4098
|
if (props.type === "password") {
|
|
3977
|
-
return /* @__PURE__ */ React__namespace.default.createElement(InputPassword, __spreadValues$
|
|
4099
|
+
return /* @__PURE__ */ React__namespace.default.createElement(InputPassword, __spreadValues$a({}, props));
|
|
3978
4100
|
}
|
|
3979
|
-
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
4101
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Input, __spreadValues$a({}, props));
|
|
3980
4102
|
};
|
|
3981
4103
|
const InputColumnHeaderCell = ({ disabled, column, onChange, onBlur, onVisibleChange }) => {
|
|
3982
4104
|
const _onChange = (e) => {
|
|
@@ -4004,7 +4126,8 @@
|
|
|
4004
4126
|
disabled,
|
|
4005
4127
|
onChange,
|
|
4006
4128
|
onBlur,
|
|
4007
|
-
visible
|
|
4129
|
+
visible,
|
|
4130
|
+
error
|
|
4008
4131
|
}) => {
|
|
4009
4132
|
const placeHolderValue = column.type === "password" ? "" : latestData[index][column.key];
|
|
4010
4133
|
const _onChange = (e) => {
|
|
@@ -4022,7 +4145,8 @@
|
|
|
4022
4145
|
placeholder: placeHolderValue || column.placeholder,
|
|
4023
4146
|
onChange: _onChange,
|
|
4024
4147
|
onBlur,
|
|
4025
|
-
visible
|
|
4148
|
+
visible,
|
|
4149
|
+
error
|
|
4026
4150
|
}
|
|
4027
4151
|
);
|
|
4028
4152
|
};
|
|
@@ -4098,25 +4222,25 @@
|
|
|
4098
4222
|
return ValidateTriggerType2;
|
|
4099
4223
|
})(ValidateTriggerType || {});
|
|
4100
4224
|
|
|
4101
|
-
var __defProp$
|
|
4102
|
-
var __defProps$
|
|
4103
|
-
var __getOwnPropDescs$
|
|
4104
|
-
var __getOwnPropSymbols$
|
|
4105
|
-
var __hasOwnProp$
|
|
4106
|
-
var __propIsEnum$
|
|
4107
|
-
var __defNormalProp$
|
|
4108
|
-
var __spreadValues$
|
|
4225
|
+
var __defProp$9 = Object.defineProperty;
|
|
4226
|
+
var __defProps$9 = Object.defineProperties;
|
|
4227
|
+
var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
|
|
4228
|
+
var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
|
|
4229
|
+
var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
|
|
4230
|
+
var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
|
|
4231
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4232
|
+
var __spreadValues$9 = (a, b) => {
|
|
4109
4233
|
for (var prop in b || (b = {}))
|
|
4110
|
-
if (__hasOwnProp$
|
|
4111
|
-
__defNormalProp$
|
|
4112
|
-
if (__getOwnPropSymbols$
|
|
4113
|
-
for (var prop of __getOwnPropSymbols$
|
|
4114
|
-
if (__propIsEnum$
|
|
4115
|
-
__defNormalProp$
|
|
4234
|
+
if (__hasOwnProp$9.call(b, prop))
|
|
4235
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
4236
|
+
if (__getOwnPropSymbols$9)
|
|
4237
|
+
for (var prop of __getOwnPropSymbols$9(b)) {
|
|
4238
|
+
if (__propIsEnum$9.call(b, prop))
|
|
4239
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
4116
4240
|
}
|
|
4117
4241
|
return a;
|
|
4118
4242
|
};
|
|
4119
|
-
var __spreadProps$
|
|
4243
|
+
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
|
|
4120
4244
|
const TableFormBodyCell = (props) => {
|
|
4121
4245
|
const {
|
|
4122
4246
|
column,
|
|
@@ -4129,16 +4253,26 @@
|
|
|
4129
4253
|
disabled,
|
|
4130
4254
|
onChange,
|
|
4131
4255
|
onBlur,
|
|
4132
|
-
validateAll
|
|
4256
|
+
validateAll,
|
|
4257
|
+
error
|
|
4133
4258
|
} = props;
|
|
4134
4259
|
const [validateResult, setValidateResult] = React.useState();
|
|
4135
4260
|
const isTouched = React.useRef(false);
|
|
4136
4261
|
const width = typeof column.width === "number" ? column.width + "px" : column.width;
|
|
4262
|
+
const isCellErrorStyle = Boolean((validateResult == null ? void 0 : validateResult.isError) || isRowError);
|
|
4263
|
+
React.useEffect(() => {
|
|
4264
|
+
setValidateResult(
|
|
4265
|
+
error ? {
|
|
4266
|
+
msg: error,
|
|
4267
|
+
isError: true
|
|
4268
|
+
} : void 0
|
|
4269
|
+
);
|
|
4270
|
+
}, [error]);
|
|
4137
4271
|
const triggerValidate = React.useCallback(
|
|
4138
4272
|
(currentValue) => {
|
|
4139
4273
|
var _a;
|
|
4140
4274
|
const value = currentValue || data[rowIndex][column.key];
|
|
4141
|
-
const rowData = __spreadProps$
|
|
4275
|
+
const rowData = __spreadProps$9(__spreadValues$9({}, data[rowIndex]), { [column.key]: value });
|
|
4142
4276
|
const rowValidateRes = getRowValidateResult(rowData);
|
|
4143
4277
|
if (rowValidateRes) {
|
|
4144
4278
|
return;
|
|
@@ -4161,7 +4295,7 @@
|
|
|
4161
4295
|
}, [validateAll, triggerValidate]);
|
|
4162
4296
|
const _onChange = (value, data2) => {
|
|
4163
4297
|
const newData = data2.map(
|
|
4164
|
-
(row, i) => i === rowIndex ? __spreadProps$
|
|
4298
|
+
(row, i) => i === rowIndex ? __spreadProps$9(__spreadValues$9({}, row), { [column.key]: value }) : row
|
|
4165
4299
|
);
|
|
4166
4300
|
onChange == null ? void 0 : onChange(newData, rowIndex, column.key);
|
|
4167
4301
|
if (validateTriggerType === ValidateTriggerType.Normal && isTouched.current || validateTriggerType === ValidateTriggerType.Aggressive) {
|
|
@@ -4186,6 +4320,7 @@
|
|
|
4186
4320
|
latestData,
|
|
4187
4321
|
column,
|
|
4188
4322
|
visible: props.visible,
|
|
4323
|
+
error: isCellErrorStyle,
|
|
4189
4324
|
onChange: (val) => {
|
|
4190
4325
|
_onChange(val, data);
|
|
4191
4326
|
},
|
|
@@ -4203,7 +4338,7 @@
|
|
|
4203
4338
|
},
|
|
4204
4339
|
onBlur: _onBlur,
|
|
4205
4340
|
rowIndex,
|
|
4206
|
-
error:
|
|
4341
|
+
error: isCellErrorStyle
|
|
4207
4342
|
}) : renderDefaultComponent();
|
|
4208
4343
|
const CellDescription = React.useMemo(() => {
|
|
4209
4344
|
var _a;
|
|
@@ -4229,7 +4364,7 @@
|
|
|
4229
4364
|
/* @__PURE__ */ React__namespace.default.createElement(
|
|
4230
4365
|
FormItem,
|
|
4231
4366
|
{
|
|
4232
|
-
validateStatus:
|
|
4367
|
+
validateStatus: isCellErrorStyle ? "error" : "",
|
|
4233
4368
|
message: isRowError ? "" : validateResult == null ? void 0 : validateResult.msg
|
|
4234
4369
|
},
|
|
4235
4370
|
Cell
|
|
@@ -4238,26 +4373,55 @@
|
|
|
4238
4373
|
);
|
|
4239
4374
|
};
|
|
4240
4375
|
|
|
4241
|
-
var __defProp$
|
|
4242
|
-
var __defProps$
|
|
4243
|
-
var __getOwnPropDescs$
|
|
4244
|
-
var __getOwnPropSymbols$
|
|
4245
|
-
var __hasOwnProp$
|
|
4246
|
-
var __propIsEnum$
|
|
4247
|
-
var __defNormalProp$
|
|
4248
|
-
var __spreadValues$
|
|
4376
|
+
var __defProp$8 = Object.defineProperty;
|
|
4377
|
+
var __defProps$8 = Object.defineProperties;
|
|
4378
|
+
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
|
4379
|
+
var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
|
|
4380
|
+
var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
|
|
4381
|
+
var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
|
|
4382
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4383
|
+
var __spreadValues$8 = (a, b) => {
|
|
4249
4384
|
for (var prop in b || (b = {}))
|
|
4250
|
-
if (__hasOwnProp$
|
|
4251
|
-
__defNormalProp$
|
|
4252
|
-
if (__getOwnPropSymbols$
|
|
4253
|
-
for (var prop of __getOwnPropSymbols$
|
|
4254
|
-
if (__propIsEnum$
|
|
4255
|
-
__defNormalProp$
|
|
4385
|
+
if (__hasOwnProp$8.call(b, prop))
|
|
4386
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
4387
|
+
if (__getOwnPropSymbols$8)
|
|
4388
|
+
for (var prop of __getOwnPropSymbols$8(b)) {
|
|
4389
|
+
if (__propIsEnum$8.call(b, prop))
|
|
4390
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
4256
4391
|
}
|
|
4257
4392
|
return a;
|
|
4258
4393
|
};
|
|
4259
|
-
var __spreadProps$
|
|
4394
|
+
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
4395
|
+
const TableFormRowDeleteAction = (props) => {
|
|
4396
|
+
var _a, _b, _c, _d;
|
|
4397
|
+
const { deleteConfig, row, updateData, rowIndex, data } = props;
|
|
4398
|
+
const { t } = useParrotTranslation();
|
|
4399
|
+
if (typeof (row == null ? void 0 : row.deletable) === "function" && !row.deletable(rowIndex, data)) {
|
|
4400
|
+
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null);
|
|
4401
|
+
}
|
|
4402
|
+
const disableActionsFromRowConfig = typeof (row == null ? void 0 : row.disableActions) === "object" ? row.disableActions : (_b = (_a = row == null ? void 0 : row.disableActions) == null ? void 0 : _a.call(row, rowIndex, data)) != null ? _b : [];
|
|
4403
|
+
const isRowDeleteDisabled = (_d = disableActionsFromRowConfig.includes("delete") || ((_c = deleteConfig == null ? void 0 : deleteConfig.specifyRowDeleteDisabled) == null ? void 0 : _c.call(deleteConfig, rowIndex, data))) != null ? _d : false;
|
|
4404
|
+
const DeleteIcon = /* @__PURE__ */ React__namespace.default.createElement(
|
|
4405
|
+
Icon,
|
|
4406
|
+
{
|
|
4407
|
+
"data-testid": "eagle-table-form-row-action",
|
|
4408
|
+
className: core.cx("delete-row-icon", isRowDeleteDisabled && "disabled"),
|
|
4409
|
+
src: iconsReact.XmarkRemove16SecondaryIcon,
|
|
4410
|
+
hoverSrc: isRowDeleteDisabled ? void 0 : iconsReact.XmarkRemove16RegularRedIcon,
|
|
4411
|
+
onClick: () => {
|
|
4412
|
+
if (isRowDeleteDisabled)
|
|
4413
|
+
return;
|
|
4414
|
+
const newData = [...data];
|
|
4415
|
+
newData.splice(rowIndex, 1);
|
|
4416
|
+
updateData(newData);
|
|
4417
|
+
}
|
|
4418
|
+
}
|
|
4419
|
+
);
|
|
4420
|
+
const DeleteAction = isRowDeleteDisabled ? DeleteIcon : /* @__PURE__ */ React__namespace.default.createElement(Tooltip, { title: t("components.remove") }, DeleteIcon);
|
|
4421
|
+
return DeleteAction;
|
|
4422
|
+
};
|
|
4260
4423
|
const TableFormRow = (props) => {
|
|
4424
|
+
var _a;
|
|
4261
4425
|
const {
|
|
4262
4426
|
data,
|
|
4263
4427
|
columns,
|
|
@@ -4270,55 +4434,35 @@
|
|
|
4270
4434
|
provided,
|
|
4271
4435
|
snapshot,
|
|
4272
4436
|
validateTriggerType = ValidateTriggerType.Normal,
|
|
4437
|
+
row,
|
|
4438
|
+
errors = [],
|
|
4273
4439
|
updateData,
|
|
4274
4440
|
onBodyBlur,
|
|
4275
4441
|
renderRowDescription,
|
|
4276
|
-
rowValidator,
|
|
4277
4442
|
validateAll
|
|
4278
4443
|
} = props;
|
|
4279
|
-
const { t } = useParrotTranslation();
|
|
4280
4444
|
const rowData = data[rowIndex];
|
|
4281
|
-
const
|
|
4282
|
-
const
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
);
|
|
4290
|
-
const RowActions = React.useMemo(() => {
|
|
4291
|
-
var _a;
|
|
4292
|
-
const isRowDeleteDisabled = (_a = deleteConfig == null ? void 0 : deleteConfig.specifyRowDeleteDisabled) == null ? void 0 : _a.call(
|
|
4293
|
-
deleteConfig,
|
|
4294
|
-
rowIndex,
|
|
4295
|
-
data
|
|
4296
|
-
);
|
|
4297
|
-
const DeleteIcon = /* @__PURE__ */ React__namespace.default.createElement(
|
|
4298
|
-
Icon,
|
|
4299
|
-
{
|
|
4300
|
-
className: core.cx("delete-row-icon", isRowDeleteDisabled && "disabled"),
|
|
4301
|
-
src: iconsReact.XmarkRemove16SecondaryIcon,
|
|
4302
|
-
hoverSrc: isRowDeleteDisabled ? void 0 : iconsReact.XmarkRemove16RegularRedIcon,
|
|
4303
|
-
onClick: () => {
|
|
4304
|
-
if (isRowDeleteDisabled)
|
|
4305
|
-
return;
|
|
4306
|
-
deleteRow(rowIndex, data);
|
|
4307
|
-
}
|
|
4308
|
-
}
|
|
4309
|
-
);
|
|
4310
|
-
const FinalRenderIcon = isRowDeleteDisabled ? DeleteIcon : /* @__PURE__ */ React__namespace.default.createElement(Tooltip, { title: t("components.remove") }, DeleteIcon);
|
|
4311
|
-
return (deleteConfig == null ? void 0 : deleteConfig.deletable) ? [FinalRenderIcon] : void 0;
|
|
4312
|
-
}, [deleteConfig, rowIndex, data, t, deleteRow]);
|
|
4445
|
+
const errorFromProps = errors[rowIndex];
|
|
4446
|
+
const rowLevelError = typeof errorFromProps === "string" ? errorFromProps : void 0;
|
|
4447
|
+
const [rowError, setRowError] = React.useState(rowLevelError);
|
|
4448
|
+
const rowValidator = (row == null ? void 0 : row.validator) || props.rowValidator;
|
|
4449
|
+
const cellsLevelError = errorFromProps && typeof errorFromProps === "object" ? errorFromProps : null;
|
|
4450
|
+
React.useEffect(() => {
|
|
4451
|
+
setRowError(rowLevelError);
|
|
4452
|
+
}, [rowLevelError]);
|
|
4453
|
+
const rowDeletable = typeof (row == null ? void 0 : row.deletable) === "boolean" ? row.deletable : (_a = typeof (row == null ? void 0 : row.deletable) === "function" || (deleteConfig == null ? void 0 : deleteConfig.deletable)) != null ? _a : false;
|
|
4313
4454
|
const getRowValidateResult = React.useCallback(
|
|
4314
4455
|
(rowData2) => {
|
|
4315
|
-
|
|
4456
|
+
if (!rowValidator)
|
|
4457
|
+
return rowLevelError;
|
|
4458
|
+
const result = rowValidator(rowIndex, rowData2);
|
|
4316
4459
|
setRowError(result);
|
|
4317
4460
|
return result;
|
|
4318
4461
|
},
|
|
4319
|
-
[rowValidator, rowIndex]
|
|
4462
|
+
[rowValidator, rowIndex, rowLevelError]
|
|
4320
4463
|
);
|
|
4321
4464
|
const Cells = columns.map((col) => {
|
|
4465
|
+
const cellError = cellsLevelError == null ? void 0 : cellsLevelError[col.key];
|
|
4322
4466
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
4323
4467
|
TableFormBodyCell,
|
|
4324
4468
|
{
|
|
@@ -4334,12 +4478,13 @@
|
|
|
4334
4478
|
validateTriggerType,
|
|
4335
4479
|
isRowError: !!rowError,
|
|
4336
4480
|
getRowValidateResult,
|
|
4337
|
-
validateAll
|
|
4481
|
+
validateAll,
|
|
4482
|
+
error: cellError
|
|
4338
4483
|
}
|
|
4339
4484
|
);
|
|
4340
4485
|
});
|
|
4341
4486
|
const DraggableHandle = React.useMemo(
|
|
4342
|
-
() => draggable && provided ? /* @__PURE__ */ React__namespace.default.createElement(DraggableHandleWrapper, __spreadValues$
|
|
4487
|
+
() => draggable && provided ? /* @__PURE__ */ React__namespace.default.createElement(DraggableHandleWrapper, __spreadValues$8({}, provided.dragHandleProps), /* @__PURE__ */ React__namespace.default.createElement(
|
|
4343
4488
|
Icon,
|
|
4344
4489
|
{
|
|
4345
4490
|
src: iconsReact.HandlePoint816SecondaryIcon,
|
|
@@ -4349,22 +4494,35 @@
|
|
|
4349
4494
|
[draggable, provided]
|
|
4350
4495
|
);
|
|
4351
4496
|
const RowDescription = React.useMemo(() => {
|
|
4352
|
-
const
|
|
4497
|
+
const rowDescFuncParams = {
|
|
4353
4498
|
rowIndex,
|
|
4354
4499
|
rowData,
|
|
4355
4500
|
latestData
|
|
4356
|
-
}
|
|
4357
|
-
|
|
4358
|
-
|
|
4501
|
+
};
|
|
4502
|
+
const DescriptionResult = typeof (row == null ? void 0 : row.descriptions) == "object" ? row.descriptions[rowIndex] : typeof (row == null ? void 0 : row.customizedDescription) === "function" ? row.customizedDescription(rowDescFuncParams) : (renderRowDescription == null ? void 0 : renderRowDescription(rowDescFuncParams)) || null;
|
|
4503
|
+
return typeof DescriptionResult === "string" ? /* @__PURE__ */ React__namespace.default.createElement("p", { className: core.cx(Typo.Label.l4_regular, "row-description") }, DescriptionResult) : DescriptionResult;
|
|
4504
|
+
}, [rowIndex, rowData, latestData, renderRowDescription, row]);
|
|
4359
4505
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
4360
4506
|
antd.List.Item,
|
|
4361
4507
|
{
|
|
4362
4508
|
key: rowIndex,
|
|
4509
|
+
"data-testid": "eagle-table-form-row-for-test",
|
|
4363
4510
|
className: core.cx(
|
|
4364
4511
|
"eagle-table-form-row",
|
|
4365
4512
|
(snapshot == null ? void 0 : snapshot.isDragging) && "isDragging"
|
|
4366
4513
|
),
|
|
4367
|
-
actions:
|
|
4514
|
+
actions: rowDeletable ? [
|
|
4515
|
+
/* @__PURE__ */ React__namespace.default.createElement(
|
|
4516
|
+
TableFormRowDeleteAction,
|
|
4517
|
+
{
|
|
4518
|
+
data,
|
|
4519
|
+
rowIndex,
|
|
4520
|
+
deleteConfig,
|
|
4521
|
+
row,
|
|
4522
|
+
updateData
|
|
4523
|
+
}
|
|
4524
|
+
)
|
|
4525
|
+
] : void 0
|
|
4368
4526
|
},
|
|
4369
4527
|
DraggableHandle,
|
|
4370
4528
|
Cells,
|
|
@@ -4388,7 +4546,7 @@
|
|
|
4388
4546
|
);
|
|
4389
4547
|
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(
|
|
4390
4548
|
"div",
|
|
4391
|
-
__spreadValues$
|
|
4549
|
+
__spreadValues$8({
|
|
4392
4550
|
className: "draggable-container",
|
|
4393
4551
|
ref: provided.innerRef
|
|
4394
4552
|
}, provided.droppableProps),
|
|
@@ -4399,9 +4557,9 @@
|
|
|
4399
4557
|
key: `draggable-id-${i}`,
|
|
4400
4558
|
index: i
|
|
4401
4559
|
},
|
|
4402
|
-
(provided2, snapshot) => /* @__PURE__ */ React__namespace.default.createElement("div", __spreadValues$
|
|
4560
|
+
(provided2, snapshot) => /* @__PURE__ */ React__namespace.default.createElement("div", __spreadValues$8({ ref: provided2.innerRef }, provided2.draggableProps), /* @__PURE__ */ React__namespace.default.createElement(
|
|
4403
4561
|
TableFormRow,
|
|
4404
|
-
__spreadProps$
|
|
4562
|
+
__spreadProps$8(__spreadValues$8({}, props), {
|
|
4405
4563
|
rowIndex: i,
|
|
4406
4564
|
provided: provided2,
|
|
4407
4565
|
snapshot
|
|
@@ -4409,28 +4567,28 @@
|
|
|
4409
4567
|
))
|
|
4410
4568
|
)),
|
|
4411
4569
|
provided.placeholder
|
|
4412
|
-
))) : /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, data.map((_d, i) => /* @__PURE__ */ React__namespace.default.createElement(TableFormRow, __spreadProps$
|
|
4570
|
+
))) : /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, data.map((_d, i) => /* @__PURE__ */ React__namespace.default.createElement(TableFormRow, __spreadProps$8(__spreadValues$8({}, props), { rowIndex: i, key: `table-row-${i}` }))));
|
|
4413
4571
|
});
|
|
4414
4572
|
|
|
4415
|
-
var __defProp$
|
|
4416
|
-
var __defProps$
|
|
4417
|
-
var __getOwnPropDescs$
|
|
4418
|
-
var __getOwnPropSymbols$
|
|
4419
|
-
var __hasOwnProp$
|
|
4420
|
-
var __propIsEnum$
|
|
4421
|
-
var __defNormalProp$
|
|
4422
|
-
var __spreadValues$
|
|
4573
|
+
var __defProp$7 = Object.defineProperty;
|
|
4574
|
+
var __defProps$7 = Object.defineProperties;
|
|
4575
|
+
var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
|
|
4576
|
+
var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
|
|
4577
|
+
var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
|
|
4578
|
+
var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
|
|
4579
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4580
|
+
var __spreadValues$7 = (a, b) => {
|
|
4423
4581
|
for (var prop in b || (b = {}))
|
|
4424
|
-
if (__hasOwnProp$
|
|
4425
|
-
__defNormalProp$
|
|
4426
|
-
if (__getOwnPropSymbols$
|
|
4427
|
-
for (var prop of __getOwnPropSymbols$
|
|
4428
|
-
if (__propIsEnum$
|
|
4429
|
-
__defNormalProp$
|
|
4582
|
+
if (__hasOwnProp$7.call(b, prop))
|
|
4583
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
4584
|
+
if (__getOwnPropSymbols$7)
|
|
4585
|
+
for (var prop of __getOwnPropSymbols$7(b)) {
|
|
4586
|
+
if (__propIsEnum$7.call(b, prop))
|
|
4587
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
4430
4588
|
}
|
|
4431
4589
|
return a;
|
|
4432
4590
|
};
|
|
4433
|
-
var __spreadProps$
|
|
4591
|
+
var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
|
|
4434
4592
|
const BatchInputListHeaderCell = (props) => {
|
|
4435
4593
|
const { column, disabled, data, disableBatchFilling, onBlur, onChange } = props;
|
|
4436
4594
|
const [errMsg, setErrMsg] = React.useState();
|
|
@@ -4442,7 +4600,7 @@
|
|
|
4442
4600
|
setErrMsg(err || void 0);
|
|
4443
4601
|
const shouldAutoIncrease = column.type !== "password" && column.autoIncrease;
|
|
4444
4602
|
const newData = data.map((cell, rowIndex) => {
|
|
4445
|
-
return __spreadProps$
|
|
4603
|
+
return __spreadProps$7(__spreadValues$7({}, cell), {
|
|
4446
4604
|
[column.key]: shouldAutoIncrease && typeof value === "string" ? increaseLastNumber(value, rowIndex) : value
|
|
4447
4605
|
});
|
|
4448
4606
|
});
|
|
@@ -4459,7 +4617,7 @@
|
|
|
4459
4617
|
const CellComponent = ColumnHeaderImpls[column.type];
|
|
4460
4618
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
4461
4619
|
CellComponent,
|
|
4462
|
-
__spreadProps$
|
|
4620
|
+
__spreadProps$7(__spreadValues$7({}, props), {
|
|
4463
4621
|
column,
|
|
4464
4622
|
onChange: headerOnChange,
|
|
4465
4623
|
onBlur: _onBlur
|
|
@@ -4494,51 +4652,56 @@
|
|
|
4494
4652
|
);
|
|
4495
4653
|
};
|
|
4496
4654
|
|
|
4497
|
-
var __defProp$
|
|
4498
|
-
var __defProps$
|
|
4499
|
-
var __getOwnPropDescs$
|
|
4500
|
-
var __getOwnPropSymbols$
|
|
4501
|
-
var __hasOwnProp$
|
|
4502
|
-
var __propIsEnum$
|
|
4503
|
-
var __defNormalProp$
|
|
4504
|
-
var __spreadValues$
|
|
4655
|
+
var __defProp$6 = Object.defineProperty;
|
|
4656
|
+
var __defProps$6 = Object.defineProperties;
|
|
4657
|
+
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
4658
|
+
var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
|
|
4659
|
+
var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
|
|
4660
|
+
var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
|
|
4661
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4662
|
+
var __spreadValues$6 = (a, b) => {
|
|
4505
4663
|
for (var prop in b || (b = {}))
|
|
4506
|
-
if (__hasOwnProp$
|
|
4507
|
-
__defNormalProp$
|
|
4508
|
-
if (__getOwnPropSymbols$
|
|
4509
|
-
for (var prop of __getOwnPropSymbols$
|
|
4510
|
-
if (__propIsEnum$
|
|
4511
|
-
__defNormalProp$
|
|
4664
|
+
if (__hasOwnProp$6.call(b, prop))
|
|
4665
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
4666
|
+
if (__getOwnPropSymbols$6)
|
|
4667
|
+
for (var prop of __getOwnPropSymbols$6(b)) {
|
|
4668
|
+
if (__propIsEnum$6.call(b, prop))
|
|
4669
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
4512
4670
|
}
|
|
4513
4671
|
return a;
|
|
4514
4672
|
};
|
|
4515
|
-
var __spreadProps$
|
|
4673
|
+
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
|
4516
4674
|
const DEFAULT_ROW_COUNT = 3;
|
|
4517
4675
|
const TableForm = React__namespace.default.forwardRef(
|
|
4518
|
-
({
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4676
|
+
(props, ref) => {
|
|
4677
|
+
var _a, _b;
|
|
4678
|
+
const {
|
|
4679
|
+
// The empty array is valid data so do not initialize "defaultData" with it
|
|
4680
|
+
defaultData,
|
|
4681
|
+
columns,
|
|
4682
|
+
disabled,
|
|
4683
|
+
rowAddConfig,
|
|
4684
|
+
deleteConfig,
|
|
4685
|
+
size = "default",
|
|
4686
|
+
className,
|
|
4687
|
+
disableBatchFilling = false,
|
|
4688
|
+
validateTriggerType,
|
|
4689
|
+
maxHeight,
|
|
4690
|
+
renderRowDescription,
|
|
4691
|
+
rowValidator,
|
|
4692
|
+
onHeaderChange,
|
|
4693
|
+
onHeaderBlur,
|
|
4694
|
+
onBodyChange,
|
|
4695
|
+
onBodyBlur,
|
|
4696
|
+
row,
|
|
4697
|
+
errors
|
|
4698
|
+
} = props;
|
|
4699
|
+
const [data, setData] = React.useState(defaultData || []);
|
|
4539
4700
|
const [passwordVisible, setPasswordVisible] = React.useState(false);
|
|
4540
|
-
const [latestData, setLatestData] = React.useState(defaultData);
|
|
4701
|
+
const [latestData, setLatestData] = React.useState(defaultData || []);
|
|
4541
4702
|
const [validateAll, setValidateAll] = React.useState(false);
|
|
4703
|
+
const rowSplitType = (row == null ? void 0 : row.splitType) || props.rowSplitType || "border";
|
|
4704
|
+
const draggable = (_b = (_a = row == null ? void 0 : row.draggable) != null ? _a : props.draggable) != null ? _b : false;
|
|
4542
4705
|
const updateData = React.useCallback(
|
|
4543
4706
|
(value, rowIndex, columnKey) => {
|
|
4544
4707
|
setLatestData(value);
|
|
@@ -4548,7 +4711,7 @@
|
|
|
4548
4711
|
[onBodyChange]
|
|
4549
4712
|
);
|
|
4550
4713
|
React.useLayoutEffect(() => {
|
|
4551
|
-
if (defaultData
|
|
4714
|
+
if (!defaultData) {
|
|
4552
4715
|
updateData(
|
|
4553
4716
|
[...Array(DEFAULT_ROW_COUNT)].map(() => genEmptyRow(columns))
|
|
4554
4717
|
);
|
|
@@ -4569,7 +4732,7 @@
|
|
|
4569
4732
|
(key, error) => {
|
|
4570
4733
|
if (error) {
|
|
4571
4734
|
const newData = latestData.map((cell) => {
|
|
4572
|
-
return __spreadProps$
|
|
4735
|
+
return __spreadProps$6(__spreadValues$6({}, cell), {
|
|
4573
4736
|
[key]: ""
|
|
4574
4737
|
});
|
|
4575
4738
|
});
|
|
@@ -4627,7 +4790,7 @@
|
|
|
4627
4790
|
antd.List.Item,
|
|
4628
4791
|
{
|
|
4629
4792
|
className: "eagle-table-form-header",
|
|
4630
|
-
actions: (deleteConfig == null ? void 0 : deleteConfig.deletable) ? [/* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null)] : void 0
|
|
4793
|
+
actions: (deleteConfig == null ? void 0 : deleteConfig.deletable) || (row == null ? void 0 : row.deletable) ? [/* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null)] : void 0
|
|
4631
4794
|
},
|
|
4632
4795
|
draggable ? /* @__PURE__ */ React__namespace.default.createElement(DraggableHandleWrapper, null) : null,
|
|
4633
4796
|
headerCells
|
|
@@ -4643,11 +4806,13 @@
|
|
|
4643
4806
|
draggable,
|
|
4644
4807
|
rowSplitType,
|
|
4645
4808
|
validateTriggerType,
|
|
4809
|
+
row,
|
|
4646
4810
|
onBodyBlur,
|
|
4647
4811
|
updateData,
|
|
4648
4812
|
renderRowDescription,
|
|
4649
4813
|
rowValidator,
|
|
4650
|
-
validateAll
|
|
4814
|
+
validateAll,
|
|
4815
|
+
errors
|
|
4651
4816
|
}
|
|
4652
4817
|
))
|
|
4653
4818
|
), (rowAddConfig == null ? void 0 : rowAddConfig.addible) ? /* @__PURE__ */ React__namespace.default.createElement(
|
|
@@ -4662,6 +4827,139 @@
|
|
|
4662
4827
|
}
|
|
4663
4828
|
);
|
|
4664
4829
|
|
|
4830
|
+
const PresetColors$2 = [
|
|
4831
|
+
"blue",
|
|
4832
|
+
"red",
|
|
4833
|
+
"yellow",
|
|
4834
|
+
"green",
|
|
4835
|
+
"gray",
|
|
4836
|
+
"purple"
|
|
4837
|
+
];
|
|
4838
|
+
|
|
4839
|
+
const Size$1 = {
|
|
4840
|
+
small: "sut42l0",
|
|
4841
|
+
medium: "mfsz1jz"
|
|
4842
|
+
};
|
|
4843
|
+
const TagStyle$1 = "tnd6h4m";
|
|
4844
|
+
const IconStyle = "i1qw4clm";
|
|
4845
|
+
|
|
4846
|
+
var __defProp$5 = Object.defineProperty;
|
|
4847
|
+
var __defProps$5 = Object.defineProperties;
|
|
4848
|
+
var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
|
|
4849
|
+
var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
|
|
4850
|
+
var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
|
|
4851
|
+
var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
|
|
4852
|
+
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, {
|
|
4853
|
+
enumerable: true,
|
|
4854
|
+
configurable: true,
|
|
4855
|
+
writable: true,
|
|
4856
|
+
value
|
|
4857
|
+
}) : obj[key] = value;
|
|
4858
|
+
var __spreadValues$5 = (a, b) => {
|
|
4859
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$5.call(b, prop)) __defNormalProp$5(a, prop, b[prop]);
|
|
4860
|
+
if (__getOwnPropSymbols$5) for (var prop of __getOwnPropSymbols$5(b)) {
|
|
4861
|
+
if (__propIsEnum$5.call(b, prop)) __defNormalProp$5(a, prop, b[prop]);
|
|
4862
|
+
}
|
|
4863
|
+
return a;
|
|
4864
|
+
};
|
|
4865
|
+
var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
|
|
4866
|
+
var __objRest$2 = (source, exclude) => {
|
|
4867
|
+
var target = {};
|
|
4868
|
+
for (var prop in source) if (__hasOwnProp$5.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
4869
|
+
if (source != null && __getOwnPropSymbols$5) for (var prop of __getOwnPropSymbols$5(source)) {
|
|
4870
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$5.call(source, prop)) target[prop] = source[prop];
|
|
4871
|
+
}
|
|
4872
|
+
return target;
|
|
4873
|
+
};
|
|
4874
|
+
const WrapperStyle = "w1xcixj5";
|
|
4875
|
+
const SplitTag = _a => {
|
|
4876
|
+
var _b = _a,
|
|
4877
|
+
{
|
|
4878
|
+
size = "small",
|
|
4879
|
+
color = "gray",
|
|
4880
|
+
className,
|
|
4881
|
+
primaryContent,
|
|
4882
|
+
secondaryContent,
|
|
4883
|
+
icon
|
|
4884
|
+
} = _b,
|
|
4885
|
+
props = __objRest$2(_b, ["size", "color", "className", "primaryContent", "secondaryContent", "icon"]);
|
|
4886
|
+
return /* @__PURE__ */React__namespace.default.createElement(antd.Tag, __spreadProps$5(__spreadValues$5({}, props), {
|
|
4887
|
+
className: cs__default.default(className, TagStyle$1, Size$1[size], WrapperStyle, Typo.Label.l4_regular, {
|
|
4888
|
+
[`ant-tag-${color}`]: PresetColors$2.includes(color)
|
|
4889
|
+
}, "outside-tag")
|
|
4890
|
+
}), /* @__PURE__ */React__namespace.default.createElement(antd.Tag, {
|
|
4891
|
+
className: cs__default.default(Size$1[size], TagStyle$1, Typo.Label.l4_regular, {
|
|
4892
|
+
[`ant-tag-${color}`]: PresetColors$2.includes(color)
|
|
4893
|
+
}, "inside-tag")
|
|
4894
|
+
}, icon && /* @__PURE__ */React__namespace.default.createElement("span", {
|
|
4895
|
+
className: cs__default.default("ui-kit-tag-icon", IconStyle)
|
|
4896
|
+
}, icon), primaryContent), secondaryContent);
|
|
4897
|
+
};
|
|
4898
|
+
|
|
4899
|
+
var __defProp$4 = Object.defineProperty;
|
|
4900
|
+
var __defProps$4 = Object.defineProperties;
|
|
4901
|
+
var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
|
|
4902
|
+
var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
|
|
4903
|
+
var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
|
|
4904
|
+
var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
|
|
4905
|
+
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4906
|
+
var __spreadValues$4 = (a, b) => {
|
|
4907
|
+
for (var prop in b || (b = {}))
|
|
4908
|
+
if (__hasOwnProp$4.call(b, prop))
|
|
4909
|
+
__defNormalProp$4(a, prop, b[prop]);
|
|
4910
|
+
if (__getOwnPropSymbols$4)
|
|
4911
|
+
for (var prop of __getOwnPropSymbols$4(b)) {
|
|
4912
|
+
if (__propIsEnum$4.call(b, prop))
|
|
4913
|
+
__defNormalProp$4(a, prop, b[prop]);
|
|
4914
|
+
}
|
|
4915
|
+
return a;
|
|
4916
|
+
};
|
|
4917
|
+
var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
|
|
4918
|
+
var __objRest$1 = (source, exclude) => {
|
|
4919
|
+
var target = {};
|
|
4920
|
+
for (var prop in source)
|
|
4921
|
+
if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
4922
|
+
target[prop] = source[prop];
|
|
4923
|
+
if (source != null && __getOwnPropSymbols$4)
|
|
4924
|
+
for (var prop of __getOwnPropSymbols$4(source)) {
|
|
4925
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$4.call(source, prop))
|
|
4926
|
+
target[prop] = source[prop];
|
|
4927
|
+
}
|
|
4928
|
+
return target;
|
|
4929
|
+
};
|
|
4930
|
+
const PresetColors$1 = [...PresetColors$2, "red-ontint", "green-ontint"];
|
|
4931
|
+
const Tag = (_a) => {
|
|
4932
|
+
var _b = _a, {
|
|
4933
|
+
size = "small",
|
|
4934
|
+
color = "gray",
|
|
4935
|
+
className,
|
|
4936
|
+
hoverable = false,
|
|
4937
|
+
icon,
|
|
4938
|
+
children
|
|
4939
|
+
} = _b, props = __objRest$1(_b, [
|
|
4940
|
+
"size",
|
|
4941
|
+
"color",
|
|
4942
|
+
"className",
|
|
4943
|
+
"hoverable",
|
|
4944
|
+
"icon",
|
|
4945
|
+
"children"
|
|
4946
|
+
]);
|
|
4947
|
+
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
4948
|
+
antd.Tag,
|
|
4949
|
+
__spreadProps$4(__spreadValues$4({}, props), {
|
|
4950
|
+
className: cs__default.default(className, Size$1[size], TagStyle$1, Typo.Label.l4_regular, {
|
|
4951
|
+
[`ant-tag-${color}`]: PresetColors$1.includes(color),
|
|
4952
|
+
"tag-hover": hoverable
|
|
4953
|
+
}),
|
|
4954
|
+
closable: false,
|
|
4955
|
+
color: color === "gray" ? void 0 : color
|
|
4956
|
+
}),
|
|
4957
|
+
icon && /* @__PURE__ */ React__namespace.default.createElement("span", { className: cs__default.default("ui-kit-tag-icon", IconStyle) }, icon),
|
|
4958
|
+
children
|
|
4959
|
+
);
|
|
4960
|
+
};
|
|
4961
|
+
Tag.SplitTag = SplitTag;
|
|
4962
|
+
|
|
4665
4963
|
const allTimeZones = _.uniqBy(TimeZones__default.default.reduce((sum, zone) => {
|
|
4666
4964
|
const utcZones = zone.utc.map(utc => {
|
|
4667
4965
|
return {
|
|
@@ -4923,7 +5221,7 @@
|
|
|
4923
5221
|
layout: antd.Layout,
|
|
4924
5222
|
autoComplete: antd.AutoComplete,
|
|
4925
5223
|
message: api,
|
|
4926
|
-
tag:
|
|
5224
|
+
tag: Tag,
|
|
4927
5225
|
popover: antd.Popover,
|
|
4928
5226
|
arch: Arch,
|
|
4929
5227
|
buttonGroup: ButtonGroup,
|
|
@@ -4961,7 +5259,8 @@
|
|
|
4961
5259
|
antdCollapse: antd.Collapse,
|
|
4962
5260
|
antdTreeSelect: antd.TreeSelect,
|
|
4963
5261
|
antdDrawer: antd.Drawer,
|
|
4964
|
-
antdSteps: antd.Steps
|
|
5262
|
+
antdSteps: antd.Steps,
|
|
5263
|
+
card: Card
|
|
4965
5264
|
};
|
|
4966
5265
|
kit.option.isSelectOption = true;
|
|
4967
5266
|
kit.button.__ANT_BUTTON = true;
|