From a2a3336ffa361b6eff267057210f70e225677fa7 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Fri, 30 Sep 2022 15:11:01 +0200 Subject: [PATCH] move number into ui folder --- .../number/property-editor-ui-number.element.ts} | 8 ++++---- .../number/property-editor-ui-number.stories.ts | 15 +++++++++++++++ .../number/property-editor-number.stories.ts | 15 --------------- .../temp-internal-manifests/property-editor-ui.ts | 2 +- 4 files changed, 20 insertions(+), 20 deletions(-) rename src/Umbraco.Web.UI.Client/src/backoffice/{property-editors/number/property-editor-number.element.ts => property-editor-uis/number/property-editor-ui-number.element.ts} (75%) create mode 100644 src/Umbraco.Web.UI.Client/src/backoffice/property-editor-uis/number/property-editor-ui-number.stories.ts delete mode 100644 src/Umbraco.Web.UI.Client/src/backoffice/property-editors/number/property-editor-number.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/property-editors/number/property-editor-number.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/property-editor-uis/number/property-editor-ui-number.element.ts similarity index 75% rename from src/Umbraco.Web.UI.Client/src/backoffice/property-editors/number/property-editor-number.element.ts rename to src/Umbraco.Web.UI.Client/src/backoffice/property-editor-uis/number/property-editor-ui-number.element.ts index a979e6ef9f..8461d2c513 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/property-editors/number/property-editor-number.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/property-editor-uis/number/property-editor-ui-number.element.ts @@ -2,8 +2,8 @@ import { css, html, LitElement } from 'lit'; import { UUITextStyles } from '@umbraco-ui/uui-css/lib'; import { customElement, property } from 'lit/decorators.js'; -@customElement('umb-property-editor-number') -export class UmbPropertyEditorNumberElement extends LitElement { +@customElement('umb-property-editor-ui-number') +export class UmbPropertyEditorUINumberElement extends LitElement { static styles = [ UUITextStyles, css` @@ -29,10 +29,10 @@ export class UmbPropertyEditorNumberElement extends LitElement { } } -export default UmbPropertyEditorNumberElement; +export default UmbPropertyEditorUINumberElement; declare global { interface HTMLElementTagNameMap { - 'umb-property-editor-number': UmbPropertyEditorNumberElement; + 'umb-property-editor-ui-number': UmbPropertyEditorUINumberElement; } } diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/property-editor-uis/number/property-editor-ui-number.stories.ts b/src/Umbraco.Web.UI.Client/src/backoffice/property-editor-uis/number/property-editor-ui-number.stories.ts new file mode 100644 index 0000000000..be74c018be --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/backoffice/property-editor-uis/number/property-editor-ui-number.stories.ts @@ -0,0 +1,15 @@ +import { Meta, Story } from '@storybook/web-components'; +import { html } from 'lit-html'; + +import type { UmbPropertyEditorUINumberElement } from './property-editor-ui-number.element'; +import './property-editor-ui-number.element'; + +export default { + title: 'Property Editor UIs/Number', + component: 'umb-property-editor-ui-number', + id: 'umb-property-editor-ui-number', +} as Meta; + +export const AAAOverview: Story = () => + html` `; +AAAOverview.storyName = 'Overview'; diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/property-editors/number/property-editor-number.stories.ts b/src/Umbraco.Web.UI.Client/src/backoffice/property-editors/number/property-editor-number.stories.ts deleted file mode 100644 index d9d2915599..0000000000 --- a/src/Umbraco.Web.UI.Client/src/backoffice/property-editors/number/property-editor-number.stories.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Meta, Story } from '@storybook/web-components'; -import { html } from 'lit-html'; - -import type { UmbPropertyEditorNumberElement } from './property-editor-number.element'; -import './property-editor-number.element'; - -export default { - title: 'Property Editors/Number', - component: 'umb-property-editor-number', - id: 'umb-property-editor-number', -} as Meta; - -export const AAAOverview: Story = () => - html` `; -AAAOverview.storyName = 'Overview'; diff --git a/src/Umbraco.Web.UI.Client/src/temp-internal-manifests/property-editor-ui.ts b/src/Umbraco.Web.UI.Client/src/temp-internal-manifests/property-editor-ui.ts index 866692f150..cc9fbd176c 100644 --- a/src/Umbraco.Web.UI.Client/src/temp-internal-manifests/property-editor-ui.ts +++ b/src/Umbraco.Web.UI.Client/src/temp-internal-manifests/property-editor-ui.ts @@ -103,7 +103,7 @@ export const manifests: Array Promise import('../backoffice/property-editors/number/property-editor-number.element'), + loader: () => import('../backoffice/property-editor-uis/number/property-editor-ui-number.element'), meta: { label: 'Number', icon: 'umb:autofill',