import { r as registerInstance, c as createEvent, h, a as getElement } from './index-PqnYwNKt.js';

const listEntryCss = ".list-entry{display:flex;align-items:center;margin-top:8px;align-self:stretch}";

const ListEntry = class {
    constructor(hostRef) {
        registerInstance(this, hostRef);
        this.ifxListEntryChange = createEvent(this, "ifxListEntryChange", 7);
    }
    valueChanged(newValue) {
        if (newValue) {
            this.host.setAttribute('value', 'true');
        }
        else {
            this.host.removeAttribute('value');
        }
    }
    handleFilterEntryChange(event) {
        this.value = event.detail;
        this.ifxListEntryChange.emit({ label: this.label, value: this.value, type: this.type });
    }
    render() {
        return (h("div", { key: 'd3dbfc553becb845810782a586a341e874b36474', class: "wrapper" }, this.type === 'checkbox' ? (h("div", { class: "list-entry" }, h("ifx-checkbox", { size: "s", checked: this.value }, this.label))) : (h("div", { class: "list-entry" }, h("ifx-radio-button", { size: "s", checked: this.value }, this.label)))));
    }
    get host() { return getElement(this); }
    static get watchers() { return {
        "value": ["valueChanged"]
    }; }
};
ListEntry.style = listEntryCss;

export { ListEntry as ifx_list_entry };
//# sourceMappingURL=ifx-list-entry.entry.js.map

//# sourceMappingURL=ifx-list-entry.entry.js.map