@mcurros2/microm 1.1.23-0 → 1.1.25-0
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/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +24 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -648,10 +648,12 @@ export const ModalsManagerDefaultProps: {
|
|
|
648
648
|
toggleLabel: string;
|
|
649
649
|
FullScreenIcon: import("react").ForwardRefExoticComponent<import("@tabler/icons-react").IconProps & import("react").RefAttributes<import("@tabler/icons-react").Icon>>;
|
|
650
650
|
RestoreScreeSizeIcon: import("react").ForwardRefExoticComponent<import("@tabler/icons-react").IconProps & import("react").RefAttributes<import("@tabler/icons-react").Icon>>;
|
|
651
|
+
withCloseButton: boolean;
|
|
651
652
|
};
|
|
652
653
|
export type MicroMModalSize = MantineNumberSize | 'fullscreen';
|
|
653
654
|
export type MicroMModalSettings = Partial<Omit<ModalSettings, 'size'>> & {
|
|
654
655
|
size?: MicroMModalSize;
|
|
656
|
+
withFullscreenButton?: boolean;
|
|
655
657
|
};
|
|
656
658
|
export interface ModalOpenProps {
|
|
657
659
|
content: ReactNode | Promise<ReactNode>;
|
|
@@ -672,6 +674,7 @@ export interface ModalType {
|
|
|
672
674
|
onClosed?: () => void;
|
|
673
675
|
focusOnClosed?: HTMLElement;
|
|
674
676
|
initialSize?: MicroMModalSize;
|
|
677
|
+
withFullscreenButton?: boolean;
|
|
675
678
|
}
|
|
676
679
|
export interface ModalsManagerProps extends PropsWithChildren {
|
|
677
680
|
modalProps: MicroMModalSettings;
|
|
@@ -1684,9 +1687,10 @@ export interface openEntityFormProps<T extends FormOptions<Entity<EntityDefiniti
|
|
|
1684
1687
|
handleModalCancel: () => Promise<void>;
|
|
1685
1688
|
handleModalClosed?: () => void;
|
|
1686
1689
|
modalFormSize?: MicroMModalSize;
|
|
1690
|
+
withModalFullscreenButton?: boolean;
|
|
1687
1691
|
formProps: T;
|
|
1688
1692
|
}
|
|
1689
|
-
export function openEntityForm<T extends FormOptions<Entity<EntityDefinition>>>({ modals, title, element, handleModalCancel, handleModalSaved, modalFormSize, formProps, handleModalClosed }: openEntityFormProps<T>): Promise<void>;
|
|
1693
|
+
export function openEntityForm<T extends FormOptions<Entity<EntityDefinition>>>({ modals, title, element, handleModalCancel, handleModalSaved, modalFormSize, formProps, handleModalClosed, withModalFullscreenButton }: openEntityFormProps<T>): Promise<void>;
|
|
1690
1694
|
export interface EntityUILabels {
|
|
1691
1695
|
addLabel: string;
|
|
1692
1696
|
editLabel: string;
|
|
@@ -1709,6 +1713,7 @@ export interface UseEntityUIProps {
|
|
|
1709
1713
|
entity?: Entity<EntityDefinition>;
|
|
1710
1714
|
parentKeys?: ValuesObject;
|
|
1711
1715
|
modalFormSize?: MicroMModalSize;
|
|
1716
|
+
withModalFullscreenButton?: boolean;
|
|
1712
1717
|
parentFormAPI?: UseEntityFormReturnType;
|
|
1713
1718
|
saveFormBeforeAdd?: boolean;
|
|
1714
1719
|
onModalSaved?: (new_status: OperationStatus<DBStatusResult | null>) => void;
|
|
@@ -3298,6 +3303,7 @@ export function useMultiDataMapGrid({ dataMapView, viewState, selectionMode, map
|
|
|
3298
3303
|
saveFormBeforeAdd: boolean;
|
|
3299
3304
|
autoSelectFirstRow: boolean;
|
|
3300
3305
|
notExportableColumns: number[];
|
|
3306
|
+
withModalFullscreenButton: boolean;
|
|
3301
3307
|
labels: import("src").DataGridLabels;
|
|
3302
3308
|
onRecordsDeleted: () => void;
|
|
3303
3309
|
onActionRefreshOnClose: () => void;
|