ados-rcm 1.0.10 → 1.0.12
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/ABase/ABase.d.ts +33 -26
- package/dist/AModule/AComponents/AButton/AButton.d.ts +21 -7
- package/dist/AModule/AComponents/AButton/AIconButton.d.ts +15 -9
- package/dist/AModule/AComponents/ACheckBox/ACheckBox.d.ts +19 -12
- package/dist/AModule/AComponents/AClock/AClock.d.ts +32 -38
- package/dist/AModule/AComponents/ADatePicker/ADatePicker.d.ts +39 -54
- package/dist/AModule/AComponents/ADatePicker/ADateRangePicker.d.ts +20 -22
- package/dist/AModule/AComponents/ADialog/ADialog.d.ts +54 -66
- package/dist/AModule/AComponents/AFileBox/AFileBox.d.ts +17 -15
- package/dist/AModule/AComponents/AFloatMenu/AFloatMenu.d.ts +45 -61
- package/dist/AModule/AComponents/AFrames/AFrames.d.ts +33 -24
- package/dist/AModule/AComponents/AGrow/AGrow.d.ts +11 -7
- package/dist/AModule/AComponents/AIcon/AIcon.d.ts +9 -6
- package/dist/AModule/AComponents/AInput/AInput.d.ts +37 -48
- package/dist/AModule/AComponents/AListView/AListView.d.ts +38 -27
- package/dist/AModule/AComponents/ASelect/ASelect.d.ts +56 -56
- package/dist/AModule/AComponents/ASpace/ASpace.d.ts +9 -11
- package/dist/AModule/AComponents/AStepper/AStepper.d.ts +34 -35
- package/dist/AModule/AComponents/ASwitch/ASwitch.d.ts +13 -10
- package/dist/AModule/AComponents/ATab/ATab.d.ts +34 -35
- package/dist/AModule/AComponents/ATable/ATable.d.ts +249 -200
- package/dist/AModule/AComponents/AText/AText.d.ts +24 -9
- package/dist/AModule/AComponents/ATextArea/ATextArea.d.ts +33 -38
- package/dist/AModule/AComponents/ATooltip/ATooltip.d.ts +22 -11
- package/dist/AModule/AComponents/ATree/ATree.d.ts +71 -38
- package/dist/AModule/AComponents/AWrap/AWrap.d.ts +19 -10
- package/dist/index.cjs.js +3 -3
- package/dist/index.es.js +152 -152
- package/package.json +1 -1
|
@@ -2,31 +2,46 @@ import React from 'react';
|
|
|
2
2
|
interface IATextProps {
|
|
3
3
|
/**
|
|
4
4
|
* text? : string
|
|
5
|
-
*
|
|
5
|
+
*
|
|
6
|
+
* Description : text of AText
|
|
6
7
|
*/
|
|
7
8
|
text?: string;
|
|
8
9
|
/**
|
|
9
10
|
* styled? : boolean | string
|
|
10
|
-
*
|
|
11
|
+
*
|
|
12
|
+
* Description : styled of AText. if true, all text is styled. if string, the matching string on text will be styled.
|
|
11
13
|
*/
|
|
12
14
|
styled?: boolean | string;
|
|
13
15
|
/**
|
|
14
16
|
* style? : 'bold' | React.CSSProperties
|
|
15
|
-
*
|
|
17
|
+
*
|
|
18
|
+
* Description : style of AText. if 'bold', text will be bold. if React.CSSProperties, text will be styled with the style.
|
|
16
19
|
*/
|
|
17
20
|
style?: 'bold' | React.CSSProperties;
|
|
18
21
|
}
|
|
19
22
|
/**
|
|
20
23
|
* AComponent : AText
|
|
21
|
-
* <br/>Description : AText is a text component that can be styled.
|
|
22
|
-
* <br/>Basic Usage :
|
|
23
|
-
* <br/>(1)<AText text="This is text"/>
|
|
24
24
|
*
|
|
25
|
-
*
|
|
25
|
+
* Description : AText is a text component that can be styled.
|
|
26
26
|
*
|
|
27
|
-
*
|
|
27
|
+
* Basic Usage :
|
|
28
28
|
*
|
|
29
|
-
*
|
|
29
|
+
* if (case 1)
|
|
30
|
+
* <AText text="This is text"/>
|
|
31
|
+
*
|
|
32
|
+
* if (case 2)
|
|
33
|
+
* <AText text="This is text"
|
|
34
|
+
* styled/>
|
|
35
|
+
*
|
|
36
|
+
* if (case 3)
|
|
37
|
+
* <AText text="This is text"
|
|
38
|
+
* styled="is"
|
|
39
|
+
* style='bold'/>
|
|
40
|
+
*
|
|
41
|
+
* if (case 4)
|
|
42
|
+
* <AText text="This is text"
|
|
43
|
+
* styled="text"
|
|
44
|
+
* style={{color: 'red'}}/>
|
|
30
45
|
*/
|
|
31
46
|
export declare const AText: ({ text, styled, style }: IATextProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
47
|
export {};
|
|
@@ -6,92 +6,87 @@ export type TTextAreaType = 'Primary' | 'Secondary' | 'Error';
|
|
|
6
6
|
export interface IATextAreaProps extends IABaseProps, IAWrapProps {
|
|
7
7
|
/**
|
|
8
8
|
* onEnterPress? : (value: string) => void
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* <br/>(1)<AInput onEnterPress={value => console.log(value)}/>
|
|
9
|
+
*
|
|
10
|
+
* Description : onEnterPress of ATextArea
|
|
12
11
|
*/
|
|
13
12
|
onEnterPress?: (value: string) => void;
|
|
14
13
|
/**
|
|
15
14
|
* type? : TTextAreaType = 'Primary'
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* <br/>(1)<AInput type="Secondary"/>
|
|
15
|
+
*
|
|
16
|
+
* Description : type of ATextArea
|
|
19
17
|
*/
|
|
20
18
|
type?: TTextAreaType;
|
|
21
19
|
/**
|
|
22
20
|
* textAreaRef? : React.RefObject<HTMLTextAreaElement>
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* <br/>(1)const textAreaRef = useRef<HTMLTextAreaElement>(null);
|
|
26
|
-
* <AInput textAreaRef={textAreaRef}/>
|
|
21
|
+
*
|
|
22
|
+
* Description : textAreaRef of ATextArea
|
|
27
23
|
*/
|
|
28
24
|
textAreaRef?: React.RefObject<HTMLTextAreaElement>;
|
|
29
25
|
/**
|
|
30
26
|
* useValue? : TUseValues<string>
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* <br/>(1)const [value, setValue] = useState<string>('');
|
|
34
|
-
* <AInput useValue={[value, setValue]}/>
|
|
27
|
+
*
|
|
28
|
+
* Description : useValue of ATextArea
|
|
35
29
|
*/
|
|
36
30
|
useValue?: TUseValues<string>;
|
|
37
31
|
/**
|
|
38
32
|
* rows? : number
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* <br/>(1)<ATextArea rows={5}/>
|
|
33
|
+
*
|
|
34
|
+
* Description : rows of ATextArea
|
|
42
35
|
*/
|
|
43
36
|
rows?: number;
|
|
44
37
|
/**
|
|
45
38
|
* readonly? : boolean
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* <br/>(1)<ATextArea readonly/>
|
|
39
|
+
*
|
|
40
|
+
* Description : decides whether the input is readonly or not
|
|
49
41
|
*/
|
|
50
42
|
readonly?: boolean;
|
|
51
43
|
/**
|
|
52
44
|
* onChange? : (e: React.ChangeEvent<HTMLTextAreaElement>) => void
|
|
53
|
-
*
|
|
45
|
+
*
|
|
46
|
+
* Description : onChange of ATextArea
|
|
54
47
|
*/
|
|
55
48
|
onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
56
49
|
/**
|
|
57
50
|
* placeholder? : string
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* <br/>(1)<ATextArea placeholder="Placeholder"/>
|
|
51
|
+
*
|
|
52
|
+
* Description : placeholder of ATextArea
|
|
61
53
|
*/
|
|
62
54
|
placeholder?: string;
|
|
63
55
|
/**
|
|
64
56
|
* maxLength? : number
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
* <br/>(1)<ATextArea maxLength={10}/>
|
|
57
|
+
*
|
|
58
|
+
* Description : maxLength of ATextArea
|
|
68
59
|
*/
|
|
69
60
|
maxLength?: number;
|
|
70
61
|
/**
|
|
71
62
|
* tabIndex? : number
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
* <br/>(1)<ATextArea tabIndex={1}/>
|
|
63
|
+
*
|
|
64
|
+
* Description : tabIndex of ATextArea
|
|
75
65
|
*/
|
|
76
66
|
tabIndex?: number;
|
|
77
67
|
/**
|
|
78
68
|
* autoFocus? : boolean
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
* <br/>(1)<ATextArea autoFocus/>
|
|
69
|
+
*
|
|
70
|
+
* Description : decides whether the input is focused or not
|
|
82
71
|
*/
|
|
83
72
|
autoFocus?: boolean;
|
|
84
73
|
/**
|
|
85
74
|
* textAreaProps? : React.TextareaHTMLAttributes<HTMLTextAreaElement>
|
|
86
|
-
*
|
|
75
|
+
*
|
|
76
|
+
* Description : textAreaProps of ATextArea
|
|
87
77
|
*/
|
|
88
78
|
textAreaProps?: React.TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
89
79
|
}
|
|
90
80
|
/**
|
|
91
81
|
* AComponent : ATextArea
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
82
|
+
*
|
|
83
|
+
* Description : ATextArea is a textarea component. it has AWrap and ABase inside, so be careful with the styles. I recommend checking out the element hierarchy first.
|
|
84
|
+
*
|
|
85
|
+
* Basic Usage :
|
|
86
|
+
*
|
|
87
|
+
* const [value, setValue] = useState('');
|
|
88
|
+
*
|
|
89
|
+
* if (case 1)
|
|
90
|
+
* <ATextArea useValue={[value, setValue]}/>
|
|
96
91
|
*/
|
|
97
92
|
export declare const ATextArea: ({ onEnterPress, type, textAreaRef, useValue, rows, readonly, placeholder, maxLength, tabIndex, autoFocus, textAreaProps, wrapProps, helperText, label, wrapType, ...abaseProps }: IATextAreaProps) => React.ReactNode;
|
|
@@ -2,34 +2,45 @@ import { RefObject } from 'react';
|
|
|
2
2
|
interface IATooltipProps {
|
|
3
3
|
/**
|
|
4
4
|
* tooltip : React.ReactNode
|
|
5
|
-
*
|
|
5
|
+
*
|
|
6
|
+
* Description : tooltip of ATooltip
|
|
6
7
|
*/
|
|
7
8
|
tooltip: React.ReactNode;
|
|
8
9
|
/**
|
|
9
10
|
* targetRef : React.RefObject<HTMLElement>
|
|
10
|
-
*
|
|
11
|
+
*
|
|
12
|
+
* Description : targetRef of ATooltip
|
|
11
13
|
*/
|
|
12
14
|
targetRef: RefObject<HTMLElement>;
|
|
13
15
|
/**
|
|
14
16
|
* delay? : number = 0
|
|
15
|
-
*
|
|
17
|
+
*
|
|
18
|
+
* Description : delay of ATooltip
|
|
16
19
|
*/
|
|
17
20
|
delay: number;
|
|
18
21
|
/**
|
|
19
22
|
* distance? : number = 10
|
|
20
|
-
*
|
|
23
|
+
*
|
|
24
|
+
* Description : distance of ATooltip
|
|
21
25
|
*/
|
|
22
26
|
distance: number;
|
|
23
27
|
}
|
|
24
28
|
/**
|
|
25
29
|
* AComponent : ATooltip
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
30
|
+
*
|
|
31
|
+
* Description : ATooltip is a tooltip component that can be attached to a target element.
|
|
32
|
+
*
|
|
33
|
+
* Basic Usage :
|
|
34
|
+
*
|
|
35
|
+
* const targetRef = useRef<HTMLDivElement>(null);
|
|
36
|
+
*
|
|
37
|
+
* if (case 1)
|
|
38
|
+
* <div ref={targetRef}>
|
|
39
|
+
* Hover me
|
|
40
|
+
* </div>
|
|
41
|
+
* <ATooltip tooltip="This is tooltip"
|
|
42
|
+
* targetRef={targetRef}/>
|
|
43
|
+
*
|
|
33
44
|
*
|
|
34
45
|
*/
|
|
35
46
|
export declare const ATooltip: ({ tooltip, targetRef, delay, distance }: IATooltipProps) => import("react").ReactPortal | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ATree
|
|
3
|
-
*
|
|
3
|
+
*
|
|
4
|
+
* Description :
|
|
4
5
|
* - select and check is not different, check is just appeared when showCheckbox is true.
|
|
5
6
|
*
|
|
6
7
|
* Notice 1 : useSelect is considered as T[], so you should pass T[] to useSelect even if isSelectMulti is false.
|
|
@@ -18,78 +19,92 @@ import { IATreeItemProps } from './ATreeItem';
|
|
|
18
19
|
export interface IATreeSearchResult<T> {
|
|
19
20
|
/**
|
|
20
21
|
* keyword : string
|
|
21
|
-
*
|
|
22
|
+
*
|
|
23
|
+
* Description : keyword of search result
|
|
22
24
|
*/
|
|
23
25
|
keyword: string;
|
|
24
26
|
/**
|
|
25
27
|
* items : T[]
|
|
26
|
-
*
|
|
28
|
+
*
|
|
29
|
+
* Description : items of search result
|
|
27
30
|
*/
|
|
28
31
|
items: T[];
|
|
29
32
|
/**
|
|
30
33
|
* item? : T
|
|
31
|
-
*
|
|
34
|
+
*
|
|
35
|
+
* Description : item of search result
|
|
32
36
|
*/
|
|
33
37
|
item?: T;
|
|
34
38
|
}
|
|
35
39
|
export interface IATreeItem<T> extends IItem {
|
|
36
40
|
/**
|
|
37
41
|
* children? : T[]
|
|
38
|
-
*
|
|
42
|
+
*
|
|
43
|
+
* Description : children of IATreeItem. tree will be rendered recursively.
|
|
39
44
|
*/
|
|
40
45
|
children?: T[];
|
|
41
46
|
}
|
|
42
47
|
export interface IATreeAction {
|
|
43
48
|
/**
|
|
44
49
|
* expandAll : () => void
|
|
45
|
-
*
|
|
50
|
+
*
|
|
51
|
+
* Description : expand all items
|
|
46
52
|
*/
|
|
47
53
|
expandAll: () => void;
|
|
48
54
|
/**
|
|
49
55
|
* collapseAll : () => void
|
|
50
|
-
*
|
|
56
|
+
*
|
|
57
|
+
* Description : collapse all items
|
|
51
58
|
*/
|
|
52
59
|
collapseAll: () => void;
|
|
53
60
|
}
|
|
54
61
|
export interface IATreeProps<T extends IATreeItem<T>> extends IABaseProps {
|
|
55
62
|
/**
|
|
56
63
|
* ItemRenderer? : (props: IATreeItemProps<T>) => React.ReactNode
|
|
57
|
-
*
|
|
64
|
+
*
|
|
65
|
+
* Description : ItemRenderer of ATree
|
|
58
66
|
*/
|
|
59
67
|
ItemRenderer?: (props: IATreeItemProps<T>) => React.ReactNode;
|
|
60
68
|
/**
|
|
61
69
|
* useItems? : TUseValues<T[]>
|
|
62
|
-
*
|
|
70
|
+
*
|
|
71
|
+
* Description : useItems of ATree. items will be changed if dragging is used
|
|
63
72
|
*/
|
|
64
73
|
useItems?: TUseValues<T[]>;
|
|
65
74
|
/**
|
|
66
75
|
* useExpand? : TUseValues<T[]>
|
|
67
|
-
*
|
|
76
|
+
*
|
|
77
|
+
* Description : useExpand of ATree
|
|
68
78
|
*/
|
|
69
79
|
useExpand?: TUseValues<T[]>;
|
|
70
80
|
/**
|
|
71
81
|
* useSelect? : TUseValues<T[]>
|
|
72
|
-
*
|
|
82
|
+
*
|
|
83
|
+
* Description : useSelect of ATree
|
|
73
84
|
*/
|
|
74
85
|
useSelect?: TUseValues<T[]>;
|
|
75
86
|
/**
|
|
76
87
|
* selectDisabled? : (item: T) => boolean | string | undefined
|
|
77
|
-
*
|
|
88
|
+
*
|
|
89
|
+
* Description : selectDisabled of ATree. if string is returned, it will be used as tooltip.
|
|
78
90
|
*/
|
|
79
91
|
selectDisabled?: (item: T) => boolean | string | undefined;
|
|
80
92
|
/**
|
|
81
93
|
* useSearch? : TUseValues<IATreeSearchResult<T> | undefined>
|
|
82
|
-
*
|
|
94
|
+
*
|
|
95
|
+
* Description : useSearch of ATree
|
|
83
96
|
*/
|
|
84
97
|
useSearch?: TUseValues<IATreeSearchResult<T> | undefined>;
|
|
85
98
|
/**
|
|
86
99
|
* showCheckbox? : boolean
|
|
87
|
-
*
|
|
100
|
+
*
|
|
101
|
+
* Description : showCheckbox of ATree
|
|
88
102
|
*/
|
|
89
103
|
showCheckbox?: boolean;
|
|
90
104
|
/**
|
|
91
105
|
* icons? : { noChild?: TIcons; collapsed?: TIcons; expanded?: TIcons }
|
|
92
|
-
*
|
|
106
|
+
*
|
|
107
|
+
* Description : icons of ATree
|
|
93
108
|
*/
|
|
94
109
|
icons?: {
|
|
95
110
|
noChild?: TIcons;
|
|
@@ -98,75 +113,93 @@ export interface IATreeProps<T extends IATreeItem<T>> extends IABaseProps {
|
|
|
98
113
|
};
|
|
99
114
|
/**
|
|
100
115
|
* iconWidth? : number
|
|
101
|
-
*
|
|
116
|
+
*
|
|
117
|
+
* Description : iconWidth of ATree
|
|
102
118
|
*/
|
|
103
119
|
iconWidth?: number;
|
|
104
120
|
/**
|
|
105
121
|
* isSelectMulti? : boolean
|
|
106
|
-
*
|
|
122
|
+
*
|
|
123
|
+
* Description : isSelectMulti of ATree
|
|
107
124
|
*/
|
|
108
125
|
isSelectMulti?: boolean;
|
|
109
126
|
/**
|
|
110
127
|
* noSearch? : boolean
|
|
111
|
-
*
|
|
128
|
+
*
|
|
129
|
+
* Description : noSearch of ATree. if true, search will not be rendered.
|
|
112
130
|
*/
|
|
113
131
|
noSearch?: boolean;
|
|
114
132
|
/**
|
|
115
133
|
* enableDrag? : boolean
|
|
116
|
-
*
|
|
134
|
+
*
|
|
135
|
+
* Description : enableDrag of ATree
|
|
117
136
|
*/
|
|
118
137
|
enableDrag?: boolean;
|
|
119
138
|
/**
|
|
120
139
|
* syncSearchSelect? : boolean
|
|
121
|
-
*
|
|
140
|
+
*
|
|
141
|
+
* Description : syncSearchSelect of ATree. if true, selectedItems will be synced with searchResult.
|
|
122
142
|
*/
|
|
123
143
|
syncSearchSelect?: boolean;
|
|
124
144
|
/**
|
|
125
145
|
* searchPredicate? : (inputValue: string, item: IATreeItem<T>) => any
|
|
126
|
-
*
|
|
146
|
+
*
|
|
147
|
+
* Description : searchPredicate of ATree.
|
|
127
148
|
*/
|
|
128
149
|
searchPredicate?: (inputValue: string, item: IATreeItem<T>) => any;
|
|
129
150
|
/**
|
|
130
151
|
* actionRef? : TActionRef<IATreeAction>
|
|
131
|
-
*
|
|
152
|
+
*
|
|
153
|
+
* Description : actionRef of ATree
|
|
132
154
|
*/
|
|
133
155
|
actionRef?: TActionRef<IATreeAction>;
|
|
134
156
|
/**
|
|
135
157
|
* HeaderRightAddon? : React.ReactNode
|
|
136
|
-
*
|
|
158
|
+
*
|
|
159
|
+
* Description : HeaderRightAddon of ATree
|
|
137
160
|
*/
|
|
138
161
|
HeaderRightAddon?: React.ReactNode;
|
|
139
162
|
/**
|
|
140
163
|
* RightStickyRenderer? : (props: IATreeItemProps<T>) => React.ReactNode
|
|
141
|
-
*
|
|
164
|
+
*
|
|
165
|
+
* Description : RightStickyRenderer of ATree
|
|
142
166
|
*/
|
|
143
167
|
RightStickyRenderer?: (props: IATreeItemProps<T>) => React.ReactNode;
|
|
144
168
|
/**
|
|
145
169
|
* resources? : Partial<typeof Resources.ATree>
|
|
146
|
-
*
|
|
170
|
+
*
|
|
171
|
+
* Description : resources of ATree
|
|
147
172
|
*/
|
|
148
173
|
resources?: Partial<typeof Resources.ATree>;
|
|
149
174
|
}
|
|
150
175
|
/**
|
|
151
176
|
* AComponent : ATree
|
|
152
|
-
*
|
|
177
|
+
*
|
|
178
|
+
* Description : ATree component. tree will be rendered recursively.
|
|
153
179
|
* select and check are not different, check is just appeared when showCheckbox is true.
|
|
154
180
|
* select, check, expand, drag-to-move, search are available.
|
|
155
|
-
* <br/>Basic Usage :
|
|
156
|
-
* <br/>(1)const items = [{name: 'Item1', children: [{name: 'Item1-1'}]}];
|
|
157
|
-
* return <ATree useItems={[items, setItems]}/>
|
|
158
181
|
*
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
-
*
|
|
182
|
+
* Basic Usage :
|
|
183
|
+
*
|
|
184
|
+
* const items = [{name: 'Item1', children: [{name: 'Item1-1'}]}, {name: 'Item2'}, {name: 'Item3'}];
|
|
185
|
+
* const [selected, setSelected] = useState<typeof items[0]>(items[0]);
|
|
186
|
+
* const [expanded, setExpanded] = useState<typeof items[0]>(items[0]);
|
|
187
|
+
* const [searchResult, setSearchResult] = useState<IATreeSearchResult<typeof items[0]> | undefined>(undefined);
|
|
188
|
+
*
|
|
189
|
+
* if (case 1)
|
|
190
|
+
* <ATree useItems={[items, undefined]}/>
|
|
191
|
+
*
|
|
192
|
+
* if (case 2)
|
|
193
|
+
* <ATree useItems={[items, setItems]}
|
|
194
|
+
* useSelect={[selected, setSelected]}/>
|
|
162
195
|
*
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
*
|
|
196
|
+
* if (case 3)
|
|
197
|
+
* <ATree useItems={[items, setItems]}
|
|
198
|
+
* useExpand={[expanded, setExpanded]}/>
|
|
166
199
|
*
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
*
|
|
200
|
+
* if (case 4)
|
|
201
|
+
* <ATree useItems={[items, setItems]}
|
|
202
|
+
* useSearch={[searchResult, setSearchResult]}/>
|
|
170
203
|
*
|
|
171
204
|
*/
|
|
172
205
|
export declare const ATree: <T extends IATreeItem<T>>({ selectDisabled, ItemRenderer, useItems, useExpand, useSelect, useSearch, showCheckbox, iconWidth, icons, isSelectMulti, noSearch, enableDrag, syncSearchSelect, actionRef, HeaderRightAddon, RightStickyRenderer, resources: extResources, searchPredicate, isDisabled, ...abaseProps }: IATreeProps<T>) => React.ReactNode;
|
|
@@ -2,36 +2,45 @@ import React from 'react';
|
|
|
2
2
|
export interface IAWrapProps {
|
|
3
3
|
/**
|
|
4
4
|
* wrapProps? : React.HTMLAttributes<HTMLDivElement>
|
|
5
|
-
*
|
|
5
|
+
*
|
|
6
|
+
* Description : wrapProps of AWrap
|
|
6
7
|
*/
|
|
7
8
|
wrapProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
8
9
|
/**
|
|
9
10
|
* helperText? : React.ReactNode | React.ReactNode[]
|
|
10
|
-
*
|
|
11
|
+
*
|
|
12
|
+
* Description : helperText of AWrap
|
|
11
13
|
*/
|
|
12
14
|
helperText?: React.ReactNode | React.ReactNode[];
|
|
13
15
|
/**
|
|
14
16
|
* wrapType? : 'Default' | 'Error' = 'Default'
|
|
15
|
-
*
|
|
17
|
+
*
|
|
18
|
+
* Description : wrapType of AWrap
|
|
16
19
|
*/
|
|
17
20
|
wrapType?: 'Default' | 'Error';
|
|
18
21
|
/**
|
|
19
22
|
* label? : React.ReactNode
|
|
20
|
-
*
|
|
23
|
+
*
|
|
24
|
+
* Description : label of AWrap
|
|
21
25
|
*/
|
|
22
26
|
label?: React.ReactNode;
|
|
23
27
|
/**
|
|
24
28
|
* children? : React.ReactNode
|
|
25
|
-
*
|
|
29
|
+
*
|
|
30
|
+
* Description : children of AWrap
|
|
26
31
|
*/
|
|
27
32
|
children?: React.ReactNode;
|
|
28
33
|
}
|
|
29
34
|
/**
|
|
30
35
|
* AComponent : AWrap
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
+
*
|
|
37
|
+
* Description : AWrap is a wrap component that wraps the children with a label and helper text.
|
|
38
|
+
*
|
|
39
|
+
* Basic Usage :
|
|
40
|
+
*
|
|
41
|
+
* if (case 1)
|
|
42
|
+
* <AWrap label="Label" helperText="Helper Text">
|
|
43
|
+
* <AInput/>
|
|
44
|
+
* </AWrap>
|
|
36
45
|
*/
|
|
37
46
|
export declare const AWrap: ({ wrapProps, helperText, wrapType, label, children }: IAWrapProps) => React.ReactNode;
|