@acvl/frontend-components 0.0.64 → 0.0.66
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 +1 -2
- package/dist/esm/index.js +1 -2
- package/dist/index.d.ts +737 -37
- package/package.json +6 -4
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/types/node_modules/@reduxjs/toolkit/dist/uncheckedindexed.d.ts +0 -5
- package/dist/cjs/types/rollup.config.d.ts +0 -3
- package/dist/cjs/types/src/components/index.d.ts +0 -2
- package/dist/cjs/types/src/components/v1/badges/StatusBadge/StatusBadge.d.ts +0 -11
- package/dist/cjs/types/src/components/v1/badges/StatusBadge/index.d.ts +0 -1
- package/dist/cjs/types/src/components/v1/badges/index.d.ts +0 -1
- package/dist/cjs/types/src/components/v1/buttons/ButtonWithDrawer/index.d.ts +0 -24
- package/dist/cjs/types/src/components/v1/buttons/CreateButton/CreateButtonBase.d.ts +0 -9
- package/dist/cjs/types/src/components/v1/buttons/CreateButton/CreateButtonWithMenuOptions.d.ts +0 -18
- package/dist/cjs/types/src/components/v1/buttons/CreateButton/index.d.ts +0 -2
- package/dist/cjs/types/src/components/v1/buttons/DeleteButton/DeleteButton.d.ts +0 -4
- package/dist/cjs/types/src/components/v1/buttons/DeleteButton/DeleteConfirmationDialog.d.ts +0 -12
- package/dist/cjs/types/src/components/v1/buttons/DeleteButton/index.d.ts +0 -2
- package/dist/cjs/types/src/components/v1/buttons/EditButton/EditButton.d.ts +0 -2
- package/dist/cjs/types/src/components/v1/buttons/EditButton/index.d.ts +0 -1
- package/dist/cjs/types/src/components/v1/buttons/ExtraButtons/index.d.ts +0 -11
- package/dist/cjs/types/src/components/v1/buttons/MoreOptions/index.d.ts +0 -10
- package/dist/cjs/types/src/components/v1/buttons/NormalOrIcon/NormalOrIcon.d.ts +0 -8
- package/dist/cjs/types/src/components/v1/buttons/NormalOrIcon/index.d.ts +0 -1
- package/dist/cjs/types/src/components/v1/buttons/SaveCancelButton/SaveCancelButton.d.ts +0 -10
- package/dist/cjs/types/src/components/v1/buttons/SaveCancelButton/index.d.ts +0 -1
- package/dist/cjs/types/src/components/v1/buttons/index.d.ts +0 -8
- package/dist/cjs/types/src/components/v1/cards/ModuleCard/ModuleCard.d.ts +0 -9
- package/dist/cjs/types/src/components/v1/cards/ModuleCard/index.d.ts +0 -1
- package/dist/cjs/types/src/components/v1/cards/index.d.ts +0 -1
- package/dist/cjs/types/src/components/v1/datagrids/Base/index.d.ts +0 -32
- package/dist/cjs/types/src/components/v1/datagrids/cells/ActiveCell.d.ts +0 -6
- package/dist/cjs/types/src/components/v1/datagrids/cells/EditCellWithErrorTooltip.d.ts +0 -4
- package/dist/cjs/types/src/components/v1/datagrids/cells/MyGridEditSingleSelect.d.ts +0 -4
- package/dist/cjs/types/src/components/v1/datagrids/cells/index.d.ts +0 -3
- package/dist/cjs/types/src/components/v1/datagrids/cells/renderEditCellWithErrorTooltip.d.ts +0 -2
- package/dist/cjs/types/src/components/v1/datagrids/columns/deleteColumn.d.ts +0 -8
- package/dist/cjs/types/src/components/v1/datagrids/columns/editColumn.d.ts +0 -14
- package/dist/cjs/types/src/components/v1/datagrids/columns/index.d.ts +0 -2
- package/dist/cjs/types/src/components/v1/datagrids/custom_slots/CustomNoRows/index.d.ts +0 -2
- package/dist/cjs/types/src/components/v1/datagrids/custom_slots/CustomPagination/index.d.ts +0 -1
- package/dist/cjs/types/src/components/v1/datagrids/custom_slots/CustomToolbar/index.d.ts +0 -35
- package/dist/cjs/types/src/components/v1/datagrids/custom_slots/CustomToolbar/slots/ColumnsButton.d.ts +0 -2
- package/dist/cjs/types/src/components/v1/datagrids/custom_slots/CustomToolbar/slots/ExportButton/ExportCSV.d.ts +0 -18
- package/dist/cjs/types/src/components/v1/datagrids/custom_slots/CustomToolbar/slots/ExportButton/index.d.ts +0 -15
- package/dist/cjs/types/src/components/v1/datagrids/custom_slots/CustomToolbar/slots/FiltersButton/FiltersPopper.d.ts +0 -9
- package/dist/cjs/types/src/components/v1/datagrids/custom_slots/CustomToolbar/slots/FiltersButton/index.d.ts +0 -16
- package/dist/cjs/types/src/components/v1/datagrids/custom_slots/CustomToolbar/slots/FiltersButton/utils.d.ts +0 -2
- package/dist/cjs/types/src/components/v1/datagrids/custom_slots/CustomToolbar/slots/QuickSearch.d.ts +0 -8
- package/dist/cjs/types/src/components/v1/datagrids/custom_slots/CustomToolbar/slots/RefreshButton.d.ts +0 -6
- package/dist/cjs/types/src/components/v1/datagrids/custom_slots/CustomToolbar/slots/SelectedRowsButton.d.ts +0 -13
- package/dist/cjs/types/src/components/v1/datagrids/custom_slots/index.d.ts +0 -2
- package/dist/cjs/types/src/components/v1/datagrids/filter_inputs/TrueFalse.d.ts +0 -4
- package/dist/cjs/types/src/components/v1/datagrids/filter_inputs/index.d.ts +0 -1
- package/dist/cjs/types/src/components/v1/datagrids/index.d.ts +0 -6
- package/dist/cjs/types/src/components/v1/datagrids/rows/DraggableRow.d.ts +0 -3
- package/dist/cjs/types/src/components/v1/datagrids/types.d.ts +0 -37
- package/dist/cjs/types/src/components/v1/datagrids/utils.d.ts +0 -5
- package/dist/cjs/types/src/components/v1/datagrids/wrappers/CreateGridWrapper.d.ts +0 -36
- package/dist/cjs/types/src/components/v1/datagrids/wrappers/DeleteGridWrapper.d.ts +0 -13
- package/dist/cjs/types/src/components/v1/datagrids/wrappers/EditGridWrapper.d.ts +0 -32
- package/dist/cjs/types/src/components/v1/datagrids/wrappers/index.d.ts +0 -3
- package/dist/cjs/types/src/components/v1/drawers/HistorialDrawer/_HistorialDrawer.d.ts +0 -8
- package/dist/cjs/types/src/components/v1/drawers/HistorialDrawer/index.d.ts +0 -8
- package/dist/cjs/types/src/components/v1/drawers/MainDrawer/index.d.ts +0 -15
- package/dist/cjs/types/src/components/v1/drawers/index.d.ts +0 -2
- package/dist/cjs/types/src/components/v1/forms/CSVUpload/index.d.ts +0 -10
- package/dist/cjs/types/src/components/v1/forms/index.d.ts +0 -3
- package/dist/cjs/types/src/components/v1/forms/schemas.d.ts +0 -5
- package/dist/cjs/types/src/components/v1/forms/utils.d.ts +0 -19
- package/dist/cjs/types/src/components/v1/icons/ActiveIcon.d.ts +0 -6
- package/dist/cjs/types/src/components/v1/icons/index.d.ts +0 -1
- package/dist/cjs/types/src/components/v1/index.d.ts +0 -14
- package/dist/cjs/types/src/components/v1/inputs/controlled/ControlledDate/index.d.ts +0 -11
- package/dist/cjs/types/src/components/v1/inputs/controlled/ControlledDropdown/index.d.ts +0 -17
- package/dist/cjs/types/src/components/v1/inputs/controlled/ControlledFileField/index.d.ts +0 -16
- package/dist/cjs/types/src/components/v1/inputs/controlled/ControlledFileUploadBox/FileBox.d.ts +0 -7
- package/dist/cjs/types/src/components/v1/inputs/controlled/ControlledFileUploadBox/RowErrors.d.ts +0 -6
- package/dist/cjs/types/src/components/v1/inputs/controlled/ControlledFileUploadBox/index.d.ts +0 -8
- package/dist/cjs/types/src/components/v1/inputs/controlled/ControlledNumber/index.d.ts +0 -8
- package/dist/cjs/types/src/components/v1/inputs/controlled/ControlledPhoneNumber/index.d.ts +0 -8
- package/dist/cjs/types/src/components/v1/inputs/controlled/ControlledSelect/index.d.ts +0 -16
- package/dist/cjs/types/src/components/v1/inputs/controlled/ControlledSimpleSlider/index.d.ts +0 -8
- package/dist/cjs/types/src/components/v1/inputs/controlled/ControlledSlider/index.d.ts +0 -12
- package/dist/cjs/types/src/components/v1/inputs/controlled/ControlledSwitch/index.d.ts +0 -8
- package/dist/cjs/types/src/components/v1/inputs/controlled/ControlledText/index.d.ts +0 -11
- package/dist/cjs/types/src/components/v1/inputs/controlled/ControlledTimePicker/index.d.ts +0 -11
- package/dist/cjs/types/src/components/v1/inputs/controlled/ControlledTimePicker/utils.d.ts +0 -2
- package/dist/cjs/types/src/components/v1/inputs/controlled/ControlledToggleButtons/index.d.ts +0 -14
- package/dist/cjs/types/src/components/v1/inputs/controlled/CrudDropdown/index.d.ts +0 -18
- package/dist/cjs/types/src/components/v1/inputs/controlled/index.d.ts +0 -14
- package/dist/cjs/types/src/components/v1/inputs/controlled/types.d.ts +0 -5
- package/dist/cjs/types/src/components/v1/inputs/index.d.ts +0 -2
- package/dist/cjs/types/src/components/v1/inputs/uncontrolled/UncontrolledText/index.d.ts +0 -10
- package/dist/cjs/types/src/components/v1/inputs/uncontrolled/index.d.ts +0 -1
- package/dist/cjs/types/src/components/v1/layout/index.d.ts +0 -3
- package/dist/cjs/types/src/components/v1/layout/layouts/ContentLayout/index.d.ts +0 -6
- package/dist/cjs/types/src/components/v1/layout/layouts/index.d.ts +0 -1
- package/dist/cjs/types/src/components/v1/layout/pages/(errors)/NotAllowed.d.ts +0 -5
- package/dist/cjs/types/src/components/v1/layout/pages/(errors)/NotFound.d.ts +0 -5
- package/dist/cjs/types/src/components/v1/layout/pages/(errors)/index.d.ts +0 -2
- package/dist/cjs/types/src/components/v1/layout/pages/CoverPage/index.d.ts +0 -16
- package/dist/cjs/types/src/components/v1/layout/pages/DetailPage/Field/DetailField.d.ts +0 -4
- package/dist/cjs/types/src/components/v1/layout/pages/DetailPage/Field/EditField.d.ts +0 -4
- package/dist/cjs/types/src/components/v1/layout/pages/DetailPage/Field/index.d.ts +0 -35
- package/dist/cjs/types/src/components/v1/layout/pages/DetailPage/FieldArrayField/index.d.ts +0 -29
- package/dist/cjs/types/src/components/v1/layout/pages/DetailPage/Section/index.d.ts +0 -23
- package/dist/cjs/types/src/components/v1/layout/pages/DetailPage/index.d.ts +0 -68
- package/dist/cjs/types/src/components/v1/layout/pages/DetailPage/types.d.ts +0 -14
- package/dist/cjs/types/src/components/v1/layout/pages/DetailPage/utils.d.ts +0 -2
- package/dist/cjs/types/src/components/v1/layout/pages/ListPage/index.d.ts +0 -11
- package/dist/cjs/types/src/components/v1/layout/pages/index.d.ts +0 -5
- package/dist/cjs/types/src/components/v1/layout/pages/utils.d.ts +0 -2
- package/dist/cjs/types/src/components/v1/layout/shared/Loadable/Loader.d.ts +0 -2
- package/dist/cjs/types/src/components/v1/layout/shared/Loadable/index.d.ts +0 -5
- package/dist/cjs/types/src/components/v1/layout/shared/LoadingComponent/index.d.ts +0 -8
- package/dist/cjs/types/src/components/v1/layout/shared/Logo/index.d.ts +0 -5
- package/dist/cjs/types/src/components/v1/layout/shared/Tabs/index.d.ts +0 -24
- package/dist/cjs/types/src/components/v1/layout/shared/Transitions/index.d.ts +0 -15
- package/dist/cjs/types/src/components/v1/layout/shared/index.d.ts +0 -5
- package/dist/cjs/types/src/components/v1/lib/context/APIContext.d.ts +0 -16
- package/dist/cjs/types/src/components/v1/lib/context/NavigationContext.d.ts +0 -8
- package/dist/cjs/types/src/components/v1/lib/context/index.d.ts +0 -2
- package/dist/cjs/types/src/components/v1/lib/extended-dayjs.d.ts +0 -2
- package/dist/cjs/types/src/components/v1/lib/hooks/api.d.ts +0 -1
- package/dist/cjs/types/src/components/v1/lib/hooks/index.d.ts +0 -4
- package/dist/cjs/types/src/components/v1/lib/hooks/navigation.d.ts +0 -4
- package/dist/cjs/types/src/components/v1/lib/hooks/useKeyboardShortcut.d.ts +0 -42
- package/dist/cjs/types/src/components/v1/lib/hooks/users.d.ts +0 -1
- package/dist/cjs/types/src/components/v1/lib/index.d.ts +0 -5
- package/dist/cjs/types/src/components/v1/lib/navigation/index.d.ts +0 -25
- package/dist/cjs/types/src/components/v1/lib/slices/header.d.ts +0 -9
- package/dist/cjs/types/src/components/v1/lib/slices/index.d.ts +0 -2
- package/dist/cjs/types/src/components/v1/lib/slices/snackProgress.d.ts +0 -19
- package/dist/cjs/types/src/components/v1/lib/utils.d.ts +0 -14
- package/dist/cjs/types/src/components/v1/menus/MenuItemWithLoading/index.d.ts +0 -9
- package/dist/cjs/types/src/components/v1/menus/StyledMenu/index.d.ts +0 -3
- package/dist/cjs/types/src/components/v1/menus/index.d.ts +0 -2
- package/dist/cjs/types/src/components/v1/snacks/ObjectProgressStack/BaseProgressSnack.d.ts +0 -14
- package/dist/cjs/types/src/components/v1/snacks/ObjectProgressStack/ObjectProgress.d.ts +0 -11
- package/dist/cjs/types/src/components/v1/snacks/ObjectProgressStack/index.d.ts +0 -6
- package/dist/cjs/types/src/components/v1/snacks/index.d.ts +0 -1
- package/dist/cjs/types/src/components/v1/theme/compStyleOverride.d.ts +0 -67
- package/dist/cjs/types/src/components/v1/theme/index.d.ts +0 -42
- package/dist/cjs/types/src/components/v1/theme/typography.d.ts +0 -126
- package/dist/cjs/types/src/components/v1/types.d.ts +0 -6
- package/dist/cjs/types/src/components/v2/dashboards/KpiCard.d.ts +0 -17
- package/dist/cjs/types/src/components/v2/dashboards/Panel.d.ts +0 -24
- package/dist/cjs/types/src/components/v2/dashboards/PollingCountdownChip.d.ts +0 -8
- package/dist/cjs/types/src/components/v2/dashboards/index.d.ts +0 -3
- package/dist/cjs/types/src/components/v2/datagrids/DrawerGrid/index.d.ts +0 -66
- package/dist/cjs/types/src/components/v2/datagrids/index.d.ts +0 -2
- package/dist/cjs/types/src/components/v2/dialogs/ConfirmDialog.d.ts +0 -17
- package/dist/cjs/types/src/components/v2/dialogs/index.d.ts +0 -1
- package/dist/cjs/types/src/components/v2/index.d.ts +0 -7
- package/dist/cjs/types/src/components/v2/inputs/controlled/ControlledAddressAutocomplete/index.d.ts +0 -48
- package/dist/cjs/types/src/components/v2/inputs/controlled/ControlledAmountWithCurrency/index.d.ts +0 -51
- package/dist/cjs/types/src/components/v2/inputs/controlled/ControlledDate/index.d.ts +0 -12
- package/dist/cjs/types/src/components/v2/inputs/controlled/ControlledFileField/index.d.ts +0 -8
- package/dist/cjs/types/src/components/v2/inputs/controlled/ControlledSelect/index.d.ts +0 -7
- package/dist/cjs/types/src/components/v2/inputs/controlled/index.d.ts +0 -7
- package/dist/cjs/types/src/components/v2/inputs/controlled/types.d.ts +0 -31
- package/dist/cjs/types/src/components/v2/inputs/index.d.ts +0 -1
- package/dist/cjs/types/src/components/v2/layout/index.d.ts +0 -2
- package/dist/cjs/types/src/components/v2/layout/layouts/MainLayout/PageHeader.d.ts +0 -24
- package/dist/cjs/types/src/components/v2/layout/layouts/MainLayout/ProgressStatus.d.ts +0 -10
- package/dist/cjs/types/src/components/v2/layout/layouts/MainLayout/SidebarFooter.d.ts +0 -12
- package/dist/cjs/types/src/components/v2/layout/layouts/MainLayout/index.d.ts +0 -70
- package/dist/cjs/types/src/components/v2/layout/layouts/index.d.ts +0 -5
- package/dist/cjs/types/src/components/v2/layout/pages/DetailPage/ActionsMenu.d.ts +0 -17
- package/dist/cjs/types/src/components/v2/layout/pages/DetailPage/DetailForm.d.ts +0 -25
- package/dist/cjs/types/src/components/v2/layout/pages/DetailPage/DetailFormDialog.d.ts +0 -35
- package/dist/cjs/types/src/components/v2/layout/pages/DetailPage/DetailFormDrawer.d.ts +0 -42
- package/dist/cjs/types/src/components/v2/layout/pages/DetailPage/Field/DetailField.d.ts +0 -4
- package/dist/cjs/types/src/components/v2/layout/pages/DetailPage/Field/EditField.d.ts +0 -4
- package/dist/cjs/types/src/components/v2/layout/pages/DetailPage/Field/index.d.ts +0 -31
- package/dist/cjs/types/src/components/v2/layout/pages/DetailPage/Section/index.d.ts +0 -13
- package/dist/cjs/types/src/components/v2/layout/pages/DetailPage/Subsection/index.d.ts +0 -22
- package/dist/cjs/types/src/components/v2/layout/pages/DetailPage/index.d.ts +0 -39
- package/dist/cjs/types/src/components/v2/layout/pages/DetailPage/useDetailForm.d.ts +0 -82
- package/dist/cjs/types/src/components/v2/layout/pages/index.d.ts +0 -10
- package/dist/cjs/types/src/components/v2/lib/hooks/index.d.ts +0 -2
- package/dist/cjs/types/src/components/v2/lib/hooks/useHasPermission_v2.d.ts +0 -1
- package/dist/cjs/types/src/components/v2/lib/hooks/useMutationHandler.d.ts +0 -23
- package/dist/cjs/types/src/components/v2/lib/index.d.ts +0 -1
- package/dist/cjs/types/src/components/v2/shared/PulseDot.d.ts +0 -15
- package/dist/cjs/types/src/components/v2/shared/index.d.ts +0 -1
- package/dist/cjs/types/src/index.d.ts +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/types/node_modules/@reduxjs/toolkit/dist/uncheckedindexed.d.ts +0 -5
- package/dist/esm/types/rollup.config.d.ts +0 -3
- package/dist/esm/types/src/components/index.d.ts +0 -2
- package/dist/esm/types/src/components/v1/badges/StatusBadge/StatusBadge.d.ts +0 -11
- package/dist/esm/types/src/components/v1/badges/StatusBadge/index.d.ts +0 -1
- package/dist/esm/types/src/components/v1/badges/index.d.ts +0 -1
- package/dist/esm/types/src/components/v1/buttons/ButtonWithDrawer/index.d.ts +0 -24
- package/dist/esm/types/src/components/v1/buttons/CreateButton/CreateButtonBase.d.ts +0 -9
- package/dist/esm/types/src/components/v1/buttons/CreateButton/CreateButtonWithMenuOptions.d.ts +0 -18
- package/dist/esm/types/src/components/v1/buttons/CreateButton/index.d.ts +0 -2
- package/dist/esm/types/src/components/v1/buttons/DeleteButton/DeleteButton.d.ts +0 -4
- package/dist/esm/types/src/components/v1/buttons/DeleteButton/DeleteConfirmationDialog.d.ts +0 -12
- package/dist/esm/types/src/components/v1/buttons/DeleteButton/index.d.ts +0 -2
- package/dist/esm/types/src/components/v1/buttons/EditButton/EditButton.d.ts +0 -2
- package/dist/esm/types/src/components/v1/buttons/EditButton/index.d.ts +0 -1
- package/dist/esm/types/src/components/v1/buttons/ExtraButtons/index.d.ts +0 -11
- package/dist/esm/types/src/components/v1/buttons/MoreOptions/index.d.ts +0 -10
- package/dist/esm/types/src/components/v1/buttons/NormalOrIcon/NormalOrIcon.d.ts +0 -8
- package/dist/esm/types/src/components/v1/buttons/NormalOrIcon/index.d.ts +0 -1
- package/dist/esm/types/src/components/v1/buttons/SaveCancelButton/SaveCancelButton.d.ts +0 -10
- package/dist/esm/types/src/components/v1/buttons/SaveCancelButton/index.d.ts +0 -1
- package/dist/esm/types/src/components/v1/buttons/index.d.ts +0 -8
- package/dist/esm/types/src/components/v1/cards/ModuleCard/ModuleCard.d.ts +0 -9
- package/dist/esm/types/src/components/v1/cards/ModuleCard/index.d.ts +0 -1
- package/dist/esm/types/src/components/v1/cards/index.d.ts +0 -1
- package/dist/esm/types/src/components/v1/datagrids/Base/index.d.ts +0 -32
- package/dist/esm/types/src/components/v1/datagrids/cells/ActiveCell.d.ts +0 -6
- package/dist/esm/types/src/components/v1/datagrids/cells/EditCellWithErrorTooltip.d.ts +0 -4
- package/dist/esm/types/src/components/v1/datagrids/cells/MyGridEditSingleSelect.d.ts +0 -4
- package/dist/esm/types/src/components/v1/datagrids/cells/index.d.ts +0 -3
- package/dist/esm/types/src/components/v1/datagrids/cells/renderEditCellWithErrorTooltip.d.ts +0 -2
- package/dist/esm/types/src/components/v1/datagrids/columns/deleteColumn.d.ts +0 -8
- package/dist/esm/types/src/components/v1/datagrids/columns/editColumn.d.ts +0 -14
- package/dist/esm/types/src/components/v1/datagrids/columns/index.d.ts +0 -2
- package/dist/esm/types/src/components/v1/datagrids/custom_slots/CustomNoRows/index.d.ts +0 -2
- package/dist/esm/types/src/components/v1/datagrids/custom_slots/CustomPagination/index.d.ts +0 -1
- package/dist/esm/types/src/components/v1/datagrids/custom_slots/CustomToolbar/index.d.ts +0 -35
- package/dist/esm/types/src/components/v1/datagrids/custom_slots/CustomToolbar/slots/ColumnsButton.d.ts +0 -2
- package/dist/esm/types/src/components/v1/datagrids/custom_slots/CustomToolbar/slots/ExportButton/ExportCSV.d.ts +0 -18
- package/dist/esm/types/src/components/v1/datagrids/custom_slots/CustomToolbar/slots/ExportButton/index.d.ts +0 -15
- package/dist/esm/types/src/components/v1/datagrids/custom_slots/CustomToolbar/slots/FiltersButton/FiltersPopper.d.ts +0 -9
- package/dist/esm/types/src/components/v1/datagrids/custom_slots/CustomToolbar/slots/FiltersButton/index.d.ts +0 -16
- package/dist/esm/types/src/components/v1/datagrids/custom_slots/CustomToolbar/slots/FiltersButton/utils.d.ts +0 -2
- package/dist/esm/types/src/components/v1/datagrids/custom_slots/CustomToolbar/slots/QuickSearch.d.ts +0 -8
- package/dist/esm/types/src/components/v1/datagrids/custom_slots/CustomToolbar/slots/RefreshButton.d.ts +0 -6
- package/dist/esm/types/src/components/v1/datagrids/custom_slots/CustomToolbar/slots/SelectedRowsButton.d.ts +0 -13
- package/dist/esm/types/src/components/v1/datagrids/custom_slots/index.d.ts +0 -2
- package/dist/esm/types/src/components/v1/datagrids/filter_inputs/TrueFalse.d.ts +0 -4
- package/dist/esm/types/src/components/v1/datagrids/filter_inputs/index.d.ts +0 -1
- package/dist/esm/types/src/components/v1/datagrids/index.d.ts +0 -6
- package/dist/esm/types/src/components/v1/datagrids/rows/DraggableRow.d.ts +0 -3
- package/dist/esm/types/src/components/v1/datagrids/types.d.ts +0 -37
- package/dist/esm/types/src/components/v1/datagrids/utils.d.ts +0 -5
- package/dist/esm/types/src/components/v1/datagrids/wrappers/CreateGridWrapper.d.ts +0 -36
- package/dist/esm/types/src/components/v1/datagrids/wrappers/DeleteGridWrapper.d.ts +0 -13
- package/dist/esm/types/src/components/v1/datagrids/wrappers/EditGridWrapper.d.ts +0 -32
- package/dist/esm/types/src/components/v1/datagrids/wrappers/index.d.ts +0 -3
- package/dist/esm/types/src/components/v1/drawers/HistorialDrawer/_HistorialDrawer.d.ts +0 -8
- package/dist/esm/types/src/components/v1/drawers/HistorialDrawer/index.d.ts +0 -8
- package/dist/esm/types/src/components/v1/drawers/MainDrawer/index.d.ts +0 -15
- package/dist/esm/types/src/components/v1/drawers/index.d.ts +0 -2
- package/dist/esm/types/src/components/v1/forms/CSVUpload/index.d.ts +0 -10
- package/dist/esm/types/src/components/v1/forms/index.d.ts +0 -3
- package/dist/esm/types/src/components/v1/forms/schemas.d.ts +0 -5
- package/dist/esm/types/src/components/v1/forms/utils.d.ts +0 -19
- package/dist/esm/types/src/components/v1/icons/ActiveIcon.d.ts +0 -6
- package/dist/esm/types/src/components/v1/icons/index.d.ts +0 -1
- package/dist/esm/types/src/components/v1/index.d.ts +0 -14
- package/dist/esm/types/src/components/v1/inputs/controlled/ControlledDate/index.d.ts +0 -11
- package/dist/esm/types/src/components/v1/inputs/controlled/ControlledDropdown/index.d.ts +0 -17
- package/dist/esm/types/src/components/v1/inputs/controlled/ControlledFileField/index.d.ts +0 -16
- package/dist/esm/types/src/components/v1/inputs/controlled/ControlledFileUploadBox/FileBox.d.ts +0 -7
- package/dist/esm/types/src/components/v1/inputs/controlled/ControlledFileUploadBox/RowErrors.d.ts +0 -6
- package/dist/esm/types/src/components/v1/inputs/controlled/ControlledFileUploadBox/index.d.ts +0 -8
- package/dist/esm/types/src/components/v1/inputs/controlled/ControlledNumber/index.d.ts +0 -8
- package/dist/esm/types/src/components/v1/inputs/controlled/ControlledPhoneNumber/index.d.ts +0 -8
- package/dist/esm/types/src/components/v1/inputs/controlled/ControlledSelect/index.d.ts +0 -16
- package/dist/esm/types/src/components/v1/inputs/controlled/ControlledSimpleSlider/index.d.ts +0 -8
- package/dist/esm/types/src/components/v1/inputs/controlled/ControlledSlider/index.d.ts +0 -12
- package/dist/esm/types/src/components/v1/inputs/controlled/ControlledSwitch/index.d.ts +0 -8
- package/dist/esm/types/src/components/v1/inputs/controlled/ControlledText/index.d.ts +0 -11
- package/dist/esm/types/src/components/v1/inputs/controlled/ControlledTimePicker/index.d.ts +0 -11
- package/dist/esm/types/src/components/v1/inputs/controlled/ControlledTimePicker/utils.d.ts +0 -2
- package/dist/esm/types/src/components/v1/inputs/controlled/ControlledToggleButtons/index.d.ts +0 -14
- package/dist/esm/types/src/components/v1/inputs/controlled/CrudDropdown/index.d.ts +0 -18
- package/dist/esm/types/src/components/v1/inputs/controlled/index.d.ts +0 -14
- package/dist/esm/types/src/components/v1/inputs/controlled/types.d.ts +0 -5
- package/dist/esm/types/src/components/v1/inputs/index.d.ts +0 -2
- package/dist/esm/types/src/components/v1/inputs/uncontrolled/UncontrolledText/index.d.ts +0 -10
- package/dist/esm/types/src/components/v1/inputs/uncontrolled/index.d.ts +0 -1
- package/dist/esm/types/src/components/v1/layout/index.d.ts +0 -3
- package/dist/esm/types/src/components/v1/layout/layouts/ContentLayout/index.d.ts +0 -6
- package/dist/esm/types/src/components/v1/layout/layouts/index.d.ts +0 -1
- package/dist/esm/types/src/components/v1/layout/pages/(errors)/NotAllowed.d.ts +0 -5
- package/dist/esm/types/src/components/v1/layout/pages/(errors)/NotFound.d.ts +0 -5
- package/dist/esm/types/src/components/v1/layout/pages/(errors)/index.d.ts +0 -2
- package/dist/esm/types/src/components/v1/layout/pages/CoverPage/index.d.ts +0 -16
- package/dist/esm/types/src/components/v1/layout/pages/DetailPage/Field/DetailField.d.ts +0 -4
- package/dist/esm/types/src/components/v1/layout/pages/DetailPage/Field/EditField.d.ts +0 -4
- package/dist/esm/types/src/components/v1/layout/pages/DetailPage/Field/index.d.ts +0 -35
- package/dist/esm/types/src/components/v1/layout/pages/DetailPage/FieldArrayField/index.d.ts +0 -29
- package/dist/esm/types/src/components/v1/layout/pages/DetailPage/Section/index.d.ts +0 -23
- package/dist/esm/types/src/components/v1/layout/pages/DetailPage/index.d.ts +0 -68
- package/dist/esm/types/src/components/v1/layout/pages/DetailPage/types.d.ts +0 -14
- package/dist/esm/types/src/components/v1/layout/pages/DetailPage/utils.d.ts +0 -2
- package/dist/esm/types/src/components/v1/layout/pages/ListPage/index.d.ts +0 -11
- package/dist/esm/types/src/components/v1/layout/pages/index.d.ts +0 -5
- package/dist/esm/types/src/components/v1/layout/pages/utils.d.ts +0 -2
- package/dist/esm/types/src/components/v1/layout/shared/Loadable/Loader.d.ts +0 -2
- package/dist/esm/types/src/components/v1/layout/shared/Loadable/index.d.ts +0 -5
- package/dist/esm/types/src/components/v1/layout/shared/LoadingComponent/index.d.ts +0 -8
- package/dist/esm/types/src/components/v1/layout/shared/Logo/index.d.ts +0 -5
- package/dist/esm/types/src/components/v1/layout/shared/Tabs/index.d.ts +0 -24
- package/dist/esm/types/src/components/v1/layout/shared/Transitions/index.d.ts +0 -15
- package/dist/esm/types/src/components/v1/layout/shared/index.d.ts +0 -5
- package/dist/esm/types/src/components/v1/lib/context/APIContext.d.ts +0 -16
- package/dist/esm/types/src/components/v1/lib/context/NavigationContext.d.ts +0 -8
- package/dist/esm/types/src/components/v1/lib/context/index.d.ts +0 -2
- package/dist/esm/types/src/components/v1/lib/extended-dayjs.d.ts +0 -2
- package/dist/esm/types/src/components/v1/lib/hooks/api.d.ts +0 -1
- package/dist/esm/types/src/components/v1/lib/hooks/index.d.ts +0 -4
- package/dist/esm/types/src/components/v1/lib/hooks/navigation.d.ts +0 -4
- package/dist/esm/types/src/components/v1/lib/hooks/useKeyboardShortcut.d.ts +0 -42
- package/dist/esm/types/src/components/v1/lib/hooks/users.d.ts +0 -1
- package/dist/esm/types/src/components/v1/lib/index.d.ts +0 -5
- package/dist/esm/types/src/components/v1/lib/navigation/index.d.ts +0 -25
- package/dist/esm/types/src/components/v1/lib/slices/header.d.ts +0 -9
- package/dist/esm/types/src/components/v1/lib/slices/index.d.ts +0 -2
- package/dist/esm/types/src/components/v1/lib/slices/snackProgress.d.ts +0 -19
- package/dist/esm/types/src/components/v1/lib/utils.d.ts +0 -14
- package/dist/esm/types/src/components/v1/menus/MenuItemWithLoading/index.d.ts +0 -9
- package/dist/esm/types/src/components/v1/menus/StyledMenu/index.d.ts +0 -3
- package/dist/esm/types/src/components/v1/menus/index.d.ts +0 -2
- package/dist/esm/types/src/components/v1/snacks/ObjectProgressStack/BaseProgressSnack.d.ts +0 -14
- package/dist/esm/types/src/components/v1/snacks/ObjectProgressStack/ObjectProgress.d.ts +0 -11
- package/dist/esm/types/src/components/v1/snacks/ObjectProgressStack/index.d.ts +0 -6
- package/dist/esm/types/src/components/v1/snacks/index.d.ts +0 -1
- package/dist/esm/types/src/components/v1/theme/compStyleOverride.d.ts +0 -67
- package/dist/esm/types/src/components/v1/theme/index.d.ts +0 -42
- package/dist/esm/types/src/components/v1/theme/typography.d.ts +0 -126
- package/dist/esm/types/src/components/v1/types.d.ts +0 -6
- package/dist/esm/types/src/components/v2/dashboards/KpiCard.d.ts +0 -17
- package/dist/esm/types/src/components/v2/dashboards/Panel.d.ts +0 -24
- package/dist/esm/types/src/components/v2/dashboards/PollingCountdownChip.d.ts +0 -8
- package/dist/esm/types/src/components/v2/dashboards/index.d.ts +0 -3
- package/dist/esm/types/src/components/v2/datagrids/DrawerGrid/index.d.ts +0 -66
- package/dist/esm/types/src/components/v2/datagrids/index.d.ts +0 -2
- package/dist/esm/types/src/components/v2/dialogs/ConfirmDialog.d.ts +0 -17
- package/dist/esm/types/src/components/v2/dialogs/index.d.ts +0 -1
- package/dist/esm/types/src/components/v2/index.d.ts +0 -7
- package/dist/esm/types/src/components/v2/inputs/controlled/ControlledAddressAutocomplete/index.d.ts +0 -48
- package/dist/esm/types/src/components/v2/inputs/controlled/ControlledAmountWithCurrency/index.d.ts +0 -51
- package/dist/esm/types/src/components/v2/inputs/controlled/ControlledDate/index.d.ts +0 -12
- package/dist/esm/types/src/components/v2/inputs/controlled/ControlledFileField/index.d.ts +0 -8
- package/dist/esm/types/src/components/v2/inputs/controlled/ControlledSelect/index.d.ts +0 -7
- package/dist/esm/types/src/components/v2/inputs/controlled/index.d.ts +0 -7
- package/dist/esm/types/src/components/v2/inputs/controlled/types.d.ts +0 -31
- package/dist/esm/types/src/components/v2/inputs/index.d.ts +0 -1
- package/dist/esm/types/src/components/v2/layout/index.d.ts +0 -2
- package/dist/esm/types/src/components/v2/layout/layouts/MainLayout/PageHeader.d.ts +0 -24
- package/dist/esm/types/src/components/v2/layout/layouts/MainLayout/ProgressStatus.d.ts +0 -10
- package/dist/esm/types/src/components/v2/layout/layouts/MainLayout/SidebarFooter.d.ts +0 -12
- package/dist/esm/types/src/components/v2/layout/layouts/MainLayout/index.d.ts +0 -70
- package/dist/esm/types/src/components/v2/layout/layouts/index.d.ts +0 -5
- package/dist/esm/types/src/components/v2/layout/pages/DetailPage/ActionsMenu.d.ts +0 -17
- package/dist/esm/types/src/components/v2/layout/pages/DetailPage/DetailForm.d.ts +0 -25
- package/dist/esm/types/src/components/v2/layout/pages/DetailPage/DetailFormDialog.d.ts +0 -35
- package/dist/esm/types/src/components/v2/layout/pages/DetailPage/DetailFormDrawer.d.ts +0 -42
- package/dist/esm/types/src/components/v2/layout/pages/DetailPage/Field/DetailField.d.ts +0 -4
- package/dist/esm/types/src/components/v2/layout/pages/DetailPage/Field/EditField.d.ts +0 -4
- package/dist/esm/types/src/components/v2/layout/pages/DetailPage/Field/index.d.ts +0 -31
- package/dist/esm/types/src/components/v2/layout/pages/DetailPage/Section/index.d.ts +0 -13
- package/dist/esm/types/src/components/v2/layout/pages/DetailPage/Subsection/index.d.ts +0 -22
- package/dist/esm/types/src/components/v2/layout/pages/DetailPage/index.d.ts +0 -39
- package/dist/esm/types/src/components/v2/layout/pages/DetailPage/useDetailForm.d.ts +0 -82
- package/dist/esm/types/src/components/v2/layout/pages/index.d.ts +0 -10
- package/dist/esm/types/src/components/v2/lib/hooks/index.d.ts +0 -2
- package/dist/esm/types/src/components/v2/lib/hooks/useHasPermission_v2.d.ts +0 -1
- package/dist/esm/types/src/components/v2/lib/hooks/useMutationHandler.d.ts +0 -23
- package/dist/esm/types/src/components/v2/lib/index.d.ts +0 -1
- package/dist/esm/types/src/components/v2/shared/PulseDot.d.ts +0 -15
- package/dist/esm/types/src/components/v2/shared/index.d.ts +0 -1
- package/dist/esm/types/src/index.d.ts +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as _mui_material from '@mui/material';
|
|
2
|
-
import { ButtonProps, ButtonGroupProps, IconButtonProps, MenuItemProps, AlertProps, BoxProps, AutocompleteProps, SliderProps, SwitchProps, GridProps, DrawerProps,
|
|
2
|
+
import { ButtonProps, ButtonGroupProps, IconButtonProps, MenuItemProps, AlertProps, BoxProps, AutocompleteProps, SliderProps, SwitchProps, GridProps, DrawerProps, SxProps, Theme, StackProps, TypographyProps, MenuProps, PaletteColorOptions, TextFieldProps as TextFieldProps$1, InputBaseProps, DialogProps, DialogContentProps } from '@mui/material';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default, { ReactNode, Dispatch, SetStateAction, JSX, RefObject, FC, BaseSyntheticEvent, JSXElementConstructor, ElementType } from 'react';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
-
import { GridRowId, GridRowSelectionModel, GridSortModel, GridFilterModel, GridRowModesModel, GridRenderEditCellParams, GridToolbarProps, DataGridProps as DataGridProps$1 } from '@mui/x-data-grid';
|
|
6
|
+
import { GridRowId, GridRowSelectionModel, GridSortModel, GridFilterModel, GridRowModesModel, GridRenderEditCellParams, GridToolbarProps, DataGridProps as DataGridProps$1, GridApi, GridPaginationModel, GridColumnVisibilityModel, useGridApiRef, GridColDef } from '@mui/x-data-grid';
|
|
7
7
|
import { DataGridProps, GridBaseColDef } from '@mui/x-data-grid/internals';
|
|
8
8
|
import { NavigateOptions } from 'react-router-dom';
|
|
9
9
|
import * as zod_v4_core from 'zod/v4/core';
|
|
@@ -16,6 +16,7 @@ import * as redux from 'redux';
|
|
|
16
16
|
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
17
17
|
import * as _emotion_styled from '@emotion/styled';
|
|
18
18
|
import * as _mui_system from '@mui/system';
|
|
19
|
+
import { DebouncedFunc } from 'lodash';
|
|
19
20
|
import { UseFormReturn } from 'react-hook-form';
|
|
20
21
|
import { Breadcrumb, PageHeaderProps, Navigation, Branding, Session, Authentication, DashboardHeaderProps } from '@toolpad/core';
|
|
21
22
|
import { SidebarFooterProps } from '@toolpad/core/DashboardLayout';
|
|
@@ -59,7 +60,7 @@ interface CreateButtonBaseProps {
|
|
|
59
60
|
}
|
|
60
61
|
declare const CreateButtonBase: React__default.FC<CreateButtonBaseProps>;
|
|
61
62
|
|
|
62
|
-
interface CSVMenuOptionProps$
|
|
63
|
+
interface CSVMenuOptionProps$2 {
|
|
63
64
|
endpoint?: string;
|
|
64
65
|
title?: string;
|
|
65
66
|
custom?: string;
|
|
@@ -69,7 +70,7 @@ interface CreateButtonWithMenuOptionsProps {
|
|
|
69
70
|
permission: boolean;
|
|
70
71
|
csv_upload?: {
|
|
71
72
|
enable: boolean;
|
|
72
|
-
extraOptions?: CSVMenuOptionProps$
|
|
73
|
+
extraOptions?: CSVMenuOptionProps$2[];
|
|
73
74
|
};
|
|
74
75
|
pathname: string;
|
|
75
76
|
navigate: any;
|
|
@@ -85,7 +86,16 @@ interface ButtonWithDrawerProps {
|
|
|
85
86
|
drawer: {
|
|
86
87
|
title: string;
|
|
87
88
|
content: (props: any) => JSX.Element;
|
|
89
|
+
/** Acciones en el encabezado. Sustituyen al botón de cerrar integrado. */
|
|
88
90
|
button?: ReactNode;
|
|
91
|
+
/**
|
|
92
|
+
* Pie fijo del panel — el sitio habitual para guardar/cancelar. Recibe
|
|
93
|
+
* `handleClose` porque, con el panel sin controlar desde fuera, es la única
|
|
94
|
+
* forma que tiene el consumidor de cerrarlo.
|
|
95
|
+
*/
|
|
96
|
+
footer?: (props: {
|
|
97
|
+
handleClose: () => void;
|
|
98
|
+
}) => ReactNode;
|
|
89
99
|
};
|
|
90
100
|
};
|
|
91
101
|
slotProps?: {
|
|
@@ -205,7 +215,7 @@ interface CSVUploadProps {
|
|
|
205
215
|
postAction?: (response: any) => void;
|
|
206
216
|
open: boolean;
|
|
207
217
|
drawerToggle: () => void;
|
|
208
|
-
data?: CSVMenuOptionProps$
|
|
218
|
+
data?: CSVMenuOptionProps$2;
|
|
209
219
|
}
|
|
210
220
|
declare const CSVUpload: React__default.FC<CSVUploadProps>;
|
|
211
221
|
|
|
@@ -220,11 +230,11 @@ interface EditGridColumnsProps {
|
|
|
220
230
|
}
|
|
221
231
|
declare const editColumn: (props?: EditGridColumnsProps) => GridColDefPropsOverrides[];
|
|
222
232
|
|
|
223
|
-
interface DeleteGridColumnsProps {
|
|
233
|
+
interface DeleteGridColumnsProps$1 {
|
|
224
234
|
displayDelete?: boolean;
|
|
225
235
|
handleOpen: (id: GridRowId) => () => void;
|
|
226
236
|
}
|
|
227
|
-
declare const deleteColumn: (props: DeleteGridColumnsProps) => GridColDefPropsOverrides[];
|
|
237
|
+
declare const deleteColumn$1: (props: DeleteGridColumnsProps$1) => GridColDefPropsOverrides[];
|
|
228
238
|
|
|
229
239
|
interface EditGridAPIProps {
|
|
230
240
|
mutation: any;
|
|
@@ -243,6 +253,16 @@ interface EditGridAPIProps {
|
|
|
243
253
|
postAction?: (result: any) => void;
|
|
244
254
|
}
|
|
245
255
|
|
|
256
|
+
interface EditToggleGridAPIProps {
|
|
257
|
+
/** Hides the button and its shortcuts without touching permissions. */
|
|
258
|
+
disabled?: boolean;
|
|
259
|
+
/**
|
|
260
|
+
* Notified whenever the toggle flips. Generic passthrough — `DrawerGrid_v2` uses it to
|
|
261
|
+
* open its row drawer already in edit mode.
|
|
262
|
+
*/
|
|
263
|
+
onEditModeChange?: (edit: boolean) => void;
|
|
264
|
+
}
|
|
265
|
+
|
|
246
266
|
interface DeleteGridWrapperProps {
|
|
247
267
|
mutation: any;
|
|
248
268
|
permission: boolean;
|
|
@@ -253,22 +273,22 @@ interface DeleteGridWrapperProps {
|
|
|
253
273
|
dataGridProps?: Partial<MyDataGridProps>;
|
|
254
274
|
}
|
|
255
275
|
|
|
256
|
-
interface CSVMenuOptionProps {
|
|
276
|
+
interface CSVMenuOptionProps$1 {
|
|
257
277
|
endpoint: string;
|
|
258
278
|
title?: string;
|
|
259
279
|
custom?: string;
|
|
260
280
|
icon?: any;
|
|
261
281
|
}
|
|
262
|
-
interface ExtraCreateOptionProps {
|
|
282
|
+
interface ExtraCreateOptionProps$1 {
|
|
263
283
|
title: string;
|
|
264
284
|
icon: any;
|
|
265
285
|
onClick: () => void;
|
|
266
286
|
}
|
|
267
287
|
interface CreateGridAPIProps {
|
|
268
|
-
extraOptions?: ExtraCreateOptionProps[];
|
|
288
|
+
extraOptions?: ExtraCreateOptionProps$1[];
|
|
269
289
|
csv_upload?: {
|
|
270
290
|
enable: boolean;
|
|
271
|
-
extraOptions?: CSVMenuOptionProps[];
|
|
291
|
+
extraOptions?: CSVMenuOptionProps$1[];
|
|
272
292
|
};
|
|
273
293
|
navigationOptions?: NavigateOptions;
|
|
274
294
|
/**
|
|
@@ -291,6 +311,11 @@ interface BaseGridProps {
|
|
|
291
311
|
};
|
|
292
312
|
};
|
|
293
313
|
edit?: EditGridAPIProps;
|
|
314
|
+
/**
|
|
315
|
+
* Edit mode without any in-grid editing: just the toolbar toggle, for grids whose
|
|
316
|
+
* writing happens elsewhere (see `DrawerGrid_v2`). Ignored when `edit` is set.
|
|
317
|
+
*/
|
|
318
|
+
editToggle?: EditToggleGridAPIProps;
|
|
294
319
|
delete?: Pick<DeleteGridWrapperProps, "mutation">;
|
|
295
320
|
create?: CreateGridAPIProps;
|
|
296
321
|
};
|
|
@@ -303,6 +328,12 @@ interface BaseGridProps {
|
|
|
303
328
|
};
|
|
304
329
|
ref?: RefObject<any>;
|
|
305
330
|
}
|
|
331
|
+
/**
|
|
332
|
+
* @deprecated Use `ServerGrid_v2`. This grid is frozen: it still composes its wrappers by
|
|
333
|
+
* calling them as plain functions, so their hooks land in this component's hook list and a
|
|
334
|
+
* consumer that builds `api.edit`/`api.delete` conditionally will crash on the flip. v2 fixes
|
|
335
|
+
* that along with the toolbar defects, and its props are a drop-in superset of these.
|
|
336
|
+
*/
|
|
306
337
|
declare const Base: React__default.FC<BaseGridProps>;
|
|
307
338
|
|
|
308
339
|
interface ActiveCellProps {
|
|
@@ -336,9 +367,18 @@ interface ExportButtonProps {
|
|
|
336
367
|
filterModel: FiltersButtonProps["filters"]["filterModel"];
|
|
337
368
|
sortModel: GridSortModel;
|
|
338
369
|
rowSelectionModel: GridRowSelectionModel;
|
|
370
|
+
/**
|
|
371
|
+
* The grid's `api.data.args` — the scoping its query is actually made with. Threaded
|
|
372
|
+
* here so an export can't include rows the grid itself would never show.
|
|
373
|
+
*/
|
|
374
|
+
queryArgs?: {
|
|
375
|
+
filterModel?: FiltersButtonProps["filters"]["filterModel"];
|
|
376
|
+
} & {
|
|
377
|
+
[key: string]: any;
|
|
378
|
+
};
|
|
339
379
|
}
|
|
340
380
|
|
|
341
|
-
interface ExportCSVButtonProps extends Pick<ExportButtonProps, "filterModel" | "sortModel" | "rowSelectionModel"> {
|
|
381
|
+
interface ExportCSVButtonProps extends Pick<ExportButtonProps, "filterModel" | "sortModel" | "rowSelectionModel" | "queryArgs"> {
|
|
342
382
|
handleClick: () => void;
|
|
343
383
|
disabledWithoutSelection?: boolean;
|
|
344
384
|
ignore?: {
|
|
@@ -374,6 +414,11 @@ interface CustomToolbarProps extends GridToolbarProps, FiltersButtonProps, Selec
|
|
|
374
414
|
buttonProps?: any;
|
|
375
415
|
}[];
|
|
376
416
|
sortModel: GridSortModel;
|
|
417
|
+
/**
|
|
418
|
+
* The grid's `api.data.args`, forwarded to the export so a CSV carries the same scoping
|
|
419
|
+
* the grid queries with. Set by `Base`; consumers don't pass it.
|
|
420
|
+
*/
|
|
421
|
+
queryArgs?: ExportButtonProps["queryArgs"];
|
|
377
422
|
buttons: {
|
|
378
423
|
settings?: {
|
|
379
424
|
hide?: boolean;
|
|
@@ -604,18 +649,102 @@ interface FieldProps$1 {
|
|
|
604
649
|
readOnly?: boolean;
|
|
605
650
|
}
|
|
606
651
|
|
|
607
|
-
interface
|
|
652
|
+
interface MainDrawerV2Props {
|
|
608
653
|
open: boolean;
|
|
609
|
-
|
|
610
|
-
|
|
654
|
+
/** Cierra el panel. Se invoca desde el botón de cerrar, Escape y el backdrop. */
|
|
655
|
+
onClose: () => void;
|
|
656
|
+
/** Se muestra en la barra del encabezado, a la misma altura que las acciones. */
|
|
657
|
+
title?: ReactNode;
|
|
658
|
+
/** Línea secundaria bajo el título (opcional). El encabezado crece para alojarla. */
|
|
659
|
+
subtitle?: ReactNode;
|
|
611
660
|
children: ReactNode;
|
|
612
|
-
|
|
661
|
+
/**
|
|
662
|
+
* Ancho del panel para los anchors laterales (`"left"` / `"right"`); alto para
|
|
663
|
+
* `"top"` / `"bottom"`. El panel nunca excede el viewport. Por defecto `600`.
|
|
664
|
+
*/
|
|
613
665
|
width?: number | string;
|
|
666
|
+
/** Lado desde el que entra el panel. Por defecto `"right"`. */
|
|
667
|
+
anchor?: DrawerProps["anchor"];
|
|
668
|
+
/**
|
|
669
|
+
* Añade un tirador en el borde interior del panel para arrastrar su tamaño. Mientras el
|
|
670
|
+
* usuario no lo arrastre, `width` manda; en cuanto lo hace, el tamaño arrastrado la pisa
|
|
671
|
+
* y sobrevive a cerrar y reabrir el panel (mientras el componente siga montado). Doble
|
|
672
|
+
* clic en el tirador vuelve a `width`.
|
|
673
|
+
*/
|
|
674
|
+
resizable?: boolean;
|
|
675
|
+
/** Tamaño mínimo en px al que se puede arrastrar. Por defecto `320`. */
|
|
676
|
+
minWidth?: number;
|
|
677
|
+
/** Tamaño máximo en px. Por defecto, el viewport menos un margen para el backdrop. */
|
|
678
|
+
maxWidth?: number;
|
|
679
|
+
/**
|
|
680
|
+
* Recuerda el tamaño arrastrado bajo esta clave en `localStorage`, de modo que sobreviva a
|
|
681
|
+
* desmontar el panel —el caso de `DrawerGrid_v2`, que lo remonta en cada apertura— y a
|
|
682
|
+
* recargar la página. Sin clave, el tamaño dura lo que dure el componente montado.
|
|
683
|
+
*
|
|
684
|
+
* La clave debe ser única por panel: dos que la compartan se pisan el ancho entre sí.
|
|
685
|
+
*/
|
|
686
|
+
widthStorageKey?: string;
|
|
687
|
+
/**
|
|
688
|
+
* Se invoca al soltar el arrastre (y en cada paso del teclado) con el tamaño en px, o
|
|
689
|
+
* `null` cuando el doble clic lo devuelve a `width`. Para reaccionar al cambio o guardarlo
|
|
690
|
+
* en otro sitio; `widthStorageKey` no lo necesita.
|
|
691
|
+
*/
|
|
692
|
+
onWidthChange?: (width: number | null) => void;
|
|
693
|
+
/** Impide que un clic en el backdrop cierre el panel (formularios con cambios sin guardar). */
|
|
694
|
+
disableBackdropClose?: boolean;
|
|
695
|
+
/** Oculta el botón de cerrar integrado, para reemplazarlo desde `slots.headerActions`. */
|
|
696
|
+
hideCloseButton?: boolean;
|
|
697
|
+
/** Quita el padding interno del panel de contenido, para contenido a sangre. */
|
|
698
|
+
disableGutters?: boolean;
|
|
699
|
+
/** Color de fondo del panel de contenido. Por defecto `#f7f7f7`. */
|
|
700
|
+
pageBackgroundColor?: string;
|
|
701
|
+
/** Color del contorno: encabezado, pie y el marco alrededor del contenido. */
|
|
702
|
+
chromeBackgroundColor?: string;
|
|
703
|
+
/** Separación en px entre el contorno y el panel de contenido. `0` lo deja a ras. */
|
|
704
|
+
contentGap?: number;
|
|
705
|
+
/** Radio de las esquinas del panel de contenido. Por defecto `theme.shape.borderRadius`. */
|
|
706
|
+
contentBorderRadius?: number;
|
|
614
707
|
slots?: {
|
|
615
|
-
|
|
708
|
+
/** Acciones del encabezado, a la izquierda del botón de cerrar. */
|
|
709
|
+
headerActions?: ReactNode;
|
|
710
|
+
/** Pie fijo — no scrollea con el cuerpo. Pensado para guardar/cancelar. */
|
|
711
|
+
footer?: ReactNode;
|
|
712
|
+
};
|
|
713
|
+
slotProps?: {
|
|
714
|
+
drawer?: Partial<DrawerProps>;
|
|
715
|
+
/** Estilos del `Paper`; se aplican después de los propios, así que ganan. */
|
|
716
|
+
paper?: {
|
|
717
|
+
sx?: SxProps<Theme>;
|
|
718
|
+
};
|
|
719
|
+
header?: Partial<StackProps>;
|
|
720
|
+
body?: Partial<BoxProps>;
|
|
721
|
+
footer?: Partial<BoxProps>;
|
|
722
|
+
title?: Partial<TypographyProps>;
|
|
723
|
+
closeButton?: Partial<IconButtonProps>;
|
|
724
|
+
/** Tirador de arrastre; sólo se renderiza con `resizable`. */
|
|
725
|
+
resizeHandle?: Partial<BoxProps>;
|
|
616
726
|
};
|
|
617
727
|
}
|
|
618
|
-
|
|
728
|
+
/**
|
|
729
|
+
* Panel lateral genérico: encabezado fijo con el título y las acciones en la misma línea,
|
|
730
|
+
* cuerpo scrolleable y pie opcional anclado abajo.
|
|
731
|
+
*
|
|
732
|
+
* Repite el formato del área de contenido de `MainLayout`: encabezado y pie del color del
|
|
733
|
+
* contorno, y el contenido flotando dentro como un panel redondeado separado del marco, de
|
|
734
|
+
* modo que quede un borde blanco a los lados.
|
|
735
|
+
*
|
|
736
|
+
* Frente a `MainDrawer` (v1): el título y los botones comparten una barra alineada al centro
|
|
737
|
+
* en lugar de apilarse a alturas distintas; el encabezado y el pie no scrollean con el
|
|
738
|
+
* contenido (el botón de cerrar siempre queda a la vista); el redondeo sale de
|
|
739
|
+
* `theme.shape.borderRadius` y sigue al `anchor`; y el `sx` que llega por `slotProps` se
|
|
740
|
+
* concatena en vez de reemplazar el propio. No depende de `@toolpad/core`, así que sirve
|
|
741
|
+
* fuera de un layout de Toolpad.
|
|
742
|
+
*
|
|
743
|
+
* Con `resizable`, el borde interior lleva un tirador: se arrastra con el puntero, se ajusta
|
|
744
|
+
* con las flechas cuando tiene el foco y vuelve a `width` con doble clic. Con
|
|
745
|
+
* `widthStorageKey`, además, el tamaño se recuerda entre visitas.
|
|
746
|
+
*/
|
|
747
|
+
declare function MainDrawer$1({ open, onClose, title, subtitle, children, width, anchor, resizable, minWidth, maxWidth, widthStorageKey, onWidthChange, disableBackdropClose, hideCloseButton, disableGutters, pageBackgroundColor, chromeBackgroundColor, contentGap, contentBorderRadius, slots, slotProps, }: MainDrawerV2Props): react_jsx_runtime.JSX.Element;
|
|
619
748
|
|
|
620
749
|
declare module "@mui/x-data-grid" {
|
|
621
750
|
interface ToolbarPropsOverrides {
|
|
@@ -635,7 +764,11 @@ interface ArrayFieldProps {
|
|
|
635
764
|
parser?: JSONParserProps;
|
|
636
765
|
fields: FieldProps$1[];
|
|
637
766
|
slotProps?: {
|
|
638
|
-
|
|
767
|
+
/**
|
|
768
|
+
* Se aplica sobre el panel de edición. `open` y `onClose` los gobierna este
|
|
769
|
+
* componente; el resto (`title`, `width`, `anchor`, ...) se puede sobreescribir.
|
|
770
|
+
*/
|
|
771
|
+
drawer?: Partial<MainDrawerV2Props>;
|
|
639
772
|
};
|
|
640
773
|
}
|
|
641
774
|
|
|
@@ -749,6 +882,25 @@ interface MyTabProps {
|
|
|
749
882
|
initialValue?: string;
|
|
750
883
|
storageKey?: string;
|
|
751
884
|
type?: PageType;
|
|
885
|
+
/**
|
|
886
|
+
* Alto que se ajusta al contenido, con `ALTO` de tope, en vez del alto fijo de siempre.
|
|
887
|
+
*
|
|
888
|
+
* El default arma la cadena de altos con porcentajes: el contenedor mide `ALTO`, el de
|
|
889
|
+
* los paneles 93.5% de él y cada panel 100% del anterior. Eso sólo funciona con un alto
|
|
890
|
+
* definido arriba — si el contenedor midiera `100%` de un padre sin alto, toda la cadena
|
|
891
|
+
* resuelve a `auto` y lo de adentro (un DataGrid, por ejemplo) crece con su contenido y
|
|
892
|
+
* se desborda.
|
|
893
|
+
*
|
|
894
|
+
* Con `fitContent` la cadena es flex: el contenedor no fija alto, sólo `maxHeight`, y
|
|
895
|
+
* cada eslabón va con `flex: 1 1 auto` + `minHeight: 0` para poder encoger. Las pestañas
|
|
896
|
+
* miden entonces lo que mida su contenido y, al pasarse del tope, es el contenido el que
|
|
897
|
+
* encoge y scrollea por dentro. El contenido tiene que seguir la cadena: cualquier
|
|
898
|
+
* envoltura propia entre el panel y el grid necesita también `flex: 1 1 auto` y
|
|
899
|
+
* `minHeight: 0`, en lugar de `height: 1`.
|
|
900
|
+
*
|
|
901
|
+
* @default false
|
|
902
|
+
*/
|
|
903
|
+
fitContent?: boolean;
|
|
752
904
|
slotProps?: {
|
|
753
905
|
mainContainer?: BoxProps;
|
|
754
906
|
contentContainer?: BoxProps;
|
|
@@ -930,6 +1082,25 @@ interface ObjectProgressStackProps {
|
|
|
930
1082
|
}
|
|
931
1083
|
declare const ObjectProgressStack: React__default.FC<ObjectProgressStackProps>;
|
|
932
1084
|
|
|
1085
|
+
interface MainDrawerProps {
|
|
1086
|
+
open: boolean;
|
|
1087
|
+
drawerToggle: () => void;
|
|
1088
|
+
title: string;
|
|
1089
|
+
children: ReactNode;
|
|
1090
|
+
drawerProps?: DrawerProps;
|
|
1091
|
+
width?: number | string;
|
|
1092
|
+
slots?: {
|
|
1093
|
+
button?: ReactNode;
|
|
1094
|
+
};
|
|
1095
|
+
}
|
|
1096
|
+
/**
|
|
1097
|
+
* @deprecated Usa `MainDrawer_v2` (`@v2/drawers`). Ya no queda ningún consumidor dentro de
|
|
1098
|
+
* la librería; se mantiene exportado sólo para los proyectos que lo importan directamente.
|
|
1099
|
+
* En v2 el título y las acciones comparten una barra, el encabezado y el pie no scrollean
|
|
1100
|
+
* con el contenido, y `drawerToggle` pasa a llamarse `onClose`.
|
|
1101
|
+
*/
|
|
1102
|
+
declare const MainDrawer: React__default.FC<MainDrawerProps>;
|
|
1103
|
+
|
|
933
1104
|
interface _HistorialDrawerProps {
|
|
934
1105
|
open: boolean;
|
|
935
1106
|
handleDrawer: () => void;
|
|
@@ -1027,6 +1198,354 @@ interface PollingCountdownChipProps {
|
|
|
1027
1198
|
* fetch reinicia el conteo; opcionalmente refresca al hacer clic. */
|
|
1028
1199
|
declare function PollingCountdownChip({ pollingInterval, isFetching, onRefresh, }: PollingCountdownChipProps): react_jsx_runtime.JSX.Element;
|
|
1029
1200
|
|
|
1201
|
+
/**
|
|
1202
|
+
* What the grid hands its RTK lazy query — the corrected `GridArgs`.
|
|
1203
|
+
*
|
|
1204
|
+
* v1 typed `filterModel` as MUI's `GridFilterModel` (`items: GridFilterItem[]`), a shape the
|
|
1205
|
+
* grid has never sent; it actually sends `MyGridFilterModel`, whose `items` is a plain
|
|
1206
|
+
* key/value bag. Endpoints typed against the v1 type were describing something that never
|
|
1207
|
+
* arrived. The index signature is real too: `api.data.args` may add arbitrary keys (several
|
|
1208
|
+
* endpoints read an `endpoint` or `tipo` off it).
|
|
1209
|
+
*/
|
|
1210
|
+
interface ServerGridArgs {
|
|
1211
|
+
page?: number;
|
|
1212
|
+
pageSize?: number;
|
|
1213
|
+
sortModel: GridSortModel;
|
|
1214
|
+
filterModel: MyGridFilterModel;
|
|
1215
|
+
ignoreSort?: boolean;
|
|
1216
|
+
[key: string]: any;
|
|
1217
|
+
}
|
|
1218
|
+
interface ServerGridDataApi {
|
|
1219
|
+
/** RTK Query lazy hook, e.g. `useLazyGetConceptosQuery`. */
|
|
1220
|
+
query: any;
|
|
1221
|
+
/** Extra query args, deep-merged over the grid's own. Deep-compared, so literals are safe. */
|
|
1222
|
+
args?: any;
|
|
1223
|
+
/** Filter keys the user may not clear from the filters panel. */
|
|
1224
|
+
protectFilters?: string[];
|
|
1225
|
+
/** Passed straight to the lazy hook (`{ pollingInterval }`, …). Also deep-compared. */
|
|
1226
|
+
options?: {
|
|
1227
|
+
[key: string]: any;
|
|
1228
|
+
};
|
|
1229
|
+
}
|
|
1230
|
+
/** In-grid row editing: an actions column, `editMode: "row"`, and optional drag & drop. */
|
|
1231
|
+
interface ServerGridEditApi {
|
|
1232
|
+
mutation: any;
|
|
1233
|
+
disabled?: boolean;
|
|
1234
|
+
columns: (props?: EditGridColumnsProps) => GridColDefPropsOverrides[];
|
|
1235
|
+
options?: {
|
|
1236
|
+
[key: string]: unknown[] | undefined;
|
|
1237
|
+
};
|
|
1238
|
+
parser?: JSONParserProps;
|
|
1239
|
+
dnd?: {
|
|
1240
|
+
field: string;
|
|
1241
|
+
args?: {
|
|
1242
|
+
[key: string]: any;
|
|
1243
|
+
};
|
|
1244
|
+
};
|
|
1245
|
+
postAction?: (result: any) => void;
|
|
1246
|
+
}
|
|
1247
|
+
/**
|
|
1248
|
+
* Edit mode without any in-grid editing: just the toolbar toggle, for grids whose writing
|
|
1249
|
+
* happens elsewhere (see `DrawerGrid_v2`). Ignored when `edit` is set.
|
|
1250
|
+
*/
|
|
1251
|
+
interface ServerGridEditToggleApi {
|
|
1252
|
+
/** Hides the button and its shortcuts without touching permissions. */
|
|
1253
|
+
disabled?: boolean;
|
|
1254
|
+
/**
|
|
1255
|
+
* Drives edit mode from outside instead of leaving it to the toolbar toggle — e.g. a grid
|
|
1256
|
+
* embedded in a detail form that should follow the form's own edit state.
|
|
1257
|
+
*
|
|
1258
|
+
* Leave it `undefined` and the layer owns the mode, as always. Pass a boolean and the
|
|
1259
|
+
* caller owns it: the toolbar button and its shortcuts disappear, because two edit
|
|
1260
|
+
* affordances for one grid only raises the question of which one won, and the checkbox
|
|
1261
|
+
* column is left alone — whoever drives the mode also decides what it looks like. Still
|
|
1262
|
+
* fail-closed — `true` without the model's change permission stays off.
|
|
1263
|
+
*/
|
|
1264
|
+
active?: boolean;
|
|
1265
|
+
/** Notified whenever the toggle flips. */
|
|
1266
|
+
onEditModeChange?: (edit: boolean) => void;
|
|
1267
|
+
}
|
|
1268
|
+
interface ServerGridDeleteApi {
|
|
1269
|
+
mutation: any;
|
|
1270
|
+
}
|
|
1271
|
+
interface CSVMenuOptionProps {
|
|
1272
|
+
endpoint: string;
|
|
1273
|
+
title?: string;
|
|
1274
|
+
custom?: string;
|
|
1275
|
+
icon?: any;
|
|
1276
|
+
}
|
|
1277
|
+
interface ExtraCreateOptionProps {
|
|
1278
|
+
title: string;
|
|
1279
|
+
icon: any;
|
|
1280
|
+
onClick: () => void;
|
|
1281
|
+
}
|
|
1282
|
+
interface ServerGridCreateApi {
|
|
1283
|
+
extraOptions?: ExtraCreateOptionProps[];
|
|
1284
|
+
csv_upload?: {
|
|
1285
|
+
enable: boolean;
|
|
1286
|
+
extraOptions?: CSVMenuOptionProps[];
|
|
1287
|
+
};
|
|
1288
|
+
navigationOptions?: NavigateOptions;
|
|
1289
|
+
/**
|
|
1290
|
+
* Overrides the "Manual" option's default behavior (routing to the create page). When
|
|
1291
|
+
* provided, the option runs this callback instead of navigating — e.g. to open a drawer.
|
|
1292
|
+
*/
|
|
1293
|
+
onManualCreate?: () => void;
|
|
1294
|
+
}
|
|
1295
|
+
/**
|
|
1296
|
+
* A drop-in superset of v1's `BaseGridProps`: every key means the same thing, so migrating a
|
|
1297
|
+
* page is `<Base` → `<ServerGrid_v2` plus deleting whatever workarounds it carried.
|
|
1298
|
+
*/
|
|
1299
|
+
interface ServerGridProps {
|
|
1300
|
+
/** Route the rows navigate into, and the default persistence key. */
|
|
1301
|
+
pathname: string;
|
|
1302
|
+
dataGridProps: Partial<MyDataGridProps>;
|
|
1303
|
+
api: {
|
|
1304
|
+
data: ServerGridDataApi;
|
|
1305
|
+
edit?: ServerGridEditApi;
|
|
1306
|
+
editToggle?: ServerGridEditToggleApi;
|
|
1307
|
+
delete?: ServerGridDeleteApi;
|
|
1308
|
+
create?: ServerGridCreateApi;
|
|
1309
|
+
};
|
|
1310
|
+
slotProps?: {
|
|
1311
|
+
/** Row/create navigation base, when it differs from `pathname`. */
|
|
1312
|
+
navigation?: string;
|
|
1313
|
+
/** Disambiguates several grids sharing one `pathname`. Part of the storage key. */
|
|
1314
|
+
tab?: string;
|
|
1315
|
+
/** Scopes the filter panel's option lookups to the current detail record. */
|
|
1316
|
+
columnsFilter?: string;
|
|
1317
|
+
/** Skip session persistence entirely. */
|
|
1318
|
+
dontSaveState?: boolean;
|
|
1319
|
+
/**
|
|
1320
|
+
* Overrides the whole persistence key. Use when `pathname` + `tab` can't make two
|
|
1321
|
+
* grids on one route distinct — otherwise they silently share saved state.
|
|
1322
|
+
*/
|
|
1323
|
+
storageKey?: string;
|
|
1324
|
+
};
|
|
1325
|
+
ref?: RefObject<ServerGridHandle | null>;
|
|
1326
|
+
}
|
|
1327
|
+
interface ServerGridSnapshot {
|
|
1328
|
+
paginationModel: GridPaginationModel;
|
|
1329
|
+
sortModel: GridSortModel;
|
|
1330
|
+
filterModel: MyGridFilterModel;
|
|
1331
|
+
columnVisibilityModel: GridColumnVisibilityModel;
|
|
1332
|
+
rowSelectionModel: GridRowSelectionModel;
|
|
1333
|
+
rowCount: number;
|
|
1334
|
+
}
|
|
1335
|
+
/** Emitted whenever a page of rows lands. */
|
|
1336
|
+
interface RowsSnapshot {
|
|
1337
|
+
page: number;
|
|
1338
|
+
rowIds: GridRowId[];
|
|
1339
|
+
}
|
|
1340
|
+
interface ServerGridHandle {
|
|
1341
|
+
/**
|
|
1342
|
+
* The raw MUI api. Escape hatch — prefer the typed members below, which read the grid's
|
|
1343
|
+
* own state rather than MUI internals.
|
|
1344
|
+
*/
|
|
1345
|
+
getApi(): GridApi | null;
|
|
1346
|
+
setFilterModel(model: SetStateAction<MyGridFilterModel>): void;
|
|
1347
|
+
refetch(): void;
|
|
1348
|
+
getState(): ServerGridSnapshot;
|
|
1349
|
+
setPage(page: number): void;
|
|
1350
|
+
setPageSize(pageSize: number): void;
|
|
1351
|
+
setSortModel(model: GridSortModel): void;
|
|
1352
|
+
/** Row ids in displayed order. Under server pagination that's the current page. */
|
|
1353
|
+
getRowIds(): GridRowId[];
|
|
1354
|
+
/**
|
|
1355
|
+
* Fires once per page of rows actually landing. Narrower than MUI's `rowsSet`, which
|
|
1356
|
+
* also fires on selection changes and other unrelated state writes.
|
|
1357
|
+
*/
|
|
1358
|
+
subscribeRows(callback: (snapshot: RowsSnapshot) => void): () => void;
|
|
1359
|
+
}
|
|
1360
|
+
type GridLayerId = "delete" | "edit" | "editToggle" | "create";
|
|
1361
|
+
/**
|
|
1362
|
+
* What a layer contributes to the grid. Layers nest so they can own their portals, but
|
|
1363
|
+
* nothing here depends on that nesting — everything is applied in `LAYER_ORDER`.
|
|
1364
|
+
*/
|
|
1365
|
+
interface GridLayerContribution {
|
|
1366
|
+
/** Inserted before the consumer's columns, in `LAYER_ORDER`. */
|
|
1367
|
+
prependColumns?: GridColDefPropsOverrides[];
|
|
1368
|
+
/** Appended after the consumer's columns, in `LAYER_ORDER`. */
|
|
1369
|
+
appendColumns?: GridColDefPropsOverrides[];
|
|
1370
|
+
/** Appended after the consumer's own toolbar buttons, in `LAYER_ORDER`. */
|
|
1371
|
+
toolbarButtons?: NonNullable<CustomToolbarProps["extraButtons"]>;
|
|
1372
|
+
/** Suggested props. The consumer's `dataGridProps` still wins. */
|
|
1373
|
+
defaults?: Partial<MyDataGridProps>;
|
|
1374
|
+
/**
|
|
1375
|
+
* Props that beat the consumer.
|
|
1376
|
+
*
|
|
1377
|
+
* Only ever populate these while the layer's transient mode is active. A layer that
|
|
1378
|
+
* publishes its mode-*off* value here overrides grids that deliberately opted out — a
|
|
1379
|
+
* grid passing `checkboxSelection: false` would get checkboxes back the moment delete
|
|
1380
|
+
* mode was idle.
|
|
1381
|
+
*/
|
|
1382
|
+
overrides?: Partial<MyDataGridProps>;
|
|
1383
|
+
/** Extra flags folded into the grid's `loading` disjunction. */
|
|
1384
|
+
loadingParams?: unknown[];
|
|
1385
|
+
}
|
|
1386
|
+
type GridLayerMap = Partial<Record<GridLayerId, GridLayerContribution>>;
|
|
1387
|
+
|
|
1388
|
+
/**
|
|
1389
|
+
* Server-mode DataGrid: pagination, sorting and filtering all resolved by the backend, with
|
|
1390
|
+
* optional create / edit / delete modes layered on top.
|
|
1391
|
+
*
|
|
1392
|
+
* The optional modes are real components wrapping the grid, so each one's hooks belong to it
|
|
1393
|
+
* rather than to this component. That is the difference from v1, where the wrappers were
|
|
1394
|
+
* called as plain functions and their hooks landed in the grid's own hook list — a page that
|
|
1395
|
+
* built `api.edit` conditionally would then change React's hook order and crash.
|
|
1396
|
+
*/
|
|
1397
|
+
declare function ServerGrid(props: ServerGridProps): react_jsx_runtime.JSX.Element;
|
|
1398
|
+
|
|
1399
|
+
interface UseServerGridOptions {
|
|
1400
|
+
/** Where this grid's state is remembered. Fixed for the lifetime of the mount. */
|
|
1401
|
+
storageKey: string;
|
|
1402
|
+
dontSaveState?: boolean;
|
|
1403
|
+
/** RTK Query lazy hook, e.g. `useLazyGetConceptosQuery`. */
|
|
1404
|
+
query: any;
|
|
1405
|
+
/** Extra query args, deep-compared — object literals are safe. */
|
|
1406
|
+
args?: any;
|
|
1407
|
+
/** Passed to the lazy hook (`{ pollingInterval }`, …). Also deep-compared. */
|
|
1408
|
+
queryOptions?: {
|
|
1409
|
+
[key: string]: any;
|
|
1410
|
+
};
|
|
1411
|
+
initialState?: MyDataGridProps["initialState"];
|
|
1412
|
+
columns?: readonly GridColDef[];
|
|
1413
|
+
}
|
|
1414
|
+
interface ServerGridPermissions {
|
|
1415
|
+
create?: boolean;
|
|
1416
|
+
edit?: boolean;
|
|
1417
|
+
delete?: boolean;
|
|
1418
|
+
}
|
|
1419
|
+
interface ServerGridState {
|
|
1420
|
+
apiRef: ReturnType<typeof useGridApiRef>;
|
|
1421
|
+
rows: readonly any[];
|
|
1422
|
+
rowCount: number;
|
|
1423
|
+
permissions: ServerGridPermissions;
|
|
1424
|
+
isLoading: boolean;
|
|
1425
|
+
isFetching: boolean;
|
|
1426
|
+
isError: boolean;
|
|
1427
|
+
paginationModel: GridPaginationModel;
|
|
1428
|
+
setPaginationModel: Dispatch<SetStateAction<GridPaginationModel>>;
|
|
1429
|
+
sortModel: GridSortModel;
|
|
1430
|
+
setSortModel: Dispatch<SetStateAction<GridSortModel>>;
|
|
1431
|
+
filterModel: MyGridFilterModel;
|
|
1432
|
+
setFilterModel: Dispatch<SetStateAction<MyGridFilterModel>>;
|
|
1433
|
+
columnVisibilityModel: GridColumnVisibilityModel;
|
|
1434
|
+
setColumnVisibilityModel: Dispatch<SetStateAction<GridColumnVisibilityModel>>;
|
|
1435
|
+
rowSelectionModel: GridRowSelectionModel;
|
|
1436
|
+
setRowSelectionModel: Dispatch<SetStateAction<GridRowSelectionModel>>;
|
|
1437
|
+
/** Debounced quick-search setter. Cancelled on unmount. */
|
|
1438
|
+
setQuickSearchValue: DebouncedFunc<(value: string) => void>;
|
|
1439
|
+
/** Toolbar collapse, hoisted here so shortcuts can reopen a collapsed toolbar. */
|
|
1440
|
+
toolbarExpanded: boolean;
|
|
1441
|
+
setToolbarExpanded: Dispatch<SetStateAction<boolean>>;
|
|
1442
|
+
/** Exactly what was last sent to the server. Also feeds the CSV export. */
|
|
1443
|
+
args: ServerGridArgs;
|
|
1444
|
+
refetch: () => void;
|
|
1445
|
+
subscribeRows: (callback: (snapshot: RowsSnapshot) => void) => () => void;
|
|
1446
|
+
}
|
|
1447
|
+
/**
|
|
1448
|
+
* Everything a server-mode grid needs to hold: the models the user drives, the persisted
|
|
1449
|
+
* state they start from, and the lazy query that keeps rows in step with them. Renders
|
|
1450
|
+
* nothing — `ServerGrid` supplies it through context, and pages that need a shape the grid
|
|
1451
|
+
* doesn't offer can drive their own `DataGrid` from it.
|
|
1452
|
+
*/
|
|
1453
|
+
declare function useServerGrid(options: UseServerGridOptions): ServerGridState;
|
|
1454
|
+
|
|
1455
|
+
interface ComposeGridPropsInput {
|
|
1456
|
+
/** The grid's own baseline — slots, locale, density. */
|
|
1457
|
+
defaults: Partial<MyDataGridProps>;
|
|
1458
|
+
layers: GridLayerMap;
|
|
1459
|
+
/** `props.dataGridProps`, straight from the page. */
|
|
1460
|
+
consumer?: Partial<MyDataGridProps>;
|
|
1461
|
+
}
|
|
1462
|
+
/**
|
|
1463
|
+
* Flattens the grid defaults, every mounted layer and the consumer's own props into one
|
|
1464
|
+
* `DataGrid` prop object.
|
|
1465
|
+
*
|
|
1466
|
+
* Precedence, low to high:
|
|
1467
|
+
* 1. grid defaults
|
|
1468
|
+
* 2. layer `defaults`, in `LAYER_ORDER`
|
|
1469
|
+
* 3. the consumer's `dataGridProps`
|
|
1470
|
+
* 4. layer `overrides`, in `LAYER_ORDER`
|
|
1471
|
+
*
|
|
1472
|
+
* Tier 4 sits above the consumer on purpose — a layer must be able to force the grid into a
|
|
1473
|
+
* coherent state while its mode is on (no checkboxes and no row navigation while rows are
|
|
1474
|
+
* being deleted). It is only ever allowed to publish mode-*on* values there; see
|
|
1475
|
+
* `GridLayerContribution.overrides`.
|
|
1476
|
+
*/
|
|
1477
|
+
declare function composeGridProps({ defaults, layers, consumer, }: ComposeGridPropsInput): Partial<MyDataGridProps>;
|
|
1478
|
+
|
|
1479
|
+
/**
|
|
1480
|
+
* Columns the user is allowed to hide.
|
|
1481
|
+
*
|
|
1482
|
+
* v1 excluded `"actions"` by *field*, but that is a column **type** — the real action columns
|
|
1483
|
+
* are `edit` and `delete`, so both showed up in the columns panel and could be hidden (and
|
|
1484
|
+
* persisted hidden) out from under the layer that owns them. Matched on both here.
|
|
1485
|
+
*/
|
|
1486
|
+
declare const togglableFields: (columns?: readonly GridColDef[]) => string[];
|
|
1487
|
+
interface ResolvedGridState {
|
|
1488
|
+
paginationModel: GridPaginationModel;
|
|
1489
|
+
sortModel: GridSortModel;
|
|
1490
|
+
filterModel: MyGridFilterModel;
|
|
1491
|
+
columnVisibilityModel: GridColumnVisibilityModel;
|
|
1492
|
+
}
|
|
1493
|
+
interface ResolveInitialStateInput {
|
|
1494
|
+
storageKey: string;
|
|
1495
|
+
/** `slotProps.dontSaveState` — skip the session store entirely. */
|
|
1496
|
+
disabled?: boolean;
|
|
1497
|
+
initialState?: MyDataGridProps["initialState"];
|
|
1498
|
+
columns?: readonly GridColDef[];
|
|
1499
|
+
}
|
|
1500
|
+
/**
|
|
1501
|
+
* Works out the state a grid starts in, from what the session remembers and what the page
|
|
1502
|
+
* declared. The only place that precedence lives.
|
|
1503
|
+
*
|
|
1504
|
+
* Pagination, sorting and column visibility prefer the **session**: those are the user's own
|
|
1505
|
+
* choices and should survive navigating away and back.
|
|
1506
|
+
*
|
|
1507
|
+
* Filters are the exception — the page's `initialState.filters` wins, key by key. Those
|
|
1508
|
+
* express scoping ("this embarque's recibos"), not preference, and in v1 the session beat
|
|
1509
|
+
* them outright, so a grid opened on record B kept showing record A's rows for the rest of
|
|
1510
|
+
* the session. Pages worked around it by repeating the same filter in `api.data.args`; they
|
|
1511
|
+
* no longer have to. A user-set filter on any *other* key still survives.
|
|
1512
|
+
*/
|
|
1513
|
+
declare function resolveInitialState({ storageKey, disabled, initialState, columns, }: ResolveInitialStateInput): ResolvedGridState;
|
|
1514
|
+
|
|
1515
|
+
/**
|
|
1516
|
+
* Page sizes offered by the grid and by the pagination slot. One list: in v1 the grid and
|
|
1517
|
+
* `CustomPagination` each declared their own copy and had to be kept in sync by hand.
|
|
1518
|
+
*
|
|
1519
|
+
* `-1` is "Todos" — the backends read that literal and return the whole result set with
|
|
1520
|
+
* `next`/`previous` null but a correct `count`.
|
|
1521
|
+
*/
|
|
1522
|
+
declare const PAGE_SIZE_OPTIONS: (number | {
|
|
1523
|
+
value: number;
|
|
1524
|
+
label: string;
|
|
1525
|
+
})[];
|
|
1526
|
+
declare const DEFAULT_PAGINATION: GridPaginationModel;
|
|
1527
|
+
/**
|
|
1528
|
+
* The order layer contributions are applied in — columns, toolbar buttons and prop overrides
|
|
1529
|
+
* alike. Declared here so it never depends on how the layers happen to nest, which is what
|
|
1530
|
+
* made the delete column's position accidental in v1.
|
|
1531
|
+
*/
|
|
1532
|
+
declare const LAYER_ORDER: readonly GridLayerId[];
|
|
1533
|
+
|
|
1534
|
+
interface DeleteGridColumnsProps {
|
|
1535
|
+
displayDelete?: boolean;
|
|
1536
|
+
handleOpen: (id: GridRowId) => () => void;
|
|
1537
|
+
}
|
|
1538
|
+
/**
|
|
1539
|
+
* The per-row delete action, shown only while delete mode is on.
|
|
1540
|
+
*
|
|
1541
|
+
* v1 left `type` off, so the column defaulted to `string`: sortable by a user, and offered in
|
|
1542
|
+
* the filters panel as an "Eliminar" text filter that meant nothing. Declaring `type: "actions"`
|
|
1543
|
+
* fixes both — but it has to come with `getActions` rather than `renderCell`, because an
|
|
1544
|
+
* explicit `renderCell` beats the actions type's own cell and takes its keyboard handling and
|
|
1545
|
+
* overflow menu with it.
|
|
1546
|
+
*/
|
|
1547
|
+
declare const deleteColumn: (props: DeleteGridColumnsProps) => GridColDefPropsOverrides[];
|
|
1548
|
+
|
|
1030
1549
|
/**
|
|
1031
1550
|
* Datos que recibe el renderizado de detalle de un input. Es un subconjunto de
|
|
1032
1551
|
* `FieldProps` (los campos que necesita la vista de solo lectura), más un
|
|
@@ -1311,8 +1830,20 @@ interface DrawerGridDrawerConfig {
|
|
|
1311
1830
|
form: DetailFormConfig["form"];
|
|
1312
1831
|
sections: DetailFormConfig["sections"];
|
|
1313
1832
|
permissionsPath?: string;
|
|
1314
|
-
/** Panel width. Defaults to the drawer's own default (
|
|
1833
|
+
/** Panel width. Defaults to the drawer's own default (600). */
|
|
1315
1834
|
width?: number | string;
|
|
1835
|
+
/**
|
|
1836
|
+
* Let the user drag the drawer's inner edge to resize it. The dragged width is remembered
|
|
1837
|
+
* across openings under a key derived from the grid's own storage key — override it with
|
|
1838
|
+
* `widthStorageKey`, or turn the memory off by passing an empty string.
|
|
1839
|
+
*/
|
|
1840
|
+
resizable?: boolean;
|
|
1841
|
+
/** Smallest width the drag allows, in px. Defaults to `320`. */
|
|
1842
|
+
minWidth?: number;
|
|
1843
|
+
/** Largest width the drag allows, in px. Defaults to the viewport minus a margin. */
|
|
1844
|
+
maxWidth?: number;
|
|
1845
|
+
/** Where the dragged width is remembered. Defaults to the grid's storage key + `_DW`. */
|
|
1846
|
+
widthStorageKey?: string;
|
|
1316
1847
|
title?: {
|
|
1317
1848
|
create?: ReactNode;
|
|
1318
1849
|
record?: ReactNode | ((id: GridRowId) => ReactNode);
|
|
@@ -1329,7 +1860,11 @@ interface DrawerGridDrawerConfig {
|
|
|
1329
1860
|
/** Single-record query hook, called with `{ id, ...args(id) }`. */
|
|
1330
1861
|
query: any;
|
|
1331
1862
|
mutation: any;
|
|
1332
|
-
/**
|
|
1863
|
+
/**
|
|
1864
|
+
* Defaults to `"detail"` (read-only), matching a row-click. Use `"edit"` for an always
|
|
1865
|
+
* editable drawer — a `"detail"` drawer already opens editing while the grid itself is
|
|
1866
|
+
* in edit mode.
|
|
1867
|
+
*/
|
|
1333
1868
|
pageType?: PageType;
|
|
1334
1869
|
successMessage?: string | ((response: any) => string);
|
|
1335
1870
|
/** Extra query args merged with `{ id }`. */
|
|
@@ -1341,30 +1876,89 @@ interface DrawerGridDrawerConfig {
|
|
|
1341
1876
|
};
|
|
1342
1877
|
/** Runs after any successful create/edit (e.g. side effects; the grid refetches via RTK tag invalidation). */
|
|
1343
1878
|
onSaved?: (response: any) => void;
|
|
1344
|
-
/**
|
|
1879
|
+
/**
|
|
1880
|
+
* Whether these records have a full page of their own. Defaults to `true`.
|
|
1881
|
+
*
|
|
1882
|
+
* Set it to `false` for rows that exist only inside their parent and have no route —
|
|
1883
|
+
* it drops the drawer header's "open full page" button *and* the Ctrl/Alt+click
|
|
1884
|
+
* shortcuts, which would otherwise navigate to a route that isn't registered.
|
|
1885
|
+
*/
|
|
1345
1886
|
showOpenFullPage?: boolean;
|
|
1887
|
+
/**
|
|
1888
|
+
* Show the footer navigator that walks the grid's rows — prev/next arrows plus the
|
|
1889
|
+
* record's position — in the record drawer. Defaults to `true`.
|
|
1890
|
+
*
|
|
1891
|
+
* It also gates "Guardar ↓", the save that steps to the next row instead of closing:
|
|
1892
|
+
* without a list to walk there is nothing to continue to.
|
|
1893
|
+
*/
|
|
1894
|
+
showNavigator?: boolean;
|
|
1895
|
+
/** Rótulos del pie del cajón. `saveAndNext` por defecto es `"Guardar ↓"`. */
|
|
1346
1896
|
labels?: {
|
|
1347
1897
|
save?: string;
|
|
1348
1898
|
cancel?: string;
|
|
1899
|
+
saveAndNext?: string;
|
|
1349
1900
|
};
|
|
1350
1901
|
}
|
|
1902
|
+
interface DrawerGridEditConfig {
|
|
1903
|
+
/** Hides the toggle (and its shortcuts) without touching permissions. */
|
|
1904
|
+
disabled?: boolean;
|
|
1905
|
+
/**
|
|
1906
|
+
* Drives edit mode from outside instead of leaving it to the toolbar toggle — pass the
|
|
1907
|
+
* edit state of the form this grid is embedded in and a row click follows it, opening the
|
|
1908
|
+
* drawer already editing without the user flipping a second switch. The toolbar button
|
|
1909
|
+
* disappears while it's set, and it stays fail-closed against the model's permission.
|
|
1910
|
+
*/
|
|
1911
|
+
active?: boolean;
|
|
1912
|
+
}
|
|
1351
1913
|
interface DrawerGridProps {
|
|
1352
|
-
/**
|
|
1353
|
-
|
|
1914
|
+
/**
|
|
1915
|
+
* Full `ServerGrid_v2` configuration (pathname, api, dataGridProps, slotProps, ref), with
|
|
1916
|
+
* one twist: `api.edit` here is the drawer's edit *mode* — a toolbar toggle that makes a
|
|
1917
|
+
* row click open the drawer already editing — not in-grid row editing. It takes no
|
|
1918
|
+
* mutation and no columns, because everything that writes goes through the drawer form.
|
|
1919
|
+
*/
|
|
1920
|
+
grid: Omit<ServerGridProps, "api" | "ref"> & {
|
|
1921
|
+
api: Omit<ServerGridProps["api"], "edit" | "editToggle"> & {
|
|
1922
|
+
edit?: DrawerGridEditConfig;
|
|
1923
|
+
};
|
|
1924
|
+
ref?: RefObject<any>;
|
|
1925
|
+
};
|
|
1354
1926
|
drawer: DrawerGridDrawerConfig;
|
|
1355
1927
|
}
|
|
1356
1928
|
/**
|
|
1357
|
-
* A
|
|
1929
|
+
* A `ServerGrid_v2` whose rows and create button open a `DetailFormDrawer_v2` instead of
|
|
1358
1930
|
* navigating to a full page — without giving up the full-page routes. A row click and the
|
|
1359
1931
|
* create menu's "Manual" option both open the drawer; Ctrl/Cmd+click still opens the full
|
|
1360
|
-
* page in a new tab,
|
|
1361
|
-
* routes stay reachable either way.
|
|
1932
|
+
* page in a new tab, Alt+click opens it in the same tab, and the record drawer carries an
|
|
1933
|
+
* "open full page" button — so the routes stay reachable either way. Grids whose rows have
|
|
1934
|
+
* no route of their own turn all three off with `drawer.showOpenFullPage: false`.
|
|
1362
1935
|
*
|
|
1363
|
-
*
|
|
1936
|
+
* A record drawer also carries a footer navigator: arrows (and Alt+↑ / Alt+↓) that walk the
|
|
1937
|
+
* grid's rows in their displayed order, position counter included, so reviewing a list no
|
|
1938
|
+
* longer means closing the drawer and clicking the next row. Stepping off either end of the
|
|
1939
|
+
* page turns the grid's own page instead of stopping, so the walk covers every row behind
|
|
1940
|
+
* the current filters — not just the ones on screen. Turn it off with
|
|
1941
|
+
* `drawer.showNavigator: false`.
|
|
1942
|
+
*
|
|
1943
|
+
* Editing a list that way gets a third footer button, "Guardar ↓" / Alt+Shift+↓ (rename it
|
|
1944
|
+
* with `drawer.labels.saveAndNext`): it saves and steps to the next row instead of closing,
|
|
1945
|
+
* carrying the edit mode over, so capturing a column across many rows is one pass rather than
|
|
1946
|
+
* open-edit-save-reopen per row — and with the shortcut, without leaving the keyboard. It
|
|
1947
|
+
* rides on the navigator — no navigator, or last row, and there is just Guardar.
|
|
1948
|
+
*
|
|
1949
|
+
* Edit mode is opt-in with `api.edit: {}` and adds nothing to the grid but a toolbar toggle —
|
|
1950
|
+
* no mutation, no actions column, no in-grid editing. While it's on, a row click opens the
|
|
1951
|
+
* record drawer already editing, provided the record allows it; the drawer form is the only
|
|
1952
|
+
* thing that writes. A grid embedded in a detail form can hand the mode over instead, with
|
|
1953
|
+
* `api.edit: { active: pageType === "edit" }`, so it follows the form rather than asking for
|
|
1954
|
+
* a second switch.
|
|
1955
|
+
*
|
|
1956
|
+
* The full grid config goes under `grid` (`{ pathname, api, dataGridProps, slotProps }`),
|
|
1364
1957
|
* alongside `drawer`.
|
|
1365
1958
|
*
|
|
1366
|
-
* Composition only: the
|
|
1367
|
-
* are generic passthroughs),
|
|
1959
|
+
* Composition only: the grid stays drawer-agnostic (its `onRowClick`, `onManualCreate` and
|
|
1960
|
+
* `onEditModeChange` are generic passthroughs), and the navigator reaches it through the
|
|
1961
|
+
* public `ServerGridHandle` rather than MUI's internal state.
|
|
1368
1962
|
*/
|
|
1369
1963
|
declare function DrawerGrid({ grid, drawer }: DrawerGridProps): react_jsx_runtime.JSX.Element;
|
|
1370
1964
|
|
|
@@ -1476,6 +2070,20 @@ interface DetailFormDialogProps {
|
|
|
1476
2070
|
*/
|
|
1477
2071
|
declare function DetailFormDialog({ open, onClose, title, api, form, sections, pageType, permissionsPath, onSuccess, labels, slotProps, }: DetailFormDialogProps): react_jsx_runtime.JSX.Element;
|
|
1478
2072
|
|
|
2073
|
+
interface DetailFormDrawerNavigation {
|
|
2074
|
+
/** Open the previous record of the list the drawer is walking. */
|
|
2075
|
+
onPrev: () => void;
|
|
2076
|
+
onNext: () => void;
|
|
2077
|
+
/** Whether a previous/next record exists. The arrows are disabled when it doesn't. */
|
|
2078
|
+
hasPrev: boolean;
|
|
2079
|
+
hasNext: boolean;
|
|
2080
|
+
/** 1-based position of the current record, shown between the arrows. */
|
|
2081
|
+
position?: number;
|
|
2082
|
+
/** Size of the list; shown as `position / count`. */
|
|
2083
|
+
count?: number;
|
|
2084
|
+
/** Blocks both arrows for a caller-side reason (e.g. while the next batch loads). */
|
|
2085
|
+
disabled?: boolean;
|
|
2086
|
+
}
|
|
1479
2087
|
interface DetailFormDrawerProps {
|
|
1480
2088
|
open: boolean;
|
|
1481
2089
|
/** Close the drawer. Also invoked after a successful save and on cancel. */
|
|
@@ -1486,16 +2094,55 @@ interface DetailFormDrawerProps {
|
|
|
1486
2094
|
sections: DetailFormConfig["sections"];
|
|
1487
2095
|
/** Defaults to `"create"`. */
|
|
1488
2096
|
pageType?: PageType;
|
|
2097
|
+
/**
|
|
2098
|
+
* Open a `"detail"` drawer straight in edit mode, as if the user had hit the Editar
|
|
2099
|
+
* button. Ignored for the other page types, and for records the user may not edit.
|
|
2100
|
+
*/
|
|
2101
|
+
startInEdit?: boolean;
|
|
2102
|
+
/**
|
|
2103
|
+
* Identity of the record on show. Swapping it (as the navigator does, without remounting
|
|
2104
|
+
* the drawer) re-derives the per-record chrome — the in-place edit toggle drops back to
|
|
2105
|
+
* read-only and `startInEdit` is re-applied against the new record's own permissions.
|
|
2106
|
+
*/
|
|
2107
|
+
recordKey?: string | number;
|
|
1489
2108
|
permissionsPath?: string;
|
|
1490
2109
|
/** Runs after a successful mutation, before the drawer closes. Receives the response. */
|
|
1491
2110
|
onSuccess?: (response: any) => void;
|
|
1492
|
-
/**
|
|
2111
|
+
/**
|
|
2112
|
+
* Footer record navigator: prev/next arrows (Alt+↑ / Alt+↓) that step through a list of
|
|
2113
|
+
* sibling records — e.g. the rows of the grid the drawer was opened from — without
|
|
2114
|
+
* closing the drawer. Omit it and no navigator renders.
|
|
2115
|
+
*/
|
|
2116
|
+
navigation?: DetailFormDrawerNavigation;
|
|
2117
|
+
/** Panel width. Defaults to `600`. */
|
|
1493
2118
|
width?: number | string;
|
|
1494
2119
|
/** Side the drawer slides in from. Defaults to `"right"`. */
|
|
1495
2120
|
anchor?: DrawerProps["anchor"];
|
|
2121
|
+
/**
|
|
2122
|
+
* Let the user drag the drawer's inner edge to resize it. Forwarded to `MainDrawer_v2`
|
|
2123
|
+
* along with the four props below — see it for the full behaviour.
|
|
2124
|
+
*/
|
|
2125
|
+
resizable?: boolean;
|
|
2126
|
+
/** Smallest width the drag allows, in px. Defaults to `320`. */
|
|
2127
|
+
minWidth?: number;
|
|
2128
|
+
/** Largest width the drag allows, in px. Defaults to the viewport minus a margin. */
|
|
2129
|
+
maxWidth?: number;
|
|
2130
|
+
/**
|
|
2131
|
+
* Remember the dragged width under this `localStorage` key. Worth setting whenever the
|
|
2132
|
+
* drawer is remounted per record — a fresh mount otherwise forgets the drag.
|
|
2133
|
+
*/
|
|
2134
|
+
widthStorageKey?: string;
|
|
2135
|
+
/** Fires with the final dragged width in px, or `null` when a double click resets it. */
|
|
2136
|
+
onWidthChange?: (width: number | null) => void;
|
|
1496
2137
|
labels?: {
|
|
1497
2138
|
save?: string;
|
|
1498
2139
|
cancel?: string;
|
|
2140
|
+
/**
|
|
2141
|
+
* Rótulo del guardar-y-seguir. Por defecto `"Guardar ↓"`, corto porque va junto al
|
|
2142
|
+
* Guardar de siempre y el tooltip ya dice qué hace; pásale un texto propio donde el
|
|
2143
|
+
* paso al siguiente registro merezca nombrarse ("Guardar y siguiente bulto").
|
|
2144
|
+
*/
|
|
2145
|
+
saveAndNext?: string;
|
|
1499
2146
|
};
|
|
1500
2147
|
slots?: {
|
|
1501
2148
|
/** Extra actions rendered in the header, left of the close button (e.g. "open full page"). */
|
|
@@ -1505,15 +2152,21 @@ interface DetailFormDrawerProps {
|
|
|
1505
2152
|
drawer?: Partial<DrawerProps>;
|
|
1506
2153
|
saveButton?: Partial<ButtonProps>;
|
|
1507
2154
|
cancelButton?: Partial<ButtonProps>;
|
|
2155
|
+
saveAndNextButton?: Partial<ButtonProps>;
|
|
1508
2156
|
};
|
|
1509
2157
|
}
|
|
1510
2158
|
/**
|
|
1511
2159
|
* A record form inside a side drawer. Reuses the same `useDetailForm` engine and
|
|
1512
|
-
* `DetailForm` body as `DetailPage_v2
|
|
1513
|
-
*
|
|
1514
|
-
* the
|
|
2160
|
+
* `DetailForm` body as `DetailPage_v2`, and `MainDrawer_v2` for the chrome — so it frames
|
|
2161
|
+
* the form exactly like every other v2 drawer. What it adds on top is the per-record
|
|
2162
|
+
* furniture: edit/delete in the header, and a footer holding the form actions and, when
|
|
2163
|
+
* `navigation` is given, a prev/next record navigator (Alt+↑ / Alt+↓) plus "Guardar ↓"
|
|
2164
|
+
* (Alt+Shift+↓) — a save that steps to the next record instead of closing, so a column can be
|
|
2165
|
+
* captured down a list in one pass without the hands leaving the keyboard. Rename it with
|
|
2166
|
+
* `labels.saveAndNext`. Guardar sits outside the `<form>` and submits via the native
|
|
2167
|
+
* `form={formId}` attribute; Guardar ↓ submits by hand, so the implicit Enter stays Guardar.
|
|
1515
2168
|
*/
|
|
1516
|
-
declare function DetailFormDrawer({ open, onClose, title, api, form, sections, pageType, permissionsPath, onSuccess, width, anchor, labels, slots, slotProps, }: DetailFormDrawerProps): react_jsx_runtime.JSX.Element;
|
|
2169
|
+
declare function DetailFormDrawer({ open, onClose, title, api, form, sections, pageType, startInEdit, recordKey, permissionsPath, onSuccess, navigation, width, anchor, resizable, minWidth, maxWidth, widthStorageKey, onWidthChange, labels, slots, slotProps, }: DetailFormDrawerProps): react_jsx_runtime.JSX.Element;
|
|
1517
2170
|
|
|
1518
2171
|
/**
|
|
1519
2172
|
* Encabezado por defecto del `PageContainer`: resuelve título y breadcrumbs a
|
|
@@ -1548,6 +2201,9 @@ interface MainLayoutPageHeaderProps extends PageHeaderProps {
|
|
|
1548
2201
|
* `header` (leído por el `PageHeader` por defecto).
|
|
1549
2202
|
*
|
|
1550
2203
|
* Atajo Shift+F: alterna pantalla completa (oculta navegación y encabezados).
|
|
2204
|
+
*
|
|
2205
|
+
* El estado plegado/expandido del sidebar de escritorio se guarda en
|
|
2206
|
+
* `localStorage` y se restaura al recargar (ver `sidebarStorageKey`).
|
|
1551
2207
|
**/
|
|
1552
2208
|
interface MainLayoutProps {
|
|
1553
2209
|
/** Definición de navegación de Toolpad (items del sidebar). */
|
|
@@ -1571,12 +2227,56 @@ interface MainLayoutProps {
|
|
|
1571
2227
|
};
|
|
1572
2228
|
/** Ancho del sidebar expandido. */
|
|
1573
2229
|
sidebarExpandedWidth?: number;
|
|
2230
|
+
/**
|
|
2231
|
+
* Estado inicial del sidebar cuando no hay nada guardado en `localStorage`
|
|
2232
|
+
* (o cuando la persistencia está desactivada).
|
|
2233
|
+
*/
|
|
2234
|
+
defaultSidebarCollapsed?: boolean;
|
|
2235
|
+
/**
|
|
2236
|
+
* Muestra el título bajo el icono cuando el sidebar está plegado, como hace
|
|
2237
|
+
* Toolpad por defecto. Con `false` el menú plegado queda solo con iconos
|
|
2238
|
+
* (el título sigue en el árbol de accesibilidad, dando nombre al botón).
|
|
2239
|
+
*/
|
|
2240
|
+
miniSidebarLabels?: boolean;
|
|
2241
|
+
/**
|
|
2242
|
+
* Clave de `localStorage` donde se recuerda si el sidebar quedó plegado, de
|
|
2243
|
+
* forma que se restaure al recargar. Pasa `null` para no persistirlo.
|
|
2244
|
+
*
|
|
2245
|
+
* Solo se guarda el estado del sidebar de escritorio (breakpoint `md` hacia
|
|
2246
|
+
* arriba); el drawer temporal de móvil siempre arranca cerrado.
|
|
2247
|
+
*/
|
|
2248
|
+
sidebarStorageKey?: string | null;
|
|
1574
2249
|
/**
|
|
1575
2250
|
* Color de fondo del área de contenido. Se aplica al scroll container
|
|
1576
2251
|
* (`<main>`) para que cubra toda la altura scrolleable y no se corte cuando
|
|
1577
2252
|
* la página es más larga que el viewport.
|
|
1578
2253
|
*/
|
|
1579
2254
|
pageBackgroundColor?: string;
|
|
2255
|
+
/**
|
|
2256
|
+
* Color del contorno: el marco continuo que forman el header y el sidebar
|
|
2257
|
+
* alrededor del panel de contenido.
|
|
2258
|
+
*/
|
|
2259
|
+
chromeBackgroundColor?: string;
|
|
2260
|
+
/**
|
|
2261
|
+
* Radio de las esquinas del panel de contenido. Como el contorno lo rodea
|
|
2262
|
+
* por arriba y por la izquierda, redondearlo recorta el borde del header y
|
|
2263
|
+
* del sidebar con la misma curva. `0` deja el contenido a ras.
|
|
2264
|
+
*/
|
|
2265
|
+
contentBorderRadius?: number;
|
|
2266
|
+
/**
|
|
2267
|
+
* Separación en px entre el contorno y el panel de contenido, a la derecha
|
|
2268
|
+
* y abajo (arriba y a la izquierda el contenido va a ras del header y del
|
|
2269
|
+
* sidebar). Se descuenta de la altura del área de trabajo para que el
|
|
2270
|
+
* contenido siga cabiendo sin scroll extra.
|
|
2271
|
+
*/
|
|
2272
|
+
contentGap?: number;
|
|
2273
|
+
/**
|
|
2274
|
+
* Padding horizontal dentro del panel de contenido. `PageContainer` es un
|
|
2275
|
+
* `Container` de MUI, que trae 24px en `sm` hacia arriba; aquí se fija un
|
|
2276
|
+
* valor único para todos los breakpoints. Número = unidades de spacing del
|
|
2277
|
+
* tema (2 => 16px); también admite string CSS ("12px").
|
|
2278
|
+
*/
|
|
2279
|
+
contentPaddingX?: number | string;
|
|
1580
2280
|
/**
|
|
1581
2281
|
* Estilos extra para el `DashboardLayout`. Se aplican después de los del
|
|
1582
2282
|
* layout, así que pueden sobreescribirlos (ej. el ancho mínimo del sidebar
|
|
@@ -1659,5 +2359,5 @@ interface PulseDotProps {
|
|
|
1659
2359
|
* contrario un color fijo. Se usa para indicar conexión/actividad en vivo. */
|
|
1660
2360
|
declare function PulseDot({ active, inactiveColor, size, title }: PulseDotProps): react_jsx_runtime.JSX.Element;
|
|
1661
2361
|
|
|
1662
|
-
export { APIContext, APIProvider, ActiveCell, ActiveIcon, Base, ButtonWithDrawer, CSVUpload, ConfirmDialog, ContentLayout, ControlledAddressAutocomplete, ControlledAmountWithCurrency, ControlledDate$1 as ControlledDate, ControlledDate as ControlledDate_v2, ControlledDropdown, ControlledFileField$1 as ControlledFileField, ControlledFileField as ControlledFileField_v2, FileUploadBox as ControlledFileUploadBox, ControlledNumber, ControlledPhoneNumber, ControlledSelect$1 as ControlledSelect, ControlledSelect as ControlledSelect_v2, ControlledSlider as ControlledSimpleSlider, ControlledSlider$1 as ControlledSlider, ControlledSwitch, ControlledText, ControlledTimePicker, ControlledToggleButtons, CoverPage, CreateButtonBase, CreateButtonWithMenuOptions, CrudDropdown, CustomNoRows, DeleteButton, DeleteConfirmationDialog, DetailFormDialog as DetailFormDialog_v2, DetailFormDrawer as DetailFormDrawer_v2, DetailForm as DetailForm_v2, DetailPage$1 as DetailPage, DetailPage as DetailPage_v2, DrawerGrid as DrawerGrid_v2, EditButton, ExportCSV, ExtraButtons, HistorialDrawer, KpiCard, ListPage, Loadable, LoadingComponent, Logo, MainDrawer, MainLayout, MenuItemWithLoading, ModuleCard, MoreOptions, MyGridEditSingleSelect, NavigationContext, NavigationProvider, NormalOrIcon, NotAllowed, NotFound, ObjectProgressStack, Panel, PollingCountdownChip, PulseDot, SaveCancelButton, StatusBadge, StyledMenu, Tabs, Transitions, UncontrolledText, changeTitle, closeProgressSnack, deleteColumn, editColumn, filterQuery, formParser, _default as headerReducer, manualCacheRefresh, mergeSettings, openProgressSnack, query, renderEditCellWithErrorTooltip, setErrors, _default$1 as snackProgressReducer, tags, theme, updateProgressSnackData, useAPI, useDetailForm, useHasPermission, useHasPermission_v2, useKeyboardShortcut, useMutationHandler, useNavigation, valueLabel };
|
|
1663
|
-
export type { APIcontextProps, AddressValue, ComoOpcionesProps, ConfirmDialogProps, ControlledInput, CustomToolbarProps, DeleteGridColumnsProps, DetachedPage, DetailFormApi, DetailFormConfig, DetailFormController, DetailFormDialogProps, DetailFormDrawerProps, DetailFormProps, DetailFormStatus, DetailPageV2Props, DetailRenderProps, DrawerGridDrawerConfig, DrawerGridProps, EditGridColumnsProps, EditReadOnlyFields, FieldFilter, FieldProps$1 as FieldProps, FieldValidationProps, GridArgs, GridColDefPropsOverrides, JSONFormProps, JSONParserProps, KeyboardShortcut, KpiCardProps, MainLayoutPageHeaderProps, MainLayoutProps, MainLayoutSidebarFooterProps, MyDataGridProps, MyGridFilterModel, MyTab, MyTabProps, PageType, PanelProps, PollingCountdownChipProps, ProgressStatusProps, PulseDotProps };
|
|
2362
|
+
export { APIContext, APIProvider, ActiveCell, ActiveIcon, Base, ButtonWithDrawer, CSVUpload, ConfirmDialog, ContentLayout, ControlledAddressAutocomplete, ControlledAmountWithCurrency, ControlledDate$1 as ControlledDate, ControlledDate as ControlledDate_v2, ControlledDropdown, ControlledFileField$1 as ControlledFileField, ControlledFileField as ControlledFileField_v2, FileUploadBox as ControlledFileUploadBox, ControlledNumber, ControlledPhoneNumber, ControlledSelect$1 as ControlledSelect, ControlledSelect as ControlledSelect_v2, ControlledSlider as ControlledSimpleSlider, ControlledSlider$1 as ControlledSlider, ControlledSwitch, ControlledText, ControlledTimePicker, ControlledToggleButtons, CoverPage, CreateButtonBase, CreateButtonWithMenuOptions, CrudDropdown, CustomNoRows, DEFAULT_PAGINATION, DeleteButton, DeleteConfirmationDialog, DetailFormDialog as DetailFormDialog_v2, DetailFormDrawer as DetailFormDrawer_v2, DetailForm as DetailForm_v2, DetailPage$1 as DetailPage, DetailPage as DetailPage_v2, DrawerGrid as DrawerGrid_v2, EditButton, ExportCSV, ExtraButtons, HistorialDrawer, KpiCard, LAYER_ORDER, ListPage, Loadable, LoadingComponent, Logo, MainDrawer, MainDrawer$1 as MainDrawer_v2, MainLayout, MenuItemWithLoading, ModuleCard, MoreOptions, MyGridEditSingleSelect, NavigationContext, NavigationProvider, NormalOrIcon, NotAllowed, NotFound, ObjectProgressStack, PAGE_SIZE_OPTIONS, Panel, PollingCountdownChip, PulseDot, SaveCancelButton, ServerGrid as ServerGrid_v2, StatusBadge, StyledMenu, Tabs, Transitions, UncontrolledText, changeTitle, closeProgressSnack, composeGridProps, deleteColumn$1 as deleteColumn, deleteColumn as deleteColumn_v2, editColumn, filterQuery, formParser, _default as headerReducer, manualCacheRefresh, mergeSettings, openProgressSnack, query, renderEditCellWithErrorTooltip, resolveInitialState, setErrors, _default$1 as snackProgressReducer, tags, theme, togglableFields, updateProgressSnackData, useAPI, useDetailForm, useHasPermission, useHasPermission_v2, useKeyboardShortcut, useMutationHandler, useNavigation, useServerGrid, valueLabel };
|
|
2363
|
+
export type { APIcontextProps, AddressValue, ComoOpcionesProps, ConfirmDialogProps, ControlledInput, CustomToolbarProps, DeleteGridColumnsProps$1 as DeleteGridColumnsProps, DetachedPage, DetailFormApi, DetailFormConfig, DetailFormController, DetailFormDialogProps, DetailFormDrawerNavigation, DetailFormDrawerProps, DetailFormProps, DetailFormStatus, DetailPageV2Props, DetailRenderProps, DrawerGridDrawerConfig, DrawerGridEditConfig, DrawerGridProps, EditGridColumnsProps, EditReadOnlyFields, FieldFilter, FieldProps$1 as FieldProps, FieldValidationProps, GridArgs, GridColDefPropsOverrides, GridLayerContribution, GridLayerId, GridLayerMap, JSONFormProps, JSONParserProps, KeyboardShortcut, KpiCardProps, MainDrawerV2Props, MainLayoutPageHeaderProps, MainLayoutProps, MainLayoutSidebarFooterProps, MyDataGridProps, MyGridFilterModel, MyTab, MyTabProps, PageType, PanelProps, PollingCountdownChipProps, ProgressStatusProps, PulseDotProps, RowsSnapshot, ServerGridArgs, ServerGridCreateApi, ServerGridDataApi, ServerGridDeleteApi, ServerGridEditApi, ServerGridEditToggleApi, ServerGridHandle, ServerGridProps, ServerGridSnapshot, ServerGridState, UseServerGridOptions };
|