ados-rcm 1.0.9 → 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.
Files changed (29) hide show
  1. package/dist/AModule/AComponents/ABase/ABase.d.ts +26 -19
  2. package/dist/AModule/AComponents/AButton/AButton.d.ts +18 -4
  3. package/dist/AModule/AComponents/AButton/AIconButton.d.ts +11 -5
  4. package/dist/AModule/AComponents/ACheckBox/ACheckBox.d.ts +15 -8
  5. package/dist/AModule/AComponents/AClock/AClock.d.ts +22 -28
  6. package/dist/AModule/AComponents/ADatePicker/ADatePicker.d.ts +25 -40
  7. package/dist/AModule/AComponents/ADatePicker/ADateRangePicker.d.ts +15 -17
  8. package/dist/AModule/AComponents/ADialog/ADialog.d.ts +35 -47
  9. package/dist/AModule/AComponents/AFileBox/AFileBox.d.ts +11 -9
  10. package/dist/AModule/AComponents/AFloatMenu/AFloatMenu.d.ts +30 -46
  11. package/dist/AModule/AComponents/AFrames/AFrames.d.ts +26 -17
  12. package/dist/AModule/AComponents/AGrow/AGrow.d.ts +9 -5
  13. package/dist/AModule/AComponents/AIcon/AIcon.d.ts +6 -3
  14. package/dist/AModule/AComponents/AInput/AInput.d.ts +21 -32
  15. package/dist/AModule/AComponents/AListView/AListView.d.ts +28 -17
  16. package/dist/AModule/AComponents/ASelect/ASelect.d.ts +39 -39
  17. package/dist/AModule/AComponents/ASpace/ASpace.d.ts +6 -8
  18. package/dist/AModule/AComponents/AStepper/AStepper.d.ts +26 -27
  19. package/dist/AModule/AComponents/ASwitch/ASwitch.d.ts +11 -8
  20. package/dist/AModule/AComponents/ATab/ATab.d.ts +25 -26
  21. package/dist/AModule/AComponents/ATable/ATable.d.ts +147 -98
  22. package/dist/AModule/AComponents/AText/AText.d.ts +19 -4
  23. package/dist/AModule/AComponents/ATextArea/ATextArea.d.ts +19 -24
  24. package/dist/AModule/AComponents/ATooltip/ATooltip.d.ts +16 -5
  25. package/dist/AModule/AComponents/ATree/ATree.d.ts +44 -11
  26. package/dist/AModule/AComponents/AWrap/AWrap.d.ts +12 -3
  27. package/dist/index.cjs.js +3 -3
  28. package/dist/index.es.js +152 -152
  29. package/package.json +1 -1
