"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const textInput = {
    type: 'text',
    name: 'text',
    title: 'Text Input',
};
const textAreaInput = {
    type: 'textarea',
    name: 'textarea',
    title: 'TextArea Input',
};
const booleanInput = {
    type: 'boolean',
    name: 'boolean',
    title: 'Boolean Input',
};
const numberInput = {
    type: 'number',
    name: 'number',
    title: 'Number Input',
};
const selectInput = {
    type: 'select',
    name: 'selectSingle',
    title: 'Select Single Input',
    mode: 'single',
    view: 'select',
    enum: [
        { value: 'id_1', content: 'Option 1' },
        { value: 'id_2', content: 'Option 2' },
    ],
};
const radioButtonsViewSingleInput = {
    ...selectInput,
    name: 'radioButtons',
    title: 'Radio Button Input',
    view: 'radiobutton',
};
// @ts-ignore
const selectMultipleModeInput = {
    ...selectInput,
    name: 'selectMultiple',
    title: 'Select Multiple Input',
    mode: 'multiple',
};
const objectInput = {
    type: 'object',
    name: 'object',
    title: 'Object Input',
    properties: [textInput, textAreaInput, selectInput],
};
const arrayTextInput = {
    type: 'array',
    name: 'arrayText',
    title: 'Array Text Input',
    buttonText: 'Add Array Item',
    arrayType: 'text',
};
const arrayObjectInput = {
    type: 'array',
    name: 'arrayObject',
    title: 'Array Object Input',
    buttonText: 'Add Array Item',
    arrayType: 'object',
    properties: [textInput, textAreaInput, selectInput],
};
const oneOfInput = {
    type: 'oneOf',
    name: 'oneOf',
    key: 'oneOfKey',
    title: 'Array Text Input',
    options: [
        { value: 'text', title: 'Text', properties: [textInput] },
        { value: 'textarea', title: 'TextArea', properties: [textAreaInput] },
    ],
};
exports.default = [
    textInput,
    textAreaInput,
    booleanInput,
    numberInput,
    selectInput,
    radioButtonsViewSingleInput,
    selectMultipleModeInput,
    objectInput,
    arrayTextInput,
    arrayObjectInput,
    oneOfInput,
];
//# sourceMappingURL=form.js.map
