@cloudtower/eagle 0.25.14-alpha.4 → 0.25.14
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/Empty/index.d.ts +6 -2
- package/dist/components/KitStoreProvider/index.d.ts +1 -4
- package/dist/components.css +791 -791
- package/dist/esm/index.js +676 -549
- package/dist/esm/stats1.html +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/spec/base.d.ts +4 -1
- package/dist/store/index.d.ts +3 -21
- package/dist/style.css +675 -675
- package/dist/umd/index.js +673 -547
- package/dist/umd/stats1.html +1 -1
- package/package.json +5 -5
- package/dist/components/KitStoreProvider/ReduxContextProvider.d.ts +0 -9
package/dist/esm/index.js
CHANGED
|
@@ -3,7 +3,7 @@ export * from '@cloudtower/parrot';
|
|
|
3
3
|
import { Alert as Alert$1, Badge as Badge$1, Button as Button$1, Tooltip as Tooltip$1, Checkbox as Checkbox$1, DatePicker, Select as Select$1, InputNumber as InputNumber$1, Input as Input$1, TimePicker as TimePicker$1, Form as Form$1, Modal as Modal$1, Steps as Steps$1, Dropdown, Menu, Progress as Progress$1, Radio as Radio$1, Switch as Switch$1, Table as Table$1, Space, List, Tag, Row, Col, Tree, Divider, Skeleton, Layout, AutoComplete, Popover, Timeline, Typography, Cascader, Upload, Calendar, Tabs, message, Empty as Empty$1, Collapse, TreeSelect, Drawer, ConfigProvider } from 'antd';
|
|
4
4
|
export { Col, Row } from 'antd';
|
|
5
5
|
import * as React from 'react';
|
|
6
|
-
import React__default, { useState, useMemo, useRef, useCallback, useEffect, Fragment, useLayoutEffect, createContext,
|
|
6
|
+
import React__default, { useState, useMemo, useRef, useCallback, useEffect, Fragment, useLayoutEffect, createContext, memo, useImperativeHandle, useContext } from 'react';
|
|
7
7
|
import cs from 'classnames';
|
|
8
8
|
import _, { uniqBy, groupBy, sortBy, toPairs } from 'lodash';
|
|
9
9
|
import { SVGUniqueID } from 'react-svg-unique-id';
|
|
@@ -22,7 +22,7 @@ import InfoCircleFilled from '@ant-design/icons/InfoCircleFilled';
|
|
|
22
22
|
import LoadingOutlined from '@ant-design/icons/LoadingOutlined';
|
|
23
23
|
import RCNotification from '@cloudtower/rc-notification';
|
|
24
24
|
import { combineReducers, createStore } from 'redux';
|
|
25
|
-
import {
|
|
25
|
+
import { createDispatchHook, createSelectorHook, Provider } from 'react-redux';
|
|
26
26
|
import { XmarkRemove16SecondaryIcon, XmarkRemove16RegularRedIcon, HandlePoint816SecondaryIcon, HandlePoint816BlueIcon, CheckmarkDoneSuccessCorrect16BlueIcon } from '@cloudtower/icons-react';
|
|
27
27
|
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
|
|
28
28
|
import TimeZones from 'timezones.json';
|
|
@@ -248,30 +248,30 @@ function getAlertIcon(type) {
|
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
-
var __defProp$
|
|
252
|
-
var __getOwnPropSymbols$
|
|
253
|
-
var __hasOwnProp$
|
|
254
|
-
var __propIsEnum$
|
|
255
|
-
var __defNormalProp$
|
|
256
|
-
var __spreadValues$
|
|
251
|
+
var __defProp$O = Object.defineProperty;
|
|
252
|
+
var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
|
|
253
|
+
var __hasOwnProp$P = Object.prototype.hasOwnProperty;
|
|
254
|
+
var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
|
|
255
|
+
var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
256
|
+
var __spreadValues$O = (a, b) => {
|
|
257
257
|
for (var prop in b || (b = {}))
|
|
258
|
-
if (__hasOwnProp$
|
|
259
|
-
__defNormalProp$
|
|
260
|
-
if (__getOwnPropSymbols$
|
|
261
|
-
for (var prop of __getOwnPropSymbols$
|
|
262
|
-
if (__propIsEnum$
|
|
263
|
-
__defNormalProp$
|
|
258
|
+
if (__hasOwnProp$P.call(b, prop))
|
|
259
|
+
__defNormalProp$O(a, prop, b[prop]);
|
|
260
|
+
if (__getOwnPropSymbols$P)
|
|
261
|
+
for (var prop of __getOwnPropSymbols$P(b)) {
|
|
262
|
+
if (__propIsEnum$P.call(b, prop))
|
|
263
|
+
__defNormalProp$O(a, prop, b[prop]);
|
|
264
264
|
}
|
|
265
265
|
return a;
|
|
266
266
|
};
|
|
267
267
|
var __objRest$s = (source, exclude) => {
|
|
268
268
|
var target = {};
|
|
269
269
|
for (var prop in source)
|
|
270
|
-
if (__hasOwnProp$
|
|
270
|
+
if (__hasOwnProp$P.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
271
271
|
target[prop] = source[prop];
|
|
272
|
-
if (source != null && __getOwnPropSymbols$
|
|
273
|
-
for (var prop of __getOwnPropSymbols$
|
|
274
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
272
|
+
if (source != null && __getOwnPropSymbols$P)
|
|
273
|
+
for (var prop of __getOwnPropSymbols$P(source)) {
|
|
274
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$P.call(source, prop))
|
|
275
275
|
target[prop] = source[prop];
|
|
276
276
|
}
|
|
277
277
|
return target;
|
|
@@ -303,10 +303,10 @@ const BaseIcon = React__default.forwardRef(
|
|
|
303
303
|
]);
|
|
304
304
|
return /* @__PURE__ */ React__default.createElement(
|
|
305
305
|
"span",
|
|
306
|
-
__spreadValues$
|
|
306
|
+
__spreadValues$O({
|
|
307
307
|
ref,
|
|
308
308
|
className,
|
|
309
|
-
style: _.pickBy(__spreadValues$
|
|
309
|
+
style: _.pickBy(__spreadValues$O({ cursor }, style))
|
|
310
310
|
}, HTMLSpanElementProps),
|
|
311
311
|
prefixNode,
|
|
312
312
|
/* @__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 }))),
|
|
@@ -316,31 +316,31 @@ const BaseIcon = React__default.forwardRef(
|
|
|
316
316
|
}
|
|
317
317
|
);
|
|
318
318
|
|
|
319
|
-
var __defProp$
|
|
319
|
+
var __defProp$N = Object.defineProperty;
|
|
320
320
|
var __defProps$x = Object.defineProperties;
|
|
321
321
|
var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
|
|
322
|
-
var __getOwnPropSymbols$
|
|
323
|
-
var __hasOwnProp$
|
|
324
|
-
var __propIsEnum$
|
|
325
|
-
var __defNormalProp$
|
|
322
|
+
var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
|
|
323
|
+
var __hasOwnProp$O = Object.prototype.hasOwnProperty;
|
|
324
|
+
var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
|
|
325
|
+
var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, {
|
|
326
326
|
enumerable: true,
|
|
327
327
|
configurable: true,
|
|
328
328
|
writable: true,
|
|
329
329
|
value
|
|
330
330
|
}) : obj[key] = value;
|
|
331
|
-
var __spreadValues$
|
|
332
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
333
|
-
if (__getOwnPropSymbols$
|
|
334
|
-
if (__propIsEnum$
|
|
331
|
+
var __spreadValues$N = (a, b) => {
|
|
332
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$O.call(b, prop)) __defNormalProp$N(a, prop, b[prop]);
|
|
333
|
+
if (__getOwnPropSymbols$O) for (var prop of __getOwnPropSymbols$O(b)) {
|
|
334
|
+
if (__propIsEnum$O.call(b, prop)) __defNormalProp$N(a, prop, b[prop]);
|
|
335
335
|
}
|
|
336
336
|
return a;
|
|
337
337
|
};
|
|
338
338
|
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
|
339
339
|
var __objRest$r = (source, exclude) => {
|
|
340
340
|
var target = {};
|
|
341
|
-
for (var prop in source) if (__hasOwnProp$
|
|
342
|
-
if (source != null && __getOwnPropSymbols$
|
|
343
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
341
|
+
for (var prop in source) if (__hasOwnProp$O.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
342
|
+
if (source != null && __getOwnPropSymbols$O) for (var prop of __getOwnPropSymbols$O(source)) {
|
|
343
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$O.call(source, prop)) target[prop] = source[prop];
|
|
344
344
|
}
|
|
345
345
|
return target;
|
|
346
346
|
};
|
|
@@ -392,14 +392,14 @@ const Icon = React__default.forwardRef((props, ref) => {
|
|
|
392
392
|
}
|
|
393
393
|
return src2;
|
|
394
394
|
}, [active, hover, suffix]);
|
|
395
|
-
return /* @__PURE__ */React__default.createElement(BaseIcon, __spreadProps$x(__spreadValues$
|
|
395
|
+
return /* @__PURE__ */React__default.createElement(BaseIcon, __spreadProps$x(__spreadValues$N({
|
|
396
396
|
src: _src,
|
|
397
397
|
className: cs(IconWrapper, "icon-wrapper", className, isRotate && "is-rotate"),
|
|
398
398
|
suffixIconSrc,
|
|
399
399
|
height: iconHeight,
|
|
400
400
|
width: iconWidth,
|
|
401
401
|
prefixNode: prefix,
|
|
402
|
-
style: _.pickBy(__spreadValues$
|
|
402
|
+
style: _.pickBy(__spreadValues$N({
|
|
403
403
|
cursor
|
|
404
404
|
}, style))
|
|
405
405
|
}, restProps), {
|
|
@@ -424,21 +424,21 @@ const Icon = React__default.forwardRef((props, ref) => {
|
|
|
424
424
|
}));
|
|
425
425
|
});
|
|
426
426
|
|
|
427
|
-
var __defProp$
|
|
427
|
+
var __defProp$M = Object.defineProperty;
|
|
428
428
|
var __defProps$w = Object.defineProperties;
|
|
429
429
|
var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
|
|
430
|
-
var __getOwnPropSymbols$
|
|
431
|
-
var __hasOwnProp$
|
|
432
|
-
var __propIsEnum$
|
|
433
|
-
var __defNormalProp$
|
|
434
|
-
var __spreadValues$
|
|
430
|
+
var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
|
|
431
|
+
var __hasOwnProp$N = Object.prototype.hasOwnProperty;
|
|
432
|
+
var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
|
|
433
|
+
var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
434
|
+
var __spreadValues$M = (a, b) => {
|
|
435
435
|
for (var prop in b || (b = {}))
|
|
436
|
-
if (__hasOwnProp$
|
|
437
|
-
__defNormalProp$
|
|
438
|
-
if (__getOwnPropSymbols$
|
|
439
|
-
for (var prop of __getOwnPropSymbols$
|
|
440
|
-
if (__propIsEnum$
|
|
441
|
-
__defNormalProp$
|
|
436
|
+
if (__hasOwnProp$N.call(b, prop))
|
|
437
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
438
|
+
if (__getOwnPropSymbols$N)
|
|
439
|
+
for (var prop of __getOwnPropSymbols$N(b)) {
|
|
440
|
+
if (__propIsEnum$N.call(b, prop))
|
|
441
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
442
442
|
}
|
|
443
443
|
return a;
|
|
444
444
|
};
|
|
@@ -446,11 +446,11 @@ var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
|
|
|
446
446
|
var __objRest$q = (source, exclude) => {
|
|
447
447
|
var target = {};
|
|
448
448
|
for (var prop in source)
|
|
449
|
-
if (__hasOwnProp$
|
|
449
|
+
if (__hasOwnProp$N.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
450
450
|
target[prop] = source[prop];
|
|
451
|
-
if (source != null && __getOwnPropSymbols$
|
|
452
|
-
for (var prop of __getOwnPropSymbols$
|
|
453
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
451
|
+
if (source != null && __getOwnPropSymbols$N)
|
|
452
|
+
for (var prop of __getOwnPropSymbols$N(source)) {
|
|
453
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$N.call(source, prop))
|
|
454
454
|
target[prop] = source[prop];
|
|
455
455
|
}
|
|
456
456
|
return target;
|
|
@@ -475,7 +475,7 @@ const Alert = (_a) => {
|
|
|
475
475
|
const _type = type === "normal" ? "info" : type;
|
|
476
476
|
return /* @__PURE__ */ React__default.createElement(
|
|
477
477
|
Alert$1,
|
|
478
|
-
__spreadProps$w(__spreadValues$
|
|
478
|
+
__spreadProps$w(__spreadValues$M({}, props), {
|
|
479
479
|
className: cs(type ? `alert-${type}` : "", className),
|
|
480
480
|
type: _type,
|
|
481
481
|
icon: icon || _icon,
|
|
@@ -503,21 +503,21 @@ const Arch = (props) => {
|
|
|
503
503
|
return /* @__PURE__ */ React__default.createElement("span", null, text);
|
|
504
504
|
};
|
|
505
505
|
|
|
506
|
-
var __defProp$
|
|
506
|
+
var __defProp$L = Object.defineProperty;
|
|
507
507
|
var __defProps$v = Object.defineProperties;
|
|
508
508
|
var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
|
|
509
|
-
var __getOwnPropSymbols$
|
|
510
|
-
var __hasOwnProp$
|
|
511
|
-
var __propIsEnum$
|
|
512
|
-
var __defNormalProp$
|
|
513
|
-
var __spreadValues$
|
|
509
|
+
var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
|
|
510
|
+
var __hasOwnProp$M = Object.prototype.hasOwnProperty;
|
|
511
|
+
var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
|
|
512
|
+
var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
513
|
+
var __spreadValues$L = (a, b) => {
|
|
514
514
|
for (var prop in b || (b = {}))
|
|
515
|
-
if (__hasOwnProp$
|
|
516
|
-
__defNormalProp$
|
|
517
|
-
if (__getOwnPropSymbols$
|
|
518
|
-
for (var prop of __getOwnPropSymbols$
|
|
519
|
-
if (__propIsEnum$
|
|
520
|
-
__defNormalProp$
|
|
515
|
+
if (__hasOwnProp$M.call(b, prop))
|
|
516
|
+
__defNormalProp$L(a, prop, b[prop]);
|
|
517
|
+
if (__getOwnPropSymbols$M)
|
|
518
|
+
for (var prop of __getOwnPropSymbols$M(b)) {
|
|
519
|
+
if (__propIsEnum$M.call(b, prop))
|
|
520
|
+
__defNormalProp$L(a, prop, b[prop]);
|
|
521
521
|
}
|
|
522
522
|
return a;
|
|
523
523
|
};
|
|
@@ -525,11 +525,11 @@ var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
|
|
|
525
525
|
var __objRest$p = (source, exclude) => {
|
|
526
526
|
var target = {};
|
|
527
527
|
for (var prop in source)
|
|
528
|
-
if (__hasOwnProp$
|
|
528
|
+
if (__hasOwnProp$M.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
529
529
|
target[prop] = source[prop];
|
|
530
|
-
if (source != null && __getOwnPropSymbols$
|
|
531
|
-
for (var prop of __getOwnPropSymbols$
|
|
532
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
530
|
+
if (source != null && __getOwnPropSymbols$M)
|
|
531
|
+
for (var prop of __getOwnPropSymbols$M(source)) {
|
|
532
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$M.call(source, prop))
|
|
533
533
|
target[prop] = source[prop];
|
|
534
534
|
}
|
|
535
535
|
return target;
|
|
@@ -538,7 +538,7 @@ const Badge = (_a) => {
|
|
|
538
538
|
var _b = _a, { type = "error", className } = _b, props = __objRest$p(_b, ["type", "className"]);
|
|
539
539
|
return /* @__PURE__ */ React__default.createElement(
|
|
540
540
|
Badge$1,
|
|
541
|
-
__spreadProps$v(__spreadValues$
|
|
541
|
+
__spreadProps$v(__spreadValues$L({
|
|
542
542
|
className: cx(`badge-${type}`, className)
|
|
543
543
|
}, props), {
|
|
544
544
|
showZero: false
|
|
@@ -553,32 +553,96 @@ function isEmpty(rawValue) {
|
|
|
553
553
|
return false;
|
|
554
554
|
}
|
|
555
555
|
|
|
556
|
-
const Empty =
|
|
556
|
+
const Empty = (props) => {
|
|
557
|
+
const { className, style } = props;
|
|
558
|
+
return /* @__PURE__ */ React__default.createElement("span", { className, style }, "-");
|
|
559
|
+
};
|
|
557
560
|
|
|
558
|
-
|
|
561
|
+
var __defProp$K = Object.defineProperty;
|
|
562
|
+
var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
|
|
563
|
+
var __hasOwnProp$L = Object.prototype.hasOwnProperty;
|
|
564
|
+
var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
|
|
565
|
+
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
566
|
+
var __spreadValues$K = (a, b) => {
|
|
567
|
+
for (var prop in b || (b = {}))
|
|
568
|
+
if (__hasOwnProp$L.call(b, prop))
|
|
569
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
570
|
+
if (__getOwnPropSymbols$L)
|
|
571
|
+
for (var prop of __getOwnPropSymbols$L(b)) {
|
|
572
|
+
if (__propIsEnum$L.call(b, prop))
|
|
573
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
574
|
+
}
|
|
575
|
+
return a;
|
|
576
|
+
};
|
|
577
|
+
const Bit = ({
|
|
578
|
+
rawValue,
|
|
579
|
+
decimals,
|
|
580
|
+
unitClassName,
|
|
581
|
+
valueClassName,
|
|
582
|
+
emptyProps
|
|
583
|
+
}) => {
|
|
559
584
|
if (isEmpty(rawValue)) {
|
|
560
|
-
return Empty;
|
|
585
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$K({}, emptyProps));
|
|
561
586
|
}
|
|
562
587
|
const { value, unit } = formatBits(rawValue, decimals);
|
|
563
588
|
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}`));
|
|
564
589
|
};
|
|
565
590
|
|
|
591
|
+
var __defProp$J = Object.defineProperty;
|
|
592
|
+
var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
|
|
593
|
+
var __hasOwnProp$K = Object.prototype.hasOwnProperty;
|
|
594
|
+
var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
|
|
595
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
596
|
+
var __spreadValues$J = (a, b) => {
|
|
597
|
+
for (var prop in b || (b = {}))
|
|
598
|
+
if (__hasOwnProp$K.call(b, prop))
|
|
599
|
+
__defNormalProp$J(a, prop, b[prop]);
|
|
600
|
+
if (__getOwnPropSymbols$K)
|
|
601
|
+
for (var prop of __getOwnPropSymbols$K(b)) {
|
|
602
|
+
if (__propIsEnum$K.call(b, prop))
|
|
603
|
+
__defNormalProp$J(a, prop, b[prop]);
|
|
604
|
+
}
|
|
605
|
+
return a;
|
|
606
|
+
};
|
|
566
607
|
const BitPerSeconds = ({
|
|
567
608
|
rawValue,
|
|
568
609
|
decimals,
|
|
569
610
|
valueClassName,
|
|
570
|
-
unitClassName
|
|
611
|
+
unitClassName,
|
|
612
|
+
emptyProps
|
|
571
613
|
}) => {
|
|
572
614
|
if (isEmpty(rawValue)) {
|
|
573
|
-
return Empty;
|
|
615
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$J({}, emptyProps));
|
|
574
616
|
}
|
|
575
617
|
const { value, unit } = formatBitPerSecond(rawValue, decimals);
|
|
576
618
|
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}`));
|
|
577
619
|
};
|
|
578
620
|
|
|
579
|
-
|
|
621
|
+
var __defProp$I = Object.defineProperty;
|
|
622
|
+
var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
|
|
623
|
+
var __hasOwnProp$J = Object.prototype.hasOwnProperty;
|
|
624
|
+
var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
|
|
625
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
626
|
+
var __spreadValues$I = (a, b) => {
|
|
627
|
+
for (var prop in b || (b = {}))
|
|
628
|
+
if (__hasOwnProp$J.call(b, prop))
|
|
629
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
630
|
+
if (__getOwnPropSymbols$J)
|
|
631
|
+
for (var prop of __getOwnPropSymbols$J(b)) {
|
|
632
|
+
if (__propIsEnum$J.call(b, prop))
|
|
633
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
634
|
+
}
|
|
635
|
+
return a;
|
|
636
|
+
};
|
|
637
|
+
const Bps = ({
|
|
638
|
+
rawValue,
|
|
639
|
+
decimals,
|
|
640
|
+
valueClassName,
|
|
641
|
+
unitClassName,
|
|
642
|
+
emptyProps
|
|
643
|
+
}) => {
|
|
580
644
|
if (isEmpty(rawValue)) {
|
|
581
|
-
return Empty;
|
|
645
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$I({}, emptyProps));
|
|
582
646
|
}
|
|
583
647
|
const { value, unit } = formatBps(rawValue, decimals);
|
|
584
648
|
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}`));
|
|
@@ -719,28 +783,28 @@ const HoverableElement = (props) => {
|
|
|
719
783
|
return icon != null ? React__default.cloneElement(icon, { className }) : null;
|
|
720
784
|
};
|
|
721
785
|
|
|
722
|
-
var __defProp$
|
|
723
|
-
var __getOwnPropSymbols$
|
|
724
|
-
var __hasOwnProp$
|
|
725
|
-
var __propIsEnum$
|
|
726
|
-
var __defNormalProp$
|
|
786
|
+
var __defProp$H = Object.defineProperty;
|
|
787
|
+
var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
|
|
788
|
+
var __hasOwnProp$I = Object.prototype.hasOwnProperty;
|
|
789
|
+
var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
|
|
790
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, {
|
|
727
791
|
enumerable: true,
|
|
728
792
|
configurable: true,
|
|
729
793
|
writable: true,
|
|
730
794
|
value
|
|
731
795
|
}) : obj[key] = value;
|
|
732
|
-
var __spreadValues$
|
|
733
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
734
|
-
if (__getOwnPropSymbols$
|
|
735
|
-
if (__propIsEnum$
|
|
796
|
+
var __spreadValues$H = (a, b) => {
|
|
797
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$I.call(b, prop)) __defNormalProp$H(a, prop, b[prop]);
|
|
798
|
+
if (__getOwnPropSymbols$I) for (var prop of __getOwnPropSymbols$I(b)) {
|
|
799
|
+
if (__propIsEnum$I.call(b, prop)) __defNormalProp$H(a, prop, b[prop]);
|
|
736
800
|
}
|
|
737
801
|
return a;
|
|
738
802
|
};
|
|
739
803
|
var __objRest$o = (source, exclude) => {
|
|
740
804
|
var target = {};
|
|
741
|
-
for (var prop in source) if (__hasOwnProp$
|
|
742
|
-
if (source != null && __getOwnPropSymbols$
|
|
743
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
805
|
+
for (var prop in source) if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
806
|
+
if (source != null && __getOwnPropSymbols$I) for (var prop of __getOwnPropSymbols$I(source)) {
|
|
807
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$I.call(source, prop)) target[prop] = source[prop];
|
|
744
808
|
}
|
|
745
809
|
return target;
|
|
746
810
|
};
|
|
@@ -767,7 +831,7 @@ const Button = React__default.forwardRef((props, ref) => {
|
|
|
767
831
|
const [status, setStatus] = useState("normal");
|
|
768
832
|
const hasIcon = prefixIcon || suffixIcon;
|
|
769
833
|
const hasHoverIcon = hoverPrefixIcon || hoverSuffixIcon;
|
|
770
|
-
return /* @__PURE__ */React__default.createElement(Button$1, __spreadValues$
|
|
834
|
+
return /* @__PURE__ */React__default.createElement(Button$1, __spreadValues$H({
|
|
771
835
|
ref,
|
|
772
836
|
className: cs(className, ButtonStyle$1, type === "link" && NoPadding, (prefixIcon || suffixIcon) && "has-icon", size === "large" && Typo.Label.l1_regular_title, size === "middle" && Typo.Label.l2_regular_title, size === "small" && Typo.Label.l3_regular_title, type && `ant-btn-${type}`, !children && children !== 0 && restProps.icon && "ant-btn-icon-only"),
|
|
773
837
|
type: isAntdButtonTypes(type) ? type : void 0,
|
|
@@ -797,21 +861,21 @@ const Button = React__default.forwardRef((props, ref) => {
|
|
|
797
861
|
}));
|
|
798
862
|
});
|
|
799
863
|
|
|
800
|
-
var __defProp$
|
|
864
|
+
var __defProp$G = Object.defineProperty;
|
|
801
865
|
var __defProps$u = Object.defineProperties;
|
|
802
866
|
var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
|
|
803
|
-
var __getOwnPropSymbols$
|
|
804
|
-
var __hasOwnProp$
|
|
805
|
-
var __propIsEnum$
|
|
806
|
-
var __defNormalProp$
|
|
807
|
-
var __spreadValues$
|
|
867
|
+
var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
|
|
868
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
|
869
|
+
var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
|
|
870
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
871
|
+
var __spreadValues$G = (a, b) => {
|
|
808
872
|
for (var prop in b || (b = {}))
|
|
809
|
-
if (__hasOwnProp$
|
|
810
|
-
__defNormalProp$
|
|
811
|
-
if (__getOwnPropSymbols$
|
|
812
|
-
for (var prop of __getOwnPropSymbols$
|
|
813
|
-
if (__propIsEnum$
|
|
814
|
-
__defNormalProp$
|
|
873
|
+
if (__hasOwnProp$H.call(b, prop))
|
|
874
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
875
|
+
if (__getOwnPropSymbols$H)
|
|
876
|
+
for (var prop of __getOwnPropSymbols$H(b)) {
|
|
877
|
+
if (__propIsEnum$H.call(b, prop))
|
|
878
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
815
879
|
}
|
|
816
880
|
return a;
|
|
817
881
|
};
|
|
@@ -819,11 +883,11 @@ var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
|
|
|
819
883
|
var __objRest$n = (source, exclude) => {
|
|
820
884
|
var target = {};
|
|
821
885
|
for (var prop in source)
|
|
822
|
-
if (__hasOwnProp$
|
|
886
|
+
if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
823
887
|
target[prop] = source[prop];
|
|
824
|
-
if (source != null && __getOwnPropSymbols$
|
|
825
|
-
for (var prop of __getOwnPropSymbols$
|
|
826
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
888
|
+
if (source != null && __getOwnPropSymbols$H)
|
|
889
|
+
for (var prop of __getOwnPropSymbols$H(source)) {
|
|
890
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
|
|
827
891
|
target[prop] = source[prop];
|
|
828
892
|
}
|
|
829
893
|
return target;
|
|
@@ -877,10 +941,10 @@ const Tooltip = (props) => {
|
|
|
877
941
|
}, [followMouse, onmousemove, uniqueContainerClass]);
|
|
878
942
|
return /* @__PURE__ */ React__default.createElement(
|
|
879
943
|
Tooltip$1,
|
|
880
|
-
__spreadProps$u(__spreadValues$
|
|
944
|
+
__spreadProps$u(__spreadValues$G({}, restProps), {
|
|
881
945
|
overlayClassName: followMouse ? cs(overlayClassName, uniquePopupClass) : overlayClassName,
|
|
882
946
|
children: _children,
|
|
883
|
-
overlayStyle: followMouse ? __spreadValues$
|
|
947
|
+
overlayStyle: followMouse ? __spreadValues$G({
|
|
884
948
|
transform: "translate(-50%, -100%)",
|
|
885
949
|
pointerEvents: "none"
|
|
886
950
|
}, overlayStyle) : overlayStyle
|
|
@@ -888,28 +952,28 @@ const Tooltip = (props) => {
|
|
|
888
952
|
);
|
|
889
953
|
};
|
|
890
954
|
|
|
891
|
-
var __defProp$
|
|
892
|
-
var __getOwnPropSymbols$
|
|
893
|
-
var __hasOwnProp$
|
|
894
|
-
var __propIsEnum$
|
|
895
|
-
var __defNormalProp$
|
|
955
|
+
var __defProp$F = Object.defineProperty;
|
|
956
|
+
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
|
957
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
|
958
|
+
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
|
959
|
+
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, {
|
|
896
960
|
enumerable: true,
|
|
897
961
|
configurable: true,
|
|
898
962
|
writable: true,
|
|
899
963
|
value
|
|
900
964
|
}) : obj[key] = value;
|
|
901
|
-
var __spreadValues$
|
|
902
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
903
|
-
if (__getOwnPropSymbols$
|
|
904
|
-
if (__propIsEnum$
|
|
965
|
+
var __spreadValues$F = (a, b) => {
|
|
966
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$G.call(b, prop)) __defNormalProp$F(a, prop, b[prop]);
|
|
967
|
+
if (__getOwnPropSymbols$G) for (var prop of __getOwnPropSymbols$G(b)) {
|
|
968
|
+
if (__propIsEnum$G.call(b, prop)) __defNormalProp$F(a, prop, b[prop]);
|
|
905
969
|
}
|
|
906
970
|
return a;
|
|
907
971
|
};
|
|
908
972
|
var __objRest$m = (source, exclude) => {
|
|
909
973
|
var target = {};
|
|
910
|
-
for (var prop in source) if (__hasOwnProp$
|
|
911
|
-
if (source != null && __getOwnPropSymbols$
|
|
912
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
974
|
+
for (var prop in source) if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
975
|
+
if (source != null && __getOwnPropSymbols$G) for (var prop of __getOwnPropSymbols$G(source)) {
|
|
976
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop)) target[prop] = source[prop];
|
|
913
977
|
}
|
|
914
978
|
return target;
|
|
915
979
|
};
|
|
@@ -953,7 +1017,7 @@ const ButtonGroup = React__default.forwardRef((props, ref) => {
|
|
|
953
1017
|
style: {
|
|
954
1018
|
cursor: "not-allowed"
|
|
955
1019
|
}
|
|
956
|
-
}, /* @__PURE__ */React__default.createElement(Button, __spreadValues$
|
|
1020
|
+
}, /* @__PURE__ */React__default.createElement(Button, __spreadValues$F({
|
|
957
1021
|
style: {
|
|
958
1022
|
pointerEvents: "none"
|
|
959
1023
|
},
|
|
@@ -963,7 +1027,7 @@ const ButtonGroup = React__default.forwardRef((props, ref) => {
|
|
|
963
1027
|
ghost,
|
|
964
1028
|
className: cx(ButtonStyle, className2),
|
|
965
1029
|
prefixIcon: icon
|
|
966
|
-
}, buttonPropArgs))) : /* @__PURE__ */React__default.createElement(Button, __spreadValues$
|
|
1030
|
+
}, buttonPropArgs))) : /* @__PURE__ */React__default.createElement(Button, __spreadValues$F({
|
|
967
1031
|
type,
|
|
968
1032
|
size,
|
|
969
1033
|
danger,
|
|
@@ -972,7 +1036,7 @@ const ButtonGroup = React__default.forwardRef((props, ref) => {
|
|
|
972
1036
|
prefixIcon: icon
|
|
973
1037
|
}, buttonPropArgs)));
|
|
974
1038
|
}
|
|
975
|
-
return /* @__PURE__ */React__default.createElement(Button, __spreadValues$
|
|
1039
|
+
return /* @__PURE__ */React__default.createElement(Button, __spreadValues$F({
|
|
976
1040
|
key: key || index,
|
|
977
1041
|
type,
|
|
978
1042
|
size,
|
|
@@ -986,16 +1050,33 @@ const ButtonGroup = React__default.forwardRef((props, ref) => {
|
|
|
986
1050
|
}));
|
|
987
1051
|
});
|
|
988
1052
|
|
|
1053
|
+
var __defProp$E = Object.defineProperty;
|
|
1054
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
|
1055
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
|
1056
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
|
1057
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1058
|
+
var __spreadValues$E = (a, b) => {
|
|
1059
|
+
for (var prop in b || (b = {}))
|
|
1060
|
+
if (__hasOwnProp$F.call(b, prop))
|
|
1061
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
1062
|
+
if (__getOwnPropSymbols$F)
|
|
1063
|
+
for (var prop of __getOwnPropSymbols$F(b)) {
|
|
1064
|
+
if (__propIsEnum$F.call(b, prop))
|
|
1065
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
1066
|
+
}
|
|
1067
|
+
return a;
|
|
1068
|
+
};
|
|
989
1069
|
const Byte = ({
|
|
990
1070
|
rawValue,
|
|
991
1071
|
noUnitOnZero,
|
|
992
1072
|
decimals,
|
|
993
1073
|
valueClassName,
|
|
994
|
-
unitClassName
|
|
1074
|
+
unitClassName,
|
|
1075
|
+
emptyProps
|
|
995
1076
|
}) => {
|
|
996
1077
|
const { t } = useParrotTranslation();
|
|
997
1078
|
if (isEmpty(rawValue)) {
|
|
998
|
-
return Empty;
|
|
1079
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$E({}, emptyProps));
|
|
999
1080
|
}
|
|
1000
1081
|
if (rawValue === -1) {
|
|
1001
1082
|
return /* @__PURE__ */ React__default.createElement("span", null, t("common.calculation"));
|
|
@@ -1007,31 +1088,31 @@ const Byte = ({
|
|
|
1007
1088
|
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}`));
|
|
1008
1089
|
};
|
|
1009
1090
|
|
|
1010
|
-
var __defProp$
|
|
1091
|
+
var __defProp$D = Object.defineProperty;
|
|
1011
1092
|
var __defProps$t = Object.defineProperties;
|
|
1012
1093
|
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
|
1013
|
-
var __getOwnPropSymbols$
|
|
1014
|
-
var __hasOwnProp$
|
|
1015
|
-
var __propIsEnum$
|
|
1016
|
-
var __defNormalProp$
|
|
1094
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
|
1095
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
|
1096
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
|
1097
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, {
|
|
1017
1098
|
enumerable: true,
|
|
1018
1099
|
configurable: true,
|
|
1019
1100
|
writable: true,
|
|
1020
1101
|
value
|
|
1021
1102
|
}) : obj[key] = value;
|
|
1022
|
-
var __spreadValues$
|
|
1023
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1024
|
-
if (__getOwnPropSymbols$
|
|
1025
|
-
if (__propIsEnum$
|
|
1103
|
+
var __spreadValues$D = (a, b) => {
|
|
1104
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$E.call(b, prop)) __defNormalProp$D(a, prop, b[prop]);
|
|
1105
|
+
if (__getOwnPropSymbols$E) for (var prop of __getOwnPropSymbols$E(b)) {
|
|
1106
|
+
if (__propIsEnum$E.call(b, prop)) __defNormalProp$D(a, prop, b[prop]);
|
|
1026
1107
|
}
|
|
1027
1108
|
return a;
|
|
1028
1109
|
};
|
|
1029
1110
|
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
|
1030
1111
|
var __objRest$l = (source, exclude) => {
|
|
1031
1112
|
var target = {};
|
|
1032
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1033
|
-
if (source != null && __getOwnPropSymbols$
|
|
1034
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1113
|
+
for (var prop in source) if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1114
|
+
if (source != null && __getOwnPropSymbols$E) for (var prop of __getOwnPropSymbols$E(source)) {
|
|
1115
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop)) target[prop] = source[prop];
|
|
1035
1116
|
}
|
|
1036
1117
|
return target;
|
|
1037
1118
|
};
|
|
@@ -1045,7 +1126,7 @@ const Checkbox = _a => {
|
|
|
1045
1126
|
compact
|
|
1046
1127
|
} = _b,
|
|
1047
1128
|
props = __objRest$l(_b, ["className", "children", "description", "compact"]);
|
|
1048
|
-
return /* @__PURE__ */React__default.createElement(Checkbox$1, __spreadProps$t(__spreadValues$
|
|
1129
|
+
return /* @__PURE__ */React__default.createElement(Checkbox$1, __spreadProps$t(__spreadValues$D({}, props), {
|
|
1049
1130
|
"data-test": props["data-test"] || props.value,
|
|
1050
1131
|
className: cs(className, CheckboxStyle, compact && "compact")
|
|
1051
1132
|
}), children ? /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement("div", {
|
|
@@ -1055,30 +1136,30 @@ const Checkbox = _a => {
|
|
|
1055
1136
|
}, description) : null) : null);
|
|
1056
1137
|
};
|
|
1057
1138
|
|
|
1058
|
-
var __defProp$
|
|
1059
|
-
var __getOwnPropSymbols$
|
|
1060
|
-
var __hasOwnProp$
|
|
1061
|
-
var __propIsEnum$
|
|
1062
|
-
var __defNormalProp$
|
|
1063
|
-
var __spreadValues$
|
|
1139
|
+
var __defProp$C = Object.defineProperty;
|
|
1140
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
|
1141
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
|
1142
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
|
1143
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1144
|
+
var __spreadValues$C = (a, b) => {
|
|
1064
1145
|
for (var prop in b || (b = {}))
|
|
1065
|
-
if (__hasOwnProp$
|
|
1066
|
-
__defNormalProp$
|
|
1067
|
-
if (__getOwnPropSymbols$
|
|
1068
|
-
for (var prop of __getOwnPropSymbols$
|
|
1069
|
-
if (__propIsEnum$
|
|
1070
|
-
__defNormalProp$
|
|
1146
|
+
if (__hasOwnProp$D.call(b, prop))
|
|
1147
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
1148
|
+
if (__getOwnPropSymbols$D)
|
|
1149
|
+
for (var prop of __getOwnPropSymbols$D(b)) {
|
|
1150
|
+
if (__propIsEnum$D.call(b, prop))
|
|
1151
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
1071
1152
|
}
|
|
1072
1153
|
return a;
|
|
1073
1154
|
};
|
|
1074
1155
|
var __objRest$k = (source, exclude) => {
|
|
1075
1156
|
var target = {};
|
|
1076
1157
|
for (var prop in source)
|
|
1077
|
-
if (__hasOwnProp$
|
|
1158
|
+
if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1078
1159
|
target[prop] = source[prop];
|
|
1079
|
-
if (source != null && __getOwnPropSymbols$
|
|
1080
|
-
for (var prop of __getOwnPropSymbols$
|
|
1081
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1160
|
+
if (source != null && __getOwnPropSymbols$D)
|
|
1161
|
+
for (var prop of __getOwnPropSymbols$D(source)) {
|
|
1162
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
|
|
1082
1163
|
target[prop] = source[prop];
|
|
1083
1164
|
}
|
|
1084
1165
|
return target;
|
|
@@ -1087,7 +1168,7 @@ const FieldsBoolean = (_a) => {
|
|
|
1087
1168
|
var _b = _a, { input, children } = _b, props = __objRest$k(_b, ["input", "children"]);
|
|
1088
1169
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
1089
1170
|
Checkbox,
|
|
1090
|
-
__spreadValues$
|
|
1171
|
+
__spreadValues$C({
|
|
1091
1172
|
checked: Boolean(input.value),
|
|
1092
1173
|
onChange: (e) => input.onChange(e.target.checked)
|
|
1093
1174
|
}, props),
|
|
@@ -1112,17 +1193,17 @@ const FieldsDateTime = ({ input }) => /* @__PURE__ */ React__default.createEleme
|
|
|
1112
1193
|
}
|
|
1113
1194
|
));
|
|
1114
1195
|
|
|
1115
|
-
var __getOwnPropSymbols$
|
|
1116
|
-
var __hasOwnProp$
|
|
1117
|
-
var __propIsEnum$
|
|
1196
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
|
1197
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
|
1198
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
|
1118
1199
|
var __objRest$j = (source, exclude) => {
|
|
1119
1200
|
var target = {};
|
|
1120
1201
|
for (var prop in source)
|
|
1121
|
-
if (__hasOwnProp$
|
|
1202
|
+
if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1122
1203
|
target[prop] = source[prop];
|
|
1123
|
-
if (source != null && __getOwnPropSymbols$
|
|
1124
|
-
for (var prop of __getOwnPropSymbols$
|
|
1125
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1204
|
+
if (source != null && __getOwnPropSymbols$C)
|
|
1205
|
+
for (var prop of __getOwnPropSymbols$C(source)) {
|
|
1206
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
|
|
1126
1207
|
target[prop] = source[prop];
|
|
1127
1208
|
}
|
|
1128
1209
|
return target;
|
|
@@ -1167,53 +1248,53 @@ const FullView = /*#__PURE__*/styled('div')({
|
|
|
1167
1248
|
const InputStyle = "ipd9bk";
|
|
1168
1249
|
const KitInputStyle = "kypn5o5";
|
|
1169
1250
|
|
|
1170
|
-
var __defProp$
|
|
1171
|
-
var __getOwnPropSymbols$
|
|
1172
|
-
var __hasOwnProp$
|
|
1173
|
-
var __propIsEnum$
|
|
1174
|
-
var __defNormalProp$
|
|
1175
|
-
var __spreadValues$
|
|
1251
|
+
var __defProp$B = Object.defineProperty;
|
|
1252
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
|
1253
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
|
1254
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
|
1255
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1256
|
+
var __spreadValues$B = (a, b) => {
|
|
1176
1257
|
for (var prop in b || (b = {}))
|
|
1177
|
-
if (__hasOwnProp$
|
|
1178
|
-
__defNormalProp$
|
|
1179
|
-
if (__getOwnPropSymbols$
|
|
1180
|
-
for (var prop of __getOwnPropSymbols$
|
|
1181
|
-
if (__propIsEnum$
|
|
1182
|
-
__defNormalProp$
|
|
1258
|
+
if (__hasOwnProp$B.call(b, prop))
|
|
1259
|
+
__defNormalProp$B(a, prop, b[prop]);
|
|
1260
|
+
if (__getOwnPropSymbols$B)
|
|
1261
|
+
for (var prop of __getOwnPropSymbols$B(b)) {
|
|
1262
|
+
if (__propIsEnum$B.call(b, prop))
|
|
1263
|
+
__defNormalProp$B(a, prop, b[prop]);
|
|
1183
1264
|
}
|
|
1184
1265
|
return a;
|
|
1185
1266
|
};
|
|
1186
1267
|
const Loading = ({ fullView = true }) => {
|
|
1187
1268
|
const Wrapper = fullView ? FullView : Fragment;
|
|
1188
1269
|
const props = fullView ? { className: "loading-full-view" } : {};
|
|
1189
|
-
return /* @__PURE__ */ React__default.createElement(Wrapper, __spreadValues$
|
|
1270
|
+
return /* @__PURE__ */ React__default.createElement(Wrapper, __spreadValues$B({}, props), /* @__PURE__ */ React__default.createElement("div", { className: "loading" }, /* @__PURE__ */ React__default.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React__default.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React__default.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React__default.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React__default.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React__default.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React__default.createElement("div", { className: "loading__sugar" })));
|
|
1190
1271
|
};
|
|
1191
1272
|
|
|
1192
|
-
var __defProp$
|
|
1273
|
+
var __defProp$A = Object.defineProperty;
|
|
1193
1274
|
var __defProps$s = Object.defineProperties;
|
|
1194
1275
|
var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
|
|
1195
|
-
var __getOwnPropSymbols$
|
|
1196
|
-
var __hasOwnProp$
|
|
1197
|
-
var __propIsEnum$
|
|
1198
|
-
var __defNormalProp$
|
|
1276
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
|
1277
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
|
1278
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
|
1279
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, {
|
|
1199
1280
|
enumerable: true,
|
|
1200
1281
|
configurable: true,
|
|
1201
1282
|
writable: true,
|
|
1202
1283
|
value
|
|
1203
1284
|
}) : obj[key] = value;
|
|
1204
|
-
var __spreadValues$
|
|
1205
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1206
|
-
if (__getOwnPropSymbols$
|
|
1207
|
-
if (__propIsEnum$
|
|
1285
|
+
var __spreadValues$A = (a, b) => {
|
|
1286
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$A.call(b, prop)) __defNormalProp$A(a, prop, b[prop]);
|
|
1287
|
+
if (__getOwnPropSymbols$A) for (var prop of __getOwnPropSymbols$A(b)) {
|
|
1288
|
+
if (__propIsEnum$A.call(b, prop)) __defNormalProp$A(a, prop, b[prop]);
|
|
1208
1289
|
}
|
|
1209
1290
|
return a;
|
|
1210
1291
|
};
|
|
1211
1292
|
var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
|
|
1212
1293
|
var __objRest$i = (source, exclude) => {
|
|
1213
1294
|
var target = {};
|
|
1214
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1215
|
-
if (source != null && __getOwnPropSymbols$
|
|
1216
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1295
|
+
for (var prop in source) if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1296
|
+
if (source != null && __getOwnPropSymbols$A) for (var prop of __getOwnPropSymbols$A(source)) {
|
|
1297
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop)) target[prop] = source[prop];
|
|
1217
1298
|
}
|
|
1218
1299
|
return target;
|
|
1219
1300
|
};
|
|
@@ -1267,7 +1348,7 @@ const Select = _a => {
|
|
|
1267
1348
|
inputDom && (placeholder || item) && inputDom.setAttribute("data-test", String(placeholder || item.textContent));
|
|
1268
1349
|
}
|
|
1269
1350
|
}, [selectRef, placeholder]);
|
|
1270
|
-
return /* @__PURE__ */React__default.createElement(Select$1, __spreadValues$
|
|
1351
|
+
return /* @__PURE__ */React__default.createElement(Select$1, __spreadValues$A(__spreadProps$s(__spreadValues$A({}, input), {
|
|
1271
1352
|
ref: selectRef,
|
|
1272
1353
|
size,
|
|
1273
1354
|
value: multiple ? input.value || [] : input.value || void 0,
|
|
@@ -1307,38 +1388,38 @@ const Select = _a => {
|
|
|
1307
1388
|
loading,
|
|
1308
1389
|
placeholder
|
|
1309
1390
|
}), restProps), React__default.Children.map(children, child => {
|
|
1310
|
-
return isElement(child) ? __spreadProps$s(__spreadValues$
|
|
1311
|
-
props: __spreadProps$s(__spreadValues$
|
|
1391
|
+
return isElement(child) ? __spreadProps$s(__spreadValues$A({}, child), {
|
|
1392
|
+
props: __spreadProps$s(__spreadValues$A({}, child.props), {
|
|
1312
1393
|
"data-test": child.props.value
|
|
1313
1394
|
})
|
|
1314
1395
|
}) : child;
|
|
1315
1396
|
}));
|
|
1316
1397
|
};
|
|
1317
1398
|
|
|
1318
|
-
var __defProp$
|
|
1319
|
-
var __getOwnPropSymbols$
|
|
1320
|
-
var __hasOwnProp$
|
|
1321
|
-
var __propIsEnum$
|
|
1322
|
-
var __defNormalProp$
|
|
1323
|
-
var __spreadValues$
|
|
1399
|
+
var __defProp$z = Object.defineProperty;
|
|
1400
|
+
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
|
1401
|
+
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
|
1402
|
+
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
|
1403
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1404
|
+
var __spreadValues$z = (a, b) => {
|
|
1324
1405
|
for (var prop in b || (b = {}))
|
|
1325
|
-
if (__hasOwnProp$
|
|
1326
|
-
__defNormalProp$
|
|
1327
|
-
if (__getOwnPropSymbols$
|
|
1328
|
-
for (var prop of __getOwnPropSymbols$
|
|
1329
|
-
if (__propIsEnum$
|
|
1330
|
-
__defNormalProp$
|
|
1406
|
+
if (__hasOwnProp$z.call(b, prop))
|
|
1407
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
1408
|
+
if (__getOwnPropSymbols$z)
|
|
1409
|
+
for (var prop of __getOwnPropSymbols$z(b)) {
|
|
1410
|
+
if (__propIsEnum$z.call(b, prop))
|
|
1411
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
1331
1412
|
}
|
|
1332
1413
|
return a;
|
|
1333
1414
|
};
|
|
1334
1415
|
var __objRest$h = (source, exclude) => {
|
|
1335
1416
|
var target = {};
|
|
1336
1417
|
for (var prop in source)
|
|
1337
|
-
if (__hasOwnProp$
|
|
1418
|
+
if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1338
1419
|
target[prop] = source[prop];
|
|
1339
|
-
if (source != null && __getOwnPropSymbols$
|
|
1340
|
-
for (var prop of __getOwnPropSymbols$
|
|
1341
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1420
|
+
if (source != null && __getOwnPropSymbols$z)
|
|
1421
|
+
for (var prop of __getOwnPropSymbols$z(source)) {
|
|
1422
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
|
|
1342
1423
|
target[prop] = source[prop];
|
|
1343
1424
|
}
|
|
1344
1425
|
return target;
|
|
@@ -1353,7 +1434,7 @@ const FieldsEnum = (_a) => {
|
|
|
1353
1434
|
"enumValues",
|
|
1354
1435
|
"emptyLabel"
|
|
1355
1436
|
]);
|
|
1356
|
-
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Select, __spreadValues$
|
|
1437
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Select, __spreadValues$z({}, restProps), emptyLabel && /* @__PURE__ */ React__default.createElement(Select$1.Option, { value: "" }, emptyLabel), enumValues.map((v) => {
|
|
1357
1438
|
const item = typeof v === "string" ? { value: v, text: v } : v;
|
|
1358
1439
|
return /* @__PURE__ */ React__default.createElement(
|
|
1359
1440
|
Select$1.Option,
|
|
@@ -1367,31 +1448,31 @@ const FieldsEnum = (_a) => {
|
|
|
1367
1448
|
})));
|
|
1368
1449
|
};
|
|
1369
1450
|
|
|
1370
|
-
var __defProp$
|
|
1451
|
+
var __defProp$y = Object.defineProperty;
|
|
1371
1452
|
var __defProps$r = Object.defineProperties;
|
|
1372
1453
|
var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
|
|
1373
|
-
var __getOwnPropSymbols$
|
|
1374
|
-
var __hasOwnProp$
|
|
1375
|
-
var __propIsEnum$
|
|
1376
|
-
var __defNormalProp$
|
|
1454
|
+
var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
|
|
1455
|
+
var __hasOwnProp$y = Object.prototype.hasOwnProperty;
|
|
1456
|
+
var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
|
|
1457
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, {
|
|
1377
1458
|
enumerable: true,
|
|
1378
1459
|
configurable: true,
|
|
1379
1460
|
writable: true,
|
|
1380
1461
|
value
|
|
1381
1462
|
}) : obj[key] = value;
|
|
1382
|
-
var __spreadValues$
|
|
1383
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1384
|
-
if (__getOwnPropSymbols$
|
|
1385
|
-
if (__propIsEnum$
|
|
1463
|
+
var __spreadValues$y = (a, b) => {
|
|
1464
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$y.call(b, prop)) __defNormalProp$y(a, prop, b[prop]);
|
|
1465
|
+
if (__getOwnPropSymbols$y) for (var prop of __getOwnPropSymbols$y(b)) {
|
|
1466
|
+
if (__propIsEnum$y.call(b, prop)) __defNormalProp$y(a, prop, b[prop]);
|
|
1386
1467
|
}
|
|
1387
1468
|
return a;
|
|
1388
1469
|
};
|
|
1389
1470
|
var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
|
|
1390
1471
|
var __objRest$g = (source, exclude) => {
|
|
1391
1472
|
var target = {};
|
|
1392
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1393
|
-
if (source != null && __getOwnPropSymbols$
|
|
1394
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1473
|
+
for (var prop in source) if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1474
|
+
if (source != null && __getOwnPropSymbols$y) for (var prop of __getOwnPropSymbols$y(source)) {
|
|
1475
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop)) target[prop] = source[prop];
|
|
1395
1476
|
}
|
|
1396
1477
|
return target;
|
|
1397
1478
|
};
|
|
@@ -1433,7 +1514,7 @@ const InputNumber = _a => {
|
|
|
1433
1514
|
middle: Typo.Label.l3_regular,
|
|
1434
1515
|
small: Typo.Label.l4_regular
|
|
1435
1516
|
}[size];
|
|
1436
|
-
return /* @__PURE__ */React__default.createElement(AntdInputNumberStyled, __spreadProps$r(__spreadValues$
|
|
1517
|
+
return /* @__PURE__ */React__default.createElement(AntdInputNumberStyled, __spreadProps$r(__spreadValues$y({}, props), {
|
|
1437
1518
|
size,
|
|
1438
1519
|
controls,
|
|
1439
1520
|
"data-test": props.name,
|
|
@@ -1443,21 +1524,21 @@ const InputNumber = _a => {
|
|
|
1443
1524
|
}));
|
|
1444
1525
|
};
|
|
1445
1526
|
|
|
1446
|
-
var __defProp$
|
|
1527
|
+
var __defProp$x = Object.defineProperty;
|
|
1447
1528
|
var __defProps$q = Object.defineProperties;
|
|
1448
1529
|
var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
|
|
1449
|
-
var __getOwnPropSymbols$
|
|
1450
|
-
var __hasOwnProp$
|
|
1451
|
-
var __propIsEnum$
|
|
1452
|
-
var __defNormalProp$
|
|
1453
|
-
var __spreadValues$
|
|
1530
|
+
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
|
1531
|
+
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
|
1532
|
+
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
|
1533
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1534
|
+
var __spreadValues$x = (a, b) => {
|
|
1454
1535
|
for (var prop in b || (b = {}))
|
|
1455
|
-
if (__hasOwnProp$
|
|
1456
|
-
__defNormalProp$
|
|
1457
|
-
if (__getOwnPropSymbols$
|
|
1458
|
-
for (var prop of __getOwnPropSymbols$
|
|
1459
|
-
if (__propIsEnum$
|
|
1460
|
-
__defNormalProp$
|
|
1536
|
+
if (__hasOwnProp$x.call(b, prop))
|
|
1537
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
1538
|
+
if (__getOwnPropSymbols$x)
|
|
1539
|
+
for (var prop of __getOwnPropSymbols$x(b)) {
|
|
1540
|
+
if (__propIsEnum$x.call(b, prop))
|
|
1541
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
1461
1542
|
}
|
|
1462
1543
|
return a;
|
|
1463
1544
|
};
|
|
@@ -1465,11 +1546,11 @@ var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
|
|
|
1465
1546
|
var __objRest$f = (source, exclude) => {
|
|
1466
1547
|
var target = {};
|
|
1467
1548
|
for (var prop in source)
|
|
1468
|
-
if (__hasOwnProp$
|
|
1549
|
+
if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1469
1550
|
target[prop] = source[prop];
|
|
1470
|
-
if (source != null && __getOwnPropSymbols$
|
|
1471
|
-
for (var prop of __getOwnPropSymbols$
|
|
1472
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1551
|
+
if (source != null && __getOwnPropSymbols$x)
|
|
1552
|
+
for (var prop of __getOwnPropSymbols$x(source)) {
|
|
1553
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
|
|
1473
1554
|
target[prop] = source[prop];
|
|
1474
1555
|
}
|
|
1475
1556
|
return target;
|
|
@@ -1488,7 +1569,7 @@ const FieldsFloat = (_a) => {
|
|
|
1488
1569
|
]);
|
|
1489
1570
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
1490
1571
|
InputNumber,
|
|
1491
|
-
__spreadValues$
|
|
1572
|
+
__spreadValues$x(__spreadProps$q(__spreadValues$x({}, input), {
|
|
1492
1573
|
onBlur: (e) => onBlur ? onBlur(input, e) : input.onBlur(e),
|
|
1493
1574
|
autoComplete,
|
|
1494
1575
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
@@ -1496,21 +1577,21 @@ const FieldsFloat = (_a) => {
|
|
|
1496
1577
|
));
|
|
1497
1578
|
};
|
|
1498
1579
|
|
|
1499
|
-
var __defProp$
|
|
1580
|
+
var __defProp$w = Object.defineProperty;
|
|
1500
1581
|
var __defProps$p = Object.defineProperties;
|
|
1501
1582
|
var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
|
|
1502
|
-
var __getOwnPropSymbols$
|
|
1503
|
-
var __hasOwnProp$
|
|
1504
|
-
var __propIsEnum$
|
|
1505
|
-
var __defNormalProp$
|
|
1506
|
-
var __spreadValues$
|
|
1583
|
+
var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
|
|
1584
|
+
var __hasOwnProp$w = Object.prototype.hasOwnProperty;
|
|
1585
|
+
var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
|
|
1586
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1587
|
+
var __spreadValues$w = (a, b) => {
|
|
1507
1588
|
for (var prop in b || (b = {}))
|
|
1508
|
-
if (__hasOwnProp$
|
|
1509
|
-
__defNormalProp$
|
|
1510
|
-
if (__getOwnPropSymbols$
|
|
1511
|
-
for (var prop of __getOwnPropSymbols$
|
|
1512
|
-
if (__propIsEnum$
|
|
1513
|
-
__defNormalProp$
|
|
1589
|
+
if (__hasOwnProp$w.call(b, prop))
|
|
1590
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
1591
|
+
if (__getOwnPropSymbols$w)
|
|
1592
|
+
for (var prop of __getOwnPropSymbols$w(b)) {
|
|
1593
|
+
if (__propIsEnum$w.call(b, prop))
|
|
1594
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
1514
1595
|
}
|
|
1515
1596
|
return a;
|
|
1516
1597
|
};
|
|
@@ -1518,11 +1599,11 @@ var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
|
|
|
1518
1599
|
var __objRest$e = (source, exclude) => {
|
|
1519
1600
|
var target = {};
|
|
1520
1601
|
for (var prop in source)
|
|
1521
|
-
if (__hasOwnProp$
|
|
1602
|
+
if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1522
1603
|
target[prop] = source[prop];
|
|
1523
|
-
if (source != null && __getOwnPropSymbols$
|
|
1524
|
-
for (var prop of __getOwnPropSymbols$
|
|
1525
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1604
|
+
if (source != null && __getOwnPropSymbols$w)
|
|
1605
|
+
for (var prop of __getOwnPropSymbols$w(source)) {
|
|
1606
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$w.call(source, prop))
|
|
1526
1607
|
target[prop] = source[prop];
|
|
1527
1608
|
}
|
|
1528
1609
|
return target;
|
|
@@ -1544,7 +1625,7 @@ const Input = (_a) => {
|
|
|
1544
1625
|
}[size];
|
|
1545
1626
|
return /* @__PURE__ */ React__default.createElement(
|
|
1546
1627
|
Input$1,
|
|
1547
|
-
__spreadProps$p(__spreadValues$
|
|
1628
|
+
__spreadProps$p(__spreadValues$w({}, props), {
|
|
1548
1629
|
size,
|
|
1549
1630
|
"data-test": props.name,
|
|
1550
1631
|
className: cs(className, InputStyle, typo, error ? "error" : "")
|
|
@@ -1552,21 +1633,21 @@ const Input = (_a) => {
|
|
|
1552
1633
|
);
|
|
1553
1634
|
};
|
|
1554
1635
|
|
|
1555
|
-
var __defProp$
|
|
1636
|
+
var __defProp$v = Object.defineProperty;
|
|
1556
1637
|
var __defProps$o = Object.defineProperties;
|
|
1557
1638
|
var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
|
|
1558
|
-
var __getOwnPropSymbols$
|
|
1559
|
-
var __hasOwnProp$
|
|
1560
|
-
var __propIsEnum$
|
|
1561
|
-
var __defNormalProp$
|
|
1562
|
-
var __spreadValues$
|
|
1639
|
+
var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
|
|
1640
|
+
var __hasOwnProp$v = Object.prototype.hasOwnProperty;
|
|
1641
|
+
var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
|
|
1642
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1643
|
+
var __spreadValues$v = (a, b) => {
|
|
1563
1644
|
for (var prop in b || (b = {}))
|
|
1564
|
-
if (__hasOwnProp$
|
|
1565
|
-
__defNormalProp$
|
|
1566
|
-
if (__getOwnPropSymbols$
|
|
1567
|
-
for (var prop of __getOwnPropSymbols$
|
|
1568
|
-
if (__propIsEnum$
|
|
1569
|
-
__defNormalProp$
|
|
1645
|
+
if (__hasOwnProp$v.call(b, prop))
|
|
1646
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
1647
|
+
if (__getOwnPropSymbols$v)
|
|
1648
|
+
for (var prop of __getOwnPropSymbols$v(b)) {
|
|
1649
|
+
if (__propIsEnum$v.call(b, prop))
|
|
1650
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
1570
1651
|
}
|
|
1571
1652
|
return a;
|
|
1572
1653
|
};
|
|
@@ -1574,11 +1655,11 @@ var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
|
|
|
1574
1655
|
var __objRest$d = (source, exclude) => {
|
|
1575
1656
|
var target = {};
|
|
1576
1657
|
for (var prop in source)
|
|
1577
|
-
if (__hasOwnProp$
|
|
1658
|
+
if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1578
1659
|
target[prop] = source[prop];
|
|
1579
|
-
if (source != null && __getOwnPropSymbols$
|
|
1580
|
-
for (var prop of __getOwnPropSymbols$
|
|
1581
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1660
|
+
if (source != null && __getOwnPropSymbols$v)
|
|
1661
|
+
for (var prop of __getOwnPropSymbols$v(source)) {
|
|
1662
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$v.call(source, prop))
|
|
1582
1663
|
target[prop] = source[prop];
|
|
1583
1664
|
}
|
|
1584
1665
|
return target;
|
|
@@ -1599,7 +1680,7 @@ const FieldsInt = (_a) => {
|
|
|
1599
1680
|
]);
|
|
1600
1681
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
1601
1682
|
Input,
|
|
1602
|
-
__spreadValues$
|
|
1683
|
+
__spreadValues$v(__spreadProps$o(__spreadValues$v({}, input), {
|
|
1603
1684
|
onChange: (e) => {
|
|
1604
1685
|
const value = e.currentTarget.value;
|
|
1605
1686
|
if (supportNegativeValue) {
|
|
@@ -1634,31 +1715,31 @@ const formatterInteger = (value) => {
|
|
|
1634
1715
|
}
|
|
1635
1716
|
};
|
|
1636
1717
|
|
|
1637
|
-
var __defProp$
|
|
1718
|
+
var __defProp$u = Object.defineProperty;
|
|
1638
1719
|
var __defProps$n = Object.defineProperties;
|
|
1639
1720
|
var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
|
|
1640
|
-
var __getOwnPropSymbols$
|
|
1641
|
-
var __hasOwnProp$
|
|
1642
|
-
var __propIsEnum$
|
|
1643
|
-
var __defNormalProp$
|
|
1721
|
+
var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
|
|
1722
|
+
var __hasOwnProp$u = Object.prototype.hasOwnProperty;
|
|
1723
|
+
var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
|
|
1724
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, {
|
|
1644
1725
|
enumerable: true,
|
|
1645
1726
|
configurable: true,
|
|
1646
1727
|
writable: true,
|
|
1647
1728
|
value
|
|
1648
1729
|
}) : obj[key] = value;
|
|
1649
|
-
var __spreadValues$
|
|
1650
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1651
|
-
if (__getOwnPropSymbols$
|
|
1652
|
-
if (__propIsEnum$
|
|
1730
|
+
var __spreadValues$u = (a, b) => {
|
|
1731
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$u.call(b, prop)) __defNormalProp$u(a, prop, b[prop]);
|
|
1732
|
+
if (__getOwnPropSymbols$u) for (var prop of __getOwnPropSymbols$u(b)) {
|
|
1733
|
+
if (__propIsEnum$u.call(b, prop)) __defNormalProp$u(a, prop, b[prop]);
|
|
1653
1734
|
}
|
|
1654
1735
|
return a;
|
|
1655
1736
|
};
|
|
1656
1737
|
var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
|
|
1657
1738
|
var __objRest$c = (source, exclude) => {
|
|
1658
1739
|
var target = {};
|
|
1659
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1660
|
-
if (source != null && __getOwnPropSymbols$
|
|
1661
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1740
|
+
for (var prop in source) if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1741
|
+
if (source != null && __getOwnPropSymbols$u) for (var prop of __getOwnPropSymbols$u(source)) {
|
|
1742
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop)) target[prop] = source[prop];
|
|
1662
1743
|
}
|
|
1663
1744
|
return target;
|
|
1664
1745
|
};
|
|
@@ -1702,7 +1783,7 @@ const InputInteger = _a => {
|
|
|
1702
1783
|
middle: Typo.Label.l3_regular,
|
|
1703
1784
|
small: Typo.Label.l4_regular
|
|
1704
1785
|
}[size];
|
|
1705
|
-
return /* @__PURE__ */React__default.createElement(AntdIntStyled, __spreadProps$n(__spreadValues$
|
|
1786
|
+
return /* @__PURE__ */React__default.createElement(AntdIntStyled, __spreadProps$n(__spreadValues$u({}, props), {
|
|
1706
1787
|
size,
|
|
1707
1788
|
formatter: formatterInteger,
|
|
1708
1789
|
parser: formatterInteger,
|
|
@@ -1716,21 +1797,21 @@ const InputInteger = _a => {
|
|
|
1716
1797
|
}));
|
|
1717
1798
|
};
|
|
1718
1799
|
|
|
1719
|
-
var __defProp$
|
|
1800
|
+
var __defProp$t = Object.defineProperty;
|
|
1720
1801
|
var __defProps$m = Object.defineProperties;
|
|
1721
1802
|
var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
|
|
1722
|
-
var __getOwnPropSymbols$
|
|
1723
|
-
var __hasOwnProp$
|
|
1724
|
-
var __propIsEnum$
|
|
1725
|
-
var __defNormalProp$
|
|
1726
|
-
var __spreadValues$
|
|
1803
|
+
var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
|
|
1804
|
+
var __hasOwnProp$t = Object.prototype.hasOwnProperty;
|
|
1805
|
+
var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
|
|
1806
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1807
|
+
var __spreadValues$t = (a, b) => {
|
|
1727
1808
|
for (var prop in b || (b = {}))
|
|
1728
|
-
if (__hasOwnProp$
|
|
1729
|
-
__defNormalProp$
|
|
1730
|
-
if (__getOwnPropSymbols$
|
|
1731
|
-
for (var prop of __getOwnPropSymbols$
|
|
1732
|
-
if (__propIsEnum$
|
|
1733
|
-
__defNormalProp$
|
|
1809
|
+
if (__hasOwnProp$t.call(b, prop))
|
|
1810
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
1811
|
+
if (__getOwnPropSymbols$t)
|
|
1812
|
+
for (var prop of __getOwnPropSymbols$t(b)) {
|
|
1813
|
+
if (__propIsEnum$t.call(b, prop))
|
|
1814
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
1734
1815
|
}
|
|
1735
1816
|
return a;
|
|
1736
1817
|
};
|
|
@@ -1738,11 +1819,11 @@ var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
|
|
|
1738
1819
|
var __objRest$b = (source, exclude) => {
|
|
1739
1820
|
var target = {};
|
|
1740
1821
|
for (var prop in source)
|
|
1741
|
-
if (__hasOwnProp$
|
|
1822
|
+
if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1742
1823
|
target[prop] = source[prop];
|
|
1743
|
-
if (source != null && __getOwnPropSymbols$
|
|
1744
|
-
for (var prop of __getOwnPropSymbols$
|
|
1745
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1824
|
+
if (source != null && __getOwnPropSymbols$t)
|
|
1825
|
+
for (var prop of __getOwnPropSymbols$t(source)) {
|
|
1826
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$t.call(source, prop))
|
|
1746
1827
|
target[prop] = source[prop];
|
|
1747
1828
|
}
|
|
1748
1829
|
return target;
|
|
@@ -1759,7 +1840,7 @@ const FieldsInteger = (_a) => {
|
|
|
1759
1840
|
]);
|
|
1760
1841
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
1761
1842
|
InputInteger,
|
|
1762
|
-
__spreadProps$m(__spreadValues$
|
|
1843
|
+
__spreadProps$m(__spreadValues$t(__spreadValues$t({}, props), input), {
|
|
1763
1844
|
onBlur: (e) => onBlur ? onBlur(input, e) : input.onBlur(e),
|
|
1764
1845
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
1765
1846
|
})
|
|
@@ -1923,21 +2004,21 @@ const Overflow = props => {
|
|
|
1923
2004
|
}, children), showOverflow && /* @__PURE__ */React__default.createElement("span", null, overflow));
|
|
1924
2005
|
};
|
|
1925
2006
|
|
|
1926
|
-
var __defProp$
|
|
2007
|
+
var __defProp$s = Object.defineProperty;
|
|
1927
2008
|
var __defProps$l = Object.defineProperties;
|
|
1928
2009
|
var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
|
|
1929
|
-
var __getOwnPropSymbols$
|
|
1930
|
-
var __hasOwnProp$
|
|
1931
|
-
var __propIsEnum$
|
|
1932
|
-
var __defNormalProp$
|
|
1933
|
-
var __spreadValues$
|
|
2010
|
+
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
|
2011
|
+
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
|
2012
|
+
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
|
2013
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2014
|
+
var __spreadValues$s = (a, b) => {
|
|
1934
2015
|
for (var prop in b || (b = {}))
|
|
1935
|
-
if (__hasOwnProp$
|
|
1936
|
-
__defNormalProp$
|
|
1937
|
-
if (__getOwnPropSymbols$
|
|
1938
|
-
for (var prop of __getOwnPropSymbols$
|
|
1939
|
-
if (__propIsEnum$
|
|
1940
|
-
__defNormalProp$
|
|
2016
|
+
if (__hasOwnProp$s.call(b, prop))
|
|
2017
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
2018
|
+
if (__getOwnPropSymbols$s)
|
|
2019
|
+
for (var prop of __getOwnPropSymbols$s(b)) {
|
|
2020
|
+
if (__propIsEnum$s.call(b, prop))
|
|
2021
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
1941
2022
|
}
|
|
1942
2023
|
return a;
|
|
1943
2024
|
};
|
|
@@ -1945,11 +2026,11 @@ var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
|
|
|
1945
2026
|
var __objRest$a = (source, exclude) => {
|
|
1946
2027
|
var target = {};
|
|
1947
2028
|
for (var prop in source)
|
|
1948
|
-
if (__hasOwnProp$
|
|
2029
|
+
if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1949
2030
|
target[prop] = source[prop];
|
|
1950
|
-
if (source != null && __getOwnPropSymbols$
|
|
1951
|
-
for (var prop of __getOwnPropSymbols$
|
|
1952
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2031
|
+
if (source != null && __getOwnPropSymbols$s)
|
|
2032
|
+
for (var prop of __getOwnPropSymbols$s(source)) {
|
|
2033
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop))
|
|
1953
2034
|
target[prop] = source[prop];
|
|
1954
2035
|
}
|
|
1955
2036
|
return target;
|
|
@@ -2000,7 +2081,7 @@ const FieldsString = (_a) => {
|
|
|
2000
2081
|
}
|
|
2001
2082
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
2002
2083
|
Input,
|
|
2003
|
-
__spreadProps$l(__spreadValues$
|
|
2084
|
+
__spreadProps$l(__spreadValues$s(__spreadProps$l(__spreadValues$s({
|
|
2004
2085
|
className: cs(
|
|
2005
2086
|
className,
|
|
2006
2087
|
KitInputStyle,
|
|
@@ -2025,21 +2106,21 @@ const FieldsString = (_a) => {
|
|
|
2025
2106
|
));
|
|
2026
2107
|
};
|
|
2027
2108
|
|
|
2028
|
-
var __defProp$
|
|
2109
|
+
var __defProp$r = Object.defineProperty;
|
|
2029
2110
|
var __defProps$k = Object.defineProperties;
|
|
2030
2111
|
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
|
2031
|
-
var __getOwnPropSymbols$
|
|
2032
|
-
var __hasOwnProp$
|
|
2033
|
-
var __propIsEnum$
|
|
2034
|
-
var __defNormalProp$
|
|
2035
|
-
var __spreadValues$
|
|
2112
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
|
2113
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
|
2114
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
|
2115
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2116
|
+
var __spreadValues$r = (a, b) => {
|
|
2036
2117
|
for (var prop in b || (b = {}))
|
|
2037
|
-
if (__hasOwnProp$
|
|
2038
|
-
__defNormalProp$
|
|
2039
|
-
if (__getOwnPropSymbols$
|
|
2040
|
-
for (var prop of __getOwnPropSymbols$
|
|
2041
|
-
if (__propIsEnum$
|
|
2042
|
-
__defNormalProp$
|
|
2118
|
+
if (__hasOwnProp$r.call(b, prop))
|
|
2119
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
2120
|
+
if (__getOwnPropSymbols$r)
|
|
2121
|
+
for (var prop of __getOwnPropSymbols$r(b)) {
|
|
2122
|
+
if (__propIsEnum$r.call(b, prop))
|
|
2123
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
2043
2124
|
}
|
|
2044
2125
|
return a;
|
|
2045
2126
|
};
|
|
@@ -2047,11 +2128,11 @@ var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
|
|
|
2047
2128
|
var __objRest$9 = (source, exclude) => {
|
|
2048
2129
|
var target = {};
|
|
2049
2130
|
for (var prop in source)
|
|
2050
|
-
if (__hasOwnProp$
|
|
2131
|
+
if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2051
2132
|
target[prop] = source[prop];
|
|
2052
|
-
if (source != null && __getOwnPropSymbols$
|
|
2053
|
-
for (var prop of __getOwnPropSymbols$
|
|
2054
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2133
|
+
if (source != null && __getOwnPropSymbols$r)
|
|
2134
|
+
for (var prop of __getOwnPropSymbols$r(source)) {
|
|
2135
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
|
|
2055
2136
|
target[prop] = source[prop];
|
|
2056
2137
|
}
|
|
2057
2138
|
return target;
|
|
@@ -2073,7 +2154,7 @@ const TextArea = (_a) => {
|
|
|
2073
2154
|
}[size];
|
|
2074
2155
|
return /* @__PURE__ */ React__default.createElement(
|
|
2075
2156
|
Input$1.TextArea,
|
|
2076
|
-
__spreadProps$k(__spreadValues$
|
|
2157
|
+
__spreadProps$k(__spreadValues$r({}, props), {
|
|
2077
2158
|
className: cs(
|
|
2078
2159
|
className,
|
|
2079
2160
|
InputStyle,
|
|
@@ -2087,21 +2168,21 @@ const TextArea = (_a) => {
|
|
|
2087
2168
|
);
|
|
2088
2169
|
};
|
|
2089
2170
|
|
|
2090
|
-
var __defProp$
|
|
2171
|
+
var __defProp$q = Object.defineProperty;
|
|
2091
2172
|
var __defProps$j = Object.defineProperties;
|
|
2092
2173
|
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
2093
|
-
var __getOwnPropSymbols$
|
|
2094
|
-
var __hasOwnProp$
|
|
2095
|
-
var __propIsEnum$
|
|
2096
|
-
var __defNormalProp$
|
|
2097
|
-
var __spreadValues$
|
|
2174
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
2175
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
2176
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
2177
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2178
|
+
var __spreadValues$q = (a, b) => {
|
|
2098
2179
|
for (var prop in b || (b = {}))
|
|
2099
|
-
if (__hasOwnProp$
|
|
2100
|
-
__defNormalProp$
|
|
2101
|
-
if (__getOwnPropSymbols$
|
|
2102
|
-
for (var prop of __getOwnPropSymbols$
|
|
2103
|
-
if (__propIsEnum$
|
|
2104
|
-
__defNormalProp$
|
|
2180
|
+
if (__hasOwnProp$q.call(b, prop))
|
|
2181
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
2182
|
+
if (__getOwnPropSymbols$q)
|
|
2183
|
+
for (var prop of __getOwnPropSymbols$q(b)) {
|
|
2184
|
+
if (__propIsEnum$q.call(b, prop))
|
|
2185
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
2105
2186
|
}
|
|
2106
2187
|
return a;
|
|
2107
2188
|
};
|
|
@@ -2109,11 +2190,11 @@ var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
|
2109
2190
|
var __objRest$8 = (source, exclude) => {
|
|
2110
2191
|
var target = {};
|
|
2111
2192
|
for (var prop in source)
|
|
2112
|
-
if (__hasOwnProp$
|
|
2193
|
+
if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2113
2194
|
target[prop] = source[prop];
|
|
2114
|
-
if (source != null && __getOwnPropSymbols$
|
|
2115
|
-
for (var prop of __getOwnPropSymbols$
|
|
2116
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2195
|
+
if (source != null && __getOwnPropSymbols$q)
|
|
2196
|
+
for (var prop of __getOwnPropSymbols$q(source)) {
|
|
2197
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
|
|
2117
2198
|
target[prop] = source[prop];
|
|
2118
2199
|
}
|
|
2119
2200
|
return target;
|
|
@@ -2130,7 +2211,7 @@ const FieldsTextArea = (_a) => {
|
|
|
2130
2211
|
]);
|
|
2131
2212
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
2132
2213
|
TextArea,
|
|
2133
|
-
__spreadProps$j(__spreadValues$
|
|
2214
|
+
__spreadProps$j(__spreadValues$q(__spreadValues$q({}, input), props), {
|
|
2134
2215
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError),
|
|
2135
2216
|
onFocus: (e) => {
|
|
2136
2217
|
input.onFocus(e);
|
|
@@ -2144,21 +2225,21 @@ const FieldsTextArea = (_a) => {
|
|
|
2144
2225
|
));
|
|
2145
2226
|
};
|
|
2146
2227
|
|
|
2147
|
-
var __defProp$
|
|
2228
|
+
var __defProp$p = Object.defineProperty;
|
|
2148
2229
|
var __defProps$i = Object.defineProperties;
|
|
2149
2230
|
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
2150
|
-
var __getOwnPropSymbols$
|
|
2151
|
-
var __hasOwnProp$
|
|
2152
|
-
var __propIsEnum$
|
|
2153
|
-
var __defNormalProp$
|
|
2154
|
-
var __spreadValues$
|
|
2231
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
2232
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
2233
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
2234
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2235
|
+
var __spreadValues$p = (a, b) => {
|
|
2155
2236
|
for (var prop in b || (b = {}))
|
|
2156
|
-
if (__hasOwnProp$
|
|
2157
|
-
__defNormalProp$
|
|
2158
|
-
if (__getOwnPropSymbols$
|
|
2159
|
-
for (var prop of __getOwnPropSymbols$
|
|
2160
|
-
if (__propIsEnum$
|
|
2161
|
-
__defNormalProp$
|
|
2237
|
+
if (__hasOwnProp$p.call(b, prop))
|
|
2238
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
2239
|
+
if (__getOwnPropSymbols$p)
|
|
2240
|
+
for (var prop of __getOwnPropSymbols$p(b)) {
|
|
2241
|
+
if (__propIsEnum$p.call(b, prop))
|
|
2242
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
2162
2243
|
}
|
|
2163
2244
|
return a;
|
|
2164
2245
|
};
|
|
@@ -2166,11 +2247,11 @@ var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
|
2166
2247
|
var __objRest$7 = (source, exclude) => {
|
|
2167
2248
|
var target = {};
|
|
2168
2249
|
for (var prop in source)
|
|
2169
|
-
if (__hasOwnProp$
|
|
2250
|
+
if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2170
2251
|
target[prop] = source[prop];
|
|
2171
|
-
if (source != null && __getOwnPropSymbols$
|
|
2172
|
-
for (var prop of __getOwnPropSymbols$
|
|
2173
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2252
|
+
if (source != null && __getOwnPropSymbols$p)
|
|
2253
|
+
for (var prop of __getOwnPropSymbols$p(source)) {
|
|
2254
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop))
|
|
2174
2255
|
target[prop] = source[prop];
|
|
2175
2256
|
}
|
|
2176
2257
|
return target;
|
|
@@ -2192,7 +2273,7 @@ const TimePicker = (_a) => {
|
|
|
2192
2273
|
}[size];
|
|
2193
2274
|
return /* @__PURE__ */ React__default.createElement(
|
|
2194
2275
|
TimePicker$1,
|
|
2195
|
-
__spreadProps$i(__spreadValues$
|
|
2276
|
+
__spreadProps$i(__spreadValues$p({}, props), {
|
|
2196
2277
|
size,
|
|
2197
2278
|
"data-test": props.name,
|
|
2198
2279
|
className: cs(className, InputStyle, typo, error ? "error" : "")
|
|
@@ -2200,21 +2281,21 @@ const TimePicker = (_a) => {
|
|
|
2200
2281
|
);
|
|
2201
2282
|
};
|
|
2202
2283
|
|
|
2203
|
-
var __defProp$
|
|
2284
|
+
var __defProp$o = Object.defineProperty;
|
|
2204
2285
|
var __defProps$h = Object.defineProperties;
|
|
2205
2286
|
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
2206
|
-
var __getOwnPropSymbols$
|
|
2207
|
-
var __hasOwnProp$
|
|
2208
|
-
var __propIsEnum$
|
|
2209
|
-
var __defNormalProp$
|
|
2210
|
-
var __spreadValues$
|
|
2287
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
2288
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
2289
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
2290
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2291
|
+
var __spreadValues$o = (a, b) => {
|
|
2211
2292
|
for (var prop in b || (b = {}))
|
|
2212
|
-
if (__hasOwnProp$
|
|
2213
|
-
__defNormalProp$
|
|
2214
|
-
if (__getOwnPropSymbols$
|
|
2215
|
-
for (var prop of __getOwnPropSymbols$
|
|
2216
|
-
if (__propIsEnum$
|
|
2217
|
-
__defNormalProp$
|
|
2293
|
+
if (__hasOwnProp$o.call(b, prop))
|
|
2294
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
2295
|
+
if (__getOwnPropSymbols$o)
|
|
2296
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
|
2297
|
+
if (__propIsEnum$o.call(b, prop))
|
|
2298
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
2218
2299
|
}
|
|
2219
2300
|
return a;
|
|
2220
2301
|
};
|
|
@@ -2222,11 +2303,11 @@ var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
|
2222
2303
|
var __objRest$6 = (source, exclude) => {
|
|
2223
2304
|
var target = {};
|
|
2224
2305
|
for (var prop in source)
|
|
2225
|
-
if (__hasOwnProp$
|
|
2306
|
+
if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2226
2307
|
target[prop] = source[prop];
|
|
2227
|
-
if (source != null && __getOwnPropSymbols$
|
|
2228
|
-
for (var prop of __getOwnPropSymbols$
|
|
2229
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2308
|
+
if (source != null && __getOwnPropSymbols$o)
|
|
2309
|
+
for (var prop of __getOwnPropSymbols$o(source)) {
|
|
2310
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
|
|
2230
2311
|
target[prop] = source[prop];
|
|
2231
2312
|
}
|
|
2232
2313
|
return target;
|
|
@@ -2241,7 +2322,7 @@ const FieldsTimePicker = (_a) => {
|
|
|
2241
2322
|
]);
|
|
2242
2323
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
2243
2324
|
TimePicker,
|
|
2244
|
-
__spreadValues$
|
|
2325
|
+
__spreadValues$o(__spreadProps$h(__spreadValues$o({}, input), {
|
|
2245
2326
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
2246
2327
|
}), props)
|
|
2247
2328
|
));
|
|
@@ -2260,29 +2341,29 @@ const fields = {
|
|
|
2260
2341
|
DateTimeRange: FieldsDateTimeRange
|
|
2261
2342
|
};
|
|
2262
2343
|
|
|
2263
|
-
var __defProp$
|
|
2344
|
+
var __defProp$n = Object.defineProperty;
|
|
2264
2345
|
var __defProps$g = Object.defineProperties;
|
|
2265
2346
|
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
2266
|
-
var __getOwnPropSymbols$
|
|
2267
|
-
var __hasOwnProp$
|
|
2268
|
-
var __propIsEnum$
|
|
2269
|
-
var __defNormalProp$
|
|
2347
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
2348
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
2349
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
2350
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, {
|
|
2270
2351
|
enumerable: true,
|
|
2271
2352
|
configurable: true,
|
|
2272
2353
|
writable: true,
|
|
2273
2354
|
value
|
|
2274
2355
|
}) : obj[key] = value;
|
|
2275
|
-
var __spreadValues$
|
|
2276
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
2277
|
-
if (__getOwnPropSymbols$
|
|
2278
|
-
if (__propIsEnum$
|
|
2356
|
+
var __spreadValues$n = (a, b) => {
|
|
2357
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$n.call(b, prop)) __defNormalProp$n(a, prop, b[prop]);
|
|
2358
|
+
if (__getOwnPropSymbols$n) for (var prop of __getOwnPropSymbols$n(b)) {
|
|
2359
|
+
if (__propIsEnum$n.call(b, prop)) __defNormalProp$n(a, prop, b[prop]);
|
|
2279
2360
|
}
|
|
2280
2361
|
return a;
|
|
2281
2362
|
};
|
|
2282
2363
|
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
2283
2364
|
const FormItemStyle$1 = "f1p9ti6d";
|
|
2284
2365
|
const FormItem$1 = props => {
|
|
2285
|
-
return /* @__PURE__ */React__default.createElement(AntdFormItem, __spreadProps$g(__spreadValues$
|
|
2366
|
+
return /* @__PURE__ */React__default.createElement(AntdFormItem, __spreadProps$g(__spreadValues$n({}, props), {
|
|
2286
2367
|
className: cs(FormItemStyle$1, props.className)
|
|
2287
2368
|
}));
|
|
2288
2369
|
};
|
|
@@ -2290,14 +2371,31 @@ const FormItem$1 = props => {
|
|
|
2290
2371
|
const Form = Form$1;
|
|
2291
2372
|
Form.Item = FormItem$1;
|
|
2292
2373
|
|
|
2374
|
+
var __defProp$m = Object.defineProperty;
|
|
2375
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
2376
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
2377
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
2378
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2379
|
+
var __spreadValues$m = (a, b) => {
|
|
2380
|
+
for (var prop in b || (b = {}))
|
|
2381
|
+
if (__hasOwnProp$m.call(b, prop))
|
|
2382
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
2383
|
+
if (__getOwnPropSymbols$m)
|
|
2384
|
+
for (var prop of __getOwnPropSymbols$m(b)) {
|
|
2385
|
+
if (__propIsEnum$m.call(b, prop))
|
|
2386
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
2387
|
+
}
|
|
2388
|
+
return a;
|
|
2389
|
+
};
|
|
2293
2390
|
const Frequency = ({
|
|
2294
2391
|
rawValue,
|
|
2295
2392
|
decimals,
|
|
2296
2393
|
valueClassName,
|
|
2297
|
-
unitClassName
|
|
2394
|
+
unitClassName,
|
|
2395
|
+
emptyProps
|
|
2298
2396
|
}) => {
|
|
2299
2397
|
if (isEmpty(rawValue)) {
|
|
2300
|
-
return Empty;
|
|
2398
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$m({}, emptyProps));
|
|
2301
2399
|
}
|
|
2302
2400
|
const { value, unit } = formatFrequency(rawValue, decimals);
|
|
2303
2401
|
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}`));
|
|
@@ -2310,21 +2408,21 @@ const InputGroup = /*#__PURE__*/styled(_exp())({
|
|
|
2310
2408
|
propsAsIs: true
|
|
2311
2409
|
});
|
|
2312
2410
|
|
|
2313
|
-
var __defProp$
|
|
2411
|
+
var __defProp$l = Object.defineProperty;
|
|
2314
2412
|
var __defProps$f = Object.defineProperties;
|
|
2315
2413
|
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
2316
|
-
var __getOwnPropSymbols$
|
|
2317
|
-
var __hasOwnProp$
|
|
2318
|
-
var __propIsEnum$
|
|
2319
|
-
var __defNormalProp$
|
|
2320
|
-
var __spreadValues$
|
|
2414
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
2415
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
2416
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
2417
|
+
var __defNormalProp$l = (obj, key2, value) => key2 in obj ? __defProp$l(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value;
|
|
2418
|
+
var __spreadValues$l = (a, b) => {
|
|
2321
2419
|
for (var prop in b || (b = {}))
|
|
2322
|
-
if (__hasOwnProp$
|
|
2323
|
-
__defNormalProp$
|
|
2324
|
-
if (__getOwnPropSymbols$
|
|
2325
|
-
for (var prop of __getOwnPropSymbols$
|
|
2326
|
-
if (__propIsEnum$
|
|
2327
|
-
__defNormalProp$
|
|
2420
|
+
if (__hasOwnProp$l.call(b, prop))
|
|
2421
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
2422
|
+
if (__getOwnPropSymbols$l)
|
|
2423
|
+
for (var prop of __getOwnPropSymbols$l(b)) {
|
|
2424
|
+
if (__propIsEnum$l.call(b, prop))
|
|
2425
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
2328
2426
|
}
|
|
2329
2427
|
return a;
|
|
2330
2428
|
};
|
|
@@ -2431,7 +2529,7 @@ function notice(args) {
|
|
|
2431
2529
|
};
|
|
2432
2530
|
getRCNotificationInstance(args, ({ prefixCls, instance }) => {
|
|
2433
2531
|
instance.notice(
|
|
2434
|
-
getRCNoticeProps(__spreadProps$f(__spreadValues$
|
|
2532
|
+
getRCNoticeProps(__spreadProps$f(__spreadValues$l({}, args), { key: target, onClose: callback }), prefixCls)
|
|
2435
2533
|
);
|
|
2436
2534
|
});
|
|
2437
2535
|
});
|
|
@@ -2460,7 +2558,7 @@ const api = {
|
|
|
2460
2558
|
function attachTypeApi(originalApi, type) {
|
|
2461
2559
|
originalApi[type] = (content, duration, onClose) => {
|
|
2462
2560
|
if (isArgsProps(content)) {
|
|
2463
|
-
return originalApi.open(__spreadProps$f(__spreadValues$
|
|
2561
|
+
return originalApi.open(__spreadProps$f(__spreadValues$l({}, content), { type }));
|
|
2464
2562
|
}
|
|
2465
2563
|
if (typeof duration === "function") {
|
|
2466
2564
|
onClose = duration;
|
|
@@ -2474,21 +2572,21 @@ function attachTypeApi(originalApi, type) {
|
|
|
2474
2572
|
);
|
|
2475
2573
|
api.warn = api.warning;
|
|
2476
2574
|
|
|
2477
|
-
var __defProp$
|
|
2575
|
+
var __defProp$k = Object.defineProperty;
|
|
2478
2576
|
var __defProps$e = Object.defineProperties;
|
|
2479
2577
|
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
|
2480
|
-
var __getOwnPropSymbols$
|
|
2481
|
-
var __hasOwnProp$
|
|
2482
|
-
var __propIsEnum$
|
|
2483
|
-
var __defNormalProp$
|
|
2484
|
-
var __spreadValues$
|
|
2578
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
|
2579
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
|
2580
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
|
2581
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2582
|
+
var __spreadValues$k = (a, b) => {
|
|
2485
2583
|
for (var prop in b || (b = {}))
|
|
2486
|
-
if (__hasOwnProp$
|
|
2487
|
-
__defNormalProp$
|
|
2488
|
-
if (__getOwnPropSymbols$
|
|
2489
|
-
for (var prop of __getOwnPropSymbols$
|
|
2490
|
-
if (__propIsEnum$
|
|
2491
|
-
__defNormalProp$
|
|
2584
|
+
if (__hasOwnProp$k.call(b, prop))
|
|
2585
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
2586
|
+
if (__getOwnPropSymbols$k)
|
|
2587
|
+
for (var prop of __getOwnPropSymbols$k(b)) {
|
|
2588
|
+
if (__propIsEnum$k.call(b, prop))
|
|
2589
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
2492
2590
|
}
|
|
2493
2591
|
return a;
|
|
2494
2592
|
};
|
|
@@ -2502,8 +2600,8 @@ const chartReducer = (state = initialChartState, action) => {
|
|
|
2502
2600
|
switch (action.type) {
|
|
2503
2601
|
case "SET_POINTER" /* SET_POINTER */: {
|
|
2504
2602
|
const { uuid, left, text, visible, value } = action.payload;
|
|
2505
|
-
return __spreadProps$e(__spreadValues$
|
|
2506
|
-
pointers: __spreadProps$e(__spreadValues$
|
|
2603
|
+
return __spreadProps$e(__spreadValues$k({}, state), {
|
|
2604
|
+
pointers: __spreadProps$e(__spreadValues$k({}, state.pointers), {
|
|
2507
2605
|
[uuid]: {
|
|
2508
2606
|
left,
|
|
2509
2607
|
text,
|
|
@@ -2515,16 +2613,16 @@ const chartReducer = (state = initialChartState, action) => {
|
|
|
2515
2613
|
}
|
|
2516
2614
|
case "SET_RESOURCE_DATA" /* SET_RESOURCE_DATA */: {
|
|
2517
2615
|
const { uuid, data } = action.payload;
|
|
2518
|
-
return __spreadProps$e(__spreadValues$
|
|
2519
|
-
resourceData: __spreadProps$e(__spreadValues$
|
|
2616
|
+
return __spreadProps$e(__spreadValues$k({}, state), {
|
|
2617
|
+
resourceData: __spreadProps$e(__spreadValues$k({}, state.resourceData), {
|
|
2520
2618
|
[uuid]: data
|
|
2521
2619
|
})
|
|
2522
2620
|
});
|
|
2523
2621
|
}
|
|
2524
2622
|
case "SET_AVERAGE_DATA" /* SET_AVERAGE_DATA */: {
|
|
2525
2623
|
const { uuid, average } = action.payload;
|
|
2526
|
-
return __spreadProps$e(__spreadValues$
|
|
2527
|
-
averageData: __spreadProps$e(__spreadValues$
|
|
2624
|
+
return __spreadProps$e(__spreadValues$k({}, state), {
|
|
2625
|
+
averageData: __spreadProps$e(__spreadValues$k({}, state.averageData), {
|
|
2528
2626
|
[uuid]: average
|
|
2529
2627
|
})
|
|
2530
2628
|
});
|
|
@@ -2535,21 +2633,21 @@ const chartReducer = (state = initialChartState, action) => {
|
|
|
2535
2633
|
}
|
|
2536
2634
|
};
|
|
2537
2635
|
|
|
2538
|
-
var __defProp$
|
|
2636
|
+
var __defProp$j = Object.defineProperty;
|
|
2539
2637
|
var __defProps$d = Object.defineProperties;
|
|
2540
2638
|
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
2541
|
-
var __getOwnPropSymbols$
|
|
2542
|
-
var __hasOwnProp$
|
|
2543
|
-
var __propIsEnum$
|
|
2544
|
-
var __defNormalProp$
|
|
2545
|
-
var __spreadValues$
|
|
2639
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
2640
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
2641
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
2642
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2643
|
+
var __spreadValues$j = (a, b) => {
|
|
2546
2644
|
for (var prop in b || (b = {}))
|
|
2547
|
-
if (__hasOwnProp$
|
|
2548
|
-
__defNormalProp$
|
|
2549
|
-
if (__getOwnPropSymbols$
|
|
2550
|
-
for (var prop of __getOwnPropSymbols$
|
|
2551
|
-
if (__propIsEnum$
|
|
2552
|
-
__defNormalProp$
|
|
2645
|
+
if (__hasOwnProp$j.call(b, prop))
|
|
2646
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
2647
|
+
if (__getOwnPropSymbols$j)
|
|
2648
|
+
for (var prop of __getOwnPropSymbols$j(b)) {
|
|
2649
|
+
if (__propIsEnum$j.call(b, prop))
|
|
2650
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
2553
2651
|
}
|
|
2554
2652
|
return a;
|
|
2555
2653
|
};
|
|
@@ -2574,22 +2672,22 @@ const modalReducer = (state = initialModalState, action) => {
|
|
|
2574
2672
|
)) {
|
|
2575
2673
|
return state;
|
|
2576
2674
|
}
|
|
2577
|
-
return __spreadProps$d(__spreadValues$
|
|
2578
|
-
stack: state.stack.concat(__spreadProps$d(__spreadValues$
|
|
2675
|
+
return __spreadProps$d(__spreadValues$j({}, state), {
|
|
2676
|
+
stack: state.stack.concat(__spreadProps$d(__spreadValues$j({}, action.payload), {
|
|
2579
2677
|
id: MODAL_ID++
|
|
2580
2678
|
}))
|
|
2581
2679
|
});
|
|
2582
2680
|
case "POP_MODAL" /* POP_MODAL */:
|
|
2583
|
-
return __spreadProps$d(__spreadValues$
|
|
2681
|
+
return __spreadProps$d(__spreadValues$j({}, state), {
|
|
2584
2682
|
stack: state.stack.slice(0, -1)
|
|
2585
2683
|
});
|
|
2586
2684
|
case "REMOVE_MODAL" /* REMOVE_MODAL */:
|
|
2587
|
-
return __spreadProps$d(__spreadValues$
|
|
2685
|
+
return __spreadProps$d(__spreadValues$j({}, state), {
|
|
2588
2686
|
closeId: 0,
|
|
2589
2687
|
stack: state.stack.filter((m) => m.id !== action.id)
|
|
2590
2688
|
});
|
|
2591
2689
|
case "CLOSE_MODAL" /* CLOSE_MODAL */:
|
|
2592
|
-
return __spreadProps$d(__spreadValues$
|
|
2690
|
+
return __spreadProps$d(__spreadValues$j({}, state), {
|
|
2593
2691
|
closeId: action.id
|
|
2594
2692
|
});
|
|
2595
2693
|
default:
|
|
@@ -2611,72 +2709,50 @@ const rootReducer = (state, action) => {
|
|
|
2611
2709
|
return appReducer(state, action);
|
|
2612
2710
|
};
|
|
2613
2711
|
const UIKitStore = createStore(rootReducer);
|
|
2614
|
-
function pushModal(modal
|
|
2615
|
-
|
|
2712
|
+
function pushModal(modal) {
|
|
2713
|
+
UIKitStore.dispatch({
|
|
2616
2714
|
type: ModalActions.PUSH_MODAL,
|
|
2617
2715
|
payload: modal
|
|
2618
2716
|
});
|
|
2619
2717
|
}
|
|
2620
|
-
function popModal(
|
|
2621
|
-
|
|
2718
|
+
function popModal() {
|
|
2719
|
+
UIKitStore.dispatch({
|
|
2622
2720
|
type: ModalActions.POP_MODAL
|
|
2623
2721
|
});
|
|
2624
2722
|
}
|
|
2625
|
-
function closeModal(id
|
|
2626
|
-
|
|
2723
|
+
function closeModal(id) {
|
|
2724
|
+
UIKitStore.dispatch({
|
|
2627
2725
|
type: ModalActions.CLOSE_MODAL,
|
|
2628
2726
|
id
|
|
2629
2727
|
});
|
|
2630
2728
|
}
|
|
2631
2729
|
|
|
2632
|
-
const
|
|
2730
|
+
const ctx = createContext({
|
|
2633
2731
|
store: UIKitStore,
|
|
2634
2732
|
storeState: UIKitStore.getState()
|
|
2635
2733
|
});
|
|
2636
|
-
const ReduxContext = createContext(defaultContext);
|
|
2637
|
-
const ReduxContextProvider = (props) => {
|
|
2638
|
-
const { children, reduxContext = defaultContext } = props;
|
|
2639
|
-
return /* @__PURE__ */ React__default.createElement(ReduxContext.Provider, { value: reduxContext }, children);
|
|
2640
|
-
};
|
|
2641
|
-
|
|
2642
2734
|
const KitStoreProvider = (props) => {
|
|
2643
2735
|
const { children } = props;
|
|
2644
|
-
|
|
2645
|
-
const store = useContext(reduxContext);
|
|
2646
|
-
return /* @__PURE__ */ React__default.createElement(Provider, { context: reduxContext, store: store.store }, children);
|
|
2647
|
-
};
|
|
2648
|
-
const useKitDispatch = () => {
|
|
2649
|
-
const ctx = useContext(ReduxContext);
|
|
2650
|
-
const useHook = useMemo(
|
|
2651
|
-
() => createDispatchHook(ctx),
|
|
2652
|
-
[ctx]
|
|
2653
|
-
);
|
|
2654
|
-
return useHook();
|
|
2655
|
-
};
|
|
2656
|
-
const useKitSelector = (selector, equalityFn) => {
|
|
2657
|
-
const ctx = useContext(ReduxContext);
|
|
2658
|
-
const useHook = useMemo(
|
|
2659
|
-
() => createSelectorHook(ctx),
|
|
2660
|
-
[ctx]
|
|
2661
|
-
);
|
|
2662
|
-
return useHook(selector, equalityFn);
|
|
2736
|
+
return /* @__PURE__ */ React__default.createElement(Provider, { context: ctx, store: UIKitStore }, children);
|
|
2663
2737
|
};
|
|
2738
|
+
const useKitDispatch = createDispatchHook(ctx);
|
|
2739
|
+
const useKitSelector = createSelectorHook(ctx);
|
|
2664
2740
|
|
|
2665
|
-
var __defProp$
|
|
2741
|
+
var __defProp$i = Object.defineProperty;
|
|
2666
2742
|
var __defProps$c = Object.defineProperties;
|
|
2667
2743
|
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
2668
|
-
var __getOwnPropSymbols$
|
|
2669
|
-
var __hasOwnProp$
|
|
2670
|
-
var __propIsEnum$
|
|
2671
|
-
var __defNormalProp$
|
|
2672
|
-
var __spreadValues$
|
|
2744
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
2745
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
2746
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
2747
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2748
|
+
var __spreadValues$i = (a, b) => {
|
|
2673
2749
|
for (var prop in b || (b = {}))
|
|
2674
|
-
if (__hasOwnProp$
|
|
2675
|
-
__defNormalProp$
|
|
2676
|
-
if (__getOwnPropSymbols$
|
|
2677
|
-
for (var prop of __getOwnPropSymbols$
|
|
2678
|
-
if (__propIsEnum$
|
|
2679
|
-
__defNormalProp$
|
|
2750
|
+
if (__hasOwnProp$i.call(b, prop))
|
|
2751
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
2752
|
+
if (__getOwnPropSymbols$i)
|
|
2753
|
+
for (var prop of __getOwnPropSymbols$i(b)) {
|
|
2754
|
+
if (__propIsEnum$i.call(b, prop))
|
|
2755
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
2680
2756
|
}
|
|
2681
2757
|
return a;
|
|
2682
2758
|
};
|
|
@@ -2684,11 +2760,11 @@ var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
|
|
|
2684
2760
|
var __objRest$5 = (source, exclude) => {
|
|
2685
2761
|
var target = {};
|
|
2686
2762
|
for (var prop in source)
|
|
2687
|
-
if (__hasOwnProp$
|
|
2763
|
+
if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2688
2764
|
target[prop] = source[prop];
|
|
2689
|
-
if (source != null && __getOwnPropSymbols$
|
|
2690
|
-
for (var prop of __getOwnPropSymbols$
|
|
2691
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2765
|
+
if (source != null && __getOwnPropSymbols$i)
|
|
2766
|
+
for (var prop of __getOwnPropSymbols$i(source)) {
|
|
2767
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
|
|
2692
2768
|
target[prop] = source[prop];
|
|
2693
2769
|
}
|
|
2694
2770
|
return target;
|
|
@@ -2770,7 +2846,7 @@ const Modal = (props) => {
|
|
|
2770
2846
|
}
|
|
2771
2847
|
return /* @__PURE__ */ React__default.createElement(
|
|
2772
2848
|
Modal$1,
|
|
2773
|
-
__spreadProps$c(__spreadValues$
|
|
2849
|
+
__spreadProps$c(__spreadValues$i({
|
|
2774
2850
|
maskClosable,
|
|
2775
2851
|
className: cs(
|
|
2776
2852
|
className,
|
|
@@ -2805,7 +2881,7 @@ const Modal = (props) => {
|
|
|
2805
2881
|
prevText
|
|
2806
2882
|
), error && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("span", { className: "modal-error" }, error))), /* @__PURE__ */ React__default.createElement("div", { className: "modal-footer-btn-group" }, showCancel && /* @__PURE__ */ React__default.createElement(
|
|
2807
2883
|
Button,
|
|
2808
|
-
__spreadValues$
|
|
2884
|
+
__spreadValues$i({
|
|
2809
2885
|
type: "quiet",
|
|
2810
2886
|
onMouseDown: (e) => {
|
|
2811
2887
|
e.preventDefault();
|
|
@@ -2819,7 +2895,7 @@ const Modal = (props) => {
|
|
|
2819
2895
|
cancelText
|
|
2820
2896
|
), showOk && /* @__PURE__ */ React__default.createElement(
|
|
2821
2897
|
Button,
|
|
2822
|
-
__spreadValues$
|
|
2898
|
+
__spreadValues$i({
|
|
2823
2899
|
onClick: (e) => {
|
|
2824
2900
|
var _a2, _b2;
|
|
2825
2901
|
onOk == null ? void 0 : onOk(e);
|
|
@@ -2971,59 +3047,76 @@ const Pagination = props => {
|
|
|
2971
3047
|
}))));
|
|
2972
3048
|
};
|
|
2973
3049
|
|
|
3050
|
+
var __defProp$h = Object.defineProperty;
|
|
3051
|
+
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
|
3052
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
3053
|
+
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
|
3054
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3055
|
+
var __spreadValues$h = (a, b) => {
|
|
3056
|
+
for (var prop in b || (b = {}))
|
|
3057
|
+
if (__hasOwnProp$h.call(b, prop))
|
|
3058
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
3059
|
+
if (__getOwnPropSymbols$h)
|
|
3060
|
+
for (var prop of __getOwnPropSymbols$h(b)) {
|
|
3061
|
+
if (__propIsEnum$h.call(b, prop))
|
|
3062
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
3063
|
+
}
|
|
3064
|
+
return a;
|
|
3065
|
+
};
|
|
2974
3066
|
const Percent = ({
|
|
2975
3067
|
rawValue,
|
|
2976
3068
|
decimals,
|
|
2977
3069
|
valueClassName,
|
|
2978
|
-
unitClassName
|
|
3070
|
+
unitClassName,
|
|
3071
|
+
emptyProps
|
|
2979
3072
|
}) => {
|
|
2980
3073
|
if (isEmpty(rawValue)) {
|
|
2981
|
-
return Empty;
|
|
3074
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$h({}, emptyProps));
|
|
2982
3075
|
}
|
|
2983
3076
|
const { value, unit } = formatPercent(rawValue, decimals);
|
|
2984
3077
|
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));
|
|
2985
3078
|
};
|
|
2986
3079
|
|
|
2987
|
-
var __defProp$
|
|
2988
|
-
var __getOwnPropSymbols$
|
|
2989
|
-
var __hasOwnProp$
|
|
2990
|
-
var __propIsEnum$
|
|
2991
|
-
var __defNormalProp$
|
|
2992
|
-
var __spreadValues$
|
|
3080
|
+
var __defProp$g = Object.defineProperty;
|
|
3081
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
3082
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
3083
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
3084
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3085
|
+
var __spreadValues$g = (a, b) => {
|
|
2993
3086
|
for (var prop in b || (b = {}))
|
|
2994
|
-
if (__hasOwnProp$
|
|
2995
|
-
__defNormalProp$
|
|
2996
|
-
if (__getOwnPropSymbols$
|
|
2997
|
-
for (var prop of __getOwnPropSymbols$
|
|
2998
|
-
if (__propIsEnum$
|
|
2999
|
-
__defNormalProp$
|
|
3087
|
+
if (__hasOwnProp$g.call(b, prop))
|
|
3088
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
3089
|
+
if (__getOwnPropSymbols$g)
|
|
3090
|
+
for (var prop of __getOwnPropSymbols$g(b)) {
|
|
3091
|
+
if (__propIsEnum$g.call(b, prop))
|
|
3092
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
3000
3093
|
}
|
|
3001
3094
|
return a;
|
|
3002
3095
|
};
|
|
3003
|
-
const Progress = (props) => /* @__PURE__ */ React__default.createElement(Progress$1, __spreadValues$
|
|
3096
|
+
const Progress = (props) => /* @__PURE__ */ React__default.createElement(Progress$1, __spreadValues$g({}, props));
|
|
3004
3097
|
|
|
3005
|
-
var __defProp$
|
|
3006
|
-
var __getOwnPropSymbols$
|
|
3007
|
-
var __hasOwnProp$
|
|
3008
|
-
var __propIsEnum$
|
|
3009
|
-
var __defNormalProp$
|
|
3098
|
+
var __defProp$f = Object.defineProperty;
|
|
3099
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
3100
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
3101
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
3102
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, {
|
|
3010
3103
|
enumerable: true,
|
|
3011
3104
|
configurable: true,
|
|
3012
3105
|
writable: true,
|
|
3013
3106
|
value
|
|
3014
3107
|
}) : obj[key] = value;
|
|
3015
|
-
var __spreadValues$
|
|
3016
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3017
|
-
if (__getOwnPropSymbols$
|
|
3018
|
-
if (__propIsEnum$
|
|
3108
|
+
var __spreadValues$f = (a, b) => {
|
|
3109
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$f.call(b, prop)) __defNormalProp$f(a, prop, b[prop]);
|
|
3110
|
+
if (__getOwnPropSymbols$f) for (var prop of __getOwnPropSymbols$f(b)) {
|
|
3111
|
+
if (__propIsEnum$f.call(b, prop)) __defNormalProp$f(a, prop, b[prop]);
|
|
3019
3112
|
}
|
|
3020
3113
|
return a;
|
|
3021
3114
|
};
|
|
3022
3115
|
var __objRest$4 = (source, exclude) => {
|
|
3023
3116
|
var target = {};
|
|
3024
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3025
|
-
if (source != null && __getOwnPropSymbols$
|
|
3026
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3117
|
+
for (var prop in source) if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3118
|
+
if (source != null && __getOwnPropSymbols$f) for (var prop of __getOwnPropSymbols$f(source)) {
|
|
3119
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop)) target[prop] = source[prop];
|
|
3027
3120
|
}
|
|
3028
3121
|
return target;
|
|
3029
3122
|
};
|
|
@@ -3049,7 +3142,7 @@ const Radio = _a => {
|
|
|
3049
3142
|
className: cx("radio-description", Typo.Label.l4_regular)
|
|
3050
3143
|
}, description));
|
|
3051
3144
|
}
|
|
3052
|
-
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Radio$1, __spreadValues$
|
|
3145
|
+
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Radio$1, __spreadValues$f({
|
|
3053
3146
|
className: cx(className, RadioStyle, compact && "compact"),
|
|
3054
3147
|
checked: checked || false,
|
|
3055
3148
|
"data-test": context.name ? `${context.name}-${String(props.value)}` : String(props.value)
|
|
@@ -3067,7 +3160,7 @@ const RadioGroup = _c => {
|
|
|
3067
3160
|
disabled: props.disabled,
|
|
3068
3161
|
name: props.name
|
|
3069
3162
|
}
|
|
3070
|
-
}, /* @__PURE__ */React__default.createElement(Radio$1.Group, __spreadValues$
|
|
3163
|
+
}, /* @__PURE__ */React__default.createElement(Radio$1.Group, __spreadValues$f({
|
|
3071
3164
|
className: cx(className, RadioGroupStyle)
|
|
3072
3165
|
}, props), children ? children : null));
|
|
3073
3166
|
};
|
|
@@ -3123,36 +3216,36 @@ const RadioButton = _e => {
|
|
|
3123
3216
|
className: "ant-radio-button-input-label"
|
|
3124
3217
|
}, typeof children === "string" ? children : ""));
|
|
3125
3218
|
};
|
|
3126
|
-
return /* @__PURE__ */React__default.createElement(Radio$1.Button, __spreadValues$
|
|
3219
|
+
return /* @__PURE__ */React__default.createElement(Radio$1.Button, __spreadValues$f({
|
|
3127
3220
|
className: cx(className, RadioButtonStyle),
|
|
3128
3221
|
value: radioButtonValue
|
|
3129
3222
|
}, props), renderChildren());
|
|
3130
3223
|
};
|
|
3131
3224
|
|
|
3132
|
-
var __defProp$
|
|
3133
|
-
var __getOwnPropSymbols$
|
|
3134
|
-
var __hasOwnProp$
|
|
3135
|
-
var __propIsEnum$
|
|
3136
|
-
var __defNormalProp$
|
|
3137
|
-
var __spreadValues$
|
|
3225
|
+
var __defProp$e = Object.defineProperty;
|
|
3226
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
3227
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
3228
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
3229
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3230
|
+
var __spreadValues$e = (a, b) => {
|
|
3138
3231
|
for (var prop in b || (b = {}))
|
|
3139
|
-
if (__hasOwnProp$
|
|
3140
|
-
__defNormalProp$
|
|
3141
|
-
if (__getOwnPropSymbols$
|
|
3142
|
-
for (var prop of __getOwnPropSymbols$
|
|
3143
|
-
if (__propIsEnum$
|
|
3144
|
-
__defNormalProp$
|
|
3232
|
+
if (__hasOwnProp$e.call(b, prop))
|
|
3233
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
3234
|
+
if (__getOwnPropSymbols$e)
|
|
3235
|
+
for (var prop of __getOwnPropSymbols$e(b)) {
|
|
3236
|
+
if (__propIsEnum$e.call(b, prop))
|
|
3237
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
3145
3238
|
}
|
|
3146
3239
|
return a;
|
|
3147
3240
|
};
|
|
3148
3241
|
var __objRest$3 = (source, exclude) => {
|
|
3149
3242
|
var target = {};
|
|
3150
3243
|
for (var prop in source)
|
|
3151
|
-
if (__hasOwnProp$
|
|
3244
|
+
if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3152
3245
|
target[prop] = source[prop];
|
|
3153
|
-
if (source != null && __getOwnPropSymbols$
|
|
3154
|
-
for (var prop of __getOwnPropSymbols$
|
|
3155
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3246
|
+
if (source != null && __getOwnPropSymbols$e)
|
|
3247
|
+
for (var prop of __getOwnPropSymbols$e(source)) {
|
|
3248
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
|
|
3156
3249
|
target[prop] = source[prop];
|
|
3157
3250
|
}
|
|
3158
3251
|
return target;
|
|
@@ -3162,7 +3255,7 @@ const SearchInput = (props) => {
|
|
|
3162
3255
|
const onSearch = _.debounce(onChange, debounceWait);
|
|
3163
3256
|
return /* @__PURE__ */ React__default.createElement(
|
|
3164
3257
|
Input,
|
|
3165
|
-
__spreadValues$
|
|
3258
|
+
__spreadValues$e({
|
|
3166
3259
|
style: { width: 276 },
|
|
3167
3260
|
prefix: /* @__PURE__ */ React__default.createElement(SearchOutlined, null),
|
|
3168
3261
|
onChange: (e) => onSearch(e.target.value)
|
|
@@ -3170,16 +3263,33 @@ const SearchInput = (props) => {
|
|
|
3170
3263
|
);
|
|
3171
3264
|
};
|
|
3172
3265
|
|
|
3266
|
+
var __defProp$d = Object.defineProperty;
|
|
3267
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
3268
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
3269
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
3270
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3271
|
+
var __spreadValues$d = (a, b) => {
|
|
3272
|
+
for (var prop in b || (b = {}))
|
|
3273
|
+
if (__hasOwnProp$d.call(b, prop))
|
|
3274
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
3275
|
+
if (__getOwnPropSymbols$d)
|
|
3276
|
+
for (var prop of __getOwnPropSymbols$d(b)) {
|
|
3277
|
+
if (__propIsEnum$d.call(b, prop))
|
|
3278
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
3279
|
+
}
|
|
3280
|
+
return a;
|
|
3281
|
+
};
|
|
3173
3282
|
const Second = ({
|
|
3174
3283
|
rawValue,
|
|
3175
3284
|
decimals,
|
|
3176
3285
|
valueClassName,
|
|
3177
3286
|
unitClassName,
|
|
3178
|
-
abbreviate
|
|
3287
|
+
abbreviate,
|
|
3288
|
+
emptyProps
|
|
3179
3289
|
}) => {
|
|
3180
3290
|
const { t } = useParrotTranslation();
|
|
3181
3291
|
if (isEmpty(rawValue)) {
|
|
3182
|
-
return Empty;
|
|
3292
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$d({}, emptyProps));
|
|
3183
3293
|
}
|
|
3184
3294
|
const { value, unit } = formatSeconds(rawValue, decimals);
|
|
3185
3295
|
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}`)));
|
|
@@ -3261,14 +3371,31 @@ const SimplePagination = props => {
|
|
|
3261
3371
|
})));
|
|
3262
3372
|
};
|
|
3263
3373
|
|
|
3374
|
+
var __defProp$c = Object.defineProperty;
|
|
3375
|
+
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
3376
|
+
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
3377
|
+
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
3378
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3379
|
+
var __spreadValues$c = (a, b) => {
|
|
3380
|
+
for (var prop in b || (b = {}))
|
|
3381
|
+
if (__hasOwnProp$c.call(b, prop))
|
|
3382
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
3383
|
+
if (__getOwnPropSymbols$c)
|
|
3384
|
+
for (var prop of __getOwnPropSymbols$c(b)) {
|
|
3385
|
+
if (__propIsEnum$c.call(b, prop))
|
|
3386
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
3387
|
+
}
|
|
3388
|
+
return a;
|
|
3389
|
+
};
|
|
3264
3390
|
const Speed = ({
|
|
3265
3391
|
rawValue,
|
|
3266
3392
|
decimals,
|
|
3267
3393
|
valueClassName,
|
|
3268
|
-
unitClassName
|
|
3394
|
+
unitClassName,
|
|
3395
|
+
emptyProps
|
|
3269
3396
|
}) => {
|
|
3270
3397
|
if (isEmpty(rawValue)) {
|
|
3271
|
-
return Empty;
|
|
3398
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$c({}, emptyProps));
|
|
3272
3399
|
}
|
|
3273
3400
|
const { value, unit } = formatSpeed(rawValue, decimals);
|
|
3274
3401
|
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}`));
|
|
@@ -4695,7 +4822,7 @@ function getAntdKit() {
|
|
|
4695
4822
|
Second
|
|
4696
4823
|
},
|
|
4697
4824
|
inputGroup: InputGroup,
|
|
4698
|
-
Empty,
|
|
4825
|
+
Empty: /* @__PURE__ */ React__default.createElement(Empty, null),
|
|
4699
4826
|
alert: Alert,
|
|
4700
4827
|
searchInput: SearchInput,
|
|
4701
4828
|
badge: Badge,
|
|
@@ -5055,4 +5182,4 @@ const useUIKit = () => {
|
|
|
5055
5182
|
|
|
5056
5183
|
initParrotI18n();
|
|
5057
5184
|
|
|
5058
|
-
export { Architecture, BaseIcon, Button, ButtonStyle, FailedLoad, FullView, Icon, InputTagItem, KitStoreProvider, ModalActions, ModalStack,
|
|
5185
|
+
export { Architecture, BaseIcon, Button, ButtonStyle, FailedLoad, FullView, Icon, InputTagItem, KitStoreProvider, ModalActions, ModalStack, Typo, UIKitProvider, UIKitStore, ValidateTriggerType, WizardBody, antdKit, closeModal, createBatchMessageMethods, kitContext, popModal, pushModal, tableStyleCover, tickFormatter, useElementsSize, useKitDispatch, useKitSelector, useUIKit };
|