ados-rcm 1.1.778 → 1.1.780
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { Resources } from '../AResource/AResource';
|
|
3
3
|
import { EDir12 } from '../ATypes/ATypes';
|
|
4
|
+
import { IDateRange } from './ADateRangePicker';
|
|
4
5
|
export interface ICalendarPage {
|
|
5
6
|
month: number;
|
|
6
7
|
year: number;
|
|
@@ -63,10 +64,6 @@ export declare function useDateRangeInputSync(localDr?: {
|
|
|
63
64
|
readonly endInputValue: string;
|
|
64
65
|
readonly setEndInputValue: React.Dispatch<React.SetStateAction<string>>;
|
|
65
66
|
};
|
|
66
|
-
export interface IDateRange {
|
|
67
|
-
eDate: Date;
|
|
68
|
-
sDate: Date;
|
|
69
|
-
}
|
|
70
67
|
interface IDateRangeInputHandlersConfig {
|
|
71
68
|
calculateDateRange: (newDate: Date, isStart: boolean) => {
|
|
72
69
|
e: Date;
|
|
@@ -111,6 +108,7 @@ export declare function useDateRangeLogic(dr: IDateRange | undefined, changeDr:
|
|
|
111
108
|
resetPage: () => void;
|
|
112
109
|
handleYearChange: (newYear: number) => void;
|
|
113
110
|
handleMonthChange: (newMonth: number) => void;
|
|
111
|
+
idx: "sD" | "eD";
|
|
114
112
|
};
|
|
115
113
|
export interface IDayObject {
|
|
116
114
|
date: Date;
|
|
@@ -150,9 +148,7 @@ export declare const CalendarHeader: ({ page, setPage, handleYearChange, handleM
|
|
|
150
148
|
export declare function usePortalKeyboardNavigation(isOpen: boolean, close: () => void, portalRef: React.RefObject<HTMLElement | null>, anchorRef: React.RefObject<HTMLElement | null>): void;
|
|
151
149
|
export interface IPortalRefs {
|
|
152
150
|
anchorRef: React.RefObject<HTMLElement | null>;
|
|
153
|
-
endRef?: React.RefObject<HTMLElement | null>;
|
|
154
151
|
portalRef: React.RefObject<HTMLElement | null>;
|
|
155
|
-
startRef?: React.RefObject<HTMLElement | null>;
|
|
156
152
|
}
|
|
157
153
|
export declare function usePortalManager(refs: IPortalRefs, position: EDir12, isDisabled?: boolean | string, isLoading?: boolean, canTabOpen?: boolean, resetPage?: () => void): {
|
|
158
154
|
isOpen: boolean;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { TUseValues } from '../../AHooks/useValues';
|
|
2
2
|
import { Resources } from '../AResource/AResource';
|
|
3
3
|
import { IADatePickerProps } from './ADatePicker';
|
|
4
|
-
|
|
4
|
+
export interface IDateRange {
|
|
5
|
+
eDate: Date;
|
|
6
|
+
sDate: Date;
|
|
7
|
+
}
|
|
5
8
|
export interface IADateRangePickerProps extends Omit<IADatePickerProps, 'useDate'> {
|
|
6
9
|
noDefaultChoices?: boolean;
|
|
7
10
|
resources?: Partial<typeof Resources.ADateRangePicker>;
|
|
@@ -21,10 +21,7 @@ export declare const tableF: {
|
|
|
21
21
|
getMultiFilterValues: <T extends IItem, K extends IItem = any>(filteration: TATableFilteration<T, K>) => Partial<K>;
|
|
22
22
|
getSelectFilterValue: <T extends IItem>(filteration: TATableFilteration<T>) => {
|
|
23
23
|
selectedKey: string | number | keyof T;
|
|
24
|
-
value:
|
|
25
|
-
} | {
|
|
26
|
-
selectedKey: string | number | keyof T;
|
|
27
|
-
value: string | number | Date | import('../AComponents/ADatePicker/ADatePickerUtil').IDateRange;
|
|
24
|
+
value: any;
|
|
28
25
|
} | undefined;
|
|
29
26
|
};
|
|
30
27
|
export {};
|