"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StatementRuleStories = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const StatementRuleBuilder_1 = require("../StatementRuleBuilder");
const NumberDataDefinition_1 = require("@appglue/common/dist/Common/Data/Definitions/NumberDataDefinition");
const DataTestData_1 = require("@appglue/common/dist/Common/Data/DataTestData");
const StoryData_1 = require("../../../CommonUI/StoryBook/StoryData");
const StatementRuleConfiguration_1 = require("@appglue/common/dist/Rule/Statement/StatementRuleConfiguration");
exports.StatementRuleStories = [
    new StoryData_1.StoryNode(() => {
        let ruleDefinition = new StatementRuleConfiguration_1.StatementRuleConfiguration();
        ruleDefinition.inputData = (0, DataTestData_1.getEmptyDataDefinition)();
        return (0, jsx_runtime_1.jsx)(StatementRuleBuilder_1.StatementRuleBuilder, { ruleDefinition: ruleDefinition });
    }, "Rule", "Statement Rule", "No Input Data"),
    new StoryData_1.StoryNode(() => {
        let ruleDefinition = new StatementRuleConfiguration_1.StatementRuleConfiguration();
        ruleDefinition.inputData = (0, DataTestData_1.getFilledDataDefinition)();
        return (0, jsx_runtime_1.jsx)(StatementRuleBuilder_1.StatementRuleBuilder, { ruleDefinition: ruleDefinition });
    }, "Rule", "Statement Rule", "With Input Data"),
    new StoryData_1.StoryNode(() => {
        let ruleDefinition = new StatementRuleConfiguration_1.StatementRuleConfiguration();
        ruleDefinition.inputData = () => (0, DataTestData_1.getFilledDataDefinition)();
        return (0, jsx_runtime_1.jsx)(StatementRuleBuilder_1.StatementRuleBuilder, { ruleDefinition: ruleDefinition });
    }, "Rule", "Statement Rule", "Read Only Input Data"),
    new StoryData_1.StoryNode(() => {
        let ruleDefinition = new StatementRuleConfiguration_1.StatementRuleConfiguration();
        ruleDefinition.executionResult = () => {
            return new NumberDataDefinition_1.NumberDataDefinition("result");
        };
        return (0, jsx_runtime_1.jsx)(StatementRuleBuilder_1.StatementRuleBuilder, { ruleDefinition: ruleDefinition });
    }, "Rule", "Statement Rule", "Read Only Output Data"),
];
//# sourceMappingURL=StatementRuleEditor-stories.js.map