fulcrum-core
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -160,7 +160,7 @@ 'use strict'; | ||
var condition = _ref3; | ||
var _condition = _ref3; | ||
var isSatisfied = condition.isSatisfied(record, values, cache); | ||
var _isSatisfied2 = _condition.isSatisfied(record, values, cache); | ||
if (!isSatisfied) { | ||
if (!_isSatisfied2) { | ||
shouldBeVisible = false; | ||
@@ -246,7 +246,7 @@ } | ||
var condition = _ref5; | ||
var _condition2 = _ref5; | ||
var isSatisfied = condition.isSatisfied(record, values, cache); | ||
var _isSatisfied3 = _condition2.isSatisfied(record, values, cache); | ||
if (!isSatisfied) { | ||
if (!_isSatisfied3) { | ||
shouldBeRequired = false; | ||
@@ -253,0 +253,0 @@ break; |
@@ -11,5 +11,5 @@ 'use strict'; | ||
var _condition = require('./condition'); | ||
var _condition2 = require('./condition'); | ||
var _condition2 = _interopRequireDefault(_condition); | ||
var _condition3 = _interopRequireDefault(_condition2); | ||
@@ -67,3 +67,3 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
this.visibleConditions.push(new _condition2.default(this, condition)); | ||
this.visibleConditions.push(new _condition3.default(this, condition)); | ||
} | ||
@@ -89,5 +89,5 @@ } | ||
var condition = _ref2; | ||
var _condition = _ref2; | ||
this.requiredConditions.push(new _condition2.default(this, condition)); | ||
this.requiredConditions.push(new _condition3.default(this, _condition)); | ||
} | ||
@@ -94,0 +94,0 @@ } |
@@ -131,7 +131,7 @@ 'use strict'; | ||
var required = _condition2.default.shouldElementBeRequired(element, record, formValues); | ||
var visible = _condition2.default.shouldElementBeVisible(element, record, formValues, cache); | ||
var _visible = _condition2.default.shouldElementBeVisible(element, record, formValues, cache); | ||
var disabled = element.isDisabled; | ||
var validatable = visible && !disabled; | ||
var validatable = _visible && !disabled; | ||
@@ -157,8 +157,8 @@ if (validatable) { | ||
} else if (element.hasPattern) { | ||
var textValue = formValues.get(element.key); | ||
var _textValue = formValues.get(element.key); | ||
var error = FeatureValidator.validatePatternOfElement(element, textValue); | ||
var _error = FeatureValidator.validatePatternOfElement(element, _textValue); | ||
if (error) { | ||
errors.push(error); | ||
if (_error) { | ||
errors.push(_error); | ||
} | ||
@@ -169,7 +169,7 @@ } | ||
if (element.isLengthValidationSupported) { | ||
var fieldValue = formValues.get(element.key); | ||
var error = FeatureValidator.validateLengthForElement(element, fieldValue); | ||
var _fieldValue = formValues.get(element.key); | ||
var _error2 = FeatureValidator.validateLengthForElement(element, _fieldValue); | ||
if (error) { | ||
errors.push(error); | ||
if (_error2) { | ||
errors.push(_error2); | ||
} | ||
@@ -176,0 +176,0 @@ } |
@@ -35,3 +35,3 @@ 'use strict'; | ||
get: function get() { | ||
var message = undefined; | ||
var message = void 0; | ||
@@ -38,0 +38,0 @@ var fieldLabel = this.label; |
@@ -78,6 +78,6 @@ 'use strict'; | ||
var choice = _ref2; | ||
var _choice = _ref2; | ||
if (_textUtils2.default.isPresent(choice)) { | ||
_this._otherValues.push(choice); | ||
if (_textUtils2.default.isPresent(_choice)) { | ||
_this._otherValues.push(_choice); | ||
} | ||
@@ -84,0 +84,0 @@ } |
@@ -76,6 +76,6 @@ 'use strict'; | ||
var choice = _ref2; | ||
var _choice = _ref2; | ||
if (_textUtils2.default.isPresent(choice)) { | ||
_this._otherValues.push(choice); | ||
if (_textUtils2.default.isPresent(_choice)) { | ||
_this._otherValues.push(_choice); | ||
} | ||
@@ -239,5 +239,5 @@ } | ||
var value = _ref6; | ||
var _value = _ref6; | ||
allValues.push(value); | ||
allValues.push(_value); | ||
} | ||
@@ -244,0 +244,0 @@ |
@@ -79,6 +79,6 @@ 'use strict'; | ||
var constructor = FormValue.factory().classes()[_elementTypes2.default[klass]]; | ||
var _constructor = FormValue.factory().classes()[_elementTypes2.default[klass]]; | ||
if (constructor) { | ||
FormValue._classes[constructor.name] = constructor; | ||
if (_constructor) { | ||
FormValue._classes[_constructor.name] = _constructor; | ||
} | ||
@@ -85,0 +85,0 @@ } |
@@ -5,8 +5,6 @@ 'use strict'; | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
var _textualValue = require('./textual-value'); | ||
var _formValue = require('./form-value'); | ||
var _textualValue2 = _interopRequireDefault(_textualValue); | ||
var _formValue2 = _interopRequireDefault(_formValue); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -31,13 +29,6 @@ | ||
_createClass(StatusValue, [{ | ||
key: 'displayValue', | ||
get: function get() { | ||
return this.textValue || ''; | ||
} | ||
}]); | ||
return StatusValue; | ||
}(_formValue2.default); | ||
}(_textualValue2.default); | ||
exports.default = StatusValue; | ||
//# sourceMappingURL=status-value.js.map |
{ | ||
"name": "fulcrum-core", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "Fulcrum Core", | ||
@@ -26,3 +26,3 @@ "homepage": "http://github.com/fulcrumapp/fulcrum-core", | ||
"babel-eslint": "^5.0.0", | ||
"babel-plugin-transform-proto-to-assign": "^6.6.4", | ||
"babel-plugin-transform-proto-to-assign": "^6.6.5", | ||
"babel-preset-es2015": "^6.6.0", | ||
@@ -33,3 +33,3 @@ "babel-preset-es2015-loose": "^7.0.0", | ||
"chai": "^3.5.0", | ||
"eslint": "^2.2.0", | ||
"eslint": "~2.2.0", | ||
"mocha": "^2.4.5", | ||
@@ -36,0 +36,0 @@ "should": "^8.2.2", |
@@ -1,7 +0,4 @@ | ||
import TextualValue from './form-value'; | ||
import TextualValue from './textual-value'; | ||
export default class StatusValue extends TextualValue { | ||
get displayValue() { | ||
return this.textValue || ''; | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
693181
10973