Vulcan/packages/nova-lib/lib/modules/config.js
xavcz d195d366c8 Nova v1.1.0 🔭
* bump packages version
* update to Meteor 1.4.3! 🚀
2017-02-16 11:50:22 +01:00

29 lines
1.3 KiB
JavaScript

import { SimpleSchema } from 'meteor/aldeed:simple-schema';
/**
* @summary Kick off the namespace for Telescope.
* @namespace Telescope
*/
const Telescope = {};
Telescope.VERSION = '1.1.0';
// ------------------------------------- Schemas -------------------------------- //
SimpleSchema.extendOptions({
private: Match.Optional(Boolean),
editable: Match.Optional(Boolean), // editable: true means the field can be edited by the document's owner
hidden: Match.Optional(Match.OneOf(Boolean, Function)), // hidden: true means the field is never shown in a form no matter what
required: Match.Optional(Boolean), // required: true means the field is required to have a complete profile
profile: Match.Optional(Boolean), // profile: true means the field is shown on user profiles
template: Match.Optional(String), // legacy template used to display the field; backward compatibility (not used anymore)
form: Match.Optional(Object), // form placeholder
autoform: Match.Optional(Object), // legacy form placeholder; backward compatibility (not used anymore)
control: Match.Optional(Match.Any), // SmartForm control (String or React component)
order: Match.Optional(Number), // position in the form
group: Match.Optional(Object), // form fieldset group
preload: Match.Optional(Boolean),
});
export default Telescope;