UNPKG

cspace-ui

Version:
62 lines (61 loc) 1.49 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _reactIntl = require("react-intl"); var _default = configContext => { const { AutocompleteInput, CompoundInput } = configContext.inputComponents; const { configKey: config } = configContext.configHelpers; return { document: { [config]: { view: { type: CompoundInput } }, startLocation: { [config]: { messages: (0, _reactIntl.defineMessages)({ name: { "id": "field.report.systematicInventory.startLocation.name", "defaultMessage": "From location" } }), required: true, view: { type: AutocompleteInput, props: { showQuickAdd: false, source: 'location/local,location/offsite' } } } }, endLocation: { [config]: { messages: (0, _reactIntl.defineMessages)({ name: { "id": "field.report.systematicInventory.endLocation.name", "defaultMessage": "To location" } }), required: true, view: { type: AutocompleteInput, props: { showQuickAdd: false, source: 'location/local,location/offsite' } } } } } }; }; exports.default = _default;