"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TEMPLATE_VIEW_TEMPLATE_EMBEDDED_CONFIGURATION_SUBTYPE = exports.TEMPLATE_CONFIGURATION_HOLDER_TEMPLATE_CONFIGURATION_SUBTYPE = exports.TEMPLATE_EMBEDDED_CONFIGURATION_TYPE = exports.TEMPLATE_CONFIGURATION_TYPE = exports.TEMPLATE_REFERRER_TYPE = exports.TEMPLATE_VIEW_TYPE = exports.TEMPLATE_CONFIGURATION_HOLDER_TYPE = exports.CONTENT_GENERIC_TEMPLATE = exports.CONTENT_GENERIC_PROVIDER = void 0;
const utils_common_const_1 = require("../utils-common/utils-common.const");
exports.CONTENT_GENERIC_PROVIDER = 'ContentGenericProvider';
exports.CONTENT_GENERIC_TEMPLATE = 'ContentGenericTemplate';
exports.TEMPLATE_CONFIGURATION_HOLDER_TYPE = {
    name: 'TemplateConfigurationHolder',
};
exports.TEMPLATE_VIEW_TYPE = {
    name: 'TemplateView',
    inheritedTypesIds: [exports.TEMPLATE_CONFIGURATION_HOLDER_TYPE.name],
    contentType: 'ContentGenericTemplate',
    definition: {
        properties: {},
    },
    iconView: 'far fa-file-code',
};
exports.TEMPLATE_REFERRER_TYPE = {
    name: 'TemplateReferrerType',
};
exports.TEMPLATE_CONFIGURATION_TYPE = {
    name: 'TemplateConfiguration',
    inheritedTypesIds: [utils_common_const_1.HIDDEN_NAME_TYPE.name, exports.TEMPLATE_REFERRER_TYPE.name],
    definition: {
        properties: {
            templateObjectTreeId: {
                type: 'string',
                title: 'Template configured',
                default: '',
                required: true,
                oneOfTree: [
                    {
                        treeType: exports.TEMPLATE_VIEW_TYPE.name,
                    },
                ],
            },
            configuration: {
                type: 'object',
                title: 'Template configuration',
                properties: {},
            },
        },
    },
};
exports.TEMPLATE_EMBEDDED_CONFIGURATION_TYPE = {
    name: 'TemplateEmbeddedConfiguration',
    title: 'configuration',
    inheritedTypesIds: [exports.TEMPLATE_CONFIGURATION_TYPE.name],
    definition: {
        properties: {
            templateObjectTreeId: {
                required: false,
                'x-schema-form': {
                    condition: 'false',
                },
            },
        },
    },
};
exports.TEMPLATE_CONFIGURATION_HOLDER_TEMPLATE_CONFIGURATION_SUBTYPE = {
    typeName: exports.TEMPLATE_CONFIGURATION_HOLDER_TYPE.name,
    subTypeName: exports.TEMPLATE_CONFIGURATION_TYPE.name,
    tree: true,
    max: 0,
};
exports.TEMPLATE_VIEW_TEMPLATE_EMBEDDED_CONFIGURATION_SUBTYPE = {
    typeName: exports.TEMPLATE_VIEW_TYPE.name,
    subTypeName: exports.TEMPLATE_EMBEDDED_CONFIGURATION_TYPE.name,
    name: exports.TEMPLATE_CONFIGURATION_TYPE.name,
    tree: true,
    max: 0,
};
//# sourceMappingURL=content-generic-template.const.js.map