enwawa-ui 4.1.20 → 4.1.22

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/lib/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import React, { CSSProperties, ReactNode, ChangeEvent, SetStateAction, JSXElementConstructor, ReactElement, Dispatch } from "react";
2
2
  import { ButtonShape, ButtonSize, ButtonType } from "antd/es/button";
3
3
  import { ButtonProps, AutoCompleteProps, DescriptionsProps, TableProps as _TableProps1, BreadcrumbProps as _BreadcrumbProps1, SwitchProps } from "antd/lib";
4
- import { CheckboxProps, AlertProps, ColProps, BreadcrumbProps, TooltipProps, InputNumberProps, DropdownProps, MenuProps, SelectProps, PaginationProps, PopoverProps, RadioChangeEvent, UploadProps, RowProps as _RowProps1, CollapseProps, LayoutProps, SiderProps, SpaceProps, StepsProps, FormProps, CountdownProps, ModalFuncProps, FormInstance, TableProps, TableColumnsType, ModalProps as _ModalProps1, DatePickerProps, ImageProps, SpinProps, TagProps } from "antd";
4
+ import { CheckboxProps, AlertProps, ColProps, BreadcrumbProps, TooltipProps, InputNumberProps, DropdownProps, MenuProps, SelectProps, PaginationProps, PopoverProps, RadioChangeEvent, UploadProps, RowProps as _RowProps1, CollapseProps, LayoutProps, SiderProps, SpaceProps, StepsProps, DatePickerProps, FormProps, CountdownProps, ModalFuncProps, FormInstance, TableProps, TableColumnsType, ModalProps as _ModalProps1, ImageProps, SpinProps, TagProps } from "antd";
5
5
  import { TabsProps } from "antd/es/tabs";
6
6
  import { CardTabListType } from "antd/es/card";
7
7
  import { CardType } from "antd/es/card/Card";
@@ -2068,10 +2068,14 @@ export interface OrCalendarProps {
2068
2068
  status?: string;
2069
2069
  textColor?: string;
2070
2070
  classNames?: string[];
2071
+ pickUpSlots?: string;
2072
+ boardingSlots?: string;
2071
2073
  statusText?: string;
2072
2074
  routeText?: string;
2073
2075
  driverName?: string;
2074
2076
  onClickPopOver?: () => void;
2077
+ onOpenPopoverChange?: (open: boolean) => void;
2078
+ loading?: boolean;
2075
2079
  }[];
2076
2080
  /**
2077
2081
  * Resources for the calendar
@@ -2117,6 +2121,8 @@ export interface OrCalendarProps {
2117
2121
  routeText?: string;
2118
2122
  driverName?: string;
2119
2123
  onClickPopOver?: () => void;
2124
+ onOpenPopoverChange: (open: boolean) => void;
2125
+ loading?: boolean;
2120
2126
  };
2121
2127
  }) => React.ReactNode;
2122
2128
  /**
@@ -2191,6 +2197,10 @@ export interface OrCardLocationProps {
2191
2197
  * header for actions buttons
2192
2198
  */
2193
2199
  headerActions?: React.ReactNode;
2200
+ /**
2201
+ * loading state of the popover
2202
+ */
2203
+ loading?: boolean;
2194
2204
  }
2195
2205
  /**
2196
2206
  * Primary input UI component for user interaction
@@ -2596,6 +2606,10 @@ export interface OrSiderMenuProps {
2596
2606
  * On Logo Click function
2597
2607
  */
2598
2608
  onLogoClick?: React.MouseEventHandler<HTMLDivElement> | undefined;
2609
+ /**
2610
+ * logo
2611
+ */
2612
+ logo?: React.ReactNode;
2599
2613
  }
2600
2614
  export const OrSiderMenu: React.FC<OrSiderMenuProps>;
