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