Merge branch 'feature/entity-action-kind' of https://github.com/umbraco/Umbraco.CMS.Backoffice into feature/entity-action-kind

This commit is contained in:
Mads Rasmussen
2024-03-03 22:20:52 +01:00
36 changed files with 66 additions and 89 deletions

View File

@@ -11,12 +11,12 @@ export const manifest: UmbBackofficeManifestKind = {
kind: 'delete',
api: UmbDeleteEntityAction,
weight: 900,
forEntityTypes: [],
meta: {
icon: 'icon-trash',
label: 'Delete...',
itemRepositoryAlias: '',
detailRepositoryAlias: '',
entityTypes: [],
},
},
};

View File

@@ -11,10 +11,10 @@ export const manifest: UmbBackofficeManifestKind = {
kind: 'duplicate',
api: UmbDuplicateEntityAction,
weight: 600,
forEntityTypes: [],
meta: {
icon: 'icon-documents',
label: 'Duplicate to...',
entityTypes: [],
itemRepositoryAlias: '',
duplicateRepositoryAlias: '',
pickerModalAlias: '',

View File

@@ -11,10 +11,10 @@ export const manifest: UmbBackofficeManifestKind = {
kind: 'move',
api: UmbMoveEntityAction,
weight: 700,
forEntityTypes: [],
meta: {
icon: 'icon-enter',
label: 'Move to (TBD)...',
entityTypes: [],
itemRepositoryAlias: '',
moveRepositoryAlias: '',
pickerModalAlias: '',

View File

@@ -11,10 +11,10 @@ export const manifest: UmbBackofficeManifestKind = {
kind: 'rename',
api: UmbRenameEntityAction,
weight: 200,
forEntityTypes: [],
meta: {
icon: 'icon-edit',
label: 'Rename...',
entityTypes: [],
renameRepositoryAlias: '',
itemRepositoryAlias: '',
},

View File

@@ -13,7 +13,7 @@ export class UmbEntityActionListElement extends UmbLitElement {
if (value === undefined || value === this._props.entityType) return;
this._props.entityType = value;
const oldValue = this._filter;
this._filter = (extension: ManifestEntityAction<MetaEntityAction>) => extension.meta.entityTypes.includes(value);
this._filter = (extension: ManifestEntityAction<MetaEntityAction>) => extension.forEntityTypes.includes(value);
this.requestUpdate('_filter', oldValue);
this.requestUpdate('_props');
}

View File

@@ -10,7 +10,7 @@ export interface ManifestEntityAction<MetaType extends MetaEntityAction>
extends ManifestElementAndApi<UmbControllerHostElement, UmbEntityAction<MetaType>>,
ManifestWithDynamicConditions {
type: 'entityAction';
entityTypes: Array<string>;
forEntityTypes: Array<string>;
meta: MetaType;
}

View File

@@ -11,6 +11,7 @@ export interface ManifestEntityBulkAction<MetaType extends MetaEntityBulkAction>
extends ManifestElementAndApi<UmbControllerHostElement, UmbEntityBulkActionBase<MetaType>>,
ManifestWithDynamicConditions<ConditionTypes> {
type: 'entityBulkAction';
forEntityTypes: Array<string>;
meta: MetaType;
}
@@ -24,6 +25,4 @@ export interface MetaEntityBulkAction {
* ]
*/
label?: string;
entityTypes: Array<string>;
}

View File

@@ -5,9 +5,5 @@ import type { ManifestElementAndApi } from '@umbraco-cms/backoffice/extension-ap
export interface ManifestTreeItem
extends ManifestElementAndApi<UmbControllerHostElement, UmbTreeItemContext<UmbTreeItemModelBase>> {
type: 'treeItem';
meta: MetaTreeItem;
}
export interface MetaTreeItem {
entityTypes: Array<string>;
forEntityTypes: Array<string>;
}

View File

@@ -11,10 +11,10 @@ export const manifest: UmbBackofficeManifestKind = {
kind: 'reloadTreeItemChildren',
api: UmbReloadTreeItemChildrenEntityAction,
weight: 100,
forEntityTypes: [],
meta: {
icon: 'icon-refresh',
label: 'Reload children',
entityTypes: [],
},
},
};

View File

@@ -9,10 +9,10 @@ const entityActions: Array<ManifestTypes> = [
name: 'Create Data Type Entity Action',
weight: 1000,
api: UmbCreateDataTypeEntityAction,
forEntityTypes: [UMB_DATA_TYPE_ROOT_ENTITY_TYPE, UMB_DATA_TYPE_FOLDER_ENTITY_TYPE],
meta: {
icon: 'icon-add',
label: 'Create...',
entityTypes: [UMB_DATA_TYPE_ROOT_ENTITY_TYPE, UMB_DATA_TYPE_FOLDER_ENTITY_TYPE],
},
},
{

View File

@@ -10,8 +10,8 @@ const entityActions: Array<ManifestTypes> = [
alias: 'Umb.EntityAction.DataType.Duplicate',
name: 'Duplicate Data Type Entity Action',
kind: 'duplicate',
forEntityTypes: [UMB_DATA_TYPE_ENTITY_TYPE],
meta: {
entityTypes: [UMB_DATA_TYPE_ENTITY_TYPE],
duplicateRepositoryAlias: UMB_COPY_DATA_TYPE_REPOSITORY_ALIAS,
itemRepositoryAlias: UMB_DATA_TYPE_ITEM_REPOSITORY_ALIAS,
pickerModalAlias: UMB_DATA_TYPE_PICKER_MODAL.toString(),

View File

@@ -12,10 +12,10 @@ const entityActions: Array<ManifestTypes> = [
kind: 'delete',
alias: 'Umb.EntityAction.DataType.Delete',
name: 'Delete Data Type Entity Action',
forEntityTypes: [UMB_DATA_TYPE_ENTITY_TYPE],
meta: {
detailRepositoryAlias: UMB_DATA_TYPE_DETAIL_REPOSITORY_ALIAS,
itemRepositoryAlias: UMB_DATA_TYPE_ITEM_REPOSITORY_ALIAS,
entityTypes: [UMB_DATA_TYPE_ENTITY_TYPE],
},
},
];

View File

@@ -10,8 +10,8 @@ const entityActions: Array<ManifestTypes> = [
alias: 'Umb.EntityAction.DataType.Move',
name: 'Move Data Type Entity Action',
kind: 'move',
forEntityTypes: [UMB_DATA_TYPE_ENTITY_TYPE],
meta: {
entityTypes: [UMB_DATA_TYPE_ENTITY_TYPE],
itemRepositoryAlias: UMB_DATA_TYPE_ITEM_REPOSITORY_ALIAS,
moveRepositoryAlias: UMB_MOVE_DATA_TYPE_REPOSITORY_ALIAS,
pickerModalAlias: UMB_DATA_TYPE_PICKER_MODAL.toString(),

View File

@@ -19,11 +19,11 @@ const entityActions: Array<ManifestEntityAction> = [
name: 'Rename Data Type Folder Entity Action',
weight: 800,
api: UmbFolderUpdateEntityAction,
forEntityTypes: [UMB_DATA_TYPE_FOLDER_ENTITY_TYPE],
meta: {
icon: 'icon-edit',
label: 'Rename Folder...',
repositoryAlias: UMB_DATA_TYPE_FOLDER_REPOSITORY_ALIAS,
entityTypes: [UMB_DATA_TYPE_FOLDER_ENTITY_TYPE],
},
},
{
@@ -32,11 +32,11 @@ const entityActions: Array<ManifestEntityAction> = [
name: 'Delete Data Type Folder Entity Action',
weight: 700,
api: UmbDeleteFolderEntityAction,
forEntityTypes: [UMB_DATA_TYPE_FOLDER_ENTITY_TYPE],
meta: {
icon: 'icon-trash',
label: 'Delete Folder...',
repositoryAlias: UMB_DATA_TYPE_FOLDER_REPOSITORY_ALIAS,
entityTypes: [UMB_DATA_TYPE_FOLDER_ENTITY_TYPE],
},
},
];

View File

@@ -41,9 +41,8 @@ const treeItem: ManifestTreeItem = {
kind: 'default',
alias: 'Umb.TreeItem.DataType',
name: 'Data Type Tree Item',
meta: {
entityTypes: ['data-type-root', 'data-type', 'data-type-folder'],
},
forEntityTypes: ['data-type-root', 'data-type', 'data-type-folder'],
meta: {},
};
export const manifests = [treeRepository, treeStore, tree, treeItem, ...folderManifests, ...reloadManifests];

View File

@@ -11,8 +11,7 @@ export const manifests: Array<ManifestTypes> = [
alias: 'Umb.EntityAction.DataType.Tree.ReloadChildrenOf',
name: 'Reload Data Type Tree Item Children Entity Action',
kind: 'reloadTreeItemChildren',
meta: {
entityTypes: [UMB_DATA_TYPE_ENTITY_TYPE, UMB_DATA_TYPE_ROOT_ENTITY_TYPE, UMB_DATA_TYPE_FOLDER_ENTITY_TYPE],
},
forEntityTypes: [UMB_DATA_TYPE_ENTITY_TYPE, UMB_DATA_TYPE_ROOT_ENTITY_TYPE, UMB_DATA_TYPE_FOLDER_ENTITY_TYPE],
meta: {},
},
];

View File

@@ -18,11 +18,11 @@ const entityActions: Array<ManifestTypes> = [
name: 'Create Dictionary Entity Action',
weight: 600,
api: UmbCreateDictionaryEntityAction,
forEntityTypes: [UMB_DICTIONARY_ENTITY_TYPE, UMB_DICTIONARY_ROOT_ENTITY_TYPE],
meta: {
icon: 'icon-add',
label: 'Create',
repositoryAlias: UMB_DICTIONARY_DETAIL_REPOSITORY_ALIAS,
entityTypes: [UMB_DICTIONARY_ENTITY_TYPE, UMB_DICTIONARY_ROOT_ENTITY_TYPE],
},
},
{
@@ -31,11 +31,11 @@ const entityActions: Array<ManifestTypes> = [
name: 'Move Dictionary Entity Action',
weight: 500,
api: UmbMoveEntityAction,
forEntityTypes: [UMB_DICTIONARY_ENTITY_TYPE],
meta: {
icon: 'icon-enter',
label: 'Move',
repositoryAlias: UMB_DICTIONARY_DETAIL_REPOSITORY_ALIAS,
entityTypes: [UMB_DICTIONARY_ENTITY_TYPE],
},
},
{
@@ -44,11 +44,11 @@ const entityActions: Array<ManifestTypes> = [
name: 'Export Dictionary Entity Action',
weight: 400,
api: UmbExportDictionaryEntityAction,
forEntityTypes: [UMB_DICTIONARY_ENTITY_TYPE],
meta: {
icon: 'icon-download-alt',
label: 'Export',
repositoryAlias: UMB_DICTIONARY_EXPORT_REPOSITORY_ALIAS,
entityTypes: [UMB_DICTIONARY_ENTITY_TYPE],
},
},
{
@@ -57,11 +57,11 @@ const entityActions: Array<ManifestTypes> = [
name: 'Import Dictionary Entity Action',
weight: 300,
api: UmbImportDictionaryEntityAction,
forEntityTypes: [UMB_DICTIONARY_ENTITY_TYPE, UMB_DICTIONARY_ROOT_ENTITY_TYPE],
meta: {
icon: 'icon-page-up',
label: 'Import',
repositoryAlias: UMB_DICTIONARY_IMPORT_REPOSITORY_ALIAS,
entityTypes: [UMB_DICTIONARY_ENTITY_TYPE, UMB_DICTIONARY_ROOT_ENTITY_TYPE],
},
},
{
@@ -69,10 +69,10 @@ const entityActions: Array<ManifestTypes> = [
alias: 'Umb.EntityAction.Dictionary.Delete',
name: 'Delete Dictionary Entity Action',
kind: 'delete',
forEntityTypes: [UMB_DICTIONARY_ENTITY_TYPE],
meta: {
itemRepositoryAlias: UMB_DICTIONARY_ITEM_REPOSITORY_ALIAS,
detailRepositoryAlias: UMB_DICTIONARY_DETAIL_REPOSITORY_ALIAS,
entityTypes: [UMB_DICTIONARY_ENTITY_TYPE],
},
},
];

View File

@@ -42,9 +42,7 @@ const treeItem: ManifestTreeItem = {
kind: 'default',
alias: 'Umb.TreeItem.Dictionary',
name: 'Dictionary Tree Item',
meta: {
entityTypes: [UMB_DICTIONARY_ROOT_ENTITY_TYPE, UMB_DICTIONARY_ENTITY_TYPE],
},
forEntityTypes: [UMB_DICTIONARY_ROOT_ENTITY_TYPE, UMB_DICTIONARY_ENTITY_TYPE],
};
export const manifests = [treeRepository, treeStore, tree, treeItem, ...reloadTreeItemChildrenManifests];

View File

@@ -7,8 +7,6 @@ export const manifests: Array<ManifestTypes> = [
alias: 'Umb.EntityAction.Dictionary.Tree.ReloadChildrenOf',
name: 'Reload Dictionary Tree Item Children Entity Action',
kind: 'reloadTreeItemChildren',
meta: {
entityTypes: [UMB_DICTIONARY_ROOT_ENTITY_TYPE, UMB_DICTIONARY_ENTITY_TYPE],
},
forEntityTypes: [UMB_DICTIONARY_ROOT_ENTITY_TYPE, UMB_DICTIONARY_ENTITY_TYPE],
},
];

View File

@@ -13,14 +13,14 @@ const entityActions: Array<ManifestTypes> = [
name: 'Create Document Type Entity Action',
weight: 1000,
api: UmbCreateDataTypeEntityAction,
forEntityTypes: [
UMB_DOCUMENT_TYPE_ENTITY_TYPE,
UMB_DOCUMENT_TYPE_ROOT_ENTITY_TYPE,
UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE,
],
meta: {
icon: 'icon-add',
label: 'Create...',
entityTypes: [
UMB_DOCUMENT_TYPE_ENTITY_TYPE,
UMB_DOCUMENT_TYPE_ROOT_ENTITY_TYPE,
UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE,
],
},
},
{

View File

@@ -15,10 +15,10 @@ const entityActions: Array<ManifestTypes> = [
alias: 'Umb.EntityAction.DocumentType.Delete',
name: 'Delete Document-Type Entity Action',
kind: 'delete',
forEntityTypes: [entityType],
meta: {
itemRepositoryAlias: DOCUMENT_TYPE_ITEM_REPOSITORY_ALIAS,
detailRepositoryAlias: DOCUMENT_TYPE_DETAIL_REPOSITORY_ALIAS,
entityTypes: [entityType],
},
},
{
@@ -27,11 +27,11 @@ const entityActions: Array<ManifestTypes> = [
name: 'Move Document-Type Entity Action',
weight: 700,
api: UmbMoveEntityAction,
forEntityTypes: [entityType],
meta: {
icon: 'icon-enter',
label: 'Move',
repositoryAlias: DOCUMENT_TYPE_DETAIL_REPOSITORY_ALIAS,
entityTypes: [entityType],
},
},
{
@@ -40,11 +40,11 @@ const entityActions: Array<ManifestTypes> = [
name: 'Copy Document-Type Entity Action',
weight: 600,
api: UmbDuplicateEntityAction,
forEntityTypes: [entityType],
meta: {
icon: 'icon-documents',
label: 'Copy',
repositoryAlias: DOCUMENT_TYPE_DETAIL_REPOSITORY_ALIAS,
entityTypes: [entityType],
},
},
{
@@ -53,11 +53,11 @@ const entityActions: Array<ManifestTypes> = [
name: 'Sort Document-Type Entity Action',
weight: 500,
api: UmbSortChildrenOfEntityAction,
forEntityTypes: [entityType],
meta: {
icon: 'icon-navigation-vertical',
label: 'Sort',
repositoryAlias: DOCUMENT_TYPE_DETAIL_REPOSITORY_ALIAS,
entityTypes: [entityType],
},
},
];

View File

@@ -19,11 +19,11 @@ const entityActions: Array<ManifestEntityAction> = [
name: 'Rename Document Type Folder Entity Action',
weight: 800,
api: UmbFolderUpdateEntityAction,
forEntityTypes: [UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE],
meta: {
icon: 'icon-edit',
label: 'Rename Folder...',
repositoryAlias: UMB_DOCUMENT_TYPE_FOLDER_REPOSITORY_ALIAS,
entityTypes: [UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE],
},
},
{
@@ -32,11 +32,11 @@ const entityActions: Array<ManifestEntityAction> = [
name: 'Delete Document Type Folder Entity Action',
weight: 700,
api: UmbDeleteFolderEntityAction,
forEntityTypes: [UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE],
meta: {
icon: 'icon-trash',
label: 'Delete Folder...',
repositoryAlias: UMB_DOCUMENT_TYPE_FOLDER_REPOSITORY_ALIAS,
entityTypes: [UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE],
},
},
];

View File

@@ -47,13 +47,11 @@ const treeItem: ManifestTreeItem = {
kind: 'default',
alias: 'Umb.TreeItem.DocumentType',
name: 'Document Type Tree Item',
meta: {
entityTypes: [
UMB_DOCUMENT_TYPE_ROOT_ENTITY_TYPE,
UMB_DOCUMENT_TYPE_ENTITY_TYPE,
UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE,
],
},
forEntityTypes: [
UMB_DOCUMENT_TYPE_ROOT_ENTITY_TYPE,
UMB_DOCUMENT_TYPE_ENTITY_TYPE,
UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE,
],
};
export const manifests = [treeRepository, treeStore, tree, treeItem, ...folderManifests, ...reloadManifests];

View File

@@ -11,12 +11,10 @@ export const manifests: Array<ManifestTypes> = [
alias: 'Umb.EntityAction.DocumentType.Tree.ReloadChildrenOf',
name: 'Reload Document Type Tree Item Children Entity Action',
kind: 'reloadTreeItemChildren',
meta: {
entityTypes: [
UMB_DOCUMENT_TYPE_ROOT_ENTITY_TYPE,
UMB_DOCUMENT_TYPE_ENTITY_TYPE,
UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE,
],
},
forEntityTypes: [
UMB_DOCUMENT_TYPE_ROOT_ENTITY_TYPE,
UMB_DOCUMENT_TYPE_ENTITY_TYPE,
UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE,
],
},
];

View File

@@ -9,10 +9,10 @@ const entityActions: Array<ManifestTypes> = [
name: 'Create Document Entity Action',
weight: 1000,
api: UmbCreateDocumentEntityAction,
forEntityTypes: [UMB_DOCUMENT_ROOT_ENTITY_TYPE, UMB_DOCUMENT_ENTITY_TYPE],
meta: {
icon: 'icon-add',
label: 'Create',
entityTypes: [UMB_DOCUMENT_ROOT_ENTITY_TYPE, UMB_DOCUMENT_ENTITY_TYPE],
},
/* removed until we have permissions in place
conditions: [

View File

@@ -9,10 +9,10 @@ const entityActions: Array<ManifestTypes> = [
name: 'Culture And Hostnames Document Entity Action',
weight: 400,
api: UmbDocumentCultureAndHostnamesEntityAction,
forEntityTypes: [UMB_DOCUMENT_ENTITY_TYPE],
meta: {
icon: 'icon-home',
label: 'Culture and Hostnames',
entityTypes: [UMB_DOCUMENT_ENTITY_TYPE],
},
},
];

View File

@@ -20,8 +20,8 @@ const entityActions: Array<ManifestTypes> = [
weight: 800,
api: UmbCreateDocumentBlueprintEntityAction,
kind: 'default',
forEntityTypes: [UMB_DOCUMENT_ENTITY_TYPE],
meta: {
entityTypes: [UMB_DOCUMENT_ENTITY_TYPE],
icon: 'icon-blueprint',
label: 'Create Document Blueprint (TBD)',
},
@@ -31,8 +31,8 @@ const entityActions: Array<ManifestTypes> = [
alias: 'Umb.EntityAction.Document.Move',
name: 'Move Document Entity Action ',
kind: 'move',
forEntityTypes: [UMB_DOCUMENT_ENTITY_TYPE],
meta: {
entityTypes: [UMB_DOCUMENT_ENTITY_TYPE],
moveRepositoryAlias: UMB_DOCUMENT_DETAIL_REPOSITORY_ALIAS,
itemRepositoryAlias: UMB_DOCUMENT_DETAIL_REPOSITORY_ALIAS,
pickerModelAlias: UMB_DOCUMENT_PICKER_MODAL.toString(),
@@ -43,8 +43,8 @@ const entityActions: Array<ManifestTypes> = [
alias: 'Umb.EntityAction.Document.Copy',
name: 'Duplicate Document Entity Action',
kind: 'duplicate',
forEntityTypes: [UMB_DOCUMENT_ENTITY_TYPE],
meta: {
entityTypes: [UMB_DOCUMENT_ENTITY_TYPE],
duplicateRepositoryAlias: UMB_DOCUMENT_DETAIL_REPOSITORY_ALIAS,
itemRepositoryAlias: UMB_DOCUMENT_DETAIL_REPOSITORY_ALIAS,
pickerModalAlias: UMB_DOCUMENT_PICKER_MODAL.toString(),
@@ -56,8 +56,8 @@ const entityActions: Array<ManifestTypes> = [
name: 'Publish Document Entity Action',
api: UmbPublishDocumentEntityAction,
kind: 'default',
forEntityTypes: [UMB_DOCUMENT_ENTITY_TYPE],
meta: {
entityTypes: [UMB_DOCUMENT_ENTITY_TYPE],
icon: 'icon-globe',
label: 'Publish',
},
@@ -68,8 +68,8 @@ const entityActions: Array<ManifestTypes> = [
name: 'Unpublish Document Entity Action',
api: UmbUnpublishDocumentEntityAction,
kind: 'default',
forEntityTypes: [UMB_DOCUMENT_ENTITY_TYPE],
meta: {
entityTypes: [UMB_DOCUMENT_ENTITY_TYPE],
icon: 'icon-globe',
label: 'Unpublish',
},

View File

@@ -9,11 +9,11 @@ const entityActions: Array<ManifestTypes> = [
alias: 'Umb.EntityAction.Document.PublicAccess',
name: 'Document Permissions Entity Action',
api: UmbDocumentPublicAccessEntityAction,
forEntityTypes: [UMB_DOCUMENT_ENTITY_TYPE],
meta: {
icon: 'icon-lock',
label: 'Restrict Public Access',
repositoryAlias: UMB_DOCUMENT_PUBLIC_ACCESS_REPOSITORY_ALIAS,
entityTypes: [UMB_DOCUMENT_ENTITY_TYPE],
},
},
];

View File

@@ -9,11 +9,11 @@ export const manifests = [
name: 'Trash Document Entity Action',
weight: 900,
api: UmbTrashEntityAction,
forEntityTypes: [UMB_DOCUMENT_ENTITY_TYPE],
meta: {
icon: 'icon-trash',
label: 'Trash',
repositoryAlias: UMB_DOCUMENT_DETAIL_REPOSITORY_ALIAS,
entityTypes: [UMB_DOCUMENT_ENTITY_TYPE],
},
conditions: [
{

View File

@@ -42,9 +42,7 @@ const treeItem: ManifestTreeItem = {
kind: 'default',
alias: 'Umb.TreeItem.DocumentRecycleBin',
name: 'DocumentRecycleBin Tree Item',
meta: {
entityTypes: [UMB_DOCUMENT_RECYCLE_BIN_ROOT_ENTITY_TYPE, UMB_DOCUMENT_RECYCLE_BIN_ENTITY_TYPE],
},
forEntityTypes: [UMB_DOCUMENT_RECYCLE_BIN_ROOT_ENTITY_TYPE, UMB_DOCUMENT_RECYCLE_BIN_ENTITY_TYPE],
};
export const manifests = [treeRepository, treeStore, tree, treeItem, ...reloadTreeItemChildrenManifests];

View File

@@ -7,8 +7,6 @@ export const manifests: Array<ManifestTypes> = [
alias: 'Umb.EntityAction.DocumentRecycleBin.Tree.ReloadChildrenOf',
name: 'Reload Document Recycle Bin Tree Item Children Entity Action',
kind: 'reloadTreeItemChildren',
meta: {
entityTypes: [UMB_DOCUMENT_RECYCLE_BIN_ENTITY_TYPE, UMB_DOCUMENT_RECYCLE_BIN_ROOT_ENTITY_TYPE],
},
forEntityTypes: [UMB_DOCUMENT_RECYCLE_BIN_ENTITY_TYPE, UMB_DOCUMENT_RECYCLE_BIN_ROOT_ENTITY_TYPE],
},
];

View File

@@ -42,9 +42,7 @@ const treeItem: ManifestTreeItem = {
name: 'Document Tree Item',
element: () => import('./tree-item/document-tree-item.element.js'),
api: UmbDocumentTreeItemContext,
meta: {
entityTypes: [UMB_DOCUMENT_ROOT_ENTITY_TYPE, UMB_DOCUMENT_ENTITY_TYPE],
},
forEntityTypes: [UMB_DOCUMENT_ROOT_ENTITY_TYPE, UMB_DOCUMENT_ENTITY_TYPE],
};
export const manifests = [treeRepository, treeStore, tree, treeItem, ...reloadTreeItemChildrenManifests];

View File

@@ -7,8 +7,6 @@ export const manifests: Array<ManifestTypes> = [
alias: 'Umb.EntityAction.Document.Tree.ReloadChildrenOf',
name: 'Reload Document Tree Item Children Entity Action',
kind: 'reloadTreeItemChildren',
meta: {
entityTypes: [UMB_DOCUMENT_ENTITY_TYPE, UMB_DOCUMENT_ROOT_ENTITY_TYPE],
},
forEntityTypes: [UMB_DOCUMENT_ENTITY_TYPE, UMB_DOCUMENT_ROOT_ENTITY_TYPE],
},
];

View File

@@ -162,12 +162,12 @@ const workspaceActionMenuItems: Array<ManifestWorkspaceActionMenuItem> = [
name: 'Unpublish',
weight: 10,
api: UmbUnpublishDocumentEntityAction,
forEntityTypes: [UMB_DOCUMENT_ENTITY_TYPE],
meta: {
workspaceActions: 'Umb.WorkspaceAction.Document.SaveAndPublish',
label: 'Unpublish',
icon: 'icon-globe',
repositoryAlias: 'Umb.Repository.Document.Detail',
entityTypes: [UMB_DOCUMENT_ENTITY_TYPE],
},
},
{
@@ -176,12 +176,12 @@ const workspaceActionMenuItems: Array<ManifestWorkspaceActionMenuItem> = [
name: 'Publish with descendants',
weight: 20,
api: UmbPublishDocumentEntityAction,
forEntityTypes: [UMB_DOCUMENT_ENTITY_TYPE],
meta: {
workspaceActions: 'Umb.WorkspaceAction.Document.SaveAndPublish',
label: 'Publish with descendants (TBD)',
icon: 'icon-globe',
repositoryAlias: 'Umb.Repository.Document.Detail',
entityTypes: [UMB_DOCUMENT_ENTITY_TYPE],
},
},
{
@@ -190,12 +190,12 @@ const workspaceActionMenuItems: Array<ManifestWorkspaceActionMenuItem> = [
name: 'Schedule publishing',
weight: 20,
api: UmbPublishDocumentEntityAction,
forEntityTypes: [UMB_DOCUMENT_ENTITY_TYPE],
meta: {
workspaceActions: 'Umb.WorkspaceAction.Document.SaveAndPublish',
label: 'Schedule publishing (TBD)',
icon: 'icon-globe',
repositoryAlias: 'Umb.Repository.Document.Detail',
entityTypes: [UMB_DOCUMENT_ENTITY_TYPE],
},
},
];

View File

@@ -9,10 +9,10 @@ const entityActions: Array<ManifestTypes> = [
alias: 'Umb.EntityAction.Language.Delete',
name: 'Delete Language Entity Action',
kind: 'delete',
forEntityTypes: [UMB_LANGUAGE_ENTITY_TYPE],
meta: {
itemRepositoryAlias: UMB_LANGUAGE_ITEM_REPOSITORY_ALIAS,
detailRepositoryAlias: UMB_LANGUAGE_DETAIL_REPOSITORY_ALIAS,
entityTypes: [UMB_LANGUAGE_ENTITY_TYPE],
},
},
{
@@ -21,11 +21,11 @@ const entityActions: Array<ManifestTypes> = [
name: 'Create Language Entity Action',
weight: 900,
api: UmbLanguageCreateEntityAction,
forEntityTypes: [UMB_LANGUAGE_ROOT_ENTITY_TYPE],
meta: {
icon: 'icon-add',
label: 'Create',
repositoryAlias: UMB_LANGUAGE_DETAIL_REPOSITORY_ALIAS,
entityTypes: [UMB_LANGUAGE_ROOT_ENTITY_TYPE],
},
},
];

View File

@@ -9,10 +9,10 @@ const entityActions: Array<ManifestTypes> = [
alias: 'Umb.EntityAction.Media.Delete',
name: 'Delete Media Entity Action ',
kind: 'delete',
forEntityTypes: ['media'],
meta: {
itemRepositoryAlias: UMB_MEDIA_ITEM_REPOSITORY_ALIAS,
detailRepositoryAlias: UMB_MEDIA_DETAIL_REPOSITORY_ALIAS,
entityTypes: ['media'],
},
},
];