rename workspaceView to workspaceEditorView
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import type { ManifestWorkspaceView } from '../models';
|
||||
import type { ManifestWorkspaceEditorView } from '../models';
|
||||
|
||||
export interface UmbWorkspaceEditorViewExtensionElement extends HTMLElement {
|
||||
manifest?: ManifestWorkspaceView;
|
||||
manifest?: ManifestWorkspaceEditorView;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ import type { ManifestTreeItem } from './tree-item.model';
|
||||
import type { ManifestUserProfileApp } from './user-profile-app.model';
|
||||
import type { ManifestWorkspace } from './workspace.model';
|
||||
import type { ManifestWorkspaceAction } from './workspace-action.model';
|
||||
import type { ManifestWorkspaceView } from './workspace-view.model';
|
||||
import type { ManifestWorkspaceEditorView } from './workspace-editor-view.model';
|
||||
import type { ManifestWorkspaceViewCollection } from './workspace-view-collection.model';
|
||||
|
||||
import type { ClassConstructor } from '@umbraco-cms/backoffice/models';
|
||||
@@ -53,7 +53,7 @@ export * from './tree.model';
|
||||
export * from './user-profile-app.model';
|
||||
export * from './workspace-action.model';
|
||||
export * from './workspace-view-collection.model';
|
||||
export * from './workspace-view.model';
|
||||
export * from './workspace-editor-view.model';
|
||||
export * from './workspace.model';
|
||||
|
||||
export type ManifestTypes =
|
||||
@@ -89,7 +89,7 @@ export type ManifestTypes =
|
||||
| ManifestUserProfileApp
|
||||
| ManifestWorkspace
|
||||
| ManifestWorkspaceAction
|
||||
| ManifestWorkspaceView
|
||||
| ManifestWorkspaceEditorView
|
||||
| ManifestWorkspaceViewCollection
|
||||
| ManifestBase;
|
||||
|
||||
@@ -156,7 +156,8 @@ export interface ManifestWithLoader<LoaderReturnType> extends ManifestBase {
|
||||
/**
|
||||
* The type of extension such as dashboard etc...
|
||||
*/
|
||||
export interface ManifestClass<ClassType = unknown> extends ManifestWithLoader<{ default: ClassConstructor<ClassType> }> {
|
||||
export interface ManifestClass<ClassType = unknown>
|
||||
extends ManifestWithLoader<{ default: ClassConstructor<ClassType> }> {
|
||||
//type: ManifestStandardTypes;
|
||||
readonly CLASS_TYPE?: ClassType;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { UmbWorkspaceEditorViewExtensionElement } from '../interfaces/workspace-editor-view-extension-element.interface';
|
||||
import type { ManifestWithView } from '.';
|
||||
|
||||
export interface ManifestWorkspaceView extends ManifestWithView<UmbWorkspaceEditorViewExtensionElement> {
|
||||
export interface ManifestWorkspaceEditorView extends ManifestWithView<UmbWorkspaceEditorViewExtensionElement> {
|
||||
type: 'workspaceView';
|
||||
conditions: ConditionsWorkspaceView;
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
import type {
|
||||
ManifestWorkspace,
|
||||
ManifestWorkspaceAction,
|
||||
ManifestWorkspaceView,
|
||||
ManifestWorkspaceEditorView,
|
||||
} from '@umbraco-cms/backoffice/extensions-registry';
|
||||
|
||||
const workspace: ManifestWorkspace = {
|
||||
@@ -14,7 +14,7 @@ const workspace: ManifestWorkspace = {
|
||||
},
|
||||
};
|
||||
|
||||
const workspaceViews: Array<ManifestWorkspaceView> = [];
|
||||
const workspaceViews: Array<ManifestWorkspaceEditorView> = [];
|
||||
const workspaceActions: Array<ManifestWorkspaceAction> = [];
|
||||
|
||||
export const manifests = [workspace, ...workspaceViews, ...workspaceActions];
|
||||
|
||||
@@ -2,7 +2,7 @@ import { UmbSaveWorkspaceAction } from '@umbraco-cms/backoffice/workspace';
|
||||
import type {
|
||||
ManifestWorkspace,
|
||||
ManifestWorkspaceAction,
|
||||
ManifestWorkspaceView,
|
||||
ManifestWorkspaceEditorView,
|
||||
} from '@umbraco-cms/backoffice/extensions-registry';
|
||||
|
||||
const workspace: ManifestWorkspace = {
|
||||
@@ -15,9 +15,9 @@ const workspace: ManifestWorkspace = {
|
||||
},
|
||||
};
|
||||
|
||||
const workspaceViews: Array<ManifestWorkspaceView> = [
|
||||
const workspaceViews: Array<ManifestWorkspaceEditorView> = [
|
||||
{
|
||||
type: 'workspaceView',
|
||||
type: 'workspaceEditorView',
|
||||
alias: 'Umb.WorkspaceView.DocumentType.Design',
|
||||
name: 'Document Type Workspace Design View',
|
||||
loader: () => import('./views/design/document-type-workspace-view-edit.element'),
|
||||
@@ -32,7 +32,7 @@ const workspaceViews: Array<ManifestWorkspaceView> = [
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'workspaceView',
|
||||
type: 'workspaceEditorView',
|
||||
alias: 'Umb.WorkspaceView.DocumentType.Structure',
|
||||
name: 'Document Type Workspace Structure View',
|
||||
loader: () => import('./views/structure/document-type-workspace-view-structure.element'),
|
||||
@@ -47,7 +47,7 @@ const workspaceViews: Array<ManifestWorkspaceView> = [
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'workspaceView',
|
||||
type: 'workspaceEditorView',
|
||||
alias: 'Umb.WorkspaceView.DocumentType.Permissions',
|
||||
name: 'Document Type Workspace Permissions View',
|
||||
loader: () => import('./views/details/document-type-workspace-view-details.element'),
|
||||
@@ -62,7 +62,7 @@ const workspaceViews: Array<ManifestWorkspaceView> = [
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'workspaceView',
|
||||
type: 'workspaceEditorView',
|
||||
alias: 'Umb.WorkspaceView.DocumentType.Templates',
|
||||
name: 'Document Type Workspace Templates View',
|
||||
loader: () => import('./views/templates/document-type-workspace-view-templates.element'),
|
||||
|
||||
@@ -5,7 +5,7 @@ import { UmbSaveWorkspaceAction } from '@umbraco-cms/backoffice/workspace';
|
||||
import type {
|
||||
ManifestWorkspace,
|
||||
ManifestWorkspaceAction,
|
||||
ManifestWorkspaceView,
|
||||
ManifestWorkspaceEditorView,
|
||||
ManifestWorkspaceViewCollection,
|
||||
} from '@umbraco-cms/backoffice/extensions-registry';
|
||||
|
||||
@@ -19,9 +19,9 @@ const workspace: ManifestWorkspace = {
|
||||
},
|
||||
};
|
||||
|
||||
const workspaceViews: Array<ManifestWorkspaceView> = [
|
||||
const workspaceViews: Array<ManifestWorkspaceEditorView> = [
|
||||
{
|
||||
type: 'workspaceView',
|
||||
type: 'workspaceEditorView',
|
||||
alias: 'Umb.WorkspaceView.Document.Edit',
|
||||
name: 'Document Workspace Edit View',
|
||||
loader: () => import('./views/edit/document-workspace-view-edit.element'),
|
||||
@@ -36,7 +36,7 @@ const workspaceViews: Array<ManifestWorkspaceView> = [
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'workspaceView',
|
||||
type: 'workspaceEditorView',
|
||||
alias: 'Umb.WorkspaceView.Document.Info',
|
||||
name: 'Document Workspace Info View',
|
||||
loader: () => import('./views/info/document-info-workspace-view.element'),
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type {
|
||||
ManifestWorkspace,
|
||||
ManifestWorkspaceAction,
|
||||
ManifestWorkspaceView,
|
||||
ManifestWorkspaceEditorView,
|
||||
ManifestWorkspaceViewCollection,
|
||||
} from '@umbraco-cms/backoffice/extensions-registry';
|
||||
|
||||
@@ -15,7 +15,7 @@ const workspace: ManifestWorkspace = {
|
||||
},
|
||||
};
|
||||
|
||||
const workspaceViews: Array<ManifestWorkspaceView> = [];
|
||||
const workspaceViews: Array<ManifestWorkspaceEditorView> = [];
|
||||
const workspaceViewCollections: Array<ManifestWorkspaceViewCollection> = [];
|
||||
const workspaceActions: Array<ManifestWorkspaceAction> = [];
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import { UmbSaveWorkspaceAction } from '@umbraco-cms/backoffice/workspace';
|
||||
import type {
|
||||
ManifestWorkspace,
|
||||
ManifestWorkspaceAction,
|
||||
ManifestWorkspaceView,
|
||||
ManifestWorkspaceEditorView,
|
||||
ManifestWorkspaceViewCollection,
|
||||
} from '@umbraco-cms/backoffice/extensions-registry';
|
||||
|
||||
@@ -17,9 +17,9 @@ const workspace: ManifestWorkspace = {
|
||||
},
|
||||
};
|
||||
|
||||
const workspaceViews: Array<ManifestWorkspaceView> = [
|
||||
const workspaceViews: Array<ManifestWorkspaceEditorView> = [
|
||||
{
|
||||
type: 'workspaceView',
|
||||
type: 'workspaceEditorView',
|
||||
alias: 'Umb.WorkspaceView.Media.Edit',
|
||||
name: 'Media Workspace Edit View',
|
||||
loader: () => import('./views/edit/media-edit-workspace-view.element'),
|
||||
@@ -34,7 +34,7 @@ const workspaceViews: Array<ManifestWorkspaceView> = [
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'workspaceView',
|
||||
type: 'workspaceEditorView',
|
||||
alias: 'Umb.WorkspaceView.Media.Info',
|
||||
name: 'Media Workspace Info View',
|
||||
loader: () => import('./views/info/media-info-workspace-view.element'),
|
||||
|
||||
@@ -2,7 +2,7 @@ import { UmbSaveWorkspaceAction } from '@umbraco-cms/backoffice/workspace';
|
||||
import type {
|
||||
ManifestWorkspace,
|
||||
ManifestWorkspaceAction,
|
||||
ManifestWorkspaceView,
|
||||
ManifestWorkspaceEditorView,
|
||||
} from '@umbraco-cms/backoffice/extensions-registry';
|
||||
|
||||
const workspace: ManifestWorkspace = {
|
||||
@@ -15,9 +15,9 @@ const workspace: ManifestWorkspace = {
|
||||
},
|
||||
};
|
||||
|
||||
const workspaceViews: Array<ManifestWorkspaceView> = [
|
||||
const workspaceViews: Array<ManifestWorkspaceEditorView> = [
|
||||
{
|
||||
type: 'workspaceView',
|
||||
type: 'workspaceEditorView',
|
||||
alias: 'Umb.WorkspaceView.MemberGroup.Info',
|
||||
name: 'Member Group Workspace Info View',
|
||||
loader: () => import('./views/info/workspace-view-member-group-info.element'),
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type {
|
||||
ManifestWorkspace,
|
||||
ManifestWorkspaceAction,
|
||||
ManifestWorkspaceView,
|
||||
ManifestWorkspaceEditorView,
|
||||
} from '@umbraco-cms/backoffice/extensions-registry';
|
||||
|
||||
const workspace: ManifestWorkspace = {
|
||||
@@ -14,7 +14,7 @@ const workspace: ManifestWorkspace = {
|
||||
},
|
||||
};
|
||||
|
||||
const workspaceViews: Array<ManifestWorkspaceView> = [];
|
||||
const workspaceViews: Array<ManifestWorkspaceEditorView> = [];
|
||||
|
||||
const workspaceActions: Array<ManifestWorkspaceAction> = [];
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type {
|
||||
ManifestWorkspace,
|
||||
ManifestWorkspaceAction,
|
||||
ManifestWorkspaceView,
|
||||
ManifestWorkspaceEditorView,
|
||||
} from '@umbraco-cms/backoffice/extensions-registry';
|
||||
|
||||
const workspace: ManifestWorkspace = {
|
||||
@@ -14,7 +14,7 @@ const workspace: ManifestWorkspace = {
|
||||
},
|
||||
};
|
||||
|
||||
const workspaceViews: Array<ManifestWorkspaceView> = [];
|
||||
const workspaceViews: Array<ManifestWorkspaceEditorView> = [];
|
||||
const workspaceActions: Array<ManifestWorkspaceAction> = [];
|
||||
|
||||
export const manifests = [workspace, ...workspaceViews, ...workspaceActions];
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type {
|
||||
ManifestWorkspace,
|
||||
ManifestWorkspaceAction,
|
||||
ManifestWorkspaceView,
|
||||
ManifestWorkspaceEditorView,
|
||||
ManifestWorkspaceViewCollection,
|
||||
} from '@umbraco-cms/backoffice/extensions-registry';
|
||||
|
||||
@@ -15,7 +15,7 @@ const workspace: ManifestWorkspace = {
|
||||
},
|
||||
};
|
||||
|
||||
const workspaceViews: Array<ManifestWorkspaceView> = [];
|
||||
const workspaceViews: Array<ManifestWorkspaceEditorView> = [];
|
||||
const workspaceViewCollections: Array<ManifestWorkspaceViewCollection> = [];
|
||||
const workspaceActions: Array<ManifestWorkspaceAction> = [];
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type {
|
||||
ManifestWorkspace,
|
||||
ManifestWorkspaceAction,
|
||||
ManifestWorkspaceView,
|
||||
ManifestWorkspaceEditorView,
|
||||
ManifestWorkspaceViewCollection,
|
||||
} from '@umbraco-cms/backoffice/extensions-registry';
|
||||
|
||||
@@ -15,7 +15,7 @@ const workspace: ManifestWorkspace = {
|
||||
},
|
||||
};
|
||||
|
||||
const workspaceViews: Array<ManifestWorkspaceView> = [];
|
||||
const workspaceViews: Array<ManifestWorkspaceEditorView> = [];
|
||||
const workspaceViewCollections: Array<ManifestWorkspaceViewCollection> = [];
|
||||
const workspaceActions: Array<ManifestWorkspaceAction> = [];
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import { UmbSaveWorkspaceAction } from '@umbraco-cms/backoffice/workspace';
|
||||
import type {
|
||||
ManifestWorkspace,
|
||||
ManifestWorkspaceAction,
|
||||
ManifestWorkspaceView,
|
||||
ManifestWorkspaceEditorView,
|
||||
} from '@umbraco-cms/backoffice/extensions-registry';
|
||||
|
||||
const DATA_TYPE_WORKSPACE_ALIAS = 'Umb.Workspace.DataType';
|
||||
@@ -17,9 +17,9 @@ const workspace: ManifestWorkspace = {
|
||||
},
|
||||
};
|
||||
|
||||
const workspaceViews: Array<ManifestWorkspaceView> = [
|
||||
const workspaceViews: Array<ManifestWorkspaceEditorView> = [
|
||||
{
|
||||
type: 'workspaceView',
|
||||
type: 'workspaceEditorView',
|
||||
alias: 'Umb.WorkspaceView.DataType.Edit',
|
||||
name: 'Data Type Workspace Edit View',
|
||||
loader: () => import('./views/details/data-type-details-workspace-view.element'),
|
||||
@@ -34,7 +34,7 @@ const workspaceViews: Array<ManifestWorkspaceView> = [
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'workspaceView',
|
||||
type: 'workspaceEditorView',
|
||||
alias: 'Umb.WorkspaceView.DataType.Info',
|
||||
name: 'Data Type Workspace Info View',
|
||||
loader: () => import('./views/info/workspace-view-data-type-info.element'),
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type {
|
||||
ManifestWorkspace,
|
||||
ManifestWorkspaceAction,
|
||||
ManifestWorkspaceView,
|
||||
ManifestWorkspaceEditorView,
|
||||
} from '@umbraco-cms/backoffice/extensions-registry';
|
||||
|
||||
const workspace: ManifestWorkspace = {
|
||||
@@ -14,7 +14,7 @@ const workspace: ManifestWorkspace = {
|
||||
},
|
||||
};
|
||||
|
||||
const workspaceViews: Array<ManifestWorkspaceView> = [];
|
||||
const workspaceViews: Array<ManifestWorkspaceEditorView> = [];
|
||||
|
||||
const workspaceActions: Array<ManifestWorkspaceAction> = [];
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type {
|
||||
ManifestWorkspace,
|
||||
ManifestWorkspaceAction,
|
||||
ManifestWorkspaceView,
|
||||
ManifestWorkspaceEditorView,
|
||||
} from '@umbraco-cms/backoffice/extensions-registry';
|
||||
|
||||
const workspace: ManifestWorkspace = {
|
||||
@@ -14,7 +14,7 @@ const workspace: ManifestWorkspace = {
|
||||
},
|
||||
};
|
||||
|
||||
const workspaceViews: Array<ManifestWorkspaceView> = [];
|
||||
const workspaceViews: Array<ManifestWorkspaceEditorView> = [];
|
||||
|
||||
const workspaceActions: Array<ManifestWorkspaceAction> = [];
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import { UmbSaveWorkspaceAction } from '@umbraco-cms/backoffice/workspace';
|
||||
import type {
|
||||
ManifestWorkspace,
|
||||
ManifestWorkspaceAction,
|
||||
ManifestWorkspaceView,
|
||||
ManifestWorkspaceEditorView,
|
||||
} from '@umbraco-cms/backoffice/extensions-registry';
|
||||
|
||||
const workspace: ManifestWorkspace = {
|
||||
@@ -15,9 +15,9 @@ const workspace: ManifestWorkspace = {
|
||||
},
|
||||
};
|
||||
|
||||
const workspaceViews: Array<ManifestWorkspaceView> = [
|
||||
const workspaceViews: Array<ManifestWorkspaceEditorView> = [
|
||||
{
|
||||
type: 'workspaceView',
|
||||
type: 'workspaceEditorView',
|
||||
alias: 'Umb.WorkspaceView.Language.Details',
|
||||
name: 'Language Workspace Details View',
|
||||
loader: () => import('./views/details/language-details-workspace-view.element'),
|
||||
|
||||
@@ -7,7 +7,10 @@ import { repeat } from 'lit/directives/repeat.js';
|
||||
import { UmbLogViewerWorkspaceContext, UMB_APP_LOG_VIEWER_CONTEXT_TOKEN } from '../logviewer.context';
|
||||
import { UmbLitElement } from '@umbraco-cms/internal/lit-element';
|
||||
import { umbExtensionsRegistry, createExtensionElement } from '@umbraco-cms/backoffice/extensions-api';
|
||||
import { ManifestWorkspaceView, ManifestWorkspaceViewCollection } from '@umbraco-cms/backoffice/extensions-registry';
|
||||
import {
|
||||
ManifestWorkspaceEditorView,
|
||||
ManifestWorkspaceViewCollection,
|
||||
} from '@umbraco-cms/backoffice/extensions-registry';
|
||||
import type { UmbRouterSlotInitEvent, UmbRouterSlotChangeEvent } from '@umbraco-cms/internal/router';
|
||||
import type { UmbRoute } from '@umbraco-cms/backoffice/router';
|
||||
|
||||
@@ -17,7 +20,7 @@ export class UmbLogViewerWorkspaceElement extends UmbLitElement {
|
||||
private _alias = 'Umb.Workspace.LogviewerRoot';
|
||||
|
||||
@state()
|
||||
private _workspaceViews: Array<ManifestWorkspaceView | ManifestWorkspaceViewCollection> = [];
|
||||
private _workspaceViews: Array<ManifestWorkspaceEditorView | ManifestWorkspaceViewCollection> = [];
|
||||
|
||||
@state()
|
||||
private _routes: UmbRoute[] = [];
|
||||
@@ -60,7 +63,7 @@ export class UmbLogViewerWorkspaceElement extends UmbLitElement {
|
||||
private _observeWorkspaceViews() {
|
||||
this.observe(
|
||||
umbExtensionsRegistry
|
||||
.extensionsOfTypes<ManifestWorkspaceView>(['workspaceView'])
|
||||
.extensionsOfTypes<ManifestWorkspaceEditorView>(['workspaceEditorView'])
|
||||
.pipe(
|
||||
map((extensions) => extensions.filter((extension) => extension.conditions.workspaces.includes(this._alias)))
|
||||
),
|
||||
|
||||
@@ -2,7 +2,7 @@ import type {
|
||||
ManifestModal,
|
||||
ManifestWorkspace,
|
||||
ManifestWorkspaceAction,
|
||||
ManifestWorkspaceView,
|
||||
ManifestWorkspaceEditorView,
|
||||
} from '@umbraco-cms/backoffice/extensions-registry';
|
||||
|
||||
const workspaceAlias = 'Umb.Workspace.LogviewerRoot';
|
||||
@@ -17,9 +17,9 @@ const workspace: ManifestWorkspace = {
|
||||
},
|
||||
};
|
||||
|
||||
const workspaceViews: Array<ManifestWorkspaceView> = [
|
||||
const workspaceViews: Array<ManifestWorkspaceEditorView> = [
|
||||
{
|
||||
type: 'workspaceView',
|
||||
type: 'workspaceEditorView',
|
||||
alias: 'Umb.WorkspaceView.Logviewer.Overview',
|
||||
name: 'LogViewer Root Workspace Overview View',
|
||||
loader: () => import('../views/overview/index'),
|
||||
@@ -34,7 +34,7 @@ const workspaceViews: Array<ManifestWorkspaceView> = [
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'workspaceView',
|
||||
type: 'workspaceEditorView',
|
||||
alias: 'Umb.WorkspaceView.Logviewer.Search',
|
||||
name: 'LogViewer Root Workspace Search View',
|
||||
loader: () => import('../views/search/index'),
|
||||
|
||||
@@ -2,7 +2,7 @@ import { UmbSaveWorkspaceAction } from '@umbraco-cms/backoffice/workspace';
|
||||
import type {
|
||||
ManifestWorkspace,
|
||||
ManifestWorkspaceAction,
|
||||
ManifestWorkspaceView,
|
||||
ManifestWorkspaceEditorView,
|
||||
} from '@umbraco-cms/backoffice/extensions-registry';
|
||||
|
||||
const workspace: ManifestWorkspace = {
|
||||
@@ -15,9 +15,9 @@ const workspace: ManifestWorkspace = {
|
||||
},
|
||||
};
|
||||
|
||||
const workspaceViews: Array<ManifestWorkspaceView> = [
|
||||
const workspaceViews: Array<ManifestWorkspaceEditorView> = [
|
||||
{
|
||||
type: 'workspaceView',
|
||||
type: 'workspaceEditorView',
|
||||
alias: 'Umb.WorkspaceView.RelationType.RelationType',
|
||||
name: 'Relation Type Workspace RelationType View',
|
||||
loader: () => import('./views/relation-type/relation-type-workspace-view-relation-type.element'),
|
||||
@@ -32,7 +32,7 @@ const workspaceViews: Array<ManifestWorkspaceView> = [
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'workspaceView',
|
||||
type: 'workspaceEditorView',
|
||||
alias: 'Umb.WorkspaceView.RelationType.Relation',
|
||||
name: 'Relation Type Workspace Relation View',
|
||||
loader: () => import('./views/relation/workspace-view-relation-type-relation.element'),
|
||||
|
||||
@@ -8,7 +8,7 @@ import type { PageComponent, UmbRoute } from '@umbraco-cms/backoffice/router';
|
||||
import type { UmbRouterSlotInitEvent, UmbRouterSlotChangeEvent } from '@umbraco-cms/internal/router';
|
||||
import { createExtensionElement, umbExtensionsRegistry } from '@umbraco-cms/backoffice/extensions-api';
|
||||
import type {
|
||||
ManifestWorkspaceView,
|
||||
ManifestWorkspaceEditorView,
|
||||
ManifestWorkspaceViewCollection,
|
||||
} from '@umbraco-cms/backoffice/extensions-registry';
|
||||
|
||||
@@ -63,7 +63,7 @@ export class UmbWorkspaceLayoutElement extends UmbLitElement {
|
||||
}
|
||||
|
||||
@state()
|
||||
private _workspaceViews: Array<ManifestWorkspaceView | ManifestWorkspaceViewCollection> = [];
|
||||
private _workspaceViews: Array<ManifestWorkspaceEditorView | ManifestWorkspaceViewCollection> = [];
|
||||
|
||||
@state()
|
||||
private _routes?: UmbRoute[];
|
||||
@@ -77,7 +77,7 @@ export class UmbWorkspaceLayoutElement extends UmbLitElement {
|
||||
private _observeWorkspaceViews() {
|
||||
this.observe(
|
||||
umbExtensionsRegistry
|
||||
.extensionsOfTypes<ManifestWorkspaceView>(['workspaceView', 'workspaceViewCollection'])
|
||||
.extensionsOfTypes<ManifestWorkspaceEditorView>(['workspaceEditorView', 'workspaceViewCollection'])
|
||||
.pipe(
|
||||
map((extensions) => extensions.filter((extension) => extension.conditions.workspaces.includes(this.alias)))
|
||||
),
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type {
|
||||
ManifestWorkspace,
|
||||
ManifestWorkspaceAction,
|
||||
ManifestWorkspaceView,
|
||||
ManifestWorkspaceEditorView,
|
||||
} from '@umbraco-cms/backoffice/extensions-registry';
|
||||
|
||||
const workspace: ManifestWorkspace = {
|
||||
@@ -14,7 +14,7 @@ const workspace: ManifestWorkspace = {
|
||||
},
|
||||
};
|
||||
|
||||
const workspaceViews: Array<ManifestWorkspaceView> = [];
|
||||
const workspaceViews: Array<ManifestWorkspaceEditorView> = [];
|
||||
const workspaceActions: Array<ManifestWorkspaceAction> = [];
|
||||
|
||||
export const manifests = [workspace, ...workspaceViews, ...workspaceActions];
|
||||
|
||||
@@ -3,7 +3,7 @@ import { UmbSaveWorkspaceAction } from '@umbraco-cms/backoffice/workspace';
|
||||
import type {
|
||||
ManifestWorkspace,
|
||||
ManifestWorkspaceAction,
|
||||
ManifestWorkspaceView,
|
||||
ManifestWorkspaceEditorView,
|
||||
} from '@umbraco-cms/backoffice/extensions-registry';
|
||||
|
||||
const workspace: ManifestWorkspace = {
|
||||
@@ -16,7 +16,7 @@ const workspace: ManifestWorkspace = {
|
||||
},
|
||||
};
|
||||
|
||||
const workspaceViews: Array<ManifestWorkspaceView> = [];
|
||||
const workspaceViews: Array<ManifestWorkspaceEditorView> = [];
|
||||
|
||||
const workspaceActions: Array<ManifestWorkspaceAction> = [
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ import { UmbSaveWorkspaceAction } from '@umbraco-cms/backoffice/workspace';
|
||||
import type {
|
||||
ManifestWorkspace,
|
||||
ManifestWorkspaceAction,
|
||||
ManifestWorkspaceView,
|
||||
ManifestWorkspaceEditorView,
|
||||
} from '@umbraco-cms/backoffice/extensions-registry';
|
||||
|
||||
const workspaceAlias = 'Umb.Workspace.Dictionary';
|
||||
@@ -18,9 +18,9 @@ const workspace: ManifestWorkspace = {
|
||||
},
|
||||
};
|
||||
|
||||
const workspaceViews: Array<ManifestWorkspaceView> = [
|
||||
const workspaceViews: Array<ManifestWorkspaceEditorView> = [
|
||||
{
|
||||
type: 'workspaceView',
|
||||
type: 'workspaceEditorView',
|
||||
alias: 'Umb.WorkspaceView.Dictionary.Edit',
|
||||
name: 'Dictionary Workspace Edit View',
|
||||
loader: () => import('./views/edit/workspace-view-dictionary-edit.element'),
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type {
|
||||
ManifestWorkspace,
|
||||
ManifestWorkspaceAction,
|
||||
ManifestWorkspaceView,
|
||||
ManifestWorkspaceEditorView,
|
||||
} from '@umbraco-cms/backoffice/extensions-registry';
|
||||
|
||||
const workspace: ManifestWorkspace = {
|
||||
@@ -14,7 +14,7 @@ const workspace: ManifestWorkspace = {
|
||||
},
|
||||
};
|
||||
|
||||
const workspaceViews: Array<ManifestWorkspaceView> = [];
|
||||
const workspaceViews: Array<ManifestWorkspaceEditorView> = [];
|
||||
const workspaceActions: Array<ManifestWorkspaceAction> = [];
|
||||
|
||||
export const manifests = [workspace, ...workspaceViews, ...workspaceActions];
|
||||
|
||||
@@ -2,7 +2,7 @@ import { UmbSaveWorkspaceAction } from '@umbraco-cms/backoffice/workspace';
|
||||
import type {
|
||||
ManifestWorkspace,
|
||||
ManifestWorkspaceAction,
|
||||
ManifestWorkspaceView,
|
||||
ManifestWorkspaceEditorView,
|
||||
} from '@umbraco-cms/backoffice/extensions-registry';
|
||||
|
||||
const workspace: ManifestWorkspace = {
|
||||
@@ -15,7 +15,7 @@ const workspace: ManifestWorkspace = {
|
||||
},
|
||||
};
|
||||
|
||||
const workspaceViews: Array<ManifestWorkspaceView> = [];
|
||||
const workspaceViews: Array<ManifestWorkspaceEditorView> = [];
|
||||
const workspaceActions: Array<ManifestWorkspaceAction> = [
|
||||
{
|
||||
type: 'workspaceAction',
|
||||
|
||||
Reference in New Issue
Block a user