@cloudtower/eagle 0.27.14 → 0.27.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.css +1669 -1669
- package/dist/coreX/SidebarSubtitle/SidebarSubtitle.stories.d.ts +5 -0
- package/dist/coreX/SidebarSubtitle/__test__/index.test.d.ts +1 -0
- package/dist/coreX/SidebarSubtitle/index.d.ts +3 -0
- package/dist/coreX/SortableList/SortableList.stories.d.ts +6 -0
- package/dist/coreX/SortableList/index.d.ts +3 -0
- package/dist/esm/index.js +497 -464
- package/dist/esm/stats1.html +1 -1
- package/dist/spec/base.d.ts +12 -0
- package/dist/style.css +2107 -2107
- package/dist/umd/index.js +500 -467
- package/dist/umd/stats1.html +1 -1
- package/package.json +5 -5
package/dist/esm/index.js
CHANGED
|
@@ -22,6 +22,7 @@ import UTC from 'dayjs/plugin/utc';
|
|
|
22
22
|
import { findDOMNode } from 'react-dom';
|
|
23
23
|
import { isElement } from 'react-is';
|
|
24
24
|
import customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
25
|
+
import { Draggable, DragDropContext, Droppable } from 'react-beautiful-dnd';
|
|
25
26
|
import CheckCircleFilled from '@ant-design/icons/CheckCircleFilled';
|
|
26
27
|
import CloseCircleFilled$1 from '@ant-design/icons/CloseCircleFilled';
|
|
27
28
|
import ExclamationCircleFilled from '@ant-design/icons/ExclamationCircleFilled';
|
|
@@ -30,7 +31,6 @@ import LoadingOutlined from '@ant-design/icons/LoadingOutlined';
|
|
|
30
31
|
import RCNotification from '@cloudtower/rc-notification';
|
|
31
32
|
import { combineReducers, createStore } from 'redux';
|
|
32
33
|
import { createDispatchHook, createSelectorHook, Provider } from 'react-redux';
|
|
33
|
-
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
|
|
34
34
|
import TimeZones from 'timezones.json';
|
|
35
35
|
import enUS from 'antd/lib/locale/en_US';
|
|
36
36
|
import zhCN from 'antd/lib/locale/zh_CN';
|
|
@@ -219,6 +219,36 @@ const Empty = (props) => {
|
|
|
219
219
|
return /* @__PURE__ */ React__default.createElement("span", { className, style }, "-");
|
|
220
220
|
};
|
|
221
221
|
|
|
222
|
+
var __defProp$12 = Object.defineProperty;
|
|
223
|
+
var __getOwnPropSymbols$13 = Object.getOwnPropertySymbols;
|
|
224
|
+
var __hasOwnProp$13 = Object.prototype.hasOwnProperty;
|
|
225
|
+
var __propIsEnum$13 = Object.prototype.propertyIsEnumerable;
|
|
226
|
+
var __defNormalProp$12 = (obj, key, value) => key in obj ? __defProp$12(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
227
|
+
var __spreadValues$11 = (a, b) => {
|
|
228
|
+
for (var prop in b || (b = {}))
|
|
229
|
+
if (__hasOwnProp$13.call(b, prop))
|
|
230
|
+
__defNormalProp$12(a, prop, b[prop]);
|
|
231
|
+
if (__getOwnPropSymbols$13)
|
|
232
|
+
for (var prop of __getOwnPropSymbols$13(b)) {
|
|
233
|
+
if (__propIsEnum$13.call(b, prop))
|
|
234
|
+
__defNormalProp$12(a, prop, b[prop]);
|
|
235
|
+
}
|
|
236
|
+
return a;
|
|
237
|
+
};
|
|
238
|
+
const Bit = ({
|
|
239
|
+
rawValue,
|
|
240
|
+
decimals,
|
|
241
|
+
unitClassName,
|
|
242
|
+
valueClassName,
|
|
243
|
+
emptyProps
|
|
244
|
+
}) => {
|
|
245
|
+
if (isEmpty(rawValue)) {
|
|
246
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$11({}, emptyProps));
|
|
247
|
+
}
|
|
248
|
+
const { value, unit } = formatBits(rawValue, decimals);
|
|
249
|
+
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}`));
|
|
250
|
+
};
|
|
251
|
+
|
|
222
252
|
var __defProp$11 = Object.defineProperty;
|
|
223
253
|
var __getOwnPropSymbols$12 = Object.getOwnPropertySymbols;
|
|
224
254
|
var __hasOwnProp$12 = Object.prototype.hasOwnProperty;
|
|
@@ -235,17 +265,17 @@ var __spreadValues$10 = (a, b) => {
|
|
|
235
265
|
}
|
|
236
266
|
return a;
|
|
237
267
|
};
|
|
238
|
-
const
|
|
268
|
+
const BitPerSeconds = ({
|
|
239
269
|
rawValue,
|
|
240
270
|
decimals,
|
|
241
|
-
unitClassName,
|
|
242
271
|
valueClassName,
|
|
272
|
+
unitClassName,
|
|
243
273
|
emptyProps
|
|
244
274
|
}) => {
|
|
245
275
|
if (isEmpty(rawValue)) {
|
|
246
276
|
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$10({}, emptyProps));
|
|
247
277
|
}
|
|
248
|
-
const { value, unit } =
|
|
278
|
+
const { value, unit } = formatBitPerSecond(rawValue, decimals);
|
|
249
279
|
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}`));
|
|
250
280
|
};
|
|
251
281
|
|
|
@@ -265,7 +295,7 @@ var __spreadValues$$ = (a, b) => {
|
|
|
265
295
|
}
|
|
266
296
|
return a;
|
|
267
297
|
};
|
|
268
|
-
const
|
|
298
|
+
const Bps = ({
|
|
269
299
|
rawValue,
|
|
270
300
|
decimals,
|
|
271
301
|
valueClassName,
|
|
@@ -275,10 +305,16 @@ const BitPerSeconds = ({
|
|
|
275
305
|
if (isEmpty(rawValue)) {
|
|
276
306
|
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$$({}, emptyProps));
|
|
277
307
|
}
|
|
278
|
-
const { value, unit } =
|
|
308
|
+
const { value, unit } = formatBps(rawValue, decimals);
|
|
279
309
|
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}`));
|
|
280
310
|
};
|
|
281
311
|
|
|
312
|
+
const useParrotTranslation = () => {
|
|
313
|
+
return useTranslation(void 0, {
|
|
314
|
+
i18n: parrotI18n
|
|
315
|
+
});
|
|
316
|
+
};
|
|
317
|
+
|
|
282
318
|
var __defProp$$ = Object.defineProperty;
|
|
283
319
|
var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
|
|
284
320
|
var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
|
|
@@ -295,26 +331,28 @@ var __spreadValues$_ = (a, b) => {
|
|
|
295
331
|
}
|
|
296
332
|
return a;
|
|
297
333
|
};
|
|
298
|
-
const
|
|
334
|
+
const Byte = ({
|
|
299
335
|
rawValue,
|
|
336
|
+
noUnitOnZero,
|
|
300
337
|
decimals,
|
|
301
338
|
valueClassName,
|
|
302
339
|
unitClassName,
|
|
303
340
|
emptyProps
|
|
304
341
|
}) => {
|
|
342
|
+
const { t } = useParrotTranslation();
|
|
305
343
|
if (isEmpty(rawValue)) {
|
|
306
344
|
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$_({}, emptyProps));
|
|
307
345
|
}
|
|
308
|
-
|
|
346
|
+
if (rawValue === -1) {
|
|
347
|
+
return /* @__PURE__ */ React__default.createElement("span", null, t("common.calculation"));
|
|
348
|
+
}
|
|
349
|
+
const { value, unit } = formatBytes(rawValue, decimals);
|
|
350
|
+
if (noUnitOnZero && value === 0) {
|
|
351
|
+
return /* @__PURE__ */ React__default.createElement("span", { className: "value" }, value);
|
|
352
|
+
}
|
|
309
353
|
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}`));
|
|
310
354
|
};
|
|
311
355
|
|
|
312
|
-
const useParrotTranslation = () => {
|
|
313
|
-
return useTranslation(void 0, {
|
|
314
|
-
i18n: parrotI18n
|
|
315
|
-
});
|
|
316
|
-
};
|
|
317
|
-
|
|
318
356
|
var __defProp$_ = Object.defineProperty;
|
|
319
357
|
var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
|
|
320
358
|
var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
|
|
@@ -331,25 +369,17 @@ var __spreadValues$Z = (a, b) => {
|
|
|
331
369
|
}
|
|
332
370
|
return a;
|
|
333
371
|
};
|
|
334
|
-
const
|
|
372
|
+
const Frequency = ({
|
|
335
373
|
rawValue,
|
|
336
|
-
noUnitOnZero,
|
|
337
374
|
decimals,
|
|
338
375
|
valueClassName,
|
|
339
376
|
unitClassName,
|
|
340
377
|
emptyProps
|
|
341
378
|
}) => {
|
|
342
|
-
const { t } = useParrotTranslation();
|
|
343
379
|
if (isEmpty(rawValue)) {
|
|
344
380
|
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$Z({}, emptyProps));
|
|
345
381
|
}
|
|
346
|
-
|
|
347
|
-
return /* @__PURE__ */ React__default.createElement("span", null, t("common.calculation"));
|
|
348
|
-
}
|
|
349
|
-
const { value, unit } = formatBytes(rawValue, decimals);
|
|
350
|
-
if (noUnitOnZero && value === 0) {
|
|
351
|
-
return /* @__PURE__ */ React__default.createElement("span", { className: "value" }, value);
|
|
352
|
-
}
|
|
382
|
+
const { value, unit } = formatFrequency(rawValue, decimals);
|
|
353
383
|
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}`));
|
|
354
384
|
};
|
|
355
385
|
|
|
@@ -369,9 +399,10 @@ var __spreadValues$Y = (a, b) => {
|
|
|
369
399
|
}
|
|
370
400
|
return a;
|
|
371
401
|
};
|
|
372
|
-
const
|
|
402
|
+
const Percent = ({
|
|
373
403
|
rawValue,
|
|
374
404
|
decimals,
|
|
405
|
+
saturated,
|
|
375
406
|
valueClassName,
|
|
376
407
|
unitClassName,
|
|
377
408
|
emptyProps
|
|
@@ -379,8 +410,8 @@ const Frequency = ({
|
|
|
379
410
|
if (isEmpty(rawValue)) {
|
|
380
411
|
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$Y({}, emptyProps));
|
|
381
412
|
}
|
|
382
|
-
const { value, unit } =
|
|
383
|
-
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) },
|
|
413
|
+
const { value, unit } = formatPercent(rawValue, decimals, saturated);
|
|
414
|
+
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));
|
|
384
415
|
};
|
|
385
416
|
|
|
386
417
|
var __defProp$Y = Object.defineProperty;
|
|
@@ -399,19 +430,20 @@ var __spreadValues$X = (a, b) => {
|
|
|
399
430
|
}
|
|
400
431
|
return a;
|
|
401
432
|
};
|
|
402
|
-
const
|
|
433
|
+
const Second = ({
|
|
403
434
|
rawValue,
|
|
404
435
|
decimals,
|
|
405
|
-
saturated,
|
|
406
436
|
valueClassName,
|
|
407
437
|
unitClassName,
|
|
438
|
+
abbreviate,
|
|
408
439
|
emptyProps
|
|
409
440
|
}) => {
|
|
441
|
+
const { t } = useParrotTranslation();
|
|
410
442
|
if (isEmpty(rawValue)) {
|
|
411
443
|
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$X({}, emptyProps));
|
|
412
444
|
}
|
|
413
|
-
const { value, unit } =
|
|
414
|
-
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));
|
|
445
|
+
const { value, unit } = formatSeconds(rawValue, decimals);
|
|
446
|
+
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}`)));
|
|
415
447
|
};
|
|
416
448
|
|
|
417
449
|
var __defProp$X = Object.defineProperty;
|
|
@@ -430,20 +462,18 @@ var __spreadValues$W = (a, b) => {
|
|
|
430
462
|
}
|
|
431
463
|
return a;
|
|
432
464
|
};
|
|
433
|
-
const
|
|
465
|
+
const Speed = ({
|
|
434
466
|
rawValue,
|
|
435
467
|
decimals,
|
|
436
468
|
valueClassName,
|
|
437
469
|
unitClassName,
|
|
438
|
-
abbreviate,
|
|
439
470
|
emptyProps
|
|
440
471
|
}) => {
|
|
441
|
-
const { t } = useParrotTranslation();
|
|
442
472
|
if (isEmpty(rawValue)) {
|
|
443
473
|
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$W({}, emptyProps));
|
|
444
474
|
}
|
|
445
|
-
const { value, unit } =
|
|
446
|
-
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value
|
|
475
|
+
const { value, unit } = formatSpeed(rawValue, decimals);
|
|
476
|
+
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}`));
|
|
447
477
|
};
|
|
448
478
|
|
|
449
479
|
var __defProp$W = Object.defineProperty;
|
|
@@ -462,44 +492,14 @@ var __spreadValues$V = (a, b) => {
|
|
|
462
492
|
}
|
|
463
493
|
return a;
|
|
464
494
|
};
|
|
465
|
-
const Speed = ({
|
|
466
|
-
rawValue,
|
|
467
|
-
decimals,
|
|
468
|
-
valueClassName,
|
|
469
|
-
unitClassName,
|
|
470
|
-
emptyProps
|
|
471
|
-
}) => {
|
|
472
|
-
if (isEmpty(rawValue)) {
|
|
473
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$V({}, emptyProps));
|
|
474
|
-
}
|
|
475
|
-
const { value, unit } = formatSpeed(rawValue, decimals);
|
|
476
|
-
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}`));
|
|
477
|
-
};
|
|
478
|
-
|
|
479
|
-
var __defProp$V = Object.defineProperty;
|
|
480
|
-
var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
|
|
481
|
-
var __hasOwnProp$W = Object.prototype.hasOwnProperty;
|
|
482
|
-
var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
|
|
483
|
-
var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
484
|
-
var __spreadValues$U = (a, b) => {
|
|
485
|
-
for (var prop in b || (b = {}))
|
|
486
|
-
if (__hasOwnProp$W.call(b, prop))
|
|
487
|
-
__defNormalProp$V(a, prop, b[prop]);
|
|
488
|
-
if (__getOwnPropSymbols$W)
|
|
489
|
-
for (var prop of __getOwnPropSymbols$W(b)) {
|
|
490
|
-
if (__propIsEnum$W.call(b, prop))
|
|
491
|
-
__defNormalProp$V(a, prop, b[prop]);
|
|
492
|
-
}
|
|
493
|
-
return a;
|
|
494
|
-
};
|
|
495
495
|
var __objRest$C = (source, exclude) => {
|
|
496
496
|
var target = {};
|
|
497
497
|
for (var prop in source)
|
|
498
|
-
if (__hasOwnProp$
|
|
498
|
+
if (__hasOwnProp$X.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
499
499
|
target[prop] = source[prop];
|
|
500
|
-
if (source != null && __getOwnPropSymbols$
|
|
501
|
-
for (var prop of __getOwnPropSymbols$
|
|
502
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
500
|
+
if (source != null && __getOwnPropSymbols$X)
|
|
501
|
+
for (var prop of __getOwnPropSymbols$X(source)) {
|
|
502
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$X.call(source, prop))
|
|
503
503
|
target[prop] = source[prop];
|
|
504
504
|
}
|
|
505
505
|
return target;
|
|
@@ -531,10 +531,10 @@ const BaseIcon = React__default.forwardRef(
|
|
|
531
531
|
]);
|
|
532
532
|
return /* @__PURE__ */ React__default.createElement(
|
|
533
533
|
"span",
|
|
534
|
-
__spreadValues$
|
|
534
|
+
__spreadValues$V({
|
|
535
535
|
ref,
|
|
536
536
|
className,
|
|
537
|
-
style: _.pickBy(__spreadValues$
|
|
537
|
+
style: _.pickBy(__spreadValues$V({ cursor }, style))
|
|
538
538
|
}, HTMLSpanElementProps),
|
|
539
539
|
prefixNode,
|
|
540
540
|
/* @__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 }))),
|
|
@@ -544,31 +544,31 @@ const BaseIcon = React__default.forwardRef(
|
|
|
544
544
|
}
|
|
545
545
|
);
|
|
546
546
|
|
|
547
|
-
var __defProp$
|
|
547
|
+
var __defProp$V = Object.defineProperty;
|
|
548
548
|
var __defProps$G = Object.defineProperties;
|
|
549
549
|
var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
|
|
550
|
-
var __getOwnPropSymbols$
|
|
551
|
-
var __hasOwnProp$
|
|
552
|
-
var __propIsEnum$
|
|
553
|
-
var __defNormalProp$
|
|
550
|
+
var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
|
|
551
|
+
var __hasOwnProp$W = Object.prototype.hasOwnProperty;
|
|
552
|
+
var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
|
|
553
|
+
var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, {
|
|
554
554
|
enumerable: true,
|
|
555
555
|
configurable: true,
|
|
556
556
|
writable: true,
|
|
557
557
|
value
|
|
558
558
|
}) : obj[key] = value;
|
|
559
|
-
var __spreadValues$
|
|
560
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
561
|
-
if (__getOwnPropSymbols$
|
|
562
|
-
if (__propIsEnum$
|
|
559
|
+
var __spreadValues$U = (a, b) => {
|
|
560
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$W.call(b, prop)) __defNormalProp$V(a, prop, b[prop]);
|
|
561
|
+
if (__getOwnPropSymbols$W) for (var prop of __getOwnPropSymbols$W(b)) {
|
|
562
|
+
if (__propIsEnum$W.call(b, prop)) __defNormalProp$V(a, prop, b[prop]);
|
|
563
563
|
}
|
|
564
564
|
return a;
|
|
565
565
|
};
|
|
566
566
|
var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
|
|
567
567
|
var __objRest$B = (source, exclude) => {
|
|
568
568
|
var target = {};
|
|
569
|
-
for (var prop in source) if (__hasOwnProp$
|
|
570
|
-
if (source != null && __getOwnPropSymbols$
|
|
571
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
569
|
+
for (var prop in source) if (__hasOwnProp$W.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
570
|
+
if (source != null && __getOwnPropSymbols$W) for (var prop of __getOwnPropSymbols$W(source)) {
|
|
571
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$W.call(source, prop)) target[prop] = source[prop];
|
|
572
572
|
}
|
|
573
573
|
return target;
|
|
574
574
|
};
|
|
@@ -620,14 +620,14 @@ const Icon = React__default.forwardRef((props, ref) => {
|
|
|
620
620
|
}
|
|
621
621
|
return src2;
|
|
622
622
|
}, [active, hover, suffix]);
|
|
623
|
-
return /* @__PURE__ */React__default.createElement(BaseIcon, __spreadProps$G(__spreadValues$
|
|
623
|
+
return /* @__PURE__ */React__default.createElement(BaseIcon, __spreadProps$G(__spreadValues$U({
|
|
624
624
|
src: _src,
|
|
625
625
|
className: cs(IconWrapper, "icon-wrapper", className, isRotate && "is-rotate"),
|
|
626
626
|
suffixIconSrc,
|
|
627
627
|
height: iconHeight,
|
|
628
628
|
width: iconWidth,
|
|
629
629
|
prefixNode: prefix,
|
|
630
|
-
style: _.pickBy(__spreadValues$
|
|
630
|
+
style: _.pickBy(__spreadValues$U({
|
|
631
631
|
cursor
|
|
632
632
|
}, style))
|
|
633
633
|
}, restProps), {
|
|
@@ -652,30 +652,30 @@ const Icon = React__default.forwardRef((props, ref) => {
|
|
|
652
652
|
}));
|
|
653
653
|
});
|
|
654
654
|
|
|
655
|
-
var __defProp$
|
|
656
|
-
var __getOwnPropSymbols$
|
|
657
|
-
var __hasOwnProp$
|
|
658
|
-
var __propIsEnum$
|
|
659
|
-
var __defNormalProp$
|
|
660
|
-
var __spreadValues$
|
|
655
|
+
var __defProp$U = Object.defineProperty;
|
|
656
|
+
var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
|
|
657
|
+
var __hasOwnProp$V = Object.prototype.hasOwnProperty;
|
|
658
|
+
var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
|
|
659
|
+
var __defNormalProp$U = (obj, key, value) => key in obj ? __defProp$U(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
660
|
+
var __spreadValues$T = (a, b) => {
|
|
661
661
|
for (var prop in b || (b = {}))
|
|
662
|
-
if (__hasOwnProp$
|
|
663
|
-
__defNormalProp$
|
|
664
|
-
if (__getOwnPropSymbols$
|
|
665
|
-
for (var prop of __getOwnPropSymbols$
|
|
666
|
-
if (__propIsEnum$
|
|
667
|
-
__defNormalProp$
|
|
662
|
+
if (__hasOwnProp$V.call(b, prop))
|
|
663
|
+
__defNormalProp$U(a, prop, b[prop]);
|
|
664
|
+
if (__getOwnPropSymbols$V)
|
|
665
|
+
for (var prop of __getOwnPropSymbols$V(b)) {
|
|
666
|
+
if (__propIsEnum$V.call(b, prop))
|
|
667
|
+
__defNormalProp$U(a, prop, b[prop]);
|
|
668
668
|
}
|
|
669
669
|
return a;
|
|
670
670
|
};
|
|
671
671
|
var __objRest$A = (source, exclude) => {
|
|
672
672
|
var target = {};
|
|
673
673
|
for (var prop in source)
|
|
674
|
-
if (__hasOwnProp$
|
|
674
|
+
if (__hasOwnProp$V.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
675
675
|
target[prop] = source[prop];
|
|
676
|
-
if (source != null && __getOwnPropSymbols$
|
|
677
|
-
for (var prop of __getOwnPropSymbols$
|
|
678
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
676
|
+
if (source != null && __getOwnPropSymbols$V)
|
|
677
|
+
for (var prop of __getOwnPropSymbols$V(source)) {
|
|
678
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$V.call(source, prop))
|
|
679
679
|
target[prop] = source[prop];
|
|
680
680
|
}
|
|
681
681
|
return target;
|
|
@@ -696,7 +696,7 @@ const DropdownTransition = (props) => {
|
|
|
696
696
|
]);
|
|
697
697
|
return /* @__PURE__ */ React__default.createElement(
|
|
698
698
|
CSSTransition,
|
|
699
|
-
__spreadValues$
|
|
699
|
+
__spreadValues$T({
|
|
700
700
|
in: visible,
|
|
701
701
|
timeout: timeout || 200,
|
|
702
702
|
mountOnEnter,
|
|
@@ -1036,21 +1036,21 @@ const RadioDesc = /*#__PURE__*/styled$1(_exp3$2())({
|
|
|
1036
1036
|
const radioStyle = "r12ddqmh";
|
|
1037
1037
|
const CannotOperationInfo = "ctcr26a";
|
|
1038
1038
|
|
|
1039
|
-
var __defProp$
|
|
1039
|
+
var __defProp$T = Object.defineProperty;
|
|
1040
1040
|
var __defProps$F = Object.defineProperties;
|
|
1041
1041
|
var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
|
|
1042
|
-
var __getOwnPropSymbols$
|
|
1043
|
-
var __hasOwnProp$
|
|
1044
|
-
var __propIsEnum$
|
|
1045
|
-
var __defNormalProp$
|
|
1046
|
-
var __spreadValues$
|
|
1042
|
+
var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
|
|
1043
|
+
var __hasOwnProp$U = Object.prototype.hasOwnProperty;
|
|
1044
|
+
var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
|
|
1045
|
+
var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1046
|
+
var __spreadValues$S = (a, b) => {
|
|
1047
1047
|
for (var prop in b || (b = {}))
|
|
1048
|
-
if (__hasOwnProp$
|
|
1049
|
-
__defNormalProp$
|
|
1050
|
-
if (__getOwnPropSymbols$
|
|
1051
|
-
for (var prop of __getOwnPropSymbols$
|
|
1052
|
-
if (__propIsEnum$
|
|
1053
|
-
__defNormalProp$
|
|
1048
|
+
if (__hasOwnProp$U.call(b, prop))
|
|
1049
|
+
__defNormalProp$T(a, prop, b[prop]);
|
|
1050
|
+
if (__getOwnPropSymbols$U)
|
|
1051
|
+
for (var prop of __getOwnPropSymbols$U(b)) {
|
|
1052
|
+
if (__propIsEnum$U.call(b, prop))
|
|
1053
|
+
__defNormalProp$T(a, prop, b[prop]);
|
|
1054
1054
|
}
|
|
1055
1055
|
return a;
|
|
1056
1056
|
};
|
|
@@ -1058,11 +1058,11 @@ var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
|
|
|
1058
1058
|
var __objRest$z = (source, exclude) => {
|
|
1059
1059
|
var target = {};
|
|
1060
1060
|
for (var prop in source)
|
|
1061
|
-
if (__hasOwnProp$
|
|
1061
|
+
if (__hasOwnProp$U.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1062
1062
|
target[prop] = source[prop];
|
|
1063
|
-
if (source != null && __getOwnPropSymbols$
|
|
1064
|
-
for (var prop of __getOwnPropSymbols$
|
|
1065
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1063
|
+
if (source != null && __getOwnPropSymbols$U)
|
|
1064
|
+
for (var prop of __getOwnPropSymbols$U(source)) {
|
|
1065
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$U.call(source, prop))
|
|
1066
1066
|
target[prop] = source[prop];
|
|
1067
1067
|
}
|
|
1068
1068
|
return target;
|
|
@@ -1116,10 +1116,10 @@ const Tooltip = (props) => {
|
|
|
1116
1116
|
}, [followMouse, onmousemove, uniqueContainerClass]);
|
|
1117
1117
|
return /* @__PURE__ */ React__default.createElement(
|
|
1118
1118
|
Tooltip$1,
|
|
1119
|
-
__spreadProps$F(__spreadValues$
|
|
1119
|
+
__spreadProps$F(__spreadValues$S({}, restProps), {
|
|
1120
1120
|
overlayClassName: followMouse ? cs(overlayClassName, uniquePopupClass) : overlayClassName,
|
|
1121
1121
|
children: _children,
|
|
1122
|
-
overlayStyle: followMouse ? __spreadValues$
|
|
1122
|
+
overlayStyle: followMouse ? __spreadValues$S({
|
|
1123
1123
|
transform: "translate(-50%, -100%)",
|
|
1124
1124
|
pointerEvents: "none"
|
|
1125
1125
|
}, overlayStyle) : overlayStyle
|
|
@@ -1188,20 +1188,20 @@ const DonutChart = ({
|
|
|
1188
1188
|
)
|
|
1189
1189
|
);
|
|
1190
1190
|
|
|
1191
|
-
var __defProp$
|
|
1192
|
-
var __getOwnPropSymbols$
|
|
1193
|
-
var __hasOwnProp$
|
|
1194
|
-
var __propIsEnum$
|
|
1195
|
-
var __defNormalProp$
|
|
1191
|
+
var __defProp$S = Object.defineProperty;
|
|
1192
|
+
var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
|
|
1193
|
+
var __hasOwnProp$T = Object.prototype.hasOwnProperty;
|
|
1194
|
+
var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
|
|
1195
|
+
var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, {
|
|
1196
1196
|
enumerable: true,
|
|
1197
1197
|
configurable: true,
|
|
1198
1198
|
writable: true,
|
|
1199
1199
|
value
|
|
1200
1200
|
}) : obj[key] = value;
|
|
1201
|
-
var __spreadValues$
|
|
1202
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1203
|
-
if (__getOwnPropSymbols$
|
|
1204
|
-
if (__propIsEnum$
|
|
1201
|
+
var __spreadValues$R = (a, b) => {
|
|
1202
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$T.call(b, prop)) __defNormalProp$S(a, prop, b[prop]);
|
|
1203
|
+
if (__getOwnPropSymbols$T) for (var prop of __getOwnPropSymbols$T(b)) {
|
|
1204
|
+
if (__propIsEnum$T.call(b, prop)) __defNormalProp$S(a, prop, b[prop]);
|
|
1205
1205
|
}
|
|
1206
1206
|
return a;
|
|
1207
1207
|
};
|
|
@@ -1276,7 +1276,7 @@ const UnitWithChart = ({
|
|
|
1276
1276
|
saturated
|
|
1277
1277
|
}) : /* @__PURE__ */React__default.createElement(Unit, {
|
|
1278
1278
|
rawValue
|
|
1279
|
-
})), chartType === "donutChart" && /* @__PURE__ */React__default.createElement(DonutChart, __spreadValues$
|
|
1279
|
+
})), chartType === "donutChart" && /* @__PURE__ */React__default.createElement(DonutChart, __spreadValues$R({
|
|
1280
1280
|
data: [{
|
|
1281
1281
|
used: rawValue / total,
|
|
1282
1282
|
fill: color
|
|
@@ -1432,28 +1432,28 @@ const Counting = (props) => {
|
|
|
1432
1432
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, render());
|
|
1433
1433
|
};
|
|
1434
1434
|
|
|
1435
|
-
var __defProp$
|
|
1436
|
-
var __getOwnPropSymbols$
|
|
1437
|
-
var __hasOwnProp$
|
|
1438
|
-
var __propIsEnum$
|
|
1439
|
-
var __defNormalProp$
|
|
1440
|
-
var __spreadValues$
|
|
1435
|
+
var __defProp$R = Object.defineProperty;
|
|
1436
|
+
var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
|
|
1437
|
+
var __hasOwnProp$S = Object.prototype.hasOwnProperty;
|
|
1438
|
+
var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
|
|
1439
|
+
var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1440
|
+
var __spreadValues$Q = (a, b) => {
|
|
1441
1441
|
for (var prop in b || (b = {}))
|
|
1442
|
-
if (__hasOwnProp$
|
|
1443
|
-
__defNormalProp$
|
|
1444
|
-
if (__getOwnPropSymbols$
|
|
1445
|
-
for (var prop of __getOwnPropSymbols$
|
|
1446
|
-
if (__propIsEnum$
|
|
1447
|
-
__defNormalProp$
|
|
1442
|
+
if (__hasOwnProp$S.call(b, prop))
|
|
1443
|
+
__defNormalProp$R(a, prop, b[prop]);
|
|
1444
|
+
if (__getOwnPropSymbols$S)
|
|
1445
|
+
for (var prop of __getOwnPropSymbols$S(b)) {
|
|
1446
|
+
if (__propIsEnum$S.call(b, prop))
|
|
1447
|
+
__defNormalProp$R(a, prop, b[prop]);
|
|
1448
1448
|
}
|
|
1449
1449
|
return a;
|
|
1450
1450
|
};
|
|
1451
|
-
const Calendar = (props) => /* @__PURE__ */ React__default.createElement(Calendar$1, __spreadValues$
|
|
1451
|
+
const Calendar = (props) => /* @__PURE__ */ React__default.createElement(Calendar$1, __spreadValues$Q({}, props));
|
|
1452
1452
|
|
|
1453
|
-
var __defProp$
|
|
1454
|
-
var __defNormalProp$
|
|
1453
|
+
var __defProp$Q = Object.defineProperty;
|
|
1454
|
+
var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1455
1455
|
var __publicField$1 = (obj, key, value) => {
|
|
1456
|
-
__defNormalProp$
|
|
1456
|
+
__defNormalProp$Q(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1457
1457
|
return value;
|
|
1458
1458
|
};
|
|
1459
1459
|
dayjs.extend(UTC);
|
|
@@ -2012,28 +2012,28 @@ const HoverableElement = (props) => {
|
|
|
2012
2012
|
return icon != null ? React__default.cloneElement(icon, { className }) : null;
|
|
2013
2013
|
};
|
|
2014
2014
|
|
|
2015
|
-
var __defProp$
|
|
2016
|
-
var __getOwnPropSymbols$
|
|
2017
|
-
var __hasOwnProp$
|
|
2018
|
-
var __propIsEnum$
|
|
2019
|
-
var __defNormalProp$
|
|
2015
|
+
var __defProp$P = Object.defineProperty;
|
|
2016
|
+
var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
|
|
2017
|
+
var __hasOwnProp$R = Object.prototype.hasOwnProperty;
|
|
2018
|
+
var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
|
|
2019
|
+
var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, {
|
|
2020
2020
|
enumerable: true,
|
|
2021
2021
|
configurable: true,
|
|
2022
2022
|
writable: true,
|
|
2023
2023
|
value
|
|
2024
2024
|
}) : obj[key] = value;
|
|
2025
|
-
var __spreadValues$
|
|
2026
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
2027
|
-
if (__getOwnPropSymbols$
|
|
2028
|
-
if (__propIsEnum$
|
|
2025
|
+
var __spreadValues$P = (a, b) => {
|
|
2026
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$R.call(b, prop)) __defNormalProp$P(a, prop, b[prop]);
|
|
2027
|
+
if (__getOwnPropSymbols$R) for (var prop of __getOwnPropSymbols$R(b)) {
|
|
2028
|
+
if (__propIsEnum$R.call(b, prop)) __defNormalProp$P(a, prop, b[prop]);
|
|
2029
2029
|
}
|
|
2030
2030
|
return a;
|
|
2031
2031
|
};
|
|
2032
2032
|
var __objRest$y = (source, exclude) => {
|
|
2033
2033
|
var target = {};
|
|
2034
|
-
for (var prop in source) if (__hasOwnProp$
|
|
2035
|
-
if (source != null && __getOwnPropSymbols$
|
|
2036
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2034
|
+
for (var prop in source) if (__hasOwnProp$R.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
2035
|
+
if (source != null && __getOwnPropSymbols$R) for (var prop of __getOwnPropSymbols$R(source)) {
|
|
2036
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$R.call(source, prop)) target[prop] = source[prop];
|
|
2037
2037
|
}
|
|
2038
2038
|
return target;
|
|
2039
2039
|
};
|
|
@@ -2061,7 +2061,7 @@ const Button = React__default.forwardRef((props, ref) => {
|
|
|
2061
2061
|
const hasIcon = prefixIcon || suffixIcon;
|
|
2062
2062
|
const hasHoverIcon = hoverPrefixIcon || hoverSuffixIcon;
|
|
2063
2063
|
const onlyIcon = !children && (prefixIcon || suffixIcon);
|
|
2064
|
-
return /* @__PURE__ */React__default.createElement(Button$1, __spreadValues$
|
|
2064
|
+
return /* @__PURE__ */React__default.createElement(Button$1, __spreadValues$P({
|
|
2065
2065
|
ref,
|
|
2066
2066
|
className: cs(className, ButtonStyle$1, type === "link" && NoPadding, 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}`, onlyIcon && "ant-btn-icon-only"),
|
|
2067
2067
|
type: isAntdButtonTypes(type) ? type : void 0,
|
|
@@ -2091,31 +2091,31 @@ const Button = React__default.forwardRef((props, ref) => {
|
|
|
2091
2091
|
}));
|
|
2092
2092
|
});
|
|
2093
2093
|
|
|
2094
|
-
var __defProp$
|
|
2094
|
+
var __defProp$O = Object.defineProperty;
|
|
2095
2095
|
var __defProps$E = Object.defineProperties;
|
|
2096
2096
|
var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
|
|
2097
|
-
var __getOwnPropSymbols$
|
|
2098
|
-
var __hasOwnProp$
|
|
2099
|
-
var __propIsEnum$
|
|
2100
|
-
var __defNormalProp$
|
|
2097
|
+
var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
|
|
2098
|
+
var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
|
|
2099
|
+
var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
|
|
2100
|
+
var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, {
|
|
2101
2101
|
enumerable: true,
|
|
2102
2102
|
configurable: true,
|
|
2103
2103
|
writable: true,
|
|
2104
2104
|
value
|
|
2105
2105
|
}) : obj[key] = value;
|
|
2106
|
-
var __spreadValues$
|
|
2107
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
2108
|
-
if (__getOwnPropSymbols$
|
|
2109
|
-
if (__propIsEnum$
|
|
2106
|
+
var __spreadValues$O = (a, b) => {
|
|
2107
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$Q.call(b, prop)) __defNormalProp$O(a, prop, b[prop]);
|
|
2108
|
+
if (__getOwnPropSymbols$Q) for (var prop of __getOwnPropSymbols$Q(b)) {
|
|
2109
|
+
if (__propIsEnum$Q.call(b, prop)) __defNormalProp$O(a, prop, b[prop]);
|
|
2110
2110
|
}
|
|
2111
2111
|
return a;
|
|
2112
2112
|
};
|
|
2113
2113
|
var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
|
|
2114
2114
|
var __objRest$x = (source, exclude) => {
|
|
2115
2115
|
var target = {};
|
|
2116
|
-
for (var prop in source) if (__hasOwnProp$
|
|
2117
|
-
if (source != null && __getOwnPropSymbols$
|
|
2118
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2116
|
+
for (var prop in source) if (__hasOwnProp$Q.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
2117
|
+
if (source != null && __getOwnPropSymbols$Q) for (var prop of __getOwnPropSymbols$Q(source)) {
|
|
2118
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$Q.call(source, prop)) target[prop] = source[prop];
|
|
2119
2119
|
}
|
|
2120
2120
|
return target;
|
|
2121
2121
|
};
|
|
@@ -2129,7 +2129,7 @@ const Checkbox = _a => {
|
|
|
2129
2129
|
compact
|
|
2130
2130
|
} = _b,
|
|
2131
2131
|
props = __objRest$x(_b, ["className", "children", "description", "compact"]);
|
|
2132
|
-
return /* @__PURE__ */React__default.createElement(Checkbox$1, __spreadProps$E(__spreadValues$
|
|
2132
|
+
return /* @__PURE__ */React__default.createElement(Checkbox$1, __spreadProps$E(__spreadValues$O({}, props), {
|
|
2133
2133
|
"data-test": props["data-test"] || props.value,
|
|
2134
2134
|
className: cs(className, CheckboxStyle, compact && "compact")
|
|
2135
2135
|
}), children ? /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement("div", {
|
|
@@ -2139,30 +2139,30 @@ const Checkbox = _a => {
|
|
|
2139
2139
|
}, description) : null) : null);
|
|
2140
2140
|
};
|
|
2141
2141
|
|
|
2142
|
-
var __defProp$
|
|
2143
|
-
var __getOwnPropSymbols$
|
|
2144
|
-
var __hasOwnProp$
|
|
2145
|
-
var __propIsEnum$
|
|
2146
|
-
var __defNormalProp$
|
|
2147
|
-
var __spreadValues$
|
|
2142
|
+
var __defProp$N = Object.defineProperty;
|
|
2143
|
+
var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
|
|
2144
|
+
var __hasOwnProp$P = Object.prototype.hasOwnProperty;
|
|
2145
|
+
var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
|
|
2146
|
+
var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2147
|
+
var __spreadValues$N = (a, b) => {
|
|
2148
2148
|
for (var prop in b || (b = {}))
|
|
2149
|
-
if (__hasOwnProp$
|
|
2150
|
-
__defNormalProp$
|
|
2151
|
-
if (__getOwnPropSymbols$
|
|
2152
|
-
for (var prop of __getOwnPropSymbols$
|
|
2153
|
-
if (__propIsEnum$
|
|
2154
|
-
__defNormalProp$
|
|
2149
|
+
if (__hasOwnProp$P.call(b, prop))
|
|
2150
|
+
__defNormalProp$N(a, prop, b[prop]);
|
|
2151
|
+
if (__getOwnPropSymbols$P)
|
|
2152
|
+
for (var prop of __getOwnPropSymbols$P(b)) {
|
|
2153
|
+
if (__propIsEnum$P.call(b, prop))
|
|
2154
|
+
__defNormalProp$N(a, prop, b[prop]);
|
|
2155
2155
|
}
|
|
2156
2156
|
return a;
|
|
2157
2157
|
};
|
|
2158
2158
|
var __objRest$w = (source, exclude) => {
|
|
2159
2159
|
var target = {};
|
|
2160
2160
|
for (var prop in source)
|
|
2161
|
-
if (__hasOwnProp$
|
|
2161
|
+
if (__hasOwnProp$P.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2162
2162
|
target[prop] = source[prop];
|
|
2163
|
-
if (source != null && __getOwnPropSymbols$
|
|
2164
|
-
for (var prop of __getOwnPropSymbols$
|
|
2165
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2163
|
+
if (source != null && __getOwnPropSymbols$P)
|
|
2164
|
+
for (var prop of __getOwnPropSymbols$P(source)) {
|
|
2165
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$P.call(source, prop))
|
|
2166
2166
|
target[prop] = source[prop];
|
|
2167
2167
|
}
|
|
2168
2168
|
return target;
|
|
@@ -2171,7 +2171,7 @@ const FieldsBoolean = (_a) => {
|
|
|
2171
2171
|
var _b = _a, { input, children } = _b, props = __objRest$w(_b, ["input", "children"]);
|
|
2172
2172
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
2173
2173
|
Checkbox,
|
|
2174
|
-
__spreadValues$
|
|
2174
|
+
__spreadValues$N({
|
|
2175
2175
|
checked: Boolean(input.value),
|
|
2176
2176
|
onChange: (e) => input.onChange(e.target.checked)
|
|
2177
2177
|
}, props),
|
|
@@ -2196,17 +2196,17 @@ const FieldsDateTime = ({ input }) => /* @__PURE__ */ React__default.createEleme
|
|
|
2196
2196
|
}
|
|
2197
2197
|
));
|
|
2198
2198
|
|
|
2199
|
-
var __getOwnPropSymbols$
|
|
2200
|
-
var __hasOwnProp$
|
|
2201
|
-
var __propIsEnum$
|
|
2199
|
+
var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
|
|
2200
|
+
var __hasOwnProp$O = Object.prototype.hasOwnProperty;
|
|
2201
|
+
var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
|
|
2202
2202
|
var __objRest$v = (source, exclude) => {
|
|
2203
2203
|
var target = {};
|
|
2204
2204
|
for (var prop in source)
|
|
2205
|
-
if (__hasOwnProp$
|
|
2205
|
+
if (__hasOwnProp$O.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2206
2206
|
target[prop] = source[prop];
|
|
2207
|
-
if (source != null && __getOwnPropSymbols$
|
|
2208
|
-
for (var prop of __getOwnPropSymbols$
|
|
2209
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2207
|
+
if (source != null && __getOwnPropSymbols$O)
|
|
2208
|
+
for (var prop of __getOwnPropSymbols$O(source)) {
|
|
2209
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$O.call(source, prop))
|
|
2210
2210
|
target[prop] = source[prop];
|
|
2211
2211
|
}
|
|
2212
2212
|
return target;
|
|
@@ -2243,21 +2243,21 @@ const LoadingLine1 = "lgitjoj";
|
|
|
2243
2243
|
const LoadingLine2 = "l13g0exg";
|
|
2244
2244
|
const LoadingLine3 = "l1exo3h6";
|
|
2245
2245
|
|
|
2246
|
-
var __defProp$
|
|
2246
|
+
var __defProp$M = Object.defineProperty;
|
|
2247
2247
|
var __defProps$D = Object.defineProperties;
|
|
2248
2248
|
var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
|
|
2249
|
-
var __getOwnPropSymbols$
|
|
2250
|
-
var __hasOwnProp$
|
|
2251
|
-
var __propIsEnum$
|
|
2252
|
-
var __defNormalProp$
|
|
2253
|
-
var __spreadValues$
|
|
2249
|
+
var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
|
|
2250
|
+
var __hasOwnProp$N = Object.prototype.hasOwnProperty;
|
|
2251
|
+
var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
|
|
2252
|
+
var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2253
|
+
var __spreadValues$M = (a, b) => {
|
|
2254
2254
|
for (var prop in b || (b = {}))
|
|
2255
|
-
if (__hasOwnProp$
|
|
2256
|
-
__defNormalProp$
|
|
2257
|
-
if (__getOwnPropSymbols$
|
|
2258
|
-
for (var prop of __getOwnPropSymbols$
|
|
2259
|
-
if (__propIsEnum$
|
|
2260
|
-
__defNormalProp$
|
|
2255
|
+
if (__hasOwnProp$N.call(b, prop))
|
|
2256
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
2257
|
+
if (__getOwnPropSymbols$N)
|
|
2258
|
+
for (var prop of __getOwnPropSymbols$N(b)) {
|
|
2259
|
+
if (__propIsEnum$N.call(b, prop))
|
|
2260
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
2261
2261
|
}
|
|
2262
2262
|
return a;
|
|
2263
2263
|
};
|
|
@@ -2265,34 +2265,34 @@ var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
|
|
|
2265
2265
|
const Loading = ({ fullView = true }) => {
|
|
2266
2266
|
const Wrapper = fullView ? FullView : Fragment;
|
|
2267
2267
|
const props = fullView ? { className: "loading-full-view" } : {};
|
|
2268
|
-
return /* @__PURE__ */ React__default.createElement(Wrapper, __spreadProps$D(__spreadValues$
|
|
2268
|
+
return /* @__PURE__ */ React__default.createElement(Wrapper, __spreadProps$D(__spreadValues$M({}, props), { "data-testid": "loading" }), /* @__PURE__ */ React__default.createElement("div", { className: LoadingWrapper }, /* @__PURE__ */ React__default.createElement("div", { className: LoadingLine1 }), /* @__PURE__ */ React__default.createElement("div", { className: LoadingLine2 }), /* @__PURE__ */ React__default.createElement("div", { className: LoadingLine3 })));
|
|
2269
2269
|
};
|
|
2270
2270
|
|
|
2271
|
-
var __defProp$
|
|
2271
|
+
var __defProp$L = Object.defineProperty;
|
|
2272
2272
|
var __defProps$C = Object.defineProperties;
|
|
2273
2273
|
var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
|
|
2274
|
-
var __getOwnPropSymbols$
|
|
2275
|
-
var __hasOwnProp$
|
|
2276
|
-
var __propIsEnum$
|
|
2277
|
-
var __defNormalProp$
|
|
2274
|
+
var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
|
|
2275
|
+
var __hasOwnProp$M = Object.prototype.hasOwnProperty;
|
|
2276
|
+
var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
|
|
2277
|
+
var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, {
|
|
2278
2278
|
enumerable: true,
|
|
2279
2279
|
configurable: true,
|
|
2280
2280
|
writable: true,
|
|
2281
2281
|
value
|
|
2282
2282
|
}) : obj[key] = value;
|
|
2283
|
-
var __spreadValues$
|
|
2284
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
2285
|
-
if (__getOwnPropSymbols$
|
|
2286
|
-
if (__propIsEnum$
|
|
2283
|
+
var __spreadValues$L = (a, b) => {
|
|
2284
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$M.call(b, prop)) __defNormalProp$L(a, prop, b[prop]);
|
|
2285
|
+
if (__getOwnPropSymbols$M) for (var prop of __getOwnPropSymbols$M(b)) {
|
|
2286
|
+
if (__propIsEnum$M.call(b, prop)) __defNormalProp$L(a, prop, b[prop]);
|
|
2287
2287
|
}
|
|
2288
2288
|
return a;
|
|
2289
2289
|
};
|
|
2290
2290
|
var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
|
|
2291
2291
|
var __objRest$u = (source, exclude) => {
|
|
2292
2292
|
var target = {};
|
|
2293
|
-
for (var prop in source) if (__hasOwnProp$
|
|
2294
|
-
if (source != null && __getOwnPropSymbols$
|
|
2295
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2293
|
+
for (var prop in source) if (__hasOwnProp$M.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
2294
|
+
if (source != null && __getOwnPropSymbols$M) for (var prop of __getOwnPropSymbols$M(source)) {
|
|
2295
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$M.call(source, prop)) target[prop] = source[prop];
|
|
2296
2296
|
}
|
|
2297
2297
|
return target;
|
|
2298
2298
|
};
|
|
@@ -2346,7 +2346,7 @@ const Select = _a => {
|
|
|
2346
2346
|
inputDom && (placeholder || item) && inputDom.setAttribute("data-test", String(placeholder || item.textContent));
|
|
2347
2347
|
}
|
|
2348
2348
|
}, [selectRef, placeholder]);
|
|
2349
|
-
return /* @__PURE__ */React__default.createElement(Select$1, __spreadValues$
|
|
2349
|
+
return /* @__PURE__ */React__default.createElement(Select$1, __spreadValues$L(__spreadProps$C(__spreadValues$L({}, input), {
|
|
2350
2350
|
ref: selectRef,
|
|
2351
2351
|
size,
|
|
2352
2352
|
value: multiple ? input.value || [] : input.value || void 0,
|
|
@@ -2387,38 +2387,38 @@ const Select = _a => {
|
|
|
2387
2387
|
loading,
|
|
2388
2388
|
placeholder
|
|
2389
2389
|
}), restProps), React__default.Children.map(children, child => {
|
|
2390
|
-
return isElement(child) ? __spreadProps$C(__spreadValues$
|
|
2391
|
-
props: __spreadProps$C(__spreadValues$
|
|
2390
|
+
return isElement(child) ? __spreadProps$C(__spreadValues$L({}, child), {
|
|
2391
|
+
props: __spreadProps$C(__spreadValues$L({}, child.props), {
|
|
2392
2392
|
"data-test": child.props.value
|
|
2393
2393
|
})
|
|
2394
2394
|
}) : child;
|
|
2395
2395
|
}));
|
|
2396
2396
|
};
|
|
2397
2397
|
|
|
2398
|
-
var __defProp$
|
|
2399
|
-
var __getOwnPropSymbols$
|
|
2400
|
-
var __hasOwnProp$
|
|
2401
|
-
var __propIsEnum$
|
|
2402
|
-
var __defNormalProp$
|
|
2403
|
-
var __spreadValues$
|
|
2398
|
+
var __defProp$K = Object.defineProperty;
|
|
2399
|
+
var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
|
|
2400
|
+
var __hasOwnProp$L = Object.prototype.hasOwnProperty;
|
|
2401
|
+
var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
|
|
2402
|
+
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2403
|
+
var __spreadValues$K = (a, b) => {
|
|
2404
2404
|
for (var prop in b || (b = {}))
|
|
2405
|
-
if (__hasOwnProp$
|
|
2406
|
-
__defNormalProp$
|
|
2407
|
-
if (__getOwnPropSymbols$
|
|
2408
|
-
for (var prop of __getOwnPropSymbols$
|
|
2409
|
-
if (__propIsEnum$
|
|
2410
|
-
__defNormalProp$
|
|
2405
|
+
if (__hasOwnProp$L.call(b, prop))
|
|
2406
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
2407
|
+
if (__getOwnPropSymbols$L)
|
|
2408
|
+
for (var prop of __getOwnPropSymbols$L(b)) {
|
|
2409
|
+
if (__propIsEnum$L.call(b, prop))
|
|
2410
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
2411
2411
|
}
|
|
2412
2412
|
return a;
|
|
2413
2413
|
};
|
|
2414
2414
|
var __objRest$t = (source, exclude) => {
|
|
2415
2415
|
var target = {};
|
|
2416
2416
|
for (var prop in source)
|
|
2417
|
-
if (__hasOwnProp$
|
|
2417
|
+
if (__hasOwnProp$L.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2418
2418
|
target[prop] = source[prop];
|
|
2419
|
-
if (source != null && __getOwnPropSymbols$
|
|
2420
|
-
for (var prop of __getOwnPropSymbols$
|
|
2421
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2419
|
+
if (source != null && __getOwnPropSymbols$L)
|
|
2420
|
+
for (var prop of __getOwnPropSymbols$L(source)) {
|
|
2421
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$L.call(source, prop))
|
|
2422
2422
|
target[prop] = source[prop];
|
|
2423
2423
|
}
|
|
2424
2424
|
return target;
|
|
@@ -2433,7 +2433,7 @@ const FieldsEnum = (_a) => {
|
|
|
2433
2433
|
"enumValues",
|
|
2434
2434
|
"emptyLabel"
|
|
2435
2435
|
]);
|
|
2436
|
-
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Select, __spreadValues$
|
|
2436
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Select, __spreadValues$K({}, restProps), emptyLabel && /* @__PURE__ */ React__default.createElement(Select$1.Option, { value: "" }, emptyLabel), enumValues.map((v) => {
|
|
2437
2437
|
const item = typeof v === "string" ? { value: v, text: v } : v;
|
|
2438
2438
|
return /* @__PURE__ */ React__default.createElement(
|
|
2439
2439
|
Select$1.Option,
|
|
@@ -2447,31 +2447,31 @@ const FieldsEnum = (_a) => {
|
|
|
2447
2447
|
})));
|
|
2448
2448
|
};
|
|
2449
2449
|
|
|
2450
|
-
var __defProp$
|
|
2450
|
+
var __defProp$J = Object.defineProperty;
|
|
2451
2451
|
var __defProps$B = Object.defineProperties;
|
|
2452
2452
|
var __getOwnPropDescs$B = Object.getOwnPropertyDescriptors;
|
|
2453
|
-
var __getOwnPropSymbols$
|
|
2454
|
-
var __hasOwnProp$
|
|
2455
|
-
var __propIsEnum$
|
|
2456
|
-
var __defNormalProp$
|
|
2453
|
+
var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
|
|
2454
|
+
var __hasOwnProp$K = Object.prototype.hasOwnProperty;
|
|
2455
|
+
var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
|
|
2456
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, {
|
|
2457
2457
|
enumerable: true,
|
|
2458
2458
|
configurable: true,
|
|
2459
2459
|
writable: true,
|
|
2460
2460
|
value
|
|
2461
2461
|
}) : obj[key] = value;
|
|
2462
|
-
var __spreadValues$
|
|
2463
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
2464
|
-
if (__getOwnPropSymbols$
|
|
2465
|
-
if (__propIsEnum$
|
|
2462
|
+
var __spreadValues$J = (a, b) => {
|
|
2463
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$K.call(b, prop)) __defNormalProp$J(a, prop, b[prop]);
|
|
2464
|
+
if (__getOwnPropSymbols$K) for (var prop of __getOwnPropSymbols$K(b)) {
|
|
2465
|
+
if (__propIsEnum$K.call(b, prop)) __defNormalProp$J(a, prop, b[prop]);
|
|
2466
2466
|
}
|
|
2467
2467
|
return a;
|
|
2468
2468
|
};
|
|
2469
2469
|
var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
|
|
2470
2470
|
var __objRest$s = (source, exclude) => {
|
|
2471
2471
|
var target = {};
|
|
2472
|
-
for (var prop in source) if (__hasOwnProp$
|
|
2473
|
-
if (source != null && __getOwnPropSymbols$
|
|
2474
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2472
|
+
for (var prop in source) if (__hasOwnProp$K.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
2473
|
+
if (source != null && __getOwnPropSymbols$K) for (var prop of __getOwnPropSymbols$K(source)) {
|
|
2474
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$K.call(source, prop)) target[prop] = source[prop];
|
|
2475
2475
|
}
|
|
2476
2476
|
return target;
|
|
2477
2477
|
};
|
|
@@ -2513,7 +2513,7 @@ const InputNumber = _a => {
|
|
|
2513
2513
|
middle: Typo.Label.l3_regular,
|
|
2514
2514
|
small: Typo.Label.l4_regular
|
|
2515
2515
|
}[size];
|
|
2516
|
-
return /* @__PURE__ */React__default.createElement(AntdInputNumberStyled, __spreadProps$B(__spreadValues$
|
|
2516
|
+
return /* @__PURE__ */React__default.createElement(AntdInputNumberStyled, __spreadProps$B(__spreadValues$J({}, props), {
|
|
2517
2517
|
size,
|
|
2518
2518
|
controls,
|
|
2519
2519
|
"data-test": props.name,
|
|
@@ -2523,21 +2523,21 @@ const InputNumber = _a => {
|
|
|
2523
2523
|
}));
|
|
2524
2524
|
};
|
|
2525
2525
|
|
|
2526
|
-
var __defProp$
|
|
2526
|
+
var __defProp$I = Object.defineProperty;
|
|
2527
2527
|
var __defProps$A = Object.defineProperties;
|
|
2528
2528
|
var __getOwnPropDescs$A = Object.getOwnPropertyDescriptors;
|
|
2529
|
-
var __getOwnPropSymbols$
|
|
2530
|
-
var __hasOwnProp$
|
|
2531
|
-
var __propIsEnum$
|
|
2532
|
-
var __defNormalProp$
|
|
2533
|
-
var __spreadValues$
|
|
2529
|
+
var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
|
|
2530
|
+
var __hasOwnProp$J = Object.prototype.hasOwnProperty;
|
|
2531
|
+
var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
|
|
2532
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2533
|
+
var __spreadValues$I = (a, b) => {
|
|
2534
2534
|
for (var prop in b || (b = {}))
|
|
2535
|
-
if (__hasOwnProp$
|
|
2536
|
-
__defNormalProp$
|
|
2537
|
-
if (__getOwnPropSymbols$
|
|
2538
|
-
for (var prop of __getOwnPropSymbols$
|
|
2539
|
-
if (__propIsEnum$
|
|
2540
|
-
__defNormalProp$
|
|
2535
|
+
if (__hasOwnProp$J.call(b, prop))
|
|
2536
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
2537
|
+
if (__getOwnPropSymbols$J)
|
|
2538
|
+
for (var prop of __getOwnPropSymbols$J(b)) {
|
|
2539
|
+
if (__propIsEnum$J.call(b, prop))
|
|
2540
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
2541
2541
|
}
|
|
2542
2542
|
return a;
|
|
2543
2543
|
};
|
|
@@ -2545,11 +2545,11 @@ var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
|
|
|
2545
2545
|
var __objRest$r = (source, exclude) => {
|
|
2546
2546
|
var target = {};
|
|
2547
2547
|
for (var prop in source)
|
|
2548
|
-
if (__hasOwnProp$
|
|
2548
|
+
if (__hasOwnProp$J.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2549
2549
|
target[prop] = source[prop];
|
|
2550
|
-
if (source != null && __getOwnPropSymbols$
|
|
2551
|
-
for (var prop of __getOwnPropSymbols$
|
|
2552
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2550
|
+
if (source != null && __getOwnPropSymbols$J)
|
|
2551
|
+
for (var prop of __getOwnPropSymbols$J(source)) {
|
|
2552
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$J.call(source, prop))
|
|
2553
2553
|
target[prop] = source[prop];
|
|
2554
2554
|
}
|
|
2555
2555
|
return target;
|
|
@@ -2568,7 +2568,7 @@ const FieldsFloat = (_a) => {
|
|
|
2568
2568
|
]);
|
|
2569
2569
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
2570
2570
|
InputNumber,
|
|
2571
|
-
__spreadValues$
|
|
2571
|
+
__spreadValues$I(__spreadProps$A(__spreadValues$I({}, input), {
|
|
2572
2572
|
onBlur: (e) => onBlur ? onBlur(input, e) : input.onBlur(e),
|
|
2573
2573
|
autoComplete,
|
|
2574
2574
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
@@ -2576,21 +2576,21 @@ const FieldsFloat = (_a) => {
|
|
|
2576
2576
|
));
|
|
2577
2577
|
};
|
|
2578
2578
|
|
|
2579
|
-
var __defProp$
|
|
2579
|
+
var __defProp$H = Object.defineProperty;
|
|
2580
2580
|
var __defProps$z = Object.defineProperties;
|
|
2581
2581
|
var __getOwnPropDescs$z = Object.getOwnPropertyDescriptors;
|
|
2582
|
-
var __getOwnPropSymbols$
|
|
2583
|
-
var __hasOwnProp$
|
|
2584
|
-
var __propIsEnum$
|
|
2585
|
-
var __defNormalProp$
|
|
2586
|
-
var __spreadValues$
|
|
2582
|
+
var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
|
|
2583
|
+
var __hasOwnProp$I = Object.prototype.hasOwnProperty;
|
|
2584
|
+
var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
|
|
2585
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2586
|
+
var __spreadValues$H = (a, b) => {
|
|
2587
2587
|
for (var prop in b || (b = {}))
|
|
2588
|
-
if (__hasOwnProp$
|
|
2589
|
-
__defNormalProp$
|
|
2590
|
-
if (__getOwnPropSymbols$
|
|
2591
|
-
for (var prop of __getOwnPropSymbols$
|
|
2592
|
-
if (__propIsEnum$
|
|
2593
|
-
__defNormalProp$
|
|
2588
|
+
if (__hasOwnProp$I.call(b, prop))
|
|
2589
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
2590
|
+
if (__getOwnPropSymbols$I)
|
|
2591
|
+
for (var prop of __getOwnPropSymbols$I(b)) {
|
|
2592
|
+
if (__propIsEnum$I.call(b, prop))
|
|
2593
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
2594
2594
|
}
|
|
2595
2595
|
return a;
|
|
2596
2596
|
};
|
|
@@ -2598,11 +2598,11 @@ var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
|
|
|
2598
2598
|
var __objRest$q = (source, exclude) => {
|
|
2599
2599
|
var target = {};
|
|
2600
2600
|
for (var prop in source)
|
|
2601
|
-
if (__hasOwnProp$
|
|
2601
|
+
if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2602
2602
|
target[prop] = source[prop];
|
|
2603
|
-
if (source != null && __getOwnPropSymbols$
|
|
2604
|
-
for (var prop of __getOwnPropSymbols$
|
|
2605
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2603
|
+
if (source != null && __getOwnPropSymbols$I)
|
|
2604
|
+
for (var prop of __getOwnPropSymbols$I(source)) {
|
|
2605
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$I.call(source, prop))
|
|
2606
2606
|
target[prop] = source[prop];
|
|
2607
2607
|
}
|
|
2608
2608
|
return target;
|
|
@@ -2624,7 +2624,7 @@ const Input = (_a) => {
|
|
|
2624
2624
|
}[size];
|
|
2625
2625
|
return /* @__PURE__ */ React__default.createElement(
|
|
2626
2626
|
Input$1,
|
|
2627
|
-
__spreadProps$z(__spreadValues$
|
|
2627
|
+
__spreadProps$z(__spreadValues$H({}, props), {
|
|
2628
2628
|
size,
|
|
2629
2629
|
"data-test": props.name,
|
|
2630
2630
|
className: cs(className, InputStyle, typo, error ? "error" : "")
|
|
@@ -2632,21 +2632,21 @@ const Input = (_a) => {
|
|
|
2632
2632
|
);
|
|
2633
2633
|
};
|
|
2634
2634
|
|
|
2635
|
-
var __defProp$
|
|
2635
|
+
var __defProp$G = Object.defineProperty;
|
|
2636
2636
|
var __defProps$y = Object.defineProperties;
|
|
2637
2637
|
var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
|
|
2638
|
-
var __getOwnPropSymbols$
|
|
2639
|
-
var __hasOwnProp$
|
|
2640
|
-
var __propIsEnum$
|
|
2641
|
-
var __defNormalProp$
|
|
2642
|
-
var __spreadValues$
|
|
2638
|
+
var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
|
|
2639
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
|
2640
|
+
var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
|
|
2641
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2642
|
+
var __spreadValues$G = (a, b) => {
|
|
2643
2643
|
for (var prop in b || (b = {}))
|
|
2644
|
-
if (__hasOwnProp$
|
|
2645
|
-
__defNormalProp$
|
|
2646
|
-
if (__getOwnPropSymbols$
|
|
2647
|
-
for (var prop of __getOwnPropSymbols$
|
|
2648
|
-
if (__propIsEnum$
|
|
2649
|
-
__defNormalProp$
|
|
2644
|
+
if (__hasOwnProp$H.call(b, prop))
|
|
2645
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
2646
|
+
if (__getOwnPropSymbols$H)
|
|
2647
|
+
for (var prop of __getOwnPropSymbols$H(b)) {
|
|
2648
|
+
if (__propIsEnum$H.call(b, prop))
|
|
2649
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
2650
2650
|
}
|
|
2651
2651
|
return a;
|
|
2652
2652
|
};
|
|
@@ -2654,11 +2654,11 @@ var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
|
|
|
2654
2654
|
var __objRest$p = (source, exclude) => {
|
|
2655
2655
|
var target = {};
|
|
2656
2656
|
for (var prop in source)
|
|
2657
|
-
if (__hasOwnProp$
|
|
2657
|
+
if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2658
2658
|
target[prop] = source[prop];
|
|
2659
|
-
if (source != null && __getOwnPropSymbols$
|
|
2660
|
-
for (var prop of __getOwnPropSymbols$
|
|
2661
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2659
|
+
if (source != null && __getOwnPropSymbols$H)
|
|
2660
|
+
for (var prop of __getOwnPropSymbols$H(source)) {
|
|
2661
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
|
|
2662
2662
|
target[prop] = source[prop];
|
|
2663
2663
|
}
|
|
2664
2664
|
return target;
|
|
@@ -2679,7 +2679,7 @@ const FieldsInt = (_a) => {
|
|
|
2679
2679
|
]);
|
|
2680
2680
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
2681
2681
|
Input,
|
|
2682
|
-
__spreadValues$
|
|
2682
|
+
__spreadValues$G(__spreadProps$y(__spreadValues$G({}, input), {
|
|
2683
2683
|
onChange: (e) => {
|
|
2684
2684
|
const value = e.currentTarget.value;
|
|
2685
2685
|
if (supportNegativeValue) {
|
|
@@ -2714,31 +2714,31 @@ const formatterInteger = (value) => {
|
|
|
2714
2714
|
}
|
|
2715
2715
|
};
|
|
2716
2716
|
|
|
2717
|
-
var __defProp$
|
|
2717
|
+
var __defProp$F = Object.defineProperty;
|
|
2718
2718
|
var __defProps$x = Object.defineProperties;
|
|
2719
2719
|
var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
|
|
2720
|
-
var __getOwnPropSymbols$
|
|
2721
|
-
var __hasOwnProp$
|
|
2722
|
-
var __propIsEnum$
|
|
2723
|
-
var __defNormalProp$
|
|
2720
|
+
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
|
2721
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
|
2722
|
+
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
|
2723
|
+
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, {
|
|
2724
2724
|
enumerable: true,
|
|
2725
2725
|
configurable: true,
|
|
2726
2726
|
writable: true,
|
|
2727
2727
|
value
|
|
2728
2728
|
}) : obj[key] = value;
|
|
2729
|
-
var __spreadValues$
|
|
2730
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
2731
|
-
if (__getOwnPropSymbols$
|
|
2732
|
-
if (__propIsEnum$
|
|
2729
|
+
var __spreadValues$F = (a, b) => {
|
|
2730
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$G.call(b, prop)) __defNormalProp$F(a, prop, b[prop]);
|
|
2731
|
+
if (__getOwnPropSymbols$G) for (var prop of __getOwnPropSymbols$G(b)) {
|
|
2732
|
+
if (__propIsEnum$G.call(b, prop)) __defNormalProp$F(a, prop, b[prop]);
|
|
2733
2733
|
}
|
|
2734
2734
|
return a;
|
|
2735
2735
|
};
|
|
2736
2736
|
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
|
2737
2737
|
var __objRest$o = (source, exclude) => {
|
|
2738
2738
|
var target = {};
|
|
2739
|
-
for (var prop in source) if (__hasOwnProp$
|
|
2740
|
-
if (source != null && __getOwnPropSymbols$
|
|
2741
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2739
|
+
for (var prop in source) if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
2740
|
+
if (source != null && __getOwnPropSymbols$G) for (var prop of __getOwnPropSymbols$G(source)) {
|
|
2741
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop)) target[prop] = source[prop];
|
|
2742
2742
|
}
|
|
2743
2743
|
return target;
|
|
2744
2744
|
};
|
|
@@ -2782,7 +2782,7 @@ const InputInteger = _a => {
|
|
|
2782
2782
|
middle: Typo.Label.l3_regular,
|
|
2783
2783
|
small: Typo.Label.l4_regular
|
|
2784
2784
|
}[size];
|
|
2785
|
-
return /* @__PURE__ */React__default.createElement(AntdIntStyled, __spreadProps$x(__spreadValues$
|
|
2785
|
+
return /* @__PURE__ */React__default.createElement(AntdIntStyled, __spreadProps$x(__spreadValues$F({}, props), {
|
|
2786
2786
|
size,
|
|
2787
2787
|
formatter: formatterInteger,
|
|
2788
2788
|
parser: formatterInteger,
|
|
@@ -2796,21 +2796,21 @@ const InputInteger = _a => {
|
|
|
2796
2796
|
}));
|
|
2797
2797
|
};
|
|
2798
2798
|
|
|
2799
|
-
var __defProp$
|
|
2799
|
+
var __defProp$E = Object.defineProperty;
|
|
2800
2800
|
var __defProps$w = Object.defineProperties;
|
|
2801
2801
|
var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
|
|
2802
|
-
var __getOwnPropSymbols$
|
|
2803
|
-
var __hasOwnProp$
|
|
2804
|
-
var __propIsEnum$
|
|
2805
|
-
var __defNormalProp$
|
|
2806
|
-
var __spreadValues$
|
|
2802
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
|
2803
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
|
2804
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
|
2805
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2806
|
+
var __spreadValues$E = (a, b) => {
|
|
2807
2807
|
for (var prop in b || (b = {}))
|
|
2808
|
-
if (__hasOwnProp$
|
|
2809
|
-
__defNormalProp$
|
|
2810
|
-
if (__getOwnPropSymbols$
|
|
2811
|
-
for (var prop of __getOwnPropSymbols$
|
|
2812
|
-
if (__propIsEnum$
|
|
2813
|
-
__defNormalProp$
|
|
2808
|
+
if (__hasOwnProp$F.call(b, prop))
|
|
2809
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
2810
|
+
if (__getOwnPropSymbols$F)
|
|
2811
|
+
for (var prop of __getOwnPropSymbols$F(b)) {
|
|
2812
|
+
if (__propIsEnum$F.call(b, prop))
|
|
2813
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
2814
2814
|
}
|
|
2815
2815
|
return a;
|
|
2816
2816
|
};
|
|
@@ -2818,11 +2818,11 @@ var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
|
|
|
2818
2818
|
var __objRest$n = (source, exclude) => {
|
|
2819
2819
|
var target = {};
|
|
2820
2820
|
for (var prop in source)
|
|
2821
|
-
if (__hasOwnProp$
|
|
2821
|
+
if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2822
2822
|
target[prop] = source[prop];
|
|
2823
|
-
if (source != null && __getOwnPropSymbols$
|
|
2824
|
-
for (var prop of __getOwnPropSymbols$
|
|
2825
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2823
|
+
if (source != null && __getOwnPropSymbols$F)
|
|
2824
|
+
for (var prop of __getOwnPropSymbols$F(source)) {
|
|
2825
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
|
|
2826
2826
|
target[prop] = source[prop];
|
|
2827
2827
|
}
|
|
2828
2828
|
return target;
|
|
@@ -2839,7 +2839,7 @@ const FieldsInteger = (_a) => {
|
|
|
2839
2839
|
]);
|
|
2840
2840
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
2841
2841
|
InputInteger,
|
|
2842
|
-
__spreadProps$w(__spreadValues$
|
|
2842
|
+
__spreadProps$w(__spreadValues$E(__spreadValues$E({}, props), input), {
|
|
2843
2843
|
onBlur: (e) => onBlur ? onBlur(input, e) : input.onBlur(e),
|
|
2844
2844
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
2845
2845
|
})
|
|
@@ -3107,21 +3107,21 @@ const Overflow = props => {
|
|
|
3107
3107
|
}, children), showOverflow && /* @__PURE__ */React__default.createElement("span", null, overflow));
|
|
3108
3108
|
};
|
|
3109
3109
|
|
|
3110
|
-
var __defProp$
|
|
3110
|
+
var __defProp$D = Object.defineProperty;
|
|
3111
3111
|
var __defProps$v = Object.defineProperties;
|
|
3112
3112
|
var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
|
|
3113
|
-
var __getOwnPropSymbols$
|
|
3114
|
-
var __hasOwnProp$
|
|
3115
|
-
var __propIsEnum$
|
|
3116
|
-
var __defNormalProp$
|
|
3117
|
-
var __spreadValues$
|
|
3113
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
|
3114
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
|
3115
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
|
3116
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3117
|
+
var __spreadValues$D = (a, b) => {
|
|
3118
3118
|
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$
|
|
3119
|
+
if (__hasOwnProp$E.call(b, prop))
|
|
3120
|
+
__defNormalProp$D(a, prop, b[prop]);
|
|
3121
|
+
if (__getOwnPropSymbols$E)
|
|
3122
|
+
for (var prop of __getOwnPropSymbols$E(b)) {
|
|
3123
|
+
if (__propIsEnum$E.call(b, prop))
|
|
3124
|
+
__defNormalProp$D(a, prop, b[prop]);
|
|
3125
3125
|
}
|
|
3126
3126
|
return a;
|
|
3127
3127
|
};
|
|
@@ -3129,11 +3129,11 @@ var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
|
|
|
3129
3129
|
var __objRest$m = (source, exclude) => {
|
|
3130
3130
|
var target = {};
|
|
3131
3131
|
for (var prop in source)
|
|
3132
|
-
if (__hasOwnProp$
|
|
3132
|
+
if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3133
3133
|
target[prop] = source[prop];
|
|
3134
|
-
if (source != null && __getOwnPropSymbols$
|
|
3135
|
-
for (var prop of __getOwnPropSymbols$
|
|
3136
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3134
|
+
if (source != null && __getOwnPropSymbols$E)
|
|
3135
|
+
for (var prop of __getOwnPropSymbols$E(source)) {
|
|
3136
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
|
|
3137
3137
|
target[prop] = source[prop];
|
|
3138
3138
|
}
|
|
3139
3139
|
return target;
|
|
@@ -3184,7 +3184,7 @@ const FieldsString = (_a) => {
|
|
|
3184
3184
|
}
|
|
3185
3185
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
3186
3186
|
Input,
|
|
3187
|
-
__spreadProps$v(__spreadValues$
|
|
3187
|
+
__spreadProps$v(__spreadValues$D(__spreadProps$v(__spreadValues$D({
|
|
3188
3188
|
className: cs(
|
|
3189
3189
|
className,
|
|
3190
3190
|
KitInputStyle,
|
|
@@ -3209,21 +3209,21 @@ const FieldsString = (_a) => {
|
|
|
3209
3209
|
));
|
|
3210
3210
|
};
|
|
3211
3211
|
|
|
3212
|
-
var __defProp$
|
|
3212
|
+
var __defProp$C = Object.defineProperty;
|
|
3213
3213
|
var __defProps$u = Object.defineProperties;
|
|
3214
3214
|
var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
|
|
3215
|
-
var __getOwnPropSymbols$
|
|
3216
|
-
var __hasOwnProp$
|
|
3217
|
-
var __propIsEnum$
|
|
3218
|
-
var __defNormalProp$
|
|
3219
|
-
var __spreadValues$
|
|
3215
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
|
3216
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
|
3217
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
|
3218
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3219
|
+
var __spreadValues$C = (a, b) => {
|
|
3220
3220
|
for (var prop in b || (b = {}))
|
|
3221
|
-
if (__hasOwnProp$
|
|
3222
|
-
__defNormalProp$
|
|
3223
|
-
if (__getOwnPropSymbols$
|
|
3224
|
-
for (var prop of __getOwnPropSymbols$
|
|
3225
|
-
if (__propIsEnum$
|
|
3226
|
-
__defNormalProp$
|
|
3221
|
+
if (__hasOwnProp$D.call(b, prop))
|
|
3222
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
3223
|
+
if (__getOwnPropSymbols$D)
|
|
3224
|
+
for (var prop of __getOwnPropSymbols$D(b)) {
|
|
3225
|
+
if (__propIsEnum$D.call(b, prop))
|
|
3226
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
3227
3227
|
}
|
|
3228
3228
|
return a;
|
|
3229
3229
|
};
|
|
@@ -3231,11 +3231,11 @@ var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
|
|
|
3231
3231
|
var __objRest$l = (source, exclude) => {
|
|
3232
3232
|
var target = {};
|
|
3233
3233
|
for (var prop in source)
|
|
3234
|
-
if (__hasOwnProp$
|
|
3234
|
+
if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3235
3235
|
target[prop] = source[prop];
|
|
3236
|
-
if (source != null && __getOwnPropSymbols$
|
|
3237
|
-
for (var prop of __getOwnPropSymbols$
|
|
3238
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3236
|
+
if (source != null && __getOwnPropSymbols$D)
|
|
3237
|
+
for (var prop of __getOwnPropSymbols$D(source)) {
|
|
3238
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
|
|
3239
3239
|
target[prop] = source[prop];
|
|
3240
3240
|
}
|
|
3241
3241
|
return target;
|
|
@@ -3257,7 +3257,7 @@ const TextArea = (_a) => {
|
|
|
3257
3257
|
}[size];
|
|
3258
3258
|
return /* @__PURE__ */ React__default.createElement(
|
|
3259
3259
|
Input$1.TextArea,
|
|
3260
|
-
__spreadProps$u(__spreadValues$
|
|
3260
|
+
__spreadProps$u(__spreadValues$C({}, props), {
|
|
3261
3261
|
className: cs(
|
|
3262
3262
|
className,
|
|
3263
3263
|
InputStyle,
|
|
@@ -3271,21 +3271,21 @@ const TextArea = (_a) => {
|
|
|
3271
3271
|
);
|
|
3272
3272
|
};
|
|
3273
3273
|
|
|
3274
|
-
var __defProp$
|
|
3274
|
+
var __defProp$B = Object.defineProperty;
|
|
3275
3275
|
var __defProps$t = Object.defineProperties;
|
|
3276
3276
|
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
|
3277
|
-
var __getOwnPropSymbols$
|
|
3278
|
-
var __hasOwnProp$
|
|
3279
|
-
var __propIsEnum$
|
|
3280
|
-
var __defNormalProp$
|
|
3281
|
-
var __spreadValues$
|
|
3277
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
|
3278
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
|
3279
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
|
3280
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3281
|
+
var __spreadValues$B = (a, b) => {
|
|
3282
3282
|
for (var prop in b || (b = {}))
|
|
3283
|
-
if (__hasOwnProp$
|
|
3284
|
-
__defNormalProp$
|
|
3285
|
-
if (__getOwnPropSymbols$
|
|
3286
|
-
for (var prop of __getOwnPropSymbols$
|
|
3287
|
-
if (__propIsEnum$
|
|
3288
|
-
__defNormalProp$
|
|
3283
|
+
if (__hasOwnProp$C.call(b, prop))
|
|
3284
|
+
__defNormalProp$B(a, prop, b[prop]);
|
|
3285
|
+
if (__getOwnPropSymbols$C)
|
|
3286
|
+
for (var prop of __getOwnPropSymbols$C(b)) {
|
|
3287
|
+
if (__propIsEnum$C.call(b, prop))
|
|
3288
|
+
__defNormalProp$B(a, prop, b[prop]);
|
|
3289
3289
|
}
|
|
3290
3290
|
return a;
|
|
3291
3291
|
};
|
|
@@ -3293,11 +3293,11 @@ var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
|
|
3293
3293
|
var __objRest$k = (source, exclude) => {
|
|
3294
3294
|
var target = {};
|
|
3295
3295
|
for (var prop in source)
|
|
3296
|
-
if (__hasOwnProp$
|
|
3296
|
+
if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3297
3297
|
target[prop] = source[prop];
|
|
3298
|
-
if (source != null && __getOwnPropSymbols$
|
|
3299
|
-
for (var prop of __getOwnPropSymbols$
|
|
3300
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3298
|
+
if (source != null && __getOwnPropSymbols$C)
|
|
3299
|
+
for (var prop of __getOwnPropSymbols$C(source)) {
|
|
3300
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
|
|
3301
3301
|
target[prop] = source[prop];
|
|
3302
3302
|
}
|
|
3303
3303
|
return target;
|
|
@@ -3314,7 +3314,7 @@ const FieldsTextArea = (_a) => {
|
|
|
3314
3314
|
]);
|
|
3315
3315
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
3316
3316
|
TextArea,
|
|
3317
|
-
__spreadProps$t(__spreadValues$
|
|
3317
|
+
__spreadProps$t(__spreadValues$B(__spreadValues$B({}, input), props), {
|
|
3318
3318
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError),
|
|
3319
3319
|
onFocus: (e) => {
|
|
3320
3320
|
input.onFocus(e);
|
|
@@ -3328,21 +3328,21 @@ const FieldsTextArea = (_a) => {
|
|
|
3328
3328
|
));
|
|
3329
3329
|
};
|
|
3330
3330
|
|
|
3331
|
-
var __defProp$
|
|
3331
|
+
var __defProp$A = Object.defineProperty;
|
|
3332
3332
|
var __defProps$s = Object.defineProperties;
|
|
3333
3333
|
var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
|
|
3334
|
-
var __getOwnPropSymbols$
|
|
3335
|
-
var __hasOwnProp$
|
|
3336
|
-
var __propIsEnum$
|
|
3337
|
-
var __defNormalProp$
|
|
3338
|
-
var __spreadValues$
|
|
3334
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
|
3335
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
|
3336
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
|
3337
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3338
|
+
var __spreadValues$A = (a, b) => {
|
|
3339
3339
|
for (var prop in b || (b = {}))
|
|
3340
|
-
if (__hasOwnProp$
|
|
3341
|
-
__defNormalProp$
|
|
3342
|
-
if (__getOwnPropSymbols$
|
|
3343
|
-
for (var prop of __getOwnPropSymbols$
|
|
3344
|
-
if (__propIsEnum$
|
|
3345
|
-
__defNormalProp$
|
|
3340
|
+
if (__hasOwnProp$B.call(b, prop))
|
|
3341
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
3342
|
+
if (__getOwnPropSymbols$B)
|
|
3343
|
+
for (var prop of __getOwnPropSymbols$B(b)) {
|
|
3344
|
+
if (__propIsEnum$B.call(b, prop))
|
|
3345
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
3346
3346
|
}
|
|
3347
3347
|
return a;
|
|
3348
3348
|
};
|
|
@@ -3350,11 +3350,11 @@ var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
|
|
|
3350
3350
|
var __objRest$j = (source, exclude) => {
|
|
3351
3351
|
var target = {};
|
|
3352
3352
|
for (var prop in source)
|
|
3353
|
-
if (__hasOwnProp$
|
|
3353
|
+
if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3354
3354
|
target[prop] = source[prop];
|
|
3355
|
-
if (source != null && __getOwnPropSymbols$
|
|
3356
|
-
for (var prop of __getOwnPropSymbols$
|
|
3357
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3355
|
+
if (source != null && __getOwnPropSymbols$B)
|
|
3356
|
+
for (var prop of __getOwnPropSymbols$B(source)) {
|
|
3357
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop))
|
|
3358
3358
|
target[prop] = source[prop];
|
|
3359
3359
|
}
|
|
3360
3360
|
return target;
|
|
@@ -3376,7 +3376,7 @@ const TimePicker = (_a) => {
|
|
|
3376
3376
|
}[size];
|
|
3377
3377
|
return /* @__PURE__ */ React__default.createElement(
|
|
3378
3378
|
TimePicker$1,
|
|
3379
|
-
__spreadProps$s(__spreadValues$
|
|
3379
|
+
__spreadProps$s(__spreadValues$A({}, props), {
|
|
3380
3380
|
size,
|
|
3381
3381
|
"data-test": props.name,
|
|
3382
3382
|
className: cs(className, InputStyle, typo, error ? "error" : "")
|
|
@@ -3384,21 +3384,21 @@ const TimePicker = (_a) => {
|
|
|
3384
3384
|
);
|
|
3385
3385
|
};
|
|
3386
3386
|
|
|
3387
|
-
var __defProp$
|
|
3387
|
+
var __defProp$z = Object.defineProperty;
|
|
3388
3388
|
var __defProps$r = Object.defineProperties;
|
|
3389
3389
|
var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
|
|
3390
|
-
var __getOwnPropSymbols$
|
|
3391
|
-
var __hasOwnProp$
|
|
3392
|
-
var __propIsEnum$
|
|
3393
|
-
var __defNormalProp$
|
|
3394
|
-
var __spreadValues$
|
|
3390
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
|
3391
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
|
3392
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
|
3393
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3394
|
+
var __spreadValues$z = (a, b) => {
|
|
3395
3395
|
for (var prop in b || (b = {}))
|
|
3396
|
-
if (__hasOwnProp$
|
|
3397
|
-
__defNormalProp$
|
|
3398
|
-
if (__getOwnPropSymbols$
|
|
3399
|
-
for (var prop of __getOwnPropSymbols$
|
|
3400
|
-
if (__propIsEnum$
|
|
3401
|
-
__defNormalProp$
|
|
3396
|
+
if (__hasOwnProp$A.call(b, prop))
|
|
3397
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
3398
|
+
if (__getOwnPropSymbols$A)
|
|
3399
|
+
for (var prop of __getOwnPropSymbols$A(b)) {
|
|
3400
|
+
if (__propIsEnum$A.call(b, prop))
|
|
3401
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
3402
3402
|
}
|
|
3403
3403
|
return a;
|
|
3404
3404
|
};
|
|
@@ -3406,11 +3406,11 @@ var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
|
|
|
3406
3406
|
var __objRest$i = (source, exclude) => {
|
|
3407
3407
|
var target = {};
|
|
3408
3408
|
for (var prop in source)
|
|
3409
|
-
if (__hasOwnProp$
|
|
3409
|
+
if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3410
3410
|
target[prop] = source[prop];
|
|
3411
|
-
if (source != null && __getOwnPropSymbols$
|
|
3412
|
-
for (var prop of __getOwnPropSymbols$
|
|
3413
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3411
|
+
if (source != null && __getOwnPropSymbols$A)
|
|
3412
|
+
for (var prop of __getOwnPropSymbols$A(source)) {
|
|
3413
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
|
|
3414
3414
|
target[prop] = source[prop];
|
|
3415
3415
|
}
|
|
3416
3416
|
return target;
|
|
@@ -3425,7 +3425,7 @@ const FieldsTimePicker = (_a) => {
|
|
|
3425
3425
|
]);
|
|
3426
3426
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
3427
3427
|
TimePicker,
|
|
3428
|
-
__spreadValues$
|
|
3428
|
+
__spreadValues$z(__spreadProps$r(__spreadValues$z({}, input), {
|
|
3429
3429
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
3430
3430
|
}), props)
|
|
3431
3431
|
));
|
|
@@ -3444,31 +3444,31 @@ const fields = {
|
|
|
3444
3444
|
DateTimeRange: FieldsDateTimeRange
|
|
3445
3445
|
};
|
|
3446
3446
|
|
|
3447
|
-
var __defProp$
|
|
3447
|
+
var __defProp$y = Object.defineProperty;
|
|
3448
3448
|
var __defProps$q = Object.defineProperties;
|
|
3449
3449
|
var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
|
|
3450
|
-
var __getOwnPropSymbols$
|
|
3451
|
-
var __hasOwnProp$
|
|
3452
|
-
var __propIsEnum$
|
|
3453
|
-
var __defNormalProp$
|
|
3450
|
+
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
|
3451
|
+
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
|
3452
|
+
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
|
3453
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, {
|
|
3454
3454
|
enumerable: true,
|
|
3455
3455
|
configurable: true,
|
|
3456
3456
|
writable: true,
|
|
3457
3457
|
value
|
|
3458
3458
|
}) : obj[key] = value;
|
|
3459
|
-
var __spreadValues$
|
|
3460
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3461
|
-
if (__getOwnPropSymbols$
|
|
3462
|
-
if (__propIsEnum$
|
|
3459
|
+
var __spreadValues$y = (a, b) => {
|
|
3460
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$z.call(b, prop)) __defNormalProp$y(a, prop, b[prop]);
|
|
3461
|
+
if (__getOwnPropSymbols$z) for (var prop of __getOwnPropSymbols$z(b)) {
|
|
3462
|
+
if (__propIsEnum$z.call(b, prop)) __defNormalProp$y(a, prop, b[prop]);
|
|
3463
3463
|
}
|
|
3464
3464
|
return a;
|
|
3465
3465
|
};
|
|
3466
3466
|
var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
|
|
3467
3467
|
var __objRest$h = (source, exclude) => {
|
|
3468
3468
|
var target = {};
|
|
3469
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3470
|
-
if (source != null && __getOwnPropSymbols$
|
|
3471
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3469
|
+
for (var prop in source) if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3470
|
+
if (source != null && __getOwnPropSymbols$z) for (var prop of __getOwnPropSymbols$z(source)) {
|
|
3471
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop)) target[prop] = source[prop];
|
|
3472
3472
|
}
|
|
3473
3473
|
return target;
|
|
3474
3474
|
};
|
|
@@ -3488,7 +3488,7 @@ const Switch = _a => {
|
|
|
3488
3488
|
});
|
|
3489
3489
|
const classNames = [className, SwitchStyle, "switch"];
|
|
3490
3490
|
if (props.size === "large") classNames.push("ant-switch-large");
|
|
3491
|
-
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Switch$1, __spreadProps$q(__spreadValues$
|
|
3491
|
+
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Switch$1, __spreadProps$q(__spreadValues$y({
|
|
3492
3492
|
className: cx(...classNames),
|
|
3493
3493
|
checked: checked || false
|
|
3494
3494
|
}, props), {
|
|
@@ -3496,22 +3496,22 @@ const Switch = _a => {
|
|
|
3496
3496
|
})), children ? /* @__PURE__ */React__default.createElement(Content, null, children) : null);
|
|
3497
3497
|
};
|
|
3498
3498
|
|
|
3499
|
-
var __defProp$
|
|
3499
|
+
var __defProp$x = Object.defineProperty;
|
|
3500
3500
|
var __defProps$p = Object.defineProperties;
|
|
3501
3501
|
var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
|
|
3502
|
-
var __getOwnPropSymbols$
|
|
3503
|
-
var __hasOwnProp$
|
|
3504
|
-
var __propIsEnum$
|
|
3505
|
-
var __defNormalProp$
|
|
3502
|
+
var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
|
|
3503
|
+
var __hasOwnProp$y = Object.prototype.hasOwnProperty;
|
|
3504
|
+
var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
|
|
3505
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, {
|
|
3506
3506
|
enumerable: true,
|
|
3507
3507
|
configurable: true,
|
|
3508
3508
|
writable: true,
|
|
3509
3509
|
value
|
|
3510
3510
|
}) : obj[key] = value;
|
|
3511
|
-
var __spreadValues$
|
|
3512
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3513
|
-
if (__getOwnPropSymbols$
|
|
3514
|
-
if (__propIsEnum$
|
|
3511
|
+
var __spreadValues$x = (a, b) => {
|
|
3512
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$y.call(b, prop)) __defNormalProp$x(a, prop, b[prop]);
|
|
3513
|
+
if (__getOwnPropSymbols$y) for (var prop of __getOwnPropSymbols$y(b)) {
|
|
3514
|
+
if (__propIsEnum$y.call(b, prop)) __defNormalProp$x(a, prop, b[prop]);
|
|
3515
3515
|
}
|
|
3516
3516
|
return a;
|
|
3517
3517
|
};
|
|
@@ -3610,7 +3610,7 @@ const Daily = ({
|
|
|
3610
3610
|
input: {
|
|
3611
3611
|
value: daily.step,
|
|
3612
3612
|
onChange: value => {
|
|
3613
|
-
setDaily(__spreadProps$p(__spreadValues$
|
|
3613
|
+
setDaily(__spreadProps$p(__spreadValues$x({}, daily), {
|
|
3614
3614
|
step: value
|
|
3615
3615
|
}));
|
|
3616
3616
|
},
|
|
@@ -3624,7 +3624,7 @@ const Daily = ({
|
|
|
3624
3624
|
value: daily.time,
|
|
3625
3625
|
onChange: value => {
|
|
3626
3626
|
if (value) {
|
|
3627
|
-
setDaily(__spreadProps$p(__spreadValues$
|
|
3627
|
+
setDaily(__spreadProps$p(__spreadValues$x({}, daily), {
|
|
3628
3628
|
time: value
|
|
3629
3629
|
}));
|
|
3630
3630
|
}
|
|
@@ -3679,7 +3679,7 @@ const Weekly = ({
|
|
|
3679
3679
|
input: {
|
|
3680
3680
|
value: weekly.step,
|
|
3681
3681
|
onChange: value => {
|
|
3682
|
-
setWeekly(__spreadProps$p(__spreadValues$
|
|
3682
|
+
setWeekly(__spreadProps$p(__spreadValues$x({}, weekly), {
|
|
3683
3683
|
step: value
|
|
3684
3684
|
}));
|
|
3685
3685
|
},
|
|
@@ -3696,7 +3696,7 @@ const Weekly = ({
|
|
|
3696
3696
|
className: cx$1("week-day-option", active && "active", i18n.language === ParrotLngs.en && "en-text"),
|
|
3697
3697
|
type: "default",
|
|
3698
3698
|
key: d.value,
|
|
3699
|
-
onClick: () => setWeekly(__spreadProps$p(__spreadValues$
|
|
3699
|
+
onClick: () => setWeekly(__spreadProps$p(__spreadValues$x({}, weekly), {
|
|
3700
3700
|
days: active ? weekly.days.filter(day => day !== d.value) : weekly.days.concat(d.value).sort((a, b) => a - b)
|
|
3701
3701
|
}))
|
|
3702
3702
|
}, d.text);
|
|
@@ -3708,7 +3708,7 @@ const Weekly = ({
|
|
|
3708
3708
|
value: weekly.time,
|
|
3709
3709
|
onChange: value => {
|
|
3710
3710
|
if (value) {
|
|
3711
|
-
setWeekly(__spreadProps$p(__spreadValues$
|
|
3711
|
+
setWeekly(__spreadProps$p(__spreadValues$x({}, weekly), {
|
|
3712
3712
|
time: value
|
|
3713
3713
|
}));
|
|
3714
3714
|
}
|
|
@@ -3735,7 +3735,7 @@ const Monthly = ({
|
|
|
3735
3735
|
input: {
|
|
3736
3736
|
value: monthly.step,
|
|
3737
3737
|
onChange: value => {
|
|
3738
|
-
setMonthly(__spreadProps$p(__spreadValues$
|
|
3738
|
+
setMonthly(__spreadProps$p(__spreadValues$x({}, monthly), {
|
|
3739
3739
|
step: value
|
|
3740
3740
|
}));
|
|
3741
3741
|
},
|
|
@@ -3752,7 +3752,7 @@ const Monthly = ({
|
|
|
3752
3752
|
className: cx$1("month-day-option", active && "active"),
|
|
3753
3753
|
type: "default",
|
|
3754
3754
|
key: d,
|
|
3755
|
-
onClick: () => setMonthly(__spreadProps$p(__spreadValues$
|
|
3755
|
+
onClick: () => setMonthly(__spreadProps$p(__spreadValues$x({}, monthly), {
|
|
3756
3756
|
days: active ? monthly.days.filter(day => day !== d) : monthly.days.concat(d).sort((a, b) => a - b)
|
|
3757
3757
|
}))
|
|
3758
3758
|
}, d);
|
|
@@ -3768,7 +3768,7 @@ const Monthly = ({
|
|
|
3768
3768
|
value: monthly.time,
|
|
3769
3769
|
onChange: value => {
|
|
3770
3770
|
if (value) {
|
|
3771
|
-
setMonthly(__spreadProps$p(__spreadValues$
|
|
3771
|
+
setMonthly(__spreadProps$p(__spreadValues$x({}, monthly), {
|
|
3772
3772
|
time: value
|
|
3773
3773
|
}));
|
|
3774
3774
|
}
|
|
@@ -3792,7 +3792,7 @@ const CronPlan = props => {
|
|
|
3792
3792
|
}, [value]);
|
|
3793
3793
|
const sendAtDate = useMemo(() => cronTime.sendAt(), [cronTime]);
|
|
3794
3794
|
const changeValue = newValue => {
|
|
3795
|
-
onChange(__spreadValues$
|
|
3795
|
+
onChange(__spreadValues$x(__spreadValues$x({}, value), newValue));
|
|
3796
3796
|
};
|
|
3797
3797
|
const [mode, setMode] = useState(getMode(cronTime["source"]));
|
|
3798
3798
|
const source = cronTime["source"];
|
|
@@ -3800,19 +3800,19 @@ const CronPlan = props => {
|
|
|
3800
3800
|
const time = getTime(cronTime);
|
|
3801
3801
|
const [daily, setDaily] = useState(() => {
|
|
3802
3802
|
const rawDaily = getDaily(mode, source, time);
|
|
3803
|
-
return __spreadProps$p(__spreadValues$
|
|
3803
|
+
return __spreadProps$p(__spreadValues$x({}, rawDaily), {
|
|
3804
3804
|
time: moment(rawDaily.time.format())
|
|
3805
3805
|
});
|
|
3806
3806
|
});
|
|
3807
3807
|
const [weekly, setWeekly] = useState(() => {
|
|
3808
3808
|
const rawWeekly = getWeekly(mode, source, time);
|
|
3809
|
-
return __spreadProps$p(__spreadValues$
|
|
3809
|
+
return __spreadProps$p(__spreadValues$x({}, rawWeekly), {
|
|
3810
3810
|
time: moment(rawWeekly.time.format())
|
|
3811
3811
|
});
|
|
3812
3812
|
});
|
|
3813
3813
|
const [monthly, setMonthly] = useState(() => {
|
|
3814
3814
|
const rawMonthly = getMonthly(mode, month, day, time);
|
|
3815
|
-
return __spreadProps$p(__spreadValues$
|
|
3815
|
+
return __spreadProps$p(__spreadValues$x({}, rawMonthly), {
|
|
3816
3816
|
time: moment(rawMonthly.time.format())
|
|
3817
3817
|
});
|
|
3818
3818
|
});
|
|
@@ -3995,6 +3995,32 @@ const NamesTooltip = props => {
|
|
|
3995
3995
|
}, children));
|
|
3996
3996
|
};
|
|
3997
3997
|
|
|
3998
|
+
var __defProp$w = Object.defineProperty;
|
|
3999
|
+
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
|
4000
|
+
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
|
4001
|
+
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
|
4002
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4003
|
+
var __spreadValues$w = (a, b) => {
|
|
4004
|
+
for (var prop in b || (b = {}))
|
|
4005
|
+
if (__hasOwnProp$x.call(b, prop))
|
|
4006
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
4007
|
+
if (__getOwnPropSymbols$x)
|
|
4008
|
+
for (var prop of __getOwnPropSymbols$x(b)) {
|
|
4009
|
+
if (__propIsEnum$x.call(b, prop))
|
|
4010
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
4011
|
+
}
|
|
4012
|
+
return a;
|
|
4013
|
+
};
|
|
4014
|
+
const SortableList = ({ moveItem, children }) => {
|
|
4015
|
+
const onDragEnd = (result) => {
|
|
4016
|
+
if (!result.destination)
|
|
4017
|
+
return;
|
|
4018
|
+
moveItem(result.source.index, result.destination.index);
|
|
4019
|
+
};
|
|
4020
|
+
return /* @__PURE__ */ React__default.createElement(DragDropContext, { onDragEnd }, /* @__PURE__ */ React__default.createElement(Droppable, { droppableId: "droppable" }, (provided) => /* @__PURE__ */ React__default.createElement("div", __spreadValues$w({ ref: provided.innerRef }, provided.droppableProps), children, provided.placeholder)));
|
|
4021
|
+
};
|
|
4022
|
+
SortableList.Item = Draggable;
|
|
4023
|
+
|
|
3998
4024
|
const Table$1 = /*#__PURE__*/styled$1('div')({
|
|
3999
4025
|
name: "Table",
|
|
4000
4026
|
class: "t1sqg15u",
|
|
@@ -6640,18 +6666,18 @@ const TableFormBodyCell = (props) => {
|
|
|
6640
6666
|
error
|
|
6641
6667
|
} = props;
|
|
6642
6668
|
const [validateResult, setValidateResult] = useState();
|
|
6643
|
-
const isTouched =
|
|
6669
|
+
const [isTouched, setIsTouched] = useState(false);
|
|
6644
6670
|
const width = typeof column.width === "number" ? column.width + "px" : column.width;
|
|
6645
6671
|
const isCellErrorStyle = Boolean((validateResult == null ? void 0 : validateResult.isError) || isRowError);
|
|
6646
6672
|
useEffect(() => {
|
|
6647
|
-
if (isTouched
|
|
6673
|
+
if (isTouched)
|
|
6648
6674
|
setValidateResult(
|
|
6649
6675
|
error ? {
|
|
6650
6676
|
msg: error,
|
|
6651
6677
|
isError: true
|
|
6652
6678
|
} : void 0
|
|
6653
6679
|
);
|
|
6654
|
-
}, [error]);
|
|
6680
|
+
}, [error, isTouched]);
|
|
6655
6681
|
const triggerValidate = useCallback(
|
|
6656
6682
|
(currentValue) => {
|
|
6657
6683
|
var _a;
|
|
@@ -6676,24 +6702,24 @@ const TableFormBodyCell = (props) => {
|
|
|
6676
6702
|
);
|
|
6677
6703
|
useEffect(() => {
|
|
6678
6704
|
if (validateAll) {
|
|
6679
|
-
|
|
6705
|
+
setIsTouched(true);
|
|
6680
6706
|
triggerValidate();
|
|
6681
6707
|
}
|
|
6682
|
-
}, [validateAll, triggerValidate]);
|
|
6708
|
+
}, [validateAll, triggerValidate, setIsTouched]);
|
|
6683
6709
|
const _onChange = (value, data2) => {
|
|
6684
6710
|
const newData = data2.map(
|
|
6685
6711
|
(row, i) => i === rowIndex ? __spreadProps$7(__spreadValues$7({}, row), { [column.key]: value }) : row
|
|
6686
6712
|
);
|
|
6687
6713
|
onChange == null ? void 0 : onChange(newData, rowIndex, column.key);
|
|
6688
|
-
if (validateTriggerType === ValidateTriggerType.Normal && isTouched
|
|
6714
|
+
if (validateTriggerType === ValidateTriggerType.Normal && isTouched || validateTriggerType === ValidateTriggerType.Aggressive) {
|
|
6689
6715
|
triggerValidate(value);
|
|
6690
6716
|
}
|
|
6691
6717
|
};
|
|
6692
6718
|
const _onBlur = useCallback(() => {
|
|
6693
|
-
|
|
6719
|
+
setIsTouched(true);
|
|
6694
6720
|
triggerValidate();
|
|
6695
6721
|
onBlur == null ? void 0 : onBlur(data, rowIndex, column.key);
|
|
6696
|
-
}, [rowIndex, column, onBlur, data, triggerValidate]);
|
|
6722
|
+
}, [rowIndex, column, onBlur, data, triggerValidate, setIsTouched]);
|
|
6697
6723
|
const renderDefaultComponent = () => {
|
|
6698
6724
|
if (!column.type)
|
|
6699
6725
|
return null;
|
|
@@ -7500,6 +7526,11 @@ const Truncate = props => {
|
|
|
7500
7526
|
}, Text);
|
|
7501
7527
|
};
|
|
7502
7528
|
|
|
7529
|
+
const SidebarSubtitle = (props) => {
|
|
7530
|
+
const { title, className } = props;
|
|
7531
|
+
return /* @__PURE__ */ React__default.createElement("span", { className: cx$1(Typo.Heading.h3_regular_upper, className) }, title);
|
|
7532
|
+
};
|
|
7533
|
+
|
|
7503
7534
|
function getAntdKit() {
|
|
7504
7535
|
const kit = {
|
|
7505
7536
|
loading: Loading,
|
|
@@ -7616,7 +7647,9 @@ function getAntdKit() {
|
|
|
7616
7647
|
DonutChart,
|
|
7617
7648
|
UnitWithChart,
|
|
7618
7649
|
GoBackButton: GobackButton,
|
|
7619
|
-
SummaryTable
|
|
7650
|
+
SummaryTable,
|
|
7651
|
+
SortableList,
|
|
7652
|
+
SidebarSubtitle
|
|
7620
7653
|
};
|
|
7621
7654
|
kit.option.isSelectOption = true;
|
|
7622
7655
|
kit.button.__ANT_BUTTON = true;
|