@mcurros2/microm 1.1.23-0 → 1.1.24-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 +6 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -652,6 +652,7 @@ export const ModalsManagerDefaultProps: {
|
|
|
652
652
|
export type MicroMModalSize = MantineNumberSize | 'fullscreen';
|
|
653
653
|
export type MicroMModalSettings = Partial<Omit<ModalSettings, 'size'>> & {
|
|
654
654
|
size?: MicroMModalSize;
|
|
655
|
+
withFullscreenButton?: boolean;
|
|
655
656
|
};
|
|
656
657
|
export interface ModalOpenProps {
|
|
657
658
|
content: ReactNode | Promise<ReactNode>;
|
|
@@ -666,7 +667,7 @@ export interface ModalContextType {
|
|
|
666
667
|
export interface ModalType {
|
|
667
668
|
originalContent: ReactNode | Promise<ReactNode>;
|
|
668
669
|
resolvedContent?: ReactNode;
|
|
669
|
-
props:
|
|
670
|
+
props: MicroMModalSettings;
|
|
670
671
|
id: string;
|
|
671
672
|
opened: boolean;
|
|
672
673
|
onClosed?: () => void;
|
|
@@ -1684,9 +1685,10 @@ export interface openEntityFormProps<T extends FormOptions<Entity<EntityDefiniti
|
|
|
1684
1685
|
handleModalCancel: () => Promise<void>;
|
|
1685
1686
|
handleModalClosed?: () => void;
|
|
1686
1687
|
modalFormSize?: MicroMModalSize;
|
|
1688
|
+
withModalFullscreenButton?: boolean;
|
|
1687
1689
|
formProps: T;
|
|
1688
1690
|
}
|
|
1689
|
-
export function openEntityForm<T extends FormOptions<Entity<EntityDefinition>>>({ modals, title, element, handleModalCancel, handleModalSaved, modalFormSize, formProps, handleModalClosed }: openEntityFormProps<T>): Promise<void>;
|
|
1691
|
+
export function openEntityForm<T extends FormOptions<Entity<EntityDefinition>>>({ modals, title, element, handleModalCancel, handleModalSaved, modalFormSize, formProps, handleModalClosed, withModalFullscreenButton }: openEntityFormProps<T>): Promise<void>;
|
|
1690
1692
|
export interface EntityUILabels {
|
|
1691
1693
|
addLabel: string;
|
|
1692
1694
|
editLabel: string;
|
|
@@ -1709,6 +1711,7 @@ export interface UseEntityUIProps {
|
|
|
1709
1711
|
entity?: Entity<EntityDefinition>;
|
|
1710
1712
|
parentKeys?: ValuesObject;
|
|
1711
1713
|
modalFormSize?: MicroMModalSize;
|
|
1714
|
+
withModalFullscreenButton?: boolean;
|
|
1712
1715
|
parentFormAPI?: UseEntityFormReturnType;
|
|
1713
1716
|
saveFormBeforeAdd?: boolean;
|
|
1714
1717
|
onModalSaved?: (new_status: OperationStatus<DBStatusResult | null>) => void;
|
|
@@ -3298,6 +3301,7 @@ export function useMultiDataMapGrid({ dataMapView, viewState, selectionMode, map
|
|
|
3298
3301
|
saveFormBeforeAdd: boolean;
|
|
3299
3302
|
autoSelectFirstRow: boolean;
|
|
3300
3303
|
notExportableColumns: number[];
|
|
3304
|
+
withModalFullscreenButton: boolean;
|
|
3301
3305
|
labels: import("src").DataGridLabels;
|
|
3302
3306
|
onRecordsDeleted: () => void;
|
|
3303
3307
|
onActionRefreshOnClose: () => void;
|