enwawa-ui 4.1.5 → 4.1.7

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
- import React, { CSSProperties, ReactNode, ChangeEvent, SetStateAction, JSXElementConstructor, ReactElement } from "react";
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, TableProps, TableColumnsType, FormProps, ModalFuncProps, FormInstance, ModalProps as _ModalProps1, CountdownProps, 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, FormProps, CountdownProps, ModalFuncProps, FormInstance, TableProps, TableColumnsType, ModalProps as _ModalProps1, DatePickerProps, 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";
@@ -16,18 +16,20 @@ import { Gutter } from "antd/es/grid/row";
16
16
  import { ColSpec } from "@fullcalendar/resource";
17
17
  import { BlockProps, EllipsisConfig, BaseType } from "antd/es/typography/Base";
18
18
  import { TextProps as _TextProps1 } from "antd/es/typography/Text";
19
+ import { Dayjs } from "dayjs";
19
20
  import { AnyObject } from "antd/es/_util/type";
20
- import { ColumnsType, TablePaginationConfig } from "antd/es/table";
21
- import { ExpandableConfig, FilterValue, SorterResult, TableCurrentDataSource, TableRowSelection } from "antd/es/table/interface";
22
- import { DragEndEvent } from "@dnd-kit/core";
21
+ import { JSX } from "react/jsx-runtime";
22
+ import { CircleProps, GoogleMap, GoogleMapProps } from "@react-google-maps/api";
23
+ import { MessageInstance } from "antd/es/message/interface";
24
+ import { WatchOptions } from "rc-field-form/es/interface";
25
+ import { CheckboxChangeEvent } from "antd/es/checkbox";
23
26
  import { DrawerProps } from "antd/es/drawer";
24
27
  import { IconComponentProps } from "@ant-design/icons/lib/components/Icon";
25
28
  import * as Icons from "@ant-design/icons";
26
- import { GoogleMapProps, CircleProps, GoogleMap } from "@react-google-maps/api";
27
- import { WatchOptions } from "rc-field-form/es/interface";
29
+ import { ColumnsType, TablePaginationConfig } from "antd/es/table";
30
+ import { ExpandableConfig, FilterValue, SorterResult, TableCurrentDataSource, TableRowSelection } from "antd/es/table/interface";
31
+ import { DragEndEvent } from "@dnd-kit/core";
28
32
  import { CSSProperties as _CSSProperties1 } from "styled-components";
29
- import { Dayjs } from "dayjs";
30
- import { CheckboxChangeEvent } from "antd/es/checkbox";
31
33
  import { RangePickerProps } from "antd/lib/date-picker";
32
34
  import { LinkProps } from "antd/es/typography/Link";
33
35
  import { RadioChangeEvent as _RadioChangeEvent1 } from "antd/es/radio";
@@ -2693,117 +2695,6 @@ export interface OrHeaderProps {
2693
2695
  notificationPanelHeader?: MlNotificationDropdownProps['header'];
2694
2696
  }
2695
2697
  export const OrHeader: React.FC<OrHeaderProps>;
