@acvl/frontend-components 0.0.9 → 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 +8 -4
- 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 +1 -0
- package/dist/esm/index.js +8 -4
- 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 +1 -0
- package/dist/index.d.ts +65 -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;
|
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, GridSortModel, GridFilterModel, 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';
|
|
@@ -272,6 +272,69 @@ declare function renderEditCellWithErrorTooltip(params: GridRenderEditCellParams
|
|
|
272
272
|
|
|
273
273
|
declare const MyGridEditSingleSelect: React__default.FC<GridRenderEditCellParams>;
|
|
274
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
|
+
|
|
275
338
|
interface BaseControlledFieldProps {
|
|
276
339
|
name: string;
|
|
277
340
|
label?: string;
|
|
@@ -764,4 +827,4 @@ declare module '@mui/material/styles' {
|
|
|
764
827
|
declare const theme: () => _mui_material.Theme;
|
|
765
828
|
|
|
766
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 };
|
|
767
|
-
export type { APIcontextProps, ComoOpcionesProps, DeleteGridColumnsProps, EditGridColumnsProps, GridArgs, GridColDefPropsOverrides, JSONFormProps, JSONParserProps, MyDataGridProps, MyGridFilterModel, MyTab, MyTabProps, PageType };
|
|
830
|
+
export type { APIcontextProps, ComoOpcionesProps, CustomToolbarProps, DeleteGridColumnsProps, EditGridColumnsProps, GridArgs, GridColDefPropsOverrides, JSONFormProps, JSONParserProps, MyDataGridProps, MyGridFilterModel, MyTab, MyTabProps, PageType };
|
package/package.json
CHANGED