"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TextListPropertyEditor = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const PropertyEditorTextList_1 = require("./PropertyEditorTextList");
const ObserveState_1 = require("../StateManagement/ObserveState");
const StateManager_1 = require("@appglue/common/dist/Common/StateManager");
const StoryData_1 = require("../StoryBook/StoryData");
class TextListData {
    editObject = {};
    label = "TextEditor";
    propertyName = "textList";
    hint = "Please input multiline text";
    updateCallback = () => {
        StateManager_1.StateManager.propertyChanged(this, this.propertyName);
    };
}
exports.TextListPropertyEditor = [
    new StoryData_1.StoryNode(() => {
        let args = new TextListData();
        return ((0, jsx_runtime_1.jsx)(ObserveState_1.ObserveState, { listenTo: args, properties: [args.propertyName], control: () => (0, jsx_runtime_1.jsx)(PropertyEditorTextList_1.PropertyEditorTextList, { ...args }) }));
    }, "Shared", "Property Editors", "Text List"),
];
//# sourceMappingURL=PropertyEditorTextList-stories.js.map