UNPKG

synapse-react-client

Version:

[![Build Status](https://travis-ci.com/Sage-Bionetworks/Synapse-React-Client.svg?branch=main)](https://travis-ci.com/Sage-Bionetworks/Synapse-React-Client) [![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synaps

54 lines 1.82 kB
"use strict"; 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