ados-rcm 1.0.50 → 1.0.51
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/ADialog/ADialog.d.ts +18 -8
- package/dist/index.cjs.js +10 -10
- package/dist/index.es.js +1289 -1290
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { Resources } from '../AResource/AResource';
|
|
3
3
|
import { IAEvent, TActionRef } from '../ATypes/ATypes';
|
|
4
4
|
/**
|
|
@@ -85,6 +85,12 @@ export interface IADialogProps {
|
|
|
85
85
|
* Description : onCancel of the dialog. it runs close by default
|
|
86
86
|
*/
|
|
87
87
|
onCancel?: (e: IAEvent) => void;
|
|
88
|
+
/**
|
|
89
|
+
* onClose : () => void;
|
|
90
|
+
*
|
|
91
|
+
* Description : onClose of the dialog. it runs dlgState.onClose by default
|
|
92
|
+
*/
|
|
93
|
+
onClose?: () => void;
|
|
88
94
|
/**
|
|
89
95
|
* onEnterPress : (e: IAEvent) => void;
|
|
90
96
|
*
|
|
@@ -204,21 +210,25 @@ export interface IADialogProps {
|
|
|
204
210
|
* }
|
|
205
211
|
*
|
|
206
212
|
*/
|
|
207
|
-
export declare const ADialog: (props: IADialogProps) =>
|
|
213
|
+
export declare const ADialog: (props: IADialogProps) => React.ReactPortal;
|
|
208
214
|
export interface IADialogState {
|
|
209
215
|
isOpen: boolean;
|
|
210
216
|
setIsOpen: (isOpen: boolean) => void;
|
|
211
217
|
open: () => void;
|
|
212
218
|
onClose: () => void;
|
|
213
219
|
}
|
|
214
|
-
export declare const useADialogState: () =>
|
|
215
|
-
isOpen: boolean;
|
|
216
|
-
setIsOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
217
|
-
open: () => void;
|
|
218
|
-
onClose: () => void;
|
|
219
|
-
};
|
|
220
|
+
export declare const useADialogState: () => IADialogState;
|
|
220
221
|
export interface IADialogFrameProps {
|
|
222
|
+
/**
|
|
223
|
+
* dlgState : IADialogState
|
|
224
|
+
*
|
|
225
|
+
* Description : isOpen of the dialog. you can 'open' using this.
|
|
226
|
+
* you can 'close' using actionRef. not this.
|
|
227
|
+
*/
|
|
221
228
|
dlgState: IADialogState;
|
|
229
|
+
/**
|
|
230
|
+
* children : React.ReactElement
|
|
231
|
+
*/
|
|
222
232
|
children: React.ReactElement;
|
|
223
233
|
}
|
|
224
234
|
export declare const ADialogFrame: (props: IADialogFrameProps) => import("react/jsx-runtime").JSX.Element;
|