@cloudtower/eagle 0.25.16 → 0.25.18
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/Modal/ImmersiveModal.d.ts +3 -2
- package/dist/components.css +433 -433
- package/dist/esm/index.js +432 -435
- package/dist/esm/stats1.html +1 -1
- package/dist/spec/base.d.ts +0 -2
- package/dist/store/modal.d.ts +0 -2
- package/dist/style.css +362 -362
- package/dist/umd/index.js +434 -437
- package/dist/umd/stats1.html +1 -1
- package/package.json +5 -5
package/dist/esm/index.js
CHANGED
|
@@ -21,11 +21,11 @@ import ExclamationCircleFilled from '@ant-design/icons/ExclamationCircleFilled';
|
|
|
21
21
|
import InfoCircleFilled from '@ant-design/icons/InfoCircleFilled';
|
|
22
22
|
import LoadingOutlined from '@ant-design/icons/LoadingOutlined';
|
|
23
23
|
import RCNotification from '@cloudtower/rc-notification';
|
|
24
|
+
import { combineReducers, createStore } from 'redux';
|
|
25
|
+
import { createDispatchHook, createSelectorHook, Provider } from 'react-redux';
|
|
24
26
|
import { XmarkRemove16SecondaryIcon, XmarkRemove16RegularRedIcon, HandlePoint816SecondaryIcon, HandlePoint816BlueIcon, CheckmarkDoneSuccessCorrect16BlueIcon } from '@cloudtower/icons-react';
|
|
25
27
|
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
|
|
26
28
|
import TimeZones from 'timezones.json';
|
|
27
|
-
import { createDispatchHook, createSelectorHook, Provider } from 'react-redux';
|
|
28
|
-
import { combineReducers, createStore } from 'redux';
|
|
29
29
|
import dayjs from 'dayjs';
|
|
30
30
|
import 'recharts';
|
|
31
31
|
import enUS from 'antd/lib/locale/en_US';
|
|
@@ -2591,19 +2591,186 @@ var __spreadValues$k = (a, b) => {
|
|
|
2591
2591
|
return a;
|
|
2592
2592
|
};
|
|
2593
2593
|
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
|
2594
|
+
const initialChartState = {
|
|
2595
|
+
pointers: {},
|
|
2596
|
+
resourceData: {},
|
|
2597
|
+
averageData: {}
|
|
2598
|
+
};
|
|
2599
|
+
const chartReducer = (state = initialChartState, action) => {
|
|
2600
|
+
switch (action.type) {
|
|
2601
|
+
case "SET_POINTER" /* SET_POINTER */: {
|
|
2602
|
+
const { uuid, left, text, visible, value } = action.payload;
|
|
2603
|
+
return __spreadProps$e(__spreadValues$k({}, state), {
|
|
2604
|
+
pointers: __spreadProps$e(__spreadValues$k({}, state.pointers), {
|
|
2605
|
+
[uuid]: {
|
|
2606
|
+
left,
|
|
2607
|
+
text,
|
|
2608
|
+
visible,
|
|
2609
|
+
value
|
|
2610
|
+
}
|
|
2611
|
+
})
|
|
2612
|
+
});
|
|
2613
|
+
}
|
|
2614
|
+
case "SET_RESOURCE_DATA" /* SET_RESOURCE_DATA */: {
|
|
2615
|
+
const { uuid, data } = action.payload;
|
|
2616
|
+
return __spreadProps$e(__spreadValues$k({}, state), {
|
|
2617
|
+
resourceData: __spreadProps$e(__spreadValues$k({}, state.resourceData), {
|
|
2618
|
+
[uuid]: data
|
|
2619
|
+
})
|
|
2620
|
+
});
|
|
2621
|
+
}
|
|
2622
|
+
case "SET_AVERAGE_DATA" /* SET_AVERAGE_DATA */: {
|
|
2623
|
+
const { uuid, average } = action.payload;
|
|
2624
|
+
return __spreadProps$e(__spreadValues$k({}, state), {
|
|
2625
|
+
averageData: __spreadProps$e(__spreadValues$k({}, state.averageData), {
|
|
2626
|
+
[uuid]: average
|
|
2627
|
+
})
|
|
2628
|
+
});
|
|
2629
|
+
}
|
|
2630
|
+
default: {
|
|
2631
|
+
return state;
|
|
2632
|
+
}
|
|
2633
|
+
}
|
|
2634
|
+
};
|
|
2635
|
+
|
|
2636
|
+
var __defProp$j = Object.defineProperty;
|
|
2637
|
+
var __defProps$d = Object.defineProperties;
|
|
2638
|
+
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
2639
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
2640
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
2641
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
2642
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2643
|
+
var __spreadValues$j = (a, b) => {
|
|
2644
|
+
for (var prop in b || (b = {}))
|
|
2645
|
+
if (__hasOwnProp$j.call(b, prop))
|
|
2646
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
2647
|
+
if (__getOwnPropSymbols$j)
|
|
2648
|
+
for (var prop of __getOwnPropSymbols$j(b)) {
|
|
2649
|
+
if (__propIsEnum$j.call(b, prop))
|
|
2650
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
2651
|
+
}
|
|
2652
|
+
return a;
|
|
2653
|
+
};
|
|
2654
|
+
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
|
2655
|
+
var ModalActions = /* @__PURE__ */ ((ModalActions2) => {
|
|
2656
|
+
ModalActions2["PUSH_MODAL"] = "PUSH_MODAL";
|
|
2657
|
+
ModalActions2["POP_MODAL"] = "POP_MODAL";
|
|
2658
|
+
ModalActions2["REMOVE_MODAL"] = "REMOVE_MODAL";
|
|
2659
|
+
ModalActions2["CLOSE_MODAL"] = "CLOSE_MODAL";
|
|
2660
|
+
return ModalActions2;
|
|
2661
|
+
})(ModalActions || {});
|
|
2662
|
+
const initialModalState = {
|
|
2663
|
+
stack: [],
|
|
2664
|
+
closeId: 0
|
|
2665
|
+
};
|
|
2666
|
+
let MODAL_ID = 1;
|
|
2667
|
+
const modalReducer = (state = initialModalState, action) => {
|
|
2668
|
+
switch (action.type) {
|
|
2669
|
+
case "PUSH_MODAL" /* PUSH_MODAL */:
|
|
2670
|
+
if (state.stack.some(
|
|
2671
|
+
(modal) => modal.component === action.payload.component
|
|
2672
|
+
)) {
|
|
2673
|
+
return state;
|
|
2674
|
+
}
|
|
2675
|
+
return __spreadProps$d(__spreadValues$j({}, state), {
|
|
2676
|
+
stack: state.stack.concat(__spreadProps$d(__spreadValues$j({}, action.payload), {
|
|
2677
|
+
id: MODAL_ID++
|
|
2678
|
+
}))
|
|
2679
|
+
});
|
|
2680
|
+
case "POP_MODAL" /* POP_MODAL */:
|
|
2681
|
+
return __spreadProps$d(__spreadValues$j({}, state), {
|
|
2682
|
+
stack: state.stack.slice(0, -1)
|
|
2683
|
+
});
|
|
2684
|
+
case "REMOVE_MODAL" /* REMOVE_MODAL */:
|
|
2685
|
+
return __spreadProps$d(__spreadValues$j({}, state), {
|
|
2686
|
+
closeId: 0,
|
|
2687
|
+
stack: state.stack.filter((m) => m.id !== action.id)
|
|
2688
|
+
});
|
|
2689
|
+
case "CLOSE_MODAL" /* CLOSE_MODAL */:
|
|
2690
|
+
return __spreadProps$d(__spreadValues$j({}, state), {
|
|
2691
|
+
closeId: action.id
|
|
2692
|
+
});
|
|
2693
|
+
default:
|
|
2694
|
+
return state;
|
|
2695
|
+
}
|
|
2696
|
+
};
|
|
2697
|
+
|
|
2698
|
+
const appReducer = combineReducers({
|
|
2699
|
+
chart: chartReducer,
|
|
2700
|
+
modal: modalReducer
|
|
2701
|
+
});
|
|
2702
|
+
const rootReducer = (state, action) => {
|
|
2703
|
+
if (action.type === "RESET_UI_KIT_STORE") {
|
|
2704
|
+
state = {
|
|
2705
|
+
modal: initialModalState,
|
|
2706
|
+
chart: initialChartState
|
|
2707
|
+
};
|
|
2708
|
+
}
|
|
2709
|
+
return appReducer(state, action);
|
|
2710
|
+
};
|
|
2711
|
+
const UIKitStore = createStore(rootReducer);
|
|
2712
|
+
function pushModal(modal) {
|
|
2713
|
+
UIKitStore.dispatch({
|
|
2714
|
+
type: ModalActions.PUSH_MODAL,
|
|
2715
|
+
payload: modal
|
|
2716
|
+
});
|
|
2717
|
+
}
|
|
2718
|
+
function popModal() {
|
|
2719
|
+
UIKitStore.dispatch({
|
|
2720
|
+
type: ModalActions.POP_MODAL
|
|
2721
|
+
});
|
|
2722
|
+
}
|
|
2723
|
+
function closeModal(id) {
|
|
2724
|
+
UIKitStore.dispatch({
|
|
2725
|
+
type: ModalActions.CLOSE_MODAL,
|
|
2726
|
+
id
|
|
2727
|
+
});
|
|
2728
|
+
}
|
|
2729
|
+
|
|
2730
|
+
const ctx = createContext({
|
|
2731
|
+
store: UIKitStore,
|
|
2732
|
+
storeState: UIKitStore.getState()
|
|
2733
|
+
});
|
|
2734
|
+
const KitStoreProvider = (props) => {
|
|
2735
|
+
const { children } = props;
|
|
2736
|
+
return /* @__PURE__ */ React__default.createElement(Provider, { context: ctx, store: UIKitStore }, children);
|
|
2737
|
+
};
|
|
2738
|
+
const useKitDispatch = createDispatchHook(ctx);
|
|
2739
|
+
const useKitSelector = createSelectorHook(ctx);
|
|
2740
|
+
|
|
2741
|
+
var __defProp$i = Object.defineProperty;
|
|
2742
|
+
var __defProps$c = Object.defineProperties;
|
|
2743
|
+
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
2744
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
2745
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
2746
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
2747
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2748
|
+
var __spreadValues$i = (a, b) => {
|
|
2749
|
+
for (var prop in b || (b = {}))
|
|
2750
|
+
if (__hasOwnProp$i.call(b, prop))
|
|
2751
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
2752
|
+
if (__getOwnPropSymbols$i)
|
|
2753
|
+
for (var prop of __getOwnPropSymbols$i(b)) {
|
|
2754
|
+
if (__propIsEnum$i.call(b, prop))
|
|
2755
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
2756
|
+
}
|
|
2757
|
+
return a;
|
|
2758
|
+
};
|
|
2759
|
+
var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
|
|
2594
2760
|
var __objRest$5 = (source, exclude) => {
|
|
2595
2761
|
var target = {};
|
|
2596
2762
|
for (var prop in source)
|
|
2597
|
-
if (__hasOwnProp$
|
|
2763
|
+
if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2598
2764
|
target[prop] = source[prop];
|
|
2599
|
-
if (source != null && __getOwnPropSymbols$
|
|
2600
|
-
for (var prop of __getOwnPropSymbols$
|
|
2601
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2765
|
+
if (source != null && __getOwnPropSymbols$i)
|
|
2766
|
+
for (var prop of __getOwnPropSymbols$i(source)) {
|
|
2767
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
|
|
2602
2768
|
target[prop] = source[prop];
|
|
2603
2769
|
}
|
|
2604
2770
|
return target;
|
|
2605
2771
|
};
|
|
2606
2772
|
const Modal = (props) => {
|
|
2773
|
+
var _b;
|
|
2607
2774
|
const { t } = useParrotTranslation();
|
|
2608
2775
|
const _a = props, {
|
|
2609
2776
|
error,
|
|
@@ -2623,9 +2790,7 @@ const Modal = (props) => {
|
|
|
2623
2790
|
width,
|
|
2624
2791
|
showCancel = true,
|
|
2625
2792
|
showOk = true,
|
|
2626
|
-
afterClose
|
|
2627
|
-
removeModal,
|
|
2628
|
-
visible
|
|
2793
|
+
afterClose
|
|
2629
2794
|
} = _a, restProps = __objRest$5(_a, [
|
|
2630
2795
|
"error",
|
|
2631
2796
|
"okText",
|
|
@@ -2644,10 +2809,16 @@ const Modal = (props) => {
|
|
|
2644
2809
|
"width",
|
|
2645
2810
|
"showCancel",
|
|
2646
2811
|
"showOk",
|
|
2647
|
-
"afterClose"
|
|
2648
|
-
"removeModal",
|
|
2649
|
-
"visible"
|
|
2812
|
+
"afterClose"
|
|
2650
2813
|
]);
|
|
2814
|
+
const stack = useKitSelector(
|
|
2815
|
+
(state) => state.modal.stack
|
|
2816
|
+
);
|
|
2817
|
+
const id = useKitSelector(
|
|
2818
|
+
(state) => state.modal.closeId
|
|
2819
|
+
);
|
|
2820
|
+
const dispatch = useKitDispatch();
|
|
2821
|
+
const idRef = useRef((_b = stack[stack.length - 1]) == null ? void 0 : _b.id);
|
|
2651
2822
|
const transitionClass = useRef(fullscreen ? "fullscreen-modal" : "modal-zoom");
|
|
2652
2823
|
const confirmText = useMemo(() => {
|
|
2653
2824
|
let text = (okButtonProps == null ? void 0 : okButtonProps.children) || okText;
|
|
@@ -2675,7 +2846,7 @@ const Modal = (props) => {
|
|
|
2675
2846
|
}
|
|
2676
2847
|
return /* @__PURE__ */ React__default.createElement(
|
|
2677
2848
|
Modal$1,
|
|
2678
|
-
__spreadProps$
|
|
2849
|
+
__spreadProps$c(__spreadValues$i({
|
|
2679
2850
|
maskClosable,
|
|
2680
2851
|
className: cs(
|
|
2681
2852
|
className,
|
|
@@ -2695,9 +2866,9 @@ const Modal = (props) => {
|
|
|
2695
2866
|
}, restProps), {
|
|
2696
2867
|
afterClose: () => {
|
|
2697
2868
|
afterClose == null ? void 0 : afterClose();
|
|
2698
|
-
|
|
2869
|
+
dispatch({ type: ModalActions.REMOVE_MODAL, id: idRef.current });
|
|
2699
2870
|
},
|
|
2700
|
-
visible,
|
|
2871
|
+
visible: idRef.current !== id,
|
|
2701
2872
|
footer: /* @__PURE__ */ React__default.createElement("div", { className: "footer-content" }, footer === void 0 ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", { className: "modal-footer-left" }, wizard && typeof wizard === "object" && !wizard.disablePrevStep && wizard.step !== 0 && /* @__PURE__ */ React__default.createElement(
|
|
2702
2873
|
"span",
|
|
2703
2874
|
{
|
|
@@ -2710,7 +2881,7 @@ const Modal = (props) => {
|
|
|
2710
2881
|
prevText
|
|
2711
2882
|
), error && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("span", { className: "modal-error" }, error))), /* @__PURE__ */ React__default.createElement("div", { className: "modal-footer-btn-group" }, showCancel && /* @__PURE__ */ React__default.createElement(
|
|
2712
2883
|
Button,
|
|
2713
|
-
__spreadValues$
|
|
2884
|
+
__spreadValues$i({
|
|
2714
2885
|
type: "quiet",
|
|
2715
2886
|
onMouseDown: (e) => {
|
|
2716
2887
|
e.preventDefault();
|
|
@@ -2724,12 +2895,12 @@ const Modal = (props) => {
|
|
|
2724
2895
|
cancelText
|
|
2725
2896
|
), showOk && /* @__PURE__ */ React__default.createElement(
|
|
2726
2897
|
Button,
|
|
2727
|
-
__spreadValues$
|
|
2898
|
+
__spreadValues$i({
|
|
2728
2899
|
onClick: (e) => {
|
|
2729
|
-
var _a2,
|
|
2900
|
+
var _a2, _b2;
|
|
2730
2901
|
onOk == null ? void 0 : onOk(e);
|
|
2731
2902
|
if (typeof wizard === "object" && wizard.steps[wizard.step]) {
|
|
2732
|
-
(
|
|
2903
|
+
(_b2 = (_a2 = wizard.steps[wizard.step]).onOk) == null ? void 0 : _b2.call(_a2, e);
|
|
2733
2904
|
}
|
|
2734
2905
|
transitionClass.current = fullscreen ? "" : "modal-send";
|
|
2735
2906
|
},
|
|
@@ -2876,19 +3047,19 @@ const Pagination = props => {
|
|
|
2876
3047
|
}))));
|
|
2877
3048
|
};
|
|
2878
3049
|
|
|
2879
|
-
var __defProp$
|
|
2880
|
-
var __getOwnPropSymbols$
|
|
2881
|
-
var __hasOwnProp$
|
|
2882
|
-
var __propIsEnum$
|
|
2883
|
-
var __defNormalProp$
|
|
2884
|
-
var __spreadValues$
|
|
3050
|
+
var __defProp$h = Object.defineProperty;
|
|
3051
|
+
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
|
3052
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
3053
|
+
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
|
3054
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3055
|
+
var __spreadValues$h = (a, b) => {
|
|
2885
3056
|
for (var prop in b || (b = {}))
|
|
2886
|
-
if (__hasOwnProp$
|
|
2887
|
-
__defNormalProp$
|
|
2888
|
-
if (__getOwnPropSymbols$
|
|
2889
|
-
for (var prop of __getOwnPropSymbols$
|
|
2890
|
-
if (__propIsEnum$
|
|
2891
|
-
__defNormalProp$
|
|
3057
|
+
if (__hasOwnProp$h.call(b, prop))
|
|
3058
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
3059
|
+
if (__getOwnPropSymbols$h)
|
|
3060
|
+
for (var prop of __getOwnPropSymbols$h(b)) {
|
|
3061
|
+
if (__propIsEnum$h.call(b, prop))
|
|
3062
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
2892
3063
|
}
|
|
2893
3064
|
return a;
|
|
2894
3065
|
};
|
|
@@ -2900,52 +3071,52 @@ const Percent = ({
|
|
|
2900
3071
|
emptyProps
|
|
2901
3072
|
}) => {
|
|
2902
3073
|
if (isEmpty(rawValue)) {
|
|
2903
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$
|
|
3074
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$h({}, emptyProps));
|
|
2904
3075
|
}
|
|
2905
3076
|
const { value, unit } = formatPercent(rawValue, decimals);
|
|
2906
3077
|
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, unit));
|
|
2907
3078
|
};
|
|
2908
3079
|
|
|
2909
|
-
var __defProp$
|
|
2910
|
-
var __getOwnPropSymbols$
|
|
2911
|
-
var __hasOwnProp$
|
|
2912
|
-
var __propIsEnum$
|
|
2913
|
-
var __defNormalProp$
|
|
2914
|
-
var __spreadValues$
|
|
3080
|
+
var __defProp$g = Object.defineProperty;
|
|
3081
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
3082
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
3083
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
3084
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3085
|
+
var __spreadValues$g = (a, b) => {
|
|
2915
3086
|
for (var prop in b || (b = {}))
|
|
2916
|
-
if (__hasOwnProp$
|
|
2917
|
-
__defNormalProp$
|
|
2918
|
-
if (__getOwnPropSymbols$
|
|
2919
|
-
for (var prop of __getOwnPropSymbols$
|
|
2920
|
-
if (__propIsEnum$
|
|
2921
|
-
__defNormalProp$
|
|
3087
|
+
if (__hasOwnProp$g.call(b, prop))
|
|
3088
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
3089
|
+
if (__getOwnPropSymbols$g)
|
|
3090
|
+
for (var prop of __getOwnPropSymbols$g(b)) {
|
|
3091
|
+
if (__propIsEnum$g.call(b, prop))
|
|
3092
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
2922
3093
|
}
|
|
2923
3094
|
return a;
|
|
2924
3095
|
};
|
|
2925
|
-
const Progress = (props) => /* @__PURE__ */ React__default.createElement(Progress$1, __spreadValues$
|
|
3096
|
+
const Progress = (props) => /* @__PURE__ */ React__default.createElement(Progress$1, __spreadValues$g({}, props));
|
|
2926
3097
|
|
|
2927
|
-
var __defProp$
|
|
2928
|
-
var __getOwnPropSymbols$
|
|
2929
|
-
var __hasOwnProp$
|
|
2930
|
-
var __propIsEnum$
|
|
2931
|
-
var __defNormalProp$
|
|
3098
|
+
var __defProp$f = Object.defineProperty;
|
|
3099
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
3100
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
3101
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
3102
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, {
|
|
2932
3103
|
enumerable: true,
|
|
2933
3104
|
configurable: true,
|
|
2934
3105
|
writable: true,
|
|
2935
3106
|
value
|
|
2936
3107
|
}) : obj[key] = value;
|
|
2937
|
-
var __spreadValues$
|
|
2938
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
2939
|
-
if (__getOwnPropSymbols$
|
|
2940
|
-
if (__propIsEnum$
|
|
3108
|
+
var __spreadValues$f = (a, b) => {
|
|
3109
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$f.call(b, prop)) __defNormalProp$f(a, prop, b[prop]);
|
|
3110
|
+
if (__getOwnPropSymbols$f) for (var prop of __getOwnPropSymbols$f(b)) {
|
|
3111
|
+
if (__propIsEnum$f.call(b, prop)) __defNormalProp$f(a, prop, b[prop]);
|
|
2941
3112
|
}
|
|
2942
3113
|
return a;
|
|
2943
3114
|
};
|
|
2944
3115
|
var __objRest$4 = (source, exclude) => {
|
|
2945
3116
|
var target = {};
|
|
2946
|
-
for (var prop in source) if (__hasOwnProp$
|
|
2947
|
-
if (source != null && __getOwnPropSymbols$
|
|
2948
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3117
|
+
for (var prop in source) if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3118
|
+
if (source != null && __getOwnPropSymbols$f) for (var prop of __getOwnPropSymbols$f(source)) {
|
|
3119
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop)) target[prop] = source[prop];
|
|
2949
3120
|
}
|
|
2950
3121
|
return target;
|
|
2951
3122
|
};
|
|
@@ -2971,7 +3142,7 @@ const Radio = _a => {
|
|
|
2971
3142
|
className: cx("radio-description", Typo.Label.l4_regular)
|
|
2972
3143
|
}, description));
|
|
2973
3144
|
}
|
|
2974
|
-
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Radio$1, __spreadValues$
|
|
3145
|
+
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Radio$1, __spreadValues$f({
|
|
2975
3146
|
className: cx(className, RadioStyle, compact && "compact"),
|
|
2976
3147
|
checked: checked || false,
|
|
2977
3148
|
"data-test": context.name ? `${context.name}-${String(props.value)}` : String(props.value)
|
|
@@ -2989,7 +3160,7 @@ const RadioGroup = _c => {
|
|
|
2989
3160
|
disabled: props.disabled,
|
|
2990
3161
|
name: props.name
|
|
2991
3162
|
}
|
|
2992
|
-
}, /* @__PURE__ */React__default.createElement(Radio$1.Group, __spreadValues$
|
|
3163
|
+
}, /* @__PURE__ */React__default.createElement(Radio$1.Group, __spreadValues$f({
|
|
2993
3164
|
className: cx(className, RadioGroupStyle)
|
|
2994
3165
|
}, props), children ? children : null));
|
|
2995
3166
|
};
|
|
@@ -3045,36 +3216,36 @@ const RadioButton = _e => {
|
|
|
3045
3216
|
className: "ant-radio-button-input-label"
|
|
3046
3217
|
}, typeof children === "string" ? children : ""));
|
|
3047
3218
|
};
|
|
3048
|
-
return /* @__PURE__ */React__default.createElement(Radio$1.Button, __spreadValues$
|
|
3219
|
+
return /* @__PURE__ */React__default.createElement(Radio$1.Button, __spreadValues$f({
|
|
3049
3220
|
className: cx(className, RadioButtonStyle),
|
|
3050
3221
|
value: radioButtonValue
|
|
3051
3222
|
}, props), renderChildren());
|
|
3052
3223
|
};
|
|
3053
3224
|
|
|
3054
|
-
var __defProp$
|
|
3055
|
-
var __getOwnPropSymbols$
|
|
3056
|
-
var __hasOwnProp$
|
|
3057
|
-
var __propIsEnum$
|
|
3058
|
-
var __defNormalProp$
|
|
3059
|
-
var __spreadValues$
|
|
3225
|
+
var __defProp$e = Object.defineProperty;
|
|
3226
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
3227
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
3228
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
3229
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3230
|
+
var __spreadValues$e = (a, b) => {
|
|
3060
3231
|
for (var prop in b || (b = {}))
|
|
3061
|
-
if (__hasOwnProp$
|
|
3062
|
-
__defNormalProp$
|
|
3063
|
-
if (__getOwnPropSymbols$
|
|
3064
|
-
for (var prop of __getOwnPropSymbols$
|
|
3065
|
-
if (__propIsEnum$
|
|
3066
|
-
__defNormalProp$
|
|
3232
|
+
if (__hasOwnProp$e.call(b, prop))
|
|
3233
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
3234
|
+
if (__getOwnPropSymbols$e)
|
|
3235
|
+
for (var prop of __getOwnPropSymbols$e(b)) {
|
|
3236
|
+
if (__propIsEnum$e.call(b, prop))
|
|
3237
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
3067
3238
|
}
|
|
3068
3239
|
return a;
|
|
3069
3240
|
};
|
|
3070
3241
|
var __objRest$3 = (source, exclude) => {
|
|
3071
3242
|
var target = {};
|
|
3072
3243
|
for (var prop in source)
|
|
3073
|
-
if (__hasOwnProp$
|
|
3244
|
+
if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3074
3245
|
target[prop] = source[prop];
|
|
3075
|
-
if (source != null && __getOwnPropSymbols$
|
|
3076
|
-
for (var prop of __getOwnPropSymbols$
|
|
3077
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3246
|
+
if (source != null && __getOwnPropSymbols$e)
|
|
3247
|
+
for (var prop of __getOwnPropSymbols$e(source)) {
|
|
3248
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
|
|
3078
3249
|
target[prop] = source[prop];
|
|
3079
3250
|
}
|
|
3080
3251
|
return target;
|
|
@@ -3084,7 +3255,7 @@ const SearchInput = (props) => {
|
|
|
3084
3255
|
const onSearch = _.debounce(onChange, debounceWait);
|
|
3085
3256
|
return /* @__PURE__ */ React__default.createElement(
|
|
3086
3257
|
Input,
|
|
3087
|
-
__spreadValues$
|
|
3258
|
+
__spreadValues$e({
|
|
3088
3259
|
style: { width: 276 },
|
|
3089
3260
|
prefix: /* @__PURE__ */ React__default.createElement(SearchOutlined, null),
|
|
3090
3261
|
onChange: (e) => onSearch(e.target.value)
|
|
@@ -3092,19 +3263,19 @@ const SearchInput = (props) => {
|
|
|
3092
3263
|
);
|
|
3093
3264
|
};
|
|
3094
3265
|
|
|
3095
|
-
var __defProp$
|
|
3096
|
-
var __getOwnPropSymbols$
|
|
3097
|
-
var __hasOwnProp$
|
|
3098
|
-
var __propIsEnum$
|
|
3099
|
-
var __defNormalProp$
|
|
3100
|
-
var __spreadValues$
|
|
3266
|
+
var __defProp$d = Object.defineProperty;
|
|
3267
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
3268
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
3269
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
3270
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3271
|
+
var __spreadValues$d = (a, b) => {
|
|
3101
3272
|
for (var prop in b || (b = {}))
|
|
3102
|
-
if (__hasOwnProp$
|
|
3103
|
-
__defNormalProp$
|
|
3104
|
-
if (__getOwnPropSymbols$
|
|
3105
|
-
for (var prop of __getOwnPropSymbols$
|
|
3106
|
-
if (__propIsEnum$
|
|
3107
|
-
__defNormalProp$
|
|
3273
|
+
if (__hasOwnProp$d.call(b, prop))
|
|
3274
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
3275
|
+
if (__getOwnPropSymbols$d)
|
|
3276
|
+
for (var prop of __getOwnPropSymbols$d(b)) {
|
|
3277
|
+
if (__propIsEnum$d.call(b, prop))
|
|
3278
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
3108
3279
|
}
|
|
3109
3280
|
return a;
|
|
3110
3281
|
};
|
|
@@ -3118,7 +3289,7 @@ const Second = ({
|
|
|
3118
3289
|
}) => {
|
|
3119
3290
|
const { t } = useParrotTranslation();
|
|
3120
3291
|
if (isEmpty(rawValue)) {
|
|
3121
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$
|
|
3292
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$d({}, emptyProps));
|
|
3122
3293
|
}
|
|
3123
3294
|
const { value, unit } = formatSeconds(rawValue, decimals);
|
|
3124
3295
|
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value, " "), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, t(`common.${abbreviate ? `${unit}_abbreviation` : unit}`)));
|
|
@@ -3200,19 +3371,19 @@ const SimplePagination = props => {
|
|
|
3200
3371
|
})));
|
|
3201
3372
|
};
|
|
3202
3373
|
|
|
3203
|
-
var __defProp$
|
|
3204
|
-
var __getOwnPropSymbols$
|
|
3205
|
-
var __hasOwnProp$
|
|
3206
|
-
var __propIsEnum$
|
|
3207
|
-
var __defNormalProp$
|
|
3208
|
-
var __spreadValues$
|
|
3374
|
+
var __defProp$c = Object.defineProperty;
|
|
3375
|
+
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
3376
|
+
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
3377
|
+
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
3378
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3379
|
+
var __spreadValues$c = (a, b) => {
|
|
3209
3380
|
for (var prop in b || (b = {}))
|
|
3210
|
-
if (__hasOwnProp$
|
|
3211
|
-
__defNormalProp$
|
|
3212
|
-
if (__getOwnPropSymbols$
|
|
3213
|
-
for (var prop of __getOwnPropSymbols$
|
|
3214
|
-
if (__propIsEnum$
|
|
3215
|
-
__defNormalProp$
|
|
3381
|
+
if (__hasOwnProp$c.call(b, prop))
|
|
3382
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
3383
|
+
if (__getOwnPropSymbols$c)
|
|
3384
|
+
for (var prop of __getOwnPropSymbols$c(b)) {
|
|
3385
|
+
if (__propIsEnum$c.call(b, prop))
|
|
3386
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
3216
3387
|
}
|
|
3217
3388
|
return a;
|
|
3218
3389
|
};
|
|
@@ -3224,37 +3395,37 @@ const Speed = ({
|
|
|
3224
3395
|
emptyProps
|
|
3225
3396
|
}) => {
|
|
3226
3397
|
if (isEmpty(rawValue)) {
|
|
3227
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$
|
|
3398
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$c({}, emptyProps));
|
|
3228
3399
|
}
|
|
3229
3400
|
const { value, unit } = formatSpeed(rawValue, decimals);
|
|
3230
3401
|
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
3231
3402
|
};
|
|
3232
3403
|
|
|
3233
|
-
var __defProp$
|
|
3234
|
-
var __defProps$
|
|
3235
|
-
var __getOwnPropDescs$
|
|
3236
|
-
var __getOwnPropSymbols$
|
|
3237
|
-
var __hasOwnProp$
|
|
3238
|
-
var __propIsEnum$
|
|
3239
|
-
var __defNormalProp$
|
|
3404
|
+
var __defProp$b = Object.defineProperty;
|
|
3405
|
+
var __defProps$b = Object.defineProperties;
|
|
3406
|
+
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
|
3407
|
+
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
3408
|
+
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
3409
|
+
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
3410
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, {
|
|
3240
3411
|
enumerable: true,
|
|
3241
3412
|
configurable: true,
|
|
3242
3413
|
writable: true,
|
|
3243
3414
|
value
|
|
3244
3415
|
}) : obj[key] = value;
|
|
3245
|
-
var __spreadValues$
|
|
3246
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3247
|
-
if (__getOwnPropSymbols$
|
|
3248
|
-
if (__propIsEnum$
|
|
3416
|
+
var __spreadValues$b = (a, b) => {
|
|
3417
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$b.call(b, prop)) __defNormalProp$b(a, prop, b[prop]);
|
|
3418
|
+
if (__getOwnPropSymbols$b) for (var prop of __getOwnPropSymbols$b(b)) {
|
|
3419
|
+
if (__propIsEnum$b.call(b, prop)) __defNormalProp$b(a, prop, b[prop]);
|
|
3249
3420
|
}
|
|
3250
3421
|
return a;
|
|
3251
3422
|
};
|
|
3252
|
-
var __spreadProps$
|
|
3423
|
+
var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
|
|
3253
3424
|
var __objRest$2 = (source, exclude) => {
|
|
3254
3425
|
var target = {};
|
|
3255
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3256
|
-
if (source != null && __getOwnPropSymbols$
|
|
3257
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3426
|
+
for (var prop in source) if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3427
|
+
if (source != null && __getOwnPropSymbols$b) for (var prop of __getOwnPropSymbols$b(source)) {
|
|
3428
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop)) target[prop] = source[prop];
|
|
3258
3429
|
}
|
|
3259
3430
|
return target;
|
|
3260
3431
|
};
|
|
@@ -3276,40 +3447,40 @@ const Steps = props => {
|
|
|
3276
3447
|
}, count) : null, _step.title);
|
|
3277
3448
|
return /* @__PURE__ */React__default.createElement(StepsContainer, {
|
|
3278
3449
|
className: containerClassname
|
|
3279
|
-
}, /* @__PURE__ */React__default.createElement(Steps$1, __spreadProps$
|
|
3450
|
+
}, /* @__PURE__ */React__default.createElement(Steps$1, __spreadProps$b(__spreadValues$b({}, stepsProps), {
|
|
3280
3451
|
type: "default"
|
|
3281
|
-
}), (stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */React__default.createElement(Steps$1.Step, __spreadProps$
|
|
3452
|
+
}), (stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */React__default.createElement(Steps$1.Step, __spreadProps$b(__spreadValues$b({
|
|
3282
3453
|
key: index
|
|
3283
3454
|
}, step), {
|
|
3284
3455
|
title: titleWithCount(step, index + 1)
|
|
3285
3456
|
}))) : props.children));
|
|
3286
3457
|
};
|
|
3287
3458
|
|
|
3288
|
-
var __defProp$
|
|
3289
|
-
var __defProps$
|
|
3290
|
-
var __getOwnPropDescs$
|
|
3291
|
-
var __getOwnPropSymbols$
|
|
3292
|
-
var __hasOwnProp$
|
|
3293
|
-
var __propIsEnum$
|
|
3294
|
-
var __defNormalProp$
|
|
3459
|
+
var __defProp$a = Object.defineProperty;
|
|
3460
|
+
var __defProps$a = Object.defineProperties;
|
|
3461
|
+
var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
|
|
3462
|
+
var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
|
|
3463
|
+
var __hasOwnProp$a = Object.prototype.hasOwnProperty;
|
|
3464
|
+
var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
|
|
3465
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, {
|
|
3295
3466
|
enumerable: true,
|
|
3296
3467
|
configurable: true,
|
|
3297
3468
|
writable: true,
|
|
3298
3469
|
value
|
|
3299
3470
|
}) : obj[key] = value;
|
|
3300
|
-
var __spreadValues$
|
|
3301
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3302
|
-
if (__getOwnPropSymbols$
|
|
3303
|
-
if (__propIsEnum$
|
|
3471
|
+
var __spreadValues$a = (a, b) => {
|
|
3472
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$a.call(b, prop)) __defNormalProp$a(a, prop, b[prop]);
|
|
3473
|
+
if (__getOwnPropSymbols$a) for (var prop of __getOwnPropSymbols$a(b)) {
|
|
3474
|
+
if (__propIsEnum$a.call(b, prop)) __defNormalProp$a(a, prop, b[prop]);
|
|
3304
3475
|
}
|
|
3305
3476
|
return a;
|
|
3306
3477
|
};
|
|
3307
|
-
var __spreadProps$
|
|
3478
|
+
var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
|
|
3308
3479
|
var __objRest$1 = (source, exclude) => {
|
|
3309
3480
|
var target = {};
|
|
3310
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3311
|
-
if (source != null && __getOwnPropSymbols$
|
|
3312
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3481
|
+
for (var prop in source) if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3482
|
+
if (source != null && __getOwnPropSymbols$a) for (var prop of __getOwnPropSymbols$a(source)) {
|
|
3483
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$a.call(source, prop)) target[prop] = source[prop];
|
|
3313
3484
|
}
|
|
3314
3485
|
return target;
|
|
3315
3486
|
};
|
|
@@ -3329,7 +3500,7 @@ const Switch = _a => {
|
|
|
3329
3500
|
});
|
|
3330
3501
|
const classNames = [className, SwitchStyle, "switch"];
|
|
3331
3502
|
if (props.size === "large") classNames.push("ant-switch-large");
|
|
3332
|
-
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Switch$1, __spreadProps$
|
|
3503
|
+
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Switch$1, __spreadProps$a(__spreadValues$a({
|
|
3333
3504
|
className: cx(...classNames),
|
|
3334
3505
|
checked: checked || false
|
|
3335
3506
|
}, props), {
|
|
@@ -3415,26 +3586,26 @@ const ColumnTitle = props => {
|
|
|
3415
3586
|
}));
|
|
3416
3587
|
};
|
|
3417
3588
|
|
|
3418
|
-
var __defProp$
|
|
3419
|
-
var __defProps$
|
|
3420
|
-
var __getOwnPropDescs$
|
|
3421
|
-
var __getOwnPropSymbols$
|
|
3422
|
-
var __hasOwnProp$
|
|
3423
|
-
var __propIsEnum$
|
|
3424
|
-
var __defNormalProp$
|
|
3589
|
+
var __defProp$9 = Object.defineProperty;
|
|
3590
|
+
var __defProps$9 = Object.defineProperties;
|
|
3591
|
+
var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
|
|
3592
|
+
var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
|
|
3593
|
+
var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
|
|
3594
|
+
var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
|
|
3595
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, {
|
|
3425
3596
|
enumerable: true,
|
|
3426
3597
|
configurable: true,
|
|
3427
3598
|
writable: true,
|
|
3428
3599
|
value
|
|
3429
3600
|
}) : obj[key] = value;
|
|
3430
|
-
var __spreadValues$
|
|
3431
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3432
|
-
if (__getOwnPropSymbols$
|
|
3433
|
-
if (__propIsEnum$
|
|
3601
|
+
var __spreadValues$9 = (a, b) => {
|
|
3602
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$9.call(b, prop)) __defNormalProp$9(a, prop, b[prop]);
|
|
3603
|
+
if (__getOwnPropSymbols$9) for (var prop of __getOwnPropSymbols$9(b)) {
|
|
3604
|
+
if (__propIsEnum$9.call(b, prop)) __defNormalProp$9(a, prop, b[prop]);
|
|
3434
3605
|
}
|
|
3435
3606
|
return a;
|
|
3436
3607
|
};
|
|
3437
|
-
var __spreadProps$
|
|
3608
|
+
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
|
|
3438
3609
|
const TableContainerStyle = "t1upn1sz";
|
|
3439
3610
|
const tableStyleCover = "tta5kd2";
|
|
3440
3611
|
const Table = props => {
|
|
@@ -3460,8 +3631,8 @@ const Table = props => {
|
|
|
3460
3631
|
const orderRef = useRef(null);
|
|
3461
3632
|
const hasScrollBard = useTableBodyHasScrollBar(wrapper, dataSource);
|
|
3462
3633
|
const _columns = useMemo(() => columns.map(column => {
|
|
3463
|
-
const _column = __spreadValues$
|
|
3464
|
-
if (_column.sorter) {
|
|
3634
|
+
const _column = __spreadValues$9({}, column);
|
|
3635
|
+
if (_column.sorter && typeof _column.title !== "function") {
|
|
3465
3636
|
_column.title = /* @__PURE__ */React__default.createElement(ColumnTitle, {
|
|
3466
3637
|
title: column.title,
|
|
3467
3638
|
sortOrder: column.sortOrder
|
|
@@ -3502,7 +3673,7 @@ const Table = props => {
|
|
|
3502
3673
|
}),
|
|
3503
3674
|
rowClassName,
|
|
3504
3675
|
scroll,
|
|
3505
|
-
rowSelection: rowSelection && __spreadProps$
|
|
3676
|
+
rowSelection: rowSelection && __spreadProps$9(__spreadValues$9({}, rowSelection), {
|
|
3506
3677
|
columnWidth: 32
|
|
3507
3678
|
}),
|
|
3508
3679
|
showSorterTooltip: false
|
|
@@ -3564,33 +3735,33 @@ const moveItemInArray = (array, fromIndex, toIndex) => {
|
|
|
3564
3735
|
return sortArr;
|
|
3565
3736
|
};
|
|
3566
3737
|
|
|
3567
|
-
var __defProp$
|
|
3568
|
-
var __defProps$
|
|
3569
|
-
var __getOwnPropDescs$
|
|
3570
|
-
var __getOwnPropSymbols$
|
|
3571
|
-
var __hasOwnProp$
|
|
3572
|
-
var __propIsEnum$
|
|
3573
|
-
var __defNormalProp$
|
|
3574
|
-
var __spreadValues$
|
|
3738
|
+
var __defProp$8 = Object.defineProperty;
|
|
3739
|
+
var __defProps$8 = Object.defineProperties;
|
|
3740
|
+
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
|
3741
|
+
var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
|
|
3742
|
+
var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
|
|
3743
|
+
var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
|
|
3744
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3745
|
+
var __spreadValues$8 = (a, b) => {
|
|
3575
3746
|
for (var prop in b || (b = {}))
|
|
3576
|
-
if (__hasOwnProp$
|
|
3577
|
-
__defNormalProp$
|
|
3578
|
-
if (__getOwnPropSymbols$
|
|
3579
|
-
for (var prop of __getOwnPropSymbols$
|
|
3580
|
-
if (__propIsEnum$
|
|
3581
|
-
__defNormalProp$
|
|
3747
|
+
if (__hasOwnProp$8.call(b, prop))
|
|
3748
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
3749
|
+
if (__getOwnPropSymbols$8)
|
|
3750
|
+
for (var prop of __getOwnPropSymbols$8(b)) {
|
|
3751
|
+
if (__propIsEnum$8.call(b, prop))
|
|
3752
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
3582
3753
|
}
|
|
3583
3754
|
return a;
|
|
3584
3755
|
};
|
|
3585
|
-
var __spreadProps$
|
|
3756
|
+
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
3586
3757
|
var __objRest = (source, exclude) => {
|
|
3587
3758
|
var target = {};
|
|
3588
3759
|
for (var prop in source)
|
|
3589
|
-
if (__hasOwnProp$
|
|
3760
|
+
if (__hasOwnProp$8.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3590
3761
|
target[prop] = source[prop];
|
|
3591
|
-
if (source != null && __getOwnPropSymbols$
|
|
3592
|
-
for (var prop of __getOwnPropSymbols$
|
|
3593
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3762
|
+
if (source != null && __getOwnPropSymbols$8)
|
|
3763
|
+
for (var prop of __getOwnPropSymbols$8(source)) {
|
|
3764
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$8.call(source, prop))
|
|
3594
3765
|
target[prop] = source[prop];
|
|
3595
3766
|
}
|
|
3596
3767
|
return target;
|
|
@@ -3631,9 +3802,9 @@ const AddRowButton = (props) => {
|
|
|
3631
3802
|
if (!columns.length) {
|
|
3632
3803
|
return null;
|
|
3633
3804
|
}
|
|
3634
|
-
return CustomizedButton ? /* @__PURE__ */ React__default.createElement(CustomizedButton, __spreadValues$
|
|
3805
|
+
return CustomizedButton ? /* @__PURE__ */ React__default.createElement(CustomizedButton, __spreadValues$8({}, props)) : /* @__PURE__ */ React__default.createElement(AddRowButtonWrapper, { className }, /* @__PURE__ */ React__default.createElement(
|
|
3635
3806
|
Button,
|
|
3636
|
-
__spreadProps$
|
|
3807
|
+
__spreadProps$8(__spreadValues$8({}, restButtonProps), {
|
|
3637
3808
|
type: restButtonProps.type || "ordinary",
|
|
3638
3809
|
size: restButtonProps.size || "small",
|
|
3639
3810
|
icon: restButtonProps.icon || /* @__PURE__ */ React__default.createElement(PlusOutlined, null),
|
|
@@ -3728,25 +3899,25 @@ const CheckboxColumnBodyCell = ({ data, column, index, onChange }) => {
|
|
|
3728
3899
|
);
|
|
3729
3900
|
};
|
|
3730
3901
|
|
|
3731
|
-
var __defProp$
|
|
3732
|
-
var __defProps$
|
|
3733
|
-
var __getOwnPropDescs$
|
|
3734
|
-
var __getOwnPropSymbols$
|
|
3735
|
-
var __hasOwnProp$
|
|
3736
|
-
var __propIsEnum$
|
|
3737
|
-
var __defNormalProp$
|
|
3738
|
-
var __spreadValues$
|
|
3902
|
+
var __defProp$7 = Object.defineProperty;
|
|
3903
|
+
var __defProps$7 = Object.defineProperties;
|
|
3904
|
+
var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
|
|
3905
|
+
var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
|
|
3906
|
+
var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
|
|
3907
|
+
var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
|
|
3908
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3909
|
+
var __spreadValues$7 = (a, b) => {
|
|
3739
3910
|
for (var prop in b || (b = {}))
|
|
3740
|
-
if (__hasOwnProp$
|
|
3741
|
-
__defNormalProp$
|
|
3742
|
-
if (__getOwnPropSymbols$
|
|
3743
|
-
for (var prop of __getOwnPropSymbols$
|
|
3744
|
-
if (__propIsEnum$
|
|
3745
|
-
__defNormalProp$
|
|
3911
|
+
if (__hasOwnProp$7.call(b, prop))
|
|
3912
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
3913
|
+
if (__getOwnPropSymbols$7)
|
|
3914
|
+
for (var prop of __getOwnPropSymbols$7(b)) {
|
|
3915
|
+
if (__propIsEnum$7.call(b, prop))
|
|
3916
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
3746
3917
|
}
|
|
3747
3918
|
return a;
|
|
3748
3919
|
};
|
|
3749
|
-
var __spreadProps$
|
|
3920
|
+
var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
|
|
3750
3921
|
const InputPassword = (props) => {
|
|
3751
3922
|
const [showPassword, setShowPassword] = useState(false);
|
|
3752
3923
|
useEffect(() => {
|
|
@@ -3762,7 +3933,7 @@ const InputPassword = (props) => {
|
|
|
3762
3933
|
const inputType = showPassword ? "text" : "password";
|
|
3763
3934
|
return /* @__PURE__ */ React__default.createElement(
|
|
3764
3935
|
Input$1,
|
|
3765
|
-
__spreadProps$
|
|
3936
|
+
__spreadProps$7(__spreadValues$7({}, props), {
|
|
3766
3937
|
type: inputType,
|
|
3767
3938
|
suffix: showPassword ? /* @__PURE__ */ React__default.createElement(
|
|
3768
3939
|
EyeOutlined,
|
|
@@ -3782,9 +3953,9 @@ const InputPassword = (props) => {
|
|
|
3782
3953
|
};
|
|
3783
3954
|
const CustomInput = (props) => {
|
|
3784
3955
|
if (props.type === "password") {
|
|
3785
|
-
return /* @__PURE__ */ React__default.createElement(InputPassword, __spreadValues$
|
|
3956
|
+
return /* @__PURE__ */ React__default.createElement(InputPassword, __spreadValues$7({}, props));
|
|
3786
3957
|
}
|
|
3787
|
-
return /* @__PURE__ */ React__default.createElement(Input$1, __spreadValues$
|
|
3958
|
+
return /* @__PURE__ */ React__default.createElement(Input$1, __spreadValues$7({}, props));
|
|
3788
3959
|
};
|
|
3789
3960
|
const InputColumnHeaderCell = ({ disabled, column, onChange, onBlur, onVisibleChange }) => {
|
|
3790
3961
|
const _onChange = (e) => {
|
|
@@ -3906,25 +4077,25 @@ var ValidateTriggerType = /* @__PURE__ */ ((ValidateTriggerType2) => {
|
|
|
3906
4077
|
return ValidateTriggerType2;
|
|
3907
4078
|
})(ValidateTriggerType || {});
|
|
3908
4079
|
|
|
3909
|
-
var __defProp$
|
|
3910
|
-
var __defProps$
|
|
3911
|
-
var __getOwnPropDescs$
|
|
3912
|
-
var __getOwnPropSymbols$
|
|
3913
|
-
var __hasOwnProp$
|
|
3914
|
-
var __propIsEnum$
|
|
3915
|
-
var __defNormalProp$
|
|
3916
|
-
var __spreadValues$
|
|
4080
|
+
var __defProp$6 = Object.defineProperty;
|
|
4081
|
+
var __defProps$6 = Object.defineProperties;
|
|
4082
|
+
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
4083
|
+
var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
|
|
4084
|
+
var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
|
|
4085
|
+
var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
|
|
4086
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4087
|
+
var __spreadValues$6 = (a, b) => {
|
|
3917
4088
|
for (var prop in b || (b = {}))
|
|
3918
|
-
if (__hasOwnProp$
|
|
3919
|
-
__defNormalProp$
|
|
3920
|
-
if (__getOwnPropSymbols$
|
|
3921
|
-
for (var prop of __getOwnPropSymbols$
|
|
3922
|
-
if (__propIsEnum$
|
|
3923
|
-
__defNormalProp$
|
|
4089
|
+
if (__hasOwnProp$6.call(b, prop))
|
|
4090
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
4091
|
+
if (__getOwnPropSymbols$6)
|
|
4092
|
+
for (var prop of __getOwnPropSymbols$6(b)) {
|
|
4093
|
+
if (__propIsEnum$6.call(b, prop))
|
|
4094
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
3924
4095
|
}
|
|
3925
4096
|
return a;
|
|
3926
4097
|
};
|
|
3927
|
-
var __spreadProps$
|
|
4098
|
+
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
|
3928
4099
|
const TableFormBodyCell = (props) => {
|
|
3929
4100
|
const {
|
|
3930
4101
|
column,
|
|
@@ -3946,7 +4117,7 @@ const TableFormBodyCell = (props) => {
|
|
|
3946
4117
|
(currentValue) => {
|
|
3947
4118
|
var _a;
|
|
3948
4119
|
const value = currentValue || data[rowIndex][column.key];
|
|
3949
|
-
const rowData = __spreadProps$
|
|
4120
|
+
const rowData = __spreadProps$6(__spreadValues$6({}, data[rowIndex]), { [column.key]: value });
|
|
3950
4121
|
const rowValidateRes = getRowValidateResult(rowData);
|
|
3951
4122
|
if (rowValidateRes) {
|
|
3952
4123
|
return;
|
|
@@ -3969,7 +4140,7 @@ const TableFormBodyCell = (props) => {
|
|
|
3969
4140
|
}, [validateAll, triggerValidate]);
|
|
3970
4141
|
const _onChange = (value, data2) => {
|
|
3971
4142
|
const newData = data2.map(
|
|
3972
|
-
(row, i) => i === rowIndex ? __spreadProps$
|
|
4143
|
+
(row, i) => i === rowIndex ? __spreadProps$6(__spreadValues$6({}, row), { [column.key]: value }) : row
|
|
3973
4144
|
);
|
|
3974
4145
|
onChange == null ? void 0 : onChange(newData, rowIndex, column.key);
|
|
3975
4146
|
if (validateTriggerType === ValidateTriggerType.Normal && isTouched.current || validateTriggerType === ValidateTriggerType.Aggressive) {
|
|
@@ -4046,25 +4217,25 @@ const TableFormBodyCell = (props) => {
|
|
|
4046
4217
|
);
|
|
4047
4218
|
};
|
|
4048
4219
|
|
|
4049
|
-
var __defProp$
|
|
4050
|
-
var __defProps$
|
|
4051
|
-
var __getOwnPropDescs$
|
|
4052
|
-
var __getOwnPropSymbols$
|
|
4053
|
-
var __hasOwnProp$
|
|
4054
|
-
var __propIsEnum$
|
|
4055
|
-
var __defNormalProp$
|
|
4056
|
-
var __spreadValues$
|
|
4220
|
+
var __defProp$5 = Object.defineProperty;
|
|
4221
|
+
var __defProps$5 = Object.defineProperties;
|
|
4222
|
+
var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
|
|
4223
|
+
var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
|
|
4224
|
+
var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
|
|
4225
|
+
var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
|
|
4226
|
+
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4227
|
+
var __spreadValues$5 = (a, b) => {
|
|
4057
4228
|
for (var prop in b || (b = {}))
|
|
4058
|
-
if (__hasOwnProp$
|
|
4059
|
-
__defNormalProp$
|
|
4060
|
-
if (__getOwnPropSymbols$
|
|
4061
|
-
for (var prop of __getOwnPropSymbols$
|
|
4062
|
-
if (__propIsEnum$
|
|
4063
|
-
__defNormalProp$
|
|
4229
|
+
if (__hasOwnProp$5.call(b, prop))
|
|
4230
|
+
__defNormalProp$5(a, prop, b[prop]);
|
|
4231
|
+
if (__getOwnPropSymbols$5)
|
|
4232
|
+
for (var prop of __getOwnPropSymbols$5(b)) {
|
|
4233
|
+
if (__propIsEnum$5.call(b, prop))
|
|
4234
|
+
__defNormalProp$5(a, prop, b[prop]);
|
|
4064
4235
|
}
|
|
4065
4236
|
return a;
|
|
4066
4237
|
};
|
|
4067
|
-
var __spreadProps$
|
|
4238
|
+
var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
|
|
4068
4239
|
const TableFormRow = (props) => {
|
|
4069
4240
|
const {
|
|
4070
4241
|
data,
|
|
@@ -4147,7 +4318,7 @@ const TableFormRow = (props) => {
|
|
|
4147
4318
|
);
|
|
4148
4319
|
});
|
|
4149
4320
|
const DraggableHandle = useMemo(
|
|
4150
|
-
() => draggable && provided ? /* @__PURE__ */ React__default.createElement(DraggableHandleWrapper, __spreadValues$
|
|
4321
|
+
() => draggable && provided ? /* @__PURE__ */ React__default.createElement(DraggableHandleWrapper, __spreadValues$5({}, provided.dragHandleProps), /* @__PURE__ */ React__default.createElement(
|
|
4151
4322
|
Icon,
|
|
4152
4323
|
{
|
|
4153
4324
|
src: HandlePoint816SecondaryIcon,
|
|
@@ -4196,7 +4367,7 @@ const TableFormBodyRows = memo((props) => {
|
|
|
4196
4367
|
);
|
|
4197
4368
|
return draggable ? /* @__PURE__ */ React__default.createElement(DragDropContext, { onDragEnd }, /* @__PURE__ */ React__default.createElement(Droppable, { droppableId: "droppable" }, (provided) => /* @__PURE__ */ React__default.createElement(
|
|
4198
4369
|
"div",
|
|
4199
|
-
__spreadValues$
|
|
4370
|
+
__spreadValues$5({
|
|
4200
4371
|
className: "draggable-container",
|
|
4201
4372
|
ref: provided.innerRef
|
|
4202
4373
|
}, provided.droppableProps),
|
|
@@ -4207,9 +4378,9 @@ const TableFormBodyRows = memo((props) => {
|
|
|
4207
4378
|
key: `draggable-id-${i}`,
|
|
4208
4379
|
index: i
|
|
4209
4380
|
},
|
|
4210
|
-
(provided2, snapshot) => /* @__PURE__ */ React__default.createElement("div", __spreadValues$
|
|
4381
|
+
(provided2, snapshot) => /* @__PURE__ */ React__default.createElement("div", __spreadValues$5({ ref: provided2.innerRef }, provided2.draggableProps), /* @__PURE__ */ React__default.createElement(
|
|
4211
4382
|
TableFormRow,
|
|
4212
|
-
__spreadProps$
|
|
4383
|
+
__spreadProps$5(__spreadValues$5({}, props), {
|
|
4213
4384
|
rowIndex: i,
|
|
4214
4385
|
provided: provided2,
|
|
4215
4386
|
snapshot
|
|
@@ -4217,28 +4388,28 @@ const TableFormBodyRows = memo((props) => {
|
|
|
4217
4388
|
))
|
|
4218
4389
|
)),
|
|
4219
4390
|
provided.placeholder
|
|
4220
|
-
))) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, data.map((_d, i) => /* @__PURE__ */ React__default.createElement(TableFormRow, __spreadProps$
|
|
4391
|
+
))) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, data.map((_d, i) => /* @__PURE__ */ React__default.createElement(TableFormRow, __spreadProps$5(__spreadValues$5({}, props), { rowIndex: i, key: `table-row-${i}` }))));
|
|
4221
4392
|
});
|
|
4222
4393
|
|
|
4223
|
-
var __defProp$
|
|
4224
|
-
var __defProps$
|
|
4225
|
-
var __getOwnPropDescs$
|
|
4226
|
-
var __getOwnPropSymbols$
|
|
4227
|
-
var __hasOwnProp$
|
|
4228
|
-
var __propIsEnum$
|
|
4229
|
-
var __defNormalProp$
|
|
4230
|
-
var __spreadValues$
|
|
4394
|
+
var __defProp$4 = Object.defineProperty;
|
|
4395
|
+
var __defProps$4 = Object.defineProperties;
|
|
4396
|
+
var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
|
|
4397
|
+
var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
|
|
4398
|
+
var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
|
|
4399
|
+
var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
|
|
4400
|
+
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4401
|
+
var __spreadValues$4 = (a, b) => {
|
|
4231
4402
|
for (var prop in b || (b = {}))
|
|
4232
|
-
if (__hasOwnProp$
|
|
4233
|
-
__defNormalProp$
|
|
4234
|
-
if (__getOwnPropSymbols$
|
|
4235
|
-
for (var prop of __getOwnPropSymbols$
|
|
4236
|
-
if (__propIsEnum$
|
|
4237
|
-
__defNormalProp$
|
|
4403
|
+
if (__hasOwnProp$4.call(b, prop))
|
|
4404
|
+
__defNormalProp$4(a, prop, b[prop]);
|
|
4405
|
+
if (__getOwnPropSymbols$4)
|
|
4406
|
+
for (var prop of __getOwnPropSymbols$4(b)) {
|
|
4407
|
+
if (__propIsEnum$4.call(b, prop))
|
|
4408
|
+
__defNormalProp$4(a, prop, b[prop]);
|
|
4238
4409
|
}
|
|
4239
4410
|
return a;
|
|
4240
4411
|
};
|
|
4241
|
-
var __spreadProps$
|
|
4412
|
+
var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
|
|
4242
4413
|
const BatchInputListHeaderCell = (props) => {
|
|
4243
4414
|
const { column, disabled, data, disableBatchFilling, onBlur, onChange } = props;
|
|
4244
4415
|
const [errMsg, setErrMsg] = useState();
|
|
@@ -4250,7 +4421,7 @@ const BatchInputListHeaderCell = (props) => {
|
|
|
4250
4421
|
setErrMsg(err || void 0);
|
|
4251
4422
|
const shouldAutoIncrease = column.type !== "password" && column.autoIncrease;
|
|
4252
4423
|
const newData = data.map((cell, rowIndex) => {
|
|
4253
|
-
return __spreadProps$
|
|
4424
|
+
return __spreadProps$4(__spreadValues$4({}, cell), {
|
|
4254
4425
|
[column.key]: shouldAutoIncrease && typeof value === "string" ? increaseLastNumber(value, rowIndex) : value
|
|
4255
4426
|
});
|
|
4256
4427
|
});
|
|
@@ -4267,7 +4438,7 @@ const BatchInputListHeaderCell = (props) => {
|
|
|
4267
4438
|
const CellComponent = ColumnHeaderImpls[column.type];
|
|
4268
4439
|
return /* @__PURE__ */ React__default.createElement(
|
|
4269
4440
|
CellComponent,
|
|
4270
|
-
__spreadProps$
|
|
4441
|
+
__spreadProps$4(__spreadValues$4({}, props), {
|
|
4271
4442
|
column,
|
|
4272
4443
|
onChange: headerOnChange,
|
|
4273
4444
|
onBlur: _onBlur
|
|
@@ -4302,25 +4473,25 @@ const BatchInputListHeaderCell = (props) => {
|
|
|
4302
4473
|
);
|
|
4303
4474
|
};
|
|
4304
4475
|
|
|
4305
|
-
var __defProp$
|
|
4306
|
-
var __defProps$
|
|
4307
|
-
var __getOwnPropDescs$
|
|
4308
|
-
var __getOwnPropSymbols$
|
|
4309
|
-
var __hasOwnProp$
|
|
4310
|
-
var __propIsEnum$
|
|
4311
|
-
var __defNormalProp$
|
|
4312
|
-
var __spreadValues$
|
|
4476
|
+
var __defProp$3 = Object.defineProperty;
|
|
4477
|
+
var __defProps$3 = Object.defineProperties;
|
|
4478
|
+
var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
|
|
4479
|
+
var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
|
|
4480
|
+
var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
|
|
4481
|
+
var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
|
|
4482
|
+
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4483
|
+
var __spreadValues$3 = (a, b) => {
|
|
4313
4484
|
for (var prop in b || (b = {}))
|
|
4314
|
-
if (__hasOwnProp$
|
|
4315
|
-
__defNormalProp$
|
|
4316
|
-
if (__getOwnPropSymbols$
|
|
4317
|
-
for (var prop of __getOwnPropSymbols$
|
|
4318
|
-
if (__propIsEnum$
|
|
4319
|
-
__defNormalProp$
|
|
4485
|
+
if (__hasOwnProp$3.call(b, prop))
|
|
4486
|
+
__defNormalProp$3(a, prop, b[prop]);
|
|
4487
|
+
if (__getOwnPropSymbols$3)
|
|
4488
|
+
for (var prop of __getOwnPropSymbols$3(b)) {
|
|
4489
|
+
if (__propIsEnum$3.call(b, prop))
|
|
4490
|
+
__defNormalProp$3(a, prop, b[prop]);
|
|
4320
4491
|
}
|
|
4321
4492
|
return a;
|
|
4322
4493
|
};
|
|
4323
|
-
var __spreadProps$
|
|
4494
|
+
var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
|
|
4324
4495
|
const DEFAULT_ROW_COUNT = 3;
|
|
4325
4496
|
const TableForm = React__default.forwardRef(
|
|
4326
4497
|
({
|
|
@@ -4377,7 +4548,7 @@ const TableForm = React__default.forwardRef(
|
|
|
4377
4548
|
(key, error) => {
|
|
4378
4549
|
if (error) {
|
|
4379
4550
|
const newData = latestData.map((cell) => {
|
|
4380
|
-
return __spreadProps$
|
|
4551
|
+
return __spreadProps$3(__spreadValues$3({}, cell), {
|
|
4381
4552
|
[key]: ""
|
|
4382
4553
|
});
|
|
4383
4554
|
});
|
|
@@ -4755,172 +4926,6 @@ const FailedLoad = props => {
|
|
|
4755
4926
|
}, refetchText || t("common.retry")));
|
|
4756
4927
|
};
|
|
4757
4928
|
|
|
4758
|
-
var __defProp$4 = Object.defineProperty;
|
|
4759
|
-
var __defProps$4 = Object.defineProperties;
|
|
4760
|
-
var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
|
|
4761
|
-
var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
|
|
4762
|
-
var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
|
|
4763
|
-
var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
|
|
4764
|
-
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4765
|
-
var __spreadValues$4 = (a, b) => {
|
|
4766
|
-
for (var prop in b || (b = {}))
|
|
4767
|
-
if (__hasOwnProp$4.call(b, prop))
|
|
4768
|
-
__defNormalProp$4(a, prop, b[prop]);
|
|
4769
|
-
if (__getOwnPropSymbols$4)
|
|
4770
|
-
for (var prop of __getOwnPropSymbols$4(b)) {
|
|
4771
|
-
if (__propIsEnum$4.call(b, prop))
|
|
4772
|
-
__defNormalProp$4(a, prop, b[prop]);
|
|
4773
|
-
}
|
|
4774
|
-
return a;
|
|
4775
|
-
};
|
|
4776
|
-
var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
|
|
4777
|
-
const initialChartState = {
|
|
4778
|
-
pointers: {},
|
|
4779
|
-
resourceData: {},
|
|
4780
|
-
averageData: {}
|
|
4781
|
-
};
|
|
4782
|
-
const chartReducer = (state = initialChartState, action) => {
|
|
4783
|
-
switch (action.type) {
|
|
4784
|
-
case "SET_POINTER" /* SET_POINTER */: {
|
|
4785
|
-
const { uuid, left, text, visible, value } = action.payload;
|
|
4786
|
-
return __spreadProps$4(__spreadValues$4({}, state), {
|
|
4787
|
-
pointers: __spreadProps$4(__spreadValues$4({}, state.pointers), {
|
|
4788
|
-
[uuid]: {
|
|
4789
|
-
left,
|
|
4790
|
-
text,
|
|
4791
|
-
visible,
|
|
4792
|
-
value
|
|
4793
|
-
}
|
|
4794
|
-
})
|
|
4795
|
-
});
|
|
4796
|
-
}
|
|
4797
|
-
case "SET_RESOURCE_DATA" /* SET_RESOURCE_DATA */: {
|
|
4798
|
-
const { uuid, data } = action.payload;
|
|
4799
|
-
return __spreadProps$4(__spreadValues$4({}, state), {
|
|
4800
|
-
resourceData: __spreadProps$4(__spreadValues$4({}, state.resourceData), {
|
|
4801
|
-
[uuid]: data
|
|
4802
|
-
})
|
|
4803
|
-
});
|
|
4804
|
-
}
|
|
4805
|
-
case "SET_AVERAGE_DATA" /* SET_AVERAGE_DATA */: {
|
|
4806
|
-
const { uuid, average } = action.payload;
|
|
4807
|
-
return __spreadProps$4(__spreadValues$4({}, state), {
|
|
4808
|
-
averageData: __spreadProps$4(__spreadValues$4({}, state.averageData), {
|
|
4809
|
-
[uuid]: average
|
|
4810
|
-
})
|
|
4811
|
-
});
|
|
4812
|
-
}
|
|
4813
|
-
default: {
|
|
4814
|
-
return state;
|
|
4815
|
-
}
|
|
4816
|
-
}
|
|
4817
|
-
};
|
|
4818
|
-
|
|
4819
|
-
var __defProp$3 = Object.defineProperty;
|
|
4820
|
-
var __defProps$3 = Object.defineProperties;
|
|
4821
|
-
var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
|
|
4822
|
-
var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
|
|
4823
|
-
var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
|
|
4824
|
-
var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
|
|
4825
|
-
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4826
|
-
var __spreadValues$3 = (a, b) => {
|
|
4827
|
-
for (var prop in b || (b = {}))
|
|
4828
|
-
if (__hasOwnProp$3.call(b, prop))
|
|
4829
|
-
__defNormalProp$3(a, prop, b[prop]);
|
|
4830
|
-
if (__getOwnPropSymbols$3)
|
|
4831
|
-
for (var prop of __getOwnPropSymbols$3(b)) {
|
|
4832
|
-
if (__propIsEnum$3.call(b, prop))
|
|
4833
|
-
__defNormalProp$3(a, prop, b[prop]);
|
|
4834
|
-
}
|
|
4835
|
-
return a;
|
|
4836
|
-
};
|
|
4837
|
-
var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
|
|
4838
|
-
var ModalActions = /* @__PURE__ */ ((ModalActions2) => {
|
|
4839
|
-
ModalActions2["PUSH_MODAL"] = "PUSH_MODAL";
|
|
4840
|
-
ModalActions2["POP_MODAL"] = "POP_MODAL";
|
|
4841
|
-
ModalActions2["REMOVE_MODAL"] = "REMOVE_MODAL";
|
|
4842
|
-
ModalActions2["CLOSE_MODAL"] = "CLOSE_MODAL";
|
|
4843
|
-
return ModalActions2;
|
|
4844
|
-
})(ModalActions || {});
|
|
4845
|
-
const initialModalState = {
|
|
4846
|
-
stack: [],
|
|
4847
|
-
closeId: 0
|
|
4848
|
-
};
|
|
4849
|
-
let MODAL_ID = 1;
|
|
4850
|
-
const modalReducer = (state = initialModalState, action) => {
|
|
4851
|
-
switch (action.type) {
|
|
4852
|
-
case "PUSH_MODAL" /* PUSH_MODAL */:
|
|
4853
|
-
if (state.stack.some(
|
|
4854
|
-
(modal) => modal.component === action.payload.component
|
|
4855
|
-
)) {
|
|
4856
|
-
return state;
|
|
4857
|
-
}
|
|
4858
|
-
return __spreadProps$3(__spreadValues$3({}, state), {
|
|
4859
|
-
stack: state.stack.concat(__spreadProps$3(__spreadValues$3({}, action.payload), {
|
|
4860
|
-
id: MODAL_ID++
|
|
4861
|
-
}))
|
|
4862
|
-
});
|
|
4863
|
-
case "POP_MODAL" /* POP_MODAL */:
|
|
4864
|
-
return __spreadProps$3(__spreadValues$3({}, state), {
|
|
4865
|
-
stack: state.stack.slice(0, -1)
|
|
4866
|
-
});
|
|
4867
|
-
case "REMOVE_MODAL" /* REMOVE_MODAL */:
|
|
4868
|
-
return __spreadProps$3(__spreadValues$3({}, state), {
|
|
4869
|
-
closeId: 0,
|
|
4870
|
-
stack: state.stack.filter((m) => m.id !== action.id)
|
|
4871
|
-
});
|
|
4872
|
-
case "CLOSE_MODAL" /* CLOSE_MODAL */:
|
|
4873
|
-
return __spreadProps$3(__spreadValues$3({}, state), {
|
|
4874
|
-
closeId: action.id
|
|
4875
|
-
});
|
|
4876
|
-
default:
|
|
4877
|
-
return state;
|
|
4878
|
-
}
|
|
4879
|
-
};
|
|
4880
|
-
|
|
4881
|
-
const appReducer = combineReducers({
|
|
4882
|
-
chart: chartReducer,
|
|
4883
|
-
modal: modalReducer
|
|
4884
|
-
});
|
|
4885
|
-
const rootReducer = (state, action) => {
|
|
4886
|
-
if (action.type === "RESET_UI_KIT_STORE") {
|
|
4887
|
-
state = {
|
|
4888
|
-
modal: initialModalState,
|
|
4889
|
-
chart: initialChartState
|
|
4890
|
-
};
|
|
4891
|
-
}
|
|
4892
|
-
return appReducer(state, action);
|
|
4893
|
-
};
|
|
4894
|
-
const UIKitStore = createStore(rootReducer);
|
|
4895
|
-
function pushModal(modal) {
|
|
4896
|
-
UIKitStore.dispatch({
|
|
4897
|
-
type: ModalActions.PUSH_MODAL,
|
|
4898
|
-
payload: modal
|
|
4899
|
-
});
|
|
4900
|
-
}
|
|
4901
|
-
function popModal() {
|
|
4902
|
-
UIKitStore.dispatch({
|
|
4903
|
-
type: ModalActions.POP_MODAL
|
|
4904
|
-
});
|
|
4905
|
-
}
|
|
4906
|
-
function closeModal(id) {
|
|
4907
|
-
UIKitStore.dispatch({
|
|
4908
|
-
type: ModalActions.CLOSE_MODAL,
|
|
4909
|
-
id
|
|
4910
|
-
});
|
|
4911
|
-
}
|
|
4912
|
-
|
|
4913
|
-
const ctx = createContext({
|
|
4914
|
-
store: UIKitStore,
|
|
4915
|
-
storeState: UIKitStore.getState()
|
|
4916
|
-
});
|
|
4917
|
-
const KitStoreProvider = (props) => {
|
|
4918
|
-
const { children } = props;
|
|
4919
|
-
return /* @__PURE__ */ React__default.createElement(Provider, { context: ctx, store: UIKitStore }, children);
|
|
4920
|
-
};
|
|
4921
|
-
const useKitDispatch = createDispatchHook(ctx);
|
|
4922
|
-
const useKitSelector = createSelectorHook(ctx);
|
|
4923
|
-
|
|
4924
4929
|
var __defProp$2 = Object.defineProperty;
|
|
4925
4930
|
var __defProps$2 = Object.defineProperties;
|
|
4926
4931
|
var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
|
|
@@ -5093,10 +5098,6 @@ const ModalStack = () => {
|
|
|
5093
5098
|
const stack = useKitSelector(
|
|
5094
5099
|
(state) => state.modal.stack
|
|
5095
5100
|
);
|
|
5096
|
-
const dispatch = useKitDispatch();
|
|
5097
|
-
const closeId = useKitSelector(
|
|
5098
|
-
(state) => state.modal.closeId
|
|
5099
|
-
);
|
|
5100
5101
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, stack.map((modal) => /* @__PURE__ */ React__default.createElement(
|
|
5101
5102
|
modal.component,
|
|
5102
5103
|
__spreadProps$1(__spreadValues$1({}, modal.props), {
|
|
@@ -5108,11 +5109,7 @@ const ModalStack = () => {
|
|
|
5108
5109
|
}
|
|
5109
5110
|
closeModal(modal.id);
|
|
5110
5111
|
},
|
|
5111
|
-
key: modal.id
|
|
5112
|
-
removeModal: () => {
|
|
5113
|
-
dispatch({ type: ModalActions.REMOVE_MODAL, id: modal.id });
|
|
5114
|
-
},
|
|
5115
|
-
visible: closeId !== modal.id
|
|
5112
|
+
key: modal.id
|
|
5116
5113
|
})
|
|
5117
5114
|
)));
|
|
5118
5115
|
};
|