@cloudtower/eagle 0.27.21 → 0.27.23
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.css +2172 -2111
- package/dist/coreX/BatchOperation/BatchOperation.stories.d.ts +6 -0
- package/dist/coreX/BatchOperation/index.d.ts +9 -0
- package/dist/coreX/index.d.ts +1 -0
- package/dist/esm/index.js +1157 -955
- package/dist/esm/stats1.html +1 -1
- package/dist/spec/base.d.ts +3 -1
- package/dist/spec/type.d.ts +30 -0
- package/dist/style.css +1635 -1574
- package/dist/umd/index.js +1157 -953
- package/dist/umd/stats1.html +1 -1
- package/package.json +7 -5
package/dist/spec/base.d.ts
CHANGED
|
@@ -64,7 +64,7 @@ import { IDonutChartProps } from "../coreX/DonutChart";
|
|
|
64
64
|
import { IUnitWithChartProps } from "../coreX/UnitWithChart";
|
|
65
65
|
import { SerializableObject } from "../utils/tower";
|
|
66
66
|
import { FieldRenderProps } from "./react-final-form";
|
|
67
|
-
import { Architecture, DropdownTransitionProps, HistoryType, IAccordionCardProps, IBreadcrumbProps, ICircleProgressProps, ICountingProps, IDetailCardProps, IDropdownMenuProps, ISpaceProps, ITimeProps, ITimeZoneSelectProps, PropsFrom } from "./type";
|
|
67
|
+
import { Architecture, DropdownTransitionProps, HistoryType, IAccordionCardProps, IBatchOperation, IBreadcrumbProps, ICircleProgressProps, ICountingProps, IDetailCardProps, IDropdownMenuProps, ISpaceProps, ITimeProps, ITimeZoneSelectProps, PropsFrom } from "./type";
|
|
68
68
|
export type AntdTableComponentType = <RecordType extends object = any>(props: AntdTableProps<RecordType>) => JSX.Element;
|
|
69
69
|
export type AntdTreeSelectComponentType<T> = TreeSelect<T>;
|
|
70
70
|
interface EmptyType extends React.FC<EmptyProps> {
|
|
@@ -358,6 +358,7 @@ export type StepProps = {
|
|
|
358
358
|
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
359
359
|
title: string;
|
|
360
360
|
style?: React.CSSProperties;
|
|
361
|
+
disabled?: boolean;
|
|
361
362
|
};
|
|
362
363
|
export type IStepsProps = {
|
|
363
364
|
className?: string;
|
|
@@ -547,6 +548,7 @@ export interface Kit<V = any, T extends HTMLElement = HTMLElement> {
|
|
|
547
548
|
SidebarSubtitle: SidebarSubtitleComponentType;
|
|
548
549
|
Link: LinkComponentType;
|
|
549
550
|
DropdownMenu: React.FC<IDropdownMenuProps>;
|
|
551
|
+
BatchOperation: React.FC<IBatchOperation>;
|
|
550
552
|
}
|
|
551
553
|
export type ArchComponentType = React.FC<{
|
|
552
554
|
architecture?: Architecture;
|
package/dist/spec/type.d.ts
CHANGED
|
@@ -107,3 +107,33 @@ export interface IDropdownMenuProps {
|
|
|
107
107
|
trigger?: (args: object) => string | React.ReactNode;
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
|
+
export type NormalAction = {
|
|
111
|
+
key: string;
|
|
112
|
+
icon?: React.ReactElement;
|
|
113
|
+
title: string;
|
|
114
|
+
onClick: () => void;
|
|
115
|
+
danger?: boolean;
|
|
116
|
+
count?: number;
|
|
117
|
+
disabled?: boolean;
|
|
118
|
+
tooltip?: string;
|
|
119
|
+
};
|
|
120
|
+
type SubAction = {
|
|
121
|
+
key: string;
|
|
122
|
+
icon?: React.ReactElement;
|
|
123
|
+
title: string;
|
|
124
|
+
children: Array<Action>;
|
|
125
|
+
danger?: boolean;
|
|
126
|
+
canMove?: {
|
|
127
|
+
id: string;
|
|
128
|
+
}[];
|
|
129
|
+
canDelete?: {
|
|
130
|
+
id: string;
|
|
131
|
+
}[];
|
|
132
|
+
};
|
|
133
|
+
export type Action = NormalAction | SubAction | "divider";
|
|
134
|
+
export interface IBatchOperation {
|
|
135
|
+
count: number;
|
|
136
|
+
onClearSelection: () => void;
|
|
137
|
+
actions: Action[];
|
|
138
|
+
}
|
|
139
|
+
export {};
|