ados-rcm 1.1.779 → 1.1.781

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,7 +1,7 @@
1
1
  import { TUseValues } from '../../AHooks/useValues';
2
2
  import { default as React } from 'react';
3
3
  import { IABaseProps } from '../ABase/ABase';
4
- import { TIconSize } from '../AIcon/AIcon';
4
+ import { TIcons, TIconSize } from '../AIcon/AIcon';
5
5
  import { Resources } from '../AResource/AResource';
6
6
  import { EDir12, TActionRef } from '../ATypes/ATypes';
7
7
  import { IAWrapProps } from '../AWrap/AWrap';
@@ -18,6 +18,7 @@ export interface IADatePickerProps extends IABaseProps, IAWrapProps {
18
18
  actionRef?: TActionRef<IADatePickerActions>;
19
19
  canTabOpen?: boolean;
20
20
  className?: string;
21
+ icon?: TIcons | Exclude<React.ReactNode, string>;
21
22
  iconSize?: TIconSize;
22
23
  inputProps?: React.HTMLAttributes<HTMLInputElement>;
23
24
  maxDate?: Date;
@@ -28,7 +28,8 @@ export declare function sortDateRange(sDate: Date, eDate: Date): {
28
28
  sDate: Date;
29
29
  };
30
30
  export declare function normalizeDateRange(dr: IDateRange): IDateRange;
31
- export declare function useCalendarLogic(selectedDate: Date | undefined, minDate: Date | undefined, maxDate: Date | undefined): {
31
+ export declare function useCalendarLogic(selectedDate: Date | undefined, onChange: (date: Date) => void, minDate: Date | undefined, maxDate: Date | undefined): {
32
+ handleDateClick: (date: Date) => void;
32
33
  page: ICalendarPage;
33
34
  setPage: React.Dispatch<React.SetStateAction<ICalendarPage>>;
34
35
  handleYearChange: (newYear: number) => void;
@@ -108,6 +109,7 @@ export declare function useDateRangeLogic(dr: IDateRange | undefined, changeDr:
108
109
  resetPage: () => void;
109
110
  handleYearChange: (newYear: number) => void;
110
111
  handleMonthChange: (newMonth: number) => void;
112
+ idx: "sD" | "eD";
111
113
  };
112
114
  export interface IDayObject {
113
115
  date: Date;
@@ -144,14 +146,11 @@ interface ICalendarHeaderProps {
144
146
  yearSize?: number;
145
147
  }
146
148
  export declare const CalendarHeader: ({ page, setPage, handleYearChange, handleMonthChange, minDate, maxDate, yearSize, resources, S, }: ICalendarHeaderProps) => import("react/jsx-runtime").JSX.Element;
147
- export declare function usePortalKeyboardNavigation(isOpen: boolean, close: () => void, portalRef: React.RefObject<HTMLElement | null>, anchorRef: React.RefObject<HTMLElement | null>): void;
148
149
  export interface IPortalRefs {
149
150
  anchorRef: React.RefObject<HTMLElement | null>;
150
- endRef?: React.RefObject<HTMLElement | null>;
151
151
  portalRef: React.RefObject<HTMLElement | null>;
152
- startRef?: React.RefObject<HTMLElement | null>;
153
152
  }
154
- export declare function usePortalManager(refs: IPortalRefs, position: EDir12, isDisabled?: boolean | string, isLoading?: boolean, canTabOpen?: boolean, resetPage?: () => void): {
153
+ export declare function usePortalManager(refs: IPortalRefs, position: EDir12, isDisabled?: boolean | string, isLoading?: boolean, resetPage?: () => void): {
155
154
  isOpen: boolean;
156
155
  isTransitioning: boolean;
157
156
  setIsTransitioning: React.Dispatch<React.SetStateAction<boolean>>;
@@ -6,7 +6,7 @@ import { IABaseProps } from '../ABase/ABase';
6
6
  import { TIcons } from '../AIcon/AIcon';
7
7
  import { Resources } from '../AResource/AResource';
8
8
  import { TActionRef, TIdx, TPromisable } from '../ATypes/ATypes';
9
- import { IDateRange } from '../ADatePicker/ADatePickerUtil';
9
+ import { IDateRange } from '../ADatePicker/ADateRangePicker';
10
10
  import { IATableRowProps } from './ATableBody';
11
11
  export interface IATableTHProps<T extends IItem> {
12
12
  /**
@@ -21,7 +21,10 @@ 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: any;
24
+ value: undefined;
25
+ } | {
26
+ selectedKey: string | number | keyof T;
27
+ value: string | number | Date | import('../..').IDateRange;
25
28
  } | undefined;
26
29
  };
27
30
  export {};