@cloudtower/eagle 0.22.21 → 0.22.24
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/Styled/index.d.ts +0 -5
- package/dist/components/Table/common.d.ts +1 -32
- package/dist/components/Table/index.d.ts +0 -9
- package/dist/components/index.d.ts +1 -0
- package/dist/esm/index.js +837 -661
- package/dist/esm/stats1.html +1 -1
- package/dist/hooks/index.d.ts +0 -2
- package/dist/index.d.ts +1 -1
- package/dist/spec/base.d.ts +13 -5
- package/dist/store/index.d.ts +0 -1
- package/dist/style.css +1141 -1278
- package/dist/umd/index.js +839 -665
- package/dist/umd/stats1.html +1 -1
- package/package.json +5 -5
- package/dist/components/Table/CustomizeColumn.d.ts +0 -13
- package/dist/components/Table/HeaderCell.d.ts +0 -25
- package/dist/components/Table/PendingTable.d.ts +0 -3
- package/dist/components/Table/SearchWidget.d.ts +0 -20
- package/dist/components/Table/customize-column.d.ts +0 -3
- package/dist/hooks/useLocalStorage.d.ts +0 -61
- package/dist/store/table.d.ts +0 -54
package/dist/esm/index.js
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import { Alert as Alert$1, Button as Button$1, Checkbox as Checkbox$1, DatePicker, Select as Select$1, InputNumber as InputNumber$1, Input as Input$1, TimePicker as TimePicker$1, Modal as Modal$1, Steps, Dropdown, Menu, Radio as Radio$1,
|
|
1
|
+
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, 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, Tag, Row, Col, Tree, Divider, Skeleton, List, Layout, AutoComplete, Popover, Form, Space } from 'antd';
|
|
2
2
|
export { Col, Row } from 'antd';
|
|
3
3
|
import message from 'antd/lib/message';
|
|
4
4
|
import cs from 'classnames';
|
|
5
|
-
import React, { useState, useMemo,
|
|
5
|
+
import React, { useState, useMemo, useRef, useCallback, useEffect, Fragment, useLayoutEffect, createContext, useContext } from 'react';
|
|
6
6
|
import _, { sortBy, uniqBy } from 'lodash';
|
|
7
7
|
import { parrotI18n } from '@cloudtower/parrot';
|
|
8
8
|
export * from '@cloudtower/parrot';
|
|
9
|
+
import { cx } from '@linaria/core';
|
|
10
|
+
import { styled } from '@linaria/react';
|
|
9
11
|
import moment from 'moment';
|
|
10
12
|
import { findDOMNode } from 'react-dom';
|
|
11
13
|
import { isElement } from 'react-is';
|
|
12
|
-
import { styled } from '@linaria/react';
|
|
13
14
|
import { CloseCircleFilled, CheckOutlined, SearchOutlined } from '@ant-design/icons';
|
|
14
15
|
import { combineReducers, createStore } from 'redux';
|
|
15
16
|
import { createDispatchHook, createSelectorHook, Provider } from 'react-redux';
|
|
16
|
-
import { cx } from '@linaria/core';
|
|
17
|
-
import 'rc-util/lib/getScrollBarSize';
|
|
18
17
|
import TimeZones from 'timezones.json';
|
|
19
18
|
import { withTranslation } from 'react-i18next';
|
|
20
19
|
import dayjs from 'dayjs';
|
|
@@ -237,30 +236,30 @@ function getAlertIcon(type) {
|
|
|
237
236
|
}
|
|
238
237
|
}
|
|
239
238
|
|
|
240
|
-
var __defProp$
|
|
241
|
-
var __getOwnPropSymbols$
|
|
242
|
-
var __hasOwnProp$
|
|
243
|
-
var __propIsEnum$
|
|
244
|
-
var __defNormalProp$
|
|
245
|
-
var __spreadValues$
|
|
239
|
+
var __defProp$w = Object.defineProperty;
|
|
240
|
+
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
|
241
|
+
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
|
242
|
+
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
|
243
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
244
|
+
var __spreadValues$w = (a, b) => {
|
|
246
245
|
for (var prop in b || (b = {}))
|
|
247
|
-
if (__hasOwnProp$
|
|
248
|
-
__defNormalProp$
|
|
249
|
-
if (__getOwnPropSymbols$
|
|
250
|
-
for (var prop of __getOwnPropSymbols$
|
|
251
|
-
if (__propIsEnum$
|
|
252
|
-
__defNormalProp$
|
|
246
|
+
if (__hasOwnProp$x.call(b, prop))
|
|
247
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
248
|
+
if (__getOwnPropSymbols$x)
|
|
249
|
+
for (var prop of __getOwnPropSymbols$x(b)) {
|
|
250
|
+
if (__propIsEnum$x.call(b, prop))
|
|
251
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
253
252
|
}
|
|
254
253
|
return a;
|
|
255
254
|
};
|
|
256
|
-
var __objRest$
|
|
255
|
+
var __objRest$r = (source, exclude) => {
|
|
257
256
|
var target = {};
|
|
258
257
|
for (var prop in source)
|
|
259
|
-
if (__hasOwnProp$
|
|
258
|
+
if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
260
259
|
target[prop] = source[prop];
|
|
261
|
-
if (source != null && __getOwnPropSymbols$
|
|
262
|
-
for (var prop of __getOwnPropSymbols$
|
|
263
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
260
|
+
if (source != null && __getOwnPropSymbols$x)
|
|
261
|
+
for (var prop of __getOwnPropSymbols$x(source)) {
|
|
262
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
|
|
264
263
|
target[prop] = source[prop];
|
|
265
264
|
}
|
|
266
265
|
return target;
|
|
@@ -278,7 +277,7 @@ const BaseIcon = React.forwardRef(
|
|
|
278
277
|
prefixNode,
|
|
279
278
|
suffixIconSrc: SuffixSrc,
|
|
280
279
|
src: Src
|
|
281
|
-
} = _a, HTMLSpanElementProps = __objRest$
|
|
280
|
+
} = _a, HTMLSpanElementProps = __objRest$r(_a, [
|
|
282
281
|
"alt",
|
|
283
282
|
"className",
|
|
284
283
|
"width",
|
|
@@ -292,10 +291,10 @@ const BaseIcon = React.forwardRef(
|
|
|
292
291
|
]);
|
|
293
292
|
return /* @__PURE__ */ React.createElement(
|
|
294
293
|
"span",
|
|
295
|
-
__spreadValues$
|
|
294
|
+
__spreadValues$w({
|
|
296
295
|
ref,
|
|
297
296
|
className,
|
|
298
|
-
style: _.pickBy(__spreadValues$
|
|
297
|
+
style: _.pickBy(__spreadValues$w({ cursor }, style))
|
|
299
298
|
}, HTMLSpanElementProps),
|
|
300
299
|
prefixNode,
|
|
301
300
|
/* @__PURE__ */ React.createElement("span", { className: "icon-inner" }, typeof Src === "string" ? /* @__PURE__ */ React.createElement("img", { alt, src: Src, width, height }) : /* @__PURE__ */ React.createElement(Src, { width, height })),
|
|
@@ -305,31 +304,31 @@ const BaseIcon = React.forwardRef(
|
|
|
305
304
|
}
|
|
306
305
|
);
|
|
307
306
|
|
|
308
|
-
var __defProp$
|
|
309
|
-
var __defProps$
|
|
310
|
-
var __getOwnPropDescs$
|
|
311
|
-
var __getOwnPropSymbols$
|
|
312
|
-
var __hasOwnProp$
|
|
313
|
-
var __propIsEnum$
|
|
314
|
-
var __defNormalProp$
|
|
307
|
+
var __defProp$v = Object.defineProperty;
|
|
308
|
+
var __defProps$n = Object.defineProperties;
|
|
309
|
+
var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
|
|
310
|
+
var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
|
|
311
|
+
var __hasOwnProp$w = Object.prototype.hasOwnProperty;
|
|
312
|
+
var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
|
|
313
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, {
|
|
315
314
|
enumerable: true,
|
|
316
315
|
configurable: true,
|
|
317
316
|
writable: true,
|
|
318
317
|
value
|
|
319
318
|
}) : obj[key] = value;
|
|
320
|
-
var __spreadValues$
|
|
321
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
322
|
-
if (__getOwnPropSymbols$
|
|
323
|
-
if (__propIsEnum$
|
|
319
|
+
var __spreadValues$v = (a, b) => {
|
|
320
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$w.call(b, prop)) __defNormalProp$v(a, prop, b[prop]);
|
|
321
|
+
if (__getOwnPropSymbols$w) for (var prop of __getOwnPropSymbols$w(b)) {
|
|
322
|
+
if (__propIsEnum$w.call(b, prop)) __defNormalProp$v(a, prop, b[prop]);
|
|
324
323
|
}
|
|
325
324
|
return a;
|
|
326
325
|
};
|
|
327
|
-
var __spreadProps$
|
|
328
|
-
var __objRest$
|
|
326
|
+
var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
|
|
327
|
+
var __objRest$q = (source, exclude) => {
|
|
329
328
|
var target = {};
|
|
330
|
-
for (var prop in source) if (__hasOwnProp$
|
|
331
|
-
if (source != null && __getOwnPropSymbols$
|
|
332
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
329
|
+
for (var prop in source) if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
330
|
+
if (source != null && __getOwnPropSymbols$w) for (var prop of __getOwnPropSymbols$w(source)) {
|
|
331
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$w.call(source, prop)) target[prop] = source[prop];
|
|
333
332
|
}
|
|
334
333
|
return target;
|
|
335
334
|
};
|
|
@@ -353,7 +352,7 @@ const Icon = React.forwardRef((props, ref) => {
|
|
|
353
352
|
prefix,
|
|
354
353
|
suffix
|
|
355
354
|
} = _a,
|
|
356
|
-
restProps = __objRest$
|
|
355
|
+
restProps = __objRest$q(_a, ["src", "hoverSrc", "active", "activeSrc", "onMouseEnter", "onMouseLeave", "onMouseMove", "className", "iconWidth", "iconHeight", "cursor", "style", "isRotate", "prefix", "suffix"]);
|
|
357
356
|
const [hover, setHover] = useState(false);
|
|
358
357
|
const _src = useMemo(() => {
|
|
359
358
|
if (active && activeSrc) {
|
|
@@ -381,14 +380,14 @@ const Icon = React.forwardRef((props, ref) => {
|
|
|
381
380
|
}
|
|
382
381
|
return src2;
|
|
383
382
|
}, [active, hover, suffix]);
|
|
384
|
-
return /* @__PURE__ */React.createElement(BaseIcon, __spreadProps$
|
|
383
|
+
return /* @__PURE__ */React.createElement(BaseIcon, __spreadProps$n(__spreadValues$v({
|
|
385
384
|
src: _src,
|
|
386
385
|
className: cs(IconWrapper, "icon-wrapper", className, isRotate && "is-rotate"),
|
|
387
386
|
suffixIconSrc,
|
|
388
387
|
height: iconHeight,
|
|
389
388
|
width: iconWidth,
|
|
390
389
|
prefixNode: prefix,
|
|
391
|
-
style: _.pickBy(__spreadValues$
|
|
390
|
+
style: _.pickBy(__spreadValues$v({
|
|
392
391
|
cursor
|
|
393
392
|
}, style))
|
|
394
393
|
}, restProps), {
|
|
@@ -413,33 +412,33 @@ const Icon = React.forwardRef((props, ref) => {
|
|
|
413
412
|
}));
|
|
414
413
|
});
|
|
415
414
|
|
|
416
|
-
var __defProp$
|
|
417
|
-
var __defProps$
|
|
418
|
-
var __getOwnPropDescs$
|
|
419
|
-
var __getOwnPropSymbols$
|
|
420
|
-
var __hasOwnProp$
|
|
421
|
-
var __propIsEnum$
|
|
422
|
-
var __defNormalProp$
|
|
423
|
-
var __spreadValues$
|
|
415
|
+
var __defProp$u = Object.defineProperty;
|
|
416
|
+
var __defProps$m = Object.defineProperties;
|
|
417
|
+
var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
|
|
418
|
+
var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
|
|
419
|
+
var __hasOwnProp$v = Object.prototype.hasOwnProperty;
|
|
420
|
+
var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
|
|
421
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
422
|
+
var __spreadValues$u = (a, b) => {
|
|
424
423
|
for (var prop in b || (b = {}))
|
|
425
|
-
if (__hasOwnProp$
|
|
426
|
-
__defNormalProp$
|
|
427
|
-
if (__getOwnPropSymbols$
|
|
428
|
-
for (var prop of __getOwnPropSymbols$
|
|
429
|
-
if (__propIsEnum$
|
|
430
|
-
__defNormalProp$
|
|
424
|
+
if (__hasOwnProp$v.call(b, prop))
|
|
425
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
426
|
+
if (__getOwnPropSymbols$v)
|
|
427
|
+
for (var prop of __getOwnPropSymbols$v(b)) {
|
|
428
|
+
if (__propIsEnum$v.call(b, prop))
|
|
429
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
431
430
|
}
|
|
432
431
|
return a;
|
|
433
432
|
};
|
|
434
|
-
var __spreadProps$
|
|
435
|
-
var __objRest$
|
|
433
|
+
var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
|
|
434
|
+
var __objRest$p = (source, exclude) => {
|
|
436
435
|
var target = {};
|
|
437
436
|
for (var prop in source)
|
|
438
|
-
if (__hasOwnProp$
|
|
437
|
+
if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
439
438
|
target[prop] = source[prop];
|
|
440
|
-
if (source != null && __getOwnPropSymbols$
|
|
441
|
-
for (var prop of __getOwnPropSymbols$
|
|
442
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
439
|
+
if (source != null && __getOwnPropSymbols$v)
|
|
440
|
+
for (var prop of __getOwnPropSymbols$v(source)) {
|
|
441
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$v.call(source, prop))
|
|
443
442
|
target[prop] = source[prop];
|
|
444
443
|
}
|
|
445
444
|
return target;
|
|
@@ -452,7 +451,7 @@ const Alert = (_a) => {
|
|
|
452
451
|
className,
|
|
453
452
|
onClose,
|
|
454
453
|
closeText
|
|
455
|
-
} = _b, props = __objRest$
|
|
454
|
+
} = _b, props = __objRest$p(_b, [
|
|
456
455
|
"type",
|
|
457
456
|
"icon",
|
|
458
457
|
"showIcon",
|
|
@@ -464,7 +463,7 @@ const Alert = (_a) => {
|
|
|
464
463
|
const _type = type === "normal" ? "info" : type;
|
|
465
464
|
return /* @__PURE__ */ React.createElement(
|
|
466
465
|
Alert$1,
|
|
467
|
-
__spreadProps$
|
|
466
|
+
__spreadProps$m(__spreadValues$u({}, props), {
|
|
468
467
|
className: cs(type ? `alert-${type}` : "", className),
|
|
469
468
|
type: _type,
|
|
470
469
|
icon: icon || _icon,
|
|
@@ -476,6 +475,58 @@ const Alert = (_a) => {
|
|
|
476
475
|
);
|
|
477
476
|
};
|
|
478
477
|
|
|
478
|
+
const Arch = (props) => {
|
|
479
|
+
const { architecture } = props;
|
|
480
|
+
let text = "";
|
|
481
|
+
if (architecture) {
|
|
482
|
+
text = parrotI18n.t(`enum.Architecture_${architecture}`);
|
|
483
|
+
}
|
|
484
|
+
return /* @__PURE__ */ React.createElement("span", null, text);
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
var __defProp$t = Object.defineProperty;
|
|
488
|
+
var __defProps$l = Object.defineProperties;
|
|
489
|
+
var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
|
|
490
|
+
var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
|
|
491
|
+
var __hasOwnProp$u = Object.prototype.hasOwnProperty;
|
|
492
|
+
var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
|
|
493
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
494
|
+
var __spreadValues$t = (a, b) => {
|
|
495
|
+
for (var prop in b || (b = {}))
|
|
496
|
+
if (__hasOwnProp$u.call(b, prop))
|
|
497
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
498
|
+
if (__getOwnPropSymbols$u)
|
|
499
|
+
for (var prop of __getOwnPropSymbols$u(b)) {
|
|
500
|
+
if (__propIsEnum$u.call(b, prop))
|
|
501
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
502
|
+
}
|
|
503
|
+
return a;
|
|
504
|
+
};
|
|
505
|
+
var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
|
|
506
|
+
var __objRest$o = (source, exclude) => {
|
|
507
|
+
var target = {};
|
|
508
|
+
for (var prop in source)
|
|
509
|
+
if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
510
|
+
target[prop] = source[prop];
|
|
511
|
+
if (source != null && __getOwnPropSymbols$u)
|
|
512
|
+
for (var prop of __getOwnPropSymbols$u(source)) {
|
|
513
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
|
|
514
|
+
target[prop] = source[prop];
|
|
515
|
+
}
|
|
516
|
+
return target;
|
|
517
|
+
};
|
|
518
|
+
const Badge = (_a) => {
|
|
519
|
+
var _b = _a, { type = "error", className } = _b, props = __objRest$o(_b, ["type", "className"]);
|
|
520
|
+
return /* @__PURE__ */ React.createElement(
|
|
521
|
+
Badge$1,
|
|
522
|
+
__spreadProps$l(__spreadValues$t({
|
|
523
|
+
className: cx(`badge-${type}`, className)
|
|
524
|
+
}, props), {
|
|
525
|
+
showZero: false
|
|
526
|
+
})
|
|
527
|
+
);
|
|
528
|
+
};
|
|
529
|
+
|
|
479
530
|
function isEmpty(rawValue) {
|
|
480
531
|
if (rawValue === null || rawValue === void 0 || rawValue === MAGIC_METRIC_NULL || Number.isNaN(rawValue)) {
|
|
481
532
|
return true;
|
|
@@ -644,28 +695,28 @@ const HoverableElement = (props) => {
|
|
|
644
695
|
return icon != null ? React.cloneElement(icon, { className }) : null;
|
|
645
696
|
};
|
|
646
697
|
|
|
647
|
-
var __defProp$
|
|
648
|
-
var __getOwnPropSymbols$
|
|
649
|
-
var __hasOwnProp$
|
|
650
|
-
var __propIsEnum$
|
|
651
|
-
var __defNormalProp$
|
|
698
|
+
var __defProp$s = Object.defineProperty;
|
|
699
|
+
var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
|
|
700
|
+
var __hasOwnProp$t = Object.prototype.hasOwnProperty;
|
|
701
|
+
var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
|
|
702
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, {
|
|
652
703
|
enumerable: true,
|
|
653
704
|
configurable: true,
|
|
654
705
|
writable: true,
|
|
655
706
|
value
|
|
656
707
|
}) : obj[key] = value;
|
|
657
|
-
var __spreadValues$
|
|
658
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
659
|
-
if (__getOwnPropSymbols$
|
|
660
|
-
if (__propIsEnum$
|
|
708
|
+
var __spreadValues$s = (a, b) => {
|
|
709
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$t.call(b, prop)) __defNormalProp$s(a, prop, b[prop]);
|
|
710
|
+
if (__getOwnPropSymbols$t) for (var prop of __getOwnPropSymbols$t(b)) {
|
|
711
|
+
if (__propIsEnum$t.call(b, prop)) __defNormalProp$s(a, prop, b[prop]);
|
|
661
712
|
}
|
|
662
713
|
return a;
|
|
663
714
|
};
|
|
664
|
-
var __objRest$
|
|
715
|
+
var __objRest$n = (source, exclude) => {
|
|
665
716
|
var target = {};
|
|
666
|
-
for (var prop in source) if (__hasOwnProp$
|
|
667
|
-
if (source != null && __getOwnPropSymbols$
|
|
668
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
717
|
+
for (var prop in source) if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
718
|
+
if (source != null && __getOwnPropSymbols$t) for (var prop of __getOwnPropSymbols$t(source)) {
|
|
719
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$t.call(source, prop)) target[prop] = source[prop];
|
|
669
720
|
}
|
|
670
721
|
return target;
|
|
671
722
|
};
|
|
@@ -688,11 +739,11 @@ const Button = React.forwardRef((props, ref) => {
|
|
|
688
739
|
onMouseLeave,
|
|
689
740
|
size = "middle"
|
|
690
741
|
} = _a,
|
|
691
|
-
restProps = __objRest$
|
|
742
|
+
restProps = __objRest$n(_a, ["type", "className", "children", "prefixIcon", "hoverPrefixIcon", "suffixIcon", "hoverSuffixIcon", "onMouseEnter", "onMouseLeave", "size"]);
|
|
692
743
|
const [status, setStatus] = useState("normal");
|
|
693
744
|
const hasIcon = prefixIcon || suffixIcon;
|
|
694
745
|
const hasHoverIcon = hoverPrefixIcon || hoverSuffixIcon;
|
|
695
|
-
return /* @__PURE__ */React.createElement(Button$1, __spreadValues$
|
|
746
|
+
return /* @__PURE__ */React.createElement(Button$1, __spreadValues$s({
|
|
696
747
|
ref,
|
|
697
748
|
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"),
|
|
698
749
|
type: isAntdButtonTypes(type) ? type : void 0,
|
|
@@ -722,6 +773,195 @@ const Button = React.forwardRef((props, ref) => {
|
|
|
722
773
|
}));
|
|
723
774
|
});
|
|
724
775
|
|
|
776
|
+
var __defProp$r = Object.defineProperty;
|
|
777
|
+
var __defProps$k = Object.defineProperties;
|
|
778
|
+
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
|
779
|
+
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
|
780
|
+
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
|
781
|
+
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
|
782
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
783
|
+
var __spreadValues$r = (a, b) => {
|
|
784
|
+
for (var prop in b || (b = {}))
|
|
785
|
+
if (__hasOwnProp$s.call(b, prop))
|
|
786
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
787
|
+
if (__getOwnPropSymbols$s)
|
|
788
|
+
for (var prop of __getOwnPropSymbols$s(b)) {
|
|
789
|
+
if (__propIsEnum$s.call(b, prop))
|
|
790
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
791
|
+
}
|
|
792
|
+
return a;
|
|
793
|
+
};
|
|
794
|
+
var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
|
|
795
|
+
var __objRest$m = (source, exclude) => {
|
|
796
|
+
var target = {};
|
|
797
|
+
for (var prop in source)
|
|
798
|
+
if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
799
|
+
target[prop] = source[prop];
|
|
800
|
+
if (source != null && __getOwnPropSymbols$s)
|
|
801
|
+
for (var prop of __getOwnPropSymbols$s(source)) {
|
|
802
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop))
|
|
803
|
+
target[prop] = source[prop];
|
|
804
|
+
}
|
|
805
|
+
return target;
|
|
806
|
+
};
|
|
807
|
+
let componentId = 0;
|
|
808
|
+
const Tooltip = (props) => {
|
|
809
|
+
const _a = props, {
|
|
810
|
+
followMouse,
|
|
811
|
+
overlayClassName,
|
|
812
|
+
overlayStyle,
|
|
813
|
+
children
|
|
814
|
+
} = _a, restProps = __objRest$m(_a, [
|
|
815
|
+
"followMouse",
|
|
816
|
+
"overlayClassName",
|
|
817
|
+
"overlayStyle",
|
|
818
|
+
"children"
|
|
819
|
+
]);
|
|
820
|
+
const id = useRef(++componentId);
|
|
821
|
+
const uniquePopupClass = `kit-popup-${id.current}`;
|
|
822
|
+
const uniqueContainerClass = `kit-tooltip-${id.current}`;
|
|
823
|
+
const _children = useMemo(() => {
|
|
824
|
+
if (followMouse) {
|
|
825
|
+
const child = React.isValidElement(children) ? children : /* @__PURE__ */ React.createElement("span", null, children);
|
|
826
|
+
return React.cloneElement(child, {
|
|
827
|
+
className: cs(child.props.className, uniqueContainerClass)
|
|
828
|
+
});
|
|
829
|
+
} else {
|
|
830
|
+
return children;
|
|
831
|
+
}
|
|
832
|
+
}, [children, followMouse, uniqueContainerClass]);
|
|
833
|
+
const onmousemove = useCallback(
|
|
834
|
+
(event) => {
|
|
835
|
+
const popup = document.querySelector(`.${uniquePopupClass}`);
|
|
836
|
+
if (!popup)
|
|
837
|
+
return;
|
|
838
|
+
popup.style.left = event.pageX + "px";
|
|
839
|
+
popup.style.top = event.pageY + "px";
|
|
840
|
+
},
|
|
841
|
+
[uniquePopupClass]
|
|
842
|
+
);
|
|
843
|
+
useEffect(() => {
|
|
844
|
+
if (followMouse) {
|
|
845
|
+
const container = document.querySelector(
|
|
846
|
+
`.${uniqueContainerClass}`
|
|
847
|
+
);
|
|
848
|
+
container == null ? void 0 : container.addEventListener("mousemove", onmousemove);
|
|
849
|
+
return () => {
|
|
850
|
+
container == null ? void 0 : container.removeEventListener("mousemove", onmousemove);
|
|
851
|
+
};
|
|
852
|
+
}
|
|
853
|
+
}, [followMouse, onmousemove, uniqueContainerClass]);
|
|
854
|
+
return /* @__PURE__ */ React.createElement(
|
|
855
|
+
Tooltip$1,
|
|
856
|
+
__spreadProps$k(__spreadValues$r({}, restProps), {
|
|
857
|
+
overlayClassName: followMouse ? cs(overlayClassName, uniquePopupClass) : overlayClassName,
|
|
858
|
+
children: _children,
|
|
859
|
+
overlayStyle: followMouse ? __spreadValues$r({
|
|
860
|
+
transform: "translate(-50%, -100%)",
|
|
861
|
+
pointerEvents: "none"
|
|
862
|
+
}, overlayStyle) : overlayStyle
|
|
863
|
+
})
|
|
864
|
+
);
|
|
865
|
+
};
|
|
866
|
+
|
|
867
|
+
var __defProp$q = Object.defineProperty;
|
|
868
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
|
869
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
|
870
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
|
871
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, {
|
|
872
|
+
enumerable: true,
|
|
873
|
+
configurable: true,
|
|
874
|
+
writable: true,
|
|
875
|
+
value
|
|
876
|
+
}) : obj[key] = value;
|
|
877
|
+
var __spreadValues$q = (a, b) => {
|
|
878
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$r.call(b, prop)) __defNormalProp$q(a, prop, b[prop]);
|
|
879
|
+
if (__getOwnPropSymbols$r) for (var prop of __getOwnPropSymbols$r(b)) {
|
|
880
|
+
if (__propIsEnum$r.call(b, prop)) __defNormalProp$q(a, prop, b[prop]);
|
|
881
|
+
}
|
|
882
|
+
return a;
|
|
883
|
+
};
|
|
884
|
+
var __objRest$l = (source, exclude) => {
|
|
885
|
+
var target = {};
|
|
886
|
+
for (var prop in source) if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
887
|
+
if (source != null && __getOwnPropSymbols$r) for (var prop of __getOwnPropSymbols$r(source)) {
|
|
888
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop)) target[prop] = source[prop];
|
|
889
|
+
}
|
|
890
|
+
return target;
|
|
891
|
+
};
|
|
892
|
+
const ButtonStyle = "bpq0js6";
|
|
893
|
+
const ButtonGroupContainer = /*#__PURE__*/styled('div')({
|
|
894
|
+
name: "ButtonGroupContainer",
|
|
895
|
+
class: "b15sn34c",
|
|
896
|
+
propsAsIs: false
|
|
897
|
+
});
|
|
898
|
+
const ButtonGroup = React.forwardRef((props, ref) => {
|
|
899
|
+
const {
|
|
900
|
+
className,
|
|
901
|
+
options,
|
|
902
|
+
size = "middle"
|
|
903
|
+
} = props;
|
|
904
|
+
if (!options.length) {
|
|
905
|
+
return null;
|
|
906
|
+
}
|
|
907
|
+
return /* @__PURE__ */React.createElement(ButtonGroupContainer, {
|
|
908
|
+
className,
|
|
909
|
+
ref
|
|
910
|
+
}, options.map((button, index) => {
|
|
911
|
+
const _a = button,
|
|
912
|
+
{
|
|
913
|
+
key,
|
|
914
|
+
icon,
|
|
915
|
+
type = "ordinary-onTint",
|
|
916
|
+
children,
|
|
917
|
+
danger,
|
|
918
|
+
ghost,
|
|
919
|
+
className: className2,
|
|
920
|
+
hideTitle,
|
|
921
|
+
title
|
|
922
|
+
} = _a,
|
|
923
|
+
buttonPropArgs = __objRest$l(_a, ["key", "icon", "type", "children", "danger", "ghost", "className", "hideTitle", "title"]);
|
|
924
|
+
if (hideTitle) {
|
|
925
|
+
return /* @__PURE__ */React.createElement(Tooltip, {
|
|
926
|
+
key: key || index,
|
|
927
|
+
overlay: title || children
|
|
928
|
+
}, buttonPropArgs.disabled ? /* @__PURE__ */React.createElement("span", {
|
|
929
|
+
style: {
|
|
930
|
+
cursor: "not-allowed"
|
|
931
|
+
}
|
|
932
|
+
}, /* @__PURE__ */React.createElement(Button, __spreadValues$q({
|
|
933
|
+
style: {
|
|
934
|
+
pointerEvents: "none"
|
|
935
|
+
},
|
|
936
|
+
type,
|
|
937
|
+
size,
|
|
938
|
+
danger,
|
|
939
|
+
ghost,
|
|
940
|
+
className: cx(ButtonStyle, className2),
|
|
941
|
+
prefixIcon: icon
|
|
942
|
+
}, buttonPropArgs))) : /* @__PURE__ */React.createElement(Button, __spreadValues$q({
|
|
943
|
+
type,
|
|
944
|
+
size,
|
|
945
|
+
danger,
|
|
946
|
+
ghost,
|
|
947
|
+
className: cx(ButtonStyle, className2),
|
|
948
|
+
prefixIcon: icon
|
|
949
|
+
}, buttonPropArgs)));
|
|
950
|
+
}
|
|
951
|
+
return /* @__PURE__ */React.createElement(Button, __spreadValues$q({
|
|
952
|
+
key: key || index,
|
|
953
|
+
type,
|
|
954
|
+
size,
|
|
955
|
+
danger,
|
|
956
|
+
ghost,
|
|
957
|
+
className: cx(ButtonStyle, className2),
|
|
958
|
+
prefixIcon: icon
|
|
959
|
+
}, buttonPropArgs), (title || children) && /* @__PURE__ */React.createElement("span", {
|
|
960
|
+
className: "button-group-item"
|
|
961
|
+
}, title || children));
|
|
962
|
+
}));
|
|
963
|
+
});
|
|
964
|
+
|
|
725
965
|
const Byte = ({ rawValue, noUnitOnZero, decimals }) => {
|
|
726
966
|
if (isEmpty(rawValue)) {
|
|
727
967
|
return Empty;
|
|
@@ -736,31 +976,31 @@ const Byte = ({ rawValue, noUnitOnZero, decimals }) => {
|
|
|
736
976
|
return /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement("span", { className: "value" }, value), /* @__PURE__ */ React.createElement("span", { className: "unit" }, ` ${unit}`));
|
|
737
977
|
};
|
|
738
978
|
|
|
739
|
-
var __defProp$
|
|
740
|
-
var __defProps$
|
|
741
|
-
var __getOwnPropDescs$
|
|
742
|
-
var __getOwnPropSymbols$
|
|
743
|
-
var __hasOwnProp$
|
|
744
|
-
var __propIsEnum$
|
|
745
|
-
var __defNormalProp$
|
|
979
|
+
var __defProp$p = Object.defineProperty;
|
|
980
|
+
var __defProps$j = Object.defineProperties;
|
|
981
|
+
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
982
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
983
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
984
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
985
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, {
|
|
746
986
|
enumerable: true,
|
|
747
987
|
configurable: true,
|
|
748
988
|
writable: true,
|
|
749
989
|
value
|
|
750
990
|
}) : obj[key] = value;
|
|
751
|
-
var __spreadValues$
|
|
752
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
753
|
-
if (__getOwnPropSymbols$
|
|
754
|
-
if (__propIsEnum$
|
|
991
|
+
var __spreadValues$p = (a, b) => {
|
|
992
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$q.call(b, prop)) __defNormalProp$p(a, prop, b[prop]);
|
|
993
|
+
if (__getOwnPropSymbols$q) for (var prop of __getOwnPropSymbols$q(b)) {
|
|
994
|
+
if (__propIsEnum$q.call(b, prop)) __defNormalProp$p(a, prop, b[prop]);
|
|
755
995
|
}
|
|
756
996
|
return a;
|
|
757
997
|
};
|
|
758
|
-
var __spreadProps$
|
|
998
|
+
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
759
999
|
var __objRest$k = (source, exclude) => {
|
|
760
1000
|
var target = {};
|
|
761
|
-
for (var prop in source) if (__hasOwnProp$
|
|
762
|
-
if (source != null && __getOwnPropSymbols$
|
|
763
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1001
|
+
for (var prop in source) if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1002
|
+
if (source != null && __getOwnPropSymbols$q) for (var prop of __getOwnPropSymbols$q(source)) {
|
|
1003
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop)) target[prop] = source[prop];
|
|
764
1004
|
}
|
|
765
1005
|
return target;
|
|
766
1006
|
};
|
|
@@ -774,7 +1014,7 @@ const Checkbox = _a => {
|
|
|
774
1014
|
compact
|
|
775
1015
|
} = _b,
|
|
776
1016
|
props = __objRest$k(_b, ["className", "children", "description", "compact"]);
|
|
777
|
-
return /* @__PURE__ */React.createElement(Checkbox$1, __spreadProps$
|
|
1017
|
+
return /* @__PURE__ */React.createElement(Checkbox$1, __spreadProps$j(__spreadValues$p({}, props), {
|
|
778
1018
|
"data-test": props["data-test"] || props.value,
|
|
779
1019
|
className: cs(className, CheckboxStyle, compact && "compact")
|
|
780
1020
|
}), children ? /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("div", {
|
|
@@ -784,30 +1024,30 @@ const Checkbox = _a => {
|
|
|
784
1024
|
}, description) : null) : null);
|
|
785
1025
|
};
|
|
786
1026
|
|
|
787
|
-
var __defProp$
|
|
788
|
-
var __getOwnPropSymbols$
|
|
789
|
-
var __hasOwnProp$
|
|
790
|
-
var __propIsEnum$
|
|
791
|
-
var __defNormalProp$
|
|
792
|
-
var __spreadValues$
|
|
1027
|
+
var __defProp$o = Object.defineProperty;
|
|
1028
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
1029
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
1030
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
1031
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1032
|
+
var __spreadValues$o = (a, b) => {
|
|
793
1033
|
for (var prop in b || (b = {}))
|
|
794
|
-
if (__hasOwnProp$
|
|
795
|
-
__defNormalProp$
|
|
796
|
-
if (__getOwnPropSymbols$
|
|
797
|
-
for (var prop of __getOwnPropSymbols$
|
|
798
|
-
if (__propIsEnum$
|
|
799
|
-
__defNormalProp$
|
|
1034
|
+
if (__hasOwnProp$p.call(b, prop))
|
|
1035
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
1036
|
+
if (__getOwnPropSymbols$p)
|
|
1037
|
+
for (var prop of __getOwnPropSymbols$p(b)) {
|
|
1038
|
+
if (__propIsEnum$p.call(b, prop))
|
|
1039
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
800
1040
|
}
|
|
801
1041
|
return a;
|
|
802
1042
|
};
|
|
803
1043
|
var __objRest$j = (source, exclude) => {
|
|
804
1044
|
var target = {};
|
|
805
1045
|
for (var prop in source)
|
|
806
|
-
if (__hasOwnProp$
|
|
1046
|
+
if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
807
1047
|
target[prop] = source[prop];
|
|
808
|
-
if (source != null && __getOwnPropSymbols$
|
|
809
|
-
for (var prop of __getOwnPropSymbols$
|
|
810
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1048
|
+
if (source != null && __getOwnPropSymbols$p)
|
|
1049
|
+
for (var prop of __getOwnPropSymbols$p(source)) {
|
|
1050
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop))
|
|
811
1051
|
target[prop] = source[prop];
|
|
812
1052
|
}
|
|
813
1053
|
return target;
|
|
@@ -816,7 +1056,7 @@ const FieldsBoolean = (_a) => {
|
|
|
816
1056
|
var _b = _a, { input, children } = _b, props = __objRest$j(_b, ["input", "children"]);
|
|
817
1057
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
818
1058
|
Checkbox,
|
|
819
|
-
__spreadValues$
|
|
1059
|
+
__spreadValues$o({
|
|
820
1060
|
checked: Boolean(input.value),
|
|
821
1061
|
onChange: (e) => input.onChange(e.target.checked)
|
|
822
1062
|
}, props),
|
|
@@ -841,17 +1081,17 @@ const FieldsDateTime = ({ input }) => /* @__PURE__ */ React.createElement(React.
|
|
|
841
1081
|
}
|
|
842
1082
|
));
|
|
843
1083
|
|
|
844
|
-
var __getOwnPropSymbols$
|
|
845
|
-
var __hasOwnProp$
|
|
846
|
-
var __propIsEnum$
|
|
1084
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
1085
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
1086
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
847
1087
|
var __objRest$i = (source, exclude) => {
|
|
848
1088
|
var target = {};
|
|
849
1089
|
for (var prop in source)
|
|
850
|
-
if (__hasOwnProp$
|
|
1090
|
+
if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
851
1091
|
target[prop] = source[prop];
|
|
852
|
-
if (source != null && __getOwnPropSymbols$
|
|
853
|
-
for (var prop of __getOwnPropSymbols$
|
|
854
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1092
|
+
if (source != null && __getOwnPropSymbols$o)
|
|
1093
|
+
for (var prop of __getOwnPropSymbols$o(source)) {
|
|
1094
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
|
|
855
1095
|
target[prop] = source[prop];
|
|
856
1096
|
}
|
|
857
1097
|
return target;
|
|
@@ -895,59 +1135,54 @@ const FullView = /*#__PURE__*/styled('div')({
|
|
|
895
1135
|
});
|
|
896
1136
|
const InputStyle = "ipd9bk";
|
|
897
1137
|
const KitInputStyle = "kypn5o5";
|
|
898
|
-
const PAGINATION_SELECTOR = ".pagination-wrapper";
|
|
899
|
-
const TABLE_WRAPPER_SELECTOR = ".table-wrapper";
|
|
900
|
-
const THEAD_SELECTOR = ".ant-table-thead";
|
|
901
|
-
const TBODY_SELECTOR = ".ant-table-tbody";
|
|
902
|
-
const MODAL_WHITELIST = [".ant-select-dropdown", ".ant-picker-dropdown", ".ant-dropdown", ".ant-dropdown-menu-submenu", ".ant-tooltip", ".ant-dropdown-menu-item-group-list"];
|
|
903
1138
|
|
|
904
|
-
var __defProp$
|
|
905
|
-
var __getOwnPropSymbols$
|
|
906
|
-
var __hasOwnProp$
|
|
907
|
-
var __propIsEnum$
|
|
908
|
-
var __defNormalProp$
|
|
909
|
-
var __spreadValues$
|
|
1139
|
+
var __defProp$n = Object.defineProperty;
|
|
1140
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
1141
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
1142
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
1143
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1144
|
+
var __spreadValues$n = (a, b) => {
|
|
910
1145
|
for (var prop in b || (b = {}))
|
|
911
|
-
if (__hasOwnProp$
|
|
912
|
-
__defNormalProp$
|
|
913
|
-
if (__getOwnPropSymbols$
|
|
914
|
-
for (var prop of __getOwnPropSymbols$
|
|
915
|
-
if (__propIsEnum$
|
|
916
|
-
__defNormalProp$
|
|
1146
|
+
if (__hasOwnProp$n.call(b, prop))
|
|
1147
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
1148
|
+
if (__getOwnPropSymbols$n)
|
|
1149
|
+
for (var prop of __getOwnPropSymbols$n(b)) {
|
|
1150
|
+
if (__propIsEnum$n.call(b, prop))
|
|
1151
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
917
1152
|
}
|
|
918
1153
|
return a;
|
|
919
1154
|
};
|
|
920
1155
|
const Loading = ({ fullView = true }) => {
|
|
921
1156
|
const Wrapper = fullView ? FullView : Fragment;
|
|
922
1157
|
const props = fullView ? { className: "loading-full-view" } : {};
|
|
923
|
-
return /* @__PURE__ */ React.createElement(Wrapper, __spreadValues$
|
|
1158
|
+
return /* @__PURE__ */ React.createElement(Wrapper, __spreadValues$n({}, props), /* @__PURE__ */ React.createElement("div", { className: "loading" }, /* @__PURE__ */ React.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React.createElement("div", { className: "loading__sugar" })));
|
|
924
1159
|
};
|
|
925
1160
|
|
|
926
|
-
var __defProp$
|
|
927
|
-
var __defProps$
|
|
928
|
-
var __getOwnPropDescs$
|
|
929
|
-
var __getOwnPropSymbols$
|
|
930
|
-
var __hasOwnProp$
|
|
931
|
-
var __propIsEnum$
|
|
932
|
-
var __defNormalProp$
|
|
1161
|
+
var __defProp$m = Object.defineProperty;
|
|
1162
|
+
var __defProps$i = Object.defineProperties;
|
|
1163
|
+
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
1164
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
1165
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
1166
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
1167
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, {
|
|
933
1168
|
enumerable: true,
|
|
934
1169
|
configurable: true,
|
|
935
1170
|
writable: true,
|
|
936
1171
|
value
|
|
937
1172
|
}) : obj[key] = value;
|
|
938
|
-
var __spreadValues$
|
|
939
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
940
|
-
if (__getOwnPropSymbols$
|
|
941
|
-
if (__propIsEnum$
|
|
1173
|
+
var __spreadValues$m = (a, b) => {
|
|
1174
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$m.call(b, prop)) __defNormalProp$m(a, prop, b[prop]);
|
|
1175
|
+
if (__getOwnPropSymbols$m) for (var prop of __getOwnPropSymbols$m(b)) {
|
|
1176
|
+
if (__propIsEnum$m.call(b, prop)) __defNormalProp$m(a, prop, b[prop]);
|
|
942
1177
|
}
|
|
943
1178
|
return a;
|
|
944
1179
|
};
|
|
945
|
-
var __spreadProps$
|
|
1180
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
946
1181
|
var __objRest$h = (source, exclude) => {
|
|
947
1182
|
var target = {};
|
|
948
|
-
for (var prop in source) if (__hasOwnProp$
|
|
949
|
-
if (source != null && __getOwnPropSymbols$
|
|
950
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1183
|
+
for (var prop in source) if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1184
|
+
if (source != null && __getOwnPropSymbols$m) for (var prop of __getOwnPropSymbols$m(source)) {
|
|
1185
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop)) target[prop] = source[prop];
|
|
951
1186
|
}
|
|
952
1187
|
return target;
|
|
953
1188
|
};
|
|
@@ -1001,7 +1236,7 @@ const Select = _a => {
|
|
|
1001
1236
|
inputDom && (placeholder || item) && inputDom.setAttribute("data-test", String(placeholder || item.textContent));
|
|
1002
1237
|
}
|
|
1003
1238
|
}, [selectRef, placeholder]);
|
|
1004
|
-
return /* @__PURE__ */React.createElement(Select$1, __spreadValues$
|
|
1239
|
+
return /* @__PURE__ */React.createElement(Select$1, __spreadValues$m(__spreadProps$i(__spreadValues$m({}, input), {
|
|
1005
1240
|
ref: selectRef,
|
|
1006
1241
|
size,
|
|
1007
1242
|
value: multiple ? input.value || [] : input.value || void 0,
|
|
@@ -1041,38 +1276,38 @@ const Select = _a => {
|
|
|
1041
1276
|
loading,
|
|
1042
1277
|
placeholder
|
|
1043
1278
|
}), restProps), React.Children.map(children, child => {
|
|
1044
|
-
return isElement(child) ? __spreadProps$
|
|
1045
|
-
props: __spreadProps$
|
|
1279
|
+
return isElement(child) ? __spreadProps$i(__spreadValues$m({}, child), {
|
|
1280
|
+
props: __spreadProps$i(__spreadValues$m({}, child.props), {
|
|
1046
1281
|
"data-test": child.props.value
|
|
1047
1282
|
})
|
|
1048
1283
|
}) : child;
|
|
1049
1284
|
}));
|
|
1050
1285
|
};
|
|
1051
1286
|
|
|
1052
|
-
var __defProp$
|
|
1053
|
-
var __getOwnPropSymbols$
|
|
1054
|
-
var __hasOwnProp$
|
|
1055
|
-
var __propIsEnum$
|
|
1056
|
-
var __defNormalProp$
|
|
1057
|
-
var __spreadValues$
|
|
1287
|
+
var __defProp$l = Object.defineProperty;
|
|
1288
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
1289
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
1290
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
1291
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1292
|
+
var __spreadValues$l = (a, b) => {
|
|
1058
1293
|
for (var prop in b || (b = {}))
|
|
1059
|
-
if (__hasOwnProp$
|
|
1060
|
-
__defNormalProp$
|
|
1061
|
-
if (__getOwnPropSymbols$
|
|
1062
|
-
for (var prop of __getOwnPropSymbols$
|
|
1063
|
-
if (__propIsEnum$
|
|
1064
|
-
__defNormalProp$
|
|
1294
|
+
if (__hasOwnProp$l.call(b, prop))
|
|
1295
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
1296
|
+
if (__getOwnPropSymbols$l)
|
|
1297
|
+
for (var prop of __getOwnPropSymbols$l(b)) {
|
|
1298
|
+
if (__propIsEnum$l.call(b, prop))
|
|
1299
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
1065
1300
|
}
|
|
1066
1301
|
return a;
|
|
1067
1302
|
};
|
|
1068
1303
|
var __objRest$g = (source, exclude) => {
|
|
1069
1304
|
var target = {};
|
|
1070
1305
|
for (var prop in source)
|
|
1071
|
-
if (__hasOwnProp$
|
|
1306
|
+
if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1072
1307
|
target[prop] = source[prop];
|
|
1073
|
-
if (source != null && __getOwnPropSymbols$
|
|
1074
|
-
for (var prop of __getOwnPropSymbols$
|
|
1075
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1308
|
+
if (source != null && __getOwnPropSymbols$l)
|
|
1309
|
+
for (var prop of __getOwnPropSymbols$l(source)) {
|
|
1310
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
|
|
1076
1311
|
target[prop] = source[prop];
|
|
1077
1312
|
}
|
|
1078
1313
|
return target;
|
|
@@ -1087,7 +1322,7 @@ const FieldsEnum = (_a) => {
|
|
|
1087
1322
|
"enumValues",
|
|
1088
1323
|
"emptyLabel"
|
|
1089
1324
|
]);
|
|
1090
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Select, __spreadValues$
|
|
1325
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Select, __spreadValues$l({}, restProps), emptyLabel && /* @__PURE__ */ React.createElement(Select$1.Option, { value: "" }, emptyLabel), enumValues.map((v) => {
|
|
1091
1326
|
const item = typeof v === "string" ? { value: v, text: v } : v;
|
|
1092
1327
|
return /* @__PURE__ */ React.createElement(
|
|
1093
1328
|
Select$1.Option,
|
|
@@ -1101,31 +1336,31 @@ const FieldsEnum = (_a) => {
|
|
|
1101
1336
|
})));
|
|
1102
1337
|
};
|
|
1103
1338
|
|
|
1104
|
-
var __defProp$
|
|
1105
|
-
var __defProps$
|
|
1106
|
-
var __getOwnPropDescs$
|
|
1107
|
-
var __getOwnPropSymbols$
|
|
1108
|
-
var __hasOwnProp$
|
|
1109
|
-
var __propIsEnum$
|
|
1110
|
-
var __defNormalProp$
|
|
1339
|
+
var __defProp$k = Object.defineProperty;
|
|
1340
|
+
var __defProps$h = Object.defineProperties;
|
|
1341
|
+
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
1342
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
|
1343
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
|
1344
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
|
1345
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, {
|
|
1111
1346
|
enumerable: true,
|
|
1112
1347
|
configurable: true,
|
|
1113
1348
|
writable: true,
|
|
1114
1349
|
value
|
|
1115
1350
|
}) : obj[key] = value;
|
|
1116
|
-
var __spreadValues$
|
|
1117
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1118
|
-
if (__getOwnPropSymbols$
|
|
1119
|
-
if (__propIsEnum$
|
|
1351
|
+
var __spreadValues$k = (a, b) => {
|
|
1352
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$k.call(b, prop)) __defNormalProp$k(a, prop, b[prop]);
|
|
1353
|
+
if (__getOwnPropSymbols$k) for (var prop of __getOwnPropSymbols$k(b)) {
|
|
1354
|
+
if (__propIsEnum$k.call(b, prop)) __defNormalProp$k(a, prop, b[prop]);
|
|
1120
1355
|
}
|
|
1121
1356
|
return a;
|
|
1122
1357
|
};
|
|
1123
|
-
var __spreadProps$
|
|
1358
|
+
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
1124
1359
|
var __objRest$f = (source, exclude) => {
|
|
1125
1360
|
var target = {};
|
|
1126
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1127
|
-
if (source != null && __getOwnPropSymbols$
|
|
1128
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1361
|
+
for (var prop in source) if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1362
|
+
if (source != null && __getOwnPropSymbols$k) for (var prop of __getOwnPropSymbols$k(source)) {
|
|
1363
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop)) target[prop] = source[prop];
|
|
1129
1364
|
}
|
|
1130
1365
|
return target;
|
|
1131
1366
|
};
|
|
@@ -1167,7 +1402,7 @@ const InputNumber = _a => {
|
|
|
1167
1402
|
middle: Typo.Label.l3_regular,
|
|
1168
1403
|
small: Typo.Label.l4_regular
|
|
1169
1404
|
}[size];
|
|
1170
|
-
return /* @__PURE__ */React.createElement(AntdInputNumberStyled, __spreadProps$
|
|
1405
|
+
return /* @__PURE__ */React.createElement(AntdInputNumberStyled, __spreadProps$h(__spreadValues$k({}, props), {
|
|
1171
1406
|
size,
|
|
1172
1407
|
controls,
|
|
1173
1408
|
"data-test": props.name,
|
|
@@ -1177,33 +1412,33 @@ const InputNumber = _a => {
|
|
|
1177
1412
|
}));
|
|
1178
1413
|
};
|
|
1179
1414
|
|
|
1180
|
-
var __defProp$
|
|
1181
|
-
var __defProps$
|
|
1182
|
-
var __getOwnPropDescs$
|
|
1183
|
-
var __getOwnPropSymbols$
|
|
1184
|
-
var __hasOwnProp$
|
|
1185
|
-
var __propIsEnum$
|
|
1186
|
-
var __defNormalProp$
|
|
1187
|
-
var __spreadValues$
|
|
1415
|
+
var __defProp$j = Object.defineProperty;
|
|
1416
|
+
var __defProps$g = Object.defineProperties;
|
|
1417
|
+
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
1418
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
1419
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
1420
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
1421
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1422
|
+
var __spreadValues$j = (a, b) => {
|
|
1188
1423
|
for (var prop in b || (b = {}))
|
|
1189
|
-
if (__hasOwnProp$
|
|
1190
|
-
__defNormalProp$
|
|
1191
|
-
if (__getOwnPropSymbols$
|
|
1192
|
-
for (var prop of __getOwnPropSymbols$
|
|
1193
|
-
if (__propIsEnum$
|
|
1194
|
-
__defNormalProp$
|
|
1424
|
+
if (__hasOwnProp$j.call(b, prop))
|
|
1425
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
1426
|
+
if (__getOwnPropSymbols$j)
|
|
1427
|
+
for (var prop of __getOwnPropSymbols$j(b)) {
|
|
1428
|
+
if (__propIsEnum$j.call(b, prop))
|
|
1429
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
1195
1430
|
}
|
|
1196
1431
|
return a;
|
|
1197
1432
|
};
|
|
1198
|
-
var __spreadProps$
|
|
1433
|
+
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
1199
1434
|
var __objRest$e = (source, exclude) => {
|
|
1200
1435
|
var target = {};
|
|
1201
1436
|
for (var prop in source)
|
|
1202
|
-
if (__hasOwnProp$
|
|
1437
|
+
if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1203
1438
|
target[prop] = source[prop];
|
|
1204
|
-
if (source != null && __getOwnPropSymbols$
|
|
1205
|
-
for (var prop of __getOwnPropSymbols$
|
|
1206
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1439
|
+
if (source != null && __getOwnPropSymbols$j)
|
|
1440
|
+
for (var prop of __getOwnPropSymbols$j(source)) {
|
|
1441
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
|
|
1207
1442
|
target[prop] = source[prop];
|
|
1208
1443
|
}
|
|
1209
1444
|
return target;
|
|
@@ -1222,7 +1457,7 @@ const FieldsFloat = (_a) => {
|
|
|
1222
1457
|
]);
|
|
1223
1458
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
1224
1459
|
InputNumber,
|
|
1225
|
-
__spreadValues$
|
|
1460
|
+
__spreadValues$j(__spreadProps$g(__spreadValues$j({}, input), {
|
|
1226
1461
|
onBlur: (e) => onBlur ? onBlur(input, e) : input.onBlur(e),
|
|
1227
1462
|
autoComplete,
|
|
1228
1463
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
@@ -1230,33 +1465,33 @@ const FieldsFloat = (_a) => {
|
|
|
1230
1465
|
));
|
|
1231
1466
|
};
|
|
1232
1467
|
|
|
1233
|
-
var __defProp$
|
|
1234
|
-
var __defProps$
|
|
1235
|
-
var __getOwnPropDescs$
|
|
1236
|
-
var __getOwnPropSymbols$
|
|
1237
|
-
var __hasOwnProp$
|
|
1238
|
-
var __propIsEnum$
|
|
1239
|
-
var __defNormalProp$
|
|
1240
|
-
var __spreadValues$
|
|
1468
|
+
var __defProp$i = Object.defineProperty;
|
|
1469
|
+
var __defProps$f = Object.defineProperties;
|
|
1470
|
+
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
1471
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
1472
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
1473
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
1474
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1475
|
+
var __spreadValues$i = (a, b) => {
|
|
1241
1476
|
for (var prop in b || (b = {}))
|
|
1242
|
-
if (__hasOwnProp$
|
|
1243
|
-
__defNormalProp$
|
|
1244
|
-
if (__getOwnPropSymbols$
|
|
1245
|
-
for (var prop of __getOwnPropSymbols$
|
|
1246
|
-
if (__propIsEnum$
|
|
1247
|
-
__defNormalProp$
|
|
1477
|
+
if (__hasOwnProp$i.call(b, prop))
|
|
1478
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
1479
|
+
if (__getOwnPropSymbols$i)
|
|
1480
|
+
for (var prop of __getOwnPropSymbols$i(b)) {
|
|
1481
|
+
if (__propIsEnum$i.call(b, prop))
|
|
1482
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
1248
1483
|
}
|
|
1249
1484
|
return a;
|
|
1250
1485
|
};
|
|
1251
|
-
var __spreadProps$
|
|
1486
|
+
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
1252
1487
|
var __objRest$d = (source, exclude) => {
|
|
1253
1488
|
var target = {};
|
|
1254
1489
|
for (var prop in source)
|
|
1255
|
-
if (__hasOwnProp$
|
|
1490
|
+
if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1256
1491
|
target[prop] = source[prop];
|
|
1257
|
-
if (source != null && __getOwnPropSymbols$
|
|
1258
|
-
for (var prop of __getOwnPropSymbols$
|
|
1259
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1492
|
+
if (source != null && __getOwnPropSymbols$i)
|
|
1493
|
+
for (var prop of __getOwnPropSymbols$i(source)) {
|
|
1494
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
|
|
1260
1495
|
target[prop] = source[prop];
|
|
1261
1496
|
}
|
|
1262
1497
|
return target;
|
|
@@ -1278,7 +1513,7 @@ const Input = (_a) => {
|
|
|
1278
1513
|
}[size];
|
|
1279
1514
|
return /* @__PURE__ */ React.createElement(
|
|
1280
1515
|
Input$1,
|
|
1281
|
-
__spreadProps$
|
|
1516
|
+
__spreadProps$f(__spreadValues$i({}, props), {
|
|
1282
1517
|
size,
|
|
1283
1518
|
"data-test": props.name,
|
|
1284
1519
|
className: cs(className, InputStyle, typo, error ? "error" : "")
|
|
@@ -1286,33 +1521,33 @@ const Input = (_a) => {
|
|
|
1286
1521
|
);
|
|
1287
1522
|
};
|
|
1288
1523
|
|
|
1289
|
-
var __defProp$
|
|
1290
|
-
var __defProps$
|
|
1291
|
-
var __getOwnPropDescs$
|
|
1292
|
-
var __getOwnPropSymbols$
|
|
1293
|
-
var __hasOwnProp$
|
|
1294
|
-
var __propIsEnum$
|
|
1295
|
-
var __defNormalProp$
|
|
1296
|
-
var __spreadValues$
|
|
1524
|
+
var __defProp$h = Object.defineProperty;
|
|
1525
|
+
var __defProps$e = Object.defineProperties;
|
|
1526
|
+
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
|
1527
|
+
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
|
1528
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
1529
|
+
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
|
1530
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1531
|
+
var __spreadValues$h = (a, b) => {
|
|
1297
1532
|
for (var prop in b || (b = {}))
|
|
1298
|
-
if (__hasOwnProp$
|
|
1299
|
-
__defNormalProp$
|
|
1300
|
-
if (__getOwnPropSymbols$
|
|
1301
|
-
for (var prop of __getOwnPropSymbols$
|
|
1302
|
-
if (__propIsEnum$
|
|
1303
|
-
__defNormalProp$
|
|
1533
|
+
if (__hasOwnProp$h.call(b, prop))
|
|
1534
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
1535
|
+
if (__getOwnPropSymbols$h)
|
|
1536
|
+
for (var prop of __getOwnPropSymbols$h(b)) {
|
|
1537
|
+
if (__propIsEnum$h.call(b, prop))
|
|
1538
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
1304
1539
|
}
|
|
1305
1540
|
return a;
|
|
1306
1541
|
};
|
|
1307
|
-
var __spreadProps$
|
|
1542
|
+
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
|
1308
1543
|
var __objRest$c = (source, exclude) => {
|
|
1309
1544
|
var target = {};
|
|
1310
1545
|
for (var prop in source)
|
|
1311
|
-
if (__hasOwnProp$
|
|
1546
|
+
if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1312
1547
|
target[prop] = source[prop];
|
|
1313
|
-
if (source != null && __getOwnPropSymbols$
|
|
1314
|
-
for (var prop of __getOwnPropSymbols$
|
|
1315
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1548
|
+
if (source != null && __getOwnPropSymbols$h)
|
|
1549
|
+
for (var prop of __getOwnPropSymbols$h(source)) {
|
|
1550
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
|
|
1316
1551
|
target[prop] = source[prop];
|
|
1317
1552
|
}
|
|
1318
1553
|
return target;
|
|
@@ -1333,7 +1568,7 @@ const FieldsInt = (_a) => {
|
|
|
1333
1568
|
]);
|
|
1334
1569
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
1335
1570
|
Input,
|
|
1336
|
-
__spreadValues$
|
|
1571
|
+
__spreadValues$h(__spreadProps$e(__spreadValues$h({}, input), {
|
|
1337
1572
|
onChange: (e) => {
|
|
1338
1573
|
const value = e.currentTarget.value;
|
|
1339
1574
|
if (supportNegativeValue) {
|
|
@@ -1368,31 +1603,31 @@ const formatterInteger = (value) => {
|
|
|
1368
1603
|
}
|
|
1369
1604
|
};
|
|
1370
1605
|
|
|
1371
|
-
var __defProp$
|
|
1372
|
-
var __defProps$
|
|
1373
|
-
var __getOwnPropDescs$
|
|
1374
|
-
var __getOwnPropSymbols$
|
|
1375
|
-
var __hasOwnProp$
|
|
1376
|
-
var __propIsEnum$
|
|
1377
|
-
var __defNormalProp$
|
|
1606
|
+
var __defProp$g = Object.defineProperty;
|
|
1607
|
+
var __defProps$d = Object.defineProperties;
|
|
1608
|
+
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
1609
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
1610
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
1611
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
1612
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, {
|
|
1378
1613
|
enumerable: true,
|
|
1379
1614
|
configurable: true,
|
|
1380
1615
|
writable: true,
|
|
1381
1616
|
value
|
|
1382
1617
|
}) : obj[key] = value;
|
|
1383
|
-
var __spreadValues$
|
|
1384
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1385
|
-
if (__getOwnPropSymbols$
|
|
1386
|
-
if (__propIsEnum$
|
|
1618
|
+
var __spreadValues$g = (a, b) => {
|
|
1619
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$g.call(b, prop)) __defNormalProp$g(a, prop, b[prop]);
|
|
1620
|
+
if (__getOwnPropSymbols$g) for (var prop of __getOwnPropSymbols$g(b)) {
|
|
1621
|
+
if (__propIsEnum$g.call(b, prop)) __defNormalProp$g(a, prop, b[prop]);
|
|
1387
1622
|
}
|
|
1388
1623
|
return a;
|
|
1389
1624
|
};
|
|
1390
|
-
var __spreadProps$
|
|
1625
|
+
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
|
1391
1626
|
var __objRest$b = (source, exclude) => {
|
|
1392
1627
|
var target = {};
|
|
1393
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1394
|
-
if (source != null && __getOwnPropSymbols$
|
|
1395
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1628
|
+
for (var prop in source) if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1629
|
+
if (source != null && __getOwnPropSymbols$g) for (var prop of __getOwnPropSymbols$g(source)) {
|
|
1630
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop)) target[prop] = source[prop];
|
|
1396
1631
|
}
|
|
1397
1632
|
return target;
|
|
1398
1633
|
};
|
|
@@ -1436,7 +1671,7 @@ const InputInteger = _a => {
|
|
|
1436
1671
|
middle: Typo.Label.l3_regular,
|
|
1437
1672
|
small: Typo.Label.l4_regular
|
|
1438
1673
|
}[size];
|
|
1439
|
-
return /* @__PURE__ */React.createElement(AntdIntStyled, __spreadProps$
|
|
1674
|
+
return /* @__PURE__ */React.createElement(AntdIntStyled, __spreadProps$d(__spreadValues$g({}, props), {
|
|
1440
1675
|
size,
|
|
1441
1676
|
formatter: formatterInteger,
|
|
1442
1677
|
parser: formatterInteger,
|
|
@@ -1450,33 +1685,33 @@ const InputInteger = _a => {
|
|
|
1450
1685
|
}));
|
|
1451
1686
|
};
|
|
1452
1687
|
|
|
1453
|
-
var __defProp$
|
|
1454
|
-
var __defProps$
|
|
1455
|
-
var __getOwnPropDescs$
|
|
1456
|
-
var __getOwnPropSymbols$
|
|
1457
|
-
var __hasOwnProp$
|
|
1458
|
-
var __propIsEnum$
|
|
1459
|
-
var __defNormalProp$
|
|
1460
|
-
var __spreadValues$
|
|
1688
|
+
var __defProp$f = Object.defineProperty;
|
|
1689
|
+
var __defProps$c = Object.defineProperties;
|
|
1690
|
+
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
1691
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
1692
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
1693
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
1694
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1695
|
+
var __spreadValues$f = (a, b) => {
|
|
1461
1696
|
for (var prop in b || (b = {}))
|
|
1462
|
-
if (__hasOwnProp$
|
|
1463
|
-
__defNormalProp$
|
|
1464
|
-
if (__getOwnPropSymbols$
|
|
1465
|
-
for (var prop of __getOwnPropSymbols$
|
|
1466
|
-
if (__propIsEnum$
|
|
1467
|
-
__defNormalProp$
|
|
1697
|
+
if (__hasOwnProp$f.call(b, prop))
|
|
1698
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
1699
|
+
if (__getOwnPropSymbols$f)
|
|
1700
|
+
for (var prop of __getOwnPropSymbols$f(b)) {
|
|
1701
|
+
if (__propIsEnum$f.call(b, prop))
|
|
1702
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
1468
1703
|
}
|
|
1469
1704
|
return a;
|
|
1470
1705
|
};
|
|
1471
|
-
var __spreadProps$
|
|
1706
|
+
var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
|
|
1472
1707
|
var __objRest$a = (source, exclude) => {
|
|
1473
1708
|
var target = {};
|
|
1474
1709
|
for (var prop in source)
|
|
1475
|
-
if (__hasOwnProp$
|
|
1710
|
+
if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1476
1711
|
target[prop] = source[prop];
|
|
1477
|
-
if (source != null && __getOwnPropSymbols$
|
|
1478
|
-
for (var prop of __getOwnPropSymbols$
|
|
1479
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1712
|
+
if (source != null && __getOwnPropSymbols$f)
|
|
1713
|
+
for (var prop of __getOwnPropSymbols$f(source)) {
|
|
1714
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
|
|
1480
1715
|
target[prop] = source[prop];
|
|
1481
1716
|
}
|
|
1482
1717
|
return target;
|
|
@@ -1493,7 +1728,7 @@ const FieldsInteger = (_a) => {
|
|
|
1493
1728
|
]);
|
|
1494
1729
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
1495
1730
|
InputInteger,
|
|
1496
|
-
__spreadProps$
|
|
1731
|
+
__spreadProps$c(__spreadValues$f(__spreadValues$f({}, props), input), {
|
|
1497
1732
|
onBlur: (e) => onBlur ? onBlur(input, e) : input.onBlur(e),
|
|
1498
1733
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
1499
1734
|
})
|
|
@@ -1657,33 +1892,33 @@ const Overflow = props => {
|
|
|
1657
1892
|
}, children), showOverflow && /* @__PURE__ */React.createElement("span", null, overflow));
|
|
1658
1893
|
};
|
|
1659
1894
|
|
|
1660
|
-
var __defProp$
|
|
1661
|
-
var __defProps$
|
|
1662
|
-
var __getOwnPropDescs$
|
|
1663
|
-
var __getOwnPropSymbols$
|
|
1664
|
-
var __hasOwnProp$
|
|
1665
|
-
var __propIsEnum$
|
|
1666
|
-
var __defNormalProp$
|
|
1667
|
-
var __spreadValues$
|
|
1895
|
+
var __defProp$e = Object.defineProperty;
|
|
1896
|
+
var __defProps$b = Object.defineProperties;
|
|
1897
|
+
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
|
1898
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
1899
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
1900
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
1901
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1902
|
+
var __spreadValues$e = (a, b) => {
|
|
1668
1903
|
for (var prop in b || (b = {}))
|
|
1669
|
-
if (__hasOwnProp$
|
|
1670
|
-
__defNormalProp$
|
|
1671
|
-
if (__getOwnPropSymbols$
|
|
1672
|
-
for (var prop of __getOwnPropSymbols$
|
|
1673
|
-
if (__propIsEnum$
|
|
1674
|
-
__defNormalProp$
|
|
1904
|
+
if (__hasOwnProp$e.call(b, prop))
|
|
1905
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
1906
|
+
if (__getOwnPropSymbols$e)
|
|
1907
|
+
for (var prop of __getOwnPropSymbols$e(b)) {
|
|
1908
|
+
if (__propIsEnum$e.call(b, prop))
|
|
1909
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
1675
1910
|
}
|
|
1676
1911
|
return a;
|
|
1677
1912
|
};
|
|
1678
|
-
var __spreadProps$
|
|
1913
|
+
var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
|
|
1679
1914
|
var __objRest$9 = (source, exclude) => {
|
|
1680
1915
|
var target = {};
|
|
1681
1916
|
for (var prop in source)
|
|
1682
|
-
if (__hasOwnProp$
|
|
1917
|
+
if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1683
1918
|
target[prop] = source[prop];
|
|
1684
|
-
if (source != null && __getOwnPropSymbols$
|
|
1685
|
-
for (var prop of __getOwnPropSymbols$
|
|
1686
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1919
|
+
if (source != null && __getOwnPropSymbols$e)
|
|
1920
|
+
for (var prop of __getOwnPropSymbols$e(source)) {
|
|
1921
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
|
|
1687
1922
|
target[prop] = source[prop];
|
|
1688
1923
|
}
|
|
1689
1924
|
return target;
|
|
@@ -1734,7 +1969,7 @@ const FieldsString = (_a) => {
|
|
|
1734
1969
|
}
|
|
1735
1970
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
1736
1971
|
Input,
|
|
1737
|
-
__spreadProps$
|
|
1972
|
+
__spreadProps$b(__spreadValues$e(__spreadProps$b(__spreadValues$e({
|
|
1738
1973
|
className: cs(
|
|
1739
1974
|
className,
|
|
1740
1975
|
KitInputStyle,
|
|
@@ -1759,33 +1994,33 @@ const FieldsString = (_a) => {
|
|
|
1759
1994
|
));
|
|
1760
1995
|
};
|
|
1761
1996
|
|
|
1762
|
-
var __defProp$
|
|
1763
|
-
var __defProps$
|
|
1764
|
-
var __getOwnPropDescs$
|
|
1765
|
-
var __getOwnPropSymbols$
|
|
1766
|
-
var __hasOwnProp$
|
|
1767
|
-
var __propIsEnum$
|
|
1768
|
-
var __defNormalProp$
|
|
1769
|
-
var __spreadValues$
|
|
1997
|
+
var __defProp$d = Object.defineProperty;
|
|
1998
|
+
var __defProps$a = Object.defineProperties;
|
|
1999
|
+
var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
|
|
2000
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
2001
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
2002
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
2003
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2004
|
+
var __spreadValues$d = (a, b) => {
|
|
1770
2005
|
for (var prop in b || (b = {}))
|
|
1771
|
-
if (__hasOwnProp$
|
|
1772
|
-
__defNormalProp$
|
|
1773
|
-
if (__getOwnPropSymbols$
|
|
1774
|
-
for (var prop of __getOwnPropSymbols$
|
|
1775
|
-
if (__propIsEnum$
|
|
1776
|
-
__defNormalProp$
|
|
2006
|
+
if (__hasOwnProp$d.call(b, prop))
|
|
2007
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
2008
|
+
if (__getOwnPropSymbols$d)
|
|
2009
|
+
for (var prop of __getOwnPropSymbols$d(b)) {
|
|
2010
|
+
if (__propIsEnum$d.call(b, prop))
|
|
2011
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
1777
2012
|
}
|
|
1778
2013
|
return a;
|
|
1779
2014
|
};
|
|
1780
|
-
var __spreadProps$
|
|
2015
|
+
var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
|
|
1781
2016
|
var __objRest$8 = (source, exclude) => {
|
|
1782
2017
|
var target = {};
|
|
1783
2018
|
for (var prop in source)
|
|
1784
|
-
if (__hasOwnProp$
|
|
2019
|
+
if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1785
2020
|
target[prop] = source[prop];
|
|
1786
|
-
if (source != null && __getOwnPropSymbols$
|
|
1787
|
-
for (var prop of __getOwnPropSymbols$
|
|
1788
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2021
|
+
if (source != null && __getOwnPropSymbols$d)
|
|
2022
|
+
for (var prop of __getOwnPropSymbols$d(source)) {
|
|
2023
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
|
|
1789
2024
|
target[prop] = source[prop];
|
|
1790
2025
|
}
|
|
1791
2026
|
return target;
|
|
@@ -1807,7 +2042,7 @@ const TextArea = (_a) => {
|
|
|
1807
2042
|
}[size];
|
|
1808
2043
|
return /* @__PURE__ */ React.createElement(
|
|
1809
2044
|
Input$1.TextArea,
|
|
1810
|
-
__spreadProps$
|
|
2045
|
+
__spreadProps$a(__spreadValues$d({}, props), {
|
|
1811
2046
|
className: cs(
|
|
1812
2047
|
className,
|
|
1813
2048
|
InputStyle,
|
|
@@ -1821,33 +2056,33 @@ const TextArea = (_a) => {
|
|
|
1821
2056
|
);
|
|
1822
2057
|
};
|
|
1823
2058
|
|
|
1824
|
-
var __defProp$
|
|
1825
|
-
var __defProps$
|
|
1826
|
-
var __getOwnPropDescs$
|
|
1827
|
-
var __getOwnPropSymbols$
|
|
1828
|
-
var __hasOwnProp$
|
|
1829
|
-
var __propIsEnum$
|
|
1830
|
-
var __defNormalProp$
|
|
1831
|
-
var __spreadValues$
|
|
2059
|
+
var __defProp$c = Object.defineProperty;
|
|
2060
|
+
var __defProps$9 = Object.defineProperties;
|
|
2061
|
+
var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
|
|
2062
|
+
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
2063
|
+
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
2064
|
+
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
2065
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2066
|
+
var __spreadValues$c = (a, b) => {
|
|
1832
2067
|
for (var prop in b || (b = {}))
|
|
1833
|
-
if (__hasOwnProp$
|
|
1834
|
-
__defNormalProp$
|
|
1835
|
-
if (__getOwnPropSymbols$
|
|
1836
|
-
for (var prop of __getOwnPropSymbols$
|
|
1837
|
-
if (__propIsEnum$
|
|
1838
|
-
__defNormalProp$
|
|
2068
|
+
if (__hasOwnProp$c.call(b, prop))
|
|
2069
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
2070
|
+
if (__getOwnPropSymbols$c)
|
|
2071
|
+
for (var prop of __getOwnPropSymbols$c(b)) {
|
|
2072
|
+
if (__propIsEnum$c.call(b, prop))
|
|
2073
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
1839
2074
|
}
|
|
1840
2075
|
return a;
|
|
1841
2076
|
};
|
|
1842
|
-
var __spreadProps$
|
|
2077
|
+
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
|
|
1843
2078
|
var __objRest$7 = (source, exclude) => {
|
|
1844
2079
|
var target = {};
|
|
1845
2080
|
for (var prop in source)
|
|
1846
|
-
if (__hasOwnProp$
|
|
2081
|
+
if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1847
2082
|
target[prop] = source[prop];
|
|
1848
|
-
if (source != null && __getOwnPropSymbols$
|
|
1849
|
-
for (var prop of __getOwnPropSymbols$
|
|
1850
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2083
|
+
if (source != null && __getOwnPropSymbols$c)
|
|
2084
|
+
for (var prop of __getOwnPropSymbols$c(source)) {
|
|
2085
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
|
|
1851
2086
|
target[prop] = source[prop];
|
|
1852
2087
|
}
|
|
1853
2088
|
return target;
|
|
@@ -1864,7 +2099,7 @@ const FieldsTextArea = (_a) => {
|
|
|
1864
2099
|
]);
|
|
1865
2100
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
1866
2101
|
TextArea,
|
|
1867
|
-
__spreadProps$
|
|
2102
|
+
__spreadProps$9(__spreadValues$c(__spreadValues$c({}, input), props), {
|
|
1868
2103
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError),
|
|
1869
2104
|
onFocus: (e) => {
|
|
1870
2105
|
input.onFocus(e);
|
|
@@ -1878,33 +2113,33 @@ const FieldsTextArea = (_a) => {
|
|
|
1878
2113
|
));
|
|
1879
2114
|
};
|
|
1880
2115
|
|
|
1881
|
-
var __defProp$
|
|
1882
|
-
var __defProps$
|
|
1883
|
-
var __getOwnPropDescs$
|
|
1884
|
-
var __getOwnPropSymbols$
|
|
1885
|
-
var __hasOwnProp$
|
|
1886
|
-
var __propIsEnum$
|
|
1887
|
-
var __defNormalProp$
|
|
1888
|
-
var __spreadValues$
|
|
2116
|
+
var __defProp$b = Object.defineProperty;
|
|
2117
|
+
var __defProps$8 = Object.defineProperties;
|
|
2118
|
+
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
|
2119
|
+
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
2120
|
+
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
2121
|
+
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
2122
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2123
|
+
var __spreadValues$b = (a, b) => {
|
|
1889
2124
|
for (var prop in b || (b = {}))
|
|
1890
|
-
if (__hasOwnProp$
|
|
1891
|
-
__defNormalProp$
|
|
1892
|
-
if (__getOwnPropSymbols$
|
|
1893
|
-
for (var prop of __getOwnPropSymbols$
|
|
1894
|
-
if (__propIsEnum$
|
|
1895
|
-
__defNormalProp$
|
|
2125
|
+
if (__hasOwnProp$b.call(b, prop))
|
|
2126
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
2127
|
+
if (__getOwnPropSymbols$b)
|
|
2128
|
+
for (var prop of __getOwnPropSymbols$b(b)) {
|
|
2129
|
+
if (__propIsEnum$b.call(b, prop))
|
|
2130
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
1896
2131
|
}
|
|
1897
2132
|
return a;
|
|
1898
2133
|
};
|
|
1899
|
-
var __spreadProps$
|
|
2134
|
+
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
1900
2135
|
var __objRest$6 = (source, exclude) => {
|
|
1901
2136
|
var target = {};
|
|
1902
2137
|
for (var prop in source)
|
|
1903
|
-
if (__hasOwnProp$
|
|
2138
|
+
if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1904
2139
|
target[prop] = source[prop];
|
|
1905
|
-
if (source != null && __getOwnPropSymbols$
|
|
1906
|
-
for (var prop of __getOwnPropSymbols$
|
|
1907
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2140
|
+
if (source != null && __getOwnPropSymbols$b)
|
|
2141
|
+
for (var prop of __getOwnPropSymbols$b(source)) {
|
|
2142
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
|
|
1908
2143
|
target[prop] = source[prop];
|
|
1909
2144
|
}
|
|
1910
2145
|
return target;
|
|
@@ -1926,7 +2161,7 @@ const TimePicker = (_a) => {
|
|
|
1926
2161
|
}[size];
|
|
1927
2162
|
return /* @__PURE__ */ React.createElement(
|
|
1928
2163
|
TimePicker$1,
|
|
1929
|
-
__spreadProps$
|
|
2164
|
+
__spreadProps$8(__spreadValues$b({}, props), {
|
|
1930
2165
|
size,
|
|
1931
2166
|
"data-test": props.name,
|
|
1932
2167
|
className: cs(className, InputStyle, typo, error ? "error" : "")
|
|
@@ -1934,33 +2169,33 @@ const TimePicker = (_a) => {
|
|
|
1934
2169
|
);
|
|
1935
2170
|
};
|
|
1936
2171
|
|
|
1937
|
-
var __defProp$
|
|
1938
|
-
var __defProps$
|
|
1939
|
-
var __getOwnPropDescs$
|
|
1940
|
-
var __getOwnPropSymbols$
|
|
1941
|
-
var __hasOwnProp$
|
|
1942
|
-
var __propIsEnum$
|
|
1943
|
-
var __defNormalProp$
|
|
1944
|
-
var __spreadValues$
|
|
2172
|
+
var __defProp$a = Object.defineProperty;
|
|
2173
|
+
var __defProps$7 = Object.defineProperties;
|
|
2174
|
+
var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
|
|
2175
|
+
var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
|
|
2176
|
+
var __hasOwnProp$a = Object.prototype.hasOwnProperty;
|
|
2177
|
+
var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
|
|
2178
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2179
|
+
var __spreadValues$a = (a, b) => {
|
|
1945
2180
|
for (var prop in b || (b = {}))
|
|
1946
|
-
if (__hasOwnProp$
|
|
1947
|
-
__defNormalProp$
|
|
1948
|
-
if (__getOwnPropSymbols$
|
|
1949
|
-
for (var prop of __getOwnPropSymbols$
|
|
1950
|
-
if (__propIsEnum$
|
|
1951
|
-
__defNormalProp$
|
|
2181
|
+
if (__hasOwnProp$a.call(b, prop))
|
|
2182
|
+
__defNormalProp$a(a, prop, b[prop]);
|
|
2183
|
+
if (__getOwnPropSymbols$a)
|
|
2184
|
+
for (var prop of __getOwnPropSymbols$a(b)) {
|
|
2185
|
+
if (__propIsEnum$a.call(b, prop))
|
|
2186
|
+
__defNormalProp$a(a, prop, b[prop]);
|
|
1952
2187
|
}
|
|
1953
2188
|
return a;
|
|
1954
2189
|
};
|
|
1955
|
-
var __spreadProps$
|
|
2190
|
+
var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
|
|
1956
2191
|
var __objRest$5 = (source, exclude) => {
|
|
1957
2192
|
var target = {};
|
|
1958
2193
|
for (var prop in source)
|
|
1959
|
-
if (__hasOwnProp$
|
|
2194
|
+
if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1960
2195
|
target[prop] = source[prop];
|
|
1961
|
-
if (source != null && __getOwnPropSymbols$
|
|
1962
|
-
for (var prop of __getOwnPropSymbols$
|
|
1963
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2196
|
+
if (source != null && __getOwnPropSymbols$a)
|
|
2197
|
+
for (var prop of __getOwnPropSymbols$a(source)) {
|
|
2198
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$a.call(source, prop))
|
|
1964
2199
|
target[prop] = source[prop];
|
|
1965
2200
|
}
|
|
1966
2201
|
return target;
|
|
@@ -1975,7 +2210,7 @@ const FieldsTimePicker = (_a) => {
|
|
|
1975
2210
|
]);
|
|
1976
2211
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
1977
2212
|
TimePicker,
|
|
1978
|
-
__spreadValues$
|
|
2213
|
+
__spreadValues$a(__spreadProps$7(__spreadValues$a({}, input), {
|
|
1979
2214
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
1980
2215
|
}), props)
|
|
1981
2216
|
));
|
|
@@ -2009,25 +2244,25 @@ const InputGroup = /*#__PURE__*/styled(_exp())({
|
|
|
2009
2244
|
propsAsIs: true
|
|
2010
2245
|
});
|
|
2011
2246
|
|
|
2012
|
-
var __defProp$
|
|
2013
|
-
var __defProps$
|
|
2014
|
-
var __getOwnPropDescs$
|
|
2015
|
-
var __getOwnPropSymbols$
|
|
2016
|
-
var __hasOwnProp$
|
|
2017
|
-
var __propIsEnum$
|
|
2018
|
-
var __defNormalProp$
|
|
2019
|
-
var __spreadValues$
|
|
2247
|
+
var __defProp$9 = Object.defineProperty;
|
|
2248
|
+
var __defProps$6 = Object.defineProperties;
|
|
2249
|
+
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
2250
|
+
var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
|
|
2251
|
+
var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
|
|
2252
|
+
var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
|
|
2253
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2254
|
+
var __spreadValues$9 = (a, b) => {
|
|
2020
2255
|
for (var prop in b || (b = {}))
|
|
2021
|
-
if (__hasOwnProp$
|
|
2022
|
-
__defNormalProp$
|
|
2023
|
-
if (__getOwnPropSymbols$
|
|
2024
|
-
for (var prop of __getOwnPropSymbols$
|
|
2025
|
-
if (__propIsEnum$
|
|
2026
|
-
__defNormalProp$
|
|
2256
|
+
if (__hasOwnProp$9.call(b, prop))
|
|
2257
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
2258
|
+
if (__getOwnPropSymbols$9)
|
|
2259
|
+
for (var prop of __getOwnPropSymbols$9(b)) {
|
|
2260
|
+
if (__propIsEnum$9.call(b, prop))
|
|
2261
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
2027
2262
|
}
|
|
2028
2263
|
return a;
|
|
2029
2264
|
};
|
|
2030
|
-
var __spreadProps$
|
|
2265
|
+
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
|
2031
2266
|
const initialChartState = {
|
|
2032
2267
|
pointers: {},
|
|
2033
2268
|
resourceData: {},
|
|
@@ -2037,8 +2272,8 @@ const chartReducer = (state = initialChartState, action) => {
|
|
|
2037
2272
|
switch (action.type) {
|
|
2038
2273
|
case "SET_POINTER" /* SET_POINTER */: {
|
|
2039
2274
|
const { uuid, left, text, visible, value } = action.payload;
|
|
2040
|
-
return __spreadProps$
|
|
2041
|
-
pointers: __spreadProps$
|
|
2275
|
+
return __spreadProps$6(__spreadValues$9({}, state), {
|
|
2276
|
+
pointers: __spreadProps$6(__spreadValues$9({}, state.pointers), {
|
|
2042
2277
|
[uuid]: {
|
|
2043
2278
|
left,
|
|
2044
2279
|
text,
|
|
@@ -2050,16 +2285,16 @@ const chartReducer = (state = initialChartState, action) => {
|
|
|
2050
2285
|
}
|
|
2051
2286
|
case "SET_RESOURCE_DATA" /* SET_RESOURCE_DATA */: {
|
|
2052
2287
|
const { uuid, data } = action.payload;
|
|
2053
|
-
return __spreadProps$
|
|
2054
|
-
resourceData: __spreadProps$
|
|
2288
|
+
return __spreadProps$6(__spreadValues$9({}, state), {
|
|
2289
|
+
resourceData: __spreadProps$6(__spreadValues$9({}, state.resourceData), {
|
|
2055
2290
|
[uuid]: data
|
|
2056
2291
|
})
|
|
2057
2292
|
});
|
|
2058
2293
|
}
|
|
2059
2294
|
case "SET_AVERAGE_DATA" /* SET_AVERAGE_DATA */: {
|
|
2060
2295
|
const { uuid, average } = action.payload;
|
|
2061
|
-
return __spreadProps$
|
|
2062
|
-
averageData: __spreadProps$
|
|
2296
|
+
return __spreadProps$6(__spreadValues$9({}, state), {
|
|
2297
|
+
averageData: __spreadProps$6(__spreadValues$9({}, state.averageData), {
|
|
2063
2298
|
[uuid]: average
|
|
2064
2299
|
})
|
|
2065
2300
|
});
|
|
@@ -2070,25 +2305,25 @@ const chartReducer = (state = initialChartState, action) => {
|
|
|
2070
2305
|
}
|
|
2071
2306
|
};
|
|
2072
2307
|
|
|
2073
|
-
var __defProp$
|
|
2074
|
-
var __defProps$
|
|
2075
|
-
var __getOwnPropDescs$
|
|
2076
|
-
var __getOwnPropSymbols$
|
|
2077
|
-
var __hasOwnProp$
|
|
2078
|
-
var __propIsEnum$
|
|
2079
|
-
var __defNormalProp$
|
|
2080
|
-
var __spreadValues$
|
|
2308
|
+
var __defProp$8 = Object.defineProperty;
|
|
2309
|
+
var __defProps$5 = Object.defineProperties;
|
|
2310
|
+
var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
|
|
2311
|
+
var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
|
|
2312
|
+
var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
|
|
2313
|
+
var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
|
|
2314
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2315
|
+
var __spreadValues$8 = (a, b) => {
|
|
2081
2316
|
for (var prop in b || (b = {}))
|
|
2082
|
-
if (__hasOwnProp$
|
|
2083
|
-
__defNormalProp$
|
|
2084
|
-
if (__getOwnPropSymbols$
|
|
2085
|
-
for (var prop of __getOwnPropSymbols$
|
|
2086
|
-
if (__propIsEnum$
|
|
2087
|
-
__defNormalProp$
|
|
2317
|
+
if (__hasOwnProp$8.call(b, prop))
|
|
2318
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
2319
|
+
if (__getOwnPropSymbols$8)
|
|
2320
|
+
for (var prop of __getOwnPropSymbols$8(b)) {
|
|
2321
|
+
if (__propIsEnum$8.call(b, prop))
|
|
2322
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
2088
2323
|
}
|
|
2089
2324
|
return a;
|
|
2090
2325
|
};
|
|
2091
|
-
var __spreadProps$
|
|
2326
|
+
var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
|
|
2092
2327
|
var ModalActions = /* @__PURE__ */ ((ModalActions2) => {
|
|
2093
2328
|
ModalActions2["PUSH_MODAL"] = "PUSH_MODAL";
|
|
2094
2329
|
ModalActions2["POP_MODAL"] = "POP_MODAL";
|
|
@@ -2109,22 +2344,22 @@ const modalReducer = (state = initialModalState, action) => {
|
|
|
2109
2344
|
)) {
|
|
2110
2345
|
return state;
|
|
2111
2346
|
}
|
|
2112
|
-
return __spreadProps$
|
|
2113
|
-
stack: state.stack.concat(__spreadProps$
|
|
2347
|
+
return __spreadProps$5(__spreadValues$8({}, state), {
|
|
2348
|
+
stack: state.stack.concat(__spreadProps$5(__spreadValues$8({}, action.payload), {
|
|
2114
2349
|
id: MODAL_ID++
|
|
2115
2350
|
}))
|
|
2116
2351
|
});
|
|
2117
2352
|
case "POP_MODAL" /* POP_MODAL */:
|
|
2118
|
-
return __spreadProps$
|
|
2353
|
+
return __spreadProps$5(__spreadValues$8({}, state), {
|
|
2119
2354
|
stack: state.stack.slice(0, -1)
|
|
2120
2355
|
});
|
|
2121
2356
|
case "REMOVE_MODAL" /* REMOVE_MODAL */:
|
|
2122
|
-
return __spreadProps$
|
|
2357
|
+
return __spreadProps$5(__spreadValues$8({}, state), {
|
|
2123
2358
|
closeId: 0,
|
|
2124
2359
|
stack: state.stack.filter((m) => m.id !== action.id)
|
|
2125
2360
|
});
|
|
2126
2361
|
case "CLOSE_MODAL" /* CLOSE_MODAL */:
|
|
2127
|
-
return __spreadProps$
|
|
2362
|
+
return __spreadProps$5(__spreadValues$8({}, state), {
|
|
2128
2363
|
closeId: action.id
|
|
2129
2364
|
});
|
|
2130
2365
|
default:
|
|
@@ -2175,33 +2410,33 @@ const KitStoreProvider = (props) => {
|
|
|
2175
2410
|
const useKitDispatch = createDispatchHook(ctx);
|
|
2176
2411
|
const useKitSelector = createSelectorHook(ctx);
|
|
2177
2412
|
|
|
2178
|
-
var __defProp$
|
|
2179
|
-
var __defProps$
|
|
2180
|
-
var __getOwnPropDescs$
|
|
2181
|
-
var __getOwnPropSymbols$
|
|
2182
|
-
var __hasOwnProp$
|
|
2183
|
-
var __propIsEnum$
|
|
2184
|
-
var __defNormalProp$
|
|
2185
|
-
var __spreadValues$
|
|
2413
|
+
var __defProp$7 = Object.defineProperty;
|
|
2414
|
+
var __defProps$4 = Object.defineProperties;
|
|
2415
|
+
var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
|
|
2416
|
+
var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
|
|
2417
|
+
var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
|
|
2418
|
+
var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
|
|
2419
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2420
|
+
var __spreadValues$7 = (a, b) => {
|
|
2186
2421
|
for (var prop in b || (b = {}))
|
|
2187
|
-
if (__hasOwnProp$
|
|
2188
|
-
__defNormalProp$
|
|
2189
|
-
if (__getOwnPropSymbols$
|
|
2190
|
-
for (var prop of __getOwnPropSymbols$
|
|
2191
|
-
if (__propIsEnum$
|
|
2192
|
-
__defNormalProp$
|
|
2422
|
+
if (__hasOwnProp$7.call(b, prop))
|
|
2423
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
2424
|
+
if (__getOwnPropSymbols$7)
|
|
2425
|
+
for (var prop of __getOwnPropSymbols$7(b)) {
|
|
2426
|
+
if (__propIsEnum$7.call(b, prop))
|
|
2427
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
2193
2428
|
}
|
|
2194
2429
|
return a;
|
|
2195
2430
|
};
|
|
2196
|
-
var __spreadProps$
|
|
2431
|
+
var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
|
|
2197
2432
|
var __objRest$4 = (source, exclude) => {
|
|
2198
2433
|
var target = {};
|
|
2199
2434
|
for (var prop in source)
|
|
2200
|
-
if (__hasOwnProp$
|
|
2435
|
+
if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2201
2436
|
target[prop] = source[prop];
|
|
2202
|
-
if (source != null && __getOwnPropSymbols$
|
|
2203
|
-
for (var prop of __getOwnPropSymbols$
|
|
2204
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2437
|
+
if (source != null && __getOwnPropSymbols$7)
|
|
2438
|
+
for (var prop of __getOwnPropSymbols$7(source)) {
|
|
2439
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop))
|
|
2205
2440
|
target[prop] = source[prop];
|
|
2206
2441
|
}
|
|
2207
2442
|
return target;
|
|
@@ -2282,7 +2517,7 @@ const Modal = (props) => {
|
|
|
2282
2517
|
}
|
|
2283
2518
|
return /* @__PURE__ */ React.createElement(
|
|
2284
2519
|
Modal$1,
|
|
2285
|
-
__spreadProps$
|
|
2520
|
+
__spreadProps$4(__spreadValues$7({
|
|
2286
2521
|
maskClosable,
|
|
2287
2522
|
className: cs(
|
|
2288
2523
|
className,
|
|
@@ -2317,7 +2552,7 @@ const Modal = (props) => {
|
|
|
2317
2552
|
prevText
|
|
2318
2553
|
), error && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("span", { className: "modal-error" }, error))), /* @__PURE__ */ React.createElement("div", { className: "modal-footer-btn-group" }, showCancel && /* @__PURE__ */ React.createElement(
|
|
2319
2554
|
Button,
|
|
2320
|
-
__spreadValues$
|
|
2555
|
+
__spreadValues$7({
|
|
2321
2556
|
type: "quiet",
|
|
2322
2557
|
onMouseDown: (e) => {
|
|
2323
2558
|
e.preventDefault();
|
|
@@ -2331,7 +2566,7 @@ const Modal = (props) => {
|
|
|
2331
2566
|
cancelText
|
|
2332
2567
|
), showOk && /* @__PURE__ */ React.createElement(
|
|
2333
2568
|
Button,
|
|
2334
|
-
__spreadValues$
|
|
2569
|
+
__spreadValues$7({
|
|
2335
2570
|
onClick: (e) => {
|
|
2336
2571
|
var _a2, _b2;
|
|
2337
2572
|
onOk == null ? void 0 : onOk(e);
|
|
@@ -2347,7 +2582,7 @@ const Modal = (props) => {
|
|
|
2347
2582
|
))) : footer)
|
|
2348
2583
|
}),
|
|
2349
2584
|
wizard && typeof wizard === "object" ? /* @__PURE__ */ React.createElement(WizardBody, null, /* @__PURE__ */ React.createElement("div", { className: "left" }, /* @__PURE__ */ React.createElement(
|
|
2350
|
-
Steps,
|
|
2585
|
+
Steps$1,
|
|
2351
2586
|
{
|
|
2352
2587
|
style: { minWidth: 192 },
|
|
2353
2588
|
current: wizard.step,
|
|
@@ -2358,7 +2593,7 @@ const Modal = (props) => {
|
|
|
2358
2593
|
direction: "vertical"
|
|
2359
2594
|
},
|
|
2360
2595
|
wizard.steps.map((s, idx) => /* @__PURE__ */ React.createElement(
|
|
2361
|
-
Steps.Step,
|
|
2596
|
+
Steps$1.Step,
|
|
2362
2597
|
{
|
|
2363
2598
|
key: idx,
|
|
2364
2599
|
title: /* @__PURE__ */ React.createElement(React.Fragment, null, idx >= wizard.step ? /* @__PURE__ */ React.createElement("span", { className: "step-index" }, idx + 1) : /* @__PURE__ */ React.createElement(CheckOutlined, { className: "step-index" }), s.title),
|
|
@@ -2490,6 +2725,24 @@ const Percent = ({
|
|
|
2490
2725
|
return /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React.createElement("span", { className: cx("unit", unitClassName) }, unit));
|
|
2491
2726
|
};
|
|
2492
2727
|
|
|
2728
|
+
var __defProp$6 = Object.defineProperty;
|
|
2729
|
+
var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
|
|
2730
|
+
var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
|
|
2731
|
+
var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
|
|
2732
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2733
|
+
var __spreadValues$6 = (a, b) => {
|
|
2734
|
+
for (var prop in b || (b = {}))
|
|
2735
|
+
if (__hasOwnProp$6.call(b, prop))
|
|
2736
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
2737
|
+
if (__getOwnPropSymbols$6)
|
|
2738
|
+
for (var prop of __getOwnPropSymbols$6(b)) {
|
|
2739
|
+
if (__propIsEnum$6.call(b, prop))
|
|
2740
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
2741
|
+
}
|
|
2742
|
+
return a;
|
|
2743
|
+
};
|
|
2744
|
+
const Progress = (props) => /* @__PURE__ */ React.createElement(Progress$1, __spreadValues$6({}, props));
|
|
2745
|
+
|
|
2493
2746
|
var __defProp$5 = Object.defineProperty;
|
|
2494
2747
|
var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
|
|
2495
2748
|
var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
|
|
@@ -2745,6 +2998,113 @@ const Speed = ({ rawValue, decimals }) => {
|
|
|
2745
2998
|
return /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement("span", { className: "value" }, value), /* @__PURE__ */ React.createElement("span", { className: "unit" }, ` ${unit}`));
|
|
2746
2999
|
};
|
|
2747
3000
|
|
|
3001
|
+
var __defProp$3 = Object.defineProperty;
|
|
3002
|
+
var __defProps$3 = Object.defineProperties;
|
|
3003
|
+
var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
|
|
3004
|
+
var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
|
|
3005
|
+
var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
|
|
3006
|
+
var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
|
|
3007
|
+
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, {
|
|
3008
|
+
enumerable: true,
|
|
3009
|
+
configurable: true,
|
|
3010
|
+
writable: true,
|
|
3011
|
+
value
|
|
3012
|
+
}) : obj[key] = value;
|
|
3013
|
+
var __spreadValues$3 = (a, b) => {
|
|
3014
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$3.call(b, prop)) __defNormalProp$3(a, prop, b[prop]);
|
|
3015
|
+
if (__getOwnPropSymbols$3) for (var prop of __getOwnPropSymbols$3(b)) {
|
|
3016
|
+
if (__propIsEnum$3.call(b, prop)) __defNormalProp$3(a, prop, b[prop]);
|
|
3017
|
+
}
|
|
3018
|
+
return a;
|
|
3019
|
+
};
|
|
3020
|
+
var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
|
|
3021
|
+
var __objRest$1 = (source, exclude) => {
|
|
3022
|
+
var target = {};
|
|
3023
|
+
for (var prop in source) if (__hasOwnProp$3.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3024
|
+
if (source != null && __getOwnPropSymbols$3) for (var prop of __getOwnPropSymbols$3(source)) {
|
|
3025
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$3.call(source, prop)) target[prop] = source[prop];
|
|
3026
|
+
}
|
|
3027
|
+
return target;
|
|
3028
|
+
};
|
|
3029
|
+
const StepsContainer = /*#__PURE__*/styled('div')({
|
|
3030
|
+
name: "StepsContainer",
|
|
3031
|
+
class: "s3mgie3",
|
|
3032
|
+
propsAsIs: false
|
|
3033
|
+
});
|
|
3034
|
+
const Steps = props => {
|
|
3035
|
+
const _a = props,
|
|
3036
|
+
{
|
|
3037
|
+
stepsConfig,
|
|
3038
|
+
containerClassname,
|
|
3039
|
+
showStepCount
|
|
3040
|
+
} = _a,
|
|
3041
|
+
stepsProps = __objRest$1(_a, ["stepsConfig", "containerClassname", "showStepCount"]);
|
|
3042
|
+
const titleWithCount = (_step, count) => /* @__PURE__ */React.createElement(React.Fragment, null, showStepCount ? /* @__PURE__ */React.createElement("span", {
|
|
3043
|
+
className: "step-count"
|
|
3044
|
+
}, count) : null, _step.title);
|
|
3045
|
+
return /* @__PURE__ */React.createElement(StepsContainer, {
|
|
3046
|
+
className: containerClassname
|
|
3047
|
+
}, /* @__PURE__ */React.createElement(Steps$1, __spreadProps$3(__spreadValues$3({}, stepsProps), {
|
|
3048
|
+
type: "default"
|
|
3049
|
+
}), (stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */React.createElement(Steps$1.Step, __spreadProps$3(__spreadValues$3({
|
|
3050
|
+
key: index
|
|
3051
|
+
}, step), {
|
|
3052
|
+
title: titleWithCount(step, index + 1)
|
|
3053
|
+
}))) : props.children));
|
|
3054
|
+
};
|
|
3055
|
+
|
|
3056
|
+
var __defProp$2 = Object.defineProperty;
|
|
3057
|
+
var __defProps$2 = Object.defineProperties;
|
|
3058
|
+
var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
|
|
3059
|
+
var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
|
|
3060
|
+
var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
|
|
3061
|
+
var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
|
|
3062
|
+
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, {
|
|
3063
|
+
enumerable: true,
|
|
3064
|
+
configurable: true,
|
|
3065
|
+
writable: true,
|
|
3066
|
+
value
|
|
3067
|
+
}) : obj[key] = value;
|
|
3068
|
+
var __spreadValues$2 = (a, b) => {
|
|
3069
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$2.call(b, prop)) __defNormalProp$2(a, prop, b[prop]);
|
|
3070
|
+
if (__getOwnPropSymbols$2) for (var prop of __getOwnPropSymbols$2(b)) {
|
|
3071
|
+
if (__propIsEnum$2.call(b, prop)) __defNormalProp$2(a, prop, b[prop]);
|
|
3072
|
+
}
|
|
3073
|
+
return a;
|
|
3074
|
+
};
|
|
3075
|
+
var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
|
|
3076
|
+
var __objRest = (source, exclude) => {
|
|
3077
|
+
var target = {};
|
|
3078
|
+
for (var prop in source) if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3079
|
+
if (source != null && __getOwnPropSymbols$2) for (var prop of __getOwnPropSymbols$2(source)) {
|
|
3080
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$2.call(source, prop)) target[prop] = source[prop];
|
|
3081
|
+
}
|
|
3082
|
+
return target;
|
|
3083
|
+
};
|
|
3084
|
+
const SwitchStyle = "s34f1qb";
|
|
3085
|
+
const Switch = _a => {
|
|
3086
|
+
var _b = _a,
|
|
3087
|
+
{
|
|
3088
|
+
children,
|
|
3089
|
+
className,
|
|
3090
|
+
checked
|
|
3091
|
+
} = _b,
|
|
3092
|
+
props = __objRest(_b, ["children", "className", "checked"]);
|
|
3093
|
+
const Content = /*#__PURE__*/styled('span')({
|
|
3094
|
+
name: "Content",
|
|
3095
|
+
class: "c1to9vb9",
|
|
3096
|
+
propsAsIs: false
|
|
3097
|
+
});
|
|
3098
|
+
const classNames = [className, SwitchStyle, "switch"];
|
|
3099
|
+
if (props.size === "large") classNames.push("ant-switch-large");
|
|
3100
|
+
return /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement(Switch$1, __spreadProps$2(__spreadValues$2({
|
|
3101
|
+
className: cx(...classNames),
|
|
3102
|
+
checked: checked || false
|
|
3103
|
+
}, props), {
|
|
3104
|
+
size: props.size
|
|
3105
|
+
})), children ? /* @__PURE__ */React.createElement(Content, null, children) : null);
|
|
3106
|
+
};
|
|
3107
|
+
|
|
2748
3108
|
function canScroll(el, direction = "vertical") {
|
|
2749
3109
|
const overflow = window.getComputedStyle(el).getPropertyValue("overflow");
|
|
2750
3110
|
if (overflow === "hidden")
|
|
@@ -2822,26 +3182,26 @@ const ColumnTitle = props => {
|
|
|
2822
3182
|
}));
|
|
2823
3183
|
};
|
|
2824
3184
|
|
|
2825
|
-
var __defProp$
|
|
2826
|
-
var __defProps$
|
|
2827
|
-
var __getOwnPropDescs$
|
|
2828
|
-
var __getOwnPropSymbols$
|
|
2829
|
-
var __hasOwnProp$
|
|
2830
|
-
var __propIsEnum$
|
|
2831
|
-
var __defNormalProp$
|
|
3185
|
+
var __defProp$1 = Object.defineProperty;
|
|
3186
|
+
var __defProps$1 = Object.defineProperties;
|
|
3187
|
+
var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
|
|
3188
|
+
var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
|
|
3189
|
+
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
3190
|
+
var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
|
|
3191
|
+
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, {
|
|
2832
3192
|
enumerable: true,
|
|
2833
3193
|
configurable: true,
|
|
2834
3194
|
writable: true,
|
|
2835
3195
|
value
|
|
2836
3196
|
}) : obj[key] = value;
|
|
2837
|
-
var __spreadValues$
|
|
2838
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
2839
|
-
if (__getOwnPropSymbols$
|
|
2840
|
-
if (__propIsEnum$
|
|
3197
|
+
var __spreadValues$1 = (a, b) => {
|
|
3198
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$1.call(b, prop)) __defNormalProp$1(a, prop, b[prop]);
|
|
3199
|
+
if (__getOwnPropSymbols$1) for (var prop of __getOwnPropSymbols$1(b)) {
|
|
3200
|
+
if (__propIsEnum$1.call(b, prop)) __defNormalProp$1(a, prop, b[prop]);
|
|
2841
3201
|
}
|
|
2842
3202
|
return a;
|
|
2843
3203
|
};
|
|
2844
|
-
var __spreadProps$
|
|
3204
|
+
var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
|
|
2845
3205
|
const TableContainerStyle = "t1upn1sz";
|
|
2846
3206
|
const tableStyleCover = "tta5kd2";
|
|
2847
3207
|
const Table = props => {
|
|
@@ -2880,7 +3240,7 @@ const Table = props => {
|
|
|
2880
3240
|
},
|
|
2881
3241
|
dataSource: dataSource || [],
|
|
2882
3242
|
pagination: pagination || false,
|
|
2883
|
-
columns: columns.map(column => column.sorter ? __spreadProps$
|
|
3243
|
+
columns: columns.map(column => column.sorter ? __spreadProps$1(__spreadValues$1({}, column), {
|
|
2884
3244
|
title: /* @__PURE__ */React.createElement(ColumnTitle, {
|
|
2885
3245
|
title: column.title,
|
|
2886
3246
|
sortOrder: column.sortOrder
|
|
@@ -2901,7 +3261,7 @@ const Table = props => {
|
|
|
2901
3261
|
}),
|
|
2902
3262
|
rowClassName,
|
|
2903
3263
|
scroll,
|
|
2904
|
-
rowSelection: rowSelection && __spreadProps$
|
|
3264
|
+
rowSelection: rowSelection && __spreadProps$1(__spreadValues$1({}, rowSelection), {
|
|
2905
3265
|
columnWidth: 32
|
|
2906
3266
|
}),
|
|
2907
3267
|
showSorterTooltip: false
|
|
@@ -3015,114 +3375,19 @@ const TimeZoneOption = ({
|
|
|
3015
3375
|
}, /* @__PURE__ */React.createElement("span", null, timeZone.text, ", ", timeZone.abbr)));
|
|
3016
3376
|
};
|
|
3017
3377
|
|
|
3018
|
-
var __defProp$2 = Object.defineProperty;
|
|
3019
|
-
var __defProps$1 = Object.defineProperties;
|
|
3020
|
-
var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
|
|
3021
|
-
var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
|
|
3022
|
-
var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
|
|
3023
|
-
var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
|
|
3024
|
-
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3025
|
-
var __spreadValues$2 = (a, b) => {
|
|
3026
|
-
for (var prop in b || (b = {}))
|
|
3027
|
-
if (__hasOwnProp$2.call(b, prop))
|
|
3028
|
-
__defNormalProp$2(a, prop, b[prop]);
|
|
3029
|
-
if (__getOwnPropSymbols$2)
|
|
3030
|
-
for (var prop of __getOwnPropSymbols$2(b)) {
|
|
3031
|
-
if (__propIsEnum$2.call(b, prop))
|
|
3032
|
-
__defNormalProp$2(a, prop, b[prop]);
|
|
3033
|
-
}
|
|
3034
|
-
return a;
|
|
3035
|
-
};
|
|
3036
|
-
var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
|
|
3037
|
-
var __objRest$1 = (source, exclude) => {
|
|
3038
|
-
var target = {};
|
|
3039
|
-
for (var prop in source)
|
|
3040
|
-
if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3041
|
-
target[prop] = source[prop];
|
|
3042
|
-
if (source != null && __getOwnPropSymbols$2)
|
|
3043
|
-
for (var prop of __getOwnPropSymbols$2(source)) {
|
|
3044
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$2.call(source, prop))
|
|
3045
|
-
target[prop] = source[prop];
|
|
3046
|
-
}
|
|
3047
|
-
return target;
|
|
3048
|
-
};
|
|
3049
|
-
let componentId = 0;
|
|
3050
|
-
const Tooltip = (props) => {
|
|
3051
|
-
const _a = props, {
|
|
3052
|
-
followMouse,
|
|
3053
|
-
overlayClassName,
|
|
3054
|
-
overlayStyle,
|
|
3055
|
-
children
|
|
3056
|
-
} = _a, restProps = __objRest$1(_a, [
|
|
3057
|
-
"followMouse",
|
|
3058
|
-
"overlayClassName",
|
|
3059
|
-
"overlayStyle",
|
|
3060
|
-
"children"
|
|
3061
|
-
]);
|
|
3062
|
-
const id = useRef(++componentId);
|
|
3063
|
-
const uniquePopupClass = `kit-popup-${id.current}`;
|
|
3064
|
-
const uniqueContainerClass = `kit-tooltip-${id.current}`;
|
|
3065
|
-
const _children = useMemo(() => {
|
|
3066
|
-
if (followMouse) {
|
|
3067
|
-
const child = React.isValidElement(children) ? children : /* @__PURE__ */ React.createElement("span", null, children);
|
|
3068
|
-
return React.cloneElement(child, {
|
|
3069
|
-
className: cs(child.props.className, uniqueContainerClass)
|
|
3070
|
-
});
|
|
3071
|
-
} else {
|
|
3072
|
-
return children;
|
|
3073
|
-
}
|
|
3074
|
-
}, [children, followMouse, uniqueContainerClass]);
|
|
3075
|
-
const onmousemove = useCallback(
|
|
3076
|
-
(event) => {
|
|
3077
|
-
const popup = document.querySelector(`.${uniquePopupClass}`);
|
|
3078
|
-
if (!popup)
|
|
3079
|
-
return;
|
|
3080
|
-
popup.style.left = event.pageX + "px";
|
|
3081
|
-
popup.style.top = event.pageY + "px";
|
|
3082
|
-
},
|
|
3083
|
-
[uniquePopupClass]
|
|
3084
|
-
);
|
|
3085
|
-
useEffect(() => {
|
|
3086
|
-
if (followMouse) {
|
|
3087
|
-
const container = document.querySelector(
|
|
3088
|
-
`.${uniqueContainerClass}`
|
|
3089
|
-
);
|
|
3090
|
-
container == null ? void 0 : container.addEventListener("mousemove", onmousemove);
|
|
3091
|
-
return () => {
|
|
3092
|
-
container == null ? void 0 : container.removeEventListener("mousemove", onmousemove);
|
|
3093
|
-
};
|
|
3094
|
-
}
|
|
3095
|
-
}, [followMouse, onmousemove, uniqueContainerClass]);
|
|
3096
|
-
return /* @__PURE__ */ React.createElement(
|
|
3097
|
-
Tooltip$1,
|
|
3098
|
-
__spreadProps$1(__spreadValues$2({}, restProps), {
|
|
3099
|
-
overlayClassName: followMouse ? cs(overlayClassName, uniquePopupClass) : overlayClassName,
|
|
3100
|
-
children: _children,
|
|
3101
|
-
overlayStyle: followMouse ? __spreadValues$2({
|
|
3102
|
-
transform: "translate(-50%, -100%)",
|
|
3103
|
-
pointerEvents: "none"
|
|
3104
|
-
}, overlayStyle) : overlayStyle
|
|
3105
|
-
})
|
|
3106
|
-
);
|
|
3107
|
-
};
|
|
3108
|
-
|
|
3109
3378
|
function getAntdKit() {
|
|
3110
3379
|
const kit = {
|
|
3111
|
-
PAGINATION_SELECTOR,
|
|
3112
|
-
TABLE_WRAPPER_SELECTOR,
|
|
3113
|
-
THEAD_SELECTOR,
|
|
3114
|
-
TBODY_SELECTOR,
|
|
3115
|
-
MODAL_WHITELIST,
|
|
3116
3380
|
loading: Loading,
|
|
3117
3381
|
pagination: Pagination,
|
|
3118
3382
|
select: Select,
|
|
3119
3383
|
option: Select$1.Option,
|
|
3120
3384
|
table: Table,
|
|
3121
|
-
button: Button,
|
|
3122
3385
|
row: Row,
|
|
3123
3386
|
col: Col,
|
|
3387
|
+
button: Button,
|
|
3124
3388
|
modal: Modal,
|
|
3125
3389
|
dropdown: Dropdown,
|
|
3390
|
+
switch: Switch,
|
|
3126
3391
|
tooltip: Tooltip,
|
|
3127
3392
|
input: Input,
|
|
3128
3393
|
textArea: TextArea,
|
|
@@ -3139,12 +3404,17 @@ function getAntdKit() {
|
|
|
3139
3404
|
Second
|
|
3140
3405
|
},
|
|
3141
3406
|
inputGroup: InputGroup,
|
|
3407
|
+
Empty,
|
|
3142
3408
|
alert: Alert,
|
|
3143
3409
|
searchInput: SearchInput,
|
|
3410
|
+
badge: Badge,
|
|
3144
3411
|
radio: Radio,
|
|
3145
3412
|
radioGroup: RadioGroup,
|
|
3146
3413
|
radioButton: RadioButton,
|
|
3414
|
+
tree: Tree,
|
|
3415
|
+
progress: Progress,
|
|
3147
3416
|
divider: Divider,
|
|
3417
|
+
skeleton: Skeleton,
|
|
3148
3418
|
list: List,
|
|
3149
3419
|
listItem: List.Item,
|
|
3150
3420
|
menu: Menu,
|
|
@@ -3154,6 +3424,10 @@ function getAntdKit() {
|
|
|
3154
3424
|
autoComplete: AutoComplete,
|
|
3155
3425
|
message,
|
|
3156
3426
|
tag: Tag,
|
|
3427
|
+
popover: Popover,
|
|
3428
|
+
arch: Arch,
|
|
3429
|
+
buttonGroup: ButtonGroup,
|
|
3430
|
+
steps: Steps,
|
|
3157
3431
|
form: Form,
|
|
3158
3432
|
simplePagination: SimplePagination,
|
|
3159
3433
|
space: Space,
|
|
@@ -3164,104 +3438,6 @@ function getAntdKit() {
|
|
|
3164
3438
|
}
|
|
3165
3439
|
const antdKit = getAntdKit();
|
|
3166
3440
|
|
|
3167
|
-
var __defProp$1 = Object.defineProperty;
|
|
3168
|
-
var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
|
|
3169
|
-
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
3170
|
-
var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
|
|
3171
|
-
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, {
|
|
3172
|
-
enumerable: true,
|
|
3173
|
-
configurable: true,
|
|
3174
|
-
writable: true,
|
|
3175
|
-
value
|
|
3176
|
-
}) : obj[key] = value;
|
|
3177
|
-
var __spreadValues$1 = (a, b) => {
|
|
3178
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$1.call(b, prop)) __defNormalProp$1(a, prop, b[prop]);
|
|
3179
|
-
if (__getOwnPropSymbols$1) for (var prop of __getOwnPropSymbols$1(b)) {
|
|
3180
|
-
if (__propIsEnum$1.call(b, prop)) __defNormalProp$1(a, prop, b[prop]);
|
|
3181
|
-
}
|
|
3182
|
-
return a;
|
|
3183
|
-
};
|
|
3184
|
-
var __objRest = (source, exclude) => {
|
|
3185
|
-
var target = {};
|
|
3186
|
-
for (var prop in source) if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3187
|
-
if (source != null && __getOwnPropSymbols$1) for (var prop of __getOwnPropSymbols$1(source)) {
|
|
3188
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop)) target[prop] = source[prop];
|
|
3189
|
-
}
|
|
3190
|
-
return target;
|
|
3191
|
-
};
|
|
3192
|
-
const ButtonStyle = "bpq0js6";
|
|
3193
|
-
const ButtonGroupContainer = /*#__PURE__*/styled('div')({
|
|
3194
|
-
name: "ButtonGroupContainer",
|
|
3195
|
-
class: "b15sn34c",
|
|
3196
|
-
propsAsIs: false
|
|
3197
|
-
});
|
|
3198
|
-
React.forwardRef((props, ref) => {
|
|
3199
|
-
const {
|
|
3200
|
-
className,
|
|
3201
|
-
options,
|
|
3202
|
-
size = "middle"
|
|
3203
|
-
} = props;
|
|
3204
|
-
if (!options.length) {
|
|
3205
|
-
return null;
|
|
3206
|
-
}
|
|
3207
|
-
return /* @__PURE__ */React.createElement(ButtonGroupContainer, {
|
|
3208
|
-
className,
|
|
3209
|
-
ref
|
|
3210
|
-
}, options.map((button, index) => {
|
|
3211
|
-
const _a = button,
|
|
3212
|
-
{
|
|
3213
|
-
key,
|
|
3214
|
-
icon,
|
|
3215
|
-
type = "ordinary-onTint",
|
|
3216
|
-
children,
|
|
3217
|
-
danger,
|
|
3218
|
-
ghost,
|
|
3219
|
-
className: className2,
|
|
3220
|
-
hideTitle,
|
|
3221
|
-
title
|
|
3222
|
-
} = _a,
|
|
3223
|
-
buttonPropArgs = __objRest(_a, ["key", "icon", "type", "children", "danger", "ghost", "className", "hideTitle", "title"]);
|
|
3224
|
-
if (hideTitle) {
|
|
3225
|
-
return /* @__PURE__ */React.createElement(Tooltip, {
|
|
3226
|
-
key: key || index,
|
|
3227
|
-
overlay: title || children
|
|
3228
|
-
}, buttonPropArgs.disabled ? /* @__PURE__ */React.createElement("span", {
|
|
3229
|
-
style: {
|
|
3230
|
-
cursor: "not-allowed"
|
|
3231
|
-
}
|
|
3232
|
-
}, /* @__PURE__ */React.createElement(Button, __spreadValues$1({
|
|
3233
|
-
style: {
|
|
3234
|
-
pointerEvents: "none"
|
|
3235
|
-
},
|
|
3236
|
-
type,
|
|
3237
|
-
size,
|
|
3238
|
-
danger,
|
|
3239
|
-
ghost,
|
|
3240
|
-
className: cx(ButtonStyle, className2),
|
|
3241
|
-
prefixIcon: icon
|
|
3242
|
-
}, buttonPropArgs))) : /* @__PURE__ */React.createElement(Button, __spreadValues$1({
|
|
3243
|
-
type,
|
|
3244
|
-
size,
|
|
3245
|
-
danger,
|
|
3246
|
-
ghost,
|
|
3247
|
-
className: cx(ButtonStyle, className2),
|
|
3248
|
-
prefixIcon: icon
|
|
3249
|
-
}, buttonPropArgs)));
|
|
3250
|
-
}
|
|
3251
|
-
return /* @__PURE__ */React.createElement(Button, __spreadValues$1({
|
|
3252
|
-
key: key || index,
|
|
3253
|
-
type,
|
|
3254
|
-
size,
|
|
3255
|
-
danger,
|
|
3256
|
-
ghost,
|
|
3257
|
-
className: cx(ButtonStyle, className2),
|
|
3258
|
-
prefixIcon: icon
|
|
3259
|
-
}, buttonPropArgs), (title || children) && /* @__PURE__ */React.createElement("span", {
|
|
3260
|
-
className: "button-group-item"
|
|
3261
|
-
}, title || children));
|
|
3262
|
-
}));
|
|
3263
|
-
});
|
|
3264
|
-
|
|
3265
3441
|
class ErrorBoundary extends React.Component {
|
|
3266
3442
|
constructor(props) {
|
|
3267
3443
|
super(props);
|
|
@@ -3387,4 +3563,4 @@ const useUIKit = () => {
|
|
|
3387
3563
|
return useContext(kitContext);
|
|
3388
3564
|
};
|
|
3389
3565
|
|
|
3390
|
-
export { Architecture, Button, EntityAsyncStatus, FailedLoad, Icon, KitStoreProvider, ModalActions, ModalStack,
|
|
3566
|
+
export { Architecture, Button, EntityAsyncStatus, FailedLoad, Icon, InputTagItem, KitStoreProvider, ModalActions, ModalStack, TaskStatus, Typo, UIKitProvider, UIKitStore, UserSource, antdKit, closeModal, kitContext, popModal, pushModal, tableStyleCover, tickFormatter, useElementsSize, useKitDispatch, useKitSelector, useUIKit };
|