@cloudtower/eagle 0.32.40 → 0.32.41
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/__test__/mockLineChart.d.ts +4 -0
- package/dist/cjs/core/ConfigProvider/index.js +5 -5
- package/dist/cjs/core/LineChart/LineChartActions.js +52 -0
- package/dist/cjs/core/LineChart/LineChartLegend.js +101 -0
- package/dist/cjs/core/LineChart/LineChartToolBar.js +56 -0
- package/dist/cjs/core/LineChart/Pointer.js +45 -0
- package/dist/cjs/core/LineChart/RenderChart.js +304 -0
- package/dist/cjs/core/LineChart/TooltipFormatter.js +70 -0
- package/dist/cjs/core/LineChart/index.js +66 -0
- package/dist/cjs/core/LineChart/styled.js +35 -0
- package/dist/cjs/core/LineChart/type.js +30 -0
- package/dist/cjs/core/LineChart/utils.js +394 -0
- package/dist/cjs/core/Loading/index.js +2 -2
- package/dist/cjs/core/Progress/progress.widgets.js +1 -1
- package/dist/cjs/core/Timeline/Timeline.widget.js +4 -4
- package/dist/cjs/core/Timeline/index.js +4 -4
- package/dist/cjs/core/index.js +9 -9
- package/dist/cjs/coreX/CheckPointList/index.js +3 -3
- package/dist/cjs/coreX/CircleLoading/index.js +4 -4
- package/dist/cjs/coreX/DateRangePicker/Calendar.js +1 -1
- package/dist/cjs/coreX/Dialogs/DeleteDialog/DeleteDialog.js +47 -0
- package/dist/cjs/coreX/Dialogs/RejectDialog/RejectDialog.js +87 -0
- package/dist/cjs/coreX/Dialogs/RejectDialog/RejectDialog.type.js +11 -0
- package/dist/cjs/coreX/Dialogs/SmallDialog.js +86 -0
- package/dist/cjs/index.js +168 -131
- package/dist/cjs/stats1.html +1 -1
- package/dist/cjs/utils/constants.js +1 -1
- package/dist/cjs/utils/tower.js +81 -0
- package/dist/components.css +2512 -2178
- package/dist/esm/core/ConfigProvider/index.js +3 -3
- package/dist/esm/core/LineChart/LineChartActions.js +46 -0
- package/dist/esm/core/LineChart/LineChartLegend.js +91 -0
- package/dist/esm/core/LineChart/LineChartToolBar.js +50 -0
- package/dist/esm/core/LineChart/Pointer.js +38 -0
- package/dist/esm/core/LineChart/RenderChart.js +296 -0
- package/dist/esm/core/LineChart/TooltipFormatter.js +63 -0
- package/dist/esm/core/LineChart/index.js +57 -0
- package/dist/esm/core/LineChart/styled.js +25 -0
- package/dist/esm/core/LineChart/type.js +26 -0
- package/dist/esm/core/LineChart/utils.js +369 -0
- package/dist/esm/core/Loading/index.js +1 -1
- package/dist/esm/core/Progress/progress.widgets.js +1 -1
- package/dist/esm/core/Timeline/Timeline.widget.js +3 -3
- package/dist/esm/core/Timeline/index.js +3 -3
- package/dist/esm/coreX/CheckPointList/index.js +3 -3
- package/dist/esm/coreX/CircleLoading/index.js +3 -3
- package/dist/esm/coreX/DateRangePicker/Calendar.js +1 -1
- package/dist/esm/coreX/Dialogs/DeleteDialog/DeleteDialog.js +41 -0
- package/dist/esm/coreX/Dialogs/RejectDialog/RejectDialog.js +81 -0
- package/dist/esm/coreX/Dialogs/RejectDialog/RejectDialog.type.js +9 -0
- package/dist/esm/coreX/Dialogs/SmallDialog.js +80 -0
- package/dist/esm/index.js +10 -2
- package/dist/esm/stats1.html +1 -1
- package/dist/esm/utils/constants.js +1 -1
- package/dist/esm/utils/tower.js +77 -1
- package/dist/src/antd.d.ts +1 -1
- package/dist/src/core/ConfigProvider/index.d.ts +2 -2
- package/dist/src/core/LineChart/LineChartActions.d.ts +7 -0
- package/dist/src/core/LineChart/LineChartLegend.d.ts +18 -0
- package/dist/src/core/LineChart/LineChartToolBar.d.ts +20 -0
- package/dist/src/core/LineChart/Pointer.d.ts +6 -0
- package/dist/src/core/LineChart/RenderChart.d.ts +45 -0
- package/dist/src/core/LineChart/TooltipFormatter.d.ts +10 -0
- package/dist/src/core/LineChart/__test__/h5_css.test.d.ts +1 -0
- package/dist/src/core/LineChart/index.d.ts +8 -0
- package/dist/src/core/LineChart/styled.d.ts +12 -0
- package/dist/src/core/LineChart/type.d.ts +191 -0
- package/dist/src/core/LineChart/utils.d.ts +56 -0
- package/dist/src/core/Metric/metric.d.ts +1 -1
- package/dist/src/core/Timeline/Timeline.type.d.ts +2 -2
- package/dist/src/core/index.d.ts +4 -1
- package/dist/src/coreX/CheckPointList/index.d.ts +1 -1
- package/dist/src/coreX/Dialogs/DeleteDialog/DeleteDialog.d.ts +3 -0
- package/dist/src/coreX/Dialogs/DeleteDialog/DeleteDialog.type.d.ts +19 -0
- package/dist/src/coreX/Dialogs/DeleteDialog/index.d.ts +2 -0
- package/dist/src/coreX/Dialogs/RejectDialog/RejectDialog.d.ts +3 -0
- package/dist/src/coreX/Dialogs/RejectDialog/RejectDialog.type.d.ts +59 -0
- package/dist/src/coreX/Dialogs/RejectDialog/index.d.ts +2 -0
- package/dist/src/coreX/Dialogs/SmallDialog.d.ts +31 -0
- package/dist/src/coreX/Dialogs/index.d.ts +3 -0
- package/dist/src/coreX/index.d.ts +2 -1
- package/dist/src/utils/tower.d.ts +12 -0
- package/dist/stories/docs/core/LineChart.stories.d.ts +16 -0
- package/dist/stories/docs/core/Timeline.stories.d.ts +2 -2
- package/dist/stories/docs/coreX/CheckPointList.stories.d.ts +1 -1
- package/dist/stories/docs/coreX/Dialogs/DeleteDialog.stories.d.ts +37 -0
- package/dist/stories/docs/coreX/Dialogs/RejectDialog.stories.d.ts +89 -0
- package/dist/stories/docs/coreX/Show.stories.d.ts +2 -2
- package/dist/style.css +2158 -1862
- package/dist/variables.scss +2 -0
- package/package.json +5 -6
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ButtonProps } from "antd/lib/button";
|
|
2
|
+
import React from "react";
|
|
3
|
+
interface SmallDialogProps {
|
|
4
|
+
/** 弹窗标题 */
|
|
5
|
+
title: React.ReactNode;
|
|
6
|
+
/** 取消按钮文案 */
|
|
7
|
+
cancelText?: string;
|
|
8
|
+
/** 确认按钮文案 */
|
|
9
|
+
okText?: string;
|
|
10
|
+
/** 是否显示确认按钮 */
|
|
11
|
+
showOk?: boolean;
|
|
12
|
+
/** 点击确认按钮回调 */
|
|
13
|
+
onOk?: (popModal: () => void) => void;
|
|
14
|
+
/** 点击取消按钮或关闭弹窗回调 */
|
|
15
|
+
onCancel?: (popModal: () => void) => void;
|
|
16
|
+
/** 是否可点击遮罩层关闭 */
|
|
17
|
+
maskClosable?: boolean;
|
|
18
|
+
/** 是否显示右上角关闭按钮 */
|
|
19
|
+
closable?: boolean;
|
|
20
|
+
/** 自定义类名 */
|
|
21
|
+
className?: string;
|
|
22
|
+
/** 自定义footer类名 */
|
|
23
|
+
footerClassName?: string;
|
|
24
|
+
/** 确认按钮属性,优先使用 okText */
|
|
25
|
+
okButtonProps?: ButtonProps;
|
|
26
|
+
/** 取消按钮属性,优先使用 cancelText */
|
|
27
|
+
cancelButtonProps?: ButtonProps;
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
}
|
|
30
|
+
export declare const SmallDialog: React.FC<SmallDialogProps>;
|
|
31
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./BarChart";
|
|
2
2
|
export * from "./BatchOperation";
|
|
3
3
|
export * from "./ChartWithTooltip";
|
|
4
|
+
export * from "./CheckPointList";
|
|
4
5
|
export * from "./CircleLoading";
|
|
5
6
|
export * from "./common";
|
|
6
7
|
export * from "./Counting";
|
|
@@ -8,6 +9,7 @@ export * from "./CronCalendar";
|
|
|
8
9
|
export * from "./CronPlan";
|
|
9
10
|
export * from "./DateRangePicker";
|
|
10
11
|
export * from "./DeprecatedDonutChart";
|
|
12
|
+
export * from "./Dialogs";
|
|
11
13
|
export * from "./DropdownTransition";
|
|
12
14
|
export * from "./GoBackButton";
|
|
13
15
|
export * from "./I18nNameTag";
|
|
@@ -22,7 +24,6 @@ export * from "./SummaryTable";
|
|
|
22
24
|
export * from "./SwitchWithText";
|
|
23
25
|
export * from "./TabMenu";
|
|
24
26
|
export * from "./UnitWithChart";
|
|
25
|
-
export * from "./CheckPointList";
|
|
26
27
|
export { default as BarChart } from "./BarChart";
|
|
27
28
|
export { default as BatchOperation } from "./BatchOperation";
|
|
28
29
|
export { default as ChartWithTooltip } from "./ChartWithTooltip";
|
|
@@ -64,4 +64,16 @@ export declare function formatSpeed(input: number, decimals?: number): {
|
|
|
64
64
|
value: number;
|
|
65
65
|
unit: string;
|
|
66
66
|
};
|
|
67
|
+
export declare const K = 1000;
|
|
68
|
+
export declare const M: number;
|
|
69
|
+
export declare const G: number;
|
|
70
|
+
export declare const T: number;
|
|
71
|
+
export declare const P: number;
|
|
72
|
+
export declare function formatCount(input: number): FormattedResult;
|
|
73
|
+
export declare function formatNanoSecond(input: number): FormattedResult;
|
|
74
|
+
export declare function formatTemperature(input: number, decimals?: number): FormattedResult;
|
|
75
|
+
export declare const unitRules: {
|
|
76
|
+
divider: number[];
|
|
77
|
+
unit: string[];
|
|
78
|
+
}[];
|
|
67
79
|
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core").LineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Primary: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core").LineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export declare const PrimaryWithoutRight: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core").LineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export declare const PrimaryWithLongLabel: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core").LineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export declare const PrimaryWithSingleYAxis: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core").LineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export declare const PrimaryWithXAxisSm: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core").LineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export declare const PrimaryWithXAxisMd: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core").LineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export declare const PrimaryWithXAxisLg: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core").LineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export declare const Secondary: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core").LineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export declare const EmptyDefault: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core").LineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export declare const EmptyWithCustomText: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core").LineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export declare const DifferentUnits: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core").LineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export declare const ZeroDataChart: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core").LineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
export declare const DynamicTimeRange: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core").LineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* * 删除确认对话框组件
|
|
4
|
+
* * 用于需要用户二次确认的删除操作
|
|
5
|
+
* * 确认按钮使用危险样式以突出操作风险
|
|
6
|
+
*/
|
|
7
|
+
declare const meta: {
|
|
8
|
+
title: "CoreX/Dialog/DeleteDialog | 删除确认对话框";
|
|
9
|
+
component: React.FC<import("../../../../src/coreX").DeleteDialogProps>;
|
|
10
|
+
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, {
|
|
11
|
+
title: React.ReactNode;
|
|
12
|
+
description?: React.ReactNode;
|
|
13
|
+
secondaryDesc?: React.ReactNode;
|
|
14
|
+
cancelText?: string | undefined;
|
|
15
|
+
okText?: string | undefined;
|
|
16
|
+
onOk?: ((popModal: () => void) => void) | undefined;
|
|
17
|
+
onCancel?: ((popModal: () => void) => void) | undefined;
|
|
18
|
+
className?: string | undefined;
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
}>) => React.JSX.Element)[];
|
|
21
|
+
args: {};
|
|
22
|
+
parameters: {
|
|
23
|
+
design: {
|
|
24
|
+
type: string;
|
|
25
|
+
url: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export default meta;
|
|
30
|
+
/**
|
|
31
|
+
* 基础用法 - 删除单个项目
|
|
32
|
+
*/
|
|
33
|
+
export declare const Basic: () => React.JSX.Element;
|
|
34
|
+
/**
|
|
35
|
+
* 自定义按钮文案
|
|
36
|
+
*/
|
|
37
|
+
export declare const CustomButtonText: () => React.JSX.Element;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { RejectDialogType } from "../../../../src/coreX";
|
|
2
|
+
import React from "react";
|
|
3
|
+
/**
|
|
4
|
+
* * 回绝对话框组件
|
|
5
|
+
* * 用于展示操作被拒绝的反馈信息
|
|
6
|
+
* * 支持四种模式:单个对象拒绝、批量全部拒绝、批量部分拒绝、自定义内容
|
|
7
|
+
*/
|
|
8
|
+
declare const meta: {
|
|
9
|
+
title: "CoreX/Dialog/RejectDialog | 回绝对话框";
|
|
10
|
+
component: React.FC<import("../../../../src/coreX").RejectDialogProps>;
|
|
11
|
+
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, {
|
|
12
|
+
type: RejectDialogType.Single;
|
|
13
|
+
content: string | string[];
|
|
14
|
+
title: React.ReactNode;
|
|
15
|
+
description?: React.ReactNode;
|
|
16
|
+
cancelText?: string | undefined;
|
|
17
|
+
onCancel?: ((popModal: () => void) => void) | undefined;
|
|
18
|
+
width?: number | undefined;
|
|
19
|
+
className?: string | undefined;
|
|
20
|
+
footerClassName?: string | undefined;
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
} | {
|
|
23
|
+
type: RejectDialogType.All;
|
|
24
|
+
secondaryDesc?: React.ReactNode;
|
|
25
|
+
content: import("../../../../src/coreX").RejectContent;
|
|
26
|
+
title: React.ReactNode;
|
|
27
|
+
description?: React.ReactNode;
|
|
28
|
+
cancelText?: string | undefined;
|
|
29
|
+
onCancel?: ((popModal: () => void) => void) | undefined;
|
|
30
|
+
width?: number | undefined;
|
|
31
|
+
className?: string | undefined;
|
|
32
|
+
footerClassName?: string | undefined;
|
|
33
|
+
children?: React.ReactNode;
|
|
34
|
+
} | {
|
|
35
|
+
type: RejectDialogType.Part;
|
|
36
|
+
secondaryDesc?: React.ReactNode;
|
|
37
|
+
content: Record<string, string[]>;
|
|
38
|
+
partialDescription: React.ReactNode;
|
|
39
|
+
okText?: string | undefined;
|
|
40
|
+
onOk?: ((popModal: () => void) => void) | undefined;
|
|
41
|
+
title: React.ReactNode;
|
|
42
|
+
description?: React.ReactNode;
|
|
43
|
+
cancelText?: string | undefined;
|
|
44
|
+
onCancel?: ((popModal: () => void) => void) | undefined;
|
|
45
|
+
width?: number | undefined;
|
|
46
|
+
className?: string | undefined;
|
|
47
|
+
footerClassName?: string | undefined;
|
|
48
|
+
children?: React.ReactNode;
|
|
49
|
+
} | {
|
|
50
|
+
type: RejectDialogType.Custom;
|
|
51
|
+
customContent: React.ReactNode;
|
|
52
|
+
okText?: string | undefined;
|
|
53
|
+
title: React.ReactNode;
|
|
54
|
+
description?: React.ReactNode;
|
|
55
|
+
cancelText?: string | undefined;
|
|
56
|
+
onCancel?: ((popModal: () => void) => void) | undefined;
|
|
57
|
+
width?: number | undefined;
|
|
58
|
+
className?: string | undefined;
|
|
59
|
+
footerClassName?: string | undefined;
|
|
60
|
+
children?: React.ReactNode;
|
|
61
|
+
}>) => React.JSX.Element)[];
|
|
62
|
+
parameters: {
|
|
63
|
+
design: {
|
|
64
|
+
type: string;
|
|
65
|
+
url: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
export default meta;
|
|
70
|
+
/**
|
|
71
|
+
* 单个对象拒绝 - 单条原因
|
|
72
|
+
*/
|
|
73
|
+
export declare const SingleReject: () => React.JSX.Element;
|
|
74
|
+
/**
|
|
75
|
+
* 单个对象拒绝 - 多条原因
|
|
76
|
+
*/
|
|
77
|
+
export declare const SingleRejectMultiReasons: () => React.JSX.Element;
|
|
78
|
+
/**
|
|
79
|
+
* 批量全部拒绝
|
|
80
|
+
*/
|
|
81
|
+
export declare const AllReject: () => React.JSX.Element;
|
|
82
|
+
/**
|
|
83
|
+
* 批量部分拒绝
|
|
84
|
+
*/
|
|
85
|
+
export declare const PartialReject: () => React.JSX.Element;
|
|
86
|
+
/**
|
|
87
|
+
* 自定义内容
|
|
88
|
+
*/
|
|
89
|
+
export declare const CustomContent: () => React.JSX.Element;
|