cspace-ui-plugin-profile-pahma
Version:
PAHMA profile plugin for the CollectionSpace UI
43 lines (42 loc) • 936 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _reactIntl = require("react-intl");
var _default = configContext => {
const {
CompoundInput,
AutocompleteInput
} = configContext.inputComponents;
const {
configKey: config
} = configContext.configHelpers;
return {
pararms: {
[config]: {
view: {
type: CompoundInput
}
},
Agency: {
[config]: {
messages: (0, _reactIntl.defineMessages)({
name: {
"id": "field.report.SystematicInventoryUI.Agency.name",
"defaultMessage": "Agency name"
}
}),
view: {
type: AutocompleteInput,
props: {
source: 'organization/local',
showQuickAdd: false
}
}
}
}
}
};
};
exports.default = _default;