enwawa-ui 4.1.21 → 4.1.23

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 {
@@ -2971,6 +2984,10 @@ export interface TmCrudPageProps<RecordType = AnyObject, FormType = any> {
2971
2984
  * current step
2972
2985
  */
2973
2986
  currentFormStep?: number;
2987
+ /**
2988
+ * Search table elements
2989
+ */
2990
+ searchBoxValue?: OrModuleTableHeaderProps['searchBoxValue'];
2974
2991
  /**
2975
2992
  * Search table elements
2976
2993
  */
@@ -3066,7 +3083,7 @@ export interface TmCrudPageProps<RecordType = AnyObject, FormType = any> {
3066
3083
  breadcrumbItems?: MlBreadcrumbProps['items'];
3067
3084
  padding?: string;
3068
3085
  }
3069
- export const TmCrudPage: <RecordType extends AnyObject, FormType extends Store>({ columns, data, loadingTable, formSteps, onValuesChange, onCloseLeftDrawer, leftDrawerContent, openLeftDrawer, subtitle, subContent, open, pageSize, currentPage, currentFormStep, titleLeftDrawer, leftDrawerWidth, drawerContent, showDrawerContent, showSearchBox, drawerTitle, drawerWidth, firstButtonText, secondButtonText, onClickFirstButton, onClickSecondButton, $margin, title, tableTitle, buttonAddText, addButtonOnClick, onChangePagination, onChangeTable, total, showTotal, disabledButtons, searchBoxOnSearch, searchBoxPlaceholder, tableHeaderCustomLeftElements, pagination, handleCloseCallback, tableTitleLevel, secondaryButtonText, secondaryOnClick, showFormStepper, onBack, padding, expandable, breadcrumbItems, }: TmCrudPageProps<RecordType, FormType>) => JSX.Element;
3086
+ export const TmCrudPage: <RecordType extends AnyObject, FormType extends Store>({ columns, data, loadingTable, formSteps, onValuesChange, onCloseLeftDrawer, leftDrawerContent, openLeftDrawer, subtitle, subContent, open, pageSize, currentPage, currentFormStep, titleLeftDrawer, leftDrawerWidth, drawerContent, showDrawerContent, showSearchBox, drawerTitle, drawerWidth, firstButtonText, secondButtonText, onClickFirstButton, onClickSecondButton, $margin, title, tableTitle, buttonAddText, addButtonOnClick, onChangePagination, onChangeTable, total, showTotal, disabledButtons, searchBoxOnSearch, searchBoxValue, searchBoxPlaceholder, tableHeaderCustomLeftElements, pagination, handleCloseCallback, tableTitleLevel, secondaryButtonText, secondaryOnClick, showFormStepper, onBack, padding, expandable, breadcrumbItems, }: TmCrudPageProps<RecordType, FormType>) => JSX.Element;
3070
3087
  /**
3071
3088
  * Properties for the OrEventContentDuty component.
3072
3089
  */
@@ -3459,8 +3476,16 @@ export interface TmCalendarPageProps<_RecordType = AnyObject, FormType = any> {
3459
3476
  /** * loading state of duty data in popover
3460
3477
  */
3461
3478
  loadingDutyData?: boolean;
3479
+ /**
3480
+ * Value of the time range picker
3481
+ */
3482
+ atTimeRangePickerValue?: _RangePicker1['value'] | null;
3483
+ /**
3484
+ * Set validation value
3485
+ */
3486
+ atDatePickerValue?: DatePickerProps['value'];
3462
3487
  }
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;
3488
+ 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
3489
  export interface MarkersArrayMap {
3465
3490
  type: 'add' | 'oneWay' | 'return';
3466
3491
  color?: OrMarkProps['color'];
@@ -4017,6 +4042,10 @@ export interface TmLoginPhoneProps {
4017
4042
  * Show country select
4018
4043
  */
4019
4044
  showCountrySelect?: boolean;
4045
+ /**
4046
+ * logo
4047
+ */
4048
+ logo: React.ReactNode;
4020
4049
  }
4021
4050
  export const TmLoginPhone: React.FC<TmLoginPhoneProps>;
4022
4051
  export interface AtCountdownProps {
@@ -4119,6 +4148,10 @@ export interface TmLoginPhoneCodeProps {
4119
4148
  * Function to call when resend is press it
4120
4149
  */
4121
4150
  onResendPress?: () => void;
4151
+ /**
4152
+ * logo
4153
+ */
4154
+ logo?: React.ReactNode;
4122
4155
  }
4123
4156
  export const TmLoginPhoneCode: React.FC<TmLoginPhoneCodeProps>;
4124
4157
  export interface MarkersArray {
@@ -4130,7 +4163,7 @@ export interface MarkersArray {
4130
4163
  }
4131
4164
  export interface TmMapPageProps {
4132
4165
  rightDrawer?: OrDrawerProps;
4133
- topLeftSelect: AtSelectProps;
4166
+ topLeftSelects: AtSelectProps[];
4134
4167
  topLeftButton?: AtButtonProps;
4135
4168
  map: GoogleMapProps & {
4136
4169
  GOOGLE_MAPS_API_KEY: string;
@@ -5502,6 +5535,10 @@ export interface OrDashboardLayoutProps {
5502
5535
  * AtButton props for handle the notification panel
5503
5536
  */
5504
5537
  iconButton?: AtButtonProps;
5538
+ /**
5539
+ * logo
5540
+ */
5541
+ logo?: React.ReactNode;
5505
5542
  /**
5506
5543
  * notifications drawer config
5507
5544
  */
@@ -6463,6 +6500,10 @@ export interface AtDatePickerPros {
6463
6500
  * Handles date selection
6464
6501
  */
6465
6502
  onChange?: (value: Dayjs | null) => void;
6503
+ /**
6504
+ * Set validation value
6505
+ */
6506
+ value?: DatePickerProps['value'];
6466
6507
  }
6467
6508
  export const AtDatePicker: React.FC<AtDatePickerPros>;
6468
6509
  export interface AtDateRangePickerProps {