@mcurros2/microm 1.1.381-0 → 1.1.382-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 CHANGED
@@ -2069,13 +2069,19 @@ export class ImportProcess extends Entity<ImportProcessDef> {
2069
2069
  constructor(client: MicroMClient, parentKeys?: ValuesObject);
2070
2070
  }
2071
2071
  type ControlledDataGridPanelProps = 'entityConstructor' | 'entityLoader' | 'parentKeys' | 'enableImport' | 'entityProcName' | 'excludedImportDestinations' | 'clientActionOthers' | 'enableAdd' | 'enableEdit' | 'enableDelete' | 'enableView' | 'formMode' | 'selectionMode' | 'showActions' | 'showActionsToolbar' | 'doubleClickAction' | 'autoSelectFirstRow' | 'showSelectRowsButton' | 'initialSelectRowsToggle';
2072
- export type ImportDataPanelProps = Omit<DataGridPanelProps, ControlledDataGridPanelProps> & {
2073
- /** Entity that receives the imported records. Its name is also used to filter ImportProcess history. */
2074
- entityDestination: EntitySourceProps;
2072
+ export type ImportDataPanelDestinationSourceProps = {
2073
+ /** Builds the entity that receives the imported records synchronously. */
2074
+ destinationEntityConstructor: NonNullable<EntitySourceProps['entityConstructor']>;
2075
+ destinationEntityLoader?: never;
2076
+ } | {
2077
+ destinationEntityConstructor?: never;
2078
+ /** Loads the entity that receives the imported records asynchronously. */
2079
+ destinationEntityLoader: NonNullable<EntitySourceProps['entityLoader']>;
2080
+ };
2081
+ export type ImportDataPanelProps = Omit<DataGridPanelProps, ControlledDataGridPanelProps> & ImportDataPanelDestinationSourceProps & {
2075
2082
  parentKeys?: ValuesObject;
2076
2083
  entityProcName?: string;
2077
2084
  excludedImportDestinations?: string[];
2078
- destinationLoadErrorLabel?: ReactNode;
2079
2085
  };
2080
2086
  export const ImportDataPanelDefaultProps: Partial<ImportDataPanelProps>;
2081
2087
  export function ImportDataPanel(props: ImportDataPanelProps): JSX.Element;