move action base class to entity action lib folder

This commit is contained in:
Mads Rasmussen
2023-02-27 14:05:46 +01:00
committed by Jacob Overgaard
parent 96e1282aad
commit cc921631ee
4 changed files with 8 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ import { umbExtensionsRegistry, createExtensionClass } from '@umbraco-cms/extens
import { UmbObserverController } from '@umbraco-cms/observable-api';
export interface UmbAction<RepositoryType> {
host: UmbControllerHostInterface;
repository: RepositoryType;
execute(): Promise<void>;
}

View File

@@ -1,4 +1,4 @@
import { UmbAction, UmbActionBase } from '../../src/backoffice/shared/action';
import { UmbAction, UmbActionBase } from './action';
import { UmbControllerHostInterface } from '@umbraco-cms/controller';
export interface UmbEntityAction<RepositoryType> extends UmbAction<RepositoryType> {

View File

@@ -1,5 +1,9 @@
import { UmbAction, UmbActionBase } from './action';
import { UmbControllerHostInterface } from '@umbraco-cms/controller';
import { UmbActionBase } from 'src/backoffice/shared/action';
export interface UmbEntityBulkAction<RepositoryType> extends UmbAction<RepositoryType> {
selection: Array<string>;
}
export class UmbEntityBulkActionBase<T> extends UmbActionBase<T> {
selection: Array<string>;

View File

@@ -1,2 +1,3 @@
export * from './action';
export * from './entity-action';
export * from './entity-bulk-action';