@mcurros2/microm 1.1.400-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 +19 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +34811 -34779
- 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);
|
|
@@ -1798,6 +1802,14 @@ export interface ImportSummaryStepProps {
|
|
|
1798
1802
|
}
|
|
1799
1803
|
export const ImportSummaryStepDefaultProps: Partial<ImportSummaryStepProps>;
|
|
1800
1804
|
export function ImportSummaryStep(props: ImportSummaryStepProps): JSX.Element | null;
|
|
1805
|
+
export const ACTDeleteHistoryDefaultProps: {
|
|
1806
|
+
deleteHistoryLabel: string;
|
|
1807
|
+
deleteHistoryTitle: string;
|
|
1808
|
+
deleteHistoryConfirmationLabel: string;
|
|
1809
|
+
selectedRecordsLabel: string;
|
|
1810
|
+
deleteLabel: string;
|
|
1811
|
+
};
|
|
1812
|
+
export const ACTDeleteHistory: EntityClientAction;
|
|
1801
1813
|
export const ACTDownloadImportedFileDefaultProps: {
|
|
1802
1814
|
downloadImportedFileLabel: string;
|
|
1803
1815
|
downloadImportedFileErrorLabel: string;
|
|
@@ -1861,10 +1873,6 @@ export interface openEntityFormProps<T extends FormOptions<Entity<EntityDefiniti
|
|
|
1861
1873
|
formProps: T;
|
|
1862
1874
|
}
|
|
1863
1875
|
export function openEntityForm<T extends FormOptions<Entity<EntityDefinition>>>({ modals, title, element, handleModalCancel, handleModalSaved, modalFormSize, formProps, handleModalClosed, withModalFullscreenButton }: openEntityFormProps<T>): Promise<void>;
|
|
1864
|
-
export const ACTImportDataDefaultProps: {
|
|
1865
|
-
importDataLabel: string;
|
|
1866
|
-
};
|
|
1867
|
-
export const ACTImportData: EntityClientAction;
|
|
1868
1876
|
export class ImportProcessDef extends EntityDefinition {
|
|
1869
1877
|
destinationProps: ImportDataDestinationProps;
|
|
1870
1878
|
columns: {
|
|
@@ -1894,11 +1902,16 @@ export class ImportProcessDef extends EntityDefinition {
|
|
|
1894
1902
|
};
|
|
1895
1903
|
clientActions: {
|
|
1896
1904
|
ACTImportData: _EntityClientAction1;
|
|
1905
|
+
ACTDeleteHistory: _EntityClientAction1;
|
|
1897
1906
|
ACTDownloadImportedFile: _EntityClientAction1;
|
|
1898
1907
|
ACTViewImportErrors: _EntityClientAction1;
|
|
1899
1908
|
};
|
|
1900
1909
|
constructor(destinationProps: ImportDataDestinationProps);
|
|
1901
1910
|
}
|
|
1911
|
+
export const ACTImportDataDefaultProps: {
|
|
1912
|
+
importDataLabel: string;
|
|
1913
|
+
};
|
|
1914
|
+
export const ACTImportData: EntityClientAction;
|
|
1902
1915
|
export class ImportProcess extends Entity<ImportProcessDef> {
|
|
1903
1916
|
constructor(client: MicroMClient, parentKeys: ValuesObject | undefined, destinationProps: ImportDataDestinationProps);
|
|
1904
1917
|
}
|
|
@@ -1973,13 +1986,12 @@ export interface UseImportDataProps {
|
|
|
1973
1986
|
handleImportSuccess?: () => Promise<void>;
|
|
1974
1987
|
}
|
|
1975
1988
|
export function useImportDataForm({ initialFormMode, title, element, getDataOnInit, modalFormSize, handleModalCancel, handleModalClosed, handleModalSaved, handleImportSuccess }: UseImportDataProps): {
|
|
1976
|
-
openImportDataForm: (importEntity: Entity<EntityDefinition>, entityProcName?: string
|
|
1989
|
+
openImportDataForm: (importEntity: Entity<EntityDefinition>, entityProcName?: string) => Promise<void>;
|
|
1977
1990
|
};
|
|
1978
1991
|
export interface ImportEntityDataFormProps extends FormOptions<ImportEntityData> {
|
|
1979
1992
|
importEntity?: Entity<EntityDefinition>;
|
|
1980
1993
|
destinationEntityExportViewName?: string;
|
|
1981
1994
|
entityProcName?: string;
|
|
1982
|
-
excludedImportDestinations?: string[];
|
|
1983
1995
|
importFileStepProps?: ImportFileStepCustomizationProps;
|
|
1984
1996
|
stepperProps?: StepperFormProps['stepperProps'];
|
|
1985
1997
|
onImportSuccess?: () => Promise<void>;
|
|
@@ -2043,7 +2055,6 @@ export interface ImportDataDestinationProps {
|
|
|
2043
2055
|
destinationEntity: Entity<EntityDefinition>;
|
|
2044
2056
|
destinationEntityExportViewName?: string;
|
|
2045
2057
|
entityProcName?: string;
|
|
2046
|
-
excludedImportDestinations?: string[];
|
|
2047
2058
|
importFileStepProps?: ImportFileStepCustomizationProps;
|
|
2048
2059
|
stepperProps?: StepperFormProps['stepperProps'];
|
|
2049
2060
|
}
|
|
@@ -2334,7 +2345,6 @@ export interface UseEntityUIProps {
|
|
|
2334
2345
|
onActionExecuted?: (actionName: string, result?: boolean) => void;
|
|
2335
2346
|
onModalClosed?: (cancelled?: boolean) => void;
|
|
2336
2347
|
entityProcName?: string;
|
|
2337
|
-
excludedImportDestinations?: string[];
|
|
2338
2348
|
onImportSuccess?: () => void;
|
|
2339
2349
|
}
|
|
2340
2350
|
export function useEntityUI(props: UseEntityUIProps): {
|
|
@@ -3679,7 +3689,6 @@ export function useMultiDataMapGrid({ dataMapView, viewState, selectionMode, map
|
|
|
3679
3689
|
initialHiddenColumns: number[];
|
|
3680
3690
|
initialSelectRowsToggle: boolean;
|
|
3681
3691
|
entityProcName: string;
|
|
3682
|
-
excludedImportDestinations: string[];
|
|
3683
3692
|
onRecordsDeleted: () => void;
|
|
3684
3693
|
onActionRefreshOnClose: () => void;
|
|
3685
3694
|
renderOnlyWhenVisible: boolean;
|