"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TimelineStories = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const FormRuntime_1 = require("../../FormRuntime");
const TimelineFormControl_1 = require("../Web/TimelineFormControl");
const Containers_1 = require("../../Containers");
const FormConfiguration_1 = require("../../FormConfiguration");
const ExecutionData_1 = require("@appglue/common/dist/Common/Data/ExecutionData/ExecutionData");
const StoryData_1 = require("../../../CommonUI/StoryBook/StoryData");
function getUI() {
    let ui = new FormConfiguration_1.FormConfiguration();
    let container = new Containers_1.XStackContainer();
    ui.add(container);
    let timeline = new TimelineFormControl_1.TimelineFormControl();
    timeline.label = " Timeline With String";
    timeline.valueName = "timeline";
    timeline.timelineValues = ["Pizza", "Beer", "Fruits", "Kale"];
    container.add(timeline);
    return { form: ui, control: timeline };
}
exports.TimelineStories = [
    new StoryData_1.StoryNode(() => {
        let ui = getUI();
        let data = new ExecutionData_1.ExecutionData();
        data.values["timeline"] = "Fruits";
        return (0, jsx_runtime_1.jsx)(FormRuntime_1.FormRuntime, { form: ui.form, formData: data });
    }, "Form Designer", "Controls", "Time Line", "Default"),
    new StoryData_1.StoryNode(() => {
        let ui = getUI();
        let data = new ExecutionData_1.ExecutionData();
        data.values["timeline"] = "Fruits";
        ui.control.labelSize = 15;
        return (0, jsx_runtime_1.jsx)(FormRuntime_1.FormRuntime, { form: ui.form, formData: data });
    }, "Form Designer", "Controls", "Time Line", "Label Size"),
    new StoryData_1.StoryNode(() => {
        let ui = getUI();
        let data = new ExecutionData_1.ExecutionData();
        data.values["timelineValues"] = ["Beginner", "Junior", "Senior", "Master"];
        data.values["timeline"] = "Senior";
        ui.control.isVertical = true;
        ui.control.isDynamic = true;
        ui.control.stepsValueName = "timelineValues";
        return (0, jsx_runtime_1.jsx)(FormRuntime_1.FormRuntime, { form: ui.form, formData: data });
    }, "Form Designer", "Controls", "Time Line", "Steps From Data"),
];
//# sourceMappingURL=XTimeline-stories.js.map