@pnkx-lib/ui 1.9.83 → 1.9.85
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/es/chunks/{AntdIcon-bLE_HmL-.js → AntdIcon-OdNt_XE3.js} +1254 -1
- package/es/chunks/{Switch-Dbw7Aemy.js → Switch-BpQVmWXF.js} +1 -1
- package/es/chunks/{index-Bp_HTq2H.js → index-BmfEnmGs.js} +102 -19
- package/es/chunks/useMessage-CADDGtSx.js +15 -0
- package/es/chunks/useToast-DL7nQTK1.js +22 -0
- 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 +2 -3
- package/package.json +1 -1
- package/types/fields.d.ts +7 -4
- package/types/hooks.d.ts +5 -33
- package/types/index.d.ts +68 -67
- package/types/ui.d.ts +55 -30
- package/es/chunks/_MapCache-hm6_DB7i.js +0 -1255
- package/es/chunks/table-CrhlYiL4.js +0 -2448
- package/es/chunks/useMessage-B2e_06XS.js +0 -93
package/types/ui.d.ts
CHANGED
@@ -38,10 +38,10 @@ import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
38
38
|
import { MenuDividerProps } from 'antd/es/menu';
|
39
39
|
import { MenuItemGroupProps } from 'rc-menu/lib/MenuItemGroup';
|
40
40
|
import { MenuItemProps as MenuItemProps_2 } from 'antd/es/menu';
|
41
|
-
import { MenuProps as
|
41
|
+
import { MenuProps as MenuProps_3 } from 'antd/es/menu';
|
42
42
|
import { ModalProps as ModalProps_2 } from 'antd';
|
43
43
|
import { Pagination as Pagination_2 } from 'antd';
|
44
|
-
import { PaginationFilters } from '../../../../../../../../../../src/
|
44
|
+
import { PaginationFilters } from '../../../../../../../../../../src/interface/common';
|
45
45
|
import { PaginationLocale } from 'rc-pagination';
|
46
46
|
import { PaginationProps as PaginationProps_2 } from 'antd';
|
47
47
|
import { ParagraphProps } from 'antd/es/typography/Paragraph';
|
@@ -82,7 +82,6 @@ import { UseFormReset } from 'react-hook-form';
|
|
82
82
|
import { UseFormReturn } from 'react-hook-form';
|
83
83
|
import { UseFormSetValue } from 'react-hook-form';
|
84
84
|
import { WatermarkProps } from 'antd';
|
85
|
-
import * as yup from 'yup';
|
86
85
|
|
87
86
|
export declare const ActionRowTable: ({ type, contentTooltip, handleClick, }: ActionRowTableProps) => JSX_2.Element;
|
88
87
|
|
@@ -334,6 +333,12 @@ export declare type FlexProps = FlexProps_2;
|
|
334
333
|
|
335
334
|
export declare type FlexPropsUnion = BaseProps_7 & FlexProps;
|
336
335
|
|
336
|
+
declare interface GroupHeadingButtonItem {
|
337
|
+
label: string;
|
338
|
+
value: number;
|
339
|
+
keyActive: number;
|
340
|
+
}
|
341
|
+
|
337
342
|
export declare const Heading: (props: HeadingProps) => JSX_2.Element;
|
338
343
|
|
339
344
|
export declare interface HeadingProps {
|
@@ -372,13 +377,47 @@ export declare type LayoutProps = BaseProps_8 & BasicProps;
|
|
372
377
|
|
373
378
|
export declare const Menu: CompoundedMenu;
|
374
379
|
|
375
|
-
export declare type MenuComponentProps = ExtraProps &
|
380
|
+
export declare type MenuComponentProps = ExtraProps & MenuProps_2;
|
376
381
|
|
377
382
|
declare const MenuItem: FC<MenuItemProps>;
|
378
383
|
|
379
384
|
export declare type MenuItemProps = MenuItemProps_2;
|
380
385
|
|
381
|
-
export declare type MenuProps =
|
386
|
+
export declare type MenuProps = {
|
387
|
+
name: string;
|
388
|
+
href: string;
|
389
|
+
icon: default_2.ReactNode;
|
390
|
+
current: boolean;
|
391
|
+
subMenu?: Array<{
|
392
|
+
name: string;
|
393
|
+
href: string;
|
394
|
+
icon: default_2.ReactNode;
|
395
|
+
children?: Array<{
|
396
|
+
name: string;
|
397
|
+
href: string;
|
398
|
+
icon?: default_2.ReactNode;
|
399
|
+
}>;
|
400
|
+
}>;
|
401
|
+
};
|
402
|
+
|
403
|
+
declare type MenuProps_2 = MenuProps_3;
|
404
|
+
|
405
|
+
declare type MenuProps_4 = {
|
406
|
+
name: string;
|
407
|
+
href: string;
|
408
|
+
icon: React.ReactNode;
|
409
|
+
current: boolean;
|
410
|
+
subMenu?: Array<{
|
411
|
+
name: string;
|
412
|
+
href: string;
|
413
|
+
icon: React.ReactNode;
|
414
|
+
children?: Array<{
|
415
|
+
name: string;
|
416
|
+
href: string;
|
417
|
+
icon?: React.ReactNode;
|
418
|
+
}>;
|
419
|
+
}>;
|
420
|
+
};
|
382
421
|
|
383
422
|
export declare const Modal: ({ children, ...rest }: ModalProps) => JSX_2.Element;
|
384
423
|
|
@@ -390,9 +429,9 @@ declare type MultipleCascaderProps = CascaderProps<DefaultOptionType, string, tr
|
|
390
429
|
multiple: true;
|
391
430
|
};
|
392
431
|
|
393
|
-
export declare const
|
432
|
+
export declare const PAGE_NUMBER = "page_number";
|
394
433
|
|
395
|
-
export declare const PAGE_SIZE = "
|
434
|
+
export declare const PAGE_SIZE = "page_size";
|
396
435
|
|
397
436
|
export declare const Pagination: typeof Pagination_2;
|
398
437
|
|
@@ -474,17 +513,7 @@ export declare const Sidebar: ({ children, menu }: SidebarProps) => JSX_2.Elemen
|
|
474
513
|
|
475
514
|
export declare interface SidebarProps {
|
476
515
|
children?: React.ReactNode;
|
477
|
-
menu: Array<
|
478
|
-
name: string;
|
479
|
-
href: string;
|
480
|
-
icon: React.ReactNode;
|
481
|
-
current: boolean;
|
482
|
-
children?: Array<{
|
483
|
-
name: string;
|
484
|
-
href: string;
|
485
|
-
icon?: React.ReactNode;
|
486
|
-
}>;
|
487
|
-
}>;
|
516
|
+
menu: Array<MenuProps_4>;
|
488
517
|
}
|
489
518
|
|
490
519
|
declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
|
@@ -541,19 +570,17 @@ declare type TabItem = {
|
|
541
570
|
disabled?: boolean;
|
542
571
|
};
|
543
572
|
|
544
|
-
export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey,
|
573
|
+
export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, titleSettingTableModal, showSetting, setColumns, renderHeadingSearch, rightHeadingContent, menu, groupHeadingButtonItems, handleClickGroupHeadingButtonItem, showIndexColumn, ...rest }: TableCommonProps<T>) => JSX_2.Element;
|
545
574
|
|
546
575
|
export declare type TableColumnsType<T> = TableColumnsType_2<T> & TableColumnsTypeEditable<T>;
|
547
576
|
|
548
|
-
export declare type TableColumnsTypeEditable<T> = (ColumnTypes<T>[number] & {
|
549
|
-
editable?: boolean;
|
550
|
-
})[];
|
577
|
+
export declare type TableColumnsTypeEditable<T> = (ColumnTypes<T>[number] & {})[];
|
551
578
|
|
552
579
|
export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "columns"> {
|
553
|
-
dataSource
|
580
|
+
dataSource?: T[];
|
554
581
|
columns: TableColumnsType<T>;
|
555
582
|
loading?: boolean;
|
556
|
-
totalItems
|
583
|
+
totalItems?: number;
|
557
584
|
filters: PaginationFilters & {
|
558
585
|
status?: number;
|
559
586
|
};
|
@@ -564,17 +591,15 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
564
591
|
onSelect: (newSelectedRowKeys: default_2.Key[]) => void;
|
565
592
|
onRowClick?: (record: T) => void;
|
566
593
|
rowKey?: string | ((record: T) => string);
|
567
|
-
className?: string;
|
568
|
-
editable?: boolean;
|
569
|
-
onSave?: (data: T) => void;
|
570
594
|
titleSettingTableModal?: string;
|
571
595
|
showSetting?: boolean;
|
572
596
|
setColumns?: (newColumns: TableColumnsType<T>) => void;
|
573
597
|
renderHeadingSearch: () => ReactNode;
|
574
598
|
rightHeadingContent: ReactNode;
|
575
|
-
|
576
|
-
|
577
|
-
|
599
|
+
menu: Array<MenuProps>;
|
600
|
+
groupHeadingButtonItems: GroupHeadingButtonItem[];
|
601
|
+
handleClickGroupHeadingButtonItem?: (value?: GroupHeadingButtonItem, e?: default_2.MouseEvent<HTMLElement, MouseEvent>) => void;
|
602
|
+
showIndexColumn?: boolean;
|
578
603
|
}
|
579
604
|
|
580
605
|
export declare const Tabs: default_2.FC<TabsProps>;
|