import { jsx as _jsx } from "react/jsx-runtime";
import { BaseTestResultData } from "../../../Common/Testing/TestResultData";
import { TestResultDataType } from "../../../Common/Testing/TestResultDataType";
import { ValueTableRuleDesigner } from "./Components/ValueTableRuleDesigner";
import { ValueTableRuleEditContext } from "./ValueTableRuleEditContext";
export class ValueTableTestResult extends BaseTestResultData {
    constructor() {
        super(...arguments);
        this.type = TestResultDataType.VALUE_TABLE_RULE;
    }
    set definition(definition) {
        this._definition = definition;
        if (this._definition) {
            this.editContext = new ValueTableRuleEditContext(this._definition);
        }
    }
    get definition() {
        return this._definition;
    }
    render() {
        return this.definition && this.editContext ? (_jsx(ValueTableRuleDesigner, { ruleDefinition: this.definition, editContext: this.editContext }, void 0)) : undefined;
    }
}
export class ValueTableRowTestResult extends BaseTestResultData {
    constructor() {
        super(...arguments);
        this.type = TestResultDataType.VALUE_TABLE_RULE_ROW;
    }
}
export class ValueTableRuleColumnTestResult extends BaseTestResultData {
    constructor() {
        super(...arguments);
        this.type = TestResultDataType.VALUE_TABLE_RULE_RULE_COLUMN;
    }
}
//# sourceMappingURL=ValueTableTestResult.js.map