@@ -5,16 +5,19 @@ import { IAWrapProps } from '../AWrap/AWrap';
5
5
  export interface IASelectSelectedRendererProps<TItem, TGivenSelected, TSelected = TGivenSelected extends Array<TItem> ? TItem[] : null | TItem> {
6
6
  /**
7
7
  * OptionRenderer : (props: IASelectOptionRendererProps<T>) => React.ReactNode
8
+ *
8
9
  * Description : OptionRenderer of ASelect
9
10
  */
10
11
  OptionRenderer: (props: IASelectOptionRendererProps<TItem>) => React.ReactNode;
11
12
  /**
12
13
  * selected : T[]
14
+ *
13
15
  * Description : selected items of ASelect
14
16
  */
15
17
  selected: TSelected;
16
18
  /**
17
19
  * placeholder : React.ReactNode
20
+ *
18
21
  * Description : placeholder of ASelect
19
22
  */
20
23
  placeholder?: React.ReactNode;
@@ -22,6 +25,7 @@ export interface IASelectSelectedRendererProps<TItem, TGivenSelected, TSelected
22
25
  export interface IASelectOptionRendererProps<TItem> {
23
26
  /**
24
27
  * option : T
28
+ *
25
29
  * Description : option of ASelect
26
30
  */
27
31
  option: TItem;
@@ -29,106 +33,102 @@ export interface IASelectOptionRendererProps<TItem> {
29
33
  export interface IASelectProps<TItem, TGivenSelected, TSelected = TGivenSelected extends Array<TItem> ? TItem[] : null | TItem> extends IABaseProps, IAWrapProps {
30
34
  /**
31
35
  * options : T[]
36
+ *
32
37
  * Description : options of ASelect
33
- * Basic Usage :
34
- * (1) const options = ['Option1', 'Option2', 'Option3'];
35
- * <ASelect options={options}/>
36
38
  */
37
39
  options: TItem[];
38
40
  /**
39
41
  * useSelect? : TUseValues<T[]>
42
+ *
40
43
  * Description : useSelect of ASelect
41
- * Basic Usage :
42
- * (1) const [selected, setSelected] = useState<T[]>([]);
43
- * <ASelect options={options} useSelect={[selected, setSelected]}/>
44
44
  */
45
45
  useSelect?: TUseValues<TSelected>;
46
46
  /**
47
47
  * type? : 'Primary' | 'Secondary' = 'Primary'
48
+ *
48
49
  * Description : type of ASelect
49
- * Basic Usage :
50
- * (1) <ASelect type="Secondary"/>
51
50
  */
52
51
  type?: 'Primary' | 'Secondary';
53
52
  /**
54
53
  * placeholder? : React.ReactNode
54
+ *
55
55
  * Description : placeholder of ASelect. it is shown when no option is selected
56
- * Basic Usage :
57
- * (1) <ASelect placeholder="Select"/>
58
56
  */
59
57
  placeholder?: React.ReactNode;
60
58
  /**
61
59
  * isSelectMulti? : boolean = false
60
+ *
62
61
  * Description : isSelectMulti of ASelect. if it is true, multiple options can be selected
63
- * Basic Usage :
64
- * (1) <ASelect isSelectMulti/>
65
62
  */
66
63
  isSelectMulti?: boolean;
67
64
  /**
68
65
  * onClose? : () => void
66
+ *
69
67
  * Description : onClose of ASelect
70
- * Basic Usage :
71
- * (1) <ASelect onClose={() => console.log('closed')}/>
72
68
  */
73
69
  onClose?: () => void;
74
70
  /**
75
71
  * SelectedRenderer? : (props: IASelectSelectedRendererProps<T>) => React.ReactNode = DefaultSelectedRenderer
72
+ *
76
73
  * Description : Renderer of Selected Options of ASelect
77
- * Basic Usage :
78
- * (1) <ASelect SelectedRenderer={({selected, placeholder}) => selected ? selected : placeholder}/>
79
74
  */
80
75
  SelectedRenderer?: (props: IASelectSelectedRendererProps<TItem, TGivenSelected, TSelected>) => React.ReactNode;
81
76
  /**
82
77
  * OptionRenderer? : (props: IASelectOptionRendererProps<T>) => React.ReactNode = DefaultOptionRenderer
78
+ *
83
79
  * Description : Renderer of Options of ASelect
84
- * Basic Usage :
85
- * (1) <ASelect OptionRenderer={({option}) => <div>{option}</div>}/>
86
80
  */
87
81
  OptionRenderer?: (props: IASelectOptionRendererProps<TItem>) => React.ReactNode;
88
82
  /**
89
83
  * minShowRows? : number = 2
84
+ *
90
85
  * Description : minShowRows of ASelect
91
- * Basic Usage :
92
- * (1) <ASelect minShowRows={2}/>
93
86
  */
94
87
  minShowRows?: number;
95
88
  /**
96
89
  * maxShowRows? : number = 6
90
+ *
97
91
  * Description : maxShowRows of ASelect. scrollbar will appear when overflow
98
- * Basic Usage :
99
- * (1) <ASelect maxShowRows={6}/>
100
92
  */
101
93
  maxShowRows?: number;
102
94
  /**
103
95
  * arrowProps? : React.HTMLProps<HTMLDivElement>
96
+ *
104
97
  * Description : divProps for Arrow of ASelect
105
- * Basic Usage :
106
- * (1) <ASelect arrowProps={{style: {color: 'red'}}}/>
107
98
  */
108
99
  arrowProps?: React.HTMLProps<HTMLDivElement>;
109
100
  }
110
101
  /**
111
102
  * AComponent : ASelect
103
+ *
112
104
  * Description : ASelect is a select component. give options and useSelect to select an option.
105
+ *
113
106
  * Basic Usage :
114
- * (1) const options = ['Option1', 'Option2', 'Option3'];
115
- * const [selected, setSelected] = useState<string | null>(null);
116
- * return <ASelect options={options} useSelect={[selected, setSelected]}/>
117
107
  *
118
- * (2) const options = ['Option1', 'Option2', 'Option3'];
119
- * const [selected, setSelected] = useState<string[]>([]);
120
- * return <ASelect options={options} useSelect={[selected, setSelected]} isSelectMulti/>
108
+ * const strOptions = ['Option1', 'Option2', 'Option3'];
109
+ * const options = [{idx : 1, name : 'option1'}, {idx : 2, name : 'option2'}, {idx : 3, name : 'option3'}];
110
+ * const [strSelected, setStrSelected] = useState<string | null>(null);
111
+ * const [selected, setSelected] = useState<{idx : number, name : string}[]>([]);
112
+ * const OptionRenderer = ({option}) => <div>{option.name}</div>;
113
+ * const SelectedRenderer = ({selected, placeholder}) => selected.length > 0 ? string.join(selected.map(e => e.name), ', ') : placeholder;
114
+ *
115
+ * if (case 1)
116
+ * <ASelect options={strOptions}
117
+ * useSelect={[strSelected, setStrSelected]}/>
118
+ *
119
+ * if (case 2)
120
+ * <ASelect options={options}
121
+ * useSelect={[selected, setSelected]}
122
+ * OptionRenderer={OptionRenderer}
123
+ * isSelectMulti
121
124
  *
122
- * (3) const options = [{idx : 1, name : 'option1'}, {idx : 2, name : 'option2'}, {idx : 3, name : 'option3'}];
123
- * const [selected, setSelected] = useState<{idx : number, name : string}[]>([]);
124
- * const OptionRenderer = ({option}) => <div>{option.name}</div>;
125
- * return <ASelect options={options} useSelect={[selected, setSelected]} OptionRenderer={OptionRenderer}/>
125
+ * if (case 3)
126
+ * <ASelect options={options}
127
+ * useSelect={[selected, setSelected]}
128
+ * OptionRenderer={OptionRenderer}
129
+ * SelectedRenderer={SelectedRenderer}
130
+ * isSelectMulti/>
126
131
  *
127
- * (4) const options = [{idx : 1, name : 'option1'}, {idx : 2, name : 'option2'}, {idx : 3, name : 'option3'}];
128
- * const [selected, setSelected] = useState<{idx : number, name : string}[]>([]);
129
- * const OptionRenderer = ({option}) => <div>{option.name}</div>;
130
- * const SelectedRenderer = ({selected, placeholder}) => selected.length > 0 ? string.join(selected.map(e => e.name), ', ') : placeholder;
131
- * return <ASelect options={options} useSelect={[selected, setSelected]} OptionRenderer={OptionRenderer} SelectedRenderer={SelectedRenderer}/>
132
132
  */
133
133
  export declare const ASelect: <TItem, TGivenSelected, TSelected = TGivenSelected extends TItem[] ? TItem[] : TItem | null>({ options, useSelect, type, placeholder, isSelectMulti, onClose, SelectedRenderer, OptionRenderer, minShowRows, maxShowRows, arrowProps, wrapProps, helperText, label, ...abaseProps }: IASelectProps<TItem, TGivenSelected, TSelected>) => React.ReactNode;
134
134
  export declare const DefaultOptionRenderer: <T>({ option }: IASelectOptionRendererProps<T>) => React.ReactNode;
@@ -2,28 +2,26 @@ import { HTMLAttributes } from 'react';
2
2
  interface IASpaceProps extends HTMLAttributes<HTMLElement> {
3
3
  /**
4
4
  * h? : number | string
5
+ *
5
6
  * Description : height of ASpace
6
- * Basic Usage :
7
- * (1) <ASpace h={10}/>
8
7
  */
9
8
  h?: number | string;
10
9
  /**
11
10
  * w? : number | string
11
+ *
12
12
  * Description : width of ASpace
13
- * Basic Usage :
14
- * (1) <ASpace w={10}/>
15
13
  */
16
14
  w?: number | string;
17
15
  }
18
16
  /**
19
17
  * AComponent : ASpace
18
+ *
20
19
  * Description : ASpace is a component to make spaces.
21
- * Basic Usage :
22
- * (1) <ASpace h={10}/>
23
20
  *
24
- * (2) <ASpace w={10}/>
21
+ * Basic Usage :
25
22
  *
26
- * (3) <ASpace h={10} w={10}/>
23
+ * if (case 1)
24
+ * <ASpace h={10} w={10}/>
27
25
  */
28
26
  export declare const ASpace: ({ h, w, ...divProps }: IASpaceProps) => React.ReactNode;
29
27
  export {};
@@ -3,11 +3,13 @@ import { TUseValues } from '../../AHooks/useValues';
3
3
  interface IStepRendererProps<T> {
4
4
  /**
5
5
  * step : T
6
+ *
6
7
  * Description : step of AStepper
7
8
  */
8
9
  step: T;
9
10
  /**
10
11
  * stepIdx : number
12
+ *
11
13
  * Description : stepIdx of AStepper
12
14
  */
13
15
  stepIdx: number;
@@ -15,59 +17,56 @@ interface IStepRendererProps<T> {
15
17
  export interface IAStepperProps<T> {
16
18
  /**
17
19
  * useSelect? : TUseValues<T>
20
+ *
18
21
  * Description : useStep of AStepper
19
- * Basic Usage :
20
- * (1) const steps = ['Step1', 'Step2', 'Step3'];
21
- * const [step, setStep] = useState<typeof steps[0]>(steps[0]);
22
- * <AStepper useSelect={[step, setStep]} steps={steps}/>
23
22
  */
24
23
  useSelect?: TUseValues<T>;
25
24
  /**
26
25
  * steps : T[]
26
+ *
27
27
  * Description : steps of AStepper. must have at least one step.
28
- * Basic Usage :
29
- * (1) const steps = ['Step1', 'Step2', 'Step3'];
30
- * <AStepper steps={steps}/>
31
28
  */
32
29
  steps: T[];
33
30
  /**
34
31
  * StepRenderer? : (props: IStepRendererProps<T>) => React.ReactNode = DefaultRenderer
32
+ *
35
33
  * Description : StepRenderer of AStepper
36
- * Basic Usage :
37
- * (1) const steps = ['Step1', 'Step2', 'Step3'];
38
- * const StepRenderer = ({step, stepIdx}) => 'This is step' + stepIdx;
39
- * <AStepper steps={steps} StepRenderer={StepRenderer}/>
40
34
  */
41
35
  StepRenderer?: (props: IStepRendererProps<T>) => React.ReactNode;
42
36
  /**
43
37
  * ContentRenderer? : (props: IStepRendererProps<T>) => React.ReactNode = DefaultRenderer
38
+ *
44
39
  * Description : ContentRenderer of AStepper
45
- * Basic Usage :
46
- * (1) const steps = ['Step1', 'Step2', 'Step3'];
47
- * const ContentRenderer = ({step, stepIdx}) => 'This is content' + stepIdx;
48
- * <AStepper steps={steps} ContentRenderer={ContentRenderer}/>
49
40
  */
50
41
  ContentRenderer?: (props: IStepRendererProps<T>) => React.ReactNode;
51
42
  }
52
43
  /**
53
44
  * AComponent : AStepper
45
+ *
54
46
  * Description : AStepper is a stepper component that can select a step. all steps are rendered even if they are not selected.
47
+ *
55
48
  * Basic Usage :
56
- * (1) const steps = ['Step1', 'Step2', 'Step3'];
57
- * return <AStepper steps={steps}/>
58
49
  *
59
- * (2) const steps = ['Step1', 'Step2', 'Step3'];
60
- * const StepRenderer = ({step, stepIdx}) => 'This is step' + stepIdx;
61
- * return <AStepper steps={steps} StepRenderer={StepRenderer}/>
50
+ * const steps = ['Step1', 'Step2', 'Step3'];
51
+ * const StepRenderer = ({step, stepIdx}) => 'This is step' + stepIdx;
52
+ * const ContentRenderer = ({step, stepIdx}) => 'This is content' + stepIdx;
53
+ *
54
+ * if (case 1)
55
+ * <AStepper steps={steps}/>
56
+ *
57
+ * if (case 2)
58
+ * <AStepper steps={steps}
59
+ * StepRenderer={StepRenderer}/>
60
+ *
61
+ * if (case 3)
62
+ * <AStepper steps={steps}
63
+ * ContentRenderer={ContentRenderer}/>
62
64
  *
63
- * (3) const steps = ['Step1', 'Step2', 'Step3'];
64
- * const ContentRenderer = ({step, stepIdx}) => 'This is content' + stepIdx;
65
- * return <AStepper steps={steps} ContentRenderer={ContentRenderer}/>
65
+ * if (case 4)
66
+ * <AStepper steps={steps}
67
+ * StepRenderer={StepRenderer}
68
+ * ContentRenderer={ContentRenderer}/>
66
69
  *
67
- * (4) const steps = ['Step1', 'Step2', 'Step3'];
68
- * const StepRenderer = ({step, stepIdx}) => 'This is step' + stepIdx;
69
- * const ContentRenderer = ({step, stepIdx}) => 'This is content' + stepIdx;
70
- * return <AStepper steps={steps} StepRenderer={StepRenderer} ContentRenderer={ContentRenderer}/>
71
70
  */
72
71
  export declare const AStepper: <T>({ useSelect, steps, StepRenderer, ContentRenderer, }: IAStepperProps<T>) => import("react/jsx-runtime").JSX.Element | null;
73
72
  export {};
@@ -4,21 +4,24 @@ import { IAWrapProps } from '../AWrap/AWrap';
4
4
  export interface ASwitchProps extends IAWrapProps, IABaseProps {
5
5
  /**
6
6
  * useCheck? : TUseValues<any>
7
- * Description : ContentRenderer of AStepper
8
- * Basic Usage :
9
- * (1) const steps = ['Step1', 'Step2', 'Step3'];
10
- * const ContentRenderer = ({step, stepIdx}) => 'This is content' + stepIdx;
11
- * <AStepper steps={steps} ContentRenderer={ContentRenderer}/>
7
+ *
8
+ * Description : useCheck of ASwitch
12
9
  */
13
10
  useCheck?: TUseValues<any>;
14
11
  }
15
12
  /**
16
13
  * AComponent : ASwitch
14
+ *
17
15
  * Description : ASwitch is a switch component that can be toggled.
16
+ *
18
17
  * Basic Usage :
19
- * (1) <ASwitch/>
20
18
  *
21
- * (2) const [check, setCheck] = useState<boolean>(false);
22
- * <ASwitch useCheck={[check, setCheck]}/>
19
+ * const [check, setCheck] = useState<boolean>(false);
20
+ *
21
+ * if (case 1)
22
+ * <ASwitch/>
23
+ *
24
+ * if (case 2)
25
+ * <ASwitch useCheck={[check, setCheck]}/>
23
26
  */
24
27
  export declare const ASwitch: ({ wrapProps, helperText, label, useCheck, ...abaseProps }: ASwitchProps) => import("react/jsx-runtime").JSX.Element;
@@ -3,6 +3,7 @@ import { TUseValues } from '../../AHooks/useValues';
3
3
  export interface IATabOptionRendererProps<T> {
4
4
  /**
5
5
  * option : T
6
+ *
6
7
  * Description : option of ATab
7
8
  */
8
9
  option: T;
@@ -10,67 +11,65 @@ export interface IATabOptionRendererProps<T> {
10
11
  export interface IATabProps<T> {
11
12
  /**
12
13
  * options : T[]
14
+ *
13
15
  * Description : options of ATab
14
- * Basic Usage :
15
- * (1) const options = ['Option1', 'Option2', 'Option3'];
16
- * <ATab options={options}/>
17
16
  */
18
17
  options: T[];
19
18
  /**
20
19
  * type? : 'Primary' | 'Secondary' = 'Primary'
20
+ *
21
21
  * Description : type of ATab
22
- * Basic Usage :
23
- * (1) <ATab type="Secondary"/>
24
22
  */
25
23
  type?: 'Primary' | 'Secondary';
26
24
  /**
27
25
  * useSelect? : TUseValues<T>
26
+ *
28
27
  * Description : useSelect of ATab
29
- * Basic Usage :
30
- * (1) const [selected, setSelected] = useState<typeof options[0]>(options[0]);
31
- * <ATab options={options} useSelect={[selected, setSelected]}/>
32
28
  */
33
29
  useSelect?: TUseValues<T>;
34
30
  /**
35
31
  * tabProps? : React.HTMLProps<HTMLDivElement>
32
+ *
36
33
  * Description : tabProps of ATab
37
- * Basic Usage :
38
- * (1) <ATab tabProps={{className: 'test'}}/>
39
34
  */
40
35
  tabProps?: React.HTMLProps<HTMLDivElement>;
41
36
  /**
42
37
  * optionWidth? : string | number
38
+ *
43
39
  * Description : optionWidth of ATab. if not set, tabs will have 1/n width.
44
- * Basic Usage :
45
- * (1) <ATab optionWidth="100px"/>
46
40
  */
47
41
  optionWidth?: string | number;
48
42
  /**
49
43
  * OptionRenderer? : (props: IATabOptionRendererProps<T>) => React.ReactNode = DefaultItemRenderer
44
+ *
50
45
  * Description : OptionRenderer of ATab
51
- * Basic Usage :
52
- * (1) const options = ['Option1', 'Option2', 'Option3'];
53
- * const OptionRenderer = ({option}) => 'This is option' + option;
54
- * <ATab options={options} OptionRenderer={OptionRenderer}/>
55
46
  */
56
47
  OptionRenderer?: (props: IATabOptionRendererProps<T>) => React.ReactNode;
57
48
  }
58
49
  /**
59
50
  * AComponent : ATab
51
+ *
60
52
  * Description : ATab is a tab component that can select a tab.
53
+ *
61
54
  * Basic Usage :
62
- * (1) const options = ['Option1', 'Option2', 'Option3'];
63
- * return <ATab options={options}/>
64
55
  *
65
- * (2) const options = ['Option1', 'Option2', 'Option3'];
66
- * const OptionRenderer = ({option}) => 'This is option' + option;
67
- * return <ATab options={options} OptionRenderer={OptionRenderer}/>
56
+ * const options = ['Option1', 'Option2', 'Option3'];
57
+ * const [selected, setSelected] = useState<typeof options[0]>(options[0]);
58
+ * const OptionRenderer = ({option}) => 'This is option' + option;
59
+ *
60
+ * if (case 1)
61
+ * <ATab options={options}/>
62
+ *
63
+ * if (case 2)
64
+ * <ATab options={options}
65
+ * OptionRenderer={OptionRenderer}/>
68
66
  *
69
- * (3) const options = ['Option1', 'Option2', 'Option3'];
70
- * const [selected, setSelected] = useState<typeof options[0]>(options[0]);
71
- * return <ATab options={options} useSelect={[selected, setSelected]}/>
67
+ * if (case 3)
68
+ * <ATab options={options}
69
+ * useSelect={[selected, setSelected]}/>
72
70
  *
73
- * (4) const options = ['Option1', 'Option2', 'Option3'];
74
- * return <ATab options={options} type="Secondary"/>
71
+ * if (case 4)
72
+ * <ATab options={options}
73
+ * type="Secondary"/>
75
74
  */
76
75
  export declare const ATab: <T>({ options, useSelect, type, tabProps, optionWidth, OptionRenderer, }: IATabProps<T>) => import("react/jsx-runtime").JSX.Element | null;