import { __decorate, __metadata } from "tslib";
import { DynamicOutput, PureRelationsComponent } from '@anglr/dynamic/relations';
import { RelationsEditorMetadata } from '@anglr/dynamic/relations-editor';
import { nameof } from '@jscrpt/common';
import { NegationRelationsMetadataLoader } from './negation.metadata';
/**
 * Negation relations component
 */
let NegationRelations = class NegationRelations {
    //######################### public methods - implementation of RelationsComponent #########################
    /**
     * @inheritdoc
     */
    ngOnChanges(changes) {
        if (nameof('condition') in changes) {
            this.negatedCondition = !this.condition;
        }
    }
    /**
     * @inheritdoc
     */
    invalidateVisuals() {
    }
};
__decorate([
    DynamicOutput(),
    __metadata("design:type", Object)
], NegationRelations.prototype, "negatedCondition", void 0);
NegationRelations = __decorate([
    PureRelationsComponent(),
    RelationsEditorMetadata(NegationRelationsMetadataLoader)
], NegationRelations);
export { NegationRelations };
//# sourceMappingURL=negation.relations.js.map