@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/umd/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@cloudtower/parrot'), require('antd'), require('react'), require('classnames'), require('lodash'), require('react-svg-unique-id'), require('react-i18next'), require('@linaria/core'), require('@linaria/react'), require('moment'), require('react-dom'), require('react-is'), require('@ant-design/icons'), require('antd/lib/form/FormItem'), 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('
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '@cloudtower/parrot', 'antd', 'react', 'classnames', 'lodash', 'react-svg-unique-id', 'react-i18next', '@linaria/core', '@linaria/react', 'moment', 'react-dom', 'react-is', '@ant-design/icons', 'antd/lib/form/FormItem', '@ant-design/icons/CheckCircleFilled', '@ant-design/icons/CloseCircleFilled', '@ant-design/icons/ExclamationCircleFilled', '@ant-design/icons/InfoCircleFilled', '@ant-design/icons/LoadingOutlined', '@cloudtower/rc-notification', '@cloudtower/icons-react', 'react-beautiful-dnd', 'timezones.json', '
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.index = {}, global.parrot, global.antd, global.React, global.cs, global._, global.reactSvgUniqueId, global.reactI18next, global.core, global.react, global.moment, global.reactDom, global.reactIs, global.icons, global.AntdFormItem, global.CheckCircleFilled, global.CloseCircleFilled, global.ExclamationCircleFilled, global.InfoCircleFilled, global.LoadingOutlined, global.RCNotification, global.
|
|
5
|
-
})(this, (function (exports, parrot, antd, React, cs, _, reactSvgUniqueId, reactI18next, core, react, moment, reactDom, reactIs, icons, AntdFormItem, CheckCircleFilled, CloseCircleFilled, ExclamationCircleFilled, InfoCircleFilled, LoadingOutlined, RCNotification,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@cloudtower/parrot'), require('antd'), require('react'), require('classnames'), require('lodash'), require('react-svg-unique-id'), require('react-i18next'), require('@linaria/core'), require('@linaria/react'), require('moment'), require('react-dom'), require('react-is'), require('@ant-design/icons'), require('antd/lib/form/FormItem'), 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('@cloudtower/icons-react'), require('react-beautiful-dnd'), require('timezones.json'), require('dayjs'), require('recharts'), require('antd/lib/locale/en_US'), require('antd/lib/locale/zh_CN')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', '@cloudtower/parrot', 'antd', 'react', 'classnames', 'lodash', 'react-svg-unique-id', 'react-i18next', '@linaria/core', '@linaria/react', 'moment', 'react-dom', 'react-is', '@ant-design/icons', 'antd/lib/form/FormItem', '@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', '@cloudtower/icons-react', 'react-beautiful-dnd', 'timezones.json', 'dayjs', 'recharts', 'antd/lib/locale/en_US', 'antd/lib/locale/zh_CN'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.index = {}, global.parrot, global.antd, global.React, global.cs, global._, global.reactSvgUniqueId, global.reactI18next, global.core, global.react, global.moment, global.reactDom, global.reactIs, global.icons, global.AntdFormItem, global.CheckCircleFilled, global.CloseCircleFilled, global.ExclamationCircleFilled, global.InfoCircleFilled, global.LoadingOutlined, global.RCNotification, global.redux, global.reactRedux, global.iconsReact, global.reactBeautifulDnd, global.TimeZones, global.dayjs, null, global.enUS, global.zhCN));
|
|
5
|
+
})(this, (function (exports, parrot, antd, React, cs, _, reactSvgUniqueId, reactI18next, core, react, moment, reactDom, reactIs, icons, AntdFormItem, CheckCircleFilled, CloseCircleFilled, ExclamationCircleFilled, InfoCircleFilled, LoadingOutlined, RCNotification, redux, reactRedux, iconsReact, reactBeautifulDnd, TimeZones, dayjs, recharts, enUS, zhCN) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
8
|
|
|
@@ -2600,19 +2600,186 @@
|
|
|
2600
2600
|
return a;
|
|
2601
2601
|
};
|
|
2602
2602
|
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
|
2603
|
+
const initialChartState = {
|
|
2604
|
+
pointers: {},
|
|
2605
|
+
resourceData: {},
|
|
2606
|
+
averageData: {}
|
|
2607
|
+
};
|
|
2608
|
+
const chartReducer = (state = initialChartState, action) => {
|
|
2609
|
+
switch (action.type) {
|
|
2610
|
+
case "SET_POINTER" /* SET_POINTER */: {
|
|
2611
|
+
const { uuid, left, text, visible, value } = action.payload;
|
|
2612
|
+
return __spreadProps$e(__spreadValues$k({}, state), {
|
|
2613
|
+
pointers: __spreadProps$e(__spreadValues$k({}, state.pointers), {
|
|
2614
|
+
[uuid]: {
|
|
2615
|
+
left,
|
|
2616
|
+
text,
|
|
2617
|
+
visible,
|
|
2618
|
+
value
|
|
2619
|
+
}
|
|
2620
|
+
})
|
|
2621
|
+
});
|
|
2622
|
+
}
|
|
2623
|
+
case "SET_RESOURCE_DATA" /* SET_RESOURCE_DATA */: {
|
|
2624
|
+
const { uuid, data } = action.payload;
|
|
2625
|
+
return __spreadProps$e(__spreadValues$k({}, state), {
|
|
2626
|
+
resourceData: __spreadProps$e(__spreadValues$k({}, state.resourceData), {
|
|
2627
|
+
[uuid]: data
|
|
2628
|
+
})
|
|
2629
|
+
});
|
|
2630
|
+
}
|
|
2631
|
+
case "SET_AVERAGE_DATA" /* SET_AVERAGE_DATA */: {
|
|
2632
|
+
const { uuid, average } = action.payload;
|
|
2633
|
+
return __spreadProps$e(__spreadValues$k({}, state), {
|
|
2634
|
+
averageData: __spreadProps$e(__spreadValues$k({}, state.averageData), {
|
|
2635
|
+
[uuid]: average
|
|
2636
|
+
})
|
|
2637
|
+
});
|
|
2638
|
+
}
|
|
2639
|
+
default: {
|
|
2640
|
+
return state;
|
|
2641
|
+
}
|
|
2642
|
+
}
|
|
2643
|
+
};
|
|
2644
|
+
|
|
2645
|
+
var __defProp$j = Object.defineProperty;
|
|
2646
|
+
var __defProps$d = Object.defineProperties;
|
|
2647
|
+
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
2648
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
2649
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
2650
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
2651
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2652
|
+
var __spreadValues$j = (a, b) => {
|
|
2653
|
+
for (var prop in b || (b = {}))
|
|
2654
|
+
if (__hasOwnProp$j.call(b, prop))
|
|
2655
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
2656
|
+
if (__getOwnPropSymbols$j)
|
|
2657
|
+
for (var prop of __getOwnPropSymbols$j(b)) {
|
|
2658
|
+
if (__propIsEnum$j.call(b, prop))
|
|
2659
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
2660
|
+
}
|
|
2661
|
+
return a;
|
|
2662
|
+
};
|
|
2663
|
+
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
|
2664
|
+
var ModalActions = /* @__PURE__ */ ((ModalActions2) => {
|
|
2665
|
+
ModalActions2["PUSH_MODAL"] = "PUSH_MODAL";
|
|
2666
|
+
ModalActions2["POP_MODAL"] = "POP_MODAL";
|
|
2667
|
+
ModalActions2["REMOVE_MODAL"] = "REMOVE_MODAL";
|
|
2668
|
+
ModalActions2["CLOSE_MODAL"] = "CLOSE_MODAL";
|
|
2669
|
+
return ModalActions2;
|
|
2670
|
+
})(ModalActions || {});
|
|
2671
|
+
const initialModalState = {
|
|
2672
|
+
stack: [],
|
|
2673
|
+
closeId: 0
|
|
2674
|
+
};
|
|
2675
|
+
let MODAL_ID = 1;
|
|
2676
|
+
const modalReducer = (state = initialModalState, action) => {
|
|
2677
|
+
switch (action.type) {
|
|
2678
|
+
case "PUSH_MODAL" /* PUSH_MODAL */:
|
|
2679
|
+
if (state.stack.some(
|
|
2680
|
+
(modal) => modal.component === action.payload.component
|
|
2681
|
+
)) {
|
|
2682
|
+
return state;
|
|
2683
|
+
}
|
|
2684
|
+
return __spreadProps$d(__spreadValues$j({}, state), {
|
|
2685
|
+
stack: state.stack.concat(__spreadProps$d(__spreadValues$j({}, action.payload), {
|
|
2686
|
+
id: MODAL_ID++
|
|
2687
|
+
}))
|
|
2688
|
+
});
|
|
2689
|
+
case "POP_MODAL" /* POP_MODAL */:
|
|
2690
|
+
return __spreadProps$d(__spreadValues$j({}, state), {
|
|
2691
|
+
stack: state.stack.slice(0, -1)
|
|
2692
|
+
});
|
|
2693
|
+
case "REMOVE_MODAL" /* REMOVE_MODAL */:
|
|
2694
|
+
return __spreadProps$d(__spreadValues$j({}, state), {
|
|
2695
|
+
closeId: 0,
|
|
2696
|
+
stack: state.stack.filter((m) => m.id !== action.id)
|
|
2697
|
+
});
|
|
2698
|
+
case "CLOSE_MODAL" /* CLOSE_MODAL */:
|
|
2699
|
+
return __spreadProps$d(__spreadValues$j({}, state), {
|
|
2700
|
+
closeId: action.id
|
|
2701
|
+
});
|
|
2702
|
+
default:
|
|
2703
|
+
return state;
|
|
2704
|
+
}
|
|
2705
|
+
};
|
|
2706
|
+
|
|
2707
|
+
const appReducer = redux.combineReducers({
|
|
2708
|
+
chart: chartReducer,
|
|
2709
|
+
modal: modalReducer
|
|
2710
|
+
});
|
|
2711
|
+
const rootReducer = (state, action) => {
|
|
2712
|
+
if (action.type === "RESET_UI_KIT_STORE") {
|
|
2713
|
+
state = {
|
|
2714
|
+
modal: initialModalState,
|
|
2715
|
+
chart: initialChartState
|
|
2716
|
+
};
|
|
2717
|
+
}
|
|
2718
|
+
return appReducer(state, action);
|
|
2719
|
+
};
|
|
2720
|
+
const UIKitStore = redux.createStore(rootReducer);
|
|
2721
|
+
function pushModal(modal) {
|
|
2722
|
+
UIKitStore.dispatch({
|
|
2723
|
+
type: ModalActions.PUSH_MODAL,
|
|
2724
|
+
payload: modal
|
|
2725
|
+
});
|
|
2726
|
+
}
|
|
2727
|
+
function popModal() {
|
|
2728
|
+
UIKitStore.dispatch({
|
|
2729
|
+
type: ModalActions.POP_MODAL
|
|
2730
|
+
});
|
|
2731
|
+
}
|
|
2732
|
+
function closeModal(id) {
|
|
2733
|
+
UIKitStore.dispatch({
|
|
2734
|
+
type: ModalActions.CLOSE_MODAL,
|
|
2735
|
+
id
|
|
2736
|
+
});
|
|
2737
|
+
}
|
|
2738
|
+
|
|
2739
|
+
const ctx = React.createContext({
|
|
2740
|
+
store: UIKitStore,
|
|
2741
|
+
storeState: UIKitStore.getState()
|
|
2742
|
+
});
|
|
2743
|
+
const KitStoreProvider = (props) => {
|
|
2744
|
+
const { children } = props;
|
|
2745
|
+
return /* @__PURE__ */ React__namespace.default.createElement(reactRedux.Provider, { context: ctx, store: UIKitStore }, children);
|
|
2746
|
+
};
|
|
2747
|
+
const useKitDispatch = reactRedux.createDispatchHook(ctx);
|
|
2748
|
+
const useKitSelector = reactRedux.createSelectorHook(ctx);
|
|
2749
|
+
|
|
2750
|
+
var __defProp$i = Object.defineProperty;
|
|
2751
|
+
var __defProps$c = Object.defineProperties;
|
|
2752
|
+
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
2753
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
2754
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
2755
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
2756
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2757
|
+
var __spreadValues$i = (a, b) => {
|
|
2758
|
+
for (var prop in b || (b = {}))
|
|
2759
|
+
if (__hasOwnProp$i.call(b, prop))
|
|
2760
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
2761
|
+
if (__getOwnPropSymbols$i)
|
|
2762
|
+
for (var prop of __getOwnPropSymbols$i(b)) {
|
|
2763
|
+
if (__propIsEnum$i.call(b, prop))
|
|
2764
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
2765
|
+
}
|
|
2766
|
+
return a;
|
|
2767
|
+
};
|
|
2768
|
+
var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
|
|
2603
2769
|
var __objRest$5 = (source, exclude) => {
|
|
2604
2770
|
var target = {};
|
|
2605
2771
|
for (var prop in source)
|
|
2606
|
-
if (__hasOwnProp$
|
|
2772
|
+
if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2607
2773
|
target[prop] = source[prop];
|
|
2608
|
-
if (source != null && __getOwnPropSymbols$
|
|
2609
|
-
for (var prop of __getOwnPropSymbols$
|
|
2610
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2774
|
+
if (source != null && __getOwnPropSymbols$i)
|
|
2775
|
+
for (var prop of __getOwnPropSymbols$i(source)) {
|
|
2776
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
|
|
2611
2777
|
target[prop] = source[prop];
|
|
2612
2778
|
}
|
|
2613
2779
|
return target;
|
|
2614
2780
|
};
|
|
2615
2781
|
const Modal = (props) => {
|
|
2782
|
+
var _b;
|
|
2616
2783
|
const { t } = useParrotTranslation();
|
|
2617
2784
|
const _a = props, {
|
|
2618
2785
|
error,
|
|
@@ -2632,9 +2799,7 @@
|
|
|
2632
2799
|
width,
|
|
2633
2800
|
showCancel = true,
|
|
2634
2801
|
showOk = true,
|
|
2635
|
-
afterClose
|
|
2636
|
-
removeModal,
|
|
2637
|
-
visible
|
|
2802
|
+
afterClose
|
|
2638
2803
|
} = _a, restProps = __objRest$5(_a, [
|
|
2639
2804
|
"error",
|
|
2640
2805
|
"okText",
|
|
@@ -2653,10 +2818,16 @@
|
|
|
2653
2818
|
"width",
|
|
2654
2819
|
"showCancel",
|
|
2655
2820
|
"showOk",
|
|
2656
|
-
"afterClose"
|
|
2657
|
-
"removeModal",
|
|
2658
|
-
"visible"
|
|
2821
|
+
"afterClose"
|
|
2659
2822
|
]);
|
|
2823
|
+
const stack = useKitSelector(
|
|
2824
|
+
(state) => state.modal.stack
|
|
2825
|
+
);
|
|
2826
|
+
const id = useKitSelector(
|
|
2827
|
+
(state) => state.modal.closeId
|
|
2828
|
+
);
|
|
2829
|
+
const dispatch = useKitDispatch();
|
|
2830
|
+
const idRef = React.useRef((_b = stack[stack.length - 1]) == null ? void 0 : _b.id);
|
|
2660
2831
|
const transitionClass = React.useRef(fullscreen ? "fullscreen-modal" : "modal-zoom");
|
|
2661
2832
|
const confirmText = React.useMemo(() => {
|
|
2662
2833
|
let text = (okButtonProps == null ? void 0 : okButtonProps.children) || okText;
|
|
@@ -2684,7 +2855,7 @@
|
|
|
2684
2855
|
}
|
|
2685
2856
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
2686
2857
|
antd.Modal,
|
|
2687
|
-
__spreadProps$
|
|
2858
|
+
__spreadProps$c(__spreadValues$i({
|
|
2688
2859
|
maskClosable,
|
|
2689
2860
|
className: cs__default.default(
|
|
2690
2861
|
className,
|
|
@@ -2704,9 +2875,9 @@
|
|
|
2704
2875
|
}, restProps), {
|
|
2705
2876
|
afterClose: () => {
|
|
2706
2877
|
afterClose == null ? void 0 : afterClose();
|
|
2707
|
-
|
|
2878
|
+
dispatch({ type: ModalActions.REMOVE_MODAL, id: idRef.current });
|
|
2708
2879
|
},
|
|
2709
|
-
visible,
|
|
2880
|
+
visible: idRef.current !== id,
|
|
2710
2881
|
footer: /* @__PURE__ */ React__namespace.default.createElement("div", { className: "footer-content" }, footer === void 0 ? /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement("div", { className: "modal-footer-left" }, wizard && typeof wizard === "object" && !wizard.disablePrevStep && wizard.step !== 0 && /* @__PURE__ */ React__namespace.default.createElement(
|
|
2711
2882
|
"span",
|
|
2712
2883
|
{
|
|
@@ -2719,7 +2890,7 @@
|
|
|
2719
2890
|
prevText
|
|
2720
2891
|
), 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(
|
|
2721
2892
|
Button,
|
|
2722
|
-
__spreadValues$
|
|
2893
|
+
__spreadValues$i({
|
|
2723
2894
|
type: "quiet",
|
|
2724
2895
|
onMouseDown: (e) => {
|
|
2725
2896
|
e.preventDefault();
|
|
@@ -2733,12 +2904,12 @@
|
|
|
2733
2904
|
cancelText
|
|
2734
2905
|
), showOk && /* @__PURE__ */ React__namespace.default.createElement(
|
|
2735
2906
|
Button,
|
|
2736
|
-
__spreadValues$
|
|
2907
|
+
__spreadValues$i({
|
|
2737
2908
|
onClick: (e) => {
|
|
2738
|
-
var _a2,
|
|
2909
|
+
var _a2, _b2;
|
|
2739
2910
|
onOk == null ? void 0 : onOk(e);
|
|
2740
2911
|
if (typeof wizard === "object" && wizard.steps[wizard.step]) {
|
|
2741
|
-
(
|
|
2912
|
+
(_b2 = (_a2 = wizard.steps[wizard.step]).onOk) == null ? void 0 : _b2.call(_a2, e);
|
|
2742
2913
|
}
|
|
2743
2914
|
transitionClass.current = fullscreen ? "" : "modal-send";
|
|
2744
2915
|
},
|
|
@@ -2885,19 +3056,19 @@
|
|
|
2885
3056
|
}))));
|
|
2886
3057
|
};
|
|
2887
3058
|
|
|
2888
|
-
var __defProp$
|
|
2889
|
-
var __getOwnPropSymbols$
|
|
2890
|
-
var __hasOwnProp$
|
|
2891
|
-
var __propIsEnum$
|
|
2892
|
-
var __defNormalProp$
|
|
2893
|
-
var __spreadValues$
|
|
3059
|
+
var __defProp$h = Object.defineProperty;
|
|
3060
|
+
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
|
3061
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
3062
|
+
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
|
3063
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3064
|
+
var __spreadValues$h = (a, b) => {
|
|
2894
3065
|
for (var prop in b || (b = {}))
|
|
2895
|
-
if (__hasOwnProp$
|
|
2896
|
-
__defNormalProp$
|
|
2897
|
-
if (__getOwnPropSymbols$
|
|
2898
|
-
for (var prop of __getOwnPropSymbols$
|
|
2899
|
-
if (__propIsEnum$
|
|
2900
|
-
__defNormalProp$
|
|
3066
|
+
if (__hasOwnProp$h.call(b, prop))
|
|
3067
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
3068
|
+
if (__getOwnPropSymbols$h)
|
|
3069
|
+
for (var prop of __getOwnPropSymbols$h(b)) {
|
|
3070
|
+
if (__propIsEnum$h.call(b, prop))
|
|
3071
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
2901
3072
|
}
|
|
2902
3073
|
return a;
|
|
2903
3074
|
};
|
|
@@ -2909,52 +3080,52 @@
|
|
|
2909
3080
|
emptyProps
|
|
2910
3081
|
}) => {
|
|
2911
3082
|
if (isEmpty(rawValue)) {
|
|
2912
|
-
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$
|
|
3083
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$h({}, emptyProps));
|
|
2913
3084
|
}
|
|
2914
3085
|
const { value, unit } = formatPercent(rawValue, decimals);
|
|
2915
3086
|
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));
|
|
2916
3087
|
};
|
|
2917
3088
|
|
|
2918
|
-
var __defProp$
|
|
2919
|
-
var __getOwnPropSymbols$
|
|
2920
|
-
var __hasOwnProp$
|
|
2921
|
-
var __propIsEnum$
|
|
2922
|
-
var __defNormalProp$
|
|
2923
|
-
var __spreadValues$
|
|
3089
|
+
var __defProp$g = Object.defineProperty;
|
|
3090
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
3091
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
3092
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
3093
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3094
|
+
var __spreadValues$g = (a, b) => {
|
|
2924
3095
|
for (var prop in b || (b = {}))
|
|
2925
|
-
if (__hasOwnProp$
|
|
2926
|
-
__defNormalProp$
|
|
2927
|
-
if (__getOwnPropSymbols$
|
|
2928
|
-
for (var prop of __getOwnPropSymbols$
|
|
2929
|
-
if (__propIsEnum$
|
|
2930
|
-
__defNormalProp$
|
|
3096
|
+
if (__hasOwnProp$g.call(b, prop))
|
|
3097
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
3098
|
+
if (__getOwnPropSymbols$g)
|
|
3099
|
+
for (var prop of __getOwnPropSymbols$g(b)) {
|
|
3100
|
+
if (__propIsEnum$g.call(b, prop))
|
|
3101
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
2931
3102
|
}
|
|
2932
3103
|
return a;
|
|
2933
3104
|
};
|
|
2934
|
-
const Progress = (props) => /* @__PURE__ */ React__namespace.default.createElement(antd.Progress, __spreadValues$
|
|
3105
|
+
const Progress = (props) => /* @__PURE__ */ React__namespace.default.createElement(antd.Progress, __spreadValues$g({}, props));
|
|
2935
3106
|
|
|
2936
|
-
var __defProp$
|
|
2937
|
-
var __getOwnPropSymbols$
|
|
2938
|
-
var __hasOwnProp$
|
|
2939
|
-
var __propIsEnum$
|
|
2940
|
-
var __defNormalProp$
|
|
3107
|
+
var __defProp$f = Object.defineProperty;
|
|
3108
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
3109
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
3110
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
3111
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, {
|
|
2941
3112
|
enumerable: true,
|
|
2942
3113
|
configurable: true,
|
|
2943
3114
|
writable: true,
|
|
2944
3115
|
value
|
|
2945
3116
|
}) : obj[key] = value;
|
|
2946
|
-
var __spreadValues$
|
|
2947
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
2948
|
-
if (__getOwnPropSymbols$
|
|
2949
|
-
if (__propIsEnum$
|
|
3117
|
+
var __spreadValues$f = (a, b) => {
|
|
3118
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$f.call(b, prop)) __defNormalProp$f(a, prop, b[prop]);
|
|
3119
|
+
if (__getOwnPropSymbols$f) for (var prop of __getOwnPropSymbols$f(b)) {
|
|
3120
|
+
if (__propIsEnum$f.call(b, prop)) __defNormalProp$f(a, prop, b[prop]);
|
|
2950
3121
|
}
|
|
2951
3122
|
return a;
|
|
2952
3123
|
};
|
|
2953
3124
|
var __objRest$4 = (source, exclude) => {
|
|
2954
3125
|
var target = {};
|
|
2955
|
-
for (var prop in source) if (__hasOwnProp$
|
|
2956
|
-
if (source != null && __getOwnPropSymbols$
|
|
2957
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3126
|
+
for (var prop in source) if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3127
|
+
if (source != null && __getOwnPropSymbols$f) for (var prop of __getOwnPropSymbols$f(source)) {
|
|
3128
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop)) target[prop] = source[prop];
|
|
2958
3129
|
}
|
|
2959
3130
|
return target;
|
|
2960
3131
|
};
|
|
@@ -2980,7 +3151,7 @@
|
|
|
2980
3151
|
className: core.cx("radio-description", Typo.Label.l4_regular)
|
|
2981
3152
|
}, description));
|
|
2982
3153
|
}
|
|
2983
|
-
return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement(antd.Radio, __spreadValues$
|
|
3154
|
+
return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement(antd.Radio, __spreadValues$f({
|
|
2984
3155
|
className: core.cx(className, RadioStyle, compact && "compact"),
|
|
2985
3156
|
checked: checked || false,
|
|
2986
3157
|
"data-test": context.name ? `${context.name}-${String(props.value)}` : String(props.value)
|
|
@@ -2998,7 +3169,7 @@
|
|
|
2998
3169
|
disabled: props.disabled,
|
|
2999
3170
|
name: props.name
|
|
3000
3171
|
}
|
|
3001
|
-
}, /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Group, __spreadValues$
|
|
3172
|
+
}, /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Group, __spreadValues$f({
|
|
3002
3173
|
className: core.cx(className, RadioGroupStyle)
|
|
3003
3174
|
}, props), children ? children : null));
|
|
3004
3175
|
};
|
|
@@ -3054,36 +3225,36 @@
|
|
|
3054
3225
|
className: "ant-radio-button-input-label"
|
|
3055
3226
|
}, typeof children === "string" ? children : ""));
|
|
3056
3227
|
};
|
|
3057
|
-
return /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Button, __spreadValues$
|
|
3228
|
+
return /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Button, __spreadValues$f({
|
|
3058
3229
|
className: core.cx(className, RadioButtonStyle),
|
|
3059
3230
|
value: radioButtonValue
|
|
3060
3231
|
}, props), renderChildren());
|
|
3061
3232
|
};
|
|
3062
3233
|
|
|
3063
|
-
var __defProp$
|
|
3064
|
-
var __getOwnPropSymbols$
|
|
3065
|
-
var __hasOwnProp$
|
|
3066
|
-
var __propIsEnum$
|
|
3067
|
-
var __defNormalProp$
|
|
3068
|
-
var __spreadValues$
|
|
3234
|
+
var __defProp$e = Object.defineProperty;
|
|
3235
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
3236
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
3237
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
3238
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3239
|
+
var __spreadValues$e = (a, b) => {
|
|
3069
3240
|
for (var prop in b || (b = {}))
|
|
3070
|
-
if (__hasOwnProp$
|
|
3071
|
-
__defNormalProp$
|
|
3072
|
-
if (__getOwnPropSymbols$
|
|
3073
|
-
for (var prop of __getOwnPropSymbols$
|
|
3074
|
-
if (__propIsEnum$
|
|
3075
|
-
__defNormalProp$
|
|
3241
|
+
if (__hasOwnProp$e.call(b, prop))
|
|
3242
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
3243
|
+
if (__getOwnPropSymbols$e)
|
|
3244
|
+
for (var prop of __getOwnPropSymbols$e(b)) {
|
|
3245
|
+
if (__propIsEnum$e.call(b, prop))
|
|
3246
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
3076
3247
|
}
|
|
3077
3248
|
return a;
|
|
3078
3249
|
};
|
|
3079
3250
|
var __objRest$3 = (source, exclude) => {
|
|
3080
3251
|
var target = {};
|
|
3081
3252
|
for (var prop in source)
|
|
3082
|
-
if (__hasOwnProp$
|
|
3253
|
+
if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3083
3254
|
target[prop] = source[prop];
|
|
3084
|
-
if (source != null && __getOwnPropSymbols$
|
|
3085
|
-
for (var prop of __getOwnPropSymbols$
|
|
3086
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3255
|
+
if (source != null && __getOwnPropSymbols$e)
|
|
3256
|
+
for (var prop of __getOwnPropSymbols$e(source)) {
|
|
3257
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
|
|
3087
3258
|
target[prop] = source[prop];
|
|
3088
3259
|
}
|
|
3089
3260
|
return target;
|
|
@@ -3093,7 +3264,7 @@
|
|
|
3093
3264
|
const onSearch = ___default.default.debounce(onChange, debounceWait);
|
|
3094
3265
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
3095
3266
|
Input,
|
|
3096
|
-
__spreadValues$
|
|
3267
|
+
__spreadValues$e({
|
|
3097
3268
|
style: { width: 276 },
|
|
3098
3269
|
prefix: /* @__PURE__ */ React__namespace.default.createElement(icons.SearchOutlined, null),
|
|
3099
3270
|
onChange: (e) => onSearch(e.target.value)
|
|
@@ -3101,19 +3272,19 @@
|
|
|
3101
3272
|
);
|
|
3102
3273
|
};
|
|
3103
3274
|
|
|
3104
|
-
var __defProp$
|
|
3105
|
-
var __getOwnPropSymbols$
|
|
3106
|
-
var __hasOwnProp$
|
|
3107
|
-
var __propIsEnum$
|
|
3108
|
-
var __defNormalProp$
|
|
3109
|
-
var __spreadValues$
|
|
3275
|
+
var __defProp$d = Object.defineProperty;
|
|
3276
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
3277
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
3278
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
3279
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3280
|
+
var __spreadValues$d = (a, b) => {
|
|
3110
3281
|
for (var prop in b || (b = {}))
|
|
3111
|
-
if (__hasOwnProp$
|
|
3112
|
-
__defNormalProp$
|
|
3113
|
-
if (__getOwnPropSymbols$
|
|
3114
|
-
for (var prop of __getOwnPropSymbols$
|
|
3115
|
-
if (__propIsEnum$
|
|
3116
|
-
__defNormalProp$
|
|
3282
|
+
if (__hasOwnProp$d.call(b, prop))
|
|
3283
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
3284
|
+
if (__getOwnPropSymbols$d)
|
|
3285
|
+
for (var prop of __getOwnPropSymbols$d(b)) {
|
|
3286
|
+
if (__propIsEnum$d.call(b, prop))
|
|
3287
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
3117
3288
|
}
|
|
3118
3289
|
return a;
|
|
3119
3290
|
};
|
|
@@ -3127,7 +3298,7 @@
|
|
|
3127
3298
|
}) => {
|
|
3128
3299
|
const { t } = useParrotTranslation();
|
|
3129
3300
|
if (isEmpty(rawValue)) {
|
|
3130
|
-
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$
|
|
3301
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$d({}, emptyProps));
|
|
3131
3302
|
}
|
|
3132
3303
|
const { value, unit } = formatSeconds(rawValue, decimals);
|
|
3133
3304
|
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}`)));
|
|
@@ -3209,19 +3380,19 @@
|
|
|
3209
3380
|
})));
|
|
3210
3381
|
};
|
|
3211
3382
|
|
|
3212
|
-
var __defProp$
|
|
3213
|
-
var __getOwnPropSymbols$
|
|
3214
|
-
var __hasOwnProp$
|
|
3215
|
-
var __propIsEnum$
|
|
3216
|
-
var __defNormalProp$
|
|
3217
|
-
var __spreadValues$
|
|
3383
|
+
var __defProp$c = Object.defineProperty;
|
|
3384
|
+
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
3385
|
+
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
3386
|
+
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
3387
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3388
|
+
var __spreadValues$c = (a, b) => {
|
|
3218
3389
|
for (var prop in b || (b = {}))
|
|
3219
|
-
if (__hasOwnProp$
|
|
3220
|
-
__defNormalProp$
|
|
3221
|
-
if (__getOwnPropSymbols$
|
|
3222
|
-
for (var prop of __getOwnPropSymbols$
|
|
3223
|
-
if (__propIsEnum$
|
|
3224
|
-
__defNormalProp$
|
|
3390
|
+
if (__hasOwnProp$c.call(b, prop))
|
|
3391
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
3392
|
+
if (__getOwnPropSymbols$c)
|
|
3393
|
+
for (var prop of __getOwnPropSymbols$c(b)) {
|
|
3394
|
+
if (__propIsEnum$c.call(b, prop))
|
|
3395
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
3225
3396
|
}
|
|
3226
3397
|
return a;
|
|
3227
3398
|
};
|
|
@@ -3233,37 +3404,37 @@
|
|
|
3233
3404
|
emptyProps
|
|
3234
3405
|
}) => {
|
|
3235
3406
|
if (isEmpty(rawValue)) {
|
|
3236
|
-
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$
|
|
3407
|
+
return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$c({}, emptyProps));
|
|
3237
3408
|
}
|
|
3238
3409
|
const { value, unit } = formatSpeed(rawValue, decimals);
|
|
3239
3410
|
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}`));
|
|
3240
3411
|
};
|
|
3241
3412
|
|
|
3242
|
-
var __defProp$
|
|
3243
|
-
var __defProps$
|
|
3244
|
-
var __getOwnPropDescs$
|
|
3245
|
-
var __getOwnPropSymbols$
|
|
3246
|
-
var __hasOwnProp$
|
|
3247
|
-
var __propIsEnum$
|
|
3248
|
-
var __defNormalProp$
|
|
3413
|
+
var __defProp$b = Object.defineProperty;
|
|
3414
|
+
var __defProps$b = Object.defineProperties;
|
|
3415
|
+
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
|
3416
|
+
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
3417
|
+
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
3418
|
+
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
3419
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, {
|
|
3249
3420
|
enumerable: true,
|
|
3250
3421
|
configurable: true,
|
|
3251
3422
|
writable: true,
|
|
3252
3423
|
value
|
|
3253
3424
|
}) : obj[key] = value;
|
|
3254
|
-
var __spreadValues$
|
|
3255
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3256
|
-
if (__getOwnPropSymbols$
|
|
3257
|
-
if (__propIsEnum$
|
|
3425
|
+
var __spreadValues$b = (a, b) => {
|
|
3426
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$b.call(b, prop)) __defNormalProp$b(a, prop, b[prop]);
|
|
3427
|
+
if (__getOwnPropSymbols$b) for (var prop of __getOwnPropSymbols$b(b)) {
|
|
3428
|
+
if (__propIsEnum$b.call(b, prop)) __defNormalProp$b(a, prop, b[prop]);
|
|
3258
3429
|
}
|
|
3259
3430
|
return a;
|
|
3260
3431
|
};
|
|
3261
|
-
var __spreadProps$
|
|
3432
|
+
var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
|
|
3262
3433
|
var __objRest$2 = (source, exclude) => {
|
|
3263
3434
|
var target = {};
|
|
3264
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3265
|
-
if (source != null && __getOwnPropSymbols$
|
|
3266
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3435
|
+
for (var prop in source) if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3436
|
+
if (source != null && __getOwnPropSymbols$b) for (var prop of __getOwnPropSymbols$b(source)) {
|
|
3437
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop)) target[prop] = source[prop];
|
|
3267
3438
|
}
|
|
3268
3439
|
return target;
|
|
3269
3440
|
};
|
|
@@ -3285,40 +3456,40 @@
|
|
|
3285
3456
|
}, count) : null, _step.title);
|
|
3286
3457
|
return /* @__PURE__ */React__namespace.default.createElement(StepsContainer, {
|
|
3287
3458
|
className: containerClassname
|
|
3288
|
-
}, /* @__PURE__ */React__namespace.default.createElement(antd.Steps, __spreadProps$
|
|
3459
|
+
}, /* @__PURE__ */React__namespace.default.createElement(antd.Steps, __spreadProps$b(__spreadValues$b({}, stepsProps), {
|
|
3289
3460
|
type: "default"
|
|
3290
|
-
}), (stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */React__namespace.default.createElement(antd.Steps.Step, __spreadProps$
|
|
3461
|
+
}), (stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */React__namespace.default.createElement(antd.Steps.Step, __spreadProps$b(__spreadValues$b({
|
|
3291
3462
|
key: index
|
|
3292
3463
|
}, step), {
|
|
3293
3464
|
title: titleWithCount(step, index + 1)
|
|
3294
3465
|
}))) : props.children));
|
|
3295
3466
|
};
|
|
3296
3467
|
|
|
3297
|
-
var __defProp$
|
|
3298
|
-
var __defProps$
|
|
3299
|
-
var __getOwnPropDescs$
|
|
3300
|
-
var __getOwnPropSymbols$
|
|
3301
|
-
var __hasOwnProp$
|
|
3302
|
-
var __propIsEnum$
|
|
3303
|
-
var __defNormalProp$
|
|
3468
|
+
var __defProp$a = Object.defineProperty;
|
|
3469
|
+
var __defProps$a = Object.defineProperties;
|
|
3470
|
+
var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
|
|
3471
|
+
var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
|
|
3472
|
+
var __hasOwnProp$a = Object.prototype.hasOwnProperty;
|
|
3473
|
+
var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
|
|
3474
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, {
|
|
3304
3475
|
enumerable: true,
|
|
3305
3476
|
configurable: true,
|
|
3306
3477
|
writable: true,
|
|
3307
3478
|
value
|
|
3308
3479
|
}) : obj[key] = value;
|
|
3309
|
-
var __spreadValues$
|
|
3310
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3311
|
-
if (__getOwnPropSymbols$
|
|
3312
|
-
if (__propIsEnum$
|
|
3480
|
+
var __spreadValues$a = (a, b) => {
|
|
3481
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$a.call(b, prop)) __defNormalProp$a(a, prop, b[prop]);
|
|
3482
|
+
if (__getOwnPropSymbols$a) for (var prop of __getOwnPropSymbols$a(b)) {
|
|
3483
|
+
if (__propIsEnum$a.call(b, prop)) __defNormalProp$a(a, prop, b[prop]);
|
|
3313
3484
|
}
|
|
3314
3485
|
return a;
|
|
3315
3486
|
};
|
|
3316
|
-
var __spreadProps$
|
|
3487
|
+
var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
|
|
3317
3488
|
var __objRest$1 = (source, exclude) => {
|
|
3318
3489
|
var target = {};
|
|
3319
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3320
|
-
if (source != null && __getOwnPropSymbols$
|
|
3321
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3490
|
+
for (var prop in source) if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3491
|
+
if (source != null && __getOwnPropSymbols$a) for (var prop of __getOwnPropSymbols$a(source)) {
|
|
3492
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$a.call(source, prop)) target[prop] = source[prop];
|
|
3322
3493
|
}
|
|
3323
3494
|
return target;
|
|
3324
3495
|
};
|
|
@@ -3338,7 +3509,7 @@
|
|
|
3338
3509
|
});
|
|
3339
3510
|
const classNames = [className, SwitchStyle, "switch"];
|
|
3340
3511
|
if (props.size === "large") classNames.push("ant-switch-large");
|
|
3341
|
-
return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement(antd.Switch, __spreadProps$
|
|
3512
|
+
return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement(antd.Switch, __spreadProps$a(__spreadValues$a({
|
|
3342
3513
|
className: core.cx(...classNames),
|
|
3343
3514
|
checked: checked || false
|
|
3344
3515
|
}, props), {
|
|
@@ -3424,26 +3595,26 @@
|
|
|
3424
3595
|
}));
|
|
3425
3596
|
};
|
|
3426
3597
|
|
|
3427
|
-
var __defProp$
|
|
3428
|
-
var __defProps$
|
|
3429
|
-
var __getOwnPropDescs$
|
|
3430
|
-
var __getOwnPropSymbols$
|
|
3431
|
-
var __hasOwnProp$
|
|
3432
|
-
var __propIsEnum$
|
|
3433
|
-
var __defNormalProp$
|
|
3598
|
+
var __defProp$9 = Object.defineProperty;
|
|
3599
|
+
var __defProps$9 = Object.defineProperties;
|
|
3600
|
+
var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
|
|
3601
|
+
var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
|
|
3602
|
+
var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
|
|
3603
|
+
var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
|
|
3604
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, {
|
|
3434
3605
|
enumerable: true,
|
|
3435
3606
|
configurable: true,
|
|
3436
3607
|
writable: true,
|
|
3437
3608
|
value
|
|
3438
3609
|
}) : obj[key] = value;
|
|
3439
|
-
var __spreadValues$
|
|
3440
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3441
|
-
if (__getOwnPropSymbols$
|
|
3442
|
-
if (__propIsEnum$
|
|
3610
|
+
var __spreadValues$9 = (a, b) => {
|
|
3611
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$9.call(b, prop)) __defNormalProp$9(a, prop, b[prop]);
|
|
3612
|
+
if (__getOwnPropSymbols$9) for (var prop of __getOwnPropSymbols$9(b)) {
|
|
3613
|
+
if (__propIsEnum$9.call(b, prop)) __defNormalProp$9(a, prop, b[prop]);
|
|
3443
3614
|
}
|
|
3444
3615
|
return a;
|
|
3445
3616
|
};
|
|
3446
|
-
var __spreadProps$
|
|
3617
|
+
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
|
|
3447
3618
|
const TableContainerStyle = "t1upn1sz";
|
|
3448
3619
|
const tableStyleCover = "tta5kd2";
|
|
3449
3620
|
const Table = props => {
|
|
@@ -3469,8 +3640,8 @@
|
|
|
3469
3640
|
const orderRef = React.useRef(null);
|
|
3470
3641
|
const hasScrollBard = useTableBodyHasScrollBar(wrapper, dataSource);
|
|
3471
3642
|
const _columns = React.useMemo(() => columns.map(column => {
|
|
3472
|
-
const _column = __spreadValues$
|
|
3473
|
-
if (_column.sorter) {
|
|
3643
|
+
const _column = __spreadValues$9({}, column);
|
|
3644
|
+
if (_column.sorter && typeof _column.title !== "function") {
|
|
3474
3645
|
_column.title = /* @__PURE__ */React__namespace.default.createElement(ColumnTitle, {
|
|
3475
3646
|
title: column.title,
|
|
3476
3647
|
sortOrder: column.sortOrder
|
|
@@ -3511,7 +3682,7 @@
|
|
|
3511
3682
|
}),
|
|
3512
3683
|
rowClassName,
|
|
3513
3684
|
scroll,
|
|
3514
|
-
rowSelection: rowSelection && __spreadProps$
|
|
3685
|
+
rowSelection: rowSelection && __spreadProps$9(__spreadValues$9({}, rowSelection), {
|
|
3515
3686
|
columnWidth: 32
|
|
3516
3687
|
}),
|
|
3517
3688
|
showSorterTooltip: false
|
|
@@ -3573,33 +3744,33 @@
|
|
|
3573
3744
|
return sortArr;
|
|
3574
3745
|
};
|
|
3575
3746
|
|
|
3576
|
-
var __defProp$
|
|
3577
|
-
var __defProps$
|
|
3578
|
-
var __getOwnPropDescs$
|
|
3579
|
-
var __getOwnPropSymbols$
|
|
3580
|
-
var __hasOwnProp$
|
|
3581
|
-
var __propIsEnum$
|
|
3582
|
-
var __defNormalProp$
|
|
3583
|
-
var __spreadValues$
|
|
3747
|
+
var __defProp$8 = Object.defineProperty;
|
|
3748
|
+
var __defProps$8 = Object.defineProperties;
|
|
3749
|
+
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
|
3750
|
+
var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
|
|
3751
|
+
var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
|
|
3752
|
+
var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
|
|
3753
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3754
|
+
var __spreadValues$8 = (a, b) => {
|
|
3584
3755
|
for (var prop in b || (b = {}))
|
|
3585
|
-
if (__hasOwnProp$
|
|
3586
|
-
__defNormalProp$
|
|
3587
|
-
if (__getOwnPropSymbols$
|
|
3588
|
-
for (var prop of __getOwnPropSymbols$
|
|
3589
|
-
if (__propIsEnum$
|
|
3590
|
-
__defNormalProp$
|
|
3756
|
+
if (__hasOwnProp$8.call(b, prop))
|
|
3757
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
3758
|
+
if (__getOwnPropSymbols$8)
|
|
3759
|
+
for (var prop of __getOwnPropSymbols$8(b)) {
|
|
3760
|
+
if (__propIsEnum$8.call(b, prop))
|
|
3761
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
3591
3762
|
}
|
|
3592
3763
|
return a;
|
|
3593
3764
|
};
|
|
3594
|
-
var __spreadProps$
|
|
3765
|
+
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
3595
3766
|
var __objRest = (source, exclude) => {
|
|
3596
3767
|
var target = {};
|
|
3597
3768
|
for (var prop in source)
|
|
3598
|
-
if (__hasOwnProp$
|
|
3769
|
+
if (__hasOwnProp$8.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3599
3770
|
target[prop] = source[prop];
|
|
3600
|
-
if (source != null && __getOwnPropSymbols$
|
|
3601
|
-
for (var prop of __getOwnPropSymbols$
|
|
3602
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3771
|
+
if (source != null && __getOwnPropSymbols$8)
|
|
3772
|
+
for (var prop of __getOwnPropSymbols$8(source)) {
|
|
3773
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$8.call(source, prop))
|
|
3603
3774
|
target[prop] = source[prop];
|
|
3604
3775
|
}
|
|
3605
3776
|
return target;
|
|
@@ -3640,9 +3811,9 @@
|
|
|
3640
3811
|
if (!columns.length) {
|
|
3641
3812
|
return null;
|
|
3642
3813
|
}
|
|
3643
|
-
return CustomizedButton ? /* @__PURE__ */ React__namespace.default.createElement(CustomizedButton, __spreadValues$
|
|
3814
|
+
return CustomizedButton ? /* @__PURE__ */ React__namespace.default.createElement(CustomizedButton, __spreadValues$8({}, props)) : /* @__PURE__ */ React__namespace.default.createElement(AddRowButtonWrapper, { className }, /* @__PURE__ */ React__namespace.default.createElement(
|
|
3644
3815
|
Button,
|
|
3645
|
-
__spreadProps$
|
|
3816
|
+
__spreadProps$8(__spreadValues$8({}, restButtonProps), {
|
|
3646
3817
|
type: restButtonProps.type || "ordinary",
|
|
3647
3818
|
size: restButtonProps.size || "small",
|
|
3648
3819
|
icon: restButtonProps.icon || /* @__PURE__ */ React__namespace.default.createElement(icons.PlusOutlined, null),
|
|
@@ -3737,25 +3908,25 @@
|
|
|
3737
3908
|
);
|
|
3738
3909
|
};
|
|
3739
3910
|
|
|
3740
|
-
var __defProp$
|
|
3741
|
-
var __defProps$
|
|
3742
|
-
var __getOwnPropDescs$
|
|
3743
|
-
var __getOwnPropSymbols$
|
|
3744
|
-
var __hasOwnProp$
|
|
3745
|
-
var __propIsEnum$
|
|
3746
|
-
var __defNormalProp$
|
|
3747
|
-
var __spreadValues$
|
|
3911
|
+
var __defProp$7 = Object.defineProperty;
|
|
3912
|
+
var __defProps$7 = Object.defineProperties;
|
|
3913
|
+
var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
|
|
3914
|
+
var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
|
|
3915
|
+
var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
|
|
3916
|
+
var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
|
|
3917
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3918
|
+
var __spreadValues$7 = (a, b) => {
|
|
3748
3919
|
for (var prop in b || (b = {}))
|
|
3749
|
-
if (__hasOwnProp$
|
|
3750
|
-
__defNormalProp$
|
|
3751
|
-
if (__getOwnPropSymbols$
|
|
3752
|
-
for (var prop of __getOwnPropSymbols$
|
|
3753
|
-
if (__propIsEnum$
|
|
3754
|
-
__defNormalProp$
|
|
3920
|
+
if (__hasOwnProp$7.call(b, prop))
|
|
3921
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
3922
|
+
if (__getOwnPropSymbols$7)
|
|
3923
|
+
for (var prop of __getOwnPropSymbols$7(b)) {
|
|
3924
|
+
if (__propIsEnum$7.call(b, prop))
|
|
3925
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
3755
3926
|
}
|
|
3756
3927
|
return a;
|
|
3757
3928
|
};
|
|
3758
|
-
var __spreadProps$
|
|
3929
|
+
var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
|
|
3759
3930
|
const InputPassword = (props) => {
|
|
3760
3931
|
const [showPassword, setShowPassword] = React.useState(false);
|
|
3761
3932
|
React.useEffect(() => {
|
|
@@ -3771,7 +3942,7 @@
|
|
|
3771
3942
|
const inputType = showPassword ? "text" : "password";
|
|
3772
3943
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
3773
3944
|
antd.Input,
|
|
3774
|
-
__spreadProps$
|
|
3945
|
+
__spreadProps$7(__spreadValues$7({}, props), {
|
|
3775
3946
|
type: inputType,
|
|
3776
3947
|
suffix: showPassword ? /* @__PURE__ */ React__namespace.default.createElement(
|
|
3777
3948
|
icons.EyeOutlined,
|
|
@@ -3791,9 +3962,9 @@
|
|
|
3791
3962
|
};
|
|
3792
3963
|
const CustomInput = (props) => {
|
|
3793
3964
|
if (props.type === "password") {
|
|
3794
|
-
return /* @__PURE__ */ React__namespace.default.createElement(InputPassword, __spreadValues$
|
|
3965
|
+
return /* @__PURE__ */ React__namespace.default.createElement(InputPassword, __spreadValues$7({}, props));
|
|
3795
3966
|
}
|
|
3796
|
-
return /* @__PURE__ */ React__namespace.default.createElement(antd.Input, __spreadValues$
|
|
3967
|
+
return /* @__PURE__ */ React__namespace.default.createElement(antd.Input, __spreadValues$7({}, props));
|
|
3797
3968
|
};
|
|
3798
3969
|
const InputColumnHeaderCell = ({ disabled, column, onChange, onBlur, onVisibleChange }) => {
|
|
3799
3970
|
const _onChange = (e) => {
|
|
@@ -3915,25 +4086,25 @@
|
|
|
3915
4086
|
return ValidateTriggerType2;
|
|
3916
4087
|
})(ValidateTriggerType || {});
|
|
3917
4088
|
|
|
3918
|
-
var __defProp$
|
|
3919
|
-
var __defProps$
|
|
3920
|
-
var __getOwnPropDescs$
|
|
3921
|
-
var __getOwnPropSymbols$
|
|
3922
|
-
var __hasOwnProp$
|
|
3923
|
-
var __propIsEnum$
|
|
3924
|
-
var __defNormalProp$
|
|
3925
|
-
var __spreadValues$
|
|
4089
|
+
var __defProp$6 = Object.defineProperty;
|
|
4090
|
+
var __defProps$6 = Object.defineProperties;
|
|
4091
|
+
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
4092
|
+
var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
|
|
4093
|
+
var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
|
|
4094
|
+
var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
|
|
4095
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4096
|
+
var __spreadValues$6 = (a, b) => {
|
|
3926
4097
|
for (var prop in b || (b = {}))
|
|
3927
|
-
if (__hasOwnProp$
|
|
3928
|
-
__defNormalProp$
|
|
3929
|
-
if (__getOwnPropSymbols$
|
|
3930
|
-
for (var prop of __getOwnPropSymbols$
|
|
3931
|
-
if (__propIsEnum$
|
|
3932
|
-
__defNormalProp$
|
|
4098
|
+
if (__hasOwnProp$6.call(b, prop))
|
|
4099
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
4100
|
+
if (__getOwnPropSymbols$6)
|
|
4101
|
+
for (var prop of __getOwnPropSymbols$6(b)) {
|
|
4102
|
+
if (__propIsEnum$6.call(b, prop))
|
|
4103
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
3933
4104
|
}
|
|
3934
4105
|
return a;
|
|
3935
4106
|
};
|
|
3936
|
-
var __spreadProps$
|
|
4107
|
+
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
|
3937
4108
|
const TableFormBodyCell = (props) => {
|
|
3938
4109
|
const {
|
|
3939
4110
|
column,
|
|
@@ -3955,7 +4126,7 @@
|
|
|
3955
4126
|
(currentValue) => {
|
|
3956
4127
|
var _a;
|
|
3957
4128
|
const value = currentValue || data[rowIndex][column.key];
|
|
3958
|
-
const rowData = __spreadProps$
|
|
4129
|
+
const rowData = __spreadProps$6(__spreadValues$6({}, data[rowIndex]), { [column.key]: value });
|
|
3959
4130
|
const rowValidateRes = getRowValidateResult(rowData);
|
|
3960
4131
|
if (rowValidateRes) {
|
|
3961
4132
|
return;
|
|
@@ -3978,7 +4149,7 @@
|
|
|
3978
4149
|
}, [validateAll, triggerValidate]);
|
|
3979
4150
|
const _onChange = (value, data2) => {
|
|
3980
4151
|
const newData = data2.map(
|
|
3981
|
-
(row, i) => i === rowIndex ? __spreadProps$
|
|
4152
|
+
(row, i) => i === rowIndex ? __spreadProps$6(__spreadValues$6({}, row), { [column.key]: value }) : row
|
|
3982
4153
|
);
|
|
3983
4154
|
onChange == null ? void 0 : onChange(newData, rowIndex, column.key);
|
|
3984
4155
|
if (validateTriggerType === ValidateTriggerType.Normal && isTouched.current || validateTriggerType === ValidateTriggerType.Aggressive) {
|
|
@@ -4055,25 +4226,25 @@
|
|
|
4055
4226
|
);
|
|
4056
4227
|
};
|
|
4057
4228
|
|
|
4058
|
-
var __defProp$
|
|
4059
|
-
var __defProps$
|
|
4060
|
-
var __getOwnPropDescs$
|
|
4061
|
-
var __getOwnPropSymbols$
|
|
4062
|
-
var __hasOwnProp$
|
|
4063
|
-
var __propIsEnum$
|
|
4064
|
-
var __defNormalProp$
|
|
4065
|
-
var __spreadValues$
|
|
4229
|
+
var __defProp$5 = Object.defineProperty;
|
|
4230
|
+
var __defProps$5 = Object.defineProperties;
|
|
4231
|
+
var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
|
|
4232
|
+
var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
|
|
4233
|
+
var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
|
|
4234
|
+
var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
|
|
4235
|
+
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4236
|
+
var __spreadValues$5 = (a, b) => {
|
|
4066
4237
|
for (var prop in b || (b = {}))
|
|
4067
|
-
if (__hasOwnProp$
|
|
4068
|
-
__defNormalProp$
|
|
4069
|
-
if (__getOwnPropSymbols$
|
|
4070
|
-
for (var prop of __getOwnPropSymbols$
|
|
4071
|
-
if (__propIsEnum$
|
|
4072
|
-
__defNormalProp$
|
|
4238
|
+
if (__hasOwnProp$5.call(b, prop))
|
|
4239
|
+
__defNormalProp$5(a, prop, b[prop]);
|
|
4240
|
+
if (__getOwnPropSymbols$5)
|
|
4241
|
+
for (var prop of __getOwnPropSymbols$5(b)) {
|
|
4242
|
+
if (__propIsEnum$5.call(b, prop))
|
|
4243
|
+
__defNormalProp$5(a, prop, b[prop]);
|
|
4073
4244
|
}
|
|
4074
4245
|
return a;
|
|
4075
4246
|
};
|
|
4076
|
-
var __spreadProps$
|
|
4247
|
+
var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
|
|
4077
4248
|
const TableFormRow = (props) => {
|
|
4078
4249
|
const {
|
|
4079
4250
|
data,
|
|
@@ -4156,7 +4327,7 @@
|
|
|
4156
4327
|
);
|
|
4157
4328
|
});
|
|
4158
4329
|
const DraggableHandle = React.useMemo(
|
|
4159
|
-
() => draggable && provided ? /* @__PURE__ */ React__namespace.default.createElement(DraggableHandleWrapper, __spreadValues$
|
|
4330
|
+
() => draggable && provided ? /* @__PURE__ */ React__namespace.default.createElement(DraggableHandleWrapper, __spreadValues$5({}, provided.dragHandleProps), /* @__PURE__ */ React__namespace.default.createElement(
|
|
4160
4331
|
Icon,
|
|
4161
4332
|
{
|
|
4162
4333
|
src: iconsReact.HandlePoint816SecondaryIcon,
|
|
@@ -4205,7 +4376,7 @@
|
|
|
4205
4376
|
);
|
|
4206
4377
|
return draggable ? /* @__PURE__ */ React__namespace.default.createElement(reactBeautifulDnd.DragDropContext, { onDragEnd }, /* @__PURE__ */ React__namespace.default.createElement(reactBeautifulDnd.Droppable, { droppableId: "droppable" }, (provided) => /* @__PURE__ */ React__namespace.default.createElement(
|
|
4207
4378
|
"div",
|
|
4208
|
-
__spreadValues$
|
|
4379
|
+
__spreadValues$5({
|
|
4209
4380
|
className: "draggable-container",
|
|
4210
4381
|
ref: provided.innerRef
|
|
4211
4382
|
}, provided.droppableProps),
|
|
@@ -4216,9 +4387,9 @@
|
|
|
4216
4387
|
key: `draggable-id-${i}`,
|
|
4217
4388
|
index: i
|
|
4218
4389
|
},
|
|
4219
|
-
(provided2, snapshot) => /* @__PURE__ */ React__namespace.default.createElement("div", __spreadValues$
|
|
4390
|
+
(provided2, snapshot) => /* @__PURE__ */ React__namespace.default.createElement("div", __spreadValues$5({ ref: provided2.innerRef }, provided2.draggableProps), /* @__PURE__ */ React__namespace.default.createElement(
|
|
4220
4391
|
TableFormRow,
|
|
4221
|
-
__spreadProps$
|
|
4392
|
+
__spreadProps$5(__spreadValues$5({}, props), {
|
|
4222
4393
|
rowIndex: i,
|
|
4223
4394
|
provided: provided2,
|
|
4224
4395
|
snapshot
|
|
@@ -4226,28 +4397,28 @@
|
|
|
4226
4397
|
))
|
|
4227
4398
|
)),
|
|
4228
4399
|
provided.placeholder
|
|
4229
|
-
))) : /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, data.map((_d, i) => /* @__PURE__ */ React__namespace.default.createElement(TableFormRow, __spreadProps$
|
|
4400
|
+
))) : /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, data.map((_d, i) => /* @__PURE__ */ React__namespace.default.createElement(TableFormRow, __spreadProps$5(__spreadValues$5({}, props), { rowIndex: i, key: `table-row-${i}` }))));
|
|
4230
4401
|
});
|
|
4231
4402
|
|
|
4232
|
-
var __defProp$
|
|
4233
|
-
var __defProps$
|
|
4234
|
-
var __getOwnPropDescs$
|
|
4235
|
-
var __getOwnPropSymbols$
|
|
4236
|
-
var __hasOwnProp$
|
|
4237
|
-
var __propIsEnum$
|
|
4238
|
-
var __defNormalProp$
|
|
4239
|
-
var __spreadValues$
|
|
4403
|
+
var __defProp$4 = Object.defineProperty;
|
|
4404
|
+
var __defProps$4 = Object.defineProperties;
|
|
4405
|
+
var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
|
|
4406
|
+
var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
|
|
4407
|
+
var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
|
|
4408
|
+
var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
|
|
4409
|
+
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4410
|
+
var __spreadValues$4 = (a, b) => {
|
|
4240
4411
|
for (var prop in b || (b = {}))
|
|
4241
|
-
if (__hasOwnProp$
|
|
4242
|
-
__defNormalProp$
|
|
4243
|
-
if (__getOwnPropSymbols$
|
|
4244
|
-
for (var prop of __getOwnPropSymbols$
|
|
4245
|
-
if (__propIsEnum$
|
|
4246
|
-
__defNormalProp$
|
|
4412
|
+
if (__hasOwnProp$4.call(b, prop))
|
|
4413
|
+
__defNormalProp$4(a, prop, b[prop]);
|
|
4414
|
+
if (__getOwnPropSymbols$4)
|
|
4415
|
+
for (var prop of __getOwnPropSymbols$4(b)) {
|
|
4416
|
+
if (__propIsEnum$4.call(b, prop))
|
|
4417
|
+
__defNormalProp$4(a, prop, b[prop]);
|
|
4247
4418
|
}
|
|
4248
4419
|
return a;
|
|
4249
4420
|
};
|
|
4250
|
-
var __spreadProps$
|
|
4421
|
+
var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
|
|
4251
4422
|
const BatchInputListHeaderCell = (props) => {
|
|
4252
4423
|
const { column, disabled, data, disableBatchFilling, onBlur, onChange } = props;
|
|
4253
4424
|
const [errMsg, setErrMsg] = React.useState();
|
|
@@ -4259,7 +4430,7 @@
|
|
|
4259
4430
|
setErrMsg(err || void 0);
|
|
4260
4431
|
const shouldAutoIncrease = column.type !== "password" && column.autoIncrease;
|
|
4261
4432
|
const newData = data.map((cell, rowIndex) => {
|
|
4262
|
-
return __spreadProps$
|
|
4433
|
+
return __spreadProps$4(__spreadValues$4({}, cell), {
|
|
4263
4434
|
[column.key]: shouldAutoIncrease && typeof value === "string" ? increaseLastNumber(value, rowIndex) : value
|
|
4264
4435
|
});
|
|
4265
4436
|
});
|
|
@@ -4276,7 +4447,7 @@
|
|
|
4276
4447
|
const CellComponent = ColumnHeaderImpls[column.type];
|
|
4277
4448
|
return /* @__PURE__ */ React__namespace.default.createElement(
|
|
4278
4449
|
CellComponent,
|
|
4279
|
-
__spreadProps$
|
|
4450
|
+
__spreadProps$4(__spreadValues$4({}, props), {
|
|
4280
4451
|
column,
|
|
4281
4452
|
onChange: headerOnChange,
|
|
4282
4453
|
onBlur: _onBlur
|
|
@@ -4311,25 +4482,25 @@
|
|
|
4311
4482
|
);
|
|
4312
4483
|
};
|
|
4313
4484
|
|
|
4314
|
-
var __defProp$
|
|
4315
|
-
var __defProps$
|
|
4316
|
-
var __getOwnPropDescs$
|
|
4317
|
-
var __getOwnPropSymbols$
|
|
4318
|
-
var __hasOwnProp$
|
|
4319
|
-
var __propIsEnum$
|
|
4320
|
-
var __defNormalProp$
|
|
4321
|
-
var __spreadValues$
|
|
4485
|
+
var __defProp$3 = Object.defineProperty;
|
|
4486
|
+
var __defProps$3 = Object.defineProperties;
|
|
4487
|
+
var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
|
|
4488
|
+
var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
|
|
4489
|
+
var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
|
|
4490
|
+
var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
|
|
4491
|
+
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4492
|
+
var __spreadValues$3 = (a, b) => {
|
|
4322
4493
|
for (var prop in b || (b = {}))
|
|
4323
|
-
if (__hasOwnProp$
|
|
4324
|
-
__defNormalProp$
|
|
4325
|
-
if (__getOwnPropSymbols$
|
|
4326
|
-
for (var prop of __getOwnPropSymbols$
|
|
4327
|
-
if (__propIsEnum$
|
|
4328
|
-
__defNormalProp$
|
|
4494
|
+
if (__hasOwnProp$3.call(b, prop))
|
|
4495
|
+
__defNormalProp$3(a, prop, b[prop]);
|
|
4496
|
+
if (__getOwnPropSymbols$3)
|
|
4497
|
+
for (var prop of __getOwnPropSymbols$3(b)) {
|
|
4498
|
+
if (__propIsEnum$3.call(b, prop))
|
|
4499
|
+
__defNormalProp$3(a, prop, b[prop]);
|
|
4329
4500
|
}
|
|
4330
4501
|
return a;
|
|
4331
4502
|
};
|
|
4332
|
-
var __spreadProps$
|
|
4503
|
+
var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
|
|
4333
4504
|
const DEFAULT_ROW_COUNT = 3;
|
|
4334
4505
|
const TableForm = React__namespace.default.forwardRef(
|
|
4335
4506
|
({
|
|
@@ -4386,7 +4557,7 @@
|
|
|
4386
4557
|
(key, error) => {
|
|
4387
4558
|
if (error) {
|
|
4388
4559
|
const newData = latestData.map((cell) => {
|
|
4389
|
-
return __spreadProps$
|
|
4560
|
+
return __spreadProps$3(__spreadValues$3({}, cell), {
|
|
4390
4561
|
[key]: ""
|
|
4391
4562
|
});
|
|
4392
4563
|
});
|
|
@@ -4764,172 +4935,6 @@
|
|
|
4764
4935
|
}, refetchText || t("common.retry")));
|
|
4765
4936
|
};
|
|
4766
4937
|
|
|
4767
|
-
var __defProp$4 = Object.defineProperty;
|
|
4768
|
-
var __defProps$4 = Object.defineProperties;
|
|
4769
|
-
var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
|
|
4770
|
-
var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
|
|
4771
|
-
var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
|
|
4772
|
-
var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
|
|
4773
|
-
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4774
|
-
var __spreadValues$4 = (a, b) => {
|
|
4775
|
-
for (var prop in b || (b = {}))
|
|
4776
|
-
if (__hasOwnProp$4.call(b, prop))
|
|
4777
|
-
__defNormalProp$4(a, prop, b[prop]);
|
|
4778
|
-
if (__getOwnPropSymbols$4)
|
|
4779
|
-
for (var prop of __getOwnPropSymbols$4(b)) {
|
|
4780
|
-
if (__propIsEnum$4.call(b, prop))
|
|
4781
|
-
__defNormalProp$4(a, prop, b[prop]);
|
|
4782
|
-
}
|
|
4783
|
-
return a;
|
|
4784
|
-
};
|
|
4785
|
-
var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
|
|
4786
|
-
const initialChartState = {
|
|
4787
|
-
pointers: {},
|
|
4788
|
-
resourceData: {},
|
|
4789
|
-
averageData: {}
|
|
4790
|
-
};
|
|
4791
|
-
const chartReducer = (state = initialChartState, action) => {
|
|
4792
|
-
switch (action.type) {
|
|
4793
|
-
case "SET_POINTER" /* SET_POINTER */: {
|
|
4794
|
-
const { uuid, left, text, visible, value } = action.payload;
|
|
4795
|
-
return __spreadProps$4(__spreadValues$4({}, state), {
|
|
4796
|
-
pointers: __spreadProps$4(__spreadValues$4({}, state.pointers), {
|
|
4797
|
-
[uuid]: {
|
|
4798
|
-
left,
|
|
4799
|
-
text,
|
|
4800
|
-
visible,
|
|
4801
|
-
value
|
|
4802
|
-
}
|
|
4803
|
-
})
|
|
4804
|
-
});
|
|
4805
|
-
}
|
|
4806
|
-
case "SET_RESOURCE_DATA" /* SET_RESOURCE_DATA */: {
|
|
4807
|
-
const { uuid, data } = action.payload;
|
|
4808
|
-
return __spreadProps$4(__spreadValues$4({}, state), {
|
|
4809
|
-
resourceData: __spreadProps$4(__spreadValues$4({}, state.resourceData), {
|
|
4810
|
-
[uuid]: data
|
|
4811
|
-
})
|
|
4812
|
-
});
|
|
4813
|
-
}
|
|
4814
|
-
case "SET_AVERAGE_DATA" /* SET_AVERAGE_DATA */: {
|
|
4815
|
-
const { uuid, average } = action.payload;
|
|
4816
|
-
return __spreadProps$4(__spreadValues$4({}, state), {
|
|
4817
|
-
averageData: __spreadProps$4(__spreadValues$4({}, state.averageData), {
|
|
4818
|
-
[uuid]: average
|
|
4819
|
-
})
|
|
4820
|
-
});
|
|
4821
|
-
}
|
|
4822
|
-
default: {
|
|
4823
|
-
return state;
|
|
4824
|
-
}
|
|
4825
|
-
}
|
|
4826
|
-
};
|
|
4827
|
-
|
|
4828
|
-
var __defProp$3 = Object.defineProperty;
|
|
4829
|
-
var __defProps$3 = Object.defineProperties;
|
|
4830
|
-
var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
|
|
4831
|
-
var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
|
|
4832
|
-
var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
|
|
4833
|
-
var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
|
|
4834
|
-
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4835
|
-
var __spreadValues$3 = (a, b) => {
|
|
4836
|
-
for (var prop in b || (b = {}))
|
|
4837
|
-
if (__hasOwnProp$3.call(b, prop))
|
|
4838
|
-
__defNormalProp$3(a, prop, b[prop]);
|
|
4839
|
-
if (__getOwnPropSymbols$3)
|
|
4840
|
-
for (var prop of __getOwnPropSymbols$3(b)) {
|
|
4841
|
-
if (__propIsEnum$3.call(b, prop))
|
|
4842
|
-
__defNormalProp$3(a, prop, b[prop]);
|
|
4843
|
-
}
|
|
4844
|
-
return a;
|
|
4845
|
-
};
|
|
4846
|
-
var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
|
|
4847
|
-
var ModalActions = /* @__PURE__ */ ((ModalActions2) => {
|
|
4848
|
-
ModalActions2["PUSH_MODAL"] = "PUSH_MODAL";
|
|
4849
|
-
ModalActions2["POP_MODAL"] = "POP_MODAL";
|
|
4850
|
-
ModalActions2["REMOVE_MODAL"] = "REMOVE_MODAL";
|
|
4851
|
-
ModalActions2["CLOSE_MODAL"] = "CLOSE_MODAL";
|
|
4852
|
-
return ModalActions2;
|
|
4853
|
-
})(ModalActions || {});
|
|
4854
|
-
const initialModalState = {
|
|
4855
|
-
stack: [],
|
|
4856
|
-
closeId: 0
|
|
4857
|
-
};
|
|
4858
|
-
let MODAL_ID = 1;
|
|
4859
|
-
const modalReducer = (state = initialModalState, action) => {
|
|
4860
|
-
switch (action.type) {
|
|
4861
|
-
case "PUSH_MODAL" /* PUSH_MODAL */:
|
|
4862
|
-
if (state.stack.some(
|
|
4863
|
-
(modal) => modal.component === action.payload.component
|
|
4864
|
-
)) {
|
|
4865
|
-
return state;
|
|
4866
|
-
}
|
|
4867
|
-
return __spreadProps$3(__spreadValues$3({}, state), {
|
|
4868
|
-
stack: state.stack.concat(__spreadProps$3(__spreadValues$3({}, action.payload), {
|
|
4869
|
-
id: MODAL_ID++
|
|
4870
|
-
}))
|
|
4871
|
-
});
|
|
4872
|
-
case "POP_MODAL" /* POP_MODAL */:
|
|
4873
|
-
return __spreadProps$3(__spreadValues$3({}, state), {
|
|
4874
|
-
stack: state.stack.slice(0, -1)
|
|
4875
|
-
});
|
|
4876
|
-
case "REMOVE_MODAL" /* REMOVE_MODAL */:
|
|
4877
|
-
return __spreadProps$3(__spreadValues$3({}, state), {
|
|
4878
|
-
closeId: 0,
|
|
4879
|
-
stack: state.stack.filter((m) => m.id !== action.id)
|
|
4880
|
-
});
|
|
4881
|
-
case "CLOSE_MODAL" /* CLOSE_MODAL */:
|
|
4882
|
-
return __spreadProps$3(__spreadValues$3({}, state), {
|
|
4883
|
-
closeId: action.id
|
|
4884
|
-
});
|
|
4885
|
-
default:
|
|
4886
|
-
return state;
|
|
4887
|
-
}
|
|
4888
|
-
};
|
|
4889
|
-
|
|
4890
|
-
const appReducer = redux.combineReducers({
|
|
4891
|
-
chart: chartReducer,
|
|
4892
|
-
modal: modalReducer
|
|
4893
|
-
});
|
|
4894
|
-
const rootReducer = (state, action) => {
|
|
4895
|
-
if (action.type === "RESET_UI_KIT_STORE") {
|
|
4896
|
-
state = {
|
|
4897
|
-
modal: initialModalState,
|
|
4898
|
-
chart: initialChartState
|
|
4899
|
-
};
|
|
4900
|
-
}
|
|
4901
|
-
return appReducer(state, action);
|
|
4902
|
-
};
|
|
4903
|
-
const UIKitStore = redux.createStore(rootReducer);
|
|
4904
|
-
function pushModal(modal) {
|
|
4905
|
-
UIKitStore.dispatch({
|
|
4906
|
-
type: ModalActions.PUSH_MODAL,
|
|
4907
|
-
payload: modal
|
|
4908
|
-
});
|
|
4909
|
-
}
|
|
4910
|
-
function popModal() {
|
|
4911
|
-
UIKitStore.dispatch({
|
|
4912
|
-
type: ModalActions.POP_MODAL
|
|
4913
|
-
});
|
|
4914
|
-
}
|
|
4915
|
-
function closeModal(id) {
|
|
4916
|
-
UIKitStore.dispatch({
|
|
4917
|
-
type: ModalActions.CLOSE_MODAL,
|
|
4918
|
-
id
|
|
4919
|
-
});
|
|
4920
|
-
}
|
|
4921
|
-
|
|
4922
|
-
const ctx = React.createContext({
|
|
4923
|
-
store: UIKitStore,
|
|
4924
|
-
storeState: UIKitStore.getState()
|
|
4925
|
-
});
|
|
4926
|
-
const KitStoreProvider = (props) => {
|
|
4927
|
-
const { children } = props;
|
|
4928
|
-
return /* @__PURE__ */ React__namespace.default.createElement(reactRedux.Provider, { context: ctx, store: UIKitStore }, children);
|
|
4929
|
-
};
|
|
4930
|
-
const useKitDispatch = reactRedux.createDispatchHook(ctx);
|
|
4931
|
-
const useKitSelector = reactRedux.createSelectorHook(ctx);
|
|
4932
|
-
|
|
4933
4938
|
var __defProp$2 = Object.defineProperty;
|
|
4934
4939
|
var __defProps$2 = Object.defineProperties;
|
|
4935
4940
|
var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
|
|
@@ -5102,10 +5107,6 @@
|
|
|
5102
5107
|
const stack = useKitSelector(
|
|
5103
5108
|
(state) => state.modal.stack
|
|
5104
5109
|
);
|
|
5105
|
-
const dispatch = useKitDispatch();
|
|
5106
|
-
const closeId = useKitSelector(
|
|
5107
|
-
(state) => state.modal.closeId
|
|
5108
|
-
);
|
|
5109
5110
|
return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, stack.map((modal) => /* @__PURE__ */ React__namespace.default.createElement(
|
|
5110
5111
|
modal.component,
|
|
5111
5112
|
__spreadProps$1(__spreadValues$1({}, modal.props), {
|
|
@@ -5117,11 +5118,7 @@
|
|
|
5117
5118
|
}
|
|
5118
5119
|
closeModal(modal.id);
|
|
5119
5120
|
},
|
|
5120
|
-
key: modal.id
|
|
5121
|
-
removeModal: () => {
|
|
5122
|
-
dispatch({ type: ModalActions.REMOVE_MODAL, id: modal.id });
|
|
5123
|
-
},
|
|
5124
|
-
visible: closeId !== modal.id
|
|
5121
|
+
key: modal.id
|
|
5125
5122
|
})
|
|
5126
5123
|
)));
|
|
5127
5124
|
};
|