@cloudtower/eagle 0.26.8 → 0.26.9
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 +1202 -1098
- package/dist/esm/index.js +1298 -1000
- package/dist/esm/stats1.html +1 -1
- package/dist/spec/base.d.ts +16 -3
- package/dist/style.css +508 -404
- package/dist/umd/index.js +1298 -1000
- 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,
|
|
@@ -1402,38 +1520,38 @@
|
|
|
1402
1520
|
loading,
|
|
1403
1521
|
placeholder
|
|
1404
1522
|
}), restProps), React__namespace.default.Children.map(children, child => {
|
|
1405
|
-
return reactIs.isElement(child) ? __spreadProps$
|
|
1406
|
-
props: __spreadProps$
|
|
1523
|
+
return reactIs.isElement(child) ? __spreadProps$v(__spreadValues$D({}, child), {
|
|
1524
|
+
props: __spreadProps$v(__spreadValues$D({}, child.props), {
|
|
1407
1525
|
"data-test": child.props.value
|
|
1408
1526
|
})
|
|
1409
1527
|
}) : child;
|
|
1410
1528
|
}));
|
|
1411
1529
|
};
|
|
1412
1530
|
|
|
1413
|
-
var __defProp$
|
|
1414
|
-
var __getOwnPropSymbols$
|
|
1415
|
-
var __hasOwnProp$
|
|
1416
|
-
var __propIsEnum$
|
|
1417
|
-
var __defNormalProp$
|
|
1418
|
-
var __spreadValues$
|
|
1531
|
+
var __defProp$C = Object.defineProperty;
|
|
1532
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
|
1533
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
|
1534
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
|
1535
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1536
|
+
var __spreadValues$C = (a, b) => {
|
|
1419
1537
|
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$
|
|
1538
|
+
if (__hasOwnProp$C.call(b, prop))
|
|
1539
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
1540
|
+
if (__getOwnPropSymbols$C)
|
|
1541
|
+
for (var prop of __getOwnPropSymbols$C(b)) {
|
|
1542
|
+
if (__propIsEnum$C.call(b, prop))
|
|
1543
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
1426
1544
|
}
|
|
1427
1545
|
return a;
|
|
1428
1546
|
};
|
|
1429
|
-
var __objRest$
|
|
1547
|
+
var __objRest$k = (source, exclude) => {
|
|
1430
1548
|
var target = {};
|
|
1431
1549
|
for (var prop in source)
|
|
1432
|
-
if (__hasOwnProp$
|
|
1550
|
+
if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1433
1551
|
target[prop] = source[prop];
|
|
1434
|
-
if (source != null && __getOwnPropSymbols$
|
|
1435
|
-
for (var prop of __getOwnPropSymbols$
|
|
1436
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1552
|
+
if (source != null && __getOwnPropSymbols$C)
|
|
1553
|
+
for (var prop of __getOwnPropSymbols$C(source)) {
|
|
1554
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
|
|
1437
1555
|
target[prop] = source[prop];
|
|
1438
1556
|
}
|
|
1439
1557
|
return target;
|
|
@@ -1443,12 +1561,12 @@
|
|
|
1443
1561
|
meta: __,
|
|
1444
1562
|
enumValues,
|
|
1445
1563
|
emptyLabel
|
|
1446
|
-
} = _b, restProps = __objRest$
|
|
1564
|
+
} = _b, restProps = __objRest$k(_b, [
|
|
1447
1565
|
"meta",
|
|
1448
1566
|
"enumValues",
|
|
1449
1567
|
"emptyLabel"
|
|
1450
1568
|
]);
|
|
1451
|
-
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(Select, __spreadValues$
|
|
1569
|
+
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
1570
|
const item = typeof v === "string" ? { value: v, text: v } : v;
|
|
1453
1571
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
1454
1572
|
antd.Select.Option,
|
|
@@ -1462,31 +1580,31 @@
|
|
|
1462
1580
|
})));
|
|
1463
1581
|
};
|
|
1464
1582
|
|
|
1465
|
-
var __defProp$
|
|
1466
|
-
var __defProps$
|
|
1467
|
-
var __getOwnPropDescs$
|
|
1468
|
-
var __getOwnPropSymbols$
|
|
1469
|
-
var __hasOwnProp$
|
|
1470
|
-
var __propIsEnum$
|
|
1471
|
-
var __defNormalProp$
|
|
1583
|
+
var __defProp$B = Object.defineProperty;
|
|
1584
|
+
var __defProps$u = Object.defineProperties;
|
|
1585
|
+
var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
|
|
1586
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
|
1587
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
|
1588
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
|
1589
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, {
|
|
1472
1590
|
enumerable: true,
|
|
1473
1591
|
configurable: true,
|
|
1474
1592
|
writable: true,
|
|
1475
1593
|
value
|
|
1476
1594
|
}) : obj[key] = value;
|
|
1477
|
-
var __spreadValues$
|
|
1478
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1479
|
-
if (__getOwnPropSymbols$
|
|
1480
|
-
if (__propIsEnum$
|
|
1595
|
+
var __spreadValues$B = (a, b) => {
|
|
1596
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$B.call(b, prop)) __defNormalProp$B(a, prop, b[prop]);
|
|
1597
|
+
if (__getOwnPropSymbols$B) for (var prop of __getOwnPropSymbols$B(b)) {
|
|
1598
|
+
if (__propIsEnum$B.call(b, prop)) __defNormalProp$B(a, prop, b[prop]);
|
|
1481
1599
|
}
|
|
1482
1600
|
return a;
|
|
1483
1601
|
};
|
|
1484
|
-
var __spreadProps$
|
|
1485
|
-
var __objRest$
|
|
1602
|
+
var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
|
|
1603
|
+
var __objRest$j = (source, exclude) => {
|
|
1486
1604
|
var target = {};
|
|
1487
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1488
|
-
if (source != null && __getOwnPropSymbols$
|
|
1489
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1605
|
+
for (var prop in source) if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1606
|
+
if (source != null && __getOwnPropSymbols$B) for (var prop of __getOwnPropSymbols$B(source)) {
|
|
1607
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop)) target[prop] = source[prop];
|
|
1490
1608
|
}
|
|
1491
1609
|
return target;
|
|
1492
1610
|
};
|
|
@@ -1522,13 +1640,13 @@
|
|
|
1522
1640
|
prefix,
|
|
1523
1641
|
controls = true
|
|
1524
1642
|
} = _b,
|
|
1525
|
-
props = __objRest$
|
|
1643
|
+
props = __objRest$j(_b, ["className", "error", "size", "suffix", "prefix", "controls"]);
|
|
1526
1644
|
const typo = {
|
|
1527
1645
|
large: Typo.Label.l2_regular,
|
|
1528
1646
|
middle: Typo.Label.l3_regular,
|
|
1529
1647
|
small: Typo.Label.l4_regular
|
|
1530
1648
|
}[size];
|
|
1531
|
-
return /* @__PURE__ */React__namespace.default.createElement(AntdInputNumberStyled, __spreadProps$
|
|
1649
|
+
return /* @__PURE__ */React__namespace.default.createElement(AntdInputNumberStyled, __spreadProps$u(__spreadValues$B({}, props), {
|
|
1532
1650
|
size,
|
|
1533
1651
|
controls,
|
|
1534
1652
|
"data-test": props.name,
|
|
@@ -1538,33 +1656,33 @@
|
|
|
1538
1656
|
}));
|
|
1539
1657
|
};
|
|
1540
1658
|
|
|
1541
|
-
var __defProp$
|
|
1542
|
-
var __defProps$
|
|
1543
|
-
var __getOwnPropDescs$
|
|
1544
|
-
var __getOwnPropSymbols$
|
|
1545
|
-
var __hasOwnProp$
|
|
1546
|
-
var __propIsEnum$
|
|
1547
|
-
var __defNormalProp$
|
|
1548
|
-
var __spreadValues$
|
|
1659
|
+
var __defProp$A = Object.defineProperty;
|
|
1660
|
+
var __defProps$t = Object.defineProperties;
|
|
1661
|
+
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
|
1662
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
|
1663
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
|
1664
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
|
1665
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1666
|
+
var __spreadValues$A = (a, b) => {
|
|
1549
1667
|
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$
|
|
1668
|
+
if (__hasOwnProp$A.call(b, prop))
|
|
1669
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
1670
|
+
if (__getOwnPropSymbols$A)
|
|
1671
|
+
for (var prop of __getOwnPropSymbols$A(b)) {
|
|
1672
|
+
if (__propIsEnum$A.call(b, prop))
|
|
1673
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
1556
1674
|
}
|
|
1557
1675
|
return a;
|
|
1558
1676
|
};
|
|
1559
|
-
var __spreadProps$
|
|
1560
|
-
var __objRest$
|
|
1677
|
+
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
|
1678
|
+
var __objRest$i = (source, exclude) => {
|
|
1561
1679
|
var target = {};
|
|
1562
1680
|
for (var prop in source)
|
|
1563
|
-
if (__hasOwnProp$
|
|
1681
|
+
if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1564
1682
|
target[prop] = source[prop];
|
|
1565
|
-
if (source != null && __getOwnPropSymbols$
|
|
1566
|
-
for (var prop of __getOwnPropSymbols$
|
|
1567
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1683
|
+
if (source != null && __getOwnPropSymbols$A)
|
|
1684
|
+
for (var prop of __getOwnPropSymbols$A(source)) {
|
|
1685
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
|
|
1568
1686
|
target[prop] = source[prop];
|
|
1569
1687
|
}
|
|
1570
1688
|
return target;
|
|
@@ -1575,7 +1693,7 @@
|
|
|
1575
1693
|
meta,
|
|
1576
1694
|
onBlur,
|
|
1577
1695
|
autoComplete = "off"
|
|
1578
|
-
} = _b, props = __objRest$
|
|
1696
|
+
} = _b, props = __objRest$i(_b, [
|
|
1579
1697
|
"input",
|
|
1580
1698
|
"meta",
|
|
1581
1699
|
"onBlur",
|
|
@@ -1583,7 +1701,7 @@
|
|
|
1583
1701
|
]);
|
|
1584
1702
|
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(
|
|
1585
1703
|
InputNumber,
|
|
1586
|
-
__spreadValues$
|
|
1704
|
+
__spreadValues$A(__spreadProps$t(__spreadValues$A({}, input), {
|
|
1587
1705
|
onBlur: (e) => onBlur ? onBlur(input, e) : input.onBlur(e),
|
|
1588
1706
|
autoComplete,
|
|
1589
1707
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
@@ -1591,33 +1709,33 @@
|
|
|
1591
1709
|
));
|
|
1592
1710
|
};
|
|
1593
1711
|
|
|
1594
|
-
var __defProp$
|
|
1595
|
-
var __defProps$
|
|
1596
|
-
var __getOwnPropDescs$
|
|
1597
|
-
var __getOwnPropSymbols$
|
|
1598
|
-
var __hasOwnProp$
|
|
1599
|
-
var __propIsEnum$
|
|
1600
|
-
var __defNormalProp$
|
|
1601
|
-
var __spreadValues$
|
|
1712
|
+
var __defProp$z = Object.defineProperty;
|
|
1713
|
+
var __defProps$s = Object.defineProperties;
|
|
1714
|
+
var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
|
|
1715
|
+
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
|
1716
|
+
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
|
1717
|
+
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
|
1718
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1719
|
+
var __spreadValues$z = (a, b) => {
|
|
1602
1720
|
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$
|
|
1721
|
+
if (__hasOwnProp$z.call(b, prop))
|
|
1722
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
1723
|
+
if (__getOwnPropSymbols$z)
|
|
1724
|
+
for (var prop of __getOwnPropSymbols$z(b)) {
|
|
1725
|
+
if (__propIsEnum$z.call(b, prop))
|
|
1726
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
1609
1727
|
}
|
|
1610
1728
|
return a;
|
|
1611
1729
|
};
|
|
1612
|
-
var __spreadProps$
|
|
1613
|
-
var __objRest$
|
|
1730
|
+
var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
|
|
1731
|
+
var __objRest$h = (source, exclude) => {
|
|
1614
1732
|
var target = {};
|
|
1615
1733
|
for (var prop in source)
|
|
1616
|
-
if (__hasOwnProp$
|
|
1734
|
+
if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1617
1735
|
target[prop] = source[prop];
|
|
1618
|
-
if (source != null && __getOwnPropSymbols$
|
|
1619
|
-
for (var prop of __getOwnPropSymbols$
|
|
1620
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1736
|
+
if (source != null && __getOwnPropSymbols$z)
|
|
1737
|
+
for (var prop of __getOwnPropSymbols$z(source)) {
|
|
1738
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
|
|
1621
1739
|
target[prop] = source[prop];
|
|
1622
1740
|
}
|
|
1623
1741
|
return target;
|
|
@@ -1627,7 +1745,7 @@
|
|
|
1627
1745
|
className,
|
|
1628
1746
|
error,
|
|
1629
1747
|
size = "middle"
|
|
1630
|
-
} = _b, props = __objRest$
|
|
1748
|
+
} = _b, props = __objRest$h(_b, [
|
|
1631
1749
|
"className",
|
|
1632
1750
|
"error",
|
|
1633
1751
|
"size"
|
|
@@ -1639,7 +1757,7 @@
|
|
|
1639
1757
|
}[size];
|
|
1640
1758
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
1641
1759
|
antd.Input,
|
|
1642
|
-
__spreadProps$
|
|
1760
|
+
__spreadProps$s(__spreadValues$z({}, props), {
|
|
1643
1761
|
size,
|
|
1644
1762
|
"data-test": props.name,
|
|
1645
1763
|
className: cs__default.default(className, InputStyle, typo, error ? "error" : "")
|
|
@@ -1647,33 +1765,33 @@
|
|
|
1647
1765
|
);
|
|
1648
1766
|
};
|
|
1649
1767
|
|
|
1650
|
-
var __defProp$
|
|
1651
|
-
var __defProps$
|
|
1652
|
-
var __getOwnPropDescs$
|
|
1653
|
-
var __getOwnPropSymbols$
|
|
1654
|
-
var __hasOwnProp$
|
|
1655
|
-
var __propIsEnum$
|
|
1656
|
-
var __defNormalProp$
|
|
1657
|
-
var __spreadValues$
|
|
1768
|
+
var __defProp$y = Object.defineProperty;
|
|
1769
|
+
var __defProps$r = Object.defineProperties;
|
|
1770
|
+
var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
|
|
1771
|
+
var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
|
|
1772
|
+
var __hasOwnProp$y = Object.prototype.hasOwnProperty;
|
|
1773
|
+
var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
|
|
1774
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1775
|
+
var __spreadValues$y = (a, b) => {
|
|
1658
1776
|
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$
|
|
1777
|
+
if (__hasOwnProp$y.call(b, prop))
|
|
1778
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
1779
|
+
if (__getOwnPropSymbols$y)
|
|
1780
|
+
for (var prop of __getOwnPropSymbols$y(b)) {
|
|
1781
|
+
if (__propIsEnum$y.call(b, prop))
|
|
1782
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
1665
1783
|
}
|
|
1666
1784
|
return a;
|
|
1667
1785
|
};
|
|
1668
|
-
var __spreadProps$
|
|
1669
|
-
var __objRest$
|
|
1786
|
+
var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
|
|
1787
|
+
var __objRest$g = (source, exclude) => {
|
|
1670
1788
|
var target = {};
|
|
1671
1789
|
for (var prop in source)
|
|
1672
|
-
if (__hasOwnProp$
|
|
1790
|
+
if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1673
1791
|
target[prop] = source[prop];
|
|
1674
|
-
if (source != null && __getOwnPropSymbols$
|
|
1675
|
-
for (var prop of __getOwnPropSymbols$
|
|
1676
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1792
|
+
if (source != null && __getOwnPropSymbols$y)
|
|
1793
|
+
for (var prop of __getOwnPropSymbols$y(source)) {
|
|
1794
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
|
|
1677
1795
|
target[prop] = source[prop];
|
|
1678
1796
|
}
|
|
1679
1797
|
return target;
|
|
@@ -1685,7 +1803,7 @@
|
|
|
1685
1803
|
onBlur,
|
|
1686
1804
|
autoComplete = "off",
|
|
1687
1805
|
supportNegativeValue = false
|
|
1688
|
-
} = _b, props = __objRest$
|
|
1806
|
+
} = _b, props = __objRest$g(_b, [
|
|
1689
1807
|
"input",
|
|
1690
1808
|
"meta",
|
|
1691
1809
|
"onBlur",
|
|
@@ -1694,7 +1812,7 @@
|
|
|
1694
1812
|
]);
|
|
1695
1813
|
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(
|
|
1696
1814
|
Input,
|
|
1697
|
-
__spreadValues$
|
|
1815
|
+
__spreadValues$y(__spreadProps$r(__spreadValues$y({}, input), {
|
|
1698
1816
|
onChange: (e) => {
|
|
1699
1817
|
const value = e.currentTarget.value;
|
|
1700
1818
|
if (supportNegativeValue) {
|
|
@@ -1729,31 +1847,31 @@
|
|
|
1729
1847
|
}
|
|
1730
1848
|
};
|
|
1731
1849
|
|
|
1732
|
-
var __defProp$
|
|
1733
|
-
var __defProps$
|
|
1734
|
-
var __getOwnPropDescs$
|
|
1735
|
-
var __getOwnPropSymbols$
|
|
1736
|
-
var __hasOwnProp$
|
|
1737
|
-
var __propIsEnum$
|
|
1738
|
-
var __defNormalProp$
|
|
1850
|
+
var __defProp$x = Object.defineProperty;
|
|
1851
|
+
var __defProps$q = Object.defineProperties;
|
|
1852
|
+
var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
|
|
1853
|
+
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
|
1854
|
+
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
|
1855
|
+
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
|
1856
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, {
|
|
1739
1857
|
enumerable: true,
|
|
1740
1858
|
configurable: true,
|
|
1741
1859
|
writable: true,
|
|
1742
1860
|
value
|
|
1743
1861
|
}) : obj[key] = value;
|
|
1744
|
-
var __spreadValues$
|
|
1745
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1746
|
-
if (__getOwnPropSymbols$
|
|
1747
|
-
if (__propIsEnum$
|
|
1862
|
+
var __spreadValues$x = (a, b) => {
|
|
1863
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$x.call(b, prop)) __defNormalProp$x(a, prop, b[prop]);
|
|
1864
|
+
if (__getOwnPropSymbols$x) for (var prop of __getOwnPropSymbols$x(b)) {
|
|
1865
|
+
if (__propIsEnum$x.call(b, prop)) __defNormalProp$x(a, prop, b[prop]);
|
|
1748
1866
|
}
|
|
1749
1867
|
return a;
|
|
1750
1868
|
};
|
|
1751
|
-
var __spreadProps$
|
|
1752
|
-
var __objRest$
|
|
1869
|
+
var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
|
|
1870
|
+
var __objRest$f = (source, exclude) => {
|
|
1753
1871
|
var target = {};
|
|
1754
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1755
|
-
if (source != null && __getOwnPropSymbols$
|
|
1756
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1872
|
+
for (var prop in source) if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1873
|
+
if (source != null && __getOwnPropSymbols$x) for (var prop of __getOwnPropSymbols$x(source)) {
|
|
1874
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop)) target[prop] = source[prop];
|
|
1757
1875
|
}
|
|
1758
1876
|
return target;
|
|
1759
1877
|
};
|
|
@@ -1791,13 +1909,13 @@
|
|
|
1791
1909
|
min,
|
|
1792
1910
|
controls = false
|
|
1793
1911
|
} = _b,
|
|
1794
|
-
props = __objRest$
|
|
1912
|
+
props = __objRest$f(_b, ["className", "error", "size", "suffix", "prefix", "max", "min", "controls"]);
|
|
1795
1913
|
const typo = {
|
|
1796
1914
|
large: Typo.Label.l2_regular,
|
|
1797
1915
|
middle: Typo.Label.l3_regular,
|
|
1798
1916
|
small: Typo.Label.l4_regular
|
|
1799
1917
|
}[size];
|
|
1800
|
-
return /* @__PURE__ */React__namespace.default.createElement(AntdIntStyled, __spreadProps$
|
|
1918
|
+
return /* @__PURE__ */React__namespace.default.createElement(AntdIntStyled, __spreadProps$q(__spreadValues$x({}, props), {
|
|
1801
1919
|
size,
|
|
1802
1920
|
formatter: formatterInteger,
|
|
1803
1921
|
parser: formatterInteger,
|
|
@@ -1811,33 +1929,33 @@
|
|
|
1811
1929
|
}));
|
|
1812
1930
|
};
|
|
1813
1931
|
|
|
1814
|
-
var __defProp$
|
|
1815
|
-
var __defProps$
|
|
1816
|
-
var __getOwnPropDescs$
|
|
1817
|
-
var __getOwnPropSymbols$
|
|
1818
|
-
var __hasOwnProp$
|
|
1819
|
-
var __propIsEnum$
|
|
1820
|
-
var __defNormalProp$
|
|
1821
|
-
var __spreadValues$
|
|
1932
|
+
var __defProp$w = Object.defineProperty;
|
|
1933
|
+
var __defProps$p = Object.defineProperties;
|
|
1934
|
+
var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
|
|
1935
|
+
var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
|
|
1936
|
+
var __hasOwnProp$w = Object.prototype.hasOwnProperty;
|
|
1937
|
+
var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
|
|
1938
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1939
|
+
var __spreadValues$w = (a, b) => {
|
|
1822
1940
|
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$
|
|
1941
|
+
if (__hasOwnProp$w.call(b, prop))
|
|
1942
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
1943
|
+
if (__getOwnPropSymbols$w)
|
|
1944
|
+
for (var prop of __getOwnPropSymbols$w(b)) {
|
|
1945
|
+
if (__propIsEnum$w.call(b, prop))
|
|
1946
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
1829
1947
|
}
|
|
1830
1948
|
return a;
|
|
1831
1949
|
};
|
|
1832
|
-
var __spreadProps$
|
|
1833
|
-
var __objRest$
|
|
1950
|
+
var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
|
|
1951
|
+
var __objRest$e = (source, exclude) => {
|
|
1834
1952
|
var target = {};
|
|
1835
1953
|
for (var prop in source)
|
|
1836
|
-
if (__hasOwnProp$
|
|
1954
|
+
if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1837
1955
|
target[prop] = source[prop];
|
|
1838
|
-
if (source != null && __getOwnPropSymbols$
|
|
1839
|
-
for (var prop of __getOwnPropSymbols$
|
|
1840
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1956
|
+
if (source != null && __getOwnPropSymbols$w)
|
|
1957
|
+
for (var prop of __getOwnPropSymbols$w(source)) {
|
|
1958
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$w.call(source, prop))
|
|
1841
1959
|
target[prop] = source[prop];
|
|
1842
1960
|
}
|
|
1843
1961
|
return target;
|
|
@@ -1847,14 +1965,14 @@
|
|
|
1847
1965
|
meta,
|
|
1848
1966
|
input,
|
|
1849
1967
|
onBlur
|
|
1850
|
-
} = _b, props = __objRest$
|
|
1968
|
+
} = _b, props = __objRest$e(_b, [
|
|
1851
1969
|
"meta",
|
|
1852
1970
|
"input",
|
|
1853
1971
|
"onBlur"
|
|
1854
1972
|
]);
|
|
1855
1973
|
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(
|
|
1856
1974
|
InputInteger,
|
|
1857
|
-
__spreadProps$
|
|
1975
|
+
__spreadProps$p(__spreadValues$w(__spreadValues$w({}, props), input), {
|
|
1858
1976
|
onBlur: (e) => onBlur ? onBlur(input, e) : input.onBlur(e),
|
|
1859
1977
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
1860
1978
|
})
|
|
@@ -2019,33 +2137,33 @@
|
|
|
2019
2137
|
}, children), showOverflow && /* @__PURE__ */React__namespace.default.createElement("span", null, overflow));
|
|
2020
2138
|
};
|
|
2021
2139
|
|
|
2022
|
-
var __defProp$
|
|
2023
|
-
var __defProps$
|
|
2024
|
-
var __getOwnPropDescs$
|
|
2025
|
-
var __getOwnPropSymbols$
|
|
2026
|
-
var __hasOwnProp$
|
|
2027
|
-
var __propIsEnum$
|
|
2028
|
-
var __defNormalProp$
|
|
2029
|
-
var __spreadValues$
|
|
2140
|
+
var __defProp$v = Object.defineProperty;
|
|
2141
|
+
var __defProps$o = Object.defineProperties;
|
|
2142
|
+
var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
|
|
2143
|
+
var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
|
|
2144
|
+
var __hasOwnProp$v = Object.prototype.hasOwnProperty;
|
|
2145
|
+
var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
|
|
2146
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2147
|
+
var __spreadValues$v = (a, b) => {
|
|
2030
2148
|
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$
|
|
2149
|
+
if (__hasOwnProp$v.call(b, prop))
|
|
2150
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
2151
|
+
if (__getOwnPropSymbols$v)
|
|
2152
|
+
for (var prop of __getOwnPropSymbols$v(b)) {
|
|
2153
|
+
if (__propIsEnum$v.call(b, prop))
|
|
2154
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
2037
2155
|
}
|
|
2038
2156
|
return a;
|
|
2039
2157
|
};
|
|
2040
|
-
var __spreadProps$
|
|
2041
|
-
var __objRest$
|
|
2158
|
+
var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
|
|
2159
|
+
var __objRest$d = (source, exclude) => {
|
|
2042
2160
|
var target = {};
|
|
2043
2161
|
for (var prop in source)
|
|
2044
|
-
if (__hasOwnProp$
|
|
2162
|
+
if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2045
2163
|
target[prop] = source[prop];
|
|
2046
|
-
if (source != null && __getOwnPropSymbols$
|
|
2047
|
-
for (var prop of __getOwnPropSymbols$
|
|
2048
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2164
|
+
if (source != null && __getOwnPropSymbols$v)
|
|
2165
|
+
for (var prop of __getOwnPropSymbols$v(source)) {
|
|
2166
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$v.call(source, prop))
|
|
2049
2167
|
target[prop] = source[prop];
|
|
2050
2168
|
}
|
|
2051
2169
|
return target;
|
|
@@ -2064,7 +2182,7 @@
|
|
|
2064
2182
|
onClick,
|
|
2065
2183
|
maxLength,
|
|
2066
2184
|
focusIndicator
|
|
2067
|
-
} = _b, props = __objRest$
|
|
2185
|
+
} = _b, props = __objRest$d(_b, [
|
|
2068
2186
|
"input",
|
|
2069
2187
|
"meta",
|
|
2070
2188
|
"autoComplete",
|
|
@@ -2096,7 +2214,7 @@
|
|
|
2096
2214
|
}
|
|
2097
2215
|
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(
|
|
2098
2216
|
Input,
|
|
2099
|
-
__spreadProps$
|
|
2217
|
+
__spreadProps$o(__spreadValues$v(__spreadProps$o(__spreadValues$v({
|
|
2100
2218
|
className: cs__default.default(
|
|
2101
2219
|
className,
|
|
2102
2220
|
KitInputStyle,
|
|
@@ -2121,33 +2239,33 @@
|
|
|
2121
2239
|
));
|
|
2122
2240
|
};
|
|
2123
2241
|
|
|
2124
|
-
var __defProp$
|
|
2125
|
-
var __defProps$
|
|
2126
|
-
var __getOwnPropDescs$
|
|
2127
|
-
var __getOwnPropSymbols$
|
|
2128
|
-
var __hasOwnProp$
|
|
2129
|
-
var __propIsEnum$
|
|
2130
|
-
var __defNormalProp$
|
|
2131
|
-
var __spreadValues$
|
|
2242
|
+
var __defProp$u = Object.defineProperty;
|
|
2243
|
+
var __defProps$n = Object.defineProperties;
|
|
2244
|
+
var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
|
|
2245
|
+
var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
|
|
2246
|
+
var __hasOwnProp$u = Object.prototype.hasOwnProperty;
|
|
2247
|
+
var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
|
|
2248
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2249
|
+
var __spreadValues$u = (a, b) => {
|
|
2132
2250
|
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$
|
|
2251
|
+
if (__hasOwnProp$u.call(b, prop))
|
|
2252
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
2253
|
+
if (__getOwnPropSymbols$u)
|
|
2254
|
+
for (var prop of __getOwnPropSymbols$u(b)) {
|
|
2255
|
+
if (__propIsEnum$u.call(b, prop))
|
|
2256
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
2139
2257
|
}
|
|
2140
2258
|
return a;
|
|
2141
2259
|
};
|
|
2142
|
-
var __spreadProps$
|
|
2143
|
-
var __objRest$
|
|
2260
|
+
var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
|
|
2261
|
+
var __objRest$c = (source, exclude) => {
|
|
2144
2262
|
var target = {};
|
|
2145
2263
|
for (var prop in source)
|
|
2146
|
-
if (__hasOwnProp$
|
|
2264
|
+
if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2147
2265
|
target[prop] = source[prop];
|
|
2148
|
-
if (source != null && __getOwnPropSymbols$
|
|
2149
|
-
for (var prop of __getOwnPropSymbols$
|
|
2150
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2266
|
+
if (source != null && __getOwnPropSymbols$u)
|
|
2267
|
+
for (var prop of __getOwnPropSymbols$u(source)) {
|
|
2268
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
|
|
2151
2269
|
target[prop] = source[prop];
|
|
2152
2270
|
}
|
|
2153
2271
|
return target;
|
|
@@ -2157,7 +2275,7 @@
|
|
|
2157
2275
|
className,
|
|
2158
2276
|
error,
|
|
2159
2277
|
size = "middle"
|
|
2160
|
-
} = _b, props = __objRest$
|
|
2278
|
+
} = _b, props = __objRest$c(_b, [
|
|
2161
2279
|
"className",
|
|
2162
2280
|
"error",
|
|
2163
2281
|
"size"
|
|
@@ -2169,7 +2287,7 @@
|
|
|
2169
2287
|
}[size];
|
|
2170
2288
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
2171
2289
|
antd.Input.TextArea,
|
|
2172
|
-
__spreadProps$
|
|
2290
|
+
__spreadProps$n(__spreadValues$u({}, props), {
|
|
2173
2291
|
className: cs__default.default(
|
|
2174
2292
|
className,
|
|
2175
2293
|
InputStyle,
|
|
@@ -2183,33 +2301,33 @@
|
|
|
2183
2301
|
);
|
|
2184
2302
|
};
|
|
2185
2303
|
|
|
2186
|
-
var __defProp$
|
|
2187
|
-
var __defProps$
|
|
2188
|
-
var __getOwnPropDescs$
|
|
2189
|
-
var __getOwnPropSymbols$
|
|
2190
|
-
var __hasOwnProp$
|
|
2191
|
-
var __propIsEnum$
|
|
2192
|
-
var __defNormalProp$
|
|
2193
|
-
var __spreadValues$
|
|
2304
|
+
var __defProp$t = Object.defineProperty;
|
|
2305
|
+
var __defProps$m = Object.defineProperties;
|
|
2306
|
+
var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
|
|
2307
|
+
var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
|
|
2308
|
+
var __hasOwnProp$t = Object.prototype.hasOwnProperty;
|
|
2309
|
+
var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
|
|
2310
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2311
|
+
var __spreadValues$t = (a, b) => {
|
|
2194
2312
|
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$
|
|
2313
|
+
if (__hasOwnProp$t.call(b, prop))
|
|
2314
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
2315
|
+
if (__getOwnPropSymbols$t)
|
|
2316
|
+
for (var prop of __getOwnPropSymbols$t(b)) {
|
|
2317
|
+
if (__propIsEnum$t.call(b, prop))
|
|
2318
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
2201
2319
|
}
|
|
2202
2320
|
return a;
|
|
2203
2321
|
};
|
|
2204
|
-
var __spreadProps$
|
|
2205
|
-
var __objRest$
|
|
2322
|
+
var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
|
|
2323
|
+
var __objRest$b = (source, exclude) => {
|
|
2206
2324
|
var target = {};
|
|
2207
2325
|
for (var prop in source)
|
|
2208
|
-
if (__hasOwnProp$
|
|
2326
|
+
if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2209
2327
|
target[prop] = source[prop];
|
|
2210
|
-
if (source != null && __getOwnPropSymbols$
|
|
2211
|
-
for (var prop of __getOwnPropSymbols$
|
|
2212
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2328
|
+
if (source != null && __getOwnPropSymbols$t)
|
|
2329
|
+
for (var prop of __getOwnPropSymbols$t(source)) {
|
|
2330
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$t.call(source, prop))
|
|
2213
2331
|
target[prop] = source[prop];
|
|
2214
2332
|
}
|
|
2215
2333
|
return target;
|
|
@@ -2219,14 +2337,14 @@
|
|
|
2219
2337
|
input,
|
|
2220
2338
|
meta,
|
|
2221
2339
|
onFocusChangeHeight
|
|
2222
|
-
} = _b, props = __objRest$
|
|
2340
|
+
} = _b, props = __objRest$b(_b, [
|
|
2223
2341
|
"input",
|
|
2224
2342
|
"meta",
|
|
2225
2343
|
"onFocusChangeHeight"
|
|
2226
2344
|
]);
|
|
2227
2345
|
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(
|
|
2228
2346
|
TextArea,
|
|
2229
|
-
__spreadProps$
|
|
2347
|
+
__spreadProps$m(__spreadValues$t(__spreadValues$t({}, input), props), {
|
|
2230
2348
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError),
|
|
2231
2349
|
onFocus: (e) => {
|
|
2232
2350
|
input.onFocus(e);
|
|
@@ -2240,33 +2358,33 @@
|
|
|
2240
2358
|
));
|
|
2241
2359
|
};
|
|
2242
2360
|
|
|
2243
|
-
var __defProp$
|
|
2244
|
-
var __defProps$
|
|
2245
|
-
var __getOwnPropDescs$
|
|
2246
|
-
var __getOwnPropSymbols$
|
|
2247
|
-
var __hasOwnProp$
|
|
2248
|
-
var __propIsEnum$
|
|
2249
|
-
var __defNormalProp$
|
|
2250
|
-
var __spreadValues$
|
|
2361
|
+
var __defProp$s = Object.defineProperty;
|
|
2362
|
+
var __defProps$l = Object.defineProperties;
|
|
2363
|
+
var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
|
|
2364
|
+
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
|
2365
|
+
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
|
2366
|
+
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
|
2367
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2368
|
+
var __spreadValues$s = (a, b) => {
|
|
2251
2369
|
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$
|
|
2370
|
+
if (__hasOwnProp$s.call(b, prop))
|
|
2371
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
2372
|
+
if (__getOwnPropSymbols$s)
|
|
2373
|
+
for (var prop of __getOwnPropSymbols$s(b)) {
|
|
2374
|
+
if (__propIsEnum$s.call(b, prop))
|
|
2375
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
2258
2376
|
}
|
|
2259
2377
|
return a;
|
|
2260
2378
|
};
|
|
2261
|
-
var __spreadProps$
|
|
2262
|
-
var __objRest$
|
|
2379
|
+
var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
|
|
2380
|
+
var __objRest$a = (source, exclude) => {
|
|
2263
2381
|
var target = {};
|
|
2264
2382
|
for (var prop in source)
|
|
2265
|
-
if (__hasOwnProp$
|
|
2383
|
+
if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2266
2384
|
target[prop] = source[prop];
|
|
2267
|
-
if (source != null && __getOwnPropSymbols$
|
|
2268
|
-
for (var prop of __getOwnPropSymbols$
|
|
2269
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2385
|
+
if (source != null && __getOwnPropSymbols$s)
|
|
2386
|
+
for (var prop of __getOwnPropSymbols$s(source)) {
|
|
2387
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop))
|
|
2270
2388
|
target[prop] = source[prop];
|
|
2271
2389
|
}
|
|
2272
2390
|
return target;
|
|
@@ -2276,7 +2394,7 @@
|
|
|
2276
2394
|
className,
|
|
2277
2395
|
error,
|
|
2278
2396
|
size = "middle"
|
|
2279
|
-
} = _b, props = __objRest$
|
|
2397
|
+
} = _b, props = __objRest$a(_b, [
|
|
2280
2398
|
"className",
|
|
2281
2399
|
"error",
|
|
2282
2400
|
"size"
|
|
@@ -2288,7 +2406,7 @@
|
|
|
2288
2406
|
}[size];
|
|
2289
2407
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
2290
2408
|
antd.TimePicker,
|
|
2291
|
-
__spreadProps$
|
|
2409
|
+
__spreadProps$l(__spreadValues$s({}, props), {
|
|
2292
2410
|
size,
|
|
2293
2411
|
"data-test": props.name,
|
|
2294
2412
|
className: cs__default.default(className, InputStyle, typo, error ? "error" : "")
|
|
@@ -2296,33 +2414,33 @@
|
|
|
2296
2414
|
);
|
|
2297
2415
|
};
|
|
2298
2416
|
|
|
2299
|
-
var __defProp$
|
|
2300
|
-
var __defProps$
|
|
2301
|
-
var __getOwnPropDescs$
|
|
2302
|
-
var __getOwnPropSymbols$
|
|
2303
|
-
var __hasOwnProp$
|
|
2304
|
-
var __propIsEnum$
|
|
2305
|
-
var __defNormalProp$
|
|
2306
|
-
var __spreadValues$
|
|
2417
|
+
var __defProp$r = Object.defineProperty;
|
|
2418
|
+
var __defProps$k = Object.defineProperties;
|
|
2419
|
+
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
|
2420
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
|
2421
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
|
2422
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
|
2423
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2424
|
+
var __spreadValues$r = (a, b) => {
|
|
2307
2425
|
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$
|
|
2426
|
+
if (__hasOwnProp$r.call(b, prop))
|
|
2427
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
2428
|
+
if (__getOwnPropSymbols$r)
|
|
2429
|
+
for (var prop of __getOwnPropSymbols$r(b)) {
|
|
2430
|
+
if (__propIsEnum$r.call(b, prop))
|
|
2431
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
2314
2432
|
}
|
|
2315
2433
|
return a;
|
|
2316
2434
|
};
|
|
2317
|
-
var __spreadProps$
|
|
2318
|
-
var __objRest$
|
|
2435
|
+
var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
|
|
2436
|
+
var __objRest$9 = (source, exclude) => {
|
|
2319
2437
|
var target = {};
|
|
2320
2438
|
for (var prop in source)
|
|
2321
|
-
if (__hasOwnProp$
|
|
2439
|
+
if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2322
2440
|
target[prop] = source[prop];
|
|
2323
|
-
if (source != null && __getOwnPropSymbols$
|
|
2324
|
-
for (var prop of __getOwnPropSymbols$
|
|
2325
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2441
|
+
if (source != null && __getOwnPropSymbols$r)
|
|
2442
|
+
for (var prop of __getOwnPropSymbols$r(source)) {
|
|
2443
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
|
|
2326
2444
|
target[prop] = source[prop];
|
|
2327
2445
|
}
|
|
2328
2446
|
return target;
|
|
@@ -2331,13 +2449,13 @@
|
|
|
2331
2449
|
var _b = _a, {
|
|
2332
2450
|
input,
|
|
2333
2451
|
meta
|
|
2334
|
-
} = _b, props = __objRest$
|
|
2452
|
+
} = _b, props = __objRest$9(_b, [
|
|
2335
2453
|
"input",
|
|
2336
2454
|
"meta"
|
|
2337
2455
|
]);
|
|
2338
2456
|
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(
|
|
2339
2457
|
TimePicker,
|
|
2340
|
-
__spreadValues$
|
|
2458
|
+
__spreadValues$r(__spreadProps$k(__spreadValues$r({}, input), {
|
|
2341
2459
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
2342
2460
|
}), props)
|
|
2343
2461
|
));
|
|
@@ -2356,29 +2474,32 @@
|
|
|
2356
2474
|
DateTimeRange: FieldsDateTimeRange
|
|
2357
2475
|
};
|
|
2358
2476
|
|
|
2359
|
-
var __defProp$
|
|
2360
|
-
var __defProps$
|
|
2361
|
-
var __getOwnPropDescs$
|
|
2362
|
-
var __getOwnPropSymbols$
|
|
2363
|
-
var __hasOwnProp$
|
|
2364
|
-
var __propIsEnum$
|
|
2365
|
-
var __defNormalProp$
|
|
2477
|
+
var __defProp$q = Object.defineProperty;
|
|
2478
|
+
var __defProps$j = Object.defineProperties;
|
|
2479
|
+
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
2480
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
2481
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
2482
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
2483
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, {
|
|
2366
2484
|
enumerable: true,
|
|
2367
2485
|
configurable: true,
|
|
2368
2486
|
writable: true,
|
|
2369
2487
|
value
|
|
2370
2488
|
}) : obj[key] = value;
|
|
2371
|
-
var __spreadValues$
|
|
2372
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
2373
|
-
if (__getOwnPropSymbols$
|
|
2374
|
-
if (__propIsEnum$
|
|
2489
|
+
var __spreadValues$q = (a, b) => {
|
|
2490
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$q.call(b, prop)) __defNormalProp$q(a, prop, b[prop]);
|
|
2491
|
+
if (__getOwnPropSymbols$q) for (var prop of __getOwnPropSymbols$q(b)) {
|
|
2492
|
+
if (__propIsEnum$q.call(b, prop)) __defNormalProp$q(a, prop, b[prop]);
|
|
2375
2493
|
}
|
|
2376
2494
|
return a;
|
|
2377
2495
|
};
|
|
2378
|
-
var __spreadProps$
|
|
2496
|
+
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
2497
|
+
const {
|
|
2498
|
+
Item: AntdFormItem
|
|
2499
|
+
} = antd.Form;
|
|
2379
2500
|
const FormItemStyle$1 = "f1p9ti6d";
|
|
2380
2501
|
const FormItem$1 = props => {
|
|
2381
|
-
return /* @__PURE__ */React__namespace.default.createElement(
|
|
2502
|
+
return /* @__PURE__ */React__namespace.default.createElement(AntdFormItem, __spreadProps$j(__spreadValues$q({}, props), {
|
|
2382
2503
|
className: cs__default.default(FormItemStyle$1, props.className)
|
|
2383
2504
|
}));
|
|
2384
2505
|
};
|
|
@@ -2386,19 +2507,19 @@
|
|
|
2386
2507
|
const Form = antd.Form;
|
|
2387
2508
|
Form.Item = FormItem$1;
|
|
2388
2509
|
|
|
2389
|
-
var __defProp$
|
|
2390
|
-
var __getOwnPropSymbols$
|
|
2391
|
-
var __hasOwnProp$
|
|
2392
|
-
var __propIsEnum$
|
|
2393
|
-
var __defNormalProp$
|
|
2394
|
-
var __spreadValues$
|
|
2510
|
+
var __defProp$p = Object.defineProperty;
|
|
2511
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
2512
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
2513
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
2514
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2515
|
+
var __spreadValues$p = (a, b) => {
|
|
2395
2516
|
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$
|
|
2517
|
+
if (__hasOwnProp$p.call(b, prop))
|
|
2518
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
2519
|
+
if (__getOwnPropSymbols$p)
|
|
2520
|
+
for (var prop of __getOwnPropSymbols$p(b)) {
|
|
2521
|
+
if (__propIsEnum$p.call(b, prop))
|
|
2522
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
2402
2523
|
}
|
|
2403
2524
|
return a;
|
|
2404
2525
|
};
|
|
@@ -2410,7 +2531,7 @@
|
|
|
2410
2531
|
emptyProps
|
|
2411
2532
|
}) => {
|
|
2412
2533
|
if (isEmpty(rawValue)) {
|
|
2413
|
-
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$
|
|
2534
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$p({}, emptyProps));
|
|
2414
2535
|
}
|
|
2415
2536
|
const { value, unit } = formatFrequency(rawValue, decimals);
|
|
2416
2537
|
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 +2544,25 @@
|
|
|
2423
2544
|
propsAsIs: true
|
|
2424
2545
|
});
|
|
2425
2546
|
|
|
2426
|
-
var __defProp$
|
|
2427
|
-
var __defProps$
|
|
2428
|
-
var __getOwnPropDescs$
|
|
2429
|
-
var __getOwnPropSymbols$
|
|
2430
|
-
var __hasOwnProp$
|
|
2431
|
-
var __propIsEnum$
|
|
2432
|
-
var __defNormalProp$
|
|
2433
|
-
var __spreadValues$
|
|
2547
|
+
var __defProp$o = Object.defineProperty;
|
|
2548
|
+
var __defProps$i = Object.defineProperties;
|
|
2549
|
+
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
2550
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
2551
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
2552
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
2553
|
+
var __defNormalProp$o = (obj, key2, value) => key2 in obj ? __defProp$o(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value;
|
|
2554
|
+
var __spreadValues$o = (a, b) => {
|
|
2434
2555
|
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$
|
|
2556
|
+
if (__hasOwnProp$o.call(b, prop))
|
|
2557
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
2558
|
+
if (__getOwnPropSymbols$o)
|
|
2559
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
|
2560
|
+
if (__propIsEnum$o.call(b, prop))
|
|
2561
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
2441
2562
|
}
|
|
2442
2563
|
return a;
|
|
2443
2564
|
};
|
|
2444
|
-
var __spreadProps$
|
|
2565
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
2445
2566
|
let messageInstance;
|
|
2446
2567
|
let defaultDuration = 3;
|
|
2447
2568
|
let defaultTop;
|
|
@@ -2548,7 +2669,7 @@
|
|
|
2548
2669
|
}
|
|
2549
2670
|
getRCNotificationInstance(args, ({ prefixCls, instance }) => {
|
|
2550
2671
|
instance.notice(
|
|
2551
|
-
getRCNoticeProps(__spreadProps$
|
|
2672
|
+
getRCNoticeProps(__spreadProps$i(__spreadValues$o({}, args), { key: target, onClose: callback }), prefixCls)
|
|
2552
2673
|
);
|
|
2553
2674
|
});
|
|
2554
2675
|
});
|
|
@@ -2577,7 +2698,7 @@
|
|
|
2577
2698
|
function attachTypeApi(originalApi, type) {
|
|
2578
2699
|
originalApi[type] = (content, duration, onClose) => {
|
|
2579
2700
|
if (isArgsProps(content)) {
|
|
2580
|
-
return originalApi.open(__spreadProps$
|
|
2701
|
+
return originalApi.open(__spreadProps$i(__spreadValues$o({}, content), { type }));
|
|
2581
2702
|
}
|
|
2582
2703
|
if (typeof duration === "function") {
|
|
2583
2704
|
onClose = duration;
|
|
@@ -2591,25 +2712,25 @@
|
|
|
2591
2712
|
);
|
|
2592
2713
|
api.warn = api.warning;
|
|
2593
2714
|
|
|
2594
|
-
var __defProp$
|
|
2595
|
-
var __defProps$
|
|
2596
|
-
var __getOwnPropDescs$
|
|
2597
|
-
var __getOwnPropSymbols$
|
|
2598
|
-
var __hasOwnProp$
|
|
2599
|
-
var __propIsEnum$
|
|
2600
|
-
var __defNormalProp$
|
|
2601
|
-
var __spreadValues$
|
|
2715
|
+
var __defProp$n = Object.defineProperty;
|
|
2716
|
+
var __defProps$h = Object.defineProperties;
|
|
2717
|
+
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
2718
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
2719
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
2720
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
2721
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2722
|
+
var __spreadValues$n = (a, b) => {
|
|
2602
2723
|
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$
|
|
2724
|
+
if (__hasOwnProp$n.call(b, prop))
|
|
2725
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
2726
|
+
if (__getOwnPropSymbols$n)
|
|
2727
|
+
for (var prop of __getOwnPropSymbols$n(b)) {
|
|
2728
|
+
if (__propIsEnum$n.call(b, prop))
|
|
2729
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
2609
2730
|
}
|
|
2610
2731
|
return a;
|
|
2611
2732
|
};
|
|
2612
|
-
var __spreadProps$
|
|
2733
|
+
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
2613
2734
|
const initialChartState = {
|
|
2614
2735
|
pointers: {},
|
|
2615
2736
|
resourceData: {},
|
|
@@ -2619,8 +2740,8 @@
|
|
|
2619
2740
|
switch (action.type) {
|
|
2620
2741
|
case "SET_POINTER" /* SET_POINTER */: {
|
|
2621
2742
|
const { uuid, left, text, visible, value } = action.payload;
|
|
2622
|
-
return __spreadProps$
|
|
2623
|
-
pointers: __spreadProps$
|
|
2743
|
+
return __spreadProps$h(__spreadValues$n({}, state), {
|
|
2744
|
+
pointers: __spreadProps$h(__spreadValues$n({}, state.pointers), {
|
|
2624
2745
|
[uuid]: {
|
|
2625
2746
|
left,
|
|
2626
2747
|
text,
|
|
@@ -2632,16 +2753,16 @@
|
|
|
2632
2753
|
}
|
|
2633
2754
|
case "SET_RESOURCE_DATA" /* SET_RESOURCE_DATA */: {
|
|
2634
2755
|
const { uuid, data } = action.payload;
|
|
2635
|
-
return __spreadProps$
|
|
2636
|
-
resourceData: __spreadProps$
|
|
2756
|
+
return __spreadProps$h(__spreadValues$n({}, state), {
|
|
2757
|
+
resourceData: __spreadProps$h(__spreadValues$n({}, state.resourceData), {
|
|
2637
2758
|
[uuid]: data
|
|
2638
2759
|
})
|
|
2639
2760
|
});
|
|
2640
2761
|
}
|
|
2641
2762
|
case "SET_AVERAGE_DATA" /* SET_AVERAGE_DATA */: {
|
|
2642
2763
|
const { uuid, average } = action.payload;
|
|
2643
|
-
return __spreadProps$
|
|
2644
|
-
averageData: __spreadProps$
|
|
2764
|
+
return __spreadProps$h(__spreadValues$n({}, state), {
|
|
2765
|
+
averageData: __spreadProps$h(__spreadValues$n({}, state.averageData), {
|
|
2645
2766
|
[uuid]: average
|
|
2646
2767
|
})
|
|
2647
2768
|
});
|
|
@@ -2652,25 +2773,25 @@
|
|
|
2652
2773
|
}
|
|
2653
2774
|
};
|
|
2654
2775
|
|
|
2655
|
-
var __defProp$
|
|
2656
|
-
var __defProps$
|
|
2657
|
-
var __getOwnPropDescs$
|
|
2658
|
-
var __getOwnPropSymbols$
|
|
2659
|
-
var __hasOwnProp$
|
|
2660
|
-
var __propIsEnum$
|
|
2661
|
-
var __defNormalProp$
|
|
2662
|
-
var __spreadValues$
|
|
2776
|
+
var __defProp$m = Object.defineProperty;
|
|
2777
|
+
var __defProps$g = Object.defineProperties;
|
|
2778
|
+
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
2779
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
2780
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
2781
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
2782
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2783
|
+
var __spreadValues$m = (a, b) => {
|
|
2663
2784
|
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$
|
|
2785
|
+
if (__hasOwnProp$m.call(b, prop))
|
|
2786
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
2787
|
+
if (__getOwnPropSymbols$m)
|
|
2788
|
+
for (var prop of __getOwnPropSymbols$m(b)) {
|
|
2789
|
+
if (__propIsEnum$m.call(b, prop))
|
|
2790
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
2670
2791
|
}
|
|
2671
2792
|
return a;
|
|
2672
2793
|
};
|
|
2673
|
-
var __spreadProps$
|
|
2794
|
+
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
2674
2795
|
var ModalActions = /* @__PURE__ */ ((ModalActions2) => {
|
|
2675
2796
|
ModalActions2["PUSH_MODAL"] = "PUSH_MODAL";
|
|
2676
2797
|
ModalActions2["POP_MODAL"] = "POP_MODAL";
|
|
@@ -2691,22 +2812,22 @@
|
|
|
2691
2812
|
)) {
|
|
2692
2813
|
return state;
|
|
2693
2814
|
}
|
|
2694
|
-
return __spreadProps$
|
|
2695
|
-
stack: state.stack.concat(__spreadProps$
|
|
2815
|
+
return __spreadProps$g(__spreadValues$m({}, state), {
|
|
2816
|
+
stack: state.stack.concat(__spreadProps$g(__spreadValues$m({}, action.payload), {
|
|
2696
2817
|
id: MODAL_ID++
|
|
2697
2818
|
}))
|
|
2698
2819
|
});
|
|
2699
2820
|
case "POP_MODAL" /* POP_MODAL */:
|
|
2700
|
-
return __spreadProps$
|
|
2821
|
+
return __spreadProps$g(__spreadValues$m({}, state), {
|
|
2701
2822
|
stack: state.stack.slice(0, -1)
|
|
2702
2823
|
});
|
|
2703
2824
|
case "REMOVE_MODAL" /* REMOVE_MODAL */:
|
|
2704
|
-
return __spreadProps$
|
|
2825
|
+
return __spreadProps$g(__spreadValues$m({}, state), {
|
|
2705
2826
|
closeId: 0,
|
|
2706
2827
|
stack: state.stack.filter((m) => m.id !== action.id)
|
|
2707
2828
|
});
|
|
2708
2829
|
case "CLOSE_MODAL" /* CLOSE_MODAL */:
|
|
2709
|
-
return __spreadProps$
|
|
2830
|
+
return __spreadProps$g(__spreadValues$m({}, state), {
|
|
2710
2831
|
closeId: action.id
|
|
2711
2832
|
});
|
|
2712
2833
|
default:
|
|
@@ -2757,33 +2878,33 @@
|
|
|
2757
2878
|
const useKitDispatch = reactRedux.createDispatchHook(ctx);
|
|
2758
2879
|
const useKitSelector = reactRedux.createSelectorHook(ctx);
|
|
2759
2880
|
|
|
2760
|
-
var __defProp$
|
|
2761
|
-
var __defProps$
|
|
2762
|
-
var __getOwnPropDescs$
|
|
2763
|
-
var __getOwnPropSymbols$
|
|
2764
|
-
var __hasOwnProp$
|
|
2765
|
-
var __propIsEnum$
|
|
2766
|
-
var __defNormalProp$
|
|
2767
|
-
var __spreadValues$
|
|
2881
|
+
var __defProp$l = Object.defineProperty;
|
|
2882
|
+
var __defProps$f = Object.defineProperties;
|
|
2883
|
+
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
2884
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
2885
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
2886
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
2887
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2888
|
+
var __spreadValues$l = (a, b) => {
|
|
2768
2889
|
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$
|
|
2890
|
+
if (__hasOwnProp$l.call(b, prop))
|
|
2891
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
2892
|
+
if (__getOwnPropSymbols$l)
|
|
2893
|
+
for (var prop of __getOwnPropSymbols$l(b)) {
|
|
2894
|
+
if (__propIsEnum$l.call(b, prop))
|
|
2895
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
2775
2896
|
}
|
|
2776
2897
|
return a;
|
|
2777
2898
|
};
|
|
2778
|
-
var __spreadProps$
|
|
2779
|
-
var __objRest$
|
|
2899
|
+
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
2900
|
+
var __objRest$8 = (source, exclude) => {
|
|
2780
2901
|
var target = {};
|
|
2781
2902
|
for (var prop in source)
|
|
2782
|
-
if (__hasOwnProp$
|
|
2903
|
+
if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2783
2904
|
target[prop] = source[prop];
|
|
2784
|
-
if (source != null && __getOwnPropSymbols$
|
|
2785
|
-
for (var prop of __getOwnPropSymbols$
|
|
2786
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2905
|
+
if (source != null && __getOwnPropSymbols$l)
|
|
2906
|
+
for (var prop of __getOwnPropSymbols$l(source)) {
|
|
2907
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
|
|
2787
2908
|
target[prop] = source[prop];
|
|
2788
2909
|
}
|
|
2789
2910
|
return target;
|
|
@@ -2810,7 +2931,7 @@
|
|
|
2810
2931
|
showCancel = true,
|
|
2811
2932
|
showOk = true,
|
|
2812
2933
|
afterClose
|
|
2813
|
-
} = _a, restProps = __objRest$
|
|
2934
|
+
} = _a, restProps = __objRest$8(_a, [
|
|
2814
2935
|
"error",
|
|
2815
2936
|
"okText",
|
|
2816
2937
|
"cancelText",
|
|
@@ -2865,7 +2986,7 @@
|
|
|
2865
2986
|
}
|
|
2866
2987
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
2867
2988
|
antd.Modal,
|
|
2868
|
-
__spreadProps$
|
|
2989
|
+
__spreadProps$f(__spreadValues$l({
|
|
2869
2990
|
maskClosable,
|
|
2870
2991
|
className: cs__default.default(
|
|
2871
2992
|
className,
|
|
@@ -2900,7 +3021,7 @@
|
|
|
2900
3021
|
prevText
|
|
2901
3022
|
), 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
3023
|
Button,
|
|
2903
|
-
__spreadValues$
|
|
3024
|
+
__spreadValues$l({
|
|
2904
3025
|
type: "quiet",
|
|
2905
3026
|
onMouseDown: (e) => {
|
|
2906
3027
|
e.preventDefault();
|
|
@@ -2914,7 +3035,7 @@
|
|
|
2914
3035
|
cancelText
|
|
2915
3036
|
), showOk && /* @__PURE__ */ React__namespace.default.createElement(
|
|
2916
3037
|
Button,
|
|
2917
|
-
__spreadValues$
|
|
3038
|
+
__spreadValues$l({
|
|
2918
3039
|
onClick: (e) => {
|
|
2919
3040
|
var _a2, _b2;
|
|
2920
3041
|
onOk == null ? void 0 : onOk(e);
|
|
@@ -3066,19 +3187,19 @@
|
|
|
3066
3187
|
}))));
|
|
3067
3188
|
};
|
|
3068
3189
|
|
|
3069
|
-
var __defProp$
|
|
3070
|
-
var __getOwnPropSymbols$
|
|
3071
|
-
var __hasOwnProp$
|
|
3072
|
-
var __propIsEnum$
|
|
3073
|
-
var __defNormalProp$
|
|
3074
|
-
var __spreadValues$
|
|
3190
|
+
var __defProp$k = Object.defineProperty;
|
|
3191
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
|
3192
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
|
3193
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
|
3194
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3195
|
+
var __spreadValues$k = (a, b) => {
|
|
3075
3196
|
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$
|
|
3197
|
+
if (__hasOwnProp$k.call(b, prop))
|
|
3198
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
3199
|
+
if (__getOwnPropSymbols$k)
|
|
3200
|
+
for (var prop of __getOwnPropSymbols$k(b)) {
|
|
3201
|
+
if (__propIsEnum$k.call(b, prop))
|
|
3202
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
3082
3203
|
}
|
|
3083
3204
|
return a;
|
|
3084
3205
|
};
|
|
@@ -3091,52 +3212,52 @@
|
|
|
3091
3212
|
emptyProps
|
|
3092
3213
|
}) => {
|
|
3093
3214
|
if (isEmpty(rawValue)) {
|
|
3094
|
-
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$
|
|
3215
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$k({}, emptyProps));
|
|
3095
3216
|
}
|
|
3096
3217
|
const { value, unit } = formatPercent(rawValue, decimals, saturated);
|
|
3097
3218
|
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
3219
|
};
|
|
3099
3220
|
|
|
3100
|
-
var __defProp$
|
|
3101
|
-
var __getOwnPropSymbols$
|
|
3102
|
-
var __hasOwnProp$
|
|
3103
|
-
var __propIsEnum$
|
|
3104
|
-
var __defNormalProp$
|
|
3105
|
-
var __spreadValues$
|
|
3221
|
+
var __defProp$j = Object.defineProperty;
|
|
3222
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
3223
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
3224
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
3225
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3226
|
+
var __spreadValues$j = (a, b) => {
|
|
3106
3227
|
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$
|
|
3228
|
+
if (__hasOwnProp$j.call(b, prop))
|
|
3229
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
3230
|
+
if (__getOwnPropSymbols$j)
|
|
3231
|
+
for (var prop of __getOwnPropSymbols$j(b)) {
|
|
3232
|
+
if (__propIsEnum$j.call(b, prop))
|
|
3233
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
3113
3234
|
}
|
|
3114
3235
|
return a;
|
|
3115
3236
|
};
|
|
3116
|
-
const Progress = (props) => /* @__PURE__ */ React__namespace.default.createElement(antd.Progress, __spreadValues$
|
|
3237
|
+
const Progress = (props) => /* @__PURE__ */ React__namespace.default.createElement(antd.Progress, __spreadValues$j({}, props));
|
|
3117
3238
|
|
|
3118
|
-
var __defProp$
|
|
3119
|
-
var __getOwnPropSymbols$
|
|
3120
|
-
var __hasOwnProp$
|
|
3121
|
-
var __propIsEnum$
|
|
3122
|
-
var __defNormalProp$
|
|
3239
|
+
var __defProp$i = Object.defineProperty;
|
|
3240
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
3241
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
3242
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
3243
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, {
|
|
3123
3244
|
enumerable: true,
|
|
3124
3245
|
configurable: true,
|
|
3125
3246
|
writable: true,
|
|
3126
3247
|
value
|
|
3127
3248
|
}) : obj[key] = value;
|
|
3128
|
-
var __spreadValues$
|
|
3129
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3130
|
-
if (__getOwnPropSymbols$
|
|
3131
|
-
if (__propIsEnum$
|
|
3249
|
+
var __spreadValues$i = (a, b) => {
|
|
3250
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$i.call(b, prop)) __defNormalProp$i(a, prop, b[prop]);
|
|
3251
|
+
if (__getOwnPropSymbols$i) for (var prop of __getOwnPropSymbols$i(b)) {
|
|
3252
|
+
if (__propIsEnum$i.call(b, prop)) __defNormalProp$i(a, prop, b[prop]);
|
|
3132
3253
|
}
|
|
3133
3254
|
return a;
|
|
3134
3255
|
};
|
|
3135
|
-
var __objRest$
|
|
3256
|
+
var __objRest$7 = (source, exclude) => {
|
|
3136
3257
|
var target = {};
|
|
3137
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3138
|
-
if (source != null && __getOwnPropSymbols$
|
|
3139
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3258
|
+
for (var prop in source) if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3259
|
+
if (source != null && __getOwnPropSymbols$i) for (var prop of __getOwnPropSymbols$i(source)) {
|
|
3260
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop)) target[prop] = source[prop];
|
|
3140
3261
|
}
|
|
3141
3262
|
return target;
|
|
3142
3263
|
};
|
|
@@ -3152,7 +3273,7 @@
|
|
|
3152
3273
|
checked,
|
|
3153
3274
|
compact = false
|
|
3154
3275
|
} = _b,
|
|
3155
|
-
props = __objRest$
|
|
3276
|
+
props = __objRest$7(_b, ["children", "className", "checked", "compact"]);
|
|
3156
3277
|
const {
|
|
3157
3278
|
description
|
|
3158
3279
|
} = props;
|
|
@@ -3162,7 +3283,7 @@
|
|
|
3162
3283
|
className: core.cx("radio-description", Typo.Label.l4_regular)
|
|
3163
3284
|
}, description));
|
|
3164
3285
|
}
|
|
3165
|
-
return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement(antd.Radio, __spreadValues$
|
|
3286
|
+
return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement(antd.Radio, __spreadValues$i({
|
|
3166
3287
|
className: core.cx(className, RadioStyle, compact && "compact"),
|
|
3167
3288
|
checked: checked || false,
|
|
3168
3289
|
"data-test": context.name ? `${context.name}-${String(props.value)}` : String(props.value)
|
|
@@ -3174,13 +3295,13 @@
|
|
|
3174
3295
|
children,
|
|
3175
3296
|
className
|
|
3176
3297
|
} = _d,
|
|
3177
|
-
props = __objRest$
|
|
3298
|
+
props = __objRest$7(_d, ["children", "className"]);
|
|
3178
3299
|
return /* @__PURE__ */React__namespace.default.createElement(KitRadioGroupContext.Provider, {
|
|
3179
3300
|
value: {
|
|
3180
3301
|
disabled: props.disabled,
|
|
3181
3302
|
name: props.name
|
|
3182
3303
|
}
|
|
3183
|
-
}, /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Group, __spreadValues$
|
|
3304
|
+
}, /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Group, __spreadValues$i({
|
|
3184
3305
|
className: core.cx(className, RadioGroupStyle)
|
|
3185
3306
|
}, props), children ? children : null));
|
|
3186
3307
|
};
|
|
@@ -3190,7 +3311,7 @@
|
|
|
3190
3311
|
children,
|
|
3191
3312
|
className
|
|
3192
3313
|
} = _f,
|
|
3193
|
-
props = __objRest$
|
|
3314
|
+
props = __objRest$7(_f, ["children", "className"]);
|
|
3194
3315
|
const {
|
|
3195
3316
|
type,
|
|
3196
3317
|
placeholder = "Label",
|
|
@@ -3236,46 +3357,46 @@
|
|
|
3236
3357
|
className: "ant-radio-button-input-label"
|
|
3237
3358
|
}, typeof children === "string" ? children : ""));
|
|
3238
3359
|
};
|
|
3239
|
-
return /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Button, __spreadValues$
|
|
3360
|
+
return /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Button, __spreadValues$i({
|
|
3240
3361
|
className: core.cx(className, RadioButtonStyle),
|
|
3241
3362
|
value: radioButtonValue
|
|
3242
3363
|
}, props), renderChildren());
|
|
3243
3364
|
};
|
|
3244
3365
|
|
|
3245
|
-
var __defProp$
|
|
3246
|
-
var __getOwnPropSymbols$
|
|
3247
|
-
var __hasOwnProp$
|
|
3248
|
-
var __propIsEnum$
|
|
3249
|
-
var __defNormalProp$
|
|
3250
|
-
var __spreadValues$
|
|
3366
|
+
var __defProp$h = Object.defineProperty;
|
|
3367
|
+
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
|
3368
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
3369
|
+
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
|
3370
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3371
|
+
var __spreadValues$h = (a, b) => {
|
|
3251
3372
|
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$
|
|
3373
|
+
if (__hasOwnProp$h.call(b, prop))
|
|
3374
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
3375
|
+
if (__getOwnPropSymbols$h)
|
|
3376
|
+
for (var prop of __getOwnPropSymbols$h(b)) {
|
|
3377
|
+
if (__propIsEnum$h.call(b, prop))
|
|
3378
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
3258
3379
|
}
|
|
3259
3380
|
return a;
|
|
3260
3381
|
};
|
|
3261
|
-
var __objRest$
|
|
3382
|
+
var __objRest$6 = (source, exclude) => {
|
|
3262
3383
|
var target = {};
|
|
3263
3384
|
for (var prop in source)
|
|
3264
|
-
if (__hasOwnProp$
|
|
3385
|
+
if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3265
3386
|
target[prop] = source[prop];
|
|
3266
|
-
if (source != null && __getOwnPropSymbols$
|
|
3267
|
-
for (var prop of __getOwnPropSymbols$
|
|
3268
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3387
|
+
if (source != null && __getOwnPropSymbols$h)
|
|
3388
|
+
for (var prop of __getOwnPropSymbols$h(source)) {
|
|
3389
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
|
|
3269
3390
|
target[prop] = source[prop];
|
|
3270
3391
|
}
|
|
3271
3392
|
return target;
|
|
3272
3393
|
};
|
|
3273
3394
|
const SearchInput = (props) => {
|
|
3274
|
-
const _a = props, { onChange, debounceWait = 300 } = _a, restProps = __objRest$
|
|
3395
|
+
const _a = props, { onChange, debounceWait = 300 } = _a, restProps = __objRest$6(_a, ["onChange", "debounceWait"]);
|
|
3275
3396
|
const onSearch = ___default.default.debounce(onChange, debounceWait);
|
|
3276
3397
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
3277
3398
|
Input,
|
|
3278
|
-
__spreadValues$
|
|
3399
|
+
__spreadValues$h({
|
|
3279
3400
|
style: { width: 276 },
|
|
3280
3401
|
prefix: /* @__PURE__ */ React__namespace.default.createElement(icons.SearchOutlined, null),
|
|
3281
3402
|
onChange: (e) => onSearch(e.target.value)
|
|
@@ -3283,19 +3404,19 @@
|
|
|
3283
3404
|
);
|
|
3284
3405
|
};
|
|
3285
3406
|
|
|
3286
|
-
var __defProp$
|
|
3287
|
-
var __getOwnPropSymbols$
|
|
3288
|
-
var __hasOwnProp$
|
|
3289
|
-
var __propIsEnum$
|
|
3290
|
-
var __defNormalProp$
|
|
3291
|
-
var __spreadValues$
|
|
3407
|
+
var __defProp$g = Object.defineProperty;
|
|
3408
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
3409
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
3410
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
3411
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3412
|
+
var __spreadValues$g = (a, b) => {
|
|
3292
3413
|
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$
|
|
3414
|
+
if (__hasOwnProp$g.call(b, prop))
|
|
3415
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
3416
|
+
if (__getOwnPropSymbols$g)
|
|
3417
|
+
for (var prop of __getOwnPropSymbols$g(b)) {
|
|
3418
|
+
if (__propIsEnum$g.call(b, prop))
|
|
3419
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
3299
3420
|
}
|
|
3300
3421
|
return a;
|
|
3301
3422
|
};
|
|
@@ -3309,7 +3430,7 @@
|
|
|
3309
3430
|
}) => {
|
|
3310
3431
|
const { t } = useParrotTranslation();
|
|
3311
3432
|
if (isEmpty(rawValue)) {
|
|
3312
|
-
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$
|
|
3433
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$g({}, emptyProps));
|
|
3313
3434
|
}
|
|
3314
3435
|
const { value, unit } = formatSeconds(rawValue, decimals);
|
|
3315
3436
|
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}`)));
|
|
@@ -3391,19 +3512,19 @@
|
|
|
3391
3512
|
})));
|
|
3392
3513
|
};
|
|
3393
3514
|
|
|
3394
|
-
var __defProp$
|
|
3395
|
-
var __getOwnPropSymbols$
|
|
3396
|
-
var __hasOwnProp$
|
|
3397
|
-
var __propIsEnum$
|
|
3398
|
-
var __defNormalProp$
|
|
3399
|
-
var __spreadValues$
|
|
3515
|
+
var __defProp$f = Object.defineProperty;
|
|
3516
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
3517
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
3518
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
3519
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3520
|
+
var __spreadValues$f = (a, b) => {
|
|
3400
3521
|
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$
|
|
3522
|
+
if (__hasOwnProp$f.call(b, prop))
|
|
3523
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
3524
|
+
if (__getOwnPropSymbols$f)
|
|
3525
|
+
for (var prop of __getOwnPropSymbols$f(b)) {
|
|
3526
|
+
if (__propIsEnum$f.call(b, prop))
|
|
3527
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
3407
3528
|
}
|
|
3408
3529
|
return a;
|
|
3409
3530
|
};
|
|
@@ -3415,37 +3536,37 @@
|
|
|
3415
3536
|
emptyProps
|
|
3416
3537
|
}) => {
|
|
3417
3538
|
if (isEmpty(rawValue)) {
|
|
3418
|
-
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$
|
|
3539
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$f({}, emptyProps));
|
|
3419
3540
|
}
|
|
3420
3541
|
const { value, unit } = formatSpeed(rawValue, decimals);
|
|
3421
3542
|
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
3543
|
};
|
|
3423
3544
|
|
|
3424
|
-
var __defProp$
|
|
3425
|
-
var __defProps$
|
|
3426
|
-
var __getOwnPropDescs$
|
|
3427
|
-
var __getOwnPropSymbols$
|
|
3428
|
-
var __hasOwnProp$
|
|
3429
|
-
var __propIsEnum$
|
|
3430
|
-
var __defNormalProp$
|
|
3545
|
+
var __defProp$e = Object.defineProperty;
|
|
3546
|
+
var __defProps$e = Object.defineProperties;
|
|
3547
|
+
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
|
3548
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
3549
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
3550
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
3551
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, {
|
|
3431
3552
|
enumerable: true,
|
|
3432
3553
|
configurable: true,
|
|
3433
3554
|
writable: true,
|
|
3434
3555
|
value
|
|
3435
3556
|
}) : obj[key] = value;
|
|
3436
|
-
var __spreadValues$
|
|
3437
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3438
|
-
if (__getOwnPropSymbols$
|
|
3439
|
-
if (__propIsEnum$
|
|
3557
|
+
var __spreadValues$e = (a, b) => {
|
|
3558
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$e.call(b, prop)) __defNormalProp$e(a, prop, b[prop]);
|
|
3559
|
+
if (__getOwnPropSymbols$e) for (var prop of __getOwnPropSymbols$e(b)) {
|
|
3560
|
+
if (__propIsEnum$e.call(b, prop)) __defNormalProp$e(a, prop, b[prop]);
|
|
3440
3561
|
}
|
|
3441
3562
|
return a;
|
|
3442
3563
|
};
|
|
3443
|
-
var __spreadProps$
|
|
3444
|
-
var __objRest$
|
|
3564
|
+
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
|
3565
|
+
var __objRest$5 = (source, exclude) => {
|
|
3445
3566
|
var target = {};
|
|
3446
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3447
|
-
if (source != null && __getOwnPropSymbols$
|
|
3448
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3567
|
+
for (var prop in source) if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3568
|
+
if (source != null && __getOwnPropSymbols$e) for (var prop of __getOwnPropSymbols$e(source)) {
|
|
3569
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop)) target[prop] = source[prop];
|
|
3449
3570
|
}
|
|
3450
3571
|
return target;
|
|
3451
3572
|
};
|
|
@@ -3461,46 +3582,46 @@
|
|
|
3461
3582
|
containerClassname,
|
|
3462
3583
|
showStepCount
|
|
3463
3584
|
} = _a,
|
|
3464
|
-
stepsProps = __objRest$
|
|
3585
|
+
stepsProps = __objRest$5(_a, ["stepsConfig", "containerClassname", "showStepCount"]);
|
|
3465
3586
|
const titleWithCount = (_step, count) => /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, showStepCount ? /* @__PURE__ */React__namespace.default.createElement("span", {
|
|
3466
3587
|
className: "step-count"
|
|
3467
3588
|
}, count) : null, _step.title);
|
|
3468
3589
|
return /* @__PURE__ */React__namespace.default.createElement(StepsContainer, {
|
|
3469
3590
|
className: containerClassname
|
|
3470
|
-
}, /* @__PURE__ */React__namespace.default.createElement(antd.Steps, __spreadProps$
|
|
3591
|
+
}, /* @__PURE__ */React__namespace.default.createElement(antd.Steps, __spreadProps$e(__spreadValues$e({}, stepsProps), {
|
|
3471
3592
|
type: "default"
|
|
3472
|
-
}), (stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */React__namespace.default.createElement(antd.Steps.Step, __spreadProps$
|
|
3593
|
+
}), (stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */React__namespace.default.createElement(antd.Steps.Step, __spreadProps$e(__spreadValues$e({
|
|
3473
3594
|
key: index
|
|
3474
3595
|
}, step), {
|
|
3475
3596
|
title: titleWithCount(step, index + 1)
|
|
3476
3597
|
}))) : props.children));
|
|
3477
3598
|
};
|
|
3478
3599
|
|
|
3479
|
-
var __defProp$
|
|
3480
|
-
var __defProps$
|
|
3481
|
-
var __getOwnPropDescs$
|
|
3482
|
-
var __getOwnPropSymbols$
|
|
3483
|
-
var __hasOwnProp$
|
|
3484
|
-
var __propIsEnum$
|
|
3485
|
-
var __defNormalProp$
|
|
3600
|
+
var __defProp$d = Object.defineProperty;
|
|
3601
|
+
var __defProps$d = Object.defineProperties;
|
|
3602
|
+
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
3603
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
3604
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
3605
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
3606
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, {
|
|
3486
3607
|
enumerable: true,
|
|
3487
3608
|
configurable: true,
|
|
3488
3609
|
writable: true,
|
|
3489
3610
|
value
|
|
3490
3611
|
}) : obj[key] = value;
|
|
3491
|
-
var __spreadValues$
|
|
3492
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3493
|
-
if (__getOwnPropSymbols$
|
|
3494
|
-
if (__propIsEnum$
|
|
3612
|
+
var __spreadValues$d = (a, b) => {
|
|
3613
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$d.call(b, prop)) __defNormalProp$d(a, prop, b[prop]);
|
|
3614
|
+
if (__getOwnPropSymbols$d) for (var prop of __getOwnPropSymbols$d(b)) {
|
|
3615
|
+
if (__propIsEnum$d.call(b, prop)) __defNormalProp$d(a, prop, b[prop]);
|
|
3495
3616
|
}
|
|
3496
3617
|
return a;
|
|
3497
3618
|
};
|
|
3498
|
-
var __spreadProps$
|
|
3499
|
-
var __objRest$
|
|
3619
|
+
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
|
3620
|
+
var __objRest$4 = (source, exclude) => {
|
|
3500
3621
|
var target = {};
|
|
3501
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3502
|
-
if (source != null && __getOwnPropSymbols$
|
|
3503
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3622
|
+
for (var prop in source) if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3623
|
+
if (source != null && __getOwnPropSymbols$d) for (var prop of __getOwnPropSymbols$d(source)) {
|
|
3624
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop)) target[prop] = source[prop];
|
|
3504
3625
|
}
|
|
3505
3626
|
return target;
|
|
3506
3627
|
};
|
|
@@ -3512,7 +3633,7 @@
|
|
|
3512
3633
|
className,
|
|
3513
3634
|
checked
|
|
3514
3635
|
} = _b,
|
|
3515
|
-
props = __objRest$
|
|
3636
|
+
props = __objRest$4(_b, ["children", "className", "checked"]);
|
|
3516
3637
|
const Content = /*#__PURE__*/react.styled('span')({
|
|
3517
3638
|
name: "Content",
|
|
3518
3639
|
class: "c1to9vb9",
|
|
@@ -3520,7 +3641,7 @@
|
|
|
3520
3641
|
});
|
|
3521
3642
|
const classNames = [className, SwitchStyle, "switch"];
|
|
3522
3643
|
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$
|
|
3644
|
+
return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement(antd.Switch, __spreadProps$d(__spreadValues$d({
|
|
3524
3645
|
className: core.cx(...classNames),
|
|
3525
3646
|
checked: checked || false
|
|
3526
3647
|
}, props), {
|
|
@@ -3606,26 +3727,26 @@
|
|
|
3606
3727
|
}));
|
|
3607
3728
|
};
|
|
3608
3729
|
|
|
3609
|
-
var __defProp$
|
|
3610
|
-
var __defProps$
|
|
3611
|
-
var __getOwnPropDescs$
|
|
3612
|
-
var __getOwnPropSymbols$
|
|
3613
|
-
var __hasOwnProp$
|
|
3614
|
-
var __propIsEnum$
|
|
3615
|
-
var __defNormalProp$
|
|
3730
|
+
var __defProp$c = Object.defineProperty;
|
|
3731
|
+
var __defProps$c = Object.defineProperties;
|
|
3732
|
+
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
3733
|
+
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
3734
|
+
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
3735
|
+
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
3736
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, {
|
|
3616
3737
|
enumerable: true,
|
|
3617
3738
|
configurable: true,
|
|
3618
3739
|
writable: true,
|
|
3619
3740
|
value
|
|
3620
3741
|
}) : obj[key] = value;
|
|
3621
|
-
var __spreadValues$
|
|
3622
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3623
|
-
if (__getOwnPropSymbols$
|
|
3624
|
-
if (__propIsEnum$
|
|
3742
|
+
var __spreadValues$c = (a, b) => {
|
|
3743
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$c.call(b, prop)) __defNormalProp$c(a, prop, b[prop]);
|
|
3744
|
+
if (__getOwnPropSymbols$c) for (var prop of __getOwnPropSymbols$c(b)) {
|
|
3745
|
+
if (__propIsEnum$c.call(b, prop)) __defNormalProp$c(a, prop, b[prop]);
|
|
3625
3746
|
}
|
|
3626
3747
|
return a;
|
|
3627
3748
|
};
|
|
3628
|
-
var __spreadProps$
|
|
3749
|
+
var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
|
|
3629
3750
|
const TableContainerStyle = "t1upn1sz";
|
|
3630
3751
|
const tableStyleCover = "tta5kd2";
|
|
3631
3752
|
const Table = props => {
|
|
@@ -3652,7 +3773,7 @@
|
|
|
3652
3773
|
const orderRef = React.useRef(null);
|
|
3653
3774
|
const hasScrollBard = useTableBodyHasScrollBar(wrapper, dataSource);
|
|
3654
3775
|
const _columns = React.useMemo(() => columns.map(column => {
|
|
3655
|
-
const _column = __spreadValues$
|
|
3776
|
+
const _column = __spreadValues$c({}, column);
|
|
3656
3777
|
if (_column.sorter && typeof _column.title !== "function") {
|
|
3657
3778
|
_column.title = /* @__PURE__ */React__namespace.default.createElement(ColumnTitle, {
|
|
3658
3779
|
title: column.title,
|
|
@@ -3689,12 +3810,12 @@
|
|
|
3689
3810
|
onSorterChange == null ? void 0 : onSorterChange(orderRef.current, sorter.columnKey);
|
|
3690
3811
|
}
|
|
3691
3812
|
},
|
|
3692
|
-
onRow: (record, index) => __spreadValues$
|
|
3813
|
+
onRow: (record, index) => __spreadValues$c({
|
|
3693
3814
|
onClick: evt => onRowClick == null ? void 0 : onRowClick(record, index, evt)
|
|
3694
3815
|
}, onRow == null ? void 0 : onRow(record, index)),
|
|
3695
3816
|
rowClassName,
|
|
3696
3817
|
scroll,
|
|
3697
|
-
rowSelection: rowSelection && __spreadProps$
|
|
3818
|
+
rowSelection: rowSelection && __spreadProps$c(__spreadValues$c({}, rowSelection), {
|
|
3698
3819
|
columnWidth: 32
|
|
3699
3820
|
}),
|
|
3700
3821
|
showSorterTooltip: false
|
|
@@ -3756,33 +3877,33 @@
|
|
|
3756
3877
|
return sortArr;
|
|
3757
3878
|
};
|
|
3758
3879
|
|
|
3759
|
-
var __defProp$
|
|
3760
|
-
var __defProps$
|
|
3761
|
-
var __getOwnPropDescs$
|
|
3762
|
-
var __getOwnPropSymbols$
|
|
3763
|
-
var __hasOwnProp$
|
|
3764
|
-
var __propIsEnum$
|
|
3765
|
-
var __defNormalProp$
|
|
3766
|
-
var __spreadValues$
|
|
3880
|
+
var __defProp$b = Object.defineProperty;
|
|
3881
|
+
var __defProps$b = Object.defineProperties;
|
|
3882
|
+
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
|
3883
|
+
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
3884
|
+
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
3885
|
+
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
3886
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3887
|
+
var __spreadValues$b = (a, b) => {
|
|
3767
3888
|
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$
|
|
3889
|
+
if (__hasOwnProp$b.call(b, prop))
|
|
3890
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
3891
|
+
if (__getOwnPropSymbols$b)
|
|
3892
|
+
for (var prop of __getOwnPropSymbols$b(b)) {
|
|
3893
|
+
if (__propIsEnum$b.call(b, prop))
|
|
3894
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
3774
3895
|
}
|
|
3775
3896
|
return a;
|
|
3776
3897
|
};
|
|
3777
|
-
var __spreadProps$
|
|
3778
|
-
var __objRest$
|
|
3898
|
+
var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
|
|
3899
|
+
var __objRest$3 = (source, exclude) => {
|
|
3779
3900
|
var target = {};
|
|
3780
3901
|
for (var prop in source)
|
|
3781
|
-
if (__hasOwnProp$
|
|
3902
|
+
if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3782
3903
|
target[prop] = source[prop];
|
|
3783
|
-
if (source != null && __getOwnPropSymbols$
|
|
3784
|
-
for (var prop of __getOwnPropSymbols$
|
|
3785
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3904
|
+
if (source != null && __getOwnPropSymbols$b)
|
|
3905
|
+
for (var prop of __getOwnPropSymbols$b(source)) {
|
|
3906
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
|
|
3786
3907
|
target[prop] = source[prop];
|
|
3787
3908
|
}
|
|
3788
3909
|
return target;
|
|
@@ -3798,7 +3919,7 @@
|
|
|
3798
3919
|
const _a = buttonProps || {}, {
|
|
3799
3920
|
disabled: disabledFromProp,
|
|
3800
3921
|
onClick
|
|
3801
|
-
} = _a, restButtonProps = __objRest$
|
|
3922
|
+
} = _a, restButtonProps = __objRest$3(_a, [
|
|
3802
3923
|
"disabled",
|
|
3803
3924
|
"onClick"
|
|
3804
3925
|
]);
|
|
@@ -3823,9 +3944,9 @@
|
|
|
3823
3944
|
if (!columns.length) {
|
|
3824
3945
|
return null;
|
|
3825
3946
|
}
|
|
3826
|
-
return CustomizedButton ? /* @__PURE__ */ React__namespace.default.createElement(CustomizedButton, __spreadValues$
|
|
3947
|
+
return CustomizedButton ? /* @__PURE__ */ React__namespace.default.createElement(CustomizedButton, __spreadValues$b({}, props)) : /* @__PURE__ */ React__namespace.default.createElement(AddRowButtonWrapper, { className }, /* @__PURE__ */ React__namespace.default.createElement(
|
|
3827
3948
|
Button,
|
|
3828
|
-
__spreadProps$
|
|
3949
|
+
__spreadProps$b(__spreadValues$b({}, restButtonProps), {
|
|
3829
3950
|
type: restButtonProps.type || "ordinary",
|
|
3830
3951
|
size: restButtonProps.size || "small",
|
|
3831
3952
|
icon: restButtonProps.icon || /* @__PURE__ */ React__namespace.default.createElement(icons.PlusOutlined, null),
|
|
@@ -3899,7 +4020,7 @@
|
|
|
3899
4020
|
},
|
|
3900
4021
|
[onChange]
|
|
3901
4022
|
);
|
|
3902
|
-
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
4023
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Checkbox, { onChange: _onChange });
|
|
3903
4024
|
};
|
|
3904
4025
|
const CheckboxColumnBodyCell = ({ data, column, index, onChange }) => {
|
|
3905
4026
|
const value = data[index][column.key] === void 0 ? column.defaultValue : data[index][column.key];
|
|
@@ -3911,7 +4032,7 @@
|
|
|
3911
4032
|
);
|
|
3912
4033
|
const defaultChecked = column.defaultValue;
|
|
3913
4034
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
3914
|
-
|
|
4035
|
+
Checkbox,
|
|
3915
4036
|
{
|
|
3916
4037
|
checked: value,
|
|
3917
4038
|
onChange: _onChange,
|
|
@@ -3920,25 +4041,25 @@
|
|
|
3920
4041
|
);
|
|
3921
4042
|
};
|
|
3922
4043
|
|
|
3923
|
-
var __defProp$
|
|
3924
|
-
var __defProps$
|
|
3925
|
-
var __getOwnPropDescs$
|
|
3926
|
-
var __getOwnPropSymbols$
|
|
3927
|
-
var __hasOwnProp$
|
|
3928
|
-
var __propIsEnum$
|
|
3929
|
-
var __defNormalProp$
|
|
3930
|
-
var __spreadValues$
|
|
4044
|
+
var __defProp$a = Object.defineProperty;
|
|
4045
|
+
var __defProps$a = Object.defineProperties;
|
|
4046
|
+
var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
|
|
4047
|
+
var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
|
|
4048
|
+
var __hasOwnProp$a = Object.prototype.hasOwnProperty;
|
|
4049
|
+
var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
|
|
4050
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4051
|
+
var __spreadValues$a = (a, b) => {
|
|
3931
4052
|
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$
|
|
4053
|
+
if (__hasOwnProp$a.call(b, prop))
|
|
4054
|
+
__defNormalProp$a(a, prop, b[prop]);
|
|
4055
|
+
if (__getOwnPropSymbols$a)
|
|
4056
|
+
for (var prop of __getOwnPropSymbols$a(b)) {
|
|
4057
|
+
if (__propIsEnum$a.call(b, prop))
|
|
4058
|
+
__defNormalProp$a(a, prop, b[prop]);
|
|
3938
4059
|
}
|
|
3939
4060
|
return a;
|
|
3940
4061
|
};
|
|
3941
|
-
var __spreadProps$
|
|
4062
|
+
var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
|
|
3942
4063
|
const InputPassword = (props) => {
|
|
3943
4064
|
const [showPassword, setShowPassword] = React.useState(false);
|
|
3944
4065
|
React.useEffect(() => {
|
|
@@ -3953,8 +4074,8 @@
|
|
|
3953
4074
|
};
|
|
3954
4075
|
const inputType = showPassword ? "text" : "password";
|
|
3955
4076
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
3956
|
-
|
|
3957
|
-
__spreadProps$
|
|
4077
|
+
Input,
|
|
4078
|
+
__spreadProps$a(__spreadValues$a({}, props), {
|
|
3958
4079
|
type: inputType,
|
|
3959
4080
|
suffix: showPassword ? /* @__PURE__ */ React__namespace.default.createElement(
|
|
3960
4081
|
icons.EyeOutlined,
|
|
@@ -3974,9 +4095,9 @@
|
|
|
3974
4095
|
};
|
|
3975
4096
|
const CustomInput = (props) => {
|
|
3976
4097
|
if (props.type === "password") {
|
|
3977
|
-
return /* @__PURE__ */ React__namespace.default.createElement(InputPassword, __spreadValues$
|
|
4098
|
+
return /* @__PURE__ */ React__namespace.default.createElement(InputPassword, __spreadValues$a({}, props));
|
|
3978
4099
|
}
|
|
3979
|
-
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
4100
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Input, __spreadValues$a({}, props));
|
|
3980
4101
|
};
|
|
3981
4102
|
const InputColumnHeaderCell = ({ disabled, column, onChange, onBlur, onVisibleChange }) => {
|
|
3982
4103
|
const _onChange = (e) => {
|
|
@@ -4004,7 +4125,8 @@
|
|
|
4004
4125
|
disabled,
|
|
4005
4126
|
onChange,
|
|
4006
4127
|
onBlur,
|
|
4007
|
-
visible
|
|
4128
|
+
visible,
|
|
4129
|
+
error
|
|
4008
4130
|
}) => {
|
|
4009
4131
|
const placeHolderValue = column.type === "password" ? "" : latestData[index][column.key];
|
|
4010
4132
|
const _onChange = (e) => {
|
|
@@ -4022,7 +4144,8 @@
|
|
|
4022
4144
|
placeholder: placeHolderValue || column.placeholder,
|
|
4023
4145
|
onChange: _onChange,
|
|
4024
4146
|
onBlur,
|
|
4025
|
-
visible
|
|
4147
|
+
visible,
|
|
4148
|
+
error
|
|
4026
4149
|
}
|
|
4027
4150
|
);
|
|
4028
4151
|
};
|
|
@@ -4098,25 +4221,25 @@
|
|
|
4098
4221
|
return ValidateTriggerType2;
|
|
4099
4222
|
})(ValidateTriggerType || {});
|
|
4100
4223
|
|
|
4101
|
-
var __defProp$
|
|
4102
|
-
var __defProps$
|
|
4103
|
-
var __getOwnPropDescs$
|
|
4104
|
-
var __getOwnPropSymbols$
|
|
4105
|
-
var __hasOwnProp$
|
|
4106
|
-
var __propIsEnum$
|
|
4107
|
-
var __defNormalProp$
|
|
4108
|
-
var __spreadValues$
|
|
4224
|
+
var __defProp$9 = Object.defineProperty;
|
|
4225
|
+
var __defProps$9 = Object.defineProperties;
|
|
4226
|
+
var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
|
|
4227
|
+
var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
|
|
4228
|
+
var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
|
|
4229
|
+
var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
|
|
4230
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4231
|
+
var __spreadValues$9 = (a, b) => {
|
|
4109
4232
|
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$
|
|
4233
|
+
if (__hasOwnProp$9.call(b, prop))
|
|
4234
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
4235
|
+
if (__getOwnPropSymbols$9)
|
|
4236
|
+
for (var prop of __getOwnPropSymbols$9(b)) {
|
|
4237
|
+
if (__propIsEnum$9.call(b, prop))
|
|
4238
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
4116
4239
|
}
|
|
4117
4240
|
return a;
|
|
4118
4241
|
};
|
|
4119
|
-
var __spreadProps$
|
|
4242
|
+
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
|
|
4120
4243
|
const TableFormBodyCell = (props) => {
|
|
4121
4244
|
const {
|
|
4122
4245
|
column,
|
|
@@ -4129,16 +4252,26 @@
|
|
|
4129
4252
|
disabled,
|
|
4130
4253
|
onChange,
|
|
4131
4254
|
onBlur,
|
|
4132
|
-
validateAll
|
|
4255
|
+
validateAll,
|
|
4256
|
+
error
|
|
4133
4257
|
} = props;
|
|
4134
4258
|
const [validateResult, setValidateResult] = React.useState();
|
|
4135
4259
|
const isTouched = React.useRef(false);
|
|
4136
4260
|
const width = typeof column.width === "number" ? column.width + "px" : column.width;
|
|
4261
|
+
const isCellErrorStyle = Boolean((validateResult == null ? void 0 : validateResult.isError) || isRowError);
|
|
4262
|
+
React.useEffect(() => {
|
|
4263
|
+
setValidateResult(
|
|
4264
|
+
error ? {
|
|
4265
|
+
msg: error,
|
|
4266
|
+
isError: true
|
|
4267
|
+
} : void 0
|
|
4268
|
+
);
|
|
4269
|
+
}, [error]);
|
|
4137
4270
|
const triggerValidate = React.useCallback(
|
|
4138
4271
|
(currentValue) => {
|
|
4139
4272
|
var _a;
|
|
4140
4273
|
const value = currentValue || data[rowIndex][column.key];
|
|
4141
|
-
const rowData = __spreadProps$
|
|
4274
|
+
const rowData = __spreadProps$9(__spreadValues$9({}, data[rowIndex]), { [column.key]: value });
|
|
4142
4275
|
const rowValidateRes = getRowValidateResult(rowData);
|
|
4143
4276
|
if (rowValidateRes) {
|
|
4144
4277
|
return;
|
|
@@ -4161,7 +4294,7 @@
|
|
|
4161
4294
|
}, [validateAll, triggerValidate]);
|
|
4162
4295
|
const _onChange = (value, data2) => {
|
|
4163
4296
|
const newData = data2.map(
|
|
4164
|
-
(row, i) => i === rowIndex ? __spreadProps$
|
|
4297
|
+
(row, i) => i === rowIndex ? __spreadProps$9(__spreadValues$9({}, row), { [column.key]: value }) : row
|
|
4165
4298
|
);
|
|
4166
4299
|
onChange == null ? void 0 : onChange(newData, rowIndex, column.key);
|
|
4167
4300
|
if (validateTriggerType === ValidateTriggerType.Normal && isTouched.current || validateTriggerType === ValidateTriggerType.Aggressive) {
|
|
@@ -4186,6 +4319,7 @@
|
|
|
4186
4319
|
latestData,
|
|
4187
4320
|
column,
|
|
4188
4321
|
visible: props.visible,
|
|
4322
|
+
error: isCellErrorStyle,
|
|
4189
4323
|
onChange: (val) => {
|
|
4190
4324
|
_onChange(val, data);
|
|
4191
4325
|
},
|
|
@@ -4203,7 +4337,7 @@
|
|
|
4203
4337
|
},
|
|
4204
4338
|
onBlur: _onBlur,
|
|
4205
4339
|
rowIndex,
|
|
4206
|
-
error:
|
|
4340
|
+
error: isCellErrorStyle
|
|
4207
4341
|
}) : renderDefaultComponent();
|
|
4208
4342
|
const CellDescription = React.useMemo(() => {
|
|
4209
4343
|
var _a;
|
|
@@ -4229,7 +4363,7 @@
|
|
|
4229
4363
|
/* @__PURE__ */ React__namespace.default.createElement(
|
|
4230
4364
|
FormItem,
|
|
4231
4365
|
{
|
|
4232
|
-
validateStatus:
|
|
4366
|
+
validateStatus: isCellErrorStyle ? "error" : "",
|
|
4233
4367
|
message: isRowError ? "" : validateResult == null ? void 0 : validateResult.msg
|
|
4234
4368
|
},
|
|
4235
4369
|
Cell
|
|
@@ -4238,26 +4372,55 @@
|
|
|
4238
4372
|
);
|
|
4239
4373
|
};
|
|
4240
4374
|
|
|
4241
|
-
var __defProp$
|
|
4242
|
-
var __defProps$
|
|
4243
|
-
var __getOwnPropDescs$
|
|
4244
|
-
var __getOwnPropSymbols$
|
|
4245
|
-
var __hasOwnProp$
|
|
4246
|
-
var __propIsEnum$
|
|
4247
|
-
var __defNormalProp$
|
|
4248
|
-
var __spreadValues$
|
|
4375
|
+
var __defProp$8 = Object.defineProperty;
|
|
4376
|
+
var __defProps$8 = Object.defineProperties;
|
|
4377
|
+
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
|
4378
|
+
var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
|
|
4379
|
+
var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
|
|
4380
|
+
var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
|
|
4381
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4382
|
+
var __spreadValues$8 = (a, b) => {
|
|
4249
4383
|
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$
|
|
4384
|
+
if (__hasOwnProp$8.call(b, prop))
|
|
4385
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
4386
|
+
if (__getOwnPropSymbols$8)
|
|
4387
|
+
for (var prop of __getOwnPropSymbols$8(b)) {
|
|
4388
|
+
if (__propIsEnum$8.call(b, prop))
|
|
4389
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
4256
4390
|
}
|
|
4257
4391
|
return a;
|
|
4258
4392
|
};
|
|
4259
|
-
var __spreadProps$
|
|
4393
|
+
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
4394
|
+
const TableFormRowDeleteAction = (props) => {
|
|
4395
|
+
var _a, _b, _c, _d;
|
|
4396
|
+
const { deleteConfig, row, updateData, rowIndex, data } = props;
|
|
4397
|
+
const { t } = useParrotTranslation();
|
|
4398
|
+
if (typeof (row == null ? void 0 : row.deletable) === "function" && !row.deletable(rowIndex, data)) {
|
|
4399
|
+
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null);
|
|
4400
|
+
}
|
|
4401
|
+
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 : [];
|
|
4402
|
+
const isRowDeleteDisabled = (_d = disableActionsFromRowConfig.includes("delete") || ((_c = deleteConfig == null ? void 0 : deleteConfig.specifyRowDeleteDisabled) == null ? void 0 : _c.call(deleteConfig, rowIndex, data))) != null ? _d : false;
|
|
4403
|
+
const DeleteIcon = /* @__PURE__ */ React__namespace.default.createElement(
|
|
4404
|
+
Icon,
|
|
4405
|
+
{
|
|
4406
|
+
"data-testid": "eagle-table-form-row-action",
|
|
4407
|
+
className: core.cx("delete-row-icon", isRowDeleteDisabled && "disabled"),
|
|
4408
|
+
src: iconsReact.XmarkRemove16SecondaryIcon,
|
|
4409
|
+
hoverSrc: isRowDeleteDisabled ? void 0 : iconsReact.XmarkRemove16RegularRedIcon,
|
|
4410
|
+
onClick: () => {
|
|
4411
|
+
if (isRowDeleteDisabled)
|
|
4412
|
+
return;
|
|
4413
|
+
const newData = [...data];
|
|
4414
|
+
newData.splice(rowIndex, 1);
|
|
4415
|
+
updateData(newData);
|
|
4416
|
+
}
|
|
4417
|
+
}
|
|
4418
|
+
);
|
|
4419
|
+
const DeleteAction = isRowDeleteDisabled ? DeleteIcon : /* @__PURE__ */ React__namespace.default.createElement(Tooltip, { title: t("components.remove") }, DeleteIcon);
|
|
4420
|
+
return DeleteAction;
|
|
4421
|
+
};
|
|
4260
4422
|
const TableFormRow = (props) => {
|
|
4423
|
+
var _a;
|
|
4261
4424
|
const {
|
|
4262
4425
|
data,
|
|
4263
4426
|
columns,
|
|
@@ -4270,55 +4433,35 @@
|
|
|
4270
4433
|
provided,
|
|
4271
4434
|
snapshot,
|
|
4272
4435
|
validateTriggerType = ValidateTriggerType.Normal,
|
|
4436
|
+
row,
|
|
4437
|
+
errors = [],
|
|
4273
4438
|
updateData,
|
|
4274
4439
|
onBodyBlur,
|
|
4275
4440
|
renderRowDescription,
|
|
4276
|
-
rowValidator,
|
|
4277
4441
|
validateAll
|
|
4278
4442
|
} = props;
|
|
4279
|
-
const { t } = useParrotTranslation();
|
|
4280
4443
|
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]);
|
|
4444
|
+
const errorFromProps = errors[rowIndex];
|
|
4445
|
+
const rowLevelError = typeof errorFromProps === "string" ? errorFromProps : void 0;
|
|
4446
|
+
const [rowError, setRowError] = React.useState(rowLevelError);
|
|
4447
|
+
const rowValidator = (row == null ? void 0 : row.validator) || props.rowValidator;
|
|
4448
|
+
const cellsLevelError = errorFromProps && typeof errorFromProps === "object" ? errorFromProps : null;
|
|
4449
|
+
React.useEffect(() => {
|
|
4450
|
+
setRowError(rowLevelError);
|
|
4451
|
+
}, [rowLevelError]);
|
|
4452
|
+
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
4453
|
const getRowValidateResult = React.useCallback(
|
|
4314
4454
|
(rowData2) => {
|
|
4315
|
-
|
|
4455
|
+
if (!rowValidator)
|
|
4456
|
+
return rowLevelError;
|
|
4457
|
+
const result = rowValidator(rowIndex, rowData2);
|
|
4316
4458
|
setRowError(result);
|
|
4317
4459
|
return result;
|
|
4318
4460
|
},
|
|
4319
|
-
[rowValidator, rowIndex]
|
|
4461
|
+
[rowValidator, rowIndex, rowLevelError]
|
|
4320
4462
|
);
|
|
4321
4463
|
const Cells = columns.map((col) => {
|
|
4464
|
+
const cellError = cellsLevelError == null ? void 0 : cellsLevelError[col.key];
|
|
4322
4465
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
4323
4466
|
TableFormBodyCell,
|
|
4324
4467
|
{
|
|
@@ -4334,12 +4477,13 @@
|
|
|
4334
4477
|
validateTriggerType,
|
|
4335
4478
|
isRowError: !!rowError,
|
|
4336
4479
|
getRowValidateResult,
|
|
4337
|
-
validateAll
|
|
4480
|
+
validateAll,
|
|
4481
|
+
error: cellError
|
|
4338
4482
|
}
|
|
4339
4483
|
);
|
|
4340
4484
|
});
|
|
4341
4485
|
const DraggableHandle = React.useMemo(
|
|
4342
|
-
() => draggable && provided ? /* @__PURE__ */ React__namespace.default.createElement(DraggableHandleWrapper, __spreadValues$
|
|
4486
|
+
() => draggable && provided ? /* @__PURE__ */ React__namespace.default.createElement(DraggableHandleWrapper, __spreadValues$8({}, provided.dragHandleProps), /* @__PURE__ */ React__namespace.default.createElement(
|
|
4343
4487
|
Icon,
|
|
4344
4488
|
{
|
|
4345
4489
|
src: iconsReact.HandlePoint816SecondaryIcon,
|
|
@@ -4349,22 +4493,35 @@
|
|
|
4349
4493
|
[draggable, provided]
|
|
4350
4494
|
);
|
|
4351
4495
|
const RowDescription = React.useMemo(() => {
|
|
4352
|
-
const
|
|
4496
|
+
const rowDescFuncParams = {
|
|
4353
4497
|
rowIndex,
|
|
4354
4498
|
rowData,
|
|
4355
4499
|
latestData
|
|
4356
|
-
}
|
|
4357
|
-
|
|
4358
|
-
|
|
4500
|
+
};
|
|
4501
|
+
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;
|
|
4502
|
+
return typeof DescriptionResult === "string" ? /* @__PURE__ */ React__namespace.default.createElement("p", { className: core.cx(Typo.Label.l4_regular, "row-description") }, DescriptionResult) : DescriptionResult;
|
|
4503
|
+
}, [rowIndex, rowData, latestData, renderRowDescription, row]);
|
|
4359
4504
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
4360
4505
|
antd.List.Item,
|
|
4361
4506
|
{
|
|
4362
4507
|
key: rowIndex,
|
|
4508
|
+
"data-testid": "eagle-table-form-row-for-test",
|
|
4363
4509
|
className: core.cx(
|
|
4364
4510
|
"eagle-table-form-row",
|
|
4365
4511
|
(snapshot == null ? void 0 : snapshot.isDragging) && "isDragging"
|
|
4366
4512
|
),
|
|
4367
|
-
actions:
|
|
4513
|
+
actions: rowDeletable ? [
|
|
4514
|
+
/* @__PURE__ */ React__namespace.default.createElement(
|
|
4515
|
+
TableFormRowDeleteAction,
|
|
4516
|
+
{
|
|
4517
|
+
data,
|
|
4518
|
+
rowIndex,
|
|
4519
|
+
deleteConfig,
|
|
4520
|
+
row,
|
|
4521
|
+
updateData
|
|
4522
|
+
}
|
|
4523
|
+
)
|
|
4524
|
+
] : void 0
|
|
4368
4525
|
},
|
|
4369
4526
|
DraggableHandle,
|
|
4370
4527
|
Cells,
|
|
@@ -4388,7 +4545,7 @@
|
|
|
4388
4545
|
);
|
|
4389
4546
|
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
4547
|
"div",
|
|
4391
|
-
__spreadValues$
|
|
4548
|
+
__spreadValues$8({
|
|
4392
4549
|
className: "draggable-container",
|
|
4393
4550
|
ref: provided.innerRef
|
|
4394
4551
|
}, provided.droppableProps),
|
|
@@ -4399,9 +4556,9 @@
|
|
|
4399
4556
|
key: `draggable-id-${i}`,
|
|
4400
4557
|
index: i
|
|
4401
4558
|
},
|
|
4402
|
-
(provided2, snapshot) => /* @__PURE__ */ React__namespace.default.createElement("div", __spreadValues$
|
|
4559
|
+
(provided2, snapshot) => /* @__PURE__ */ React__namespace.default.createElement("div", __spreadValues$8({ ref: provided2.innerRef }, provided2.draggableProps), /* @__PURE__ */ React__namespace.default.createElement(
|
|
4403
4560
|
TableFormRow,
|
|
4404
|
-
__spreadProps$
|
|
4561
|
+
__spreadProps$8(__spreadValues$8({}, props), {
|
|
4405
4562
|
rowIndex: i,
|
|
4406
4563
|
provided: provided2,
|
|
4407
4564
|
snapshot
|
|
@@ -4409,28 +4566,28 @@
|
|
|
4409
4566
|
))
|
|
4410
4567
|
)),
|
|
4411
4568
|
provided.placeholder
|
|
4412
|
-
))) : /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, data.map((_d, i) => /* @__PURE__ */ React__namespace.default.createElement(TableFormRow, __spreadProps$
|
|
4569
|
+
))) : /* @__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
4570
|
});
|
|
4414
4571
|
|
|
4415
|
-
var __defProp$
|
|
4416
|
-
var __defProps$
|
|
4417
|
-
var __getOwnPropDescs$
|
|
4418
|
-
var __getOwnPropSymbols$
|
|
4419
|
-
var __hasOwnProp$
|
|
4420
|
-
var __propIsEnum$
|
|
4421
|
-
var __defNormalProp$
|
|
4422
|
-
var __spreadValues$
|
|
4572
|
+
var __defProp$7 = Object.defineProperty;
|
|
4573
|
+
var __defProps$7 = Object.defineProperties;
|
|
4574
|
+
var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
|
|
4575
|
+
var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
|
|
4576
|
+
var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
|
|
4577
|
+
var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
|
|
4578
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4579
|
+
var __spreadValues$7 = (a, b) => {
|
|
4423
4580
|
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$
|
|
4581
|
+
if (__hasOwnProp$7.call(b, prop))
|
|
4582
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
4583
|
+
if (__getOwnPropSymbols$7)
|
|
4584
|
+
for (var prop of __getOwnPropSymbols$7(b)) {
|
|
4585
|
+
if (__propIsEnum$7.call(b, prop))
|
|
4586
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
4430
4587
|
}
|
|
4431
4588
|
return a;
|
|
4432
4589
|
};
|
|
4433
|
-
var __spreadProps$
|
|
4590
|
+
var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
|
|
4434
4591
|
const BatchInputListHeaderCell = (props) => {
|
|
4435
4592
|
const { column, disabled, data, disableBatchFilling, onBlur, onChange } = props;
|
|
4436
4593
|
const [errMsg, setErrMsg] = React.useState();
|
|
@@ -4442,7 +4599,7 @@
|
|
|
4442
4599
|
setErrMsg(err || void 0);
|
|
4443
4600
|
const shouldAutoIncrease = column.type !== "password" && column.autoIncrease;
|
|
4444
4601
|
const newData = data.map((cell, rowIndex) => {
|
|
4445
|
-
return __spreadProps$
|
|
4602
|
+
return __spreadProps$7(__spreadValues$7({}, cell), {
|
|
4446
4603
|
[column.key]: shouldAutoIncrease && typeof value === "string" ? increaseLastNumber(value, rowIndex) : value
|
|
4447
4604
|
});
|
|
4448
4605
|
});
|
|
@@ -4459,7 +4616,7 @@
|
|
|
4459
4616
|
const CellComponent = ColumnHeaderImpls[column.type];
|
|
4460
4617
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
4461
4618
|
CellComponent,
|
|
4462
|
-
__spreadProps$
|
|
4619
|
+
__spreadProps$7(__spreadValues$7({}, props), {
|
|
4463
4620
|
column,
|
|
4464
4621
|
onChange: headerOnChange,
|
|
4465
4622
|
onBlur: _onBlur
|
|
@@ -4494,51 +4651,56 @@
|
|
|
4494
4651
|
);
|
|
4495
4652
|
};
|
|
4496
4653
|
|
|
4497
|
-
var __defProp$
|
|
4498
|
-
var __defProps$
|
|
4499
|
-
var __getOwnPropDescs$
|
|
4500
|
-
var __getOwnPropSymbols$
|
|
4501
|
-
var __hasOwnProp$
|
|
4502
|
-
var __propIsEnum$
|
|
4503
|
-
var __defNormalProp$
|
|
4504
|
-
var __spreadValues$
|
|
4654
|
+
var __defProp$6 = Object.defineProperty;
|
|
4655
|
+
var __defProps$6 = Object.defineProperties;
|
|
4656
|
+
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
4657
|
+
var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
|
|
4658
|
+
var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
|
|
4659
|
+
var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
|
|
4660
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4661
|
+
var __spreadValues$6 = (a, b) => {
|
|
4505
4662
|
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$
|
|
4663
|
+
if (__hasOwnProp$6.call(b, prop))
|
|
4664
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
4665
|
+
if (__getOwnPropSymbols$6)
|
|
4666
|
+
for (var prop of __getOwnPropSymbols$6(b)) {
|
|
4667
|
+
if (__propIsEnum$6.call(b, prop))
|
|
4668
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
4512
4669
|
}
|
|
4513
4670
|
return a;
|
|
4514
4671
|
};
|
|
4515
|
-
var __spreadProps$
|
|
4672
|
+
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
|
4516
4673
|
const DEFAULT_ROW_COUNT = 3;
|
|
4517
4674
|
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
|
-
|
|
4675
|
+
(props, ref) => {
|
|
4676
|
+
var _a, _b;
|
|
4677
|
+
const {
|
|
4678
|
+
// The empty array is valid data so do not initialize "defaultData" with it
|
|
4679
|
+
defaultData,
|
|
4680
|
+
columns,
|
|
4681
|
+
disabled,
|
|
4682
|
+
rowAddConfig,
|
|
4683
|
+
deleteConfig,
|
|
4684
|
+
size = "default",
|
|
4685
|
+
className,
|
|
4686
|
+
disableBatchFilling = false,
|
|
4687
|
+
validateTriggerType,
|
|
4688
|
+
maxHeight,
|
|
4689
|
+
renderRowDescription,
|
|
4690
|
+
rowValidator,
|
|
4691
|
+
onHeaderChange,
|
|
4692
|
+
onHeaderBlur,
|
|
4693
|
+
onBodyChange,
|
|
4694
|
+
onBodyBlur,
|
|
4695
|
+
row,
|
|
4696
|
+
errors
|
|
4697
|
+
} = props;
|
|
4698
|
+
const [data, setData] = React.useState(defaultData || []);
|
|
4539
4699
|
const [passwordVisible, setPasswordVisible] = React.useState(false);
|
|
4540
|
-
const [latestData, setLatestData] = React.useState(defaultData);
|
|
4700
|
+
const [latestData, setLatestData] = React.useState(defaultData || []);
|
|
4541
4701
|
const [validateAll, setValidateAll] = React.useState(false);
|
|
4702
|
+
const rowSplitType = (row == null ? void 0 : row.splitType) || props.rowSplitType || "border";
|
|
4703
|
+
const draggable = (_b = (_a = row == null ? void 0 : row.draggable) != null ? _a : props.draggable) != null ? _b : false;
|
|
4542
4704
|
const updateData = React.useCallback(
|
|
4543
4705
|
(value, rowIndex, columnKey) => {
|
|
4544
4706
|
setLatestData(value);
|
|
@@ -4548,7 +4710,7 @@
|
|
|
4548
4710
|
[onBodyChange]
|
|
4549
4711
|
);
|
|
4550
4712
|
React.useLayoutEffect(() => {
|
|
4551
|
-
if (defaultData
|
|
4713
|
+
if (!defaultData) {
|
|
4552
4714
|
updateData(
|
|
4553
4715
|
[...Array(DEFAULT_ROW_COUNT)].map(() => genEmptyRow(columns))
|
|
4554
4716
|
);
|
|
@@ -4569,7 +4731,7 @@
|
|
|
4569
4731
|
(key, error) => {
|
|
4570
4732
|
if (error) {
|
|
4571
4733
|
const newData = latestData.map((cell) => {
|
|
4572
|
-
return __spreadProps$
|
|
4734
|
+
return __spreadProps$6(__spreadValues$6({}, cell), {
|
|
4573
4735
|
[key]: ""
|
|
4574
4736
|
});
|
|
4575
4737
|
});
|
|
@@ -4627,7 +4789,7 @@
|
|
|
4627
4789
|
antd.List.Item,
|
|
4628
4790
|
{
|
|
4629
4791
|
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
|
|
4792
|
+
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
4793
|
},
|
|
4632
4794
|
draggable ? /* @__PURE__ */ React__namespace.default.createElement(DraggableHandleWrapper, null) : null,
|
|
4633
4795
|
headerCells
|
|
@@ -4643,11 +4805,13 @@
|
|
|
4643
4805
|
draggable,
|
|
4644
4806
|
rowSplitType,
|
|
4645
4807
|
validateTriggerType,
|
|
4808
|
+
row,
|
|
4646
4809
|
onBodyBlur,
|
|
4647
4810
|
updateData,
|
|
4648
4811
|
renderRowDescription,
|
|
4649
4812
|
rowValidator,
|
|
4650
|
-
validateAll
|
|
4813
|
+
validateAll,
|
|
4814
|
+
errors
|
|
4651
4815
|
}
|
|
4652
4816
|
))
|
|
4653
4817
|
), (rowAddConfig == null ? void 0 : rowAddConfig.addible) ? /* @__PURE__ */ React__namespace.default.createElement(
|
|
@@ -4662,6 +4826,139 @@
|
|
|
4662
4826
|
}
|
|
4663
4827
|
);
|
|
4664
4828
|
|
|
4829
|
+
const PresetColors$2 = [
|
|
4830
|
+
"blue",
|
|
4831
|
+
"red",
|
|
4832
|
+
"yellow",
|
|
4833
|
+
"green",
|
|
4834
|
+
"gray",
|
|
4835
|
+
"purple"
|
|
4836
|
+
];
|
|
4837
|
+
|
|
4838
|
+
const Size$1 = {
|
|
4839
|
+
small: "sut42l0",
|
|
4840
|
+
medium: "mfsz1jz"
|
|
4841
|
+
};
|
|
4842
|
+
const TagStyle$1 = "tnd6h4m";
|
|
4843
|
+
const IconStyle = "i1qw4clm";
|
|
4844
|
+
|
|
4845
|
+
var __defProp$5 = Object.defineProperty;
|
|
4846
|
+
var __defProps$5 = Object.defineProperties;
|
|
4847
|
+
var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
|
|
4848
|
+
var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
|
|
4849
|
+
var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
|
|
4850
|
+
var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
|
|
4851
|
+
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, {
|
|
4852
|
+
enumerable: true,
|
|
4853
|
+
configurable: true,
|
|
4854
|
+
writable: true,
|
|
4855
|
+
value
|
|
4856
|
+
}) : obj[key] = value;
|
|
4857
|
+
var __spreadValues$5 = (a, b) => {
|
|
4858
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$5.call(b, prop)) __defNormalProp$5(a, prop, b[prop]);
|
|
4859
|
+
if (__getOwnPropSymbols$5) for (var prop of __getOwnPropSymbols$5(b)) {
|
|
4860
|
+
if (__propIsEnum$5.call(b, prop)) __defNormalProp$5(a, prop, b[prop]);
|
|
4861
|
+
}
|
|
4862
|
+
return a;
|
|
4863
|
+
};
|
|
4864
|
+
var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
|
|
4865
|
+
var __objRest$2 = (source, exclude) => {
|
|
4866
|
+
var target = {};
|
|
4867
|
+
for (var prop in source) if (__hasOwnProp$5.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
4868
|
+
if (source != null && __getOwnPropSymbols$5) for (var prop of __getOwnPropSymbols$5(source)) {
|
|
4869
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$5.call(source, prop)) target[prop] = source[prop];
|
|
4870
|
+
}
|
|
4871
|
+
return target;
|
|
4872
|
+
};
|
|
4873
|
+
const WrapperStyle = "w1xcixj5";
|
|
4874
|
+
const SplitTag = _a => {
|
|
4875
|
+
var _b = _a,
|
|
4876
|
+
{
|
|
4877
|
+
size = "small",
|
|
4878
|
+
color = "gray",
|
|
4879
|
+
className,
|
|
4880
|
+
primaryContent,
|
|
4881
|
+
secondaryContent,
|
|
4882
|
+
icon
|
|
4883
|
+
} = _b,
|
|
4884
|
+
props = __objRest$2(_b, ["size", "color", "className", "primaryContent", "secondaryContent", "icon"]);
|
|
4885
|
+
return /* @__PURE__ */React__namespace.default.createElement(antd.Tag, __spreadProps$5(__spreadValues$5({}, props), {
|
|
4886
|
+
className: cs__default.default(className, TagStyle$1, Size$1[size], WrapperStyle, Typo.Label.l4_regular, {
|
|
4887
|
+
[`ant-tag-${color}`]: PresetColors$2.includes(color)
|
|
4888
|
+
}, "outside-tag")
|
|
4889
|
+
}), /* @__PURE__ */React__namespace.default.createElement(antd.Tag, {
|
|
4890
|
+
className: cs__default.default(Size$1[size], TagStyle$1, Typo.Label.l4_regular, {
|
|
4891
|
+
[`ant-tag-${color}`]: PresetColors$2.includes(color)
|
|
4892
|
+
}, "inside-tag")
|
|
4893
|
+
}, icon && /* @__PURE__ */React__namespace.default.createElement("span", {
|
|
4894
|
+
className: cs__default.default("ui-kit-tag-icon", IconStyle)
|
|
4895
|
+
}, icon), primaryContent), secondaryContent);
|
|
4896
|
+
};
|
|
4897
|
+
|
|
4898
|
+
var __defProp$4 = Object.defineProperty;
|
|
4899
|
+
var __defProps$4 = Object.defineProperties;
|
|
4900
|
+
var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
|
|
4901
|
+
var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
|
|
4902
|
+
var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
|
|
4903
|
+
var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
|
|
4904
|
+
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4905
|
+
var __spreadValues$4 = (a, b) => {
|
|
4906
|
+
for (var prop in b || (b = {}))
|
|
4907
|
+
if (__hasOwnProp$4.call(b, prop))
|
|
4908
|
+
__defNormalProp$4(a, prop, b[prop]);
|
|
4909
|
+
if (__getOwnPropSymbols$4)
|
|
4910
|
+
for (var prop of __getOwnPropSymbols$4(b)) {
|
|
4911
|
+
if (__propIsEnum$4.call(b, prop))
|
|
4912
|
+
__defNormalProp$4(a, prop, b[prop]);
|
|
4913
|
+
}
|
|
4914
|
+
return a;
|
|
4915
|
+
};
|
|
4916
|
+
var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
|
|
4917
|
+
var __objRest$1 = (source, exclude) => {
|
|
4918
|
+
var target = {};
|
|
4919
|
+
for (var prop in source)
|
|
4920
|
+
if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
4921
|
+
target[prop] = source[prop];
|
|
4922
|
+
if (source != null && __getOwnPropSymbols$4)
|
|
4923
|
+
for (var prop of __getOwnPropSymbols$4(source)) {
|
|
4924
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$4.call(source, prop))
|
|
4925
|
+
target[prop] = source[prop];
|
|
4926
|
+
}
|
|
4927
|
+
return target;
|
|
4928
|
+
};
|
|
4929
|
+
const PresetColors$1 = [...PresetColors$2, "red-ontint", "green-ontint"];
|
|
4930
|
+
const Tag = (_a) => {
|
|
4931
|
+
var _b = _a, {
|
|
4932
|
+
size = "small",
|
|
4933
|
+
color = "gray",
|
|
4934
|
+
className,
|
|
4935
|
+
hoverable = false,
|
|
4936
|
+
icon,
|
|
4937
|
+
children
|
|
4938
|
+
} = _b, props = __objRest$1(_b, [
|
|
4939
|
+
"size",
|
|
4940
|
+
"color",
|
|
4941
|
+
"className",
|
|
4942
|
+
"hoverable",
|
|
4943
|
+
"icon",
|
|
4944
|
+
"children"
|
|
4945
|
+
]);
|
|
4946
|
+
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
4947
|
+
antd.Tag,
|
|
4948
|
+
__spreadProps$4(__spreadValues$4({}, props), {
|
|
4949
|
+
className: cs__default.default(className, Size$1[size], TagStyle$1, Typo.Label.l4_regular, {
|
|
4950
|
+
[`ant-tag-${color}`]: PresetColors$1.includes(color),
|
|
4951
|
+
"tag-hover": hoverable
|
|
4952
|
+
}),
|
|
4953
|
+
closable: false,
|
|
4954
|
+
color: color === "gray" ? void 0 : color
|
|
4955
|
+
}),
|
|
4956
|
+
icon && /* @__PURE__ */ React__namespace.default.createElement("span", { className: cs__default.default("ui-kit-tag-icon", IconStyle) }, icon),
|
|
4957
|
+
children
|
|
4958
|
+
);
|
|
4959
|
+
};
|
|
4960
|
+
Tag.SplitTag = SplitTag;
|
|
4961
|
+
|
|
4665
4962
|
const allTimeZones = _.uniqBy(TimeZones__default.default.reduce((sum, zone) => {
|
|
4666
4963
|
const utcZones = zone.utc.map(utc => {
|
|
4667
4964
|
return {
|
|
@@ -4923,7 +5220,7 @@
|
|
|
4923
5220
|
layout: antd.Layout,
|
|
4924
5221
|
autoComplete: antd.AutoComplete,
|
|
4925
5222
|
message: api,
|
|
4926
|
-
tag:
|
|
5223
|
+
tag: Tag,
|
|
4927
5224
|
popover: antd.Popover,
|
|
4928
5225
|
arch: Arch,
|
|
4929
5226
|
buttonGroup: ButtonGroup,
|
|
@@ -4961,7 +5258,8 @@
|
|
|
4961
5258
|
antdCollapse: antd.Collapse,
|
|
4962
5259
|
antdTreeSelect: antd.TreeSelect,
|
|
4963
5260
|
antdDrawer: antd.Drawer,
|
|
4964
|
-
antdSteps: antd.Steps
|
|
5261
|
+
antdSteps: antd.Steps,
|
|
5262
|
+
card: Card
|
|
4965
5263
|
};
|
|
4966
5264
|
kit.option.isSelectOption = true;
|
|
4967
5265
|
kit.button.__ANT_BUTTON = true;
|