diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/label/property-editor-ui-label.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/label/property-editor-ui-label.element.ts index fcb662aaa5..0b75bb45d8 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/label/property-editor-ui-label.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/label/property-editor-ui-label.element.ts @@ -1,8 +1,11 @@ -import { html } from 'lit'; -import { customElement, property } from 'lit/decorators.js'; +import { html, nothing } from 'lit'; +import { customElement, property, state } from 'lit/decorators.js'; import { UUITextStyles } from '@umbraco-ui/uui-css/lib'; import { UmbPropertyEditorExtensionElement } from '@umbraco-cms/backoffice/extensions-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; +import type { DataTypePropertyPresentationModel } from '@umbraco-cms/backoffice/backend-api'; + +type umbracoDataValueType = 'STRING' | 'DECIMAL' | 'DATE/TIME' | 'TIME' | 'INTEGER' | 'BIG INTEGER' | 'LONG STRING'; /** * @element umb-property-editor-ui-label @@ -14,11 +17,20 @@ export class UmbPropertyEditorUILabelElement extends UmbLitElement implements Um @property() value = ''; + @property() + description = ''; + + @state() + private _dvt?: umbracoDataValueType; + @property({ type: Array, attribute: false }) - public config = []; + public set config(config: Array) { + const dvt = config.find((x) => x.alias === 'umbracoDataValueType'); + if (dvt) this._dvt = dvt.value as umbracoDataValueType; + } render() { - return html`
umb-property-editor-ui-label
`; + return nothing; } static styles = [UUITextStyles];