@cloudtower/eagle 0.27.70 → 0.27.71
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/UIKitProvider/index.js +5 -5
- package/dist/cjs/antd.js +151 -0
- package/dist/cjs/core/Arch/index.js +3 -1
- package/dist/cjs/core/ButtonGroup/index.js +2 -1
- package/dist/cjs/core/Cascader/index.js +16 -0
- package/dist/cjs/core/DonutChart/index.js +9 -0
- package/dist/cjs/core/Error/index.js +12 -0
- package/dist/cjs/core/ErrorBoundary/index.js +27 -0
- package/dist/cjs/core/Metric/MetricActions.js +18 -0
- package/dist/cjs/core/Metric/MetricLegend.js +73 -0
- package/dist/cjs/core/Metric/Pointer.js +45 -0
- package/dist/cjs/core/Metric/RenderChart.js +203 -0
- package/dist/cjs/core/Metric/TooltipFormatter.js +45 -0
- package/dist/cjs/core/Metric/index.js +63 -0
- package/dist/cjs/core/Metric/metric.js +146 -0
- package/dist/cjs/core/Metric/styled.js +33 -0
- package/dist/cjs/core/Metric/type.js +16 -0
- package/dist/cjs/core/Overflow/index.js +2 -1
- package/dist/cjs/core/Progress/index.js +2 -0
- package/dist/cjs/core/SidebarMenu/SidebarMenu.js +33 -0
- package/dist/cjs/core/StatusCapsule/index.js +7 -7
- package/dist/cjs/core/Styled/index.js +139 -0
- package/dist/cjs/core/Table/TableWidget.js +6 -1
- package/dist/cjs/core/Table/index.js +4 -1
- package/dist/cjs/core/TableForm/index.js +5 -3
- package/dist/cjs/core/Tag/SplitTag.js +2 -2
- package/dist/cjs/core/Tag/const.js +2 -2
- package/dist/cjs/core/Tag/index.js +4 -4
- package/dist/cjs/core/Token/index.js +3 -3
- package/dist/cjs/core/index.js +32 -0
- package/dist/cjs/core/message/index.js +4 -0
- package/dist/cjs/coreX/CronPlan/index.js +2 -1
- package/dist/cjs/coreX/DateRangePicker/AbsoluteDate.js +2 -2
- package/dist/cjs/coreX/DateRangePicker/Calendar.js +5 -3
- package/dist/cjs/coreX/DateRangePicker/InputTime.js +1 -1
- package/dist/cjs/coreX/DateRangePicker/RelativeTime.js +2 -2
- package/dist/cjs/coreX/DateRangePicker/index.js +1 -1
- package/dist/cjs/coreX/I18nNameTag/index.js +1 -1
- package/dist/cjs/index.js +456 -82
- package/dist/cjs/legacy-antd.js +213 -0
- package/dist/cjs/stats1.html +1 -1
- package/dist/cjs/store/chart.js +7 -0
- package/dist/cjs/store/index.js +1 -0
- package/dist/components.css +2916 -2916
- package/dist/esm/UIKitProvider/index.js +1 -1
- package/dist/esm/antd.js +16 -0
- package/dist/esm/core/ButtonGroup/index.js +2 -1
- package/dist/esm/core/Cascader/index.js +3 -1
- package/dist/esm/core/DonutChart/index.js +9 -1
- package/dist/esm/core/Error/index.js +6 -0
- package/dist/esm/core/ErrorBoundary/index.js +21 -0
- package/dist/esm/core/Metric/MetricActions.js +12 -0
- package/dist/esm/core/Metric/MetricLegend.js +62 -0
- package/dist/esm/core/Metric/Pointer.js +38 -0
- package/dist/esm/core/Metric/RenderChart.js +195 -0
- package/dist/esm/core/Metric/TooltipFormatter.js +39 -0
- package/dist/esm/core/Metric/index.js +52 -0
- package/dist/esm/core/Metric/metric.js +138 -2
- package/dist/esm/core/Metric/styled.js +24 -0
- package/dist/esm/core/Metric/type.js +13 -0
- package/dist/esm/core/Overflow/index.js +2 -1
- package/dist/esm/core/Progress/index.js +2 -1
- package/dist/esm/core/SidebarMenu/SidebarMenu.js +27 -0
- package/dist/esm/core/StatusCapsule/index.js +3 -3
- package/dist/esm/core/Styled/index.js +112 -1
- package/dist/esm/core/Table/TableWidget.js +5 -2
- package/dist/esm/core/Table/index.js +5 -3
- package/dist/esm/core/TableForm/index.js +2 -2
- package/dist/esm/core/Tag/SplitTag.js +3 -3
- package/dist/esm/core/Tag/const.js +2 -2
- package/dist/esm/core/Tag/index.js +5 -5
- package/dist/esm/core/Token/index.js +3 -3
- package/dist/esm/core/index.js +21 -0
- package/dist/esm/core/message/index.js +4 -1
- package/dist/esm/coreX/CronPlan/index.js +2 -1
- package/dist/esm/coreX/DateRangePicker/AbsoluteDate.js +2 -2
- package/dist/esm/coreX/DateRangePicker/Calendar.js +5 -3
- package/dist/esm/coreX/DateRangePicker/InputTime.js +1 -1
- package/dist/esm/coreX/DateRangePicker/RelativeTime.js +2 -2
- package/dist/esm/coreX/DateRangePicker/index.js +1 -1
- package/dist/esm/coreX/I18nNameTag/index.js +1 -1
- package/dist/esm/index.js +104 -18
- package/dist/esm/legacy-antd.js +206 -0
- package/dist/esm/stats1.html +1 -1
- package/dist/esm/store/chart.js +7 -1
- package/dist/esm/store/index.js +1 -0
- package/dist/src/UIKitProvider/UIKitProvider.stories.d.ts +1 -1
- package/dist/src/antd.d.ts +45 -0
- package/dist/src/core/AccordionCard/accordionCard.type.d.ts +9 -0
- package/dist/src/core/AccordionCard/index.d.ts +3 -8
- package/dist/src/core/Alert/alert.type.d.ts +6 -0
- package/dist/src/core/Alert/index.d.ts +2 -1
- package/dist/src/core/Arch/arch.type.d.ts +8 -0
- package/dist/src/core/Arch/index.d.ts +2 -1
- package/dist/src/core/Badge/badge.type.d.ts +7 -0
- package/dist/src/core/Badge/index.d.ts +2 -1
- package/dist/src/core/Bit/index.d.ts +1 -1
- package/dist/src/core/BitPerSecond/index.d.ts +1 -1
- package/dist/src/core/Bps/index.d.ts +1 -1
- package/dist/src/core/Breadcrumb/breadcrumb.type.d.ts +11 -0
- package/dist/src/core/Breadcrumb/index.d.ts +2 -1
- package/dist/src/core/Button/button.type.d.ts +20 -0
- package/dist/src/core/Button/index.d.ts +1 -0
- package/dist/src/core/ButtonGroup/index.d.ts +1 -1
- package/dist/src/core/Byte/index.d.ts +1 -1
- package/dist/src/core/Calendar/calendar.type.d.ts +4 -0
- package/dist/src/core/Calendar/index.d.ts +2 -1
- package/dist/src/core/Cascader/cascader.type.d.ts +1 -1
- package/dist/src/core/Cascader/index.d.ts +3 -0
- package/dist/src/core/DetailCard/detailCard.type.d.ts +4 -0
- package/dist/src/core/DetailCard/index.d.ts +2 -1
- package/dist/src/core/DropdownMenu/dropdownMenu.type.d.ts +28 -0
- package/dist/src/core/DropdownMenu/index.d.ts +3 -17
- package/dist/src/core/Error/index.d.ts +5 -0
- package/dist/src/core/ExpandableList/index.d.ts +8 -0
- package/dist/src/core/Fields/FieldsBoolean/index.d.ts +1 -1
- package/dist/src/core/Fields/FieldsDateTime/index.d.ts +1 -1
- package/dist/src/core/Fields/FieldsDateTimeRange/index.d.ts +1 -1
- package/dist/src/core/Fields/FieldsEnum/fieldsEnum.type.d.ts +19 -0
- package/dist/src/core/Fields/FieldsEnum/index.d.ts +2 -1
- package/dist/src/core/Fields/FieldsInt/fieldsInt.type.d.ts +15 -0
- package/dist/src/core/Fields/FieldsInt/index.d.ts +2 -1
- package/dist/src/core/Fields/FieldsString/fieldsString.type.d.ts +17 -0
- package/dist/src/core/Fields/FieldsString/index.d.ts +3 -1
- package/dist/src/core/Fields/FieldsTextArea/index.d.ts +1 -1
- package/dist/src/core/Fields/FieldsTimePicker/index.d.ts +1 -1
- package/dist/src/{spec/react-final-form.d.ts → core/Fields/fields.type.d.ts} +15 -10
- package/dist/src/core/Fields/index.d.ts +21 -10
- package/dist/src/core/Frequency/index.d.ts +1 -1
- package/dist/src/core/Input/index.d.ts +1 -0
- package/dist/src/core/Input/input.type.d.ts +14 -0
- package/dist/src/core/InputGroup/index.d.ts +1 -0
- package/dist/src/core/InputGroup/inputGroup.type.d.ts +4 -0
- package/dist/src/core/InputInteger/index.d.ts +1 -1
- package/dist/src/core/InputNumber/index.d.ts +1 -1
- package/dist/src/core/Link/index.d.ts +2 -1
- package/dist/src/core/Link/link.type.d.ts +6 -0
- package/dist/src/core/Loading/index.d.ts +2 -1
- package/dist/src/core/Loading/loading.type.d.ts +4 -0
- package/dist/src/core/Modal/index.d.ts +2 -1
- package/dist/src/core/Modal/modal.type.d.ts +28 -0
- package/dist/src/core/Pagination/index.d.ts +2 -1
- package/dist/src/core/Pagination/pagination.type.d.ts +11 -0
- package/dist/src/core/Percent/index.d.ts +1 -1
- package/dist/src/core/Progress/index.d.ts +2 -0
- package/dist/src/core/Progress/progress.type.d.ts +2 -1
- package/dist/src/core/Radio/index.d.ts +2 -1
- package/dist/src/core/Radio/radio.type.d.ts +16 -0
- package/dist/src/core/SearchInput/index.d.ts +2 -1
- package/dist/src/core/SearchInput/searchInput.type.d.ts +7 -0
- package/dist/src/core/Second/index.d.ts +1 -1
- package/dist/src/core/SegmentControl/index.d.ts +2 -1
- package/dist/src/core/SegmentControl/segmentControl.type.d.ts +4 -0
- package/dist/src/core/Select/index.d.ts +2 -1
- package/dist/src/core/Select/select.type.d.ts +32 -0
- package/dist/src/core/SimplePagination/index.d.ts +2 -1
- package/dist/src/core/SimplePagination/simplePagination.type.d.ts +7 -0
- package/dist/src/core/Space/index.d.ts +1 -0
- package/dist/src/core/Space/space.type.d.ts +10 -0
- package/dist/src/core/Speed/index.d.ts +1 -1
- package/dist/src/core/StatusCapsule/index.d.ts +3 -2
- package/dist/src/core/StatusCapsule/statusCapsule.type.d.ts +10 -0
- package/dist/src/core/StepProgress/index.d.ts +2 -1
- package/dist/src/core/StepProgress/stepProgress.type.d.ts +5 -0
- package/dist/src/core/Steps/index.d.ts +2 -1
- package/dist/src/core/Steps/steps.type.d.ts +19 -0
- package/dist/src/core/Switch/index.d.ts +2 -1
- package/dist/src/core/Switch/switch.type.d.ts +4 -0
- package/dist/src/core/Table/index.d.ts +2 -1
- package/dist/src/core/Table/table.type.d.ts +73 -0
- package/dist/src/core/TableForm/Columns/index.d.ts +10 -10
- package/dist/src/core/TableForm/index.d.ts +1 -0
- package/dist/src/core/TableForm/types.d.ts +1 -1
- package/dist/src/core/Tag/SplitTag.d.ts +1 -1
- package/dist/src/core/Tag/const.d.ts +1 -1
- package/dist/src/core/Tag/index.d.ts +3 -2
- package/dist/src/core/Tag/tag.type.d.ts +22 -0
- package/dist/src/core/TextArea/index.d.ts +2 -1
- package/dist/src/core/TextArea/textArea.type.d.ts +10 -0
- package/dist/src/core/Time/index.d.ts +2 -1
- package/dist/src/core/Time/time.type.d.ts +7 -0
- package/dist/src/core/TimeZoneSelect/index.d.ts +2 -1
- package/dist/src/core/TimeZoneSelect/timeZoneSelect.type.d.ts +9 -0
- package/dist/src/core/Token/index.d.ts +4 -3
- package/dist/src/core/Token/token.type.d.ts +12 -0
- package/dist/src/core/Tooltip/index.d.ts +1 -0
- package/dist/src/core/Units/index.d.ts +1 -0
- package/dist/src/core/Units/units.type.d.ts +17 -0
- package/dist/src/core/index.d.ts +140 -22
- package/dist/src/coreX/BatchOperation/batchOperation.type.d.ts +31 -0
- package/dist/src/coreX/BatchOperation/index.d.ts +2 -1
- package/dist/src/coreX/Counting/counting.type.d.ts +6 -0
- package/dist/src/coreX/Counting/index.d.ts +2 -1
- package/dist/src/coreX/CronCalendar/cronCalendar.type.d.ts +8 -0
- package/dist/src/coreX/CronCalendar/index.d.ts +2 -1
- package/dist/src/coreX/CronPlan/cronPlan.type.d.ts +13 -0
- package/dist/src/coreX/CronPlan/index.d.ts +2 -1
- package/dist/src/coreX/DateRangePicker/AbsoluteDate.d.ts +1 -1
- package/dist/src/coreX/DateRangePicker/Calendar.d.ts +1 -1
- package/dist/src/coreX/DateRangePicker/InputTime.d.ts +1 -1
- package/dist/src/coreX/DateRangePicker/RelativeTime.d.ts +1 -1
- package/dist/src/coreX/DateRangePicker/common.d.ts +2 -60
- package/dist/src/coreX/DateRangePicker/dateRangePicker.type.d.ts +64 -0
- package/dist/src/coreX/DateRangePicker/index.d.ts +4 -3
- package/dist/src/coreX/DropdownTransition/dropdownTransition.type.d.ts +4 -0
- package/dist/src/coreX/DropdownTransition/index.d.ts +1 -0
- package/dist/src/coreX/GoBackButton/goBackButton.type.d.ts +18 -0
- package/dist/src/coreX/GoBackButton/index.d.ts +2 -1
- package/dist/src/coreX/I18nNameTag/i18nNameTag.type.d.ts +14 -0
- package/dist/src/coreX/I18nNameTag/index.d.ts +2 -1
- package/dist/src/coreX/NamesTooltip/index.d.ts +2 -1
- package/dist/src/coreX/NamesTooltip/namesTooltip.type.d.ts +6 -0
- package/dist/src/coreX/OverflowTooltip/index.d.ts +1 -0
- package/dist/src/coreX/SidebarSubtitle/index.d.ts +2 -1
- package/dist/src/coreX/SidebarSubtitle/sidebarSubtitle.type.d.ts +5 -0
- package/dist/src/coreX/SortableList/index.d.ts +2 -1
- package/dist/src/coreX/SortableList/sortableList.type.d.ts +7 -0
- package/dist/src/coreX/SummaryTable/index.d.ts +2 -1
- package/dist/src/coreX/SummaryTable/summaryTable.type.d.ts +31 -0
- package/dist/src/coreX/SwitchWithText/index.d.ts +2 -1
- package/dist/src/coreX/SwitchWithText/switchWithText.type.d.ts +9 -0
- package/dist/src/coreX/TruncatedTextWithTooltip/index.d.ts +2 -1
- package/dist/src/coreX/TruncatedTextWithTooltip/truncatedTextWithTooltip.type.d.ts +5 -0
- package/dist/src/coreX/UnitWithChart/index.d.ts +8 -8
- package/dist/src/coreX/common/index.d.ts +1 -0
- package/dist/src/coreX/index.d.ts +38 -4
- package/dist/src/index.d.ts +5 -40
- package/dist/src/{core/antd.d.ts → legacy-antd.d.ts} +1 -1
- package/dist/src/spec/base.d.ts +7 -456
- package/dist/src/spec/index.d.ts +0 -1
- package/dist/stories/docs/core/Alert.stories.d.ts +1 -1
- package/dist/stories/docs/core/Arch.stories.d.ts +1 -1
- package/dist/stories/docs/core/Bit.stories.d.ts +6 -6
- package/dist/stories/docs/core/BitPerSecond.stories.d.ts +6 -6
- package/dist/stories/docs/core/Bps.stories.d.ts +6 -6
- package/dist/stories/docs/core/Byte.stories.d.ts +6 -6
- package/dist/stories/docs/core/FieldsBoolean.stories.d.ts +2 -2
- package/dist/stories/docs/core/FieldsString.stories.d.ts +8 -8
- package/dist/stories/docs/core/FieldsTimePicker.stories.d.ts +2 -2
- package/dist/stories/docs/core/Frequency.stories.d.ts +6 -6
- package/dist/stories/docs/core/Icon.stories.d.ts +6 -6
- package/dist/stories/docs/core/Link.stories.d.ts +1 -1
- package/dist/stories/docs/core/Modal.stories.d.ts +1 -1
- package/dist/stories/docs/core/Percent.stories.d.ts +10 -10
- package/dist/stories/docs/core/Second.stories.d.ts +8 -8
- package/dist/stories/docs/core/Speed.stories.d.ts +6 -6
- package/dist/stories/docs/core/StatusCapsule.stories.d.ts +1 -1
- package/dist/stories/docs/core/Steps.stories.d.ts +1 -1
- package/dist/stories/docs/core/Table.stories.d.ts +4 -4
- package/dist/stories/docs/core/Tag.stories.d.ts +1 -1
- package/dist/stories/docs/core/Token.stories.d.ts +1 -1
- package/dist/stories/docs/core/Tooltip.stories.d.ts +1 -1
- package/dist/stories/docs/coreX/CronCalendar.stories.d.ts +1 -1
- package/dist/stories/docs/coreX/CronPlan.stories.d.ts +1 -1
- package/dist/stories/docs/coreX/GoBackButton.stories.d.ts +1 -1
- package/dist/stories/docs/coreX/NamesTooltip.stories.d.ts +1 -1
- package/dist/stories/docs/coreX/SidebarSubtitle.stories.d.ts +1 -1
- package/dist/stories/docs/coreX/SortableList.stories.d.ts +1 -1
- package/dist/stories/docs/coreX/SummaryTable.stories.d.ts +1 -1
- package/dist/stories/docs/coreX/SwitchWithText.stories.d.ts +1 -1
- package/dist/stories/docs/coreX/TruncatedTextWithTooltip.stories.d.ts +1 -1
- package/dist/stories/types.d.ts +1 -1
- package/dist/style.css +2921 -2921
- package/package.json +5 -5
- package/dist/cjs/core/antd.js +0 -212
- package/dist/esm/core/antd.js +0 -205
- package/dist/src/spec/type.d.ts +0 -157
- /package/dist/cjs/{spec/type.js → core/Arch/arch.type.js} +0 -0
- /package/dist/esm/{spec/type.js → core/Arch/arch.type.js} +0 -0
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { TokenColor } from "../../spec";
|
|
2
1
|
import React from "react";
|
|
3
|
-
|
|
2
|
+
import { TokenColor } from "./token.type";
|
|
3
|
+
export declare const TokenPresetColors: TokenColor[];
|
|
4
4
|
declare const Token: React.ForwardRefExoticComponent<Omit<import("antd/lib/tag").TagProps, "closeIcon"> & {
|
|
5
5
|
color?: TokenColor | undefined;
|
|
6
|
-
size?: "small" | "
|
|
6
|
+
size?: "small" | "large" | "medium" | undefined;
|
|
7
7
|
checked?: boolean | undefined;
|
|
8
8
|
tooltipConfig?: {
|
|
9
9
|
title: string;
|
|
10
10
|
} | undefined;
|
|
11
11
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
12
12
|
export default Token;
|
|
13
|
+
export * from "./token.type";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TagProps as AntdTagProps } from "antd/lib/tag";
|
|
3
|
+
export type TokenColor = "red" | "yellow" | "green" | "blue" | "gray" | "purple";
|
|
4
|
+
export type TokenType = Omit<AntdTagProps, "closeIcon"> & {
|
|
5
|
+
color?: TokenColor;
|
|
6
|
+
size?: "small" | "medium" | "large";
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
tooltipConfig?: {
|
|
9
|
+
title: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export type TokenComponentType = React.ForwardRefExoticComponent<TokenType & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./units.type";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IEmptyProps } from "../Empty";
|
|
3
|
+
export interface RawValue {
|
|
4
|
+
rawValue?: number | null;
|
|
5
|
+
decimals?: number;
|
|
6
|
+
noUnitOnZero?: boolean;
|
|
7
|
+
abbreviate?: boolean;
|
|
8
|
+
valueClassName?: string;
|
|
9
|
+
unitClassName?: string;
|
|
10
|
+
}
|
|
11
|
+
export type PercentFn = React.FC<RawValue & {
|
|
12
|
+
saturated?: boolean;
|
|
13
|
+
emptyProps?: IEmptyProps;
|
|
14
|
+
}>;
|
|
15
|
+
export type UnitFn = React.FC<RawValue & {
|
|
16
|
+
emptyProps?: IEmptyProps;
|
|
17
|
+
}>;
|
package/dist/src/core/index.d.ts
CHANGED
|
@@ -1,42 +1,160 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export
|
|
1
|
+
export * from "./AccordionCard";
|
|
2
|
+
export * from "./Alert";
|
|
3
|
+
export * from "./Arch";
|
|
4
|
+
export * from "./Badge";
|
|
5
|
+
export * from "./BaseIcon";
|
|
3
6
|
export * from "./BaseIcon";
|
|
7
|
+
export * from "./Bit";
|
|
8
|
+
export * from "./BitPerSecond";
|
|
9
|
+
export * from "./Bps";
|
|
10
|
+
export * from "./Breadcrumb";
|
|
11
|
+
export * from "./Button";
|
|
4
12
|
export * from "./Button";
|
|
5
|
-
export { default as Button } from "./Button";
|
|
6
13
|
export * from "./ButtonGroup";
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
14
|
+
export * from "./ButtonGroup";
|
|
15
|
+
export * from "./Byte";
|
|
16
|
+
export * from "./Calendar";
|
|
17
|
+
export * from "./Card";
|
|
18
|
+
export * from "./Cascader";
|
|
19
|
+
export * from "./Checkbox";
|
|
20
|
+
export * from "./DeprecatedProgress";
|
|
21
|
+
export * from "./DetailCard";
|
|
22
|
+
export * from "./DonutChart";
|
|
23
|
+
export * from "./DropdownMenu";
|
|
24
|
+
export * from "./Empty";
|
|
25
|
+
export * from "./ErrorBoundary";
|
|
26
|
+
export * from "./ExpandableList";
|
|
27
|
+
export * from "./ExpandableList";
|
|
28
|
+
export * from "./FailedLoad";
|
|
29
|
+
export * from "./Fields";
|
|
30
|
+
export * from "./Form";
|
|
31
|
+
export * from "./FormItem";
|
|
32
|
+
export * from "./Frequency";
|
|
33
|
+
export * from "./Icon";
|
|
34
|
+
export * from "./Input";
|
|
35
|
+
export * from "./InputGroup";
|
|
36
|
+
export * from "./InputInteger";
|
|
37
|
+
export * from "./InputNumber";
|
|
38
|
+
export * from "./InputTagItem";
|
|
13
39
|
export * from "./KitStoreProvider";
|
|
14
|
-
export
|
|
15
|
-
export
|
|
40
|
+
export * from "./Link";
|
|
41
|
+
export * from "./Loading";
|
|
42
|
+
export * from "./message";
|
|
16
43
|
export * from "./message-group";
|
|
17
44
|
export * from "./Metric";
|
|
18
|
-
export
|
|
45
|
+
export * from "./Metric";
|
|
19
46
|
export * from "./Modal";
|
|
20
|
-
export
|
|
47
|
+
export * from "./Modal";
|
|
48
|
+
export * from "./ModalStack";
|
|
21
49
|
export * from "./Overflow";
|
|
50
|
+
export * from "./Overflow";
|
|
51
|
+
export * from "./Pagination";
|
|
22
52
|
export * from "./Pagination";
|
|
53
|
+
export * from "./ParrotTrans";
|
|
54
|
+
export * from "./Percent";
|
|
55
|
+
export * from "./Progress";
|
|
23
56
|
export * from "./Radio";
|
|
57
|
+
export * from "./Radio";
|
|
58
|
+
export * from "./SearchInput";
|
|
59
|
+
export * from "./Second";
|
|
60
|
+
export * from "./SegmentControl";
|
|
61
|
+
export * from "./Select";
|
|
24
62
|
export * from "./SidebarMenu";
|
|
63
|
+
export * from "./SimplePagination";
|
|
64
|
+
export * from "./Space";
|
|
65
|
+
export * from "./Speed";
|
|
66
|
+
export * from "./StatusCapsule";
|
|
67
|
+
export * from "./StepProgress";
|
|
68
|
+
export * from "./Steps";
|
|
25
69
|
export * from "./Steps";
|
|
26
70
|
export * from "./Styled";
|
|
71
|
+
export * from "./Styled";
|
|
72
|
+
export * from "./Switch";
|
|
27
73
|
export * from "./Switch";
|
|
28
74
|
export * from "./Table";
|
|
75
|
+
export * from "./TableForm";
|
|
76
|
+
export * from "./Tag";
|
|
77
|
+
export * from "./TextArea";
|
|
78
|
+
export * from "./Time";
|
|
79
|
+
export * from "./TimePicker";
|
|
29
80
|
export * from "./TimeZoneSelect";
|
|
81
|
+
export * from "./Token";
|
|
30
82
|
export * from "./Tooltip";
|
|
31
|
-
export
|
|
83
|
+
export * from "./Truncate";
|
|
32
84
|
export * from "./Typo";
|
|
85
|
+
export * from "./Units";
|
|
33
86
|
export declare const units: {
|
|
34
|
-
Percent: import("
|
|
35
|
-
Byte: import("
|
|
36
|
-
Frequency: import("
|
|
37
|
-
Speed: import("
|
|
38
|
-
Bps: import("
|
|
39
|
-
BitPerSecond: import("
|
|
40
|
-
Bit: import("
|
|
41
|
-
Second: import("
|
|
87
|
+
Percent: import("./Units").PercentFn;
|
|
88
|
+
Byte: import("./Units").UnitFn;
|
|
89
|
+
Frequency: import("./Units").UnitFn;
|
|
90
|
+
Speed: import("./Units").UnitFn;
|
|
91
|
+
Bps: import("./Units").UnitFn;
|
|
92
|
+
BitPerSecond: import("./Units").UnitFn;
|
|
93
|
+
Bit: import("./Units").UnitFn;
|
|
94
|
+
Second: import("./Units").UnitFn;
|
|
42
95
|
};
|
|
96
|
+
export { units as Units };
|
|
97
|
+
export { default as AccordionCard } from "./AccordionCard";
|
|
98
|
+
export { default as Alert } from "./Alert";
|
|
99
|
+
export { default as Arch } from "./Arch";
|
|
100
|
+
export { default as Badge } from "./Badge";
|
|
101
|
+
export { default as BaseIcon } from "./BaseIcon";
|
|
102
|
+
export { default as Bit } from "./Bit";
|
|
103
|
+
export { default as BitPerSecond } from "./BitPerSecond";
|
|
104
|
+
export { default as Bps } from "./Bps";
|
|
105
|
+
export { default as Breadcrumb } from "./Breadcrumb";
|
|
106
|
+
export { default as Button } from "./Button";
|
|
107
|
+
export { default as ButtonGroup } from "./ButtonGroup";
|
|
108
|
+
export { default as Byte } from "./Byte";
|
|
109
|
+
export { default as Calendar } from "./Calendar";
|
|
110
|
+
export { default as Card } from "./Card";
|
|
111
|
+
export { default as Checkbox } from "./Checkbox";
|
|
112
|
+
export { default as DeprecatedProgress } from "./DeprecatedProgress";
|
|
113
|
+
export { default as DetailCard } from "./DetailCard";
|
|
114
|
+
export { default as DonutChart } from "./DonutChart";
|
|
115
|
+
export { default as DropdownMenu } from "./DropdownMenu";
|
|
116
|
+
export { default as Empty } from "./Empty";
|
|
117
|
+
export { default as Error } from "./Error";
|
|
118
|
+
export { default as ErrorBoundary } from "./ErrorBoundary";
|
|
119
|
+
export { default as FailedLoad } from "./FailedLoad";
|
|
120
|
+
export { default as Fields } from "./Fields";
|
|
121
|
+
export { default as Form } from "./Form";
|
|
122
|
+
export { default as FormItem } from "./FormItem";
|
|
123
|
+
export { default as Frequency } from "./Frequency";
|
|
124
|
+
export { default as Icon } from "./Icon";
|
|
125
|
+
export { default as Input } from "./Input";
|
|
126
|
+
export { default as InputGroup } from "./InputGroup";
|
|
127
|
+
export { default as InputInteger } from "./InputInteger";
|
|
128
|
+
export { default as InputNumber } from "./InputNumber";
|
|
129
|
+
export { default as InputTagItem } from "./InputTagItem";
|
|
130
|
+
export { default as KitStoreProvider } from "./KitStoreProvider";
|
|
131
|
+
export { default as Link } from "./Link";
|
|
132
|
+
export { default as Loading } from "./Loading";
|
|
133
|
+
export { default as message } from "./message";
|
|
134
|
+
export { default as Metric } from "./Metric";
|
|
135
|
+
export { default as Modal } from "./Modal";
|
|
136
|
+
export { default as ModalStack } from "./ModalStack";
|
|
137
|
+
export { default as Overflow } from "./Overflow";
|
|
138
|
+
export { default as Pagination } from "./Pagination";
|
|
139
|
+
export { default as Percent } from "./Percent";
|
|
140
|
+
export { default as Radio } from "./Radio";
|
|
141
|
+
export { default as SearchInput } from "./SearchInput";
|
|
142
|
+
export { default as Second } from "./Second";
|
|
143
|
+
export { default as SegmentControl } from "./SegmentControl";
|
|
144
|
+
export { default as Select } from "./Select";
|
|
145
|
+
export { default as SimplePagination } from "./SimplePagination";
|
|
146
|
+
export { default as Space } from "./Space";
|
|
147
|
+
export { default as Speed } from "./Speed";
|
|
148
|
+
export { default as StatusCapsule } from "./StatusCapsule";
|
|
149
|
+
export { default as Steps } from "./Steps";
|
|
150
|
+
export { default as Switch } from "./Switch";
|
|
151
|
+
export { default as Table } from "./Table";
|
|
152
|
+
export { default as TableForm } from "./TableForm";
|
|
153
|
+
export { default as Tag } from "./Tag";
|
|
154
|
+
export { default as TextArea } from "./TextArea";
|
|
155
|
+
export { default as Time } from "./Time";
|
|
156
|
+
export { default as TimePicker } from "./TimePicker";
|
|
157
|
+
export { default as TimeZoneSelect } from "./TimeZoneSelect";
|
|
158
|
+
export { default as Token } from "./Token";
|
|
159
|
+
export { default as Tooltip } from "./Tooltip";
|
|
160
|
+
export { default as Truncate } from "./Truncate";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type NormalAction = {
|
|
3
|
+
key: string;
|
|
4
|
+
icon?: React.ReactElement;
|
|
5
|
+
title: string;
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
danger?: boolean;
|
|
8
|
+
count?: number;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
tooltip?: string;
|
|
11
|
+
};
|
|
12
|
+
type SubAction = {
|
|
13
|
+
key: string;
|
|
14
|
+
icon?: React.ReactElement;
|
|
15
|
+
title: string;
|
|
16
|
+
children: Array<Action>;
|
|
17
|
+
danger?: boolean;
|
|
18
|
+
canMove?: {
|
|
19
|
+
id: string;
|
|
20
|
+
}[];
|
|
21
|
+
canDelete?: {
|
|
22
|
+
id: string;
|
|
23
|
+
}[];
|
|
24
|
+
};
|
|
25
|
+
export type Action = NormalAction | SubAction | "divider";
|
|
26
|
+
export interface IBatchOperation {
|
|
27
|
+
count: number;
|
|
28
|
+
onClearSelection: () => void;
|
|
29
|
+
actions: Action[];
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Action } from "../../spec/type";
|
|
2
1
|
import React from "react";
|
|
2
|
+
import { Action } from "./batchOperation.type";
|
|
3
3
|
export declare const renderBatchOperationMenuItem: (act: Action, idx?: number) => JSX.Element;
|
|
4
4
|
declare const BatchOperation: React.FC<{
|
|
5
5
|
count: number;
|
|
@@ -7,3 +7,4 @@ declare const BatchOperation: React.FC<{
|
|
|
7
7
|
actions: Action[];
|
|
8
8
|
}>;
|
|
9
9
|
export default BatchOperation;
|
|
10
|
+
export * from "./batchOperation.type";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Dayjs } from "dayjs";
|
|
2
|
+
export type CronPlanState = {
|
|
3
|
+
expression: string;
|
|
4
|
+
retain: number;
|
|
5
|
+
startAt: Dayjs;
|
|
6
|
+
enabled: boolean;
|
|
7
|
+
empty: boolean;
|
|
8
|
+
};
|
|
9
|
+
export type CronPlanProps = {
|
|
10
|
+
value: CronPlanState;
|
|
11
|
+
onChange: (value: CronPlanState) => unknown;
|
|
12
|
+
onRemove?: () => void;
|
|
13
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CronPlanProps } from "../../spec";
|
|
2
1
|
import { i18n as Ii18n } from "i18next";
|
|
3
2
|
import moment from "moment";
|
|
4
3
|
import React from "react";
|
|
4
|
+
import { CronPlanProps } from "./cronPlan.type";
|
|
5
5
|
export declare const stringifyPlan: (mode: CronMode, daily: DailyState, weekly: WeeklyState, monthly: MonthlyState, i18n: Ii18n) => string | undefined;
|
|
6
6
|
type CronMode = "day" | "week" | "month";
|
|
7
7
|
type DailyState = {
|
|
@@ -16,3 +16,4 @@ type WeeklyState = {
|
|
|
16
16
|
type MonthlyState = WeeklyState;
|
|
17
17
|
declare const CronPlan: React.FC<CronPlanProps>;
|
|
18
18
|
export default CronPlan;
|
|
19
|
+
export * from "./cronPlan.type";
|
|
@@ -1,69 +1,11 @@
|
|
|
1
|
-
import { PastTime } from "../../spec/type";
|
|
2
1
|
import { Dayjs } from "dayjs";
|
|
3
2
|
import { TFunction } from "i18next";
|
|
4
|
-
import
|
|
5
|
-
export type MonthAndDate = {
|
|
6
|
-
month: number;
|
|
7
|
-
dates: number[];
|
|
8
|
-
firstDateOfDay: number;
|
|
9
|
-
};
|
|
10
|
-
export type DateRange = [Dayjs | null, Dayjs | null];
|
|
11
|
-
export type InputTimeValue = [string, string, string];
|
|
12
|
-
export type CalendarProps = {
|
|
13
|
-
range?: DateRange;
|
|
14
|
-
minDate?: string | Dayjs | undefined;
|
|
15
|
-
maxDate?: string | Dayjs | undefined;
|
|
16
|
-
onChange?: (range: DateRange) => void;
|
|
17
|
-
};
|
|
18
|
-
export type InputTimeProps = {
|
|
19
|
-
className?: string;
|
|
20
|
-
value?: InputTimeValue;
|
|
21
|
-
danger?: boolean;
|
|
22
|
-
error?: React.ReactNode;
|
|
23
|
-
onChange?: (time: InputTimeValue) => void;
|
|
24
|
-
onBlur?: (time: InputTimeValue) => void;
|
|
25
|
-
};
|
|
26
|
-
export type AbsoluteTimeProps = {
|
|
27
|
-
range: DateRange;
|
|
28
|
-
minDate?: string | Dayjs | undefined;
|
|
29
|
-
maxDate?: string | Dayjs | undefined;
|
|
30
|
-
onChange: (range: DateRange) => void;
|
|
31
|
-
onOk: (range: DateRange) => void;
|
|
32
|
-
};
|
|
3
|
+
import { PickerDateRange, PastTime } from "./dateRangePicker.type";
|
|
33
4
|
export declare const BASIC_RELATIVE_TIME_CONFIG: PastTime[];
|
|
34
|
-
export type RelativeTimeProps = {
|
|
35
|
-
config?: PastTime[];
|
|
36
|
-
value?: PastTime;
|
|
37
|
-
search?: boolean;
|
|
38
|
-
onChange: (config: PastTime) => void;
|
|
39
|
-
};
|
|
40
|
-
export type DateRangePickerValue = Omit<PastTime, "disabled"> | DateRange;
|
|
41
|
-
export type SetValue<T> = (obj: T | ((val: T) => T)) => void;
|
|
42
|
-
export type DateRangeHistory = {
|
|
43
|
-
type: "relative" | "absolute";
|
|
44
|
-
timestamp: number;
|
|
45
|
-
value: PastTime | string[];
|
|
46
|
-
}[];
|
|
47
|
-
export type DateRangeHistories = {
|
|
48
|
-
[key: string]: DateRangeHistory | null | undefined;
|
|
49
|
-
};
|
|
50
|
-
export type DateRangePickerProps = {
|
|
51
|
-
size?: "large" | "medium";
|
|
52
|
-
value?: Omit<PastTime, "disabled"> | DateRange;
|
|
53
|
-
history?: {
|
|
54
|
-
scope: string;
|
|
55
|
-
dateRangeHistories: DateRangeHistories;
|
|
56
|
-
setDateRangeHistory: SetValue<DateRangeHistories>;
|
|
57
|
-
};
|
|
58
|
-
mode?: ("relative" | "absolute")[] | "relative" | "absolute" | undefined;
|
|
59
|
-
minDate?: string | Dayjs | undefined;
|
|
60
|
-
maxDate?: string | Dayjs | undefined;
|
|
61
|
-
onChange?: (type: "relative" | "absolute", time: DateRangePickerValue, range: DateRange) => void;
|
|
62
|
-
};
|
|
63
5
|
export declare function getTime(year: number, month: number, date: number): Dayjs;
|
|
64
6
|
export declare function trimTime(time: Dayjs): Dayjs;
|
|
65
7
|
export declare function isSameDate(first: Dayjs, second: Dayjs): boolean;
|
|
66
|
-
export declare function getClassNameForDateBlock(range:
|
|
8
|
+
export declare function getClassNameForDateBlock(range: PickerDateRange, date: Dayjs, mapOfHighlightDay: Map<string, number>, disabled: boolean): string;
|
|
67
9
|
export declare function getDiffMonthAndDate(first: Dayjs, second: Dayjs): string[];
|
|
68
10
|
export declare function time2stringByUnit(time: string, type: "h" | "m" | "s"): string;
|
|
69
11
|
export declare function time2string(time: number): string;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Dayjs } from "dayjs";
|
|
3
|
+
export type MonthAndDate = {
|
|
4
|
+
month: number;
|
|
5
|
+
dates: number[];
|
|
6
|
+
firstDateOfDay: number;
|
|
7
|
+
};
|
|
8
|
+
export type PickerDateRange = [Dayjs | null, Dayjs | null];
|
|
9
|
+
export type InputTimeValue = [string, string, string];
|
|
10
|
+
export type CalendarProps = {
|
|
11
|
+
range?: PickerDateRange;
|
|
12
|
+
minDate?: string | Dayjs | undefined;
|
|
13
|
+
maxDate?: string | Dayjs | undefined;
|
|
14
|
+
onChange?: (range: PickerDateRange) => void;
|
|
15
|
+
};
|
|
16
|
+
export type InputTimeProps = {
|
|
17
|
+
className?: string;
|
|
18
|
+
value?: InputTimeValue;
|
|
19
|
+
danger?: boolean;
|
|
20
|
+
error?: React.ReactNode;
|
|
21
|
+
onChange?: (time: InputTimeValue) => void;
|
|
22
|
+
onBlur?: (time: InputTimeValue) => void;
|
|
23
|
+
};
|
|
24
|
+
export type AbsoluteTimeProps = {
|
|
25
|
+
range: PickerDateRange;
|
|
26
|
+
minDate?: string | Dayjs | undefined;
|
|
27
|
+
maxDate?: string | Dayjs | undefined;
|
|
28
|
+
onChange: (range: PickerDateRange) => void;
|
|
29
|
+
onOk: (range: PickerDateRange) => void;
|
|
30
|
+
};
|
|
31
|
+
export type RelativeTimeProps = {
|
|
32
|
+
config?: PastTime[];
|
|
33
|
+
value?: PastTime;
|
|
34
|
+
search?: boolean;
|
|
35
|
+
onChange: (config: PastTime) => void;
|
|
36
|
+
};
|
|
37
|
+
export type DateRangePickerValue = Omit<PastTime, "disabled"> | PickerDateRange;
|
|
38
|
+
export type SetValue<T> = (obj: T | ((val: T) => T)) => void;
|
|
39
|
+
export type DateRangeHistory = {
|
|
40
|
+
type: "relative" | "absolute";
|
|
41
|
+
timestamp: number;
|
|
42
|
+
value: PastTime | string[];
|
|
43
|
+
}[];
|
|
44
|
+
export type DateRangeHistories = {
|
|
45
|
+
[key: string]: DateRangeHistory | null | undefined;
|
|
46
|
+
};
|
|
47
|
+
export type DateRangePickerProps = {
|
|
48
|
+
size?: "large" | "medium";
|
|
49
|
+
value?: Omit<PastTime, "disabled"> | PickerDateRange;
|
|
50
|
+
history?: {
|
|
51
|
+
scope: string;
|
|
52
|
+
dateRangeHistories: DateRangeHistories;
|
|
53
|
+
setDateRangeHistory: SetValue<DateRangeHistories>;
|
|
54
|
+
};
|
|
55
|
+
mode?: ("relative" | "absolute")[] | "relative" | "absolute" | undefined;
|
|
56
|
+
minDate?: string | Dayjs | undefined;
|
|
57
|
+
maxDate?: string | Dayjs | undefined;
|
|
58
|
+
onChange?: (type: "relative" | "absolute", time: DateRangePickerValue, range: PickerDateRange) => void;
|
|
59
|
+
};
|
|
60
|
+
export type PastTime = {
|
|
61
|
+
unit: "h" | "m" | "d";
|
|
62
|
+
value: number;
|
|
63
|
+
disabled?: boolean;
|
|
64
|
+
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { DateRangePickerProps } from "../../coreX/DateRangePicker/common";
|
|
2
1
|
import React from "react";
|
|
2
|
+
import { DateRangePickerProps } from "./dateRangePicker.type";
|
|
3
3
|
declare const DateRangePicker: React.FC<DateRangePickerProps>;
|
|
4
4
|
export default DateRangePicker;
|
|
5
5
|
export { default as AbsoluteDate } from "./AbsoluteDate";
|
|
6
|
-
export { default as
|
|
7
|
-
export
|
|
6
|
+
export { default as DateRangePickerCalendar } from "./Calendar";
|
|
7
|
+
export * from "./dateRangePicker.type";
|
|
8
|
+
export * from "./dateRangePicker.type";
|
|
8
9
|
export { default as InputTime } from "./InputTime";
|
|
9
10
|
export { default as RelativeTime } from "./RelativeTime";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { History, Location as HistoryLocation } from "history";
|
|
2
|
+
export type HistoryType = Omit<History, "push" | "replace" | "location" | "length"> & {
|
|
3
|
+
push: {
|
|
4
|
+
(path: string, state?: HistoryLocation["state"]): void;
|
|
5
|
+
(location: any): void;
|
|
6
|
+
};
|
|
7
|
+
replace: {
|
|
8
|
+
(path: string, state?: HistoryLocation["state"]): void;
|
|
9
|
+
(location: any): void;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export type GoBackButtonType = {
|
|
13
|
+
history: History | HistoryType;
|
|
14
|
+
title?: string;
|
|
15
|
+
onClick?: () => void;
|
|
16
|
+
path?: string;
|
|
17
|
+
index?: number;
|
|
18
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type I18nNameTagType = {
|
|
2
|
+
/**
|
|
3
|
+
* 需要高亮的内容,对应 i18n 词条 <1>{name}<1> 部分
|
|
4
|
+
*/
|
|
5
|
+
name: string;
|
|
6
|
+
/**
|
|
7
|
+
* i18n 词条 key
|
|
8
|
+
*/
|
|
9
|
+
i18nKey: string;
|
|
10
|
+
/**
|
|
11
|
+
* 其它透传给 i18n Trans 组件的内容,具体参考 [trans-component](https://react.i18next.com/latest/trans-component)
|
|
12
|
+
*/
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { SidebarSubtitleComponentType } from "
|
|
1
|
+
import { SidebarSubtitleComponentType } from "./sidebarSubtitle.type";
|
|
2
2
|
declare const SidebarSubtitle: SidebarSubtitleComponentType;
|
|
3
3
|
export default SidebarSubtitle;
|
|
4
|
+
export * from "./sidebarSubtitle.type";
|