rename element

This commit is contained in:
Niels Lyngsø
2024-09-30 14:00:25 +02:00
parent 3a04c9c33a
commit 30a645f326
13 changed files with 14 additions and 14 deletions

View File

@@ -4,5 +4,5 @@ export * from './workspace-action/index.js';
export * from './workspace-editor/index.js';
export * from './workspace-entity-action-menu/index.js';
export * from './workspace-footer/index.js';
export * from './workspace-name/index.js';
export * from './workspace-header-name-editable/index.js';
export * from './workspace-split-view/index.js';

View File

@@ -0,0 +1 @@
export * from './workspace-header-name-editable.element.js';

View File

@@ -6,8 +6,8 @@ import type { UUIInputElement } from '@umbraco-cms/backoffice/external/uui';
import { UUIInputEvent } from '@umbraco-cms/backoffice/external/uui';
import { umbBindToValidation } from '@umbraco-cms/backoffice/validation';
@customElement('umb-workspace-editable-name-header')
export class UmbWorkspaceEditableNameHeaderElement extends UmbLitElement {
@customElement('umb-workspace-header-name-editable')
export class UmbWorkspaceHeaderNameEditableElement extends UmbLitElement {
@state()
private _name = '';
@@ -71,6 +71,6 @@ export class UmbWorkspaceEditableNameHeaderElement extends UmbLitElement {
declare global {
interface HTMLElementTagNameMap {
'umb-workspace-editable-name-header': UmbWorkspaceEditableNameHeaderElement;
'umb-workspace-header-name-editable': UmbWorkspaceHeaderNameEditableElement;
}
}

View File

@@ -1 +0,0 @@
export * from './workspace-name.element.js';

View File

@@ -7,7 +7,7 @@ const elementName = 'umb-data-type-folder-workspace-editor';
export class UmbDataTypeFolderWorkspaceEditorElement extends UmbLitElement {
override render() {
return html`<umb-workspace-editor>
<umb-workspace-editable-name-header slot="header"></umb-workspace-editable-name-header>
<umb-workspace-header-name-editable slot="header"></umb-workspace-header-name-editable>
</umb-workspace-editor>`;
}

View File

@@ -9,7 +9,7 @@ export class UmbDataTypeWorkspaceEditorElement extends UmbLitElement {
override render() {
return html`
<umb-workspace-editor alias="Umb.Workspace.DataType">
<umb-workspace-editable-name-header slot="header"></umb-workspace-editable-name-header>
<umb-workspace-header-name-editable slot="header"></umb-workspace-header-name-editable>
</umb-workspace-editor>
`;
}

View File

@@ -6,7 +6,7 @@ export class UmbDictionaryWorkspaceEditorElement extends UmbLitElement {
override render() {
return html`
<umb-workspace-editor back-path="section/dictionary/dashboard">
<umb-workspace-editable-name-header slot="header"></umb-workspace-editable-name-header>
<umb-workspace-header-name-editable slot="header"></umb-workspace-header-name-editable>
</umb-workspace-editor>
`;
}

View File

@@ -7,7 +7,7 @@ const elementName = 'umb-document-blueprint-folder-workspace-editor';
export class UmbDocumentBlueprintFolderWorkspaceEditorElement extends UmbLitElement {
override render() {
return html`<umb-workspace-editor>
<umb-workspace-editable-name-header slot="header"></umb-workspace-editable-name-header>
<umb-workspace-header-name-editable slot="header"></umb-workspace-header-name-editable>
</umb-workspace-editor>`;
}

View File

@@ -7,7 +7,7 @@ const elementName = 'umb-document-type-folder-workspace-editor';
export class UmbDocumentTypeFolderWorkspaceEditorElement extends UmbLitElement {
override render() {
return html`<umb-workspace-editor>
<umb-workspace-editable-name-header slot="header"></umb-workspace-editable-name-header>
<umb-workspace-header-name-editable slot="header"></umb-workspace-header-name-editable>
</umb-workspace-editor>`;
}

View File

@@ -24,7 +24,7 @@ export class UmbLanguageWorkspaceEditorElement extends UmbLitElement {
back-path="section/settings/workspace/language-root">
${this._isNew
? html`<h3 slot="header">Add language</h3>`
: html`<umb-workspace-editable-name-header slot="header"></umb-workspace-editable-name-header>`}
: html`<umb-workspace-header-name-editable slot="header"></umb-workspace-header-name-editable>`}
</umb-workspace-editor>`;
}

View File

@@ -7,7 +7,7 @@ const elementName = 'umb-media-type-folder-workspace-editor';
export class UmbMediaTypeFolderWorkspaceEditorElement extends UmbLitElement {
override render() {
return html`<umb-workspace-editor>
<umb-workspace-editable-name-header slot="header"></umb-workspace-editable-name-header>
<umb-workspace-header-name-editable slot="header"></umb-workspace-header-name-editable>
</umb-workspace-editor>`;
}

View File

@@ -31,7 +31,7 @@ export class UmbMemberGroupWorkspaceEditorElement extends UmbLitElement {
override render() {
return html`
<umb-workspace-editor alias="Umb.Workspace.MemberGroup" back-path=${UMB_MEMBER_GROUP_ROOT_WORKSPACE_PATH}>
<umb-workspace-editable-name-header slot="header"></umb-workspace-editable-name-header>
<umb-workspace-header-name-editable slot="header"></umb-workspace-header-name-editable>
${this.#renderActions()}
<umb-workspace-entity-action-menu slot="action-menu"></umb-workspace-entity-action-menu>
</umb-workspace-editor>

View File

@@ -54,7 +54,7 @@ export class UmbUserWorkspaceEditorElement extends UmbLitElement {
#renderHeader() {
return html`
<umb-workspace-editable-name-header slot="header"></umb-workspace-editable-name-header>
<umb-workspace-header-name-editable slot="header"></umb-workspace-header-name-editable>
<umb-workspace-entity-action-menu slot="action-menu"></umb-workspace-entity-action-menu>
`;
}