@gingkoo/pandora-explorer 0.0.1-alpha.8 → 0.0.1-alpha.80
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/lib/es/components/Dropdown/index.d.ts +1 -0
- package/lib/es/components/details/index.d.ts +3 -0
- package/lib/es/components/icons/index.d.ts +6 -1
- package/lib/es/components/menu/index.d.ts +4 -1
- package/lib/es/components/notdata/index.d.ts +2 -0
- package/lib/es/components/select-box/index.d.ts +7 -0
- package/lib/es/components/tile/index.d.ts +1 -1
- package/lib/es/components/tree/components/TreeNode.d.ts +1 -1
- package/lib/es/components/tree/components/contextTypes.d.ts +3 -3
- package/lib/es/components/tree/components/interface.d.ts +1 -0
- package/lib/es/components/tree/index.d.ts +6 -3
- package/lib/es/components/virtualScroll/index.d.ts +1 -0
- package/lib/es/explorer.d.ts +1 -0
- package/lib/es/index.d.ts +3 -0
- package/lib/es/index.js +3284 -1436
- package/lib/es/index.js.map +1 -1
- package/lib/es/layout/components/explorer-head/index.d.ts +1 -1
- package/lib/es/layout/components/explorer-menu/index.d.ts +1 -1
- package/lib/es/layout/index.d.ts +5 -1
- package/lib/es/store.d.ts +24 -0
- package/lib/es/types.d.ts +25 -6
- package/lib/es/utils/helper.d.ts +3 -0
- package/package.json +9 -6
|
@@ -22,10 +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;
|
|
35
|
+
export declare function UnknownSvg(): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export declare function UploadSvg(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import './index.less';
|
|
2
2
|
interface MenuProps {
|
|
3
3
|
menu?: MenuItem[];
|
|
4
|
-
onChange?: (key: string) => any;
|
|
4
|
+
onChange?: (key: string, parent?: MenuItem) => any;
|
|
5
|
+
loadMenu?: (item: MenuItem) => MenuItem;
|
|
6
|
+
store?: any;
|
|
5
7
|
}
|
|
6
8
|
export interface MenuItem {
|
|
7
9
|
key: string;
|
|
@@ -11,5 +13,6 @@ export interface MenuItem {
|
|
|
11
13
|
children: MenuItem | null;
|
|
12
14
|
[key: string]: any;
|
|
13
15
|
}
|
|
16
|
+
export declare function menuIcon(icon: any): import("react/jsx-runtime").JSX.Element | undefined;
|
|
14
17
|
export default function Menu(props: MenuProps): import("react/jsx-runtime").JSX.Element;
|
|
15
18
|
export {};
|
|
@@ -4,7 +4,7 @@ interface TileProps {
|
|
|
4
4
|
onMenuClick?: (key: string, param: any) => void;
|
|
5
5
|
onDblclick?: (key: string, param: any) => void;
|
|
6
6
|
onSelect?: (key: string, param: any) => void;
|
|
7
|
-
onRename?: (key: string, value: string, param: any) => void;
|
|
7
|
+
onRename?: (key: string, value: string | boolean, param: any) => void;
|
|
8
8
|
[key: string]: any;
|
|
9
9
|
}
|
|
10
10
|
export default function Tile(props: TileProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -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
|
|
21
|
-
showIcon
|
|
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
|
|
64
|
+
export declare const TreeContext: React.Context<TreeContextProps<any>>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import './index.less';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { MenuItem } from '../menu';
|
|
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?:
|
|
10
|
+
menu?: any;
|
|
12
11
|
children?: TreeItem[];
|
|
13
12
|
isLeaf?: boolean;
|
|
14
13
|
[key: string]: any;
|
|
@@ -22,18 +21,22 @@ 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
42
|
declare const _default: (props: TreeProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,5 +3,6 @@ declare const VirtualScroll: ({ className, item, itemHeight, renderItem, }: {
|
|
|
3
3
|
item: any[];
|
|
4
4
|
itemHeight: number;
|
|
5
5
|
renderItem: (v: any, i: number, end: boolean) => any;
|
|
6
|
+
onScroll?: () => any;
|
|
6
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export default VirtualScroll;
|
package/lib/es/explorer.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ import './index.less';
|
|
|
2
2
|
import './components/tree/css/index.less';
|
|
3
3
|
import { FC } from 'react';
|
|
4
4
|
import { ExplorerProps } from './types';
|
|
5
|
+
export declare const Icons: (v: any, className: string, style?: any) => import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
declare const Explorer: FC<ExplorerProps>;
|
|
6
7
|
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;
|