2696
- export interface OrDashboardLayoutProps {
2697
- /**
2698
- * Indicate if the menu is collapsed
2699
- */
2700
- collapsed?: boolean;
2701
- /**
2702
- * Children components
2703
- */
2704
- children?: React.ReactNode;
2705
- /**
2706
- * Menu items to show in sider menu
2707
- */
2708
- menuItems?: OrSiderMenuProps['items'];
2709
- /**
2710
- * On click collapsed button
2711
- */
2712
- onClickCollapsed?: () => void;
2713
- /**
2714
- * Called when a menu item is clicked
2715
- */
2716
- onClick?: OrSiderMenuProps['onClick'];
2717
- /**
2718
- * Called when a bottom menu item is clicked
2719
- */
2720
- onClickBottomItems?: OrSiderMenuProps['onClick'];
2721
- /**
2722
- * Called when a menu item is selected
2723
- */
2724
- onSelect?: OrSiderMenuProps['onSelect'];
2725
- /**
2726
- * Called when a region item is selected
2727
- */
2728
- onSelectCountry?: OrHeaderProps['onSelect'];
2729
- /**
2730
- * Header select options
2731
- */
2732
- countrySelectOptions?: OrHeaderProps['countrySelectOptions'];
2733
- /**
2734
- * Header select options
2735
- */
2736
- countrySelectID?: OrHeaderProps['countrySelectID'];
2737
- /**
2738
- * Header nav items
2739
- */
2740
- navItems?: OrHeaderProps['navItems'];
2741
- /**
2742
- * Header avatar
2743
- */
2744
- avatar?: OrHeaderProps['avatar'];
2745
- /**
2746
- * Header avatar name
2747
- */
2748
- avatarName?: OrHeaderProps['avatarName'];
2749
- /**
2750
- * Default selected country
2751
- */
2752
- selectValue?: OrHeaderProps['selectValue'];
2753
- /**
2754
- * Nav item at the end of the sider
2755
- */
2756
- bottomItems?: OrSiderMenuProps['bottomItems'];
2757
- selectedKeys?: OrSiderMenuProps['selectedKeys'];
2758
- /**
2759
- * Or header props
2760
- */
2761
- headerProps?: OrHeaderProps;
2762
- /**
2763
- * On Logo Click function
2764
- */
2765
- onLogoClick?: React.MouseEventHandler<HTMLDivElement> | undefined;
2766
- /**
2767
- * MlNotificationCard props to render
2768
- */
2769
- notifications?: MlNotificationCardProps[];
2770
- /**
2771
- * Props that use the header of the notifications panel for render
2772
- */
2773
- notificationPanelHeader?: MlNotificationDropdownProps['header'];
2774
- /**
2775
- * AtButton props for handle the notification panel
2776
- */
2777
- iconButton?: AtButtonProps;
2778
- }
2779
- export const OrDashboardLayout: React.FC<OrDashboardLayoutProps>;
2780
- export interface OrDescriptionsProps extends DescriptionsProps {
2781
- /**
2782
- * The ID for input
2783
- */
2784
- id?: string;
2785
- /**
2786
- * Title of the description set
2787
- */
2788
- title: string;
2789
- /**
2790
- * Whether the table has border or not
2791
- */
2792
- bordered?: boolean;
2793
- /**
2794
- * Items to display
2795
- */
2796
- items: DescriptionsProps['items'];
2797
- /**
2798
- * Extra content to display
2799
- */
2800
- extra?: DescriptionsProps['extra'];
2801
- /**
2802
- * variation between : 'common' | 'no-header' | 'list'
2803
- */
2804
- variation?: 'common' | 'no-header' | 'list';
2805
- }
2806
- export const OrDescriptions: React.FC<OrDescriptionsProps>;
2807
2698
  export interface OrStepProp {
2808
2699
  /**
2809
2700
  * To set the current step, counting from 0. You can overwrite this state by using status of Step
@@ -2863,6 +2754,68 @@ export interface OrStepProp {
2863
2754
  $lineHeight?: string;
2864
2755
  }
2865
2756
  export const OrStep: React.FC<OrStepProp>;
2757
+ export interface OrModuleCalendarHeaderProps {
2758
+ /**
2759
+ * Actual display date
2760
+ */
2761
+ displayDate: string;
2762
+ /**
2763
+ * handles segment change
2764
+ */
2765
+ onChangeSegment: AtSegmentedProps['onChange'];
2766
+ /**
2767
+ * Options for the segment control.
2768
+ */
2769
+ segmentOptions?: AtSegmentedProps['options'];
2770
+ /**
2771
+ * Columns for select filters.
2772
+ */
2773
+ columnsFilters?: {
2774
+ onSearch?: AtSelectProps['onSearch'];
2775
+ showSearch?: AtSelectProps['showSearch'];
2776
+ label: string;
2777
+ options: AtSelectProps['options'];
2778
+ onChange: AtSelectProps['onChange'];
2779
+ }[];
2780
+ /**
2781
+ * Columns for buttons filters.
2782
+ */
2783
+ buttonsFilters?: {
2784
+ label: string;
2785
+ onClick: AtButtonProps['onClick'];
2786
+ icon: AtButtonProps['icon'];
2787
+ }[];
2788
+ /**
2789
+ * Button value
2790
+ */
2791
+ buttonValue?: string;
2792
+ /**
2793
+ * Icon for first button
2794
+ */
2795
+ buttonIcon?: string;
2796
+ /**
2797
+ * Button onClick
2798
+ */
2799
+ buttonOnClick?: (React.MouseEventHandler<HTMLAnchorElement> & React.MouseEventHandler<HTMLButtonElement>) | undefined;
2800
+ /**
2801
+ * Left Arrow Button onClick
2802
+ */
2803
+ leftArrowOnOnClick?: (React.MouseEventHandler<HTMLAnchorElement> & React.MouseEventHandler<HTMLButtonElement>) | undefined;
2804
+ /**
2805
+ * Right Arrow Button onClick
2806
+ */
2807
+ rightArrowOnOnClick?: (React.MouseEventHandler<HTMLAnchorElement> & React.MouseEventHandler<HTMLButtonElement>) | undefined;
2808
+ filterText?: string;
2809
+ /**
2810
+ * Handles date selection
2811
+ */
2812
+ onSelectDate?: (value: Dayjs | null) => void;
2813
+ /**
2814
+ * Handles loading state
2815
+ */
2816
+ loadingSearchFilter?: boolean;
2817
+ }
2818
+ export const OrModuleCalendarHeader: React.FC<OrModuleCalendarHeaderProps>;
2866
2819
  export interface ICustomButtons extends AtButtonProps {
2867
2820
  label: string;
2868
2821
  hidden?: boolean;
@@ -3074,2635 +3027,2729 @@ export interface TmCrudPageProps<RecordType = AnyObject, FormType = any> {
3074
3027
  breadcrumbItems?: MlBreadcrumbProps['items'];
3075
3028
  padding?: string;
3076
3029
  }
3077
- 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>) => import("react/jsx-runtime").JSX.Element;
3078
- export interface OrDetailsPageProps<FormType = any> {
3030
+ 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;
3031
+ /**
3032
+ * Properties for the OrEventContentDuty component.
3033
+ */
3034
+ export interface OrEventContentDutyProps {
3079
3035
  /**
3080
- * The ID for input
3036
+ * Status of the event, corresponding to a key in EVENTS_POPOVER_COLORS.
3081
3037
  */
3082
- id?: string;
3038
+ status: keyof typeof EVENTS_POPOVER_COLORS;
3083
3039
  /**
3084
- * Title of the description set
3040
+ * Text representing the status of the event.
3085
3041
  */
3086
- title: string;
3042
+ statusText: string;
3087
3043
  /**
3088
- * Whether the table has border or not
3044
+ * Text representing the route of the event.
3089
3045
  */
3090
- bordered?: boolean;
3046
+ routeText: string;
3091
3047
  /**
3092
- * Items to display
3048
+ * Name of the driver associated with the event (optional).
3093
3049
  */
3094
- items: OrDescriptionsProps['items'];
3050
+ driverName?: string;
3095
3051
  /**
3096
- * Extra content to display
3052
+ * Callback function to handle popover click events.
3097
3053
  */
3098
- extra?: OrDescriptionsProps['extra'];
3054
+ onClickPopOver: () => void;
3099
3055
  /**
3100
- * Form Steps info
3056
+ * Text for the popover action (optional).
3101
3057
  */
3102
- formSteps?: IFormStep<FormType>[];
3058
+ actionPopOverText?: string;
3103
3059
  /**
3104
- * On press cancel and close button function
3060
+ * Start time of the event, can be a number, Date, or string.
3105
3061
  */
3106
- handleCloseCallback?: () => void;
3062
+ start: number | Date | string;
3107
3063
  /**
3108
- * State of the drawer
3064
+ * End time of the event, can be a number, Date, or string.
3109
3065
  */
3110
- open?: boolean;
3066
+ end: number | Date | string;
3111
3067
  /**
3112
- * Drawer Content
3068
+ * Title of the event.
3113
3069
  */
3114
- drawerContent?: React.ReactNode;
3070
+ title: string;
3115
3071
  /**
3116
- * Drawer Title
3072
+ * start hour of the event.
3117
3073
  */
3118
- drawerTitle?: React.ReactNode;
3074
+ startTime: string;
3119
3075
  /**
3120
- * Drawer Width
3076
+ * end hour of the event.
3121
3077
  */
3122
- drawerWidth?: number;
3078
+ endTime: string;
3079
+ }
3080
+ export const EVENTS_POPOVER_COLORS: {
3081
+ inProgress: string;
3082
+ scheduled: string;
3083
+ completed: string;
3084
+ cancelled: string;
3085
+ late: string;
3086
+ noAssigned: string;
3087
+ };
3088
+ export const OrEventContentDuty: React.FC<OrEventContentDutyProps>;
3089
+ /**
3090
+ * Properties for the OrResourceArea for timelines calendar
3091
+ */
3092
+ export interface OrResourceAreaProps {
3123
3093
  /**
3124
- * Disable buttons drawer
3094
+ * Title of the resource.
3125
3095
  */
3126
- disabledButtons?: boolean;
3096
+ title?: string;
3127
3097
  /**
3128
- * current step
3098
+ * Subtitle of the resource.
3129
3099
  */
3130
- currentFormStep?: number;
3100
+ subtitle?: string;
3131
3101
  /**
3132
- * button optional text
3102
+ * Description of the resource.
3133
3103
  */
3134
- showFormStepper?: boolean;
3104
+ description?: string;
3135
3105
  /**
3136
- * On change form content
3106
+ * On select the checkbox of the resource.
3137
3107
  */
3138
- onValuesChange?: OrFormProps['onValuesChange'];
3108
+ onSelectResource?: () => void;
3139
3109
  /**
3140
- * config the OrAlert component showed
3110
+ * Icon name for the resource.
3141
3111
  */
3142
- orAlertConfig?: OrAlertProps;
3112
+ iconName?: AtIconProps['name'];
3143
3113
  }
3144
- export const OrDetailsPage: <FormType extends Store>({ title, bordered, items, extra, formSteps, handleCloseCallback, open, drawerTitle, drawerWidth, disabledButtons, currentFormStep, showFormStepper, onValuesChange, orAlertConfig, }: OrDetailsPageProps<FormType>) => import("react/jsx-runtime").JSX.Element;
3145
- interface OrDownloadProps {
3114
+ export const OrResourceArea: React.FC<OrResourceAreaProps>;
3115
+ export interface TmCalendarPageProps<_RecordType = AnyObject, FormType = any> {
3146
3116
  /**
3147
- * The function to call when the download button is clicked
3117
+ * Loading status of table
3148
3118
  */
3149
- downloadOnClick?: () => any;
3119
+ loadingTable?: boolean;
3150
3120
  /**
3151
- * The text to display on the download button
3121
+ * Config of pagination. You can ref table pagination config or full pagination document, hide it by setting it to false
3152
3122
  */
3153
- downloadText: string;
3154
- }
3155
- export interface OrDownloadUploadProps {
3123
+ pagination?: OrTableProps['pagination'];
3156
3124
  /**
3157
- * Key identifier
3125
+ * Row's unique key, could be a string or function that returns a string
3158
3126
  */
3159
- inputKey: string;
3127
+ rowKey?: OrTableProps['rowKey'];
3160
3128
  /**
3161
- * The function to call when the value of the file changes
3129
+ * On change form content
3162
3130
  */
3163
- getValueFromEvent?: (e: any) => any;
3131
+ onValuesChange?: OrFormProps['onValuesChange'];
3164
3132
  /**
3165
- * The rules for the file
3133
+ * Callback when pagination changes
3166
3134
  */
3167
- rules?: MlFromItemProps['rules'];
3135
+ onChangeTable?: OrTableProps['onChange'];
3168
3136
  /**
3169
- * If the file is required
3137
+ * Extendable table TM CrudPage
3170
3138
  */
3171
- isRequired?: boolean;
3172
- downloadProps: OrDownloadProps;
3173
- uploadProps: MlUploadProps;
3174
- disabled?: boolean;
3139
+ expandable?: OrTableProps['expandable'];
3175
3140
  /**
3176
- * The mode of the upload
3141
+ * On press cancel and close button function
3177
3142
  */
3178
- mode?: 'drag' | 'basic';
3179
- }
3180
- export const OrDownloadUpload: React.FC<OrDownloadUploadProps>;
3181
- export type OrColumnsType<T = unknown> = ColumnsType<T>;
3182
- export type OnChangeTable<RecordType = AnyObject> = (pagination: TablePaginationConfig, filters: Record<string, FilterValue | null>, sorter: SorterResult<RecordType> | SorterResult<RecordType>[], extra: TableCurrentDataSource<RecordType>) => void;
3183
- export interface OrTableProps<RecordType = AnyObject> {
3143
+ handleCloseCallback?: () => void;
3184
3144
  /**
3185
- * Whether to show all table borders
3145
+ * State of the drawer
3186
3146
  */
3187
- bordered?: boolean;
3147
+ open?: boolean;
3188
3148
  /**
3189
- * Columns of table
3149
+ * Page title
3190
3150
  */
3191
- columns: TableProps<RecordType>['columns'];
3151
+ title?: string;
3192
3152
  /**
3193
- * Data record array to be displayed
3153
+ * Page subtitle
3194
3154
  */
3195
- dataSource: TableProps<RecordType>['dataSource'];
3155
+ subtitle?: string;
3196
3156
  /**
3197
- * Loading status of table
3157
+ * Page subtitle content
3198
3158
  */
3199
- loading?: TableProps<RecordType>['loading'];
3159
+ subContent?: string;
3200
3160
  /**
3201
- * Config of pagination. You can ref table pagination config or full pagination document, hide it by setting it to false
3161
+ * Page table title
3202
3162
  */
3203
- pagination?: TableProps<RecordType>['pagination'];
3163
+ tableTitle?: string;
3204
3164
  /**
3205
- * Row's unique key, could be a string or function that returns a string
3165
+ * Button value text
3206
3166
  */
3207
- rowKey?: TableProps<RecordType>['rowKey'];
3167
+ buttonAddText?: string;
3208
3168
  /**
3209
- * Size of table
3169
+ * Callback when add button is pressed
3210
3170
  */
3211
- size?: 'large' | 'middle' | 'small';
3171
+ addButtonOnClick?: OrModuleTableHeaderProps['buttonOnClick'];
3212
3172
  /**
3213
- * Set sticky header and scroll bar
3173
+ * Callback when pagination changes
3214
3174
  */
3215
- sticky?: boolean;
3175
+ onChangePagination?: MlPaginationProps['onChange'];
3216
3176
  /**
3217
- * Table title renderer
3177
+ * Total table elements
3218
3178
  */
3219
- title?: TableProps<RecordType>['title'];
3179
+ total?: MlPaginationProps['total'];
3220
3180
  /**
3221
- * Callback executed when pagination, filters or sorter is changed
3181
+ * Way to display total pagination table
3222
3182
  */
3223
- onChange?: OnChangeTable<RecordType>;
3183
+ showTotal?: MlPaginationProps['showTotal'];
3224
3184
  /**
3225
- * row selection config
3185
+ * Table page size
3226
3186
  */
3227
- rowSelection?: TableProps<RecordType>['rowSelection'];
3187
+ pageSize?: MlPaginationProps['pageSize'];
3228
3188
  /**
3229
- * Set the scroll of table, could be a number that indicates the width of the scroll area, or an object that has the following properties: x number | string, y number | string
3189
+ * Current page table
3230
3190
  */
3231
- scroll?: TableProps<RecordType>['scroll'];
3232
- /**
3233
- * Set the expandable of table
3234
- * */
3235
- expandable?: ExpandableConfig<RecordType> | undefined;
3191
+ currentPage?: number;
3236
3192
  /**
3237
- * components of table
3193
+ * Disable buttons drawer
3238
3194
  */
3239
- components?: TableProps<RecordType>['components'];
3240
- }
3241
- export const OrTable: <RecordType extends AnyObject>({ bordered, loading, pagination, size, sticky, rowSelection, ...props }: OrTableProps<RecordType>) => import("react/jsx-runtime").JSX.Element;
3242
- /**
3243
- * Props for the SortableContextWrapper component.
3244
- */
3245
- export interface OrSortableContextWrapperProps<RecordType = AnyObject> {
3195
+ disabledButtons?: boolean;
3246
3196
  /**
3247
- * An array of items to be sorted.
3197
+ * Form Steps info
3248
3198
  */
3249
- items: TableProps<RecordType>['dataSource'];
3199
+ formSteps?: IFormStep<FormType>[];
3250
3200
  /**
3251
- * Callback function that is called when dragging ends.
3201
+ * current step
3252
3202
  */
3253
- onDragEnd: (event: DragEndEvent) => any;
3203
+ currentFormStep?: number;
3254
3204
  /**
3255
- * The child nodes to be rendered within the sortable context.
3205
+ * Search table elements
3256
3206
  */
3257
- children: React.ReactNode;
3258
- }
3259
- export const OrSortableContextWrapper: React.FC<OrSortableContextWrapperProps>;
3260
- interface RowProps extends React.HTMLAttributes<HTMLTableRowElement> {
3261
- 'data-row-key': string;
3262
- showDraggableIcon?: boolean;
3263
- }
3264
- export const OrSortableRow: React.FC<RowProps>;
3265
- export interface OrDraggableTableProps<RecordType = AnyObject> {
3207
+ searchBoxOnSearch?: OrModuleTableHeaderProps['searchBoxOnSearch'];
3266
3208
  /**
3267
- * Whether to show all table borders
3209
+ * title of drawer
3268
3210
  */
3269
- bordered?: boolean;
3211
+ titleLeftDrawer?: ReactNode;
3270
3212
  /**
3271
- * Columns of table
3213
+ * Specify a callback that will be called when a user clicks mask, close button or Cancel button
3272
3214
  */
3273
- columns: TableColumnsType<any>;
3215
+ onCloseLeftDrawer?: (e: React.MouseEvent | React.KeyboardEvent) => void;
3274
3216
  /**
3275
- * Data record array to be displayed
3217
+ * whether left drawer is open or close
3276
3218
  */
3277
- data: _TableProps1<RecordType>['dataSource'];
3219
+ openLeftDrawer?: boolean;
3278
3220
  /**
3279
- *
3280
- * onDragEnd function to execute
3221
+ * Children for Left Drawer
3281
3222
  */
3282
- onDragEnd: (event: DragEndEvent) => any;
3223
+ leftDrawerContent?: React.ReactNode;
3283
3224
  /**
3284
- * Whether to show draggable icon
3225
+ * Custom component to render at left side of table header
3285
3226
  */
3286
- showDraggableIcon?: boolean;
3287
- }
3288
- export const OrDraggableTable: <RecordType extends AnyObject>({ data, columns, onDragEnd, showDraggableIcon, }: OrDraggableTableProps<RecordType>) => import("react/jsx-runtime").JSX.Element;
3289
- export interface OrDrawerProps {
3227
+ tableHeaderCustomLeftElements?: React.ReactNode;
3290
3228
  /**
3291
- * The ID for input
3229
+ * Drawer Width
3292
3230
  */
3293
- id?: string;
3231
+ leftDrawerWidth?: number;
3294
3232
  /**
3295
- * Whether Drawer should get focused after open
3233
+ * searchBox placeHolder
3296
3234
  */
3297
- autoFocus?: boolean;
3235
+ searchBoxPlaceholder?: string;
3298
3236
  /**
3299
- * Callback after the animation ends when switching drawers
3237
+ * show search box
3300
3238
  */
3301
- afterOpenChange?: (open: boolean) => void;
3239
+ showSearchBox?: boolean;
3302
3240
  /**
3303
- * Style of the drawer content part
3241
+ * Drawer Content
3304
3242
  */
3305
- bodyStyle?: CSSProperties;
3243
+ drawerContent?: React.ReactNode;
3306
3244
  /**
3307
- * Config Drawer Panel className. Use rootClassName if want to config top dom style
3245
+ * Drawer Title
3308
3246
  */
3309
- className?: string;
3247
+ drawerTitle?: React.ReactNode;
3310
3248
  /**
3311
- * Custom close icon. 5.7.0: close button will be hidden when setting to null or false
3249
+ * Drawer Width
3312
3250
  */
3313
- closeIcon?: boolean | ReactNode;
3251
+ drawerWidth?: number;
3314
3252
  /**
3315
- * Style of the drawer wrapper of content part
3253
+ * Text of first button
3316
3254
  */
3317
- contentWrapperStyle?: CSSProperties;
3255
+ firstButtonText?: string;
3318
3256
  /**
3319
- * Whether to unmount child components on closing drawer or not
3257
+ * Text of second button
3320
3258
  */
3321
- destroyOnClose?: boolean;
3259
+ secondButtonText?: string;
3322
3260
  /**
3323
- * Extra actions area at corner
3261
+ * Function to execute when first button is clicked
3324
3262
  */
3325
- extra?: ReactNode;
3263
+ onClickFirstButton?: () => void;
3326
3264
  /**
3327
- * The footer for Drawer
3265
+ * Function to execute when second button is clicked
3328
3266
  */
3329
- footer?: ReactNode;
3267
+ onClickSecondButton?: () => void;
3330
3268
  /**
3331
- * Style of the drawer footer part
3269
+ * Show drawer content
3332
3270
  */
3333
- footerStyle?: CSSProperties;
3271
+ showDrawerContent?: boolean;
3334
3272
  /**
3335
- * Pre-render Drawer component forcibly
3273
+ * margin
3336
3274
  */
3337
- forceRender?: boolean;
3275
+ $margin?: string;
3338
3276
  /**
3339
- * mounted node and display window for Drawer
3277
+ * table title level
3340
3278
  */
3341
- getContainer?: DrawerProps['getContainer'];
3279
+ tableTitleLevel?: 1 | 2 | 3 | 4 | 5;
3342
3280
  /**
3343
- * Style of the drawer header part
3281
+ * button optional text
3344
3282
  */
3345
- headerStyle?: CSSProperties;
3283
+ secondaryButtonText?: string;
3346
3284
  /**
3347
- * Placement is top or bottom, height of the Drawer dialog
3285
+ * button optional onClick
3348
3286
  */
3349
- height?: string | number;
3287
+ secondaryOnClick?: () => void;
3350
3288
  /**
3351
- * Whether support press esc to close
3289
+ * button optional text
3352
3290
  */
3353
- keyboard?: boolean;
3291
+ showFormStepper?: boolean;
3292
+ onBack?: () => void;
3293
+ resources: OrCalendarProps['resources'];
3294
+ events: OrCalendarProps['events'];
3295
+ resourceTitle: OrCalendarProps['resourceTitle'];
3354
3296
  /**
3355
- * Whether to show mask or not
3297
+ * Actual display date
3356
3298
  */
3357
- mask?: boolean;
3299
+ displayDate: string;
3358
3300
  /**
3359
- * Clicking on the mask (area outside the Drawer) to close the Drawer or not
3301
+ * handles segment change
3360
3302
  */
3361
- maskClosable?: boolean;
3303
+ onChangeSegment?: AtSegmentedProps['onChange'];
3362
3304
  /**
3363
- * Style for Drawer's mask element
3305
+ * Options for the segment control.
3364
3306
  */
3365
- maskStyle?: CSSProperties;
3307
+ segmentOptions?: AtSegmentedProps['options'];
3366
3308
  /**
3367
- * The placement of the Drawer
3309
+ * Columns for select filters.
3368
3310
  */
3369
- placement?: 'top' | 'right' | 'bottom' | 'left';
3311
+ columnsFilters?: OrModuleCalendarHeaderProps['columnsFilters'];
3370
3312
  /**
3371
- * Nested drawers push behavior
3313
+ * Columns for buttons filters.
3372
3314
  */
3373
- push?: boolean | {
3374
- distance: string | number;
3375
- };
3315
+ buttonsFilters?: {
3316
+ label: string;
3317
+ onClick: AtButtonProps['onClick'];
3318
+ icon: AtButtonProps['icon'];
3319
+ }[];
3376
3320
  /**
3377
- * The class name of the container of the Drawer dialog
3321
+ * Custom event content
3378
3322
  */
3379
- rootClassName?: string;
3380
- /**
3381
- * Style of wrapper element which contains mask compare to style
3382
- */
3383
- rootStyle?: CSSProperties;
3323
+ eventContent?: (eventInfo: {
3324
+ event: OrCalendarProps['events'];
3325
+ }) => React.ReactNode;
3384
3326
  /**
3385
- * Style of Drawer panel. Use bodyStyle if want to config body only
3327
+ * Icon for first button
3386
3328
  */
3387
- style?: CSSProperties;
3329
+ buttonIcon?: string;
3388
3330
  /**
3389
- * preset size of drawer, default 378px and large 736px
3331
+ * Button onClick
3390
3332
  */
3391
- size?: 'default' | 'large';
3333
+ buttonOnClick?: (React.MouseEventHandler<HTMLAnchorElement> & React.MouseEventHandler<HTMLButtonElement>) | undefined;
3392
3334
  /**
3393
- * The title for Drawer
3335
+ * text for filtering
3394
3336
  */
3395
- title?: ReactNode;
3337
+ filterText: string;
3396
3338
  /**
3397
- * Whether the Drawer dialog is visible or not
3339
+ * text for popover action
3398
3340
  */
3399
- open?: boolean;
3341
+ actionPopOverText?: string;
3400
3342
  /**
3401
- * Width of the Drawer dialog
3343
+ * Left Arrow Button onClick
3402
3344
  */
3403
- width?: string | number;
3345
+ leftArrowOnOnClick?: (React.MouseEventHandler<HTMLAnchorElement> & React.MouseEventHandler<HTMLButtonElement>) | undefined;
3404
3346
  /**
3405
- * The z-index of the Drawer
3347
+ * Right Arrow Button onClick
3406
3348
  */
3407
- zIndex?: number;
3349
+ rightArrowOnOnClick?: (React.MouseEventHandler<HTMLAnchorElement> & React.MouseEventHandler<HTMLButtonElement>) | undefined;
3408
3350
  /**
3409
- * Specify a callback that will be called when a user clicks mask, close button or Cancel button
3351
+ * Current date of the calendar
3410
3352
  */
3411
- onClose?: (e: React.MouseEvent | React.KeyboardEvent) => void;
3353
+ currentDate: Date | string | number;
3412
3354
  /**
3413
- * Children of the drawer
3355
+ * Handles resource select
3414
3356
  */
3415
- children?: React.ReactNode;
3416
- }
3417
- export const OrDrawer: React.FC<OrDrawerProps>;
3418
- export interface OrEmptyProps {
3357
+ onSelectResource?: (id: string) => void;
3419
3358
  /**
3420
- * The main text of the empty card
3359
+ * Handles date selection
3421
3360
  */
3422
- title: string;
3361
+ onSelectDate?: (value: Dayjs | null) => void;
3423
3362
  /**
3424
- * The additional text of the empty card
3363
+ * Handles loading state
3425
3364
  */
3426
- description: string;
3365
+ loadingSearchFilter?: boolean;
3427
3366
  }
3428
- export const OrEmpty: React.FC<OrEmptyProps>;
3429
- /**
3430
- * Properties for the OrEventContentDuty component.
3431
- */
3432
- export interface OrEventContentDutyProps {
3433
- /**
3434
- * Status of the event, corresponding to a key in EVENTS_POPOVER_COLORS.
3435
- */
3436
- status: keyof typeof EVENTS_POPOVER_COLORS;
3367
+ 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, $margin, title, actionPopOverText, disabledButtons, handleCloseCallback, showFormStepper, onBack, events, resources, resourceTitle, displayDate, onChangeSegment, segmentOptions, columnsFilters, buttonsFilters, filterText, leftArrowOnOnClick, rightArrowOnOnClick, currentDate, onSelectResource, loadingSearchFilter, onSelectDate, loadingTable, }: TmCalendarPageProps<RecordType, FormType>) => JSX.Element;
3368
+ export interface MarkersArrayMap {
3369
+ type: 'add' | 'oneWay' | 'return';
3370
+ color?: OrMarkProps['color'];
3371
+ backgroundColor?: string;
3372
+ size?: OrMarkProps['size'];
3373
+ marks: OrMarkProps[];
3374
+ polyLine: boolean;
3375
+ onClickMarker?: (item: OrMarkProps) => void;
3376
+ popOverButtonText?: string;
3377
+ title?: string;
3378
+ }
3379
+ export interface TmCustomMapPageProps<FormType = any> extends OrModuleTableHeaderProps {
3380
+ map: GoogleMapProps & {
3381
+ GOOGLE_MAPS_API_KEY: string;
3382
+ ref?: React.RefObject<GoogleMap>;
3383
+ };
3384
+ staticMarkers?: MarkersArrayMap[];
3385
+ realtimeMarkers?: MarkersArrayMap[];
3437
3386
  /**
3438
- * Text representing the status of the event.
3387
+ * State of the drawer
3439
3388
  */
3440
- statusText: string;
3389
+ open?: boolean;
3441
3390
  /**
3442
- * Text representing the route of the event.
3391
+ * On press cancel and close button function
3443
3392
  */
3444
- routeText: string;
3393
+ handleCloseCallback?: () => void;
3445
3394
  /**
3446
- * Name of the driver associated with the event (optional).
3395
+ * Disable buttons drawer
3447
3396
  */
3448
- driverName?: string;
3397
+ disabledButtons?: boolean;
3449
3398
  /**
3450
- * Callback function to handle popover click events.
3399
+ * Form Steps info
3451
3400
  */
3452
- onClickPopOver: () => void;
3401
+ formSteps?: IFormStep<FormType>[];
3453
3402
  /**
3454
- * Text for the popover action (optional).
3403
+ * current step
3455
3404
  */
3456
- actionPopOverText?: string;
3405
+ currentFormStep?: number;
3457
3406
  /**
3458
- * Start time of the event, can be a number, Date, or string.
3407
+ * Drawer Content
3459
3408
  */
3460
- start: number | Date | string;
3409
+ drawerContent?: React.ReactNode;
3461
3410
  /**
3462
- * End time of the event, can be a number, Date, or string.
3411
+ * Drawer Title
3463
3412
  */
3464
- end: number | Date | string;
3413
+ drawerTitle?: React.ReactNode;
3465
3414
  /**
3466
- * Title of the event.
3415
+ * Drawer Title
3467
3416
  */
3468
- title: string;
3417
+ drawerTitleSecondary?: React.ReactNode;
3469
3418
  /**
3470
- * start hour of the event.
3419
+ * Drawer Width
3471
3420
  */
3472
- startTime: string;
3421
+ drawerWidth?: number;
3473
3422
  /**
3474
- * end hour of the event.
3423
+ * Drawer Width
3475
3424
  */
3476
- endTime: string;
3477
- }
3478
- export const EVENTS_POPOVER_COLORS: {
3479
- inProgress: string;
3480
- scheduled: string;
3481
- completed: string;
3482
- cancelled: string;
3483
- late: string;
3484
- noAssigned: string;
3485
- };
3486
- export const OrEventContentDuty: React.FC<OrEventContentDutyProps>;
3487
- export interface OrFlagGridProps {
3425
+ drawerWidthSecondary?: number;
3488
3426
  /**
3489
- * The ID for cards
3427
+ * Text of first button
3490
3428
  */
3491
- id?: string;
3429
+ firstButtonText?: string;
3492
3430
  /**
3493
- * Country data to show elements into the grid
3431
+ * Text of second button
3494
3432
  */
3495
- data?: OrCountryCardProps[];
3433
+ secondButtonText?: string;
3496
3434
  /**
3497
- * Number of items that can contain a row
3435
+ * Function to execute when first button is clicked
3498
3436
  */
3499
- itemsPerRow?: number;
3437
+ onClickFirstButton?: () => void;
3500
3438
  /**
3501
- * Index selected Item
3439
+ * Function to execute when second button is clicked
3502
3440
  */
3503
- selectedItem?: number;
3441
+ onClickSecondButton?: () => void;
3504
3442
  /**
3505
- * Callback when card is clicked
3443
+ * Show drawer content
3506
3444
  */
3507
- onSelectCard?: (index: number) => void;
3508
- }
3509
- export const OrFlagGrid: React.FC<OrFlagGridProps>;
3510
- export interface OrFormProps extends FormProps {
3511
- children: React.ReactNode;
3512
- }
3513
- export const OrForm: React.FC<OrFormProps>;
3514
- export interface AtSpaceCompactProps {
3445
+ showDrawerContent?: boolean;
3515
3446
  /**
3516
- * The ID for input
3447
+ * margin
3517
3448
  */
3518
- id?: string;
3449
+ $margin?: string;
3519
3450
  /**
3520
- * Option to fit width to its parent's width
3451
+ * table title level
3521
3452
  */
3522
- block?: boolean;
3453
+ tableTitleLevel?: 1 | 2 | 3 | 4 | 5;
3523
3454
  /**
3524
- * Set direction of layout
3455
+ * button optional text
3525
3456
  */
3526
- direction?: 'vertical' | 'horizontal';
3457
+ secondaryButtonText?: string;
3527
3458
  /**
3528
- * Set child component size
3459
+ * button optional onClick
3529
3460
  */
3530
- size?: 'large' | 'middle' | 'small';
3461
+ secondaryOnClick?: () => void;
3531
3462
  /**
3532
- * Children of the OrSpace
3463
+ * button optional text
3533
3464
  */
3534
- children?: React.ReactNode;
3535
- }
3536
- export const OrSpaceCompact: React.FC<AtSpaceCompactProps>;
3537
- export interface OrPhoneInputProps {
3465
+ showFormStepper?: boolean;
3466
+ onBack?: () => void;
3538
3467
  /**
3539
- * Name of input
3468
+ * On change form content
3540
3469
  */
3541
- name?: string;
3470
+ onValuesChange?: OrFormProps['onValuesChange'];
3542
3471
  /**
3543
- * Dial codes options
3472
+ * Button value text
3544
3473
  */
3545
- options: AtSelectProps['options'];
3474
+ buttonAddText?: string;
3546
3475
  /**
3547
- * Disabled input
3476
+ * Callback when add button is pressed
3548
3477
  */
3549
- disabled?: boolean;
3550
- /**
3551
- * Rules for validation
3552
- * @default []
3553
- */
3554
- rules?: MlFromItemProps['rules'];
3555
- }
3556
- export const OrPhoneInput: React.FC<OrPhoneInputProps>;
3557
- export interface OrSelectInputProps {
3478
+ addButtonOnClick?: OrModuleTableHeaderProps['buttonOnClick'];
3558
3479
  /**
3559
- * Dial codes options
3480
+ * Custom component to render at left side of table header
3560
3481
  */
3561
- options: AtSelectProps['options'];
3482
+ tableHeaderCustomLeftElements?: React.ReactNode;
3562
3483
  /**
3563
- * Disabled input
3484
+ * padding
3564
3485
  */
3565
- disabled?: boolean;
3486
+ padding?: string;
3566
3487
  /**
3567
- * Rules for validation
3568
- * @default []
3488
+ * Custom component to render on map item click popover
3569
3489
  */
3570
- rules?: MlFromItemProps['rules'][];
3571
- type?: 'number' | 'text';
3572
- fieldName: string;
3573
- inputProps?: AtTextInputProps | AtNumberInputProps;
3574
- selectProps?: AtSelectProps;
3575
- value?: {
3576
- select: string;
3577
- input: string;
3490
+ itemOnClickMap?: {
3491
+ visible: boolean;
3492
+ lat: number;
3493
+ lng: number;
3494
+ item: any;
3495
+ id: string | null;
3496
+ pictureUrl?: string;
3578
3497
  };
3579
- }
3580
- export const OrSelectInput: React.FC<OrSelectInputProps>;
3581
- export interface AtIconProps {
3582
3498
  /**
3583
- * The ID for input
3499
+ * Custom icon rendered to select a point in the map
3584
3500
  */
3585
- id?: string;
3501
+ markSelectIcon?: React.ReactNode;
3586
3502
  /**
3587
- * Name of the icon
3503
+ *markers width
3588
3504
  */
3589
- name?: keyof typeof Icons;
3505
+ markersWidth?: number;
3590
3506
  /**
3591
- * Define the color used to paint the svg element
3507
+ * Circle props
3592
3508
  */
3593
- fill?: string;
3509
+ circle?: CircleProps;
3594
3510
  /**
3595
- * The computed style of the svg element
3511
+ * Open routes modal
3596
3512
  */
3597
- style?: CSSProperties;
3513
+ openRoutesModal?: boolean;
3598
3514
  /**
3599
- * The height of the svg element
3515
+ * On press cancel and close button function
3600
3516
  */
3601
- height?: string | number;
3517
+ handleCloseCallbackSecondary?: () => void;
3602
3518
  /**
3603
- * The width of the svg element
3519
+ * Routes items
3604
3520
  */
3605
- width?: string | number;
3521
+ routesItems?: React.ReactNode;
3606
3522
  /**
3607
- * Define extra properties to the component
3523
+ * Polylines
3608
3524
  */
3609
- extraCommonProps?: {
3610
- [key: string]: any;
3611
- };
3612
- /**
3613
- * The URL generated by iconfont.cn project. Support string[] after @ant-design/icons@4.1.0
3525
+ polylines?: {
3526
+ color: string | null | undefined;
3527
+ stops: {
3528
+ latitude: number;
3529
+ longitude: number;
3530
+ }[];
3531
+ }[];
3532
+ /**
3533
+ * On click polyline
3614
3534
  */
3615
- scriptUrl?: string | string[];
3535
+ onClickPolyline?: (event: google.maps.MapMouseEvent | null, route?: any) => void;
3536
+ }
3537
+ export const TmCustomMapPage: React.FC<TmCustomMapPageProps>;
3538
+ export interface TmCustomTabsPageProps<FormType = any> {
3616
3539
  /**
3617
- * The component used for the root node
3540
+ * Avatar image
3618
3541
  */
3619
- component?: IconComponentProps['component'];
3542
+ avatar?: string;
3620
3543
  /**
3621
- * Rotate degrees (not working in IE9)
3544
+ * User name
3622
3545
  */
3623
- rotate?: number;
3546
+ username: string;
3624
3547
  /**
3625
- * Rotate icon with animation
3548
+ * User phone number
3626
3549
  */
3627
- spin?: boolean;
3550
+ phone: string;
3628
3551
  /**
3629
- * Color of the icon
3552
+ * Balance ticket label
3630
3553
  */
3631
- twoToneColor?: string;
3632
- }
3633
- export const AtIcon: React.FC<AtIconProps>;
3634
- export interface AtInputStatusProps {
3554
+ balanceLabel: string;
3635
3555
  /**
3636
- * Custom close icon. 5.7.0: close button will be hidden when setting to null or false
3556
+ * Balance ticket value
3637
3557
  */
3638
- closeIcon?: React.ReactNode;
3558
+ balanceValue: string;
3639
3559
  /**
3640
- * Set the icon of tag
3560
+ * Icon for the info part
3641
3561
  */
3642
- icon?: React.ReactNode;
3562
+ infoIcon?: AtIconProps['name'];
3643
3563
  /**
3644
- * Callback executed when tag is closed
3564
+ * Info label
3645
3565
  */
3646
- onClose?: (e: React.MouseEvent<HTMLElement>) => void;
3566
+ infoLabel?: string;
3647
3567
  /**
3648
- * Tag text
3568
+ * Info value
3649
3569
  */
3650
- children?: React.ReactNode;
3570
+ infoValue?: string;
3651
3571
  /**
3652
- * Status type
3572
+ * Main button label
3653
3573
  */
3654
- type?: 'success' | 'warning' | 'danger' | 'info' | 'default';
3655
- visible?: boolean;
3656
- }
3657
- export const AtInputStatus: React.FC<AtInputStatusProps>;
3658
- type _Size1 = 'large' | 'middle' | 'small';
3659
- export interface OrMarkProps {
3660
- id?: string;
3661
- text?: string;
3662
- color?: AtTextProps['color'];
3663
- backgroundColor?: string;
3664
- onClick?: React.MouseEventHandler<HTMLDivElement>;
3665
- size?: _Size1;
3666
- position: {
3667
- lat: number;
3668
- lng: number;
3669
- };
3670
- component?: React.ReactNode;
3671
- hasOverlay?: boolean;
3672
- translate?: number[];
3673
- }
3674
- export const OrMark: React.FC<OrMarkProps>;
3675
- export enum MarkSize {
3676
- Large = "large",
3677
- Middle = "middle",
3678
- Small = "small"
3679
- }
3680
- export interface MarkersGroup {
3681
- color?: OrMarkProps['color'];
3682
- backgroundColor?: string;
3683
- size?: OrMarkProps['size'];
3684
- marks: OrMarkProps[];
3685
- polyLine: boolean;
3686
- }
3687
- export interface OrGoogleMapsProps extends GoogleMapProps {
3574
+ mainButtonLabel: string;
3688
3575
  /**
3689
- * The origin of the route.
3576
+ * Secondary button label
3690
3577
  */
3691
- origin?: string | google.maps.LatLng | google.maps.Place | google.maps.LatLngLiteral;
3578
+ secondaryButtonLabel?: string;
3692
3579
  /**
3693
- * The destination of the route.
3580
+ * Main button icon
3694
3581
  */
3695
- destination?: string | google.maps.LatLng | google.maps.Place | google.maps.LatLngLiteral;
3582
+ mainButtonIcon?: AtIconProps['name'];
3696
3583
  /**
3697
- * Type of routing requested.
3584
+ * Secondary button icon
3698
3585
  */
3699
- travelMode?: google.maps.TravelMode;
3586
+ secondaryButtonIcon?: AtIconProps['name'];
3700
3587
  /**
3701
- * The stroke color.
3588
+ * Left arrow click event
3702
3589
  */
3703
- strokeColor?: string | null;
3590
+ onClickLeftArrow?: () => void;
3704
3591
  /**
3705
- * The stroke opacity between 0.0 and 1.0.
3592
+ * Main action click event
3706
3593
  */
3707
- strokeOpacity?: number | null;
3594
+ onClickMainAction?: () => void;
3708
3595
  /**
3709
- * The stroke width in pixels.
3596
+ * Secondary action click event
3710
3597
  */
3711
- strokeWeight?: number | null;
3598
+ onClickSecondaryAction?: () => void;
3712
3599
  /**
3713
- * The Google Maps API key.
3600
+ * Form Steps info
3714
3601
  */
3715
- GOOGLE_MAPS_API_KEY: string;
3602
+ formSteps?: IFormStep<FormType>[];
3716
3603
  /**
3717
- * Static markers.
3604
+ * On press cancel and close button function
3718
3605
  */
3719
- staticMarkers?: MarkersGroup[];
3606
+ handleCloseCallback?: () => void;
3720
3607
  /**
3721
- * Realtime markers.
3608
+ * State of the drawer
3722
3609
  */
3723
- realtimeMarkers?: MarkersGroup[];
3610
+ open?: boolean;
3724
3611
  /**
3725
- * Polylines
3612
+ * Drawer Content
3726
3613
  */
3727
- polylines?: {
3728
- color: string | null | undefined;
3729
- stops: {
3730
- latitude: number;
3731
- longitude: number;
3732
- }[];
3733
- }[];
3734
- }
3735
- export const OrGoogleMaps: React.FC<OrGoogleMapsProps>;
3736
- export const useMessage: () => readonly [import("antd/es/message/interface").MessageInstance, import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>];
3737
- export interface ModalProps extends ModalFuncProps {
3738
- variant: 'confirm' | 'warning' | 'info' | 'error';
3739
- }
3740
- export const useModal: () => {
3741
- show: (config: ModalFuncProps) => {
3742
- destroy: () => void;
3743
- update: (configUpdate: ModalFuncProps | ((prevConfig: ModalFuncProps) => ModalFuncProps)) => void;
3744
- } & {
3745
- then<T>(resolve: (confirmed: boolean) => T, reject: VoidFunction): Promise<T>;
3746
- };
3747
- setVariant: import("react").Dispatch<import("react").SetStateAction<"warning" | "info" | "error" | "confirm">>;
3748
- contextHolder: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
3749
- };
3750
- export const useForm: <T = any>() => [import("antd").FormInstance<T>];
3751
- export const useFormWatch: <T = any>(name: string | string[], form?: FormInstance | WatchOptions<FormInstance>) => T;
3752
- export type OrSelectTableOption<T = any> = {
3753
- label: string;
3754
- value: string;
3755
- fullData: T;
3756
- };
3757
- export interface OrSelectTableProps<T = any> extends AtSelectProps {
3758
- columns?: OrTableProps['columns'];
3759
- data?: OrTableProps['dataSource'];
3760
- options?: OrSelectTableOption<T>[];
3761
- fieldName: string;
3762
- rules?: MlFromItemProps['rules'][];
3763
- }
3764
- export const OrSelectTable: React.FC<OrSelectTableProps>;
3765
- interface TextProps extends AtTextProps {
3766
- text: string;
3767
- }
3768
- export interface OrFormInLineItem {
3614
+ drawerContent?: React.ReactNode;
3769
3615
  /**
3770
- * Type of components available for the form
3616
+ * Drawer Title
3771
3617
  */
3772
- component: 'radio' | 'radio-cards' | 'number-input' | 'checkbox' | 'select' | 'select-multiple' | 'text' | 'phone' | 'date-picker' | 'date-range-picker' | 'cvc' | 'name' | 'select-input' | 'info' | 'copy-info' | 'status-info' | 'file-input' | 'collapse' | 'download-upload' | 'summary' | 'qr-code' | 'select-table' | 'google-map' | 'google-autocomplete-search' | 'stepper' | 'input-list' | 'button' | 'group' | 'divider' | 'image' | 'time-range-picker' | 'autocomplete-search' | 'tabs' | 'descriptions-table' | 'draggable-table' | 'summary' | 'badge-ribbon' | 'summary-descriptions' | 'collapse-custom-vehicles';
3618
+ drawerTitle?: React.ReactNode;
3773
3619
  /**
3774
- * Label of the field
3620
+ * Drawer Width
3775
3621
  */
3776
- label?: string | string[];
3622
+ drawerWidth?: number;
3777
3623
  /**
3778
- * Key identifier
3624
+ * Disable buttons drawer
3779
3625
  */
3780
- key?: string;
3626
+ disabledButtons?: boolean;
3781
3627
  /**
3782
- * Field name (develop purpose)
3628
+ * current step
3783
3629
  */
3784
- fieldName: string;
3630
+ currentFormStep?: number;
3785
3631
  /**
3786
- * Place holder (only for inputs)
3632
+ * button optional text
3787
3633
  */
3788
- placeHolder?: string;
3634
+ showFormStepper?: boolean;
3789
3635
  /**
3790
- * Children of the FormItems (Recursive Form)
3636
+ * On change form content
3791
3637
  */
3792
- children?: OrFormItemsInlineProps | React.ReactElement | string;
3638
+ onValuesChange?: OrFormProps['onValuesChange'];
3793
3639
  /**
3794
- * Specifies options for fields that allows options
3640
+ * Tabs props
3795
3641
  */
3796
- options?: MlRadioGroupProps['options'] | MlCheckboxGroup['options'] | AtSelectProps['options'] | OrSelectTableOption[];
3642
+ tabsProps: OrTabsProps;
3797
3643
  /**
3798
- * Rules for field validation. Click [here](https://ant.design/components/form#components-form-demo-basic) to see an example
3644
+ * Breadcrumb items titles
3799
3645
  */
3800
- rules?: MlFromItemProps['rules'];
3801
- compositeRules?: [MlFromItemProps['rules'], MlFromItemProps['rules']];
3802
- compositeType?: OrSelectInputProps['type'];
3803
- hidden?: boolean;
3804
- disabled?: boolean;
3805
- styles?: CSSProperties;
3806
- addonAfter?: ReactNode;
3807
- onSearch?: (value: string) => any;
3808
- showSearch?: boolean;
3809
- onChange?: (value: any, option?: DefaultOptionType | Array<DefaultOptionType>) => any;
3810
- onSelect?: AtSelectProps['onSelect'];
3811
- onDeselect?: AtSelectProps['onDeselect'];
3812
- filterOption?: AtSelectProps['filterOption'];
3813
- disabledDate?: AtDatePickerPros['disabledDate'];
3814
- formatter?: AtNumberInputProps['formatter'];
3815
- parser?: AtNumberInputProps['parser'];
3816
- items?: OrCollapseProps['items'];
3817
- iconItems?: MlInfoListProps['items'];
3818
- summaryDescriptionsProps?: OrDescriptionsProps;
3646
+ breadcrumbItems?: MlBreadcrumbProps['items'];
3647
+ }
3648
+ export const TmCustomTabsPage: <FormType extends Store>({ avatar, username, phone, balanceLabel, balanceValue, infoIcon, infoLabel, infoValue, mainButtonLabel, secondaryButtonLabel, mainButtonIcon, secondaryButtonIcon, onClickLeftArrow, onClickMainAction, onClickSecondaryAction, formSteps, handleCloseCallback, open, drawerTitle, drawerWidth, disabledButtons, currentFormStep, showFormStepper, onValuesChange, tabsProps, breadcrumbItems, }: TmCustomTabsPageProps<FormType>) => JSX.Element;
3649
+ interface IDashboardItems {
3650
+ gutter: {
3651
+ xs?: number;
3652
+ sm?: number;
3653
+ md?: number;
3654
+ lg?: number;
3655
+ xl?: number;
3656
+ xxl?: number;
3657
+ };
3658
+ children: React.ReactNode;
3659
+ }
3660
+ export interface TmDashboardProps<FormType = any> {
3661
+ /**
3662
+ * Header props
3663
+ */
3664
+ headerProps: OrModuleTableHeaderProps;
3665
+ /**
3666
+ * items from left for render on the dashboard
3667
+ */
3668
+ itemsLeft: IDashboardItems[];
3669
+ /**
3670
+ * items from right for render on the dashboard
3671
+ */
3672
+ itemsRight: IDashboardItems[];
3673
+ /**
3674
+ * drawer config
3675
+ */
3676
+ drawerConfig?: {
3677
+ /**
3678
+ * current step
3679
+ */
3680
+ currentFormStep?: number;
3681
+ /**
3682
+ * Disable buttons drawer
3683
+ */
3684
+ disabledButtons?: boolean;
3685
+ /**
3686
+ * Form Steps info
3687
+ */
3688
+ formSteps?: IFormStep<FormType>[];
3689
+ /**
3690
+ * On press cancel and close button function
3691
+ */
3692
+ handleCloseCallback?: () => void;
3693
+ /**
3694
+ * State of the drawer
3695
+ */
3696
+ open?: boolean;
3697
+ /**
3698
+ * Drawer Title
3699
+ */
3700
+ drawerTitle?: React.ReactNode;
3701
+ /**
3702
+ * On change form content
3703
+ */
3704
+ onValuesChange?: OrFormProps['onValuesChange'];
3705
+ /**
3706
+ * Drawer Width
3707
+ */
3708
+ drawerWidth?: number;
3709
+ };
3710
+ }
3711
+ export const TmDashboard: ({ headerProps, itemsLeft, itemsRight, drawerConfig, }: TmDashboardProps) => JSX.Element;
3712
+ export interface OrDetailsPageProps<FormType = any> {
3819
3713
  /**
3820
- * Format of the date
3714
+ * The ID for input
3821
3715
  */
3822
- format?: string;
3823
- textProps?: TextProps | Array<TextProps>;
3824
- tabProps?: OrTabsProps;
3825
- badgeCardProps?: AtBadgeCardProps;
3826
- collapseCardProps?: OrCollapseCardProps;
3827
- onClick?: () => any;
3716
+ id?: string;
3828
3717
  /**
3829
- * Limit the number of uploaded files. Will replace current one when maxCount is 1
3718
+ * Title of the description set
3830
3719
  */
3831
- maxCount?: number;
3720
+ title: string;
3832
3721
  /**
3833
- * Specify how to get value from event or other onChange arguments
3722
+ * Whether the table has border or not
3834
3723
  */
3835
- getValueFromEvent?: (e: any) => any;
3724
+ bordered?: boolean;
3836
3725
  /**
3837
- * Hook function which will be executed before uploading. Uploading will be stopped with false or a rejected Promise returned. When returned value is Upload.LIST_IGNORE, the list of files that have been uploaded will ignore it. Warning:this function is not supported in IE9
3726
+ * Items to display
3838
3727
  */
3839
- beforeUpload?: UploadProps['beforeUpload'];
3728
+ items: OrDescriptionsProps['items'];
3840
3729
  /**
3841
- * Enables full width
3730
+ * Extra content to display
3842
3731
  */
3843
- fullWidth?: boolean;
3732
+ extra?: OrDescriptionsProps['extra'];
3844
3733
  /**
3845
- * Type of the status info
3734
+ * Form Steps info
3846
3735
  */
3847
- type?: 'success' | 'warning' | 'danger' | 'info' | 'default';
3736
+ formSteps?: IFormStep<FormType>[];
3848
3737
  /**
3849
- * Tooltip of the label
3738
+ * On press cancel and close button function
3850
3739
  */
3851
- tooltip?: MlFromItemProps['tooltip'];
3740
+ handleCloseCallback?: () => void;
3852
3741
  /**
3853
- * Title of the download-upload
3742
+ * State of the drawer
3854
3743
  */
3855
- title?: string;
3744
+ open?: boolean;
3856
3745
  /**
3857
- * Span of the column (only for inline items)
3746
+ * Drawer Content
3858
3747
  */
3859
- span?: number;
3748
+ drawerContent?: React.ReactNode;
3860
3749
  /**
3861
- * Span of the column on medium screens (only for inline items)
3750
+ * Drawer Title
3862
3751
  */
3863
- md?: number;
3752
+ drawerTitle?: React.ReactNode;
3864
3753
  /**
3865
- * MlInfoList items
3754
+ * Drawer Width
3866
3755
  */
3867
- summaryItems?: MlInfoListProps['items'];
3756
+ drawerWidth?: number;
3868
3757
  /**
3869
- * Label column span
3758
+ * Disable buttons drawer
3870
3759
  */
3871
- labelCol?: number;
3760
+ disabledButtons?: boolean;
3872
3761
  /**
3873
- * Information to be displayed below the input
3762
+ * current step
3874
3763
  */
3875
- extraInfo?: string;
3764
+ currentFormStep?: number;
3876
3765
  /**
3877
- * The Google Maps props
3766
+ * button optional text
3878
3767
  */
3879
- mapsProps?: OrGoogleMapsProps;
3768
+ showFormStepper?: boolean;
3880
3769
  /**
3881
- * The Google Maps API key.
3770
+ * On change form content
3882
3771
  */
3883
- GOOGLE_MAPS_API_KEY?: string;
3772
+ onValuesChange?: OrFormProps['onValuesChange'];
3884
3773
  /**
3885
- * Country code
3774
+ * config the OrAlert component showed
3886
3775
  */
3887
- country?: string;
3776
+ orAlertConfig?: OrAlertProps;
3777
+ }
3778
+ export const OrDetailsPage: <FormType extends Store>({ title, bordered, items, extra, formSteps, handleCloseCallback, open, drawerTitle, drawerWidth, disabledButtons, currentFormStep, showFormStepper, onValuesChange, orAlertConfig, }: OrDetailsPageProps<FormType>) => JSX.Element;
3779
+ export interface TmDescriptionsPageProps {
3888
3780
  /**
3889
- * The props for the autocomplete search
3781
+ * The ID for input
3890
3782
  */
3891
- autocompleteProps?: Omit<MlAutocompleteSearchProps, 'fieldName' | 'rules'>;
3783
+ id?: string;
3892
3784
  /**
3893
- * The size of the QR code
3785
+ * Whether the table has border or not
3894
3786
  */
3895
- size?: number;
3787
+ bordered?: boolean;
3896
3788
  /**
3897
- * Columns for the table (select-table component)
3789
+ * Items to display
3898
3790
  */
3899
- columns?: OrTableProps['columns'];
3791
+ items: Array<OrDetailsPageProps | Array<OrDetailsPageProps>>;
3900
3792
  /**
3901
- * Data for the table (select-table component)
3793
+ * Disable buttons drawer
3902
3794
  */
3903
- data?: OrTableProps['dataSource'];
3795
+ disabledButtons?: boolean;
3904
3796
  /**
3905
- * The picker type (date-picker component)
3797
+ * On change form content
3906
3798
  */
3907
- picker?: AtDatePickerPros['picker'];
3799
+ onValuesChange?: OrFormProps['onValuesChange'];
3908
3800
  /**
3909
- * file list for the file-input component
3801
+ * Custom header page template
3910
3802
  */
3911
- fileList?: MlUploadProps['fileList'];
3803
+ header?: React.ReactElement;
3804
+ }
3805
+ export const TmDescriptionsPage: ({ items, header, }: TmDescriptionsPageProps) => JSX.Element;
3806
+ export interface TmFormListPageProps<FormType = any> {
3807
+ formList?: {
3808
+ title?: string;
3809
+ formStepProps?: IFormStep<FormType>[];
3810
+ formProps?: OrFormProps;
3811
+ stepProps?: OrStepProp;
3812
+ disabledButtons?: boolean;
3813
+ formButtonProps?: AtButtonProps;
3814
+ }[];
3815
+ }
3816
+ export const TmFormListPage: <FormType extends Store>({ formList, }: TmFormListPageProps<FormType>) => JSX.Element;
3817
+ export interface OrFlagGridProps {
3912
3818
  /**
3913
- * onRemove for the file-input component
3819
+ * The ID for cards
3914
3820
  */
3915
- onRemoveUploadedFile?: MlUploadProps['onRemove'];
3916
- noStyle?: boolean;
3821
+ id?: string;
3917
3822
  /**
3918
- * The mode of the upload
3823
+ * Country data to show elements into the grid
3919
3824
  */
3920
- uploadMode?: 'drag' | 'basic';
3825
+ data?: OrCountryCardProps[];
3921
3826
  /**
3922
- * The description of the summary component
3827
+ * Number of items that can contain a row
3923
3828
  */
3924
- description?: string;
3829
+ itemsPerRow?: number;
3925
3830
  /**
3926
- * Stepper props
3831
+ * Index selected Item
3927
3832
  */
3928
- stepperProps?: OrStepProp;
3833
+ selectedItem?: number;
3929
3834
  /**
3930
- * Custom select options
3835
+ * Callback when card is clicked
3931
3836
  */
3932
- customOptions?: AtSelectProps['options'];
3837
+ onSelectCard?: (index: number) => void;
3838
+ }
3839
+ export const OrFlagGrid: React.FC<OrFlagGridProps>;
3840
+ export interface OrSimpleBannerProps {
3933
3841
  /**
3934
- * Adds a collapse wrapper to the current input
3842
+ * Id of the OrSimpleBannerProps
3935
3843
  */
3936
- collapseWrapper?: boolean;
3844
+ id?: string;
3937
3845
  /**
3938
- * The orientation of the input
3846
+ * Background image for banner
3939
3847
  */
3940
- orientation?: 'horizontal' | 'vertical';
3848
+ $backgroundSrc?: string;
3849
+ }
3850
+ export const OrSimpleBanner: React.FC<OrSimpleBannerProps>;
3851
+ export interface TmLoginCountryProps {
3852
+ data?: OrCountryCardProps[];
3853
+ title?: string;
3854
+ itemsPerRow?: number;
3855
+ $backgroundSrc?: string;
3941
3856
  /**
3942
- * The type of the list item
3857
+ * Index selected Item
3943
3858
  */
3944
- listValues?: LabeledValue[];
3859
+ selectedItem?: number;
3945
3860
  /**
3946
- * The type of the list item
3861
+ * Callback when card is clicked
3947
3862
  */
3948
- listItemType?: 'autocomplete' | 'text';
3863
+ onSelectCard?: (index: number) => void;
3864
+ }
3865
+ export const TmLoginCountry: React.FC<TmLoginCountryProps>;
3866
+ export interface IRegion {
3867
+ id: string;
3868
+ countryName: string;
3869
+ region: string;
3870
+ city: string;
3871
+ }
3872
+ export interface IFormData {
3873
+ phone: {
3874
+ dialCode: string;
3875
+ phone: string;
3876
+ };
3877
+ }
3878
+ export interface TmLoginPhoneProps {
3879
+ countrySelectOptions?: IRegion[];
3949
3880
  /**
3950
- * The text for the bottom button
3881
+ * Welcome title
3951
3882
  */
3952
- addButtonText?: string;
3883
+ title?: string;
3953
3884
  /**
3954
- * The mode of the button
3885
+ * Highlighted text into title
3955
3886
  */
3956
- buttonType?: AtButtonProps['type'];
3887
+ highlightedTitle?: string;
3957
3888
  /**
3958
- * The icon of the button
3889
+ * Submit button text
3959
3890
  */
3960
- icon?: AtButtonProps['icon'];
3891
+ buttonText: string;
3961
3892
  /**
3962
- * The function to fetch the place details
3893
+ * Form init values
3963
3894
  */
3964
- fetchPlaceDetails?: (id: string) => any;
3895
+ initialValues?: IFormData;
3965
3896
  /**
3966
- * The minimum number of items
3897
+ * Dial codes available
3967
3898
  */
3968
- minItems?: number;
3899
+ dialCodes: string[];
3969
3900
  /**
3970
- * The props for the image field
3901
+ * Phone regex validation
3971
3902
  */
3972
- imageProps?: AtImageProps;
3903
+ phoneRegex?: RegExp;
3973
3904
  /**
3974
- * The props for the time range picker
3905
+ * Phone validation message
3975
3906
  */
3976
- timeRangePickerProps?: AtTimeRangePickerProps;
3907
+ phoneValidationMessage?: string;
3977
3908
  /**
3978
- * The props for the time range picker
3909
+ * Phone validation input message
3979
3910
  */
3980
- descriptionsTableProps?: DescriptionsProps;
3911
+ ruleMessage?: string;
3981
3912
  /**
3982
- * Allow auto clear for a select field
3913
+ * On submit function
3983
3914
  */
3984
- autoClearSearchValue?: boolean | undefined;
3915
+ onFinish?: FormProps['onFinish'];
3985
3916
  /**
3986
- * Props for the draggable table
3917
+ * Form ref
3987
3918
  */
3988
- draggableTableProps?: OrDraggableTableProps;
3919
+ form?: FormProps['form'];
3989
3920
  /**
3990
- * Id for the qr code element
3921
+ * Show country select
3991
3922
  */
3992
- qrCodeId?: string;
3923
+ showCountrySelect?: boolean;
3924
+ }
3925
+ export const TmLoginPhone: React.FC<TmLoginPhoneProps>;
3926
+ export interface AtCountdownProps {
3993
3927
  /**
3994
- * Group items
3928
+ * Format as dayjs string
3995
3929
  */
3996
- groupItems?: OrFormInLineItem[];
3930
+ format?: string;
3997
3931
  /**
3998
- * Group title
3932
+ * The prefix node of value
3999
3933
  */
4000
- groupTitle?: ReactNode | string;
3934
+ prefix?: React.ReactNode;
4001
3935
  /**
4002
- * input props
3936
+ * The suffix node of value
4003
3937
  */
4004
- inputProps?: AtTextInputProps | AtNumberInputProps;
3938
+ suffix?: React.ReactNode;
4005
3939
  /**
4006
- * The props for loading state in input list
3940
+ * The suffix node of value
4007
3941
  */
4008
- loading?: boolean;
4009
- }
4010
- export interface OrFormItemsInlineProps {
4011
- inputs?: Array<OrFormInLineItem | Array<OrFormInLineItem | OrFormInLineItem[]>>;
4012
- }
4013
- export const OrFormItemsInline: React.FC<OrFormItemsInlineProps>;
4014
- type _Size2 = 'large' | 'middle' | 'small';
4015
- export interface OrLabelTextBoxProps {
4016
- title?: string;
4017
- text?: string;
4018
- id?: string;
4019
- size?: _Size2;
4020
- color?: AtTextProps['color'];
4021
- }
4022
- export const OrLabelTextBox: React.FC<OrLabelTextBoxProps>;
4023
- export interface OrInfoCardProps {
4024
- data?: OrLabelTextBoxProps[];
4025
- id?: string;
4026
- image?: string;
4027
- }
4028
- export const OrInfoCard: React.FC<OrInfoCardProps>;
4029
- export interface OrInfoHeaderCardProps extends MlCardProps {
3942
+ title?: React.ReactNode;
3943
+ /**
3944
+ * Set target countdown time number
3945
+ */
3946
+ value?: CountdownProps['value'];
4030
3947
  /**
4031
- * Left arrow click event
3948
+ * Set value section style CSSProperties
4032
3949
  */
4033
- onClickLeftArrow?: () => void;
3950
+ valueStyle?: React.CSSProperties;
4034
3951
  /**
4035
- * Breadcrumb items
3952
+ * Trigger when time's up
4036
3953
  */
4037
- breadcrumbItems?: _BreadcrumbProps1['items'];
3954
+ onFinish?: () => void;
4038
3955
  /**
4039
- * Breadcrumb items
3956
+ * Trigger when time's changing
4040
3957
  */
4041
- leftElement?: React.ReactElement;
3958
+ onChange?: (value: CountdownProps['value']) => void;
4042
3959
  /**
4043
- * Breadcrumb items
3960
+ * Font color
4044
3961
  */
4045
- rightElement?: React.ReactElement;
3962
+ $color?: 'normal' | 'primary';
3963
+ /**
3964
+ * Font size
3965
+ */
3966
+ $fontSize?: number;
4046
3967
  }
4047
- /**
4048
- * Primary input UI component for user interaction
4049
- */
4050
- export const OrInfoHeaderCard: React.FC<OrInfoHeaderCardProps>;
4051
- export interface OrModuleTableHeaderProps {
3968
+ export const AtCountdown: React.FC<AtCountdownProps>;
3969
+ export interface TmLoginPhoneCodeProps {
4052
3970
  /**
4053
- * Title of the module table header
3971
+ * Page title
4054
3972
  */
4055
- title?: string;
3973
+ title: string;
4056
3974
  /**
4057
- * Search box placeholder
3975
+ * Page title highlighted
4058
3976
  */
4059
- searchBoxPlaceholder?: string;
3977
+ highlightedTitle: string;
4060
3978
  /**
4061
- * Search box value
3979
+ * Page description
4062
3980
  */
4063
- searchBoxValue?: string;
3981
+ description: string;
4064
3982
  /**
4065
- * Search box onChange
3983
+ * Button text
4066
3984
  */
4067
- searchBoxOnChange?: ((e: React.ChangeEvent<HTMLInputElement>) => void) | undefined;
3985
+ buttonText: string;
4068
3986
  /**
4069
- * Search box onSearch
3987
+ * On submit function
4070
3988
  */
4071
- searchBoxOnSearch?: ((value: string, event?: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLElement, MouseEvent> | React.KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
3989
+ onFinish?: FormProps['onFinish'];
4072
3990
  /**
4073
- * Search box onPressEnter
3991
+ * Form ref
4074
3992
  */
4075
- searchBoxOnPressEnter?: ((event: React.KeyboardEvent<HTMLInputElement>) => void) | undefined;
3993
+ form?: FormProps['form'];
4076
3994
  /**
4077
- * Button value
3995
+ * Countdown description
4078
3996
  */
4079
- buttonValue?: string;
3997
+ countdownDescription?: string;
4080
3998
  /**
4081
- * Button onClick
3999
+ * Countdown value
4082
4000
  */
4083
- buttonOnClick?: (React.MouseEventHandler<HTMLAnchorElement> & React.MouseEventHandler<HTMLButtonElement>) | undefined;
4001
+ countdownValue?: number;
4084
4002
  /**
4085
- * Custom component to render at left side
4003
+ * Countdown format
4086
4004
  */
4087
- customLeftElements?: React.ReactNode;
4005
+ countdownFormat?: string;
4088
4006
  /**
4089
- * Show search box
4007
+ * Indicate if the count down ended
4090
4008
  */
4091
- showSearchBox?: boolean;
4009
+ countdownEnded?: boolean;
4092
4010
  /**
4093
- * Level of title
4011
+ * Callback triggered when countdown ends
4094
4012
  */
4095
- level?: 1 | 2 | 3 | 4 | 5;
4013
+ onFinishCountdown?: () => void;
4096
4014
  /**
4097
- * Button value
4015
+ * Countdown text part
4098
4016
  */
4099
- secondaryButtonValue?: string;
4017
+ countdownText?: [string, string];
4100
4018
  /**
4101
- * Button onClick
4019
+ * Send again text
4102
4020
  */
4103
- secondaryButtonOnClick?: (React.MouseEventHandler<HTMLAnchorElement> & React.MouseEventHandler<HTMLButtonElement>) | undefined;
4021
+ sendAgainText?: string;
4104
4022
  /**
4105
- * Icon for first button
4023
+ * Function to call when resend is press it
4106
4024
  */
4107
- buttonIcon?: string;
4025
+ onResendPress?: () => void;
4026
+ }
4027
+ export const TmLoginPhoneCode: React.FC<TmLoginPhoneCodeProps>;
4028
+ export interface MarkersArray {
4029
+ color?: OrMarkProps['color'];
4030
+ backgroundColor?: string;
4031
+ size?: OrMarkProps['size'];
4032
+ marks: OrMarkProps[];
4033
+ polyLine: boolean;
4034
+ }
4035
+ export interface TmMapPageProps {
4036
+ rightDrawer?: OrDrawerProps;
4037
+ topLeftSelect: AtSelectProps;
4038
+ topLeftButton?: AtButtonProps;
4039
+ map: GoogleMapProps & {
4040
+ GOOGLE_MAPS_API_KEY: string;
4041
+ ref?: React.RefObject<GoogleMap>;
4042
+ };
4043
+ staticMarkers?: MarkersArray[];
4044
+ realtimeMarkers?: MarkersArray[];
4045
+ polylines?: {
4046
+ color: string | null | undefined;
4047
+ stops: {
4048
+ latitude: number;
4049
+ longitude: number;
4050
+ }[];
4051
+ }[];
4052
+ }
4053
+ export const TmMapPage: React.FC<TmMapPageProps>;
4054
+ export interface OrRentalLayoutProps {
4108
4055
  /**
4109
- * Icon for second button
4056
+ * Children component
4110
4057
  */
4111
- secondaryButtonIcon?: string;
4058
+ children?: React.ReactNode;
4112
4059
  /**
4113
- * justify the contents of the main container
4060
+ * Background source
4114
4061
  */
4115
- mainContainerJustifyContent?: _CSSProperties1["justifyContent"];
4062
+ $backgroundSrc?: string;
4116
4063
  }
4117
- export const OrModuleTableHeader: React.FC<OrModuleTableHeaderProps>;
4118
- export interface OrListSelectionProps {
4064
+ export const OrRentalLayout: React.FC<OrRentalLayoutProps>;
4065
+ export interface TmQuoteResultPageProps {
4119
4066
  /**
4120
- * Text of button to add
4067
+ * Background source
4121
4068
  */
4122
- buttonAddText?: string;
4069
+ $backgroundSrc?: string;
4123
4070
  /**
4124
- * Function to execute when button to add is clicked
4071
+ * Rental result
4125
4072
  */
4126
- onAddButtonOnClick?: OrModuleTableHeaderProps['buttonOnClick'];
4073
+ rentalResult: OrRentalResultProps;
4127
4074
  /**
4128
- * Function to execute when search box is searched
4075
+ * Rental vehicle item
4129
4076
  */
4130
- searchBoxOnSearch?: OrModuleTableHeaderProps['searchBoxOnSearch'];
4077
+ rentalVehicleItem: OrRentalVehicleItemProps | null;
4131
4078
  /**
4132
- * Placeholder of search box
4079
+ * Loading status
4133
4080
  */
4134
- searchBoxPlaceholder?: string;
4081
+ loading?: boolean;
4135
4082
  /**
4136
- * onChange rowSelection
4083
+ * Empty message
4137
4084
  */
4138
- onChangeRowSelection?: TableRowSelection<AnyObject>['onChange'];
4085
+ emptyMessage?: string;
4139
4086
  /**
4140
- * Columns of table
4141
- */
4142
- columns: OrTableProps['columns'];
4087
+ * Empty button text
4088
+ */
4089
+ emptyButtonText?: string;
4143
4090
  /**
4144
- * Data record array to be displayed
4145
- */
4146
- data?: OrTableProps['dataSource'];
4091
+ * Empty callback
4092
+ */
4093
+ emptyCallback?: () => void;
4094
+ }
4095
+ export const TmQuoteResultPage: ({ $backgroundSrc, rentalResult, rentalVehicleItem, loading, emptyMessage, emptyButtonText, emptyCallback, }: TmQuoteResultPageProps) => JSX.Element;
4096
+ export const useMessage: () => readonly [MessageInstance, ReactElement<unknown, string | JSXElementConstructor<any>>];
4097
+ export interface ModalProps extends ModalFuncProps {
4098
+ variant: 'confirm' | 'warning' | 'info' | 'error';
4099
+ }
4100
+ export const useModal: () => {
4101
+ show: (config: ModalFuncProps) => {
4102
+ destroy: () => void;
4103
+ update: (configUpdate: ModalFuncProps | ((prevConfig: ModalFuncProps) => ModalFuncProps)) => void;
4104
+ } & {
4105
+ then<T>(resolve: (confirmed: boolean) => T, reject: VoidFunction): Promise<T>;
4106
+ };
4107
+ setVariant: Dispatch<SetStateAction<"warning" | "info" | "error" | "confirm">>;
4108
+ contextHolder: ReactElement<any, string | JSXElementConstructor<any>>;
4109
+ };
4110
+ export const useForm: <T = any>() => [FormInstance<T>];
4111
+ export const useFormWatch: <T = any>(name: string | string[], form?: FormInstance | WatchOptions<FormInstance>) => T;
4112
+ export interface TmRechargePageProps<FormType = any> {
4147
4113
  /**
4148
- * Loading status of table
4149
- */
4150
- loadingTable?: OrTableProps['loading'];
4114
+ * Page title
4115
+ */
4116
+ title?: string;
4151
4117
  /**
4152
- * Config of pagination. You can ref table pagination config or full pagination document, hide it by setting it to false
4153
- */
4154
- pagination?: OrTableProps['pagination'];
4118
+ * page subtitle
4119
+ */
4120
+ subtitle?: string;
4155
4121
  /**
4156
- * Title of table
4157
- */
4158
- tableTitle?: string;
4122
+ * page subtitle content
4123
+ */
4124
+ balance?: string;
4159
4125
  /**
4160
- * Title of remove button
4126
+ * The title of the card
4161
4127
  */
4162
- removeBtnTitle?: string;
4128
+ cardTitle: string;
4163
4129
  /**
4164
- * Disabled status of remove button
4130
+ * number of digits (input) to show
4165
4131
  */
4166
- removeBtnDisabled?: boolean;
4132
+ digits?: number;
4167
4133
  /**
4168
- * dangerBtn status of remove button
4134
+ * The input content value
4169
4135
  */
4170
- dangerBtn?: boolean;
4136
+ value?: number;
4171
4137
  /**
4172
- * Function to execute when remove button is clicked
4138
+ * Custom values for amounts
4173
4139
  */
4174
- onRemoveClick?: () => void;
4140
+ values?: {
4141
+ label: string;
4142
+ value: number;
4143
+ type: 'VALUE' | 'PERCENTAGE';
4144
+ }[];
4175
4145
  /**
4176
- * type of alert display
4146
+ * font size of the input
4177
4147
  */
4178
- alertType?: 'success' | 'info' | 'error' | 'warning';
4148
+ fontSize?: string;
4179
4149
  /**
4180
- * Description of alert display
4150
+ * height of the input
4181
4151
  */
4182
- alertDescription?: string;
4152
+ height?: string;
4183
4153
  /**
4184
- * select value
4154
+ * rule for the amount input
4185
4155
  */
4186
- selectValue?: AtSelectProps['value'];
4156
+ ruleAmount?: MlFromItemProps['rules'];
4187
4157
  /**
4188
- * select on change
4158
+ * rule for the coupon input
4189
4159
  */
4190
- selectOnChange?: AtSelectProps['onChange'];
4160
+ ruleCoupon?: MlFromItemProps['rules'];
4191
4161
  /**
4192
- * select options
4162
+ * Form ref
4193
4163
  */
4194
- selectOptions?: DefaultOptionType[];
4164
+ form?: FormProps['form'];
4195
4165
  /**
4196
- * not found select element
4166
+ * Form init values
4197
4167
  */
4198
- selectNotFoundContent?: React.ReactNode;
4199
- }
4200
- export const OrListSelection: React.FC<OrListSelectionProps>;
4201
- export interface OrLoginLayoutProps {
4168
+ initialValues?: IFormData;
4202
4169
  /**
4203
- * Carousel image background source
4170
+ * On submit function
4204
4171
  */
4205
- $carouselBackgroundSrc?: string;
4172
+ onFinish?: FormProps['onFinish'];
4206
4173
  /**
4207
- * Images to show into carousel
4208
- */
4209
- carouselImages: string[] | {
4210
- src?: string;
4211
- component?: React.ReactNode;
4212
- text?: string;
4213
- }[];
4174
+ * Coupon button text
4175
+ */
4176
+ couponBtn?: string;
4177
+ /**
4178
+ * Amount placeholder
4179
+ */
4180
+ amountPlaceholder?: string;
4214
4181
  /**
4215
- * Carousel text props
4182
+ * Coupon placeholder
4216
4183
  */
4217
- carouselTextProps?: AtTextProps;
4184
+ couponPlaceholder?: string;
4218
4185
  /**
4219
- * Content to render into layout
4186
+ * Radio group items
4220
4187
  */
4221
- children?: React.ReactNode;
4222
- }
4223
- export const OrLoginLayout: React.FC<OrLoginLayoutProps>;
4224
- type ConfigUpdate = ModalFuncProps | ((prevConfig: ModalFuncProps) => ModalFuncProps);
4225
- export type instanceModal = {
4226
- destroy: () => void;
4227
- update: (configUpdate: ConfigUpdate) => void;
4228
- } | null;
4229
- export type OrModalProps = {
4188
+ currenciesOptions?: Array<{
4189
+ label: ReactNode;
4190
+ value: string;
4191
+ disabled?: boolean;
4192
+ symbol?: string;
4193
+ }>;
4230
4194
  /**
4231
- * Specify a function that will be called when modal is closed completely
4195
+ * Radio group default value
4232
4196
  */
4233
- afterClose?: () => void;
4197
+ defaultCurrency?: number;
4234
4198
  /**
4235
- * Body style for modal body element. Such as height, padding etc
4199
+ * Amount to pay text
4236
4200
  */
4237
- bodyStyle?: React.CSSProperties;
4201
+ amountToPayText?: string;
4238
4202
  /**
4239
- * The cancel button props
4203
+ * Amount to pay
4240
4204
  */
4241
- cancelButtonProps?: _ModalProps1['cancelButtonProps'];
4205
+ amountToPay?: number;
4242
4206
  /**
4243
- * Text of the Cancel button
4207
+ * Coupon text
4244
4208
  */
4245
- cancelText?: React.ReactNode;
4209
+ couponText?: string;
4246
4210
  /**
4247
- * Centered Modal
4211
+ * Discount
4248
4212
  */
4249
- centered?: boolean;
4213
+ discount?: number;
4250
4214
  /**
4251
- * Custom close icon. 5.7.0: close button will be hidden when setting to null or false
4215
+ * Total text
4252
4216
  */
4253
- closeIcon?: React.ReactNode;
4217
+ totalText?: string;
4254
4218
  /**
4255
- * Whether to apply loading visual effect for OK button or not
4219
+ * Total
4256
4220
  */
4257
- confirmLoading?: boolean;
4221
+ total?: number;
4258
4222
  /**
4259
- * Whether to unmount child components on onClose
4223
+ * Tax text
4260
4224
  */
4261
- destroyOnClose?: boolean;
4225
+ taxText?: string;
4262
4226
  /**
4263
- * Footer content, set as footer={null} when you don't need default buttons
4227
+ * Tax
4264
4228
  */
4265
- footer?: React.ReactNode;
4229
+ tax?: number;
4266
4230
  /**
4267
- * Force render Modal
4231
+ * Pay button text
4268
4232
  */
4269
- forceRender?: boolean;
4233
+ payBtn?: string;
4270
4234
  /**
4271
- * The mounted node for Modal but still display at fullscreen
4235
+ * Apply coupon click
4272
4236
  */
4273
- getContainer?: _ModalProps1['getContainer'];
4237
+ applyCouponClick?: () => void;
4274
4238
  /**
4275
- * Whether support press esc to close
4239
+ * The title of the drawer
4276
4240
  */
4277
- keyboard?: boolean;
4241
+ drawerTitle?: string;
4278
4242
  /**
4279
- * Whether show mask or not
4243
+ * Whether the Drawer dialog is visible or not
4280
4244
  */
4281
- mask?: boolean;
4245
+ open?: boolean;
4282
4246
  /**
4283
- * Whether to close the modal dialog when the mask (area outside the modal) is clicked
4247
+ * payment Methods
4284
4248
  */
4285
- maskClosable?: boolean;
4249
+ paymentMethods: PaymentMethod[];
4286
4250
  /**
4287
- * Style for modal's mask element
4251
+ * Form Steps info
4288
4252
  */
4289
- maskStyle?: React.CSSProperties;
4253
+ currentPaymentSelectedFields: IFormStep<FormType>;
4290
4254
  /**
4291
- * Custom modal content render
4255
+ * Disable continue button drawer
4292
4256
  */
4293
- modalRender?: (node: React.ReactNode) => React.ReactNode;
4257
+ disabledButton?: boolean;
4294
4258
  /**
4295
- * The ok button props
4259
+ * Show payment methods
4296
4260
  */
4297
- okButtonProps?: _ModalProps1['okButtonProps'];
4261
+ showPaymentMethods?: boolean;
4298
4262
  /**
4299
- * Text of the OK button
4263
+ * terms and conditions disclaimer
4300
4264
  */
4301
- okText?: React.ReactNode;
4265
+ termsDisclaimer?: string;
4302
4266
  /**
4303
- * Button type of the OK button
4267
+ * terms and conditions change
4304
4268
  */
4305
- okType?: _ModalProps1['okType'];
4269
+ termsChange?: ((e: CheckboxChangeEvent) => void) | undefined;
4306
4270
  /**
4307
- * The modal dialog's title
4271
+ * onCloseDrawer function
4308
4272
  */
4309
- title?: _ModalProps1['title'];
4273
+ onCloseDrawer?: (e: React.MouseEvent | React.KeyboardEvent) => void;
4310
4274
  /**
4311
- * Whether the modal dialog is visible or not
4275
+ * whether to show left arrow
4312
4276
  */
4313
- visible?: boolean;
4277
+ showLeftArrow?: boolean;
4314
4278
  /**
4315
- * Open Modal with async logic
4279
+ * left arrow click event
4316
4280
  */
4317
- open?: boolean;
4281
+ onClickLeftArrow?: () => void;
4282
+ editable?: boolean;
4283
+ rate?: number;
4284
+ currenciesEnabled?: boolean;
4285
+ }
4286
+ export const TmRechargePage: <FormType extends Store>({ title, subtitle, balance, cardTitle, fontSize, height, ruleAmount, form, initialValues, onFinish, amountPlaceholder, currenciesOptions, defaultCurrency, amountToPayText, amountToPay, couponText, discount, totalText, taxText, tax, payBtn, drawerTitle, open, paymentMethods, currentPaymentSelectedFields, disabledButton, showPaymentMethods, termsDisclaimer, onCloseDrawer, showLeftArrow, onClickLeftArrow, editable, rate, values, currenciesEnabled }: TmRechargePageProps<FormType>) => JSX.Element;
4287
+ export interface TmRentalsPageProps<FormType = any> {
4318
4288
  /**
4319
- * Width of the modal dialog
4289
+ * Form Steps info
4290
+ */
4291
+ formSteps?: IFormStep<FormType>[];
4292
+ /**
4293
+ * On change form content
4320
4294
  */
4321
- width?: string | number;
4295
+ onValuesChange?: OrFormProps['onValuesChange'];
4322
4296
  /**
4323
- * The class name of the container of the modal dialog
4297
+ * Current step
4324
4298
  */
4325
- wrapClassName?: string;
4299
+ currentFormStep?: number;
4326
4300
  /**
4327
- * The z-index of the Modal
4301
+ * Disabled buttons
4328
4302
  */
4329
- zIndex?: number;
4303
+ disabledButtons?: boolean;
4330
4304
  /**
4331
- * Specify a function that will be called when a user clicks mask, close button on top right or Cancel button
4305
+ * button optional text
4332
4306
  */
4333
- onCancel?: (e: React.MouseEvent<HTMLElement>) => void;
4307
+ showFormStepper?: boolean;
4334
4308
  /**
4335
- * Specify a function that will be called when a user clicks the OK button
4309
+ * Background source
4336
4310
  */
4337
- onOk?: (e: React.MouseEvent<HTMLElement>) => void;
4311
+ $backgroundSrc?: string;
4338
4312
  /**
4339
- * Callback when the animation ends when Modal is turned on and off
4313
+ * Disclaimer text
4340
4314
  */
4341
- afterOpenChange?: ((open: boolean) => void) | undefined;
4315
+ disclaimer?: string;
4342
4316
  /**
4343
- * children of Modal
4317
+ * Disclaimer href
4344
4318
  */
4345
- children?: React.ReactNode;
4319
+ disclaimerHref?: string;
4346
4320
  /**
4347
- * Content of the confirm dialog
4321
+ * Disclaimer message
4348
4322
  */
4349
- content?: string | React.ReactNode;
4350
- };
4351
- export const OrModal: React.FC<OrModalProps>;
4352
- export interface OrModuleCalendarHeaderProps {
4323
+ disclaimerMessage?: string;
4324
+ }
4325
+ export const TmRentalsPage: <FormType extends Store>({ formSteps, onValuesChange, currentFormStep, disabledButtons, showFormStepper, $backgroundSrc, disclaimer, disclaimerHref, disclaimerMessage, }: TmRentalsPageProps<FormType>) => JSX.Element;
4326
+ export interface TmRequestsPageProps<_RecordType = AnyObject, FormType = any> {
4327
+ username?: string;
4353
4328
  /**
4354
- * Actual display date
4329
+ * Main button label
4355
4330
  */
4356
- displayDate: string;
4331
+ mainButtonLabel?: string;
4357
4332
  /**
4358
- * handles segment change
4333
+ * Main button icon
4359
4334
  */
4360
- onChangeSegment: AtSegmentedProps['onChange'];
4335
+ mainButtonIcon?: AtIconProps['name'];
4361
4336
  /**
4362
- * Options for the segment control.
4337
+ * Main button label
4363
4338
  */
4364
- segmentOptions?: AtSegmentedProps['options'];
4339
+ cancelButtonLabel?: string;
4365
4340
  /**
4366
- * Columns for select filters.
4341
+ * refund button label
4367
4342
  */
4368
- columnsFilters?: {
4369
- onSearch?: AtSelectProps['onSearch'];
4370
- showSearch?: AtSelectProps['showSearch'];
4371
- label: string;
4372
- options: AtSelectProps['options'];
4373
- onChange: AtSelectProps['onChange'];
4374
- }[];
4343
+ refundButtonLabel?: string;
4375
4344
  /**
4376
- * Columns for buttons filters.
4345
+ * cancel button icon
4377
4346
  */
4378
- buttonsFilters?: {
4379
- label: string;
4380
- onClick: AtButtonProps['onClick'];
4381
- icon: AtButtonProps['icon'];
4382
- }[];
4347
+ cancelButtonIcon?: AtIconProps['name'];
4383
4348
  /**
4384
- * Button value
4349
+ * refund button icon
4385
4350
  */
4386
- buttonValue?: string;
4351
+ refundButtonIcon?: AtIconProps['name'];
4387
4352
  /**
4388
- * Icon for first button
4353
+ * refund button custom type
4389
4354
  */
4390
- buttonIcon?: string;
4355
+ typeCancelButton?: AtButtonProps['type'];
4391
4356
  /**
4392
- * Button onClick
4357
+ * Left arrow click event
4393
4358
  */
4394
- buttonOnClick?: (React.MouseEventHandler<HTMLAnchorElement> & React.MouseEventHandler<HTMLButtonElement>) | undefined;
4359
+ onClickLeftArrow?: () => void;
4395
4360
  /**
4396
- * Left Arrow Button onClick
4361
+ * Main action click event
4397
4362
  */
4398
- leftArrowOnOnClick?: (React.MouseEventHandler<HTMLAnchorElement> & React.MouseEventHandler<HTMLButtonElement>) | undefined;
4363
+ onClickMainAction?: () => void;
4399
4364
  /**
4400
- * Right Arrow Button onClick
4365
+ * cancel action click event
4401
4366
  */
4402
- rightArrowOnOnClick?: (React.MouseEventHandler<HTMLAnchorElement> & React.MouseEventHandler<HTMLButtonElement>) | undefined;
4403
- filterText?: string;
4367
+ onClickCancelAction?: () => void;
4404
4368
  /**
4405
- * Handles date selection
4369
+ * refund action click event
4406
4370
  */
4407
- onSelectDate?: (value: Dayjs | null) => void;
4371
+ onClickRefundAction?: () => void;
4408
4372
  /**
4409
- * Handles loading state
4373
+ * disabled cancel Button
4410
4374
  */
4411
- loadingSearchFilter?: boolean;
4412
- }
4413
- export const OrModuleCalendarHeader: React.FC<OrModuleCalendarHeaderProps>;
4414
- export interface OrOneDataCardProps {
4375
+ disabledCancelButton?: boolean;
4415
4376
  /**
4416
- * title of card
4377
+ * disabled refund Button
4417
4378
  */
4418
- title: string;
4379
+ disabledRefundButton?: boolean;
4419
4380
  /**
4420
- * text for show in the card
4381
+ * disabled Main Button
4421
4382
  */
4422
- text: string | number;
4383
+ disabledMainButton?: boolean;
4423
4384
  /**
4424
- * icon name for the main icon in the card
4385
+ * left column content
4425
4386
  */
4426
- iconName?: keyof typeof Icons;
4387
+ firstColumnContent: React.ReactNode;
4427
4388
  /**
4428
- * icon color for the icon in the card
4389
+ * right column content
4429
4390
  */
4430
- iconColor?: string;
4391
+ secondColumnContent: React.ReactNode;
4431
4392
  /**
4432
- * flag children showed dynamically at right of the subtitle, it can contains an icon dynamically for match the design pattern
4393
+ * isEditing request
4433
4394
  */
4434
- flag?: {
4435
- text: string;
4436
- iconName?: keyof typeof Icons;
4437
- number: number | string;
4438
- iconColor?: string;
4439
- };
4440
- }
4441
- export const OrOneDataCard: React.FC<OrOneDataCardProps>;
4442
- /**
4443
- * Properties for the OrResourceArea for timelines calendar
4444
- */
4445
- export interface OrResourceAreaProps {
4395
+ isEditing?: boolean;
4446
4396
  /**
4447
- * Title of the resource.
4397
+ * On press cancel and close button function
4448
4398
  */
4449
- title?: string;
4399
+ handleCloseCallback?: () => void;
4400
+ /**
4401
+ * State of the drawer
4402
+ */
4403
+ open?: boolean;
4450
4404
  /**
4451
- * Subtitle of the resource.
4405
+ * Drawer Content
4452
4406
  */
4453
- subtitle?: string;
4407
+ drawerContent?: React.ReactNode;
4454
4408
  /**
4455
- * Description of the resource.
4409
+ * Drawer Title
4456
4410
  */
4457
- description?: string;
4411
+ drawerTitle?: React.ReactNode;
4458
4412
  /**
4459
- * On select the checkbox of the resource.
4413
+ * Drawer Width
4460
4414
  */
4461
- onSelectResource?: () => void;
4415
+ drawerWidth?: number;
4462
4416
  /**
4463
- * Icon name for the resource.
4417
+ * button optional text
4464
4418
  */
4465
- iconName?: AtIconProps['name'];
4466
- }
4467
- export const OrResourceArea: React.FC<OrResourceAreaProps>;
4468
- export interface TmCalendarPageProps<_RecordType = AnyObject, FormType = any> {
4419
+ showFormStepper?: boolean;
4469
4420
  /**
4470
- * Loading status of table
4421
+ * Disable buttons drawer
4471
4422
  */
4472
- loadingTable?: boolean;
4423
+ disabledButtons?: boolean;
4473
4424
  /**
4474
- * Config of pagination. You can ref table pagination config or full pagination document, hide it by setting it to false
4425
+ * Form Steps info
4475
4426
  */
4476
- pagination?: OrTableProps['pagination'];
4427
+ formSteps?: IFormStep<FormType>[];
4477
4428
  /**
4478
- * Row's unique key, could be a string or function that returns a string
4429
+ * current step
4479
4430
  */
4480
- rowKey?: OrTableProps['rowKey'];
4431
+ currentFormStep?: number;
4481
4432
  /**
4482
4433
  * On change form content
4483
4434
  */
4484
4435
  onValuesChange?: OrFormProps['onValuesChange'];
4485
4436
  /**
4486
- * Callback when pagination changes
4437
+ * Text of first button
4487
4438
  */
4488
- onChangeTable?: OrTableProps['onChange'];
4439
+ firstButtonText?: string;
4489
4440
  /**
4490
- * Extendable table TM CrudPage
4441
+ * Text of second button
4491
4442
  */
4492
- expandable?: OrTableProps['expandable'];
4443
+ secondButtonText?: string;
4493
4444
  /**
4494
- * On press cancel and close button function
4445
+ * Function to execute when first button is clicked
4495
4446
  */
4496
- handleCloseCallback?: () => void;
4447
+ onClickFirstButton?: () => void;
4497
4448
  /**
4498
- * State of the drawer
4449
+ * Function to execute when second button is clicked
4499
4450
  */
4500
- open?: boolean;
4451
+ onClickSecondButton?: () => void;
4501
4452
  /**
4502
- * Page title
4453
+ * Show drawer content
4503
4454
  */
4504
- title?: string;
4455
+ showDrawerContent?: boolean;
4456
+ }
4457
+ export const TmRequestsPage: React.FC<TmRequestsPageProps>;
4458
+ export const TmRequestsForm: React.FC<TmRequestsPageProps>;
4459
+ export interface OrFormProps extends FormProps {
4460
+ children: React.ReactNode;
4461
+ }
4462
+ export const OrForm: React.FC<OrFormProps>;
4463
+ export interface OrDrawerProps {
4505
4464
  /**
4506
- * Page subtitle
4465
+ * The ID for input
4507
4466
  */
4508
- subtitle?: string;
4467
+ id?: string;
4509
4468
  /**
4510
- * Page subtitle content
4469
+ * Whether Drawer should get focused after open
4511
4470
  */
4512
- subContent?: string;
4471
+ autoFocus?: boolean;
4513
4472
  /**
4514
- * Page table title
4473
+ * Callback after the animation ends when switching drawers
4515
4474
  */
4516
- tableTitle?: string;
4475
+ afterOpenChange?: (open: boolean) => void;
4517
4476
  /**
4518
- * Button value text
4477
+ * Style of the drawer content part
4519
4478
  */
4520
- buttonAddText?: string;
4479
+ bodyStyle?: CSSProperties;
4521
4480
  /**
4522
- * Callback when add button is pressed
4481
+ * Config Drawer Panel className. Use rootClassName if want to config top dom style
4523
4482
  */
4524
- addButtonOnClick?: OrModuleTableHeaderProps['buttonOnClick'];
4483
+ className?: string;
4525
4484
  /**
4526
- * Callback when pagination changes
4485
+ * Custom close icon. 5.7.0: close button will be hidden when setting to null or false
4527
4486
  */
4528
- onChangePagination?: MlPaginationProps['onChange'];
4487
+ closeIcon?: boolean | ReactNode;
4529
4488
  /**
4530
- * Total table elements
4489
+ * Style of the drawer wrapper of content part
4531
4490
  */
4532
- total?: MlPaginationProps['total'];
4491
+ contentWrapperStyle?: CSSProperties;
4533
4492
  /**
4534
- * Way to display total pagination table
4493
+ * Whether to unmount child components on closing drawer or not
4535
4494
  */
4536
- showTotal?: MlPaginationProps['showTotal'];
4495
+ destroyOnClose?: boolean;
4537
4496
  /**
4538
- * Table page size
4497
+ * Extra actions area at corner
4539
4498
  */
4540
- pageSize?: MlPaginationProps['pageSize'];
4499
+ extra?: ReactNode;
4541
4500
  /**
4542
- * Current page table
4501
+ * The footer for Drawer
4543
4502
  */
4544
- currentPage?: number;
4503
+ footer?: ReactNode;
4545
4504
  /**
4546
- * Disable buttons drawer
4505
+ * Style of the drawer footer part
4547
4506
  */
4548
- disabledButtons?: boolean;
4507
+ footerStyle?: CSSProperties;
4549
4508
  /**
4550
- * Form Steps info
4509
+ * Pre-render Drawer component forcibly
4551
4510
  */
4552
- formSteps?: IFormStep<FormType>[];
4511
+ forceRender?: boolean;
4553
4512
  /**
4554
- * current step
4513
+ * mounted node and display window for Drawer
4555
4514
  */
4556
- currentFormStep?: number;
4515
+ getContainer?: DrawerProps['getContainer'];
4557
4516
  /**
4558
- * Search table elements
4517
+ * Style of the drawer header part
4559
4518
  */
4560
- searchBoxOnSearch?: OrModuleTableHeaderProps['searchBoxOnSearch'];
4519
+ headerStyle?: CSSProperties;
4561
4520
  /**
4562
- * title of drawer
4521
+ * Placement is top or bottom, height of the Drawer dialog
4563
4522
  */
4564
- titleLeftDrawer?: ReactNode;
4523
+ height?: string | number;
4565
4524
  /**
4566
- * Specify a callback that will be called when a user clicks mask, close button or Cancel button
4525
+ * Whether support press esc to close
4567
4526
  */
4568
- onCloseLeftDrawer?: (e: React.MouseEvent | React.KeyboardEvent) => void;
4527
+ keyboard?: boolean;
4569
4528
  /**
4570
- * whether left drawer is open or close
4529
+ * Whether to show mask or not
4571
4530
  */
4572
- openLeftDrawer?: boolean;
4531
+ mask?: boolean;
4573
4532
  /**
4574
- * Children for Left Drawer
4533
+ * Clicking on the mask (area outside the Drawer) to close the Drawer or not
4575
4534
  */
4576
- leftDrawerContent?: React.ReactNode;
4535
+ maskClosable?: boolean;
4577
4536
  /**
4578
- * Custom component to render at left side of table header
4537
+ * Style for Drawer's mask element
4579
4538
  */
4580
- tableHeaderCustomLeftElements?: React.ReactNode;
4539
+ maskStyle?: CSSProperties;
4581
4540
  /**
4582
- * Drawer Width
4541
+ * The placement of the Drawer
4583
4542
  */
4584
- leftDrawerWidth?: number;
4543
+ placement?: 'top' | 'right' | 'bottom' | 'left';
4585
4544
  /**
4586
- * searchBox placeHolder
4545
+ * Nested drawers push behavior
4587
4546
  */
4588
- searchBoxPlaceholder?: string;
4547
+ push?: boolean | {
4548
+ distance: string | number;
4549
+ };
4589
4550
  /**
4590
- * show search box
4551
+ * The class name of the container of the Drawer dialog
4591
4552
  */
4592
- showSearchBox?: boolean;
4553
+ rootClassName?: string;
4593
4554
  /**
4594
- * Drawer Content
4555
+ * Style of wrapper element which contains mask compare to style
4595
4556
  */
4596
- drawerContent?: React.ReactNode;
4557
+ rootStyle?: CSSProperties;
4597
4558
  /**
4598
- * Drawer Title
4559
+ * Style of Drawer panel. Use bodyStyle if want to config body only
4599
4560
  */
4600
- drawerTitle?: React.ReactNode;
4561
+ style?: CSSProperties;
4601
4562
  /**
4602
- * Drawer Width
4563
+ * preset size of drawer, default 378px and large 736px
4603
4564
  */
4604
- drawerWidth?: number;
4565
+ size?: 'default' | 'large';
4605
4566
  /**
4606
- * Text of first button
4567
+ * The title for Drawer
4607
4568
  */
4608
- firstButtonText?: string;
4569
+ title?: ReactNode;
4609
4570
  /**
4610
- * Text of second button
4571
+ * Whether the Drawer dialog is visible or not
4611
4572
  */
4612
- secondButtonText?: string;
4573
+ open?: boolean;
4613
4574
  /**
4614
- * Function to execute when first button is clicked
4575
+ * Width of the Drawer dialog
4615
4576
  */
4616
- onClickFirstButton?: () => void;
4577
+ width?: string | number;
4617
4578
  /**
4618
- * Function to execute when second button is clicked
4579
+ * The z-index of the Drawer
4619
4580
  */
4620
- onClickSecondButton?: () => void;
4581
+ zIndex?: number;
4621
4582
  /**
4622
- * Show drawer content
4583
+ * Specify a callback that will be called when a user clicks mask, close button or Cancel button
4623
4584
  */
4624
- showDrawerContent?: boolean;
4585
+ onClose?: (e: React.MouseEvent | React.KeyboardEvent) => void;
4625
4586
  /**
4626
- * margin
4587
+ * Children of the drawer
4627
4588
  */
4628
- $margin?: string;
4589
+ children?: React.ReactNode;
4590
+ }
4591
+ export const OrDrawer: React.FC<OrDrawerProps>;
4592
+ export interface AtSpaceCompactProps {
4629
4593
  /**
4630
- * table title level
4594
+ * The ID for input
4631
4595
  */
4632
- tableTitleLevel?: 1 | 2 | 3 | 4 | 5;
4596
+ id?: string;
4633
4597
  /**
4634
- * button optional text
4598
+ * Option to fit width to its parent's width
4635
4599
  */
4636
- secondaryButtonText?: string;
4600
+ block?: boolean;
4637
4601
  /**
4638
- * button optional onClick
4602
+ * Set direction of layout
4639
4603
  */
4640
- secondaryOnClick?: () => void;
4604
+ direction?: 'vertical' | 'horizontal';
4641
4605
  /**
4642
- * button optional text
4606
+ * Set child component size
4643
4607
  */
4644
- showFormStepper?: boolean;
4645
- onBack?: () => void;
4646
- resources: OrCalendarProps['resources'];
4647
- events: OrCalendarProps['events'];
4648
- resourceTitle: OrCalendarProps['resourceTitle'];
4608
+ size?: 'large' | 'middle' | 'small';
4649
4609
  /**
4650
- * Actual display date
4610
+ * Children of the OrSpace
4651
4611
  */
4652
- displayDate: string;
4612
+ children?: React.ReactNode;
4613
+ }
4614
+ export const OrSpaceCompact: React.FC<AtSpaceCompactProps>;
4615
+ export interface OrPhoneInputProps {
4653
4616
  /**
4654
- * handles segment change
4617
+ * Name of input
4655
4618
  */
4656
- onChangeSegment?: AtSegmentedProps['onChange'];
4619
+ name?: string;
4657
4620
  /**
4658
- * Options for the segment control.
4621
+ * Dial codes options
4659
4622
  */
4660
- segmentOptions?: AtSegmentedProps['options'];
4623
+ options: AtSelectProps['options'];
4661
4624
  /**
4662
- * Columns for select filters.
4625
+ * Disabled input
4663
4626
  */
4664
- columnsFilters?: OrModuleCalendarHeaderProps['columnsFilters'];
4627
+ disabled?: boolean;
4665
4628
  /**
4666
- * Columns for buttons filters.
4629
+ * Rules for validation
4630
+ * @default []
4631
+ */
4632
+ rules?: MlFromItemProps['rules'];
4633
+ }
4634
+ export const OrPhoneInput: React.FC<OrPhoneInputProps>;
4635
+ export interface OrSelectInputProps {
4636
+ /**
4637
+ * Dial codes options
4667
4638
  */
4668
- buttonsFilters?: {
4669
- label: string;
4670
- onClick: AtButtonProps['onClick'];
4671
- icon: AtButtonProps['icon'];
4672
- }[];
4639
+ options: AtSelectProps['options'];
4673
4640
  /**
4674
- * Custom event content
4641
+ * Disabled input
4675
4642
  */
4676
- eventContent?: (eventInfo: {
4677
- event: OrCalendarProps['events'];
4678
- }) => React.ReactNode;
4643
+ disabled?: boolean;
4679
4644
  /**
4680
- * Icon for first button
4645
+ * Rules for validation
4646
+ * @default []
4681
4647
  */
4682
- buttonIcon?: string;
4648
+ rules?: MlFromItemProps['rules'][];
4649
+ type?: 'number' | 'text';
4650
+ fieldName: string;
4651
+ inputProps?: AtTextInputProps | AtNumberInputProps;
4652
+ selectProps?: AtSelectProps;
4653
+ value?: {
4654
+ select: string;
4655
+ input: string;
4656
+ };
4657
+ }
4658
+ export const OrSelectInput: React.FC<OrSelectInputProps>;
4659
+ export interface AtIconProps {
4683
4660
  /**
4684
- * Button onClick
4661
+ * The ID for input
4685
4662
  */
4686
- buttonOnClick?: (React.MouseEventHandler<HTMLAnchorElement> & React.MouseEventHandler<HTMLButtonElement>) | undefined;
4663
+ id?: string;
4687
4664
  /**
4688
- * text for filtering
4665
+ * Name of the icon
4689
4666
  */
4690
- filterText: string;
4667
+ name?: keyof typeof Icons;
4691
4668
  /**
4692
- * text for popover action
4669
+ * Define the color used to paint the svg element
4693
4670
  */
4694
- actionPopOverText?: string;
4671
+ fill?: string;
4695
4672
  /**
4696
- * Left Arrow Button onClick
4673
+ * The computed style of the svg element
4697
4674
  */
4698
- leftArrowOnOnClick?: (React.MouseEventHandler<HTMLAnchorElement> & React.MouseEventHandler<HTMLButtonElement>) | undefined;
4675
+ style?: CSSProperties;
4699
4676
  /**
4700
- * Right Arrow Button onClick
4677
+ * The height of the svg element
4701
4678
  */
4702
- rightArrowOnOnClick?: (React.MouseEventHandler<HTMLAnchorElement> & React.MouseEventHandler<HTMLButtonElement>) | undefined;
4679
+ height?: string | number;
4703
4680
  /**
4704
- * Current date of the calendar
4681
+ * The width of the svg element
4705
4682
  */
4706
- currentDate: Date | string | number;
4683
+ width?: string | number;
4707
4684
  /**
4708
- * Handles resource select
4685
+ * Define extra properties to the component
4709
4686
  */
4710
- onSelectResource?: (id: string) => void;
4687
+ extraCommonProps?: {
4688
+ [key: string]: any;
4689
+ };
4711
4690
  /**
4712
- * Handles date selection
4691
+ * The URL generated by iconfont.cn project. Support string[] after @ant-design/icons@4.1.0
4713
4692
  */
4714
- onSelectDate?: (value: Dayjs | null) => void;
4693
+ scriptUrl?: string | string[];
4715
4694
  /**
4716
- * Handles loading state
4695
+ * The component used for the root node
4717
4696
  */
4718
- loadingSearchFilter?: boolean;
4719
- }
4720
- 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, $margin, title, actionPopOverText, disabledButtons, handleCloseCallback, showFormStepper, onBack, events, resources, resourceTitle, displayDate, onChangeSegment, segmentOptions, columnsFilters, buttonsFilters, filterText, leftArrowOnOnClick, rightArrowOnOnClick, currentDate, onSelectResource, loadingSearchFilter, onSelectDate, loadingTable, }: TmCalendarPageProps<RecordType, FormType>) => import("react/jsx-runtime").JSX.Element;
4721
- export interface MarkersArrayMap {
4722
- type: 'add' | 'oneWay' | 'return';
4723
- color?: OrMarkProps['color'];
4724
- backgroundColor?: string;
4725
- size?: OrMarkProps['size'];
4726
- marks: OrMarkProps[];
4727
- polyLine: boolean;
4728
- onClickMarker?: (item: OrMarkProps) => void;
4729
- popOverButtonText?: string;
4730
- title?: string;
4731
- }
4732
- export interface TmCustomMapPageProps<FormType = any> extends OrModuleTableHeaderProps {
4733
- map: GoogleMapProps & {
4734
- GOOGLE_MAPS_API_KEY: string;
4735
- ref?: React.RefObject<GoogleMap>;
4736
- };
4737
- staticMarkers?: MarkersArrayMap[];
4738
- realtimeMarkers?: MarkersArrayMap[];
4697
+ component?: IconComponentProps['component'];
4739
4698
  /**
4740
- * State of the drawer
4699
+ * Rotate degrees (not working in IE9)
4741
4700
  */
4742
- open?: boolean;
4701
+ rotate?: number;
4743
4702
  /**
4744
- * On press cancel and close button function
4703
+ * Rotate icon with animation
4745
4704
  */
4746
- handleCloseCallback?: () => void;
4705
+ spin?: boolean;
4747
4706
  /**
4748
- * Disable buttons drawer
4707
+ * Color of the icon
4749
4708
  */
4750
- disabledButtons?: boolean;
4709
+ twoToneColor?: string;
4710
+ }
4711
+ export const AtIcon: React.FC<AtIconProps>;
4712
+ export interface AtInputStatusProps {
4751
4713
  /**
4752
- * Form Steps info
4714
+ * Custom close icon. 5.7.0: close button will be hidden when setting to null or false
4753
4715
  */
4754
- formSteps?: IFormStep<FormType>[];
4716
+ closeIcon?: React.ReactNode;
4755
4717
  /**
4756
- * current step
4718
+ * Set the icon of tag
4757
4719
  */
4758
- currentFormStep?: number;
4720
+ icon?: React.ReactNode;
4759
4721
  /**
4760
- * Drawer Content
4722
+ * Callback executed when tag is closed
4761
4723
  */
4762
- drawerContent?: React.ReactNode;
4724
+ onClose?: (e: React.MouseEvent<HTMLElement>) => void;
4763
4725
  /**
4764
- * Drawer Title
4726
+ * Tag text
4765
4727
  */
4766
- drawerTitle?: React.ReactNode;
4728
+ children?: React.ReactNode;
4767
4729
  /**
4768
- * Drawer Title
4730
+ * Status type
4769
4731
  */
4770
- drawerTitleSecondary?: React.ReactNode;
4732
+ type?: 'success' | 'warning' | 'danger' | 'info' | 'default';
4733
+ visible?: boolean;
4734
+ }
4735
+ export const AtInputStatus: React.FC<AtInputStatusProps>;
4736
+ interface OrDownloadProps {
4771
4737
  /**
4772
- * Drawer Width
4738
+ * The function to call when the download button is clicked
4773
4739
  */
4774
- drawerWidth?: number;
4740
+ downloadOnClick?: () => any;
4775
4741
  /**
4776
- * Drawer Width
4742
+ * The text to display on the download button
4777
4743
  */
4778
- drawerWidthSecondary?: number;
4744
+ downloadText: string;
4745
+ }
4746
+ export interface OrDownloadUploadProps {
4779
4747
  /**
4780
- * Text of first button
4748
+ * Key identifier
4781
4749
  */
4782
- firstButtonText?: string;
4750
+ inputKey: string;
4783
4751
  /**
4784
- * Text of second button
4752
+ * The function to call when the value of the file changes
4785
4753
  */
4786
- secondButtonText?: string;
4754
+ getValueFromEvent?: (e: any) => any;
4787
4755
  /**
4788
- * Function to execute when first button is clicked
4756
+ * The rules for the file
4789
4757
  */
4790
- onClickFirstButton?: () => void;
4758
+ rules?: MlFromItemProps['rules'];
4791
4759
  /**
4792
- * Function to execute when second button is clicked
4760
+ * If the file is required
4793
4761
  */
4794
- onClickSecondButton?: () => void;
4762
+ isRequired?: boolean;
4763
+ downloadProps: OrDownloadProps;
4764
+ uploadProps: MlUploadProps;
4765
+ disabled?: boolean;
4795
4766
  /**
4796
- * Show drawer content
4767
+ * The mode of the upload
4797
4768
  */
4798
- showDrawerContent?: boolean;
4769
+ mode?: 'drag' | 'basic';
4770
+ }
4771
+ export const OrDownloadUpload: React.FC<OrDownloadUploadProps>;
4772
+ type _Size1 = 'large' | 'middle' | 'small';
4773
+ export interface OrMarkProps {
4774
+ id?: string;
4775
+ text?: string;
4776
+ color?: AtTextProps['color'];
4777
+ backgroundColor?: string;
4778
+ onClick?: React.MouseEventHandler<HTMLDivElement>;
4779
+ size?: _Size1;
4780
+ position: {
4781
+ lat: number;
4782
+ lng: number;
4783
+ };
4784
+ component?: React.ReactNode;
4785
+ hasOverlay?: boolean;
4786
+ translate?: number[];
4787
+ }
4788
+ export const OrMark: React.FC<OrMarkProps>;
4789
+ export enum MarkSize {
4790
+ Large = "large",
4791
+ Middle = "middle",
4792
+ Small = "small"
4793
+ }
4794
+ export interface MarkersGroup {
4795
+ color?: OrMarkProps['color'];
4796
+ backgroundColor?: string;
4797
+ size?: OrMarkProps['size'];
4798
+ marks: OrMarkProps[];
4799
+ polyLine: boolean;
4800
+ }
4801
+ export interface OrGoogleMapsProps extends GoogleMapProps {
4799
4802
  /**
4800
- * margin
4803
+ * The origin of the route.
4801
4804
  */
4802
- $margin?: string;
4805
+ origin?: string | google.maps.LatLng | google.maps.Place | google.maps.LatLngLiteral;
4803
4806
  /**
4804
- * table title level
4807
+ * The destination of the route.
4805
4808
  */
4806
- tableTitleLevel?: 1 | 2 | 3 | 4 | 5;
4809
+ destination?: string | google.maps.LatLng | google.maps.Place | google.maps.LatLngLiteral;
4807
4810
  /**
4808
- * button optional text
4811
+ * Type of routing requested.
4809
4812
  */
4810
- secondaryButtonText?: string;
4813
+ travelMode?: google.maps.TravelMode;
4811
4814
  /**
4812
- * button optional onClick
4815
+ * The stroke color.
4813
4816
  */
4814
- secondaryOnClick?: () => void;
4817
+ strokeColor?: string | null;
4815
4818
  /**
4816
- * button optional text
4819
+ * The stroke opacity between 0.0 and 1.0.
4817
4820
  */
4818
- showFormStepper?: boolean;
4819
- onBack?: () => void;
4821
+ strokeOpacity?: number | null;
4820
4822
  /**
4821
- * On change form content
4823
+ * The stroke width in pixels.
4822
4824
  */
4823
- onValuesChange?: OrFormProps['onValuesChange'];
4825
+ strokeWeight?: number | null;
4824
4826
  /**
4825
- * Button value text
4827
+ * The Google Maps API key.
4826
4828
  */
4827
- buttonAddText?: string;
4829
+ GOOGLE_MAPS_API_KEY: string;
4828
4830
  /**
4829
- * Callback when add button is pressed
4831
+ * Static markers.
4830
4832
  */
4831
- addButtonOnClick?: OrModuleTableHeaderProps['buttonOnClick'];
4833
+ staticMarkers?: MarkersGroup[];
4832
4834
  /**
4833
- * Custom component to render at left side of table header
4835
+ * Realtime markers.
4834
4836
  */
4835
- tableHeaderCustomLeftElements?: React.ReactNode;
4837
+ realtimeMarkers?: MarkersGroup[];
4836
4838
  /**
4837
- * padding
4839
+ * Polylines
4838
4840
  */
4839
- padding?: string;
4841
+ polylines?: {
4842
+ color: string | null | undefined;
4843
+ stops: {
4844
+ latitude: number;
4845
+ longitude: number;
4846
+ }[];
4847
+ }[];
4848
+ }
4849
+ export const OrGoogleMaps: React.FC<OrGoogleMapsProps>;
4850
+ export type OrColumnsType<T = unknown> = ColumnsType<T>;
4851
+ export type OnChangeTable<RecordType = AnyObject> = (pagination: TablePaginationConfig, filters: Record<string, FilterValue | null>, sorter: SorterResult<RecordType> | SorterResult<RecordType>[], extra: TableCurrentDataSource<RecordType>) => void;
4852
+ export interface OrTableProps<RecordType = AnyObject> {
4840
4853
  /**
4841
- * Custom component to render on map item click popover
4854
+ * Whether to show all table borders
4842
4855
  */
4843
- itemOnClickMap?: {
4844
- visible: boolean;
4845
- lat: number;
4846
- lng: number;
4847
- item: any;
4848
- id: string | null;
4849
- pictureUrl?: string;
4850
- };
4856
+ bordered?: boolean;
4851
4857
  /**
4852
- * Custom icon rendered to select a point in the map
4858
+ * Columns of table
4853
4859
  */
4854
- markSelectIcon?: React.ReactNode;
4860
+ columns: TableProps<RecordType>['columns'];
4855
4861
  /**
4856
- *markers width
4862
+ * Data record array to be displayed
4857
4863
  */
4858
- markersWidth?: number;
4864
+ dataSource: TableProps<RecordType>['dataSource'];
4859
4865
  /**
4860
- * Circle props
4866
+ * Loading status of table
4861
4867
  */
4862
- circle?: CircleProps;
4868
+ loading?: TableProps<RecordType>['loading'];
4863
4869
  /**
4864
- * Open routes modal
4870
+ * Config of pagination. You can ref table pagination config or full pagination document, hide it by setting it to false
4865
4871
  */
4866
- openRoutesModal?: boolean;
4872
+ pagination?: TableProps<RecordType>['pagination'];
4867
4873
  /**
4868
- * On press cancel and close button function
4874
+ * Row's unique key, could be a string or function that returns a string
4869
4875
  */
4870
- handleCloseCallbackSecondary?: () => void;
4876
+ rowKey?: TableProps<RecordType>['rowKey'];
4871
4877
  /**
4872
- * Routes items
4878
+ * Size of table
4873
4879
  */
4874
- routesItems?: React.ReactNode;
4880
+ size?: 'large' | 'middle' | 'small';
4875
4881
  /**
4876
- * Polylines
4882
+ * Set sticky header and scroll bar
4877
4883
  */
4878
- polylines?: {
4879
- color: string | null | undefined;
4880
- stops: {
4881
- latitude: number;
4882
- longitude: number;
4883
- }[];
4884
- }[];
4884
+ sticky?: boolean;
4885
4885
  /**
4886
- * On click polyline
4886
+ * Table title renderer
4887
4887
  */
4888
- onClickPolyline?: (event: google.maps.MapMouseEvent | null, route?: any) => void;
4889
- }
4890
- export const TmCustomMapPage: React.FC<TmCustomMapPageProps>;
4891
- export interface TmCustomTabsPageProps<FormType = any> {
4888
+ title?: TableProps<RecordType>['title'];
4892
4889
  /**
4893
- * Avatar image
4890
+ * Callback executed when pagination, filters or sorter is changed
4894
4891
  */
4895
- avatar?: string;
4892
+ onChange?: OnChangeTable<RecordType>;
4896
4893
  /**
4897
- * User name
4894
+ * row selection config
4898
4895
  */
4899
- username: string;
4896
+ rowSelection?: TableProps<RecordType>['rowSelection'];
4900
4897
  /**
4901
- * User phone number
4898
+ * Set the scroll of table, could be a number that indicates the width of the scroll area, or an object that has the following properties: x number | string, y number | string
4902
4899
  */
4903
- phone: string;
4900
+ scroll?: TableProps<RecordType>['scroll'];
4904
4901
  /**
4905
- * Balance ticket label
4902
+ * Set the expandable of table
4903
+ * */
4904
+ expandable?: ExpandableConfig<RecordType> | undefined;
4905
+ /**
4906
+ * components of table
4906
4907
  */
4907
- balanceLabel: string;
4908
+ components?: TableProps<RecordType>['components'];
4909
+ }
4910
+ export const OrTable: <RecordType extends AnyObject>({ bordered, loading, pagination, size, sticky, rowSelection, ...props }: OrTableProps<RecordType>) => JSX.Element;
4911
+ export type OrSelectTableOption<T = any> = {
4912
+ label: string;
4913
+ value: string;
4914
+ fullData: T;
4915
+ };
4916
+ export interface OrSelectTableProps<T = any> extends AtSelectProps {
4917
+ columns?: OrTableProps['columns'];
4918
+ data?: OrTableProps['dataSource'];
4919
+ options?: OrSelectTableOption<T>[];
4920
+ fieldName: string;
4921
+ rules?: MlFromItemProps['rules'][];
4922
+ }
4923
+ export const OrSelectTable: React.FC<OrSelectTableProps>;
4924
+ export interface OrDescriptionsProps extends DescriptionsProps {
4908
4925
  /**
4909
- * Balance ticket value
4926
+ * The ID for input
4910
4927
  */
4911
- balanceValue: string;
4928
+ id?: string;
4912
4929
  /**
4913
- * Icon for the info part
4930
+ * Title of the description set
4914
4931
  */
4915
- infoIcon?: AtIconProps['name'];
4932
+ title: string;
4916
4933
  /**
4917
- * Info label
4934
+ * Whether the table has border or not
4918
4935
  */
4919
- infoLabel?: string;
4936
+ bordered?: boolean;
4920
4937
  /**
4921
- * Info value
4938
+ * Items to display
4922
4939
  */
4923
- infoValue?: string;
4940
+ items: DescriptionsProps['items'];
4924
4941
  /**
4925
- * Main button label
4942
+ * Extra content to display
4926
4943
  */
4927
- mainButtonLabel: string;
4944
+ extra?: DescriptionsProps['extra'];
4928
4945
  /**
4929
- * Secondary button label
4946
+ * variation between : 'common' | 'no-header' | 'list'
4930
4947
  */
4931
- secondaryButtonLabel?: string;
4948
+ variation?: 'common' | 'no-header' | 'list';
4949
+ }
4950
+ export const OrDescriptions: React.FC<OrDescriptionsProps>;
4951
+ /**
4952
+ * Props for the SortableContextWrapper component.
4953
+ */
4954
+ export interface OrSortableContextWrapperProps<RecordType = AnyObject> {
4932
4955
  /**
4933
- * Main button icon
4956
+ * An array of items to be sorted.
4934
4957
  */
4935
- mainButtonIcon?: AtIconProps['name'];
4958
+ items: TableProps<RecordType>['dataSource'];
4936
4959
  /**
4937
- * Secondary button icon
4960
+ * Callback function that is called when dragging ends.
4938
4961
  */
4939
- secondaryButtonIcon?: AtIconProps['name'];
4962
+ onDragEnd: (event: DragEndEvent) => any;
4940
4963
  /**
4941
- * Left arrow click event
4964
+ * The child nodes to be rendered within the sortable context.
4942
4965
  */
4943
- onClickLeftArrow?: () => void;
4966
+ children: React.ReactNode;
4967
+ }
4968
+ export const OrSortableContextWrapper: React.FC<OrSortableContextWrapperProps>;
4969
+ interface RowProps extends React.HTMLAttributes<HTMLTableRowElement> {
4970
+ 'data-row-key': string;
4971
+ showDraggableIcon?: boolean;
4972
+ }
4973
+ export const OrSortableRow: React.FC<RowProps>;
4974
+ export interface OrDraggableTableProps<RecordType = AnyObject> {
4944
4975
  /**
4945
- * Main action click event
4976
+ * Whether to show all table borders
4946
4977
  */
4947
- onClickMainAction?: () => void;
4978
+ bordered?: boolean;
4948
4979
  /**
4949
- * Secondary action click event
4980
+ * Columns of table
4950
4981
  */
4951
- onClickSecondaryAction?: () => void;
4982
+ columns: TableColumnsType<any>;
4952
4983
  /**
4953
- * Form Steps info
4984
+ * Data record array to be displayed
4954
4985
  */
4955
- formSteps?: IFormStep<FormType>[];
4986
+ data: _TableProps1<RecordType>['dataSource'];
4956
4987
  /**
4957
- * On press cancel and close button function
4988
+ *
4989
+ * onDragEnd function to execute
4958
4990
  */
4959
- handleCloseCallback?: () => void;
4991
+ onDragEnd: (event: DragEndEvent) => any;
4960
4992
  /**
4961
- * State of the drawer
4993
+ * Whether to show draggable icon
4962
4994
  */
4963
- open?: boolean;
4995
+ showDraggableIcon?: boolean;
4996
+ }
4997
+ export const OrDraggableTable: <RecordType extends AnyObject>({ data, columns, onDragEnd, showDraggableIcon, }: OrDraggableTableProps<RecordType>) => JSX.Element;
4998
+ interface TextProps extends AtTextProps {
4999
+ text: string;
5000
+ }
5001
+ export interface OrFormInLineItem {
4964
5002
  /**
4965
- * Drawer Content
5003
+ * Type of components available for the form
4966
5004
  */
4967
- drawerContent?: React.ReactNode;
5005
+ component: 'radio' | 'radio-cards' | 'number-input' | 'checkbox' | 'select' | 'select-multiple' | 'text' | 'phone' | 'date-picker' | 'date-range-picker' | 'cvc' | 'name' | 'select-input' | 'info' | 'copy-info' | 'status-info' | 'file-input' | 'collapse' | 'download-upload' | 'summary' | 'qr-code' | 'select-table' | 'google-map' | 'google-autocomplete-search' | 'stepper' | 'input-list' | 'button' | 'group' | 'divider' | 'image' | 'time-range-picker' | 'autocomplete-search' | 'tabs' | 'descriptions-table' | 'draggable-table' | 'summary' | 'badge-ribbon' | 'summary-descriptions' | 'collapse-custom-vehicles';
4968
5006
  /**
4969
- * Drawer Title
5007
+ * Label of the field
4970
5008
  */
4971
- drawerTitle?: React.ReactNode;
5009
+ label?: string | string[];
4972
5010
  /**
4973
- * Drawer Width
5011
+ * Key identifier
4974
5012
  */
4975
- drawerWidth?: number;
5013
+ key?: string;
4976
5014
  /**
4977
- * Disable buttons drawer
5015
+ * Field name (develop purpose)
4978
5016
  */
4979
- disabledButtons?: boolean;
5017
+ fieldName: string;
4980
5018
  /**
4981
- * current step
5019
+ * Place holder (only for inputs)
4982
5020
  */
4983
- currentFormStep?: number;
5021
+ placeHolder?: string;
4984
5022
  /**
4985
- * button optional text
5023
+ * Children of the FormItems (Recursive Form)
4986
5024
  */
4987
- showFormStepper?: boolean;
5025
+ children?: OrFormItemsInlineProps | React.ReactElement | string;
4988
5026
  /**
4989
- * On change form content
5027
+ * Specifies options for fields that allows options
4990
5028
  */
4991
- onValuesChange?: OrFormProps['onValuesChange'];
5029
+ options?: MlRadioGroupProps['options'] | MlCheckboxGroup['options'] | AtSelectProps['options'] | OrSelectTableOption[];
4992
5030
  /**
4993
- * Tabs props
5031
+ * Rules for field validation. Click [here](https://ant.design/components/form#components-form-demo-basic) to see an example
4994
5032
  */
4995
- tabsProps: OrTabsProps;
5033
+ rules?: MlFromItemProps['rules'];
5034
+ compositeRules?: [MlFromItemProps['rules'], MlFromItemProps['rules']];
5035
+ compositeType?: OrSelectInputProps['type'];
5036
+ hidden?: boolean;
5037
+ disabled?: boolean;
5038
+ styles?: CSSProperties;
5039
+ addonAfter?: ReactNode;
5040
+ onSearch?: (value: string) => any;
5041
+ showSearch?: boolean;
5042
+ onChange?: (value: any, option?: DefaultOptionType | Array<DefaultOptionType>) => any;
5043
+ onSelect?: AtSelectProps['onSelect'];
5044
+ onDeselect?: AtSelectProps['onDeselect'];
5045
+ filterOption?: AtSelectProps['filterOption'];
5046
+ disabledDate?: AtDatePickerPros['disabledDate'];
5047
+ formatter?: AtNumberInputProps['formatter'];
5048
+ parser?: AtNumberInputProps['parser'];
5049
+ items?: OrCollapseProps['items'];
5050
+ iconItems?: MlInfoListProps['items'];
5051
+ summaryDescriptionsProps?: OrDescriptionsProps;
4996
5052
  /**
4997
- * Breadcrumb items titles
5053
+ * Format of the date
4998
5054
  */
4999
- breadcrumbItems?: MlBreadcrumbProps['items'];
5000
- }
5001
- export const TmCustomTabsPage: <FormType extends Store>({ avatar, username, phone, balanceLabel, balanceValue, infoIcon, infoLabel, infoValue, mainButtonLabel, secondaryButtonLabel, mainButtonIcon, secondaryButtonIcon, onClickLeftArrow, onClickMainAction, onClickSecondaryAction, formSteps, handleCloseCallback, open, drawerTitle, drawerWidth, disabledButtons, currentFormStep, showFormStepper, onValuesChange, tabsProps, breadcrumbItems, }: TmCustomTabsPageProps<FormType>) => import("react/jsx-runtime").JSX.Element;
5002
- interface IDashboardItems {
5003
- gutter: {
5004
- xs?: number;
5005
- sm?: number;
5006
- md?: number;
5007
- lg?: number;
5008
- xl?: number;
5009
- xxl?: number;
5010
- };
5011
- children: React.ReactNode;
5012
- }
5013
- export interface TmDashboardProps<FormType = any> {
5055
+ format?: string;
5056
+ textProps?: TextProps | Array<TextProps>;
5057
+ tabProps?: OrTabsProps;
5058
+ badgeCardProps?: AtBadgeCardProps;
5059
+ collapseCardProps?: OrCollapseCardProps;
5060
+ onClick?: () => any;
5014
5061
  /**
5015
- * Header props
5062
+ * Limit the number of uploaded files. Will replace current one when maxCount is 1
5016
5063
  */
5017
- headerProps: OrModuleTableHeaderProps;
5064
+ maxCount?: number;
5018
5065
  /**
5019
- * items from left for render on the dashboard
5066
+ * Specify how to get value from event or other onChange arguments
5020
5067
  */
5021
- itemsLeft: IDashboardItems[];
5068
+ getValueFromEvent?: (e: any) => any;
5022
5069
  /**
5023
- * items from right for render on the dashboard
5070
+ * Hook function which will be executed before uploading. Uploading will be stopped with false or a rejected Promise returned. When returned value is Upload.LIST_IGNORE, the list of files that have been uploaded will ignore it. Warning:this function is not supported in IE9
5024
5071
  */
5025
- itemsRight: IDashboardItems[];
5072
+ beforeUpload?: UploadProps['beforeUpload'];
5026
5073
  /**
5027
- * drawer config
5074
+ * Enables full width
5028
5075
  */
5029
- drawerConfig?: {
5030
- /**
5031
- * current step
5032
- */
5033
- currentFormStep?: number;
5034
- /**
5035
- * Disable buttons drawer
5036
- */
5037
- disabledButtons?: boolean;
5038
- /**
5039
- * Form Steps info
5040
- */
5041
- formSteps?: IFormStep<FormType>[];
5042
- /**
5043
- * On press cancel and close button function
5044
- */
5045
- handleCloseCallback?: () => void;
5046
- /**
5047
- * State of the drawer
5048
- */
5049
- open?: boolean;
5050
- /**
5051
- * Drawer Title
5052
- */
5053
- drawerTitle?: React.ReactNode;
5054
- /**
5055
- * On change form content
5056
- */
5057
- onValuesChange?: OrFormProps['onValuesChange'];
5058
- /**
5059
- * Drawer Width
5060
- */
5061
- drawerWidth?: number;
5062
- };
5063
- }
5064
- export const TmDashboard: ({ headerProps, itemsLeft, itemsRight, drawerConfig, }: TmDashboardProps) => import("react/jsx-runtime").JSX.Element;
5065
- export interface TmDescriptionsPageProps {
5076
+ fullWidth?: boolean;
5066
5077
  /**
5067
- * The ID for input
5078
+ * Type of the status info
5068
5079
  */
5069
- id?: string;
5080
+ type?: 'success' | 'warning' | 'danger' | 'info' | 'default';
5070
5081
  /**
5071
- * Whether the table has border or not
5082
+ * Tooltip of the label
5072
5083
  */
5073
- bordered?: boolean;
5084
+ tooltip?: MlFromItemProps['tooltip'];
5074
5085
  /**
5075
- * Items to display
5086
+ * Title of the download-upload
5076
5087
  */
5077
- items: Array<OrDetailsPageProps | Array<OrDetailsPageProps>>;
5088
+ title?: string;
5078
5089
  /**
5079
- * Disable buttons drawer
5090
+ * Span of the column (only for inline items)
5080
5091
  */
5081
- disabledButtons?: boolean;
5092
+ span?: number;
5082
5093
  /**
5083
- * On change form content
5094
+ * Span of the column on medium screens (only for inline items)
5084
5095
  */
5085
- onValuesChange?: OrFormProps['onValuesChange'];
5096
+ md?: number;
5086
5097
  /**
5087
- * Custom header page template
5098
+ * MlInfoList items
5088
5099
  */
5089
- header?: React.ReactElement;
5090
- }
5091
- export const TmDescriptionsPage: ({ items, header, }: TmDescriptionsPageProps) => import("react/jsx-runtime").JSX.Element;
5092
- export interface TmFormListPageProps<FormType = any> {
5093
- formList?: {
5094
- title?: string;
5095
- formStepProps?: IFormStep<FormType>[];
5096
- formProps?: OrFormProps;
5097
- stepProps?: OrStepProp;
5098
- disabledButtons?: boolean;
5099
- formButtonProps?: AtButtonProps;
5100
- }[];
5101
- }
5102
- export const TmFormListPage: <FormType extends Store>({ formList, }: TmFormListPageProps<FormType>) => import("react/jsx-runtime").JSX.Element;
5103
- export interface OrSimpleBannerProps {
5100
+ summaryItems?: MlInfoListProps['items'];
5104
5101
  /**
5105
- * Id of the OrSimpleBannerProps
5102
+ * Label column span
5106
5103
  */
5107
- id?: string;
5104
+ labelCol?: number;
5108
5105
  /**
5109
- * Background image for banner
5106
+ * Information to be displayed below the input
5110
5107
  */
5111
- $backgroundSrc?: string;
5112
- }
5113
- export const OrSimpleBanner: React.FC<OrSimpleBannerProps>;
5114
- export interface TmLoginCountryProps {
5115
- data?: OrCountryCardProps[];
5116
- title?: string;
5117
- itemsPerRow?: number;
5118
- $backgroundSrc?: string;
5108
+ extraInfo?: string;
5119
5109
  /**
5120
- * Index selected Item
5110
+ * The Google Maps props
5121
5111
  */
5122
- selectedItem?: number;
5112
+ mapsProps?: OrGoogleMapsProps;
5123
5113
  /**
5124
- * Callback when card is clicked
5114
+ * The Google Maps API key.
5125
5115
  */
5126
- onSelectCard?: (index: number) => void;
5127
- }
5128
- export const TmLoginCountry: React.FC<TmLoginCountryProps>;
5129
- export interface IRegion {
5130
- id: string;
5131
- countryName: string;
5132
- region: string;
5133
- city: string;
5134
- }
5135
- export interface IFormData {
5136
- phone: {
5137
- dialCode: string;
5138
- phone: string;
5139
- };
5140
- }
5141
- export interface TmLoginPhoneProps {
5142
- countrySelectOptions?: IRegion[];
5116
+ GOOGLE_MAPS_API_KEY?: string;
5143
5117
  /**
5144
- * Welcome title
5118
+ * Country code
5145
5119
  */
5146
- title?: string;
5120
+ country?: string;
5147
5121
  /**
5148
- * Highlighted text into title
5122
+ * The props for the autocomplete search
5149
5123
  */
5150
- highlightedTitle?: string;
5124
+ autocompleteProps?: Omit<MlAutocompleteSearchProps, 'fieldName' | 'rules'>;
5151
5125
  /**
5152
- * Submit button text
5126
+ * The size of the QR code
5153
5127
  */
5154
- buttonText: string;
5128
+ size?: number;
5155
5129
  /**
5156
- * Form init values
5130
+ * Columns for the table (select-table component)
5157
5131
  */
5158
- initialValues?: IFormData;
5132
+ columns?: OrTableProps['columns'];
5159
5133
  /**
5160
- * Dial codes available
5134
+ * Data for the table (select-table component)
5161
5135
  */
5162
- dialCodes: string[];
5136
+ data?: OrTableProps['dataSource'];
5163
5137
  /**
5164
- * Phone regex validation
5138
+ * The picker type (date-picker component)
5165
5139
  */
5166
- phoneRegex?: RegExp;
5140
+ picker?: AtDatePickerPros['picker'];
5167
5141
  /**
5168
- * Phone validation message
5142
+ * file list for the file-input component
5169
5143
  */
5170
- phoneValidationMessage?: string;
5144
+ fileList?: MlUploadProps['fileList'];
5171
5145
  /**
5172
- * Phone validation input message
5146
+ * onRemove for the file-input component
5173
5147
  */
5174
- ruleMessage?: string;
5148
+ onRemoveUploadedFile?: MlUploadProps['onRemove'];
5149
+ noStyle?: boolean;
5175
5150
  /**
5176
- * On submit function
5151
+ * The mode of the upload
5177
5152
  */
5178
- onFinish?: FormProps['onFinish'];
5153
+ uploadMode?: 'drag' | 'basic';
5179
5154
  /**
5180
- * Form ref
5155
+ * The description of the summary component
5181
5156
  */
5182
- form?: FormProps['form'];
5157
+ description?: string;
5183
5158
  /**
5184
- * Show country select
5159
+ * Stepper props
5185
5160
  */
5186
- showCountrySelect?: boolean;
5187
- }
5188
- export const TmLoginPhone: React.FC<TmLoginPhoneProps>;
5189
- export interface AtCountdownProps {
5161
+ stepperProps?: OrStepProp;
5190
5162
  /**
5191
- * Format as dayjs string
5163
+ * Custom select options
5192
5164
  */
5193
- format?: string;
5165
+ customOptions?: AtSelectProps['options'];
5194
5166
  /**
5195
- * The prefix node of value
5167
+ * Adds a collapse wrapper to the current input
5196
5168
  */
5197
- prefix?: React.ReactNode;
5169
+ collapseWrapper?: boolean;
5198
5170
  /**
5199
- * The suffix node of value
5171
+ * The orientation of the input
5200
5172
  */
5201
- suffix?: React.ReactNode;
5173
+ orientation?: 'horizontal' | 'vertical';
5202
5174
  /**
5203
- * The suffix node of value
5175
+ * The type of the list item
5204
5176
  */
5205
- title?: React.ReactNode;
5177
+ listValues?: LabeledValue[];
5206
5178
  /**
5207
- * Set target countdown time number
5179
+ * The type of the list item
5208
5180
  */
5209
- value?: CountdownProps['value'];
5181
+ listItemType?: 'autocomplete' | 'text';
5210
5182
  /**
5211
- * Set value section style CSSProperties
5183
+ * The text for the bottom button
5212
5184
  */
5213
- valueStyle?: React.CSSProperties;
5185
+ addButtonText?: string;
5214
5186
  /**
5215
- * Trigger when time's up
5187
+ * The mode of the button
5216
5188
  */
5217
- onFinish?: () => void;
5189
+ buttonType?: AtButtonProps['type'];
5218
5190
  /**
5219
- * Trigger when time's changing
5191
+ * The icon of the button
5220
5192
  */
5221
- onChange?: (value: CountdownProps['value']) => void;
5193
+ icon?: AtButtonProps['icon'];
5222
5194
  /**
5223
- * Font color
5195
+ * The function to fetch the place details
5224
5196
  */
5225
- $color?: 'normal' | 'primary';
5197
+ fetchPlaceDetails?: (id: string) => any;
5226
5198
  /**
5227
- * Font size
5199
+ * The minimum number of items
5228
5200
  */
5229
- $fontSize?: number;
5230
- }
5231
- export const AtCountdown: React.FC<AtCountdownProps>;
5232
- export interface TmLoginPhoneCodeProps {
5201
+ minItems?: number;
5233
5202
  /**
5234
- * Page title
5203
+ * The props for the image field
5235
5204
  */
5236
- title: string;
5205
+ imageProps?: AtImageProps;
5237
5206
  /**
5238
- * Page title highlighted
5207
+ * The props for the time range picker
5239
5208
  */
5240
- highlightedTitle: string;
5209
+ timeRangePickerProps?: AtTimeRangePickerProps;
5241
5210
  /**
5242
- * Page description
5211
+ * The props for the time range picker
5243
5212
  */
5244
- description: string;
5213
+ descriptionsTableProps?: DescriptionsProps;
5245
5214
  /**
5246
- * Button text
5215
+ * Allow auto clear for a select field
5247
5216
  */
5248
- buttonText: string;
5217
+ autoClearSearchValue?: boolean | undefined;
5249
5218
  /**
5250
- * On submit function
5219
+ * Props for the draggable table
5251
5220
  */
5252
- onFinish?: FormProps['onFinish'];
5221
+ draggableTableProps?: OrDraggableTableProps;
5253
5222
  /**
5254
- * Form ref
5223
+ * Id for the qr code element
5255
5224
  */
5256
- form?: FormProps['form'];
5225
+ qrCodeId?: string;
5257
5226
  /**
5258
- * Countdown description
5227
+ * Group items
5259
5228
  */
5260
- countdownDescription?: string;
5229
+ groupItems?: OrFormInLineItem[];
5261
5230
  /**
5262
- * Countdown value
5231
+ * Group title
5263
5232
  */
5264
- countdownValue?: number;
5233
+ groupTitle?: ReactNode | string;
5265
5234
  /**
5266
- * Countdown format
5235
+ * input props
5267
5236
  */
5268
- countdownFormat?: string;
5237
+ inputProps?: AtTextInputProps | AtNumberInputProps;
5269
5238
  /**
5270
- * Indicate if the count down ended
5239
+ * The props for loading state in input list
5271
5240
  */
5272
- countdownEnded?: boolean;
5241
+ loading?: boolean;
5242
+ }
5243
+ export interface OrFormItemsInlineProps {
5244
+ inputs?: Array<OrFormInLineItem | Array<OrFormInLineItem | OrFormInLineItem[]>>;
5245
+ }
5246
+ export const OrFormItemsInline: React.FC<OrFormItemsInlineProps>;
5247
+ export interface OrDashboardLayoutProps {
5273
5248
  /**
5274
- * Callback triggered when countdown ends
5249
+ * Indicate if the menu is collapsed
5275
5250
  */
5276
- onFinishCountdown?: () => void;
5251
+ collapsed?: boolean;
5277
5252
  /**
5278
- * Countdown text part
5253
+ * Children components
5279
5254
  */
5280
- countdownText?: [string, string];
5255
+ children?: React.ReactNode;
5281
5256
  /**
5282
- * Send again text
5257
+ * Menu items to show in sider menu
5283
5258
  */
5284
- sendAgainText?: string;
5259
+ menuItems?: OrSiderMenuProps['items'];
5285
5260
  /**
5286
- * Function to call when resend is press it
5261
+ * On click collapsed button
5287
5262
  */
5288
- onResendPress?: () => void;
5289
- }
5290
- export const TmLoginPhoneCode: React.FC<TmLoginPhoneCodeProps>;
5291
- export interface MarkersArray {
5292
- color?: OrMarkProps['color'];
5293
- backgroundColor?: string;
5294
- size?: OrMarkProps['size'];
5295
- marks: OrMarkProps[];
5296
- polyLine: boolean;
5297
- }
5298
- export interface TmMapPageProps {
5299
- rightDrawer?: OrDrawerProps;
5300
- topLeftSelect: AtSelectProps;
5301
- topLeftButton?: AtButtonProps;
5302
- map: GoogleMapProps & {
5303
- GOOGLE_MAPS_API_KEY: string;
5304
- ref?: React.RefObject<GoogleMap>;
5305
- };
5306
- staticMarkers?: MarkersArray[];
5307
- realtimeMarkers?: MarkersArray[];
5308
- polylines?: {
5309
- color: string | null | undefined;
5310
- stops: {
5311
- latitude: number;
5312
- longitude: number;
5313
- }[];
5314
- }[];
5315
- }
5316
- export const TmMapPage: React.FC<TmMapPageProps>;
5317
- export interface OrRentalLayoutProps {
5263
+ onClickCollapsed?: () => void;
5264
+ /**
5265
+ * Called when a menu item is clicked
5266
+ */
5267
+ onClick?: OrSiderMenuProps['onClick'];
5318
5268
  /**
5319
- * Children component
5269
+ * Called when a bottom menu item is clicked
5320
5270
  */
5321
- children?: React.ReactNode;
5271
+ onClickBottomItems?: OrSiderMenuProps['onClick'];
5322
5272
  /**
5323
- * Background source
5273
+ * Called when a menu item is selected
5324
5274
  */
5325
- $backgroundSrc?: string;
5326
- }
5327
- export const OrRentalLayout: React.FC<OrRentalLayoutProps>;
5328
- export interface TmQuoteResultPageProps {
5275
+ onSelect?: OrSiderMenuProps['onSelect'];
5329
5276
  /**
5330
- * Background source
5277
+ * Called when a region item is selected
5331
5278
  */
5332
- $backgroundSrc?: string;
5279
+ onSelectCountry?: OrHeaderProps['onSelect'];
5333
5280
  /**
5334
- * Rental result
5281
+ * Header select options
5335
5282
  */
5336
- rentalResult: OrRentalResultProps;
5283
+ countrySelectOptions?: OrHeaderProps['countrySelectOptions'];
5337
5284
  /**
5338
- * Rental vehicle item
5285
+ * Header select options
5339
5286
  */
5340
- rentalVehicleItem: OrRentalVehicleItemProps | null;
5287
+ countrySelectID?: OrHeaderProps['countrySelectID'];
5341
5288
  /**
5342
- * Loading status
5289
+ * Header nav items
5343
5290
  */
5344
- loading?: boolean;
5291
+ navItems?: OrHeaderProps['navItems'];
5345
5292
  /**
5346
- * Empty message
5293
+ * Header avatar
5347
5294
  */
5348
- emptyMessage?: string;
5295
+ avatar?: OrHeaderProps['avatar'];
5349
5296
  /**
5350
- * Empty button text
5297
+ * Header avatar name
5351
5298
  */
5352
- emptyButtonText?: string;
5299
+ avatarName?: OrHeaderProps['avatarName'];
5353
5300
  /**
5354
- * Empty callback
5301
+ * Default selected country
5355
5302
  */
5356
- emptyCallback?: () => void;
5357
- }
5358
- export const TmQuoteResultPage: ({ $backgroundSrc, rentalResult, rentalVehicleItem, loading, emptyMessage, emptyButtonText, emptyCallback, }: TmQuoteResultPageProps) => import("react/jsx-runtime").JSX.Element;
5359
- export interface TmRechargePageProps<FormType = any> {
5303
+ selectValue?: OrHeaderProps['selectValue'];
5360
5304
  /**
5361
- * Page title
5305
+ * Nav item at the end of the sider
5362
5306
  */
5363
- title?: string;
5307
+ bottomItems?: OrSiderMenuProps['bottomItems'];
5308
+ selectedKeys?: OrSiderMenuProps['selectedKeys'];
5364
5309
  /**
5365
- * page subtitle
5310
+ * Or header props
5366
5311
  */
5367
- subtitle?: string;
5312
+ headerProps?: OrHeaderProps;
5368
5313
  /**
5369
- * page subtitle content
5314
+ * On Logo Click function
5370
5315
  */
5371
- balance?: string;
5316
+ onLogoClick?: React.MouseEventHandler<HTMLDivElement> | undefined;
5372
5317
  /**
5373
- * The title of the card
5318
+ * MlNotificationCard props to render
5374
5319
  */
5375
- cardTitle: string;
5320
+ notifications?: MlNotificationCardProps[];
5376
5321
  /**
5377
- * number of digits (input) to show
5322
+ * Props that use the header of the notifications panel for render
5378
5323
  */
5379
- digits?: number;
5324
+ notificationPanelHeader?: MlNotificationDropdownProps['header'];
5380
5325
  /**
5381
- * The input content value
5326
+ * AtButton props for handle the notification panel
5382
5327
  */
5383
- value?: number;
5328
+ iconButton?: AtButtonProps;
5384
5329
  /**
5385
- * Custom values for amounts
5330
+ * notifications drawer config
5386
5331
  */
5387
- values?: {
5388
- label: string;
5389
- value: number;
5390
- type: 'VALUE' | 'PERCENTAGE';
5391
- }[];
5332
+ notificationCenterConfig?: {
5333
+ /**
5334
+ * Form Steps info
5335
+ */
5336
+ formSteps: IFormStep<any>[];
5337
+ /**
5338
+ * On press cancel and close button function
5339
+ */
5340
+ handleCloseCallback?: () => void;
5341
+ /**
5342
+ * State of the drawer
5343
+ */
5344
+ open?: boolean;
5345
+ /**
5346
+ * Drawer Title
5347
+ */
5348
+ drawerTitle?: React.ReactNode;
5349
+ /**
5350
+ * On change form content
5351
+ */
5352
+ onValuesChange?: OrFormProps['onValuesChange'];
5353
+ /**
5354
+ * Drawer Width
5355
+ */
5356
+ drawerWidth?: number;
5357
+ /**
5358
+ * notifications for show
5359
+ */
5360
+ notifications: MlNotificationCardProps[];
5361
+ /**
5362
+ * text for show when there are no notifications
5363
+ */
5364
+ emptyText?: string;
5365
+ /**
5366
+ * unread label
5367
+ */
5368
+ unreadLabel: string;
5369
+ /**
5370
+ * unread label
5371
+ */
5372
+ readsLabel: string;
5373
+ };
5374
+ }
5375
+ export const OrDashboardLayout: React.FC<OrDashboardLayoutProps>;
5376
+ export interface OrEmptyProps {
5392
5377
  /**
5393
- * font size of the input
5378
+ * The main text of the empty card
5394
5379
  */
5395
- fontSize?: string;
5380
+ title: string;
5396
5381
  /**
5397
- * height of the input
5382
+ * The additional text of the empty card
5398
5383
  */
5399
- height?: string;
5384
+ description: string;
5385
+ }
5386
+ export const OrEmpty: React.FC<OrEmptyProps>;
5387
+ type _Size2 = 'large' | 'middle' | 'small';
5388
+ export interface OrLabelTextBoxProps {
5389
+ title?: string;
5390
+ text?: string;
5391
+ id?: string;
5392
+ size?: _Size2;
5393
+ color?: AtTextProps['color'];
5394
+ }
5395
+ export const OrLabelTextBox: React.FC<OrLabelTextBoxProps>;
5396
+ export interface OrInfoCardProps {
5397
+ data?: OrLabelTextBoxProps[];
5398
+ id?: string;
5399
+ image?: string;
5400
+ }
5401
+ export const OrInfoCard: React.FC<OrInfoCardProps>;
5402
+ export interface OrInfoHeaderCardProps extends MlCardProps {
5400
5403
  /**
5401
- * rule for the amount input
5404
+ * Left arrow click event
5402
5405
  */
5403
- ruleAmount?: MlFromItemProps['rules'];
5406
+ onClickLeftArrow?: () => void;
5404
5407
  /**
5405
- * rule for the coupon input
5408
+ * Breadcrumb items
5406
5409
  */
5407
- ruleCoupon?: MlFromItemProps['rules'];
5410
+ breadcrumbItems?: _BreadcrumbProps1['items'];
5408
5411
  /**
5409
- * Form ref
5412
+ * Breadcrumb items
5410
5413
  */
5411
- form?: FormProps['form'];
5414
+ leftElement?: React.ReactElement;
5412
5415
  /**
5413
- * Form init values
5416
+ * Breadcrumb items
5414
5417
  */
5415
- initialValues?: IFormData;
5418
+ rightElement?: React.ReactElement;
5419
+ }
5420
+ /**
5421
+ * Primary input UI component for user interaction
5422
+ */
5423
+ export const OrInfoHeaderCard: React.FC<OrInfoHeaderCardProps>;
5424
+ export interface OrModuleTableHeaderProps {
5416
5425
  /**
5417
- * On submit function
5426
+ * Title of the module table header
5418
5427
  */
5419
- onFinish?: FormProps['onFinish'];
5428
+ title?: string;
5420
5429
  /**
5421
- * Coupon button text
5430
+ * Search box placeholder
5422
5431
  */
5423
- couponBtn?: string;
5432
+ searchBoxPlaceholder?: string;
5424
5433
  /**
5425
- * Amount placeholder
5434
+ * Search box value
5426
5435
  */
5427
- amountPlaceholder?: string;
5436
+ searchBoxValue?: string;
5428
5437
  /**
5429
- * Coupon placeholder
5438
+ * Search box onChange
5430
5439
  */
5431
- couponPlaceholder?: string;
5440
+ searchBoxOnChange?: ((e: React.ChangeEvent<HTMLInputElement>) => void) | undefined;
5432
5441
  /**
5433
- * Radio group items
5442
+ * Search box onSearch
5434
5443
  */
5435
- currenciesOptions?: Array<{
5436
- label: ReactNode;
5437
- value: string;
5438
- disabled?: boolean;
5439
- symbol?: string;
5440
- }>;
5444
+ searchBoxOnSearch?: ((value: string, event?: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLElement, MouseEvent> | React.KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
5441
5445
  /**
5442
- * Radio group default value
5446
+ * Search box onPressEnter
5443
5447
  */
5444
- defaultCurrency?: number;
5448
+ searchBoxOnPressEnter?: ((event: React.KeyboardEvent<HTMLInputElement>) => void) | undefined;
5445
5449
  /**
5446
- * Amount to pay text
5450
+ * Button value
5447
5451
  */
5448
- amountToPayText?: string;
5452
+ buttonValue?: string;
5449
5453
  /**
5450
- * Amount to pay
5454
+ * Button onClick
5451
5455
  */
5452
- amountToPay?: number;
5456
+ buttonOnClick?: (React.MouseEventHandler<HTMLAnchorElement> & React.MouseEventHandler<HTMLButtonElement>) | undefined;
5453
5457
  /**
5454
- * Coupon text
5458
+ * Custom component to render at left side
5455
5459
  */
5456
- couponText?: string;
5460
+ customLeftElements?: React.ReactNode;
5457
5461
  /**
5458
- * Discount
5462
+ * Show search box
5459
5463
  */
5460
- discount?: number;
5464
+ showSearchBox?: boolean;
5461
5465
  /**
5462
- * Total text
5466
+ * Level of title
5463
5467
  */
5464
- totalText?: string;
5468
+ level?: 1 | 2 | 3 | 4 | 5;
5465
5469
  /**
5466
- * Total
5470
+ * Button value
5467
5471
  */
5468
- total?: number;
5472
+ secondaryButtonValue?: string;
5469
5473
  /**
5470
- * Tax text
5474
+ * Button onClick
5471
5475
  */
5472
- taxText?: string;
5476
+ secondaryButtonOnClick?: (React.MouseEventHandler<HTMLAnchorElement> & React.MouseEventHandler<HTMLButtonElement>) | undefined;
5473
5477
  /**
5474
- * Tax
5478
+ * Icon for first button
5475
5479
  */
5476
- tax?: number;
5480
+ buttonIcon?: string;
5477
5481
  /**
5478
- * Pay button text
5482
+ * Icon for second button
5479
5483
  */
5480
- payBtn?: string;
5484
+ secondaryButtonIcon?: string;
5485
+ /**
5486
+ * justify the contents of the main container
5487
+ */
5488
+ mainContainerJustifyContent?: _CSSProperties1["justifyContent"];
5489
+ }
5490
+ export const OrModuleTableHeader: React.FC<OrModuleTableHeaderProps>;
5491
+ export interface OrListSelectionProps {
5492
+ /**
5493
+ * Text of button to add
5494
+ */
5495
+ buttonAddText?: string;
5496
+ /**
5497
+ * Function to execute when button to add is clicked
5498
+ */
5499
+ onAddButtonOnClick?: OrModuleTableHeaderProps['buttonOnClick'];
5500
+ /**
5501
+ * Function to execute when search box is searched
5502
+ */
5503
+ searchBoxOnSearch?: OrModuleTableHeaderProps['searchBoxOnSearch'];
5504
+ /**
5505
+ * Placeholder of search box
5506
+ */
5507
+ searchBoxPlaceholder?: string;
5508
+ /**
5509
+ * onChange rowSelection
5510
+ */
5511
+ onChangeRowSelection?: TableRowSelection<AnyObject>['onChange'];
5512
+ /**
5513
+ * Columns of table
5514
+ */
5515
+ columns: OrTableProps['columns'];
5516
+ /**
5517
+ * Data record array to be displayed
5518
+ */
5519
+ data?: OrTableProps['dataSource'];
5481
5520
  /**
5482
- * Apply coupon click
5483
- */
5484
- applyCouponClick?: () => void;
5521
+ * Loading status of table
5522
+ */
5523
+ loadingTable?: OrTableProps['loading'];
5485
5524
  /**
5486
- * The title of the drawer
5487
- */
5488
- drawerTitle?: string;
5525
+ * Config of pagination. You can ref table pagination config or full pagination document, hide it by setting it to false
5526
+ */
5527
+ pagination?: OrTableProps['pagination'];
5489
5528
  /**
5490
- * Whether the Drawer dialog is visible or not
5491
- */
5492
- open?: boolean;
5529
+ * Title of table
5530
+ */
5531
+ tableTitle?: string;
5493
5532
  /**
5494
- * payment Methods
5533
+ * Title of remove button
5495
5534
  */
5496
- paymentMethods: PaymentMethod[];
5535
+ removeBtnTitle?: string;
5497
5536
  /**
5498
- * Form Steps info
5537
+ * Disabled status of remove button
5499
5538
  */
5500
- currentPaymentSelectedFields: IFormStep<FormType>;
5539
+ removeBtnDisabled?: boolean;
5501
5540
  /**
5502
- * Disable continue button drawer
5541
+ * dangerBtn status of remove button
5503
5542
  */
5504
- disabledButton?: boolean;
5543
+ dangerBtn?: boolean;
5505
5544
  /**
5506
- * Show payment methods
5545
+ * Function to execute when remove button is clicked
5507
5546
  */
5508
- showPaymentMethods?: boolean;
5547
+ onRemoveClick?: () => void;
5509
5548
  /**
5510
- * terms and conditions disclaimer
5549
+ * type of alert display
5511
5550
  */
5512
- termsDisclaimer?: string;
5551
+ alertType?: 'success' | 'info' | 'error' | 'warning';
5513
5552
  /**
5514
- * terms and conditions change
5553
+ * Description of alert display
5515
5554
  */
5516
- termsChange?: ((e: CheckboxChangeEvent) => void) | undefined;
5555
+ alertDescription?: string;
5517
5556
  /**
5518
- * onCloseDrawer function
5557
+ * select value
5519
5558
  */
5520
- onCloseDrawer?: (e: React.MouseEvent | React.KeyboardEvent) => void;
5559
+ selectValue?: AtSelectProps['value'];
5521
5560
  /**
5522
- * whether to show left arrow
5561
+ * select on change
5523
5562
  */
5524
- showLeftArrow?: boolean;
5563
+ selectOnChange?: AtSelectProps['onChange'];
5525
5564
  /**
5526
- * left arrow click event
5565
+ * select options
5527
5566
  */
5528
- onClickLeftArrow?: () => void;
5529
- editable?: boolean;
5530
- rate?: number;
5531
- currenciesEnabled?: boolean;
5532
- }
5533
- export const TmRechargePage: <FormType extends Store>({ title, subtitle, balance, cardTitle, fontSize, height, ruleAmount, form, initialValues, onFinish, amountPlaceholder, currenciesOptions, defaultCurrency, amountToPayText, amountToPay, couponText, discount, totalText, taxText, tax, payBtn, drawerTitle, open, paymentMethods, currentPaymentSelectedFields, disabledButton, showPaymentMethods, termsDisclaimer, onCloseDrawer, showLeftArrow, onClickLeftArrow, editable, rate, values, currenciesEnabled }: TmRechargePageProps<FormType>) => import("react/jsx-runtime").JSX.Element;
5534
- export interface TmRentalsPageProps<FormType = any> {
5535
- /**
5536
- * Form Steps info
5537
- */
5538
- formSteps?: IFormStep<FormType>[];
5567
+ selectOptions?: DefaultOptionType[];
5539
5568
  /**
5540
- * On change form content
5569
+ * not found select element
5541
5570
  */
5542
- onValuesChange?: OrFormProps['onValuesChange'];
5571
+ selectNotFoundContent?: React.ReactNode;
5572
+ }
5573
+ export const OrListSelection: React.FC<OrListSelectionProps>;
5574
+ export interface OrLoginLayoutProps {
5543
5575
  /**
5544
- * Current step
5576
+ * Carousel image background source
5545
5577
  */
5546
- currentFormStep?: number;
5578
+ $carouselBackgroundSrc?: string;
5547
5579
  /**
5548
- * Disabled buttons
5549
- */
5550
- disabledButtons?: boolean;
5580
+ * Images to show into carousel
5581
+ */
5582
+ carouselImages: string[] | {
5583
+ src?: string;
5584
+ component?: React.ReactNode;
5585
+ text?: string;
5586
+ }[];
5551
5587
  /**
5552
- * button optional text
5588
+ * Carousel text props
5553
5589
  */
5554
- showFormStepper?: boolean;
5590
+ carouselTextProps?: AtTextProps;
5555
5591
  /**
5556
- * Background source
5592
+ * Content to render into layout
5557
5593
  */
5558
- $backgroundSrc?: string;
5594
+ children?: React.ReactNode;
5595
+ }
5596
+ export const OrLoginLayout: React.FC<OrLoginLayoutProps>;
5597
+ type ConfigUpdate = ModalFuncProps | ((prevConfig: ModalFuncProps) => ModalFuncProps);
5598
+ export type instanceModal = {
5599
+ destroy: () => void;
5600
+ update: (configUpdate: ConfigUpdate) => void;
5601
+ } | null;
5602
+ export type OrModalProps = {
5559
5603
  /**
5560
- * Disclaimer text
5604
+ * Specify a function that will be called when modal is closed completely
5561
5605
  */
5562
- disclaimer?: string;
5606
+ afterClose?: () => void;
5563
5607
  /**
5564
- * Disclaimer href
5608
+ * Body style for modal body element. Such as height, padding etc
5565
5609
  */
5566
- disclaimerHref?: string;
5610
+ bodyStyle?: React.CSSProperties;
5567
5611
  /**
5568
- * Disclaimer message
5612
+ * The cancel button props
5569
5613
  */
5570
- disclaimerMessage?: string;
5571
- }
5572
- export const TmRentalsPage: <FormType extends Store>({ formSteps, onValuesChange, currentFormStep, disabledButtons, showFormStepper, $backgroundSrc, disclaimer, disclaimerHref, disclaimerMessage, }: TmRentalsPageProps<FormType>) => import("react/jsx-runtime").JSX.Element;
5573
- export interface TmRequestsPageProps<_RecordType = AnyObject, FormType = any> {
5574
- username?: string;
5614
+ cancelButtonProps?: _ModalProps1['cancelButtonProps'];
5575
5615
  /**
5576
- * Main button label
5616
+ * Text of the Cancel button
5577
5617
  */
5578
- mainButtonLabel?: string;
5618
+ cancelText?: React.ReactNode;
5579
5619
  /**
5580
- * Main button icon
5620
+ * Centered Modal
5581
5621
  */
5582
- mainButtonIcon?: AtIconProps['name'];
5622
+ centered?: boolean;
5583
5623
  /**
5584
- * Main button label
5624
+ * Custom close icon. 5.7.0: close button will be hidden when setting to null or false
5585
5625
  */
5586
- cancelButtonLabel?: string;
5626
+ closeIcon?: React.ReactNode;
5587
5627
  /**
5588
- * refund button label
5628
+ * Whether to apply loading visual effect for OK button or not
5589
5629
  */
5590
- refundButtonLabel?: string;
5630
+ confirmLoading?: boolean;
5591
5631
  /**
5592
- * cancel button icon
5632
+ * Whether to unmount child components on onClose
5593
5633
  */
5594
- cancelButtonIcon?: AtIconProps['name'];
5634
+ destroyOnClose?: boolean;
5595
5635
  /**
5596
- * refund button icon
5636
+ * Footer content, set as footer={null} when you don't need default buttons
5597
5637
  */
5598
- refundButtonIcon?: AtIconProps['name'];
5638
+ footer?: React.ReactNode;
5599
5639
  /**
5600
- * refund button custom type
5640
+ * Force render Modal
5601
5641
  */
5602
- typeCancelButton?: AtButtonProps['type'];
5642
+ forceRender?: boolean;
5603
5643
  /**
5604
- * Left arrow click event
5644
+ * The mounted node for Modal but still display at fullscreen
5605
5645
  */
5606
- onClickLeftArrow?: () => void;
5646
+ getContainer?: _ModalProps1['getContainer'];
5607
5647
  /**
5608
- * Main action click event
5648
+ * Whether support press esc to close
5609
5649
  */
5610
- onClickMainAction?: () => void;
5650
+ keyboard?: boolean;
5611
5651
  /**
5612
- * cancel action click event
5652
+ * Whether show mask or not
5613
5653
  */
5614
- onClickCancelAction?: () => void;
5654
+ mask?: boolean;
5615
5655
  /**
5616
- * refund action click event
5656
+ * Whether to close the modal dialog when the mask (area outside the modal) is clicked
5617
5657
  */
5618
- onClickRefundAction?: () => void;
5658
+ maskClosable?: boolean;
5619
5659
  /**
5620
- * disabled cancel Button
5660
+ * Style for modal's mask element
5621
5661
  */
5622
- disabledCancelButton?: boolean;
5662
+ maskStyle?: React.CSSProperties;
5623
5663
  /**
5624
- * disabled refund Button
5664
+ * Custom modal content render
5625
5665
  */
5626
- disabledRefundButton?: boolean;
5666
+ modalRender?: (node: React.ReactNode) => React.ReactNode;
5627
5667
  /**
5628
- * disabled Main Button
5668
+ * The ok button props
5629
5669
  */
5630
- disabledMainButton?: boolean;
5670
+ okButtonProps?: _ModalProps1['okButtonProps'];
5631
5671
  /**
5632
- * left column content
5672
+ * Text of the OK button
5633
5673
  */
5634
- firstColumnContent: React.ReactNode;
5674
+ okText?: React.ReactNode;
5635
5675
  /**
5636
- * right column content
5676
+ * Button type of the OK button
5637
5677
  */
5638
- secondColumnContent: React.ReactNode;
5678
+ okType?: _ModalProps1['okType'];
5639
5679
  /**
5640
- * isEditing request
5680
+ * The modal dialog's title
5641
5681
  */
5642
- isEditing?: boolean;
5682
+ title?: _ModalProps1['title'];
5643
5683
  /**
5644
- * On press cancel and close button function
5684
+ * Whether the modal dialog is visible or not
5645
5685
  */
5646
- handleCloseCallback?: () => void;
5686
+ visible?: boolean;
5647
5687
  /**
5648
- * State of the drawer
5688
+ * Open Modal with async logic
5649
5689
  */
5650
5690
  open?: boolean;
5651
5691
  /**
5652
- * Drawer Content
5692
+ * Width of the modal dialog
5653
5693
  */
5654
- drawerContent?: React.ReactNode;
5694
+ width?: string | number;
5655
5695
  /**
5656
- * Drawer Title
5696
+ * The class name of the container of the modal dialog
5657
5697
  */
5658
- drawerTitle?: React.ReactNode;
5698
+ wrapClassName?: string;
5659
5699
  /**
5660
- * Drawer Width
5700
+ * The z-index of the Modal
5661
5701
  */
5662
- drawerWidth?: number;
5702
+ zIndex?: number;
5663
5703
  /**
5664
- * button optional text
5704
+ * Specify a function that will be called when a user clicks mask, close button on top right or Cancel button
5665
5705
  */
5666
- showFormStepper?: boolean;
5706
+ onCancel?: (e: React.MouseEvent<HTMLElement>) => void;
5667
5707
  /**
5668
- * Disable buttons drawer
5708
+ * Specify a function that will be called when a user clicks the OK button
5669
5709
  */
5670
- disabledButtons?: boolean;
5710
+ onOk?: (e: React.MouseEvent<HTMLElement>) => void;
5671
5711
  /**
5672
- * Form Steps info
5712
+ * Callback when the animation ends when Modal is turned on and off
5673
5713
  */
5674
- formSteps?: IFormStep<FormType>[];
5714
+ afterOpenChange?: ((open: boolean) => void) | undefined;
5675
5715
  /**
5676
- * current step
5716
+ * children of Modal
5677
5717
  */
5678
- currentFormStep?: number;
5718
+ children?: React.ReactNode;
5679
5719
  /**
5680
- * On change form content
5720
+ * Content of the confirm dialog
5681
5721
  */
5682
- onValuesChange?: OrFormProps['onValuesChange'];
5722
+ content?: string | React.ReactNode;
5723
+ };
5724
+ export const OrModal: React.FC<OrModalProps>;
5725
+ export interface OrOneDataCardProps {
5683
5726
  /**
5684
- * Text of first button
5727
+ * title of card
5685
5728
  */
5686
- firstButtonText?: string;
5729
+ title: string;
5687
5730
  /**
5688
- * Text of second button
5731
+ * text for show in the card
5689
5732
  */
5690
- secondButtonText?: string;
5733
+ text: string | number;
5691
5734
  /**
5692
- * Function to execute when first button is clicked
5735
+ * icon name for the main icon in the card
5693
5736
  */
5694
- onClickFirstButton?: () => void;
5737
+ iconName?: keyof typeof Icons;
5695
5738
  /**
5696
- * Function to execute when second button is clicked
5739
+ * icon color for the icon in the card
5697
5740
  */
5698
- onClickSecondButton?: () => void;
5741
+ iconColor?: string;
5699
5742
  /**
5700
- * Show drawer content
5743
+ * flag children showed dynamically at right of the subtitle, it can contains an icon dynamically for match the design pattern
5701
5744
  */
5702
- showDrawerContent?: boolean;
5745
+ flag?: {
5746
+ text: string;
5747
+ iconName?: keyof typeof Icons;
5748
+ number: number | string;
5749
+ iconColor?: string;
5750
+ };
5703
5751
  }
5704
- export const TmRequestsPage: React.FC<TmRequestsPageProps>;
5705
- export const TmRequestsForm: React.FC<TmRequestsPageProps>;
5752
+ export const OrOneDataCard: React.FC<OrOneDataCardProps>;
5706
5753
  export interface PaymentMethod {
5707
5754
  value: string;
5708
5755
  icon?: React.ReactNode;
@@ -5742,7 +5789,7 @@ export interface OrPaymentMethodsProps<FormType = any> {
5742
5789
  */
5743
5790
  onCloseDrawer?: (e: React.MouseEvent | React.KeyboardEvent) => void;
5744
5791
  }
5745
- export const OrPaymentMethods: <FormType extends Store>({ drawerTitle, open, paymentMethods, currentPaymentSelectedFields, showPaymentMethods, termsDisclaimer, onCloseDrawer, disabledButton, }: OrPaymentMethodsProps<FormType>) => import("react/jsx-runtime").JSX.Element;
5792
+ export const OrPaymentMethods: <FormType extends Store>({ drawerTitle, open, paymentMethods, currentPaymentSelectedFields, showPaymentMethods, termsDisclaimer, onCloseDrawer, disabledButton, }: OrPaymentMethodsProps<FormType>) => JSX.Element;
5746
5793
  export interface OrTableModuleLayoutProps {
5747
5794
  /**
5748
5795
  * Page title
@@ -6138,7 +6185,7 @@ export interface AtCircularChartProps<T> {
6138
6185
  height?: string;
6139
6186
  }
6140
6187
  export const AtCircularChart: React.FC<AtCircularChartProps<ChartData>>;
6141
- export const MultipleDatePicker: () => import("react/jsx-runtime").JSX.Element;
6188
+ export const MultipleDatePicker: () => JSX.Element;
6142
6189
  export interface AtDatePickerPros {
6143
6190
  /**
6144
6191
  * If true, the date picker will be disabled
@@ -6386,6 +6433,10 @@ export interface AtDividerProps {
6386
6433
  * margin of the divider
6387
6434
  */
6388
6435
  $margin?: number;
6436
+ /**
6437
+ * label for the divider
6438
+ */
6439
+ label?: string;
6389
6440
  }
6390
6441
  export const AtDivider: React.FC<AtDividerProps>;
6391
6442
  export interface AtImageProps {