@myunisoft/design-system 1.1.4-myun36212.20 → 1.1.4-rev272
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/components/AccordionSection/index.d.ts +1 -1
- package/dist/components/Autocomplete/AutocompleteMultiple/Results/SuggestList/SuggestItem/styles.d.ts +1 -1
- package/dist/components/Autocomplete/AutocompleteMultiple/index.d.ts +0 -3
- package/dist/components/Autocomplete/AutocompleteMultiple/styles.d.ts +1 -1
- package/dist/components/Autocomplete/AutocompleteSingle/Mode/edit.d.ts +3 -2
- package/dist/components/Autocomplete/AutocompleteSingle/Mode/view.d.ts +2 -1
- package/dist/components/Autocomplete/AutocompleteSingle/index.d.ts +0 -3
- package/dist/components/BadgeAdd/index.d.ts +1 -1
- package/dist/components/DataGrid/DataGrid.d.ts +3 -0
- package/dist/components/DataGrid/DataGridDS.d.ts +2 -2
- package/dist/components/DataGrid/components/menu/RowMenu/index.d.ts +1 -1
- package/dist/components/DataGrid/components/panel/CustomGridColumnsPanel/ColumnsManagementTable.d.ts +1 -1
- package/dist/components/DataGrid/components/toolbar/ArrayButtons/index.d.ts +2 -2
- package/dist/components/DataGrid/components/toolbar/CustomGridToolbar.d.ts +2 -2
- package/dist/components/DataGrid/components/toolbar/ToolbarIconButton/index.d.ts +1 -1
- package/dist/components/DataGrid/components/toolbar/buttons/QuickFilterButton.d.ts +1 -1
- package/dist/components/DataGrid/contexts/EditContext.d.ts +1 -1
- package/dist/components/DataGrid/hooks/useSizing.d.ts +5 -0
- package/dist/components/DataGrid/hooks/useSizing.test.d.ts +1 -0
- package/dist/components/DataGrid/index.d.ts +1 -1
- package/dist/components/DataGrid/utils.d.ts +1 -1
- package/dist/components/DocumentComposer/EmptySummary/index.d.ts +4 -0
- package/dist/components/DocumentComposer/Treeview/CustomTreeItem.d.ts +8 -0
- package/dist/components/DocumentComposer/Treeview/hooks/useTreeItemMenu.d.ts +12 -0
- package/dist/components/DocumentComposer/Treeview/icons/index.d.ts +1 -0
- package/dist/components/DocumentComposer/Treeview/index.d.ts +3 -0
- package/dist/components/DocumentComposer/Treeview/slots/IconContainerSlot.d.ts +14 -0
- package/dist/components/DocumentComposer/Treeview/slots/LabelInputSlot.d.ts +6 -0
- package/dist/components/DocumentComposer/Treeview/slots/LabelSlot.d.ts +20 -0
- package/dist/components/DocumentComposer/Treeview/slots/index.d.ts +3 -0
- package/dist/components/DocumentComposer/Treeview/types.d.ts +39 -0
- package/dist/components/DocumentComposer/hooks/useDocumentComposer.d.ts +26 -0
- package/dist/components/DocumentComposer/icons/index.d.ts +8 -0
- package/dist/components/DocumentComposer/index.d.ts +6 -0
- package/dist/components/DocumentComposer/types.d.ts +28 -0
- package/dist/components/DraggableList/index.d.ts +1 -1
- package/dist/components/Modal/components/ModalAction.d.ts +2 -2
- package/dist/components/Modal/components/ModalClose.d.ts +1 -1
- package/dist/components/Modal/components/ModalContent.d.ts +1 -1
- package/dist/components/Modal/components/ModalCustomAction.d.ts +1 -1
- package/dist/components/Modal/components/ModalPrimaryAction.d.ts +2 -2
- package/dist/components/Modal/components/ModalSecondaryAction.d.ts +2 -2
- package/dist/components/Modal/components/ModalTitle.d.ts +2 -2
- package/dist/components/Modal/components/ModalVariantIcon.d.ts +6 -0
- package/dist/components/Modal/index.d.ts +1 -1
- package/dist/components/SplitButton/index.d.ts +2 -2
- package/dist/components/VirtualTable/cells/AmountCell/index.d.ts +1 -5
- package/dist/components/VirtualTable/cells/AutocompleteCell/Mode/edit.d.ts +1 -1
- package/dist/components/VirtualTable/cells/AutocompleteCell/index.d.ts +1 -5
- package/dist/components/VirtualTable/cells/NumberCell/index.d.ts +1 -5
- package/dist/components/VirtualTable/cells/SelectCell/Mode/view.d.ts +1 -1
- package/dist/components/VirtualTable/cells/StringCell/index.d.ts +1 -5
- package/dist/components/VirtualTable/components/Body/Cell/styles.d.ts +1 -1
- package/dist/components/VirtualTable/components/Buttons/Button/index.d.ts +2 -2
- package/dist/components/VirtualTable/components/Buttons/index.d.ts +2 -2
- package/dist/components/VirtualTable/components/ColumnsSetting/ColumnsSetting.d.ts +4 -5
- package/dist/components/VirtualTable/components/ColumnsSetting/hooks/index.d.ts +1 -1
- package/dist/components/VirtualTable/components/ColumnsSetting/hooks/useColumnsSetting.d.ts +1 -1
- package/dist/components/VirtualTable/components/ContextMenu/index.d.ts +1 -1
- package/dist/components/VirtualTable/components/ErrorTooltip/index.d.ts +1 -1
- package/dist/components/VirtualTable/components/ExportDialog/index.d.ts +0 -1
- package/dist/components/VirtualTable/components/ExportDialog/styles.d.ts +1 -1
- package/dist/components/VirtualTable/components/Footer/Cell/styles.d.ts +1 -1
- package/dist/components/VirtualTable/components/Header/components/Sortable/index.d.ts +1 -1
- package/dist/components/VirtualTable/components/Icon/Font/index.d.ts +1 -1
- package/dist/components/VirtualTable/components/Icon/index.d.ts +1 -1
- package/dist/components/VirtualTable/components/SearchBar/component/FilterChip/styles.d.ts +1 -1
- package/dist/components/VirtualTable/components/SearchBar/styles.d.ts +1 -1
- package/dist/components/VirtualTable/components/Toolbar/SettingsIcon.d.ts +1 -1
- package/dist/components/VirtualTable/features/secured/utils.d.ts +1 -1
- package/dist/components/VirtualTable/features/selection/utils.d.ts +0 -1
- package/dist/components/VirtualTable/helpers/filter.d.ts +1 -1
- package/dist/components/VirtualTable/hooks/useColumns.d.ts +1 -1
- package/dist/components/VirtualTable/hooks/useNavigation.d.ts +3 -3
- package/dist/components/VirtualTable/hooks/useWindowState.d.ts +9 -2
- package/dist/components/VirtualTable/styles.d.ts +1 -1
- package/dist/components/VirtualTable/utils.d.ts +1 -1
- package/dist/components/basics/Badge/index.d.ts +1 -1
- package/dist/components/basics/Checkbox/index.d.ts +1 -3
- package/dist/components/basics/ExpandButton/index.d.ts +1 -1
- package/dist/components/basics/Icon/Icon.d.ts +1 -1
- package/dist/components/basics/Icon/Icons-material/Crop32.d.ts +4 -0
- package/dist/components/basics/Icon/Icons-material/index.d.ts +4 -4
- package/dist/components/basics/Icon/index.d.ts +15 -15
- package/dist/components/basics/Title/index.d.ts +1 -1
- package/dist/helpers/validation/validators.d.ts +1 -1
- package/dist/index.d.ts +3 -4
- package/dist/index.js +3 -3
- package/package.json +117 -117
|
@@ -2,7 +2,7 @@ declare const useStyles: (params: void, muiStyleOverridesParams?: {
|
|
|
2
2
|
props: Record<string, unknown>;
|
|
3
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
4
4
|
} | undefined) => {
|
|
5
|
-
classes: Record<"label" | "line" | "disabled" | "
|
|
5
|
+
classes: Record<"label" | "line" | "disabled" | "checkboxContainer" | "tooltip", string>;
|
|
6
6
|
theme: import("@mui/material/styles").Theme;
|
|
7
7
|
css: import("tss-react/types").Css;
|
|
8
8
|
cx: import("tss-react/types").Cx;
|
|
@@ -9,8 +9,5 @@ type AutocompleteMultipleProps = {
|
|
|
9
9
|
isOptionsMutable?: boolean;
|
|
10
10
|
onIsSearchingChange?: UnknownFunction;
|
|
11
11
|
};
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated Use <Autocomplete mutliple /> instead
|
|
14
|
-
*/
|
|
15
12
|
declare const AutocompleteMultiple: ({ options, customSearch, onChange, isError, label, isDisplayLabel, onIsSearchingChange, isDisabled, isOptionsMutable }: AutocompleteMultipleProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
13
|
export default AutocompleteMultiple;
|
|
@@ -2,7 +2,7 @@ declare const useStyles: (params: void, muiStyleOverridesParams?: {
|
|
|
2
2
|
props: Record<string, unknown>;
|
|
3
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
4
4
|
} | undefined) => {
|
|
5
|
-
classes: Record<"label" | "search" | "border" | "clear" | "
|
|
5
|
+
classes: Record<"label" | "search" | "border" | "clear" | "autoCompleteContainer" | "isError" | "selector" | "icons" | "dropDownIcon" | "rotated" | "isErrorBorder" | "open", string>;
|
|
6
6
|
theme: import("@mui/material/styles").Theme;
|
|
7
7
|
css: import("tss-react/types").Css;
|
|
8
8
|
cx: import("tss-react/types").Cx;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UnknownFunction } from 'reselect/es/types';
|
|
2
3
|
type AutocompleteEditProps = {
|
|
3
4
|
data?: object;
|
|
4
5
|
dataKey?: string;
|
|
@@ -6,5 +7,5 @@ type AutocompleteEditProps = {
|
|
|
6
7
|
options: unknown[] | UnknownFunction;
|
|
7
8
|
};
|
|
8
9
|
};
|
|
9
|
-
declare const AutocompleteEdit:
|
|
10
|
+
declare const AutocompleteEdit: React.NamedExoticComponent<AutocompleteEditProps>;
|
|
10
11
|
export default AutocompleteEdit;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
type AutocompleteViewProps = {
|
|
2
3
|
data?: object;
|
|
3
4
|
columnIndex?: number;
|
|
4
5
|
};
|
|
5
|
-
declare const AutocompleteView:
|
|
6
|
+
declare const AutocompleteView: React.NamedExoticComponent<AutocompleteViewProps>;
|
|
6
7
|
export default AutocompleteView;
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Source (MUI v7.x): https://github.com/mui/mui-x/blob/v7.x/packages/x-data-grid-pro
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { DataGridProProps, GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
9
|
+
import { RowMenuAction } from './components/menu/RowMenu';
|
|
10
10
|
export interface DataGridDSProps extends DataGridProProps {
|
|
11
11
|
rowContextMenu?: {
|
|
12
12
|
actions: RowMenuAction[];
|
package/dist/components/DataGrid/components/panel/CustomGridColumnsPanel/ColumnsManagementTable.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GridColumnVisibilityModel } from '@mui/x-data-grid-pro';
|
|
2
2
|
interface ColumnsManagementTableProps {
|
|
3
3
|
visibilityModel: GridColumnVisibilityModel;
|
|
4
4
|
setVisibilityModel: (model: GridColumnVisibilityModel) => void;
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Source (MUI v7.x): https://github.com/mui/mui-x/blob/v7.x/packages/x-data-grid/src/components/toolbar/GridToolbar.tsx
|
|
8
8
|
*/
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { GridSlotsComponentsProps, GridRowSelectionModel, GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
10
|
+
import { IconButtonConfig, TextButtonConfig } from './ArrayButtons';
|
|
11
11
|
interface DeleteAction {
|
|
12
12
|
onDelete: (selectedRowIds: GridRowSelectionModel) => boolean | Promise<boolean>;
|
|
13
13
|
disabled?: boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GridToolbarQuickFilterProps } from '@mui/x-data-grid-pro';
|
|
2
2
|
declare const QuickFilterButton: (props: GridToolbarQuickFilterProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default QuickFilterButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { RefObject } from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type GridApiPro } from '@mui/x-data-grid-pro';
|
|
3
3
|
declare const getSelectedRows: (apiRef: RefObject<GridApiPro>) => import("@mui/x-data-grid-pro").GridValidRowModel[];
|
|
4
4
|
export { getSelectedRows };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { RichTreeViewProApiRef, TreeItemProps } from '@mui/x-tree-view-pro';
|
|
2
|
+
import type { TreeviewProps } from './types';
|
|
3
|
+
type TreeItemCallbacks<T extends Record<string, unknown>> = Pick<TreeviewProps<T>, 'isSectionItem' | 'isVisibleItem' | 'getIconItem' | 'hasItemMenu' | 'getMenuItems' | 'isItemReorderable' | 'onItemVisibilityChange'> & {
|
|
4
|
+
apiRef: RichTreeViewProApiRef;
|
|
5
|
+
};
|
|
6
|
+
type CustomTreeItemProps<T extends Record<string, unknown>> = TreeItemProps & TreeItemCallbacks<T>;
|
|
7
|
+
export declare const CustomTreeItem: <T extends Record<string, unknown>>(props: CustomTreeItemProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const useTreeItemMenu: () => {
|
|
2
|
+
containerRef: import("react").RefObject<HTMLDivElement | null>;
|
|
3
|
+
menuAnchorEl: HTMLElement | null;
|
|
4
|
+
menuPosition: {
|
|
5
|
+
top: number;
|
|
6
|
+
left: number;
|
|
7
|
+
} | null;
|
|
8
|
+
handleMenuClick: (event: React.MouseEvent<HTMLElement>) => void;
|
|
9
|
+
handleMenuClose: () => void;
|
|
10
|
+
createMouseMoveHandler: (isHovered: boolean, onHoverChange?: (isHovered: boolean) => void) => (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
11
|
+
createMouseLeaveHandler: (onHoverChange?: (isHovered: boolean) => void) => () => void;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DragHandleIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { SxProps, Theme } from '@mui/material';
|
|
2
|
+
type IconContainerSlotProps = {
|
|
3
|
+
ownerState?: unknown;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
sx?: SxProps<Theme>;
|
|
6
|
+
isDraggable?: boolean;
|
|
7
|
+
isVisible?: boolean;
|
|
8
|
+
[key: string]: unknown;
|
|
9
|
+
};
|
|
10
|
+
export declare const IconContainerSlot: {
|
|
11
|
+
(props: IconContainerSlotProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { SxProps, Theme } from '@mui/material';
|
|
2
|
+
type LabelSlotProps = {
|
|
3
|
+
ownerState?: unknown;
|
|
4
|
+
editable?: unknown;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
sx?: SxProps<Theme>;
|
|
7
|
+
customIcon?: React.ReactNode;
|
|
8
|
+
hasMenu?: boolean;
|
|
9
|
+
isVisible?: boolean;
|
|
10
|
+
itemId: string;
|
|
11
|
+
menuAnchorEl?: HTMLElement | null;
|
|
12
|
+
onMenuClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
13
|
+
onItemVisibilityChange?: (itemId: string, visible: boolean) => void;
|
|
14
|
+
[key: string]: unknown;
|
|
15
|
+
};
|
|
16
|
+
export declare const LabelSlot: {
|
|
17
|
+
(props: LabelSlotProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { RichTreeViewProApiRef } from '@mui/x-tree-view-pro';
|
|
2
|
+
export type ItemPositionParams = {
|
|
3
|
+
itemId: string;
|
|
4
|
+
oldPosition: {
|
|
5
|
+
parentId: string | null;
|
|
6
|
+
index: number;
|
|
7
|
+
};
|
|
8
|
+
newPosition: {
|
|
9
|
+
parentId: string | null;
|
|
10
|
+
index: number;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
type CustomTreeviewItemProps<T> = {
|
|
14
|
+
hasItemMenu?: (item: T) => boolean;
|
|
15
|
+
getMenuItems?: (item: T, apiRef?: RichTreeViewProApiRef) => React.ReactNode[];
|
|
16
|
+
isSectionItem?: (item: T) => boolean;
|
|
17
|
+
getIconItem?: (item: T) => React.ReactNode;
|
|
18
|
+
isItemEditable?: (item: T) => boolean;
|
|
19
|
+
isVisibleItem?: (item: T) => boolean;
|
|
20
|
+
onItemVisibilityChange?: (itemId: string, visible: boolean) => void;
|
|
21
|
+
};
|
|
22
|
+
export type TreeviewProps<T> = {
|
|
23
|
+
items: readonly T[];
|
|
24
|
+
getItemId?: (item: T) => string;
|
|
25
|
+
getItemLabel?: (item: T) => string;
|
|
26
|
+
getItemChildren?: (item: T) => T[] | undefined;
|
|
27
|
+
isItemReorderable?: (itemId: string) => boolean;
|
|
28
|
+
canMoveItemToNewPosition?: (params: ItemPositionParams) => boolean;
|
|
29
|
+
onItemPositionChange?: (params: ItemPositionParams) => void;
|
|
30
|
+
onItemLabelChange?: (itemId: string, newLabel: string) => void;
|
|
31
|
+
checkboxSelection?: boolean;
|
|
32
|
+
multiSelect?: boolean;
|
|
33
|
+
} & CustomTreeviewItemProps<T>;
|
|
34
|
+
export type TreeviewItemProps<T> = {
|
|
35
|
+
itemId: string;
|
|
36
|
+
label?: React.ReactNode;
|
|
37
|
+
children?: React.ReactNode;
|
|
38
|
+
} & CustomTreeviewItemProps<T>;
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { RichTreeViewProApiRef } from '@mui/x-tree-view-pro';
|
|
2
|
+
import type { ItemPositionParams } from '../Treeview/types';
|
|
3
|
+
import type { DocumentComposerCallbacks, DocumentComposerSummary, DocumentComposerSummaryItem } from '../types';
|
|
4
|
+
type HookDocumentComposerProps = {
|
|
5
|
+
summary?: DocumentComposerSummary;
|
|
6
|
+
} & DocumentComposerCallbacks;
|
|
7
|
+
export declare const useDocumentComposer: ({ summary, onSummaryItemOrderChange, onSummaryItemLabelChange, onSummaryItemDelete, onSummaryItemVisibilityChange }: HookDocumentComposerProps) => {
|
|
8
|
+
summaryItemsMap: Map<string, DocumentComposerSummaryItem>;
|
|
9
|
+
getSummaryItemMenu: (item: DocumentComposerSummaryItem, apiRef?: RichTreeViewProApiRef) => import("react").ReactNode[];
|
|
10
|
+
hasSummaryItemMenu: (_item: DocumentComposerSummaryItem) => boolean;
|
|
11
|
+
getSummaryItemById: (itemId: string) => DocumentComposerSummaryItem | null;
|
|
12
|
+
getSummaryItemIcon: (item: DocumentComposerSummaryItem) => import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
+
isSummaryItemEditable: (_item: DocumentComposerSummaryItem) => boolean;
|
|
14
|
+
isSummaryItemSection: (item: DocumentComposerSummaryItem) => boolean;
|
|
15
|
+
isSummaryItemReorderable: (_itemId: string) => boolean;
|
|
16
|
+
getSummaryItemChildren: (item: DocumentComposerSummaryItem) => DocumentComposerSummaryItem[] | undefined;
|
|
17
|
+
getSummaryItemId: (item: DocumentComposerSummaryItem) => string;
|
|
18
|
+
getSummaryItemLabel: (item: DocumentComposerSummaryItem) => string;
|
|
19
|
+
canMoveSummaryItemToNewPosition: (params: ItemPositionParams) => boolean;
|
|
20
|
+
isSummaryItemVisible: (item: DocumentComposerSummaryItem) => boolean;
|
|
21
|
+
handleOnSummaryItemOrderChange: (params: ItemPositionParams) => void;
|
|
22
|
+
handleOnSummaryItemLabelChange: (itemId: string, newLabel: string) => void;
|
|
23
|
+
handleOnSummaryItemDelete: (itemId: string) => void;
|
|
24
|
+
handleOnSummaryItemVisibilityChange: (itemId: string, visible: boolean) => void;
|
|
25
|
+
};
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const TableIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const RenameIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const DeleteIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const CreateIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const AddIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const VisibilityOffIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const VisibilityOnIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const EmptyAnnexIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DocumentComposerCallbacks, DocumentComposerCustomProps, DocumentComposerSummary } from './types';
|
|
2
|
+
type DocumentComposerProps = {
|
|
3
|
+
summary?: DocumentComposerSummary;
|
|
4
|
+
} & DocumentComposerCallbacks & DocumentComposerCustomProps;
|
|
5
|
+
declare const DocumentComposer: ({ summary, onSummaryItemOrderChange, onSummaryItemLabelChange, onSummaryItemDelete, onSummaryItemVisibilityChange, emptySummaryLabel }: DocumentComposerProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default DocumentComposer;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ItemPositionParams } from './Treeview/types';
|
|
2
|
+
export type DocumentComposerSummary = {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
createdAt: string;
|
|
6
|
+
updatedAt: string;
|
|
7
|
+
sections?: DocumentComposerSummaryItem[] | null;
|
|
8
|
+
};
|
|
9
|
+
export type DocumentComposerSummaryItem = {
|
|
10
|
+
id: string;
|
|
11
|
+
label: string;
|
|
12
|
+
visible: boolean;
|
|
13
|
+
parentId: string | null;
|
|
14
|
+
sections?: DocumentComposerSummaryItem[] | null;
|
|
15
|
+
};
|
|
16
|
+
export type ItemDisplayOrder = {
|
|
17
|
+
id: string;
|
|
18
|
+
displayOrder: number;
|
|
19
|
+
};
|
|
20
|
+
export type DocumentComposerCustomProps = {
|
|
21
|
+
emptySummaryLabel?: string | React.ReactNode;
|
|
22
|
+
};
|
|
23
|
+
export type DocumentComposerCallbacks = {
|
|
24
|
+
onSummaryItemOrderChange?: (params: ItemPositionParams) => void;
|
|
25
|
+
onSummaryItemLabelChange?: (itemId: string, newLabel: string) => void;
|
|
26
|
+
onSummaryItemDelete?: (itemId: string) => void;
|
|
27
|
+
onSummaryItemVisibilityChange?: (itemId: string, visible: boolean) => void;
|
|
28
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { FC, ReactNode, Ref } from 'react';
|
|
2
|
+
import { ButtonProps } from '@mui/material';
|
|
3
3
|
type ModalActionProps = {
|
|
4
4
|
color?: ButtonProps['color'];
|
|
5
5
|
variant?: ButtonProps['variant'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { FC, ReactNode, Ref } from 'react';
|
|
2
|
+
import { ModalVariant } from '../index';
|
|
3
3
|
export type ModalPrimaryActionProps = {
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated Use `<Modal variant="error">` instead
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { ButtonProps } from '@mui/material';
|
|
3
3
|
type ModalSecondaryActionProps = {
|
|
4
4
|
color?: ButtonProps['color'];
|
|
5
5
|
disabled?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { FC, ReactNode } from 'react';
|
|
2
2
|
import ModalContent from './components/ModalContent';
|
|
3
3
|
import ModalCustomAction from './components/ModalCustomAction';
|
|
4
4
|
import ModalPrimaryAction from './components/ModalPrimaryAction';
|
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
isReadOnly: boolean;
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
};
|
|
6
|
-
declare const AmountCell: React.NamedExoticComponent<AmountCellProps>;
|
|
2
|
+
declare const AmountCell: React.NamedExoticComponent<object>;
|
|
7
3
|
export default AmountCell;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
isReadOnly: boolean;
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
};
|
|
6
|
-
declare const AutocompleteCell: React.NamedExoticComponent<AutocompleteCellProps>;
|
|
2
|
+
declare const AutocompleteCell: React.NamedExoticComponent<object>;
|
|
7
3
|
export default AutocompleteCell;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
isReadOnly: boolean;
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
};
|
|
6
|
-
declare const NumberCell: React.NamedExoticComponent<NumberCellProps>;
|
|
2
|
+
declare const NumberCell: React.NamedExoticComponent<object>;
|
|
7
3
|
export default NumberCell;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
isReadOnly: boolean;
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
};
|
|
6
|
-
declare const StringCell: React.NamedExoticComponent<StringCellProps>;
|
|
2
|
+
declare const StringCell: React.NamedExoticComponent<object>;
|
|
7
3
|
export default StringCell;
|
|
@@ -2,7 +2,7 @@ declare const useStyles: (params: void, muiStyleOverridesParams?: {
|
|
|
2
2
|
props: Record<string, unknown>;
|
|
3
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
4
4
|
} | undefined) => {
|
|
5
|
-
classes: Record<"onError" | "expandIcon" | "align" | "
|
|
5
|
+
classes: Record<"onError" | "expandIcon" | "align" | "pointer" | "cell" | "focused" | "odd" | "alignLeft" | "alignCenter" | "alignRight" | "thumbnail" | "groupRow" | "BodyGrid" | "defaultStyle" | "even" | "cbCell" | "expandCell" | "lockRow" | "withGrid" | "alignVerticalCenter" | "alignVerticalBottom" | "alignVerticalTop" | "iconButton", string>;
|
|
6
6
|
theme: import("@mui/material/styles").Theme;
|
|
7
7
|
css: import("tss-react/types").Css;
|
|
8
8
|
cx: import("tss-react/types").Cx;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
import {
|
|
1
|
+
import React, { Ref } from 'react';
|
|
2
|
+
import { ButtonOwnProps } from '@mui/material';
|
|
3
3
|
type ButtonProps = ButtonOwnProps & {
|
|
4
4
|
className?: string;
|
|
5
5
|
buttonRef?: Ref<HTMLButtonElement>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
declare const ColumnsSetting: ({ open, onClose, onChangeColumnsSetting, columnsConfig }: {
|
|
2
2
|
open: any;
|
|
3
3
|
onClose: any;
|
|
4
|
-
onChangeColumnsSetting
|
|
5
|
-
columnsConfig
|
|
6
|
-
};
|
|
7
|
-
declare const ColumnsSetting: ({ open, onClose, onChangeColumnsSetting, columnsConfig }: ColumnsSettingProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
onChangeColumnsSetting: any;
|
|
5
|
+
columnsConfig: any;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export default ColumnsSetting;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import useColumnsSetting from
|
|
1
|
+
import useColumnsSetting from "./useColumnsSetting";
|
|
2
2
|
export { useColumnsSetting };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const useColumnsSetting: (initialSavedColumns: any, editable:
|
|
1
|
+
declare const useColumnsSetting: (initialSavedColumns: any, editable: never[] | undefined, deleted: never[] | undefined, columnsConfig: any, storageColumns: never[] | undefined, setItem: any, defaultColumns: any) => {
|
|
2
2
|
columns: never[];
|
|
3
3
|
changes: {};
|
|
4
4
|
reset: () => void;
|
|
@@ -2,7 +2,6 @@ type ExportDialogProps = {
|
|
|
2
2
|
onClose: UnknownFunction;
|
|
3
3
|
onCustomExportClick?: UnknownFunction;
|
|
4
4
|
isExportAllPages?: boolean;
|
|
5
|
-
open?: boolean;
|
|
6
5
|
};
|
|
7
6
|
declare const ExportDialog: ({ onClose, onCustomExportClick, isExportAllPages }: ExportDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export default ExportDialog;
|
|
@@ -2,7 +2,7 @@ declare const useStyles: (params: void, muiStyleOverridesParams?: {
|
|
|
2
2
|
props: Record<string, unknown>;
|
|
3
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
4
4
|
} | undefined) => {
|
|
5
|
-
classes: Record<"fieldset" | "title" | "checkbox" | "root" | "
|
|
5
|
+
classes: Record<"fieldset" | "title" | "checkbox" | "root" | "exportAllPage" | "checkboxLabel" | "switchButton" | "actions", string>;
|
|
6
6
|
theme: import("@mui/material/styles").Theme;
|
|
7
7
|
css: import("tss-react/types").Css;
|
|
8
8
|
cx: import("tss-react/types").Cx;
|