@cloudtower/eagle 0.27.3 → 0.27.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.d.ts +10 -0
- package/dist/components.css +1244 -1161
- package/dist/coreX/BarChart/BarChart.stories.d.ts +6 -0
- package/dist/coreX/BarChart/index.d.ts +10 -0
- package/dist/coreX/ChartWithTooltip/ChartWithTooltip.stories.d.ts +7 -0
- package/dist/coreX/ChartWithTooltip/index.d.ts +40 -0
- package/dist/coreX/DonutChart/DonutChart.stories.d.ts +6 -0
- package/dist/coreX/DonutChart/index.d.ts +12 -0
- package/dist/coreX/UnitWithChart/UnitWithChart.stories.d.ts +7 -0
- package/dist/coreX/UnitWithChart/index.d.ts +30 -0
- package/dist/esm/index.js +1600 -1299
- package/dist/esm/stats1.html +1 -1
- package/dist/spec/base.d.ts +7 -0
- package/dist/style.css +890 -807
- package/dist/umd/index.js +1590 -1289
- package/dist/umd/stats1.html +1 -1
- package/dist/utils/tower.d.ts +1 -0
- package/package.json +5 -5
package/dist/esm/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { Button as Button$1, Checkbox as Checkbox$1, DatePicker, Select as Select$1, InputNumber as InputNumber$1, Input as Input$1, TimePicker as TimePicker$1, Switch as Switch$1, Tooltip as Tooltip$1, Alert as Alert$1, Badge as Badge$1, Card as Card$2, Collapse, Form as Form$1, Tag as Tag$1, Steps as Steps$1, Modal as Modal$1, Dropdown, Menu, Progress as Progress$1, Radio as Radio$1, Table as Table$1, Space, List, Row, Col, Tree, Divider, Skeleton, Layout, AutoComplete, Popover, Timeline, Typography, Cascader, Upload, Calendar, Tabs, message, Empty as Empty$1, TreeSelect, Drawer, ConfigProvider } from 'antd';
|
|
2
|
-
export { Col, Row } from 'antd';
|
|
3
1
|
import * as React from 'react';
|
|
4
|
-
import React__default, { useState, useMemo, useRef, useLayoutEffect, useEffect, Fragment,
|
|
2
|
+
import React__default, { useState, useMemo, useRef, useLayoutEffect, useCallback, useEffect, Fragment, forwardRef, createContext, memo, useImperativeHandle, useContext } from 'react';
|
|
3
|
+
import { cx } from '@linaria/core';
|
|
4
|
+
import { parrotI18n, ParrotLngs } from '@cloudtower/parrot';
|
|
5
|
+
export * from '@cloudtower/parrot';
|
|
6
|
+
import { useTranslation, Trans, withTranslation } from 'react-i18next';
|
|
7
|
+
import { Tooltip as Tooltip$1, Button as Button$1, Checkbox as Checkbox$1, DatePicker, Select as Select$1, InputNumber as InputNumber$1, Input as Input$1, TimePicker as TimePicker$1, Switch as Switch$1, Alert as Alert$1, Badge as Badge$1, Card as Card$2, Collapse, Form as Form$1, Tag as Tag$1, Steps as Steps$1, Modal as Modal$1, Dropdown, Menu, Progress as Progress$1, Radio as Radio$1, Table as Table$1, Space, List, Row, Col, Tree, Divider, Skeleton, Layout, AutoComplete, Popover, Timeline, Typography, Cascader, Upload, Calendar, Tabs, message, Empty as Empty$1, TreeSelect, Drawer, ConfigProvider } from 'antd';
|
|
8
|
+
export { Col, Row } from 'antd';
|
|
5
9
|
import { XmarkRemove24SecondaryIcon, InfoICircleFill16SecondaryIcon, XmarkFailedSeriousWarningFill16RedIcon, NoticeAttention16YellowIcon, InfoICircleFill16BlueIcon, CheckmarkDoneSuccessCircleFill16GreenIcon, FocusIndicator16BlueIcon, ClockIcon, CloseIcon, ArrowRightGrayIcon, ArrowChevronUp16SecondaryIcon, ArrowChevronDown16SecondaryIcon, CheckmarkDoneSuccessCorrect16SecondaryIcon, ArrowChevronLeftSmall16BoldBlueIcon, ArrowChevronDownSmall16SecondaryIcon, ArrowChevronDownSmall16BlueIcon, Loading8GradientBlueIcon, ArrowChevronUp16BoldSecondaryIcon, PlusAddCreateNew16SecondaryIcon, HandlePoint816SecondaryIcon, HandlePoint816BlueIcon, XmarkRemove16SecondaryIcon, XmarkRemove16RegularRedIcon, CheckmarkDoneSuccessCorrect16BlueIcon, XmarkRemoveSmall16RegularInheritIcon } from '@cloudtower/icons-react';
|
|
6
10
|
import cs from 'classnames';
|
|
7
11
|
import { styled } from 'linaria/react';
|
|
@@ -9,8 +13,7 @@ import _, { debounce, uniqBy, groupBy, sortBy, toPairs } from 'lodash';
|
|
|
9
13
|
import { SVGUniqueID } from 'react-svg-unique-id';
|
|
10
14
|
import { CSSTransition } from 'react-transition-group';
|
|
11
15
|
import { styled as styled$1 } from '@linaria/react';
|
|
12
|
-
import {
|
|
13
|
-
export * from '@cloudtower/parrot';
|
|
16
|
+
import { RadialBarChart, PolarAngleAxis, RadialBar } from 'recharts';
|
|
14
17
|
import dayjs from 'dayjs';
|
|
15
18
|
import { cx as cx$1 } from 'linaria';
|
|
16
19
|
import moment from 'moment';
|
|
@@ -19,8 +22,6 @@ import { isElement } from 'react-is';
|
|
|
19
22
|
import { CloseCircleFilled, SearchOutlined, EyeOutlined, EyeInvisibleOutlined } from '@ant-design/icons';
|
|
20
23
|
import UTC from 'dayjs/plugin/utc';
|
|
21
24
|
import customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
22
|
-
import { cx } from '@linaria/core';
|
|
23
|
-
import { useTranslation, Trans, withTranslation } from 'react-i18next';
|
|
24
25
|
import CheckCircleFilled from '@ant-design/icons/CheckCircleFilled';
|
|
25
26
|
import CloseCircleFilled$1 from '@ant-design/icons/CloseCircleFilled';
|
|
26
27
|
import ExclamationCircleFilled from '@ant-design/icons/ExclamationCircleFilled';
|
|
@@ -31,34 +32,474 @@ import { combineReducers, createStore } from 'redux';
|
|
|
31
32
|
import { createDispatchHook, createSelectorHook, Provider } from 'react-redux';
|
|
32
33
|
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
|
|
33
34
|
import TimeZones from 'timezones.json';
|
|
34
|
-
import 'recharts';
|
|
35
35
|
import enUS from 'antd/lib/locale/en_US';
|
|
36
36
|
import zhCN from 'antd/lib/locale/zh_CN';
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
const MAGIC_METRIC_NULL = -2;
|
|
39
|
+
function formatBits(bits, decimals = 2) {
|
|
40
|
+
if (bits <= 0 || bits === MAGIC_METRIC_NULL) {
|
|
41
|
+
return {
|
|
42
|
+
value: 0,
|
|
43
|
+
unit: "b"
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
const k = 1e3;
|
|
47
|
+
const units = ["b", "Kb", "Mb", "Gb", "Tb", "Pb"];
|
|
48
|
+
let i = Math.floor(Math.log(bits) / Math.log(k));
|
|
49
|
+
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
50
|
+
return {
|
|
51
|
+
value: parseFloat((bits / Math.pow(k, i)).toFixed(decimals)),
|
|
52
|
+
unit: units[i]
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function formatFrequency(frequency, decimals = 2) {
|
|
56
|
+
if (frequency <= 0 || frequency === MAGIC_METRIC_NULL) {
|
|
57
|
+
return {
|
|
58
|
+
value: 0,
|
|
59
|
+
unit: "Hz"
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
const k = 1e3;
|
|
63
|
+
const units = ["Hz", "KHz", "MHz", "GHz", "THz"];
|
|
64
|
+
let i = Math.floor(Math.log(frequency) / Math.log(k));
|
|
65
|
+
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
66
|
+
return {
|
|
67
|
+
value: parseFloat((frequency / Math.pow(k, i)).toFixed(decimals)),
|
|
68
|
+
unit: units[i]
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
const SECOND = 1;
|
|
72
|
+
const MINUTE = 60 * SECOND;
|
|
73
|
+
const HOUR = 60 * MINUTE;
|
|
74
|
+
const DAY = 24 * HOUR;
|
|
75
|
+
const WEEK = 7 * DAY;
|
|
76
|
+
function formatSeconds(seconds, decimals = 0) {
|
|
77
|
+
if (seconds <= MAGIC_METRIC_NULL) {
|
|
78
|
+
seconds = 0;
|
|
79
|
+
}
|
|
80
|
+
const units = [
|
|
81
|
+
{
|
|
82
|
+
value: WEEK,
|
|
83
|
+
unit: "week"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
value: DAY,
|
|
87
|
+
unit: "day"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
value: HOUR,
|
|
91
|
+
unit: "hour"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
value: MINUTE,
|
|
95
|
+
unit: "minute"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
value: SECOND,
|
|
99
|
+
unit: "second"
|
|
100
|
+
}
|
|
101
|
+
];
|
|
102
|
+
for (const unit of units) {
|
|
103
|
+
if (seconds > unit.value) {
|
|
104
|
+
return {
|
|
105
|
+
value: parseFloat((seconds / unit.value).toFixed(decimals)),
|
|
106
|
+
unit: unit.unit
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return {
|
|
111
|
+
value: parseFloat((seconds / SECOND).toFixed(decimals)),
|
|
112
|
+
unit: "second"
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
function formatBitPerSecond(input, decimals = 1) {
|
|
116
|
+
if (input <= 0 || input === MAGIC_METRIC_NULL) {
|
|
117
|
+
return {
|
|
118
|
+
value: 0,
|
|
119
|
+
unit: "bps"
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
const k = 1e3;
|
|
123
|
+
const units = ["bps", "Kbps", "Mbps", "Gbps", "Tbps"];
|
|
124
|
+
let i = Math.floor(Math.log(input) / Math.log(k));
|
|
125
|
+
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
126
|
+
return {
|
|
127
|
+
value: parseFloat((input / Math.pow(k, i)).toFixed(decimals)),
|
|
128
|
+
unit: units[i]
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
function formatBps(input, decimals = 1) {
|
|
132
|
+
if (input <= 0 || input === MAGIC_METRIC_NULL) {
|
|
133
|
+
return {
|
|
134
|
+
value: 0,
|
|
135
|
+
unit: "Bps"
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
const k = 1e3;
|
|
139
|
+
const units = ["Bps", "KBps", "MBps", "GBps", "TBps"];
|
|
140
|
+
let i = Math.floor(Math.log(input) / Math.log(k));
|
|
141
|
+
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
142
|
+
return {
|
|
143
|
+
value: parseFloat((input / Math.pow(k, i)).toFixed(decimals)),
|
|
144
|
+
unit: units[i]
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
function formatBytes(bytes, decimals = 2) {
|
|
148
|
+
if (bytes <= 0 || bytes === MAGIC_METRIC_NULL) {
|
|
149
|
+
return {
|
|
150
|
+
value: 0,
|
|
151
|
+
unit: "B"
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
const k = 1024;
|
|
155
|
+
const units = ["B", "KiB", "MiB", "GiB", "TiB", "PiB"];
|
|
156
|
+
let i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
157
|
+
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
158
|
+
return {
|
|
159
|
+
value: parseFloat((bytes / Math.pow(k, i)).toFixed(decimals)),
|
|
160
|
+
unit: units[i]
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
function formatPercent(input, decimals = 2, saturated = true) {
|
|
164
|
+
if (input === MAGIC_METRIC_NULL) {
|
|
165
|
+
input = 0;
|
|
166
|
+
}
|
|
167
|
+
if (saturated) {
|
|
168
|
+
if (input <= 0) {
|
|
169
|
+
input = 0;
|
|
170
|
+
}
|
|
171
|
+
if (input > 100) {
|
|
172
|
+
input = 100;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
const value = input.toFixed(decimals);
|
|
176
|
+
if (parseFloat(value) === 0 && input > 0) {
|
|
177
|
+
if (decimals >= 1) {
|
|
178
|
+
return {
|
|
179
|
+
value: `0.${"0".repeat(decimals - 1)}1`,
|
|
180
|
+
numberValue: parseFloat(`0.${"0".repeat(decimals - 1)}1`),
|
|
181
|
+
unit: "%"
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
return {
|
|
185
|
+
value: "1",
|
|
186
|
+
numberValue: 1,
|
|
187
|
+
unit: "%"
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
return {
|
|
191
|
+
value,
|
|
192
|
+
numberValue: parseFloat(input.toFixed(decimals)),
|
|
193
|
+
unit: "%"
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
function formatSpeed(input, decimals = 0) {
|
|
197
|
+
input /= 1e3;
|
|
198
|
+
if (input < 1)
|
|
199
|
+
return { value: "-", unit: "" };
|
|
200
|
+
const units = ["KbE", "MbE", "GbE", "TbE"];
|
|
201
|
+
const k = 1e3;
|
|
202
|
+
let i = Math.floor(Math.log(input) / Math.log(k));
|
|
203
|
+
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
204
|
+
return {
|
|
205
|
+
value: parseFloat((input / Math.pow(k, i)).toFixed(decimals)),
|
|
206
|
+
unit: units[i]
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
function isEmpty(rawValue) {
|
|
211
|
+
if (rawValue === null || rawValue === void 0 || rawValue === MAGIC_METRIC_NULL || Number.isNaN(rawValue) || !Number.isFinite(rawValue)) {
|
|
212
|
+
return true;
|
|
213
|
+
}
|
|
214
|
+
return false;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
const Empty = (props) => {
|
|
218
|
+
const { className, style } = props;
|
|
219
|
+
return /* @__PURE__ */ React__default.createElement("span", { className, style }, "-");
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
var __defProp$10 = Object.defineProperty;
|
|
223
|
+
var __getOwnPropSymbols$11 = Object.getOwnPropertySymbols;
|
|
224
|
+
var __hasOwnProp$11 = Object.prototype.hasOwnProperty;
|
|
225
|
+
var __propIsEnum$11 = Object.prototype.propertyIsEnumerable;
|
|
226
|
+
var __defNormalProp$10 = (obj, key, value) => key in obj ? __defProp$10(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
227
|
+
var __spreadValues$$ = (a, b) => {
|
|
228
|
+
for (var prop in b || (b = {}))
|
|
229
|
+
if (__hasOwnProp$11.call(b, prop))
|
|
230
|
+
__defNormalProp$10(a, prop, b[prop]);
|
|
231
|
+
if (__getOwnPropSymbols$11)
|
|
232
|
+
for (var prop of __getOwnPropSymbols$11(b)) {
|
|
233
|
+
if (__propIsEnum$11.call(b, prop))
|
|
234
|
+
__defNormalProp$10(a, prop, b[prop]);
|
|
235
|
+
}
|
|
236
|
+
return a;
|
|
237
|
+
};
|
|
238
|
+
const Bit = ({
|
|
239
|
+
rawValue,
|
|
240
|
+
decimals,
|
|
241
|
+
unitClassName,
|
|
242
|
+
valueClassName,
|
|
243
|
+
emptyProps
|
|
244
|
+
}) => {
|
|
245
|
+
if (isEmpty(rawValue)) {
|
|
246
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$$({}, emptyProps));
|
|
247
|
+
}
|
|
248
|
+
const { value, unit } = formatBits(rawValue, decimals);
|
|
249
|
+
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
var __defProp$$ = Object.defineProperty;
|
|
253
|
+
var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
|
|
254
|
+
var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
|
|
255
|
+
var __propIsEnum$10 = Object.prototype.propertyIsEnumerable;
|
|
256
|
+
var __defNormalProp$$ = (obj, key, value) => key in obj ? __defProp$$(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
257
|
+
var __spreadValues$_ = (a, b) => {
|
|
258
|
+
for (var prop in b || (b = {}))
|
|
259
|
+
if (__hasOwnProp$10.call(b, prop))
|
|
260
|
+
__defNormalProp$$(a, prop, b[prop]);
|
|
261
|
+
if (__getOwnPropSymbols$10)
|
|
262
|
+
for (var prop of __getOwnPropSymbols$10(b)) {
|
|
263
|
+
if (__propIsEnum$10.call(b, prop))
|
|
264
|
+
__defNormalProp$$(a, prop, b[prop]);
|
|
265
|
+
}
|
|
266
|
+
return a;
|
|
267
|
+
};
|
|
268
|
+
const BitPerSeconds = ({
|
|
269
|
+
rawValue,
|
|
270
|
+
decimals,
|
|
271
|
+
valueClassName,
|
|
272
|
+
unitClassName,
|
|
273
|
+
emptyProps
|
|
274
|
+
}) => {
|
|
275
|
+
if (isEmpty(rawValue)) {
|
|
276
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$_({}, emptyProps));
|
|
277
|
+
}
|
|
278
|
+
const { value, unit } = formatBitPerSecond(rawValue, decimals);
|
|
279
|
+
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
var __defProp$_ = Object.defineProperty;
|
|
283
|
+
var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
|
|
284
|
+
var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
|
|
285
|
+
var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
|
|
286
|
+
var __defNormalProp$_ = (obj, key, value) => key in obj ? __defProp$_(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
287
|
+
var __spreadValues$Z = (a, b) => {
|
|
288
|
+
for (var prop in b || (b = {}))
|
|
289
|
+
if (__hasOwnProp$$.call(b, prop))
|
|
290
|
+
__defNormalProp$_(a, prop, b[prop]);
|
|
291
|
+
if (__getOwnPropSymbols$$)
|
|
292
|
+
for (var prop of __getOwnPropSymbols$$(b)) {
|
|
293
|
+
if (__propIsEnum$$.call(b, prop))
|
|
294
|
+
__defNormalProp$_(a, prop, b[prop]);
|
|
295
|
+
}
|
|
296
|
+
return a;
|
|
297
|
+
};
|
|
298
|
+
const Bps = ({
|
|
299
|
+
rawValue,
|
|
300
|
+
decimals,
|
|
301
|
+
valueClassName,
|
|
302
|
+
unitClassName,
|
|
303
|
+
emptyProps
|
|
304
|
+
}) => {
|
|
305
|
+
if (isEmpty(rawValue)) {
|
|
306
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$Z({}, emptyProps));
|
|
307
|
+
}
|
|
308
|
+
const { value, unit } = formatBps(rawValue, decimals);
|
|
309
|
+
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
const useParrotTranslation = () => {
|
|
313
|
+
return useTranslation(void 0, {
|
|
314
|
+
i18n: parrotI18n
|
|
315
|
+
});
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
var __defProp$Z = Object.defineProperty;
|
|
319
|
+
var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
|
|
320
|
+
var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
|
|
321
|
+
var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
|
|
322
|
+
var __defNormalProp$Z = (obj, key, value) => key in obj ? __defProp$Z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
323
|
+
var __spreadValues$Y = (a, b) => {
|
|
324
|
+
for (var prop in b || (b = {}))
|
|
325
|
+
if (__hasOwnProp$_.call(b, prop))
|
|
326
|
+
__defNormalProp$Z(a, prop, b[prop]);
|
|
327
|
+
if (__getOwnPropSymbols$_)
|
|
328
|
+
for (var prop of __getOwnPropSymbols$_(b)) {
|
|
329
|
+
if (__propIsEnum$_.call(b, prop))
|
|
330
|
+
__defNormalProp$Z(a, prop, b[prop]);
|
|
331
|
+
}
|
|
332
|
+
return a;
|
|
333
|
+
};
|
|
334
|
+
const Byte = ({
|
|
335
|
+
rawValue,
|
|
336
|
+
noUnitOnZero,
|
|
337
|
+
decimals,
|
|
338
|
+
valueClassName,
|
|
339
|
+
unitClassName,
|
|
340
|
+
emptyProps
|
|
341
|
+
}) => {
|
|
342
|
+
const { t } = useParrotTranslation();
|
|
343
|
+
if (isEmpty(rawValue)) {
|
|
344
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$Y({}, emptyProps));
|
|
345
|
+
}
|
|
346
|
+
if (rawValue === -1) {
|
|
347
|
+
return /* @__PURE__ */ React__default.createElement("span", null, t("common.calculation"));
|
|
348
|
+
}
|
|
349
|
+
const { value, unit } = formatBytes(rawValue, decimals);
|
|
350
|
+
if (noUnitOnZero && value === 0) {
|
|
351
|
+
return /* @__PURE__ */ React__default.createElement("span", { className: "value" }, value);
|
|
352
|
+
}
|
|
353
|
+
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
var __defProp$Y = Object.defineProperty;
|
|
357
|
+
var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
|
|
358
|
+
var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
|
|
359
|
+
var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
|
|
360
|
+
var __defNormalProp$Y = (obj, key, value) => key in obj ? __defProp$Y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
361
|
+
var __spreadValues$X = (a, b) => {
|
|
362
|
+
for (var prop in b || (b = {}))
|
|
363
|
+
if (__hasOwnProp$Z.call(b, prop))
|
|
364
|
+
__defNormalProp$Y(a, prop, b[prop]);
|
|
365
|
+
if (__getOwnPropSymbols$Z)
|
|
366
|
+
for (var prop of __getOwnPropSymbols$Z(b)) {
|
|
367
|
+
if (__propIsEnum$Z.call(b, prop))
|
|
368
|
+
__defNormalProp$Y(a, prop, b[prop]);
|
|
369
|
+
}
|
|
370
|
+
return a;
|
|
371
|
+
};
|
|
372
|
+
const Frequency = ({
|
|
373
|
+
rawValue,
|
|
374
|
+
decimals,
|
|
375
|
+
valueClassName,
|
|
376
|
+
unitClassName,
|
|
377
|
+
emptyProps
|
|
378
|
+
}) => {
|
|
379
|
+
if (isEmpty(rawValue)) {
|
|
380
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$X({}, emptyProps));
|
|
381
|
+
}
|
|
382
|
+
const { value, unit } = formatFrequency(rawValue, decimals);
|
|
383
|
+
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
var __defProp$X = Object.defineProperty;
|
|
387
|
+
var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
|
|
388
|
+
var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
|
|
389
|
+
var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
|
|
390
|
+
var __defNormalProp$X = (obj, key, value) => key in obj ? __defProp$X(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
391
|
+
var __spreadValues$W = (a, b) => {
|
|
392
|
+
for (var prop in b || (b = {}))
|
|
393
|
+
if (__hasOwnProp$Y.call(b, prop))
|
|
394
|
+
__defNormalProp$X(a, prop, b[prop]);
|
|
395
|
+
if (__getOwnPropSymbols$Y)
|
|
396
|
+
for (var prop of __getOwnPropSymbols$Y(b)) {
|
|
397
|
+
if (__propIsEnum$Y.call(b, prop))
|
|
398
|
+
__defNormalProp$X(a, prop, b[prop]);
|
|
399
|
+
}
|
|
400
|
+
return a;
|
|
401
|
+
};
|
|
402
|
+
const Percent = ({
|
|
403
|
+
rawValue,
|
|
404
|
+
decimals,
|
|
405
|
+
saturated,
|
|
406
|
+
valueClassName,
|
|
407
|
+
unitClassName,
|
|
408
|
+
emptyProps
|
|
409
|
+
}) => {
|
|
410
|
+
if (isEmpty(rawValue)) {
|
|
411
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$W({}, emptyProps));
|
|
412
|
+
}
|
|
413
|
+
const { value, unit } = formatPercent(rawValue, decimals, saturated);
|
|
414
|
+
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, unit));
|
|
415
|
+
};
|
|
416
|
+
|
|
417
|
+
var __defProp$W = Object.defineProperty;
|
|
418
|
+
var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
|
|
419
|
+
var __hasOwnProp$X = Object.prototype.hasOwnProperty;
|
|
420
|
+
var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
|
|
421
|
+
var __defNormalProp$W = (obj, key, value) => key in obj ? __defProp$W(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
422
|
+
var __spreadValues$V = (a, b) => {
|
|
423
|
+
for (var prop in b || (b = {}))
|
|
424
|
+
if (__hasOwnProp$X.call(b, prop))
|
|
425
|
+
__defNormalProp$W(a, prop, b[prop]);
|
|
426
|
+
if (__getOwnPropSymbols$X)
|
|
427
|
+
for (var prop of __getOwnPropSymbols$X(b)) {
|
|
428
|
+
if (__propIsEnum$X.call(b, prop))
|
|
429
|
+
__defNormalProp$W(a, prop, b[prop]);
|
|
430
|
+
}
|
|
431
|
+
return a;
|
|
432
|
+
};
|
|
433
|
+
const Second = ({
|
|
434
|
+
rawValue,
|
|
435
|
+
decimals,
|
|
436
|
+
valueClassName,
|
|
437
|
+
unitClassName,
|
|
438
|
+
abbreviate,
|
|
439
|
+
emptyProps
|
|
440
|
+
}) => {
|
|
441
|
+
const { t } = useParrotTranslation();
|
|
442
|
+
if (isEmpty(rawValue)) {
|
|
443
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$V({}, emptyProps));
|
|
444
|
+
}
|
|
445
|
+
const { value, unit } = formatSeconds(rawValue, decimals);
|
|
446
|
+
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value, " "), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, t(`common.${abbreviate ? `${unit}_abbreviation` : unit}`)));
|
|
447
|
+
};
|
|
448
|
+
|
|
449
|
+
var __defProp$V = Object.defineProperty;
|
|
450
|
+
var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
|
|
451
|
+
var __hasOwnProp$W = Object.prototype.hasOwnProperty;
|
|
452
|
+
var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
|
|
453
|
+
var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
454
|
+
var __spreadValues$U = (a, b) => {
|
|
455
|
+
for (var prop in b || (b = {}))
|
|
456
|
+
if (__hasOwnProp$W.call(b, prop))
|
|
457
|
+
__defNormalProp$V(a, prop, b[prop]);
|
|
458
|
+
if (__getOwnPropSymbols$W)
|
|
459
|
+
for (var prop of __getOwnPropSymbols$W(b)) {
|
|
460
|
+
if (__propIsEnum$W.call(b, prop))
|
|
461
|
+
__defNormalProp$V(a, prop, b[prop]);
|
|
462
|
+
}
|
|
463
|
+
return a;
|
|
464
|
+
};
|
|
465
|
+
const Speed = ({
|
|
466
|
+
rawValue,
|
|
467
|
+
decimals,
|
|
468
|
+
valueClassName,
|
|
469
|
+
unitClassName,
|
|
470
|
+
emptyProps
|
|
471
|
+
}) => {
|
|
472
|
+
if (isEmpty(rawValue)) {
|
|
473
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$U({}, emptyProps));
|
|
474
|
+
}
|
|
475
|
+
const { value, unit } = formatSpeed(rawValue, decimals);
|
|
476
|
+
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
var __defProp$U = Object.defineProperty;
|
|
480
|
+
var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
|
|
481
|
+
var __hasOwnProp$V = Object.prototype.hasOwnProperty;
|
|
482
|
+
var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
|
|
483
|
+
var __defNormalProp$U = (obj, key, value) => key in obj ? __defProp$U(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
484
|
+
var __spreadValues$T = (a, b) => {
|
|
44
485
|
for (var prop in b || (b = {}))
|
|
45
|
-
if (__hasOwnProp$
|
|
46
|
-
__defNormalProp
|
|
47
|
-
if (__getOwnPropSymbols$
|
|
48
|
-
for (var prop of __getOwnPropSymbols$
|
|
49
|
-
if (__propIsEnum$
|
|
50
|
-
__defNormalProp
|
|
486
|
+
if (__hasOwnProp$V.call(b, prop))
|
|
487
|
+
__defNormalProp$U(a, prop, b[prop]);
|
|
488
|
+
if (__getOwnPropSymbols$V)
|
|
489
|
+
for (var prop of __getOwnPropSymbols$V(b)) {
|
|
490
|
+
if (__propIsEnum$V.call(b, prop))
|
|
491
|
+
__defNormalProp$U(a, prop, b[prop]);
|
|
51
492
|
}
|
|
52
493
|
return a;
|
|
53
494
|
};
|
|
54
495
|
var __objRest$C = (source, exclude) => {
|
|
55
496
|
var target = {};
|
|
56
497
|
for (var prop in source)
|
|
57
|
-
if (__hasOwnProp$
|
|
498
|
+
if (__hasOwnProp$V.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
58
499
|
target[prop] = source[prop];
|
|
59
|
-
if (source != null && __getOwnPropSymbols$
|
|
60
|
-
for (var prop of __getOwnPropSymbols$
|
|
61
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
500
|
+
if (source != null && __getOwnPropSymbols$V)
|
|
501
|
+
for (var prop of __getOwnPropSymbols$V(source)) {
|
|
502
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$V.call(source, prop))
|
|
62
503
|
target[prop] = source[prop];
|
|
63
504
|
}
|
|
64
505
|
return target;
|
|
@@ -90,10 +531,10 @@ const BaseIcon = React__default.forwardRef(
|
|
|
90
531
|
]);
|
|
91
532
|
return /* @__PURE__ */ React__default.createElement(
|
|
92
533
|
"span",
|
|
93
|
-
__spreadValues$
|
|
534
|
+
__spreadValues$T({
|
|
94
535
|
ref,
|
|
95
536
|
className,
|
|
96
|
-
style: _.pickBy(__spreadValues$
|
|
537
|
+
style: _.pickBy(__spreadValues$T({ cursor }, style))
|
|
97
538
|
}, HTMLSpanElementProps),
|
|
98
539
|
prefixNode,
|
|
99
540
|
/* @__PURE__ */ React__default.createElement("span", { className: "icon-inner" }, typeof Src === "string" ? /* @__PURE__ */ React__default.createElement("img", { alt, src: Src, width, height }) : /* @__PURE__ */ React__default.createElement(SVGUniqueID, null, Src({ width, height }))),
|
|
@@ -103,31 +544,31 @@ const BaseIcon = React__default.forwardRef(
|
|
|
103
544
|
}
|
|
104
545
|
);
|
|
105
546
|
|
|
106
|
-
var __defProp$
|
|
547
|
+
var __defProp$T = Object.defineProperty;
|
|
107
548
|
var __defProps$G = Object.defineProperties;
|
|
108
549
|
var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
|
|
109
|
-
var __getOwnPropSymbols
|
|
110
|
-
var __hasOwnProp
|
|
111
|
-
var __propIsEnum
|
|
112
|
-
var __defNormalProp$
|
|
550
|
+
var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
|
|
551
|
+
var __hasOwnProp$U = Object.prototype.hasOwnProperty;
|
|
552
|
+
var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
|
|
553
|
+
var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, {
|
|
113
554
|
enumerable: true,
|
|
114
555
|
configurable: true,
|
|
115
556
|
writable: true,
|
|
116
557
|
value
|
|
117
558
|
}) : obj[key] = value;
|
|
118
|
-
var __spreadValues$
|
|
119
|
-
for (var prop in b || (b = {})) if (__hasOwnProp
|
|
120
|
-
if (__getOwnPropSymbols
|
|
121
|
-
if (__propIsEnum
|
|
559
|
+
var __spreadValues$S = (a, b) => {
|
|
560
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$U.call(b, prop)) __defNormalProp$T(a, prop, b[prop]);
|
|
561
|
+
if (__getOwnPropSymbols$U) for (var prop of __getOwnPropSymbols$U(b)) {
|
|
562
|
+
if (__propIsEnum$U.call(b, prop)) __defNormalProp$T(a, prop, b[prop]);
|
|
122
563
|
}
|
|
123
564
|
return a;
|
|
124
565
|
};
|
|
125
566
|
var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
|
|
126
567
|
var __objRest$B = (source, exclude) => {
|
|
127
568
|
var target = {};
|
|
128
|
-
for (var prop in source) if (__hasOwnProp
|
|
129
|
-
if (source != null && __getOwnPropSymbols
|
|
130
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum
|
|
569
|
+
for (var prop in source) if (__hasOwnProp$U.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
570
|
+
if (source != null && __getOwnPropSymbols$U) for (var prop of __getOwnPropSymbols$U(source)) {
|
|
571
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$U.call(source, prop)) target[prop] = source[prop];
|
|
131
572
|
}
|
|
132
573
|
return target;
|
|
133
574
|
};
|
|
@@ -179,14 +620,14 @@ const Icon = React__default.forwardRef((props, ref) => {
|
|
|
179
620
|
}
|
|
180
621
|
return src2;
|
|
181
622
|
}, [active, hover, suffix]);
|
|
182
|
-
return /* @__PURE__ */React__default.createElement(BaseIcon, __spreadProps$G(__spreadValues$
|
|
623
|
+
return /* @__PURE__ */React__default.createElement(BaseIcon, __spreadProps$G(__spreadValues$S({
|
|
183
624
|
src: _src,
|
|
184
625
|
className: cs(IconWrapper, "icon-wrapper", className, isRotate && "is-rotate"),
|
|
185
626
|
suffixIconSrc,
|
|
186
627
|
height: iconHeight,
|
|
187
628
|
width: iconWidth,
|
|
188
629
|
prefixNode: prefix,
|
|
189
|
-
style: _.pickBy(__spreadValues$
|
|
630
|
+
style: _.pickBy(__spreadValues$S({
|
|
190
631
|
cursor
|
|
191
632
|
}, style))
|
|
192
633
|
}, restProps), {
|
|
@@ -211,30 +652,30 @@ const Icon = React__default.forwardRef((props, ref) => {
|
|
|
211
652
|
}));
|
|
212
653
|
});
|
|
213
654
|
|
|
214
|
-
var __defProp$
|
|
215
|
-
var __getOwnPropSymbols$
|
|
216
|
-
var __hasOwnProp$
|
|
217
|
-
var __propIsEnum$
|
|
218
|
-
var __defNormalProp$
|
|
219
|
-
var __spreadValues$
|
|
655
|
+
var __defProp$S = Object.defineProperty;
|
|
656
|
+
var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
|
|
657
|
+
var __hasOwnProp$T = Object.prototype.hasOwnProperty;
|
|
658
|
+
var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
|
|
659
|
+
var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
660
|
+
var __spreadValues$R = (a, b) => {
|
|
220
661
|
for (var prop in b || (b = {}))
|
|
221
|
-
if (__hasOwnProp$
|
|
222
|
-
__defNormalProp$
|
|
223
|
-
if (__getOwnPropSymbols$
|
|
224
|
-
for (var prop of __getOwnPropSymbols$
|
|
225
|
-
if (__propIsEnum$
|
|
226
|
-
__defNormalProp$
|
|
662
|
+
if (__hasOwnProp$T.call(b, prop))
|
|
663
|
+
__defNormalProp$S(a, prop, b[prop]);
|
|
664
|
+
if (__getOwnPropSymbols$T)
|
|
665
|
+
for (var prop of __getOwnPropSymbols$T(b)) {
|
|
666
|
+
if (__propIsEnum$T.call(b, prop))
|
|
667
|
+
__defNormalProp$S(a, prop, b[prop]);
|
|
227
668
|
}
|
|
228
669
|
return a;
|
|
229
670
|
};
|
|
230
671
|
var __objRest$A = (source, exclude) => {
|
|
231
672
|
var target = {};
|
|
232
673
|
for (var prop in source)
|
|
233
|
-
if (__hasOwnProp$
|
|
674
|
+
if (__hasOwnProp$T.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
234
675
|
target[prop] = source[prop];
|
|
235
|
-
if (source != null && __getOwnPropSymbols$
|
|
236
|
-
for (var prop of __getOwnPropSymbols$
|
|
237
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
676
|
+
if (source != null && __getOwnPropSymbols$T)
|
|
677
|
+
for (var prop of __getOwnPropSymbols$T(source)) {
|
|
678
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$T.call(source, prop))
|
|
238
679
|
target[prop] = source[prop];
|
|
239
680
|
}
|
|
240
681
|
return target;
|
|
@@ -255,7 +696,7 @@ const DropdownTransition = (props) => {
|
|
|
255
696
|
]);
|
|
256
697
|
return /* @__PURE__ */ React__default.createElement(
|
|
257
698
|
CSSTransition,
|
|
258
|
-
__spreadValues$
|
|
699
|
+
__spreadValues$R({
|
|
259
700
|
in: visible,
|
|
260
701
|
timeout: timeout || 200,
|
|
261
702
|
mountOnEnter,
|
|
@@ -553,6 +994,404 @@ const CircleProgress = props => {
|
|
|
553
994
|
})));
|
|
554
995
|
};
|
|
555
996
|
|
|
997
|
+
const WizardBody = /*#__PURE__*/styled$1('div')({
|
|
998
|
+
name: "WizardBody",
|
|
999
|
+
class: "w1vvwdlp",
|
|
1000
|
+
propsAsIs: false
|
|
1001
|
+
});
|
|
1002
|
+
const FullView = /*#__PURE__*/styled$1('div')({
|
|
1003
|
+
name: "FullView",
|
|
1004
|
+
class: "f1rest1f",
|
|
1005
|
+
propsAsIs: false
|
|
1006
|
+
});
|
|
1007
|
+
const TertiaryText = /*#__PURE__*/styled$1('div')({
|
|
1008
|
+
name: "TertiaryText",
|
|
1009
|
+
class: "t79k8o2",
|
|
1010
|
+
propsAsIs: false
|
|
1011
|
+
});
|
|
1012
|
+
const InputStyle = "ipd9bk";
|
|
1013
|
+
const KitInputStyle = "kypn5o5";
|
|
1014
|
+
|
|
1015
|
+
var __defProp$R = Object.defineProperty;
|
|
1016
|
+
var __defProps$F = Object.defineProperties;
|
|
1017
|
+
var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
|
|
1018
|
+
var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
|
|
1019
|
+
var __hasOwnProp$S = Object.prototype.hasOwnProperty;
|
|
1020
|
+
var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
|
|
1021
|
+
var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1022
|
+
var __spreadValues$Q = (a, b) => {
|
|
1023
|
+
for (var prop in b || (b = {}))
|
|
1024
|
+
if (__hasOwnProp$S.call(b, prop))
|
|
1025
|
+
__defNormalProp$R(a, prop, b[prop]);
|
|
1026
|
+
if (__getOwnPropSymbols$S)
|
|
1027
|
+
for (var prop of __getOwnPropSymbols$S(b)) {
|
|
1028
|
+
if (__propIsEnum$S.call(b, prop))
|
|
1029
|
+
__defNormalProp$R(a, prop, b[prop]);
|
|
1030
|
+
}
|
|
1031
|
+
return a;
|
|
1032
|
+
};
|
|
1033
|
+
var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
|
|
1034
|
+
var __objRest$z = (source, exclude) => {
|
|
1035
|
+
var target = {};
|
|
1036
|
+
for (var prop in source)
|
|
1037
|
+
if (__hasOwnProp$S.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1038
|
+
target[prop] = source[prop];
|
|
1039
|
+
if (source != null && __getOwnPropSymbols$S)
|
|
1040
|
+
for (var prop of __getOwnPropSymbols$S(source)) {
|
|
1041
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$S.call(source, prop))
|
|
1042
|
+
target[prop] = source[prop];
|
|
1043
|
+
}
|
|
1044
|
+
return target;
|
|
1045
|
+
};
|
|
1046
|
+
let componentId = 0;
|
|
1047
|
+
const Tooltip = (props) => {
|
|
1048
|
+
const _a = props, {
|
|
1049
|
+
followMouse,
|
|
1050
|
+
overlayClassName,
|
|
1051
|
+
overlayStyle,
|
|
1052
|
+
children
|
|
1053
|
+
} = _a, restProps = __objRest$z(_a, [
|
|
1054
|
+
"followMouse",
|
|
1055
|
+
"overlayClassName",
|
|
1056
|
+
"overlayStyle",
|
|
1057
|
+
"children"
|
|
1058
|
+
]);
|
|
1059
|
+
const id = useRef(++componentId);
|
|
1060
|
+
const uniquePopupClass = `kit-popup-${id.current}`;
|
|
1061
|
+
const uniqueContainerClass = `kit-tooltip-${id.current}`;
|
|
1062
|
+
const _children = useMemo(() => {
|
|
1063
|
+
if (followMouse) {
|
|
1064
|
+
const child = React__default.isValidElement(children) ? children : /* @__PURE__ */ React__default.createElement("span", null, children);
|
|
1065
|
+
return React__default.cloneElement(child, {
|
|
1066
|
+
className: cs(child.props.className, uniqueContainerClass)
|
|
1067
|
+
});
|
|
1068
|
+
} else {
|
|
1069
|
+
return children;
|
|
1070
|
+
}
|
|
1071
|
+
}, [children, followMouse, uniqueContainerClass]);
|
|
1072
|
+
const onmousemove = useCallback(
|
|
1073
|
+
(event) => {
|
|
1074
|
+
const popup = document.querySelector(`.${uniquePopupClass}`);
|
|
1075
|
+
if (!popup)
|
|
1076
|
+
return;
|
|
1077
|
+
popup.style.left = event.pageX + "px";
|
|
1078
|
+
popup.style.top = event.pageY + "px";
|
|
1079
|
+
},
|
|
1080
|
+
[uniquePopupClass]
|
|
1081
|
+
);
|
|
1082
|
+
useEffect(() => {
|
|
1083
|
+
if (followMouse) {
|
|
1084
|
+
const container = document.querySelector(
|
|
1085
|
+
`.${uniqueContainerClass}`
|
|
1086
|
+
);
|
|
1087
|
+
container == null ? void 0 : container.addEventListener("mousemove", onmousemove);
|
|
1088
|
+
return () => {
|
|
1089
|
+
container == null ? void 0 : container.removeEventListener("mousemove", onmousemove);
|
|
1090
|
+
};
|
|
1091
|
+
}
|
|
1092
|
+
}, [followMouse, onmousemove, uniqueContainerClass]);
|
|
1093
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
1094
|
+
Tooltip$1,
|
|
1095
|
+
__spreadProps$F(__spreadValues$Q({}, restProps), {
|
|
1096
|
+
overlayClassName: followMouse ? cs(overlayClassName, uniquePopupClass) : overlayClassName,
|
|
1097
|
+
children: _children,
|
|
1098
|
+
overlayStyle: followMouse ? __spreadValues$Q({
|
|
1099
|
+
transform: "translate(-50%, -100%)",
|
|
1100
|
+
pointerEvents: "none"
|
|
1101
|
+
}, overlayStyle) : overlayStyle
|
|
1102
|
+
})
|
|
1103
|
+
);
|
|
1104
|
+
};
|
|
1105
|
+
|
|
1106
|
+
const StackBar = "skwah65";
|
|
1107
|
+
function getWidth(input) {
|
|
1108
|
+
const {
|
|
1109
|
+
value,
|
|
1110
|
+
unit
|
|
1111
|
+
} = formatPercent(input);
|
|
1112
|
+
return value + unit;
|
|
1113
|
+
}
|
|
1114
|
+
const BarChart = ({
|
|
1115
|
+
data,
|
|
1116
|
+
total
|
|
1117
|
+
}) => /* @__PURE__ */React__default.createElement("div", {
|
|
1118
|
+
className: StackBar
|
|
1119
|
+
}, (data || []).map(item => {
|
|
1120
|
+
const {
|
|
1121
|
+
value,
|
|
1122
|
+
color
|
|
1123
|
+
} = item;
|
|
1124
|
+
const width = total === 0 ? 0 : getWidth(100 * value / total);
|
|
1125
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
1126
|
+
className: "stack-bar-item",
|
|
1127
|
+
style: {
|
|
1128
|
+
width,
|
|
1129
|
+
background: color,
|
|
1130
|
+
display: width === 0 || width === "0%" ? "none" : "inline-block"
|
|
1131
|
+
}
|
|
1132
|
+
});
|
|
1133
|
+
}));
|
|
1134
|
+
|
|
1135
|
+
const DonutChart = ({
|
|
1136
|
+
data,
|
|
1137
|
+
dataKey,
|
|
1138
|
+
width,
|
|
1139
|
+
height,
|
|
1140
|
+
barSize,
|
|
1141
|
+
innerRadius,
|
|
1142
|
+
outerRadius
|
|
1143
|
+
}) => /* @__PURE__ */ React__default.createElement(
|
|
1144
|
+
RadialBarChart,
|
|
1145
|
+
{
|
|
1146
|
+
data,
|
|
1147
|
+
width,
|
|
1148
|
+
height,
|
|
1149
|
+
innerRadius,
|
|
1150
|
+
outerRadius,
|
|
1151
|
+
barSize,
|
|
1152
|
+
startAngle: 90,
|
|
1153
|
+
endAngle: -270
|
|
1154
|
+
},
|
|
1155
|
+
/* @__PURE__ */ React__default.createElement(PolarAngleAxis, { type: "number", domain: [0, 1], radiusAxisId: 0 }),
|
|
1156
|
+
/* @__PURE__ */ React__default.createElement(
|
|
1157
|
+
RadialBar,
|
|
1158
|
+
{
|
|
1159
|
+
isAnimationActive: false,
|
|
1160
|
+
background: true,
|
|
1161
|
+
dataKey,
|
|
1162
|
+
radiusAxisId: 0
|
|
1163
|
+
}
|
|
1164
|
+
)
|
|
1165
|
+
);
|
|
1166
|
+
|
|
1167
|
+
var __defProp$Q = Object.defineProperty;
|
|
1168
|
+
var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
|
|
1169
|
+
var __hasOwnProp$R = Object.prototype.hasOwnProperty;
|
|
1170
|
+
var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
|
|
1171
|
+
var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, {
|
|
1172
|
+
enumerable: true,
|
|
1173
|
+
configurable: true,
|
|
1174
|
+
writable: true,
|
|
1175
|
+
value
|
|
1176
|
+
}) : obj[key] = value;
|
|
1177
|
+
var __spreadValues$P = (a, b) => {
|
|
1178
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$R.call(b, prop)) __defNormalProp$Q(a, prop, b[prop]);
|
|
1179
|
+
if (__getOwnPropSymbols$R) for (var prop of __getOwnPropSymbols$R(b)) {
|
|
1180
|
+
if (__propIsEnum$R.call(b, prop)) __defNormalProp$Q(a, prop, b[prop]);
|
|
1181
|
+
}
|
|
1182
|
+
return a;
|
|
1183
|
+
};
|
|
1184
|
+
const units$1 = {
|
|
1185
|
+
Percent,
|
|
1186
|
+
Byte,
|
|
1187
|
+
Frequency,
|
|
1188
|
+
Speed,
|
|
1189
|
+
Bps,
|
|
1190
|
+
BitPerSecond: BitPerSeconds,
|
|
1191
|
+
Bit,
|
|
1192
|
+
Second
|
|
1193
|
+
};
|
|
1194
|
+
const Wrapper$2 = /*#__PURE__*/styled$1('div')({
|
|
1195
|
+
name: "Wrapper",
|
|
1196
|
+
class: "wg1tsps",
|
|
1197
|
+
propsAsIs: false
|
|
1198
|
+
});
|
|
1199
|
+
const BarChartWrapper = "b1ctd5xy";
|
|
1200
|
+
const UnitWrapper = "u1p8acpn";
|
|
1201
|
+
const Sizes = {
|
|
1202
|
+
small: {
|
|
1203
|
+
width: 22,
|
|
1204
|
+
height: 22,
|
|
1205
|
+
barSize: 4,
|
|
1206
|
+
innerRadius: 8,
|
|
1207
|
+
outerRadius: 16
|
|
1208
|
+
},
|
|
1209
|
+
medium: {
|
|
1210
|
+
width: 50,
|
|
1211
|
+
height: 50,
|
|
1212
|
+
barSize: 8,
|
|
1213
|
+
innerRadius: 18,
|
|
1214
|
+
outerRadius: 34
|
|
1215
|
+
},
|
|
1216
|
+
large: {
|
|
1217
|
+
width: 100,
|
|
1218
|
+
height: 100,
|
|
1219
|
+
barSize: 15,
|
|
1220
|
+
innerRadius: 40,
|
|
1221
|
+
outerRadius: 70
|
|
1222
|
+
}
|
|
1223
|
+
};
|
|
1224
|
+
const UnitWithChart = ({
|
|
1225
|
+
rawValue,
|
|
1226
|
+
total,
|
|
1227
|
+
unit,
|
|
1228
|
+
color = "#0080FF",
|
|
1229
|
+
size = "small",
|
|
1230
|
+
chartType = "donutChart",
|
|
1231
|
+
data,
|
|
1232
|
+
saturated
|
|
1233
|
+
}) => {
|
|
1234
|
+
if (typeof rawValue !== "number" || typeof total !== "number") {
|
|
1235
|
+
return /* @__PURE__ */React__default.createElement(Empty, null);
|
|
1236
|
+
}
|
|
1237
|
+
const Unit = units$1[unit];
|
|
1238
|
+
return /* @__PURE__ */React__default.createElement(Wrapper$2, {
|
|
1239
|
+
className: "unit-chart"
|
|
1240
|
+
}, chartType === "barChart" && /* @__PURE__ */React__default.createElement("span", {
|
|
1241
|
+
className: BarChartWrapper
|
|
1242
|
+
}, /* @__PURE__ */React__default.createElement("span", {
|
|
1243
|
+
className: "chart"
|
|
1244
|
+
}, /* @__PURE__ */React__default.createElement(BarChart, {
|
|
1245
|
+
data: data || [],
|
|
1246
|
+
total
|
|
1247
|
+
}))), /* @__PURE__ */React__default.createElement("span", {
|
|
1248
|
+
className: UnitWrapper
|
|
1249
|
+
}, unit === "Percent" ? /* @__PURE__ */React__default.createElement(Percent, {
|
|
1250
|
+
rawValue,
|
|
1251
|
+
decimals: 1,
|
|
1252
|
+
saturated
|
|
1253
|
+
}) : /* @__PURE__ */React__default.createElement(Unit, {
|
|
1254
|
+
rawValue
|
|
1255
|
+
})), chartType === "donutChart" && /* @__PURE__ */React__default.createElement(DonutChart, __spreadValues$P({
|
|
1256
|
+
data: [{
|
|
1257
|
+
used: rawValue / total,
|
|
1258
|
+
fill: color
|
|
1259
|
+
}],
|
|
1260
|
+
dataKey: "used"
|
|
1261
|
+
}, Sizes[size])));
|
|
1262
|
+
};
|
|
1263
|
+
|
|
1264
|
+
const units = {
|
|
1265
|
+
Percent,
|
|
1266
|
+
Byte,
|
|
1267
|
+
Frequency,
|
|
1268
|
+
Speed,
|
|
1269
|
+
Bps,
|
|
1270
|
+
BitPerSecond: BitPerSeconds,
|
|
1271
|
+
Bit,
|
|
1272
|
+
Second
|
|
1273
|
+
};
|
|
1274
|
+
const ChartContent = /*#__PURE__*/styled$1('div')({
|
|
1275
|
+
name: "ChartContent",
|
|
1276
|
+
class: "c18bcrac",
|
|
1277
|
+
propsAsIs: false
|
|
1278
|
+
});
|
|
1279
|
+
const ChartTooltipContainer = /*#__PURE__*/styled$1('div')({
|
|
1280
|
+
name: "ChartTooltipContainer",
|
|
1281
|
+
class: "cro7kg2",
|
|
1282
|
+
propsAsIs: false
|
|
1283
|
+
});
|
|
1284
|
+
const ChartTooltipRow = /*#__PURE__*/styled$1('div')({
|
|
1285
|
+
name: "ChartTooltipRow",
|
|
1286
|
+
class: "c14wcxf0",
|
|
1287
|
+
propsAsIs: false
|
|
1288
|
+
});
|
|
1289
|
+
const _exp$4 = () => ChartTooltipRow;
|
|
1290
|
+
const ChartTooltipTitle = /*#__PURE__*/styled$1(_exp$4())({
|
|
1291
|
+
name: "ChartTooltipTitle",
|
|
1292
|
+
class: "coy29mj",
|
|
1293
|
+
propsAsIs: true
|
|
1294
|
+
});
|
|
1295
|
+
const _exp2$2 = () => props => props.color;
|
|
1296
|
+
const SpaceStatus = /*#__PURE__*/styled$1('i')({
|
|
1297
|
+
name: "SpaceStatus",
|
|
1298
|
+
class: "s11212zy",
|
|
1299
|
+
propsAsIs: false,
|
|
1300
|
+
vars: {
|
|
1301
|
+
"s11212zy-0": [_exp2$2()]
|
|
1302
|
+
}
|
|
1303
|
+
});
|
|
1304
|
+
const PrimaryUnit = /*#__PURE__*/styled$1('div')({
|
|
1305
|
+
name: "PrimaryUnit",
|
|
1306
|
+
class: "p1lyky6c",
|
|
1307
|
+
propsAsIs: false
|
|
1308
|
+
});
|
|
1309
|
+
const ChartWithUnit = props => {
|
|
1310
|
+
const {
|
|
1311
|
+
items,
|
|
1312
|
+
rawValue,
|
|
1313
|
+
unit,
|
|
1314
|
+
chartType,
|
|
1315
|
+
tableUnit,
|
|
1316
|
+
total
|
|
1317
|
+
} = props;
|
|
1318
|
+
const finalTableUnit = tableUnit != null ? tableUnit : unit;
|
|
1319
|
+
const emptyDisplay = rawValue2 => {
|
|
1320
|
+
if (_.isNil(rawValue2)) {
|
|
1321
|
+
return /* @__PURE__ */React__default.createElement(TertiaryText, null, "-");
|
|
1322
|
+
}
|
|
1323
|
+
return finalTableUnit === "Percent" ?
|
|
1324
|
+
// process 0.0%
|
|
1325
|
+
/* @__PURE__ */
|
|
1326
|
+
React__default.createElement("span", {
|
|
1327
|
+
className: UnitWrapper
|
|
1328
|
+
}, /* @__PURE__ */React__default.createElement(Percent, {
|
|
1329
|
+
rawValue: rawValue2,
|
|
1330
|
+
decimals: 1
|
|
1331
|
+
})) : rawValue2;
|
|
1332
|
+
};
|
|
1333
|
+
return /* @__PURE__ */React__default.createElement(ChartContent, null, rawValue || rawValue === 0 ? /* @__PURE__ */React__default.createElement(UnitWithChart, {
|
|
1334
|
+
unit: finalTableUnit,
|
|
1335
|
+
rawValue: chartType === "barChart" ? formatPercent(rawValue / total * 100, 1).numberValue : rawValue,
|
|
1336
|
+
total,
|
|
1337
|
+
chartType,
|
|
1338
|
+
data: items
|
|
1339
|
+
}) : emptyDisplay(rawValue));
|
|
1340
|
+
};
|
|
1341
|
+
const ChartWithTooltip = props => {
|
|
1342
|
+
const {
|
|
1343
|
+
title,
|
|
1344
|
+
items,
|
|
1345
|
+
rawValue,
|
|
1346
|
+
unit,
|
|
1347
|
+
chartType,
|
|
1348
|
+
tableUnit,
|
|
1349
|
+
saturated
|
|
1350
|
+
} = props;
|
|
1351
|
+
const KitUnit = units[unit];
|
|
1352
|
+
const total = title.value || 0;
|
|
1353
|
+
const finalTableUnit = tableUnit != null ? tableUnit : unit;
|
|
1354
|
+
const emptyDisplay = rawValue2 => {
|
|
1355
|
+
if (_.isNil(rawValue2)) {
|
|
1356
|
+
return /* @__PURE__ */React__default.createElement(TertiaryText, null, "-");
|
|
1357
|
+
}
|
|
1358
|
+
return finalTableUnit === "Percent" ?
|
|
1359
|
+
// process 0.0%
|
|
1360
|
+
/* @__PURE__ */
|
|
1361
|
+
React__default.createElement(Percent, {
|
|
1362
|
+
rawValue: rawValue2,
|
|
1363
|
+
decimals: 1
|
|
1364
|
+
}) : rawValue2;
|
|
1365
|
+
};
|
|
1366
|
+
return /* @__PURE__ */React__default.createElement(Tooltip, {
|
|
1367
|
+
title: /* @__PURE__ */React__default.createElement(ChartTooltipContainer, null, /* @__PURE__ */React__default.createElement(ChartTooltipTitle, null, /* @__PURE__ */React__default.createElement("label", null, title.label), /* @__PURE__ */React__default.createElement(KitUnit, {
|
|
1368
|
+
rawValue: total
|
|
1369
|
+
})), items.map(item => {
|
|
1370
|
+
var _a;
|
|
1371
|
+
return /* @__PURE__ */React__default.createElement(ChartTooltipRow, {
|
|
1372
|
+
key: item.label
|
|
1373
|
+
}, /* @__PURE__ */React__default.createElement("label", null, /* @__PURE__ */React__default.createElement(SpaceStatus, {
|
|
1374
|
+
color: item.color
|
|
1375
|
+
}), /* @__PURE__ */React__default.createElement("span", null, item.label)), /* @__PURE__ */React__default.createElement(PrimaryUnit, {
|
|
1376
|
+
className: "value"
|
|
1377
|
+
}, /* @__PURE__ */React__default.createElement(KitUnit, {
|
|
1378
|
+
rawValue: item.value || 0
|
|
1379
|
+
}), /* @__PURE__ */React__default.createElement("span", null, "(", total ? (item.value ? formatPercent((item.value || 0) / total * 100, 1, (_a = item.saturated) != null ? _a : true).value : 0) + "%" : "-", ")")));
|
|
1380
|
+
})),
|
|
1381
|
+
overlayStyle: {
|
|
1382
|
+
maxWidth: 500,
|
|
1383
|
+
minWidth: 246
|
|
1384
|
+
}
|
|
1385
|
+
}, /* @__PURE__ */React__default.createElement(ChartContent, null, total ? rawValue ? /* @__PURE__ */React__default.createElement(UnitWithChart, {
|
|
1386
|
+
unit: finalTableUnit,
|
|
1387
|
+
rawValue: chartType === "barChart" ? formatPercent(rawValue / total * 100, 1, saturated != null ? saturated : true).numberValue : rawValue,
|
|
1388
|
+
total,
|
|
1389
|
+
chartType,
|
|
1390
|
+
data: items,
|
|
1391
|
+
saturated
|
|
1392
|
+
}) : emptyDisplay(rawValue) : emptyDisplay(null)));
|
|
1393
|
+
};
|
|
1394
|
+
|
|
556
1395
|
const Counting = (props) => {
|
|
557
1396
|
const { stop, interval = 1e3, render } = props;
|
|
558
1397
|
const [, setState] = useState(true);
|
|
@@ -577,28 +1416,28 @@ const HoverableElement = (props) => {
|
|
|
577
1416
|
return icon != null ? React__default.cloneElement(icon, { className }) : null;
|
|
578
1417
|
};
|
|
579
1418
|
|
|
580
|
-
var __defProp$
|
|
581
|
-
var __getOwnPropSymbols$
|
|
582
|
-
var __hasOwnProp$
|
|
583
|
-
var __propIsEnum$
|
|
584
|
-
var __defNormalProp$
|
|
1419
|
+
var __defProp$P = Object.defineProperty;
|
|
1420
|
+
var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
|
|
1421
|
+
var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
|
|
1422
|
+
var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
|
|
1423
|
+
var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, {
|
|
585
1424
|
enumerable: true,
|
|
586
1425
|
configurable: true,
|
|
587
1426
|
writable: true,
|
|
588
1427
|
value
|
|
589
1428
|
}) : obj[key] = value;
|
|
590
|
-
var __spreadValues$
|
|
591
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
592
|
-
if (__getOwnPropSymbols$
|
|
593
|
-
if (__propIsEnum$
|
|
1429
|
+
var __spreadValues$O = (a, b) => {
|
|
1430
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$Q.call(b, prop)) __defNormalProp$P(a, prop, b[prop]);
|
|
1431
|
+
if (__getOwnPropSymbols$Q) for (var prop of __getOwnPropSymbols$Q(b)) {
|
|
1432
|
+
if (__propIsEnum$Q.call(b, prop)) __defNormalProp$P(a, prop, b[prop]);
|
|
594
1433
|
}
|
|
595
1434
|
return a;
|
|
596
1435
|
};
|
|
597
|
-
var __objRest$
|
|
1436
|
+
var __objRest$y = (source, exclude) => {
|
|
598
1437
|
var target = {};
|
|
599
|
-
for (var prop in source) if (__hasOwnProp$
|
|
600
|
-
if (source != null && __getOwnPropSymbols$
|
|
601
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1438
|
+
for (var prop in source) if (__hasOwnProp$Q.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1439
|
+
if (source != null && __getOwnPropSymbols$Q) for (var prop of __getOwnPropSymbols$Q(source)) {
|
|
1440
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$Q.call(source, prop)) target[prop] = source[prop];
|
|
602
1441
|
}
|
|
603
1442
|
return target;
|
|
604
1443
|
};
|
|
@@ -621,12 +1460,12 @@ const Button = React__default.forwardRef((props, ref) => {
|
|
|
621
1460
|
onMouseLeave,
|
|
622
1461
|
size = "middle"
|
|
623
1462
|
} = _a,
|
|
624
|
-
restProps = __objRest$
|
|
1463
|
+
restProps = __objRest$y(_a, ["type", "className", "children", "prefixIcon", "hoverPrefixIcon", "suffixIcon", "hoverSuffixIcon", "onMouseEnter", "onMouseLeave", "size"]);
|
|
625
1464
|
const [status, setStatus] = useState("normal");
|
|
626
1465
|
const hasIcon = prefixIcon || suffixIcon;
|
|
627
1466
|
const hasHoverIcon = hoverPrefixIcon || hoverSuffixIcon;
|
|
628
1467
|
const onlyIcon = !children && (prefixIcon || suffixIcon);
|
|
629
|
-
return /* @__PURE__ */React__default.createElement(Button$1, __spreadValues$
|
|
1468
|
+
return /* @__PURE__ */React__default.createElement(Button$1, __spreadValues$O({
|
|
630
1469
|
ref,
|
|
631
1470
|
className: cs(className, ButtonStyle$1, type === "link" && NoPadding, size === "large" && Typo.Label.l1_regular_title, size === "middle" && Typo.Label.l2_regular_title, size === "small" && Typo.Label.l3_regular_title, type && `ant-btn-${type}`, onlyIcon && "ant-btn-icon-only"),
|
|
632
1471
|
type: isAntdButtonTypes(type) ? type : void 0,
|
|
@@ -656,31 +1495,31 @@ const Button = React__default.forwardRef((props, ref) => {
|
|
|
656
1495
|
}));
|
|
657
1496
|
});
|
|
658
1497
|
|
|
659
|
-
var __defProp$
|
|
660
|
-
var __defProps$
|
|
661
|
-
var __getOwnPropDescs$
|
|
662
|
-
var __getOwnPropSymbols$
|
|
663
|
-
var __hasOwnProp$
|
|
664
|
-
var __propIsEnum$
|
|
665
|
-
var __defNormalProp$
|
|
1498
|
+
var __defProp$O = Object.defineProperty;
|
|
1499
|
+
var __defProps$E = Object.defineProperties;
|
|
1500
|
+
var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
|
|
1501
|
+
var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
|
|
1502
|
+
var __hasOwnProp$P = Object.prototype.hasOwnProperty;
|
|
1503
|
+
var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
|
|
1504
|
+
var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, {
|
|
666
1505
|
enumerable: true,
|
|
667
1506
|
configurable: true,
|
|
668
1507
|
writable: true,
|
|
669
1508
|
value
|
|
670
1509
|
}) : obj[key] = value;
|
|
671
|
-
var __spreadValues$
|
|
672
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
673
|
-
if (__getOwnPropSymbols$
|
|
674
|
-
if (__propIsEnum$
|
|
1510
|
+
var __spreadValues$N = (a, b) => {
|
|
1511
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$P.call(b, prop)) __defNormalProp$O(a, prop, b[prop]);
|
|
1512
|
+
if (__getOwnPropSymbols$P) for (var prop of __getOwnPropSymbols$P(b)) {
|
|
1513
|
+
if (__propIsEnum$P.call(b, prop)) __defNormalProp$O(a, prop, b[prop]);
|
|
675
1514
|
}
|
|
676
1515
|
return a;
|
|
677
1516
|
};
|
|
678
|
-
var __spreadProps$
|
|
679
|
-
var __objRest$
|
|
1517
|
+
var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
|
|
1518
|
+
var __objRest$x = (source, exclude) => {
|
|
680
1519
|
var target = {};
|
|
681
|
-
for (var prop in source) if (__hasOwnProp$
|
|
682
|
-
if (source != null && __getOwnPropSymbols$
|
|
683
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1520
|
+
for (var prop in source) if (__hasOwnProp$P.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1521
|
+
if (source != null && __getOwnPropSymbols$P) for (var prop of __getOwnPropSymbols$P(source)) {
|
|
1522
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$P.call(source, prop)) target[prop] = source[prop];
|
|
684
1523
|
}
|
|
685
1524
|
return target;
|
|
686
1525
|
};
|
|
@@ -693,8 +1532,8 @@ const Checkbox = _a => {
|
|
|
693
1532
|
description,
|
|
694
1533
|
compact
|
|
695
1534
|
} = _b,
|
|
696
|
-
props = __objRest$
|
|
697
|
-
return /* @__PURE__ */React__default.createElement(Checkbox$1, __spreadProps$
|
|
1535
|
+
props = __objRest$x(_b, ["className", "children", "description", "compact"]);
|
|
1536
|
+
return /* @__PURE__ */React__default.createElement(Checkbox$1, __spreadProps$E(__spreadValues$N({}, props), {
|
|
698
1537
|
"data-test": props["data-test"] || props.value,
|
|
699
1538
|
className: cs(className, CheckboxStyle, compact && "compact")
|
|
700
1539
|
}), children ? /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement("div", {
|
|
@@ -704,39 +1543,39 @@ const Checkbox = _a => {
|
|
|
704
1543
|
}, description) : null) : null);
|
|
705
1544
|
};
|
|
706
1545
|
|
|
707
|
-
var __defProp$
|
|
708
|
-
var __getOwnPropSymbols$
|
|
709
|
-
var __hasOwnProp$
|
|
710
|
-
var __propIsEnum$
|
|
711
|
-
var __defNormalProp$
|
|
712
|
-
var __spreadValues$
|
|
1546
|
+
var __defProp$N = Object.defineProperty;
|
|
1547
|
+
var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
|
|
1548
|
+
var __hasOwnProp$O = Object.prototype.hasOwnProperty;
|
|
1549
|
+
var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
|
|
1550
|
+
var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1551
|
+
var __spreadValues$M = (a, b) => {
|
|
713
1552
|
for (var prop in b || (b = {}))
|
|
714
|
-
if (__hasOwnProp$
|
|
715
|
-
__defNormalProp$
|
|
716
|
-
if (__getOwnPropSymbols$
|
|
717
|
-
for (var prop of __getOwnPropSymbols$
|
|
718
|
-
if (__propIsEnum$
|
|
719
|
-
__defNormalProp$
|
|
1553
|
+
if (__hasOwnProp$O.call(b, prop))
|
|
1554
|
+
__defNormalProp$N(a, prop, b[prop]);
|
|
1555
|
+
if (__getOwnPropSymbols$O)
|
|
1556
|
+
for (var prop of __getOwnPropSymbols$O(b)) {
|
|
1557
|
+
if (__propIsEnum$O.call(b, prop))
|
|
1558
|
+
__defNormalProp$N(a, prop, b[prop]);
|
|
720
1559
|
}
|
|
721
1560
|
return a;
|
|
722
1561
|
};
|
|
723
|
-
var __objRest$
|
|
1562
|
+
var __objRest$w = (source, exclude) => {
|
|
724
1563
|
var target = {};
|
|
725
1564
|
for (var prop in source)
|
|
726
|
-
if (__hasOwnProp$
|
|
1565
|
+
if (__hasOwnProp$O.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
727
1566
|
target[prop] = source[prop];
|
|
728
|
-
if (source != null && __getOwnPropSymbols$
|
|
729
|
-
for (var prop of __getOwnPropSymbols$
|
|
730
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1567
|
+
if (source != null && __getOwnPropSymbols$O)
|
|
1568
|
+
for (var prop of __getOwnPropSymbols$O(source)) {
|
|
1569
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$O.call(source, prop))
|
|
731
1570
|
target[prop] = source[prop];
|
|
732
1571
|
}
|
|
733
1572
|
return target;
|
|
734
1573
|
};
|
|
735
1574
|
const FieldsBoolean = (_a) => {
|
|
736
|
-
var _b = _a, { input, children } = _b, props = __objRest$
|
|
1575
|
+
var _b = _a, { input, children } = _b, props = __objRest$w(_b, ["input", "children"]);
|
|
737
1576
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
738
1577
|
Checkbox,
|
|
739
|
-
__spreadValues$
|
|
1578
|
+
__spreadValues$M({
|
|
740
1579
|
checked: Boolean(input.value),
|
|
741
1580
|
onChange: (e) => input.onChange(e.target.checked)
|
|
742
1581
|
}, props),
|
|
@@ -761,17 +1600,17 @@ const FieldsDateTime = ({ input }) => /* @__PURE__ */ React__default.createEleme
|
|
|
761
1600
|
}
|
|
762
1601
|
));
|
|
763
1602
|
|
|
764
|
-
var __getOwnPropSymbols$
|
|
765
|
-
var __hasOwnProp$
|
|
766
|
-
var __propIsEnum$
|
|
767
|
-
var __objRest$
|
|
1603
|
+
var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
|
|
1604
|
+
var __hasOwnProp$N = Object.prototype.hasOwnProperty;
|
|
1605
|
+
var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
|
|
1606
|
+
var __objRest$v = (source, exclude) => {
|
|
768
1607
|
var target = {};
|
|
769
1608
|
for (var prop in source)
|
|
770
|
-
if (__hasOwnProp$
|
|
1609
|
+
if (__hasOwnProp$N.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
771
1610
|
target[prop] = source[prop];
|
|
772
|
-
if (source != null && __getOwnPropSymbols$
|
|
773
|
-
for (var prop of __getOwnPropSymbols$
|
|
774
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1611
|
+
if (source != null && __getOwnPropSymbols$N)
|
|
1612
|
+
for (var prop of __getOwnPropSymbols$N(source)) {
|
|
1613
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$N.call(source, prop))
|
|
775
1614
|
target[prop] = source[prop];
|
|
776
1615
|
}
|
|
777
1616
|
return target;
|
|
@@ -779,7 +1618,7 @@ var __objRest$w = (source, exclude) => {
|
|
|
779
1618
|
const FieldsDateTimeRange = (_a) => {
|
|
780
1619
|
var _b = _a, {
|
|
781
1620
|
input
|
|
782
|
-
} = _b, props = __objRest$
|
|
1621
|
+
} = _b, props = __objRest$v(_b, [
|
|
783
1622
|
"input"
|
|
784
1623
|
]);
|
|
785
1624
|
var _a2, _b2;
|
|
@@ -803,74 +1642,61 @@ const FieldsDateTimeRange = (_a) => {
|
|
|
803
1642
|
));
|
|
804
1643
|
};
|
|
805
1644
|
|
|
806
|
-
const WizardBody = /*#__PURE__*/styled$1('div')({
|
|
807
|
-
name: "WizardBody",
|
|
808
|
-
class: "w1vvwdlp",
|
|
809
|
-
propsAsIs: false
|
|
810
|
-
});
|
|
811
|
-
const FullView = /*#__PURE__*/styled$1('div')({
|
|
812
|
-
name: "FullView",
|
|
813
|
-
class: "f1rest1f",
|
|
814
|
-
propsAsIs: false
|
|
815
|
-
});
|
|
816
|
-
const InputStyle = "ipd9bk";
|
|
817
|
-
const KitInputStyle = "kypn5o5";
|
|
818
|
-
|
|
819
1645
|
const LoadingWrapper = "l4bld33";
|
|
820
1646
|
const LoadingLine1 = "lgitjoj";
|
|
821
1647
|
const LoadingLine2 = "l13g0exg";
|
|
822
1648
|
const LoadingLine3 = "l1exo3h6";
|
|
823
1649
|
|
|
824
|
-
var __defProp$
|
|
825
|
-
var __defProps$
|
|
826
|
-
var __getOwnPropDescs$
|
|
827
|
-
var __getOwnPropSymbols$
|
|
828
|
-
var __hasOwnProp$
|
|
829
|
-
var __propIsEnum$
|
|
830
|
-
var __defNormalProp$
|
|
831
|
-
var __spreadValues$
|
|
1650
|
+
var __defProp$M = Object.defineProperty;
|
|
1651
|
+
var __defProps$D = Object.defineProperties;
|
|
1652
|
+
var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
|
|
1653
|
+
var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
|
|
1654
|
+
var __hasOwnProp$M = Object.prototype.hasOwnProperty;
|
|
1655
|
+
var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
|
|
1656
|
+
var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1657
|
+
var __spreadValues$L = (a, b) => {
|
|
832
1658
|
for (var prop in b || (b = {}))
|
|
833
|
-
if (__hasOwnProp$
|
|
834
|
-
__defNormalProp$
|
|
835
|
-
if (__getOwnPropSymbols$
|
|
836
|
-
for (var prop of __getOwnPropSymbols$
|
|
837
|
-
if (__propIsEnum$
|
|
838
|
-
__defNormalProp$
|
|
1659
|
+
if (__hasOwnProp$M.call(b, prop))
|
|
1660
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
1661
|
+
if (__getOwnPropSymbols$M)
|
|
1662
|
+
for (var prop of __getOwnPropSymbols$M(b)) {
|
|
1663
|
+
if (__propIsEnum$M.call(b, prop))
|
|
1664
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
839
1665
|
}
|
|
840
1666
|
return a;
|
|
841
1667
|
};
|
|
842
|
-
var __spreadProps$
|
|
1668
|
+
var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
|
|
843
1669
|
const Loading = ({ fullView = true }) => {
|
|
844
1670
|
const Wrapper = fullView ? FullView : Fragment;
|
|
845
1671
|
const props = fullView ? { className: "loading-full-view" } : {};
|
|
846
|
-
return /* @__PURE__ */ React__default.createElement(Wrapper, __spreadProps$
|
|
1672
|
+
return /* @__PURE__ */ React__default.createElement(Wrapper, __spreadProps$D(__spreadValues$L({}, props), { "data-testid": "loading" }), /* @__PURE__ */ React__default.createElement("div", { className: LoadingWrapper }, /* @__PURE__ */ React__default.createElement("div", { className: LoadingLine1 }), /* @__PURE__ */ React__default.createElement("div", { className: LoadingLine2 }), /* @__PURE__ */ React__default.createElement("div", { className: LoadingLine3 })));
|
|
847
1673
|
};
|
|
848
1674
|
|
|
849
|
-
var __defProp$
|
|
850
|
-
var __defProps$
|
|
851
|
-
var __getOwnPropDescs$
|
|
852
|
-
var __getOwnPropSymbols$
|
|
853
|
-
var __hasOwnProp$
|
|
854
|
-
var __propIsEnum$
|
|
855
|
-
var __defNormalProp$
|
|
1675
|
+
var __defProp$L = Object.defineProperty;
|
|
1676
|
+
var __defProps$C = Object.defineProperties;
|
|
1677
|
+
var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
|
|
1678
|
+
var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
|
|
1679
|
+
var __hasOwnProp$L = Object.prototype.hasOwnProperty;
|
|
1680
|
+
var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
|
|
1681
|
+
var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, {
|
|
856
1682
|
enumerable: true,
|
|
857
1683
|
configurable: true,
|
|
858
1684
|
writable: true,
|
|
859
1685
|
value
|
|
860
1686
|
}) : obj[key] = value;
|
|
861
|
-
var __spreadValues$
|
|
862
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
863
|
-
if (__getOwnPropSymbols$
|
|
864
|
-
if (__propIsEnum$
|
|
1687
|
+
var __spreadValues$K = (a, b) => {
|
|
1688
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$L.call(b, prop)) __defNormalProp$L(a, prop, b[prop]);
|
|
1689
|
+
if (__getOwnPropSymbols$L) for (var prop of __getOwnPropSymbols$L(b)) {
|
|
1690
|
+
if (__propIsEnum$L.call(b, prop)) __defNormalProp$L(a, prop, b[prop]);
|
|
865
1691
|
}
|
|
866
1692
|
return a;
|
|
867
1693
|
};
|
|
868
|
-
var __spreadProps$
|
|
869
|
-
var __objRest$
|
|
1694
|
+
var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
|
|
1695
|
+
var __objRest$u = (source, exclude) => {
|
|
870
1696
|
var target = {};
|
|
871
|
-
for (var prop in source) if (__hasOwnProp$
|
|
872
|
-
if (source != null && __getOwnPropSymbols$
|
|
873
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1697
|
+
for (var prop in source) if (__hasOwnProp$L.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1698
|
+
if (source != null && __getOwnPropSymbols$L) for (var prop of __getOwnPropSymbols$L(source)) {
|
|
1699
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$L.call(source, prop)) target[prop] = source[prop];
|
|
874
1700
|
}
|
|
875
1701
|
return target;
|
|
876
1702
|
};
|
|
@@ -898,7 +1724,7 @@ const Select = _a => {
|
|
|
898
1724
|
meta,
|
|
899
1725
|
placeholder
|
|
900
1726
|
} = _b,
|
|
901
|
-
restProps = __objRest$
|
|
1727
|
+
restProps = __objRest$u(_b, ["input", "multiple", "className", "scrollBottomBuffer", "onScrollBottom", "onPopupScroll", "onSearch", "showSearch", "filterOption", "loading", "notFoundContent", "children", "error", "selectLimit", "dropdownClassName", "danger", "size", "meta", "placeholder"]);
|
|
902
1728
|
var _a2;
|
|
903
1729
|
const limitExceeded = multiple && selectLimit && selectLimit <= (((_a2 = input.value) == null ? void 0 : _a2.length) || 0);
|
|
904
1730
|
const typo = {
|
|
@@ -924,7 +1750,7 @@ const Select = _a => {
|
|
|
924
1750
|
inputDom && (placeholder || item) && inputDom.setAttribute("data-test", String(placeholder || item.textContent));
|
|
925
1751
|
}
|
|
926
1752
|
}, [selectRef, placeholder]);
|
|
927
|
-
return /* @__PURE__ */React__default.createElement(Select$1, __spreadValues$
|
|
1753
|
+
return /* @__PURE__ */React__default.createElement(Select$1, __spreadValues$K(__spreadProps$C(__spreadValues$K({}, input), {
|
|
928
1754
|
ref: selectRef,
|
|
929
1755
|
size,
|
|
930
1756
|
value: multiple ? input.value || [] : input.value || void 0,
|
|
@@ -965,38 +1791,38 @@ const Select = _a => {
|
|
|
965
1791
|
loading,
|
|
966
1792
|
placeholder
|
|
967
1793
|
}), restProps), React__default.Children.map(children, child => {
|
|
968
|
-
return isElement(child) ? __spreadProps$
|
|
969
|
-
props: __spreadProps$
|
|
1794
|
+
return isElement(child) ? __spreadProps$C(__spreadValues$K({}, child), {
|
|
1795
|
+
props: __spreadProps$C(__spreadValues$K({}, child.props), {
|
|
970
1796
|
"data-test": child.props.value
|
|
971
1797
|
})
|
|
972
1798
|
}) : child;
|
|
973
1799
|
}));
|
|
974
1800
|
};
|
|
975
1801
|
|
|
976
|
-
var __defProp$
|
|
977
|
-
var __getOwnPropSymbols$
|
|
978
|
-
var __hasOwnProp$
|
|
979
|
-
var __propIsEnum$
|
|
980
|
-
var __defNormalProp$
|
|
981
|
-
var __spreadValues$
|
|
1802
|
+
var __defProp$K = Object.defineProperty;
|
|
1803
|
+
var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
|
|
1804
|
+
var __hasOwnProp$K = Object.prototype.hasOwnProperty;
|
|
1805
|
+
var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
|
|
1806
|
+
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1807
|
+
var __spreadValues$J = (a, b) => {
|
|
982
1808
|
for (var prop in b || (b = {}))
|
|
983
|
-
if (__hasOwnProp$
|
|
984
|
-
__defNormalProp$
|
|
985
|
-
if (__getOwnPropSymbols$
|
|
986
|
-
for (var prop of __getOwnPropSymbols$
|
|
987
|
-
if (__propIsEnum$
|
|
988
|
-
__defNormalProp$
|
|
1809
|
+
if (__hasOwnProp$K.call(b, prop))
|
|
1810
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
1811
|
+
if (__getOwnPropSymbols$K)
|
|
1812
|
+
for (var prop of __getOwnPropSymbols$K(b)) {
|
|
1813
|
+
if (__propIsEnum$K.call(b, prop))
|
|
1814
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
989
1815
|
}
|
|
990
1816
|
return a;
|
|
991
1817
|
};
|
|
992
|
-
var __objRest$
|
|
1818
|
+
var __objRest$t = (source, exclude) => {
|
|
993
1819
|
var target = {};
|
|
994
1820
|
for (var prop in source)
|
|
995
|
-
if (__hasOwnProp$
|
|
1821
|
+
if (__hasOwnProp$K.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
996
1822
|
target[prop] = source[prop];
|
|
997
|
-
if (source != null && __getOwnPropSymbols$
|
|
998
|
-
for (var prop of __getOwnPropSymbols$
|
|
999
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1823
|
+
if (source != null && __getOwnPropSymbols$K)
|
|
1824
|
+
for (var prop of __getOwnPropSymbols$K(source)) {
|
|
1825
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$K.call(source, prop))
|
|
1000
1826
|
target[prop] = source[prop];
|
|
1001
1827
|
}
|
|
1002
1828
|
return target;
|
|
@@ -1006,12 +1832,12 @@ const FieldsEnum = (_a) => {
|
|
|
1006
1832
|
meta: __,
|
|
1007
1833
|
enumValues,
|
|
1008
1834
|
emptyLabel
|
|
1009
|
-
} = _b, restProps = __objRest$
|
|
1835
|
+
} = _b, restProps = __objRest$t(_b, [
|
|
1010
1836
|
"meta",
|
|
1011
1837
|
"enumValues",
|
|
1012
1838
|
"emptyLabel"
|
|
1013
1839
|
]);
|
|
1014
|
-
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Select, __spreadValues$
|
|
1840
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Select, __spreadValues$J({}, restProps), emptyLabel && /* @__PURE__ */ React__default.createElement(Select$1.Option, { value: "" }, emptyLabel), enumValues.map((v) => {
|
|
1015
1841
|
const item = typeof v === "string" ? { value: v, text: v } : v;
|
|
1016
1842
|
return /* @__PURE__ */ React__default.createElement(
|
|
1017
1843
|
Select$1.Option,
|
|
@@ -1025,31 +1851,31 @@ const FieldsEnum = (_a) => {
|
|
|
1025
1851
|
})));
|
|
1026
1852
|
};
|
|
1027
1853
|
|
|
1028
|
-
var __defProp$
|
|
1029
|
-
var __defProps$
|
|
1030
|
-
var __getOwnPropDescs$
|
|
1031
|
-
var __getOwnPropSymbols$
|
|
1032
|
-
var __hasOwnProp$
|
|
1033
|
-
var __propIsEnum$
|
|
1034
|
-
var __defNormalProp$
|
|
1854
|
+
var __defProp$J = Object.defineProperty;
|
|
1855
|
+
var __defProps$B = Object.defineProperties;
|
|
1856
|
+
var __getOwnPropDescs$B = Object.getOwnPropertyDescriptors;
|
|
1857
|
+
var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
|
|
1858
|
+
var __hasOwnProp$J = Object.prototype.hasOwnProperty;
|
|
1859
|
+
var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
|
|
1860
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, {
|
|
1035
1861
|
enumerable: true,
|
|
1036
1862
|
configurable: true,
|
|
1037
1863
|
writable: true,
|
|
1038
1864
|
value
|
|
1039
1865
|
}) : obj[key] = value;
|
|
1040
|
-
var __spreadValues$
|
|
1041
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1042
|
-
if (__getOwnPropSymbols$
|
|
1043
|
-
if (__propIsEnum$
|
|
1866
|
+
var __spreadValues$I = (a, b) => {
|
|
1867
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$J.call(b, prop)) __defNormalProp$J(a, prop, b[prop]);
|
|
1868
|
+
if (__getOwnPropSymbols$J) for (var prop of __getOwnPropSymbols$J(b)) {
|
|
1869
|
+
if (__propIsEnum$J.call(b, prop)) __defNormalProp$J(a, prop, b[prop]);
|
|
1044
1870
|
}
|
|
1045
1871
|
return a;
|
|
1046
1872
|
};
|
|
1047
|
-
var __spreadProps$
|
|
1048
|
-
var __objRest$
|
|
1873
|
+
var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
|
|
1874
|
+
var __objRest$s = (source, exclude) => {
|
|
1049
1875
|
var target = {};
|
|
1050
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1051
|
-
if (source != null && __getOwnPropSymbols$
|
|
1052
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1876
|
+
for (var prop in source) if (__hasOwnProp$J.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1877
|
+
if (source != null && __getOwnPropSymbols$J) for (var prop of __getOwnPropSymbols$J(source)) {
|
|
1878
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$J.call(source, prop)) target[prop] = source[prop];
|
|
1053
1879
|
}
|
|
1054
1880
|
return target;
|
|
1055
1881
|
};
|
|
@@ -1085,13 +1911,13 @@ const InputNumber = _a => {
|
|
|
1085
1911
|
prefix,
|
|
1086
1912
|
controls = true
|
|
1087
1913
|
} = _b,
|
|
1088
|
-
props = __objRest$
|
|
1914
|
+
props = __objRest$s(_b, ["className", "error", "size", "suffix", "prefix", "controls"]);
|
|
1089
1915
|
const typo = {
|
|
1090
1916
|
large: Typo.Label.l2_regular,
|
|
1091
1917
|
middle: Typo.Label.l3_regular,
|
|
1092
1918
|
small: Typo.Label.l4_regular
|
|
1093
1919
|
}[size];
|
|
1094
|
-
return /* @__PURE__ */React__default.createElement(AntdInputNumberStyled, __spreadProps$
|
|
1920
|
+
return /* @__PURE__ */React__default.createElement(AntdInputNumberStyled, __spreadProps$B(__spreadValues$I({}, props), {
|
|
1095
1921
|
size,
|
|
1096
1922
|
controls,
|
|
1097
1923
|
"data-test": props.name,
|
|
@@ -1101,33 +1927,33 @@ const InputNumber = _a => {
|
|
|
1101
1927
|
}));
|
|
1102
1928
|
};
|
|
1103
1929
|
|
|
1104
|
-
var __defProp$
|
|
1105
|
-
var __defProps$
|
|
1106
|
-
var __getOwnPropDescs$
|
|
1107
|
-
var __getOwnPropSymbols$
|
|
1108
|
-
var __hasOwnProp$
|
|
1109
|
-
var __propIsEnum$
|
|
1110
|
-
var __defNormalProp$
|
|
1111
|
-
var __spreadValues$
|
|
1930
|
+
var __defProp$I = Object.defineProperty;
|
|
1931
|
+
var __defProps$A = Object.defineProperties;
|
|
1932
|
+
var __getOwnPropDescs$A = Object.getOwnPropertyDescriptors;
|
|
1933
|
+
var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
|
|
1934
|
+
var __hasOwnProp$I = Object.prototype.hasOwnProperty;
|
|
1935
|
+
var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
|
|
1936
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1937
|
+
var __spreadValues$H = (a, b) => {
|
|
1112
1938
|
for (var prop in b || (b = {}))
|
|
1113
|
-
if (__hasOwnProp$
|
|
1114
|
-
__defNormalProp$
|
|
1115
|
-
if (__getOwnPropSymbols$
|
|
1116
|
-
for (var prop of __getOwnPropSymbols$
|
|
1117
|
-
if (__propIsEnum$
|
|
1118
|
-
__defNormalProp$
|
|
1939
|
+
if (__hasOwnProp$I.call(b, prop))
|
|
1940
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
1941
|
+
if (__getOwnPropSymbols$I)
|
|
1942
|
+
for (var prop of __getOwnPropSymbols$I(b)) {
|
|
1943
|
+
if (__propIsEnum$I.call(b, prop))
|
|
1944
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
1119
1945
|
}
|
|
1120
1946
|
return a;
|
|
1121
1947
|
};
|
|
1122
|
-
var __spreadProps$
|
|
1123
|
-
var __objRest$
|
|
1948
|
+
var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
|
|
1949
|
+
var __objRest$r = (source, exclude) => {
|
|
1124
1950
|
var target = {};
|
|
1125
1951
|
for (var prop in source)
|
|
1126
|
-
if (__hasOwnProp$
|
|
1952
|
+
if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1127
1953
|
target[prop] = source[prop];
|
|
1128
|
-
if (source != null && __getOwnPropSymbols$
|
|
1129
|
-
for (var prop of __getOwnPropSymbols$
|
|
1130
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1954
|
+
if (source != null && __getOwnPropSymbols$I)
|
|
1955
|
+
for (var prop of __getOwnPropSymbols$I(source)) {
|
|
1956
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$I.call(source, prop))
|
|
1131
1957
|
target[prop] = source[prop];
|
|
1132
1958
|
}
|
|
1133
1959
|
return target;
|
|
@@ -1138,7 +1964,7 @@ const FieldsFloat = (_a) => {
|
|
|
1138
1964
|
meta,
|
|
1139
1965
|
onBlur,
|
|
1140
1966
|
autoComplete = "off"
|
|
1141
|
-
} = _b, props = __objRest$
|
|
1967
|
+
} = _b, props = __objRest$r(_b, [
|
|
1142
1968
|
"input",
|
|
1143
1969
|
"meta",
|
|
1144
1970
|
"onBlur",
|
|
@@ -1146,7 +1972,7 @@ const FieldsFloat = (_a) => {
|
|
|
1146
1972
|
]);
|
|
1147
1973
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
1148
1974
|
InputNumber,
|
|
1149
|
-
__spreadValues$
|
|
1975
|
+
__spreadValues$H(__spreadProps$A(__spreadValues$H({}, input), {
|
|
1150
1976
|
onBlur: (e) => onBlur ? onBlur(input, e) : input.onBlur(e),
|
|
1151
1977
|
autoComplete,
|
|
1152
1978
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
@@ -1154,33 +1980,33 @@ const FieldsFloat = (_a) => {
|
|
|
1154
1980
|
));
|
|
1155
1981
|
};
|
|
1156
1982
|
|
|
1157
|
-
var __defProp$
|
|
1158
|
-
var __defProps$
|
|
1159
|
-
var __getOwnPropDescs$
|
|
1160
|
-
var __getOwnPropSymbols$
|
|
1161
|
-
var __hasOwnProp$
|
|
1162
|
-
var __propIsEnum$
|
|
1163
|
-
var __defNormalProp$
|
|
1164
|
-
var __spreadValues$
|
|
1983
|
+
var __defProp$H = Object.defineProperty;
|
|
1984
|
+
var __defProps$z = Object.defineProperties;
|
|
1985
|
+
var __getOwnPropDescs$z = Object.getOwnPropertyDescriptors;
|
|
1986
|
+
var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
|
|
1987
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
|
1988
|
+
var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
|
|
1989
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1990
|
+
var __spreadValues$G = (a, b) => {
|
|
1165
1991
|
for (var prop in b || (b = {}))
|
|
1166
|
-
if (__hasOwnProp$
|
|
1167
|
-
__defNormalProp$
|
|
1168
|
-
if (__getOwnPropSymbols$
|
|
1169
|
-
for (var prop of __getOwnPropSymbols$
|
|
1170
|
-
if (__propIsEnum$
|
|
1171
|
-
__defNormalProp$
|
|
1992
|
+
if (__hasOwnProp$H.call(b, prop))
|
|
1993
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
1994
|
+
if (__getOwnPropSymbols$H)
|
|
1995
|
+
for (var prop of __getOwnPropSymbols$H(b)) {
|
|
1996
|
+
if (__propIsEnum$H.call(b, prop))
|
|
1997
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
1172
1998
|
}
|
|
1173
1999
|
return a;
|
|
1174
2000
|
};
|
|
1175
|
-
var __spreadProps$
|
|
1176
|
-
var __objRest$
|
|
2001
|
+
var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
|
|
2002
|
+
var __objRest$q = (source, exclude) => {
|
|
1177
2003
|
var target = {};
|
|
1178
2004
|
for (var prop in source)
|
|
1179
|
-
if (__hasOwnProp$
|
|
2005
|
+
if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1180
2006
|
target[prop] = source[prop];
|
|
1181
|
-
if (source != null && __getOwnPropSymbols$
|
|
1182
|
-
for (var prop of __getOwnPropSymbols$
|
|
1183
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2007
|
+
if (source != null && __getOwnPropSymbols$H)
|
|
2008
|
+
for (var prop of __getOwnPropSymbols$H(source)) {
|
|
2009
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
|
|
1184
2010
|
target[prop] = source[prop];
|
|
1185
2011
|
}
|
|
1186
2012
|
return target;
|
|
@@ -1190,7 +2016,7 @@ const Input = (_a) => {
|
|
|
1190
2016
|
className,
|
|
1191
2017
|
error,
|
|
1192
2018
|
size = "middle"
|
|
1193
|
-
} = _b, props = __objRest$
|
|
2019
|
+
} = _b, props = __objRest$q(_b, [
|
|
1194
2020
|
"className",
|
|
1195
2021
|
"error",
|
|
1196
2022
|
"size"
|
|
@@ -1202,7 +2028,7 @@ const Input = (_a) => {
|
|
|
1202
2028
|
}[size];
|
|
1203
2029
|
return /* @__PURE__ */ React__default.createElement(
|
|
1204
2030
|
Input$1,
|
|
1205
|
-
__spreadProps$
|
|
2031
|
+
__spreadProps$z(__spreadValues$G({}, props), {
|
|
1206
2032
|
size,
|
|
1207
2033
|
"data-test": props.name,
|
|
1208
2034
|
className: cs(className, InputStyle, typo, error ? "error" : "")
|
|
@@ -1210,33 +2036,33 @@ const Input = (_a) => {
|
|
|
1210
2036
|
);
|
|
1211
2037
|
};
|
|
1212
2038
|
|
|
1213
|
-
var __defProp$
|
|
1214
|
-
var __defProps$
|
|
1215
|
-
var __getOwnPropDescs$
|
|
1216
|
-
var __getOwnPropSymbols$
|
|
1217
|
-
var __hasOwnProp$
|
|
1218
|
-
var __propIsEnum$
|
|
1219
|
-
var __defNormalProp$
|
|
1220
|
-
var __spreadValues$
|
|
2039
|
+
var __defProp$G = Object.defineProperty;
|
|
2040
|
+
var __defProps$y = Object.defineProperties;
|
|
2041
|
+
var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
|
|
2042
|
+
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
|
2043
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
|
2044
|
+
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
|
2045
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2046
|
+
var __spreadValues$F = (a, b) => {
|
|
1221
2047
|
for (var prop in b || (b = {}))
|
|
1222
|
-
if (__hasOwnProp$
|
|
1223
|
-
__defNormalProp$
|
|
1224
|
-
if (__getOwnPropSymbols$
|
|
1225
|
-
for (var prop of __getOwnPropSymbols$
|
|
1226
|
-
if (__propIsEnum$
|
|
1227
|
-
__defNormalProp$
|
|
2048
|
+
if (__hasOwnProp$G.call(b, prop))
|
|
2049
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
2050
|
+
if (__getOwnPropSymbols$G)
|
|
2051
|
+
for (var prop of __getOwnPropSymbols$G(b)) {
|
|
2052
|
+
if (__propIsEnum$G.call(b, prop))
|
|
2053
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
1228
2054
|
}
|
|
1229
2055
|
return a;
|
|
1230
2056
|
};
|
|
1231
|
-
var __spreadProps$
|
|
1232
|
-
var __objRest$
|
|
2057
|
+
var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
|
|
2058
|
+
var __objRest$p = (source, exclude) => {
|
|
1233
2059
|
var target = {};
|
|
1234
2060
|
for (var prop in source)
|
|
1235
|
-
if (__hasOwnProp$
|
|
2061
|
+
if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1236
2062
|
target[prop] = source[prop];
|
|
1237
|
-
if (source != null && __getOwnPropSymbols$
|
|
1238
|
-
for (var prop of __getOwnPropSymbols$
|
|
1239
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2063
|
+
if (source != null && __getOwnPropSymbols$G)
|
|
2064
|
+
for (var prop of __getOwnPropSymbols$G(source)) {
|
|
2065
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop))
|
|
1240
2066
|
target[prop] = source[prop];
|
|
1241
2067
|
}
|
|
1242
2068
|
return target;
|
|
@@ -1248,7 +2074,7 @@ const FieldsInt = (_a) => {
|
|
|
1248
2074
|
onBlur,
|
|
1249
2075
|
autoComplete = "off",
|
|
1250
2076
|
supportNegativeValue = false
|
|
1251
|
-
} = _b, props = __objRest$
|
|
2077
|
+
} = _b, props = __objRest$p(_b, [
|
|
1252
2078
|
"input",
|
|
1253
2079
|
"meta",
|
|
1254
2080
|
"onBlur",
|
|
@@ -1257,7 +2083,7 @@ const FieldsInt = (_a) => {
|
|
|
1257
2083
|
]);
|
|
1258
2084
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
1259
2085
|
Input,
|
|
1260
|
-
__spreadValues$
|
|
2086
|
+
__spreadValues$F(__spreadProps$y(__spreadValues$F({}, input), {
|
|
1261
2087
|
onChange: (e) => {
|
|
1262
2088
|
const value = e.currentTarget.value;
|
|
1263
2089
|
if (supportNegativeValue) {
|
|
@@ -1292,31 +2118,31 @@ const formatterInteger = (value) => {
|
|
|
1292
2118
|
}
|
|
1293
2119
|
};
|
|
1294
2120
|
|
|
1295
|
-
var __defProp$
|
|
1296
|
-
var __defProps$
|
|
1297
|
-
var __getOwnPropDescs$
|
|
1298
|
-
var __getOwnPropSymbols$
|
|
1299
|
-
var __hasOwnProp$
|
|
1300
|
-
var __propIsEnum$
|
|
1301
|
-
var __defNormalProp$
|
|
2121
|
+
var __defProp$F = Object.defineProperty;
|
|
2122
|
+
var __defProps$x = Object.defineProperties;
|
|
2123
|
+
var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
|
|
2124
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
|
2125
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
|
2126
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
|
2127
|
+
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, {
|
|
1302
2128
|
enumerable: true,
|
|
1303
2129
|
configurable: true,
|
|
1304
2130
|
writable: true,
|
|
1305
2131
|
value
|
|
1306
2132
|
}) : obj[key] = value;
|
|
1307
|
-
var __spreadValues$
|
|
1308
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1309
|
-
if (__getOwnPropSymbols$
|
|
1310
|
-
if (__propIsEnum$
|
|
2133
|
+
var __spreadValues$E = (a, b) => {
|
|
2134
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$F.call(b, prop)) __defNormalProp$F(a, prop, b[prop]);
|
|
2135
|
+
if (__getOwnPropSymbols$F) for (var prop of __getOwnPropSymbols$F(b)) {
|
|
2136
|
+
if (__propIsEnum$F.call(b, prop)) __defNormalProp$F(a, prop, b[prop]);
|
|
1311
2137
|
}
|
|
1312
2138
|
return a;
|
|
1313
2139
|
};
|
|
1314
|
-
var __spreadProps$
|
|
1315
|
-
var __objRest$
|
|
2140
|
+
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
|
2141
|
+
var __objRest$o = (source, exclude) => {
|
|
1316
2142
|
var target = {};
|
|
1317
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1318
|
-
if (source != null && __getOwnPropSymbols$
|
|
1319
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2143
|
+
for (var prop in source) if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
2144
|
+
if (source != null && __getOwnPropSymbols$F) for (var prop of __getOwnPropSymbols$F(source)) {
|
|
2145
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop)) target[prop] = source[prop];
|
|
1320
2146
|
}
|
|
1321
2147
|
return target;
|
|
1322
2148
|
};
|
|
@@ -1354,13 +2180,13 @@ const InputInteger = _a => {
|
|
|
1354
2180
|
min,
|
|
1355
2181
|
controls = false
|
|
1356
2182
|
} = _b,
|
|
1357
|
-
props = __objRest$
|
|
2183
|
+
props = __objRest$o(_b, ["className", "error", "size", "suffix", "prefix", "max", "min", "controls"]);
|
|
1358
2184
|
const typo = {
|
|
1359
2185
|
large: Typo.Label.l2_regular,
|
|
1360
2186
|
middle: Typo.Label.l3_regular,
|
|
1361
2187
|
small: Typo.Label.l4_regular
|
|
1362
2188
|
}[size];
|
|
1363
|
-
return /* @__PURE__ */React__default.createElement(AntdIntStyled, __spreadProps$
|
|
2189
|
+
return /* @__PURE__ */React__default.createElement(AntdIntStyled, __spreadProps$x(__spreadValues$E({}, props), {
|
|
1364
2190
|
size,
|
|
1365
2191
|
formatter: formatterInteger,
|
|
1366
2192
|
parser: formatterInteger,
|
|
@@ -1374,33 +2200,33 @@ const InputInteger = _a => {
|
|
|
1374
2200
|
}));
|
|
1375
2201
|
};
|
|
1376
2202
|
|
|
1377
|
-
var __defProp$
|
|
1378
|
-
var __defProps$
|
|
1379
|
-
var __getOwnPropDescs$
|
|
1380
|
-
var __getOwnPropSymbols$
|
|
1381
|
-
var __hasOwnProp$
|
|
1382
|
-
var __propIsEnum$
|
|
1383
|
-
var __defNormalProp$
|
|
1384
|
-
var __spreadValues$
|
|
2203
|
+
var __defProp$E = Object.defineProperty;
|
|
2204
|
+
var __defProps$w = Object.defineProperties;
|
|
2205
|
+
var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
|
|
2206
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
|
2207
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
|
2208
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
|
2209
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2210
|
+
var __spreadValues$D = (a, b) => {
|
|
1385
2211
|
for (var prop in b || (b = {}))
|
|
1386
|
-
if (__hasOwnProp$
|
|
1387
|
-
__defNormalProp$
|
|
1388
|
-
if (__getOwnPropSymbols$
|
|
1389
|
-
for (var prop of __getOwnPropSymbols$
|
|
1390
|
-
if (__propIsEnum$
|
|
1391
|
-
__defNormalProp$
|
|
2212
|
+
if (__hasOwnProp$E.call(b, prop))
|
|
2213
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
2214
|
+
if (__getOwnPropSymbols$E)
|
|
2215
|
+
for (var prop of __getOwnPropSymbols$E(b)) {
|
|
2216
|
+
if (__propIsEnum$E.call(b, prop))
|
|
2217
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
1392
2218
|
}
|
|
1393
2219
|
return a;
|
|
1394
2220
|
};
|
|
1395
|
-
var __spreadProps$
|
|
1396
|
-
var __objRest$
|
|
2221
|
+
var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
|
|
2222
|
+
var __objRest$n = (source, exclude) => {
|
|
1397
2223
|
var target = {};
|
|
1398
2224
|
for (var prop in source)
|
|
1399
|
-
if (__hasOwnProp$
|
|
2225
|
+
if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1400
2226
|
target[prop] = source[prop];
|
|
1401
|
-
if (source != null && __getOwnPropSymbols$
|
|
1402
|
-
for (var prop of __getOwnPropSymbols$
|
|
1403
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2227
|
+
if (source != null && __getOwnPropSymbols$E)
|
|
2228
|
+
for (var prop of __getOwnPropSymbols$E(source)) {
|
|
2229
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
|
|
1404
2230
|
target[prop] = source[prop];
|
|
1405
2231
|
}
|
|
1406
2232
|
return target;
|
|
@@ -1410,14 +2236,14 @@ const FieldsInteger = (_a) => {
|
|
|
1410
2236
|
meta,
|
|
1411
2237
|
input,
|
|
1412
2238
|
onBlur
|
|
1413
|
-
} = _b, props = __objRest$
|
|
2239
|
+
} = _b, props = __objRest$n(_b, [
|
|
1414
2240
|
"meta",
|
|
1415
2241
|
"input",
|
|
1416
2242
|
"onBlur"
|
|
1417
2243
|
]);
|
|
1418
2244
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
1419
2245
|
InputInteger,
|
|
1420
|
-
__spreadProps$
|
|
2246
|
+
__spreadProps$w(__spreadValues$D(__spreadValues$D({}, props), input), {
|
|
1421
2247
|
onBlur: (e) => onBlur ? onBlur(input, e) : input.onBlur(e),
|
|
1422
2248
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
1423
2249
|
})
|
|
@@ -1495,10 +2321,10 @@ const useElementResize = (klass, cb, depend) => {
|
|
|
1495
2321
|
const EMPTY_FUNCTION = () => {
|
|
1496
2322
|
};
|
|
1497
2323
|
|
|
1498
|
-
var __defProp$
|
|
1499
|
-
var __defNormalProp$
|
|
2324
|
+
var __defProp$D = Object.defineProperty;
|
|
2325
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1500
2326
|
var __publicField$1 = (obj, key, value) => {
|
|
1501
|
-
__defNormalProp$
|
|
2327
|
+
__defNormalProp$D(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1502
2328
|
return value;
|
|
1503
2329
|
};
|
|
1504
2330
|
dayjs.extend(UTC);
|
|
@@ -1952,175 +2778,6 @@ function getSize(el) {
|
|
|
1952
2778
|
};
|
|
1953
2779
|
}
|
|
1954
2780
|
|
|
1955
|
-
const MAGIC_METRIC_NULL = -2;
|
|
1956
|
-
function formatBits(bits, decimals = 2) {
|
|
1957
|
-
if (bits <= 0 || bits === MAGIC_METRIC_NULL) {
|
|
1958
|
-
return {
|
|
1959
|
-
value: 0,
|
|
1960
|
-
unit: "b"
|
|
1961
|
-
};
|
|
1962
|
-
}
|
|
1963
|
-
const k = 1e3;
|
|
1964
|
-
const units = ["b", "Kb", "Mb", "Gb", "Tb", "Pb"];
|
|
1965
|
-
let i = Math.floor(Math.log(bits) / Math.log(k));
|
|
1966
|
-
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
1967
|
-
return {
|
|
1968
|
-
value: parseFloat((bits / Math.pow(k, i)).toFixed(decimals)),
|
|
1969
|
-
unit: units[i]
|
|
1970
|
-
};
|
|
1971
|
-
}
|
|
1972
|
-
function formatFrequency(frequency, decimals = 2) {
|
|
1973
|
-
if (frequency <= 0 || frequency === MAGIC_METRIC_NULL) {
|
|
1974
|
-
return {
|
|
1975
|
-
value: 0,
|
|
1976
|
-
unit: "Hz"
|
|
1977
|
-
};
|
|
1978
|
-
}
|
|
1979
|
-
const k = 1e3;
|
|
1980
|
-
const units = ["Hz", "KHz", "MHz", "GHz", "THz"];
|
|
1981
|
-
let i = Math.floor(Math.log(frequency) / Math.log(k));
|
|
1982
|
-
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
1983
|
-
return {
|
|
1984
|
-
value: parseFloat((frequency / Math.pow(k, i)).toFixed(decimals)),
|
|
1985
|
-
unit: units[i]
|
|
1986
|
-
};
|
|
1987
|
-
}
|
|
1988
|
-
const SECOND = 1;
|
|
1989
|
-
const MINUTE = 60 * SECOND;
|
|
1990
|
-
const HOUR = 60 * MINUTE;
|
|
1991
|
-
const DAY = 24 * HOUR;
|
|
1992
|
-
const WEEK = 7 * DAY;
|
|
1993
|
-
function formatSeconds(seconds, decimals = 0) {
|
|
1994
|
-
if (seconds <= MAGIC_METRIC_NULL) {
|
|
1995
|
-
seconds = 0;
|
|
1996
|
-
}
|
|
1997
|
-
const units = [
|
|
1998
|
-
{
|
|
1999
|
-
value: WEEK,
|
|
2000
|
-
unit: "week"
|
|
2001
|
-
},
|
|
2002
|
-
{
|
|
2003
|
-
value: DAY,
|
|
2004
|
-
unit: "day"
|
|
2005
|
-
},
|
|
2006
|
-
{
|
|
2007
|
-
value: HOUR,
|
|
2008
|
-
unit: "hour"
|
|
2009
|
-
},
|
|
2010
|
-
{
|
|
2011
|
-
value: MINUTE,
|
|
2012
|
-
unit: "minute"
|
|
2013
|
-
},
|
|
2014
|
-
{
|
|
2015
|
-
value: SECOND,
|
|
2016
|
-
unit: "second"
|
|
2017
|
-
}
|
|
2018
|
-
];
|
|
2019
|
-
for (const unit of units) {
|
|
2020
|
-
if (seconds > unit.value) {
|
|
2021
|
-
return {
|
|
2022
|
-
value: parseFloat((seconds / unit.value).toFixed(decimals)),
|
|
2023
|
-
unit: unit.unit
|
|
2024
|
-
};
|
|
2025
|
-
}
|
|
2026
|
-
}
|
|
2027
|
-
return {
|
|
2028
|
-
value: parseFloat((seconds / SECOND).toFixed(decimals)),
|
|
2029
|
-
unit: "second"
|
|
2030
|
-
};
|
|
2031
|
-
}
|
|
2032
|
-
function formatBitPerSecond(input, decimals = 1) {
|
|
2033
|
-
if (input <= 0 || input === MAGIC_METRIC_NULL) {
|
|
2034
|
-
return {
|
|
2035
|
-
value: 0,
|
|
2036
|
-
unit: "bps"
|
|
2037
|
-
};
|
|
2038
|
-
}
|
|
2039
|
-
const k = 1e3;
|
|
2040
|
-
const units = ["bps", "Kbps", "Mbps", "Gbps", "Tbps"];
|
|
2041
|
-
let i = Math.floor(Math.log(input) / Math.log(k));
|
|
2042
|
-
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
2043
|
-
return {
|
|
2044
|
-
value: parseFloat((input / Math.pow(k, i)).toFixed(decimals)),
|
|
2045
|
-
unit: units[i]
|
|
2046
|
-
};
|
|
2047
|
-
}
|
|
2048
|
-
function formatBps(input, decimals = 1) {
|
|
2049
|
-
if (input <= 0 || input === MAGIC_METRIC_NULL) {
|
|
2050
|
-
return {
|
|
2051
|
-
value: 0,
|
|
2052
|
-
unit: "Bps"
|
|
2053
|
-
};
|
|
2054
|
-
}
|
|
2055
|
-
const k = 1e3;
|
|
2056
|
-
const units = ["Bps", "KBps", "MBps", "GBps", "TBps"];
|
|
2057
|
-
let i = Math.floor(Math.log(input) / Math.log(k));
|
|
2058
|
-
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
2059
|
-
return {
|
|
2060
|
-
value: parseFloat((input / Math.pow(k, i)).toFixed(decimals)),
|
|
2061
|
-
unit: units[i]
|
|
2062
|
-
};
|
|
2063
|
-
}
|
|
2064
|
-
function formatBytes(bytes, decimals = 2) {
|
|
2065
|
-
if (bytes <= 0 || bytes === MAGIC_METRIC_NULL) {
|
|
2066
|
-
return {
|
|
2067
|
-
value: 0,
|
|
2068
|
-
unit: "B"
|
|
2069
|
-
};
|
|
2070
|
-
}
|
|
2071
|
-
const k = 1024;
|
|
2072
|
-
const units = ["B", "KiB", "MiB", "GiB", "TiB", "PiB"];
|
|
2073
|
-
let i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
2074
|
-
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
2075
|
-
return {
|
|
2076
|
-
value: parseFloat((bytes / Math.pow(k, i)).toFixed(decimals)),
|
|
2077
|
-
unit: units[i]
|
|
2078
|
-
};
|
|
2079
|
-
}
|
|
2080
|
-
function formatPercent(input, decimals = 2, saturated = true) {
|
|
2081
|
-
if (input === MAGIC_METRIC_NULL) {
|
|
2082
|
-
input = 0;
|
|
2083
|
-
}
|
|
2084
|
-
if (saturated) {
|
|
2085
|
-
if (input <= 0) {
|
|
2086
|
-
input = 0;
|
|
2087
|
-
}
|
|
2088
|
-
if (input > 100) {
|
|
2089
|
-
input = 100;
|
|
2090
|
-
}
|
|
2091
|
-
}
|
|
2092
|
-
const value = input.toFixed(decimals);
|
|
2093
|
-
if (parseFloat(value) === 0 && input > 0) {
|
|
2094
|
-
if (decimals >= 1) {
|
|
2095
|
-
return {
|
|
2096
|
-
value: `0.${"0".repeat(decimals - 1)}1`,
|
|
2097
|
-
unit: "%"
|
|
2098
|
-
};
|
|
2099
|
-
}
|
|
2100
|
-
return {
|
|
2101
|
-
value: "1",
|
|
2102
|
-
unit: "%"
|
|
2103
|
-
};
|
|
2104
|
-
}
|
|
2105
|
-
return {
|
|
2106
|
-
value,
|
|
2107
|
-
unit: "%"
|
|
2108
|
-
};
|
|
2109
|
-
}
|
|
2110
|
-
function formatSpeed(input, decimals = 0) {
|
|
2111
|
-
input /= 1e3;
|
|
2112
|
-
if (input < 1)
|
|
2113
|
-
return { value: "-", unit: "" };
|
|
2114
|
-
const units = ["KbE", "MbE", "GbE", "TbE"];
|
|
2115
|
-
const k = 1e3;
|
|
2116
|
-
let i = Math.floor(Math.log(input) / Math.log(k));
|
|
2117
|
-
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
2118
|
-
return {
|
|
2119
|
-
value: parseFloat((input / Math.pow(k, i)).toFixed(decimals)),
|
|
2120
|
-
unit: units[i]
|
|
2121
|
-
};
|
|
2122
|
-
}
|
|
2123
|
-
|
|
2124
2781
|
function getAlertIcon(type) {
|
|
2125
2782
|
switch (type) {
|
|
2126
2783
|
case "success":
|
|
@@ -2298,33 +2955,33 @@ const Overflow = props => {
|
|
|
2298
2955
|
}, children), showOverflow && /* @__PURE__ */React__default.createElement("span", null, overflow));
|
|
2299
2956
|
};
|
|
2300
2957
|
|
|
2301
|
-
var __defProp$
|
|
2302
|
-
var __defProps$
|
|
2303
|
-
var __getOwnPropDescs$
|
|
2304
|
-
var __getOwnPropSymbols$
|
|
2305
|
-
var __hasOwnProp$
|
|
2306
|
-
var __propIsEnum$
|
|
2307
|
-
var __defNormalProp$
|
|
2308
|
-
var __spreadValues$
|
|
2958
|
+
var __defProp$C = Object.defineProperty;
|
|
2959
|
+
var __defProps$v = Object.defineProperties;
|
|
2960
|
+
var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
|
|
2961
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
|
2962
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
|
2963
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
|
2964
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2965
|
+
var __spreadValues$C = (a, b) => {
|
|
2309
2966
|
for (var prop in b || (b = {}))
|
|
2310
|
-
if (__hasOwnProp$
|
|
2311
|
-
__defNormalProp$
|
|
2312
|
-
if (__getOwnPropSymbols$
|
|
2313
|
-
for (var prop of __getOwnPropSymbols$
|
|
2314
|
-
if (__propIsEnum$
|
|
2315
|
-
__defNormalProp$
|
|
2967
|
+
if (__hasOwnProp$D.call(b, prop))
|
|
2968
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
2969
|
+
if (__getOwnPropSymbols$D)
|
|
2970
|
+
for (var prop of __getOwnPropSymbols$D(b)) {
|
|
2971
|
+
if (__propIsEnum$D.call(b, prop))
|
|
2972
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
2316
2973
|
}
|
|
2317
2974
|
return a;
|
|
2318
2975
|
};
|
|
2319
|
-
var __spreadProps$
|
|
2320
|
-
var __objRest$
|
|
2976
|
+
var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
|
|
2977
|
+
var __objRest$m = (source, exclude) => {
|
|
2321
2978
|
var target = {};
|
|
2322
2979
|
for (var prop in source)
|
|
2323
|
-
if (__hasOwnProp$
|
|
2980
|
+
if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2324
2981
|
target[prop] = source[prop];
|
|
2325
|
-
if (source != null && __getOwnPropSymbols$
|
|
2326
|
-
for (var prop of __getOwnPropSymbols$
|
|
2327
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2982
|
+
if (source != null && __getOwnPropSymbols$D)
|
|
2983
|
+
for (var prop of __getOwnPropSymbols$D(source)) {
|
|
2984
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
|
|
2328
2985
|
target[prop] = source[prop];
|
|
2329
2986
|
}
|
|
2330
2987
|
return target;
|
|
@@ -2343,7 +3000,7 @@ const FieldsString = (_a) => {
|
|
|
2343
3000
|
onClick,
|
|
2344
3001
|
maxLength,
|
|
2345
3002
|
focusIndicator
|
|
2346
|
-
} = _b, props = __objRest$
|
|
3003
|
+
} = _b, props = __objRest$m(_b, [
|
|
2347
3004
|
"input",
|
|
2348
3005
|
"meta",
|
|
2349
3006
|
"autoComplete",
|
|
@@ -2375,7 +3032,7 @@ const FieldsString = (_a) => {
|
|
|
2375
3032
|
}
|
|
2376
3033
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
2377
3034
|
Input,
|
|
2378
|
-
__spreadProps$
|
|
3035
|
+
__spreadProps$v(__spreadValues$C(__spreadProps$v(__spreadValues$C({
|
|
2379
3036
|
className: cs(
|
|
2380
3037
|
className,
|
|
2381
3038
|
KitInputStyle,
|
|
@@ -2400,33 +3057,33 @@ const FieldsString = (_a) => {
|
|
|
2400
3057
|
));
|
|
2401
3058
|
};
|
|
2402
3059
|
|
|
2403
|
-
var __defProp$
|
|
2404
|
-
var __defProps$
|
|
2405
|
-
var __getOwnPropDescs$
|
|
2406
|
-
var __getOwnPropSymbols$
|
|
2407
|
-
var __hasOwnProp$
|
|
2408
|
-
var __propIsEnum$
|
|
2409
|
-
var __defNormalProp$
|
|
2410
|
-
var __spreadValues$
|
|
3060
|
+
var __defProp$B = Object.defineProperty;
|
|
3061
|
+
var __defProps$u = Object.defineProperties;
|
|
3062
|
+
var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
|
|
3063
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
|
3064
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
|
3065
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
|
3066
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3067
|
+
var __spreadValues$B = (a, b) => {
|
|
2411
3068
|
for (var prop in b || (b = {}))
|
|
2412
|
-
if (__hasOwnProp$
|
|
2413
|
-
__defNormalProp$
|
|
2414
|
-
if (__getOwnPropSymbols$
|
|
2415
|
-
for (var prop of __getOwnPropSymbols$
|
|
2416
|
-
if (__propIsEnum$
|
|
2417
|
-
__defNormalProp$
|
|
3069
|
+
if (__hasOwnProp$C.call(b, prop))
|
|
3070
|
+
__defNormalProp$B(a, prop, b[prop]);
|
|
3071
|
+
if (__getOwnPropSymbols$C)
|
|
3072
|
+
for (var prop of __getOwnPropSymbols$C(b)) {
|
|
3073
|
+
if (__propIsEnum$C.call(b, prop))
|
|
3074
|
+
__defNormalProp$B(a, prop, b[prop]);
|
|
2418
3075
|
}
|
|
2419
3076
|
return a;
|
|
2420
3077
|
};
|
|
2421
|
-
var __spreadProps$
|
|
2422
|
-
var __objRest$
|
|
3078
|
+
var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
|
|
3079
|
+
var __objRest$l = (source, exclude) => {
|
|
2423
3080
|
var target = {};
|
|
2424
3081
|
for (var prop in source)
|
|
2425
|
-
if (__hasOwnProp$
|
|
3082
|
+
if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2426
3083
|
target[prop] = source[prop];
|
|
2427
|
-
if (source != null && __getOwnPropSymbols$
|
|
2428
|
-
for (var prop of __getOwnPropSymbols$
|
|
2429
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3084
|
+
if (source != null && __getOwnPropSymbols$C)
|
|
3085
|
+
for (var prop of __getOwnPropSymbols$C(source)) {
|
|
3086
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
|
|
2430
3087
|
target[prop] = source[prop];
|
|
2431
3088
|
}
|
|
2432
3089
|
return target;
|
|
@@ -2436,7 +3093,7 @@ const TextArea = (_a) => {
|
|
|
2436
3093
|
className,
|
|
2437
3094
|
error,
|
|
2438
3095
|
size = "middle"
|
|
2439
|
-
} = _b, props = __objRest$
|
|
3096
|
+
} = _b, props = __objRest$l(_b, [
|
|
2440
3097
|
"className",
|
|
2441
3098
|
"error",
|
|
2442
3099
|
"size"
|
|
@@ -2448,7 +3105,7 @@ const TextArea = (_a) => {
|
|
|
2448
3105
|
}[size];
|
|
2449
3106
|
return /* @__PURE__ */ React__default.createElement(
|
|
2450
3107
|
Input$1.TextArea,
|
|
2451
|
-
__spreadProps$
|
|
3108
|
+
__spreadProps$u(__spreadValues$B({}, props), {
|
|
2452
3109
|
className: cs(
|
|
2453
3110
|
className,
|
|
2454
3111
|
InputStyle,
|
|
@@ -2462,33 +3119,33 @@ const TextArea = (_a) => {
|
|
|
2462
3119
|
);
|
|
2463
3120
|
};
|
|
2464
3121
|
|
|
2465
|
-
var __defProp$
|
|
2466
|
-
var __defProps$
|
|
2467
|
-
var __getOwnPropDescs$
|
|
2468
|
-
var __getOwnPropSymbols$
|
|
2469
|
-
var __hasOwnProp$
|
|
2470
|
-
var __propIsEnum$
|
|
2471
|
-
var __defNormalProp$
|
|
2472
|
-
var __spreadValues$
|
|
3122
|
+
var __defProp$A = Object.defineProperty;
|
|
3123
|
+
var __defProps$t = Object.defineProperties;
|
|
3124
|
+
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
|
3125
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
|
3126
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
|
3127
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
|
3128
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3129
|
+
var __spreadValues$A = (a, b) => {
|
|
2473
3130
|
for (var prop in b || (b = {}))
|
|
2474
|
-
if (__hasOwnProp$
|
|
2475
|
-
__defNormalProp$
|
|
2476
|
-
if (__getOwnPropSymbols$
|
|
2477
|
-
for (var prop of __getOwnPropSymbols$
|
|
2478
|
-
if (__propIsEnum$
|
|
2479
|
-
__defNormalProp$
|
|
3131
|
+
if (__hasOwnProp$B.call(b, prop))
|
|
3132
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
3133
|
+
if (__getOwnPropSymbols$B)
|
|
3134
|
+
for (var prop of __getOwnPropSymbols$B(b)) {
|
|
3135
|
+
if (__propIsEnum$B.call(b, prop))
|
|
3136
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
2480
3137
|
}
|
|
2481
3138
|
return a;
|
|
2482
3139
|
};
|
|
2483
|
-
var __spreadProps$
|
|
2484
|
-
var __objRest$
|
|
3140
|
+
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
|
3141
|
+
var __objRest$k = (source, exclude) => {
|
|
2485
3142
|
var target = {};
|
|
2486
3143
|
for (var prop in source)
|
|
2487
|
-
if (__hasOwnProp$
|
|
3144
|
+
if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2488
3145
|
target[prop] = source[prop];
|
|
2489
|
-
if (source != null && __getOwnPropSymbols$
|
|
2490
|
-
for (var prop of __getOwnPropSymbols$
|
|
2491
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3146
|
+
if (source != null && __getOwnPropSymbols$B)
|
|
3147
|
+
for (var prop of __getOwnPropSymbols$B(source)) {
|
|
3148
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop))
|
|
2492
3149
|
target[prop] = source[prop];
|
|
2493
3150
|
}
|
|
2494
3151
|
return target;
|
|
@@ -2498,14 +3155,14 @@ const FieldsTextArea = (_a) => {
|
|
|
2498
3155
|
input,
|
|
2499
3156
|
meta,
|
|
2500
3157
|
onFocusChangeHeight
|
|
2501
|
-
} = _b, props = __objRest$
|
|
3158
|
+
} = _b, props = __objRest$k(_b, [
|
|
2502
3159
|
"input",
|
|
2503
3160
|
"meta",
|
|
2504
3161
|
"onFocusChangeHeight"
|
|
2505
3162
|
]);
|
|
2506
3163
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
2507
3164
|
TextArea,
|
|
2508
|
-
__spreadProps$
|
|
3165
|
+
__spreadProps$t(__spreadValues$A(__spreadValues$A({}, input), props), {
|
|
2509
3166
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError),
|
|
2510
3167
|
onFocus: (e) => {
|
|
2511
3168
|
input.onFocus(e);
|
|
@@ -2519,33 +3176,33 @@ const FieldsTextArea = (_a) => {
|
|
|
2519
3176
|
));
|
|
2520
3177
|
};
|
|
2521
3178
|
|
|
2522
|
-
var __defProp$
|
|
2523
|
-
var __defProps$
|
|
2524
|
-
var __getOwnPropDescs$
|
|
2525
|
-
var __getOwnPropSymbols$
|
|
2526
|
-
var __hasOwnProp$
|
|
2527
|
-
var __propIsEnum$
|
|
2528
|
-
var __defNormalProp$
|
|
2529
|
-
var __spreadValues$
|
|
3179
|
+
var __defProp$z = Object.defineProperty;
|
|
3180
|
+
var __defProps$s = Object.defineProperties;
|
|
3181
|
+
var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
|
|
3182
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
|
3183
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
|
3184
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
|
3185
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3186
|
+
var __spreadValues$z = (a, b) => {
|
|
2530
3187
|
for (var prop in b || (b = {}))
|
|
2531
|
-
if (__hasOwnProp$
|
|
2532
|
-
__defNormalProp$
|
|
2533
|
-
if (__getOwnPropSymbols$
|
|
2534
|
-
for (var prop of __getOwnPropSymbols$
|
|
2535
|
-
if (__propIsEnum$
|
|
2536
|
-
__defNormalProp$
|
|
3188
|
+
if (__hasOwnProp$A.call(b, prop))
|
|
3189
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
3190
|
+
if (__getOwnPropSymbols$A)
|
|
3191
|
+
for (var prop of __getOwnPropSymbols$A(b)) {
|
|
3192
|
+
if (__propIsEnum$A.call(b, prop))
|
|
3193
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
2537
3194
|
}
|
|
2538
3195
|
return a;
|
|
2539
3196
|
};
|
|
2540
|
-
var __spreadProps$
|
|
2541
|
-
var __objRest$
|
|
3197
|
+
var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
|
|
3198
|
+
var __objRest$j = (source, exclude) => {
|
|
2542
3199
|
var target = {};
|
|
2543
3200
|
for (var prop in source)
|
|
2544
|
-
if (__hasOwnProp$
|
|
3201
|
+
if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2545
3202
|
target[prop] = source[prop];
|
|
2546
|
-
if (source != null && __getOwnPropSymbols$
|
|
2547
|
-
for (var prop of __getOwnPropSymbols$
|
|
2548
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3203
|
+
if (source != null && __getOwnPropSymbols$A)
|
|
3204
|
+
for (var prop of __getOwnPropSymbols$A(source)) {
|
|
3205
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
|
|
2549
3206
|
target[prop] = source[prop];
|
|
2550
3207
|
}
|
|
2551
3208
|
return target;
|
|
@@ -2555,7 +3212,7 @@ const TimePicker = (_a) => {
|
|
|
2555
3212
|
className,
|
|
2556
3213
|
error,
|
|
2557
3214
|
size = "middle"
|
|
2558
|
-
} = _b, props = __objRest$
|
|
3215
|
+
} = _b, props = __objRest$j(_b, [
|
|
2559
3216
|
"className",
|
|
2560
3217
|
"error",
|
|
2561
3218
|
"size"
|
|
@@ -2567,7 +3224,7 @@ const TimePicker = (_a) => {
|
|
|
2567
3224
|
}[size];
|
|
2568
3225
|
return /* @__PURE__ */ React__default.createElement(
|
|
2569
3226
|
TimePicker$1,
|
|
2570
|
-
__spreadProps$
|
|
3227
|
+
__spreadProps$s(__spreadValues$z({}, props), {
|
|
2571
3228
|
size,
|
|
2572
3229
|
"data-test": props.name,
|
|
2573
3230
|
className: cs(className, InputStyle, typo, error ? "error" : "")
|
|
@@ -2575,33 +3232,33 @@ const TimePicker = (_a) => {
|
|
|
2575
3232
|
);
|
|
2576
3233
|
};
|
|
2577
3234
|
|
|
2578
|
-
var __defProp$
|
|
2579
|
-
var __defProps$
|
|
2580
|
-
var __getOwnPropDescs$
|
|
2581
|
-
var __getOwnPropSymbols$
|
|
2582
|
-
var __hasOwnProp$
|
|
2583
|
-
var __propIsEnum$
|
|
2584
|
-
var __defNormalProp$
|
|
2585
|
-
var __spreadValues$
|
|
3235
|
+
var __defProp$y = Object.defineProperty;
|
|
3236
|
+
var __defProps$r = Object.defineProperties;
|
|
3237
|
+
var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
|
|
3238
|
+
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
|
3239
|
+
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
|
3240
|
+
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
|
3241
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3242
|
+
var __spreadValues$y = (a, b) => {
|
|
2586
3243
|
for (var prop in b || (b = {}))
|
|
2587
|
-
if (__hasOwnProp$
|
|
2588
|
-
__defNormalProp$
|
|
2589
|
-
if (__getOwnPropSymbols$
|
|
2590
|
-
for (var prop of __getOwnPropSymbols$
|
|
2591
|
-
if (__propIsEnum$
|
|
2592
|
-
__defNormalProp$
|
|
3244
|
+
if (__hasOwnProp$z.call(b, prop))
|
|
3245
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
3246
|
+
if (__getOwnPropSymbols$z)
|
|
3247
|
+
for (var prop of __getOwnPropSymbols$z(b)) {
|
|
3248
|
+
if (__propIsEnum$z.call(b, prop))
|
|
3249
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
2593
3250
|
}
|
|
2594
3251
|
return a;
|
|
2595
3252
|
};
|
|
2596
|
-
var __spreadProps$
|
|
2597
|
-
var __objRest$
|
|
3253
|
+
var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
|
|
3254
|
+
var __objRest$i = (source, exclude) => {
|
|
2598
3255
|
var target = {};
|
|
2599
3256
|
for (var prop in source)
|
|
2600
|
-
if (__hasOwnProp$
|
|
3257
|
+
if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2601
3258
|
target[prop] = source[prop];
|
|
2602
|
-
if (source != null && __getOwnPropSymbols$
|
|
2603
|
-
for (var prop of __getOwnPropSymbols$
|
|
2604
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3259
|
+
if (source != null && __getOwnPropSymbols$z)
|
|
3260
|
+
for (var prop of __getOwnPropSymbols$z(source)) {
|
|
3261
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
|
|
2605
3262
|
target[prop] = source[prop];
|
|
2606
3263
|
}
|
|
2607
3264
|
return target;
|
|
@@ -2610,13 +3267,13 @@ const FieldsTimePicker = (_a) => {
|
|
|
2610
3267
|
var _b = _a, {
|
|
2611
3268
|
input,
|
|
2612
3269
|
meta
|
|
2613
|
-
} = _b, props = __objRest$
|
|
3270
|
+
} = _b, props = __objRest$i(_b, [
|
|
2614
3271
|
"input",
|
|
2615
3272
|
"meta"
|
|
2616
3273
|
]);
|
|
2617
3274
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
2618
3275
|
TimePicker,
|
|
2619
|
-
__spreadValues$
|
|
3276
|
+
__spreadValues$y(__spreadProps$r(__spreadValues$y({}, input), {
|
|
2620
3277
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
2621
3278
|
}), props)
|
|
2622
3279
|
));
|
|
@@ -2635,31 +3292,31 @@ const fields = {
|
|
|
2635
3292
|
DateTimeRange: FieldsDateTimeRange
|
|
2636
3293
|
};
|
|
2637
3294
|
|
|
2638
|
-
var __defProp$
|
|
2639
|
-
var __defProps$
|
|
2640
|
-
var __getOwnPropDescs$
|
|
2641
|
-
var __getOwnPropSymbols$
|
|
2642
|
-
var __hasOwnProp$
|
|
2643
|
-
var __propIsEnum$
|
|
2644
|
-
var __defNormalProp$
|
|
3295
|
+
var __defProp$x = Object.defineProperty;
|
|
3296
|
+
var __defProps$q = Object.defineProperties;
|
|
3297
|
+
var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
|
|
3298
|
+
var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
|
|
3299
|
+
var __hasOwnProp$y = Object.prototype.hasOwnProperty;
|
|
3300
|
+
var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
|
|
3301
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, {
|
|
2645
3302
|
enumerable: true,
|
|
2646
3303
|
configurable: true,
|
|
2647
3304
|
writable: true,
|
|
2648
3305
|
value
|
|
2649
3306
|
}) : obj[key] = value;
|
|
2650
|
-
var __spreadValues$
|
|
2651
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
2652
|
-
if (__getOwnPropSymbols$
|
|
2653
|
-
if (__propIsEnum$
|
|
3307
|
+
var __spreadValues$x = (a, b) => {
|
|
3308
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$y.call(b, prop)) __defNormalProp$x(a, prop, b[prop]);
|
|
3309
|
+
if (__getOwnPropSymbols$y) for (var prop of __getOwnPropSymbols$y(b)) {
|
|
3310
|
+
if (__propIsEnum$y.call(b, prop)) __defNormalProp$x(a, prop, b[prop]);
|
|
2654
3311
|
}
|
|
2655
3312
|
return a;
|
|
2656
3313
|
};
|
|
2657
|
-
var __spreadProps$
|
|
2658
|
-
var __objRest$
|
|
3314
|
+
var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
|
|
3315
|
+
var __objRest$h = (source, exclude) => {
|
|
2659
3316
|
var target = {};
|
|
2660
|
-
for (var prop in source) if (__hasOwnProp$
|
|
2661
|
-
if (source != null && __getOwnPropSymbols$
|
|
2662
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3317
|
+
for (var prop in source) if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3318
|
+
if (source != null && __getOwnPropSymbols$y) for (var prop of __getOwnPropSymbols$y(source)) {
|
|
3319
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop)) target[prop] = source[prop];
|
|
2663
3320
|
}
|
|
2664
3321
|
return target;
|
|
2665
3322
|
};
|
|
@@ -2671,7 +3328,7 @@ const Switch = _a => {
|
|
|
2671
3328
|
className,
|
|
2672
3329
|
checked
|
|
2673
3330
|
} = _b,
|
|
2674
|
-
props = __objRest$
|
|
3331
|
+
props = __objRest$h(_b, ["children", "className", "checked"]);
|
|
2675
3332
|
const Content = /*#__PURE__*/styled$1('span')({
|
|
2676
3333
|
name: "Content",
|
|
2677
3334
|
class: "c1to9vb9",
|
|
@@ -2679,7 +3336,7 @@ const Switch = _a => {
|
|
|
2679
3336
|
});
|
|
2680
3337
|
const classNames = [className, SwitchStyle, "switch"];
|
|
2681
3338
|
if (props.size === "large") classNames.push("ant-switch-large");
|
|
2682
|
-
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Switch$1, __spreadProps$
|
|
3339
|
+
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Switch$1, __spreadProps$q(__spreadValues$x({
|
|
2683
3340
|
className: cx(...classNames),
|
|
2684
3341
|
checked: checked || false
|
|
2685
3342
|
}, props), {
|
|
@@ -2687,32 +3344,26 @@ const Switch = _a => {
|
|
|
2687
3344
|
})), children ? /* @__PURE__ */React__default.createElement(Content, null, children) : null);
|
|
2688
3345
|
};
|
|
2689
3346
|
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
var
|
|
2697
|
-
var __defProps$q = Object.defineProperties;
|
|
2698
|
-
var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
|
|
2699
|
-
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
|
2700
|
-
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
|
2701
|
-
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
|
2702
|
-
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, {
|
|
3347
|
+
var __defProp$w = Object.defineProperty;
|
|
3348
|
+
var __defProps$p = Object.defineProperties;
|
|
3349
|
+
var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
|
|
3350
|
+
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
|
3351
|
+
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
|
3352
|
+
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
|
3353
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, {
|
|
2703
3354
|
enumerable: true,
|
|
2704
3355
|
configurable: true,
|
|
2705
3356
|
writable: true,
|
|
2706
3357
|
value
|
|
2707
3358
|
}) : obj[key] = value;
|
|
2708
|
-
var __spreadValues$
|
|
2709
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
2710
|
-
if (__getOwnPropSymbols$
|
|
2711
|
-
if (__propIsEnum$
|
|
3359
|
+
var __spreadValues$w = (a, b) => {
|
|
3360
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$x.call(b, prop)) __defNormalProp$w(a, prop, b[prop]);
|
|
3361
|
+
if (__getOwnPropSymbols$x) for (var prop of __getOwnPropSymbols$x(b)) {
|
|
3362
|
+
if (__propIsEnum$x.call(b, prop)) __defNormalProp$w(a, prop, b[prop]);
|
|
2712
3363
|
}
|
|
2713
3364
|
return a;
|
|
2714
3365
|
};
|
|
2715
|
-
var __spreadProps$
|
|
3366
|
+
var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
|
|
2716
3367
|
const CronPlanWrapper = "c1up1pdz";
|
|
2717
3368
|
const CronPlanHeader = "c156wh19";
|
|
2718
3369
|
const ModeTabs = "m126spxy";
|
|
@@ -2807,7 +3458,7 @@ const Daily = ({
|
|
|
2807
3458
|
input: {
|
|
2808
3459
|
value: daily.step,
|
|
2809
3460
|
onChange: value => {
|
|
2810
|
-
setDaily(__spreadProps$
|
|
3461
|
+
setDaily(__spreadProps$p(__spreadValues$w({}, daily), {
|
|
2811
3462
|
step: value
|
|
2812
3463
|
}));
|
|
2813
3464
|
},
|
|
@@ -2821,7 +3472,7 @@ const Daily = ({
|
|
|
2821
3472
|
value: daily.time,
|
|
2822
3473
|
onChange: value => {
|
|
2823
3474
|
if (value) {
|
|
2824
|
-
setDaily(__spreadProps$
|
|
3475
|
+
setDaily(__spreadProps$p(__spreadValues$w({}, daily), {
|
|
2825
3476
|
time: value
|
|
2826
3477
|
}));
|
|
2827
3478
|
}
|
|
@@ -2876,7 +3527,7 @@ const Weekly = ({
|
|
|
2876
3527
|
input: {
|
|
2877
3528
|
value: weekly.step,
|
|
2878
3529
|
onChange: value => {
|
|
2879
|
-
setWeekly(__spreadProps$
|
|
3530
|
+
setWeekly(__spreadProps$p(__spreadValues$w({}, weekly), {
|
|
2880
3531
|
step: value
|
|
2881
3532
|
}));
|
|
2882
3533
|
},
|
|
@@ -2893,7 +3544,7 @@ const Weekly = ({
|
|
|
2893
3544
|
className: cx$1("week-day-option", active && "active", i18n.language === ParrotLngs.en && "en-text"),
|
|
2894
3545
|
type: "default",
|
|
2895
3546
|
key: d.value,
|
|
2896
|
-
onClick: () => setWeekly(__spreadProps$
|
|
3547
|
+
onClick: () => setWeekly(__spreadProps$p(__spreadValues$w({}, weekly), {
|
|
2897
3548
|
days: active ? weekly.days.filter(day => day !== d.value) : weekly.days.concat(d.value).sort((a, b) => a - b)
|
|
2898
3549
|
}))
|
|
2899
3550
|
}, d.text);
|
|
@@ -2905,7 +3556,7 @@ const Weekly = ({
|
|
|
2905
3556
|
value: weekly.time,
|
|
2906
3557
|
onChange: value => {
|
|
2907
3558
|
if (value) {
|
|
2908
|
-
setWeekly(__spreadProps$
|
|
3559
|
+
setWeekly(__spreadProps$p(__spreadValues$w({}, weekly), {
|
|
2909
3560
|
time: value
|
|
2910
3561
|
}));
|
|
2911
3562
|
}
|
|
@@ -2932,7 +3583,7 @@ const Monthly = ({
|
|
|
2932
3583
|
input: {
|
|
2933
3584
|
value: monthly.step,
|
|
2934
3585
|
onChange: value => {
|
|
2935
|
-
setMonthly(__spreadProps$
|
|
3586
|
+
setMonthly(__spreadProps$p(__spreadValues$w({}, monthly), {
|
|
2936
3587
|
step: value
|
|
2937
3588
|
}));
|
|
2938
3589
|
},
|
|
@@ -2949,7 +3600,7 @@ const Monthly = ({
|
|
|
2949
3600
|
className: cx$1("month-day-option", active && "active"),
|
|
2950
3601
|
type: "default",
|
|
2951
3602
|
key: d,
|
|
2952
|
-
onClick: () => setMonthly(__spreadProps$
|
|
3603
|
+
onClick: () => setMonthly(__spreadProps$p(__spreadValues$w({}, monthly), {
|
|
2953
3604
|
days: active ? monthly.days.filter(day => day !== d) : monthly.days.concat(d).sort((a, b) => a - b)
|
|
2954
3605
|
}))
|
|
2955
3606
|
}, d);
|
|
@@ -2965,7 +3616,7 @@ const Monthly = ({
|
|
|
2965
3616
|
value: monthly.time,
|
|
2966
3617
|
onChange: value => {
|
|
2967
3618
|
if (value) {
|
|
2968
|
-
setMonthly(__spreadProps$
|
|
3619
|
+
setMonthly(__spreadProps$p(__spreadValues$w({}, monthly), {
|
|
2969
3620
|
time: value
|
|
2970
3621
|
}));
|
|
2971
3622
|
}
|
|
@@ -2989,7 +3640,7 @@ const CronPlan = props => {
|
|
|
2989
3640
|
}, [value]);
|
|
2990
3641
|
const sendAtDate = useMemo(() => cronTime.sendAt(), [cronTime]);
|
|
2991
3642
|
const changeValue = newValue => {
|
|
2992
|
-
onChange(__spreadValues$
|
|
3643
|
+
onChange(__spreadValues$w(__spreadValues$w({}, value), newValue));
|
|
2993
3644
|
};
|
|
2994
3645
|
const [mode, setMode] = useState(getMode(cronTime["source"]));
|
|
2995
3646
|
const source = cronTime["source"];
|
|
@@ -2997,19 +3648,19 @@ const CronPlan = props => {
|
|
|
2997
3648
|
const time = getTime(cronTime);
|
|
2998
3649
|
const [daily, setDaily] = useState(() => {
|
|
2999
3650
|
const rawDaily = getDaily(mode, source, time);
|
|
3000
|
-
return __spreadProps$
|
|
3651
|
+
return __spreadProps$p(__spreadValues$w({}, rawDaily), {
|
|
3001
3652
|
time: moment(rawDaily.time.format())
|
|
3002
3653
|
});
|
|
3003
3654
|
});
|
|
3004
3655
|
const [weekly, setWeekly] = useState(() => {
|
|
3005
3656
|
const rawWeekly = getWeekly(mode, source, time);
|
|
3006
|
-
return __spreadProps$
|
|
3657
|
+
return __spreadProps$p(__spreadValues$w({}, rawWeekly), {
|
|
3007
3658
|
time: moment(rawWeekly.time.format())
|
|
3008
3659
|
});
|
|
3009
3660
|
});
|
|
3010
3661
|
const [monthly, setMonthly] = useState(() => {
|
|
3011
3662
|
const rawMonthly = getMonthly(mode, month, day, time);
|
|
3012
|
-
return __spreadProps$
|
|
3663
|
+
return __spreadProps$p(__spreadValues$w({}, rawMonthly), {
|
|
3013
3664
|
time: moment(rawMonthly.time.format())
|
|
3014
3665
|
});
|
|
3015
3666
|
});
|
|
@@ -3131,97 +3782,6 @@ const CronPlan = props => {
|
|
|
3131
3782
|
});
|
|
3132
3783
|
};
|
|
3133
3784
|
|
|
3134
|
-
var __defProp$E = Object.defineProperty;
|
|
3135
|
-
var __defProps$p = Object.defineProperties;
|
|
3136
|
-
var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
|
|
3137
|
-
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
|
3138
|
-
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
|
3139
|
-
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
|
3140
|
-
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3141
|
-
var __spreadValues$E = (a, b) => {
|
|
3142
|
-
for (var prop in b || (b = {}))
|
|
3143
|
-
if (__hasOwnProp$F.call(b, prop))
|
|
3144
|
-
__defNormalProp$E(a, prop, b[prop]);
|
|
3145
|
-
if (__getOwnPropSymbols$F)
|
|
3146
|
-
for (var prop of __getOwnPropSymbols$F(b)) {
|
|
3147
|
-
if (__propIsEnum$F.call(b, prop))
|
|
3148
|
-
__defNormalProp$E(a, prop, b[prop]);
|
|
3149
|
-
}
|
|
3150
|
-
return a;
|
|
3151
|
-
};
|
|
3152
|
-
var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
|
|
3153
|
-
var __objRest$h = (source, exclude) => {
|
|
3154
|
-
var target = {};
|
|
3155
|
-
for (var prop in source)
|
|
3156
|
-
if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3157
|
-
target[prop] = source[prop];
|
|
3158
|
-
if (source != null && __getOwnPropSymbols$F)
|
|
3159
|
-
for (var prop of __getOwnPropSymbols$F(source)) {
|
|
3160
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
|
|
3161
|
-
target[prop] = source[prop];
|
|
3162
|
-
}
|
|
3163
|
-
return target;
|
|
3164
|
-
};
|
|
3165
|
-
let componentId = 0;
|
|
3166
|
-
const Tooltip = (props) => {
|
|
3167
|
-
const _a = props, {
|
|
3168
|
-
followMouse,
|
|
3169
|
-
overlayClassName,
|
|
3170
|
-
overlayStyle,
|
|
3171
|
-
children
|
|
3172
|
-
} = _a, restProps = __objRest$h(_a, [
|
|
3173
|
-
"followMouse",
|
|
3174
|
-
"overlayClassName",
|
|
3175
|
-
"overlayStyle",
|
|
3176
|
-
"children"
|
|
3177
|
-
]);
|
|
3178
|
-
const id = useRef(++componentId);
|
|
3179
|
-
const uniquePopupClass = `kit-popup-${id.current}`;
|
|
3180
|
-
const uniqueContainerClass = `kit-tooltip-${id.current}`;
|
|
3181
|
-
const _children = useMemo(() => {
|
|
3182
|
-
if (followMouse) {
|
|
3183
|
-
const child = React__default.isValidElement(children) ? children : /* @__PURE__ */ React__default.createElement("span", null, children);
|
|
3184
|
-
return React__default.cloneElement(child, {
|
|
3185
|
-
className: cs(child.props.className, uniqueContainerClass)
|
|
3186
|
-
});
|
|
3187
|
-
} else {
|
|
3188
|
-
return children;
|
|
3189
|
-
}
|
|
3190
|
-
}, [children, followMouse, uniqueContainerClass]);
|
|
3191
|
-
const onmousemove = useCallback(
|
|
3192
|
-
(event) => {
|
|
3193
|
-
const popup = document.querySelector(`.${uniquePopupClass}`);
|
|
3194
|
-
if (!popup)
|
|
3195
|
-
return;
|
|
3196
|
-
popup.style.left = event.pageX + "px";
|
|
3197
|
-
popup.style.top = event.pageY + "px";
|
|
3198
|
-
},
|
|
3199
|
-
[uniquePopupClass]
|
|
3200
|
-
);
|
|
3201
|
-
useEffect(() => {
|
|
3202
|
-
if (followMouse) {
|
|
3203
|
-
const container = document.querySelector(
|
|
3204
|
-
`.${uniqueContainerClass}`
|
|
3205
|
-
);
|
|
3206
|
-
container == null ? void 0 : container.addEventListener("mousemove", onmousemove);
|
|
3207
|
-
return () => {
|
|
3208
|
-
container == null ? void 0 : container.removeEventListener("mousemove", onmousemove);
|
|
3209
|
-
};
|
|
3210
|
-
}
|
|
3211
|
-
}, [followMouse, onmousemove, uniqueContainerClass]);
|
|
3212
|
-
return /* @__PURE__ */ React__default.createElement(
|
|
3213
|
-
Tooltip$1,
|
|
3214
|
-
__spreadProps$p(__spreadValues$E({}, restProps), {
|
|
3215
|
-
overlayClassName: followMouse ? cs(overlayClassName, uniquePopupClass) : overlayClassName,
|
|
3216
|
-
children: _children,
|
|
3217
|
-
overlayStyle: followMouse ? __spreadValues$E({
|
|
3218
|
-
transform: "translate(-50%, -100%)",
|
|
3219
|
-
pointerEvents: "none"
|
|
3220
|
-
}, overlayStyle) : overlayStyle
|
|
3221
|
-
})
|
|
3222
|
-
);
|
|
3223
|
-
};
|
|
3224
|
-
|
|
3225
3785
|
const NameItem = /*#__PURE__*/styled('div')({
|
|
3226
3786
|
name: "NameItem",
|
|
3227
3787
|
class: "n12mqh7z",
|
|
@@ -3248,28 +3808,28 @@ const NamesTooltip = props => {
|
|
|
3248
3808
|
}, children));
|
|
3249
3809
|
};
|
|
3250
3810
|
|
|
3251
|
-
var __defProp$
|
|
3252
|
-
var __getOwnPropSymbols$
|
|
3253
|
-
var __hasOwnProp$
|
|
3254
|
-
var __propIsEnum$
|
|
3255
|
-
var __defNormalProp$
|
|
3811
|
+
var __defProp$v = Object.defineProperty;
|
|
3812
|
+
var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
|
|
3813
|
+
var __hasOwnProp$w = Object.prototype.hasOwnProperty;
|
|
3814
|
+
var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
|
|
3815
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, {
|
|
3256
3816
|
enumerable: true,
|
|
3257
3817
|
configurable: true,
|
|
3258
3818
|
writable: true,
|
|
3259
3819
|
value
|
|
3260
3820
|
}) : obj[key] = value;
|
|
3261
|
-
var __spreadValues$
|
|
3262
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3263
|
-
if (__getOwnPropSymbols$
|
|
3264
|
-
if (__propIsEnum$
|
|
3821
|
+
var __spreadValues$v = (a, b) => {
|
|
3822
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$w.call(b, prop)) __defNormalProp$v(a, prop, b[prop]);
|
|
3823
|
+
if (__getOwnPropSymbols$w) for (var prop of __getOwnPropSymbols$w(b)) {
|
|
3824
|
+
if (__propIsEnum$w.call(b, prop)) __defNormalProp$v(a, prop, b[prop]);
|
|
3265
3825
|
}
|
|
3266
3826
|
return a;
|
|
3267
3827
|
};
|
|
3268
3828
|
var __objRest$g = (source, exclude) => {
|
|
3269
3829
|
var target = {};
|
|
3270
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3271
|
-
if (source != null && __getOwnPropSymbols$
|
|
3272
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3830
|
+
for (var prop in source) if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3831
|
+
if (source != null && __getOwnPropSymbols$w) for (var prop of __getOwnPropSymbols$w(source)) {
|
|
3832
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$w.call(source, prop)) target[prop] = source[prop];
|
|
3273
3833
|
}
|
|
3274
3834
|
return target;
|
|
3275
3835
|
};
|
|
@@ -3295,34 +3855,34 @@ const SwitchWithText = props => {
|
|
|
3295
3855
|
onClick: e => e.stopPropagation()
|
|
3296
3856
|
}, /* @__PURE__ */React__default.createElement("span", {
|
|
3297
3857
|
className: "enabled-text"
|
|
3298
|
-
}, _props.checked ? text.checked : text.unchecked), /* @__PURE__ */React__default.createElement(Switch, __spreadValues$
|
|
3858
|
+
}, _props.checked ? text.checked : text.unchecked), /* @__PURE__ */React__default.createElement(Switch, __spreadValues$v({}, _props)));
|
|
3299
3859
|
};
|
|
3300
3860
|
|
|
3301
|
-
var __defProp$
|
|
3861
|
+
var __defProp$u = Object.defineProperty;
|
|
3302
3862
|
var __defProps$o = Object.defineProperties;
|
|
3303
3863
|
var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
|
|
3304
|
-
var __getOwnPropSymbols$
|
|
3305
|
-
var __hasOwnProp$
|
|
3306
|
-
var __propIsEnum$
|
|
3307
|
-
var __defNormalProp$
|
|
3864
|
+
var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
|
|
3865
|
+
var __hasOwnProp$v = Object.prototype.hasOwnProperty;
|
|
3866
|
+
var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
|
|
3867
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, {
|
|
3308
3868
|
enumerable: true,
|
|
3309
3869
|
configurable: true,
|
|
3310
3870
|
writable: true,
|
|
3311
3871
|
value
|
|
3312
3872
|
}) : obj[key] = value;
|
|
3313
|
-
var __spreadValues$
|
|
3314
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3315
|
-
if (__getOwnPropSymbols$
|
|
3316
|
-
if (__propIsEnum$
|
|
3873
|
+
var __spreadValues$u = (a, b) => {
|
|
3874
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$v.call(b, prop)) __defNormalProp$u(a, prop, b[prop]);
|
|
3875
|
+
if (__getOwnPropSymbols$v) for (var prop of __getOwnPropSymbols$v(b)) {
|
|
3876
|
+
if (__propIsEnum$v.call(b, prop)) __defNormalProp$u(a, prop, b[prop]);
|
|
3317
3877
|
}
|
|
3318
3878
|
return a;
|
|
3319
3879
|
};
|
|
3320
3880
|
var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
|
|
3321
3881
|
var __objRest$f = (source, exclude) => {
|
|
3322
3882
|
var target = {};
|
|
3323
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3324
|
-
if (source != null && __getOwnPropSymbols$
|
|
3325
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3883
|
+
for (var prop in source) if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3884
|
+
if (source != null && __getOwnPropSymbols$v) for (var prop of __getOwnPropSymbols$v(source)) {
|
|
3885
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$v.call(source, prop)) target[prop] = source[prop];
|
|
3326
3886
|
}
|
|
3327
3887
|
return target;
|
|
3328
3888
|
};
|
|
@@ -3353,37 +3913,37 @@ const TruncatedTextWithTooltip = props => {
|
|
|
3353
3913
|
ref: textWrapper,
|
|
3354
3914
|
className: textWrapperCls
|
|
3355
3915
|
}, text);
|
|
3356
|
-
return isTextTruncated ? /* @__PURE__ */React__default.createElement(Tooltip, __spreadProps$o(__spreadValues$
|
|
3916
|
+
return isTextTruncated ? /* @__PURE__ */React__default.createElement(Tooltip, __spreadProps$o(__spreadValues$u({}, restProps), {
|
|
3357
3917
|
title: text,
|
|
3358
3918
|
"data-testid": "text-tooltip"
|
|
3359
3919
|
}), /* @__PURE__ */React__default.createElement(TruncatedTextWrapper, null, renderName())) : renderName();
|
|
3360
3920
|
};
|
|
3361
3921
|
|
|
3362
|
-
var __defProp$
|
|
3922
|
+
var __defProp$t = Object.defineProperty;
|
|
3363
3923
|
var __defProps$n = Object.defineProperties;
|
|
3364
3924
|
var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
|
|
3365
|
-
var __getOwnPropSymbols$
|
|
3366
|
-
var __hasOwnProp$
|
|
3367
|
-
var __propIsEnum$
|
|
3368
|
-
var __defNormalProp$
|
|
3925
|
+
var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
|
|
3926
|
+
var __hasOwnProp$u = Object.prototype.hasOwnProperty;
|
|
3927
|
+
var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
|
|
3928
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, {
|
|
3369
3929
|
enumerable: true,
|
|
3370
3930
|
configurable: true,
|
|
3371
3931
|
writable: true,
|
|
3372
3932
|
value
|
|
3373
3933
|
}) : obj[key] = value;
|
|
3374
|
-
var __spreadValues$
|
|
3375
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3376
|
-
if (__getOwnPropSymbols$
|
|
3377
|
-
if (__propIsEnum$
|
|
3934
|
+
var __spreadValues$t = (a, b) => {
|
|
3935
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$u.call(b, prop)) __defNormalProp$t(a, prop, b[prop]);
|
|
3936
|
+
if (__getOwnPropSymbols$u) for (var prop of __getOwnPropSymbols$u(b)) {
|
|
3937
|
+
if (__propIsEnum$u.call(b, prop)) __defNormalProp$t(a, prop, b[prop]);
|
|
3378
3938
|
}
|
|
3379
3939
|
return a;
|
|
3380
3940
|
};
|
|
3381
3941
|
var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
|
|
3382
3942
|
var __objRest$e = (source, exclude) => {
|
|
3383
3943
|
var target = {};
|
|
3384
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3385
|
-
if (source != null && __getOwnPropSymbols$
|
|
3386
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3944
|
+
for (var prop in source) if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3945
|
+
if (source != null && __getOwnPropSymbols$u) for (var prop of __getOwnPropSymbols$u(source)) {
|
|
3946
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop)) target[prop] = source[prop];
|
|
3387
3947
|
}
|
|
3388
3948
|
return target;
|
|
3389
3949
|
};
|
|
@@ -3407,7 +3967,7 @@ const Alert = _a => {
|
|
|
3407
3967
|
src: getAlertIcon(type)
|
|
3408
3968
|
});
|
|
3409
3969
|
const _type = type === "normal" ? "info" : type;
|
|
3410
|
-
return /* @__PURE__ */React__default.createElement(Alert$1, __spreadProps$n(__spreadValues$
|
|
3970
|
+
return /* @__PURE__ */React__default.createElement(Alert$1, __spreadProps$n(__spreadValues$t({}, props), {
|
|
3411
3971
|
className: cs(AlertStyle, type ? `alert-${type}` : "", className, {
|
|
3412
3972
|
action
|
|
3413
3973
|
}),
|
|
@@ -3439,21 +3999,21 @@ const Arch = (props) => {
|
|
|
3439
3999
|
return /* @__PURE__ */ React__default.createElement("span", null, text);
|
|
3440
4000
|
};
|
|
3441
4001
|
|
|
3442
|
-
var __defProp$
|
|
4002
|
+
var __defProp$s = Object.defineProperty;
|
|
3443
4003
|
var __defProps$m = Object.defineProperties;
|
|
3444
4004
|
var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
|
|
3445
|
-
var __getOwnPropSymbols$
|
|
3446
|
-
var __hasOwnProp$
|
|
3447
|
-
var __propIsEnum$
|
|
3448
|
-
var __defNormalProp$
|
|
3449
|
-
var __spreadValues$
|
|
4005
|
+
var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
|
|
4006
|
+
var __hasOwnProp$t = Object.prototype.hasOwnProperty;
|
|
4007
|
+
var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
|
|
4008
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4009
|
+
var __spreadValues$s = (a, b) => {
|
|
3450
4010
|
for (var prop in b || (b = {}))
|
|
3451
|
-
if (__hasOwnProp$
|
|
3452
|
-
__defNormalProp$
|
|
3453
|
-
if (__getOwnPropSymbols$
|
|
3454
|
-
for (var prop of __getOwnPropSymbols$
|
|
3455
|
-
if (__propIsEnum$
|
|
3456
|
-
__defNormalProp$
|
|
4011
|
+
if (__hasOwnProp$t.call(b, prop))
|
|
4012
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
4013
|
+
if (__getOwnPropSymbols$t)
|
|
4014
|
+
for (var prop of __getOwnPropSymbols$t(b)) {
|
|
4015
|
+
if (__propIsEnum$t.call(b, prop))
|
|
4016
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
3457
4017
|
}
|
|
3458
4018
|
return a;
|
|
3459
4019
|
};
|
|
@@ -3461,11 +4021,11 @@ var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
|
|
|
3461
4021
|
var __objRest$d = (source, exclude) => {
|
|
3462
4022
|
var target = {};
|
|
3463
4023
|
for (var prop in source)
|
|
3464
|
-
if (__hasOwnProp$
|
|
4024
|
+
if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3465
4025
|
target[prop] = source[prop];
|
|
3466
|
-
if (source != null && __getOwnPropSymbols$
|
|
3467
|
-
for (var prop of __getOwnPropSymbols$
|
|
3468
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4026
|
+
if (source != null && __getOwnPropSymbols$t)
|
|
4027
|
+
for (var prop of __getOwnPropSymbols$t(source)) {
|
|
4028
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$t.call(source, prop))
|
|
3469
4029
|
target[prop] = source[prop];
|
|
3470
4030
|
}
|
|
3471
4031
|
return target;
|
|
@@ -3474,7 +4034,7 @@ const Badge = (_a) => {
|
|
|
3474
4034
|
var _b = _a, { type = "error", className } = _b, props = __objRest$d(_b, ["type", "className"]);
|
|
3475
4035
|
return /* @__PURE__ */ React__default.createElement(
|
|
3476
4036
|
Badge$1,
|
|
3477
|
-
__spreadProps$m(__spreadValues$
|
|
4037
|
+
__spreadProps$m(__spreadValues$s({
|
|
3478
4038
|
className: cx(`badge-${type}`, className)
|
|
3479
4039
|
}, props), {
|
|
3480
4040
|
showZero: false
|
|
@@ -3482,130 +4042,28 @@ const Badge = (_a) => {
|
|
|
3482
4042
|
);
|
|
3483
4043
|
};
|
|
3484
4044
|
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
}
|
|
3491
|
-
|
|
3492
|
-
const Empty = (props) => {
|
|
3493
|
-
const { className, style } = props;
|
|
3494
|
-
return /* @__PURE__ */ React__default.createElement("span", { className, style }, "-");
|
|
3495
|
-
};
|
|
3496
|
-
|
|
3497
|
-
var __defProp$z = Object.defineProperty;
|
|
3498
|
-
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
|
3499
|
-
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
|
3500
|
-
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
|
3501
|
-
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3502
|
-
var __spreadValues$z = (a, b) => {
|
|
3503
|
-
for (var prop in b || (b = {}))
|
|
3504
|
-
if (__hasOwnProp$A.call(b, prop))
|
|
3505
|
-
__defNormalProp$z(a, prop, b[prop]);
|
|
3506
|
-
if (__getOwnPropSymbols$A)
|
|
3507
|
-
for (var prop of __getOwnPropSymbols$A(b)) {
|
|
3508
|
-
if (__propIsEnum$A.call(b, prop))
|
|
3509
|
-
__defNormalProp$z(a, prop, b[prop]);
|
|
3510
|
-
}
|
|
3511
|
-
return a;
|
|
3512
|
-
};
|
|
3513
|
-
const Bit = ({
|
|
3514
|
-
rawValue,
|
|
3515
|
-
decimals,
|
|
3516
|
-
unitClassName,
|
|
3517
|
-
valueClassName,
|
|
3518
|
-
emptyProps
|
|
3519
|
-
}) => {
|
|
3520
|
-
if (isEmpty(rawValue)) {
|
|
3521
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$z({}, emptyProps));
|
|
3522
|
-
}
|
|
3523
|
-
const { value, unit } = formatBits(rawValue, decimals);
|
|
3524
|
-
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}`));
|
|
3525
|
-
};
|
|
3526
|
-
|
|
3527
|
-
var __defProp$y = Object.defineProperty;
|
|
3528
|
-
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
|
3529
|
-
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
|
3530
|
-
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
|
3531
|
-
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3532
|
-
var __spreadValues$y = (a, b) => {
|
|
3533
|
-
for (var prop in b || (b = {}))
|
|
3534
|
-
if (__hasOwnProp$z.call(b, prop))
|
|
3535
|
-
__defNormalProp$y(a, prop, b[prop]);
|
|
3536
|
-
if (__getOwnPropSymbols$z)
|
|
3537
|
-
for (var prop of __getOwnPropSymbols$z(b)) {
|
|
3538
|
-
if (__propIsEnum$z.call(b, prop))
|
|
3539
|
-
__defNormalProp$y(a, prop, b[prop]);
|
|
3540
|
-
}
|
|
3541
|
-
return a;
|
|
3542
|
-
};
|
|
3543
|
-
const BitPerSeconds = ({
|
|
3544
|
-
rawValue,
|
|
3545
|
-
decimals,
|
|
3546
|
-
valueClassName,
|
|
3547
|
-
unitClassName,
|
|
3548
|
-
emptyProps
|
|
3549
|
-
}) => {
|
|
3550
|
-
if (isEmpty(rawValue)) {
|
|
3551
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$y({}, emptyProps));
|
|
3552
|
-
}
|
|
3553
|
-
const { value, unit } = formatBitPerSecond(rawValue, decimals);
|
|
3554
|
-
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}`));
|
|
3555
|
-
};
|
|
3556
|
-
|
|
3557
|
-
var __defProp$x = Object.defineProperty;
|
|
3558
|
-
var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
|
|
3559
|
-
var __hasOwnProp$y = Object.prototype.hasOwnProperty;
|
|
3560
|
-
var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
|
|
3561
|
-
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3562
|
-
var __spreadValues$x = (a, b) => {
|
|
3563
|
-
for (var prop in b || (b = {}))
|
|
3564
|
-
if (__hasOwnProp$y.call(b, prop))
|
|
3565
|
-
__defNormalProp$x(a, prop, b[prop]);
|
|
3566
|
-
if (__getOwnPropSymbols$y)
|
|
3567
|
-
for (var prop of __getOwnPropSymbols$y(b)) {
|
|
3568
|
-
if (__propIsEnum$y.call(b, prop))
|
|
3569
|
-
__defNormalProp$x(a, prop, b[prop]);
|
|
3570
|
-
}
|
|
3571
|
-
return a;
|
|
3572
|
-
};
|
|
3573
|
-
const Bps = ({
|
|
3574
|
-
rawValue,
|
|
3575
|
-
decimals,
|
|
3576
|
-
valueClassName,
|
|
3577
|
-
unitClassName,
|
|
3578
|
-
emptyProps
|
|
3579
|
-
}) => {
|
|
3580
|
-
if (isEmpty(rawValue)) {
|
|
3581
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$x({}, emptyProps));
|
|
3582
|
-
}
|
|
3583
|
-
const { value, unit } = formatBps(rawValue, decimals);
|
|
3584
|
-
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}`));
|
|
3585
|
-
};
|
|
3586
|
-
|
|
3587
|
-
var __defProp$w = Object.defineProperty;
|
|
3588
|
-
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
|
3589
|
-
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
|
3590
|
-
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
|
3591
|
-
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, {
|
|
4045
|
+
var __defProp$r = Object.defineProperty;
|
|
4046
|
+
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
|
4047
|
+
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
|
4048
|
+
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
|
4049
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, {
|
|
3592
4050
|
enumerable: true,
|
|
3593
4051
|
configurable: true,
|
|
3594
4052
|
writable: true,
|
|
3595
4053
|
value
|
|
3596
4054
|
}) : obj[key] = value;
|
|
3597
|
-
var __spreadValues$
|
|
3598
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3599
|
-
if (__getOwnPropSymbols$
|
|
3600
|
-
if (__propIsEnum$
|
|
4055
|
+
var __spreadValues$r = (a, b) => {
|
|
4056
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$s.call(b, prop)) __defNormalProp$r(a, prop, b[prop]);
|
|
4057
|
+
if (__getOwnPropSymbols$s) for (var prop of __getOwnPropSymbols$s(b)) {
|
|
4058
|
+
if (__propIsEnum$s.call(b, prop)) __defNormalProp$r(a, prop, b[prop]);
|
|
3601
4059
|
}
|
|
3602
4060
|
return a;
|
|
3603
4061
|
};
|
|
3604
4062
|
var __objRest$c = (source, exclude) => {
|
|
3605
4063
|
var target = {};
|
|
3606
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3607
|
-
if (source != null && __getOwnPropSymbols$
|
|
3608
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4064
|
+
for (var prop in source) if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
4065
|
+
if (source != null && __getOwnPropSymbols$s) for (var prop of __getOwnPropSymbols$s(source)) {
|
|
4066
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop)) target[prop] = source[prop];
|
|
3609
4067
|
}
|
|
3610
4068
|
return target;
|
|
3611
4069
|
};
|
|
@@ -3649,7 +4107,7 @@ const ButtonGroup = React__default.forwardRef((props, ref) => {
|
|
|
3649
4107
|
style: {
|
|
3650
4108
|
cursor: "not-allowed"
|
|
3651
4109
|
}
|
|
3652
|
-
}, /* @__PURE__ */React__default.createElement(Button, __spreadValues$
|
|
4110
|
+
}, /* @__PURE__ */React__default.createElement(Button, __spreadValues$r({
|
|
3653
4111
|
style: {
|
|
3654
4112
|
pointerEvents: "none"
|
|
3655
4113
|
},
|
|
@@ -3659,7 +4117,7 @@ const ButtonGroup = React__default.forwardRef((props, ref) => {
|
|
|
3659
4117
|
ghost,
|
|
3660
4118
|
className: cx(ButtonStyle, className2),
|
|
3661
4119
|
prefixIcon: icon
|
|
3662
|
-
}, buttonPropArgs))) : /* @__PURE__ */React__default.createElement(Button, __spreadValues$
|
|
4120
|
+
}, buttonPropArgs))) : /* @__PURE__ */React__default.createElement(Button, __spreadValues$r({
|
|
3663
4121
|
type,
|
|
3664
4122
|
size,
|
|
3665
4123
|
danger,
|
|
@@ -3668,7 +4126,7 @@ const ButtonGroup = React__default.forwardRef((props, ref) => {
|
|
|
3668
4126
|
prefixIcon: icon
|
|
3669
4127
|
}, buttonPropArgs)));
|
|
3670
4128
|
}
|
|
3671
|
-
return /* @__PURE__ */React__default.createElement(Button, __spreadValues$
|
|
4129
|
+
return /* @__PURE__ */React__default.createElement(Button, __spreadValues$r({
|
|
3672
4130
|
key: key || index,
|
|
3673
4131
|
type,
|
|
3674
4132
|
size,
|
|
@@ -3682,44 +4140,6 @@ const ButtonGroup = React__default.forwardRef((props, ref) => {
|
|
|
3682
4140
|
}));
|
|
3683
4141
|
});
|
|
3684
4142
|
|
|
3685
|
-
var __defProp$v = Object.defineProperty;
|
|
3686
|
-
var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
|
|
3687
|
-
var __hasOwnProp$w = Object.prototype.hasOwnProperty;
|
|
3688
|
-
var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
|
|
3689
|
-
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3690
|
-
var __spreadValues$v = (a, b) => {
|
|
3691
|
-
for (var prop in b || (b = {}))
|
|
3692
|
-
if (__hasOwnProp$w.call(b, prop))
|
|
3693
|
-
__defNormalProp$v(a, prop, b[prop]);
|
|
3694
|
-
if (__getOwnPropSymbols$w)
|
|
3695
|
-
for (var prop of __getOwnPropSymbols$w(b)) {
|
|
3696
|
-
if (__propIsEnum$w.call(b, prop))
|
|
3697
|
-
__defNormalProp$v(a, prop, b[prop]);
|
|
3698
|
-
}
|
|
3699
|
-
return a;
|
|
3700
|
-
};
|
|
3701
|
-
const Byte = ({
|
|
3702
|
-
rawValue,
|
|
3703
|
-
noUnitOnZero,
|
|
3704
|
-
decimals,
|
|
3705
|
-
valueClassName,
|
|
3706
|
-
unitClassName,
|
|
3707
|
-
emptyProps
|
|
3708
|
-
}) => {
|
|
3709
|
-
const { t } = useParrotTranslation();
|
|
3710
|
-
if (isEmpty(rawValue)) {
|
|
3711
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$v({}, emptyProps));
|
|
3712
|
-
}
|
|
3713
|
-
if (rawValue === -1) {
|
|
3714
|
-
return /* @__PURE__ */ React__default.createElement("span", null, t("common.calculation"));
|
|
3715
|
-
}
|
|
3716
|
-
const { value, unit } = formatBytes(rawValue, decimals);
|
|
3717
|
-
if (noUnitOnZero && value === 0) {
|
|
3718
|
-
return /* @__PURE__ */ React__default.createElement("span", { className: "value" }, value);
|
|
3719
|
-
}
|
|
3720
|
-
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}`));
|
|
3721
|
-
};
|
|
3722
|
-
|
|
3723
4143
|
const CardBody = /*#__PURE__*/styled$1('div')({
|
|
3724
4144
|
name: "CardBody",
|
|
3725
4145
|
class: "c1k4vanq",
|
|
@@ -3732,28 +4152,28 @@ const CardTitle = /*#__PURE__*/styled$1('div')({
|
|
|
3732
4152
|
propsAsIs: false
|
|
3733
4153
|
});
|
|
3734
4154
|
|
|
3735
|
-
var __defProp$
|
|
3736
|
-
var __getOwnPropSymbols$
|
|
3737
|
-
var __hasOwnProp$
|
|
3738
|
-
var __propIsEnum$
|
|
3739
|
-
var __defNormalProp$
|
|
4155
|
+
var __defProp$q = Object.defineProperty;
|
|
4156
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
|
4157
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
|
4158
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
|
4159
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, {
|
|
3740
4160
|
enumerable: true,
|
|
3741
4161
|
configurable: true,
|
|
3742
4162
|
writable: true,
|
|
3743
4163
|
value
|
|
3744
4164
|
}) : obj[key] = value;
|
|
3745
|
-
var __spreadValues$
|
|
3746
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3747
|
-
if (__getOwnPropSymbols$
|
|
3748
|
-
if (__propIsEnum$
|
|
4165
|
+
var __spreadValues$q = (a, b) => {
|
|
4166
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$r.call(b, prop)) __defNormalProp$q(a, prop, b[prop]);
|
|
4167
|
+
if (__getOwnPropSymbols$r) for (var prop of __getOwnPropSymbols$r(b)) {
|
|
4168
|
+
if (__propIsEnum$r.call(b, prop)) __defNormalProp$q(a, prop, b[prop]);
|
|
3749
4169
|
}
|
|
3750
4170
|
return a;
|
|
3751
4171
|
};
|
|
3752
4172
|
var __objRest$b = (source, exclude) => {
|
|
3753
4173
|
var target = {};
|
|
3754
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3755
|
-
if (source != null && __getOwnPropSymbols$
|
|
3756
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4174
|
+
for (var prop in source) if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
4175
|
+
if (source != null && __getOwnPropSymbols$r) for (var prop of __getOwnPropSymbols$r(source)) {
|
|
4176
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop)) target[prop] = source[prop];
|
|
3757
4177
|
}
|
|
3758
4178
|
return target;
|
|
3759
4179
|
};
|
|
@@ -3766,7 +4186,7 @@ const Wrapper = forwardRef(props => {
|
|
|
3766
4186
|
shadow
|
|
3767
4187
|
} = _a,
|
|
3768
4188
|
otherProps = __objRest$b(_a, ["children", "className", "shadow"]);
|
|
3769
|
-
return /* @__PURE__ */React__default.createElement("div", __spreadValues$
|
|
4189
|
+
return /* @__PURE__ */React__default.createElement("div", __spreadValues$q({
|
|
3770
4190
|
className: cs({
|
|
3771
4191
|
[boxShadow]: shadow
|
|
3772
4192
|
}, className)
|
|
@@ -3779,21 +4199,21 @@ const CardWrapper = /*#__PURE__*/styled$1(_exp$1())({
|
|
|
3779
4199
|
propsAsIs: true
|
|
3780
4200
|
});
|
|
3781
4201
|
|
|
3782
|
-
var __defProp$
|
|
4202
|
+
var __defProp$p = Object.defineProperty;
|
|
3783
4203
|
var __defProps$l = Object.defineProperties;
|
|
3784
4204
|
var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
|
|
3785
|
-
var __getOwnPropSymbols$
|
|
3786
|
-
var __hasOwnProp$
|
|
3787
|
-
var __propIsEnum$
|
|
3788
|
-
var __defNormalProp$
|
|
3789
|
-
var __spreadValues$
|
|
4205
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
4206
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
4207
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
4208
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4209
|
+
var __spreadValues$p = (a, b) => {
|
|
3790
4210
|
for (var prop in b || (b = {}))
|
|
3791
|
-
if (__hasOwnProp$
|
|
3792
|
-
__defNormalProp$
|
|
3793
|
-
if (__getOwnPropSymbols$
|
|
3794
|
-
for (var prop of __getOwnPropSymbols$
|
|
3795
|
-
if (__propIsEnum$
|
|
3796
|
-
__defNormalProp$
|
|
4211
|
+
if (__hasOwnProp$q.call(b, prop))
|
|
4212
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
4213
|
+
if (__getOwnPropSymbols$q)
|
|
4214
|
+
for (var prop of __getOwnPropSymbols$q(b)) {
|
|
4215
|
+
if (__propIsEnum$q.call(b, prop))
|
|
4216
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
3797
4217
|
}
|
|
3798
4218
|
return a;
|
|
3799
4219
|
};
|
|
@@ -3801,11 +4221,11 @@ var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
|
|
|
3801
4221
|
var __objRest$a = (source, exclude) => {
|
|
3802
4222
|
var target = {};
|
|
3803
4223
|
for (var prop in source)
|
|
3804
|
-
if (__hasOwnProp$
|
|
4224
|
+
if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3805
4225
|
target[prop] = source[prop];
|
|
3806
|
-
if (source != null && __getOwnPropSymbols$
|
|
3807
|
-
for (var prop of __getOwnPropSymbols$
|
|
3808
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4226
|
+
if (source != null && __getOwnPropSymbols$q)
|
|
4227
|
+
for (var prop of __getOwnPropSymbols$q(source)) {
|
|
4228
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
|
|
3809
4229
|
target[prop] = source[prop];
|
|
3810
4230
|
}
|
|
3811
4231
|
return target;
|
|
@@ -3832,7 +4252,7 @@ const Card = React__default.forwardRef(
|
|
|
3832
4252
|
const [open, setOpen] = useState(defaultOpen);
|
|
3833
4253
|
return /* @__PURE__ */ React__default.createElement(
|
|
3834
4254
|
CardWrapper,
|
|
3835
|
-
__spreadProps$l(__spreadValues$
|
|
4255
|
+
__spreadProps$l(__spreadValues$p({
|
|
3836
4256
|
ref,
|
|
3837
4257
|
className: cs(["card-wrapper", className, hoverable && "hoverable"])
|
|
3838
4258
|
}, domProps), {
|
|
@@ -3929,22 +4349,22 @@ const ExpandableItem = props => {
|
|
|
3929
4349
|
}, children));
|
|
3930
4350
|
};
|
|
3931
4351
|
|
|
3932
|
-
var __defProp$
|
|
4352
|
+
var __defProp$o = Object.defineProperty;
|
|
3933
4353
|
var __defProps$k = Object.defineProperties;
|
|
3934
4354
|
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
|
3935
|
-
var __getOwnPropSymbols$
|
|
3936
|
-
var __hasOwnProp$
|
|
3937
|
-
var __propIsEnum$
|
|
3938
|
-
var __defNormalProp$
|
|
4355
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
4356
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
4357
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
4358
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, {
|
|
3939
4359
|
enumerable: true,
|
|
3940
4360
|
configurable: true,
|
|
3941
4361
|
writable: true,
|
|
3942
4362
|
value
|
|
3943
4363
|
}) : obj[key] = value;
|
|
3944
|
-
var __spreadValues$
|
|
3945
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3946
|
-
if (__getOwnPropSymbols$
|
|
3947
|
-
if (__propIsEnum$
|
|
4364
|
+
var __spreadValues$o = (a, b) => {
|
|
4365
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$p.call(b, prop)) __defNormalProp$o(a, prop, b[prop]);
|
|
4366
|
+
if (__getOwnPropSymbols$p) for (var prop of __getOwnPropSymbols$p(b)) {
|
|
4367
|
+
if (__propIsEnum$p.call(b, prop)) __defNormalProp$o(a, prop, b[prop]);
|
|
3948
4368
|
}
|
|
3949
4369
|
return a;
|
|
3950
4370
|
};
|
|
@@ -3954,7 +4374,7 @@ const {
|
|
|
3954
4374
|
} = Form$1;
|
|
3955
4375
|
const FormItemStyle$1 = "f1p9ti6d";
|
|
3956
4376
|
const FormItem$1 = props => {
|
|
3957
|
-
return /* @__PURE__ */React__default.createElement(AntdFormItem, __spreadProps$k(__spreadValues$
|
|
4377
|
+
return /* @__PURE__ */React__default.createElement(AntdFormItem, __spreadProps$k(__spreadValues$o({}, props), {
|
|
3958
4378
|
className: cs(FormItemStyle$1, props.className)
|
|
3959
4379
|
}));
|
|
3960
4380
|
};
|
|
@@ -3962,55 +4382,25 @@ const FormItem$1 = props => {
|
|
|
3962
4382
|
const Form = Form$1;
|
|
3963
4383
|
Form.Item = FormItem$1;
|
|
3964
4384
|
|
|
3965
|
-
var __defProp$
|
|
3966
|
-
var __getOwnPropSymbols$
|
|
3967
|
-
var __hasOwnProp$
|
|
3968
|
-
var __propIsEnum$
|
|
3969
|
-
var __defNormalProp$
|
|
3970
|
-
var __spreadValues$
|
|
3971
|
-
for (var prop in b || (b = {}))
|
|
3972
|
-
if (__hasOwnProp$s.call(b, prop))
|
|
3973
|
-
__defNormalProp$r(a, prop, b[prop]);
|
|
3974
|
-
if (__getOwnPropSymbols$s)
|
|
3975
|
-
for (var prop of __getOwnPropSymbols$s(b)) {
|
|
3976
|
-
if (__propIsEnum$s.call(b, prop))
|
|
3977
|
-
__defNormalProp$r(a, prop, b[prop]);
|
|
3978
|
-
}
|
|
3979
|
-
return a;
|
|
3980
|
-
};
|
|
3981
|
-
const Frequency = ({
|
|
3982
|
-
rawValue,
|
|
3983
|
-
decimals,
|
|
3984
|
-
valueClassName,
|
|
3985
|
-
unitClassName,
|
|
3986
|
-
emptyProps
|
|
3987
|
-
}) => {
|
|
3988
|
-
if (isEmpty(rawValue)) {
|
|
3989
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$r({}, emptyProps));
|
|
3990
|
-
}
|
|
3991
|
-
const { value, unit } = formatFrequency(rawValue, decimals);
|
|
3992
|
-
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}`));
|
|
3993
|
-
};
|
|
3994
|
-
|
|
3995
|
-
var __defProp$q = Object.defineProperty;
|
|
3996
|
-
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
|
3997
|
-
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
|
3998
|
-
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
|
3999
|
-
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4000
|
-
var __spreadValues$q = (a, b) => {
|
|
4385
|
+
var __defProp$n = Object.defineProperty;
|
|
4386
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
4387
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
4388
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
4389
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4390
|
+
var __spreadValues$n = (a, b) => {
|
|
4001
4391
|
for (var prop in b || (b = {}))
|
|
4002
|
-
if (__hasOwnProp$
|
|
4003
|
-
__defNormalProp$
|
|
4004
|
-
if (__getOwnPropSymbols$
|
|
4005
|
-
for (var prop of __getOwnPropSymbols$
|
|
4006
|
-
if (__propIsEnum$
|
|
4007
|
-
__defNormalProp$
|
|
4392
|
+
if (__hasOwnProp$o.call(b, prop))
|
|
4393
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
4394
|
+
if (__getOwnPropSymbols$o)
|
|
4395
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
|
4396
|
+
if (__propIsEnum$o.call(b, prop))
|
|
4397
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
4008
4398
|
}
|
|
4009
4399
|
return a;
|
|
4010
4400
|
};
|
|
4011
4401
|
const ParrotTrans = (props) => {
|
|
4012
4402
|
const { i18n } = useParrotTranslation();
|
|
4013
|
-
return /* @__PURE__ */ React__default.createElement(Trans, __spreadValues$
|
|
4403
|
+
return /* @__PURE__ */ React__default.createElement(Trans, __spreadValues$n({ i18n }, props));
|
|
4014
4404
|
};
|
|
4015
4405
|
|
|
4016
4406
|
const PresetColors$3 = [
|
|
@@ -4030,31 +4420,31 @@ const TagStyle$1 = "tnd6h4m";
|
|
|
4030
4420
|
const IconStyle$1 = "i1qw4clm";
|
|
4031
4421
|
const NameTagStyle = "n1r5ku5l";
|
|
4032
4422
|
|
|
4033
|
-
var __defProp$
|
|
4423
|
+
var __defProp$m = Object.defineProperty;
|
|
4034
4424
|
var __defProps$j = Object.defineProperties;
|
|
4035
4425
|
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
4036
|
-
var __getOwnPropSymbols$
|
|
4037
|
-
var __hasOwnProp$
|
|
4038
|
-
var __propIsEnum$
|
|
4039
|
-
var __defNormalProp$
|
|
4426
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
4427
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
4428
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
4429
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, {
|
|
4040
4430
|
enumerable: true,
|
|
4041
4431
|
configurable: true,
|
|
4042
4432
|
writable: true,
|
|
4043
4433
|
value
|
|
4044
4434
|
}) : obj[key] = value;
|
|
4045
|
-
var __spreadValues$
|
|
4046
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
4047
|
-
if (__getOwnPropSymbols$
|
|
4048
|
-
if (__propIsEnum$
|
|
4435
|
+
var __spreadValues$m = (a, b) => {
|
|
4436
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$n.call(b, prop)) __defNormalProp$m(a, prop, b[prop]);
|
|
4437
|
+
if (__getOwnPropSymbols$n) for (var prop of __getOwnPropSymbols$n(b)) {
|
|
4438
|
+
if (__propIsEnum$n.call(b, prop)) __defNormalProp$m(a, prop, b[prop]);
|
|
4049
4439
|
}
|
|
4050
4440
|
return a;
|
|
4051
4441
|
};
|
|
4052
4442
|
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
4053
4443
|
var __objRest$9 = (source, exclude) => {
|
|
4054
4444
|
var target = {};
|
|
4055
|
-
for (var prop in source) if (__hasOwnProp$
|
|
4056
|
-
if (source != null && __getOwnPropSymbols$
|
|
4057
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4445
|
+
for (var prop in source) if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
4446
|
+
if (source != null && __getOwnPropSymbols$n) for (var prop of __getOwnPropSymbols$n(source)) {
|
|
4447
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop)) target[prop] = source[prop];
|
|
4058
4448
|
}
|
|
4059
4449
|
return target;
|
|
4060
4450
|
};
|
|
@@ -4070,7 +4460,7 @@ const SplitTag = _a => {
|
|
|
4070
4460
|
icon
|
|
4071
4461
|
} = _b,
|
|
4072
4462
|
props = __objRest$9(_b, ["size", "color", "className", "primaryContent", "secondaryContent", "icon"]);
|
|
4073
|
-
return /* @__PURE__ */React__default.createElement(Tag$1, __spreadProps$j(__spreadValues$
|
|
4463
|
+
return /* @__PURE__ */React__default.createElement(Tag$1, __spreadProps$j(__spreadValues$m({}, props), {
|
|
4074
4464
|
className: cs(className, TagStyle$1, Size$1[size], WrapperStyle, Typo.Label.l4_regular, {
|
|
4075
4465
|
[`ant-tag-${color}`]: PresetColors$3.includes(color)
|
|
4076
4466
|
}, "outside-tag")
|
|
@@ -4083,21 +4473,21 @@ const SplitTag = _a => {
|
|
|
4083
4473
|
}, icon), primaryContent), secondaryContent);
|
|
4084
4474
|
};
|
|
4085
4475
|
|
|
4086
|
-
var __defProp$
|
|
4476
|
+
var __defProp$l = Object.defineProperty;
|
|
4087
4477
|
var __defProps$i = Object.defineProperties;
|
|
4088
4478
|
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
4089
|
-
var __getOwnPropSymbols$
|
|
4090
|
-
var __hasOwnProp$
|
|
4091
|
-
var __propIsEnum$
|
|
4092
|
-
var __defNormalProp$
|
|
4093
|
-
var __spreadValues$
|
|
4479
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
4480
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
4481
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
4482
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4483
|
+
var __spreadValues$l = (a, b) => {
|
|
4094
4484
|
for (var prop in b || (b = {}))
|
|
4095
|
-
if (__hasOwnProp$
|
|
4096
|
-
__defNormalProp$
|
|
4097
|
-
if (__getOwnPropSymbols$
|
|
4098
|
-
for (var prop of __getOwnPropSymbols$
|
|
4099
|
-
if (__propIsEnum$
|
|
4100
|
-
__defNormalProp$
|
|
4485
|
+
if (__hasOwnProp$m.call(b, prop))
|
|
4486
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
4487
|
+
if (__getOwnPropSymbols$m)
|
|
4488
|
+
for (var prop of __getOwnPropSymbols$m(b)) {
|
|
4489
|
+
if (__propIsEnum$m.call(b, prop))
|
|
4490
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
4101
4491
|
}
|
|
4102
4492
|
return a;
|
|
4103
4493
|
};
|
|
@@ -4105,11 +4495,11 @@ var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
|
4105
4495
|
var __objRest$8 = (source, exclude) => {
|
|
4106
4496
|
var target = {};
|
|
4107
4497
|
for (var prop in source)
|
|
4108
|
-
if (__hasOwnProp$
|
|
4498
|
+
if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
4109
4499
|
target[prop] = source[prop];
|
|
4110
|
-
if (source != null && __getOwnPropSymbols$
|
|
4111
|
-
for (var prop of __getOwnPropSymbols$
|
|
4112
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4500
|
+
if (source != null && __getOwnPropSymbols$m)
|
|
4501
|
+
for (var prop of __getOwnPropSymbols$m(source)) {
|
|
4502
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
|
|
4113
4503
|
target[prop] = source[prop];
|
|
4114
4504
|
}
|
|
4115
4505
|
return target;
|
|
@@ -4145,7 +4535,7 @@ const Tag = (_a) => {
|
|
|
4145
4535
|
const computedColor = AntdColorMap[color] || color;
|
|
4146
4536
|
return /* @__PURE__ */ React__default.createElement(
|
|
4147
4537
|
Tag$1,
|
|
4148
|
-
__spreadProps$i(__spreadValues$
|
|
4538
|
+
__spreadProps$i(__spreadValues$l({}, props), {
|
|
4149
4539
|
className: cs(className, Size$1[size], TagStyle$1, Typo.Label.l4_regular, {
|
|
4150
4540
|
[`ant-tag-${computedColor}`]: PresetColors$2.includes(computedColor),
|
|
4151
4541
|
"tag-hover": hoverable
|
|
@@ -4159,19 +4549,19 @@ const Tag = (_a) => {
|
|
|
4159
4549
|
};
|
|
4160
4550
|
const NameTag = (_c) => {
|
|
4161
4551
|
var _d = _c, { className } = _d, props = __objRest$8(_d, ["className"]);
|
|
4162
|
-
return /* @__PURE__ */ React__default.createElement(Tag, __spreadValues$
|
|
4552
|
+
return /* @__PURE__ */ React__default.createElement(Tag, __spreadValues$l({ className: cs(NameTagStyle, className) }, props));
|
|
4163
4553
|
};
|
|
4164
4554
|
Tag.SplitTag = SplitTag;
|
|
4165
4555
|
Tag.NameTag = NameTag;
|
|
4166
4556
|
|
|
4167
|
-
var __getOwnPropSymbols$
|
|
4168
|
-
var __hasOwnProp$
|
|
4169
|
-
var __propIsEnum$
|
|
4557
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
4558
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
4559
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
4170
4560
|
var __objRest$7 = (source, exclude) => {
|
|
4171
4561
|
var target = {};
|
|
4172
|
-
for (var prop in source) if (__hasOwnProp$
|
|
4173
|
-
if (source != null && __getOwnPropSymbols$
|
|
4174
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4562
|
+
for (var prop in source) if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
4563
|
+
if (source != null && __getOwnPropSymbols$l) for (var prop of __getOwnPropSymbols$l(source)) {
|
|
4564
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop)) target[prop] = source[prop];
|
|
4175
4565
|
}
|
|
4176
4566
|
return target;
|
|
4177
4567
|
};
|
|
@@ -4200,21 +4590,21 @@ const InputGroup = /*#__PURE__*/styled$1(_exp())({
|
|
|
4200
4590
|
propsAsIs: true
|
|
4201
4591
|
});
|
|
4202
4592
|
|
|
4203
|
-
var __defProp$
|
|
4593
|
+
var __defProp$k = Object.defineProperty;
|
|
4204
4594
|
var __defProps$h = Object.defineProperties;
|
|
4205
4595
|
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
4206
|
-
var __getOwnPropSymbols$
|
|
4207
|
-
var __hasOwnProp$
|
|
4208
|
-
var __propIsEnum$
|
|
4209
|
-
var __defNormalProp$
|
|
4210
|
-
var __spreadValues$
|
|
4596
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
|
4597
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
|
4598
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
|
4599
|
+
var __defNormalProp$k = (obj, key2, value) => key2 in obj ? __defProp$k(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value;
|
|
4600
|
+
var __spreadValues$k = (a, b) => {
|
|
4211
4601
|
for (var prop in b || (b = {}))
|
|
4212
|
-
if (__hasOwnProp$
|
|
4213
|
-
__defNormalProp$
|
|
4214
|
-
if (__getOwnPropSymbols$
|
|
4215
|
-
for (var prop of __getOwnPropSymbols$
|
|
4216
|
-
if (__propIsEnum$
|
|
4217
|
-
__defNormalProp$
|
|
4602
|
+
if (__hasOwnProp$k.call(b, prop))
|
|
4603
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
4604
|
+
if (__getOwnPropSymbols$k)
|
|
4605
|
+
for (var prop of __getOwnPropSymbols$k(b)) {
|
|
4606
|
+
if (__propIsEnum$k.call(b, prop))
|
|
4607
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
4218
4608
|
}
|
|
4219
4609
|
return a;
|
|
4220
4610
|
};
|
|
@@ -4325,7 +4715,7 @@ function notice(args) {
|
|
|
4325
4715
|
}
|
|
4326
4716
|
getRCNotificationInstance(args, ({ prefixCls, instance }) => {
|
|
4327
4717
|
instance.notice(
|
|
4328
|
-
getRCNoticeProps(__spreadProps$h(__spreadValues$
|
|
4718
|
+
getRCNoticeProps(__spreadProps$h(__spreadValues$k({}, args), { key: target, onClose: callback }), prefixCls)
|
|
4329
4719
|
);
|
|
4330
4720
|
});
|
|
4331
4721
|
});
|
|
@@ -4354,7 +4744,7 @@ const api = {
|
|
|
4354
4744
|
function attachTypeApi(originalApi, type) {
|
|
4355
4745
|
originalApi[type] = (content, duration, onClose) => {
|
|
4356
4746
|
if (isArgsProps(content)) {
|
|
4357
|
-
return originalApi.open(__spreadProps$h(__spreadValues$
|
|
4747
|
+
return originalApi.open(__spreadProps$h(__spreadValues$k({}, content), { type }));
|
|
4358
4748
|
}
|
|
4359
4749
|
if (typeof duration === "function") {
|
|
4360
4750
|
onClose = duration;
|
|
@@ -4368,21 +4758,21 @@ function attachTypeApi(originalApi, type) {
|
|
|
4368
4758
|
);
|
|
4369
4759
|
api.warn = api.warning;
|
|
4370
4760
|
|
|
4371
|
-
var __defProp$
|
|
4761
|
+
var __defProp$j = Object.defineProperty;
|
|
4372
4762
|
var __defProps$g = Object.defineProperties;
|
|
4373
4763
|
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
4374
|
-
var __getOwnPropSymbols$
|
|
4375
|
-
var __hasOwnProp$
|
|
4376
|
-
var __propIsEnum$
|
|
4377
|
-
var __defNormalProp$
|
|
4378
|
-
var __spreadValues$
|
|
4764
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
4765
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
4766
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
4767
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4768
|
+
var __spreadValues$j = (a, b) => {
|
|
4379
4769
|
for (var prop in b || (b = {}))
|
|
4380
|
-
if (__hasOwnProp$
|
|
4381
|
-
__defNormalProp$
|
|
4382
|
-
if (__getOwnPropSymbols$
|
|
4383
|
-
for (var prop of __getOwnPropSymbols$
|
|
4384
|
-
if (__propIsEnum$
|
|
4385
|
-
__defNormalProp$
|
|
4770
|
+
if (__hasOwnProp$j.call(b, prop))
|
|
4771
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
4772
|
+
if (__getOwnPropSymbols$j)
|
|
4773
|
+
for (var prop of __getOwnPropSymbols$j(b)) {
|
|
4774
|
+
if (__propIsEnum$j.call(b, prop))
|
|
4775
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
4386
4776
|
}
|
|
4387
4777
|
return a;
|
|
4388
4778
|
};
|
|
@@ -4396,8 +4786,8 @@ const chartReducer = (state = initialChartState, action) => {
|
|
|
4396
4786
|
switch (action.type) {
|
|
4397
4787
|
case "SET_POINTER" /* SET_POINTER */: {
|
|
4398
4788
|
const { uuid, left, text, visible, value } = action.payload;
|
|
4399
|
-
return __spreadProps$g(__spreadValues$
|
|
4400
|
-
pointers: __spreadProps$g(__spreadValues$
|
|
4789
|
+
return __spreadProps$g(__spreadValues$j({}, state), {
|
|
4790
|
+
pointers: __spreadProps$g(__spreadValues$j({}, state.pointers), {
|
|
4401
4791
|
[uuid]: {
|
|
4402
4792
|
left,
|
|
4403
4793
|
text,
|
|
@@ -4409,16 +4799,16 @@ const chartReducer = (state = initialChartState, action) => {
|
|
|
4409
4799
|
}
|
|
4410
4800
|
case "SET_RESOURCE_DATA" /* SET_RESOURCE_DATA */: {
|
|
4411
4801
|
const { uuid, data } = action.payload;
|
|
4412
|
-
return __spreadProps$g(__spreadValues$
|
|
4413
|
-
resourceData: __spreadProps$g(__spreadValues$
|
|
4802
|
+
return __spreadProps$g(__spreadValues$j({}, state), {
|
|
4803
|
+
resourceData: __spreadProps$g(__spreadValues$j({}, state.resourceData), {
|
|
4414
4804
|
[uuid]: data
|
|
4415
4805
|
})
|
|
4416
4806
|
});
|
|
4417
4807
|
}
|
|
4418
4808
|
case "SET_AVERAGE_DATA" /* SET_AVERAGE_DATA */: {
|
|
4419
4809
|
const { uuid, average } = action.payload;
|
|
4420
|
-
return __spreadProps$g(__spreadValues$
|
|
4421
|
-
averageData: __spreadProps$g(__spreadValues$
|
|
4810
|
+
return __spreadProps$g(__spreadValues$j({}, state), {
|
|
4811
|
+
averageData: __spreadProps$g(__spreadValues$j({}, state.averageData), {
|
|
4422
4812
|
[uuid]: average
|
|
4423
4813
|
})
|
|
4424
4814
|
});
|
|
@@ -4429,21 +4819,21 @@ const chartReducer = (state = initialChartState, action) => {
|
|
|
4429
4819
|
}
|
|
4430
4820
|
};
|
|
4431
4821
|
|
|
4432
|
-
var __defProp$
|
|
4822
|
+
var __defProp$i = Object.defineProperty;
|
|
4433
4823
|
var __defProps$f = Object.defineProperties;
|
|
4434
4824
|
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
4435
|
-
var __getOwnPropSymbols$
|
|
4436
|
-
var __hasOwnProp$
|
|
4437
|
-
var __propIsEnum$
|
|
4438
|
-
var __defNormalProp$
|
|
4439
|
-
var __spreadValues$
|
|
4825
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
4826
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
4827
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
4828
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4829
|
+
var __spreadValues$i = (a, b) => {
|
|
4440
4830
|
for (var prop in b || (b = {}))
|
|
4441
|
-
if (__hasOwnProp$
|
|
4442
|
-
__defNormalProp$
|
|
4443
|
-
if (__getOwnPropSymbols$
|
|
4444
|
-
for (var prop of __getOwnPropSymbols$
|
|
4445
|
-
if (__propIsEnum$
|
|
4446
|
-
__defNormalProp$
|
|
4831
|
+
if (__hasOwnProp$i.call(b, prop))
|
|
4832
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
4833
|
+
if (__getOwnPropSymbols$i)
|
|
4834
|
+
for (var prop of __getOwnPropSymbols$i(b)) {
|
|
4835
|
+
if (__propIsEnum$i.call(b, prop))
|
|
4836
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
4447
4837
|
}
|
|
4448
4838
|
return a;
|
|
4449
4839
|
};
|
|
@@ -4468,22 +4858,22 @@ const modalReducer = (state = initialModalState, action) => {
|
|
|
4468
4858
|
)) {
|
|
4469
4859
|
return state;
|
|
4470
4860
|
}
|
|
4471
|
-
return __spreadProps$f(__spreadValues$
|
|
4472
|
-
stack: state.stack.concat(__spreadProps$f(__spreadValues$
|
|
4861
|
+
return __spreadProps$f(__spreadValues$i({}, state), {
|
|
4862
|
+
stack: state.stack.concat(__spreadProps$f(__spreadValues$i({}, action.payload), {
|
|
4473
4863
|
id: MODAL_ID++
|
|
4474
4864
|
}))
|
|
4475
4865
|
});
|
|
4476
4866
|
case "POP_MODAL" /* POP_MODAL */:
|
|
4477
|
-
return __spreadProps$f(__spreadValues$
|
|
4867
|
+
return __spreadProps$f(__spreadValues$i({}, state), {
|
|
4478
4868
|
stack: state.stack.slice(0, -1)
|
|
4479
4869
|
});
|
|
4480
4870
|
case "REMOVE_MODAL" /* REMOVE_MODAL */:
|
|
4481
|
-
return __spreadProps$f(__spreadValues$
|
|
4871
|
+
return __spreadProps$f(__spreadValues$i({}, state), {
|
|
4482
4872
|
closeId: 0,
|
|
4483
4873
|
stack: state.stack.filter((m) => m.id !== action.id)
|
|
4484
4874
|
});
|
|
4485
4875
|
case "CLOSE_MODAL" /* CLOSE_MODAL */:
|
|
4486
|
-
return __spreadProps$f(__spreadValues$
|
|
4876
|
+
return __spreadProps$f(__spreadValues$i({}, state), {
|
|
4487
4877
|
closeId: action.id
|
|
4488
4878
|
});
|
|
4489
4879
|
default:
|
|
@@ -4540,21 +4930,21 @@ const VerticalStyle = "v1p8siwu";
|
|
|
4540
4930
|
const HorizontalStepContentStyle = "h1xo7yjb";
|
|
4541
4931
|
const VerticalStepContentStyle = "v1f2f7cy";
|
|
4542
4932
|
|
|
4543
|
-
var __defProp$
|
|
4933
|
+
var __defProp$h = Object.defineProperty;
|
|
4544
4934
|
var __defProps$e = Object.defineProperties;
|
|
4545
4935
|
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
|
4546
|
-
var __getOwnPropSymbols$
|
|
4547
|
-
var __hasOwnProp$
|
|
4548
|
-
var __propIsEnum$
|
|
4549
|
-
var __defNormalProp$
|
|
4550
|
-
var __spreadValues$
|
|
4936
|
+
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
|
4937
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
4938
|
+
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
|
4939
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4940
|
+
var __spreadValues$h = (a, b) => {
|
|
4551
4941
|
for (var prop in b || (b = {}))
|
|
4552
|
-
if (__hasOwnProp$
|
|
4553
|
-
__defNormalProp$
|
|
4554
|
-
if (__getOwnPropSymbols$
|
|
4555
|
-
for (var prop of __getOwnPropSymbols$
|
|
4556
|
-
if (__propIsEnum$
|
|
4557
|
-
__defNormalProp$
|
|
4942
|
+
if (__hasOwnProp$h.call(b, prop))
|
|
4943
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
4944
|
+
if (__getOwnPropSymbols$h)
|
|
4945
|
+
for (var prop of __getOwnPropSymbols$h(b)) {
|
|
4946
|
+
if (__propIsEnum$h.call(b, prop))
|
|
4947
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
4558
4948
|
}
|
|
4559
4949
|
return a;
|
|
4560
4950
|
};
|
|
@@ -4562,11 +4952,11 @@ var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
|
|
4562
4952
|
var __objRest$6 = (source, exclude) => {
|
|
4563
4953
|
var target = {};
|
|
4564
4954
|
for (var prop in source)
|
|
4565
|
-
if (__hasOwnProp$
|
|
4955
|
+
if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
4566
4956
|
target[prop] = source[prop];
|
|
4567
|
-
if (source != null && __getOwnPropSymbols$
|
|
4568
|
-
for (var prop of __getOwnPropSymbols$
|
|
4569
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4957
|
+
if (source != null && __getOwnPropSymbols$h)
|
|
4958
|
+
for (var prop of __getOwnPropSymbols$h(source)) {
|
|
4959
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
|
|
4570
4960
|
target[prop] = source[prop];
|
|
4571
4961
|
}
|
|
4572
4962
|
return target;
|
|
@@ -4582,7 +4972,7 @@ const StepTitle = (props) => {
|
|
|
4582
4972
|
setTooltipEnable({});
|
|
4583
4973
|
}
|
|
4584
4974
|
}, [textRef]);
|
|
4585
|
-
return /* @__PURE__ */ React__default.createElement(Tooltip, __spreadProps$e(__spreadValues$
|
|
4975
|
+
return /* @__PURE__ */ React__default.createElement(Tooltip, __spreadProps$e(__spreadValues$h({}, tooltipEnable), { title: step.title }), /* @__PURE__ */ React__default.createElement(
|
|
4586
4976
|
"div",
|
|
4587
4977
|
{
|
|
4588
4978
|
className: isVerticalMode ? VerticalStepContentStyle : HorizontalStepContentStyle
|
|
@@ -4617,14 +5007,14 @@ const Steps = (props) => {
|
|
|
4617
5007
|
},
|
|
4618
5008
|
/* @__PURE__ */ React__default.createElement(
|
|
4619
5009
|
Steps$1,
|
|
4620
|
-
__spreadProps$e(__spreadValues$
|
|
5010
|
+
__spreadProps$e(__spreadValues$h({}, stepsProps), {
|
|
4621
5011
|
direction,
|
|
4622
5012
|
current,
|
|
4623
5013
|
type: "default"
|
|
4624
5014
|
}),
|
|
4625
5015
|
(stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */ React__default.createElement(
|
|
4626
5016
|
Steps$1.Step,
|
|
4627
|
-
__spreadProps$e(__spreadValues$
|
|
5017
|
+
__spreadProps$e(__spreadValues$h({
|
|
4628
5018
|
key: index
|
|
4629
5019
|
}, step), {
|
|
4630
5020
|
disabled: disabled || index > current,
|
|
@@ -4643,21 +5033,21 @@ const Steps = (props) => {
|
|
|
4643
5033
|
);
|
|
4644
5034
|
};
|
|
4645
5035
|
|
|
4646
|
-
var __defProp$
|
|
5036
|
+
var __defProp$g = Object.defineProperty;
|
|
4647
5037
|
var __defProps$d = Object.defineProperties;
|
|
4648
5038
|
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
4649
|
-
var __getOwnPropSymbols$
|
|
4650
|
-
var __hasOwnProp$
|
|
4651
|
-
var __propIsEnum$
|
|
4652
|
-
var __defNormalProp$
|
|
4653
|
-
var __spreadValues$
|
|
5039
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
5040
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
5041
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
5042
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5043
|
+
var __spreadValues$g = (a, b) => {
|
|
4654
5044
|
for (var prop in b || (b = {}))
|
|
4655
|
-
if (__hasOwnProp$
|
|
4656
|
-
__defNormalProp$
|
|
4657
|
-
if (__getOwnPropSymbols$
|
|
4658
|
-
for (var prop of __getOwnPropSymbols$
|
|
4659
|
-
if (__propIsEnum$
|
|
4660
|
-
__defNormalProp$
|
|
5045
|
+
if (__hasOwnProp$g.call(b, prop))
|
|
5046
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
5047
|
+
if (__getOwnPropSymbols$g)
|
|
5048
|
+
for (var prop of __getOwnPropSymbols$g(b)) {
|
|
5049
|
+
if (__propIsEnum$g.call(b, prop))
|
|
5050
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
4661
5051
|
}
|
|
4662
5052
|
return a;
|
|
4663
5053
|
};
|
|
@@ -4665,11 +5055,11 @@ var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
|
|
4665
5055
|
var __objRest$5 = (source, exclude) => {
|
|
4666
5056
|
var target = {};
|
|
4667
5057
|
for (var prop in source)
|
|
4668
|
-
if (__hasOwnProp$
|
|
5058
|
+
if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
4669
5059
|
target[prop] = source[prop];
|
|
4670
|
-
if (source != null && __getOwnPropSymbols$
|
|
4671
|
-
for (var prop of __getOwnPropSymbols$
|
|
4672
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
5060
|
+
if (source != null && __getOwnPropSymbols$g)
|
|
5061
|
+
for (var prop of __getOwnPropSymbols$g(source)) {
|
|
5062
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
|
|
4673
5063
|
target[prop] = source[prop];
|
|
4674
5064
|
}
|
|
4675
5065
|
return target;
|
|
@@ -4751,7 +5141,7 @@ const Modal = (props) => {
|
|
|
4751
5141
|
}
|
|
4752
5142
|
return /* @__PURE__ */ React__default.createElement(
|
|
4753
5143
|
Modal$1,
|
|
4754
|
-
__spreadProps$d(__spreadValues$
|
|
5144
|
+
__spreadProps$d(__spreadValues$g({
|
|
4755
5145
|
maskClosable,
|
|
4756
5146
|
className: cs(
|
|
4757
5147
|
className,
|
|
@@ -4786,7 +5176,7 @@ const Modal = (props) => {
|
|
|
4786
5176
|
prevText
|
|
4787
5177
|
), 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(
|
|
4788
5178
|
Button,
|
|
4789
|
-
__spreadValues$
|
|
5179
|
+
__spreadValues$g({
|
|
4790
5180
|
type: "quiet",
|
|
4791
5181
|
onMouseDown: (e) => {
|
|
4792
5182
|
e.preventDefault();
|
|
@@ -4800,7 +5190,7 @@ const Modal = (props) => {
|
|
|
4800
5190
|
cancelText
|
|
4801
5191
|
), showOk && /* @__PURE__ */ React__default.createElement(
|
|
4802
5192
|
Button,
|
|
4803
|
-
__spreadValues$
|
|
5193
|
+
__spreadValues$g({
|
|
4804
5194
|
onClick: (e) => {
|
|
4805
5195
|
var _a2, _b2;
|
|
4806
5196
|
onOk == null ? void 0 : onOk(e);
|
|
@@ -4842,22 +5232,22 @@ const Modal = (props) => {
|
|
|
4842
5232
|
);
|
|
4843
5233
|
};
|
|
4844
5234
|
|
|
4845
|
-
var __defProp$
|
|
5235
|
+
var __defProp$f = Object.defineProperty;
|
|
4846
5236
|
var __defProps$c = Object.defineProperties;
|
|
4847
5237
|
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
4848
|
-
var __getOwnPropSymbols$
|
|
4849
|
-
var __hasOwnProp$
|
|
4850
|
-
var __propIsEnum$
|
|
4851
|
-
var __defNormalProp$
|
|
5238
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
5239
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
5240
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
5241
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, {
|
|
4852
5242
|
enumerable: true,
|
|
4853
5243
|
configurable: true,
|
|
4854
5244
|
writable: true,
|
|
4855
5245
|
value
|
|
4856
5246
|
}) : obj[key] = value;
|
|
4857
|
-
var __spreadValues$
|
|
4858
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
4859
|
-
if (__getOwnPropSymbols$
|
|
4860
|
-
if (__propIsEnum$
|
|
5247
|
+
var __spreadValues$f = (a, b) => {
|
|
5248
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$f.call(b, prop)) __defNormalProp$f(a, prop, b[prop]);
|
|
5249
|
+
if (__getOwnPropSymbols$f) for (var prop of __getOwnPropSymbols$f(b)) {
|
|
5250
|
+
if (__propIsEnum$f.call(b, prop)) __defNormalProp$f(a, prop, b[prop]);
|
|
4861
5251
|
}
|
|
4862
5252
|
return a;
|
|
4863
5253
|
};
|
|
@@ -4892,7 +5282,7 @@ const OverflowTooltip = props => {
|
|
|
4892
5282
|
observer == null ? void 0 : observer.disconnect();
|
|
4893
5283
|
};
|
|
4894
5284
|
});
|
|
4895
|
-
return /* @__PURE__ */React__default.createElement(Tooltip, __spreadProps$c(__spreadValues$
|
|
5285
|
+
return /* @__PURE__ */React__default.createElement(Tooltip, __spreadProps$c(__spreadValues$f({}, !ellipsis && {
|
|
4896
5286
|
visible: false
|
|
4897
5287
|
}), {
|
|
4898
5288
|
title: tooltip
|
|
@@ -5010,77 +5400,46 @@ const Pagination = props => {
|
|
|
5010
5400
|
}))));
|
|
5011
5401
|
};
|
|
5012
5402
|
|
|
5013
|
-
var __defProp$
|
|
5014
|
-
var __getOwnPropSymbols$
|
|
5015
|
-
var __hasOwnProp$
|
|
5016
|
-
var __propIsEnum$
|
|
5017
|
-
var __defNormalProp$
|
|
5018
|
-
var __spreadValues$
|
|
5019
|
-
for (var prop in b || (b = {}))
|
|
5020
|
-
if (__hasOwnProp$h.call(b, prop))
|
|
5021
|
-
__defNormalProp$h(a, prop, b[prop]);
|
|
5022
|
-
if (__getOwnPropSymbols$h)
|
|
5023
|
-
for (var prop of __getOwnPropSymbols$h(b)) {
|
|
5024
|
-
if (__propIsEnum$h.call(b, prop))
|
|
5025
|
-
__defNormalProp$h(a, prop, b[prop]);
|
|
5026
|
-
}
|
|
5027
|
-
return a;
|
|
5028
|
-
};
|
|
5029
|
-
const Percent = ({
|
|
5030
|
-
rawValue,
|
|
5031
|
-
decimals,
|
|
5032
|
-
saturated,
|
|
5033
|
-
valueClassName,
|
|
5034
|
-
unitClassName,
|
|
5035
|
-
emptyProps
|
|
5036
|
-
}) => {
|
|
5037
|
-
if (isEmpty(rawValue)) {
|
|
5038
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$h({}, emptyProps));
|
|
5039
|
-
}
|
|
5040
|
-
const { value, unit } = formatPercent(rawValue, decimals, saturated);
|
|
5041
|
-
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));
|
|
5042
|
-
};
|
|
5043
|
-
|
|
5044
|
-
var __defProp$g = Object.defineProperty;
|
|
5045
|
-
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
5046
|
-
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
5047
|
-
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
5048
|
-
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5049
|
-
var __spreadValues$g = (a, b) => {
|
|
5403
|
+
var __defProp$e = Object.defineProperty;
|
|
5404
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
5405
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
5406
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
5407
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5408
|
+
var __spreadValues$e = (a, b) => {
|
|
5050
5409
|
for (var prop in b || (b = {}))
|
|
5051
|
-
if (__hasOwnProp$
|
|
5052
|
-
__defNormalProp$
|
|
5053
|
-
if (__getOwnPropSymbols$
|
|
5054
|
-
for (var prop of __getOwnPropSymbols$
|
|
5055
|
-
if (__propIsEnum$
|
|
5056
|
-
__defNormalProp$
|
|
5410
|
+
if (__hasOwnProp$e.call(b, prop))
|
|
5411
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
5412
|
+
if (__getOwnPropSymbols$e)
|
|
5413
|
+
for (var prop of __getOwnPropSymbols$e(b)) {
|
|
5414
|
+
if (__propIsEnum$e.call(b, prop))
|
|
5415
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
5057
5416
|
}
|
|
5058
5417
|
return a;
|
|
5059
5418
|
};
|
|
5060
|
-
const Progress = (props) => /* @__PURE__ */ React__default.createElement(Progress$1, __spreadValues$
|
|
5419
|
+
const Progress = (props) => /* @__PURE__ */ React__default.createElement(Progress$1, __spreadValues$e({}, props));
|
|
5061
5420
|
|
|
5062
|
-
var __defProp$
|
|
5063
|
-
var __getOwnPropSymbols$
|
|
5064
|
-
var __hasOwnProp$
|
|
5065
|
-
var __propIsEnum$
|
|
5066
|
-
var __defNormalProp$
|
|
5421
|
+
var __defProp$d = Object.defineProperty;
|
|
5422
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
5423
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
5424
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
5425
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, {
|
|
5067
5426
|
enumerable: true,
|
|
5068
5427
|
configurable: true,
|
|
5069
5428
|
writable: true,
|
|
5070
5429
|
value
|
|
5071
5430
|
}) : obj[key] = value;
|
|
5072
|
-
var __spreadValues$
|
|
5073
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
5074
|
-
if (__getOwnPropSymbols$
|
|
5075
|
-
if (__propIsEnum$
|
|
5431
|
+
var __spreadValues$d = (a, b) => {
|
|
5432
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$d.call(b, prop)) __defNormalProp$d(a, prop, b[prop]);
|
|
5433
|
+
if (__getOwnPropSymbols$d) for (var prop of __getOwnPropSymbols$d(b)) {
|
|
5434
|
+
if (__propIsEnum$d.call(b, prop)) __defNormalProp$d(a, prop, b[prop]);
|
|
5076
5435
|
}
|
|
5077
5436
|
return a;
|
|
5078
5437
|
};
|
|
5079
5438
|
var __objRest$4 = (source, exclude) => {
|
|
5080
5439
|
var target = {};
|
|
5081
|
-
for (var prop in source) if (__hasOwnProp$
|
|
5082
|
-
if (source != null && __getOwnPropSymbols$
|
|
5083
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
5440
|
+
for (var prop in source) if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
5441
|
+
if (source != null && __getOwnPropSymbols$d) for (var prop of __getOwnPropSymbols$d(source)) {
|
|
5442
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop)) target[prop] = source[prop];
|
|
5084
5443
|
}
|
|
5085
5444
|
return target;
|
|
5086
5445
|
};
|
|
@@ -5106,7 +5465,7 @@ const Radio = _a => {
|
|
|
5106
5465
|
className: cx("radio-description", Typo.Label.l4_regular)
|
|
5107
5466
|
}, description));
|
|
5108
5467
|
}
|
|
5109
|
-
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Radio$1, __spreadValues$
|
|
5468
|
+
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Radio$1, __spreadValues$d({
|
|
5110
5469
|
className: cx(className, RadioStyle, compact && "compact"),
|
|
5111
5470
|
checked: checked || false,
|
|
5112
5471
|
"data-test": context.name ? `${context.name}-${String(props.value)}` : String(props.value)
|
|
@@ -5124,7 +5483,7 @@ const RadioGroup = _c => {
|
|
|
5124
5483
|
disabled: props.disabled,
|
|
5125
5484
|
name: props.name
|
|
5126
5485
|
}
|
|
5127
|
-
}, /* @__PURE__ */React__default.createElement(Radio$1.Group, __spreadValues$
|
|
5486
|
+
}, /* @__PURE__ */React__default.createElement(Radio$1.Group, __spreadValues$d({
|
|
5128
5487
|
className: cx(className, RadioGroupStyle)
|
|
5129
5488
|
}, props), children ? children : null));
|
|
5130
5489
|
};
|
|
@@ -5180,36 +5539,36 @@ const RadioButton = _e => {
|
|
|
5180
5539
|
className: "ant-radio-button-input-label"
|
|
5181
5540
|
}, typeof children === "string" ? children : ""));
|
|
5182
5541
|
};
|
|
5183
|
-
return /* @__PURE__ */React__default.createElement(Radio$1.Button, __spreadValues$
|
|
5542
|
+
return /* @__PURE__ */React__default.createElement(Radio$1.Button, __spreadValues$d({
|
|
5184
5543
|
className: cx(className, RadioButtonStyle),
|
|
5185
5544
|
value: radioButtonValue
|
|
5186
5545
|
}, props), renderChildren());
|
|
5187
5546
|
};
|
|
5188
5547
|
|
|
5189
|
-
var __defProp$
|
|
5190
|
-
var __getOwnPropSymbols$
|
|
5191
|
-
var __hasOwnProp$
|
|
5192
|
-
var __propIsEnum$
|
|
5193
|
-
var __defNormalProp$
|
|
5194
|
-
var __spreadValues$
|
|
5548
|
+
var __defProp$c = Object.defineProperty;
|
|
5549
|
+
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
5550
|
+
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
5551
|
+
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
5552
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5553
|
+
var __spreadValues$c = (a, b) => {
|
|
5195
5554
|
for (var prop in b || (b = {}))
|
|
5196
|
-
if (__hasOwnProp$
|
|
5197
|
-
__defNormalProp$
|
|
5198
|
-
if (__getOwnPropSymbols$
|
|
5199
|
-
for (var prop of __getOwnPropSymbols$
|
|
5200
|
-
if (__propIsEnum$
|
|
5201
|
-
__defNormalProp$
|
|
5555
|
+
if (__hasOwnProp$c.call(b, prop))
|
|
5556
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
5557
|
+
if (__getOwnPropSymbols$c)
|
|
5558
|
+
for (var prop of __getOwnPropSymbols$c(b)) {
|
|
5559
|
+
if (__propIsEnum$c.call(b, prop))
|
|
5560
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
5202
5561
|
}
|
|
5203
5562
|
return a;
|
|
5204
5563
|
};
|
|
5205
5564
|
var __objRest$3 = (source, exclude) => {
|
|
5206
5565
|
var target = {};
|
|
5207
5566
|
for (var prop in source)
|
|
5208
|
-
if (__hasOwnProp$
|
|
5567
|
+
if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
5209
5568
|
target[prop] = source[prop];
|
|
5210
|
-
if (source != null && __getOwnPropSymbols$
|
|
5211
|
-
for (var prop of __getOwnPropSymbols$
|
|
5212
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
5569
|
+
if (source != null && __getOwnPropSymbols$c)
|
|
5570
|
+
for (var prop of __getOwnPropSymbols$c(source)) {
|
|
5571
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
|
|
5213
5572
|
target[prop] = source[prop];
|
|
5214
5573
|
}
|
|
5215
5574
|
return target;
|
|
@@ -5219,7 +5578,7 @@ const SearchInput = (props) => {
|
|
|
5219
5578
|
const onSearch = _.debounce(onChange, debounceWait);
|
|
5220
5579
|
return /* @__PURE__ */ React__default.createElement(
|
|
5221
5580
|
Input,
|
|
5222
|
-
__spreadValues$
|
|
5581
|
+
__spreadValues$c({
|
|
5223
5582
|
style: { width: 276 },
|
|
5224
5583
|
prefix: /* @__PURE__ */ React__default.createElement(SearchOutlined, null),
|
|
5225
5584
|
onChange: (e) => onSearch(e.target.value)
|
|
@@ -5227,38 +5586,6 @@ const SearchInput = (props) => {
|
|
|
5227
5586
|
);
|
|
5228
5587
|
};
|
|
5229
5588
|
|
|
5230
|
-
var __defProp$d = Object.defineProperty;
|
|
5231
|
-
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
5232
|
-
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
5233
|
-
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
5234
|
-
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5235
|
-
var __spreadValues$d = (a, b) => {
|
|
5236
|
-
for (var prop in b || (b = {}))
|
|
5237
|
-
if (__hasOwnProp$d.call(b, prop))
|
|
5238
|
-
__defNormalProp$d(a, prop, b[prop]);
|
|
5239
|
-
if (__getOwnPropSymbols$d)
|
|
5240
|
-
for (var prop of __getOwnPropSymbols$d(b)) {
|
|
5241
|
-
if (__propIsEnum$d.call(b, prop))
|
|
5242
|
-
__defNormalProp$d(a, prop, b[prop]);
|
|
5243
|
-
}
|
|
5244
|
-
return a;
|
|
5245
|
-
};
|
|
5246
|
-
const Second = ({
|
|
5247
|
-
rawValue,
|
|
5248
|
-
decimals,
|
|
5249
|
-
valueClassName,
|
|
5250
|
-
unitClassName,
|
|
5251
|
-
abbreviate,
|
|
5252
|
-
emptyProps
|
|
5253
|
-
}) => {
|
|
5254
|
-
const { t } = useParrotTranslation();
|
|
5255
|
-
if (isEmpty(rawValue)) {
|
|
5256
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$d({}, emptyProps));
|
|
5257
|
-
}
|
|
5258
|
-
const { value, unit } = formatSeconds(rawValue, decimals);
|
|
5259
|
-
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}`)));
|
|
5260
|
-
};
|
|
5261
|
-
|
|
5262
5589
|
const inputStyle = "igz4le8";
|
|
5263
5590
|
const SimplePagination = props => {
|
|
5264
5591
|
const {
|
|
@@ -5335,36 +5662,6 @@ const SimplePagination = props => {
|
|
|
5335
5662
|
})));
|
|
5336
5663
|
};
|
|
5337
5664
|
|
|
5338
|
-
var __defProp$c = Object.defineProperty;
|
|
5339
|
-
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
5340
|
-
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
5341
|
-
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
5342
|
-
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5343
|
-
var __spreadValues$c = (a, b) => {
|
|
5344
|
-
for (var prop in b || (b = {}))
|
|
5345
|
-
if (__hasOwnProp$c.call(b, prop))
|
|
5346
|
-
__defNormalProp$c(a, prop, b[prop]);
|
|
5347
|
-
if (__getOwnPropSymbols$c)
|
|
5348
|
-
for (var prop of __getOwnPropSymbols$c(b)) {
|
|
5349
|
-
if (__propIsEnum$c.call(b, prop))
|
|
5350
|
-
__defNormalProp$c(a, prop, b[prop]);
|
|
5351
|
-
}
|
|
5352
|
-
return a;
|
|
5353
|
-
};
|
|
5354
|
-
const Speed = ({
|
|
5355
|
-
rawValue,
|
|
5356
|
-
decimals,
|
|
5357
|
-
valueClassName,
|
|
5358
|
-
unitClassName,
|
|
5359
|
-
emptyProps
|
|
5360
|
-
}) => {
|
|
5361
|
-
if (isEmpty(rawValue)) {
|
|
5362
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$c({}, emptyProps));
|
|
5363
|
-
}
|
|
5364
|
-
const { value, unit } = formatSpeed(rawValue, decimals);
|
|
5365
|
-
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}`));
|
|
5366
|
-
};
|
|
5367
|
-
|
|
5368
5665
|
var __defProp$b = Object.defineProperty;
|
|
5369
5666
|
var __defProps$b = Object.defineProperties;
|
|
5370
5667
|
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
|
@@ -6070,7 +6367,7 @@ const TableFormBodyCell = (props) => {
|
|
|
6070
6367
|
const triggerValidate = useCallback(
|
|
6071
6368
|
(currentValue) => {
|
|
6072
6369
|
var _a;
|
|
6073
|
-
const value = currentValue
|
|
6370
|
+
const value = currentValue != null ? currentValue : data[rowIndex][column.key];
|
|
6074
6371
|
const rowData = __spreadProps$7(__spreadValues$7({}, data[rowIndex]), { [column.key]: value });
|
|
6075
6372
|
const rowValidateRes = getRowValidateResult(rowData);
|
|
6076
6373
|
if (rowValidateRes) {
|
|
@@ -7021,7 +7318,11 @@ function getAntdKit() {
|
|
|
7021
7318
|
TruncatedTextWithTooltip,
|
|
7022
7319
|
Counting,
|
|
7023
7320
|
Breadcrumb,
|
|
7024
|
-
CircleProgress
|
|
7321
|
+
CircleProgress,
|
|
7322
|
+
ChartWithTooltip,
|
|
7323
|
+
ChartWithUnit,
|
|
7324
|
+
DonutChart,
|
|
7325
|
+
UnitWithChart
|
|
7025
7326
|
};
|
|
7026
7327
|
kit.option.isSelectOption = true;
|
|
7027
7328
|
kit.button.__ANT_BUTTON = true;
|