move number into ui folder

This commit is contained in:
Mads Rasmussen
2022-09-30 15:11:01 +02:00
parent ce14e78df2
commit a2a3336ffa
4 changed files with 20 additions and 20 deletions

View File

@@ -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;
}
}

View File

@@ -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<UmbPropertyEditorUINumberElement> = () =>
html` <umb-property-editor-ui-number></umb-property-editor-ui-number>`;
AAAOverview.storyName = 'Overview';

View File

@@ -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<UmbPropertyEditorNumberElement> = () =>
html` <umb-property-editor-number></umb-property-editor-number>`;
AAAOverview.storyName = 'Overview';

View File

@@ -103,7 +103,7 @@ export const manifests: Array<ManifestTypes & { loader: () => Promise<object | H
type: 'propertyEditorUI',
alias: 'Umb.PropertyEditorUI.Number',
name: 'Number Property Editor UI',
loader: () => 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',