ados-rcm 1.1.715 → 1.1.717
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/AModule/AComponents/ATree/ATree.d.ts +3 -12
- package/dist/AModule/AComponents/ATree/ATreeItem.d.ts +12 -7
- package/dist/index.cjs.js +199 -199
- package/dist/index.es.js +12536 -12539
- package/package.json +1 -1
|
@@ -3,10 +3,9 @@ import { TUseValues } from '../../AHooks/useValues';
|
|
|
3
3
|
import { TCanCallback } from '../../AUtils/cbF';
|
|
4
4
|
import { IItem } from '../../AUtils/objF';
|
|
5
5
|
import { IABaseProps } from '../ABase/ABase';
|
|
6
|
-
import { TIcons } from '../AIcon/AIcon';
|
|
7
6
|
import { Resources } from '../AResource/AResource';
|
|
8
7
|
import { EDir4, TActionRef } from '../ATypes/ATypes';
|
|
9
|
-
import { IATreeItemProps, IIndentProps } from './ATreeItem';
|
|
8
|
+
import { IATreeItemProps, IIndentProps, TIconsConfig } from './ATreeItem';
|
|
10
9
|
export interface IATreeSearchResult<T> {
|
|
11
10
|
/**
|
|
12
11
|
* item? : T
|
|
@@ -130,19 +129,11 @@ export interface IATreeProps<T extends IATreeItem<T>> extends IABaseProps {
|
|
|
130
129
|
*/
|
|
131
130
|
height?: number;
|
|
132
131
|
/**
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
* Description : iconWidth of ATree
|
|
136
|
-
*/
|
|
137
|
-
iconWidth?: number;
|
|
138
|
-
/**
|
|
139
|
-
* icons? : { noChild?: TIcons; collapsed?: TIcons; expanded?: TIcons }
|
|
132
|
+
* icons? : { noChild?: TTreeIconConfig; collapsed?: TTreeIconConfig; expanded?: TTreeIconConfig }
|
|
140
133
|
*
|
|
141
134
|
* Description : icons of ATree
|
|
142
135
|
*/
|
|
143
|
-
icons?: TCanCallback<IATreeItemProps<T>,
|
|
144
|
-
[key in TExpandState]?: TIcons | Exclude<React.ReactNode, string>;
|
|
145
|
-
} | undefined>;
|
|
136
|
+
icons?: TCanCallback<IATreeItemProps<T>, TIconsConfig | undefined>;
|
|
146
137
|
/**
|
|
147
138
|
* indents? : { collapsed?: React.ReactNode; expanded?: React.ReactNode; isLast?: React.ReactNode }
|
|
148
139
|
*
|
|
@@ -3,8 +3,16 @@ import { TUseValues } from '../../AHooks/useValues';
|
|
|
3
3
|
import { TCanCallback } from '../../AUtils/cbF';
|
|
4
4
|
import { TIcons } from '../AIcon/AIcon';
|
|
5
5
|
import { Resources } from '../AResource/AResource';
|
|
6
|
-
import { EDir4 } from '../ATypes/ATypes';
|
|
7
|
-
import { IATreeItem, IATreeSearchResult
|
|
6
|
+
import { EDir4, TIdx } from '../ATypes/ATypes';
|
|
7
|
+
import { IATreeItem, IATreeSearchResult } from './ATree';
|
|
8
|
+
export type TTreeIconValue = TIcons | Exclude<React.ReactNode, string>;
|
|
9
|
+
export type TTreeIconConfig = TTreeIconValue;
|
|
10
|
+
export type TIconsConfig = {
|
|
11
|
+
collapsed?: TTreeIconConfig;
|
|
12
|
+
expanded?: TTreeIconConfig;
|
|
13
|
+
iconWidth?: number;
|
|
14
|
+
noChild?: TTreeIconConfig;
|
|
15
|
+
};
|
|
8
16
|
export interface IATreeItemProps<T> {
|
|
9
17
|
ContentRenderer: (props: IATreeItemProps<T>) => React.ReactNode;
|
|
10
18
|
RightStickyAddon?: TCanCallback<IATreeItemProps<T>, React.ReactNode>;
|
|
@@ -20,10 +28,7 @@ export interface IATreeItemProps<T> {
|
|
|
20
28
|
getItemId?: (item: T) => string;
|
|
21
29
|
height: number;
|
|
22
30
|
hoverdItem: T | null;
|
|
23
|
-
|
|
24
|
-
icons: TCanCallback<IATreeItemProps<T>, {
|
|
25
|
-
[key in TExpandState]?: TIcons | Exclude<React.ReactNode, string>;
|
|
26
|
-
} | undefined>;
|
|
31
|
+
icons: TCanCallback<IATreeItemProps<T>, TIconsConfig | undefined>;
|
|
27
32
|
indents: EIndentState[];
|
|
28
33
|
isChildOfDragItem?: (item: T) => boolean;
|
|
29
34
|
isDragSrcItem?: boolean;
|
|
@@ -33,7 +38,7 @@ export interface IATreeItemProps<T> {
|
|
|
33
38
|
isParentDisabled?: boolean | string;
|
|
34
39
|
isSelectMulti: boolean;
|
|
35
40
|
item: T;
|
|
36
|
-
itemId?:
|
|
41
|
+
itemId?: TIdx;
|
|
37
42
|
onMouseLeave?: (e: React.MouseEvent<HTMLElement>, item: T) => void;
|
|
38
43
|
onMouseOver?: (e: React.MouseEvent<HTMLElement>, item: T) => void;
|
|
39
44
|
resources: typeof Resources.ATree;
|