"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TreeRuleStories = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const TestDataSetup_1 = require("../Testing/TestDataSetup");
const DataTestData_1 = require("@appglue/common/dist/Common/Data/DataTestData");
const NumberDataDefinition_1 = require("@appglue/common/dist/Common/Data/Definitions/NumberDataDefinition");
const StoryData_1 = require("../../../CommonUI/StoryBook/StoryData");
const TreeRuleBuilder_1 = require("../TreeRuleBuilder");
exports.TreeRuleStories = [
    new StoryData_1.StoryNode(() => {
        let ruleDefinition = (0, TestDataSetup_1.getEmptyRuleDefinition)();
        ruleDefinition.inputData = (0, DataTestData_1.getEmptyDataDefinition)();
        return (0, jsx_runtime_1.jsx)(TreeRuleBuilder_1.TreeRuleBuilder, { ruleDefinition: ruleDefinition });
    }, "Rule", "Tree Rule", "Empty Input Data"),
    new StoryData_1.StoryNode(() => {
        let ruleDefinition = (0, TestDataSetup_1.getEmptyRuleDefinition)();
        ruleDefinition.inputData = () => {
            return (0, DataTestData_1.getFilledDataDefinition)();
        };
        return (0, jsx_runtime_1.jsx)(TreeRuleBuilder_1.TreeRuleBuilder, { ruleDefinition: ruleDefinition });
    }, "Rule", "Tree Rule", "Read Only Input Data"),
    new StoryData_1.StoryNode(() => {
        let ruleDefinition = (0, TestDataSetup_1.getEmptyRuleDefinition)();
        ruleDefinition.inputData = () => {
            return (0, DataTestData_1.getFilledDataDefinition)();
        };
        ruleDefinition.executionResult = () => {
            return new NumberDataDefinition_1.NumberDataDefinition("result");
        };
        return (0, jsx_runtime_1.jsx)(TreeRuleBuilder_1.TreeRuleBuilder, { ruleDefinition: ruleDefinition });
    }, "Rule", "Tree Rule", "Read Only Output Data"),
];
//# sourceMappingURL=TreeRuleEditor-stories.js.map