UNPKG

@tomino/dynamic-form-semantic-ui

Version:

Semantic UI form renderer based on dynamic form generation

98 lines 3.16 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.boundSchema = (type = 'string', properties = {}) => ({ type: 'object', properties: { value: { type }, handler: { type: 'string' }, source: { type: 'string' }, validate: { type: 'string' }, parse: { type: 'string' }, ...properties } }); exports.elementSchema = { type: 'object', properties: { control: { type: 'string' }, documentation: { type: 'string' }, elements: { type: 'array', items: { $ref: '#' } }, pages: { type: 'array', items: { $ref: '#' } }, forms: { type: 'array', items: { $ref: '#' } }, isSelected: { type: 'boolean' }, props: { type: 'object' }, sourceRef: { type: 'string' } } }; exports.schemaSchema = { type: 'object', properties: { reference: { type: 'string' }, required: { type: 'array', items: { type: 'string' } }, expression: { type: 'string' }, validationExpression: { type: 'string' }, validationGroup: { type: 'string' }, share: { type: 'boolean' }, type: { type: 'string' }, const: { type: 'string' }, enum: { type: 'array', items: { type: 'string' } }, $id: { type: 'string' }, $ref: { type: 'string' }, $import: { type: 'string' }, $enum: { type: 'array', items: { type: 'object', properties: { text: { type: 'string' }, value: { type: 'string' }, icon: { type: 'string' } } } }, faker: { type: 'string' }, multipleOf: { type: 'number' }, maximum: { type: 'number' }, exclusiveMaximum: { type: 'number' }, minimum: { type: 'number' }, exclusiveMinimum: { type: 'number' }, maxLength: { type: 'integer' }, minLength: { type: 'integer' }, pattern: { type: 'string' }, items: { type: 'object' }, maxItems: { type: 'integer' }, minItems: { type: 'integer' }, uniqueItems: { type: 'boolean' }, maxProperties: { type: 'integer' }, minProperties: { type: 'integer' }, patternProperties: { type: 'string' }, properties: { type: 'object' }, additionalProperties: { type: 'boolean' }, errorMessage: { type: 'object' }, allOf: { type: 'array', items: { $ref: '#' } }, anyOf: { type: 'array', items: { $ref: '#' } }, oneOf: { type: 'array', items: { $ref: '#' } }, not: { $ref: '#' }, format: { type: 'string' }, title: { type: 'string' }, description: { type: 'string' }, default: { type: 'string' }, readOnly: { type: 'boolean' }, writeOnly: { type: 'boolean' }, definitions: { type: 'object' }, imports: { type: 'object' } } }; //# sourceMappingURL=common_schemas.js.map