@smart-factor/gem-ui-components 0.0.58 → 0.0.60
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/SignEditor.js +13 -13
- package/dist/assets/SignEditor.css +1 -1
- package/dist/components/AccordionSummary/AccordionSummary.d.ts +7 -0
- package/dist/components/AccordionSummary/AccordionSummary.stories.d.ts +8 -0
- package/dist/components/AccordionSummary/AccordionSummary.styles.d.ts +7 -0
- package/dist/components/AuthDecorator/AuthDecorator.d.ts +1 -0
- package/dist/components/Button/Button.d.ts +8 -0
- package/dist/components/Button/Button.stories.d.ts +8 -0
- package/dist/components/Button/Button.styles.d.ts +6 -0
- package/dist/components/Button/ButtonAdd.d.ts +3 -0
- package/dist/components/ButtonWithIcon/ButtonWithIcon.d.ts +10 -0
- package/dist/components/ButtonWithIcon/ButtonWithIcon.stories.d.ts +7 -0
- package/dist/components/Dialog/Dialog.d.ts +3 -0
- package/dist/components/Dialog/Dialog.stories.d.ts +7 -0
- package/dist/components/Dialog/Dialog.styles.d.ts +11 -0
- package/dist/components/Dialog/index.d.ts +2 -0
- package/dist/components/Dialog/types.d.ts +9 -0
- package/dist/components/Dialogs/ConfirmDialog/ConfirmDialog.d.ts +11 -0
- package/dist/components/Dialogs/ConfirmDialog/ConfirmDialog.styles.d.ts +2 -0
- package/dist/components/Dialogs/ConfirmDialog/index.d.ts +1 -0
- package/dist/components/Dialogs/EditDialog/EditDialog.d.ts +13 -0
- package/dist/components/Dialogs/EditDialog/EditDialog.styles.d.ts +2 -0
- package/dist/components/Dialogs/EditDialog/index.d.ts +1 -0
- package/dist/components/Drawer/Drawer.d.ts +15 -0
- package/dist/components/Drawer/Drawer.stories.d.ts +8 -0
- package/dist/components/Drawer/DrawerContent.d.ts +6 -0
- package/dist/components/Drawer/DrawerFooter.d.ts +6 -0
- package/dist/components/Drawer/DrawerHeader.d.ts +7 -0
- package/dist/components/Drawer/index.d.ts +1 -0
- package/dist/components/Dropzone/Dropzone.d.ts +8 -0
- package/dist/components/Dropzone/Dropzone.stories.d.ts +9 -0
- package/dist/components/Dropzone/Dropzone.styles.d.ts +17 -0
- package/dist/components/Dropzone/DropzoneField.d.ts +13 -0
- package/dist/components/Dropzone/const.d.ts +13 -0
- package/dist/components/Dropzone/index.d.ts +3 -0
- package/dist/components/ElementsPicker/ElementsPicker.d.ts +8 -0
- package/dist/components/ElementsPicker/ElementsPicker.stories.d.ts +8 -0
- package/dist/components/ElementsPicker/ElementsPickerElement.d.ts +9 -0
- package/dist/components/ElementsPicker/index.d.ts +2 -0
- package/dist/components/FixedActionsBottomPanel/FixedActionsBottomPanel.d.ts +18 -0
- package/dist/components/FixedActionsBottomPanel/FixedActionsBottomPanel.stories.d.ts +13 -0
- package/dist/components/FixedActionsBottomPanel/FixedActionsBottomPanel.styles.d.ts +6 -0
- package/dist/components/FormComponents/Autocomplete/Autocomplete.d.ts +4 -0
- package/dist/components/FormComponents/Autocomplete/Autocomplete.stories.d.ts +11 -0
- package/dist/components/FormComponents/Autocomplete/Autocomplete.styles.d.ts +7 -0
- package/dist/components/FormComponents/Autocomplete/index.d.ts +2 -0
- package/dist/components/FormComponents/Autocomplete/types.d.ts +27 -0
- package/dist/components/FormComponents/ContextualSearch/ContextualSearch.d.ts +40 -0
- package/dist/components/FormComponents/ContextualSearch/ContextualSearch.stories.d.ts +15 -0
- package/dist/components/FormComponents/ContextualSearch/ContextualSearch.styles.d.ts +4 -0
- package/dist/components/FormComponents/ContextualSearch/ContextualSearchControlled.d.ts +9 -0
- package/dist/components/FormComponents/ContextualSearch/ContextualSearchListListbox.d.ts +7 -0
- package/dist/components/FormComponents/ContextualSearch/index.d.ts +2 -0
- package/dist/components/FormComponents/ContextualSearch/mock.d.ts +13 -0
- package/dist/components/FormComponents/DatePicker/DatePicker.d.ts +12 -0
- package/dist/components/FormComponents/DatePicker/DatePicker.stories.d.ts +9 -0
- package/dist/components/FormComponents/DatePicker/DatePicker.styles.d.ts +7 -0
- package/dist/components/FormComponents/DateTimePicker/DateTimePicker.d.ts +12 -0
- package/dist/components/FormComponents/DateTimePicker/DateTimePicker.stories.d.ts +9 -0
- package/dist/components/FormComponents/DateTimePicker/DateTimePicker.styles.d.ts +7 -0
- package/dist/components/FormComponents/Input/Input.d.ts +11 -0
- package/dist/components/FormComponents/Input/Input.stories.d.ts +11 -0
- package/dist/components/FormComponents/Input/Input.styles.d.ts +3 -0
- package/dist/components/FormComponents/RadioChips/RadioChips.d.ts +21 -0
- package/dist/components/FormComponents/RadioChips/RadioChips.stories.d.ts +9 -0
- package/dist/components/FormComponents/RadioChips/RadioChips.styles.d.ts +10 -0
- package/dist/components/FormComponents/SearchInput/SearchInput.d.ts +11 -0
- package/dist/components/FormComponents/SearchInput/SearchInput.stories.d.ts +9 -0
- package/dist/components/FormComponents/SearchInput/SearchInput.styles.d.ts +1 -0
- package/dist/components/FormComponents/Select/Select.d.ts +30 -0
- package/dist/components/FormComponents/Select/Select.stories.d.ts +11 -0
- package/dist/components/FormComponents/Select/Select.styles.d.ts +4 -0
- package/dist/components/FormComponents/index.d.ts +9 -0
- package/dist/components/Grid/Grid.d.ts +4 -0
- package/dist/components/Grid/index.d.ts +2 -0
- package/dist/components/Grid/types.d.ts +40 -0
- package/dist/components/Grid/useGridInitialState.d.ts +6 -0
- package/dist/components/LoadingBackdrop/LoadingBackdrop.d.ts +7 -0
- package/dist/components/LoadingBackdrop/LoadingBackdrop.stories.d.ts +7 -0
- package/dist/components/LoadingBackdrop/index.d.ts +1 -0
- package/dist/components/ResizableWrapper/ResizableWrapper.d.ts +11 -0
- package/dist/components/ResizableWrapper/ResizableWrapper.stories.d.ts +7 -0
- package/dist/components/ResizableWrapper/ResizableWrapper.styles.d.ts +10 -0
- package/dist/components/SignEditor/SignEditor.d.ts +2 -3
- package/dist/components/SignEditor/SignEditor.stories.d.ts +1 -1
- package/dist/components/SimpleAutocomplete/SimpleAutocomplete.d.ts +3 -0
- package/dist/components/SimpleAutocomplete/SimpleAutocomplete.stories.d.ts +11 -0
- package/dist/components/SimpleAutocomplete/index.d.ts +1 -0
- package/dist/components/SimpleInput/SimpleInput.d.ts +6 -0
- package/dist/components/SimpleInput/SimpleInput.stories.d.ts +7 -0
- package/dist/components/SimpleSelect/SimpleSelect.d.ts +14 -0
- package/dist/components/SimpleSelect/SimpleSelect.stories.d.ts +7 -0
- package/dist/components/Stepper/Stepper.d.ts +13 -0
- package/dist/components/Stepper/Stepper.stories.d.ts +7 -0
- package/dist/components/Stepper/Stepper.styles.d.ts +9 -0
- package/dist/components/StickyContainer/StickyContainer.d.ts +7 -0
- package/dist/components/StickyContainer/StickyContainer.stories.d.ts +7 -0
- package/dist/components/StickyContainer/StickyContainer.styles.d.ts +7 -0
- package/dist/components/SvgImage/SvgImage.d.ts +10 -0
- package/dist/components/SvgImage/SvgImage.styles.d.ts +5 -0
- package/dist/components/SvgImage/convertFontToBase64.d.ts +1 -0
- package/dist/components/SvgImage/index.d.ts +0 -0
- package/dist/components/TableComponents/ContextMenu/ContextMenu.d.ts +6 -0
- package/dist/components/TableComponents/ContextMenu/ContextMenu.stories.d.ts +7 -0
- package/dist/components/TableComponents/ContextMenu/ContextMenu.styles.d.ts +1 -0
- package/dist/components/TableComponents/ContextMenu/ContextMenuContext.d.ts +7 -0
- package/dist/components/TableComponents/ContextMenu/ContextMenuItem.d.ts +8 -0
- package/dist/components/TableComponents/ContextMenu/ContextMenuPropsContext/ContextMenuPropsContext.d.ts +6 -0
- package/dist/components/TableComponents/ContextMenu/ContextMenuPropsContext/useContextMenuProps.d.ts +3 -0
- package/dist/components/TableComponents/ContextMenu/index.d.ts +2 -0
- package/dist/components/TableComponents/TableActions/TableActions.d.ts +7 -0
- package/dist/components/TableComponents/TableActions/TableActions.stories.d.ts +7 -0
- package/dist/components/TableComponents/TableActions/index.d.ts +2 -0
- package/dist/components/TableComponents/TableCustomToolbar/TableCustomToolbar.d.ts +10 -0
- package/dist/components/TableComponents/TableCustomToolbar/index.d.ts +1 -0
- package/dist/components/TableComponents/TableExportButton/TableExportButton.d.ts +9 -0
- package/dist/components/TableComponents/TableExportButton/index.d.ts +1 -0
- package/dist/components/TableComponents/TableRecord/TableRecord.d.ts +8 -0
- package/dist/components/TableComponents/TableRecord/index.d.ts +1 -0
- package/dist/components/TableComponents/TableWithPagination/TableWithPagination.d.ts +4 -0
- package/dist/components/TableComponents/TableWithPagination/TableWithPagination.stories.d.ts +13 -0
- package/dist/components/TableComponents/TableWithPagination/TableWithPaginationExport.d.ts +0 -0
- package/dist/components/TableComponents/TableWithPagination/TableWrapper.d.ts +8 -0
- package/dist/components/TableComponents/TableWithPagination/types.d.ts +53 -0
- package/dist/components/TableComponents/index.d.ts +5 -0
- package/dist/components/TabsPanel/TabsPanel.d.ts +14 -0
- package/dist/components/TabsPanel/TabsPanel.stories.d.ts +7 -0
- package/dist/components/TabsPanel/TabsPanel.styles.d.ts +8 -0
- package/dist/components/Toast/Toast.stories.d.ts +7 -0
- package/dist/components/Toast/Toast.styles.d.ts +12 -0
- package/dist/components/Toast/ToastContent.d.ts +4 -0
- package/dist/components/Toast/errorToast.d.ts +1 -0
- package/dist/components/Toast/index.d.ts +2 -0
- package/dist/components/Toast/successToast.d.ts +1 -0
- package/dist/components/Tree/Tree.d.ts +18 -0
- package/dist/components/Tree/Tree.stories.d.ts +7 -0
- package/dist/components/Tree/index.d.ts +1 -0
- package/dist/consts/data-grid.d.ts +122 -0
- package/dist/helpers/columns/getBooleanColumn.d.ts +6 -0
- package/dist/helpers/columns/getDateColumn.d.ts +6 -0
- package/dist/helpers/columns/getDateTimeColumn.d.ts +6 -0
- package/dist/helpers/columns/getNumericColumn.d.ts +6 -0
- package/dist/helpers/columns/getStaticColumn.d.ts +6 -0
- package/dist/helpers/columns/getStringColumn.d.ts +6 -0
- package/dist/helpers/columns/index.d.ts +6 -0
- package/dist/helpers/date/formatDate.d.ts +3 -0
- package/dist/helpers/date/formatDateTime.d.ts +3 -0
- package/dist/helpers/date/index.d.ts +2 -0
- package/dist/helpers/getErrorMessage.d.ts +1 -0
- package/dist/helpers/index.d.ts +2 -0
- package/dist/helpers/sanitizeSvgString.d.ts +5 -0
- package/dist/helpers/zodTransforms.d.ts +11 -0
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/useContextMenu.d.ts +8 -0
- package/dist/hooks/useDataGridInitialState.d.ts +6 -0
- package/dist/hooks/useDataGridState.d.ts +9 -0
- package/dist/hooks/useGetFileUrl.d.ts +5 -0
- package/dist/hooks/useKeepDefinedValue.d.ts +1 -0
- package/dist/hooks/useKeyOnChange.d.ts +1 -0
- package/dist/hooks/useScrollPosition.d.ts +2 -0
- package/dist/licenses.txt +1 -1
- package/dist/providers/GemUIComponentsProvider.d.ts +4 -0
- package/dist/providers/QueryClientProvider.d.ts +7 -0
- package/dist/providers/ToasterProvider.d.ts +1 -0
- package/dist/services/api.d.ts +4 -0
- package/dist/services/generated/api-candidate.d.ts +22942 -0
- package/dist/services/generated/api.d.ts +22898 -0
- package/dist/services/mutations/roadSigns/useCreateRoadSignFile.d.ts +9 -0
- package/dist/services/mutations/roadSigns/useCreateRoadSignTemplate.d.ts +9 -0
- package/dist/services/mutations/stencils/useCreateStencil.d.ts +9 -0
- package/dist/services/mutations/stencils/useCreateStencilFile.d.ts +11 -0
- package/dist/services/mutations/stencils/useDeleteStencil.d.ts +8 -0
- package/dist/services/mutations/stencils/useUpdateStencil.d.ts +10 -0
- package/dist/services/mutations/stencils/useUpdateStencilFile.d.ts +11 -0
- package/dist/services/queries/roadSigns/useGetRoadSignNameUnique.d.ts +5 -0
- package/dist/services/queries/roadSigns/useGetRoadSignsByGroupName.d.ts +6 -0
- package/dist/services/queries/roadSigns/useGetRoadSignsGroups.d.ts +5 -0
- package/dist/services/queries/stencils/useGetStencilById.d.ts +0 -0
- package/dist/services/queries/stencils/useGetStencilGroups.d.ts +5 -0
- package/dist/services/queries/stencils/useGetStencils.d.ts +5 -0
- package/dist/services/queryKeys.d.ts +8 -0
- package/dist/theme/theme.d.ts +19 -0
- package/dist/types/function.d.ts +1 -0
- package/dist/types/generic.d.ts +1 -0
- package/package.json +3 -3
- package/dist/components/SignEditor/index.d.ts +0 -3
- /package/dist/{fonts → svgedit-assets/fonts}/roadsign-condensed.ttf +0 -0
- /package/dist/{fonts → svgedit-assets/fonts}/roadsign-normal.ttf +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledMenu: import('@emotion/styled').StyledComponent<import('@mui/material').MenuProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MenuItemProps } from '@mui/material';
|
|
2
|
+
|
|
3
|
+
type ContextMenuItemLinkProps = MenuItemProps & {
|
|
4
|
+
to: string;
|
|
5
|
+
};
|
|
6
|
+
type ContextMenuItemProps = MenuItemProps | ContextMenuItemLinkProps;
|
|
7
|
+
export declare function ContextMenuItem(props: ContextMenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { GridApiPro } from '@mui/x-data-grid-pro';
|
|
3
|
+
|
|
4
|
+
interface TableCustomToolbarProps {
|
|
5
|
+
gridApiRef: React.MutableRefObject<GridApiPro>;
|
|
6
|
+
exportDataAsExcel?: (gridApiRef: React.MutableRefObject<GridApiPro>) => void;
|
|
7
|
+
isFilterActive: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const TableCustomToolbar: FC<TableCustomToolbarProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TableCustomToolbar } from './TableCustomToolbar';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { GridApiPro } from '@mui/x-data-grid-pro';
|
|
3
|
+
|
|
4
|
+
interface TableExportButtonProps {
|
|
5
|
+
gridApiRef: React.MutableRefObject<GridApiPro>;
|
|
6
|
+
exportDataAsExcel?: (gridApiRef: React.MutableRefObject<GridApiPro>) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const TableExportButton: FC<TableExportButtonProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TableExportButton } from './TableExportButton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TableRecord } from './TableRecord';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
2
|
+
import { TableWithPaginationProps } from './types';
|
|
3
|
+
|
|
4
|
+
export declare const TableWithPagination: <T extends GridValidRowModel>({ rowsData, paginationAndSortState, setPaginationAndSortState, isLoading, columns, offset, tableKey, filterModel, onFilterModelChange, pinnedColumns, exportDataAsExcel, showPaginationFirstAndLastButtons, }: TableWithPaginationProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import { TableWithPagination } from './TableWithPagination';
|
|
4
|
+
import { TableWithPaginationProps } from './types';
|
|
5
|
+
|
|
6
|
+
declare const meta: Meta<typeof TableWithPagination>;
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<TableWithPaginationProps<GridValidRowModel>>;
|
|
9
|
+
export declare const Docs: Story;
|
|
10
|
+
export declare const Default: Story;
|
|
11
|
+
export declare const Loading: Story;
|
|
12
|
+
export declare const Empty: Story;
|
|
13
|
+
export declare const WithExcelExport: Story;
|
|
File without changes
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { GridApiPro, GridCallbackDetails, GridColDef, GridColumnPinningState, GridFilterModel, GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
3
|
+
|
|
4
|
+
interface SortState {
|
|
5
|
+
field: string;
|
|
6
|
+
direction: 'asc' | 'desc' | '';
|
|
7
|
+
}
|
|
8
|
+
export interface PaginationAndSortState {
|
|
9
|
+
page: number;
|
|
10
|
+
size: number;
|
|
11
|
+
sort: SortState;
|
|
12
|
+
}
|
|
13
|
+
export interface SortObject {
|
|
14
|
+
sorted?: boolean;
|
|
15
|
+
unsorted?: boolean;
|
|
16
|
+
empty?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface PageableObject {
|
|
19
|
+
offset?: number;
|
|
20
|
+
sort?: SortObject;
|
|
21
|
+
pageSize?: number;
|
|
22
|
+
pageNumber?: number;
|
|
23
|
+
paged?: boolean;
|
|
24
|
+
unpaged?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export interface GenericPageDataDto<T> {
|
|
27
|
+
total_elements?: number;
|
|
28
|
+
total_pages?: number;
|
|
29
|
+
size?: number;
|
|
30
|
+
content?: T[];
|
|
31
|
+
number?: number;
|
|
32
|
+
sort?: SortObject;
|
|
33
|
+
pageable?: PageableObject;
|
|
34
|
+
first?: boolean;
|
|
35
|
+
last?: boolean;
|
|
36
|
+
number_of_elements?: number;
|
|
37
|
+
empty?: boolean;
|
|
38
|
+
}
|
|
39
|
+
export interface TableWithPaginationProps<T extends GridValidRowModel> {
|
|
40
|
+
rowsData: GenericPageDataDto<T> | undefined;
|
|
41
|
+
isLoading: boolean;
|
|
42
|
+
columns: GridColDef<T>[];
|
|
43
|
+
tableKey: string;
|
|
44
|
+
offset?: number;
|
|
45
|
+
pinnedColumns?: GridColumnPinningState;
|
|
46
|
+
paginationAndSortState: PaginationAndSortState;
|
|
47
|
+
setPaginationAndSortState: Dispatch<SetStateAction<PaginationAndSortState>>;
|
|
48
|
+
filterModel?: GridFilterModel;
|
|
49
|
+
onFilterModelChange?: (model: GridFilterModel, details: GridCallbackDetails<'filter'>) => void;
|
|
50
|
+
exportDataAsExcel?: (gridApiRef: React.MutableRefObject<GridApiPro>) => void;
|
|
51
|
+
showPaginationFirstAndLastButtons?: boolean;
|
|
52
|
+
}
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ContextMenu, ContextMenuItem } from './ContextMenu';
|
|
2
|
+
export { TableActions } from './TableActions/TableActions';
|
|
3
|
+
export { TableRecord } from './TableRecord/TableRecord';
|
|
4
|
+
export { TableWithPagination } from './TableWithPagination/TableWithPagination';
|
|
5
|
+
export type { GenericPageDataDto } from './TableWithPagination/types';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TabProps as TabPropsMUI } from '@mui/material';
|
|
2
|
+
|
|
3
|
+
export interface TabProps extends TabPropsMUI {
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: JSX.Element;
|
|
6
|
+
}
|
|
7
|
+
export interface TabsPanelProps {
|
|
8
|
+
tabs: TabProps[];
|
|
9
|
+
children: JSX.Element[];
|
|
10
|
+
onChange?: (value: number) => void;
|
|
11
|
+
defaultTab?: number;
|
|
12
|
+
extraComponent?: JSX.Element;
|
|
13
|
+
}
|
|
14
|
+
export declare const TabsPanel: ({ tabs, children, onChange, defaultTab, extraComponent, }: TabsPanelProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TabProps } from './TabsPanel';
|
|
2
|
+
|
|
3
|
+
export declare const StyledTab: import('@emotion/styled').StyledComponent<TabProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
4
|
+
export declare const StyledTabs: import('@emotion/styled').StyledComponent<import('@mui/material').TabsOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
5
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
6
|
+
}, "className" | "style" | "classes" | "action" | "children" | "sx" | "aria-label" | "aria-labelledby" | "onChange" | "orientation" | "value" | "variant" | "slots" | "slotProps" | "allowScrollButtonsMobile" | "centered" | "indicatorColor" | "ScrollButtonComponent" | "scrollButtons" | "selectionFollowsFocus" | "TabIndicatorProps" | "TabScrollButtonProps" | "textColor" | "visibleScrollbar"> & {
|
|
7
|
+
component?: import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
8
|
+
} & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledToastMessage: import('@emotion/styled').StyledComponent<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | import('react').RefObject<HTMLSpanElement> | null | undefined;
|
|
4
|
+
}, "className" | "style" | "classes" | "children" | "sx" | "p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "align" | "variant" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
5
|
+
export declare const StyledToastClose: import('@emotion/styled').StyledComponent<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
6
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | import('react').RefObject<HTMLSpanElement> | null | undefined;
|
|
7
|
+
}, "className" | "style" | "classes" | "children" | "sx" | "p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "align" | "variant" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
8
|
+
export declare const ToastWrapper: import('@emotion/styled').StyledComponent<import('@mui/material').StackOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
9
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
+
}, keyof import('@mui/material/OverridableComponent').CommonProps | keyof import('@mui/material').StackOwnProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
11
|
+
type: 'success' | 'error';
|
|
12
|
+
}, {}, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const errorToast: (message: string) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const successToast: (message: string) => void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SizingProps } from '@mui/system';
|
|
2
|
+
|
|
3
|
+
export interface TreeItemProps {
|
|
4
|
+
id: string;
|
|
5
|
+
checked: boolean;
|
|
6
|
+
label: string;
|
|
7
|
+
children: TreeItemProps[];
|
|
8
|
+
handleCheck?: (id: string, checked: boolean) => void;
|
|
9
|
+
}
|
|
10
|
+
interface TreeProps<T> {
|
|
11
|
+
items: T[];
|
|
12
|
+
handleCheck?: (id: string, checked: boolean) => void;
|
|
13
|
+
height?: SizingProps['height'];
|
|
14
|
+
width?: SizingProps['width'];
|
|
15
|
+
expanded?: string[];
|
|
16
|
+
}
|
|
17
|
+
export declare const Tree: <T extends TreeItemProps>({ items, handleCheck, width, height, expanded, }: TreeProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tree } from './Tree';
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const DATA_GRID_LOCALE: {
|
|
3
|
+
columnsManagementSearchTitle: string;
|
|
4
|
+
columnsManagementNoColumns: string;
|
|
5
|
+
columnsManagementShowHideAllText: string;
|
|
6
|
+
headerFilterOperatorIs: string;
|
|
7
|
+
headerFilterOperatorAfter: string;
|
|
8
|
+
headerFilterOperatorOnOrAfter: string;
|
|
9
|
+
headerFilterOperatorBefore: string;
|
|
10
|
+
headerFilterOperatorOnOrBefore: string;
|
|
11
|
+
headerFilterOperatorIsEmpty: string;
|
|
12
|
+
headerFilterOperatorIsNotEmpty: string;
|
|
13
|
+
headerFilterOperatorIsAnyOf: string;
|
|
14
|
+
'headerFilterOperator=': string;
|
|
15
|
+
'headerFilterOperator!=': string;
|
|
16
|
+
'headerFilterOperator>': string;
|
|
17
|
+
'headerFilterOperator>=': string;
|
|
18
|
+
'headerFilterOperator<': string;
|
|
19
|
+
'headerFilterOperator<=': string;
|
|
20
|
+
detailPanelToggle: string;
|
|
21
|
+
aggregationMenuItemHeader: string;
|
|
22
|
+
aggregationFunctionLabelSum: string;
|
|
23
|
+
aggregationFunctionLabelAvg: string;
|
|
24
|
+
aggregationFunctionLabelMin: string;
|
|
25
|
+
aggregationFunctionLabelMax: string;
|
|
26
|
+
aggregationFunctionLabelSize: string;
|
|
27
|
+
noRowsLabel?: string | undefined;
|
|
28
|
+
noResultsOverlayLabel?: string | undefined;
|
|
29
|
+
toolbarDensity?: import('react').ReactNode;
|
|
30
|
+
toolbarDensityLabel?: string | undefined;
|
|
31
|
+
toolbarDensityCompact?: string | undefined;
|
|
32
|
+
toolbarDensityStandard?: string | undefined;
|
|
33
|
+
toolbarDensityComfortable?: string | undefined;
|
|
34
|
+
toolbarColumns?: import('react').ReactNode;
|
|
35
|
+
toolbarColumnsLabel?: string | undefined;
|
|
36
|
+
toolbarFilters?: import('react').ReactNode;
|
|
37
|
+
toolbarFiltersLabel?: string | undefined;
|
|
38
|
+
toolbarFiltersTooltipHide?: import('react').ReactNode;
|
|
39
|
+
toolbarFiltersTooltipShow?: import('react').ReactNode;
|
|
40
|
+
toolbarFiltersTooltipActive?: ((count: number) => import('react').ReactNode) | undefined;
|
|
41
|
+
toolbarQuickFilterPlaceholder?: string | undefined;
|
|
42
|
+
toolbarQuickFilterLabel?: string | undefined;
|
|
43
|
+
toolbarQuickFilterDeleteIconLabel?: string | undefined;
|
|
44
|
+
toolbarExport?: import('react').ReactNode;
|
|
45
|
+
toolbarExportLabel?: string | undefined;
|
|
46
|
+
toolbarExportCSV?: import('react').ReactNode;
|
|
47
|
+
toolbarExportPrint?: import('react').ReactNode;
|
|
48
|
+
toolbarExportExcel?: string | undefined;
|
|
49
|
+
columnsManagementReset?: string | undefined;
|
|
50
|
+
filterPanelAddFilter?: import('react').ReactNode;
|
|
51
|
+
filterPanelRemoveAll?: import('react').ReactNode;
|
|
52
|
+
filterPanelDeleteIconLabel?: string | undefined;
|
|
53
|
+
filterPanelLogicOperator?: string | undefined;
|
|
54
|
+
filterPanelOperator?: import('react').ReactNode;
|
|
55
|
+
filterPanelOperatorAnd?: import('react').ReactNode;
|
|
56
|
+
filterPanelOperatorOr?: import('react').ReactNode;
|
|
57
|
+
filterPanelColumns?: import('react').ReactNode;
|
|
58
|
+
filterPanelInputLabel?: string | undefined;
|
|
59
|
+
filterPanelInputPlaceholder?: string | undefined;
|
|
60
|
+
filterOperatorContains?: string | undefined;
|
|
61
|
+
filterOperatorEquals?: string | undefined;
|
|
62
|
+
filterOperatorStartsWith?: string | undefined;
|
|
63
|
+
filterOperatorEndsWith?: string | undefined;
|
|
64
|
+
filterOperatorIs?: string | undefined;
|
|
65
|
+
filterOperatorNot?: string | undefined;
|
|
66
|
+
filterOperatorAfter?: string | undefined;
|
|
67
|
+
filterOperatorOnOrAfter?: string | undefined;
|
|
68
|
+
filterOperatorBefore?: string | undefined;
|
|
69
|
+
filterOperatorOnOrBefore?: string | undefined;
|
|
70
|
+
filterOperatorIsEmpty?: string | undefined;
|
|
71
|
+
filterOperatorIsNotEmpty?: string | undefined;
|
|
72
|
+
filterOperatorIsAnyOf?: string | undefined;
|
|
73
|
+
'filterOperator='?: string | undefined;
|
|
74
|
+
'filterOperator!='?: string | undefined;
|
|
75
|
+
'filterOperator>'?: string | undefined;
|
|
76
|
+
'filterOperator>='?: string | undefined;
|
|
77
|
+
'filterOperator<'?: string | undefined;
|
|
78
|
+
'filterOperator<='?: string | undefined;
|
|
79
|
+
headerFilterOperatorContains?: string | undefined;
|
|
80
|
+
headerFilterOperatorEquals?: string | undefined;
|
|
81
|
+
headerFilterOperatorStartsWith?: string | undefined;
|
|
82
|
+
headerFilterOperatorEndsWith?: string | undefined;
|
|
83
|
+
headerFilterOperatorNot?: string | undefined;
|
|
84
|
+
filterValueAny?: string | undefined;
|
|
85
|
+
filterValueTrue?: string | undefined;
|
|
86
|
+
filterValueFalse?: string | undefined;
|
|
87
|
+
columnMenuLabel?: string | undefined;
|
|
88
|
+
columnMenuShowColumns?: import('react').ReactNode;
|
|
89
|
+
columnMenuManageColumns?: import('react').ReactNode;
|
|
90
|
+
columnMenuFilter?: import('react').ReactNode;
|
|
91
|
+
columnMenuHideColumn?: import('react').ReactNode;
|
|
92
|
+
columnMenuUnsort?: import('react').ReactNode;
|
|
93
|
+
columnMenuSortAsc?: import('react').ReactNode | ((colDef: import('@mui/x-data-grid').GridColDef) => import('react').ReactNode);
|
|
94
|
+
columnMenuSortDesc?: import('react').ReactNode | ((colDef: import('@mui/x-data-grid').GridColDef) => import('react').ReactNode);
|
|
95
|
+
columnHeaderFiltersTooltipActive?: ((count: number) => import('react').ReactNode) | undefined;
|
|
96
|
+
columnHeaderFiltersLabel?: string | undefined;
|
|
97
|
+
columnHeaderSortIconLabel?: string | undefined;
|
|
98
|
+
footerRowSelected?: ((count: number) => import('react').ReactNode) | undefined;
|
|
99
|
+
footerTotalRows?: import('react').ReactNode;
|
|
100
|
+
footerTotalVisibleRows?: ((visibleCount: number, totalCount: number) => import('react').ReactNode) | undefined;
|
|
101
|
+
checkboxSelectionHeaderName?: string | undefined;
|
|
102
|
+
checkboxSelectionSelectAllRows?: string | undefined;
|
|
103
|
+
checkboxSelectionUnselectAllRows?: string | undefined;
|
|
104
|
+
checkboxSelectionSelectRow?: string | undefined;
|
|
105
|
+
checkboxSelectionUnselectRow?: string | undefined;
|
|
106
|
+
booleanCellTrueLabel?: string | undefined;
|
|
107
|
+
booleanCellFalseLabel?: string | undefined;
|
|
108
|
+
actionsCellMore?: string | undefined;
|
|
109
|
+
pinToLeft?: string | undefined;
|
|
110
|
+
pinToRight?: string | undefined;
|
|
111
|
+
unpin?: string | undefined;
|
|
112
|
+
treeDataGroupingHeaderName?: string | undefined;
|
|
113
|
+
treeDataExpand?: string | undefined;
|
|
114
|
+
treeDataCollapse?: string | undefined;
|
|
115
|
+
groupingColumnHeaderName?: string | undefined;
|
|
116
|
+
groupColumn?: ((name: string) => string) | undefined;
|
|
117
|
+
unGroupColumn?: ((name: string) => string) | undefined;
|
|
118
|
+
expandDetailPanel?: string | undefined;
|
|
119
|
+
collapseDetailPanel?: string | undefined;
|
|
120
|
+
rowReorderingHeaderName?: string | undefined;
|
|
121
|
+
MuiTablePagination?: import('@mui/x-data-grid/models/api/gridLocaleTextApi').MuiTablePaginationLocalizedProps | undefined;
|
|
122
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GridColDef, GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
2
|
+
|
|
3
|
+
type BooleanColumnParams<T extends GridValidRowModel> = Omit<GridColDef<T, boolean>, 'type'>;
|
|
4
|
+
type BooleanColumn<T extends GridValidRowModel> = GridColDef<T, boolean>;
|
|
5
|
+
export declare function getBooleanColumn<T extends GridValidRowModel>(params: BooleanColumnParams<T>): BooleanColumn<T>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GridColDef, GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
2
|
+
|
|
3
|
+
type DateColumnParams<T extends GridValidRowModel> = Omit<GridColDef<T, Date>, 'type' | 'renderCell'>;
|
|
4
|
+
type DateColumn<T extends GridValidRowModel> = GridColDef<T, Date>;
|
|
5
|
+
export declare function getDateColumn<T extends GridValidRowModel>(params: DateColumnParams<T>): DateColumn<T>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GridColDef, GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
2
|
+
|
|
3
|
+
type DateTimeColumnParams<T extends GridValidRowModel> = Omit<GridColDef<T, Date>, 'type' | 'renderCell'>;
|
|
4
|
+
type DateTimeColumn<T extends GridValidRowModel> = GridColDef<T, Date>;
|
|
5
|
+
export declare function getDateTimeColumn<T extends GridValidRowModel>(params: DateTimeColumnParams<T>): DateTimeColumn<T>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GridColDef, GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
2
|
+
|
|
3
|
+
type NumericColumnParams<T extends GridValidRowModel> = Omit<GridColDef<T, number>, 'type'>;
|
|
4
|
+
type NumberColumn<T extends GridValidRowModel> = GridColDef<T, number>;
|
|
5
|
+
export declare function getNumericColumn<T extends GridValidRowModel>(params: NumericColumnParams<T>): NumberColumn<T>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GridColDef, GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
2
|
+
|
|
3
|
+
type ColumnParams<T extends GridValidRowModel> = GridColDef<T, string>;
|
|
4
|
+
type StringColumn<T extends GridValidRowModel> = GridColDef<T, string, string>;
|
|
5
|
+
export declare function getStaticColumn<T extends GridValidRowModel>(params: Omit<ColumnParams<T>, 'sortable' | 'filterable' | 'resizable'>): StringColumn<T>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GridColDef, GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
2
|
+
|
|
3
|
+
type StringColumnParams<T extends GridValidRowModel> = Omit<GridColDef<T, string>, 'type'>;
|
|
4
|
+
type StringColumn<T extends GridValidRowModel> = GridColDef<T, string>;
|
|
5
|
+
export declare function getStringColumn<T extends GridValidRowModel>(params: StringColumnParams<T>): StringColumn<T>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { getBooleanColumn } from './getBooleanColumn';
|
|
2
|
+
export { getDateColumn } from './getDateColumn';
|
|
3
|
+
export { getDateTimeColumn } from './getDateTimeColumn';
|
|
4
|
+
export { getNumericColumn } from './getNumericColumn';
|
|
5
|
+
export { getStaticColumn } from './getStaticColumn';
|
|
6
|
+
export { getStringColumn } from './getStringColumn';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getErrorMessage: (error: unknown) => string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare function required<T>(value: T, ctx: z.RefinementCtx): T & {};
|
|
4
|
+
declare function nullToUndefined<T>(value: T): (T & {}) | undefined;
|
|
5
|
+
declare function saved<T>(value: T, ctx: z.RefinementCtx): T;
|
|
6
|
+
export declare const zodTransforms: {
|
|
7
|
+
required: typeof required;
|
|
8
|
+
nullToUndefined: typeof nullToUndefined;
|
|
9
|
+
saved: typeof saved;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
|
+
import { GridApi } from '@mui/x-data-grid-pro';
|
|
3
|
+
import { GridInitialStatePro } from '@mui/x-data-grid-pro/models/gridStatePro';
|
|
4
|
+
|
|
5
|
+
export declare const useDataGridInitialState: (tableKey: string, apiRef: MutableRefObject<GridApi>) => GridInitialStatePro | undefined;
|
|
6
|
+
export declare function getGridStateFromStorage(tableKey: string): GridInitialStatePro;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
|
+
import { GridApi } from '@mui/x-data-grid-pro';
|
|
3
|
+
import { GridInitialStatePro } from '@mui/x-data-grid-pro/models/gridStatePro';
|
|
4
|
+
|
|
5
|
+
interface IUseDataGridState {
|
|
6
|
+
state: undefined | GridInitialStatePro;
|
|
7
|
+
}
|
|
8
|
+
export declare const useDataGridState: (key: string, apiRef: MutableRefObject<GridApi>) => IUseDataGridState;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useKeepDefinedValue<T>(value: T | undefined, defaultValue: T): T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useKeyOnChange: (file: unknown) => number;
|
package/dist/licenses.txt
CHANGED