"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StringEditorStories = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const TestData_1 = require("../Testing/TestData");
const CommonStoryTemplates_1 = require("../CommonStoryTemplates");
const DataDefinition_1 = require("@appglue/common/dist/Common/Data/DataDefinition");
const StringDataDefinition_1 = require("@appglue/common/dist/Common/Data/Definitions/StringDataDefinition");
const DataUtilities_1 = require("@appglue/common/dist/Common/DataUtilities");
const StoryData_1 = require("../../StoryBook/StoryData");
let griddef = (0, TestData_1.get5x5StringDataDefinition)();
let def = new DataDefinition_1.DataDefinition();
let fdef = new StringDataDefinition_1.StringDataDefinition("string");
def.fields.push(fdef);
DataUtilities_1.DataUtilities.set(def.getValueObject(), fdef.name, "String");
let typeName = "String";
exports.StringEditorStories = [
    new StoryData_1.StoryNode(() => {
        return (0, jsx_runtime_1.jsx)(CommonStoryTemplates_1.GridTestTemplate, { definition: griddef });
    }, "Data Designer", "Data Editing", typeName, "Grid"),
    new StoryData_1.StoryNode(() => {
        return (0, jsx_runtime_1.jsx)(CommonStoryTemplates_1.DisplayModeTemplate, { definition: def });
    }, "Data Designer", "Data Editing", typeName, "Display Mode"),
    new StoryData_1.StoryNode(() => {
        return (0, jsx_runtime_1.jsx)(CommonStoryTemplates_1.EditModeTemplate, { definition: def });
    }, "Data Designer", "Data Editing", typeName, "Edit Mode"),
    new StoryData_1.StoryNode(() => {
        return (0, jsx_runtime_1.jsx)(CommonStoryTemplates_1.DisplayEditModeTemplate, { definition: def });
    }, "Data Designer", "Data Editing", typeName, "Display Edit Mode"),
    new StoryData_1.StoryNode(() => {
        return (0, jsx_runtime_1.jsx)(CommonStoryTemplates_1.DisplayLayerEditModeTemplate, { definition: def });
    }, "Data Designer", "Data Editing", typeName, "Display Layer Edit Mode"),
];
//# sourceMappingURL=StringDataDefinition-stories.js.map