cspace-ui-plugin-profile-pahma
Version:
PAHMA profile plugin for the CollectionSpace UI
60 lines (59 loc) • 1.39 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _reactIntl = require("react-intl");
var _default = configContext => {
const {
CompoundInput,
TextInput
} = configContext.inputComponents;
const {
configKey: config
} = configContext.configHelpers;
return {
params: {
[config]: {
view: {
type: CompoundInput
}
},
'Start Location': {
[config]: {
messages: (0, _reactIntl.defineMessages)({
name: {
"id": "field.report.SystematicInventoryUI.Start Location.name",
"defaultMessage": "Start location"
}
}),
required: true,
view: {
type: TextInput
// props: {
// source: 'location/local',
// },
}
}
},
'End Location': {
[config]: {
messages: (0, _reactIntl.defineMessages)({
name: {
"id": "field.report.SystematicInventoryUI.End Location.name",
"defaultMessage": "End location"
}
}),
required: true,
view: {
type: TextInput
// props: {
// source: 'location/local',
// },
}
}
}
}
};
};
exports.default = _default;