@cloudtower/eagle 0.22.35 → 0.22.37
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/UIKitProvider/index.d.ts +3 -5
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/TableForm/AddRowButton.d.ts +4 -0
- package/dist/components/TableForm/Columns/AffixColumn.d.ts +4 -1
- package/dist/components/TableForm/Columns/CheckboxColumn.d.ts +3 -1
- package/dist/components/TableForm/Columns/InputColumn.d.ts +8 -2
- package/dist/components/TableForm/Columns/index.d.ts +27 -7
- package/dist/components/TableForm/TableFormBodyRows.d.ts +4 -0
- package/dist/components/TableForm/__test__/utils.spec.d.ts +1 -0
- package/dist/components/TableForm/index.d.ts +1 -15
- package/dist/components/TableForm/style.d.ts +13 -5
- package/dist/components/TableForm/types.d.ts +80 -13
- package/dist/components/TableForm/utils.d.ts +3 -0
- package/dist/components/message-group/index.d.ts +6 -8
- package/dist/esm/index.js +1555 -666
- package/dist/esm/stats1.html +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/spec/base.d.ts +2 -0
- package/dist/style.css +622 -427
- package/dist/umd/index.js +1554 -667
- package/dist/umd/stats1.html +1 -1
- package/package.json +7 -5
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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, message, 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,
|
|
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, message, Modal as Modal$1, Steps as Steps$1, Dropdown, Menu, Progress as Progress$1, Radio as Radio$1, Switch as Switch$1, Table as Table$1, Space, Form, List, Tag, Row, Col, Tree, Divider, Skeleton, Layout, AutoComplete, Popover, Timeline, Typography, Cascader, Upload } from 'antd';
|
|
2
2
|
export { Col, Row } from 'antd';
|
|
3
|
-
import React, { useState, useMemo, useRef, useCallback, useEffect, Fragment, useLayoutEffect, createContext, useContext } from 'react';
|
|
3
|
+
import React, { useState, useMemo, useRef, useCallback, useEffect, Fragment, useLayoutEffect, createContext, memo, useImperativeHandle, useContext } from 'react';
|
|
4
4
|
import cs from 'classnames';
|
|
5
5
|
import _, { sortBy, uniqBy } from 'lodash';
|
|
6
6
|
import { parrotI18n } from '@cloudtower/parrot';
|
|
@@ -10,9 +10,11 @@ import { styled } from '@linaria/react';
|
|
|
10
10
|
import moment from 'moment';
|
|
11
11
|
import { findDOMNode } from 'react-dom';
|
|
12
12
|
import { isElement } from 'react-is';
|
|
13
|
-
import { CloseCircleFilled, CheckOutlined, SearchOutlined } from '@ant-design/icons';
|
|
13
|
+
import { CloseCircleFilled, CheckOutlined, SearchOutlined, PlusOutlined, EyeOutlined, EyeInvisibleOutlined } from '@ant-design/icons';
|
|
14
14
|
import { combineReducers, createStore } from 'redux';
|
|
15
15
|
import { createDispatchHook, createSelectorHook, Provider } from 'react-redux';
|
|
16
|
+
import { HandlePoint816SecondaryIcon, HandlePoint816BlueIcon, XmarkRemove16SecondaryIcon, XmarkRemove16RegularRedIcon } from '@cloudtower/icons-react';
|
|
17
|
+
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
|
|
16
18
|
import TimeZones from 'timezones.json';
|
|
17
19
|
import { withTranslation } from 'react-i18next';
|
|
18
20
|
import dayjs from 'dayjs';
|
|
@@ -235,30 +237,30 @@ function getAlertIcon(type) {
|
|
|
235
237
|
}
|
|
236
238
|
}
|
|
237
239
|
|
|
238
|
-
var __defProp$
|
|
239
|
-
var __getOwnPropSymbols$
|
|
240
|
-
var __hasOwnProp$
|
|
241
|
-
var __propIsEnum$
|
|
242
|
-
var __defNormalProp$
|
|
243
|
-
var __spreadValues$
|
|
240
|
+
var __defProp$E = Object.defineProperty;
|
|
241
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
|
242
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
|
243
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
|
244
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
245
|
+
var __spreadValues$E = (a, b) => {
|
|
244
246
|
for (var prop in b || (b = {}))
|
|
245
|
-
if (__hasOwnProp$
|
|
246
|
-
__defNormalProp$
|
|
247
|
-
if (__getOwnPropSymbols$
|
|
248
|
-
for (var prop of __getOwnPropSymbols$
|
|
249
|
-
if (__propIsEnum$
|
|
250
|
-
__defNormalProp$
|
|
247
|
+
if (__hasOwnProp$F.call(b, prop))
|
|
248
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
249
|
+
if (__getOwnPropSymbols$F)
|
|
250
|
+
for (var prop of __getOwnPropSymbols$F(b)) {
|
|
251
|
+
if (__propIsEnum$F.call(b, prop))
|
|
252
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
251
253
|
}
|
|
252
254
|
return a;
|
|
253
255
|
};
|
|
254
|
-
var __objRest$
|
|
256
|
+
var __objRest$s = (source, exclude) => {
|
|
255
257
|
var target = {};
|
|
256
258
|
for (var prop in source)
|
|
257
|
-
if (__hasOwnProp$
|
|
259
|
+
if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
258
260
|
target[prop] = source[prop];
|
|
259
|
-
if (source != null && __getOwnPropSymbols$
|
|
260
|
-
for (var prop of __getOwnPropSymbols$
|
|
261
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
261
|
+
if (source != null && __getOwnPropSymbols$F)
|
|
262
|
+
for (var prop of __getOwnPropSymbols$F(source)) {
|
|
263
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
|
|
262
264
|
target[prop] = source[prop];
|
|
263
265
|
}
|
|
264
266
|
return target;
|
|
@@ -276,7 +278,7 @@ const BaseIcon = React.forwardRef(
|
|
|
276
278
|
prefixNode,
|
|
277
279
|
suffixIconSrc: SuffixSrc,
|
|
278
280
|
src: Src
|
|
279
|
-
} = _a, HTMLSpanElementProps = __objRest$
|
|
281
|
+
} = _a, HTMLSpanElementProps = __objRest$s(_a, [
|
|
280
282
|
"alt",
|
|
281
283
|
"className",
|
|
282
284
|
"width",
|
|
@@ -290,10 +292,10 @@ const BaseIcon = React.forwardRef(
|
|
|
290
292
|
]);
|
|
291
293
|
return /* @__PURE__ */ React.createElement(
|
|
292
294
|
"span",
|
|
293
|
-
__spreadValues$
|
|
295
|
+
__spreadValues$E({
|
|
294
296
|
ref,
|
|
295
297
|
className,
|
|
296
|
-
style: _.pickBy(__spreadValues$
|
|
298
|
+
style: _.pickBy(__spreadValues$E({ cursor }, style))
|
|
297
299
|
}, HTMLSpanElementProps),
|
|
298
300
|
prefixNode,
|
|
299
301
|
/* @__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 })),
|
|
@@ -303,31 +305,31 @@ const BaseIcon = React.forwardRef(
|
|
|
303
305
|
}
|
|
304
306
|
);
|
|
305
307
|
|
|
306
|
-
var __defProp$
|
|
307
|
-
var __defProps$
|
|
308
|
-
var __getOwnPropDescs$
|
|
309
|
-
var __getOwnPropSymbols$
|
|
310
|
-
var __hasOwnProp$
|
|
311
|
-
var __propIsEnum$
|
|
312
|
-
var __defNormalProp$
|
|
308
|
+
var __defProp$D = Object.defineProperty;
|
|
309
|
+
var __defProps$v = Object.defineProperties;
|
|
310
|
+
var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
|
|
311
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
|
312
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
|
313
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
|
314
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, {
|
|
313
315
|
enumerable: true,
|
|
314
316
|
configurable: true,
|
|
315
317
|
writable: true,
|
|
316
318
|
value
|
|
317
319
|
}) : obj[key] = value;
|
|
318
|
-
var __spreadValues$
|
|
319
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
320
|
-
if (__getOwnPropSymbols$
|
|
321
|
-
if (__propIsEnum$
|
|
320
|
+
var __spreadValues$D = (a, b) => {
|
|
321
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$E.call(b, prop)) __defNormalProp$D(a, prop, b[prop]);
|
|
322
|
+
if (__getOwnPropSymbols$E) for (var prop of __getOwnPropSymbols$E(b)) {
|
|
323
|
+
if (__propIsEnum$E.call(b, prop)) __defNormalProp$D(a, prop, b[prop]);
|
|
322
324
|
}
|
|
323
325
|
return a;
|
|
324
326
|
};
|
|
325
|
-
var __spreadProps$
|
|
326
|
-
var __objRest$
|
|
327
|
+
var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
|
|
328
|
+
var __objRest$r = (source, exclude) => {
|
|
327
329
|
var target = {};
|
|
328
|
-
for (var prop in source) if (__hasOwnProp$
|
|
329
|
-
if (source != null && __getOwnPropSymbols$
|
|
330
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
330
|
+
for (var prop in source) if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
331
|
+
if (source != null && __getOwnPropSymbols$E) for (var prop of __getOwnPropSymbols$E(source)) {
|
|
332
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop)) target[prop] = source[prop];
|
|
331
333
|
}
|
|
332
334
|
return target;
|
|
333
335
|
};
|
|
@@ -351,7 +353,7 @@ const Icon = React.forwardRef((props, ref) => {
|
|
|
351
353
|
prefix,
|
|
352
354
|
suffix
|
|
353
355
|
} = _a,
|
|
354
|
-
restProps = __objRest$
|
|
356
|
+
restProps = __objRest$r(_a, ["src", "hoverSrc", "active", "activeSrc", "onMouseEnter", "onMouseLeave", "onMouseMove", "className", "iconWidth", "iconHeight", "cursor", "style", "isRotate", "prefix", "suffix"]);
|
|
355
357
|
const [hover, setHover] = useState(false);
|
|
356
358
|
const _src = useMemo(() => {
|
|
357
359
|
if (active && activeSrc) {
|
|
@@ -379,14 +381,14 @@ const Icon = React.forwardRef((props, ref) => {
|
|
|
379
381
|
}
|
|
380
382
|
return src2;
|
|
381
383
|
}, [active, hover, suffix]);
|
|
382
|
-
return /* @__PURE__ */React.createElement(BaseIcon, __spreadProps$
|
|
384
|
+
return /* @__PURE__ */React.createElement(BaseIcon, __spreadProps$v(__spreadValues$D({
|
|
383
385
|
src: _src,
|
|
384
386
|
className: cs(IconWrapper, "icon-wrapper", className, isRotate && "is-rotate"),
|
|
385
387
|
suffixIconSrc,
|
|
386
388
|
height: iconHeight,
|
|
387
389
|
width: iconWidth,
|
|
388
390
|
prefixNode: prefix,
|
|
389
|
-
style: _.pickBy(__spreadValues$
|
|
391
|
+
style: _.pickBy(__spreadValues$D({
|
|
390
392
|
cursor
|
|
391
393
|
}, style))
|
|
392
394
|
}, restProps), {
|
|
@@ -411,33 +413,33 @@ const Icon = React.forwardRef((props, ref) => {
|
|
|
411
413
|
}));
|
|
412
414
|
});
|
|
413
415
|
|
|
414
|
-
var __defProp$
|
|
415
|
-
var __defProps$
|
|
416
|
-
var __getOwnPropDescs$
|
|
417
|
-
var __getOwnPropSymbols$
|
|
418
|
-
var __hasOwnProp$
|
|
419
|
-
var __propIsEnum$
|
|
420
|
-
var __defNormalProp$
|
|
421
|
-
var __spreadValues$
|
|
416
|
+
var __defProp$C = Object.defineProperty;
|
|
417
|
+
var __defProps$u = Object.defineProperties;
|
|
418
|
+
var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
|
|
419
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
|
420
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
|
421
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
|
422
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
423
|
+
var __spreadValues$C = (a, b) => {
|
|
422
424
|
for (var prop in b || (b = {}))
|
|
423
|
-
if (__hasOwnProp$
|
|
424
|
-
__defNormalProp$
|
|
425
|
-
if (__getOwnPropSymbols$
|
|
426
|
-
for (var prop of __getOwnPropSymbols$
|
|
427
|
-
if (__propIsEnum$
|
|
428
|
-
__defNormalProp$
|
|
425
|
+
if (__hasOwnProp$D.call(b, prop))
|
|
426
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
427
|
+
if (__getOwnPropSymbols$D)
|
|
428
|
+
for (var prop of __getOwnPropSymbols$D(b)) {
|
|
429
|
+
if (__propIsEnum$D.call(b, prop))
|
|
430
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
429
431
|
}
|
|
430
432
|
return a;
|
|
431
433
|
};
|
|
432
|
-
var __spreadProps$
|
|
433
|
-
var __objRest$
|
|
434
|
+
var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
|
|
435
|
+
var __objRest$q = (source, exclude) => {
|
|
434
436
|
var target = {};
|
|
435
437
|
for (var prop in source)
|
|
436
|
-
if (__hasOwnProp$
|
|
438
|
+
if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
437
439
|
target[prop] = source[prop];
|
|
438
|
-
if (source != null && __getOwnPropSymbols$
|
|
439
|
-
for (var prop of __getOwnPropSymbols$
|
|
440
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
440
|
+
if (source != null && __getOwnPropSymbols$D)
|
|
441
|
+
for (var prop of __getOwnPropSymbols$D(source)) {
|
|
442
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
|
|
441
443
|
target[prop] = source[prop];
|
|
442
444
|
}
|
|
443
445
|
return target;
|
|
@@ -450,7 +452,7 @@ const Alert = (_a) => {
|
|
|
450
452
|
className,
|
|
451
453
|
onClose,
|
|
452
454
|
closeText
|
|
453
|
-
} = _b, props = __objRest$
|
|
455
|
+
} = _b, props = __objRest$q(_b, [
|
|
454
456
|
"type",
|
|
455
457
|
"icon",
|
|
456
458
|
"showIcon",
|
|
@@ -462,7 +464,7 @@ const Alert = (_a) => {
|
|
|
462
464
|
const _type = type === "normal" ? "info" : type;
|
|
463
465
|
return /* @__PURE__ */ React.createElement(
|
|
464
466
|
Alert$1,
|
|
465
|
-
__spreadProps$
|
|
467
|
+
__spreadProps$u(__spreadValues$C({}, props), {
|
|
466
468
|
className: cs(type ? `alert-${type}` : "", className),
|
|
467
469
|
type: _type,
|
|
468
470
|
icon: icon || _icon,
|
|
@@ -483,42 +485,42 @@ const Arch = (props) => {
|
|
|
483
485
|
return /* @__PURE__ */ React.createElement("span", null, text);
|
|
484
486
|
};
|
|
485
487
|
|
|
486
|
-
var __defProp$
|
|
487
|
-
var __defProps$
|
|
488
|
-
var __getOwnPropDescs$
|
|
489
|
-
var __getOwnPropSymbols$
|
|
490
|
-
var __hasOwnProp$
|
|
491
|
-
var __propIsEnum$
|
|
492
|
-
var __defNormalProp$
|
|
493
|
-
var __spreadValues$
|
|
488
|
+
var __defProp$B = Object.defineProperty;
|
|
489
|
+
var __defProps$t = Object.defineProperties;
|
|
490
|
+
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
|
491
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
|
492
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
|
493
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
|
494
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
495
|
+
var __spreadValues$B = (a, b) => {
|
|
494
496
|
for (var prop in b || (b = {}))
|
|
495
|
-
if (__hasOwnProp$
|
|
496
|
-
__defNormalProp$
|
|
497
|
-
if (__getOwnPropSymbols$
|
|
498
|
-
for (var prop of __getOwnPropSymbols$
|
|
499
|
-
if (__propIsEnum$
|
|
500
|
-
__defNormalProp$
|
|
497
|
+
if (__hasOwnProp$C.call(b, prop))
|
|
498
|
+
__defNormalProp$B(a, prop, b[prop]);
|
|
499
|
+
if (__getOwnPropSymbols$C)
|
|
500
|
+
for (var prop of __getOwnPropSymbols$C(b)) {
|
|
501
|
+
if (__propIsEnum$C.call(b, prop))
|
|
502
|
+
__defNormalProp$B(a, prop, b[prop]);
|
|
501
503
|
}
|
|
502
504
|
return a;
|
|
503
505
|
};
|
|
504
|
-
var __spreadProps$
|
|
505
|
-
var __objRest$
|
|
506
|
+
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
|
507
|
+
var __objRest$p = (source, exclude) => {
|
|
506
508
|
var target = {};
|
|
507
509
|
for (var prop in source)
|
|
508
|
-
if (__hasOwnProp$
|
|
510
|
+
if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
509
511
|
target[prop] = source[prop];
|
|
510
|
-
if (source != null && __getOwnPropSymbols$
|
|
511
|
-
for (var prop of __getOwnPropSymbols$
|
|
512
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
512
|
+
if (source != null && __getOwnPropSymbols$C)
|
|
513
|
+
for (var prop of __getOwnPropSymbols$C(source)) {
|
|
514
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
|
|
513
515
|
target[prop] = source[prop];
|
|
514
516
|
}
|
|
515
517
|
return target;
|
|
516
518
|
};
|
|
517
519
|
const Badge = (_a) => {
|
|
518
|
-
var _b = _a, { type = "error", className } = _b, props = __objRest$
|
|
520
|
+
var _b = _a, { type = "error", className } = _b, props = __objRest$p(_b, ["type", "className"]);
|
|
519
521
|
return /* @__PURE__ */ React.createElement(
|
|
520
522
|
Badge$1,
|
|
521
|
-
__spreadProps$
|
|
523
|
+
__spreadProps$t(__spreadValues$B({
|
|
522
524
|
className: cx(`badge-${type}`, className)
|
|
523
525
|
}, props), {
|
|
524
526
|
showZero: false
|
|
@@ -699,28 +701,28 @@ const HoverableElement = (props) => {
|
|
|
699
701
|
return icon != null ? React.cloneElement(icon, { className }) : null;
|
|
700
702
|
};
|
|
701
703
|
|
|
702
|
-
var __defProp$
|
|
703
|
-
var __getOwnPropSymbols$
|
|
704
|
-
var __hasOwnProp$
|
|
705
|
-
var __propIsEnum$
|
|
706
|
-
var __defNormalProp$
|
|
704
|
+
var __defProp$A = Object.defineProperty;
|
|
705
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
|
706
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
|
707
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
|
708
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, {
|
|
707
709
|
enumerable: true,
|
|
708
710
|
configurable: true,
|
|
709
711
|
writable: true,
|
|
710
712
|
value
|
|
711
713
|
}) : obj[key] = value;
|
|
712
|
-
var __spreadValues$
|
|
713
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
714
|
-
if (__getOwnPropSymbols$
|
|
715
|
-
if (__propIsEnum$
|
|
714
|
+
var __spreadValues$A = (a, b) => {
|
|
715
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$B.call(b, prop)) __defNormalProp$A(a, prop, b[prop]);
|
|
716
|
+
if (__getOwnPropSymbols$B) for (var prop of __getOwnPropSymbols$B(b)) {
|
|
717
|
+
if (__propIsEnum$B.call(b, prop)) __defNormalProp$A(a, prop, b[prop]);
|
|
716
718
|
}
|
|
717
719
|
return a;
|
|
718
720
|
};
|
|
719
|
-
var __objRest$
|
|
721
|
+
var __objRest$o = (source, exclude) => {
|
|
720
722
|
var target = {};
|
|
721
|
-
for (var prop in source) if (__hasOwnProp$
|
|
722
|
-
if (source != null && __getOwnPropSymbols$
|
|
723
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
723
|
+
for (var prop in source) if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
724
|
+
if (source != null && __getOwnPropSymbols$B) for (var prop of __getOwnPropSymbols$B(source)) {
|
|
725
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop)) target[prop] = source[prop];
|
|
724
726
|
}
|
|
725
727
|
return target;
|
|
726
728
|
};
|
|
@@ -743,11 +745,11 @@ const Button = React.forwardRef((props, ref) => {
|
|
|
743
745
|
onMouseLeave,
|
|
744
746
|
size = "middle"
|
|
745
747
|
} = _a,
|
|
746
|
-
restProps = __objRest$
|
|
748
|
+
restProps = __objRest$o(_a, ["type", "className", "children", "prefixIcon", "hoverPrefixIcon", "suffixIcon", "hoverSuffixIcon", "onMouseEnter", "onMouseLeave", "size"]);
|
|
747
749
|
const [status, setStatus] = useState("normal");
|
|
748
750
|
const hasIcon = prefixIcon || suffixIcon;
|
|
749
751
|
const hasHoverIcon = hoverPrefixIcon || hoverSuffixIcon;
|
|
750
|
-
return /* @__PURE__ */React.createElement(Button$1, __spreadValues$
|
|
752
|
+
return /* @__PURE__ */React.createElement(Button$1, __spreadValues$A({
|
|
751
753
|
ref,
|
|
752
754
|
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"),
|
|
753
755
|
type: isAntdButtonTypes(type) ? type : void 0,
|
|
@@ -777,33 +779,33 @@ const Button = React.forwardRef((props, ref) => {
|
|
|
777
779
|
}));
|
|
778
780
|
});
|
|
779
781
|
|
|
780
|
-
var __defProp$
|
|
781
|
-
var __defProps$
|
|
782
|
-
var __getOwnPropDescs$
|
|
783
|
-
var __getOwnPropSymbols$
|
|
784
|
-
var __hasOwnProp$
|
|
785
|
-
var __propIsEnum$
|
|
786
|
-
var __defNormalProp$
|
|
787
|
-
var __spreadValues$
|
|
782
|
+
var __defProp$z = Object.defineProperty;
|
|
783
|
+
var __defProps$s = Object.defineProperties;
|
|
784
|
+
var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
|
|
785
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
|
786
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
|
787
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
|
788
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
789
|
+
var __spreadValues$z = (a, b) => {
|
|
788
790
|
for (var prop in b || (b = {}))
|
|
789
|
-
if (__hasOwnProp$
|
|
790
|
-
__defNormalProp$
|
|
791
|
-
if (__getOwnPropSymbols$
|
|
792
|
-
for (var prop of __getOwnPropSymbols$
|
|
793
|
-
if (__propIsEnum$
|
|
794
|
-
__defNormalProp$
|
|
791
|
+
if (__hasOwnProp$A.call(b, prop))
|
|
792
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
793
|
+
if (__getOwnPropSymbols$A)
|
|
794
|
+
for (var prop of __getOwnPropSymbols$A(b)) {
|
|
795
|
+
if (__propIsEnum$A.call(b, prop))
|
|
796
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
795
797
|
}
|
|
796
798
|
return a;
|
|
797
799
|
};
|
|
798
|
-
var __spreadProps$
|
|
799
|
-
var __objRest$
|
|
800
|
+
var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
|
|
801
|
+
var __objRest$n = (source, exclude) => {
|
|
800
802
|
var target = {};
|
|
801
803
|
for (var prop in source)
|
|
802
|
-
if (__hasOwnProp$
|
|
804
|
+
if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
803
805
|
target[prop] = source[prop];
|
|
804
|
-
if (source != null && __getOwnPropSymbols$
|
|
805
|
-
for (var prop of __getOwnPropSymbols$
|
|
806
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
806
|
+
if (source != null && __getOwnPropSymbols$A)
|
|
807
|
+
for (var prop of __getOwnPropSymbols$A(source)) {
|
|
808
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
|
|
807
809
|
target[prop] = source[prop];
|
|
808
810
|
}
|
|
809
811
|
return target;
|
|
@@ -815,7 +817,7 @@ const Tooltip = (props) => {
|
|
|
815
817
|
overlayClassName,
|
|
816
818
|
overlayStyle,
|
|
817
819
|
children
|
|
818
|
-
} = _a, restProps = __objRest$
|
|
820
|
+
} = _a, restProps = __objRest$n(_a, [
|
|
819
821
|
"followMouse",
|
|
820
822
|
"overlayClassName",
|
|
821
823
|
"overlayStyle",
|
|
@@ -857,10 +859,10 @@ const Tooltip = (props) => {
|
|
|
857
859
|
}, [followMouse, onmousemove, uniqueContainerClass]);
|
|
858
860
|
return /* @__PURE__ */ React.createElement(
|
|
859
861
|
Tooltip$1,
|
|
860
|
-
__spreadProps$
|
|
862
|
+
__spreadProps$s(__spreadValues$z({}, restProps), {
|
|
861
863
|
overlayClassName: followMouse ? cs(overlayClassName, uniquePopupClass) : overlayClassName,
|
|
862
864
|
children: _children,
|
|
863
|
-
overlayStyle: followMouse ? __spreadValues$
|
|
865
|
+
overlayStyle: followMouse ? __spreadValues$z({
|
|
864
866
|
transform: "translate(-50%, -100%)",
|
|
865
867
|
pointerEvents: "none"
|
|
866
868
|
}, overlayStyle) : overlayStyle
|
|
@@ -868,28 +870,28 @@ const Tooltip = (props) => {
|
|
|
868
870
|
);
|
|
869
871
|
};
|
|
870
872
|
|
|
871
|
-
var __defProp$
|
|
872
|
-
var __getOwnPropSymbols$
|
|
873
|
-
var __hasOwnProp$
|
|
874
|
-
var __propIsEnum$
|
|
875
|
-
var __defNormalProp$
|
|
873
|
+
var __defProp$y = Object.defineProperty;
|
|
874
|
+
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
|
875
|
+
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
|
876
|
+
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
|
877
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, {
|
|
876
878
|
enumerable: true,
|
|
877
879
|
configurable: true,
|
|
878
880
|
writable: true,
|
|
879
881
|
value
|
|
880
882
|
}) : obj[key] = value;
|
|
881
|
-
var __spreadValues$
|
|
882
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
883
|
-
if (__getOwnPropSymbols$
|
|
884
|
-
if (__propIsEnum$
|
|
883
|
+
var __spreadValues$y = (a, b) => {
|
|
884
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$z.call(b, prop)) __defNormalProp$y(a, prop, b[prop]);
|
|
885
|
+
if (__getOwnPropSymbols$z) for (var prop of __getOwnPropSymbols$z(b)) {
|
|
886
|
+
if (__propIsEnum$z.call(b, prop)) __defNormalProp$y(a, prop, b[prop]);
|
|
885
887
|
}
|
|
886
888
|
return a;
|
|
887
889
|
};
|
|
888
|
-
var __objRest$
|
|
890
|
+
var __objRest$m = (source, exclude) => {
|
|
889
891
|
var target = {};
|
|
890
|
-
for (var prop in source) if (__hasOwnProp$
|
|
891
|
-
if (source != null && __getOwnPropSymbols$
|
|
892
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
892
|
+
for (var prop in source) if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
893
|
+
if (source != null && __getOwnPropSymbols$z) for (var prop of __getOwnPropSymbols$z(source)) {
|
|
894
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop)) target[prop] = source[prop];
|
|
893
895
|
}
|
|
894
896
|
return target;
|
|
895
897
|
};
|
|
@@ -924,7 +926,7 @@ const ButtonGroup = React.forwardRef((props, ref) => {
|
|
|
924
926
|
hideTitle,
|
|
925
927
|
title
|
|
926
928
|
} = _a,
|
|
927
|
-
buttonPropArgs = __objRest$
|
|
929
|
+
buttonPropArgs = __objRest$m(_a, ["key", "icon", "type", "children", "danger", "ghost", "className", "hideTitle", "title"]);
|
|
928
930
|
if (hideTitle) {
|
|
929
931
|
return /* @__PURE__ */React.createElement(Tooltip, {
|
|
930
932
|
key: key || index,
|
|
@@ -933,7 +935,7 @@ const ButtonGroup = React.forwardRef((props, ref) => {
|
|
|
933
935
|
style: {
|
|
934
936
|
cursor: "not-allowed"
|
|
935
937
|
}
|
|
936
|
-
}, /* @__PURE__ */React.createElement(Button, __spreadValues$
|
|
938
|
+
}, /* @__PURE__ */React.createElement(Button, __spreadValues$y({
|
|
937
939
|
style: {
|
|
938
940
|
pointerEvents: "none"
|
|
939
941
|
},
|
|
@@ -943,7 +945,7 @@ const ButtonGroup = React.forwardRef((props, ref) => {
|
|
|
943
945
|
ghost,
|
|
944
946
|
className: cx(ButtonStyle, className2),
|
|
945
947
|
prefixIcon: icon
|
|
946
|
-
}, buttonPropArgs))) : /* @__PURE__ */React.createElement(Button, __spreadValues$
|
|
948
|
+
}, buttonPropArgs))) : /* @__PURE__ */React.createElement(Button, __spreadValues$y({
|
|
947
949
|
type,
|
|
948
950
|
size,
|
|
949
951
|
danger,
|
|
@@ -952,7 +954,7 @@ const ButtonGroup = React.forwardRef((props, ref) => {
|
|
|
952
954
|
prefixIcon: icon
|
|
953
955
|
}, buttonPropArgs)));
|
|
954
956
|
}
|
|
955
|
-
return /* @__PURE__ */React.createElement(Button, __spreadValues$
|
|
957
|
+
return /* @__PURE__ */React.createElement(Button, __spreadValues$y({
|
|
956
958
|
key: key || index,
|
|
957
959
|
type,
|
|
958
960
|
size,
|
|
@@ -986,31 +988,31 @@ const Byte = ({
|
|
|
986
988
|
return /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
987
989
|
};
|
|
988
990
|
|
|
989
|
-
var __defProp$
|
|
990
|
-
var __defProps$
|
|
991
|
-
var __getOwnPropDescs$
|
|
992
|
-
var __getOwnPropSymbols$
|
|
993
|
-
var __hasOwnProp$
|
|
994
|
-
var __propIsEnum$
|
|
995
|
-
var __defNormalProp$
|
|
991
|
+
var __defProp$x = Object.defineProperty;
|
|
992
|
+
var __defProps$r = Object.defineProperties;
|
|
993
|
+
var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
|
|
994
|
+
var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
|
|
995
|
+
var __hasOwnProp$y = Object.prototype.hasOwnProperty;
|
|
996
|
+
var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
|
|
997
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, {
|
|
996
998
|
enumerable: true,
|
|
997
999
|
configurable: true,
|
|
998
1000
|
writable: true,
|
|
999
1001
|
value
|
|
1000
1002
|
}) : obj[key] = value;
|
|
1001
|
-
var __spreadValues$
|
|
1002
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1003
|
-
if (__getOwnPropSymbols$
|
|
1004
|
-
if (__propIsEnum$
|
|
1003
|
+
var __spreadValues$x = (a, b) => {
|
|
1004
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$y.call(b, prop)) __defNormalProp$x(a, prop, b[prop]);
|
|
1005
|
+
if (__getOwnPropSymbols$y) for (var prop of __getOwnPropSymbols$y(b)) {
|
|
1006
|
+
if (__propIsEnum$y.call(b, prop)) __defNormalProp$x(a, prop, b[prop]);
|
|
1005
1007
|
}
|
|
1006
1008
|
return a;
|
|
1007
1009
|
};
|
|
1008
|
-
var __spreadProps$
|
|
1009
|
-
var __objRest$
|
|
1010
|
+
var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
|
|
1011
|
+
var __objRest$l = (source, exclude) => {
|
|
1010
1012
|
var target = {};
|
|
1011
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1012
|
-
if (source != null && __getOwnPropSymbols$
|
|
1013
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1013
|
+
for (var prop in source) if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1014
|
+
if (source != null && __getOwnPropSymbols$y) for (var prop of __getOwnPropSymbols$y(source)) {
|
|
1015
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop)) target[prop] = source[prop];
|
|
1014
1016
|
}
|
|
1015
1017
|
return target;
|
|
1016
1018
|
};
|
|
@@ -1023,8 +1025,8 @@ const Checkbox = _a => {
|
|
|
1023
1025
|
description,
|
|
1024
1026
|
compact
|
|
1025
1027
|
} = _b,
|
|
1026
|
-
props = __objRest$
|
|
1027
|
-
return /* @__PURE__ */React.createElement(Checkbox$1, __spreadProps$
|
|
1028
|
+
props = __objRest$l(_b, ["className", "children", "description", "compact"]);
|
|
1029
|
+
return /* @__PURE__ */React.createElement(Checkbox$1, __spreadProps$r(__spreadValues$x({}, props), {
|
|
1028
1030
|
"data-test": props["data-test"] || props.value,
|
|
1029
1031
|
className: cs(className, CheckboxStyle, compact && "compact")
|
|
1030
1032
|
}), children ? /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("div", {
|
|
@@ -1034,39 +1036,39 @@ const Checkbox = _a => {
|
|
|
1034
1036
|
}, description) : null) : null);
|
|
1035
1037
|
};
|
|
1036
1038
|
|
|
1037
|
-
var __defProp$
|
|
1038
|
-
var __getOwnPropSymbols$
|
|
1039
|
-
var __hasOwnProp$
|
|
1040
|
-
var __propIsEnum$
|
|
1041
|
-
var __defNormalProp$
|
|
1042
|
-
var __spreadValues$
|
|
1039
|
+
var __defProp$w = Object.defineProperty;
|
|
1040
|
+
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
|
1041
|
+
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
|
1042
|
+
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
|
1043
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1044
|
+
var __spreadValues$w = (a, b) => {
|
|
1043
1045
|
for (var prop in b || (b = {}))
|
|
1044
|
-
if (__hasOwnProp$
|
|
1045
|
-
__defNormalProp$
|
|
1046
|
-
if (__getOwnPropSymbols$
|
|
1047
|
-
for (var prop of __getOwnPropSymbols$
|
|
1048
|
-
if (__propIsEnum$
|
|
1049
|
-
__defNormalProp$
|
|
1046
|
+
if (__hasOwnProp$x.call(b, prop))
|
|
1047
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
1048
|
+
if (__getOwnPropSymbols$x)
|
|
1049
|
+
for (var prop of __getOwnPropSymbols$x(b)) {
|
|
1050
|
+
if (__propIsEnum$x.call(b, prop))
|
|
1051
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
1050
1052
|
}
|
|
1051
1053
|
return a;
|
|
1052
1054
|
};
|
|
1053
|
-
var __objRest$
|
|
1055
|
+
var __objRest$k = (source, exclude) => {
|
|
1054
1056
|
var target = {};
|
|
1055
1057
|
for (var prop in source)
|
|
1056
|
-
if (__hasOwnProp$
|
|
1058
|
+
if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1057
1059
|
target[prop] = source[prop];
|
|
1058
|
-
if (source != null && __getOwnPropSymbols$
|
|
1059
|
-
for (var prop of __getOwnPropSymbols$
|
|
1060
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1060
|
+
if (source != null && __getOwnPropSymbols$x)
|
|
1061
|
+
for (var prop of __getOwnPropSymbols$x(source)) {
|
|
1062
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
|
|
1061
1063
|
target[prop] = source[prop];
|
|
1062
1064
|
}
|
|
1063
1065
|
return target;
|
|
1064
1066
|
};
|
|
1065
1067
|
const FieldsBoolean = (_a) => {
|
|
1066
|
-
var _b = _a, { input, children } = _b, props = __objRest$
|
|
1068
|
+
var _b = _a, { input, children } = _b, props = __objRest$k(_b, ["input", "children"]);
|
|
1067
1069
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
1068
1070
|
Checkbox,
|
|
1069
|
-
__spreadValues$
|
|
1071
|
+
__spreadValues$w({
|
|
1070
1072
|
checked: Boolean(input.value),
|
|
1071
1073
|
onChange: (e) => input.onChange(e.target.checked)
|
|
1072
1074
|
}, props),
|
|
@@ -1091,17 +1093,17 @@ const FieldsDateTime = ({ input }) => /* @__PURE__ */ React.createElement(React.
|
|
|
1091
1093
|
}
|
|
1092
1094
|
));
|
|
1093
1095
|
|
|
1094
|
-
var __getOwnPropSymbols$
|
|
1095
|
-
var __hasOwnProp$
|
|
1096
|
-
var __propIsEnum$
|
|
1097
|
-
var __objRest$
|
|
1096
|
+
var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
|
|
1097
|
+
var __hasOwnProp$w = Object.prototype.hasOwnProperty;
|
|
1098
|
+
var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
|
|
1099
|
+
var __objRest$j = (source, exclude) => {
|
|
1098
1100
|
var target = {};
|
|
1099
1101
|
for (var prop in source)
|
|
1100
|
-
if (__hasOwnProp$
|
|
1102
|
+
if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1101
1103
|
target[prop] = source[prop];
|
|
1102
|
-
if (source != null && __getOwnPropSymbols$
|
|
1103
|
-
for (var prop of __getOwnPropSymbols$
|
|
1104
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1104
|
+
if (source != null && __getOwnPropSymbols$w)
|
|
1105
|
+
for (var prop of __getOwnPropSymbols$w(source)) {
|
|
1106
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$w.call(source, prop))
|
|
1105
1107
|
target[prop] = source[prop];
|
|
1106
1108
|
}
|
|
1107
1109
|
return target;
|
|
@@ -1109,7 +1111,7 @@ var __objRest$i = (source, exclude) => {
|
|
|
1109
1111
|
const FieldsDateTimeRange = (_a) => {
|
|
1110
1112
|
var _b = _a, {
|
|
1111
1113
|
input
|
|
1112
|
-
} = _b, props = __objRest$
|
|
1114
|
+
} = _b, props = __objRest$j(_b, [
|
|
1113
1115
|
"input"
|
|
1114
1116
|
]);
|
|
1115
1117
|
var _a2, _b2;
|
|
@@ -1146,53 +1148,53 @@ const FullView = /*#__PURE__*/styled('div')({
|
|
|
1146
1148
|
const InputStyle = "ipd9bk";
|
|
1147
1149
|
const KitInputStyle = "kypn5o5";
|
|
1148
1150
|
|
|
1149
|
-
var __defProp$
|
|
1150
|
-
var __getOwnPropSymbols$
|
|
1151
|
-
var __hasOwnProp$
|
|
1152
|
-
var __propIsEnum$
|
|
1153
|
-
var __defNormalProp$
|
|
1154
|
-
var __spreadValues$
|
|
1151
|
+
var __defProp$v = Object.defineProperty;
|
|
1152
|
+
var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
|
|
1153
|
+
var __hasOwnProp$v = Object.prototype.hasOwnProperty;
|
|
1154
|
+
var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
|
|
1155
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1156
|
+
var __spreadValues$v = (a, b) => {
|
|
1155
1157
|
for (var prop in b || (b = {}))
|
|
1156
|
-
if (__hasOwnProp$
|
|
1157
|
-
__defNormalProp$
|
|
1158
|
-
if (__getOwnPropSymbols$
|
|
1159
|
-
for (var prop of __getOwnPropSymbols$
|
|
1160
|
-
if (__propIsEnum$
|
|
1161
|
-
__defNormalProp$
|
|
1158
|
+
if (__hasOwnProp$v.call(b, prop))
|
|
1159
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
1160
|
+
if (__getOwnPropSymbols$v)
|
|
1161
|
+
for (var prop of __getOwnPropSymbols$v(b)) {
|
|
1162
|
+
if (__propIsEnum$v.call(b, prop))
|
|
1163
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
1162
1164
|
}
|
|
1163
1165
|
return a;
|
|
1164
1166
|
};
|
|
1165
1167
|
const Loading = ({ fullView = true }) => {
|
|
1166
1168
|
const Wrapper = fullView ? FullView : Fragment;
|
|
1167
1169
|
const props = fullView ? { className: "loading-full-view" } : {};
|
|
1168
|
-
return /* @__PURE__ */ React.createElement(Wrapper, __spreadValues$
|
|
1170
|
+
return /* @__PURE__ */ React.createElement(Wrapper, __spreadValues$v({}, 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" })));
|
|
1169
1171
|
};
|
|
1170
1172
|
|
|
1171
|
-
var __defProp$
|
|
1172
|
-
var __defProps$
|
|
1173
|
-
var __getOwnPropDescs$
|
|
1174
|
-
var __getOwnPropSymbols$
|
|
1175
|
-
var __hasOwnProp$
|
|
1176
|
-
var __propIsEnum$
|
|
1177
|
-
var __defNormalProp$
|
|
1173
|
+
var __defProp$u = Object.defineProperty;
|
|
1174
|
+
var __defProps$q = Object.defineProperties;
|
|
1175
|
+
var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
|
|
1176
|
+
var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
|
|
1177
|
+
var __hasOwnProp$u = Object.prototype.hasOwnProperty;
|
|
1178
|
+
var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
|
|
1179
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, {
|
|
1178
1180
|
enumerable: true,
|
|
1179
1181
|
configurable: true,
|
|
1180
1182
|
writable: true,
|
|
1181
1183
|
value
|
|
1182
1184
|
}) : obj[key] = value;
|
|
1183
|
-
var __spreadValues$
|
|
1184
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1185
|
-
if (__getOwnPropSymbols$
|
|
1186
|
-
if (__propIsEnum$
|
|
1185
|
+
var __spreadValues$u = (a, b) => {
|
|
1186
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$u.call(b, prop)) __defNormalProp$u(a, prop, b[prop]);
|
|
1187
|
+
if (__getOwnPropSymbols$u) for (var prop of __getOwnPropSymbols$u(b)) {
|
|
1188
|
+
if (__propIsEnum$u.call(b, prop)) __defNormalProp$u(a, prop, b[prop]);
|
|
1187
1189
|
}
|
|
1188
1190
|
return a;
|
|
1189
1191
|
};
|
|
1190
|
-
var __spreadProps$
|
|
1191
|
-
var __objRest$
|
|
1192
|
+
var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
|
|
1193
|
+
var __objRest$i = (source, exclude) => {
|
|
1192
1194
|
var target = {};
|
|
1193
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1194
|
-
if (source != null && __getOwnPropSymbols$
|
|
1195
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1195
|
+
for (var prop in source) if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1196
|
+
if (source != null && __getOwnPropSymbols$u) for (var prop of __getOwnPropSymbols$u(source)) {
|
|
1197
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop)) target[prop] = source[prop];
|
|
1196
1198
|
}
|
|
1197
1199
|
return target;
|
|
1198
1200
|
};
|
|
@@ -1220,7 +1222,7 @@ const Select = _a => {
|
|
|
1220
1222
|
meta,
|
|
1221
1223
|
placeholder
|
|
1222
1224
|
} = _b,
|
|
1223
|
-
restProps = __objRest$
|
|
1225
|
+
restProps = __objRest$i(_b, ["input", "multiple", "className", "scrollBottomBuffer", "onScrollBottom", "onPopupScroll", "onSearch", "showSearch", "filterOption", "loading", "notFoundContent", "children", "error", "selectLimit", "dropdownClassName", "danger", "size", "meta", "placeholder"]);
|
|
1224
1226
|
var _a2;
|
|
1225
1227
|
const limitExceeded = multiple && selectLimit && selectLimit <= (((_a2 = input.value) == null ? void 0 : _a2.length) || 0);
|
|
1226
1228
|
const typo = {
|
|
@@ -1246,7 +1248,7 @@ const Select = _a => {
|
|
|
1246
1248
|
inputDom && (placeholder || item) && inputDom.setAttribute("data-test", String(placeholder || item.textContent));
|
|
1247
1249
|
}
|
|
1248
1250
|
}, [selectRef, placeholder]);
|
|
1249
|
-
return /* @__PURE__ */React.createElement(Select$1, __spreadValues$
|
|
1251
|
+
return /* @__PURE__ */React.createElement(Select$1, __spreadValues$u(__spreadProps$q(__spreadValues$u({}, input), {
|
|
1250
1252
|
ref: selectRef,
|
|
1251
1253
|
size,
|
|
1252
1254
|
value: multiple ? input.value || [] : input.value || void 0,
|
|
@@ -1286,38 +1288,38 @@ const Select = _a => {
|
|
|
1286
1288
|
loading,
|
|
1287
1289
|
placeholder
|
|
1288
1290
|
}), restProps), React.Children.map(children, child => {
|
|
1289
|
-
return isElement(child) ? __spreadProps$
|
|
1290
|
-
props: __spreadProps$
|
|
1291
|
+
return isElement(child) ? __spreadProps$q(__spreadValues$u({}, child), {
|
|
1292
|
+
props: __spreadProps$q(__spreadValues$u({}, child.props), {
|
|
1291
1293
|
"data-test": child.props.value
|
|
1292
1294
|
})
|
|
1293
1295
|
}) : child;
|
|
1294
1296
|
}));
|
|
1295
1297
|
};
|
|
1296
1298
|
|
|
1297
|
-
var __defProp$
|
|
1298
|
-
var __getOwnPropSymbols$
|
|
1299
|
-
var __hasOwnProp$
|
|
1300
|
-
var __propIsEnum$
|
|
1301
|
-
var __defNormalProp$
|
|
1302
|
-
var __spreadValues$
|
|
1299
|
+
var __defProp$t = Object.defineProperty;
|
|
1300
|
+
var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
|
|
1301
|
+
var __hasOwnProp$t = Object.prototype.hasOwnProperty;
|
|
1302
|
+
var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
|
|
1303
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1304
|
+
var __spreadValues$t = (a, b) => {
|
|
1303
1305
|
for (var prop in b || (b = {}))
|
|
1304
|
-
if (__hasOwnProp$
|
|
1305
|
-
__defNormalProp$
|
|
1306
|
-
if (__getOwnPropSymbols$
|
|
1307
|
-
for (var prop of __getOwnPropSymbols$
|
|
1308
|
-
if (__propIsEnum$
|
|
1309
|
-
__defNormalProp$
|
|
1306
|
+
if (__hasOwnProp$t.call(b, prop))
|
|
1307
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
1308
|
+
if (__getOwnPropSymbols$t)
|
|
1309
|
+
for (var prop of __getOwnPropSymbols$t(b)) {
|
|
1310
|
+
if (__propIsEnum$t.call(b, prop))
|
|
1311
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
1310
1312
|
}
|
|
1311
1313
|
return a;
|
|
1312
1314
|
};
|
|
1313
|
-
var __objRest$
|
|
1315
|
+
var __objRest$h = (source, exclude) => {
|
|
1314
1316
|
var target = {};
|
|
1315
1317
|
for (var prop in source)
|
|
1316
|
-
if (__hasOwnProp$
|
|
1318
|
+
if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1317
1319
|
target[prop] = source[prop];
|
|
1318
|
-
if (source != null && __getOwnPropSymbols$
|
|
1319
|
-
for (var prop of __getOwnPropSymbols$
|
|
1320
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1320
|
+
if (source != null && __getOwnPropSymbols$t)
|
|
1321
|
+
for (var prop of __getOwnPropSymbols$t(source)) {
|
|
1322
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$t.call(source, prop))
|
|
1321
1323
|
target[prop] = source[prop];
|
|
1322
1324
|
}
|
|
1323
1325
|
return target;
|
|
@@ -1327,12 +1329,12 @@ const FieldsEnum = (_a) => {
|
|
|
1327
1329
|
meta: __,
|
|
1328
1330
|
enumValues,
|
|
1329
1331
|
emptyLabel
|
|
1330
|
-
} = _b, restProps = __objRest$
|
|
1332
|
+
} = _b, restProps = __objRest$h(_b, [
|
|
1331
1333
|
"meta",
|
|
1332
1334
|
"enumValues",
|
|
1333
1335
|
"emptyLabel"
|
|
1334
1336
|
]);
|
|
1335
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Select, __spreadValues$
|
|
1337
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Select, __spreadValues$t({}, restProps), emptyLabel && /* @__PURE__ */ React.createElement(Select$1.Option, { value: "" }, emptyLabel), enumValues.map((v) => {
|
|
1336
1338
|
const item = typeof v === "string" ? { value: v, text: v } : v;
|
|
1337
1339
|
return /* @__PURE__ */ React.createElement(
|
|
1338
1340
|
Select$1.Option,
|
|
@@ -1346,31 +1348,31 @@ const FieldsEnum = (_a) => {
|
|
|
1346
1348
|
})));
|
|
1347
1349
|
};
|
|
1348
1350
|
|
|
1349
|
-
var __defProp$
|
|
1350
|
-
var __defProps$
|
|
1351
|
-
var __getOwnPropDescs$
|
|
1352
|
-
var __getOwnPropSymbols$
|
|
1353
|
-
var __hasOwnProp$
|
|
1354
|
-
var __propIsEnum$
|
|
1355
|
-
var __defNormalProp$
|
|
1351
|
+
var __defProp$s = Object.defineProperty;
|
|
1352
|
+
var __defProps$p = Object.defineProperties;
|
|
1353
|
+
var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
|
|
1354
|
+
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
|
1355
|
+
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
|
1356
|
+
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
|
1357
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, {
|
|
1356
1358
|
enumerable: true,
|
|
1357
1359
|
configurable: true,
|
|
1358
1360
|
writable: true,
|
|
1359
1361
|
value
|
|
1360
1362
|
}) : obj[key] = value;
|
|
1361
|
-
var __spreadValues$
|
|
1362
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1363
|
-
if (__getOwnPropSymbols$
|
|
1364
|
-
if (__propIsEnum$
|
|
1363
|
+
var __spreadValues$s = (a, b) => {
|
|
1364
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$s.call(b, prop)) __defNormalProp$s(a, prop, b[prop]);
|
|
1365
|
+
if (__getOwnPropSymbols$s) for (var prop of __getOwnPropSymbols$s(b)) {
|
|
1366
|
+
if (__propIsEnum$s.call(b, prop)) __defNormalProp$s(a, prop, b[prop]);
|
|
1365
1367
|
}
|
|
1366
1368
|
return a;
|
|
1367
1369
|
};
|
|
1368
|
-
var __spreadProps$
|
|
1369
|
-
var __objRest$
|
|
1370
|
+
var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
|
|
1371
|
+
var __objRest$g = (source, exclude) => {
|
|
1370
1372
|
var target = {};
|
|
1371
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1372
|
-
if (source != null && __getOwnPropSymbols$
|
|
1373
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1373
|
+
for (var prop in source) if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1374
|
+
if (source != null && __getOwnPropSymbols$s) for (var prop of __getOwnPropSymbols$s(source)) {
|
|
1375
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop)) target[prop] = source[prop];
|
|
1374
1376
|
}
|
|
1375
1377
|
return target;
|
|
1376
1378
|
};
|
|
@@ -1406,13 +1408,13 @@ const InputNumber = _a => {
|
|
|
1406
1408
|
prefix,
|
|
1407
1409
|
controls = true
|
|
1408
1410
|
} = _b,
|
|
1409
|
-
props = __objRest$
|
|
1411
|
+
props = __objRest$g(_b, ["className", "error", "size", "suffix", "prefix", "controls"]);
|
|
1410
1412
|
const typo = {
|
|
1411
1413
|
large: Typo.Label.l2_regular,
|
|
1412
1414
|
middle: Typo.Label.l3_regular,
|
|
1413
1415
|
small: Typo.Label.l4_regular
|
|
1414
1416
|
}[size];
|
|
1415
|
-
return /* @__PURE__ */React.createElement(AntdInputNumberStyled, __spreadProps$
|
|
1417
|
+
return /* @__PURE__ */React.createElement(AntdInputNumberStyled, __spreadProps$p(__spreadValues$s({}, props), {
|
|
1416
1418
|
size,
|
|
1417
1419
|
controls,
|
|
1418
1420
|
"data-test": props.name,
|
|
@@ -1422,33 +1424,33 @@ const InputNumber = _a => {
|
|
|
1422
1424
|
}));
|
|
1423
1425
|
};
|
|
1424
1426
|
|
|
1425
|
-
var __defProp$
|
|
1426
|
-
var __defProps$
|
|
1427
|
-
var __getOwnPropDescs$
|
|
1428
|
-
var __getOwnPropSymbols$
|
|
1429
|
-
var __hasOwnProp$
|
|
1430
|
-
var __propIsEnum$
|
|
1431
|
-
var __defNormalProp$
|
|
1432
|
-
var __spreadValues$
|
|
1427
|
+
var __defProp$r = Object.defineProperty;
|
|
1428
|
+
var __defProps$o = Object.defineProperties;
|
|
1429
|
+
var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
|
|
1430
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
|
1431
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
|
1432
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
|
1433
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1434
|
+
var __spreadValues$r = (a, b) => {
|
|
1433
1435
|
for (var prop in b || (b = {}))
|
|
1434
|
-
if (__hasOwnProp$
|
|
1435
|
-
__defNormalProp$
|
|
1436
|
-
if (__getOwnPropSymbols$
|
|
1437
|
-
for (var prop of __getOwnPropSymbols$
|
|
1438
|
-
if (__propIsEnum$
|
|
1439
|
-
__defNormalProp$
|
|
1436
|
+
if (__hasOwnProp$r.call(b, prop))
|
|
1437
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
1438
|
+
if (__getOwnPropSymbols$r)
|
|
1439
|
+
for (var prop of __getOwnPropSymbols$r(b)) {
|
|
1440
|
+
if (__propIsEnum$r.call(b, prop))
|
|
1441
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
1440
1442
|
}
|
|
1441
1443
|
return a;
|
|
1442
1444
|
};
|
|
1443
|
-
var __spreadProps$
|
|
1444
|
-
var __objRest$
|
|
1445
|
+
var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
|
|
1446
|
+
var __objRest$f = (source, exclude) => {
|
|
1445
1447
|
var target = {};
|
|
1446
1448
|
for (var prop in source)
|
|
1447
|
-
if (__hasOwnProp$
|
|
1449
|
+
if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1448
1450
|
target[prop] = source[prop];
|
|
1449
|
-
if (source != null && __getOwnPropSymbols$
|
|
1450
|
-
for (var prop of __getOwnPropSymbols$
|
|
1451
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1451
|
+
if (source != null && __getOwnPropSymbols$r)
|
|
1452
|
+
for (var prop of __getOwnPropSymbols$r(source)) {
|
|
1453
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
|
|
1452
1454
|
target[prop] = source[prop];
|
|
1453
1455
|
}
|
|
1454
1456
|
return target;
|
|
@@ -1459,7 +1461,7 @@ const FieldsFloat = (_a) => {
|
|
|
1459
1461
|
meta,
|
|
1460
1462
|
onBlur,
|
|
1461
1463
|
autoComplete = "off"
|
|
1462
|
-
} = _b, props = __objRest$
|
|
1464
|
+
} = _b, props = __objRest$f(_b, [
|
|
1463
1465
|
"input",
|
|
1464
1466
|
"meta",
|
|
1465
1467
|
"onBlur",
|
|
@@ -1467,7 +1469,7 @@ const FieldsFloat = (_a) => {
|
|
|
1467
1469
|
]);
|
|
1468
1470
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
1469
1471
|
InputNumber,
|
|
1470
|
-
__spreadValues$
|
|
1472
|
+
__spreadValues$r(__spreadProps$o(__spreadValues$r({}, input), {
|
|
1471
1473
|
onBlur: (e) => onBlur ? onBlur(input, e) : input.onBlur(e),
|
|
1472
1474
|
autoComplete,
|
|
1473
1475
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
@@ -1475,33 +1477,33 @@ const FieldsFloat = (_a) => {
|
|
|
1475
1477
|
));
|
|
1476
1478
|
};
|
|
1477
1479
|
|
|
1478
|
-
var __defProp$
|
|
1479
|
-
var __defProps$
|
|
1480
|
-
var __getOwnPropDescs$
|
|
1481
|
-
var __getOwnPropSymbols$
|
|
1482
|
-
var __hasOwnProp$
|
|
1483
|
-
var __propIsEnum$
|
|
1484
|
-
var __defNormalProp$
|
|
1485
|
-
var __spreadValues$
|
|
1480
|
+
var __defProp$q = Object.defineProperty;
|
|
1481
|
+
var __defProps$n = Object.defineProperties;
|
|
1482
|
+
var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
|
|
1483
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
1484
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
1485
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
1486
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1487
|
+
var __spreadValues$q = (a, b) => {
|
|
1486
1488
|
for (var prop in b || (b = {}))
|
|
1487
|
-
if (__hasOwnProp$
|
|
1488
|
-
__defNormalProp$
|
|
1489
|
-
if (__getOwnPropSymbols$
|
|
1490
|
-
for (var prop of __getOwnPropSymbols$
|
|
1491
|
-
if (__propIsEnum$
|
|
1492
|
-
__defNormalProp$
|
|
1489
|
+
if (__hasOwnProp$q.call(b, prop))
|
|
1490
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
1491
|
+
if (__getOwnPropSymbols$q)
|
|
1492
|
+
for (var prop of __getOwnPropSymbols$q(b)) {
|
|
1493
|
+
if (__propIsEnum$q.call(b, prop))
|
|
1494
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
1493
1495
|
}
|
|
1494
1496
|
return a;
|
|
1495
1497
|
};
|
|
1496
|
-
var __spreadProps$
|
|
1497
|
-
var __objRest$
|
|
1498
|
+
var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
|
|
1499
|
+
var __objRest$e = (source, exclude) => {
|
|
1498
1500
|
var target = {};
|
|
1499
1501
|
for (var prop in source)
|
|
1500
|
-
if (__hasOwnProp$
|
|
1502
|
+
if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1501
1503
|
target[prop] = source[prop];
|
|
1502
|
-
if (source != null && __getOwnPropSymbols$
|
|
1503
|
-
for (var prop of __getOwnPropSymbols$
|
|
1504
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1504
|
+
if (source != null && __getOwnPropSymbols$q)
|
|
1505
|
+
for (var prop of __getOwnPropSymbols$q(source)) {
|
|
1506
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
|
|
1505
1507
|
target[prop] = source[prop];
|
|
1506
1508
|
}
|
|
1507
1509
|
return target;
|
|
@@ -1511,7 +1513,7 @@ const Input = (_a) => {
|
|
|
1511
1513
|
className,
|
|
1512
1514
|
error,
|
|
1513
1515
|
size = "middle"
|
|
1514
|
-
} = _b, props = __objRest$
|
|
1516
|
+
} = _b, props = __objRest$e(_b, [
|
|
1515
1517
|
"className",
|
|
1516
1518
|
"error",
|
|
1517
1519
|
"size"
|
|
@@ -1523,7 +1525,7 @@ const Input = (_a) => {
|
|
|
1523
1525
|
}[size];
|
|
1524
1526
|
return /* @__PURE__ */ React.createElement(
|
|
1525
1527
|
Input$1,
|
|
1526
|
-
__spreadProps$
|
|
1528
|
+
__spreadProps$n(__spreadValues$q({}, props), {
|
|
1527
1529
|
size,
|
|
1528
1530
|
"data-test": props.name,
|
|
1529
1531
|
className: cs(className, InputStyle, typo, error ? "error" : "")
|
|
@@ -1531,33 +1533,33 @@ const Input = (_a) => {
|
|
|
1531
1533
|
);
|
|
1532
1534
|
};
|
|
1533
1535
|
|
|
1534
|
-
var __defProp$
|
|
1535
|
-
var __defProps$
|
|
1536
|
-
var __getOwnPropDescs$
|
|
1537
|
-
var __getOwnPropSymbols$
|
|
1538
|
-
var __hasOwnProp$
|
|
1539
|
-
var __propIsEnum$
|
|
1540
|
-
var __defNormalProp$
|
|
1541
|
-
var __spreadValues$
|
|
1536
|
+
var __defProp$p = Object.defineProperty;
|
|
1537
|
+
var __defProps$m = Object.defineProperties;
|
|
1538
|
+
var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
|
|
1539
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
1540
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
1541
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
1542
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1543
|
+
var __spreadValues$p = (a, b) => {
|
|
1542
1544
|
for (var prop in b || (b = {}))
|
|
1543
|
-
if (__hasOwnProp$
|
|
1544
|
-
__defNormalProp$
|
|
1545
|
-
if (__getOwnPropSymbols$
|
|
1546
|
-
for (var prop of __getOwnPropSymbols$
|
|
1547
|
-
if (__propIsEnum$
|
|
1548
|
-
__defNormalProp$
|
|
1545
|
+
if (__hasOwnProp$p.call(b, prop))
|
|
1546
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
1547
|
+
if (__getOwnPropSymbols$p)
|
|
1548
|
+
for (var prop of __getOwnPropSymbols$p(b)) {
|
|
1549
|
+
if (__propIsEnum$p.call(b, prop))
|
|
1550
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
1549
1551
|
}
|
|
1550
1552
|
return a;
|
|
1551
1553
|
};
|
|
1552
|
-
var __spreadProps$
|
|
1553
|
-
var __objRest$
|
|
1554
|
+
var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
|
|
1555
|
+
var __objRest$d = (source, exclude) => {
|
|
1554
1556
|
var target = {};
|
|
1555
1557
|
for (var prop in source)
|
|
1556
|
-
if (__hasOwnProp$
|
|
1558
|
+
if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1557
1559
|
target[prop] = source[prop];
|
|
1558
|
-
if (source != null && __getOwnPropSymbols$
|
|
1559
|
-
for (var prop of __getOwnPropSymbols$
|
|
1560
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1560
|
+
if (source != null && __getOwnPropSymbols$p)
|
|
1561
|
+
for (var prop of __getOwnPropSymbols$p(source)) {
|
|
1562
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop))
|
|
1561
1563
|
target[prop] = source[prop];
|
|
1562
1564
|
}
|
|
1563
1565
|
return target;
|
|
@@ -1569,7 +1571,7 @@ const FieldsInt = (_a) => {
|
|
|
1569
1571
|
onBlur,
|
|
1570
1572
|
autoComplete = "off",
|
|
1571
1573
|
supportNegativeValue = false
|
|
1572
|
-
} = _b, props = __objRest$
|
|
1574
|
+
} = _b, props = __objRest$d(_b, [
|
|
1573
1575
|
"input",
|
|
1574
1576
|
"meta",
|
|
1575
1577
|
"onBlur",
|
|
@@ -1578,7 +1580,7 @@ const FieldsInt = (_a) => {
|
|
|
1578
1580
|
]);
|
|
1579
1581
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
1580
1582
|
Input,
|
|
1581
|
-
__spreadValues$
|
|
1583
|
+
__spreadValues$p(__spreadProps$m(__spreadValues$p({}, input), {
|
|
1582
1584
|
onChange: (e) => {
|
|
1583
1585
|
const value = e.currentTarget.value;
|
|
1584
1586
|
if (supportNegativeValue) {
|
|
@@ -1613,31 +1615,31 @@ const formatterInteger = (value) => {
|
|
|
1613
1615
|
}
|
|
1614
1616
|
};
|
|
1615
1617
|
|
|
1616
|
-
var __defProp$
|
|
1617
|
-
var __defProps$
|
|
1618
|
-
var __getOwnPropDescs$
|
|
1619
|
-
var __getOwnPropSymbols$
|
|
1620
|
-
var __hasOwnProp$
|
|
1621
|
-
var __propIsEnum$
|
|
1622
|
-
var __defNormalProp$
|
|
1618
|
+
var __defProp$o = Object.defineProperty;
|
|
1619
|
+
var __defProps$l = Object.defineProperties;
|
|
1620
|
+
var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
|
|
1621
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
1622
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
1623
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
1624
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, {
|
|
1623
1625
|
enumerable: true,
|
|
1624
1626
|
configurable: true,
|
|
1625
1627
|
writable: true,
|
|
1626
1628
|
value
|
|
1627
1629
|
}) : obj[key] = value;
|
|
1628
|
-
var __spreadValues$
|
|
1629
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1630
|
-
if (__getOwnPropSymbols$
|
|
1631
|
-
if (__propIsEnum$
|
|
1630
|
+
var __spreadValues$o = (a, b) => {
|
|
1631
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$o.call(b, prop)) __defNormalProp$o(a, prop, b[prop]);
|
|
1632
|
+
if (__getOwnPropSymbols$o) for (var prop of __getOwnPropSymbols$o(b)) {
|
|
1633
|
+
if (__propIsEnum$o.call(b, prop)) __defNormalProp$o(a, prop, b[prop]);
|
|
1632
1634
|
}
|
|
1633
1635
|
return a;
|
|
1634
1636
|
};
|
|
1635
|
-
var __spreadProps$
|
|
1636
|
-
var __objRest$
|
|
1637
|
+
var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
|
|
1638
|
+
var __objRest$c = (source, exclude) => {
|
|
1637
1639
|
var target = {};
|
|
1638
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1639
|
-
if (source != null && __getOwnPropSymbols$
|
|
1640
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1640
|
+
for (var prop in source) if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1641
|
+
if (source != null && __getOwnPropSymbols$o) for (var prop of __getOwnPropSymbols$o(source)) {
|
|
1642
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop)) target[prop] = source[prop];
|
|
1641
1643
|
}
|
|
1642
1644
|
return target;
|
|
1643
1645
|
};
|
|
@@ -1675,13 +1677,13 @@ const InputInteger = _a => {
|
|
|
1675
1677
|
min,
|
|
1676
1678
|
controls = false
|
|
1677
1679
|
} = _b,
|
|
1678
|
-
props = __objRest$
|
|
1680
|
+
props = __objRest$c(_b, ["className", "error", "size", "suffix", "prefix", "max", "min", "controls"]);
|
|
1679
1681
|
const typo = {
|
|
1680
1682
|
large: Typo.Label.l2_regular,
|
|
1681
1683
|
middle: Typo.Label.l3_regular,
|
|
1682
1684
|
small: Typo.Label.l4_regular
|
|
1683
1685
|
}[size];
|
|
1684
|
-
return /* @__PURE__ */React.createElement(AntdIntStyled, __spreadProps$
|
|
1686
|
+
return /* @__PURE__ */React.createElement(AntdIntStyled, __spreadProps$l(__spreadValues$o({}, props), {
|
|
1685
1687
|
size,
|
|
1686
1688
|
formatter: formatterInteger,
|
|
1687
1689
|
parser: formatterInteger,
|
|
@@ -1695,33 +1697,33 @@ const InputInteger = _a => {
|
|
|
1695
1697
|
}));
|
|
1696
1698
|
};
|
|
1697
1699
|
|
|
1698
|
-
var __defProp$
|
|
1699
|
-
var __defProps$
|
|
1700
|
-
var __getOwnPropDescs$
|
|
1701
|
-
var __getOwnPropSymbols$
|
|
1702
|
-
var __hasOwnProp$
|
|
1703
|
-
var __propIsEnum$
|
|
1704
|
-
var __defNormalProp$
|
|
1705
|
-
var __spreadValues$
|
|
1700
|
+
var __defProp$n = Object.defineProperty;
|
|
1701
|
+
var __defProps$k = Object.defineProperties;
|
|
1702
|
+
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
|
1703
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
1704
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
1705
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
1706
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1707
|
+
var __spreadValues$n = (a, b) => {
|
|
1706
1708
|
for (var prop in b || (b = {}))
|
|
1707
|
-
if (__hasOwnProp$
|
|
1708
|
-
__defNormalProp$
|
|
1709
|
-
if (__getOwnPropSymbols$
|
|
1710
|
-
for (var prop of __getOwnPropSymbols$
|
|
1711
|
-
if (__propIsEnum$
|
|
1712
|
-
__defNormalProp$
|
|
1709
|
+
if (__hasOwnProp$n.call(b, prop))
|
|
1710
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
1711
|
+
if (__getOwnPropSymbols$n)
|
|
1712
|
+
for (var prop of __getOwnPropSymbols$n(b)) {
|
|
1713
|
+
if (__propIsEnum$n.call(b, prop))
|
|
1714
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
1713
1715
|
}
|
|
1714
1716
|
return a;
|
|
1715
1717
|
};
|
|
1716
|
-
var __spreadProps$
|
|
1717
|
-
var __objRest$
|
|
1718
|
+
var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
|
|
1719
|
+
var __objRest$b = (source, exclude) => {
|
|
1718
1720
|
var target = {};
|
|
1719
1721
|
for (var prop in source)
|
|
1720
|
-
if (__hasOwnProp$
|
|
1722
|
+
if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1721
1723
|
target[prop] = source[prop];
|
|
1722
|
-
if (source != null && __getOwnPropSymbols$
|
|
1723
|
-
for (var prop of __getOwnPropSymbols$
|
|
1724
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1724
|
+
if (source != null && __getOwnPropSymbols$n)
|
|
1725
|
+
for (var prop of __getOwnPropSymbols$n(source)) {
|
|
1726
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop))
|
|
1725
1727
|
target[prop] = source[prop];
|
|
1726
1728
|
}
|
|
1727
1729
|
return target;
|
|
@@ -1731,14 +1733,14 @@ const FieldsInteger = (_a) => {
|
|
|
1731
1733
|
meta,
|
|
1732
1734
|
input,
|
|
1733
1735
|
onBlur
|
|
1734
|
-
} = _b, props = __objRest$
|
|
1736
|
+
} = _b, props = __objRest$b(_b, [
|
|
1735
1737
|
"meta",
|
|
1736
1738
|
"input",
|
|
1737
1739
|
"onBlur"
|
|
1738
1740
|
]);
|
|
1739
1741
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
1740
1742
|
InputInteger,
|
|
1741
|
-
__spreadProps$
|
|
1743
|
+
__spreadProps$k(__spreadValues$n(__spreadValues$n({}, props), input), {
|
|
1742
1744
|
onBlur: (e) => onBlur ? onBlur(input, e) : input.onBlur(e),
|
|
1743
1745
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
1744
1746
|
})
|
|
@@ -1902,33 +1904,33 @@ const Overflow = props => {
|
|
|
1902
1904
|
}, children), showOverflow && /* @__PURE__ */React.createElement("span", null, overflow));
|
|
1903
1905
|
};
|
|
1904
1906
|
|
|
1905
|
-
var __defProp$
|
|
1906
|
-
var __defProps$
|
|
1907
|
-
var __getOwnPropDescs$
|
|
1908
|
-
var __getOwnPropSymbols$
|
|
1909
|
-
var __hasOwnProp$
|
|
1910
|
-
var __propIsEnum$
|
|
1911
|
-
var __defNormalProp$
|
|
1912
|
-
var __spreadValues$
|
|
1907
|
+
var __defProp$m = Object.defineProperty;
|
|
1908
|
+
var __defProps$j = Object.defineProperties;
|
|
1909
|
+
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
1910
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
1911
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
1912
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
1913
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1914
|
+
var __spreadValues$m = (a, b) => {
|
|
1913
1915
|
for (var prop in b || (b = {}))
|
|
1914
|
-
if (__hasOwnProp$
|
|
1915
|
-
__defNormalProp$
|
|
1916
|
-
if (__getOwnPropSymbols$
|
|
1917
|
-
for (var prop of __getOwnPropSymbols$
|
|
1918
|
-
if (__propIsEnum$
|
|
1919
|
-
__defNormalProp$
|
|
1916
|
+
if (__hasOwnProp$m.call(b, prop))
|
|
1917
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
1918
|
+
if (__getOwnPropSymbols$m)
|
|
1919
|
+
for (var prop of __getOwnPropSymbols$m(b)) {
|
|
1920
|
+
if (__propIsEnum$m.call(b, prop))
|
|
1921
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
1920
1922
|
}
|
|
1921
1923
|
return a;
|
|
1922
1924
|
};
|
|
1923
|
-
var __spreadProps$
|
|
1924
|
-
var __objRest$
|
|
1925
|
+
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
1926
|
+
var __objRest$a = (source, exclude) => {
|
|
1925
1927
|
var target = {};
|
|
1926
1928
|
for (var prop in source)
|
|
1927
|
-
if (__hasOwnProp$
|
|
1929
|
+
if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1928
1930
|
target[prop] = source[prop];
|
|
1929
|
-
if (source != null && __getOwnPropSymbols$
|
|
1930
|
-
for (var prop of __getOwnPropSymbols$
|
|
1931
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1931
|
+
if (source != null && __getOwnPropSymbols$m)
|
|
1932
|
+
for (var prop of __getOwnPropSymbols$m(source)) {
|
|
1933
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
|
|
1932
1934
|
target[prop] = source[prop];
|
|
1933
1935
|
}
|
|
1934
1936
|
return target;
|
|
@@ -1947,7 +1949,7 @@ const FieldsString = (_a) => {
|
|
|
1947
1949
|
onClick,
|
|
1948
1950
|
maxLength,
|
|
1949
1951
|
focusIndicator
|
|
1950
|
-
} = _b, props = __objRest$
|
|
1952
|
+
} = _b, props = __objRest$a(_b, [
|
|
1951
1953
|
"input",
|
|
1952
1954
|
"meta",
|
|
1953
1955
|
"autoComplete",
|
|
@@ -1979,7 +1981,7 @@ const FieldsString = (_a) => {
|
|
|
1979
1981
|
}
|
|
1980
1982
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
1981
1983
|
Input,
|
|
1982
|
-
__spreadProps$
|
|
1984
|
+
__spreadProps$j(__spreadValues$m(__spreadProps$j(__spreadValues$m({
|
|
1983
1985
|
className: cs(
|
|
1984
1986
|
className,
|
|
1985
1987
|
KitInputStyle,
|
|
@@ -2004,33 +2006,33 @@ const FieldsString = (_a) => {
|
|
|
2004
2006
|
));
|
|
2005
2007
|
};
|
|
2006
2008
|
|
|
2007
|
-
var __defProp$
|
|
2008
|
-
var __defProps$
|
|
2009
|
-
var __getOwnPropDescs$
|
|
2010
|
-
var __getOwnPropSymbols$
|
|
2011
|
-
var __hasOwnProp$
|
|
2012
|
-
var __propIsEnum$
|
|
2013
|
-
var __defNormalProp$
|
|
2014
|
-
var __spreadValues$
|
|
2009
|
+
var __defProp$l = Object.defineProperty;
|
|
2010
|
+
var __defProps$i = Object.defineProperties;
|
|
2011
|
+
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
2012
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
2013
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
2014
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
2015
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2016
|
+
var __spreadValues$l = (a, b) => {
|
|
2015
2017
|
for (var prop in b || (b = {}))
|
|
2016
|
-
if (__hasOwnProp$
|
|
2017
|
-
__defNormalProp$
|
|
2018
|
-
if (__getOwnPropSymbols$
|
|
2019
|
-
for (var prop of __getOwnPropSymbols$
|
|
2020
|
-
if (__propIsEnum$
|
|
2021
|
-
__defNormalProp$
|
|
2018
|
+
if (__hasOwnProp$l.call(b, prop))
|
|
2019
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
2020
|
+
if (__getOwnPropSymbols$l)
|
|
2021
|
+
for (var prop of __getOwnPropSymbols$l(b)) {
|
|
2022
|
+
if (__propIsEnum$l.call(b, prop))
|
|
2023
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
2022
2024
|
}
|
|
2023
2025
|
return a;
|
|
2024
2026
|
};
|
|
2025
|
-
var __spreadProps$
|
|
2026
|
-
var __objRest$
|
|
2027
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
2028
|
+
var __objRest$9 = (source, exclude) => {
|
|
2027
2029
|
var target = {};
|
|
2028
2030
|
for (var prop in source)
|
|
2029
|
-
if (__hasOwnProp$
|
|
2031
|
+
if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2030
2032
|
target[prop] = source[prop];
|
|
2031
|
-
if (source != null && __getOwnPropSymbols$
|
|
2032
|
-
for (var prop of __getOwnPropSymbols$
|
|
2033
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2033
|
+
if (source != null && __getOwnPropSymbols$l)
|
|
2034
|
+
for (var prop of __getOwnPropSymbols$l(source)) {
|
|
2035
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
|
|
2034
2036
|
target[prop] = source[prop];
|
|
2035
2037
|
}
|
|
2036
2038
|
return target;
|
|
@@ -2040,7 +2042,7 @@ const TextArea = (_a) => {
|
|
|
2040
2042
|
className,
|
|
2041
2043
|
error,
|
|
2042
2044
|
size = "middle"
|
|
2043
|
-
} = _b, props = __objRest$
|
|
2045
|
+
} = _b, props = __objRest$9(_b, [
|
|
2044
2046
|
"className",
|
|
2045
2047
|
"error",
|
|
2046
2048
|
"size"
|
|
@@ -2052,7 +2054,7 @@ const TextArea = (_a) => {
|
|
|
2052
2054
|
}[size];
|
|
2053
2055
|
return /* @__PURE__ */ React.createElement(
|
|
2054
2056
|
Input$1.TextArea,
|
|
2055
|
-
__spreadProps$
|
|
2057
|
+
__spreadProps$i(__spreadValues$l({}, props), {
|
|
2056
2058
|
className: cs(
|
|
2057
2059
|
className,
|
|
2058
2060
|
InputStyle,
|
|
@@ -2066,33 +2068,33 @@ const TextArea = (_a) => {
|
|
|
2066
2068
|
);
|
|
2067
2069
|
};
|
|
2068
2070
|
|
|
2069
|
-
var __defProp$
|
|
2070
|
-
var __defProps$
|
|
2071
|
-
var __getOwnPropDescs$
|
|
2072
|
-
var __getOwnPropSymbols$
|
|
2073
|
-
var __hasOwnProp$
|
|
2074
|
-
var __propIsEnum$
|
|
2075
|
-
var __defNormalProp$
|
|
2076
|
-
var __spreadValues$
|
|
2077
|
-
for (var prop in b || (b = {}))
|
|
2078
|
-
if (__hasOwnProp$
|
|
2079
|
-
__defNormalProp$
|
|
2080
|
-
if (__getOwnPropSymbols$
|
|
2081
|
-
for (var prop of __getOwnPropSymbols$
|
|
2082
|
-
if (__propIsEnum$
|
|
2083
|
-
__defNormalProp$
|
|
2071
|
+
var __defProp$k = Object.defineProperty;
|
|
2072
|
+
var __defProps$h = Object.defineProperties;
|
|
2073
|
+
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
2074
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
|
2075
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
|
2076
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
|
2077
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2078
|
+
var __spreadValues$k = (a, b) => {
|
|
2079
|
+
for (var prop in b || (b = {}))
|
|
2080
|
+
if (__hasOwnProp$k.call(b, prop))
|
|
2081
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
2082
|
+
if (__getOwnPropSymbols$k)
|
|
2083
|
+
for (var prop of __getOwnPropSymbols$k(b)) {
|
|
2084
|
+
if (__propIsEnum$k.call(b, prop))
|
|
2085
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
2084
2086
|
}
|
|
2085
2087
|
return a;
|
|
2086
2088
|
};
|
|
2087
|
-
var __spreadProps$
|
|
2088
|
-
var __objRest$
|
|
2089
|
+
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
2090
|
+
var __objRest$8 = (source, exclude) => {
|
|
2089
2091
|
var target = {};
|
|
2090
2092
|
for (var prop in source)
|
|
2091
|
-
if (__hasOwnProp$
|
|
2093
|
+
if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2092
2094
|
target[prop] = source[prop];
|
|
2093
|
-
if (source != null && __getOwnPropSymbols$
|
|
2094
|
-
for (var prop of __getOwnPropSymbols$
|
|
2095
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2095
|
+
if (source != null && __getOwnPropSymbols$k)
|
|
2096
|
+
for (var prop of __getOwnPropSymbols$k(source)) {
|
|
2097
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
|
|
2096
2098
|
target[prop] = source[prop];
|
|
2097
2099
|
}
|
|
2098
2100
|
return target;
|
|
@@ -2102,14 +2104,14 @@ const FieldsTextArea = (_a) => {
|
|
|
2102
2104
|
input,
|
|
2103
2105
|
meta,
|
|
2104
2106
|
onFocusChangeHeight
|
|
2105
|
-
} = _b, props = __objRest$
|
|
2107
|
+
} = _b, props = __objRest$8(_b, [
|
|
2106
2108
|
"input",
|
|
2107
2109
|
"meta",
|
|
2108
2110
|
"onFocusChangeHeight"
|
|
2109
2111
|
]);
|
|
2110
2112
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
2111
2113
|
TextArea,
|
|
2112
|
-
__spreadProps$
|
|
2114
|
+
__spreadProps$h(__spreadValues$k(__spreadValues$k({}, input), props), {
|
|
2113
2115
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError),
|
|
2114
2116
|
onFocus: (e) => {
|
|
2115
2117
|
input.onFocus(e);
|
|
@@ -2123,33 +2125,33 @@ const FieldsTextArea = (_a) => {
|
|
|
2123
2125
|
));
|
|
2124
2126
|
};
|
|
2125
2127
|
|
|
2126
|
-
var __defProp$
|
|
2127
|
-
var __defProps$
|
|
2128
|
-
var __getOwnPropDescs$
|
|
2129
|
-
var __getOwnPropSymbols$
|
|
2130
|
-
var __hasOwnProp$
|
|
2131
|
-
var __propIsEnum$
|
|
2132
|
-
var __defNormalProp$
|
|
2133
|
-
var __spreadValues$
|
|
2128
|
+
var __defProp$j = Object.defineProperty;
|
|
2129
|
+
var __defProps$g = Object.defineProperties;
|
|
2130
|
+
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
2131
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
2132
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
2133
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
2134
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2135
|
+
var __spreadValues$j = (a, b) => {
|
|
2134
2136
|
for (var prop in b || (b = {}))
|
|
2135
|
-
if (__hasOwnProp$
|
|
2136
|
-
__defNormalProp$
|
|
2137
|
-
if (__getOwnPropSymbols$
|
|
2138
|
-
for (var prop of __getOwnPropSymbols$
|
|
2139
|
-
if (__propIsEnum$
|
|
2140
|
-
__defNormalProp$
|
|
2137
|
+
if (__hasOwnProp$j.call(b, prop))
|
|
2138
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
2139
|
+
if (__getOwnPropSymbols$j)
|
|
2140
|
+
for (var prop of __getOwnPropSymbols$j(b)) {
|
|
2141
|
+
if (__propIsEnum$j.call(b, prop))
|
|
2142
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
2141
2143
|
}
|
|
2142
2144
|
return a;
|
|
2143
2145
|
};
|
|
2144
|
-
var __spreadProps$
|
|
2145
|
-
var __objRest$
|
|
2146
|
+
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
2147
|
+
var __objRest$7 = (source, exclude) => {
|
|
2146
2148
|
var target = {};
|
|
2147
2149
|
for (var prop in source)
|
|
2148
|
-
if (__hasOwnProp$
|
|
2150
|
+
if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2149
2151
|
target[prop] = source[prop];
|
|
2150
|
-
if (source != null && __getOwnPropSymbols$
|
|
2151
|
-
for (var prop of __getOwnPropSymbols$
|
|
2152
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2152
|
+
if (source != null && __getOwnPropSymbols$j)
|
|
2153
|
+
for (var prop of __getOwnPropSymbols$j(source)) {
|
|
2154
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
|
|
2153
2155
|
target[prop] = source[prop];
|
|
2154
2156
|
}
|
|
2155
2157
|
return target;
|
|
@@ -2159,7 +2161,7 @@ const TimePicker = (_a) => {
|
|
|
2159
2161
|
className,
|
|
2160
2162
|
error,
|
|
2161
2163
|
size = "middle"
|
|
2162
|
-
} = _b, props = __objRest$
|
|
2164
|
+
} = _b, props = __objRest$7(_b, [
|
|
2163
2165
|
"className",
|
|
2164
2166
|
"error",
|
|
2165
2167
|
"size"
|
|
@@ -2171,7 +2173,7 @@ const TimePicker = (_a) => {
|
|
|
2171
2173
|
}[size];
|
|
2172
2174
|
return /* @__PURE__ */ React.createElement(
|
|
2173
2175
|
TimePicker$1,
|
|
2174
|
-
__spreadProps$
|
|
2176
|
+
__spreadProps$g(__spreadValues$j({}, props), {
|
|
2175
2177
|
size,
|
|
2176
2178
|
"data-test": props.name,
|
|
2177
2179
|
className: cs(className, InputStyle, typo, error ? "error" : "")
|
|
@@ -2179,33 +2181,33 @@ const TimePicker = (_a) => {
|
|
|
2179
2181
|
);
|
|
2180
2182
|
};
|
|
2181
2183
|
|
|
2182
|
-
var __defProp$
|
|
2183
|
-
var __defProps$
|
|
2184
|
-
var __getOwnPropDescs$
|
|
2185
|
-
var __getOwnPropSymbols$
|
|
2186
|
-
var __hasOwnProp$
|
|
2187
|
-
var __propIsEnum$
|
|
2188
|
-
var __defNormalProp$
|
|
2189
|
-
var __spreadValues$
|
|
2184
|
+
var __defProp$i = Object.defineProperty;
|
|
2185
|
+
var __defProps$f = Object.defineProperties;
|
|
2186
|
+
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
2187
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
2188
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
2189
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
2190
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2191
|
+
var __spreadValues$i = (a, b) => {
|
|
2190
2192
|
for (var prop in b || (b = {}))
|
|
2191
|
-
if (__hasOwnProp$
|
|
2192
|
-
__defNormalProp$
|
|
2193
|
-
if (__getOwnPropSymbols$
|
|
2194
|
-
for (var prop of __getOwnPropSymbols$
|
|
2195
|
-
if (__propIsEnum$
|
|
2196
|
-
__defNormalProp$
|
|
2193
|
+
if (__hasOwnProp$i.call(b, prop))
|
|
2194
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
2195
|
+
if (__getOwnPropSymbols$i)
|
|
2196
|
+
for (var prop of __getOwnPropSymbols$i(b)) {
|
|
2197
|
+
if (__propIsEnum$i.call(b, prop))
|
|
2198
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
2197
2199
|
}
|
|
2198
2200
|
return a;
|
|
2199
2201
|
};
|
|
2200
|
-
var __spreadProps$
|
|
2201
|
-
var __objRest$
|
|
2202
|
+
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
2203
|
+
var __objRest$6 = (source, exclude) => {
|
|
2202
2204
|
var target = {};
|
|
2203
2205
|
for (var prop in source)
|
|
2204
|
-
if (__hasOwnProp$
|
|
2206
|
+
if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2205
2207
|
target[prop] = source[prop];
|
|
2206
|
-
if (source != null && __getOwnPropSymbols$
|
|
2207
|
-
for (var prop of __getOwnPropSymbols$
|
|
2208
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2208
|
+
if (source != null && __getOwnPropSymbols$i)
|
|
2209
|
+
for (var prop of __getOwnPropSymbols$i(source)) {
|
|
2210
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
|
|
2209
2211
|
target[prop] = source[prop];
|
|
2210
2212
|
}
|
|
2211
2213
|
return target;
|
|
@@ -2214,13 +2216,13 @@ const FieldsTimePicker = (_a) => {
|
|
|
2214
2216
|
var _b = _a, {
|
|
2215
2217
|
input,
|
|
2216
2218
|
meta
|
|
2217
|
-
} = _b, props = __objRest$
|
|
2219
|
+
} = _b, props = __objRest$6(_b, [
|
|
2218
2220
|
"input",
|
|
2219
2221
|
"meta"
|
|
2220
2222
|
]);
|
|
2221
2223
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
2222
2224
|
TimePicker,
|
|
2223
|
-
__spreadValues$
|
|
2225
|
+
__spreadValues$i(__spreadProps$f(__spreadValues$i({}, input), {
|
|
2224
2226
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
2225
2227
|
}), props)
|
|
2226
2228
|
));
|
|
@@ -2259,25 +2261,25 @@ const InputGroup = /*#__PURE__*/styled(_exp())({
|
|
|
2259
2261
|
propsAsIs: true
|
|
2260
2262
|
});
|
|
2261
2263
|
|
|
2262
|
-
var __defProp$
|
|
2263
|
-
var __defProps$
|
|
2264
|
-
var __getOwnPropDescs$
|
|
2265
|
-
var __getOwnPropSymbols$
|
|
2266
|
-
var __hasOwnProp$
|
|
2267
|
-
var __propIsEnum$
|
|
2268
|
-
var __defNormalProp$
|
|
2269
|
-
var __spreadValues$
|
|
2264
|
+
var __defProp$h = Object.defineProperty;
|
|
2265
|
+
var __defProps$e = Object.defineProperties;
|
|
2266
|
+
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
|
2267
|
+
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
|
2268
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
2269
|
+
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
|
2270
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2271
|
+
var __spreadValues$h = (a, b) => {
|
|
2270
2272
|
for (var prop in b || (b = {}))
|
|
2271
|
-
if (__hasOwnProp$
|
|
2272
|
-
__defNormalProp$
|
|
2273
|
-
if (__getOwnPropSymbols$
|
|
2274
|
-
for (var prop of __getOwnPropSymbols$
|
|
2275
|
-
if (__propIsEnum$
|
|
2276
|
-
__defNormalProp$
|
|
2273
|
+
if (__hasOwnProp$h.call(b, prop))
|
|
2274
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
2275
|
+
if (__getOwnPropSymbols$h)
|
|
2276
|
+
for (var prop of __getOwnPropSymbols$h(b)) {
|
|
2277
|
+
if (__propIsEnum$h.call(b, prop))
|
|
2278
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
2277
2279
|
}
|
|
2278
2280
|
return a;
|
|
2279
2281
|
};
|
|
2280
|
-
var __spreadProps$
|
|
2282
|
+
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
|
2281
2283
|
function makeUUID(length = 25) {
|
|
2282
2284
|
let result = "";
|
|
2283
2285
|
const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
@@ -2296,7 +2298,7 @@ class Batcher {
|
|
|
2296
2298
|
this.batchHelper = batchHelper;
|
|
2297
2299
|
}
|
|
2298
2300
|
addMessage(originContent) {
|
|
2299
|
-
const
|
|
2301
|
+
const batchKey = this.batchHelper.getBatchKey(originContent.content);
|
|
2300
2302
|
if (batchKey == null) {
|
|
2301
2303
|
this.originalMethod(originContent);
|
|
2302
2304
|
return;
|
|
@@ -2311,7 +2313,7 @@ class Batcher {
|
|
|
2311
2313
|
const { firedHandlers, pendingMessages, groupedCtx } = messageStore;
|
|
2312
2314
|
if (groupedCtx) {
|
|
2313
2315
|
groupedCtx.count++;
|
|
2314
|
-
this.applyContent(
|
|
2316
|
+
this.applyContent(batchKey, originContent, messageStore);
|
|
2315
2317
|
return;
|
|
2316
2318
|
}
|
|
2317
2319
|
const messageCount = Object.keys(firedHandlers).length + Object.keys(pendingMessages).length;
|
|
@@ -2330,7 +2332,7 @@ class Batcher {
|
|
|
2330
2332
|
key: originContent.key,
|
|
2331
2333
|
count: messageCount + 1
|
|
2332
2334
|
};
|
|
2333
|
-
this.applyContent(
|
|
2335
|
+
this.applyContent(batchKey, originContent, messageStore);
|
|
2334
2336
|
return;
|
|
2335
2337
|
}
|
|
2336
2338
|
pendingMessages[originContent.key] = originContent;
|
|
@@ -2341,12 +2343,16 @@ class Batcher {
|
|
|
2341
2343
|
delete firedHandlers[originContent.key];
|
|
2342
2344
|
delete messageStore.groupedCtx;
|
|
2343
2345
|
};
|
|
2344
|
-
const handler = this.originalMethod(
|
|
2346
|
+
const handler = this.originalMethod(originContent);
|
|
2345
2347
|
firedHandlers[originContent.key] = handler;
|
|
2346
2348
|
}
|
|
2347
2349
|
}, this.batchTime);
|
|
2348
2350
|
}
|
|
2349
|
-
applyContent(content, store) {
|
|
2351
|
+
applyContent(batchKey, content, store) {
|
|
2352
|
+
content.content = this.batchHelper.getBatchContent(
|
|
2353
|
+
batchKey,
|
|
2354
|
+
store.groupedCtx.count
|
|
2355
|
+
);
|
|
2350
2356
|
content.key = store.groupedCtx.key;
|
|
2351
2357
|
content.onClose = () => {
|
|
2352
2358
|
delete store.groupedCtx;
|
|
@@ -2373,7 +2379,7 @@ function createBatchMessageMethods(batchHelper) {
|
|
|
2373
2379
|
_message[method] = function(...args) {
|
|
2374
2380
|
const key = makeUUID();
|
|
2375
2381
|
const content = normalizeContent(args, method);
|
|
2376
|
-
batcher.addMessage(__spreadProps$
|
|
2382
|
+
batcher.addMessage(__spreadProps$e(__spreadValues$h({}, content), { key }));
|
|
2377
2383
|
return () => {
|
|
2378
2384
|
};
|
|
2379
2385
|
};
|
|
@@ -2392,25 +2398,25 @@ function normalizeContent(args, type) {
|
|
|
2392
2398
|
};
|
|
2393
2399
|
}
|
|
2394
2400
|
|
|
2395
|
-
var __defProp$
|
|
2396
|
-
var __defProps$
|
|
2397
|
-
var __getOwnPropDescs$
|
|
2398
|
-
var __getOwnPropSymbols$
|
|
2399
|
-
var __hasOwnProp$
|
|
2400
|
-
var __propIsEnum$
|
|
2401
|
-
var __defNormalProp$
|
|
2402
|
-
var __spreadValues$
|
|
2401
|
+
var __defProp$g = Object.defineProperty;
|
|
2402
|
+
var __defProps$d = Object.defineProperties;
|
|
2403
|
+
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
2404
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
2405
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
2406
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
2407
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2408
|
+
var __spreadValues$g = (a, b) => {
|
|
2403
2409
|
for (var prop in b || (b = {}))
|
|
2404
|
-
if (__hasOwnProp$
|
|
2405
|
-
__defNormalProp$
|
|
2406
|
-
if (__getOwnPropSymbols$
|
|
2407
|
-
for (var prop of __getOwnPropSymbols$
|
|
2408
|
-
if (__propIsEnum$
|
|
2409
|
-
__defNormalProp$
|
|
2410
|
+
if (__hasOwnProp$g.call(b, prop))
|
|
2411
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
2412
|
+
if (__getOwnPropSymbols$g)
|
|
2413
|
+
for (var prop of __getOwnPropSymbols$g(b)) {
|
|
2414
|
+
if (__propIsEnum$g.call(b, prop))
|
|
2415
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
2410
2416
|
}
|
|
2411
2417
|
return a;
|
|
2412
2418
|
};
|
|
2413
|
-
var __spreadProps$
|
|
2419
|
+
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
|
2414
2420
|
const initialChartState = {
|
|
2415
2421
|
pointers: {},
|
|
2416
2422
|
resourceData: {},
|
|
@@ -2420,8 +2426,8 @@ const chartReducer = (state = initialChartState, action) => {
|
|
|
2420
2426
|
switch (action.type) {
|
|
2421
2427
|
case "SET_POINTER" /* SET_POINTER */: {
|
|
2422
2428
|
const { uuid, left, text, visible, value } = action.payload;
|
|
2423
|
-
return __spreadProps$
|
|
2424
|
-
pointers: __spreadProps$
|
|
2429
|
+
return __spreadProps$d(__spreadValues$g({}, state), {
|
|
2430
|
+
pointers: __spreadProps$d(__spreadValues$g({}, state.pointers), {
|
|
2425
2431
|
[uuid]: {
|
|
2426
2432
|
left,
|
|
2427
2433
|
text,
|
|
@@ -2433,16 +2439,16 @@ const chartReducer = (state = initialChartState, action) => {
|
|
|
2433
2439
|
}
|
|
2434
2440
|
case "SET_RESOURCE_DATA" /* SET_RESOURCE_DATA */: {
|
|
2435
2441
|
const { uuid, data } = action.payload;
|
|
2436
|
-
return __spreadProps$
|
|
2437
|
-
resourceData: __spreadProps$
|
|
2442
|
+
return __spreadProps$d(__spreadValues$g({}, state), {
|
|
2443
|
+
resourceData: __spreadProps$d(__spreadValues$g({}, state.resourceData), {
|
|
2438
2444
|
[uuid]: data
|
|
2439
2445
|
})
|
|
2440
2446
|
});
|
|
2441
2447
|
}
|
|
2442
2448
|
case "SET_AVERAGE_DATA" /* SET_AVERAGE_DATA */: {
|
|
2443
2449
|
const { uuid, average } = action.payload;
|
|
2444
|
-
return __spreadProps$
|
|
2445
|
-
averageData: __spreadProps$
|
|
2450
|
+
return __spreadProps$d(__spreadValues$g({}, state), {
|
|
2451
|
+
averageData: __spreadProps$d(__spreadValues$g({}, state.averageData), {
|
|
2446
2452
|
[uuid]: average
|
|
2447
2453
|
})
|
|
2448
2454
|
});
|
|
@@ -2453,25 +2459,25 @@ const chartReducer = (state = initialChartState, action) => {
|
|
|
2453
2459
|
}
|
|
2454
2460
|
};
|
|
2455
2461
|
|
|
2456
|
-
var __defProp$
|
|
2457
|
-
var __defProps$
|
|
2458
|
-
var __getOwnPropDescs$
|
|
2459
|
-
var __getOwnPropSymbols$
|
|
2460
|
-
var __hasOwnProp$
|
|
2461
|
-
var __propIsEnum$
|
|
2462
|
-
var __defNormalProp$
|
|
2463
|
-
var __spreadValues$
|
|
2462
|
+
var __defProp$f = Object.defineProperty;
|
|
2463
|
+
var __defProps$c = Object.defineProperties;
|
|
2464
|
+
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
2465
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
2466
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
2467
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
2468
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2469
|
+
var __spreadValues$f = (a, b) => {
|
|
2464
2470
|
for (var prop in b || (b = {}))
|
|
2465
|
-
if (__hasOwnProp$
|
|
2466
|
-
__defNormalProp$
|
|
2467
|
-
if (__getOwnPropSymbols$
|
|
2468
|
-
for (var prop of __getOwnPropSymbols$
|
|
2469
|
-
if (__propIsEnum$
|
|
2470
|
-
__defNormalProp$
|
|
2471
|
+
if (__hasOwnProp$f.call(b, prop))
|
|
2472
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
2473
|
+
if (__getOwnPropSymbols$f)
|
|
2474
|
+
for (var prop of __getOwnPropSymbols$f(b)) {
|
|
2475
|
+
if (__propIsEnum$f.call(b, prop))
|
|
2476
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
2471
2477
|
}
|
|
2472
2478
|
return a;
|
|
2473
2479
|
};
|
|
2474
|
-
var __spreadProps$
|
|
2480
|
+
var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
|
|
2475
2481
|
var ModalActions = /* @__PURE__ */ ((ModalActions2) => {
|
|
2476
2482
|
ModalActions2["PUSH_MODAL"] = "PUSH_MODAL";
|
|
2477
2483
|
ModalActions2["POP_MODAL"] = "POP_MODAL";
|
|
@@ -2492,22 +2498,22 @@ const modalReducer = (state = initialModalState, action) => {
|
|
|
2492
2498
|
)) {
|
|
2493
2499
|
return state;
|
|
2494
2500
|
}
|
|
2495
|
-
return __spreadProps$
|
|
2496
|
-
stack: state.stack.concat(__spreadProps$
|
|
2501
|
+
return __spreadProps$c(__spreadValues$f({}, state), {
|
|
2502
|
+
stack: state.stack.concat(__spreadProps$c(__spreadValues$f({}, action.payload), {
|
|
2497
2503
|
id: MODAL_ID++
|
|
2498
2504
|
}))
|
|
2499
2505
|
});
|
|
2500
2506
|
case "POP_MODAL" /* POP_MODAL */:
|
|
2501
|
-
return __spreadProps$
|
|
2507
|
+
return __spreadProps$c(__spreadValues$f({}, state), {
|
|
2502
2508
|
stack: state.stack.slice(0, -1)
|
|
2503
2509
|
});
|
|
2504
2510
|
case "REMOVE_MODAL" /* REMOVE_MODAL */:
|
|
2505
|
-
return __spreadProps$
|
|
2511
|
+
return __spreadProps$c(__spreadValues$f({}, state), {
|
|
2506
2512
|
closeId: 0,
|
|
2507
2513
|
stack: state.stack.filter((m) => m.id !== action.id)
|
|
2508
2514
|
});
|
|
2509
2515
|
case "CLOSE_MODAL" /* CLOSE_MODAL */:
|
|
2510
|
-
return __spreadProps$
|
|
2516
|
+
return __spreadProps$c(__spreadValues$f({}, state), {
|
|
2511
2517
|
closeId: action.id
|
|
2512
2518
|
});
|
|
2513
2519
|
default:
|
|
@@ -2558,33 +2564,33 @@ const KitStoreProvider = (props) => {
|
|
|
2558
2564
|
const useKitDispatch = createDispatchHook(ctx);
|
|
2559
2565
|
const useKitSelector = createSelectorHook(ctx);
|
|
2560
2566
|
|
|
2561
|
-
var __defProp$
|
|
2562
|
-
var __defProps$
|
|
2563
|
-
var __getOwnPropDescs$
|
|
2564
|
-
var __getOwnPropSymbols$
|
|
2565
|
-
var __hasOwnProp$
|
|
2566
|
-
var __propIsEnum$
|
|
2567
|
-
var __defNormalProp$
|
|
2568
|
-
var __spreadValues$
|
|
2567
|
+
var __defProp$e = Object.defineProperty;
|
|
2568
|
+
var __defProps$b = Object.defineProperties;
|
|
2569
|
+
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
|
2570
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
2571
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
2572
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
2573
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2574
|
+
var __spreadValues$e = (a, b) => {
|
|
2569
2575
|
for (var prop in b || (b = {}))
|
|
2570
|
-
if (__hasOwnProp$
|
|
2571
|
-
__defNormalProp$
|
|
2572
|
-
if (__getOwnPropSymbols$
|
|
2573
|
-
for (var prop of __getOwnPropSymbols$
|
|
2574
|
-
if (__propIsEnum$
|
|
2575
|
-
__defNormalProp$
|
|
2576
|
+
if (__hasOwnProp$e.call(b, prop))
|
|
2577
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
2578
|
+
if (__getOwnPropSymbols$e)
|
|
2579
|
+
for (var prop of __getOwnPropSymbols$e(b)) {
|
|
2580
|
+
if (__propIsEnum$e.call(b, prop))
|
|
2581
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
2576
2582
|
}
|
|
2577
2583
|
return a;
|
|
2578
2584
|
};
|
|
2579
|
-
var __spreadProps$
|
|
2580
|
-
var __objRest$
|
|
2585
|
+
var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
|
|
2586
|
+
var __objRest$5 = (source, exclude) => {
|
|
2581
2587
|
var target = {};
|
|
2582
2588
|
for (var prop in source)
|
|
2583
|
-
if (__hasOwnProp$
|
|
2589
|
+
if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2584
2590
|
target[prop] = source[prop];
|
|
2585
|
-
if (source != null && __getOwnPropSymbols$
|
|
2586
|
-
for (var prop of __getOwnPropSymbols$
|
|
2587
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2591
|
+
if (source != null && __getOwnPropSymbols$e)
|
|
2592
|
+
for (var prop of __getOwnPropSymbols$e(source)) {
|
|
2593
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
|
|
2588
2594
|
target[prop] = source[prop];
|
|
2589
2595
|
}
|
|
2590
2596
|
return target;
|
|
@@ -2610,7 +2616,7 @@ const Modal = (props) => {
|
|
|
2610
2616
|
showCancel = true,
|
|
2611
2617
|
showOk = true,
|
|
2612
2618
|
afterClose
|
|
2613
|
-
} = _a, restProps = __objRest$
|
|
2619
|
+
} = _a, restProps = __objRest$5(_a, [
|
|
2614
2620
|
"error",
|
|
2615
2621
|
"okText",
|
|
2616
2622
|
"cancelText",
|
|
@@ -2665,7 +2671,7 @@ const Modal = (props) => {
|
|
|
2665
2671
|
}
|
|
2666
2672
|
return /* @__PURE__ */ React.createElement(
|
|
2667
2673
|
Modal$1,
|
|
2668
|
-
__spreadProps$
|
|
2674
|
+
__spreadProps$b(__spreadValues$e({
|
|
2669
2675
|
maskClosable,
|
|
2670
2676
|
className: cs(
|
|
2671
2677
|
className,
|
|
@@ -2700,7 +2706,7 @@ const Modal = (props) => {
|
|
|
2700
2706
|
prevText
|
|
2701
2707
|
), 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(
|
|
2702
2708
|
Button,
|
|
2703
|
-
__spreadValues$
|
|
2709
|
+
__spreadValues$e({
|
|
2704
2710
|
type: "quiet",
|
|
2705
2711
|
onMouseDown: (e) => {
|
|
2706
2712
|
e.preventDefault();
|
|
@@ -2714,7 +2720,7 @@ const Modal = (props) => {
|
|
|
2714
2720
|
cancelText
|
|
2715
2721
|
), showOk && /* @__PURE__ */ React.createElement(
|
|
2716
2722
|
Button,
|
|
2717
|
-
__spreadValues$
|
|
2723
|
+
__spreadValues$e({
|
|
2718
2724
|
onClick: (e) => {
|
|
2719
2725
|
var _a2, _b2;
|
|
2720
2726
|
onOk == null ? void 0 : onOk(e);
|
|
@@ -2876,46 +2882,46 @@ const Percent = ({
|
|
|
2876
2882
|
return /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React.createElement("span", { className: cx("unit", unitClassName) }, unit));
|
|
2877
2883
|
};
|
|
2878
2884
|
|
|
2879
|
-
var __defProp$
|
|
2880
|
-
var __getOwnPropSymbols$
|
|
2881
|
-
var __hasOwnProp$
|
|
2882
|
-
var __propIsEnum$
|
|
2883
|
-
var __defNormalProp$
|
|
2884
|
-
var __spreadValues$
|
|
2885
|
+
var __defProp$d = Object.defineProperty;
|
|
2886
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
2887
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
2888
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
2889
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2890
|
+
var __spreadValues$d = (a, b) => {
|
|
2885
2891
|
for (var prop in b || (b = {}))
|
|
2886
|
-
if (__hasOwnProp$
|
|
2887
|
-
__defNormalProp$
|
|
2888
|
-
if (__getOwnPropSymbols$
|
|
2889
|
-
for (var prop of __getOwnPropSymbols$
|
|
2890
|
-
if (__propIsEnum$
|
|
2891
|
-
__defNormalProp$
|
|
2892
|
+
if (__hasOwnProp$d.call(b, prop))
|
|
2893
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
2894
|
+
if (__getOwnPropSymbols$d)
|
|
2895
|
+
for (var prop of __getOwnPropSymbols$d(b)) {
|
|
2896
|
+
if (__propIsEnum$d.call(b, prop))
|
|
2897
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
2892
2898
|
}
|
|
2893
2899
|
return a;
|
|
2894
2900
|
};
|
|
2895
|
-
const Progress = (props) => /* @__PURE__ */ React.createElement(Progress$1, __spreadValues$
|
|
2901
|
+
const Progress = (props) => /* @__PURE__ */ React.createElement(Progress$1, __spreadValues$d({}, props));
|
|
2896
2902
|
|
|
2897
|
-
var __defProp$
|
|
2898
|
-
var __getOwnPropSymbols$
|
|
2899
|
-
var __hasOwnProp$
|
|
2900
|
-
var __propIsEnum$
|
|
2901
|
-
var __defNormalProp$
|
|
2903
|
+
var __defProp$c = Object.defineProperty;
|
|
2904
|
+
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
2905
|
+
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
2906
|
+
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
2907
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, {
|
|
2902
2908
|
enumerable: true,
|
|
2903
2909
|
configurable: true,
|
|
2904
2910
|
writable: true,
|
|
2905
2911
|
value
|
|
2906
2912
|
}) : obj[key] = value;
|
|
2907
|
-
var __spreadValues$
|
|
2908
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
2909
|
-
if (__getOwnPropSymbols$
|
|
2910
|
-
if (__propIsEnum$
|
|
2913
|
+
var __spreadValues$c = (a, b) => {
|
|
2914
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$c.call(b, prop)) __defNormalProp$c(a, prop, b[prop]);
|
|
2915
|
+
if (__getOwnPropSymbols$c) for (var prop of __getOwnPropSymbols$c(b)) {
|
|
2916
|
+
if (__propIsEnum$c.call(b, prop)) __defNormalProp$c(a, prop, b[prop]);
|
|
2911
2917
|
}
|
|
2912
2918
|
return a;
|
|
2913
2919
|
};
|
|
2914
|
-
var __objRest$
|
|
2920
|
+
var __objRest$4 = (source, exclude) => {
|
|
2915
2921
|
var target = {};
|
|
2916
|
-
for (var prop in source) if (__hasOwnProp$
|
|
2917
|
-
if (source != null && __getOwnPropSymbols$
|
|
2918
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2922
|
+
for (var prop in source) if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
2923
|
+
if (source != null && __getOwnPropSymbols$c) for (var prop of __getOwnPropSymbols$c(source)) {
|
|
2924
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop)) target[prop] = source[prop];
|
|
2919
2925
|
}
|
|
2920
2926
|
return target;
|
|
2921
2927
|
};
|
|
@@ -2931,7 +2937,7 @@ const Radio = _a => {
|
|
|
2931
2937
|
checked,
|
|
2932
2938
|
compact = false
|
|
2933
2939
|
} = _b,
|
|
2934
|
-
props = __objRest$
|
|
2940
|
+
props = __objRest$4(_b, ["children", "className", "checked", "compact"]);
|
|
2935
2941
|
const {
|
|
2936
2942
|
description
|
|
2937
2943
|
} = props;
|
|
@@ -2941,7 +2947,7 @@ const Radio = _a => {
|
|
|
2941
2947
|
className: cx("radio-description", Typo.Label.l4_regular)
|
|
2942
2948
|
}, description));
|
|
2943
2949
|
}
|
|
2944
|
-
return /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement(Radio$1, __spreadValues$
|
|
2950
|
+
return /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement(Radio$1, __spreadValues$c({
|
|
2945
2951
|
className: cx(className, RadioStyle, compact && "compact"),
|
|
2946
2952
|
checked: checked || false,
|
|
2947
2953
|
"data-test": context.name ? `${context.name}-${String(props.value)}` : String(props.value)
|
|
@@ -2953,13 +2959,13 @@ const RadioGroup = _c => {
|
|
|
2953
2959
|
children,
|
|
2954
2960
|
className
|
|
2955
2961
|
} = _d,
|
|
2956
|
-
props = __objRest$
|
|
2962
|
+
props = __objRest$4(_d, ["children", "className"]);
|
|
2957
2963
|
return /* @__PURE__ */React.createElement(KitRadioGroupContext.Provider, {
|
|
2958
2964
|
value: {
|
|
2959
2965
|
disabled: props.disabled,
|
|
2960
2966
|
name: props.name
|
|
2961
2967
|
}
|
|
2962
|
-
}, /* @__PURE__ */React.createElement(Radio$1.Group, __spreadValues$
|
|
2968
|
+
}, /* @__PURE__ */React.createElement(Radio$1.Group, __spreadValues$c({
|
|
2963
2969
|
className: cx(className, RadioGroupStyle)
|
|
2964
2970
|
}, props), children ? children : null));
|
|
2965
2971
|
};
|
|
@@ -2969,7 +2975,7 @@ const RadioButton = _e => {
|
|
|
2969
2975
|
children,
|
|
2970
2976
|
className
|
|
2971
2977
|
} = _f,
|
|
2972
|
-
props = __objRest$
|
|
2978
|
+
props = __objRest$4(_f, ["children", "className"]);
|
|
2973
2979
|
const {
|
|
2974
2980
|
type,
|
|
2975
2981
|
placeholder = "Label",
|
|
@@ -3015,46 +3021,46 @@ const RadioButton = _e => {
|
|
|
3015
3021
|
className: "ant-radio-button-input-label"
|
|
3016
3022
|
}, typeof children === "string" ? children : ""));
|
|
3017
3023
|
};
|
|
3018
|
-
return /* @__PURE__ */React.createElement(Radio$1.Button, __spreadValues$
|
|
3024
|
+
return /* @__PURE__ */React.createElement(Radio$1.Button, __spreadValues$c({
|
|
3019
3025
|
className: cx(className, RadioButtonStyle),
|
|
3020
3026
|
value: radioButtonValue
|
|
3021
3027
|
}, props), renderChildren());
|
|
3022
3028
|
};
|
|
3023
3029
|
|
|
3024
|
-
var __defProp$
|
|
3025
|
-
var __getOwnPropSymbols$
|
|
3026
|
-
var __hasOwnProp$
|
|
3027
|
-
var __propIsEnum$
|
|
3028
|
-
var __defNormalProp$
|
|
3029
|
-
var __spreadValues$
|
|
3030
|
+
var __defProp$b = Object.defineProperty;
|
|
3031
|
+
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
3032
|
+
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
3033
|
+
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
3034
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3035
|
+
var __spreadValues$b = (a, b) => {
|
|
3030
3036
|
for (var prop in b || (b = {}))
|
|
3031
|
-
if (__hasOwnProp$
|
|
3032
|
-
__defNormalProp$
|
|
3033
|
-
if (__getOwnPropSymbols$
|
|
3034
|
-
for (var prop of __getOwnPropSymbols$
|
|
3035
|
-
if (__propIsEnum$
|
|
3036
|
-
__defNormalProp$
|
|
3037
|
-
}
|
|
3038
|
-
return a;
|
|
3039
|
-
};
|
|
3040
|
-
var __objRest$
|
|
3037
|
+
if (__hasOwnProp$b.call(b, prop))
|
|
3038
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
3039
|
+
if (__getOwnPropSymbols$b)
|
|
3040
|
+
for (var prop of __getOwnPropSymbols$b(b)) {
|
|
3041
|
+
if (__propIsEnum$b.call(b, prop))
|
|
3042
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
3043
|
+
}
|
|
3044
|
+
return a;
|
|
3045
|
+
};
|
|
3046
|
+
var __objRest$3 = (source, exclude) => {
|
|
3041
3047
|
var target = {};
|
|
3042
3048
|
for (var prop in source)
|
|
3043
|
-
if (__hasOwnProp$
|
|
3049
|
+
if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3044
3050
|
target[prop] = source[prop];
|
|
3045
|
-
if (source != null && __getOwnPropSymbols$
|
|
3046
|
-
for (var prop of __getOwnPropSymbols$
|
|
3047
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3051
|
+
if (source != null && __getOwnPropSymbols$b)
|
|
3052
|
+
for (var prop of __getOwnPropSymbols$b(source)) {
|
|
3053
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
|
|
3048
3054
|
target[prop] = source[prop];
|
|
3049
3055
|
}
|
|
3050
3056
|
return target;
|
|
3051
3057
|
};
|
|
3052
3058
|
const SearchInput = (props) => {
|
|
3053
|
-
const _a = props, { onChange, debounceWait = 300 } = _a, restProps = __objRest$
|
|
3059
|
+
const _a = props, { onChange, debounceWait = 300 } = _a, restProps = __objRest$3(_a, ["onChange", "debounceWait"]);
|
|
3054
3060
|
const onSearch = _.debounce(onChange, debounceWait);
|
|
3055
3061
|
return /* @__PURE__ */ React.createElement(
|
|
3056
3062
|
Input,
|
|
3057
|
-
__spreadValues$
|
|
3063
|
+
__spreadValues$b({
|
|
3058
3064
|
style: { width: 276 },
|
|
3059
3065
|
prefix: /* @__PURE__ */ React.createElement(SearchOutlined, null),
|
|
3060
3066
|
onChange: (e) => onSearch(e.target.value)
|
|
@@ -3162,31 +3168,31 @@ const Speed = ({
|
|
|
3162
3168
|
return /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
3163
3169
|
};
|
|
3164
3170
|
|
|
3165
|
-
var __defProp$
|
|
3166
|
-
var __defProps$
|
|
3167
|
-
var __getOwnPropDescs$
|
|
3168
|
-
var __getOwnPropSymbols$
|
|
3169
|
-
var __hasOwnProp$
|
|
3170
|
-
var __propIsEnum$
|
|
3171
|
-
var __defNormalProp$
|
|
3171
|
+
var __defProp$a = Object.defineProperty;
|
|
3172
|
+
var __defProps$a = Object.defineProperties;
|
|
3173
|
+
var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
|
|
3174
|
+
var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
|
|
3175
|
+
var __hasOwnProp$a = Object.prototype.hasOwnProperty;
|
|
3176
|
+
var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
|
|
3177
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, {
|
|
3172
3178
|
enumerable: true,
|
|
3173
3179
|
configurable: true,
|
|
3174
3180
|
writable: true,
|
|
3175
3181
|
value
|
|
3176
3182
|
}) : obj[key] = value;
|
|
3177
|
-
var __spreadValues$
|
|
3178
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3179
|
-
if (__getOwnPropSymbols$
|
|
3180
|
-
if (__propIsEnum$
|
|
3183
|
+
var __spreadValues$a = (a, b) => {
|
|
3184
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$a.call(b, prop)) __defNormalProp$a(a, prop, b[prop]);
|
|
3185
|
+
if (__getOwnPropSymbols$a) for (var prop of __getOwnPropSymbols$a(b)) {
|
|
3186
|
+
if (__propIsEnum$a.call(b, prop)) __defNormalProp$a(a, prop, b[prop]);
|
|
3181
3187
|
}
|
|
3182
3188
|
return a;
|
|
3183
3189
|
};
|
|
3184
|
-
var __spreadProps$
|
|
3185
|
-
var __objRest$
|
|
3190
|
+
var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
|
|
3191
|
+
var __objRest$2 = (source, exclude) => {
|
|
3186
3192
|
var target = {};
|
|
3187
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3188
|
-
if (source != null && __getOwnPropSymbols$
|
|
3189
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3193
|
+
for (var prop in source) if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3194
|
+
if (source != null && __getOwnPropSymbols$a) for (var prop of __getOwnPropSymbols$a(source)) {
|
|
3195
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$a.call(source, prop)) target[prop] = source[prop];
|
|
3190
3196
|
}
|
|
3191
3197
|
return target;
|
|
3192
3198
|
};
|
|
@@ -3202,46 +3208,46 @@ const Steps = props => {
|
|
|
3202
3208
|
containerClassname,
|
|
3203
3209
|
showStepCount
|
|
3204
3210
|
} = _a,
|
|
3205
|
-
stepsProps = __objRest$
|
|
3211
|
+
stepsProps = __objRest$2(_a, ["stepsConfig", "containerClassname", "showStepCount"]);
|
|
3206
3212
|
const titleWithCount = (_step, count) => /* @__PURE__ */React.createElement(React.Fragment, null, showStepCount ? /* @__PURE__ */React.createElement("span", {
|
|
3207
3213
|
className: "step-count"
|
|
3208
3214
|
}, count) : null, _step.title);
|
|
3209
3215
|
return /* @__PURE__ */React.createElement(StepsContainer, {
|
|
3210
3216
|
className: containerClassname
|
|
3211
|
-
}, /* @__PURE__ */React.createElement(Steps$1, __spreadProps$
|
|
3217
|
+
}, /* @__PURE__ */React.createElement(Steps$1, __spreadProps$a(__spreadValues$a({}, stepsProps), {
|
|
3212
3218
|
type: "default"
|
|
3213
|
-
}), (stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */React.createElement(Steps$1.Step, __spreadProps$
|
|
3219
|
+
}), (stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */React.createElement(Steps$1.Step, __spreadProps$a(__spreadValues$a({
|
|
3214
3220
|
key: index
|
|
3215
3221
|
}, step), {
|
|
3216
3222
|
title: titleWithCount(step, index + 1)
|
|
3217
3223
|
}))) : props.children));
|
|
3218
3224
|
};
|
|
3219
3225
|
|
|
3220
|
-
var __defProp$
|
|
3221
|
-
var __defProps$
|
|
3222
|
-
var __getOwnPropDescs$
|
|
3223
|
-
var __getOwnPropSymbols$
|
|
3224
|
-
var __hasOwnProp$
|
|
3225
|
-
var __propIsEnum$
|
|
3226
|
-
var __defNormalProp$
|
|
3226
|
+
var __defProp$9 = Object.defineProperty;
|
|
3227
|
+
var __defProps$9 = Object.defineProperties;
|
|
3228
|
+
var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
|
|
3229
|
+
var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
|
|
3230
|
+
var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
|
|
3231
|
+
var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
|
|
3232
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, {
|
|
3227
3233
|
enumerable: true,
|
|
3228
3234
|
configurable: true,
|
|
3229
3235
|
writable: true,
|
|
3230
3236
|
value
|
|
3231
3237
|
}) : obj[key] = value;
|
|
3232
|
-
var __spreadValues$
|
|
3233
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3234
|
-
if (__getOwnPropSymbols$
|
|
3235
|
-
if (__propIsEnum$
|
|
3238
|
+
var __spreadValues$9 = (a, b) => {
|
|
3239
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$9.call(b, prop)) __defNormalProp$9(a, prop, b[prop]);
|
|
3240
|
+
if (__getOwnPropSymbols$9) for (var prop of __getOwnPropSymbols$9(b)) {
|
|
3241
|
+
if (__propIsEnum$9.call(b, prop)) __defNormalProp$9(a, prop, b[prop]);
|
|
3236
3242
|
}
|
|
3237
3243
|
return a;
|
|
3238
3244
|
};
|
|
3239
|
-
var __spreadProps$
|
|
3240
|
-
var __objRest = (source, exclude) => {
|
|
3245
|
+
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
|
|
3246
|
+
var __objRest$1 = (source, exclude) => {
|
|
3241
3247
|
var target = {};
|
|
3242
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3243
|
-
if (source != null && __getOwnPropSymbols$
|
|
3244
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3248
|
+
for (var prop in source) if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3249
|
+
if (source != null && __getOwnPropSymbols$9) for (var prop of __getOwnPropSymbols$9(source)) {
|
|
3250
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$9.call(source, prop)) target[prop] = source[prop];
|
|
3245
3251
|
}
|
|
3246
3252
|
return target;
|
|
3247
3253
|
};
|
|
@@ -3253,7 +3259,7 @@ const Switch = _a => {
|
|
|
3253
3259
|
className,
|
|
3254
3260
|
checked
|
|
3255
3261
|
} = _b,
|
|
3256
|
-
props = __objRest(_b, ["children", "className", "checked"]);
|
|
3262
|
+
props = __objRest$1(_b, ["children", "className", "checked"]);
|
|
3257
3263
|
const Content = /*#__PURE__*/styled('span')({
|
|
3258
3264
|
name: "Content",
|
|
3259
3265
|
class: "c1to9vb9",
|
|
@@ -3261,7 +3267,7 @@ const Switch = _a => {
|
|
|
3261
3267
|
});
|
|
3262
3268
|
const classNames = [className, SwitchStyle, "switch"];
|
|
3263
3269
|
if (props.size === "large") classNames.push("ant-switch-large");
|
|
3264
|
-
return /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement(Switch$1, __spreadProps$
|
|
3270
|
+
return /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement(Switch$1, __spreadProps$9(__spreadValues$9({
|
|
3265
3271
|
className: cx(...classNames),
|
|
3266
3272
|
checked: checked || false
|
|
3267
3273
|
}, props), {
|
|
@@ -3347,26 +3353,26 @@ const ColumnTitle = props => {
|
|
|
3347
3353
|
}));
|
|
3348
3354
|
};
|
|
3349
3355
|
|
|
3350
|
-
var __defProp$
|
|
3351
|
-
var __defProps$
|
|
3352
|
-
var __getOwnPropDescs$
|
|
3353
|
-
var __getOwnPropSymbols$
|
|
3354
|
-
var __hasOwnProp$
|
|
3355
|
-
var __propIsEnum$
|
|
3356
|
-
var __defNormalProp$
|
|
3356
|
+
var __defProp$8 = Object.defineProperty;
|
|
3357
|
+
var __defProps$8 = Object.defineProperties;
|
|
3358
|
+
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
|
3359
|
+
var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
|
|
3360
|
+
var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
|
|
3361
|
+
var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
|
|
3362
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, {
|
|
3357
3363
|
enumerable: true,
|
|
3358
3364
|
configurable: true,
|
|
3359
3365
|
writable: true,
|
|
3360
3366
|
value
|
|
3361
3367
|
}) : obj[key] = value;
|
|
3362
|
-
var __spreadValues$
|
|
3363
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3364
|
-
if (__getOwnPropSymbols$
|
|
3365
|
-
if (__propIsEnum$
|
|
3368
|
+
var __spreadValues$8 = (a, b) => {
|
|
3369
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$8.call(b, prop)) __defNormalProp$8(a, prop, b[prop]);
|
|
3370
|
+
if (__getOwnPropSymbols$8) for (var prop of __getOwnPropSymbols$8(b)) {
|
|
3371
|
+
if (__propIsEnum$8.call(b, prop)) __defNormalProp$8(a, prop, b[prop]);
|
|
3366
3372
|
}
|
|
3367
3373
|
return a;
|
|
3368
3374
|
};
|
|
3369
|
-
var __spreadProps$
|
|
3375
|
+
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
3370
3376
|
const TableContainerStyle = "t1upn1sz";
|
|
3371
3377
|
const tableStyleCover = "tta5kd2";
|
|
3372
3378
|
const Table = props => {
|
|
@@ -3392,7 +3398,7 @@ const Table = props => {
|
|
|
3392
3398
|
const orderRef = useRef(null);
|
|
3393
3399
|
const hasScrollBard = useTableBodyHasScrollBar(wrapper, dataSource);
|
|
3394
3400
|
const _columns = useMemo(() => columns.map(column => {
|
|
3395
|
-
const _column = __spreadValues$
|
|
3401
|
+
const _column = __spreadValues$8({}, column);
|
|
3396
3402
|
if (_column.sorter) {
|
|
3397
3403
|
_column.title = /* @__PURE__ */React.createElement(ColumnTitle, {
|
|
3398
3404
|
title: column.title,
|
|
@@ -3434,13 +3440,895 @@ const Table = props => {
|
|
|
3434
3440
|
}),
|
|
3435
3441
|
rowClassName,
|
|
3436
3442
|
scroll,
|
|
3437
|
-
rowSelection: rowSelection && __spreadProps$
|
|
3443
|
+
rowSelection: rowSelection && __spreadProps$8(__spreadValues$8({}, rowSelection), {
|
|
3438
3444
|
columnWidth: 32
|
|
3439
3445
|
}),
|
|
3440
3446
|
showSorterTooltip: false
|
|
3441
3447
|
}));
|
|
3442
3448
|
};
|
|
3443
3449
|
|
|
3450
|
+
const TitleStyle = "tc40oxa";
|
|
3451
|
+
const SubtitleStyle = "sa410aw";
|
|
3452
|
+
const BodyCellTextStyle = "b1lc7yin";
|
|
3453
|
+
const BodyCellTextWrapper = /*#__PURE__*/styled('div')({
|
|
3454
|
+
name: "BodyCellTextWrapper",
|
|
3455
|
+
class: "b1jhbz3e",
|
|
3456
|
+
propsAsIs: false
|
|
3457
|
+
});
|
|
3458
|
+
const TableFormWrapper = /*#__PURE__*/styled('div')({
|
|
3459
|
+
name: "TableFormWrapper",
|
|
3460
|
+
class: "tyua489",
|
|
3461
|
+
propsAsIs: false
|
|
3462
|
+
});
|
|
3463
|
+
const AddRowButtonWrapper = /*#__PURE__*/styled('div')({
|
|
3464
|
+
name: "AddRowButtonWrapper",
|
|
3465
|
+
class: "a1ccrot9",
|
|
3466
|
+
propsAsIs: false
|
|
3467
|
+
});
|
|
3468
|
+
const DraggableHandleWrapper = /*#__PURE__*/styled('div')({
|
|
3469
|
+
name: "DraggableHandleWrapper",
|
|
3470
|
+
class: "d8c9v9g",
|
|
3471
|
+
propsAsIs: false
|
|
3472
|
+
});
|
|
3473
|
+
|
|
3474
|
+
function increaseLastNumber(str, num) {
|
|
3475
|
+
const lastNumberMatch = str.match(/(\d+)$/);
|
|
3476
|
+
if (!lastNumberMatch) {
|
|
3477
|
+
return str;
|
|
3478
|
+
}
|
|
3479
|
+
const prefix = str.slice(0, lastNumberMatch.index);
|
|
3480
|
+
const lastNumber = lastNumberMatch[1];
|
|
3481
|
+
let newLastNumber;
|
|
3482
|
+
if (Number.isSafeInteger(Number(str) + num)) {
|
|
3483
|
+
newLastNumber = Number(str) + num;
|
|
3484
|
+
}
|
|
3485
|
+
newLastNumber = (BigInt(lastNumber) + BigInt(num)).toString();
|
|
3486
|
+
return `${prefix}${newLastNumber}`;
|
|
3487
|
+
}
|
|
3488
|
+
const genEmptyRow = (columns) => {
|
|
3489
|
+
const row = {};
|
|
3490
|
+
columns.forEach((col) => {
|
|
3491
|
+
row[col.key] = col.defaultValue;
|
|
3492
|
+
});
|
|
3493
|
+
return row;
|
|
3494
|
+
};
|
|
3495
|
+
const moveItemInArray = (array, fromIndex, toIndex) => {
|
|
3496
|
+
const arrLength = array.length;
|
|
3497
|
+
const sortArr = [...array];
|
|
3498
|
+
if (fromIndex > -1 && fromIndex < arrLength) {
|
|
3499
|
+
const moveItem = sortArr.splice(fromIndex, 1)[0];
|
|
3500
|
+
sortArr.splice(toIndex, 0, moveItem);
|
|
3501
|
+
}
|
|
3502
|
+
return sortArr;
|
|
3503
|
+
};
|
|
3504
|
+
|
|
3505
|
+
var __defProp$7 = Object.defineProperty;
|
|
3506
|
+
var __defProps$7 = Object.defineProperties;
|
|
3507
|
+
var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
|
|
3508
|
+
var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
|
|
3509
|
+
var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
|
|
3510
|
+
var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
|
|
3511
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3512
|
+
var __spreadValues$7 = (a, b) => {
|
|
3513
|
+
for (var prop in b || (b = {}))
|
|
3514
|
+
if (__hasOwnProp$7.call(b, prop))
|
|
3515
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
3516
|
+
if (__getOwnPropSymbols$7)
|
|
3517
|
+
for (var prop of __getOwnPropSymbols$7(b)) {
|
|
3518
|
+
if (__propIsEnum$7.call(b, prop))
|
|
3519
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
3520
|
+
}
|
|
3521
|
+
return a;
|
|
3522
|
+
};
|
|
3523
|
+
var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
|
|
3524
|
+
var __objRest = (source, exclude) => {
|
|
3525
|
+
var target = {};
|
|
3526
|
+
for (var prop in source)
|
|
3527
|
+
if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3528
|
+
target[prop] = source[prop];
|
|
3529
|
+
if (source != null && __getOwnPropSymbols$7)
|
|
3530
|
+
for (var prop of __getOwnPropSymbols$7(source)) {
|
|
3531
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop))
|
|
3532
|
+
target[prop] = source[prop];
|
|
3533
|
+
}
|
|
3534
|
+
return target;
|
|
3535
|
+
};
|
|
3536
|
+
const AddRowButton = (props) => {
|
|
3537
|
+
const {
|
|
3538
|
+
config: { maximum, className, CustomizedButton, buttonProps, text },
|
|
3539
|
+
columns,
|
|
3540
|
+
updateData,
|
|
3541
|
+
data
|
|
3542
|
+
} = props;
|
|
3543
|
+
const _a = buttonProps || {}, {
|
|
3544
|
+
disabled: disabledFromProp,
|
|
3545
|
+
onClick
|
|
3546
|
+
} = _a, restButtonProps = __objRest(_a, [
|
|
3547
|
+
"disabled",
|
|
3548
|
+
"onClick"
|
|
3549
|
+
]);
|
|
3550
|
+
const onAdd = (e, data2) => {
|
|
3551
|
+
const newData = [...data2];
|
|
3552
|
+
const newRow = genEmptyRow(columns);
|
|
3553
|
+
newData.push(newRow);
|
|
3554
|
+
updateData(newData);
|
|
3555
|
+
onClick == null ? void 0 : onClick(e);
|
|
3556
|
+
};
|
|
3557
|
+
const disabled = useMemo(
|
|
3558
|
+
() => disabledFromProp || typeof maximum === "number" && maximum <= data.length,
|
|
3559
|
+
[maximum, data.length, disabledFromProp]
|
|
3560
|
+
);
|
|
3561
|
+
const CustomizedButtonText = useMemo(() => {
|
|
3562
|
+
if (!text)
|
|
3563
|
+
return null;
|
|
3564
|
+
if (typeof text === "string")
|
|
3565
|
+
return text;
|
|
3566
|
+
return text();
|
|
3567
|
+
}, [text]);
|
|
3568
|
+
if (!columns.length) {
|
|
3569
|
+
return null;
|
|
3570
|
+
}
|
|
3571
|
+
return CustomizedButton ? /* @__PURE__ */ React.createElement(CustomizedButton, __spreadValues$7({}, props)) : /* @__PURE__ */ React.createElement(AddRowButtonWrapper, { className }, /* @__PURE__ */ React.createElement(
|
|
3572
|
+
Button,
|
|
3573
|
+
__spreadProps$7(__spreadValues$7({}, restButtonProps), {
|
|
3574
|
+
type: restButtonProps.type || "ordinary",
|
|
3575
|
+
size: restButtonProps.size || "small",
|
|
3576
|
+
icon: restButtonProps.icon || /* @__PURE__ */ React.createElement(PlusOutlined, null),
|
|
3577
|
+
className: cx(Typo.Label.l3_regular, restButtonProps.className),
|
|
3578
|
+
onClick: (e) => {
|
|
3579
|
+
onAdd(e, data);
|
|
3580
|
+
},
|
|
3581
|
+
disabled
|
|
3582
|
+
}),
|
|
3583
|
+
CustomizedButtonText || parrotI18n.t("components.add")
|
|
3584
|
+
), typeof maximum === "number" ? /* @__PURE__ */ React.createElement(
|
|
3585
|
+
"span",
|
|
3586
|
+
{
|
|
3587
|
+
className: cx(
|
|
3588
|
+
Typo.Label.l4_regular,
|
|
3589
|
+
"maximum-desc",
|
|
3590
|
+
disabled && "disabled"
|
|
3591
|
+
)
|
|
3592
|
+
},
|
|
3593
|
+
parrotI18n.t("components.maximum_row_count_desc", {
|
|
3594
|
+
count: maximum
|
|
3595
|
+
})
|
|
3596
|
+
) : null);
|
|
3597
|
+
};
|
|
3598
|
+
|
|
3599
|
+
const AffixColumnHeaderCell = ({ data, column, onChange, onBlur }) => {
|
|
3600
|
+
const [suffix, setSuffix] = useState("");
|
|
3601
|
+
const [prefix, setPrefix] = useState("");
|
|
3602
|
+
const onPrefixChange = useCallback(
|
|
3603
|
+
(e) => {
|
|
3604
|
+
const newPrefix = e.target.value;
|
|
3605
|
+
setPrefix(newPrefix);
|
|
3606
|
+
onChange(newPrefix + suffix);
|
|
3607
|
+
},
|
|
3608
|
+
[suffix, onChange]
|
|
3609
|
+
);
|
|
3610
|
+
const onSuffixChange = useCallback(
|
|
3611
|
+
(e) => {
|
|
3612
|
+
const newSuffix = e.target.value;
|
|
3613
|
+
setSuffix(newSuffix);
|
|
3614
|
+
onChange(prefix + newSuffix);
|
|
3615
|
+
},
|
|
3616
|
+
[prefix, onChange]
|
|
3617
|
+
);
|
|
3618
|
+
return /* @__PURE__ */ React.createElement(Space, null, !column.disablePrefix ? /* @__PURE__ */ React.createElement(
|
|
3619
|
+
Input$1,
|
|
3620
|
+
{
|
|
3621
|
+
value: prefix,
|
|
3622
|
+
placeholder: parrotI18n.t("components.prefix"),
|
|
3623
|
+
size: "small",
|
|
3624
|
+
onChange: onPrefixChange,
|
|
3625
|
+
onBlur
|
|
3626
|
+
}
|
|
3627
|
+
) : void 0, !column.disableSuffix ? /* @__PURE__ */ React.createElement(
|
|
3628
|
+
Input$1,
|
|
3629
|
+
{
|
|
3630
|
+
value: suffix,
|
|
3631
|
+
placeholder: parrotI18n.t("components.suffix"),
|
|
3632
|
+
size: "small",
|
|
3633
|
+
onChange: onSuffixChange,
|
|
3634
|
+
onBlur
|
|
3635
|
+
}
|
|
3636
|
+
) : void 0);
|
|
3637
|
+
};
|
|
3638
|
+
|
|
3639
|
+
const CheckboxColumnBodyCell = ({ data, column, index, onChange }) => {
|
|
3640
|
+
const value = data[index][column.key] === void 0 ? column.defaultValue : data[index][column.key];
|
|
3641
|
+
const _onChange = useCallback(
|
|
3642
|
+
(e) => {
|
|
3643
|
+
onChange(e.target.checked);
|
|
3644
|
+
},
|
|
3645
|
+
[onChange]
|
|
3646
|
+
);
|
|
3647
|
+
const defaultChecked = column.defaultValue;
|
|
3648
|
+
return /* @__PURE__ */ React.createElement(
|
|
3649
|
+
Checkbox$1,
|
|
3650
|
+
{
|
|
3651
|
+
checked: value,
|
|
3652
|
+
onChange: _onChange,
|
|
3653
|
+
defaultChecked
|
|
3654
|
+
}
|
|
3655
|
+
);
|
|
3656
|
+
};
|
|
3657
|
+
|
|
3658
|
+
var __defProp$6 = Object.defineProperty;
|
|
3659
|
+
var __defProps$6 = Object.defineProperties;
|
|
3660
|
+
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
3661
|
+
var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
|
|
3662
|
+
var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
|
|
3663
|
+
var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
|
|
3664
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3665
|
+
var __spreadValues$6 = (a, b) => {
|
|
3666
|
+
for (var prop in b || (b = {}))
|
|
3667
|
+
if (__hasOwnProp$6.call(b, prop))
|
|
3668
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
3669
|
+
if (__getOwnPropSymbols$6)
|
|
3670
|
+
for (var prop of __getOwnPropSymbols$6(b)) {
|
|
3671
|
+
if (__propIsEnum$6.call(b, prop))
|
|
3672
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
3673
|
+
}
|
|
3674
|
+
return a;
|
|
3675
|
+
};
|
|
3676
|
+
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
|
3677
|
+
const InputPassword = (props) => {
|
|
3678
|
+
const [showPassword, setShowPassword] = useState(false);
|
|
3679
|
+
useEffect(() => {
|
|
3680
|
+
if (props.visible !== void 0) {
|
|
3681
|
+
setShowPassword(props.visible);
|
|
3682
|
+
}
|
|
3683
|
+
}, [props.visible]);
|
|
3684
|
+
const toggleShowPassword = () => {
|
|
3685
|
+
var _a;
|
|
3686
|
+
setShowPassword(!showPassword);
|
|
3687
|
+
(_a = props == null ? void 0 : props.onVisibleChange) == null ? void 0 : _a.call(props, !showPassword);
|
|
3688
|
+
};
|
|
3689
|
+
const inputType = showPassword ? "text" : "password";
|
|
3690
|
+
return /* @__PURE__ */ React.createElement(
|
|
3691
|
+
Input$1,
|
|
3692
|
+
__spreadProps$6(__spreadValues$6({}, props), {
|
|
3693
|
+
type: inputType,
|
|
3694
|
+
suffix: showPassword ? /* @__PURE__ */ React.createElement(
|
|
3695
|
+
EyeOutlined,
|
|
3696
|
+
{
|
|
3697
|
+
className: "ant-input-password-icon",
|
|
3698
|
+
onClick: toggleShowPassword
|
|
3699
|
+
}
|
|
3700
|
+
) : /* @__PURE__ */ React.createElement(
|
|
3701
|
+
EyeInvisibleOutlined,
|
|
3702
|
+
{
|
|
3703
|
+
className: "ant-input-password-icon",
|
|
3704
|
+
onClick: toggleShowPassword
|
|
3705
|
+
}
|
|
3706
|
+
)
|
|
3707
|
+
})
|
|
3708
|
+
);
|
|
3709
|
+
};
|
|
3710
|
+
const CustomInput = (props) => {
|
|
3711
|
+
if (props.type === "password") {
|
|
3712
|
+
return /* @__PURE__ */ React.createElement(InputPassword, __spreadValues$6({}, props));
|
|
3713
|
+
}
|
|
3714
|
+
return /* @__PURE__ */ React.createElement(Input$1, __spreadValues$6({}, props));
|
|
3715
|
+
};
|
|
3716
|
+
const InputColumnHeaderCell = ({ disabled, column, onChange, onBlur, onVisibleChange }) => {
|
|
3717
|
+
const _onChange = (e) => {
|
|
3718
|
+
const newValue = e.target.value;
|
|
3719
|
+
onChange(newValue);
|
|
3720
|
+
};
|
|
3721
|
+
return /* @__PURE__ */ React.createElement(
|
|
3722
|
+
CustomInput,
|
|
3723
|
+
{
|
|
3724
|
+
type: column.type,
|
|
3725
|
+
placeholder: column.placeholder,
|
|
3726
|
+
disabled,
|
|
3727
|
+
size: "small",
|
|
3728
|
+
onChange: _onChange,
|
|
3729
|
+
onBlur,
|
|
3730
|
+
onVisibleChange
|
|
3731
|
+
}
|
|
3732
|
+
);
|
|
3733
|
+
};
|
|
3734
|
+
const InputColumnBodyCell = ({
|
|
3735
|
+
data,
|
|
3736
|
+
latestData,
|
|
3737
|
+
column,
|
|
3738
|
+
index,
|
|
3739
|
+
disabled,
|
|
3740
|
+
onChange,
|
|
3741
|
+
onBlur,
|
|
3742
|
+
visible
|
|
3743
|
+
}) => {
|
|
3744
|
+
const placeHolderValue = column.type === "password" ? "" : latestData[index][column.key];
|
|
3745
|
+
const _onChange = (e) => {
|
|
3746
|
+
const newValue = e.target.value;
|
|
3747
|
+
onChange(newValue);
|
|
3748
|
+
};
|
|
3749
|
+
return /* @__PURE__ */ React.createElement(
|
|
3750
|
+
CustomInput,
|
|
3751
|
+
{
|
|
3752
|
+
size: "small",
|
|
3753
|
+
value: data[index][column.key],
|
|
3754
|
+
type: column.type,
|
|
3755
|
+
defaultValue: column.defaultValue,
|
|
3756
|
+
disabled,
|
|
3757
|
+
placeholder: placeHolderValue || column.placeholder,
|
|
3758
|
+
onChange: _onChange,
|
|
3759
|
+
onBlur,
|
|
3760
|
+
visible
|
|
3761
|
+
}
|
|
3762
|
+
);
|
|
3763
|
+
};
|
|
3764
|
+
|
|
3765
|
+
const TextColumnHeaderCell = ({
|
|
3766
|
+
column
|
|
3767
|
+
}) => {
|
|
3768
|
+
return /* @__PURE__ */ React.createElement(
|
|
3769
|
+
"p",
|
|
3770
|
+
{
|
|
3771
|
+
className: cx(Typo.Label.l4_regular, SubtitleStyle, column.subTitleColor)
|
|
3772
|
+
},
|
|
3773
|
+
column.subTitle
|
|
3774
|
+
);
|
|
3775
|
+
};
|
|
3776
|
+
const TextColumnBodyCell = ({
|
|
3777
|
+
data,
|
|
3778
|
+
column,
|
|
3779
|
+
index
|
|
3780
|
+
}) => {
|
|
3781
|
+
const text = column.displayText || data[index][column.key];
|
|
3782
|
+
const CellDescription = useMemo(() => {
|
|
3783
|
+
var _a, _b;
|
|
3784
|
+
const Result = (_b = (_a = column.renderDescription) == null ? void 0 : _a.call(column, {
|
|
3785
|
+
rowIndex: index,
|
|
3786
|
+
rowData: data[index]
|
|
3787
|
+
})) != null ? _b : null;
|
|
3788
|
+
return typeof Result === "string" ? /* @__PURE__ */ React.createElement("p", { className: cx(Typo.Label.l4_regular, "cell-description") }, Result) : Result;
|
|
3789
|
+
}, [index, data, column]);
|
|
3790
|
+
const Text = useMemo(
|
|
3791
|
+
() => /* @__PURE__ */ React.createElement("p", { className: cx(Typo.Label.l3_regular, BodyCellTextStyle) }, text),
|
|
3792
|
+
[text]
|
|
3793
|
+
);
|
|
3794
|
+
return /* @__PURE__ */ React.createElement(
|
|
3795
|
+
BodyCellTextWrapper,
|
|
3796
|
+
{
|
|
3797
|
+
className: !!CellDescription ? "with-description" : void 0
|
|
3798
|
+
},
|
|
3799
|
+
Text,
|
|
3800
|
+
CellDescription
|
|
3801
|
+
);
|
|
3802
|
+
};
|
|
3803
|
+
|
|
3804
|
+
const ColumnHeaderImpls = {
|
|
3805
|
+
text: TextColumnHeaderCell,
|
|
3806
|
+
input: InputColumnHeaderCell,
|
|
3807
|
+
password: InputColumnHeaderCell,
|
|
3808
|
+
affix: AffixColumnHeaderCell,
|
|
3809
|
+
checkbox: TextColumnHeaderCell
|
|
3810
|
+
};
|
|
3811
|
+
const ColumnBodyImpls = {
|
|
3812
|
+
text: TextColumnBodyCell,
|
|
3813
|
+
input: InputColumnBodyCell,
|
|
3814
|
+
password: InputColumnBodyCell,
|
|
3815
|
+
affix: InputColumnBodyCell,
|
|
3816
|
+
checkbox: CheckboxColumnBodyCell
|
|
3817
|
+
};
|
|
3818
|
+
|
|
3819
|
+
const FormItemStyle = "feau332";
|
|
3820
|
+
const FormItem = props => {
|
|
3821
|
+
const {
|
|
3822
|
+
validateStatus,
|
|
3823
|
+
message,
|
|
3824
|
+
children
|
|
3825
|
+
} = props;
|
|
3826
|
+
return /* @__PURE__ */React.createElement(Form.Item, {
|
|
3827
|
+
className: FormItemStyle,
|
|
3828
|
+
validateStatus,
|
|
3829
|
+
help: validateStatus ? message : ""
|
|
3830
|
+
}, children);
|
|
3831
|
+
};
|
|
3832
|
+
|
|
3833
|
+
var __defProp$5 = Object.defineProperty;
|
|
3834
|
+
var __defProps$5 = Object.defineProperties;
|
|
3835
|
+
var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
|
|
3836
|
+
var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
|
|
3837
|
+
var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
|
|
3838
|
+
var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
|
|
3839
|
+
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3840
|
+
var __spreadValues$5 = (a, b) => {
|
|
3841
|
+
for (var prop in b || (b = {}))
|
|
3842
|
+
if (__hasOwnProp$5.call(b, prop))
|
|
3843
|
+
__defNormalProp$5(a, prop, b[prop]);
|
|
3844
|
+
if (__getOwnPropSymbols$5)
|
|
3845
|
+
for (var prop of __getOwnPropSymbols$5(b)) {
|
|
3846
|
+
if (__propIsEnum$5.call(b, prop))
|
|
3847
|
+
__defNormalProp$5(a, prop, b[prop]);
|
|
3848
|
+
}
|
|
3849
|
+
return a;
|
|
3850
|
+
};
|
|
3851
|
+
var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
|
|
3852
|
+
const TableFormBodyCell = (props) => {
|
|
3853
|
+
const {
|
|
3854
|
+
column,
|
|
3855
|
+
disabled,
|
|
3856
|
+
index: rowIndex,
|
|
3857
|
+
data,
|
|
3858
|
+
onChange,
|
|
3859
|
+
latestData,
|
|
3860
|
+
isRowError,
|
|
3861
|
+
onBlur
|
|
3862
|
+
} = props;
|
|
3863
|
+
const width = typeof column.width === "number" ? column.width + "px" : column.width;
|
|
3864
|
+
const _onChange = useCallback(
|
|
3865
|
+
(value, data2) => {
|
|
3866
|
+
const newData = data2.map(
|
|
3867
|
+
(row, i) => i === rowIndex ? __spreadProps$5(__spreadValues$5({}, row), { [column.key]: value }) : row
|
|
3868
|
+
);
|
|
3869
|
+
onChange == null ? void 0 : onChange(newData, rowIndex, column.key);
|
|
3870
|
+
},
|
|
3871
|
+
[rowIndex, onChange, column]
|
|
3872
|
+
);
|
|
3873
|
+
const _onBlur = useCallback(() => {
|
|
3874
|
+
onBlur == null ? void 0 : onBlur(data, rowIndex, column.key);
|
|
3875
|
+
}, [rowIndex, column, onBlur, data]);
|
|
3876
|
+
const renderDefaultComponent = () => {
|
|
3877
|
+
if (!column.type)
|
|
3878
|
+
return null;
|
|
3879
|
+
const CellComponent = ColumnBodyImpls[column.type];
|
|
3880
|
+
return /* @__PURE__ */ React.createElement(
|
|
3881
|
+
CellComponent,
|
|
3882
|
+
__spreadProps$5(__spreadValues$5({}, props), {
|
|
3883
|
+
customData: column.customData,
|
|
3884
|
+
onChange: (val) => {
|
|
3885
|
+
_onChange(val, data);
|
|
3886
|
+
},
|
|
3887
|
+
onBlur: _onBlur
|
|
3888
|
+
})
|
|
3889
|
+
);
|
|
3890
|
+
};
|
|
3891
|
+
const Cell = column.render ? column.render({
|
|
3892
|
+
isHeader: false,
|
|
3893
|
+
disabled,
|
|
3894
|
+
placeholder: props.placeholderValue || latestData[rowIndex][column.key],
|
|
3895
|
+
value: data[rowIndex][column.key],
|
|
3896
|
+
onChange: (val) => {
|
|
3897
|
+
_onChange(val, data);
|
|
3898
|
+
},
|
|
3899
|
+
onBlur: _onBlur,
|
|
3900
|
+
rowIndex
|
|
3901
|
+
}) : renderDefaultComponent();
|
|
3902
|
+
const CellDescription = useMemo(() => {
|
|
3903
|
+
var _a;
|
|
3904
|
+
if (column.type === "text")
|
|
3905
|
+
return null;
|
|
3906
|
+
const Result = ((_a = column.renderDescription) == null ? void 0 : _a.call(column, {
|
|
3907
|
+
rowIndex,
|
|
3908
|
+
rowData: data[rowIndex],
|
|
3909
|
+
latestData
|
|
3910
|
+
})) || null;
|
|
3911
|
+
return typeof Result === "string" ? /* @__PURE__ */ React.createElement("p", { className: cx(Typo.Label.l4_regular, "cell-description") }, Result) : Result;
|
|
3912
|
+
}, [rowIndex, data, latestData, column]);
|
|
3913
|
+
const validateResult = useMemo(() => {
|
|
3914
|
+
var _a;
|
|
3915
|
+
if (isRowError) {
|
|
3916
|
+
return {
|
|
3917
|
+
msg: "",
|
|
3918
|
+
isError: true
|
|
3919
|
+
};
|
|
3920
|
+
}
|
|
3921
|
+
const value = data[rowIndex][column.key];
|
|
3922
|
+
const result = (_a = column.validator) == null ? void 0 : _a.call(column, {
|
|
3923
|
+
value,
|
|
3924
|
+
rowIndex,
|
|
3925
|
+
rowData: data[rowIndex]
|
|
3926
|
+
});
|
|
3927
|
+
if (typeof result === "string" && result) {
|
|
3928
|
+
return { msg: result, isError: true };
|
|
3929
|
+
}
|
|
3930
|
+
}, [data, column, rowIndex, isRowError]);
|
|
3931
|
+
return /* @__PURE__ */ React.createElement(
|
|
3932
|
+
"div",
|
|
3933
|
+
{
|
|
3934
|
+
className: cx("eagle-table-form-cell", `align-${column.align || "left"}`),
|
|
3935
|
+
style: {
|
|
3936
|
+
maxWidth: column.width ? width : "",
|
|
3937
|
+
minWidth: column.width ? width : "",
|
|
3938
|
+
visibility: column.hidden ? "hidden" : "visible"
|
|
3939
|
+
}
|
|
3940
|
+
},
|
|
3941
|
+
/* @__PURE__ */ React.createElement(
|
|
3942
|
+
FormItem,
|
|
3943
|
+
{
|
|
3944
|
+
validateStatus: (validateResult == null ? void 0 : validateResult.isError) ? "error" : "",
|
|
3945
|
+
message: (validateResult == null ? void 0 : validateResult.isError) && validateResult.msg ? validateResult.msg : void 0
|
|
3946
|
+
},
|
|
3947
|
+
Cell
|
|
3948
|
+
),
|
|
3949
|
+
CellDescription
|
|
3950
|
+
);
|
|
3951
|
+
};
|
|
3952
|
+
|
|
3953
|
+
var __defProp$4 = Object.defineProperty;
|
|
3954
|
+
var __defProps$4 = Object.defineProperties;
|
|
3955
|
+
var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
|
|
3956
|
+
var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
|
|
3957
|
+
var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
|
|
3958
|
+
var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
|
|
3959
|
+
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3960
|
+
var __spreadValues$4 = (a, b) => {
|
|
3961
|
+
for (var prop in b || (b = {}))
|
|
3962
|
+
if (__hasOwnProp$4.call(b, prop))
|
|
3963
|
+
__defNormalProp$4(a, prop, b[prop]);
|
|
3964
|
+
if (__getOwnPropSymbols$4)
|
|
3965
|
+
for (var prop of __getOwnPropSymbols$4(b)) {
|
|
3966
|
+
if (__propIsEnum$4.call(b, prop))
|
|
3967
|
+
__defNormalProp$4(a, prop, b[prop]);
|
|
3968
|
+
}
|
|
3969
|
+
return a;
|
|
3970
|
+
};
|
|
3971
|
+
var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
|
|
3972
|
+
const TableFormRow = (props) => {
|
|
3973
|
+
const {
|
|
3974
|
+
data,
|
|
3975
|
+
columns,
|
|
3976
|
+
latestData,
|
|
3977
|
+
disabled,
|
|
3978
|
+
passwordVisible,
|
|
3979
|
+
deletable,
|
|
3980
|
+
draggable,
|
|
3981
|
+
rowIndex,
|
|
3982
|
+
provided,
|
|
3983
|
+
snapshot,
|
|
3984
|
+
updateData,
|
|
3985
|
+
onBodyBlur,
|
|
3986
|
+
renderRowDescription,
|
|
3987
|
+
rowValidator
|
|
3988
|
+
} = props;
|
|
3989
|
+
const rowData = data[rowIndex];
|
|
3990
|
+
const deleteRow = (index, data2) => {
|
|
3991
|
+
const newData = [...data2];
|
|
3992
|
+
newData.splice(index, 1);
|
|
3993
|
+
updateData(newData);
|
|
3994
|
+
};
|
|
3995
|
+
const getRowActions = (index, rowDeletable) => {
|
|
3996
|
+
const isRowDeleteDisabled = rowDeletable === false;
|
|
3997
|
+
const DeleteIcon = /* @__PURE__ */ React.createElement(
|
|
3998
|
+
Icon,
|
|
3999
|
+
{
|
|
4000
|
+
className: cx("delete-row-icon", isRowDeleteDisabled && "disabled"),
|
|
4001
|
+
src: XmarkRemove16SecondaryIcon,
|
|
4002
|
+
hoverSrc: isRowDeleteDisabled ? void 0 : XmarkRemove16RegularRedIcon,
|
|
4003
|
+
onClick: () => {
|
|
4004
|
+
if (isRowDeleteDisabled)
|
|
4005
|
+
return;
|
|
4006
|
+
deleteRow(index, data);
|
|
4007
|
+
}
|
|
4008
|
+
}
|
|
4009
|
+
);
|
|
4010
|
+
const FinalRenderIcon = isRowDeleteDisabled ? DeleteIcon : /* @__PURE__ */ React.createElement(Tooltip, { title: parrotI18n.t("components.remove") }, DeleteIcon);
|
|
4011
|
+
return deletable ? [FinalRenderIcon] : void 0;
|
|
4012
|
+
};
|
|
4013
|
+
const RowValidateResult = useMemo(() => {
|
|
4014
|
+
const result = rowValidator == null ? void 0 : rowValidator(rowIndex, data[rowIndex]);
|
|
4015
|
+
if (typeof result === "string" && result) {
|
|
4016
|
+
return /* @__PURE__ */ React.createElement("p", { className: cx(Typo.Label.l4_regular, "row-error-message") }, result);
|
|
4017
|
+
}
|
|
4018
|
+
return null;
|
|
4019
|
+
}, [rowValidator, rowIndex, data]);
|
|
4020
|
+
const Cells = columns.map((col) => {
|
|
4021
|
+
return /* @__PURE__ */ React.createElement(
|
|
4022
|
+
TableFormBodyCell,
|
|
4023
|
+
{
|
|
4024
|
+
key: col.key,
|
|
4025
|
+
column: col,
|
|
4026
|
+
data,
|
|
4027
|
+
latestData,
|
|
4028
|
+
disabled,
|
|
4029
|
+
index: rowIndex,
|
|
4030
|
+
onChange: updateData,
|
|
4031
|
+
onBlur: onBodyBlur,
|
|
4032
|
+
visible: passwordVisible,
|
|
4033
|
+
isRowError: !!RowValidateResult
|
|
4034
|
+
}
|
|
4035
|
+
);
|
|
4036
|
+
});
|
|
4037
|
+
const DraggableHandle = useMemo(
|
|
4038
|
+
() => draggable && provided ? /* @__PURE__ */ React.createElement(DraggableHandleWrapper, __spreadValues$4({}, provided.dragHandleProps), /* @__PURE__ */ React.createElement(
|
|
4039
|
+
Icon,
|
|
4040
|
+
{
|
|
4041
|
+
src: HandlePoint816SecondaryIcon,
|
|
4042
|
+
hoverSrc: HandlePoint816BlueIcon
|
|
4043
|
+
}
|
|
4044
|
+
)) : null,
|
|
4045
|
+
[draggable, provided]
|
|
4046
|
+
);
|
|
4047
|
+
const RowDescription = useMemo(() => {
|
|
4048
|
+
const RenderResult = (renderRowDescription == null ? void 0 : renderRowDescription({
|
|
4049
|
+
rowIndex,
|
|
4050
|
+
rowData,
|
|
4051
|
+
latestData
|
|
4052
|
+
})) || null;
|
|
4053
|
+
return typeof RenderResult === "string" ? /* @__PURE__ */ React.createElement("p", { className: cx(Typo.Label.l4_regular, "row-description") }, RenderResult) : RenderResult;
|
|
4054
|
+
}, [rowIndex, rowData, latestData, renderRowDescription]);
|
|
4055
|
+
return /* @__PURE__ */ React.createElement(
|
|
4056
|
+
List.Item,
|
|
4057
|
+
{
|
|
4058
|
+
key: rowIndex,
|
|
4059
|
+
className: cx(
|
|
4060
|
+
"eagle-table-form-row",
|
|
4061
|
+
(snapshot == null ? void 0 : snapshot.isDragging) && "isDragging"
|
|
4062
|
+
),
|
|
4063
|
+
actions: getRowActions(rowIndex, rowData.deletable)
|
|
4064
|
+
},
|
|
4065
|
+
DraggableHandle,
|
|
4066
|
+
Cells,
|
|
4067
|
+
RowValidateResult,
|
|
4068
|
+
RowDescription
|
|
4069
|
+
);
|
|
4070
|
+
};
|
|
4071
|
+
const TableFormBodyRows = memo((props) => {
|
|
4072
|
+
const { data, draggable, updateData } = props;
|
|
4073
|
+
const onDragEnd = useCallback(
|
|
4074
|
+
(result) => {
|
|
4075
|
+
var _a;
|
|
4076
|
+
const fromIndex = result.source.index;
|
|
4077
|
+
const toIndex = (_a = result.destination) == null ? void 0 : _a.index;
|
|
4078
|
+
if (typeof toIndex !== "number" || toIndex === fromIndex)
|
|
4079
|
+
return;
|
|
4080
|
+
const newData = moveItemInArray(data, fromIndex, toIndex);
|
|
4081
|
+
updateData(newData);
|
|
4082
|
+
},
|
|
4083
|
+
[data, updateData]
|
|
4084
|
+
);
|
|
4085
|
+
return draggable ? /* @__PURE__ */ React.createElement(DragDropContext, { onDragEnd }, /* @__PURE__ */ React.createElement(Droppable, { droppableId: "droppable" }, (provided) => /* @__PURE__ */ React.createElement(
|
|
4086
|
+
"div",
|
|
4087
|
+
__spreadValues$4({
|
|
4088
|
+
className: "draggable-container",
|
|
4089
|
+
ref: provided.innerRef
|
|
4090
|
+
}, provided.droppableProps),
|
|
4091
|
+
data.map((_d, i) => /* @__PURE__ */ React.createElement(
|
|
4092
|
+
Draggable,
|
|
4093
|
+
{
|
|
4094
|
+
draggableId: `draggable-id-${i}`,
|
|
4095
|
+
key: `draggable-id-${i}`,
|
|
4096
|
+
index: i
|
|
4097
|
+
},
|
|
4098
|
+
(provided2, snapshot) => /* @__PURE__ */ React.createElement("div", __spreadValues$4({ ref: provided2.innerRef }, provided2.draggableProps), /* @__PURE__ */ React.createElement(
|
|
4099
|
+
TableFormRow,
|
|
4100
|
+
__spreadProps$4(__spreadValues$4({}, props), {
|
|
4101
|
+
rowIndex: i,
|
|
4102
|
+
provided: provided2,
|
|
4103
|
+
snapshot
|
|
4104
|
+
})
|
|
4105
|
+
))
|
|
4106
|
+
)),
|
|
4107
|
+
provided.placeholder
|
|
4108
|
+
))) : /* @__PURE__ */ React.createElement(React.Fragment, null, data.map((_d, i) => /* @__PURE__ */ React.createElement(TableFormRow, __spreadProps$4(__spreadValues$4({}, props), { rowIndex: i, key: `table-row-${i}` }))));
|
|
4109
|
+
});
|
|
4110
|
+
|
|
4111
|
+
var __defProp$3 = Object.defineProperty;
|
|
4112
|
+
var __defProps$3 = Object.defineProperties;
|
|
4113
|
+
var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
|
|
4114
|
+
var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
|
|
4115
|
+
var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
|
|
4116
|
+
var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
|
|
4117
|
+
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4118
|
+
var __spreadValues$3 = (a, b) => {
|
|
4119
|
+
for (var prop in b || (b = {}))
|
|
4120
|
+
if (__hasOwnProp$3.call(b, prop))
|
|
4121
|
+
__defNormalProp$3(a, prop, b[prop]);
|
|
4122
|
+
if (__getOwnPropSymbols$3)
|
|
4123
|
+
for (var prop of __getOwnPropSymbols$3(b)) {
|
|
4124
|
+
if (__propIsEnum$3.call(b, prop))
|
|
4125
|
+
__defNormalProp$3(a, prop, b[prop]);
|
|
4126
|
+
}
|
|
4127
|
+
return a;
|
|
4128
|
+
};
|
|
4129
|
+
var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
|
|
4130
|
+
const BatchInputListHeaderCell = (props) => {
|
|
4131
|
+
const { column, disabled, data, disableBatchFilling, onBlur, onChange } = props;
|
|
4132
|
+
const [errMsg, setErrMsg] = useState();
|
|
4133
|
+
const width = Number.isNaN(Number(column.width)) ? column.width : column.width + "px";
|
|
4134
|
+
const headerOnChange = useCallback(
|
|
4135
|
+
(value) => {
|
|
4136
|
+
var _a;
|
|
4137
|
+
const err = (_a = column.validator) == null ? void 0 : _a.call(column, { value, isHeader: true });
|
|
4138
|
+
setErrMsg(err || void 0);
|
|
4139
|
+
const shouldAutoIncrease = column.type !== "password" && column.autoIncrease;
|
|
4140
|
+
const newData = data.map((cell, rowIndex) => {
|
|
4141
|
+
return __spreadProps$3(__spreadValues$3({}, cell), {
|
|
4142
|
+
[column.key]: shouldAutoIncrease && typeof value === "string" ? increaseLastNumber(value, rowIndex) : value
|
|
4143
|
+
});
|
|
4144
|
+
});
|
|
4145
|
+
onChange == null ? void 0 : onChange(newData, column.key);
|
|
4146
|
+
},
|
|
4147
|
+
[onChange, data, column]
|
|
4148
|
+
);
|
|
4149
|
+
const _onBlur = useCallback(() => {
|
|
4150
|
+
onBlur == null ? void 0 : onBlur(column.key, errMsg);
|
|
4151
|
+
}, [column.key, onBlur, errMsg]);
|
|
4152
|
+
const renderDefaultComponent = () => {
|
|
4153
|
+
if (!column.type)
|
|
4154
|
+
return null;
|
|
4155
|
+
const CellComponent = ColumnHeaderImpls[column.type];
|
|
4156
|
+
return /* @__PURE__ */ React.createElement(
|
|
4157
|
+
CellComponent,
|
|
4158
|
+
__spreadProps$3(__spreadValues$3({}, props), {
|
|
4159
|
+
column,
|
|
4160
|
+
onChange: headerOnChange,
|
|
4161
|
+
onBlur: _onBlur
|
|
4162
|
+
})
|
|
4163
|
+
);
|
|
4164
|
+
};
|
|
4165
|
+
const renderCell = () => column.render ? column.render({
|
|
4166
|
+
isHeader: true,
|
|
4167
|
+
disabled,
|
|
4168
|
+
onChange: headerOnChange,
|
|
4169
|
+
onBlur: _onBlur
|
|
4170
|
+
}) : renderDefaultComponent();
|
|
4171
|
+
return /* @__PURE__ */ React.createElement(
|
|
4172
|
+
"div",
|
|
4173
|
+
{
|
|
4174
|
+
className: cx("eagle-table-form-cell", `align-${column.align || "left"}`),
|
|
4175
|
+
style: {
|
|
4176
|
+
maxWidth: column.width ? width : "",
|
|
4177
|
+
minWidth: column.width ? width : "",
|
|
4178
|
+
visibility: column.hidden ? "hidden" : "visible"
|
|
4179
|
+
}
|
|
4180
|
+
},
|
|
4181
|
+
/* @__PURE__ */ React.createElement(
|
|
4182
|
+
FormItem,
|
|
4183
|
+
{
|
|
4184
|
+
validateStatus: typeof errMsg === "string" && errMsg ? "error" : "",
|
|
4185
|
+
message: errMsg || void 0
|
|
4186
|
+
},
|
|
4187
|
+
/* @__PURE__ */ React.createElement("p", { className: cx(Typo.Label.l3_bold_title, TitleStyle) }, column.title),
|
|
4188
|
+
disableBatchFilling ? null : renderCell()
|
|
4189
|
+
)
|
|
4190
|
+
);
|
|
4191
|
+
};
|
|
4192
|
+
|
|
4193
|
+
var __defProp$2 = Object.defineProperty;
|
|
4194
|
+
var __defProps$2 = Object.defineProperties;
|
|
4195
|
+
var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
|
|
4196
|
+
var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
|
|
4197
|
+
var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
|
|
4198
|
+
var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
|
|
4199
|
+
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4200
|
+
var __spreadValues$2 = (a, b) => {
|
|
4201
|
+
for (var prop in b || (b = {}))
|
|
4202
|
+
if (__hasOwnProp$2.call(b, prop))
|
|
4203
|
+
__defNormalProp$2(a, prop, b[prop]);
|
|
4204
|
+
if (__getOwnPropSymbols$2)
|
|
4205
|
+
for (var prop of __getOwnPropSymbols$2(b)) {
|
|
4206
|
+
if (__propIsEnum$2.call(b, prop))
|
|
4207
|
+
__defNormalProp$2(a, prop, b[prop]);
|
|
4208
|
+
}
|
|
4209
|
+
return a;
|
|
4210
|
+
};
|
|
4211
|
+
var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
|
|
4212
|
+
const DEFAULT_ROW_COUNT = 3;
|
|
4213
|
+
const TableForm = React.forwardRef(
|
|
4214
|
+
({
|
|
4215
|
+
defaultData,
|
|
4216
|
+
columns,
|
|
4217
|
+
disabled,
|
|
4218
|
+
rowAddConfig,
|
|
4219
|
+
deletable,
|
|
4220
|
+
size = "default",
|
|
4221
|
+
className,
|
|
4222
|
+
draggable,
|
|
4223
|
+
disableBatchFilling = false,
|
|
4224
|
+
rowSplitType = "border",
|
|
4225
|
+
renderRowDescription,
|
|
4226
|
+
rowValidator,
|
|
4227
|
+
onHeaderChange,
|
|
4228
|
+
onHeaderBlur,
|
|
4229
|
+
onBodyChange,
|
|
4230
|
+
onBodyBlur
|
|
4231
|
+
}, ref) => {
|
|
4232
|
+
const treatedDefaultData = useMemo(() => {
|
|
4233
|
+
return defaultData || [...Array(DEFAULT_ROW_COUNT)].map(() => genEmptyRow(columns));
|
|
4234
|
+
}, [defaultData, columns]);
|
|
4235
|
+
const [data, setData] = useState(treatedDefaultData);
|
|
4236
|
+
const [passwordVisible, setPasswordVisible] = useState(false);
|
|
4237
|
+
const [latestData, setLatestData] = useState(treatedDefaultData);
|
|
4238
|
+
const updateData = useCallback(
|
|
4239
|
+
(value, rowIndex, columnKey) => {
|
|
4240
|
+
setLatestData(value);
|
|
4241
|
+
setData(value);
|
|
4242
|
+
onBodyChange == null ? void 0 : onBodyChange(value, rowIndex, columnKey);
|
|
4243
|
+
},
|
|
4244
|
+
[onBodyChange]
|
|
4245
|
+
);
|
|
4246
|
+
const handleBatchChange = useCallback(
|
|
4247
|
+
(newData, columnKey) => {
|
|
4248
|
+
setLatestData(newData);
|
|
4249
|
+
onHeaderChange == null ? void 0 : onHeaderChange(newData, columnKey);
|
|
4250
|
+
},
|
|
4251
|
+
[onHeaderChange]
|
|
4252
|
+
);
|
|
4253
|
+
const handleBatchBlur = useCallback(
|
|
4254
|
+
(key, error) => {
|
|
4255
|
+
if (error) {
|
|
4256
|
+
const newData = latestData.map((cell) => {
|
|
4257
|
+
return __spreadProps$2(__spreadValues$2({}, cell), {
|
|
4258
|
+
[key]: ""
|
|
4259
|
+
});
|
|
4260
|
+
});
|
|
4261
|
+
setLatestData(newData);
|
|
4262
|
+
onHeaderBlur == null ? void 0 : onHeaderBlur(newData);
|
|
4263
|
+
} else {
|
|
4264
|
+
setData(latestData);
|
|
4265
|
+
onBodyChange == null ? void 0 : onBodyChange(latestData, void 0, key);
|
|
4266
|
+
onHeaderBlur == null ? void 0 : onHeaderBlur(latestData);
|
|
4267
|
+
}
|
|
4268
|
+
},
|
|
4269
|
+
[latestData, onHeaderBlur, onBodyChange]
|
|
4270
|
+
);
|
|
4271
|
+
useImperativeHandle(
|
|
4272
|
+
ref,
|
|
4273
|
+
() => ({
|
|
4274
|
+
setData: (data2) => {
|
|
4275
|
+
updateData(data2);
|
|
4276
|
+
}
|
|
4277
|
+
}),
|
|
4278
|
+
[updateData]
|
|
4279
|
+
);
|
|
4280
|
+
const headerCells = columns.map((col) => {
|
|
4281
|
+
return /* @__PURE__ */ React.createElement(
|
|
4282
|
+
BatchInputListHeaderCell,
|
|
4283
|
+
{
|
|
4284
|
+
key: col.key,
|
|
4285
|
+
data,
|
|
4286
|
+
latestData,
|
|
4287
|
+
disabled,
|
|
4288
|
+
column: col,
|
|
4289
|
+
disableBatchFilling,
|
|
4290
|
+
onChange: handleBatchChange,
|
|
4291
|
+
onBlur: handleBatchBlur,
|
|
4292
|
+
onVisibleChange: setPasswordVisible
|
|
4293
|
+
}
|
|
4294
|
+
);
|
|
4295
|
+
});
|
|
4296
|
+
return /* @__PURE__ */ React.createElement("div", { className }, /* @__PURE__ */ React.createElement(TableFormWrapper, { className: `table-form row-split-by-${rowSplitType}` }, /* @__PURE__ */ React.createElement(List, { size, className: `size-${size}` }, /* @__PURE__ */ React.createElement(
|
|
4297
|
+
List.Item,
|
|
4298
|
+
{
|
|
4299
|
+
className: "eagle-table-form-header",
|
|
4300
|
+
actions: deletable ? [/* @__PURE__ */ React.createElement(React.Fragment, null)] : void 0
|
|
4301
|
+
},
|
|
4302
|
+
draggable ? /* @__PURE__ */ React.createElement(DraggableHandleWrapper, null) : null,
|
|
4303
|
+
headerCells
|
|
4304
|
+
), /* @__PURE__ */ React.createElement(
|
|
4305
|
+
TableFormBodyRows,
|
|
4306
|
+
{
|
|
4307
|
+
data,
|
|
4308
|
+
latestData,
|
|
4309
|
+
columns,
|
|
4310
|
+
passwordVisible,
|
|
4311
|
+
deletable,
|
|
4312
|
+
disabled,
|
|
4313
|
+
draggable,
|
|
4314
|
+
rowSplitType,
|
|
4315
|
+
onBodyBlur,
|
|
4316
|
+
updateData,
|
|
4317
|
+
renderRowDescription,
|
|
4318
|
+
rowValidator
|
|
4319
|
+
}
|
|
4320
|
+
))), (rowAddConfig == null ? void 0 : rowAddConfig.addible) ? /* @__PURE__ */ React.createElement(
|
|
4321
|
+
AddRowButton,
|
|
4322
|
+
{
|
|
4323
|
+
config: rowAddConfig,
|
|
4324
|
+
updateData,
|
|
4325
|
+
columns,
|
|
4326
|
+
data
|
|
4327
|
+
}
|
|
4328
|
+
) : null);
|
|
4329
|
+
}
|
|
4330
|
+
);
|
|
4331
|
+
|
|
3444
4332
|
const flatTimeZones = sortBy(uniqBy(TimeZones.reduce((sum, zone) => {
|
|
3445
4333
|
const utcZones = zone.utc.map(utc => {
|
|
3446
4334
|
return {
|
|
@@ -3614,7 +4502,8 @@ function getAntdKit() {
|
|
|
3614
4502
|
typographyText: Typography.Text,
|
|
3615
4503
|
cascader: Cascader,
|
|
3616
4504
|
upload: Upload,
|
|
3617
|
-
datePickerRangePicker: DatePicker.RangePicker
|
|
4505
|
+
datePickerRangePicker: DatePicker.RangePicker,
|
|
4506
|
+
tableForm: TableForm
|
|
3618
4507
|
};
|
|
3619
4508
|
kit.option.isSelectOption = true;
|
|
3620
4509
|
kit.button.__ANT_BUTTON = true;
|