@cloudtower/eagle 0.27.21 → 0.27.22

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.
@@ -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> {
@@ -547,6 +547,7 @@ export interface Kit<V = any, T extends HTMLElement = HTMLElement> {
547
547
  SidebarSubtitle: SidebarSubtitleComponentType;
548
548
  Link: LinkComponentType;
549
549
  DropdownMenu: React.FC<IDropdownMenuProps>;
550
+ BatchOperation: React.FC<IBatchOperation>;
550
551
  }
551
552
  export type ArchComponentType = React.FC<{
552
553
  architecture?: Architecture;
@@ -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 {};