rename element class and element name

This commit is contained in:
Mads Rasmussen
2023-03-08 20:00:47 +01:00
parent a8f28f8e29
commit 3ee3fdff8d
2 changed files with 7 additions and 7 deletions

View File

@@ -17,10 +17,8 @@ export interface UmbModalPropertyEditorUIPickerData {
interface GroupedPropertyEditorUIs {
[key: string]: Array<ManifestPropertyEditorUI>;
}
// TODO: make use of UmbPickerLayoutBase
@customElement('umb-modal-layout-property-editor-ui-picker')
export class UmbModalLayoutPropertyEditorUIPickerElement extends UmbLitElement {
@customElement('umb-property-editor-ui-picker-modal')
export class UmbPropertyEditorUIPickerModalElement extends UmbLitElement {
static styles = [
UUITextStyles,
css`
@@ -198,8 +196,10 @@ export class UmbModalLayoutPropertyEditorUIPickerElement extends UmbLitElement {
}
}
export default UmbPropertyEditorUIPickerModalElement;
declare global {
interface HTMLElementTagNameMap {
'umb-modal-layout-property-editor-ui-picker': UmbModalLayoutPropertyEditorUIPickerElement;
'umb-property-editor-ui-picker-modal': UmbPropertyEditorUIPickerModalElement;
}
}

View File

@@ -1,7 +1,7 @@
import { Meta, Story } from '@storybook/web-components';
import { html } from 'lit';
import type {
UmbModalLayoutPropertyEditorUIPickerElement,
UmbPropertyEditorUIPickerModalElement,
UmbModalPropertyEditorUIPickerData,
} from './property-editor-ui-picker-modal.element';
import './property-editor-ui-picker-modal.element';
@@ -16,6 +16,6 @@ export default {
const data: UmbModalPropertyEditorUIPickerData = { selection: [] };
export const Overview: Story<UmbModalLayoutPropertyEditorUIPickerElement> = () => html`
export const Overview: Story<UmbPropertyEditorUIPickerModalElement> = () => html`
<umb-modal-layout-property-editor-ui-picker .data=${data as any}></umb-modal-layout-property-editor-ui-picker>
`;