rename element class and element name
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user