cspace-ui-plugin-profile-pahma
Version:
PAHMA profile plugin for the CollectionSpace UI
57 lines (56 loc) • 1.3 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _reactIntl = require("react-intl");
var _default = configContext => {
const {
CompoundInput,
TextInput,
AutocompleteInput
} = configContext.inputComponents;
const {
configKey: config
} = configContext.configHelpers;
return {
params: {
[config]: {
view: {
type: CompoundInput
}
},
Requester: {
[config]: {
messages: (0, _reactIntl.defineMessages)({
name: {
"id": "field.pahmaUOCbyRequesterObject.Requester.name",
"defaultMessage": "Requester"
}
}),
view: {
type: AutocompleteInput,
props: {
source: 'person/local,organization/local',
showQuickAdd: false
}
}
}
},
ObjectNumber: {
[config]: {
messages: (0, _reactIntl.defineMessages)({
name: {
"id": "field.pahmaUOCbyRequesterObject.ObjectNumber.name",
"defaultMessage": "Object number"
}
}),
view: {
type: TextInput
}
}
}
}
};
};
exports.default = _default;