Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
madsrasmussen committed Oct 1, 2024
1 parent 0984e51 commit 8cebdcc
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { UmbEntityActionBase } from '../../entity-action-base.js';
import { UmbRequestReloadStructureForEntityEvent } from '../../request-reload-structure-for-entity.event.js';
import type { MetaEntityActionDeleteKind } from '../../entity-action.extension.js';
import type { MetaEntityActionDeleteKind } from './types.js';
import { createExtensionApiByAlias } from '@umbraco-cms/backoffice/extension-registry';
import { umbConfirmModal } from '@umbraco-cms/backoffice/modal';
import type { UmbDetailRepository, UmbItemRepository } from '@umbraco-cms/backoffice/repository';
Expand Down
3 changes: 2 additions & 1 deletion src/packages/core/entity-action/common/delete/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { ManifestEntityAction, MetaEntityActionDefaultKind } from '../../entity-action.extension.js';
import type { MetaEntityActionDefaultKind } from '../../default/index.js';
import type { ManifestEntityAction } from '../../entity-action.extension.js';

export interface ManifestEntityActionDeleteKind extends ManifestEntityAction<MetaEntityActionDeleteKind> {
type: 'entityAction';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { UmbDuplicateRepository } from './duplicate-repository.interface.js
import { createExtensionApiByAlias } from '@umbraco-cms/backoffice/extension-registry';
import { UMB_ACTION_EVENT_CONTEXT } from '@umbraco-cms/backoffice/action';

export class UmbDuplicateEntityAction extends UmbEntityActionBase<MetaEntityActionDuplicateKind> {
export class UmbDuplicateEntityAction extends UmbEntityActionBase<any> {
override async execute() {
if (!this.args.unique) throw new Error('Unique is not available');
if (!this.args.entityType) throw new Error('Entity Type is not available');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { UmbEntityAction } from '../entity-action.interface.js';
import type { UmbEntityActionElement } from '../entity-action-element.interface.js';
import type { ManifestEntityAction, MetaEntityActionDefaultKind } from '../entity-action.extension.js';
import type { ManifestEntityAction } from '../entity-action.extension.js';
import type { MetaEntityActionDefaultKind } from './types.js';
import { UmbActionExecutedEvent } from '@umbraco-cms/backoffice/event';
import { html, nothing, ifDefined, customElement, property, state } from '@umbraco-cms/backoffice/external/lit';
import type { UUIMenuItemEvent } from '@umbraco-cms/backoffice/external/uui';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import { UmbEntityActionBase } from '../../../entity-action/entity-action-base.js';
import type { UmbRecycleBinRepository } from '../../recycle-bin-repository.interface.js';
import type { MetaEntityActionEmptyRecycleBinKind } from './types.js';
import { umbConfirmModal } from '@umbraco-cms/backoffice/modal';
import { createExtensionApiByAlias } from '@umbraco-cms/backoffice/extension-registry';
import { UMB_ACTION_EVENT_CONTEXT } from '@umbraco-cms/backoffice/action';
import {
UmbRequestReloadChildrenOfEntityEvent,
type MetaEntityActionEmptyRecycleBinKind,
} from '@umbraco-cms/backoffice/entity-action';
import { UmbEntityActionBase, UmbRequestReloadChildrenOfEntityEvent } from '@umbraco-cms/backoffice/entity-action';

/**
* Entity action for emptying the recycle bin.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import { UmbEntityActionBase } from '../../../entity-action/entity-action-base.js';
import { UMB_RESTORE_FROM_RECYCLE_BIN_MODAL } from './modal/restore-from-recycle-bin-modal.token.js';
import type { MetaEntityActionRestoreFromRecycleBinKind } from './types.js';
import { UMB_MODAL_MANAGER_CONTEXT } from '@umbraco-cms/backoffice/modal';
import {
UmbRequestReloadStructureForEntityEvent,
type MetaEntityActionRestoreFromRecycleBinKind,
} from '@umbraco-cms/backoffice/entity-action';
import { UmbEntityActionBase, UmbRequestReloadStructureForEntityEvent } from '@umbraco-cms/backoffice/entity-action';
import { UMB_ACTION_EVENT_CONTEXT } from '@umbraco-cms/backoffice/action';

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { UmbEntityActionBase } from '../../../entity-action/entity-action-base.js';
import { UmbRequestReloadStructureForEntityEvent } from '../../../entity-action/request-reload-structure-for-entity.event.js';
import type { UmbRecycleBinRepository } from '../../recycle-bin-repository.interface.js';
import type { MetaEntityActionTrashKind } from './types.js';
import { createExtensionApiByAlias } from '@umbraco-cms/backoffice/extension-registry';
import { umbConfirmModal } from '@umbraco-cms/backoffice/modal';
import type { UmbItemRepository } from '@umbraco-cms/backoffice/repository';
import { UMB_ACTION_EVENT_CONTEXT } from '@umbraco-cms/backoffice/action';
import type { MetaEntityActionTrashKind } from '@umbraco-cms/backoffice/entity-action';

/**
* Entity action for trashing an item.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { UMB_RENAME_SERVER_FILE_MODAL } from './modal/rename-server-file-modal.token.js';
import {
UmbEntityActionBase,
UmbRequestReloadStructureForEntityEvent,
type MetaEntityActionRenameServerFileKind,
} from '@umbraco-cms/backoffice/entity-action';
import type { MetaEntityActionRenameServerFileKind } from './types.js';
import { UmbEntityActionBase, UmbRequestReloadStructureForEntityEvent } from '@umbraco-cms/backoffice/entity-action';
import { UMB_MODAL_MANAGER_CONTEXT } from '@umbraco-cms/backoffice/modal';
import { UMB_ACTION_EVENT_CONTEXT } from '@umbraco-cms/backoffice/action';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import type {
MetaEntityActionReloadTreeItemChildrenKind,
UmbEntityActionArgs,
} from '@umbraco-cms/backoffice/entity-action';
import type { MetaEntityActionReloadTreeItemChildrenKind } from './types.js';
import type { UmbEntityActionArgs } from '@umbraco-cms/backoffice/entity-action';
import { UmbEntityActionBase, UmbRequestReloadChildrenOfEntityEvent } from '@umbraco-cms/backoffice/entity-action';
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
import { UMB_ACTION_EVENT_CONTEXT } from '@umbraco-cms/backoffice/action';
Expand Down

0 comments on commit 8cebdcc

Please sign in to comment.