"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExpressionViewStringStories = 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 StringIndexOfExpression_1 = require("@appglue/common/dist/Expressions/Expressions/String/StringIndexOfExpression");
const StringListInExpression_1 = require("@appglue/common/dist/Expressions/Expressions/String/StringListInExpression");
const StringListContainsExpression_1 = require("@appglue/common/dist/Expressions/Expressions/String/StringListContainsExpression");
const StringStartWithExpression_1 = require("@appglue/common/dist/Expressions/Expressions/String/StringStartWithExpression");
const StringTrimExpression_1 = require("@appglue/common/dist/Expressions/Expressions/String/StringTrimExpression");
const StringUppercaseExpression_1 = require("@appglue/common/dist/Expressions/Expressions/String/StringUppercaseExpression");
const StringLowercaseExpression_1 = require("@appglue/common/dist/Expressions/Expressions/String/StringLowercaseExpression");
const StringNotContainsExpression_1 = require("@appglue/common/dist/Expressions/Expressions/String/StringNotContainsExpression");
const StringListNotContainsExpression_1 = require("@appglue/common/dist/Expressions/Expressions/String/StringListNotContainsExpression");
const StringListNotAllInExpression_1 = require("@appglue/common/dist/Expressions/Expressions/String/StringListNotAllInExpression");
const StringListAllInExpression_1 = require("@appglue/common/dist/Expressions/Expressions/String/StringListAllInExpression");
const StringProperExpression_1 = require("@appglue/common/dist/Expressions/Expressions/String/StringProperExpression");
const StringLengthExpression_1 = require("@appglue/common/dist/Expressions/Expressions/String/StringLengthExpression");
const StringCombineExpression_1 = require("@appglue/common/dist/Expressions/Expressions/String/StringCombineExpression");
const StringListNotInExpression_1 = require("@appglue/common/dist/Expressions/Expressions/String/StringListNotInExpression");
const StringContainsExpression_1 = require("@appglue/common/dist/Expressions/Expressions/String/StringContainsExpression");
const StringEqualExpression_1 = require("@appglue/common/dist/Expressions/Expressions/String/StringEqualExpression");
const StringEndWithExpression_1 = require("@appglue/common/dist/Expressions/Expressions/String/StringEndWithExpression");
const StringListGetStringByIndexExpression_1 = require("@appglue/common/dist/Expressions/Expressions/String/StringListGetStringByIndexExpression");
const StringIsNotEmptyExpression_1 = require("@appglue/common/dist/Expressions/Expressions/String/StringIsNotEmptyExpression");
const StringListCombineExpression_1 = require("@appglue/common/dist/Expressions/Expressions/String/StringListCombineExpression");
const StringIsEmptyExpression_1 = require("@appglue/common/dist/Expressions/Expressions/String/StringIsEmptyExpression");
const StringIsValidEmailExpression_1 = require("@appglue/common/dist/Expressions/Expressions/String/StringIsValidEmailExpression");
const StoryData_1 = require("../../CommonUI/StoryBook/StoryData");
exports.ExpressionViewStringStories = [
    new StoryData_1.StoryNode(() => {
        let expression = new StringListCombineExpression_1.StringListCombineExpression();
        expression.value1.variableName = "stringList";
        expression.value2.value = ["1", "2"];
        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", "String", "List Combine"),
    new StoryData_1.StoryNode(() => {
        let expression = new StringCombineExpression_1.StringCombineExpression();
        expression.value1.value = "a";
        expression.value2.value = "b";
        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", "String", "Combine"),
    new StoryData_1.StoryNode(() => {
        let expression = new StringContainsExpression_1.StringContainsExpression();
        expression.value1.value = "ab";
        expression.value2.value = "b";
        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", "String", "Contains"),
    new StoryData_1.StoryNode(() => {
        let expression = new StringEqualExpression_1.StringEqualExpression();
        expression.value1.value = "abcd";
        expression.value2.value = "abcd";
        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", "String", "Equals"),
    new StoryData_1.StoryNode(() => {
        let expression = new StringEndWithExpression_1.StringEndWithExpression();
        expression.value1.value = "ab";
        expression.value2.value = "b";
        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", "String", "Ends With"),
    new StoryData_1.StoryNode(() => {
        let expression = new StringIndexOfExpression_1.StringIndexOfExpression();
        expression.value1.value = "ab";
        expression.value2.value = "b";
        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", "String", "Index Of"),
    new StoryData_1.StoryNode(() => {
        let expression = new StringIsEmptyExpression_1.StringIsEmptyExpression();
        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", "String", "Is Empty"),
    new StoryData_1.StoryNode(() => {
        let expression = new StringIsNotEmptyExpression_1.StringIsNotEmptyExpression();
        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", "String", "Is Not Empty"),
    new StoryData_1.StoryNode(() => {
        let expression = new StringIsValidEmailExpression_1.StringIsValidEmailExpression();
        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", "String", "Is Valid Email"),
    new StoryData_1.StoryNode(() => {
        let expression = new StringLengthExpression_1.StringLengthExpression();
        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", "String", "Length"),
    new StoryData_1.StoryNode(() => {
        let expression = new StringListAllInExpression_1.StringListAllInExpression();
        expression.value1.value = ["1", "2"];
        expression.value2.value = ["3", "4"];
        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", "String", "List All In"),
    new StoryData_1.StoryNode(() => {
        let expression = new StringListContainsExpression_1.StringListContainsExpression();
        expression.value1.value = ["1", "2"];
        expression.value2.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", "String", "List Contains"),
    new StoryData_1.StoryNode(() => {
        let expression = new StringListGetStringByIndexExpression_1.StringListGetStringByIndexExpression();
        expression.value1.value = 2;
        expression.value2.variableName = "stringList";
        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", "String", "Get String By Index"),
    new StoryData_1.StoryNode(() => {
        let expression = new StringListInExpression_1.StringListInExpression();
        expression.value1.value = "aaa";
        expression.value2.variableName = "stringList";
        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", "String", "List In"),
    new StoryData_1.StoryNode(() => {
        let expression = new StringListNotAllInExpression_1.StringListNotAllInExpression();
        expression.value1.value = ["aaa", "bbb"];
        expression.value2.variableName = "stringList";
        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", "String", "List Not All In"),
    new StoryData_1.StoryNode(() => {
        let expression = new StringListNotContainsExpression_1.StringListNotContainsExpression();
        expression.value1.value = ["aaa", "bbb"];
        expression.value2.variableName = "stringList";
        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", "String", "List Not Contains"),
    new StoryData_1.StoryNode(() => {
        let expression = new StringListNotInExpression_1.StringListNotInExpression();
        expression.value1.variableName = "stringList";
        expression.value2.value = ["aaa", "bbb"];
        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", "String", "List Not In"),
    new StoryData_1.StoryNode(() => {
        let expression = new StringLowercaseExpression_1.StringLowercaseExpression();
        expression.value1.variableName = "stringVal";
        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", "String", "Lower Case"),
    new StoryData_1.StoryNode(() => {
        let expression = new StringNotContainsExpression_1.StringNotContainsExpression();
        expression.value1.variableName = "stringVal";
        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", "String", "Not Contains"),
    new StoryData_1.StoryNode(() => {
        let expression = new StringProperExpression_1.StringProperExpression();
        expression.value1.variableName = "stringVal";
        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", "String", "Proper Case"),
    new StoryData_1.StoryNode(() => {
        let expression = new StringStartWithExpression_1.StringStartWithExpression();
        expression.value1.variableName = "stringVal";
        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", "String", "StartsWith"),
    new StoryData_1.StoryNode(() => {
        let expression = new StringTrimExpression_1.StringTrimExpression();
        expression.value1.variableName = "stringVal";
        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", "String", "Trim"),
    new StoryData_1.StoryNode(() => {
        let expression = new StringUppercaseExpression_1.StringUppercaseExpression();
        expression.value1.variableName = "stringVal";
        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", "String", "Upper Case"),
];
//# sourceMappingURL=ExpressionView.String-stories.js.map