synapse-react-client
Version:
[](https://travis-ci.com/Sage-Bionetworks/Synapse-React-Client) [](https://badge.fury.io/js/synaps
54 lines • 1.82 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.formSchemaUIArray = exports.formSchemaArray = exports.tsvOption = exports.csvOption = exports.includeRowIdAndRowVersionOption = exports.writeHeaderOption = void 0;
exports.writeHeaderOption = 'First line is the columns names.';
exports.includeRowIdAndRowVersionOption = 'Include row metadata (Row Id and Row Version).';
exports.csvOption = 'Comma Separated Values (CSV)';
exports.tsvOption = 'Tab Separated Values (TSV)';
// Step 1
var stepOneFormSchema = {
title: 'Download query results',
type: 'object',
properties: {
'File Type': {
type: 'string',
oneOf: [
{
const: exports.csvOption,
title: exports.csvOption,
},
{
const: exports.tsvOption,
title: exports.tsvOption,
},
],
},
Contents: {
type: 'array',
title: 'Contents',
items: {
type: 'string',
enum: [exports.writeHeaderOption, exports.includeRowIdAndRowVersionOption],
},
uniqueItems: true,
},
},
};
var stepOneFormUISchema = {
'File Type': {
'ui:widget': 'radio',
},
Contents: {
'ui:widget': 'checkboxes',
},
};
// Step 2
var stepTwoFormSchema = {
title: 'Download query results',
description: 'File is ready for download. Select the download button to download the file.',
type: 'object',
};
var stepTwoFormUISchema = {};
exports.formSchemaArray = [stepOneFormSchema, stepTwoFormSchema];
exports.formSchemaUIArray = [stepOneFormUISchema, stepTwoFormUISchema];
//# sourceMappingURL=ModalDownload.FormSchema.js.map