"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExpressionViewMathStories = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const ExpressionView_1 = require("../Builder/ExpressionView");
const ExpressionData_1 = require("../Testing/ExpressionData");
const ExpressionConfiguration_1 = require("@appglue/common/dist/Expressions/ExpressionConfiguration");
const MathData_1 = require("../Testing/MathData");
const MaxExpression_1 = require("@appglue/common/dist/Expressions/Expressions/Math/MaxExpression");
const MultiplyExpression_1 = require("@appglue/common/dist/Expressions/Expressions/Math/MultiplyExpression");
const EqualExpression_1 = require("@appglue/common/dist/Expressions/Expressions/Math/EqualExpression");
const ModExpression_1 = require("@appglue/common/dist/Expressions/Expressions/Math/ModExpression");
const RoundExpression_1 = require("@appglue/common/dist/Expressions/Expressions/Math/RoundExpression");
const AverageExpression_1 = require("@appglue/common/dist/Expressions/Expressions/Math/AverageExpression");
const NotEqualExpression_1 = require("@appglue/common/dist/Expressions/Expressions/Math/NotEqualExpression");
const RandomExpression_1 = require("@appglue/common/dist/Expressions/Expressions/Math/RandomExpression");
const MinExpression_1 = require("@appglue/common/dist/Expressions/Expressions/Math/MinExpression");
const AddExpression_1 = require("@appglue/common/dist/Expressions/Expressions/Math/AddExpression");
const SubstractExpression_1 = require("@appglue/common/dist/Expressions/Expressions/Math/SubstractExpression");
const AsCurrencyExpression_1 = require("@appglue/common/dist/Expressions/Expressions/Math/AsCurrencyExpression");
const AbsoluteExpression_1 = require("@appglue/common/dist/Expressions/Expressions/Math/AbsoluteExpression");
const SumExpression_1 = require("@appglue/common/dist/Expressions/Expressions/Math/SumExpression");
const AsPercentageExpression_1 = require("@appglue/common/dist/Expressions/Expressions/Math/AsPercentageExpression");
const StoryData_1 = require("../../CommonUI/StoryBook/StoryData");
exports.ExpressionViewMathStories = [
    new StoryData_1.StoryNode(() => {
        let expression = new AbsoluteExpression_1.AbsoluteExpression();
        expression.value1.value = -1;
        let exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        exp.inputData = ExpressionData_1.expressionStoryData;
        return (0, jsx_runtime_1.jsx)(ExpressionView_1.ExpressionView, { expression: exp });
    }, "Expression Builder", "Expression View", "Math", "Absolute"),
    new StoryData_1.StoryNode(() => {
        let expression = new AddExpression_1.AddExpression();
        expression.value1.value = -1;
        expression.value2.value = 10;
        let exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        exp.inputData = ExpressionData_1.expressionStoryData;
        return (0, jsx_runtime_1.jsx)(ExpressionView_1.ExpressionView, { expression: exp });
    }, "Expression Builder", "Expression View", "Math", "Add"),
    new StoryData_1.StoryNode(() => {
        let expression = new AsCurrencyExpression_1.AsCurrencyExpression();
        expression.value1.value = -1;
        let exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        exp.inputData = ExpressionData_1.expressionStoryData;
        return (0, jsx_runtime_1.jsx)(ExpressionView_1.ExpressionView, { expression: exp });
    }, "Expression Builder", "Expression View", "Math", "As Currency"),
    new StoryData_1.StoryNode(() => {
        let expression = new AsPercentageExpression_1.AsPercentageExpression();
        expression.value1.value = -1;
        let exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        exp.inputData = ExpressionData_1.expressionStoryData;
        return (0, jsx_runtime_1.jsx)(ExpressionView_1.ExpressionView, { expression: exp });
    }, "Expression Builder", "Expression View", "Math", "As Percentage"),
    new StoryData_1.StoryNode(() => {
        let expression = new AverageExpression_1.AverageExpression();
        expression.value1.variableName = "numberList";
        let exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        exp.inputData = ExpressionData_1.expressionStoryData;
        return (0, jsx_runtime_1.jsx)(ExpressionView_1.ExpressionView, { expression: exp });
    }, "Expression Builder", "Expression View", "Math", "Average"),
    new StoryData_1.StoryNode(() => {
        let exp = (0, MathData_1.getDivideSimpleRule)();
        exp.inputData = ExpressionData_1.expressionStoryData;
        return (0, jsx_runtime_1.jsx)(ExpressionView_1.ExpressionView, { expression: exp });
    }, "Expression Builder", "Expression View", "Math", "Divide"),
    new StoryData_1.StoryNode(() => {
        let expression = new EqualExpression_1.EqualExpression();
        expression.value1.variableName = "value1";
        expression.value2.variableName = "value2";
        let exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        exp.inputData = ExpressionData_1.expressionStoryData;
        return (0, jsx_runtime_1.jsx)(ExpressionView_1.ExpressionView, { expression: exp });
    }, "Expression Builder", "Expression View", "Math", "Equal"),
    new StoryData_1.StoryNode(() => {
        let expression = new MaxExpression_1.MaxExpression();
        expression.value1.variableName = "numberList";
        let exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        exp.inputData = ExpressionData_1.expressionStoryData;
        return (0, jsx_runtime_1.jsx)(ExpressionView_1.ExpressionView, { expression: exp });
    }, "Expression Builder", "Expression View", "Math", "Max"),
    new StoryData_1.StoryNode(() => {
        let expression = new MinExpression_1.MinExpression();
        expression.value1.variableName = "numberList";
        let exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        exp.inputData = ExpressionData_1.expressionStoryData;
        return (0, jsx_runtime_1.jsx)(ExpressionView_1.ExpressionView, { expression: exp });
    }, "Expression Builder", "Expression View", "Math", "Min"),
    new StoryData_1.StoryNode(() => {
        let expression = new ModExpression_1.ModExpression();
        expression.value1.variableName = "numberList";
        let exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        exp.inputData = ExpressionData_1.expressionStoryData;
        return (0, jsx_runtime_1.jsx)(ExpressionView_1.ExpressionView, { expression: exp });
    }, "Expression Builder", "Expression View", "Math", "Mod"),
    new StoryData_1.StoryNode(() => {
        let expression = new MultiplyExpression_1.MultiplyExpression();
        expression.value1.variableName = "value1";
        expression.value2.variableName = "value2";
        let exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        exp.inputData = ExpressionData_1.expressionStoryData;
        return (0, jsx_runtime_1.jsx)(ExpressionView_1.ExpressionView, { expression: exp });
    }, "Expression Builder", "Expression View", "Math", "Multipy"),
    new StoryData_1.StoryNode(() => {
        let expression = new NotEqualExpression_1.NotEqualExpression();
        expression.value1.variableName = "value1";
        expression.value2.variableName = "value2";
        let exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        exp.inputData = ExpressionData_1.expressionStoryData;
        return (0, jsx_runtime_1.jsx)(ExpressionView_1.ExpressionView, { expression: exp });
    }, "Expression Builder", "Expression View", "Math", "Not Equal"),
    new StoryData_1.StoryNode(() => {
        let expression = new RandomExpression_1.RandomExpression();
        let exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        exp.inputData = ExpressionData_1.expressionStoryData;
        return (0, jsx_runtime_1.jsx)(ExpressionView_1.ExpressionView, { expression: exp });
    }, "Expression Builder", "Expression View", "Math", "Random"),
    new StoryData_1.StoryNode(() => {
        let expression = new RoundExpression_1.RoundExpression();
        expression.value1.variableName = "value1";
        let exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        exp.inputData = ExpressionData_1.expressionStoryData;
        return (0, jsx_runtime_1.jsx)(ExpressionView_1.ExpressionView, { expression: exp });
    }, "Expression Builder", "Expression View", "Math", "Round"),
    new StoryData_1.StoryNode(() => {
        let expression = new SubstractExpression_1.SubstractExpression();
        expression.value1.variableName = "value1";
        let exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        exp.inputData = ExpressionData_1.expressionStoryData;
        return (0, jsx_runtime_1.jsx)(ExpressionView_1.ExpressionView, { expression: exp });
    }, "Expression Builder", "Expression View", "Math", "Subtract"),
    new StoryData_1.StoryNode(() => {
        let expression = new SumExpression_1.SumExpression();
        expression.value1.variableName = "numberList";
        let exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        exp.inputData = ExpressionData_1.expressionStoryData;
        return (0, jsx_runtime_1.jsx)(ExpressionView_1.ExpressionView, { expression: exp });
    }, "Expression Builder", "Expression View", "Math", "Sum"),
];
//# sourceMappingURL=ExpressionView.Math-stories.js.map