ados-rcm 1.0.383 → 1.0.385
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 +23 -17
- package/dist/index.cjs.js +18 -18
- package/dist/index.es.js +1739 -1739
- package/package.json +1 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { EDir12, TActionRef, TIdx } from '../ATypes/ATypes';
|
3
2
|
import { TCanCallback } from '../../AUtils/cbF';
|
3
|
+
import { EDir12, TActionRef } from '../ATypes/ATypes';
|
4
4
|
export interface IAFloatMenuActions {
|
5
5
|
/**
|
6
6
|
* open : () => void
|
@@ -21,21 +21,21 @@ export interface IAFloatMenuActions {
|
|
21
21
|
*/
|
22
22
|
toggle: () => void;
|
23
23
|
}
|
24
|
-
export interface IAFloatMenuContentProps {
|
24
|
+
export interface IAFloatMenuContentProps<T> {
|
25
25
|
/**
|
26
|
-
* defKey :
|
26
|
+
* defKey : keyof T
|
27
27
|
*
|
28
28
|
* Description : defKey of AFloatMenu
|
29
29
|
*/
|
30
|
-
defKey:
|
30
|
+
defKey: keyof T;
|
31
31
|
/**
|
32
|
-
* def : IAFloatMenuDef
|
32
|
+
* def : IAFloatMenuDef<T>
|
33
33
|
*
|
34
34
|
* Description : def of AFloatMenu
|
35
35
|
*/
|
36
|
-
def: IAFloatMenuDef
|
36
|
+
def: IAFloatMenuDef<T>;
|
37
37
|
}
|
38
|
-
export interface IAFloatMenuDef {
|
38
|
+
export interface IAFloatMenuDef<T> {
|
39
39
|
/**
|
40
40
|
* noDisplay? : boolean
|
41
41
|
*
|
@@ -53,24 +53,24 @@ export interface IAFloatMenuDef {
|
|
53
53
|
*
|
54
54
|
* Description : content of AFloatMenu
|
55
55
|
*/
|
56
|
-
content?: TCanCallback<IAFloatMenuContentProps
|
56
|
+
content?: TCanCallback<IAFloatMenuContentProps<T>, React.ReactNode>;
|
57
57
|
}
|
58
|
-
export type TAFloatMenuDefs = {
|
59
|
-
[key in
|
58
|
+
export type TAFloatMenuDefs<T> = {
|
59
|
+
[key in keyof T]?: IAFloatMenuDef<T>;
|
60
60
|
};
|
61
|
-
export interface IAFloatMenuProps {
|
61
|
+
export interface IAFloatMenuProps<T> {
|
62
62
|
/**
|
63
|
-
* defs : TAFloatMenuDefs
|
63
|
+
* defs : TAFloatMenuDefs<T>
|
64
64
|
*
|
65
65
|
* Description : defs of AFloatMenu
|
66
66
|
*/
|
67
|
-
defs: TAFloatMenuDefs
|
67
|
+
defs: TAFloatMenuDefs<T>;
|
68
68
|
/**
|
69
|
-
* defaultDef? : IAFloatMenuDef
|
69
|
+
* defaultDef? : IAFloatMenuDef<T>
|
70
70
|
*
|
71
71
|
* Description : defaultDef of AFloatMenu. it will affect all defs.
|
72
72
|
*/
|
73
|
-
defaultDef?: IAFloatMenuDef
|
73
|
+
defaultDef?: IAFloatMenuDef<T>;
|
74
74
|
/**
|
75
75
|
* anchorRef : React.RefObject<HTMLElement>
|
76
76
|
*
|
@@ -78,11 +78,17 @@ export interface IAFloatMenuProps {
|
|
78
78
|
*/
|
79
79
|
anchorRef: React.RefObject<HTMLElement>;
|
80
80
|
/**
|
81
|
-
* position? : EDir12
|
81
|
+
* position? : EDir12 = EDir12.ES
|
82
82
|
*
|
83
83
|
* Description : position of AFloatMenu based on anchorRef
|
84
84
|
*/
|
85
85
|
position?: EDir12;
|
86
|
+
/**
|
87
|
+
* onClick? : (key : keyof T) => any
|
88
|
+
*
|
89
|
+
* Description : onClick of AFloatMenu
|
90
|
+
*/
|
91
|
+
onClick?: (key: keyof T) => any;
|
86
92
|
/**
|
87
93
|
* actionRef? : TActionRef<IAFloatMenuActions>
|
88
94
|
*
|
@@ -112,4 +118,4 @@ export interface IAFloatMenuProps {
|
|
112
118
|
* <div ref={anchorRef}>I am anchor</div>
|
113
119
|
* <AFloatMenu defs={defs} defaultDef={defaultDef} anchorRef={anchorRef}/>
|
114
120
|
*/
|
115
|
-
export declare const AFloatMenu: (props: IAFloatMenuProps) => import("react").ReactPortal | null;
|
121
|
+
export declare const AFloatMenu: <T>(props: IAFloatMenuProps<T>) => import("react").ReactPortal | null;
|