enwawa-ui 4.1.8 → 4.1.9
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 +36 -21
- package/lib/index.d.ts.map +1 -1
- package/lib/index.es.js +674 -661
- package/lib/index.es.js.map +1 -1
- package/lib/index.js +674 -661
- package/lib/index.js.map +1 -1
- package/lib/unidades.3f7a55ed.svg +11 -0
- package/lib/unidades.81420fe1.svg +11 -0
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { CSSProperties, ReactNode, ChangeEvent, SetStateAction, JSXElementConstructor, ReactElement
|
|
1
|
+
import React, { CSSProperties, ReactNode, ChangeEvent, SetStateAction, JSXElementConstructor, ReactElement } from "react";
|
|
2
2
|
import { ButtonShape, ButtonSize, ButtonType } from "antd/es/button";
|
|
3
3
|
import { ButtonProps, AutoCompleteProps, DescriptionsProps, TableProps as _TableProps1, BreadcrumbProps as _BreadcrumbProps1, SwitchProps } from "antd/lib";
|
|
4
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";
|
|
@@ -14,13 +14,12 @@ import { CheckboxGroupProps } from "antd/es/checkbox/Group";
|
|
|
14
14
|
import { ValueType } from "@rc-component/mini-decimal";
|
|
15
15
|
import { Gutter } from "antd/es/grid/row";
|
|
16
16
|
import { ColSpec } from "@fullcalendar/resource";
|
|
17
|
+
import { EventClickArg } from "@fullcalendar/core";
|
|
17
18
|
import { BlockProps, EllipsisConfig, BaseType } from "antd/es/typography/Base";
|
|
18
19
|
import { TextProps as _TextProps1 } from "antd/es/typography/Text";
|
|
19
20
|
import { Dayjs } from "dayjs";
|
|
20
21
|
import { AnyObject } from "antd/es/_util/type";
|
|
21
|
-
import { JSX } from "react/jsx-runtime";
|
|
22
22
|
import { CircleProps, GoogleMap, GoogleMapProps } from "@react-google-maps/api";
|
|
23
|
-
import { MessageInstance } from "antd/es/message/interface";
|
|
24
23
|
import { WatchOptions } from "rc-field-form/es/interface";
|
|
25
24
|
import { CheckboxChangeEvent } from "antd/es/checkbox";
|
|
26
25
|
import { DrawerProps } from "antd/es/drawer";
|
|
@@ -690,6 +689,14 @@ export interface MlAutocompleteSearchProps {
|
|
|
690
689
|
* Called when an option is selected, the params are option's value (or key) and option instance
|
|
691
690
|
*/
|
|
692
691
|
onSelectValue?: AtSelectProps['onSelect'];
|
|
692
|
+
/**
|
|
693
|
+
* boolean for show if is loading
|
|
694
|
+
*/
|
|
695
|
+
loading?: boolean;
|
|
696
|
+
/**
|
|
697
|
+
* placeholder of the input
|
|
698
|
+
*/
|
|
699
|
+
placeholder?: string;
|
|
693
700
|
}
|
|
694
701
|
export const MlAutocompleteSearch: React.FC<MlAutocompleteSearchProps>;
|
|
695
702
|
export interface MlAutocompleteSearchTextProps {
|
|
@@ -2105,6 +2112,10 @@ export interface OrCalendarProps {
|
|
|
2105
2112
|
*/
|
|
2106
2113
|
currentDate: Date | string | number;
|
|
2107
2114
|
loading?: boolean;
|
|
2115
|
+
/**
|
|
2116
|
+
* event on click on card of event
|
|
2117
|
+
*/
|
|
2118
|
+
eventClickFunction: (val: EventClickArg['event']) => any;
|
|
2108
2119
|
}
|
|
2109
2120
|
export const OrCalendar: React.FC<OrCalendarProps>;
|
|
2110
2121
|
export interface MlDetailsCardProps extends MlCardProps {
|
|
@@ -3027,7 +3038,7 @@ export interface TmCrudPageProps<RecordType = AnyObject, FormType = any> {
|
|
|
3027
3038
|
breadcrumbItems?: MlBreadcrumbProps['items'];
|
|
3028
3039
|
padding?: string;
|
|
3029
3040
|
}
|
|
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;
|
|
3041
|
+
export const TmCrudPage: <RecordType extends AnyObject, FormType extends Store>({ columns, data, loadingTable, formSteps, onValuesChange, onCloseLeftDrawer, leftDrawerContent, openLeftDrawer, subtitle, subContent, open, pageSize, currentPage, currentFormStep, titleLeftDrawer, leftDrawerWidth, drawerContent, showDrawerContent, showSearchBox, drawerTitle, drawerWidth, firstButtonText, secondButtonText, onClickFirstButton, onClickSecondButton, $margin, title, tableTitle, buttonAddText, addButtonOnClick, onChangePagination, onChangeTable, total, showTotal, disabledButtons, searchBoxOnSearch, searchBoxPlaceholder, tableHeaderCustomLeftElements, pagination, handleCloseCallback, tableTitleLevel, secondaryButtonText, secondaryOnClick, showFormStepper, onBack, padding, expandable, breadcrumbItems, }: TmCrudPageProps<RecordType, FormType>) => import("react/jsx-runtime").JSX.Element;
|
|
3031
3042
|
/**
|
|
3032
3043
|
* Properties for the OrEventContentDuty component.
|
|
3033
3044
|
*/
|
|
@@ -3363,8 +3374,12 @@ export interface TmCalendarPageProps<_RecordType = AnyObject, FormType = any> {
|
|
|
3363
3374
|
* Handles loading state
|
|
3364
3375
|
*/
|
|
3365
3376
|
loadingSearchFilter?: boolean;
|
|
3377
|
+
/**
|
|
3378
|
+
* event on click on card of event
|
|
3379
|
+
*/
|
|
3380
|
+
eventClickFunction: (val: EventClickArg['event']) => any;
|
|
3366
3381
|
}
|
|
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;
|
|
3382
|
+
export const TmCalendarPage: <RecordType extends AnyObject, FormType extends Store>({ formSteps, onValuesChange, onCloseLeftDrawer, leftDrawerContent, openLeftDrawer, buttonAddText, buttonIcon, buttonOnClick, open, currentFormStep, titleLeftDrawer, leftDrawerWidth, drawerContent, showDrawerContent, drawerTitle, drawerWidth, firstButtonText, secondButtonText, onClickFirstButton, onClickSecondButton, eventClickFunction, $margin, title, actionPopOverText, disabledButtons, handleCloseCallback, showFormStepper, onBack, events, resources, resourceTitle, displayDate, onChangeSegment, segmentOptions, columnsFilters, buttonsFilters, filterText, leftArrowOnOnClick, rightArrowOnOnClick, currentDate, onSelectResource, loadingSearchFilter, onSelectDate, loadingTable, }: TmCalendarPageProps<RecordType, FormType>) => import("react/jsx-runtime").JSX.Element;
|
|
3368
3383
|
export interface MarkersArrayMap {
|
|
3369
3384
|
type: 'add' | 'oneWay' | 'return';
|
|
3370
3385
|
color?: OrMarkProps['color'];
|
|
@@ -3645,7 +3660,7 @@ export interface TmCustomTabsPageProps<FormType = any> {
|
|
|
3645
3660
|
*/
|
|
3646
3661
|
breadcrumbItems?: MlBreadcrumbProps['items'];
|
|
3647
3662
|
}
|
|
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;
|
|
3663
|
+
export const TmCustomTabsPage: <FormType extends Store>({ avatar, username, phone, balanceLabel, balanceValue, infoIcon, infoLabel, infoValue, mainButtonLabel, secondaryButtonLabel, mainButtonIcon, secondaryButtonIcon, onClickLeftArrow, onClickMainAction, onClickSecondaryAction, formSteps, handleCloseCallback, open, drawerTitle, drawerWidth, disabledButtons, currentFormStep, showFormStepper, onValuesChange, tabsProps, breadcrumbItems, }: TmCustomTabsPageProps<FormType>) => import("react/jsx-runtime").JSX.Element;
|
|
3649
3664
|
interface IDashboardItems {
|
|
3650
3665
|
gutter: {
|
|
3651
3666
|
xs?: number;
|
|
@@ -3708,7 +3723,7 @@ export interface TmDashboardProps<FormType = any> {
|
|
|
3708
3723
|
drawerWidth?: number;
|
|
3709
3724
|
};
|
|
3710
3725
|
}
|
|
3711
|
-
export const TmDashboard: ({ headerProps, itemsLeft, itemsRight, drawerConfig, }: TmDashboardProps) => JSX.Element;
|
|
3726
|
+
export const TmDashboard: ({ headerProps, itemsLeft, itemsRight, drawerConfig, }: TmDashboardProps) => import("react/jsx-runtime").JSX.Element;
|
|
3712
3727
|
export interface OrDetailsPageProps<FormType = any> {
|
|
3713
3728
|
/**
|
|
3714
3729
|
* The ID for input
|
|
@@ -3775,7 +3790,7 @@ export interface OrDetailsPageProps<FormType = any> {
|
|
|
3775
3790
|
*/
|
|
3776
3791
|
orAlertConfig?: OrAlertProps;
|
|
3777
3792
|
}
|
|
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;
|
|
3793
|
+
export const OrDetailsPage: <FormType extends Store>({ title, bordered, items, extra, formSteps, handleCloseCallback, open, drawerTitle, drawerWidth, disabledButtons, currentFormStep, showFormStepper, onValuesChange, orAlertConfig, }: OrDetailsPageProps<FormType>) => import("react/jsx-runtime").JSX.Element;
|
|
3779
3794
|
export interface TmDescriptionsPageProps {
|
|
3780
3795
|
/**
|
|
3781
3796
|
* The ID for input
|
|
@@ -3802,7 +3817,7 @@ export interface TmDescriptionsPageProps {
|
|
|
3802
3817
|
*/
|
|
3803
3818
|
header?: React.ReactElement;
|
|
3804
3819
|
}
|
|
3805
|
-
export const TmDescriptionsPage: ({ items, header, }: TmDescriptionsPageProps) => JSX.Element;
|
|
3820
|
+
export const TmDescriptionsPage: ({ items, header, }: TmDescriptionsPageProps) => import("react/jsx-runtime").JSX.Element;
|
|
3806
3821
|
export interface TmFormListPageProps<FormType = any> {
|
|
3807
3822
|
formList?: {
|
|
3808
3823
|
title?: string;
|
|
@@ -3813,7 +3828,7 @@ export interface TmFormListPageProps<FormType = any> {
|
|
|
3813
3828
|
formButtonProps?: AtButtonProps;
|
|
3814
3829
|
}[];
|
|
3815
3830
|
}
|
|
3816
|
-
export const TmFormListPage: <FormType extends Store>({ formList, }: TmFormListPageProps<FormType>) => JSX.Element;
|
|
3831
|
+
export const TmFormListPage: <FormType extends Store>({ formList, }: TmFormListPageProps<FormType>) => import("react/jsx-runtime").JSX.Element;
|
|
3817
3832
|
export interface OrFlagGridProps {
|
|
3818
3833
|
/**
|
|
3819
3834
|
* The ID for cards
|
|
@@ -4092,8 +4107,8 @@ export interface TmQuoteResultPageProps {
|
|
|
4092
4107
|
*/
|
|
4093
4108
|
emptyCallback?: () => void;
|
|
4094
4109
|
}
|
|
4095
|
-
export const TmQuoteResultPage: ({ $backgroundSrc, rentalResult, rentalVehicleItem, loading, emptyMessage, emptyButtonText, emptyCallback, }: TmQuoteResultPageProps) => JSX.Element;
|
|
4096
|
-
export const useMessage: () => readonly [MessageInstance, ReactElement<
|
|
4110
|
+
export const TmQuoteResultPage: ({ $backgroundSrc, rentalResult, rentalVehicleItem, loading, emptyMessage, emptyButtonText, emptyCallback, }: TmQuoteResultPageProps) => import("react/jsx-runtime").JSX.Element;
|
|
4111
|
+
export const useMessage: () => readonly [import("antd/es/message/interface").MessageInstance, import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>];
|
|
4097
4112
|
export interface ModalProps extends ModalFuncProps {
|
|
4098
4113
|
variant: 'confirm' | 'warning' | 'info' | 'error';
|
|
4099
4114
|
}
|
|
@@ -4104,10 +4119,10 @@ export const useModal: () => {
|
|
|
4104
4119
|
} & {
|
|
4105
4120
|
then<T>(resolve: (confirmed: boolean) => T, reject: VoidFunction): Promise<T>;
|
|
4106
4121
|
};
|
|
4107
|
-
setVariant: Dispatch<SetStateAction<"warning" | "info" | "error" | "confirm">>;
|
|
4108
|
-
contextHolder: ReactElement<any, string | JSXElementConstructor<any>>;
|
|
4122
|
+
setVariant: import("react").Dispatch<import("react").SetStateAction<"warning" | "info" | "error" | "confirm">>;
|
|
4123
|
+
contextHolder: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
4109
4124
|
};
|
|
4110
|
-
export const useForm: <T = any>() => [FormInstance<T>];
|
|
4125
|
+
export const useForm: <T = any>() => [import("antd").FormInstance<T>];
|
|
4111
4126
|
export const useFormWatch: <T = any>(name: string | string[], form?: FormInstance | WatchOptions<FormInstance>) => T;
|
|
4112
4127
|
export interface TmRechargePageProps<FormType = any> {
|
|
4113
4128
|
/**
|
|
@@ -4283,7 +4298,7 @@ export interface TmRechargePageProps<FormType = any> {
|
|
|
4283
4298
|
rate?: number;
|
|
4284
4299
|
currenciesEnabled?: boolean;
|
|
4285
4300
|
}
|
|
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;
|
|
4301
|
+
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;
|
|
4287
4302
|
export interface TmRentalsPageProps<FormType = any> {
|
|
4288
4303
|
/**
|
|
4289
4304
|
* Form Steps info
|
|
@@ -4322,7 +4337,7 @@ export interface TmRentalsPageProps<FormType = any> {
|
|
|
4322
4337
|
*/
|
|
4323
4338
|
disclaimerMessage?: string;
|
|
4324
4339
|
}
|
|
4325
|
-
export const TmRentalsPage: <FormType extends Store>({ formSteps, onValuesChange, currentFormStep, disabledButtons, showFormStepper, $backgroundSrc, disclaimer, disclaimerHref, disclaimerMessage, }: TmRentalsPageProps<FormType>) => JSX.Element;
|
|
4340
|
+
export const TmRentalsPage: <FormType extends Store>({ formSteps, onValuesChange, currentFormStep, disabledButtons, showFormStepper, $backgroundSrc, disclaimer, disclaimerHref, disclaimerMessage, }: TmRentalsPageProps<FormType>) => import("react/jsx-runtime").JSX.Element;
|
|
4326
4341
|
export interface TmRequestsPageProps<_RecordType = AnyObject, FormType = any> {
|
|
4327
4342
|
username?: string;
|
|
4328
4343
|
/**
|
|
@@ -4907,7 +4922,7 @@ export interface OrTableProps<RecordType = AnyObject> {
|
|
|
4907
4922
|
*/
|
|
4908
4923
|
components?: TableProps<RecordType>['components'];
|
|
4909
4924
|
}
|
|
4910
|
-
export const OrTable: <RecordType extends AnyObject>({ bordered, loading, pagination, size, sticky, rowSelection, ...props }: OrTableProps<RecordType>) => JSX.Element;
|
|
4925
|
+
export const OrTable: <RecordType extends AnyObject>({ bordered, loading, pagination, size, sticky, rowSelection, ...props }: OrTableProps<RecordType>) => import("react/jsx-runtime").JSX.Element;
|
|
4911
4926
|
export type OrSelectTableOption<T = any> = {
|
|
4912
4927
|
label: string;
|
|
4913
4928
|
value: string;
|
|
@@ -4994,7 +5009,7 @@ export interface OrDraggableTableProps<RecordType = AnyObject> {
|
|
|
4994
5009
|
*/
|
|
4995
5010
|
showDraggableIcon?: boolean;
|
|
4996
5011
|
}
|
|
4997
|
-
export const OrDraggableTable: <RecordType extends AnyObject>({ data, columns, onDragEnd, showDraggableIcon, }: OrDraggableTableProps<RecordType>) => JSX.Element;
|
|
5012
|
+
export const OrDraggableTable: <RecordType extends AnyObject>({ data, columns, onDragEnd, showDraggableIcon, }: OrDraggableTableProps<RecordType>) => import("react/jsx-runtime").JSX.Element;
|
|
4998
5013
|
interface TextProps extends AtTextProps {
|
|
4999
5014
|
text: string;
|
|
5000
5015
|
}
|
|
@@ -5789,7 +5804,7 @@ export interface OrPaymentMethodsProps<FormType = any> {
|
|
|
5789
5804
|
*/
|
|
5790
5805
|
onCloseDrawer?: (e: React.MouseEvent | React.KeyboardEvent) => void;
|
|
5791
5806
|
}
|
|
5792
|
-
export const OrPaymentMethods: <FormType extends Store>({ drawerTitle, open, paymentMethods, currentPaymentSelectedFields, showPaymentMethods, termsDisclaimer, onCloseDrawer, disabledButton, }: OrPaymentMethodsProps<FormType>) => JSX.Element;
|
|
5807
|
+
export const OrPaymentMethods: <FormType extends Store>({ drawerTitle, open, paymentMethods, currentPaymentSelectedFields, showPaymentMethods, termsDisclaimer, onCloseDrawer, disabledButton, }: OrPaymentMethodsProps<FormType>) => import("react/jsx-runtime").JSX.Element;
|
|
5793
5808
|
export interface OrTableModuleLayoutProps {
|
|
5794
5809
|
/**
|
|
5795
5810
|
* Page title
|
|
@@ -6185,7 +6200,7 @@ export interface AtCircularChartProps<T> {
|
|
|
6185
6200
|
height?: string;
|
|
6186
6201
|
}
|
|
6187
6202
|
export const AtCircularChart: React.FC<AtCircularChartProps<ChartData>>;
|
|
6188
|
-
export const MultipleDatePicker: () => JSX.Element;
|
|
6203
|
+
export const MultipleDatePicker: () => import("react/jsx-runtime").JSX.Element;
|
|
6189
6204
|
export interface AtDatePickerPros {
|
|
6190
6205
|
/**
|
|
6191
6206
|
* If true, the date picker will be disabled
|