enwawa-ui 4.1.5 → 4.1.6

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