@cloudtower/eagle 0.26.5 → 0.26.6
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/Token/index.d.ts +4 -0
- package/dist/components.css +419 -346
- package/dist/esm/index.js +949 -898
- package/dist/esm/stats1.html +1 -1
- package/dist/spec/base.d.ts +7 -0
- package/dist/style.css +1187 -1114
- package/dist/umd/index.js +948 -897
- package/dist/umd/stats1.html +1 -1
- package/package.json +5 -5
package/dist/esm/index.js
CHANGED
|
@@ -23,7 +23,7 @@ import LoadingOutlined from '@ant-design/icons/LoadingOutlined';
|
|
|
23
23
|
import RCNotification from '@cloudtower/rc-notification';
|
|
24
24
|
import { combineReducers, createStore } from 'redux';
|
|
25
25
|
import { createDispatchHook, createSelectorHook, Provider } from 'react-redux';
|
|
26
|
-
import { XmarkRemove16SecondaryIcon, XmarkRemove16RegularRedIcon, HandlePoint816SecondaryIcon, HandlePoint816BlueIcon, CheckmarkDoneSuccessCorrect16BlueIcon } from '@cloudtower/icons-react';
|
|
26
|
+
import { XmarkRemove16SecondaryIcon, XmarkRemove16RegularRedIcon, HandlePoint816SecondaryIcon, HandlePoint816BlueIcon, CheckmarkDoneSuccessCorrect16BlueIcon, XmarkRemoveSmall16RegularInheritIcon } from '@cloudtower/icons-react';
|
|
27
27
|
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
|
|
28
28
|
import TimeZones from 'timezones.json';
|
|
29
29
|
import dayjs from 'dayjs';
|
|
@@ -253,30 +253,30 @@ function getAlertIcon(type) {
|
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
var __defProp$
|
|
257
|
-
var __getOwnPropSymbols$
|
|
258
|
-
var __hasOwnProp$
|
|
259
|
-
var __propIsEnum$
|
|
260
|
-
var __defNormalProp$
|
|
261
|
-
var __spreadValues$
|
|
256
|
+
var __defProp$P = Object.defineProperty;
|
|
257
|
+
var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
|
|
258
|
+
var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
|
|
259
|
+
var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
|
|
260
|
+
var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
261
|
+
var __spreadValues$P = (a, b) => {
|
|
262
262
|
for (var prop in b || (b = {}))
|
|
263
|
-
if (__hasOwnProp$
|
|
264
|
-
__defNormalProp$
|
|
265
|
-
if (__getOwnPropSymbols$
|
|
266
|
-
for (var prop of __getOwnPropSymbols$
|
|
267
|
-
if (__propIsEnum$
|
|
268
|
-
__defNormalProp$
|
|
263
|
+
if (__hasOwnProp$Q.call(b, prop))
|
|
264
|
+
__defNormalProp$P(a, prop, b[prop]);
|
|
265
|
+
if (__getOwnPropSymbols$Q)
|
|
266
|
+
for (var prop of __getOwnPropSymbols$Q(b)) {
|
|
267
|
+
if (__propIsEnum$Q.call(b, prop))
|
|
268
|
+
__defNormalProp$P(a, prop, b[prop]);
|
|
269
269
|
}
|
|
270
270
|
return a;
|
|
271
271
|
};
|
|
272
|
-
var __objRest$
|
|
272
|
+
var __objRest$t = (source, exclude) => {
|
|
273
273
|
var target = {};
|
|
274
274
|
for (var prop in source)
|
|
275
|
-
if (__hasOwnProp$
|
|
275
|
+
if (__hasOwnProp$Q.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
276
276
|
target[prop] = source[prop];
|
|
277
|
-
if (source != null && __getOwnPropSymbols$
|
|
278
|
-
for (var prop of __getOwnPropSymbols$
|
|
279
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
277
|
+
if (source != null && __getOwnPropSymbols$Q)
|
|
278
|
+
for (var prop of __getOwnPropSymbols$Q(source)) {
|
|
279
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$Q.call(source, prop))
|
|
280
280
|
target[prop] = source[prop];
|
|
281
281
|
}
|
|
282
282
|
return target;
|
|
@@ -294,7 +294,7 @@ const BaseIcon = React__default.forwardRef(
|
|
|
294
294
|
prefixNode,
|
|
295
295
|
suffixIconSrc: SuffixSrc,
|
|
296
296
|
src: Src
|
|
297
|
-
} = _a, HTMLSpanElementProps = __objRest$
|
|
297
|
+
} = _a, HTMLSpanElementProps = __objRest$t(_a, [
|
|
298
298
|
"alt",
|
|
299
299
|
"className",
|
|
300
300
|
"width",
|
|
@@ -308,10 +308,10 @@ const BaseIcon = React__default.forwardRef(
|
|
|
308
308
|
]);
|
|
309
309
|
return /* @__PURE__ */ React__default.createElement(
|
|
310
310
|
"span",
|
|
311
|
-
__spreadValues$
|
|
311
|
+
__spreadValues$P({
|
|
312
312
|
ref,
|
|
313
313
|
className,
|
|
314
|
-
style: _.pickBy(__spreadValues$
|
|
314
|
+
style: _.pickBy(__spreadValues$P({ cursor }, style))
|
|
315
315
|
}, HTMLSpanElementProps),
|
|
316
316
|
prefixNode,
|
|
317
317
|
/* @__PURE__ */ React__default.createElement("span", { className: "icon-inner" }, typeof Src === "string" ? /* @__PURE__ */ React__default.createElement("img", { alt, src: Src, width, height }) : /* @__PURE__ */ React__default.createElement(SVGUniqueID, null, Src({ width, height }))),
|
|
@@ -321,31 +321,31 @@ const BaseIcon = React__default.forwardRef(
|
|
|
321
321
|
}
|
|
322
322
|
);
|
|
323
323
|
|
|
324
|
-
var __defProp$
|
|
325
|
-
var __defProps$
|
|
326
|
-
var __getOwnPropDescs$
|
|
327
|
-
var __getOwnPropSymbols$
|
|
328
|
-
var __hasOwnProp$
|
|
329
|
-
var __propIsEnum$
|
|
330
|
-
var __defNormalProp$
|
|
324
|
+
var __defProp$O = Object.defineProperty;
|
|
325
|
+
var __defProps$y = Object.defineProperties;
|
|
326
|
+
var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
|
|
327
|
+
var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
|
|
328
|
+
var __hasOwnProp$P = Object.prototype.hasOwnProperty;
|
|
329
|
+
var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
|
|
330
|
+
var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, {
|
|
331
331
|
enumerable: true,
|
|
332
332
|
configurable: true,
|
|
333
333
|
writable: true,
|
|
334
334
|
value
|
|
335
335
|
}) : obj[key] = value;
|
|
336
|
-
var __spreadValues$
|
|
337
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
338
|
-
if (__getOwnPropSymbols$
|
|
339
|
-
if (__propIsEnum$
|
|
336
|
+
var __spreadValues$O = (a, b) => {
|
|
337
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$P.call(b, prop)) __defNormalProp$O(a, prop, b[prop]);
|
|
338
|
+
if (__getOwnPropSymbols$P) for (var prop of __getOwnPropSymbols$P(b)) {
|
|
339
|
+
if (__propIsEnum$P.call(b, prop)) __defNormalProp$O(a, prop, b[prop]);
|
|
340
340
|
}
|
|
341
341
|
return a;
|
|
342
342
|
};
|
|
343
|
-
var __spreadProps$
|
|
344
|
-
var __objRest$
|
|
343
|
+
var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
|
|
344
|
+
var __objRest$s = (source, exclude) => {
|
|
345
345
|
var target = {};
|
|
346
|
-
for (var prop in source) if (__hasOwnProp$
|
|
347
|
-
if (source != null && __getOwnPropSymbols$
|
|
348
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
346
|
+
for (var prop in source) if (__hasOwnProp$P.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
347
|
+
if (source != null && __getOwnPropSymbols$P) for (var prop of __getOwnPropSymbols$P(source)) {
|
|
348
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$P.call(source, prop)) target[prop] = source[prop];
|
|
349
349
|
}
|
|
350
350
|
return target;
|
|
351
351
|
};
|
|
@@ -369,7 +369,7 @@ const Icon = React__default.forwardRef((props, ref) => {
|
|
|
369
369
|
prefix,
|
|
370
370
|
suffix
|
|
371
371
|
} = _a,
|
|
372
|
-
restProps = __objRest$
|
|
372
|
+
restProps = __objRest$s(_a, ["src", "hoverSrc", "active", "activeSrc", "onMouseEnter", "onMouseLeave", "onMouseMove", "className", "iconWidth", "iconHeight", "cursor", "style", "isRotate", "prefix", "suffix"]);
|
|
373
373
|
const [hover, setHover] = useState(false);
|
|
374
374
|
const _src = useMemo(() => {
|
|
375
375
|
if (active && activeSrc) {
|
|
@@ -397,14 +397,14 @@ const Icon = React__default.forwardRef((props, ref) => {
|
|
|
397
397
|
}
|
|
398
398
|
return src2;
|
|
399
399
|
}, [active, hover, suffix]);
|
|
400
|
-
return /* @__PURE__ */React__default.createElement(BaseIcon, __spreadProps$
|
|
400
|
+
return /* @__PURE__ */React__default.createElement(BaseIcon, __spreadProps$y(__spreadValues$O({
|
|
401
401
|
src: _src,
|
|
402
402
|
className: cs(IconWrapper, "icon-wrapper", className, isRotate && "is-rotate"),
|
|
403
403
|
suffixIconSrc,
|
|
404
404
|
height: iconHeight,
|
|
405
405
|
width: iconWidth,
|
|
406
406
|
prefixNode: prefix,
|
|
407
|
-
style: _.pickBy(__spreadValues$
|
|
407
|
+
style: _.pickBy(__spreadValues$O({
|
|
408
408
|
cursor
|
|
409
409
|
}, style))
|
|
410
410
|
}, restProps), {
|
|
@@ -429,33 +429,33 @@ const Icon = React__default.forwardRef((props, ref) => {
|
|
|
429
429
|
}));
|
|
430
430
|
});
|
|
431
431
|
|
|
432
|
-
var __defProp$
|
|
433
|
-
var __defProps$
|
|
434
|
-
var __getOwnPropDescs$
|
|
435
|
-
var __getOwnPropSymbols$
|
|
436
|
-
var __hasOwnProp$
|
|
437
|
-
var __propIsEnum$
|
|
438
|
-
var __defNormalProp$
|
|
439
|
-
var __spreadValues$
|
|
432
|
+
var __defProp$N = Object.defineProperty;
|
|
433
|
+
var __defProps$x = Object.defineProperties;
|
|
434
|
+
var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
|
|
435
|
+
var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
|
|
436
|
+
var __hasOwnProp$O = Object.prototype.hasOwnProperty;
|
|
437
|
+
var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
|
|
438
|
+
var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
439
|
+
var __spreadValues$N = (a, b) => {
|
|
440
440
|
for (var prop in b || (b = {}))
|
|
441
|
-
if (__hasOwnProp$
|
|
442
|
-
__defNormalProp$
|
|
443
|
-
if (__getOwnPropSymbols$
|
|
444
|
-
for (var prop of __getOwnPropSymbols$
|
|
445
|
-
if (__propIsEnum$
|
|
446
|
-
__defNormalProp$
|
|
441
|
+
if (__hasOwnProp$O.call(b, prop))
|
|
442
|
+
__defNormalProp$N(a, prop, b[prop]);
|
|
443
|
+
if (__getOwnPropSymbols$O)
|
|
444
|
+
for (var prop of __getOwnPropSymbols$O(b)) {
|
|
445
|
+
if (__propIsEnum$O.call(b, prop))
|
|
446
|
+
__defNormalProp$N(a, prop, b[prop]);
|
|
447
447
|
}
|
|
448
448
|
return a;
|
|
449
449
|
};
|
|
450
|
-
var __spreadProps$
|
|
451
|
-
var __objRest$
|
|
450
|
+
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
|
451
|
+
var __objRest$r = (source, exclude) => {
|
|
452
452
|
var target = {};
|
|
453
453
|
for (var prop in source)
|
|
454
|
-
if (__hasOwnProp$
|
|
454
|
+
if (__hasOwnProp$O.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
455
455
|
target[prop] = source[prop];
|
|
456
|
-
if (source != null && __getOwnPropSymbols$
|
|
457
|
-
for (var prop of __getOwnPropSymbols$
|
|
458
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
456
|
+
if (source != null && __getOwnPropSymbols$O)
|
|
457
|
+
for (var prop of __getOwnPropSymbols$O(source)) {
|
|
458
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$O.call(source, prop))
|
|
459
459
|
target[prop] = source[prop];
|
|
460
460
|
}
|
|
461
461
|
return target;
|
|
@@ -468,7 +468,7 @@ const Alert = (_a) => {
|
|
|
468
468
|
className,
|
|
469
469
|
onClose,
|
|
470
470
|
closeText
|
|
471
|
-
} = _b, props = __objRest$
|
|
471
|
+
} = _b, props = __objRest$r(_b, [
|
|
472
472
|
"type",
|
|
473
473
|
"icon",
|
|
474
474
|
"showIcon",
|
|
@@ -480,7 +480,7 @@ const Alert = (_a) => {
|
|
|
480
480
|
const _type = type === "normal" ? "info" : type;
|
|
481
481
|
return /* @__PURE__ */ React__default.createElement(
|
|
482
482
|
Alert$1,
|
|
483
|
-
__spreadProps$
|
|
483
|
+
__spreadProps$x(__spreadValues$N({}, props), {
|
|
484
484
|
className: cs(type ? `alert-${type}` : "", className),
|
|
485
485
|
type: _type,
|
|
486
486
|
icon: icon || _icon,
|
|
@@ -508,42 +508,42 @@ const Arch = (props) => {
|
|
|
508
508
|
return /* @__PURE__ */ React__default.createElement("span", null, text);
|
|
509
509
|
};
|
|
510
510
|
|
|
511
|
-
var __defProp$
|
|
512
|
-
var __defProps$
|
|
513
|
-
var __getOwnPropDescs$
|
|
514
|
-
var __getOwnPropSymbols$
|
|
515
|
-
var __hasOwnProp$
|
|
516
|
-
var __propIsEnum$
|
|
517
|
-
var __defNormalProp$
|
|
518
|
-
var __spreadValues$
|
|
511
|
+
var __defProp$M = Object.defineProperty;
|
|
512
|
+
var __defProps$w = Object.defineProperties;
|
|
513
|
+
var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
|
|
514
|
+
var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
|
|
515
|
+
var __hasOwnProp$N = Object.prototype.hasOwnProperty;
|
|
516
|
+
var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
|
|
517
|
+
var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
518
|
+
var __spreadValues$M = (a, b) => {
|
|
519
519
|
for (var prop in b || (b = {}))
|
|
520
|
-
if (__hasOwnProp$
|
|
521
|
-
__defNormalProp$
|
|
522
|
-
if (__getOwnPropSymbols$
|
|
523
|
-
for (var prop of __getOwnPropSymbols$
|
|
524
|
-
if (__propIsEnum$
|
|
525
|
-
__defNormalProp$
|
|
520
|
+
if (__hasOwnProp$N.call(b, prop))
|
|
521
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
522
|
+
if (__getOwnPropSymbols$N)
|
|
523
|
+
for (var prop of __getOwnPropSymbols$N(b)) {
|
|
524
|
+
if (__propIsEnum$N.call(b, prop))
|
|
525
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
526
526
|
}
|
|
527
527
|
return a;
|
|
528
528
|
};
|
|
529
|
-
var __spreadProps$
|
|
530
|
-
var __objRest$
|
|
529
|
+
var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
|
|
530
|
+
var __objRest$q = (source, exclude) => {
|
|
531
531
|
var target = {};
|
|
532
532
|
for (var prop in source)
|
|
533
|
-
if (__hasOwnProp$
|
|
533
|
+
if (__hasOwnProp$N.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
534
534
|
target[prop] = source[prop];
|
|
535
|
-
if (source != null && __getOwnPropSymbols$
|
|
536
|
-
for (var prop of __getOwnPropSymbols$
|
|
537
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
535
|
+
if (source != null && __getOwnPropSymbols$N)
|
|
536
|
+
for (var prop of __getOwnPropSymbols$N(source)) {
|
|
537
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$N.call(source, prop))
|
|
538
538
|
target[prop] = source[prop];
|
|
539
539
|
}
|
|
540
540
|
return target;
|
|
541
541
|
};
|
|
542
542
|
const Badge = (_a) => {
|
|
543
|
-
var _b = _a, { type = "error", className } = _b, props = __objRest$
|
|
543
|
+
var _b = _a, { type = "error", className } = _b, props = __objRest$q(_b, ["type", "className"]);
|
|
544
544
|
return /* @__PURE__ */ React__default.createElement(
|
|
545
545
|
Badge$1,
|
|
546
|
-
__spreadProps$
|
|
546
|
+
__spreadProps$w(__spreadValues$M({
|
|
547
547
|
className: cx(`badge-${type}`, className)
|
|
548
548
|
}, props), {
|
|
549
549
|
showZero: false
|
|
@@ -552,7 +552,7 @@ const Badge = (_a) => {
|
|
|
552
552
|
};
|
|
553
553
|
|
|
554
554
|
function isEmpty(rawValue) {
|
|
555
|
-
if (rawValue === null || rawValue === void 0 || rawValue === MAGIC_METRIC_NULL || Number.isNaN(rawValue)) {
|
|
555
|
+
if (rawValue === null || rawValue === void 0 || rawValue === MAGIC_METRIC_NULL || Number.isNaN(rawValue) || !Number.isFinite(rawValue)) {
|
|
556
556
|
return true;
|
|
557
557
|
}
|
|
558
558
|
return false;
|
|
@@ -563,6 +563,36 @@ const Empty = (props) => {
|
|
|
563
563
|
return /* @__PURE__ */ React__default.createElement("span", { className, style }, "-");
|
|
564
564
|
};
|
|
565
565
|
|
|
566
|
+
var __defProp$L = Object.defineProperty;
|
|
567
|
+
var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
|
|
568
|
+
var __hasOwnProp$M = Object.prototype.hasOwnProperty;
|
|
569
|
+
var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
|
|
570
|
+
var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
571
|
+
var __spreadValues$L = (a, b) => {
|
|
572
|
+
for (var prop in b || (b = {}))
|
|
573
|
+
if (__hasOwnProp$M.call(b, prop))
|
|
574
|
+
__defNormalProp$L(a, prop, b[prop]);
|
|
575
|
+
if (__getOwnPropSymbols$M)
|
|
576
|
+
for (var prop of __getOwnPropSymbols$M(b)) {
|
|
577
|
+
if (__propIsEnum$M.call(b, prop))
|
|
578
|
+
__defNormalProp$L(a, prop, b[prop]);
|
|
579
|
+
}
|
|
580
|
+
return a;
|
|
581
|
+
};
|
|
582
|
+
const Bit = ({
|
|
583
|
+
rawValue,
|
|
584
|
+
decimals,
|
|
585
|
+
unitClassName,
|
|
586
|
+
valueClassName,
|
|
587
|
+
emptyProps
|
|
588
|
+
}) => {
|
|
589
|
+
if (isEmpty(rawValue)) {
|
|
590
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$L({}, emptyProps));
|
|
591
|
+
}
|
|
592
|
+
const { value, unit } = formatBits(rawValue, decimals);
|
|
593
|
+
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
594
|
+
};
|
|
595
|
+
|
|
566
596
|
var __defProp$K = Object.defineProperty;
|
|
567
597
|
var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
|
|
568
598
|
var __hasOwnProp$L = Object.prototype.hasOwnProperty;
|
|
@@ -579,17 +609,17 @@ var __spreadValues$K = (a, b) => {
|
|
|
579
609
|
}
|
|
580
610
|
return a;
|
|
581
611
|
};
|
|
582
|
-
const
|
|
612
|
+
const BitPerSeconds = ({
|
|
583
613
|
rawValue,
|
|
584
614
|
decimals,
|
|
585
|
-
unitClassName,
|
|
586
615
|
valueClassName,
|
|
616
|
+
unitClassName,
|
|
587
617
|
emptyProps
|
|
588
618
|
}) => {
|
|
589
619
|
if (isEmpty(rawValue)) {
|
|
590
620
|
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$K({}, emptyProps));
|
|
591
621
|
}
|
|
592
|
-
const { value, unit } =
|
|
622
|
+
const { value, unit } = formatBitPerSecond(rawValue, decimals);
|
|
593
623
|
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
594
624
|
};
|
|
595
625
|
|
|
@@ -609,36 +639,6 @@ var __spreadValues$J = (a, b) => {
|
|
|
609
639
|
}
|
|
610
640
|
return a;
|
|
611
641
|
};
|
|
612
|
-
const BitPerSeconds = ({
|
|
613
|
-
rawValue,
|
|
614
|
-
decimals,
|
|
615
|
-
valueClassName,
|
|
616
|
-
unitClassName,
|
|
617
|
-
emptyProps
|
|
618
|
-
}) => {
|
|
619
|
-
if (isEmpty(rawValue)) {
|
|
620
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$J({}, emptyProps));
|
|
621
|
-
}
|
|
622
|
-
const { value, unit } = formatBitPerSecond(rawValue, decimals);
|
|
623
|
-
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
624
|
-
};
|
|
625
|
-
|
|
626
|
-
var __defProp$I = Object.defineProperty;
|
|
627
|
-
var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
|
|
628
|
-
var __hasOwnProp$J = Object.prototype.hasOwnProperty;
|
|
629
|
-
var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
|
|
630
|
-
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
631
|
-
var __spreadValues$I = (a, b) => {
|
|
632
|
-
for (var prop in b || (b = {}))
|
|
633
|
-
if (__hasOwnProp$J.call(b, prop))
|
|
634
|
-
__defNormalProp$I(a, prop, b[prop]);
|
|
635
|
-
if (__getOwnPropSymbols$J)
|
|
636
|
-
for (var prop of __getOwnPropSymbols$J(b)) {
|
|
637
|
-
if (__propIsEnum$J.call(b, prop))
|
|
638
|
-
__defNormalProp$I(a, prop, b[prop]);
|
|
639
|
-
}
|
|
640
|
-
return a;
|
|
641
|
-
};
|
|
642
642
|
const Bps = ({
|
|
643
643
|
rawValue,
|
|
644
644
|
decimals,
|
|
@@ -647,7 +647,7 @@ const Bps = ({
|
|
|
647
647
|
emptyProps
|
|
648
648
|
}) => {
|
|
649
649
|
if (isEmpty(rawValue)) {
|
|
650
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$
|
|
650
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$J({}, emptyProps));
|
|
651
651
|
}
|
|
652
652
|
const { value, unit } = formatBps(rawValue, decimals);
|
|
653
653
|
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
@@ -788,28 +788,28 @@ const HoverableElement = (props) => {
|
|
|
788
788
|
return icon != null ? React__default.cloneElement(icon, { className }) : null;
|
|
789
789
|
};
|
|
790
790
|
|
|
791
|
-
var __defProp$
|
|
792
|
-
var __getOwnPropSymbols$
|
|
793
|
-
var __hasOwnProp$
|
|
794
|
-
var __propIsEnum$
|
|
795
|
-
var __defNormalProp$
|
|
791
|
+
var __defProp$I = Object.defineProperty;
|
|
792
|
+
var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
|
|
793
|
+
var __hasOwnProp$J = Object.prototype.hasOwnProperty;
|
|
794
|
+
var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
|
|
795
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, {
|
|
796
796
|
enumerable: true,
|
|
797
797
|
configurable: true,
|
|
798
798
|
writable: true,
|
|
799
799
|
value
|
|
800
800
|
}) : obj[key] = value;
|
|
801
|
-
var __spreadValues$
|
|
802
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
803
|
-
if (__getOwnPropSymbols$
|
|
804
|
-
if (__propIsEnum$
|
|
801
|
+
var __spreadValues$I = (a, b) => {
|
|
802
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$J.call(b, prop)) __defNormalProp$I(a, prop, b[prop]);
|
|
803
|
+
if (__getOwnPropSymbols$J) for (var prop of __getOwnPropSymbols$J(b)) {
|
|
804
|
+
if (__propIsEnum$J.call(b, prop)) __defNormalProp$I(a, prop, b[prop]);
|
|
805
805
|
}
|
|
806
806
|
return a;
|
|
807
807
|
};
|
|
808
|
-
var __objRest$
|
|
808
|
+
var __objRest$p = (source, exclude) => {
|
|
809
809
|
var target = {};
|
|
810
|
-
for (var prop in source) if (__hasOwnProp$
|
|
811
|
-
if (source != null && __getOwnPropSymbols$
|
|
812
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
810
|
+
for (var prop in source) if (__hasOwnProp$J.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
811
|
+
if (source != null && __getOwnPropSymbols$J) for (var prop of __getOwnPropSymbols$J(source)) {
|
|
812
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$J.call(source, prop)) target[prop] = source[prop];
|
|
813
813
|
}
|
|
814
814
|
return target;
|
|
815
815
|
};
|
|
@@ -832,11 +832,11 @@ const Button = React__default.forwardRef((props, ref) => {
|
|
|
832
832
|
onMouseLeave,
|
|
833
833
|
size = "middle"
|
|
834
834
|
} = _a,
|
|
835
|
-
restProps = __objRest$
|
|
835
|
+
restProps = __objRest$p(_a, ["type", "className", "children", "prefixIcon", "hoverPrefixIcon", "suffixIcon", "hoverSuffixIcon", "onMouseEnter", "onMouseLeave", "size"]);
|
|
836
836
|
const [status, setStatus] = useState("normal");
|
|
837
837
|
const hasIcon = prefixIcon || suffixIcon;
|
|
838
838
|
const hasHoverIcon = hoverPrefixIcon || hoverSuffixIcon;
|
|
839
|
-
return /* @__PURE__ */React__default.createElement(Button$1, __spreadValues$
|
|
839
|
+
return /* @__PURE__ */React__default.createElement(Button$1, __spreadValues$I({
|
|
840
840
|
ref,
|
|
841
841
|
className: cs(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"),
|
|
842
842
|
type: isAntdButtonTypes(type) ? type : void 0,
|
|
@@ -866,33 +866,33 @@ const Button = React__default.forwardRef((props, ref) => {
|
|
|
866
866
|
}));
|
|
867
867
|
});
|
|
868
868
|
|
|
869
|
-
var __defProp$
|
|
870
|
-
var __defProps$
|
|
871
|
-
var __getOwnPropDescs$
|
|
872
|
-
var __getOwnPropSymbols$
|
|
873
|
-
var __hasOwnProp$
|
|
874
|
-
var __propIsEnum$
|
|
875
|
-
var __defNormalProp$
|
|
876
|
-
var __spreadValues$
|
|
869
|
+
var __defProp$H = Object.defineProperty;
|
|
870
|
+
var __defProps$v = Object.defineProperties;
|
|
871
|
+
var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
|
|
872
|
+
var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
|
|
873
|
+
var __hasOwnProp$I = Object.prototype.hasOwnProperty;
|
|
874
|
+
var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
|
|
875
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
876
|
+
var __spreadValues$H = (a, b) => {
|
|
877
877
|
for (var prop in b || (b = {}))
|
|
878
|
-
if (__hasOwnProp$
|
|
879
|
-
__defNormalProp$
|
|
880
|
-
if (__getOwnPropSymbols$
|
|
881
|
-
for (var prop of __getOwnPropSymbols$
|
|
882
|
-
if (__propIsEnum$
|
|
883
|
-
__defNormalProp$
|
|
878
|
+
if (__hasOwnProp$I.call(b, prop))
|
|
879
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
880
|
+
if (__getOwnPropSymbols$I)
|
|
881
|
+
for (var prop of __getOwnPropSymbols$I(b)) {
|
|
882
|
+
if (__propIsEnum$I.call(b, prop))
|
|
883
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
884
884
|
}
|
|
885
885
|
return a;
|
|
886
886
|
};
|
|
887
|
-
var __spreadProps$
|
|
888
|
-
var __objRest$
|
|
887
|
+
var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
|
|
888
|
+
var __objRest$o = (source, exclude) => {
|
|
889
889
|
var target = {};
|
|
890
890
|
for (var prop in source)
|
|
891
|
-
if (__hasOwnProp$
|
|
891
|
+
if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
892
892
|
target[prop] = source[prop];
|
|
893
|
-
if (source != null && __getOwnPropSymbols$
|
|
894
|
-
for (var prop of __getOwnPropSymbols$
|
|
895
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
893
|
+
if (source != null && __getOwnPropSymbols$I)
|
|
894
|
+
for (var prop of __getOwnPropSymbols$I(source)) {
|
|
895
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$I.call(source, prop))
|
|
896
896
|
target[prop] = source[prop];
|
|
897
897
|
}
|
|
898
898
|
return target;
|
|
@@ -904,7 +904,7 @@ const Tooltip = (props) => {
|
|
|
904
904
|
overlayClassName,
|
|
905
905
|
overlayStyle,
|
|
906
906
|
children
|
|
907
|
-
} = _a, restProps = __objRest$
|
|
907
|
+
} = _a, restProps = __objRest$o(_a, [
|
|
908
908
|
"followMouse",
|
|
909
909
|
"overlayClassName",
|
|
910
910
|
"overlayStyle",
|
|
@@ -946,10 +946,10 @@ const Tooltip = (props) => {
|
|
|
946
946
|
}, [followMouse, onmousemove, uniqueContainerClass]);
|
|
947
947
|
return /* @__PURE__ */ React__default.createElement(
|
|
948
948
|
Tooltip$1,
|
|
949
|
-
__spreadProps$
|
|
949
|
+
__spreadProps$v(__spreadValues$H({}, restProps), {
|
|
950
950
|
overlayClassName: followMouse ? cs(overlayClassName, uniquePopupClass) : overlayClassName,
|
|
951
951
|
children: _children,
|
|
952
|
-
overlayStyle: followMouse ? __spreadValues$
|
|
952
|
+
overlayStyle: followMouse ? __spreadValues$H({
|
|
953
953
|
transform: "translate(-50%, -100%)",
|
|
954
954
|
pointerEvents: "none"
|
|
955
955
|
}, overlayStyle) : overlayStyle
|
|
@@ -957,28 +957,28 @@ const Tooltip = (props) => {
|
|
|
957
957
|
);
|
|
958
958
|
};
|
|
959
959
|
|
|
960
|
-
var __defProp$
|
|
961
|
-
var __getOwnPropSymbols$
|
|
962
|
-
var __hasOwnProp$
|
|
963
|
-
var __propIsEnum$
|
|
964
|
-
var __defNormalProp$
|
|
960
|
+
var __defProp$G = Object.defineProperty;
|
|
961
|
+
var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
|
|
962
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
|
963
|
+
var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
|
|
964
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, {
|
|
965
965
|
enumerable: true,
|
|
966
966
|
configurable: true,
|
|
967
967
|
writable: true,
|
|
968
968
|
value
|
|
969
969
|
}) : obj[key] = value;
|
|
970
|
-
var __spreadValues$
|
|
971
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
972
|
-
if (__getOwnPropSymbols$
|
|
973
|
-
if (__propIsEnum$
|
|
970
|
+
var __spreadValues$G = (a, b) => {
|
|
971
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$H.call(b, prop)) __defNormalProp$G(a, prop, b[prop]);
|
|
972
|
+
if (__getOwnPropSymbols$H) for (var prop of __getOwnPropSymbols$H(b)) {
|
|
973
|
+
if (__propIsEnum$H.call(b, prop)) __defNormalProp$G(a, prop, b[prop]);
|
|
974
974
|
}
|
|
975
975
|
return a;
|
|
976
976
|
};
|
|
977
|
-
var __objRest$
|
|
977
|
+
var __objRest$n = (source, exclude) => {
|
|
978
978
|
var target = {};
|
|
979
|
-
for (var prop in source) if (__hasOwnProp$
|
|
980
|
-
if (source != null && __getOwnPropSymbols$
|
|
981
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
979
|
+
for (var prop in source) if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
980
|
+
if (source != null && __getOwnPropSymbols$H) for (var prop of __getOwnPropSymbols$H(source)) {
|
|
981
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop)) target[prop] = source[prop];
|
|
982
982
|
}
|
|
983
983
|
return target;
|
|
984
984
|
};
|
|
@@ -1013,7 +1013,7 @@ const ButtonGroup = React__default.forwardRef((props, ref) => {
|
|
|
1013
1013
|
hideTitle,
|
|
1014
1014
|
title
|
|
1015
1015
|
} = _a,
|
|
1016
|
-
buttonPropArgs = __objRest$
|
|
1016
|
+
buttonPropArgs = __objRest$n(_a, ["key", "icon", "type", "children", "danger", "ghost", "className", "hideTitle", "title"]);
|
|
1017
1017
|
if (hideTitle) {
|
|
1018
1018
|
return /* @__PURE__ */React__default.createElement(Tooltip, {
|
|
1019
1019
|
key: key || index,
|
|
@@ -1022,7 +1022,7 @@ const ButtonGroup = React__default.forwardRef((props, ref) => {
|
|
|
1022
1022
|
style: {
|
|
1023
1023
|
cursor: "not-allowed"
|
|
1024
1024
|
}
|
|
1025
|
-
}, /* @__PURE__ */React__default.createElement(Button, __spreadValues$
|
|
1025
|
+
}, /* @__PURE__ */React__default.createElement(Button, __spreadValues$G({
|
|
1026
1026
|
style: {
|
|
1027
1027
|
pointerEvents: "none"
|
|
1028
1028
|
},
|
|
@@ -1032,7 +1032,7 @@ const ButtonGroup = React__default.forwardRef((props, ref) => {
|
|
|
1032
1032
|
ghost,
|
|
1033
1033
|
className: cx(ButtonStyle, className2),
|
|
1034
1034
|
prefixIcon: icon
|
|
1035
|
-
}, buttonPropArgs))) : /* @__PURE__ */React__default.createElement(Button, __spreadValues$
|
|
1035
|
+
}, buttonPropArgs))) : /* @__PURE__ */React__default.createElement(Button, __spreadValues$G({
|
|
1036
1036
|
type,
|
|
1037
1037
|
size,
|
|
1038
1038
|
danger,
|
|
@@ -1041,7 +1041,7 @@ const ButtonGroup = React__default.forwardRef((props, ref) => {
|
|
|
1041
1041
|
prefixIcon: icon
|
|
1042
1042
|
}, buttonPropArgs)));
|
|
1043
1043
|
}
|
|
1044
|
-
return /* @__PURE__ */React__default.createElement(Button, __spreadValues$
|
|
1044
|
+
return /* @__PURE__ */React__default.createElement(Button, __spreadValues$G({
|
|
1045
1045
|
key: key || index,
|
|
1046
1046
|
type,
|
|
1047
1047
|
size,
|
|
@@ -1055,19 +1055,19 @@ const ButtonGroup = React__default.forwardRef((props, ref) => {
|
|
|
1055
1055
|
}));
|
|
1056
1056
|
});
|
|
1057
1057
|
|
|
1058
|
-
var __defProp$
|
|
1059
|
-
var __getOwnPropSymbols$
|
|
1060
|
-
var __hasOwnProp$
|
|
1061
|
-
var __propIsEnum$
|
|
1062
|
-
var __defNormalProp$
|
|
1063
|
-
var __spreadValues$
|
|
1058
|
+
var __defProp$F = Object.defineProperty;
|
|
1059
|
+
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
|
1060
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
|
1061
|
+
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
|
1062
|
+
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1063
|
+
var __spreadValues$F = (a, b) => {
|
|
1064
1064
|
for (var prop in b || (b = {}))
|
|
1065
|
-
if (__hasOwnProp$
|
|
1066
|
-
__defNormalProp$
|
|
1067
|
-
if (__getOwnPropSymbols$
|
|
1068
|
-
for (var prop of __getOwnPropSymbols$
|
|
1069
|
-
if (__propIsEnum$
|
|
1070
|
-
__defNormalProp$
|
|
1065
|
+
if (__hasOwnProp$G.call(b, prop))
|
|
1066
|
+
__defNormalProp$F(a, prop, b[prop]);
|
|
1067
|
+
if (__getOwnPropSymbols$G)
|
|
1068
|
+
for (var prop of __getOwnPropSymbols$G(b)) {
|
|
1069
|
+
if (__propIsEnum$G.call(b, prop))
|
|
1070
|
+
__defNormalProp$F(a, prop, b[prop]);
|
|
1071
1071
|
}
|
|
1072
1072
|
return a;
|
|
1073
1073
|
};
|
|
@@ -1081,7 +1081,7 @@ const Byte = ({
|
|
|
1081
1081
|
}) => {
|
|
1082
1082
|
const { t } = useParrotTranslation();
|
|
1083
1083
|
if (isEmpty(rawValue)) {
|
|
1084
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$
|
|
1084
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$F({}, emptyProps));
|
|
1085
1085
|
}
|
|
1086
1086
|
if (rawValue === -1) {
|
|
1087
1087
|
return /* @__PURE__ */ React__default.createElement("span", null, t("common.calculation"));
|
|
@@ -1093,31 +1093,31 @@ const Byte = ({
|
|
|
1093
1093
|
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
1094
1094
|
};
|
|
1095
1095
|
|
|
1096
|
-
var __defProp$
|
|
1097
|
-
var __defProps$
|
|
1098
|
-
var __getOwnPropDescs$
|
|
1099
|
-
var __getOwnPropSymbols$
|
|
1100
|
-
var __hasOwnProp$
|
|
1101
|
-
var __propIsEnum$
|
|
1102
|
-
var __defNormalProp$
|
|
1096
|
+
var __defProp$E = Object.defineProperty;
|
|
1097
|
+
var __defProps$u = Object.defineProperties;
|
|
1098
|
+
var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
|
|
1099
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
|
1100
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
|
1101
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
|
1102
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, {
|
|
1103
1103
|
enumerable: true,
|
|
1104
1104
|
configurable: true,
|
|
1105
1105
|
writable: true,
|
|
1106
1106
|
value
|
|
1107
1107
|
}) : obj[key] = value;
|
|
1108
|
-
var __spreadValues$
|
|
1109
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1110
|
-
if (__getOwnPropSymbols$
|
|
1111
|
-
if (__propIsEnum$
|
|
1108
|
+
var __spreadValues$E = (a, b) => {
|
|
1109
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$F.call(b, prop)) __defNormalProp$E(a, prop, b[prop]);
|
|
1110
|
+
if (__getOwnPropSymbols$F) for (var prop of __getOwnPropSymbols$F(b)) {
|
|
1111
|
+
if (__propIsEnum$F.call(b, prop)) __defNormalProp$E(a, prop, b[prop]);
|
|
1112
1112
|
}
|
|
1113
1113
|
return a;
|
|
1114
1114
|
};
|
|
1115
|
-
var __spreadProps$
|
|
1116
|
-
var __objRest$
|
|
1115
|
+
var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
|
|
1116
|
+
var __objRest$m = (source, exclude) => {
|
|
1117
1117
|
var target = {};
|
|
1118
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1119
|
-
if (source != null && __getOwnPropSymbols$
|
|
1120
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1118
|
+
for (var prop in source) if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1119
|
+
if (source != null && __getOwnPropSymbols$F) for (var prop of __getOwnPropSymbols$F(source)) {
|
|
1120
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop)) target[prop] = source[prop];
|
|
1121
1121
|
}
|
|
1122
1122
|
return target;
|
|
1123
1123
|
};
|
|
@@ -1130,8 +1130,8 @@ const Checkbox = _a => {
|
|
|
1130
1130
|
description,
|
|
1131
1131
|
compact
|
|
1132
1132
|
} = _b,
|
|
1133
|
-
props = __objRest$
|
|
1134
|
-
return /* @__PURE__ */React__default.createElement(Checkbox$1, __spreadProps$
|
|
1133
|
+
props = __objRest$m(_b, ["className", "children", "description", "compact"]);
|
|
1134
|
+
return /* @__PURE__ */React__default.createElement(Checkbox$1, __spreadProps$u(__spreadValues$E({}, props), {
|
|
1135
1135
|
"data-test": props["data-test"] || props.value,
|
|
1136
1136
|
className: cs(className, CheckboxStyle, compact && "compact")
|
|
1137
1137
|
}), children ? /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement("div", {
|
|
@@ -1141,39 +1141,39 @@ const Checkbox = _a => {
|
|
|
1141
1141
|
}, description) : null) : null);
|
|
1142
1142
|
};
|
|
1143
1143
|
|
|
1144
|
-
var __defProp$
|
|
1145
|
-
var __getOwnPropSymbols$
|
|
1146
|
-
var __hasOwnProp$
|
|
1147
|
-
var __propIsEnum$
|
|
1148
|
-
var __defNormalProp$
|
|
1149
|
-
var __spreadValues$
|
|
1144
|
+
var __defProp$D = Object.defineProperty;
|
|
1145
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
|
1146
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
|
1147
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
|
1148
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1149
|
+
var __spreadValues$D = (a, b) => {
|
|
1150
1150
|
for (var prop in b || (b = {}))
|
|
1151
|
-
if (__hasOwnProp$
|
|
1152
|
-
__defNormalProp$
|
|
1153
|
-
if (__getOwnPropSymbols$
|
|
1154
|
-
for (var prop of __getOwnPropSymbols$
|
|
1155
|
-
if (__propIsEnum$
|
|
1156
|
-
__defNormalProp$
|
|
1151
|
+
if (__hasOwnProp$E.call(b, prop))
|
|
1152
|
+
__defNormalProp$D(a, prop, b[prop]);
|
|
1153
|
+
if (__getOwnPropSymbols$E)
|
|
1154
|
+
for (var prop of __getOwnPropSymbols$E(b)) {
|
|
1155
|
+
if (__propIsEnum$E.call(b, prop))
|
|
1156
|
+
__defNormalProp$D(a, prop, b[prop]);
|
|
1157
1157
|
}
|
|
1158
1158
|
return a;
|
|
1159
1159
|
};
|
|
1160
|
-
var __objRest$
|
|
1160
|
+
var __objRest$l = (source, exclude) => {
|
|
1161
1161
|
var target = {};
|
|
1162
1162
|
for (var prop in source)
|
|
1163
|
-
if (__hasOwnProp$
|
|
1163
|
+
if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1164
1164
|
target[prop] = source[prop];
|
|
1165
|
-
if (source != null && __getOwnPropSymbols$
|
|
1166
|
-
for (var prop of __getOwnPropSymbols$
|
|
1167
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1165
|
+
if (source != null && __getOwnPropSymbols$E)
|
|
1166
|
+
for (var prop of __getOwnPropSymbols$E(source)) {
|
|
1167
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
|
|
1168
1168
|
target[prop] = source[prop];
|
|
1169
1169
|
}
|
|
1170
1170
|
return target;
|
|
1171
1171
|
};
|
|
1172
1172
|
const FieldsBoolean = (_a) => {
|
|
1173
|
-
var _b = _a, { input, children } = _b, props = __objRest$
|
|
1173
|
+
var _b = _a, { input, children } = _b, props = __objRest$l(_b, ["input", "children"]);
|
|
1174
1174
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
1175
1175
|
Checkbox,
|
|
1176
|
-
__spreadValues$
|
|
1176
|
+
__spreadValues$D({
|
|
1177
1177
|
checked: Boolean(input.value),
|
|
1178
1178
|
onChange: (e) => input.onChange(e.target.checked)
|
|
1179
1179
|
}, props),
|
|
@@ -1198,17 +1198,17 @@ const FieldsDateTime = ({ input }) => /* @__PURE__ */ React__default.createEleme
|
|
|
1198
1198
|
}
|
|
1199
1199
|
));
|
|
1200
1200
|
|
|
1201
|
-
var __getOwnPropSymbols$
|
|
1202
|
-
var __hasOwnProp$
|
|
1203
|
-
var __propIsEnum$
|
|
1204
|
-
var __objRest$
|
|
1201
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
|
1202
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
|
1203
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
|
1204
|
+
var __objRest$k = (source, exclude) => {
|
|
1205
1205
|
var target = {};
|
|
1206
1206
|
for (var prop in source)
|
|
1207
|
-
if (__hasOwnProp$
|
|
1207
|
+
if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1208
1208
|
target[prop] = source[prop];
|
|
1209
|
-
if (source != null && __getOwnPropSymbols$
|
|
1210
|
-
for (var prop of __getOwnPropSymbols$
|
|
1211
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1209
|
+
if (source != null && __getOwnPropSymbols$D)
|
|
1210
|
+
for (var prop of __getOwnPropSymbols$D(source)) {
|
|
1211
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
|
|
1212
1212
|
target[prop] = source[prop];
|
|
1213
1213
|
}
|
|
1214
1214
|
return target;
|
|
@@ -1216,7 +1216,7 @@ var __objRest$j = (source, exclude) => {
|
|
|
1216
1216
|
const FieldsDateTimeRange = (_a) => {
|
|
1217
1217
|
var _b = _a, {
|
|
1218
1218
|
input
|
|
1219
|
-
} = _b, props = __objRest$
|
|
1219
|
+
} = _b, props = __objRest$k(_b, [
|
|
1220
1220
|
"input"
|
|
1221
1221
|
]);
|
|
1222
1222
|
var _a2, _b2;
|
|
@@ -1253,53 +1253,53 @@ const FullView = /*#__PURE__*/styled('div')({
|
|
|
1253
1253
|
const InputStyle = "ipd9bk";
|
|
1254
1254
|
const KitInputStyle = "kypn5o5";
|
|
1255
1255
|
|
|
1256
|
-
var __defProp$
|
|
1257
|
-
var __getOwnPropSymbols$
|
|
1258
|
-
var __hasOwnProp$
|
|
1259
|
-
var __propIsEnum$
|
|
1260
|
-
var __defNormalProp$
|
|
1261
|
-
var __spreadValues$
|
|
1262
|
-
for (var prop in b || (b = {}))
|
|
1263
|
-
if (__hasOwnProp$
|
|
1264
|
-
__defNormalProp$
|
|
1265
|
-
if (__getOwnPropSymbols$
|
|
1266
|
-
for (var prop of __getOwnPropSymbols$
|
|
1267
|
-
if (__propIsEnum$
|
|
1268
|
-
__defNormalProp$
|
|
1269
|
-
}
|
|
1270
|
-
return a;
|
|
1271
|
-
};
|
|
1272
|
-
const Loading = ({ fullView = true }) => {
|
|
1256
|
+
var __defProp$C = Object.defineProperty;
|
|
1257
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
|
1258
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
|
1259
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
|
1260
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1261
|
+
var __spreadValues$C = (a, b) => {
|
|
1262
|
+
for (var prop in b || (b = {}))
|
|
1263
|
+
if (__hasOwnProp$C.call(b, prop))
|
|
1264
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
1265
|
+
if (__getOwnPropSymbols$C)
|
|
1266
|
+
for (var prop of __getOwnPropSymbols$C(b)) {
|
|
1267
|
+
if (__propIsEnum$C.call(b, prop))
|
|
1268
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
1269
|
+
}
|
|
1270
|
+
return a;
|
|
1271
|
+
};
|
|
1272
|
+
const Loading = ({ fullView = true }) => {
|
|
1273
1273
|
const Wrapper = fullView ? FullView : Fragment;
|
|
1274
1274
|
const props = fullView ? { className: "loading-full-view" } : {};
|
|
1275
|
-
return /* @__PURE__ */ React__default.createElement(Wrapper, __spreadValues$
|
|
1275
|
+
return /* @__PURE__ */ React__default.createElement(Wrapper, __spreadValues$C({}, props), /* @__PURE__ */ React__default.createElement("div", { className: "loading" }, /* @__PURE__ */ React__default.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React__default.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React__default.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React__default.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React__default.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React__default.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React__default.createElement("div", { className: "loading__sugar" })));
|
|
1276
1276
|
};
|
|
1277
1277
|
|
|
1278
|
-
var __defProp$
|
|
1279
|
-
var __defProps$
|
|
1280
|
-
var __getOwnPropDescs$
|
|
1281
|
-
var __getOwnPropSymbols$
|
|
1282
|
-
var __hasOwnProp$
|
|
1283
|
-
var __propIsEnum$
|
|
1284
|
-
var __defNormalProp$
|
|
1278
|
+
var __defProp$B = Object.defineProperty;
|
|
1279
|
+
var __defProps$t = Object.defineProperties;
|
|
1280
|
+
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
|
1281
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
|
1282
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
|
1283
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
|
1284
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, {
|
|
1285
1285
|
enumerable: true,
|
|
1286
1286
|
configurable: true,
|
|
1287
1287
|
writable: true,
|
|
1288
1288
|
value
|
|
1289
1289
|
}) : obj[key] = value;
|
|
1290
|
-
var __spreadValues$
|
|
1291
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1292
|
-
if (__getOwnPropSymbols$
|
|
1293
|
-
if (__propIsEnum$
|
|
1290
|
+
var __spreadValues$B = (a, b) => {
|
|
1291
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$B.call(b, prop)) __defNormalProp$B(a, prop, b[prop]);
|
|
1292
|
+
if (__getOwnPropSymbols$B) for (var prop of __getOwnPropSymbols$B(b)) {
|
|
1293
|
+
if (__propIsEnum$B.call(b, prop)) __defNormalProp$B(a, prop, b[prop]);
|
|
1294
1294
|
}
|
|
1295
1295
|
return a;
|
|
1296
1296
|
};
|
|
1297
|
-
var __spreadProps$
|
|
1298
|
-
var __objRest$
|
|
1297
|
+
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
|
1298
|
+
var __objRest$j = (source, exclude) => {
|
|
1299
1299
|
var target = {};
|
|
1300
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1301
|
-
if (source != null && __getOwnPropSymbols$
|
|
1302
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1300
|
+
for (var prop in source) if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1301
|
+
if (source != null && __getOwnPropSymbols$B) for (var prop of __getOwnPropSymbols$B(source)) {
|
|
1302
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop)) target[prop] = source[prop];
|
|
1303
1303
|
}
|
|
1304
1304
|
return target;
|
|
1305
1305
|
};
|
|
@@ -1327,7 +1327,7 @@ const Select = _a => {
|
|
|
1327
1327
|
meta,
|
|
1328
1328
|
placeholder
|
|
1329
1329
|
} = _b,
|
|
1330
|
-
restProps = __objRest$
|
|
1330
|
+
restProps = __objRest$j(_b, ["input", "multiple", "className", "scrollBottomBuffer", "onScrollBottom", "onPopupScroll", "onSearch", "showSearch", "filterOption", "loading", "notFoundContent", "children", "error", "selectLimit", "dropdownClassName", "danger", "size", "meta", "placeholder"]);
|
|
1331
1331
|
var _a2;
|
|
1332
1332
|
const limitExceeded = multiple && selectLimit && selectLimit <= (((_a2 = input.value) == null ? void 0 : _a2.length) || 0);
|
|
1333
1333
|
const typo = {
|
|
@@ -1353,7 +1353,7 @@ const Select = _a => {
|
|
|
1353
1353
|
inputDom && (placeholder || item) && inputDom.setAttribute("data-test", String(placeholder || item.textContent));
|
|
1354
1354
|
}
|
|
1355
1355
|
}, [selectRef, placeholder]);
|
|
1356
|
-
return /* @__PURE__ */React__default.createElement(Select$1, __spreadValues$
|
|
1356
|
+
return /* @__PURE__ */React__default.createElement(Select$1, __spreadValues$B(__spreadProps$t(__spreadValues$B({}, input), {
|
|
1357
1357
|
ref: selectRef,
|
|
1358
1358
|
size,
|
|
1359
1359
|
value: multiple ? input.value || [] : input.value || void 0,
|
|
@@ -1393,38 +1393,38 @@ const Select = _a => {
|
|
|
1393
1393
|
loading,
|
|
1394
1394
|
placeholder
|
|
1395
1395
|
}), restProps), React__default.Children.map(children, child => {
|
|
1396
|
-
return isElement(child) ? __spreadProps$
|
|
1397
|
-
props: __spreadProps$
|
|
1396
|
+
return isElement(child) ? __spreadProps$t(__spreadValues$B({}, child), {
|
|
1397
|
+
props: __spreadProps$t(__spreadValues$B({}, child.props), {
|
|
1398
1398
|
"data-test": child.props.value
|
|
1399
1399
|
})
|
|
1400
1400
|
}) : child;
|
|
1401
1401
|
}));
|
|
1402
1402
|
};
|
|
1403
1403
|
|
|
1404
|
-
var __defProp$
|
|
1405
|
-
var __getOwnPropSymbols$
|
|
1406
|
-
var __hasOwnProp$
|
|
1407
|
-
var __propIsEnum$
|
|
1408
|
-
var __defNormalProp$
|
|
1409
|
-
var __spreadValues$
|
|
1404
|
+
var __defProp$A = Object.defineProperty;
|
|
1405
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
|
1406
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
|
1407
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
|
1408
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1409
|
+
var __spreadValues$A = (a, b) => {
|
|
1410
1410
|
for (var prop in b || (b = {}))
|
|
1411
|
-
if (__hasOwnProp$
|
|
1412
|
-
__defNormalProp$
|
|
1413
|
-
if (__getOwnPropSymbols$
|
|
1414
|
-
for (var prop of __getOwnPropSymbols$
|
|
1415
|
-
if (__propIsEnum$
|
|
1416
|
-
__defNormalProp$
|
|
1411
|
+
if (__hasOwnProp$A.call(b, prop))
|
|
1412
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
1413
|
+
if (__getOwnPropSymbols$A)
|
|
1414
|
+
for (var prop of __getOwnPropSymbols$A(b)) {
|
|
1415
|
+
if (__propIsEnum$A.call(b, prop))
|
|
1416
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
1417
1417
|
}
|
|
1418
1418
|
return a;
|
|
1419
1419
|
};
|
|
1420
|
-
var __objRest$
|
|
1420
|
+
var __objRest$i = (source, exclude) => {
|
|
1421
1421
|
var target = {};
|
|
1422
1422
|
for (var prop in source)
|
|
1423
|
-
if (__hasOwnProp$
|
|
1423
|
+
if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1424
1424
|
target[prop] = source[prop];
|
|
1425
|
-
if (source != null && __getOwnPropSymbols$
|
|
1426
|
-
for (var prop of __getOwnPropSymbols$
|
|
1427
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1425
|
+
if (source != null && __getOwnPropSymbols$A)
|
|
1426
|
+
for (var prop of __getOwnPropSymbols$A(source)) {
|
|
1427
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
|
|
1428
1428
|
target[prop] = source[prop];
|
|
1429
1429
|
}
|
|
1430
1430
|
return target;
|
|
@@ -1434,12 +1434,12 @@ const FieldsEnum = (_a) => {
|
|
|
1434
1434
|
meta: __,
|
|
1435
1435
|
enumValues,
|
|
1436
1436
|
emptyLabel
|
|
1437
|
-
} = _b, restProps = __objRest$
|
|
1437
|
+
} = _b, restProps = __objRest$i(_b, [
|
|
1438
1438
|
"meta",
|
|
1439
1439
|
"enumValues",
|
|
1440
1440
|
"emptyLabel"
|
|
1441
1441
|
]);
|
|
1442
|
-
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Select, __spreadValues$
|
|
1442
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Select, __spreadValues$A({}, restProps), emptyLabel && /* @__PURE__ */ React__default.createElement(Select$1.Option, { value: "" }, emptyLabel), enumValues.map((v) => {
|
|
1443
1443
|
const item = typeof v === "string" ? { value: v, text: v } : v;
|
|
1444
1444
|
return /* @__PURE__ */ React__default.createElement(
|
|
1445
1445
|
Select$1.Option,
|
|
@@ -1453,31 +1453,31 @@ const FieldsEnum = (_a) => {
|
|
|
1453
1453
|
})));
|
|
1454
1454
|
};
|
|
1455
1455
|
|
|
1456
|
-
var __defProp$
|
|
1457
|
-
var __defProps$
|
|
1458
|
-
var __getOwnPropDescs$
|
|
1459
|
-
var __getOwnPropSymbols$
|
|
1460
|
-
var __hasOwnProp$
|
|
1461
|
-
var __propIsEnum$
|
|
1462
|
-
var __defNormalProp$
|
|
1456
|
+
var __defProp$z = Object.defineProperty;
|
|
1457
|
+
var __defProps$s = Object.defineProperties;
|
|
1458
|
+
var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
|
|
1459
|
+
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
|
1460
|
+
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
|
1461
|
+
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
|
1462
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, {
|
|
1463
1463
|
enumerable: true,
|
|
1464
1464
|
configurable: true,
|
|
1465
1465
|
writable: true,
|
|
1466
1466
|
value
|
|
1467
1467
|
}) : obj[key] = value;
|
|
1468
|
-
var __spreadValues$
|
|
1469
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1470
|
-
if (__getOwnPropSymbols$
|
|
1471
|
-
if (__propIsEnum$
|
|
1468
|
+
var __spreadValues$z = (a, b) => {
|
|
1469
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$z.call(b, prop)) __defNormalProp$z(a, prop, b[prop]);
|
|
1470
|
+
if (__getOwnPropSymbols$z) for (var prop of __getOwnPropSymbols$z(b)) {
|
|
1471
|
+
if (__propIsEnum$z.call(b, prop)) __defNormalProp$z(a, prop, b[prop]);
|
|
1472
1472
|
}
|
|
1473
1473
|
return a;
|
|
1474
1474
|
};
|
|
1475
|
-
var __spreadProps$
|
|
1476
|
-
var __objRest$
|
|
1475
|
+
var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
|
|
1476
|
+
var __objRest$h = (source, exclude) => {
|
|
1477
1477
|
var target = {};
|
|
1478
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1479
|
-
if (source != null && __getOwnPropSymbols$
|
|
1480
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1478
|
+
for (var prop in source) if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1479
|
+
if (source != null && __getOwnPropSymbols$z) for (var prop of __getOwnPropSymbols$z(source)) {
|
|
1480
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop)) target[prop] = source[prop];
|
|
1481
1481
|
}
|
|
1482
1482
|
return target;
|
|
1483
1483
|
};
|
|
@@ -1513,13 +1513,13 @@ const InputNumber = _a => {
|
|
|
1513
1513
|
prefix,
|
|
1514
1514
|
controls = true
|
|
1515
1515
|
} = _b,
|
|
1516
|
-
props = __objRest$
|
|
1516
|
+
props = __objRest$h(_b, ["className", "error", "size", "suffix", "prefix", "controls"]);
|
|
1517
1517
|
const typo = {
|
|
1518
1518
|
large: Typo.Label.l2_regular,
|
|
1519
1519
|
middle: Typo.Label.l3_regular,
|
|
1520
1520
|
small: Typo.Label.l4_regular
|
|
1521
1521
|
}[size];
|
|
1522
|
-
return /* @__PURE__ */React__default.createElement(AntdInputNumberStyled, __spreadProps$
|
|
1522
|
+
return /* @__PURE__ */React__default.createElement(AntdInputNumberStyled, __spreadProps$s(__spreadValues$z({}, props), {
|
|
1523
1523
|
size,
|
|
1524
1524
|
controls,
|
|
1525
1525
|
"data-test": props.name,
|
|
@@ -1529,33 +1529,33 @@ const InputNumber = _a => {
|
|
|
1529
1529
|
}));
|
|
1530
1530
|
};
|
|
1531
1531
|
|
|
1532
|
-
var __defProp$
|
|
1533
|
-
var __defProps$
|
|
1534
|
-
var __getOwnPropDescs$
|
|
1535
|
-
var __getOwnPropSymbols$
|
|
1536
|
-
var __hasOwnProp$
|
|
1537
|
-
var __propIsEnum$
|
|
1538
|
-
var __defNormalProp$
|
|
1539
|
-
var __spreadValues$
|
|
1532
|
+
var __defProp$y = Object.defineProperty;
|
|
1533
|
+
var __defProps$r = Object.defineProperties;
|
|
1534
|
+
var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
|
|
1535
|
+
var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
|
|
1536
|
+
var __hasOwnProp$y = Object.prototype.hasOwnProperty;
|
|
1537
|
+
var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
|
|
1538
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1539
|
+
var __spreadValues$y = (a, b) => {
|
|
1540
1540
|
for (var prop in b || (b = {}))
|
|
1541
|
-
if (__hasOwnProp$
|
|
1542
|
-
__defNormalProp$
|
|
1543
|
-
if (__getOwnPropSymbols$
|
|
1544
|
-
for (var prop of __getOwnPropSymbols$
|
|
1545
|
-
if (__propIsEnum$
|
|
1546
|
-
__defNormalProp$
|
|
1541
|
+
if (__hasOwnProp$y.call(b, prop))
|
|
1542
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
1543
|
+
if (__getOwnPropSymbols$y)
|
|
1544
|
+
for (var prop of __getOwnPropSymbols$y(b)) {
|
|
1545
|
+
if (__propIsEnum$y.call(b, prop))
|
|
1546
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
1547
1547
|
}
|
|
1548
1548
|
return a;
|
|
1549
1549
|
};
|
|
1550
|
-
var __spreadProps$
|
|
1551
|
-
var __objRest$
|
|
1550
|
+
var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
|
|
1551
|
+
var __objRest$g = (source, exclude) => {
|
|
1552
1552
|
var target = {};
|
|
1553
1553
|
for (var prop in source)
|
|
1554
|
-
if (__hasOwnProp$
|
|
1554
|
+
if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1555
1555
|
target[prop] = source[prop];
|
|
1556
|
-
if (source != null && __getOwnPropSymbols$
|
|
1557
|
-
for (var prop of __getOwnPropSymbols$
|
|
1558
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1556
|
+
if (source != null && __getOwnPropSymbols$y)
|
|
1557
|
+
for (var prop of __getOwnPropSymbols$y(source)) {
|
|
1558
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
|
|
1559
1559
|
target[prop] = source[prop];
|
|
1560
1560
|
}
|
|
1561
1561
|
return target;
|
|
@@ -1566,7 +1566,7 @@ const FieldsFloat = (_a) => {
|
|
|
1566
1566
|
meta,
|
|
1567
1567
|
onBlur,
|
|
1568
1568
|
autoComplete = "off"
|
|
1569
|
-
} = _b, props = __objRest$
|
|
1569
|
+
} = _b, props = __objRest$g(_b, [
|
|
1570
1570
|
"input",
|
|
1571
1571
|
"meta",
|
|
1572
1572
|
"onBlur",
|
|
@@ -1574,7 +1574,7 @@ const FieldsFloat = (_a) => {
|
|
|
1574
1574
|
]);
|
|
1575
1575
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
1576
1576
|
InputNumber,
|
|
1577
|
-
__spreadValues$
|
|
1577
|
+
__spreadValues$y(__spreadProps$r(__spreadValues$y({}, input), {
|
|
1578
1578
|
onBlur: (e) => onBlur ? onBlur(input, e) : input.onBlur(e),
|
|
1579
1579
|
autoComplete,
|
|
1580
1580
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
@@ -1582,33 +1582,33 @@ const FieldsFloat = (_a) => {
|
|
|
1582
1582
|
));
|
|
1583
1583
|
};
|
|
1584
1584
|
|
|
1585
|
-
var __defProp$
|
|
1586
|
-
var __defProps$
|
|
1587
|
-
var __getOwnPropDescs$
|
|
1588
|
-
var __getOwnPropSymbols$
|
|
1589
|
-
var __hasOwnProp$
|
|
1590
|
-
var __propIsEnum$
|
|
1591
|
-
var __defNormalProp$
|
|
1592
|
-
var __spreadValues$
|
|
1585
|
+
var __defProp$x = Object.defineProperty;
|
|
1586
|
+
var __defProps$q = Object.defineProperties;
|
|
1587
|
+
var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
|
|
1588
|
+
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
|
1589
|
+
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
|
1590
|
+
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
|
1591
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1592
|
+
var __spreadValues$x = (a, b) => {
|
|
1593
1593
|
for (var prop in b || (b = {}))
|
|
1594
|
-
if (__hasOwnProp$
|
|
1595
|
-
__defNormalProp$
|
|
1596
|
-
if (__getOwnPropSymbols$
|
|
1597
|
-
for (var prop of __getOwnPropSymbols$
|
|
1598
|
-
if (__propIsEnum$
|
|
1599
|
-
__defNormalProp$
|
|
1594
|
+
if (__hasOwnProp$x.call(b, prop))
|
|
1595
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
1596
|
+
if (__getOwnPropSymbols$x)
|
|
1597
|
+
for (var prop of __getOwnPropSymbols$x(b)) {
|
|
1598
|
+
if (__propIsEnum$x.call(b, prop))
|
|
1599
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
1600
1600
|
}
|
|
1601
1601
|
return a;
|
|
1602
1602
|
};
|
|
1603
|
-
var __spreadProps$
|
|
1604
|
-
var __objRest$
|
|
1603
|
+
var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
|
|
1604
|
+
var __objRest$f = (source, exclude) => {
|
|
1605
1605
|
var target = {};
|
|
1606
1606
|
for (var prop in source)
|
|
1607
|
-
if (__hasOwnProp$
|
|
1607
|
+
if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1608
1608
|
target[prop] = source[prop];
|
|
1609
|
-
if (source != null && __getOwnPropSymbols$
|
|
1610
|
-
for (var prop of __getOwnPropSymbols$
|
|
1611
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1609
|
+
if (source != null && __getOwnPropSymbols$x)
|
|
1610
|
+
for (var prop of __getOwnPropSymbols$x(source)) {
|
|
1611
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
|
|
1612
1612
|
target[prop] = source[prop];
|
|
1613
1613
|
}
|
|
1614
1614
|
return target;
|
|
@@ -1618,7 +1618,7 @@ const Input = (_a) => {
|
|
|
1618
1618
|
className,
|
|
1619
1619
|
error,
|
|
1620
1620
|
size = "middle"
|
|
1621
|
-
} = _b, props = __objRest$
|
|
1621
|
+
} = _b, props = __objRest$f(_b, [
|
|
1622
1622
|
"className",
|
|
1623
1623
|
"error",
|
|
1624
1624
|
"size"
|
|
@@ -1630,7 +1630,7 @@ const Input = (_a) => {
|
|
|
1630
1630
|
}[size];
|
|
1631
1631
|
return /* @__PURE__ */ React__default.createElement(
|
|
1632
1632
|
Input$1,
|
|
1633
|
-
__spreadProps$
|
|
1633
|
+
__spreadProps$q(__spreadValues$x({}, props), {
|
|
1634
1634
|
size,
|
|
1635
1635
|
"data-test": props.name,
|
|
1636
1636
|
className: cs(className, InputStyle, typo, error ? "error" : "")
|
|
@@ -1638,33 +1638,33 @@ const Input = (_a) => {
|
|
|
1638
1638
|
);
|
|
1639
1639
|
};
|
|
1640
1640
|
|
|
1641
|
-
var __defProp$
|
|
1642
|
-
var __defProps$
|
|
1643
|
-
var __getOwnPropDescs$
|
|
1644
|
-
var __getOwnPropSymbols$
|
|
1645
|
-
var __hasOwnProp$
|
|
1646
|
-
var __propIsEnum$
|
|
1647
|
-
var __defNormalProp$
|
|
1648
|
-
var __spreadValues$
|
|
1641
|
+
var __defProp$w = Object.defineProperty;
|
|
1642
|
+
var __defProps$p = Object.defineProperties;
|
|
1643
|
+
var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
|
|
1644
|
+
var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
|
|
1645
|
+
var __hasOwnProp$w = Object.prototype.hasOwnProperty;
|
|
1646
|
+
var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
|
|
1647
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1648
|
+
var __spreadValues$w = (a, b) => {
|
|
1649
1649
|
for (var prop in b || (b = {}))
|
|
1650
|
-
if (__hasOwnProp$
|
|
1651
|
-
__defNormalProp$
|
|
1652
|
-
if (__getOwnPropSymbols$
|
|
1653
|
-
for (var prop of __getOwnPropSymbols$
|
|
1654
|
-
if (__propIsEnum$
|
|
1655
|
-
__defNormalProp$
|
|
1650
|
+
if (__hasOwnProp$w.call(b, prop))
|
|
1651
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
1652
|
+
if (__getOwnPropSymbols$w)
|
|
1653
|
+
for (var prop of __getOwnPropSymbols$w(b)) {
|
|
1654
|
+
if (__propIsEnum$w.call(b, prop))
|
|
1655
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
1656
1656
|
}
|
|
1657
1657
|
return a;
|
|
1658
1658
|
};
|
|
1659
|
-
var __spreadProps$
|
|
1660
|
-
var __objRest$
|
|
1659
|
+
var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
|
|
1660
|
+
var __objRest$e = (source, exclude) => {
|
|
1661
1661
|
var target = {};
|
|
1662
1662
|
for (var prop in source)
|
|
1663
|
-
if (__hasOwnProp$
|
|
1663
|
+
if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1664
1664
|
target[prop] = source[prop];
|
|
1665
|
-
if (source != null && __getOwnPropSymbols$
|
|
1666
|
-
for (var prop of __getOwnPropSymbols$
|
|
1667
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1665
|
+
if (source != null && __getOwnPropSymbols$w)
|
|
1666
|
+
for (var prop of __getOwnPropSymbols$w(source)) {
|
|
1667
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$w.call(source, prop))
|
|
1668
1668
|
target[prop] = source[prop];
|
|
1669
1669
|
}
|
|
1670
1670
|
return target;
|
|
@@ -1676,7 +1676,7 @@ const FieldsInt = (_a) => {
|
|
|
1676
1676
|
onBlur,
|
|
1677
1677
|
autoComplete = "off",
|
|
1678
1678
|
supportNegativeValue = false
|
|
1679
|
-
} = _b, props = __objRest$
|
|
1679
|
+
} = _b, props = __objRest$e(_b, [
|
|
1680
1680
|
"input",
|
|
1681
1681
|
"meta",
|
|
1682
1682
|
"onBlur",
|
|
@@ -1685,7 +1685,7 @@ const FieldsInt = (_a) => {
|
|
|
1685
1685
|
]);
|
|
1686
1686
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
1687
1687
|
Input,
|
|
1688
|
-
__spreadValues$
|
|
1688
|
+
__spreadValues$w(__spreadProps$p(__spreadValues$w({}, input), {
|
|
1689
1689
|
onChange: (e) => {
|
|
1690
1690
|
const value = e.currentTarget.value;
|
|
1691
1691
|
if (supportNegativeValue) {
|
|
@@ -1720,31 +1720,31 @@ const formatterInteger = (value) => {
|
|
|
1720
1720
|
}
|
|
1721
1721
|
};
|
|
1722
1722
|
|
|
1723
|
-
var __defProp$
|
|
1724
|
-
var __defProps$
|
|
1725
|
-
var __getOwnPropDescs$
|
|
1726
|
-
var __getOwnPropSymbols$
|
|
1727
|
-
var __hasOwnProp$
|
|
1728
|
-
var __propIsEnum$
|
|
1729
|
-
var __defNormalProp$
|
|
1723
|
+
var __defProp$v = Object.defineProperty;
|
|
1724
|
+
var __defProps$o = Object.defineProperties;
|
|
1725
|
+
var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
|
|
1726
|
+
var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
|
|
1727
|
+
var __hasOwnProp$v = Object.prototype.hasOwnProperty;
|
|
1728
|
+
var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
|
|
1729
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, {
|
|
1730
1730
|
enumerable: true,
|
|
1731
1731
|
configurable: true,
|
|
1732
1732
|
writable: true,
|
|
1733
1733
|
value
|
|
1734
1734
|
}) : obj[key] = value;
|
|
1735
|
-
var __spreadValues$
|
|
1736
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1737
|
-
if (__getOwnPropSymbols$
|
|
1738
|
-
if (__propIsEnum$
|
|
1735
|
+
var __spreadValues$v = (a, b) => {
|
|
1736
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$v.call(b, prop)) __defNormalProp$v(a, prop, b[prop]);
|
|
1737
|
+
if (__getOwnPropSymbols$v) for (var prop of __getOwnPropSymbols$v(b)) {
|
|
1738
|
+
if (__propIsEnum$v.call(b, prop)) __defNormalProp$v(a, prop, b[prop]);
|
|
1739
1739
|
}
|
|
1740
1740
|
return a;
|
|
1741
1741
|
};
|
|
1742
|
-
var __spreadProps$
|
|
1743
|
-
var __objRest$
|
|
1742
|
+
var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
|
|
1743
|
+
var __objRest$d = (source, exclude) => {
|
|
1744
1744
|
var target = {};
|
|
1745
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1746
|
-
if (source != null && __getOwnPropSymbols$
|
|
1747
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1745
|
+
for (var prop in source) if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1746
|
+
if (source != null && __getOwnPropSymbols$v) for (var prop of __getOwnPropSymbols$v(source)) {
|
|
1747
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$v.call(source, prop)) target[prop] = source[prop];
|
|
1748
1748
|
}
|
|
1749
1749
|
return target;
|
|
1750
1750
|
};
|
|
@@ -1782,13 +1782,13 @@ const InputInteger = _a => {
|
|
|
1782
1782
|
min,
|
|
1783
1783
|
controls = false
|
|
1784
1784
|
} = _b,
|
|
1785
|
-
props = __objRest$
|
|
1785
|
+
props = __objRest$d(_b, ["className", "error", "size", "suffix", "prefix", "max", "min", "controls"]);
|
|
1786
1786
|
const typo = {
|
|
1787
1787
|
large: Typo.Label.l2_regular,
|
|
1788
1788
|
middle: Typo.Label.l3_regular,
|
|
1789
1789
|
small: Typo.Label.l4_regular
|
|
1790
1790
|
}[size];
|
|
1791
|
-
return /* @__PURE__ */React__default.createElement(AntdIntStyled, __spreadProps$
|
|
1791
|
+
return /* @__PURE__ */React__default.createElement(AntdIntStyled, __spreadProps$o(__spreadValues$v({}, props), {
|
|
1792
1792
|
size,
|
|
1793
1793
|
formatter: formatterInteger,
|
|
1794
1794
|
parser: formatterInteger,
|
|
@@ -1802,33 +1802,33 @@ const InputInteger = _a => {
|
|
|
1802
1802
|
}));
|
|
1803
1803
|
};
|
|
1804
1804
|
|
|
1805
|
-
var __defProp$
|
|
1806
|
-
var __defProps$
|
|
1807
|
-
var __getOwnPropDescs$
|
|
1808
|
-
var __getOwnPropSymbols$
|
|
1809
|
-
var __hasOwnProp$
|
|
1810
|
-
var __propIsEnum$
|
|
1811
|
-
var __defNormalProp$
|
|
1812
|
-
var __spreadValues$
|
|
1805
|
+
var __defProp$u = Object.defineProperty;
|
|
1806
|
+
var __defProps$n = Object.defineProperties;
|
|
1807
|
+
var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
|
|
1808
|
+
var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
|
|
1809
|
+
var __hasOwnProp$u = Object.prototype.hasOwnProperty;
|
|
1810
|
+
var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
|
|
1811
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1812
|
+
var __spreadValues$u = (a, b) => {
|
|
1813
1813
|
for (var prop in b || (b = {}))
|
|
1814
|
-
if (__hasOwnProp$
|
|
1815
|
-
__defNormalProp$
|
|
1816
|
-
if (__getOwnPropSymbols$
|
|
1817
|
-
for (var prop of __getOwnPropSymbols$
|
|
1818
|
-
if (__propIsEnum$
|
|
1819
|
-
__defNormalProp$
|
|
1814
|
+
if (__hasOwnProp$u.call(b, prop))
|
|
1815
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
1816
|
+
if (__getOwnPropSymbols$u)
|
|
1817
|
+
for (var prop of __getOwnPropSymbols$u(b)) {
|
|
1818
|
+
if (__propIsEnum$u.call(b, prop))
|
|
1819
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
1820
1820
|
}
|
|
1821
1821
|
return a;
|
|
1822
1822
|
};
|
|
1823
|
-
var __spreadProps$
|
|
1824
|
-
var __objRest$
|
|
1823
|
+
var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
|
|
1824
|
+
var __objRest$c = (source, exclude) => {
|
|
1825
1825
|
var target = {};
|
|
1826
1826
|
for (var prop in source)
|
|
1827
|
-
if (__hasOwnProp$
|
|
1827
|
+
if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1828
1828
|
target[prop] = source[prop];
|
|
1829
|
-
if (source != null && __getOwnPropSymbols$
|
|
1830
|
-
for (var prop of __getOwnPropSymbols$
|
|
1831
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1829
|
+
if (source != null && __getOwnPropSymbols$u)
|
|
1830
|
+
for (var prop of __getOwnPropSymbols$u(source)) {
|
|
1831
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
|
|
1832
1832
|
target[prop] = source[prop];
|
|
1833
1833
|
}
|
|
1834
1834
|
return target;
|
|
@@ -1838,14 +1838,14 @@ const FieldsInteger = (_a) => {
|
|
|
1838
1838
|
meta,
|
|
1839
1839
|
input,
|
|
1840
1840
|
onBlur
|
|
1841
|
-
} = _b, props = __objRest$
|
|
1841
|
+
} = _b, props = __objRest$c(_b, [
|
|
1842
1842
|
"meta",
|
|
1843
1843
|
"input",
|
|
1844
1844
|
"onBlur"
|
|
1845
1845
|
]);
|
|
1846
1846
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
1847
1847
|
InputInteger,
|
|
1848
|
-
__spreadProps$
|
|
1848
|
+
__spreadProps$n(__spreadValues$u(__spreadValues$u({}, props), input), {
|
|
1849
1849
|
onBlur: (e) => onBlur ? onBlur(input, e) : input.onBlur(e),
|
|
1850
1850
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
1851
1851
|
})
|
|
@@ -2009,33 +2009,33 @@ const Overflow = props => {
|
|
|
2009
2009
|
}, children), showOverflow && /* @__PURE__ */React__default.createElement("span", null, overflow));
|
|
2010
2010
|
};
|
|
2011
2011
|
|
|
2012
|
-
var __defProp$
|
|
2013
|
-
var __defProps$
|
|
2014
|
-
var __getOwnPropDescs$
|
|
2015
|
-
var __getOwnPropSymbols$
|
|
2016
|
-
var __hasOwnProp$
|
|
2017
|
-
var __propIsEnum$
|
|
2018
|
-
var __defNormalProp$
|
|
2019
|
-
var __spreadValues$
|
|
2012
|
+
var __defProp$t = Object.defineProperty;
|
|
2013
|
+
var __defProps$m = Object.defineProperties;
|
|
2014
|
+
var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
|
|
2015
|
+
var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
|
|
2016
|
+
var __hasOwnProp$t = Object.prototype.hasOwnProperty;
|
|
2017
|
+
var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
|
|
2018
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2019
|
+
var __spreadValues$t = (a, b) => {
|
|
2020
2020
|
for (var prop in b || (b = {}))
|
|
2021
|
-
if (__hasOwnProp$
|
|
2022
|
-
__defNormalProp$
|
|
2023
|
-
if (__getOwnPropSymbols$
|
|
2024
|
-
for (var prop of __getOwnPropSymbols$
|
|
2025
|
-
if (__propIsEnum$
|
|
2026
|
-
__defNormalProp$
|
|
2021
|
+
if (__hasOwnProp$t.call(b, prop))
|
|
2022
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
2023
|
+
if (__getOwnPropSymbols$t)
|
|
2024
|
+
for (var prop of __getOwnPropSymbols$t(b)) {
|
|
2025
|
+
if (__propIsEnum$t.call(b, prop))
|
|
2026
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
2027
2027
|
}
|
|
2028
2028
|
return a;
|
|
2029
2029
|
};
|
|
2030
|
-
var __spreadProps$
|
|
2031
|
-
var __objRest$
|
|
2030
|
+
var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
|
|
2031
|
+
var __objRest$b = (source, exclude) => {
|
|
2032
2032
|
var target = {};
|
|
2033
2033
|
for (var prop in source)
|
|
2034
|
-
if (__hasOwnProp$
|
|
2034
|
+
if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2035
2035
|
target[prop] = source[prop];
|
|
2036
|
-
if (source != null && __getOwnPropSymbols$
|
|
2037
|
-
for (var prop of __getOwnPropSymbols$
|
|
2038
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2036
|
+
if (source != null && __getOwnPropSymbols$t)
|
|
2037
|
+
for (var prop of __getOwnPropSymbols$t(source)) {
|
|
2038
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$t.call(source, prop))
|
|
2039
2039
|
target[prop] = source[prop];
|
|
2040
2040
|
}
|
|
2041
2041
|
return target;
|
|
@@ -2054,7 +2054,7 @@ const FieldsString = (_a) => {
|
|
|
2054
2054
|
onClick,
|
|
2055
2055
|
maxLength,
|
|
2056
2056
|
focusIndicator
|
|
2057
|
-
} = _b, props = __objRest$
|
|
2057
|
+
} = _b, props = __objRest$b(_b, [
|
|
2058
2058
|
"input",
|
|
2059
2059
|
"meta",
|
|
2060
2060
|
"autoComplete",
|
|
@@ -2086,7 +2086,7 @@ const FieldsString = (_a) => {
|
|
|
2086
2086
|
}
|
|
2087
2087
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
2088
2088
|
Input,
|
|
2089
|
-
__spreadProps$
|
|
2089
|
+
__spreadProps$m(__spreadValues$t(__spreadProps$m(__spreadValues$t({
|
|
2090
2090
|
className: cs(
|
|
2091
2091
|
className,
|
|
2092
2092
|
KitInputStyle,
|
|
@@ -2111,33 +2111,33 @@ const FieldsString = (_a) => {
|
|
|
2111
2111
|
));
|
|
2112
2112
|
};
|
|
2113
2113
|
|
|
2114
|
-
var __defProp$
|
|
2115
|
-
var __defProps$
|
|
2116
|
-
var __getOwnPropDescs$
|
|
2117
|
-
var __getOwnPropSymbols$
|
|
2118
|
-
var __hasOwnProp$
|
|
2119
|
-
var __propIsEnum$
|
|
2120
|
-
var __defNormalProp$
|
|
2121
|
-
var __spreadValues$
|
|
2114
|
+
var __defProp$s = Object.defineProperty;
|
|
2115
|
+
var __defProps$l = Object.defineProperties;
|
|
2116
|
+
var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
|
|
2117
|
+
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
|
2118
|
+
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
|
2119
|
+
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
|
2120
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2121
|
+
var __spreadValues$s = (a, b) => {
|
|
2122
2122
|
for (var prop in b || (b = {}))
|
|
2123
|
-
if (__hasOwnProp$
|
|
2124
|
-
__defNormalProp$
|
|
2125
|
-
if (__getOwnPropSymbols$
|
|
2126
|
-
for (var prop of __getOwnPropSymbols$
|
|
2127
|
-
if (__propIsEnum$
|
|
2128
|
-
__defNormalProp$
|
|
2123
|
+
if (__hasOwnProp$s.call(b, prop))
|
|
2124
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
2125
|
+
if (__getOwnPropSymbols$s)
|
|
2126
|
+
for (var prop of __getOwnPropSymbols$s(b)) {
|
|
2127
|
+
if (__propIsEnum$s.call(b, prop))
|
|
2128
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
2129
2129
|
}
|
|
2130
2130
|
return a;
|
|
2131
2131
|
};
|
|
2132
|
-
var __spreadProps$
|
|
2133
|
-
var __objRest$
|
|
2132
|
+
var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
|
|
2133
|
+
var __objRest$a = (source, exclude) => {
|
|
2134
2134
|
var target = {};
|
|
2135
2135
|
for (var prop in source)
|
|
2136
|
-
if (__hasOwnProp$
|
|
2136
|
+
if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2137
2137
|
target[prop] = source[prop];
|
|
2138
|
-
if (source != null && __getOwnPropSymbols$
|
|
2139
|
-
for (var prop of __getOwnPropSymbols$
|
|
2140
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2138
|
+
if (source != null && __getOwnPropSymbols$s)
|
|
2139
|
+
for (var prop of __getOwnPropSymbols$s(source)) {
|
|
2140
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop))
|
|
2141
2141
|
target[prop] = source[prop];
|
|
2142
2142
|
}
|
|
2143
2143
|
return target;
|
|
@@ -2147,7 +2147,7 @@ const TextArea = (_a) => {
|
|
|
2147
2147
|
className,
|
|
2148
2148
|
error,
|
|
2149
2149
|
size = "middle"
|
|
2150
|
-
} = _b, props = __objRest$
|
|
2150
|
+
} = _b, props = __objRest$a(_b, [
|
|
2151
2151
|
"className",
|
|
2152
2152
|
"error",
|
|
2153
2153
|
"size"
|
|
@@ -2159,7 +2159,7 @@ const TextArea = (_a) => {
|
|
|
2159
2159
|
}[size];
|
|
2160
2160
|
return /* @__PURE__ */ React__default.createElement(
|
|
2161
2161
|
Input$1.TextArea,
|
|
2162
|
-
__spreadProps$
|
|
2162
|
+
__spreadProps$l(__spreadValues$s({}, props), {
|
|
2163
2163
|
className: cs(
|
|
2164
2164
|
className,
|
|
2165
2165
|
InputStyle,
|
|
@@ -2173,33 +2173,33 @@ const TextArea = (_a) => {
|
|
|
2173
2173
|
);
|
|
2174
2174
|
};
|
|
2175
2175
|
|
|
2176
|
-
var __defProp$
|
|
2177
|
-
var __defProps$
|
|
2178
|
-
var __getOwnPropDescs$
|
|
2179
|
-
var __getOwnPropSymbols$
|
|
2180
|
-
var __hasOwnProp$
|
|
2181
|
-
var __propIsEnum$
|
|
2182
|
-
var __defNormalProp$
|
|
2183
|
-
var __spreadValues$
|
|
2176
|
+
var __defProp$r = Object.defineProperty;
|
|
2177
|
+
var __defProps$k = Object.defineProperties;
|
|
2178
|
+
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
|
2179
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
|
2180
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
|
2181
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
|
2182
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2183
|
+
var __spreadValues$r = (a, b) => {
|
|
2184
2184
|
for (var prop in b || (b = {}))
|
|
2185
|
-
if (__hasOwnProp$
|
|
2186
|
-
__defNormalProp$
|
|
2187
|
-
if (__getOwnPropSymbols$
|
|
2188
|
-
for (var prop of __getOwnPropSymbols$
|
|
2189
|
-
if (__propIsEnum$
|
|
2190
|
-
__defNormalProp$
|
|
2185
|
+
if (__hasOwnProp$r.call(b, prop))
|
|
2186
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
2187
|
+
if (__getOwnPropSymbols$r)
|
|
2188
|
+
for (var prop of __getOwnPropSymbols$r(b)) {
|
|
2189
|
+
if (__propIsEnum$r.call(b, prop))
|
|
2190
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
2191
2191
|
}
|
|
2192
2192
|
return a;
|
|
2193
2193
|
};
|
|
2194
|
-
var __spreadProps$
|
|
2195
|
-
var __objRest$
|
|
2194
|
+
var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
|
|
2195
|
+
var __objRest$9 = (source, exclude) => {
|
|
2196
2196
|
var target = {};
|
|
2197
2197
|
for (var prop in source)
|
|
2198
|
-
if (__hasOwnProp$
|
|
2198
|
+
if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2199
2199
|
target[prop] = source[prop];
|
|
2200
|
-
if (source != null && __getOwnPropSymbols$
|
|
2201
|
-
for (var prop of __getOwnPropSymbols$
|
|
2202
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2200
|
+
if (source != null && __getOwnPropSymbols$r)
|
|
2201
|
+
for (var prop of __getOwnPropSymbols$r(source)) {
|
|
2202
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
|
|
2203
2203
|
target[prop] = source[prop];
|
|
2204
2204
|
}
|
|
2205
2205
|
return target;
|
|
@@ -2209,14 +2209,14 @@ const FieldsTextArea = (_a) => {
|
|
|
2209
2209
|
input,
|
|
2210
2210
|
meta,
|
|
2211
2211
|
onFocusChangeHeight
|
|
2212
|
-
} = _b, props = __objRest$
|
|
2212
|
+
} = _b, props = __objRest$9(_b, [
|
|
2213
2213
|
"input",
|
|
2214
2214
|
"meta",
|
|
2215
2215
|
"onFocusChangeHeight"
|
|
2216
2216
|
]);
|
|
2217
2217
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
2218
2218
|
TextArea,
|
|
2219
|
-
__spreadProps$
|
|
2219
|
+
__spreadProps$k(__spreadValues$r(__spreadValues$r({}, input), props), {
|
|
2220
2220
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError),
|
|
2221
2221
|
onFocus: (e) => {
|
|
2222
2222
|
input.onFocus(e);
|
|
@@ -2230,33 +2230,33 @@ const FieldsTextArea = (_a) => {
|
|
|
2230
2230
|
));
|
|
2231
2231
|
};
|
|
2232
2232
|
|
|
2233
|
-
var __defProp$
|
|
2234
|
-
var __defProps$
|
|
2235
|
-
var __getOwnPropDescs$
|
|
2236
|
-
var __getOwnPropSymbols$
|
|
2237
|
-
var __hasOwnProp$
|
|
2238
|
-
var __propIsEnum$
|
|
2239
|
-
var __defNormalProp$
|
|
2240
|
-
var __spreadValues$
|
|
2233
|
+
var __defProp$q = Object.defineProperty;
|
|
2234
|
+
var __defProps$j = Object.defineProperties;
|
|
2235
|
+
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
2236
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
2237
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
2238
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
2239
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2240
|
+
var __spreadValues$q = (a, b) => {
|
|
2241
2241
|
for (var prop in b || (b = {}))
|
|
2242
|
-
if (__hasOwnProp$
|
|
2243
|
-
__defNormalProp$
|
|
2244
|
-
if (__getOwnPropSymbols$
|
|
2245
|
-
for (var prop of __getOwnPropSymbols$
|
|
2246
|
-
if (__propIsEnum$
|
|
2247
|
-
__defNormalProp$
|
|
2242
|
+
if (__hasOwnProp$q.call(b, prop))
|
|
2243
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
2244
|
+
if (__getOwnPropSymbols$q)
|
|
2245
|
+
for (var prop of __getOwnPropSymbols$q(b)) {
|
|
2246
|
+
if (__propIsEnum$q.call(b, prop))
|
|
2247
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
2248
2248
|
}
|
|
2249
2249
|
return a;
|
|
2250
2250
|
};
|
|
2251
|
-
var __spreadProps$
|
|
2252
|
-
var __objRest$
|
|
2251
|
+
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
2252
|
+
var __objRest$8 = (source, exclude) => {
|
|
2253
2253
|
var target = {};
|
|
2254
2254
|
for (var prop in source)
|
|
2255
|
-
if (__hasOwnProp$
|
|
2255
|
+
if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2256
2256
|
target[prop] = source[prop];
|
|
2257
|
-
if (source != null && __getOwnPropSymbols$
|
|
2258
|
-
for (var prop of __getOwnPropSymbols$
|
|
2259
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2257
|
+
if (source != null && __getOwnPropSymbols$q)
|
|
2258
|
+
for (var prop of __getOwnPropSymbols$q(source)) {
|
|
2259
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
|
|
2260
2260
|
target[prop] = source[prop];
|
|
2261
2261
|
}
|
|
2262
2262
|
return target;
|
|
@@ -2266,7 +2266,7 @@ const TimePicker = (_a) => {
|
|
|
2266
2266
|
className,
|
|
2267
2267
|
error,
|
|
2268
2268
|
size = "middle"
|
|
2269
|
-
} = _b, props = __objRest$
|
|
2269
|
+
} = _b, props = __objRest$8(_b, [
|
|
2270
2270
|
"className",
|
|
2271
2271
|
"error",
|
|
2272
2272
|
"size"
|
|
@@ -2278,7 +2278,7 @@ const TimePicker = (_a) => {
|
|
|
2278
2278
|
}[size];
|
|
2279
2279
|
return /* @__PURE__ */ React__default.createElement(
|
|
2280
2280
|
TimePicker$1,
|
|
2281
|
-
__spreadProps$
|
|
2281
|
+
__spreadProps$j(__spreadValues$q({}, props), {
|
|
2282
2282
|
size,
|
|
2283
2283
|
"data-test": props.name,
|
|
2284
2284
|
className: cs(className, InputStyle, typo, error ? "error" : "")
|
|
@@ -2286,33 +2286,33 @@ const TimePicker = (_a) => {
|
|
|
2286
2286
|
);
|
|
2287
2287
|
};
|
|
2288
2288
|
|
|
2289
|
-
var __defProp$
|
|
2290
|
-
var __defProps$
|
|
2291
|
-
var __getOwnPropDescs$
|
|
2292
|
-
var __getOwnPropSymbols$
|
|
2293
|
-
var __hasOwnProp$
|
|
2294
|
-
var __propIsEnum$
|
|
2295
|
-
var __defNormalProp$
|
|
2296
|
-
var __spreadValues$
|
|
2289
|
+
var __defProp$p = Object.defineProperty;
|
|
2290
|
+
var __defProps$i = Object.defineProperties;
|
|
2291
|
+
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
2292
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
2293
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
2294
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
2295
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2296
|
+
var __spreadValues$p = (a, b) => {
|
|
2297
2297
|
for (var prop in b || (b = {}))
|
|
2298
|
-
if (__hasOwnProp$
|
|
2299
|
-
__defNormalProp$
|
|
2300
|
-
if (__getOwnPropSymbols$
|
|
2301
|
-
for (var prop of __getOwnPropSymbols$
|
|
2302
|
-
if (__propIsEnum$
|
|
2303
|
-
__defNormalProp$
|
|
2298
|
+
if (__hasOwnProp$p.call(b, prop))
|
|
2299
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
2300
|
+
if (__getOwnPropSymbols$p)
|
|
2301
|
+
for (var prop of __getOwnPropSymbols$p(b)) {
|
|
2302
|
+
if (__propIsEnum$p.call(b, prop))
|
|
2303
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
2304
2304
|
}
|
|
2305
2305
|
return a;
|
|
2306
2306
|
};
|
|
2307
|
-
var __spreadProps$
|
|
2308
|
-
var __objRest$
|
|
2307
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
2308
|
+
var __objRest$7 = (source, exclude) => {
|
|
2309
2309
|
var target = {};
|
|
2310
2310
|
for (var prop in source)
|
|
2311
|
-
if (__hasOwnProp$
|
|
2311
|
+
if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2312
2312
|
target[prop] = source[prop];
|
|
2313
|
-
if (source != null && __getOwnPropSymbols$
|
|
2314
|
-
for (var prop of __getOwnPropSymbols$
|
|
2315
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2313
|
+
if (source != null && __getOwnPropSymbols$p)
|
|
2314
|
+
for (var prop of __getOwnPropSymbols$p(source)) {
|
|
2315
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop))
|
|
2316
2316
|
target[prop] = source[prop];
|
|
2317
2317
|
}
|
|
2318
2318
|
return target;
|
|
@@ -2321,13 +2321,13 @@ const FieldsTimePicker = (_a) => {
|
|
|
2321
2321
|
var _b = _a, {
|
|
2322
2322
|
input,
|
|
2323
2323
|
meta
|
|
2324
|
-
} = _b, props = __objRest$
|
|
2324
|
+
} = _b, props = __objRest$7(_b, [
|
|
2325
2325
|
"input",
|
|
2326
2326
|
"meta"
|
|
2327
2327
|
]);
|
|
2328
2328
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
2329
2329
|
TimePicker,
|
|
2330
|
-
__spreadValues$
|
|
2330
|
+
__spreadValues$p(__spreadProps$i(__spreadValues$p({}, input), {
|
|
2331
2331
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
2332
2332
|
}), props)
|
|
2333
2333
|
));
|
|
@@ -2346,29 +2346,29 @@ const fields = {
|
|
|
2346
2346
|
DateTimeRange: FieldsDateTimeRange
|
|
2347
2347
|
};
|
|
2348
2348
|
|
|
2349
|
-
var __defProp$
|
|
2350
|
-
var __defProps$
|
|
2351
|
-
var __getOwnPropDescs$
|
|
2352
|
-
var __getOwnPropSymbols$
|
|
2353
|
-
var __hasOwnProp$
|
|
2354
|
-
var __propIsEnum$
|
|
2355
|
-
var __defNormalProp$
|
|
2349
|
+
var __defProp$o = Object.defineProperty;
|
|
2350
|
+
var __defProps$h = Object.defineProperties;
|
|
2351
|
+
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
2352
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
2353
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
2354
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
2355
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, {
|
|
2356
2356
|
enumerable: true,
|
|
2357
2357
|
configurable: true,
|
|
2358
2358
|
writable: true,
|
|
2359
2359
|
value
|
|
2360
2360
|
}) : obj[key] = value;
|
|
2361
|
-
var __spreadValues$
|
|
2362
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
2363
|
-
if (__getOwnPropSymbols$
|
|
2364
|
-
if (__propIsEnum$
|
|
2361
|
+
var __spreadValues$o = (a, b) => {
|
|
2362
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$o.call(b, prop)) __defNormalProp$o(a, prop, b[prop]);
|
|
2363
|
+
if (__getOwnPropSymbols$o) for (var prop of __getOwnPropSymbols$o(b)) {
|
|
2364
|
+
if (__propIsEnum$o.call(b, prop)) __defNormalProp$o(a, prop, b[prop]);
|
|
2365
2365
|
}
|
|
2366
2366
|
return a;
|
|
2367
2367
|
};
|
|
2368
|
-
var __spreadProps$
|
|
2368
|
+
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
2369
2369
|
const FormItemStyle$1 = "f1p9ti6d";
|
|
2370
2370
|
const FormItem$1 = props => {
|
|
2371
|
-
return /* @__PURE__ */React__default.createElement(AntdFormItem, __spreadProps$
|
|
2371
|
+
return /* @__PURE__ */React__default.createElement(AntdFormItem, __spreadProps$h(__spreadValues$o({}, props), {
|
|
2372
2372
|
className: cs(FormItemStyle$1, props.className)
|
|
2373
2373
|
}));
|
|
2374
2374
|
};
|
|
@@ -2376,19 +2376,19 @@ const FormItem$1 = props => {
|
|
|
2376
2376
|
const Form = Form$1;
|
|
2377
2377
|
Form.Item = FormItem$1;
|
|
2378
2378
|
|
|
2379
|
-
var __defProp$
|
|
2380
|
-
var __getOwnPropSymbols$
|
|
2381
|
-
var __hasOwnProp$
|
|
2382
|
-
var __propIsEnum$
|
|
2383
|
-
var __defNormalProp$
|
|
2384
|
-
var __spreadValues$
|
|
2379
|
+
var __defProp$n = Object.defineProperty;
|
|
2380
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
2381
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
2382
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
2383
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2384
|
+
var __spreadValues$n = (a, b) => {
|
|
2385
2385
|
for (var prop in b || (b = {}))
|
|
2386
|
-
if (__hasOwnProp$
|
|
2387
|
-
__defNormalProp$
|
|
2388
|
-
if (__getOwnPropSymbols$
|
|
2389
|
-
for (var prop of __getOwnPropSymbols$
|
|
2390
|
-
if (__propIsEnum$
|
|
2391
|
-
__defNormalProp$
|
|
2386
|
+
if (__hasOwnProp$n.call(b, prop))
|
|
2387
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
2388
|
+
if (__getOwnPropSymbols$n)
|
|
2389
|
+
for (var prop of __getOwnPropSymbols$n(b)) {
|
|
2390
|
+
if (__propIsEnum$n.call(b, prop))
|
|
2391
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
2392
2392
|
}
|
|
2393
2393
|
return a;
|
|
2394
2394
|
};
|
|
@@ -2400,7 +2400,7 @@ const Frequency = ({
|
|
|
2400
2400
|
emptyProps
|
|
2401
2401
|
}) => {
|
|
2402
2402
|
if (isEmpty(rawValue)) {
|
|
2403
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$
|
|
2403
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$n({}, emptyProps));
|
|
2404
2404
|
}
|
|
2405
2405
|
const { value, unit } = formatFrequency(rawValue, decimals);
|
|
2406
2406
|
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
@@ -2413,25 +2413,25 @@ const InputGroup = /*#__PURE__*/styled(_exp())({
|
|
|
2413
2413
|
propsAsIs: true
|
|
2414
2414
|
});
|
|
2415
2415
|
|
|
2416
|
-
var __defProp$
|
|
2417
|
-
var __defProps$
|
|
2418
|
-
var __getOwnPropDescs$
|
|
2419
|
-
var __getOwnPropSymbols$
|
|
2420
|
-
var __hasOwnProp$
|
|
2421
|
-
var __propIsEnum$
|
|
2422
|
-
var __defNormalProp$
|
|
2423
|
-
var __spreadValues$
|
|
2416
|
+
var __defProp$m = Object.defineProperty;
|
|
2417
|
+
var __defProps$g = Object.defineProperties;
|
|
2418
|
+
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
2419
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
2420
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
2421
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
2422
|
+
var __defNormalProp$m = (obj, key2, value) => key2 in obj ? __defProp$m(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value;
|
|
2423
|
+
var __spreadValues$m = (a, b) => {
|
|
2424
2424
|
for (var prop in b || (b = {}))
|
|
2425
|
-
if (__hasOwnProp$
|
|
2426
|
-
__defNormalProp$
|
|
2427
|
-
if (__getOwnPropSymbols$
|
|
2428
|
-
for (var prop of __getOwnPropSymbols$
|
|
2429
|
-
if (__propIsEnum$
|
|
2430
|
-
__defNormalProp$
|
|
2425
|
+
if (__hasOwnProp$m.call(b, prop))
|
|
2426
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
2427
|
+
if (__getOwnPropSymbols$m)
|
|
2428
|
+
for (var prop of __getOwnPropSymbols$m(b)) {
|
|
2429
|
+
if (__propIsEnum$m.call(b, prop))
|
|
2430
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
2431
2431
|
}
|
|
2432
2432
|
return a;
|
|
2433
2433
|
};
|
|
2434
|
-
var __spreadProps$
|
|
2434
|
+
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
2435
2435
|
let messageInstance;
|
|
2436
2436
|
let defaultDuration = 3;
|
|
2437
2437
|
let defaultTop;
|
|
@@ -2441,17 +2441,12 @@ let transitionName = "move-up";
|
|
|
2441
2441
|
let getContainer;
|
|
2442
2442
|
let maxCount;
|
|
2443
2443
|
let rtl = false;
|
|
2444
|
-
let fixMessage = [];
|
|
2445
2444
|
let pageVisible = true;
|
|
2446
2445
|
const visibilitychangeHandler = () => {
|
|
2447
2446
|
if (document.hidden) {
|
|
2448
2447
|
pageVisible = false;
|
|
2449
2448
|
} else {
|
|
2450
2449
|
pageVisible = true;
|
|
2451
|
-
fixMessage.forEach((message) => {
|
|
2452
|
-
notice(message);
|
|
2453
|
-
});
|
|
2454
|
-
fixMessage = [];
|
|
2455
2450
|
}
|
|
2456
2451
|
};
|
|
2457
2452
|
function setMessageConfig(options) {
|
|
@@ -2548,17 +2543,10 @@ function notice(args) {
|
|
|
2548
2543
|
}
|
|
2549
2544
|
return resolve(true);
|
|
2550
2545
|
};
|
|
2551
|
-
if (!pageVisible) {
|
|
2552
|
-
fixMessage.push(args);
|
|
2553
|
-
if (fixMessage.length > 2) {
|
|
2554
|
-
fixMessage.shift();
|
|
2555
|
-
}
|
|
2556
|
-
return;
|
|
2557
|
-
}
|
|
2558
2546
|
getRCNotificationInstance(args, ({ prefixCls, instance }) => {
|
|
2559
2547
|
instance.notice(
|
|
2560
2548
|
getRCNoticeProps(
|
|
2561
|
-
__spreadProps$
|
|
2549
|
+
__spreadProps$g(__spreadValues$m({}, args), { key: target, onClose: callback }),
|
|
2562
2550
|
prefixCls
|
|
2563
2551
|
)
|
|
2564
2552
|
);
|
|
@@ -2571,6 +2559,9 @@ function notice(args) {
|
|
|
2571
2559
|
};
|
|
2572
2560
|
result.then = (filled, rejected) => closePromise.then(filled, rejected);
|
|
2573
2561
|
result.promise = closePromise;
|
|
2562
|
+
if (!pageVisible) {
|
|
2563
|
+
result();
|
|
2564
|
+
}
|
|
2574
2565
|
return result;
|
|
2575
2566
|
}
|
|
2576
2567
|
function isArgsProps(content) {
|
|
@@ -2589,7 +2580,7 @@ const api = {
|
|
|
2589
2580
|
function attachTypeApi(originalApi, type) {
|
|
2590
2581
|
originalApi[type] = (content, duration, onClose) => {
|
|
2591
2582
|
if (isArgsProps(content)) {
|
|
2592
|
-
return originalApi.open(__spreadProps$
|
|
2583
|
+
return originalApi.open(__spreadProps$g(__spreadValues$m({}, content), { type }));
|
|
2593
2584
|
}
|
|
2594
2585
|
if (typeof duration === "function") {
|
|
2595
2586
|
onClose = duration;
|
|
@@ -2603,25 +2594,25 @@ function attachTypeApi(originalApi, type) {
|
|
|
2603
2594
|
);
|
|
2604
2595
|
api.warn = api.warning;
|
|
2605
2596
|
|
|
2606
|
-
var __defProp$
|
|
2607
|
-
var __defProps$
|
|
2608
|
-
var __getOwnPropDescs$
|
|
2609
|
-
var __getOwnPropSymbols$
|
|
2610
|
-
var __hasOwnProp$
|
|
2611
|
-
var __propIsEnum$
|
|
2612
|
-
var __defNormalProp$
|
|
2613
|
-
var __spreadValues$
|
|
2597
|
+
var __defProp$l = Object.defineProperty;
|
|
2598
|
+
var __defProps$f = Object.defineProperties;
|
|
2599
|
+
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
2600
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
2601
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
2602
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
2603
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2604
|
+
var __spreadValues$l = (a, b) => {
|
|
2614
2605
|
for (var prop in b || (b = {}))
|
|
2615
|
-
if (__hasOwnProp$
|
|
2616
|
-
__defNormalProp$
|
|
2617
|
-
if (__getOwnPropSymbols$
|
|
2618
|
-
for (var prop of __getOwnPropSymbols$
|
|
2619
|
-
if (__propIsEnum$
|
|
2620
|
-
__defNormalProp$
|
|
2606
|
+
if (__hasOwnProp$l.call(b, prop))
|
|
2607
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
2608
|
+
if (__getOwnPropSymbols$l)
|
|
2609
|
+
for (var prop of __getOwnPropSymbols$l(b)) {
|
|
2610
|
+
if (__propIsEnum$l.call(b, prop))
|
|
2611
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
2621
2612
|
}
|
|
2622
2613
|
return a;
|
|
2623
2614
|
};
|
|
2624
|
-
var __spreadProps$
|
|
2615
|
+
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
2625
2616
|
const initialChartState = {
|
|
2626
2617
|
pointers: {},
|
|
2627
2618
|
resourceData: {},
|
|
@@ -2631,8 +2622,8 @@ const chartReducer = (state = initialChartState, action) => {
|
|
|
2631
2622
|
switch (action.type) {
|
|
2632
2623
|
case "SET_POINTER" /* SET_POINTER */: {
|
|
2633
2624
|
const { uuid, left, text, visible, value } = action.payload;
|
|
2634
|
-
return __spreadProps$
|
|
2635
|
-
pointers: __spreadProps$
|
|
2625
|
+
return __spreadProps$f(__spreadValues$l({}, state), {
|
|
2626
|
+
pointers: __spreadProps$f(__spreadValues$l({}, state.pointers), {
|
|
2636
2627
|
[uuid]: {
|
|
2637
2628
|
left,
|
|
2638
2629
|
text,
|
|
@@ -2644,16 +2635,16 @@ const chartReducer = (state = initialChartState, action) => {
|
|
|
2644
2635
|
}
|
|
2645
2636
|
case "SET_RESOURCE_DATA" /* SET_RESOURCE_DATA */: {
|
|
2646
2637
|
const { uuid, data } = action.payload;
|
|
2647
|
-
return __spreadProps$
|
|
2648
|
-
resourceData: __spreadProps$
|
|
2638
|
+
return __spreadProps$f(__spreadValues$l({}, state), {
|
|
2639
|
+
resourceData: __spreadProps$f(__spreadValues$l({}, state.resourceData), {
|
|
2649
2640
|
[uuid]: data
|
|
2650
2641
|
})
|
|
2651
2642
|
});
|
|
2652
2643
|
}
|
|
2653
2644
|
case "SET_AVERAGE_DATA" /* SET_AVERAGE_DATA */: {
|
|
2654
2645
|
const { uuid, average } = action.payload;
|
|
2655
|
-
return __spreadProps$
|
|
2656
|
-
averageData: __spreadProps$
|
|
2646
|
+
return __spreadProps$f(__spreadValues$l({}, state), {
|
|
2647
|
+
averageData: __spreadProps$f(__spreadValues$l({}, state.averageData), {
|
|
2657
2648
|
[uuid]: average
|
|
2658
2649
|
})
|
|
2659
2650
|
});
|
|
@@ -2664,25 +2655,25 @@ const chartReducer = (state = initialChartState, action) => {
|
|
|
2664
2655
|
}
|
|
2665
2656
|
};
|
|
2666
2657
|
|
|
2667
|
-
var __defProp$
|
|
2668
|
-
var __defProps$
|
|
2669
|
-
var __getOwnPropDescs$
|
|
2670
|
-
var __getOwnPropSymbols$
|
|
2671
|
-
var __hasOwnProp$
|
|
2672
|
-
var __propIsEnum$
|
|
2673
|
-
var __defNormalProp$
|
|
2674
|
-
var __spreadValues$
|
|
2658
|
+
var __defProp$k = Object.defineProperty;
|
|
2659
|
+
var __defProps$e = Object.defineProperties;
|
|
2660
|
+
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
|
2661
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
|
2662
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
|
2663
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
|
2664
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2665
|
+
var __spreadValues$k = (a, b) => {
|
|
2675
2666
|
for (var prop in b || (b = {}))
|
|
2676
|
-
if (__hasOwnProp$
|
|
2677
|
-
__defNormalProp$
|
|
2678
|
-
if (__getOwnPropSymbols$
|
|
2679
|
-
for (var prop of __getOwnPropSymbols$
|
|
2680
|
-
if (__propIsEnum$
|
|
2681
|
-
__defNormalProp$
|
|
2667
|
+
if (__hasOwnProp$k.call(b, prop))
|
|
2668
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
2669
|
+
if (__getOwnPropSymbols$k)
|
|
2670
|
+
for (var prop of __getOwnPropSymbols$k(b)) {
|
|
2671
|
+
if (__propIsEnum$k.call(b, prop))
|
|
2672
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
2682
2673
|
}
|
|
2683
2674
|
return a;
|
|
2684
2675
|
};
|
|
2685
|
-
var __spreadProps$
|
|
2676
|
+
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
|
2686
2677
|
var ModalActions = /* @__PURE__ */ ((ModalActions2) => {
|
|
2687
2678
|
ModalActions2["PUSH_MODAL"] = "PUSH_MODAL";
|
|
2688
2679
|
ModalActions2["POP_MODAL"] = "POP_MODAL";
|
|
@@ -2703,22 +2694,22 @@ const modalReducer = (state = initialModalState, action) => {
|
|
|
2703
2694
|
)) {
|
|
2704
2695
|
return state;
|
|
2705
2696
|
}
|
|
2706
|
-
return __spreadProps$
|
|
2707
|
-
stack: state.stack.concat(__spreadProps$
|
|
2697
|
+
return __spreadProps$e(__spreadValues$k({}, state), {
|
|
2698
|
+
stack: state.stack.concat(__spreadProps$e(__spreadValues$k({}, action.payload), {
|
|
2708
2699
|
id: MODAL_ID++
|
|
2709
2700
|
}))
|
|
2710
2701
|
});
|
|
2711
2702
|
case "POP_MODAL" /* POP_MODAL */:
|
|
2712
|
-
return __spreadProps$
|
|
2703
|
+
return __spreadProps$e(__spreadValues$k({}, state), {
|
|
2713
2704
|
stack: state.stack.slice(0, -1)
|
|
2714
2705
|
});
|
|
2715
2706
|
case "REMOVE_MODAL" /* REMOVE_MODAL */:
|
|
2716
|
-
return __spreadProps$
|
|
2707
|
+
return __spreadProps$e(__spreadValues$k({}, state), {
|
|
2717
2708
|
closeId: 0,
|
|
2718
2709
|
stack: state.stack.filter((m) => m.id !== action.id)
|
|
2719
2710
|
});
|
|
2720
2711
|
case "CLOSE_MODAL" /* CLOSE_MODAL */:
|
|
2721
|
-
return __spreadProps$
|
|
2712
|
+
return __spreadProps$e(__spreadValues$k({}, state), {
|
|
2722
2713
|
closeId: action.id
|
|
2723
2714
|
});
|
|
2724
2715
|
default:
|
|
@@ -2769,33 +2760,33 @@ const KitStoreProvider = (props) => {
|
|
|
2769
2760
|
const useKitDispatch = createDispatchHook(ctx);
|
|
2770
2761
|
const useKitSelector = createSelectorHook(ctx);
|
|
2771
2762
|
|
|
2772
|
-
var __defProp$
|
|
2773
|
-
var __defProps$
|
|
2774
|
-
var __getOwnPropDescs$
|
|
2775
|
-
var __getOwnPropSymbols$
|
|
2776
|
-
var __hasOwnProp$
|
|
2777
|
-
var __propIsEnum$
|
|
2778
|
-
var __defNormalProp$
|
|
2779
|
-
var __spreadValues$
|
|
2763
|
+
var __defProp$j = Object.defineProperty;
|
|
2764
|
+
var __defProps$d = Object.defineProperties;
|
|
2765
|
+
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
2766
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
2767
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
2768
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
2769
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2770
|
+
var __spreadValues$j = (a, b) => {
|
|
2780
2771
|
for (var prop in b || (b = {}))
|
|
2781
|
-
if (__hasOwnProp$
|
|
2782
|
-
__defNormalProp$
|
|
2783
|
-
if (__getOwnPropSymbols$
|
|
2784
|
-
for (var prop of __getOwnPropSymbols$
|
|
2785
|
-
if (__propIsEnum$
|
|
2786
|
-
__defNormalProp$
|
|
2772
|
+
if (__hasOwnProp$j.call(b, prop))
|
|
2773
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
2774
|
+
if (__getOwnPropSymbols$j)
|
|
2775
|
+
for (var prop of __getOwnPropSymbols$j(b)) {
|
|
2776
|
+
if (__propIsEnum$j.call(b, prop))
|
|
2777
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
2787
2778
|
}
|
|
2788
2779
|
return a;
|
|
2789
2780
|
};
|
|
2790
|
-
var __spreadProps$
|
|
2791
|
-
var __objRest$
|
|
2781
|
+
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
|
2782
|
+
var __objRest$6 = (source, exclude) => {
|
|
2792
2783
|
var target = {};
|
|
2793
2784
|
for (var prop in source)
|
|
2794
|
-
if (__hasOwnProp$
|
|
2785
|
+
if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2795
2786
|
target[prop] = source[prop];
|
|
2796
|
-
if (source != null && __getOwnPropSymbols$
|
|
2797
|
-
for (var prop of __getOwnPropSymbols$
|
|
2798
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2787
|
+
if (source != null && __getOwnPropSymbols$j)
|
|
2788
|
+
for (var prop of __getOwnPropSymbols$j(source)) {
|
|
2789
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
|
|
2799
2790
|
target[prop] = source[prop];
|
|
2800
2791
|
}
|
|
2801
2792
|
return target;
|
|
@@ -2822,7 +2813,7 @@ const Modal = (props) => {
|
|
|
2822
2813
|
showCancel = true,
|
|
2823
2814
|
showOk = true,
|
|
2824
2815
|
afterClose
|
|
2825
|
-
} = _a, restProps = __objRest$
|
|
2816
|
+
} = _a, restProps = __objRest$6(_a, [
|
|
2826
2817
|
"error",
|
|
2827
2818
|
"okText",
|
|
2828
2819
|
"cancelText",
|
|
@@ -2877,7 +2868,7 @@ const Modal = (props) => {
|
|
|
2877
2868
|
}
|
|
2878
2869
|
return /* @__PURE__ */ React__default.createElement(
|
|
2879
2870
|
Modal$1,
|
|
2880
|
-
__spreadProps$
|
|
2871
|
+
__spreadProps$d(__spreadValues$j({
|
|
2881
2872
|
maskClosable,
|
|
2882
2873
|
className: cs(
|
|
2883
2874
|
className,
|
|
@@ -2912,7 +2903,7 @@ const Modal = (props) => {
|
|
|
2912
2903
|
prevText
|
|
2913
2904
|
), error && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("span", { className: "modal-error" }, error))), /* @__PURE__ */ React__default.createElement("div", { className: "modal-footer-btn-group" }, showCancel && /* @__PURE__ */ React__default.createElement(
|
|
2914
2905
|
Button,
|
|
2915
|
-
__spreadValues$
|
|
2906
|
+
__spreadValues$j({
|
|
2916
2907
|
type: "quiet",
|
|
2917
2908
|
onMouseDown: (e) => {
|
|
2918
2909
|
e.preventDefault();
|
|
@@ -2926,7 +2917,7 @@ const Modal = (props) => {
|
|
|
2926
2917
|
cancelText
|
|
2927
2918
|
), showOk && /* @__PURE__ */ React__default.createElement(
|
|
2928
2919
|
Button,
|
|
2929
|
-
__spreadValues$
|
|
2920
|
+
__spreadValues$j({
|
|
2930
2921
|
onClick: (e) => {
|
|
2931
2922
|
var _a2, _b2;
|
|
2932
2923
|
onOk == null ? void 0 : onOk(e);
|
|
@@ -3078,19 +3069,19 @@ const Pagination = props => {
|
|
|
3078
3069
|
}))));
|
|
3079
3070
|
};
|
|
3080
3071
|
|
|
3081
|
-
var __defProp$
|
|
3082
|
-
var __getOwnPropSymbols$
|
|
3083
|
-
var __hasOwnProp$
|
|
3084
|
-
var __propIsEnum$
|
|
3085
|
-
var __defNormalProp$
|
|
3086
|
-
var __spreadValues$
|
|
3072
|
+
var __defProp$i = Object.defineProperty;
|
|
3073
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
3074
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
3075
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
3076
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3077
|
+
var __spreadValues$i = (a, b) => {
|
|
3087
3078
|
for (var prop in b || (b = {}))
|
|
3088
|
-
if (__hasOwnProp$
|
|
3089
|
-
__defNormalProp$
|
|
3090
|
-
if (__getOwnPropSymbols$
|
|
3091
|
-
for (var prop of __getOwnPropSymbols$
|
|
3092
|
-
if (__propIsEnum$
|
|
3093
|
-
__defNormalProp$
|
|
3079
|
+
if (__hasOwnProp$i.call(b, prop))
|
|
3080
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
3081
|
+
if (__getOwnPropSymbols$i)
|
|
3082
|
+
for (var prop of __getOwnPropSymbols$i(b)) {
|
|
3083
|
+
if (__propIsEnum$i.call(b, prop))
|
|
3084
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
3094
3085
|
}
|
|
3095
3086
|
return a;
|
|
3096
3087
|
};
|
|
@@ -3103,52 +3094,52 @@ const Percent = ({
|
|
|
3103
3094
|
emptyProps
|
|
3104
3095
|
}) => {
|
|
3105
3096
|
if (isEmpty(rawValue)) {
|
|
3106
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$
|
|
3097
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$i({}, emptyProps));
|
|
3107
3098
|
}
|
|
3108
3099
|
const { value, unit } = formatPercent(rawValue, decimals, saturated);
|
|
3109
3100
|
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, unit));
|
|
3110
3101
|
};
|
|
3111
3102
|
|
|
3112
|
-
var __defProp$
|
|
3113
|
-
var __getOwnPropSymbols$
|
|
3114
|
-
var __hasOwnProp$
|
|
3115
|
-
var __propIsEnum$
|
|
3116
|
-
var __defNormalProp$
|
|
3117
|
-
var __spreadValues$
|
|
3103
|
+
var __defProp$h = Object.defineProperty;
|
|
3104
|
+
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
|
3105
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
3106
|
+
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
|
3107
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3108
|
+
var __spreadValues$h = (a, b) => {
|
|
3118
3109
|
for (var prop in b || (b = {}))
|
|
3119
|
-
if (__hasOwnProp$
|
|
3120
|
-
__defNormalProp$
|
|
3121
|
-
if (__getOwnPropSymbols$
|
|
3122
|
-
for (var prop of __getOwnPropSymbols$
|
|
3123
|
-
if (__propIsEnum$
|
|
3124
|
-
__defNormalProp$
|
|
3110
|
+
if (__hasOwnProp$h.call(b, prop))
|
|
3111
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
3112
|
+
if (__getOwnPropSymbols$h)
|
|
3113
|
+
for (var prop of __getOwnPropSymbols$h(b)) {
|
|
3114
|
+
if (__propIsEnum$h.call(b, prop))
|
|
3115
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
3125
3116
|
}
|
|
3126
3117
|
return a;
|
|
3127
3118
|
};
|
|
3128
|
-
const Progress = (props) => /* @__PURE__ */ React__default.createElement(Progress$1, __spreadValues$
|
|
3119
|
+
const Progress = (props) => /* @__PURE__ */ React__default.createElement(Progress$1, __spreadValues$h({}, props));
|
|
3129
3120
|
|
|
3130
|
-
var __defProp$
|
|
3131
|
-
var __getOwnPropSymbols$
|
|
3132
|
-
var __hasOwnProp$
|
|
3133
|
-
var __propIsEnum$
|
|
3134
|
-
var __defNormalProp$
|
|
3121
|
+
var __defProp$g = Object.defineProperty;
|
|
3122
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
3123
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
3124
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
3125
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, {
|
|
3135
3126
|
enumerable: true,
|
|
3136
3127
|
configurable: true,
|
|
3137
3128
|
writable: true,
|
|
3138
3129
|
value
|
|
3139
3130
|
}) : obj[key] = value;
|
|
3140
|
-
var __spreadValues$
|
|
3141
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3142
|
-
if (__getOwnPropSymbols$
|
|
3143
|
-
if (__propIsEnum$
|
|
3131
|
+
var __spreadValues$g = (a, b) => {
|
|
3132
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$g.call(b, prop)) __defNormalProp$g(a, prop, b[prop]);
|
|
3133
|
+
if (__getOwnPropSymbols$g) for (var prop of __getOwnPropSymbols$g(b)) {
|
|
3134
|
+
if (__propIsEnum$g.call(b, prop)) __defNormalProp$g(a, prop, b[prop]);
|
|
3144
3135
|
}
|
|
3145
3136
|
return a;
|
|
3146
3137
|
};
|
|
3147
|
-
var __objRest$
|
|
3138
|
+
var __objRest$5 = (source, exclude) => {
|
|
3148
3139
|
var target = {};
|
|
3149
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3150
|
-
if (source != null && __getOwnPropSymbols$
|
|
3151
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3140
|
+
for (var prop in source) if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3141
|
+
if (source != null && __getOwnPropSymbols$g) for (var prop of __getOwnPropSymbols$g(source)) {
|
|
3142
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop)) target[prop] = source[prop];
|
|
3152
3143
|
}
|
|
3153
3144
|
return target;
|
|
3154
3145
|
};
|
|
@@ -3164,7 +3155,7 @@ const Radio = _a => {
|
|
|
3164
3155
|
checked,
|
|
3165
3156
|
compact = false
|
|
3166
3157
|
} = _b,
|
|
3167
|
-
props = __objRest$
|
|
3158
|
+
props = __objRest$5(_b, ["children", "className", "checked", "compact"]);
|
|
3168
3159
|
const {
|
|
3169
3160
|
description
|
|
3170
3161
|
} = props;
|
|
@@ -3174,7 +3165,7 @@ const Radio = _a => {
|
|
|
3174
3165
|
className: cx("radio-description", Typo.Label.l4_regular)
|
|
3175
3166
|
}, description));
|
|
3176
3167
|
}
|
|
3177
|
-
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Radio$1, __spreadValues$
|
|
3168
|
+
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Radio$1, __spreadValues$g({
|
|
3178
3169
|
className: cx(className, RadioStyle, compact && "compact"),
|
|
3179
3170
|
checked: checked || false,
|
|
3180
3171
|
"data-test": context.name ? `${context.name}-${String(props.value)}` : String(props.value)
|
|
@@ -3186,13 +3177,13 @@ const RadioGroup = _c => {
|
|
|
3186
3177
|
children,
|
|
3187
3178
|
className
|
|
3188
3179
|
} = _d,
|
|
3189
|
-
props = __objRest$
|
|
3180
|
+
props = __objRest$5(_d, ["children", "className"]);
|
|
3190
3181
|
return /* @__PURE__ */React__default.createElement(KitRadioGroupContext.Provider, {
|
|
3191
3182
|
value: {
|
|
3192
3183
|
disabled: props.disabled,
|
|
3193
3184
|
name: props.name
|
|
3194
3185
|
}
|
|
3195
|
-
}, /* @__PURE__ */React__default.createElement(Radio$1.Group, __spreadValues$
|
|
3186
|
+
}, /* @__PURE__ */React__default.createElement(Radio$1.Group, __spreadValues$g({
|
|
3196
3187
|
className: cx(className, RadioGroupStyle)
|
|
3197
3188
|
}, props), children ? children : null));
|
|
3198
3189
|
};
|
|
@@ -3202,7 +3193,7 @@ const RadioButton = _e => {
|
|
|
3202
3193
|
children,
|
|
3203
3194
|
className
|
|
3204
3195
|
} = _f,
|
|
3205
|
-
props = __objRest$
|
|
3196
|
+
props = __objRest$5(_f, ["children", "className"]);
|
|
3206
3197
|
const {
|
|
3207
3198
|
type,
|
|
3208
3199
|
placeholder = "Label",
|
|
@@ -3248,46 +3239,46 @@ const RadioButton = _e => {
|
|
|
3248
3239
|
className: "ant-radio-button-input-label"
|
|
3249
3240
|
}, typeof children === "string" ? children : ""));
|
|
3250
3241
|
};
|
|
3251
|
-
return /* @__PURE__ */React__default.createElement(Radio$1.Button, __spreadValues$
|
|
3242
|
+
return /* @__PURE__ */React__default.createElement(Radio$1.Button, __spreadValues$g({
|
|
3252
3243
|
className: cx(className, RadioButtonStyle),
|
|
3253
3244
|
value: radioButtonValue
|
|
3254
3245
|
}, props), renderChildren());
|
|
3255
3246
|
};
|
|
3256
3247
|
|
|
3257
|
-
var __defProp$
|
|
3258
|
-
var __getOwnPropSymbols$
|
|
3259
|
-
var __hasOwnProp$
|
|
3260
|
-
var __propIsEnum$
|
|
3261
|
-
var __defNormalProp$
|
|
3262
|
-
var __spreadValues$
|
|
3248
|
+
var __defProp$f = Object.defineProperty;
|
|
3249
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
3250
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
3251
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
3252
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3253
|
+
var __spreadValues$f = (a, b) => {
|
|
3263
3254
|
for (var prop in b || (b = {}))
|
|
3264
|
-
if (__hasOwnProp$
|
|
3265
|
-
__defNormalProp$
|
|
3266
|
-
if (__getOwnPropSymbols$
|
|
3267
|
-
for (var prop of __getOwnPropSymbols$
|
|
3268
|
-
if (__propIsEnum$
|
|
3269
|
-
__defNormalProp$
|
|
3255
|
+
if (__hasOwnProp$f.call(b, prop))
|
|
3256
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
3257
|
+
if (__getOwnPropSymbols$f)
|
|
3258
|
+
for (var prop of __getOwnPropSymbols$f(b)) {
|
|
3259
|
+
if (__propIsEnum$f.call(b, prop))
|
|
3260
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
3270
3261
|
}
|
|
3271
3262
|
return a;
|
|
3272
3263
|
};
|
|
3273
|
-
var __objRest$
|
|
3264
|
+
var __objRest$4 = (source, exclude) => {
|
|
3274
3265
|
var target = {};
|
|
3275
3266
|
for (var prop in source)
|
|
3276
|
-
if (__hasOwnProp$
|
|
3267
|
+
if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3277
3268
|
target[prop] = source[prop];
|
|
3278
|
-
if (source != null && __getOwnPropSymbols$
|
|
3279
|
-
for (var prop of __getOwnPropSymbols$
|
|
3280
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3269
|
+
if (source != null && __getOwnPropSymbols$f)
|
|
3270
|
+
for (var prop of __getOwnPropSymbols$f(source)) {
|
|
3271
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
|
|
3281
3272
|
target[prop] = source[prop];
|
|
3282
3273
|
}
|
|
3283
3274
|
return target;
|
|
3284
3275
|
};
|
|
3285
3276
|
const SearchInput = (props) => {
|
|
3286
|
-
const _a = props, { onChange, debounceWait = 300 } = _a, restProps = __objRest$
|
|
3277
|
+
const _a = props, { onChange, debounceWait = 300 } = _a, restProps = __objRest$4(_a, ["onChange", "debounceWait"]);
|
|
3287
3278
|
const onSearch = _.debounce(onChange, debounceWait);
|
|
3288
3279
|
return /* @__PURE__ */ React__default.createElement(
|
|
3289
3280
|
Input,
|
|
3290
|
-
__spreadValues$
|
|
3281
|
+
__spreadValues$f({
|
|
3291
3282
|
style: { width: 276 },
|
|
3292
3283
|
prefix: /* @__PURE__ */ React__default.createElement(SearchOutlined, null),
|
|
3293
3284
|
onChange: (e) => onSearch(e.target.value)
|
|
@@ -3295,19 +3286,19 @@ const SearchInput = (props) => {
|
|
|
3295
3286
|
);
|
|
3296
3287
|
};
|
|
3297
3288
|
|
|
3298
|
-
var __defProp$
|
|
3299
|
-
var __getOwnPropSymbols$
|
|
3300
|
-
var __hasOwnProp$
|
|
3301
|
-
var __propIsEnum$
|
|
3302
|
-
var __defNormalProp$
|
|
3303
|
-
var __spreadValues$
|
|
3289
|
+
var __defProp$e = Object.defineProperty;
|
|
3290
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
3291
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
3292
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
3293
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3294
|
+
var __spreadValues$e = (a, b) => {
|
|
3304
3295
|
for (var prop in b || (b = {}))
|
|
3305
|
-
if (__hasOwnProp$
|
|
3306
|
-
__defNormalProp$
|
|
3307
|
-
if (__getOwnPropSymbols$
|
|
3308
|
-
for (var prop of __getOwnPropSymbols$
|
|
3309
|
-
if (__propIsEnum$
|
|
3310
|
-
__defNormalProp$
|
|
3296
|
+
if (__hasOwnProp$e.call(b, prop))
|
|
3297
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
3298
|
+
if (__getOwnPropSymbols$e)
|
|
3299
|
+
for (var prop of __getOwnPropSymbols$e(b)) {
|
|
3300
|
+
if (__propIsEnum$e.call(b, prop))
|
|
3301
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
3311
3302
|
}
|
|
3312
3303
|
return a;
|
|
3313
3304
|
};
|
|
@@ -3321,7 +3312,7 @@ const Second = ({
|
|
|
3321
3312
|
}) => {
|
|
3322
3313
|
const { t } = useParrotTranslation();
|
|
3323
3314
|
if (isEmpty(rawValue)) {
|
|
3324
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$
|
|
3315
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$e({}, emptyProps));
|
|
3325
3316
|
}
|
|
3326
3317
|
const { value, unit } = formatSeconds(rawValue, decimals);
|
|
3327
3318
|
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value, " "), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, t(`common.${abbreviate ? `${unit}_abbreviation` : unit}`)));
|
|
@@ -3403,19 +3394,19 @@ const SimplePagination = props => {
|
|
|
3403
3394
|
})));
|
|
3404
3395
|
};
|
|
3405
3396
|
|
|
3406
|
-
var __defProp$
|
|
3407
|
-
var __getOwnPropSymbols$
|
|
3408
|
-
var __hasOwnProp$
|
|
3409
|
-
var __propIsEnum$
|
|
3410
|
-
var __defNormalProp$
|
|
3411
|
-
var __spreadValues$
|
|
3397
|
+
var __defProp$d = Object.defineProperty;
|
|
3398
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
3399
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
3400
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
3401
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3402
|
+
var __spreadValues$d = (a, b) => {
|
|
3412
3403
|
for (var prop in b || (b = {}))
|
|
3413
|
-
if (__hasOwnProp$
|
|
3414
|
-
__defNormalProp$
|
|
3415
|
-
if (__getOwnPropSymbols$
|
|
3416
|
-
for (var prop of __getOwnPropSymbols$
|
|
3417
|
-
if (__propIsEnum$
|
|
3418
|
-
__defNormalProp$
|
|
3404
|
+
if (__hasOwnProp$d.call(b, prop))
|
|
3405
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
3406
|
+
if (__getOwnPropSymbols$d)
|
|
3407
|
+
for (var prop of __getOwnPropSymbols$d(b)) {
|
|
3408
|
+
if (__propIsEnum$d.call(b, prop))
|
|
3409
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
3419
3410
|
}
|
|
3420
3411
|
return a;
|
|
3421
3412
|
};
|
|
@@ -3427,37 +3418,37 @@ const Speed = ({
|
|
|
3427
3418
|
emptyProps
|
|
3428
3419
|
}) => {
|
|
3429
3420
|
if (isEmpty(rawValue)) {
|
|
3430
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$
|
|
3421
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$d({}, emptyProps));
|
|
3431
3422
|
}
|
|
3432
3423
|
const { value, unit } = formatSpeed(rawValue, decimals);
|
|
3433
3424
|
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
3434
3425
|
};
|
|
3435
3426
|
|
|
3436
|
-
var __defProp$
|
|
3437
|
-
var __defProps$
|
|
3438
|
-
var __getOwnPropDescs$
|
|
3439
|
-
var __getOwnPropSymbols$
|
|
3440
|
-
var __hasOwnProp$
|
|
3441
|
-
var __propIsEnum$
|
|
3442
|
-
var __defNormalProp$
|
|
3427
|
+
var __defProp$c = Object.defineProperty;
|
|
3428
|
+
var __defProps$c = Object.defineProperties;
|
|
3429
|
+
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
3430
|
+
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
3431
|
+
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
3432
|
+
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
3433
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, {
|
|
3443
3434
|
enumerable: true,
|
|
3444
3435
|
configurable: true,
|
|
3445
3436
|
writable: true,
|
|
3446
3437
|
value
|
|
3447
3438
|
}) : obj[key] = value;
|
|
3448
|
-
var __spreadValues$
|
|
3449
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3450
|
-
if (__getOwnPropSymbols$
|
|
3451
|
-
if (__propIsEnum$
|
|
3439
|
+
var __spreadValues$c = (a, b) => {
|
|
3440
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$c.call(b, prop)) __defNormalProp$c(a, prop, b[prop]);
|
|
3441
|
+
if (__getOwnPropSymbols$c) for (var prop of __getOwnPropSymbols$c(b)) {
|
|
3442
|
+
if (__propIsEnum$c.call(b, prop)) __defNormalProp$c(a, prop, b[prop]);
|
|
3452
3443
|
}
|
|
3453
3444
|
return a;
|
|
3454
3445
|
};
|
|
3455
|
-
var __spreadProps$
|
|
3456
|
-
var __objRest$
|
|
3446
|
+
var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
|
|
3447
|
+
var __objRest$3 = (source, exclude) => {
|
|
3457
3448
|
var target = {};
|
|
3458
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3459
|
-
if (source != null && __getOwnPropSymbols$
|
|
3460
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3449
|
+
for (var prop in source) if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3450
|
+
if (source != null && __getOwnPropSymbols$c) for (var prop of __getOwnPropSymbols$c(source)) {
|
|
3451
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop)) target[prop] = source[prop];
|
|
3461
3452
|
}
|
|
3462
3453
|
return target;
|
|
3463
3454
|
};
|
|
@@ -3473,46 +3464,46 @@ const Steps = props => {
|
|
|
3473
3464
|
containerClassname,
|
|
3474
3465
|
showStepCount
|
|
3475
3466
|
} = _a,
|
|
3476
|
-
stepsProps = __objRest$
|
|
3467
|
+
stepsProps = __objRest$3(_a, ["stepsConfig", "containerClassname", "showStepCount"]);
|
|
3477
3468
|
const titleWithCount = (_step, count) => /* @__PURE__ */React__default.createElement(React__default.Fragment, null, showStepCount ? /* @__PURE__ */React__default.createElement("span", {
|
|
3478
3469
|
className: "step-count"
|
|
3479
3470
|
}, count) : null, _step.title);
|
|
3480
3471
|
return /* @__PURE__ */React__default.createElement(StepsContainer, {
|
|
3481
3472
|
className: containerClassname
|
|
3482
|
-
}, /* @__PURE__ */React__default.createElement(Steps$1, __spreadProps$
|
|
3473
|
+
}, /* @__PURE__ */React__default.createElement(Steps$1, __spreadProps$c(__spreadValues$c({}, stepsProps), {
|
|
3483
3474
|
type: "default"
|
|
3484
|
-
}), (stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */React__default.createElement(Steps$1.Step, __spreadProps$
|
|
3475
|
+
}), (stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */React__default.createElement(Steps$1.Step, __spreadProps$c(__spreadValues$c({
|
|
3485
3476
|
key: index
|
|
3486
3477
|
}, step), {
|
|
3487
3478
|
title: titleWithCount(step, index + 1)
|
|
3488
3479
|
}))) : props.children));
|
|
3489
3480
|
};
|
|
3490
3481
|
|
|
3491
|
-
var __defProp$
|
|
3492
|
-
var __defProps$
|
|
3493
|
-
var __getOwnPropDescs$
|
|
3494
|
-
var __getOwnPropSymbols$
|
|
3495
|
-
var __hasOwnProp$
|
|
3496
|
-
var __propIsEnum$
|
|
3497
|
-
var __defNormalProp$
|
|
3482
|
+
var __defProp$b = Object.defineProperty;
|
|
3483
|
+
var __defProps$b = Object.defineProperties;
|
|
3484
|
+
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
|
3485
|
+
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
3486
|
+
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
3487
|
+
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
3488
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, {
|
|
3498
3489
|
enumerable: true,
|
|
3499
3490
|
configurable: true,
|
|
3500
3491
|
writable: true,
|
|
3501
3492
|
value
|
|
3502
3493
|
}) : obj[key] = value;
|
|
3503
|
-
var __spreadValues$
|
|
3504
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3505
|
-
if (__getOwnPropSymbols$
|
|
3506
|
-
if (__propIsEnum$
|
|
3494
|
+
var __spreadValues$b = (a, b) => {
|
|
3495
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$b.call(b, prop)) __defNormalProp$b(a, prop, b[prop]);
|
|
3496
|
+
if (__getOwnPropSymbols$b) for (var prop of __getOwnPropSymbols$b(b)) {
|
|
3497
|
+
if (__propIsEnum$b.call(b, prop)) __defNormalProp$b(a, prop, b[prop]);
|
|
3507
3498
|
}
|
|
3508
3499
|
return a;
|
|
3509
3500
|
};
|
|
3510
|
-
var __spreadProps$
|
|
3511
|
-
var __objRest$
|
|
3501
|
+
var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
|
|
3502
|
+
var __objRest$2 = (source, exclude) => {
|
|
3512
3503
|
var target = {};
|
|
3513
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3514
|
-
if (source != null && __getOwnPropSymbols$
|
|
3515
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3504
|
+
for (var prop in source) if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3505
|
+
if (source != null && __getOwnPropSymbols$b) for (var prop of __getOwnPropSymbols$b(source)) {
|
|
3506
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop)) target[prop] = source[prop];
|
|
3516
3507
|
}
|
|
3517
3508
|
return target;
|
|
3518
3509
|
};
|
|
@@ -3524,7 +3515,7 @@ const Switch = _a => {
|
|
|
3524
3515
|
className,
|
|
3525
3516
|
checked
|
|
3526
3517
|
} = _b,
|
|
3527
|
-
props = __objRest$
|
|
3518
|
+
props = __objRest$2(_b, ["children", "className", "checked"]);
|
|
3528
3519
|
const Content = /*#__PURE__*/styled('span')({
|
|
3529
3520
|
name: "Content",
|
|
3530
3521
|
class: "c1to9vb9",
|
|
@@ -3532,7 +3523,7 @@ const Switch = _a => {
|
|
|
3532
3523
|
});
|
|
3533
3524
|
const classNames = [className, SwitchStyle, "switch"];
|
|
3534
3525
|
if (props.size === "large") classNames.push("ant-switch-large");
|
|
3535
|
-
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Switch$1, __spreadProps$
|
|
3526
|
+
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Switch$1, __spreadProps$b(__spreadValues$b({
|
|
3536
3527
|
className: cx(...classNames),
|
|
3537
3528
|
checked: checked || false
|
|
3538
3529
|
}, props), {
|
|
@@ -3618,26 +3609,26 @@ const ColumnTitle = props => {
|
|
|
3618
3609
|
}));
|
|
3619
3610
|
};
|
|
3620
3611
|
|
|
3621
|
-
var __defProp$
|
|
3622
|
-
var __defProps$
|
|
3623
|
-
var __getOwnPropDescs$
|
|
3624
|
-
var __getOwnPropSymbols$
|
|
3625
|
-
var __hasOwnProp$
|
|
3626
|
-
var __propIsEnum$
|
|
3627
|
-
var __defNormalProp$
|
|
3612
|
+
var __defProp$a = Object.defineProperty;
|
|
3613
|
+
var __defProps$a = Object.defineProperties;
|
|
3614
|
+
var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
|
|
3615
|
+
var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
|
|
3616
|
+
var __hasOwnProp$a = Object.prototype.hasOwnProperty;
|
|
3617
|
+
var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
|
|
3618
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, {
|
|
3628
3619
|
enumerable: true,
|
|
3629
3620
|
configurable: true,
|
|
3630
3621
|
writable: true,
|
|
3631
3622
|
value
|
|
3632
3623
|
}) : obj[key] = value;
|
|
3633
|
-
var __spreadValues$
|
|
3634
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3635
|
-
if (__getOwnPropSymbols$
|
|
3636
|
-
if (__propIsEnum$
|
|
3624
|
+
var __spreadValues$a = (a, b) => {
|
|
3625
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$a.call(b, prop)) __defNormalProp$a(a, prop, b[prop]);
|
|
3626
|
+
if (__getOwnPropSymbols$a) for (var prop of __getOwnPropSymbols$a(b)) {
|
|
3627
|
+
if (__propIsEnum$a.call(b, prop)) __defNormalProp$a(a, prop, b[prop]);
|
|
3637
3628
|
}
|
|
3638
3629
|
return a;
|
|
3639
3630
|
};
|
|
3640
|
-
var __spreadProps$
|
|
3631
|
+
var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
|
|
3641
3632
|
const TableContainerStyle = "t1upn1sz";
|
|
3642
3633
|
const tableStyleCover = "tta5kd2";
|
|
3643
3634
|
const Table = props => {
|
|
@@ -3664,7 +3655,7 @@ const Table = props => {
|
|
|
3664
3655
|
const orderRef = useRef(null);
|
|
3665
3656
|
const hasScrollBard = useTableBodyHasScrollBar(wrapper, dataSource);
|
|
3666
3657
|
const _columns = useMemo(() => columns.map(column => {
|
|
3667
|
-
const _column = __spreadValues$
|
|
3658
|
+
const _column = __spreadValues$a({}, column);
|
|
3668
3659
|
if (_column.sorter && typeof _column.title !== "function") {
|
|
3669
3660
|
_column.title = /* @__PURE__ */React__default.createElement(ColumnTitle, {
|
|
3670
3661
|
title: column.title,
|
|
@@ -3701,12 +3692,12 @@ const Table = props => {
|
|
|
3701
3692
|
onSorterChange == null ? void 0 : onSorterChange(orderRef.current, sorter.columnKey);
|
|
3702
3693
|
}
|
|
3703
3694
|
},
|
|
3704
|
-
onRow: (record, index) => __spreadValues$
|
|
3695
|
+
onRow: (record, index) => __spreadValues$a({
|
|
3705
3696
|
onClick: evt => onRowClick == null ? void 0 : onRowClick(record, index, evt)
|
|
3706
3697
|
}, onRow == null ? void 0 : onRow(record, index)),
|
|
3707
3698
|
rowClassName,
|
|
3708
3699
|
scroll,
|
|
3709
|
-
rowSelection: rowSelection && __spreadProps$
|
|
3700
|
+
rowSelection: rowSelection && __spreadProps$a(__spreadValues$a({}, rowSelection), {
|
|
3710
3701
|
columnWidth: 32
|
|
3711
3702
|
}),
|
|
3712
3703
|
showSorterTooltip: false
|
|
@@ -3768,33 +3759,33 @@ const moveItemInArray = (array, fromIndex, toIndex) => {
|
|
|
3768
3759
|
return sortArr;
|
|
3769
3760
|
};
|
|
3770
3761
|
|
|
3771
|
-
var __defProp$
|
|
3772
|
-
var __defProps$
|
|
3773
|
-
var __getOwnPropDescs$
|
|
3774
|
-
var __getOwnPropSymbols$
|
|
3775
|
-
var __hasOwnProp$
|
|
3776
|
-
var __propIsEnum$
|
|
3777
|
-
var __defNormalProp$
|
|
3778
|
-
var __spreadValues$
|
|
3762
|
+
var __defProp$9 = Object.defineProperty;
|
|
3763
|
+
var __defProps$9 = Object.defineProperties;
|
|
3764
|
+
var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
|
|
3765
|
+
var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
|
|
3766
|
+
var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
|
|
3767
|
+
var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
|
|
3768
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3769
|
+
var __spreadValues$9 = (a, b) => {
|
|
3779
3770
|
for (var prop in b || (b = {}))
|
|
3780
|
-
if (__hasOwnProp$
|
|
3781
|
-
__defNormalProp$
|
|
3782
|
-
if (__getOwnPropSymbols$
|
|
3783
|
-
for (var prop of __getOwnPropSymbols$
|
|
3784
|
-
if (__propIsEnum$
|
|
3785
|
-
__defNormalProp$
|
|
3771
|
+
if (__hasOwnProp$9.call(b, prop))
|
|
3772
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
3773
|
+
if (__getOwnPropSymbols$9)
|
|
3774
|
+
for (var prop of __getOwnPropSymbols$9(b)) {
|
|
3775
|
+
if (__propIsEnum$9.call(b, prop))
|
|
3776
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
3786
3777
|
}
|
|
3787
3778
|
return a;
|
|
3788
3779
|
};
|
|
3789
|
-
var __spreadProps$
|
|
3790
|
-
var __objRest = (source, exclude) => {
|
|
3780
|
+
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
|
|
3781
|
+
var __objRest$1 = (source, exclude) => {
|
|
3791
3782
|
var target = {};
|
|
3792
3783
|
for (var prop in source)
|
|
3793
|
-
if (__hasOwnProp$
|
|
3784
|
+
if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3794
3785
|
target[prop] = source[prop];
|
|
3795
|
-
if (source != null && __getOwnPropSymbols$
|
|
3796
|
-
for (var prop of __getOwnPropSymbols$
|
|
3797
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3786
|
+
if (source != null && __getOwnPropSymbols$9)
|
|
3787
|
+
for (var prop of __getOwnPropSymbols$9(source)) {
|
|
3788
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$9.call(source, prop))
|
|
3798
3789
|
target[prop] = source[prop];
|
|
3799
3790
|
}
|
|
3800
3791
|
return target;
|
|
@@ -3810,7 +3801,7 @@ const AddRowButton = (props) => {
|
|
|
3810
3801
|
const _a = buttonProps || {}, {
|
|
3811
3802
|
disabled: disabledFromProp,
|
|
3812
3803
|
onClick
|
|
3813
|
-
} = _a, restButtonProps = __objRest(_a, [
|
|
3804
|
+
} = _a, restButtonProps = __objRest$1(_a, [
|
|
3814
3805
|
"disabled",
|
|
3815
3806
|
"onClick"
|
|
3816
3807
|
]);
|
|
@@ -3835,9 +3826,9 @@ const AddRowButton = (props) => {
|
|
|
3835
3826
|
if (!columns.length) {
|
|
3836
3827
|
return null;
|
|
3837
3828
|
}
|
|
3838
|
-
return CustomizedButton ? /* @__PURE__ */ React__default.createElement(CustomizedButton, __spreadValues$
|
|
3829
|
+
return CustomizedButton ? /* @__PURE__ */ React__default.createElement(CustomizedButton, __spreadValues$9({}, props)) : /* @__PURE__ */ React__default.createElement(AddRowButtonWrapper, { className }, /* @__PURE__ */ React__default.createElement(
|
|
3839
3830
|
Button,
|
|
3840
|
-
__spreadProps$
|
|
3831
|
+
__spreadProps$9(__spreadValues$9({}, restButtonProps), {
|
|
3841
3832
|
type: restButtonProps.type || "ordinary",
|
|
3842
3833
|
size: restButtonProps.size || "small",
|
|
3843
3834
|
icon: restButtonProps.icon || /* @__PURE__ */ React__default.createElement(PlusOutlined, null),
|
|
@@ -3932,25 +3923,25 @@ const CheckboxColumnBodyCell = ({ data, column, index, onChange }) => {
|
|
|
3932
3923
|
);
|
|
3933
3924
|
};
|
|
3934
3925
|
|
|
3935
|
-
var __defProp$
|
|
3936
|
-
var __defProps$
|
|
3937
|
-
var __getOwnPropDescs$
|
|
3938
|
-
var __getOwnPropSymbols$
|
|
3939
|
-
var __hasOwnProp$
|
|
3940
|
-
var __propIsEnum$
|
|
3941
|
-
var __defNormalProp$
|
|
3942
|
-
var __spreadValues$
|
|
3926
|
+
var __defProp$8 = Object.defineProperty;
|
|
3927
|
+
var __defProps$8 = Object.defineProperties;
|
|
3928
|
+
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
|
3929
|
+
var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
|
|
3930
|
+
var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
|
|
3931
|
+
var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
|
|
3932
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3933
|
+
var __spreadValues$8 = (a, b) => {
|
|
3943
3934
|
for (var prop in b || (b = {}))
|
|
3944
|
-
if (__hasOwnProp$
|
|
3945
|
-
__defNormalProp$
|
|
3946
|
-
if (__getOwnPropSymbols$
|
|
3947
|
-
for (var prop of __getOwnPropSymbols$
|
|
3948
|
-
if (__propIsEnum$
|
|
3949
|
-
__defNormalProp$
|
|
3935
|
+
if (__hasOwnProp$8.call(b, prop))
|
|
3936
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
3937
|
+
if (__getOwnPropSymbols$8)
|
|
3938
|
+
for (var prop of __getOwnPropSymbols$8(b)) {
|
|
3939
|
+
if (__propIsEnum$8.call(b, prop))
|
|
3940
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
3950
3941
|
}
|
|
3951
3942
|
return a;
|
|
3952
3943
|
};
|
|
3953
|
-
var __spreadProps$
|
|
3944
|
+
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
3954
3945
|
const InputPassword = (props) => {
|
|
3955
3946
|
const [showPassword, setShowPassword] = useState(false);
|
|
3956
3947
|
useEffect(() => {
|
|
@@ -3966,7 +3957,7 @@ const InputPassword = (props) => {
|
|
|
3966
3957
|
const inputType = showPassword ? "text" : "password";
|
|
3967
3958
|
return /* @__PURE__ */ React__default.createElement(
|
|
3968
3959
|
Input$1,
|
|
3969
|
-
__spreadProps$
|
|
3960
|
+
__spreadProps$8(__spreadValues$8({}, props), {
|
|
3970
3961
|
type: inputType,
|
|
3971
3962
|
suffix: showPassword ? /* @__PURE__ */ React__default.createElement(
|
|
3972
3963
|
EyeOutlined,
|
|
@@ -3986,9 +3977,9 @@ const InputPassword = (props) => {
|
|
|
3986
3977
|
};
|
|
3987
3978
|
const CustomInput = (props) => {
|
|
3988
3979
|
if (props.type === "password") {
|
|
3989
|
-
return /* @__PURE__ */ React__default.createElement(InputPassword, __spreadValues$
|
|
3980
|
+
return /* @__PURE__ */ React__default.createElement(InputPassword, __spreadValues$8({}, props));
|
|
3990
3981
|
}
|
|
3991
|
-
return /* @__PURE__ */ React__default.createElement(Input$1, __spreadValues$
|
|
3982
|
+
return /* @__PURE__ */ React__default.createElement(Input$1, __spreadValues$8({}, props));
|
|
3992
3983
|
};
|
|
3993
3984
|
const InputColumnHeaderCell = ({ disabled, column, onChange, onBlur, onVisibleChange }) => {
|
|
3994
3985
|
const _onChange = (e) => {
|
|
@@ -4110,25 +4101,25 @@ var ValidateTriggerType = /* @__PURE__ */ ((ValidateTriggerType2) => {
|
|
|
4110
4101
|
return ValidateTriggerType2;
|
|
4111
4102
|
})(ValidateTriggerType || {});
|
|
4112
4103
|
|
|
4113
|
-
var __defProp$
|
|
4114
|
-
var __defProps$
|
|
4115
|
-
var __getOwnPropDescs$
|
|
4116
|
-
var __getOwnPropSymbols$
|
|
4117
|
-
var __hasOwnProp$
|
|
4118
|
-
var __propIsEnum$
|
|
4119
|
-
var __defNormalProp$
|
|
4120
|
-
var __spreadValues$
|
|
4104
|
+
var __defProp$7 = Object.defineProperty;
|
|
4105
|
+
var __defProps$7 = Object.defineProperties;
|
|
4106
|
+
var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
|
|
4107
|
+
var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
|
|
4108
|
+
var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
|
|
4109
|
+
var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
|
|
4110
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4111
|
+
var __spreadValues$7 = (a, b) => {
|
|
4121
4112
|
for (var prop in b || (b = {}))
|
|
4122
|
-
if (__hasOwnProp$
|
|
4123
|
-
__defNormalProp$
|
|
4124
|
-
if (__getOwnPropSymbols$
|
|
4125
|
-
for (var prop of __getOwnPropSymbols$
|
|
4126
|
-
if (__propIsEnum$
|
|
4127
|
-
__defNormalProp$
|
|
4113
|
+
if (__hasOwnProp$7.call(b, prop))
|
|
4114
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
4115
|
+
if (__getOwnPropSymbols$7)
|
|
4116
|
+
for (var prop of __getOwnPropSymbols$7(b)) {
|
|
4117
|
+
if (__propIsEnum$7.call(b, prop))
|
|
4118
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
4128
4119
|
}
|
|
4129
4120
|
return a;
|
|
4130
4121
|
};
|
|
4131
|
-
var __spreadProps$
|
|
4122
|
+
var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
|
|
4132
4123
|
const TableFormBodyCell = (props) => {
|
|
4133
4124
|
const {
|
|
4134
4125
|
column,
|
|
@@ -4150,7 +4141,7 @@ const TableFormBodyCell = (props) => {
|
|
|
4150
4141
|
(currentValue) => {
|
|
4151
4142
|
var _a;
|
|
4152
4143
|
const value = currentValue || data[rowIndex][column.key];
|
|
4153
|
-
const rowData = __spreadProps$
|
|
4144
|
+
const rowData = __spreadProps$7(__spreadValues$7({}, data[rowIndex]), { [column.key]: value });
|
|
4154
4145
|
const rowValidateRes = getRowValidateResult(rowData);
|
|
4155
4146
|
if (rowValidateRes) {
|
|
4156
4147
|
return;
|
|
@@ -4173,7 +4164,7 @@ const TableFormBodyCell = (props) => {
|
|
|
4173
4164
|
}, [validateAll, triggerValidate]);
|
|
4174
4165
|
const _onChange = (value, data2) => {
|
|
4175
4166
|
const newData = data2.map(
|
|
4176
|
-
(row, i) => i === rowIndex ? __spreadProps$
|
|
4167
|
+
(row, i) => i === rowIndex ? __spreadProps$7(__spreadValues$7({}, row), { [column.key]: value }) : row
|
|
4177
4168
|
);
|
|
4178
4169
|
onChange == null ? void 0 : onChange(newData, rowIndex, column.key);
|
|
4179
4170
|
if (validateTriggerType === ValidateTriggerType.Normal && isTouched.current || validateTriggerType === ValidateTriggerType.Aggressive) {
|
|
@@ -4250,25 +4241,25 @@ const TableFormBodyCell = (props) => {
|
|
|
4250
4241
|
);
|
|
4251
4242
|
};
|
|
4252
4243
|
|
|
4253
|
-
var __defProp$
|
|
4254
|
-
var __defProps$
|
|
4255
|
-
var __getOwnPropDescs$
|
|
4256
|
-
var __getOwnPropSymbols$
|
|
4257
|
-
var __hasOwnProp$
|
|
4258
|
-
var __propIsEnum$
|
|
4259
|
-
var __defNormalProp$
|
|
4260
|
-
var __spreadValues$
|
|
4244
|
+
var __defProp$6 = Object.defineProperty;
|
|
4245
|
+
var __defProps$6 = Object.defineProperties;
|
|
4246
|
+
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
4247
|
+
var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
|
|
4248
|
+
var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
|
|
4249
|
+
var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
|
|
4250
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4251
|
+
var __spreadValues$6 = (a, b) => {
|
|
4261
4252
|
for (var prop in b || (b = {}))
|
|
4262
|
-
if (__hasOwnProp$
|
|
4263
|
-
__defNormalProp$
|
|
4264
|
-
if (__getOwnPropSymbols$
|
|
4265
|
-
for (var prop of __getOwnPropSymbols$
|
|
4266
|
-
if (__propIsEnum$
|
|
4267
|
-
__defNormalProp$
|
|
4253
|
+
if (__hasOwnProp$6.call(b, prop))
|
|
4254
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
4255
|
+
if (__getOwnPropSymbols$6)
|
|
4256
|
+
for (var prop of __getOwnPropSymbols$6(b)) {
|
|
4257
|
+
if (__propIsEnum$6.call(b, prop))
|
|
4258
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
4268
4259
|
}
|
|
4269
4260
|
return a;
|
|
4270
4261
|
};
|
|
4271
|
-
var __spreadProps$
|
|
4262
|
+
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
|
4272
4263
|
const TableFormRow = (props) => {
|
|
4273
4264
|
const {
|
|
4274
4265
|
data,
|
|
@@ -4351,7 +4342,7 @@ const TableFormRow = (props) => {
|
|
|
4351
4342
|
);
|
|
4352
4343
|
});
|
|
4353
4344
|
const DraggableHandle = useMemo(
|
|
4354
|
-
() => draggable && provided ? /* @__PURE__ */ React__default.createElement(DraggableHandleWrapper, __spreadValues$
|
|
4345
|
+
() => draggable && provided ? /* @__PURE__ */ React__default.createElement(DraggableHandleWrapper, __spreadValues$6({}, provided.dragHandleProps), /* @__PURE__ */ React__default.createElement(
|
|
4355
4346
|
Icon,
|
|
4356
4347
|
{
|
|
4357
4348
|
src: HandlePoint816SecondaryIcon,
|
|
@@ -4400,7 +4391,7 @@ const TableFormBodyRows = memo((props) => {
|
|
|
4400
4391
|
);
|
|
4401
4392
|
return draggable ? /* @__PURE__ */ React__default.createElement(DragDropContext, { onDragEnd }, /* @__PURE__ */ React__default.createElement(Droppable, { droppableId: "droppable" }, (provided) => /* @__PURE__ */ React__default.createElement(
|
|
4402
4393
|
"div",
|
|
4403
|
-
__spreadValues$
|
|
4394
|
+
__spreadValues$6({
|
|
4404
4395
|
className: "draggable-container",
|
|
4405
4396
|
ref: provided.innerRef
|
|
4406
4397
|
}, provided.droppableProps),
|
|
@@ -4411,9 +4402,9 @@ const TableFormBodyRows = memo((props) => {
|
|
|
4411
4402
|
key: `draggable-id-${i}`,
|
|
4412
4403
|
index: i
|
|
4413
4404
|
},
|
|
4414
|
-
(provided2, snapshot) => /* @__PURE__ */ React__default.createElement("div", __spreadValues$
|
|
4405
|
+
(provided2, snapshot) => /* @__PURE__ */ React__default.createElement("div", __spreadValues$6({ ref: provided2.innerRef }, provided2.draggableProps), /* @__PURE__ */ React__default.createElement(
|
|
4415
4406
|
TableFormRow,
|
|
4416
|
-
__spreadProps$
|
|
4407
|
+
__spreadProps$6(__spreadValues$6({}, props), {
|
|
4417
4408
|
rowIndex: i,
|
|
4418
4409
|
provided: provided2,
|
|
4419
4410
|
snapshot
|
|
@@ -4421,28 +4412,28 @@ const TableFormBodyRows = memo((props) => {
|
|
|
4421
4412
|
))
|
|
4422
4413
|
)),
|
|
4423
4414
|
provided.placeholder
|
|
4424
|
-
))) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, data.map((_d, i) => /* @__PURE__ */ React__default.createElement(TableFormRow, __spreadProps$
|
|
4415
|
+
))) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, data.map((_d, i) => /* @__PURE__ */ React__default.createElement(TableFormRow, __spreadProps$6(__spreadValues$6({}, props), { rowIndex: i, key: `table-row-${i}` }))));
|
|
4425
4416
|
});
|
|
4426
4417
|
|
|
4427
|
-
var __defProp$
|
|
4428
|
-
var __defProps$
|
|
4429
|
-
var __getOwnPropDescs$
|
|
4430
|
-
var __getOwnPropSymbols$
|
|
4431
|
-
var __hasOwnProp$
|
|
4432
|
-
var __propIsEnum$
|
|
4433
|
-
var __defNormalProp$
|
|
4434
|
-
var __spreadValues$
|
|
4418
|
+
var __defProp$5 = Object.defineProperty;
|
|
4419
|
+
var __defProps$5 = Object.defineProperties;
|
|
4420
|
+
var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
|
|
4421
|
+
var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
|
|
4422
|
+
var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
|
|
4423
|
+
var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
|
|
4424
|
+
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4425
|
+
var __spreadValues$5 = (a, b) => {
|
|
4435
4426
|
for (var prop in b || (b = {}))
|
|
4436
|
-
if (__hasOwnProp$
|
|
4437
|
-
__defNormalProp$
|
|
4438
|
-
if (__getOwnPropSymbols$
|
|
4439
|
-
for (var prop of __getOwnPropSymbols$
|
|
4440
|
-
if (__propIsEnum$
|
|
4441
|
-
__defNormalProp$
|
|
4427
|
+
if (__hasOwnProp$5.call(b, prop))
|
|
4428
|
+
__defNormalProp$5(a, prop, b[prop]);
|
|
4429
|
+
if (__getOwnPropSymbols$5)
|
|
4430
|
+
for (var prop of __getOwnPropSymbols$5(b)) {
|
|
4431
|
+
if (__propIsEnum$5.call(b, prop))
|
|
4432
|
+
__defNormalProp$5(a, prop, b[prop]);
|
|
4442
4433
|
}
|
|
4443
4434
|
return a;
|
|
4444
4435
|
};
|
|
4445
|
-
var __spreadProps$
|
|
4436
|
+
var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
|
|
4446
4437
|
const BatchInputListHeaderCell = (props) => {
|
|
4447
4438
|
const { column, disabled, data, disableBatchFilling, onBlur, onChange } = props;
|
|
4448
4439
|
const [errMsg, setErrMsg] = useState();
|
|
@@ -4454,7 +4445,7 @@ const BatchInputListHeaderCell = (props) => {
|
|
|
4454
4445
|
setErrMsg(err || void 0);
|
|
4455
4446
|
const shouldAutoIncrease = column.type !== "password" && column.autoIncrease;
|
|
4456
4447
|
const newData = data.map((cell, rowIndex) => {
|
|
4457
|
-
return __spreadProps$
|
|
4448
|
+
return __spreadProps$5(__spreadValues$5({}, cell), {
|
|
4458
4449
|
[column.key]: shouldAutoIncrease && typeof value === "string" ? increaseLastNumber(value, rowIndex) : value
|
|
4459
4450
|
});
|
|
4460
4451
|
});
|
|
@@ -4471,7 +4462,7 @@ const BatchInputListHeaderCell = (props) => {
|
|
|
4471
4462
|
const CellComponent = ColumnHeaderImpls[column.type];
|
|
4472
4463
|
return /* @__PURE__ */ React__default.createElement(
|
|
4473
4464
|
CellComponent,
|
|
4474
|
-
__spreadProps$
|
|
4465
|
+
__spreadProps$5(__spreadValues$5({}, props), {
|
|
4475
4466
|
column,
|
|
4476
4467
|
onChange: headerOnChange,
|
|
4477
4468
|
onBlur: _onBlur
|
|
@@ -4506,25 +4497,25 @@ const BatchInputListHeaderCell = (props) => {
|
|
|
4506
4497
|
);
|
|
4507
4498
|
};
|
|
4508
4499
|
|
|
4509
|
-
var __defProp$
|
|
4510
|
-
var __defProps$
|
|
4511
|
-
var __getOwnPropDescs$
|
|
4512
|
-
var __getOwnPropSymbols$
|
|
4513
|
-
var __hasOwnProp$
|
|
4514
|
-
var __propIsEnum$
|
|
4515
|
-
var __defNormalProp$
|
|
4516
|
-
var __spreadValues$
|
|
4500
|
+
var __defProp$4 = Object.defineProperty;
|
|
4501
|
+
var __defProps$4 = Object.defineProperties;
|
|
4502
|
+
var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
|
|
4503
|
+
var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
|
|
4504
|
+
var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
|
|
4505
|
+
var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
|
|
4506
|
+
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4507
|
+
var __spreadValues$4 = (a, b) => {
|
|
4517
4508
|
for (var prop in b || (b = {}))
|
|
4518
|
-
if (__hasOwnProp$
|
|
4519
|
-
__defNormalProp$
|
|
4520
|
-
if (__getOwnPropSymbols$
|
|
4521
|
-
for (var prop of __getOwnPropSymbols$
|
|
4522
|
-
if (__propIsEnum$
|
|
4523
|
-
__defNormalProp$
|
|
4509
|
+
if (__hasOwnProp$4.call(b, prop))
|
|
4510
|
+
__defNormalProp$4(a, prop, b[prop]);
|
|
4511
|
+
if (__getOwnPropSymbols$4)
|
|
4512
|
+
for (var prop of __getOwnPropSymbols$4(b)) {
|
|
4513
|
+
if (__propIsEnum$4.call(b, prop))
|
|
4514
|
+
__defNormalProp$4(a, prop, b[prop]);
|
|
4524
4515
|
}
|
|
4525
4516
|
return a;
|
|
4526
4517
|
};
|
|
4527
|
-
var __spreadProps$
|
|
4518
|
+
var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
|
|
4528
4519
|
const DEFAULT_ROW_COUNT = 3;
|
|
4529
4520
|
const TableForm = React__default.forwardRef(
|
|
4530
4521
|
({
|
|
@@ -4581,7 +4572,7 @@ const TableForm = React__default.forwardRef(
|
|
|
4581
4572
|
(key, error) => {
|
|
4582
4573
|
if (error) {
|
|
4583
4574
|
const newData = latestData.map((cell) => {
|
|
4584
|
-
return __spreadProps$
|
|
4575
|
+
return __spreadProps$4(__spreadValues$4({}, cell), {
|
|
4585
4576
|
[key]: ""
|
|
4586
4577
|
});
|
|
4587
4578
|
});
|
|
@@ -4824,6 +4815,66 @@ const TimeZoneOption = ({
|
|
|
4824
4815
|
})));
|
|
4825
4816
|
};
|
|
4826
4817
|
|
|
4818
|
+
var __defProp$3 = Object.defineProperty;
|
|
4819
|
+
var __defProps$3 = Object.defineProperties;
|
|
4820
|
+
var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
|
|
4821
|
+
var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
|
|
4822
|
+
var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
|
|
4823
|
+
var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
|
|
4824
|
+
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, {
|
|
4825
|
+
enumerable: true,
|
|
4826
|
+
configurable: true,
|
|
4827
|
+
writable: true,
|
|
4828
|
+
value
|
|
4829
|
+
}) : obj[key] = value;
|
|
4830
|
+
var __spreadValues$3 = (a, b) => {
|
|
4831
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$3.call(b, prop)) __defNormalProp$3(a, prop, b[prop]);
|
|
4832
|
+
if (__getOwnPropSymbols$3) for (var prop of __getOwnPropSymbols$3(b)) {
|
|
4833
|
+
if (__propIsEnum$3.call(b, prop)) __defNormalProp$3(a, prop, b[prop]);
|
|
4834
|
+
}
|
|
4835
|
+
return a;
|
|
4836
|
+
};
|
|
4837
|
+
var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
|
|
4838
|
+
var __objRest = (source, exclude) => {
|
|
4839
|
+
var target = {};
|
|
4840
|
+
for (var prop in source) if (__hasOwnProp$3.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
4841
|
+
if (source != null && __getOwnPropSymbols$3) for (var prop of __getOwnPropSymbols$3(source)) {
|
|
4842
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$3.call(source, prop)) target[prop] = source[prop];
|
|
4843
|
+
}
|
|
4844
|
+
return target;
|
|
4845
|
+
};
|
|
4846
|
+
const PresetColors = ["blue", "red", "yellow", "green", "gray"];
|
|
4847
|
+
const Size = {
|
|
4848
|
+
small: "s1uupxds",
|
|
4849
|
+
medium: "m10sqwut",
|
|
4850
|
+
large: "l1d492wb"
|
|
4851
|
+
};
|
|
4852
|
+
const TokenStyle = "t1lzavmu";
|
|
4853
|
+
const Token = _a => {
|
|
4854
|
+
var _b = _a,
|
|
4855
|
+
{
|
|
4856
|
+
size = "small",
|
|
4857
|
+
color = "gray",
|
|
4858
|
+
className,
|
|
4859
|
+
checked
|
|
4860
|
+
} = _b,
|
|
4861
|
+
props = __objRest(_b, ["size", "color", "className", "checked"]);
|
|
4862
|
+
return /* @__PURE__ */React__default.createElement(Tag, __spreadProps$3(__spreadValues$3({}, props), {
|
|
4863
|
+
className: cs(className, Size[size], TokenStyle, {
|
|
4864
|
+
[Typo.Label.l4_regular]: size === "small" || size === "medium",
|
|
4865
|
+
[Typo.Label.l3_regular]: size === "large",
|
|
4866
|
+
[`ant-tag-${color}`]: PresetColors.includes(color)
|
|
4867
|
+
}, "ui-kit-token", checked && "ui-kit-token-checked"),
|
|
4868
|
+
closeIcon: /* @__PURE__ */React__default.createElement(Icon, {
|
|
4869
|
+
className: "selected-icon",
|
|
4870
|
+
src: XmarkRemoveSmall16RegularInheritIcon,
|
|
4871
|
+
iconHeight: 16,
|
|
4872
|
+
iconWidth: 16
|
|
4873
|
+
}),
|
|
4874
|
+
color: color === "gray" ? void 0 : color
|
|
4875
|
+
}));
|
|
4876
|
+
};
|
|
4877
|
+
|
|
4827
4878
|
function getAntdKit() {
|
|
4828
4879
|
const kit = {
|
|
4829
4880
|
loading: Loading,
|
|
@@ -4892,6 +4943,7 @@ function getAntdKit() {
|
|
|
4892
4943
|
upload: Upload,
|
|
4893
4944
|
datePickerRangePicker: DatePicker.RangePicker,
|
|
4894
4945
|
tableForm: TableForm,
|
|
4946
|
+
token: Token,
|
|
4895
4947
|
uploadDragger: Upload.Dragger,
|
|
4896
4948
|
calendar: Calendar,
|
|
4897
4949
|
timePicker: TimePicker$1,
|
|
@@ -5039,7 +5091,6 @@ class Batcher {
|
|
|
5039
5091
|
delete pendingMessages[originContent.key];
|
|
5040
5092
|
originContent.onClose = () => {
|
|
5041
5093
|
delete firedHandlers[originContent.key];
|
|
5042
|
-
delete messageStore.groupedCtx;
|
|
5043
5094
|
};
|
|
5044
5095
|
const handler = this.originalMethod(originContent);
|
|
5045
5096
|
firedHandlers[originContent.key] = handler;
|