ados-rcm 1.0.47 → 1.0.49
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.
|
|
@@ -168,32 +168,28 @@ export interface IADialogProps {
|
|
|
168
168
|
* }
|
|
169
169
|
*
|
|
170
170
|
* if (case 1)
|
|
171
|
-
*
|
|
172
|
-
* {
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
*
|
|
178
|
-
*
|
|
179
|
-
* }
|
|
180
|
-
* </>
|
|
171
|
+
* <ADialogFrame dlgState={dlgState}>
|
|
172
|
+
* <ADialog dlgState={dlgState}
|
|
173
|
+
* title='Dialog Title'
|
|
174
|
+
* onOk={onOk}
|
|
175
|
+
* onCancel={onCancel}>
|
|
176
|
+
* <div>Content</div>
|
|
177
|
+
* </ADialog>
|
|
178
|
+
* </ADialogFrame>
|
|
181
179
|
*
|
|
182
180
|
* if (case 2)
|
|
183
|
-
*
|
|
184
|
-
* {
|
|
185
|
-
*
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
* }
|
|
190
|
-
* </>
|
|
181
|
+
* <ADialogFrame dlgState={dlgState}>
|
|
182
|
+
* <DTest dlgState={dlgState}
|
|
183
|
+
* onOk={onOk}
|
|
184
|
+
* onCancel={onCancel}>
|
|
185
|
+
* </DTest>
|
|
186
|
+
* </ADialogFrame>
|
|
191
187
|
*
|
|
192
188
|
* const DTest = (props: IADialogProps) => {
|
|
193
|
-
* let {
|
|
189
|
+
* let { dlgState, onOk, onCancel } = props;
|
|
194
190
|
* const [num, setNum] = useState(0);
|
|
195
191
|
* return (
|
|
196
|
-
* <ADialog
|
|
192
|
+
* <ADialog dlgState={dlgState}
|
|
197
193
|
* title='Dialog Title'
|
|
198
194
|
* onOk={onOk}
|
|
199
195
|
* onCancel={onCancel}>
|
|
@@ -206,3 +202,20 @@ export interface IADialogProps {
|
|
|
206
202
|
*
|
|
207
203
|
*/
|
|
208
204
|
export declare const ADialog: (props: IADialogProps) => import("react").ReactPortal;
|
|
205
|
+
export interface IADialogState {
|
|
206
|
+
isOpen: boolean;
|
|
207
|
+
setIsOpen: (isOpen: boolean) => void;
|
|
208
|
+
open: () => void;
|
|
209
|
+
close: () => void;
|
|
210
|
+
}
|
|
211
|
+
export declare const useADialogState: () => {
|
|
212
|
+
isOpen: boolean;
|
|
213
|
+
setIsOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
214
|
+
open: () => void;
|
|
215
|
+
close: () => void;
|
|
216
|
+
};
|
|
217
|
+
export interface IADialogFrameProps {
|
|
218
|
+
dlgState: IADialogState;
|
|
219
|
+
children: React.ReactElement;
|
|
220
|
+
}
|
|
221
|
+
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 {};
|