"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DateExpressionStories = 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 ExpressionData_1 = require("../Testing/ExpressionData");
const DateGetYearExpression_1 = require("@appglue/common/dist/Expressions/Expressions/Date/DateGetYearExpression");
const DateEqualToExpression_1 = require("@appglue/common/dist/Expressions/Expressions/Date/DateEqualToExpression");
const DateGreaterThanExpression_1 = require("@appglue/common/dist/Expressions/Expressions/Date/DateGreaterThanExpression");
const DateGetHourExpression_1 = require("@appglue/common/dist/Expressions/Expressions/Date/DateGetHourExpression");
const DateGetMonthExpression_1 = require("@appglue/common/dist/Expressions/Expressions/Date/DateGetMonthExpression");
const DateLessThanExpression_1 = require("@appglue/common/dist/Expressions/Expressions/Date/DateLessThanExpression");
const DateGetTodayExpression_1 = require("@appglue/common/dist/Expressions/Expressions/Date/DateGetTodayExpression");
const StoryData_1 = require("../../CommonUI/StoryBook/StoryData");
const DateGetDayExpression_1 = require("@appglue/common/dist/Expressions/Expressions/Date/DateGetDayExpression");
const DateGetMinuteExpression_1 = require("@appglue/common/dist/Expressions/Expressions/Date/DateGetMinuteExpression");
exports.DateExpressionStories = [
    new StoryData_1.StoryNode(() => {
        let expression;
        let exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        expression = new DateEqualToExpression_1.DateEqualToExpression();
        expression.value1.value = "2020-02-02";
        expression.value2.value = "2020-02-02";
        exp.inputData = ExpressionData_1.expressionStoryData;
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Date", "Date Equals"),
    new StoryData_1.StoryNode(() => {
        let expression;
        let exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        expression = new DateGetDayExpression_1.DateGetDayExpression();
        expression.value1.value = "2020-02-02";
        exp.inputData = ExpressionData_1.expressionStoryData;
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Date", "Get Day"),
    new StoryData_1.StoryNode(() => {
        let expression;
        let exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        expression = new DateGetHourExpression_1.DateGetHourExpression();
        expression.value1.value = "2020-02-02";
        exp.inputData = ExpressionData_1.expressionStoryData;
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Date", "Get Hour"),
    new StoryData_1.StoryNode(() => {
        let expression;
        let exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        expression = new DateGetHourExpression_1.DateGetHourExpression();
        expression.value1.value = "2020-02-02";
        exp.inputData = ExpressionData_1.expressionStoryData;
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Date", "Get Hour"),
    new StoryData_1.StoryNode(() => {
        let expression;
        let exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        expression = new DateGetMinuteExpression_1.DateGetMinuteExpression();
        expression.value1.value = "2020-02-02";
        exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        exp.inputData = ExpressionData_1.expressionStoryData;
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Date", "Get Hour"),
    new StoryData_1.StoryNode(() => {
        let expression;
        let exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        expression = new DateGetMonthExpression_1.DateGetMonthExpression();
        expression.value1.value = "2020-02-02";
        exp.inputData = ExpressionData_1.expressionStoryData;
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Date", "Get Month"),
    new StoryData_1.StoryNode(() => {
        let expression;
        let exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        expression = new DateGetTodayExpression_1.DateGetTodayExpression();
        exp.inputData = ExpressionData_1.expressionStoryData;
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Date", "Get Today"),
    new StoryData_1.StoryNode(() => {
        let expression;
        let exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        expression = new DateGetYearExpression_1.DateGetYearExpression();
        expression.value1.value = "2020-02-02";
        exp.inputData = ExpressionData_1.expressionStoryData;
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Date", "Get Year"),
    new StoryData_1.StoryNode(() => {
        let expression;
        let exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        expression = new DateGreaterThanExpression_1.DateGreaterThanExpression();
        expression.value1.value = "2020-02-05";
        expression.value2.value = "2020-02-02";
        exp.inputData = ExpressionData_1.expressionStoryData;
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Date", "Greater Than"),
    new StoryData_1.StoryNode(() => {
        let expression;
        let exp = new ExpressionConfiguration_1.ExpressionConfiguration();
        expression = new DateLessThanExpression_1.DateLessThanExpression();
        expression.value1.value = "2020-02-03";
        expression.value2.value = "2020-02-05";
        exp.inputData = ExpressionData_1.expressionStoryData;
        exp.expression = expression;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Date", "Less Than"),
];
//# sourceMappingURL=ExpressionDate-stories.js.map