ados-rcm 1.0.48 → 1.0.50
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.
|
@@ -32,11 +32,11 @@ export interface IADialogChildren {
|
|
|
32
32
|
export type TADialogTypes = 'okCancel' | 'cancelOk' | 'ok' | 'cancel' | 'none';
|
|
33
33
|
export interface IADialogProps {
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* dlgState : IADialogState
|
|
36
36
|
*
|
|
37
37
|
* Description : setOpen of the dialog. it is used when the dialog is closed.
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
dlgState: IADialogState;
|
|
40
40
|
/**
|
|
41
41
|
* type? : TADialogTypes = 'okCancel'
|
|
42
42
|
*
|
|
@@ -160,7 +160,7 @@ export interface IADialogProps {
|
|
|
160
160
|
*
|
|
161
161
|
* Basic Usage :
|
|
162
162
|
*
|
|
163
|
-
* const
|
|
163
|
+
* const dlgState = useDialogState();
|
|
164
164
|
* const onOk = () => { console.log('ok') }
|
|
165
165
|
* const onCancel = (e : IAEvent) => {
|
|
166
166
|
* e.event.preventDefault(); // this prevents the dialog from closing.
|
|
@@ -169,31 +169,30 @@ export interface IADialogProps {
|
|
|
169
169
|
*
|
|
170
170
|
* if (case 1)
|
|
171
171
|
* <>
|
|
172
|
-
* {
|
|
173
|
-
* <ADialog
|
|
172
|
+
* <ADialogFrame dlgState={dlgState}>
|
|
173
|
+
* <ADialog dlgState={dlgState}
|
|
174
174
|
* title='Dialog Title'
|
|
175
175
|
* onOk={onOk}
|
|
176
176
|
* onCancel={onCancel}>
|
|
177
177
|
* <div>Content</div>
|
|
178
178
|
* </ADialog>
|
|
179
|
-
*
|
|
179
|
+
* </ADialogFrame>
|
|
180
|
+
* <AButton onClick={dlgState.open}>Open Dialog</AButton>
|
|
180
181
|
* </>
|
|
181
182
|
*
|
|
182
183
|
* if (case 2)
|
|
183
|
-
*
|
|
184
|
-
* {
|
|
185
|
-
*
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
* }
|
|
190
|
-
* </>
|
|
184
|
+
* <ADialogFrame dlgState={dlgState}>
|
|
185
|
+
* <DTest dlgState={dlgState}
|
|
186
|
+
* onOk={onOk}
|
|
187
|
+
* onCancel={onCancel}>
|
|
188
|
+
* </DTest>
|
|
189
|
+
* </ADialogFrame>
|
|
191
190
|
*
|
|
192
191
|
* const DTest = (props: IADialogProps) => {
|
|
193
|
-
* let {
|
|
192
|
+
* let { dlgState, onOk, onCancel } = props;
|
|
194
193
|
* const [num, setNum] = useState(0);
|
|
195
194
|
* return (
|
|
196
|
-
* <ADialog
|
|
195
|
+
* <ADialog dlgState={dlgState}
|
|
197
196
|
* title='Dialog Title'
|
|
198
197
|
* onOk={onOk}
|
|
199
198
|
* onCancel={onCancel}>
|
|
@@ -206,3 +205,20 @@ export interface IADialogProps {
|
|
|
206
205
|
*
|
|
207
206
|
*/
|
|
208
207
|
export declare const ADialog: (props: IADialogProps) => import("react").ReactPortal;
|
|
208
|
+
export interface IADialogState {
|
|
209
|
+
isOpen: boolean;
|
|
210
|
+
setIsOpen: (isOpen: boolean) => void;
|
|
211
|
+
open: () => void;
|
|
212
|
+
onClose: () => void;
|
|
213
|
+
}
|
|
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 interface IADialogFrameProps {
|
|
221
|
+
dlgState: IADialogState;
|
|
222
|
+
children: React.ReactElement;
|
|
223
|
+
}
|
|
224
|
+
export declare const ADialogFrame: (props: IADialogFrameProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { IABaseProps } from '../ABase/ABase';
|
|
2
2
|
/**
|
|
3
|
-
* AComponent : AFrame :
|
|
3
|
+
* AComponent : AFrame : ARowFrame
|
|
4
4
|
*
|
|
5
|
-
* Description :
|
|
5
|
+
* Description : ARowFrame is a frame component that is displayed as a row and aligned center.
|
|
6
6
|
*
|
|
7
7
|
* Basic Usage :
|
|
8
8
|
*
|
|
9
9
|
* if (case 1)
|
|
10
|
-
* <
|
|
10
|
+
* <ARowFrame>
|
|
11
11
|
* Items
|
|
12
12
|
* <div>Item1</div>
|
|
13
13
|
* <AICon icon="Alert"/>
|
|
14
|
-
* </
|
|
14
|
+
* </ARowFrame>
|
|
15
15
|
*/
|
|
16
|
-
export declare const
|
|
16
|
+
export declare const ARowFrame: (props: IABaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
/**
|
|
18
|
-
* AComponent : AFrame :
|
|
18
|
+
* AComponent : AFrame : AColFrame
|
|
19
19
|
*
|
|
20
|
-
* Description :
|
|
20
|
+
* Description : AColFrame is a frame component that is displayed as a column and aligned center.
|
|
21
21
|
*
|
|
22
22
|
* Basic Usage :
|
|
23
23
|
*
|
|
24
24
|
* if (case 1)
|
|
25
|
-
* <
|
|
25
|
+
* <AColFrame>
|
|
26
26
|
* Items
|
|
27
27
|
* <div>Item1</div>
|
|
28
28
|
* <AICon icon="Alert"/>
|
|
29
|
-
* </
|
|
29
|
+
* </AColFrame>
|
|
30
30
|
*/
|
|
31
|
-
export declare const
|
|
32
|
-
interface
|
|
31
|
+
export declare const AColFrame: (props: IABaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
interface IAOverflowFrameProps extends IABaseProps {
|
|
33
33
|
/**
|
|
34
34
|
* noOverflowTooltip? : boolean
|
|
35
35
|
*
|
|
@@ -38,16 +38,16 @@ interface IOverflowFrameProps extends IABaseProps {
|
|
|
38
38
|
noOverflowTooltip?: boolean;
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
|
-
* AComponent : AFrame :
|
|
41
|
+
* AComponent : AFrame : AOverflowFrame
|
|
42
42
|
*
|
|
43
|
-
* Description :
|
|
43
|
+
* Description : AOverflowFrame is a frame component that is text-ellipsis and shows tooltips when overflowed.
|
|
44
44
|
*
|
|
45
45
|
* Basic Usage :
|
|
46
46
|
*
|
|
47
47
|
* if (case 1)
|
|
48
|
-
* <
|
|
48
|
+
* <AOverflowFrame>
|
|
49
49
|
* Long TextTextTextTextTextTextTextTextTextText
|
|
50
|
-
* </
|
|
50
|
+
* </AOverflowFrame>
|
|
51
51
|
*/
|
|
52
|
-
export declare const
|
|
52
|
+
export declare const AOverflowFrame: (props: IAOverflowFrameProps) => import("react/jsx-runtime").JSX.Element;
|
|
53
53
|
export {};
|