@cloudtower/eagle 0.23.0 → 0.23.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/UIKitProvider/index.d.ts +2 -0
- package/dist/esm/index.js +60 -55
- package/dist/esm/stats1.html +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/spec/base.d.ts +2 -0
- package/dist/style.css +1558 -1558
- package/dist/umd/index.js +61 -54
- package/dist/umd/stats1.html +1 -1
- 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('antd'), require('react'), require('classnames'), require('lodash'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'antd', 'react', 'classnames', 'lodash', '
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.index = {}, global.antd, global.React, global.cs, global._, global.
|
|
5
|
-
})(this, (function (exports, antd, React, cs, _,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('antd'), require('react'), require('classnames'), require('lodash'), require('react-i18next'), require('@linaria/core'), require('@linaria/react'), require('moment'), require('react-dom'), require('react-is'), require('@ant-design/icons'), require('redux'), require('react-redux'), require('@cloudtower/icons-react'), require('react-beautiful-dnd'), require('timezones.json'), require('@cloudtower/parrot'), require('dayjs'), require('recharts')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'antd', 'react', 'classnames', 'lodash', 'react-i18next', '@linaria/core', '@linaria/react', 'moment', 'react-dom', 'react-is', '@ant-design/icons', 'redux', 'react-redux', '@cloudtower/icons-react', 'react-beautiful-dnd', 'timezones.json', '@cloudtower/parrot', 'dayjs', 'recharts'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.index = {}, global.antd, global.React, global.cs, global._, global.reactI18next, global.core, global.react, global.moment, global.reactDom, global.reactIs, global.icons, global.redux, global.reactRedux, global.iconsReact, global.reactBeautifulDnd, global.TimeZones, global.parrot, global.dayjs));
|
|
5
|
+
})(this, (function (exports, antd, React, cs, _, reactI18next, core, react, moment, reactDom, reactIs, icons, redux, reactRedux, iconsReact, reactBeautifulDnd, TimeZones, parrot, dayjs) { 'use strict';
|
|
6
6
|
|
|
7
7
|
const MAGIC_METRIC_NULL = -2;
|
|
8
8
|
function formatBits(bits, decimals = 2) {
|
|
@@ -461,10 +461,11 @@
|
|
|
461
461
|
};
|
|
462
462
|
|
|
463
463
|
const Arch = (props) => {
|
|
464
|
+
const { t } = reactI18next.useTranslation();
|
|
464
465
|
const { architecture } = props;
|
|
465
466
|
let text = "";
|
|
466
467
|
if (architecture) {
|
|
467
|
-
text =
|
|
468
|
+
text = t(`components.Architecture_${architecture}`);
|
|
468
469
|
}
|
|
469
470
|
return /* @__PURE__ */ React.createElement("span", null, text);
|
|
470
471
|
};
|
|
@@ -959,11 +960,12 @@
|
|
|
959
960
|
valueClassName,
|
|
960
961
|
unitClassName
|
|
961
962
|
}) => {
|
|
963
|
+
const { t } = reactI18next.useTranslation();
|
|
962
964
|
if (isEmpty(rawValue)) {
|
|
963
965
|
return Empty;
|
|
964
966
|
}
|
|
965
967
|
if (rawValue === -1) {
|
|
966
|
-
return /* @__PURE__ */ React.createElement("span", null,
|
|
968
|
+
return /* @__PURE__ */ React.createElement("span", null, t("common.calculation"));
|
|
967
969
|
}
|
|
968
970
|
const { value, unit } = formatBytes(rawValue, decimals);
|
|
969
971
|
if (noUnitOnZero && value === 0) {
|
|
@@ -2581,10 +2583,11 @@
|
|
|
2581
2583
|
};
|
|
2582
2584
|
const Modal = (props) => {
|
|
2583
2585
|
var _b;
|
|
2586
|
+
const { t } = reactI18next.useTranslation();
|
|
2584
2587
|
const _a = props, {
|
|
2585
2588
|
error,
|
|
2586
|
-
okText =
|
|
2587
|
-
cancelText =
|
|
2589
|
+
okText = t("common.confirm"),
|
|
2590
|
+
cancelText = t("common.cancel"),
|
|
2588
2591
|
confirmLoading,
|
|
2589
2592
|
okButtonProps,
|
|
2590
2593
|
onOk,
|
|
@@ -2633,12 +2636,12 @@
|
|
|
2633
2636
|
let text = (okButtonProps == null ? void 0 : okButtonProps.children) || okText;
|
|
2634
2637
|
if (wizard && typeof wizard === "object" && wizard.steps[wizard.step]) {
|
|
2635
2638
|
const { step, steps } = wizard;
|
|
2636
|
-
text = step < steps.length - 1 ? steps[step].okText ||
|
|
2639
|
+
text = step < steps.length - 1 ? steps[step].okText || t("common.next_step") : steps[step].okText || text;
|
|
2637
2640
|
}
|
|
2638
2641
|
return text;
|
|
2639
|
-
}, [okButtonProps, okText, wizard]);
|
|
2642
|
+
}, [okButtonProps == null ? void 0 : okButtonProps.children, okText, t, wizard]);
|
|
2640
2643
|
const prevText = React.useMemo(() => {
|
|
2641
|
-
let text = /* @__PURE__ */ React.createElement("span", null, "< ",
|
|
2644
|
+
let text = /* @__PURE__ */ React.createElement("span", null, "< ", t("common.prev_step"));
|
|
2642
2645
|
if (wizard && typeof wizard === "object" && wizard.steps[wizard.step]) {
|
|
2643
2646
|
const { step, steps } = wizard;
|
|
2644
2647
|
if (typeof steps[step].prevText === "string") {
|
|
@@ -2648,7 +2651,7 @@
|
|
|
2648
2651
|
}
|
|
2649
2652
|
}
|
|
2650
2653
|
return text;
|
|
2651
|
-
}, [wizard]);
|
|
2654
|
+
}, [t, wizard]);
|
|
2652
2655
|
const stepsRef = React.useRef([]);
|
|
2653
2656
|
if (wizard && typeof wizard === "object" && !wizard.destroyOtherStep && wizard.steps[wizard.step]) {
|
|
2654
2657
|
stepsRef.current[wizard.step] = wizard.steps[wizard.step].render;
|
|
@@ -2765,6 +2768,9 @@
|
|
|
2765
2768
|
selectorVisible = true
|
|
2766
2769
|
} = props;
|
|
2767
2770
|
const sizeRef = React.useRef(size);
|
|
2771
|
+
const {
|
|
2772
|
+
t
|
|
2773
|
+
} = reactI18next.useTranslation();
|
|
2768
2774
|
React.useEffect(() => {
|
|
2769
2775
|
if (sizeRef.current === size) return;
|
|
2770
2776
|
sizeRef.current = size;
|
|
@@ -2779,18 +2785,18 @@
|
|
|
2779
2785
|
const lastRange2 = value + size;
|
|
2780
2786
|
return {
|
|
2781
2787
|
value: i + 1,
|
|
2782
|
-
text:
|
|
2788
|
+
text: t("components.pagination_range", {
|
|
2783
2789
|
range1: value + 1,
|
|
2784
2790
|
range2: lastRange2 > count ? count : lastRange2
|
|
2785
2791
|
})
|
|
2786
2792
|
};
|
|
2787
2793
|
});
|
|
2788
|
-
}, [selectorVisible, count, size]);
|
|
2794
|
+
}, [selectorVisible, count, size, t]);
|
|
2789
2795
|
let lastRange = current * size;
|
|
2790
2796
|
lastRange = lastRange > count ? count : lastRange;
|
|
2791
2797
|
const renderLeft = () => {
|
|
2792
2798
|
if (!showTotal) return null;
|
|
2793
|
-
const content =
|
|
2799
|
+
const content = t("components.pagination_total", {
|
|
2794
2800
|
range1: (current - 1) * size + 1,
|
|
2795
2801
|
range2: lastRange,
|
|
2796
2802
|
total: count
|
|
@@ -2800,7 +2806,7 @@
|
|
|
2800
2806
|
placement: "topLeft",
|
|
2801
2807
|
overlayClassName: DropdownOverlayStyle,
|
|
2802
2808
|
overlay: /* @__PURE__ */React.createElement(antd.Menu, null, /* @__PURE__ */React.createElement(antd.Menu.ItemGroup, {
|
|
2803
|
-
title:
|
|
2809
|
+
title: t("components.push_to")
|
|
2804
2810
|
}, selectOptions.map(option => /* @__PURE__ */React.createElement(antd.Menu.Item, {
|
|
2805
2811
|
key: option.value,
|
|
2806
2812
|
onClick: () => onChange(option.value)
|
|
@@ -2835,7 +2841,7 @@
|
|
|
2835
2841
|
onClick: () => {
|
|
2836
2842
|
onChange == null ? void 0 : onChange(current - 1);
|
|
2837
2843
|
}
|
|
2838
|
-
},
|
|
2844
|
+
}, t("components.previous_items", {
|
|
2839
2845
|
size
|
|
2840
2846
|
})), current * size < count && /* @__PURE__ */React.createElement(Button, {
|
|
2841
2847
|
className: "next-btn",
|
|
@@ -2848,7 +2854,7 @@
|
|
|
2848
2854
|
onClick: () => {
|
|
2849
2855
|
onChange == null ? void 0 : onChange(current + 1);
|
|
2850
2856
|
}
|
|
2851
|
-
},
|
|
2857
|
+
}, t("components.next_items", {
|
|
2852
2858
|
size
|
|
2853
2859
|
}))));
|
|
2854
2860
|
};
|
|
@@ -3059,11 +3065,12 @@
|
|
|
3059
3065
|
unitClassName,
|
|
3060
3066
|
abbreviate
|
|
3061
3067
|
}) => {
|
|
3068
|
+
const { t } = reactI18next.useTranslation();
|
|
3062
3069
|
if (isEmpty(rawValue)) {
|
|
3063
3070
|
return Empty;
|
|
3064
3071
|
}
|
|
3065
3072
|
const { value, unit } = formatSeconds(rawValue, decimals);
|
|
3066
|
-
return /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement("span", { className: core.cx("value", valueClassName) }, value, " "), /* @__PURE__ */ React.createElement("span", { className: core.cx("unit", unitClassName) },
|
|
3073
|
+
return /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement("span", { className: core.cx("value", valueClassName) }, value, " "), /* @__PURE__ */ React.createElement("span", { className: core.cx("unit", unitClassName) }, t(`common.${abbreviate ? `${unit}_abbreviation` : unit}`)));
|
|
3067
3074
|
};
|
|
3068
3075
|
|
|
3069
3076
|
const inputStyle = "igz4le8";
|
|
@@ -3075,6 +3082,9 @@
|
|
|
3075
3082
|
size,
|
|
3076
3083
|
onPageChange
|
|
3077
3084
|
} = props;
|
|
3085
|
+
const {
|
|
3086
|
+
t
|
|
3087
|
+
} = reactI18next.useTranslation();
|
|
3078
3088
|
const pageLength = Math.ceil(count / size);
|
|
3079
3089
|
const showPrev = current > 1;
|
|
3080
3090
|
const showNext = current * size < count;
|
|
@@ -3090,7 +3100,7 @@
|
|
|
3090
3100
|
className: cs(PaginationStyle, "pagination-wrapper", className)
|
|
3091
3101
|
}, /* @__PURE__ */React.createElement("span", {
|
|
3092
3102
|
className: Typo.Label.l3_regular_title
|
|
3093
|
-
},
|
|
3103
|
+
}, t("components.pagination_lots_total", {
|
|
3094
3104
|
total: count
|
|
3095
3105
|
})), /* @__PURE__ */React.createElement("span", {
|
|
3096
3106
|
className: "pagination-right"
|
|
@@ -3524,6 +3534,7 @@
|
|
|
3524
3534
|
updateData,
|
|
3525
3535
|
data
|
|
3526
3536
|
} = props;
|
|
3537
|
+
const { t } = reactI18next.useTranslation();
|
|
3527
3538
|
const _a = buttonProps || {}, {
|
|
3528
3539
|
disabled: disabledFromProp,
|
|
3529
3540
|
onClick
|
|
@@ -3564,7 +3575,7 @@
|
|
|
3564
3575
|
},
|
|
3565
3576
|
disabled
|
|
3566
3577
|
}),
|
|
3567
|
-
CustomizedButtonText ||
|
|
3578
|
+
CustomizedButtonText || t("components.add")
|
|
3568
3579
|
), typeof maximum === "number" ? /* @__PURE__ */ React.createElement(
|
|
3569
3580
|
"span",
|
|
3570
3581
|
{
|
|
@@ -3574,7 +3585,7 @@
|
|
|
3574
3585
|
disabled && "disabled"
|
|
3575
3586
|
)
|
|
3576
3587
|
},
|
|
3577
|
-
|
|
3588
|
+
t("components.maximum_row_count_desc", {
|
|
3578
3589
|
count: maximum
|
|
3579
3590
|
})
|
|
3580
3591
|
) : null);
|
|
@@ -3583,6 +3594,7 @@
|
|
|
3583
3594
|
const AffixColumnHeaderCell = ({ data, column, onChange, onBlur }) => {
|
|
3584
3595
|
const [suffix, setSuffix] = React.useState("");
|
|
3585
3596
|
const [prefix, setPrefix] = React.useState("");
|
|
3597
|
+
const { t } = reactI18next.useTranslation();
|
|
3586
3598
|
const onPrefixChange = React.useCallback(
|
|
3587
3599
|
(e) => {
|
|
3588
3600
|
const newPrefix = e.target.value;
|
|
@@ -3603,7 +3615,7 @@
|
|
|
3603
3615
|
antd.Input,
|
|
3604
3616
|
{
|
|
3605
3617
|
value: prefix,
|
|
3606
|
-
placeholder:
|
|
3618
|
+
placeholder: t("components.prefix"),
|
|
3607
3619
|
size: "small",
|
|
3608
3620
|
onChange: onPrefixChange,
|
|
3609
3621
|
onBlur
|
|
@@ -3612,7 +3624,7 @@
|
|
|
3612
3624
|
antd.Input,
|
|
3613
3625
|
{
|
|
3614
3626
|
value: suffix,
|
|
3615
|
-
placeholder:
|
|
3627
|
+
placeholder: t("components.suffix"),
|
|
3616
3628
|
size: "small",
|
|
3617
3629
|
onChange: onSuffixChange,
|
|
3618
3630
|
onBlur
|
|
@@ -4003,6 +4015,7 @@
|
|
|
4003
4015
|
rowValidator,
|
|
4004
4016
|
validateAll
|
|
4005
4017
|
} = props;
|
|
4018
|
+
const { t } = reactI18next.useTranslation();
|
|
4006
4019
|
const rowData = data[rowIndex];
|
|
4007
4020
|
const [rowError, setRowError] = React.useState();
|
|
4008
4021
|
const deleteRow = React.useCallback(
|
|
@@ -4033,7 +4046,7 @@
|
|
|
4033
4046
|
}
|
|
4034
4047
|
}
|
|
4035
4048
|
);
|
|
4036
|
-
const FinalRenderIcon = isRowDeleteDisabled ? DeleteIcon : /* @__PURE__ */ React.createElement(Tooltip, { title:
|
|
4049
|
+
const FinalRenderIcon = isRowDeleteDisabled ? DeleteIcon : /* @__PURE__ */ React.createElement(Tooltip, { title: t("components.remove") }, DeleteIcon);
|
|
4037
4050
|
return (deleteConfig == null ? void 0 : deleteConfig.deletable) ? [FinalRenderIcon] : void 0;
|
|
4038
4051
|
}, [rowIndex, deleteConfig, data, deleteRow]);
|
|
4039
4052
|
const getRowValidateResult = React.useCallback(
|
|
@@ -4416,7 +4429,6 @@
|
|
|
4416
4429
|
const OptionSecondLineStyle = core.cx("of4y382", Typo.Label.l4_regular);
|
|
4417
4430
|
const TagStyle = "t19903l9";
|
|
4418
4431
|
const BrowserTimeValue = "browser_time_zone";
|
|
4419
|
-
const DefaultTimeValue = "default_time_zone";
|
|
4420
4432
|
const browserTzName = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
4421
4433
|
const browserTz = allTimeZones.find(tz => tz.value === browserTzName) || allTimeZones[0];
|
|
4422
4434
|
const TimeZoneSelect = props => {
|
|
@@ -4426,23 +4438,20 @@
|
|
|
4426
4438
|
disabled,
|
|
4427
4439
|
defaultUseBrowserTime,
|
|
4428
4440
|
className,
|
|
4429
|
-
placeholder
|
|
4430
|
-
defaultOptionValue
|
|
4441
|
+
placeholder
|
|
4431
4442
|
} = props;
|
|
4432
4443
|
const [innerValue, setInnerValue] = React.useState(value);
|
|
4433
|
-
const
|
|
4434
|
-
|
|
4435
|
-
}
|
|
4444
|
+
const {
|
|
4445
|
+
t
|
|
4446
|
+
} = reactI18next.useTranslation();
|
|
4436
4447
|
const _onChange = React.useCallback(val => {
|
|
4437
4448
|
setInnerValue(val);
|
|
4438
4449
|
if (val === BrowserTimeValue) {
|
|
4439
4450
|
onChange(browserTzName);
|
|
4440
|
-
} else if (val === DefaultTimeValue && defaultTz) {
|
|
4441
|
-
onChange(defaultTz == null ? void 0 : defaultTz.value);
|
|
4442
4451
|
} else {
|
|
4443
4452
|
onChange(val);
|
|
4444
4453
|
}
|
|
4445
|
-
}, [
|
|
4454
|
+
}, [onChange]);
|
|
4446
4455
|
React.useEffect(() => {
|
|
4447
4456
|
if (defaultUseBrowserTime && !value) {
|
|
4448
4457
|
setInnerValue(BrowserTimeValue);
|
|
@@ -4451,16 +4460,15 @@
|
|
|
4451
4460
|
}, []);
|
|
4452
4461
|
React.useEffect(() => {
|
|
4453
4462
|
if (innerValue === BrowserTimeValue && value === browserTzName) return;
|
|
4454
|
-
if (innerValue === DefaultTimeValue && value === (defaultTz == null ? void 0 : defaultTz.value)) return;
|
|
4455
4463
|
if (innerValue === value) return;
|
|
4456
4464
|
setInnerValue(value);
|
|
4457
|
-
}, [
|
|
4465
|
+
}, [innerValue, value]);
|
|
4458
4466
|
const timeZoneOptionGroups = timeZoneGroups.map(([key, timezones]) => {
|
|
4459
4467
|
return /* @__PURE__ */React.createElement(antd.Select.OptGroup, {
|
|
4460
4468
|
label: key.toUpperCase()
|
|
4461
4469
|
}, timezones.map(zone => {
|
|
4462
4470
|
return /* @__PURE__ */React.createElement(antd.Select.Option, {
|
|
4463
|
-
label: zone.value
|
|
4471
|
+
label: `${zone.value} (${getUTCOffsetText(zone.offset)})`,
|
|
4464
4472
|
value: zone.value,
|
|
4465
4473
|
className: OptionWrapperStyle
|
|
4466
4474
|
}, /* @__PURE__ */React.createElement(TimeZoneOption, {
|
|
@@ -4472,7 +4480,7 @@
|
|
|
4472
4480
|
return /* @__PURE__ */React.createElement(Select, {
|
|
4473
4481
|
className: core.cx(SelectStyle, className),
|
|
4474
4482
|
dropdownClassName: DropdownStyle,
|
|
4475
|
-
placeholder: /* @__PURE__ */React.createElement("span", null, placeholder ||
|
|
4483
|
+
placeholder: /* @__PURE__ */React.createElement("span", null, placeholder || t("components.time_zone_select_placeholder")),
|
|
4476
4484
|
value: innerValue,
|
|
4477
4485
|
onChange: _onChange,
|
|
4478
4486
|
showSearch: true,
|
|
@@ -4482,28 +4490,20 @@
|
|
|
4482
4490
|
},
|
|
4483
4491
|
optionLabelProp: "label",
|
|
4484
4492
|
input: {}
|
|
4485
|
-
},
|
|
4486
|
-
value: DefaultTimeValue,
|
|
4487
|
-
label: `${parrot.parrotI18n.t("components.default_time_zone")} (${getUTCOffsetText(defaultTz.offset)})`,
|
|
4488
|
-
className: OptionWrapperStyle
|
|
4489
|
-
}, /* @__PURE__ */React.createElement(TimeZoneOption, {
|
|
4490
|
-
key: DefaultTimeValue,
|
|
4491
|
-
customLabel: parrot.parrotI18n.t("components.default_time_zone"),
|
|
4492
|
-
timeZone: defaultTz
|
|
4493
|
-
})) : void 0, /* @__PURE__ */React.createElement(antd.Select.Option, {
|
|
4493
|
+
}, /* @__PURE__ */React.createElement(antd.Select.Option, {
|
|
4494
4494
|
value: BrowserTimeValue,
|
|
4495
|
-
label: `${
|
|
4495
|
+
label: `${t("components.browser_time_zone")} (${getUTCOffsetText(browserTz.offset)})`,
|
|
4496
4496
|
className: OptionWrapperStyle
|
|
4497
4497
|
}, /* @__PURE__ */React.createElement(TimeZoneOption, {
|
|
4498
4498
|
key: BrowserTimeValue,
|
|
4499
|
-
customLabel:
|
|
4499
|
+
customLabel: t("components.browser_time_zone"),
|
|
4500
4500
|
timeZone: browserTz
|
|
4501
4501
|
})), /* @__PURE__ */React.createElement(antd.Select.Option, {
|
|
4502
4502
|
value: "UTC",
|
|
4503
4503
|
className: OptionWrapperStyle
|
|
4504
4504
|
}, /* @__PURE__ */React.createElement(TimeZoneOption, {
|
|
4505
4505
|
key: "utc",
|
|
4506
|
-
customLabel:
|
|
4506
|
+
customLabel: t("components.coorddinated_universal_time"),
|
|
4507
4507
|
timeZone: {
|
|
4508
4508
|
value: "UTC",
|
|
4509
4509
|
text: "UTC",
|
|
@@ -4549,6 +4549,7 @@
|
|
|
4549
4549
|
pagination: Pagination,
|
|
4550
4550
|
select: Select,
|
|
4551
4551
|
option: antd.Select.Option,
|
|
4552
|
+
selectOptGroup: antd.Select.OptGroup,
|
|
4552
4553
|
table: Table,
|
|
4553
4554
|
row: antd.Row,
|
|
4554
4555
|
col: antd.Col,
|
|
@@ -4620,7 +4621,8 @@
|
|
|
4620
4621
|
antdMessage: antd.message,
|
|
4621
4622
|
antdButton: antd.Button,
|
|
4622
4623
|
antdSelect: antd.Select,
|
|
4623
|
-
antdTooltip: antd.Tooltip
|
|
4624
|
+
antdTooltip: antd.Tooltip,
|
|
4625
|
+
antdModal: antd.Modal
|
|
4624
4626
|
};
|
|
4625
4627
|
kit.option.isSelectOption = true;
|
|
4626
4628
|
kit.button.__ANT_BUTTON = true;
|
|
@@ -4654,6 +4656,9 @@
|
|
|
4654
4656
|
title,
|
|
4655
4657
|
refetchText
|
|
4656
4658
|
} = props;
|
|
4659
|
+
const {
|
|
4660
|
+
t
|
|
4661
|
+
} = reactI18next.useTranslation();
|
|
4657
4662
|
return /* @__PURE__ */React.createElement("div", {
|
|
4658
4663
|
className: cs(FailedLoadStyle, className),
|
|
4659
4664
|
title
|
|
@@ -4662,7 +4667,7 @@
|
|
|
4662
4667
|
}, String(error)), /* @__PURE__ */React.createElement(Button, {
|
|
4663
4668
|
type: "ordinary",
|
|
4664
4669
|
onClick: () => refetch()
|
|
4665
|
-
}, refetchText ||
|
|
4670
|
+
}, refetchText || t("common.retry")));
|
|
4666
4671
|
};
|
|
4667
4672
|
|
|
4668
4673
|
function getRangeTimestamp(dateRange) {
|
|
@@ -4765,7 +4770,7 @@
|
|
|
4765
4770
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
4766
4771
|
const kitContext = React.createContext(antdKit);
|
|
4767
4772
|
const UIKitProvider = (props) => {
|
|
4768
|
-
const { children, kit = antdKit, message } = props;
|
|
4773
|
+
const { children, kit = antdKit, message, antdConfig } = props;
|
|
4769
4774
|
const _kit = React.useMemo(() => {
|
|
4770
4775
|
if ((message == null ? void 0 : message.batch) != null) {
|
|
4771
4776
|
return __spreadProps(__spreadValues({}, kit), {
|
|
@@ -4774,7 +4779,7 @@
|
|
|
4774
4779
|
}
|
|
4775
4780
|
return kit;
|
|
4776
4781
|
}, [kit, message == null ? void 0 : message.batch]);
|
|
4777
|
-
return /* @__PURE__ */ React.createElement(kitContext.Provider, { value: _kit }, children);
|
|
4782
|
+
return /* @__PURE__ */ React.createElement(reactI18next.I18nextProvider, { i18n: parrot.parrotI18n }, /* @__PURE__ */ React.createElement(kitContext.Provider, { value: _kit }, /* @__PURE__ */ React.createElement(antd.ConfigProvider, __spreadValues({ autoInsertSpaceInButton: false }, antdConfig), children)));
|
|
4778
4783
|
};
|
|
4779
4784
|
const useUIKit = () => {
|
|
4780
4785
|
return React.useContext(kitContext);
|
|
@@ -4793,6 +4798,7 @@
|
|
|
4793
4798
|
exports.ButtonStyle = ButtonStyle;
|
|
4794
4799
|
exports.EntityAsyncStatus = EntityAsyncStatus;
|
|
4795
4800
|
exports.FailedLoad = FailedLoad;
|
|
4801
|
+
exports.FullView = FullView;
|
|
4796
4802
|
exports.Icon = Icon;
|
|
4797
4803
|
exports.InputTagItem = InputTagItem;
|
|
4798
4804
|
exports.KitStoreProvider = KitStoreProvider;
|
|
@@ -4804,6 +4810,7 @@
|
|
|
4804
4810
|
exports.UIKitStore = UIKitStore;
|
|
4805
4811
|
exports.UserSource = UserSource;
|
|
4806
4812
|
exports.ValidateTriggerType = ValidateTriggerType;
|
|
4813
|
+
exports.WizardBody = WizardBody;
|
|
4807
4814
|
exports.antdKit = antdKit;
|
|
4808
4815
|
exports.closeModal = closeModal;
|
|
4809
4816
|
exports.createBatchMessageMethods = createBatchMessageMethods;
|