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