"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExpressionStringStories = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const ExpressionConfiguration_1 = require("@appglue/common/dist/Expressions/ExpressionConfiguration");
const ExpressionBuilder_1 = require("../ExpressionBuilder");
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 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");
let expression;
let exp;
exports.ExpressionStringStories = [
    new StoryData_1.StoryNode(() => {
        expression = new StringListCombineExpression_1.StringListCombineExpression();
        expression.value1.valueName = "stringList";
        expression.value2.value = ["1", "2"];
        exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "String", "List Combine"),
    new StoryData_1.StoryNode(() => {
        expression = new StringCombineExpression_1.StringCombineExpression();
        expression.value1.value = "a";
        expression.value2.value = "b";
        exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "String", "Combine"),
    new StoryData_1.StoryNode(() => {
        expression = new StringContainsExpression_1.StringContainsExpression();
        expression.value1.value = "ab";
        expression.value2.value = "b";
        exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "String", "String Contains"),
    new StoryData_1.StoryNode(() => {
        expression = new StringEndWithExpression_1.StringEndWithExpression();
        expression.value1.value = "ab";
        expression.value2.value = "b";
        exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "String", "End With"),
    new StoryData_1.StoryNode(() => {
        expression = new StringIndexOfExpression_1.StringIndexOfExpression();
        expression.value1.value = "ab";
        expression.value2.value = "b";
        exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "String", "Index Of"),
    new StoryData_1.StoryNode(() => {
        expression = new StringIsEmptyExpression_1.StringIsEmptyExpression();
        exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "String", "Is Empty"),
    new StoryData_1.StoryNode(() => {
        expression = new StringIsNotEmptyExpression_1.StringIsNotEmptyExpression();
        exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "String", "Is Not Empty"),
    new StoryData_1.StoryNode(() => {
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "String", "Absolute"),
    new StoryData_1.StoryNode(() => {
        expression = new StringIsValidEmailExpression_1.StringIsValidEmailExpression();
        exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "String", "Is Valid Email"),
    new StoryData_1.StoryNode(() => {
        expression = new StringLengthExpression_1.StringLengthExpression();
        exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "String", "Length"),
    new StoryData_1.StoryNode(() => {
        expression = new StringListAllInExpression_1.StringListAllInExpression();
        expression.value1.value = ["1", "2"];
        expression.value2.value = ["3", "4"];
        exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "String", "List All In"),
    new StoryData_1.StoryNode(() => {
        expression = new StringListContainsExpression_1.StringListContainsExpression();
        expression.value1.value = ["1", "2"];
        expression.value2.value = "1";
        exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "String", "List Contains"),
    new StoryData_1.StoryNode(() => {
        expression = new StringListGetStringByIndexExpression_1.StringListGetStringByIndexExpression();
        expression.value1.value = 2;
        expression.value2.variableName = "stringList";
        exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "String", "String By Index"),
    new StoryData_1.StoryNode(() => {
        expression = new StringListInExpression_1.StringListInExpression();
        expression.value1.value = "aaa";
        expression.value2.variableName = "stringList";
        exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "String", "List In"),
    new StoryData_1.StoryNode(() => {
        expression = new StringListNotAllInExpression_1.StringListNotAllInExpression();
        expression.value1.value = ["aaa", "bbb"];
        expression.value2.variableName = "stringList";
        exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "String", "List Not All In"),
    new StoryData_1.StoryNode(() => {
        expression = new StringListNotContainsExpression_1.StringListNotContainsExpression();
        expression.value1.value = ["aaa", "bbb"];
        expression.value2.variableName = "stringList";
        exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "String", "List Not Contains"),
    new StoryData_1.StoryNode(() => {
        expression = new StringListNotInExpression_1.StringListNotInExpression();
        expression.value1.variableName = "stringList";
        expression.value2.value = ["aaa", "bbb"];
        exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "String", "List Not In"),
    new StoryData_1.StoryNode(() => {
        expression = new StringLowercaseExpression_1.StringLowercaseExpression();
        expression.value1.variableName = "stringVal";
        exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "String", "Lower Case"),
    new StoryData_1.StoryNode(() => {
        expression = new StringNotContainsExpression_1.StringNotContainsExpression();
        expression.value1.variableName = "stringVal";
        exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "String", "Not Contains"),
    new StoryData_1.StoryNode(() => {
        expression = new StringProperExpression_1.StringProperExpression();
        expression.value1.variableName = "stringVal";
        exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "String", "Proper Case"),
    new StoryData_1.StoryNode(() => {
        expression = new StringStartWithExpression_1.StringStartWithExpression();
        expression.value1.variableName = "stringVal";
        exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "String", "Starts With"),
    new StoryData_1.StoryNode(() => {
        expression = new StringTrimExpression_1.StringTrimExpression();
        expression.value1.variableName = "stringVal";
        exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "String", "Trim"),
    new StoryData_1.StoryNode(() => {
        expression = new StringUppercaseExpression_1.StringUppercaseExpression();
        expression.value1.variableName = "stringVal";
        exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "String", "Upper Case"),
];
//# sourceMappingURL=ExpressionString-stories.js.map