"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IntegerPropertyEditor = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const PropertyEditorInteger_1 = require("./PropertyEditorInteger");
const ObserveState_1 = require("../StateManagement/ObserveState");
const StateManager_1 = require("@appglue/common/dist/Common/StateManager");
const StoryData_1 = require("../StoryBook/StoryData");
class TextData {
    editObject = {};
    hint = "hint";
    label = "Integer Editor";
    propertyName = "textValue";
    requiredText = "required text";
    updateCallback = () => {
        StateManager_1.StateManager.changed(this);
    };
}
exports.IntegerPropertyEditor = [
    new StoryData_1.StoryNode(() => {
        let args = new TextData();
        return (0, jsx_runtime_1.jsx)(ObserveState_1.ObserveState, { listenTo: args, control: () => (0, jsx_runtime_1.jsx)(PropertyEditorInteger_1.PropertyEditorInteger, { ...args }) });
    }, "Shared", "Property Editors", "Integer"),
];
//# sourceMappingURL=PropertyEditorInteger-stories.js.map