ados-rcm 1.1.787 → 1.1.789
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/ADatePicker/ADatePicker.d.ts +1 -1
- package/dist/AModule/AComponents/ADatePicker/ADatePickerUtil.d.ts +2 -2
- package/dist/AModule/AComponents/ADatePicker/ADateRangePicker.d.ts +1 -0
- package/dist/AModule/AComponents/AInput/AInput.d.ts +6 -0
- package/dist/AModule/AHooks/useEvent.d.ts +1 -1
- package/dist/index.cjs.js +203 -203
- package/dist/index.es.js +15949 -15981
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@ export interface IADatePickerProps extends IABaseProps, IAWrapProps {
|
|
|
16
16
|
LeftAddon?: React.ReactNode;
|
|
17
17
|
RightAddon?: React.ReactNode;
|
|
18
18
|
actionRef?: TActionRef<IADatePickerActions>;
|
|
19
|
-
|
|
19
|
+
autoClose?: boolean;
|
|
20
20
|
icon?: TIcons | Exclude<React.ReactNode, string>;
|
|
21
21
|
iconSize?: TIconSize;
|
|
22
22
|
innerInputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
@@ -75,11 +75,11 @@ interface IDateRangeInputHandlersConfig {
|
|
|
75
75
|
localDr?: IDateRange;
|
|
76
76
|
maxDate?: Date;
|
|
77
77
|
minDate?: Date;
|
|
78
|
+
onError: () => void;
|
|
78
79
|
setEndInputValue: (value: string) => void;
|
|
79
80
|
setLocalDr: (dr?: IDateRange) => void;
|
|
80
81
|
setPage: (page: ICalendarPage) => void;
|
|
81
82
|
setStartInputValue: (value: string) => void;
|
|
82
|
-
showDateError: () => void;
|
|
83
83
|
startInputValue: string;
|
|
84
84
|
updateDateRange: (newDr?: IDateRange) => void;
|
|
85
85
|
}
|
|
@@ -151,7 +151,7 @@ export interface IPortalRefs {
|
|
|
151
151
|
portalRef: React.RefObject<HTMLElement | null>;
|
|
152
152
|
restoreRef?: React.RefObject<HTMLElement | null>;
|
|
153
153
|
}
|
|
154
|
-
export declare function usePortalManager(refs: IPortalRefs, position: EDir12, isDisabled?: boolean | string, isLoading?: boolean, resetPage?: () => void): {
|
|
154
|
+
export declare function usePortalManager(refs: IPortalRefs, position: EDir12, isDisabled?: boolean | string, isLoading?: boolean, resetPage?: () => void, autoClose?: boolean): {
|
|
155
155
|
isOpen: boolean;
|
|
156
156
|
isTransitioning: boolean;
|
|
157
157
|
setIsTransitioning: React.Dispatch<React.SetStateAction<boolean>>;
|
|
@@ -6,6 +6,7 @@ export interface IDateRange {
|
|
|
6
6
|
sDate: Date;
|
|
7
7
|
}
|
|
8
8
|
export interface IADateRangePickerProps extends Omit<IADatePickerProps, 'useDate'> {
|
|
9
|
+
autoClose?: boolean;
|
|
9
10
|
noDefaultChoices?: boolean;
|
|
10
11
|
resources?: Partial<typeof Resources.ADateRangePicker>;
|
|
11
12
|
useDateRange?: TUseValues<IDateRange | undefined>;
|
|
@@ -35,6 +35,12 @@ export interface IAInputProps extends IABaseProps, IAWrapProps {
|
|
|
35
35
|
* Description : dataList of AInput
|
|
36
36
|
*/
|
|
37
37
|
dataList?: string[] | readonly string[];
|
|
38
|
+
/**
|
|
39
|
+
* gap? : number
|
|
40
|
+
*
|
|
41
|
+
* Description : gap of AInput
|
|
42
|
+
*/
|
|
43
|
+
gap?: number;
|
|
38
44
|
/**
|
|
39
45
|
* inputProps? : React.InputHTMLAttributes<HTMLInputElement>
|
|
40
46
|
*
|
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
* @param onAction onAction : event handler for element event
|
|
10
10
|
* @param options? options : options for addEventListener
|
|
11
11
|
*/
|
|
12
|
-
export declare function useEvent<T extends Window | Document | HTMLElement | typeof globalThis | null, K extends T extends Window | typeof globalThis ? keyof WindowEventMap : T extends Document ? keyof DocumentEventMap : T extends HTMLElement ? keyof HTMLElementEventMap : string, L extends K extends keyof WindowEventMap ? (this: T, ev: WindowEventMap[K]) => any : K extends keyof DocumentEventMap ? (this: T, ev: DocumentEventMap[K]) => any : K extends keyof HTMLElementEventMap ? (this: T, ev: HTMLElementEventMap[K]) => any : EventListenerOrEventListenerObject>(element: T | undefined, action: K, onAction: L, options?: AddEventListenerOptions): void;
|
|
12
|
+
export declare function useEvent<T extends Window | Document | HTMLElement | typeof globalThis | null, K extends (T extends Window | typeof globalThis ? keyof WindowEventMap : T extends Document ? keyof DocumentEventMap : T extends HTMLElement ? keyof HTMLElementEventMap : string) | (string & NonNullable<string>), L extends K extends keyof WindowEventMap ? (this: T, ev: WindowEventMap[K]) => any : K extends keyof DocumentEventMap ? (this: T, ev: DocumentEventMap[K]) => any : K extends keyof HTMLElementEventMap ? (this: T, ev: HTMLElementEventMap[K]) => any : EventListenerOrEventListenerObject>(element: T | undefined, action: K, onAction: L, options?: AddEventListenerOptions): void;
|