@cloudtower/eagle 0.25.8 → 0.25.10
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 +1 -3
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/TableForm/Columns/index.d.ts +7 -7
- package/dist/components/message/__tests__/index.test.d.ts +1 -0
- package/dist/components/message/index.d.ts +52 -0
- package/dist/components/message/style/index.d.ts +2 -0
- package/dist/components/message-group/index.d.ts +8 -4
- package/dist/components.css +317 -317
- package/dist/esm/index.js +959 -797
- package/dist/esm/stats1.html +1 -1
- package/dist/font.css +2 -2
- package/dist/spec/base.d.ts +2 -2
- package/dist/style.css +1632 -1632
- package/dist/umd/index.js +780 -606
- package/dist/umd/stats1.html +1 -1
- package/package.json +6 -5
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
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,
|
|
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, Form as Form$1, Modal as Modal$1, Steps as Steps$1, Dropdown, Menu, Progress as Progress$1, Radio as Radio$1, Switch as Switch$1, Table as Table$1, Space, List, Tag, Row, Col, Tree, Divider, Skeleton, Layout, AutoComplete, Popover, Timeline, Typography, Cascader, Upload, Calendar, Tabs, message, Empty as Empty$1, Collapse, TreeSelect, Drawer, ConfigProvider } from 'antd';
|
|
2
2
|
export { Col, Row } from 'antd';
|
|
3
|
-
import
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import React__default, { useState, useMemo, useRef, useCallback, useEffect, Fragment, useLayoutEffect, createContext, memo, useImperativeHandle, useContext } from 'react';
|
|
4
5
|
import cs from 'classnames';
|
|
5
6
|
import _, { uniqBy, groupBy, sortBy, toPairs } from 'lodash';
|
|
6
7
|
import { SVGUniqueID } from 'react-svg-unique-id';
|
|
@@ -13,12 +14,18 @@ import moment from 'moment';
|
|
|
13
14
|
import { findDOMNode } from 'react-dom';
|
|
14
15
|
import { isElement } from 'react-is';
|
|
15
16
|
import { CloseCircleFilled, CheckOutlined, SearchOutlined, PlusOutlined, EyeOutlined, EyeInvisibleOutlined } from '@ant-design/icons';
|
|
17
|
+
import AntdFormItem from 'antd/lib/form/FormItem';
|
|
18
|
+
import CheckCircleFilled from '@ant-design/icons/CheckCircleFilled';
|
|
19
|
+
import CloseCircleFilled$1 from '@ant-design/icons/CloseCircleFilled';
|
|
20
|
+
import ExclamationCircleFilled from '@ant-design/icons/ExclamationCircleFilled';
|
|
21
|
+
import InfoCircleFilled from '@ant-design/icons/InfoCircleFilled';
|
|
22
|
+
import LoadingOutlined from '@ant-design/icons/LoadingOutlined';
|
|
23
|
+
import RCNotification from '@cloudtower/rc-notification';
|
|
16
24
|
import { combineReducers, createStore } from 'redux';
|
|
17
25
|
import { createDispatchHook, createSelectorHook, Provider } from 'react-redux';
|
|
18
26
|
import { XmarkRemove16SecondaryIcon, XmarkRemove16RegularRedIcon, HandlePoint816SecondaryIcon, HandlePoint816BlueIcon, CheckmarkDoneSuccessCorrect16BlueIcon } from '@cloudtower/icons-react';
|
|
19
27
|
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
|
|
20
28
|
import TimeZones from 'timezones.json';
|
|
21
|
-
import AntdFormItem from 'antd/lib/form/FormItem';
|
|
22
29
|
import dayjs from 'dayjs';
|
|
23
30
|
import 'recharts';
|
|
24
31
|
import enUS from 'antd/lib/locale/en_US';
|
|
@@ -241,35 +248,35 @@ function getAlertIcon(type) {
|
|
|
241
248
|
}
|
|
242
249
|
}
|
|
243
250
|
|
|
244
|
-
var __defProp$
|
|
245
|
-
var __getOwnPropSymbols$
|
|
246
|
-
var __hasOwnProp$
|
|
247
|
-
var __propIsEnum$
|
|
248
|
-
var __defNormalProp$
|
|
249
|
-
var __spreadValues$
|
|
251
|
+
var __defProp$G = Object.defineProperty;
|
|
252
|
+
var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
|
|
253
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
|
254
|
+
var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
|
|
255
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
256
|
+
var __spreadValues$G = (a, b) => {
|
|
250
257
|
for (var prop in b || (b = {}))
|
|
251
|
-
if (__hasOwnProp$
|
|
252
|
-
__defNormalProp$
|
|
253
|
-
if (__getOwnPropSymbols$
|
|
254
|
-
for (var prop of __getOwnPropSymbols$
|
|
255
|
-
if (__propIsEnum$
|
|
256
|
-
__defNormalProp$
|
|
258
|
+
if (__hasOwnProp$H.call(b, prop))
|
|
259
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
260
|
+
if (__getOwnPropSymbols$H)
|
|
261
|
+
for (var prop of __getOwnPropSymbols$H(b)) {
|
|
262
|
+
if (__propIsEnum$H.call(b, prop))
|
|
263
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
257
264
|
}
|
|
258
265
|
return a;
|
|
259
266
|
};
|
|
260
267
|
var __objRest$s = (source, exclude) => {
|
|
261
268
|
var target = {};
|
|
262
269
|
for (var prop in source)
|
|
263
|
-
if (__hasOwnProp$
|
|
270
|
+
if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
264
271
|
target[prop] = source[prop];
|
|
265
|
-
if (source != null && __getOwnPropSymbols$
|
|
266
|
-
for (var prop of __getOwnPropSymbols$
|
|
267
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
272
|
+
if (source != null && __getOwnPropSymbols$H)
|
|
273
|
+
for (var prop of __getOwnPropSymbols$H(source)) {
|
|
274
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
|
|
268
275
|
target[prop] = source[prop];
|
|
269
276
|
}
|
|
270
277
|
return target;
|
|
271
278
|
};
|
|
272
|
-
const BaseIcon =
|
|
279
|
+
const BaseIcon = React__default.forwardRef(
|
|
273
280
|
(props, ref) => {
|
|
274
281
|
const _a = props, {
|
|
275
282
|
alt,
|
|
@@ -294,51 +301,51 @@ const BaseIcon = React.forwardRef(
|
|
|
294
301
|
"suffixIconSrc",
|
|
295
302
|
"src"
|
|
296
303
|
]);
|
|
297
|
-
return /* @__PURE__ */
|
|
304
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
298
305
|
"span",
|
|
299
|
-
__spreadValues$
|
|
306
|
+
__spreadValues$G({
|
|
300
307
|
ref,
|
|
301
308
|
className,
|
|
302
|
-
style: _.pickBy(__spreadValues$
|
|
309
|
+
style: _.pickBy(__spreadValues$G({ cursor }, style))
|
|
303
310
|
}, HTMLSpanElementProps),
|
|
304
311
|
prefixNode,
|
|
305
|
-
/* @__PURE__ */
|
|
306
|
-
children && /* @__PURE__ */
|
|
307
|
-
SuffixSrc && /* @__PURE__ */
|
|
312
|
+
/* @__PURE__ */ React__default.createElement("span", { className: "icon-inner" }, typeof Src === "string" ? /* @__PURE__ */ React__default.createElement("img", { alt, src: Src, width, height }) : /* @__PURE__ */ React__default.createElement(SVGUniqueID, null, Src({ width, height }))),
|
|
313
|
+
children && /* @__PURE__ */ React__default.createElement("span", { className: "icon-children" }, children),
|
|
314
|
+
SuffixSrc && /* @__PURE__ */ React__default.createElement("span", { className: "icon-inner suffix" }, typeof SuffixSrc === "string" ? /* @__PURE__ */ React__default.createElement("img", { alt, src: SuffixSrc, width, height }) : /* @__PURE__ */ React__default.createElement(SVGUniqueID, null, SuffixSrc({ width, height })))
|
|
308
315
|
);
|
|
309
316
|
}
|
|
310
317
|
);
|
|
311
318
|
|
|
312
|
-
var __defProp$
|
|
313
|
-
var __defProps$
|
|
314
|
-
var __getOwnPropDescs$
|
|
315
|
-
var __getOwnPropSymbols$
|
|
316
|
-
var __hasOwnProp$
|
|
317
|
-
var __propIsEnum$
|
|
318
|
-
var __defNormalProp$
|
|
319
|
+
var __defProp$F = Object.defineProperty;
|
|
320
|
+
var __defProps$x = Object.defineProperties;
|
|
321
|
+
var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
|
|
322
|
+
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
|
323
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
|
324
|
+
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
|
325
|
+
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, {
|
|
319
326
|
enumerable: true,
|
|
320
327
|
configurable: true,
|
|
321
328
|
writable: true,
|
|
322
329
|
value
|
|
323
330
|
}) : obj[key] = value;
|
|
324
|
-
var __spreadValues$
|
|
325
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
326
|
-
if (__getOwnPropSymbols$
|
|
327
|
-
if (__propIsEnum$
|
|
331
|
+
var __spreadValues$F = (a, b) => {
|
|
332
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$G.call(b, prop)) __defNormalProp$F(a, prop, b[prop]);
|
|
333
|
+
if (__getOwnPropSymbols$G) for (var prop of __getOwnPropSymbols$G(b)) {
|
|
334
|
+
if (__propIsEnum$G.call(b, prop)) __defNormalProp$F(a, prop, b[prop]);
|
|
328
335
|
}
|
|
329
336
|
return a;
|
|
330
337
|
};
|
|
331
|
-
var __spreadProps$
|
|
338
|
+
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
|
332
339
|
var __objRest$r = (source, exclude) => {
|
|
333
340
|
var target = {};
|
|
334
|
-
for (var prop in source) if (__hasOwnProp$
|
|
335
|
-
if (source != null && __getOwnPropSymbols$
|
|
336
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
341
|
+
for (var prop in source) if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
342
|
+
if (source != null && __getOwnPropSymbols$G) for (var prop of __getOwnPropSymbols$G(source)) {
|
|
343
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop)) target[prop] = source[prop];
|
|
337
344
|
}
|
|
338
345
|
return target;
|
|
339
346
|
};
|
|
340
347
|
const IconWrapper = "i1mrf09m";
|
|
341
|
-
const Icon =
|
|
348
|
+
const Icon = React__default.forwardRef((props, ref) => {
|
|
342
349
|
const _a = props,
|
|
343
350
|
{
|
|
344
351
|
src,
|
|
@@ -385,14 +392,14 @@ const Icon = React.forwardRef((props, ref) => {
|
|
|
385
392
|
}
|
|
386
393
|
return src2;
|
|
387
394
|
}, [active, hover, suffix]);
|
|
388
|
-
return /* @__PURE__ */
|
|
395
|
+
return /* @__PURE__ */React__default.createElement(BaseIcon, __spreadProps$x(__spreadValues$F({
|
|
389
396
|
src: _src,
|
|
390
397
|
className: cs(IconWrapper, "icon-wrapper", className, isRotate && "is-rotate"),
|
|
391
398
|
suffixIconSrc,
|
|
392
399
|
height: iconHeight,
|
|
393
400
|
width: iconWidth,
|
|
394
401
|
prefixNode: prefix,
|
|
395
|
-
style: _.pickBy(__spreadValues$
|
|
402
|
+
style: _.pickBy(__spreadValues$F({
|
|
396
403
|
cursor
|
|
397
404
|
}, style))
|
|
398
405
|
}, restProps), {
|
|
@@ -417,33 +424,33 @@ const Icon = React.forwardRef((props, ref) => {
|
|
|
417
424
|
}));
|
|
418
425
|
});
|
|
419
426
|
|
|
420
|
-
var __defProp$
|
|
421
|
-
var __defProps$
|
|
422
|
-
var __getOwnPropDescs$
|
|
423
|
-
var __getOwnPropSymbols$
|
|
424
|
-
var __hasOwnProp$
|
|
425
|
-
var __propIsEnum$
|
|
426
|
-
var __defNormalProp$
|
|
427
|
-
var __spreadValues$
|
|
427
|
+
var __defProp$E = Object.defineProperty;
|
|
428
|
+
var __defProps$w = Object.defineProperties;
|
|
429
|
+
var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
|
|
430
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
|
431
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
|
432
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
|
433
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
434
|
+
var __spreadValues$E = (a, b) => {
|
|
428
435
|
for (var prop in b || (b = {}))
|
|
429
|
-
if (__hasOwnProp$
|
|
430
|
-
__defNormalProp$
|
|
431
|
-
if (__getOwnPropSymbols$
|
|
432
|
-
for (var prop of __getOwnPropSymbols$
|
|
433
|
-
if (__propIsEnum$
|
|
434
|
-
__defNormalProp$
|
|
436
|
+
if (__hasOwnProp$F.call(b, prop))
|
|
437
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
438
|
+
if (__getOwnPropSymbols$F)
|
|
439
|
+
for (var prop of __getOwnPropSymbols$F(b)) {
|
|
440
|
+
if (__propIsEnum$F.call(b, prop))
|
|
441
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
435
442
|
}
|
|
436
443
|
return a;
|
|
437
444
|
};
|
|
438
|
-
var __spreadProps$
|
|
445
|
+
var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
|
|
439
446
|
var __objRest$q = (source, exclude) => {
|
|
440
447
|
var target = {};
|
|
441
448
|
for (var prop in source)
|
|
442
|
-
if (__hasOwnProp$
|
|
449
|
+
if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
443
450
|
target[prop] = source[prop];
|
|
444
|
-
if (source != null && __getOwnPropSymbols$
|
|
445
|
-
for (var prop of __getOwnPropSymbols$
|
|
446
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
451
|
+
if (source != null && __getOwnPropSymbols$F)
|
|
452
|
+
for (var prop of __getOwnPropSymbols$F(source)) {
|
|
453
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
|
|
447
454
|
target[prop] = source[prop];
|
|
448
455
|
}
|
|
449
456
|
return target;
|
|
@@ -464,11 +471,11 @@ const Alert = (_a) => {
|
|
|
464
471
|
"onClose",
|
|
465
472
|
"closeText"
|
|
466
473
|
]);
|
|
467
|
-
const _icon = /* @__PURE__ */
|
|
474
|
+
const _icon = /* @__PURE__ */ React__default.createElement(Icon, { alt: type, src: getAlertIcon(type) });
|
|
468
475
|
const _type = type === "normal" ? "info" : type;
|
|
469
|
-
return /* @__PURE__ */
|
|
476
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
470
477
|
Alert$1,
|
|
471
|
-
__spreadProps$
|
|
478
|
+
__spreadProps$w(__spreadValues$E({}, props), {
|
|
472
479
|
className: cs(type ? `alert-${type}` : "", className),
|
|
473
480
|
type: _type,
|
|
474
481
|
icon: icon || _icon,
|
|
@@ -493,45 +500,45 @@ const Arch = (props) => {
|
|
|
493
500
|
if (architecture) {
|
|
494
501
|
text = t(`components.Architecture_${architecture}`);
|
|
495
502
|
}
|
|
496
|
-
return /* @__PURE__ */
|
|
503
|
+
return /* @__PURE__ */ React__default.createElement("span", null, text);
|
|
497
504
|
};
|
|
498
505
|
|
|
499
|
-
var __defProp$
|
|
500
|
-
var __defProps$
|
|
501
|
-
var __getOwnPropDescs$
|
|
502
|
-
var __getOwnPropSymbols$
|
|
503
|
-
var __hasOwnProp$
|
|
504
|
-
var __propIsEnum$
|
|
505
|
-
var __defNormalProp$
|
|
506
|
-
var __spreadValues$
|
|
506
|
+
var __defProp$D = Object.defineProperty;
|
|
507
|
+
var __defProps$v = Object.defineProperties;
|
|
508
|
+
var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
|
|
509
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
|
510
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
|
511
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
|
512
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
513
|
+
var __spreadValues$D = (a, b) => {
|
|
507
514
|
for (var prop in b || (b = {}))
|
|
508
|
-
if (__hasOwnProp$
|
|
509
|
-
__defNormalProp$
|
|
510
|
-
if (__getOwnPropSymbols$
|
|
511
|
-
for (var prop of __getOwnPropSymbols$
|
|
512
|
-
if (__propIsEnum$
|
|
513
|
-
__defNormalProp$
|
|
515
|
+
if (__hasOwnProp$E.call(b, prop))
|
|
516
|
+
__defNormalProp$D(a, prop, b[prop]);
|
|
517
|
+
if (__getOwnPropSymbols$E)
|
|
518
|
+
for (var prop of __getOwnPropSymbols$E(b)) {
|
|
519
|
+
if (__propIsEnum$E.call(b, prop))
|
|
520
|
+
__defNormalProp$D(a, prop, b[prop]);
|
|
514
521
|
}
|
|
515
522
|
return a;
|
|
516
523
|
};
|
|
517
|
-
var __spreadProps$
|
|
524
|
+
var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
|
|
518
525
|
var __objRest$p = (source, exclude) => {
|
|
519
526
|
var target = {};
|
|
520
527
|
for (var prop in source)
|
|
521
|
-
if (__hasOwnProp$
|
|
528
|
+
if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
522
529
|
target[prop] = source[prop];
|
|
523
|
-
if (source != null && __getOwnPropSymbols$
|
|
524
|
-
for (var prop of __getOwnPropSymbols$
|
|
525
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
530
|
+
if (source != null && __getOwnPropSymbols$E)
|
|
531
|
+
for (var prop of __getOwnPropSymbols$E(source)) {
|
|
532
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
|
|
526
533
|
target[prop] = source[prop];
|
|
527
534
|
}
|
|
528
535
|
return target;
|
|
529
536
|
};
|
|
530
537
|
const Badge = (_a) => {
|
|
531
538
|
var _b = _a, { type = "error", className } = _b, props = __objRest$p(_b, ["type", "className"]);
|
|
532
|
-
return /* @__PURE__ */
|
|
539
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
533
540
|
Badge$1,
|
|
534
|
-
__spreadProps$
|
|
541
|
+
__spreadProps$v(__spreadValues$D({
|
|
535
542
|
className: cx(`badge-${type}`, className)
|
|
536
543
|
}, props), {
|
|
537
544
|
showZero: false
|
|
@@ -546,14 +553,14 @@ function isEmpty(rawValue) {
|
|
|
546
553
|
return false;
|
|
547
554
|
}
|
|
548
555
|
|
|
549
|
-
const Empty = /* @__PURE__ */
|
|
556
|
+
const Empty = /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, "-");
|
|
550
557
|
|
|
551
558
|
const Bit = ({ rawValue, decimals, unitClassName, valueClassName }) => {
|
|
552
559
|
if (isEmpty(rawValue)) {
|
|
553
560
|
return Empty;
|
|
554
561
|
}
|
|
555
562
|
const { value, unit } = formatBits(rawValue, decimals);
|
|
556
|
-
return /* @__PURE__ */
|
|
563
|
+
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
557
564
|
};
|
|
558
565
|
|
|
559
566
|
const BitPerSeconds = ({
|
|
@@ -566,7 +573,7 @@ const BitPerSeconds = ({
|
|
|
566
573
|
return Empty;
|
|
567
574
|
}
|
|
568
575
|
const { value, unit } = formatBitPerSecond(rawValue, decimals);
|
|
569
|
-
return /* @__PURE__ */
|
|
576
|
+
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
570
577
|
};
|
|
571
578
|
|
|
572
579
|
const Bps = ({ rawValue, decimals, valueClassName, unitClassName }) => {
|
|
@@ -574,7 +581,7 @@ const Bps = ({ rawValue, decimals, valueClassName, unitClassName }) => {
|
|
|
574
581
|
return Empty;
|
|
575
582
|
}
|
|
576
583
|
const { value, unit } = formatBps(rawValue, decimals);
|
|
577
|
-
return /* @__PURE__ */
|
|
584
|
+
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
578
585
|
};
|
|
579
586
|
|
|
580
587
|
const d1_bold_title = "d6j0lbj";
|
|
@@ -707,33 +714,33 @@ const Typo = {
|
|
|
707
714
|
const HoverableElement = (props) => {
|
|
708
715
|
const { className, hover = false, icon, hoverEle } = props;
|
|
709
716
|
if (hover) {
|
|
710
|
-
return hoverEle != null ?
|
|
717
|
+
return hoverEle != null ? React__default.cloneElement(hoverEle, { className }) : null;
|
|
711
718
|
}
|
|
712
|
-
return icon != null ?
|
|
719
|
+
return icon != null ? React__default.cloneElement(icon, { className }) : null;
|
|
713
720
|
};
|
|
714
721
|
|
|
715
|
-
var __defProp$
|
|
716
|
-
var __getOwnPropSymbols$
|
|
717
|
-
var __hasOwnProp$
|
|
718
|
-
var __propIsEnum$
|
|
719
|
-
var __defNormalProp$
|
|
722
|
+
var __defProp$C = Object.defineProperty;
|
|
723
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
|
724
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
|
725
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
|
726
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, {
|
|
720
727
|
enumerable: true,
|
|
721
728
|
configurable: true,
|
|
722
729
|
writable: true,
|
|
723
730
|
value
|
|
724
731
|
}) : obj[key] = value;
|
|
725
|
-
var __spreadValues$
|
|
726
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
727
|
-
if (__getOwnPropSymbols$
|
|
728
|
-
if (__propIsEnum$
|
|
732
|
+
var __spreadValues$C = (a, b) => {
|
|
733
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$D.call(b, prop)) __defNormalProp$C(a, prop, b[prop]);
|
|
734
|
+
if (__getOwnPropSymbols$D) for (var prop of __getOwnPropSymbols$D(b)) {
|
|
735
|
+
if (__propIsEnum$D.call(b, prop)) __defNormalProp$C(a, prop, b[prop]);
|
|
729
736
|
}
|
|
730
737
|
return a;
|
|
731
738
|
};
|
|
732
739
|
var __objRest$o = (source, exclude) => {
|
|
733
740
|
var target = {};
|
|
734
|
-
for (var prop in source) if (__hasOwnProp$
|
|
735
|
-
if (source != null && __getOwnPropSymbols$
|
|
736
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
741
|
+
for (var prop in source) if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
742
|
+
if (source != null && __getOwnPropSymbols$D) for (var prop of __getOwnPropSymbols$D(source)) {
|
|
743
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop)) target[prop] = source[prop];
|
|
737
744
|
}
|
|
738
745
|
return target;
|
|
739
746
|
};
|
|
@@ -742,7 +749,7 @@ const NoPadding = "nchllas";
|
|
|
742
749
|
const isAntdButtonTypes = type => {
|
|
743
750
|
return Boolean(type && ["default", "primary", "ghost", "dashed", "link", "text"].includes(type));
|
|
744
751
|
};
|
|
745
|
-
const Button =
|
|
752
|
+
const Button = React__default.forwardRef((props, ref) => {
|
|
746
753
|
const _a = props,
|
|
747
754
|
{
|
|
748
755
|
type,
|
|
@@ -760,7 +767,7 @@ const Button = React.forwardRef((props, ref) => {
|
|
|
760
767
|
const [status, setStatus] = useState("normal");
|
|
761
768
|
const hasIcon = prefixIcon || suffixIcon;
|
|
762
769
|
const hasHoverIcon = hoverPrefixIcon || hoverSuffixIcon;
|
|
763
|
-
return /* @__PURE__ */
|
|
770
|
+
return /* @__PURE__ */React__default.createElement(Button$1, __spreadValues$C({
|
|
764
771
|
ref,
|
|
765
772
|
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"),
|
|
766
773
|
type: isAntdButtonTypes(type) ? type : void 0,
|
|
@@ -777,12 +784,12 @@ const Button = React.forwardRef((props, ref) => {
|
|
|
777
784
|
}
|
|
778
785
|
},
|
|
779
786
|
size
|
|
780
|
-
}, restProps), prefixIcon && /* @__PURE__ */
|
|
787
|
+
}, restProps), prefixIcon && /* @__PURE__ */React__default.createElement(HoverableElement, {
|
|
781
788
|
icon: prefixIcon,
|
|
782
789
|
hoverEle: hoverPrefixIcon,
|
|
783
790
|
hover: status === "hover",
|
|
784
791
|
className: "button-prefix-icon"
|
|
785
|
-
}), children, suffixIcon && /* @__PURE__ */
|
|
792
|
+
}), children, suffixIcon && /* @__PURE__ */React__default.createElement(HoverableElement, {
|
|
786
793
|
icon: suffixIcon,
|
|
787
794
|
hoverEle: hoverSuffixIcon,
|
|
788
795
|
hover: status === "hover",
|
|
@@ -790,33 +797,33 @@ const Button = React.forwardRef((props, ref) => {
|
|
|
790
797
|
}));
|
|
791
798
|
});
|
|
792
799
|
|
|
793
|
-
var __defProp$
|
|
794
|
-
var __defProps$
|
|
795
|
-
var __getOwnPropDescs$
|
|
796
|
-
var __getOwnPropSymbols$
|
|
797
|
-
var __hasOwnProp$
|
|
798
|
-
var __propIsEnum$
|
|
799
|
-
var __defNormalProp$
|
|
800
|
-
var __spreadValues$
|
|
800
|
+
var __defProp$B = Object.defineProperty;
|
|
801
|
+
var __defProps$u = Object.defineProperties;
|
|
802
|
+
var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
|
|
803
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
|
804
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
|
805
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
|
806
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
807
|
+
var __spreadValues$B = (a, b) => {
|
|
801
808
|
for (var prop in b || (b = {}))
|
|
802
|
-
if (__hasOwnProp$
|
|
803
|
-
__defNormalProp$
|
|
804
|
-
if (__getOwnPropSymbols$
|
|
805
|
-
for (var prop of __getOwnPropSymbols$
|
|
806
|
-
if (__propIsEnum$
|
|
807
|
-
__defNormalProp$
|
|
809
|
+
if (__hasOwnProp$C.call(b, prop))
|
|
810
|
+
__defNormalProp$B(a, prop, b[prop]);
|
|
811
|
+
if (__getOwnPropSymbols$C)
|
|
812
|
+
for (var prop of __getOwnPropSymbols$C(b)) {
|
|
813
|
+
if (__propIsEnum$C.call(b, prop))
|
|
814
|
+
__defNormalProp$B(a, prop, b[prop]);
|
|
808
815
|
}
|
|
809
816
|
return a;
|
|
810
817
|
};
|
|
811
|
-
var __spreadProps$
|
|
818
|
+
var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
|
|
812
819
|
var __objRest$n = (source, exclude) => {
|
|
813
820
|
var target = {};
|
|
814
821
|
for (var prop in source)
|
|
815
|
-
if (__hasOwnProp$
|
|
822
|
+
if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
816
823
|
target[prop] = source[prop];
|
|
817
|
-
if (source != null && __getOwnPropSymbols$
|
|
818
|
-
for (var prop of __getOwnPropSymbols$
|
|
819
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
824
|
+
if (source != null && __getOwnPropSymbols$C)
|
|
825
|
+
for (var prop of __getOwnPropSymbols$C(source)) {
|
|
826
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
|
|
820
827
|
target[prop] = source[prop];
|
|
821
828
|
}
|
|
822
829
|
return target;
|
|
@@ -839,8 +846,8 @@ const Tooltip = (props) => {
|
|
|
839
846
|
const uniqueContainerClass = `kit-tooltip-${id.current}`;
|
|
840
847
|
const _children = useMemo(() => {
|
|
841
848
|
if (followMouse) {
|
|
842
|
-
const child =
|
|
843
|
-
return
|
|
849
|
+
const child = React__default.isValidElement(children) ? children : /* @__PURE__ */ React__default.createElement("span", null, children);
|
|
850
|
+
return React__default.cloneElement(child, {
|
|
844
851
|
className: cs(child.props.className, uniqueContainerClass)
|
|
845
852
|
});
|
|
846
853
|
} else {
|
|
@@ -868,12 +875,12 @@ const Tooltip = (props) => {
|
|
|
868
875
|
};
|
|
869
876
|
}
|
|
870
877
|
}, [followMouse, onmousemove, uniqueContainerClass]);
|
|
871
|
-
return /* @__PURE__ */
|
|
878
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
872
879
|
Tooltip$1,
|
|
873
|
-
__spreadProps$
|
|
880
|
+
__spreadProps$u(__spreadValues$B({}, restProps), {
|
|
874
881
|
overlayClassName: followMouse ? cs(overlayClassName, uniquePopupClass) : overlayClassName,
|
|
875
882
|
children: _children,
|
|
876
|
-
overlayStyle: followMouse ? __spreadValues$
|
|
883
|
+
overlayStyle: followMouse ? __spreadValues$B({
|
|
877
884
|
transform: "translate(-50%, -100%)",
|
|
878
885
|
pointerEvents: "none"
|
|
879
886
|
}, overlayStyle) : overlayStyle
|
|
@@ -881,28 +888,28 @@ const Tooltip = (props) => {
|
|
|
881
888
|
);
|
|
882
889
|
};
|
|
883
890
|
|
|
884
|
-
var __defProp$
|
|
885
|
-
var __getOwnPropSymbols$
|
|
886
|
-
var __hasOwnProp$
|
|
887
|
-
var __propIsEnum$
|
|
888
|
-
var __defNormalProp$
|
|
891
|
+
var __defProp$A = Object.defineProperty;
|
|
892
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
|
893
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
|
894
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
|
895
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, {
|
|
889
896
|
enumerable: true,
|
|
890
897
|
configurable: true,
|
|
891
898
|
writable: true,
|
|
892
899
|
value
|
|
893
900
|
}) : obj[key] = value;
|
|
894
|
-
var __spreadValues$
|
|
895
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
896
|
-
if (__getOwnPropSymbols$
|
|
897
|
-
if (__propIsEnum$
|
|
901
|
+
var __spreadValues$A = (a, b) => {
|
|
902
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$B.call(b, prop)) __defNormalProp$A(a, prop, b[prop]);
|
|
903
|
+
if (__getOwnPropSymbols$B) for (var prop of __getOwnPropSymbols$B(b)) {
|
|
904
|
+
if (__propIsEnum$B.call(b, prop)) __defNormalProp$A(a, prop, b[prop]);
|
|
898
905
|
}
|
|
899
906
|
return a;
|
|
900
907
|
};
|
|
901
908
|
var __objRest$m = (source, exclude) => {
|
|
902
909
|
var target = {};
|
|
903
|
-
for (var prop in source) if (__hasOwnProp$
|
|
904
|
-
if (source != null && __getOwnPropSymbols$
|
|
905
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
910
|
+
for (var prop in source) if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
911
|
+
if (source != null && __getOwnPropSymbols$B) for (var prop of __getOwnPropSymbols$B(source)) {
|
|
912
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop)) target[prop] = source[prop];
|
|
906
913
|
}
|
|
907
914
|
return target;
|
|
908
915
|
};
|
|
@@ -912,7 +919,7 @@ const ButtonGroupContainer = /*#__PURE__*/styled('div')({
|
|
|
912
919
|
class: "b15sn34c",
|
|
913
920
|
propsAsIs: false
|
|
914
921
|
});
|
|
915
|
-
const ButtonGroup =
|
|
922
|
+
const ButtonGroup = React__default.forwardRef((props, ref) => {
|
|
916
923
|
const {
|
|
917
924
|
className,
|
|
918
925
|
options,
|
|
@@ -921,7 +928,7 @@ const ButtonGroup = React.forwardRef((props, ref) => {
|
|
|
921
928
|
if (!options.length) {
|
|
922
929
|
return null;
|
|
923
930
|
}
|
|
924
|
-
return /* @__PURE__ */
|
|
931
|
+
return /* @__PURE__ */React__default.createElement(ButtonGroupContainer, {
|
|
925
932
|
className,
|
|
926
933
|
ref
|
|
927
934
|
}, options.map((button, index) => {
|
|
@@ -939,14 +946,14 @@ const ButtonGroup = React.forwardRef((props, ref) => {
|
|
|
939
946
|
} = _a,
|
|
940
947
|
buttonPropArgs = __objRest$m(_a, ["key", "icon", "type", "children", "danger", "ghost", "className", "hideTitle", "title"]);
|
|
941
948
|
if (hideTitle) {
|
|
942
|
-
return /* @__PURE__ */
|
|
949
|
+
return /* @__PURE__ */React__default.createElement(Tooltip, {
|
|
943
950
|
key: key || index,
|
|
944
951
|
overlay: title || children
|
|
945
|
-
}, buttonPropArgs.disabled ? /* @__PURE__ */
|
|
952
|
+
}, buttonPropArgs.disabled ? /* @__PURE__ */React__default.createElement("span", {
|
|
946
953
|
style: {
|
|
947
954
|
cursor: "not-allowed"
|
|
948
955
|
}
|
|
949
|
-
}, /* @__PURE__ */
|
|
956
|
+
}, /* @__PURE__ */React__default.createElement(Button, __spreadValues$A({
|
|
950
957
|
style: {
|
|
951
958
|
pointerEvents: "none"
|
|
952
959
|
},
|
|
@@ -956,7 +963,7 @@ const ButtonGroup = React.forwardRef((props, ref) => {
|
|
|
956
963
|
ghost,
|
|
957
964
|
className: cx(ButtonStyle, className2),
|
|
958
965
|
prefixIcon: icon
|
|
959
|
-
}, buttonPropArgs))) : /* @__PURE__ */
|
|
966
|
+
}, buttonPropArgs))) : /* @__PURE__ */React__default.createElement(Button, __spreadValues$A({
|
|
960
967
|
type,
|
|
961
968
|
size,
|
|
962
969
|
danger,
|
|
@@ -965,7 +972,7 @@ const ButtonGroup = React.forwardRef((props, ref) => {
|
|
|
965
972
|
prefixIcon: icon
|
|
966
973
|
}, buttonPropArgs)));
|
|
967
974
|
}
|
|
968
|
-
return /* @__PURE__ */
|
|
975
|
+
return /* @__PURE__ */React__default.createElement(Button, __spreadValues$A({
|
|
969
976
|
key: key || index,
|
|
970
977
|
type,
|
|
971
978
|
size,
|
|
@@ -973,7 +980,7 @@ const ButtonGroup = React.forwardRef((props, ref) => {
|
|
|
973
980
|
ghost,
|
|
974
981
|
className: cx(ButtonStyle, className2),
|
|
975
982
|
prefixIcon: icon
|
|
976
|
-
}, buttonPropArgs), (title || children) && /* @__PURE__ */
|
|
983
|
+
}, buttonPropArgs), (title || children) && /* @__PURE__ */React__default.createElement("span", {
|
|
977
984
|
className: "button-group-item"
|
|
978
985
|
}, title || children));
|
|
979
986
|
}));
|
|
@@ -991,40 +998,40 @@ const Byte = ({
|
|
|
991
998
|
return Empty;
|
|
992
999
|
}
|
|
993
1000
|
if (rawValue === -1) {
|
|
994
|
-
return /* @__PURE__ */
|
|
1001
|
+
return /* @__PURE__ */ React__default.createElement("span", null, t("common.calculation"));
|
|
995
1002
|
}
|
|
996
1003
|
const { value, unit } = formatBytes(rawValue, decimals);
|
|
997
1004
|
if (noUnitOnZero && value === 0) {
|
|
998
|
-
return /* @__PURE__ */
|
|
1005
|
+
return /* @__PURE__ */ React__default.createElement("span", { className: "value" }, value);
|
|
999
1006
|
}
|
|
1000
|
-
return /* @__PURE__ */
|
|
1007
|
+
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
1001
1008
|
};
|
|
1002
1009
|
|
|
1003
|
-
var __defProp$
|
|
1004
|
-
var __defProps$
|
|
1005
|
-
var __getOwnPropDescs$
|
|
1006
|
-
var __getOwnPropSymbols$
|
|
1007
|
-
var __hasOwnProp$
|
|
1008
|
-
var __propIsEnum$
|
|
1009
|
-
var __defNormalProp$
|
|
1010
|
+
var __defProp$z = Object.defineProperty;
|
|
1011
|
+
var __defProps$t = Object.defineProperties;
|
|
1012
|
+
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
|
1013
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
|
1014
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
|
1015
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
|
1016
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, {
|
|
1010
1017
|
enumerable: true,
|
|
1011
1018
|
configurable: true,
|
|
1012
1019
|
writable: true,
|
|
1013
1020
|
value
|
|
1014
1021
|
}) : obj[key] = value;
|
|
1015
|
-
var __spreadValues$
|
|
1016
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1017
|
-
if (__getOwnPropSymbols$
|
|
1018
|
-
if (__propIsEnum$
|
|
1022
|
+
var __spreadValues$z = (a, b) => {
|
|
1023
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$A.call(b, prop)) __defNormalProp$z(a, prop, b[prop]);
|
|
1024
|
+
if (__getOwnPropSymbols$A) for (var prop of __getOwnPropSymbols$A(b)) {
|
|
1025
|
+
if (__propIsEnum$A.call(b, prop)) __defNormalProp$z(a, prop, b[prop]);
|
|
1019
1026
|
}
|
|
1020
1027
|
return a;
|
|
1021
1028
|
};
|
|
1022
|
-
var __spreadProps$
|
|
1029
|
+
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
|
1023
1030
|
var __objRest$l = (source, exclude) => {
|
|
1024
1031
|
var target = {};
|
|
1025
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1026
|
-
if (source != null && __getOwnPropSymbols$
|
|
1027
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1032
|
+
for (var prop in source) if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1033
|
+
if (source != null && __getOwnPropSymbols$A) for (var prop of __getOwnPropSymbols$A(source)) {
|
|
1034
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop)) target[prop] = source[prop];
|
|
1028
1035
|
}
|
|
1029
1036
|
return target;
|
|
1030
1037
|
};
|
|
@@ -1038,49 +1045,49 @@ const Checkbox = _a => {
|
|
|
1038
1045
|
compact
|
|
1039
1046
|
} = _b,
|
|
1040
1047
|
props = __objRest$l(_b, ["className", "children", "description", "compact"]);
|
|
1041
|
-
return /* @__PURE__ */
|
|
1048
|
+
return /* @__PURE__ */React__default.createElement(Checkbox$1, __spreadProps$t(__spreadValues$z({}, props), {
|
|
1042
1049
|
"data-test": props["data-test"] || props.value,
|
|
1043
1050
|
className: cs(className, CheckboxStyle, compact && "compact")
|
|
1044
|
-
}), children ? /* @__PURE__ */
|
|
1051
|
+
}), children ? /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement("div", {
|
|
1045
1052
|
className: cs("main", Typo.Label.l2_regular)
|
|
1046
|
-
}, children), description ? /* @__PURE__ */
|
|
1053
|
+
}, children), description ? /* @__PURE__ */React__default.createElement("div", {
|
|
1047
1054
|
className: cs("sub", Typo.Label.l4_regular)
|
|
1048
1055
|
}, description) : null) : null);
|
|
1049
1056
|
};
|
|
1050
1057
|
|
|
1051
|
-
var __defProp$
|
|
1052
|
-
var __getOwnPropSymbols$
|
|
1053
|
-
var __hasOwnProp$
|
|
1054
|
-
var __propIsEnum$
|
|
1055
|
-
var __defNormalProp$
|
|
1056
|
-
var __spreadValues$
|
|
1058
|
+
var __defProp$y = Object.defineProperty;
|
|
1059
|
+
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
|
1060
|
+
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
|
1061
|
+
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
|
1062
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1063
|
+
var __spreadValues$y = (a, b) => {
|
|
1057
1064
|
for (var prop in b || (b = {}))
|
|
1058
|
-
if (__hasOwnProp$
|
|
1059
|
-
__defNormalProp$
|
|
1060
|
-
if (__getOwnPropSymbols$
|
|
1061
|
-
for (var prop of __getOwnPropSymbols$
|
|
1062
|
-
if (__propIsEnum$
|
|
1063
|
-
__defNormalProp$
|
|
1065
|
+
if (__hasOwnProp$z.call(b, prop))
|
|
1066
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
1067
|
+
if (__getOwnPropSymbols$z)
|
|
1068
|
+
for (var prop of __getOwnPropSymbols$z(b)) {
|
|
1069
|
+
if (__propIsEnum$z.call(b, prop))
|
|
1070
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
1064
1071
|
}
|
|
1065
1072
|
return a;
|
|
1066
1073
|
};
|
|
1067
1074
|
var __objRest$k = (source, exclude) => {
|
|
1068
1075
|
var target = {};
|
|
1069
1076
|
for (var prop in source)
|
|
1070
|
-
if (__hasOwnProp$
|
|
1077
|
+
if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1071
1078
|
target[prop] = source[prop];
|
|
1072
|
-
if (source != null && __getOwnPropSymbols$
|
|
1073
|
-
for (var prop of __getOwnPropSymbols$
|
|
1074
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1079
|
+
if (source != null && __getOwnPropSymbols$z)
|
|
1080
|
+
for (var prop of __getOwnPropSymbols$z(source)) {
|
|
1081
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
|
|
1075
1082
|
target[prop] = source[prop];
|
|
1076
1083
|
}
|
|
1077
1084
|
return target;
|
|
1078
1085
|
};
|
|
1079
1086
|
const FieldsBoolean = (_a) => {
|
|
1080
1087
|
var _b = _a, { input, children } = _b, props = __objRest$k(_b, ["input", "children"]);
|
|
1081
|
-
return /* @__PURE__ */
|
|
1088
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
1082
1089
|
Checkbox,
|
|
1083
|
-
__spreadValues$
|
|
1090
|
+
__spreadValues$y({
|
|
1084
1091
|
checked: Boolean(input.value),
|
|
1085
1092
|
onChange: (e) => input.onChange(e.target.checked)
|
|
1086
1093
|
}, props),
|
|
@@ -1088,7 +1095,7 @@ const FieldsBoolean = (_a) => {
|
|
|
1088
1095
|
));
|
|
1089
1096
|
};
|
|
1090
1097
|
|
|
1091
|
-
const FieldsDateTime = ({ input }) => /* @__PURE__ */
|
|
1098
|
+
const FieldsDateTime = ({ input }) => /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
1092
1099
|
DatePicker,
|
|
1093
1100
|
{
|
|
1094
1101
|
onFocus: () => {
|
|
@@ -1105,17 +1112,17 @@ const FieldsDateTime = ({ input }) => /* @__PURE__ */ React.createElement(React.
|
|
|
1105
1112
|
}
|
|
1106
1113
|
));
|
|
1107
1114
|
|
|
1108
|
-
var __getOwnPropSymbols$
|
|
1109
|
-
var __hasOwnProp$
|
|
1110
|
-
var __propIsEnum$
|
|
1115
|
+
var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
|
|
1116
|
+
var __hasOwnProp$y = Object.prototype.hasOwnProperty;
|
|
1117
|
+
var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
|
|
1111
1118
|
var __objRest$j = (source, exclude) => {
|
|
1112
1119
|
var target = {};
|
|
1113
1120
|
for (var prop in source)
|
|
1114
|
-
if (__hasOwnProp$
|
|
1121
|
+
if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1115
1122
|
target[prop] = source[prop];
|
|
1116
|
-
if (source != null && __getOwnPropSymbols$
|
|
1117
|
-
for (var prop of __getOwnPropSymbols$
|
|
1118
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1123
|
+
if (source != null && __getOwnPropSymbols$y)
|
|
1124
|
+
for (var prop of __getOwnPropSymbols$y(source)) {
|
|
1125
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
|
|
1119
1126
|
target[prop] = source[prop];
|
|
1120
1127
|
}
|
|
1121
1128
|
return target;
|
|
@@ -1127,7 +1134,7 @@ const FieldsDateTimeRange = (_a) => {
|
|
|
1127
1134
|
"input"
|
|
1128
1135
|
]);
|
|
1129
1136
|
var _a2, _b2;
|
|
1130
|
-
return /* @__PURE__ */
|
|
1137
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: "datatime-range" }, /* @__PURE__ */ React__default.createElement(
|
|
1131
1138
|
DatePicker.RangePicker,
|
|
1132
1139
|
{
|
|
1133
1140
|
onFocus: () => {
|
|
@@ -1160,53 +1167,53 @@ const FullView = /*#__PURE__*/styled('div')({
|
|
|
1160
1167
|
const InputStyle = "ipd9bk";
|
|
1161
1168
|
const KitInputStyle = "kypn5o5";
|
|
1162
1169
|
|
|
1163
|
-
var __defProp$
|
|
1164
|
-
var __getOwnPropSymbols$
|
|
1165
|
-
var __hasOwnProp$
|
|
1166
|
-
var __propIsEnum$
|
|
1167
|
-
var __defNormalProp$
|
|
1168
|
-
var __spreadValues$
|
|
1170
|
+
var __defProp$x = Object.defineProperty;
|
|
1171
|
+
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
|
1172
|
+
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
|
1173
|
+
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
|
1174
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1175
|
+
var __spreadValues$x = (a, b) => {
|
|
1169
1176
|
for (var prop in b || (b = {}))
|
|
1170
|
-
if (__hasOwnProp$
|
|
1171
|
-
__defNormalProp$
|
|
1172
|
-
if (__getOwnPropSymbols$
|
|
1173
|
-
for (var prop of __getOwnPropSymbols$
|
|
1174
|
-
if (__propIsEnum$
|
|
1175
|
-
__defNormalProp$
|
|
1177
|
+
if (__hasOwnProp$x.call(b, prop))
|
|
1178
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
1179
|
+
if (__getOwnPropSymbols$x)
|
|
1180
|
+
for (var prop of __getOwnPropSymbols$x(b)) {
|
|
1181
|
+
if (__propIsEnum$x.call(b, prop))
|
|
1182
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
1176
1183
|
}
|
|
1177
1184
|
return a;
|
|
1178
1185
|
};
|
|
1179
1186
|
const Loading = ({ fullView = true }) => {
|
|
1180
1187
|
const Wrapper = fullView ? FullView : Fragment;
|
|
1181
1188
|
const props = fullView ? { className: "loading-full-view" } : {};
|
|
1182
|
-
return /* @__PURE__ */
|
|
1189
|
+
return /* @__PURE__ */ React__default.createElement(Wrapper, __spreadValues$x({}, props), /* @__PURE__ */ React__default.createElement("div", { className: "loading" }, /* @__PURE__ */ React__default.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React__default.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React__default.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React__default.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React__default.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React__default.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React__default.createElement("div", { className: "loading__sugar" })));
|
|
1183
1190
|
};
|
|
1184
1191
|
|
|
1185
|
-
var __defProp$
|
|
1186
|
-
var __defProps$
|
|
1187
|
-
var __getOwnPropDescs$
|
|
1188
|
-
var __getOwnPropSymbols$
|
|
1189
|
-
var __hasOwnProp$
|
|
1190
|
-
var __propIsEnum$
|
|
1191
|
-
var __defNormalProp$
|
|
1192
|
+
var __defProp$w = Object.defineProperty;
|
|
1193
|
+
var __defProps$s = Object.defineProperties;
|
|
1194
|
+
var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
|
|
1195
|
+
var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
|
|
1196
|
+
var __hasOwnProp$w = Object.prototype.hasOwnProperty;
|
|
1197
|
+
var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
|
|
1198
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, {
|
|
1192
1199
|
enumerable: true,
|
|
1193
1200
|
configurable: true,
|
|
1194
1201
|
writable: true,
|
|
1195
1202
|
value
|
|
1196
1203
|
}) : obj[key] = value;
|
|
1197
|
-
var __spreadValues$
|
|
1198
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1199
|
-
if (__getOwnPropSymbols$
|
|
1200
|
-
if (__propIsEnum$
|
|
1204
|
+
var __spreadValues$w = (a, b) => {
|
|
1205
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$w.call(b, prop)) __defNormalProp$w(a, prop, b[prop]);
|
|
1206
|
+
if (__getOwnPropSymbols$w) for (var prop of __getOwnPropSymbols$w(b)) {
|
|
1207
|
+
if (__propIsEnum$w.call(b, prop)) __defNormalProp$w(a, prop, b[prop]);
|
|
1201
1208
|
}
|
|
1202
1209
|
return a;
|
|
1203
1210
|
};
|
|
1204
|
-
var __spreadProps$
|
|
1211
|
+
var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
|
|
1205
1212
|
var __objRest$i = (source, exclude) => {
|
|
1206
1213
|
var target = {};
|
|
1207
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1208
|
-
if (source != null && __getOwnPropSymbols$
|
|
1209
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1214
|
+
for (var prop in source) if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1215
|
+
if (source != null && __getOwnPropSymbols$w) for (var prop of __getOwnPropSymbols$w(source)) {
|
|
1216
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$w.call(source, prop)) target[prop] = source[prop];
|
|
1210
1217
|
}
|
|
1211
1218
|
return target;
|
|
1212
1219
|
};
|
|
@@ -1260,7 +1267,7 @@ const Select = _a => {
|
|
|
1260
1267
|
inputDom && (placeholder || item) && inputDom.setAttribute("data-test", String(placeholder || item.textContent));
|
|
1261
1268
|
}
|
|
1262
1269
|
}, [selectRef, placeholder]);
|
|
1263
|
-
return /* @__PURE__ */
|
|
1270
|
+
return /* @__PURE__ */React__default.createElement(Select$1, __spreadValues$w(__spreadProps$s(__spreadValues$w({}, input), {
|
|
1264
1271
|
ref: selectRef,
|
|
1265
1272
|
size,
|
|
1266
1273
|
value: multiple ? input.value || [] : input.value || void 0,
|
|
@@ -1295,43 +1302,43 @@ const Select = _a => {
|
|
|
1295
1302
|
onScrollBottom == null ? void 0 : onScrollBottom();
|
|
1296
1303
|
}
|
|
1297
1304
|
},
|
|
1298
|
-
notFoundContent: loading ? /* @__PURE__ */
|
|
1299
|
-
dropdownRender: menu => /* @__PURE__ */
|
|
1305
|
+
notFoundContent: loading ? /* @__PURE__ */React__default.createElement(Loading, null) : notFoundContent,
|
|
1306
|
+
dropdownRender: menu => /* @__PURE__ */React__default.createElement(React__default.Fragment, null, error || menu),
|
|
1300
1307
|
loading,
|
|
1301
1308
|
placeholder
|
|
1302
|
-
}), restProps),
|
|
1303
|
-
return isElement(child) ? __spreadProps$
|
|
1304
|
-
props: __spreadProps$
|
|
1309
|
+
}), restProps), React__default.Children.map(children, child => {
|
|
1310
|
+
return isElement(child) ? __spreadProps$s(__spreadValues$w({}, child), {
|
|
1311
|
+
props: __spreadProps$s(__spreadValues$w({}, child.props), {
|
|
1305
1312
|
"data-test": child.props.value
|
|
1306
1313
|
})
|
|
1307
1314
|
}) : child;
|
|
1308
1315
|
}));
|
|
1309
1316
|
};
|
|
1310
1317
|
|
|
1311
|
-
var __defProp$
|
|
1312
|
-
var __getOwnPropSymbols$
|
|
1313
|
-
var __hasOwnProp$
|
|
1314
|
-
var __propIsEnum$
|
|
1315
|
-
var __defNormalProp$
|
|
1316
|
-
var __spreadValues$
|
|
1318
|
+
var __defProp$v = Object.defineProperty;
|
|
1319
|
+
var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
|
|
1320
|
+
var __hasOwnProp$v = Object.prototype.hasOwnProperty;
|
|
1321
|
+
var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
|
|
1322
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1323
|
+
var __spreadValues$v = (a, b) => {
|
|
1317
1324
|
for (var prop in b || (b = {}))
|
|
1318
|
-
if (__hasOwnProp$
|
|
1319
|
-
__defNormalProp$
|
|
1320
|
-
if (__getOwnPropSymbols$
|
|
1321
|
-
for (var prop of __getOwnPropSymbols$
|
|
1322
|
-
if (__propIsEnum$
|
|
1323
|
-
__defNormalProp$
|
|
1325
|
+
if (__hasOwnProp$v.call(b, prop))
|
|
1326
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
1327
|
+
if (__getOwnPropSymbols$v)
|
|
1328
|
+
for (var prop of __getOwnPropSymbols$v(b)) {
|
|
1329
|
+
if (__propIsEnum$v.call(b, prop))
|
|
1330
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
1324
1331
|
}
|
|
1325
1332
|
return a;
|
|
1326
1333
|
};
|
|
1327
1334
|
var __objRest$h = (source, exclude) => {
|
|
1328
1335
|
var target = {};
|
|
1329
1336
|
for (var prop in source)
|
|
1330
|
-
if (__hasOwnProp$
|
|
1337
|
+
if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1331
1338
|
target[prop] = source[prop];
|
|
1332
|
-
if (source != null && __getOwnPropSymbols$
|
|
1333
|
-
for (var prop of __getOwnPropSymbols$
|
|
1334
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1339
|
+
if (source != null && __getOwnPropSymbols$v)
|
|
1340
|
+
for (var prop of __getOwnPropSymbols$v(source)) {
|
|
1341
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$v.call(source, prop))
|
|
1335
1342
|
target[prop] = source[prop];
|
|
1336
1343
|
}
|
|
1337
1344
|
return target;
|
|
@@ -1346,9 +1353,9 @@ const FieldsEnum = (_a) => {
|
|
|
1346
1353
|
"enumValues",
|
|
1347
1354
|
"emptyLabel"
|
|
1348
1355
|
]);
|
|
1349
|
-
return /* @__PURE__ */
|
|
1356
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Select, __spreadValues$v({}, restProps), emptyLabel && /* @__PURE__ */ React__default.createElement(Select$1.Option, { value: "" }, emptyLabel), enumValues.map((v) => {
|
|
1350
1357
|
const item = typeof v === "string" ? { value: v, text: v } : v;
|
|
1351
|
-
return /* @__PURE__ */
|
|
1358
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
1352
1359
|
Select$1.Option,
|
|
1353
1360
|
{
|
|
1354
1361
|
key: item.value,
|
|
@@ -1360,31 +1367,31 @@ const FieldsEnum = (_a) => {
|
|
|
1360
1367
|
})));
|
|
1361
1368
|
};
|
|
1362
1369
|
|
|
1363
|
-
var __defProp$
|
|
1364
|
-
var __defProps$
|
|
1365
|
-
var __getOwnPropDescs$
|
|
1366
|
-
var __getOwnPropSymbols$
|
|
1367
|
-
var __hasOwnProp$
|
|
1368
|
-
var __propIsEnum$
|
|
1369
|
-
var __defNormalProp$
|
|
1370
|
+
var __defProp$u = Object.defineProperty;
|
|
1371
|
+
var __defProps$r = Object.defineProperties;
|
|
1372
|
+
var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
|
|
1373
|
+
var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
|
|
1374
|
+
var __hasOwnProp$u = Object.prototype.hasOwnProperty;
|
|
1375
|
+
var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
|
|
1376
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, {
|
|
1370
1377
|
enumerable: true,
|
|
1371
1378
|
configurable: true,
|
|
1372
1379
|
writable: true,
|
|
1373
1380
|
value
|
|
1374
1381
|
}) : obj[key] = value;
|
|
1375
|
-
var __spreadValues$
|
|
1376
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1377
|
-
if (__getOwnPropSymbols$
|
|
1378
|
-
if (__propIsEnum$
|
|
1382
|
+
var __spreadValues$u = (a, b) => {
|
|
1383
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$u.call(b, prop)) __defNormalProp$u(a, prop, b[prop]);
|
|
1384
|
+
if (__getOwnPropSymbols$u) for (var prop of __getOwnPropSymbols$u(b)) {
|
|
1385
|
+
if (__propIsEnum$u.call(b, prop)) __defNormalProp$u(a, prop, b[prop]);
|
|
1379
1386
|
}
|
|
1380
1387
|
return a;
|
|
1381
1388
|
};
|
|
1382
|
-
var __spreadProps$
|
|
1389
|
+
var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
|
|
1383
1390
|
var __objRest$g = (source, exclude) => {
|
|
1384
1391
|
var target = {};
|
|
1385
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1386
|
-
if (source != null && __getOwnPropSymbols$
|
|
1387
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1392
|
+
for (var prop in source) if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1393
|
+
if (source != null && __getOwnPropSymbols$u) for (var prop of __getOwnPropSymbols$u(source)) {
|
|
1394
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop)) target[prop] = source[prop];
|
|
1388
1395
|
}
|
|
1389
1396
|
return target;
|
|
1390
1397
|
};
|
|
@@ -1426,7 +1433,7 @@ const InputNumber = _a => {
|
|
|
1426
1433
|
middle: Typo.Label.l3_regular,
|
|
1427
1434
|
small: Typo.Label.l4_regular
|
|
1428
1435
|
}[size];
|
|
1429
|
-
return /* @__PURE__ */
|
|
1436
|
+
return /* @__PURE__ */React__default.createElement(AntdInputNumberStyled, __spreadProps$r(__spreadValues$u({}, props), {
|
|
1430
1437
|
size,
|
|
1431
1438
|
controls,
|
|
1432
1439
|
"data-test": props.name,
|
|
@@ -1436,33 +1443,33 @@ const InputNumber = _a => {
|
|
|
1436
1443
|
}));
|
|
1437
1444
|
};
|
|
1438
1445
|
|
|
1439
|
-
var __defProp$
|
|
1440
|
-
var __defProps$
|
|
1441
|
-
var __getOwnPropDescs$
|
|
1442
|
-
var __getOwnPropSymbols$
|
|
1443
|
-
var __hasOwnProp$
|
|
1444
|
-
var __propIsEnum$
|
|
1445
|
-
var __defNormalProp$
|
|
1446
|
-
var __spreadValues$
|
|
1446
|
+
var __defProp$t = Object.defineProperty;
|
|
1447
|
+
var __defProps$q = Object.defineProperties;
|
|
1448
|
+
var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
|
|
1449
|
+
var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
|
|
1450
|
+
var __hasOwnProp$t = Object.prototype.hasOwnProperty;
|
|
1451
|
+
var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
|
|
1452
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1453
|
+
var __spreadValues$t = (a, b) => {
|
|
1447
1454
|
for (var prop in b || (b = {}))
|
|
1448
|
-
if (__hasOwnProp$
|
|
1449
|
-
__defNormalProp$
|
|
1450
|
-
if (__getOwnPropSymbols$
|
|
1451
|
-
for (var prop of __getOwnPropSymbols$
|
|
1452
|
-
if (__propIsEnum$
|
|
1453
|
-
__defNormalProp$
|
|
1455
|
+
if (__hasOwnProp$t.call(b, prop))
|
|
1456
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
1457
|
+
if (__getOwnPropSymbols$t)
|
|
1458
|
+
for (var prop of __getOwnPropSymbols$t(b)) {
|
|
1459
|
+
if (__propIsEnum$t.call(b, prop))
|
|
1460
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
1454
1461
|
}
|
|
1455
1462
|
return a;
|
|
1456
1463
|
};
|
|
1457
|
-
var __spreadProps$
|
|
1464
|
+
var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
|
|
1458
1465
|
var __objRest$f = (source, exclude) => {
|
|
1459
1466
|
var target = {};
|
|
1460
1467
|
for (var prop in source)
|
|
1461
|
-
if (__hasOwnProp$
|
|
1468
|
+
if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1462
1469
|
target[prop] = source[prop];
|
|
1463
|
-
if (source != null && __getOwnPropSymbols$
|
|
1464
|
-
for (var prop of __getOwnPropSymbols$
|
|
1465
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1470
|
+
if (source != null && __getOwnPropSymbols$t)
|
|
1471
|
+
for (var prop of __getOwnPropSymbols$t(source)) {
|
|
1472
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$t.call(source, prop))
|
|
1466
1473
|
target[prop] = source[prop];
|
|
1467
1474
|
}
|
|
1468
1475
|
return target;
|
|
@@ -1479,9 +1486,9 @@ const FieldsFloat = (_a) => {
|
|
|
1479
1486
|
"onBlur",
|
|
1480
1487
|
"autoComplete"
|
|
1481
1488
|
]);
|
|
1482
|
-
return /* @__PURE__ */
|
|
1489
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
1483
1490
|
InputNumber,
|
|
1484
|
-
__spreadValues$
|
|
1491
|
+
__spreadValues$t(__spreadProps$q(__spreadValues$t({}, input), {
|
|
1485
1492
|
onBlur: (e) => onBlur ? onBlur(input, e) : input.onBlur(e),
|
|
1486
1493
|
autoComplete,
|
|
1487
1494
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
@@ -1489,33 +1496,33 @@ const FieldsFloat = (_a) => {
|
|
|
1489
1496
|
));
|
|
1490
1497
|
};
|
|
1491
1498
|
|
|
1492
|
-
var __defProp$
|
|
1493
|
-
var __defProps$
|
|
1494
|
-
var __getOwnPropDescs$
|
|
1495
|
-
var __getOwnPropSymbols$
|
|
1496
|
-
var __hasOwnProp$
|
|
1497
|
-
var __propIsEnum$
|
|
1498
|
-
var __defNormalProp$
|
|
1499
|
-
var __spreadValues$
|
|
1499
|
+
var __defProp$s = Object.defineProperty;
|
|
1500
|
+
var __defProps$p = Object.defineProperties;
|
|
1501
|
+
var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
|
|
1502
|
+
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
|
1503
|
+
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
|
1504
|
+
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
|
1505
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1506
|
+
var __spreadValues$s = (a, b) => {
|
|
1500
1507
|
for (var prop in b || (b = {}))
|
|
1501
|
-
if (__hasOwnProp$
|
|
1502
|
-
__defNormalProp$
|
|
1503
|
-
if (__getOwnPropSymbols$
|
|
1504
|
-
for (var prop of __getOwnPropSymbols$
|
|
1505
|
-
if (__propIsEnum$
|
|
1506
|
-
__defNormalProp$
|
|
1508
|
+
if (__hasOwnProp$s.call(b, prop))
|
|
1509
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
1510
|
+
if (__getOwnPropSymbols$s)
|
|
1511
|
+
for (var prop of __getOwnPropSymbols$s(b)) {
|
|
1512
|
+
if (__propIsEnum$s.call(b, prop))
|
|
1513
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
1507
1514
|
}
|
|
1508
1515
|
return a;
|
|
1509
1516
|
};
|
|
1510
|
-
var __spreadProps$
|
|
1517
|
+
var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
|
|
1511
1518
|
var __objRest$e = (source, exclude) => {
|
|
1512
1519
|
var target = {};
|
|
1513
1520
|
for (var prop in source)
|
|
1514
|
-
if (__hasOwnProp$
|
|
1521
|
+
if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1515
1522
|
target[prop] = source[prop];
|
|
1516
|
-
if (source != null && __getOwnPropSymbols$
|
|
1517
|
-
for (var prop of __getOwnPropSymbols$
|
|
1518
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1523
|
+
if (source != null && __getOwnPropSymbols$s)
|
|
1524
|
+
for (var prop of __getOwnPropSymbols$s(source)) {
|
|
1525
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop))
|
|
1519
1526
|
target[prop] = source[prop];
|
|
1520
1527
|
}
|
|
1521
1528
|
return target;
|
|
@@ -1535,9 +1542,9 @@ const Input = (_a) => {
|
|
|
1535
1542
|
middle: Typo.Label.l3_regular,
|
|
1536
1543
|
small: Typo.Label.l4_regular
|
|
1537
1544
|
}[size];
|
|
1538
|
-
return /* @__PURE__ */
|
|
1545
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
1539
1546
|
Input$1,
|
|
1540
|
-
__spreadProps$
|
|
1547
|
+
__spreadProps$p(__spreadValues$s({}, props), {
|
|
1541
1548
|
size,
|
|
1542
1549
|
"data-test": props.name,
|
|
1543
1550
|
className: cs(className, InputStyle, typo, error ? "error" : "")
|
|
@@ -1545,33 +1552,33 @@ const Input = (_a) => {
|
|
|
1545
1552
|
);
|
|
1546
1553
|
};
|
|
1547
1554
|
|
|
1548
|
-
var __defProp$
|
|
1549
|
-
var __defProps$
|
|
1550
|
-
var __getOwnPropDescs$
|
|
1551
|
-
var __getOwnPropSymbols$
|
|
1552
|
-
var __hasOwnProp$
|
|
1553
|
-
var __propIsEnum$
|
|
1554
|
-
var __defNormalProp$
|
|
1555
|
-
var __spreadValues$
|
|
1555
|
+
var __defProp$r = Object.defineProperty;
|
|
1556
|
+
var __defProps$o = Object.defineProperties;
|
|
1557
|
+
var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
|
|
1558
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
|
1559
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
|
1560
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
|
1561
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1562
|
+
var __spreadValues$r = (a, b) => {
|
|
1556
1563
|
for (var prop in b || (b = {}))
|
|
1557
|
-
if (__hasOwnProp$
|
|
1558
|
-
__defNormalProp$
|
|
1559
|
-
if (__getOwnPropSymbols$
|
|
1560
|
-
for (var prop of __getOwnPropSymbols$
|
|
1561
|
-
if (__propIsEnum$
|
|
1562
|
-
__defNormalProp$
|
|
1564
|
+
if (__hasOwnProp$r.call(b, prop))
|
|
1565
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
1566
|
+
if (__getOwnPropSymbols$r)
|
|
1567
|
+
for (var prop of __getOwnPropSymbols$r(b)) {
|
|
1568
|
+
if (__propIsEnum$r.call(b, prop))
|
|
1569
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
1563
1570
|
}
|
|
1564
1571
|
return a;
|
|
1565
1572
|
};
|
|
1566
|
-
var __spreadProps$
|
|
1573
|
+
var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
|
|
1567
1574
|
var __objRest$d = (source, exclude) => {
|
|
1568
1575
|
var target = {};
|
|
1569
1576
|
for (var prop in source)
|
|
1570
|
-
if (__hasOwnProp$
|
|
1577
|
+
if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1571
1578
|
target[prop] = source[prop];
|
|
1572
|
-
if (source != null && __getOwnPropSymbols$
|
|
1573
|
-
for (var prop of __getOwnPropSymbols$
|
|
1574
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1579
|
+
if (source != null && __getOwnPropSymbols$r)
|
|
1580
|
+
for (var prop of __getOwnPropSymbols$r(source)) {
|
|
1581
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
|
|
1575
1582
|
target[prop] = source[prop];
|
|
1576
1583
|
}
|
|
1577
1584
|
return target;
|
|
@@ -1590,9 +1597,9 @@ const FieldsInt = (_a) => {
|
|
|
1590
1597
|
"autoComplete",
|
|
1591
1598
|
"supportNegativeValue"
|
|
1592
1599
|
]);
|
|
1593
|
-
return /* @__PURE__ */
|
|
1600
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
1594
1601
|
Input,
|
|
1595
|
-
__spreadValues$
|
|
1602
|
+
__spreadValues$r(__spreadProps$o(__spreadValues$r({}, input), {
|
|
1596
1603
|
onChange: (e) => {
|
|
1597
1604
|
const value = e.currentTarget.value;
|
|
1598
1605
|
if (supportNegativeValue) {
|
|
@@ -1627,31 +1634,31 @@ const formatterInteger = (value) => {
|
|
|
1627
1634
|
}
|
|
1628
1635
|
};
|
|
1629
1636
|
|
|
1630
|
-
var __defProp$
|
|
1631
|
-
var __defProps$
|
|
1632
|
-
var __getOwnPropDescs$
|
|
1633
|
-
var __getOwnPropSymbols$
|
|
1634
|
-
var __hasOwnProp$
|
|
1635
|
-
var __propIsEnum$
|
|
1636
|
-
var __defNormalProp$
|
|
1637
|
+
var __defProp$q = Object.defineProperty;
|
|
1638
|
+
var __defProps$n = Object.defineProperties;
|
|
1639
|
+
var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
|
|
1640
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
1641
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
1642
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
1643
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, {
|
|
1637
1644
|
enumerable: true,
|
|
1638
1645
|
configurable: true,
|
|
1639
1646
|
writable: true,
|
|
1640
1647
|
value
|
|
1641
1648
|
}) : obj[key] = value;
|
|
1642
|
-
var __spreadValues$
|
|
1643
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1644
|
-
if (__getOwnPropSymbols$
|
|
1645
|
-
if (__propIsEnum$
|
|
1649
|
+
var __spreadValues$q = (a, b) => {
|
|
1650
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$q.call(b, prop)) __defNormalProp$q(a, prop, b[prop]);
|
|
1651
|
+
if (__getOwnPropSymbols$q) for (var prop of __getOwnPropSymbols$q(b)) {
|
|
1652
|
+
if (__propIsEnum$q.call(b, prop)) __defNormalProp$q(a, prop, b[prop]);
|
|
1646
1653
|
}
|
|
1647
1654
|
return a;
|
|
1648
1655
|
};
|
|
1649
|
-
var __spreadProps$
|
|
1656
|
+
var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
|
|
1650
1657
|
var __objRest$c = (source, exclude) => {
|
|
1651
1658
|
var target = {};
|
|
1652
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1653
|
-
if (source != null && __getOwnPropSymbols$
|
|
1654
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1659
|
+
for (var prop in source) if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1660
|
+
if (source != null && __getOwnPropSymbols$q) for (var prop of __getOwnPropSymbols$q(source)) {
|
|
1661
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop)) target[prop] = source[prop];
|
|
1655
1662
|
}
|
|
1656
1663
|
return target;
|
|
1657
1664
|
};
|
|
@@ -1695,7 +1702,7 @@ const InputInteger = _a => {
|
|
|
1695
1702
|
middle: Typo.Label.l3_regular,
|
|
1696
1703
|
small: Typo.Label.l4_regular
|
|
1697
1704
|
}[size];
|
|
1698
|
-
return /* @__PURE__ */
|
|
1705
|
+
return /* @__PURE__ */React__default.createElement(AntdIntStyled, __spreadProps$n(__spreadValues$q({}, props), {
|
|
1699
1706
|
size,
|
|
1700
1707
|
formatter: formatterInteger,
|
|
1701
1708
|
parser: formatterInteger,
|
|
@@ -1709,33 +1716,33 @@ const InputInteger = _a => {
|
|
|
1709
1716
|
}));
|
|
1710
1717
|
};
|
|
1711
1718
|
|
|
1712
|
-
var __defProp$
|
|
1713
|
-
var __defProps$
|
|
1714
|
-
var __getOwnPropDescs$
|
|
1715
|
-
var __getOwnPropSymbols$
|
|
1716
|
-
var __hasOwnProp$
|
|
1717
|
-
var __propIsEnum$
|
|
1718
|
-
var __defNormalProp$
|
|
1719
|
-
var __spreadValues$
|
|
1719
|
+
var __defProp$p = Object.defineProperty;
|
|
1720
|
+
var __defProps$m = Object.defineProperties;
|
|
1721
|
+
var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
|
|
1722
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
1723
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
1724
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
1725
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1726
|
+
var __spreadValues$p = (a, b) => {
|
|
1720
1727
|
for (var prop in b || (b = {}))
|
|
1721
|
-
if (__hasOwnProp$
|
|
1722
|
-
__defNormalProp$
|
|
1723
|
-
if (__getOwnPropSymbols$
|
|
1724
|
-
for (var prop of __getOwnPropSymbols$
|
|
1725
|
-
if (__propIsEnum$
|
|
1726
|
-
__defNormalProp$
|
|
1728
|
+
if (__hasOwnProp$p.call(b, prop))
|
|
1729
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
1730
|
+
if (__getOwnPropSymbols$p)
|
|
1731
|
+
for (var prop of __getOwnPropSymbols$p(b)) {
|
|
1732
|
+
if (__propIsEnum$p.call(b, prop))
|
|
1733
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
1727
1734
|
}
|
|
1728
1735
|
return a;
|
|
1729
1736
|
};
|
|
1730
|
-
var __spreadProps$
|
|
1737
|
+
var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
|
|
1731
1738
|
var __objRest$b = (source, exclude) => {
|
|
1732
1739
|
var target = {};
|
|
1733
1740
|
for (var prop in source)
|
|
1734
|
-
if (__hasOwnProp$
|
|
1741
|
+
if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1735
1742
|
target[prop] = source[prop];
|
|
1736
|
-
if (source != null && __getOwnPropSymbols$
|
|
1737
|
-
for (var prop of __getOwnPropSymbols$
|
|
1738
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1743
|
+
if (source != null && __getOwnPropSymbols$p)
|
|
1744
|
+
for (var prop of __getOwnPropSymbols$p(source)) {
|
|
1745
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop))
|
|
1739
1746
|
target[prop] = source[prop];
|
|
1740
1747
|
}
|
|
1741
1748
|
return target;
|
|
@@ -1750,9 +1757,9 @@ const FieldsInteger = (_a) => {
|
|
|
1750
1757
|
"input",
|
|
1751
1758
|
"onBlur"
|
|
1752
1759
|
]);
|
|
1753
|
-
return /* @__PURE__ */
|
|
1760
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
1754
1761
|
InputInteger,
|
|
1755
|
-
__spreadProps$
|
|
1762
|
+
__spreadProps$m(__spreadValues$p(__spreadValues$p({}, props), input), {
|
|
1756
1763
|
onBlur: (e) => onBlur ? onBlur(input, e) : input.onBlur(e),
|
|
1757
1764
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
1758
1765
|
})
|
|
@@ -1910,39 +1917,39 @@ const Overflow = props => {
|
|
|
1910
1917
|
}
|
|
1911
1918
|
}, [handleOverflow, init]);
|
|
1912
1919
|
const showOverflow = !init && isOverflow;
|
|
1913
|
-
return /* @__PURE__ */
|
|
1920
|
+
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement("span", {
|
|
1914
1921
|
className: cs(showOverflow && HiddenStyle, OverflowWrapper),
|
|
1915
1922
|
ref: wrapperRef
|
|
1916
|
-
}, children), showOverflow && /* @__PURE__ */
|
|
1923
|
+
}, children), showOverflow && /* @__PURE__ */React__default.createElement("span", null, overflow));
|
|
1917
1924
|
};
|
|
1918
1925
|
|
|
1919
|
-
var __defProp$
|
|
1920
|
-
var __defProps$
|
|
1921
|
-
var __getOwnPropDescs$
|
|
1922
|
-
var __getOwnPropSymbols$
|
|
1923
|
-
var __hasOwnProp$
|
|
1924
|
-
var __propIsEnum$
|
|
1925
|
-
var __defNormalProp$
|
|
1926
|
-
var __spreadValues$
|
|
1926
|
+
var __defProp$o = Object.defineProperty;
|
|
1927
|
+
var __defProps$l = Object.defineProperties;
|
|
1928
|
+
var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
|
|
1929
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
1930
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
1931
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
1932
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1933
|
+
var __spreadValues$o = (a, b) => {
|
|
1927
1934
|
for (var prop in b || (b = {}))
|
|
1928
|
-
if (__hasOwnProp$
|
|
1929
|
-
__defNormalProp$
|
|
1930
|
-
if (__getOwnPropSymbols$
|
|
1931
|
-
for (var prop of __getOwnPropSymbols$
|
|
1932
|
-
if (__propIsEnum$
|
|
1933
|
-
__defNormalProp$
|
|
1935
|
+
if (__hasOwnProp$o.call(b, prop))
|
|
1936
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
1937
|
+
if (__getOwnPropSymbols$o)
|
|
1938
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
|
1939
|
+
if (__propIsEnum$o.call(b, prop))
|
|
1940
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
1934
1941
|
}
|
|
1935
1942
|
return a;
|
|
1936
1943
|
};
|
|
1937
|
-
var __spreadProps$
|
|
1944
|
+
var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
|
|
1938
1945
|
var __objRest$a = (source, exclude) => {
|
|
1939
1946
|
var target = {};
|
|
1940
1947
|
for (var prop in source)
|
|
1941
|
-
if (__hasOwnProp$
|
|
1948
|
+
if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1942
1949
|
target[prop] = source[prop];
|
|
1943
|
-
if (source != null && __getOwnPropSymbols$
|
|
1944
|
-
for (var prop of __getOwnPropSymbols$
|
|
1945
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1950
|
+
if (source != null && __getOwnPropSymbols$o)
|
|
1951
|
+
for (var prop of __getOwnPropSymbols$o(source)) {
|
|
1952
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
|
|
1946
1953
|
target[prop] = source[prop];
|
|
1947
1954
|
}
|
|
1948
1955
|
return target;
|
|
@@ -1976,7 +1983,7 @@ const FieldsString = (_a) => {
|
|
|
1976
1983
|
"focusIndicator"
|
|
1977
1984
|
]);
|
|
1978
1985
|
if (tags == null ? void 0 : tags.length) {
|
|
1979
|
-
return /* @__PURE__ */
|
|
1986
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
1980
1987
|
"div",
|
|
1981
1988
|
{
|
|
1982
1989
|
className: cs(
|
|
@@ -1987,13 +1994,13 @@ const FieldsString = (_a) => {
|
|
|
1987
1994
|
),
|
|
1988
1995
|
onClick
|
|
1989
1996
|
},
|
|
1990
|
-
/* @__PURE__ */
|
|
1991
|
-
/* @__PURE__ */
|
|
1997
|
+
/* @__PURE__ */ React__default.createElement("div", { className: "input-tags-inner" }, /* @__PURE__ */ React__default.createElement(Overflow, { overflow: tagsOverflow }, /* @__PURE__ */ React__default.createElement("span", { className: "tags-overflow-auto" }, tags.map((tag) => /* @__PURE__ */ React__default.createElement(InputTagItem, { key: tag }, tag))))),
|
|
1998
|
+
/* @__PURE__ */ React__default.createElement("span", { className: "input-tag-suffix" }, allowClear && /* @__PURE__ */ React__default.createElement(CloseCircleFilled, { onClick: onTagsAllowClearClick }))
|
|
1992
1999
|
);
|
|
1993
2000
|
}
|
|
1994
|
-
return /* @__PURE__ */
|
|
2001
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
1995
2002
|
Input,
|
|
1996
|
-
__spreadProps$
|
|
2003
|
+
__spreadProps$l(__spreadValues$o(__spreadProps$l(__spreadValues$o({
|
|
1997
2004
|
className: cs(
|
|
1998
2005
|
className,
|
|
1999
2006
|
KitInputStyle,
|
|
@@ -2004,7 +2011,7 @@ const FieldsString = (_a) => {
|
|
|
2004
2011
|
size,
|
|
2005
2012
|
allowClear,
|
|
2006
2013
|
onClick,
|
|
2007
|
-
prefix: focusIndicator ? /* @__PURE__ */
|
|
2014
|
+
prefix: focusIndicator ? /* @__PURE__ */ React__default.createElement(Icon, { alt: "focusIndicator16Blue", src: img$4 }) : void 0,
|
|
2008
2015
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
2009
2016
|
}), props), {
|
|
2010
2017
|
onChange: (e) => {
|
|
@@ -2018,33 +2025,33 @@ const FieldsString = (_a) => {
|
|
|
2018
2025
|
));
|
|
2019
2026
|
};
|
|
2020
2027
|
|
|
2021
|
-
var __defProp$
|
|
2022
|
-
var __defProps$
|
|
2023
|
-
var __getOwnPropDescs$
|
|
2024
|
-
var __getOwnPropSymbols$
|
|
2025
|
-
var __hasOwnProp$
|
|
2026
|
-
var __propIsEnum$
|
|
2027
|
-
var __defNormalProp$
|
|
2028
|
-
var __spreadValues$
|
|
2028
|
+
var __defProp$n = Object.defineProperty;
|
|
2029
|
+
var __defProps$k = Object.defineProperties;
|
|
2030
|
+
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
|
2031
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
2032
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
2033
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
2034
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2035
|
+
var __spreadValues$n = (a, b) => {
|
|
2029
2036
|
for (var prop in b || (b = {}))
|
|
2030
|
-
if (__hasOwnProp$
|
|
2031
|
-
__defNormalProp$
|
|
2032
|
-
if (__getOwnPropSymbols$
|
|
2033
|
-
for (var prop of __getOwnPropSymbols$
|
|
2034
|
-
if (__propIsEnum$
|
|
2035
|
-
__defNormalProp$
|
|
2037
|
+
if (__hasOwnProp$n.call(b, prop))
|
|
2038
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
2039
|
+
if (__getOwnPropSymbols$n)
|
|
2040
|
+
for (var prop of __getOwnPropSymbols$n(b)) {
|
|
2041
|
+
if (__propIsEnum$n.call(b, prop))
|
|
2042
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
2036
2043
|
}
|
|
2037
2044
|
return a;
|
|
2038
2045
|
};
|
|
2039
|
-
var __spreadProps$
|
|
2046
|
+
var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
|
|
2040
2047
|
var __objRest$9 = (source, exclude) => {
|
|
2041
2048
|
var target = {};
|
|
2042
2049
|
for (var prop in source)
|
|
2043
|
-
if (__hasOwnProp$
|
|
2050
|
+
if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2044
2051
|
target[prop] = source[prop];
|
|
2045
|
-
if (source != null && __getOwnPropSymbols$
|
|
2046
|
-
for (var prop of __getOwnPropSymbols$
|
|
2047
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2052
|
+
if (source != null && __getOwnPropSymbols$n)
|
|
2053
|
+
for (var prop of __getOwnPropSymbols$n(source)) {
|
|
2054
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop))
|
|
2048
2055
|
target[prop] = source[prop];
|
|
2049
2056
|
}
|
|
2050
2057
|
return target;
|
|
@@ -2064,9 +2071,9 @@ const TextArea = (_a) => {
|
|
|
2064
2071
|
middle: Typo.Label.l3_regular,
|
|
2065
2072
|
small: Typo.Label.l4_regular
|
|
2066
2073
|
}[size];
|
|
2067
|
-
return /* @__PURE__ */
|
|
2074
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
2068
2075
|
Input$1.TextArea,
|
|
2069
|
-
__spreadProps$
|
|
2076
|
+
__spreadProps$k(__spreadValues$n({}, props), {
|
|
2070
2077
|
className: cs(
|
|
2071
2078
|
className,
|
|
2072
2079
|
InputStyle,
|
|
@@ -2080,33 +2087,33 @@ const TextArea = (_a) => {
|
|
|
2080
2087
|
);
|
|
2081
2088
|
};
|
|
2082
2089
|
|
|
2083
|
-
var __defProp$
|
|
2084
|
-
var __defProps$
|
|
2085
|
-
var __getOwnPropDescs$
|
|
2086
|
-
var __getOwnPropSymbols$
|
|
2087
|
-
var __hasOwnProp$
|
|
2088
|
-
var __propIsEnum$
|
|
2089
|
-
var __defNormalProp$
|
|
2090
|
-
var __spreadValues$
|
|
2090
|
+
var __defProp$m = Object.defineProperty;
|
|
2091
|
+
var __defProps$j = Object.defineProperties;
|
|
2092
|
+
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
2093
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
2094
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
2095
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
2096
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2097
|
+
var __spreadValues$m = (a, b) => {
|
|
2091
2098
|
for (var prop in b || (b = {}))
|
|
2092
|
-
if (__hasOwnProp$
|
|
2093
|
-
__defNormalProp$
|
|
2094
|
-
if (__getOwnPropSymbols$
|
|
2095
|
-
for (var prop of __getOwnPropSymbols$
|
|
2096
|
-
if (__propIsEnum$
|
|
2097
|
-
__defNormalProp$
|
|
2099
|
+
if (__hasOwnProp$m.call(b, prop))
|
|
2100
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
2101
|
+
if (__getOwnPropSymbols$m)
|
|
2102
|
+
for (var prop of __getOwnPropSymbols$m(b)) {
|
|
2103
|
+
if (__propIsEnum$m.call(b, prop))
|
|
2104
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
2098
2105
|
}
|
|
2099
2106
|
return a;
|
|
2100
2107
|
};
|
|
2101
|
-
var __spreadProps$
|
|
2108
|
+
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
2102
2109
|
var __objRest$8 = (source, exclude) => {
|
|
2103
2110
|
var target = {};
|
|
2104
2111
|
for (var prop in source)
|
|
2105
|
-
if (__hasOwnProp$
|
|
2112
|
+
if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2106
2113
|
target[prop] = source[prop];
|
|
2107
|
-
if (source != null && __getOwnPropSymbols$
|
|
2108
|
-
for (var prop of __getOwnPropSymbols$
|
|
2109
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2114
|
+
if (source != null && __getOwnPropSymbols$m)
|
|
2115
|
+
for (var prop of __getOwnPropSymbols$m(source)) {
|
|
2116
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
|
|
2110
2117
|
target[prop] = source[prop];
|
|
2111
2118
|
}
|
|
2112
2119
|
return target;
|
|
@@ -2121,9 +2128,9 @@ const FieldsTextArea = (_a) => {
|
|
|
2121
2128
|
"meta",
|
|
2122
2129
|
"onFocusChangeHeight"
|
|
2123
2130
|
]);
|
|
2124
|
-
return /* @__PURE__ */
|
|
2131
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
2125
2132
|
TextArea,
|
|
2126
|
-
__spreadProps$
|
|
2133
|
+
__spreadProps$j(__spreadValues$m(__spreadValues$m({}, input), props), {
|
|
2127
2134
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError),
|
|
2128
2135
|
onFocus: (e) => {
|
|
2129
2136
|
input.onFocus(e);
|
|
@@ -2137,33 +2144,33 @@ const FieldsTextArea = (_a) => {
|
|
|
2137
2144
|
));
|
|
2138
2145
|
};
|
|
2139
2146
|
|
|
2140
|
-
var __defProp$
|
|
2141
|
-
var __defProps$
|
|
2142
|
-
var __getOwnPropDescs$
|
|
2143
|
-
var __getOwnPropSymbols$
|
|
2144
|
-
var __hasOwnProp$
|
|
2145
|
-
var __propIsEnum$
|
|
2146
|
-
var __defNormalProp$
|
|
2147
|
-
var __spreadValues$
|
|
2147
|
+
var __defProp$l = Object.defineProperty;
|
|
2148
|
+
var __defProps$i = Object.defineProperties;
|
|
2149
|
+
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
2150
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
2151
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
2152
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
2153
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2154
|
+
var __spreadValues$l = (a, b) => {
|
|
2148
2155
|
for (var prop in b || (b = {}))
|
|
2149
|
-
if (__hasOwnProp$
|
|
2150
|
-
__defNormalProp$
|
|
2151
|
-
if (__getOwnPropSymbols$
|
|
2152
|
-
for (var prop of __getOwnPropSymbols$
|
|
2153
|
-
if (__propIsEnum$
|
|
2154
|
-
__defNormalProp$
|
|
2156
|
+
if (__hasOwnProp$l.call(b, prop))
|
|
2157
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
2158
|
+
if (__getOwnPropSymbols$l)
|
|
2159
|
+
for (var prop of __getOwnPropSymbols$l(b)) {
|
|
2160
|
+
if (__propIsEnum$l.call(b, prop))
|
|
2161
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
2155
2162
|
}
|
|
2156
2163
|
return a;
|
|
2157
2164
|
};
|
|
2158
|
-
var __spreadProps$
|
|
2165
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
2159
2166
|
var __objRest$7 = (source, exclude) => {
|
|
2160
2167
|
var target = {};
|
|
2161
2168
|
for (var prop in source)
|
|
2162
|
-
if (__hasOwnProp$
|
|
2169
|
+
if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2163
2170
|
target[prop] = source[prop];
|
|
2164
|
-
if (source != null && __getOwnPropSymbols$
|
|
2165
|
-
for (var prop of __getOwnPropSymbols$
|
|
2166
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2171
|
+
if (source != null && __getOwnPropSymbols$l)
|
|
2172
|
+
for (var prop of __getOwnPropSymbols$l(source)) {
|
|
2173
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
|
|
2167
2174
|
target[prop] = source[prop];
|
|
2168
2175
|
}
|
|
2169
2176
|
return target;
|
|
@@ -2183,9 +2190,9 @@ const TimePicker = (_a) => {
|
|
|
2183
2190
|
middle: Typo.Label.l3_regular,
|
|
2184
2191
|
small: Typo.Label.l4_regular
|
|
2185
2192
|
}[size];
|
|
2186
|
-
return /* @__PURE__ */
|
|
2193
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
2187
2194
|
TimePicker$1,
|
|
2188
|
-
__spreadProps$
|
|
2195
|
+
__spreadProps$i(__spreadValues$l({}, props), {
|
|
2189
2196
|
size,
|
|
2190
2197
|
"data-test": props.name,
|
|
2191
2198
|
className: cs(className, InputStyle, typo, error ? "error" : "")
|
|
@@ -2193,33 +2200,33 @@ const TimePicker = (_a) => {
|
|
|
2193
2200
|
);
|
|
2194
2201
|
};
|
|
2195
2202
|
|
|
2196
|
-
var __defProp$
|
|
2197
|
-
var __defProps$
|
|
2198
|
-
var __getOwnPropDescs$
|
|
2199
|
-
var __getOwnPropSymbols$
|
|
2200
|
-
var __hasOwnProp$
|
|
2201
|
-
var __propIsEnum$
|
|
2202
|
-
var __defNormalProp$
|
|
2203
|
-
var __spreadValues$
|
|
2203
|
+
var __defProp$k = Object.defineProperty;
|
|
2204
|
+
var __defProps$h = Object.defineProperties;
|
|
2205
|
+
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
2206
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
|
2207
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
|
2208
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
|
2209
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2210
|
+
var __spreadValues$k = (a, b) => {
|
|
2204
2211
|
for (var prop in b || (b = {}))
|
|
2205
|
-
if (__hasOwnProp$
|
|
2206
|
-
__defNormalProp$
|
|
2207
|
-
if (__getOwnPropSymbols$
|
|
2208
|
-
for (var prop of __getOwnPropSymbols$
|
|
2209
|
-
if (__propIsEnum$
|
|
2210
|
-
__defNormalProp$
|
|
2212
|
+
if (__hasOwnProp$k.call(b, prop))
|
|
2213
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
2214
|
+
if (__getOwnPropSymbols$k)
|
|
2215
|
+
for (var prop of __getOwnPropSymbols$k(b)) {
|
|
2216
|
+
if (__propIsEnum$k.call(b, prop))
|
|
2217
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
2211
2218
|
}
|
|
2212
2219
|
return a;
|
|
2213
2220
|
};
|
|
2214
|
-
var __spreadProps$
|
|
2221
|
+
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
2215
2222
|
var __objRest$6 = (source, exclude) => {
|
|
2216
2223
|
var target = {};
|
|
2217
2224
|
for (var prop in source)
|
|
2218
|
-
if (__hasOwnProp$
|
|
2225
|
+
if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2219
2226
|
target[prop] = source[prop];
|
|
2220
|
-
if (source != null && __getOwnPropSymbols$
|
|
2221
|
-
for (var prop of __getOwnPropSymbols$
|
|
2222
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2227
|
+
if (source != null && __getOwnPropSymbols$k)
|
|
2228
|
+
for (var prop of __getOwnPropSymbols$k(source)) {
|
|
2229
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
|
|
2223
2230
|
target[prop] = source[prop];
|
|
2224
2231
|
}
|
|
2225
2232
|
return target;
|
|
@@ -2232,9 +2239,9 @@ const FieldsTimePicker = (_a) => {
|
|
|
2232
2239
|
"input",
|
|
2233
2240
|
"meta"
|
|
2234
2241
|
]);
|
|
2235
|
-
return /* @__PURE__ */
|
|
2242
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
2236
2243
|
TimePicker,
|
|
2237
|
-
__spreadValues$
|
|
2244
|
+
__spreadValues$k(__spreadProps$h(__spreadValues$k({}, input), {
|
|
2238
2245
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
2239
2246
|
}), props)
|
|
2240
2247
|
));
|
|
@@ -2253,6 +2260,36 @@ const fields = {
|
|
|
2253
2260
|
DateTimeRange: FieldsDateTimeRange
|
|
2254
2261
|
};
|
|
2255
2262
|
|
|
2263
|
+
var __defProp$j = Object.defineProperty;
|
|
2264
|
+
var __defProps$g = Object.defineProperties;
|
|
2265
|
+
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
2266
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
2267
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
2268
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
2269
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, {
|
|
2270
|
+
enumerable: true,
|
|
2271
|
+
configurable: true,
|
|
2272
|
+
writable: true,
|
|
2273
|
+
value
|
|
2274
|
+
}) : obj[key] = value;
|
|
2275
|
+
var __spreadValues$j = (a, b) => {
|
|
2276
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$j.call(b, prop)) __defNormalProp$j(a, prop, b[prop]);
|
|
2277
|
+
if (__getOwnPropSymbols$j) for (var prop of __getOwnPropSymbols$j(b)) {
|
|
2278
|
+
if (__propIsEnum$j.call(b, prop)) __defNormalProp$j(a, prop, b[prop]);
|
|
2279
|
+
}
|
|
2280
|
+
return a;
|
|
2281
|
+
};
|
|
2282
|
+
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
2283
|
+
const FormItemStyle$1 = "f1p9ti6d";
|
|
2284
|
+
const FormItem$1 = props => {
|
|
2285
|
+
return /* @__PURE__ */React__default.createElement(AntdFormItem, __spreadProps$g(__spreadValues$j({}, props), {
|
|
2286
|
+
className: cs(FormItemStyle$1, props.className)
|
|
2287
|
+
}));
|
|
2288
|
+
};
|
|
2289
|
+
|
|
2290
|
+
const Form = Form$1;
|
|
2291
|
+
Form.Item = FormItem$1;
|
|
2292
|
+
|
|
2256
2293
|
const Frequency = ({
|
|
2257
2294
|
rawValue,
|
|
2258
2295
|
decimals,
|
|
@@ -2263,152 +2300,179 @@ const Frequency = ({
|
|
|
2263
2300
|
return Empty;
|
|
2264
2301
|
}
|
|
2265
2302
|
const { value, unit } = formatFrequency(rawValue, decimals);
|
|
2266
|
-
return /* @__PURE__ */
|
|
2303
|
+
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
2267
2304
|
};
|
|
2268
2305
|
|
|
2269
2306
|
const _exp = () => Input$1.Group;
|
|
2270
2307
|
const InputGroup = /*#__PURE__*/styled(_exp())({
|
|
2271
2308
|
name: "InputGroup",
|
|
2272
2309
|
class: "iiqau4c",
|
|
2273
|
-
propsAsIs: true
|
|
2274
|
-
});
|
|
2275
|
-
|
|
2276
|
-
var __defProp$i = Object.defineProperty;
|
|
2277
|
-
var __defProps$f = Object.defineProperties;
|
|
2278
|
-
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
2279
|
-
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
2280
|
-
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
2281
|
-
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
2282
|
-
var __defNormalProp$i = (obj,
|
|
2283
|
-
var __spreadValues$i = (a, b) => {
|
|
2284
|
-
for (var prop in b || (b = {}))
|
|
2285
|
-
if (__hasOwnProp$i.call(b, prop))
|
|
2286
|
-
__defNormalProp$i(a, prop, b[prop]);
|
|
2287
|
-
if (__getOwnPropSymbols$i)
|
|
2288
|
-
for (var prop of __getOwnPropSymbols$i(b)) {
|
|
2289
|
-
if (__propIsEnum$i.call(b, prop))
|
|
2290
|
-
__defNormalProp$i(a, prop, b[prop]);
|
|
2291
|
-
}
|
|
2292
|
-
return a;
|
|
2293
|
-
};
|
|
2294
|
-
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
2295
|
-
function makeUUID(length = 25) {
|
|
2296
|
-
let result = "";
|
|
2297
|
-
const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
2298
|
-
const charactersLength = characters.length;
|
|
2299
|
-
for (let i = 0; i < length; i++) {
|
|
2300
|
-
result += characters.charAt(Math.floor(Math.random() * charactersLength));
|
|
2301
|
-
}
|
|
2302
|
-
return result;
|
|
2303
|
-
}
|
|
2304
|
-
class Batcher {
|
|
2305
|
-
constructor(originalMethod, batchHelper) {
|
|
2306
|
-
this.batchSize = 2;
|
|
2307
|
-
this.batchTime = 200;
|
|
2308
|
-
this.scheduler = {};
|
|
2309
|
-
this.originalMethod = originalMethod;
|
|
2310
|
-
this.batchHelper = batchHelper;
|
|
2311
|
-
}
|
|
2312
|
-
addMessage(originContent) {
|
|
2313
|
-
const batchKey = this.batchHelper.getBatchKey(originContent.content);
|
|
2314
|
-
if (batchKey == null) {
|
|
2315
|
-
this.originalMethod(originContent);
|
|
2316
|
-
return;
|
|
2317
|
-
}
|
|
2318
|
-
if (!this.scheduler[batchKey]) {
|
|
2319
|
-
this.scheduler[batchKey] = {
|
|
2320
|
-
firedHandlers: {},
|
|
2321
|
-
pendingMessages: {}
|
|
2322
|
-
};
|
|
2323
|
-
}
|
|
2324
|
-
const messageStore = this.scheduler[batchKey];
|
|
2325
|
-
const { firedHandlers, pendingMessages, groupedCtx } = messageStore;
|
|
2326
|
-
if (groupedCtx) {
|
|
2327
|
-
groupedCtx.count++;
|
|
2328
|
-
this.applyContent(batchKey, originContent, messageStore);
|
|
2329
|
-
return;
|
|
2330
|
-
}
|
|
2331
|
-
const messageCount = Object.keys(firedHandlers).length + Object.keys(pendingMessages).length;
|
|
2332
|
-
if (messageCount + 1 > this.batchSize) {
|
|
2333
|
-
for (const k in firedHandlers) {
|
|
2334
|
-
try {
|
|
2335
|
-
firedHandlers[k]();
|
|
2336
|
-
} catch (e) {
|
|
2337
|
-
}
|
|
2338
|
-
delete firedHandlers[k];
|
|
2339
|
-
}
|
|
2340
|
-
for (const k in pendingMessages) {
|
|
2341
|
-
delete pendingMessages[k];
|
|
2342
|
-
}
|
|
2343
|
-
messageStore.groupedCtx = {
|
|
2344
|
-
key: originContent.key,
|
|
2345
|
-
count: messageCount + 1
|
|
2346
|
-
};
|
|
2347
|
-
this.applyContent(batchKey, originContent, messageStore);
|
|
2348
|
-
return;
|
|
2310
|
+
propsAsIs: true
|
|
2311
|
+
});
|
|
2312
|
+
|
|
2313
|
+
var __defProp$i = Object.defineProperty;
|
|
2314
|
+
var __defProps$f = Object.defineProperties;
|
|
2315
|
+
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
2316
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
2317
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
2318
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
2319
|
+
var __defNormalProp$i = (obj, key2, value) => key2 in obj ? __defProp$i(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value;
|
|
2320
|
+
var __spreadValues$i = (a, b) => {
|
|
2321
|
+
for (var prop in b || (b = {}))
|
|
2322
|
+
if (__hasOwnProp$i.call(b, prop))
|
|
2323
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
2324
|
+
if (__getOwnPropSymbols$i)
|
|
2325
|
+
for (var prop of __getOwnPropSymbols$i(b)) {
|
|
2326
|
+
if (__propIsEnum$i.call(b, prop))
|
|
2327
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
2349
2328
|
}
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2329
|
+
return a;
|
|
2330
|
+
};
|
|
2331
|
+
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
2332
|
+
let messageInstance;
|
|
2333
|
+
let defaultDuration = 3;
|
|
2334
|
+
let defaultTop;
|
|
2335
|
+
let key = 1;
|
|
2336
|
+
let localPrefixCls = "ant-message";
|
|
2337
|
+
let transitionName = "move-up";
|
|
2338
|
+
let getContainer;
|
|
2339
|
+
let maxCount;
|
|
2340
|
+
let rtl = false;
|
|
2341
|
+
function setMessageConfig(options) {
|
|
2342
|
+
if (options.top !== void 0) {
|
|
2343
|
+
defaultTop = options.top;
|
|
2344
|
+
messageInstance = null;
|
|
2362
2345
|
}
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
batchKey,
|
|
2366
|
-
store.groupedCtx.count
|
|
2367
|
-
);
|
|
2368
|
-
content.key = store.groupedCtx.key;
|
|
2369
|
-
content.onClose = () => {
|
|
2370
|
-
delete store.groupedCtx;
|
|
2371
|
-
};
|
|
2372
|
-
this.originalMethod(content);
|
|
2346
|
+
if (options.duration !== void 0) {
|
|
2347
|
+
defaultDuration = options.duration;
|
|
2373
2348
|
}
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
if (batchHelper == null) {
|
|
2377
|
-
return message;
|
|
2349
|
+
if (options.prefixCls !== void 0) {
|
|
2350
|
+
localPrefixCls = options.prefixCls;
|
|
2378
2351
|
}
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
const key = makeUUID();
|
|
2393
|
-
const content = normalizeContent(args, method);
|
|
2394
|
-
batcher.addMessage(__spreadProps$f(__spreadValues$i({}, content), { key }));
|
|
2395
|
-
return () => {
|
|
2396
|
-
};
|
|
2397
|
-
};
|
|
2352
|
+
if (options.getContainer !== void 0) {
|
|
2353
|
+
getContainer = options.getContainer;
|
|
2354
|
+
}
|
|
2355
|
+
if (options.transitionName !== void 0) {
|
|
2356
|
+
transitionName = options.transitionName;
|
|
2357
|
+
messageInstance = null;
|
|
2358
|
+
}
|
|
2359
|
+
if (options.maxCount !== void 0) {
|
|
2360
|
+
maxCount = options.maxCount;
|
|
2361
|
+
messageInstance = null;
|
|
2362
|
+
}
|
|
2363
|
+
if (options.rtl !== void 0) {
|
|
2364
|
+
rtl = options.rtl;
|
|
2398
2365
|
}
|
|
2399
|
-
return _message;
|
|
2400
2366
|
}
|
|
2401
|
-
function
|
|
2402
|
-
const
|
|
2403
|
-
if (
|
|
2404
|
-
|
|
2367
|
+
function getRCNotificationInstance(args, callback) {
|
|
2368
|
+
const prefixCls = args.prefixCls || localPrefixCls;
|
|
2369
|
+
if (messageInstance) {
|
|
2370
|
+
callback({
|
|
2371
|
+
prefixCls,
|
|
2372
|
+
instance: messageInstance
|
|
2373
|
+
});
|
|
2374
|
+
return;
|
|
2405
2375
|
}
|
|
2376
|
+
RCNotification.newInstance(
|
|
2377
|
+
{
|
|
2378
|
+
prefixCls,
|
|
2379
|
+
transitionName,
|
|
2380
|
+
style: { top: defaultTop },
|
|
2381
|
+
getContainer,
|
|
2382
|
+
maxCount
|
|
2383
|
+
},
|
|
2384
|
+
(instance) => {
|
|
2385
|
+
if (messageInstance) {
|
|
2386
|
+
callback({
|
|
2387
|
+
prefixCls,
|
|
2388
|
+
instance: messageInstance
|
|
2389
|
+
});
|
|
2390
|
+
return;
|
|
2391
|
+
}
|
|
2392
|
+
messageInstance = instance;
|
|
2393
|
+
callback({
|
|
2394
|
+
prefixCls,
|
|
2395
|
+
instance
|
|
2396
|
+
});
|
|
2397
|
+
}
|
|
2398
|
+
);
|
|
2399
|
+
}
|
|
2400
|
+
const typeToIcon = {
|
|
2401
|
+
info: InfoCircleFilled,
|
|
2402
|
+
success: CheckCircleFilled,
|
|
2403
|
+
error: CloseCircleFilled$1,
|
|
2404
|
+
warning: ExclamationCircleFilled,
|
|
2405
|
+
loading: LoadingOutlined
|
|
2406
|
+
};
|
|
2407
|
+
function getRCNoticeProps(args, prefixCls) {
|
|
2408
|
+
const duration = args.duration !== void 0 ? args.duration : defaultDuration;
|
|
2409
|
+
const IconComponent = args.type != null ? typeToIcon[args.type] : void 0;
|
|
2410
|
+
const messageClass = cs(`${prefixCls}-custom-content`, {
|
|
2411
|
+
[`${prefixCls}-${args.type}`]: args.type,
|
|
2412
|
+
[`${prefixCls}-rtl`]: rtl === true
|
|
2413
|
+
});
|
|
2406
2414
|
return {
|
|
2407
|
-
|
|
2408
|
-
duration
|
|
2409
|
-
|
|
2415
|
+
key: args.key,
|
|
2416
|
+
duration,
|
|
2417
|
+
style: args.style || {},
|
|
2418
|
+
className: args.className,
|
|
2419
|
+
content: /* @__PURE__ */ React.createElement("div", { className: messageClass }, args.icon || IconComponent && /* @__PURE__ */ React.createElement(IconComponent, null), /* @__PURE__ */ React.createElement("span", null, args.content)),
|
|
2420
|
+
onClose: args.onClose
|
|
2421
|
+
};
|
|
2422
|
+
}
|
|
2423
|
+
function notice(args) {
|
|
2424
|
+
const target = args.key || key++;
|
|
2425
|
+
const closePromise = new Promise((resolve) => {
|
|
2426
|
+
const callback = () => {
|
|
2427
|
+
if (typeof args.onClose === "function") {
|
|
2428
|
+
args.onClose();
|
|
2429
|
+
}
|
|
2430
|
+
return resolve(true);
|
|
2431
|
+
};
|
|
2432
|
+
getRCNotificationInstance(args, ({ prefixCls, instance }) => {
|
|
2433
|
+
instance.notice(
|
|
2434
|
+
getRCNoticeProps(__spreadProps$f(__spreadValues$i({}, args), { key: target, onClose: callback }), prefixCls)
|
|
2435
|
+
);
|
|
2436
|
+
});
|
|
2437
|
+
});
|
|
2438
|
+
const result = () => {
|
|
2439
|
+
if (messageInstance) {
|
|
2440
|
+
messageInstance.removeNotice(target);
|
|
2441
|
+
}
|
|
2442
|
+
};
|
|
2443
|
+
result.then = (filled, rejected) => closePromise.then(filled, rejected);
|
|
2444
|
+
result.promise = closePromise;
|
|
2445
|
+
return result;
|
|
2446
|
+
}
|
|
2447
|
+
function isArgsProps(content) {
|
|
2448
|
+
return Object.prototype.toString.call(content) === "[object Object]" && !!content.content;
|
|
2449
|
+
}
|
|
2450
|
+
const api = {
|
|
2451
|
+
open: notice,
|
|
2452
|
+
config: setMessageConfig,
|
|
2453
|
+
destroy() {
|
|
2454
|
+
if (messageInstance) {
|
|
2455
|
+
messageInstance.destroy();
|
|
2456
|
+
messageInstance = null;
|
|
2457
|
+
}
|
|
2458
|
+
}
|
|
2459
|
+
};
|
|
2460
|
+
function attachTypeApi(originalApi, type) {
|
|
2461
|
+
originalApi[type] = (content, duration, onClose) => {
|
|
2462
|
+
if (isArgsProps(content)) {
|
|
2463
|
+
return originalApi.open(__spreadProps$f(__spreadValues$i({}, content), { type }));
|
|
2464
|
+
}
|
|
2465
|
+
if (typeof duration === "function") {
|
|
2466
|
+
onClose = duration;
|
|
2467
|
+
duration = void 0;
|
|
2468
|
+
}
|
|
2469
|
+
return originalApi.open({ content, duration, type, onClose });
|
|
2410
2470
|
};
|
|
2411
2471
|
}
|
|
2472
|
+
["success", "info", "warning", "error", "loading"].forEach(
|
|
2473
|
+
(type) => attachTypeApi(api, type)
|
|
2474
|
+
);
|
|
2475
|
+
api.warn = api.warning;
|
|
2412
2476
|
|
|
2413
2477
|
var __defProp$h = Object.defineProperty;
|
|
2414
2478
|
var __defProps$e = Object.defineProperties;
|
|
@@ -2571,7 +2635,7 @@ const ctx = createContext({
|
|
|
2571
2635
|
});
|
|
2572
2636
|
const KitStoreProvider = (props) => {
|
|
2573
2637
|
const { children } = props;
|
|
2574
|
-
return /* @__PURE__ */
|
|
2638
|
+
return /* @__PURE__ */ React__default.createElement(Provider, { context: ctx, store: UIKitStore }, children);
|
|
2575
2639
|
};
|
|
2576
2640
|
const useKitDispatch = createDispatchHook(ctx);
|
|
2577
2641
|
const useKitSelector = createSelectorHook(ctx);
|
|
@@ -2667,11 +2731,11 @@ const Modal = (props) => {
|
|
|
2667
2731
|
return text;
|
|
2668
2732
|
}, [okButtonProps == null ? void 0 : okButtonProps.children, okText, t, wizard]);
|
|
2669
2733
|
const prevText = useMemo(() => {
|
|
2670
|
-
let text = /* @__PURE__ */
|
|
2734
|
+
let text = /* @__PURE__ */ React__default.createElement("span", null, "< ", t("common.prev_step"));
|
|
2671
2735
|
if (wizard && typeof wizard === "object" && wizard.steps[wizard.step]) {
|
|
2672
2736
|
const { step, steps } = wizard;
|
|
2673
2737
|
if (typeof steps[step].prevText === "string") {
|
|
2674
|
-
text = /* @__PURE__ */
|
|
2738
|
+
text = /* @__PURE__ */ React__default.createElement("span", null, "< ", steps[step].prevText);
|
|
2675
2739
|
} else if (steps[step].prevText !== void 0) {
|
|
2676
2740
|
text = steps[step].prevText;
|
|
2677
2741
|
}
|
|
@@ -2682,7 +2746,7 @@ const Modal = (props) => {
|
|
|
2682
2746
|
if (wizard && typeof wizard === "object" && !wizard.destroyOtherStep && wizard.steps[wizard.step]) {
|
|
2683
2747
|
stepsRef.current[wizard.step] = wizard.steps[wizard.step].render;
|
|
2684
2748
|
}
|
|
2685
|
-
return /* @__PURE__ */
|
|
2749
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
2686
2750
|
Modal$1,
|
|
2687
2751
|
__spreadProps$c(__spreadValues$f({
|
|
2688
2752
|
maskClosable,
|
|
@@ -2697,7 +2761,7 @@ const Modal = (props) => {
|
|
|
2697
2761
|
onCancel == null ? void 0 : onCancel(e);
|
|
2698
2762
|
transitionClass.current = fullscreen ? "" : "modal-zoom";
|
|
2699
2763
|
},
|
|
2700
|
-
closeIcon: /* @__PURE__ */
|
|
2764
|
+
closeIcon: /* @__PURE__ */ React__default.createElement(CloseCircleFilled, null),
|
|
2701
2765
|
destroyOnClose: true,
|
|
2702
2766
|
focusTriggerAfterClose: false,
|
|
2703
2767
|
transitionName: transitionClass.current
|
|
@@ -2707,7 +2771,7 @@ const Modal = (props) => {
|
|
|
2707
2771
|
dispatch({ type: ModalActions.REMOVE_MODAL, id: idRef.current });
|
|
2708
2772
|
},
|
|
2709
2773
|
visible: idRef.current !== id,
|
|
2710
|
-
footer: /* @__PURE__ */
|
|
2774
|
+
footer: /* @__PURE__ */ React__default.createElement("div", { className: "footer-content" }, footer === void 0 ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", { className: "modal-footer-left" }, wizard && typeof wizard === "object" && !wizard.disablePrevStep && wizard.step !== 0 && /* @__PURE__ */ React__default.createElement(
|
|
2711
2775
|
"span",
|
|
2712
2776
|
{
|
|
2713
2777
|
className: "prev-step",
|
|
@@ -2717,7 +2781,7 @@ const Modal = (props) => {
|
|
|
2717
2781
|
}
|
|
2718
2782
|
},
|
|
2719
2783
|
prevText
|
|
2720
|
-
), error && /* @__PURE__ */
|
|
2784
|
+
), error && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("span", { className: "modal-error" }, error))), /* @__PURE__ */ React__default.createElement("div", { className: "modal-footer-btn-group" }, showCancel && /* @__PURE__ */ React__default.createElement(
|
|
2721
2785
|
Button,
|
|
2722
2786
|
__spreadValues$f({
|
|
2723
2787
|
type: "quiet",
|
|
@@ -2731,7 +2795,7 @@ const Modal = (props) => {
|
|
|
2731
2795
|
className: cs(cancelButtonProps == null ? void 0 : cancelButtonProps.className)
|
|
2732
2796
|
}, cancelButtonProps),
|
|
2733
2797
|
cancelText
|
|
2734
|
-
), showOk && /* @__PURE__ */
|
|
2798
|
+
), showOk && /* @__PURE__ */ React__default.createElement(
|
|
2735
2799
|
Button,
|
|
2736
2800
|
__spreadValues$f({
|
|
2737
2801
|
onClick: (e) => {
|
|
@@ -2748,7 +2812,7 @@ const Modal = (props) => {
|
|
|
2748
2812
|
confirmText
|
|
2749
2813
|
))) : footer)
|
|
2750
2814
|
}),
|
|
2751
|
-
wizard && typeof wizard === "object" ? /* @__PURE__ */
|
|
2815
|
+
wizard && typeof wizard === "object" ? /* @__PURE__ */ React__default.createElement(WizardBody, null, /* @__PURE__ */ React__default.createElement("div", { className: "left" }, /* @__PURE__ */ React__default.createElement(
|
|
2752
2816
|
Steps$1,
|
|
2753
2817
|
{
|
|
2754
2818
|
style: { minWidth: 192 },
|
|
@@ -2759,15 +2823,15 @@ const Modal = (props) => {
|
|
|
2759
2823
|
},
|
|
2760
2824
|
direction: "vertical"
|
|
2761
2825
|
},
|
|
2762
|
-
wizard.steps.map((s, idx) => /* @__PURE__ */
|
|
2826
|
+
wizard.steps.map((s, idx) => /* @__PURE__ */ React__default.createElement(
|
|
2763
2827
|
Steps$1.Step,
|
|
2764
2828
|
{
|
|
2765
2829
|
key: idx,
|
|
2766
|
-
title: /* @__PURE__ */
|
|
2830
|
+
title: /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, idx >= wizard.step ? /* @__PURE__ */ React__default.createElement("span", { className: "step-index" }, idx + 1) : /* @__PURE__ */ React__default.createElement(CheckOutlined, { className: "step-index" }), s.title),
|
|
2767
2831
|
disabled: s.disabled || idx > wizard.step || wizard.disablePrevStep && idx !== wizard.step
|
|
2768
2832
|
}
|
|
2769
2833
|
))
|
|
2770
|
-
)), /* @__PURE__ */
|
|
2834
|
+
)), /* @__PURE__ */ React__default.createElement("div", { className: "middle" }, restProps.children, wizard.destroyOtherStep ? wizard.steps[wizard.step].render : stepsRef.current.map((step, index) => /* @__PURE__ */ React__default.createElement(
|
|
2771
2835
|
"div",
|
|
2772
2836
|
{
|
|
2773
2837
|
key: index,
|
|
@@ -2776,7 +2840,7 @@ const Modal = (props) => {
|
|
|
2776
2840
|
}
|
|
2777
2841
|
},
|
|
2778
2842
|
step
|
|
2779
|
-
))), wizard.right && /* @__PURE__ */
|
|
2843
|
+
))), wizard.right && /* @__PURE__ */ React__default.createElement("div", { className: "right" }, wizard.right)) : restProps.children
|
|
2780
2844
|
);
|
|
2781
2845
|
};
|
|
2782
2846
|
|
|
@@ -2828,16 +2892,16 @@ const Pagination = props => {
|
|
|
2828
2892
|
total: count
|
|
2829
2893
|
});
|
|
2830
2894
|
if (selectorVisible) {
|
|
2831
|
-
return /* @__PURE__ */
|
|
2895
|
+
return /* @__PURE__ */React__default.createElement(Dropdown, {
|
|
2832
2896
|
placement: "topLeft",
|
|
2833
2897
|
overlayClassName: DropdownOverlayStyle,
|
|
2834
|
-
overlay: /* @__PURE__ */
|
|
2898
|
+
overlay: /* @__PURE__ */React__default.createElement(Menu, null, /* @__PURE__ */React__default.createElement(Menu.ItemGroup, {
|
|
2835
2899
|
title: t("components.push_to")
|
|
2836
|
-
}, selectOptions.map(option => /* @__PURE__ */
|
|
2900
|
+
}, selectOptions.map(option => /* @__PURE__ */React__default.createElement(Menu.Item, {
|
|
2837
2901
|
key: option.value,
|
|
2838
2902
|
onClick: () => onChange(option.value)
|
|
2839
2903
|
}, option.text))))
|
|
2840
|
-
}, /* @__PURE__ */
|
|
2904
|
+
}, /* @__PURE__ */React__default.createElement(Icon, {
|
|
2841
2905
|
alt: "arrowChevronDownSmall16Secondary",
|
|
2842
2906
|
className: "pagination-left dropdown-trigger",
|
|
2843
2907
|
src: img$8,
|
|
@@ -2845,22 +2909,22 @@ const Pagination = props => {
|
|
|
2845
2909
|
prefix: content
|
|
2846
2910
|
}));
|
|
2847
2911
|
}
|
|
2848
|
-
return /* @__PURE__ */
|
|
2912
|
+
return /* @__PURE__ */React__default.createElement("span", {
|
|
2849
2913
|
className: "pagination-left"
|
|
2850
2914
|
}, content);
|
|
2851
2915
|
};
|
|
2852
2916
|
if (count === 0) {
|
|
2853
2917
|
return null;
|
|
2854
2918
|
}
|
|
2855
|
-
return /* @__PURE__ */
|
|
2919
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
2856
2920
|
className: cs(PaginationStyle, "pagination-wrapper", className, selectorVisible && "has-selector")
|
|
2857
|
-
}, renderLeft(), /* @__PURE__ */
|
|
2921
|
+
}, renderLeft(), /* @__PURE__ */React__default.createElement("span", {
|
|
2858
2922
|
className: "pagination-right"
|
|
2859
|
-
}, current > 1 && /* @__PURE__ */
|
|
2923
|
+
}, current > 1 && /* @__PURE__ */React__default.createElement(Button, {
|
|
2860
2924
|
className: "prev-btn",
|
|
2861
2925
|
type: "quiet",
|
|
2862
2926
|
size: "small",
|
|
2863
|
-
prefixIcon: /* @__PURE__ */
|
|
2927
|
+
prefixIcon: /* @__PURE__ */React__default.createElement(Icon, {
|
|
2864
2928
|
alt: "arrowChevronLeftSmall16BoldBlue",
|
|
2865
2929
|
src: img$7
|
|
2866
2930
|
}),
|
|
@@ -2869,11 +2933,11 @@ const Pagination = props => {
|
|
|
2869
2933
|
}
|
|
2870
2934
|
}, t("components.previous_items", {
|
|
2871
2935
|
size
|
|
2872
|
-
})), current * size < count && /* @__PURE__ */
|
|
2936
|
+
})), current * size < count && /* @__PURE__ */React__default.createElement(Button, {
|
|
2873
2937
|
className: "next-btn",
|
|
2874
2938
|
type: "quiet",
|
|
2875
2939
|
size: "small",
|
|
2876
|
-
prefixIcon: /* @__PURE__ */
|
|
2940
|
+
prefixIcon: /* @__PURE__ */React__default.createElement(Icon, {
|
|
2877
2941
|
alt: "arrowChevronLeftSmall16BoldBlue",
|
|
2878
2942
|
src: img$7
|
|
2879
2943
|
}),
|
|
@@ -2895,7 +2959,7 @@ const Percent = ({
|
|
|
2895
2959
|
return Empty;
|
|
2896
2960
|
}
|
|
2897
2961
|
const { value, unit } = formatPercent(rawValue, decimals);
|
|
2898
|
-
return /* @__PURE__ */
|
|
2962
|
+
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, unit));
|
|
2899
2963
|
};
|
|
2900
2964
|
|
|
2901
2965
|
var __defProp$e = Object.defineProperty;
|
|
@@ -2914,7 +2978,7 @@ var __spreadValues$e = (a, b) => {
|
|
|
2914
2978
|
}
|
|
2915
2979
|
return a;
|
|
2916
2980
|
};
|
|
2917
|
-
const Progress = (props) => /* @__PURE__ */
|
|
2981
|
+
const Progress = (props) => /* @__PURE__ */ React__default.createElement(Progress$1, __spreadValues$e({}, props));
|
|
2918
2982
|
|
|
2919
2983
|
var __defProp$d = Object.defineProperty;
|
|
2920
2984
|
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
@@ -2944,7 +3008,7 @@ var __objRest$4 = (source, exclude) => {
|
|
|
2944
3008
|
const RadioStyle = "rxbeqvl";
|
|
2945
3009
|
const RadioGroupStyle = "r5ie79y";
|
|
2946
3010
|
const RadioButtonStyle = "r1f0aqcc";
|
|
2947
|
-
const KitRadioGroupContext =
|
|
3011
|
+
const KitRadioGroupContext = React__default.createContext({});
|
|
2948
3012
|
const Radio = _a => {
|
|
2949
3013
|
var _b = _a,
|
|
2950
3014
|
{
|
|
@@ -2957,13 +3021,13 @@ const Radio = _a => {
|
|
|
2957
3021
|
const {
|
|
2958
3022
|
description
|
|
2959
3023
|
} = props;
|
|
2960
|
-
const context =
|
|
3024
|
+
const context = React__default.useContext(KitRadioGroupContext);
|
|
2961
3025
|
if (description) {
|
|
2962
|
-
children = /* @__PURE__ */
|
|
3026
|
+
children = /* @__PURE__ */React__default.createElement(React__default.Fragment, null, children, /* @__PURE__ */React__default.createElement("div", {
|
|
2963
3027
|
className: cx("radio-description", Typo.Label.l4_regular)
|
|
2964
3028
|
}, description));
|
|
2965
3029
|
}
|
|
2966
|
-
return /* @__PURE__ */
|
|
3030
|
+
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Radio$1, __spreadValues$d({
|
|
2967
3031
|
className: cx(className, RadioStyle, compact && "compact"),
|
|
2968
3032
|
checked: checked || false,
|
|
2969
3033
|
"data-test": context.name ? `${context.name}-${String(props.value)}` : String(props.value)
|
|
@@ -2976,12 +3040,12 @@ const RadioGroup = _c => {
|
|
|
2976
3040
|
className
|
|
2977
3041
|
} = _d,
|
|
2978
3042
|
props = __objRest$4(_d, ["children", "className"]);
|
|
2979
|
-
return /* @__PURE__ */
|
|
3043
|
+
return /* @__PURE__ */React__default.createElement(KitRadioGroupContext.Provider, {
|
|
2980
3044
|
value: {
|
|
2981
3045
|
disabled: props.disabled,
|
|
2982
3046
|
name: props.name
|
|
2983
3047
|
}
|
|
2984
|
-
}, /* @__PURE__ */
|
|
3048
|
+
}, /* @__PURE__ */React__default.createElement(Radio$1.Group, __spreadValues$d({
|
|
2985
3049
|
className: cx(className, RadioGroupStyle)
|
|
2986
3050
|
}, props), children ? children : null));
|
|
2987
3051
|
};
|
|
@@ -3003,10 +3067,10 @@ const RadioButton = _e => {
|
|
|
3003
3067
|
} = props;
|
|
3004
3068
|
const [inputValue, setInputValue] = useState(initialValue);
|
|
3005
3069
|
const radioButtonValue = type === "input" || type === "input-number" ? inputValue : props.value;
|
|
3006
|
-
const radioGroupContext =
|
|
3070
|
+
const radioGroupContext = React__default.useContext(KitRadioGroupContext);
|
|
3007
3071
|
const renderInput = () => {
|
|
3008
3072
|
const inputDisabled = props.disabled || (radioGroupContext == null ? void 0 : radioGroupContext.disabled);
|
|
3009
|
-
if (type === "input-number") return /* @__PURE__ */
|
|
3073
|
+
if (type === "input-number") return /* @__PURE__ */React__default.createElement(InputNumber$1, {
|
|
3010
3074
|
className: "ant-radio-button-input",
|
|
3011
3075
|
placeholder,
|
|
3012
3076
|
disabled: inputDisabled,
|
|
@@ -3020,7 +3084,7 @@ const RadioButton = _e => {
|
|
|
3020
3084
|
onInputChange(val);
|
|
3021
3085
|
}
|
|
3022
3086
|
});
|
|
3023
|
-
return /* @__PURE__ */
|
|
3087
|
+
return /* @__PURE__ */React__default.createElement(Input$1, {
|
|
3024
3088
|
className: "ant-radio-button-input",
|
|
3025
3089
|
placeholder,
|
|
3026
3090
|
disabled: inputDisabled,
|
|
@@ -3033,11 +3097,11 @@ const RadioButton = _e => {
|
|
|
3033
3097
|
};
|
|
3034
3098
|
const renderChildren = () => {
|
|
3035
3099
|
if (type !== "input" && type !== "input-number") return children ? children : null;
|
|
3036
|
-
return /* @__PURE__ */
|
|
3100
|
+
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, renderInput(), /* @__PURE__ */React__default.createElement("span", {
|
|
3037
3101
|
className: "ant-radio-button-input-label"
|
|
3038
3102
|
}, typeof children === "string" ? children : ""));
|
|
3039
3103
|
};
|
|
3040
|
-
return /* @__PURE__ */
|
|
3104
|
+
return /* @__PURE__ */React__default.createElement(Radio$1.Button, __spreadValues$d({
|
|
3041
3105
|
className: cx(className, RadioButtonStyle),
|
|
3042
3106
|
value: radioButtonValue
|
|
3043
3107
|
}, props), renderChildren());
|
|
@@ -3074,11 +3138,11 @@ var __objRest$3 = (source, exclude) => {
|
|
|
3074
3138
|
const SearchInput = (props) => {
|
|
3075
3139
|
const _a = props, { onChange, debounceWait = 300 } = _a, restProps = __objRest$3(_a, ["onChange", "debounceWait"]);
|
|
3076
3140
|
const onSearch = _.debounce(onChange, debounceWait);
|
|
3077
|
-
return /* @__PURE__ */
|
|
3141
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
3078
3142
|
Input,
|
|
3079
3143
|
__spreadValues$c({
|
|
3080
3144
|
style: { width: 276 },
|
|
3081
|
-
prefix: /* @__PURE__ */
|
|
3145
|
+
prefix: /* @__PURE__ */ React__default.createElement(SearchOutlined, null),
|
|
3082
3146
|
onChange: (e) => onSearch(e.target.value)
|
|
3083
3147
|
}, restProps)
|
|
3084
3148
|
);
|
|
@@ -3096,7 +3160,7 @@ const Second = ({
|
|
|
3096
3160
|
return Empty;
|
|
3097
3161
|
}
|
|
3098
3162
|
const { value, unit } = formatSeconds(rawValue, decimals);
|
|
3099
|
-
return /* @__PURE__ */
|
|
3163
|
+
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value, " "), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, t(`common.${abbreviate ? `${unit}_abbreviation` : unit}`)));
|
|
3100
3164
|
};
|
|
3101
3165
|
|
|
3102
3166
|
const inputStyle = "igz4le8";
|
|
@@ -3122,29 +3186,29 @@ const SimplePagination = props => {
|
|
|
3122
3186
|
onPageChange == null ? void 0 : onPageChange(1);
|
|
3123
3187
|
}
|
|
3124
3188
|
}, [onPageChange, pageLength]);
|
|
3125
|
-
return /* @__PURE__ */
|
|
3189
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
3126
3190
|
className: cs(PaginationStyle, "pagination-wrapper", className)
|
|
3127
|
-
}, /* @__PURE__ */
|
|
3191
|
+
}, /* @__PURE__ */React__default.createElement("span", {
|
|
3128
3192
|
className: Typo.Label.l3_regular_title
|
|
3129
3193
|
}, t("components.pagination_lots_total", {
|
|
3130
3194
|
total: count
|
|
3131
|
-
})), /* @__PURE__ */
|
|
3195
|
+
})), /* @__PURE__ */React__default.createElement("span", {
|
|
3132
3196
|
className: "pagination-right"
|
|
3133
|
-
}, showPrev && /* @__PURE__ */
|
|
3197
|
+
}, showPrev && /* @__PURE__ */React__default.createElement(Button, {
|
|
3134
3198
|
className: "prev-btn",
|
|
3135
3199
|
type: "quiet",
|
|
3136
3200
|
size: "small",
|
|
3137
3201
|
style: {
|
|
3138
3202
|
marginRight: "8px"
|
|
3139
3203
|
},
|
|
3140
|
-
prefixIcon: /* @__PURE__ */
|
|
3204
|
+
prefixIcon: /* @__PURE__ */React__default.createElement(Icon, {
|
|
3141
3205
|
alt: "arrowChevronLeftSmall16BoldBlue",
|
|
3142
3206
|
src: img$7
|
|
3143
3207
|
}),
|
|
3144
3208
|
onClick: () => {
|
|
3145
3209
|
onPageChange == null ? void 0 : onPageChange(current - 1);
|
|
3146
3210
|
}
|
|
3147
|
-
}), /* @__PURE__ */
|
|
3211
|
+
}), /* @__PURE__ */React__default.createElement(InputInteger, {
|
|
3148
3212
|
className: cs(Typo.Label.l3_regular, inputStyle),
|
|
3149
3213
|
value: current,
|
|
3150
3214
|
size: "small",
|
|
@@ -3156,16 +3220,16 @@ const SimplePagination = props => {
|
|
|
3156
3220
|
onBlur: event => {
|
|
3157
3221
|
changeValue(event.target.value);
|
|
3158
3222
|
}
|
|
3159
|
-
}), /* @__PURE__ */
|
|
3223
|
+
}), /* @__PURE__ */React__default.createElement("span", {
|
|
3160
3224
|
className: cs("c1riexje", Typo.Label.l3_regular_upper)
|
|
3161
|
-
}, `/ ${pageLength}`), showNext && /* @__PURE__ */
|
|
3225
|
+
}, `/ ${pageLength}`), showNext && /* @__PURE__ */React__default.createElement(Button, {
|
|
3162
3226
|
className: "next-btn",
|
|
3163
3227
|
type: "quiet",
|
|
3164
3228
|
size: "small",
|
|
3165
3229
|
style: {
|
|
3166
3230
|
marginLeft: "8px"
|
|
3167
3231
|
},
|
|
3168
|
-
prefixIcon: /* @__PURE__ */
|
|
3232
|
+
prefixIcon: /* @__PURE__ */React__default.createElement(Icon, {
|
|
3169
3233
|
alt: "arrowChevronLeftSmall16BoldBlue",
|
|
3170
3234
|
src: img$7
|
|
3171
3235
|
}),
|
|
@@ -3185,7 +3249,7 @@ const Speed = ({
|
|
|
3185
3249
|
return Empty;
|
|
3186
3250
|
}
|
|
3187
3251
|
const { value, unit } = formatSpeed(rawValue, decimals);
|
|
3188
|
-
return /* @__PURE__ */
|
|
3252
|
+
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
3189
3253
|
};
|
|
3190
3254
|
|
|
3191
3255
|
var __defProp$b = Object.defineProperty;
|
|
@@ -3229,14 +3293,14 @@ const Steps = props => {
|
|
|
3229
3293
|
showStepCount
|
|
3230
3294
|
} = _a,
|
|
3231
3295
|
stepsProps = __objRest$2(_a, ["stepsConfig", "containerClassname", "showStepCount"]);
|
|
3232
|
-
const titleWithCount = (_step, count) => /* @__PURE__ */
|
|
3296
|
+
const titleWithCount = (_step, count) => /* @__PURE__ */React__default.createElement(React__default.Fragment, null, showStepCount ? /* @__PURE__ */React__default.createElement("span", {
|
|
3233
3297
|
className: "step-count"
|
|
3234
3298
|
}, count) : null, _step.title);
|
|
3235
|
-
return /* @__PURE__ */
|
|
3299
|
+
return /* @__PURE__ */React__default.createElement(StepsContainer, {
|
|
3236
3300
|
className: containerClassname
|
|
3237
|
-
}, /* @__PURE__ */
|
|
3301
|
+
}, /* @__PURE__ */React__default.createElement(Steps$1, __spreadProps$b(__spreadValues$b({}, stepsProps), {
|
|
3238
3302
|
type: "default"
|
|
3239
|
-
}), (stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */
|
|
3303
|
+
}), (stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */React__default.createElement(Steps$1.Step, __spreadProps$b(__spreadValues$b({
|
|
3240
3304
|
key: index
|
|
3241
3305
|
}, step), {
|
|
3242
3306
|
title: titleWithCount(step, index + 1)
|
|
@@ -3287,12 +3351,12 @@ const Switch = _a => {
|
|
|
3287
3351
|
});
|
|
3288
3352
|
const classNames = [className, SwitchStyle, "switch"];
|
|
3289
3353
|
if (props.size === "large") classNames.push("ant-switch-large");
|
|
3290
|
-
return /* @__PURE__ */
|
|
3354
|
+
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Switch$1, __spreadProps$a(__spreadValues$a({
|
|
3291
3355
|
className: cx(...classNames),
|
|
3292
3356
|
checked: checked || false
|
|
3293
3357
|
}, props), {
|
|
3294
3358
|
size: props.size
|
|
3295
|
-
})), children ? /* @__PURE__ */
|
|
3359
|
+
})), children ? /* @__PURE__ */React__default.createElement(Content, null, children) : null);
|
|
3296
3360
|
};
|
|
3297
3361
|
|
|
3298
3362
|
function canScroll(el, direction = "vertical") {
|
|
@@ -3345,18 +3409,18 @@ const TableLoading = () => {
|
|
|
3345
3409
|
const rows = Array.from({
|
|
3346
3410
|
length: rowLength
|
|
3347
3411
|
}, (r, i) => i);
|
|
3348
|
-
return /* @__PURE__ */
|
|
3412
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
3349
3413
|
className: `${TableLoadingStyle} table-loading`
|
|
3350
|
-
}, rows.map(i => /* @__PURE__ */
|
|
3414
|
+
}, rows.map(i => /* @__PURE__ */React__default.createElement("div", {
|
|
3351
3415
|
key: i,
|
|
3352
3416
|
className: "table-loading-item"
|
|
3353
|
-
}, /* @__PURE__ */
|
|
3417
|
+
}, /* @__PURE__ */React__default.createElement("div", {
|
|
3354
3418
|
className: "checkbox-loading"
|
|
3355
|
-
}), /* @__PURE__ */
|
|
3419
|
+
}), /* @__PURE__ */React__default.createElement("div", {
|
|
3356
3420
|
className: "td-loading"
|
|
3357
|
-
}), /* @__PURE__ */
|
|
3421
|
+
}), /* @__PURE__ */React__default.createElement("div", {
|
|
3358
3422
|
className: "td-loading"
|
|
3359
|
-
}), /* @__PURE__ */
|
|
3423
|
+
}), /* @__PURE__ */React__default.createElement("div", {
|
|
3360
3424
|
className: "td-loading"
|
|
3361
3425
|
}))));
|
|
3362
3426
|
};
|
|
@@ -3366,7 +3430,7 @@ const ColumnTitle = props => {
|
|
|
3366
3430
|
title,
|
|
3367
3431
|
sortOrder
|
|
3368
3432
|
} = props;
|
|
3369
|
-
return /* @__PURE__ */
|
|
3433
|
+
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, title, /* @__PURE__ */React__default.createElement(Icon, {
|
|
3370
3434
|
alt: "arrowChevronUp16BoldSecondary",
|
|
3371
3435
|
className: cs("order-icon", sortOrder),
|
|
3372
3436
|
src: img$6
|
|
@@ -3420,7 +3484,7 @@ const Table = props => {
|
|
|
3420
3484
|
const _columns = useMemo(() => columns.map(column => {
|
|
3421
3485
|
const _column = __spreadValues$9({}, column);
|
|
3422
3486
|
if (_column.sorter) {
|
|
3423
|
-
_column.title = /* @__PURE__ */
|
|
3487
|
+
_column.title = /* @__PURE__ */React__default.createElement(ColumnTitle, {
|
|
3424
3488
|
title: column.title,
|
|
3425
3489
|
sortOrder: column.sortOrder
|
|
3426
3490
|
});
|
|
@@ -3430,17 +3494,17 @@ const Table = props => {
|
|
|
3430
3494
|
}
|
|
3431
3495
|
return _column;
|
|
3432
3496
|
}), [columns]);
|
|
3433
|
-
return /* @__PURE__ */
|
|
3497
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
3434
3498
|
className: cx(TableContainerStyle, "table-container", !hasScrollBard && "no-scroll-bar")
|
|
3435
|
-
}, /* @__PURE__ */
|
|
3499
|
+
}, /* @__PURE__ */React__default.createElement(Table$1, {
|
|
3436
3500
|
className: cs(tableStyleCover, !(dataSource == null ? void 0 : dataSource.length) && "empty-table", initLoading && "table-init-loading", rowSelection && "has-selection"),
|
|
3437
3501
|
bordered,
|
|
3438
3502
|
loading: {
|
|
3439
3503
|
spinning: loading,
|
|
3440
|
-
indicator: initLoading ? /* @__PURE__ */
|
|
3504
|
+
indicator: initLoading ? /* @__PURE__ */React__default.createElement(TableLoading, null) : /* @__PURE__ */React__default.createElement(Loading, null)
|
|
3441
3505
|
},
|
|
3442
3506
|
locale: {
|
|
3443
|
-
emptyText: error || /* @__PURE__ */
|
|
3507
|
+
emptyText: error || /* @__PURE__ */React__default.createElement(React__default.Fragment, null, loading ? "" : empty)
|
|
3444
3508
|
},
|
|
3445
3509
|
dataSource: dataSource || [],
|
|
3446
3510
|
pagination: pagination || false,
|
|
@@ -3589,12 +3653,12 @@ const AddRowButton = (props) => {
|
|
|
3589
3653
|
if (!columns.length) {
|
|
3590
3654
|
return null;
|
|
3591
3655
|
}
|
|
3592
|
-
return CustomizedButton ? /* @__PURE__ */
|
|
3656
|
+
return CustomizedButton ? /* @__PURE__ */ React__default.createElement(CustomizedButton, __spreadValues$8({}, props)) : /* @__PURE__ */ React__default.createElement(AddRowButtonWrapper, { className }, /* @__PURE__ */ React__default.createElement(
|
|
3593
3657
|
Button,
|
|
3594
3658
|
__spreadProps$8(__spreadValues$8({}, restButtonProps), {
|
|
3595
3659
|
type: restButtonProps.type || "ordinary",
|
|
3596
3660
|
size: restButtonProps.size || "small",
|
|
3597
|
-
icon: restButtonProps.icon || /* @__PURE__ */
|
|
3661
|
+
icon: restButtonProps.icon || /* @__PURE__ */ React__default.createElement(PlusOutlined, null),
|
|
3598
3662
|
className: cx(Typo.Label.l3_regular, restButtonProps.className),
|
|
3599
3663
|
onClick: (e) => {
|
|
3600
3664
|
onAdd(e, data);
|
|
@@ -3602,7 +3666,7 @@ const AddRowButton = (props) => {
|
|
|
3602
3666
|
disabled
|
|
3603
3667
|
}),
|
|
3604
3668
|
CustomizedButtonText || t("components.add")
|
|
3605
|
-
), typeof maximum === "number" ? /* @__PURE__ */
|
|
3669
|
+
), typeof maximum === "number" ? /* @__PURE__ */ React__default.createElement(
|
|
3606
3670
|
"span",
|
|
3607
3671
|
{
|
|
3608
3672
|
className: cx(
|
|
@@ -3637,7 +3701,7 @@ const AffixColumnHeaderCell = ({ data, column, onChange, onBlur }) => {
|
|
|
3637
3701
|
},
|
|
3638
3702
|
[prefix, onChange]
|
|
3639
3703
|
);
|
|
3640
|
-
return /* @__PURE__ */
|
|
3704
|
+
return /* @__PURE__ */ React__default.createElement(Space, null, !column.disablePrefix ? /* @__PURE__ */ React__default.createElement(
|
|
3641
3705
|
Input$1,
|
|
3642
3706
|
{
|
|
3643
3707
|
value: prefix,
|
|
@@ -3646,7 +3710,7 @@ const AffixColumnHeaderCell = ({ data, column, onChange, onBlur }) => {
|
|
|
3646
3710
|
onChange: onPrefixChange,
|
|
3647
3711
|
onBlur
|
|
3648
3712
|
}
|
|
3649
|
-
) : void 0, !column.disableSuffix ? /* @__PURE__ */
|
|
3713
|
+
) : void 0, !column.disableSuffix ? /* @__PURE__ */ React__default.createElement(
|
|
3650
3714
|
Input$1,
|
|
3651
3715
|
{
|
|
3652
3716
|
value: suffix,
|
|
@@ -3665,7 +3729,7 @@ const CheckboxColumnHeaderCell = ({ onChange }) => {
|
|
|
3665
3729
|
},
|
|
3666
3730
|
[onChange]
|
|
3667
3731
|
);
|
|
3668
|
-
return /* @__PURE__ */
|
|
3732
|
+
return /* @__PURE__ */ React__default.createElement(Checkbox$1, { onChange: _onChange });
|
|
3669
3733
|
};
|
|
3670
3734
|
const CheckboxColumnBodyCell = ({ data, column, index, onChange }) => {
|
|
3671
3735
|
const value = data[index][column.key] === void 0 ? column.defaultValue : data[index][column.key];
|
|
@@ -3676,7 +3740,7 @@ const CheckboxColumnBodyCell = ({ data, column, index, onChange }) => {
|
|
|
3676
3740
|
[onChange]
|
|
3677
3741
|
);
|
|
3678
3742
|
const defaultChecked = column.defaultValue;
|
|
3679
|
-
return /* @__PURE__ */
|
|
3743
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
3680
3744
|
Checkbox$1,
|
|
3681
3745
|
{
|
|
3682
3746
|
checked: value,
|
|
@@ -3718,17 +3782,17 @@ const InputPassword = (props) => {
|
|
|
3718
3782
|
(_a = props == null ? void 0 : props.onVisibleChange) == null ? void 0 : _a.call(props, !showPassword);
|
|
3719
3783
|
};
|
|
3720
3784
|
const inputType = showPassword ? "text" : "password";
|
|
3721
|
-
return /* @__PURE__ */
|
|
3785
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
3722
3786
|
Input$1,
|
|
3723
3787
|
__spreadProps$7(__spreadValues$7({}, props), {
|
|
3724
3788
|
type: inputType,
|
|
3725
|
-
suffix: showPassword ? /* @__PURE__ */
|
|
3789
|
+
suffix: showPassword ? /* @__PURE__ */ React__default.createElement(
|
|
3726
3790
|
EyeOutlined,
|
|
3727
3791
|
{
|
|
3728
3792
|
className: "ant-input-password-icon",
|
|
3729
3793
|
onClick: toggleShowPassword
|
|
3730
3794
|
}
|
|
3731
|
-
) : /* @__PURE__ */
|
|
3795
|
+
) : /* @__PURE__ */ React__default.createElement(
|
|
3732
3796
|
EyeInvisibleOutlined,
|
|
3733
3797
|
{
|
|
3734
3798
|
className: "ant-input-password-icon",
|
|
@@ -3740,16 +3804,16 @@ const InputPassword = (props) => {
|
|
|
3740
3804
|
};
|
|
3741
3805
|
const CustomInput = (props) => {
|
|
3742
3806
|
if (props.type === "password") {
|
|
3743
|
-
return /* @__PURE__ */
|
|
3807
|
+
return /* @__PURE__ */ React__default.createElement(InputPassword, __spreadValues$7({}, props));
|
|
3744
3808
|
}
|
|
3745
|
-
return /* @__PURE__ */
|
|
3809
|
+
return /* @__PURE__ */ React__default.createElement(Input$1, __spreadValues$7({}, props));
|
|
3746
3810
|
};
|
|
3747
3811
|
const InputColumnHeaderCell = ({ disabled, column, onChange, onBlur, onVisibleChange }) => {
|
|
3748
3812
|
const _onChange = (e) => {
|
|
3749
3813
|
const newValue = e.target.value;
|
|
3750
3814
|
onChange(newValue);
|
|
3751
3815
|
};
|
|
3752
|
-
return /* @__PURE__ */
|
|
3816
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
3753
3817
|
CustomInput,
|
|
3754
3818
|
{
|
|
3755
3819
|
type: column.type,
|
|
@@ -3777,7 +3841,7 @@ const InputColumnBodyCell = ({
|
|
|
3777
3841
|
const newValue = e.target.value;
|
|
3778
3842
|
onChange(newValue);
|
|
3779
3843
|
};
|
|
3780
|
-
return /* @__PURE__ */
|
|
3844
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
3781
3845
|
CustomInput,
|
|
3782
3846
|
{
|
|
3783
3847
|
size: "small",
|
|
@@ -3796,7 +3860,7 @@ const InputColumnBodyCell = ({
|
|
|
3796
3860
|
const TextColumnHeaderCell = ({
|
|
3797
3861
|
column
|
|
3798
3862
|
}) => {
|
|
3799
|
-
return /* @__PURE__ */
|
|
3863
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
3800
3864
|
"p",
|
|
3801
3865
|
{
|
|
3802
3866
|
className: cx(Typo.Label.l4_regular, SubtitleStyle, column.subTitleColor)
|
|
@@ -3812,13 +3876,13 @@ const TextColumnBodyCell = ({ data, column, index }) => {
|
|
|
3812
3876
|
rowIndex: index,
|
|
3813
3877
|
rowData: data[index]
|
|
3814
3878
|
})) != null ? _b : null;
|
|
3815
|
-
return typeof Result === "string" ? /* @__PURE__ */
|
|
3879
|
+
return typeof Result === "string" ? /* @__PURE__ */ React__default.createElement("p", { className: cx(Typo.Label.l4_regular, "cell-description") }, Result) : Result;
|
|
3816
3880
|
}, [index, data, column]);
|
|
3817
3881
|
const Text = useMemo(
|
|
3818
|
-
() => /* @__PURE__ */
|
|
3882
|
+
() => /* @__PURE__ */ React__default.createElement("p", { className: cx(Typo.Label.l3_regular, BodyCellTextStyle) }, text),
|
|
3819
3883
|
[text]
|
|
3820
3884
|
);
|
|
3821
|
-
return /* @__PURE__ */
|
|
3885
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
3822
3886
|
BodyCellTextWrapper,
|
|
3823
3887
|
{
|
|
3824
3888
|
className: !!CellDescription ? "with-description" : void 0
|
|
@@ -3843,15 +3907,15 @@ const ColumnBodyImpls = {
|
|
|
3843
3907
|
checkbox: CheckboxColumnBodyCell
|
|
3844
3908
|
};
|
|
3845
3909
|
|
|
3846
|
-
const FormItemStyle
|
|
3847
|
-
const FormItem
|
|
3910
|
+
const FormItemStyle = "feau332";
|
|
3911
|
+
const FormItem = props => {
|
|
3848
3912
|
const {
|
|
3849
3913
|
validateStatus,
|
|
3850
3914
|
message,
|
|
3851
3915
|
children
|
|
3852
3916
|
} = props;
|
|
3853
|
-
return /* @__PURE__ */
|
|
3854
|
-
className: FormItemStyle
|
|
3917
|
+
return /* @__PURE__ */React__default.createElement(Form$1.Item, {
|
|
3918
|
+
className: FormItemStyle,
|
|
3855
3919
|
validateStatus,
|
|
3856
3920
|
help: validateStatus && message ? message : void 0
|
|
3857
3921
|
}, children);
|
|
@@ -3943,7 +4007,7 @@ const TableFormBodyCell = (props) => {
|
|
|
3943
4007
|
if (!column.type)
|
|
3944
4008
|
return null;
|
|
3945
4009
|
const CellComponent = ColumnBodyImpls[column.type];
|
|
3946
|
-
return /* @__PURE__ */
|
|
4010
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
3947
4011
|
CellComponent,
|
|
3948
4012
|
{
|
|
3949
4013
|
disabled,
|
|
@@ -3980,9 +4044,9 @@ const TableFormBodyCell = (props) => {
|
|
|
3980
4044
|
rowData: data[rowIndex],
|
|
3981
4045
|
latestData
|
|
3982
4046
|
})) || null;
|
|
3983
|
-
return typeof Result === "string" ? /* @__PURE__ */
|
|
4047
|
+
return typeof Result === "string" ? /* @__PURE__ */ React__default.createElement("p", { className: cx(Typo.Label.l4_regular, "cell-description") }, Result) : Result;
|
|
3984
4048
|
}, [rowIndex, data, latestData, column]);
|
|
3985
|
-
return /* @__PURE__ */
|
|
4049
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
3986
4050
|
"div",
|
|
3987
4051
|
{
|
|
3988
4052
|
className: cx("eagle-table-form-cell", `align-${column.align || "left"}`),
|
|
@@ -3992,8 +4056,8 @@ const TableFormBodyCell = (props) => {
|
|
|
3992
4056
|
visibility: column.hidden ? "hidden" : "visible"
|
|
3993
4057
|
}
|
|
3994
4058
|
},
|
|
3995
|
-
/* @__PURE__ */
|
|
3996
|
-
FormItem
|
|
4059
|
+
/* @__PURE__ */ React__default.createElement(
|
|
4060
|
+
FormItem,
|
|
3997
4061
|
{
|
|
3998
4062
|
validateStatus: isRowError || (validateResult == null ? void 0 : validateResult.isError) ? "error" : "",
|
|
3999
4063
|
message: isRowError ? "" : validateResult == null ? void 0 : validateResult.msg
|
|
@@ -4060,7 +4124,7 @@ const TableFormRow = (props) => {
|
|
|
4060
4124
|
rowIndex,
|
|
4061
4125
|
data
|
|
4062
4126
|
);
|
|
4063
|
-
const DeleteIcon = /* @__PURE__ */
|
|
4127
|
+
const DeleteIcon = /* @__PURE__ */ React__default.createElement(
|
|
4064
4128
|
Icon,
|
|
4065
4129
|
{
|
|
4066
4130
|
className: cx("delete-row-icon", isRowDeleteDisabled && "disabled"),
|
|
@@ -4073,7 +4137,7 @@ const TableFormRow = (props) => {
|
|
|
4073
4137
|
}
|
|
4074
4138
|
}
|
|
4075
4139
|
);
|
|
4076
|
-
const FinalRenderIcon = isRowDeleteDisabled ? DeleteIcon : /* @__PURE__ */
|
|
4140
|
+
const FinalRenderIcon = isRowDeleteDisabled ? DeleteIcon : /* @__PURE__ */ React__default.createElement(Tooltip, { title: t("components.remove") }, DeleteIcon);
|
|
4077
4141
|
return (deleteConfig == null ? void 0 : deleteConfig.deletable) ? [FinalRenderIcon] : void 0;
|
|
4078
4142
|
}, [deleteConfig, rowIndex, data, t, deleteRow]);
|
|
4079
4143
|
const getRowValidateResult = useCallback(
|
|
@@ -4085,7 +4149,7 @@ const TableFormRow = (props) => {
|
|
|
4085
4149
|
[rowValidator, rowIndex]
|
|
4086
4150
|
);
|
|
4087
4151
|
const Cells = columns.map((col) => {
|
|
4088
|
-
return /* @__PURE__ */
|
|
4152
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
4089
4153
|
TableFormBodyCell,
|
|
4090
4154
|
{
|
|
4091
4155
|
key: col.key,
|
|
@@ -4105,7 +4169,7 @@ const TableFormRow = (props) => {
|
|
|
4105
4169
|
);
|
|
4106
4170
|
});
|
|
4107
4171
|
const DraggableHandle = useMemo(
|
|
4108
|
-
() => draggable && provided ? /* @__PURE__ */
|
|
4172
|
+
() => draggable && provided ? /* @__PURE__ */ React__default.createElement(DraggableHandleWrapper, __spreadValues$5({}, provided.dragHandleProps), /* @__PURE__ */ React__default.createElement(
|
|
4109
4173
|
Icon,
|
|
4110
4174
|
{
|
|
4111
4175
|
src: HandlePoint816SecondaryIcon,
|
|
@@ -4120,9 +4184,9 @@ const TableFormRow = (props) => {
|
|
|
4120
4184
|
rowData,
|
|
4121
4185
|
latestData
|
|
4122
4186
|
})) || null;
|
|
4123
|
-
return typeof RenderResult === "string" ? /* @__PURE__ */
|
|
4187
|
+
return typeof RenderResult === "string" ? /* @__PURE__ */ React__default.createElement("p", { className: cx(Typo.Label.l4_regular, "row-description") }, RenderResult) : RenderResult;
|
|
4124
4188
|
}, [rowIndex, rowData, latestData, renderRowDescription]);
|
|
4125
|
-
return /* @__PURE__ */
|
|
4189
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
4126
4190
|
List.Item,
|
|
4127
4191
|
{
|
|
4128
4192
|
key: rowIndex,
|
|
@@ -4134,7 +4198,7 @@ const TableFormRow = (props) => {
|
|
|
4134
4198
|
},
|
|
4135
4199
|
DraggableHandle,
|
|
4136
4200
|
Cells,
|
|
4137
|
-
rowError ? /* @__PURE__ */
|
|
4201
|
+
rowError ? /* @__PURE__ */ React__default.createElement("p", { className: cx(Typo.Label.l4_regular, "row-error-message") }, rowError) : null,
|
|
4138
4202
|
RowDescription
|
|
4139
4203
|
);
|
|
4140
4204
|
};
|
|
@@ -4152,20 +4216,20 @@ const TableFormBodyRows = memo((props) => {
|
|
|
4152
4216
|
},
|
|
4153
4217
|
[data, updateData]
|
|
4154
4218
|
);
|
|
4155
|
-
return draggable ? /* @__PURE__ */
|
|
4219
|
+
return draggable ? /* @__PURE__ */ React__default.createElement(DragDropContext, { onDragEnd }, /* @__PURE__ */ React__default.createElement(Droppable, { droppableId: "droppable" }, (provided) => /* @__PURE__ */ React__default.createElement(
|
|
4156
4220
|
"div",
|
|
4157
4221
|
__spreadValues$5({
|
|
4158
4222
|
className: "draggable-container",
|
|
4159
4223
|
ref: provided.innerRef
|
|
4160
4224
|
}, provided.droppableProps),
|
|
4161
|
-
data.map((_d, i) => /* @__PURE__ */
|
|
4225
|
+
data.map((_d, i) => /* @__PURE__ */ React__default.createElement(
|
|
4162
4226
|
Draggable,
|
|
4163
4227
|
{
|
|
4164
4228
|
draggableId: `draggable-id-${i}`,
|
|
4165
4229
|
key: `draggable-id-${i}`,
|
|
4166
4230
|
index: i
|
|
4167
4231
|
},
|
|
4168
|
-
(provided2, snapshot) => /* @__PURE__ */
|
|
4232
|
+
(provided2, snapshot) => /* @__PURE__ */ React__default.createElement("div", __spreadValues$5({ ref: provided2.innerRef }, provided2.draggableProps), /* @__PURE__ */ React__default.createElement(
|
|
4169
4233
|
TableFormRow,
|
|
4170
4234
|
__spreadProps$5(__spreadValues$5({}, props), {
|
|
4171
4235
|
rowIndex: i,
|
|
@@ -4175,7 +4239,7 @@ const TableFormBodyRows = memo((props) => {
|
|
|
4175
4239
|
))
|
|
4176
4240
|
)),
|
|
4177
4241
|
provided.placeholder
|
|
4178
|
-
))) : /* @__PURE__ */
|
|
4242
|
+
))) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, data.map((_d, i) => /* @__PURE__ */ React__default.createElement(TableFormRow, __spreadProps$5(__spreadValues$5({}, props), { rowIndex: i, key: `table-row-${i}` }))));
|
|
4179
4243
|
});
|
|
4180
4244
|
|
|
4181
4245
|
var __defProp$4 = Object.defineProperty;
|
|
@@ -4223,7 +4287,7 @@ const BatchInputListHeaderCell = (props) => {
|
|
|
4223
4287
|
if (!column.type)
|
|
4224
4288
|
return null;
|
|
4225
4289
|
const CellComponent = ColumnHeaderImpls[column.type];
|
|
4226
|
-
return /* @__PURE__ */
|
|
4290
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
4227
4291
|
CellComponent,
|
|
4228
4292
|
__spreadProps$4(__spreadValues$4({}, props), {
|
|
4229
4293
|
column,
|
|
@@ -4238,7 +4302,7 @@ const BatchInputListHeaderCell = (props) => {
|
|
|
4238
4302
|
onChange: headerOnChange,
|
|
4239
4303
|
onBlur: _onBlur
|
|
4240
4304
|
}) : renderDefaultComponent();
|
|
4241
|
-
return /* @__PURE__ */
|
|
4305
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
4242
4306
|
"div",
|
|
4243
4307
|
{
|
|
4244
4308
|
className: cx("eagle-table-form-cell", `align-${column.align || "left"}`),
|
|
@@ -4248,9 +4312,9 @@ const BatchInputListHeaderCell = (props) => {
|
|
|
4248
4312
|
visibility: column.hidden ? "hidden" : "visible"
|
|
4249
4313
|
}
|
|
4250
4314
|
},
|
|
4251
|
-
/* @__PURE__ */
|
|
4252
|
-
disableBatchFilling ? null : /* @__PURE__ */
|
|
4253
|
-
FormItem
|
|
4315
|
+
/* @__PURE__ */ React__default.createElement("p", { className: cx(Typo.Label.l3_bold_title, TitleStyle) }, column.title),
|
|
4316
|
+
disableBatchFilling ? null : /* @__PURE__ */ React__default.createElement(
|
|
4317
|
+
FormItem,
|
|
4254
4318
|
{
|
|
4255
4319
|
validateStatus: typeof errMsg === "string" && errMsg ? "error" : "",
|
|
4256
4320
|
message: errMsg || void 0
|
|
@@ -4280,7 +4344,7 @@ var __spreadValues$3 = (a, b) => {
|
|
|
4280
4344
|
};
|
|
4281
4345
|
var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
|
|
4282
4346
|
const DEFAULT_ROW_COUNT = 3;
|
|
4283
|
-
const TableForm =
|
|
4347
|
+
const TableForm = React__default.forwardRef(
|
|
4284
4348
|
({
|
|
4285
4349
|
defaultData = [],
|
|
4286
4350
|
columns,
|
|
@@ -4362,7 +4426,7 @@ const TableForm = React.forwardRef(
|
|
|
4362
4426
|
[updateData]
|
|
4363
4427
|
);
|
|
4364
4428
|
const headerCells = columns.map((col) => {
|
|
4365
|
-
return /* @__PURE__ */
|
|
4429
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
4366
4430
|
BatchInputListHeaderCell,
|
|
4367
4431
|
{
|
|
4368
4432
|
key: col.key,
|
|
@@ -4383,21 +4447,21 @@ const TableForm = React.forwardRef(
|
|
|
4383
4447
|
} : void 0,
|
|
4384
4448
|
[]
|
|
4385
4449
|
);
|
|
4386
|
-
return /* @__PURE__ */
|
|
4450
|
+
return /* @__PURE__ */ React__default.createElement("div", { className }, /* @__PURE__ */ React__default.createElement(
|
|
4387
4451
|
TableFormWrapper,
|
|
4388
4452
|
{
|
|
4389
4453
|
className: `table-form row-split-by-${rowSplitType}`,
|
|
4390
4454
|
style: tableFormWrapperStyle
|
|
4391
4455
|
},
|
|
4392
|
-
/* @__PURE__ */
|
|
4456
|
+
/* @__PURE__ */ React__default.createElement(List, { size, className: `size-${size}` }, /* @__PURE__ */ React__default.createElement(
|
|
4393
4457
|
List.Item,
|
|
4394
4458
|
{
|
|
4395
4459
|
className: "eagle-table-form-header",
|
|
4396
|
-
actions: (deleteConfig == null ? void 0 : deleteConfig.deletable) ? [/* @__PURE__ */
|
|
4460
|
+
actions: (deleteConfig == null ? void 0 : deleteConfig.deletable) ? [/* @__PURE__ */ React__default.createElement(React__default.Fragment, null)] : void 0
|
|
4397
4461
|
},
|
|
4398
|
-
draggable ? /* @__PURE__ */
|
|
4462
|
+
draggable ? /* @__PURE__ */ React__default.createElement(DraggableHandleWrapper, null) : null,
|
|
4399
4463
|
headerCells
|
|
4400
|
-
), /* @__PURE__ */
|
|
4464
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
4401
4465
|
TableFormBodyRows,
|
|
4402
4466
|
{
|
|
4403
4467
|
data,
|
|
@@ -4416,7 +4480,7 @@ const TableForm = React.forwardRef(
|
|
|
4416
4480
|
validateAll
|
|
4417
4481
|
}
|
|
4418
4482
|
))
|
|
4419
|
-
), (rowAddConfig == null ? void 0 : rowAddConfig.addible) ? /* @__PURE__ */
|
|
4483
|
+
), (rowAddConfig == null ? void 0 : rowAddConfig.addible) ? /* @__PURE__ */ React__default.createElement(
|
|
4420
4484
|
AddRowButton,
|
|
4421
4485
|
{
|
|
4422
4486
|
config: rowAddConfig,
|
|
@@ -4492,24 +4556,24 @@ const TimeZoneSelect = props => {
|
|
|
4492
4556
|
setInnerValue(value);
|
|
4493
4557
|
}, [innerValue, value]);
|
|
4494
4558
|
const timeZoneOptionGroups = timeZoneGroups.map(([key, timezones]) => {
|
|
4495
|
-
return /* @__PURE__ */
|
|
4559
|
+
return /* @__PURE__ */React__default.createElement(Select$1.OptGroup, {
|
|
4496
4560
|
label: key.toUpperCase()
|
|
4497
4561
|
}, timezones.map(zone => {
|
|
4498
|
-
return /* @__PURE__ */
|
|
4562
|
+
return /* @__PURE__ */React__default.createElement(Select$1.Option, {
|
|
4499
4563
|
label: `${zone.value} (${getUTCOffsetText(zone.offset)})`,
|
|
4500
4564
|
value: zone.value,
|
|
4501
4565
|
className: OptionWrapperStyle
|
|
4502
|
-
}, /* @__PURE__ */
|
|
4566
|
+
}, /* @__PURE__ */React__default.createElement(TimeZoneOption, {
|
|
4503
4567
|
key: zone.value,
|
|
4504
4568
|
timeZone: zone
|
|
4505
4569
|
}));
|
|
4506
4570
|
}));
|
|
4507
4571
|
});
|
|
4508
|
-
return /* @__PURE__ */
|
|
4572
|
+
return /* @__PURE__ */React__default.createElement(Select, {
|
|
4509
4573
|
open: true,
|
|
4510
4574
|
className: cx(SelectStyle, className),
|
|
4511
4575
|
dropdownClassName: DropdownStyle,
|
|
4512
|
-
placeholder: /* @__PURE__ */
|
|
4576
|
+
placeholder: /* @__PURE__ */React__default.createElement("span", null, placeholder || t("components.time_zone_select_placeholder")),
|
|
4513
4577
|
value: innerValue,
|
|
4514
4578
|
onChange: _onChange,
|
|
4515
4579
|
showSearch: true,
|
|
@@ -4524,18 +4588,18 @@ const TimeZoneSelect = props => {
|
|
|
4524
4588
|
},
|
|
4525
4589
|
optionLabelProp: "label",
|
|
4526
4590
|
input: {}
|
|
4527
|
-
}, /* @__PURE__ */
|
|
4591
|
+
}, /* @__PURE__ */React__default.createElement(Select$1.Option, {
|
|
4528
4592
|
value: BrowserTimeValue,
|
|
4529
4593
|
label: `${t("components.browser_time_zone")} (${getUTCOffsetText(browserTz.offset)})`,
|
|
4530
4594
|
className: OptionWrapperStyle
|
|
4531
|
-
}, /* @__PURE__ */
|
|
4595
|
+
}, /* @__PURE__ */React__default.createElement(TimeZoneOption, {
|
|
4532
4596
|
key: BrowserTimeValue,
|
|
4533
4597
|
customLabel: t("components.browser_time_zone"),
|
|
4534
4598
|
timeZone: browserTz
|
|
4535
|
-
})), /* @__PURE__ */
|
|
4599
|
+
})), /* @__PURE__ */React__default.createElement(Select$1.Option, {
|
|
4536
4600
|
value: "UTC",
|
|
4537
4601
|
className: OptionWrapperStyle
|
|
4538
|
-
}, /* @__PURE__ */
|
|
4602
|
+
}, /* @__PURE__ */React__default.createElement(TimeZoneOption, {
|
|
4539
4603
|
key: "utc",
|
|
4540
4604
|
customLabel: t("components.coorddinated_universal_time"),
|
|
4541
4605
|
timeZone: {
|
|
@@ -4544,7 +4608,7 @@ const TimeZoneSelect = props => {
|
|
|
4544
4608
|
offset: 0,
|
|
4545
4609
|
abbr: "GMT"
|
|
4546
4610
|
}
|
|
4547
|
-
})), timeZoneOptionGroups, /* @__PURE__ */
|
|
4611
|
+
})), timeZoneOptionGroups, /* @__PURE__ */React__default.createElement(Select$1.Option, {
|
|
4548
4612
|
value: "_placeholder_",
|
|
4549
4613
|
className: OptionPlaceholder
|
|
4550
4614
|
}, "_placeholder_"));
|
|
@@ -4563,15 +4627,15 @@ const TimeZoneOption = ({
|
|
|
4563
4627
|
customLabel
|
|
4564
4628
|
}) => {
|
|
4565
4629
|
let tagText = getUTCOffsetText(timeZone.offset);
|
|
4566
|
-
return /* @__PURE__ */
|
|
4630
|
+
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement("div", {
|
|
4567
4631
|
className: OptionFirstLineStyle
|
|
4568
|
-
}, /* @__PURE__ */
|
|
4632
|
+
}, /* @__PURE__ */React__default.createElement("span", {
|
|
4569
4633
|
className: "timezone-title"
|
|
4570
|
-
}, customLabel || timeZone.value), /* @__PURE__ */
|
|
4634
|
+
}, customLabel || timeZone.value), /* @__PURE__ */React__default.createElement(Tag, {
|
|
4571
4635
|
className: cx("timezone-tag", TagStyle)
|
|
4572
|
-
}, tagText)), /* @__PURE__ */
|
|
4636
|
+
}, tagText)), /* @__PURE__ */React__default.createElement("div", {
|
|
4573
4637
|
className: OptionSecondLineStyle
|
|
4574
|
-
}, /* @__PURE__ */
|
|
4638
|
+
}, /* @__PURE__ */React__default.createElement("span", null, timeZone.text, ", ", timeZone.abbr), /* @__PURE__ */React__default.createElement(Icon, {
|
|
4575
4639
|
className: "selected-icon",
|
|
4576
4640
|
src: CheckmarkDoneSuccessCorrect16BlueIcon,
|
|
4577
4641
|
iconHeight: 16,
|
|
@@ -4579,40 +4643,10 @@ const TimeZoneOption = ({
|
|
|
4579
4643
|
})));
|
|
4580
4644
|
};
|
|
4581
4645
|
|
|
4582
|
-
var __defProp$2 = Object.defineProperty;
|
|
4583
|
-
var __defProps$2 = Object.defineProperties;
|
|
4584
|
-
var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
|
|
4585
|
-
var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
|
|
4586
|
-
var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
|
|
4587
|
-
var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
|
|
4588
|
-
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, {
|
|
4589
|
-
enumerable: true,
|
|
4590
|
-
configurable: true,
|
|
4591
|
-
writable: true,
|
|
4592
|
-
value
|
|
4593
|
-
}) : obj[key] = value;
|
|
4594
|
-
var __spreadValues$2 = (a, b) => {
|
|
4595
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$2.call(b, prop)) __defNormalProp$2(a, prop, b[prop]);
|
|
4596
|
-
if (__getOwnPropSymbols$2) for (var prop of __getOwnPropSymbols$2(b)) {
|
|
4597
|
-
if (__propIsEnum$2.call(b, prop)) __defNormalProp$2(a, prop, b[prop]);
|
|
4598
|
-
}
|
|
4599
|
-
return a;
|
|
4600
|
-
};
|
|
4601
|
-
var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
|
|
4602
|
-
const FormItemStyle = "f1p9ti6d";
|
|
4603
|
-
const FormItem = props => {
|
|
4604
|
-
return /* @__PURE__ */React.createElement(AntdFormItem, __spreadProps$2(__spreadValues$2({}, props), {
|
|
4605
|
-
className: cs(FormItemStyle, props.className)
|
|
4606
|
-
}));
|
|
4607
|
-
};
|
|
4608
|
-
|
|
4609
|
-
const Form = Form$1;
|
|
4610
|
-
Form.Item = FormItem;
|
|
4611
|
-
|
|
4612
4646
|
function getAntdKit() {
|
|
4613
4647
|
const kit = {
|
|
4614
4648
|
loading: Loading,
|
|
4615
|
-
error: ({ error }) => /* @__PURE__ */
|
|
4649
|
+
error: ({ error }) => /* @__PURE__ */ React__default.createElement("div", { className: "error" }, String(error)),
|
|
4616
4650
|
pagination: Pagination,
|
|
4617
4651
|
select: Select,
|
|
4618
4652
|
option: Select$1.Option,
|
|
@@ -4659,7 +4693,7 @@ function getAntdKit() {
|
|
|
4659
4693
|
menuItemGroup: Menu.ItemGroup,
|
|
4660
4694
|
layout: Layout,
|
|
4661
4695
|
autoComplete: AutoComplete,
|
|
4662
|
-
message:
|
|
4696
|
+
message: api,
|
|
4663
4697
|
tag: Tag,
|
|
4664
4698
|
popover: Popover,
|
|
4665
4699
|
arch: Arch,
|
|
@@ -4704,7 +4738,7 @@ function getAntdKit() {
|
|
|
4704
4738
|
}
|
|
4705
4739
|
const antdKit = getAntdKit();
|
|
4706
4740
|
|
|
4707
|
-
class ErrorBoundary extends
|
|
4741
|
+
class ErrorBoundary extends React__default.Component {
|
|
4708
4742
|
constructor(props) {
|
|
4709
4743
|
super(props);
|
|
4710
4744
|
this.state = { error: null };
|
|
@@ -4714,7 +4748,7 @@ class ErrorBoundary extends React.Component {
|
|
|
4714
4748
|
}
|
|
4715
4749
|
render() {
|
|
4716
4750
|
if (this.state.error) {
|
|
4717
|
-
return /* @__PURE__ */
|
|
4751
|
+
return /* @__PURE__ */ React__default.createElement("div", { title: String(this.state.error) }, this.props.t("components.unknow_error"));
|
|
4718
4752
|
}
|
|
4719
4753
|
return this.props.children;
|
|
4720
4754
|
}
|
|
@@ -4733,17 +4767,151 @@ const FailedLoad = props => {
|
|
|
4733
4767
|
const {
|
|
4734
4768
|
t
|
|
4735
4769
|
} = useParrotTranslation();
|
|
4736
|
-
return /* @__PURE__ */
|
|
4770
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
4737
4771
|
className: cs(FailedLoadStyle, className),
|
|
4738
4772
|
title
|
|
4739
|
-
}, /* @__PURE__ */
|
|
4773
|
+
}, /* @__PURE__ */React__default.createElement("div", {
|
|
4740
4774
|
className: "error-text"
|
|
4741
|
-
}, String(error)), /* @__PURE__ */
|
|
4775
|
+
}, String(error)), /* @__PURE__ */React__default.createElement(Button, {
|
|
4742
4776
|
type: "ordinary",
|
|
4743
4777
|
onClick: () => refetch()
|
|
4744
4778
|
}, refetchText || t("common.retry")));
|
|
4745
4779
|
};
|
|
4746
4780
|
|
|
4781
|
+
var __defProp$2 = Object.defineProperty;
|
|
4782
|
+
var __defProps$2 = Object.defineProperties;
|
|
4783
|
+
var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
|
|
4784
|
+
var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
|
|
4785
|
+
var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
|
|
4786
|
+
var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
|
|
4787
|
+
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4788
|
+
var __spreadValues$2 = (a, b) => {
|
|
4789
|
+
for (var prop in b || (b = {}))
|
|
4790
|
+
if (__hasOwnProp$2.call(b, prop))
|
|
4791
|
+
__defNormalProp$2(a, prop, b[prop]);
|
|
4792
|
+
if (__getOwnPropSymbols$2)
|
|
4793
|
+
for (var prop of __getOwnPropSymbols$2(b)) {
|
|
4794
|
+
if (__propIsEnum$2.call(b, prop))
|
|
4795
|
+
__defNormalProp$2(a, prop, b[prop]);
|
|
4796
|
+
}
|
|
4797
|
+
return a;
|
|
4798
|
+
};
|
|
4799
|
+
var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
|
|
4800
|
+
function makeUUID(length = 25) {
|
|
4801
|
+
let result = "";
|
|
4802
|
+
const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
4803
|
+
const charactersLength = characters.length;
|
|
4804
|
+
for (let i = 0; i < length; i++) {
|
|
4805
|
+
result += characters.charAt(Math.floor(Math.random() * charactersLength));
|
|
4806
|
+
}
|
|
4807
|
+
return result;
|
|
4808
|
+
}
|
|
4809
|
+
class Batcher {
|
|
4810
|
+
constructor(originalMethod, batchHelper) {
|
|
4811
|
+
this.batchSize = 2;
|
|
4812
|
+
this.batchTime = 200;
|
|
4813
|
+
this.scheduler = {};
|
|
4814
|
+
this.originalMethod = originalMethod;
|
|
4815
|
+
this.batchHelper = batchHelper;
|
|
4816
|
+
}
|
|
4817
|
+
addMessage(originContent) {
|
|
4818
|
+
const batchKey = this.batchHelper.getBatchKey(originContent.content);
|
|
4819
|
+
if (batchKey == null) {
|
|
4820
|
+
this.originalMethod(originContent);
|
|
4821
|
+
return;
|
|
4822
|
+
}
|
|
4823
|
+
if (!this.scheduler[batchKey]) {
|
|
4824
|
+
this.scheduler[batchKey] = {
|
|
4825
|
+
firedHandlers: {},
|
|
4826
|
+
pendingMessages: {}
|
|
4827
|
+
};
|
|
4828
|
+
}
|
|
4829
|
+
const messageStore = this.scheduler[batchKey];
|
|
4830
|
+
const { firedHandlers, pendingMessages, groupedCtx } = messageStore;
|
|
4831
|
+
if (groupedCtx) {
|
|
4832
|
+
groupedCtx.count++;
|
|
4833
|
+
this.applyContent(batchKey, originContent, messageStore);
|
|
4834
|
+
return;
|
|
4835
|
+
}
|
|
4836
|
+
const messageCount = Object.keys(firedHandlers).length + Object.keys(pendingMessages).length;
|
|
4837
|
+
if (messageCount + 1 > this.batchSize) {
|
|
4838
|
+
for (const k in firedHandlers) {
|
|
4839
|
+
try {
|
|
4840
|
+
firedHandlers[k]();
|
|
4841
|
+
} catch (e) {
|
|
4842
|
+
}
|
|
4843
|
+
delete firedHandlers[k];
|
|
4844
|
+
}
|
|
4845
|
+
for (const k in pendingMessages) {
|
|
4846
|
+
delete pendingMessages[k];
|
|
4847
|
+
}
|
|
4848
|
+
messageStore.groupedCtx = {
|
|
4849
|
+
key: originContent.key,
|
|
4850
|
+
count: messageCount + 1
|
|
4851
|
+
};
|
|
4852
|
+
this.applyContent(batchKey, originContent, messageStore);
|
|
4853
|
+
return;
|
|
4854
|
+
}
|
|
4855
|
+
pendingMessages[originContent.key] = originContent;
|
|
4856
|
+
setTimeout(() => {
|
|
4857
|
+
if (originContent.key in pendingMessages) {
|
|
4858
|
+
delete pendingMessages[originContent.key];
|
|
4859
|
+
originContent.onClose = () => {
|
|
4860
|
+
delete firedHandlers[originContent.key];
|
|
4861
|
+
delete messageStore.groupedCtx;
|
|
4862
|
+
};
|
|
4863
|
+
const handler = this.originalMethod(originContent);
|
|
4864
|
+
firedHandlers[originContent.key] = handler;
|
|
4865
|
+
}
|
|
4866
|
+
}, this.batchTime);
|
|
4867
|
+
}
|
|
4868
|
+
applyContent(batchKey, content, store) {
|
|
4869
|
+
content.content = this.batchHelper.getBatchContent(
|
|
4870
|
+
batchKey,
|
|
4871
|
+
store.groupedCtx.count
|
|
4872
|
+
);
|
|
4873
|
+
content.key = store.groupedCtx.key;
|
|
4874
|
+
content.onClose = () => {
|
|
4875
|
+
delete store.groupedCtx;
|
|
4876
|
+
};
|
|
4877
|
+
this.originalMethod(content);
|
|
4878
|
+
}
|
|
4879
|
+
}
|
|
4880
|
+
function createBatchMessageMethods(message, batchHelper) {
|
|
4881
|
+
let _message = __spreadValues$2({}, message);
|
|
4882
|
+
const methods = [
|
|
4883
|
+
"success",
|
|
4884
|
+
"error",
|
|
4885
|
+
"info",
|
|
4886
|
+
"warning",
|
|
4887
|
+
"warn",
|
|
4888
|
+
"loading"
|
|
4889
|
+
];
|
|
4890
|
+
for (const method of methods) {
|
|
4891
|
+
const originalMethod = _message[method];
|
|
4892
|
+
const batcher = new Batcher(originalMethod, batchHelper);
|
|
4893
|
+
_message[method] = function(...args) {
|
|
4894
|
+
const key = makeUUID();
|
|
4895
|
+
const content = normalizeContent(args, method);
|
|
4896
|
+
batcher.addMessage(__spreadProps$2(__spreadValues$2({}, content), { key }));
|
|
4897
|
+
return () => {
|
|
4898
|
+
};
|
|
4899
|
+
};
|
|
4900
|
+
}
|
|
4901
|
+
return _message;
|
|
4902
|
+
}
|
|
4903
|
+
function normalizeContent(args, type) {
|
|
4904
|
+
const c = args[0];
|
|
4905
|
+
if (c && typeof c === "object" && "content" in c) {
|
|
4906
|
+
return c;
|
|
4907
|
+
}
|
|
4908
|
+
return {
|
|
4909
|
+
content: c,
|
|
4910
|
+
duration: typeof args[1] === "number" ? args[1] : 6,
|
|
4911
|
+
type: type === "warn" ? "warning" : type
|
|
4912
|
+
};
|
|
4913
|
+
}
|
|
4914
|
+
|
|
4747
4915
|
function getRangeTimestamp(dateRange) {
|
|
4748
4916
|
const [startDate, endDate] = dateRange;
|
|
4749
4917
|
return endDate.valueOf() - startDate.valueOf();
|
|
@@ -4782,7 +4950,7 @@ const ModalStack = () => {
|
|
|
4782
4950
|
const stack = useKitSelector(
|
|
4783
4951
|
(state) => state.modal.stack
|
|
4784
4952
|
);
|
|
4785
|
-
return /* @__PURE__ */
|
|
4953
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, stack.map((modal) => /* @__PURE__ */ React__default.createElement(
|
|
4786
4954
|
modal.component,
|
|
4787
4955
|
__spreadProps$1(__spreadValues$1({}, modal.props), {
|
|
4788
4956
|
modalId: modal.id,
|
|
@@ -4833,30 +5001,24 @@ const UIKitProvider = (props) => {
|
|
|
4833
5001
|
getPopupContainer
|
|
4834
5002
|
} = props;
|
|
4835
5003
|
const _kit = useMemo(() => {
|
|
4836
|
-
var _a, _b;
|
|
4837
5004
|
if ((message == null ? void 0 : message.batch) != null) {
|
|
4838
5005
|
return __spreadProps(__spreadValues({}, kit), {
|
|
4839
|
-
message:
|
|
4840
|
-
config: {
|
|
4841
|
-
maxCount: (_a = message == null ? void 0 : message.config) == null ? void 0 : _a.maxCount
|
|
4842
|
-
}
|
|
4843
|
-
})
|
|
5006
|
+
message: createBatchMessageMethods(api, message.batch)
|
|
4844
5007
|
});
|
|
4845
5008
|
}
|
|
4846
|
-
return
|
|
4847
|
-
message: __spreadProps(__spreadValues({}, createBatchMessageMethods()), {
|
|
4848
|
-
config: {
|
|
4849
|
-
maxCount: (_b = message == null ? void 0 : message.config) == null ? void 0 : _b.maxCount
|
|
4850
|
-
}
|
|
4851
|
-
})
|
|
4852
|
-
});
|
|
5009
|
+
return kit;
|
|
4853
5010
|
}, [kit, message == null ? void 0 : message.batch]);
|
|
5011
|
+
useEffect(() => {
|
|
5012
|
+
api.config({
|
|
5013
|
+
maxCount: message == null ? void 0 : message.maxCount
|
|
5014
|
+
});
|
|
5015
|
+
}, [message == null ? void 0 : message.maxCount]);
|
|
4854
5016
|
useEffect(() => {
|
|
4855
5017
|
if (parrotI18n.language !== lng) {
|
|
4856
5018
|
parrotI18n.changeLanguage(lng);
|
|
4857
5019
|
}
|
|
4858
5020
|
}, [lng]);
|
|
4859
|
-
return /* @__PURE__ */
|
|
5021
|
+
return /* @__PURE__ */ React__default.createElement(kitContext.Provider, { value: _kit }, /* @__PURE__ */ React__default.createElement(
|
|
4860
5022
|
ConfigProvider,
|
|
4861
5023
|
{
|
|
4862
5024
|
autoInsertSpaceInButton: false,
|