ados-rcm 1.0.498 → 1.0.500
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/AFloatMenu/AFloatMenu.d.ts +8 -16
- package/dist/AModule/AComponents/ATree/ATree.d.ts +4 -3
- package/dist/AModule/AComponents/ATree/ATreeItem.d.ts +2 -1
- package/dist/AModule/AComponents/ATypes/ATypes.d.ts +8 -1
- package/dist/index.cjs.js +21 -21
- package/dist/index.es.js +2396 -2421
- package/package.json +1 -1
@@ -1,26 +1,19 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { TCanCallback } from '../../AUtils/cbF';
|
3
3
|
import { EDir12, IOffset, TActionRef } from '../ATypes/ATypes';
|
4
|
-
import { TUseValues } from '../../AHooks/useValues';
|
5
4
|
export interface IAFloatMenuActions {
|
6
5
|
/**
|
7
|
-
* open : () => void
|
6
|
+
* open : (elem : HTMLElement) => void
|
8
7
|
*
|
9
8
|
* Description : open AFloatMenu
|
10
9
|
*/
|
11
|
-
open: () => void;
|
10
|
+
open: (elem: HTMLElement) => void;
|
12
11
|
/**
|
13
12
|
* close : () => void
|
14
13
|
*
|
15
14
|
* Description : close AFloatMenu
|
16
15
|
*/
|
17
16
|
close: () => void;
|
18
|
-
/**
|
19
|
-
* toggle : () => void
|
20
|
-
*
|
21
|
-
* Description : toggle AFloatMenu
|
22
|
-
*/
|
23
|
-
toggle: () => void;
|
24
17
|
}
|
25
18
|
export interface IAFloatMenuContentProps<T> {
|
26
19
|
/**
|
@@ -72,18 +65,11 @@ export interface IAFloatMenuProps<T> {
|
|
72
65
|
* Description : defaultDef of AFloatMenu. it will affect all defs.
|
73
66
|
*/
|
74
67
|
defaultDef?: IAFloatMenuDef<T>;
|
75
|
-
/**
|
76
|
-
* useIsOpen? : TUseValues<boolean>
|
77
|
-
*
|
78
|
-
* Description : useIsOpen of AFloatMenu
|
79
|
-
*/
|
80
|
-
useIsOpen?: TUseValues<boolean>;
|
81
68
|
/**
|
82
69
|
* anchorElem : HTMLElement | null
|
83
70
|
*
|
84
71
|
* Description : anchorElem of AFloatMenu
|
85
72
|
*/
|
86
|
-
anchorElem: HTMLElement | null;
|
87
73
|
/**
|
88
74
|
* position? : EDir12 = EDir12.ES
|
89
75
|
*
|
@@ -102,6 +88,12 @@ export interface IAFloatMenuProps<T> {
|
|
102
88
|
* Description : offset of AFloatMenu
|
103
89
|
*/
|
104
90
|
offset?: IOffset;
|
91
|
+
/**
|
92
|
+
* onClose? : () => any
|
93
|
+
*
|
94
|
+
* Description : onClose of AFloatMenu
|
95
|
+
*/
|
96
|
+
onClose?: () => any;
|
105
97
|
/**
|
106
98
|
* actionRef? : TActionRef<IAFloatMenuActions>
|
107
99
|
*
|
@@ -6,6 +6,7 @@ import { TIcons } from '../AIcon/AIcon';
|
|
6
6
|
import { Resources } from '../AResource/AResource';
|
7
7
|
import { TActionRef } from '../ATypes/ATypes';
|
8
8
|
import { IATreeItemProps } from './ATreeItem';
|
9
|
+
import { TCanCallback } from '../../AUtils/cbF';
|
9
10
|
export interface IATreeSearchResult<T> {
|
10
11
|
/**
|
11
12
|
* keyword : string
|
@@ -162,11 +163,11 @@ export interface IATreeProps<T extends IATreeItem<T>> extends IABaseProps {
|
|
162
163
|
*/
|
163
164
|
TreeItemRenderer?: (props: IATreeItemProps<T>) => React.ReactNode;
|
164
165
|
/**
|
165
|
-
*
|
166
|
+
* RightStickyAddon? : TCanCallback<IATreeItemProps<T>, React.ReactNode>;
|
166
167
|
*
|
167
|
-
* Description :
|
168
|
+
* Description : RightStickyAddon of ATree
|
168
169
|
*/
|
169
|
-
|
170
|
+
RightStickyAddon?: TCanCallback<IATreeItemProps<T>, React.ReactNode>;
|
170
171
|
/**
|
171
172
|
* TopRightAddon? : React.ReactNode
|
172
173
|
*
|
@@ -3,6 +3,7 @@ import { TUseValues } from '../../AHooks/useValues';
|
|
3
3
|
import { TIcons } from '../AIcon/AIcon';
|
4
4
|
import { Resources } from '../AResource/AResource';
|
5
5
|
import { IATreeItem, IATreeSearchResult } from './ATree';
|
6
|
+
import { TCanCallback } from '../../AUtils/cbF';
|
6
7
|
export interface IATreeItemProps<T> {
|
7
8
|
isEqual: (a: T, b: T) => boolean;
|
8
9
|
item: T;
|
@@ -27,7 +28,7 @@ export interface IATreeItemProps<T> {
|
|
27
28
|
isParentCheckHovered: boolean;
|
28
29
|
ContentRenderer: (props: IATreeItemProps<T>) => React.ReactNode;
|
29
30
|
TreeItemRenderer: (props: IATreeItemProps<T>) => React.ReactNode;
|
30
|
-
|
31
|
+
RightStickyAddon?: TCanCallback<IATreeItemProps<T>, React.ReactNode>;
|
31
32
|
resources: typeof Resources.ATree;
|
32
33
|
}
|
33
34
|
declare enum EIndentState {
|
@@ -24,12 +24,18 @@ export declare enum EDir12 {
|
|
24
24
|
WN = "WestNorth",
|
25
25
|
WS = "WestSouth"
|
26
26
|
}
|
27
|
+
interface IPosition {
|
28
|
+
top?: number;
|
29
|
+
left?: number;
|
30
|
+
bottom?: number;
|
31
|
+
right?: number;
|
32
|
+
}
|
27
33
|
export interface IOffset {
|
28
34
|
x?: number;
|
29
35
|
y?: number;
|
30
36
|
}
|
31
37
|
export declare function setDir12Style(anchorRef: React.RefObject<HTMLElement>, selfRef: React.RefObject<HTMLElement>, dir: EDir12, offset?: IOffset): void;
|
32
|
-
export declare function setDir12StyleElem(anchorElem: HTMLElement | null, selfRef: React.RefObject<HTMLElement>, dir: EDir12, offset?: IOffset):
|
38
|
+
export declare function setDir12StyleElem(anchorElem: HTMLElement | null, selfRef: React.RefObject<HTMLElement>, dir: EDir12, offset?: IOffset): IPosition | undefined;
|
33
39
|
export type TActionRef<T> = React.MutableRefObject<T | null | undefined>;
|
34
40
|
export type TIdx = number | string;
|
35
41
|
export interface IACalledEvent {
|
@@ -42,3 +48,4 @@ export declare function createEvent(): {
|
|
42
48
|
event: IACalledEvent;
|
43
49
|
e: IAEvent;
|
44
50
|
};
|
51
|
+
export {};
|