import { __decorate, __metadata } from "tslib";
import { DynamicOutput, PureRelationsComponent } from '@anglr/dynamic/relations';
import { RelationsEditorMetadata } from '@anglr/dynamic/relations-editor';
import { RichTextSourceRelationsMetadataLoader } from './richTextSource.metadata';
/**
 * Rich text source relations component
 */
let RichTextSourceRelations = class RichTextSourceRelations {
    //######################### public properties - implementation of RelationsComponent #########################
    /**
     * @inheritdoc
     */
    get relationsOptions() {
        return this.ɵRelationsOptions;
    }
    set relationsOptions(value) {
        var _a;
        this.ɵRelationsOptions = value;
        if ((_a = this.ɵRelationsOptions) === null || _a === void 0 ? void 0 : _a.content) {
            this.htmlString = this.ɵRelationsOptions.content;
        }
    }
    //######################### public methods - implementation of RelationsComponent #########################
    /**
     * @inheritdoc
     */
    ngOnChanges(_changes) {
    }
    /**
     * @inheritdoc
     */
    invalidateVisuals() {
    }
};
__decorate([
    DynamicOutput(),
    __metadata("design:type", Object)
], RichTextSourceRelations.prototype, "htmlString", void 0);
RichTextSourceRelations = __decorate([
    PureRelationsComponent(),
    RelationsEditorMetadata(RichTextSourceRelationsMetadataLoader)
], RichTextSourceRelations);
export { RichTextSourceRelations };
//# sourceMappingURL=richTextSource.relations.js.map