From bb22b13d83a05a2dd81b32d961a545263af4fab7 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Mon, 26 Sep 2022 15:33:51 +0200 Subject: [PATCH] remove unused ref element --- .../src/backoffice/backoffice.element.ts | 1 - .../ref-property-editor.element.ts | 32 ------------------- .../ref-property-editor.stories.ts | 18 ----------- 3 files changed, 51 deletions(-) delete mode 100644 src/Umbraco.Web.UI.Client/src/backoffice/components/ref-property-editor/ref-property-editor.element.ts delete mode 100644 src/Umbraco.Web.UI.Client/src/backoffice/components/ref-property-editor/ref-property-editor.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/backoffice.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/backoffice.element.ts index 8373e49ccf..aab13ad127 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/backoffice.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/backoffice.element.ts @@ -1,5 +1,4 @@ //TODO: we need to figure out what components should be available for extensions and load them upfront -import './components/ref-property-editor/ref-property-editor.element'; import './components/ref-property-editor-ui/ref-property-editor-ui.element'; import './components/backoffice-header.element'; import './components/backoffice-main.element'; diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/components/ref-property-editor/ref-property-editor.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/components/ref-property-editor/ref-property-editor.element.ts deleted file mode 100644 index c590f351ed..0000000000 --- a/src/Umbraco.Web.UI.Client/src/backoffice/components/ref-property-editor/ref-property-editor.element.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { UUIRefNodeElement } from '@umbraco-ui/uui'; -import { html } from 'lit'; -import { customElement, property } from 'lit/decorators.js'; - -@customElement('umb-ref-property-editor') -export class UmbRefPropertyEditorElement extends UUIRefNodeElement { - static styles = [...UUIRefNodeElement.styles]; - - protected fallbackIcon = - ''; - - @property({ type: String }) - alias = ''; - - protected renderDetail() { - const details: string[] = []; - - if (this.alias !== '') { - details.push(this.alias); - } - if (this.detail !== '') { - details.push(this.detail); - } - return html`${details.join(' | ')}`; - } -} - -declare global { - interface HTMLElementTagNameMap { - 'umb-ref-property-editor': UmbRefPropertyEditorElement; - } -} diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/components/ref-property-editor/ref-property-editor.stories.ts b/src/Umbraco.Web.UI.Client/src/backoffice/components/ref-property-editor/ref-property-editor.stories.ts deleted file mode 100644 index 7d107d3233..0000000000 --- a/src/Umbraco.Web.UI.Client/src/backoffice/components/ref-property-editor/ref-property-editor.stories.ts +++ /dev/null @@ -1,18 +0,0 @@ -import './ref-property-editor.element'; - -import { Meta, Story } from '@storybook/web-components'; -import { html } from 'lit-html'; - -import type { UmbRefPropertyEditorElement } from './ref-property-editor.element'; - -export default { - title: 'Components/Ref Property Editor', - component: 'umb-ref-property-editor', - id: 'umb-ref-property-editor', -} as Meta; - -export const AAAOverview: Story = () => - html` `; -AAAOverview.storyName = 'Overview';