ados-rcm 1.0.5 → 1.0.6

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 (87) hide show
  1. package/README.md +5 -3
  2. package/dist/AModule/AComponents/ABase/ABase.d.ts +28 -0
  3. package/dist/AModule/AComponents/AButton/AButton.d.ts +7 -0
  4. package/dist/AModule/AComponents/AButton/AIconButton.d.ts +12 -0
  5. package/dist/AModule/AComponents/ACheckBox/ACheckBox.d.ts +13 -0
  6. package/dist/AModule/AComponents/AClock/AClock.d.ts +17 -0
  7. package/dist/AModule/AComponents/ADatePicker/ADatePicker.d.ts +21 -0
  8. package/dist/AModule/AComponents/ADatePicker/ADateRangePicker.d.ts +21 -0
  9. package/dist/AModule/AComponents/ADialog/ADialog.d.ts +27 -0
  10. package/dist/AModule/AComponents/AFileBox/AFileBox.d.ts +13 -0
  11. package/dist/AModule/AComponents/AFloatMenu/AFloatMenu.d.ts +29 -0
  12. package/dist/AModule/AComponents/AFrames/AFrames.d.ts +13 -0
  13. package/dist/AModule/AComponents/AGrow/AGrow.d.ts +1 -0
  14. package/dist/AModule/AComponents/AIcon/AIcon.d.ts +83 -0
  15. package/dist/AModule/AComponents/AInput/AInput.d.ts +22 -0
  16. package/dist/AModule/AComponents/AListView/AListView.d.ts +37 -0
  17. package/dist/AModule/AComponents/AResource/AResource.d.ts +31 -0
  18. package/dist/AModule/AComponents/ASelect/ASelect.d.ts +37 -0
  19. package/dist/AModule/AComponents/ASpace/ASpace.d.ts +7 -0
  20. package/dist/AModule/AComponents/AStepper/AStepper.d.ts +14 -0
  21. package/dist/AModule/AComponents/ASwitch/ASwitch.d.ts +7 -0
  22. package/dist/AModule/AComponents/ATab/ATab.d.ts +14 -0
  23. package/dist/AModule/AComponents/ATable/ATable.d.ts +155 -0
  24. package/dist/AModule/AComponents/ATable/ATableBody.d.ts +20 -0
  25. package/dist/AModule/AComponents/ATable/ATableFilter.d.ts +12 -0
  26. package/dist/AModule/AComponents/ATable/ATableFooter.d.ts +14 -0
  27. package/dist/AModule/AComponents/ATable/ATableHeader.d.ts +21 -0
  28. package/dist/AModule/AComponents/ATest.d.ts +9 -0
  29. package/dist/AModule/AComponents/AText/AText.d.ts +8 -0
  30. package/dist/AModule/AComponents/ATextArea/ATextArea.d.ts +21 -0
  31. package/dist/AModule/AComponents/ATheme/AStyles.d.ts +22 -0
  32. package/dist/AModule/AComponents/ATheme/ATheme.d.ts +8 -0
  33. package/dist/AModule/AComponents/ATooltip/ATooltip.d.ts +9 -0
  34. package/dist/AModule/AComponents/ATree/ATree.d.ts +54 -0
  35. package/dist/AModule/AComponents/ATree/ATreeItem.d.ts +37 -0
  36. package/dist/AModule/AComponents/ATree/ATreeSearch.d.ts +11 -0
  37. package/dist/AModule/AComponents/ATypes/ATypes.d.ts +33 -0
  38. package/dist/AModule/AComponents/AWrap/AWrap.d.ts +11 -0
  39. package/dist/AModule/AHooks/useValues.d.ts +12 -0
  40. package/dist/AModule/ANetwork/APIContext.d.ts +39 -0
  41. package/dist/AModule/AUtils/bound.d.ts +1 -0
  42. package/dist/AModule/AUtils/cbF.d.ts +16 -0
  43. package/dist/AModule/AUtils/classF.d.ts +10 -0
  44. package/dist/AModule/AUtils/dateF.d.ts +35 -0
  45. package/dist/AModule/AUtils/objF.d.ts +22 -0
  46. package/dist/AModule/AUtils/strF.d.ts +3 -0
  47. package/dist/AModule/AUtils/tableF.d.ts +17 -0
  48. package/dist/AModule/AUtils/treeF.d.ts +22 -0
  49. package/dist/index.cjs.js +32 -1073
  50. package/dist/index.d.ts +38 -27
  51. package/dist/index.es.js +9393 -74323
  52. package/package.json +73 -83
  53. package/dist/CComponents/CButton/CButton.d.ts +0 -20
  54. package/dist/CComponents/CChart/CChart.d.ts +0 -43
  55. package/dist/CComponents/CCheckBox/CCheckBox.d.ts +0 -14
  56. package/dist/CComponents/CContainer/CContainer.d.ts +0 -112
  57. package/dist/CComponents/CContainer/CContainerContext.d.ts +0 -47
  58. package/dist/CComponents/CDatePicker/CDatePicker.d.ts +0 -46
  59. package/dist/CComponents/CDialog/CDialog.d.ts +0 -33
  60. package/dist/CComponents/CEditor/CEditor.d.ts +0 -32
  61. package/dist/CComponents/CFileBox/CFileBox.d.ts +0 -14
  62. package/dist/CComponents/CFloatingMenu/CFloatingMenu.d.ts +0 -25
  63. package/dist/CComponents/CIcon/icons.d.ts +0 -67
  64. package/dist/CComponents/CIpRangePicker/CIpRangePicker.d.ts +0 -11
  65. package/dist/CComponents/CLabeledItem/CLabeledItem.d.ts +0 -10
  66. package/dist/CComponents/CList/CList.d.ts +0 -10
  67. package/dist/CComponents/CListView/CListView.d.ts +0 -19
  68. package/dist/CComponents/CMenu/CMenu.d.ts +0 -18
  69. package/dist/CComponents/CSelect/CMultiSelect.d.ts +0 -21
  70. package/dist/CComponents/CSelect/CSelect.d.ts +0 -22
  71. package/dist/CComponents/CStepper/CStepper.d.ts +0 -28
  72. package/dist/CComponents/CSwitch/CSwitch.d.ts +0 -15
  73. package/dist/CComponents/CTable/CTable.d.ts +0 -12
  74. package/dist/CComponents/CTable/CTableBody.d.ts +0 -34
  75. package/dist/CComponents/CTable/CTableFilter.d.ts +0 -46
  76. package/dist/CComponents/CTable/CTableFooter.d.ts +0 -2
  77. package/dist/CComponents/CTable/CTableHeader.d.ts +0 -4
  78. package/dist/CComponents/CTable/CTableWidthChanger.d.ts +0 -11
  79. package/dist/CComponents/CTable/ICTable.d.ts +0 -157
  80. package/dist/CComponents/CTable/exports.d.ts +0 -3
  81. package/dist/CComponents/CTabs/CTabs.d.ts +0 -37
  82. package/dist/CComponents/CText/CPlainText.d.ts +0 -8
  83. package/dist/CComponents/CText/CStyledText.d.ts +0 -13
  84. package/dist/CComponents/CTextField/CTextField.d.ts +0 -50
  85. package/dist/CComponents/CTimer/CTimer.d.ts +0 -9
  86. package/dist/CComponents/CTree/CTree.d.ts +0 -71
  87. package/dist/CComponents/CTree/CTreeSearchModule.d.ts +0 -11
