@mcurros2/microm 1.1.401-0 → 1.1.402-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 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +110 -185
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -844,7 +844,6 @@ export interface DataGridProps extends UseEntityUIProps {
|
|
|
844
844
|
showActionsToolbar?: boolean;
|
|
845
845
|
enableImport?: boolean;
|
|
846
846
|
entityProcName?: string;
|
|
847
|
-
excludedImportDestinations?: string[];
|
|
848
847
|
gridHeight?: string | number | 'auto' | 'flex-grow';
|
|
849
848
|
minGridHeight?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'none';
|
|
850
849
|
autoSelectFirstRow?: boolean;
|
|
@@ -1142,6 +1141,11 @@ export class EntityDefinition {
|
|
|
1142
1141
|
lookups: Record<string, EntityLookup>;
|
|
1143
1142
|
serverActions: Record<string, EntityServerAction>;
|
|
1144
1143
|
clientActions: Record<string, EntityClientAction>;
|
|
1144
|
+
/**
|
|
1145
|
+
* Ordered allowlist of columns available for data imports.
|
|
1146
|
+
* A null value uses the import flow's inferred destinations; an empty array exposes no destinations.
|
|
1147
|
+
* Values are expected to be lowercase and unique.
|
|
1148
|
+
*/
|
|
1145
1149
|
importColumns: string[] | null;
|
|
1146
1150
|
standardView(): string | null;
|
|
1147
1151
|
constructor(name: string);
|
|
@@ -1982,13 +1986,12 @@ export interface UseImportDataProps {
|
|
|
1982
1986
|
handleImportSuccess?: () => Promise<void>;
|
|
1983
1987
|
}
|
|
1984
1988
|
export function useImportDataForm({ initialFormMode, title, element, getDataOnInit, modalFormSize, handleModalCancel, handleModalClosed, handleModalSaved, handleImportSuccess }: UseImportDataProps): {
|
|
1985
|
-
openImportDataForm: (importEntity: Entity<EntityDefinition>, entityProcName?: string
|
|
1989
|
+
openImportDataForm: (importEntity: Entity<EntityDefinition>, entityProcName?: string) => Promise<void>;
|
|
1986
1990
|
};
|
|
1987
1991
|
export interface ImportEntityDataFormProps extends FormOptions<ImportEntityData> {
|
|
1988
1992
|
importEntity?: Entity<EntityDefinition>;
|
|
1989
1993
|
destinationEntityExportViewName?: string;
|
|
1990
1994
|
entityProcName?: string;
|
|
1991
|
-
excludedImportDestinations?: string[];
|
|
1992
1995
|
importFileStepProps?: ImportFileStepCustomizationProps;
|
|
1993
1996
|
stepperProps?: StepperFormProps['stepperProps'];
|
|
1994
1997
|
onImportSuccess?: () => Promise<void>;
|
|
@@ -2052,7 +2055,6 @@ export interface ImportDataDestinationProps {
|
|
|
2052
2055
|
destinationEntity: Entity<EntityDefinition>;
|
|
2053
2056
|
destinationEntityExportViewName?: string;
|
|
2054
2057
|
entityProcName?: string;
|
|
2055
|
-
excludedImportDestinations?: string[];
|
|
2056
2058
|
importFileStepProps?: ImportFileStepCustomizationProps;
|
|
2057
2059
|
stepperProps?: StepperFormProps['stepperProps'];
|
|
2058
2060
|
}
|
|
@@ -2343,7 +2345,6 @@ export interface UseEntityUIProps {
|
|
|
2343
2345
|
onActionExecuted?: (actionName: string, result?: boolean) => void;
|
|
2344
2346
|
onModalClosed?: (cancelled?: boolean) => void;
|
|
2345
2347
|
entityProcName?: string;
|
|
2346
|
-
excludedImportDestinations?: string[];
|
|
2347
2348
|
onImportSuccess?: () => void;
|
|
2348
2349
|
}
|
|
2349
2350
|
export function useEntityUI(props: UseEntityUIProps): {
|
|
@@ -3688,7 +3689,6 @@ export function useMultiDataMapGrid({ dataMapView, viewState, selectionMode, map
|
|
|
3688
3689
|
initialHiddenColumns: number[];
|
|
3689
3690
|
initialSelectRowsToggle: boolean;
|
|
3690
3691
|
entityProcName: string;
|
|
3691
|
-
excludedImportDestinations: string[];
|
|
3692
3692
|
onRecordsDeleted: () => void;
|
|
3693
3693
|
onActionRefreshOnClose: () => void;
|
|
3694
3694
|
renderOnlyWhenVisible: boolean;
|