"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ObjectListEditorStories = 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 DataUtilities_1 = require("@appglue/common/dist/Common/DataUtilities");
const ObjectDataDefinition_1 = require("@appglue/common/dist/Common/Data/Definitions/ObjectDataDefinition");
const StringDataDefinition_1 = require("@appglue/common/dist/Common/Data/Definitions/StringDataDefinition");
const StoryData_1 = require("../../StoryBook/StoryData");
let griddef = (0, TestData_1.get5x5ObjectDefinition)(true);
let def = new DataDefinition_1.DataDefinition();
let odef = new ObjectDataDefinition_1.ObjectDataDefinition("object");
odef.list = true;
let fdef = new StringDataDefinition_1.StringDataDefinition("firstName");
let ldef = new StringDataDefinition_1.StringDataDefinition("lastName");
odef.fields.push(fdef);
odef.fields.push(ldef);
def.fields.push(odef);
DataUtilities_1.DataUtilities.set(def.getValueObject(), odef.name, [{ firstName: "firstName", lastName: "lastName" }]);
let typeName = "Object List";
exports.ObjectListEditorStories = [
    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=ObjectListDataDefinition-stories.js.map