@darkobits/formation
Version:
77 lines (66 loc) • 2.01 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
// -----------------------------------------------------------------------------
// ----- Shared Constants ------------------------------------------------------
// -----------------------------------------------------------------------------
/**
* Named used for the Formation Angular module.
*
* @type {string}
*/
var MODULE_NAME = exports.MODULE_NAME = 'Formation';
/**
* Name used for the form component (not prefixed).
*
* @type {string}
*/
var FORM_COMPONENT_NAME = exports.FORM_COMPONENT_NAME = 'fm';
/**
* Name used for the form group component (not prefixed).
*
* @type {string}
*/
var FORM_GROUP_COMPONENT_NAME = exports.FORM_GROUP_COMPONENT_NAME = 'fmGroup';
/**
* Prefix used for all components registered with Formation.registerComponent.
* This incluedes all built-in components.
*
* @type {string}
*/
var DEFAULT_PREFIX = exports.DEFAULT_PREFIX = 'fm';
/**
* Key in components' "require" definition that should reference the Formation
* form controller.
* @type {string}
*/
var FORM_CONTROLLER = exports.FORM_CONTROLLER = '$formController';
/**
* Key at which controls that use ngModel assign a reference to their ngModel
* controller.
*
* @type {string}
*/
var NG_MODEL_CTRL = exports.NG_MODEL_CTRL = '$ngModelCtrl';
/**
* Key in components' bindings that should contain control configuration.
*
* Shared between: form, component sub-classes.
*
* @type {string}
*/
var COMPONENT_CONFIGURATION = exports.COMPONENT_CONFIGURATION = '$configuration';
/**
* Error validation key to use for signaling the custom error state.
*
* @type {string}
*/
var CUSTOM_ERROR_KEY = exports.CUSTOM_ERROR_KEY = '$custom';
/**
* Property added to configurable validator instances that allows them to be
* identified as such across execution contexts, where instanceof will fail.
*
* @type {string}
*/
var CONFIGURABLE_VALIDATOR = exports.CONFIGURABLE_VALIDATOR = '$configurableValidator';