@cloudtower/eagle 0.27.3 → 0.27.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Styled/Styled.stories.d.ts +11 -0
- package/dist/components/Styled/index.d.ts +14 -0
- package/dist/components/index.d.ts +10 -0
- package/dist/components.css +573 -422
- 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 +1619 -1294
- package/dist/esm/stats1.html +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/spec/base.d.ts +7 -0
- package/dist/style.css +1369 -1218
- package/dist/umd/index.js +1620 -1289
- package/dist/umd/stats1.html +1 -1
- package/dist/utils/tower.d.ts +1 -0
- package/package.json +5 -5
package/dist/umd/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.index = {}, global.
|
|
5
|
-
})(this, (function (exports,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('@linaria/core'), require('@cloudtower/parrot'), require('react-i18next'), require('antd'), require('@cloudtower/icons-react'), require('classnames'), require('linaria/react'), require('lodash'), require('react-svg-unique-id'), require('react-transition-group'), require('@linaria/react'), require('recharts'), require('dayjs'), require('linaria'), require('moment'), require('react-dom'), require('react-is'), require('@ant-design/icons'), require('dayjs/plugin/utc'), require('dayjs/plugin/customParseFormat'), require('@ant-design/icons/CheckCircleFilled'), require('@ant-design/icons/CloseCircleFilled'), require('@ant-design/icons/ExclamationCircleFilled'), require('@ant-design/icons/InfoCircleFilled'), require('@ant-design/icons/LoadingOutlined'), require('@cloudtower/rc-notification'), require('redux'), require('react-redux'), require('react-beautiful-dnd'), require('timezones.json'), require('antd/lib/locale/en_US'), require('antd/lib/locale/zh_CN')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'react', '@linaria/core', '@cloudtower/parrot', 'react-i18next', 'antd', '@cloudtower/icons-react', 'classnames', 'linaria/react', 'lodash', 'react-svg-unique-id', 'react-transition-group', '@linaria/react', 'recharts', 'dayjs', 'linaria', 'moment', 'react-dom', 'react-is', '@ant-design/icons', 'dayjs/plugin/utc', 'dayjs/plugin/customParseFormat', '@ant-design/icons/CheckCircleFilled', '@ant-design/icons/CloseCircleFilled', '@ant-design/icons/ExclamationCircleFilled', '@ant-design/icons/InfoCircleFilled', '@ant-design/icons/LoadingOutlined', '@cloudtower/rc-notification', 'redux', 'react-redux', 'react-beautiful-dnd', 'timezones.json', 'antd/lib/locale/en_US', 'antd/lib/locale/zh_CN'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.index = {}, global.React, global.core, global.parrot, global.reactI18next, global.antd, global.iconsReact, global.cs, global.react, global._, global.reactSvgUniqueId, global.reactTransitionGroup, global.react$1, global.recharts, global.dayjs, global.linaria, global.moment, global.reactDom, global.reactIs, global.icons, global.UTC, global.customParseFormat, global.CheckCircleFilled, global.CloseCircleFilled, global.ExclamationCircleFilled, global.InfoCircleFilled, global.LoadingOutlined, global.RCNotification, global.redux, global.reactRedux, global.reactBeautifulDnd, global.TimeZones, global.enUS, global.zhCN));
|
|
5
|
+
})(this, (function (exports, React, core, parrot, reactI18next, antd, iconsReact, cs, react, _, reactSvgUniqueId, reactTransitionGroup, react$1, recharts, dayjs, linaria, moment, reactDom, reactIs, icons, UTC, customParseFormat, CheckCircleFilled, CloseCircleFilled, ExclamationCircleFilled, InfoCircleFilled, LoadingOutlined, RCNotification, redux, reactRedux, reactBeautifulDnd, TimeZones, enUS, zhCN) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
8
|
|
|
@@ -41,6 +41,220 @@
|
|
|
41
41
|
var enUS__default = /*#__PURE__*/_interopDefault(enUS);
|
|
42
42
|
var zhCN__default = /*#__PURE__*/_interopDefault(zhCN);
|
|
43
43
|
|
|
44
|
+
const MAGIC_METRIC_NULL = -2;
|
|
45
|
+
function formatBits(bits, decimals = 2) {
|
|
46
|
+
if (bits <= 0 || bits === MAGIC_METRIC_NULL) {
|
|
47
|
+
return {
|
|
48
|
+
value: 0,
|
|
49
|
+
unit: "b"
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
const k = 1e3;
|
|
53
|
+
const units = ["b", "Kb", "Mb", "Gb", "Tb", "Pb"];
|
|
54
|
+
let i = Math.floor(Math.log(bits) / Math.log(k));
|
|
55
|
+
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
56
|
+
return {
|
|
57
|
+
value: parseFloat((bits / Math.pow(k, i)).toFixed(decimals)),
|
|
58
|
+
unit: units[i]
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function formatFrequency(frequency, decimals = 2) {
|
|
62
|
+
if (frequency <= 0 || frequency === MAGIC_METRIC_NULL) {
|
|
63
|
+
return {
|
|
64
|
+
value: 0,
|
|
65
|
+
unit: "Hz"
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
const k = 1e3;
|
|
69
|
+
const units = ["Hz", "KHz", "MHz", "GHz", "THz"];
|
|
70
|
+
let i = Math.floor(Math.log(frequency) / Math.log(k));
|
|
71
|
+
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
72
|
+
return {
|
|
73
|
+
value: parseFloat((frequency / Math.pow(k, i)).toFixed(decimals)),
|
|
74
|
+
unit: units[i]
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
const SECOND = 1;
|
|
78
|
+
const MINUTE = 60 * SECOND;
|
|
79
|
+
const HOUR = 60 * MINUTE;
|
|
80
|
+
const DAY = 24 * HOUR;
|
|
81
|
+
const WEEK = 7 * DAY;
|
|
82
|
+
function formatSeconds(seconds, decimals = 0) {
|
|
83
|
+
if (seconds <= MAGIC_METRIC_NULL) {
|
|
84
|
+
seconds = 0;
|
|
85
|
+
}
|
|
86
|
+
const units = [
|
|
87
|
+
{
|
|
88
|
+
value: WEEK,
|
|
89
|
+
unit: "week"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
value: DAY,
|
|
93
|
+
unit: "day"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
value: HOUR,
|
|
97
|
+
unit: "hour"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
value: MINUTE,
|
|
101
|
+
unit: "minute"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
value: SECOND,
|
|
105
|
+
unit: "second"
|
|
106
|
+
}
|
|
107
|
+
];
|
|
108
|
+
for (const unit of units) {
|
|
109
|
+
if (seconds > unit.value) {
|
|
110
|
+
return {
|
|
111
|
+
value: parseFloat((seconds / unit.value).toFixed(decimals)),
|
|
112
|
+
unit: unit.unit
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return {
|
|
117
|
+
value: parseFloat((seconds / SECOND).toFixed(decimals)),
|
|
118
|
+
unit: "second"
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
function formatBitPerSecond(input, decimals = 1) {
|
|
122
|
+
if (input <= 0 || input === MAGIC_METRIC_NULL) {
|
|
123
|
+
return {
|
|
124
|
+
value: 0,
|
|
125
|
+
unit: "bps"
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
const k = 1e3;
|
|
129
|
+
const units = ["bps", "Kbps", "Mbps", "Gbps", "Tbps"];
|
|
130
|
+
let i = Math.floor(Math.log(input) / Math.log(k));
|
|
131
|
+
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
132
|
+
return {
|
|
133
|
+
value: parseFloat((input / Math.pow(k, i)).toFixed(decimals)),
|
|
134
|
+
unit: units[i]
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
function formatBps(input, decimals = 1) {
|
|
138
|
+
if (input <= 0 || input === MAGIC_METRIC_NULL) {
|
|
139
|
+
return {
|
|
140
|
+
value: 0,
|
|
141
|
+
unit: "Bps"
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
const k = 1e3;
|
|
145
|
+
const units = ["Bps", "KBps", "MBps", "GBps", "TBps"];
|
|
146
|
+
let i = Math.floor(Math.log(input) / Math.log(k));
|
|
147
|
+
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
148
|
+
return {
|
|
149
|
+
value: parseFloat((input / Math.pow(k, i)).toFixed(decimals)),
|
|
150
|
+
unit: units[i]
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
function formatBytes(bytes, decimals = 2) {
|
|
154
|
+
if (bytes <= 0 || bytes === MAGIC_METRIC_NULL) {
|
|
155
|
+
return {
|
|
156
|
+
value: 0,
|
|
157
|
+
unit: "B"
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
const k = 1024;
|
|
161
|
+
const units = ["B", "KiB", "MiB", "GiB", "TiB", "PiB"];
|
|
162
|
+
let i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
163
|
+
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
164
|
+
return {
|
|
165
|
+
value: parseFloat((bytes / Math.pow(k, i)).toFixed(decimals)),
|
|
166
|
+
unit: units[i]
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
function formatPercent(input, decimals = 2, saturated = true) {
|
|
170
|
+
if (input === MAGIC_METRIC_NULL) {
|
|
171
|
+
input = 0;
|
|
172
|
+
}
|
|
173
|
+
if (saturated) {
|
|
174
|
+
if (input <= 0) {
|
|
175
|
+
input = 0;
|
|
176
|
+
}
|
|
177
|
+
if (input > 100) {
|
|
178
|
+
input = 100;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
const value = input.toFixed(decimals);
|
|
182
|
+
if (parseFloat(value) === 0 && input > 0) {
|
|
183
|
+
if (decimals >= 1) {
|
|
184
|
+
return {
|
|
185
|
+
value: `0.${"0".repeat(decimals - 1)}1`,
|
|
186
|
+
numberValue: parseFloat(`0.${"0".repeat(decimals - 1)}1`),
|
|
187
|
+
unit: "%"
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
return {
|
|
191
|
+
value: "1",
|
|
192
|
+
numberValue: 1,
|
|
193
|
+
unit: "%"
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
return {
|
|
197
|
+
value,
|
|
198
|
+
numberValue: parseFloat(input.toFixed(decimals)),
|
|
199
|
+
unit: "%"
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
function formatSpeed(input, decimals = 0) {
|
|
203
|
+
input /= 1e3;
|
|
204
|
+
if (input < 1)
|
|
205
|
+
return { value: "-", unit: "" };
|
|
206
|
+
const units = ["KbE", "MbE", "GbE", "TbE"];
|
|
207
|
+
const k = 1e3;
|
|
208
|
+
let i = Math.floor(Math.log(input) / Math.log(k));
|
|
209
|
+
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
210
|
+
return {
|
|
211
|
+
value: parseFloat((input / Math.pow(k, i)).toFixed(decimals)),
|
|
212
|
+
unit: units[i]
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
function isEmpty(rawValue) {
|
|
217
|
+
if (rawValue === null || rawValue === void 0 || rawValue === MAGIC_METRIC_NULL || Number.isNaN(rawValue) || !Number.isFinite(rawValue)) {
|
|
218
|
+
return true;
|
|
219
|
+
}
|
|
220
|
+
return false;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
const Empty = (props) => {
|
|
224
|
+
const { className, style } = props;
|
|
225
|
+
return /* @__PURE__ */ React__namespace.default.createElement("span", { className, style }, "-");
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
var __defProp$10 = Object.defineProperty;
|
|
229
|
+
var __getOwnPropSymbols$11 = Object.getOwnPropertySymbols;
|
|
230
|
+
var __hasOwnProp$11 = Object.prototype.hasOwnProperty;
|
|
231
|
+
var __propIsEnum$11 = Object.prototype.propertyIsEnumerable;
|
|
232
|
+
var __defNormalProp$10 = (obj, key, value) => key in obj ? __defProp$10(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
233
|
+
var __spreadValues$$ = (a, b) => {
|
|
234
|
+
for (var prop in b || (b = {}))
|
|
235
|
+
if (__hasOwnProp$11.call(b, prop))
|
|
236
|
+
__defNormalProp$10(a, prop, b[prop]);
|
|
237
|
+
if (__getOwnPropSymbols$11)
|
|
238
|
+
for (var prop of __getOwnPropSymbols$11(b)) {
|
|
239
|
+
if (__propIsEnum$11.call(b, prop))
|
|
240
|
+
__defNormalProp$10(a, prop, b[prop]);
|
|
241
|
+
}
|
|
242
|
+
return a;
|
|
243
|
+
};
|
|
244
|
+
const Bit = ({
|
|
245
|
+
rawValue,
|
|
246
|
+
decimals,
|
|
247
|
+
unitClassName,
|
|
248
|
+
valueClassName,
|
|
249
|
+
emptyProps
|
|
250
|
+
}) => {
|
|
251
|
+
if (isEmpty(rawValue)) {
|
|
252
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$$({}, emptyProps));
|
|
253
|
+
}
|
|
254
|
+
const { value, unit } = formatBits(rawValue, decimals);
|
|
255
|
+
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
|
|
256
|
+
};
|
|
257
|
+
|
|
44
258
|
var __defProp$$ = Object.defineProperty;
|
|
45
259
|
var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
|
|
46
260
|
var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
|
|
@@ -48,23 +262,250 @@
|
|
|
48
262
|
var __defNormalProp$$ = (obj, key, value) => key in obj ? __defProp$$(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
49
263
|
var __spreadValues$_ = (a, b) => {
|
|
50
264
|
for (var prop in b || (b = {}))
|
|
51
|
-
if (__hasOwnProp$10.call(b, prop))
|
|
52
|
-
__defNormalProp$$(a, prop, b[prop]);
|
|
53
|
-
if (__getOwnPropSymbols$10)
|
|
54
|
-
for (var prop of __getOwnPropSymbols$10(b)) {
|
|
55
|
-
if (__propIsEnum$10.call(b, prop))
|
|
56
|
-
__defNormalProp$$(a, prop, b[prop]);
|
|
265
|
+
if (__hasOwnProp$10.call(b, prop))
|
|
266
|
+
__defNormalProp$$(a, prop, b[prop]);
|
|
267
|
+
if (__getOwnPropSymbols$10)
|
|
268
|
+
for (var prop of __getOwnPropSymbols$10(b)) {
|
|
269
|
+
if (__propIsEnum$10.call(b, prop))
|
|
270
|
+
__defNormalProp$$(a, prop, b[prop]);
|
|
271
|
+
}
|
|
272
|
+
return a;
|
|
273
|
+
};
|
|
274
|
+
const BitPerSeconds = ({
|
|
275
|
+
rawValue,
|
|
276
|
+
decimals,
|
|
277
|
+
valueClassName,
|
|
278
|
+
unitClassName,
|
|
279
|
+
emptyProps
|
|
280
|
+
}) => {
|
|
281
|
+
if (isEmpty(rawValue)) {
|
|
282
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$_({}, emptyProps));
|
|
283
|
+
}
|
|
284
|
+
const { value, unit } = formatBitPerSecond(rawValue, decimals);
|
|
285
|
+
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
var __defProp$_ = Object.defineProperty;
|
|
289
|
+
var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
|
|
290
|
+
var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
|
|
291
|
+
var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
|
|
292
|
+
var __defNormalProp$_ = (obj, key, value) => key in obj ? __defProp$_(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
293
|
+
var __spreadValues$Z = (a, b) => {
|
|
294
|
+
for (var prop in b || (b = {}))
|
|
295
|
+
if (__hasOwnProp$$.call(b, prop))
|
|
296
|
+
__defNormalProp$_(a, prop, b[prop]);
|
|
297
|
+
if (__getOwnPropSymbols$$)
|
|
298
|
+
for (var prop of __getOwnPropSymbols$$(b)) {
|
|
299
|
+
if (__propIsEnum$$.call(b, prop))
|
|
300
|
+
__defNormalProp$_(a, prop, b[prop]);
|
|
301
|
+
}
|
|
302
|
+
return a;
|
|
303
|
+
};
|
|
304
|
+
const Bps = ({
|
|
305
|
+
rawValue,
|
|
306
|
+
decimals,
|
|
307
|
+
valueClassName,
|
|
308
|
+
unitClassName,
|
|
309
|
+
emptyProps
|
|
310
|
+
}) => {
|
|
311
|
+
if (isEmpty(rawValue)) {
|
|
312
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$Z({}, emptyProps));
|
|
313
|
+
}
|
|
314
|
+
const { value, unit } = formatBps(rawValue, decimals);
|
|
315
|
+
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
const useParrotTranslation = () => {
|
|
319
|
+
return reactI18next.useTranslation(void 0, {
|
|
320
|
+
i18n: parrot.parrotI18n
|
|
321
|
+
});
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
var __defProp$Z = Object.defineProperty;
|
|
325
|
+
var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
|
|
326
|
+
var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
|
|
327
|
+
var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
|
|
328
|
+
var __defNormalProp$Z = (obj, key, value) => key in obj ? __defProp$Z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
329
|
+
var __spreadValues$Y = (a, b) => {
|
|
330
|
+
for (var prop in b || (b = {}))
|
|
331
|
+
if (__hasOwnProp$_.call(b, prop))
|
|
332
|
+
__defNormalProp$Z(a, prop, b[prop]);
|
|
333
|
+
if (__getOwnPropSymbols$_)
|
|
334
|
+
for (var prop of __getOwnPropSymbols$_(b)) {
|
|
335
|
+
if (__propIsEnum$_.call(b, prop))
|
|
336
|
+
__defNormalProp$Z(a, prop, b[prop]);
|
|
337
|
+
}
|
|
338
|
+
return a;
|
|
339
|
+
};
|
|
340
|
+
const Byte = ({
|
|
341
|
+
rawValue,
|
|
342
|
+
noUnitOnZero,
|
|
343
|
+
decimals,
|
|
344
|
+
valueClassName,
|
|
345
|
+
unitClassName,
|
|
346
|
+
emptyProps
|
|
347
|
+
}) => {
|
|
348
|
+
const { t } = useParrotTranslation();
|
|
349
|
+
if (isEmpty(rawValue)) {
|
|
350
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$Y({}, emptyProps));
|
|
351
|
+
}
|
|
352
|
+
if (rawValue === -1) {
|
|
353
|
+
return /* @__PURE__ */ React__namespace.default.createElement("span", null, t("common.calculation"));
|
|
354
|
+
}
|
|
355
|
+
const { value, unit } = formatBytes(rawValue, decimals);
|
|
356
|
+
if (noUnitOnZero && value === 0) {
|
|
357
|
+
return /* @__PURE__ */ React__namespace.default.createElement("span", { className: "value" }, value);
|
|
358
|
+
}
|
|
359
|
+
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
var __defProp$Y = Object.defineProperty;
|
|
363
|
+
var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
|
|
364
|
+
var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
|
|
365
|
+
var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
|
|
366
|
+
var __defNormalProp$Y = (obj, key, value) => key in obj ? __defProp$Y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
367
|
+
var __spreadValues$X = (a, b) => {
|
|
368
|
+
for (var prop in b || (b = {}))
|
|
369
|
+
if (__hasOwnProp$Z.call(b, prop))
|
|
370
|
+
__defNormalProp$Y(a, prop, b[prop]);
|
|
371
|
+
if (__getOwnPropSymbols$Z)
|
|
372
|
+
for (var prop of __getOwnPropSymbols$Z(b)) {
|
|
373
|
+
if (__propIsEnum$Z.call(b, prop))
|
|
374
|
+
__defNormalProp$Y(a, prop, b[prop]);
|
|
375
|
+
}
|
|
376
|
+
return a;
|
|
377
|
+
};
|
|
378
|
+
const Frequency = ({
|
|
379
|
+
rawValue,
|
|
380
|
+
decimals,
|
|
381
|
+
valueClassName,
|
|
382
|
+
unitClassName,
|
|
383
|
+
emptyProps
|
|
384
|
+
}) => {
|
|
385
|
+
if (isEmpty(rawValue)) {
|
|
386
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$X({}, emptyProps));
|
|
387
|
+
}
|
|
388
|
+
const { value, unit } = formatFrequency(rawValue, decimals);
|
|
389
|
+
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
|
|
390
|
+
};
|
|
391
|
+
|
|
392
|
+
var __defProp$X = Object.defineProperty;
|
|
393
|
+
var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
|
|
394
|
+
var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
|
|
395
|
+
var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
|
|
396
|
+
var __defNormalProp$X = (obj, key, value) => key in obj ? __defProp$X(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
397
|
+
var __spreadValues$W = (a, b) => {
|
|
398
|
+
for (var prop in b || (b = {}))
|
|
399
|
+
if (__hasOwnProp$Y.call(b, prop))
|
|
400
|
+
__defNormalProp$X(a, prop, b[prop]);
|
|
401
|
+
if (__getOwnPropSymbols$Y)
|
|
402
|
+
for (var prop of __getOwnPropSymbols$Y(b)) {
|
|
403
|
+
if (__propIsEnum$Y.call(b, prop))
|
|
404
|
+
__defNormalProp$X(a, prop, b[prop]);
|
|
405
|
+
}
|
|
406
|
+
return a;
|
|
407
|
+
};
|
|
408
|
+
const Percent = ({
|
|
409
|
+
rawValue,
|
|
410
|
+
decimals,
|
|
411
|
+
saturated,
|
|
412
|
+
valueClassName,
|
|
413
|
+
unitClassName,
|
|
414
|
+
emptyProps
|
|
415
|
+
}) => {
|
|
416
|
+
if (isEmpty(rawValue)) {
|
|
417
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$W({}, emptyProps));
|
|
418
|
+
}
|
|
419
|
+
const { value, unit } = formatPercent(rawValue, decimals, saturated);
|
|
420
|
+
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, unit));
|
|
421
|
+
};
|
|
422
|
+
|
|
423
|
+
var __defProp$W = Object.defineProperty;
|
|
424
|
+
var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
|
|
425
|
+
var __hasOwnProp$X = Object.prototype.hasOwnProperty;
|
|
426
|
+
var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
|
|
427
|
+
var __defNormalProp$W = (obj, key, value) => key in obj ? __defProp$W(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
428
|
+
var __spreadValues$V = (a, b) => {
|
|
429
|
+
for (var prop in b || (b = {}))
|
|
430
|
+
if (__hasOwnProp$X.call(b, prop))
|
|
431
|
+
__defNormalProp$W(a, prop, b[prop]);
|
|
432
|
+
if (__getOwnPropSymbols$X)
|
|
433
|
+
for (var prop of __getOwnPropSymbols$X(b)) {
|
|
434
|
+
if (__propIsEnum$X.call(b, prop))
|
|
435
|
+
__defNormalProp$W(a, prop, b[prop]);
|
|
436
|
+
}
|
|
437
|
+
return a;
|
|
438
|
+
};
|
|
439
|
+
const Second = ({
|
|
440
|
+
rawValue,
|
|
441
|
+
decimals,
|
|
442
|
+
valueClassName,
|
|
443
|
+
unitClassName,
|
|
444
|
+
abbreviate,
|
|
445
|
+
emptyProps
|
|
446
|
+
}) => {
|
|
447
|
+
const { t } = useParrotTranslation();
|
|
448
|
+
if (isEmpty(rawValue)) {
|
|
449
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$V({}, emptyProps));
|
|
450
|
+
}
|
|
451
|
+
const { value, unit } = formatSeconds(rawValue, decimals);
|
|
452
|
+
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value, " "), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, t(`common.${abbreviate ? `${unit}_abbreviation` : unit}`)));
|
|
453
|
+
};
|
|
454
|
+
|
|
455
|
+
var __defProp$V = Object.defineProperty;
|
|
456
|
+
var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
|
|
457
|
+
var __hasOwnProp$W = Object.prototype.hasOwnProperty;
|
|
458
|
+
var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
|
|
459
|
+
var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
460
|
+
var __spreadValues$U = (a, b) => {
|
|
461
|
+
for (var prop in b || (b = {}))
|
|
462
|
+
if (__hasOwnProp$W.call(b, prop))
|
|
463
|
+
__defNormalProp$V(a, prop, b[prop]);
|
|
464
|
+
if (__getOwnPropSymbols$W)
|
|
465
|
+
for (var prop of __getOwnPropSymbols$W(b)) {
|
|
466
|
+
if (__propIsEnum$W.call(b, prop))
|
|
467
|
+
__defNormalProp$V(a, prop, b[prop]);
|
|
468
|
+
}
|
|
469
|
+
return a;
|
|
470
|
+
};
|
|
471
|
+
const Speed = ({
|
|
472
|
+
rawValue,
|
|
473
|
+
decimals,
|
|
474
|
+
valueClassName,
|
|
475
|
+
unitClassName,
|
|
476
|
+
emptyProps
|
|
477
|
+
}) => {
|
|
478
|
+
if (isEmpty(rawValue)) {
|
|
479
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$U({}, emptyProps));
|
|
480
|
+
}
|
|
481
|
+
const { value, unit } = formatSpeed(rawValue, decimals);
|
|
482
|
+
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
|
|
483
|
+
};
|
|
484
|
+
|
|
485
|
+
var __defProp$U = Object.defineProperty;
|
|
486
|
+
var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
|
|
487
|
+
var __hasOwnProp$V = Object.prototype.hasOwnProperty;
|
|
488
|
+
var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
|
|
489
|
+
var __defNormalProp$U = (obj, key, value) => key in obj ? __defProp$U(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
490
|
+
var __spreadValues$T = (a, b) => {
|
|
491
|
+
for (var prop in b || (b = {}))
|
|
492
|
+
if (__hasOwnProp$V.call(b, prop))
|
|
493
|
+
__defNormalProp$U(a, prop, b[prop]);
|
|
494
|
+
if (__getOwnPropSymbols$V)
|
|
495
|
+
for (var prop of __getOwnPropSymbols$V(b)) {
|
|
496
|
+
if (__propIsEnum$V.call(b, prop))
|
|
497
|
+
__defNormalProp$U(a, prop, b[prop]);
|
|
57
498
|
}
|
|
58
499
|
return a;
|
|
59
500
|
};
|
|
60
501
|
var __objRest$C = (source, exclude) => {
|
|
61
502
|
var target = {};
|
|
62
503
|
for (var prop in source)
|
|
63
|
-
if (__hasOwnProp$
|
|
504
|
+
if (__hasOwnProp$V.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
64
505
|
target[prop] = source[prop];
|
|
65
|
-
if (source != null && __getOwnPropSymbols$
|
|
66
|
-
for (var prop of __getOwnPropSymbols$
|
|
67
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
506
|
+
if (source != null && __getOwnPropSymbols$V)
|
|
507
|
+
for (var prop of __getOwnPropSymbols$V(source)) {
|
|
508
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$V.call(source, prop))
|
|
68
509
|
target[prop] = source[prop];
|
|
69
510
|
}
|
|
70
511
|
return target;
|
|
@@ -96,10 +537,10 @@
|
|
|
96
537
|
]);
|
|
97
538
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
98
539
|
"span",
|
|
99
|
-
__spreadValues$
|
|
540
|
+
__spreadValues$T({
|
|
100
541
|
ref,
|
|
101
542
|
className,
|
|
102
|
-
style: ___default.default.pickBy(__spreadValues$
|
|
543
|
+
style: ___default.default.pickBy(__spreadValues$T({ cursor }, style))
|
|
103
544
|
}, HTMLSpanElementProps),
|
|
104
545
|
prefixNode,
|
|
105
546
|
/* @__PURE__ */ React__namespace.default.createElement("span", { className: "icon-inner" }, typeof Src === "string" ? /* @__PURE__ */ React__namespace.default.createElement("img", { alt, src: Src, width, height }) : /* @__PURE__ */ React__namespace.default.createElement(reactSvgUniqueId.SVGUniqueID, null, Src({ width, height }))),
|
|
@@ -109,31 +550,31 @@
|
|
|
109
550
|
}
|
|
110
551
|
);
|
|
111
552
|
|
|
112
|
-
var __defProp$
|
|
553
|
+
var __defProp$T = Object.defineProperty;
|
|
113
554
|
var __defProps$G = Object.defineProperties;
|
|
114
555
|
var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
|
|
115
|
-
var __getOwnPropSymbols
|
|
116
|
-
var __hasOwnProp
|
|
117
|
-
var __propIsEnum
|
|
118
|
-
var __defNormalProp$
|
|
556
|
+
var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
|
|
557
|
+
var __hasOwnProp$U = Object.prototype.hasOwnProperty;
|
|
558
|
+
var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
|
|
559
|
+
var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, {
|
|
119
560
|
enumerable: true,
|
|
120
561
|
configurable: true,
|
|
121
562
|
writable: true,
|
|
122
563
|
value
|
|
123
564
|
}) : obj[key] = value;
|
|
124
|
-
var __spreadValues$
|
|
125
|
-
for (var prop in b || (b = {})) if (__hasOwnProp
|
|
126
|
-
if (__getOwnPropSymbols
|
|
127
|
-
if (__propIsEnum
|
|
565
|
+
var __spreadValues$S = (a, b) => {
|
|
566
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$U.call(b, prop)) __defNormalProp$T(a, prop, b[prop]);
|
|
567
|
+
if (__getOwnPropSymbols$U) for (var prop of __getOwnPropSymbols$U(b)) {
|
|
568
|
+
if (__propIsEnum$U.call(b, prop)) __defNormalProp$T(a, prop, b[prop]);
|
|
128
569
|
}
|
|
129
570
|
return a;
|
|
130
571
|
};
|
|
131
572
|
var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
|
|
132
573
|
var __objRest$B = (source, exclude) => {
|
|
133
574
|
var target = {};
|
|
134
|
-
for (var prop in source) if (__hasOwnProp
|
|
135
|
-
if (source != null && __getOwnPropSymbols
|
|
136
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum
|
|
575
|
+
for (var prop in source) if (__hasOwnProp$U.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
576
|
+
if (source != null && __getOwnPropSymbols$U) for (var prop of __getOwnPropSymbols$U(source)) {
|
|
577
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$U.call(source, prop)) target[prop] = source[prop];
|
|
137
578
|
}
|
|
138
579
|
return target;
|
|
139
580
|
};
|
|
@@ -185,14 +626,14 @@
|
|
|
185
626
|
}
|
|
186
627
|
return src2;
|
|
187
628
|
}, [active, hover, suffix]);
|
|
188
|
-
return /* @__PURE__ */React__namespace.default.createElement(BaseIcon, __spreadProps$G(__spreadValues$
|
|
629
|
+
return /* @__PURE__ */React__namespace.default.createElement(BaseIcon, __spreadProps$G(__spreadValues$S({
|
|
189
630
|
src: _src,
|
|
190
631
|
className: cs__default.default(IconWrapper, "icon-wrapper", className, isRotate && "is-rotate"),
|
|
191
632
|
suffixIconSrc,
|
|
192
633
|
height: iconHeight,
|
|
193
634
|
width: iconWidth,
|
|
194
635
|
prefixNode: prefix,
|
|
195
|
-
style: ___default.default.pickBy(__spreadValues$
|
|
636
|
+
style: ___default.default.pickBy(__spreadValues$S({
|
|
196
637
|
cursor
|
|
197
638
|
}, style))
|
|
198
639
|
}, restProps), {
|
|
@@ -217,30 +658,30 @@
|
|
|
217
658
|
}));
|
|
218
659
|
});
|
|
219
660
|
|
|
220
|
-
var __defProp$
|
|
221
|
-
var __getOwnPropSymbols$
|
|
222
|
-
var __hasOwnProp$
|
|
223
|
-
var __propIsEnum$
|
|
224
|
-
var __defNormalProp$
|
|
225
|
-
var __spreadValues$
|
|
661
|
+
var __defProp$S = Object.defineProperty;
|
|
662
|
+
var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
|
|
663
|
+
var __hasOwnProp$T = Object.prototype.hasOwnProperty;
|
|
664
|
+
var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
|
|
665
|
+
var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
666
|
+
var __spreadValues$R = (a, b) => {
|
|
226
667
|
for (var prop in b || (b = {}))
|
|
227
|
-
if (__hasOwnProp$
|
|
228
|
-
__defNormalProp$
|
|
229
|
-
if (__getOwnPropSymbols$
|
|
230
|
-
for (var prop of __getOwnPropSymbols$
|
|
231
|
-
if (__propIsEnum$
|
|
232
|
-
__defNormalProp$
|
|
668
|
+
if (__hasOwnProp$T.call(b, prop))
|
|
669
|
+
__defNormalProp$S(a, prop, b[prop]);
|
|
670
|
+
if (__getOwnPropSymbols$T)
|
|
671
|
+
for (var prop of __getOwnPropSymbols$T(b)) {
|
|
672
|
+
if (__propIsEnum$T.call(b, prop))
|
|
673
|
+
__defNormalProp$S(a, prop, b[prop]);
|
|
233
674
|
}
|
|
234
675
|
return a;
|
|
235
676
|
};
|
|
236
677
|
var __objRest$A = (source, exclude) => {
|
|
237
678
|
var target = {};
|
|
238
679
|
for (var prop in source)
|
|
239
|
-
if (__hasOwnProp$
|
|
680
|
+
if (__hasOwnProp$T.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
240
681
|
target[prop] = source[prop];
|
|
241
|
-
if (source != null && __getOwnPropSymbols$
|
|
242
|
-
for (var prop of __getOwnPropSymbols$
|
|
243
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
682
|
+
if (source != null && __getOwnPropSymbols$T)
|
|
683
|
+
for (var prop of __getOwnPropSymbols$T(source)) {
|
|
684
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$T.call(source, prop))
|
|
244
685
|
target[prop] = source[prop];
|
|
245
686
|
}
|
|
246
687
|
return target;
|
|
@@ -261,7 +702,7 @@
|
|
|
261
702
|
]);
|
|
262
703
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
263
704
|
reactTransitionGroup.CSSTransition,
|
|
264
|
-
__spreadValues$
|
|
705
|
+
__spreadValues$R({
|
|
265
706
|
in: visible,
|
|
266
707
|
timeout: timeout || 200,
|
|
267
708
|
mountOnEnter,
|
|
@@ -559,6 +1000,428 @@
|
|
|
559
1000
|
})));
|
|
560
1001
|
};
|
|
561
1002
|
|
|
1003
|
+
const WizardBody = /*#__PURE__*/react$1.styled('div')({
|
|
1004
|
+
name: "WizardBody",
|
|
1005
|
+
class: "w1vvwdlp",
|
|
1006
|
+
propsAsIs: false
|
|
1007
|
+
});
|
|
1008
|
+
const FullView = /*#__PURE__*/react$1.styled('div')({
|
|
1009
|
+
name: "FullView",
|
|
1010
|
+
class: "f1rest1f",
|
|
1011
|
+
propsAsIs: false
|
|
1012
|
+
});
|
|
1013
|
+
const TertiaryText = /*#__PURE__*/react$1.styled('div')({
|
|
1014
|
+
name: "TertiaryText",
|
|
1015
|
+
class: "t79k8o2",
|
|
1016
|
+
propsAsIs: false
|
|
1017
|
+
});
|
|
1018
|
+
const InputStyle = "ipd9bk";
|
|
1019
|
+
const KitInputStyle = "kypn5o5";
|
|
1020
|
+
const ContentWrapper = /*#__PURE__*/react$1.styled('div')({
|
|
1021
|
+
name: "ContentWrapper",
|
|
1022
|
+
class: "c1t6wbwv",
|
|
1023
|
+
propsAsIs: false
|
|
1024
|
+
});
|
|
1025
|
+
const Desc = /*#__PURE__*/react$1.styled('div')({
|
|
1026
|
+
name: "Desc",
|
|
1027
|
+
class: "d1k7vv5v",
|
|
1028
|
+
propsAsIs: false
|
|
1029
|
+
});
|
|
1030
|
+
const _exp2$3 = () => Desc;
|
|
1031
|
+
const LightDesc = /*#__PURE__*/react$1.styled(_exp2$3())({
|
|
1032
|
+
name: "LightDesc",
|
|
1033
|
+
class: "le7b9r4",
|
|
1034
|
+
propsAsIs: true
|
|
1035
|
+
});
|
|
1036
|
+
const _exp3$2 = () => LightDesc;
|
|
1037
|
+
const RadioDesc = /*#__PURE__*/react$1.styled(_exp3$2())({
|
|
1038
|
+
name: "RadioDesc",
|
|
1039
|
+
class: "r1dnygxx",
|
|
1040
|
+
propsAsIs: true
|
|
1041
|
+
});
|
|
1042
|
+
const radioStyle = "r12ddqmh";
|
|
1043
|
+
const CannotOperationInfo = "ctcr26a";
|
|
1044
|
+
|
|
1045
|
+
var __defProp$R = Object.defineProperty;
|
|
1046
|
+
var __defProps$F = Object.defineProperties;
|
|
1047
|
+
var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
|
|
1048
|
+
var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
|
|
1049
|
+
var __hasOwnProp$S = Object.prototype.hasOwnProperty;
|
|
1050
|
+
var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
|
|
1051
|
+
var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1052
|
+
var __spreadValues$Q = (a, b) => {
|
|
1053
|
+
for (var prop in b || (b = {}))
|
|
1054
|
+
if (__hasOwnProp$S.call(b, prop))
|
|
1055
|
+
__defNormalProp$R(a, prop, b[prop]);
|
|
1056
|
+
if (__getOwnPropSymbols$S)
|
|
1057
|
+
for (var prop of __getOwnPropSymbols$S(b)) {
|
|
1058
|
+
if (__propIsEnum$S.call(b, prop))
|
|
1059
|
+
__defNormalProp$R(a, prop, b[prop]);
|
|
1060
|
+
}
|
|
1061
|
+
return a;
|
|
1062
|
+
};
|
|
1063
|
+
var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
|
|
1064
|
+
var __objRest$z = (source, exclude) => {
|
|
1065
|
+
var target = {};
|
|
1066
|
+
for (var prop in source)
|
|
1067
|
+
if (__hasOwnProp$S.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1068
|
+
target[prop] = source[prop];
|
|
1069
|
+
if (source != null && __getOwnPropSymbols$S)
|
|
1070
|
+
for (var prop of __getOwnPropSymbols$S(source)) {
|
|
1071
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$S.call(source, prop))
|
|
1072
|
+
target[prop] = source[prop];
|
|
1073
|
+
}
|
|
1074
|
+
return target;
|
|
1075
|
+
};
|
|
1076
|
+
let componentId = 0;
|
|
1077
|
+
const Tooltip = (props) => {
|
|
1078
|
+
const _a = props, {
|
|
1079
|
+
followMouse,
|
|
1080
|
+
overlayClassName,
|
|
1081
|
+
overlayStyle,
|
|
1082
|
+
children
|
|
1083
|
+
} = _a, restProps = __objRest$z(_a, [
|
|
1084
|
+
"followMouse",
|
|
1085
|
+
"overlayClassName",
|
|
1086
|
+
"overlayStyle",
|
|
1087
|
+
"children"
|
|
1088
|
+
]);
|
|
1089
|
+
const id = React.useRef(++componentId);
|
|
1090
|
+
const uniquePopupClass = `kit-popup-${id.current}`;
|
|
1091
|
+
const uniqueContainerClass = `kit-tooltip-${id.current}`;
|
|
1092
|
+
const _children = React.useMemo(() => {
|
|
1093
|
+
if (followMouse) {
|
|
1094
|
+
const child = React__namespace.default.isValidElement(children) ? children : /* @__PURE__ */ React__namespace.default.createElement("span", null, children);
|
|
1095
|
+
return React__namespace.default.cloneElement(child, {
|
|
1096
|
+
className: cs__default.default(child.props.className, uniqueContainerClass)
|
|
1097
|
+
});
|
|
1098
|
+
} else {
|
|
1099
|
+
return children;
|
|
1100
|
+
}
|
|
1101
|
+
}, [children, followMouse, uniqueContainerClass]);
|
|
1102
|
+
const onmousemove = React.useCallback(
|
|
1103
|
+
(event) => {
|
|
1104
|
+
const popup = document.querySelector(`.${uniquePopupClass}`);
|
|
1105
|
+
if (!popup)
|
|
1106
|
+
return;
|
|
1107
|
+
popup.style.left = event.pageX + "px";
|
|
1108
|
+
popup.style.top = event.pageY + "px";
|
|
1109
|
+
},
|
|
1110
|
+
[uniquePopupClass]
|
|
1111
|
+
);
|
|
1112
|
+
React.useEffect(() => {
|
|
1113
|
+
if (followMouse) {
|
|
1114
|
+
const container = document.querySelector(
|
|
1115
|
+
`.${uniqueContainerClass}`
|
|
1116
|
+
);
|
|
1117
|
+
container == null ? void 0 : container.addEventListener("mousemove", onmousemove);
|
|
1118
|
+
return () => {
|
|
1119
|
+
container == null ? void 0 : container.removeEventListener("mousemove", onmousemove);
|
|
1120
|
+
};
|
|
1121
|
+
}
|
|
1122
|
+
}, [followMouse, onmousemove, uniqueContainerClass]);
|
|
1123
|
+
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
1124
|
+
antd.Tooltip,
|
|
1125
|
+
__spreadProps$F(__spreadValues$Q({}, restProps), {
|
|
1126
|
+
overlayClassName: followMouse ? cs__default.default(overlayClassName, uniquePopupClass) : overlayClassName,
|
|
1127
|
+
children: _children,
|
|
1128
|
+
overlayStyle: followMouse ? __spreadValues$Q({
|
|
1129
|
+
transform: "translate(-50%, -100%)",
|
|
1130
|
+
pointerEvents: "none"
|
|
1131
|
+
}, overlayStyle) : overlayStyle
|
|
1132
|
+
})
|
|
1133
|
+
);
|
|
1134
|
+
};
|
|
1135
|
+
|
|
1136
|
+
const StackBar = "skwah65";
|
|
1137
|
+
function getWidth(input) {
|
|
1138
|
+
const {
|
|
1139
|
+
value,
|
|
1140
|
+
unit
|
|
1141
|
+
} = formatPercent(input);
|
|
1142
|
+
return value + unit;
|
|
1143
|
+
}
|
|
1144
|
+
const BarChart = ({
|
|
1145
|
+
data,
|
|
1146
|
+
total
|
|
1147
|
+
}) => /* @__PURE__ */React__namespace.default.createElement("div", {
|
|
1148
|
+
className: StackBar
|
|
1149
|
+
}, (data || []).map(item => {
|
|
1150
|
+
const {
|
|
1151
|
+
value,
|
|
1152
|
+
color
|
|
1153
|
+
} = item;
|
|
1154
|
+
const width = total === 0 ? 0 : getWidth(100 * value / total);
|
|
1155
|
+
return /* @__PURE__ */React__namespace.default.createElement("div", {
|
|
1156
|
+
className: "stack-bar-item",
|
|
1157
|
+
style: {
|
|
1158
|
+
width,
|
|
1159
|
+
background: color,
|
|
1160
|
+
display: width === 0 || width === "0%" ? "none" : "inline-block"
|
|
1161
|
+
}
|
|
1162
|
+
});
|
|
1163
|
+
}));
|
|
1164
|
+
|
|
1165
|
+
const DonutChart = ({
|
|
1166
|
+
data,
|
|
1167
|
+
dataKey,
|
|
1168
|
+
width,
|
|
1169
|
+
height,
|
|
1170
|
+
barSize,
|
|
1171
|
+
innerRadius,
|
|
1172
|
+
outerRadius
|
|
1173
|
+
}) => /* @__PURE__ */ React__namespace.default.createElement(
|
|
1174
|
+
recharts.RadialBarChart,
|
|
1175
|
+
{
|
|
1176
|
+
data,
|
|
1177
|
+
width,
|
|
1178
|
+
height,
|
|
1179
|
+
innerRadius,
|
|
1180
|
+
outerRadius,
|
|
1181
|
+
barSize,
|
|
1182
|
+
startAngle: 90,
|
|
1183
|
+
endAngle: -270
|
|
1184
|
+
},
|
|
1185
|
+
/* @__PURE__ */ React__namespace.default.createElement(recharts.PolarAngleAxis, { type: "number", domain: [0, 1], radiusAxisId: 0 }),
|
|
1186
|
+
/* @__PURE__ */ React__namespace.default.createElement(
|
|
1187
|
+
recharts.RadialBar,
|
|
1188
|
+
{
|
|
1189
|
+
isAnimationActive: false,
|
|
1190
|
+
background: true,
|
|
1191
|
+
dataKey,
|
|
1192
|
+
radiusAxisId: 0
|
|
1193
|
+
}
|
|
1194
|
+
)
|
|
1195
|
+
);
|
|
1196
|
+
|
|
1197
|
+
var __defProp$Q = Object.defineProperty;
|
|
1198
|
+
var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
|
|
1199
|
+
var __hasOwnProp$R = Object.prototype.hasOwnProperty;
|
|
1200
|
+
var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
|
|
1201
|
+
var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, {
|
|
1202
|
+
enumerable: true,
|
|
1203
|
+
configurable: true,
|
|
1204
|
+
writable: true,
|
|
1205
|
+
value
|
|
1206
|
+
}) : obj[key] = value;
|
|
1207
|
+
var __spreadValues$P = (a, b) => {
|
|
1208
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$R.call(b, prop)) __defNormalProp$Q(a, prop, b[prop]);
|
|
1209
|
+
if (__getOwnPropSymbols$R) for (var prop of __getOwnPropSymbols$R(b)) {
|
|
1210
|
+
if (__propIsEnum$R.call(b, prop)) __defNormalProp$Q(a, prop, b[prop]);
|
|
1211
|
+
}
|
|
1212
|
+
return a;
|
|
1213
|
+
};
|
|
1214
|
+
const units$1 = {
|
|
1215
|
+
Percent,
|
|
1216
|
+
Byte,
|
|
1217
|
+
Frequency,
|
|
1218
|
+
Speed,
|
|
1219
|
+
Bps,
|
|
1220
|
+
BitPerSecond: BitPerSeconds,
|
|
1221
|
+
Bit,
|
|
1222
|
+
Second
|
|
1223
|
+
};
|
|
1224
|
+
const Wrapper$2 = /*#__PURE__*/react$1.styled('div')({
|
|
1225
|
+
name: "Wrapper",
|
|
1226
|
+
class: "wg1tsps",
|
|
1227
|
+
propsAsIs: false
|
|
1228
|
+
});
|
|
1229
|
+
const BarChartWrapper = "b1ctd5xy";
|
|
1230
|
+
const UnitWrapper = "u1p8acpn";
|
|
1231
|
+
const Sizes = {
|
|
1232
|
+
small: {
|
|
1233
|
+
width: 22,
|
|
1234
|
+
height: 22,
|
|
1235
|
+
barSize: 4,
|
|
1236
|
+
innerRadius: 8,
|
|
1237
|
+
outerRadius: 16
|
|
1238
|
+
},
|
|
1239
|
+
medium: {
|
|
1240
|
+
width: 50,
|
|
1241
|
+
height: 50,
|
|
1242
|
+
barSize: 8,
|
|
1243
|
+
innerRadius: 18,
|
|
1244
|
+
outerRadius: 34
|
|
1245
|
+
},
|
|
1246
|
+
large: {
|
|
1247
|
+
width: 100,
|
|
1248
|
+
height: 100,
|
|
1249
|
+
barSize: 15,
|
|
1250
|
+
innerRadius: 40,
|
|
1251
|
+
outerRadius: 70
|
|
1252
|
+
}
|
|
1253
|
+
};
|
|
1254
|
+
const UnitWithChart = ({
|
|
1255
|
+
rawValue,
|
|
1256
|
+
total,
|
|
1257
|
+
unit,
|
|
1258
|
+
color = "#0080FF",
|
|
1259
|
+
size = "small",
|
|
1260
|
+
chartType = "donutChart",
|
|
1261
|
+
data,
|
|
1262
|
+
saturated
|
|
1263
|
+
}) => {
|
|
1264
|
+
if (typeof rawValue !== "number" || typeof total !== "number") {
|
|
1265
|
+
return /* @__PURE__ */React__namespace.default.createElement(Empty, null);
|
|
1266
|
+
}
|
|
1267
|
+
const Unit = units$1[unit];
|
|
1268
|
+
return /* @__PURE__ */React__namespace.default.createElement(Wrapper$2, {
|
|
1269
|
+
className: "unit-chart"
|
|
1270
|
+
}, chartType === "barChart" && /* @__PURE__ */React__namespace.default.createElement("span", {
|
|
1271
|
+
className: BarChartWrapper
|
|
1272
|
+
}, /* @__PURE__ */React__namespace.default.createElement("span", {
|
|
1273
|
+
className: "chart"
|
|
1274
|
+
}, /* @__PURE__ */React__namespace.default.createElement(BarChart, {
|
|
1275
|
+
data: data || [],
|
|
1276
|
+
total
|
|
1277
|
+
}))), /* @__PURE__ */React__namespace.default.createElement("span", {
|
|
1278
|
+
className: UnitWrapper
|
|
1279
|
+
}, unit === "Percent" ? /* @__PURE__ */React__namespace.default.createElement(Percent, {
|
|
1280
|
+
rawValue,
|
|
1281
|
+
decimals: 1,
|
|
1282
|
+
saturated
|
|
1283
|
+
}) : /* @__PURE__ */React__namespace.default.createElement(Unit, {
|
|
1284
|
+
rawValue
|
|
1285
|
+
})), chartType === "donutChart" && /* @__PURE__ */React__namespace.default.createElement(DonutChart, __spreadValues$P({
|
|
1286
|
+
data: [{
|
|
1287
|
+
used: rawValue / total,
|
|
1288
|
+
fill: color
|
|
1289
|
+
}],
|
|
1290
|
+
dataKey: "used"
|
|
1291
|
+
}, Sizes[size])));
|
|
1292
|
+
};
|
|
1293
|
+
|
|
1294
|
+
const units = {
|
|
1295
|
+
Percent,
|
|
1296
|
+
Byte,
|
|
1297
|
+
Frequency,
|
|
1298
|
+
Speed,
|
|
1299
|
+
Bps,
|
|
1300
|
+
BitPerSecond: BitPerSeconds,
|
|
1301
|
+
Bit,
|
|
1302
|
+
Second
|
|
1303
|
+
};
|
|
1304
|
+
const ChartContent = /*#__PURE__*/react$1.styled('div')({
|
|
1305
|
+
name: "ChartContent",
|
|
1306
|
+
class: "c18bcrac",
|
|
1307
|
+
propsAsIs: false
|
|
1308
|
+
});
|
|
1309
|
+
const ChartTooltipContainer = /*#__PURE__*/react$1.styled('div')({
|
|
1310
|
+
name: "ChartTooltipContainer",
|
|
1311
|
+
class: "cro7kg2",
|
|
1312
|
+
propsAsIs: false
|
|
1313
|
+
});
|
|
1314
|
+
const ChartTooltipRow = /*#__PURE__*/react$1.styled('div')({
|
|
1315
|
+
name: "ChartTooltipRow",
|
|
1316
|
+
class: "c14wcxf0",
|
|
1317
|
+
propsAsIs: false
|
|
1318
|
+
});
|
|
1319
|
+
const _exp$4 = () => ChartTooltipRow;
|
|
1320
|
+
const ChartTooltipTitle = /*#__PURE__*/react$1.styled(_exp$4())({
|
|
1321
|
+
name: "ChartTooltipTitle",
|
|
1322
|
+
class: "coy29mj",
|
|
1323
|
+
propsAsIs: true
|
|
1324
|
+
});
|
|
1325
|
+
const _exp2$2 = () => props => props.color;
|
|
1326
|
+
const SpaceStatus = /*#__PURE__*/react$1.styled('i')({
|
|
1327
|
+
name: "SpaceStatus",
|
|
1328
|
+
class: "s11212zy",
|
|
1329
|
+
propsAsIs: false,
|
|
1330
|
+
vars: {
|
|
1331
|
+
"s11212zy-0": [_exp2$2()]
|
|
1332
|
+
}
|
|
1333
|
+
});
|
|
1334
|
+
const PrimaryUnit = /*#__PURE__*/react$1.styled('div')({
|
|
1335
|
+
name: "PrimaryUnit",
|
|
1336
|
+
class: "p1lyky6c",
|
|
1337
|
+
propsAsIs: false
|
|
1338
|
+
});
|
|
1339
|
+
const ChartWithUnit = props => {
|
|
1340
|
+
const {
|
|
1341
|
+
items,
|
|
1342
|
+
rawValue,
|
|
1343
|
+
unit,
|
|
1344
|
+
chartType,
|
|
1345
|
+
tableUnit,
|
|
1346
|
+
total
|
|
1347
|
+
} = props;
|
|
1348
|
+
const finalTableUnit = tableUnit != null ? tableUnit : unit;
|
|
1349
|
+
const emptyDisplay = rawValue2 => {
|
|
1350
|
+
if (___default.default.isNil(rawValue2)) {
|
|
1351
|
+
return /* @__PURE__ */React__namespace.default.createElement(TertiaryText, null, "-");
|
|
1352
|
+
}
|
|
1353
|
+
return finalTableUnit === "Percent" ?
|
|
1354
|
+
// process 0.0%
|
|
1355
|
+
/* @__PURE__ */
|
|
1356
|
+
React__namespace.default.createElement("span", {
|
|
1357
|
+
className: UnitWrapper
|
|
1358
|
+
}, /* @__PURE__ */React__namespace.default.createElement(Percent, {
|
|
1359
|
+
rawValue: rawValue2,
|
|
1360
|
+
decimals: 1
|
|
1361
|
+
})) : rawValue2;
|
|
1362
|
+
};
|
|
1363
|
+
return /* @__PURE__ */React__namespace.default.createElement(ChartContent, null, rawValue || rawValue === 0 ? /* @__PURE__ */React__namespace.default.createElement(UnitWithChart, {
|
|
1364
|
+
unit: finalTableUnit,
|
|
1365
|
+
rawValue: chartType === "barChart" ? formatPercent(rawValue / total * 100, 1).numberValue : rawValue,
|
|
1366
|
+
total,
|
|
1367
|
+
chartType,
|
|
1368
|
+
data: items
|
|
1369
|
+
}) : emptyDisplay(rawValue));
|
|
1370
|
+
};
|
|
1371
|
+
const ChartWithTooltip = props => {
|
|
1372
|
+
const {
|
|
1373
|
+
title,
|
|
1374
|
+
items,
|
|
1375
|
+
rawValue,
|
|
1376
|
+
unit,
|
|
1377
|
+
chartType,
|
|
1378
|
+
tableUnit,
|
|
1379
|
+
saturated
|
|
1380
|
+
} = props;
|
|
1381
|
+
const KitUnit = units[unit];
|
|
1382
|
+
const total = title.value || 0;
|
|
1383
|
+
const finalTableUnit = tableUnit != null ? tableUnit : unit;
|
|
1384
|
+
const emptyDisplay = rawValue2 => {
|
|
1385
|
+
if (___default.default.isNil(rawValue2)) {
|
|
1386
|
+
return /* @__PURE__ */React__namespace.default.createElement(TertiaryText, null, "-");
|
|
1387
|
+
}
|
|
1388
|
+
return finalTableUnit === "Percent" ?
|
|
1389
|
+
// process 0.0%
|
|
1390
|
+
/* @__PURE__ */
|
|
1391
|
+
React__namespace.default.createElement(Percent, {
|
|
1392
|
+
rawValue: rawValue2,
|
|
1393
|
+
decimals: 1
|
|
1394
|
+
}) : rawValue2;
|
|
1395
|
+
};
|
|
1396
|
+
return /* @__PURE__ */React__namespace.default.createElement(Tooltip, {
|
|
1397
|
+
title: /* @__PURE__ */React__namespace.default.createElement(ChartTooltipContainer, null, /* @__PURE__ */React__namespace.default.createElement(ChartTooltipTitle, null, /* @__PURE__ */React__namespace.default.createElement("label", null, title.label), /* @__PURE__ */React__namespace.default.createElement(KitUnit, {
|
|
1398
|
+
rawValue: total
|
|
1399
|
+
})), items.map(item => {
|
|
1400
|
+
var _a;
|
|
1401
|
+
return /* @__PURE__ */React__namespace.default.createElement(ChartTooltipRow, {
|
|
1402
|
+
key: item.label
|
|
1403
|
+
}, /* @__PURE__ */React__namespace.default.createElement("label", null, /* @__PURE__ */React__namespace.default.createElement(SpaceStatus, {
|
|
1404
|
+
color: item.color
|
|
1405
|
+
}), /* @__PURE__ */React__namespace.default.createElement("span", null, item.label)), /* @__PURE__ */React__namespace.default.createElement(PrimaryUnit, {
|
|
1406
|
+
className: "value"
|
|
1407
|
+
}, /* @__PURE__ */React__namespace.default.createElement(KitUnit, {
|
|
1408
|
+
rawValue: item.value || 0
|
|
1409
|
+
}), /* @__PURE__ */React__namespace.default.createElement("span", null, "(", total ? (item.value ? formatPercent((item.value || 0) / total * 100, 1, (_a = item.saturated) != null ? _a : true).value : 0) + "%" : "-", ")")));
|
|
1410
|
+
})),
|
|
1411
|
+
overlayStyle: {
|
|
1412
|
+
maxWidth: 500,
|
|
1413
|
+
minWidth: 246
|
|
1414
|
+
}
|
|
1415
|
+
}, /* @__PURE__ */React__namespace.default.createElement(ChartContent, null, total ? rawValue ? /* @__PURE__ */React__namespace.default.createElement(UnitWithChart, {
|
|
1416
|
+
unit: finalTableUnit,
|
|
1417
|
+
rawValue: chartType === "barChart" ? formatPercent(rawValue / total * 100, 1, saturated != null ? saturated : true).numberValue : rawValue,
|
|
1418
|
+
total,
|
|
1419
|
+
chartType,
|
|
1420
|
+
data: items,
|
|
1421
|
+
saturated
|
|
1422
|
+
}) : emptyDisplay(rawValue) : emptyDisplay(null)));
|
|
1423
|
+
};
|
|
1424
|
+
|
|
562
1425
|
const Counting = (props) => {
|
|
563
1426
|
const { stop, interval = 1e3, render } = props;
|
|
564
1427
|
const [, setState] = React.useState(true);
|
|
@@ -583,28 +1446,28 @@
|
|
|
583
1446
|
return icon != null ? React__namespace.default.cloneElement(icon, { className }) : null;
|
|
584
1447
|
};
|
|
585
1448
|
|
|
586
|
-
var __defProp$
|
|
587
|
-
var __getOwnPropSymbols$
|
|
588
|
-
var __hasOwnProp$
|
|
589
|
-
var __propIsEnum$
|
|
590
|
-
var __defNormalProp$
|
|
1449
|
+
var __defProp$P = Object.defineProperty;
|
|
1450
|
+
var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
|
|
1451
|
+
var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
|
|
1452
|
+
var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
|
|
1453
|
+
var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, {
|
|
591
1454
|
enumerable: true,
|
|
592
1455
|
configurable: true,
|
|
593
1456
|
writable: true,
|
|
594
1457
|
value
|
|
595
1458
|
}) : obj[key] = value;
|
|
596
|
-
var __spreadValues$
|
|
597
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
598
|
-
if (__getOwnPropSymbols$
|
|
599
|
-
if (__propIsEnum$
|
|
1459
|
+
var __spreadValues$O = (a, b) => {
|
|
1460
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$Q.call(b, prop)) __defNormalProp$P(a, prop, b[prop]);
|
|
1461
|
+
if (__getOwnPropSymbols$Q) for (var prop of __getOwnPropSymbols$Q(b)) {
|
|
1462
|
+
if (__propIsEnum$Q.call(b, prop)) __defNormalProp$P(a, prop, b[prop]);
|
|
600
1463
|
}
|
|
601
1464
|
return a;
|
|
602
1465
|
};
|
|
603
|
-
var __objRest$
|
|
1466
|
+
var __objRest$y = (source, exclude) => {
|
|
604
1467
|
var target = {};
|
|
605
|
-
for (var prop in source) if (__hasOwnProp$
|
|
606
|
-
if (source != null && __getOwnPropSymbols$
|
|
607
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1468
|
+
for (var prop in source) if (__hasOwnProp$Q.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1469
|
+
if (source != null && __getOwnPropSymbols$Q) for (var prop of __getOwnPropSymbols$Q(source)) {
|
|
1470
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$Q.call(source, prop)) target[prop] = source[prop];
|
|
608
1471
|
}
|
|
609
1472
|
return target;
|
|
610
1473
|
};
|
|
@@ -627,12 +1490,12 @@
|
|
|
627
1490
|
onMouseLeave,
|
|
628
1491
|
size = "middle"
|
|
629
1492
|
} = _a,
|
|
630
|
-
restProps = __objRest$
|
|
1493
|
+
restProps = __objRest$y(_a, ["type", "className", "children", "prefixIcon", "hoverPrefixIcon", "suffixIcon", "hoverSuffixIcon", "onMouseEnter", "onMouseLeave", "size"]);
|
|
631
1494
|
const [status, setStatus] = React.useState("normal");
|
|
632
1495
|
const hasIcon = prefixIcon || suffixIcon;
|
|
633
1496
|
const hasHoverIcon = hoverPrefixIcon || hoverSuffixIcon;
|
|
634
1497
|
const onlyIcon = !children && (prefixIcon || suffixIcon);
|
|
635
|
-
return /* @__PURE__ */React__namespace.default.createElement(antd.Button, __spreadValues$
|
|
1498
|
+
return /* @__PURE__ */React__namespace.default.createElement(antd.Button, __spreadValues$O({
|
|
636
1499
|
ref,
|
|
637
1500
|
className: cs__default.default(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"),
|
|
638
1501
|
type: isAntdButtonTypes(type) ? type : void 0,
|
|
@@ -662,31 +1525,31 @@
|
|
|
662
1525
|
}));
|
|
663
1526
|
});
|
|
664
1527
|
|
|
665
|
-
var __defProp$
|
|
666
|
-
var __defProps$
|
|
667
|
-
var __getOwnPropDescs$
|
|
668
|
-
var __getOwnPropSymbols$
|
|
669
|
-
var __hasOwnProp$
|
|
670
|
-
var __propIsEnum$
|
|
671
|
-
var __defNormalProp$
|
|
1528
|
+
var __defProp$O = Object.defineProperty;
|
|
1529
|
+
var __defProps$E = Object.defineProperties;
|
|
1530
|
+
var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
|
|
1531
|
+
var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
|
|
1532
|
+
var __hasOwnProp$P = Object.prototype.hasOwnProperty;
|
|
1533
|
+
var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
|
|
1534
|
+
var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, {
|
|
672
1535
|
enumerable: true,
|
|
673
1536
|
configurable: true,
|
|
674
1537
|
writable: true,
|
|
675
1538
|
value
|
|
676
1539
|
}) : obj[key] = value;
|
|
677
|
-
var __spreadValues$
|
|
678
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
679
|
-
if (__getOwnPropSymbols$
|
|
680
|
-
if (__propIsEnum$
|
|
1540
|
+
var __spreadValues$N = (a, b) => {
|
|
1541
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$P.call(b, prop)) __defNormalProp$O(a, prop, b[prop]);
|
|
1542
|
+
if (__getOwnPropSymbols$P) for (var prop of __getOwnPropSymbols$P(b)) {
|
|
1543
|
+
if (__propIsEnum$P.call(b, prop)) __defNormalProp$O(a, prop, b[prop]);
|
|
681
1544
|
}
|
|
682
1545
|
return a;
|
|
683
1546
|
};
|
|
684
|
-
var __spreadProps$
|
|
685
|
-
var __objRest$
|
|
1547
|
+
var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
|
|
1548
|
+
var __objRest$x = (source, exclude) => {
|
|
686
1549
|
var target = {};
|
|
687
|
-
for (var prop in source) if (__hasOwnProp$
|
|
688
|
-
if (source != null && __getOwnPropSymbols$
|
|
689
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1550
|
+
for (var prop in source) if (__hasOwnProp$P.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1551
|
+
if (source != null && __getOwnPropSymbols$P) for (var prop of __getOwnPropSymbols$P(source)) {
|
|
1552
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$P.call(source, prop)) target[prop] = source[prop];
|
|
690
1553
|
}
|
|
691
1554
|
return target;
|
|
692
1555
|
};
|
|
@@ -699,8 +1562,8 @@
|
|
|
699
1562
|
description,
|
|
700
1563
|
compact
|
|
701
1564
|
} = _b,
|
|
702
|
-
props = __objRest$
|
|
703
|
-
return /* @__PURE__ */React__namespace.default.createElement(antd.Checkbox, __spreadProps$
|
|
1565
|
+
props = __objRest$x(_b, ["className", "children", "description", "compact"]);
|
|
1566
|
+
return /* @__PURE__ */React__namespace.default.createElement(antd.Checkbox, __spreadProps$E(__spreadValues$N({}, props), {
|
|
704
1567
|
"data-test": props["data-test"] || props.value,
|
|
705
1568
|
className: cs__default.default(className, CheckboxStyle, compact && "compact")
|
|
706
1569
|
}), children ? /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement("div", {
|
|
@@ -710,39 +1573,39 @@
|
|
|
710
1573
|
}, description) : null) : null);
|
|
711
1574
|
};
|
|
712
1575
|
|
|
713
|
-
var __defProp$
|
|
714
|
-
var __getOwnPropSymbols$
|
|
715
|
-
var __hasOwnProp$
|
|
716
|
-
var __propIsEnum$
|
|
717
|
-
var __defNormalProp$
|
|
718
|
-
var __spreadValues$
|
|
1576
|
+
var __defProp$N = Object.defineProperty;
|
|
1577
|
+
var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
|
|
1578
|
+
var __hasOwnProp$O = Object.prototype.hasOwnProperty;
|
|
1579
|
+
var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
|
|
1580
|
+
var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1581
|
+
var __spreadValues$M = (a, b) => {
|
|
719
1582
|
for (var prop in b || (b = {}))
|
|
720
|
-
if (__hasOwnProp$
|
|
721
|
-
__defNormalProp$
|
|
722
|
-
if (__getOwnPropSymbols$
|
|
723
|
-
for (var prop of __getOwnPropSymbols$
|
|
724
|
-
if (__propIsEnum$
|
|
725
|
-
__defNormalProp$
|
|
1583
|
+
if (__hasOwnProp$O.call(b, prop))
|
|
1584
|
+
__defNormalProp$N(a, prop, b[prop]);
|
|
1585
|
+
if (__getOwnPropSymbols$O)
|
|
1586
|
+
for (var prop of __getOwnPropSymbols$O(b)) {
|
|
1587
|
+
if (__propIsEnum$O.call(b, prop))
|
|
1588
|
+
__defNormalProp$N(a, prop, b[prop]);
|
|
726
1589
|
}
|
|
727
1590
|
return a;
|
|
728
1591
|
};
|
|
729
|
-
var __objRest$
|
|
1592
|
+
var __objRest$w = (source, exclude) => {
|
|
730
1593
|
var target = {};
|
|
731
1594
|
for (var prop in source)
|
|
732
|
-
if (__hasOwnProp$
|
|
1595
|
+
if (__hasOwnProp$O.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
733
1596
|
target[prop] = source[prop];
|
|
734
|
-
if (source != null && __getOwnPropSymbols$
|
|
735
|
-
for (var prop of __getOwnPropSymbols$
|
|
736
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1597
|
+
if (source != null && __getOwnPropSymbols$O)
|
|
1598
|
+
for (var prop of __getOwnPropSymbols$O(source)) {
|
|
1599
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$O.call(source, prop))
|
|
737
1600
|
target[prop] = source[prop];
|
|
738
1601
|
}
|
|
739
1602
|
return target;
|
|
740
1603
|
};
|
|
741
1604
|
const FieldsBoolean = (_a) => {
|
|
742
|
-
var _b = _a, { input, children } = _b, props = __objRest$
|
|
1605
|
+
var _b = _a, { input, children } = _b, props = __objRest$w(_b, ["input", "children"]);
|
|
743
1606
|
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(
|
|
744
1607
|
Checkbox,
|
|
745
|
-
__spreadValues$
|
|
1608
|
+
__spreadValues$M({
|
|
746
1609
|
checked: Boolean(input.value),
|
|
747
1610
|
onChange: (e) => input.onChange(e.target.checked)
|
|
748
1611
|
}, props),
|
|
@@ -767,17 +1630,17 @@
|
|
|
767
1630
|
}
|
|
768
1631
|
));
|
|
769
1632
|
|
|
770
|
-
var __getOwnPropSymbols$
|
|
771
|
-
var __hasOwnProp$
|
|
772
|
-
var __propIsEnum$
|
|
773
|
-
var __objRest$
|
|
1633
|
+
var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
|
|
1634
|
+
var __hasOwnProp$N = Object.prototype.hasOwnProperty;
|
|
1635
|
+
var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
|
|
1636
|
+
var __objRest$v = (source, exclude) => {
|
|
774
1637
|
var target = {};
|
|
775
1638
|
for (var prop in source)
|
|
776
|
-
if (__hasOwnProp$
|
|
1639
|
+
if (__hasOwnProp$N.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
777
1640
|
target[prop] = source[prop];
|
|
778
|
-
if (source != null && __getOwnPropSymbols$
|
|
779
|
-
for (var prop of __getOwnPropSymbols$
|
|
780
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1641
|
+
if (source != null && __getOwnPropSymbols$N)
|
|
1642
|
+
for (var prop of __getOwnPropSymbols$N(source)) {
|
|
1643
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$N.call(source, prop))
|
|
781
1644
|
target[prop] = source[prop];
|
|
782
1645
|
}
|
|
783
1646
|
return target;
|
|
@@ -785,7 +1648,7 @@
|
|
|
785
1648
|
const FieldsDateTimeRange = (_a) => {
|
|
786
1649
|
var _b = _a, {
|
|
787
1650
|
input
|
|
788
|
-
} = _b, props = __objRest$
|
|
1651
|
+
} = _b, props = __objRest$v(_b, [
|
|
789
1652
|
"input"
|
|
790
1653
|
]);
|
|
791
1654
|
var _a2, _b2;
|
|
@@ -809,74 +1672,61 @@
|
|
|
809
1672
|
));
|
|
810
1673
|
};
|
|
811
1674
|
|
|
812
|
-
const WizardBody = /*#__PURE__*/react$1.styled('div')({
|
|
813
|
-
name: "WizardBody",
|
|
814
|
-
class: "w1vvwdlp",
|
|
815
|
-
propsAsIs: false
|
|
816
|
-
});
|
|
817
|
-
const FullView = /*#__PURE__*/react$1.styled('div')({
|
|
818
|
-
name: "FullView",
|
|
819
|
-
class: "f1rest1f",
|
|
820
|
-
propsAsIs: false
|
|
821
|
-
});
|
|
822
|
-
const InputStyle = "ipd9bk";
|
|
823
|
-
const KitInputStyle = "kypn5o5";
|
|
824
|
-
|
|
825
1675
|
const LoadingWrapper = "l4bld33";
|
|
826
1676
|
const LoadingLine1 = "lgitjoj";
|
|
827
1677
|
const LoadingLine2 = "l13g0exg";
|
|
828
1678
|
const LoadingLine3 = "l1exo3h6";
|
|
829
1679
|
|
|
830
|
-
var __defProp$
|
|
831
|
-
var __defProps$
|
|
832
|
-
var __getOwnPropDescs$
|
|
833
|
-
var __getOwnPropSymbols$
|
|
834
|
-
var __hasOwnProp$
|
|
835
|
-
var __propIsEnum$
|
|
836
|
-
var __defNormalProp$
|
|
837
|
-
var __spreadValues$
|
|
1680
|
+
var __defProp$M = Object.defineProperty;
|
|
1681
|
+
var __defProps$D = Object.defineProperties;
|
|
1682
|
+
var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
|
|
1683
|
+
var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
|
|
1684
|
+
var __hasOwnProp$M = Object.prototype.hasOwnProperty;
|
|
1685
|
+
var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
|
|
1686
|
+
var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1687
|
+
var __spreadValues$L = (a, b) => {
|
|
838
1688
|
for (var prop in b || (b = {}))
|
|
839
|
-
if (__hasOwnProp$
|
|
840
|
-
__defNormalProp$
|
|
841
|
-
if (__getOwnPropSymbols$
|
|
842
|
-
for (var prop of __getOwnPropSymbols$
|
|
843
|
-
if (__propIsEnum$
|
|
844
|
-
__defNormalProp$
|
|
1689
|
+
if (__hasOwnProp$M.call(b, prop))
|
|
1690
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
1691
|
+
if (__getOwnPropSymbols$M)
|
|
1692
|
+
for (var prop of __getOwnPropSymbols$M(b)) {
|
|
1693
|
+
if (__propIsEnum$M.call(b, prop))
|
|
1694
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
845
1695
|
}
|
|
846
1696
|
return a;
|
|
847
1697
|
};
|
|
848
|
-
var __spreadProps$
|
|
1698
|
+
var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
|
|
849
1699
|
const Loading = ({ fullView = true }) => {
|
|
850
1700
|
const Wrapper = fullView ? FullView : React.Fragment;
|
|
851
1701
|
const props = fullView ? { className: "loading-full-view" } : {};
|
|
852
|
-
return /* @__PURE__ */ React__namespace.default.createElement(Wrapper, __spreadProps$
|
|
1702
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Wrapper, __spreadProps$D(__spreadValues$L({}, props), { "data-testid": "loading" }), /* @__PURE__ */ React__namespace.default.createElement("div", { className: LoadingWrapper }, /* @__PURE__ */ React__namespace.default.createElement("div", { className: LoadingLine1 }), /* @__PURE__ */ React__namespace.default.createElement("div", { className: LoadingLine2 }), /* @__PURE__ */ React__namespace.default.createElement("div", { className: LoadingLine3 })));
|
|
853
1703
|
};
|
|
854
1704
|
|
|
855
|
-
var __defProp$
|
|
856
|
-
var __defProps$
|
|
857
|
-
var __getOwnPropDescs$
|
|
858
|
-
var __getOwnPropSymbols$
|
|
859
|
-
var __hasOwnProp$
|
|
860
|
-
var __propIsEnum$
|
|
861
|
-
var __defNormalProp$
|
|
1705
|
+
var __defProp$L = Object.defineProperty;
|
|
1706
|
+
var __defProps$C = Object.defineProperties;
|
|
1707
|
+
var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
|
|
1708
|
+
var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
|
|
1709
|
+
var __hasOwnProp$L = Object.prototype.hasOwnProperty;
|
|
1710
|
+
var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
|
|
1711
|
+
var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, {
|
|
862
1712
|
enumerable: true,
|
|
863
1713
|
configurable: true,
|
|
864
1714
|
writable: true,
|
|
865
1715
|
value
|
|
866
1716
|
}) : obj[key] = value;
|
|
867
|
-
var __spreadValues$
|
|
868
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
869
|
-
if (__getOwnPropSymbols$
|
|
870
|
-
if (__propIsEnum$
|
|
1717
|
+
var __spreadValues$K = (a, b) => {
|
|
1718
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$L.call(b, prop)) __defNormalProp$L(a, prop, b[prop]);
|
|
1719
|
+
if (__getOwnPropSymbols$L) for (var prop of __getOwnPropSymbols$L(b)) {
|
|
1720
|
+
if (__propIsEnum$L.call(b, prop)) __defNormalProp$L(a, prop, b[prop]);
|
|
871
1721
|
}
|
|
872
1722
|
return a;
|
|
873
1723
|
};
|
|
874
|
-
var __spreadProps$
|
|
875
|
-
var __objRest$
|
|
1724
|
+
var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
|
|
1725
|
+
var __objRest$u = (source, exclude) => {
|
|
876
1726
|
var target = {};
|
|
877
|
-
for (var prop in source) if (__hasOwnProp$
|
|
878
|
-
if (source != null && __getOwnPropSymbols$
|
|
879
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1727
|
+
for (var prop in source) if (__hasOwnProp$L.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1728
|
+
if (source != null && __getOwnPropSymbols$L) for (var prop of __getOwnPropSymbols$L(source)) {
|
|
1729
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$L.call(source, prop)) target[prop] = source[prop];
|
|
880
1730
|
}
|
|
881
1731
|
return target;
|
|
882
1732
|
};
|
|
@@ -904,7 +1754,7 @@
|
|
|
904
1754
|
meta,
|
|
905
1755
|
placeholder
|
|
906
1756
|
} = _b,
|
|
907
|
-
restProps = __objRest$
|
|
1757
|
+
restProps = __objRest$u(_b, ["input", "multiple", "className", "scrollBottomBuffer", "onScrollBottom", "onPopupScroll", "onSearch", "showSearch", "filterOption", "loading", "notFoundContent", "children", "error", "selectLimit", "dropdownClassName", "danger", "size", "meta", "placeholder"]);
|
|
908
1758
|
var _a2;
|
|
909
1759
|
const limitExceeded = multiple && selectLimit && selectLimit <= (((_a2 = input.value) == null ? void 0 : _a2.length) || 0);
|
|
910
1760
|
const typo = {
|
|
@@ -930,7 +1780,7 @@
|
|
|
930
1780
|
inputDom && (placeholder || item) && inputDom.setAttribute("data-test", String(placeholder || item.textContent));
|
|
931
1781
|
}
|
|
932
1782
|
}, [selectRef, placeholder]);
|
|
933
|
-
return /* @__PURE__ */React__namespace.default.createElement(antd.Select, __spreadValues$
|
|
1783
|
+
return /* @__PURE__ */React__namespace.default.createElement(antd.Select, __spreadValues$K(__spreadProps$C(__spreadValues$K({}, input), {
|
|
934
1784
|
ref: selectRef,
|
|
935
1785
|
size,
|
|
936
1786
|
value: multiple ? input.value || [] : input.value || void 0,
|
|
@@ -971,38 +1821,38 @@
|
|
|
971
1821
|
loading,
|
|
972
1822
|
placeholder
|
|
973
1823
|
}), restProps), React__namespace.default.Children.map(children, child => {
|
|
974
|
-
return reactIs.isElement(child) ? __spreadProps$
|
|
975
|
-
props: __spreadProps$
|
|
1824
|
+
return reactIs.isElement(child) ? __spreadProps$C(__spreadValues$K({}, child), {
|
|
1825
|
+
props: __spreadProps$C(__spreadValues$K({}, child.props), {
|
|
976
1826
|
"data-test": child.props.value
|
|
977
1827
|
})
|
|
978
1828
|
}) : child;
|
|
979
1829
|
}));
|
|
980
1830
|
};
|
|
981
1831
|
|
|
982
|
-
var __defProp$
|
|
983
|
-
var __getOwnPropSymbols$
|
|
984
|
-
var __hasOwnProp$
|
|
985
|
-
var __propIsEnum$
|
|
986
|
-
var __defNormalProp$
|
|
987
|
-
var __spreadValues$
|
|
1832
|
+
var __defProp$K = Object.defineProperty;
|
|
1833
|
+
var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
|
|
1834
|
+
var __hasOwnProp$K = Object.prototype.hasOwnProperty;
|
|
1835
|
+
var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
|
|
1836
|
+
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1837
|
+
var __spreadValues$J = (a, b) => {
|
|
988
1838
|
for (var prop in b || (b = {}))
|
|
989
|
-
if (__hasOwnProp$
|
|
990
|
-
__defNormalProp$
|
|
991
|
-
if (__getOwnPropSymbols$
|
|
992
|
-
for (var prop of __getOwnPropSymbols$
|
|
993
|
-
if (__propIsEnum$
|
|
994
|
-
__defNormalProp$
|
|
1839
|
+
if (__hasOwnProp$K.call(b, prop))
|
|
1840
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
1841
|
+
if (__getOwnPropSymbols$K)
|
|
1842
|
+
for (var prop of __getOwnPropSymbols$K(b)) {
|
|
1843
|
+
if (__propIsEnum$K.call(b, prop))
|
|
1844
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
995
1845
|
}
|
|
996
1846
|
return a;
|
|
997
1847
|
};
|
|
998
|
-
var __objRest$
|
|
1848
|
+
var __objRest$t = (source, exclude) => {
|
|
999
1849
|
var target = {};
|
|
1000
1850
|
for (var prop in source)
|
|
1001
|
-
if (__hasOwnProp$
|
|
1851
|
+
if (__hasOwnProp$K.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1002
1852
|
target[prop] = source[prop];
|
|
1003
|
-
if (source != null && __getOwnPropSymbols$
|
|
1004
|
-
for (var prop of __getOwnPropSymbols$
|
|
1005
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1853
|
+
if (source != null && __getOwnPropSymbols$K)
|
|
1854
|
+
for (var prop of __getOwnPropSymbols$K(source)) {
|
|
1855
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$K.call(source, prop))
|
|
1006
1856
|
target[prop] = source[prop];
|
|
1007
1857
|
}
|
|
1008
1858
|
return target;
|
|
@@ -1012,12 +1862,12 @@
|
|
|
1012
1862
|
meta: __,
|
|
1013
1863
|
enumValues,
|
|
1014
1864
|
emptyLabel
|
|
1015
|
-
} = _b, restProps = __objRest$
|
|
1865
|
+
} = _b, restProps = __objRest$t(_b, [
|
|
1016
1866
|
"meta",
|
|
1017
1867
|
"enumValues",
|
|
1018
1868
|
"emptyLabel"
|
|
1019
1869
|
]);
|
|
1020
|
-
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(Select, __spreadValues$
|
|
1870
|
+
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(Select, __spreadValues$J({}, restProps), emptyLabel && /* @__PURE__ */ React__namespace.default.createElement(antd.Select.Option, { value: "" }, emptyLabel), enumValues.map((v) => {
|
|
1021
1871
|
const item = typeof v === "string" ? { value: v, text: v } : v;
|
|
1022
1872
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
1023
1873
|
antd.Select.Option,
|
|
@@ -1031,31 +1881,31 @@
|
|
|
1031
1881
|
})));
|
|
1032
1882
|
};
|
|
1033
1883
|
|
|
1034
|
-
var __defProp$
|
|
1035
|
-
var __defProps$
|
|
1036
|
-
var __getOwnPropDescs$
|
|
1037
|
-
var __getOwnPropSymbols$
|
|
1038
|
-
var __hasOwnProp$
|
|
1039
|
-
var __propIsEnum$
|
|
1040
|
-
var __defNormalProp$
|
|
1884
|
+
var __defProp$J = Object.defineProperty;
|
|
1885
|
+
var __defProps$B = Object.defineProperties;
|
|
1886
|
+
var __getOwnPropDescs$B = Object.getOwnPropertyDescriptors;
|
|
1887
|
+
var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
|
|
1888
|
+
var __hasOwnProp$J = Object.prototype.hasOwnProperty;
|
|
1889
|
+
var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
|
|
1890
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, {
|
|
1041
1891
|
enumerable: true,
|
|
1042
1892
|
configurable: true,
|
|
1043
1893
|
writable: true,
|
|
1044
1894
|
value
|
|
1045
1895
|
}) : obj[key] = value;
|
|
1046
|
-
var __spreadValues$
|
|
1047
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1048
|
-
if (__getOwnPropSymbols$
|
|
1049
|
-
if (__propIsEnum$
|
|
1896
|
+
var __spreadValues$I = (a, b) => {
|
|
1897
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$J.call(b, prop)) __defNormalProp$J(a, prop, b[prop]);
|
|
1898
|
+
if (__getOwnPropSymbols$J) for (var prop of __getOwnPropSymbols$J(b)) {
|
|
1899
|
+
if (__propIsEnum$J.call(b, prop)) __defNormalProp$J(a, prop, b[prop]);
|
|
1050
1900
|
}
|
|
1051
1901
|
return a;
|
|
1052
1902
|
};
|
|
1053
|
-
var __spreadProps$
|
|
1054
|
-
var __objRest$
|
|
1903
|
+
var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
|
|
1904
|
+
var __objRest$s = (source, exclude) => {
|
|
1055
1905
|
var target = {};
|
|
1056
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1057
|
-
if (source != null && __getOwnPropSymbols$
|
|
1058
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1906
|
+
for (var prop in source) if (__hasOwnProp$J.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1907
|
+
if (source != null && __getOwnPropSymbols$J) for (var prop of __getOwnPropSymbols$J(source)) {
|
|
1908
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$J.call(source, prop)) target[prop] = source[prop];
|
|
1059
1909
|
}
|
|
1060
1910
|
return target;
|
|
1061
1911
|
};
|
|
@@ -1091,13 +1941,13 @@
|
|
|
1091
1941
|
prefix,
|
|
1092
1942
|
controls = true
|
|
1093
1943
|
} = _b,
|
|
1094
|
-
props = __objRest$
|
|
1944
|
+
props = __objRest$s(_b, ["className", "error", "size", "suffix", "prefix", "controls"]);
|
|
1095
1945
|
const typo = {
|
|
1096
1946
|
large: Typo.Label.l2_regular,
|
|
1097
1947
|
middle: Typo.Label.l3_regular,
|
|
1098
1948
|
small: Typo.Label.l4_regular
|
|
1099
1949
|
}[size];
|
|
1100
|
-
return /* @__PURE__ */React__namespace.default.createElement(AntdInputNumberStyled, __spreadProps$
|
|
1950
|
+
return /* @__PURE__ */React__namespace.default.createElement(AntdInputNumberStyled, __spreadProps$B(__spreadValues$I({}, props), {
|
|
1101
1951
|
size,
|
|
1102
1952
|
controls,
|
|
1103
1953
|
"data-test": props.name,
|
|
@@ -1107,33 +1957,33 @@
|
|
|
1107
1957
|
}));
|
|
1108
1958
|
};
|
|
1109
1959
|
|
|
1110
|
-
var __defProp$
|
|
1111
|
-
var __defProps$
|
|
1112
|
-
var __getOwnPropDescs$
|
|
1113
|
-
var __getOwnPropSymbols$
|
|
1114
|
-
var __hasOwnProp$
|
|
1115
|
-
var __propIsEnum$
|
|
1116
|
-
var __defNormalProp$
|
|
1117
|
-
var __spreadValues$
|
|
1960
|
+
var __defProp$I = Object.defineProperty;
|
|
1961
|
+
var __defProps$A = Object.defineProperties;
|
|
1962
|
+
var __getOwnPropDescs$A = Object.getOwnPropertyDescriptors;
|
|
1963
|
+
var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
|
|
1964
|
+
var __hasOwnProp$I = Object.prototype.hasOwnProperty;
|
|
1965
|
+
var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
|
|
1966
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1967
|
+
var __spreadValues$H = (a, b) => {
|
|
1118
1968
|
for (var prop in b || (b = {}))
|
|
1119
|
-
if (__hasOwnProp$
|
|
1120
|
-
__defNormalProp$
|
|
1121
|
-
if (__getOwnPropSymbols$
|
|
1122
|
-
for (var prop of __getOwnPropSymbols$
|
|
1123
|
-
if (__propIsEnum$
|
|
1124
|
-
__defNormalProp$
|
|
1969
|
+
if (__hasOwnProp$I.call(b, prop))
|
|
1970
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
1971
|
+
if (__getOwnPropSymbols$I)
|
|
1972
|
+
for (var prop of __getOwnPropSymbols$I(b)) {
|
|
1973
|
+
if (__propIsEnum$I.call(b, prop))
|
|
1974
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
1125
1975
|
}
|
|
1126
1976
|
return a;
|
|
1127
1977
|
};
|
|
1128
|
-
var __spreadProps$
|
|
1129
|
-
var __objRest$
|
|
1978
|
+
var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
|
|
1979
|
+
var __objRest$r = (source, exclude) => {
|
|
1130
1980
|
var target = {};
|
|
1131
1981
|
for (var prop in source)
|
|
1132
|
-
if (__hasOwnProp$
|
|
1982
|
+
if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1133
1983
|
target[prop] = source[prop];
|
|
1134
|
-
if (source != null && __getOwnPropSymbols$
|
|
1135
|
-
for (var prop of __getOwnPropSymbols$
|
|
1136
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1984
|
+
if (source != null && __getOwnPropSymbols$I)
|
|
1985
|
+
for (var prop of __getOwnPropSymbols$I(source)) {
|
|
1986
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$I.call(source, prop))
|
|
1137
1987
|
target[prop] = source[prop];
|
|
1138
1988
|
}
|
|
1139
1989
|
return target;
|
|
@@ -1144,7 +1994,7 @@
|
|
|
1144
1994
|
meta,
|
|
1145
1995
|
onBlur,
|
|
1146
1996
|
autoComplete = "off"
|
|
1147
|
-
} = _b, props = __objRest$
|
|
1997
|
+
} = _b, props = __objRest$r(_b, [
|
|
1148
1998
|
"input",
|
|
1149
1999
|
"meta",
|
|
1150
2000
|
"onBlur",
|
|
@@ -1152,7 +2002,7 @@
|
|
|
1152
2002
|
]);
|
|
1153
2003
|
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(
|
|
1154
2004
|
InputNumber,
|
|
1155
|
-
__spreadValues$
|
|
2005
|
+
__spreadValues$H(__spreadProps$A(__spreadValues$H({}, input), {
|
|
1156
2006
|
onBlur: (e) => onBlur ? onBlur(input, e) : input.onBlur(e),
|
|
1157
2007
|
autoComplete,
|
|
1158
2008
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
@@ -1160,33 +2010,33 @@
|
|
|
1160
2010
|
));
|
|
1161
2011
|
};
|
|
1162
2012
|
|
|
1163
|
-
var __defProp$
|
|
1164
|
-
var __defProps$
|
|
1165
|
-
var __getOwnPropDescs$
|
|
1166
|
-
var __getOwnPropSymbols$
|
|
1167
|
-
var __hasOwnProp$
|
|
1168
|
-
var __propIsEnum$
|
|
1169
|
-
var __defNormalProp$
|
|
1170
|
-
var __spreadValues$
|
|
2013
|
+
var __defProp$H = Object.defineProperty;
|
|
2014
|
+
var __defProps$z = Object.defineProperties;
|
|
2015
|
+
var __getOwnPropDescs$z = Object.getOwnPropertyDescriptors;
|
|
2016
|
+
var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
|
|
2017
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
|
2018
|
+
var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
|
|
2019
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2020
|
+
var __spreadValues$G = (a, b) => {
|
|
1171
2021
|
for (var prop in b || (b = {}))
|
|
1172
|
-
if (__hasOwnProp$
|
|
1173
|
-
__defNormalProp$
|
|
1174
|
-
if (__getOwnPropSymbols$
|
|
1175
|
-
for (var prop of __getOwnPropSymbols$
|
|
1176
|
-
if (__propIsEnum$
|
|
1177
|
-
__defNormalProp$
|
|
2022
|
+
if (__hasOwnProp$H.call(b, prop))
|
|
2023
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
2024
|
+
if (__getOwnPropSymbols$H)
|
|
2025
|
+
for (var prop of __getOwnPropSymbols$H(b)) {
|
|
2026
|
+
if (__propIsEnum$H.call(b, prop))
|
|
2027
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
1178
2028
|
}
|
|
1179
2029
|
return a;
|
|
1180
2030
|
};
|
|
1181
|
-
var __spreadProps$
|
|
1182
|
-
var __objRest$
|
|
2031
|
+
var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
|
|
2032
|
+
var __objRest$q = (source, exclude) => {
|
|
1183
2033
|
var target = {};
|
|
1184
2034
|
for (var prop in source)
|
|
1185
|
-
if (__hasOwnProp$
|
|
2035
|
+
if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1186
2036
|
target[prop] = source[prop];
|
|
1187
|
-
if (source != null && __getOwnPropSymbols$
|
|
1188
|
-
for (var prop of __getOwnPropSymbols$
|
|
1189
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2037
|
+
if (source != null && __getOwnPropSymbols$H)
|
|
2038
|
+
for (var prop of __getOwnPropSymbols$H(source)) {
|
|
2039
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
|
|
1190
2040
|
target[prop] = source[prop];
|
|
1191
2041
|
}
|
|
1192
2042
|
return target;
|
|
@@ -1196,7 +2046,7 @@
|
|
|
1196
2046
|
className,
|
|
1197
2047
|
error,
|
|
1198
2048
|
size = "middle"
|
|
1199
|
-
} = _b, props = __objRest$
|
|
2049
|
+
} = _b, props = __objRest$q(_b, [
|
|
1200
2050
|
"className",
|
|
1201
2051
|
"error",
|
|
1202
2052
|
"size"
|
|
@@ -1208,7 +2058,7 @@
|
|
|
1208
2058
|
}[size];
|
|
1209
2059
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
1210
2060
|
antd.Input,
|
|
1211
|
-
__spreadProps$
|
|
2061
|
+
__spreadProps$z(__spreadValues$G({}, props), {
|
|
1212
2062
|
size,
|
|
1213
2063
|
"data-test": props.name,
|
|
1214
2064
|
className: cs__default.default(className, InputStyle, typo, error ? "error" : "")
|
|
@@ -1216,33 +2066,33 @@
|
|
|
1216
2066
|
);
|
|
1217
2067
|
};
|
|
1218
2068
|
|
|
1219
|
-
var __defProp$
|
|
1220
|
-
var __defProps$
|
|
1221
|
-
var __getOwnPropDescs$
|
|
1222
|
-
var __getOwnPropSymbols$
|
|
1223
|
-
var __hasOwnProp$
|
|
1224
|
-
var __propIsEnum$
|
|
1225
|
-
var __defNormalProp$
|
|
1226
|
-
var __spreadValues$
|
|
2069
|
+
var __defProp$G = Object.defineProperty;
|
|
2070
|
+
var __defProps$y = Object.defineProperties;
|
|
2071
|
+
var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
|
|
2072
|
+
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
|
2073
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
|
2074
|
+
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
|
2075
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2076
|
+
var __spreadValues$F = (a, b) => {
|
|
1227
2077
|
for (var prop in b || (b = {}))
|
|
1228
|
-
if (__hasOwnProp$
|
|
1229
|
-
__defNormalProp$
|
|
1230
|
-
if (__getOwnPropSymbols$
|
|
1231
|
-
for (var prop of __getOwnPropSymbols$
|
|
1232
|
-
if (__propIsEnum$
|
|
1233
|
-
__defNormalProp$
|
|
2078
|
+
if (__hasOwnProp$G.call(b, prop))
|
|
2079
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
2080
|
+
if (__getOwnPropSymbols$G)
|
|
2081
|
+
for (var prop of __getOwnPropSymbols$G(b)) {
|
|
2082
|
+
if (__propIsEnum$G.call(b, prop))
|
|
2083
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
1234
2084
|
}
|
|
1235
2085
|
return a;
|
|
1236
2086
|
};
|
|
1237
|
-
var __spreadProps$
|
|
1238
|
-
var __objRest$
|
|
2087
|
+
var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
|
|
2088
|
+
var __objRest$p = (source, exclude) => {
|
|
1239
2089
|
var target = {};
|
|
1240
2090
|
for (var prop in source)
|
|
1241
|
-
if (__hasOwnProp$
|
|
2091
|
+
if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1242
2092
|
target[prop] = source[prop];
|
|
1243
|
-
if (source != null && __getOwnPropSymbols$
|
|
1244
|
-
for (var prop of __getOwnPropSymbols$
|
|
1245
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2093
|
+
if (source != null && __getOwnPropSymbols$G)
|
|
2094
|
+
for (var prop of __getOwnPropSymbols$G(source)) {
|
|
2095
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop))
|
|
1246
2096
|
target[prop] = source[prop];
|
|
1247
2097
|
}
|
|
1248
2098
|
return target;
|
|
@@ -1254,7 +2104,7 @@
|
|
|
1254
2104
|
onBlur,
|
|
1255
2105
|
autoComplete = "off",
|
|
1256
2106
|
supportNegativeValue = false
|
|
1257
|
-
} = _b, props = __objRest$
|
|
2107
|
+
} = _b, props = __objRest$p(_b, [
|
|
1258
2108
|
"input",
|
|
1259
2109
|
"meta",
|
|
1260
2110
|
"onBlur",
|
|
@@ -1263,7 +2113,7 @@
|
|
|
1263
2113
|
]);
|
|
1264
2114
|
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(
|
|
1265
2115
|
Input,
|
|
1266
|
-
__spreadValues$
|
|
2116
|
+
__spreadValues$F(__spreadProps$y(__spreadValues$F({}, input), {
|
|
1267
2117
|
onChange: (e) => {
|
|
1268
2118
|
const value = e.currentTarget.value;
|
|
1269
2119
|
if (supportNegativeValue) {
|
|
@@ -1298,31 +2148,31 @@
|
|
|
1298
2148
|
}
|
|
1299
2149
|
};
|
|
1300
2150
|
|
|
1301
|
-
var __defProp$
|
|
1302
|
-
var __defProps$
|
|
1303
|
-
var __getOwnPropDescs$
|
|
1304
|
-
var __getOwnPropSymbols$
|
|
1305
|
-
var __hasOwnProp$
|
|
1306
|
-
var __propIsEnum$
|
|
1307
|
-
var __defNormalProp$
|
|
2151
|
+
var __defProp$F = Object.defineProperty;
|
|
2152
|
+
var __defProps$x = Object.defineProperties;
|
|
2153
|
+
var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
|
|
2154
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
|
2155
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
|
2156
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
|
2157
|
+
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, {
|
|
1308
2158
|
enumerable: true,
|
|
1309
2159
|
configurable: true,
|
|
1310
2160
|
writable: true,
|
|
1311
2161
|
value
|
|
1312
2162
|
}) : obj[key] = value;
|
|
1313
|
-
var __spreadValues$
|
|
1314
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1315
|
-
if (__getOwnPropSymbols$
|
|
1316
|
-
if (__propIsEnum$
|
|
2163
|
+
var __spreadValues$E = (a, b) => {
|
|
2164
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$F.call(b, prop)) __defNormalProp$F(a, prop, b[prop]);
|
|
2165
|
+
if (__getOwnPropSymbols$F) for (var prop of __getOwnPropSymbols$F(b)) {
|
|
2166
|
+
if (__propIsEnum$F.call(b, prop)) __defNormalProp$F(a, prop, b[prop]);
|
|
1317
2167
|
}
|
|
1318
2168
|
return a;
|
|
1319
2169
|
};
|
|
1320
|
-
var __spreadProps$
|
|
1321
|
-
var __objRest$
|
|
2170
|
+
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
|
2171
|
+
var __objRest$o = (source, exclude) => {
|
|
1322
2172
|
var target = {};
|
|
1323
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1324
|
-
if (source != null && __getOwnPropSymbols$
|
|
1325
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2173
|
+
for (var prop in source) if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
2174
|
+
if (source != null && __getOwnPropSymbols$F) for (var prop of __getOwnPropSymbols$F(source)) {
|
|
2175
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop)) target[prop] = source[prop];
|
|
1326
2176
|
}
|
|
1327
2177
|
return target;
|
|
1328
2178
|
};
|
|
@@ -1360,13 +2210,13 @@
|
|
|
1360
2210
|
min,
|
|
1361
2211
|
controls = false
|
|
1362
2212
|
} = _b,
|
|
1363
|
-
props = __objRest$
|
|
2213
|
+
props = __objRest$o(_b, ["className", "error", "size", "suffix", "prefix", "max", "min", "controls"]);
|
|
1364
2214
|
const typo = {
|
|
1365
2215
|
large: Typo.Label.l2_regular,
|
|
1366
2216
|
middle: Typo.Label.l3_regular,
|
|
1367
2217
|
small: Typo.Label.l4_regular
|
|
1368
2218
|
}[size];
|
|
1369
|
-
return /* @__PURE__ */React__namespace.default.createElement(AntdIntStyled, __spreadProps$
|
|
2219
|
+
return /* @__PURE__ */React__namespace.default.createElement(AntdIntStyled, __spreadProps$x(__spreadValues$E({}, props), {
|
|
1370
2220
|
size,
|
|
1371
2221
|
formatter: formatterInteger,
|
|
1372
2222
|
parser: formatterInteger,
|
|
@@ -1380,33 +2230,33 @@
|
|
|
1380
2230
|
}));
|
|
1381
2231
|
};
|
|
1382
2232
|
|
|
1383
|
-
var __defProp$
|
|
1384
|
-
var __defProps$
|
|
1385
|
-
var __getOwnPropDescs$
|
|
1386
|
-
var __getOwnPropSymbols$
|
|
1387
|
-
var __hasOwnProp$
|
|
1388
|
-
var __propIsEnum$
|
|
1389
|
-
var __defNormalProp$
|
|
1390
|
-
var __spreadValues$
|
|
2233
|
+
var __defProp$E = Object.defineProperty;
|
|
2234
|
+
var __defProps$w = Object.defineProperties;
|
|
2235
|
+
var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
|
|
2236
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
|
2237
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
|
2238
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
|
2239
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2240
|
+
var __spreadValues$D = (a, b) => {
|
|
1391
2241
|
for (var prop in b || (b = {}))
|
|
1392
|
-
if (__hasOwnProp$
|
|
1393
|
-
__defNormalProp$
|
|
1394
|
-
if (__getOwnPropSymbols$
|
|
1395
|
-
for (var prop of __getOwnPropSymbols$
|
|
1396
|
-
if (__propIsEnum$
|
|
1397
|
-
__defNormalProp$
|
|
2242
|
+
if (__hasOwnProp$E.call(b, prop))
|
|
2243
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
2244
|
+
if (__getOwnPropSymbols$E)
|
|
2245
|
+
for (var prop of __getOwnPropSymbols$E(b)) {
|
|
2246
|
+
if (__propIsEnum$E.call(b, prop))
|
|
2247
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
1398
2248
|
}
|
|
1399
2249
|
return a;
|
|
1400
2250
|
};
|
|
1401
|
-
var __spreadProps$
|
|
1402
|
-
var __objRest$
|
|
2251
|
+
var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
|
|
2252
|
+
var __objRest$n = (source, exclude) => {
|
|
1403
2253
|
var target = {};
|
|
1404
2254
|
for (var prop in source)
|
|
1405
|
-
if (__hasOwnProp$
|
|
2255
|
+
if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1406
2256
|
target[prop] = source[prop];
|
|
1407
|
-
if (source != null && __getOwnPropSymbols$
|
|
1408
|
-
for (var prop of __getOwnPropSymbols$
|
|
1409
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2257
|
+
if (source != null && __getOwnPropSymbols$E)
|
|
2258
|
+
for (var prop of __getOwnPropSymbols$E(source)) {
|
|
2259
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
|
|
1410
2260
|
target[prop] = source[prop];
|
|
1411
2261
|
}
|
|
1412
2262
|
return target;
|
|
@@ -1416,14 +2266,14 @@
|
|
|
1416
2266
|
meta,
|
|
1417
2267
|
input,
|
|
1418
2268
|
onBlur
|
|
1419
|
-
} = _b, props = __objRest$
|
|
2269
|
+
} = _b, props = __objRest$n(_b, [
|
|
1420
2270
|
"meta",
|
|
1421
2271
|
"input",
|
|
1422
2272
|
"onBlur"
|
|
1423
2273
|
]);
|
|
1424
2274
|
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(
|
|
1425
2275
|
InputInteger,
|
|
1426
|
-
__spreadProps$
|
|
2276
|
+
__spreadProps$w(__spreadValues$D(__spreadValues$D({}, props), input), {
|
|
1427
2277
|
onBlur: (e) => onBlur ? onBlur(input, e) : input.onBlur(e),
|
|
1428
2278
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
1429
2279
|
})
|
|
@@ -1501,10 +2351,10 @@
|
|
|
1501
2351
|
const EMPTY_FUNCTION = () => {
|
|
1502
2352
|
};
|
|
1503
2353
|
|
|
1504
|
-
var __defProp$
|
|
1505
|
-
var __defNormalProp$
|
|
2354
|
+
var __defProp$D = Object.defineProperty;
|
|
2355
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1506
2356
|
var __publicField$1 = (obj, key, value) => {
|
|
1507
|
-
__defNormalProp$
|
|
2357
|
+
__defNormalProp$D(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1508
2358
|
return value;
|
|
1509
2359
|
};
|
|
1510
2360
|
dayjs__default.default.extend(UTC__default.default);
|
|
@@ -1958,175 +2808,6 @@
|
|
|
1958
2808
|
};
|
|
1959
2809
|
}
|
|
1960
2810
|
|
|
1961
|
-
const MAGIC_METRIC_NULL = -2;
|
|
1962
|
-
function formatBits(bits, decimals = 2) {
|
|
1963
|
-
if (bits <= 0 || bits === MAGIC_METRIC_NULL) {
|
|
1964
|
-
return {
|
|
1965
|
-
value: 0,
|
|
1966
|
-
unit: "b"
|
|
1967
|
-
};
|
|
1968
|
-
}
|
|
1969
|
-
const k = 1e3;
|
|
1970
|
-
const units = ["b", "Kb", "Mb", "Gb", "Tb", "Pb"];
|
|
1971
|
-
let i = Math.floor(Math.log(bits) / Math.log(k));
|
|
1972
|
-
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
1973
|
-
return {
|
|
1974
|
-
value: parseFloat((bits / Math.pow(k, i)).toFixed(decimals)),
|
|
1975
|
-
unit: units[i]
|
|
1976
|
-
};
|
|
1977
|
-
}
|
|
1978
|
-
function formatFrequency(frequency, decimals = 2) {
|
|
1979
|
-
if (frequency <= 0 || frequency === MAGIC_METRIC_NULL) {
|
|
1980
|
-
return {
|
|
1981
|
-
value: 0,
|
|
1982
|
-
unit: "Hz"
|
|
1983
|
-
};
|
|
1984
|
-
}
|
|
1985
|
-
const k = 1e3;
|
|
1986
|
-
const units = ["Hz", "KHz", "MHz", "GHz", "THz"];
|
|
1987
|
-
let i = Math.floor(Math.log(frequency) / Math.log(k));
|
|
1988
|
-
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
1989
|
-
return {
|
|
1990
|
-
value: parseFloat((frequency / Math.pow(k, i)).toFixed(decimals)),
|
|
1991
|
-
unit: units[i]
|
|
1992
|
-
};
|
|
1993
|
-
}
|
|
1994
|
-
const SECOND = 1;
|
|
1995
|
-
const MINUTE = 60 * SECOND;
|
|
1996
|
-
const HOUR = 60 * MINUTE;
|
|
1997
|
-
const DAY = 24 * HOUR;
|
|
1998
|
-
const WEEK = 7 * DAY;
|
|
1999
|
-
function formatSeconds(seconds, decimals = 0) {
|
|
2000
|
-
if (seconds <= MAGIC_METRIC_NULL) {
|
|
2001
|
-
seconds = 0;
|
|
2002
|
-
}
|
|
2003
|
-
const units = [
|
|
2004
|
-
{
|
|
2005
|
-
value: WEEK,
|
|
2006
|
-
unit: "week"
|
|
2007
|
-
},
|
|
2008
|
-
{
|
|
2009
|
-
value: DAY,
|
|
2010
|
-
unit: "day"
|
|
2011
|
-
},
|
|
2012
|
-
{
|
|
2013
|
-
value: HOUR,
|
|
2014
|
-
unit: "hour"
|
|
2015
|
-
},
|
|
2016
|
-
{
|
|
2017
|
-
value: MINUTE,
|
|
2018
|
-
unit: "minute"
|
|
2019
|
-
},
|
|
2020
|
-
{
|
|
2021
|
-
value: SECOND,
|
|
2022
|
-
unit: "second"
|
|
2023
|
-
}
|
|
2024
|
-
];
|
|
2025
|
-
for (const unit of units) {
|
|
2026
|
-
if (seconds > unit.value) {
|
|
2027
|
-
return {
|
|
2028
|
-
value: parseFloat((seconds / unit.value).toFixed(decimals)),
|
|
2029
|
-
unit: unit.unit
|
|
2030
|
-
};
|
|
2031
|
-
}
|
|
2032
|
-
}
|
|
2033
|
-
return {
|
|
2034
|
-
value: parseFloat((seconds / SECOND).toFixed(decimals)),
|
|
2035
|
-
unit: "second"
|
|
2036
|
-
};
|
|
2037
|
-
}
|
|
2038
|
-
function formatBitPerSecond(input, decimals = 1) {
|
|
2039
|
-
if (input <= 0 || input === MAGIC_METRIC_NULL) {
|
|
2040
|
-
return {
|
|
2041
|
-
value: 0,
|
|
2042
|
-
unit: "bps"
|
|
2043
|
-
};
|
|
2044
|
-
}
|
|
2045
|
-
const k = 1e3;
|
|
2046
|
-
const units = ["bps", "Kbps", "Mbps", "Gbps", "Tbps"];
|
|
2047
|
-
let i = Math.floor(Math.log(input) / Math.log(k));
|
|
2048
|
-
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
2049
|
-
return {
|
|
2050
|
-
value: parseFloat((input / Math.pow(k, i)).toFixed(decimals)),
|
|
2051
|
-
unit: units[i]
|
|
2052
|
-
};
|
|
2053
|
-
}
|
|
2054
|
-
function formatBps(input, decimals = 1) {
|
|
2055
|
-
if (input <= 0 || input === MAGIC_METRIC_NULL) {
|
|
2056
|
-
return {
|
|
2057
|
-
value: 0,
|
|
2058
|
-
unit: "Bps"
|
|
2059
|
-
};
|
|
2060
|
-
}
|
|
2061
|
-
const k = 1e3;
|
|
2062
|
-
const units = ["Bps", "KBps", "MBps", "GBps", "TBps"];
|
|
2063
|
-
let i = Math.floor(Math.log(input) / Math.log(k));
|
|
2064
|
-
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
2065
|
-
return {
|
|
2066
|
-
value: parseFloat((input / Math.pow(k, i)).toFixed(decimals)),
|
|
2067
|
-
unit: units[i]
|
|
2068
|
-
};
|
|
2069
|
-
}
|
|
2070
|
-
function formatBytes(bytes, decimals = 2) {
|
|
2071
|
-
if (bytes <= 0 || bytes === MAGIC_METRIC_NULL) {
|
|
2072
|
-
return {
|
|
2073
|
-
value: 0,
|
|
2074
|
-
unit: "B"
|
|
2075
|
-
};
|
|
2076
|
-
}
|
|
2077
|
-
const k = 1024;
|
|
2078
|
-
const units = ["B", "KiB", "MiB", "GiB", "TiB", "PiB"];
|
|
2079
|
-
let i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
2080
|
-
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
2081
|
-
return {
|
|
2082
|
-
value: parseFloat((bytes / Math.pow(k, i)).toFixed(decimals)),
|
|
2083
|
-
unit: units[i]
|
|
2084
|
-
};
|
|
2085
|
-
}
|
|
2086
|
-
function formatPercent(input, decimals = 2, saturated = true) {
|
|
2087
|
-
if (input === MAGIC_METRIC_NULL) {
|
|
2088
|
-
input = 0;
|
|
2089
|
-
}
|
|
2090
|
-
if (saturated) {
|
|
2091
|
-
if (input <= 0) {
|
|
2092
|
-
input = 0;
|
|
2093
|
-
}
|
|
2094
|
-
if (input > 100) {
|
|
2095
|
-
input = 100;
|
|
2096
|
-
}
|
|
2097
|
-
}
|
|
2098
|
-
const value = input.toFixed(decimals);
|
|
2099
|
-
if (parseFloat(value) === 0 && input > 0) {
|
|
2100
|
-
if (decimals >= 1) {
|
|
2101
|
-
return {
|
|
2102
|
-
value: `0.${"0".repeat(decimals - 1)}1`,
|
|
2103
|
-
unit: "%"
|
|
2104
|
-
};
|
|
2105
|
-
}
|
|
2106
|
-
return {
|
|
2107
|
-
value: "1",
|
|
2108
|
-
unit: "%"
|
|
2109
|
-
};
|
|
2110
|
-
}
|
|
2111
|
-
return {
|
|
2112
|
-
value,
|
|
2113
|
-
unit: "%"
|
|
2114
|
-
};
|
|
2115
|
-
}
|
|
2116
|
-
function formatSpeed(input, decimals = 0) {
|
|
2117
|
-
input /= 1e3;
|
|
2118
|
-
if (input < 1)
|
|
2119
|
-
return { value: "-", unit: "" };
|
|
2120
|
-
const units = ["KbE", "MbE", "GbE", "TbE"];
|
|
2121
|
-
const k = 1e3;
|
|
2122
|
-
let i = Math.floor(Math.log(input) / Math.log(k));
|
|
2123
|
-
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
2124
|
-
return {
|
|
2125
|
-
value: parseFloat((input / Math.pow(k, i)).toFixed(decimals)),
|
|
2126
|
-
unit: units[i]
|
|
2127
|
-
};
|
|
2128
|
-
}
|
|
2129
|
-
|
|
2130
2811
|
function getAlertIcon(type) {
|
|
2131
2812
|
switch (type) {
|
|
2132
2813
|
case "success":
|
|
@@ -2304,33 +2985,33 @@
|
|
|
2304
2985
|
}, children), showOverflow && /* @__PURE__ */React__namespace.default.createElement("span", null, overflow));
|
|
2305
2986
|
};
|
|
2306
2987
|
|
|
2307
|
-
var __defProp$
|
|
2308
|
-
var __defProps$
|
|
2309
|
-
var __getOwnPropDescs$
|
|
2310
|
-
var __getOwnPropSymbols$
|
|
2311
|
-
var __hasOwnProp$
|
|
2312
|
-
var __propIsEnum$
|
|
2313
|
-
var __defNormalProp$
|
|
2314
|
-
var __spreadValues$
|
|
2988
|
+
var __defProp$C = Object.defineProperty;
|
|
2989
|
+
var __defProps$v = Object.defineProperties;
|
|
2990
|
+
var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
|
|
2991
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
|
2992
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
|
2993
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
|
2994
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2995
|
+
var __spreadValues$C = (a, b) => {
|
|
2315
2996
|
for (var prop in b || (b = {}))
|
|
2316
|
-
if (__hasOwnProp$
|
|
2317
|
-
__defNormalProp$
|
|
2318
|
-
if (__getOwnPropSymbols$
|
|
2319
|
-
for (var prop of __getOwnPropSymbols$
|
|
2320
|
-
if (__propIsEnum$
|
|
2321
|
-
__defNormalProp$
|
|
2997
|
+
if (__hasOwnProp$D.call(b, prop))
|
|
2998
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
2999
|
+
if (__getOwnPropSymbols$D)
|
|
3000
|
+
for (var prop of __getOwnPropSymbols$D(b)) {
|
|
3001
|
+
if (__propIsEnum$D.call(b, prop))
|
|
3002
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
2322
3003
|
}
|
|
2323
3004
|
return a;
|
|
2324
3005
|
};
|
|
2325
|
-
var __spreadProps$
|
|
2326
|
-
var __objRest$
|
|
3006
|
+
var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
|
|
3007
|
+
var __objRest$m = (source, exclude) => {
|
|
2327
3008
|
var target = {};
|
|
2328
3009
|
for (var prop in source)
|
|
2329
|
-
if (__hasOwnProp$
|
|
3010
|
+
if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2330
3011
|
target[prop] = source[prop];
|
|
2331
|
-
if (source != null && __getOwnPropSymbols$
|
|
2332
|
-
for (var prop of __getOwnPropSymbols$
|
|
2333
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3012
|
+
if (source != null && __getOwnPropSymbols$D)
|
|
3013
|
+
for (var prop of __getOwnPropSymbols$D(source)) {
|
|
3014
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
|
|
2334
3015
|
target[prop] = source[prop];
|
|
2335
3016
|
}
|
|
2336
3017
|
return target;
|
|
@@ -2349,7 +3030,7 @@
|
|
|
2349
3030
|
onClick,
|
|
2350
3031
|
maxLength,
|
|
2351
3032
|
focusIndicator
|
|
2352
|
-
} = _b, props = __objRest$
|
|
3033
|
+
} = _b, props = __objRest$m(_b, [
|
|
2353
3034
|
"input",
|
|
2354
3035
|
"meta",
|
|
2355
3036
|
"autoComplete",
|
|
@@ -2381,7 +3062,7 @@
|
|
|
2381
3062
|
}
|
|
2382
3063
|
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(
|
|
2383
3064
|
Input,
|
|
2384
|
-
__spreadProps$
|
|
3065
|
+
__spreadProps$v(__spreadValues$C(__spreadProps$v(__spreadValues$C({
|
|
2385
3066
|
className: cs__default.default(
|
|
2386
3067
|
className,
|
|
2387
3068
|
KitInputStyle,
|
|
@@ -2406,33 +3087,33 @@
|
|
|
2406
3087
|
));
|
|
2407
3088
|
};
|
|
2408
3089
|
|
|
2409
|
-
var __defProp$
|
|
2410
|
-
var __defProps$
|
|
2411
|
-
var __getOwnPropDescs$
|
|
2412
|
-
var __getOwnPropSymbols$
|
|
2413
|
-
var __hasOwnProp$
|
|
2414
|
-
var __propIsEnum$
|
|
2415
|
-
var __defNormalProp$
|
|
2416
|
-
var __spreadValues$
|
|
3090
|
+
var __defProp$B = Object.defineProperty;
|
|
3091
|
+
var __defProps$u = Object.defineProperties;
|
|
3092
|
+
var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
|
|
3093
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
|
3094
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
|
3095
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
|
3096
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3097
|
+
var __spreadValues$B = (a, b) => {
|
|
2417
3098
|
for (var prop in b || (b = {}))
|
|
2418
|
-
if (__hasOwnProp$
|
|
2419
|
-
__defNormalProp$
|
|
2420
|
-
if (__getOwnPropSymbols$
|
|
2421
|
-
for (var prop of __getOwnPropSymbols$
|
|
2422
|
-
if (__propIsEnum$
|
|
2423
|
-
__defNormalProp$
|
|
3099
|
+
if (__hasOwnProp$C.call(b, prop))
|
|
3100
|
+
__defNormalProp$B(a, prop, b[prop]);
|
|
3101
|
+
if (__getOwnPropSymbols$C)
|
|
3102
|
+
for (var prop of __getOwnPropSymbols$C(b)) {
|
|
3103
|
+
if (__propIsEnum$C.call(b, prop))
|
|
3104
|
+
__defNormalProp$B(a, prop, b[prop]);
|
|
2424
3105
|
}
|
|
2425
3106
|
return a;
|
|
2426
3107
|
};
|
|
2427
|
-
var __spreadProps$
|
|
2428
|
-
var __objRest$
|
|
3108
|
+
var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
|
|
3109
|
+
var __objRest$l = (source, exclude) => {
|
|
2429
3110
|
var target = {};
|
|
2430
3111
|
for (var prop in source)
|
|
2431
|
-
if (__hasOwnProp$
|
|
3112
|
+
if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2432
3113
|
target[prop] = source[prop];
|
|
2433
|
-
if (source != null && __getOwnPropSymbols$
|
|
2434
|
-
for (var prop of __getOwnPropSymbols$
|
|
2435
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3114
|
+
if (source != null && __getOwnPropSymbols$C)
|
|
3115
|
+
for (var prop of __getOwnPropSymbols$C(source)) {
|
|
3116
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
|
|
2436
3117
|
target[prop] = source[prop];
|
|
2437
3118
|
}
|
|
2438
3119
|
return target;
|
|
@@ -2442,7 +3123,7 @@
|
|
|
2442
3123
|
className,
|
|
2443
3124
|
error,
|
|
2444
3125
|
size = "middle"
|
|
2445
|
-
} = _b, props = __objRest$
|
|
3126
|
+
} = _b, props = __objRest$l(_b, [
|
|
2446
3127
|
"className",
|
|
2447
3128
|
"error",
|
|
2448
3129
|
"size"
|
|
@@ -2454,7 +3135,7 @@
|
|
|
2454
3135
|
}[size];
|
|
2455
3136
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
2456
3137
|
antd.Input.TextArea,
|
|
2457
|
-
__spreadProps$
|
|
3138
|
+
__spreadProps$u(__spreadValues$B({}, props), {
|
|
2458
3139
|
className: cs__default.default(
|
|
2459
3140
|
className,
|
|
2460
3141
|
InputStyle,
|
|
@@ -2468,33 +3149,33 @@
|
|
|
2468
3149
|
);
|
|
2469
3150
|
};
|
|
2470
3151
|
|
|
2471
|
-
var __defProp$
|
|
2472
|
-
var __defProps$
|
|
2473
|
-
var __getOwnPropDescs$
|
|
2474
|
-
var __getOwnPropSymbols$
|
|
2475
|
-
var __hasOwnProp$
|
|
2476
|
-
var __propIsEnum$
|
|
2477
|
-
var __defNormalProp$
|
|
2478
|
-
var __spreadValues$
|
|
3152
|
+
var __defProp$A = Object.defineProperty;
|
|
3153
|
+
var __defProps$t = Object.defineProperties;
|
|
3154
|
+
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
|
3155
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
|
3156
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
|
3157
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
|
3158
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3159
|
+
var __spreadValues$A = (a, b) => {
|
|
2479
3160
|
for (var prop in b || (b = {}))
|
|
2480
|
-
if (__hasOwnProp$
|
|
2481
|
-
__defNormalProp$
|
|
2482
|
-
if (__getOwnPropSymbols$
|
|
2483
|
-
for (var prop of __getOwnPropSymbols$
|
|
2484
|
-
if (__propIsEnum$
|
|
2485
|
-
__defNormalProp$
|
|
3161
|
+
if (__hasOwnProp$B.call(b, prop))
|
|
3162
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
3163
|
+
if (__getOwnPropSymbols$B)
|
|
3164
|
+
for (var prop of __getOwnPropSymbols$B(b)) {
|
|
3165
|
+
if (__propIsEnum$B.call(b, prop))
|
|
3166
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
2486
3167
|
}
|
|
2487
3168
|
return a;
|
|
2488
3169
|
};
|
|
2489
|
-
var __spreadProps$
|
|
2490
|
-
var __objRest$
|
|
3170
|
+
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
|
3171
|
+
var __objRest$k = (source, exclude) => {
|
|
2491
3172
|
var target = {};
|
|
2492
3173
|
for (var prop in source)
|
|
2493
|
-
if (__hasOwnProp$
|
|
3174
|
+
if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2494
3175
|
target[prop] = source[prop];
|
|
2495
|
-
if (source != null && __getOwnPropSymbols$
|
|
2496
|
-
for (var prop of __getOwnPropSymbols$
|
|
2497
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3176
|
+
if (source != null && __getOwnPropSymbols$B)
|
|
3177
|
+
for (var prop of __getOwnPropSymbols$B(source)) {
|
|
3178
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop))
|
|
2498
3179
|
target[prop] = source[prop];
|
|
2499
3180
|
}
|
|
2500
3181
|
return target;
|
|
@@ -2504,14 +3185,14 @@
|
|
|
2504
3185
|
input,
|
|
2505
3186
|
meta,
|
|
2506
3187
|
onFocusChangeHeight
|
|
2507
|
-
} = _b, props = __objRest$
|
|
3188
|
+
} = _b, props = __objRest$k(_b, [
|
|
2508
3189
|
"input",
|
|
2509
3190
|
"meta",
|
|
2510
3191
|
"onFocusChangeHeight"
|
|
2511
3192
|
]);
|
|
2512
3193
|
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(
|
|
2513
3194
|
TextArea,
|
|
2514
|
-
__spreadProps$
|
|
3195
|
+
__spreadProps$t(__spreadValues$A(__spreadValues$A({}, input), props), {
|
|
2515
3196
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError),
|
|
2516
3197
|
onFocus: (e) => {
|
|
2517
3198
|
input.onFocus(e);
|
|
@@ -2525,33 +3206,33 @@
|
|
|
2525
3206
|
));
|
|
2526
3207
|
};
|
|
2527
3208
|
|
|
2528
|
-
var __defProp$
|
|
2529
|
-
var __defProps$
|
|
2530
|
-
var __getOwnPropDescs$
|
|
2531
|
-
var __getOwnPropSymbols$
|
|
2532
|
-
var __hasOwnProp$
|
|
2533
|
-
var __propIsEnum$
|
|
2534
|
-
var __defNormalProp$
|
|
2535
|
-
var __spreadValues$
|
|
3209
|
+
var __defProp$z = Object.defineProperty;
|
|
3210
|
+
var __defProps$s = Object.defineProperties;
|
|
3211
|
+
var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
|
|
3212
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
|
3213
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
|
3214
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
|
3215
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3216
|
+
var __spreadValues$z = (a, b) => {
|
|
2536
3217
|
for (var prop in b || (b = {}))
|
|
2537
|
-
if (__hasOwnProp$
|
|
2538
|
-
__defNormalProp$
|
|
2539
|
-
if (__getOwnPropSymbols$
|
|
2540
|
-
for (var prop of __getOwnPropSymbols$
|
|
2541
|
-
if (__propIsEnum$
|
|
2542
|
-
__defNormalProp$
|
|
3218
|
+
if (__hasOwnProp$A.call(b, prop))
|
|
3219
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
3220
|
+
if (__getOwnPropSymbols$A)
|
|
3221
|
+
for (var prop of __getOwnPropSymbols$A(b)) {
|
|
3222
|
+
if (__propIsEnum$A.call(b, prop))
|
|
3223
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
2543
3224
|
}
|
|
2544
3225
|
return a;
|
|
2545
3226
|
};
|
|
2546
|
-
var __spreadProps$
|
|
2547
|
-
var __objRest$
|
|
3227
|
+
var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
|
|
3228
|
+
var __objRest$j = (source, exclude) => {
|
|
2548
3229
|
var target = {};
|
|
2549
3230
|
for (var prop in source)
|
|
2550
|
-
if (__hasOwnProp$
|
|
3231
|
+
if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2551
3232
|
target[prop] = source[prop];
|
|
2552
|
-
if (source != null && __getOwnPropSymbols$
|
|
2553
|
-
for (var prop of __getOwnPropSymbols$
|
|
2554
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3233
|
+
if (source != null && __getOwnPropSymbols$A)
|
|
3234
|
+
for (var prop of __getOwnPropSymbols$A(source)) {
|
|
3235
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
|
|
2555
3236
|
target[prop] = source[prop];
|
|
2556
3237
|
}
|
|
2557
3238
|
return target;
|
|
@@ -2561,7 +3242,7 @@
|
|
|
2561
3242
|
className,
|
|
2562
3243
|
error,
|
|
2563
3244
|
size = "middle"
|
|
2564
|
-
} = _b, props = __objRest$
|
|
3245
|
+
} = _b, props = __objRest$j(_b, [
|
|
2565
3246
|
"className",
|
|
2566
3247
|
"error",
|
|
2567
3248
|
"size"
|
|
@@ -2573,7 +3254,7 @@
|
|
|
2573
3254
|
}[size];
|
|
2574
3255
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
2575
3256
|
antd.TimePicker,
|
|
2576
|
-
__spreadProps$
|
|
3257
|
+
__spreadProps$s(__spreadValues$z({}, props), {
|
|
2577
3258
|
size,
|
|
2578
3259
|
"data-test": props.name,
|
|
2579
3260
|
className: cs__default.default(className, InputStyle, typo, error ? "error" : "")
|
|
@@ -2581,33 +3262,33 @@
|
|
|
2581
3262
|
);
|
|
2582
3263
|
};
|
|
2583
3264
|
|
|
2584
|
-
var __defProp$
|
|
2585
|
-
var __defProps$
|
|
2586
|
-
var __getOwnPropDescs$
|
|
2587
|
-
var __getOwnPropSymbols$
|
|
2588
|
-
var __hasOwnProp$
|
|
2589
|
-
var __propIsEnum$
|
|
2590
|
-
var __defNormalProp$
|
|
2591
|
-
var __spreadValues$
|
|
3265
|
+
var __defProp$y = Object.defineProperty;
|
|
3266
|
+
var __defProps$r = Object.defineProperties;
|
|
3267
|
+
var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
|
|
3268
|
+
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
|
3269
|
+
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
|
3270
|
+
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
|
3271
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3272
|
+
var __spreadValues$y = (a, b) => {
|
|
2592
3273
|
for (var prop in b || (b = {}))
|
|
2593
|
-
if (__hasOwnProp$
|
|
2594
|
-
__defNormalProp$
|
|
2595
|
-
if (__getOwnPropSymbols$
|
|
2596
|
-
for (var prop of __getOwnPropSymbols$
|
|
2597
|
-
if (__propIsEnum$
|
|
2598
|
-
__defNormalProp$
|
|
3274
|
+
if (__hasOwnProp$z.call(b, prop))
|
|
3275
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
3276
|
+
if (__getOwnPropSymbols$z)
|
|
3277
|
+
for (var prop of __getOwnPropSymbols$z(b)) {
|
|
3278
|
+
if (__propIsEnum$z.call(b, prop))
|
|
3279
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
2599
3280
|
}
|
|
2600
3281
|
return a;
|
|
2601
3282
|
};
|
|
2602
|
-
var __spreadProps$
|
|
2603
|
-
var __objRest$
|
|
3283
|
+
var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
|
|
3284
|
+
var __objRest$i = (source, exclude) => {
|
|
2604
3285
|
var target = {};
|
|
2605
3286
|
for (var prop in source)
|
|
2606
|
-
if (__hasOwnProp$
|
|
3287
|
+
if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2607
3288
|
target[prop] = source[prop];
|
|
2608
|
-
if (source != null && __getOwnPropSymbols$
|
|
2609
|
-
for (var prop of __getOwnPropSymbols$
|
|
2610
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3289
|
+
if (source != null && __getOwnPropSymbols$z)
|
|
3290
|
+
for (var prop of __getOwnPropSymbols$z(source)) {
|
|
3291
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
|
|
2611
3292
|
target[prop] = source[prop];
|
|
2612
3293
|
}
|
|
2613
3294
|
return target;
|
|
@@ -2616,13 +3297,13 @@
|
|
|
2616
3297
|
var _b = _a, {
|
|
2617
3298
|
input,
|
|
2618
3299
|
meta
|
|
2619
|
-
} = _b, props = __objRest$
|
|
3300
|
+
} = _b, props = __objRest$i(_b, [
|
|
2620
3301
|
"input",
|
|
2621
3302
|
"meta"
|
|
2622
3303
|
]);
|
|
2623
3304
|
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement(
|
|
2624
3305
|
TimePicker,
|
|
2625
|
-
__spreadValues$
|
|
3306
|
+
__spreadValues$y(__spreadProps$r(__spreadValues$y({}, input), {
|
|
2626
3307
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
2627
3308
|
}), props)
|
|
2628
3309
|
));
|
|
@@ -2641,31 +3322,31 @@
|
|
|
2641
3322
|
DateTimeRange: FieldsDateTimeRange
|
|
2642
3323
|
};
|
|
2643
3324
|
|
|
2644
|
-
var __defProp$
|
|
2645
|
-
var __defProps$
|
|
2646
|
-
var __getOwnPropDescs$
|
|
2647
|
-
var __getOwnPropSymbols$
|
|
2648
|
-
var __hasOwnProp$
|
|
2649
|
-
var __propIsEnum$
|
|
2650
|
-
var __defNormalProp$
|
|
3325
|
+
var __defProp$x = Object.defineProperty;
|
|
3326
|
+
var __defProps$q = Object.defineProperties;
|
|
3327
|
+
var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
|
|
3328
|
+
var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
|
|
3329
|
+
var __hasOwnProp$y = Object.prototype.hasOwnProperty;
|
|
3330
|
+
var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
|
|
3331
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, {
|
|
2651
3332
|
enumerable: true,
|
|
2652
3333
|
configurable: true,
|
|
2653
3334
|
writable: true,
|
|
2654
3335
|
value
|
|
2655
3336
|
}) : obj[key] = value;
|
|
2656
|
-
var __spreadValues$
|
|
2657
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
2658
|
-
if (__getOwnPropSymbols$
|
|
2659
|
-
if (__propIsEnum$
|
|
3337
|
+
var __spreadValues$x = (a, b) => {
|
|
3338
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$y.call(b, prop)) __defNormalProp$x(a, prop, b[prop]);
|
|
3339
|
+
if (__getOwnPropSymbols$y) for (var prop of __getOwnPropSymbols$y(b)) {
|
|
3340
|
+
if (__propIsEnum$y.call(b, prop)) __defNormalProp$x(a, prop, b[prop]);
|
|
2660
3341
|
}
|
|
2661
3342
|
return a;
|
|
2662
3343
|
};
|
|
2663
|
-
var __spreadProps$
|
|
2664
|
-
var __objRest$
|
|
3344
|
+
var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
|
|
3345
|
+
var __objRest$h = (source, exclude) => {
|
|
2665
3346
|
var target = {};
|
|
2666
|
-
for (var prop in source) if (__hasOwnProp$
|
|
2667
|
-
if (source != null && __getOwnPropSymbols$
|
|
2668
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3347
|
+
for (var prop in source) if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3348
|
+
if (source != null && __getOwnPropSymbols$y) for (var prop of __getOwnPropSymbols$y(source)) {
|
|
3349
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop)) target[prop] = source[prop];
|
|
2669
3350
|
}
|
|
2670
3351
|
return target;
|
|
2671
3352
|
};
|
|
@@ -2677,7 +3358,7 @@
|
|
|
2677
3358
|
className,
|
|
2678
3359
|
checked
|
|
2679
3360
|
} = _b,
|
|
2680
|
-
props = __objRest$
|
|
3361
|
+
props = __objRest$h(_b, ["children", "className", "checked"]);
|
|
2681
3362
|
const Content = /*#__PURE__*/react$1.styled('span')({
|
|
2682
3363
|
name: "Content",
|
|
2683
3364
|
class: "c1to9vb9",
|
|
@@ -2685,7 +3366,7 @@
|
|
|
2685
3366
|
});
|
|
2686
3367
|
const classNames = [className, SwitchStyle, "switch"];
|
|
2687
3368
|
if (props.size === "large") classNames.push("ant-switch-large");
|
|
2688
|
-
return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement(antd.Switch, __spreadProps$
|
|
3369
|
+
return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement(antd.Switch, __spreadProps$q(__spreadValues$x({
|
|
2689
3370
|
className: core.cx(...classNames),
|
|
2690
3371
|
checked: checked || false
|
|
2691
3372
|
}, props), {
|
|
@@ -2693,32 +3374,26 @@
|
|
|
2693
3374
|
})), children ? /* @__PURE__ */React__namespace.default.createElement(Content, null, children) : null);
|
|
2694
3375
|
};
|
|
2695
3376
|
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
var
|
|
2703
|
-
var __defProps$q = Object.defineProperties;
|
|
2704
|
-
var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
|
|
2705
|
-
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
|
2706
|
-
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
|
2707
|
-
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
|
2708
|
-
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, {
|
|
3377
|
+
var __defProp$w = Object.defineProperty;
|
|
3378
|
+
var __defProps$p = Object.defineProperties;
|
|
3379
|
+
var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
|
|
3380
|
+
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
|
3381
|
+
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
|
3382
|
+
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
|
3383
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, {
|
|
2709
3384
|
enumerable: true,
|
|
2710
3385
|
configurable: true,
|
|
2711
3386
|
writable: true,
|
|
2712
3387
|
value
|
|
2713
3388
|
}) : obj[key] = value;
|
|
2714
|
-
var __spreadValues$
|
|
2715
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
2716
|
-
if (__getOwnPropSymbols$
|
|
2717
|
-
if (__propIsEnum$
|
|
3389
|
+
var __spreadValues$w = (a, b) => {
|
|
3390
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$x.call(b, prop)) __defNormalProp$w(a, prop, b[prop]);
|
|
3391
|
+
if (__getOwnPropSymbols$x) for (var prop of __getOwnPropSymbols$x(b)) {
|
|
3392
|
+
if (__propIsEnum$x.call(b, prop)) __defNormalProp$w(a, prop, b[prop]);
|
|
2718
3393
|
}
|
|
2719
3394
|
return a;
|
|
2720
3395
|
};
|
|
2721
|
-
var __spreadProps$
|
|
3396
|
+
var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
|
|
2722
3397
|
const CronPlanWrapper = "c1up1pdz";
|
|
2723
3398
|
const CronPlanHeader = "c156wh19";
|
|
2724
3399
|
const ModeTabs = "m126spxy";
|
|
@@ -2813,7 +3488,7 @@
|
|
|
2813
3488
|
input: {
|
|
2814
3489
|
value: daily.step,
|
|
2815
3490
|
onChange: value => {
|
|
2816
|
-
setDaily(__spreadProps$
|
|
3491
|
+
setDaily(__spreadProps$p(__spreadValues$w({}, daily), {
|
|
2817
3492
|
step: value
|
|
2818
3493
|
}));
|
|
2819
3494
|
},
|
|
@@ -2827,7 +3502,7 @@
|
|
|
2827
3502
|
value: daily.time,
|
|
2828
3503
|
onChange: value => {
|
|
2829
3504
|
if (value) {
|
|
2830
|
-
setDaily(__spreadProps$
|
|
3505
|
+
setDaily(__spreadProps$p(__spreadValues$w({}, daily), {
|
|
2831
3506
|
time: value
|
|
2832
3507
|
}));
|
|
2833
3508
|
}
|
|
@@ -2882,7 +3557,7 @@
|
|
|
2882
3557
|
input: {
|
|
2883
3558
|
value: weekly.step,
|
|
2884
3559
|
onChange: value => {
|
|
2885
|
-
setWeekly(__spreadProps$
|
|
3560
|
+
setWeekly(__spreadProps$p(__spreadValues$w({}, weekly), {
|
|
2886
3561
|
step: value
|
|
2887
3562
|
}));
|
|
2888
3563
|
},
|
|
@@ -2899,7 +3574,7 @@
|
|
|
2899
3574
|
className: linaria.cx("week-day-option", active && "active", i18n.language === parrot.ParrotLngs.en && "en-text"),
|
|
2900
3575
|
type: "default",
|
|
2901
3576
|
key: d.value,
|
|
2902
|
-
onClick: () => setWeekly(__spreadProps$
|
|
3577
|
+
onClick: () => setWeekly(__spreadProps$p(__spreadValues$w({}, weekly), {
|
|
2903
3578
|
days: active ? weekly.days.filter(day => day !== d.value) : weekly.days.concat(d.value).sort((a, b) => a - b)
|
|
2904
3579
|
}))
|
|
2905
3580
|
}, d.text);
|
|
@@ -2911,7 +3586,7 @@
|
|
|
2911
3586
|
value: weekly.time,
|
|
2912
3587
|
onChange: value => {
|
|
2913
3588
|
if (value) {
|
|
2914
|
-
setWeekly(__spreadProps$
|
|
3589
|
+
setWeekly(__spreadProps$p(__spreadValues$w({}, weekly), {
|
|
2915
3590
|
time: value
|
|
2916
3591
|
}));
|
|
2917
3592
|
}
|
|
@@ -2938,7 +3613,7 @@
|
|
|
2938
3613
|
input: {
|
|
2939
3614
|
value: monthly.step,
|
|
2940
3615
|
onChange: value => {
|
|
2941
|
-
setMonthly(__spreadProps$
|
|
3616
|
+
setMonthly(__spreadProps$p(__spreadValues$w({}, monthly), {
|
|
2942
3617
|
step: value
|
|
2943
3618
|
}));
|
|
2944
3619
|
},
|
|
@@ -2955,7 +3630,7 @@
|
|
|
2955
3630
|
className: linaria.cx("month-day-option", active && "active"),
|
|
2956
3631
|
type: "default",
|
|
2957
3632
|
key: d,
|
|
2958
|
-
onClick: () => setMonthly(__spreadProps$
|
|
3633
|
+
onClick: () => setMonthly(__spreadProps$p(__spreadValues$w({}, monthly), {
|
|
2959
3634
|
days: active ? monthly.days.filter(day => day !== d) : monthly.days.concat(d).sort((a, b) => a - b)
|
|
2960
3635
|
}))
|
|
2961
3636
|
}, d);
|
|
@@ -2971,7 +3646,7 @@
|
|
|
2971
3646
|
value: monthly.time,
|
|
2972
3647
|
onChange: value => {
|
|
2973
3648
|
if (value) {
|
|
2974
|
-
setMonthly(__spreadProps$
|
|
3649
|
+
setMonthly(__spreadProps$p(__spreadValues$w({}, monthly), {
|
|
2975
3650
|
time: value
|
|
2976
3651
|
}));
|
|
2977
3652
|
}
|
|
@@ -2995,7 +3670,7 @@
|
|
|
2995
3670
|
}, [value]);
|
|
2996
3671
|
const sendAtDate = React.useMemo(() => cronTime.sendAt(), [cronTime]);
|
|
2997
3672
|
const changeValue = newValue => {
|
|
2998
|
-
onChange(__spreadValues$
|
|
3673
|
+
onChange(__spreadValues$w(__spreadValues$w({}, value), newValue));
|
|
2999
3674
|
};
|
|
3000
3675
|
const [mode, setMode] = React.useState(getMode(cronTime["source"]));
|
|
3001
3676
|
const source = cronTime["source"];
|
|
@@ -3003,19 +3678,19 @@
|
|
|
3003
3678
|
const time = getTime(cronTime);
|
|
3004
3679
|
const [daily, setDaily] = React.useState(() => {
|
|
3005
3680
|
const rawDaily = getDaily(mode, source, time);
|
|
3006
|
-
return __spreadProps$
|
|
3681
|
+
return __spreadProps$p(__spreadValues$w({}, rawDaily), {
|
|
3007
3682
|
time: moment__default.default(rawDaily.time.format())
|
|
3008
3683
|
});
|
|
3009
3684
|
});
|
|
3010
3685
|
const [weekly, setWeekly] = React.useState(() => {
|
|
3011
3686
|
const rawWeekly = getWeekly(mode, source, time);
|
|
3012
|
-
return __spreadProps$
|
|
3687
|
+
return __spreadProps$p(__spreadValues$w({}, rawWeekly), {
|
|
3013
3688
|
time: moment__default.default(rawWeekly.time.format())
|
|
3014
3689
|
});
|
|
3015
3690
|
});
|
|
3016
3691
|
const [monthly, setMonthly] = React.useState(() => {
|
|
3017
3692
|
const rawMonthly = getMonthly(mode, month, day, time);
|
|
3018
|
-
return __spreadProps$
|
|
3693
|
+
return __spreadProps$p(__spreadValues$w({}, rawMonthly), {
|
|
3019
3694
|
time: moment__default.default(rawMonthly.time.format())
|
|
3020
3695
|
});
|
|
3021
3696
|
});
|
|
@@ -3137,97 +3812,6 @@
|
|
|
3137
3812
|
});
|
|
3138
3813
|
};
|
|
3139
3814
|
|
|
3140
|
-
var __defProp$E = Object.defineProperty;
|
|
3141
|
-
var __defProps$p = Object.defineProperties;
|
|
3142
|
-
var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
|
|
3143
|
-
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
|
3144
|
-
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
|
3145
|
-
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
|
3146
|
-
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3147
|
-
var __spreadValues$E = (a, b) => {
|
|
3148
|
-
for (var prop in b || (b = {}))
|
|
3149
|
-
if (__hasOwnProp$F.call(b, prop))
|
|
3150
|
-
__defNormalProp$E(a, prop, b[prop]);
|
|
3151
|
-
if (__getOwnPropSymbols$F)
|
|
3152
|
-
for (var prop of __getOwnPropSymbols$F(b)) {
|
|
3153
|
-
if (__propIsEnum$F.call(b, prop))
|
|
3154
|
-
__defNormalProp$E(a, prop, b[prop]);
|
|
3155
|
-
}
|
|
3156
|
-
return a;
|
|
3157
|
-
};
|
|
3158
|
-
var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
|
|
3159
|
-
var __objRest$h = (source, exclude) => {
|
|
3160
|
-
var target = {};
|
|
3161
|
-
for (var prop in source)
|
|
3162
|
-
if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3163
|
-
target[prop] = source[prop];
|
|
3164
|
-
if (source != null && __getOwnPropSymbols$F)
|
|
3165
|
-
for (var prop of __getOwnPropSymbols$F(source)) {
|
|
3166
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
|
|
3167
|
-
target[prop] = source[prop];
|
|
3168
|
-
}
|
|
3169
|
-
return target;
|
|
3170
|
-
};
|
|
3171
|
-
let componentId = 0;
|
|
3172
|
-
const Tooltip = (props) => {
|
|
3173
|
-
const _a = props, {
|
|
3174
|
-
followMouse,
|
|
3175
|
-
overlayClassName,
|
|
3176
|
-
overlayStyle,
|
|
3177
|
-
children
|
|
3178
|
-
} = _a, restProps = __objRest$h(_a, [
|
|
3179
|
-
"followMouse",
|
|
3180
|
-
"overlayClassName",
|
|
3181
|
-
"overlayStyle",
|
|
3182
|
-
"children"
|
|
3183
|
-
]);
|
|
3184
|
-
const id = React.useRef(++componentId);
|
|
3185
|
-
const uniquePopupClass = `kit-popup-${id.current}`;
|
|
3186
|
-
const uniqueContainerClass = `kit-tooltip-${id.current}`;
|
|
3187
|
-
const _children = React.useMemo(() => {
|
|
3188
|
-
if (followMouse) {
|
|
3189
|
-
const child = React__namespace.default.isValidElement(children) ? children : /* @__PURE__ */ React__namespace.default.createElement("span", null, children);
|
|
3190
|
-
return React__namespace.default.cloneElement(child, {
|
|
3191
|
-
className: cs__default.default(child.props.className, uniqueContainerClass)
|
|
3192
|
-
});
|
|
3193
|
-
} else {
|
|
3194
|
-
return children;
|
|
3195
|
-
}
|
|
3196
|
-
}, [children, followMouse, uniqueContainerClass]);
|
|
3197
|
-
const onmousemove = React.useCallback(
|
|
3198
|
-
(event) => {
|
|
3199
|
-
const popup = document.querySelector(`.${uniquePopupClass}`);
|
|
3200
|
-
if (!popup)
|
|
3201
|
-
return;
|
|
3202
|
-
popup.style.left = event.pageX + "px";
|
|
3203
|
-
popup.style.top = event.pageY + "px";
|
|
3204
|
-
},
|
|
3205
|
-
[uniquePopupClass]
|
|
3206
|
-
);
|
|
3207
|
-
React.useEffect(() => {
|
|
3208
|
-
if (followMouse) {
|
|
3209
|
-
const container = document.querySelector(
|
|
3210
|
-
`.${uniqueContainerClass}`
|
|
3211
|
-
);
|
|
3212
|
-
container == null ? void 0 : container.addEventListener("mousemove", onmousemove);
|
|
3213
|
-
return () => {
|
|
3214
|
-
container == null ? void 0 : container.removeEventListener("mousemove", onmousemove);
|
|
3215
|
-
};
|
|
3216
|
-
}
|
|
3217
|
-
}, [followMouse, onmousemove, uniqueContainerClass]);
|
|
3218
|
-
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
3219
|
-
antd.Tooltip,
|
|
3220
|
-
__spreadProps$p(__spreadValues$E({}, restProps), {
|
|
3221
|
-
overlayClassName: followMouse ? cs__default.default(overlayClassName, uniquePopupClass) : overlayClassName,
|
|
3222
|
-
children: _children,
|
|
3223
|
-
overlayStyle: followMouse ? __spreadValues$E({
|
|
3224
|
-
transform: "translate(-50%, -100%)",
|
|
3225
|
-
pointerEvents: "none"
|
|
3226
|
-
}, overlayStyle) : overlayStyle
|
|
3227
|
-
})
|
|
3228
|
-
);
|
|
3229
|
-
};
|
|
3230
|
-
|
|
3231
3815
|
const NameItem = /*#__PURE__*/react.styled('div')({
|
|
3232
3816
|
name: "NameItem",
|
|
3233
3817
|
class: "n12mqh7z",
|
|
@@ -3254,28 +3838,28 @@
|
|
|
3254
3838
|
}, children));
|
|
3255
3839
|
};
|
|
3256
3840
|
|
|
3257
|
-
var __defProp$
|
|
3258
|
-
var __getOwnPropSymbols$
|
|
3259
|
-
var __hasOwnProp$
|
|
3260
|
-
var __propIsEnum$
|
|
3261
|
-
var __defNormalProp$
|
|
3841
|
+
var __defProp$v = Object.defineProperty;
|
|
3842
|
+
var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
|
|
3843
|
+
var __hasOwnProp$w = Object.prototype.hasOwnProperty;
|
|
3844
|
+
var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
|
|
3845
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, {
|
|
3262
3846
|
enumerable: true,
|
|
3263
3847
|
configurable: true,
|
|
3264
3848
|
writable: true,
|
|
3265
3849
|
value
|
|
3266
3850
|
}) : obj[key] = value;
|
|
3267
|
-
var __spreadValues$
|
|
3268
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3269
|
-
if (__getOwnPropSymbols$
|
|
3270
|
-
if (__propIsEnum$
|
|
3851
|
+
var __spreadValues$v = (a, b) => {
|
|
3852
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$w.call(b, prop)) __defNormalProp$v(a, prop, b[prop]);
|
|
3853
|
+
if (__getOwnPropSymbols$w) for (var prop of __getOwnPropSymbols$w(b)) {
|
|
3854
|
+
if (__propIsEnum$w.call(b, prop)) __defNormalProp$v(a, prop, b[prop]);
|
|
3271
3855
|
}
|
|
3272
3856
|
return a;
|
|
3273
3857
|
};
|
|
3274
3858
|
var __objRest$g = (source, exclude) => {
|
|
3275
3859
|
var target = {};
|
|
3276
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3277
|
-
if (source != null && __getOwnPropSymbols$
|
|
3278
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3860
|
+
for (var prop in source) if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3861
|
+
if (source != null && __getOwnPropSymbols$w) for (var prop of __getOwnPropSymbols$w(source)) {
|
|
3862
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$w.call(source, prop)) target[prop] = source[prop];
|
|
3279
3863
|
}
|
|
3280
3864
|
return target;
|
|
3281
3865
|
};
|
|
@@ -3301,34 +3885,34 @@
|
|
|
3301
3885
|
onClick: e => e.stopPropagation()
|
|
3302
3886
|
}, /* @__PURE__ */React__namespace.default.createElement("span", {
|
|
3303
3887
|
className: "enabled-text"
|
|
3304
|
-
}, _props.checked ? text.checked : text.unchecked), /* @__PURE__ */React__namespace.default.createElement(Switch, __spreadValues$
|
|
3888
|
+
}, _props.checked ? text.checked : text.unchecked), /* @__PURE__ */React__namespace.default.createElement(Switch, __spreadValues$v({}, _props)));
|
|
3305
3889
|
};
|
|
3306
3890
|
|
|
3307
|
-
var __defProp$
|
|
3891
|
+
var __defProp$u = Object.defineProperty;
|
|
3308
3892
|
var __defProps$o = Object.defineProperties;
|
|
3309
3893
|
var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
|
|
3310
|
-
var __getOwnPropSymbols$
|
|
3311
|
-
var __hasOwnProp$
|
|
3312
|
-
var __propIsEnum$
|
|
3313
|
-
var __defNormalProp$
|
|
3894
|
+
var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
|
|
3895
|
+
var __hasOwnProp$v = Object.prototype.hasOwnProperty;
|
|
3896
|
+
var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
|
|
3897
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, {
|
|
3314
3898
|
enumerable: true,
|
|
3315
3899
|
configurable: true,
|
|
3316
3900
|
writable: true,
|
|
3317
3901
|
value
|
|
3318
3902
|
}) : obj[key] = value;
|
|
3319
|
-
var __spreadValues$
|
|
3320
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3321
|
-
if (__getOwnPropSymbols$
|
|
3322
|
-
if (__propIsEnum$
|
|
3903
|
+
var __spreadValues$u = (a, b) => {
|
|
3904
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$v.call(b, prop)) __defNormalProp$u(a, prop, b[prop]);
|
|
3905
|
+
if (__getOwnPropSymbols$v) for (var prop of __getOwnPropSymbols$v(b)) {
|
|
3906
|
+
if (__propIsEnum$v.call(b, prop)) __defNormalProp$u(a, prop, b[prop]);
|
|
3323
3907
|
}
|
|
3324
3908
|
return a;
|
|
3325
3909
|
};
|
|
3326
3910
|
var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
|
|
3327
3911
|
var __objRest$f = (source, exclude) => {
|
|
3328
3912
|
var target = {};
|
|
3329
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3330
|
-
if (source != null && __getOwnPropSymbols$
|
|
3331
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3913
|
+
for (var prop in source) if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3914
|
+
if (source != null && __getOwnPropSymbols$v) for (var prop of __getOwnPropSymbols$v(source)) {
|
|
3915
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$v.call(source, prop)) target[prop] = source[prop];
|
|
3332
3916
|
}
|
|
3333
3917
|
return target;
|
|
3334
3918
|
};
|
|
@@ -3359,37 +3943,37 @@
|
|
|
3359
3943
|
ref: textWrapper,
|
|
3360
3944
|
className: textWrapperCls
|
|
3361
3945
|
}, text);
|
|
3362
|
-
return isTextTruncated ? /* @__PURE__ */React__namespace.default.createElement(Tooltip, __spreadProps$o(__spreadValues$
|
|
3946
|
+
return isTextTruncated ? /* @__PURE__ */React__namespace.default.createElement(Tooltip, __spreadProps$o(__spreadValues$u({}, restProps), {
|
|
3363
3947
|
title: text,
|
|
3364
3948
|
"data-testid": "text-tooltip"
|
|
3365
3949
|
}), /* @__PURE__ */React__namespace.default.createElement(TruncatedTextWrapper, null, renderName())) : renderName();
|
|
3366
3950
|
};
|
|
3367
3951
|
|
|
3368
|
-
var __defProp$
|
|
3952
|
+
var __defProp$t = Object.defineProperty;
|
|
3369
3953
|
var __defProps$n = Object.defineProperties;
|
|
3370
3954
|
var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
|
|
3371
|
-
var __getOwnPropSymbols$
|
|
3372
|
-
var __hasOwnProp$
|
|
3373
|
-
var __propIsEnum$
|
|
3374
|
-
var __defNormalProp$
|
|
3955
|
+
var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
|
|
3956
|
+
var __hasOwnProp$u = Object.prototype.hasOwnProperty;
|
|
3957
|
+
var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
|
|
3958
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, {
|
|
3375
3959
|
enumerable: true,
|
|
3376
3960
|
configurable: true,
|
|
3377
3961
|
writable: true,
|
|
3378
3962
|
value
|
|
3379
3963
|
}) : obj[key] = value;
|
|
3380
|
-
var __spreadValues$
|
|
3381
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3382
|
-
if (__getOwnPropSymbols$
|
|
3383
|
-
if (__propIsEnum$
|
|
3964
|
+
var __spreadValues$t = (a, b) => {
|
|
3965
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$u.call(b, prop)) __defNormalProp$t(a, prop, b[prop]);
|
|
3966
|
+
if (__getOwnPropSymbols$u) for (var prop of __getOwnPropSymbols$u(b)) {
|
|
3967
|
+
if (__propIsEnum$u.call(b, prop)) __defNormalProp$t(a, prop, b[prop]);
|
|
3384
3968
|
}
|
|
3385
3969
|
return a;
|
|
3386
3970
|
};
|
|
3387
3971
|
var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
|
|
3388
3972
|
var __objRest$e = (source, exclude) => {
|
|
3389
3973
|
var target = {};
|
|
3390
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3391
|
-
if (source != null && __getOwnPropSymbols$
|
|
3392
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3974
|
+
for (var prop in source) if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3975
|
+
if (source != null && __getOwnPropSymbols$u) for (var prop of __getOwnPropSymbols$u(source)) {
|
|
3976
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop)) target[prop] = source[prop];
|
|
3393
3977
|
}
|
|
3394
3978
|
return target;
|
|
3395
3979
|
};
|
|
@@ -3413,7 +3997,7 @@
|
|
|
3413
3997
|
src: getAlertIcon(type)
|
|
3414
3998
|
});
|
|
3415
3999
|
const _type = type === "normal" ? "info" : type;
|
|
3416
|
-
return /* @__PURE__ */React__namespace.default.createElement(antd.Alert, __spreadProps$n(__spreadValues$
|
|
4000
|
+
return /* @__PURE__ */React__namespace.default.createElement(antd.Alert, __spreadProps$n(__spreadValues$t({}, props), {
|
|
3417
4001
|
className: cs__default.default(AlertStyle, type ? `alert-${type}` : "", className, {
|
|
3418
4002
|
action
|
|
3419
4003
|
}),
|
|
@@ -3445,21 +4029,21 @@
|
|
|
3445
4029
|
return /* @__PURE__ */ React__namespace.default.createElement("span", null, text);
|
|
3446
4030
|
};
|
|
3447
4031
|
|
|
3448
|
-
var __defProp$
|
|
4032
|
+
var __defProp$s = Object.defineProperty;
|
|
3449
4033
|
var __defProps$m = Object.defineProperties;
|
|
3450
4034
|
var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
|
|
3451
|
-
var __getOwnPropSymbols$
|
|
3452
|
-
var __hasOwnProp$
|
|
3453
|
-
var __propIsEnum$
|
|
3454
|
-
var __defNormalProp$
|
|
3455
|
-
var __spreadValues$
|
|
4035
|
+
var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
|
|
4036
|
+
var __hasOwnProp$t = Object.prototype.hasOwnProperty;
|
|
4037
|
+
var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
|
|
4038
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4039
|
+
var __spreadValues$s = (a, b) => {
|
|
3456
4040
|
for (var prop in b || (b = {}))
|
|
3457
|
-
if (__hasOwnProp$
|
|
3458
|
-
__defNormalProp$
|
|
3459
|
-
if (__getOwnPropSymbols$
|
|
3460
|
-
for (var prop of __getOwnPropSymbols$
|
|
3461
|
-
if (__propIsEnum$
|
|
3462
|
-
__defNormalProp$
|
|
4041
|
+
if (__hasOwnProp$t.call(b, prop))
|
|
4042
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
4043
|
+
if (__getOwnPropSymbols$t)
|
|
4044
|
+
for (var prop of __getOwnPropSymbols$t(b)) {
|
|
4045
|
+
if (__propIsEnum$t.call(b, prop))
|
|
4046
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
3463
4047
|
}
|
|
3464
4048
|
return a;
|
|
3465
4049
|
};
|
|
@@ -3467,11 +4051,11 @@
|
|
|
3467
4051
|
var __objRest$d = (source, exclude) => {
|
|
3468
4052
|
var target = {};
|
|
3469
4053
|
for (var prop in source)
|
|
3470
|
-
if (__hasOwnProp$
|
|
4054
|
+
if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3471
4055
|
target[prop] = source[prop];
|
|
3472
|
-
if (source != null && __getOwnPropSymbols$
|
|
3473
|
-
for (var prop of __getOwnPropSymbols$
|
|
3474
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4056
|
+
if (source != null && __getOwnPropSymbols$t)
|
|
4057
|
+
for (var prop of __getOwnPropSymbols$t(source)) {
|
|
4058
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$t.call(source, prop))
|
|
3475
4059
|
target[prop] = source[prop];
|
|
3476
4060
|
}
|
|
3477
4061
|
return target;
|
|
@@ -3480,7 +4064,7 @@
|
|
|
3480
4064
|
var _b = _a, { type = "error", className } = _b, props = __objRest$d(_b, ["type", "className"]);
|
|
3481
4065
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
3482
4066
|
antd.Badge,
|
|
3483
|
-
__spreadProps$m(__spreadValues$
|
|
4067
|
+
__spreadProps$m(__spreadValues$s({
|
|
3484
4068
|
className: core.cx(`badge-${type}`, className)
|
|
3485
4069
|
}, props), {
|
|
3486
4070
|
showZero: false
|
|
@@ -3488,130 +4072,28 @@
|
|
|
3488
4072
|
);
|
|
3489
4073
|
};
|
|
3490
4074
|
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
}
|
|
3497
|
-
|
|
3498
|
-
const Empty = (props) => {
|
|
3499
|
-
const { className, style } = props;
|
|
3500
|
-
return /* @__PURE__ */ React__namespace.default.createElement("span", { className, style }, "-");
|
|
3501
|
-
};
|
|
3502
|
-
|
|
3503
|
-
var __defProp$z = Object.defineProperty;
|
|
3504
|
-
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
|
3505
|
-
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
|
3506
|
-
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
|
3507
|
-
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3508
|
-
var __spreadValues$z = (a, b) => {
|
|
3509
|
-
for (var prop in b || (b = {}))
|
|
3510
|
-
if (__hasOwnProp$A.call(b, prop))
|
|
3511
|
-
__defNormalProp$z(a, prop, b[prop]);
|
|
3512
|
-
if (__getOwnPropSymbols$A)
|
|
3513
|
-
for (var prop of __getOwnPropSymbols$A(b)) {
|
|
3514
|
-
if (__propIsEnum$A.call(b, prop))
|
|
3515
|
-
__defNormalProp$z(a, prop, b[prop]);
|
|
3516
|
-
}
|
|
3517
|
-
return a;
|
|
3518
|
-
};
|
|
3519
|
-
const Bit = ({
|
|
3520
|
-
rawValue,
|
|
3521
|
-
decimals,
|
|
3522
|
-
unitClassName,
|
|
3523
|
-
valueClassName,
|
|
3524
|
-
emptyProps
|
|
3525
|
-
}) => {
|
|
3526
|
-
if (isEmpty(rawValue)) {
|
|
3527
|
-
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$z({}, emptyProps));
|
|
3528
|
-
}
|
|
3529
|
-
const { value, unit } = formatBits(rawValue, decimals);
|
|
3530
|
-
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
|
|
3531
|
-
};
|
|
3532
|
-
|
|
3533
|
-
var __defProp$y = Object.defineProperty;
|
|
3534
|
-
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
|
3535
|
-
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
|
3536
|
-
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
|
3537
|
-
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3538
|
-
var __spreadValues$y = (a, b) => {
|
|
3539
|
-
for (var prop in b || (b = {}))
|
|
3540
|
-
if (__hasOwnProp$z.call(b, prop))
|
|
3541
|
-
__defNormalProp$y(a, prop, b[prop]);
|
|
3542
|
-
if (__getOwnPropSymbols$z)
|
|
3543
|
-
for (var prop of __getOwnPropSymbols$z(b)) {
|
|
3544
|
-
if (__propIsEnum$z.call(b, prop))
|
|
3545
|
-
__defNormalProp$y(a, prop, b[prop]);
|
|
3546
|
-
}
|
|
3547
|
-
return a;
|
|
3548
|
-
};
|
|
3549
|
-
const BitPerSeconds = ({
|
|
3550
|
-
rawValue,
|
|
3551
|
-
decimals,
|
|
3552
|
-
valueClassName,
|
|
3553
|
-
unitClassName,
|
|
3554
|
-
emptyProps
|
|
3555
|
-
}) => {
|
|
3556
|
-
if (isEmpty(rawValue)) {
|
|
3557
|
-
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$y({}, emptyProps));
|
|
3558
|
-
}
|
|
3559
|
-
const { value, unit } = formatBitPerSecond(rawValue, decimals);
|
|
3560
|
-
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
|
|
3561
|
-
};
|
|
3562
|
-
|
|
3563
|
-
var __defProp$x = Object.defineProperty;
|
|
3564
|
-
var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
|
|
3565
|
-
var __hasOwnProp$y = Object.prototype.hasOwnProperty;
|
|
3566
|
-
var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
|
|
3567
|
-
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3568
|
-
var __spreadValues$x = (a, b) => {
|
|
3569
|
-
for (var prop in b || (b = {}))
|
|
3570
|
-
if (__hasOwnProp$y.call(b, prop))
|
|
3571
|
-
__defNormalProp$x(a, prop, b[prop]);
|
|
3572
|
-
if (__getOwnPropSymbols$y)
|
|
3573
|
-
for (var prop of __getOwnPropSymbols$y(b)) {
|
|
3574
|
-
if (__propIsEnum$y.call(b, prop))
|
|
3575
|
-
__defNormalProp$x(a, prop, b[prop]);
|
|
3576
|
-
}
|
|
3577
|
-
return a;
|
|
3578
|
-
};
|
|
3579
|
-
const Bps = ({
|
|
3580
|
-
rawValue,
|
|
3581
|
-
decimals,
|
|
3582
|
-
valueClassName,
|
|
3583
|
-
unitClassName,
|
|
3584
|
-
emptyProps
|
|
3585
|
-
}) => {
|
|
3586
|
-
if (isEmpty(rawValue)) {
|
|
3587
|
-
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$x({}, emptyProps));
|
|
3588
|
-
}
|
|
3589
|
-
const { value, unit } = formatBps(rawValue, decimals);
|
|
3590
|
-
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
|
|
3591
|
-
};
|
|
3592
|
-
|
|
3593
|
-
var __defProp$w = Object.defineProperty;
|
|
3594
|
-
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
|
3595
|
-
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
|
3596
|
-
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
|
3597
|
-
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, {
|
|
4075
|
+
var __defProp$r = Object.defineProperty;
|
|
4076
|
+
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
|
4077
|
+
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
|
4078
|
+
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
|
4079
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, {
|
|
3598
4080
|
enumerable: true,
|
|
3599
4081
|
configurable: true,
|
|
3600
4082
|
writable: true,
|
|
3601
4083
|
value
|
|
3602
4084
|
}) : obj[key] = value;
|
|
3603
|
-
var __spreadValues$
|
|
3604
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3605
|
-
if (__getOwnPropSymbols$
|
|
3606
|
-
if (__propIsEnum$
|
|
4085
|
+
var __spreadValues$r = (a, b) => {
|
|
4086
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$s.call(b, prop)) __defNormalProp$r(a, prop, b[prop]);
|
|
4087
|
+
if (__getOwnPropSymbols$s) for (var prop of __getOwnPropSymbols$s(b)) {
|
|
4088
|
+
if (__propIsEnum$s.call(b, prop)) __defNormalProp$r(a, prop, b[prop]);
|
|
3607
4089
|
}
|
|
3608
4090
|
return a;
|
|
3609
4091
|
};
|
|
3610
4092
|
var __objRest$c = (source, exclude) => {
|
|
3611
4093
|
var target = {};
|
|
3612
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3613
|
-
if (source != null && __getOwnPropSymbols$
|
|
3614
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4094
|
+
for (var prop in source) if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
4095
|
+
if (source != null && __getOwnPropSymbols$s) for (var prop of __getOwnPropSymbols$s(source)) {
|
|
4096
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop)) target[prop] = source[prop];
|
|
3615
4097
|
}
|
|
3616
4098
|
return target;
|
|
3617
4099
|
};
|
|
@@ -3655,7 +4137,7 @@
|
|
|
3655
4137
|
style: {
|
|
3656
4138
|
cursor: "not-allowed"
|
|
3657
4139
|
}
|
|
3658
|
-
}, /* @__PURE__ */React__namespace.default.createElement(Button, __spreadValues$
|
|
4140
|
+
}, /* @__PURE__ */React__namespace.default.createElement(Button, __spreadValues$r({
|
|
3659
4141
|
style: {
|
|
3660
4142
|
pointerEvents: "none"
|
|
3661
4143
|
},
|
|
@@ -3665,7 +4147,7 @@
|
|
|
3665
4147
|
ghost,
|
|
3666
4148
|
className: core.cx(ButtonStyle, className2),
|
|
3667
4149
|
prefixIcon: icon
|
|
3668
|
-
}, buttonPropArgs))) : /* @__PURE__ */React__namespace.default.createElement(Button, __spreadValues$
|
|
4150
|
+
}, buttonPropArgs))) : /* @__PURE__ */React__namespace.default.createElement(Button, __spreadValues$r({
|
|
3669
4151
|
type,
|
|
3670
4152
|
size,
|
|
3671
4153
|
danger,
|
|
@@ -3674,7 +4156,7 @@
|
|
|
3674
4156
|
prefixIcon: icon
|
|
3675
4157
|
}, buttonPropArgs)));
|
|
3676
4158
|
}
|
|
3677
|
-
return /* @__PURE__ */React__namespace.default.createElement(Button, __spreadValues$
|
|
4159
|
+
return /* @__PURE__ */React__namespace.default.createElement(Button, __spreadValues$r({
|
|
3678
4160
|
key: key || index,
|
|
3679
4161
|
type,
|
|
3680
4162
|
size,
|
|
@@ -3688,44 +4170,6 @@
|
|
|
3688
4170
|
}));
|
|
3689
4171
|
});
|
|
3690
4172
|
|
|
3691
|
-
var __defProp$v = Object.defineProperty;
|
|
3692
|
-
var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
|
|
3693
|
-
var __hasOwnProp$w = Object.prototype.hasOwnProperty;
|
|
3694
|
-
var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
|
|
3695
|
-
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3696
|
-
var __spreadValues$v = (a, b) => {
|
|
3697
|
-
for (var prop in b || (b = {}))
|
|
3698
|
-
if (__hasOwnProp$w.call(b, prop))
|
|
3699
|
-
__defNormalProp$v(a, prop, b[prop]);
|
|
3700
|
-
if (__getOwnPropSymbols$w)
|
|
3701
|
-
for (var prop of __getOwnPropSymbols$w(b)) {
|
|
3702
|
-
if (__propIsEnum$w.call(b, prop))
|
|
3703
|
-
__defNormalProp$v(a, prop, b[prop]);
|
|
3704
|
-
}
|
|
3705
|
-
return a;
|
|
3706
|
-
};
|
|
3707
|
-
const Byte = ({
|
|
3708
|
-
rawValue,
|
|
3709
|
-
noUnitOnZero,
|
|
3710
|
-
decimals,
|
|
3711
|
-
valueClassName,
|
|
3712
|
-
unitClassName,
|
|
3713
|
-
emptyProps
|
|
3714
|
-
}) => {
|
|
3715
|
-
const { t } = useParrotTranslation();
|
|
3716
|
-
if (isEmpty(rawValue)) {
|
|
3717
|
-
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$v({}, emptyProps));
|
|
3718
|
-
}
|
|
3719
|
-
if (rawValue === -1) {
|
|
3720
|
-
return /* @__PURE__ */ React__namespace.default.createElement("span", null, t("common.calculation"));
|
|
3721
|
-
}
|
|
3722
|
-
const { value, unit } = formatBytes(rawValue, decimals);
|
|
3723
|
-
if (noUnitOnZero && value === 0) {
|
|
3724
|
-
return /* @__PURE__ */ React__namespace.default.createElement("span", { className: "value" }, value);
|
|
3725
|
-
}
|
|
3726
|
-
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
|
|
3727
|
-
};
|
|
3728
|
-
|
|
3729
4173
|
const CardBody = /*#__PURE__*/react$1.styled('div')({
|
|
3730
4174
|
name: "CardBody",
|
|
3731
4175
|
class: "c1k4vanq",
|
|
@@ -3738,28 +4182,28 @@
|
|
|
3738
4182
|
propsAsIs: false
|
|
3739
4183
|
});
|
|
3740
4184
|
|
|
3741
|
-
var __defProp$
|
|
3742
|
-
var __getOwnPropSymbols$
|
|
3743
|
-
var __hasOwnProp$
|
|
3744
|
-
var __propIsEnum$
|
|
3745
|
-
var __defNormalProp$
|
|
4185
|
+
var __defProp$q = Object.defineProperty;
|
|
4186
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
|
4187
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
|
4188
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
|
4189
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, {
|
|
3746
4190
|
enumerable: true,
|
|
3747
4191
|
configurable: true,
|
|
3748
4192
|
writable: true,
|
|
3749
4193
|
value
|
|
3750
4194
|
}) : obj[key] = value;
|
|
3751
|
-
var __spreadValues$
|
|
3752
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3753
|
-
if (__getOwnPropSymbols$
|
|
3754
|
-
if (__propIsEnum$
|
|
4195
|
+
var __spreadValues$q = (a, b) => {
|
|
4196
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$r.call(b, prop)) __defNormalProp$q(a, prop, b[prop]);
|
|
4197
|
+
if (__getOwnPropSymbols$r) for (var prop of __getOwnPropSymbols$r(b)) {
|
|
4198
|
+
if (__propIsEnum$r.call(b, prop)) __defNormalProp$q(a, prop, b[prop]);
|
|
3755
4199
|
}
|
|
3756
4200
|
return a;
|
|
3757
4201
|
};
|
|
3758
4202
|
var __objRest$b = (source, exclude) => {
|
|
3759
4203
|
var target = {};
|
|
3760
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3761
|
-
if (source != null && __getOwnPropSymbols$
|
|
3762
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4204
|
+
for (var prop in source) if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
4205
|
+
if (source != null && __getOwnPropSymbols$r) for (var prop of __getOwnPropSymbols$r(source)) {
|
|
4206
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop)) target[prop] = source[prop];
|
|
3763
4207
|
}
|
|
3764
4208
|
return target;
|
|
3765
4209
|
};
|
|
@@ -3772,7 +4216,7 @@
|
|
|
3772
4216
|
shadow
|
|
3773
4217
|
} = _a,
|
|
3774
4218
|
otherProps = __objRest$b(_a, ["children", "className", "shadow"]);
|
|
3775
|
-
return /* @__PURE__ */React__namespace.default.createElement("div", __spreadValues$
|
|
4219
|
+
return /* @__PURE__ */React__namespace.default.createElement("div", __spreadValues$q({
|
|
3776
4220
|
className: cs__default.default({
|
|
3777
4221
|
[boxShadow]: shadow
|
|
3778
4222
|
}, className)
|
|
@@ -3785,21 +4229,21 @@
|
|
|
3785
4229
|
propsAsIs: true
|
|
3786
4230
|
});
|
|
3787
4231
|
|
|
3788
|
-
var __defProp$
|
|
4232
|
+
var __defProp$p = Object.defineProperty;
|
|
3789
4233
|
var __defProps$l = Object.defineProperties;
|
|
3790
4234
|
var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
|
|
3791
|
-
var __getOwnPropSymbols$
|
|
3792
|
-
var __hasOwnProp$
|
|
3793
|
-
var __propIsEnum$
|
|
3794
|
-
var __defNormalProp$
|
|
3795
|
-
var __spreadValues$
|
|
4235
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
4236
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
4237
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
4238
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4239
|
+
var __spreadValues$p = (a, b) => {
|
|
3796
4240
|
for (var prop in b || (b = {}))
|
|
3797
|
-
if (__hasOwnProp$
|
|
3798
|
-
__defNormalProp$
|
|
3799
|
-
if (__getOwnPropSymbols$
|
|
3800
|
-
for (var prop of __getOwnPropSymbols$
|
|
3801
|
-
if (__propIsEnum$
|
|
3802
|
-
__defNormalProp$
|
|
4241
|
+
if (__hasOwnProp$q.call(b, prop))
|
|
4242
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
4243
|
+
if (__getOwnPropSymbols$q)
|
|
4244
|
+
for (var prop of __getOwnPropSymbols$q(b)) {
|
|
4245
|
+
if (__propIsEnum$q.call(b, prop))
|
|
4246
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
3803
4247
|
}
|
|
3804
4248
|
return a;
|
|
3805
4249
|
};
|
|
@@ -3807,11 +4251,11 @@
|
|
|
3807
4251
|
var __objRest$a = (source, exclude) => {
|
|
3808
4252
|
var target = {};
|
|
3809
4253
|
for (var prop in source)
|
|
3810
|
-
if (__hasOwnProp$
|
|
4254
|
+
if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3811
4255
|
target[prop] = source[prop];
|
|
3812
|
-
if (source != null && __getOwnPropSymbols$
|
|
3813
|
-
for (var prop of __getOwnPropSymbols$
|
|
3814
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4256
|
+
if (source != null && __getOwnPropSymbols$q)
|
|
4257
|
+
for (var prop of __getOwnPropSymbols$q(source)) {
|
|
4258
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
|
|
3815
4259
|
target[prop] = source[prop];
|
|
3816
4260
|
}
|
|
3817
4261
|
return target;
|
|
@@ -3838,7 +4282,7 @@
|
|
|
3838
4282
|
const [open, setOpen] = React.useState(defaultOpen);
|
|
3839
4283
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
3840
4284
|
CardWrapper,
|
|
3841
|
-
__spreadProps$l(__spreadValues$
|
|
4285
|
+
__spreadProps$l(__spreadValues$p({
|
|
3842
4286
|
ref,
|
|
3843
4287
|
className: cs__default.default(["card-wrapper", className, hoverable && "hoverable"])
|
|
3844
4288
|
}, domProps), {
|
|
@@ -3935,22 +4379,22 @@
|
|
|
3935
4379
|
}, children));
|
|
3936
4380
|
};
|
|
3937
4381
|
|
|
3938
|
-
var __defProp$
|
|
4382
|
+
var __defProp$o = Object.defineProperty;
|
|
3939
4383
|
var __defProps$k = Object.defineProperties;
|
|
3940
4384
|
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
|
3941
|
-
var __getOwnPropSymbols$
|
|
3942
|
-
var __hasOwnProp$
|
|
3943
|
-
var __propIsEnum$
|
|
3944
|
-
var __defNormalProp$
|
|
4385
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
4386
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
4387
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
4388
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, {
|
|
3945
4389
|
enumerable: true,
|
|
3946
4390
|
configurable: true,
|
|
3947
4391
|
writable: true,
|
|
3948
4392
|
value
|
|
3949
4393
|
}) : obj[key] = value;
|
|
3950
|
-
var __spreadValues$
|
|
3951
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3952
|
-
if (__getOwnPropSymbols$
|
|
3953
|
-
if (__propIsEnum$
|
|
4394
|
+
var __spreadValues$o = (a, b) => {
|
|
4395
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$p.call(b, prop)) __defNormalProp$o(a, prop, b[prop]);
|
|
4396
|
+
if (__getOwnPropSymbols$p) for (var prop of __getOwnPropSymbols$p(b)) {
|
|
4397
|
+
if (__propIsEnum$p.call(b, prop)) __defNormalProp$o(a, prop, b[prop]);
|
|
3954
4398
|
}
|
|
3955
4399
|
return a;
|
|
3956
4400
|
};
|
|
@@ -3960,7 +4404,7 @@
|
|
|
3960
4404
|
} = antd.Form;
|
|
3961
4405
|
const FormItemStyle$1 = "f1p9ti6d";
|
|
3962
4406
|
const FormItem$1 = props => {
|
|
3963
|
-
return /* @__PURE__ */React__namespace.default.createElement(AntdFormItem, __spreadProps$k(__spreadValues$
|
|
4407
|
+
return /* @__PURE__ */React__namespace.default.createElement(AntdFormItem, __spreadProps$k(__spreadValues$o({}, props), {
|
|
3964
4408
|
className: cs__default.default(FormItemStyle$1, props.className)
|
|
3965
4409
|
}));
|
|
3966
4410
|
};
|
|
@@ -3968,55 +4412,25 @@
|
|
|
3968
4412
|
const Form = antd.Form;
|
|
3969
4413
|
Form.Item = FormItem$1;
|
|
3970
4414
|
|
|
3971
|
-
var __defProp$
|
|
3972
|
-
var __getOwnPropSymbols$
|
|
3973
|
-
var __hasOwnProp$
|
|
3974
|
-
var __propIsEnum$
|
|
3975
|
-
var __defNormalProp$
|
|
3976
|
-
var __spreadValues$
|
|
3977
|
-
for (var prop in b || (b = {}))
|
|
3978
|
-
if (__hasOwnProp$s.call(b, prop))
|
|
3979
|
-
__defNormalProp$r(a, prop, b[prop]);
|
|
3980
|
-
if (__getOwnPropSymbols$s)
|
|
3981
|
-
for (var prop of __getOwnPropSymbols$s(b)) {
|
|
3982
|
-
if (__propIsEnum$s.call(b, prop))
|
|
3983
|
-
__defNormalProp$r(a, prop, b[prop]);
|
|
3984
|
-
}
|
|
3985
|
-
return a;
|
|
3986
|
-
};
|
|
3987
|
-
const Frequency = ({
|
|
3988
|
-
rawValue,
|
|
3989
|
-
decimals,
|
|
3990
|
-
valueClassName,
|
|
3991
|
-
unitClassName,
|
|
3992
|
-
emptyProps
|
|
3993
|
-
}) => {
|
|
3994
|
-
if (isEmpty(rawValue)) {
|
|
3995
|
-
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$r({}, emptyProps));
|
|
3996
|
-
}
|
|
3997
|
-
const { value, unit } = formatFrequency(rawValue, decimals);
|
|
3998
|
-
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
|
|
3999
|
-
};
|
|
4000
|
-
|
|
4001
|
-
var __defProp$q = Object.defineProperty;
|
|
4002
|
-
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
|
4003
|
-
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
|
4004
|
-
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
|
4005
|
-
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4006
|
-
var __spreadValues$q = (a, b) => {
|
|
4415
|
+
var __defProp$n = Object.defineProperty;
|
|
4416
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
4417
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
4418
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
4419
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4420
|
+
var __spreadValues$n = (a, b) => {
|
|
4007
4421
|
for (var prop in b || (b = {}))
|
|
4008
|
-
if (__hasOwnProp$
|
|
4009
|
-
__defNormalProp$
|
|
4010
|
-
if (__getOwnPropSymbols$
|
|
4011
|
-
for (var prop of __getOwnPropSymbols$
|
|
4012
|
-
if (__propIsEnum$
|
|
4013
|
-
__defNormalProp$
|
|
4422
|
+
if (__hasOwnProp$o.call(b, prop))
|
|
4423
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
4424
|
+
if (__getOwnPropSymbols$o)
|
|
4425
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
|
4426
|
+
if (__propIsEnum$o.call(b, prop))
|
|
4427
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
4014
4428
|
}
|
|
4015
4429
|
return a;
|
|
4016
4430
|
};
|
|
4017
4431
|
const ParrotTrans = (props) => {
|
|
4018
4432
|
const { i18n } = useParrotTranslation();
|
|
4019
|
-
return /* @__PURE__ */ React__namespace.default.createElement(reactI18next.Trans, __spreadValues$
|
|
4433
|
+
return /* @__PURE__ */ React__namespace.default.createElement(reactI18next.Trans, __spreadValues$n({ i18n }, props));
|
|
4020
4434
|
};
|
|
4021
4435
|
|
|
4022
4436
|
const PresetColors$3 = [
|
|
@@ -4036,31 +4450,31 @@
|
|
|
4036
4450
|
const IconStyle$1 = "i1qw4clm";
|
|
4037
4451
|
const NameTagStyle = "n1r5ku5l";
|
|
4038
4452
|
|
|
4039
|
-
var __defProp$
|
|
4453
|
+
var __defProp$m = Object.defineProperty;
|
|
4040
4454
|
var __defProps$j = Object.defineProperties;
|
|
4041
4455
|
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
4042
|
-
var __getOwnPropSymbols$
|
|
4043
|
-
var __hasOwnProp$
|
|
4044
|
-
var __propIsEnum$
|
|
4045
|
-
var __defNormalProp$
|
|
4456
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
4457
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
4458
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
4459
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, {
|
|
4046
4460
|
enumerable: true,
|
|
4047
4461
|
configurable: true,
|
|
4048
4462
|
writable: true,
|
|
4049
4463
|
value
|
|
4050
4464
|
}) : obj[key] = value;
|
|
4051
|
-
var __spreadValues$
|
|
4052
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
4053
|
-
if (__getOwnPropSymbols$
|
|
4054
|
-
if (__propIsEnum$
|
|
4465
|
+
var __spreadValues$m = (a, b) => {
|
|
4466
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$n.call(b, prop)) __defNormalProp$m(a, prop, b[prop]);
|
|
4467
|
+
if (__getOwnPropSymbols$n) for (var prop of __getOwnPropSymbols$n(b)) {
|
|
4468
|
+
if (__propIsEnum$n.call(b, prop)) __defNormalProp$m(a, prop, b[prop]);
|
|
4055
4469
|
}
|
|
4056
4470
|
return a;
|
|
4057
4471
|
};
|
|
4058
4472
|
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
4059
4473
|
var __objRest$9 = (source, exclude) => {
|
|
4060
4474
|
var target = {};
|
|
4061
|
-
for (var prop in source) if (__hasOwnProp$
|
|
4062
|
-
if (source != null && __getOwnPropSymbols$
|
|
4063
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4475
|
+
for (var prop in source) if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
4476
|
+
if (source != null && __getOwnPropSymbols$n) for (var prop of __getOwnPropSymbols$n(source)) {
|
|
4477
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop)) target[prop] = source[prop];
|
|
4064
4478
|
}
|
|
4065
4479
|
return target;
|
|
4066
4480
|
};
|
|
@@ -4076,7 +4490,7 @@
|
|
|
4076
4490
|
icon
|
|
4077
4491
|
} = _b,
|
|
4078
4492
|
props = __objRest$9(_b, ["size", "color", "className", "primaryContent", "secondaryContent", "icon"]);
|
|
4079
|
-
return /* @__PURE__ */React__namespace.default.createElement(antd.Tag, __spreadProps$j(__spreadValues$
|
|
4493
|
+
return /* @__PURE__ */React__namespace.default.createElement(antd.Tag, __spreadProps$j(__spreadValues$m({}, props), {
|
|
4080
4494
|
className: cs__default.default(className, TagStyle$1, Size$1[size], WrapperStyle, Typo.Label.l4_regular, {
|
|
4081
4495
|
[`ant-tag-${color}`]: PresetColors$3.includes(color)
|
|
4082
4496
|
}, "outside-tag")
|
|
@@ -4089,21 +4503,21 @@
|
|
|
4089
4503
|
}, icon), primaryContent), secondaryContent);
|
|
4090
4504
|
};
|
|
4091
4505
|
|
|
4092
|
-
var __defProp$
|
|
4506
|
+
var __defProp$l = Object.defineProperty;
|
|
4093
4507
|
var __defProps$i = Object.defineProperties;
|
|
4094
4508
|
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
4095
|
-
var __getOwnPropSymbols$
|
|
4096
|
-
var __hasOwnProp$
|
|
4097
|
-
var __propIsEnum$
|
|
4098
|
-
var __defNormalProp$
|
|
4099
|
-
var __spreadValues$
|
|
4509
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
4510
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
4511
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
4512
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4513
|
+
var __spreadValues$l = (a, b) => {
|
|
4100
4514
|
for (var prop in b || (b = {}))
|
|
4101
|
-
if (__hasOwnProp$
|
|
4102
|
-
__defNormalProp$
|
|
4103
|
-
if (__getOwnPropSymbols$
|
|
4104
|
-
for (var prop of __getOwnPropSymbols$
|
|
4105
|
-
if (__propIsEnum$
|
|
4106
|
-
__defNormalProp$
|
|
4515
|
+
if (__hasOwnProp$m.call(b, prop))
|
|
4516
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
4517
|
+
if (__getOwnPropSymbols$m)
|
|
4518
|
+
for (var prop of __getOwnPropSymbols$m(b)) {
|
|
4519
|
+
if (__propIsEnum$m.call(b, prop))
|
|
4520
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
4107
4521
|
}
|
|
4108
4522
|
return a;
|
|
4109
4523
|
};
|
|
@@ -4111,11 +4525,11 @@
|
|
|
4111
4525
|
var __objRest$8 = (source, exclude) => {
|
|
4112
4526
|
var target = {};
|
|
4113
4527
|
for (var prop in source)
|
|
4114
|
-
if (__hasOwnProp$
|
|
4528
|
+
if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
4115
4529
|
target[prop] = source[prop];
|
|
4116
|
-
if (source != null && __getOwnPropSymbols$
|
|
4117
|
-
for (var prop of __getOwnPropSymbols$
|
|
4118
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4530
|
+
if (source != null && __getOwnPropSymbols$m)
|
|
4531
|
+
for (var prop of __getOwnPropSymbols$m(source)) {
|
|
4532
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
|
|
4119
4533
|
target[prop] = source[prop];
|
|
4120
4534
|
}
|
|
4121
4535
|
return target;
|
|
@@ -4151,7 +4565,7 @@
|
|
|
4151
4565
|
const computedColor = AntdColorMap[color] || color;
|
|
4152
4566
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
4153
4567
|
antd.Tag,
|
|
4154
|
-
__spreadProps$i(__spreadValues$
|
|
4568
|
+
__spreadProps$i(__spreadValues$l({}, props), {
|
|
4155
4569
|
className: cs__default.default(className, Size$1[size], TagStyle$1, Typo.Label.l4_regular, {
|
|
4156
4570
|
[`ant-tag-${computedColor}`]: PresetColors$2.includes(computedColor),
|
|
4157
4571
|
"tag-hover": hoverable
|
|
@@ -4165,19 +4579,19 @@
|
|
|
4165
4579
|
};
|
|
4166
4580
|
const NameTag = (_c) => {
|
|
4167
4581
|
var _d = _c, { className } = _d, props = __objRest$8(_d, ["className"]);
|
|
4168
|
-
return /* @__PURE__ */ React__namespace.default.createElement(Tag, __spreadValues$
|
|
4582
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Tag, __spreadValues$l({ className: cs__default.default(NameTagStyle, className) }, props));
|
|
4169
4583
|
};
|
|
4170
4584
|
Tag.SplitTag = SplitTag;
|
|
4171
4585
|
Tag.NameTag = NameTag;
|
|
4172
4586
|
|
|
4173
|
-
var __getOwnPropSymbols$
|
|
4174
|
-
var __hasOwnProp$
|
|
4175
|
-
var __propIsEnum$
|
|
4587
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
4588
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
4589
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
4176
4590
|
var __objRest$7 = (source, exclude) => {
|
|
4177
4591
|
var target = {};
|
|
4178
|
-
for (var prop in source) if (__hasOwnProp$
|
|
4179
|
-
if (source != null && __getOwnPropSymbols$
|
|
4180
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4592
|
+
for (var prop in source) if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
4593
|
+
if (source != null && __getOwnPropSymbols$l) for (var prop of __getOwnPropSymbols$l(source)) {
|
|
4594
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop)) target[prop] = source[prop];
|
|
4181
4595
|
}
|
|
4182
4596
|
return target;
|
|
4183
4597
|
};
|
|
@@ -4206,21 +4620,21 @@
|
|
|
4206
4620
|
propsAsIs: true
|
|
4207
4621
|
});
|
|
4208
4622
|
|
|
4209
|
-
var __defProp$
|
|
4623
|
+
var __defProp$k = Object.defineProperty;
|
|
4210
4624
|
var __defProps$h = Object.defineProperties;
|
|
4211
4625
|
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
4212
|
-
var __getOwnPropSymbols$
|
|
4213
|
-
var __hasOwnProp$
|
|
4214
|
-
var __propIsEnum$
|
|
4215
|
-
var __defNormalProp$
|
|
4216
|
-
var __spreadValues$
|
|
4626
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
|
4627
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
|
4628
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
|
4629
|
+
var __defNormalProp$k = (obj, key2, value) => key2 in obj ? __defProp$k(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value;
|
|
4630
|
+
var __spreadValues$k = (a, b) => {
|
|
4217
4631
|
for (var prop in b || (b = {}))
|
|
4218
|
-
if (__hasOwnProp$
|
|
4219
|
-
__defNormalProp$
|
|
4220
|
-
if (__getOwnPropSymbols$
|
|
4221
|
-
for (var prop of __getOwnPropSymbols$
|
|
4222
|
-
if (__propIsEnum$
|
|
4223
|
-
__defNormalProp$
|
|
4632
|
+
if (__hasOwnProp$k.call(b, prop))
|
|
4633
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
4634
|
+
if (__getOwnPropSymbols$k)
|
|
4635
|
+
for (var prop of __getOwnPropSymbols$k(b)) {
|
|
4636
|
+
if (__propIsEnum$k.call(b, prop))
|
|
4637
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
4224
4638
|
}
|
|
4225
4639
|
return a;
|
|
4226
4640
|
};
|
|
@@ -4331,7 +4745,7 @@
|
|
|
4331
4745
|
}
|
|
4332
4746
|
getRCNotificationInstance(args, ({ prefixCls, instance }) => {
|
|
4333
4747
|
instance.notice(
|
|
4334
|
-
getRCNoticeProps(__spreadProps$h(__spreadValues$
|
|
4748
|
+
getRCNoticeProps(__spreadProps$h(__spreadValues$k({}, args), { key: target, onClose: callback }), prefixCls)
|
|
4335
4749
|
);
|
|
4336
4750
|
});
|
|
4337
4751
|
});
|
|
@@ -4360,7 +4774,7 @@
|
|
|
4360
4774
|
function attachTypeApi(originalApi, type) {
|
|
4361
4775
|
originalApi[type] = (content, duration, onClose) => {
|
|
4362
4776
|
if (isArgsProps(content)) {
|
|
4363
|
-
return originalApi.open(__spreadProps$h(__spreadValues$
|
|
4777
|
+
return originalApi.open(__spreadProps$h(__spreadValues$k({}, content), { type }));
|
|
4364
4778
|
}
|
|
4365
4779
|
if (typeof duration === "function") {
|
|
4366
4780
|
onClose = duration;
|
|
@@ -4374,21 +4788,21 @@
|
|
|
4374
4788
|
);
|
|
4375
4789
|
api.warn = api.warning;
|
|
4376
4790
|
|
|
4377
|
-
var __defProp$
|
|
4791
|
+
var __defProp$j = Object.defineProperty;
|
|
4378
4792
|
var __defProps$g = Object.defineProperties;
|
|
4379
4793
|
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
4380
|
-
var __getOwnPropSymbols$
|
|
4381
|
-
var __hasOwnProp$
|
|
4382
|
-
var __propIsEnum$
|
|
4383
|
-
var __defNormalProp$
|
|
4384
|
-
var __spreadValues$
|
|
4794
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
4795
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
4796
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
4797
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4798
|
+
var __spreadValues$j = (a, b) => {
|
|
4385
4799
|
for (var prop in b || (b = {}))
|
|
4386
|
-
if (__hasOwnProp$
|
|
4387
|
-
__defNormalProp$
|
|
4388
|
-
if (__getOwnPropSymbols$
|
|
4389
|
-
for (var prop of __getOwnPropSymbols$
|
|
4390
|
-
if (__propIsEnum$
|
|
4391
|
-
__defNormalProp$
|
|
4800
|
+
if (__hasOwnProp$j.call(b, prop))
|
|
4801
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
4802
|
+
if (__getOwnPropSymbols$j)
|
|
4803
|
+
for (var prop of __getOwnPropSymbols$j(b)) {
|
|
4804
|
+
if (__propIsEnum$j.call(b, prop))
|
|
4805
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
4392
4806
|
}
|
|
4393
4807
|
return a;
|
|
4394
4808
|
};
|
|
@@ -4402,8 +4816,8 @@
|
|
|
4402
4816
|
switch (action.type) {
|
|
4403
4817
|
case "SET_POINTER" /* SET_POINTER */: {
|
|
4404
4818
|
const { uuid, left, text, visible, value } = action.payload;
|
|
4405
|
-
return __spreadProps$g(__spreadValues$
|
|
4406
|
-
pointers: __spreadProps$g(__spreadValues$
|
|
4819
|
+
return __spreadProps$g(__spreadValues$j({}, state), {
|
|
4820
|
+
pointers: __spreadProps$g(__spreadValues$j({}, state.pointers), {
|
|
4407
4821
|
[uuid]: {
|
|
4408
4822
|
left,
|
|
4409
4823
|
text,
|
|
@@ -4415,16 +4829,16 @@
|
|
|
4415
4829
|
}
|
|
4416
4830
|
case "SET_RESOURCE_DATA" /* SET_RESOURCE_DATA */: {
|
|
4417
4831
|
const { uuid, data } = action.payload;
|
|
4418
|
-
return __spreadProps$g(__spreadValues$
|
|
4419
|
-
resourceData: __spreadProps$g(__spreadValues$
|
|
4832
|
+
return __spreadProps$g(__spreadValues$j({}, state), {
|
|
4833
|
+
resourceData: __spreadProps$g(__spreadValues$j({}, state.resourceData), {
|
|
4420
4834
|
[uuid]: data
|
|
4421
4835
|
})
|
|
4422
4836
|
});
|
|
4423
4837
|
}
|
|
4424
4838
|
case "SET_AVERAGE_DATA" /* SET_AVERAGE_DATA */: {
|
|
4425
4839
|
const { uuid, average } = action.payload;
|
|
4426
|
-
return __spreadProps$g(__spreadValues$
|
|
4427
|
-
averageData: __spreadProps$g(__spreadValues$
|
|
4840
|
+
return __spreadProps$g(__spreadValues$j({}, state), {
|
|
4841
|
+
averageData: __spreadProps$g(__spreadValues$j({}, state.averageData), {
|
|
4428
4842
|
[uuid]: average
|
|
4429
4843
|
})
|
|
4430
4844
|
});
|
|
@@ -4435,21 +4849,21 @@
|
|
|
4435
4849
|
}
|
|
4436
4850
|
};
|
|
4437
4851
|
|
|
4438
|
-
var __defProp$
|
|
4852
|
+
var __defProp$i = Object.defineProperty;
|
|
4439
4853
|
var __defProps$f = Object.defineProperties;
|
|
4440
4854
|
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
4441
|
-
var __getOwnPropSymbols$
|
|
4442
|
-
var __hasOwnProp$
|
|
4443
|
-
var __propIsEnum$
|
|
4444
|
-
var __defNormalProp$
|
|
4445
|
-
var __spreadValues$
|
|
4855
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
4856
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
4857
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
4858
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4859
|
+
var __spreadValues$i = (a, b) => {
|
|
4446
4860
|
for (var prop in b || (b = {}))
|
|
4447
|
-
if (__hasOwnProp$
|
|
4448
|
-
__defNormalProp$
|
|
4449
|
-
if (__getOwnPropSymbols$
|
|
4450
|
-
for (var prop of __getOwnPropSymbols$
|
|
4451
|
-
if (__propIsEnum$
|
|
4452
|
-
__defNormalProp$
|
|
4861
|
+
if (__hasOwnProp$i.call(b, prop))
|
|
4862
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
4863
|
+
if (__getOwnPropSymbols$i)
|
|
4864
|
+
for (var prop of __getOwnPropSymbols$i(b)) {
|
|
4865
|
+
if (__propIsEnum$i.call(b, prop))
|
|
4866
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
4453
4867
|
}
|
|
4454
4868
|
return a;
|
|
4455
4869
|
};
|
|
@@ -4474,22 +4888,22 @@
|
|
|
4474
4888
|
)) {
|
|
4475
4889
|
return state;
|
|
4476
4890
|
}
|
|
4477
|
-
return __spreadProps$f(__spreadValues$
|
|
4478
|
-
stack: state.stack.concat(__spreadProps$f(__spreadValues$
|
|
4891
|
+
return __spreadProps$f(__spreadValues$i({}, state), {
|
|
4892
|
+
stack: state.stack.concat(__spreadProps$f(__spreadValues$i({}, action.payload), {
|
|
4479
4893
|
id: MODAL_ID++
|
|
4480
4894
|
}))
|
|
4481
4895
|
});
|
|
4482
4896
|
case "POP_MODAL" /* POP_MODAL */:
|
|
4483
|
-
return __spreadProps$f(__spreadValues$
|
|
4897
|
+
return __spreadProps$f(__spreadValues$i({}, state), {
|
|
4484
4898
|
stack: state.stack.slice(0, -1)
|
|
4485
4899
|
});
|
|
4486
4900
|
case "REMOVE_MODAL" /* REMOVE_MODAL */:
|
|
4487
|
-
return __spreadProps$f(__spreadValues$
|
|
4901
|
+
return __spreadProps$f(__spreadValues$i({}, state), {
|
|
4488
4902
|
closeId: 0,
|
|
4489
4903
|
stack: state.stack.filter((m) => m.id !== action.id)
|
|
4490
4904
|
});
|
|
4491
4905
|
case "CLOSE_MODAL" /* CLOSE_MODAL */:
|
|
4492
|
-
return __spreadProps$f(__spreadValues$
|
|
4906
|
+
return __spreadProps$f(__spreadValues$i({}, state), {
|
|
4493
4907
|
closeId: action.id
|
|
4494
4908
|
});
|
|
4495
4909
|
default:
|
|
@@ -4546,21 +4960,21 @@
|
|
|
4546
4960
|
const HorizontalStepContentStyle = "h1xo7yjb";
|
|
4547
4961
|
const VerticalStepContentStyle = "v1f2f7cy";
|
|
4548
4962
|
|
|
4549
|
-
var __defProp$
|
|
4963
|
+
var __defProp$h = Object.defineProperty;
|
|
4550
4964
|
var __defProps$e = Object.defineProperties;
|
|
4551
4965
|
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
|
4552
|
-
var __getOwnPropSymbols$
|
|
4553
|
-
var __hasOwnProp$
|
|
4554
|
-
var __propIsEnum$
|
|
4555
|
-
var __defNormalProp$
|
|
4556
|
-
var __spreadValues$
|
|
4966
|
+
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
|
4967
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
4968
|
+
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
|
4969
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4970
|
+
var __spreadValues$h = (a, b) => {
|
|
4557
4971
|
for (var prop in b || (b = {}))
|
|
4558
|
-
if (__hasOwnProp$
|
|
4559
|
-
__defNormalProp$
|
|
4560
|
-
if (__getOwnPropSymbols$
|
|
4561
|
-
for (var prop of __getOwnPropSymbols$
|
|
4562
|
-
if (__propIsEnum$
|
|
4563
|
-
__defNormalProp$
|
|
4972
|
+
if (__hasOwnProp$h.call(b, prop))
|
|
4973
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
4974
|
+
if (__getOwnPropSymbols$h)
|
|
4975
|
+
for (var prop of __getOwnPropSymbols$h(b)) {
|
|
4976
|
+
if (__propIsEnum$h.call(b, prop))
|
|
4977
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
4564
4978
|
}
|
|
4565
4979
|
return a;
|
|
4566
4980
|
};
|
|
@@ -4568,11 +4982,11 @@
|
|
|
4568
4982
|
var __objRest$6 = (source, exclude) => {
|
|
4569
4983
|
var target = {};
|
|
4570
4984
|
for (var prop in source)
|
|
4571
|
-
if (__hasOwnProp$
|
|
4985
|
+
if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
4572
4986
|
target[prop] = source[prop];
|
|
4573
|
-
if (source != null && __getOwnPropSymbols$
|
|
4574
|
-
for (var prop of __getOwnPropSymbols$
|
|
4575
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4987
|
+
if (source != null && __getOwnPropSymbols$h)
|
|
4988
|
+
for (var prop of __getOwnPropSymbols$h(source)) {
|
|
4989
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
|
|
4576
4990
|
target[prop] = source[prop];
|
|
4577
4991
|
}
|
|
4578
4992
|
return target;
|
|
@@ -4588,7 +5002,7 @@
|
|
|
4588
5002
|
setTooltipEnable({});
|
|
4589
5003
|
}
|
|
4590
5004
|
}, [textRef]);
|
|
4591
|
-
return /* @__PURE__ */ React__namespace.default.createElement(Tooltip, __spreadProps$e(__spreadValues$
|
|
5005
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Tooltip, __spreadProps$e(__spreadValues$h({}, tooltipEnable), { title: step.title }), /* @__PURE__ */ React__namespace.default.createElement(
|
|
4592
5006
|
"div",
|
|
4593
5007
|
{
|
|
4594
5008
|
className: isVerticalMode ? VerticalStepContentStyle : HorizontalStepContentStyle
|
|
@@ -4623,14 +5037,14 @@
|
|
|
4623
5037
|
},
|
|
4624
5038
|
/* @__PURE__ */ React__namespace.default.createElement(
|
|
4625
5039
|
antd.Steps,
|
|
4626
|
-
__spreadProps$e(__spreadValues$
|
|
5040
|
+
__spreadProps$e(__spreadValues$h({}, stepsProps), {
|
|
4627
5041
|
direction,
|
|
4628
5042
|
current,
|
|
4629
5043
|
type: "default"
|
|
4630
5044
|
}),
|
|
4631
5045
|
(stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */ React__namespace.default.createElement(
|
|
4632
5046
|
antd.Steps.Step,
|
|
4633
|
-
__spreadProps$e(__spreadValues$
|
|
5047
|
+
__spreadProps$e(__spreadValues$h({
|
|
4634
5048
|
key: index
|
|
4635
5049
|
}, step), {
|
|
4636
5050
|
disabled: disabled || index > current,
|
|
@@ -4649,21 +5063,21 @@
|
|
|
4649
5063
|
);
|
|
4650
5064
|
};
|
|
4651
5065
|
|
|
4652
|
-
var __defProp$
|
|
5066
|
+
var __defProp$g = Object.defineProperty;
|
|
4653
5067
|
var __defProps$d = Object.defineProperties;
|
|
4654
5068
|
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
4655
|
-
var __getOwnPropSymbols$
|
|
4656
|
-
var __hasOwnProp$
|
|
4657
|
-
var __propIsEnum$
|
|
4658
|
-
var __defNormalProp$
|
|
4659
|
-
var __spreadValues$
|
|
5069
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
5070
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
5071
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
5072
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5073
|
+
var __spreadValues$g = (a, b) => {
|
|
4660
5074
|
for (var prop in b || (b = {}))
|
|
4661
|
-
if (__hasOwnProp$
|
|
4662
|
-
__defNormalProp$
|
|
4663
|
-
if (__getOwnPropSymbols$
|
|
4664
|
-
for (var prop of __getOwnPropSymbols$
|
|
4665
|
-
if (__propIsEnum$
|
|
4666
|
-
__defNormalProp$
|
|
5075
|
+
if (__hasOwnProp$g.call(b, prop))
|
|
5076
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
5077
|
+
if (__getOwnPropSymbols$g)
|
|
5078
|
+
for (var prop of __getOwnPropSymbols$g(b)) {
|
|
5079
|
+
if (__propIsEnum$g.call(b, prop))
|
|
5080
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
4667
5081
|
}
|
|
4668
5082
|
return a;
|
|
4669
5083
|
};
|
|
@@ -4671,11 +5085,11 @@
|
|
|
4671
5085
|
var __objRest$5 = (source, exclude) => {
|
|
4672
5086
|
var target = {};
|
|
4673
5087
|
for (var prop in source)
|
|
4674
|
-
if (__hasOwnProp$
|
|
5088
|
+
if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
4675
5089
|
target[prop] = source[prop];
|
|
4676
|
-
if (source != null && __getOwnPropSymbols$
|
|
4677
|
-
for (var prop of __getOwnPropSymbols$
|
|
4678
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
5090
|
+
if (source != null && __getOwnPropSymbols$g)
|
|
5091
|
+
for (var prop of __getOwnPropSymbols$g(source)) {
|
|
5092
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
|
|
4679
5093
|
target[prop] = source[prop];
|
|
4680
5094
|
}
|
|
4681
5095
|
return target;
|
|
@@ -4757,7 +5171,7 @@
|
|
|
4757
5171
|
}
|
|
4758
5172
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
4759
5173
|
antd.Modal,
|
|
4760
|
-
__spreadProps$d(__spreadValues$
|
|
5174
|
+
__spreadProps$d(__spreadValues$g({
|
|
4761
5175
|
maskClosable,
|
|
4762
5176
|
className: cs__default.default(
|
|
4763
5177
|
className,
|
|
@@ -4792,7 +5206,7 @@
|
|
|
4792
5206
|
prevText
|
|
4793
5207
|
), error && /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: "modal-error" }, error))), /* @__PURE__ */ React__namespace.default.createElement("div", { className: "modal-footer-btn-group" }, showCancel && /* @__PURE__ */ React__namespace.default.createElement(
|
|
4794
5208
|
Button,
|
|
4795
|
-
__spreadValues$
|
|
5209
|
+
__spreadValues$g({
|
|
4796
5210
|
type: "quiet",
|
|
4797
5211
|
onMouseDown: (e) => {
|
|
4798
5212
|
e.preventDefault();
|
|
@@ -4806,7 +5220,7 @@
|
|
|
4806
5220
|
cancelText
|
|
4807
5221
|
), showOk && /* @__PURE__ */ React__namespace.default.createElement(
|
|
4808
5222
|
Button,
|
|
4809
|
-
__spreadValues$
|
|
5223
|
+
__spreadValues$g({
|
|
4810
5224
|
onClick: (e) => {
|
|
4811
5225
|
var _a2, _b2;
|
|
4812
5226
|
onOk == null ? void 0 : onOk(e);
|
|
@@ -4848,22 +5262,22 @@
|
|
|
4848
5262
|
);
|
|
4849
5263
|
};
|
|
4850
5264
|
|
|
4851
|
-
var __defProp$
|
|
5265
|
+
var __defProp$f = Object.defineProperty;
|
|
4852
5266
|
var __defProps$c = Object.defineProperties;
|
|
4853
5267
|
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
4854
|
-
var __getOwnPropSymbols$
|
|
4855
|
-
var __hasOwnProp$
|
|
4856
|
-
var __propIsEnum$
|
|
4857
|
-
var __defNormalProp$
|
|
5268
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
5269
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
5270
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
5271
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, {
|
|
4858
5272
|
enumerable: true,
|
|
4859
5273
|
configurable: true,
|
|
4860
5274
|
writable: true,
|
|
4861
5275
|
value
|
|
4862
5276
|
}) : obj[key] = value;
|
|
4863
|
-
var __spreadValues$
|
|
4864
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
4865
|
-
if (__getOwnPropSymbols$
|
|
4866
|
-
if (__propIsEnum$
|
|
5277
|
+
var __spreadValues$f = (a, b) => {
|
|
5278
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$f.call(b, prop)) __defNormalProp$f(a, prop, b[prop]);
|
|
5279
|
+
if (__getOwnPropSymbols$f) for (var prop of __getOwnPropSymbols$f(b)) {
|
|
5280
|
+
if (__propIsEnum$f.call(b, prop)) __defNormalProp$f(a, prop, b[prop]);
|
|
4867
5281
|
}
|
|
4868
5282
|
return a;
|
|
4869
5283
|
};
|
|
@@ -4898,7 +5312,7 @@
|
|
|
4898
5312
|
observer == null ? void 0 : observer.disconnect();
|
|
4899
5313
|
};
|
|
4900
5314
|
});
|
|
4901
|
-
return /* @__PURE__ */React__namespace.default.createElement(Tooltip, __spreadProps$c(__spreadValues$
|
|
5315
|
+
return /* @__PURE__ */React__namespace.default.createElement(Tooltip, __spreadProps$c(__spreadValues$f({}, !ellipsis && {
|
|
4902
5316
|
visible: false
|
|
4903
5317
|
}), {
|
|
4904
5318
|
title: tooltip
|
|
@@ -5016,77 +5430,46 @@
|
|
|
5016
5430
|
}))));
|
|
5017
5431
|
};
|
|
5018
5432
|
|
|
5019
|
-
var __defProp$
|
|
5020
|
-
var __getOwnPropSymbols$
|
|
5021
|
-
var __hasOwnProp$
|
|
5022
|
-
var __propIsEnum$
|
|
5023
|
-
var __defNormalProp$
|
|
5024
|
-
var __spreadValues$
|
|
5025
|
-
for (var prop in b || (b = {}))
|
|
5026
|
-
if (__hasOwnProp$h.call(b, prop))
|
|
5027
|
-
__defNormalProp$h(a, prop, b[prop]);
|
|
5028
|
-
if (__getOwnPropSymbols$h)
|
|
5029
|
-
for (var prop of __getOwnPropSymbols$h(b)) {
|
|
5030
|
-
if (__propIsEnum$h.call(b, prop))
|
|
5031
|
-
__defNormalProp$h(a, prop, b[prop]);
|
|
5032
|
-
}
|
|
5033
|
-
return a;
|
|
5034
|
-
};
|
|
5035
|
-
const Percent = ({
|
|
5036
|
-
rawValue,
|
|
5037
|
-
decimals,
|
|
5038
|
-
saturated,
|
|
5039
|
-
valueClassName,
|
|
5040
|
-
unitClassName,
|
|
5041
|
-
emptyProps
|
|
5042
|
-
}) => {
|
|
5043
|
-
if (isEmpty(rawValue)) {
|
|
5044
|
-
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$h({}, emptyProps));
|
|
5045
|
-
}
|
|
5046
|
-
const { value, unit } = formatPercent(rawValue, decimals, saturated);
|
|
5047
|
-
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, unit));
|
|
5048
|
-
};
|
|
5049
|
-
|
|
5050
|
-
var __defProp$g = Object.defineProperty;
|
|
5051
|
-
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
5052
|
-
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
5053
|
-
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
5054
|
-
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5055
|
-
var __spreadValues$g = (a, b) => {
|
|
5433
|
+
var __defProp$e = Object.defineProperty;
|
|
5434
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
5435
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
5436
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
5437
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5438
|
+
var __spreadValues$e = (a, b) => {
|
|
5056
5439
|
for (var prop in b || (b = {}))
|
|
5057
|
-
if (__hasOwnProp$
|
|
5058
|
-
__defNormalProp$
|
|
5059
|
-
if (__getOwnPropSymbols$
|
|
5060
|
-
for (var prop of __getOwnPropSymbols$
|
|
5061
|
-
if (__propIsEnum$
|
|
5062
|
-
__defNormalProp$
|
|
5440
|
+
if (__hasOwnProp$e.call(b, prop))
|
|
5441
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
5442
|
+
if (__getOwnPropSymbols$e)
|
|
5443
|
+
for (var prop of __getOwnPropSymbols$e(b)) {
|
|
5444
|
+
if (__propIsEnum$e.call(b, prop))
|
|
5445
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
5063
5446
|
}
|
|
5064
5447
|
return a;
|
|
5065
5448
|
};
|
|
5066
|
-
const Progress = (props) => /* @__PURE__ */ React__namespace.default.createElement(antd.Progress, __spreadValues$
|
|
5449
|
+
const Progress = (props) => /* @__PURE__ */ React__namespace.default.createElement(antd.Progress, __spreadValues$e({}, props));
|
|
5067
5450
|
|
|
5068
|
-
var __defProp$
|
|
5069
|
-
var __getOwnPropSymbols$
|
|
5070
|
-
var __hasOwnProp$
|
|
5071
|
-
var __propIsEnum$
|
|
5072
|
-
var __defNormalProp$
|
|
5451
|
+
var __defProp$d = Object.defineProperty;
|
|
5452
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
5453
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
5454
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
5455
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, {
|
|
5073
5456
|
enumerable: true,
|
|
5074
5457
|
configurable: true,
|
|
5075
5458
|
writable: true,
|
|
5076
5459
|
value
|
|
5077
5460
|
}) : obj[key] = value;
|
|
5078
|
-
var __spreadValues$
|
|
5079
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
5080
|
-
if (__getOwnPropSymbols$
|
|
5081
|
-
if (__propIsEnum$
|
|
5461
|
+
var __spreadValues$d = (a, b) => {
|
|
5462
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$d.call(b, prop)) __defNormalProp$d(a, prop, b[prop]);
|
|
5463
|
+
if (__getOwnPropSymbols$d) for (var prop of __getOwnPropSymbols$d(b)) {
|
|
5464
|
+
if (__propIsEnum$d.call(b, prop)) __defNormalProp$d(a, prop, b[prop]);
|
|
5082
5465
|
}
|
|
5083
5466
|
return a;
|
|
5084
5467
|
};
|
|
5085
5468
|
var __objRest$4 = (source, exclude) => {
|
|
5086
5469
|
var target = {};
|
|
5087
|
-
for (var prop in source) if (__hasOwnProp$
|
|
5088
|
-
if (source != null && __getOwnPropSymbols$
|
|
5089
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
5470
|
+
for (var prop in source) if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
5471
|
+
if (source != null && __getOwnPropSymbols$d) for (var prop of __getOwnPropSymbols$d(source)) {
|
|
5472
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop)) target[prop] = source[prop];
|
|
5090
5473
|
}
|
|
5091
5474
|
return target;
|
|
5092
5475
|
};
|
|
@@ -5112,7 +5495,7 @@
|
|
|
5112
5495
|
className: core.cx("radio-description", Typo.Label.l4_regular)
|
|
5113
5496
|
}, description));
|
|
5114
5497
|
}
|
|
5115
|
-
return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement(antd.Radio, __spreadValues$
|
|
5498
|
+
return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement(antd.Radio, __spreadValues$d({
|
|
5116
5499
|
className: core.cx(className, RadioStyle, compact && "compact"),
|
|
5117
5500
|
checked: checked || false,
|
|
5118
5501
|
"data-test": context.name ? `${context.name}-${String(props.value)}` : String(props.value)
|
|
@@ -5130,7 +5513,7 @@
|
|
|
5130
5513
|
disabled: props.disabled,
|
|
5131
5514
|
name: props.name
|
|
5132
5515
|
}
|
|
5133
|
-
}, /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Group, __spreadValues$
|
|
5516
|
+
}, /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Group, __spreadValues$d({
|
|
5134
5517
|
className: core.cx(className, RadioGroupStyle)
|
|
5135
5518
|
}, props), children ? children : null));
|
|
5136
5519
|
};
|
|
@@ -5186,36 +5569,36 @@
|
|
|
5186
5569
|
className: "ant-radio-button-input-label"
|
|
5187
5570
|
}, typeof children === "string" ? children : ""));
|
|
5188
5571
|
};
|
|
5189
|
-
return /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Button, __spreadValues$
|
|
5572
|
+
return /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Button, __spreadValues$d({
|
|
5190
5573
|
className: core.cx(className, RadioButtonStyle),
|
|
5191
5574
|
value: radioButtonValue
|
|
5192
5575
|
}, props), renderChildren());
|
|
5193
5576
|
};
|
|
5194
5577
|
|
|
5195
|
-
var __defProp$
|
|
5196
|
-
var __getOwnPropSymbols$
|
|
5197
|
-
var __hasOwnProp$
|
|
5198
|
-
var __propIsEnum$
|
|
5199
|
-
var __defNormalProp$
|
|
5200
|
-
var __spreadValues$
|
|
5578
|
+
var __defProp$c = Object.defineProperty;
|
|
5579
|
+
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
5580
|
+
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
5581
|
+
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
5582
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5583
|
+
var __spreadValues$c = (a, b) => {
|
|
5201
5584
|
for (var prop in b || (b = {}))
|
|
5202
|
-
if (__hasOwnProp$
|
|
5203
|
-
__defNormalProp$
|
|
5204
|
-
if (__getOwnPropSymbols$
|
|
5205
|
-
for (var prop of __getOwnPropSymbols$
|
|
5206
|
-
if (__propIsEnum$
|
|
5207
|
-
__defNormalProp$
|
|
5585
|
+
if (__hasOwnProp$c.call(b, prop))
|
|
5586
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
5587
|
+
if (__getOwnPropSymbols$c)
|
|
5588
|
+
for (var prop of __getOwnPropSymbols$c(b)) {
|
|
5589
|
+
if (__propIsEnum$c.call(b, prop))
|
|
5590
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
5208
5591
|
}
|
|
5209
5592
|
return a;
|
|
5210
5593
|
};
|
|
5211
5594
|
var __objRest$3 = (source, exclude) => {
|
|
5212
5595
|
var target = {};
|
|
5213
5596
|
for (var prop in source)
|
|
5214
|
-
if (__hasOwnProp$
|
|
5597
|
+
if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
5215
5598
|
target[prop] = source[prop];
|
|
5216
|
-
if (source != null && __getOwnPropSymbols$
|
|
5217
|
-
for (var prop of __getOwnPropSymbols$
|
|
5218
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
5599
|
+
if (source != null && __getOwnPropSymbols$c)
|
|
5600
|
+
for (var prop of __getOwnPropSymbols$c(source)) {
|
|
5601
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
|
|
5219
5602
|
target[prop] = source[prop];
|
|
5220
5603
|
}
|
|
5221
5604
|
return target;
|
|
@@ -5225,7 +5608,7 @@
|
|
|
5225
5608
|
const onSearch = ___default.default.debounce(onChange, debounceWait);
|
|
5226
5609
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
5227
5610
|
Input,
|
|
5228
|
-
__spreadValues$
|
|
5611
|
+
__spreadValues$c({
|
|
5229
5612
|
style: { width: 276 },
|
|
5230
5613
|
prefix: /* @__PURE__ */ React__namespace.default.createElement(icons.SearchOutlined, null),
|
|
5231
5614
|
onChange: (e) => onSearch(e.target.value)
|
|
@@ -5233,38 +5616,6 @@
|
|
|
5233
5616
|
);
|
|
5234
5617
|
};
|
|
5235
5618
|
|
|
5236
|
-
var __defProp$d = Object.defineProperty;
|
|
5237
|
-
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
5238
|
-
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
5239
|
-
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
5240
|
-
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5241
|
-
var __spreadValues$d = (a, b) => {
|
|
5242
|
-
for (var prop in b || (b = {}))
|
|
5243
|
-
if (__hasOwnProp$d.call(b, prop))
|
|
5244
|
-
__defNormalProp$d(a, prop, b[prop]);
|
|
5245
|
-
if (__getOwnPropSymbols$d)
|
|
5246
|
-
for (var prop of __getOwnPropSymbols$d(b)) {
|
|
5247
|
-
if (__propIsEnum$d.call(b, prop))
|
|
5248
|
-
__defNormalProp$d(a, prop, b[prop]);
|
|
5249
|
-
}
|
|
5250
|
-
return a;
|
|
5251
|
-
};
|
|
5252
|
-
const Second = ({
|
|
5253
|
-
rawValue,
|
|
5254
|
-
decimals,
|
|
5255
|
-
valueClassName,
|
|
5256
|
-
unitClassName,
|
|
5257
|
-
abbreviate,
|
|
5258
|
-
emptyProps
|
|
5259
|
-
}) => {
|
|
5260
|
-
const { t } = useParrotTranslation();
|
|
5261
|
-
if (isEmpty(rawValue)) {
|
|
5262
|
-
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$d({}, emptyProps));
|
|
5263
|
-
}
|
|
5264
|
-
const { value, unit } = formatSeconds(rawValue, decimals);
|
|
5265
|
-
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value, " "), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, t(`common.${abbreviate ? `${unit}_abbreviation` : unit}`)));
|
|
5266
|
-
};
|
|
5267
|
-
|
|
5268
5619
|
const inputStyle = "igz4le8";
|
|
5269
5620
|
const SimplePagination = props => {
|
|
5270
5621
|
const {
|
|
@@ -5341,36 +5692,6 @@
|
|
|
5341
5692
|
})));
|
|
5342
5693
|
};
|
|
5343
5694
|
|
|
5344
|
-
var __defProp$c = Object.defineProperty;
|
|
5345
|
-
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
5346
|
-
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
5347
|
-
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
5348
|
-
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5349
|
-
var __spreadValues$c = (a, b) => {
|
|
5350
|
-
for (var prop in b || (b = {}))
|
|
5351
|
-
if (__hasOwnProp$c.call(b, prop))
|
|
5352
|
-
__defNormalProp$c(a, prop, b[prop]);
|
|
5353
|
-
if (__getOwnPropSymbols$c)
|
|
5354
|
-
for (var prop of __getOwnPropSymbols$c(b)) {
|
|
5355
|
-
if (__propIsEnum$c.call(b, prop))
|
|
5356
|
-
__defNormalProp$c(a, prop, b[prop]);
|
|
5357
|
-
}
|
|
5358
|
-
return a;
|
|
5359
|
-
};
|
|
5360
|
-
const Speed = ({
|
|
5361
|
-
rawValue,
|
|
5362
|
-
decimals,
|
|
5363
|
-
valueClassName,
|
|
5364
|
-
unitClassName,
|
|
5365
|
-
emptyProps
|
|
5366
|
-
}) => {
|
|
5367
|
-
if (isEmpty(rawValue)) {
|
|
5368
|
-
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$c({}, emptyProps));
|
|
5369
|
-
}
|
|
5370
|
-
const { value, unit } = formatSpeed(rawValue, decimals);
|
|
5371
|
-
return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
|
|
5372
|
-
};
|
|
5373
|
-
|
|
5374
5695
|
var __defProp$b = Object.defineProperty;
|
|
5375
5696
|
var __defProps$b = Object.defineProperties;
|
|
5376
5697
|
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
|
@@ -6076,7 +6397,7 @@
|
|
|
6076
6397
|
const triggerValidate = React.useCallback(
|
|
6077
6398
|
(currentValue) => {
|
|
6078
6399
|
var _a;
|
|
6079
|
-
const value = currentValue
|
|
6400
|
+
const value = currentValue != null ? currentValue : data[rowIndex][column.key];
|
|
6080
6401
|
const rowData = __spreadProps$7(__spreadValues$7({}, data[rowIndex]), { [column.key]: value });
|
|
6081
6402
|
const rowValidateRes = getRowValidateResult(rowData);
|
|
6082
6403
|
if (rowValidateRes) {
|
|
@@ -7027,7 +7348,11 @@
|
|
|
7027
7348
|
TruncatedTextWithTooltip,
|
|
7028
7349
|
Counting,
|
|
7029
7350
|
Breadcrumb,
|
|
7030
|
-
CircleProgress
|
|
7351
|
+
CircleProgress,
|
|
7352
|
+
ChartWithTooltip,
|
|
7353
|
+
ChartWithUnit,
|
|
7354
|
+
DonutChart,
|
|
7355
|
+
UnitWithChart
|
|
7031
7356
|
};
|
|
7032
7357
|
kit.option.isSelectOption = true;
|
|
7033
7358
|
kit.button.__ANT_BUTTON = true;
|
|
@@ -7349,13 +7674,18 @@
|
|
|
7349
7674
|
exports.BaseIcon = BaseIcon;
|
|
7350
7675
|
exports.Button = Button;
|
|
7351
7676
|
exports.ButtonStyle = ButtonStyle;
|
|
7677
|
+
exports.CannotOperationInfo = CannotOperationInfo;
|
|
7678
|
+
exports.ContentWrapper = ContentWrapper;
|
|
7679
|
+
exports.Desc = Desc;
|
|
7352
7680
|
exports.FailedLoad = FailedLoad;
|
|
7353
7681
|
exports.FullView = FullView;
|
|
7354
7682
|
exports.Icon = Icon;
|
|
7355
7683
|
exports.InputTagItem = InputTagItem;
|
|
7356
7684
|
exports.KitStoreProvider = KitStoreProvider;
|
|
7685
|
+
exports.LightDesc = LightDesc;
|
|
7357
7686
|
exports.ModalActions = ModalActions;
|
|
7358
7687
|
exports.ModalStack = ModalStack;
|
|
7688
|
+
exports.RadioDesc = RadioDesc;
|
|
7359
7689
|
exports.Truncate = Truncate;
|
|
7360
7690
|
exports.Typo = Typo;
|
|
7361
7691
|
exports.UIKitProvider = UIKitProvider;
|
|
@@ -7368,6 +7698,7 @@
|
|
|
7368
7698
|
exports.kitContext = kitContext;
|
|
7369
7699
|
exports.popModal = popModal;
|
|
7370
7700
|
exports.pushModal = pushModal;
|
|
7701
|
+
exports.radioStyle = radioStyle;
|
|
7371
7702
|
exports.stringifyPlan = stringifyPlan;
|
|
7372
7703
|
exports.tableStyleCover = tableStyleCover;
|
|
7373
7704
|
exports.tickFormatter = tickFormatter;
|