@cloudtower/eagle 0.33.37 → 0.33.39
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/cjs/core/Fields/FieldsDateTimeRange/index.js +20 -3
- package/dist/cjs/core/ImmersiveDialog/index.js +174 -0
- package/dist/cjs/core/ImmersiveDialog/styles.js +31 -0
- package/dist/cjs/core/WizardDialog/index.js +166 -0
- package/dist/cjs/core/WizardDialog/styles.js +9 -0
- package/dist/cjs/index.js +125 -121
- package/dist/cjs/stats1.html +1 -1
- package/dist/components.css +3261 -3114
- package/dist/esm/core/Fields/FieldsDateTimeRange/index.js +20 -3
- package/dist/esm/core/ImmersiveDialog/index.js +168 -0
- package/dist/esm/core/ImmersiveDialog/styles.js +16 -0
- package/dist/esm/core/WizardDialog/index.js +160 -0
- package/dist/esm/core/WizardDialog/styles.js +5 -0
- package/dist/esm/index.js +5 -3
- package/dist/esm/stats1.html +1 -1
- package/dist/linaria.merged.scss +4098 -3927
- package/dist/src/core/ImmersiveDialog/index.d.ts +3 -0
- package/dist/src/core/ImmersiveDialog/styles.d.ts +14 -0
- package/dist/src/core/ImmersiveDialog/type.d.ts +33 -0
- package/dist/src/core/WizardDialog/index.d.ts +3 -0
- package/dist/src/core/WizardDialog/styles.d.ts +3 -0
- package/dist/src/core/WizardDialog/type.d.ts +31 -0
- package/dist/src/core/index.d.ts +5 -3
- package/dist/stories/docs/core/FieldsDateTimeRange.stories.d.ts +1 -0
- package/dist/stories/docs/core/ImmersiveDialog.stories.d.ts +93 -0
- package/dist/stories/docs/core/Modal.stories.d.ts +0 -2
- package/dist/stories/docs/core/WizardDialog.stories.d.ts +106 -0
- package/dist/style.css +3261 -3114
- package/package.json +4 -4
|
@@ -2,9 +2,25 @@ import { DatePicker } from 'antd';
|
|
|
2
2
|
import moment from 'moment';
|
|
3
3
|
import React__default from 'react';
|
|
4
4
|
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __defProps = Object.defineProperties;
|
|
7
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
8
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
9
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
10
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
11
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
12
|
+
var __spreadValues = (a, b) => {
|
|
13
|
+
for (var prop in b || (b = {}))
|
|
14
|
+
if (__hasOwnProp.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
if (__getOwnPropSymbols)
|
|
17
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
18
|
+
if (__propIsEnum.call(b, prop))
|
|
19
|
+
__defNormalProp(a, prop, b[prop]);
|
|
20
|
+
}
|
|
21
|
+
return a;
|
|
22
|
+
};
|
|
23
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
8
24
|
var __objRest = (source, exclude) => {
|
|
9
25
|
var target = {};
|
|
10
26
|
for (var prop in source)
|
|
@@ -26,7 +42,9 @@ const FieldsDateTimeRange = (_a) => {
|
|
|
26
42
|
var _a2, _b2;
|
|
27
43
|
return /* @__PURE__ */ React__default.createElement("div", { className: "datatime-range" }, /* @__PURE__ */ React__default.createElement(
|
|
28
44
|
DatePicker.RangePicker,
|
|
29
|
-
{
|
|
45
|
+
__spreadProps(__spreadValues({
|
|
46
|
+
showTime: true
|
|
47
|
+
}, input), {
|
|
30
48
|
onFocus: () => {
|
|
31
49
|
var _a3;
|
|
32
50
|
return (_a3 = input.onFocus) == null ? void 0 : _a3.call(input);
|
|
@@ -35,12 +53,11 @@ const FieldsDateTimeRange = (_a) => {
|
|
|
35
53
|
var _a3;
|
|
36
54
|
return (_a3 = input.onBlur) == null ? void 0 : _a3.call(input);
|
|
37
55
|
},
|
|
38
|
-
showTime: true,
|
|
39
56
|
defaultValue: (_a2 = input.value) == null ? void 0 : _a2.map((v) => v && moment(v)),
|
|
40
57
|
onChange: input.onChange,
|
|
41
58
|
value: (_b2 = input.value) == null ? void 0 : _b2.map((v) => v && moment(v)),
|
|
42
59
|
format: props.format
|
|
43
|
-
}
|
|
60
|
+
})
|
|
44
61
|
));
|
|
45
62
|
};
|
|
46
63
|
var FieldsDateTimeRange$1 = FieldsDateTimeRange;
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { ExclamationErrorCircleFill16RedIcon, XmarkClose24BoldSecondaryIcon } from '@cloudtower/icons-react';
|
|
2
|
+
import { cx } from '@linaria/core';
|
|
3
|
+
import Button from '../Button/index.js';
|
|
4
|
+
import { usePopModal } from '../KitStoreProvider/index.js';
|
|
5
|
+
import { Typo } from '../Typo/index.js';
|
|
6
|
+
import OverflowTooltip from '../../coreX/OverflowTooltip/index.js';
|
|
7
|
+
import useParrotTranslation from '../../hooks/useParrotTranslation.js';
|
|
8
|
+
import { Modal } from 'antd';
|
|
9
|
+
import React__default, { useMemo } from 'react';
|
|
10
|
+
import { FooterStyle, FooterButtonStyle, ErrorStyle, ErrorIconStyle, ErrorTextStyle, FooterButtonRightStyle, TitleStyle, ImmersiveDialogStyle, FullContentStyle, MultiAreaStyle, CloseIconStyle, BodyStyle, MultiAreaBodyStyle, CancelButtonStyle } from './styles.js';
|
|
11
|
+
|
|
12
|
+
var __defProp = Object.defineProperty;
|
|
13
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
14
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
15
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
16
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
17
|
+
var __spreadValues = (a, b) => {
|
|
18
|
+
for (var prop in b || (b = {}))
|
|
19
|
+
if (__hasOwnProp.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
if (__getOwnPropSymbols)
|
|
22
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
23
|
+
if (__propIsEnum.call(b, prop))
|
|
24
|
+
__defNormalProp(a, prop, b[prop]);
|
|
25
|
+
}
|
|
26
|
+
return a;
|
|
27
|
+
};
|
|
28
|
+
var __objRest = (source, exclude) => {
|
|
29
|
+
var target = {};
|
|
30
|
+
for (var prop in source)
|
|
31
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
32
|
+
target[prop] = source[prop];
|
|
33
|
+
if (source != null && __getOwnPropSymbols)
|
|
34
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
35
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
36
|
+
target[prop] = source[prop];
|
|
37
|
+
}
|
|
38
|
+
return target;
|
|
39
|
+
};
|
|
40
|
+
function ImmersiveDialog(props) {
|
|
41
|
+
const _a = props, {
|
|
42
|
+
className,
|
|
43
|
+
title,
|
|
44
|
+
children,
|
|
45
|
+
footerLeftAction,
|
|
46
|
+
left,
|
|
47
|
+
right,
|
|
48
|
+
closeIcon,
|
|
49
|
+
footer,
|
|
50
|
+
showCancel = true,
|
|
51
|
+
showOk = true,
|
|
52
|
+
okLoading,
|
|
53
|
+
okButtonProps,
|
|
54
|
+
cancelButtonProps,
|
|
55
|
+
okText,
|
|
56
|
+
cancelText,
|
|
57
|
+
error,
|
|
58
|
+
visible = true,
|
|
59
|
+
isContentFull,
|
|
60
|
+
onCancel,
|
|
61
|
+
onOk
|
|
62
|
+
} = _a, restProps = __objRest(_a, [
|
|
63
|
+
"className",
|
|
64
|
+
"title",
|
|
65
|
+
"children",
|
|
66
|
+
"footerLeftAction",
|
|
67
|
+
"left",
|
|
68
|
+
"right",
|
|
69
|
+
"closeIcon",
|
|
70
|
+
"footer",
|
|
71
|
+
"showCancel",
|
|
72
|
+
"showOk",
|
|
73
|
+
"okLoading",
|
|
74
|
+
"okButtonProps",
|
|
75
|
+
"cancelButtonProps",
|
|
76
|
+
"okText",
|
|
77
|
+
"cancelText",
|
|
78
|
+
"error",
|
|
79
|
+
"visible",
|
|
80
|
+
"isContentFull",
|
|
81
|
+
"onCancel",
|
|
82
|
+
"onOk"
|
|
83
|
+
]);
|
|
84
|
+
const { t } = useParrotTranslation();
|
|
85
|
+
const popModal = usePopModal();
|
|
86
|
+
const _confirmText = useMemo(() => {
|
|
87
|
+
let text = okText || t("common.confirm");
|
|
88
|
+
return text;
|
|
89
|
+
}, [okText, t]);
|
|
90
|
+
const finalFooter = useMemo(() => {
|
|
91
|
+
return footer || /* @__PURE__ */ React__default.createElement("div", { className: FooterStyle }, /* @__PURE__ */ React__default.createElement("div", { className: FooterButtonStyle }, footerLeftAction, error && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("span", { className: cx(ErrorStyle, Typo.Label.l2_regular) }, /* @__PURE__ */ React__default.createElement(
|
|
92
|
+
ExclamationErrorCircleFill16RedIcon,
|
|
93
|
+
{
|
|
94
|
+
className: ErrorIconStyle
|
|
95
|
+
}
|
|
96
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
97
|
+
OverflowTooltip,
|
|
98
|
+
{
|
|
99
|
+
className: ErrorTextStyle,
|
|
100
|
+
multiLines: 3,
|
|
101
|
+
content: error,
|
|
102
|
+
tooltip: error
|
|
103
|
+
}
|
|
104
|
+
)))), /* @__PURE__ */ React__default.createElement("div", { className: FooterButtonRightStyle }, showCancel ? /* @__PURE__ */ React__default.createElement(
|
|
105
|
+
Button,
|
|
106
|
+
__spreadValues({
|
|
107
|
+
type: "quiet",
|
|
108
|
+
className: CancelButtonStyle,
|
|
109
|
+
onMouseDown: (e) => {
|
|
110
|
+
e.preventDefault();
|
|
111
|
+
},
|
|
112
|
+
onClick: (e) => {
|
|
113
|
+
popModal();
|
|
114
|
+
onCancel == null ? void 0 : onCancel(e);
|
|
115
|
+
}
|
|
116
|
+
}, cancelButtonProps),
|
|
117
|
+
cancelText || t("common.cancel")
|
|
118
|
+
) : null, showOk ? /* @__PURE__ */ React__default.createElement(
|
|
119
|
+
Button,
|
|
120
|
+
__spreadValues({
|
|
121
|
+
onClick: (e) => {
|
|
122
|
+
onOk == null ? void 0 : onOk(e);
|
|
123
|
+
},
|
|
124
|
+
type: "primary",
|
|
125
|
+
loading: okLoading
|
|
126
|
+
}, okButtonProps),
|
|
127
|
+
_confirmText
|
|
128
|
+
) : null));
|
|
129
|
+
}, [
|
|
130
|
+
footerLeftAction,
|
|
131
|
+
_confirmText,
|
|
132
|
+
cancelButtonProps,
|
|
133
|
+
cancelText,
|
|
134
|
+
error,
|
|
135
|
+
footer,
|
|
136
|
+
okButtonProps,
|
|
137
|
+
okLoading,
|
|
138
|
+
onCancel,
|
|
139
|
+
onOk,
|
|
140
|
+
popModal,
|
|
141
|
+
showCancel,
|
|
142
|
+
showOk,
|
|
143
|
+
t
|
|
144
|
+
]);
|
|
145
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
146
|
+
Modal,
|
|
147
|
+
__spreadValues({
|
|
148
|
+
width: "calc(100% - 20px)",
|
|
149
|
+
title: /* @__PURE__ */ React__default.createElement("span", { className: cx(Typo.Display.d1_bold_title, TitleStyle) }, title),
|
|
150
|
+
className: cx(
|
|
151
|
+
ImmersiveDialogStyle,
|
|
152
|
+
isContentFull ? FullContentStyle : MultiAreaStyle,
|
|
153
|
+
className
|
|
154
|
+
),
|
|
155
|
+
closeIcon: closeIcon != null ? closeIcon : /* @__PURE__ */ React__default.createElement("span", { className: CloseIconStyle }, /* @__PURE__ */ React__default.createElement(XmarkClose24BoldSecondaryIcon, null)),
|
|
156
|
+
footer: finalFooter,
|
|
157
|
+
onCancel: (e) => {
|
|
158
|
+
popModal();
|
|
159
|
+
onCancel == null ? void 0 : onCancel(e);
|
|
160
|
+
},
|
|
161
|
+
visible,
|
|
162
|
+
destroyOnClose: true
|
|
163
|
+
}, restProps),
|
|
164
|
+
/* @__PURE__ */ React__default.createElement("div", { className: cx(BodyStyle, isContentFull ? "" : MultiAreaBodyStyle) }, isContentFull ? null : /* @__PURE__ */ React__default.createElement("div", { className: "left" }, left), /* @__PURE__ */ React__default.createElement("div", { className: "middle" }, children), isContentFull ? null : /* @__PURE__ */ React__default.createElement("div", { className: "right" }, right))
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export { ImmersiveDialog };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const ImmersiveDialogStyle = "E_icab5o7";
|
|
2
|
+
const MultiAreaStyle = "E_msiso3p";
|
|
3
|
+
const CloseIconStyle = "E_cxvrrew";
|
|
4
|
+
const TitleStyle = "E_tskzd0j";
|
|
5
|
+
const FullContentStyle = "E_f1fbnfp";
|
|
6
|
+
const BodyStyle = "E_b4g2nsx";
|
|
7
|
+
const MultiAreaBodyStyle = "E_myhed70";
|
|
8
|
+
const FooterStyle = "E_fo07jei";
|
|
9
|
+
const FooterButtonStyle = "E_fph3s12";
|
|
10
|
+
const FooterButtonRightStyle = "E_f1f8uj0i";
|
|
11
|
+
const ErrorStyle = "E_ejcjd85";
|
|
12
|
+
const ErrorIconStyle = "E_e1lj3r2s";
|
|
13
|
+
const ErrorTextStyle = "E_eb58k2y";
|
|
14
|
+
const CancelButtonStyle = "E_c1bad0d";
|
|
15
|
+
|
|
16
|
+
export { BodyStyle, CancelButtonStyle, CloseIconStyle, ErrorIconStyle, ErrorStyle, ErrorTextStyle, FooterButtonRightStyle, FooterButtonStyle, FooterStyle, FullContentStyle, ImmersiveDialogStyle, MultiAreaBodyStyle, MultiAreaStyle, TitleStyle };
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { ArrowChevronLeft16BoldBlueIcon } from '@cloudtower/icons-react';
|
|
2
|
+
import Button from '../Button/index.js';
|
|
3
|
+
import { ImmersiveDialog } from '../ImmersiveDialog/index.js';
|
|
4
|
+
import Steps from '../Steps/index.js';
|
|
5
|
+
import useParrotTranslation from '../../hooks/useParrotTranslation.js';
|
|
6
|
+
import React__default, { useState, useMemo, useEffect } from 'react';
|
|
7
|
+
import { StepContentStyle, PrevIconStyle, StepStyle } from './styles.js';
|
|
8
|
+
|
|
9
|
+
var __defProp = Object.defineProperty;
|
|
10
|
+
var __defProps = Object.defineProperties;
|
|
11
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
12
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
13
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
15
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16
|
+
var __spreadValues = (a, b) => {
|
|
17
|
+
for (var prop in b || (b = {}))
|
|
18
|
+
if (__hasOwnProp.call(b, prop))
|
|
19
|
+
__defNormalProp(a, prop, b[prop]);
|
|
20
|
+
if (__getOwnPropSymbols)
|
|
21
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
22
|
+
if (__propIsEnum.call(b, prop))
|
|
23
|
+
__defNormalProp(a, prop, b[prop]);
|
|
24
|
+
}
|
|
25
|
+
return a;
|
|
26
|
+
};
|
|
27
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
28
|
+
var __objRest = (source, exclude) => {
|
|
29
|
+
var target = {};
|
|
30
|
+
for (var prop in source)
|
|
31
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
32
|
+
target[prop] = source[prop];
|
|
33
|
+
if (source != null && __getOwnPropSymbols)
|
|
34
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
35
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
36
|
+
target[prop] = source[prop];
|
|
37
|
+
}
|
|
38
|
+
return target;
|
|
39
|
+
};
|
|
40
|
+
function WizardDialog(props) {
|
|
41
|
+
const _a = props, {
|
|
42
|
+
className,
|
|
43
|
+
steps,
|
|
44
|
+
step,
|
|
45
|
+
children,
|
|
46
|
+
hideSteps,
|
|
47
|
+
destroyOtherStep,
|
|
48
|
+
prevText,
|
|
49
|
+
nextText,
|
|
50
|
+
onPrevStep,
|
|
51
|
+
onNextStep,
|
|
52
|
+
onStepChange,
|
|
53
|
+
left,
|
|
54
|
+
right,
|
|
55
|
+
okText,
|
|
56
|
+
onOk
|
|
57
|
+
} = _a, restProps = __objRest(_a, [
|
|
58
|
+
"className",
|
|
59
|
+
"steps",
|
|
60
|
+
"step",
|
|
61
|
+
"children",
|
|
62
|
+
"hideSteps",
|
|
63
|
+
"destroyOtherStep",
|
|
64
|
+
"prevText",
|
|
65
|
+
"nextText",
|
|
66
|
+
"onPrevStep",
|
|
67
|
+
"onNextStep",
|
|
68
|
+
"onStepChange",
|
|
69
|
+
"left",
|
|
70
|
+
"right",
|
|
71
|
+
"okText",
|
|
72
|
+
"onOk"
|
|
73
|
+
]);
|
|
74
|
+
const { t } = useParrotTranslation();
|
|
75
|
+
const [_step, _setStep] = useState(step || 0);
|
|
76
|
+
const stepVal = useMemo(() => step != null ? step : _step, [step, _step]);
|
|
77
|
+
const content = useMemo(() => {
|
|
78
|
+
var _a2;
|
|
79
|
+
if (destroyOtherStep) {
|
|
80
|
+
return ((_a2 = steps == null ? void 0 : steps[stepVal]) == null ? void 0 : _a2.children) || children;
|
|
81
|
+
}
|
|
82
|
+
return (steps == null ? void 0 : steps.map((s, index) => /* @__PURE__ */ React__default.createElement(
|
|
83
|
+
"div",
|
|
84
|
+
{
|
|
85
|
+
key: s.title,
|
|
86
|
+
className: StepContentStyle,
|
|
87
|
+
style: {
|
|
88
|
+
display: stepVal === index ? "block" : "none"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
s.children
|
|
92
|
+
))) || children;
|
|
93
|
+
}, [children, destroyOtherStep, steps, stepVal]);
|
|
94
|
+
const _confirmText = useMemo(() => {
|
|
95
|
+
let text = okText || t("common.confirm");
|
|
96
|
+
if (steps == null ? void 0 : steps.length) {
|
|
97
|
+
text = stepVal < steps.length - 1 ? nextText || t("common.next_step") : text;
|
|
98
|
+
}
|
|
99
|
+
return text;
|
|
100
|
+
}, [okText, t, steps == null ? void 0 : steps.length, stepVal, nextText]);
|
|
101
|
+
useEffect(() => {
|
|
102
|
+
if (step) {
|
|
103
|
+
_setStep(step);
|
|
104
|
+
}
|
|
105
|
+
}, [step]);
|
|
106
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
107
|
+
ImmersiveDialog,
|
|
108
|
+
__spreadProps(__spreadValues({
|
|
109
|
+
className,
|
|
110
|
+
footerLeftAction: stepVal > 0 ? /* @__PURE__ */ React__default.createElement(
|
|
111
|
+
Button,
|
|
112
|
+
{
|
|
113
|
+
type: "link",
|
|
114
|
+
onClick: () => {
|
|
115
|
+
const newStep = stepVal - 1;
|
|
116
|
+
_setStep(newStep);
|
|
117
|
+
onPrevStep == null ? void 0 : onPrevStep(newStep);
|
|
118
|
+
onStepChange == null ? void 0 : onStepChange(newStep);
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
/* @__PURE__ */ React__default.createElement(ArrowChevronLeft16BoldBlueIcon, { className: PrevIconStyle }),
|
|
122
|
+
prevText || t("common.prev_step")
|
|
123
|
+
) : null,
|
|
124
|
+
left: left || (steps && steps.length > 0 && !hideSteps ? /* @__PURE__ */ React__default.createElement(
|
|
125
|
+
Steps,
|
|
126
|
+
{
|
|
127
|
+
containerClassname: StepStyle,
|
|
128
|
+
current: stepVal,
|
|
129
|
+
onChange: (value) => {
|
|
130
|
+
_setStep(value);
|
|
131
|
+
onStepChange == null ? void 0 : onStepChange(value);
|
|
132
|
+
},
|
|
133
|
+
direction: "vertical",
|
|
134
|
+
stepsConfig: steps.map((s) => ({
|
|
135
|
+
title: s.title
|
|
136
|
+
}))
|
|
137
|
+
}
|
|
138
|
+
) : null),
|
|
139
|
+
right,
|
|
140
|
+
okText: _confirmText,
|
|
141
|
+
onOk: (e) => {
|
|
142
|
+
if (stepVal < ((steps == null ? void 0 : steps.length) || 0) - 1) {
|
|
143
|
+
const newStep = stepVal + 1;
|
|
144
|
+
const prevent = (onNextStep == null ? void 0 : onNextStep(newStep)) === false;
|
|
145
|
+
if (!prevent) {
|
|
146
|
+
_setStep(newStep);
|
|
147
|
+
onStepChange == null ? void 0 : onStepChange(newStep);
|
|
148
|
+
}
|
|
149
|
+
} else {
|
|
150
|
+
onOk == null ? void 0 : onOk(e);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}, restProps), {
|
|
154
|
+
isContentFull: false
|
|
155
|
+
}),
|
|
156
|
+
content
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export { WizardDialog };
|
package/dist/esm/index.js
CHANGED
|
@@ -92,9 +92,11 @@ export { default as ExpandableContainer } from './core/ExpandableList/Expandable
|
|
|
92
92
|
export { default as ExpandableItem } from './core/ExpandableList/ExpandableItem.js';
|
|
93
93
|
export { default as ExpandIcon } from './core/ExpandableList/ExpandIcon.js';
|
|
94
94
|
export { default as RoundOrder } from './core/ExpandableList/RoundOrder.js';
|
|
95
|
+
export { ImmersiveDialog } from './core/ImmersiveDialog/index.js';
|
|
95
96
|
export { LineChartColorBlock, default as LineChartLegend } from './core/LineChart/LineChartLegend.js';
|
|
96
97
|
export { ILineChartGraphType, ILineChartMetricUnit, ILineChartTimeUnit } from './core/LineChart/type.js';
|
|
97
98
|
export { UNIT_FORMATTER, addMissingDataWithZero, convertLineChartDataStruct, convertLineChartUnit, deletePointsOutOfRange, filterLineChartDataOverlapping, filterLineChartOverlappingMetric, filterLineChartPointsByDateRange, getFirstExpectedTimestamp, getLineChartRangeTimestamp, getLineChartStep, getLineChartXAxisDomain, getLineChartYDataMax, getYAxisDomain, getYAxisUpperBound, lineChartTickFormatter, lineChartXaxisCal, lineChartYaxisTickFormatter, parseLineChartRange } from './core/LineChart/utils.js';
|
|
99
|
+
export { MediumDialog } from './core/MediumDialog/MediumDialog.js';
|
|
98
100
|
export { Batcher, createBatchMessageMethods, makeUUID } from './core/message-group/index.js';
|
|
99
101
|
export { default as MetricActions } from './core/Metric/MetricActions.js';
|
|
100
102
|
export { ColorBlock, LegendComponent, default as MetricLegend } from './core/Metric/MetricLegend.js';
|
|
@@ -110,6 +112,8 @@ export { getOptions } from './core/Select/select.widgets.js';
|
|
|
110
112
|
export { SidebarMenu } from './core/SidebarMenu/SidebarMenu.js';
|
|
111
113
|
export { default as Skeleton } from './core/Skeleton/index.js';
|
|
112
114
|
export { default as SkeletonContent } from './core/Skeleton/Content.js';
|
|
115
|
+
export { SmallDialog } from './core/SmallDialog/SmallDialog.js';
|
|
116
|
+
export { CloseIconStyle, DialogStyle, ErrorTextStyle, FooterStyle } from './core/SmallDialog/SmallDialog.style.js';
|
|
113
117
|
export { CircleProgress } from './core/StepProgress/index.js';
|
|
114
118
|
export { CannotOperationInfo, CommonContent, ContentWrapper, Desc, Description, Divider, Dot, ErrorSpan, ExpandArrow, FieldTitle, FormField, FormItemDiv, FormSectionTitle, FormWrapper, FullView, HorizontalWizardModalCompactStyle, HorizontalWizardModalLooseStyle, InfoAlert, InputStyle, KitInputStyle, LeftEndInputStyle, LeftEndSelectStyle, LightDesc, LoadingWrapper, ModalBody, ModalWrapper, NameTag, NormalAlert, NoticeAlert, OperationWraper, RadioDesc, RightEndInputStyle, RightEndSelectStyle, SelectOptionDisabledText, TagSpan, TertiaryText, UnitStyle, WarningAlert, WizardBody, radioStyle } from './core/Styled/index.js';
|
|
115
119
|
export { useTableBodyHasScrollBar } from './core/Table/common.js';
|
|
@@ -118,9 +122,7 @@ export { ColumnTitle, EmptyRowMenu, KitTableContext, TableLoading } from './core
|
|
|
118
122
|
export { ValidateTriggerType } from './core/TableForm/types.js';
|
|
119
123
|
export { Timeline } from './core/Timeline/index.js';
|
|
120
124
|
export { Typo } from './core/Typo/index.js';
|
|
121
|
-
export {
|
|
122
|
-
export { CloseIconStyle, DialogStyle, ErrorTextStyle, FooterStyle } from './core/SmallDialog/SmallDialog.style.js';
|
|
123
|
-
export { MediumDialog } from './core/MediumDialog/MediumDialog.js';
|
|
125
|
+
export { WizardDialog } from './core/WizardDialog/index.js';
|
|
124
126
|
export { default as BarChart, getWidth } from './coreX/BarChart/index.js';
|
|
125
127
|
export { default as BatchOperation, renderBatchOperationMenuItem } from './coreX/BatchOperation/index.js';
|
|
126
128
|
export { default as ChartWithTooltip, ChartWithUnit } from './coreX/ChartWithTooltip/index.js';
|