package/README.md CHANGED
@@ -14,10 +14,12 @@ Already a pro? Just edit this README.md and make it your own. Want to make it ea
14
14
  - [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
15
15
 
16
16
  ```
17
- cd existing_repo
17
+ cd root
18
18
  git remote add origin http://192.168.1.37/ados/rcm.git
19
- git branch -M main
20
- git push -uf origin main
19
+ git fetch
20
+ git add .
21
+ git commit -m 'comment'
22
+ git push
21
23
  ```
22
24
 
23
25
  ## Integrate with your tools
@@ -0,0 +1,28 @@
1
+ /**
2
+ * ABase
3
+ * div that can be disabled, loading, and have tooltip
4
+ *
5
+ * Notice :
6
+ * 1. z-index of tooltip is 1000
7
+ * 2. z-index of dimming is 100, and UseDimming.UseDimming.Dimmer.z-index is 0
8
+ * 3.
9
+ *
10
+ * Todo :
11
+ * 1. Dimmer and Spinner are rendered when they are not visible.
12
+ *
13
+ * Used Color Variables
14
+ * --ABase_Dimming
15
+ */
16
+ /// <reference types="react" />
17
+ export interface IABaseProps extends React.HTMLAttributes<HTMLElement> {
18
+ className?: string;
19
+ style?: React.CSSProperties;
20
+ children?: React.ReactNode;
21
+ abaseRef?: React.RefObject<HTMLDivElement>;
22
+ isDisabled?: any;
23
+ isLoading?: any;
24
+ tooltip?: React.ReactNode;
25
+ tooltipDistance?: number;
26
+ tooltipDelay?: number;
27
+ }
28
+ export declare const ABase: ({ children, abaseRef, isDisabled, isLoading, tooltip, tooltipDistance, tooltipDelay, ...divProps }: IABaseProps) => React.ReactNode;
@@ -0,0 +1,7 @@
1
+ import { IABaseProps } from '../ABase/ABase';
2
+ import { IAWrapProps } from '../AWrap/AWrap';
3
+ export type TAButtonType = 'Primary' | 'Secondary' | 'Undefined';
4
+ export interface IAButtonProps extends IABaseProps, IAWrapProps {
5
+ type?: TAButtonType;
6
+ }
7
+ export declare const AButton: ({ wrapProps, helperText, label, type, onClick: propsOnClick, ...abaseProps }: IAButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { TIcons } from '../AIcon/AIcon';
3
+ interface IAIconButtonProps {
4
+ icon: TIcons;
5
+ size?: 'Small' | 'Medium' | 'Large';
6
+ onClick?: () => void;
7
+ isDisabled?: boolean;
8
+ isLoading?: boolean;
9
+ tooltip?: React.ReactNode;
10
+ }
11
+ export declare const AIconButton: ({ icon, size, onClick, isDisabled, isLoading, tooltip }: IAIconButtonProps) => import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,13 @@
1
+ import { TUseValues } from '../../AHooks/useValues';
2
+ import { IABaseProps } from '../ABase/ABase';
3
+ export interface IACheckBoxProps extends IABaseProps {
4
+ useCheck?: TUseValues<any>;
5
+ isIndeterminate?: boolean;
6
+ }
7
+ /**
8
+ * ACheckBox
9
+ * 체크박스 컴포넌트
10
+ * useValue를 통해 체크박스의 상태를 관리할 수 있다.
11
+ * Default : Indeterminate -> UnChecked -> -> Checked -> UnChecked
12
+ */
13
+ export declare const ACheckBox: ({ useCheck, isIndeterminate, ...abaseProps }: IACheckBoxProps) => React.ReactNode;
@@ -0,0 +1,17 @@
1
+ import { IAWrapProps } from '../AWrap/AWrap';
2
+ import React from 'react';
3
+ import { IABaseProps } from '../ABase/ABase';
4
+ import { TActionRef } from '../ATypes/ATypes';
5
+ export interface IAClockActions {
6
+ start: () => void;
7
+ stop: () => void;
8
+ reset: () => void;
9
+ setTicks: (ticks: number) => void;
10
+ }
11
+ export interface IAClockProps extends IAWrapProps, IABaseProps {
12
+ maxTicks?: number;
13
+ interval?: number;
14
+ onFinish?: () => void;
15
+ actionRef?: TActionRef<IAClockActions>;
16
+ }
17
+ export declare const AClock: ({ maxTicks, interval, onFinish, actionRef, wrapProps, helperText, label, ...abaseProps }: IAClockProps) => React.ReactNode;
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ import { TUseValues } from '../../AHooks/useValues';
3
+ import { EDir12, TActionRef } from '../ATypes/ATypes';
4
+ import { Resources } from '../AResource/AResource';
5
+ export interface IADatePickerActions {
6
+ open: () => void;
7
+ close: () => void;
8
+ toggle: () => void;
9
+ }
10
+ export interface IADatePickerProps {
11
+ className?: string;
12
+ useDate?: TUseValues<Date>;
13
+ position?: EDir12;
14
+ actionRef?: TActionRef<IADatePickerActions>;
15
+ minDate?: Date;
16
+ maxDate?: Date;
17
+ resources?: Partial<typeof Resources.ADatePicker>;
18
+ LeftAddon?: React.ReactNode;
19
+ RightAddon?: React.ReactNode;
20
+ }
21
+ export declare const ADatePicker: ({ className, useDate, actionRef, position, minDate: exMinDate, maxDate: exMaxDate, resources: extResources, LeftAddon, RightAddon, }: IADatePickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ import { TUseValues } from '../../AHooks/useValues';
3
+ import { EDir12, TActionRef } from '../ATypes/ATypes';
4
+ import { IADatePickerActions } from './ADatePicker';
5
+ import { Resources } from '../AResource/AResource';
6
+ export interface IDateRange {
7
+ sDate: Date;
8
+ eDate: Date;
9
+ }
10
+ export interface IADateRangePickerProps {
11
+ className?: string;
12
+ useDateRange?: TUseValues<IDateRange>;
13
+ position?: EDir12;
14
+ actionRef?: TActionRef<IADatePickerActions>;
15
+ minDate?: Date;
16
+ maxDate?: Date;
17
+ resources?: Partial<typeof Resources.ADatePicker>;
18
+ LeftAddon?: React.ReactNode;
19
+ RightAddon?: React.ReactNode;
20
+ }
21
+ export declare const ADateRangePicker: ({ className, useDateRange, actionRef, position, minDate: exMinDate, maxDate: exMaxDate, resources: extResources, LeftAddon, RightAddon, }: IADateRangePickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,27 @@
1
+ /// <reference types="react" />
2
+ import { Resources } from '../AResource/AResource';
3
+ import { TActionRef } from '../ATypes/ATypes';
4
+ export interface IADialogActions {
5
+ open: () => void;
6
+ close: () => void;
7
+ toggle: () => void;
8
+ ok: () => void;
9
+ cancel: () => void;
10
+ }
11
+ export type TADialogTypes = 'okCancel' | 'cancelOk' | 'ok' | 'cancel' | 'none';
12
+ export interface IADialogProps {
13
+ type?: TADialogTypes;
14
+ title?: React.ReactNode;
15
+ actionRef?: TActionRef<IADialogActions>;
16
+ children?: React.ReactNode;
17
+ onOk?: () => void;
18
+ onCancel?: () => void;
19
+ noDim?: boolean;
20
+ noCancelOnPaperClick?: boolean;
21
+ noCloseOnOk?: boolean;
22
+ noCloseOnCancel?: boolean;
23
+ noOkOnEnter?: boolean;
24
+ noCancelOnEsc?: boolean;
25
+ resources?: Partial<typeof Resources.ADialog>;
26
+ }
27
+ export declare const ADialog: ({ type, title, actionRef, children, onOk, onCancel, noDim, noCancelOnPaperClick, noCloseOnOk, noCloseOnCancel, noOkOnEnter, noCancelOnEsc, resources: extResources, }: IADialogProps) => import("react").ReactPortal | null;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { TUseValues } from '../../AHooks/useValues';
3
+ import { IABaseProps } from '../ABase/ABase';
4
+ import { Resources } from '../AResource/AResource';
5
+ export interface IFileRendererProps {
6
+ file: File;
7
+ }
8
+ export interface IAFileBoxProps extends IABaseProps {
9
+ useFile: TUseValues<File | null>;
10
+ FileRenderer?: (props: IFileRendererProps) => React.ReactNode;
11
+ resources?: typeof Resources.AFileBox;
12
+ }
13
+ export declare const AFileBox: ({ useFile, FileRenderer, resources: extResources, ...props }: IAFileBoxProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,29 @@
1
+ /// <reference types="react" />
2
+ import { EDir12, TActionRef, TIdx } from '../ATypes/ATypes';
3
+ import { TCBAble } from '../../AUtils/cbF';
4
+ export interface IAFloatMenuActions {
5
+ open: () => void;
6
+ close: () => void;
7
+ toggle: () => void;
8
+ }
9
+ export interface IAFloatMenuContentProps {
10
+ defKey: TIdx;
11
+ def: IAFloatMenuDef;
12
+ }
13
+ export interface IAFloatMenuDef {
14
+ noDisplay?: boolean;
15
+ isDisabled?: boolean;
16
+ content?: TCBAble<IAFloatMenuContentProps, React.ReactNode>;
17
+ }
18
+ export type TAFloatMenuDefs = {
19
+ [key in TIdx]: IAFloatMenuDef;
20
+ } & {
21
+ defaultDef?: IAFloatMenuDef;
22
+ };
23
+ export interface IAFloatMenuProps {
24
+ defs: TAFloatMenuDefs;
25
+ anchorRef: React.RefObject<HTMLElement>;
26
+ position?: EDir12;
27
+ actionRef?: TActionRef<IAFloatMenuActions>;
28
+ }
29
+ export declare const AFloatMenu: ({ defs, anchorRef, actionRef, position }: IAFloatMenuProps) => import("react").ReactPortal | null;
@@ -0,0 +1,13 @@
1
+ import { IABaseProps } from '../ABase/ABase';
2
+ export declare const RowFrame: (props: IABaseProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const ColFrame: (props: IABaseProps) => import("react/jsx-runtime").JSX.Element;
4
+ /**
5
+ * OverflowFrame
6
+ * Description : it sets the tooltip of the children if the children is overflowed.
7
+ * Notice 1 :
8
+ */
9
+ interface IOverflowFrameProps extends IABaseProps {
10
+ noOverflowTooltip?: boolean;
11
+ }
12
+ export declare const OverflowFrame: ({ tooltip: extTooltip, children, abaseRef, className, noOverflowTooltip, ...props }: IOverflowFrameProps) => import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1 @@
1
+ export declare const AGrow: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,83 @@
1
+ /// <reference types="react" />
2
+ export interface IASVGProps extends React.SVGProps<SVGSVGElement> {
3
+ svgRef?: React.Ref<SVGSVGElement>;
4
+ }
5
+ export type TIcons = keyof typeof AIcons;
6
+ export interface IAIconProps extends IASVGProps {
7
+ icon: TIcons;
8
+ isDisabled?: boolean;
9
+ }
10
+ /**
11
+ * AIcon is a component that renders an SVG icon.
12
+ *
13
+ * Notice 1 : icons must be have a square viewbox.
14
+ * Notice 2 : default width and height is 24.
15
+ * Notice 3 : larger images should be handled as images, not icons.
16
+ */
17
+ export declare const AIcon: ({ icon, svgRef, isDisabled, ...rest }: IAIconProps) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const AIcons: Readonly<{
19
+ ArrowDown: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
20
+ ArrowUp: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
21
+ Chat: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
22
+ 'Check.Checked': (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
23
+ 'Check.Indeterminate': (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
24
+ 'Check.UnChecked': (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
25
+ CircledCheck: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
26
+ ClipBoard: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
27
+ Document: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
28
+ Menu: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
29
+ Person: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
30
+ Reset: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
31
+ Search: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
32
+ Send: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
33
+ Spinner: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
34
+ Stop: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
35
+ TriangleAlert: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
36
+ Sun: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
37
+ Moon: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
38
+ CCTV: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
39
+ Convert: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
40
+ KeyboardArrowUp: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
41
+ KeyboardArrowDown: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
42
+ Alert: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
43
+ SortUp: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
44
+ SortDown: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
45
+ SortBoth: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
46
+ Favorite: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
47
+ FavoriteDisabled: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
48
+ Main: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
49
+ Frame: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
50
+ FileDownload: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
51
+ File: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
52
+ UnPlug: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
53
+ Sync: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
54
+ CalendarDay: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
55
+ DateRange: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
56
+ PlayArrow: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
57
+ Mail: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
58
+ Download: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
59
+ Folder: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
60
+ FolderPost: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
61
+ FolderOpen: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
62
+ FolderCopy: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
63
+ FolderAdd: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
64
+ FirstPage: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
65
+ LastPage: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
66
+ NavigateBefore: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
67
+ NavigateNext: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
68
+ ListAdd: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
69
+ ListRemove: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
70
+ Cancel: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
71
+ Clear: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
72
+ Article: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
73
+ Info: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
74
+ PersonAdd: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
75
+ CheckNormal: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
76
+ Create: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
77
+ PersonRemove: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
78
+ Refresh: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
79
+ Undo: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
80
+ Gear: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
81
+ TriangleUp: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
82
+ TriangleDown: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
83
+ }>;
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import { IAWrapProps } from '../AWrap/AWrap';
3
+ import { IABaseProps } from '../ABase/ABase';
4
+ import { TUseValues } from '../../AHooks/useValues';
5
+ export type TInputType = 'Primary' | 'Secondary' | 'Error';
6
+ export interface IAInputProps extends IABaseProps, IAWrapProps {
7
+ onEnterPress?: (value: string) => void;
8
+ type?: TInputType;
9
+ inputRef?: React.RefObject<HTMLInputElement>;
10
+ useValue?: TUseValues<string>;
11
+ isReadonly?: boolean;
12
+ placeholder?: string;
13
+ maxLength?: number;
14
+ tabIndex?: number;
15
+ autoFocus?: boolean;
16
+ isPassword?: boolean;
17
+ autoComplete?: string;
18
+ LeftAddon?: React.ReactNode;
19
+ RightAddon?: React.ReactNode;
20
+ inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
21
+ }
22
+ export declare const AInput: ({ onEnterPress, type, inputRef, useValue, isReadonly, placeholder, maxLength, tabIndex, autoFocus, isPassword, autoComplete, LeftAddon, RightAddon, inputProps, wrapProps, helperText, label, wrapType, ...abaseProps }: IAInputProps) => React.ReactNode;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * AListView
3
+ *
4
+ * Notice 1 : Defs Explanation
5
+ * - Keys of defs are used as each row.
6
+ * - defaultDef is used as default for each row, and will not be rendered.
7
+ * - def is calculated as {...defaultDef, ...def}.
8
+ *
9
+ * Todo 1 : Defs is declared as type. it would be better to declare as interface, but I couldn't find the way.
10
+ *
11
+ */
12
+ import React from 'react';
13
+ import { IObject } from '../../AUtils/objF';
14
+ import { TIdx } from '../ATypes/ATypes';
15
+ import { IABaseProps } from '../ABase/ABase';
16
+ import { TCBAble } from '../../AUtils/cbF';
17
+ export interface IAListViewContentProps<T extends IObject> {
18
+ defKey: TIdx;
19
+ item: T;
20
+ def: IAListViewDef<T>;
21
+ }
22
+ export interface IAListViewDef<T extends IObject> {
23
+ label?: TCBAble<IAListViewContentProps<T>, React.ReactNode>;
24
+ content?: TCBAble<IAListViewContentProps<T>, React.ReactNode>;
25
+ }
26
+ export type TAListViewDefs<T extends IObject> = {
27
+ [key in Exclude<keyof T, symbol>]: IAListViewDef<T>;
28
+ } & {
29
+ [key in TIdx]?: IAListViewDef<T>;
30
+ } & {
31
+ defaultDef?: IAListViewDef<T>;
32
+ };
33
+ export interface IAListViewProps<T extends IObject> extends IABaseProps {
34
+ defs: TAListViewDefs<T>;
35
+ item: T;
36
+ }
37
+ export declare const AListView: <T extends IObject>({ defs, item, ...rest }: IAListViewProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,31 @@
1
+ export declare const Resources: {
2
+ ADialog: {
3
+ ok: string;
4
+ cancel: string;
5
+ };
6
+ ATree: {
7
+ 'select n': (n: number) => string;
8
+ 'deselect n': (n: number) => string;
9
+ };
10
+ ADatePicker: {
11
+ weekDays: (n: number) => string;
12
+ months: (n: number) => string;
13
+ };
14
+ AFileBox: {
15
+ 'drop file to select': string;
16
+ 'or Drag & Drop': string;
17
+ 'Select File': string;
18
+ };
19
+ ATable: {
20
+ 'c/t items checked': (c: number, t: number) => string;
21
+ 't items': (t: number) => string;
22
+ Search: string;
23
+ Select: string;
24
+ };
25
+ ASelect: {
26
+ Select: string;
27
+ };
28
+ };
29
+ export type TResource = typeof Resources;
30
+ export type TResourceType = keyof TResource;
31
+ export declare const SetResources: <K extends "ADialog" | "ATree" | "ADatePicker" | "AFileBox" | "ATable" | "ASelect">(resourceType: K, resources: TResource[K]) => void;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * ASelect
3
+ *
4
+ * Notice 1 : useSelect is considered as T[], so you should pass T[] to useSelect even if isSelectMulti is false.
5
+ */
6
+ import React from 'react';
7
+ import { IABaseProps } from '../ABase/ABase';
8
+ import { IAWrapProps } from '../AWrap/AWrap';
9
+ import { TUseValues } from '../../AHooks/useValues';
10
+ export interface IASelect_ValuesRenderer_Props<T> {
11
+ OptionRenderer: (props: IASelect_OptionRenderer_Props<T>) => React.ReactNode;
12
+ selected: T[];
13
+ placeholder?: React.ReactNode;
14
+ }
15
+ export interface IASelect_OptionRenderer_Props<T> {
16
+ option: T;
17
+ }
18
+ export interface IASelectProps<T> extends IAWrapProps, IABaseProps {
19
+ options: T[];
20
+ useSelect?: TUseValues<T[]>;
21
+ type?: 'Primary' | 'Secondary';
22
+ placeholder?: React.ReactNode;
23
+ isSelectMulti?: boolean;
24
+ onClose?: () => void;
25
+ ValuesRenderer?: (props: IASelect_ValuesRenderer_Props<T>) => React.ReactNode;
26
+ OptionRenderer?: (props: IASelect_OptionRenderer_Props<T>) => React.ReactNode;
27
+ minShowRows?: number;
28
+ maxShowRows?: number;
29
+ arrowProps?: React.HTMLProps<HTMLDivElement>;
30
+ }
31
+ /**
32
+ * ASelect
33
+ * values와 options를 받아서 선택된 options를 보여주는 컴포넌트
34
+ * isSelectMulti가 true라면 여러개의 option을 선택할 수 있다.
35
+ */
36
+ export declare const ASelect: <T>({ options, useSelect, type, placeholder, isSelectMulti, onClose, ValuesRenderer, OptionRenderer, minShowRows, maxShowRows, arrowProps, wrapProps, helperText, label, ...abaseProps }: IASelectProps<T>) => React.ReactNode;
37
+ export declare const DefaultOptionRenderer: <T>({ option }: IASelect_OptionRenderer_Props<T>) => React.ReactNode;
@@ -0,0 +1,7 @@
1
+ import { HTMLAttributes } from 'react';
2
+ interface IASpaceProps extends HTMLAttributes<HTMLElement> {
3
+ h?: number | string;
4
+ w?: number | string;
5
+ }
6
+ export declare const ASpace: ({ h, w, ...divProps }: IASpaceProps) => React.ReactNode;
7
+ export {};
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { TUseValues } from '../../AHooks/useValues';
3
+ interface IRendererProps<T> {
4
+ step: T;
5
+ stepIdx: number;
6
+ }
7
+ export interface IAStepperProps<T> {
8
+ useStep?: TUseValues<T>;
9
+ steps: T[];
10
+ StepRenderer?: (props: IRendererProps<T>) => React.ReactNode;
11
+ ContentRenderer?: (props: IRendererProps<T>) => React.ReactNode;
12
+ }
13
+ export declare const AStepper: <T>({ useStep, steps, StepRenderer, ContentRenderer, }: IAStepperProps<T>) => import("react/jsx-runtime").JSX.Element | null;
14
+ export {};
@@ -0,0 +1,7 @@
1
+ import { TUseValues } from '../../AHooks/useValues';
2
+ import { IABaseProps } from '../ABase/ABase';
3
+ import { IAWrapProps } from '../AWrap/AWrap';
4
+ export interface ASwitchProps extends IAWrapProps, IABaseProps {
5
+ useCheck?: TUseValues<any>;
6
+ }
7
+ export declare const ASwitch: ({ wrapProps, helperText, label, useCheck, ...abaseProps }: ASwitchProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { TUseValues } from '../../AHooks/useValues';
3
+ export interface IATabOptionRendererProps<T> {
4
+ option: T;
5
+ }
6
+ export interface IATabProps<T> {
7
+ options: T[];
8
+ type?: 'Primary' | 'Secondary';
9
+ useSelect?: TUseValues<T>;
10
+ tabProps?: React.HTMLProps<HTMLDivElement>;
11
+ optionWidth?: string | number;
12
+ OptionRenderer?: (props: IATabOptionRendererProps<T>) => React.ReactNode;
13
+ }
14
+ export declare const ATab: <T>({ options, useSelect, type, tabProps, optionWidth, OptionRenderer, }: IATabProps<T>) => import("react/jsx-runtime").JSX.Element | null;