@cloudtower/eagle 0.26.5 → 0.26.7
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/message/index.d.ts +0 -1
- package/dist/components.css +474 -401
- package/dist/esm/index.js +962 -914
- package/dist/esm/stats1.html +1 -1
- package/dist/spec/base.d.ts +7 -0
- package/dist/style.css +475 -402
- package/dist/umd/index.js +961 -913
- package/dist/umd/stats1.html +1 -1
- package/package.json +20 -15
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
|
})
|
|
@@ -1950,7 +1950,8 @@ function useElementsSize(classMap, config) {
|
|
|
1950
1950
|
return;
|
|
1951
1951
|
const nextSizes = getAllSize(classMapRef.current);
|
|
1952
1952
|
if (key) {
|
|
1953
|
-
if (!elementsSizes[key] ||
|
|
1953
|
+
if (!elementsSizes[key] || // FIXME: antd 4.0 table thead will be delay render
|
|
1954
|
+
!_.isEqual(
|
|
1954
1955
|
_.omit(elementsSizes[key], "thead"),
|
|
1955
1956
|
_.omit(nextSizes, "thead")
|
|
1956
1957
|
)) {
|
|
@@ -2009,33 +2010,33 @@ const Overflow = props => {
|
|
|
2009
2010
|
}, children), showOverflow && /* @__PURE__ */React__default.createElement("span", null, overflow));
|
|
2010
2011
|
};
|
|
2011
2012
|
|
|
2012
|
-
var __defProp$
|
|
2013
|
-
var __defProps$
|
|
2014
|
-
var __getOwnPropDescs$
|
|
2015
|
-
var __getOwnPropSymbols$
|
|
2016
|
-
var __hasOwnProp$
|
|
2017
|
-
var __propIsEnum$
|
|
2018
|
-
var __defNormalProp$
|
|
2019
|
-
var __spreadValues$
|
|
2013
|
+
var __defProp$t = Object.defineProperty;
|
|
2014
|
+
var __defProps$m = Object.defineProperties;
|
|
2015
|
+
var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
|
|
2016
|
+
var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
|
|
2017
|
+
var __hasOwnProp$t = Object.prototype.hasOwnProperty;
|
|
2018
|
+
var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
|
|
2019
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2020
|
+
var __spreadValues$t = (a, b) => {
|
|
2020
2021
|
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$
|
|
2022
|
+
if (__hasOwnProp$t.call(b, prop))
|
|
2023
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
2024
|
+
if (__getOwnPropSymbols$t)
|
|
2025
|
+
for (var prop of __getOwnPropSymbols$t(b)) {
|
|
2026
|
+
if (__propIsEnum$t.call(b, prop))
|
|
2027
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
2027
2028
|
}
|
|
2028
2029
|
return a;
|
|
2029
2030
|
};
|
|
2030
|
-
var __spreadProps$
|
|
2031
|
-
var __objRest$
|
|
2031
|
+
var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
|
|
2032
|
+
var __objRest$b = (source, exclude) => {
|
|
2032
2033
|
var target = {};
|
|
2033
2034
|
for (var prop in source)
|
|
2034
|
-
if (__hasOwnProp$
|
|
2035
|
+
if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2035
2036
|
target[prop] = source[prop];
|
|
2036
|
-
if (source != null && __getOwnPropSymbols$
|
|
2037
|
-
for (var prop of __getOwnPropSymbols$
|
|
2038
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2037
|
+
if (source != null && __getOwnPropSymbols$t)
|
|
2038
|
+
for (var prop of __getOwnPropSymbols$t(source)) {
|
|
2039
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$t.call(source, prop))
|
|
2039
2040
|
target[prop] = source[prop];
|
|
2040
2041
|
}
|
|
2041
2042
|
return target;
|
|
@@ -2054,7 +2055,7 @@ const FieldsString = (_a) => {
|
|
|
2054
2055
|
onClick,
|
|
2055
2056
|
maxLength,
|
|
2056
2057
|
focusIndicator
|
|
2057
|
-
} = _b, props = __objRest$
|
|
2058
|
+
} = _b, props = __objRest$b(_b, [
|
|
2058
2059
|
"input",
|
|
2059
2060
|
"meta",
|
|
2060
2061
|
"autoComplete",
|
|
@@ -2086,7 +2087,7 @@ const FieldsString = (_a) => {
|
|
|
2086
2087
|
}
|
|
2087
2088
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
2088
2089
|
Input,
|
|
2089
|
-
__spreadProps$
|
|
2090
|
+
__spreadProps$m(__spreadValues$t(__spreadProps$m(__spreadValues$t({
|
|
2090
2091
|
className: cs(
|
|
2091
2092
|
className,
|
|
2092
2093
|
KitInputStyle,
|
|
@@ -2111,33 +2112,33 @@ const FieldsString = (_a) => {
|
|
|
2111
2112
|
));
|
|
2112
2113
|
};
|
|
2113
2114
|
|
|
2114
|
-
var __defProp$
|
|
2115
|
-
var __defProps$
|
|
2116
|
-
var __getOwnPropDescs$
|
|
2117
|
-
var __getOwnPropSymbols$
|
|
2118
|
-
var __hasOwnProp$
|
|
2119
|
-
var __propIsEnum$
|
|
2120
|
-
var __defNormalProp$
|
|
2121
|
-
var __spreadValues$
|
|
2115
|
+
var __defProp$s = Object.defineProperty;
|
|
2116
|
+
var __defProps$l = Object.defineProperties;
|
|
2117
|
+
var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
|
|
2118
|
+
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
|
2119
|
+
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
|
2120
|
+
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
|
2121
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2122
|
+
var __spreadValues$s = (a, b) => {
|
|
2122
2123
|
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$
|
|
2124
|
+
if (__hasOwnProp$s.call(b, prop))
|
|
2125
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
2126
|
+
if (__getOwnPropSymbols$s)
|
|
2127
|
+
for (var prop of __getOwnPropSymbols$s(b)) {
|
|
2128
|
+
if (__propIsEnum$s.call(b, prop))
|
|
2129
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
2129
2130
|
}
|
|
2130
2131
|
return a;
|
|
2131
2132
|
};
|
|
2132
|
-
var __spreadProps$
|
|
2133
|
-
var __objRest$
|
|
2133
|
+
var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
|
|
2134
|
+
var __objRest$a = (source, exclude) => {
|
|
2134
2135
|
var target = {};
|
|
2135
2136
|
for (var prop in source)
|
|
2136
|
-
if (__hasOwnProp$
|
|
2137
|
+
if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2137
2138
|
target[prop] = source[prop];
|
|
2138
|
-
if (source != null && __getOwnPropSymbols$
|
|
2139
|
-
for (var prop of __getOwnPropSymbols$
|
|
2140
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2139
|
+
if (source != null && __getOwnPropSymbols$s)
|
|
2140
|
+
for (var prop of __getOwnPropSymbols$s(source)) {
|
|
2141
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop))
|
|
2141
2142
|
target[prop] = source[prop];
|
|
2142
2143
|
}
|
|
2143
2144
|
return target;
|
|
@@ -2147,7 +2148,7 @@ const TextArea = (_a) => {
|
|
|
2147
2148
|
className,
|
|
2148
2149
|
error,
|
|
2149
2150
|
size = "middle"
|
|
2150
|
-
} = _b, props = __objRest$
|
|
2151
|
+
} = _b, props = __objRest$a(_b, [
|
|
2151
2152
|
"className",
|
|
2152
2153
|
"error",
|
|
2153
2154
|
"size"
|
|
@@ -2159,7 +2160,7 @@ const TextArea = (_a) => {
|
|
|
2159
2160
|
}[size];
|
|
2160
2161
|
return /* @__PURE__ */ React__default.createElement(
|
|
2161
2162
|
Input$1.TextArea,
|
|
2162
|
-
__spreadProps$
|
|
2163
|
+
__spreadProps$l(__spreadValues$s({}, props), {
|
|
2163
2164
|
className: cs(
|
|
2164
2165
|
className,
|
|
2165
2166
|
InputStyle,
|
|
@@ -2173,33 +2174,33 @@ const TextArea = (_a) => {
|
|
|
2173
2174
|
);
|
|
2174
2175
|
};
|
|
2175
2176
|
|
|
2176
|
-
var __defProp$
|
|
2177
|
-
var __defProps$
|
|
2178
|
-
var __getOwnPropDescs$
|
|
2179
|
-
var __getOwnPropSymbols$
|
|
2180
|
-
var __hasOwnProp$
|
|
2181
|
-
var __propIsEnum$
|
|
2182
|
-
var __defNormalProp$
|
|
2183
|
-
var __spreadValues$
|
|
2177
|
+
var __defProp$r = Object.defineProperty;
|
|
2178
|
+
var __defProps$k = Object.defineProperties;
|
|
2179
|
+
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
|
2180
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
|
2181
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
|
2182
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
|
2183
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2184
|
+
var __spreadValues$r = (a, b) => {
|
|
2184
2185
|
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$
|
|
2186
|
+
if (__hasOwnProp$r.call(b, prop))
|
|
2187
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
2188
|
+
if (__getOwnPropSymbols$r)
|
|
2189
|
+
for (var prop of __getOwnPropSymbols$r(b)) {
|
|
2190
|
+
if (__propIsEnum$r.call(b, prop))
|
|
2191
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
2191
2192
|
}
|
|
2192
2193
|
return a;
|
|
2193
2194
|
};
|
|
2194
|
-
var __spreadProps$
|
|
2195
|
-
var __objRest$
|
|
2195
|
+
var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
|
|
2196
|
+
var __objRest$9 = (source, exclude) => {
|
|
2196
2197
|
var target = {};
|
|
2197
2198
|
for (var prop in source)
|
|
2198
|
-
if (__hasOwnProp$
|
|
2199
|
+
if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2199
2200
|
target[prop] = source[prop];
|
|
2200
|
-
if (source != null && __getOwnPropSymbols$
|
|
2201
|
-
for (var prop of __getOwnPropSymbols$
|
|
2202
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2201
|
+
if (source != null && __getOwnPropSymbols$r)
|
|
2202
|
+
for (var prop of __getOwnPropSymbols$r(source)) {
|
|
2203
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
|
|
2203
2204
|
target[prop] = source[prop];
|
|
2204
2205
|
}
|
|
2205
2206
|
return target;
|
|
@@ -2209,14 +2210,14 @@ const FieldsTextArea = (_a) => {
|
|
|
2209
2210
|
input,
|
|
2210
2211
|
meta,
|
|
2211
2212
|
onFocusChangeHeight
|
|
2212
|
-
} = _b, props = __objRest$
|
|
2213
|
+
} = _b, props = __objRest$9(_b, [
|
|
2213
2214
|
"input",
|
|
2214
2215
|
"meta",
|
|
2215
2216
|
"onFocusChangeHeight"
|
|
2216
2217
|
]);
|
|
2217
2218
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
2218
2219
|
TextArea,
|
|
2219
|
-
__spreadProps$
|
|
2220
|
+
__spreadProps$k(__spreadValues$r(__spreadValues$r({}, input), props), {
|
|
2220
2221
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError),
|
|
2221
2222
|
onFocus: (e) => {
|
|
2222
2223
|
input.onFocus(e);
|
|
@@ -2230,33 +2231,33 @@ const FieldsTextArea = (_a) => {
|
|
|
2230
2231
|
));
|
|
2231
2232
|
};
|
|
2232
2233
|
|
|
2233
|
-
var __defProp$
|
|
2234
|
-
var __defProps$
|
|
2235
|
-
var __getOwnPropDescs$
|
|
2236
|
-
var __getOwnPropSymbols$
|
|
2237
|
-
var __hasOwnProp$
|
|
2238
|
-
var __propIsEnum$
|
|
2239
|
-
var __defNormalProp$
|
|
2240
|
-
var __spreadValues$
|
|
2234
|
+
var __defProp$q = Object.defineProperty;
|
|
2235
|
+
var __defProps$j = Object.defineProperties;
|
|
2236
|
+
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
2237
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
2238
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
2239
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
2240
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2241
|
+
var __spreadValues$q = (a, b) => {
|
|
2241
2242
|
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$
|
|
2243
|
+
if (__hasOwnProp$q.call(b, prop))
|
|
2244
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
2245
|
+
if (__getOwnPropSymbols$q)
|
|
2246
|
+
for (var prop of __getOwnPropSymbols$q(b)) {
|
|
2247
|
+
if (__propIsEnum$q.call(b, prop))
|
|
2248
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
2248
2249
|
}
|
|
2249
2250
|
return a;
|
|
2250
2251
|
};
|
|
2251
|
-
var __spreadProps$
|
|
2252
|
-
var __objRest$
|
|
2252
|
+
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
2253
|
+
var __objRest$8 = (source, exclude) => {
|
|
2253
2254
|
var target = {};
|
|
2254
2255
|
for (var prop in source)
|
|
2255
|
-
if (__hasOwnProp$
|
|
2256
|
+
if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2256
2257
|
target[prop] = source[prop];
|
|
2257
|
-
if (source != null && __getOwnPropSymbols$
|
|
2258
|
-
for (var prop of __getOwnPropSymbols$
|
|
2259
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2258
|
+
if (source != null && __getOwnPropSymbols$q)
|
|
2259
|
+
for (var prop of __getOwnPropSymbols$q(source)) {
|
|
2260
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
|
|
2260
2261
|
target[prop] = source[prop];
|
|
2261
2262
|
}
|
|
2262
2263
|
return target;
|
|
@@ -2266,7 +2267,7 @@ const TimePicker = (_a) => {
|
|
|
2266
2267
|
className,
|
|
2267
2268
|
error,
|
|
2268
2269
|
size = "middle"
|
|
2269
|
-
} = _b, props = __objRest$
|
|
2270
|
+
} = _b, props = __objRest$8(_b, [
|
|
2270
2271
|
"className",
|
|
2271
2272
|
"error",
|
|
2272
2273
|
"size"
|
|
@@ -2278,7 +2279,7 @@ const TimePicker = (_a) => {
|
|
|
2278
2279
|
}[size];
|
|
2279
2280
|
return /* @__PURE__ */ React__default.createElement(
|
|
2280
2281
|
TimePicker$1,
|
|
2281
|
-
__spreadProps$
|
|
2282
|
+
__spreadProps$j(__spreadValues$q({}, props), {
|
|
2282
2283
|
size,
|
|
2283
2284
|
"data-test": props.name,
|
|
2284
2285
|
className: cs(className, InputStyle, typo, error ? "error" : "")
|
|
@@ -2286,33 +2287,33 @@ const TimePicker = (_a) => {
|
|
|
2286
2287
|
);
|
|
2287
2288
|
};
|
|
2288
2289
|
|
|
2289
|
-
var __defProp$
|
|
2290
|
-
var __defProps$
|
|
2291
|
-
var __getOwnPropDescs$
|
|
2292
|
-
var __getOwnPropSymbols$
|
|
2293
|
-
var __hasOwnProp$
|
|
2294
|
-
var __propIsEnum$
|
|
2295
|
-
var __defNormalProp$
|
|
2296
|
-
var __spreadValues$
|
|
2290
|
+
var __defProp$p = Object.defineProperty;
|
|
2291
|
+
var __defProps$i = Object.defineProperties;
|
|
2292
|
+
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
2293
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
2294
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
2295
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
2296
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2297
|
+
var __spreadValues$p = (a, b) => {
|
|
2297
2298
|
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$
|
|
2299
|
+
if (__hasOwnProp$p.call(b, prop))
|
|
2300
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
2301
|
+
if (__getOwnPropSymbols$p)
|
|
2302
|
+
for (var prop of __getOwnPropSymbols$p(b)) {
|
|
2303
|
+
if (__propIsEnum$p.call(b, prop))
|
|
2304
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
2304
2305
|
}
|
|
2305
2306
|
return a;
|
|
2306
2307
|
};
|
|
2307
|
-
var __spreadProps$
|
|
2308
|
-
var __objRest$
|
|
2308
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
2309
|
+
var __objRest$7 = (source, exclude) => {
|
|
2309
2310
|
var target = {};
|
|
2310
2311
|
for (var prop in source)
|
|
2311
|
-
if (__hasOwnProp$
|
|
2312
|
+
if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2312
2313
|
target[prop] = source[prop];
|
|
2313
|
-
if (source != null && __getOwnPropSymbols$
|
|
2314
|
-
for (var prop of __getOwnPropSymbols$
|
|
2315
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2314
|
+
if (source != null && __getOwnPropSymbols$p)
|
|
2315
|
+
for (var prop of __getOwnPropSymbols$p(source)) {
|
|
2316
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop))
|
|
2316
2317
|
target[prop] = source[prop];
|
|
2317
2318
|
}
|
|
2318
2319
|
return target;
|
|
@@ -2321,13 +2322,13 @@ const FieldsTimePicker = (_a) => {
|
|
|
2321
2322
|
var _b = _a, {
|
|
2322
2323
|
input,
|
|
2323
2324
|
meta
|
|
2324
|
-
} = _b, props = __objRest$
|
|
2325
|
+
} = _b, props = __objRest$7(_b, [
|
|
2325
2326
|
"input",
|
|
2326
2327
|
"meta"
|
|
2327
2328
|
]);
|
|
2328
2329
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
2329
2330
|
TimePicker,
|
|
2330
|
-
__spreadValues$
|
|
2331
|
+
__spreadValues$p(__spreadProps$i(__spreadValues$p({}, input), {
|
|
2331
2332
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
2332
2333
|
}), props)
|
|
2333
2334
|
));
|
|
@@ -2346,29 +2347,29 @@ const fields = {
|
|
|
2346
2347
|
DateTimeRange: FieldsDateTimeRange
|
|
2347
2348
|
};
|
|
2348
2349
|
|
|
2349
|
-
var __defProp$
|
|
2350
|
-
var __defProps$
|
|
2351
|
-
var __getOwnPropDescs$
|
|
2352
|
-
var __getOwnPropSymbols$
|
|
2353
|
-
var __hasOwnProp$
|
|
2354
|
-
var __propIsEnum$
|
|
2355
|
-
var __defNormalProp$
|
|
2350
|
+
var __defProp$o = Object.defineProperty;
|
|
2351
|
+
var __defProps$h = Object.defineProperties;
|
|
2352
|
+
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
2353
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
2354
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
2355
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
2356
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, {
|
|
2356
2357
|
enumerable: true,
|
|
2357
2358
|
configurable: true,
|
|
2358
2359
|
writable: true,
|
|
2359
2360
|
value
|
|
2360
2361
|
}) : obj[key] = value;
|
|
2361
|
-
var __spreadValues$
|
|
2362
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
2363
|
-
if (__getOwnPropSymbols$
|
|
2364
|
-
if (__propIsEnum$
|
|
2362
|
+
var __spreadValues$o = (a, b) => {
|
|
2363
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$o.call(b, prop)) __defNormalProp$o(a, prop, b[prop]);
|
|
2364
|
+
if (__getOwnPropSymbols$o) for (var prop of __getOwnPropSymbols$o(b)) {
|
|
2365
|
+
if (__propIsEnum$o.call(b, prop)) __defNormalProp$o(a, prop, b[prop]);
|
|
2365
2366
|
}
|
|
2366
2367
|
return a;
|
|
2367
2368
|
};
|
|
2368
|
-
var __spreadProps$
|
|
2369
|
+
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
2369
2370
|
const FormItemStyle$1 = "f1p9ti6d";
|
|
2370
2371
|
const FormItem$1 = props => {
|
|
2371
|
-
return /* @__PURE__ */React__default.createElement(AntdFormItem, __spreadProps$
|
|
2372
|
+
return /* @__PURE__ */React__default.createElement(AntdFormItem, __spreadProps$h(__spreadValues$o({}, props), {
|
|
2372
2373
|
className: cs(FormItemStyle$1, props.className)
|
|
2373
2374
|
}));
|
|
2374
2375
|
};
|
|
@@ -2376,19 +2377,19 @@ const FormItem$1 = props => {
|
|
|
2376
2377
|
const Form = Form$1;
|
|
2377
2378
|
Form.Item = FormItem$1;
|
|
2378
2379
|
|
|
2379
|
-
var __defProp$
|
|
2380
|
-
var __getOwnPropSymbols$
|
|
2381
|
-
var __hasOwnProp$
|
|
2382
|
-
var __propIsEnum$
|
|
2383
|
-
var __defNormalProp$
|
|
2384
|
-
var __spreadValues$
|
|
2380
|
+
var __defProp$n = Object.defineProperty;
|
|
2381
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
2382
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
2383
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
2384
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2385
|
+
var __spreadValues$n = (a, b) => {
|
|
2385
2386
|
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$
|
|
2387
|
+
if (__hasOwnProp$n.call(b, prop))
|
|
2388
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
2389
|
+
if (__getOwnPropSymbols$n)
|
|
2390
|
+
for (var prop of __getOwnPropSymbols$n(b)) {
|
|
2391
|
+
if (__propIsEnum$n.call(b, prop))
|
|
2392
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
2392
2393
|
}
|
|
2393
2394
|
return a;
|
|
2394
2395
|
};
|
|
@@ -2400,7 +2401,7 @@ const Frequency = ({
|
|
|
2400
2401
|
emptyProps
|
|
2401
2402
|
}) => {
|
|
2402
2403
|
if (isEmpty(rawValue)) {
|
|
2403
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$
|
|
2404
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$n({}, emptyProps));
|
|
2404
2405
|
}
|
|
2405
2406
|
const { value, unit } = formatFrequency(rawValue, decimals);
|
|
2406
2407
|
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 +2414,25 @@ const InputGroup = /*#__PURE__*/styled(_exp())({
|
|
|
2413
2414
|
propsAsIs: true
|
|
2414
2415
|
});
|
|
2415
2416
|
|
|
2416
|
-
var __defProp$
|
|
2417
|
-
var __defProps$
|
|
2418
|
-
var __getOwnPropDescs$
|
|
2419
|
-
var __getOwnPropSymbols$
|
|
2420
|
-
var __hasOwnProp$
|
|
2421
|
-
var __propIsEnum$
|
|
2422
|
-
var __defNormalProp$
|
|
2423
|
-
var __spreadValues$
|
|
2417
|
+
var __defProp$m = Object.defineProperty;
|
|
2418
|
+
var __defProps$g = Object.defineProperties;
|
|
2419
|
+
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
2420
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
2421
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
2422
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
2423
|
+
var __defNormalProp$m = (obj, key2, value) => key2 in obj ? __defProp$m(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value;
|
|
2424
|
+
var __spreadValues$m = (a, b) => {
|
|
2424
2425
|
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$
|
|
2426
|
+
if (__hasOwnProp$m.call(b, prop))
|
|
2427
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
2428
|
+
if (__getOwnPropSymbols$m)
|
|
2429
|
+
for (var prop of __getOwnPropSymbols$m(b)) {
|
|
2430
|
+
if (__propIsEnum$m.call(b, prop))
|
|
2431
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
2431
2432
|
}
|
|
2432
2433
|
return a;
|
|
2433
2434
|
};
|
|
2434
|
-
var __spreadProps$
|
|
2435
|
+
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
2435
2436
|
let messageInstance;
|
|
2436
2437
|
let defaultDuration = 3;
|
|
2437
2438
|
let defaultTop;
|
|
@@ -2441,19 +2442,6 @@ let transitionName = "move-up";
|
|
|
2441
2442
|
let getContainer;
|
|
2442
2443
|
let maxCount;
|
|
2443
2444
|
let rtl = false;
|
|
2444
|
-
let fixMessage = [];
|
|
2445
|
-
let pageVisible = true;
|
|
2446
|
-
const visibilitychangeHandler = () => {
|
|
2447
|
-
if (document.hidden) {
|
|
2448
|
-
pageVisible = false;
|
|
2449
|
-
} else {
|
|
2450
|
-
pageVisible = true;
|
|
2451
|
-
fixMessage.forEach((message) => {
|
|
2452
|
-
notice(message);
|
|
2453
|
-
});
|
|
2454
|
-
fixMessage = [];
|
|
2455
|
-
}
|
|
2456
|
-
};
|
|
2457
2445
|
function setMessageConfig(options) {
|
|
2458
2446
|
if (options.top !== void 0) {
|
|
2459
2447
|
defaultTop = options.top;
|
|
@@ -2480,9 +2468,6 @@ function setMessageConfig(options) {
|
|
|
2480
2468
|
rtl = options.rtl;
|
|
2481
2469
|
}
|
|
2482
2470
|
}
|
|
2483
|
-
if (typeof window !== "undefined") {
|
|
2484
|
-
document.addEventListener("visibilitychange", visibilitychangeHandler);
|
|
2485
|
-
}
|
|
2486
2471
|
function getRCNotificationInstance(args, callback) {
|
|
2487
2472
|
const prefixCls = args.prefixCls || localPrefixCls;
|
|
2488
2473
|
if (messageInstance) {
|
|
@@ -2497,6 +2482,7 @@ function getRCNotificationInstance(args, callback) {
|
|
|
2497
2482
|
prefixCls,
|
|
2498
2483
|
transitionName,
|
|
2499
2484
|
style: { top: defaultTop },
|
|
2485
|
+
// 覆盖原来的样式
|
|
2500
2486
|
getContainer,
|
|
2501
2487
|
maxCount
|
|
2502
2488
|
},
|
|
@@ -2548,19 +2534,12 @@ function notice(args) {
|
|
|
2548
2534
|
}
|
|
2549
2535
|
return resolve(true);
|
|
2550
2536
|
};
|
|
2551
|
-
if (
|
|
2552
|
-
fixMessage.push(args);
|
|
2553
|
-
if (fixMessage.length > 2) {
|
|
2554
|
-
fixMessage.shift();
|
|
2555
|
-
}
|
|
2537
|
+
if (document.hidden) {
|
|
2556
2538
|
return;
|
|
2557
2539
|
}
|
|
2558
2540
|
getRCNotificationInstance(args, ({ prefixCls, instance }) => {
|
|
2559
2541
|
instance.notice(
|
|
2560
|
-
getRCNoticeProps(
|
|
2561
|
-
__spreadProps$f(__spreadValues$l({}, args), { key: target, onClose: callback }),
|
|
2562
|
-
prefixCls
|
|
2563
|
-
)
|
|
2542
|
+
getRCNoticeProps(__spreadProps$g(__spreadValues$m({}, args), { key: target, onClose: callback }), prefixCls)
|
|
2564
2543
|
);
|
|
2565
2544
|
});
|
|
2566
2545
|
});
|
|
@@ -2589,7 +2568,7 @@ const api = {
|
|
|
2589
2568
|
function attachTypeApi(originalApi, type) {
|
|
2590
2569
|
originalApi[type] = (content, duration, onClose) => {
|
|
2591
2570
|
if (isArgsProps(content)) {
|
|
2592
|
-
return originalApi.open(__spreadProps$
|
|
2571
|
+
return originalApi.open(__spreadProps$g(__spreadValues$m({}, content), { type }));
|
|
2593
2572
|
}
|
|
2594
2573
|
if (typeof duration === "function") {
|
|
2595
2574
|
onClose = duration;
|
|
@@ -2603,25 +2582,25 @@ function attachTypeApi(originalApi, type) {
|
|
|
2603
2582
|
);
|
|
2604
2583
|
api.warn = api.warning;
|
|
2605
2584
|
|
|
2606
|
-
var __defProp$
|
|
2607
|
-
var __defProps$
|
|
2608
|
-
var __getOwnPropDescs$
|
|
2609
|
-
var __getOwnPropSymbols$
|
|
2610
|
-
var __hasOwnProp$
|
|
2611
|
-
var __propIsEnum$
|
|
2612
|
-
var __defNormalProp$
|
|
2613
|
-
var __spreadValues$
|
|
2585
|
+
var __defProp$l = Object.defineProperty;
|
|
2586
|
+
var __defProps$f = Object.defineProperties;
|
|
2587
|
+
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
2588
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
2589
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
2590
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
2591
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2592
|
+
var __spreadValues$l = (a, b) => {
|
|
2614
2593
|
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$
|
|
2594
|
+
if (__hasOwnProp$l.call(b, prop))
|
|
2595
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
2596
|
+
if (__getOwnPropSymbols$l)
|
|
2597
|
+
for (var prop of __getOwnPropSymbols$l(b)) {
|
|
2598
|
+
if (__propIsEnum$l.call(b, prop))
|
|
2599
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
2621
2600
|
}
|
|
2622
2601
|
return a;
|
|
2623
2602
|
};
|
|
2624
|
-
var __spreadProps$
|
|
2603
|
+
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
2625
2604
|
const initialChartState = {
|
|
2626
2605
|
pointers: {},
|
|
2627
2606
|
resourceData: {},
|
|
@@ -2631,8 +2610,8 @@ const chartReducer = (state = initialChartState, action) => {
|
|
|
2631
2610
|
switch (action.type) {
|
|
2632
2611
|
case "SET_POINTER" /* SET_POINTER */: {
|
|
2633
2612
|
const { uuid, left, text, visible, value } = action.payload;
|
|
2634
|
-
return __spreadProps$
|
|
2635
|
-
pointers: __spreadProps$
|
|
2613
|
+
return __spreadProps$f(__spreadValues$l({}, state), {
|
|
2614
|
+
pointers: __spreadProps$f(__spreadValues$l({}, state.pointers), {
|
|
2636
2615
|
[uuid]: {
|
|
2637
2616
|
left,
|
|
2638
2617
|
text,
|
|
@@ -2644,16 +2623,16 @@ const chartReducer = (state = initialChartState, action) => {
|
|
|
2644
2623
|
}
|
|
2645
2624
|
case "SET_RESOURCE_DATA" /* SET_RESOURCE_DATA */: {
|
|
2646
2625
|
const { uuid, data } = action.payload;
|
|
2647
|
-
return __spreadProps$
|
|
2648
|
-
resourceData: __spreadProps$
|
|
2626
|
+
return __spreadProps$f(__spreadValues$l({}, state), {
|
|
2627
|
+
resourceData: __spreadProps$f(__spreadValues$l({}, state.resourceData), {
|
|
2649
2628
|
[uuid]: data
|
|
2650
2629
|
})
|
|
2651
2630
|
});
|
|
2652
2631
|
}
|
|
2653
2632
|
case "SET_AVERAGE_DATA" /* SET_AVERAGE_DATA */: {
|
|
2654
2633
|
const { uuid, average } = action.payload;
|
|
2655
|
-
return __spreadProps$
|
|
2656
|
-
averageData: __spreadProps$
|
|
2634
|
+
return __spreadProps$f(__spreadValues$l({}, state), {
|
|
2635
|
+
averageData: __spreadProps$f(__spreadValues$l({}, state.averageData), {
|
|
2657
2636
|
[uuid]: average
|
|
2658
2637
|
})
|
|
2659
2638
|
});
|
|
@@ -2664,25 +2643,25 @@ const chartReducer = (state = initialChartState, action) => {
|
|
|
2664
2643
|
}
|
|
2665
2644
|
};
|
|
2666
2645
|
|
|
2667
|
-
var __defProp$
|
|
2668
|
-
var __defProps$
|
|
2669
|
-
var __getOwnPropDescs$
|
|
2670
|
-
var __getOwnPropSymbols$
|
|
2671
|
-
var __hasOwnProp$
|
|
2672
|
-
var __propIsEnum$
|
|
2673
|
-
var __defNormalProp$
|
|
2674
|
-
var __spreadValues$
|
|
2646
|
+
var __defProp$k = Object.defineProperty;
|
|
2647
|
+
var __defProps$e = Object.defineProperties;
|
|
2648
|
+
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
|
2649
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
|
2650
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
|
2651
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
|
2652
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2653
|
+
var __spreadValues$k = (a, b) => {
|
|
2675
2654
|
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$
|
|
2655
|
+
if (__hasOwnProp$k.call(b, prop))
|
|
2656
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
2657
|
+
if (__getOwnPropSymbols$k)
|
|
2658
|
+
for (var prop of __getOwnPropSymbols$k(b)) {
|
|
2659
|
+
if (__propIsEnum$k.call(b, prop))
|
|
2660
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
2682
2661
|
}
|
|
2683
2662
|
return a;
|
|
2684
2663
|
};
|
|
2685
|
-
var __spreadProps$
|
|
2664
|
+
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
|
2686
2665
|
var ModalActions = /* @__PURE__ */ ((ModalActions2) => {
|
|
2687
2666
|
ModalActions2["PUSH_MODAL"] = "PUSH_MODAL";
|
|
2688
2667
|
ModalActions2["POP_MODAL"] = "POP_MODAL";
|
|
@@ -2703,22 +2682,22 @@ const modalReducer = (state = initialModalState, action) => {
|
|
|
2703
2682
|
)) {
|
|
2704
2683
|
return state;
|
|
2705
2684
|
}
|
|
2706
|
-
return __spreadProps$
|
|
2707
|
-
stack: state.stack.concat(__spreadProps$
|
|
2685
|
+
return __spreadProps$e(__spreadValues$k({}, state), {
|
|
2686
|
+
stack: state.stack.concat(__spreadProps$e(__spreadValues$k({}, action.payload), {
|
|
2708
2687
|
id: MODAL_ID++
|
|
2709
2688
|
}))
|
|
2710
2689
|
});
|
|
2711
2690
|
case "POP_MODAL" /* POP_MODAL */:
|
|
2712
|
-
return __spreadProps$
|
|
2691
|
+
return __spreadProps$e(__spreadValues$k({}, state), {
|
|
2713
2692
|
stack: state.stack.slice(0, -1)
|
|
2714
2693
|
});
|
|
2715
2694
|
case "REMOVE_MODAL" /* REMOVE_MODAL */:
|
|
2716
|
-
return __spreadProps$
|
|
2695
|
+
return __spreadProps$e(__spreadValues$k({}, state), {
|
|
2717
2696
|
closeId: 0,
|
|
2718
2697
|
stack: state.stack.filter((m) => m.id !== action.id)
|
|
2719
2698
|
});
|
|
2720
2699
|
case "CLOSE_MODAL" /* CLOSE_MODAL */:
|
|
2721
|
-
return __spreadProps$
|
|
2700
|
+
return __spreadProps$e(__spreadValues$k({}, state), {
|
|
2722
2701
|
closeId: action.id
|
|
2723
2702
|
});
|
|
2724
2703
|
default:
|
|
@@ -2769,33 +2748,33 @@ const KitStoreProvider = (props) => {
|
|
|
2769
2748
|
const useKitDispatch = createDispatchHook(ctx);
|
|
2770
2749
|
const useKitSelector = createSelectorHook(ctx);
|
|
2771
2750
|
|
|
2772
|
-
var __defProp$
|
|
2773
|
-
var __defProps$
|
|
2774
|
-
var __getOwnPropDescs$
|
|
2775
|
-
var __getOwnPropSymbols$
|
|
2776
|
-
var __hasOwnProp$
|
|
2777
|
-
var __propIsEnum$
|
|
2778
|
-
var __defNormalProp$
|
|
2779
|
-
var __spreadValues$
|
|
2751
|
+
var __defProp$j = Object.defineProperty;
|
|
2752
|
+
var __defProps$d = Object.defineProperties;
|
|
2753
|
+
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
2754
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
2755
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
2756
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
2757
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2758
|
+
var __spreadValues$j = (a, b) => {
|
|
2780
2759
|
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$
|
|
2760
|
+
if (__hasOwnProp$j.call(b, prop))
|
|
2761
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
2762
|
+
if (__getOwnPropSymbols$j)
|
|
2763
|
+
for (var prop of __getOwnPropSymbols$j(b)) {
|
|
2764
|
+
if (__propIsEnum$j.call(b, prop))
|
|
2765
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
2787
2766
|
}
|
|
2788
2767
|
return a;
|
|
2789
2768
|
};
|
|
2790
|
-
var __spreadProps$
|
|
2791
|
-
var __objRest$
|
|
2769
|
+
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
|
2770
|
+
var __objRest$6 = (source, exclude) => {
|
|
2792
2771
|
var target = {};
|
|
2793
2772
|
for (var prop in source)
|
|
2794
|
-
if (__hasOwnProp$
|
|
2773
|
+
if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2795
2774
|
target[prop] = source[prop];
|
|
2796
|
-
if (source != null && __getOwnPropSymbols$
|
|
2797
|
-
for (var prop of __getOwnPropSymbols$
|
|
2798
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2775
|
+
if (source != null && __getOwnPropSymbols$j)
|
|
2776
|
+
for (var prop of __getOwnPropSymbols$j(source)) {
|
|
2777
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
|
|
2799
2778
|
target[prop] = source[prop];
|
|
2800
2779
|
}
|
|
2801
2780
|
return target;
|
|
@@ -2822,7 +2801,7 @@ const Modal = (props) => {
|
|
|
2822
2801
|
showCancel = true,
|
|
2823
2802
|
showOk = true,
|
|
2824
2803
|
afterClose
|
|
2825
|
-
} = _a, restProps = __objRest$
|
|
2804
|
+
} = _a, restProps = __objRest$6(_a, [
|
|
2826
2805
|
"error",
|
|
2827
2806
|
"okText",
|
|
2828
2807
|
"cancelText",
|
|
@@ -2877,7 +2856,7 @@ const Modal = (props) => {
|
|
|
2877
2856
|
}
|
|
2878
2857
|
return /* @__PURE__ */ React__default.createElement(
|
|
2879
2858
|
Modal$1,
|
|
2880
|
-
__spreadProps$
|
|
2859
|
+
__spreadProps$d(__spreadValues$j({
|
|
2881
2860
|
maskClosable,
|
|
2882
2861
|
className: cs(
|
|
2883
2862
|
className,
|
|
@@ -2912,7 +2891,7 @@ const Modal = (props) => {
|
|
|
2912
2891
|
prevText
|
|
2913
2892
|
), 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
2893
|
Button,
|
|
2915
|
-
__spreadValues$
|
|
2894
|
+
__spreadValues$j({
|
|
2916
2895
|
type: "quiet",
|
|
2917
2896
|
onMouseDown: (e) => {
|
|
2918
2897
|
e.preventDefault();
|
|
@@ -2926,7 +2905,7 @@ const Modal = (props) => {
|
|
|
2926
2905
|
cancelText
|
|
2927
2906
|
), showOk && /* @__PURE__ */ React__default.createElement(
|
|
2928
2907
|
Button,
|
|
2929
|
-
__spreadValues$
|
|
2908
|
+
__spreadValues$j({
|
|
2930
2909
|
onClick: (e) => {
|
|
2931
2910
|
var _a2, _b2;
|
|
2932
2911
|
onOk == null ? void 0 : onOk(e);
|
|
@@ -3078,19 +3057,19 @@ const Pagination = props => {
|
|
|
3078
3057
|
}))));
|
|
3079
3058
|
};
|
|
3080
3059
|
|
|
3081
|
-
var __defProp$
|
|
3082
|
-
var __getOwnPropSymbols$
|
|
3083
|
-
var __hasOwnProp$
|
|
3084
|
-
var __propIsEnum$
|
|
3085
|
-
var __defNormalProp$
|
|
3086
|
-
var __spreadValues$
|
|
3060
|
+
var __defProp$i = Object.defineProperty;
|
|
3061
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
3062
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
3063
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
3064
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3065
|
+
var __spreadValues$i = (a, b) => {
|
|
3087
3066
|
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$
|
|
3067
|
+
if (__hasOwnProp$i.call(b, prop))
|
|
3068
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
3069
|
+
if (__getOwnPropSymbols$i)
|
|
3070
|
+
for (var prop of __getOwnPropSymbols$i(b)) {
|
|
3071
|
+
if (__propIsEnum$i.call(b, prop))
|
|
3072
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
3094
3073
|
}
|
|
3095
3074
|
return a;
|
|
3096
3075
|
};
|
|
@@ -3103,52 +3082,52 @@ const Percent = ({
|
|
|
3103
3082
|
emptyProps
|
|
3104
3083
|
}) => {
|
|
3105
3084
|
if (isEmpty(rawValue)) {
|
|
3106
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$
|
|
3085
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$i({}, emptyProps));
|
|
3107
3086
|
}
|
|
3108
3087
|
const { value, unit } = formatPercent(rawValue, decimals, saturated);
|
|
3109
3088
|
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
3089
|
};
|
|
3111
3090
|
|
|
3112
|
-
var __defProp$
|
|
3113
|
-
var __getOwnPropSymbols$
|
|
3114
|
-
var __hasOwnProp$
|
|
3115
|
-
var __propIsEnum$
|
|
3116
|
-
var __defNormalProp$
|
|
3117
|
-
var __spreadValues$
|
|
3091
|
+
var __defProp$h = Object.defineProperty;
|
|
3092
|
+
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
|
3093
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
3094
|
+
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
|
3095
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3096
|
+
var __spreadValues$h = (a, b) => {
|
|
3118
3097
|
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$
|
|
3098
|
+
if (__hasOwnProp$h.call(b, prop))
|
|
3099
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
3100
|
+
if (__getOwnPropSymbols$h)
|
|
3101
|
+
for (var prop of __getOwnPropSymbols$h(b)) {
|
|
3102
|
+
if (__propIsEnum$h.call(b, prop))
|
|
3103
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
3125
3104
|
}
|
|
3126
3105
|
return a;
|
|
3127
3106
|
};
|
|
3128
|
-
const Progress = (props) => /* @__PURE__ */ React__default.createElement(Progress$1, __spreadValues$
|
|
3107
|
+
const Progress = (props) => /* @__PURE__ */ React__default.createElement(Progress$1, __spreadValues$h({}, props));
|
|
3129
3108
|
|
|
3130
|
-
var __defProp$
|
|
3131
|
-
var __getOwnPropSymbols$
|
|
3132
|
-
var __hasOwnProp$
|
|
3133
|
-
var __propIsEnum$
|
|
3134
|
-
var __defNormalProp$
|
|
3109
|
+
var __defProp$g = Object.defineProperty;
|
|
3110
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
3111
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
3112
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
3113
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, {
|
|
3135
3114
|
enumerable: true,
|
|
3136
3115
|
configurable: true,
|
|
3137
3116
|
writable: true,
|
|
3138
3117
|
value
|
|
3139
3118
|
}) : obj[key] = value;
|
|
3140
|
-
var __spreadValues$
|
|
3141
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3142
|
-
if (__getOwnPropSymbols$
|
|
3143
|
-
if (__propIsEnum$
|
|
3119
|
+
var __spreadValues$g = (a, b) => {
|
|
3120
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$g.call(b, prop)) __defNormalProp$g(a, prop, b[prop]);
|
|
3121
|
+
if (__getOwnPropSymbols$g) for (var prop of __getOwnPropSymbols$g(b)) {
|
|
3122
|
+
if (__propIsEnum$g.call(b, prop)) __defNormalProp$g(a, prop, b[prop]);
|
|
3144
3123
|
}
|
|
3145
3124
|
return a;
|
|
3146
3125
|
};
|
|
3147
|
-
var __objRest$
|
|
3126
|
+
var __objRest$5 = (source, exclude) => {
|
|
3148
3127
|
var target = {};
|
|
3149
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3150
|
-
if (source != null && __getOwnPropSymbols$
|
|
3151
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3128
|
+
for (var prop in source) if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3129
|
+
if (source != null && __getOwnPropSymbols$g) for (var prop of __getOwnPropSymbols$g(source)) {
|
|
3130
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop)) target[prop] = source[prop];
|
|
3152
3131
|
}
|
|
3153
3132
|
return target;
|
|
3154
3133
|
};
|
|
@@ -3164,7 +3143,7 @@ const Radio = _a => {
|
|
|
3164
3143
|
checked,
|
|
3165
3144
|
compact = false
|
|
3166
3145
|
} = _b,
|
|
3167
|
-
props = __objRest$
|
|
3146
|
+
props = __objRest$5(_b, ["children", "className", "checked", "compact"]);
|
|
3168
3147
|
const {
|
|
3169
3148
|
description
|
|
3170
3149
|
} = props;
|
|
@@ -3174,7 +3153,7 @@ const Radio = _a => {
|
|
|
3174
3153
|
className: cx("radio-description", Typo.Label.l4_regular)
|
|
3175
3154
|
}, description));
|
|
3176
3155
|
}
|
|
3177
|
-
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Radio$1, __spreadValues$
|
|
3156
|
+
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Radio$1, __spreadValues$g({
|
|
3178
3157
|
className: cx(className, RadioStyle, compact && "compact"),
|
|
3179
3158
|
checked: checked || false,
|
|
3180
3159
|
"data-test": context.name ? `${context.name}-${String(props.value)}` : String(props.value)
|
|
@@ -3186,13 +3165,13 @@ const RadioGroup = _c => {
|
|
|
3186
3165
|
children,
|
|
3187
3166
|
className
|
|
3188
3167
|
} = _d,
|
|
3189
|
-
props = __objRest$
|
|
3168
|
+
props = __objRest$5(_d, ["children", "className"]);
|
|
3190
3169
|
return /* @__PURE__ */React__default.createElement(KitRadioGroupContext.Provider, {
|
|
3191
3170
|
value: {
|
|
3192
3171
|
disabled: props.disabled,
|
|
3193
3172
|
name: props.name
|
|
3194
3173
|
}
|
|
3195
|
-
}, /* @__PURE__ */React__default.createElement(Radio$1.Group, __spreadValues$
|
|
3174
|
+
}, /* @__PURE__ */React__default.createElement(Radio$1.Group, __spreadValues$g({
|
|
3196
3175
|
className: cx(className, RadioGroupStyle)
|
|
3197
3176
|
}, props), children ? children : null));
|
|
3198
3177
|
};
|
|
@@ -3202,7 +3181,7 @@ const RadioButton = _e => {
|
|
|
3202
3181
|
children,
|
|
3203
3182
|
className
|
|
3204
3183
|
} = _f,
|
|
3205
|
-
props = __objRest$
|
|
3184
|
+
props = __objRest$5(_f, ["children", "className"]);
|
|
3206
3185
|
const {
|
|
3207
3186
|
type,
|
|
3208
3187
|
placeholder = "Label",
|
|
@@ -3248,46 +3227,46 @@ const RadioButton = _e => {
|
|
|
3248
3227
|
className: "ant-radio-button-input-label"
|
|
3249
3228
|
}, typeof children === "string" ? children : ""));
|
|
3250
3229
|
};
|
|
3251
|
-
return /* @__PURE__ */React__default.createElement(Radio$1.Button, __spreadValues$
|
|
3230
|
+
return /* @__PURE__ */React__default.createElement(Radio$1.Button, __spreadValues$g({
|
|
3252
3231
|
className: cx(className, RadioButtonStyle),
|
|
3253
3232
|
value: radioButtonValue
|
|
3254
3233
|
}, props), renderChildren());
|
|
3255
3234
|
};
|
|
3256
3235
|
|
|
3257
|
-
var __defProp$
|
|
3258
|
-
var __getOwnPropSymbols$
|
|
3259
|
-
var __hasOwnProp$
|
|
3260
|
-
var __propIsEnum$
|
|
3261
|
-
var __defNormalProp$
|
|
3262
|
-
var __spreadValues$
|
|
3236
|
+
var __defProp$f = Object.defineProperty;
|
|
3237
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
3238
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
3239
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
3240
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3241
|
+
var __spreadValues$f = (a, b) => {
|
|
3263
3242
|
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$
|
|
3243
|
+
if (__hasOwnProp$f.call(b, prop))
|
|
3244
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
3245
|
+
if (__getOwnPropSymbols$f)
|
|
3246
|
+
for (var prop of __getOwnPropSymbols$f(b)) {
|
|
3247
|
+
if (__propIsEnum$f.call(b, prop))
|
|
3248
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
3270
3249
|
}
|
|
3271
3250
|
return a;
|
|
3272
3251
|
};
|
|
3273
|
-
var __objRest$
|
|
3252
|
+
var __objRest$4 = (source, exclude) => {
|
|
3274
3253
|
var target = {};
|
|
3275
3254
|
for (var prop in source)
|
|
3276
|
-
if (__hasOwnProp$
|
|
3255
|
+
if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3277
3256
|
target[prop] = source[prop];
|
|
3278
|
-
if (source != null && __getOwnPropSymbols$
|
|
3279
|
-
for (var prop of __getOwnPropSymbols$
|
|
3280
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3257
|
+
if (source != null && __getOwnPropSymbols$f)
|
|
3258
|
+
for (var prop of __getOwnPropSymbols$f(source)) {
|
|
3259
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
|
|
3281
3260
|
target[prop] = source[prop];
|
|
3282
3261
|
}
|
|
3283
3262
|
return target;
|
|
3284
3263
|
};
|
|
3285
3264
|
const SearchInput = (props) => {
|
|
3286
|
-
const _a = props, { onChange, debounceWait = 300 } = _a, restProps = __objRest$
|
|
3265
|
+
const _a = props, { onChange, debounceWait = 300 } = _a, restProps = __objRest$4(_a, ["onChange", "debounceWait"]);
|
|
3287
3266
|
const onSearch = _.debounce(onChange, debounceWait);
|
|
3288
3267
|
return /* @__PURE__ */ React__default.createElement(
|
|
3289
3268
|
Input,
|
|
3290
|
-
__spreadValues$
|
|
3269
|
+
__spreadValues$f({
|
|
3291
3270
|
style: { width: 276 },
|
|
3292
3271
|
prefix: /* @__PURE__ */ React__default.createElement(SearchOutlined, null),
|
|
3293
3272
|
onChange: (e) => onSearch(e.target.value)
|
|
@@ -3295,19 +3274,19 @@ const SearchInput = (props) => {
|
|
|
3295
3274
|
);
|
|
3296
3275
|
};
|
|
3297
3276
|
|
|
3298
|
-
var __defProp$
|
|
3299
|
-
var __getOwnPropSymbols$
|
|
3300
|
-
var __hasOwnProp$
|
|
3301
|
-
var __propIsEnum$
|
|
3302
|
-
var __defNormalProp$
|
|
3303
|
-
var __spreadValues$
|
|
3277
|
+
var __defProp$e = Object.defineProperty;
|
|
3278
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
3279
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
3280
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
3281
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3282
|
+
var __spreadValues$e = (a, b) => {
|
|
3304
3283
|
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$
|
|
3284
|
+
if (__hasOwnProp$e.call(b, prop))
|
|
3285
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
3286
|
+
if (__getOwnPropSymbols$e)
|
|
3287
|
+
for (var prop of __getOwnPropSymbols$e(b)) {
|
|
3288
|
+
if (__propIsEnum$e.call(b, prop))
|
|
3289
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
3311
3290
|
}
|
|
3312
3291
|
return a;
|
|
3313
3292
|
};
|
|
@@ -3321,7 +3300,7 @@ const Second = ({
|
|
|
3321
3300
|
}) => {
|
|
3322
3301
|
const { t } = useParrotTranslation();
|
|
3323
3302
|
if (isEmpty(rawValue)) {
|
|
3324
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$
|
|
3303
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$e({}, emptyProps));
|
|
3325
3304
|
}
|
|
3326
3305
|
const { value, unit } = formatSeconds(rawValue, decimals);
|
|
3327
3306
|
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 +3382,19 @@ const SimplePagination = props => {
|
|
|
3403
3382
|
})));
|
|
3404
3383
|
};
|
|
3405
3384
|
|
|
3406
|
-
var __defProp$
|
|
3407
|
-
var __getOwnPropSymbols$
|
|
3408
|
-
var __hasOwnProp$
|
|
3409
|
-
var __propIsEnum$
|
|
3410
|
-
var __defNormalProp$
|
|
3411
|
-
var __spreadValues$
|
|
3385
|
+
var __defProp$d = Object.defineProperty;
|
|
3386
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
3387
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
3388
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
3389
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3390
|
+
var __spreadValues$d = (a, b) => {
|
|
3412
3391
|
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$
|
|
3392
|
+
if (__hasOwnProp$d.call(b, prop))
|
|
3393
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
3394
|
+
if (__getOwnPropSymbols$d)
|
|
3395
|
+
for (var prop of __getOwnPropSymbols$d(b)) {
|
|
3396
|
+
if (__propIsEnum$d.call(b, prop))
|
|
3397
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
3419
3398
|
}
|
|
3420
3399
|
return a;
|
|
3421
3400
|
};
|
|
@@ -3427,37 +3406,37 @@ const Speed = ({
|
|
|
3427
3406
|
emptyProps
|
|
3428
3407
|
}) => {
|
|
3429
3408
|
if (isEmpty(rawValue)) {
|
|
3430
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$
|
|
3409
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$d({}, emptyProps));
|
|
3431
3410
|
}
|
|
3432
3411
|
const { value, unit } = formatSpeed(rawValue, decimals);
|
|
3433
3412
|
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
3413
|
};
|
|
3435
3414
|
|
|
3436
|
-
var __defProp$
|
|
3437
|
-
var __defProps$
|
|
3438
|
-
var __getOwnPropDescs$
|
|
3439
|
-
var __getOwnPropSymbols$
|
|
3440
|
-
var __hasOwnProp$
|
|
3441
|
-
var __propIsEnum$
|
|
3442
|
-
var __defNormalProp$
|
|
3415
|
+
var __defProp$c = Object.defineProperty;
|
|
3416
|
+
var __defProps$c = Object.defineProperties;
|
|
3417
|
+
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
3418
|
+
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
3419
|
+
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
3420
|
+
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
3421
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, {
|
|
3443
3422
|
enumerable: true,
|
|
3444
3423
|
configurable: true,
|
|
3445
3424
|
writable: true,
|
|
3446
3425
|
value
|
|
3447
3426
|
}) : obj[key] = value;
|
|
3448
|
-
var __spreadValues$
|
|
3449
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3450
|
-
if (__getOwnPropSymbols$
|
|
3451
|
-
if (__propIsEnum$
|
|
3427
|
+
var __spreadValues$c = (a, b) => {
|
|
3428
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$c.call(b, prop)) __defNormalProp$c(a, prop, b[prop]);
|
|
3429
|
+
if (__getOwnPropSymbols$c) for (var prop of __getOwnPropSymbols$c(b)) {
|
|
3430
|
+
if (__propIsEnum$c.call(b, prop)) __defNormalProp$c(a, prop, b[prop]);
|
|
3452
3431
|
}
|
|
3453
3432
|
return a;
|
|
3454
3433
|
};
|
|
3455
|
-
var __spreadProps$
|
|
3456
|
-
var __objRest$
|
|
3434
|
+
var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
|
|
3435
|
+
var __objRest$3 = (source, exclude) => {
|
|
3457
3436
|
var target = {};
|
|
3458
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3459
|
-
if (source != null && __getOwnPropSymbols$
|
|
3460
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3437
|
+
for (var prop in source) if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3438
|
+
if (source != null && __getOwnPropSymbols$c) for (var prop of __getOwnPropSymbols$c(source)) {
|
|
3439
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop)) target[prop] = source[prop];
|
|
3461
3440
|
}
|
|
3462
3441
|
return target;
|
|
3463
3442
|
};
|
|
@@ -3473,46 +3452,46 @@ const Steps = props => {
|
|
|
3473
3452
|
containerClassname,
|
|
3474
3453
|
showStepCount
|
|
3475
3454
|
} = _a,
|
|
3476
|
-
stepsProps = __objRest$
|
|
3455
|
+
stepsProps = __objRest$3(_a, ["stepsConfig", "containerClassname", "showStepCount"]);
|
|
3477
3456
|
const titleWithCount = (_step, count) => /* @__PURE__ */React__default.createElement(React__default.Fragment, null, showStepCount ? /* @__PURE__ */React__default.createElement("span", {
|
|
3478
3457
|
className: "step-count"
|
|
3479
3458
|
}, count) : null, _step.title);
|
|
3480
3459
|
return /* @__PURE__ */React__default.createElement(StepsContainer, {
|
|
3481
3460
|
className: containerClassname
|
|
3482
|
-
}, /* @__PURE__ */React__default.createElement(Steps$1, __spreadProps$
|
|
3461
|
+
}, /* @__PURE__ */React__default.createElement(Steps$1, __spreadProps$c(__spreadValues$c({}, stepsProps), {
|
|
3483
3462
|
type: "default"
|
|
3484
|
-
}), (stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */React__default.createElement(Steps$1.Step, __spreadProps$
|
|
3463
|
+
}), (stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */React__default.createElement(Steps$1.Step, __spreadProps$c(__spreadValues$c({
|
|
3485
3464
|
key: index
|
|
3486
3465
|
}, step), {
|
|
3487
3466
|
title: titleWithCount(step, index + 1)
|
|
3488
3467
|
}))) : props.children));
|
|
3489
3468
|
};
|
|
3490
3469
|
|
|
3491
|
-
var __defProp$
|
|
3492
|
-
var __defProps$
|
|
3493
|
-
var __getOwnPropDescs$
|
|
3494
|
-
var __getOwnPropSymbols$
|
|
3495
|
-
var __hasOwnProp$
|
|
3496
|
-
var __propIsEnum$
|
|
3497
|
-
var __defNormalProp$
|
|
3470
|
+
var __defProp$b = Object.defineProperty;
|
|
3471
|
+
var __defProps$b = Object.defineProperties;
|
|
3472
|
+
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
|
3473
|
+
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
3474
|
+
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
3475
|
+
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
3476
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, {
|
|
3498
3477
|
enumerable: true,
|
|
3499
3478
|
configurable: true,
|
|
3500
3479
|
writable: true,
|
|
3501
3480
|
value
|
|
3502
3481
|
}) : obj[key] = value;
|
|
3503
|
-
var __spreadValues$
|
|
3504
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3505
|
-
if (__getOwnPropSymbols$
|
|
3506
|
-
if (__propIsEnum$
|
|
3482
|
+
var __spreadValues$b = (a, b) => {
|
|
3483
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$b.call(b, prop)) __defNormalProp$b(a, prop, b[prop]);
|
|
3484
|
+
if (__getOwnPropSymbols$b) for (var prop of __getOwnPropSymbols$b(b)) {
|
|
3485
|
+
if (__propIsEnum$b.call(b, prop)) __defNormalProp$b(a, prop, b[prop]);
|
|
3507
3486
|
}
|
|
3508
3487
|
return a;
|
|
3509
3488
|
};
|
|
3510
|
-
var __spreadProps$
|
|
3511
|
-
var __objRest$
|
|
3489
|
+
var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
|
|
3490
|
+
var __objRest$2 = (source, exclude) => {
|
|
3512
3491
|
var target = {};
|
|
3513
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3514
|
-
if (source != null && __getOwnPropSymbols$
|
|
3515
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3492
|
+
for (var prop in source) if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3493
|
+
if (source != null && __getOwnPropSymbols$b) for (var prop of __getOwnPropSymbols$b(source)) {
|
|
3494
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop)) target[prop] = source[prop];
|
|
3516
3495
|
}
|
|
3517
3496
|
return target;
|
|
3518
3497
|
};
|
|
@@ -3524,7 +3503,7 @@ const Switch = _a => {
|
|
|
3524
3503
|
className,
|
|
3525
3504
|
checked
|
|
3526
3505
|
} = _b,
|
|
3527
|
-
props = __objRest$
|
|
3506
|
+
props = __objRest$2(_b, ["children", "className", "checked"]);
|
|
3528
3507
|
const Content = /*#__PURE__*/styled('span')({
|
|
3529
3508
|
name: "Content",
|
|
3530
3509
|
class: "c1to9vb9",
|
|
@@ -3532,7 +3511,7 @@ const Switch = _a => {
|
|
|
3532
3511
|
});
|
|
3533
3512
|
const classNames = [className, SwitchStyle, "switch"];
|
|
3534
3513
|
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$
|
|
3514
|
+
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Switch$1, __spreadProps$b(__spreadValues$b({
|
|
3536
3515
|
className: cx(...classNames),
|
|
3537
3516
|
checked: checked || false
|
|
3538
3517
|
}, props), {
|
|
@@ -3618,26 +3597,26 @@ const ColumnTitle = props => {
|
|
|
3618
3597
|
}));
|
|
3619
3598
|
};
|
|
3620
3599
|
|
|
3621
|
-
var __defProp$
|
|
3622
|
-
var __defProps$
|
|
3623
|
-
var __getOwnPropDescs$
|
|
3624
|
-
var __getOwnPropSymbols$
|
|
3625
|
-
var __hasOwnProp$
|
|
3626
|
-
var __propIsEnum$
|
|
3627
|
-
var __defNormalProp$
|
|
3600
|
+
var __defProp$a = Object.defineProperty;
|
|
3601
|
+
var __defProps$a = Object.defineProperties;
|
|
3602
|
+
var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
|
|
3603
|
+
var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
|
|
3604
|
+
var __hasOwnProp$a = Object.prototype.hasOwnProperty;
|
|
3605
|
+
var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
|
|
3606
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, {
|
|
3628
3607
|
enumerable: true,
|
|
3629
3608
|
configurable: true,
|
|
3630
3609
|
writable: true,
|
|
3631
3610
|
value
|
|
3632
3611
|
}) : obj[key] = value;
|
|
3633
|
-
var __spreadValues$
|
|
3634
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3635
|
-
if (__getOwnPropSymbols$
|
|
3636
|
-
if (__propIsEnum$
|
|
3612
|
+
var __spreadValues$a = (a, b) => {
|
|
3613
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$a.call(b, prop)) __defNormalProp$a(a, prop, b[prop]);
|
|
3614
|
+
if (__getOwnPropSymbols$a) for (var prop of __getOwnPropSymbols$a(b)) {
|
|
3615
|
+
if (__propIsEnum$a.call(b, prop)) __defNormalProp$a(a, prop, b[prop]);
|
|
3637
3616
|
}
|
|
3638
3617
|
return a;
|
|
3639
3618
|
};
|
|
3640
|
-
var __spreadProps$
|
|
3619
|
+
var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
|
|
3641
3620
|
const TableContainerStyle = "t1upn1sz";
|
|
3642
3621
|
const tableStyleCover = "tta5kd2";
|
|
3643
3622
|
const Table = props => {
|
|
@@ -3664,7 +3643,7 @@ const Table = props => {
|
|
|
3664
3643
|
const orderRef = useRef(null);
|
|
3665
3644
|
const hasScrollBard = useTableBodyHasScrollBar(wrapper, dataSource);
|
|
3666
3645
|
const _columns = useMemo(() => columns.map(column => {
|
|
3667
|
-
const _column = __spreadValues$
|
|
3646
|
+
const _column = __spreadValues$a({}, column);
|
|
3668
3647
|
if (_column.sorter && typeof _column.title !== "function") {
|
|
3669
3648
|
_column.title = /* @__PURE__ */React__default.createElement(ColumnTitle, {
|
|
3670
3649
|
title: column.title,
|
|
@@ -3701,12 +3680,12 @@ const Table = props => {
|
|
|
3701
3680
|
onSorterChange == null ? void 0 : onSorterChange(orderRef.current, sorter.columnKey);
|
|
3702
3681
|
}
|
|
3703
3682
|
},
|
|
3704
|
-
onRow: (record, index) => __spreadValues$
|
|
3683
|
+
onRow: (record, index) => __spreadValues$a({
|
|
3705
3684
|
onClick: evt => onRowClick == null ? void 0 : onRowClick(record, index, evt)
|
|
3706
3685
|
}, onRow == null ? void 0 : onRow(record, index)),
|
|
3707
3686
|
rowClassName,
|
|
3708
3687
|
scroll,
|
|
3709
|
-
rowSelection: rowSelection && __spreadProps$
|
|
3688
|
+
rowSelection: rowSelection && __spreadProps$a(__spreadValues$a({}, rowSelection), {
|
|
3710
3689
|
columnWidth: 32
|
|
3711
3690
|
}),
|
|
3712
3691
|
showSorterTooltip: false
|
|
@@ -3768,33 +3747,33 @@ const moveItemInArray = (array, fromIndex, toIndex) => {
|
|
|
3768
3747
|
return sortArr;
|
|
3769
3748
|
};
|
|
3770
3749
|
|
|
3771
|
-
var __defProp$
|
|
3772
|
-
var __defProps$
|
|
3773
|
-
var __getOwnPropDescs$
|
|
3774
|
-
var __getOwnPropSymbols$
|
|
3775
|
-
var __hasOwnProp$
|
|
3776
|
-
var __propIsEnum$
|
|
3777
|
-
var __defNormalProp$
|
|
3778
|
-
var __spreadValues$
|
|
3750
|
+
var __defProp$9 = Object.defineProperty;
|
|
3751
|
+
var __defProps$9 = Object.defineProperties;
|
|
3752
|
+
var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
|
|
3753
|
+
var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
|
|
3754
|
+
var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
|
|
3755
|
+
var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
|
|
3756
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3757
|
+
var __spreadValues$9 = (a, b) => {
|
|
3779
3758
|
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$
|
|
3759
|
+
if (__hasOwnProp$9.call(b, prop))
|
|
3760
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
3761
|
+
if (__getOwnPropSymbols$9)
|
|
3762
|
+
for (var prop of __getOwnPropSymbols$9(b)) {
|
|
3763
|
+
if (__propIsEnum$9.call(b, prop))
|
|
3764
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
3786
3765
|
}
|
|
3787
3766
|
return a;
|
|
3788
3767
|
};
|
|
3789
|
-
var __spreadProps$
|
|
3790
|
-
var __objRest = (source, exclude) => {
|
|
3768
|
+
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
|
|
3769
|
+
var __objRest$1 = (source, exclude) => {
|
|
3791
3770
|
var target = {};
|
|
3792
3771
|
for (var prop in source)
|
|
3793
|
-
if (__hasOwnProp$
|
|
3772
|
+
if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3794
3773
|
target[prop] = source[prop];
|
|
3795
|
-
if (source != null && __getOwnPropSymbols$
|
|
3796
|
-
for (var prop of __getOwnPropSymbols$
|
|
3797
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3774
|
+
if (source != null && __getOwnPropSymbols$9)
|
|
3775
|
+
for (var prop of __getOwnPropSymbols$9(source)) {
|
|
3776
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$9.call(source, prop))
|
|
3798
3777
|
target[prop] = source[prop];
|
|
3799
3778
|
}
|
|
3800
3779
|
return target;
|
|
@@ -3810,7 +3789,7 @@ const AddRowButton = (props) => {
|
|
|
3810
3789
|
const _a = buttonProps || {}, {
|
|
3811
3790
|
disabled: disabledFromProp,
|
|
3812
3791
|
onClick
|
|
3813
|
-
} = _a, restButtonProps = __objRest(_a, [
|
|
3792
|
+
} = _a, restButtonProps = __objRest$1(_a, [
|
|
3814
3793
|
"disabled",
|
|
3815
3794
|
"onClick"
|
|
3816
3795
|
]);
|
|
@@ -3835,9 +3814,9 @@ const AddRowButton = (props) => {
|
|
|
3835
3814
|
if (!columns.length) {
|
|
3836
3815
|
return null;
|
|
3837
3816
|
}
|
|
3838
|
-
return CustomizedButton ? /* @__PURE__ */ React__default.createElement(CustomizedButton, __spreadValues$
|
|
3817
|
+
return CustomizedButton ? /* @__PURE__ */ React__default.createElement(CustomizedButton, __spreadValues$9({}, props)) : /* @__PURE__ */ React__default.createElement(AddRowButtonWrapper, { className }, /* @__PURE__ */ React__default.createElement(
|
|
3839
3818
|
Button,
|
|
3840
|
-
__spreadProps$
|
|
3819
|
+
__spreadProps$9(__spreadValues$9({}, restButtonProps), {
|
|
3841
3820
|
type: restButtonProps.type || "ordinary",
|
|
3842
3821
|
size: restButtonProps.size || "small",
|
|
3843
3822
|
icon: restButtonProps.icon || /* @__PURE__ */ React__default.createElement(PlusOutlined, null),
|
|
@@ -3932,25 +3911,25 @@ const CheckboxColumnBodyCell = ({ data, column, index, onChange }) => {
|
|
|
3932
3911
|
);
|
|
3933
3912
|
};
|
|
3934
3913
|
|
|
3935
|
-
var __defProp$
|
|
3936
|
-
var __defProps$
|
|
3937
|
-
var __getOwnPropDescs$
|
|
3938
|
-
var __getOwnPropSymbols$
|
|
3939
|
-
var __hasOwnProp$
|
|
3940
|
-
var __propIsEnum$
|
|
3941
|
-
var __defNormalProp$
|
|
3942
|
-
var __spreadValues$
|
|
3914
|
+
var __defProp$8 = Object.defineProperty;
|
|
3915
|
+
var __defProps$8 = Object.defineProperties;
|
|
3916
|
+
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
|
3917
|
+
var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
|
|
3918
|
+
var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
|
|
3919
|
+
var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
|
|
3920
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3921
|
+
var __spreadValues$8 = (a, b) => {
|
|
3943
3922
|
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$
|
|
3923
|
+
if (__hasOwnProp$8.call(b, prop))
|
|
3924
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
3925
|
+
if (__getOwnPropSymbols$8)
|
|
3926
|
+
for (var prop of __getOwnPropSymbols$8(b)) {
|
|
3927
|
+
if (__propIsEnum$8.call(b, prop))
|
|
3928
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
3950
3929
|
}
|
|
3951
3930
|
return a;
|
|
3952
3931
|
};
|
|
3953
|
-
var __spreadProps$
|
|
3932
|
+
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
3954
3933
|
const InputPassword = (props) => {
|
|
3955
3934
|
const [showPassword, setShowPassword] = useState(false);
|
|
3956
3935
|
useEffect(() => {
|
|
@@ -3966,7 +3945,7 @@ const InputPassword = (props) => {
|
|
|
3966
3945
|
const inputType = showPassword ? "text" : "password";
|
|
3967
3946
|
return /* @__PURE__ */ React__default.createElement(
|
|
3968
3947
|
Input$1,
|
|
3969
|
-
__spreadProps$
|
|
3948
|
+
__spreadProps$8(__spreadValues$8({}, props), {
|
|
3970
3949
|
type: inputType,
|
|
3971
3950
|
suffix: showPassword ? /* @__PURE__ */ React__default.createElement(
|
|
3972
3951
|
EyeOutlined,
|
|
@@ -3986,9 +3965,9 @@ const InputPassword = (props) => {
|
|
|
3986
3965
|
};
|
|
3987
3966
|
const CustomInput = (props) => {
|
|
3988
3967
|
if (props.type === "password") {
|
|
3989
|
-
return /* @__PURE__ */ React__default.createElement(InputPassword, __spreadValues$
|
|
3968
|
+
return /* @__PURE__ */ React__default.createElement(InputPassword, __spreadValues$8({}, props));
|
|
3990
3969
|
}
|
|
3991
|
-
return /* @__PURE__ */ React__default.createElement(Input$1, __spreadValues$
|
|
3970
|
+
return /* @__PURE__ */ React__default.createElement(Input$1, __spreadValues$8({}, props));
|
|
3992
3971
|
};
|
|
3993
3972
|
const InputColumnHeaderCell = ({ disabled, column, onChange, onBlur, onVisibleChange }) => {
|
|
3994
3973
|
const _onChange = (e) => {
|
|
@@ -4110,25 +4089,25 @@ var ValidateTriggerType = /* @__PURE__ */ ((ValidateTriggerType2) => {
|
|
|
4110
4089
|
return ValidateTriggerType2;
|
|
4111
4090
|
})(ValidateTriggerType || {});
|
|
4112
4091
|
|
|
4113
|
-
var __defProp$
|
|
4114
|
-
var __defProps$
|
|
4115
|
-
var __getOwnPropDescs$
|
|
4116
|
-
var __getOwnPropSymbols$
|
|
4117
|
-
var __hasOwnProp$
|
|
4118
|
-
var __propIsEnum$
|
|
4119
|
-
var __defNormalProp$
|
|
4120
|
-
var __spreadValues$
|
|
4092
|
+
var __defProp$7 = Object.defineProperty;
|
|
4093
|
+
var __defProps$7 = Object.defineProperties;
|
|
4094
|
+
var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
|
|
4095
|
+
var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
|
|
4096
|
+
var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
|
|
4097
|
+
var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
|
|
4098
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4099
|
+
var __spreadValues$7 = (a, b) => {
|
|
4121
4100
|
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$
|
|
4101
|
+
if (__hasOwnProp$7.call(b, prop))
|
|
4102
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
4103
|
+
if (__getOwnPropSymbols$7)
|
|
4104
|
+
for (var prop of __getOwnPropSymbols$7(b)) {
|
|
4105
|
+
if (__propIsEnum$7.call(b, prop))
|
|
4106
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
4128
4107
|
}
|
|
4129
4108
|
return a;
|
|
4130
4109
|
};
|
|
4131
|
-
var __spreadProps$
|
|
4110
|
+
var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
|
|
4132
4111
|
const TableFormBodyCell = (props) => {
|
|
4133
4112
|
const {
|
|
4134
4113
|
column,
|
|
@@ -4150,7 +4129,7 @@ const TableFormBodyCell = (props) => {
|
|
|
4150
4129
|
(currentValue) => {
|
|
4151
4130
|
var _a;
|
|
4152
4131
|
const value = currentValue || data[rowIndex][column.key];
|
|
4153
|
-
const rowData = __spreadProps$
|
|
4132
|
+
const rowData = __spreadProps$7(__spreadValues$7({}, data[rowIndex]), { [column.key]: value });
|
|
4154
4133
|
const rowValidateRes = getRowValidateResult(rowData);
|
|
4155
4134
|
if (rowValidateRes) {
|
|
4156
4135
|
return;
|
|
@@ -4173,7 +4152,7 @@ const TableFormBodyCell = (props) => {
|
|
|
4173
4152
|
}, [validateAll, triggerValidate]);
|
|
4174
4153
|
const _onChange = (value, data2) => {
|
|
4175
4154
|
const newData = data2.map(
|
|
4176
|
-
(row, i) => i === rowIndex ? __spreadProps$
|
|
4155
|
+
(row, i) => i === rowIndex ? __spreadProps$7(__spreadValues$7({}, row), { [column.key]: value }) : row
|
|
4177
4156
|
);
|
|
4178
4157
|
onChange == null ? void 0 : onChange(newData, rowIndex, column.key);
|
|
4179
4158
|
if (validateTriggerType === ValidateTriggerType.Normal && isTouched.current || validateTriggerType === ValidateTriggerType.Aggressive) {
|
|
@@ -4250,25 +4229,25 @@ const TableFormBodyCell = (props) => {
|
|
|
4250
4229
|
);
|
|
4251
4230
|
};
|
|
4252
4231
|
|
|
4253
|
-
var __defProp$
|
|
4254
|
-
var __defProps$
|
|
4255
|
-
var __getOwnPropDescs$
|
|
4256
|
-
var __getOwnPropSymbols$
|
|
4257
|
-
var __hasOwnProp$
|
|
4258
|
-
var __propIsEnum$
|
|
4259
|
-
var __defNormalProp$
|
|
4260
|
-
var __spreadValues$
|
|
4232
|
+
var __defProp$6 = Object.defineProperty;
|
|
4233
|
+
var __defProps$6 = Object.defineProperties;
|
|
4234
|
+
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
4235
|
+
var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
|
|
4236
|
+
var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
|
|
4237
|
+
var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
|
|
4238
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4239
|
+
var __spreadValues$6 = (a, b) => {
|
|
4261
4240
|
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$
|
|
4241
|
+
if (__hasOwnProp$6.call(b, prop))
|
|
4242
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
4243
|
+
if (__getOwnPropSymbols$6)
|
|
4244
|
+
for (var prop of __getOwnPropSymbols$6(b)) {
|
|
4245
|
+
if (__propIsEnum$6.call(b, prop))
|
|
4246
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
4268
4247
|
}
|
|
4269
4248
|
return a;
|
|
4270
4249
|
};
|
|
4271
|
-
var __spreadProps$
|
|
4250
|
+
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
|
4272
4251
|
const TableFormRow = (props) => {
|
|
4273
4252
|
const {
|
|
4274
4253
|
data,
|
|
@@ -4351,7 +4330,7 @@ const TableFormRow = (props) => {
|
|
|
4351
4330
|
);
|
|
4352
4331
|
});
|
|
4353
4332
|
const DraggableHandle = useMemo(
|
|
4354
|
-
() => draggable && provided ? /* @__PURE__ */ React__default.createElement(DraggableHandleWrapper, __spreadValues$
|
|
4333
|
+
() => draggable && provided ? /* @__PURE__ */ React__default.createElement(DraggableHandleWrapper, __spreadValues$6({}, provided.dragHandleProps), /* @__PURE__ */ React__default.createElement(
|
|
4355
4334
|
Icon,
|
|
4356
4335
|
{
|
|
4357
4336
|
src: HandlePoint816SecondaryIcon,
|
|
@@ -4400,7 +4379,7 @@ const TableFormBodyRows = memo((props) => {
|
|
|
4400
4379
|
);
|
|
4401
4380
|
return draggable ? /* @__PURE__ */ React__default.createElement(DragDropContext, { onDragEnd }, /* @__PURE__ */ React__default.createElement(Droppable, { droppableId: "droppable" }, (provided) => /* @__PURE__ */ React__default.createElement(
|
|
4402
4381
|
"div",
|
|
4403
|
-
__spreadValues$
|
|
4382
|
+
__spreadValues$6({
|
|
4404
4383
|
className: "draggable-container",
|
|
4405
4384
|
ref: provided.innerRef
|
|
4406
4385
|
}, provided.droppableProps),
|
|
@@ -4411,9 +4390,9 @@ const TableFormBodyRows = memo((props) => {
|
|
|
4411
4390
|
key: `draggable-id-${i}`,
|
|
4412
4391
|
index: i
|
|
4413
4392
|
},
|
|
4414
|
-
(provided2, snapshot) => /* @__PURE__ */ React__default.createElement("div", __spreadValues$
|
|
4393
|
+
(provided2, snapshot) => /* @__PURE__ */ React__default.createElement("div", __spreadValues$6({ ref: provided2.innerRef }, provided2.draggableProps), /* @__PURE__ */ React__default.createElement(
|
|
4415
4394
|
TableFormRow,
|
|
4416
|
-
__spreadProps$
|
|
4395
|
+
__spreadProps$6(__spreadValues$6({}, props), {
|
|
4417
4396
|
rowIndex: i,
|
|
4418
4397
|
provided: provided2,
|
|
4419
4398
|
snapshot
|
|
@@ -4421,28 +4400,28 @@ const TableFormBodyRows = memo((props) => {
|
|
|
4421
4400
|
))
|
|
4422
4401
|
)),
|
|
4423
4402
|
provided.placeholder
|
|
4424
|
-
))) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, data.map((_d, i) => /* @__PURE__ */ React__default.createElement(TableFormRow, __spreadProps$
|
|
4403
|
+
))) : /* @__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
4404
|
});
|
|
4426
4405
|
|
|
4427
|
-
var __defProp$
|
|
4428
|
-
var __defProps$
|
|
4429
|
-
var __getOwnPropDescs$
|
|
4430
|
-
var __getOwnPropSymbols$
|
|
4431
|
-
var __hasOwnProp$
|
|
4432
|
-
var __propIsEnum$
|
|
4433
|
-
var __defNormalProp$
|
|
4434
|
-
var __spreadValues$
|
|
4406
|
+
var __defProp$5 = Object.defineProperty;
|
|
4407
|
+
var __defProps$5 = Object.defineProperties;
|
|
4408
|
+
var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
|
|
4409
|
+
var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
|
|
4410
|
+
var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
|
|
4411
|
+
var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
|
|
4412
|
+
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4413
|
+
var __spreadValues$5 = (a, b) => {
|
|
4435
4414
|
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$
|
|
4415
|
+
if (__hasOwnProp$5.call(b, prop))
|
|
4416
|
+
__defNormalProp$5(a, prop, b[prop]);
|
|
4417
|
+
if (__getOwnPropSymbols$5)
|
|
4418
|
+
for (var prop of __getOwnPropSymbols$5(b)) {
|
|
4419
|
+
if (__propIsEnum$5.call(b, prop))
|
|
4420
|
+
__defNormalProp$5(a, prop, b[prop]);
|
|
4442
4421
|
}
|
|
4443
4422
|
return a;
|
|
4444
4423
|
};
|
|
4445
|
-
var __spreadProps$
|
|
4424
|
+
var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
|
|
4446
4425
|
const BatchInputListHeaderCell = (props) => {
|
|
4447
4426
|
const { column, disabled, data, disableBatchFilling, onBlur, onChange } = props;
|
|
4448
4427
|
const [errMsg, setErrMsg] = useState();
|
|
@@ -4454,7 +4433,7 @@ const BatchInputListHeaderCell = (props) => {
|
|
|
4454
4433
|
setErrMsg(err || void 0);
|
|
4455
4434
|
const shouldAutoIncrease = column.type !== "password" && column.autoIncrease;
|
|
4456
4435
|
const newData = data.map((cell, rowIndex) => {
|
|
4457
|
-
return __spreadProps$
|
|
4436
|
+
return __spreadProps$5(__spreadValues$5({}, cell), {
|
|
4458
4437
|
[column.key]: shouldAutoIncrease && typeof value === "string" ? increaseLastNumber(value, rowIndex) : value
|
|
4459
4438
|
});
|
|
4460
4439
|
});
|
|
@@ -4471,7 +4450,7 @@ const BatchInputListHeaderCell = (props) => {
|
|
|
4471
4450
|
const CellComponent = ColumnHeaderImpls[column.type];
|
|
4472
4451
|
return /* @__PURE__ */ React__default.createElement(
|
|
4473
4452
|
CellComponent,
|
|
4474
|
-
__spreadProps$
|
|
4453
|
+
__spreadProps$5(__spreadValues$5({}, props), {
|
|
4475
4454
|
column,
|
|
4476
4455
|
onChange: headerOnChange,
|
|
4477
4456
|
onBlur: _onBlur
|
|
@@ -4506,25 +4485,25 @@ const BatchInputListHeaderCell = (props) => {
|
|
|
4506
4485
|
);
|
|
4507
4486
|
};
|
|
4508
4487
|
|
|
4509
|
-
var __defProp$
|
|
4510
|
-
var __defProps$
|
|
4511
|
-
var __getOwnPropDescs$
|
|
4512
|
-
var __getOwnPropSymbols$
|
|
4513
|
-
var __hasOwnProp$
|
|
4514
|
-
var __propIsEnum$
|
|
4515
|
-
var __defNormalProp$
|
|
4516
|
-
var __spreadValues$
|
|
4488
|
+
var __defProp$4 = Object.defineProperty;
|
|
4489
|
+
var __defProps$4 = Object.defineProperties;
|
|
4490
|
+
var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
|
|
4491
|
+
var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
|
|
4492
|
+
var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
|
|
4493
|
+
var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
|
|
4494
|
+
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4495
|
+
var __spreadValues$4 = (a, b) => {
|
|
4517
4496
|
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$
|
|
4497
|
+
if (__hasOwnProp$4.call(b, prop))
|
|
4498
|
+
__defNormalProp$4(a, prop, b[prop]);
|
|
4499
|
+
if (__getOwnPropSymbols$4)
|
|
4500
|
+
for (var prop of __getOwnPropSymbols$4(b)) {
|
|
4501
|
+
if (__propIsEnum$4.call(b, prop))
|
|
4502
|
+
__defNormalProp$4(a, prop, b[prop]);
|
|
4524
4503
|
}
|
|
4525
4504
|
return a;
|
|
4526
4505
|
};
|
|
4527
|
-
var __spreadProps$
|
|
4506
|
+
var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
|
|
4528
4507
|
const DEFAULT_ROW_COUNT = 3;
|
|
4529
4508
|
const TableForm = React__default.forwardRef(
|
|
4530
4509
|
({
|
|
@@ -4581,7 +4560,7 @@ const TableForm = React__default.forwardRef(
|
|
|
4581
4560
|
(key, error) => {
|
|
4582
4561
|
if (error) {
|
|
4583
4562
|
const newData = latestData.map((cell) => {
|
|
4584
|
-
return __spreadProps$
|
|
4563
|
+
return __spreadProps$4(__spreadValues$4({}, cell), {
|
|
4585
4564
|
[key]: ""
|
|
4586
4565
|
});
|
|
4587
4566
|
});
|
|
@@ -4824,6 +4803,66 @@ const TimeZoneOption = ({
|
|
|
4824
4803
|
})));
|
|
4825
4804
|
};
|
|
4826
4805
|
|
|
4806
|
+
var __defProp$3 = Object.defineProperty;
|
|
4807
|
+
var __defProps$3 = Object.defineProperties;
|
|
4808
|
+
var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
|
|
4809
|
+
var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
|
|
4810
|
+
var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
|
|
4811
|
+
var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
|
|
4812
|
+
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, {
|
|
4813
|
+
enumerable: true,
|
|
4814
|
+
configurable: true,
|
|
4815
|
+
writable: true,
|
|
4816
|
+
value
|
|
4817
|
+
}) : obj[key] = value;
|
|
4818
|
+
var __spreadValues$3 = (a, b) => {
|
|
4819
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$3.call(b, prop)) __defNormalProp$3(a, prop, b[prop]);
|
|
4820
|
+
if (__getOwnPropSymbols$3) for (var prop of __getOwnPropSymbols$3(b)) {
|
|
4821
|
+
if (__propIsEnum$3.call(b, prop)) __defNormalProp$3(a, prop, b[prop]);
|
|
4822
|
+
}
|
|
4823
|
+
return a;
|
|
4824
|
+
};
|
|
4825
|
+
var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
|
|
4826
|
+
var __objRest = (source, exclude) => {
|
|
4827
|
+
var target = {};
|
|
4828
|
+
for (var prop in source) if (__hasOwnProp$3.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
4829
|
+
if (source != null && __getOwnPropSymbols$3) for (var prop of __getOwnPropSymbols$3(source)) {
|
|
4830
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$3.call(source, prop)) target[prop] = source[prop];
|
|
4831
|
+
}
|
|
4832
|
+
return target;
|
|
4833
|
+
};
|
|
4834
|
+
const PresetColors = ["blue", "red", "yellow", "green", "gray"];
|
|
4835
|
+
const Size = {
|
|
4836
|
+
small: "s1uupxds",
|
|
4837
|
+
medium: "m10sqwut",
|
|
4838
|
+
large: "l1d492wb"
|
|
4839
|
+
};
|
|
4840
|
+
const TokenStyle = "t1lzavmu";
|
|
4841
|
+
const Token = _a => {
|
|
4842
|
+
var _b = _a,
|
|
4843
|
+
{
|
|
4844
|
+
size = "small",
|
|
4845
|
+
color = "gray",
|
|
4846
|
+
className,
|
|
4847
|
+
checked
|
|
4848
|
+
} = _b,
|
|
4849
|
+
props = __objRest(_b, ["size", "color", "className", "checked"]);
|
|
4850
|
+
return /* @__PURE__ */React__default.createElement(Tag, __spreadProps$3(__spreadValues$3({}, props), {
|
|
4851
|
+
className: cs(className, Size[size], TokenStyle, {
|
|
4852
|
+
[Typo.Label.l4_regular]: size === "small" || size === "medium",
|
|
4853
|
+
[Typo.Label.l3_regular]: size === "large",
|
|
4854
|
+
[`ant-tag-${color}`]: PresetColors.includes(color)
|
|
4855
|
+
}, "ui-kit-token", checked && "ui-kit-token-checked"),
|
|
4856
|
+
closeIcon: /* @__PURE__ */React__default.createElement(Icon, {
|
|
4857
|
+
className: "selected-icon",
|
|
4858
|
+
src: XmarkRemoveSmall16RegularInheritIcon,
|
|
4859
|
+
iconHeight: 16,
|
|
4860
|
+
iconWidth: 16
|
|
4861
|
+
}),
|
|
4862
|
+
color: color === "gray" ? void 0 : color
|
|
4863
|
+
}));
|
|
4864
|
+
};
|
|
4865
|
+
|
|
4827
4866
|
function getAntdKit() {
|
|
4828
4867
|
const kit = {
|
|
4829
4868
|
loading: Loading,
|
|
@@ -4892,6 +4931,7 @@ function getAntdKit() {
|
|
|
4892
4931
|
upload: Upload,
|
|
4893
4932
|
datePickerRangePicker: DatePicker.RangePicker,
|
|
4894
4933
|
tableForm: TableForm,
|
|
4934
|
+
token: Token,
|
|
4895
4935
|
uploadDragger: Upload.Dragger,
|
|
4896
4936
|
calendar: Calendar,
|
|
4897
4937
|
timePicker: TimePicker$1,
|
|
@@ -4978,6 +5018,10 @@ var __spreadValues$2 = (a, b) => {
|
|
|
4978
5018
|
return a;
|
|
4979
5019
|
};
|
|
4980
5020
|
var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
|
|
5021
|
+
var __publicField = (obj, key, value) => {
|
|
5022
|
+
__defNormalProp$2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5023
|
+
return value;
|
|
5024
|
+
};
|
|
4981
5025
|
function makeUUID(length = 25) {
|
|
4982
5026
|
let result = "";
|
|
4983
5027
|
const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
@@ -4989,13 +5033,18 @@ function makeUUID(length = 25) {
|
|
|
4989
5033
|
}
|
|
4990
5034
|
class Batcher {
|
|
4991
5035
|
constructor(originalMethod, batchHelper) {
|
|
4992
|
-
this
|
|
4993
|
-
this
|
|
4994
|
-
this
|
|
5036
|
+
__publicField(this, "batchSize", 2);
|
|
5037
|
+
__publicField(this, "batchTime", 200);
|
|
5038
|
+
__publicField(this, "scheduler", {});
|
|
5039
|
+
__publicField(this, "originalMethod");
|
|
5040
|
+
__publicField(this, "batchHelper");
|
|
4995
5041
|
this.originalMethod = originalMethod;
|
|
4996
5042
|
this.batchHelper = batchHelper;
|
|
4997
5043
|
}
|
|
4998
5044
|
addMessage(originContent) {
|
|
5045
|
+
if (document.hidden) {
|
|
5046
|
+
return;
|
|
5047
|
+
}
|
|
4999
5048
|
const batchKey = this.batchHelper.getBatchKey(originContent.content);
|
|
5000
5049
|
if (batchKey == null) {
|
|
5001
5050
|
this.originalMethod(originContent);
|
|
@@ -5039,7 +5088,6 @@ class Batcher {
|
|
|
5039
5088
|
delete pendingMessages[originContent.key];
|
|
5040
5089
|
originContent.onClose = () => {
|
|
5041
5090
|
delete firedHandlers[originContent.key];
|
|
5042
|
-
delete messageStore.groupedCtx;
|
|
5043
5091
|
};
|
|
5044
5092
|
const handler = this.originalMethod(originContent);
|
|
5045
5093
|
firedHandlers[originContent.key] = handler;
|