move number into ui folder
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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';
|
||||
@@ -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';
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user