var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { css, customElement, html, ifDefined, nothing, property } from '../../../../../external/lit/index.js';
import { UmbLitElement } from '../../../lit-element/index.js';
let UmbPropertyEditorDataSourceItemRefElement = class UmbPropertyEditorDataSourceItemRefElement extends UmbLitElement {
    constructor() {
        super(...arguments);
        this.readonly = false;
        this.standalone = false;
    }
    #item;
    get item() {
        return this.#item;
    }
    set item(value) {
        this.#item = value;
    }
    render() {
        if (!this.item)
            return nothing;
        return html `
			<uui-ref-node
				name=${this.item.name}
				detail=${ifDefined(this.item.description)}
				?readonly=${this.readonly}
				?standalone=${this.standalone}>
				<slot name="actions" slot="actions"></slot>
				<umb-icon slot="icon" name=${this.item.icon ?? 'icon-database'}></umb-icon>
			</uui-ref-node>
		`;
    }
    static { this.styles = [
        css `
			umb-user-avatar {
				font-size: var(--uui-size-4);
			}
		`,
    ]; }
};
__decorate([
    property({ type: Object })
], UmbPropertyEditorDataSourceItemRefElement.prototype, "item", null);
__decorate([
    property({ type: Boolean })
], UmbPropertyEditorDataSourceItemRefElement.prototype, "readonly", void 0);
__decorate([
    property({ type: Boolean })
], UmbPropertyEditorDataSourceItemRefElement.prototype, "standalone", void 0);
UmbPropertyEditorDataSourceItemRefElement = __decorate([
    customElement('umb-property-editor-data-source-item-ref')
], UmbPropertyEditorDataSourceItemRefElement);
export { UmbPropertyEditorDataSourceItemRefElement };
export { UmbPropertyEditorDataSourceItemRefElement as element };
