@mcurros2/microm 1.1.88-0 → 1.1.91-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 +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +48 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -284,9 +284,7 @@ export function getMantineInitialValuesObject(columns: ColumnsObject, columnName
|
|
|
284
284
|
export interface UseEntityFormOptions extends FormOptions<Entity<EntityDefinition>> {
|
|
285
285
|
validateInputOnBlur?: boolean;
|
|
286
286
|
validateInputOnChange?: boolean | LooseKeys<ValuesObject>[];
|
|
287
|
-
getDataOnInit: boolean;
|
|
288
287
|
forceDirty?: boolean;
|
|
289
|
-
initialShowDescriptionInFields?: boolean;
|
|
290
288
|
saveAndGetOverride?: (get_data_if_saved: boolean, override_values?: ValuesObject) => Promise<OperationStatus<DBStatusResult>>;
|
|
291
289
|
noSaveOnSubmit?: boolean;
|
|
292
290
|
bindedColumnNames?: string[];
|
|
@@ -343,6 +341,8 @@ export interface EntityFormProps extends PropsWithChildren {
|
|
|
343
341
|
isDirtyColor?: DefaultMantineColor;
|
|
344
342
|
cancelButtonVariant?: Variants<'filled' | 'outline' | 'light' | 'white' | 'default' | 'subtle' | 'gradient'>;
|
|
345
343
|
okButtonVariant?: Variants<'filled' | 'outline' | 'light' | 'white' | 'default' | 'subtle' | 'gradient'>;
|
|
344
|
+
saveBeforeLocalNavigation?: boolean;
|
|
345
|
+
saveBeforeRemoteNavigation?: boolean;
|
|
346
346
|
}
|
|
347
347
|
export const EntityFormDefaultProps: Partial<EntityFormProps>;
|
|
348
348
|
export function EntityForm(props: EntityFormProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -403,7 +403,7 @@ export interface EntityFormModalProps {
|
|
|
403
403
|
openState: boolean;
|
|
404
404
|
setOpenState: (open: boolean) => void;
|
|
405
405
|
onModalClosed?: () => void;
|
|
406
|
-
onModalSaved?: (status: OperationStatus<DBStatusResult | null
|
|
406
|
+
onModalSaved?: (status: OperationStatus<DBStatusResult | null>) => Promise<void>;
|
|
407
407
|
modalFormSize?: MicroMModalSize;
|
|
408
408
|
}
|
|
409
409
|
export const EntityFormModalDefaultProps: Partial<EntityFormModalProps>;
|
|
@@ -1761,7 +1761,7 @@ export interface OpenFormProps {
|
|
|
1761
1761
|
title?: string;
|
|
1762
1762
|
element?: HTMLElement;
|
|
1763
1763
|
getDataOnInit?: boolean;
|
|
1764
|
-
onModalSaved?: (new_status: OperationStatus<DBStatusResult | null
|
|
1764
|
+
onModalSaved?: (new_status: OperationStatus<DBStatusResult | null>) => void;
|
|
1765
1765
|
onModalCancelled?: () => void;
|
|
1766
1766
|
onModalClosed?: () => void;
|
|
1767
1767
|
modalFormSize?: MicroMModalSize;
|
|
@@ -3310,6 +3310,7 @@ export function useMultiDataMapGrid({ dataMapView, viewState, selectionMode, map
|
|
|
3310
3310
|
onModalClosed: (cancelled?: boolean) => void;
|
|
3311
3311
|
onModalSaved: (new_status: import("src").OperationStatus<import("src").DBStatusResult | null>) => void;
|
|
3312
3312
|
modalFormSize: string | number | undefined;
|
|
3313
|
+
onModalCancelled: () => void;
|
|
3313
3314
|
withBorder: boolean;
|
|
3314
3315
|
renderOnlyWhenVisible: boolean;
|
|
3315
3316
|
viewName: string;
|
|
@@ -3323,7 +3324,6 @@ export function useMultiDataMapGrid({ dataMapView, viewState, selectionMode, map
|
|
|
3323
3324
|
autoSelectFirstRow: boolean;
|
|
3324
3325
|
notExportableColumns: number[];
|
|
3325
3326
|
withModalFullscreenButton: boolean;
|
|
3326
|
-
onModalCancelled: () => void;
|
|
3327
3327
|
labels: import("src").DataGridLabels;
|
|
3328
3328
|
onRecordsDeleted: () => void;
|
|
3329
3329
|
onActionRefreshOnClose: () => void;
|