enwawa-ui 2.0.42 → 2.0.44
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 +188 -183
- package/lib/index.d.ts.map +1 -1
- package/lib/index.es.js +191 -187
- package/lib/index.es.js.map +1 -1
- package/lib/index.js +189 -185
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ import { GoogleMapProps, GoogleMap } from "@react-google-maps/api";
|
|
|
24
24
|
import { WatchOptions } from "rc-field-form/es/interface";
|
|
25
25
|
import { AnyObject } from "antd/es/_util/type";
|
|
26
26
|
import { ColumnsType, TablePaginationConfig } from "antd/es/table";
|
|
27
|
-
import { FilterValue, SorterResult, TableCurrentDataSource, TableRowSelection } from "antd/es/table/interface";
|
|
27
|
+
import { ExpandableConfig, FilterValue, SorterResult, TableCurrentDataSource, TableRowSelection } from "antd/es/table/interface";
|
|
28
28
|
import { CheckboxChangeEvent } from "antd/es/checkbox";
|
|
29
29
|
import { LinkProps } from "antd/es/typography/Link";
|
|
30
30
|
import { RadioChangeEvent as _RadioChangeEvent1 } from "antd/es/radio";
|
|
@@ -2606,6 +2606,29 @@ export interface OrDashboardLayoutProps {
|
|
|
2606
2606
|
headerProps?: OrHeaderProps;
|
|
2607
2607
|
}
|
|
2608
2608
|
export const OrDashboardLayout: React.FC<OrDashboardLayoutProps>;
|
|
2609
|
+
export interface OrDescriptionsProps extends DescriptionsProps {
|
|
2610
|
+
/**
|
|
2611
|
+
* The ID for input
|
|
2612
|
+
*/
|
|
2613
|
+
id?: string;
|
|
2614
|
+
/**
|
|
2615
|
+
* Title of the description set
|
|
2616
|
+
*/
|
|
2617
|
+
title: string;
|
|
2618
|
+
/**
|
|
2619
|
+
* Whether the table has border or not
|
|
2620
|
+
*/
|
|
2621
|
+
bordered?: boolean;
|
|
2622
|
+
/**
|
|
2623
|
+
* Items to display
|
|
2624
|
+
*/
|
|
2625
|
+
items: DescriptionsProps['items'];
|
|
2626
|
+
/**
|
|
2627
|
+
* Extra content to display
|
|
2628
|
+
*/
|
|
2629
|
+
extra?: DescriptionsProps['extra'];
|
|
2630
|
+
}
|
|
2631
|
+
export const OrDescriptions: React.FC<OrDescriptionsProps>;
|
|
2609
2632
|
interface OrDownloadProps {
|
|
2610
2633
|
/**
|
|
2611
2634
|
* The function to call when the download button is clicked
|
|
@@ -3007,6 +3030,10 @@ export interface OrTableProps<RecordType = AnyObject> {
|
|
|
3007
3030
|
* 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
|
|
3008
3031
|
*/
|
|
3009
3032
|
scroll?: TableProps<RecordType>['scroll'];
|
|
3033
|
+
/**
|
|
3034
|
+
* Set the expandable of table
|
|
3035
|
+
* */
|
|
3036
|
+
expandable?: ExpandableConfig<RecordType> | undefined;
|
|
3010
3037
|
}
|
|
3011
3038
|
export const OrTable: <RecordType extends AnyObject>({ bordered, loading, pagination, size, sticky, rowSelection, ...props }: OrTableProps<RecordType>) => import("react/jsx-runtime").JSX.Element;
|
|
3012
3039
|
export type OrSelectTableOption<T = any> = {
|
|
@@ -3803,8 +3830,167 @@ export interface TmCrudPageProps<RecordType = AnyObject, FormType = any> {
|
|
|
3803
3830
|
*/
|
|
3804
3831
|
showFormStepper?: boolean;
|
|
3805
3832
|
onBack?: () => void;
|
|
3833
|
+
padding?: string;
|
|
3834
|
+
}
|
|
3835
|
+
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, }: TmCrudPageProps<RecordType, FormType>) => import("react/jsx-runtime").JSX.Element;
|
|
3836
|
+
export interface TmCustomTabsPageProps<FormType = any> {
|
|
3837
|
+
/**
|
|
3838
|
+
* Avatar image
|
|
3839
|
+
*/
|
|
3840
|
+
avatar?: string;
|
|
3841
|
+
/**
|
|
3842
|
+
* User name
|
|
3843
|
+
*/
|
|
3844
|
+
username: string;
|
|
3845
|
+
/**
|
|
3846
|
+
* User phone number
|
|
3847
|
+
*/
|
|
3848
|
+
phone: string;
|
|
3849
|
+
/**
|
|
3850
|
+
* Balance ticket label
|
|
3851
|
+
*/
|
|
3852
|
+
balanceLabel: string;
|
|
3853
|
+
/**
|
|
3854
|
+
* Balance ticket value
|
|
3855
|
+
*/
|
|
3856
|
+
balanceValue: string;
|
|
3857
|
+
/**
|
|
3858
|
+
* Icon for the info part
|
|
3859
|
+
*/
|
|
3860
|
+
infoIcon?: AtIconProps['name'];
|
|
3861
|
+
/**
|
|
3862
|
+
* Info label
|
|
3863
|
+
*/
|
|
3864
|
+
infoLabel?: string;
|
|
3865
|
+
/**
|
|
3866
|
+
* Info value
|
|
3867
|
+
*/
|
|
3868
|
+
infoValue?: string;
|
|
3869
|
+
/**
|
|
3870
|
+
* Main button label
|
|
3871
|
+
*/
|
|
3872
|
+
mainButtonLabel: string;
|
|
3873
|
+
/**
|
|
3874
|
+
* Main button icon
|
|
3875
|
+
*/
|
|
3876
|
+
mainButtonIcon?: AtIconProps['name'];
|
|
3877
|
+
/**
|
|
3878
|
+
* Left arrow click event
|
|
3879
|
+
*/
|
|
3880
|
+
onClickLeftArrow?: () => void;
|
|
3881
|
+
/**
|
|
3882
|
+
* Main action click event
|
|
3883
|
+
*/
|
|
3884
|
+
onClickMainAction?: () => void;
|
|
3885
|
+
/**
|
|
3886
|
+
* Form Steps info
|
|
3887
|
+
*/
|
|
3888
|
+
formSteps?: IFormStep<FormType>[];
|
|
3889
|
+
/**
|
|
3890
|
+
* On press cancel and close button function
|
|
3891
|
+
*/
|
|
3892
|
+
handleCloseCallback?: () => void;
|
|
3893
|
+
/**
|
|
3894
|
+
* State of the drawer
|
|
3895
|
+
*/
|
|
3896
|
+
open?: boolean;
|
|
3897
|
+
/**
|
|
3898
|
+
* Drawer Content
|
|
3899
|
+
*/
|
|
3900
|
+
drawerContent?: React.ReactNode;
|
|
3901
|
+
/**
|
|
3902
|
+
* Drawer Title
|
|
3903
|
+
*/
|
|
3904
|
+
drawerTitle?: React.ReactNode;
|
|
3905
|
+
/**
|
|
3906
|
+
* Drawer Width
|
|
3907
|
+
*/
|
|
3908
|
+
drawerWidth?: number;
|
|
3909
|
+
/**
|
|
3910
|
+
* Disable buttons drawer
|
|
3911
|
+
*/
|
|
3912
|
+
disabledButtons?: boolean;
|
|
3913
|
+
/**
|
|
3914
|
+
* current step
|
|
3915
|
+
*/
|
|
3916
|
+
currentFormStep?: number;
|
|
3917
|
+
/**
|
|
3918
|
+
* button optional text
|
|
3919
|
+
*/
|
|
3920
|
+
showFormStepper?: boolean;
|
|
3921
|
+
/**
|
|
3922
|
+
* On change form content
|
|
3923
|
+
*/
|
|
3924
|
+
onValuesChange?: OrFormProps['onValuesChange'];
|
|
3925
|
+
/**
|
|
3926
|
+
* Tabs props
|
|
3927
|
+
*/
|
|
3928
|
+
tabsProps: OrTabsProps;
|
|
3929
|
+
}
|
|
3930
|
+
export const TmCustomTabsPage: <FormType extends Store>({ avatar, username, phone, balanceLabel, balanceValue, infoIcon, infoLabel, infoValue, mainButtonLabel, mainButtonIcon, onClickLeftArrow, onClickMainAction, formSteps, handleCloseCallback, open, drawerTitle, drawerWidth, disabledButtons, currentFormStep, showFormStepper, onValuesChange, tabsProps, }: TmCustomTabsPageProps<FormType>) => import("react/jsx-runtime").JSX.Element;
|
|
3931
|
+
export interface TmDetailsPageProps<FormType = any> {
|
|
3932
|
+
/**
|
|
3933
|
+
* The ID for input
|
|
3934
|
+
*/
|
|
3935
|
+
id?: string;
|
|
3936
|
+
/**
|
|
3937
|
+
* Title of the description set
|
|
3938
|
+
*/
|
|
3939
|
+
title: string;
|
|
3940
|
+
/**
|
|
3941
|
+
* Whether the table has border or not
|
|
3942
|
+
*/
|
|
3943
|
+
bordered?: boolean;
|
|
3944
|
+
/**
|
|
3945
|
+
* Items to display
|
|
3946
|
+
*/
|
|
3947
|
+
items: OrDescriptionsProps['items'];
|
|
3948
|
+
/**
|
|
3949
|
+
* Extra content to display
|
|
3950
|
+
*/
|
|
3951
|
+
extra?: OrDescriptionsProps['extra'];
|
|
3952
|
+
/**
|
|
3953
|
+
* Form Steps info
|
|
3954
|
+
*/
|
|
3955
|
+
formSteps?: IFormStep<FormType>[];
|
|
3956
|
+
/**
|
|
3957
|
+
* On press cancel and close button function
|
|
3958
|
+
*/
|
|
3959
|
+
handleCloseCallback?: () => void;
|
|
3960
|
+
/**
|
|
3961
|
+
* State of the drawer
|
|
3962
|
+
*/
|
|
3963
|
+
open?: boolean;
|
|
3964
|
+
/**
|
|
3965
|
+
* Drawer Content
|
|
3966
|
+
*/
|
|
3967
|
+
drawerContent?: React.ReactNode;
|
|
3968
|
+
/**
|
|
3969
|
+
* Drawer Title
|
|
3970
|
+
*/
|
|
3971
|
+
drawerTitle?: React.ReactNode;
|
|
3972
|
+
/**
|
|
3973
|
+
* Drawer Width
|
|
3974
|
+
*/
|
|
3975
|
+
drawerWidth?: number;
|
|
3976
|
+
/**
|
|
3977
|
+
* Disable buttons drawer
|
|
3978
|
+
*/
|
|
3979
|
+
disabledButtons?: boolean;
|
|
3980
|
+
/**
|
|
3981
|
+
* current step
|
|
3982
|
+
*/
|
|
3983
|
+
currentFormStep?: number;
|
|
3984
|
+
/**
|
|
3985
|
+
* button optional text
|
|
3986
|
+
*/
|
|
3987
|
+
showFormStepper?: boolean;
|
|
3988
|
+
/**
|
|
3989
|
+
* On change form content
|
|
3990
|
+
*/
|
|
3991
|
+
onValuesChange?: OrFormProps['onValuesChange'];
|
|
3806
3992
|
}
|
|
3807
|
-
export const
|
|
3993
|
+
export const TmDetailsPage: <FormType extends Store>({ title, bordered, items, extra, formSteps, handleCloseCallback, open, drawerTitle, drawerWidth, disabledButtons, currentFormStep, showFormStepper, onValuesChange, }: TmDetailsPageProps<FormType>) => import("react/jsx-runtime").JSX.Element;
|
|
3808
3994
|
export interface TmFormListPageProps<FormType = any> {
|
|
3809
3995
|
formList?: {
|
|
3810
3996
|
title?: string;
|
|
@@ -4236,164 +4422,6 @@ export interface TmRentalsPageProps<FormType = any> {
|
|
|
4236
4422
|
disclaimerMessage?: string;
|
|
4237
4423
|
}
|
|
4238
4424
|
export const TmRentalsPage: <FormType extends Store>({ formSteps, onValuesChange, currentFormStep, disabledButtons, showFormStepper, $backgroundSrc, disclaimer, disclaimerHref, disclaimerMessage, }: TmRentalsPageProps<FormType>) => import("react/jsx-runtime").JSX.Element;
|
|
4239
|
-
export interface TmCustomTabsPageProps<FormType = any> {
|
|
4240
|
-
/**
|
|
4241
|
-
* Avatar image
|
|
4242
|
-
*/
|
|
4243
|
-
avatar?: string;
|
|
4244
|
-
/**
|
|
4245
|
-
* User name
|
|
4246
|
-
*/
|
|
4247
|
-
username: string;
|
|
4248
|
-
/**
|
|
4249
|
-
* User phone number
|
|
4250
|
-
*/
|
|
4251
|
-
phone: string;
|
|
4252
|
-
/**
|
|
4253
|
-
* Balance ticket label
|
|
4254
|
-
*/
|
|
4255
|
-
balanceLabel: string;
|
|
4256
|
-
/**
|
|
4257
|
-
* Balance ticket value
|
|
4258
|
-
*/
|
|
4259
|
-
balanceValue: string;
|
|
4260
|
-
/**
|
|
4261
|
-
* Icon for the info part
|
|
4262
|
-
*/
|
|
4263
|
-
infoIcon?: AtIconProps['name'];
|
|
4264
|
-
/**
|
|
4265
|
-
* Info label
|
|
4266
|
-
*/
|
|
4267
|
-
infoLabel?: string;
|
|
4268
|
-
/**
|
|
4269
|
-
* Info value
|
|
4270
|
-
*/
|
|
4271
|
-
infoValue?: string;
|
|
4272
|
-
/**
|
|
4273
|
-
* Main button label
|
|
4274
|
-
*/
|
|
4275
|
-
mainButtonLabel: string;
|
|
4276
|
-
/**
|
|
4277
|
-
* Main button icon
|
|
4278
|
-
*/
|
|
4279
|
-
mainButtonIcon?: AtIconProps['name'];
|
|
4280
|
-
/**
|
|
4281
|
-
* Left arrow click event
|
|
4282
|
-
*/
|
|
4283
|
-
onClickLeftArrow?: () => void;
|
|
4284
|
-
/**
|
|
4285
|
-
* Main action click event
|
|
4286
|
-
*/
|
|
4287
|
-
onClickMainAction?: () => void;
|
|
4288
|
-
/**
|
|
4289
|
-
* Form Steps info
|
|
4290
|
-
*/
|
|
4291
|
-
formSteps?: IFormStep<FormType>[];
|
|
4292
|
-
/**
|
|
4293
|
-
* On press cancel and close button function
|
|
4294
|
-
*/
|
|
4295
|
-
handleCloseCallback?: () => void;
|
|
4296
|
-
/**
|
|
4297
|
-
* State of the drawer
|
|
4298
|
-
*/
|
|
4299
|
-
open?: boolean;
|
|
4300
|
-
/**
|
|
4301
|
-
* Drawer Content
|
|
4302
|
-
*/
|
|
4303
|
-
drawerContent?: React.ReactNode;
|
|
4304
|
-
/**
|
|
4305
|
-
* Drawer Title
|
|
4306
|
-
*/
|
|
4307
|
-
drawerTitle?: React.ReactNode;
|
|
4308
|
-
/**
|
|
4309
|
-
* Drawer Width
|
|
4310
|
-
*/
|
|
4311
|
-
drawerWidth?: number;
|
|
4312
|
-
/**
|
|
4313
|
-
* Disable buttons drawer
|
|
4314
|
-
*/
|
|
4315
|
-
disabledButtons?: boolean;
|
|
4316
|
-
/**
|
|
4317
|
-
* current step
|
|
4318
|
-
*/
|
|
4319
|
-
currentFormStep?: number;
|
|
4320
|
-
/**
|
|
4321
|
-
* button optional text
|
|
4322
|
-
*/
|
|
4323
|
-
showFormStepper?: boolean;
|
|
4324
|
-
/**
|
|
4325
|
-
* On change form content
|
|
4326
|
-
*/
|
|
4327
|
-
onValuesChange?: OrFormProps['onValuesChange'];
|
|
4328
|
-
/**
|
|
4329
|
-
* Tabs props
|
|
4330
|
-
*/
|
|
4331
|
-
tabsProps: OrTabsProps;
|
|
4332
|
-
}
|
|
4333
|
-
export const TmCustomTabsPage: <FormType extends Store>({ avatar, username, phone, balanceLabel, balanceValue, infoIcon, infoLabel, infoValue, mainButtonLabel, mainButtonIcon, onClickLeftArrow, onClickMainAction, formSteps, handleCloseCallback, open, drawerTitle, drawerWidth, disabledButtons, currentFormStep, showFormStepper, onValuesChange, tabsProps, }: TmCustomTabsPageProps<FormType>) => import("react/jsx-runtime").JSX.Element;
|
|
4334
|
-
export interface TmDetailsPageProps<FormType = any> {
|
|
4335
|
-
/**
|
|
4336
|
-
* The ID for input
|
|
4337
|
-
*/
|
|
4338
|
-
id?: string;
|
|
4339
|
-
/**
|
|
4340
|
-
* Title of the description set
|
|
4341
|
-
*/
|
|
4342
|
-
title: string;
|
|
4343
|
-
/**
|
|
4344
|
-
* Whether the table has border or not
|
|
4345
|
-
*/
|
|
4346
|
-
bordered?: boolean;
|
|
4347
|
-
/**
|
|
4348
|
-
* Items to display
|
|
4349
|
-
*/
|
|
4350
|
-
items: OrDescriptionsProps['items'];
|
|
4351
|
-
/**
|
|
4352
|
-
* Extra content to display
|
|
4353
|
-
*/
|
|
4354
|
-
extra?: OrDescriptionsProps['extra'];
|
|
4355
|
-
/**
|
|
4356
|
-
* Form Steps info
|
|
4357
|
-
*/
|
|
4358
|
-
formSteps?: IFormStep<FormType>[];
|
|
4359
|
-
/**
|
|
4360
|
-
* On press cancel and close button function
|
|
4361
|
-
*/
|
|
4362
|
-
handleCloseCallback?: () => void;
|
|
4363
|
-
/**
|
|
4364
|
-
* State of the drawer
|
|
4365
|
-
*/
|
|
4366
|
-
open?: boolean;
|
|
4367
|
-
/**
|
|
4368
|
-
* Drawer Content
|
|
4369
|
-
*/
|
|
4370
|
-
drawerContent?: React.ReactNode;
|
|
4371
|
-
/**
|
|
4372
|
-
* Drawer Title
|
|
4373
|
-
*/
|
|
4374
|
-
drawerTitle?: React.ReactNode;
|
|
4375
|
-
/**
|
|
4376
|
-
* Drawer Width
|
|
4377
|
-
*/
|
|
4378
|
-
drawerWidth?: number;
|
|
4379
|
-
/**
|
|
4380
|
-
* Disable buttons drawer
|
|
4381
|
-
*/
|
|
4382
|
-
disabledButtons?: boolean;
|
|
4383
|
-
/**
|
|
4384
|
-
* current step
|
|
4385
|
-
*/
|
|
4386
|
-
currentFormStep?: number;
|
|
4387
|
-
/**
|
|
4388
|
-
* button optional text
|
|
4389
|
-
*/
|
|
4390
|
-
showFormStepper?: boolean;
|
|
4391
|
-
/**
|
|
4392
|
-
* On change form content
|
|
4393
|
-
*/
|
|
4394
|
-
onValuesChange?: OrFormProps['onValuesChange'];
|
|
4395
|
-
}
|
|
4396
|
-
export const TmDetailsPage: <FormType extends Store>({ title, bordered, items, extra, formSteps, handleCloseCallback, open, drawerTitle, drawerWidth, disabledButtons, currentFormStep, showFormStepper, onValuesChange, }: TmDetailsPageProps<FormType>) => import("react/jsx-runtime").JSX.Element;
|
|
4397
4425
|
export interface PaymentMethod {
|
|
4398
4426
|
value: string;
|
|
4399
4427
|
icon?: React.ReactNode;
|
|
@@ -4775,29 +4803,6 @@ export interface OrTabsModuleLayoutProps<FormType = any> {
|
|
|
4775
4803
|
onValuesChange?: OrFormProps['onValuesChange'];
|
|
4776
4804
|
}
|
|
4777
4805
|
export const OrTabsModuleLayout: React.FC<OrTabsModuleLayoutProps>;
|
|
4778
|
-
export interface OrDescriptionsProps extends DescriptionsProps {
|
|
4779
|
-
/**
|
|
4780
|
-
* The ID for input
|
|
4781
|
-
*/
|
|
4782
|
-
id?: string;
|
|
4783
|
-
/**
|
|
4784
|
-
* Title of the description set
|
|
4785
|
-
*/
|
|
4786
|
-
title: string;
|
|
4787
|
-
/**
|
|
4788
|
-
* Whether the table has border or not
|
|
4789
|
-
*/
|
|
4790
|
-
bordered?: boolean;
|
|
4791
|
-
/**
|
|
4792
|
-
* Items to display
|
|
4793
|
-
*/
|
|
4794
|
-
items: DescriptionsProps['items'];
|
|
4795
|
-
/**
|
|
4796
|
-
* Extra content to display
|
|
4797
|
-
*/
|
|
4798
|
-
extra?: DescriptionsProps['extra'];
|
|
4799
|
-
}
|
|
4800
|
-
export const OrDescriptions: React.FC<OrDescriptionsProps>;
|
|
4801
4806
|
export interface AtInputStatusProps {
|
|
4802
4807
|
/**
|
|
4803
4808
|
* Custom close icon. 5.7.0: close button will be hidden when setting to null or false
|