2601
2615
  export interface AtSpaceProps {
@@ -2799,6 +2813,7 @@ export interface OrModuleCalendarHeaderProps {
2799
2813
  onSearch?: AtSelectProps['onSearch'];
2800
2814
  showSearch?: AtSelectProps['showSearch'];
2801
2815
  label: string;
2816
+ value?: AtSelectProps['value'];
2802
2817
  options: AtSelectProps['options'];
2803
2818
  onChange: AtSelectProps['onChange'];
2804
2819
  }[];
@@ -2843,6 +2858,14 @@ export interface OrModuleCalendarHeaderProps {
2843
2858
  * Handles loading state
2844
2859
  */
2845
2860
  loadingSearchFilter?: boolean;
2861
+ /**
2862
+ * Value of the time range picker
2863
+ */
2864
+ atTimeRangePickerValue?: RangePicker['value'] | null;
2865
+ /**
2866
+ * Set validation status
2867
+ */
2868
+ atDatePickerValue?: DatePickerProps['value'];
2846
2869
  }
2847
2870
  export const OrModuleCalendarHeader: React.FC<OrModuleCalendarHeaderProps>;
2848
2871
  export interface ICustomButtons extends AtButtonProps {
@@ -3121,6 +3144,21 @@ export interface OrEventContentDutyProps {
3121
3144
  * placement of the popover
3122
3145
  */
3123
3146
  placement?: TooltipPlacement;
3147
+ /**
3148
+ * on open change of the popover
3149
+ */
3150
+ onOpenChange?: (open: boolean) => void;
3151
+ /** * loading state of the popover
3152
+ */
3153
+ loading?: boolean;
3154
+ /**
3155
+ * Number of pick-up slots (optional).
3156
+ */
3157
+ pickUpSlots?: string;
3158
+ /**
3159
+ * Number of boarding slots (optional).
3160
+ */
3161
+ boardingSlots?: string;
3124
3162
  }
3125
3163
  export const EVENTS_POPOVER_COLORS: {
3126
3164
  inProgress: string;
@@ -3431,8 +3469,19 @@ export interface TmCalendarPageProps<_RecordType = AnyObject, FormType = any> {
3431
3469
  * event on click on card of event
3432
3470
  */
3433
3471
  eventClickFunction: (val: EventClickArg['event']) => any;
3472
+ /** * loading state of duty data in popover
3473
+ */
3474
+ loadingDutyData?: boolean;
3475
+ /**
3476
+ * Value of the time range picker
3477
+ */
3478
+ atTimeRangePickerValue?: _RangePicker1['value'] | null;
3479
+ /**
3480
+ * Set validation value
3481
+ */
3482
+ atDatePickerValue?: DatePickerProps['value'];
3434
3483
  }
3435
- export const TmCalendarPage: <RecordType extends AnyObject, FormType extends Store>({ formSteps, onValuesChange, onCloseLeftDrawer, leftDrawerContent, openLeftDrawer, buttonAddText, buttonIcon, buttonOnClick, open, currentFormStep, titleLeftDrawer, leftDrawerWidth, drawerContent, showDrawerContent, drawerTitle, drawerWidth, firstButtonText, secondButtonText, onClickFirstButton, onClickSecondButton, eventClickFunction, $margin, title, actionPopOverText, disabledButtons, handleCloseCallback, showFormStepper, onBack, events, resources, resourceTitle, displayDate, onChangeSegment, segmentOptions, columnsFilters, buttonsFilters, filterText, leftArrowOnOnClick, rightArrowOnOnClick, currentDate, onSelectResource, selectedResources, loadingSearchFilter, onSelectDate, onSelectedTimeRange, loadingTable, }: TmCalendarPageProps<RecordType, FormType>) => JSX.Element;
3484
+ export const TmCalendarPage: <RecordType extends AnyObject, FormType extends Store>({ formSteps, onValuesChange, onCloseLeftDrawer, leftDrawerContent, openLeftDrawer, buttonAddText, buttonIcon, buttonOnClick, open, currentFormStep, titleLeftDrawer, leftDrawerWidth, drawerContent, showDrawerContent, drawerTitle, drawerWidth, firstButtonText, secondButtonText, onClickFirstButton, onClickSecondButton, eventClickFunction, $margin, title, actionPopOverText, disabledButtons, handleCloseCallback, showFormStepper, onBack, events, resources, resourceTitle, displayDate, onChangeSegment, segmentOptions, columnsFilters, buttonsFilters, filterText, leftArrowOnOnClick, rightArrowOnOnClick, currentDate, onSelectResource, selectedResources, loadingSearchFilter, onSelectDate, onSelectedTimeRange, loadingTable, loadingDutyData, atTimeRangePickerValue, atDatePickerValue }: TmCalendarPageProps<RecordType, FormType>) => JSX.Element;
3436
3485
  export interface MarkersArrayMap {
3437
3486
  type: 'add' | 'oneWay' | 'return';
3438
3487
  color?: OrMarkProps['color'];
@@ -3989,6 +4038,10 @@ export interface TmLoginPhoneProps {
3989
4038
  * Show country select
3990
4039
  */
3991
4040
  showCountrySelect?: boolean;
4041
+ /**
4042
+ * logo
4043
+ */
4044
+ logo: React.ReactNode;
3992
4045
  }
3993
4046
  export const TmLoginPhone: React.FC<TmLoginPhoneProps>;
3994
4047
  export interface AtCountdownProps {
@@ -4091,6 +4144,10 @@ export interface TmLoginPhoneCodeProps {
4091
4144
  * Function to call when resend is press it
4092
4145
  */
4093
4146
  onResendPress?: () => void;
4147
+ /**
4148
+ * logo
4149
+ */
4150
+ logo?: React.ReactNode;
4094
4151
  }
4095
4152
  export const TmLoginPhoneCode: React.FC<TmLoginPhoneCodeProps>;
4096
4153
  export interface MarkersArray {
@@ -5474,6 +5531,10 @@ export interface OrDashboardLayoutProps {
5474
5531
  * AtButton props for handle the notification panel
5475
5532
  */
5476
5533
  iconButton?: AtButtonProps;
5534
+ /**
5535
+ * logo
5536
+ */
5537
+ logo?: React.ReactNode;
5477
5538
  /**
5478
5539
  * notifications drawer config
5479
5540
  */
@@ -6435,6 +6496,10 @@ export interface AtDatePickerPros {
6435
6496
  * Handles date selection
6436
6497
  */
6437
6498
  onChange?: (value: Dayjs | null) => void;
6499
+ /**
6500
+ * Set validation value
6501
+ */
6502
+ value?: DatePickerProps['value'];
6438
6503
  }
6439
6504
  export const AtDatePicker: React.FC<AtDatePickerPros>;
6440
6505
  export interface AtDateRangePickerProps {