ados-rcm 1.0.498 → 1.0.499

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.
@@ -1,7 +1,6 @@
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
6
  * open : () => void
@@ -72,12 +71,6 @@ export interface IAFloatMenuProps<T> {
72
71
  * Description : defaultDef of AFloatMenu. it will affect all defs.
73
72
  */
74
73
  defaultDef?: IAFloatMenuDef<T>;
75
- /**
76
- * useIsOpen? : TUseValues<boolean>
77
- *
78
- * Description : useIsOpen of AFloatMenu
79
- */
80
- useIsOpen?: TUseValues<boolean>;
81
74
  /**
82
75
  * anchorElem : HTMLElement | null
83
76
  *
@@ -102,6 +95,12 @@ export interface IAFloatMenuProps<T> {
102
95
  * Description : offset of AFloatMenu
103
96
  */
104
97
  offset?: IOffset;
98
+ /**
99
+ * onClose? : () => any
100
+ *
101
+ * Description : onClose of AFloatMenu
102
+ */
103
+ onClose?: () => any;
105
104
  /**
106
105
  * actionRef? : TActionRef<IAFloatMenuActions>
107
106
  *
@@ -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
- * RightStickyRenderer? : (props: IATreeItemProps<T>) => React.ReactNode
166
+ * RightStickyAddon? : TCanCallback<IATreeItemProps<T>, React.ReactNode>;
166
167
  *
167
- * Description : RightStickyRenderer of ATree
168
+ * Description : RightStickyAddon of ATree
168
169
  */
169
- RightStickyRenderer?: (props: IATreeItemProps<T>) => React.ReactNode;
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
- RightStickyRenderer?: (props: IATreeItemProps<T>) => React.ReactNode;
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): void;
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 {};