"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TableBlock = void 0;
const common_1 = require("../../gravity-blocks/schema/validators/common.js");
exports.TableBlock = {
    'table-block': {
        additionalProperties: false,
        required: ['title', 'table'],
        properties: {
            ...common_1.BlockBaseProps,
            title: {
                type: 'string',
                contentType: 'text',
            },
            table: {
                type: 'object',
                additionalProperties: false,
                required: ['content'],
                properties: {
                    ...common_1.BaseProps,
                    content: {
                        type: 'array',
                        items: {
                            type: 'array',
                            items: {
                                oneOf: [
                                    {
                                        type: 'string',
                                        contentType: 'text',
                                        optionName: 'text',
                                    },
                                    {
                                        type: 'number',
                                        contentType: 'text',
                                        optionName: 'number',
                                    },
                                ],
                            },
                        },
                    },
                    legend: {
                        type: 'array',
                        items: {
                            type: 'string',
                            contentType: 'yfm',
                        },
                    },
                    hideLegend: {
                        type: 'boolean',
                    },
                    justify: {
                        type: 'array',
                        items: common_1.JustifyProps,
                    },
                    marker: {
                        type: 'string',
                        enum: ['disk', 'tick'],
                    },
                    caption: {
                        type: 'string',
                    },
                },
            },
        },
    },
};
//# sourceMappingURL=schema.js.map
