import { __decorate } from "tslib";
import { LitElement } from "lit";
import { property } from "lit/decorators.js";
/**
 * A base element for all elements in the UI library.
 * This allows to introduce global logic or properties for all elements.
 */
export default class ApiElement extends LitElement {
    constructor() {
        super();
        this.eventsTarget = window;
    }
    /**
     * A common way for an element to notify a change.
     */
    notifyChange() {
        this.dispatchEvent(new Event('change'));
    }
}
__decorate([
    property({ type: Object })
], ApiElement.prototype, "eventsTarget", void 0);
//# sourceMappingURL=ApiElement.js.map