enwawa-ui 2.7.2 → 2.8.0
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 +183 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.es.js +286 -10
- package/lib/index.es.js.map +1 -1
- package/lib/index.js +283 -7
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ import { ValueType } from "@rc-component/mini-decimal";
|
|
|
21
21
|
import { Gutter } from "antd/es/grid/row";
|
|
22
22
|
import { AnyObject } from "antd/es/_util/type";
|
|
23
23
|
import { DrawerProps } from "antd/es/drawer";
|
|
24
|
-
import { GoogleMapProps, GoogleMap } from "@react-google-maps/api";
|
|
24
|
+
import { GoogleMapProps, CircleProps, GoogleMap } from "@react-google-maps/api";
|
|
25
25
|
import { WatchOptions } from "rc-field-form/es/interface";
|
|
26
26
|
import { ColumnsType, TablePaginationConfig } from "antd/es/table";
|
|
27
27
|
import { ExpandableConfig, FilterValue, SorterResult, TableCurrentDataSource, TableRowSelection } from "antd/es/table/interface";
|
|
@@ -1203,7 +1203,7 @@ export interface MlBreadcrumbProps {
|
|
|
1203
1203
|
export const MlBreadcrumb: React.FC<MlBreadcrumbProps>;
|
|
1204
1204
|
export interface MlCardIconProps {
|
|
1205
1205
|
title: string;
|
|
1206
|
-
icon
|
|
1206
|
+
icon?: AtIconProps['name'];
|
|
1207
1207
|
value: string;
|
|
1208
1208
|
}
|
|
1209
1209
|
export const MlCardIcon: React.FC<MlCardIconProps>;
|
|
@@ -2408,6 +2408,29 @@ export interface OrCardIconsGroupProps {
|
|
|
2408
2408
|
disabled?: boolean;
|
|
2409
2409
|
}
|
|
2410
2410
|
export const OrCardIconsGroup: React.FC<OrCardIconsGroupProps>;
|
|
2411
|
+
export interface OrCardLocationProps {
|
|
2412
|
+
/**
|
|
2413
|
+
* Callback when action button is pressed
|
|
2414
|
+
*/
|
|
2415
|
+
onClickActionButton?: () => void;
|
|
2416
|
+
/**
|
|
2417
|
+
* Latitude of the location
|
|
2418
|
+
*/
|
|
2419
|
+
backgroundColor?: string;
|
|
2420
|
+
/**
|
|
2421
|
+
* type of card info
|
|
2422
|
+
*/
|
|
2423
|
+
type: 'add' | 'oneWay' | 'return';
|
|
2424
|
+
/**
|
|
2425
|
+
* Text of the action button
|
|
2426
|
+
*/
|
|
2427
|
+
buttonText?: string;
|
|
2428
|
+
content: React.ReactNode;
|
|
2429
|
+
}
|
|
2430
|
+
/**
|
|
2431
|
+
* Primary input UI component for user interaction
|
|
2432
|
+
*/
|
|
2433
|
+
export const OrCardLocation: React.FC<OrCardLocationProps>;
|
|
2411
2434
|
export interface MlRequestCardProps extends MlCardProps {
|
|
2412
2435
|
/**
|
|
2413
2436
|
* The from direction
|
|
@@ -3192,8 +3215,12 @@ export interface OrDetailsPageProps<FormType = any> {
|
|
|
3192
3215
|
* On change form content
|
|
3193
3216
|
*/
|
|
3194
3217
|
onValuesChange?: OrFormProps['onValuesChange'];
|
|
3218
|
+
/**
|
|
3219
|
+
* config the OrAlert component showed
|
|
3220
|
+
*/
|
|
3221
|
+
orAlertConfig?: OrAlertProps;
|
|
3195
3222
|
}
|
|
3196
|
-
export const OrDetailsPage: <FormType extends Store>({ title, bordered, items, extra, formSteps, handleCloseCallback, open, drawerTitle, drawerWidth, disabledButtons, currentFormStep, showFormStepper, onValuesChange, }: OrDetailsPageProps<FormType>) => import("react/jsx-runtime").JSX.Element;
|
|
3223
|
+
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;
|
|
3197
3224
|
interface OrDownloadProps {
|
|
3198
3225
|
/**
|
|
3199
3226
|
* The function to call when the download button is clicked
|
|
@@ -3461,6 +3488,20 @@ export interface OrSelectInputProps {
|
|
|
3461
3488
|
}
|
|
3462
3489
|
export const OrSelectInput: React.FC<OrSelectInputProps>;
|
|
3463
3490
|
type _Size1 = 'large' | 'middle' | 'small';
|
|
3491
|
+
interface OverlayViewProps {
|
|
3492
|
+
children?: React.ReactNode | undefined;
|
|
3493
|
+
position?: google.maps.LatLng | google.maps.LatLngLiteral | undefined;
|
|
3494
|
+
getPixelPositionOffset?: ((offsetWidth: number, offsetHeight: number) => {
|
|
3495
|
+
x: number;
|
|
3496
|
+
y: number;
|
|
3497
|
+
}) | undefined;
|
|
3498
|
+
bounds?: google.maps.LatLngBounds | google.maps.LatLngBoundsLiteral | undefined;
|
|
3499
|
+
zIndex?: number | undefined;
|
|
3500
|
+
onLoad?: ((overlayView: google.maps.OverlayView) => void) | undefined;
|
|
3501
|
+
onUnmount?: ((overlayView: google.maps.OverlayView) => void) | undefined;
|
|
3502
|
+
hasOverlay?: boolean;
|
|
3503
|
+
}
|
|
3504
|
+
export const CustomOverlay: React.FC<OverlayViewProps>;
|
|
3464
3505
|
export interface OrMarkProps {
|
|
3465
3506
|
id?: string;
|
|
3466
3507
|
text?: string;
|
|
@@ -3621,7 +3662,7 @@ export interface OrFormInLineItem {
|
|
|
3621
3662
|
/**
|
|
3622
3663
|
* Type of components available for the form
|
|
3623
3664
|
*/
|
|
3624
|
-
component: 'radio' | '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' | 'image' | 'time-range-picker' | 'autocomplete-search' | 'tabs' | 'descriptions-table' | 'badge-ribbon';
|
|
3665
|
+
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' | 'image' | 'time-range-picker' | 'autocomplete-search' | 'tabs' | 'descriptions-table' | 'badge-ribbon';
|
|
3625
3666
|
/**
|
|
3626
3667
|
* Label of the field
|
|
3627
3668
|
*/
|
|
@@ -4170,6 +4211,140 @@ interface OrModalProps {
|
|
|
4170
4211
|
content?: string | React.ReactNode;
|
|
4171
4212
|
}
|
|
4172
4213
|
export const OrModal: React.FC<OrModalProps>;
|
|
4214
|
+
export interface MarkersArrayMap {
|
|
4215
|
+
type: 'add' | 'oneWay' | 'return';
|
|
4216
|
+
color?: OrMarkProps['color'];
|
|
4217
|
+
backgroundColor?: string;
|
|
4218
|
+
size?: OrMarkProps['size'];
|
|
4219
|
+
marks: OrMarkProps[];
|
|
4220
|
+
polyLine: boolean;
|
|
4221
|
+
onClickMarker?: (item: OrMarkProps) => void;
|
|
4222
|
+
popOverButtonText?: string;
|
|
4223
|
+
title?: string;
|
|
4224
|
+
}
|
|
4225
|
+
export interface TmCustomMapPageProps<FormType = any> extends OrModuleTableHeaderProps {
|
|
4226
|
+
map: GoogleMapProps & {
|
|
4227
|
+
GOOGLE_MAPS_API_KEY: string;
|
|
4228
|
+
ref?: React.RefObject<GoogleMap>;
|
|
4229
|
+
};
|
|
4230
|
+
staticMarkers?: MarkersArrayMap[];
|
|
4231
|
+
realtimeMarkers?: MarkersArrayMap[];
|
|
4232
|
+
/**
|
|
4233
|
+
* State of the drawer
|
|
4234
|
+
*/
|
|
4235
|
+
open?: boolean;
|
|
4236
|
+
/**
|
|
4237
|
+
* On press cancel and close button function
|
|
4238
|
+
*/
|
|
4239
|
+
handleCloseCallback?: () => void;
|
|
4240
|
+
/**
|
|
4241
|
+
* Disable buttons drawer
|
|
4242
|
+
*/
|
|
4243
|
+
disabledButtons?: boolean;
|
|
4244
|
+
/**
|
|
4245
|
+
* Form Steps info
|
|
4246
|
+
*/
|
|
4247
|
+
formSteps?: IFormStep<FormType>[];
|
|
4248
|
+
/**
|
|
4249
|
+
* current step
|
|
4250
|
+
*/
|
|
4251
|
+
currentFormStep?: number;
|
|
4252
|
+
/**
|
|
4253
|
+
* Drawer Content
|
|
4254
|
+
*/
|
|
4255
|
+
drawerContent?: React.ReactNode;
|
|
4256
|
+
/**
|
|
4257
|
+
* Drawer Title
|
|
4258
|
+
*/
|
|
4259
|
+
drawerTitle?: React.ReactNode;
|
|
4260
|
+
/**
|
|
4261
|
+
* Drawer Width
|
|
4262
|
+
*/
|
|
4263
|
+
drawerWidth?: number;
|
|
4264
|
+
/**
|
|
4265
|
+
* Text of first button
|
|
4266
|
+
*/
|
|
4267
|
+
firstButtonText?: string;
|
|
4268
|
+
/**
|
|
4269
|
+
* Text of second button
|
|
4270
|
+
*/
|
|
4271
|
+
secondButtonText?: string;
|
|
4272
|
+
/**
|
|
4273
|
+
* Function to execute when first button is clicked
|
|
4274
|
+
*/
|
|
4275
|
+
onClickFirstButton?: () => void;
|
|
4276
|
+
/**
|
|
4277
|
+
* Function to execute when second button is clicked
|
|
4278
|
+
*/
|
|
4279
|
+
onClickSecondButton?: () => void;
|
|
4280
|
+
/**
|
|
4281
|
+
* Show drawer content
|
|
4282
|
+
*/
|
|
4283
|
+
showDrawerContent?: boolean;
|
|
4284
|
+
/**
|
|
4285
|
+
* margin
|
|
4286
|
+
*/
|
|
4287
|
+
$margin?: string;
|
|
4288
|
+
/**
|
|
4289
|
+
* table title level
|
|
4290
|
+
*/
|
|
4291
|
+
tableTitleLevel?: 1 | 2 | 3 | 4 | 5;
|
|
4292
|
+
/**
|
|
4293
|
+
* button optional text
|
|
4294
|
+
*/
|
|
4295
|
+
secondaryButtonText?: string;
|
|
4296
|
+
/**
|
|
4297
|
+
* button optional onClick
|
|
4298
|
+
*/
|
|
4299
|
+
secondaryOnClick?: () => void;
|
|
4300
|
+
/**
|
|
4301
|
+
* button optional text
|
|
4302
|
+
*/
|
|
4303
|
+
showFormStepper?: boolean;
|
|
4304
|
+
onBack?: () => void;
|
|
4305
|
+
/**
|
|
4306
|
+
* On change form content
|
|
4307
|
+
*/
|
|
4308
|
+
onValuesChange?: OrFormProps['onValuesChange'];
|
|
4309
|
+
/**
|
|
4310
|
+
* Button value text
|
|
4311
|
+
*/
|
|
4312
|
+
buttonAddText?: string;
|
|
4313
|
+
/**
|
|
4314
|
+
* Callback when add button is pressed
|
|
4315
|
+
*/
|
|
4316
|
+
addButtonOnClick?: OrModuleTableHeaderProps['buttonOnClick'];
|
|
4317
|
+
/**
|
|
4318
|
+
* Custom component to render at left side of table header
|
|
4319
|
+
*/
|
|
4320
|
+
tableHeaderCustomLeftElements?: React.ReactNode;
|
|
4321
|
+
/**
|
|
4322
|
+
* padding
|
|
4323
|
+
*/
|
|
4324
|
+
padding?: string;
|
|
4325
|
+
/**
|
|
4326
|
+
* Custom component to render on map item click popover
|
|
4327
|
+
*/
|
|
4328
|
+
itemOnClickMap?: {
|
|
4329
|
+
visible: boolean;
|
|
4330
|
+
lat: number;
|
|
4331
|
+
lng: number;
|
|
4332
|
+
item: React.ReactNode;
|
|
4333
|
+
};
|
|
4334
|
+
/**
|
|
4335
|
+
* Custom icon rendered to select a point in the map
|
|
4336
|
+
*/
|
|
4337
|
+
markSelectIcon?: React.ReactNode;
|
|
4338
|
+
/**
|
|
4339
|
+
*markers width
|
|
4340
|
+
*/
|
|
4341
|
+
markersWidth?: number;
|
|
4342
|
+
/**
|
|
4343
|
+
* Circle props
|
|
4344
|
+
*/
|
|
4345
|
+
circle?: CircleProps;
|
|
4346
|
+
}
|
|
4347
|
+
export const TmCustomMapPage: React.FC<TmCustomMapPageProps>;
|
|
4173
4348
|
export interface TmCustomTabsPageProps<FormType = any> {
|
|
4174
4349
|
/**
|
|
4175
4350
|
* Avatar image
|
|
@@ -5646,6 +5821,10 @@ export interface AtTimeRangePickerProps {
|
|
|
5646
5821
|
* A callback function which will be called while panel opening/closing
|
|
5647
5822
|
*/
|
|
5648
5823
|
onOpenChange?: RangePicker['onOpenChange'];
|
|
5824
|
+
/**
|
|
5825
|
+
* width of the input box
|
|
5826
|
+
*/
|
|
5827
|
+
$width?: string;
|
|
5649
5828
|
}
|
|
5650
5829
|
export const AtTimeRangePicker: React.FC<AtTimeRangePickerProps>;
|
|
5651
5830
|
export interface AtTitleProps {
|