ados-rcm 1.0.7 → 1.0.9
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 +51 -16
- package/dist/AModule/AComponents/AButton/AButton.d.ts +15 -1
- package/dist/AModule/AComponents/AButton/AIconButton.d.ts +21 -7
- package/dist/AModule/AComponents/ACheckBox/ACheckBox.d.ts +18 -4
- package/dist/AModule/AComponents/AClock/AClock.d.ts +64 -0
- package/dist/AModule/AComponents/ADatePicker/ADatePicker.d.ts +92 -0
- package/dist/AModule/AComponents/ADatePicker/ADateRangePicker.d.ts +36 -13
- package/dist/AModule/AComponents/ADialog/ADialog.d.ts +133 -9
- package/dist/AModule/AComponents/AFileBox/AFileBox.d.ts +30 -0
- package/dist/AModule/AComponents/AFloatMenu/AFloatMenu.d.ts +107 -5
- package/dist/AModule/AComponents/AFrames/AFrames.d.ts +35 -4
- package/dist/AModule/AComponents/AGrow/AGrow.d.ts +10 -0
- package/dist/AModule/AComponents/AIcon/AIcon.d.ts +11 -7
- package/dist/AModule/AComponents/AInput/AInput.d.ts +95 -2
- package/dist/AModule/AComponents/AListView/AListView.d.ts +60 -7
- package/dist/AModule/AComponents/ASelect/ASelect.d.ts +118 -21
- package/dist/AModule/AComponents/ASpace/ASpace.d.ts +22 -0
- package/dist/AModule/AComponents/AStepper/AStepper.d.ts +64 -5
- package/dist/AModule/AComponents/ASwitch/ASwitch.d.ts +17 -0
- package/dist/AModule/AComponents/ATab/ATab.d.ts +62 -0
- package/dist/AModule/AComponents/ATable/ATable.d.ts +545 -18
- package/dist/AModule/AComponents/ATable/ATableBody.d.ts +2 -2
- package/dist/AModule/AComponents/AText/AText.d.ts +24 -0
- package/dist/AModule/AComponents/ATextArea/ATextArea.d.ts +77 -1
- package/dist/AModule/AComponents/ATooltip/ATooltip.d.ts +29 -2
- package/dist/AModule/AComponents/ATree/ATree.d.ts +121 -3
- package/dist/AModule/AComponents/ATypes/ATypes.d.ts +10 -4
- package/dist/AModule/AComponents/AWrap/AWrap.d.ts +28 -2
- package/dist/AModule/AUtils/cbF.d.ts +3 -3
- package/dist/index.cjs.js +15 -41
- package/dist/index.es.js +4273 -7885
- package/package.json +1 -1
|
@@ -1,14 +1,73 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TUseValues } from '../../AHooks/useValues';
|
|
3
|
-
interface
|
|
3
|
+
interface IStepRendererProps<T> {
|
|
4
|
+
/**
|
|
5
|
+
* step : T
|
|
6
|
+
* Description : step of AStepper
|
|
7
|
+
*/
|
|
4
8
|
step: T;
|
|
9
|
+
/**
|
|
10
|
+
* stepIdx : number
|
|
11
|
+
* Description : stepIdx of AStepper
|
|
12
|
+
*/
|
|
5
13
|
stepIdx: number;
|
|
6
14
|
}
|
|
7
15
|
export interface IAStepperProps<T> {
|
|
8
|
-
|
|
16
|
+
/**
|
|
17
|
+
* useSelect? : TUseValues<T>
|
|
18
|
+
* 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
|
+
*/
|
|
24
|
+
useSelect?: TUseValues<T>;
|
|
25
|
+
/**
|
|
26
|
+
* steps : T[]
|
|
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
|
+
*/
|
|
9
32
|
steps: T[];
|
|
10
|
-
|
|
11
|
-
|
|
33
|
+
/**
|
|
34
|
+
* StepRenderer? : (props: IStepRendererProps<T>) => React.ReactNode = DefaultRenderer
|
|
35
|
+
* 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
|
+
*/
|
|
41
|
+
StepRenderer?: (props: IStepRendererProps<T>) => React.ReactNode;
|
|
42
|
+
/**
|
|
43
|
+
* ContentRenderer? : (props: IStepRendererProps<T>) => React.ReactNode = DefaultRenderer
|
|
44
|
+
* 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
|
+
*/
|
|
50
|
+
ContentRenderer?: (props: IStepRendererProps<T>) => React.ReactNode;
|
|
12
51
|
}
|
|
13
|
-
|
|
52
|
+
/**
|
|
53
|
+
* AComponent : AStepper
|
|
54
|
+
* Description : AStepper is a stepper component that can select a step. all steps are rendered even if they are not selected.
|
|
55
|
+
* Basic Usage :
|
|
56
|
+
* (1) const steps = ['Step1', 'Step2', 'Step3'];
|
|
57
|
+
* return <AStepper steps={steps}/>
|
|
58
|
+
*
|
|
59
|
+
* (2) const steps = ['Step1', 'Step2', 'Step3'];
|
|
60
|
+
* const StepRenderer = ({step, stepIdx}) => 'This is step' + stepIdx;
|
|
61
|
+
* return <AStepper steps={steps} StepRenderer={StepRenderer}/>
|
|
62
|
+
*
|
|
63
|
+
* (3) const steps = ['Step1', 'Step2', 'Step3'];
|
|
64
|
+
* const ContentRenderer = ({step, stepIdx}) => 'This is content' + stepIdx;
|
|
65
|
+
* return <AStepper steps={steps} ContentRenderer={ContentRenderer}/>
|
|
66
|
+
*
|
|
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
|
+
*/
|
|
72
|
+
export declare const AStepper: <T>({ useSelect, steps, StepRenderer, ContentRenderer, }: IAStepperProps<T>) => import("react/jsx-runtime").JSX.Element | null;
|
|
14
73
|
export {};
|
|
@@ -2,6 +2,23 @@ import { TUseValues } from '../../AHooks/useValues';
|
|
|
2
2
|
import { IABaseProps } from '../ABase/ABase';
|
|
3
3
|
import { IAWrapProps } from '../AWrap/AWrap';
|
|
4
4
|
export interface ASwitchProps extends IAWrapProps, IABaseProps {
|
|
5
|
+
/**
|
|
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}/>
|
|
12
|
+
*/
|
|
5
13
|
useCheck?: TUseValues<any>;
|
|
6
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* AComponent : ASwitch
|
|
17
|
+
* Description : ASwitch is a switch component that can be toggled.
|
|
18
|
+
* Basic Usage :
|
|
19
|
+
* (1) <ASwitch/>
|
|
20
|
+
*
|
|
21
|
+
* (2) const [check, setCheck] = useState<boolean>(false);
|
|
22
|
+
* <ASwitch useCheck={[check, setCheck]}/>
|
|
23
|
+
*/
|
|
7
24
|
export declare const ASwitch: ({ wrapProps, helperText, label, useCheck, ...abaseProps }: ASwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +1,76 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TUseValues } from '../../AHooks/useValues';
|
|
3
3
|
export interface IATabOptionRendererProps<T> {
|
|
4
|
+
/**
|
|
5
|
+
* option : T
|
|
6
|
+
* Description : option of ATab
|
|
7
|
+
*/
|
|
4
8
|
option: T;
|
|
5
9
|
}
|
|
6
10
|
export interface IATabProps<T> {
|
|
11
|
+
/**
|
|
12
|
+
* options : T[]
|
|
13
|
+
* Description : options of ATab
|
|
14
|
+
* Basic Usage :
|
|
15
|
+
* (1) const options = ['Option1', 'Option2', 'Option3'];
|
|
16
|
+
* <ATab options={options}/>
|
|
17
|
+
*/
|
|
7
18
|
options: T[];
|
|
19
|
+
/**
|
|
20
|
+
* type? : 'Primary' | 'Secondary' = 'Primary'
|
|
21
|
+
* Description : type of ATab
|
|
22
|
+
* Basic Usage :
|
|
23
|
+
* (1) <ATab type="Secondary"/>
|
|
24
|
+
*/
|
|
8
25
|
type?: 'Primary' | 'Secondary';
|
|
26
|
+
/**
|
|
27
|
+
* useSelect? : TUseValues<T>
|
|
28
|
+
* 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
|
+
*/
|
|
9
33
|
useSelect?: TUseValues<T>;
|
|
34
|
+
/**
|
|
35
|
+
* tabProps? : React.HTMLProps<HTMLDivElement>
|
|
36
|
+
* Description : tabProps of ATab
|
|
37
|
+
* Basic Usage :
|
|
38
|
+
* (1) <ATab tabProps={{className: 'test'}}/>
|
|
39
|
+
*/
|
|
10
40
|
tabProps?: React.HTMLProps<HTMLDivElement>;
|
|
41
|
+
/**
|
|
42
|
+
* optionWidth? : string | number
|
|
43
|
+
* Description : optionWidth of ATab. if not set, tabs will have 1/n width.
|
|
44
|
+
* Basic Usage :
|
|
45
|
+
* (1) <ATab optionWidth="100px"/>
|
|
46
|
+
*/
|
|
11
47
|
optionWidth?: string | number;
|
|
48
|
+
/**
|
|
49
|
+
* OptionRenderer? : (props: IATabOptionRendererProps<T>) => React.ReactNode = DefaultItemRenderer
|
|
50
|
+
* 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
|
+
*/
|
|
12
56
|
OptionRenderer?: (props: IATabOptionRendererProps<T>) => React.ReactNode;
|
|
13
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* AComponent : ATab
|
|
60
|
+
* Description : ATab is a tab component that can select a tab.
|
|
61
|
+
* Basic Usage :
|
|
62
|
+
* (1) const options = ['Option1', 'Option2', 'Option3'];
|
|
63
|
+
* return <ATab options={options}/>
|
|
64
|
+
*
|
|
65
|
+
* (2) const options = ['Option1', 'Option2', 'Option3'];
|
|
66
|
+
* const OptionRenderer = ({option}) => 'This is option' + option;
|
|
67
|
+
* return <ATab options={options} OptionRenderer={OptionRenderer}/>
|
|
68
|
+
*
|
|
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]}/>
|
|
72
|
+
*
|
|
73
|
+
* (4) const options = ['Option1', 'Option2', 'Option3'];
|
|
74
|
+
* return <ATab options={options} type="Secondary"/>
|
|
75
|
+
*/
|
|
14
76
|
export declare const ATab: <T>({ options, useSelect, type, tabProps, optionWidth, OptionRenderer, }: IATabProps<T>) => import("react/jsx-runtime").JSX.Element | null;
|