enwawa-ui 4.1.21 → 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";
@@ -2606,6 +2606,10 @@ export interface OrSiderMenuProps {
2606
2606
  * On Logo Click function
2607
2607
  */
2608
2608
  onLogoClick?: React.MouseEventHandler<HTMLDivElement> | undefined;
2609
+ /**
2610
+ * logo
2611
+ */
2612
+ logo?: React.ReactNode;
2609
2613
  }
2610
2614
  export const OrSiderMenu: React.FC<OrSiderMenuProps>;
2611
2615
  export interface AtSpaceProps {
@@ -2809,6 +2813,7 @@ export interface OrModuleCalendarHeaderProps {
2809
2813
  onSearch?: AtSelectProps['onSearch'];
2810
2814
  showSearch?: AtSelectProps['showSearch'];
2811
2815
  label: string;
2816
+ value?: AtSelectProps['value'];
2812
2817
  options: AtSelectProps['options'];
2813
2818
  onChange: AtSelectProps['onChange'];
2814
2819
  }[];
@@ -2853,6 +2858,14 @@ export interface OrModuleCalendarHeaderProps {
2853
2858
  * Handles loading state
2854
2859
  */
2855
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'];
2856
2869
  }
2857
2870
  export const OrModuleCalendarHeader: React.FC<OrModuleCalendarHeaderProps>;
2858
2871
  export interface ICustomButtons extends AtButtonProps {
@@ -3459,8 +3472,16 @@ export interface TmCalendarPageProps<_RecordType = AnyObject, FormType = any> {
3459
3472
  /** * loading state of duty data in popover
3460
3473
  */
3461
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'];
3462
3483
  }
3463
- 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, }: 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;
3464
3485
  export interface MarkersArrayMap {
3465
3486
  type: 'add' | 'oneWay' | 'return';
3466
3487
  color?: OrMarkProps['color'];
@@ -4017,6 +4038,10 @@ export interface TmLoginPhoneProps {
4017
4038
  * Show country select
4018
4039
  */
4019
4040
  showCountrySelect?: boolean;
4041
+ /**
4042
+ * logo
4043
+ */
4044
+ logo: React.ReactNode;
4020
4045
  }
4021
4046
  export const TmLoginPhone: React.FC<TmLoginPhoneProps>;
4022
4047
  export interface AtCountdownProps {
@@ -4119,6 +4144,10 @@ export interface TmLoginPhoneCodeProps {
4119
4144
  * Function to call when resend is press it
4120
4145
  */
4121
4146
  onResendPress?: () => void;
4147
+ /**
4148
+ * logo
4149
+ */
4150
+ logo?: React.ReactNode;
4122
4151
  }
4123
4152
  export const TmLoginPhoneCode: React.FC<TmLoginPhoneCodeProps>;
4124
4153
  export interface MarkersArray {
@@ -5502,6 +5531,10 @@ export interface OrDashboardLayoutProps {
5502
5531
  * AtButton props for handle the notification panel
5503
5532
  */
5504
5533
  iconButton?: AtButtonProps;
5534
+ /**
5535
+ * logo
5536
+ */
5537
+ logo?: React.ReactNode;
5505
5538
  /**
5506
5539
  * notifications drawer config
5507
5540
  */
@@ -6463,6 +6496,10 @@ export interface AtDatePickerPros {
6463
6496
  * Handles date selection
6464
6497
  */
6465
6498
  onChange?: (value: Dayjs | null) => void;
6499
+ /**
6500
+ * Set validation value
6501
+ */
6502
+ value?: DatePickerProps['value'];
6466
6503
  }
6467
6504
  export const AtDatePicker: React.FC<AtDatePickerPros>;
6468
6505
  export interface AtDateRangePickerProps {