@acvl/frontend-components 0.0.8 → 0.0.10
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 +14 -11
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/v1/datagrids/custom_slots/CustomToolbar/slots/SelectedRowsButton.d.ts +1 -0
- package/dist/cjs/types/src/components/v1/datagrids/index.d.ts +2 -1
- package/dist/esm/index.js +14 -11
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/v1/datagrids/custom_slots/CustomToolbar/slots/SelectedRowsButton.d.ts +1 -0
- package/dist/esm/types/src/components/v1/datagrids/index.d.ts +2 -1
- package/dist/index.d.ts +72 -2
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
interface ExtraActions {
|
|
4
4
|
label: string;
|
|
5
5
|
onClick: (rowSelectionModel: GridRowSelectionModel) => void;
|
|
6
|
+
validation?: (rowSelectionModel: GridRowSelectionModel) => boolean;
|
|
6
7
|
}
|
|
7
8
|
export interface SelectedRowsButtonProps {
|
|
8
9
|
selection: GridRowSelectionModel;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as Base } from './Base';
|
|
2
2
|
export * from './cells';
|
|
3
3
|
export * from './columns';
|
|
4
|
-
export { GridColDefPropsOverrides } from './types';
|
|
4
|
+
export { GridColDefPropsOverrides, GridArgs, MyDataGridProps, MyGridFilterModel } from './types';
|
|
5
|
+
export { CustomToolbarProps } from './custom_slots/CustomToolbar';
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ButtonProps, ButtonGroupProps, AlertProps, AutocompleteProps, SliderPro
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default, { ReactNode, Dispatch, SetStateAction, JSX, RefObject } from 'react';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
-
import { GridRowId, GridRowSelectionModel, GridRowModesModel, GridRenderEditCellParams, DataGridProps as DataGridProps$1 } from '@mui/x-data-grid';
|
|
6
|
+
import { GridRowId, GridRowSelectionModel, GridSortModel, GridFilterModel, GridRowModesModel, GridRenderEditCellParams, GridToolbarProps, DataGridProps as DataGridProps$1 } from '@mui/x-data-grid';
|
|
7
7
|
import { DataGridProps, GridBaseColDef } from '@mui/x-data-grid/internals';
|
|
8
8
|
import * as zod_v4_core from 'zod/v4/core';
|
|
9
9
|
import * as zod from 'zod';
|
|
@@ -113,6 +113,13 @@ interface ComoOpcionesProps {
|
|
|
113
113
|
variation?: string;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
+
interface GridArgs {
|
|
117
|
+
page?: number;
|
|
118
|
+
pageSize?: number;
|
|
119
|
+
sortModel: GridSortModel;
|
|
120
|
+
filterModel: GridFilterModel;
|
|
121
|
+
ignoreSort?: boolean;
|
|
122
|
+
}
|
|
116
123
|
interface GridColDefPropsOverrides extends GridBaseColDef {
|
|
117
124
|
extra?: {
|
|
118
125
|
queryArgs?: ComoOpcionesProps;
|
|
@@ -265,6 +272,69 @@ declare function renderEditCellWithErrorTooltip(params: GridRenderEditCellParams
|
|
|
265
272
|
|
|
266
273
|
declare const MyGridEditSingleSelect: React__default.FC<GridRenderEditCellParams>;
|
|
267
274
|
|
|
275
|
+
interface ExtraActions {
|
|
276
|
+
label: string;
|
|
277
|
+
onClick: (rowSelectionModel: GridRowSelectionModel) => void;
|
|
278
|
+
validation?: (rowSelectionModel: GridRowSelectionModel) => boolean;
|
|
279
|
+
}
|
|
280
|
+
interface SelectedRowsButtonProps {
|
|
281
|
+
selection: GridRowSelectionModel;
|
|
282
|
+
extraActions?: ExtraActions[];
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
interface FiltersButtonProps {
|
|
286
|
+
filters: {
|
|
287
|
+
filterModel: MyGridFilterModel;
|
|
288
|
+
setFilterModel: (filterModel: any) => void;
|
|
289
|
+
setQuickSearchValue: (quickSearch: string) => void;
|
|
290
|
+
};
|
|
291
|
+
protectFilters?: string[];
|
|
292
|
+
columnsFilter?: string;
|
|
293
|
+
useLabel?: boolean;
|
|
294
|
+
disableQuickSearch?: boolean;
|
|
295
|
+
tab?: string;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
interface ExportButtonProps {
|
|
299
|
+
extraOptions?: any[];
|
|
300
|
+
csvProps?: {
|
|
301
|
+
hide?: boolean;
|
|
302
|
+
endpoint?: string;
|
|
303
|
+
};
|
|
304
|
+
filterModel: FiltersButtonProps['filters']['filterModel'];
|
|
305
|
+
sortModel: GridSortModel;
|
|
306
|
+
rowSelectionModel: GridRowSelectionModel;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
interface CustomToolbarProps extends GridToolbarProps, FiltersButtonProps, SelectedRowsButtonProps {
|
|
310
|
+
extraButtons?: {
|
|
311
|
+
label: string;
|
|
312
|
+
icon: any;
|
|
313
|
+
onClick: () => void;
|
|
314
|
+
buttonProps?: any;
|
|
315
|
+
}[];
|
|
316
|
+
sortModel: GridSortModel;
|
|
317
|
+
buttons: {
|
|
318
|
+
settings?: {
|
|
319
|
+
hide?: boolean;
|
|
320
|
+
};
|
|
321
|
+
export?: Pick<ExportButtonProps, 'extraOptions' | 'csvProps'> & {
|
|
322
|
+
hide?: boolean;
|
|
323
|
+
};
|
|
324
|
+
filters?: {
|
|
325
|
+
hide?: boolean;
|
|
326
|
+
};
|
|
327
|
+
refresh?: {
|
|
328
|
+
hide?: boolean;
|
|
329
|
+
refetch: () => void;
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
declare module '@mui/x-data-grid' {
|
|
334
|
+
interface ToolbarPropsOverrides extends CustomToolbarProps {
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
|
|
268
338
|
interface BaseControlledFieldProps {
|
|
269
339
|
name: string;
|
|
270
340
|
label?: string;
|
|
@@ -757,4 +827,4 @@ declare module '@mui/material/styles' {
|
|
|
757
827
|
declare const theme: () => _mui_material.Theme;
|
|
758
828
|
|
|
759
829
|
export { APIContext, APIProvider, ActiveCell, Base, ButtonWithDrawer, CSVUpload, ContentLayout, ControlledDate, ControlledDropdown, FileUploadBox as ControlledFileUploadBox, ControlledNumber, ControlledPhoneNumber, ControlledSelect, ControlledSlider, ControlledSwitch, ControlledText, ControlledTimePicker, 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 };
|
|
760
|
-
export type { APIcontextProps, ComoOpcionesProps, DeleteGridColumnsProps, EditGridColumnsProps, GridColDefPropsOverrides, JSONFormProps, JSONParserProps, MyTab, MyTabProps, PageType };
|
|
830
|
+
export type { APIcontextProps, ComoOpcionesProps, CustomToolbarProps, DeleteGridColumnsProps, EditGridColumnsProps, GridArgs, GridColDefPropsOverrides, JSONFormProps, JSONParserProps, MyDataGridProps, MyGridFilterModel, MyTab, MyTabProps, PageType };
|
package/package.json
CHANGED