Footer slotActions slot
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/header-app/header-app-button.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/header-app/header-app-button.element.ts
index 36dc14343d..536bbb0424 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/header-app/header-app-button.element.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/header-app/header-app-button.element.ts
@@ -19,7 +19,7 @@ const manifest: ManifestKind = {
umbExtensionsRegistry.register(manifest);
@customElement('umb-header-app-button')
-export class UmbHeaderAppButton extends LitElement {
+export class UmbHeaderAppButtonElement extends LitElement {
static styles: CSSResultGroup = [
UUITextStyles,
css`
@@ -45,10 +45,10 @@ export class UmbHeaderAppButton extends LitElement {
}
}
-export default UmbHeaderAppButton;
+export default UmbHeaderAppButtonElement;
declare global {
interface HTMLElementTagNameMap {
- 'umb-header-app-button': UmbHeaderAppButton;
+ 'umb-header-app-button': UmbHeaderAppButtonElement;
}
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/header-app/header-app.stories.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/header-app/header-app.stories.ts
index 105cdddf02..d9a4cab61c 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/header-app/header-app.stories.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/header-app/header-app.stories.ts
@@ -1,14 +1,14 @@
import { Meta, StoryObj } from '@storybook/web-components';
import './header-app-button.element';
-import type { UmbHeaderAppButton } from './header-app-button.element';
+import type { UmbHeaderAppButtonElement } from './header-app-button.element';
-const meta: Meta
= {
+const meta: Meta = {
title: 'Components/Header App Button',
component: 'umb-header-app-button',
};
export default meta;
-type Story = StoryObj;
+type Story = StoryObj;
export const Overview: Story = {
args: {
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/input-list-base/input-list-base.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/input-list-base/input-list-base.ts
index f6a2e05cb1..37e134229b 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/input-list-base/input-list-base.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/input-list-base/input-list-base.ts
@@ -11,7 +11,7 @@ import {
import { UmbLitElement } from '@umbraco-cms/internal/lit-element';
/** TODO: Make use of UUI FORM Mixin, to make it easily take part of a form. */
-export class UmbInputListBase extends UmbLitElement {
+export class UmbInputListBaseElement extends UmbLitElement {
@property({ type: Array })
public value: Array = [];
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/input-section/input-section.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/input-section/input-section.element.ts
index 3f560bd6f7..0a81f98e77 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/input-section/input-section.element.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/input-section/input-section.element.ts
@@ -1,13 +1,13 @@
import { UUITextStyles } from '@umbraco-ui/uui-css';
import { css, html, nothing } from 'lit';
import { customElement, state } from 'lit/decorators.js';
-import { UmbInputListBase } from '../input-list-base/input-list-base';
+import { UmbInputListBaseElement } from '../input-list-base/input-list-base';
import { UMB_SECTION_PICKER_MODAL } from '@umbraco-cms/backoffice/modal';
import type { ManifestSection } from '@umbraco-cms/backoffice/extensions-registry';
import { umbExtensionsRegistry } from '@umbraco-cms/backoffice/extensions-api';
@customElement('umb-input-section')
-export class UmbInputPickerSectionElement extends UmbInputListBase {
+export class UmbInputPickerSectionElement extends UmbInputListBaseElement {
static styles = [
UUITextStyles,
css`
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/input-user-group/input-user-group.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/input-user-group/input-user-group.element.ts
index 7315cd5a81..ad3a644846 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/input-user-group/input-user-group.element.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/input-user-group/input-user-group.element.ts
@@ -1,7 +1,7 @@
import { UUITextStyles } from '@umbraco-ui/uui-css';
import { css, html, nothing } from 'lit';
import { customElement, state } from 'lit/decorators.js';
-import { UmbInputListBase } from '../input-list-base/input-list-base';
+import { UmbInputListBaseElement } from '../input-list-base/input-list-base';
import {
UmbUserGroupStore,
UMB_USER_GROUP_STORE_CONTEXT_TOKEN,
@@ -11,7 +11,7 @@ import { UMB_USER_GROUP_PICKER_MODAL } from '@umbraco-cms/backoffice/modal';
import type { UserGroupEntity } from '@umbraco-cms/backoffice/models';
@customElement('umb-input-user-group')
-export class UmbInputPickerUserGroupElement extends UmbInputListBase {
+export class UmbInputPickerUserGroupElement extends UmbInputListBaseElement {
static styles = [
UUITextStyles,
css`
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/input-user/input-user.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/input-user/input-user.element.ts
index bd72e5713b..636696bfed 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/input-user/input-user.element.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/input-user/input-user.element.ts
@@ -1,13 +1,13 @@
import { UUITextStyles } from '@umbraco-ui/uui-css';
import { css, html, nothing, PropertyValueMap } from 'lit';
import { customElement, state } from 'lit/decorators.js';
-import { UmbInputListBase } from '../input-list-base/input-list-base';
+import { UmbInputListBaseElement } from '../input-list-base/input-list-base';
import { UmbUserStore, UMB_USER_STORE_CONTEXT_TOKEN } from '../../../users/users/repository/user.store';
import { UMB_USER_PICKER_MODAL } from '@umbraco-cms/backoffice/modal';
import type { UserEntity } from '@umbraco-cms/backoffice/models';
@customElement('umb-input-user')
-export class UmbPickerUserElement extends UmbInputListBase {
+export class UmbPickerUserElement extends UmbInputListBaseElement {
static styles = [
UUITextStyles,
css`
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/menu-item/menu-item.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/menu-item/menu-item.element.ts
index 73203fe3f8..caf7c4d39b 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/menu-item/menu-item.element.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/menu-item/menu-item.element.ts
@@ -7,7 +7,7 @@ import { UmbLitElement } from '@umbraco-cms/internal/lit-element';
import type { ManifestMenuItem } from '@umbraco-cms/backoffice/extensions-registry';
@customElement('umb-menu-item')
-export class UmbMenuItem extends UmbLitElement {
+export class UmbMenuItemElement extends UmbLitElement {
static styles = [UUITextStyles, css``];
@property({ type: Object, attribute: false })
@@ -50,6 +50,6 @@ export class UmbMenuItem extends UmbLitElement {
declare global {
interface HTMLElementTagNameMap {
- 'umb-menu-item': UmbMenuItem;
+ 'umb-menu-item': UmbMenuItemElement;
}
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/section/section-sidebar-context-menu/section-sidebar-context-menu.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/section/section-sidebar-context-menu/section-sidebar-context-menu.element.ts
index bae231e7cc..0da6e7825a 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/section/section-sidebar-context-menu/section-sidebar-context-menu.element.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/section/section-sidebar-context-menu/section-sidebar-context-menu.element.ts
@@ -9,7 +9,7 @@ import {
import { UmbLitElement } from '@umbraco-cms/internal/lit-element';
@customElement('umb-section-sidebar-context-menu')
-export class UmbSectionSidebarContextMenu extends UmbLitElement {
+export class UmbSectionSidebarContextMenuElement extends UmbLitElement {
static styles = [
UUITextStyles,
css`
@@ -120,6 +120,6 @@ export class UmbSectionSidebarContextMenu extends UmbLitElement {
declare global {
interface HTMLElementTagNameMap {
- 'umb-section-sidebar-context-menu': UmbSectionSidebarContextMenu;
+ 'umb-section-sidebar-context-menu': UmbSectionSidebarContextMenuElement;
}
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/section/section-sidebar/section-sidebar.context.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/section/section-sidebar/section-sidebar.context.ts
index ef32bc34fb..ccede9a33e 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/section/section-sidebar/section-sidebar.context.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/section/section-sidebar/section-sidebar.context.ts
@@ -1,9 +1,9 @@
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
import { StringState, BooleanState } from '@umbraco-cms/backoffice/observable-api';
export class UmbSectionSidebarContext {
- #host: UmbControllerHostInterface;
+ #host: UmbControllerHostElement;
#contextMenuIsOpen = new BooleanState(false);
contextMenuIsOpen = this.#contextMenuIsOpen.asObservable();
@@ -16,7 +16,7 @@ export class UmbSectionSidebarContext {
#headline = new StringState(undefined);
headline = this.#headline.asObservable();
- constructor(host: UmbControllerHostInterface) {
+ constructor(host: UmbControllerHostElement) {
this.#host = host;
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/tree/context-menu/tree-context-menu-page.service.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/tree/context-menu/tree-context-menu-page.service.ts
index 2be951ebe5..d82eb782bf 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/tree/context-menu/tree-context-menu-page.service.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/tree/context-menu/tree-context-menu-page.service.ts
@@ -7,7 +7,7 @@ import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
// TODO: Refactor this, its not a service and the data should be handled by a context api.
@customElement('umb-tree-context-menu-page-service')
-export class UmbTreeContextMenuPageService extends UmbLitElement {
+export class UmbTreeContextMenuPageServiceElement extends UmbLitElement {
static styles = [UUITextStyles, css``];
@property({ type: Object })
@@ -64,12 +64,11 @@ export class UmbTreeContextMenuPageService extends UmbLitElement {
}
}
-export const UMB_TREE_CONTEXT_MENU_PAGE_SERVICE_CONTEXT_TOKEN = new UmbContextToken(
- 'UmbTreeContextMenuService'
-);
+export const UMB_TREE_CONTEXT_MENU_PAGE_SERVICE_CONTEXT_TOKEN =
+ new UmbContextToken('UmbTreeContextMenuService');
declare global {
interface HTMLElementTagNameMap {
- 'umb-tree-context-menu-page-service': UmbTreeContextMenuPageService;
+ 'umb-tree-context-menu-page-service': UmbTreeContextMenuPageServiceElement;
}
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/tree/context-menu/tree-context-menu.service.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/tree/context-menu/tree-context-menu.service.ts
index 2be00be4f1..557c848b9e 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/tree/context-menu/tree-context-menu.service.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/tree/context-menu/tree-context-menu.service.ts
@@ -5,7 +5,7 @@ import { UmbLitElement } from '@umbraco-cms/internal/lit-element';
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
@customElement('umb-tree-context-menu-service')
-export class UmbTreeContextMenuService extends UmbLitElement {
+export class UmbTreeContextMenuServiceElement extends UmbLitElement {
static styles = [
UUITextStyles,
css`
@@ -92,12 +92,12 @@ export class UmbTreeContextMenuService extends UmbLitElement {
}
}
-export const UMB_TREE_CONTEXT_MENU_SERVICE_CONTEXT_TOKEN = new UmbContextToken(
+export const UMB_TREE_CONTEXT_MENU_SERVICE_CONTEXT_TOKEN = new UmbContextToken(
'UmbTreeContextMenuService'
);
declare global {
interface HTMLElementTagNameMap {
- 'umb-tree-context-menu-service': UmbTreeContextMenuService;
+ 'umb-tree-context-menu-service': UmbTreeContextMenuServiceElement;
}
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/tree/entity-tree-item/entity-tree-item.context.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/tree/entity-tree-item/entity-tree-item.context.ts
index 2b014d81c1..6472a47207 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/tree/entity-tree-item/entity-tree-item.context.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/tree/entity-tree-item/entity-tree-item.context.ts
@@ -1,10 +1,10 @@
import { UmbTreeItemContextBase } from '../tree-item-base/tree-item-base.context';
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
import { EntityTreeItemResponseModel } from '@umbraco-cms/backoffice/backend-api';
// TODO get unique method from an entity repository static method
export class UmbEntityTreeItemContext extends UmbTreeItemContextBase {
- constructor(host: UmbControllerHostInterface) {
+ constructor(host: UmbControllerHostElement) {
super(host, (x: EntityTreeItemResponseModel) => x.key);
}
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/tree/tree-item-base/tree-item-base.context.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/tree/tree-item-base/tree-item-base.context.ts
index e5533a0c56..0465630182 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/tree/tree-item-base/tree-item-base.context.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/tree/tree-item-base/tree-item-base.context.ts
@@ -8,7 +8,7 @@ import { UmbTreeContextBase } from '../tree.context';
import { UmbTreeItemContext } from '../tree-item.context.interface';
import { ManifestEntityAction } from '@umbraco-cms/backoffice/extensions-registry';
import { BooleanState, DeepState, StringState, UmbObserverController } from '@umbraco-cms/backoffice/observable-api';
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
import {
UmbContextConsumerController,
UmbContextProviderController,
@@ -23,7 +23,7 @@ export type UmbTreeItemUniqueFunction = (x:
export class UmbTreeItemContextBase
implements UmbTreeItemContext
{
- public host: UmbControllerHostInterface;
+ public host: UmbControllerHostElement;
public unique?: string;
public type?: string;
@@ -57,7 +57,7 @@ export class UmbTreeItemContextBase;
#actionObserver?: UmbObserverController;
- constructor(host: UmbControllerHostInterface, getUniqueFunction: UmbTreeItemUniqueFunction) {
+ constructor(host: UmbControllerHostElement, getUniqueFunction: UmbTreeItemUniqueFunction) {
this.host = host;
this.#getUniqueFunction = getUniqueFunction;
this.#consumeContexts();
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/tree/tree-item.context.interface.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/tree/tree-item.context.interface.ts
index 926fd9feab..31d877f22e 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/tree/tree-item.context.interface.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/tree/tree-item.context.interface.ts
@@ -1,5 +1,5 @@
import { Observable } from 'rxjs';
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
import { ProblemDetailsModel, TreeItemPresentationModel } from '@umbraco-cms/backoffice/backend-api';
// TODO: temp type. Add paged response type to the repository interface
@@ -9,7 +9,7 @@ interface PagedResponse {
}
export interface UmbTreeItemContext {
- host: UmbControllerHostInterface;
+ host: UmbControllerHostElement;
unique?: string;
type?: string;
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/tree/tree.context.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/tree/tree.context.ts
index 954cdb58ab..8f22454e4e 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/tree/tree.context.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/tree/tree.context.ts
@@ -2,7 +2,7 @@ import type { Observable } from 'rxjs';
import { UmbTreeRepository } from '@umbraco-cms/backoffice/repository';
import type { ManifestTree } from '@umbraco-cms/backoffice/extensions-registry';
import { DeepState, UmbObserverController } from '@umbraco-cms/backoffice/observable-api';
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
import { UmbContextConsumerController } from '@umbraco-cms/backoffice/context-api';
import { createExtensionClass, umbExtensionsRegistry } from '@umbraco-cms/backoffice/extensions-api';
@@ -16,7 +16,7 @@ export interface UmbTreeContext {
}
export class UmbTreeContextBase implements UmbTreeContext {
- host: UmbControllerHostInterface;
+ host: UmbControllerHostElement;
public tree: ManifestTree;
#selectable = new DeepState(false);
@@ -34,7 +34,7 @@ export class UmbTreeContextBase implements UmbTreeContext {
this.#initialized ? resolve() : (this.#initResolver = resolve);
});
- constructor(host: UmbControllerHostInterface, tree: ManifestTree) {
+ constructor(host: UmbControllerHostElement, tree: ManifestTree) {
this.host = host;
this.tree = tree;
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace-property/workspace-property.context.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace-property/workspace-property.context.ts
index 5adf748b97..e069c2a5b5 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace-property/workspace-property.context.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace-property/workspace-property.context.ts
@@ -2,7 +2,7 @@ import { UmbVariantId } from '../../variants/variant-id.class';
import { UmbWorkspaceVariableEntityContextInterface } from '../workspace/workspace-context/workspace-variable-entity-context.interface';
import { UMB_WORKSPACE_VARIANT_CONTEXT_TOKEN } from '../workspace/workspace-variant/workspace-variant.context';
import type { DataTypeResponseModel } from '@umbraco-cms/backoffice/backend-api';
-import type { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import type { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
import { ClassState, ObjectState, StringState, UmbObserverController } from '@umbraco-cms/backoffice/observable-api';
import {
UmbContextConsumerController,
@@ -21,7 +21,7 @@ export type WorkspacePropertyData = {
};
export class UmbWorkspacePropertyContext {
- #host: UmbControllerHostInterface;
+ #host: UmbControllerHostElement;
private _providerController: UmbContextProviderController;
@@ -44,7 +44,7 @@ export class UmbWorkspacePropertyContext {
private _workspaceContext?: UmbWorkspaceVariableEntityContextInterface;
private _workspaceVariantConsumer?: UmbContextConsumerController;
- constructor(host: UmbControllerHostInterface) {
+ constructor(host: UmbControllerHostElement) {
this.#host = host;
new UmbContextConsumerController(host, UMB_ENTITY_WORKSPACE_CONTEXT, (workspaceContext) => {
this._workspaceContext = workspaceContext as UmbWorkspaceVariableEntityContextInterface;
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-context/entity-manager-controller.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-context/entity-manager-controller.ts
index b7137b1e1c..c1ee25b071 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-context/entity-manager-controller.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-context/entity-manager-controller.ts
@@ -1,6 +1,6 @@
import { v4 as uuidv4 } from 'uuid';
import { UmbContextConsumerController, UmbContextToken } from '@umbraco-cms/backoffice/context-api';
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
import {
UmbNotificationDefaultData,
UmbNotificationContext,
@@ -31,7 +31,7 @@ export class UmbEntityWorkspaceManager<
private _createAtParentKey?: string | null;
- constructor(host: UmbControllerHostInterface, entityType: string, storeToken: UmbContextToken) {
+ constructor(host: UmbControllerHostElement, entityType: string, storeToken: UmbContextToken) {
this._host = host;
this._entityType = entityType;
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-context/workspace-context.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-context/workspace-context.ts
index bafa808237..a95e2d1ffb 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-context/workspace-context.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-context/workspace-context.ts
@@ -1,6 +1,6 @@
import { UmbEntityWorkspaceContextInterface } from './workspace-entity-context.interface';
import { UmbContextProviderController, UMB_ENTITY_WORKSPACE_CONTEXT } from '@umbraco-cms/backoffice/context-api';
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
import { DeepState } from '@umbraco-cms/backoffice/observable-api';
import type { BaseEntity } from '@umbraco-cms/backoffice/models';
@@ -12,13 +12,13 @@ If so we need to align on a interface that all of these implements. otherwise co
export abstract class UmbWorkspaceContext
implements UmbEntityWorkspaceContextInterface
{
- public host: UmbControllerHostInterface;
+ public host: UmbControllerHostElement;
public repository: T;
#isNew = new DeepState(false);
isNew = this.#isNew.asObservable();
- constructor(host: UmbControllerHostInterface, repository: T) {
+ constructor(host: UmbControllerHostElement, repository: T) {
this.host = host;
this.repository = repository;
new UmbContextProviderController(host, UMB_ENTITY_WORKSPACE_CONTEXT, this);
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-context/workspace-property-structure-manager.class.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-context/workspace-property-structure-manager.class.ts
index f5751f03a5..df36f1db8c 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-context/workspace-property-structure-manager.class.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-context/workspace-property-structure-manager.class.ts
@@ -5,7 +5,7 @@ import {
PropertyTypeContainerResponseModelBaseModel,
ContentTypeResponseModelBaseDocumentTypePropertyTypeResponseModelDocumentTypePropertyTypeContainerResponseModel,
} from '@umbraco-cms/backoffice/backend-api';
-import { UmbControllerHostInterface, UmbControllerInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement, UmbControllerInterface } from '@umbraco-cms/backoffice/controller';
import { ArrayState, UmbObserverController, MappingFunction } from '@umbraco-cms/backoffice/observable-api';
export type PropertyContainerTypes = 'Group' | 'Tab';
@@ -15,7 +15,7 @@ type T = DocumentTypeResponseModel;
// TODO: make general interface for NodeTypeRepository, to replace UmbDocumentTypeRepository:
export class UmbWorkspacePropertyStructureManager {
- #host: UmbControllerHostInterface;
+ #host: UmbControllerHostElement;
#documentTypeRepository: R;
@@ -25,7 +25,7 @@ export class UmbWorkspacePropertyStructureManager([], (x) => x.key);
- constructor(host: UmbControllerHostInterface, typeRepository: R) {
+ constructor(host: UmbControllerHostElement, typeRepository: R) {
this.#host = host;
this.#documentTypeRepository = typeRepository;
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-context/workspace-split-view-manager.class.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-context/workspace-split-view-manager.class.ts
index f507add3f2..3c238c96b0 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-context/workspace-split-view-manager.class.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-context/workspace-split-view-manager.class.ts
@@ -1,5 +1,5 @@
import { UmbVariantId } from '../../../variants/variant-id.class';
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
import { ArrayState } from '@umbraco-cms/backoffice/observable-api';
export type ActiveVariant = {
@@ -14,12 +14,12 @@ export type ActiveVariant = {
* @description - Class managing the split view state for a workspace context.
*/
export class UmbWorkspaceSplitViewManager {
- #host: UmbControllerHostInterface;
+ #host: UmbControllerHostElement;
#activeVariantsInfo = new ArrayState([], (x) => x.index);
public readonly activeVariantsInfo = this.#activeVariantsInfo.asObservable();
- constructor(host: UmbControllerHostInterface) {
+ constructor(host: UmbControllerHostElement) {
this.#host = host;
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-footer-layout/workspace-footer-layout.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-footer-layout/workspace-footer-layout.element.ts
index 66dcef9011..525a5ede25 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-footer-layout/workspace-footer-layout.element.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-footer-layout/workspace-footer-layout.element.ts
@@ -16,7 +16,7 @@ import { UmbLitElement } from '@umbraco-cms/internal/lit-element';
*/
// TODO: stop naming this something with layout. as its not just an layout. it hooks up with extensions.
@customElement('umb-workspace-footer-layout')
-export class UmbWorkspaceFooterLayout extends UmbLitElement {
+export class UmbWorkspaceFooterLayoutElement extends UmbLitElement {
static styles = [
UUITextStyles,
css`
@@ -71,6 +71,6 @@ export class UmbWorkspaceFooterLayout extends UmbLitElement {
declare global {
interface HTMLElementTagNameMap {
- 'umb-workspace-footer-layout': UmbWorkspaceFooterLayout;
+ 'umb-workspace-footer-layout': UmbWorkspaceFooterLayoutElement;
}
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-footer-layout/workspace-footer-layout.stories.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-footer-layout/workspace-footer-layout.stories.ts
index ac7c825d27..a37b61a21b 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-footer-layout/workspace-footer-layout.stories.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-footer-layout/workspace-footer-layout.stories.ts
@@ -4,7 +4,7 @@ import './workspace-footer-layout.element';
import { Meta, Story } from '@storybook/web-components';
import { html } from 'lit';
-import type { UmbWorkspaceFooterLayout } from './workspace-footer-layout.element';
+import type { UmbWorkspaceFooterLayoutElement } from './workspace-footer-layout.element';
export default {
title: 'Workspaces/Shared/Footer Layout',
@@ -12,7 +12,7 @@ export default {
id: 'umb-workspace-footer-layout',
} as Meta;
-export const AAAOverview: Story = () => html`
+export const AAAOverview: Story = () => html`
Footer slot
Actions slot
`;
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-layout/workspace-layout.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-layout/workspace-layout.element.ts
index f1fe4b7ff2..b41fd563ea 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-layout/workspace-layout.element.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-layout/workspace-layout.element.ts
@@ -29,7 +29,7 @@ import { UmbLitElement } from '@umbraco-cms/internal/lit-element';
*/
// TODO: stop naming this something with layout. as its not just an layout. it hooks up with extensions.
@customElement('umb-workspace-layout')
-export class UmbWorkspaceLayout extends UmbLitElement {
+export class UmbWorkspaceLayoutElement extends UmbLitElement {
static styles = [
UUITextStyles,
css`
@@ -220,6 +220,6 @@ export class UmbWorkspaceLayout extends UmbLitElement {
declare global {
interface HTMLElementTagNameMap {
- 'umb-workspace-layout': UmbWorkspaceLayout;
+ 'umb-workspace-layout': UmbWorkspaceLayoutElement;
}
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-layout/workspace-layout.stories.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-layout/workspace-layout.stories.ts
index aa83696013..ba84a2855e 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-layout/workspace-layout.stories.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-layout/workspace-layout.stories.ts
@@ -3,7 +3,7 @@ import './workspace-layout.element';
import { Meta, Story } from '@storybook/web-components';
import { html } from 'lit';
-import type { UmbWorkspaceLayout } from './workspace-layout.element';
+import type { UmbWorkspaceLayoutElement } from './workspace-layout.element';
export default {
title: 'Workspaces/Shared/Editor Entity Layout',
@@ -11,7 +11,7 @@ export default {
id: 'umb-workspace-layout',
} as Meta;
-export const AAAOverview: Story = () => html`
+export const AAAOverview: Story = () => html`
Icon slot
Name slot
Footer slot
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-variant/workspace-variant.context.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-variant/workspace-variant.context.ts
index 57d79a4698..0f621391b5 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-variant/workspace-variant.context.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace/workspace-variant/workspace-variant.context.ts
@@ -8,14 +8,14 @@ import {
UmbContextToken,
UMB_ENTITY_WORKSPACE_CONTEXT,
} from '@umbraco-cms/backoffice/context-api';
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
import { ClassState, NumberState, ObjectState, UmbObserverController } from '@umbraco-cms/backoffice/observable-api';
import { DocumentVariantResponseModel } from '@umbraco-cms/backoffice/backend-api';
//type EntityType = DocumentModel;
export class UmbWorkspaceVariantContext {
- #host: UmbControllerHostInterface;
+ #host: UmbControllerHostElement;
#workspaceContext?: UmbWorkspaceVariableEntityContextInterface;
public getWorkspaceContext() {
@@ -37,7 +37,7 @@ export class UmbWorkspaceVariantContext {
private _currentVariantObserver?: UmbObserverController;
- constructor(host: UmbControllerHostInterface) {
+ constructor(host: UmbControllerHostElement) {
this.#host = host;
new UmbContextProviderController(host, UMB_WORKSPACE_VARIANT_CONTEXT_TOKEN.toString(), this);
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-actions/shared/property-action-menu/property-action-menu.context.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-actions/shared/property-action-menu/property-action-menu.context.ts
index ad2218b381..3a8205847f 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-actions/shared/property-action-menu/property-action-menu.context.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-actions/shared/property-action-menu/property-action-menu.context.ts
@@ -1,12 +1,12 @@
import { UmbContextProviderController } from '@umbraco-cms/backoffice/context-api';
-import type { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import type { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
import { DeepState } from '@umbraco-cms/backoffice/observable-api';
export class UmbPropertyActionMenuContext {
#isOpen = new DeepState(false);
public readonly isOpen = this.#isOpen.asObservable();
- constructor(host: UmbControllerHostInterface) {
+ constructor(host: UmbControllerHostElement) {
new UmbContextProviderController(host, 'umbPropertyActionMenu', this);
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/templating/components/file-system-tree-item/file-system-tree-item.context.ts b/src/Umbraco.Web.UI.Client/src/backoffice/templating/components/file-system-tree-item/file-system-tree-item.context.ts
index 92d1f20549..670d5d6be4 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/templating/components/file-system-tree-item/file-system-tree-item.context.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/templating/components/file-system-tree-item/file-system-tree-item.context.ts
@@ -1,11 +1,11 @@
import { UmbTreeItemContextBase } from '../../../shared/components/tree/tree-item-base/tree-item-base.context';
import { urlFriendlyPathFromServerFilePath } from '../../utils';
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
import { FileSystemTreeItemPresentationModel } from '@umbraco-cms/backoffice/backend-api';
// TODO get unique method from an entity repository static method
export class UmbFileSystemTreeItemContext extends UmbTreeItemContextBase {
- constructor(host: UmbControllerHostInterface) {
+ constructor(host: UmbControllerHostElement) {
super(host, (x: FileSystemTreeItemPresentationModel) => x.path);
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/templating/stylesheets/repository/sources/stylesheet.server.data.ts b/src/Umbraco.Web.UI.Client/src/backoffice/templating/stylesheets/repository/sources/stylesheet.server.data.ts
index bc82863011..65fcd64e91 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/templating/stylesheets/repository/sources/stylesheet.server.data.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/templating/stylesheets/repository/sources/stylesheet.server.data.ts
@@ -1,6 +1,6 @@
import { StylesheetDetails } from '../..';
import { DataSourceResponse, UmbDataSource } from '@umbraco-cms/backoffice/repository';
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
/**
* A data source for the Stylesheet that fetches data from the server
@@ -9,14 +9,14 @@ import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
* @implements {UmbStylesheetServerDataSource}
*/
export class UmbStylesheetServerDataSource implements UmbDataSource {
- #host: UmbControllerHostInterface;
+ #host: UmbControllerHostElement;
/**
* Creates an instance of UmbStylesheetServerDataSource.
- * @param {UmbControllerHostInterface} host
+ * @param {UmbControllerHostElement} host
* @memberof UmbStylesheetServerDataSource
*/
- constructor(host: UmbControllerHostInterface) {
+ constructor(host: UmbControllerHostElement) {
this.#host = host;
}
createScaffold(parentKey: string | null): Promise> {
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/templating/stylesheets/repository/sources/stylesheet.tree.server.data.ts b/src/Umbraco.Web.UI.Client/src/backoffice/templating/stylesheets/repository/sources/stylesheet.tree.server.data.ts
index 7165e29c2e..1618d1ee59 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/templating/stylesheets/repository/sources/stylesheet.tree.server.data.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/templating/stylesheets/repository/sources/stylesheet.tree.server.data.ts
@@ -3,7 +3,7 @@ import {
PagedFileSystemTreeItemPresentationModel,
StylesheetResource,
} from '@umbraco-cms/backoffice/backend-api';
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
import { tryExecuteAndNotify } from '@umbraco-cms/backoffice/resources';
import { UmbTreeDataSource } from '@umbraco-cms/backoffice/repository';
@@ -16,14 +16,14 @@ import { UmbTreeDataSource } from '@umbraco-cms/backoffice/repository';
export class UmbStylesheetTreeServerDataSource
implements UmbTreeDataSource
{
- #host: UmbControllerHostInterface;
+ #host: UmbControllerHostElement;
/**
* Creates an instance of UmbStylesheetTreeServerDataSource.
- * @param {UmbControllerHostInterface} host
+ * @param {UmbControllerHostElement} host
* @memberof UmbStylesheetTreeServerDataSource
*/
- constructor(host: UmbControllerHostInterface) {
+ constructor(host: UmbControllerHostElement) {
this.#host = host;
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/templating/stylesheets/repository/stylesheet.repository.ts b/src/Umbraco.Web.UI.Client/src/backoffice/templating/stylesheets/repository/stylesheet.repository.ts
index a045817b57..fd73a0cda1 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/templating/stylesheets/repository/stylesheet.repository.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/templating/stylesheets/repository/stylesheet.repository.ts
@@ -1,7 +1,7 @@
import { UmbStylesheetTreeStore, UMB_STYLESHEET_TREE_STORE_CONTEXT_TOKEN } from './stylesheet.tree.store';
import { UmbStylesheetTreeServerDataSource } from './sources/stylesheet.tree.server.data';
import { UmbStylesheetServerDataSource } from './sources/stylesheet.server.data';
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
import { UmbNotificationContext, UMB_NOTIFICATION_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/notification';
import { UmbContextConsumerController } from '@umbraco-cms/backoffice/context-api';
import { UmbTreeRepository } from '@umbraco-cms/backoffice/repository';
@@ -21,7 +21,7 @@ export class UmbStylesheetRepository
#initResolver?: () => void;
#initialized = false;
- constructor(host: UmbControllerHostInterface) {
+ constructor(host: UmbControllerHostElement) {
this.#host = host;
// TODO: figure out how spin up get the correct data source
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/templating/stylesheets/repository/stylesheet.tree.store.ts b/src/Umbraco.Web.UI.Client/src/backoffice/templating/stylesheets/repository/stylesheet.tree.store.ts
index bf7a427c5c..317f94c2b4 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/templating/stylesheets/repository/stylesheet.tree.store.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/templating/stylesheets/repository/stylesheet.tree.store.ts
@@ -1,6 +1,6 @@
import { UmbFileSystemTreeStore } from '@umbraco-cms/backoffice/store';
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
-import type { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import type { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
/**
* @export
@@ -11,10 +11,10 @@ import type { UmbControllerHostInterface } from '@umbraco-cms/backoffice/control
export class UmbStylesheetTreeStore extends UmbFileSystemTreeStore {
/**
* Creates an instance of UmbStylesheetTreeStore.
- * @param {UmbControllerHostInterface} host
+ * @param {UmbControllerHostElement} host
* @memberof UmbStylesheetTreeStore
*/
- constructor(host: UmbControllerHostInterface) {
+ constructor(host: UmbControllerHostElement) {
super(host, UMB_STYLESHEET_TREE_STORE_CONTEXT_TOKEN.toString());
}
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/templating/stylesheets/workspace/stylesheet-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/backoffice/templating/stylesheets/workspace/stylesheet-workspace.context.ts
index ec62d9d24a..4eb287b166 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/templating/stylesheets/workspace/stylesheet-workspace.context.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/templating/stylesheets/workspace/stylesheet-workspace.context.ts
@@ -1,14 +1,14 @@
import { UmbWorkspaceContext } from '../../../shared/components/workspace/workspace-context/workspace-context';
import { UmbStylesheetRepository } from '../repository/stylesheet.repository';
import { StylesheetDetails } from '..';
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
import { ObjectState } from '@umbraco-cms/backoffice/observable-api';
export class UmbStylesheetWorkspaceContext extends UmbWorkspaceContext {
#data = new ObjectState(undefined);
data = this.#data.asObservable();
- constructor(host: UmbControllerHostInterface) {
+ constructor(host: UmbControllerHostElement) {
super(host, new UmbStylesheetRepository(host));
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/templating/templates/entity-actions/create/create.action.ts b/src/Umbraco.Web.UI.Client/src/backoffice/templating/templates/entity-actions/create/create.action.ts
index 11ba8f3d3b..97067b0fc3 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/templating/templates/entity-actions/create/create.action.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/templating/templates/entity-actions/create/create.action.ts
@@ -1,8 +1,8 @@
import { UmbEntityActionBase } from '@umbraco-cms/backoffice/entity-action';
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
export class UmbCreateEntityAction }> extends UmbEntityActionBase {
- constructor(host: UmbControllerHostInterface, repositoryAlias: string, unique: string) {
+ constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string) {
super(host, repositoryAlias, unique);
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/templating/templates/repository/sources/template.detail.server.data.ts b/src/Umbraco.Web.UI.Client/src/backoffice/templating/templates/repository/sources/template.detail.server.data.ts
index c2b90a69a1..7705f1ac6d 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/templating/templates/repository/sources/template.detail.server.data.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/templating/templates/repository/sources/template.detail.server.data.ts
@@ -1,6 +1,6 @@
import { v4 as uuid } from 'uuid';
import { ProblemDetailsModel, TemplateResponseModel, TemplateResource } from '@umbraco-cms/backoffice/backend-api';
-import type { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import type { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
import { tryExecuteAndNotify } from '@umbraco-cms/backoffice/resources';
import type { DataSourceResponse } from '@umbraco-cms/backoffice/repository';
@@ -19,14 +19,14 @@ export interface TemplateDetailDataSource {
* @implements {TemplateDetailDataSource}
*/
export class UmbTemplateDetailServerDataSource implements TemplateDetailDataSource {
- #host: UmbControllerHostInterface;
+ #host: UmbControllerHostElement;
/**
* Creates an instance of UmbTemplateDetailServerDataSource.
- * @param {UmbControllerHostInterface} host
+ * @param {UmbControllerHostElement} host
* @memberof UmbTemplateDetailServerDataSource
*/
- constructor(host: UmbControllerHostInterface) {
+ constructor(host: UmbControllerHostElement) {
this.#host = host;
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/templating/templates/repository/sources/template.tree.server.data.ts b/src/Umbraco.Web.UI.Client/src/backoffice/templating/templates/repository/sources/template.tree.server.data.ts
index c7393da101..219e8cc807 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/templating/templates/repository/sources/template.tree.server.data.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/templating/templates/repository/sources/template.tree.server.data.ts
@@ -1,6 +1,6 @@
import { TemplateTreeDataSource } from '.';
import { ProblemDetailsModel, TemplateResource } from '@umbraco-cms/backoffice/backend-api';
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
import { tryExecuteAndNotify } from '@umbraco-cms/backoffice/resources';
/**
@@ -10,14 +10,14 @@ import { tryExecuteAndNotify } from '@umbraco-cms/backoffice/resources';
* @implements {TemplateTreeDataSource}
*/
export class TemplateTreeServerDataSource implements TemplateTreeDataSource {
- #host: UmbControllerHostInterface;
+ #host: UmbControllerHostElement;
/**
* Creates an instance of TemplateTreeServerDataSource.
- * @param {UmbControllerHostInterface} host
+ * @param {UmbControllerHostElement} host
* @memberof TemplateTreeServerDataSource
*/
- constructor(host: UmbControllerHostInterface) {
+ constructor(host: UmbControllerHostElement) {
this.#host = host;
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/templating/templates/repository/template.repository.ts b/src/Umbraco.Web.UI.Client/src/backoffice/templating/templates/repository/template.repository.ts
index ec47ab953d..5567f76759 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/templating/templates/repository/template.repository.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/templating/templates/repository/template.repository.ts
@@ -3,14 +3,14 @@ import { TemplateTreeServerDataSource } from './sources/template.tree.server.dat
import { UmbTemplateStore, UMB_TEMPLATE_STORE_CONTEXT_TOKEN } from './template.store';
import { UmbTemplateTreeStore, UMB_TEMPLATE_TREE_STORE_CONTEXT_TOKEN } from './template.tree.store';
import type { UmbDetailRepository, UmbTreeRepository } from '@umbraco-cms/backoffice/repository';
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
import { UmbNotificationContext, UMB_NOTIFICATION_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/notification';
import { UmbContextConsumerController } from '@umbraco-cms/backoffice/context-api';
import { ProblemDetailsModel, TemplateResponseModel } from '@umbraco-cms/backoffice/backend-api';
export class UmbTemplateRepository implements UmbTreeRepository, UmbDetailRepository {
#init;
- #host: UmbControllerHostInterface;
+ #host: UmbControllerHostElement;
#treeDataSource: TemplateTreeServerDataSource;
#detailDataSource: UmbTemplateDetailServerDataSource;
@@ -20,7 +20,7 @@ export class UmbTemplateRepository implements UmbTreeRepository, UmbDetailR
#notificationContext?: UmbNotificationContext;
- constructor(host: UmbControllerHostInterface) {
+ constructor(host: UmbControllerHostElement) {
this.#host = host;
// TODO: figure out how spin up get the correct data source
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/templating/templates/repository/template.store.ts b/src/Umbraco.Web.UI.Client/src/backoffice/templating/templates/repository/template.store.ts
index 87cc54b329..bda7548eb7 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/templating/templates/repository/template.store.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/templating/templates/repository/template.store.ts
@@ -2,7 +2,7 @@ import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
import { ArrayState } from '@umbraco-cms/backoffice/observable-api';
import { UmbStoreBase } from '@umbraco-cms/backoffice/store';
import type { TemplateResponseModel } from '@umbraco-cms/backoffice/backend-api';
-import type { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import type { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
/**
* @export
@@ -15,10 +15,10 @@ export class UmbTemplateStore extends UmbStoreBase {
/**
* Creates an instance of UmbTemplateStore.
- * @param {UmbControllerHostInterface} host
+ * @param {UmbControllerHostElement} host
* @memberof UmbTemplateStore
*/
- constructor(host: UmbControllerHostInterface) {
+ constructor(host: UmbControllerHostElement) {
super(host, UMB_TEMPLATE_STORE_CONTEXT_TOKEN.toString());
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/templating/templates/repository/template.tree.store.ts b/src/Umbraco.Web.UI.Client/src/backoffice/templating/templates/repository/template.tree.store.ts
index b606566c98..d243c300f9 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/templating/templates/repository/template.tree.store.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/templating/templates/repository/template.tree.store.ts
@@ -1,6 +1,6 @@
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
import { UmbEntityTreeStore } from '@umbraco-cms/backoffice/store';
-import type { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import type { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
export const UMB_TEMPLATE_TREE_STORE_CONTEXT_TOKEN = new UmbContextToken('UmbTemplateTreeStore');
@@ -13,10 +13,10 @@ export const UMB_TEMPLATE_TREE_STORE_CONTEXT_TOKEN = new UmbContextToken {
#data = new DeepState(undefined);
@@ -10,7 +10,7 @@ export class UmbTemplateWorkspaceContext extends UmbWorkspaceContext data?.name);
content = createObservablePart(this.#data, (data) => data?.content);
- constructor(host: UmbControllerHostInterface) {
+ constructor(host: UmbControllerHostElement) {
super(host, new UmbTemplateRepository(host));
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/themes/theme.context.ts b/src/Umbraco.Web.UI.Client/src/backoffice/themes/theme.context.ts
index 4e18d51859..959c8f19ef 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/themes/theme.context.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/themes/theme.context.ts
@@ -3,13 +3,13 @@ import { manifests } from './manifests';
import { UmbContextProviderController, UmbContextToken } from '@umbraco-cms/backoffice/context-api';
import { StringState, UmbObserverController } from '@umbraco-cms/backoffice/observable-api';
import { umbExtensionsRegistry } from '@umbraco-cms/backoffice/extensions-api';
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
import { ManifestTheme } from '@umbraco-cms/backoffice/extensions-registry';
const LOCAL_STORAGE_KEY = 'umb-theme-alias';
export class UmbThemeContext {
- private _host: UmbControllerHostInterface;
+ private _host: UmbControllerHostElement;
#theme = new StringState('umb-light-theme');
public readonly theme = this.#theme.asObservable();
@@ -18,7 +18,7 @@ export class UmbThemeContext {
#styleElement: HTMLLinkElement | HTMLStyleElement | null = null;
- constructor(host: UmbControllerHostInterface) {
+ constructor(host: UmbControllerHostElement) {
this._host = host;
new UmbContextProviderController(host, UMB_THEME_CONTEXT_TOKEN, this);
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/entity-actions/create/create.action.ts b/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/entity-actions/create/create.action.ts
index 7e0686e77a..8f7f3eae7e 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/entity-actions/create/create.action.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/entity-actions/create/create.action.ts
@@ -5,7 +5,7 @@ import {
UMB_SECTION_SIDEBAR_CONTEXT_TOKEN,
} from '../../../../../backoffice/shared/components/section/section-sidebar/section-sidebar.context';
import { UmbEntityActionBase } from '@umbraco-cms/backoffice/entity-action';
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
import { UmbContextConsumerController } from '@umbraco-cms/backoffice/context-api';
import { UmbModalContext, UMB_MODAL_CONTEXT_TOKEN, UMB_CREATE_DICTIONARY_MODAL } from '@umbraco-cms/backoffice/modal';
@@ -19,7 +19,7 @@ export default class UmbCreateDictionaryEntityAction extends UmbEntityActionBase
#sectionSidebarContext!: UmbSectionSidebarContext;
- constructor(host: UmbControllerHostInterface, repositoryAlias: string, unique: string) {
+ constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string) {
super(host, repositoryAlias, unique);
new UmbContextConsumerController(this.host, UMB_MODAL_CONTEXT_TOKEN, (instance) => {
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/entity-actions/export/export.action.ts b/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/entity-actions/export/export.action.ts
index d3351707bc..5505ad4ced 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/entity-actions/export/export.action.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/entity-actions/export/export.action.ts
@@ -1,7 +1,7 @@
import { UUITextStyles } from '@umbraco-ui/uui-css';
import { UmbDictionaryRepository } from '../../repository/dictionary.repository';
import { UmbEntityActionBase } from '@umbraco-cms/backoffice/entity-action';
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
import { UmbContextConsumerController } from '@umbraco-cms/backoffice/context-api';
import { UmbModalContext, UMB_MODAL_CONTEXT_TOKEN, UMB_EXPORT_DICTIONARY_MODAL } from '@umbraco-cms/backoffice/modal';
@@ -12,7 +12,7 @@ export default class UmbExportDictionaryEntityAction extends UmbEntityActionBase
#modalContext?: UmbModalContext;
- constructor(host: UmbControllerHostInterface, repositoryAlias: string, unique: string) {
+ constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string) {
super(host, repositoryAlias, unique);
new UmbContextConsumerController(this.host, UMB_MODAL_CONTEXT_TOKEN, (instance) => {
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/entity-actions/import/import.action.ts b/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/entity-actions/import/import.action.ts
index 83c4f68cee..0ba63c6352 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/entity-actions/import/import.action.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/entity-actions/import/import.action.ts
@@ -1,7 +1,7 @@
import { UUITextStyles } from '@umbraco-ui/uui-css';
import { UmbDictionaryRepository } from '../../repository/dictionary.repository';
import { UmbEntityActionBase } from '@umbraco-cms/backoffice/entity-action';
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
import { UmbContextConsumerController } from '@umbraco-cms/backoffice/context-api';
import { UmbModalContext, UMB_MODAL_CONTEXT_TOKEN, UMB_IMPORT_DICTIONARY_MODAL } from '@umbraco-cms/backoffice/modal';
@@ -12,7 +12,7 @@ export default class UmbImportDictionaryEntityAction extends UmbEntityActionBase
#modalContext?: UmbModalContext;
- constructor(host: UmbControllerHostInterface, repositoryAlias: string, unique: string) {
+ constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string) {
super(host, repositoryAlias, unique);
new UmbContextConsumerController(this.host, UMB_MODAL_CONTEXT_TOKEN, (instance) => {
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/entity-actions/reload.action.ts b/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/entity-actions/reload.action.ts
index 0cb3ca20c0..ac91ad2bfe 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/entity-actions/reload.action.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/entity-actions/reload.action.ts
@@ -1,12 +1,12 @@
import { UUITextStyles } from '@umbraco-ui/uui-css';
import { UmbDictionaryRepository } from '../repository/dictionary.repository';
import { UmbEntityActionBase } from '@umbraco-cms/backoffice/entity-action';
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
export default class UmbReloadDictionaryEntityAction extends UmbEntityActionBase {
static styles = [UUITextStyles];
- constructor(host: UmbControllerHostInterface, repositoryAlias: string, unique: string) {
+ constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string) {
super(host, repositoryAlias, unique);
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/repository/dictionary.repository.ts b/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/repository/dictionary.repository.ts
index ac680847b3..925f993f48 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/repository/dictionary.repository.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/repository/dictionary.repository.ts
@@ -3,7 +3,7 @@ import { UmbDictionaryStore, UMB_DICTIONARY_STORE_CONTEXT_TOKEN } from './dictio
import { UmbDictionaryDetailServerDataSource } from './sources/dictionary.detail.server.data';
import { UmbDictionaryTreeStore, UMB_DICTIONARY_TREE_STORE_CONTEXT_TOKEN } from './dictionary.tree.store';
import { DictionaryTreeServerDataSource } from './sources/dictionary.tree.server.data';
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
import { UmbContextConsumerController } from '@umbraco-cms/backoffice/context-api';
import { UmbTreeDataSource, UmbDetailRepository, UmbTreeRepository } from '@umbraco-cms/backoffice/repository';
import { ProblemDetailsModel } from '@umbraco-cms/backoffice/backend-api';
@@ -12,7 +12,7 @@ import { UmbNotificationContext, UMB_NOTIFICATION_CONTEXT_TOKEN } from '@umbraco
export class UmbDictionaryRepository implements UmbTreeRepository, UmbDetailRepository {
#init!: Promise;
- #host: UmbControllerHostInterface;
+ #host: UmbControllerHostElement;
#treeSource: UmbTreeDataSource;
#treeStore?: UmbDictionaryTreeStore;
@@ -22,7 +22,7 @@ export class UmbDictionaryRepository implements UmbTreeRepository, UmbDetailRepo
#notificationContext?: UmbNotificationContext;
- constructor(host: UmbControllerHostInterface) {
+ constructor(host: UmbControllerHostElement) {
this.#host = host;
// TODO: figure out how spin up get the correct data source
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/repository/dictionary.store.ts b/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/repository/dictionary.store.ts
index 210f98c8dc..45ec7a5f5f 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/repository/dictionary.store.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/repository/dictionary.store.ts
@@ -1,7 +1,7 @@
import type { DictionaryDetails } from '../';
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
import { UmbStoreBase } from '@umbraco-cms/backoffice/store';
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
import { ArrayState } from '@umbraco-cms/backoffice/observable-api';
/**
@@ -13,7 +13,7 @@ import { ArrayState } from '@umbraco-cms/backoffice/observable-api';
export class UmbDictionaryStore extends UmbStoreBase {
#data = new ArrayState([], (x) => x.key);
- constructor(host: UmbControllerHostInterface) {
+ constructor(host: UmbControllerHostElement) {
super(host, UMB_DICTIONARY_STORE_CONTEXT_TOKEN.toString());
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/repository/dictionary.tree.store.ts b/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/repository/dictionary.tree.store.ts
index cfcbb6ea48..3c60cabe70 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/repository/dictionary.tree.store.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/repository/dictionary.tree.store.ts
@@ -1,6 +1,6 @@
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
import { UmbEntityTreeStore } from '@umbraco-cms/backoffice/store';
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
/**
* @export
@@ -11,10 +11,10 @@ import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
export class UmbDictionaryTreeStore extends UmbEntityTreeStore {
/**
* Creates an instance of UmbDictionaryTreeStore.
- * @param {UmbControllerHostInterface} host
+ * @param {UmbControllerHostElement} host
* @memberof UmbDictionaryTreeStore
*/
- constructor(host: UmbControllerHostInterface) {
+ constructor(host: UmbControllerHostElement) {
super(host, UMB_DICTIONARY_TREE_STORE_CONTEXT_TOKEN.toString());
}
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/repository/sources/dictionary.detail.server.data.ts b/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/repository/sources/dictionary.detail.server.data.ts
index 8a972cc326..109d5a3924 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/repository/sources/dictionary.detail.server.data.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/repository/sources/dictionary.detail.server.data.ts
@@ -1,6 +1,6 @@
import type { DictionaryDetails } from '../../';
import { DictionaryDetailDataSource } from './dictionary.details.server.data.interface';
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
import { tryExecuteAndNotify } from '@umbraco-cms/backoffice/resources';
import {
CreateDictionaryItemRequestModel,
@@ -16,9 +16,9 @@ import {
* @implements {DictionaryDetailDataSource}
*/
export class UmbDictionaryDetailServerDataSource implements DictionaryDetailDataSource {
- #host: UmbControllerHostInterface;
+ #host: UmbControllerHostElement;
- constructor(host: UmbControllerHostInterface) {
+ constructor(host: UmbControllerHostElement) {
this.#host = host;
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/repository/sources/dictionary.tree.server.data.ts b/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/repository/sources/dictionary.tree.server.data.ts
index a96b16666d..fa073716ed 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/repository/sources/dictionary.tree.server.data.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/repository/sources/dictionary.tree.server.data.ts
@@ -1,5 +1,5 @@
import { DictionaryResource, ProblemDetailsModel } from '@umbraco-cms/backoffice/backend-api';
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
import { UmbTreeDataSource } from '@umbraco-cms/backoffice/repository';
import { tryExecuteAndNotify } from '@umbraco-cms/backoffice/resources';
@@ -10,14 +10,14 @@ import { tryExecuteAndNotify } from '@umbraco-cms/backoffice/resources';
* @implements {DictionaryTreeDataSource}
*/
export class DictionaryTreeServerDataSource implements UmbTreeDataSource {
- #host: UmbControllerHostInterface;
+ #host: UmbControllerHostElement;
/**
* Creates an instance of DictionaryTreeDataSource.
- * @param {UmbControllerHostInterface} host
+ * @param {UmbControllerHostElement} host
* @memberof DictionaryTreeDataSource
*/
- constructor(host: UmbControllerHostInterface) {
+ constructor(host: UmbControllerHostElement) {
this.#host = host;
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/workspace/dictionary-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/workspace/dictionary-workspace.context.ts
index 1dd15912db..77e7724e0a 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/workspace/dictionary-workspace.context.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/translation/dictionary/workspace/dictionary-workspace.context.ts
@@ -2,7 +2,7 @@ import { UmbDictionaryRepository } from '../repository/dictionary.repository';
import { UmbWorkspaceContext } from '../../../../backoffice/shared/components/workspace/workspace-context/workspace-context';
import { UmbEntityWorkspaceContextInterface } from '../../../../backoffice/shared/components/workspace/workspace-context/workspace-entity-context.interface';
import type { DictionaryDetails } from '../';
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
import { ObjectState } from '@umbraco-cms/backoffice/observable-api';
type EntityType = DictionaryDetails;
@@ -16,7 +16,7 @@ export class UmbDictionaryWorkspaceContext
name = this.#data.getObservablePart((data) => data?.name);
dictionary = this.#data.getObservablePart((data) => data);
- constructor(host: UmbControllerHostInterface) {
+ constructor(host: UmbControllerHostElement) {
super(host, new UmbDictionaryRepository(host));
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/users/current-user/current-user-header-app.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/users/current-user/current-user-header-app.element.ts
index baca5d0566..7cf07e767f 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/users/current-user/current-user-header-app.element.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/users/current-user/current-user-header-app.element.ts
@@ -7,7 +7,7 @@ import { UmbModalContext, UMB_MODAL_CONTEXT_TOKEN, UMB_CURRENT_USER_MODAL } from
import { UmbLitElement } from '@umbraco-cms/internal/lit-element';
@customElement('umb-current-user-header-app')
-export class UmbCurrentUserHeaderApp extends UmbLitElement {
+export class UmbCurrentUserHeaderAppElement extends UmbLitElement {
static styles: CSSResultGroup = [
UUITextStyles,
css`
@@ -58,10 +58,10 @@ export class UmbCurrentUserHeaderApp extends UmbLitElement {
}
}
-export default UmbCurrentUserHeaderApp;
+export default UmbCurrentUserHeaderAppElement;
declare global {
interface HTMLElementTagNameMap {
- 'umb-current-user-header-app': UmbCurrentUserHeaderApp;
+ 'umb-current-user-header-app': UmbCurrentUserHeaderAppElement;
}
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/users/user-groups/repository/user-group.repository.ts b/src/Umbraco.Web.UI.Client/src/backoffice/users/user-groups/repository/user-group.repository.ts
index 7c5b190ec4..7e4eac48ec 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/users/user-groups/repository/user-group.repository.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/users/user-groups/repository/user-group.repository.ts
@@ -1,10 +1,10 @@
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
// TODO: implement
export class UmbUserGroupRepository {
- #host: UmbControllerHostInterface;
+ #host: UmbControllerHostElement;
- constructor(host: UmbControllerHostInterface) {
+ constructor(host: UmbControllerHostElement) {
this.#host = host;
console.log(this.#host);
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/users/user-groups/repository/user-group.store.ts b/src/Umbraco.Web.UI.Client/src/backoffice/users/user-groups/repository/user-group.store.ts
index 1eeaf6e970..2b4fd90559 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/users/user-groups/repository/user-group.store.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/users/user-groups/repository/user-group.store.ts
@@ -1,6 +1,6 @@
import type { UserGroupDetails } from '@umbraco-cms/backoffice/models';
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
import { ArrayState } from '@umbraco-cms/backoffice/observable-api';
import { UmbEntityDetailStore, UmbStoreBase } from '@umbraco-cms/backoffice/store';
@@ -19,7 +19,7 @@ export class UmbUserGroupStore extends UmbStoreBase implements UmbEntityDetailSt
#groups = new ArrayState([], (x) => x.key);
public groups = this.#groups.asObservable();
- constructor(host: UmbControllerHostInterface) {
+ constructor(host: UmbControllerHostElement) {
super(host, UMB_USER_GROUP_STORE_CONTEXT_TOKEN.toString());
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/users/user-groups/workspace/user-group-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/backoffice/users/user-groups/workspace/user-group-workspace.context.ts
index 4024927ed1..4aa160ddd4 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/users/user-groups/workspace/user-group-workspace.context.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/users/user-groups/workspace/user-group-workspace.context.ts
@@ -4,7 +4,7 @@ import { UmbEntityWorkspaceContextInterface } from '../../../shared/components/w
import { UMB_USER_GROUP_STORE_CONTEXT_TOKEN } from '../repository/user-group.store';
import { UmbUserGroupRepository } from '../repository/user-group.repository';
import type { UserGroupDetails } from '@umbraco-cms/backoffice/models';
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
export class UmbUserGroupWorkspaceContext
extends UmbWorkspaceContext
@@ -19,7 +19,7 @@ export class UmbUserGroupWorkspaceContext
public readonly data = this.#manager.state.asObservable();
public readonly name = this.#manager.state.getObservablePart((state) => state?.name);
- constructor(host: UmbControllerHostInterface) {
+ constructor(host: UmbControllerHostElement) {
super(host, new UmbUserGroupRepository(host));
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/users/users/repository/user.repository.ts b/src/Umbraco.Web.UI.Client/src/backoffice/users/users/repository/user.repository.ts
index 8aa9fca2b5..a9f65bc59d 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/users/users/repository/user.repository.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/users/users/repository/user.repository.ts
@@ -1,10 +1,10 @@
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
// TODO: implement
export class UmbUserRepository {
- #host: UmbControllerHostInterface;
+ #host: UmbControllerHostElement;
- constructor(host: UmbControllerHostInterface) {
+ constructor(host: UmbControllerHostElement) {
this.#host = host;
console.log(this.#host);
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/users/users/repository/user.store.ts b/src/Umbraco.Web.UI.Client/src/backoffice/users/users/repository/user.store.ts
index c089151eef..4c6791de91 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/users/users/repository/user.store.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/users/users/repository/user.store.ts
@@ -2,7 +2,7 @@ import type { UserDetails } from '@umbraco-cms/backoffice/models';
import { ArrayState, NumberState } from '@umbraco-cms/backoffice/observable-api';
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
import { UmbEntityDetailStore, UmbStoreBase } from '@umbraco-cms/backoffice/store';
-import type { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import type { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
export type UmbUserStoreItemType = UserDetails;
@@ -21,7 +21,7 @@ export class UmbUserStore extends UmbStoreBase implements UmbEntityDetailStore
@@ -22,7 +22,7 @@ export class UmbUserWorkspaceContext
// TODO: remove this magic connection, instead create the necessary methods to update parts.
update = this.#manager.state.update;
- constructor(host: UmbControllerHostInterface) {
+ constructor(host: UmbControllerHostElement) {
super(host, new UmbUserRepository(host));
}
diff --git a/src/Umbraco.Web.UI.Client/src/core/context-provider/context-provider.element.ts b/src/Umbraco.Web.UI.Client/src/core/context-provider/context-provider.element.ts
index 6cb0a7de8e..d5e28380e9 100644
--- a/src/Umbraco.Web.UI.Client/src/core/context-provider/context-provider.element.ts
+++ b/src/Umbraco.Web.UI.Client/src/core/context-provider/context-provider.element.ts
@@ -1,7 +1,7 @@
import { html } from 'lit';
import { customElement, property } from 'lit/decorators.js';
import { UmbLitElement } from '@umbraco-cms/internal/lit-element';
-import type { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import type { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
@customElement('umb-context-provider')
export class UmbContextProviderElement extends UmbLitElement {
@@ -10,7 +10,7 @@ export class UmbContextProviderElement extends UmbLitElement {
* @required
*/
@property({ type: Object, attribute: false })
- create?: (host: UmbControllerHostInterface) => unknown;
+ create?: (host: UmbControllerHostElement) => unknown;
/**
* The value to provide to the context.
diff --git a/src/Umbraco.Web.UI.Client/src/core/controller-host/controller-host-test.element.ts b/src/Umbraco.Web.UI.Client/src/core/controller-host/controller-host-test.element.ts
index 5ab064e243..14d703ffe7 100644
--- a/src/Umbraco.Web.UI.Client/src/core/controller-host/controller-host-test.element.ts
+++ b/src/Umbraco.Web.UI.Client/src/core/controller-host/controller-host-test.element.ts
@@ -1,6 +1,6 @@
import { html } from 'lit';
import { customElement, property } from 'lit/decorators.js';
-import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
import { UmbLitElement } from '@umbraco-cms/internal/lit-element';
@customElement('umb-controller-host-test')
@@ -10,7 +10,7 @@ export class UmbControllerHostTestElement extends UmbLitElement {
* @required
*/
@property({ type: Object, attribute: false })
- create?: (host: UmbControllerHostInterface) => void;
+ create?: (host: UmbControllerHostElement) => void;
connectedCallback() {
super.connectedCallback();
diff --git a/src/Umbraco.Web.UI.Client/src/core/controller-host/controller-host-test.test.ts b/src/Umbraco.Web.UI.Client/src/core/controller-host/controller-host-test.test.ts
index 4f3c781625..df0e1f3c42 100644
--- a/src/Umbraco.Web.UI.Client/src/core/controller-host/controller-host-test.test.ts
+++ b/src/Umbraco.Web.UI.Client/src/core/controller-host/controller-host-test.test.ts
@@ -3,7 +3,7 @@ import { customElement } from 'lit/decorators.js';
import { UmbControllerHostTestElement } from './controller-host-test.element';
import { UmbLitElement } from '@umbraco-cms/internal/lit-element';
import { UmbContextProviderController } from '@umbraco-cms/backoffice/context-api';
-import type { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
+import type { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
@customElement('umb-controller-host-test-consumer')
export class ControllerHostTestConsumerElement extends UmbLitElement {
@@ -24,7 +24,7 @@ describe('UmbControllerHostTestElement', () => {
beforeEach(async () => {
element = await fixture(
html`
+ .create=${(host: UmbControllerHostElement) =>
new UmbContextProviderController(host, 'my-test-context-alias', contextValue)}>
`
diff --git a/src/Umbraco.Web.UI.Client/src/stories/extending/entity-actions.mdx b/src/Umbraco.Web.UI.Client/src/stories/extending/entity-actions.mdx
index 3298aabe03..eb9fe3121d 100644
--- a/src/Umbraco.Web.UI.Client/src/stories/extending/entity-actions.mdx
+++ b/src/Umbraco.Web.UI.Client/src/stories/extending/entity-actions.mdx
@@ -90,11 +90,11 @@ As part of the Extension Manifest you can attach a class that will be instanciat
```ts
import { UmbEntityActionBase } from '@umbraco-cms/entity-action';
-import { UmbControllerHostInterface } from '@umbraco-cms/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/controller';
import type { MyRepository } from './my-repository';
export class MyEntityAction extends UmbEntityActionBase {
- constructor(host: UmbControllerHostInterface, repositoryAlias: string, unique: string) {
+ constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string) {
super(host, repositoryAlias, unique);
}
@@ -113,7 +113,7 @@ import { UMB_MODAL_SERVICE_CONTEXT_TOKEN } from '@umbraco-cms/modal';
import { MyRepository } from './my-repository';
export class MyEntityAction extends UmbEntityActionBase {
- constructor(host: UmbControllerHostInterface, repositoryAlias: string, unique: string) {
+ constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string) {
super(host, repositoryAlias, unique);
new UmbContextConsumerController(this.host, UMB_MODAL_SERVICE_CONTEXT_TOKEN, (instance) => {
@@ -176,11 +176,11 @@ As part of the Extension Manifest you can attach a class that will be instanciat
```ts
import { UmbEntityBulkActionBase } from '@umbraco-cms/entity-action';
-import { UmbControllerHostInterface } from '@umbraco-cms/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/controller';
import { MyRepository } from './my-repository';
export class MyEntityBulkAction extends UmbEntityBulkActionBase {
- constructor(host: UmbControllerHostInterface, repositoryAlias: string, selection: Array) {
+ constructor(host: UmbControllerHostElement, repositoryAlias: string, selection: Array) {
super(host, repositoryAlias, selection);
}
diff --git a/src/Umbraco.Web.UI.Client/src/stories/extending/tree.mdx b/src/Umbraco.Web.UI.Client/src/stories/extending/tree.mdx
index 98b44058f9..2f750ce0fe 100644
--- a/src/Umbraco.Web.UI.Client/src/stories/extending/tree.mdx
+++ b/src/Umbraco.Web.UI.Client/src/stories/extending/tree.mdx
@@ -94,7 +94,7 @@ export default MyTreeItemElement;
```typescript
// TODO: auto generate this from the interface
export interface UmbTreeItemContext {
- host: UmbControllerHostInterface;
+ host: UmbControllerHostElement;
unique?: string;
type?: string;
@@ -127,7 +127,7 @@ We provide a base class for the tree item context. This class provides some defa
```typescript
export class UmbMyTreeItemContext extends UmbTreeItemContextBase {
- constructor(host: UmbControllerHostInterface) {
+ constructor(host: UmbControllerHostElement) {
super(host, (x: MyTreeItemDataModel) => x.unique);
}
diff --git a/src/Umbraco.Web.UI.Client/src/stories/extending/workspaces/actions.mdx b/src/Umbraco.Web.UI.Client/src/stories/extending/workspaces/actions.mdx
index ffb2564407..d9ff5db436 100644
--- a/src/Umbraco.Web.UI.Client/src/stories/extending/workspaces/actions.mdx
+++ b/src/Umbraco.Web.UI.Client/src/stories/extending/workspaces/actions.mdx
@@ -43,11 +43,11 @@ As part of the Extension Manifest you can attach a class that will be instanciat
```ts
import { UmbEntityBulkActionBase } from '@umbraco-cms/entity-action';
-import { UmbControllerHostInterface } from '@umbraco-cms/controller';
+import { UmbControllerHostElement } from '@umbraco-cms/controller';
import { MyRepository } from './my-repository';
export class MyWorkspaceAction extends UmbWorkspaceActionBase {
- constructor(host: UmbControllerHostInterface) {
+ constructor(host: UmbControllerHostElement) {
super(host);
}
diff --git a/src/Umbraco.Web.UI.Client/src/stories/store.mdx b/src/Umbraco.Web.UI.Client/src/stories/store.mdx
index 3a95ffbc11..667afd9124 100644
--- a/src/Umbraco.Web.UI.Client/src/stories/store.mdx
+++ b/src/Umbraco.Web.UI.Client/src/stories/store.mdx
@@ -15,8 +15,8 @@ class MyProductStore {
public readonly products = this.#products.asObservable();
- protected host: UmbControllerHostInterface;
- constructor(host: UmbControllerHostInterface) {
+ protected host: UmbControllerHostElement;
+ constructor(host: UmbControllerHostElement) {
this.host = host;
// The Store provides it self as a Context-API.
diff --git a/src/Umbraco.Web.UI.Client/src/upgrader/upgrader-view.element.ts b/src/Umbraco.Web.UI.Client/src/upgrader/upgrader-view.element.ts
index af13aa4b59..d66130096b 100644
--- a/src/Umbraco.Web.UI.Client/src/upgrader/upgrader-view.element.ts
+++ b/src/Umbraco.Web.UI.Client/src/upgrader/upgrader-view.element.ts
@@ -8,7 +8,7 @@ import { UpgradeSettingsResponseModel } from '@umbraco-cms/backoffice/backend-ap
* @fires {CustomEvent} onAuthorizeUpgrade - fires when the user clicks the continue button
*/
@customElement('umb-upgrader-view')
-export class UmbUpgraderView extends LitElement {
+export class UmbUpgraderViewElement extends LitElement {
static styles: CSSResultGroup = [
css`
.center {
@@ -100,10 +100,10 @@ export class UmbUpgraderView extends LitElement {
};
}
-export default UmbUpgraderView;
+export default UmbUpgraderViewElement;
declare global {
interface HTMLElementTagNameMap {
- 'umb-upgrader-view': UmbUpgraderView;
+ 'umb-upgrader-view': UmbUpgraderViewElement;
}
}
diff --git a/src/Umbraco.Web.UI.Client/src/upgrader/upgrader-view.test.ts b/src/Umbraco.Web.UI.Client/src/upgrader/upgrader-view.test.ts
index a8fbd46756..6d5f6dec83 100644
--- a/src/Umbraco.Web.UI.Client/src/upgrader/upgrader-view.test.ts
+++ b/src/Umbraco.Web.UI.Client/src/upgrader/upgrader-view.test.ts
@@ -1,17 +1,17 @@
import { expect, fixture, html } from '@open-wc/testing';
-import { UmbUpgraderView } from './upgrader-view.element';
+import { UmbUpgraderViewElement } from './upgrader-view.element';
import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils';
describe('UmbUpgraderView', () => {
- let element: UmbUpgraderView;
+ let element: UmbUpgraderViewElement;
beforeEach(async () => {
element = await fixture(html``);
});
it('is defined with its own instance', () => {
- expect(element).to.be.instanceOf(UmbUpgraderView);
+ expect(element).to.be.instanceOf(UmbUpgraderViewElement);
});
it('passes the a11y audit', async () => {
diff --git a/src/Umbraco.Web.UI.Client/src/upgrader/upgrader.element.ts b/src/Umbraco.Web.UI.Client/src/upgrader/upgrader.element.ts
index 665104ebdd..2ff39b81f7 100644
--- a/src/Umbraco.Web.UI.Client/src/upgrader/upgrader.element.ts
+++ b/src/Umbraco.Web.UI.Client/src/upgrader/upgrader.element.ts
@@ -11,7 +11,7 @@ import { UmbLitElement } from '@umbraco-cms/internal/lit-element';
* @element umb-upgrader
*/
@customElement('umb-upgrader')
-export class UmbUpgrader extends UmbLitElement {
+export class UmbUpgraderElement extends UmbLitElement {
@state()
private upgradeSettings?: UpgradeSettingsResponseModel;
@@ -71,10 +71,10 @@ export class UmbUpgrader extends UmbLitElement {
};
}
-export default UmbUpgrader;
+export default UmbUpgraderElement;
declare global {
interface HTMLElementTagNameMap {
- 'umb-upgrader': UmbUpgrader;
+ 'umb-upgrader': UmbUpgraderElement;
}
}
diff --git a/src/Umbraco.Web.UI.Client/src/upgrader/upgrader.stories.ts b/src/Umbraco.Web.UI.Client/src/upgrader/upgrader.stories.ts
index 77d63cefb8..5363224718 100644
--- a/src/Umbraco.Web.UI.Client/src/upgrader/upgrader.stories.ts
+++ b/src/Umbraco.Web.UI.Client/src/upgrader/upgrader.stories.ts
@@ -3,7 +3,7 @@ import './upgrader-view.element';
import type { Meta, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
-import type { UmbUpgraderView } from './upgrader-view.element';
+import type { UmbUpgraderViewElement } from './upgrader-view.element';
export default {
title: 'Apps/Upgrader/States',
@@ -32,9 +32,9 @@ export default {
${story()}
`,
],
-} satisfies Meta