@acvl/frontend-components 0.0.3 → 0.0.6
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 +18 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/v1/datagrids/columns/index.d.ts +2 -2
- package/dist/cjs/types/src/components/v1/datagrids/index.d.ts +1 -0
- package/dist/cjs/types/src/components/v1/datagrids/wrappers/EditGridWrapper.d.ts +4 -1
- package/dist/cjs/types/src/components/v1/index.d.ts +1 -0
- package/dist/cjs/types/src/components/v1/lib/hooks/navigation.d.ts +4 -1
- package/dist/esm/index.js +18 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/v1/datagrids/columns/index.d.ts +2 -2
- package/dist/esm/types/src/components/v1/datagrids/index.d.ts +1 -0
- package/dist/esm/types/src/components/v1/datagrids/wrappers/EditGridWrapper.d.ts +4 -1
- package/dist/esm/types/src/components/v1/index.d.ts +1 -0
- package/dist/esm/types/src/components/v1/lib/hooks/navigation.d.ts +4 -1
- package/dist/index.d.ts +14 -8
- package/package.json +6 -5
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as editColumn } from './editColumn';
|
|
2
|
-
export { default as deleteColumn } from './deleteColumn';
|
|
1
|
+
export { default as editColumn, EditGridColumnsProps } from './editColumn';
|
|
2
|
+
export { default as deleteColumn, DeleteGridColumnsProps } from './deleteColumn';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSX } from "react";
|
|
2
2
|
import { GridColDefPropsOverrides } from "../types";
|
|
3
3
|
import { BaseGridProps } from "../Base";
|
|
4
|
-
import { EditGridColumnsProps } from "../columns
|
|
4
|
+
import { EditGridColumnsProps } from "../columns";
|
|
5
5
|
export interface EditGridAPIProps {
|
|
6
6
|
mutation: any;
|
|
7
7
|
disabled?: boolean;
|
|
@@ -13,6 +13,8 @@ export interface EditGridAPIProps {
|
|
|
13
13
|
[key: string]: {
|
|
14
14
|
ignore?: boolean;
|
|
15
15
|
format?: string;
|
|
16
|
+
extra_validation?: (value: string) => boolean;
|
|
17
|
+
alter_key?: (key: string) => string;
|
|
16
18
|
};
|
|
17
19
|
};
|
|
18
20
|
dnd?: {
|
|
@@ -21,6 +23,7 @@ export interface EditGridAPIProps {
|
|
|
21
23
|
[key: string]: any;
|
|
22
24
|
};
|
|
23
25
|
};
|
|
26
|
+
postAction?: (result: any) => void;
|
|
24
27
|
}
|
|
25
28
|
export interface EditGridWrapperProps extends Pick<BaseGridProps, 'dataGridProps'>, EditGridAPIProps {
|
|
26
29
|
permission: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -152,6 +152,12 @@ interface EditGridColumnsProps {
|
|
|
152
152
|
}
|
|
153
153
|
declare const editColumn: (props?: EditGridColumnsProps) => GridColDefPropsOverrides[];
|
|
154
154
|
|
|
155
|
+
interface DeleteGridColumnsProps {
|
|
156
|
+
displayDelete?: boolean;
|
|
157
|
+
handleOpen: (id: GridRowId) => () => void;
|
|
158
|
+
}
|
|
159
|
+
declare const deleteColumn: (props: DeleteGridColumnsProps) => GridColDefPropsOverrides[];
|
|
160
|
+
|
|
155
161
|
interface EditGridAPIProps {
|
|
156
162
|
mutation: any;
|
|
157
163
|
disabled?: boolean;
|
|
@@ -163,6 +169,8 @@ interface EditGridAPIProps {
|
|
|
163
169
|
[key: string]: {
|
|
164
170
|
ignore?: boolean;
|
|
165
171
|
format?: string;
|
|
172
|
+
extra_validation?: (value: string) => boolean;
|
|
173
|
+
alter_key?: (key: string) => string;
|
|
166
174
|
};
|
|
167
175
|
};
|
|
168
176
|
dnd?: {
|
|
@@ -171,6 +179,7 @@ interface EditGridAPIProps {
|
|
|
171
179
|
[key: string]: any;
|
|
172
180
|
};
|
|
173
181
|
};
|
|
182
|
+
postAction?: (result: any) => void;
|
|
174
183
|
}
|
|
175
184
|
|
|
176
185
|
interface DeleteGridWrapperProps {
|
|
@@ -231,12 +240,6 @@ declare function renderEditCellWithErrorTooltip(params: GridRenderEditCellParams
|
|
|
231
240
|
|
|
232
241
|
declare const MyGridEditSingleSelect: React__default.FC<GridRenderEditCellParams>;
|
|
233
242
|
|
|
234
|
-
interface DeleteGridColumnsProps {
|
|
235
|
-
displayDelete?: boolean;
|
|
236
|
-
handleOpen: (id: GridRowId) => () => void;
|
|
237
|
-
}
|
|
238
|
-
declare const deleteColumn: (props: DeleteGridColumnsProps) => GridColDefPropsOverrides[];
|
|
239
|
-
|
|
240
243
|
interface JSONParserProps {
|
|
241
244
|
[key: string]: {
|
|
242
245
|
ignore?: boolean;
|
|
@@ -614,7 +617,10 @@ declare const APIProvider: ({ children, hooks }: {
|
|
|
614
617
|
|
|
615
618
|
declare const useAPI: () => APIcontextProps;
|
|
616
619
|
|
|
617
|
-
declare const useNavigation: () =>
|
|
620
|
+
declare const useNavigation: () => {
|
|
621
|
+
push: any;
|
|
622
|
+
back: any;
|
|
623
|
+
};
|
|
618
624
|
|
|
619
625
|
interface NavigationContextProps {
|
|
620
626
|
children: ReactNode;
|
|
@@ -746,4 +752,4 @@ declare module '@mui/material/styles' {
|
|
|
746
752
|
declare const theme: () => _mui_material.Theme;
|
|
747
753
|
|
|
748
754
|
export { APIContext, APIProvider, ActiveCell, Base, ButtonWithDrawer, CSVUpload, ContentLayout, ControlledDate, ControlledDropdown, FileUploadBox as ControlledFileUploadBox, ControlledNumber, ControlledPhoneNumber, ControlledSelect, ControlledSlider, ControlledSwitch, ControlledText, ControlledToggleButtons, CoverPage, CreateButtonBase, CreateButtonWithMenuOptions, DeleteButton, DeleteConfirmationDialog, DetailPage, EditButton, HistorialDrawer, ListPage, Loadable, LoadingComponent, Logo, MainDrawer, MenuItemWithLoading, ModuleCard, MyGridEditSingleSelect, NavigationContext, NavigationProvider, NormalOrIcon, NotAllowed, NotFound, ObjectProgressStack, SaveCancelButton, StatusBadge, StyledMenu, Tabs, Transitions, UncontrolledText, changeTitle, closeProgressSnack, deleteColumn, editColumn, filterQuery, formDataForm, _default as headerReducer, jsonForm, manualCacheRefresh, mergeSettings, openProgressSnack, query, renderEditCellWithErrorTooltip, setErrors, _default$1 as snackProgressReducer, tags, theme, updateProgressSnackData, useAPI, useHasPermission, useNavigation, valueLabel };
|
|
749
|
-
export type { APIcontextProps, JSONFormProps, JSONParserProps, MyTab, MyTabProps };
|
|
755
|
+
export type { APIcontextProps, ComoOpcionesProps, DeleteGridColumnsProps, EditGridColumnsProps, GridColDefPropsOverrides, JSONFormProps, JSONParserProps, MyTab, MyTabProps, PageType };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acvl/frontend-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "Component library for ACV frontend projects.",
|
|
5
5
|
"homepage": "https://github.com/ACV-Logistics/acv-frontend-components#readme",
|
|
6
6
|
"access": "public",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@rollup/plugin-terser": "^1.0.0",
|
|
35
35
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
36
36
|
"@types/lodash": "^4.17.24",
|
|
37
|
-
"@types/node": "^25.
|
|
37
|
+
"@types/node": "^25.6.0",
|
|
38
38
|
"@types/react": "^19.2.14",
|
|
39
39
|
"@types/rollup-plugin-peer-deps-external": "^2.2.6",
|
|
40
40
|
"postcss": "^8.5.8",
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
47
47
|
"rollup-plugin-postcss": "^4.0.2",
|
|
48
48
|
"rollup-plugin-preserve-directives": "^0.4.0",
|
|
49
|
+
"rollup-plugin-preserve-use-client": "^3.0.1",
|
|
49
50
|
"rollup-plugin-typescript2": "^0.37.0",
|
|
50
51
|
"tslib": "^2.8.1",
|
|
51
52
|
"typescript": "^5.9.3"
|
|
@@ -55,7 +56,7 @@
|
|
|
55
56
|
"@dnd-kit/sortable": "^10.0.0",
|
|
56
57
|
"@dnd-kit/utilities": "^3.2.2",
|
|
57
58
|
"@emotion/react": "^11.14.0",
|
|
58
|
-
"@emotion/styled": "^11.14.
|
|
59
|
+
"@emotion/styled": "^11.14.0",
|
|
59
60
|
"@hookform/resolvers": "^5.2.2",
|
|
60
61
|
"@mui/icons-material": "^7.3.9",
|
|
61
62
|
"@mui/lab": "^7.0.1-beta.23",
|
|
@@ -74,9 +75,9 @@
|
|
|
74
75
|
"react-hook-form": "^7.72.1",
|
|
75
76
|
"react-number-format": "^5.4.5",
|
|
76
77
|
"react-redux": "^9.2.0",
|
|
78
|
+
"react-router-dom": "^7.14.1",
|
|
77
79
|
"styled-components": "^6.3.12",
|
|
78
|
-
"zod": "^4.3.6"
|
|
79
|
-
"react-router-dom": "^7.14.1"
|
|
80
|
+
"zod": "^4.3.6"
|
|
80
81
|
},
|
|
81
82
|
"babel": {
|
|
82
83
|
"sourceType": "unambiguous",
|