@pnkx-lib/ui 1.9.36 → 1.9.38
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/dist/style.css +2 -2
- package/es/chunks/{Radio-BI84-zGV.js → Radio-Cy7MuC6V.js} +1 -1
- package/es/chunks/{Switch-DIm0IBxH.js → Switch-5fY0eC69.js} +13 -18
- package/es/chunks/{common-b3FKGF0Y.js → _MapCache-hm6_DB7i.js} +1 -7
- package/es/chunks/{CategoryStatus-DdH8iIZs.js → index-C4eLNxfq.js} +114 -42
- package/es/chunks/{cloneDeep-BLYi2V0G.js → table-B28OPA57.js} +32 -5
- package/es/chunks/{useMessage-D_-VT5B4.js → useToggle-C5Y4aFUQ.js} +15 -3
- package/es/fields/index.js +2 -2
- package/es/hooks/index.js +2 -2
- package/es/index.js +5 -5
- package/es/ui/index.js +3 -2
- package/package.json +7 -3
- package/types/fields.d.ts +11 -11
- package/types/hooks.d.ts +19 -6
- package/types/index.d.ts +153 -75
- package/types/ui.d.ts +116 -51
package/types/index.d.ts
CHANGED
@@ -2,8 +2,8 @@ import { AffixProps } from 'antd';
|
|
2
2
|
import { AlertProps as AlertProps_2 } from 'antd';
|
3
3
|
import { Anchor as Anchor_2 } from 'antd';
|
4
4
|
import { AnchorProps } from 'antd';
|
5
|
-
import { ArgsProps } from 'antd/
|
6
|
-
import { ArgsProps as ArgsProps_2 } from 'antd/
|
5
|
+
import { ArgsProps } from 'antd/es/notification';
|
6
|
+
import { ArgsProps as ArgsProps_2 } from 'antd/lib/message';
|
7
7
|
import { AutoCompleteProps as AutoCompleteProps_2 } from 'antd';
|
8
8
|
import { BadgeProps as BadgeProps_2 } from 'antd';
|
9
9
|
import { BasicProps } from 'antd/es/layout/layout';
|
@@ -23,8 +23,8 @@ import { Control } from 'react-hook-form';
|
|
23
23
|
import { ControllerFieldState } from 'react-hook-form';
|
24
24
|
import { ControllerRenderProps } from 'react-hook-form';
|
25
25
|
import { Dayjs } from 'dayjs';
|
26
|
-
import { default as default_2 } from '
|
27
|
-
import { default as default_3 } from '
|
26
|
+
import { default as default_2 } from 'react';
|
27
|
+
import { default as default_3 } from 'antd/es/anchor/AnchorLink';
|
28
28
|
import { DefaultOptionType } from 'antd/es/cascader';
|
29
29
|
import { DefaultValues } from 'react-hook-form';
|
30
30
|
import { DividerProps as DividerProps_2 } from 'antd';
|
@@ -41,9 +41,10 @@ import { FormEventHandler } from 'react';
|
|
41
41
|
import { ForwardRefExoticComponent } from 'react';
|
42
42
|
import { IAllProps } from '@tinymce/tinymce-react';
|
43
43
|
import { ImageProps } from 'antd';
|
44
|
+
import { InitialFiltersSearch as InitialFiltersSearch_2 } from '../../../../../../../../../../../src/components/hooks';
|
44
45
|
import { InputProps as InputProps_2 } from 'antd';
|
45
|
-
import { JSX
|
46
|
-
import { JSX as
|
46
|
+
import { JSX } from 'react/jsx-runtime';
|
47
|
+
import { JSX as JSX_2 } from 'react';
|
47
48
|
import { MenuDividerProps } from 'antd/es/menu';
|
48
49
|
import { MenuItemGroupProps } from 'rc-menu/lib/MenuItemGroup';
|
49
50
|
import { MenuItemProps as MenuItemProps_2 } from 'antd/es/menu';
|
@@ -92,6 +93,7 @@ import { TitleProps } from 'antd/es/typography/Title';
|
|
92
93
|
import { TooltipProps as TooltipProps_2 } from 'antd';
|
93
94
|
import { TourProps as TourProps_2 } from 'antd';
|
94
95
|
import { TreeProps as TreeProps_2 } from 'antd';
|
96
|
+
import { TypeActionRowTable as TypeActionRowTable_2 } from '../../../../../../../../../../../../src/constants/table';
|
95
97
|
import { UploadFile } from 'antd';
|
96
98
|
import { UploadProps } from 'antd';
|
97
99
|
import { UseFormReset } from 'react-hook-form';
|
@@ -100,27 +102,37 @@ import { UseFormSetValue } from 'react-hook-form';
|
|
100
102
|
import { UseFormStateReturn } from 'react-hook-form';
|
101
103
|
import { WatermarkProps } from 'antd';
|
102
104
|
|
105
|
+
export declare const ActionRowTable: ({ type, contentTooltip, handleClick, }: ActionRowTableProps) => JSX.Element;
|
106
|
+
|
107
|
+
export declare interface ActionRowTableProps {
|
108
|
+
type: TypeActionRowTable_2;
|
109
|
+
handleClick?: () => void;
|
110
|
+
contentTooltip?: default_2.ReactNode;
|
111
|
+
content?: default_2.ReactNode;
|
112
|
+
diabled?: boolean;
|
113
|
+
}
|
114
|
+
|
103
115
|
export declare const Alert: React.FC<AlertProps>;
|
104
116
|
|
105
117
|
export declare type AlertProps = AlertProps_2;
|
106
118
|
|
107
119
|
export declare const Anchor: typeof Anchor_2 & {
|
108
|
-
Link: typeof
|
120
|
+
Link: typeof default_3;
|
109
121
|
};
|
110
122
|
|
111
123
|
export declare type AnchorPropsUnion = BaseProps_13 & AnchorProps;
|
112
124
|
|
113
|
-
export declare const Appfix: ({ children, ...rest }: AppfixProps) =>
|
125
|
+
export declare const Appfix: ({ children, ...rest }: AppfixProps) => JSX.Element;
|
114
126
|
|
115
127
|
export declare interface AppfixProps extends AffixProps {
|
116
|
-
children:
|
128
|
+
children: default_2.ReactNode;
|
117
129
|
}
|
118
130
|
|
119
131
|
export declare const AutoComplete: React.FC<AutoCompleteProps>;
|
120
132
|
|
121
133
|
export declare type AutoCompleteProps = AutoCompleteProps_2;
|
122
134
|
|
123
|
-
export declare const Badge: ({ type, children, customColor, ...rest }: BadgeProps) =>
|
135
|
+
export declare const Badge: ({ type, children, customColor, ...rest }: BadgeProps) => JSX.Element;
|
124
136
|
|
125
137
|
export declare interface BadgeProps extends BadgeProps_2 {
|
126
138
|
type?: "error" | "info" | "success" | "warning";
|
@@ -190,7 +202,7 @@ declare type BaseProps_9 = {
|
|
190
202
|
spaceClassName?: string;
|
191
203
|
};
|
192
204
|
|
193
|
-
export declare const Breadcrumb: (props: BreadcrumbPropsUnion) =>
|
205
|
+
export declare const Breadcrumb: (props: BreadcrumbPropsUnion) => JSX.Element;
|
194
206
|
|
195
207
|
export declare interface BreadcrumbItemType extends BreadcrumbItemType_2 {
|
196
208
|
children?: Omit<BreadcrumbItemType, "children">[];
|
@@ -202,7 +214,7 @@ export declare type BreadcrumbPropsUnion = BaseProps_6 & BreadcrumbProps;
|
|
202
214
|
|
203
215
|
export declare type BreadcrumbSeparatorType = BreadcrumbSeparatorType_2;
|
204
216
|
|
205
|
-
export declare const BulkAction: ({ quantity, handleRestore, handleSendApproval, handleCancelSendApproval, handleRefuseApproval, handleApproval, handleCancelApproval, handleDelete, handleActivate, handleInActivate, status, }: BulkActionProps) =>
|
217
|
+
export declare const BulkAction: ({ quantity, handleRestore, handleSendApproval, handleCancelSendApproval, handleRefuseApproval, handleApproval, handleCancelApproval, handleDelete, handleActivate, handleInActivate, status, }: BulkActionProps) => JSX.Element;
|
206
218
|
|
207
219
|
export declare interface BulkActionProps {
|
208
220
|
quantity: number;
|
@@ -218,15 +230,21 @@ export declare interface BulkActionProps {
|
|
218
230
|
status?: number;
|
219
231
|
}
|
220
232
|
|
221
|
-
export declare const Button:
|
233
|
+
export declare const Button: default_2.FC<ButtonProps>;
|
222
234
|
|
223
235
|
export declare type ButtonProps = ButtonProps_2;
|
224
236
|
|
225
|
-
export declare const CascaderField: (props: CascaderFieldProps) =>
|
237
|
+
export declare const CascaderField: (props: CascaderFieldProps) => JSX.Element;
|
226
238
|
|
227
239
|
export declare type CascaderFieldProps = BaseProps & (SingleCascaderProps | MultipleCascaderProps);
|
228
240
|
|
229
|
-
export declare const
|
241
|
+
export declare const CategoryStatus: ({ status }: CategoryStatusProps) => JSX.Element;
|
242
|
+
|
243
|
+
export declare interface CategoryStatusProps {
|
244
|
+
status: number;
|
245
|
+
}
|
246
|
+
|
247
|
+
export declare const CheckboxField: (props: CheckboxFieldProps) => JSX.Element;
|
230
248
|
|
231
249
|
export declare interface CheckboxFieldProps extends Omit<CheckboxProps, "onChange" | "checked"> {
|
232
250
|
field?: ControllerRenderProps<any, any>;
|
@@ -238,7 +256,7 @@ export declare interface CheckboxFieldProps extends Omit<CheckboxProps, "onChang
|
|
238
256
|
customStyleCheckbox?: string;
|
239
257
|
}
|
240
258
|
|
241
|
-
export declare const Col: (props: ColPropsUnion) =>
|
259
|
+
export declare const Col: (props: ColPropsUnion) => JSX.Element;
|
242
260
|
|
243
261
|
export declare interface ColProps extends ColProps_2, Partial<Record<Breakpoint, ColSpanType | ColSize>> {
|
244
262
|
}
|
@@ -258,7 +276,7 @@ declare type CompoundedMenu = FC<MenuComponentProps> & {
|
|
258
276
|
ItemGroup: typeof ItemGroup;
|
259
277
|
};
|
260
278
|
|
261
|
-
export declare const ConfirmModal: ({ title, content, typeIcon, titleCancelBtn, titleSubmitBtn, handleCancel, handleSubmit, ...restProps }: ConfirmModalProps) =>
|
279
|
+
export declare const ConfirmModal: ({ title, content, typeIcon, titleCancelBtn, titleSubmitBtn, handleCancel, handleSubmit, ...restProps }: ConfirmModalProps) => JSX.Element;
|
262
280
|
|
263
281
|
export declare interface ConfirmModalProps extends ModalProps {
|
264
282
|
title: string;
|
@@ -272,15 +290,15 @@ export declare interface ConfirmModalProps extends ModalProps {
|
|
272
290
|
|
273
291
|
export declare type ConfirmModalType = "success" | "error" | "warning" | "info";
|
274
292
|
|
275
|
-
export declare const Container:
|
293
|
+
export declare const Container: default_2.FC<ContainerProps>;
|
276
294
|
|
277
295
|
export declare interface ContainerProps {
|
278
|
-
children:
|
296
|
+
children: default_2.ReactNode;
|
279
297
|
size?: TailwindMaxWidth;
|
280
298
|
className?: string;
|
281
299
|
}
|
282
300
|
|
283
|
-
declare type CustomInputTypeAttribute =
|
301
|
+
declare type CustomInputTypeAttribute = default_2.HTMLInputTypeAttribute | "money";
|
284
302
|
|
285
303
|
export declare interface DatePickerDMYProps extends Omit<ReactDatePickerProps, "onChange"> {
|
286
304
|
field?: ControllerRenderProps<any, any>;
|
@@ -294,14 +312,14 @@ export declare interface DatePickerDMYProps extends Omit<ReactDatePickerProps, "
|
|
294
312
|
label?: string;
|
295
313
|
maxDate?: Date;
|
296
314
|
showTimeSelect?: boolean;
|
297
|
-
customOnChange?: (date: any, event:
|
315
|
+
customOnChange?: (date: any, event: default_2.SyntheticEvent<any>) => void;
|
298
316
|
customValue?: Date | null;
|
299
317
|
size?: TSize;
|
300
318
|
}
|
301
319
|
|
302
|
-
export declare const DatePickerField: (props: DatePickerDMYProps) =>
|
320
|
+
export declare const DatePickerField: (props: DatePickerDMYProps) => JSX.Element;
|
303
321
|
|
304
|
-
export declare const Divider: ({ children, ...rest }: DividerProps) =>
|
322
|
+
export declare const Divider: ({ children, ...rest }: DividerProps) => JSX.Element;
|
305
323
|
|
306
324
|
declare const Divider_2: FC<MenuDividerProps>;
|
307
325
|
|
@@ -309,14 +327,14 @@ export declare interface DividerProps extends DividerProps_2 {
|
|
309
327
|
children?: ReactNode | string;
|
310
328
|
}
|
311
329
|
|
312
|
-
export declare const Drawer: ({ onSubmit, children, ...rest }: DrawerProps) =>
|
330
|
+
export declare const Drawer: ({ onSubmit, children, ...rest }: DrawerProps) => JSX.Element;
|
313
331
|
|
314
332
|
export declare interface DrawerProps extends DrawerProps_2 {
|
315
333
|
children?: ReactNode;
|
316
334
|
onSubmit?: (values: any) => void;
|
317
335
|
}
|
318
336
|
|
319
|
-
export declare const Dropdown: (props: DropdownPropsUnion) =>
|
337
|
+
export declare const Dropdown: (props: DropdownPropsUnion) => JSX.Element;
|
320
338
|
|
321
339
|
export declare type DropdownButtonProps = DropdownButtonProps_2;
|
322
340
|
|
@@ -337,7 +355,7 @@ declare class ErrorBoundaryClass extends Component<ErrorBoundaryProps, ErrorBoun
|
|
337
355
|
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
338
356
|
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
339
357
|
handleReload: () => void;
|
340
|
-
render():
|
358
|
+
render(): default_2.ReactNode;
|
341
359
|
}
|
342
360
|
|
343
361
|
export declare interface ErrorBoundaryProps {
|
@@ -350,7 +368,7 @@ export declare interface ErrorBoundaryState {
|
|
350
368
|
errorInfo: ErrorInfo | null;
|
351
369
|
}
|
352
370
|
|
353
|
-
export declare const ErrorMessage:
|
371
|
+
export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX.Element | null>;
|
354
372
|
|
355
373
|
export declare interface ErrorMessageProps {
|
356
374
|
errorMessage?: string;
|
@@ -363,13 +381,19 @@ declare type ExtraProps = {
|
|
363
381
|
menuClassName?: string;
|
364
382
|
};
|
365
383
|
|
366
|
-
export declare const Flex: (props: FlexPropsUnion) =>
|
384
|
+
export declare const Flex: (props: FlexPropsUnion) => JSX.Element;
|
367
385
|
|
368
386
|
export declare type FlexProps = FlexProps_2;
|
369
387
|
|
370
388
|
export declare type FlexPropsUnion = BaseProps_7 & FlexProps;
|
371
389
|
|
372
|
-
|
390
|
+
declare interface GroupHeadingButtonItem {
|
391
|
+
label: string;
|
392
|
+
value: number;
|
393
|
+
keyActive: number;
|
394
|
+
}
|
395
|
+
|
396
|
+
export declare const Heading: (props: HeadingProps) => JSX.Element;
|
373
397
|
|
374
398
|
export declare interface HeadingProps {
|
375
399
|
rightContent?: ReactNode;
|
@@ -384,7 +408,7 @@ export { Image_2 as Image }
|
|
384
408
|
|
385
409
|
export declare type InitialFiltersSearch<T> = T & PaginationFilters;
|
386
410
|
|
387
|
-
export declare const Input: (props: InputProps) =>
|
411
|
+
export declare const Input: (props: InputProps) => JSX.Element;
|
388
412
|
|
389
413
|
export declare interface InputProps extends InputProps_2 {
|
390
414
|
field?: ControllerRenderProps<any, any>;
|
@@ -393,8 +417,8 @@ export declare interface InputProps extends InputProps_2 {
|
|
393
417
|
customStyleInput?: string;
|
394
418
|
type?: CustomInputTypeAttribute;
|
395
419
|
afterOnChange?: (value: number | string | null) => void;
|
396
|
-
iconStartInput?:
|
397
|
-
iconEndInput?:
|
420
|
+
iconStartInput?: default_2.ReactNode;
|
421
|
+
iconEndInput?: default_2.ReactNode;
|
398
422
|
allowNegative?: boolean;
|
399
423
|
decimalScale?: number;
|
400
424
|
prefix?: string;
|
@@ -407,19 +431,26 @@ declare const ItemGroup: ForwardRefExoticComponent<Omit<MenuItemGroupProps, "ref
|
|
407
431
|
|
408
432
|
export declare type ItemType = Partial<BreadcrumbItemType & BreadcrumbSeparatorType>;
|
409
433
|
|
410
|
-
|
434
|
+
declare type IValueSearch = {
|
435
|
+
keyword: string | undefined;
|
436
|
+
attributeType: string | null | undefined;
|
437
|
+
PageIndex: number;
|
438
|
+
PageSize: number;
|
439
|
+
};
|
440
|
+
|
441
|
+
export declare const Label: ({ label, required }: LabelProps) => JSX.Element;
|
411
442
|
|
412
443
|
export declare interface LabelProps {
|
413
444
|
label: string;
|
414
445
|
required?: boolean;
|
415
446
|
}
|
416
447
|
|
417
|
-
export declare const Layout:
|
418
|
-
Header:
|
419
|
-
Footer:
|
420
|
-
Content:
|
421
|
-
Sider:
|
422
|
-
_InternalSiderContext:
|
448
|
+
export declare const Layout: default_2.FC<LayoutProps> & {
|
449
|
+
Header: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
450
|
+
Footer: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
451
|
+
Content: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
452
|
+
Sider: default_2.ForwardRefExoticComponent<SiderProps & default_2.RefAttributes<HTMLDivElement>>;
|
453
|
+
_InternalSiderContext: default_2.Context<SiderContextProps>;
|
423
454
|
};
|
424
455
|
|
425
456
|
export declare type LayoutProps = BaseProps_8 & BasicProps;
|
@@ -434,25 +465,29 @@ export declare type MenuItemProps = MenuItemProps_2;
|
|
434
465
|
|
435
466
|
export declare type MenuProps = MenuProps_2;
|
436
467
|
|
437
|
-
export declare const Modal: ({ children,
|
468
|
+
export declare const Modal: ({ children, ...rest }: ModalProps) => JSX.Element;
|
438
469
|
|
439
470
|
export declare interface ModalProps extends ModalProps_2 {
|
440
471
|
children?: ReactNode;
|
441
|
-
onSubmit?: () => void;
|
442
472
|
}
|
443
473
|
|
444
474
|
declare type MultipleCascaderProps = CascaderProps<DefaultOptionType, string, true> & {
|
445
475
|
multiple: true;
|
446
476
|
};
|
447
477
|
|
448
|
-
export declare type OptionalArgsMessage = Partial<
|
449
|
-
type?:
|
478
|
+
export declare type OptionalArgsMessage = Partial<ArgsProps_2> & {
|
479
|
+
type?: ArgsProps_2["type"];
|
450
480
|
};
|
451
481
|
|
452
|
-
export declare type OptionalArgsToast = Partial<
|
482
|
+
export declare type OptionalArgsToast = Partial<ArgsProps> & {
|
453
483
|
message?: React.ReactNode;
|
484
|
+
type?: "success" | "error" | "info" | "warning";
|
454
485
|
};
|
455
486
|
|
487
|
+
export declare const PAGE_INDEX = "PageIndex";
|
488
|
+
|
489
|
+
export declare const PAGE_SIZE = "PageSize";
|
490
|
+
|
456
491
|
export declare const Pagination: typeof Pagination_2;
|
457
492
|
|
458
493
|
export declare type PaginationConfig = Omit<PaginationProps, "rootClassName"> & {
|
@@ -477,7 +512,7 @@ export declare type PnkxCollapseProps = CollapseProps;
|
|
477
512
|
export declare const PnkxColorPicker: React.FC<ColorPickerProps>;
|
478
513
|
|
479
514
|
export declare class PnkxField<TComponent extends React_2.ComponentType<any>> extends React_2.PureComponent<PnkxFieldProps<TComponent>> {
|
480
|
-
render():
|
515
|
+
render(): JSX.Element;
|
481
516
|
}
|
482
517
|
|
483
518
|
export declare type PnkxFieldProps<TComponent extends React_2.ComponentType<any>> = {
|
@@ -490,13 +525,13 @@ export declare interface PnkxSpinProps extends SpinProps {
|
|
490
525
|
children?: ReactNode;
|
491
526
|
}
|
492
527
|
|
493
|
-
export declare const Popconfirm: ({ children, ...rest }: PopconfirmProps) =>
|
528
|
+
export declare const Popconfirm: ({ children, ...rest }: PopconfirmProps) => JSX.Element;
|
494
529
|
|
495
530
|
export declare interface PopconfirmProps extends PopconfirmProps_2 {
|
496
531
|
children?: ReactNode;
|
497
532
|
}
|
498
533
|
|
499
|
-
export declare const Popover: (props: PopoverPropsUnion) =>
|
534
|
+
export declare const Popover: (props: PopoverPropsUnion) => JSX.Element;
|
500
535
|
|
501
536
|
export declare type PopoverProps = PopoverProps_2;
|
502
537
|
|
@@ -511,14 +546,14 @@ export declare interface PropsNumberFormat extends Omit<InputProps, "onChange" |
|
|
511
546
|
type?: TInputNumberType;
|
512
547
|
prefix?: string;
|
513
548
|
suffix?: string;
|
514
|
-
helperText?: () =>
|
549
|
+
helperText?: () => JSX_2.Element | null;
|
515
550
|
}
|
516
551
|
|
517
552
|
export declare const QRCode: React.FC<QRCodeProps>;
|
518
553
|
|
519
554
|
export declare type QRCodeProps = QRCodeProps_2;
|
520
555
|
|
521
|
-
export declare const RadioGroup: (props: RadioProps) =>
|
556
|
+
export declare const RadioGroup: (props: RadioProps) => JSX.Element;
|
522
557
|
|
523
558
|
export declare interface RadioProps extends Omit<RadioGroupProps, "options" | "onChange"> {
|
524
559
|
field?: ControllerRenderProps<any, any>;
|
@@ -531,7 +566,7 @@ export declare interface RadioProps extends Omit<RadioGroupProps, "options" | "o
|
|
531
566
|
position?: TPositionRadio;
|
532
567
|
}
|
533
568
|
|
534
|
-
export declare const RangePickerField: (props: RangePickerFieldProps) =>
|
569
|
+
export declare const RangePickerField: (props: RangePickerFieldProps) => JSX.Element;
|
535
570
|
|
536
571
|
export declare interface RangePickerFieldProps extends Omit<RangePickerProps, "value" | "onChange"> {
|
537
572
|
field?: ControllerRenderProps<any, any>;
|
@@ -545,13 +580,13 @@ export declare interface RangePickerFieldProps extends Omit<RangePickerProps, "v
|
|
545
580
|
|
546
581
|
export declare const Rate: React.FC<RateProps>;
|
547
582
|
|
548
|
-
export declare const Result: ({ children, ...rest }: ResultProps) =>
|
583
|
+
export declare const Result: ({ children, ...rest }: ResultProps) => JSX.Element;
|
549
584
|
|
550
585
|
export declare interface ResultProps extends ResultProps_2 {
|
551
586
|
children?: ReactNode | string;
|
552
587
|
}
|
553
588
|
|
554
|
-
export declare const Row: (props: RowPropsUnion) =>
|
589
|
+
export declare const Row: (props: RowPropsUnion) => JSX.Element;
|
555
590
|
|
556
591
|
declare interface RowCommon {
|
557
592
|
[x: string]: any;
|
@@ -559,7 +594,7 @@ declare interface RowCommon {
|
|
559
594
|
|
560
595
|
export declare type RowPropsUnion = BaseProps_4 & RowProps;
|
561
596
|
|
562
|
-
export declare const SearchFiltersForm: <T extends FieldValues = FieldValues>({ initialValues, renderFilterFields, onSubmit, onReset, classNamesContainer, classNameWrapperForm, hideDefaultSubmit, hideResetButton, }: SearchFiltersFormProps<T> & Partial<UseFormReturn<T>>) =>
|
597
|
+
export declare const SearchFiltersForm: <T extends FieldValues = FieldValues>({ initialValues, renderFilterFields, onSubmit, onReset, classNamesContainer, classNameWrapperForm, hideDefaultSubmit, hideResetButton, }: SearchFiltersFormProps<T> & Partial<UseFormReturn<T>>) => JSX.Element;
|
563
598
|
|
564
599
|
export declare interface SearchFiltersFormProps<T extends FieldValues> {
|
565
600
|
renderFilterFields?: (options: {
|
@@ -567,7 +602,7 @@ export declare interface SearchFiltersFormProps<T extends FieldValues> {
|
|
567
602
|
setValue?: UseFormSetValue<T>;
|
568
603
|
handleSubmit?: FormEventHandler<any>;
|
569
604
|
reset?: UseFormReset<T>;
|
570
|
-
}) =>
|
605
|
+
}) => default_2.ReactNode;
|
571
606
|
onReset?: () => void;
|
572
607
|
classNamesContainer?: string;
|
573
608
|
classNameWrapperForm?: string;
|
@@ -581,7 +616,7 @@ export declare const Segmented: React.FC<SegmentedProps>;
|
|
581
616
|
|
582
617
|
export declare type SegmentedProps = SegmentedProps_2;
|
583
618
|
|
584
|
-
export declare const Select: (props: SelectFieldProps) =>
|
619
|
+
export declare const Select: (props: SelectFieldProps) => JSX.Element;
|
585
620
|
|
586
621
|
export declare interface SelectFieldProps extends SelectProps {
|
587
622
|
field?: ControllerRenderProps<any, any>;
|
@@ -593,7 +628,7 @@ export declare interface SelectFieldProps extends SelectProps {
|
|
593
628
|
customStyleContainer?: string;
|
594
629
|
}
|
595
630
|
|
596
|
-
export declare const Sidebar: ({ children, menu }: SidebarProps) =>
|
631
|
+
export declare const Sidebar: ({ children, menu }: SidebarProps) => JSX.Element;
|
597
632
|
|
598
633
|
export declare interface SidebarProps {
|
599
634
|
children?: React.ReactNode;
|
@@ -614,23 +649,31 @@ declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
|
|
614
649
|
multiple?: false;
|
615
650
|
};
|
616
651
|
|
617
|
-
export declare const Skeleton: ({ type, skeletonButtonCount }: SkeletonProps) =>
|
652
|
+
export declare const Skeleton: ({ type, skeletonButtonCount }: SkeletonProps) => JSX.Element;
|
618
653
|
|
619
654
|
export declare interface SkeletonProps extends SkeletonProps_2 {
|
620
655
|
type?: "table" | "form";
|
621
656
|
skeletonButtonCount?: number;
|
622
657
|
}
|
623
658
|
|
659
|
+
export declare const SORT_BY = "SortBy";
|
660
|
+
|
661
|
+
export declare const SORT_DESC = "SortDesc";
|
662
|
+
|
624
663
|
export declare const Space: typeof Space_2;
|
625
664
|
|
626
665
|
export declare type SpacePropsUnion = BaseProps_9 & SpaceProps;
|
627
666
|
|
628
|
-
export declare const Spin: ({ children, ...rest }: PnkxSpinProps) =>
|
667
|
+
export declare const Spin: ({ children, ...rest }: PnkxSpinProps) => JSX.Element;
|
629
668
|
|
630
669
|
export declare const Splitter: typeof Splitter_2;
|
631
670
|
|
632
671
|
export declare type SplitterPropsUnion = BaseProps_10 & SplitterProps;
|
633
672
|
|
673
|
+
export declare const START_PAGE = 1;
|
674
|
+
|
675
|
+
export declare const START_PAGE_SIZE = 10;
|
676
|
+
|
634
677
|
export declare const Statistic: React.FC<StatisticProps>;
|
635
678
|
|
636
679
|
export declare type StatisticProps = StatisticProps_2;
|
@@ -661,12 +704,12 @@ export declare interface SwitchFieldProps extends Omit<SwitchProps, "onChange" |
|
|
661
704
|
|
662
705
|
declare type TabItem = {
|
663
706
|
key: string;
|
664
|
-
label:
|
665
|
-
children:
|
707
|
+
label: default_2.ReactNode;
|
708
|
+
children: default_2.ReactNode;
|
666
709
|
disabled?: boolean;
|
667
710
|
};
|
668
711
|
|
669
|
-
export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, className, editable, onSave, titleSettingTableModal, showSetting, setColumns, ...rest }: TableCommonProps<T>) =>
|
712
|
+
export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, className, editable, onSave, titleSettingTableModal, showSetting, setColumns, resetToInitialFilters, handleSearch, groupHeadingButtonItems, tagSearchItems, setTagSearchItems, setKeyActive, keyActive, ...rest }: TableCommonProps<T>) => JSX.Element;
|
670
713
|
|
671
714
|
export declare type TableColumnsType<T> = TableColumnsType_2<T> & TableColumnsTypeEditable<T>;
|
672
715
|
|
@@ -683,8 +726,8 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
683
726
|
onChangePage: (page: number) => void;
|
684
727
|
onChangePageSize: (size: number) => void;
|
685
728
|
onSort?: (sortField: string | number | symbol) => void;
|
686
|
-
rowsSelected?:
|
687
|
-
onSelect: (newSelectedRowKeys:
|
729
|
+
rowsSelected?: default_2.Key[];
|
730
|
+
onSelect: (newSelectedRowKeys: default_2.Key[]) => void;
|
688
731
|
onRowClick?: (record: T) => void;
|
689
732
|
rowKey?: string | ((record: T) => string);
|
690
733
|
className?: string;
|
@@ -693,9 +736,16 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
693
736
|
titleSettingTableModal?: string;
|
694
737
|
showSetting?: boolean;
|
695
738
|
setColumns?: (newColumns: TableColumnsType<T>) => void;
|
739
|
+
resetToInitialFilters: () => void;
|
740
|
+
handleSearch: (nextFilters: InitialFiltersSearch_2<IValueSearch>) => void;
|
741
|
+
groupHeadingButtonItems: GroupHeadingButtonItem[];
|
742
|
+
tagSearchItems?: string[];
|
743
|
+
setTagSearchItems?: (value: string[]) => void;
|
744
|
+
setKeyActive: (value: string | number) => void;
|
745
|
+
keyActive: string | number;
|
696
746
|
}
|
697
747
|
|
698
|
-
export declare const Tabs:
|
748
|
+
export declare const Tabs: default_2.FC<TabsProps>;
|
699
749
|
|
700
750
|
export declare type TabsProps = TabsProps_2 & {
|
701
751
|
items: TabItem[];
|
@@ -725,8 +775,10 @@ export declare type TimelineProps = TimelineProps_2;
|
|
725
775
|
|
726
776
|
declare type TInputNumberType = "number" | "money";
|
727
777
|
|
778
|
+
export declare const TINY_API = "miai0qn3c79adm555yoxd9kz6j6a323ek760nf7qd81nv1p5";
|
779
|
+
|
728
780
|
export declare const TinyMCE: {
|
729
|
-
(props: TinyProps):
|
781
|
+
(props: TinyProps): JSX.Element;
|
730
782
|
displayName: string;
|
731
783
|
};
|
732
784
|
|
@@ -741,7 +793,7 @@ export declare interface TinyProps extends IAllProps {
|
|
741
793
|
text_patterns?: any;
|
742
794
|
}
|
743
795
|
|
744
|
-
export declare const Tooltip:
|
796
|
+
export declare const Tooltip: default_2.FC<TooltipProps>;
|
745
797
|
|
746
798
|
export declare type TooltipProps = TooltipProps_2;
|
747
799
|
|
@@ -762,12 +814,26 @@ export declare type TreeProps = TreeProps_2;
|
|
762
814
|
|
763
815
|
declare type TSize = "small" | "medium" | "large";
|
764
816
|
|
817
|
+
export declare enum TypeActionRowTable {
|
818
|
+
DELETE = "DELETE",
|
819
|
+
EDIT = "EDIT",
|
820
|
+
UNDO = "UNDO",
|
821
|
+
CANCELUNDO = "CANCELUNDO",
|
822
|
+
CHECKIN = "CHECKIN",
|
823
|
+
PRINT = "PRINT",
|
824
|
+
PAYMENT = "PAYMENT",
|
825
|
+
PLAY = "PLAY",
|
826
|
+
PAUSE = "PAUSE",
|
827
|
+
DOWNLOAD = "DOWNLOAD",
|
828
|
+
VIEW = "VIEW"
|
829
|
+
}
|
830
|
+
|
765
831
|
export declare const typeColorMap: Record<NonNullable<BadgeProps["type"]>, string>;
|
766
832
|
|
767
833
|
export declare const Typography: {
|
768
|
-
Title: (props: TitleProps) =>
|
769
|
-
Paragraph: (props: ParagraphProps) =>
|
770
|
-
Text: (props: TextProps) =>
|
834
|
+
Title: (props: TitleProps) => JSX.Element;
|
835
|
+
Paragraph: (props: ParagraphProps) => JSX.Element;
|
836
|
+
Text: (props: TextProps) => JSX.Element;
|
771
837
|
};
|
772
838
|
|
773
839
|
export declare interface UploadFieldProps extends Omit<UploadProps, "value" | "onChange" | "fileList"> {
|
@@ -785,13 +851,13 @@ export declare interface UploadFieldProps extends Omit<UploadProps, "value" | "o
|
|
785
851
|
|
786
852
|
export declare const useFiltersHandler: <T>(initialFilters: InitialFiltersSearch<T>) => {
|
787
853
|
filters: InitialFiltersSearch<T>;
|
788
|
-
rowsSelected:
|
789
|
-
setRowsSelected:
|
790
|
-
setFilters:
|
854
|
+
rowsSelected: default_2.Key[];
|
855
|
+
setRowsSelected: default_2.Dispatch<default_2.SetStateAction<default_2.Key[]>>;
|
856
|
+
setFilters: default_2.Dispatch<default_2.SetStateAction<InitialFiltersSearch<T>>>;
|
791
857
|
goToPage: (PageIndex: number) => void;
|
792
858
|
changeRowlimit: (value: number) => void;
|
793
859
|
resetToInitialFilters: () => void;
|
794
|
-
handleCheckBox: (newSelectedRowKeys:
|
860
|
+
handleCheckBox: (newSelectedRowKeys: default_2.Key[]) => void;
|
795
861
|
handleChangePage: (nextPage: number) => void;
|
796
862
|
handleRequestSort: (sortField: string | number | symbol) => void;
|
797
863
|
handleSearch: (nextFilters: InitialFiltersSearch<T>) => void;
|
@@ -799,8 +865,20 @@ export declare const useFiltersHandler: <T>(initialFilters: InitialFiltersSearch
|
|
799
865
|
|
800
866
|
export declare const useMessage: (defaultProps?: OptionalArgsMessage) => (overrideProps?: OptionalArgsMessage) => void;
|
801
867
|
|
802
|
-
export declare const useToast: (defaultProps?: OptionalArgsToast) =>
|
868
|
+
export declare const useToast: (defaultProps?: OptionalArgsToast) => {
|
869
|
+
(overrideProps?: OptionalArgsToast): void;
|
870
|
+
success(props?: OptionalArgsToast): void;
|
871
|
+
error(props?: OptionalArgsToast): void;
|
872
|
+
info(props?: OptionalArgsToast): void;
|
873
|
+
warning(props?: OptionalArgsToast): void;
|
874
|
+
};
|
875
|
+
|
876
|
+
export declare const useToggle: () => {
|
877
|
+
open: boolean;
|
878
|
+
toggle: () => void;
|
879
|
+
shouldRender: boolean;
|
880
|
+
};
|
803
881
|
|
804
|
-
export declare const Watermark: ({ ...rest }: WatermarkProps) =>
|
882
|
+
export declare const Watermark: ({ ...rest }: WatermarkProps) => JSX.Element;
|
805
883
|
|
806
884
|
export { }
|