aq-fe-framework 0.1.883 → 0.1.885
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/MyDataTable-BJn8oc9t.d.mts +53 -0
- package/dist/{chunk-A7USWB7E.mjs → chunk-Q7PTIN2G.mjs} +7291 -7285
- package/dist/components/index.d.mts +7 -2
- package/dist/components/index.mjs +5 -5
- package/dist/core/index.d.mts +6 -29
- package/dist/core/index.mjs +5 -5
- package/dist/modules-features/index.mjs +1 -1
- package/dist/shared/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/MyDataTable-BZc8ObyA.d.mts +0 -25
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ActionIconProps, ButtonProps, ModalProps, TooltipProps } from '@mantine/core';
|
|
3
|
+
import { useDisclosure } from '@mantine/hooks';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
import { t as type_action } from './types-DtncEH_a.mjs';
|
|
6
|
+
import { MRT_RowData, MRT_TableOptions, MRT_ColumnDef } from 'mantine-react-table';
|
|
7
|
+
|
|
8
|
+
interface MyActionIconProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "color" | "style">, ActionIconProps {
|
|
9
|
+
actionType?: type_action;
|
|
10
|
+
isCheckPermission?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare function MyActionIcon({ children, actionType, isCheckPermission, ...rest }: MyActionIconProps): react_jsx_runtime.JSX.Element;
|
|
13
|
+
|
|
14
|
+
interface MyButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "color" | "style">, ButtonProps {
|
|
15
|
+
actionType?: type_action;
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
isCheckPermission?: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare function MyButton({ children, actionType, isCheckPermission, ...rest }: MyButtonProps): react_jsx_runtime.JSX.Element;
|
|
20
|
+
|
|
21
|
+
interface MyButtonModalProps {
|
|
22
|
+
children?: ReactNode;
|
|
23
|
+
disclosure: ReturnType<typeof useDisclosure>;
|
|
24
|
+
buttonProps?: MyButtonProps;
|
|
25
|
+
actionIconProps?: MyActionIconProps;
|
|
26
|
+
modalProps?: Omit<ModalProps, "opened" | "onClose">;
|
|
27
|
+
isActionIcon?: boolean;
|
|
28
|
+
toolTipProps?: Omit<TooltipProps, "children">;
|
|
29
|
+
}
|
|
30
|
+
declare function MyButtonModal({ disclosure, children, buttonProps, actionIconProps, modalProps, isActionIcon, toolTipProps, }: MyButtonModalProps): react_jsx_runtime.JSX.Element;
|
|
31
|
+
|
|
32
|
+
interface MyDataTableInternalProps<TData extends MRT_RowData> extends Omit<MyDataTableProps<TData>, "columns" | "data"> {
|
|
33
|
+
}
|
|
34
|
+
interface PaginationState {
|
|
35
|
+
pageIndex: number;
|
|
36
|
+
pageSize: number;
|
|
37
|
+
}
|
|
38
|
+
interface MyDataTableProps<TData extends MRT_RowData> extends MRT_TableOptions<TData> {
|
|
39
|
+
columns: MRT_ColumnDef<TData>[];
|
|
40
|
+
data: TData[];
|
|
41
|
+
rowActionSize?: number;
|
|
42
|
+
setSelectedRow?: (data: TData[]) => void;
|
|
43
|
+
isError?: boolean;
|
|
44
|
+
isLoading?: boolean;
|
|
45
|
+
exportAble?: boolean;
|
|
46
|
+
pagination?: PaginationState;
|
|
47
|
+
idSelectionOne?: string;
|
|
48
|
+
setIdSelectionOne?: (value: string) => void;
|
|
49
|
+
visibleFields?: (keyof TData)[];
|
|
50
|
+
}
|
|
51
|
+
declare function MyDataTable<TData extends MRT_RowData>({ rowActionSize, columns, data, setSelectedRow, isError, isLoading, pagination, idSelectionOne, setIdSelectionOne, renderTopToolbarCustomActions, visibleFields, ...rest }: MyDataTableProps<TData>): react_jsx_runtime.JSX.Element;
|
|
52
|
+
|
|
53
|
+
export { MyButtonModal as M, type PaginationState as P, type MyDataTableInternalProps as a, type MyDataTableProps as b, MyDataTable as c, type MyActionIconProps as d, type MyButtonProps as e, type MyButtonModalProps as f, MyActionIcon as g, MyButton as h };
|