"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PropertyEditorVariableSelectionStories = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const StoryData_1 = require("../StoryBook/StoryData");
const PropertyEditorVariableSelection_1 = require("./PropertyEditorVariableSelection");
const DataTestData_1 = require("@appglue/common/dist/Common/Data/DataTestData");
const StringDataDefinition_1 = require("@appglue/common/dist/Common/Data/Definitions/StringDataDefinition");
const StateManager_1 = require("@appglue/common/dist/Common/StateManager");
const ObserveState_1 = require("../StateManagement/ObserveState");
const datadef = (0, DataTestData_1.getFilledDataDefinition)();
class SectionData {
    editObject = {};
    label = "First Name";
    propertyName = "firstName";
    expectedType = new StringDataDefinition_1.StringDataDefinition();
    allowNew = true;
    inputDataFunction = () => {
        return datadef;
    };
    updateCallback() {
        StateManager_1.StateManager.changed(this.editObject);
    }
}
exports.PropertyEditorVariableSelectionStories = [
    new StoryData_1.StoryNode(() => {
        const params = new SectionData();
        return ((0, jsx_runtime_1.jsx)(ObserveState_1.ObserveState, { listenTo: params.editObject, control: () => ((0, jsx_runtime_1.jsx)(PropertyEditorVariableSelection_1.PropertyEditorVariableSelection, { ...params, updateCallback: params.updateCallback })) }));
    }, "Shared", "Property Editors", "PropertyEditorVariableSelection"),
];
//# sourceMappingURL=PropertyEditorVariableSelection-stories.js.map