"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RuleTableStories = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const RuleTableBuilder_1 = require("../RuleTableBuilder");
const TestDataSetup_1 = require("../Testing/TestDataSetup");
const DataDefinition_1 = require("@appglue/common/dist/Common/Data/DataDefinition");
const DataTestData_1 = require("@appglue/common/dist/Common/Data/DataTestData");
const StoryData_1 = require("../../../../CommonUI/StoryBook/StoryData");
exports.RuleTableStories = [
    new StoryData_1.StoryNode(() => {
        let ruleDefinition = (0, TestDataSetup_1.getEmptyRuleTable)();
        let outdef = new DataDefinition_1.DataDefinition();
        ruleDefinition.executionResult = outdef;
        let indef = new DataDefinition_1.DataDefinition();
        ruleDefinition.inputData = indef;
        return (0, jsx_runtime_1.jsx)(RuleTableBuilder_1.RuleTableBuilder, { ruleDefinition: ruleDefinition });
    }, "Rule", "Rule Table", "Empty"),
    new StoryData_1.StoryNode(() => {
        let ruleDefinition = (0, TestDataSetup_1.getRuleTableWithMultipleEmptyRows)();
        let outdef = new DataDefinition_1.DataDefinition();
        ruleDefinition.executionResult = outdef;
        let indef = new DataDefinition_1.DataDefinition();
        ruleDefinition.inputData = indef;
        return (0, jsx_runtime_1.jsx)(RuleTableBuilder_1.RuleTableBuilder, { ruleDefinition: ruleDefinition });
    }, "Rule", "Rule Table", "Multiple Empty Rows"),
    new StoryData_1.StoryNode(() => {
        let ruleDefinition = (0, TestDataSetup_1.getRuleTableWithData)();
        let outdef = new DataDefinition_1.DataDefinition();
        ruleDefinition.executionResult = outdef;
        return (0, jsx_runtime_1.jsx)(RuleTableBuilder_1.RuleTableBuilder, { ruleDefinition: ruleDefinition });
    }, "Rule", "Rule Table", "With Data"),
    new StoryData_1.StoryNode(() => {
        let dataDef = (0, DataTestData_1.getFilledDataDefinition)();
        let ruleDefinition = (0, TestDataSetup_1.getRuleTableWithData)();
        ruleDefinition.executionResult = () => {
            return dataDef;
        };
        ruleDefinition.inputData = new DataDefinition_1.DataDefinition();
        return (0, jsx_runtime_1.jsx)(RuleTableBuilder_1.RuleTableBuilder, { ruleDefinition: ruleDefinition });
    }, "Rule", "Rule Table", "Read Only Output"),
    new StoryData_1.StoryNode(() => {
        let ruleDefinition = (0, TestDataSetup_1.getRuleTableWithData)();
        let dataDef = (0, DataTestData_1.getFilledDataDefinition)();
        ruleDefinition.inputData = () => {
            return dataDef;
        };
        ruleDefinition.executionResult = new DataDefinition_1.DataDefinition();
        return (0, jsx_runtime_1.jsx)(RuleTableBuilder_1.RuleTableBuilder, { ruleDefinition: ruleDefinition });
    }, "Rule", "Rule Table", "Read Only Input"),
];
//# sourceMappingURL=RuleTableEditor-stories.js.map