ados-rcm 1.1.640 → 1.1.642
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 +2 -2
- package/dist/AModule/AComponents/ADialog/ADialog.d.ts +1 -1
- package/dist/AModule/AComponents/AIcon/AIcon.d.ts +1 -1
- package/dist/AModule/AComponents/AInput/AInput.d.ts +2 -2
- package/dist/AModule/AComponents/ATable/ATableBody.d.ts +1 -1
- package/dist/AModule/AComponents/ATooltip/ATooltip.d.ts +2 -3
- package/dist/AModule/AComponents/ATree/ATreeItem.d.ts +1 -1
- package/dist/AModule/AComponents/ATypes/ATypes.d.ts +2 -2
- package/dist/AModule/AComponents/AWrap/AWrap.d.ts +1 -1
- package/dist/AModule/AUtils/bound.d.ts +2 -2
- package/dist/index.cjs.js +307 -187
- package/dist/index.es.js +43427 -30871
- package/package.json +8 -8
|
@@ -14,11 +14,11 @@ export interface IABaseProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
14
14
|
*/
|
|
15
15
|
abaseCallbackRef?: (instance: HTMLDivElement | null) => void;
|
|
16
16
|
/**
|
|
17
|
-
* abaseRef? : React.RefObject<HTMLDivElement>
|
|
17
|
+
* abaseRef? : React.RefObject<HTMLDivElement | null>
|
|
18
18
|
*
|
|
19
19
|
* Description : ref of ABase
|
|
20
20
|
*/
|
|
21
|
-
abaseRef?: React.RefObject<HTMLDivElement>;
|
|
21
|
+
abaseRef?: React.RefObject<HTMLDivElement | null>;
|
|
22
22
|
children?: React.ReactNode;
|
|
23
23
|
className?: string;
|
|
24
24
|
/**
|
|
@@ -40,7 +40,7 @@ export interface IADialogChildren {
|
|
|
40
40
|
export declare const ADialogTypes: readonly ["okCancel", "cancelOk", "ok", "cancel", "none"];
|
|
41
41
|
export type TADialogTypes = (typeof ADialogTypes)[number];
|
|
42
42
|
export type TADialogContext<P> = (props: P) => {
|
|
43
|
-
children:
|
|
43
|
+
children: React.ReactElement;
|
|
44
44
|
isOkDisabled: boolean;
|
|
45
45
|
};
|
|
46
46
|
export interface IADialogProps {
|
|
@@ -37,7 +37,7 @@ export declare const AIcon: (props: IAIconProps) => import("react/jsx-runtime").
|
|
|
37
37
|
interface IAIconHOCProps<T extends string> extends Omit<IAIconProps, 'icon'> {
|
|
38
38
|
icon: T | TIcons;
|
|
39
39
|
}
|
|
40
|
-
export declare const AIconHOC: <T extends string>(customIcons: Record<T, (props?: IASVGProps) =>
|
|
40
|
+
export declare const AIconHOC: <T extends string>(customIcons: Record<T, (props?: IASVGProps) => React.ReactElement>) => (props: IAIconHOCProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
41
41
|
export declare const Icons: Readonly<{
|
|
42
42
|
ArrowDown: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
|
|
43
43
|
ArrowUp: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -42,11 +42,11 @@ export interface IAInputProps extends IABaseProps, IAWrapProps {
|
|
|
42
42
|
*/
|
|
43
43
|
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
44
44
|
/**
|
|
45
|
-
* inputRef? : React.RefObject<HTMLInputElement>
|
|
45
|
+
* inputRef? : React.RefObject<HTMLInputElement | null>
|
|
46
46
|
*
|
|
47
47
|
* Description : inputRef of AInput
|
|
48
48
|
*/
|
|
49
|
-
inputRef?: React.RefObject<HTMLInputElement>;
|
|
49
|
+
inputRef?: React.RefObject<HTMLInputElement | null>;
|
|
50
50
|
/**
|
|
51
51
|
* isPassword? : boolean
|
|
52
52
|
*
|
|
@@ -31,7 +31,7 @@ interface IATableBodyProps<T extends IItem> {
|
|
|
31
31
|
}
|
|
32
32
|
export declare const ATableBody: <T extends IItem>(props: IATableBodyProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
33
33
|
export interface IATableRowItem {
|
|
34
|
-
[key: string]:
|
|
34
|
+
[key: string]: React.ReactElement;
|
|
35
35
|
}
|
|
36
36
|
export type TSpanWidths<T> = {
|
|
37
37
|
[key in keyof T]?: {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
2
1
|
import { EDir4 } from '../ATypes/ATypes';
|
|
3
2
|
interface IATooltipProps {
|
|
4
3
|
/**
|
|
@@ -20,11 +19,11 @@ interface IATooltipProps {
|
|
|
20
19
|
*/
|
|
21
20
|
distance?: number;
|
|
22
21
|
/**
|
|
23
|
-
* targetRef : React.RefObject<HTMLElement>
|
|
22
|
+
* targetRef : React.RefObject<HTMLElement | null>
|
|
24
23
|
*
|
|
25
24
|
* Description : targetRef of ATooltip
|
|
26
25
|
*/
|
|
27
|
-
targetRef: RefObject<HTMLElement>;
|
|
26
|
+
targetRef: React.RefObject<HTMLElement | null>;
|
|
28
27
|
/**
|
|
29
28
|
* tooltip : React.ReactNode
|
|
30
29
|
*
|
|
@@ -11,7 +11,7 @@ export interface IATreeItemProps<T> {
|
|
|
11
11
|
TreeItemClassName?: TCanCallback<IATreeItemProps<T>, string>;
|
|
12
12
|
TreeItemRenderer: (props: IATreeItemProps<T>) => React.ReactNode;
|
|
13
13
|
TreeItemStyle?: TCanCallback<IATreeItemProps<T>, React.CSSProperties>;
|
|
14
|
-
containerRef: React.RefObject<HTMLDivElement>;
|
|
14
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
15
15
|
extIndents?: (props: IIndentProps) => {
|
|
16
16
|
collapsed?: React.ReactNode;
|
|
17
17
|
expanded?: React.ReactNode;
|
|
@@ -33,8 +33,8 @@ export interface IOffset {
|
|
|
33
33
|
x?: number;
|
|
34
34
|
y?: number;
|
|
35
35
|
}
|
|
36
|
-
export declare function setDir12Style(anchorRef: React.RefObject<HTMLElement>, selfRef: React.RefObject<HTMLElement>, dir: EDir12, offset?: IOffset): void;
|
|
37
|
-
export declare function setDir12StyleElem(anchorElem: HTMLElement | null, selfRef: HTMLElement | null | React.RefObject<HTMLElement>, dir: EDir12, offset?: IOffset): IPosition | undefined;
|
|
36
|
+
export declare function setDir12Style(anchorRef: React.RefObject<HTMLElement | null>, selfRef: React.RefObject<HTMLElement | null>, dir: EDir12, offset?: IOffset): void;
|
|
37
|
+
export declare function setDir12StyleElem(anchorElem: HTMLElement | null, selfRef: HTMLElement | null | React.RefObject<HTMLElement | null>, dir: EDir12, offset?: IOffset): IPosition | undefined;
|
|
38
38
|
export type TActionRef<T> = React.MutableRefObject<T | null | undefined>;
|
|
39
39
|
export type TIdx = number | string;
|
|
40
40
|
export interface IACalledEvent {
|
|
@@ -27,7 +27,7 @@ export interface IAWrapLabelProps {
|
|
|
27
27
|
*
|
|
28
28
|
* Description : Content to display before the label (icon, bullet point, etc.)
|
|
29
29
|
*/
|
|
30
|
-
prefix?: TIcons | boolean |
|
|
30
|
+
prefix?: TIcons | boolean | React.ReactElement;
|
|
31
31
|
/**
|
|
32
32
|
* rightAddon?: React.ReactNode
|
|
33
33
|
*
|
|
@@ -65,7 +65,7 @@ export declare const textMeasurement: {
|
|
|
65
65
|
* Select 컴포넌트의 최적 너비 계산 (정확성 향상 버전)
|
|
66
66
|
*/
|
|
67
67
|
calculateOptimalSelectWidth<T>({ elementRef, options, selectedOption, selectedOptions, placeholder, optionRenderer, type, isMulti, }: {
|
|
68
|
-
elementRef: React.RefObject<HTMLElement>;
|
|
68
|
+
elementRef: React.RefObject<HTMLElement | null>;
|
|
69
69
|
isMulti?: boolean;
|
|
70
70
|
optionRenderer: (option: T) => React.ReactNode;
|
|
71
71
|
options?: readonly T[] | T[];
|
|
@@ -75,4 +75,4 @@ export declare const textMeasurement: {
|
|
|
75
75
|
type?: "Primary" | "Secondary" | "Raw";
|
|
76
76
|
}): number;
|
|
77
77
|
};
|
|
78
|
-
export declare function useOffset(ref: React.RefObject<HTMLElement>, upperRef: React.RefObject<HTMLElement>): number;
|
|
78
|
+
export declare function useOffset(ref: React.RefObject<HTMLElement | null>, upperRef: React.RefObject<HTMLElement | null>): number;
|