@gingkoo/pandora-explorer 0.0.1-alpha.9 → 0.0.1-alpha.90

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.
@@ -15,6 +15,7 @@ interface DropdownProps {
15
15
  y?: number;
16
16
  };
17
17
  style?: any;
18
+ onContextMenu?: any;
18
19
  }
19
20
  export default function Dropdown(props: DropdownProps): import("react/jsx-runtime").JSX.Element;
20
21
  export {};
@@ -1,5 +1,5 @@
1
1
  import './index.less';
2
- import { ReactNode } from 'react';
2
+ import { FC, ReactNode } from 'react';
3
3
  interface ColumnsProps {
4
4
  data: any[];
5
5
  className?: string;
@@ -12,5 +12,5 @@ interface ColumnsProps {
12
12
  onClick?: (key: any, param: any) => any;
13
13
  [key: string]: any;
14
14
  }
15
- export default function Columns(props: ColumnsProps): import("react/jsx-runtime").JSX.Element;
16
- export {};
15
+ declare const Columns: FC<ColumnsProps>;
16
+ export default Columns;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare function DetailsInfo(props: any): import("react/jsx-runtime").JSX.Element;
3
+ export default DetailsInfo;
@@ -22,11 +22,15 @@ export declare function AngleRightSvg(): import("react/jsx-runtime").JSX.Element
22
22
  export declare function OutdentSvg(): import("react/jsx-runtime").JSX.Element;
23
23
  export declare function CaretRight(): import("react/jsx-runtime").JSX.Element;
24
24
  export declare function CircleCheckSvg(): import("react/jsx-runtime").JSX.Element;
25
+ export declare function DoneSvg(): import("react/jsx-runtime").JSX.Element;
26
+ export declare function ProcessingSvg(): import("react/jsx-runtime").JSX.Element;
25
27
  export declare function ShareLinkSvg(): import("react/jsx-runtime").JSX.Element;
26
28
  export declare function UpdateSvg(): import("react/jsx-runtime").JSX.Element;
27
29
  export declare function NullDataSvg(): import("react/jsx-runtime").JSX.Element;
28
- export declare function SuffixIcon({ className, suffix }: {
30
+ export declare function SuffixIcon({ className, suffix, status, }: {
29
31
  className: string;
30
32
  suffix: string;
33
+ status?: 'done' | 'processing';
31
34
  }): import("react/jsx-runtime").JSX.Element;
32
35
  export declare function UnknownSvg(): import("react/jsx-runtime").JSX.Element;
36
+ export declare function UploadSvg(): import("react/jsx-runtime").JSX.Element;
@@ -1,15 +1,19 @@
1
1
  import './index.less';
2
+ import { ReactNode } from 'react';
2
3
  interface MenuProps {
3
4
  menu?: MenuItem[];
4
- onChange?: (key: string) => any;
5
+ onChange?: (key: string, parent?: MenuItem) => any;
6
+ loadMenu?: (item: MenuItem) => MenuItem;
7
+ store?: any;
5
8
  }
6
9
  export interface MenuItem {
7
10
  key: string;
8
11
  title: string;
9
12
  type?: string;
10
- icon?: any;
13
+ icon?: string | ReactNode;
11
14
  children: MenuItem | null;
12
15
  [key: string]: any;
13
16
  }
17
+ export declare function menuIcon(icon: any): import("react/jsx-runtime").JSX.Element | undefined;
14
18
  export default function Menu(props: MenuProps): import("react/jsx-runtime").JSX.Element;
15
19
  export {};
@@ -0,0 +1,2 @@
1
+ import './index.less';
2
+ export default function NotData(): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,12 @@
1
+ import './index.less';
1
2
  import { ReactNode } from 'react';
3
+ /***
4
+ * 功能拆封
5
+ *
6
+ */
2
7
  interface SelectBoxProps {
3
8
  checks: string[];
9
+ getContainer: string;
4
10
  dataClass?: string;
5
11
  selectClass: string;
6
12
  className?: string;
@@ -10,10 +16,8 @@ interface SelectBoxProps {
10
16
  action?: 'stack' | 'rotate';
11
17
  checkType?: 'file' | 'folder';
12
18
  onChange: (v: any) => any;
13
- onDrag: () => any;
14
- onEndDrag: () => any;
15
- onStartDrag: () => any;
16
19
  children: ReactNode;
20
+ onMouseup: (v: any) => void;
17
21
  [key: string]: any;
18
22
  }
19
23
  declare const SelectBox: (props: SelectBoxProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,12 @@
1
+ import { FC } from 'react';
1
2
  interface TileProps {
2
3
  className?: string;
3
4
  checks: any[];
4
- onMenuClick?: (key: string, param: any) => void;
5
+ onMenuClick?: (key: string, param: any, type?: string) => void;
5
6
  onDblclick?: (key: string, param: any) => void;
6
7
  onSelect?: (key: string, param: any) => void;
7
- onRename?: (key: string, value: string, param: any) => void;
8
+ onRename?: (key: string, value: string | boolean, param: any) => void;
8
9
  [key: string]: any;
9
10
  }
10
- export default function Tile(props: TileProps): import("react/jsx-runtime").JSX.Element;
11
- export {};
11
+ declare const Tile: FC<TileProps>;
12
+ export default Tile;
@@ -3,7 +3,7 @@ import { TreeContextProps } from './contextTypes';
3
3
  import { TreeNodeProps } from './interface';
4
4
  export type { TreeNodeProps } from './interface';
5
5
  export interface InternalTreeNodeProps extends TreeNodeProps {
6
- context?: TreeContextProps;
6
+ context?: TreeContextProps | null;
7
7
  }
8
8
  export interface TreeNodeState {
9
9
  dragNodeHighlight: boolean;
@@ -17,8 +17,8 @@ export type NodeMouseEventHandler<TreeDataType extends BasicDataNode = DataNode,
17
17
  export type NodeDragEventHandler<TreeDataType extends BasicDataNode = DataNode, T = HTMLDivElement> = (e: React.DragEvent<T>, node: NodeInstance<TreeDataType>, outsideTree?: boolean) => void;
18
18
  export interface TreeContextProps<TreeDataType extends BasicDataNode = DataNode> {
19
19
  prefixCls: string;
20
- selectable: boolean;
21
- showIcon: boolean;
20
+ selectable?: boolean;
21
+ showIcon?: boolean;
22
22
  icon: IconType;
23
23
  switcherIcon: IconType;
24
24
  draggable?: DraggableConfig;
@@ -61,4 +61,4 @@ export interface TreeContextProps<TreeDataType extends BasicDataNode = DataNode>
61
61
  onNodeDragEnd: NodeDragEventHandler<any, any>;
62
62
  onNodeDrop: NodeDragEventHandler<any, any>;
63
63
  }
64
- export declare const TreeContext: React.Context<TreeContextProps<any> | null>;
64
+ export declare const TreeContext: React.Context<TreeContextProps<any>>;
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  export type { ScrollTo } from 'rc-virtual-list/lib/List';
3
3
  export interface TreeNodeProps<TreeDataType extends BasicDataNode = DataNode> {
4
+ index?: number;
4
5
  eventKey?: Key;
5
6
  prefixCls?: string;
6
7
  className?: string;
@@ -1,6 +1,5 @@
1
1
  import './index.less';
2
- import { ReactNode } from 'react';
3
- import { MenuItem } from '../menu';
2
+ import React, { ReactNode } from 'react';
4
3
  export interface TreeItem {
5
4
  key: string;
6
5
  title: string;
@@ -8,7 +7,7 @@ export interface TreeItem {
8
7
  suffix?: string;
9
8
  api?: boolean;
10
9
  level?: string;
11
- menu?: string | (string | MenuItem)[];
10
+ menu?: any;
12
11
  children?: TreeItem[];
13
12
  isLeaf?: boolean;
14
13
  [key: string]: any;
@@ -22,19 +21,23 @@ export interface TreeProps {
22
21
  animation?: boolean;
23
22
  defaultmenu?: 'basis' | 'file';
24
23
  defaultExpandedKeys?: string[];
24
+ expandedKeys?: string[];
25
25
  autoExpandParent?: boolean;
26
26
  columns?: any[];
27
27
  checks?: string[];
28
+ loadedKeys?: string[];
28
29
  icon?: (v: any, className: string) => ReactNode;
29
30
  onChecks?: (checks: string[], param?: TreeItem[]) => void;
30
31
  onSelect?: (key: string) => any;
31
32
  onChange?: (data: TreeItem[]) => void;
32
33
  titleRender?: (props: any) => any;
33
- onMenuClick?: (key: string, props: any) => void;
34
+ onMenuClick?: (key: string, props: any) => 'update' | void;
34
35
  onDblclick?: (key: string, props: any) => void;
35
36
  loadData?: (key: string) => Promise<TreeItem[]> | TreeItem[];
36
37
  onRename?: (key: string, value: string, props?: TreeItem) => boolean | void;
38
+ filterData?: (node: any) => boolean;
39
+ onExpand?: (data: string[]) => void;
37
40
  [key: string]: any;
38
41
  }
39
- declare const _default: (props: TreeProps) => import("react/jsx-runtime").JSX.Element;
42
+ declare const _default: React.ForwardRefExoticComponent<Omit<TreeProps, "ref"> & React.RefAttributes<unknown>>;
40
43
  export default _default;
@@ -1,7 +1,12 @@
1
- declare const VirtualScroll: ({ className, item, itemHeight, renderItem, }: {
1
+ import './index.less';
2
+ import { FC } from 'react';
3
+ interface VirtualProps {
4
+ ref?: any;
2
5
  className: string;
3
6
  item: any[];
4
7
  itemHeight: number;
5
8
  renderItem: (v: any, i: number, end: boolean) => any;
6
- }) => import("react/jsx-runtime").JSX.Element;
9
+ onScroll?: (v?: any) => any;
10
+ }
11
+ declare const VirtualScroll: FC<VirtualProps>;
7
12
  export default VirtualScroll;
package/lib/es/css.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  export declare const flush: () => void, hydrate: (ids: string[]) => void, cx: (...classNames: import("@emotion/css/create-instance").ClassNamesArg[]) => string, merge: (className: string) => string, getRegisteredStyles: (registeredStyles: string[], className: string) => string, injectGlobal: {
2
- (template: TemplateStringsArray, ...args: import("@emotion/serialize").CSSInterpolation[]): void;
3
- (...args: import("@emotion/serialize").CSSInterpolation[]): void;
2
+ (template: TemplateStringsArray, ...args: import("@emotion/css/create-instance").CSSInterpolation[]): void;
3
+ (...args: import("@emotion/css/create-instance").CSSInterpolation[]): void;
4
4
  }, keyframes: {
5
- (template: TemplateStringsArray, ...args: import("@emotion/serialize").CSSInterpolation[]): string;
6
- (...args: import("@emotion/serialize").CSSInterpolation[]): string;
5
+ (template: TemplateStringsArray, ...args: import("@emotion/css/create-instance").CSSInterpolation[]): string;
6
+ (...args: import("@emotion/css/create-instance").CSSInterpolation[]): string;
7
7
  }, css: {
8
- (template: TemplateStringsArray, ...args: import("@emotion/serialize").CSSInterpolation[]): string;
9
- (...args: import("@emotion/serialize").CSSInterpolation[]): string;
10
- }, sheet: import("@emotion/css/create-instance").CSSStyleSheet, cache: import("@emotion/utils").EmotionCache;
8
+ (template: TemplateStringsArray, ...args: import("@emotion/css/create-instance").CSSInterpolation[]): string;
9
+ (...args: import("@emotion/css/create-instance").CSSInterpolation[]): string;
10
+ }, sheet: import("@emotion/css/create-instance").CSSStyleSheet, cache: import("@emotion/css/create-instance").EmotionCache;
package/lib/es/enum.d.ts CHANGED
@@ -9,3 +9,4 @@ export declare enum ApiStatusEnum {
9
9
  EMPTY = 4,
10
10
  SUCCESS = 5
11
11
  }
12
+ export declare const ImgSuffix: string[];
@@ -2,5 +2,8 @@ import './index.less';
2
2
  import './components/tree/css/index.less';
3
3
  import { FC } from 'react';
4
4
  import { ExplorerProps } from './types';
5
+ import '@gingkoo/pandora/lib/umd/index.min.css';
6
+ import '@gingkoo/pandora-icons/fonts/css/all.min.css';
7
+ export declare const Icons: (v: any, className: string, style?: any) => import("react/jsx-runtime").JSX.Element;
5
8
  declare const Explorer: FC<ExplorerProps>;
6
9
  export default Explorer;
package/lib/es/index.d.ts CHANGED
@@ -1,5 +1,8 @@
1
1
  import Explorer from './explorer';
2
+ import ExplorerMenu from './components/menu';
2
3
  export { registerMenu } from './components/menu/menulist';
4
+ export { Icons } from './explorer';
3
5
  export * from './types';
4
6
  export * from './enum';
7
+ export { ExplorerMenu, Explorer };
5
8
  export default Explorer;