@acvl/frontend-components 0.0.25 → 0.0.26
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/cjs/index.js +480 -410
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/v1/buttons/CreateButton/CreateButtonWithMenuOptions.d.ts +1 -0
- package/dist/cjs/types/src/components/v1/buttons/DeleteButton/DeleteButton.d.ts +1 -1
- package/dist/cjs/types/src/components/v1/buttons/NormalOrIcon/NormalOrIcon.d.ts +1 -1
- package/dist/cjs/types/src/components/v1/datagrids/columns/deleteColumn.d.ts +1 -1
- package/dist/cjs/types/src/components/v1/datagrids/columns/editColumn.d.ts +1 -1
- package/dist/cjs/types/src/components/v1/datagrids/custom_slots/CustomToolbar/index.d.ts +3 -3
- package/dist/cjs/types/src/components/v1/datagrids/custom_slots/CustomToolbar/slots/ExportButton/ExportCSV.d.ts +1 -1
- package/dist/cjs/types/src/components/v1/datagrids/custom_slots/CustomToolbar/slots/ExportButton/index.d.ts +3 -3
- package/dist/cjs/types/src/components/v1/datagrids/custom_slots/CustomToolbar/slots/FiltersButton/index.d.ts +1 -1
- package/dist/cjs/types/src/components/v1/datagrids/wrappers/CreateGridWrapper.d.ts +1 -0
- package/dist/cjs/types/src/components/v1/datagrids/wrappers/EditGridWrapper.d.ts +2 -2
- package/dist/cjs/types/src/components/v1/drawers/HistorialDrawer/index.d.ts +1 -1
- package/dist/cjs/types/src/components/v1/layout/pages/DetailPage/FieldArrayField/index.d.ts +1 -1
- package/dist/cjs/types/src/components/v1/layout/pages/DetailPage/index.d.ts +2 -2
- package/dist/cjs/types/src/components/v1/layout/shared/Tabs/index.d.ts +1 -1
- package/dist/cjs/types/src/components/v1/lib/slices/snackProgress.d.ts +1 -1
- package/dist/esm/index.js +483 -413
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/v1/buttons/CreateButton/CreateButtonWithMenuOptions.d.ts +1 -0
- package/dist/esm/types/src/components/v1/buttons/DeleteButton/DeleteButton.d.ts +1 -1
- package/dist/esm/types/src/components/v1/buttons/NormalOrIcon/NormalOrIcon.d.ts +1 -1
- package/dist/esm/types/src/components/v1/datagrids/columns/deleteColumn.d.ts +1 -1
- package/dist/esm/types/src/components/v1/datagrids/columns/editColumn.d.ts +1 -1
- package/dist/esm/types/src/components/v1/datagrids/custom_slots/CustomToolbar/index.d.ts +3 -3
- package/dist/esm/types/src/components/v1/datagrids/custom_slots/CustomToolbar/slots/ExportButton/ExportCSV.d.ts +1 -1
- package/dist/esm/types/src/components/v1/datagrids/custom_slots/CustomToolbar/slots/ExportButton/index.d.ts +3 -3
- package/dist/esm/types/src/components/v1/datagrids/custom_slots/CustomToolbar/slots/FiltersButton/index.d.ts +1 -1
- package/dist/esm/types/src/components/v1/datagrids/wrappers/CreateGridWrapper.d.ts +1 -0
- package/dist/esm/types/src/components/v1/datagrids/wrappers/EditGridWrapper.d.ts +2 -2
- package/dist/esm/types/src/components/v1/drawers/HistorialDrawer/index.d.ts +1 -1
- package/dist/esm/types/src/components/v1/layout/pages/DetailPage/FieldArrayField/index.d.ts +1 -1
- package/dist/esm/types/src/components/v1/layout/pages/DetailPage/index.d.ts +2 -2
- package/dist/esm/types/src/components/v1/layout/shared/Tabs/index.d.ts +1 -1
- package/dist/esm/types/src/components/v1/lib/slices/snackProgress.d.ts +1 -1
- package/dist/index.d.ts +14 -12
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DeleteConfirmationDialogProps } from "./DeleteConfirmationDialog";
|
|
2
|
-
type DeleteButtonProps = Omit<DeleteConfirmationDialogProps,
|
|
2
|
+
type DeleteButtonProps = Omit<DeleteConfirmationDialogProps, "open" | "handleClose">;
|
|
3
3
|
declare const DeleteButton: (props: DeleteButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default DeleteButton;
|
|
@@ -2,7 +2,7 @@ import { ButtonProps } from "@mui/material";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
interface NormalOrIconProps {
|
|
4
4
|
buttonProps: ButtonProps;
|
|
5
|
-
type?:
|
|
5
|
+
type?: "button" | "icon";
|
|
6
6
|
}
|
|
7
7
|
declare const NormalOrIcon: React.FC<NormalOrIconProps>;
|
|
8
8
|
export default NormalOrIcon;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GridRowId } from "@mui/x-data-grid";
|
|
2
|
-
import { GridColDefPropsOverrides } from
|
|
2
|
+
import { GridColDefPropsOverrides } from "../types";
|
|
3
3
|
export interface DeleteGridColumnsProps {
|
|
4
4
|
displayDelete?: boolean;
|
|
5
5
|
handleOpen: (id: GridRowId) => () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GridToolbarProps, GridSortModel } from
|
|
1
|
+
import { GridToolbarProps, GridSortModel } from "@mui/x-data-grid";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { SelectedRowsButtonProps } from "./slots/SelectedRowsButton";
|
|
4
4
|
import { FiltersButtonProps } from "./slots/FiltersButton";
|
|
@@ -15,7 +15,7 @@ export interface CustomToolbarProps extends GridToolbarProps, FiltersButtonProps
|
|
|
15
15
|
settings?: {
|
|
16
16
|
hide?: boolean;
|
|
17
17
|
};
|
|
18
|
-
export?: Pick<ExportButtonProps,
|
|
18
|
+
export?: Pick<ExportButtonProps, "extraOptions" | "csvProps"> & {
|
|
19
19
|
hide?: boolean;
|
|
20
20
|
};
|
|
21
21
|
filters?: {
|
|
@@ -27,7 +27,7 @@ export interface CustomToolbarProps extends GridToolbarProps, FiltersButtonProps
|
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
declare module
|
|
30
|
+
declare module "@mui/x-data-grid" {
|
|
31
31
|
interface ToolbarPropsOverrides extends CustomToolbarProps {
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ExportButtonProps } from "./index";
|
|
3
|
-
export interface ExportCSVButtonProps extends Pick<ExportButtonProps,
|
|
3
|
+
export interface ExportCSVButtonProps extends Pick<ExportButtonProps, "filterModel" | "sortModel" | "rowSelectionModel"> {
|
|
4
4
|
handleClick: () => void;
|
|
5
5
|
disabledWithoutSelection?: boolean;
|
|
6
6
|
ignore?: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { GridRowSelectionModel, GridSortModel } from
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { GridRowSelectionModel, GridSortModel } from "@mui/x-data-grid";
|
|
3
3
|
import { FiltersButtonProps } from "../FiltersButton";
|
|
4
4
|
export interface ExportButtonProps {
|
|
5
5
|
extraOptions?: any[];
|
|
@@ -7,7 +7,7 @@ export interface ExportButtonProps {
|
|
|
7
7
|
hide?: boolean;
|
|
8
8
|
endpoint?: string;
|
|
9
9
|
};
|
|
10
|
-
filterModel: FiltersButtonProps[
|
|
10
|
+
filterModel: FiltersButtonProps["filters"]["filterModel"];
|
|
11
11
|
sortModel: GridSortModel;
|
|
12
12
|
rowSelectionModel: GridRowSelectionModel;
|
|
13
13
|
}
|
|
@@ -20,9 +20,9 @@ export interface EditGridAPIProps {
|
|
|
20
20
|
};
|
|
21
21
|
postAction?: (result: any) => void;
|
|
22
22
|
}
|
|
23
|
-
export interface EditGridWrapperProps extends Pick<BaseGridProps,
|
|
23
|
+
export interface EditGridWrapperProps extends Pick<BaseGridProps, "dataGridProps">, EditGridAPIProps {
|
|
24
24
|
permission: boolean;
|
|
25
|
-
renderFunction: (props: Pick<BaseGridProps,
|
|
25
|
+
renderFunction: (props: Pick<BaseGridProps, "dataGridProps">) => JSX.Element;
|
|
26
26
|
renderFunctionProps?: {
|
|
27
27
|
[key: string]: any;
|
|
28
28
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IconButtonProps } from "@mui/material";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { _HistorialDrawerProps } from "./_HistorialDrawer";
|
|
4
|
-
interface HistorialDrawerProps extends Pick<_HistorialDrawerProps,
|
|
4
|
+
interface HistorialDrawerProps extends Pick<_HistorialDrawerProps, "endpoint"> {
|
|
5
5
|
iconButtonProps?: IconButtonProps;
|
|
6
6
|
}
|
|
7
7
|
declare const HistorialDrawer: React.FC<HistorialDrawerProps>;
|
|
@@ -2,7 +2,7 @@ import { DataGridProps } from "@mui/x-data-grid";
|
|
|
2
2
|
import { GridProps } from "@mui/material";
|
|
3
3
|
import { FieldProps } from "../Field";
|
|
4
4
|
import { PageType } from "../../../../types";
|
|
5
|
-
declare module
|
|
5
|
+
declare module "@mui/x-data-grid" {
|
|
6
6
|
interface ToolbarPropsOverrides {
|
|
7
7
|
selected: number;
|
|
8
8
|
handleCreate: () => void;
|
|
@@ -15,7 +15,7 @@ export interface DetailPageProps {
|
|
|
15
15
|
parser?: any;
|
|
16
16
|
button?: {
|
|
17
17
|
save?: {
|
|
18
|
-
type:
|
|
18
|
+
type: "onClick";
|
|
19
19
|
disableNavBack?: boolean;
|
|
20
20
|
onClick?: () => void;
|
|
21
21
|
};
|
|
@@ -39,7 +39,7 @@ export interface DetailPageProps {
|
|
|
39
39
|
mutation: any;
|
|
40
40
|
args?: any;
|
|
41
41
|
postAction?: {
|
|
42
|
-
after:
|
|
42
|
+
after: "create" | "edit" | "both";
|
|
43
43
|
type: string;
|
|
44
44
|
node: ReactNode;
|
|
45
45
|
};
|